266 lines
1.1 MiB
266 lines
1.1 MiB
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<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dk(r.key),r)}}function QA(e,t,n){return t&&$A(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function I(e,t,n){return(t=dk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hk={exports:{}},yt={},S0=Symbol.for("react.element"),JA=Symbol.for("react.portal"),eL=Symbol.for("react.fragment"),tL=Symbol.for("react.strict_mode"),nL=Symbol.for("react.profiler"),rL=Symbol.for("react.provider"),iL=Symbol.for("react.context"),aL=Symbol.for("react.forward_ref"),oL=Symbol.for("react.suspense"),sL=Symbol.for("react.memo"),lL=Symbol.for("react.lazy"),h9=Symbol.iterator;function cL(e){return e===null||typeof e!="object"?null:(e=h9&&e[h9]||e["@@iterator"],typeof e=="function"?e:null)}var fk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pk=Object.assign,gk={};function Pu(e,t,n){this.props=e,this.context=t,this.refs=gk,this.updater=n||fk}Pu.prototype.isReactComponent={},Pu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},Pu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mk(){}mk.prototype=Pu.prototype;function d6(e,t,n){this.props=e,this.context=t,this.refs=gk,this.updater=n||fk}var J3=d6.prototype=new mk;J3.constructor=d6,pk(J3,Pu.prototype),J3.isPureReactComponent=!0;var f9=Array.isArray,vk=Object.prototype.hasOwnProperty,h6={current:null},yk={key:!0,ref:!0,__self:!0,__source:!0};function p9(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)vk.call(t,r)&&!yk.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var c=Array(s),d=0;d<s;d++)c[d]=arguments[d+2];i.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:S0,type:e,key:a,ref:o,props:i,_owner:h6.current}}function uL(e,t){return{$$typeof:S0,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function cv(e){return typeof e=="object"&&e!==null&&e.$$typeof===S0}function dL(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var g9=/\/+/g;function e5(e,t){return typeof e=="object"&&e!==null&&e.key!=null?dL(""+e.key):t.toString(36)}function tp(e,t,n,r,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case S0:case JA:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+e5(o,0):r,f9(i)?(n="",e!=null&&(n=e.replace(g9,"$&/")+"/"),tp(i,t,n,"",function(d){return d})):i!=null&&(cv(i)&&(i=uL(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(g9,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",f9(e))for(var s=0;s<e.length;s++){a=e[s];var c=r+e5(a,s);o+=tp(a,t,n,c,i)}else if(c=cL(e),typeof c=="function")for(e=c.call(e),s=0;!(a=e.next()).done;)a=a.value,c=r+e5(a,s++),o+=tp(a,t,n,c,i);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function P1(e,t,n){if(e==null)return e;var r=[],i=0;return tp(e,r,"","",function(a){return t.call(n,a,i++)}),r}function hL(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Dr={current:null},np={transition:null},fL={ReactCurrentDispatcher:Dr,ReactCurrentBatchConfig:np,ReactCurrentOwner:h6};function m9(){throw Error("act(...) is not supported in production builds of React.")}yt.Children={map:P1,forEach:function(e,t,n){P1(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P1(e,function(){t++}),t},toArray:function(e){return P1(e,function(t){return t})||[]},only:function(e){if(!cv(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},yt.Component=Pu,yt.Fragment=eL,yt.Profiler=nL,yt.PureComponent=d6,yt.StrictMode=tL,yt.Suspense=oL,yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fL,yt.act=m9,yt.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=pk({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=h6.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)vk.call(t,c)&&!yk.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&s!==void 0?s[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){s=Array(c);for(var d=0;d<c;d++)s[d]=arguments[d+2];r.children=s}return{$$typeof:S0,type:e.type,key:i,ref:a,props:r,_owner:o}},yt.createContext=function(e){return e={$$typeof:iL,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:rL,_context:e},e.Consumer=e},yt.createElement=p9,yt.createFactory=function(e){var t=p9.bind(null,e);return t.type=e,t},yt.createRef=function(){return{current:null}},yt.forwardRef=function(e){return{$$typeof:aL,render:e}},yt.isValidElement=cv,yt.lazy=function(e){return{$$typeof:lL,_payload:{_status:-1,_result:e},_init:hL}},yt.memo=function(e,t){return{$$typeof:sL,type:e,compare:t===void 0?null:t}},yt.startTransition=function(e){var t=np.transition;np.transition={};try{e()}finally{np.transition=t}},yt.unstable_act=m9,yt.useCallback=function(e,t){return Dr.current.useCallback(e,t)},yt.useContext=function(e){return Dr.current.useContext(e)},yt.useDebugValue=function(){},yt.useDeferredValue=function(e){return Dr.current.useDeferredValue(e)},yt.useEffect=function(e,t){return Dr.current.useEffect(e,t)},yt.useId=function(){return Dr.current.useId()},yt.useImperativeHandle=function(e,t,n){return Dr.current.useImperativeHandle(e,t,n)},yt.useInsertionEffect=function(e,t){return Dr.current.useInsertionEffect(e,t)},yt.useLayoutEffect=function(e,t){return Dr.current.useLayoutEffect(e,t)},yt.useMemo=function(e,t){return Dr.current.useMemo(e,t)},yt.useReducer=function(e,t,n){return Dr.current.useReducer(e,t,n)},yt.useRef=function(e){return Dr.current.useRef(e)},yt.useState=function(e){return Dr.current.useState(e)},yt.useSyncExternalStore=function(e,t,n){return Dr.current.useSyncExternalStore(e,t,n)},yt.useTransition=function(){return Dr.current.useTransition()},yt.version="18.3.1",hk.exports=yt;var V=hk.exports;const y=uc(V);var bk={exports:{}},pi={},wk={exports:{}},v9={};(function(e){function t(K,ce){var ne=K.length;K.push(ce);e:for(;0<ne;){var oe=ne-1>>>1,Q=K[oe];if(0<i(Q,ce))K[oe]=ce,K[ne]=Q,ne=oe;else break e}}function n(K){return K.length===0?null:K[0]}function r(K){if(K.length===0)return null;var ce=K[0],ne=K.pop();if(ne!==ce){K[0]=ne;e:for(var oe=0,Q=K.length,$=Q>>>1;oe<$;){var re=2*(oe+1)-1,we=K[re],W=re+1,D=K[W];if(0>i(we,ne))W<Q&&0>i(D,we)?(K[oe]=D,K[W]=ne,oe=W):(K[oe]=we,K[re]=ne,oe=re);else if(W<Q&&0>i(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()-T<N)}function z(){if(j!==null){var K=e.unstable_now();T=K;var ce=!0;try{ce=j(!0,K)}finally{ce?H():(M=!1,j=null)}}else M=!1}var H;if(typeof _=="function")H=function(){_(z)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,q=J.port2;J.port1.onmessage=z,H=function(){q.postMessage(null)}}else H=function(){k(z,0)};function Y(K){j=K,M||(M=!0,H())}function le(K,ce){P=k(function(){K(e.unstable_now())},ce)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(K){K.callback=null},e.unstable_continueExecution=function(){v||g||(v=!0,Y(E))},e.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<K?Math.floor(1e3/K):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(K){switch(m){case 1:case 2:case 3:var ce=3;break;default:ce=m}var ne=m;m=ce;try{return K()}finally{m=ne}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(K,ce){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var ne=m;m=K;try{return ce()}finally{m=ne}},e.unstable_scheduleCallback=function(K,ce,ne){var oe=e.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?oe+ne:oe):ne=oe,K){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=ne+Q,K={id:h++,callback:ce,priorityLevel:K,startTime:ne,expirationTime:Q,sortIndex:-1},ne>oe?(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<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var xk=new Set,Yh={};function Dl(e,t){fu(e,t),fu(e+"Capture",t)}function fu(e,t){for(Yh[e]=t,e=0;e<t.length;e++)xk.add(t[e])}var Po=!(typeof window>"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||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(yL(t,n,i,r)&&(n=null),r||i===null?mL(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Io=pL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T1=Symbol.for("react.element"),pu=Symbol.for("react.portal"),gu=Symbol.for("react.fragment"),p6=Symbol.for("react.strict_mode"),dv=Symbol.for("react.profiler"),Ck=Symbol.for("react.provider"),Sk=Symbol.for("react.context"),g6=Symbol.for("react.forward_ref"),hv=Symbol.for("react.suspense"),fv=Symbol.for("react.suspense_list"),m6=Symbol.for("react.memo"),ws=Symbol.for("react.lazy"),Ek=Symbol.for("react.offscreen"),w9=Symbol.iterator;function Ud(e){return e===null||typeof e!="object"?null:(e=w9&&e[w9]||e["@@iterator"],typeof e=="function"?e:null)}var xn=Object.assign,r5;function wh(e){if(r5===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);r5=t&&t[1]||""}return`
|
|
`+r5+e}var i5=!1;function a5(e,t){if(!e||i5)return"";i5=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var i=d.stack.split(`
|
|
`),a=r.stack.split(`
|
|
`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var c=`
|
|
`+i[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",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<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+zs(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function yv(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Ee(91));return xn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function S9(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Ee(92));if(xh(n)){if(1<n.length)throw Error(Ee(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:zs(n)}}function Pk(e,t){var n=zs(t.value),r=zs(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function E9(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Tk(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function bv(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Tk(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var I1,Mk=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(I1=I1||document.createElement("div"),I1.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",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<t.length;e++)_9(t[e])}}function Nk(e,t){return e(t)}function Dk(){}var o5=!1;function Rk(e,t,n){if(o5)return e(t,n);o5=!0;try{return Nk(e,t,n)}finally{o5=!1,(Mu!==null||Iu!==null)&&(Dk(),jk())}}function Zh(e,t){var n=e.stateNode;if(n===null)return null;var r=lm(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Ee(231,t,typeof n));return n}var Ev=!1;if(Po)try{var Wd={};Object.defineProperty(Wd,"passive",{get:function(){Ev=!0}}),window.addEventListener("test",Wd,Wd),window.removeEventListener("test",Wd,Wd)}catch{Ev=!1}function EL(e,t,n,r,i,a,o,s,c){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(h){this.onError(h)}}var Ih=!1,Zp=null,qp=!1,_v=null,_L={onError:function(e){Ih=!0,Zp=e}};function kL(e,t,n,r,i,a,o,s,c){Ih=!1,Zp=null,EL.apply(_L,arguments)}function OL(e,t,n,r,i,a,o,s,c){if(kL.apply(this,arguments),Ih){if(Ih){var d=Zp;Ih=!1,Zp=null}else throw Error(Ee(198));qp||(qp=!0,_v=d)}}function dc(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Fk(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function k9(e){if(dc(e)!==e)throw Error(Ee(188))}function PL(e){var t=e.alternate;if(!t){if(t=dc(e),t===null)throw Error(Ee(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return k9(i),e;if(a===r)return k9(i),t;a=a.sibling}throw Error(Ee(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)throw Error(Ee(189))}}if(n.alternate!==r)throw Error(Ee(190))}if(n.tag!==3)throw Error(Ee(188));return n.stateNode.current===n?e:t}function zk(e){return e=PL(e),e!==null?Bk(e):null}function Bk(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Bk(e);if(t!==null)return t;e=e.sibling}return null}var Hk=wi.unstable_scheduleCallback,O9=wi.unstable_cancelCallback,TL=wi.unstable_shouldYield,ML=wi.unstable_requestPaint,Nn=wi.unstable_now,IL=wi.unstable_getCurrentPriorityLevel,y6=wi.unstable_ImmediatePriority,Gk=wi.unstable_UserBlockingPriority,$p=wi.unstable_NormalPriority,AL=wi.unstable_LowPriority,Vk=wi.unstable_IdlePriority,im=null,Ua=null;function LL(e){if(Ua&&typeof Ua.onCommitFiberRoot=="function")try{Ua.onCommitFiberRoot(im,e,void 0,(e.current.flags&128)===128)}catch{}}var fa=Math.clz32?Math.clz32:DL,jL=Math.log,NL=Math.LN2;function DL(e){return 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;0<t;)n=31-fa(t),i=1<<n,r|=e[n],t&=~i;return r}function RL(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function FL(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-fa(a),s=1<<o,c=i[o];c===-1?(!(s&n)||s&r)&&(i[o]=RL(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function kv(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Uk(){var e=A1;return A1<<=1,!(A1&4194240)&&(A1=64),e}function s5(e){for(var t=[],n=0;31>n;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<n;){var i=31-fa(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function b6(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-fa(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Ft=0;function Wk(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Xk,w6,Yk,Kk,Zk,Ov=!1,j1=[],Ts=null,Ms=null,Is=null,qh=new Map,$h=new Map,Ss=[],BL="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function P9(e,t){switch(e){case"focusin":case"focusout":Ts=null;break;case"dragenter":case"dragleave":Ms=null;break;case"mouseover":case"mouseout":Is=null;break;case"pointerover":case"pointerout":qh.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$h.delete(t.pointerId)}}function Xd(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=k0(t),t!==null&&w6(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function HL(e,t,n,r,i){switch(t){case"focusin":return Ts=Xd(Ts,e,t,n,r,i),!0;case"dragenter":return Ms=Xd(Ms,e,t,n,r,i),!0;case"mouseover":return Is=Xd(Is,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return qh.set(a,Xd(qh.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,$h.set(a,Xd($h.get(a)||null,e,t,n,r,i)),!0}return!1}function qk(e){var t=Hl(e.target);if(t!==null){var n=dc(t);if(n!==null){if(t=n.tag,t===13){if(t=Fk(n),t!==null){e.blockedOn=t,Zk(e.priority,function(){Yk(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function rp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Pv(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Cv=r,n.target.dispatchEvent(r),Cv=null}else return t=k0(n),t!==null&&w6(t),e.blockedOn=n,!1;t.shift()}return!0}function T9(e,t,n){rp(e)&&n.delete(t)}function GL(){Ov=!1,Ts!==null&&rp(Ts)&&(Ts=null),Ms!==null&&rp(Ms)&&(Ms=null),Is!==null&&rp(Is)&&(Is=null),qh.forEach(T9),$h.forEach(T9)}function Yd(e,t){e.blockedOn===t&&(e.blockedOn=null,Ov||(Ov=!0,wi.unstable_scheduleCallback(wi.unstable_NormalPriority,GL)))}function Qh(e){function t(i){return Yd(i,e)}if(0<j1.length){Yd(j1[0],e);for(var n=1;n<j1.length;n++){var r=j1[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ts!==null&&Yd(Ts,e),Ms!==null&&Yd(Ms,e),Is!==null&&Yd(Is,e),qh.forEach(t),$h.forEach(t),n=0;n<Ss.length;n++)r=Ss[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ss.length&&(n=Ss[0],n.blockedOn===null);)qk(n),n.blockedOn===null&&Ss.shift()}var Au=Io.ReactCurrentBatchConfig,Jp=!0;function VL(e,t,n,r){var i=Ft,a=Au.transition;Au.transition=null;try{Ft=1,x6(e,t,n,r)}finally{Ft=i,Au.transition=a}}function UL(e,t,n,r){var i=Ft,a=Au.transition;Au.transition=null;try{Ft=4,x6(e,t,n,r)}finally{Ft=i,Au.transition=a}}function x6(e,t,n,r){if(Jp){var i=Pv(e,t,n,r);if(i===null)v5(e,t,r,e2,n),P9(e,r);else if(HL(i,e,t,n,r))r.stopPropagation();else if(P9(e,r),t&4&&-1<BL.indexOf(e)){for(;i!==null;){var a=k0(i);if(a!==null&&Xk(a),a=Pv(e,t,n,r),a===null&&v5(e,t,r,e2,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else v5(e,t,r,null,n)}}var e2=null;function Pv(e,t,n,r){if(e2=null,e=v6(r),e=Hl(e),e!==null)if(t=dc(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Fk(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return e2=e,null}function $k(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(IL()){case y6:return 1;case Gk:return 4;case $p:case AL:return 16;case Vk:return 536870912;default:return 16}default:return 16}}var Os=null,C6=null,ip=null;function Qk(){if(ip)return ip;var e,t=C6,n=t.length,r,i="value"in Os?Os.value:Os.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return ip=i.slice(e,1<r?1-r:void 0)}function ap(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function N1(){return!0}function M9(){return!1}function Si(e){function t(n,r,i,a,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?N1:M9,this.isPropagationStopped=M9,this}return xn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=N1)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=N1)},persist:function(){},isPersistent:N1}),t}var gd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},S6=Si(gd),_0=xn({},gd,{view:0,detail:0}),WL=Si(_0),l5,c5,Kd,am=xn({},_0,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:E6,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Kd&&(Kd&&e.type==="mousemove"?(l5=e.screenX-Kd.screenX,c5=e.screenY-Kd.screenY):c5=l5=0,Kd=e),l5)},movementY:function(e){return"movementY"in e?e.movementY:c5}}),I9=Si(am),XL=xn({},am,{dataTransfer:0}),YL=Si(XL),KL=xn({},_0,{relatedTarget:0}),u5=Si(KL),ZL=xn({},gd,{animationName:0,elapsedTime:0,pseudoElement:0}),qL=Si(ZL),$L=xn({},gd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),QL=Si($L),JL=xn({},gd,{data:0}),A9=Si(JL),ej={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tj={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},nj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rj(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=nj[e])?!!t[e]:!1}function E6(){return rj}var ij=xn({},_0,{key:function(e){if(e.key){var t=ej[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ap(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?tj[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:E6,charCode:function(e){return e.type==="keypress"?ap(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ap(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),aj=Si(ij),oj=xn({},am,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),L9=Si(oj),sj=xn({},_0,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:E6}),lj=Si(sj),cj=xn({},gd,{propertyName:0,elapsedTime:0,pseudoElement:0}),uj=Si(cj),dj=xn({},am,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),hj=Si(dj),fj=[9,13,27,32],_6=Po&&"CompositionEvent"in window,Ah=null;Po&&"documentMode"in document&&(Ah=document.documentMode);var pj=Po&&"TextEvent"in window&&!Ah,Jk=Po&&(!_6||Ah&&8<Ah&&11>=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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Jk&&t.locale!=="ko"?null:t.data;default:return null}}var vj={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function D9(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!vj[e.type]:t==="textarea"}function nO(e,t,n,r){Lk(r),t=t2(t,"onChange"),0<t.length&&(n=new S6("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Lh=null,Jh=null;function yj(e){fO(e,0)}function om(e){var t=bu(e);if(kk(t))return e}function bj(e,t){if(e==="change")return t}var rO=!1;if(Po){var d5;if(Po){var h5="oninput"in document;if(!h5){var R9=document.createElement("div");R9.setAttribute("oninput","return;"),h5=typeof R9.oninput=="function"}d5=h5}else d5=!1;rO=d5&&(!document.documentMode||9<document.documentMode)}function F9(){Lh&&(Lh.detachEvent("onpropertychange",iO),Jh=Lh=null)}function iO(e){if(e.propertyName==="value"&&om(Jh)){var t=[];nO(t,Jh,e,v6(e)),Rk(yj,t)}}function wj(e,t,n){e==="focusin"?(F9(),Lh=t,Jh=n,Lh.attachEvent("onpropertychange",iO)):e==="focusout"&&F9()}function xj(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return om(Jh)}function Cj(e,t){if(e==="click")return om(t)}function Sj(e,t){if(e==="input"||e==="change")return om(t)}function Ej(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ma=typeof Object.is=="function"?Object.is:Ej;function e0(e,t){if(ma(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!uv.call(t,i)||!ma(e[i],t[i]))return!1}return!0}function z9(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function B9(e,t){var n=z9(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=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<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var kj=Po&&"documentMode"in document&&11>=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"),0<r.length&&(t=new S6("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vu)))}function D1(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var yu={animationend:D1("Animation","AnimationEnd"),animationiteration:D1("Animation","AnimationIteration"),animationstart:D1("Animation","AnimationStart"),transitionend:D1("Transition","TransitionEnd")},f5={},sO={};Po&&(sO=document.createElement("div").style,"AnimationEvent"in window||(delete yu.animationend.animation,delete yu.animationiteration.animation,delete yu.animationstart.animation),"TransitionEvent"in window||delete yu.transitionend.transition);function sm(e){if(f5[e])return f5[e];if(!yu[e])return e;var t=yu[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in sO)return f5[e]=t[n];return e}var lO=sm("animationend"),cO=sm("animationiteration"),uO=sm("animationstart"),dO=sm("transitionend"),hO=new Map,G9="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function gs(e,t){hO.set(e,t),Dl(t,[e])}for(var p5=0;p5<G9.length;p5++){var g5=G9[p5],Oj=g5.toLowerCase(),Pj=g5[0].toUpperCase()+g5.slice(1);gs(Oj,"on"+Pj)}gs(lO,"onAnimationEnd"),gs(cO,"onAnimationIteration"),gs(uO,"onAnimationStart"),gs("dblclick","onDoubleClick"),gs("focusin","onFocus"),gs("focusout","onBlur"),gs(dO,"onTransitionEnd"),fu("onMouseEnter",["mouseout","mouseover"]),fu("onMouseLeave",["mouseout","mouseover"]),fu("onPointerEnter",["pointerout","pointerover"]),fu("onPointerLeave",["pointerout","pointerover"]),Dl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Dl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Dl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Dl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Dl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Dl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Tj=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sh));function V9(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,OL(r,t,void 0,e),e.currentTarget=null}function fO(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,d=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break e;V9(i,s,d),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,d=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break e;V9(i,s,d),a=c}}}if(qp)throw e=_v,qp=!1,_v=null,e}function nn(e,t){var n=t[Nv];n===void 0&&(n=t[Nv]=new Set);var r=e+"__bubble";n.has(r)||(pO(t,e,2,!1),n.add(r))}function m5(e,t,n){var r=0;t&&(r|=4),pO(n,e,r,t)}var R1="_reactListening"+Math.random().toString(36).slice(2);function t0(e){if(!e[R1]){e[R1]=!0,xk.forEach(function(n){n!=="selectionchange"&&(Tj.has(n)||m5(n,!1,e),m5(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[R1]||(t[R1]=!0,m5("selectionchange",!1,t))}}function pO(e,t,n,r){switch($k(t)){case 1:var i=VL;break;case 4:i=UL;break;default:i=x6}n=i.bind(null,t,n,e),i=void 0,!Ev||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function v5(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Hl(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue e}s=s.parentNode}}r=r.return}Rk(function(){var d=a,h=v6(n),b=[];e:{var m=hO.get(e);if(m!==void 0){var g=S6,v=e;switch(e){case"keypress":if(ap(n)===0)break e;case"keydown":case"keyup":g=aj;break;case"focusin":v="focus",g=u5;break;case"focusout":v="blur",g=u5;break;case"beforeblur":case"afterblur":g=u5;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=I9;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=YL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=lj;break;case lO:case cO:case uO:g=qL;break;case dO:g=uj;break;case"scroll":g=WL;break;case"wheel":g=hj;break;case"copy":case"cut":case"paste":g=QL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=L9}var w=(t&4)!==0,k=!w&&e==="scroll",C=w?m!==null?m+"Capture":null:m;w=[];for(var _=d,f;_!==null;){f=_;var x=f.stateNode;if(f.tag===5&&x!==null&&(f=x,C!==null&&(x=Zh(_,C),x!=null&&w.push(n0(_,x,f)))),k)break;_=_.return}0<w.length&&(m=new g(m,v,null,n,h),b.push({event:m,listeners:w}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",m&&n!==Cv&&(v=n.relatedTarget||n.fromElement)&&(Hl(v)||v[_o]))break e;if((g||m)&&(m=h.window===h?h:(m=h.ownerDocument)?m.defaultView||m.parentWindow:window,g?(v=n.relatedTarget||n.toElement,g=d,v=v?Hl(v):null,v!==null&&(k=dc(v),v!==k||v.tag!==5&&v.tag!==6)&&(v=null)):(g=null,v=d),g!==v)){if(w=I9,x="onMouseLeave",C="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(w=L9,x="onPointerLeave",C="onPointerEnter",_="pointer"),k=g==null?m:bu(g),f=v==null?m:bu(v),m=new w(x,_+"leave",g,n,h),m.target=k,m.relatedTarget=f,x=null,Hl(h)===d&&(w=new w(C,_+"enter",v,n,h),w.target=f,w.relatedTarget=k,x=w),k=x,g&&v)t:{for(w=g,C=v,_=0,f=w;f;f=Dc(f))_++;for(f=0,x=C;x;x=Dc(x))f++;for(;0<_-f;)w=Dc(w),_--;for(;0<f-_;)C=Dc(C),f--;for(;_--;){if(w===C||C!==null&&w===C.alternate)break t;w=Dc(w),C=Dc(C)}w=null}else w=null;g!==null&&U9(b,m,g,w,!1),v!==null&&k!==null&&U9(b,k,v,w,!0)}}e:{if(m=d?bu(d):window,g=m.nodeName&&m.nodeName.toLowerCase(),g==="select"||g==="input"&&m.type==="file")var E=bj;else if(D9(m))if(rO)E=Sj;else{E=xj;var M=wj}else(g=m.nodeName)&&g.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(E=Cj);if(E&&(E=E(e,d))){nO(b,E,n,h);break e}M&&M(e,m,d),e==="focusout"&&(M=m._wrapperState)&&M.controlled&&m.type==="number"&&vv(m,"number",m.value)}switch(M=d?bu(d):window,e){case"focusin":(D9(M)||M.contentEditable==="true")&&(vu=M,Tv=d,jh=null);break;case"focusout":jh=Tv=vu=null;break;case"mousedown":Mv=!0;break;case"contextmenu":case"mouseup":case"dragend":Mv=!1,H9(b,n,h);break;case"selectionchange":if(kj)break;case"keydown":case"keyup":H9(b,n,h)}var j;if(_6)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else mu?eO(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(Jk&&n.locale!=="ko"&&(mu||P!=="onCompositionStart"?P==="onCompositionEnd"&&mu&&(j=Qk()):(Os=h,C6="value"in Os?Os.value:Os.textContent,mu=!0)),M=t2(d,P),0<M.length&&(P=new A9(P,e,null,n,h),b.push({event:P,listeners:M}),j?P.data=j:(j=tO(n),j!==null&&(P.data=j)))),(j=pj?gj(e,n):mj(e,n))&&(d=t2(d,"onBeforeInput"),0<d.length&&(h=new A9("onBeforeInput","beforeinput",null,n,h),b.push({event:h,listeners:d}),h.data=j))}fO(b,t)})}function n0(e,t,n){return{instance:e,listener:t,currentTarget:n}}function t2(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Zh(e,n),a!=null&&r.unshift(n0(e,a,i)),a=Zh(e,t),a!=null&&r.push(n0(e,a,i))),e=e.return}return r}function Dc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function U9(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,d=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&d!==null&&(s=d,i?(c=Zh(n,a),c!=null&&o.unshift(n0(n,c,s))):i||(c=Zh(n,a),c!=null&&o.push(n0(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Mj=/\r\n?/g,Ij=/\u0000|\uFFFD/g;function W9(e){return(typeof e=="string"?e:""+e).replace(Mj,`
|
|
`).replace(Ij,"")}function F1(e,t,n){if(t=W9(t),W9(e)!==t&&n)throw Error(Ee(425))}function n2(){}var Iv=null,Av=null;function Lv(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var jv=typeof setTimeout=="function"?setTimeout:void 0,Aj=typeof clearTimeout=="function"?clearTimeout:void 0,X9=typeof Promise=="function"?Promise:void 0,Lj=typeof queueMicrotask=="function"?queueMicrotask:typeof X9<"u"?function(e){return X9.resolve(null).then(e).catch(jj)}:jv;function jj(e){setTimeout(function(){throw e})}function y5(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Qh(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Qh(t)}function As(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Y9(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var md=Math.random().toString(36).slice(2),Ba="__reactFiber$"+md,r0="__reactProps$"+md,_o="__reactContainer$"+md,Nv="__reactEvents$"+md,Nj="__reactListeners$"+md,Dj="__reactHandles$"+md;function Hl(e){var t=e[Ba];if(t)return t;for(var n=e.parentNode;n;){if(t=n[_o]||n[Ba]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Y9(e);e!==null;){if(n=e[Ba])return n;e=Y9(e)}return t}e=n,n=e.parentNode}return null}function k0(e){return e=e[Ba]||e[_o],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function bu(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ee(33))}function lm(e){return e[r0]||null}var Dv=[],wu=-1;function Vs(e){return{current:e}}function rn(e){0>wu||(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<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}vo=null,cm=!1}catch(i){throw vo!==null&&(vo=vo.slice(e+1)),Hk(y6,Us),i}finally{Ft=t,b5=!1}}return null}var xu=[],Cu=0,a2=null,o2=0,zi=[],Bi=0,ec=null,bo=1,wo="";function Rl(e,t){xu[Cu++]=o2,xu[Cu++]=a2,a2=e,o2=t}function vO(e,t,n){zi[Bi++]=bo,zi[Bi++]=wo,zi[Bi++]=ec,ec=e;var r=bo;e=wo;var i=32-fa(r)-1;r&=~(1<<i),n+=1;var a=32-fa(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,bo=1<<32-fa(t)+i|n<<i|r,wo=a+e}else bo=1<<a|n<<i|r,wo=e}function O6(e){e.return!==null&&(Rl(e,1),vO(e,1,0))}function P6(e){for(;e===a2;)a2=xu[--Cu],xu[Cu]=null,o2=xu[--Cu],xu[Cu]=null;for(;e===ec;)ec=zi[--Bi],zi[Bi]=null,wo=zi[--Bi],zi[Bi]=null,bo=zi[--Bi],zi[Bi]=null}var bi=null,yi=null,un=!1,la=null;function yO(e,t){var n=Hi(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function q9(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,bi=e,yi=As(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,bi=e,yi=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ec!==null?{id:bo,overflow:wo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Hi(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,bi=e,yi=null,!0):!1;default:return!1}}function Rv(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Fv(e){if(un){var t=yi;if(t){var n=t;if(!q9(e,t)){if(Rv(e))throw Error(Ee(418));t=As(n.nextSibling);var r=bi;t&&q9(e,t)?yO(r,n):(e.flags=e.flags&-4097|2,un=!1,bi=e)}}else{if(Rv(e))throw Error(Ee(418));e.flags=e.flags&-4097|2,un=!1,bi=e}}}function $9(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;bi=e}function z1(e){if(e!==bi)return!1;if(!un)return $9(e),un=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Lv(e.type,e.memoizedProps)),t&&(t=yi)){if(Rv(e))throw bO(),Error(Ee(418));for(;t;)yO(e,t),t=As(t.nextSibling)}if($9(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Ee(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){yi=As(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}yi=null}}else yi=bi?As(e.stateNode.nextSibling):null;return!0}function bO(){for(var e=yi;e;)e=As(e.nextSibling)}function Uu(){yi=bi=null,un=!1}function T6(e){la===null?la=[e]:la.push(e)}var Fj=Io.ReactCurrentBatchConfig;function Zd(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Ee(309));var r=n.stateNode}if(!r)throw Error(Ee(147,e));var i=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var s=i.refs;o===null?delete s[a]:s[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(Ee(284));if(!n._owner)throw Error(Ee(290,e))}return e}function B1(e,t){throw e=Object.prototype.toString.call(t),Error(Ee(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Q9(e){var t=e._init;return t(e._payload)}function wO(e){function t(C,_){if(e){var f=C.deletions;f===null?(C.deletions=[_],C.flags|=16):f.push(_)}}function n(C,_){if(!e)return null;for(;_!==null;)t(C,_),_=_.sibling;return null}function r(C,_){for(C=new Map;_!==null;)_.key!==null?C.set(_.key,_):C.set(_.index,_),_=_.sibling;return C}function i(C,_){return C=Ds(C,_),C.index=0,C.sibling=null,C}function a(C,_,f){return C.index=f,e?(f=C.alternate,f!==null?(f=f.index,f<_?(C.flags|=2,_):f):(C.flags|=2,_)):(C.flags|=1048576,_)}function o(C){return e&&C.alternate===null&&(C.flags|=2),C}function s(C,_,f,x){return _===null||_.tag!==6?(_=k5(f,C.mode,x),_.return=C,_):(_=i(_,f),_.return=C,_)}function c(C,_,f,x){var E=f.type;return E===gu?h(C,_,f.props.children,x,f.key):_!==null&&(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===ws&&Q9(E)===_.type)?(x=i(_,f.props),x.ref=Zd(C,_,f),x.return=C,x):(x=hp(f.type,f.key,f.props,null,C.mode,x),x.ref=Zd(C,_,f),x.return=C,x)}function d(C,_,f,x){return _===null||_.tag!==4||_.stateNode.containerInfo!==f.containerInfo||_.stateNode.implementation!==f.implementation?(_=O5(f,C.mode,x),_.return=C,_):(_=i(_,f.children||[]),_.return=C,_)}function h(C,_,f,x,E){return _===null||_.tag!==7?(_=Wl(f,C.mode,x,E),_.return=C,_):(_=i(_,f),_.return=C,_)}function b(C,_,f){if(typeof _=="string"&&_!==""||typeof _=="number")return _=k5(""+_,C.mode,f),_.return=C,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case T1:return f=hp(_.type,_.key,_.props,null,C.mode,f),f.ref=Zd(C,null,_),f.return=C,f;case pu:return _=O5(_,C.mode,f),_.return=C,_;case ws:var x=_._init;return b(C,x(_._payload),f)}if(xh(_)||Ud(_))return _=Wl(_,C.mode,f,null),_.return=C,_;B1(C,_)}return null}function m(C,_,f,x){var E=_!==null?_.key:null;if(typeof f=="string"&&f!==""||typeof f=="number")return E!==null?null:s(C,_,""+f,x);if(typeof f=="object"&&f!==null){switch(f.$$typeof){case T1:return f.key===E?c(C,_,f,x):null;case pu:return f.key===E?d(C,_,f,x):null;case ws:return E=f._init,m(C,_,E(f._payload),x)}if(xh(f)||Ud(f))return E!==null?null:h(C,_,f,x,null);B1(C,f)}return null}function g(C,_,f,x,E){if(typeof x=="string"&&x!==""||typeof x=="number")return C=C.get(f)||null,s(_,C,""+x,E);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case T1:return C=C.get(x.key===null?f:x.key)||null,c(_,C,x,E);case pu:return C=C.get(x.key===null?f:x.key)||null,d(_,C,x,E);case ws:var M=x._init;return g(C,_,f,M(x._payload),E)}if(xh(x)||Ud(x))return C=C.get(f)||null,h(_,C,x,E,null);B1(_,x)}return null}function v(C,_,f,x){for(var E=null,M=null,j=_,P=_=0,N=null;j!==null&&P<f.length;P++){j.index>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(;P<f.length;P++)j=b(C,f[P],x),j!==null&&(_=a(j,_,P),M===null?E=j:M.sibling=j,M=j);return un&&Rl(C,P),E}for(j=r(C,j);P<f.length;P++)N=g(j,C,P,f[P],x),N!==null&&(e&&N.alternate!==null&&j.delete(N.key===null?P:N.key),_=a(N,_,P),M===null?E=N:M.sibling=N,M=N);return e&&j.forEach(function(R){return t(C,R)}),un&&Rl(C,P),E}function w(C,_,f,x){var E=Ud(f);if(typeof E!="function")throw Error(Ee(150));if(f=E.call(f),f==null)throw Error(Ee(151));for(var M=E=null,j=_,P=_=0,N=null,T=f.next();j!==null&&!T.done;P++,T=f.next()){j.index>P?(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;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Ee(191,i));i.call(r)}}}var O0={},Wa=Vs(O0),i0=Vs(O0),a0=Vs(O0);function Vl(e){if(e===O0)throw Error(Ee(174));return e}function N6(e,t){switch(en(a0,t),en(i0,e),en(Wa,O0),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:bv(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=bv(t,e)}rn(Wa),en(Wa,t)}function Xu(){rn(Wa),rn(i0),rn(a0)}function EO(e){Vl(a0.current);var t=Vl(Wa.current),n=bv(t,e.type);t!==n&&(en(i0,e),en(Wa,n))}function D6(e){i0.current===e&&(rn(Wa),rn(i0))}var vn=Vs(0);function u2(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var w5=[];function R6(){for(var e=0;e<w5.length;e++)w5[e]._workInProgressVersionPrimary=null;w5.length=0}var sp=Io.ReactCurrentDispatcher,x5=Io.ReactCurrentBatchConfig,tc=0,wn=null,Zn=null,sr=null,d2=!1,Nh=!1,o0=0,zj=0;function Er(){throw Error(Ee(321))}function F6(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ma(e[n],t[n]))return!1;return!0}function z6(e,t,n,r,i,a){if(tc=a,wn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,sp.current=e===null||e.memoizedState===null?Vj:Uj,e=n(r,i),Nh){a=0;do{if(Nh=!1,o0=0,25<=a)throw Error(Ee(301));a+=1,sr=Zn=null,t.updateQueue=null,sp.current=Wj,e=n(r,i)}while(Nh)}if(sp.current=h2,t=Zn!==null&&Zn.next!==null,tc=0,sr=Zn=wn=null,d2=!1,t)throw Error(Ee(300));return e}function B6(){var e=o0!==0;return o0=0,e}function za(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return sr===null?wn.memoizedState=sr=e:sr=sr.next=e,sr}function Wi(){if(Zn===null){var e=wn.alternate;e=e!==null?e.memoizedState:null}else e=Zn.next;var t=sr===null?wn.memoizedState:sr.next;if(t!==null)sr=t,Zn=e;else{if(e===null)throw Error(Ee(310));Zn=e,e={memoizedState:Zn.memoizedState,baseState:Zn.baseState,baseQueue:Zn.baseQueue,queue:Zn.queue,next:null},sr===null?wn.memoizedState=sr=e:sr=sr.next=e}return sr}function s0(e,t){return typeof t=="function"?t(e):t}function C5(e){var t=Wi(),n=t.queue;if(n===null)throw Error(Ee(311));n.lastRenderedReducer=e;var r=Zn,i=r.baseQueue,a=n.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(i!==null){a=i.next,r=r.baseState;var s=o=null,c=null,d=a;do{var h=d.lane;if((tc&h)===h)c!==null&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var b={lane:h,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};c===null?(s=c=b,o=r):c=c.next=b,wn.lanes|=h,nc|=h}d=d.next}while(d!==null&&d!==a);c===null?o=r:c.next=s,ma(r,t.memoizedState)||(ei=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do a=i.lane,wn.lanes|=a,nc|=a,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function S5(e){var t=Wi(),n=t.queue;if(n===null)throw Error(Ee(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);ma(a,t.memoizedState)||(ei=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function _O(){}function kO(e,t){var n=wn,r=Wi(),i=t(),a=!ma(r.memoizedState,i);if(a&&(r.memoizedState=i,ei=!0),r=r.queue,H6(TO.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||sr!==null&&sr.memoizedState.tag&1){if(n.flags|=2048,l0(9,PO.bind(null,n,r,i,t),void 0,null),lr===null)throw Error(Ee(349));tc&30||OO(n,t,i)}return i}function OO(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=wn.updateQueue,t===null?(t={lastEffect:null,stores:null},wn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function PO(e,t,n,r){t.value=n,t.getSnapshot=r,MO(t)&&IO(e)}function TO(e,t,n){return n(function(){MO(t)&&IO(e)})}function MO(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ma(e,n)}catch{return!0}}function IO(e){var t=ko(e,1);t!==null&&pa(t,e,1,-1)}function tw(e){var t=za();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s0,lastRenderedState:e},t.queue=e,e=e.dispatch=Gj.bind(null,wn,e),[t.memoizedState,e]}function l0(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=wn.updateQueue,t===null?(t={lastEffect:null,stores:null},wn.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function AO(){return Wi().memoizedState}function lp(e,t,n,r){var i=za();wn.flags|=e,i.memoizedState=l0(1|t,n,void 0,r===void 0?null:r)}function um(e,t,n,r){var i=Wi();r=r===void 0?null:r;var a=void 0;if(Zn!==null){var o=Zn.memoizedState;if(a=o.destroy,r!==null&&F6(r,o.deps)){i.memoizedState=l0(t,n,a,r);return}}wn.flags|=e,i.memoizedState=l0(1|t,n,a,r)}function nw(e,t){return lp(8390656,8,e,t)}function H6(e,t){return um(2048,8,e,t)}function LO(e,t){return um(4,2,e,t)}function jO(e,t){return um(4,4,e,t)}function NO(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function DO(e,t,n){return n=n!=null?n.concat([e]):null,um(4,4,NO.bind(null,t,e),n)}function G6(){}function RO(e,t){var n=Wi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&F6(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function FO(e,t){var n=Wi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&F6(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function zO(e,t,n){return tc&21?(ma(n,t)||(n=Uk(),wn.lanes|=n,nc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ei=!0),e.memoizedState=n)}function Bj(e,t){var n=Ft;Ft=n!==0&&4>n?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<n&&(t+="H"+n.toString(32)),t+=":"}else n=zj++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Uj={readContext:Ui,useCallback:RO,useContext:Ui,useEffect:H6,useImperativeHandle:DO,useInsertionEffect:LO,useLayoutEffect:jO,useMemo:FO,useReducer:C5,useRef:AO,useState:function(){return C5(s0)},useDebugValue:G6,useDeferredValue:function(e){var t=Wi();return zO(t,Zn.memoizedState,e)},useTransition:function(){var e=C5(s0)[0],t=Wi().memoizedState;return[e,t]},useMutableSource:_O,useSyncExternalStore:kO,useId:BO,unstable_isNewReconciler:!1},Wj={readContext:Ui,useCallback:RO,useContext:Ui,useEffect:H6,useImperativeHandle:DO,useInsertionEffect:LO,useLayoutEffect:jO,useMemo:FO,useReducer:S5,useRef:AO,useState:function(){return S5(s0)},useDebugValue:G6,useDeferredValue:function(e){var t=Wi();return Zn===null?t.memoizedState=e:zO(t,Zn.memoizedState,e)},useTransition:function(){var e=S5(s0)[0],t=Wi().memoizedState;return[e,t]},useMutableSource:_O,useSyncExternalStore:kO,useId:BO,unstable_isNewReconciler:!1};function oa(e,t){if(e&&e.defaultProps){t=xn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Bv(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:xn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var dm={isMounted:function(e){return(e=e._reactInternals)?dc(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Br(),i=Ns(e),a=Oo(r,i);a.payload=t,n!=null&&(a.callback=n),t=Ls(e,a,i),t!==null&&(pa(t,e,i,r),op(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Br(),i=Ns(e),a=Oo(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Ls(e,a,i),t!==null&&(pa(t,e,i,r),op(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Br(),r=Ns(e),i=Oo(n,r);i.tag=2,t!=null&&(i.callback=t),t=Ls(e,i,r),t!==null&&(pa(t,e,r,n),op(t,e,r))}};function rw(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!e0(n,r)||!e0(i,a):!0}function UO(e,t,n){var r=!1,i=Bs,a=t.contextType;return typeof a=="object"&&a!==null?a=Ui(a):(i=ri(t)?Jl:Lr.current,r=t.contextTypes,a=(r=r!=null)?Vu(e,i):Bs),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=dm,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function iw(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&dm.enqueueReplaceState(t,t.state,null)}function Hv(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},j6(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Ui(a):(a=ri(t)?Jl:Lr.current,i.context=Vu(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(Bv(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&dm.enqueueReplaceState(i,i.state,null),c2(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Yu(e,t){try{var n="",r=t;do n+=bL(r),r=r.return;while(r);var i=n}catch(a){i=`
|
|
Error generating stack: `+a.message+`
|
|
`+a.stack}return{value:e,source:t,stack:i,digest:null}}function E5(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Gv(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Xj=typeof WeakMap=="function"?WeakMap:Map;function WO(e,t,n){n=Oo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){p2||(p2=!0,$v=r),Gv(e,t)},n}function XO(e,t,n){n=Oo(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Gv(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){Gv(e,t),typeof r!="function"&&(js===null?js=new Set([this]):js.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function aw(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Xj;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=oN.bind(null,e,t,n),t.then(e,e))}function ow(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function sw(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Oo(-1,1),t.tag=2,Ls(n,t,1))),n.lanes|=1),e)}var Yj=Io.ReactCurrentOwner,ei=!1;function zr(e,t,n,r){t.child=e===null?xO(t,null,n,r):Wu(t,e.child,n,r)}function lw(e,t,n,r,i){n=n.render;var a=t.ref;return Lu(t,i),r=z6(e,t,n,r,a,i),n=B6(),e!==null&&!ei?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,To(e,t,i)):(un&&n&&O6(t),t.flags|=1,zr(e,t,r,i),t.child)}function cw(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!q6(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,YO(e,t,a,r,i)):(e=hp(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:e0,n(o,r)&&e.ref===t.ref)return To(e,t,i)}return t.flags|=1,e=Ds(a,r),e.ref=t.ref,e.return=t,t.child=e}function YO(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(e0(a,r)&&e.ref===t.ref)if(ei=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(ei=!0);else return t.lanes=e.lanes,To(e,t,i)}return Vv(e,t,n,r,i)}function KO(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},en(_u,mi),mi|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,en(_u,mi),mi|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,en(_u,mi),mi|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,en(_u,mi),mi|=r;return zr(e,t,i,n),t.child}function ZO(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Vv(e,t,n,r,i){var a=ri(n)?Jl:Lr.current;return a=Vu(t,a),Lu(t,i),n=z6(e,t,n,r,a,i),r=B6(),e!==null&&!ei?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,To(e,t,i)):(un&&r&&O6(t),t.flags|=1,zr(e,t,n,i),t.child)}function uw(e,t,n,r,i){if(ri(n)){var a=!0;i2(t)}else a=!1;if(Lu(t,i),t.stateNode===null)cp(e,t),UO(t,n,r),Hv(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,d=n.contextType;typeof d=="object"&&d!==null?d=Ui(d):(d=ri(n)?Jl:Lr.current,d=Vu(t,d));var h=n.getDerivedStateFromProps,b=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function";b||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||c!==d)&&iw(t,o,r,d),xs=!1;var m=t.memoizedState;o.state=m,c2(t,r,o,i),c=t.memoizedState,s!==r||m!==c||ni.current||xs?(typeof h=="function"&&(Bv(t,n,h,r),c=t.memoizedState),(s=xs||rw(t,n,s,r,m,c,d))?(b||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=d,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,SO(e,t),s=t.memoizedProps,d=t.type===t.elementType?s:oa(t.type,s),o.props=d,b=t.pendingProps,m=o.context,c=n.contextType,typeof c=="object"&&c!==null?c=Ui(c):(c=ri(n)?Jl:Lr.current,c=Vu(t,c));var g=n.getDerivedStateFromProps;(h=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==b||m!==c)&&iw(t,o,r,c),xs=!1,m=t.memoizedState,o.state=m,c2(t,r,o,i);var v=t.memoizedState;s!==b||m!==v||ni.current||xs?(typeof g=="function"&&(Bv(t,n,g,r),v=t.memoizedState),(d=xs||rw(t,n,d,r,m,v,c)||!1)?(h||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),o.props=r,o.state=v,o.context=c,r=d):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Uv(e,t,n,r,a,i)}function Uv(e,t,n,r,i,a){ZO(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Z9(t,n,!1),To(e,t,a);r=t.stateNode,Yj.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Wu(t,e.child,null,a),t.child=Wu(t,null,s,a)):zr(e,t,s,a),t.memoizedState=r.state,i&&Z9(t,n,!0),t.child}function qO(e){var t=e.stateNode;t.pendingContext?K9(e,t.pendingContext,t.pendingContext!==t.context):t.context&&K9(e,t.context,!1),N6(e,t.containerInfo)}function dw(e,t,n,r,i){return Uu(),T6(i),t.flags|=256,zr(e,t,n,r),t.child}var Wv={dehydrated:null,treeContext:null,retryLane:0};function Xv(e){return{baseLanes:e,cachePool:null,transitions:null}}function $O(e,t,n){var r=t.pendingProps,i=vn.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),en(vn,i&1),e===null)return Fv(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:"hidden",children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=pm(o,r,0,null),e=Wl(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Xv(n),t.memoizedState=Wv,e):V6(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Kj(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Ds(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=Ds(s,a):(a=Wl(a,o,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?Xv(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=Wv,r}return a=e.child,e=a.sibling,r=Ds(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function V6(e,t){return t=pm({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function H1(e,t,n,r){return r!==null&&T6(r),Wu(t,e.child,null,n),e=V6(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Kj(e,t,n,r,i,a,o){if(n)return t.flags&256?(t.flags&=-257,r=E5(Error(Ee(422))),H1(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=pm({mode:"visible",children:r.children},i,0,null),a=Wl(a,i,o,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&Wu(t,e.child,null,o),t.child.memoizedState=Xv(o),t.memoizedState=Wv,a);if(!(t.mode&1))return H1(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,a=Error(Ee(419)),r=E5(a,r,void 0),H1(e,t,o,r)}if(s=(o&e.childLanes)!==0,ei||s){if(r=lr,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,ko(e,i),pa(r,e,i,-1))}return Z6(),r=E5(Error(Ee(421))),H1(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=sN.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,yi=As(i.nextSibling),bi=t,un=!0,la=null,e!==null&&(zi[Bi++]=bo,zi[Bi++]=wo,zi[Bi++]=ec,bo=e.id,wo=e.overflow,ec=t),t=V6(t,r.children),t.flags|=4096,t)}function hw(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),zv(e.return,t,n)}function _5(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function QO(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(zr(e,t,r.children,n),r=vn.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hw(e,n,t);else if(e.tag===19)hw(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(en(vn,r),(t.mode&1)===0)t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&u2(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),_5(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&u2(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}_5(t,!0,n,null,a);break;case"together":_5(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function cp(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function To(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),nc|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(Ee(153));if(t.child!==null){for(e=t.child,n=Ds(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ds(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Zj(e,t,n){switch(t.tag){case 3:qO(t),Uu();break;case 5:EO(t);break;case 1:ri(t.type)&&i2(t);break;case 4:N6(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;en(s2,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(en(vn,vn.current&1),t.flags|=128,null):n&t.child.childLanes?$O(e,t,n):(en(vn,vn.current&1),e=To(e,t,n),e!==null?e.sibling:null);en(vn,vn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return QO(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),en(vn,vn.current),r)break;return null;case 22:case 23:return t.lanes=0,KO(e,t,n)}return To(e,t,n)}var JO,Yv,eP,tP;JO=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Yv=function(){},eP=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Vl(Wa.current);var a=null;switch(n){case"input":i=gv(e,i),r=gv(e,r),a=[];break;case"select":i=xn({},i,{value:void 0}),r=xn({},r,{value:void 0}),a=[];break;case"textarea":i=yv(e,i),r=yv(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=n2)}wv(n,r);var o;n=null;for(d in i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&i[d]!=null)if(d==="style"){var s=i[d];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Yh.hasOwnProperty(d)?a||(a=[]):(a=a||[]).push(d,null));for(d in r){var c=r[d];if(s=i?.[d],r.hasOwnProperty(d)&&c!==s&&(c!=null||s!=null))if(d==="style")if(s){for(o in s)!s.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&s[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(a||(a=[]),a.push(d,n)),n=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(a=a||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(a=a||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Yh.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&nn("scroll",e),a||s===c||(a=[])):(a=a||[]).push(d,c))}n&&(a=a||[]).push("style",n);var d=a;(t.updateQueue=d)&&(t.flags|=4)}},tP=function(e,t,n,r){n!==r&&(t.flags|=4)};function qd(e,t){if(!un)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function _r(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function qj(e,t,n){var r=t.pendingProps;switch(P6(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _r(t),null;case 1:return ri(t.type)&&r2(),_r(t),null;case 3:return r=t.stateNode,Xu(),rn(ni),rn(Lr),R6(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(z1(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,la!==null&&(ey(la),la=null))),Yv(e,t),_r(t),null;case 5:D6(t);var i=Vl(a0.current);if(n=t.type,e!==null&&t.stateNode!=null)eP(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Ee(166));return _r(t),null}if(e=Vl(Wa.current),z1(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Ba]=t,r[r0]=a,e=(t.mode&1)!==0,n){case"dialog":nn("cancel",r),nn("close",r);break;case"iframe":case"object":case"embed":nn("load",r);break;case"video":case"audio":for(i=0;i<Sh.length;i++)nn(Sh[i],r);break;case"source":nn("error",r);break;case"img":case"image":case"link":nn("error",r),nn("load",r);break;case"details":nn("toggle",r);break;case"input":x9(r,a),nn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},nn("invalid",r);break;case"textarea":S9(r,a),nn("invalid",r)}wv(n,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="children"?typeof s=="string"?r.textContent!==s&&(a.suppressHydrationWarning!==!0&&F1(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&F1(r.textContent,s,e),i=["children",""+s]):Yh.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&nn("scroll",r)}switch(n){case"input":M1(r),C9(r,a,!0);break;case"textarea":M1(r),E9(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=n2)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Tk(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/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;i<Sh.length;i++)nn(Sh[i],e);i=r;break;case"source":nn("error",e),i=r;break;case"img":case"image":case"link":nn("error",e),nn("load",e),i=r;break;case"details":nn("toggle",e),i=r;break;case"input":x9(e,r),i=gv(e,r),nn("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=xn({},r,{value:void 0}),nn("invalid",e);break;case"textarea":S9(e,r),i=yv(e,r),nn("invalid",e);break;default:i=r}wv(n,i),s=i;for(a in s)if(s.hasOwnProperty(a)){var c=s[a];a==="style"?Ak(e,c):a==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Mk(e,c)):a==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Kh(e,c):typeof c=="number"&&Kh(e,""+c):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Yh.hasOwnProperty(a)?c!=null&&a==="onScroll"&&nn("scroll",e):c!=null&&f6(e,a,c,o))}switch(n){case"input":M1(e),C9(e,r,!1);break;case"textarea":M1(e),E9(e);break;case"option":r.value!=null&&e.setAttribute("value",""+zs(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?Tu(e,!!r.multiple,a,!1):r.defaultValue!=null&&Tu(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=n2)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return _r(t),null;case 6:if(e&&t.stateNode!=null)tP(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Ee(166));if(n=Vl(a0.current),Vl(Wa.current),z1(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ba]=t,(a=r.nodeValue!==n)&&(e=bi,e!==null))switch(e.tag){case 3:F1(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&F1(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ba]=t,t.stateNode=r}return _r(t),null;case 13:if(rn(vn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(un&&yi!==null&&t.mode&1&&!(t.flags&128))bO(),Uu(),t.flags|=98560,a=!1;else if(a=z1(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(Ee(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(Ee(317));a[Ba]=t}else Uu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_r(t),a=!1}else la!==null&&(ey(la),la=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||vn.current&1?qn===0&&(qn=3):Z6())),t.updateQueue!==null&&(t.flags|=4),_r(t),null);case 4:return Xu(),Yv(e,t),e===null&&t0(t.stateNode.containerInfo),_r(t),null;case 10:return A6(t.type._context),_r(t),null;case 17:return ri(t.type)&&r2(),_r(t),null;case 19:if(rn(vn),a=t.memoizedState,a===null)return _r(t),null;if(r=(t.flags&128)!==0,o=a.rendering,o===null)if(r)qd(a,!1);else{if(qn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=u2(e),o!==null){for(t.flags|=128,qd(a,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return en(vn,vn.current&1|2),t.child}e=e.sibling}a.tail!==null&&Nn()>Ku&&(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;r<n.length;r++){var i=n[r];try{var a=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:hr=s.stateNode,sa=!1;break e;case 3:hr=s.stateNode.containerInfo,sa=!0;break e;case 4:hr=s.stateNode.containerInfo,sa=!0;break e}s=s.return}if(hr===null)throw Error(Ee(160));aP(a,o,i),hr=null,sa=!1;var c=i.alternate;c!==null&&(c.return=null),i.return=null}catch(d){On(i,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)oP(t,e),t=t.sibling}function oP(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ea(t,e),Aa(e),r&4){try{Dh(3,e,e.return),hm(3,e)}catch(w){On(e,e.return,w)}try{Dh(5,e,e.return)}catch(w){On(e,e.return,w)}}break;case 1:ea(t,e),Aa(e),r&512&&n!==null&&Eu(n,n.return);break;case 5:if(ea(t,e),Aa(e),r&512&&n!==null&&Eu(n,n.return),e.flags&32){var i=e.stateNode;try{Kh(i,"")}catch(w){On(e,e.return,w)}}if(r&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=n!==null?n.memoizedProps:a,s=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&Ok(i,a),xv(s,o);var d=xv(s,a);for(o=0;o<c.length;o+=2){var h=c[o],b=c[o+1];h==="style"?Ak(i,b):h==="dangerouslySetInnerHTML"?Mk(i,b):h==="children"?Kh(i,b):f6(i,h,b,d)}switch(s){case"input":mv(i,a);break;case"textarea":Pk(i,a);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var g=a.value;g!=null?Tu(i,!!a.multiple,g,!1):m!==!!a.multiple&&(a.defaultValue!=null?Tu(i,!!a.multiple,a.defaultValue,!0):Tu(i,!!a.multiple,a.multiple?[]:"",!1))}i[r0]=a}catch(w){On(e,e.return,w)}}break;case 6:if(ea(t,e),Aa(e),r&4){if(e.stateNode===null)throw Error(Ee(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(w){On(e,e.return,w)}}break;case 3:if(ea(t,e),Aa(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Qh(t.containerInfo)}catch(w){On(e,e.return,w)}break;case 4:ea(t,e),Aa(e);break;case 13:ea(t,e),Aa(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(X6=Nn())),r&4&&gw(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(Ar=(d=Ar)||h,ea(t,e),Ar=d):ea(t,e),Aa(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!h&&(e.mode&1)!==0)for(Re=e,h=e.child;h!==null;){for(b=Re=h;Re!==null;){switch(m=Re,g=m.child,m.tag){case 0:case 11:case 14:case 15:Dh(4,m,m.return);break;case 1:Eu(m,m.return);var v=m.stateNode;if(typeof v.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(w){On(r,n,w)}}break;case 5:Eu(m,m.return);break;case 22:if(m.memoizedState!==null){vw(b);continue}}g!==null?(g.return=m,Re=g):vw(b)}h=h.sibling}e:for(h=null,b=e;;){if(b.tag===5){if(h===null){h=b;try{i=b.stateNode,d?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=b.stateNode,c=b.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,s.style.display=Ik("display",o))}catch(w){On(e,e.return,w)}}}else if(b.tag===6){if(h===null)try{b.stateNode.nodeValue=d?"":b.memoizedProps}catch(w){On(e,e.return,w)}}else if((b.tag!==22&&b.tag!==23||b.memoizedState===null||b===e)&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===e)break e;for(;b.sibling===null;){if(b.return===null||b.return===e)break e;h===b&&(h=null),b=b.return}h===b&&(h=null),b.sibling.return=b.return,b=b.sibling}}break;case 19:ea(t,e),Aa(e),r&4&&gw(e);break;case 21:break;default:ea(t,e),Aa(e)}}function Aa(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(iP(n)){var r=n;break e}n=n.return}throw Error(Ee(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Kh(i,""),r.flags&=-33);var a=pw(e);qv(e,a,i);break;case 3:case 4:var o=r.stateNode.containerInfo,s=pw(e);Zv(e,s,o);break;default:throw Error(Ee(161))}}catch(c){On(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function eN(e,t,n){Re=e,sP(e)}function sP(e,t,n){for(var r=(e.mode&1)!==0;Re!==null;){var i=Re,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||G1;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||Ar;s=G1;var d=Ar;if(G1=o,(Ar=c)&&!d)for(Re=i;Re!==null;)o=Re,c=o.child,o.tag===22&&o.memoizedState!==null?yw(i):c!==null?(c.return=o,Re=c):yw(i);for(;a!==null;)Re=a,sP(a),a=a.sibling;Re=i,G1=s,Ar=d}mw(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,Re=a):mw(e)}}function mw(e){for(;Re!==null;){var t=Re;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ar||hm(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ar)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:oa(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&ew(t,a,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ew(t,o,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var h=d.memoizedState;if(h!==null){var b=h.dehydrated;b!==null&&Qh(b)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Ee(163))}Ar||t.flags&512&&Kv(t)}catch(m){On(t,t.return,m)}}if(t===e){Re=null;break}if(n=t.sibling,n!==null){n.return=t.return,Re=n;break}Re=t.return}}function vw(e){for(;Re!==null;){var t=Re;if(t===e){Re=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Re=n;break}Re=t.return}}function yw(e){for(;Re!==null;){var t=Re;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{hm(4,t)}catch(c){On(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(c){On(t,i,c)}}var a=t.return;try{Kv(t)}catch(c){On(t,a,c)}break;case 5:var o=t.return;try{Kv(t)}catch(c){On(t,o,c)}}}catch(c){On(t,t.return,c)}if(t===e){Re=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Re=s;break}Re=t.return}}var tN=Math.ceil,f2=Io.ReactCurrentDispatcher,U6=Io.ReactCurrentOwner,Gi=Io.ReactCurrentBatchConfig,Ot=0,lr=null,Bn=null,pr=0,mi=0,_u=Vs(0),qn=0,c0=null,nc=0,fm=0,W6=0,Rh=null,Qr=null,X6=0,Ku=1/0,mo=null,p2=!1,$v=null,js=null,V1=!1,Ps=null,g2=0,Fh=0,Qv=null,up=-1,dp=0;function Br(){return Ot&6?Nn():up!==-1?up:up=Nn()}function Ns(e){return e.mode&1?Ot&2&&pr!==0?pr&-pr:Fj.transition!==null?(dp===0&&(dp=Uk()),dp):(e=Ft,e!==0||(e=window.event,e=e===void 0?16:$k(e.type)),e):1}function pa(e,t,n,r){if(50<Fh)throw Fh=0,Qv=null,Error(Ee(185));E0(e,n,r),(!(Ot&2)||e!==lr)&&(e===lr&&(!(Ot&2)&&(fm|=n),qn===4&&Es(e,pr)),ii(e,r),n===1&&Ot===0&&!(t.mode&1)&&(Ku=Nn()+500,cm&&Us()))}function ii(e,t){var n=e.callbackNode;FL(e,t);var r=Qp(e,e===lr?pr:0);if(r===0)n!==null&&O9(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&O9(n),t===1)e.tag===0?Rj(bw.bind(null,e)):mO(bw.bind(null,e)),Lj(function(){!(Ot&6)&&Us()}),n=null;else{switch(Wk(r)){case 1:n=y6;break;case 4:n=Gk;break;case 16:n=$p;break;case 536870912:n=Vk;break;default:n=$p}n=gP(n,lP.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function lP(e,t){if(up=-1,dp=0,(Ot&6)!==0)throw Error(Ee(327));var n=e.callbackNode;if(ju()&&e.callbackNode!==n)return null;var r=Qp(e,e===lr?pr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=m2(e,r);else{t=r;var i=Ot;Ot|=2;var a=uP();(lr!==e||pr!==t)&&(mo=null,Ku=Nn()+500,Ul(e,t));do try{iN();break}catch(s){cP(e,s)}while(!0);I6(),f2.current=a,Ot=i,Bn!==null?t=0:(lr=null,pr=0,t=qn)}if(t!==0){if(t===2&&(i=kv(e),i!==0&&(r=i,t=Jv(e,i))),t===1)throw n=c0,Ul(e,0),Es(e,r),ii(e,Nn()),n;if(t===6)Es(e,r);else{if(i=e.current.alternate,(r&30)===0&&!nN(i)&&(t=m2(e,r),t===2&&(a=kv(e),a!==0&&(r=a,t=Jv(e,a))),t===1))throw n=c0,Ul(e,0),Es(e,r),ii(e,Nn()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Ee(345));case 2:Fl(e,Qr,mo);break;case 3:if(Es(e,r),(r&130023424)===r&&(t=X6+500-Nn(),10<t)){if(Qp(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Br(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=jv(Fl.bind(null,e,Qr,mo),t);break}Fl(e,Qr,mo);break;case 4:if(Es(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-fa(r);a=1<<o,o=t[o],o>i&&(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,10<r){e.timeoutHandle=jv(Fl.bind(null,e,Qr,mo),r);break}Fl(e,Qr,mo);break;case 5:Fl(e,Qr,mo);break;default:throw Error(Ee(329))}}}return ii(e,Nn()),e.callbackNode===n?lP.bind(null,e):null}function Jv(e,t){var n=Rh;return e.current.memoizedState.isDehydrated&&(Ul(e,t).flags|=256),e=m2(e,t),e!==2&&(t=Qr,Qr=n,t!==null&&ey(t)),e}function ey(e){Qr===null?Qr=e:Qr.push.apply(Qr,e)}function nN(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!ma(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Es(e,t){for(t&=~W6,t&=~fm,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-fa(t),r=1<<n;e[n]=-1,t&=~r}}function bw(e){if(Ot&6)throw Error(Ee(327));ju();var t=Qp(e,0);if(!(t&1))return ii(e,Nn()),null;var n=m2(e,t);if(e.tag!==0&&n===2){var r=kv(e);r!==0&&(t=r,n=Jv(e,r))}if(n===1)throw n=c0,Ul(e,0),Es(e,t),ii(e,Nn()),n;if(n===6)throw Error(Ee(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fl(e,Qr,mo),ii(e,Nn()),null}function Y6(e,t){var n=Ot;Ot|=1;try{return e(t)}finally{Ot=n,Ot===0&&(Ku=Nn()+500,cm&&Us())}}function rc(e){Ps!==null&&Ps.tag===0&&!(Ot&6)&&ju();var t=Ot;Ot|=1;var n=Gi.transition,r=Ft;try{if(Gi.transition=null,Ft=1,e)return e()}finally{Ft=r,Gi.transition=n,Ot=t,!(Ot&6)&&Us()}}function K6(){mi=_u.current,rn(_u)}function Ul(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Aj(n)),Bn!==null)for(n=Bn.return;n!==null;){var r=n;switch(P6(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&r2();break;case 3:Xu(),rn(ni),rn(Lr),R6();break;case 5:D6(r);break;case 4:Xu();break;case 13:rn(vn);break;case 19:rn(vn);break;case 10:A6(r.type._context);break;case 22:case 23:K6()}n=n.return}if(lr=e,Bn=e=Ds(e.current,null),pr=mi=t,qn=0,c0=null,W6=fm=nc=0,Qr=Rh=null,Gl!==null){for(t=0;t<Gl.length;t++)if(n=Gl[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}Gl=null}return e}function cP(e,t){do{var n=Bn;try{if(I6(),sp.current=h2,d2){for(var r=wn.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}d2=!1}if(tc=0,sr=Zn=wn=null,Nh=!1,o0=0,U6.current=null,n===null||n.return===null){qn=1,c0=t,Bn=null;break}e:{var a=e,o=n.return,s=n,c=t;if(t=pr,s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=c,h=s,b=h.tag;if(!(h.mode&1)&&(b===0||b===11||b===15)){var m=h.alternate;m?(h.updateQueue=m.updateQueue,h.memoizedState=m.memoizedState,h.lanes=m.lanes):(h.updateQueue=null,h.memoizedState=null)}var g=ow(o);if(g!==null){g.flags&=-257,sw(g,o,s,a,t),g.mode&1&&aw(a,d,t),t=g,c=d;var v=t.updateQueue;if(v===null){var w=new Set;w.add(c),t.updateQueue=w}else v.add(c);break e}else{if(!(t&1)){aw(a,d,t),Z6();break e}c=Error(Ee(426))}}else if(un&&s.mode&1){var k=ow(o);if(k!==null){!(k.flags&65536)&&(k.flags|=256),sw(k,o,s,a,t),T6(Yu(c,s));break e}}a=c=Yu(c,s),qn!==4&&(qn=2),Rh===null?Rh=[a]:Rh.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var C=WO(a,c,t);J9(a,C);break e;case 1:s=c;var _=a.type,f=a.stateNode;if(!(a.flags&128)&&(typeof _.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(js===null||!js.has(f)))){a.flags|=65536,t&=-t,a.lanes|=t;var x=XO(a,s,t);J9(a,x);break e}}a=a.return}while(a!==null)}hP(n)}catch(E){t=E,Bn===n&&n!==null&&(Bn=n=n.return);continue}break}while(!0)}function uP(){var e=f2.current;return f2.current=h2,e===null?h2:e}function Z6(){(qn===0||qn===3||qn===2)&&(qn=4),lr===null||!(nc&268435455)&&!(fm&268435455)||Es(lr,pr)}function m2(e,t){var n=Ot;Ot|=2;var r=uP();(lr!==e||pr!==t)&&(mo=null,Ul(e,t));do try{rN();break}catch(i){cP(e,i)}while(!0);if(I6(),Ot=n,f2.current=r,Bn!==null)throw Error(Ee(261));return lr=null,pr=0,qn}function rN(){for(;Bn!==null;)dP(Bn)}function iN(){for(;Bn!==null&&!TL();)dP(Bn)}function dP(e){var t=pP(e.alternate,e,mi);e.memoizedProps=e.pendingProps,t===null?hP(e):Bn=t,U6.current=null}function hP(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=qj(n,t,mi),n!==null){Bn=n;return}}else{if(n=$j(n,t),n!==null){n.flags&=32767,Bn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{qn=6,Bn=null;return}}if(t=t.sibling,t!==null){Bn=t;return}Bn=t=e}while(t!==null);qn===0&&(qn=5)}function Fl(e,t,n){var r=Ft,i=Gi.transition;try{Gi.transition=null,Ft=1,aN(e,t,n,r)}finally{Gi.transition=i,Ft=r}return null}function aN(e,t,n,r){do ju();while(Ps!==null);if(Ot&6)throw Error(Ee(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Ee(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(zL(e,a),e===lr&&(Bn=lr=null,pr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||V1||(V1=!0,gP($p,function(){return ju(),null})),a=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||a){a=Gi.transition,Gi.transition=null;var o=Ft;Ft=1;var s=Ot;Ot|=4,U6.current=null,Jj(e,n),oP(n,e),_j(Av),Jp=!!Iv,Av=Iv=null,e.current=n,eN(n),ML(),Ot=s,Ft=o,Gi.transition=a}else e.current=n;if(V1&&(V1=!1,Ps=e,g2=i),a=e.pendingLanes,a===0&&(js=null),LL(n.stateNode),ii(e,Nn()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(p2)throw p2=!1,e=$v,$v=null,e;return g2&1&&e.tag!==0&&ju(),a=e.pendingLanes,a&1?e===Qv?Fh++:(Fh=0,Qv=e):Fh=0,Us(),null}function ju(){if(Ps!==null){var e=Wk(g2),t=Gi.transition,n=Ft;try{if(Gi.transition=null,Ft=16>e?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;c<s.length;c++){var d=s[c];for(Re=d;Re!==null;){var h=Re;switch(h.tag){case 0:case 11:case 15:Dh(8,h,a)}var b=h.child;if(b!==null)b.return=h,Re=b;else for(;Re!==null;){h=Re;var m=h.sibling,g=h.return;if(rP(h),h===d){Re=null;break}if(m!==null){m.return=g,Re=m;break}Re=g}}}var v=a.alternate;if(v!==null){var w=v.child;if(w!==null){v.child=null;do{var k=w.sibling;w.sibling=null,w=k}while(w!==null)}}Re=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,Re=o;else e:for(;Re!==null;){if(a=Re,(a.flags&2048)!==0)switch(a.tag){case 0:case 11:case 15:Dh(9,a,a.return)}var C=a.sibling;if(C!==null){C.return=a.return,Re=C;break e}Re=a.return}}var _=e.current;for(Re=_;Re!==null;){o=Re;var f=o.child;if(o.subtreeFlags&2064&&f!==null)f.return=o,Re=f;else e:for(o=_;Re!==null;){if(s=Re,(s.flags&2048)!==0)try{switch(s.tag){case 0:case 11:case 15:hm(9,s)}}catch(E){On(s,s.return,E)}if(s===o){Re=null;break e}var x=s.sibling;if(x!==null){x.return=s.return,Re=x;break e}Re=s.return}}if(Ot=i,Us(),Ua&&typeof Ua.onPostCommitFiberRoot=="function")try{Ua.onPostCommitFiberRoot(im,e)}catch{}r=!0}return r}finally{Ft=n,Gi.transition=t}}return!1}function ww(e,t,n){t=Yu(n,t),t=WO(e,t,1),e=Ls(e,t,1),t=Br(),e!==null&&(E0(e,1,t),ii(e,t))}function On(e,t,n){if(e.tag===3)ww(e,e,n);else for(;t!==null;){if(t.tag===3){ww(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(js===null||!js.has(r))){e=Yu(n,e),e=XO(t,e,1),t=Ls(t,e,1),e=Br(),t!==null&&(E0(t,1,e),ii(t,e));break}}t=t.return}}function oN(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Br(),e.pingedLanes|=e.suspendedLanes&n,lr===e&&(pr&n)===n&&(qn===4||qn===3&&(pr&130023424)===pr&&500>Nn()-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<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:pu,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function mP(e){if(!e)return Bs;e=e._reactInternals;e:{if(dc(e)!==e||e.tag!==1)throw Error(Ee(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ri(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Ee(171))}if(e.tag===1){var n=e.type;if(ri(n))return gO(e,n,t)}return t}function vP(e,t,n,r,i,a,o,s,c){return e=$6(n,r,!0,e,i,a,o,s,c),e.context=mP(null),n=e.current,r=Br(),i=Ns(n),a=Oo(r,i),a.callback=t??null,Ls(n,a,i),e.current.lanes=i,E0(e,i,r),ii(e,r),e}function v2(e,t,n,r){var i=t.current,a=Br(),o=Ns(i);return n=mP(n),t.context===null?t.context=n:t.pendingContext=n,t=Oo(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ls(i,t,o),e!==null&&(pa(e,i,o,a),op(e,i,o)),o}function y2(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function xw(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function P5(e,t){xw(e,t),(e=e.alternate)&&xw(e,t)}function fN(){return null}var Cw=typeof reportError=="function"?reportError:function(e){console.error(e)};function ty(e){this._internalRoot=e}b2.prototype.render=ty.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Ee(409));v2(e,t,null,null)},b2.prototype.unmount=ty.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rc(function(){v2(null,e,null,null)}),t[_o]=null}};function b2(e){this._internalRoot=e}b2.prototype.unstable_scheduleHydration=function(e){if(e){var t=Kk();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ss.length&&t!==0&&t<Ss[n].priority;n++);Ss.splice(n,0,e),n===0&&qk(e)}};function T5(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function U1(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Sw(){}function pN(e,t,n,r,i){if(i){if(typeof r=="function"){var a=r;r=function(){var d=y2(o);a.call(d)}}var o=vP(t,r,e,0,null,!1,!1,"",Sw);return e._reactRootContainer=o,e[_o]=o.current,t0(e.nodeType===8?e.parentNode:e),rc(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var d=y2(c);s.call(d)}}var c=$6(e,0,!1,null,null,!1,!1,"",Sw);return e._reactRootContainer=c,e[_o]=c.current,t0(e.nodeType===8?e.parentNode:e),rc(function(){v2(t,c,n,r)}),c}function W1(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var s=i;i=function(){var c=y2(o);s.call(c)}}v2(t,o,e,i)}else o=pN(n,t,e,i,r);return y2(o)}Xk=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ch(t.pendingLanes);n!==0&&(b6(t,n|1),ii(t,Nn()),!(Ot&6)&&(Ku=Nn()+500,Us()))}break;case 13:rc(function(){var r=ko(e,1);if(r!==null){var i=Br();pa(r,e,1,i)}}),P5(e,1)}},w6=function(e){if(e.tag===13){var t=ko(e,134217728);if(t!==null){var n=Br();pa(t,e,134217728,n)}P5(e,134217728)}},Yk=function(e){if(e.tag===13){var t=Ns(e),n=ko(e,t);if(n!==null){var r=Br();pa(n,e,t,r)}P5(e,t)}},Kk=function(){return Ft},Zk=function(e,t){var n=Ft;try{return Ft=e,t()}finally{Ft=n}},Sv=function(e,t,n){switch(t){case"input":if(mv(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=lm(r);if(!i)throw Error(Ee(90));kk(r),mv(r,i)}}}break;case"textarea":Pk(e,n);break;case"select":t=n.value,t!=null&&Tu(e,!!n.multiple,t,!1)}},Nk=Y6,Dk=rc;var gN={usingClientEntryPoint:!1,Events:[k0,bu,lm,Lk,jk,Y6]},$d={findFiberByHostInstance:Hl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},mN={bundleType:$d.bundleType,version:$d.version,rendererPackageName:$d.rendererPackageName,rendererConfig:$d.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Io.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=zk(e),e===null?null:e.stateNode},findFiberByHostInstance:$d.findFiberByHostInstance||fN,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var X1=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!X1.isDisabled&&X1.supportsFiber)try{im=X1.inject(mN),Ua=X1}catch{}}pi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gN,pi.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!T5(t))throw Error(Ee(200));return hN(e,t,null,n)},pi.createRoot=function(e,t){if(!T5(e))throw Error(Ee(299));var n=!1,r="",i=Cw;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=$6(e,1,!1,null,null,n,!1,r,i),e[_o]=t.current,t0(e.nodeType===8?e.parentNode:e),new ty(t)},pi.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Ee(188)):(e=Object.keys(e).join(","),Error(Ee(268,e)));return e=zk(t),e=e===null?null:e.stateNode,e},pi.flushSync=function(e){return rc(e)},pi.hydrate=function(e,t,n){if(!U1(t))throw Error(Ee(200));return W1(null,e,t,!0,n)},pi.hydrateRoot=function(e,t,n){if(!T5(e))throw Error(Ee(405));var r=n!=null&&n.hydratedSources||null,i=!1,a="",o=Cw;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=vP(t,null,e,1,n??null,i,!1,a,o),e[_o]=t.current,t0(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new b2(t)},pi.render=function(e,t,n){if(!U1(t))throw Error(Ee(200));return W1(null,e,t,!1,n)},pi.unmountComponentAtNode=function(e){if(!U1(e))throw Error(Ee(40));return e._reactRootContainer?(rc(function(){W1(null,null,e,!1,function(){e._reactRootContainer=null,e[_o]=null})}),!0):!1},pi.unstable_batchedUpdates=Y6,pi.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!U1(n))throw Error(Ee(200));if(e==null||e._reactInternals===void 0)throw Error(Ee(38));return W1(e,t,n,!1,r)},pi.version="18.3.1-next-f1338f8080-20240426";function yP(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"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;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var bP={exports:{}},yN="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",bN=yN,wN=bN;function wP(){}function xP(){}xP.resetWarningCache=wP;var xN=function(){function e(r,i,a,o,s,c){if(c!==wN){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}e.isRequired=e;function t(){return e}var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:xP,resetWarningCache:wP};return n.PropTypes=n,n};bP.exports=xN();var CN=bP.exports;const F=uc(CN);var CP={exports:{}},Xt={},ry=Symbol.for("react.transitional.element"),iy=Symbol.for("react.portal"),fp=Symbol.for("react.fragment"),pp=Symbol.for("react.strict_mode"),gp=Symbol.for("react.profiler"),mp=Symbol.for("react.consumer"),vp=Symbol.for("react.context"),yp=Symbol.for("react.forward_ref"),bp=Symbol.for("react.suspense"),wp=Symbol.for("react.suspense_list"),xp=Symbol.for("react.memo"),Cp=Symbol.for("react.lazy"),SN=Symbol.for("react.view_transition"),EN=Symbol.for("react.client.reference");function ji(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ry:switch(e=e.type,e){case fp:case gp:case pp:case bp:case wp:case SN:return e;default:switch(e=e&&e.$$typeof,e){case vp:case yp:case Cp:case xp:return e;case mp:return e;default:return t}}case iy:return t}}}Xt.ContextConsumer=mp,Xt.ContextProvider=vp,Xt.Element=ry,Xt.ForwardRef=yp,Xt.Fragment=fp,Xt.Lazy=Cp,Xt.Memo=xp,Xt.Portal=iy,Xt.Profiler=gp,Xt.StrictMode=pp,Xt.Suspense=bp,Xt.SuspenseList=wp,Xt.isContextConsumer=function(e){return ji(e)===mp},Xt.isContextProvider=function(e){return ji(e)===vp},Xt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ry},Xt.isForwardRef=function(e){return ji(e)===yp},Xt.isFragment=function(e){return ji(e)===fp},Xt.isLazy=function(e){return ji(e)===Cp},Xt.isMemo=function(e){return ji(e)===xp},Xt.isPortal=function(e){return ji(e)===iy},Xt.isProfiler=function(e){return ji(e)===gp},Xt.isStrictMode=function(e){return ji(e)===pp},Xt.isSuspense=function(e){return ji(e)===bp},Xt.isSuspenseList=function(e){return ji(e)===wp},Xt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===fp||e===gp||e===pp||e===bp||e===wp||typeof e=="object"&&e!==null&&(e.$$typeof===Cp||e.$$typeof===xp||e.$$typeof===vp||e.$$typeof===mp||e.$$typeof===yp||e.$$typeof===EN||e.getModuleId!==void 0)},Xt.typeOf=ji,CP.exports=Xt;var SP=CP.exports;function _N(e){function t(Q,$,re,we,W){for(var D=0,B=0,ee=0,ue=0,ve,se,Ie=0,Ae=0,Se,Ne=Se=ve=0,Me=0,Ye=0,He=0,We=0,_t=re.length,gt=_t-1,mt,Ge="",Ve="",Mn="",Dn="",fn;Me<_t;){if(se=re.charCodeAt(Me),Me===gt&&B+ue+ee+D!==0&&(B!==0&&(se=B===47?10:47),ue=ee=D=0,_t++,gt++),B+ue+ee+D===0){if(Me===gt&&(0<Ye&&(Ge=Ge.replace(m,"")),0<Ge.trim().length)){switch(se){case 32:case 9:case 59:case 13:case 10:break;default:Ge+=re.charAt(Me)}se=59}switch(se){case 123:for(Ge=Ge.trim(),ve=Ge.charCodeAt(0),Se=1,We=++Me;Me<_t;){switch(se=re.charCodeAt(Me)){case 123:Se++;break;case 125:Se--;break;case 47:switch(se=re.charCodeAt(Me+1)){case 42:case 47:e:{for(Ne=Me+1;Ne<gt;++Ne)switch(re.charCodeAt(Ne)){case 47:if(se===42&&re.charCodeAt(Ne-1)===42&&Me+2!==Ne){Me=Ne+1;break e}break;case 10:if(se===47){Me=Ne+1;break e}}Me=Ne}}break;case 91:se++;case 40:se++;case 34:case 39:for(;Me++<gt&&re.charCodeAt(Me)!==se;);}if(Se===0)break;Me++}switch(Se=re.substring(We,Me),ve===0&&(ve=(Ge=Ge.replace(b,"").trim()).charCodeAt(0)),ve){case 64:switch(0<Ye&&(Ge=Ge.replace(m,"")),se=Ge.charCodeAt(1),se){case 100:case 109:case 115:case 45:Ye=$;break;default:Ye=Y}if(Se=t($,Ye,Se,se,W+1),We=Se.length,0<K&&(Ye=n(Y,Ge,He),fn=s(3,Se,Ye,$,H,z,We,se,W,we),Ge=Ye.join(""),fn!==void 0&&(We=(Se=fn.trim()).length)===0&&(se=0,Se="")),0<We)switch(se){case 115:Ge=Ge.replace(M,o);case 100:case 109:case 45:Se=Ge+"{"+Se+"}";break;case 107:Ge=Ge.replace(_,"$1 $2"),Se=Ge+"{"+Se+"}",Se=q===1||q===2&&a("@"+Se,3)?"@-webkit-"+Se+"@"+Se:"@"+Se;break;default:Se=Ge+Se,we===112&&(Se=(Ve+=Se,""))}else Se="";break;default:Se=t($,n($,Ge,He),Se,we,W+1)}Mn+=Se,Se=He=Ye=Ne=ve=0,Ge="",se=re.charCodeAt(++Me);break;case 125:case 59:if(Ge=(0<Ye?Ge.replace(m,""):Ge).trim(),1<(We=Ge.length))switch(Ne===0&&(ve=Ge.charCodeAt(0),ve===45||96<ve&&123>ve)&&(We=(Ge=Ge.replace(" ",":")).length),0<K&&(fn=s(1,Ge,$,Q,H,z,Ve.length,we,W,we))!==void 0&&(We=(Ge=fn.trim()).length)===0&&(Ge="\0\0"),ve=Ge.charCodeAt(0),se=Ge.charCodeAt(1),ve){case 0:break;case 64:if(se===105||se===99){Dn+=Ge+re.charAt(Me);break}default:Ge.charCodeAt(We-1)!==58&&(Ve+=i(Ge,ve,se,Ge.charCodeAt(2)))}He=Ye=Ne=ve=0,Ge="",se=re.charCodeAt(++Me)}}switch(se){case 13:case 10:B===47?B=0:1+ve===0&&we!==107&&0<Ge.length&&(Ye=1,Ge+="\0"),0<K*ne&&s(0,Ge,$,Q,H,z,Ve.length,we,W,we),z=1,H++;break;case 59:case 125:if(B+ue+ee+D===0){z++;break}default:switch(z++,mt=re.charAt(Me),se){case 9:case 32:if(ue+D+B===0)switch(Ie){case 44:case 58:case 9:case 32:mt="";break;default:se!==32&&(mt=" ")}break;case 0:mt="\\0";break;case 12:mt="\\f";break;case 11:mt="\\v";break;case 38:ue+B+D===0&&(Ye=He=1,mt="\f"+mt);break;case 108:if(ue+B+D+J===0&&0<Ne)switch(Me-Ne){case 2:Ie===112&&re.charCodeAt(Me-3)===58&&(J=Ie);case 8:Ae===111&&(J=Ae)}break;case 58:ue+B+D===0&&(Ne=Me);break;case 44:B+ee+ue+D===0&&(Ye=1,mt+="\r");break;case 34:case 39:B===0&&(ue=ue===se?0:ue===0?se:ue);break;case 91:ue+B+ee===0&&D++;break;case 93:ue+B+ee===0&&D--;break;case 41:ue+B+D===0&&ee--;break;case 40:if(ue+B+D===0){if(ve===0)switch(2*Ie+3*Ae){case 533:break;default:ve=1}ee++}break;case 64:B+ee+ue+D+Ne+Se===0&&(Se=1);break;case 42:case 47:if(!(0<ue+D+ee))switch(B){case 0:switch(2*se+3*re.charCodeAt(Me+1)){case 235:B=47;break;case 220:We=Me,B=42}break;case 42:se===47&&Ie===42&&We+2!==Me&&(re.charCodeAt(We+2)===33&&(Ve+=re.substring(We,Me+1)),mt="",B=0)}}B===0&&(Ge+=mt)}Ae=Ie,Ie=se,Me++}if(We=Ve.length,0<We){if(Ye=$,0<K&&(fn=s(2,Ve,Ye,Q,H,z,We,we,W,we),fn!==void 0&&(Ve=fn).length===0))return Dn+Ve+Mn;if(Ve=Ye.join(",")+"{"+Ve+"}",q*J!==0){switch(q!==2||a(Ve,2)||(J=0),J){case 111:Ve=Ve.replace(x,":-moz-$1")+Ve;break;case 112:Ve=Ve.replace(f,"::-webkit-input-$1")+Ve.replace(f,"::-moz-$1")+Ve.replace(f,":-ms-input-$1")+Ve}J=0}}return Dn+Ve+Mn}function n(Q,$,re){var we=$.trim().split(k);$=we;var W=we.length,D=Q.length;switch(D){case 0:case 1:var B=0;for(Q=D===0?"":Q[0]+" ";B<W;++B)$[B]=r(Q,$[B],re).trim();break;default:var ee=B=0;for($=[];B<W;++B)for(var ue=0;ue<D;++ue)$[ee++]=r(Q[ue]+" ",we[B],re).trim()}return $}function r(Q,$,re){var we=$.charCodeAt(0);switch(33>we&&(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(0<W.indexOf("image-set(",11))return W.replace(R,"$1-webkit-$2")+W;break;case 932:if(W.charCodeAt(4)===45)switch(W.charCodeAt(5)){case 103:return"-webkit-box-"+W.replace("-grow","")+"-webkit-"+W+"-ms-"+W.replace("grow","positive")+W;case 115:return"-webkit-"+W+"-ms-"+W.replace("shrink","negative")+W;case 98:return"-webkit-"+W+"-ms-"+W.replace("basis","preferred-size")+W}return"-webkit-"+W+"-ms-"+W+W;case 964:return"-webkit-"+W+"-ms-flex-"+W+W;case 1023:if(W.charCodeAt(8)!==99)break;return B=W.substring(W.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+B+"-webkit-"+W+"-ms-flex-pack"+B+W;case 1005:return v.test(W)?W.replace(g,":-webkit-")+W.replace(g,":-moz-")+W:W;case 1e3:switch(B=W.substring(13).trim(),$=B.indexOf("-")+1,B.charCodeAt(0)+B.charCodeAt($)){case 226:B=W.replace(E,"tb");break;case 232:B=W.replace(E,"tb-rl");break;case 220:B=W.replace(E,"lr");break;default:return W}return"-webkit-"+W+"-ms-"+B+W;case 1017:if(W.indexOf("sticky",9)===-1)break;case 975:switch($=(W=Q).length-10,B=(W.charCodeAt($)===33?W.substring(0,$):W).substring(Q.indexOf(":",7)+1).trim(),D=B.charCodeAt(0)+(B.charCodeAt(7)|0)){case 203:if(111>B.charCodeAt(8))break;case 115:W=W.replace(B,"-webkit-"+B)+";"+W;break;case 207:case 102:W=W.replace(B,"-webkit-"+(102<D?"inline-":"")+"box")+";"+W.replace(B,"-webkit-"+B)+";"+W.replace(B,"-ms-"+B+"box")+";"+W}return W+";";case 938:if(W.charCodeAt(5)===45)switch(W.charCodeAt(6)){case 105:return B=W.replace("-items",""),"-webkit-"+W+"-webkit-box-"+B+"-ms-flex-"+B+W;case 115:return"-webkit-"+W+"-ms-flex-item-"+W.replace(P,"")+W;default:return"-webkit-"+W+"-ms-flex-line-pack"+W.replace("align-content","").replace(P,"")+W}break;case 973:case 989:if(W.charCodeAt(3)!==45||W.charCodeAt(4)===122)break;case 931:case 953:if(T.test(Q)===!0)return(B=Q.substring(Q.indexOf(":")+1)).charCodeAt(0)===115?i(Q.replace("stretch","fill-available"),$,re,we).replace(":fill-available",":stretch"):W.replace(B,"-webkit-"+B)+W.replace(B,"-moz-"+B.replace("fill-",""))+W;break;case 962:if(W="-webkit-"+W+(W.charCodeAt(5)===102?"-ms-"+W:"")+W,re+we===211&&W.charCodeAt(13)===105&&0<W.indexOf("transform",10))return W.substring(0,W.indexOf(";",27)+1).replace(w,"$1-webkit-$2")+W}return W}function a(Q,$){var re=Q.indexOf($===1?":":"{"),we=Q.substring(0,$!==3?re:10);return re=Q.substring(re+1,Q.length-1),ce($!==2?we:we.replace(N,"$1"),re,$)}function o(Q,$){var re=i($,$.charCodeAt(0),$.charCodeAt(1),$.charCodeAt(2));return re!==$+";"?re.replace(j," or ($1)").substring(4):"("+$+")"}function s(Q,$,re,we,W,D,B,ee,ue,ve){for(var se=0,Ie=$,Ae;se<K;++se)switch(Ae=le[se].call(h,Q,Ie,re,we,W,D,B,ee,ue,ve)){case void 0:case!1:case!0:case null:break;default:Ie=Ae}if(Ie!==$)return Ie}function c(Q){switch(Q){case void 0:case null:K=le.length=0;break;default:if(typeof Q=="function")le[K++]=Q;else if(typeof Q=="object")for(var $=0,re=Q.length;$<re;++$)c(Q[$]);else ne=!!Q|0}return c}function d(Q){return Q=Q.prefix,Q!==void 0&&(ce=null,Q?typeof Q!="function"?q=1:(q=2,ce=Q):q=0),d}function h(Q,$){var re=Q;if(33>re.charCodeAt(0)&&(re=re.trim()),oe=re,re=[oe],0<K){var we=s(-1,$,re,re,H,z,0,0,0,0);we!==void 0&&typeof we=="string"&&($=we)}var W=t(Y,re,$,0,0);return 0<K&&(we=s(-2,W,re,re,H,z,W.length,0,0,0),we!==void 0&&(W=we)),oe="",J=0,z=H=1,W}var b=/^\0+/g,m=/[\0\r\f]/g,g=/: */g,v=/zoo|gra/,w=/([,: ])(transform)/g,k=/,\r+?/g,C=/([\t\r\n ])*\f?&/g,_=/@(k\w+)\s*(\S*)\s*/,f=/::(place)/g,x=/:(read-only)/g,E=/[svh]\w+-[tblr]{2}/,M=/\(\s*(.*)\s*\)/g,j=/([\s\S]*?);/g,P=/-self|flex-/g,N=/[^]*?(:[rp][el]a[\w-]+)[^]*/,T=/stretch|:\s*\w+\-(?:conte|avail)/,R=/([^-])(image-set\()/,z=1,H=1,J=0,q=1,Y=[],le=[],K=0,ce=null,ne=0,oe="";return h.use=c,h.set=d,e!==void 0&&d(e),h}var kN={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function ON(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var PN=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,_w=ON(function(e){return PN.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),EP={exports:{}},Rt={},cr=typeof Symbol=="function"&&Symbol.for,ay=cr?Symbol.for("react.element"):60103,oy=cr?Symbol.for("react.portal"):60106,Sp=cr?Symbol.for("react.fragment"):60107,Ep=cr?Symbol.for("react.strict_mode"):60108,_p=cr?Symbol.for("react.profiler"):60114,kp=cr?Symbol.for("react.provider"):60109,Op=cr?Symbol.for("react.context"):60110,sy=cr?Symbol.for("react.async_mode"):60111,w2=cr?Symbol.for("react.concurrent_mode"):60111,Pp=cr?Symbol.for("react.forward_ref"):60112,Tp=cr?Symbol.for("react.suspense"):60113,TN=cr?Symbol.for("react.suspense_list"):60120,Mp=cr?Symbol.for("react.memo"):60115,Ip=cr?Symbol.for("react.lazy"):60116,MN=cr?Symbol.for("react.block"):60121,IN=cr?Symbol.for("react.fundamental"):60117,AN=cr?Symbol.for("react.responder"):60118,LN=cr?Symbol.for("react.scope"):60119;function gi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ay:switch(e=e.type,e){case sy:case w2:case Sp:case _p:case Ep:case Tp:return e;default:switch(e=e&&e.$$typeof,e){case Op:case Pp:case Ip:case Mp:case kp:return e;default:return t}}case oy:return t}}}function kw(e){return gi(e)===w2}Rt.AsyncMode=sy,Rt.ConcurrentMode=w2,Rt.ContextConsumer=Op,Rt.ContextProvider=kp,Rt.Element=ay,Rt.ForwardRef=Pp,Rt.Fragment=Sp,Rt.Lazy=Ip,Rt.Memo=Mp,Rt.Portal=oy,Rt.Profiler=_p,Rt.StrictMode=Ep,Rt.Suspense=Tp,Rt.isAsyncMode=function(e){return kw(e)||gi(e)===sy},Rt.isConcurrentMode=kw,Rt.isContextConsumer=function(e){return gi(e)===Op},Rt.isContextProvider=function(e){return gi(e)===kp},Rt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ay},Rt.isForwardRef=function(e){return gi(e)===Pp},Rt.isFragment=function(e){return gi(e)===Sp},Rt.isLazy=function(e){return gi(e)===Ip},Rt.isMemo=function(e){return gi(e)===Mp},Rt.isPortal=function(e){return gi(e)===oy},Rt.isProfiler=function(e){return gi(e)===_p},Rt.isStrictMode=function(e){return gi(e)===Ep},Rt.isSuspense=function(e){return gi(e)===Tp},Rt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Sp||e===w2||e===_p||e===Ep||e===Tp||e===TN||typeof e=="object"&&e!==null&&(e.$$typeof===Ip||e.$$typeof===Mp||e.$$typeof===kp||e.$$typeof===Op||e.$$typeof===Pp||e.$$typeof===IN||e.$$typeof===AN||e.$$typeof===LN||e.$$typeof===MN)},Rt.typeOf=gi,EP.exports=Rt;var jN=EP.exports,ly=jN,NN={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},DN={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},RN={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_P={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},cy={};cy[ly.ForwardRef]=RN,cy[ly.Memo]=_P;function Ow(e){return ly.isMemo(e)?_P:cy[e.$$typeof]||NN}var FN=Object.defineProperty,zN=Object.getOwnPropertyNames,Pw=Object.getOwnPropertySymbols,BN=Object.getOwnPropertyDescriptor,HN=Object.getPrototypeOf,Tw=Object.prototype;function kP(e,t,n){if(typeof t!="string"){if(Tw){var r=HN(t);r&&r!==Tw&&kP(e,r,n)}var i=zN(t);Pw&&(i=i.concat(Pw(t)));for(var a=Ow(e),o=Ow(t),s=0;s<i.length;++s){var c=i[s];if(!DN[c]&&!(n&&n[c])&&!(o&&o[c])&&!(a&&a[c])){var d=BN(t,c);try{FN(e,c,d)}catch{}}}}return e}var GN=kP;const VN=uc(GN);var Ri={};function ua(){return(ua=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Mw=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},uy=function(e){return e!==null&&typeof e=="object"&&(e.toString?e.toString():Object.prototype.toString.call(e))==="[object Object]"&&!SP.typeOf(e)},x2=Object.freeze([]),Rs=Object.freeze({});function Zu(e){return typeof e=="function"}function Iw(e){return e.displayName||e.name||"Component"}function Q6(e){return e&&typeof e.styledComponentId=="string"}var qu=typeof uk<"u"&&Ri!==void 0&&(Ri.REACT_APP_SC_ATTR||Ri.SC_ATTR)||"data-styled",J6=typeof window<"u"&&"HTMLElement"in window,UN=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof uk<"u"&&Ri!==void 0&&(Ri.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Ri.REACT_APP_SC_DISABLE_SPEEDY!==""?Ri.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Ri.REACT_APP_SC_DISABLE_SPEEDY:Ri.SC_DISABLE_SPEEDY!==void 0&&Ri.SC_DISABLE_SPEEDY!==""&&Ri.SC_DISABLE_SPEEDY!=="false"&&Ri.SC_DISABLE_SPEEDY)),WN={};function ic(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" 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<n;i++)r+=this.groupSizes[i];return r},t.insertRules=function(n,r){if(n>=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<o;s++)this.groupSizes[s]=0}for(var c=this.indexOfGroup(n+1),d=0,h=r.length;d<h;d++)this.tag.insertRule(c,r[d])&&(this.groupSizes[n]++,c++)},t.clearGroup=function(n){if(n<this.length){var r=this.groupSizes[n],i=this.indexOfGroup(n),a=i+r;this.groupSizes[n]=0;for(var o=i;o<a;o++)this.tag.deleteRule(i)}},t.getGroup=function(n){var r="";if(n>=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],a=this.indexOfGroup(n),o=a+i,s=a;s<o;s++)r+=this.tag.getRule(s)+`/*!sc*/
|
|
`;return r},e}(),Ap=new Map,C2=new Map,zh=1,Y1=function(e){if(Ap.has(e))return Ap.get(e);for(;C2.has(zh);)zh++;var t=zh++;return Ap.set(e,t),C2.set(t,e),t},YN=function(e){return C2.get(e)},KN=function(e,t){t>=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<o;a++)(r=i[a])&&e.registerName(t,r)},QN=function(e,t){for(var n=(t.textContent||"").split(`/*!sc*/
|
|
`),r=[],i=0,a=n.length;i<a;i++){var o=n[i].trim();if(o){var s=o.match(qN);if(s){var c=0|parseInt(s[1],10),d=s[2];c!==0&&(KN(d,c),$N(e,d,s[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(o)}}},JN=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null},OP=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(s){for(var c=s.childNodes,d=c.length;d>=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<s;o++){var c=a[o];if(c.ownerNode===i)return c}ic(17)}(r),this.length=0}var t=e.prototype;return t.insertRule=function(n,r){try{return this.sheet.insertRule(r,n),this.length++,!0}catch{return!1}},t.deleteRule=function(n){this.sheet.deleteRule(n),this.length--},t.getRule=function(n){var r=this.sheet.cssRules[n];return r!==void 0&&typeof r.cssText=="string"?r.cssText:""},e}(),tD=function(){function e(n){var r=this.element=OP(n);this.nodes=r.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(n,r){if(n<=this.length&&n>=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 n<this.length?this.nodes[n].textContent:""},e}(),nD=function(){function e(n){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(n,r){return n<=this.length&&(this.rules.splice(n,0,r),this.length++,!0)},t.deleteRule=function(n){this.rules.splice(n,1),this.length--},t.getRule=function(n){return n<this.length?this.rules[n]:""},e}(),Aw=J6,rD={isServer:!J6,useCSSOMInjection:!UN},S2=function(){function e(n,r,i){n===void 0&&(n=Rs),r===void 0&&(r={}),this.options=ua({},rD,{},n),this.gs=r,this.names=new Map(i),this.server=!!n.isServer,!this.server&&J6&&Aw&&(Aw=!1,function(a){for(var o=document.querySelectorAll(ZN),s=0,c=o.length;s<c;s++){var d=o[s];d&&d.getAttribute(qu)!=="active"&&(QN(a,d),d.parentNode&&d.parentNode.removeChild(d))}}(this))}e.registerId=function(n){return Y1(n)};var t=e.prototype;return t.reconstructWithOptions=function(n,r){return r===void 0&&(r=!0),new e(ua({},this.options,{},n),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(n){return this.gs[n]=(this.gs[n]||0)+1},t.getTag=function(){return this.tag||(this.tag=(i=(r=this.options).isServer,a=r.useCSSOMInjection,o=r.target,n=i?new nD(o):a?new eD(o):new tD(o),new XN(n)));var n,r,i,a,o},t.hasNameForId=function(n,r){return this.names.has(n)&&this.names.get(n).has(r)},t.registerName=function(n,r){if(Y1(n),this.names.has(n))this.names.get(n).add(r);else{var i=new Set;i.add(r),this.names.set(n,i)}},t.insertRules=function(n,r,i){this.registerName(n,r),this.getTag().insertRules(Y1(n),i)},t.clearNames=function(n){this.names.has(n)&&this.names.get(n).clear()},t.clearRules=function(n){this.getTag().clearGroup(Y1(n)),this.clearNames(n)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(n){for(var r=n.getTag(),i=r.length,a="",o=0;o<i;o++){var s=YN(o);if(s!==void 0){var c=n.names.get(s),d=r.getGroup(o);if(c&&d&&c.size){var h=qu+".g"+o+'[id="'+s+'"]',b="";c!==void 0&&c.forEach(function(m){m.length>0&&(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<e.length;t+=1){var n=e[t];if(Zu(n)&&!Q6(n))return!1}return!0}var aD=PP("5.3.11"),oD=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&TP(t),this.componentId=n,this.baseHash=ku(aD,n),this.baseStyle=r,S2.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var i=this.componentId,a=[];if(this.baseStyle&&a.push(this.baseStyle.generateAndInjectStyles(t,n,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(i,this.staticRulesId))a.push(this.staticRulesId);else{var o=ac(this.rules,t,n,r).join(""),s=dy(ku(this.baseHash,o)>>>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<d;m++){var g=this.rules[m];if(typeof g=="string")b+=g;else if(g){var v=ac(g,t,n,r),w=Array.isArray(v)?v.join(""):v;h=ku(h,w+m),b+=w}}if(b){var k=dy(h>>>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;o<s;o+=1)(i=ac(e[o],t,n,r))!==""&&(Array.isArray(i)?a.push.apply(a,i):a.push(i));return a}if(Nw(e))return"";if(Q6(e))return"."+e.styledComponentId;if(Zu(e)){if(typeof(d=e)!="function"||d.prototype&&d.prototype.isReactComponent||!t)return e;var c=e(t);return ac(c,t,n,r)}var d;return e instanceof jP?n?(e.inject(n,r),e.getName(r)):e:uy(e)?function h(b,m){var g,v,w=[];for(var k in b)b.hasOwnProperty(k)&&!Nw(b[k])&&(Array.isArray(b[k])&&b[k].isCss||Zu(b[k])?w.push(jw(k)+":",b[k],";"):uy(b[k])?w.push.apply(w,h(b[k],k)):w.push(jw(k)+": "+(g=k,(v=b[k])==null||typeof v=="boolean"||v===""?"":typeof v!="number"||v===0||g in kN||g.startsWith("--")?String(v).trim():v+"px")+";"));return m?[m+" {"].concat(w,["}"]):w}(e):e.toString()}var Dw=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function X(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Zu(e)||uy(e)?Dw(ac(Mw(x2,[e].concat(n)))):n.length===0&&e.length===1&&typeof e[0]=="string"?e:Dw(ac(Mw(e,n)))}var NP=function(e,t,n){return n===void 0&&(n=Rs),e.theme!==n.theme&&e.theme||t||n.theme},gD=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/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<t;r++)n[r-1]=arguments[r];for(var i=0,a=n;i<a.length;i++){var o=a[i];if(fy(o))for(var s in o)vD(s)&&yD(e,o[s],s)}return e}var $u=y.createContext();$u.Consumer;function bD(e){var t=V.useContext($u),n=V.useMemo(function(){return function(r,i){if(!r)return ic(14);if(Zu(r)){var a=r(i);return a}return Array.isArray(r)||typeof r!="object"?ic(8):i?ua({},i,{},r):r}(e.theme,t)},[e.theme,t]);return e.children?y.createElement($u.Provider,{value:n},e.children):null}var I5={};function RP(e,t,n){var r=Q6(e),i=!K1(e),a=t.attrs,o=a===void 0?x2:a,s=t.componentId,c=s===void 0?function(_,f){var x=typeof _!="string"?"sc":M5(_);I5[x]=(I5[x]||0)+1;var E=x+"-"+e8("5.3.11"+x+I5[x]);return f?f+"-"+E:E}(t.displayName,t.parentComponentId):s,d=t.displayName,h=d===void 0?function(_){return K1(_)?"styled."+_:"Styled("+Iw(_)+")"}(e):d,b=t.displayName&&t.componentId?M5(t.displayName)+"-"+t.componentId:t.componentId||c,m=r&&e.attrs?Array.prototype.concat(e.attrs,o).filter(Boolean):o,g=t.shouldForwardProp;r&&e.shouldForwardProp&&(g=t.shouldForwardProp?function(_,f,x){return e.shouldForwardProp(_,f,x)&&t.shouldForwardProp(_,f,x)}:e.shouldForwardProp);var v,w=new oD(n,b,r?e.componentStyle:void 0),k=w.isStatic&&o.length===0,C=function(_,f){return function(x,E,M,j){var P=x.attrs,N=x.componentStyle,T=x.defaultProps,R=x.foldedComponentIds,z=x.shouldForwardProp,H=x.styledComponentId,J=x.target,q=function(we,W,D){we===void 0&&(we=Rs);var B=ua({},W,{theme:we}),ee={};return D.forEach(function(ue){var ve,se,Ie,Ae=ue;for(ve in Zu(Ae)&&(Ae=Ae(B)),Ae)B[ve]=ee[ve]=ve==="className"?(se=ee[ve],Ie=Ae[ve],se&&Ie?se+" "+Ie:se||Ie):Ae[ve]}),[B,ee]}(NP(E,V.useContext($u),T)||Rs,E,P),Y=q[0],le=q[1],K=function(we,W,D,B){var ee=AP(),ue=LP(),ve=W?we.generateAndInjectStyles(Rs,ee,ue):we.generateAndInjectStyles(D,ee,ue);return ve}(N,j,Y),ce=M,ne=le.$as||E.$as||le.as||E.as||J,oe=K1(ne),Q=le!==E?ua({},E,{},le):E,$={};for(var re in Q)re[0]!=="$"&&re!=="as"&&(re==="forwardedAs"?$.as=Q[re]:(z?z(re,_w,ne):!oe||_w(re))&&($[re]=Q[re]));return E.style&&le.style!==E.style&&($.style=ua({},E.style,{},le.style)),$.className=Array.prototype.concat(R,H,K!==H?K:null,E.className,le.className).filter(Boolean).join(" "),$.ref=ce,V.createElement(ne,$)}(v,_,f,k)};return C.displayName=h,(v=y.forwardRef(C)).attrs=m,v.componentStyle=w,v.displayName=h,v.shouldForwardProp=g,v.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):x2,v.styledComponentId=b,v.target=r?e.target:e,v.withComponent=function(_){var f=t.componentId,x=function(M,j){if(M==null)return{};var P,N,T={},R=Object.keys(M);for(N=0;N<R.length;N++)P=R[N],j.indexOf(P)>=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;r<t;r++)n[r-1]=arguments[r];var i=X.apply(void 0,[e].concat(n)),a="sc-global-"+e8(JSON.stringify(i)),o=new wD(i,a);function s(d){var h=AP(),b=LP(),m=V.useContext($u),g=V.useRef(h.allocateGSInstance(a)).current;return h.server&&c(g,d,h,m,b),V.useLayoutEffect(function(){if(!h.server)return c(g,d,h,m,b),function(){return o.removeStyles(g,h)}},[g,d,h,m,b]),null}function c(d,h,b,m,g){if(o.isStatic)o.renderStyles(d,WN,b,g);else{var v=ua({},h,{theme:NP(h,m,s.defaultProps)});o.renderStyles(d,v,b,g)}}return y.memo(s)}function t8(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=X.apply(void 0,[e].concat(n)).join(""),a=e8(i);return new jP(a,i)}var xD=function(){return V.useContext($u)},Lp={exports:{}};Lp.exports,function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,a=16,o=9007199254740991,s="[object Arguments]",c="[object Array]",d="[object AsyncFunction]",h="[object Boolean]",b="[object Date]",m="[object Error]",g="[object Function]",v="[object GeneratorFunction]",w="[object Map]",k="[object Number]",C="[object Null]",_="[object Object]",f="[object Proxy]",x="[object RegExp]",E="[object Set]",M="[object String]",j="[object Undefined]",P="[object WeakMap]",N="[object ArrayBuffer]",T="[object DataView]",R="[object Float32Array]",z="[object Float64Array]",H="[object Int8Array]",J="[object Int16Array]",q="[object Int32Array]",Y="[object Uint8Array]",le="[object Uint8ClampedArray]",K="[object Uint16Array]",ce="[object Uint32Array]",ne=/[\\^$.*+?()[\]{}|]/g,oe=/^\[object .+?Constructor\]$/,Q=/^(?:0|[1-9]\d*)$/,$={};$[R]=$[z]=$[H]=$[J]=$[q]=$[Y]=$[le]=$[K]=$[ce]=!0,$[s]=$[c]=$[N]=$[h]=$[T]=$[b]=$[m]=$[g]=$[w]=$[k]=$[_]=$[x]=$[E]=$[M]=$[P]=!1;var re=typeof ks=="object"&&ks&&ks.Object===Object&&ks,we=typeof self=="object"&&self&&self.Object===Object&&self,W=re||we||Function("return this")(),D=t&&!t.nodeType&&t,B=D&&!0&&e&&!e.nodeType&&e,ee=B&&B.exports===D,ue=ee&&re.process,ve=function(){try{var U=B&&B.require&&B.require("util").types;return U||ue&&ue.binding&&ue.binding("util")}catch{}}(),se=ve&&ve.isTypedArray;function Ie(U,te,pe){switch(pe.length){case 0:return U.call(te);case 1:return U.call(te,pe[0]);case 2:return U.call(te,pe[0],pe[1]);case 3:return U.call(te,pe[0],pe[1],pe[2])}return U.apply(te,pe)}function Ae(U,te){for(var pe=-1,Fe=Array(U);++pe<U;)Fe[pe]=te(pe);return Fe}function Se(U){return function(te){return U(te)}}function Ne(U,te){return U?.[te]}function Me(U,te){return function(pe){return U(te(pe))}}var Ye=Array.prototype,He=Function.prototype,We=Object.prototype,_t=W["__core-js_shared__"],gt=He.toString,mt=We.hasOwnProperty,Ge=function(){var U=/[^.]+$/.exec(_t&&_t.keys&&_t.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),Ve=We.toString,Mn=gt.call(Object),Dn=RegExp("^"+gt.call(mt).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fn=ee?W.Buffer:void 0,Fo=W.Symbol,Pe=W.Uint8Array;fn&&fn.allocUnsafe;var Ze=Me(Object.getPrototypeOf,Object),Pt=Object.create,kt=We.propertyIsEnumerable,En=Ye.splice,Vt=Fo?Fo.toStringTag:void 0,on=function(){try{var U=Uo(Object,"defineProperty");return U({},"",{}),U}catch{}}(),si=fn?fn.isBuffer:void 0,Ca=Math.max,Sa=Date.now,Ke=Uo(W,"Map"),et=Uo(Object,"create"),It=function(){function U(){}return function(te){if(!$a(te))return{};if(Pt)return Pt(te);U.prototype=te;var pe=new U;return U.prototype=void 0,pe}}();function Qt(U){var te=-1,pe=U==null?0:U.length;for(this.clear();++te<pe;){var Fe=U[te];this.set(Fe[0],Fe[1])}}function In(){this.__data__=et?et(null):{},this.size=0}function _i(U){var te=this.has(U)&&delete this.__data__[U];return this.size-=te?1:0,te}function li(U){var te=this.__data__;if(et){var pe=te[U];return pe===r?void 0:pe}return mt.call(te,U)?te[U]:void 0}function gc(U){var te=this.__data__;return et?te[U]!==void 0:mt.call(te,U)}function mc(U,te){var pe=this.__data__;return this.size+=this.has(U)?0:1,pe[U]=et&&te===void 0?r:te,this}Qt.prototype.clear=In,Qt.prototype.delete=_i,Qt.prototype.get=li,Qt.prototype.has=gc,Qt.prototype.set=mc;function ci(U){var te=-1,pe=U==null?0:U.length;for(this.clear();++te<pe;){var Fe=U[te];this.set(Fe[0],Fe[1])}}function yd(){this.__data__=[],this.size=0}function Za(U){var te=this.__data__,pe=yc(te,U);if(pe<0)return!1;var Fe=te.length-1;return pe==Fe?te.pop():En.call(te,pe,1),--this.size,!0}function Gn(U){var te=this.__data__,pe=yc(te,U);return pe<0?void 0:te[pe][1]}function Gr(U){return yc(this.__data__,U)>-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();++te<pe;){var Fe=U[te];this.set(Fe[0],Fe[1])}}function vc(){this.size=0,this.__data__={hash:new Qt,map:new(Ke||ci),string:new Qt}}function Rm(U){var te=tl(this,U).delete(U);return this.size-=te?1:0,te}function Fm(U){return tl(this,U).get(U)}function zm(U){return tl(this,U).has(U)}function Bm(U,te){var pe=tl(this,U),Fe=pe.size;return pe.set(U,te),this.size+=pe.size==Fe?0:1,this}zo.prototype.clear=vc,zo.prototype.delete=Rm,zo.prototype.get=Fm,zo.prototype.has=zm,zo.prototype.set=Bm;function Bo(U){var te=this.__data__=new ci(U);this.size=te.size}function Hm(){this.__data__=new ci,this.size=0}function Gm(U){var te=this.__data__,pe=te.delete(U);return this.size=te.size,pe}function Vm(U){return this.__data__.get(U)}function Um(U){return this.__data__.has(U)}function Wm(U,te){var pe=this.__data__;if(pe instanceof ci){var Fe=pe.__data__;if(!Ke||Fe.length<n-1)return Fe.push([U,te]),this.size=++pe.size,this;pe=this.__data__=new zo(Fe)}return pe.set(U,te),this.size=pe.size,this}Bo.prototype.clear=Hm,Bo.prototype.delete=Gm,Bo.prototype.get=Vm,Bo.prototype.has=Um,Bo.prototype.set=Wm;function Xm(U,te){var pe=il(U),Fe=!pe&&_d(U),vt=!pe&&!Fe&&Sc(U),Bt=!pe&&!Fe&&!vt&&V0(U),Ct=pe||Fe||vt||Bt,dt=Ct?Ae(U.length,String):[],At=dt.length;for(var yr in U)Ct&&(yr=="length"||vt&&(yr=="offset"||yr=="parent")||Bt&&(yr=="buffer"||yr=="byteLength"||yr=="byteOffset")||z0(yr,At))||dt.push(yr);return dt}function wd(U,te,pe){(pe!==void 0&&!_a(U[te],pe)||pe===void 0&&!(te in U))&&Js(U,te,pe)}function Ym(U,te,pe){var Fe=U[te];(!(mt.call(U,te)&&_a(Fe,pe))||pe===void 0&&!(te in U))&&Js(U,te,pe)}function yc(U,te){for(var pe=U.length;pe--;)if(_a(U[pe][0],te))return pe;return-1}function Js(U,te,pe){te=="__proto__"&&on?on(U,te,{configurable:!0,enumerable:!0,value:pe,writable:!0}):U[te]=pe}var el=R0();function Ho(U){return U==null?U===void 0?j:C:Vt&&Vt in Object(U)?F0(U):Cc(U)}function bc(U){return sn(U)&&Ho(U)==s}function Km(U){if(!$a(U)||xc(U))return!1;var te=Ec(U)?Dn:oe;return te.test(Ed(U))}function xd(U){return sn(U)&&G0(U.length)&&!!$[Ho(U)]}function Go(U){if(!$a(U))return rl(U);var te=nl(U),pe=[];for(var Fe in U)Fe=="constructor"&&(te||!mt.call(U,Fe))||pe.push(Fe);return pe}function Ki(U,te,pe,Fe,vt){U!==te&&el(te,function(Bt,Ct){if(vt||(vt=new Bo),$a(Bt))Ut(U,te,Ct,pe,Ki,Fe,vt);else{var dt=Fe?Fe(Cd(U,Ct),Bt,Ct+"",U,te,vt):void 0;dt===void 0&&(dt=Bt),wd(U,Ct,dt)}},U0)}function Ut(U,te,pe,Fe,vt,Bt,Ct){var dt=Cd(U,pe),At=Cd(te,pe),yr=Ct.get(At);if(yr){wd(U,pe,yr);return}var nr=Bt?Bt(dt,At,pe+"",U,te,Ct):void 0,rr=nr===void 0;if(rr){var br=il(At),Zi=!br&&Sc(At),Oi=!br&&!Zi&&V0(At);nr=At,br||Zi||Oi?il(dt)?nr=dt:H0(dt)?nr=Vo(dt):Zi?(rr=!1,nr=tr(At)):Oi?(rr=!1,nr=qa(At)):nr=[]:kd(At)||_d(At)?(nr=dt,_d(dt)?nr=Od(dt):(!$a(dt)||Ec(dt))&&(nr=ui(At))):rr=!1}rr&&(Ct.set(At,nr),vt(nr,At,Fe,Bt,Ct),Ct.delete(At)),wd(U,pe,nr)}function zt(U,te){return Sd($m(U,te,W0),U+"")}var Ea=on?function(U,te){return on(U,"toString",{configurable:!0,enumerable:!1,value:ki(te),writable:!0})}:W0;function tr(U,te){return U.slice()}function mr(U){var te=new U.constructor(U.byteLength);return new Pe(te).set(new Pe(U)),te}function qa(U,te){var pe=mr(U.buffer);return new U.constructor(pe,U.byteOffset,U.length)}function Vo(U,te){var pe=-1,Fe=U.length;for(te||(te=Array(Fe));++pe<Fe;)te[pe]=U[pe];return te}function vr(U,te,pe,Fe){var vt=!pe;pe||(pe={});for(var Bt=-1,Ct=te.length;++Bt<Ct;){var dt=te[Bt],At=void 0;At===void 0&&(At=U[dt]),vt?Js(pe,dt,At):Ym(pe,dt,At)}return pe}function wc(U){return zt(function(te,pe){var Fe=-1,vt=pe.length,Bt=vt>1?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<vt;){var dt=pe[Fe];dt&&U(te,dt,Fe,Bt)}return te})}function R0(U){return function(te,pe,Fe){for(var vt=-1,Bt=Object(te),Ct=Fe(te),dt=Ct.length;dt--;){var At=Ct[++vt];if(pe(Bt[At],At,Bt)===!1)break}return te}}function tl(U,te){var pe=U.__data__;return qm(te)?pe[typeof te=="string"?"string":"hash"]:pe.map}function Uo(U,te){var pe=Ne(U,te);return Km(pe)?pe:void 0}function F0(U){var te=mt.call(U,Vt),pe=U[Vt];try{U[Vt]=void 0;var Fe=!0}catch{}var vt=Ve.call(U);return Fe&&(te?U[Vt]=pe:delete U[Vt]),vt}function ui(U){return typeof U.constructor=="function"&&!nl(U)?It(Ze(U)):{}}function z0(U,te){var pe=typeof U;return te=te??o,!!te&&(pe=="number"||pe!="symbol"&&Q.test(U))&&U>-1&&U%1==0&&U<te}function Zm(U,te,pe){if(!$a(pe))return!1;var Fe=typeof te;return(Fe=="number"?bt(pe)&&z0(te,pe.length):Fe=="string"&&te in pe)?_a(pe[te],U):!1}function qm(U){var te=typeof U;return te=="string"||te=="number"||te=="symbol"||te=="boolean"?U!=="__proto__":U===null}function xc(U){return!!Ge&&Ge in U}function nl(U){var te=U&&U.constructor,pe=typeof te=="function"&&te.prototype||We;return U===pe}function rl(U){var te=[];if(U!=null)for(var pe in Object(U))te.push(pe);return te}function Cc(U){return Ve.call(U)}function $m(U,te,pe){return te=Ca(te===void 0?U.length-1:te,0),function(){for(var Fe=arguments,vt=-1,Bt=Ca(Fe.length-te,0),Ct=Array(Bt);++vt<Bt;)Ct[vt]=Fe[te+vt];vt=-1;for(var dt=Array(te+1);++vt<te;)dt[vt]=Fe[vt];return dt[te]=pe(Ct),Ie(U,this,dt)}}function Cd(U,te){if(!(te==="constructor"&&typeof U[te]=="function")&&te!="__proto__")return U[te]}var Sd=B0(Ea);function B0(U){var te=0,pe=0;return function(){var Fe=Sa(),vt=a-(Fe-pe);if(pe=Fe,vt>0){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);n<t;n++)r[n]=e[n];return r}function ED(e){if(Array.isArray(e))return py(e)}function FP(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function n8(e,t){if(e){if(typeof e=="string")return py(e,t);var n={}.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)?py(e,t):void 0}}function _D(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function an(e){return ED(e)||FP(e)||n8(e)||_D()}function xe(e,t){var n=function(i){return"Sfx".concat(e).concat(i?"-".concat(i):"")},r=[];return t&&(Array.isArray(t)?r.push.apply(r,an(t.filter(function(i){return typeof i=="string"}).map(function(i){return n(i)}))):typeof t=="string"&&r.push(n(t))),r.length===0&&r.push(n()),r.join(" ")}function ut(e,t){var n=V.forwardRef(e);return n.displayName=e.name,n}function kD(e){return Object.keys(e)}function lt(e){return Object.values(e)}function OD(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return typeof e=="function"?e.apply(void 0,n):e}function Dt(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return r.displayName="".concat(n),Object.assign(t,I({},n,r))},{})}function Rw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function r8(e,t){return V.useMemo(function(){return e==null&&t==null?null:function(n){Rw(e,n),Rw(t,n)}},[e,t])}function Rc(e){var t=arguments.length>1&&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<e;n++)t[n]=arguments[n];return"#".concat(t.map(zP).join(""))},PD=function(e,t,n){var r=n/100,i=t*Math.min(r,1-r)/100,a=function(o){var s=(o+e/30)%12,c=r-i*Math.max(Math.min(s-3,9-s,1),-1);return zP(Math.round(255*c))};return"#".concat(a(0)).concat(a(8)).concat(a(4))},Fw=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2];r/=255,i/=255,a/=255;var o=Math.min(r,i,a),s=Math.max(r,i,a),c,d,h=(s+o)/2;if(s===o)c=0,d=0;else{var b=s-o;switch(d=h>.5?b/(2-s-o):b/(s+o),s){case r:c=(i-a)/b+(i<a?6:0);break;case i:c=(a-r)/b+2;break;case a:c=(r-i)/b+4;break;default:c=0}c/=6}return[Math.round(c*360),Math.round(d*100),Math.round(h*100)]},L5=function(e){if(e.startsWith("#")){var t=e;return e.length===4&&(t="#".concat(e[1]).concat(e[1]).concat(e[2]).concat(e[2]).concat(e[3]).concat(e[3])),Fw.apply(void 0,an(jp(t)))}if(e.startsWith("rgb")){var n=i8(e);return Fw.apply(void 0,an(n))}return typeof e=="string"?[0,0,0]:e},zw=function(e){return e.startsWith("#")?e.length===7?e:"#".concat(e[0]).concat(e[0]).concat(e[1]).concat(e[1]).concat(e[2]).concat(e[2]):e.startsWith("rgb")?BP.apply(void 0,an(i8(e))):typeof e=="string"?"#000000":e},HP=function(e,t){return t===0&&(e===0||e===1)},GP=function(e,t){return e===0&&t===1},TD=function(e,t,n){var r=t,i=(2-t)*n/2;i!==0&&(i===1?r=0:i<.5?r=r*n/(i*2):r=r*n/(2-i*2));var a=HP(r,i);return[a||GP(r,i)?0:e,a?0:Math.round(r*100),Math.round(i*100)]},MD=function(e,t,n){var r=t,i=n*2;r*=i<=1?i:2-i;var a=(i+r)/2;r=2*r/(i+r);var o=HP(r,n);return[o||GP(r,n)?0:e,o?0:Math.round(r*100),Math.round(a*100)]},Bw=function(e){return/^#[\da-f]{6}$/i.test(e)};function pl(e){if(!e)return null;var t=e.getBoundingClientRect(),n=document,r=n.body,i=document.documentElement,a=window.pageYOffset||i.scrollTop||r.scrollTop,o=window.pageXOffset||i.scrollLeft||r.scrollLeft,s=i.clientTop||r.clientTop||0,c=i.clientLeft||r.clientLeft||0,d=t.top+a-s,h=t.left+o-c;return{top:Math.round(d),left:Math.round(h),width:t.width,height:t.height}}function VP(e,t){return e-t}function j5(e,t,n){return(e-t)*100/(n-t)}function ID(e,t,n){return(n-t)*e+t}function AD(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+Number.parseInt(t[1],10)}var r=e.toString().split(".")[1];return r?r.length:0}function LD(e,t,n){var r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(AD(t)))}function Hw(e){var t=e.values,n=e.newValue,r=e.index,i=t.slice();return i[r]=n,i.sort(VP)}function jD(e,t){var n=e.reduce(function(i,a,o){var s=Math.abs(t-a);return i===null||s<i.distance||s===i.distance?{distance:s,index:o}:i},null),r=n.index;return r}function Np(e){return e&&e.ownerDocument||document}function N5(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function Z1(e,t){if(t.current!==void 0&&e.changedTouches){for(var n=0;n<e.changedTouches.length;n+=1){var r=e.changedTouches[n];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}var D5={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}};function q1(e){var t=e.sliderRef,n=e.activeIndex,r=e.setActive,i=Np(t.current);if(!t.current.contains(i.activeElement)||Number(i.activeElement.getAttribute("data-index"))!==n){var a;(a=t.current.querySelector('[type="range"][data-index="'.concat(n,'"]')))===null||a===void 0||a.focus()}r&&r(n)}var L={TextPrimary:"txt-primary",TextSecondary:"txt-secondary",TextSecondaryInvert:"txt-secondary-invert",TextPlaceholder:"txt-placeholder",TextWarning:"txt-warning",TextError:"txt-error",TextInfo:"txt-info",AccentPrimary:"accent-primary",AccentPrimaryHover:"accent-primary-hover",AccentPrimaryActive:"accent-primary-active",AccentPrimaryDisabled:"accent-primary-disabled",AccentSecondaryDisabled:"accent-secondary-disabled",AccentStateless:"accent-stateless",AccentStateless_0_4_Opacity:"accent-stateless_0_4_opacity",Accent_0_5_Opacity:"accent_0_5_opacity",Accent_1_2_Opacity:"accent_1_2_opacity",Accent_1_8_Opacity:"accent_1_8_opacity",Accent_2_8_Opacity:"accent_2_8_opacity",Accent_4_0_Opacity:"accent_4_0_opacity",BackgroundGrey:"bg-grey",BackgroundStateless:"bg-stateless",BackgroundActive:"bg-active",BackgroundBaseLight:"bg-base-light",BackgroundBaseMedium:"bg-base-medium",BackgroundPrimary:"bg-primary",BackgroundPrimaryLight:"bg-primary-light",BackgroundPrimaryHover:"bg-primary-hover",BackgroundPrimaryActive:"bg-primary-active",BackgroundPrimaryStateless:"bg-primary-stateless",BackgroundPrimary_0_5_Opacity:"bg-primary-0-5-opacity",BackgroundSecondary:"bg-secondary",BackgroundHover:"bg-hover",BackgroundGreen:"bg-green",BackgroundGreenMedium:"bg-green-medium",BackgroundBlue:"bg-blue",BackgroundRed:"bg-red",BackgroundRedLight:"bg-red-light",BackgroundRedMedium:"background-red-medium",BackgroundOrange:"bg-orange",BackgroundTooltip:"bg-tooltip",IconsPrimary:"icon-primary",IconsPrimaryOpacity_0_6:"icons-primary-opacity-0-6",IconsSecondary:"icons-secondary",IconsPlaceholder:"icons-placeholder",IconsInvert:"icons-invert",IconsMuted:"icons-muted",IconsPrimaryHover:"icons-primary-hover",IconsSecondaryHover:"icons-secondary-hover",ButtonPrimaryText:"btn-primary-text",ButtonPrimaryText_0_6:"btn-primary-text-0-6",ButtonPrimaryText_0_4:"btn-primary-text-0-4",ButtonDisabledText:"btn-disabled-text",ButtonSecondaryText:"btn-secondary-text",LinkPrimary:"link-primary",LinkStateless:"link-stateless",LinkHover:"link-hover",LinkActive:"link-active",LinkMuted:"link-muted",LinkPressed:"link-pressed",BordersPrimary:"borders-primary",BordersPrimaryHover:"borders-primary-hover",BordersSecondary:"borders-secondary",BordersStrong:"borders-strong",BordersInvert:"borders-invert",BorderHoverBottom:"border-hover-bottom",BorderActiveBottom:"border-active-bottom",BorderPrimaryStateless:"border-primary-stateless",BordersDisabled:"borders-disabled",BordersButton:"borders-button",BordersItem:"borders-item",BordersBaseLight:"borders-base-light",BordersBaseMedium:"borders-base-medium",BordersGreen:"borders-green",BordersGreenMedium:"borders-green-medium",BordersRed:"borders-red",ActiveSecondary:"active-secondary",ActiveSecondaryHover:"active-secondary-hover",Tag:"tag",StatesErrorDisabledText:"states-error-disabled-text",Error:"error",Error_0_28_Opacity:"error-0-28-opacity",Error_0_12_Opacity:"error-0-12-opacity",ErrorHover:"error-hover",ErrorActive:"error-active",Success:"success",SuccessHover:"success-hover",SuccessActive:"success-Active",Warning:"warning",WarningHover:"warning-hover",WarningActive:"warning-active",Info:"info",Modified:"modified",Red:"red",Orange:"orange",Salad:"salad",Green:"green",Blue:"blue",Indigo:"indigo",Violet:"violet",Pink:"pink",GradientRight:"gradient-right",Extra_0_3_Overlay:"extra-0-3-overlay",GradientRightActive:"gradient-right-active",GradientRightHover:"gradient-right-hover",Extra_0_5_Overlay:"extra-0-5-overlay",Extra_0_7_Overlay:"extra-0-7-overlay",Extra_0_9_Overlay:"extra-0-9-overlay",Red_0_1_Overlay:"red-0-1-overlay",Orange_0_1_Overlay:"orange-0-1-overlay",Accent_0_8_Overlay:"accent-0-8-overlay",Link:"link",Camera:"camera",GoogleDrive:"google-drive",Dropbox:"dropbox",OneDrive:"one-drive",Device:"device",Instagram:"instagram",FreeImages:"free-images",FreeIcons:"free-icons",Canvas:"canvas",Box:"box",ScreenCast:"screen-cast",Unsplash:"unsplash",LightShadow:"light-shadow",MediumShadow:"medium-shadow",LargeShadow:"large-shadow",XLargeShadow:"x-large-shadow"},UP=function(e){var t=e.theme.palette;return X(["scrollbar-color:"," ",";scrollbar-width:thin;::-webkit-scrollbar{width:12px;}::-webkit-scrollbar-track{margin-block:6px;}::-webkit-scrollbar-thumb{background:",";border:4px solid ",";border-radius:99px;padding:4px 6px;background-clip:padding-box;}"],t[L.IconsMuted],t[L.ActiveSecondary],t[L.Extra_0_3_Overlay],t[L.ActiveSecondary])},Mr={Xs:"xs",Sm:"sm",Md:"md",Lg:"lg",Xl:"xl",Xxl:"xxl",Xxxl:"xxxl"},qr={ShadowSm:"shadow-sm",ShadowMd:"shadow-md",ShadowLg:"shadow-lg",ShadowXl:"shadow-xl",Label:"label",Header:"header",HeaderPopup:"header-popup",FooterPopup:"footer-popup",LeftPanelMd:"left-panel-md",RightPanelMd:"right-panel-md",LeftPanelSm:"left-panel-sm",RightPanelSm:"right-panel-sm"},Jt={Regular:400,Medium:500},_e={TextExtraSmall:"text-extra-small",TextSmall:"text-small",TextSmallUp:"text-small-up",TextMedium:"text-medium",TextLarge:"text-large",TextExtraLarge:"text-extra-large",TextXExtraLarge:"text-x-extra-large",TitleH6:"title-h6",TitleH5:"title-h5",TitleH4:"title-h4",TitleH3:"title-h3",TitleH2:"title-h2",TitleH1:"title-h1",LabelExtraSmall:"label-extra-small",LabelExtraSmallEmphasis:"label-extra-small-emphasis",LabelExtraSmallUp:"label-extra-small-up",LabelSmall:"label-small",LabelSmallEmphasis:"label-small-emphasis",LabelSmallUp:"label-small-up",LabelSmallUpEmphasis:"label-small-up-emphasis",LabelMedium:"label-medium",LabelMediumEmphasis:"label-medium-emphasis",LabelLarge:"label-large",LabelLargeEmphasis:"label-large-emphasis",LabelLargeUp:"label-large-up",LabelExtraLargeEmphasis:"label-extra-large-emphasis",LabelExtraLarge:"label-extra-large",LabelXExtraLargeEmphasis:"label-x-extra-large-emphasis",LabelXExtraLarge:"label-x-extra-large",LabelXXExtraLargeEmphasis:"label-x-x-extra-large-emphasis",LabelXXExtraLarge:"label-x-x-extra-large",LabelXXXExtraLarge:"label-x-x-x-extra-large",ButtonSmEmphasis:"btn-sm-emphasis",ButtonSm:"btn-sm",ButtonSmUpEmphasis:"btn-sm-up-emphasis",ButtonSmUp:"btn-sm-up",ButtonMdEmphasis:"btn-md-emphasis",ButtonMd:"btn-md",ButtonLgEmphasis:"btn-lg-emphasis",ButtonLg:"btn-lg",ButtonLgUpEmphasis:"btn-lg-up-emphasis",ButtonLgUp:"btn-lg-up",LinkSmall:"link-small",LinkSmallEmphasis:"link-small-emphasis",LinkSmallUp:"link-small-up",LinkSmallUpEmphasis:"link-small-up-emphasis",LinkMedium:"link-medium",LinkMediumEmphasis:"link-medium-emphasis",LinkLarge:"link-large",LinkLargeEmphasis:"link-large-emphasis",LinkLargeUp:"link-large-up",LinkLargeUpEmphasis:"link-large-up-emphasis",InputSm:"input-sm",InputSmUp:"input-sm-up",InputMd:"input-md",InputLg:"input-lg"},ga={Sm:"sm",Md:"md",Lg:"lg"},ND=gm(["",";"],function(e){var t=e.theme,n=t.typography.baseLineHeight;return X(["h1,h2,h3,h4,h5,h6,p,small{line-height:",";}"],n)});function Gw(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 Ce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gw(Object(n),!0).forEach(function(r){I(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ue={fontFamily:'"Roboto"',fontStyle:"normal",fontWeight:Jt.Regular},WP=function(){var e,t=arguments.length>0&&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<o.length?d(m,o[o.indexOf(m)+1]):s(m)},b=function(m,g){var v=function(w){return w.slice(1)};return m>=n.xs&&m<n.sm?g?v(i.xs):i.xs:m>=n.sm&&m<n.md?g?v(i.sm):i.sm:m>=n.md&&m<n.lg?g?v(i.md):i.md:m>=n.lg&&m<n.xl?g?v(i.lg):i.lg:m>=n.xl&&m<n.xxl?g?v(i.xl):i.xl:m>=n.xxl&&m<n.xxxl?g?v(i.xxl):i.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<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uw(Object(n),!0).forEach(function(r){I(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var XD={borderRadius:I(I(I({},ga.Sm,"2px"),ga.Md,"4px"),ga.Lg,"8px")},YP=function(e){var t=e.children,n=e.theme,r=n===void 0?{}:n,i=r.palette,a=i===void 0?{}:i,o=r.breakpoints,s=o===void 0?{}:o,c=r.typography,d=c===void 0?{}:c,h=r.shape,b=h===void 0?{}:h,m=r.shadows,g=m===void 0?{}:m,v=V.useMemo(function(){var w=ms(ms({},GD),a),k=WD(s),C=ms(ms({},UD),g);return{palette:w,breakpoints:k,typography:XP(d),shape:ms({},SD(ms({},XD),ms({},b))),shadows:C}},[JSON.stringify(r)]);return y.createElement(bD,{theme:v},y.createElement(y.Fragment,null,OD(t,v),y.createElement(HD,null),y.createElement(ND,null)))},gy=XP();gy.baseLineHeight,gy.font;var YD=me(gy,["baseLineHeight","font"]);YP.propTypes={children:F.oneOfType([F.node,F.func,F.arrayOf(F.node)]).isRequired,theme:F.exact({breakpoints:F.exact({keys:F.arrayOf(F.string),values:F.exact(fl(lt(Mr),F.number)),classes:F.exact(fl(lt(Mr),F.string)),getBreakpointClass:F.func,up:F.func,down:F.func,between:F.func,only:F.func}),palette:F.exact(fl(lt(L),F.string)),shadows:F.exact(fl(lt(qr),F.string)),shape:F.exact({borderRadius:F.exact(fl(lt(ga),F.string))}),typography:F.exact(ms({baseLineHeight:F.oneOfType([F.string,F.number]),font:F.exact(fl(lt(_e),F.object))},fl(kD(YD),F.string)))})};function KP(e){if(Array.isArray(e))return e}function KD(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],c=!0,d=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(h){d=!0,i=h}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw i}}return s}}function ZP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oe(e,t){return KP(e)||KD(e,t)||n8(e,t)||ZP()}function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},he.apply(null,arguments)}var qP={exports:{}},E2={},_2={},ct={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._registerNode=e.Konva=e.glob=void 0;const t=Math.PI/180;function n(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}e.glob=typeof ks<"u"?ks:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},e.Konva={_global:e.glob,version:"9.3.20",isBrowser:n(),isUnminified:/param/.test(function(i){}.toString()),dblClickWindow:400,getAngle(i){return e.Konva.angleDeg?i*t:i},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_fixTextRendering:!1,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return e.Konva.DD.isDragging},isTransforming(){var i;return(i=e.Konva.Transformer)===null||i===void 0?void 0:i.isTransforming()},isDragReady(){return!!e.Konva.DD.node},releaseCanvasOnDestroy:!0,document:e.glob.document,_injectGlobal(i){e.glob.Konva=i}};const r=i=>{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.width<f.x||x.y>f.y+f.height||x.y+x.height<f.y)},cloneObject(f){const x={};for(const E in f)this._isPlainObject(f[E])?x[E]=this.cloneObject(f[E]):this._isArray(f[E])?x[E]=this.cloneArray(f[E]):x[E]=f[E];return x},cloneArray(f){return f.slice(0)},degToRad(f){return f*s},radToDeg(f){return f*c},_degToRad(f){return e.Util.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),e.Util.degToRad(f)},_radToDeg(f){return e.Util.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),e.Util.radToDeg(f)},_getRotation(f){return t.Konva.angleDeg?e.Util.radToDeg(f):f},_capitalize(f){return f.charAt(0).toUpperCase()+f.slice(1)},throw(f){throw new Error(g+f)},error(f){console.error(g+f)},warn(f){t.Konva.showWarnings&&console.warn(m+f)},each(f,x){for(const E in f)x(E,f[E])},_inRange(f,x,E){return x<=f&&f<E},_getProjectionToSegment(f,x,E,M,j,P){let N,T,R;const z=(f-E)*(f-E)+(x-M)*(x-M);if(z==0)N=f,T=x,R=(j-E)*(j-E)+(P-M)*(P-M);else{const H=((j-f)*(E-f)+(P-x)*(M-x))/z;H<0?(N=f,T=x,R=(f-j)*(f-j)+(x-P)*(x-P)):H>1?(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];J<j&&(M.x=z,M.y=H,j=J)}),M},_prepareArrayForTween(f,x,E){const M=[],j=[];if(f.length>x.length){const N=x;x=f,f=N}for(let N=0;N<f.length;N+=2)M.push({x:f[N],y:f[N+1]});for(let N=0;N<x.length;N+=2)j.push({x:x[N],y:x[N+1]});const P=[];return j.forEach(function(N){const T=e.Util._getProjectionToLine(N,M,E);P.push(T.x),P.push(T.y)}),P},_prepareToStringify(f){let x;f.visitedByCircularReferenceRemoval=!0;for(const E in f)if(f.hasOwnProperty(E)&&f[E]&&typeof f[E]=="object"){if(x=Object.getOwnPropertyDescriptor(f,E),f[E].visitedByCircularReferenceRemoval||e.Util._isElement(f[E]))if(x.configurable)delete f[E];else return null;else if(e.Util._prepareToStringify(f[E])===null)if(x.configurable)delete f[E];else return null}return delete f.visitedByCircularReferenceRemoval,f},_assign(f,x){for(const E in x)f[E]=x[E];return f},_getFirstPointerId(f){return f.touches?f.changedTouches[0].identifier:f.pointerId||999},releaseCanvas(...f){t.Konva.releaseCanvasOnDestroy&&f.forEach(x=>{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<number>('+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<h;k++){const C=s[k];w[C]=this.getAttr(o+b(C))}return w};const v=(0,n.getComponentValidator)(s);a.prototype[g]=function(w){const k=this.attrs[o];c&&(w=c.call(this,w,o)),v&&v.call(this,w,o);for(const C in w)w.hasOwnProperty(C)&&this._setAttr(o+b(C),w[C]);return w||s.forEach(C=>{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;i<n;i++){let a=e[i];r._isNumber(a)?a=Math.round(a*1e3)/1e3:r._isString(a)||(a=a+""),t.push(a)}return t}const Ww=",",lR="(",cR=")",uR="([",dR="])",hR=";",fR="()",pR="=",Xw=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","roundRect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],gR=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"],mR=100;let k2=class{constructor(e){this.canvas=e,oR.Konva.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(e){e.fillEnabled()&&this._fill(e)}_fill(e){}strokeShape(e){e.hasStroke()&&this._stroke(e)}_stroke(e){}fillStrokeShape(e){e.attrs.fillAfterStrokeEnabled?(this.strokeShape(e),this.fillShape(e)):(this.fillShape(e),this.strokeShape(e))}getTrace(e,t){let n=this.traceArr,r=n.length,i="",a,o,s,c;for(a=0;a<r;a++)o=n[a],s=o.method,s?(c=o.args,i+=s,e?i+=fR:$P.Util._isArray(c[0])?i+=uR+c.join(Ww)+dR:(t&&(c=c.map(d=>typeof 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<t;r++)a(Xw[r]);e.setAttr=function(){n.apply(e,arguments);const o=arguments[0];let s=arguments[1];(o==="shadowOffsetX"||o==="shadowOffsetY"||o==="shadowBlur")&&(s=s/this.canvas.getPixelRatio()),e._trace({property:o,val:s})}}_applyGlobalCompositeOperation(e){const t=e.attrs.globalCompositeOperation;!t||t==="source-over"||this.setAttr("globalCompositeOperation",t)}};xo.Context=k2,gR.forEach(function(e){Object.defineProperty(k2.prototype,e,{get(){return this._context[e]},set(t){this._context[e]=t}})});let vR=class extends k2{constructor(e,{willReadFrequently:t=!1}={}){super(e),this._context=e._canvas.getContext("2d",{willReadFrequently:t})}_fillColor(e){const t=e.fill();this.setAttr("fillStyle",t),e._fillFunc(this)}_fillPattern(e){this.setAttr("fillStyle",e._getFillPattern()),e._fillFunc(this)}_fillLinearGradient(e){const t=e._getLinearGradient();t&&(this.setAttr("fillStyle",t),e._fillFunc(this))}_fillRadialGradient(e){const t=e._getRadialGradient();t&&(this.setAttr("fillStyle",t),e._fillFunc(this))}_fill(e){const t=e.fill(),n=e.getFillPriority();if(t&&n==="color"){this._fillColor(e);return}const r=e.getFillPatternImage();if(r&&n==="pattern"){this._fillPattern(e);return}const i=e.getFillLinearGradientColorStops();if(i&&n==="linear-gradient"){this._fillLinearGradient(e);return}const a=e.getFillRadialGradientColorStops();if(a&&n==="radial-gradient"){this._fillRadialGradient(e);return}t?this._fillColor(e):r?this._fillPattern(e):i?this._fillLinearGradient(e):a&&this._fillRadialGradient(e)}_strokeLinearGradient(e){const t=e.getStrokeLinearGradientStartPoint(),n=e.getStrokeLinearGradientEndPoint(),r=e.getStrokeLinearGradientColorStops(),i=this.createLinearGradient(t.x,t.y,n.x,n.y);if(r){for(let a=0;a<r.length;a+=2)i.addColorStop(r[a],r[a+1]);this.setAttr("strokeStyle",i)}}_stroke(e){const t=e.dash(),n=e.getStrokeScaleEnabled();if(e.hasStroke()){if(!n){this.save();const r=this.getCanvas().getPixelRatio();this.setTransform(r,0,0,r,0,0)}this._applyLineCap(e),t&&e.dashEnabled()&&(this.setLineDash(t),this.setAttr("lineDashOffset",e.dashOffset())),this.setAttr("lineWidth",e.strokeWidth()),e.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)"),e.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(e):this.setAttr("strokeStyle",e.stroke()),e._strokeFunc(this),n||this.restore()}}_applyShadow(e){var t,n,r;const i=(t=e.getShadowRGBA())!==null&&t!==void 0?t:"black",a=(n=e.getShadowBlur())!==null&&n!==void 0?n:5,o=(r=e.getShadowOffset())!==null&&r!==void 0?r:{x:0,y:0},s=e.getAbsoluteScale(),c=this.canvas.getPixelRatio(),d=s.x*c,h=s.y*c;this.setAttr("shadowColor",i),this.setAttr("shadowBlur",a*Math.min(Math.abs(d),Math.abs(h))),this.setAttr("shadowOffsetX",o.x*d),this.setAttr("shadowOffsetY",o.y*h)}};xo.SceneContext=vR;let yR=class extends k2{constructor(e){super(e),this._context=e._canvas.getContext("2d",{willReadFrequently:!0})}_fill(e){this.save(),this.setAttr("fillStyle",e.colorKey),e._fillFuncHit(this),this.restore()}strokeShape(e){e.hasHitStroke()&&this._stroke(e)}_stroke(e){if(e.hasHitStroke()){const t=e.getStrokeScaleEnabled();if(!t){this.save();const i=this.getCanvas().getPixelRatio();this.setTransform(i,0,0,i,0,0)}this._applyLineCap(e);const n=e.hitStrokeWidth(),r=n==="auto"?e.strokeWidth():n;this.setAttr("lineWidth",r),this.setAttr("strokeStyle",e.colorKey),e._strokeFuncHit(this),t||this.restore()}}};xo.HitContext=yR,Object.defineProperty(da,"__esModule",{value:!0}),da.HitCanvas=da.SceneCanvas=da.Canvas=void 0;const O2=Cn,QP=xo,JP=ct;let $1;function bR(){if($1)return $1;const e=O2.Util.createCanvasElement(),t=e.getContext("2d");return $1=function(){const n=JP.Konva._global.devicePixelRatio||1,r=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return n/r}(),O2.Util.releaseCanvas(e),$1}let a8=class{constructor(e){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;const t=(e||{}).pixelRatio||JP.Konva.pixelRatio||bR();this.pixelRatio=t,this._canvas=O2.Util.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(e){const t=this.pixelRatio;this.pixelRatio=e,this.setSize(this.getWidth()/t,this.getHeight()/t)}setWidth(e){this.width=this._canvas.width=e*this.pixelRatio,this._canvas.style.width=e+"px";const t=this.pixelRatio;this.getContext()._context.scale(t,t)}setHeight(e){this.height=this._canvas.height=e*this.pixelRatio,this._canvas.style.height=e+"px";const t=this.pixelRatio;this.getContext()._context.scale(t,t)}getWidth(){return this.width}getHeight(){return this.height}setSize(e,t){this.setWidth(e||0),this.setHeight(t||0)}toDataURL(e,t){try{return this._canvas.toDataURL(e,t)}catch{try{return this._canvas.toDataURL()}catch(n){return O2.Util.error("Unable to get data URL. "+n.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}};da.Canvas=a8;let wR=class extends a8{constructor(e={width:0,height:0,willReadFrequently:!1}){super(e),this.context=new QP.SceneContext(this,{willReadFrequently:e.willReadFrequently}),this.setSize(e.width,e.height)}};da.SceneCanvas=wR;let xR=class extends a8{constructor(e={width:0,height:0}){super(e),this.hitCanvas=!0,this.context=new QP.HitContext(this),this.setSize(e.width,e.height)}};da.HitCanvas=xR;var mm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DD=void 0;const t=ct,n=Cn;e.DD={get isDragging(){let r=!1;return e.DD._dragElements.forEach(i=>{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))<h||(s.startDrag({evt:r}),!s.isDragging()))return}s._setDragPosition(r,a),i.push(s)}}),i.forEach(a=>{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<o;c++){if(d=t[c],typeof d!="function"){wt.Util.error("Filter should be type of function, but got "+typeof d+" instead. Please check correct filters");continue}d.call(this,s),a.putImageData(s,0,0)}}catch(b){wt.Util.error("Unable to apply filter. "+b.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return i}return r}on(t,n){if(this._cache&&this._cache.delete(Q1),arguments.length===3)return this._delegate.apply(this,arguments);let r=t.split(Rp),i=r.length,a,o,s,c,d;for(a=0;a<i;a++)o=r[a],s=o.split("."),c=s[0],d=s[1]||"",this.eventListeners[c]||(this.eventListeners[c]=[]),this.eventListeners[c].push({name:d,handler:n});return this}off(t,n){let r=(t||"").split(Rp),i=r.length,a,o,s,c,d,h;if(this._cache&&this._cache.delete(Q1),!t)for(o in this.eventListeners)this._off(o);for(a=0;a<i;a++)if(s=r[a],c=s.split("."),d=c[0],h=c[1],d)this.eventListeners[d]&&this._off(d,h,n);else for(o in this.eventListeners)this._off(o,h,n);return this}dispatchEvent(t){const n={target:this,type:t.type,evt:t};return this.fire(t.type,n),this}addEventListener(t,n){return this.on(t,function(r){n.call(this,r.evt)}),this}removeEventListener(t){return this.off(t),this}_delegate(t,n,r){const i=this;this.on(t,function(a){const o=a.target.findAncestors(n,!0,i);for(let s=0;s<o.length;s++)a=wt.Util.cloneObject(a),a.currentTarget=o[s],r.call(o[s],a)})}remove(){return this.isDragging()&&this.stopDrag(),Ni.DD._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(po),this._clearSelfAndDescendantCache(Dp),this._clearSelfAndDescendantCache(Yw),this._clearSelfAndDescendantCache(Qw),this._clearSelfAndDescendantCache(vy),this._clearSelfAndDescendantCache(my)}_remove(){this._clearCaches();const t=this.getParent();t&&t.children&&(t.children.splice(this.index,1),t._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(t){const n="get"+wt.Util._capitalize(t);return wt.Util._isFunction(this[n])?this[n]():this.attrs[t]}getAncestors(){let t=this.getParent(),n=[];for(;t;)n.push(t),t=t.getParent();return n}getAttrs(){return this.attrs||{}}setAttrs(t){return this._batchTransformChanges(()=>{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;o<a;o++)s=h[o],r++,s.nodeType!==$w&&(i=i.concat(s.getChildren().slice())),s._id===n._id&&(o=a);i.length>0&&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;o<a;o++)t(r[o])}}rotate(t){return this.rotation(this.rotation()+t),this}moveToTop(){if(!this.parent)return wt.Util.warn("Node has no parent. moveToTop function is ignored."),!1;const t=this.index,n=this.parent.getChildren().length;return t<n-1?(this.parent.children.splice(t,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0):!1}moveUp(){if(!this.parent)return wt.Util.warn("Node has no parent. moveUp function is ignored."),!1;const t=this.index,n=this.parent.getChildren().length;return t<n-1?(this.parent.children.splice(t,1),this.parent.children.splice(t+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return wt.Util.warn("Node has no parent. moveDown function is ignored."),!1;const t=this.index;return t>0?(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<r;i++)if(a=n[i],wt.Util.isValidSelector(a)||(wt.Util.warn('Selector "'+a+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),wt.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),wt.Util.warn("Konva is awesome, right?")),a.charAt(0)==="#"){if(this.id()===a.slice(1))return!0}else if(a.charAt(0)==="."){if(this.hasName(a.slice(1)))return!0}else if(this.className===a||this.nodeType===a)return!0;return!1}getLayer(){const t=this.getParent();return t?t.getLayer():null}getStage(){return this._getCache(Qw,this._getStage)}_getStage(){const t=this.getParent();return t?t.getStage():null}fire(t,n={},r){return n.target=n.target||this,r?this._fireAndBubble(t,n):this._fire(t,n),this}getAbsoluteTransform(t){return t?this._getAbsoluteTransform(t):this._getCache(po,this._getAbsoluteTransform)}_getAbsoluteTransform(t){let n;if(t)return n=new wt.Transform,this._eachAncestorReverse(function(r){const i=r.transformsEnabled();i==="all"?n.multiply(r.getTransform()):i==="position"&&n.translate(r.x()-r.offsetX(),r.y()-r.offsetY())},t),n;{n=this._cache.get(po)||new wt.Transform,this.parent?this.parent.getAbsoluteTransform().copyInto(n):n.reset();const r=this.transformsEnabled();if(r==="all")n.multiply(this.getTransform());else if(r==="position"){const i=this.attrs.x||0,a=this.attrs.y||0,o=this.attrs.offsetX||0,s=this.attrs.offsetY||0;n.translate(i-o,a-s)}return n.dirty=!1,n}}getAbsoluteScale(t){let n=this;for(;n;)n._isUnderCache&&(t=n),n=n.getParent();const r=this.getAbsoluteTransform(t).decompose();return{x:r.scaleX,y:r.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(vs,this._getTransform)}_getTransform(){var t,n;const r=this._cache.get(vs)||new wt.Transform;r.reset();const i=this.x(),a=this.y(),o=es.Konva.getAngle(this.rotation()),s=(t=this.attrs.scaleX)!==null&&t!==void 0?t:1,c=(n=this.attrs.scaleY)!==null&&n!==void 0?n:1,d=this.attrs.skewX||0,h=this.attrs.skewY||0,b=this.attrs.offsetX||0,m=this.attrs.offsetY||0;return(i!==0||a!==0)&&r.translate(i,a),o!==0&&r.rotate(o),(d!==0||h!==0)&&r.skew(d,h),(s!==1||c!==1)&&r.scale(s,c),(b!==0||m!==0)&&r.translate(-1*b,-1*m),r.dirty=!1,r}clone(t){let n=wt.Util.cloneObject(this.attrs),r,i,a,o,s;for(r in t)n[r]=t[r];const c=new this.constructor(n);for(r in this.eventListeners)for(i=this.eventListeners[r],a=i.length,o=0;o<a;o++)s=i[o],s.name.indexOf(ER)<0&&(c.eventListeners[r]||(c.eventListeners[r]=[]),c.eventListeners[r].push(s));return c}_toKonvaCanvas(t){t=t||{};const n=this.getClientRect(),r=this.getStage(),i=t.x!==void 0?t.x:Math.floor(n.x),a=t.y!==void 0?t.y:Math.floor(n.y),o=t.pixelRatio||1,s=new Qd.SceneCanvas({width:t.width||Math.ceil(n.width)||(r?r.width():0),height:t.height||Math.ceil(n.height)||(r?r.height():0),pixelRatio:o}),c=s.getContext(),d=new Qd.SceneCanvas({width:s.width/s.pixelRatio+Math.abs(i),height:s.height/s.pixelRatio+Math.abs(a),pixelRatio:s.pixelRatio});return t.imageSmoothingEnabled===!1&&(c._context.imageSmoothingEnabled=!1),c.save(),(i||a)&&c.translate(-1*i,-1*a),this.drawScene(s,void 0,d),c.restore(),s}toCanvas(t){return this._toKonvaCanvas(t)._canvas}toDataURL(t){t=t||{};const n=t.mimeType||null,r=t.quality||null,i=this._toKonvaCanvas(t).toDataURL(n,r);return t.callback&&t.callback(i),i}toImage(t){return new Promise((n,r)=>{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<i.length;a++)if(o=i[a].name,s=i[a].handler,(o!=="konva"||n==="konva")&&(!n||o===n)&&(!r||r===s)){if(i.splice(a,1),i.length===0){delete this.eventListeners[t];break}a--}}_fireChangeEvent(t,n,r){this._fire(t+CR,{oldVal:n,newVal:r})}addName(t){if(!this.hasName(t)){const n=this.name(),r=n?n+" "+t:t;this.name(r)}return this}hasName(t){if(!t)return!1;const n=this.name();return n?(n||"").split(/\s/g).indexOf(t)!==-1:!1}removeName(t){const n=(this.name()||"").split(/\s/g),r=n.indexOf(t);return r!==-1&&(n.splice(r,1),this.name(n.join(" "))),this}setAttr(t,n){const r=this[qw+wt.Util._capitalize(t)];return wt.Util._isFunction(r)?r.call(this,n):this._setAttr(t,n),this}_requestDraw(){es.Konva.autoDrawEnabled&&(this.getLayer()||this.getStage())?.batchDraw()}_setAttr(t,n){const r=this.attrs[t];r===n&&!wt.Util.isObject(n)||(n==null?delete this.attrs[t]:this.attrs[t]=n,this._shouldFireChangeEvents&&this._fireChangeEvent(t,r,n),this._requestDraw())}_setComponentAttr(t,n,r){let i;r!==void 0&&(i=this.attrs[t],i||(this.attrs[t]=this.getAttr(t)),this.attrs[t][n]=r,this._fireChangeEvent(t,i,r))}_fireAndBubble(t,n,r){if(n&&this.nodeType===$w&&(n.target=this),!((t===Kw||t===Zw)&&(r&&(this===r||this.isAncestorOf&&this.isAncestorOf(r))||this.nodeType==="Stage"&&!r))){this._fire(t,n);const i=(t===Kw||t===Zw)&&r&&r.isAncestorOf&&r.isAncestorOf(this)&&!r.isAncestorOf(this.parent);(n&&!n.cancelBubble||!n)&&this.parent&&this.parent.isListening()&&!i&&(r&&r.parent?this._fireAndBubble.call(this.parent,t,n,r):this._fireAndBubble.call(this.parent,t,n))}}_getProtoListeners(t){var n,r,i;const a=(n=this._cache.get(Q1))!==null&&n!==void 0?n:{};let o=a?.[t];if(o===void 0){o=[];let s=Object.getPrototypeOf(this);for(;s;){const c=(i=(r=s.eventListeners)===null||r===void 0?void 0:r[t])!==null&&i!==void 0?i:[];o.push(...c),s=Object.getPrototypeOf(s)}a[t]=o,this._cache.set(Q1,a)}return o}_fire(t,n){n=n||{},n.currentTarget=this,n.type=t;const r=this._getProtoListeners(t);if(r)for(var i=0;i<r.length;i++)r[i].handler.call(this,n);const a=this.eventListeners[t];if(a)for(var i=0;i<a.length;i++)a[i].handler.call(this,n)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(t){const n=t?t.pointerId:void 0,r=this.getStage(),i=this.getAbsolutePosition();if(!r)return;const a=r._getPointerById(n)||r._changedPointerPositions[0]||i;Ni.DD._dragElements.set(this._id,{node:this,startPointerPos:a,offset:{x:a.x-i.x,y:a.y-i.y},dragStatus:"ready",pointerId:n})}startDrag(t,n=!0){Ni.DD._dragElements.has(this._id)||this._createDragElement(t);const r=Ni.DD._dragElements.get(this._id);r.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:t&&t.evt},n)}_setDragPosition(t,n){const r=this.getStage()._getPointerById(n.pointerId);if(!r)return;let i={x:r.x-n.offset.x,y:r.y-n.offset.y};const a=this.dragBoundFunc();if(a!==void 0){const o=a.call(this,i,t);o?i=o:wt.Util.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}(!this._lastPos||this._lastPos.x!==i.x||this._lastPos.y!==i.y)&&(this.setAbsolutePosition(i),this._requestDraw()),this._lastPos=i}stopDrag(t){const n=Ni.DD._dragElements.get(this._id);n&&(n.dragStatus="stopped"),Ni.DD._endDragBefore(t),Ni.DD._endDragAfter(t)}setDraggable(t){this._setAttr("draggable",t),this._dragChange()}isDragging(){const t=Ni.DD._dragElements.get(this._id);return t?t.dragStatus==="dragging":!1}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(t){if(!(t.evt.button===void 0||es.Konva.dragButtons.indexOf(t.evt.button)>=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;s<o;s++)a.add(yy._createNode(i[s]));return a}};dn.Node=rt,rt.prototype.nodeType="Node",rt.prototype._attrsAffectingSize=[],rt.prototype.eventListeners={},rt.prototype.on.call(rt.prototype,kR,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(vs),this._clearSelfAndDescendantCache(po)}),rt.prototype.on.call(rt.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(vy)}),rt.prototype.on.call(rt.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(my)}),rt.prototype.on.call(rt.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(Dp)});const Yt=Eh.Factory.addGetterSetter;Yt(rt,"zIndex"),Yt(rt,"absolutePosition"),Yt(rt,"position"),Yt(rt,"x",0,(0,Ln.getNumberValidator)()),Yt(rt,"y",0,(0,Ln.getNumberValidator)()),Yt(rt,"globalCompositeOperation","source-over",(0,Ln.getStringValidator)()),Yt(rt,"opacity",1,(0,Ln.getNumberValidator)()),Yt(rt,"name","",(0,Ln.getStringValidator)()),Yt(rt,"id","",(0,Ln.getStringValidator)()),Yt(rt,"rotation",0,(0,Ln.getNumberValidator)()),Eh.Factory.addComponentsGetterSetter(rt,"scale",["x","y"]),Yt(rt,"scaleX",1,(0,Ln.getNumberValidator)()),Yt(rt,"scaleY",1,(0,Ln.getNumberValidator)()),Eh.Factory.addComponentsGetterSetter(rt,"skew",["x","y"]),Yt(rt,"skewX",0,(0,Ln.getNumberValidator)()),Yt(rt,"skewY",0,(0,Ln.getNumberValidator)()),Eh.Factory.addComponentsGetterSetter(rt,"offset",["x","y"]),Yt(rt,"offsetX",0,(0,Ln.getNumberValidator)()),Yt(rt,"offsetY",0,(0,Ln.getNumberValidator)()),Yt(rt,"dragDistance",void 0,(0,Ln.getNumberValidator)()),Yt(rt,"width",0,(0,Ln.getNumberValidator)()),Yt(rt,"height",0,(0,Ln.getNumberValidator)()),Yt(rt,"listening",!0,(0,Ln.getBooleanValidator)()),Yt(rt,"preventDefault",!0,(0,Ln.getBooleanValidator)()),Yt(rt,"filters",void 0,function(e){return this._filterUpToDate=!1,e}),Yt(rt,"visible",!0,(0,Ln.getBooleanValidator)()),Yt(rt,"transformsEnabled","all",(0,Ln.getStringValidator)()),Yt(rt,"size"),Yt(rt,"dragBoundFunc"),Yt(rt,"draggable",!1,(0,Ln.getBooleanValidator)()),Eh.Factory.backCompat(rt,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});var oc={};Object.defineProperty(oc,"__esModule",{value:!0}),oc.Container=void 0;const Fc=pt,F5=dn,J1=qe;let ml=class extends F5.Node{constructor(){super(...arguments),this.children=[]}getChildren(e){if(!e)return this.children||[];const t=this.children||[],n=[];return t.forEach(function(r){e(r)&&n.push(r)}),n}hasChildren(){return this.getChildren().length>0}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;n<e.length;n++)this.add(e[n]);return this}const t=e[0];return t.getParent()?(t.moveTo(this),this):(this._validateAdd(t),t.index=this.getChildren().length,t.parent=this,t._clearCaches(),this.getChildren().push(t),this._fire("add",{child:t}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(e){return this._generalFind(e,!1)}findOne(e){const t=this._generalFind(e,!0);return t.length>0?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;m<h.length;m++)if(h[m]._isVisible(this)){b=!0;break}return b&&i!==void 0?c={x:i,y:a,width:o-i,height:s-a}:c={x:0,y:0,width:0,height:0},n?c:this._transformedRect(c,r)}};oc.Container=ml,Fc.Factory.addComponentsGetterSetter(ml,"clip",["x","y","width","height"]),Fc.Factory.addGetterSetter(ml,"clipX",void 0,(0,J1.getNumberValidator)()),Fc.Factory.addGetterSetter(ml,"clipY",void 0,(0,J1.getNumberValidator)()),Fc.Factory.addGetterSetter(ml,"clipWidth",void 0,(0,J1.getNumberValidator)()),Fc.Factory.addGetterSetter(ml,"clipHeight",void 0,(0,J1.getNumberValidator)()),Fc.Factory.addGetterSetter(ml,"clipFunc");var eT={},Cs={};Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.getCapturedShape=TR,Cs.createEvent=o8,Cs.hasPointerCapture=MR,Cs.setPointerCapture=IR,Cs.releaseCapture=nT;const PR=ct,u0=new Map,tT=PR.Konva._global.PointerEvent!==void 0;function TR(e){return u0.get(e)}function o8(e){return{evt:e,pointerId:e.pointerId}}function MR(e,t){return u0.get(e)===t}function IR(e,t){nT(e),t.getStage()&&(u0.set(e,t),tT&&t._fire("gotpointercapture",o8(new PointerEvent("gotpointercapture"))))}function nT(e,t){const n=u0.get(e);if(!n)return;const r=n.getStage();r&&r.content,u0.delete(e),tT&&n._fire("lostpointercapture",o8(new PointerEvent("lostpointercapture")))}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Stage=e.stages=void 0;const t=Cn,n=pt,r=oc,i=ct,a=da,o=mm,s=ct,c=Cs,d="Stage",h="string",b="px",m="mouseout",g="mouseleave",v="mouseover",w="mouseenter",k="mousemove",C="mousedown",_="mouseup",f="pointermove",x="pointerdown",E="pointerup",M="pointercancel",j="lostpointercapture",P="pointerout",N="pointerleave",T="pointerover",R="pointerenter",z="contextmenu",H="touchstart",J="touchend",q="touchmove",Y="touchcancel",le="wheel",K=5,ce=[[w,"_pointerenter"],[C,"_pointerdown"],[k,"_pointermove"],[_,"_pointerup"],[g,"_pointerleave"],[H,"_pointerdown"],[q,"_pointermove"],[J,"_pointerup"],[Y,"_pointercancel"],[v,"_pointerover"],[le,"_wheel"],[z,"_contextmenu"],[x,"_pointerdown"],[f,"_pointermove"],[E,"_pointerup"],[M,"_pointercancel"],[j,"_lostpointercapture"]],ne={mouse:{[P]:m,[N]:g,[T]:v,[R]:w,[f]:k,[x]:C,[E]:_,[M]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[P]:"touchout",[N]:"touchleave",[T]:"touchover",[R]:"touchenter",[f]:q,[x]:H,[E]:J,[M]:Y,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[P]:P,[N]:N,[T]:T,[R]:R,[f]:f,[x]:x,[E]:E,[M]:M,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},oe=W=>W.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<B;ee++)D[ee].clear();return this}clone(D){return D||(D={}),D.container=typeof document<"u"&&document.createElement("div"),r.Container.prototype.clone.call(this,D)}destroy(){super.destroy();const D=this.content;D&&t.Util._isInDocument(D)&&this.container().removeChild(D);const B=e.stages.indexOf(this);return B>-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;ue<arguments.length;ue++)this.add(arguments[ue]);return this}super.add(D);const ee=this.children.length;return ee>K&&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;q<T.length;q+=2)J.addColorStop(T[q],T[q+1]);return J}}_getRadialGradient(){return this._getCache(m,this.__getRadialGradient)}__getRadialGradient(){const T=this.fillRadialGradientColorStops();if(T){const R=v(),z=this.fillRadialGradientStartPoint(),H=this.fillRadialGradientEndPoint(),J=R.createRadialGradient(z.x,z.y,this.fillRadialGradientStartRadius(),H.x,H.y,this.fillRadialGradientEndRadius());for(let q=0;q<T.length;q+=2)J.addColorStop(T[q],T[q+1]);return J}}getShadowRGBA(){return this._getCache(d,this._getShadowRGBA)}_getShadowRGBA(){if(!this.hasShadow())return;const T=n.Util.colorToRGBA(this.shadowColor());if(T)return"rgba("+T.r+","+T.g+","+T.b+","+T.a*(this.shadowOpacity()||1)+")"}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],()=>this.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;oe<ce;oe+=4)K[oe+3]>T?(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<t.children.length-1?t.content.insertBefore(this.getNativeCanvasElement(),t.children[e+1].getCanvas()._canvas):t.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){zc.Node.prototype.moveToTop.call(this);const e=this.getStage();return e&&e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){if(!zc.Node.prototype.moveUp.call(this))return!1;const e=this.getStage();return!e||!e.content?!1:(e.content.removeChild(this.getNativeCanvasElement()),this.index<e.children.length-1?e.content.insertBefore(this.getNativeCanvasElement(),e.children[this.index+1].getCanvas()._canvas):e.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(zc.Node.prototype.moveDown.call(this)){const e=this.getStage();if(e){const t=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),t[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(zc.Node.prototype.moveToBottom.call(this)){const e=this.getStage();if(e){const t=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),t[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){const e=this.getNativeCanvasElement();return zc.Node.prototype.remove.call(this),e&&e.parentNode&&ro.Util._isInDocument(e)&&e.parentNode.removeChild(e),this}getStage(){return this.parent}setSize({width:e,height:t}){return this.canvas.setSize(e,t),this.hitCanvas.setSize(e,t),this._setSmoothEnabled(),this}_validateAdd(e){const t=e.getType();t!=="Group"&&t!=="Shape"&&ro.Util.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(e){return e=e||{},e.width=e.width||this.getWidth(),e.height=e.height||this.getHeight(),e.x=e.x!==void 0?e.x:this.x(),e.y=e.y!==void 0?e.y:this.y(),zc.Node.prototype._toKonvaCanvas.call(this,e)}_checkVisibility(){this.visible()?this.canvas._canvas.style.display="block":this.canvas._canvas.style.display="none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){ro.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){ro.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,ro.Util.requestAnimFrame(()=>{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;r<FR;r++){const i=rT[r],a=this._getIntersection({x:e.x+i.x*t,y:e.y+i.y*t}),o=a.shape;if(o)return o;if(n=!!a.antialiased,!a.antialiased)break}if(n)t+=1;else return null}}_getIntersection(e){const t=this.hitCanvas.pixelRatio,n=this.hitCanvas.context.getImageData(Math.round(e.x*t),Math.round(e.y*t),1,1).data,r=n[3];if(r===255){const i=ro.Util._rgbToHex(n[0],n[1],n[2]),a=LR.shapes[NR+i];return a?{shape:a}:{antialiased:!0}}else if(r>0)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;i<r;i++)if(n[i]._id===t._id)return!1;return this.layers.push(t),!0}isRunning(){const t=du.animations,n=t.length;for(let r=0;r<n;r++)if(t[r].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=U5(),du._addAnimation(this),this}stop(){return du._removeAnimation(this),this}_updateFrameObject(t){this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(t){this.animations.push(t),this._handleAnimation()}static _removeAnimation(t){const n=t.id,r=this.animations,i=r.length;for(let a=0;a<i;a++)if(r[a].id===n){this.animations.splice(a,1);break}}static _runFrames(){const t={},n=this.animations;for(let r=0;r<n.length;r++){const i=n[r],a=i.layers,o=i.func;i._updateFrameObject(U5());const s=a.length;let c;if(o?c=o.call(i,i.frame)!==!1:c=!0,!!c)for(let d=0;d<s;d++){const h=a[d];h._id!==void 0&&(t[h._id]=h)}}for(const r in t)t.hasOwnProperty(r)&&t[r].batchDraw()}static _animationLoop(){const t=du;t.animations.length?(t._runFrames(),ex.Util.requestAnimFrame(t._animationLoop)):t.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,ex.Util.requestAnimFrame(this._animationLoop))}};Ju.Animation=ef,ef.animations=[],ef.animIdCounter=0,ef.animRunning=!1;var tx={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Easings=e.Tween=void 0;const t=Cn,n=Ju,r=dn,i=ct,a={node:1,duration:1,easing:1,onFinish:1,yoyo:1},o=1,s=2,c=3,d=["fill","stroke","shadowColor"];let h=0;class b{constructor(v,w,k,C,_,f,x){this.prop=v,this.propFunc=w,this.begin=C,this._pos=C,this.duration=f,this._change=0,this.prevPos=0,this.yoyo=x,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=k,this._change=_-this.begin,this.pause()}fire(v){const w=this[v];w&&w()}setTime(v){v>this.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<f;N++)if(N%2===0)_.push(w[N]-P[N]);else{const T=t.Util.colorToRGBA(P[N]);M=t.Util.colorToRGBA(w[N]),P[N]=T,_.push({r:M.r-T.r,g:M.g-T.g,b:M.b-T.b,a:M.a-T.a})}else for(let N=0;N<f;N++)_.push(w[N]-P[N]);else d.indexOf(v)!==-1?(P=t.Util.colorToRGBA(P),M=t.Util.colorToRGBA(w),_={r:M.r-P.r,g:M.g-P.g,b:M.b-P.b,a:M.a-P.a}):_=w-P;m.attrs[C][this._id][v]={start:P,diff:_,end:w,trueEnd:x,trueStart:E},m.tweens[C][v]=this._id}_tweenFunc(v){const w=this.node,k=m.attrs[w._id][this._id];let C,_,f,x,E,M,j,P;for(C in k){if(_=k[C],f=_.start,x=_.diff,P=_.end,t.Util._isArray(f))if(E=[],j=Math.max(f.length,P.length),C.indexOf("fill")===0)for(M=0;M<j;M++)M%2===0?E.push((f[M]||0)+x[M]*v):E.push("rgba("+Math.round(f[M].r+x[M].r*v)+","+Math.round(f[M].g+x[M].g*v)+","+Math.round(f[M].b+x[M].b*v)+","+(f[M].a+x[M].a*v)+")");else for(M=0;M<j;M++)E.push((f[M]||0)+x[M]*v);else d.indexOf(C)!==-1?E="rgba("+Math.round(f.r+x.r*v)+","+Math.round(f.g+x.g*v)+","+Math.round(f.b+x.b*v)+","+(f.a+x.a*v)+")":E=f+x*v;w.setAttr(C,E)}}_addListeners(){this.tween.onPlay=()=>{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||C<Math.abs(w)?(C=w,f=_/4):f=_/(2*Math.PI)*Math.asin(w/C),-(C*Math.pow(2,10*(g-=1))*Math.sin((g*k-f)*(2*Math.PI)/_))+v)},ElasticEaseOut(g,v,w,k,C,_){let f=0;return g===0?v:(g/=k)===1?v+w:(_||(_=k*.3),!C||C<Math.abs(w)?(C=w,f=_/4):f=_/(2*Math.PI)*Math.asin(w/C),C*Math.pow(2,-10*g)*Math.sin((g*k-f)*(2*Math.PI)/_)+w+v)},ElasticEaseInOut(g,v,w,k,C,_){let f=0;return g===0?v:(g/=k/2)===2?v+w:(_||(_=k*(.3*1.5)),!C||C<Math.abs(w)?(C=w,f=_/4):f=_/(2*Math.PI)*Math.asin(w/C),g<1?-.5*(C*Math.pow(2,10*(g-=1))*Math.sin((g*k-f)*(2*Math.PI)/_))+v:C*Math.pow(2,-10*(g-=1))*Math.sin((g*k-f)*(2*Math.PI)/_)*.5+w+v)},BounceEaseOut(g,v,w,k){return(g/=k)<1/2.75?w*(7.5625*g*g)+v:g<2/2.75?w*(7.5625*(g-=1.5/2.75)*g+.75)+v:g<2.5/2.75?w*(7.5625*(g-=2.25/2.75)*g+.9375)+v:w*(7.5625*(g-=2.625/2.75)*g+.984375)+v},BounceEaseIn(g,v,w,k){return w-e.Easings.BounceEaseOut(k-g,0,w,k)+v},BounceEaseInOut(g,v,w,k){return g<k/2?e.Easings.BounceEaseIn(g*2,0,w,k)*.5+v:e.Easings.BounceEaseOut(g*2-k,0,w,k)*.5+w*.5+v},EaseIn(g,v,w,k){return w*(g/=k)*g+v},EaseOut(g,v,w,k){return-w*(g/=k)*(g-2)+v},EaseInOut(g,v,w,k){return(g/=k/2)<1?w/2*g*g+v:-w/2*(--g*(g-2)-1)+v},StrongEaseIn(g,v,w,k){return w*(g/=k)*g*g*g*g+v},StrongEaseOut(g,v,w,k){return w*((g=g/k-1)*g*g*g*g+1)+v},StrongEaseInOut(g,v,w,k){return(g/=k/2)<1?w/2*g*g*g*g*g+v:w/2*((g-=2)*g*g*g*g+2)+v},Linear(g,v,w,k){return w*g/k+v}}})(tx),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Konva=void 0;const t=ct,n=Cn,r=dn,i=oc,a=eT,o=d0,s=P2,c=Qu,d=mm,h=Jn,b=Ju,m=tx,g=xo,v=da;e.Konva=n.Util._assign(t.Konva,{Util:n.Util,Transform:n.Transform,Node:r.Node,Container:i.Container,Stage:a.Stage,stages:a.stages,Layer:o.Layer,FastLayer:s.FastLayer,Group:c.Group,DD:d.DD,Shape:h.Shape,shapes:h.shapes,Animation:b.Animation,Tween:m.Tween,Easings:m.Easings,Context:g.Context,Canvas:v.Canvas}),e.default=e.Konva}(_2);var T2={};Object.defineProperty(T2,"__esModule",{value:!0}),T2.Arc=void 0;const tf=pt,WR=Jn,nx=ct,nf=qe,XR=ct;let io=class extends WR.Shape{_sceneFunc(e){const t=nx.Konva.getAngle(this.angle()),n=this.clockwise();e.beginPath(),e.arc(0,0,this.outerRadius(),0,t,n),e.arc(0,0,this.innerRadius(),t,0,!n),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)}getSelfRect(){const e=this.innerRadius(),t=this.outerRadius(),n=this.clockwise(),r=nx.Konva.getAngle(n?360-this.angle():this.angle()),i=Math.cos(Math.min(r,Math.PI)),a=1,o=Math.sin(Math.min(Math.max(Math.PI,r),3*Math.PI/2)),s=Math.sin(Math.min(r,Math.PI/2)),c=i*(i>0?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;i<n-2;i+=2){const a=by(e[i-2],e[i-1],e[i],e[i+1],e[i+2],e[i+3],t);isNaN(a[0])||(r.push(a[0]),r.push(a[1]),r.push(e[i]),r.push(e[i+1]),r.push(a[2]),r.push(a[3]))}return r}let ts=class extends KR.Shape{constructor(e){super(e),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(e){let t=this.points(),n=t.length,r=this.tension(),i=this.closed(),a=this.bezier(),o,s,c;if(n){if(e.beginPath(),e.moveTo(t[0],t[1]),r!==0&&n>4){for(o=this.getTensionPoints(),s=o.length,c=i?0:4,i||e.quadraticCurveTo(o[0],o[1],o[2],o[3]);c<s-2;)e.bezierCurveTo(o[c++],o[c++],o[c++],o[c++],o[c++],o[c++]);i||e.quadraticCurveTo(o[s-2],o[s-1],t[n-2],t[n-1])}else if(a)for(c=2;c<n;)e.bezierCurveTo(t[c++],t[c++],t[c++],t[c++],t[c++],t[c++]);else for(c=2;c<n;c+=2)e.lineTo(t[c],t[c+1]);i?(e.closePath(),e.fillStrokeShape(this)):e.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():ix(this.points(),this.tension())}_getTensionPointsClosed(){const e=this.points(),t=e.length,n=this.tension(),r=by(e[t-2],e[t-1],e[0],e[1],e[2],e[3],n),i=by(e[t-4],e[t-3],e[t-2],e[t-1],e[0],e[1],n),a=ix(e,n);return[r[2],r[3]].concat(a).concat([i[0],i[1],e[t-2],e[t-1],i[2],i[3],r[0],r[1],e[0],e[1]])}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){let e=this.points();if(e.length<4)return{x:e[0]||0,y:e[1]||0,width:0,height:0};this.tension()!==0?e=[e[0],e[1],...this._getTensionPoints(),e[e.length-2],e[e.length-1]]:e=this.points();let t=e[0],n=e[0],r=e[1],i=e[1],a,o;for(let s=0;s<e.length/2;s++)a=e[s*2],o=e[s*2+1],t=Math.min(t,a),n=Math.max(n,a),r=Math.min(r,o),i=Math.max(i,o);return{x:t,y:r,width:n-t,height:i-r}}};h0.Line=ts,ts.prototype.className="Line",ts.prototype._attrsAffectingSize=["points","bezier","tension"],(0,YR._registerNode)(ts),rf.Factory.addGetterSetter(ts,"closed",!1),rf.Factory.addGetterSetter(ts,"bezier",!1),rf.Factory.addGetterSetter(ts,"tension",0,(0,rx.getNumberValidator)()),rf.Factory.addGetterSetter(ts,"points",[],(0,rx.getNumberArrayValidator)());var ed={},iT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.t2length=e.getQuadraticArcLength=e.getCubicArcLength=e.binomialCoefficients=e.cValues=e.tValues=void 0,e.tValues=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],e.cValues=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],e.binomialCoefficients=[[1],[1,1],[1,2,1],[1,3,3,1]];const t=(o,s,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<d;m++)h[m]=d*(c[m+1]-c[m]);return i(o-1,s,h)}},a=(o,s,c)=>{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(v<d)d=v,h+=b;else{const w=c(h-b),k=Math.abs(o-w)/s;k<d?(d=k,h-=b):b/=2}if(m++,m>500)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;w<n.length;w++){const k=n[w].command,C=n[w].points;switch(k){case"L":t.lineTo(C[0],C[1]);break;case"M":t.moveTo(C[0],C[1]);break;case"C":t.bezierCurveTo(C[0],C[1],C[2],C[3],C[4],C[5]);break;case"Q":t.quadraticCurveTo(C[0],C[1],C[2],C[3]);break;case"A":var i=C[0],a=C[1],o=C[2],s=C[3],c=C[4],d=C[5],h=C[6],b=C[7],m=o>s?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)<m&&(m=Math.abs(d-b)),h<0)for(let g=d-m;g>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;g<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 if(c.command==="C")for(let d=0;d<=1;d+=.01){const h=Zr.getPointOnCubicBezier(d,c.start.x,c.start.y,c.points[0],c.points[1],c.points[2],c.points[3],c.points[4],c.points[5]);t.push(h.x,h.y)}else t=t.concat(c.points)});let n=t[0],r=t[0],i=t[1],a=t[1],o,s;for(let c=0;c<t.length/2;c++)o=t[c*2],s=t[c*2+1],isNaN(o)||(n=Math.min(n,o),r=Math.max(r,o)),isNaN(s)||(i=Math.min(i,s),a=Math.max(a,s));return{x:n,y:i,width:r-n,height:a-i}}getLength(){return this.pathLength}getPointAtLength(t){return Zr.getPointAtLengthOfDataArray(t,this.dataArray)}static getLineLength(t,n,r,i){return Math.sqrt((r-t)*(r-t)+(i-n)*(i-n))}static getPathLength(t){let n=0;for(let r=0;r<t.length;++r)n+=t[r].pathLength;return n}static getPointAtLengthOfDataArray(t,n){let r,i=0,a=n.length;if(!a)return null;for(;i<a&&t>n[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))*(i<n?-1:1),b=d*h;if(Math.abs(s-r-d*(o-n))<1e-10)return{x:o+h,y:s+b};const m=((o-n)*(i-n)+(s-r)*(a-r))/(c*c),g=n+m*(i-n),v=r+m*(a-r),w=this.getLineLength(o,s,g,v),k=Math.sqrt(t*t-w*w),C=Math.sqrt(k*k/(1+d*d))*(i<n?-1:1),_=d*C;return{x:g+C,y:v+_}}static getPointOnCubicBezier(t,n,r,i,a,o,s,c,d){function h(k){return k*k*k}function b(k){return 3*k*k*(1-k)}function m(k){return 3*k*(1-k)*(1-k)}function g(k){return(1-k)*(1-k)*(1-k)}const v=c*h(t)+o*b(t)+i*m(t)+n*g(t),w=d*h(t)+s*b(t)+a*m(t)+r*g(t);return{x:v,y:w}}static getPointOnQuadraticBezier(t,n,r,i,a,o,s){function c(g){return g*g}function d(g){return 2*g*(1-g)}function h(g){return(1-g)*(1-g)}const b=o*c(t)+i*d(t)+n*h(t),m=s*c(t)+a*d(t)+r*h(t);return{x:b,y:m}}static getPointOnEllipticalArc(t,n,r,i,a,o){const s=Math.cos(o),c=Math.sin(o),d={x:r*Math.cos(a),y:i*Math.sin(a)};return{x:t+(d.x*s-d.y*c),y:n+(d.x*c+d.y*s)}}static parsePathData(t){if(!t)return[];let n=t;const r=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];n=n.replace(new RegExp(" ","g"),",");for(var i=0;i<r.length;i++)n=n.replace(new RegExp(r[i],"g"),"|"+r[i]);const a=n.split("|"),o=[],s=[];let c=0,d=0;const h=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;let b;for(i=1;i<a.length;i++){let P=a[i],N=P.charAt(0);for(P=P.slice(1),s.length=0;b=h.exec(P);)s.push(b[0]);const T=[];for(let R=0,z=s.length;R<z;R++){if(s[R]==="00"){T.push(0,0);continue}const H=parseFloat(s[R]);isNaN(H)?T.push(0):T.push(H)}for(;T.length>0&&!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)<g&&(g=Math.abs(h-m)),o=d.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],h,0),b<0)for(c=h-g;c>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;c<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;return s=d.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],m,0),a+=d.getLineLength(o.x,o.y,s.x,s.y),a}return 0}static convertEndpointToCenterParameterization(t,n,r,i,a,o,s,c,d){const h=d*(Math.PI/180),b=Math.cos(h)*(t-r)/2+Math.sin(h)*(n-i)/2,m=-1*Math.sin(h)*(t-r)/2+Math.cos(h)*(n-i)/2,g=b*b/(s*s)+m*m/(c*c);g>1&&(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]<T[1]*R[0]?-1:1)*Math.acos(x(T,R))},M=E([1,0],[(b-w)/s,(m-k)/c]),j=[(b-w)/s,(m-k)/c],P=[(-1*b-w)/s,(-1*m-k)/c];let N=E(j,P);return x(j,P)<=-1&&(N=Math.PI),x(j,P)>=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<hF;n++)e.on(sT[n]+uF,r)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){let e=this.getText(),t=this.getTag(),n,r,i,a,o,s,c;if(e&&t){switch(n=e.width(),r=e.height(),i=t.pointerDirection(),a=t.pointerWidth(),c=t.pointerHeight(),o=0,s=0,i){case wy:o=n/2,s=-1*c;break;case xy:o=n+a,s=r/2;break;case Cy:o=n/2,s=r+c;break;case Sy:o=-1*a,s=r/2;break}t.setAttrs({x:-1*o,y:-1*s,width:n,height:r}),e.setAttrs({x:-1*o,y:-1*s})}}};Nu.Label=K5,K5.prototype.className="Label",(0,oT._registerNode)(K5);let bl=class extends lF.Shape{_sceneFunc(e){const t=this.width(),n=this.height(),r=this.pointerDirection(),i=this.pointerWidth(),a=this.pointerHeight(),o=this.cornerRadius();let s=0,c=0,d=0,h=0;typeof o=="number"?s=c=d=h=Math.min(o,t/2,n/2):(s=Math.min(o[0]||0,t/2,n/2),c=Math.min(o[1]||0,t/2,n/2),h=Math.min(o[2]||0,t/2,n/2),d=Math.min(o[3]||0,t/2,n/2)),e.beginPath(),e.moveTo(s,0),r===wy&&(e.lineTo((t-i)/2,0),e.lineTo(t/2,-1*a),e.lineTo((t+i)/2,0)),e.lineTo(t-c,0),e.arc(t-c,c,c,Math.PI*3/2,0,!1),r===xy&&(e.lineTo(t,(n-a)/2),e.lineTo(t+i,n/2),e.lineTo(t,(n+a)/2)),e.lineTo(t,n-h),e.arc(t-h,n-h,h,0,Math.PI/2,!1),r===Cy&&(e.lineTo((t+i)/2,n),e.lineTo(t/2,n+a),e.lineTo((t-i)/2,n)),e.lineTo(d,n),e.arc(d,n-d,d,Math.PI/2,Math.PI,!1),r===Sy&&(e.lineTo(0,(n+a)/2),e.lineTo(-1*i,n/2),e.lineTo(0,(n-a)/2)),e.lineTo(0,s),e.arc(s,s,s,Math.PI,Math.PI*3/2,!1),e.closePath(),e.fillStrokeShape(this)}getSelfRect(){let e=0,t=0,n=this.pointerWidth(),r=this.pointerHeight(),i=this.pointerDirection(),a=this.width(),o=this.height();return i===wy?(t-=r,o+=r):i===Cy?o+=r:i===Sy?(e-=n*1.5,a+=n):i===xy&&(a+=n*1.5),{x:e,y:t,width:a,height:o}}};Nu.Tag=bl,bl.prototype.className="Tag",(0,oT._registerNode)(bl),of.Factory.addGetterSetter(bl,"pointerDirection",dF),of.Factory.addGetterSetter(bl,"pointerWidth",0,(0,Y5.getNumberValidator)()),of.Factory.addGetterSetter(bl,"pointerHeight",0,(0,Y5.getNumberValidator)()),of.Factory.addGetterSetter(bl,"cornerRadius",0,(0,Y5.getNumberOrArrayOfNumbersValidator)(4));var f0={};Object.defineProperty(f0,"__esModule",{value:!0}),f0.Rect=void 0;const fF=pt,pF=Jn,gF=ct,mF=Cn,vF=qe;let sf=class extends pF.Shape{_sceneFunc(e){const t=this.cornerRadius(),n=this.width(),r=this.height();e.beginPath(),t?mF.Util.drawRoundedRectPath(e,n,r,t):e.rect(0,0,n,r),e.closePath(),e.fillStrokeShape(this)}};f0.Rect=sf,sf.prototype.className="Rect",(0,gF._registerNode)(sf),fF.Factory.addGetterSetter(sf,"cornerRadius",0,(0,vF.getNumberOrArrayOfNumbersValidator)(4));var j2={};Object.defineProperty(j2,"__esModule",{value:!0}),j2.RegularPolygon=void 0;const lx=pt,yF=Jn,cx=qe,bF=ct;let wl=class extends yF.Shape{_sceneFunc(e){const t=this._getPoints();e.beginPath(),e.moveTo(t[0].x,t[0].y);for(let n=1;n<t.length;n++)e.lineTo(t[n].x,t[n].y);e.closePath(),e.fillStrokeShape(this)}_getPoints(){const e=this.attrs.sides,t=this.attrs.radius||0,n=[];for(let r=0;r<e;r++)n.push({x:t*Math.sin(r*2*Math.PI/e),y:-1*t*Math.cos(r*2*Math.PI/e)});return n}getSelfRect(){const e=this._getPoints();let t=e[0].x,n=e[0].y,r=e[0].x,i=e[0].y;return e.forEach(a=>{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<i-1?this.frameIndex(e+1):this.frameIndex(0)}};D2.Sprite=ja,ja.prototype.className="Sprite",(0,EF._registerNode)(ja),Cl.Factory.addGetterSetter(ja,"animation"),Cl.Factory.addGetterSetter(ja,"animations"),Cl.Factory.addGetterSetter(ja,"frameOffsets"),Cl.Factory.addGetterSetter(ja,"image"),Cl.Factory.addGetterSetter(ja,"frameIndex",0,(0,fx.getNumberValidator)()),Cl.Factory.addGetterSetter(ja,"frameRate",17,(0,fx.getNumberValidator)()),Cl.Factory.backCompat(ja,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});var R2={};Object.defineProperty(R2,"__esModule",{value:!0}),R2.Star=void 0;const Z5=pt,_F=Jn,q5=qe,kF=ct;let rs=class extends _F.Shape{_sceneFunc(e){const t=this.innerRadius(),n=this.outerRadius(),r=this.numPoints();e.beginPath(),e.moveTo(0,0-n);for(let i=1;i<r*2;i++){const a=i%2===0?n:t,o=a*Math.sin(i*Math.PI/r),s=-1*a*Math.cos(i*Math.PI/r);e.lineTo(o,s)}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)}};R2.Star=rs,rs.prototype.className="Star",rs.prototype._centroid=!0,rs.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,kF._registerNode)(rs),Z5.Factory.addGetterSetter(rs,"numPoints",5,(0,q5.getNumberValidator)()),Z5.Factory.addGetterSetter(rs,"innerRadius",0,(0,q5.getNumberValidator)()),Z5.Factory.addGetterSetter(rs,"outerRadius",0,(0,q5.getNumberValidator)());var Du={};Object.defineProperty(Du,"__esModule",{value:!0}),Du.Text=void 0,Du.stringToArray=zl;const Ey=Cn,kr=pt,OF=Jn,$5=ct,is=qe,PF=ct;function zl(e){return[...e].reduce((t,n,r,i)=>{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;t<BF;t++)this.on(uT[t]+MF,this._setTextData);this._setTextData()}_sceneFunc(e){const t=this.textArr,n=t.length;if(!this.text())return;let 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===lT?e.direction:s;let C=a/2,_=gx;if($5.Konva._fixTextRendering){const R=this.measureSize("M");_="alphabetic",C=(R.fontBoundingBoxAscent-R.fontBoundingBoxDescent)/2+a/2}var f=0,x=0;for(s===vx&&e.setAttr("direction",s),e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",_),e.setAttr("textAlign",cT),o===gx?c=(this.getHeight()-n*a-r*2)/2:o===NF&&(c=this.getHeight()-n*a-r*2),e.translate(r,c+r),k=0;k<n;k++){var f=0,x=0,E=t[k],M=E.text,j=E.width,P=E.lastInParagraph,N,T;if(e.save(),d===RF?f+=h-j-r*2:d===TF&&(f+=(h-j-r*2)/2),v){e.save(),e.beginPath();const H=$5.Konva._fixTextRendering?Math.round(i/4):Math.round(i/2),J=f,q=C+x+H;e.moveTo(J,q),N=M.split(" ").length-1,T=d===th&&!P?h-r*2:j,e.lineTo(J+Math.round(T),q),e.lineWidth=i/15;const Y=this._getLinearGradient();e.strokeStyle=Y||m,e.stroke(),e.restore()}if(w){e.save(),e.beginPath();const H=$5.Konva._fixTextRendering?-Math.round(i/4):0;e.moveTo(f,C+x+H),N=M.split(" ").length-1,T=d===th&&!P?h-r*2:j,e.lineTo(f+Math.round(T),C+x+H),e.lineWidth=i/15;const J=this._getLinearGradient();e.strokeStyle=J||m,e.stroke(),e.restore()}if(s!==vx&&(b!==0||d===th)){N=M.split(" ").length-1;const H=zl(M);for(let J=0;J<H.length;J++){const q=H[J];q===" "&&!P&&d===th&&(f+=(h-r*2-j)/N),this._partialTextX=f,this._partialTextY=C+x,this._partialText=q,e.fillStrokeShape(this),f+=this.measureSize(q).width+b}}else b!==0&&e.setAttr("letterSpacing",`${b}px`),this._partialTextX=f,this._partialTextY=C+x,this._partialText=M,e.fillStrokeShape(this);e.restore(),n>1&&(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<M;){const N=E+M>>>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)<r||(a.text=a.text.slice(0,a.text.length-3))),this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+Q5))}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const e=this.textDecoration().indexOf("underline")!==-1||this.textDecoration().indexOf("line-through")!==-1,t=this.hasShadow();return e&&t?!0:super._useBufferCanvas()}};Du.Text=_n,_n.prototype._fillFunc=GF,_n.prototype._strokeFunc=VF,_n.prototype.className=LF,_n.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],(0,PF._registerNode)(_n),kr.Factory.overWriteSetter(_n,"width",(0,is.getNumberOrAutoValidator)()),kr.Factory.overWriteSetter(_n,"height",(0,is.getNumberOrAutoValidator)()),kr.Factory.addGetterSetter(_n,"direction",lT),kr.Factory.addGetterSetter(_n,"fontFamily","Arial"),kr.Factory.addGetterSetter(_n,"fontSize",12,(0,is.getNumberValidator)()),kr.Factory.addGetterSetter(_n,"fontStyle",mx),kr.Factory.addGetterSetter(_n,"fontVariant",mx),kr.Factory.addGetterSetter(_n,"padding",0,(0,is.getNumberValidator)()),kr.Factory.addGetterSetter(_n,"align",cT),kr.Factory.addGetterSetter(_n,"verticalAlign",jF),kr.Factory.addGetterSetter(_n,"lineHeight",1,(0,is.getNumberValidator)()),kr.Factory.addGetterSetter(_n,"wrap",FF),kr.Factory.addGetterSetter(_n,"ellipsis",!1,(0,is.getBooleanValidator)()),kr.Factory.addGetterSetter(_n,"letterSpacing",0,(0,is.getNumberValidator)()),kr.Factory.addGetterSetter(_n,"text","",(0,is.getStringValidator)()),kr.Factory.addGetterSetter(_n,"textDecoration","");var F2={};Object.defineProperty(F2,"__esModule",{value:!0}),F2.TextPath=void 0;const t4=Cn,ta=pt,WF=Jn,nh=ed,n4=Du,bx=qe,XF=ct,YF="",wx="normal";function xx(e){e.fillText(this.partialText,0,0)}function Cx(e){e.strokeText(this.partialText,0,0)}let Wn=class extends WF.Shape{constructor(e){super(e),this.dummyCanvas=t4.Util.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute(),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return nh.Path.getPathLength(this.dataArray)}_getPointAtLength(e){if(!this.attrs.data)return null;const t=this.pathLength;return e-1>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<i.length;a++){e.save();const o=i[a].p0;e.translate(o.x,o.y),e.rotate(i[a].rotation),this.partialText=i[a].text,e.fillStrokeShape(this),t==="underline"&&(a===0&&e.moveTo(0,r/2+1),e.lineTo(r,r/2+1)),e.restore()}t==="underline"&&(e.strokeStyle=n,e.lineWidth=r/20,e.stroke()),e.restore()}_hitFunc(e){e.beginPath();const t=this.glyphInfo;if(t.length>=1){const n=t[0].p0;e.moveTo(n.x,n.y)}for(let n=0;n<t.length;n++){const r=t[n].p1;e.lineTo(r.x,r.y)}e.setAttr("lineWidth",this.fontSize()),e.setAttr("strokeStyle",this.colorKey),e.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return t4.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(e){return n4.Text.prototype.setText.call(this,e)}_getContextFont(){return n4.Text.prototype._getContextFont.call(this)}_getTextSize(e){const t=this.dummyCanvas.getContext("2d");t.save(),t.font=this._getContextFont();const n=t.measureText(e);return t.restore(),{width:n.width,height:parseInt(`${this.fontSize()}`,10)}}_setTextData(){const{width:e,height:t}=this._getTextSize(this.attrs.text);if(this.textWidth=e,this.textHeight=t,this.glyphInfo=[],!this.attrs.data)return null;const n=this.letterSpacing(),r=this.align(),i=this.kerningFunc(),a=Math.max(this.textWidth+((this.attrs.text||"").length-1)*n,0);let o=0;r==="center"&&(o=Math.max(0,this.pathLength/2-a/2)),r==="right"&&(o=Math.max(0,this.pathLength-a));const s=(0,n4.stringToArray)(this.text());let c=o;for(let d=0;d<s.length;d++){const h=this._getPointAtLength(c);if(!h)return;let b=this._getTextSize(s[d]).width+n;if(s[d]===" "&&r==="justify"){const C=this.text().split(" ").length-1;b+=(this.pathLength-a)/C}const m=this._getPointAtLength(c+b);if(!m)return;const g=nh.Path.getLineLength(h.x,h.y,m.x,m.y);let v=0;if(i)try{v=i(s[d-1],s[d])*this.fontSize()}catch{v=0}h.x+=v,m.x+=v,this.textWidth+=v;const w=nh.Path.getPointOnLine(v+g/2,h.x,h.y,m.x,m.y),k=Math.atan2(m.y-h.y,m.x-h.x);this.glyphInfo.push({transposeX:w.x,transposeY:w.y,text:s[d],rotation:k,p0:h,p1:m}),c+=b}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};const e=[];this.glyphInfo.forEach(function(c){e.push(c.p0.x),e.push(c.p0.y),e.push(c.p1.x),e.push(c.p1.y)});let t=e[0]||0,n=e[0]||0,r=e[1]||0,i=e[1]||0,a,o;for(let c=0;c<e.length/2;c++)a=e[c*2],o=e[c*2+1],t=Math.min(t,a),n=Math.max(n,a),r=Math.min(r,o),i=Math.max(i,o);const s=this.fontSize();return{x:t-s/2,y:r-s/2,width:n-t+s,height:i-r+s}}destroy(){return t4.Util.releaseCanvas(this.dummyCanvas),super.destroy()}};F2.TextPath=Wn,Wn.prototype._fillFunc=xx,Wn.prototype._strokeFunc=Cx,Wn.prototype._fillFuncHit=xx,Wn.prototype._strokeFuncHit=Cx,Wn.prototype.className="TextPath",Wn.prototype._attrsAffectingSize=["text","fontSize","data"],(0,XF._registerNode)(Wn),ta.Factory.addGetterSetter(Wn,"data"),ta.Factory.addGetterSetter(Wn,"fontFamily","Arial"),ta.Factory.addGetterSetter(Wn,"fontSize",12,(0,bx.getNumberValidator)()),ta.Factory.addGetterSetter(Wn,"fontStyle",wx),ta.Factory.addGetterSetter(Wn,"align","left"),ta.Factory.addGetterSetter(Wn,"letterSpacing",0,(0,bx.getNumberValidator)()),ta.Factory.addGetterSetter(Wn,"textBaseline","middle"),ta.Factory.addGetterSetter(Wn,"fontVariant",wx),ta.Factory.addGetterSetter(Wn,"text",YF),ta.Factory.addGetterSetter(Wn,"textDecoration",""),ta.Factory.addGetterSetter(Wn,"kerningFunc",void 0);var z2={};Object.defineProperty(z2,"__esModule",{value:!0}),z2.Transformer=void 0;const Ht=Cn,Lt=pt,Sx=dn,KF=Jn,ZF=f0,Ex=Qu,ia=ct,as=qe,qF=ct,dT="tr-konva",$F=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map(e=>e+`.${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;i<e.length;i++){const a=ia.Konva.getAngle(e[i]),o=Math.abs(a-t)%(Math.PI*2);Math.min(o,Math.PI*2-o)<n&&(r=a)}return r}let _y=0,St=class extends Ex.Group{constructor(e){super(e),this._movingAnchorName=null,this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on($F,this.update),this.getNode()&&this.update()}attachTo(e){return this.setNode(e),this}setNode(e){return Ht.Util.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([e])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return dT+this._id}setNodes(e=[]){this._nodes&&this._nodes.length&&this.detach();const t=e.filter(n=>n.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.x?-1:1,v=this.findOne(".top-right").y()>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<i.x()?-1:1,v=i.y()<m.y?-1:1;t=r*this.cos*g,n=r*this.sin*v,i.x(m.x-t),i.y(m.y+n)}w=i.position(),this.findOne(".top-left").x(w.x),this.findOne(".bottom-right").y(w.y)}else if(this._movingAnchorName==="bottom-center")this.findOne(".bottom-right").y(i.y());else if(this._movingAnchorName==="bottom-right"){if(b){var m=k?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};r=Math.sqrt(Math.pow(i.x()-m.x,2)+Math.pow(i.y()-m.y,2));var g=this.findOne(".bottom-right").x()<m.x?-1:1,v=this.findOne(".bottom-right").y()<m.y?-1:1;t=r*this.cos*g,n=r*this.sin*v,this.findOne(".bottom-right").x(m.x+t),this.findOne(".bottom-right").y(m.y+n)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));var k=this.centeredScaling()||e.altKey;if(k){const x=this.findOne(".top-left"),E=this.findOne(".bottom-right"),M=x.x(),j=x.y(),P=this.getWidth()-E.x(),N=this.getHeight()-E.y();E.move({x:-M,y:-j}),x.move({x:P,y:N})}const C=this.findOne(".top-left").getAbsolutePosition();t=C.x,n=C.y;const _=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),f=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:t,y:n,width:_,height:f,rotation:ia.Konva.getAngle(this.rotation())},e)}_handleMouseUp(e){this._removeEvents(e)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(e){var t;if(this._transforming){this._transforming=!1,typeof window<"u"&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));const n=this.getNode();_y--,this._fire("transformend",{evt:e,target:n}),(t=this.getLayer())===null||t===void 0||t.batchDraw(),n&&this._nodes.forEach(r=>{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<H;s++)Q=Q.next=new Px,s===Y&&(oe=Q);for(Q.next=K,b=h=0,o=0;o<i;o++){for(x=E=M=j=m=g=v=w=0,k=Y*(P=n[h]),C=Y*(N=n[h+1]),_=Y*(T=n[h+2]),f=Y*(R=n[h+3]),m+=le*P,g+=le*N,v+=le*T,w+=le*R,Q=K,s=0;s<Y;s++)Q.r=P,Q.g=N,Q.b=T,Q.a=R,Q=Q.next;for(s=1;s<Y;s++)c=h+((J<s?J:s)<<2),m+=(Q.r=P=n[c])*(z=Y-s),g+=(Q.g=N=n[c+1])*z,v+=(Q.b=T=n[c+2])*z,w+=(Q.a=R=n[c+3])*z,x+=P,E+=N,M+=T,j+=R,Q=Q.next;for($=K,re=oe,a=0;a<r;a++)n[h+3]=R=w*ce>>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)<J?c:J)<<2,x+=$.r=n[c],E+=$.g=n[c+1],M+=$.b=n[c+2],j+=$.a=n[c+3],m+=x,g+=E,v+=M,w+=j,$=$.next,k+=P=re.r,C+=N=re.g,_+=T=re.b,f+=R=re.a,x-=P,E-=N,M-=T,j-=R,re=re.next,h+=4;b+=r}for(a=0;a<r;a++){for(E=M=j=x=g=v=w=m=0,h=a<<2,k=Y*(P=n[h]),C=Y*(N=n[h+1]),_=Y*(T=n[h+2]),f=Y*(R=n[h+3]),m+=le*P,g+=le*N,v+=le*T,w+=le*R,Q=K,s=0;s<Y;s++)Q.r=P,Q.g=N,Q.b=T,Q.a=R,Q=Q.next;for(d=r,s=1;s<=t;s++)h=d+a<<2,m+=(Q.r=P=n[h])*(z=Y-s),g+=(Q.g=N=n[h+1])*z,v+=(Q.b=T=n[h+2])*z,w+=(Q.a=R=n[h+3])*z,x+=P,E+=N,M+=T,j+=R,Q=Q.next,s<q&&(d+=r);for(h=a,$=K,re=oe,o=0;o<i;o++)c=h<<2,n[c+3]=R=w*ce>>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)<q?c:q)*r<<2,m+=x+=$.r=n[c],g+=E+=$.g=n[c+1],v+=M+=$.b=n[c+2],w+=j+=$.a=n[c+3],$=$.next,k+=P=re.r,C+=N=re.g,_+=T=re.b,f+=R=re.a,x-=P,E-=N,M-=T,j-=R,re=re.next,h+=r}}const pz=function(e){const t=Math.round(this.blurRadius());t>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;i<r;i+=4)n[i]+=t,n[i+1]+=t,n[i+2]+=t};V2.Brighten=vz,Tx.Factory.addGetterSetter(gz.Node,"brightness",0,(0,mz.getNumberValidator)(),Tx.Factory.afterSetFilter);var U2={};Object.defineProperty(U2,"__esModule",{value:!0}),U2.Contrast=void 0;const Mx=pt,yz=dn,bz=qe,wz=function(e){const t=Math.pow((this.contrast()+100)/100,2),n=e.data,r=n.length;let i=150,a=150,o=150;for(let s=0;s<r;s+=4)i=n[s],a=n[s+1],o=n[s+2],i/=255,i-=.5,i*=t,i+=.5,i*=255,a/=255,a-=.5,a*=t,a+=.5,a*=255,o/=255,o-=.5,o*=t,o+=.5,o*=255,i=i<0?0:i>255?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;M<n;M+=4)a=t[M+0],a<r?r=a:a>i&&(i=a),c=t[M+1],c<o?o=c:c>s&&(s=c),b=t[M+2],b<d?d=b:b>h&&(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;M<n;M+=4)t[M+0]=r4(t[M+0],r,i,w,v),t[M+1]=r4(t[M+1],o,s,_,C),t[M+2]=r4(t[M+2],d,h,E,x)};X2.Enhance=_z,Ax.Factory.addGetterSetter(Sz.Node,"enhance",0,(0,Ez.getNumberValidator)(),Ax.Factory.afterSetFilter);var Y2={};Object.defineProperty(Y2,"__esModule",{value:!0}),Y2.Grayscale=void 0;const kz=function(e){const t=e.data,n=t.length;for(let r=0;r<n;r+=4){const i=.34*t[r]+.5*t[r+1]+.16*t[r+2];t[r]=i,t[r+1]=i,t[r+2]=i}};Y2.Grayscale=kz;var K2={};Object.defineProperty(K2,"__esModule",{value:!0}),K2.HSL=void 0;const Uc=pt,i4=dn,a4=qe;Uc.Factory.addGetterSetter(i4.Node,"hue",0,(0,a4.getNumberValidator)(),Uc.Factory.afterSetFilter),Uc.Factory.addGetterSetter(i4.Node,"saturation",0,(0,a4.getNumberValidator)(),Uc.Factory.afterSetFilter),Uc.Factory.addGetterSetter(i4.Node,"luminance",0,(0,a4.getNumberValidator)(),Uc.Factory.afterSetFilter);const Oz=function(e){const t=e.data,n=t.length,r=1,i=Math.pow(2,this.saturation()),a=Math.abs(this.hue()+360)%360,o=this.luminance()*127,s=r*i*Math.cos(a*Math.PI/180),c=r*i*Math.sin(a*Math.PI/180),d=.299*r+.701*s+.167*c,h=.587*r-.587*s+.33*c,b=.114*r-.114*s-.497*c,m=.299*r-.299*s-.328*c,g=.587*r+.413*s+.035*c,v=.114*r-.114*s+.293*c,w=.299*r-.3*s+1.25*c,k=.587*r-.586*s-1.05*c,C=.114*r+.886*s-.2*c;let _,f,x,E;for(let M=0;M<n;M+=4)_=t[M+0],f=t[M+1],x=t[M+2],E=t[M+3],t[M+0]=d*_+h*f+b*x+o,t[M+1]=m*_+g*f+v*x+o,t[M+2]=w*_+k*f+C*x+o,t[M+3]=E};K2.HSL=Oz;var Z2={};Object.defineProperty(Z2,"__esModule",{value:!0}),Z2.HSV=void 0;const Wc=pt,o4=dn,s4=qe,Pz=function(e){const t=e.data,n=t.length,r=Math.pow(2,this.value()),i=Math.pow(2,this.saturation()),a=Math.abs(this.hue()+360)%360,o=r*i*Math.cos(a*Math.PI/180),s=r*i*Math.sin(a*Math.PI/180),c=.299*r+.701*o+.167*s,d=.587*r-.587*o+.33*s,h=.114*r-.114*o-.497*s,b=.299*r-.299*o-.328*s,m=.587*r+.413*o+.035*s,g=.114*r-.114*o+.293*s,v=.299*r-.3*o+1.25*s,w=.587*r-.586*o-1.05*s,k=.114*r+.886*o-.2*s;let C,_,f,x;for(let E=0;E<n;E+=4)C=t[E+0],_=t[E+1],f=t[E+2],x=t[E+3],t[E+0]=c*C+d*_+h*f,t[E+1]=b*C+m*_+g*f,t[E+2]=v*C+w*_+k*f,t[E+3]=x};Z2.HSV=Pz,Wc.Factory.addGetterSetter(o4.Node,"hue",0,(0,s4.getNumberValidator)(),Wc.Factory.afterSetFilter),Wc.Factory.addGetterSetter(o4.Node,"saturation",0,(0,s4.getNumberValidator)(),Wc.Factory.afterSetFilter),Wc.Factory.addGetterSetter(o4.Node,"value",0,(0,s4.getNumberValidator)(),Wc.Factory.afterSetFilter);var q2={};Object.defineProperty(q2,"__esModule",{value:!0}),q2.Invert=void 0;const Tz=function(e){const t=e.data,n=t.length;for(let r=0;r<n;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]};q2.Invert=Tz;var $2={};Object.defineProperty($2,"__esModule",{value:!0}),$2.Kaleidoscope=void 0;const df=pt,Lx=dn,jx=Cn,Nx=qe,Mz=function(e,t,n){const r=e.data,i=t.data,a=e.width,o=e.height,s=n.polarCenterX||a/2,c=n.polarCenterY||o/2;let d=Math.sqrt(s*s+c*c),h=a-s,b=o-c;const m=Math.sqrt(h*h+b*b);d=m>d?m:d;const g=o,v=a,w=360/v*Math.PI/180;for(let k=0;k<v;k+=1){const C=Math.sin(k*w),_=Math.cos(k*w);for(let f=0;f<g;f+=1){h=Math.floor(s+d*f/g*_),b=Math.floor(c+d*f/g*C);let x=(b*a+h)*4;const E=r[x+0],M=r[x+1],j=r[x+2],P=r[x+3];x=(k+f*a)*4,i[x+0]=E,i[x+1]=M,i[x+2]=j,i[x+3]=P}}},Iz=function(e,t,n){const r=e.data,i=t.data,a=e.width,o=e.height,s=n.polarCenterX||a/2,c=n.polarCenterY||o/2;let d=Math.sqrt(s*s+c*c),h=a-s,b=o-c;const m=Math.sqrt(h*h+b*b);d=m>d?m:d;const g=o,v=a,w=0;let k,C;for(h=0;h<a;h+=1)for(b=0;b<o;b+=1){const _=h-s,f=b-c,x=Math.sqrt(_*_+f*f)*g/d;let E=(Math.atan2(f,_)*180/Math.PI+360+w)%360;E=E*v/360,k=Math.floor(E),C=Math.floor(x);let M=(C*a+k)*4;const j=r[M+0],P=r[M+1],N=r[M+2],T=r[M+3];M=(b*a+h)*4,i[M+0]=j,i[M+1]=P,i[M+2]=N,i[M+3]=T}},Az=function(e){const t=e.width,n=e.height;let r,i,a,o,s,c,d,h,b,m,g=Math.round(this.kaleidoscopePower());const v=Math.round(this.kaleidoscopeAngle()),w=Math.floor(t*(v%360)/360);if(g<1)return;const k=jx.Util.createCanvasElement();k.width=t,k.height=n;const C=k.getContext("2d").getImageData(0,0,t,n);jx.Util.releaseCanvas(k),Mz(e,C,{polarCenterX:t/2,polarCenterY:n/2});let _=t/Math.pow(2,g);for(;_<=8;)_=_*2,g-=1;_=Math.ceil(_);let f=_,x=0,E=f,M=1;for(w+_>t&&(x=f,E=0,M=-1),i=0;i<n;i+=1)for(r=x;r!==E;r+=M)a=Math.round(r+w)%t,b=(t*i+a)*4,s=C.data[b+0],c=C.data[b+1],d=C.data[b+2],h=C.data[b+3],m=(t*i+r)*4,C.data[m+0]=s,C.data[m+1]=c,C.data[m+2]=d,C.data[m+3]=h;for(i=0;i<n;i+=1)for(f=Math.floor(_),o=0;o<g;o+=1){for(r=0;r<f+1;r+=1)b=(t*i+r)*4,s=C.data[b+0],c=C.data[b+1],d=C.data[b+2],h=C.data[b+3],m=(t*i+f*2-r-1)*4,C.data[m+0]=s,C.data[m+1]=c,C.data[m+2]=d,C.data[m+3]=h;f*=2}Iz(C,e,{})};$2.Kaleidoscope=Az,df.Factory.addGetterSetter(Lx.Node,"kaleidoscopePower",2,(0,Nx.getNumberValidator)(),df.Factory.afterSetFilter),df.Factory.addGetterSetter(Lx.Node,"kaleidoscopeAngle",0,(0,Nx.getNumberValidator)(),df.Factory.afterSetFilter);var Q2={};Object.defineProperty(Q2,"__esModule",{value:!0}),Q2.Mask=void 0;const Dx=pt,Lz=dn,jz=qe;function hf(e,t,n){let r=(n*e.width+t)*4;const i=[];return i.push(e.data[r++],e.data[r++],e.data[r++],e.data[r++]),i}function rh(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2))}function Nz(e){const t=[0,0,0];for(let n=0;n<e.length;n++)t[0]+=e[n][0],t[1]+=e[n][1],t[2]+=e[n][2];return t[0]/=e.length,t[1]/=e.length,t[2]/=e.length,t}function Dz(e,t){const n=hf(e,0,0),r=hf(e,e.width-1,0),i=hf(e,0,e.height-1),a=hf(e,e.width-1,e.height-1),o=t||10;if(rh(n,r)<o&&rh(r,a)<o&&rh(a,i)<o&&rh(i,n)<o){const s=Nz([r,n,a,i]),c=[];for(let d=0;d<e.width*e.height;d++){const h=rh(s,[e.data[d*4],e.data[d*4+1],e.data[d*4+2]]);c[d]=h<o?0:255}return c}}function Rz(e,t){for(let n=0;n<e.width*e.height;n++)e.data[4*n+3]=t[n]}function Fz(e,t,n){const r=[1,1,1,1,0,1,1,1,1],i=Math.round(Math.sqrt(r.length)),a=Math.floor(i/2),o=[];for(let s=0;s<n;s++)for(let c=0;c<t;c++){const d=s*t+c;let h=0;for(let b=0;b<i;b++)for(let m=0;m<i;m++){const g=s+b-a,v=c+m-a;if(g>=0&&g<n&&v>=0&&v<t){const w=g*t+v,k=r[b*i+m];h+=e[w]*k}}o[d]=h===255*8?255:0}return o}function zz(e,t,n){const r=[1,1,1,1,1,1,1,1,1],i=Math.round(Math.sqrt(r.length)),a=Math.floor(i/2),o=[];for(let s=0;s<n;s++)for(let c=0;c<t;c++){const d=s*t+c;let h=0;for(let b=0;b<i;b++)for(let m=0;m<i;m++){const g=s+b-a,v=c+m-a;if(g>=0&&g<n&&v>=0&&v<t){const w=g*t+v,k=r[b*i+m];h+=e[w]*k}}o[d]=h>=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<n;s++)for(let c=0;c<t;c++){const d=s*t+c;let h=0;for(let b=0;b<i;b++)for(let m=0;m<i;m++){const g=s+b-a,v=c+m-a;if(g>=0&&g<n&&v>=0&&v<t){const w=g*t+v,k=r[b*i+m];h+=e[w]*k}}o[d]=h}return o}const Hz=function(e){const t=this.threshold();let n=Dz(e,t);return n&&(n=Fz(n,e.width,e.height),n=zz(n,e.width,e.height),n=Bz(n,e.width,e.height),Rz(e,n)),e};Q2.Mask=Hz,Dx.Factory.addGetterSetter(Lz.Node,"threshold",0,(0,jz.getNumberValidator)(),Dx.Factory.afterSetFilter);var J2={};Object.defineProperty(J2,"__esModule",{value:!0}),J2.Noise=void 0;const Rx=pt,Gz=dn,Vz=qe,Uz=function(e){const t=this.noise()*255,n=e.data,r=n.length,i=t/2;for(let a=0;a<r;a+=4)n[a+0]+=i-2*i*Math.random(),n[a+1]+=i-2*i*Math.random(),n[a+2]+=i-2*i*Math.random()};J2.Noise=Uz,Rx.Factory.addGetterSetter(Gz.Node,"noise",.2,(0,Vz.getNumberValidator)(),Rx.Factory.afterSetFilter);var eg={};Object.defineProperty(eg,"__esModule",{value:!0}),eg.Pixelate=void 0;const Fx=pt,Wz=Cn,Xz=dn,Yz=qe,Kz=function(e){let t=Math.ceil(this.pixelSize()),n=e.width,r=e.height,i,a,o,s,c,d,h,b=Math.ceil(n/t),m=Math.ceil(r/t),g,v,w,k,C,_,f,x=e.data;if(t<=0){Wz.Util.error("pixelSize value can not be <= 0");return}for(C=0;C<b;C+=1)for(_=0;_<m;_+=1){for(s=0,c=0,d=0,h=0,g=C*t,v=g+t,w=_*t,k=w+t,f=0,i=g;i<v;i+=1)if(!(i>=n))for(a=w;a<k;a+=1)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<v;i+=1)if(!(i>=n))for(a=w;a<k;a+=1)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;a<r;a+=1)n[a]=Math.floor(n[a]/i)*i};tg.Posterize=$z,zx.Factory.addGetterSetter(Zz.Node,"levels",.5,(0,qz.getNumberValidator)(),zx.Factory.afterSetFilter);var ng={};Object.defineProperty(ng,"__esModule",{value:!0}),ng.RGB=void 0;const ff=pt,l4=dn,Qz=qe,Jz=function(e){const t=e.data,n=t.length,r=this.red(),i=this.green(),a=this.blue();for(let o=0;o<n;o+=4){const s=(.34*t[o]+.5*t[o+1]+.16*t[o+2])/255;t[o]=s*r,t[o+1]=s*i,t[o+2]=s*a,t[o+3]=t[o+3]}};ng.RGB=Jz,ff.Factory.addGetterSetter(l4.Node,"red",0,function(e){return this._filterUpToDate=!1,e>255?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;s<n;s+=4){const c=1-o;t[s]=r*o+t[s]*c,t[s+1]=i*o+t[s+1]*c,t[s+2]=a*o+t[s+2]*c}};rg.RGBA=tB,ih.Factory.addGetterSetter(pf.Node,"red",0,function(e){return this._filterUpToDate=!1,e>255?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;r<n;r+=4){const i=t[r+0],a=t[r+1],o=t[r+2];t[r+0]=Math.min(255,i*.393+a*.769+o*.189),t[r+1]=Math.min(255,i*.349+a*.686+o*.168),t[r+2]=Math.min(255,i*.272+a*.534+o*.131)}};ig.Sepia=nB;var ag={};Object.defineProperty(ag,"__esModule",{value:!0}),ag.Solarize=void 0;const rB=function(e){const t=e.data,n=e.width,r=e.height,i=n*4;let a=r;do{const o=(a-1)*i;let s=n;do{const c=o+(s-1)*4;let d=t[c],h=t[c+1],b=t[c+2];d>127&&(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;i<r;i+=1)n[i]=n[i]<t?0:255};og.Threshold=oB,Bx.Factory.addGetterSetter(iB.Node,"threshold",.5,(0,aB.getNumberValidator)(),Bx.Factory.afterSetFilter),Object.defineProperty(E2,"__esModule",{value:!0}),E2.Konva=void 0;const Hx=_2,sB=T2,lB=M2,cB=I2,uB=A2,dB=L2,Gx=Nu,hB=h0,fB=ed,pB=f0,gB=j2,mB=N2,vB=D2,yB=R2,bB=Du,wB=F2,xB=z2,CB=H2,SB=G2,EB=V2,_B=U2,kB=W2,OB=X2,PB=Y2,TB=K2,MB=Z2,IB=q2,AB=$2,LB=Q2,jB=J2,NB=eg,DB=tg,RB=ng,FB=rg,zB=ig,BB=ag,HB=og;E2.Konva=Hx.Konva.Util._assign(Hx.Konva,{Arc:sB.Arc,Arrow:lB.Arrow,Circle:cB.Circle,Ellipse:uB.Ellipse,Image:dB.Image,Label:Gx.Label,Tag:Gx.Tag,Line:hB.Line,Path:fB.Path,Rect:pB.Rect,RegularPolygon:gB.RegularPolygon,Ring:mB.Ring,Sprite:vB.Sprite,Star:yB.Star,Text:bB.Text,TextPath:wB.TextPath,Transformer:xB.Transformer,Wedge:CB.Wedge,Filters:{Blur:SB.Blur,Brighten:EB.Brighten,Contrast:_B.Contrast,Emboss:kB.Emboss,Enhance:OB.Enhance,Grayscale:PB.Grayscale,HSL:TB.HSL,HSV:MB.HSV,Invert:IB.Invert,Kaleidoscope:AB.Kaleidoscope,Mask:LB.Mask,Noise:jB.Noise,Pixelate:NB.Pixelate,Posterize:DB.Posterize,RGB:RB.RGB,RGBA:FB.RGBA,Sepia:zB.Sepia,Solarize:BB.Solarize,Threshold:HB.Threshold}});var GB=qP.exports;Object.defineProperty(GB,"__esModule",{value:!0});const VB=E2;qP.exports=VB.Konva;var ky={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Konva=void 0;var n=_2;Object.defineProperty(t,"Konva",{enumerable:!0,get:function(){return n.Konva}});const r=_2;e.exports=r.Konva})(ky,ky.exports);var UB=ky.exports;const p0=uc(UB);var fT={exports:{}},WB=function(e){var t={},n=V,r=Th,i=Object.assign;function a(l){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+l,p=1;p<arguments.length;p++)u+="&args[]="+encodeURIComponent(arguments[p]);return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,s=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),g=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),x=Symbol.iterator;function E(l){return l===null||typeof l!="object"?null:(l=x&&l[x]||l["@@iterator"],typeof l=="function"?l:null)}function M(l){if(l==null)return null;if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case d:return"Fragment";case c:return"Portal";case b:return"Profiler";case h:return"StrictMode";case w:return"Suspense";case k:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case g:return(l.displayName||"Context")+".Consumer";case m:return(l._context.displayName||"Context")+".Provider";case v:var u=l.render;return l=l.displayName,l||(l=u.displayName||u.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case C:return u=l.displayName||null,u!==null?u:M(l.type)||"Memo";case _:u=l._payload,l=l._init;try{return M(l(u))}catch{}}return null}function j(l){var u=l.type;switch(l.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return l=u.render,l=l.displayName||l.name||"",u.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return M(u);case 8:return u===h?"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 u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function P(l){var u=l,p=l;if(l.alternate)for(;u.return;)u=u.return;else{l=u;do u=l,u.flags&4098&&(p=u.return),l=u.return;while(l)}return u.tag===3?p:null}function N(l){if(P(l)!==l)throw Error(a(188))}function T(l){var u=l.alternate;if(!u){if(u=P(l),u===null)throw Error(a(188));return u!==l?null:l}for(var p=l,S=u;;){var O=p.return;if(O===null)break;var A=O.alternate;if(A===null){if(S=O.return,S!==null){p=S;continue}break}if(O.child===A.child){for(A=O.child;A;){if(A===p)return N(O),l;if(A===S)return N(O),u;A=A.sibling}throw Error(a(188))}if(p.return!==S.return)p=O,S=A;else{for(var G=!1,ie=O.child;ie;){if(ie===p){G=!0,p=O,S=A;break}if(ie===S){G=!0,S=O,p=A;break}ie=ie.sibling}if(!G){for(ie=A.child;ie;){if(ie===p){G=!0,p=A,S=O;break}if(ie===S){G=!0,S=A,p=O;break}ie=ie.sibling}if(!G)throw Error(a(189))}}if(p.alternate!==S)throw Error(a(190))}if(p.tag!==3)throw Error(a(188));return p.stateNode.current===p?l:u}function R(l){return l=T(l),l!==null?z(l):null}function z(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){var u=z(l);if(u!==null)return u;l=l.sibling}return null}function H(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){if(l.tag!==4){var u=H(l);if(u!==null)return u}l=l.sibling}return null}var J=Array.isArray,q=e.getPublicInstance,Y=e.getRootHostContext,le=e.getChildHostContext,K=e.prepareForCommit,ce=e.resetAfterCommit,ne=e.createInstance,oe=e.appendInitialChild,Q=e.finalizeInitialChildren,$=e.prepareUpdate,re=e.shouldSetTextContent,we=e.createTextInstance,W=e.scheduleTimeout,D=e.cancelTimeout,B=e.noTimeout,ee=e.isPrimaryRenderer,ue=e.supportsMutation,ve=e.supportsPersistence,se=e.supportsHydration,Ie=e.getInstanceFromNode,Ae=e.preparePortalMount,Se=e.getCurrentEventPriority,Ne=e.detachDeletedInstance,Me=e.supportsMicrotasks,Ye=e.scheduleMicrotask,He=e.supportsTestSelectors,We=e.findFiberRoot,_t=e.getBoundingRect,gt=e.getTextContent,mt=e.isHiddenSubtree,Ge=e.matchAccessibilityRole,Ve=e.setFocusIfFocusable,Mn=e.setupIntersectionObserver,Dn=e.appendChild,fn=e.appendChildToContainer,Fo=e.commitTextUpdate,Pe=e.commitMount,Ze=e.commitUpdate,Pt=e.insertBefore,kt=e.insertInContainerBefore,En=e.removeChild,Vt=e.removeChildFromContainer,on=e.resetTextContent,si=e.hideInstance,Ca=e.hideTextInstance,Sa=e.unhideInstance,Ke=e.unhideTextInstance,et=e.clearContainer,It=e.cloneInstance,Qt=e.createContainerChildSet,In=e.appendChildToContainerChildSet,_i=e.finalizeContainerChildren,li=e.replaceContainerChildren,gc=e.cloneHiddenInstance,mc=e.cloneHiddenTextInstance,ci=e.canHydrateInstance,yd=e.canHydrateTextInstance,Za=e.canHydrateSuspenseInstance,Gn=e.isSuspenseInstancePending,Gr=e.isSuspenseInstanceFallback,bd=e.getSuspenseInstanceFallbackErrorDetails,zo=e.registerSuspenseInstanceRetry,vc=e.getNextHydratableSibling,Rm=e.getFirstHydratableChild,Fm=e.getFirstHydratableChildWithinContainer,zm=e.getFirstHydratableChildWithinSuspenseInstance,Bm=e.hydrateInstance,Bo=e.hydrateTextInstance,Hm=e.hydrateSuspenseInstance,Gm=e.getNextHydratableInstanceAfterSuspenseInstance,Vm=e.commitHydratedContainer,Um=e.commitHydratedSuspenseInstance,Wm=e.clearSuspenseBoundary,Xm=e.clearSuspenseBoundaryFromContainer,wd=e.shouldDeleteUnhydratedTailInstances,Ym=e.didNotMatchHydratedContainerTextInstance,yc=e.didNotMatchHydratedTextInstance,Js;function el(l){if(Js===void 0)try{throw Error()}catch(p){var u=p.stack.trim().match(/\n( *(at )?)/);Js=u&&u[1]||""}return`
|
|
`+Js+l}var Ho=!1;function bc(l,u){if(!l||Ho)return"";Ho=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(u)if(u=function(){throw Error()},Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(ke){var S=ke}Reflect.construct(l,[],u)}else{try{u.call()}catch(ke){S=ke}l.call(u.prototype)}else{try{throw Error()}catch(ke){S=ke}l()}}catch(ke){if(ke&&S&&typeof ke.stack=="string"){for(var O=ke.stack.split(`
|
|
`),A=S.stack.split(`
|
|
`),G=O.length-1,ie=A.length-1;1<=G&&0<=ie&&O[G]!==A[ie];)ie--;for(;1<=G&&0<=ie;G--,ie--)if(O[G]!==A[ie]){if(G!==1||ie!==1)do if(G--,ie--,0>ie||O[G]!==A[ie]){var ge=`
|
|
`+O[G].replace(" at new "," at ");return l.displayName&&ge.includes("<anonymous>")&&(ge=ge.replace("<anonymous>",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;0<u;)p=31-ui(u),O=1<<p,S|=l[p],u&=~O;return S}function $m(l,u){switch(l){case 1:case 2:case 4:return u+250;case 8:case 16:case 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 u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Cd(l,u){for(var p=l.suspendedLanes,S=l.pingedLanes,O=l.expirationTimes,A=l.pendingLanes;0<A;){var G=31-ui(A),ie=1<<G,ge=O[G];ge===-1?(!(ie&p)||ie&S)&&(O[G]=$m(ie,u)):ge<=u&&(l.expiredLanes|=ie),A&=~ie}}function Sd(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function B0(){var l=xc;return xc<<=1,!(xc&4194240)&&(xc=64),l}function Ed(l){for(var u=[],p=0;31>p;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<p;){var O=31-ui(p),A=1<<O;u[O]=0,S[O]=-1,l[O]=-1,p&=~A}}function il(l,u){var p=l.entangledLanes|=u;for(l=l.entanglements;p;){var S=31-ui(p),O=1<<S;O&u|l[S]&u&&(l[S]|=u),p&=~O}}var bt=0;function H0(l){return l&=-l,1<l?4<l?l&268435455?16:536870912:4:1}var Sc=r.unstable_scheduleCallback,Ec=r.unstable_cancelCallback,G0=r.unstable_shouldYield,$a=r.unstable_requestPaint,sn=r.unstable_now,kd=r.unstable_ImmediatePriority,V0=r.unstable_UserBlockingPriority,Od=r.unstable_NormalPriority,U0=r.unstable_IdlePriority,_c=null,ki=null;function W0(l){if(ki&&typeof ki.onCommitFiberRoot=="function")try{ki.onCommitFiberRoot(_c,l,void 0,(l.current.flags&128)===128)}catch{}}function Qm(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var U=typeof Object.is=="function"?Object.is:Qm,te=null,pe=!1,Fe=!1;function vt(l){te===null?te=[l]:te.push(l)}function Bt(l){pe=!0,vt(l)}function Ct(){if(!Fe&&te!==null){Fe=!0;var l=0,u=bt;try{var p=te;for(bt=1;l<p.length;l++){var S=p[l];do S=S(!0);while(S!==null)}te=null,pe=!1}catch(O){throw te!==null&&(te=te.slice(l+1)),Sc(kd,Ct),O}finally{bt=u,Fe=!1}}return null}var dt=[],At=0,yr=null,nr=0,rr=[],br=0,Zi=null,Oi=1,Qa="";function al(l,u){dt[At++]=nr,dt[At++]=yr,yr=l,nr=u}function R7(l,u,p){rr[br++]=Oi,rr[br++]=Qa,rr[br++]=Zi,Zi=l;var S=Oi;l=Qa;var O=32-ui(S)-1;S&=~(1<<O),p+=1;var A=32-ui(u)+O;if(30<A){var G=O-O%5;A=(S&(1<<G)-1).toString(32),S>>=G,O-=G,Oi=1<<32-ui(u)+O|p<<O|S,Qa=A+l}else Oi=1<<A|p<<O|S,Qa=l}function Jm(l){l.return!==null&&(al(l,1),R7(l,1,0))}function e3(l){for(;l===yr;)yr=dt[--At],dt[At]=null,nr=dt[--At],dt[At]=null;for(;l===Zi;)Zi=rr[--br],rr[br]=null,Qa=rr[--br],rr[br]=null,Oi=rr[--br],rr[br]=null}var di=null,Pi=null,ln=!1,Pd=!1,qi=null;function F7(l,u){var p=Li(5,null,null,0);p.elementType="DELETED",p.stateNode=u,p.return=l,u=l.deletions,u===null?(l.deletions=[p],l.flags|=16):u.push(p)}function z7(l,u){switch(l.tag){case 5:return u=ci(u,l.type,l.pendingProps),u!==null?(l.stateNode=u,di=l,Pi=Rm(u),!0):!1;case 6:return u=yd(u,l.pendingProps),u!==null?(l.stateNode=u,di=l,Pi=null,!0):!1;case 13:if(u=Za(u),u!==null){var p=Zi!==null?{id:Oi,overflow:Qa}:null;return l.memoizedState={dehydrated:u,treeContext:p,retryLane:1073741824},p=Li(18,null,null,0),p.stateNode=u,p.return=l,l.child=p,di=l,Pi=null,!0}return!1;default:return!1}}function t3(l){return(l.mode&1)!==0&&(l.flags&128)===0}function n3(l){if(ln){var u=Pi;if(u){var p=u;if(!z7(l,u)){if(t3(l))throw Error(a(418));u=vc(p);var S=di;u&&z7(l,u)?F7(S,p):(l.flags=l.flags&-4097|2,ln=!1,di=l)}}else{if(t3(l))throw Error(a(418));l.flags=l.flags&-4097|2,ln=!1,di=l}}}function B7(l){for(l=l.return;l!==null&&l.tag!==5&&l.tag!==3&&l.tag!==13;)l=l.return;di=l}function X0(l){if(!se||l!==di)return!1;if(!ln)return B7(l),ln=!0,!1;if(l.tag!==3&&(l.tag!==5||wd(l.type)&&!re(l.type,l.memoizedProps))){var u=Pi;if(u){if(t3(l))throw H7(),Error(a(418));for(;u;)F7(l,u),u=vc(u)}}if(B7(l),l.tag===13){if(!se)throw Error(a(316));if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(a(317));Pi=Gm(l)}else Pi=di?vc(l.stateNode):null;return!0}function H7(){for(var l=Pi;l;)l=vc(l)}function kc(){se&&(Pi=di=null,Pd=ln=!1)}function r3(l){qi===null?qi=[l]:qi.push(l)}var vA=o.ReactCurrentBatchConfig;function Y0(l,u){if(U(l,u))return!0;if(typeof l!="object"||l===null||typeof u!="object"||u===null)return!1;var p=Object.keys(l),S=Object.keys(u);if(p.length!==S.length)return!1;for(S=0;S<p.length;S++){var O=p[S];if(!Km.call(u,O)||!U(l[O],u[O]))return!1}return!0}function yA(l){switch(l.tag){case 5:return el(l.type);case 16:return el("Lazy");case 13:return el("Suspense");case 19:return el("SuspenseList");case 0:case 2:case 15:return l=bc(l.type,!1),l;case 11:return l=bc(l.type.render,!1),l;case 1:return l=bc(l.type,!0),l;default:return""}}function Td(l,u,p){if(l=p.ref,l!==null&&typeof l!="function"&&typeof l!="object"){if(p._owner){if(p=p._owner,p){if(p.tag!==1)throw Error(a(309));var S=p.stateNode}if(!S)throw Error(a(147,l));var O=S,A=""+l;return u!==null&&u.ref!==null&&typeof u.ref=="function"&&u.ref._stringRef===A?u.ref:(u=function(G){var ie=O.refs;G===null?delete ie[A]:ie[A]=G},u._stringRef=A,u)}if(typeof l!="string")throw Error(a(284));if(!p._owner)throw Error(a(290,l))}return l}function K0(l,u){throw l=Object.prototype.toString.call(u),Error(a(31,l==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":l))}function G7(l){var u=l._init;return u(l._payload)}function V7(l){function u(fe,ae){if(l){var ye=fe.deletions;ye===null?(fe.deletions=[ae],fe.flags|=16):ye.push(ae)}}function p(fe,ae){if(!l)return null;for(;ae!==null;)u(fe,ae),ae=ae.sibling;return null}function S(fe,ae){for(fe=new Map;ae!==null;)ae.key!==null?fe.set(ae.key,ae):fe.set(ae.index,ae),ae=ae.sibling;return fe}function O(fe,ae){return fe=$o(fe,ae),fe.index=0,fe.sibling=null,fe}function A(fe,ae,ye){return fe.index=ye,l?(ye=fe.alternate,ye!==null?(ye=ye.index,ye<ae?(fe.flags|=2,ae):ye):(fe.flags|=2,ae)):(fe.flags|=1048576,ae)}function G(fe){return l&&fe.alternate===null&&(fe.flags|=2),fe}function ie(fe,ae,ye,je){return ae===null||ae.tag!==6?(ae=$3(ye,fe.mode,je),ae.return=fe,ae):(ae=O(ae,ye),ae.return=fe,ae)}function ge(fe,ae,ye,je){var Xe=ye.type;return Xe===d?ze(fe,ae,ye.props.children,je,ye.key):ae!==null&&(ae.elementType===Xe||typeof Xe=="object"&&Xe!==null&&Xe.$$typeof===_&&G7(Xe)===ae.type)?(je=O(ae,ye.props),je.ref=Td(fe,ae,ye),je.return=fe,je):(je=_1(ye.type,ye.key,ye.props,null,fe.mode,je),je.ref=Td(fe,ae,ye),je.return=fe,je)}function ke(fe,ae,ye,je){return ae===null||ae.tag!==4||ae.stateNode.containerInfo!==ye.containerInfo||ae.stateNode.implementation!==ye.implementation?(ae=Q3(ye,fe.mode,je),ae.return=fe,ae):(ae=O(ae,ye.children||[]),ae.return=fe,ae)}function ze(fe,ae,ye,je,Xe){return ae===null||ae.tag!==7?(ae=hl(ye,fe.mode,je,Xe),ae.return=fe,ae):(ae=O(ae,ye),ae.return=fe,ae)}function tt(fe,ae,ye){if(typeof ae=="string"&&ae!==""||typeof ae=="number")return ae=$3(""+ae,fe.mode,ye),ae.return=fe,ae;if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case s:return ye=_1(ae.type,ae.key,ae.props,null,fe.mode,ye),ye.ref=Td(fe,null,ae),ye.return=fe,ye;case c:return ae=Q3(ae,fe.mode,ye),ae.return=fe,ae;case _:var je=ae._init;return tt(fe,je(ae._payload),ye)}if(J(ae)||E(ae))return ae=hl(ae,fe.mode,ye,null),ae.return=fe,ae;K0(fe,ae)}return null}function Le(fe,ae,ye,je){var Xe=ae!==null?ae.key:null;if(typeof ye=="string"&&ye!==""||typeof ye=="number")return Xe!==null?null:ie(fe,ae,""+ye,je);if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case s:return ye.key===Xe?ge(fe,ae,ye,je):null;case c:return ye.key===Xe?ke(fe,ae,ye,je):null;case _:return Xe=ye._init,Le(fe,ae,Xe(ye._payload),je)}if(J(ye)||E(ye))return Xe!==null?null:ze(fe,ae,ye,je,null);K0(fe,ye)}return null}function tn(fe,ae,ye,je,Xe){if(typeof je=="string"&&je!==""||typeof je=="number")return fe=fe.get(ye)||null,ie(ae,fe,""+je,Xe);if(typeof je=="object"&&je!==null){switch(je.$$typeof){case s:return fe=fe.get(je.key===null?ye:je.key)||null,ge(ae,fe,je,Xe);case c:return fe=fe.get(je.key===null?ye:je.key)||null,ke(ae,fe,je,Xe);case _:var st=je._init;return tn(fe,ae,ye,st(je._payload),Xe)}if(J(je)||E(je))return fe=fe.get(ye)||null,ze(ae,fe,je,Xe,null);K0(ae,je)}return null}function Wt(fe,ae,ye,je){for(var Xe=null,st=null,nt=ae,Tt=ae=0,or=null;nt!==null&&Tt<ye.length;Tt++){nt.index>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(;Tt<ye.length;Tt++)nt=tt(fe,ye[Tt],je),nt!==null&&(ae=A(nt,ae,Tt),st===null?Xe=nt:st.sibling=nt,st=nt);return ln&&al(fe,Tt),Xe}for(nt=S(fe,nt);Tt<ye.length;Tt++)or=tn(nt,fe,Tt,ye[Tt],je),or!==null&&(l&&or.alternate!==null&&nt.delete(or.key===null?Tt:or.key),ae=A(or,ae,Tt),st===null?Xe=or:st.sibling=or,st=or);return l&&nt.forEach(function(Qo){return u(fe,Qo)}),ln&&al(fe,Tt),Xe}function Xr(fe,ae,ye,je){var Xe=E(ye);if(typeof Xe!="function")throw Error(a(150));if(ye=Xe.call(ye),ye==null)throw Error(a(151));for(var st=Xe=null,nt=ae,Tt=ae=0,or=null,Mt=ye.next();nt!==null&&!Mt.done;Tt++,Mt=ye.next()){nt.index>Tt?(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;u<l.length;u++){var S=l[u],O=S.callback;if(O!==null){if(S.callback=null,S=p,typeof O!="function")throw Error(a(191,O));O.call(S)}}}var Md={},Mi=Ki(Md),Id=Ki(Md),Mc=Ki(Md);function Oa(l){if(l===Md)throw Error(a(174));return l}function u3(l,u){zt(Mc,u),zt(Id,l),zt(Mi,Md),l=Y(u),Ut(Mi),zt(Mi,l)}function Ic(){Ut(Mi),Ut(Id),Ut(Mc)}function q7(l){var u=Oa(Mc.current),p=Oa(Mi.current);u=le(p,l.type,u),p!==u&&(zt(Id,l),zt(Mi,u))}function d3(l){Id.current===l&&(Ut(Mi),Ut(Id))}var pn=Ki(0);function J0(l){for(var u=l;u!==null;){if(u.tag===13){var p=u.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||Gn(p)||Gr(p)))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if(u.flags&128)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var h3=[];function f3(){for(var l=0;l<h3.length;l++){var u=h3[l];ee?u._workInProgressVersionPrimary=null:u._workInProgressVersionSecondary=null}h3.length=0}var e1=o.ReactCurrentDispatcher,p3=o.ReactCurrentBatchConfig,sl=0,gn=null,Vn=null,ir=null,t1=!1,Ad=!1,Ld=0,bA=0;function wr(){throw Error(a(321))}function g3(l,u){if(u===null)return!1;for(var p=0;p<u.length&&p<l.length;p++)if(!U(l[p],u[p]))return!1;return!0}function m3(l,u,p,S,O,A){if(sl=A,gn=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,e1.current=l===null||l.memoizedState===null?SA:EA,l=p(S,O),Ad){A=0;do{if(Ad=!1,Ld=0,25<=A)throw Error(a(301));A+=1,ir=Vn=null,u.updateQueue=null,e1.current=_A,l=p(S,O)}while(Ad)}if(e1.current=i1,u=Vn!==null&&Vn.next!==null,sl=0,ir=Vn=gn=null,t1=!1,u)throw Error(a(300));return l}function v3(){var l=Ld!==0;return Ld=0,l}function Pa(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ir===null?gn.memoizedState=ir=l:ir=ir.next=l,ir}function Ii(){if(Vn===null){var l=gn.alternate;l=l!==null?l.memoizedState:null}else l=Vn.next;var u=ir===null?gn.memoizedState:ir.next;if(u!==null)ir=u,Vn=l;else{if(l===null)throw Error(a(310));Vn=l,l={memoizedState:Vn.memoizedState,baseState:Vn.baseState,baseQueue:Vn.baseQueue,queue:Vn.queue,next:null},ir===null?gn.memoizedState=ir=l:ir=ir.next=l}return ir}function jd(l,u){return typeof u=="function"?u(l):u}function y3(l){var u=Ii(),p=u.queue;if(p===null)throw Error(a(311));p.lastRenderedReducer=l;var S=Vn,O=S.baseQueue,A=p.pending;if(A!==null){if(O!==null){var G=O.next;O.next=A.next,A.next=G}S.baseQueue=O=A,p.pending=null}if(O!==null){A=O.next,S=S.baseState;var ie=G=null,ge=null,ke=A;do{var ze=ke.lane;if((sl&ze)===ze)ge!==null&&(ge=ge.next={lane:0,action:ke.action,hasEagerState:ke.hasEagerState,eagerState:ke.eagerState,next:null}),S=ke.hasEagerState?ke.eagerState:l(S,ke.action);else{var tt={lane:ze,action:ke.action,hasEagerState:ke.hasEagerState,eagerState:ke.eagerState,next:null};ge===null?(ie=ge=tt,G=S):ge=ge.next=tt,gn.lanes|=ze,ll|=ze}ke=ke.next}while(ke!==null&&ke!==A);ge===null?G=S:ge.next=ie,U(S,u.memoizedState)||(Vr=!0),u.memoizedState=S,u.baseState=G,u.baseQueue=ge,p.lastRenderedState=S}if(l=p.interleaved,l!==null){O=l;do A=O.lane,gn.lanes|=A,ll|=A,O=O.next;while(O!==l)}else O===null&&(p.lanes=0);return[u.memoizedState,p.dispatch]}function b3(l){var u=Ii(),p=u.queue;if(p===null)throw Error(a(311));p.lastRenderedReducer=l;var S=p.dispatch,O=p.pending,A=u.memoizedState;if(O!==null){p.pending=null;var G=O=O.next;do A=l(A,G.action),G=G.next;while(G!==O);U(A,u.memoizedState)||(Vr=!0),u.memoizedState=A,u.baseQueue===null&&(u.baseState=A),p.lastRenderedState=A}return[A,S]}function $7(){}function Q7(l,u){var p=gn,S=Ii(),O=u(),A=!U(S.memoizedState,O);if(A&&(S.memoizedState=O,Vr=!0),S=S.queue,w3(tb.bind(null,p,S,l),[l]),S.getSnapshot!==u||A||ir!==null&&ir.memoizedState.tag&1){if(p.flags|=2048,Nd(9,eb.bind(null,p,S,O,u),void 0,null),ar===null)throw Error(a(349));sl&30||J7(p,u,O)}return O}function J7(l,u,p){l.flags|=16384,l={getSnapshot:u,value:p},u=gn.updateQueue,u===null?(u={lastEffect:null,stores:null},gn.updateQueue=u,u.stores=[l]):(p=u.stores,p===null?u.stores=[l]:p.push(l))}function eb(l,u,p,S){u.value=p,u.getSnapshot=S,nb(u)&&rb(l)}function tb(l,u,p){return p(function(){nb(u)&&rb(l)})}function nb(l){var u=l.getSnapshot;l=l.value;try{var p=u();return!U(l,p)}catch{return!0}}function rb(l){var u=ka(l,1);u!==null&&Ai(u,l,1,-1)}function ib(l){var u=Pa();return typeof l=="function"&&(l=l()),u.memoizedState=u.baseState=l,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:jd,lastRenderedState:l},u.queue=l,l=l.dispatch=CA.bind(null,gn,l),[u.memoizedState,l]}function Nd(l,u,p,S){return l={tag:l,create:u,destroy:p,deps:S,next:null},u=gn.updateQueue,u===null?(u={lastEffect:null,stores:null},gn.updateQueue=u,u.lastEffect=l.next=l):(p=u.lastEffect,p===null?u.lastEffect=l.next=l:(S=p.next,p.next=l,l.next=S,u.lastEffect=l)),l}function ab(){return Ii().memoizedState}function n1(l,u,p,S){var O=Pa();gn.flags|=l,O.memoizedState=Nd(1|u,p,void 0,S===void 0?null:S)}function r1(l,u,p,S){var O=Ii();S=S===void 0?null:S;var A=void 0;if(Vn!==null){var G=Vn.memoizedState;if(A=G.destroy,S!==null&&g3(S,G.deps)){O.memoizedState=Nd(u,p,A,S);return}}gn.flags|=l,O.memoizedState=Nd(1|u,p,A,S)}function ob(l,u){return n1(8390656,8,l,u)}function w3(l,u){return r1(2048,8,l,u)}function sb(l,u){return r1(4,2,l,u)}function lb(l,u){return r1(4,4,l,u)}function cb(l,u){if(typeof u=="function")return l=l(),u(l),function(){u(null)};if(u!=null)return l=l(),u.current=l,function(){u.current=null}}function ub(l,u,p){return p=p!=null?p.concat([l]):null,r1(4,4,cb.bind(null,u,l),p)}function x3(){}function db(l,u){var p=Ii();u=u===void 0?null:u;var S=p.memoizedState;return S!==null&&u!==null&&g3(u,S[1])?S[0]:(p.memoizedState=[l,u],l)}function hb(l,u){var p=Ii();u=u===void 0?null:u;var S=p.memoizedState;return S!==null&&u!==null&&g3(u,S[1])?S[0]:(l=l(),p.memoizedState=[l,u],l)}function fb(l,u,p){return sl&21?(U(p,u)||(p=B0(),gn.lanes|=p,ll|=p,l.baseState=!0),u):(l.baseState&&(l.baseState=!1,Vr=!0),l.memoizedState=p)}function wA(l,u){var p=bt;bt=p!==0&&4>p?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++,0<p&&(u+="H"+p.toString(32)),u+=":"}else p=bA++,u=":"+u+"r"+p.toString(32)+":";return l.memoizedState=u},unstable_isNewReconciler:!1},EA={readContext:Ti,useCallback:db,useContext:Ti,useEffect:w3,useImperativeHandle:ub,useInsertionEffect:sb,useLayoutEffect:lb,useMemo:hb,useReducer:y3,useRef:ab,useState:function(){return y3(jd)},useDebugValue:x3,useDeferredValue:function(l){var u=Ii();return fb(u,Vn.memoizedState,l)},useTransition:function(){var l=y3(jd)[0],u=Ii().memoizedState;return[l,u]},useMutableSource:$7,useSyncExternalStore:Q7,useId:pb,unstable_isNewReconciler:!1},_A={readContext:Ti,useCallback:db,useContext:Ti,useEffect:w3,useImperativeHandle:ub,useInsertionEffect:sb,useLayoutEffect:lb,useMemo:hb,useReducer:b3,useRef:ab,useState:function(){return b3(jd)},useDebugValue:x3,useDeferredValue:function(l){var u=Ii();return Vn===null?u.memoizedState=l:fb(u,Vn.memoizedState,l)},useTransition:function(){var l=b3(jd)[0],u=Ii().memoizedState;return[l,u]},useMutableSource:$7,useSyncExternalStore:Q7,useId:pb,unstable_isNewReconciler:!1};function $i(l,u){if(l&&l.defaultProps){u=i({},u),l=l.defaultProps;for(var p in l)u[p]===void 0&&(u[p]=l[p]);return u}return u}function C3(l,u,p,S){u=l.memoizedState,p=p(S,u),p=p==null?u:i({},u,p),l.memoizedState=p,l.lanes===0&&(l.updateQueue.baseState=p)}var a1={isMounted:function(l){return(l=l._reactInternals)?P(l)===l:!1},enqueueSetState:function(l,u,p){l=l._reactInternals;var S=Sr(),O=Zo(l),A=Ja(S,O);A.payload=u,p!=null&&(A.callback=p),u=Xo(l,A,O),u!==null&&(Ai(u,l,O,S),$0(u,l,O))},enqueueReplaceState:function(l,u,p){l=l._reactInternals;var S=Sr(),O=Zo(l),A=Ja(S,O);A.tag=1,A.payload=u,p!=null&&(A.callback=p),u=Xo(l,A,O),u!==null&&(Ai(u,l,O,S),$0(u,l,O))},enqueueForceUpdate:function(l,u){l=l._reactInternals;var p=Sr(),S=Zo(l),O=Ja(p,S);O.tag=2,u!=null&&(O.callback=u),u=Xo(l,O,S),u!==null&&(Ai(u,l,S,p),$0(u,l,S))}};function yb(l,u,p,S,O,A,G){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(S,A,G):u.prototype&&u.prototype.isPureReactComponent?!Y0(p,S)||!Y0(O,A):!0}function bb(l,u,p){var S=!1,O=Ea,A=u.contextType;return typeof A=="object"&&A!==null?A=Ti(A):(O=vr(u)?qa:tr.current,S=u.contextTypes,A=(S=S!=null)?Vo(l,O):Ea),u=new u(p,A),l.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=a1,l.stateNode=u,u._reactInternals=l,S&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=O,l.__reactInternalMemoizedMaskedChildContext=A),u}function wb(l,u,p,S){l=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(p,S),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(p,S),u.state!==l&&a1.enqueueReplaceState(u,u.state,null)}function S3(l,u,p,S){var O=l.stateNode;O.props=p,O.state=l.memoizedState,O.refs={},c3(l);var A=u.contextType;typeof A=="object"&&A!==null?O.context=Ti(A):(A=vr(u)?qa:tr.current,O.context=Vo(l,A)),O.state=l.memoizedState,A=u.getDerivedStateFromProps,typeof A=="function"&&(C3(l,u,A,p),O.state=l.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof O.getSnapshotBeforeUpdate=="function"||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(u=O.state,typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount(),u!==O.state&&a1.enqueueReplaceState(O,O.state,null),Q0(l,p,O,S),O.state=l.memoizedState),typeof O.componentDidMount=="function"&&(l.flags|=4194308)}function Ac(l,u){try{var p="",S=u;do p+=yA(S),S=S.return;while(S);var O=p}catch(A){O=`
|
|
Error generating stack: `+A.message+`
|
|
`+A.stack}return{value:l,source:u,stack:O,digest:null}}function E3(l,u,p){return{value:l,source:null,stack:p??null,digest:u??null}}function _3(l,u){try{console.error(u.value)}catch(p){setTimeout(function(){throw p})}}var kA=typeof WeakMap=="function"?WeakMap:Map;function xb(l,u,p){p=Ja(-1,p),p.tag=3,p.payload={element:null};var S=u.value;return p.callback=function(){b1||(b1=!0,U3=S),_3(l,u)},p}function Cb(l,u,p){p=Ja(-1,p),p.tag=3;var S=l.type.getDerivedStateFromError;if(typeof S=="function"){var O=u.value;p.payload=function(){return S(O)},p.callback=function(){_3(l,u)}}var A=l.stateNode;return A!==null&&typeof A.componentDidCatch=="function"&&(p.callback=function(){_3(l,u),typeof S!="function"&&(Yo===null?Yo=new Set([this]):Yo.add(this));var G=u.stack;this.componentDidCatch(u.value,{componentStack:G!==null?G:""})}),p}function Sb(l,u,p){var S=l.pingCache;if(S===null){S=l.pingCache=new kA;var O=new Set;S.set(u,O)}else O=S.get(u),O===void 0&&(O=new Set,S.set(u,O));O.has(p)||(O.add(p),l=BA.bind(null,l,u,p),u.then(l,l))}function Eb(l){do{var u;if((u=l.tag===13)&&(u=l.memoizedState,u=u!==null?u.dehydrated!==null:!0),u)return l;l=l.return}while(l!==null);return null}function _b(l,u,p,S,O){return l.mode&1?(l.flags|=65536,l.lanes=O,l):(l===u?l.flags|=65536:(l.flags|=128,p.flags|=131072,p.flags&=-52805,p.tag===1&&(p.alternate===null?p.tag=17:(u=Ja(-1,1),u.tag=2,Xo(p,u,1))),p.lanes|=1),l)}var OA=o.ReactCurrentOwner,Vr=!1;function jr(l,u,p,S){u.child=l===null?U7(u,null,p,S):Oc(u,l.child,p,S)}function kb(l,u,p,S,O){p=p.render;var A=u.ref;return Tc(u,O),S=m3(l,u,p,S,A,O),p=v3(),l!==null&&!Vr?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~O,eo(l,u,O)):(ln&&p&&Jm(u),u.flags|=1,jr(l,u,S,O),u.child)}function Ob(l,u,p,S,O){if(l===null){var A=p.type;return typeof A=="function"&&!q3(A)&&A.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(u.tag=15,u.type=A,Pb(l,u,A,S,O)):(l=_1(p.type,null,S,u,u.mode,O),l.ref=u.ref,l.return=u,u.child=l)}if(A=l.child,(l.lanes&O)===0){var G=A.memoizedProps;if(p=p.compare,p=p!==null?p:Y0,p(G,S)&&l.ref===u.ref)return eo(l,u,O)}return u.flags|=1,l=$o(A,S),l.ref=u.ref,l.return=u,u.child=l}function Pb(l,u,p,S,O){if(l!==null){var A=l.memoizedProps;if(Y0(A,S)&&l.ref===u.ref)if(Vr=!1,u.pendingProps=S=A,(l.lanes&O)!==0)l.flags&131072&&(Vr=!0);else return u.lanes=l.lanes,eo(l,u,O)}return k3(l,u,p,S,O)}function Tb(l,u,p){var S=u.pendingProps,O=S.children,A=l!==null?l.memoizedState:null;if(S.mode==="hidden")if(!(u.mode&1))u.memoizedState={baseLanes:0,cachePool:null,transitions:null},zt(jc,hi),hi|=p;else{if(!(p&1073741824))return l=A!==null?A.baseLanes|p:p,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:l,cachePool:null,transitions:null},u.updateQueue=null,zt(jc,hi),hi|=l,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},S=A!==null?A.baseLanes:p,zt(jc,hi),hi|=S}else A!==null?(S=A.baseLanes|p,u.memoizedState=null):S=p,zt(jc,hi),hi|=S;return jr(l,u,O,p),u.child}function Mb(l,u){var p=u.ref;(l===null&&p!==null||l!==null&&l.ref!==p)&&(u.flags|=512,u.flags|=2097152)}function k3(l,u,p,S,O){var A=vr(p)?qa:tr.current;return A=Vo(u,A),Tc(u,O),p=m3(l,u,p,S,A,O),S=v3(),l!==null&&!Vr?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~O,eo(l,u,O)):(ln&&S&&Jm(u),u.flags|=1,jr(l,u,p,O),u.child)}function Ib(l,u,p,S,O){if(vr(p)){var A=!0;Uo(u)}else A=!1;if(Tc(u,O),u.stateNode===null)s1(l,u),bb(u,p,S),S3(u,p,S,O),S=!0;else if(l===null){var G=u.stateNode,ie=u.memoizedProps;G.props=ie;var ge=G.context,ke=p.contextType;typeof ke=="object"&&ke!==null?ke=Ti(ke):(ke=vr(p)?qa:tr.current,ke=Vo(u,ke));var ze=p.getDerivedStateFromProps,tt=typeof ze=="function"||typeof G.getSnapshotBeforeUpdate=="function";tt||typeof G.UNSAFE_componentWillReceiveProps!="function"&&typeof G.componentWillReceiveProps!="function"||(ie!==S||ge!==ke)&&wb(u,G,S,ke),Wo=!1;var Le=u.memoizedState;G.state=Le,Q0(u,S,G,O),ge=u.memoizedState,ie!==S||Le!==ge||mr.current||Wo?(typeof ze=="function"&&(C3(u,p,ze,S),ge=u.memoizedState),(ie=Wo||yb(u,p,ie,S,Le,ge,ke))?(tt||typeof G.UNSAFE_componentWillMount!="function"&&typeof G.componentWillMount!="function"||(typeof G.componentWillMount=="function"&&G.componentWillMount(),typeof G.UNSAFE_componentWillMount=="function"&&G.UNSAFE_componentWillMount()),typeof G.componentDidMount=="function"&&(u.flags|=4194308)):(typeof G.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=S,u.memoizedState=ge),G.props=S,G.state=ge,G.context=ke,S=ie):(typeof G.componentDidMount=="function"&&(u.flags|=4194308),S=!1)}else{G=u.stateNode,Y7(l,u),ie=u.memoizedProps,ke=u.type===u.elementType?ie:$i(u.type,ie),G.props=ke,tt=u.pendingProps,Le=G.context,ge=p.contextType,typeof ge=="object"&&ge!==null?ge=Ti(ge):(ge=vr(p)?qa:tr.current,ge=Vo(u,ge));var tn=p.getDerivedStateFromProps;(ze=typeof tn=="function"||typeof G.getSnapshotBeforeUpdate=="function")||typeof G.UNSAFE_componentWillReceiveProps!="function"&&typeof G.componentWillReceiveProps!="function"||(ie!==tt||Le!==ge)&&wb(u,G,S,ge),Wo=!1,Le=u.memoizedState,G.state=Le,Q0(u,S,G,O);var Wt=u.memoizedState;ie!==tt||Le!==Wt||mr.current||Wo?(typeof tn=="function"&&(C3(u,p,tn,S),Wt=u.memoizedState),(ke=Wo||yb(u,p,ke,S,Le,Wt,ge)||!1)?(ze||typeof G.UNSAFE_componentWillUpdate!="function"&&typeof G.componentWillUpdate!="function"||(typeof G.componentWillUpdate=="function"&&G.componentWillUpdate(S,Wt,ge),typeof G.UNSAFE_componentWillUpdate=="function"&&G.UNSAFE_componentWillUpdate(S,Wt,ge)),typeof G.componentDidUpdate=="function"&&(u.flags|=4),typeof G.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof G.componentDidUpdate!="function"||ie===l.memoizedProps&&Le===l.memoizedState||(u.flags|=4),typeof G.getSnapshotBeforeUpdate!="function"||ie===l.memoizedProps&&Le===l.memoizedState||(u.flags|=1024),u.memoizedProps=S,u.memoizedState=Wt),G.props=S,G.state=Wt,G.context=ge,S=ke):(typeof G.componentDidUpdate!="function"||ie===l.memoizedProps&&Le===l.memoizedState||(u.flags|=4),typeof G.getSnapshotBeforeUpdate!="function"||ie===l.memoizedProps&&Le===l.memoizedState||(u.flags|=1024),S=!1)}return O3(l,u,p,S,A,O)}function O3(l,u,p,S,O,A){Mb(l,u);var G=(u.flags&128)!==0;if(!S&&!G)return O&&F0(u,p,!1),eo(l,u,A);S=u.stateNode,OA.current=u;var ie=G&&typeof p.getDerivedStateFromError!="function"?null:S.render();return u.flags|=1,l!==null&&G?(u.child=Oc(u,l.child,null,A),u.child=Oc(u,null,ie,A)):jr(l,u,ie,A),u.memoizedState=S.state,O&&F0(u,p,!0),u.child}function Ab(l){var u=l.stateNode;u.pendingContext?R0(l,u.pendingContext,u.pendingContext!==u.context):u.context&&R0(l,u.context,!1),u3(l,u.containerInfo)}function Lb(l,u,p,S,O){return kc(),r3(O),u.flags|=256,jr(l,u,p,S),u.child}var P3={dehydrated:null,treeContext:null,retryLane:0};function T3(l){return{baseLanes:l,cachePool:null,transitions:null}}function jb(l,u,p){var S=u.pendingProps,O=pn.current,A=!1,G=(u.flags&128)!==0,ie;if((ie=G)||(ie=l!==null&&l.memoizedState===null?!1:(O&2)!==0),ie?(A=!0,u.flags&=-129):(l===null||l.memoizedState!==null)&&(O|=1),zt(pn,O&1),l===null)return n3(u),l=u.memoizedState,l!==null&&(l=l.dehydrated,l!==null)?(u.mode&1?Gr(l)?u.lanes=8:u.lanes=1073741824:u.lanes=1,null):(G=S.children,l=S.fallback,A?(S=u.mode,A=u.child,G={mode:"hidden",children:G},!(S&1)&&A!==null?(A.childLanes=0,A.pendingProps=G):A=k1(G,S,0,null),l=hl(l,S,p,null),A.return=u,l.return=u,A.sibling=l,u.child=A,u.child.memoizedState=T3(p),u.memoizedState=P3,l):M3(u,G));if(O=l.memoizedState,O!==null&&(ie=O.dehydrated,ie!==null))return PA(l,u,G,S,ie,O,p);if(A){A=S.fallback,G=u.mode,O=l.child,ie=O.sibling;var ge={mode:"hidden",children:S.children};return!(G&1)&&u.child!==O?(S=u.child,S.childLanes=0,S.pendingProps=ge,u.deletions=null):(S=$o(O,ge),S.subtreeFlags=O.subtreeFlags&14680064),ie!==null?A=$o(ie,A):(A=hl(A,G,p,null),A.flags|=2),A.return=u,S.return=u,S.sibling=A,u.child=S,S=A,A=u.child,G=l.child.memoizedState,G=G===null?T3(p):{baseLanes:G.baseLanes|p,cachePool:null,transitions:G.transitions},A.memoizedState=G,A.childLanes=l.childLanes&~p,u.memoizedState=P3,S}return A=l.child,l=A.sibling,S=$o(A,{mode:"visible",children:S.children}),!(u.mode&1)&&(S.lanes=p),S.return=u,S.sibling=null,l!==null&&(p=u.deletions,p===null?(u.deletions=[l],u.flags|=16):p.push(l)),u.child=S,u.memoizedState=null,S}function M3(l,u){return u=k1({mode:"visible",children:u},l.mode,0,null),u.return=l,l.child=u}function o1(l,u,p,S){return S!==null&&r3(S),Oc(u,l.child,null,p),l=M3(u,u.pendingProps.children),l.flags|=2,u.memoizedState=null,l}function PA(l,u,p,S,O,A,G){if(p)return u.flags&256?(u.flags&=-257,S=E3(Error(a(422))),o1(l,u,G,S)):u.memoizedState!==null?(u.child=l.child,u.flags|=128,null):(A=S.fallback,O=u.mode,S=k1({mode:"visible",children:S.children},O,0,null),A=hl(A,O,G,null),A.flags|=2,S.return=u,A.return=u,S.sibling=A,u.child=S,u.mode&1&&Oc(u,l.child,null,G),u.child.memoizedState=T3(G),u.memoizedState=P3,A);if(!(u.mode&1))return o1(l,u,G,null);if(Gr(O))return S=bd(O).digest,A=Error(a(419)),S=E3(A,S,void 0),o1(l,u,G,S);if(p=(G&l.childLanes)!==0,Vr||p){if(S=ar,S!==null){switch(G&-G){case 4:O=2;break;case 16:O=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:O=32;break;case 536870912:O=268435456;break;default:O=0}O=O&(S.suspendedLanes|G)?0:O,O!==0&&O!==A.retryLane&&(A.retryLane=O,ka(l,O),Ai(S,l,O,-1))}return Z3(),S=E3(Error(a(421))),o1(l,u,G,S)}return Gn(O)?(u.flags|=128,u.child=l.child,u=HA.bind(null,l),zo(O,u),null):(l=A.treeContext,se&&(Pi=zm(O),di=u,ln=!0,qi=null,Pd=!1,l!==null&&(rr[br++]=Oi,rr[br++]=Qa,rr[br++]=Zi,Oi=l.id,Qa=l.overflow,Zi=u)),u=M3(u,S.children),u.flags|=4096,u)}function Nb(l,u,p){l.lanes|=u;var S=l.alternate;S!==null&&(S.lanes|=u),s3(l.return,u,p)}function I3(l,u,p,S,O){var A=l.memoizedState;A===null?l.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:S,tail:p,tailMode:O}:(A.isBackwards=u,A.rendering=null,A.renderingStartTime=0,A.last=S,A.tail=p,A.tailMode=O)}function Db(l,u,p){var S=u.pendingProps,O=S.revealOrder,A=S.tail;if(jr(l,u,S.children,p),S=pn.current,(S&2)!==0)S=S&1|2,u.flags|=128;else{if(l!==null&&l.flags&128)e:for(l=u.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Nb(l,p,u);else if(l.tag===19)Nb(l,p,u);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===u)break e;for(;l.sibling===null;){if(l.return===null||l.return===u)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}S&=1}if(zt(pn,S),(u.mode&1)===0)u.memoizedState=null;else switch(O){case"forwards":for(p=u.child,O=null;p!==null;)l=p.alternate,l!==null&&J0(l)===null&&(O=p),p=p.sibling;p=O,p===null?(O=u.child,u.child=null):(O=p.sibling,p.sibling=null),I3(u,!1,O,p,A);break;case"backwards":for(p=null,O=u.child,u.child=null;O!==null;){if(l=O.alternate,l!==null&&J0(l)===null){u.child=O;break}l=O.sibling,O.sibling=p,p=O,O=l}I3(u,!0,p,null,A);break;case"together":I3(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function s1(l,u){!(u.mode&1)&&l!==null&&(l.alternate=null,u.alternate=null,u.flags|=2)}function eo(l,u,p){if(l!==null&&(u.dependencies=l.dependencies),ll|=u.lanes,(p&u.childLanes)===0)return null;if(l!==null&&u.child!==l.child)throw Error(a(153));if(u.child!==null){for(l=u.child,p=$o(l,l.pendingProps),u.child=p,p.return=u;l.sibling!==null;)l=l.sibling,p=p.sibling=$o(l,l.pendingProps),p.return=u;p.sibling=null}return u.child}function TA(l,u,p){switch(u.tag){case 3:Ab(u),kc();break;case 5:q7(u);break;case 1:vr(u.type)&&Uo(u);break;case 4:u3(u,u.stateNode.containerInfo);break;case 10:W7(u,u.type._context,u.memoizedProps.value);break;case 13:var S=u.memoizedState;if(S!==null)return S.dehydrated!==null?(zt(pn,pn.current&1),u.flags|=128,null):p&u.child.childLanes?jb(l,u,p):(zt(pn,pn.current&1),l=eo(l,u,p),l!==null?l.sibling:null);zt(pn,pn.current&1);break;case 19:if(S=(p&u.childLanes)!==0,(l.flags&128)!==0){if(S)return Db(l,u,p);u.flags|=128}var O=u.memoizedState;if(O!==null&&(O.rendering=null,O.tail=null,O.lastEffect=null),zt(pn,pn.current),S)break;return null;case 22:case 23:return u.lanes=0,Tb(l,u,p)}return eo(l,u,p)}function Ta(l){l.flags|=4}function Rb(l,u){if(l!==null&&l.child===u.child)return!0;if(u.flags&16)return!1;for(l=u.child;l!==null;){if(l.flags&12854||l.subtreeFlags&12854)return!1;l=l.sibling}return!0}var Dd,Rd,l1,c1;if(ue)Dd=function(l,u){for(var p=u.child;p!==null;){if(p.tag===5||p.tag===6)oe(l,p.stateNode);else if(p.tag!==4&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===u)break;for(;p.sibling===null;){if(p.return===null||p.return===u)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},Rd=function(){},l1=function(l,u,p,S,O){if(l=l.memoizedProps,l!==S){var A=u.stateNode,G=Oa(Mi.current);p=$(A,p,l,S,O,G),(u.updateQueue=p)&&Ta(u)}},c1=function(l,u,p,S){p!==S&&Ta(u)};else if(ve){Dd=function(l,u,p,S){for(var O=u.child;O!==null;){if(O.tag===5){var A=O.stateNode;p&&S&&(A=gc(A,O.type,O.memoizedProps,O)),oe(l,A)}else if(O.tag===6)A=O.stateNode,p&&S&&(A=mc(A,O.memoizedProps,O)),oe(l,A);else if(O.tag!==4){if(O.tag===22&&O.memoizedState!==null)A=O.child,A!==null&&(A.return=O),Dd(l,O,!0,!0);else if(O.child!==null){O.child.return=O,O=O.child;continue}}if(O===u)break;for(;O.sibling===null;){if(O.return===null||O.return===u)return;O=O.return}O.sibling.return=O.return,O=O.sibling}};var Fb=function(l,u,p,S){for(var O=u.child;O!==null;){if(O.tag===5){var A=O.stateNode;p&&S&&(A=gc(A,O.type,O.memoizedProps,O)),In(l,A)}else if(O.tag===6)A=O.stateNode,p&&S&&(A=mc(A,O.memoizedProps,O)),In(l,A);else if(O.tag!==4){if(O.tag===22&&O.memoizedState!==null)A=O.child,A!==null&&(A.return=O),Fb(l,O,!0,!0);else if(O.child!==null){O.child.return=O,O=O.child;continue}}if(O===u)break;for(;O.sibling===null;){if(O.return===null||O.return===u)return;O=O.return}O.sibling.return=O.return,O=O.sibling}};Rd=function(l,u){var p=u.stateNode;if(!Rb(l,u)){l=p.containerInfo;var S=Qt(l);Fb(S,u,!1,!1),p.pendingChildren=S,Ta(u),_i(l,S)}},l1=function(l,u,p,S,O){var A=l.stateNode,G=l.memoizedProps;if((l=Rb(l,u))&&G===S)u.stateNode=A;else{var ie=u.stateNode,ge=Oa(Mi.current),ke=null;G!==S&&(ke=$(ie,p,G,S,O,ge)),l&&ke===null?u.stateNode=A:(A=It(A,ke,p,G,S,u,l,ie),Q(A,p,S,O,ge)&&Ta(u),u.stateNode=A,l?Ta(u):Dd(A,u,!1,!1))}},c1=function(l,u,p,S){p!==S?(l=Oa(Mc.current),p=Oa(Mi.current),u.stateNode=we(S,l,p,u),Ta(u)):u.stateNode=l.stateNode}}else Rd=function(){},l1=function(){},c1=function(){};function Fd(l,u){if(!ln)switch(l.tailMode){case"hidden":u=l.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?l.tail=null:p.sibling=null;break;case"collapsed":p=l.tail;for(var S=null;p!==null;)p.alternate!==null&&(S=p),p=p.sibling;S===null?u||l.tail===null?l.tail=null:l.tail.sibling=null:S.sibling=null}}function xr(l){var u=l.alternate!==null&&l.alternate.child===l.child,p=0,S=0;if(u)for(var O=l.child;O!==null;)p|=O.lanes|O.childLanes,S|=O.subtreeFlags&14680064,S|=O.flags&14680064,O.return=l,O=O.sibling;else for(O=l.child;O!==null;)p|=O.lanes|O.childLanes,S|=O.subtreeFlags,S|=O.flags,O.return=l,O=O.sibling;return l.subtreeFlags|=S,l.childLanes=p,u}function MA(l,u,p){var S=u.pendingProps;switch(e3(u),u.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xr(u),null;case 1:return vr(u.type)&&wc(),xr(u),null;case 3:return p=u.stateNode,Ic(),Ut(mr),Ut(tr),f3(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(l===null||l.child===null)&&(X0(u)?Ta(u):l===null||l.memoizedState.isDehydrated&&!(u.flags&256)||(u.flags|=1024,qi!==null&&(Y3(qi),qi=null))),Rd(l,u),xr(u),null;case 5:d3(u),p=Oa(Mc.current);var O=u.type;if(l!==null&&u.stateNode!=null)l1(l,u,O,S,p),l.ref!==u.ref&&(u.flags|=512,u.flags|=2097152);else{if(!S){if(u.stateNode===null)throw Error(a(166));return xr(u),null}if(l=Oa(Mi.current),X0(u)){if(!se)throw Error(a(175));l=Bm(u.stateNode,u.type,u.memoizedProps,p,l,u,!Pd),u.updateQueue=l,l!==null&&Ta(u)}else{var A=ne(O,S,p,l,u);Dd(A,u,!1,!1),u.stateNode=A,Q(A,O,S,p,l)&&Ta(u)}u.ref!==null&&(u.flags|=512,u.flags|=2097152)}return xr(u),null;case 6:if(l&&u.stateNode!=null)c1(l,u,l.memoizedProps,S);else{if(typeof S!="string"&&u.stateNode===null)throw Error(a(166));if(l=Oa(Mc.current),p=Oa(Mi.current),X0(u)){if(!se)throw Error(a(176));if(l=u.stateNode,p=u.memoizedProps,(S=Bo(l,p,u,!Pd))&&(O=di,O!==null))switch(O.tag){case 3:Ym(O.stateNode.containerInfo,l,p,(O.mode&1)!==0);break;case 5:yc(O.type,O.memoizedProps,O.stateNode,l,p,(O.mode&1)!==0)}S&&Ta(u)}else u.stateNode=we(S,l,p,u)}return xr(u),null;case 13:if(Ut(pn),S=u.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(ln&&Pi!==null&&u.mode&1&&!(u.flags&128))H7(),kc(),u.flags|=98560,O=!1;else if(O=X0(u),S!==null&&S.dehydrated!==null){if(l===null){if(!O)throw Error(a(318));if(!se)throw Error(a(344));if(O=u.memoizedState,O=O!==null?O.dehydrated:null,!O)throw Error(a(317));Hm(O,u)}else kc(),!(u.flags&128)&&(u.memoizedState=null),u.flags|=4;xr(u),O=!1}else qi!==null&&(Y3(qi),qi=null),O=!0;if(!O)return u.flags&65536?u:null}return u.flags&128?(u.lanes=p,u):(p=S!==null,p!==(l!==null&&l.memoizedState!==null)&&p&&(u.child.flags|=8192,u.mode&1&&(l===null||pn.current&1?Un===0&&(Un=3):Z3())),u.updateQueue!==null&&(u.flags|=4),xr(u),null);case 4:return Ic(),Rd(l,u),l===null&&Ae(u.stateNode.containerInfo),xr(u),null;case 10:return o3(u.type._context),xr(u),null;case 17:return vr(u.type)&&wc(),xr(u),null;case 19:if(Ut(pn),O=u.memoizedState,O===null)return xr(u),null;if(S=(u.flags&128)!==0,A=O.rendering,A===null)if(S)Fd(O,!1);else{if(Un!==0||l!==null&&l.flags&128)for(l=u.child;l!==null;){if(A=J0(l),A!==null){for(u.flags|=128,Fd(O,!1),l=A.updateQueue,l!==null&&(u.updateQueue=l,u.flags|=4),u.subtreeFlags=0,l=p,p=u.child;p!==null;)S=p,O=l,S.flags&=14680066,A=S.alternate,A===null?(S.childLanes=0,S.lanes=O,S.child=null,S.subtreeFlags=0,S.memoizedProps=null,S.memoizedState=null,S.updateQueue=null,S.dependencies=null,S.stateNode=null):(S.childLanes=A.childLanes,S.lanes=A.lanes,S.child=A.child,S.subtreeFlags=0,S.deletions=null,S.memoizedProps=A.memoizedProps,S.memoizedState=A.memoizedState,S.updateQueue=A.updateQueue,S.type=A.type,O=A.dependencies,S.dependencies=O===null?null:{lanes:O.lanes,firstContext:O.firstContext}),p=p.sibling;return zt(pn,pn.current&1|2),u.child}l=l.sibling}O.tail!==null&&sn()>V3&&(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<p.length;S++){var O=p[S];try{var A=l,G=u;if(ue){var ie=G;e:for(;ie!==null;){switch(ie.tag){case 5:ur=ie.stateNode,Qi=!1;break e;case 3:ur=ie.stateNode.containerInfo,Qi=!0;break e;case 4:ur=ie.stateNode.containerInfo,Qi=!0;break e}ie=ie.return}if(ur===null)throw Error(a(160));N3(A,G,O),ur=null,Qi=!1}else N3(A,G,O);var ge=O.alternate;ge!==null&&(ge.return=null),O.return=null}catch(ke){cn(O,u,ke)}}if(u.subtreeFlags&12854)for(u=u.child;u!==null;)Wb(u,l),u=u.sibling}function Wb(l,u){var p=l.alternate,S=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:if(Ji(u,l),Ia(l),S&4){try{zd(3,l,l.return),d1(3,l)}catch(Le){cn(l,l.return,Le)}try{zd(5,l,l.return)}catch(Le){cn(l,l.return,Le)}}break;case 1:Ji(u,l),Ia(l),S&512&&p!==null&&Lc(p,p.return);break;case 5:if(Ji(u,l),Ia(l),S&512&&p!==null&&Lc(p,p.return),ue){if(l.flags&32){var O=l.stateNode;try{on(O)}catch(Le){cn(l,l.return,Le)}}if(S&4&&(O=l.stateNode,O!=null)){var A=l.memoizedProps;if(p=p!==null?p.memoizedProps:A,S=l.type,u=l.updateQueue,l.updateQueue=null,u!==null)try{Ze(O,u,S,p,A,l)}catch(Le){cn(l,l.return,Le)}}}break;case 6:if(Ji(u,l),Ia(l),S&4&&ue){if(l.stateNode===null)throw Error(a(162));O=l.stateNode,A=l.memoizedProps,p=p!==null?p.memoizedProps:A;try{Fo(O,p,A)}catch(Le){cn(l,l.return,Le)}}break;case 3:if(Ji(u,l),Ia(l),S&4){if(ue&&se&&p!==null&&p.memoizedState.isDehydrated)try{Vm(u.containerInfo)}catch(Le){cn(l,l.return,Le)}if(ve){O=u.containerInfo,A=u.pendingChildren;try{li(O,A)}catch(Le){cn(l,l.return,Le)}}}break;case 4:if(Ji(u,l),Ia(l),S&4&&ve){A=l.stateNode,O=A.containerInfo,A=A.pendingChildren;try{li(O,A)}catch(Le){cn(l,l.return,Le)}}break;case 13:Ji(u,l),Ia(l),O=l.child,O.flags&8192&&(A=O.memoizedState!==null,O.stateNode.isHidden=A,!A||O.alternate!==null&&O.alternate.memoizedState!==null||(G3=sn())),S&4&&Ub(l);break;case 22:var G=p!==null&&p.memoizedState!==null;if(l.mode&1?(Cr=(p=Cr)||G,Ji(u,l),Cr=p):Ji(u,l),Ia(l),S&8192){if(p=l.memoizedState!==null,(l.stateNode.isHidden=p)&&!G&&(l.mode&1)!==0)for(De=l,S=l.child;S!==null;){for(u=De=S;De!==null;){G=De;var ie=G.child;switch(G.tag){case 0:case 11:case 14:case 15:zd(4,G,G.return);break;case 1:Lc(G,G.return);var ge=G.stateNode;if(typeof ge.componentWillUnmount=="function"){var ke=G,ze=G.return;try{var tt=ke;ge.props=tt.memoizedProps,ge.state=tt.memoizedState,ge.componentWillUnmount()}catch(Le){cn(ke,ze,Le)}}break;case 5:Lc(G,G.return);break;case 22:if(G.memoizedState!==null){Kb(u);continue}}ie!==null?(ie.return=G,De=ie):Kb(u)}S=S.sibling}if(ue){e:if(S=null,ue)for(u=l;;){if(u.tag===5){if(S===null){S=u;try{O=u.stateNode,p?si(O):Sa(u.stateNode,u.memoizedProps)}catch(Le){cn(l,l.return,Le)}}}else if(u.tag===6){if(S===null)try{A=u.stateNode,p?Ca(A):Ke(A,u.memoizedProps)}catch(Le){cn(l,l.return,Le)}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===l)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===l)break e;for(;u.sibling===null;){if(u.return===null||u.return===l)break e;S===u&&(S=null),u=u.return}S===u&&(S=null),u.sibling.return=u.return,u=u.sibling}}}break;case 19:Ji(u,l),Ia(l),S&4&&Ub(l);break;case 21:break;default:Ji(u,l),Ia(l)}}function Ia(l){var u=l.flags;if(u&2){try{if(ue){e:{for(var p=l.return;p!==null;){if(Gb(p)){var S=p;break e}p=p.return}throw Error(a(160))}switch(S.tag){case 5:var O=S.stateNode;S.flags&32&&(on(O),S.flags&=-33);var A=Vb(l);j3(l,A,O);break;case 3:case 4:var G=S.stateNode.containerInfo,ie=Vb(l);L3(l,ie,G);break;default:throw Error(a(161))}}}catch(ge){cn(l,l.return,ge)}l.flags&=-3}u&4096&&(l.flags&=-4097)}function jA(l,u,p){De=l,Xb(l)}function Xb(l,u,p){for(var S=(l.mode&1)!==0;De!==null;){var O=De,A=O.child;if(O.tag===22&&S){var G=O.memoizedState!==null||u1;if(!G){var ie=O.alternate,ge=ie!==null&&ie.memoizedState!==null||Cr;ie=u1;var ke=Cr;if(u1=G,(Cr=ge)&&!ke)for(De=O;De!==null;)G=De,ge=G.child,G.tag===22&&G.memoizedState!==null?Zb(O):ge!==null?(ge.return=G,De=ge):Zb(O);for(;A!==null;)De=A,Xb(A),A=A.sibling;De=O,u1=ie,Cr=ke}Yb(l)}else O.subtreeFlags&8772&&A!==null?(A.return=O,De=A):Yb(l)}}function Yb(l){for(;De!==null;){var u=De;if(u.flags&8772){var p=u.alternate;try{if(u.flags&8772)switch(u.tag){case 0:case 11:case 15:Cr||d1(5,u);break;case 1:var S=u.stateNode;if(u.flags&4&&!Cr)if(p===null)S.componentDidMount();else{var O=u.elementType===u.type?p.memoizedProps:$i(u.type,p.memoizedProps);S.componentDidUpdate(O,p.memoizedState,S.__reactInternalSnapshotBeforeUpdate)}var A=u.updateQueue;A!==null&&Z7(u,A,S);break;case 3:var G=u.updateQueue;if(G!==null){if(p=null,u.child!==null)switch(u.child.tag){case 5:p=q(u.child.stateNode);break;case 1:p=u.child.stateNode}Z7(u,G,p)}break;case 5:var ie=u.stateNode;p===null&&u.flags&4&&Pe(ie,u.type,u.memoizedProps,u);break;case 6:break;case 4:break;case 12:break;case 13:if(se&&u.memoizedState===null){var ge=u.alternate;if(ge!==null){var ke=ge.memoizedState;if(ke!==null){var ze=ke.dehydrated;ze!==null&&Um(ze)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(a(163))}Cr||u.flags&512&&A3(u)}catch(tt){cn(u,u.return,tt)}}if(u===l){De=null;break}if(p=u.sibling,p!==null){p.return=u.return,De=p;break}De=u.return}}function Kb(l){for(;De!==null;){var u=De;if(u===l){De=null;break}var p=u.sibling;if(p!==null){p.return=u.return,De=p;break}De=u.return}}function Zb(l){for(;De!==null;){var u=De;try{switch(u.tag){case 0:case 11:case 15:var p=u.return;try{d1(4,u)}catch(ge){cn(u,p,ge)}break;case 1:var S=u.stateNode;if(typeof S.componentDidMount=="function"){var O=u.return;try{S.componentDidMount()}catch(ge){cn(u,O,ge)}}var A=u.return;try{A3(u)}catch(ge){cn(u,A,ge)}break;case 5:var G=u.return;try{A3(u)}catch(ge){cn(u,G,ge)}}}catch(ge){cn(u,u.return,ge)}if(u===l){De=null;break}var ie=u.sibling;if(ie!==null){ie.return=u.return,De=ie;break}De=u.return}}var h1=0,f1=1,p1=2,g1=3,m1=4;if(typeof Symbol=="function"&&Symbol.for){var Bd=Symbol.for;h1=Bd("selector.component"),f1=Bd("selector.has_pseudo_class"),p1=Bd("selector.role"),g1=Bd("selector.test_id"),m1=Bd("selector.text")}function D3(l){var u=Ie(l);if(u!=null){if(typeof u.memoizedProps["data-testname"]!="string")throw Error(a(364));return u}if(l=We(l),l===null)throw Error(a(362));return l.stateNode.current}function R3(l,u){switch(u.$$typeof){case h1:if(l.type===u.value)return!0;break;case f1:e:{u=u.value,l=[l,0];for(var p=0;p<l.length;){var S=l[p++],O=l[p++],A=u[O];if(S.tag!==5||!mt(S)){for(;A!=null&&R3(S,A);)O++,A=u[O];if(O===u.length){u=!0;break e}else for(S=S.child;S!==null;)l.push(S,O),S=S.sibling}}u=!1}return u;case p1:if(l.tag===5&&Ge(l.stateNode,u.value))return!0;break;case m1:if((l.tag===5||l.tag===6)&&(l=gt(l),l!==null&&0<=l.indexOf(u.value)))return!0;break;case g1:if(l.tag===5&&(l=l.memoizedProps["data-testname"],typeof l=="string"&&l.toLowerCase()===u.value.toLowerCase()))return!0;break;default:throw Error(a(365))}return!1}function F3(l){switch(l.$$typeof){case h1:return"<"+(M(l.value)||"Unknown")+">";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;S<l.length;){var O=l[S++],A=l[S++],G=u[A];if(O.tag!==5||!mt(O)){for(;G!=null&&R3(O,G);)A++,G=u[A];if(A===u.length)p.push(O);else for(O=O.child;O!==null;)l.push(O,A),O=O.sibling}}return p}function z3(l,u){if(!He)throw Error(a(363));l=D3(l),l=qb(l,u),u=[],l=Array.from(l);for(var p=0;p<l.length;){var S=l[p++];if(S.tag===5)mt(S)||u.push(S.stateNode);else for(S=S.child;S!==null;)l.push(S),S=S.sibling}return u}var NA=Math.ceil,v1=o.ReactCurrentDispatcher,B3=o.ReactCurrentOwner,An=o.ReactCurrentBatchConfig,ht=0,ar=null,Rn=null,dr=0,hi=0,jc=Ki(0),Un=0,Hd=null,ll=0,y1=0,H3=0,Gd=null,Ur=null,G3=0,V3=1/0,to=null;function Nc(){V3=sn()+500}var b1=!1,U3=null,Yo=null,w1=!1,Ko=null,x1=0,Vd=0,W3=null,C1=-1,S1=0;function Sr(){return ht&6?sn():C1!==-1?C1:C1=sn()}function Zo(l){return l.mode&1?ht&2&&dr!==0?dr&-dr:vA.transition!==null?(S1===0&&(S1=B0()),S1):(l=bt,l!==0?l:Se()):1}function Ai(l,u,p,S){if(50<Vd)throw Vd=0,W3=null,Error(a(185));_a(l,p,S),(!(ht&2)||l!==ar)&&(l===ar&&(!(ht&2)&&(y1|=p),Un===4&&qo(l,dr)),Wr(l,S),p===1&&ht===0&&!(u.mode&1)&&(Nc(),pe&&Ct()))}function Wr(l,u){var p=l.callbackNode;Cd(l,u);var S=Cc(l,l===ar?dr:0);if(S===0)p!==null&&Ec(p),l.callbackNode=null,l.callbackPriority=0;else if(u=S&-S,l.callbackPriority!==u){if(p!=null&&Ec(p),u===1)l.tag===0?Bt(Qb.bind(null,l)):vt(Qb.bind(null,l)),Me?Ye(function(){!(ht&6)&&Ct()}):Sc(kd,Ct),p=null;else{switch(H0(S)){case 1:p=kd;break;case 4:p=V0;break;case 16:p=Od;break;case 536870912:p=U0;break;default:p=Od}p=s9(p,$b.bind(null,l))}l.callbackPriority=u,l.callbackNode=p}}function $b(l,u){if(C1=-1,S1=0,(ht&6)!==0)throw Error(a(327));var p=l.callbackNode;if(dl()&&l.callbackNode!==p)return null;var S=Cc(l,l===ar?dr:0);if(S===0)return null;if(S&30||S&l.expiredLanes||u)u=E1(l,S);else{u=S;var O=ht;ht|=2;var A=t9();(ar!==l||dr!==u)&&(to=null,Nc(),cl(l,u));do try{FA();break}catch(ie){e9(l,ie)}while(!0);a3(),v1.current=A,ht=O,Rn!==null?u=0:(ar=null,dr=0,u=Un)}if(u!==0){if(u===2&&(O=Sd(l),O!==0&&(S=O,u=X3(l,O))),u===1)throw p=Hd,cl(l,0),qo(l,S),Wr(l,sn()),p;if(u===6)qo(l,S);else{if(O=l.current.alternate,(S&30)===0&&!DA(O)&&(u=E1(l,S),u===2&&(A=Sd(l),A!==0&&(S=A,u=X3(l,A))),u===1))throw p=Hd,cl(l,0),qo(l,S),Wr(l,sn()),p;switch(l.finishedWork=O,l.finishedLanes=S,u){case 0:case 1:throw Error(a(345));case 2:ul(l,Ur,to);break;case 3:if(qo(l,S),(S&130023424)===S&&(u=G3+500-sn(),10<u)){if(Cc(l,0)!==0)break;if(O=l.suspendedLanes,(O&S)!==S){Sr(),l.pingedLanes|=l.suspendedLanes&O;break}l.timeoutHandle=W(ul.bind(null,l,Ur,to),u);break}ul(l,Ur,to);break;case 4:if(qo(l,S),(S&4194240)===S)break;for(u=l.eventTimes,O=-1;0<S;){var G=31-ui(S);A=1<<G,G=u[G],G>O&&(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,10<S){l.timeoutHandle=W(ul.bind(null,l,Ur,to),S);break}ul(l,Ur,to);break;case 5:ul(l,Ur,to);break;default:throw Error(a(329))}}}return Wr(l,sn()),l.callbackNode===p?$b.bind(null,l):null}function X3(l,u){var p=Gd;return l.current.memoizedState.isDehydrated&&(cl(l,u).flags|=256),l=E1(l,u),l!==2&&(u=Ur,Ur=p,u!==null&&Y3(u)),l}function Y3(l){Ur===null?Ur=l:Ur.push.apply(Ur,l)}function DA(l){for(var u=l;;){if(u.flags&16384){var p=u.updateQueue;if(p!==null&&(p=p.stores,p!==null))for(var S=0;S<p.length;S++){var O=p[S],A=O.getSnapshot;O=O.value;try{if(!U(A(),O))return!1}catch{return!1}}}if(p=u.child,u.subtreeFlags&16384&&p!==null)p.return=u,u=p;else{if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function qo(l,u){for(u&=~H3,u&=~y1,l.suspendedLanes|=u,l.pingedLanes&=~u,l=l.expirationTimes;0<u;){var p=31-ui(u),S=1<<p;l[p]=-1,u&=~S}}function Qb(l){if(ht&6)throw Error(a(327));dl();var u=Cc(l,0);if(!(u&1))return Wr(l,sn()),null;var p=E1(l,u);if(l.tag!==0&&p===2){var S=Sd(l);S!==0&&(u=S,p=X3(l,S))}if(p===1)throw p=Hd,cl(l,0),qo(l,u),Wr(l,sn()),p;if(p===6)throw Error(a(345));return l.finishedWork=l.current.alternate,l.finishedLanes=u,ul(l,Ur,to),Wr(l,sn()),null}function Jb(l){Ko!==null&&Ko.tag===0&&!(ht&6)&&dl();var u=ht;ht|=1;var p=An.transition,S=bt;try{if(An.transition=null,bt=1,l)return l()}finally{bt=S,An.transition=p,ht=u,!(ht&6)&&Ct()}}function K3(){hi=jc.current,Ut(jc)}function cl(l,u){l.finishedWork=null,l.finishedLanes=0;var p=l.timeoutHandle;if(p!==B&&(l.timeoutHandle=B,D(p)),Rn!==null)for(p=Rn.return;p!==null;){var S=p;switch(e3(S),S.tag){case 1:S=S.type.childContextTypes,S!=null&&wc();break;case 3:Ic(),Ut(mr),Ut(tr),f3();break;case 5:d3(S);break;case 4:Ic();break;case 13:Ut(pn);break;case 19:Ut(pn);break;case 10:o3(S.type._context);break;case 22:case 23:K3()}p=p.return}if(ar=l,Rn=l=$o(l.current,null),dr=hi=u,Un=0,Hd=null,H3=y1=ll=0,Ur=Gd=null,ol!==null){for(u=0;u<ol.length;u++)if(p=ol[u],S=p.interleaved,S!==null){p.interleaved=null;var O=S.next,A=p.pending;if(A!==null){var G=A.next;A.next=O,S.next=G}p.pending=S}ol=null}return l}function e9(l,u){do{var p=Rn;try{if(a3(),e1.current=i1,t1){for(var S=gn.memoizedState;S!==null;){var O=S.queue;O!==null&&(O.pending=null),S=S.next}t1=!1}if(sl=0,ir=Vn=gn=null,Ad=!1,Ld=0,B3.current=null,p===null||p.return===null){Un=1,Hd=u,Rn=null;break}e:{var A=l,G=p.return,ie=p,ge=u;if(u=dr,ie.flags|=32768,ge!==null&&typeof ge=="object"&&typeof ge.then=="function"){var ke=ge,ze=ie,tt=ze.tag;if(!(ze.mode&1)&&(tt===0||tt===11||tt===15)){var Le=ze.alternate;Le?(ze.updateQueue=Le.updateQueue,ze.memoizedState=Le.memoizedState,ze.lanes=Le.lanes):(ze.updateQueue=null,ze.memoizedState=null)}var tn=Eb(G);if(tn!==null){tn.flags&=-257,_b(tn,G,ie,A,u),tn.mode&1&&Sb(A,ke,u),u=tn,ge=ke;var Wt=u.updateQueue;if(Wt===null){var Xr=new Set;Xr.add(ge),u.updateQueue=Xr}else Wt.add(ge);break e}else{if(!(u&1)){Sb(A,ke,u),Z3();break e}ge=Error(a(426))}}else if(ln&&ie.mode&1){var no=Eb(G);if(no!==null){!(no.flags&65536)&&(no.flags|=256),_b(no,G,ie,A,u),r3(Ac(ge,ie));break e}}A=ge=Ac(ge,ie),Un!==4&&(Un=2),Gd===null?Gd=[A]:Gd.push(A),A=G;do{switch(A.tag){case 3:A.flags|=65536,u&=-u,A.lanes|=u;var fe=xb(A,ge,u);K7(A,fe);break e;case 1:ie=ge;var ae=A.type,ye=A.stateNode;if(!(A.flags&128)&&(typeof ae.getDerivedStateFromError=="function"||ye!==null&&typeof ye.componentDidCatch=="function"&&(Yo===null||!Yo.has(ye)))){A.flags|=65536,u&=-u,A.lanes|=u;var je=Cb(A,ie,u);K7(A,je);break e}}A=A.return}while(A!==null)}r9(p)}catch(Xe){u=Xe,Rn===p&&p!==null&&(Rn=p=p.return);continue}break}while(!0)}function t9(){var l=v1.current;return v1.current=i1,l===null?i1:l}function Z3(){(Un===0||Un===3||Un===2)&&(Un=4),ar===null||!(ll&268435455)&&!(y1&268435455)||qo(ar,dr)}function E1(l,u){var p=ht;ht|=2;var S=t9();(ar!==l||dr!==u)&&(to=null,cl(l,u));do try{RA();break}catch(O){e9(l,O)}while(!0);if(a3(),ht=p,v1.current=S,Rn!==null)throw Error(a(261));return ar=null,dr=0,Un}function RA(){for(;Rn!==null;)n9(Rn)}function FA(){for(;Rn!==null&&!G0();)n9(Rn)}function n9(l){var u=o9(l.alternate,l,hi);l.memoizedProps=l.pendingProps,u===null?r9(l):Rn=u,B3.current=null}function r9(l){var u=l;do{var p=u.alternate;if(l=u.return,(u.flags&32768)===0){if(p=MA(p,u,hi),p!==null){Rn=p;return}}else{if(p=IA(p,u),p!==null){p.flags&=32767,Rn=p;return}if(l!==null)l.flags|=32768,l.subtreeFlags=0,l.deletions=null;else{Un=6,Rn=null;return}}if(u=u.sibling,u!==null){Rn=u;return}Rn=u=l}while(u!==null);Un===0&&(Un=5)}function ul(l,u,p){var S=bt,O=An.transition;try{An.transition=null,bt=1,zA(l,u,p,S)}finally{An.transition=O,bt=S}return null}function zA(l,u,p,S){do dl();while(Ko!==null);if(ht&6)throw Error(a(327));p=l.finishedWork;var O=l.finishedLanes;if(p===null)return null;if(l.finishedWork=null,l.finishedLanes=0,p===l.current)throw Error(a(177));l.callbackNode=null,l.callbackPriority=0;var A=p.lanes|p.childLanes;if(_d(l,A),l===ar&&(Rn=ar=null,dr=0),!(p.subtreeFlags&2064)&&!(p.flags&2064)||w1||(w1=!0,s9(Od,function(){return dl(),null})),A=(p.flags&15990)!==0,(p.subtreeFlags&15990)!==0||A){A=An.transition,An.transition=null;var G=bt;bt=1;var ie=ht;ht|=4,B3.current=null,LA(l,p),Wb(p,l),ce(l.containerInfo),l.current=p,jA(p),$a(),ht=ie,bt=G,An.transition=A}else l.current=p;if(w1&&(w1=!1,Ko=l,x1=O),A=l.pendingLanes,A===0&&(Yo=null),W0(p.stateNode),Wr(l,sn()),u!==null)for(S=l.onRecoverableError,p=0;p<u.length;p++)O=u[p],S(O.value,{componentStack:O.stack,digest:O.digest});if(b1)throw b1=!1,l=U3,U3=null,l;return x1&1&&l.tag!==0&&dl(),A=l.pendingLanes,A&1?l===W3?Vd++:(Vd=0,W3=l):Vd=0,Ct(),null}function dl(){if(Ko!==null){var l=H0(x1),u=An.transition,p=bt;try{if(An.transition=null,bt=16>l?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;ge<ie.length;ge++){var ke=ie[ge];for(De=ke;De!==null;){var ze=De;switch(ze.tag){case 0:case 11:case 15:zd(8,ze,A)}var tt=ze.child;if(tt!==null)tt.return=ze,De=tt;else for(;De!==null;){ze=De;var Le=ze.sibling,tn=ze.return;if(Hb(ze),ze===ke){De=null;break}if(Le!==null){Le.return=tn,De=Le;break}De=tn}}}var Wt=A.alternate;if(Wt!==null){var Xr=Wt.child;if(Xr!==null){Wt.child=null;do{var no=Xr.sibling;Xr.sibling=null,Xr=no}while(Xr!==null)}}De=A}}if(A.subtreeFlags&2064&&G!==null)G.return=A,De=G;else e:for(;De!==null;){if(A=De,(A.flags&2048)!==0)switch(A.tag){case 0:case 11:case 15:zd(9,A,A.return)}var fe=A.sibling;if(fe!==null){fe.return=A.return,De=fe;break e}De=A.return}}var ae=l.current;for(De=ae;De!==null;){G=De;var ye=G.child;if(G.subtreeFlags&2064&&ye!==null)ye.return=G,De=ye;else e:for(G=ae;De!==null;){if(ie=De,(ie.flags&2048)!==0)try{switch(ie.tag){case 0:case 11:case 15:d1(9,ie)}}catch(Xe){cn(ie,ie.return,Xe)}if(ie===G){De=null;break e}var je=ie.sibling;if(je!==null){je.return=ie.return,De=je;break e}De=ie.return}}if(ht=O,Ct(),ki&&typeof ki.onPostCommitFiberRoot=="function")try{ki.onPostCommitFiberRoot(_c,l)}catch{}S=!0}return S}finally{bt=p,An.transition=u}}return!1}function i9(l,u,p){u=Ac(p,u),u=xb(l,u,1),l=Xo(l,u,1),u=Sr(),l!==null&&(_a(l,1,u),Wr(l,u))}function cn(l,u,p){if(l.tag===3)i9(l,l,p);else for(;u!==null;){if(u.tag===3){i9(u,l,p);break}else if(u.tag===1){var S=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof S.componentDidCatch=="function"&&(Yo===null||!Yo.has(S))){l=Ac(p,l),l=Cb(u,l,1),u=Xo(u,l,1),l=Sr(),u!==null&&(_a(u,1,l),Wr(u,l));break}}u=u.return}}function BA(l,u,p){var S=l.pingCache;S!==null&&S.delete(u),u=Sr(),l.pingedLanes|=l.suspendedLanes&p,ar===l&&(dr&p)===p&&(Un===4||Un===3&&(dr&130023424)===dr&&500>sn()-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<u?p:u}}function O1(l,u){d9(l,u),(l=l.alternate)&&d9(l,u)}function XA(l){return l=R(l),l===null?null:l.stateNode}function YA(){return null}return t.attemptContinuousHydration=function(l){if(l.tag===13){var u=ka(l,134217728);if(u!==null){var p=Sr();Ai(u,l,134217728,p)}O1(l,134217728)}},t.attemptDiscreteHydration=function(l){if(l.tag===13){var u=ka(l,1);if(u!==null){var p=Sr();Ai(u,l,1,p)}O1(l,1)}},t.attemptHydrationAtCurrentPriority=function(l){if(l.tag===13){var u=Zo(l),p=ka(l,u);if(p!==null){var S=Sr();Ai(p,l,u,S)}O1(l,u)}},t.attemptSynchronousHydration=function(l){switch(l.tag){case 3:var u=l.stateNode;if(u.current.memoizedState.isDehydrated){var p=rl(u.pendingLanes);p!==0&&(il(u,p|1),Wr(u,sn()),!(ht&6)&&(Nc(),Ct()))}break;case 13:Jb(function(){var S=ka(l,1);if(S!==null){var O=Sr();Ai(S,l,1,O)}}),O1(l,1)}},t.batchedUpdates=function(l,u){var p=ht;ht|=1;try{return l(u)}finally{ht=p,ht===0&&(Nc(),pe&&Ct())}},t.createComponentSelector=function(l){return{$$typeof:h1,value:l}},t.createContainer=function(l,u,p,S,O,A,G){return l9(l,u,!1,null,p,S,O,A,G)},t.createHasPseudoClassSelector=function(l){return{$$typeof:f1,value:l}},t.createHydrationContainer=function(l,u,p,S,O,A,G,ie,ge){return l=l9(p,S,!0,l,O,A,G,ie,ge),l.context=c9(null),p=l.current,S=Sr(),O=Zo(p),A=Ja(S,O),A.callback=u??null,Xo(p,A,O),l.current.lanes=O,_a(l,O,S),Wr(l,S),l},t.createPortal=function(l,u,p){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:S==null?null:""+S,children:l,containerInfo:u,implementation:p}},t.createRoleSelector=function(l){return{$$typeof:p1,value:l}},t.createTestNameSelector=function(l){return{$$typeof:g1,value:l}},t.createTextSelector=function(l){return{$$typeof:m1,value:l}},t.deferredUpdates=function(l){var u=bt,p=An.transition;try{return An.transition=null,bt=16,l()}finally{bt=u,An.transition=p}},t.discreteUpdates=function(l,u,p,S,O){var A=bt,G=An.transition;try{return An.transition=null,bt=1,l(u,p,S,O)}finally{bt=A,An.transition=G,ht===0&&Nc()}},t.findAllNodes=z3,t.findBoundingRects=function(l,u){if(!He)throw Error(a(363));u=z3(l,u),l=[];for(var p=0;p<u.length;p++)l.push(_t(u[p]));for(u=l.length-1;0<u;u--){p=l[u];for(var S=p.x,O=S+p.width,A=p.y,G=A+p.height,ie=u-1;0<=ie;ie--)if(u!==ie){var ge=l[ie],ke=ge.x,ze=ke+ge.width,tt=ge.y,Le=tt+ge.height;if(S>=ke&&A>=tt&&O<=ze&&G<=Le){l.splice(u,1);break}else if(S!==ke||p.width!==ge.width||Le<A||tt>G){if(!(A!==tt||p.height!==ge.height||ze<S||ke>O)){ke>S&&(ge.width+=ke-S,ge.x=S),ze<O&&(ge.width=O-ke),l.splice(u,1);break}}else{tt>A&&(ge.height+=tt-A,ge.y=A),Le<G&&(ge.height=G-tt),l.splice(u,1);break}}}return l},t.findHostInstance=u9,t.findHostInstanceWithNoPortals=function(l){return l=T(l),l=l!==null?H(l):null,l===null?null:l.stateNode},t.findHostInstanceWithWarning=function(l){return u9(l)},t.flushControlled=function(l){var u=ht;ht|=1;var p=An.transition,S=bt;try{An.transition=null,bt=1,l()}finally{bt=S,An.transition=p,ht=u,ht===0&&(Nc(),Ct())}},t.flushPassiveEffects=dl,t.flushSync=Jb,t.focusWithin=function(l,u){if(!He)throw Error(a(363));for(l=D3(l),u=qb(l,u),u=Array.from(u),l=0;l<u.length;){var p=u[l++];if(!mt(p)){if(p.tag===5&&Ve(p.stateNode))return!0;for(p=p.child;p!==null;)u.push(p),p=p.sibling}}return!1},t.getCurrentUpdatePriority=function(){return bt},t.getFindAllNodesFailureDescription=function(l,u){if(!He)throw Error(a(363));var p=0,S=[];l=[D3(l),0];for(var O=0;O<l.length;){var A=l[O++],G=l[O++],ie=u[G];if((A.tag!==5||!mt(A))&&(R3(A,ie)&&(S.push(F3(ie)),G++,G>p&&(p=G)),G<u.length))for(A=A.child;A!==null;)l.push(A,G),A=A.sibling}if(p<u.length){for(l=[];p<u.length;p++)l.push(F3(u[p]));return`findAllNodes was able to match part of the selector:
|
|
`+(S.join(" > ")+`
|
|
|
|
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 <FiberProvider />!");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<arguments.length&&arguments[2]!==void 0&&arguments[2];t.ratio!==hc||n?e.rect(t.x,t.y,t.width,t.height):e.ellipse(t.x+t.width/2,t.y+t.height/2,t.width/2,t.height/2,0,0,2*Math.PI)};function tC(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 nC(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?tC(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):tC(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var AT="ADD_FILTER",nG=function(e,t){return nC(nC({},e),{},{isDesignState:!t.dismissHistory,filter:t.filter||null})};function rC(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 iC(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?rC(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):rC(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var bm="HIDE_LOADER",rG=function(e){return iC(iC({},e),{},{isLoadingGlobally:!1})};function LT(e){return KP(e)||FP(e)||n8(e)||ZP()}var Xc;const jT=(Xc={theme:{palette:{"bg-primary-active":"#ECF3FF"},typography:{fontFamily:"Roboto, Arial"}},annotationsCommon:{fill:"#000000",stroke:"#000000",strokeWidth:0,shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:"#000000",shadowOpacity:1,opacity:1}},I(I(I(I(I(I(I(I(I(I(Xc,de.TEXT,{text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit.",fontFamily:"Arial",fonts:[{label:"Arial",value:"Arial"},"Tahoma","Sans-serif",{label:"Comic Sans",value:"Comic-sans"}],fontSize:14,letterSpacing:0,lineHeight:1,align:"left",fontStyle:"normal",onFontChange:void 0}),de.IMAGE,{fill:void 0,disableUpload:!1,gallery:[]}),de.RECT,{cornerRadius:0}),de.ELLIPSE,{}),de.POLYGON,{sides:3}),de.PEN,{strokeWidth:1,tension:.5,lineCap:"round",selectAnnotationAfterDrawing:!0}),de.LINE,{lineCap:"butt",strokeWidth:1}),de.ARROW,{strokeWidth:6,lineCap:"butt",pointerLength:void 0,pointerWidth:void 0}),de.WATERMARK,{gallery:[],textScalingRatio:.5,imageScalingRatio:.5,hideTextWatermark:!1,onUploadWatermarkImgClick:void 0}),de.CROP,{minWidth:Jx.WIDTH,minHeight:Jx.HEIGHT,width:null,height:null,maxWidth:null,maxHeight:null,ratio:null,ratioTitleKey:void 0,noPresets:!1,autoResize:!1,presetsItems:[],presetsFolders:[],lockCropAreaAt:null}),I(I(I(I(I(I(I(I(I(I(Xc,de.ROTATE,{angle:60,componentType:"slider"}),"tabsIds",[]),"defaultTabId",qt.ADJUST),"defaultToolId",de.CROP),"onClose",void 0),"onSave",void 0),"onBeforeSave",void 0),"closeAfterSave",!1),"defaultSavedImageName",void 0),"defaultSavedImageType",null),I(I(I(I(I(I(I(I(I(I(Xc,"defaultSavedImageQuality",.92),"forceToPngInEllipticalCrop",!1),"useBackendTranslations",!0),"translations",null),"language","en"),"avoidChangesNotSavedAlertOnLeave",!1),"loadableDesignState",null),"moreSaveOptions",[]),"savingPixelRatio",4),"previewPixelRatio",window&&window.devicePixelRatio||1),I(I(I(I(I(I(I(I(I(I(Xc,"showBackButton",!1),"useCloudimage",!1),"cloudimage",{token:"",dontPrefixUrl:!1,domain:"cloudimg.io",version:"",loadableQuery:"",secureProtocol:!0,imageSealing:{enable:!1,salt:"",charCount:10,includeParams:[]}}),"observePluginContainerSize",!1),"showCanvasOnly",!1),"getCurrentImgDataFnRef",void 0),"onModify",void 0),"useZoomPresetsMenu",!0),"disableZooming",!1),"noCrossOrigin",!1),I(I(I(Xc,"disableSaveIfNoChanges",!1),"removeSaveButton",!1),"resetOnImageSourceChange",!1));var h8={exports:{}},lg={},NT={},ft={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._registerNode=e.Konva=e.glob=void 0;const t=Math.PI/180;function n(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}e.glob=typeof ks<"u"?ks:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},e.Konva={_global:e.glob,version:"9.3.6",isBrowser:n(),isUnminified:/param/.test(function(i){}.toString()),dblClickWindow:400,getAngle(i){return e.Konva.angleDeg?i*t:i},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return e.Konva.DD.isDragging},isTransforming(){var i;return(i=e.Konva.Transformer)===null||i===void 0?void 0:i.isTransforming()},isDragReady(){return!!e.Konva.DD.node},releaseCanvasOnDestroy:!0,document:e.glob.document,_injectGlobal(i){e.glob.Konva=i}};const r=i=>{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.width<f.x||x.y>f.y+f.height||x.y+x.height<f.y)},cloneObject(f){var x={};for(var E in f)this._isPlainObject(f[E])?x[E]=this.cloneObject(f[E]):this._isArray(f[E])?x[E]=this.cloneArray(f[E]):x[E]=f[E];return x},cloneArray(f){return f.slice(0)},degToRad(f){return f*s},radToDeg(f){return f*c},_degToRad(f){return e.Util.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),e.Util.degToRad(f)},_radToDeg(f){return e.Util.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),e.Util.radToDeg(f)},_getRotation(f){return t.Konva.angleDeg?e.Util.radToDeg(f):f},_capitalize(f){return f.charAt(0).toUpperCase()+f.slice(1)},throw(f){throw new Error(g+f)},error(f){console.error(g+f)},warn(f){t.Konva.showWarnings&&console.warn(m+f)},each(f,x){for(var E in f)x(E,f[E])},_inRange(f,x,E){return x<=f&&f<E},_getProjectionToSegment(f,x,E,M,j,P){var N,T,R,z=(f-E)*(f-E)+(x-M)*(x-M);if(z==0)N=f,T=x,R=(j-E)*(j-E)+(P-M)*(P-M);else{var H=((j-f)*(E-f)+(P-x)*(M-x))/z;H<0?(N=f,T=x,R=(f-j)*(f-j)+(x-P)*(x-P)):H>1?(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];J<j&&(M.x=z,M.y=H,j=J)}}),M},_prepareArrayForTween(f,x,E){var M,j=[],P=[];if(f.length>x.length){var N=x;x=f,f=N}for(M=0;M<f.length;M+=2)j.push({x:f[M],y:f[M+1]});for(M=0;M<x.length;M+=2)P.push({x:x[M],y:x[M+1]});var T=[];return P.forEach(function(R){var z=e.Util._getProjectionToLine(R,j,E);T.push(z.x),T.push(z.y)}),T},_prepareToStringify(f){var x;f.visitedByCircularReferenceRemoval=!0;for(var E in f)if(f.hasOwnProperty(E)&&f[E]&&typeof f[E]=="object"){if(x=Object.getOwnPropertyDescriptor(f,E),f[E].visitedByCircularReferenceRemoval||e.Util._isElement(f[E]))if(x.configurable)delete f[E];else return null;else if(e.Util._prepareToStringify(f[E])===null)if(x.configurable)delete f[E];else return null}return delete f.visitedByCircularReferenceRemoval,f},_assign(f,x){for(var E in x)f[E]=x[E];return f},_getFirstPointerId(f){return f.touches?f.changedTouches[0].identifier:f.pointerId||999},releaseCanvas(...f){t.Konva.releaseCanvasOnDestroy&&f.forEach(x=>{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<number>('+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<h;v++)w=s[v],C[w]=this.getAttr(o+b(w));return C};var k=(0,n.getComponentValidator)(s);a.prototype[g]=function(C){var _=this.attrs[o],f;c&&(C=c.call(this,C)),k&&k.call(this,C,o);for(f in C)C.hasOwnProperty(f)&&this._setAttr(o+b(f),C[f]);return C||s.forEach(x=>{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;i<n;i++)a=e[i],r._isNumber(a)?a=Math.round(a*1e3)/1e3:r._isString(a)||(a=a+""),t.push(a);return t}var aC=",",vG="(",yG=")",bG="([",wG="])",xG=";",CG="()",SG="=",oC=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","roundRect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],EG=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"];const _G=100;class cg{constructor(t){this.canvas=t,gG.Konva.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(t){t.fillEnabled()&&this._fill(t)}_fill(t){}strokeShape(t){t.hasStroke()&&this._stroke(t)}_stroke(t){}fillStrokeShape(t){t.attrs.fillAfterStrokeEnabled?(this.strokeShape(t),this.fillShape(t)):(this.fillShape(t),this.strokeShape(t))}getTrace(t,n){var r=this.traceArr,i=r.length,a="",o,s,c,d;for(o=0;o<i;o++)s=r[o],c=s.method,c?(d=s.args,a+=c,t?a+=CG:DT.Util._isArray(d[0])?a+=bG+d.join(aC)+wG:(n&&(d=d.map(h=>typeof 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<n;i++)o(oC[i]);t.setAttr=function(){r.apply(t,arguments);var s=arguments[0],c=arguments[1];(s==="shadowOffsetX"||s==="shadowOffsetY"||s==="shadowBlur")&&(c=c/this.canvas.getPixelRatio()),t._trace({property:s,val:c})}}_applyGlobalCompositeOperation(t){const n=t.attrs.globalCompositeOperation;var r=!n||n==="source-over";r||this.setAttr("globalCompositeOperation",n)}}So.Context=cg,EG.forEach(function(e){Object.defineProperty(cg.prototype,e,{get(){return this._context[e]},set(t){this._context[e]=t}})});class kG extends cg{constructor(t,{willReadFrequently:n=!1}={}){super(t),this._context=t._canvas.getContext("2d",{willReadFrequently:n})}_fillColor(t){var n=t.fill();this.setAttr("fillStyle",n),t._fillFunc(this)}_fillPattern(t){this.setAttr("fillStyle",t._getFillPattern()),t._fillFunc(this)}_fillLinearGradient(t){var n=t._getLinearGradient();n&&(this.setAttr("fillStyle",n),t._fillFunc(this))}_fillRadialGradient(t){const n=t._getRadialGradient();n&&(this.setAttr("fillStyle",n),t._fillFunc(this))}_fill(t){const n=t.fill(),r=t.getFillPriority();if(n&&r==="color"){this._fillColor(t);return}const i=t.getFillPatternImage();if(i&&r==="pattern"){this._fillPattern(t);return}const a=t.getFillLinearGradientColorStops();if(a&&r==="linear-gradient"){this._fillLinearGradient(t);return}const o=t.getFillRadialGradientColorStops();if(o&&r==="radial-gradient"){this._fillRadialGradient(t);return}n?this._fillColor(t):i?this._fillPattern(t):a?this._fillLinearGradient(t):o&&this._fillRadialGradient(t)}_strokeLinearGradient(t){const n=t.getStrokeLinearGradientStartPoint(),r=t.getStrokeLinearGradientEndPoint(),i=t.getStrokeLinearGradientColorStops(),a=this.createLinearGradient(n.x,n.y,r.x,r.y);if(i){for(var o=0;o<i.length;o+=2)a.addColorStop(i[o],i[o+1]);this.setAttr("strokeStyle",a)}}_stroke(t){var n=t.dash(),r=t.getStrokeScaleEnabled();if(t.hasStroke()){if(!r){this.save();var i=this.getCanvas().getPixelRatio();this.setTransform(i,0,0,i,0,0)}this._applyLineCap(t),n&&t.dashEnabled()&&(this.setLineDash(n),this.setAttr("lineDashOffset",t.dashOffset())),this.setAttr("lineWidth",t.strokeWidth()),t.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)");var a=t.getStrokeLinearGradientColorStops();a?this._strokeLinearGradient(t):this.setAttr("strokeStyle",t.stroke()),t._strokeFunc(this),r||this.restore()}}_applyShadow(t){var n,r,i,a=(n=t.getShadowRGBA())!==null&&n!==void 0?n:"black",o=(r=t.getShadowBlur())!==null&&r!==void 0?r:5,s=(i=t.getShadowOffset())!==null&&i!==void 0?i:{x:0,y:0},c=t.getAbsoluteScale(),d=this.canvas.getPixelRatio(),h=c.x*d,b=c.y*d;this.setAttr("shadowColor",a),this.setAttr("shadowBlur",o*Math.min(Math.abs(h),Math.abs(b))),this.setAttr("shadowOffsetX",s.x*h),this.setAttr("shadowOffsetY",s.y*b)}}So.SceneContext=kG;class OG extends cg{constructor(t){super(t),this._context=t._canvas.getContext("2d",{willReadFrequently:!0})}_fill(t){this.save(),this.setAttr("fillStyle",t.colorKey),t._fillFuncHit(this),this.restore()}strokeShape(t){t.hasHitStroke()&&this._stroke(t)}_stroke(t){if(t.hasHitStroke()){const a=t.getStrokeScaleEnabled();if(!a){this.save();var n=this.getCanvas().getPixelRatio();this.setTransform(n,0,0,n,0,0)}this._applyLineCap(t);var r=t.hitStrokeWidth(),i=r==="auto"?t.strokeWidth():r;this.setAttr("lineWidth",i),this.setAttr("strokeStyle",t.colorKey),t._strokeFuncHit(this),a||this.restore()}}}So.HitContext=OG,Object.defineProperty(ha,"__esModule",{value:!0}),ha.HitCanvas=ha.SceneCanvas=ha.Canvas=void 0;const ug=Sn,RT=So,FT=ft,PG=at,TG=Be;var gf;function MG(){if(gf)return gf;var e=ug.Util.createCanvasElement(),t=e.getContext("2d");return gf=function(){var n=FT.Konva._global.devicePixelRatio||1,r=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return n/r}(),ug.Util.releaseCanvas(e),gf}class dg{constructor(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var n=t||{},r=n.pixelRatio||FT.Konva.pixelRatio||MG();this.pixelRatio=r,this._canvas=ug.Util.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(t){var n=this.pixelRatio;this.pixelRatio=t,this.setSize(this.getWidth()/n,this.getHeight()/n)}setWidth(t){this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px";var n=this.pixelRatio,r=this.getContext()._context;r.scale(n,n)}setHeight(t){this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px";var n=this.pixelRatio,r=this.getContext()._context;r.scale(n,n)}getWidth(){return this.width}getHeight(){return this.height}setSize(t,n){this.setWidth(t||0),this.setHeight(n||0)}toDataURL(t,n){try{return this._canvas.toDataURL(t,n)}catch{try{return this._canvas.toDataURL()}catch(r){return ug.Util.error("Unable to get data URL. "+r.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}ha.Canvas=dg,PG.Factory.addGetterSetter(dg,"pixelRatio",void 0,(0,TG.getNumberValidator)());class IG extends dg{constructor(t={width:0,height:0,willReadFrequently:!1}){super(t),this.context=new RT.SceneContext(this,{willReadFrequently:t.willReadFrequently}),this.setSize(t.width,t.height)}}ha.SceneCanvas=IG;class AG extends dg{constructor(t={width:0,height:0}){super(t),this.hitCanvas=!0,this.context=new RT.HitContext(this),this.setSize(t.width,t.height)}}ha.HitCanvas=AG;var wm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DD=void 0;const t=ft,n=Sn;e.DD={get isDragging(){var r=!1;return e.DD._dragElements.forEach(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<h||(s.startDrag({evt:r}),!s.isDragging()))return}s._setDragPosition(r,a),i.push(s)}}),i.forEach(a=>{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<o;c++){if(d=t[c],typeof d!="function"){xt.Util.error("Filter should be type of function, but got "+typeof d+" instead. Please check correct filters");continue}d.call(this,s),a.putImageData(s,0,0)}}catch(b){xt.Util.error("Unable to apply filter. "+b.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return i}return r}on(t,n){if(this._cache&&this._cache.delete(mf),arguments.length===3)return this._delegate.apply(this,arguments);var r=t.split(zp),i=r.length,a,o,s,c,d;for(a=0;a<i;a++)o=r[a],s=o.split("."),c=s[0],d=s[1]||"",this.eventListeners[c]||(this.eventListeners[c]=[]),this.eventListeners[c].push({name:d,handler:n});return this}off(t,n){var r=(t||"").split(zp),i=r.length,a,o,s,c,d,h;if(this._cache&&this._cache.delete(mf),!t)for(o in this.eventListeners)this._off(o);for(a=0;a<i;a++)if(s=r[a],c=s.split("."),d=c[0],h=c[1],d)this.eventListeners[d]&&this._off(d,h,n);else for(o in this.eventListeners)this._off(o,h,n);return this}dispatchEvent(t){var n={target:this,type:t.type,evt:t};return this.fire(t.type,n),this}addEventListener(t,n){return this.on(t,function(r){n.call(this,r.evt)}),this}removeEventListener(t){return this.off(t),this}_delegate(t,n,r){var i=this;this.on(t,function(a){for(var o=a.target.findAncestors(n,!0,i),s=0;s<o.length;s++)a=xt.Util.cloneObject(a),a.currentTarget=o[s],r.call(o[s],a)})}remove(){return this.isDragging()&&this.stopDrag(),Di.DD._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(go),this._clearSelfAndDescendantCache(Fp),this._clearSelfAndDescendantCache(sC),this._clearSelfAndDescendantCache(hC),this._clearSelfAndDescendantCache(My),this._clearSelfAndDescendantCache(Ty)}_remove(){this._clearCaches();var t=this.getParent();t&&t.children&&(t.children.splice(this.index,1),t._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(t){var n="get"+xt.Util._capitalize(t);return xt.Util._isFunction(this[n])?this[n]():this.attrs[t]}getAncestors(){for(var t=this.getParent(),n=[];t;)n.push(t),t=t.getParent();return n}getAttrs(){return this.attrs||{}}setAttrs(t){return this._batchTransformChanges(()=>{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;o<a;o++)s=h[o],r++,s.nodeType!==dC&&(i=i.concat(s.getChildren().slice())),s._id===n._id&&(o=a);i.length>0&&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;o<a;o++)t(r[o])}}rotate(t){return this.rotation(this.rotation()+t),this}moveToTop(){if(!this.parent)return xt.Util.warn("Node has no parent. moveToTop function is ignored."),!1;var t=this.index,n=this.parent.getChildren().length;return t<n-1?(this.parent.children.splice(t,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0):!1}moveUp(){if(!this.parent)return xt.Util.warn("Node has no parent. moveUp function is ignored."),!1;var t=this.index,n=this.parent.getChildren().length;return t<n-1?(this.parent.children.splice(t,1),this.parent.children.splice(t+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return xt.Util.warn("Node has no parent. moveDown function is ignored."),!1;var t=this.index;return t>0?(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<r;i++)if(a=n[i],xt.Util.isValidSelector(a)||(xt.Util.warn('Selector "'+a+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),xt.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),xt.Util.warn("Konva is awesome, right?")),a.charAt(0)==="#"){if(this.id()===a.slice(1))return!0}else if(a.charAt(0)==="."){if(this.hasName(a.slice(1)))return!0}else if(this.className===a||this.nodeType===a)return!0;return!1}getLayer(){var t=this.getParent();return t?t.getLayer():null}getStage(){return this._getCache(hC,this._getStage)}_getStage(){var t=this.getParent();return t?t.getStage():null}fire(t,n={},r){return n.target=n.target||this,r?this._fireAndBubble(t,n):this._fire(t,n),this}getAbsoluteTransform(t){return t?this._getAbsoluteTransform(t):this._getCache(go,this._getAbsoluteTransform)}_getAbsoluteTransform(t){var n;if(t)return n=new xt.Transform,this._eachAncestorReverse(function(i){var a=i.transformsEnabled();a==="all"?n.multiply(i.getTransform()):a==="position"&&n.translate(i.x()-i.offsetX(),i.y()-i.offsetY())},t),n;n=this._cache.get(go)||new xt.Transform,this.parent?this.parent.getAbsoluteTransform().copyInto(n):n.reset();var r=this.transformsEnabled();if(r==="all")n.multiply(this.getTransform());else if(r==="position"){const i=this.attrs.x||0,a=this.attrs.y||0,o=this.attrs.offsetX||0,s=this.attrs.offsetY||0;n.translate(i-o,a-s)}return n.dirty=!1,n}getAbsoluteScale(t){for(var n=this;n;)n._isUnderCache&&(t=n),n=n.getParent();const r=this.getAbsoluteTransform(t).decompose();return{x:r.scaleX,y:r.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(ys,this._getTransform)}_getTransform(){var t,n,r=this._cache.get(ys)||new xt.Transform;r.reset();var i=this.x(),a=this.y(),o=ss.Konva.getAngle(this.rotation()),s=(t=this.attrs.scaleX)!==null&&t!==void 0?t:1,c=(n=this.attrs.scaleY)!==null&&n!==void 0?n:1,d=this.attrs.skewX||0,h=this.attrs.skewY||0,b=this.attrs.offsetX||0,m=this.attrs.offsetY||0;return(i!==0||a!==0)&&r.translate(i,a),o!==0&&r.rotate(o),(d!==0||h!==0)&&r.skew(d,h),(s!==1||c!==1)&&r.scale(s,c),(b!==0||m!==0)&&r.translate(-1*b,-1*m),r.dirty=!1,r}clone(t){var n=xt.Util.cloneObject(this.attrs),r,i,a,o,s;for(r in t)n[r]=t[r];var c=new this.constructor(n);for(r in this.eventListeners)for(i=this.eventListeners[r],a=i.length,o=0;o<a;o++)s=i[o],s.name.indexOf(NG)<0&&(c.eventListeners[r]||(c.eventListeners[r]=[]),c.eventListeners[r].push(s));return c}_toKonvaCanvas(t){t=t||{};var n=this.getClientRect(),r=this.getStage(),i=t.x!==void 0?t.x:Math.floor(n.x),a=t.y!==void 0?t.y:Math.floor(n.y),o=t.pixelRatio||1,s=new ah.SceneCanvas({width:t.width||Math.ceil(n.width)||(r?r.width():0),height:t.height||Math.ceil(n.height)||(r?r.height():0),pixelRatio:o}),c=s.getContext();const d=new ah.SceneCanvas({width:s.width/s.pixelRatio+Math.abs(i),height:s.height/s.pixelRatio+Math.abs(a),pixelRatio:s.pixelRatio});return t.imageSmoothingEnabled===!1&&(c._context.imageSmoothingEnabled=!1),c.save(),(i||a)&&c.translate(-1*i,-1*a),this.drawScene(s,void 0,d),c.restore(),s}toCanvas(t){return this._toKonvaCanvas(t)._canvas}toDataURL(t){t=t||{};var n=t.mimeType||null,r=t.quality||null,i=this._toKonvaCanvas(t).toDataURL(n,r);return t.callback&&t.callback(i),i}toImage(t){return new Promise((n,r)=>{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<i.length;a++)if(o=i[a].name,s=i[a].handler,(o!=="konva"||n==="konva")&&(!n||o===n)&&(!r||r===s)){if(i.splice(a,1),i.length===0){delete this.eventListeners[t];break}a--}}_fireChangeEvent(t,n,r){this._fire(t+LG,{oldVal:n,newVal:r})}addName(t){if(!this.hasName(t)){var n=this.name(),r=n?n+" "+t:t;this.name(r)}return this}hasName(t){if(!t)return!1;const n=this.name();if(!n)return!1;var r=(n||"").split(/\s/g);return r.indexOf(t)!==-1}removeName(t){var n=(this.name()||"").split(/\s/g),r=n.indexOf(t);return r!==-1&&(n.splice(r,1),this.name(n.join(" "))),this}setAttr(t,n){var r=this[uC+xt.Util._capitalize(t)];return xt.Util._isFunction(r)?r.call(this,n):this._setAttr(t,n),this}_requestDraw(){ss.Konva.autoDrawEnabled&&(this.getLayer()||this.getStage())?.batchDraw()}_setAttr(t,n){var r=this.attrs[t];r===n&&!xt.Util.isObject(n)||(n==null?delete this.attrs[t]:this.attrs[t]=n,this._shouldFireChangeEvents&&this._fireChangeEvent(t,r,n),this._requestDraw())}_setComponentAttr(t,n,r){var i;r!==void 0&&(i=this.attrs[t],i||(this.attrs[t]=this.getAttr(t)),this.attrs[t][n]=r,this._fireChangeEvent(t,i,r))}_fireAndBubble(t,n,r){n&&this.nodeType===dC&&(n.target=this);var i=(t===lC||t===cC)&&(r&&(this===r||this.isAncestorOf&&this.isAncestorOf(r))||this.nodeType==="Stage"&&!r);if(!i){this._fire(t,n);var a=(t===lC||t===cC)&&r&&r.isAncestorOf&&r.isAncestorOf(this)&&!r.isAncestorOf(this.parent);(n&&!n.cancelBubble||!n)&&this.parent&&this.parent.isListening()&&!a&&(r&&r.parent?this._fireAndBubble.call(this.parent,t,n,r):this._fireAndBubble.call(this.parent,t,n))}}_getProtoListeners(t){var n,r,i;const a=(n=this._cache.get(mf))!==null&&n!==void 0?n:{};let o=a?.[t];if(o===void 0){o=[];let s=Object.getPrototypeOf(this);for(;s;){const c=(i=(r=s.eventListeners)===null||r===void 0?void 0:r[t])!==null&&i!==void 0?i:[];o.push(...c),s=Object.getPrototypeOf(s)}a[t]=o,this._cache.set(mf,a)}return o}_fire(t,n){n=n||{},n.currentTarget=this,n.type=t;const r=this._getProtoListeners(t);if(r)for(var i=0;i<r.length;i++)r[i].handler.call(this,n);const a=this.eventListeners[t];if(a)for(var i=0;i<a.length;i++)a[i].handler.call(this,n)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(t){var n=t?t.pointerId:void 0,r=this.getStage(),i=this.getAbsolutePosition();if(r){var a=r._getPointerById(n)||r._changedPointerPositions[0]||i;Di.DD._dragElements.set(this._id,{node:this,startPointerPos:a,offset:{x:a.x-i.x,y:a.y-i.y},dragStatus:"ready",pointerId:n})}}startDrag(t,n=!0){Di.DD._dragElements.has(this._id)||this._createDragElement(t);const r=Di.DD._dragElements.get(this._id);r.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:t&&t.evt},n)}_setDragPosition(t,n){const r=this.getStage()._getPointerById(n.pointerId);if(r){var i={x:r.x-n.offset.x,y:r.y-n.offset.y},a=this.dragBoundFunc();if(a!==void 0){const o=a.call(this,i,t);o?i=o:xt.Util.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}(!this._lastPos||this._lastPos.x!==i.x||this._lastPos.y!==i.y)&&(this.setAbsolutePosition(i),this._requestDraw()),this._lastPos=i}}stopDrag(t){const n=Di.DD._dragElements.get(this._id);n&&(n.dragStatus="stopped"),Di.DD._endDragBefore(t),Di.DD._endDragAfter(t)}setDraggable(t){this._setAttr("draggable",t),this._dragChange()}isDragging(){const t=Di.DD._dragElements.get(this._id);return t?t.dragStatus==="dragging":!1}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(t){var n=t.evt.button!==void 0,r=!n||ss.Konva.dragButtons.indexOf(t.evt.button)>=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;s<o;s++)a.add(Qe._createNode(i[s]));return a}}hn.Node=Qe,Qe.prototype.nodeType="Node",Qe.prototype._attrsAffectingSize=[],Qe.prototype.eventListeners={},Qe.prototype.on.call(Qe.prototype,RG,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(ys),this._clearSelfAndDescendantCache(go)}),Qe.prototype.on.call(Qe.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(My)}),Qe.prototype.on.call(Qe.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(Ty)}),Qe.prototype.on.call(Qe.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(Fp)});const Kt=kh.Factory.addGetterSetter;Kt(Qe,"zIndex"),Kt(Qe,"absolutePosition"),Kt(Qe,"position"),Kt(Qe,"x",0,(0,jn.getNumberValidator)()),Kt(Qe,"y",0,(0,jn.getNumberValidator)()),Kt(Qe,"globalCompositeOperation","source-over",(0,jn.getStringValidator)()),Kt(Qe,"opacity",1,(0,jn.getNumberValidator)()),Kt(Qe,"name","",(0,jn.getStringValidator)()),Kt(Qe,"id","",(0,jn.getStringValidator)()),Kt(Qe,"rotation",0,(0,jn.getNumberValidator)()),kh.Factory.addComponentsGetterSetter(Qe,"scale",["x","y"]),Kt(Qe,"scaleX",1,(0,jn.getNumberValidator)()),Kt(Qe,"scaleY",1,(0,jn.getNumberValidator)()),kh.Factory.addComponentsGetterSetter(Qe,"skew",["x","y"]),Kt(Qe,"skewX",0,(0,jn.getNumberValidator)()),Kt(Qe,"skewY",0,(0,jn.getNumberValidator)()),kh.Factory.addComponentsGetterSetter(Qe,"offset",["x","y"]),Kt(Qe,"offsetX",0,(0,jn.getNumberValidator)()),Kt(Qe,"offsetY",0,(0,jn.getNumberValidator)()),Kt(Qe,"dragDistance",null,(0,jn.getNumberValidator)()),Kt(Qe,"width",0,(0,jn.getNumberValidator)()),Kt(Qe,"height",0,(0,jn.getNumberValidator)()),Kt(Qe,"listening",!0,(0,jn.getBooleanValidator)()),Kt(Qe,"preventDefault",!0,(0,jn.getBooleanValidator)()),Kt(Qe,"filters",null,function(e){return this._filterUpToDate=!1,e}),Kt(Qe,"visible",!0,(0,jn.getBooleanValidator)()),Kt(Qe,"transformsEnabled","all",(0,jn.getStringValidator)()),Kt(Qe,"size"),Kt(Qe,"dragBoundFunc"),Kt(Qe,"draggable",!1,(0,jn.getBooleanValidator)()),kh.Factory.backCompat(Qe,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});var sc={};Object.defineProperty(sc,"__esModule",{value:!0}),sc.Container=void 0;const Yc=at,c4=hn,vf=Be;let _l=class extends c4.Node{constructor(){super(...arguments),this.children=[]}getChildren(e){if(!e)return this.children||[];const t=this.children||[];var n=[];return t.forEach(function(r){e(r)&&n.push(r)}),n}hasChildren(){return this.getChildren().length>0}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;t<e.length;t++)this.add(e[t]);return this}const n=e[0];return n.getParent()?(n.moveTo(this),this):(this._validateAdd(n),n.index=this.getChildren().length,n.parent=this,n._clearCaches(),this.getChildren().push(n),this._fire("add",{child:n}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(e){return this._generalFind(e,!1)}findOne(e){var t=this._generalFind(e,!0);return t.length>0?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;m<h.length;m++){var g=h[m];if(g._isVisible(this)){b=!0;break}}return b&&i!==void 0?c={x:i,y:a,width:o-i,height:s-a}:c={x:0,y:0,width:0,height:0},n?c:this._transformedRect(c,r)}};sc.Container=_l,Yc.Factory.addComponentsGetterSetter(_l,"clip",["x","y","width","height"]),Yc.Factory.addGetterSetter(_l,"clipX",void 0,(0,vf.getNumberValidator)()),Yc.Factory.addGetterSetter(_l,"clipY",void 0,(0,vf.getNumberValidator)()),Yc.Factory.addGetterSetter(_l,"clipWidth",void 0,(0,vf.getNumberValidator)()),Yc.Factory.addGetterSetter(_l,"clipHeight",void 0,(0,vf.getNumberValidator)()),Yc.Factory.addGetterSetter(_l,"clipFunc");var zT={},vi={};Object.defineProperty(vi,"__esModule",{value:!0}),vi.releaseCapture=vi.setPointerCapture=vi.hasPointerCapture=vi.createEvent=vi.getCapturedShape=void 0;const zG=ft,g0=new Map,BT=zG.Konva._global.PointerEvent!==void 0;function BG(e){return g0.get(e)}vi.getCapturedShape=BG;function p8(e){return{evt:e,pointerId:e.pointerId}}vi.createEvent=p8;function HG(e,t){return g0.get(e)===t}vi.hasPointerCapture=HG;function GG(e,t){HT(e),t.getStage()&&(g0.set(e,t),BT&&t._fire("gotpointercapture",p8(new PointerEvent("gotpointercapture"))))}vi.setPointerCapture=GG;function HT(e,t){const n=g0.get(e);if(!n)return;const r=n.getStage();r&&r.content,g0.delete(e),BT&&n._fire("lostpointercapture",p8(new PointerEvent("lostpointercapture")))}vi.releaseCapture=HT,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Stage=e.stages=void 0;const t=Sn,n=at,r=sc,i=ft,a=ha,o=wm,s=ft,c=vi;var d="Stage",h="string",b="px",m="mouseout",g="mouseleave",v="mouseover",w="mouseenter",k="mousemove",C="mousedown",_="mouseup",f="pointermove",x="pointerdown",E="pointerup",M="pointercancel",j="lostpointercapture",P="pointerout",N="pointerleave",T="pointerover",R="pointerenter",z="contextmenu",H="touchstart",J="touchend",q="touchmove",Y="touchcancel",le="wheel",K=5,ce=[[w,"_pointerenter"],[C,"_pointerdown"],[k,"_pointermove"],[_,"_pointerup"],[g,"_pointerleave"],[H,"_pointerdown"],[q,"_pointermove"],[J,"_pointerup"],[Y,"_pointercancel"],[v,"_pointerover"],[le,"_wheel"],[z,"_contextmenu"],[x,"_pointerdown"],[f,"_pointermove"],[E,"_pointerup"],[M,"_pointercancel"],[j,"_lostpointercapture"]];const ne={mouse:{[P]:m,[N]:g,[T]:v,[R]:w,[f]:k,[x]:C,[E]:_,[M]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[P]:"touchout",[N]:"touchleave",[T]:"touchover",[R]:"touchenter",[f]:q,[x]:H,[E]:J,[M]:Y,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[P]:P,[N]:N,[T]:T,[R]:R,[f]:f,[x]:x,[E]:E,[M]:M,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},oe=W=>W.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<B;ee++)D[ee].clear();return this}clone(D){return D||(D={}),D.container=typeof document<"u"&&document.createElement("div"),r.Container.prototype.clone.call(this,D)}destroy(){super.destroy();var D=this.content;D&&t.Util._isInDocument(D)&&this.container().removeChild(D);var B=e.stages.indexOf(this);return B>-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;ee<arguments.length;ee++)this.add(arguments[ee]);return this}super.add(D);var ue=this.children.length;return ue>K&&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;q<T.length;q+=2)J.addColorStop(T[q],T[q+1]);return J}}_getRadialGradient(){return this._getCache(m,this.__getRadialGradient)}__getRadialGradient(){var T=this.fillRadialGradientColorStops();if(T){for(var R=v(),z=this.fillRadialGradientStartPoint(),H=this.fillRadialGradientEndPoint(),J=R.createRadialGradient(z.x,z.y,this.fillRadialGradientStartRadius(),H.x,H.y,this.fillRadialGradientEndRadius()),q=0;q<T.length;q+=2)J.addColorStop(T[q],T[q+1]);return J}}getShadowRGBA(){return this._getCache(d,this._getShadowRGBA)}_getShadowRGBA(){if(this.hasShadow()){var T=n.Util.colorToRGBA(this.shadowColor());if(T)return"rgba("+T.r+","+T.g+","+T.b+","+T.a*(this.shadowOpacity()||1)+")"}}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],()=>this.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;oe<ce;oe+=4)Q=K[oe+3],Q>T?(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<n.children.length-1?n.content.insertBefore(this.getNativeCanvasElement(),n.children[t+1].getCanvas()._canvas):n.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){Kc.Node.prototype.moveToTop.call(this);var t=this.getStage();return t&&t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){var t=Kc.Node.prototype.moveUp.call(this);if(!t)return!1;var n=this.getStage();return!n||!n.content?!1:(n.content.removeChild(this.getNativeCanvasElement()),this.index<n.children.length-1?n.content.insertBefore(this.getNativeCanvasElement(),n.children[this.index+1].getCanvas()._canvas):n.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(Kc.Node.prototype.moveDown.call(this)){var t=this.getStage();if(t){var n=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),n[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(Kc.Node.prototype.moveToBottom.call(this)){var t=this.getStage();if(t){var n=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),n[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){var t=this.getNativeCanvasElement();return Kc.Node.prototype.remove.call(this),t&&t.parentNode&&oo.Util._isInDocument(t)&&t.parentNode.removeChild(t),this}getStage(){return this.parent}setSize({width:t,height:n}){return this.canvas.setSize(t,n),this.hitCanvas.setSize(t,n),this._setSmoothEnabled(),this}_validateAdd(t){var n=t.getType();n!=="Group"&&n!=="Shape"&&oo.Util.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(t){return t=t||{},t.width=t.width||this.getWidth(),t.height=t.height||this.getHeight(),t.x=t.x!==void 0?t.x:this.x(),t.y=t.y!==void 0?t.y:this.y(),Kc.Node.prototype._toKonvaCanvas.call(this,t)}_checkVisibility(){this.visible()?this.canvas._canvas.style.display="block":this.canvas._canvas.style.display="none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){oo.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){oo.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,oo.Util.requestAnimFrame(()=>{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;i<ZG;i++){const a=GT[i],o=this._getIntersection({x:t.x+a.x*n,y:t.y+a.y*n}),s=o.shape;if(s)return s;if(r=!!o.antialiased,!o.antialiased)break}if(r)n+=1;else return null}}_getIntersection(t){const n=this.hitCanvas.pixelRatio,r=this.hitCanvas.context.getImageData(Math.round(t.x*n),Math.round(t.y*n),1,1).data,i=r[3];if(i===255){const a=oo.Util._rgbToHex(r[0],r[1],r[2]),o=UG.shapes[XG+a];return o?{shape:o}:{antialiased:!0}}else if(i>0)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;i<r;i++)if(n[i]._id===t._id)return!1;return this.layers.push(t),!0}isRunning(){const t=Ha.animations,n=t.length;for(let r=0;r<n;r++)if(t[r].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=g4(),Ha._addAnimation(this),this}stop(){return Ha._removeAnimation(this),this}_updateFrameObject(t){this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(t){this.animations.push(t),this._handleAnimation()}static _removeAnimation(t){const n=t.id,r=this.animations,i=r.length;for(let a=0;a<i;a++)if(r[a].id===n){this.animations.splice(a,1);break}}static _runFrames(){const t={},n=this.animations;for(let r=0;r<n.length;r++){const i=n[r],a=i.layers,o=i.func;i._updateFrameObject(g4());const s=a.length;let c;if(o?c=o.call(i,i.frame)!==!1:c=!0,!!c)for(let d=0;d<s;d++){const h=a[d];h._id!==void 0&&(t[h._id]=h)}}for(let r in t)t.hasOwnProperty(r)&&t[r].batchDraw()}static _animationLoop(){const t=Ha;t.animations.length?(t._runFrames(),pC.Util.requestAnimFrame(t._animationLoop)):t.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,pC.Util.requestAnimFrame(this._animationLoop))}}id.Animation=Ha,Ha.animations=[],Ha.animIdCounter=0,Ha.animRunning=!1;var gC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Easings=e.Tween=void 0;const t=Sn,n=id,r=hn,i=ft;var a={node:1,duration:1,easing:1,onFinish:1,yoyo:1},o=1,s=2,c=3,d=0,h=["fill","stroke","shadowColor"];class b{constructor(v,w,k,C,_,f,x){this.prop=v,this.propFunc=w,this.begin=C,this._pos=C,this.duration=f,this._change=0,this.prevPos=0,this.yoyo=x,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=k,this._change=_-this.begin,this.pause()}fire(v){var w=this[v];w&&w()}setTime(v){v>this.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<M;E++)if(E%2===0)f.push(w[E]-_[E]);else{var T=t.Util.colorToRGBA(_[E]);N=t.Util.colorToRGBA(w[E]),_[E]=T,f.push({r:N.r-T.r,g:N.g-T.g,b:N.b-T.b,a:N.a-T.a})}else for(E=0;E<M;E++)f.push(w[E]-_[E]);else h.indexOf(v)!==-1?(_=t.Util.colorToRGBA(_),N=t.Util.colorToRGBA(w),f={r:N.r-_.r,g:N.g-_.g,b:N.b-_.b,a:N.a-_.a}):f=w-_;m.attrs[C][this._id][v]={start:_,diff:f,end:w,trueEnd:j,trueStart:P},m.tweens[C][v]=this._id}_tweenFunc(v){var w=this.node,k=m.attrs[w._id][this._id],C,_,f,x,E,M,j,P;for(C in k){if(_=k[C],f=_.start,x=_.diff,P=_.end,t.Util._isArray(f))if(E=[],j=Math.max(f.length,P.length),C.indexOf("fill")===0)for(M=0;M<j;M++)M%2===0?E.push((f[M]||0)+x[M]*v):E.push("rgba("+Math.round(f[M].r+x[M].r*v)+","+Math.round(f[M].g+x[M].g*v)+","+Math.round(f[M].b+x[M].b*v)+","+(f[M].a+x[M].a*v)+")");else for(M=0;M<j;M++)E.push((f[M]||0)+x[M]*v);else h.indexOf(C)!==-1?E="rgba("+Math.round(f.r+x.r*v)+","+Math.round(f.g+x.g*v)+","+Math.round(f.b+x.b*v)+","+(f.a+x.a*v)+")":E=f+x*v;w.setAttr(C,E)}}_addListeners(){this.tween.onPlay=()=>{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||C<Math.abs(w)?(C=w,f=_/4):f=_/(2*Math.PI)*Math.asin(w/C),-(C*Math.pow(2,10*(g-=1))*Math.sin((g*k-f)*(2*Math.PI)/_))+v)},ElasticEaseOut(g,v,w,k,C,_){var f=0;return g===0?v:(g/=k)===1?v+w:(_||(_=k*.3),!C||C<Math.abs(w)?(C=w,f=_/4):f=_/(2*Math.PI)*Math.asin(w/C),C*Math.pow(2,-10*g)*Math.sin((g*k-f)*(2*Math.PI)/_)+w+v)},ElasticEaseInOut(g,v,w,k,C,_){var f=0;return g===0?v:(g/=k/2)===2?v+w:(_||(_=k*(.3*1.5)),!C||C<Math.abs(w)?(C=w,f=_/4):f=_/(2*Math.PI)*Math.asin(w/C),g<1?-.5*(C*Math.pow(2,10*(g-=1))*Math.sin((g*k-f)*(2*Math.PI)/_))+v:C*Math.pow(2,-10*(g-=1))*Math.sin((g*k-f)*(2*Math.PI)/_)*.5+w+v)},BounceEaseOut(g,v,w,k){return(g/=k)<1/2.75?w*(7.5625*g*g)+v:g<2/2.75?w*(7.5625*(g-=1.5/2.75)*g+.75)+v:g<2.5/2.75?w*(7.5625*(g-=2.25/2.75)*g+.9375)+v:w*(7.5625*(g-=2.625/2.75)*g+.984375)+v},BounceEaseIn(g,v,w,k){return w-e.Easings.BounceEaseOut(k-g,0,w,k)+v},BounceEaseInOut(g,v,w,k){return g<k/2?e.Easings.BounceEaseIn(g*2,0,w,k)*.5+v:e.Easings.BounceEaseOut(g*2-k,0,w,k)*.5+w*.5+v},EaseIn(g,v,w,k){return w*(g/=k)*g+v},EaseOut(g,v,w,k){return-w*(g/=k)*(g-2)+v},EaseInOut(g,v,w,k){return(g/=k/2)<1?w/2*g*g+v:-w/2*(--g*(g-2)-1)+v},StrongEaseIn(g,v,w,k){return w*(g/=k)*g*g*g*g+v},StrongEaseOut(g,v,w,k){return w*((g=g/k-1)*g*g*g*g+1)+v},StrongEaseInOut(g,v,w,k){return(g/=k/2)<1?w/2*g*g*g*g*g+v:w/2*((g-=2)*g*g*g*g+2)+v},Linear(g,v,w,k){return w*g/k+v}}})(gC),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Konva=void 0;const t=ft,n=Sn,r=hn,i=sc,a=zT,o=m0,s=hg,c=rd,d=wm,h=er,b=id,m=gC,g=So,v=ha;e.Konva=n.Util._assign(t.Konva,{Util:n.Util,Transform:n.Transform,Node:r.Node,Container:i.Container,Stage:a.Stage,stages:a.stages,Layer:o.Layer,FastLayer:s.FastLayer,Group:c.Group,DD:d.DD,Shape:h.Shape,shapes:h.shapes,Animation:b.Animation,Tween:m.Tween,Easings:m.Easings,Context:g.Context,Canvas:v.Canvas}),e.default=e.Konva}(NT);var fg={};Object.defineProperty(fg,"__esModule",{value:!0}),fg.Arc=void 0;const yf=at,nV=er,mC=ft,bf=Be,rV=ft;class so extends nV.Shape{_sceneFunc(t){var n=mC.Konva.getAngle(this.angle()),r=this.clockwise();t.beginPath(),t.arc(0,0,this.outerRadius(),0,n,r),t.arc(0,0,this.innerRadius(),n,0,!r),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)}getSelfRect(){const t=this.innerRadius(),n=this.outerRadius(),r=this.clockwise(),i=mC.Konva.getAngle(r?360-this.angle():this.angle()),a=Math.cos(Math.min(i,Math.PI)),o=1,s=Math.sin(Math.min(Math.max(Math.PI,i),3*Math.PI/2)),c=Math.sin(Math.min(i,Math.PI/2)),d=a*(a>0?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;i<n-2;i+=2)a=Iy(e[i-2],e[i-1],e[i],e[i+1],e[i+2],e[i+3],t),!isNaN(a[0])&&(r.push(a[0]),r.push(a[1]),r.push(e[i]),r.push(e[i+1]),r.push(a[2]),r.push(a[3]));return r}let ls=class extends iV.Shape{constructor(e){super(e),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(e){var t=this.points(),n=t.length,r=this.tension(),i=this.closed(),a=this.bezier(),o,s,c;if(n){if(e.beginPath(),e.moveTo(t[0],t[1]),r!==0&&n>4){for(o=this.getTensionPoints(),s=o.length,c=i?0:4,i||e.quadraticCurveTo(o[0],o[1],o[2],o[3]);c<s-2;)e.bezierCurveTo(o[c++],o[c++],o[c++],o[c++],o[c++],o[c++]);i||e.quadraticCurveTo(o[s-2],o[s-1],t[n-2],t[n-1])}else if(a)for(c=2;c<n;)e.bezierCurveTo(t[c++],t[c++],t[c++],t[c++],t[c++],t[c++]);else for(c=2;c<n;c+=2)e.lineTo(t[c],t[c+1]);i?(e.closePath(),e.fillStrokeShape(this)):e.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():yC(this.points(),this.tension())}_getTensionPointsClosed(){var e=this.points(),t=e.length,n=this.tension(),r=Iy(e[t-2],e[t-1],e[0],e[1],e[2],e[3],n),i=Iy(e[t-4],e[t-3],e[t-2],e[t-1],e[0],e[1],n),a=yC(e,n),o=[r[2],r[3]].concat(a).concat([i[0],i[1],e[t-2],e[t-1],i[2],i[3],r[0],r[1],e[0],e[1]]);return o}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){var e=this.points();if(e.length<4)return{x:e[0]||0,y:e[1]||0,width:0,height:0};this.tension()!==0?e=[e[0],e[1],...this._getTensionPoints(),e[e.length-2],e[e.length-1]]:e=this.points();for(var t=e[0],n=e[0],r=e[1],i=e[1],a,o,s=0;s<e.length/2;s++)a=e[s*2],o=e[s*2+1],t=Math.min(t,a),n=Math.max(n,a),r=Math.min(r,o),i=Math.max(i,o);return{x:t,y:r,width:n-t,height:i-r}}};v0.Line=ls,ls.prototype.className="Line",ls.prototype._attrsAffectingSize=["points","bezier","tension"],(0,aV._registerNode)(ls),wf.Factory.addGetterSetter(ls,"closed",!1),wf.Factory.addGetterSetter(ls,"bezier",!1),wf.Factory.addGetterSetter(ls,"tension",0,(0,vC.getNumberValidator)()),wf.Factory.addGetterSetter(ls,"points",[],(0,vC.getNumberArrayValidator)());var ad={},VT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.t2length=e.getQuadraticArcLength=e.getCubicArcLength=e.binomialCoefficients=e.cValues=e.tValues=void 0,e.tValues=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],e.cValues=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],e.binomialCoefficients=[[1],[1,1],[1,2,1],[1,3,3,1]];const t=(o,s,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<d;m++)h[m]=d*(c[m+1]-c[m]);return i(o-1,s,h)}},a=(o,s,c)=>{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(v<d)d=v,h+=b;else{const w=c(h-b),k=Math.abs(o-w)/s;k<d?(d=k,h-=b):b/=2}if(m++,m>500)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;i<n.length;i++){var a=n[i].command,o=n[i].points;switch(a){case"L":t.lineTo(o[0],o[1]);break;case"M":t.moveTo(o[0],o[1]);break;case"C":t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"Q":t.quadraticCurveTo(o[0],o[1],o[2],o[3]);break;case"A":var s=o[0],c=o[1],d=o[2],h=o[3],b=o[4],m=o[5],g=o[6],v=o[7],w=d>h?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)<g&&(g=Math.abs(h-m)),b<0)for(let v=h-g;v>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;v<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 if(d.command==="C")for(let v=0;v<=1;v+=.01){const w=Kn.getPointOnCubicBezier(v,d.start.x,d.start.y,d.points[0],d.points[1],d.points[2],d.points[3],d.points[4],d.points[5]);t.push(w.x,w.y)}else t=t.concat(d.points)});for(var n=t[0],r=t[0],i=t[1],a=t[1],o,s,c=0;c<t.length/2;c++)o=t[c*2],s=t[c*2+1],isNaN(o)||(n=Math.min(n,o),r=Math.max(r,o)),isNaN(s)||(i=Math.min(i,s),a=Math.max(a,s));return{x:n,y:i,width:r-n,height:a-i}}getLength(){return this.pathLength}getPointAtLength(t){return Kn.getPointAtLengthOfDataArray(t,this.dataArray)}static getLineLength(t,n,r,i){return Math.sqrt((r-t)*(r-t)+(i-n)*(i-n))}static getPathLength(t){let n=0;for(var r=0;r<t.length;++r)n+=t[r].pathLength;return n}static getPointAtLengthOfDataArray(t,n){var r,i=0,a=n.length;if(!a)return null;for(;i<a&&t>n[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));i<n&&(d*=-1);var h=c*d,b;if(i===n)b={x:o,y:s+h};else if((s-r)/(o-n+1e-8)===c)b={x:o+d,y:s+h};else{var m,g,v=this.getLineLength(n,r,i,a),w=(o-n)*(i-n)+(s-r)*(a-r);w=w/(v*v),m=n+w*(i-n),g=r+w*(a-r);var k=this.getLineLength(o,s,m,g),C=Math.sqrt(t*t-k*k);d=Math.sqrt(C*C/(1+c*c)),i<n&&(d*=-1),h=c*d,b={x:m+d,y:g+h}}return b}static getPointOnCubicBezier(t,n,r,i,a,o,s,c,d){function h(k){return k*k*k}function b(k){return 3*k*k*(1-k)}function m(k){return 3*k*(1-k)*(1-k)}function g(k){return(1-k)*(1-k)*(1-k)}var v=c*h(t)+o*b(t)+i*m(t)+n*g(t),w=d*h(t)+s*b(t)+a*m(t)+r*g(t);return{x:v,y:w}}static getPointOnQuadraticBezier(t,n,r,i,a,o,s){function c(g){return g*g}function d(g){return 2*g*(1-g)}function h(g){return(1-g)*(1-g)}var b=o*c(t)+i*d(t)+n*h(t),m=s*c(t)+a*d(t)+r*h(t);return{x:b,y:m}}static getPointOnEllipticalArc(t,n,r,i,a,o){var s=Math.cos(o),c=Math.sin(o),d={x:r*Math.cos(a),y:i*Math.sin(a)};return{x:t+(d.x*s-d.y*c),y:n+(d.x*c+d.y*s)}}static parsePathData(t){if(!t)return[];var n=t,r=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];n=n.replace(new RegExp(" ","g"),",");for(var i=0;i<r.length;i++)n=n.replace(new RegExp(r[i],"g"),"|"+r[i]);var a=n.split("|"),o=[],s=[],c=0,d=0,h=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi,b;for(i=1;i<a.length;i++){var m=a[i],g=m.charAt(0);for(m=m.slice(1),s.length=0;b=h.exec(m);)s.push(b[0]);for(var v=[],w=0,k=s.length;w<k;w++){if(s[w]==="00"){v.push(0,0);continue}var C=parseFloat(s[w]);isNaN(C)?v.push(0):v.push(C)}for(;v.length>0&&!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)<g&&(g=Math.abs(h-m)),o=d.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],h,0),b<0)for(c=h-g;c>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;c<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;return s=d.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],m,0),a+=d.getLineLength(o.x,o.y,s.x,s.y),a}return 0}static convertEndpointToCenterParameterization(t,n,r,i,a,o,s,c,d){var h=d*(Math.PI/180),b=Math.cos(h)*(t-r)/2+Math.sin(h)*(n-i)/2,m=-1*Math.sin(h)*(t-r)/2+Math.cos(h)*(n-i)/2,g=b*b/(s*s)+m*m/(c*c);g>1&&(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]<T[1]*R[0]?-1:1)*Math.acos(x(T,R))},M=E([1,0],[(b-w)/s,(m-k)/c]),j=[(b-w)/s,(m-k)/c],P=[(-1*b-w)/s,(-1*m-k)/c],N=E(j,P);return x(j,P)<=-1&&(N=Math.PI),x(j,P)>=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<SV;n++)e.on(XT[n]+xV,r)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){var e=this.getText(),t=this.getTag(),n,r,i,a,o,s,c;if(e&&t){switch(n=e.width(),r=e.height(),i=t.pointerDirection(),a=t.pointerWidth(),c=t.pointerHeight(),o=0,s=0,i){case Ay:o=n/2,s=-1*c;break;case Ly:o=n+a,s=r/2;break;case jy:o=n/2,s=r+c;break;case Ny:o=-1*a,s=r/2;break}t.setAttrs({x:-1*o,y:-1*s,width:n,height:r}),e.setAttrs({x:-1*o,y:-1*s})}}};Ru.Label=b4,b4.prototype.className="Label",(0,WT._registerNode)(b4);class Pl extends bV.Shape{_sceneFunc(t){var n=this.width(),r=this.height(),i=this.pointerDirection(),a=this.pointerWidth(),o=this.pointerHeight(),s=this.cornerRadius();let c=0,d=0,h=0,b=0;typeof s=="number"?c=d=h=b=Math.min(s,n/2,r/2):(c=Math.min(s[0]||0,n/2,r/2),d=Math.min(s[1]||0,n/2,r/2),b=Math.min(s[2]||0,n/2,r/2),h=Math.min(s[3]||0,n/2,r/2)),t.beginPath(),t.moveTo(c,0),i===Ay&&(t.lineTo((n-a)/2,0),t.lineTo(n/2,-1*o),t.lineTo((n+a)/2,0)),t.lineTo(n-d,0),t.arc(n-d,d,d,Math.PI*3/2,0,!1),i===Ly&&(t.lineTo(n,(r-o)/2),t.lineTo(n+a,r/2),t.lineTo(n,(r+o)/2)),t.lineTo(n,r-b),t.arc(n-b,r-b,b,0,Math.PI/2,!1),i===jy&&(t.lineTo((n+a)/2,r),t.lineTo(n/2,r+o),t.lineTo((n-a)/2,r)),t.lineTo(h,r),t.arc(h,r-h,h,Math.PI/2,Math.PI,!1),i===Ny&&(t.lineTo(0,(r+o)/2),t.lineTo(-1*a,r/2),t.lineTo(0,(r-o)/2)),t.lineTo(0,c),t.arc(c,c,c,Math.PI,Math.PI*3/2,!1),t.closePath(),t.fillStrokeShape(this)}getSelfRect(){var t=0,n=0,r=this.pointerWidth(),i=this.pointerHeight(),a=this.pointerDirection(),o=this.width(),s=this.height();return a===Ay?(n-=i,s+=i):a===jy?s+=i:a===Ny?(t-=r*1.5,o+=r):a===Ly&&(o+=r*1.5),{x:t,y:n,width:o,height:s}}}Ru.Tag=Pl,Pl.prototype.className="Tag",(0,WT._registerNode)(Pl),Cf.Factory.addGetterSetter(Pl,"pointerDirection",CV),Cf.Factory.addGetterSetter(Pl,"pointerWidth",0,(0,y4.getNumberValidator)()),Cf.Factory.addGetterSetter(Pl,"pointerHeight",0,(0,y4.getNumberValidator)()),Cf.Factory.addGetterSetter(Pl,"cornerRadius",0,(0,y4.getNumberOrArrayOfNumbersValidator)(4));var y0={};Object.defineProperty(y0,"__esModule",{value:!0}),y0.Rect=void 0;const EV=at,_V=er,kV=ft,OV=Sn,PV=Be;class Sf extends _V.Shape{_sceneFunc(t){var n=this.cornerRadius(),r=this.width(),i=this.height();t.beginPath(),n?OV.Util.drawRoundedRectPath(t,r,i,n):t.rect(0,0,r,i),t.closePath(),t.fillStrokeShape(this)}}y0.Rect=Sf,Sf.prototype.className="Rect",(0,kV._registerNode)(Sf),EV.Factory.addGetterSetter(Sf,"cornerRadius",0,(0,PV.getNumberOrArrayOfNumbersValidator)(4));var yg={};Object.defineProperty(yg,"__esModule",{value:!0}),yg.RegularPolygon=void 0;const CC=at,TV=er,SC=Be,MV=ft;class Tl extends TV.Shape{_sceneFunc(t){const n=this._getPoints();t.beginPath(),t.moveTo(n[0].x,n[0].y);for(var r=1;r<n.length;r++)t.lineTo(n[r].x,n[r].y);t.closePath(),t.fillStrokeShape(this)}_getPoints(){const t=this.attrs.sides,n=this.attrs.radius||0,r=[];for(var i=0;i<t;i++)r.push({x:n*Math.sin(i*2*Math.PI/t),y:-1*n*Math.cos(i*2*Math.PI/t)});return r}getSelfRect(){const t=this._getPoints();var n=t[0].x,r=t[0].y,i=t[0].x,a=t[0].y;return t.forEach(o=>{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<a-1?this.frameIndex(t+1):this.frameIndex(0)}}wg.Sprite=Da,Da.prototype.className="Sprite",(0,NV._registerNode)(Da),Il.Factory.addGetterSetter(Da,"animation"),Il.Factory.addGetterSetter(Da,"animations"),Il.Factory.addGetterSetter(Da,"frameOffsets"),Il.Factory.addGetterSetter(Da,"image"),Il.Factory.addGetterSetter(Da,"frameIndex",0,(0,OC.getNumberValidator)()),Il.Factory.addGetterSetter(Da,"frameRate",17,(0,OC.getNumberValidator)()),Il.Factory.backCompat(Da,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});var xg={};Object.defineProperty(xg,"__esModule",{value:!0}),xg.Star=void 0;const w4=at,DV=er,x4=Be,RV=ft;class us extends DV.Shape{_sceneFunc(t){var n=this.innerRadius(),r=this.outerRadius(),i=this.numPoints();t.beginPath(),t.moveTo(0,0-r);for(var a=1;a<i*2;a++){var o=a%2===0?r:n,s=o*Math.sin(a*Math.PI/i),c=-1*o*Math.cos(a*Math.PI/i);t.lineTo(s,c)}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)}}xg.Star=us,us.prototype.className="Star",us.prototype._centroid=!0,us.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,RV._registerNode)(us),w4.Factory.addGetterSetter(us,"numPoints",5,(0,x4.getNumberValidator)()),w4.Factory.addGetterSetter(us,"innerRadius",0,(0,x4.getNumberValidator)()),w4.Factory.addGetterSetter(us,"outerRadius",0,(0,x4.getNumberValidator)());var Xl={};Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.Text=Xl.stringToArray=void 0;const Dy=Sn,Or=at,FV=er,ds=Be,zV=ft;function YT(e){return Array.from(e)}Xl.stringToArray=YT;var Qc="auto",BV="center",KT="inherit",sh="justify",HV="Change.konva",GV="2d",PC="-",ZT="left",VV="text",UV="Text",WV="top",XV="bottom",TC="middle",MC="normal",YV="px ",Ef=" ",KV="right",IC="rtl",ZV="word",qV="char",AC="none",C4="…",qT=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],$V=qT.length;function QV(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(", ")}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;k<n;k++){var _=0,f=0,x=t[k],E=x.text,M=x.width,j=x.lastInParagraph,P,N,T;if(e.save(),d===KV?_+=h-M-r*2:d===BV&&(_+=(h-M-r*2)/2),v){e.save(),e.beginPath(),e.moveTo(_,C+f+Math.round(i/2)),P=E.split(" ").length-1,N=P===0,T=d===sh&&!j?h-r*2:M,e.lineTo(_+Math.round(T),C+f+Math.round(i/2)),e.lineWidth=i/15;const Y=this._getLinearGradient();e.strokeStyle=Y||m,e.stroke(),e.restore()}if(w){e.save(),e.beginPath(),e.moveTo(_,C+f),P=E.split(" ").length-1,N=P===0,T=d===sh&&j&&!N?h-r*2:M,e.lineTo(_+Math.round(T),C+f),e.lineWidth=i/15;const Y=this._getLinearGradient();e.strokeStyle=Y||m,e.stroke(),e.restore()}if(s!==IC&&(b!==0||d===sh)){P=E.split(" ").length-1;for(var R=YT(E),z=0;z<R.length;z++){var H=R[z];H===" "&&!j&&d===sh&&(_+=(h-r*2-M)/P),this._partialTextX=_,this._partialTextY=C+f,this._partialText=H,e.fillStrokeShape(this),_+=this.measureSize(H).width+b}}else b!==0&&e.setAttr("letterSpacing",`${b}px`),this._partialTextX=_,this._partialTextY=C+f,this._partialText=E,e.fillStrokeShape(this);e.restore(),n>1&&(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<M;){var N=E+M>>>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)<r;o||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+C4)}}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const e=this.textDecoration().indexOf("underline")!==-1||this.textDecoration().indexOf("line-through")!==-1,t=this.hasShadow();return e&&t?!0:super._useBufferCanvas()}};Xl.Text=kn,kn.prototype._fillFunc=JV,kn.prototype._strokeFunc=eU,kn.prototype.className=UV,kn.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],(0,zV._registerNode)(kn),Or.Factory.overWriteSetter(kn,"width",(0,ds.getNumberOrAutoValidator)()),Or.Factory.overWriteSetter(kn,"height",(0,ds.getNumberOrAutoValidator)()),Or.Factory.addGetterSetter(kn,"direction",KT),Or.Factory.addGetterSetter(kn,"fontFamily","Arial"),Or.Factory.addGetterSetter(kn,"fontSize",12,(0,ds.getNumberValidator)()),Or.Factory.addGetterSetter(kn,"fontStyle",MC),Or.Factory.addGetterSetter(kn,"fontVariant",MC),Or.Factory.addGetterSetter(kn,"padding",0,(0,ds.getNumberValidator)()),Or.Factory.addGetterSetter(kn,"align",ZT),Or.Factory.addGetterSetter(kn,"verticalAlign",WV),Or.Factory.addGetterSetter(kn,"lineHeight",1,(0,ds.getNumberValidator)()),Or.Factory.addGetterSetter(kn,"wrap",ZV),Or.Factory.addGetterSetter(kn,"ellipsis",!1,(0,ds.getBooleanValidator)()),Or.Factory.addGetterSetter(kn,"letterSpacing",0,(0,ds.getNumberValidator)()),Or.Factory.addGetterSetter(kn,"text","",(0,ds.getStringValidator)()),Or.Factory.addGetterSetter(kn,"textDecoration","");var Cg={};Object.defineProperty(Cg,"__esModule",{value:!0}),Cg.TextPath=void 0;const _4=Sn,na=at,nU=er,lh=ad,k4=Xl,LC=Be,rU=ft;var iU="",jC="normal";function NC(e){e.fillText(this.partialText,0,0)}function DC(e){e.strokeText(this.partialText,0,0)}class Xn extends nU.Shape{constructor(t){super(t),this.dummyCanvas=_4.Util.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute(),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return lh.Path.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const n=this.pathLength;return t-1>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<a.length;o++){t.save();var s=a[o].p0;t.translate(s.x,s.y),t.rotate(a[o].rotation),this.partialText=a[o].text,t.fillStrokeShape(this),n==="underline"&&(o===0&&t.moveTo(0,i/2+1),t.lineTo(i,i/2+1)),t.restore()}n==="underline"&&(t.strokeStyle=r,t.lineWidth=i/20,t.stroke()),t.restore()}_hitFunc(t){t.beginPath();var n=this.glyphInfo;if(n.length>=1){var r=n[0].p0;t.moveTo(r.x,r.y)}for(var i=0;i<n.length;i++){var a=n[i].p1;t.lineTo(a.x,a.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return _4.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(t){return k4.Text.prototype.setText.call(this,t)}_getContextFont(){return k4.Text.prototype._getContextFont.call(this)}_getTextSize(t){var n=this.dummyCanvas,r=n.getContext("2d");r.save(),r.font=this._getContextFont();var i=r.measureText(t);return r.restore(),{width:i.width,height:parseInt(`${this.fontSize()}`,10)}}_setTextData(){const{width:t,height:n}=this._getTextSize(this.attrs.text);if(this.textWidth=t,this.textHeight=n,this.glyphInfo=[],!this.attrs.data)return null;const r=this.letterSpacing(),i=this.align(),a=this.kerningFunc(),o=Math.max(this.textWidth+((this.attrs.text||"").length-1)*r,0);let s=0;i==="center"&&(s=Math.max(0,this.pathLength/2-o/2)),i==="right"&&(s=Math.max(0,this.pathLength-o));const c=(0,k4.stringToArray)(this.text());let d=s;for(var h=0;h<c.length;h++){const b=this._getPointAtLength(d);if(!b)return;let m=this._getTextSize(c[h]).width+r;if(c[h]===" "&&i==="justify"){const _=this.text().split(" ").length-1;m+=(this.pathLength-o)/_}const g=this._getPointAtLength(d+m);if(!g)return;const v=lh.Path.getLineLength(b.x,b.y,g.x,g.y);let w=0;if(a)try{w=a(c[h-1],c[h])*this.fontSize()}catch{w=0}b.x+=w,g.x+=w,this.textWidth+=w;const k=lh.Path.getPointOnLine(w+v/2,b.x,b.y,g.x,g.y),C=Math.atan2(g.y-b.y,g.x-b.x);this.glyphInfo.push({transposeX:k.x,transposeY:k.y,text:c[h],rotation:C,p0:b,p1:g}),d+=m}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};var t=[];this.glyphInfo.forEach(function(h){t.push(h.p0.x),t.push(h.p0.y),t.push(h.p1.x),t.push(h.p1.y)});for(var n=t[0]||0,r=t[0]||0,i=t[1]||0,a=t[1]||0,o,s,c=0;c<t.length/2;c++)o=t[c*2],s=t[c*2+1],n=Math.min(n,o),r=Math.max(r,o),i=Math.min(i,s),a=Math.max(a,s);var d=this.fontSize();return{x:n-d/2,y:i-d/2,width:r-n+d,height:a-i+d}}destroy(){return _4.Util.releaseCanvas(this.dummyCanvas),super.destroy()}}Cg.TextPath=Xn,Xn.prototype._fillFunc=NC,Xn.prototype._strokeFunc=DC,Xn.prototype._fillFuncHit=NC,Xn.prototype._strokeFuncHit=DC,Xn.prototype.className="TextPath",Xn.prototype._attrsAffectingSize=["text","fontSize","data"],(0,rU._registerNode)(Xn),na.Factory.addGetterSetter(Xn,"data"),na.Factory.addGetterSetter(Xn,"fontFamily","Arial"),na.Factory.addGetterSetter(Xn,"fontSize",12,(0,LC.getNumberValidator)()),na.Factory.addGetterSetter(Xn,"fontStyle",jC),na.Factory.addGetterSetter(Xn,"align","left"),na.Factory.addGetterSetter(Xn,"letterSpacing",0,(0,LC.getNumberValidator)()),na.Factory.addGetterSetter(Xn,"textBaseline","middle"),na.Factory.addGetterSetter(Xn,"fontVariant",jC),na.Factory.addGetterSetter(Xn,"text",iU),na.Factory.addGetterSetter(Xn,"textDecoration",null),na.Factory.addGetterSetter(Xn,"kerningFunc",null);var Sg={};Object.defineProperty(Sg,"__esModule",{value:!0}),Sg.Transformer=void 0;const Gt=Sn,jt=at,RC=hn,aU=er,oU=y0,FC=rd,aa=ft,hs=Be,sU=ft;var $T="tr-konva",lU=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map(e=>e+`.${$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;i<e.length;i++){const a=aa.Konva.getAngle(e[i]),o=Math.abs(a-t)%(Math.PI*2);Math.min(o,Math.PI*2-o)<n&&(r=a)}return r}let Ry=0;class Et extends FC.Group{constructor(t){super(t),this._movingAnchorName=null,this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(lU,this.update),this.getNode()&&this.update()}attachTo(t){return this.setNode(t),this}setNode(t){return Gt.Util.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([t])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return $T+this._id}setNodes(t=[]){this._nodes&&this._nodes.length&&this.detach();const n=t.filter(i=>i.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.x?-1:1,C=this.findOne(".top-right").y()>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<a.x()?-1:1,C=a.y()<w.y?-1:1;n=i*this.cos*k,r=i*this.sin*C,a.x(w.x-n),a.y(w.y+r)}_=a.position(),this.findOne(".top-left").x(_.x),this.findOne(".bottom-right").y(_.y)}else if(this._movingAnchorName==="bottom-center")this.findOne(".bottom-right").y(a.y());else if(this._movingAnchorName==="bottom-right"){if(v){var w=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};i=Math.sqrt(Math.pow(a.x()-w.x,2)+Math.pow(a.y()-w.y,2));var k=this.findOne(".bottom-right").x()<w.x?-1:1,C=this.findOne(".bottom-right").y()<w.y?-1:1;n=i*this.cos*k,r=i*this.sin*C,this.findOne(".bottom-right").x(w.x+n),this.findOne(".bottom-right").y(w.y+r)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));var f=this.centeredScaling()||t.altKey;if(f){var x=this.findOne(".top-left"),E=this.findOne(".bottom-right"),M=x.x(),j=x.y(),P=this.getWidth()-E.x(),N=this.getHeight()-E.y();E.move({x:-M,y:-j}),x.move({x:P,y:N})}var T=this.findOne(".top-left").getAbsolutePosition();n=T.x,r=T.y;var R=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),z=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:n,y:r,width:R,height:z,rotation:aa.Konva.getAngle(this.rotation())},t)}}_handleMouseUp(t){this._removeEvents(t)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(t){var n;if(this._transforming){this._transforming=!1,typeof window<"u"&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));var r=this.getNode();Ry--,this._fire("transformend",{evt:t,target:r}),(n=this.getLayer())===null||n===void 0||n.batchDraw(),r&&this._nodes.forEach(i=>{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<H;s++)ne=ne.next=new GC,s===Y&&(ce=ne);for(ne.next=K,b=h=0,o=0;o<i;o++){for(x=E=M=j=m=g=v=w=0,k=Y*(P=n[h]),C=Y*(N=n[h+1]),_=Y*(T=n[h+2]),f=Y*(R=n[h+3]),m+=le*P,g+=le*N,v+=le*T,w+=le*R,ne=K,s=0;s<Y;s++)ne.r=P,ne.g=N,ne.b=T,ne.a=R,ne=ne.next;for(s=1;s<Y;s++)c=h+((J<s?J:s)<<2),m+=(ne.r=P=n[c])*(z=Y-s),g+=(ne.g=N=n[c+1])*z,v+=(ne.b=T=n[c+2])*z,w+=(ne.a=R=n[c+3])*z,x+=P,E+=N,M+=T,j+=R,ne=ne.next;for(oe=K,Q=ce,a=0;a<r;a++)n[h+3]=R=w*$>>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)<J?c:J)<<2,x+=oe.r=n[c],E+=oe.g=n[c+1],M+=oe.b=n[c+2],j+=oe.a=n[c+3],m+=x,g+=E,v+=M,w+=j,oe=oe.next,k+=P=Q.r,C+=N=Q.g,_+=T=Q.b,f+=R=Q.a,x-=P,E-=N,M-=T,j-=R,Q=Q.next,h+=4;b+=r}for(a=0;a<r;a++){for(E=M=j=x=g=v=w=m=0,h=a<<2,k=Y*(P=n[h]),C=Y*(N=n[h+1]),_=Y*(T=n[h+2]),f=Y*(R=n[h+3]),m+=le*P,g+=le*N,v+=le*T,w+=le*R,ne=K,s=0;s<Y;s++)ne.r=P,ne.g=N,ne.b=T,ne.a=R,ne=ne.next;for(d=r,s=1;s<=t;s++)h=d+a<<2,m+=(ne.r=P=n[h])*(z=Y-s),g+=(ne.g=N=n[h+1])*z,v+=(ne.b=T=n[h+2])*z,w+=(ne.a=R=n[h+3])*z,x+=P,E+=N,M+=T,j+=R,ne=ne.next,s<q&&(d+=r);for(h=a,oe=K,Q=ce,o=0;o<i;o++)c=h<<2,n[c+3]=R=w*$>>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)<q?c:q)*r<<2,m+=x+=oe.r=n[c],g+=E+=oe.g=n[c+1],v+=M+=oe.b=n[c+2],w+=j+=oe.a=n[c+3],oe=oe.next,k+=P=Q.r,C+=N=Q.g,_+=T=Q.b,f+=R=Q.a,x-=P,E-=N,M-=T,j-=R,Q=Q.next,h+=r}}const _U=function(e){var t=Math.round(this.blurRadius());t>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;i<r;i+=4)n[i]+=t,n[i+1]+=t,n[i+2]+=t};Og.Brighten=PU,VC.Factory.addGetterSetter(kU.Node,"brightness",0,(0,OU.getNumberValidator)(),VC.Factory.afterSetFilter);var Pg={};Object.defineProperty(Pg,"__esModule",{value:!0}),Pg.Contrast=void 0;const UC=at,TU=hn,MU=Be,IU=function(e){var t=Math.pow((this.contrast()+100)/100,2),n=e.data,r=n.length,i=150,a=150,o=150,s;for(s=0;s<r;s+=4)i=n[s],a=n[s+1],o=n[s+2],i/=255,i-=.5,i*=t,i+=.5,i*=255,a/=255,a-=.5,a*=t,a+=.5,a*=255,o/=255,o-=.5,o*=t,o+=.5,o*=255,i=i<0?0:i>255?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;m<n;m+=4)a=t[m+0],a<r?r=a:a>i&&(i=a),c=t[m+1],c<o?o=c:c>s&&(s=c),b=t[m+2],b<d?d=b:b>h&&(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;m<n;m+=4)t[m+0]=O4(t[m+0],r,i,k,w),t[m+1]=O4(t[m+1],o,s,f,_),t[m+2]=O4(t[m+2],d,h,M,E)}};Mg.Enhance=DU,XC.Factory.addGetterSetter(jU.Node,"enhance",0,(0,NU.getNumberValidator)(),XC.Factory.afterSetFilter);var Ig={};Object.defineProperty(Ig,"__esModule",{value:!0}),Ig.Grayscale=void 0;const RU=function(e){var t=e.data,n=t.length,r,i;for(r=0;r<n;r+=4)i=.34*t[r]+.5*t[r+1]+.16*t[r+2],t[r]=i,t[r+1]=i,t[r+2]=i};Ig.Grayscale=RU;var Ag={};Object.defineProperty(Ag,"__esModule",{value:!0}),Ag.HSL=void 0;const Jc=at,P4=hn,T4=Be;Jc.Factory.addGetterSetter(P4.Node,"hue",0,(0,T4.getNumberValidator)(),Jc.Factory.afterSetFilter),Jc.Factory.addGetterSetter(P4.Node,"saturation",0,(0,T4.getNumberValidator)(),Jc.Factory.afterSetFilter),Jc.Factory.addGetterSetter(P4.Node,"luminance",0,(0,T4.getNumberValidator)(),Jc.Factory.afterSetFilter);const FU=function(e){var t=e.data,n=t.length,r=1,i=Math.pow(2,this.saturation()),a=Math.abs(this.hue()+360)%360,o=this.luminance()*127,s,c=r*i*Math.cos(a*Math.PI/180),d=r*i*Math.sin(a*Math.PI/180),h=.299*r+.701*c+.167*d,b=.587*r-.587*c+.33*d,m=.114*r-.114*c-.497*d,g=.299*r-.299*c-.328*d,v=.587*r+.413*c+.035*d,w=.114*r-.114*c+.293*d,k=.299*r-.3*c+1.25*d,C=.587*r-.586*c-1.05*d,_=.114*r+.886*c-.2*d,f,x,E,M;for(s=0;s<n;s+=4)f=t[s+0],x=t[s+1],E=t[s+2],M=t[s+3],t[s+0]=h*f+b*x+m*E+o,t[s+1]=g*f+v*x+w*E+o,t[s+2]=k*f+C*x+_*E+o,t[s+3]=M};Ag.HSL=FU;var Lg={};Object.defineProperty(Lg,"__esModule",{value:!0}),Lg.HSV=void 0;const eu=at,M4=hn,I4=Be,zU=function(e){var t=e.data,n=t.length,r=Math.pow(2,this.value()),i=Math.pow(2,this.saturation()),a=Math.abs(this.hue()+360)%360,o,s=r*i*Math.cos(a*Math.PI/180),c=r*i*Math.sin(a*Math.PI/180),d=.299*r+.701*s+.167*c,h=.587*r-.587*s+.33*c,b=.114*r-.114*s-.497*c,m=.299*r-.299*s-.328*c,g=.587*r+.413*s+.035*c,v=.114*r-.114*s+.293*c,w=.299*r-.3*s+1.25*c,k=.587*r-.586*s-1.05*c,C=.114*r+.886*s-.2*c,_,f,x,E;for(o=0;o<n;o+=4)_=t[o+0],f=t[o+1],x=t[o+2],E=t[o+3],t[o+0]=d*_+h*f+b*x,t[o+1]=m*_+g*f+v*x,t[o+2]=w*_+k*f+C*x,t[o+3]=E};Lg.HSV=zU,eu.Factory.addGetterSetter(M4.Node,"hue",0,(0,I4.getNumberValidator)(),eu.Factory.afterSetFilter),eu.Factory.addGetterSetter(M4.Node,"saturation",0,(0,I4.getNumberValidator)(),eu.Factory.afterSetFilter),eu.Factory.addGetterSetter(M4.Node,"value",0,(0,I4.getNumberValidator)(),eu.Factory.afterSetFilter);var jg={};Object.defineProperty(jg,"__esModule",{value:!0}),jg.Invert=void 0;const BU=function(e){var t=e.data,n=t.length,r;for(r=0;r<n;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]};jg.Invert=BU;var Ng={};Object.defineProperty(Ng,"__esModule",{value:!0}),Ng.Kaleidoscope=void 0;const Of=at,YC=hn,KC=Sn,ZC=Be;var HU=function(e,t,n){var r=e.data,i=t.data,a=e.width,o=e.height,s=n.polarCenterX||a/2,c=n.polarCenterY||o/2,d,h,b,m=0,g=0,v=0,w=0,k,C=Math.sqrt(s*s+c*c);h=a-s,b=o-c,k=Math.sqrt(h*h+b*b),C=k>C?k:C;var _=o,f=a,x,E,M=360/f*Math.PI/180,j,P;for(E=0;E<f;E+=1)for(j=Math.sin(E*M),P=Math.cos(E*M),x=0;x<_;x+=1)h=Math.floor(s+C*x/_*P),b=Math.floor(c+C*x/_*j),d=(b*a+h)*4,m=r[d+0],g=r[d+1],v=r[d+2],w=r[d+3],d=(E+x*a)*4,i[d+0]=m,i[d+1]=g,i[d+2]=v,i[d+3]=w},GU=function(e,t,n){var r=e.data,i=t.data,a=e.width,o=e.height,s=n.polarCenterX||a/2,c=n.polarCenterY||o/2,d,h,b,m,g,v=0,w=0,k=0,C=0,_,f=Math.sqrt(s*s+c*c);h=a-s,b=o-c,_=Math.sqrt(h*h+b*b),f=_>f?_:f;var x=o,E=a,M,j,P=0,N,T;for(h=0;h<a;h+=1)for(b=0;b<o;b+=1)m=h-s,g=b-c,M=Math.sqrt(m*m+g*g)*x/f,j=(Math.atan2(g,m)*180/Math.PI+360+P)%360,j=j*E/360,N=Math.floor(j),T=Math.floor(M),d=(T*a+N)*4,v=r[d+0],w=r[d+1],k=r[d+2],C=r[d+3],d=(b*a+h)*4,i[d+0]=v,i[d+1]=w,i[d+2]=k,i[d+3]=C};const VU=function(e){var t=e.width,n=e.height,r,i,a,o,s,c,d,h,b,m,g=Math.round(this.kaleidoscopePower()),v=Math.round(this.kaleidoscopeAngle()),w=Math.floor(t*(v%360)/360);if(!(g<1)){var k=KC.Util.createCanvasElement();k.width=t,k.height=n;var C=k.getContext("2d").getImageData(0,0,t,n);KC.Util.releaseCanvas(k),HU(e,C,{polarCenterX:t/2,polarCenterY:n/2});for(var _=t/Math.pow(2,g);_<=8;)_=_*2,g-=1;_=Math.ceil(_);var f=_,x=0,E=f,M=1;for(w+_>t&&(x=f,E=0,M=-1),i=0;i<n;i+=1)for(r=x;r!==E;r+=M)a=Math.round(r+w)%t,b=(t*i+a)*4,s=C.data[b+0],c=C.data[b+1],d=C.data[b+2],h=C.data[b+3],m=(t*i+r)*4,C.data[m+0]=s,C.data[m+1]=c,C.data[m+2]=d,C.data[m+3]=h;for(i=0;i<n;i+=1)for(f=Math.floor(_),o=0;o<g;o+=1){for(r=0;r<f+1;r+=1)b=(t*i+r)*4,s=C.data[b+0],c=C.data[b+1],d=C.data[b+2],h=C.data[b+3],m=(t*i+f*2-r-1)*4,C.data[m+0]=s,C.data[m+1]=c,C.data[m+2]=d,C.data[m+3]=h;f*=2}GU(C,e,{})}};Ng.Kaleidoscope=VU,Of.Factory.addGetterSetter(YC.Node,"kaleidoscopePower",2,(0,ZC.getNumberValidator)(),Of.Factory.afterSetFilter),Of.Factory.addGetterSetter(YC.Node,"kaleidoscopeAngle",0,(0,ZC.getNumberValidator)(),Of.Factory.afterSetFilter);var Dg={};Object.defineProperty(Dg,"__esModule",{value:!0}),Dg.Mask=void 0;const qC=at,UU=hn,WU=Be;function Pf(e,t,n){var r=(n*e.width+t)*4,i=[];return i.push(e.data[r++],e.data[r++],e.data[r++],e.data[r++]),i}function ch(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2))}function XU(e){for(var t=[0,0,0],n=0;n<e.length;n++)t[0]+=e[n][0],t[1]+=e[n][1],t[2]+=e[n][2];return t[0]/=e.length,t[1]/=e.length,t[2]/=e.length,t}function YU(e,t){var n=Pf(e,0,0),r=Pf(e,e.width-1,0),i=Pf(e,0,e.height-1),a=Pf(e,e.width-1,e.height-1),o=t||10;if(ch(n,r)<o&&ch(r,a)<o&&ch(a,i)<o&&ch(i,n)<o){for(var s=XU([r,n,a,i]),c=[],d=0;d<e.width*e.height;d++){var h=ch(s,[e.data[d*4],e.data[d*4+1],e.data[d*4+2]]);c[d]=h<o?0:255}return c}}function KU(e,t){for(var n=0;n<e.width*e.height;n++)e.data[4*n+3]=t[n]}function ZU(e,t,n){for(var r=[1,1,1,1,0,1,1,1,1],i=Math.round(Math.sqrt(r.length)),a=Math.floor(i/2),o=[],s=0;s<n;s++)for(var c=0;c<t;c++){for(var d=s*t+c,h=0,b=0;b<i;b++)for(var m=0;m<i;m++){var g=s+b-a,v=c+m-a;if(g>=0&&g<n&&v>=0&&v<t){var w=g*t+v,k=r[b*i+m];h+=e[w]*k}}o[d]=h===255*8?255:0}return o}function qU(e,t,n){for(var r=[1,1,1,1,1,1,1,1,1],i=Math.round(Math.sqrt(r.length)),a=Math.floor(i/2),o=[],s=0;s<n;s++)for(var c=0;c<t;c++){for(var d=s*t+c,h=0,b=0;b<i;b++)for(var m=0;m<i;m++){var g=s+b-a,v=c+m-a;if(g>=0&&g<n&&v>=0&&v<t){var w=g*t+v,k=r[b*i+m];h+=e[w]*k}}o[d]=h>=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<n;s++)for(var c=0;c<t;c++){for(var d=s*t+c,h=0,b=0;b<i;b++)for(var m=0;m<i;m++){var g=s+b-a,v=c+m-a;if(g>=0&&g<n&&v>=0&&v<t){var w=g*t+v,k=r[b*i+m];h+=e[w]*k}}o[d]=h}return o}const QU=function(e){var t=this.threshold(),n=YU(e,t);return n&&(n=ZU(n,e.width,e.height),n=qU(n,e.width,e.height),n=$U(n,e.width,e.height),KU(e,n)),e};Dg.Mask=QU,qC.Factory.addGetterSetter(UU.Node,"threshold",0,(0,WU.getNumberValidator)(),qC.Factory.afterSetFilter);var Rg={};Object.defineProperty(Rg,"__esModule",{value:!0}),Rg.Noise=void 0;const $C=at,JU=hn,eW=Be,tW=function(e){var t=this.noise()*255,n=e.data,r=n.length,i=t/2,a;for(a=0;a<r;a+=4)n[a+0]+=i-2*i*Math.random(),n[a+1]+=i-2*i*Math.random(),n[a+2]+=i-2*i*Math.random()};Rg.Noise=tW,$C.Factory.addGetterSetter(JU.Node,"noise",.2,(0,eW.getNumberValidator)(),$C.Factory.afterSetFilter);var Fg={};Object.defineProperty(Fg,"__esModule",{value:!0}),Fg.Pixelate=void 0;const QC=at,nW=Sn,rW=hn,iW=Be,aW=function(e){var t=Math.ceil(this.pixelSize()),n=e.width,r=e.height,i,a,o,s,c,d,h,b=Math.ceil(n/t),m=Math.ceil(r/t),g,v,w,k,C,_,f,x=e.data;if(t<=0){nW.Util.error("pixelSize value can not be <= 0");return}for(C=0;C<b;C+=1)for(_=0;_<m;_+=1){for(s=0,c=0,d=0,h=0,g=C*t,v=g+t,w=_*t,k=w+t,f=0,i=g;i<v;i+=1)if(!(i>=n))for(a=w;a<k;a+=1)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<v;i+=1)if(!(i>=n))for(a=w;a<k;a+=1)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;a<r;a+=1)n[a]=Math.floor(n[a]/i)*i};zg.Posterize=lW,JC.Factory.addGetterSetter(oW.Node,"levels",.5,(0,sW.getNumberValidator)(),JC.Factory.afterSetFilter);var Bg={};Object.defineProperty(Bg,"__esModule",{value:!0}),Bg.RGB=void 0;const Tf=at,A4=hn,cW=Be,uW=function(e){var t=e.data,n=t.length,r=this.red(),i=this.green(),a=this.blue(),o,s;for(o=0;o<n;o+=4)s=(.34*t[o]+.5*t[o+1]+.16*t[o+2])/255,t[o]=s*r,t[o+1]=s*i,t[o+2]=s*a,t[o+3]=t[o+3]};Bg.RGB=uW,Tf.Factory.addGetterSetter(A4.Node,"red",0,function(e){return this._filterUpToDate=!1,e>255?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;s<n;s+=4)c=1-o,t[s]=r*o+t[s]*c,t[s+1]=i*o+t[s+1]*c,t[s+2]=a*o+t[s+2]*c};Hg.RGBA=hW,uh.Factory.addGetterSetter(Mf.Node,"red",0,function(e){return this._filterUpToDate=!1,e>255?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;r<n;r+=4)i=t[r+0],a=t[r+1],o=t[r+2],t[r+0]=Math.min(255,i*.393+a*.769+o*.189),t[r+1]=Math.min(255,i*.349+a*.686+o*.168),t[r+2]=Math.min(255,i*.272+a*.534+o*.131)};Gg.Sepia=fW;var Vg={};Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.Solarize=void 0;const pW=function(e){var t=e.data,n=e.width,r=e.height,i=n*4,a=r;do{var o=(a-1)*i,s=n;do{var c=o+(s-1)*4,d=t[c],h=t[c+1],b=t[c+2];d>127&&(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<r;i+=1)n[i]=n[i]<t?0:255};Ug.Threshold=vW,eS.Factory.addGetterSetter(gW.Node,"threshold",.5,(0,mW.getNumberValidator)(),eS.Factory.afterSetFilter),Object.defineProperty(lg,"__esModule",{value:!0}),lg.Konva=void 0;const tS=NT,yW=fg,bW=pg,wW=gg,xW=mg,CW=vg,nS=Ru,SW=v0,EW=ad,_W=y0,kW=yg,OW=bg,PW=wg,TW=xg,MW=Xl,IW=Cg,AW=Sg,LW=_g,jW=kg,NW=Og,DW=Pg,RW=Tg,FW=Mg,zW=Ig,BW=Ag,HW=Lg,GW=jg,VW=Ng,UW=Dg,WW=Rg,XW=Fg,YW=zg,KW=Bg,ZW=Hg,qW=Gg,$W=Vg,QW=Ug;lg.Konva=tS.Konva.Util._assign(tS.Konva,{Arc:yW.Arc,Arrow:bW.Arrow,Circle:wW.Circle,Ellipse:xW.Ellipse,Image:CW.Image,Label:nS.Label,Tag:nS.Tag,Line:SW.Line,Path:EW.Path,Rect:_W.Rect,RegularPolygon:kW.RegularPolygon,Ring:OW.Ring,Sprite:PW.Sprite,Star:TW.Star,Text:MW.Text,TextPath:IW.TextPath,Transformer:AW.Transformer,Wedge:LW.Wedge,Filters:{Blur:jW.Blur,Brighten:NW.Brighten,Contrast:DW.Contrast,Emboss:RW.Emboss,Enhance:FW.Enhance,Grayscale:zW.Grayscale,HSL:BW.HSL,HSV:HW.HSV,Invert:GW.Invert,Kaleidoscope:VW.Kaleidoscope,Mask:UW.Mask,Noise:WW.Noise,Pixelate:XW.Pixelate,Posterize:YW.Posterize,RGB:KW.RGB,RGBA:ZW.RGBA,Sepia:qW.Sepia,Solarize:$W.Solarize,Threshold:QW.Threshold}});var JW=h8.exports;Object.defineProperty(JW,"__esModule",{value:!0});const eX=lg;h8.exports=eX.Konva;var tX=h8.exports;const yn=uc(tX);function nX(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=rX(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=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);n<t;n++)r[n]=e[n];return r}var be={apply:function(e){for(var t=e.data,n=t.length,r=arguments.length,i=Array(1<r?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];for(var o=0;o<n;o+=4){var s,c=nX(i);try{for(c.s();!(s=c.n()).done;){var d=s.value,h=d([t[o],t[o+1],t[o+2]]),b=Oe(h,3);t[o]=b[0],t[o+1]=b[1],t[o+2]=b[2]}}catch(m){c.e(m)}finally{c.f()}}},brightness:function(e){return function(t){var n=e;return n=1<n?1:n,n=-1>n?-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<r;i+=4)n[i]+=t,n[i+2]-=t}t7.finetuneName="Warmth",at.Factory.addGetterSetter(yn.Image,"warmth",0,f8(),at.Factory.afterSetFilter);function eM(e){for(var t=this.threshold(),n=e.data,r=n.length,i=0;i<r;i+=4)t===0||(n[i]=n[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)&&0<e.length?e.map(function(t){return yn.Filters[t]||DY[t]}):[]};function iS(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 L4(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?iS(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):iS(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var nM=function(){var e,t,n,r,i=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},a=L4({},i.loadableDesignState);Array.isArray(a.finetunes)&&(a.finetunes=tM(a.finetunes)),a.filter&&(a.filter=JT(a.filter));var o=!!i.loadableDesignState||!!(i.useCloudimage&&!((e=i.cloudimage)===null||e===void 0)&&e.loadableQuery);return L4(L4({imgSrc:typeof i.source=="string"?i.source:((t=i.source)===null||t===void 0?void 0:t.src)||"",finetunes:[],finetunesProps:{},filter:null,adjustments:{crop:{ratio:i[de.CROP].ratio,ratioTitleKey:(n=i[de.CROP].ratioTitleKey)!==null&&n!==void 0?n:i[de.CROP].ratio,width:null,height:null,x:0,y:0},isFlippedX:!1,isFlippedY:!1,rotation:0},annotations:{},resize:{},shownImageDimensions:{}},a),{},{pointerCssIcon:Co.DEFAULT,canvasScale:1,zoom:{factor:va,x:null,y:null},isLoadingGlobally:!0,selectionsIds:[],tabId:i.defaultTabId||null,toolId:i.defaultToolId||null,feedback:{},pastDesignStates:[],futureDesignStates:[],isResetted:(r=!o)===null||r===void 0||r,haveNotSavedChanges:!1,latestColors:{},showTabsMenu:!1})},od=function(e,t){var n=nM(t?e:jT);return{imgSrc:e.imgSrc||n.imgSrc,finetunes:e.finetunes||n.finetunes,finetunesProps:e.finetunesProps||n.finetunesProps,filter:e.filter||n.filter,adjustments:e.adjustments||n.adjustments,annotations:e.annotations||n.annotations,resize:e.resize||n.resize}};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 j4(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?aS(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):aS(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var n7="REDO",RY=function(e){if(e.futureDesignStates&&0<e.futureDesignStates.length){var t=od(e),n=LT(e.futureDesignStates),r=n[0],i=n.slice(1),a=[t].concat(an(e.pastDesignStates||[]));return j4(j4(j4({},e),r),{},{selectionsIds:[],pastDesignStates:a,futureDesignStates:i,hasUndo:!0,hasRedo:0<i.length,haveNotSavedChanges:!0})}return e};function oS(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 dh(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?oS(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):oS(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var xm="RESET",FY=function(e,t){var n=od(dh(dh({},t.config),{},{imgSrc:e.imgSrc}),!0);return dh(dh(dh({},e),n),{},{zoom:{factor:va,x:null,y:null},selectionsIds:[],isResetted:!0,pastDesignStates:[],futureDesignStates:[],hasUndo:!1,hasRedo:!1,haveNotSavedChanges:!1})};function sS(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 lS(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?sS(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):sS(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var Xs="SET_FEEDBACK",zY=function(e,t){return lS(lS({},e),{},{isLoadingGlobally:!1,feedback:t.feedback||{}})};function cS(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 uS(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?cS(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):cS(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var r7="SHOW_LOADER",BY=function(e){return uS(uS({},e),{},{isLoadingGlobally:!0})};function Te(e,t){var n=V.forwardRef(e);return n.displayName=e.name,n}var HY=["color","stroke","size"],GY=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.stroke,a=i===void 0?"currentColor":i,o=e.size,s=o===void 0?14:o,c=me(e,HY);return y.createElement("svg",he({ref:t,width:s,height:s,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),y.createElement("path",{d:"M23.54 1.53186C23.54 0.96198 24.002 0.5 24.5719 0.5C25.1417 0.5 25.6037 0.961981 25.6037 1.53186V5.82108C25.6037 6.39096 25.1417 6.85294 24.5719 6.85294C24.002 6.85294 23.54 6.39096 23.54 5.82108V1.53186ZM23.54 43.1985C23.54 42.6287 24.002 42.1667 24.5719 42.1667C25.1417 42.1667 25.6037 42.6287 25.6037 43.1985V47.4877C25.6037 48.0576 25.1417 48.5196 24.5719 48.5196C24.002 48.5196 23.54 48.0576 23.54 47.4877V43.1985ZM47.4876 23.5397C48.0574 23.5397 48.5194 24.0017 48.5194 24.5716C48.5194 25.1415 48.0574 25.6034 47.4876 25.6034H43.1983C42.6285 25.6034 42.1665 25.1415 42.1665 24.5716C42.1665 24.0017 42.6285 23.5397 43.1984 23.5397H47.4876ZM5.8209 23.5397C6.39078 23.5397 6.85276 24.0017 6.85276 24.5716C6.85276 25.1415 6.39078 25.6034 5.82089 25.6034H1.53168C0.961798 25.6034 0.499817 25.1415 0.499817 24.5716C0.499817 24.0017 0.961797 23.5397 1.53168 23.5397H5.8209ZM41.6177 39.8976C42.0207 40.3006 42.0207 40.9539 41.6177 41.3569C41.2147 41.7599 40.5614 41.7599 40.1584 41.3569L37.1255 38.324C36.7225 37.921 36.7225 37.2677 37.1255 36.8647C37.5285 36.4617 38.1818 36.4617 38.5848 36.8647L41.6177 39.8976ZM12.1551 10.4347C12.558 10.8377 12.558 11.491 12.1551 11.894C11.7521 12.297 11.0988 12.297 10.6958 11.894L7.66285 8.86105C7.25989 8.45808 7.25989 7.80474 7.66286 7.40178C8.06582 6.99881 8.71916 6.99881 9.12213 7.40178L12.1551 10.4347ZM9.12179 41.617C8.71882 42.0199 8.06548 42.0199 7.66251 41.617C7.25955 41.214 7.25955 40.5607 7.66251 40.1577L10.6954 37.1248C11.0984 36.7218 11.7518 36.7218 12.1547 37.1248C12.5577 37.5277 12.5577 38.1811 12.1547 38.584L9.12179 41.617ZM38.5862 12.1549C38.1832 12.5579 37.5299 12.5579 37.1269 12.1549C36.724 11.752 36.724 11.0986 37.1269 10.6957L40.1599 7.66274C40.5628 7.25977 41.2162 7.25977 41.6191 7.66274C42.0221 8.06571 42.0221 8.71905 41.6191 9.12201L38.5862 12.1549ZM38.7161 24.5098C38.7161 32.3555 32.3559 38.7157 24.5102 38.7157C16.6645 38.7157 10.3043 32.3555 10.3043 24.5098C10.3043 16.6641 16.6645 10.3039 24.5102 10.3039C32.3559 10.3039 38.7161 16.6641 38.7161 24.5098ZM24.5102 36.652C31.2161 36.652 36.6524 31.2157 36.6524 24.5098C36.6524 17.8039 31.2161 12.3676 24.5102 12.3676C17.8043 12.3676 12.3681 17.8039 12.3681 24.5098C12.3681 31.2157 17.8043 36.652 24.5102 36.652Z",fill:r,stroke:a}))}),VY=function(e,t){return e&&Object.keys(e||{}).every(function(n){return e[n]===0})&&t&&Object.keys(t||{}).length===0},i7=V.createContext({});function rM(){return xD()}function UY(e){var t=e.replace(/^@media( ?)/m,""),n=V.useState(function(){return window.matchMedia(t).matches}),r=Oe(n,2),i=r[0],a=r[1];return V.useEffect(function(){var o=!0,s=window.matchMedia(t),c=function(){o&&a(s.matches)};return c(),s.addEventListener("change",c),function(){o=!1,s.removeEventListener("change",c)}},[t,matchMedia]),i}const Fy={name:"Name",save:"Save",saveAs:"Save as",back:"Back",loading:"Loading...",resetOperations:"Reset/delete all operations",changesLoseWarningHint:"If you press button “reset” your changes will lost. Would you like to continue?",discardChangesWarningHint:"If you close modal, your last change will not be saved.",cancel:"Cancel",apply:"Apply",warning:"Warning",confirm:"Confirm",discardChanges:"Discard changes",undoTitle:"Undo last operation",redoTitle:"Redo last operation",showImageTitle:"Show original image",zoomInTitle:"Zoom in",zoomOutTitle:"Zoom out",toggleZoomMenuTitle:"Toggle zoom menu",adjustTab:"Adjust",finetuneTab:"Finetune",filtersTab:"Filters",watermarkTab:"Watermark",annotateTabLabel:"Annotate",resize:"Resize",resizeTab:"Resize",imageName:"Image name",invalidImageError:"Invalid image provided.",uploadImageError:"Error while uploading the image.",areNotImages:"are not images",isNotImage:"is not image",toBeUploaded:"to be uploaded",cropTool:"Crop",original:"Original",custom:"Custom",square:"Square",landscape:"Landscape",portrait:"Portrait",ellipse:"Ellipse",classicTv:"Classic TV",cinemascope:"Cinemascope",arrowTool:"Arrow",blurTool:"Blur",brightnessTool:"Brightness",contrastTool:"Contrast",ellipseTool:"Ellipse",unFlipX:"Un-Flip X",flipX:"Flip X",unFlipY:"Un-Flip Y",flipY:"Flip Y",hsvTool:"HSV",hue:"Hue",brightness:"Brightness",saturation:"Saturation",value:"Value",imageTool:"Image",importing:"Importing...",addImage:"+ Add image",uploadImage:"Upload image",fromGallery:"From gallery",lineTool:"Line",penTool:"Pen",polygonTool:"Polygon",sides:"Sides",rectangleTool:"Rectangle",cornerRadius:"Corner Radius",resizeWidthTitle:"Width in pixels",resizeHeightTitle:"Height in pixels",toggleRatioLockTitle:"Toggle ratio lock",resetSize:"Reset to original image size",rotateTool:"Rotate",textTool:"Text",textSpacings:"Text spacings",textAlignment:"Text alignment",fontFamily:"Font family",size:"Size",letterSpacing:"Letter Spacing",lineHeight:"Line height",warmthTool:"Warmth",addWatermark:"+ Add watermark",addTextWatermark:"+ Add text watermark",addWatermarkTitle:"Choose the watermark type",uploadWatermark:"Upload watermark",addWatermarkAsText:"Add as text",padding:"Padding",paddings:"Paddings",shadow:"Shadow",horizontal:"Horizontal",vertical:"Vertical",blur:"Blur",opacity:"Opacity",transparency:"Transparency",position:"Position",stroke:"Stroke",saveAsModalTitle:"Save as",extension:"Extension",format:"Format",nameIsRequired:"Name is required.",quality:"Quality",imageDimensionsHoverTitle:"Saved image size (width x height)",cropSizeLowerThanResizedWarning:"Note, the selected crop area is lower than the applied resize which might cause quality decrease",actualSize:"Actual size (100%)",fitSize:"Fit size",addImageTitle:"Select image to add...",mutualizedFailedToLoadImg:"Failed to load image.",tabsMenu:"Menu",download:"Download",width:"Width",height:"Height",plus:"+",cropItemNoEffect:"No preview available for this crop item"};function dS(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 zy(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?dS(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):dS(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var Bp={},a7=zy({},Fy),hS="Error while loading translations from backend.",iM=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:"en";return Object.assign(a7,Bp[t?.toLowerCase()]||{},e)},WY=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:[];return new Promise(function(t,n){var r=new XMLHttpRequest;r.responseType="json",r.onload=function(){if(200<=r.status&&300>r.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=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"en",t=1<arguments.length?arguments[1]:void 0;return new Promise(function(n,r){var i=e.toLowerCase(),a=new XMLHttpRequest;a.responseType="json",a.onload=function(){if(200<=a.status&&300>a.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]})}),0<o.length&&WY(o),iM(t,i),n(a7)}else{var s,c,d;console.error("Status code: ".concat(a.status)),console.error(((s=a.response)===null||s===void 0?void 0:s.msg)||((c=a.response)===null||c===void 0?void 0:c.msg)||((d=a.response)===null||d===void 0?void 0:d.details)||hS),r()}},a.onerror=function(){console.error("Status code ".concat(a.status,", error: ").concat(hS)),r()},a.open("GET","https://i18n.ultrafast.io/api/export?grid=".concat(Py)),a.send()})},YY=function(e){return a7[e]||e||""},KY=function(e,t){return M_[t.type]&&M_[t.type](e,t.payload)||e};function fS(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 pS(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?fS(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):fS(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var N4=!0,aM=function(e){var t=e.children,n=e.config,r=n===void 0?{}:n,i=lK(KY,nM(r),r),a=Oe(i,2),o=a[0],s=a[1];V.useEffect(function(){return N4=!0,function(){N4=!1}},[]);var c=V.useCallback(function(){N4&&s.apply(void 0,arguments)},[s]);V.useEffect(function(){iM(r.translations,r.language)},[r.useBackendTranslations,r.language,r.translations]);var d=rM(),h=V.useMemo(function(){return pS(pS({},o),{},{config:r,theme:d,dispatch:c,t:YY})},[r,o]);return y.createElement(i7.Provider,{value:h},t)};aM.defaultProps={config:{}};var ZY=function(e){var t=e.children,n=e.overridingValue;return y.createElement(i7.Provider,{value:n},t)},$e=function(){return V.useContext(i7)};function gS(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,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?gS(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):gS(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var T0=function(e,t){var n=$e(),r=n.dispatch,i=n.finetunes,a=n.finetunesProps,o=V.useCallback(function(s){r({type:HI,payload:{finetune:e,finetuneProps:s}})},[]);return V.useEffect(function(){i.includes(e)||VY(t,a)||o(mS(mS({},t),a))},[]),V.useMemo(function(){return[a,o]},[a])},qY=function(){var e=$e(),t=e.dispatch,n=e.filter,r=V.useCallback(function(i){t({type:AT,payload:{filter:i}})},[]);return V.useMemo(function(){return[n,r]},[n])},Cm=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"";return"".concat(e).concat(e?"-":"").concat(parseInt(Date.now()*Math.random(),10))},Sm=function(e){var t,n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:300;return function(){var r,i;clearTimeout(t);for(var a=arguments.length,o=Array(a),s=0;s<a;s++)o[s]=arguments[s];var c=o[0],d=o.slice(1);t=setTimeout(e.bind.apply(e,[null,(r=c==null||(i=c.target)===null||i===void 0?void 0:i.value)!==null&&r!==void 0?r:c].concat(an(d))),n)}},By=function(){var e,t,n=document,r=n.body,i=document.documentElement,a=((e=window)===null||e===void 0?void 0:e.pageYOffset)||i.scrollTop||r.scrollTop,o=((t=window)===null||t===void 0?void 0:t.pageXOffset)||i.scrollLeft||r.scrollLeft;return{topOffset:a,leftOffset:o}},oM=function(e){if(!e)return null;var t=e.getBoundingClientRect(),n=document,r=n.body,i=By(),a=i.topOffset,o=i.leftOffset,s=document.documentElement,c=s.clientTop||r.clientTop||0,d=s.clientLeft||r.clientLeft||0,h=t.top+a-c,b=t.left+o-d;return{top:Math.round(h),left:Math.round(b),width:t.width,height:t.height}},Hn=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:0,n=2<arguments.length?arguments[2]:void 0;return Math.min(Math.max(t,+e),n||1e6)},Hp=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=e.parent,r=n.getStage(),i=r.attrs.zoomFactor,a=n.getRelativePointerPosition();return{offsetX:Hn(a.x,0,t.width/(r.scaleX()/i))+n.attrs.xPadding,offsetY:Hn(a.y,0,t.height/(r.scaleY()/i))+n.attrs.yPadding}},vS=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=2<arguments.length?arguments[2]:void 0,r={},i=n.parent.attrs;return r.x=Math.min(e.offsetX,t.startedX)-i.xPadding||0,r.y=Math.min(e.offsetY,t.startedY)-i.yPadding||0,r.width=e.offsetX-t.startedX,r.height=e.offsetY-t.startedY,r.startedX=t.startedX-i.xPadding||0,r.startedY=t.startedY-i.yPadding||0,r},$Y=["width","height","startedX","startedY"];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 bS(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?yS(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):yS(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var QY=I(I(I(I(I(I(I({},de.RECT,yn.Rect),de.ELLIPSE,yn.Ellipse),de.POLYGON,yn.RegularPolygon),de.LINE,yn.Line),de.IMAGE,yn.Image),de.TEXT,yn.Text),de.ARROW,yn.Arrow),sM=[de.LINE,de.ARROW],JY=[].concat(sM,[de.ELLIPSE,de.POLYGON]),wS=function(e){var t,n,r;return new QY[e.name](bS(bS({},e),{},{opacity:(t=e.opacity)!==null&&t!==void 0?t:.7,x:(n=e.x)!==null&&n!==void 0?n:0,y:(r=e.y)!==null&&r!==void 0?r:0,width:Math.abs(e.width)||0,height:Math.abs(e.height)||0},sM.includes(e.name)?{stroke:e.stroke||"#000000"}:{}))},eK=function(e,t,n){var r=e.width,i=e.height,a=e.startedX,o=e.startedY,s=me(e,$Y),c=Math.abs(r),d=Math.abs(i),h=0>r,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<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?xS(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):xS(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var Ra={startedX:void 0,startedY:void 0,isOutOfCanvas:!1},Kr={passive:!0},hh=1,nu=null,fh=null,Nr=null,rK=function(e,t,n,r){var i=function(){return oM(e.content)},a=function(v){fh=wS(tu(tu({},v),{},{name:de.RECT,fill:"",stroke:"#000000",strokeWidth:2,shadowColor:"#ffffff",shadowBlur:1,shadowOpacity:.7})),n.add(fh)},o=function(v){nu=wS(v),n.add(nu),v.name===de.TEXT&&a(v),Nr=v},s=function(v,w){if(Nr){var k=eK(v,Nr.name,w);fh&&fh.setAttrs(k),nu.setAttrs(k),Nr=tu(tu({},Nr),k)}},c=function(v){var w=Hp(n,i());s(vS(w,Ra,n),v.shiftKey)},d=function(){n&&nu&&n.destroyChildren()},h=function(v){var w;if(!(1<((w=v.evt.touches)===null||w===void 0?void 0:w.length))){var k=Hp(n,i());Ra.isOutOfCanvas&&(document.removeEventListener("mousemove",c,Kr),document.removeEventListener("touchmove",c,Kr),Ra.isOutOfCanvas=!1);var C=vS(k,Ra,n);if(nu)s(C,v.evt.shiftKey);else{t.id,t.x,t.y,t.points;var _=me(t,tK);o(tu(tu({},_),C))}e.setAttrs({isDrawing:!0})}},b=function(){Ra.isOutOfCanvas||(document.addEventListener("mousemove",c,Kr),document.addEventListener("touchmove",c,Kr),Ra.isOutOfCanvas=!0)},m=function(){var v,w;if(d(),Nr&&(Nr.width>=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<arguments.length&&arguments[2]!==void 0?arguments[2]:[];return V.useCallback(Sm(e,t),n)},iK=["fonts","onFontChange"],aK=["x","y","width","height","radius","radiusX","radiusY","points","image","text","scaleX","scaleY","rotation"],oK=["shouldSave","neverSave"];function CS(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 mn(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?CS(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):CS(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var Ys=function(){var e,t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},n=!(1<arguments.length&&arguments[1]!==void 0)||arguments[1],r=$e(),i=r.dispatch,a=r.previewGroup,o=r.annotations,s=r.selectionsIds,c=s===void 0?[]:s,d=r.config,h=mn(mn({},d.annotationsCommon),d[((e=o[c[0]])===null||e===void 0?void 0:e.name)||t.name]),b=V.useState(function(){return mn(mn(mn({},h),t),o[c[0]])}),m=Oe(b,2),g=m[0],v=m[1],w=V.useRef(),k=a?.getStage(),C=V.useCallback(function(E){E.fonts,E.onFontChange;var M=me(E,iK);i({type:Ql,payload:M}),M.id&&t.name!==de.PEN&&Sm(function(){i({type:fd,payload:{annotationId:M.id}})},30)()},[]),_=lM(function(E){v(function(M){return mn(mn({},M),{},{shouldSave:!1,neverSave:!1},typeof E=="function"?E(M):E)})},15),f=V.useCallback(function(E,M){if(E.name===M){E.x,E.y,E.width,E.height,E.radius,E.radiusX,E.radiusY,E.points,E.image,E.text,E.scaleX,E.scaleY,E.rotation;var j=me(E,aK);return mn(mn(mn({},h),t),j)}return mn(mn({},h),t)},[]),x=V.useCallback(function(E){v(function(M){var j=f(M,E.name||t.name);return mn(mn(mn({},j),E),{},{id:E.id||Cm(E.name||M.name),shouldSave:!0,neverSave:!1})})},[]);return V.useEffect(function(){var E=g.shouldSave,M=g.neverSave,j=me(g,oK),P=c.length===1&&o[c[0]];!M&&(E||P)&&C(mn(mn({},j),{},{id:E?j.id:P.id}))},[g]),V.useEffect(function(){setTimeout(function(){c.length===1?(w.current=g,v(mn(mn({},o[c[0]]),{},{neverSave:!0}))):w.current&&(v(mn(mn({},w.current),{},{neverSave:!0})),w.current=null)})},[c,o]),V.useEffect(function(){var E=null;if(k&&n){var M=f(g,t.name);E=rK(k,mn(mn({},M),{},{name:t.name}),a,x)}return function(){E&&E()}},[k,g,a]),V.useMemo(function(){return[g,_,x]},[g,_,x])},sK=["isDesignState"];function SS(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 If(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?SS(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):SS(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var ES,_S=function(e,t){ES=setTimeout(function(){clearTimeout(ES),typeof e=="function"&&t&&e(t)})},lK=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{},r=If(If({},t),{},{pastDesignStates:[],futureDesignStates:[],hasRedo:!1,hasUndo:!1});return V.useReducer(function(i,a){var o=e(i,a)||r;if([O7,n7,xm].includes(a.type))return _S(n.onModify,o),o;if(o.isDesignState){var s=od(i);o.isDesignState;var c=me(o,sK),d=If(If({},c),{},{pastDesignStates:[s].concat(an(i.pastDesignStates)),hasUndo:!0,hasRedo:!1,futureDesignStates:[],isResetted:!1,haveNotSavedChanges:!0});return _S(n.onModify,d),d}return o},r)},cK=function(){var e=$e(),t=e.tabId,n=e.dispatch,r=V.useMemo(function(){return t!==qt.ANNOTATE&&t!==qt.WATERMARK},[t]),i=V.useCallback(function(h){n({type:Ql,payload:h})},[]),a=V.useCallback(function(h){i({id:h.target.id(),x:h.target.x(),y:h.target.y()})},[]),o=V.useCallback(function(h){var b={id:h.target.id(),rotation:h.target.rotation(),x:h.target.x(),y:h.target.y()};return h.target.name()===de.TEXT?(b.width=h.target.width()*h.target.scaleX(),b.height=h.target.height()*h.target.scaleY(),b.scaleX=1,b.scaleY=1):(b.scaleX=h.target.scaleX(),b.scaleY=h.target.scaleY()),b},[]),s=V.useCallback(function(h){i(o(h))},[]),c=V.useCallback(function(h){h.target.name()===de.TEXT&&h.target.setAttrs(o(h))}),d=V.useCallback(function(h){if(!(h.target.id()===Hs||h.target.getStage().attrs.isDrawing)){var b=h.evt.ctrlKey||h.evt.shiftKey||h.evt.metaKey;n({type:fd,payload:{annotationId:h.target.id(),multiple:b}}),n({type:rm,payload:{toolId:h.target.name(),keepSelections:b}})}},[]);return V.useMemo(function(){return r?{}:{onTransform:c,onTransformEnd:s,onDragEnd:a,onClick:d,onTap:d}},[r])},o7=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:function(){},t=V.useRef(e),n=V.useRef(),r=V.useCallback(function(d){d.forEach(function(h){if(h.contentRect){var b=h.contentRect,m=b.width,g=b.height;t.current({entry:h,width:m,height:g})}})},[]),i=V.useCallback(function(d){t.current=d},[]),a=V.useCallback(function(){n.current||(n.current=new ResizeObserver(r))},[]),o=V.useCallback(function(d,h){d&&(!n.current&&a(),n.current.observe(d),h&&(t.current=h))},[]),s=V.useCallback(function(d,h){n.current&&d&&(n.current.unobserve(d),h&&(t.current=h))},[]),c=V.useCallback(function(){n.current&&n.current.disconnect()},[]);return V.useEffect(function(){return a(),c},[]),V.useMemo(function(){return[o,s,i]},[])},ba=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:438;return window.matchMedia("(max-width: ".concat(e,"px)")).matches},Ga=function(e,t,n,r,i){return(e-t)*(i-r)/(n-t)+r};function kS(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 D4(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?kS(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):kS(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var Wg=function(e,t,n){var r,i;return D4(D4(D4({},e.x||e.x===0?{x:Math.round(Ga(e.x,0,t.width,0,n.width))}:{}),e.y||e.y===0?{y:Math.round(Ga(e.y,0,t.height,0,n.height))}:{}),{},{width:Math.round(Ga((r=e.width)!==null&&r!==void 0?r:t.width,0,t.width,0,n.width)),height:Math.round(Ga((i=e.height)!==null&&i!==void 0?i:t.height,0,t.height,0,n.height))})},Gs=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:0,r=Math.abs(n),i=Math.round(n),a=90<r,o=a?r-90:r,s=a?t:e,c=a?e:t,d=o*Math.PI/180,h=Math.abs(Math.sin(d)),b=Math.abs(Math.cos(d));return{width:Math.round(s*b)+Math.round(c*h),height:Math.round(s*h)+Math.round(c*b),offsetTop:0<=i&&90>=i?0:function(){return 0>i&&-90<i||90<i?s*h:c*b+s*h}(),offsetLeft:0>=i&&-90<=i?0:function(){return 90<i?s*b+c*h:c*h}()}},uK=function(e){if(e instanceof HTMLImageElement){var t=document.createElement("canvas"),n=t.getContext("2d");return t.width=e.width,t.height=e.height,n.drawImage(e,0,0),t.toDataURL()}return""},cM=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"",t=1<arguments.length?arguments[1]:void 0,n=t,r=e;if(!n&&JH.some(function(o){return e.lastIndexOf(".".concat(o))===e.length-".".concat(o).length})){var i,a=(i=e.slice(e.lastIndexOf(".")+1))===null||i===void 0?void 0:i.toLowerCase();n=a&&td.includes(a)?a:Qx,r=e.slice(0,e.lastIndexOf("."))}return n=n||Qx,{fullName:"".concat(r,".").concat(n),name:r,extension:n}},co=function(e,t){return e<<t|e>>>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;i<n.length;i++)t=n.charCodeAt(i),128>t?r+=String.fromCharCode(t):127<t&&2048>t?(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<C-3;n+=4)r=h.charCodeAt(n)<<24|h.charCodeAt(n+1)<<16|h.charCodeAt(n+2)<<8|h.charCodeAt(n+3),_.push(r);switch(C%4){case 0:n=2147483648;break;case 1:n=8388608|h.charCodeAt(C-1)<<24;break;case 2:n=32768|(h.charCodeAt(C-2)<<24|h.charCodeAt(C-1)<<16);break;case 3:n=128|(h.charCodeAt(C-3)<<24|h.charCodeAt(C-2)<<16|h.charCodeAt(C-1)<<8);break}for(_.push(n);_.length%16!=14;)_.push(0);for(_.push(C>>>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];-1<s?.indexOf(k)||c?b.push(g):m.push(g)}),0<m.length&&(h=m.join("&")),d=gK(b.join("&"),n,i,a),[d,h].filter(function(g){return g}).join("&")},vK=function(){var e,t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"",n={hex:"000000",opacity:1};if(!t)return n;if(t.startsWith("#"))return{hex:t.replace("#",""),opacity:1};var r=t.split(","),i=Oe(r,4),a=i[0],o=i[1],s=i[2],c=i[3];return a&&o&&s?(a=parseFloat(a.replace(/rgba?\(/,"").trim()).toString(16),o=parseFloat(o.trim()).toString(16),s=parseFloat(s.trim()).toString(16),c=c?parseFloat((e=c.trim())!==null&&e!==void 0?e:1):void 0,a.length===1&&(a="0".concat(a)),o.length===1&&(o="0".concat(o)),s.length===1&&(s="0".concat(s)),{hex:"".concat(a).concat(o).concat(s),opacity:c}):n},bn=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:5;return e&&+parseFloat(e).toFixed(t)},yK=["width","height","x","y","opacity","scaleX","scaleY"];function OS(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 PS(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?OS(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):OS(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var bK=function(e,t,n,r){if(e.noEffect)return e.ratio.includes("=")?e.ratio:"gravity=".concat(e.ratio);var i=(r||{}).lockCropAreaAt,a=Wg(e,t,n),o=a.x,s=a.y,c=a.width,d=a.height,h=e.ratio===hc?"&radius=".concat(Math.max(c,d),"&force_format=png"):"";if(i){var b=i.split("-"),m=Oe(b,2),g=m[0],v=m[1],w="".concat(eC[g]).concat(eC[v]);return"gravity=".concat(w,"&aspect_ratio=").concat(bn(typeof e.ratio=="string"?c/d:e.ratio,2)).concat(h)}return"tl_px=".concat(o,",").concat(s,"&br_px=").concat(o+c,",").concat(s+d).concat(h)},wK=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t=e.width,n=e.height;return"w=".concat(t,"&h=").concat(n)},xK=function(e){return"r=".concat(-e)},CK=function(e,t){return"flip=".concat(e?"x":"").concat(t?"y":"")},SK=function(e){var t,n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{},i=n.width,a=n.height,o=n.x,s=n.y,c=n.opacity,d=n.scaleX,h=d===void 0?1:d,b=n.scaleY,m=b===void 0?1:b,g=me(n,yK),v=e.width/e.height,w=e.width*e.scaledBy,k=e.height*e.scaledBy,C=o*e.scaledBy,_=s*e.scaledBy,f="wat=1&wat_gravity=absolute&wat_pos=".concat(Math.floor(100*((C-(r.x||0))/w),2),"p,").concat(Math.floor(100*((_-(r.y||0))/k),2),"p");if(n.name===de.TEXT){var x,E=vK(g.fill),M=E.hex,j=E.opacity;return"".concat(f,"&wat_text=").concat(g.text.replaceAll(`
|
|
`,""),"&wat_font=").concat(g.fontFamily,"&wat_color=").concat(M,"&wat_opacity=").concat((x=j??c)!==null&&x!==void 0?x:1,"&wat_fontsize=").concat(g.fontSize,"max")}var P=((t=g.image)===null||t===void 0?void 0:t.src)||g.image,N=!P.startsWith("blob:")&&P,T=bn(100*(i/a>v?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<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=[];return e.forEach(function(r){var i=(r.finetuneName||r.name)&&Gp[r.finetuneName||r.name];if(i){var a=bn(Ga(t[i.internal.propName],i.internal.min,i.internal.max,i.cloudimage.min,i.cloudimage.max),2);n.push("".concat(i.cloudimage.name,"=").concat(a))}}),n.join("&")},_K=function(e,t,n,r,i){var a=e.token,o=e.domain,s=e.dontPrefixUrl,c=e.version,d=e.imageSealing,h=e.secureProtocol,b=t.imgSrc,m=t.adjustments,g=m.crop,v=m.rotation,w=m.isFlippedX,k=m.isFlippedY,C=t.resize,_=C===void 0?{}:C,f=t.finetunes,x=f===void 0?{}:f,E=t.finetunesProps,M=t.annotations,j=M===void 0?{}:M,P=s?"":"http".concat(h?"s":"","://").concat(a,".").concat(o.replace(/^(https?:\/\/)?(www\.)?|^\.|\/$/g,""),"/").concat(c?"".concat(c,"/"):""),N=[];g.width&&g.height&&(g.x||g.x===0)&&(g.y||g.y===0)&&N.push(bK(g,n,r,i)),(_.width||_.height)&&N.push(wK(PS(PS({},r),_))),v&&N.push(xK(v)),(w||k)&&N.push(CK(w,k)),0<x.length&&E&&N.push(EK(x,E)),j[Hs]&&N.push(SK(n,j[Hs],g)),N.push("ci_url_encoded=1");var T=N.join("&");d.enable&&(T=mK(T,d,b)),T=T.replaceAll(" ","+");var R=!s||b.indexOf("?")===-1?"?":"&";return"".concat(P).concat(s?b:encodeURIComponent(b)).concat(T?"".concat(R).concat(T.replace(/&$/,"")):"")},kK=["filter"];function TS(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 Al(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?TS(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):TS(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var uM=function(){var e=$e(),t=e.dispatch,n=e.designLayer,r=e.shownImageDimensions,i=e.originalImage,a=e.resize,o=a===void 0?{}:a,s=e.adjustments,c=s===void 0?{}:s,d=c.crop,h=d===void 0?{}:d,b=c.rotation,m=b===void 0?0:b,g=c.isFlippedX,v=c.isFlippedY,w=e.config,k=w.savingPixelRatio,C=w.previewPixelRatio,_=w.forceToPngInEllipticalCrop,f=w.defaultSavedImageType,x=w.useCloudimage,E=w.cloudimage,M=w[de.CROP];return x?function(){var j,P,N=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},T=od(e);T.filter;var R=me(T,kK),z=_K(E,R,r,i,M),H=Wg({x:h.x,y:h.y,width:h.width,height:h.height},r,i),J={cloudimageUrl:z,width:(N==null||(j=N.size)===null||j===void 0?void 0:j.width)||H.width,height:(N==null||(P=N.size)===null||P===void 0?void 0:P.height)||H.height};return{imageData:J,designState:R}}:function(){var j=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},P=1<arguments.length&&arguments[1]!==void 0&&arguments[1],N=2<arguments.length&&arguments[2]!==void 0&&arguments[2],T=Al({size:o},j);yn.pixelRatio=P||k;var R=n.attrs,z=R.clipWidth,H=R.clipHeight,J=R.clipX,q=R.clipY;n.setAttr("isSaving",!0);var Y=n.getStage().clone({width:i.width,height:i.height,scaleX:g?-1:1,scaleY:v?-1:1}),le=Oe(Y.children,1),K=le[0];Y.children[1].destroy();var ce=Y.findOne("#".concat(OT));ce.cache();var ne={x:Y.width()/r.width,y:Y.height()/r.height};K.setAttrs({rotation:0,offsetX:0,offsetY:0,x:0,y:0,scaleX:ne.x,scaleY:ne.y});var oe=Al(Al({},(!T.name||!T.extension)&&cM(i.name,_&&h.ratio===hc?"png":td.includes(f?.toLowerCase())&&f)),T),Q=oe.name,$=oe.extension,re=oe.quality,we=re===void 0?92:re,W=oe.size,D=W===void 0?{}:W,B=["jpeg","jpg","webp"].includes($),ee=Wg(h.noEffect?{x:0,y:0}:{x:h.x||J,y:h.y||q,width:h.width||z,height:h.height||H},r,Y.attrs),ue=Gs(ee.width,ee.height,m);if(Y.setAttrs({offsetX:ee.width/2+ee.x,offsetY:ee.height/2+ee.y,width:ue.width,height:ue.height,x:ue.width/2,y:ue.height/2,rotation:m}),D.width){var ve=(g?-1:1)*(D.width/Y.width());Y.setAttrs({scaleX:ve,width:D.width,x:Y.x()*Math.abs(ve)})}if(D.height){var se=(v?-1:1)*(D.height/Y.height());Y.setAttrs({scaleY:se,height:D.height,y:Y.y()*Math.abs(se)})}var Ie=Al({mimeType:"image/".concat($==="jpg"?"jpeg":$)},B?{quality:we}:{}),Ae=Y.toCanvas(Ie),Se=Y.toDataURL(Ie),Ne=Al(Al({},od(e)),{},{shownImageDimensions:{width:e.shownImageDimensions.width,height:e.shownImageDimensions.height,scaledBy:e.shownImageDimensions.scaledBy}});Ne.filter&&(Ne.filter=Ne.filter.filterName||Ne.filter.name),Ne.finetunes=Ne.finetunes.map(function(He){return He.finetuneName||He.name}),Object.keys(Ne.annotations).forEach(function(He){var We,_t=Ne.annotations[He],gt=_t.name===de.IMAGE&&((We=_t.image)===null||We===void 0?void 0:We.src);gt&>.startsWith("blob:")?Ne.annotations[He].image=uK(_t.image):_t.image instanceof HTMLImageElement&&(Ne.annotations[He].image=gt)});var Me=Al({fullName:"".concat(Q,".").concat($),name:Q,extension:$,mimeType:"image/".concat($),imageCanvas:Ae,imageBase64:Se,width:D.width||ee.width,height:D.height||ee.height},B?{quality:we}:{});n.setAttr("isSaving",!1),t({type:KI}),ce.clearCache(),Y.destroy(),yn.pixelRatio=C;var Ye=function(){t({type:bm})};return N||Ye(),{imageData:Me,designState:Ne,hideLoadingSpinner:Ye}}},Eo={Left:"left",Right:"right",Top:"top",Bottom:"bottom"},Bh={Primary:"primary",Secondary:"secondary",White:"white"},Fn={Primary:"primary",Secondary:"secondary",Basic:"basic",LinkPrimary:"link-primary",LinkSecondary:"link-secondary",LinkBasicPrimary:"link-basic-primary",LinkBasicSecondary:"link-basic-secondary",ErrorPrimary:"error-primary",ErrorSecondary:"error-secondary",ErrorBasic:"error-basic",WarningPrimary:"warning-primary",WarningSecondary:"warning-secondary",WarningBasic:"warning-basic"},Fu={Primary:"primary",Secondary:"secondary",Basic:"basic"},it={Xs:"xs",Sm:"sm",Md:"md",Lg:"lg"},ot={Sm:"sm",Md:"md"},dM={Default:"default",Localization:"localization"},OK=function(e){var t=e.theme.palette;return X(["color:"," !important;"],t[L.Error])},PK=I(I({},ot.Sm,`
|
|
padding: 8px 12px;
|
|
height: 32px;
|
|
`),ot.Md,`
|
|
padding: 11px 16px;
|
|
height: 40px;
|
|
`);I(I({},ot.Sm,`
|
|
padding: 4px 6px 4px 12px;
|
|
max-height: 32px;
|
|
`),ot.Md,`
|
|
padding: 0px 4px 0px 16px;
|
|
max-height: 40px;
|
|
`);var hM=I(I({},ot.Sm,function(e){var t=e.theme.typography.font;return X(["",""],t[_e.InputMd])}),ot.Md,function(e){var t=e.theme.typography.font;return X(["",""],t[_e.InputLg])}),TK=I(I({},ot.Sm,function(e){var t=e.theme.typography.font;return X(t[_e.LabelSmall])}),ot.Md,function(e){var t=e.theme.typography.font;return X(t[_e.LabelMedium])}),MK=function(e){var t=e.theme.palette;return X(["background:"," !important;border:1px solid "," !important;"],t[L.BackgroundSecondary],t[L.Error])},s7="Label",IK=Z.label.attrs({className:xe(s7,"root")}).withConfig({componentId:"sc-16k2ql4-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.htmlFor,c=e.theme;return X(["display:flex;align-items:center;color:",";font-style:normal;font-weight:normal;"," "," cursor:",";",";"],c.palette[L.TextSecondary],o&&X(["color:",";","{color:",";}"],c.palette[L.ButtonDisabledText],fM,c.palette[L.IconsMuted]),TK[n],s&&"pointer",i&&OK)}),AK=Z.span.attrs({className:xe(s7,"text")}).withConfig({componentId:"sc-16k2ql4-1"})(["white-space:nowrap;text-overflow:ellipsis;overflow:hidden;"]),fM=Z.span.attrs({className:xe(s7,"Icon")}).withConfig({componentId:"sc-16k2ql4-2"})(function(e){var t=e.theme.palette,n=e.$end,r=n===void 0?!1:n;return X(["display:flex;",";color:",";"],r?"margin-left: 4px":"margin-right: 4px",t[L.IconsSecondary])}),Vp=Dt({Label:IK,Icon:fM,Text:AK}),LK=["children","iconStart","iconEnd","error","disabled","size","type"],$t=ut(function(e,t){var n=e.children,r=e.iconStart,i=e.iconEnd,a=e.error,o=e.disabled,s=e.size,c=e.type,d=me(e,LK),h=V.useRef(null),b=V.useState(!1),m=Oe(b,2),g=m[0],v=m[1],w=function(_,f){return y.createElement(Vp.Icon,{$end:f},typeof _=="function"?_({size:s==="md"?14:12}):_)},k=function(){if(typeof n=="string"&&g)return n},C=function(){if(h.current!==null&&h.current){var _,f;v((h==null||(_=h.current)===null||_===void 0?void 0:_.offsetWidth)<(h==null||(f=h.current)===null||f===void 0?void 0:f.scrollWidth))}};return y.createElement(Vp.Label,he({ref:t,error:a,disabled:o,size:s,type:c},d),r&&w(r,!1),y.createElement(Vp.Text,{title:k(),onMouseOver:C,ref:h},n),i&&w(i,!0))});$t.defaultProps={type:dM.Default,error:!1};var l7={type:F.oneOf(lt(dM)),iconStart:F.oneOfType([F.node,F.func]),iconEnd:F.oneOfType([F.node,F.func]),error:F.bool,size:F.oneOf(lt(ot)),htmlFor:F.string};$t.propTypes=l7;var jK=Z.div.withConfig({componentId:"sc-dwg14p-0"})(["width:fit-content;margin:0 auto;max-width:99.5%;max-height:170px;[data-phone='true'] &{padding:0;margin-top:8px;max-height:initial;}"]),NK=Z.div.withConfig({componentId:"sc-dwg14p-1"})(["padding:8px 16px 16px 16px;display:flex;gap:12px;align-items:center;overflow:hidden;",""],function(e){var t=e.isPhoneScreen;return t&&`
|
|
justify-content: space-between;
|
|
padding: 12px;
|
|
gap: 8px;
|
|
`}),DK=Z.div.withConfig({componentId:"sc-dwg14p-2"})(function(e){var t=e.theme,n=e.isPhoneScreen;return`
|
|
display: flex;
|
|
gap: 6px;
|
|
border-radius: 2px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 8px 12px;
|
|
|
|
svg {
|
|
color: `.concat(t.palette[L.IconsPrimary],`;
|
|
}
|
|
|
|
&,
|
|
* {
|
|
cursor: pointer;
|
|
}
|
|
|
|
&:hover {
|
|
`).concat(!n&&"background: ".concat(t.palette["bg-primary-active"],";"),`
|
|
}
|
|
|
|
&[aria-selected='true'] {
|
|
`).concat(!n&&"background: ".concat(t.palette["bg-primary-active"],";"),`
|
|
border-radius: 4px;
|
|
|
|
* {
|
|
color: `).concat(t.palette["accent-primary-active"],`;
|
|
}
|
|
}
|
|
|
|
`).concat(n&&X(["display:flex;flex-direction:column;min-width:52px;min-height:52px;padding:8px;gap:4px;"]),`
|
|
`)}),c7=Z($t).withConfig({componentId:"sc-dwg14p-3"})(function(e){var t=e.theme,n=e.isPhoneScreen;return X(["color:",";",";"],t.palette[L.TextPrimary],n&&t.typography.font[_e.LabelExtraSmallUp])}),RK=Z.div.withConfig({componentId:"sc-dwg14p-4"})(["position:relative;width:100%;transition:max-height 100ms ease-in-out;display:flex;justify-content:center;align-items:center;gap:24px;",";",""],function(e){return`
|
|
max-height: `.concat(e.hasChildren?"56px":0,`;
|
|
margin: `).concat(e.hasChildren?"0 auto 8px":0,`;
|
|
`)},function(e){var t=e.isPhoneScreen;return t&&`
|
|
max-height: unset;
|
|
flex-direction: column;
|
|
padding: 0 12px 8px 12px;
|
|
gap: 8px;
|
|
margin: 0;
|
|
`}),pM=function(e){var t=e.id,n=e.label,r=e.onClick,i=e.Icon,a=e.isSelected,o=e.children,s=e.className,c=ba(320);return y.createElement(DK,{className:s,onClick:function(d){r(t,d)},"aria-selected":a,isPhoneScreen:c},y.createElement(i,{size:c?20:16}),n&&y.createElement(c7,{isPhoneScreen:c},n),o)};pM.defaultProps={isSelected:!1,id:void 0,children:null,label:""};const Qn=V.memo(pM);var gM=function(e){var t=e.selectTool,n=e.isSelected,r=e.t;return y.createElement(Qn,{className:"FIE_brightness-tool-button",id:de.BRIGHTNESS,label:r("brightnessTool"),Icon:GY,onClick:t,isSelected:n})};gM.defaultProps={isSelected:!1};function FK(e){var t=e.controlled,n=e.default,r=V.useRef(t!==void 0),i=r.current,a=V.useState(n),o=Oe(a,2),s=o[0],c=o[1],d=i?t:s,h=V.useCallback(function(b){i||c(b)},[]);return[d,h]}var zK=typeof window<"u"?V.useLayoutEffect:V.useEffect;function ru(e){var t=V.useRef(e);return zK(function(){t.current=e}),V.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var sd={Auto:"auto",On:"on",Off:"off"},vd="Slider",BK=Z.span.attrs({className:xe(vd,"root")}).withConfig({componentId:"sc-jjink6-0"})(function(e){var t=e.theme,n=e.disabled,r=n===void 0?!1:n;return X(["display:inline-block;border-radius:2px;position:relative;cursor:pointer;touch-action:none;color:",";height:4px;width:100%;padding:12px 0;"],r?t.palette[L.AccentPrimaryDisabled]:t.palette[L.BorderActiveBottom])}),HK=Z.span.attrs({className:xe(vd,"rail")}).withConfig({componentId:"sc-jjink6-1"})(["display:block;position:absolute;border-radius:inherit;background-color:currentColor;opacity:0.38;width:100%;height:inherit;top:50%;transform:translateY(-50%);"]),GK=Z.span.attrs({className:xe(vd,"Track")}).withConfig({componentId:"sc-jjink6-2"})(["display:block;position:absolute;border-radius:inherit;border:1px solid currentColor;background-color:currentColor;height:inherit;top:50%;transform:translateY(-50%);"]),VK=Z.span.attrs({className:xe(vd,"thumb")}).withConfig({componentId:"sc-jjink6-3"})(["position:absolute;width:15px;height:15px;box-sizing:border-box;border-radius:50%;outline:0;background-color:currentColor;display:flex;align-items:center;justify-content:center;top:50%;transform:translate(-50%,-50%);& > 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;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MS(Object(n),!0).forEach(function(r){I(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var YK=2,IS="data-index",Xg=ut(function(e,t){var n=e.defaultValue,r=e.disabled,i=r===void 0?!1:r,a=e.disableSwap,o=a===void 0?!1:a,s=e.hideTrack,c=s===void 0?!1:s,d=e.hideAnnotation,h=d===void 0?!1:d,b=e.value,m=e.min,g=m===void 0?0:m,v=e.max,w=v===void 0?100:v,k=e.onChange,C=e.onMouseDown,_=e.onMouseUp,f=e.step,x=f===void 0?1:f,E=e.labelTooltip,M=E===void 0?sd.Off:E,j=e.annotation,P=j===void 0?"":j,N=e.components,T=N===void 0?{}:N,R=e.componentsProps,z=R===void 0?{}:R,H=me(e,XK),J=V.useState(-1),q=Oe(J,2),Y=q[0],le=q[1],K=V.useState(-1),ce=Oe(K,2),ne=ce[0],oe=ce[1],Q=V.useState(!1),$=Oe(Q,2),re=$[0],we=$[1],W=V.useRef(0),D=V.useRef(0),B=V.useRef(),ee=V.useRef(null),ue=r8(t,ee),ve=FK({controlled:b,default:n??g}),se=Oe(ve,2),Ie=se[0],Ae=se[1],Se="horizontal",Ne=Array.isArray(Ie),Me=Ne?Ie.slice().sort(VP):[Ie],Ye=function(Ke){var et=Ke.finger,It=Ke.move,Qt=It===void 0?!1:It,In=Ke.values,_i=ee.current;if(_i){var li=_i.getBoundingClientRect(),gc=li.width,mc=li.height,ci=li.bottom,yd=li.left,Za;Se.indexOf("vertical")===0?Za=(ci-et.y)/mc:Za=(et.x-yd)/gc,Se.includes("-reverse")&&(Za=1-Za);var Gn;Gn=ID(Za,g,w),x&&(Gn=LD(Gn,x,g)),Gn=N5(Gn,g,w);var Gr=0;if(Ne){Qt?Gr=D.current:Gr=jD(In,Gn),o&&(Gn=N5(Gn,In[Gr-1]||-1/0,In[Gr+1]||1/0));var bd=Gn;Gn=Hw({values:In,newValue:Gn,index:Gr}),!(o&&Qt)&&Array.isArray(Gn)&&(Gr=Gn.indexOf(bd),D.current=Gr)}return{newValue:Gn,activeIndex:Gr}}return null},He=function(Ke,et,It){k&&k(Ke,et,It)},We=function(Ke){var et=Number(Ke.currentTarget.getAttribute(IS)),It=Ke.target.valueAsNumber;if(Ne){o&&(It=N5(It,Me[et-1]||-1/0,Me[et+1]||1/0));var Qt=It;It=Hw({values:Me,newValue:It,index:et});var In=et;o||(In=It.indexOf(Qt)),q1({sliderRef:ee,activeIndex:In})}Ae(It),He(Ke,It,et),_&&_(Ke)},_t=ru(function(Ke){var et=Z1(Ke,B);if(et){if(W.current+=1,Ke.type==="mousemove"&&Ke.buttons===0){gt(Ke);return}var It=Ye({finger:et,move:!0,values:Me}),Qt=It.newValue,In=It.activeIndex;q1({sliderRef:ee,activeIndex:In,setActive:le}),Ae(Qt),!re&&W.current>YK&&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;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AS(Object(n),!0).forEach(function(r){I(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Hy=ut(function(e,t){var n=e.expanded,r=e.label,i=e.onChange,a=e.onClick,o=e.onContextMenu,s=e.hideIcon,c=e.fullWidth,d=e.iconProps,h=me(e,sZ);return y.createElement(zu.Header,he({ref:t,onClick:function(b){typeof i=="function"&&i(!n),typeof a=="function"&&a(b)},fullWidth:c},h),y.createElement(zu.Label,{onContextMenu:o},r),!s&&y.createElement(zu.Icon,{onContextMenu:o},y.createElement(Yg,{type:n?Eo.Top:Eo.Bottom,IconProps:lZ({size:11},d)})))});Hy.defaultProps={expanded:!1,hideIcon:!1,fullWidth:!1},Hy.propTypes={label:F.node.isRequired,expanded:F.bool,hideIcon:F.bool,fullWidth:F.bool,onChange:F.func,iconProps:F.exact(u7)};var cZ="AccordionDetails",uZ=Z.div.attrs({className:xe(cZ,"root")}).withConfig({componentId:"sc-1wr6wpr-0"})(["margin:16px 0;"]),mM=Dt({AccordionDetails:uZ}),dZ=["expanded","children"],Gy=ut(function(e,t){var n=e.expanded,r=e.children,i=me(e,dZ);return y.createElement(y.Fragment,null,n&&y.createElement(mM.AccordionDetails,he({ref:t},i),r))});Gy.defaultProps={expanded:!1},Gy.propTypes={expanded:F.bool};var hZ="Accordion",fZ=Z.div.attrs({className:xe(hZ,"root")}).withConfig({componentId:"sc-1g4tz7s-0"})([""]),pZ=Dt({Accordion:fZ}),gZ=["label","expanded","children","detailStyle","headerStyle","fullWidth","iconProps","onClick","onChange","onContextMenu","hideIcon"];function LS(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 jS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LS(Object(n),!0).forEach(function(r){I(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Kg=ut(function(e,t){var n=e.label,r=e.expanded,i=e.children,a=e.detailStyle,o=e.headerStyle,s=e.fullWidth,c=e.iconProps,d=e.onClick,h=e.onChange,b=e.onContextMenu,m=e.hideIcon,g=me(e,gZ);return y.createElement(pZ.Accordion,he({ref:t},g),y.createElement(Hy,{label:n,expanded:r,style:jS({},o),hideIcon:m,onClick:function(v){typeof h=="function"&&h(!r,v),typeof d=="function"&&d(v)},onContextMenu:b,iconProps:c,fullWidth:s}),y.createElement(Gy,{expanded:r,style:jS({},a)},i))});Kg.defaultProps={expanded:!1,hideIcon:!1},Kg.propTypes={label:F.node.isRequired,expanded:F.bool,detailStyle:F.object,headerStyle:F.object,onChange:F.func,onContextMenu:F.func,hideIcon:F.bool,fullWidth:F.bool,iconProps:F.exact(u7)};var mZ=["stroke","size"],vZ=Te(function(e,t){var n=e.stroke,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?10:i,o=me(e,mZ);return y.createElement("svg",he({ref:t,width:a*(51/56),height:a,viewBox:"0 0 51 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M12.2754 3L37.2754 27.0741L12.2754 53",stroke:r,strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}))}),yZ=["color","size"],vM=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,yZ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M12.9783 2.30184C12.7972 2.12074 12.586 2 12.3143 2C12.0728 2 11.8314 2.09055 11.6503 2.30184L4.73816 9.84779L2.29327 7.34254C2.11217 7.16143 1.8707 7.07088 1.62923 7.07088C1.38776 7.07088 1.14629 7.19162 0.995367 7.37272C0.663345 7.76511 0.663345 8.36879 1.02555 8.73099L4.13448 11.9003C4.31559 12.0814 4.52687 12.1719 4.76835 12.1719C5.00982 12.1719 5.25129 12.0814 5.43239 11.8701L12.9783 3.62993C13.3406 3.2979 13.3406 2.66404 12.9783 2.30184Z",fill:r}))}),bZ=["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,bZ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.33984 12.111V2.04761C2.33984 1.49532 2.78756 1.04761 3.33984 1.04761H10.8182C11.3705 1.04761 11.8182 1.49532 11.8182 2.04761V12.111C11.8182 12.6633 11.3705 13.111 10.8182 13.111H3.33984C2.78756 13.111 2.33984 12.6633 2.33984 12.111ZM3.33984 12.111V2.04761L10.8182 2.04761L10.8182 12.111L3.33984 12.111Z",fill:r}),y.createElement("path",{d:"M13.66 4.97388C13.66 4.69774 13.4361 4.47388 13.16 4.47388C12.8838 4.47388 12.66 4.69774 12.66 4.97388V13.9523H5.40491C5.12876 13.9523 4.90491 14.1761 4.90491 14.4523C4.90491 14.7284 5.12876 14.9523 5.40491 14.9523H13.16C13.4361 14.9523 13.66 14.7284 13.66 14.4523V4.97388Z",fill:r}))}),wZ=["color","size"],xZ=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,wZ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M25 31.625C8.64336 31.625 0.533984 17.3656 0.196875 16.759C-0.065625 16.2867 -0.065625 15.7129 0.196875 15.2406C0.533984 14.6344 8.64336 0.375 25 0.375C41.3566 0.375 49.466 14.6344 49.8031 15.241C50.0656 15.7133 50.0656 16.2871 49.8031 16.7594C49.466 17.3656 41.3566 31.625 25 31.625ZM3.40117 15.9977C5.25977 18.8145 12.557 28.5 25 28.5C37.4824 28.5 44.7473 18.8223 46.5988 16.0023C44.7402 13.1855 37.443 3.5 25 3.5C12.5176 3.5 5.25273 13.1777 3.40117 15.9977ZM25 25.375C19.8305 25.375 15.625 21.1695 15.625 16C15.625 10.8305 19.8305 6.625 25 6.625C30.1695 6.625 34.375 10.8305 34.375 16C34.375 21.1695 30.1695 25.375 25 25.375ZM25 9.75C21.5539 9.75 18.75 12.5539 18.75 16C18.75 19.4461 21.5539 22.25 25 22.25C28.4461 22.25 31.25 19.4461 31.25 16C31.25 12.5539 28.4461 9.75 25 9.75Z",fill:r}))}),CZ=["color","size"],SZ=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,CZ);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",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.2553 6.05501C36.5966 5.71376 37.1514 5.71376 37.4926 6.05501C37.8339 6.39626 37.8339 6.95103 37.4926 7.29228L32.3765 12.4084C38.3601 15.8067 42.6046 20.7607 42.7917 20.9825C43.0682 21.3097 43.0699 21.7874 42.7936 22.113C42.3893 22.5908 32.7818 33.7978 22.0001 33.7978C18.9909 33.7978 15.9678 33.1203 13.0065 31.7785L7.74272 37.0423C7.57292 37.2121 7.34897 37.2978 7.12495 37.2978C6.90092 37.2978 6.67698 37.212 6.50545 37.0423C6.1642 36.701 6.1642 36.1462 6.50545 35.805L17.0426 25.2678C17.0453 25.265 17.0481 25.2622 17.0509 25.2595C17.0531 25.2573 17.0553 25.2551 17.0575 25.2529L25.7063 16.6041C25.7081 16.6023 25.7098 16.6005 25.7116 16.5987C25.7134 16.5969 25.7152 16.5952 25.717 16.5934L30.2895 12.0208C30.3028 12.0067 30.3164 11.9931 30.3304 11.9799L36.2553 6.05501ZM31.0895 13.6954L27.5301 17.2548C28.4835 18.476 28.9998 19.9721 28.9998 21.5478C28.9998 25.4083 25.8603 28.5478 21.9999 28.5478C20.4242 28.5478 18.9281 28.0314 17.7069 27.078L14.3353 30.4497C16.8728 31.5113 19.445 32.0478 22 32.0478C30.6537 32.0478 38.863 23.8071 40.9489 21.5478C39.6267 20.1195 35.855 16.3016 31.0895 13.6954ZM18.9574 25.8276C19.8392 26.458 20.8929 26.7977 21.9999 26.7977C24.8943 26.7977 27.2499 24.4422 27.2499 21.5477C27.2499 20.4409 26.9092 19.3873 26.2793 18.5056L18.9574 25.8276Z",fill:r}),y.createElement("path",{d:"M27.7418 10.3057C25.7504 9.63545 23.8184 9.29773 22.0001 9.29773C11.2183 9.29773 1.61084 20.5047 1.20659 20.9825C0.951064 21.2835 0.930064 21.721 1.15762 22.0482C1.27837 22.2215 4.17111 26.3287 9.18485 29.659C9.33358 29.7587 9.49985 29.806 9.66785 29.806C9.94963 29.806 10.2279 29.6695 10.3959 29.4122C10.6636 29.0115 10.5534 28.4672 10.1509 28.2012C6.46889 25.753 3.94889 22.7973 3.00561 21.595C5.01989 19.4075 13.2834 11.0478 22.0001 11.0478C23.6293 11.0478 25.3741 11.3558 27.1835 11.963C27.642 12.1275 28.139 11.8738 28.2913 11.4135C28.4453 10.955 28.2003 10.4598 27.7418 10.3057Z",fill:r}),y.createElement("path",{d:"M23.2197 14.6685C22.8224 14.5985 22.4164 14.5477 22 14.5477C18.1395 14.5477 15 17.6872 15 21.5477C15 21.9642 15.0508 22.3702 15.1225 22.7674C15.1977 23.1909 15.567 23.4902 15.9817 23.4902C16.0325 23.4902 16.0832 23.4867 16.1357 23.4762C16.6099 23.3922 16.9285 22.9371 16.8445 22.4629C16.7902 22.1654 16.75 21.8627 16.75 21.5477C16.75 18.6532 19.1055 16.2977 22 16.2977C22.315 16.2977 22.6177 16.338 22.9152 16.3905C23.3807 16.485 23.8444 16.1559 23.9284 15.6817C24.0124 15.2075 23.694 14.7525 23.2197 14.6685Z",fill:r}))}),bM=function(e,t){return e||t?Ir[L.BackgroundHover]:Ir[L.BackgroundStateless]},wM=function(e,t){return e?Ir[L.AccentPrimaryHover]:t?Ir[L.TextPlaceholder]:Ir[L.TextPrimary]},xM=function(e,t){return e?Ir[L.BordersItem]:t?Ir[L.BordersSecondary]:Ir[L.BorderPrimaryStateless]},CM=function(e,t){navigator.clipboard.writeText(e),t(!0)},Af={Text:"text",Password:"password"},wa="Input",Oh=Z.span.attrs({className:xe(wa,"Icon")}).withConfig({componentId:"sc-150k0cz-0"})(function(e){var t=e.iconClickStart,n=e.iconClickEnd,r=e.disabled,i=e.readOnly,a=e.iconType,o=e.theme.palette;return X(["display:flex;color:",";cursor:",";flex-shrink:0;",""],o[L.IconsPrimary],(t||n)&&!r&&!i?"pointer":"default",a==="end"&&X(["color:",";"],o[L.IconsSecondary]))}),SM=Z.span.attrs({className:xe(wa,"CopyIcon")}).withConfig({componentId:"sc-150k0cz-1"})(function(e){var t=e.theme.palette;return X(["display:flex;color:",";cursor:pointer;"],t[L.IconsSecondary])}),EZ=Z(SM).attrs({className:xe(wa,"PasswordIcon")}).withConfig({componentId:"sc-150k0cz-2"})([""]),_Z=Z.div.attrs({className:xe(wa,"Container")}).withConfig({componentId:"sc-150k0cz-3"})(function(){return X(["display:block;color:inherit;font-size:inherit;width:100%;min-width:0;margin:0;padding:0;border:0;background-color:transparent;outline:none;"])}),Vy=Z.input.attrs({className:xe(wa,"Base")}).withConfig({componentId:"sc-150k0cz-4"})(function(e){var t=e.theme.palette,n=e.isEllipsis,r=n===void 0?!1:n;return X(["display:block;color:inherit;width:100%;min-width:fit-content;margin:0;padding:0;border:0;background-color:transparent;outline:none;"," &::placeholder{color:",";}"],r&&X(["text-overflow:ellipsis;"]),t[L.TextPlaceholder])}),kZ=Z.div.attrs({className:xe(wa,"root")}).withConfig({componentId:"sc-150k0cz-5"})(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.isHovering,m=b===void 0?!1:b,g=e.isSelectedItems,v=g===void 0?!1:g,w=e.theme;return X(["position:relative;display:inline-flex;align-items:center;box-sizing:border-box;column-gap:8px;cursor:text;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),w.shape.borderRadius[ga.Md],xM(c,h),h?w.palette[L.TextPlaceholder]:w.palette[L.TextPrimary],PK[n],v&&`
|
|
height: fit-content;
|
|
|
|
`.concat(Vy,` {
|
|
max-width: fit-content;
|
|
min-width: 20px;
|
|
flex-grow: 1;
|
|
width: 40px;
|
|
}
|
|
`),Vy,hM[n],!c&&!h&&X(["&:focus-within{background-color:","!important;border:1px solid ",";&:hover{border:1px solid ",";","{color:",";}}}"," &:hover{background-color:",";border:1px solid ",";","{color:",";}}"],w.palette[L.BackgroundSecondary],w.palette[L.AccentStateless],w.palette[L.AccentStateless],Oh,w.palette[L.IconsPrimary],m&&X(["","{color:",";}"],Oh,w.palette[L.IconsPrimaryHover]),w.palette[L.BackgroundStateless],w.palette[L.BordersPrimaryHover],Oh,w.palette[L.IconsPrimaryHover]),h&&X(["","{color:",";}"],Oh,w.palette[L.IconsMuted]),wM(c,h),i&&MK)}),OZ=Z.span.attrs({className:xe(wa,"ClearIcon")}).withConfig({componentId:"sc-150k0cz-6"})(function(e){var t=e.theme.palette;return X(["display:flex;cursor:pointer;color:",";"],t[L.IconsPrimary])}),PZ=Z.div.attrs({className:xe(wa,"NotificationBox")}).withConfig({componentId:"sc-150k0cz-7"})(function(e){var t=e.size,n=t===void 0?ot.Md:t,r=e.isTextarea,i=r===void 0?!1:r,a=e.theme.palette;return X(["display:flex;position:absolute;align-items:center;max-height:34px;right:0px;padding:8px 12px;gap:6px;bottom:",";box-shadow:0px 2px 6px ",";background-color:",";border-radius:4px;align-items:center;",""],n===ot.Md?"45px":"35px",a[L.LargeShadow],a[L.BackgroundStateless],i&&`
|
|
bottom: `.concat(n===ot.Md?27:22,`px;
|
|
right: `).concat(n===ot.Md?16:12,`px;
|
|
`))}),TZ=Z.span.attrs({className:xe(wa,"NotificationIcon")}).withConfig({componentId:"sc-150k0cz-8"})(function(e){var t=e.theme.palette;return X(["display:flex;color:",";"],t[L.IconsPrimary])}),MZ=Z.span.attrs({className:xe(wa,"NotificationText")}).withConfig({componentId:"sc-150k0cz-9"})(function(e){var t=e.theme,n=t.palette,r=t.typography.font;return X(["display:flex;white-space:nowrap;",";color:",";"],r[_e.TextSmall],n[L.TextPrimary])}),IZ=Z.div.attrs({className:xe(wa,"fieldWrapper")}).withConfig({componentId:"sc-150k0cz-10"})(function(e){var t=e.isSelectedItems;return X(["width:100%;height:100%;display:inline-flex;flex-wrap:wrap;gap:8px;max-height:120px;",";::-webkit-scrollbar{display:none;}"],t&&`
|
|
overflow-y: auto;
|
|
`)}),$r=Dt({Input:kZ,Container:_Z,Base:Vy,Icon:Oh,CopyIcon:SM,PasswordIcon:EZ,ClearIcon:OZ,NotificationBox:PZ,NotificationIcon:TZ,NotificationText:MZ,FieldWrapper:IZ}),AZ=["inputType","children","iconStart","iconEnd","iconChange","clearIcon","iconClickStart","iconClickEnd","clearIconClick","size","className","style","fullWidth","readOnly","disabled","hideCopyIcon","focusOnMount","focusOnClick","isEllipsis","copyTextMessage","copySuccessIcon","error","renderTags","showPlaceholder"],R4=function(e,t){switch(e){case ot.Md:return t==="start"?15:14;case ot.Sm:default:return t==="start"?13:10}},NS=function(e){switch(e){case ot.Md:return 16;case ot.Sm:default:return 14}},lc=ut(function(e,t){var n,r=e.inputType,i=e.children,a=e.iconStart,o=e.iconEnd,s=e.iconChange,c=e.clearIcon,d=e.iconClickStart,h=e.iconClickEnd,b=e.clearIconClick,m=e.size,g=m===void 0?ot.Md:m,v=e.className,w=e.style,k=e.fullWidth,C=e.readOnly,_=e.disabled,f=e.hideCopyIcon,x=f===void 0?!1:f,E=e.focusOnMount,M=E===void 0?!1:E,j=e.focusOnClick,P=j===void 0?!0:j,N=e.isEllipsis,T=N===void 0?!1:N,R=e.copyTextMessage,z=e.copySuccessIcon,H=e.error,J=e.renderTags,q=e.showPlaceholder,Y=me(e,AZ),le=V.useState(!1),K=Oe(le,2),ce=K[0],ne=K[1],oe=V.useState(!1),Q=Oe(oe,2),$=Q[0],re=Q[1],we=V.useState(!1),W=Oe(we,2),D=W[0],B=W[1],ee=V.useRef(null),ue=(n=Y.selectedItems)===null||n===void 0?void 0:n.length,ve=Y.value||ue?"":Y.placeholder,se=ce&&C&&Y.value.length>0&&!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<x.length;T++){var R=x[T],z=Xa(R),H=dd(R)===ld,J=[ai,Xi].indexOf(z)>=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<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Rq(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?VS:i;return function(o,s,c){c===void 0&&(c=a);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},VS,a),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},h=[],b=!1,m={state:d,setOptions:function(w){var k=typeof w=="function"?w(d.options):w;v(),d.options=Object.assign({},a,d.options,k),d.scrollParents={reference:cc(o)?Gh(o):o.contextElement?Gh(o.contextElement):[],popper:Gh(s)};var C=jq(Dq([].concat(r,d.options.modifiers)));return d.orderedModifiers=C.filter(function(_){return _.enabled}),g(),m.update()},forceUpdate:function(){if(!b){var w=d.elements,k=w.reference,C=w.popper;if(US(k,C)){d.rects={reference:Aq(k,I0(C),d.options.strategy==="fixed"),popper:f7(C)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(P){return d.modifiersData[P.name]=Object.assign({},P.data)});for(var _=0;_<d.orderedModifiers.length;_++){if(d.reset===!0){d.reset=!1,_=-1;continue}var f=d.orderedModifiers[_],x=f.fn,E=f.options,M=E===void 0?{}:E,j=f.name;typeof x=="function"&&(d=x({state:d,options:M,name:j,instance:m})||d)}}}},update:Nq(function(){return new Promise(function(w){m.forceUpdate(),w(d)})}),destroy:function(){v(),b=!0}};if(!US(o,s))return m;m.setOptions(c).then(function(w){!b&&c.onFirstUpdate&&c.onFirstUpdate(w)});function g(){d.orderedModifiers.forEach(function(w){var k=w.name,C=w.options,_=C===void 0?{}:C,f=w.effect;if(typeof f=="function"){var x=f({state:d,name:k,instance:m,options:_}),E=function(){};h.push(x||E)}})}function v(){h.forEach(function(w){return w()}),h=[]}return m}}var Fq=[sq,_q,aq,KZ,Sq,yq,Pq,tq,wq],zq=Rq({defaultModifiers:Fq});function Bq(e){var t=document.createElement("div");return t.setAttribute("id",e),t}function Hq(e){document.body.append(e)}function jM(e){var t=V.useRef(null);V.useEffect(function(){var r=document.querySelector("#".concat(e)),i=r||Bq(e);return r||Hq(i),t.current&&i.append(t.current),function(){t.current&&t.current.remove(),i.childNodes.length===-1&&i.remove()}},[]);function n(){return t.current||(t.current=document.createElement("div")),t.current}return n()}var Yn={AutoStart:"auto-start",Auto:"auto",AutoEnd:"auto-end",TopStart:"top-start",Top:"top",TopEnd:"top-end",BottomStart:"bottom-start",Bottom:"bottom",BottomEnd:"bottom-end",LeftStart:"left-start",Left:"left",LeftEnd:"left-end",RightStart:"right-start",Right:"right",RightEnd:"right-end"},Gq={Absloute:"absolute",Fixed:"fixed"},F4,Vq=(F4={},I(I(I(I(I(I(I(I(I(I(F4,Yn.Auto,X(["top:0px;bottom:0px;left:0px;right:0px;"])),Yn.AutoEnd,X(["top:0px;bottom:0px;left:0px;right:0px;"])),Yn.AutoStart,X(["top:0px;bottom:0px;left:0px;right:0px;"])),Yn.Right,X(["left:-4px;"])),Yn.RightEnd,X(["left:-4px;"])),Yn.RightStart,X(["left:-4px;"])),Yn.Left,X(["right:-4px;"])),Yn.LeftEnd,X(["right:-4px;"])),Yn.LeftStart,X(["right:-4px;"])),Yn.Top,X(["bottom:-4px;"])),I(I(I(I(I(F4,Yn.TopEnd,X(["bottom:-4px;"])),Yn.TopStart,X(["bottom:-4px;"])),Yn.Bottom,X(["top:-4px;"])),Yn.BottomEnd,X(["top:-4px;"])),Yn.BottomStart,X(["top:-4px;"]))),km="Popper",Uq=Z.div.attrs({className:xe(km,"root")}).withConfig({componentId:"sc-1373tsp-0"})([""]),Wq=Z.div.attrs({className:xe(km,"wrapper")}).withConfig({componentId:"sc-1373tsp-1"})(function(e){var t=e.zIndex;return X(["position:relative;z-index:",";"],t)}),Xq=Z.div.attrs({className:xe(km,"arrow")}).withConfig({componentId:"sc-1373tsp-2"})(function(e){var t=e.warning,n=t===void 0?!1:t,r=e.position,i=r===void 0?Yn.Right:r,a=e.theme;return X(["width:8px;height:8px;position:absolute;&::before{content:'';background:",";width:8px;height:8px;transform:rotate(45deg);position:absolute;top:0;left:0;z-index:-1;}",""],n?a.palette[L.BackgroundOrange]:a.palette[L.BackgroundGrey],Vq[i])}),Yq=Z.div.attrs({className:xe(km,"Overlay")}).withConfig({componentId:"sc-1373tsp-3"})(function(){return X(["position:fixed;right:0;bottom:0;top:0;left:0;background-color:transparent;"])}),jf=Dt({Popper:Uq,Overlay:Yq,Arrow:Xq,PopperWrapper:Wq}),Kq=["anchorEl","children","open","warning","position","arrow","popperOptions","onClick","overlay","zIndex","enableUnderlayingEvent","wrapperStyles"];function WS(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 z4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WS(Object(n),!0).forEach(function(r){I(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Om=ut(function(e,t){var n=e.anchorEl,r=e.children,i=e.open,a=e.warning,o=a===void 0?!1:a,s=e.position,c=s===void 0?"bottom":s,d=e.arrow,h=d===void 0?!1:d,b=e.popperOptions,m=e.onClick,g=e.overlay,v=g===void 0?!1:g,w=e.zIndex,k=w===void 0?1300:w,C=e.enableUnderlayingEvent,_=e.wrapperStyles,f=_===void 0?{}:_,x=me(e,Kq),E=jM(xe("Popper")),M=V.useRef(null),j=r8(M,t);V.useEffect(function(){if(!(!n||!i||M.current===null)){var z=[{name:"arrow",options:{element:"[data-popper-arrow]"}},{name:"offset",options:{offset:[0,10]}}],H=h?z:[];b&&b.modifiers!=null&&(H=H.concat(b.modifiers));var J=zq(n,M.current,z4(z4({placement:c},b),{},{modifiers:H}));return j.current=J,function(){J.destroy(),j.current=null}}},[n,i,b,c,h]);var P=function(z){setTimeout(function(){if(z.clientX&&z.clientY){var H=document.elementFromPoint(z.clientX,z.clientY);H&&H.dispatchEvent(z.nativeEvent)}},0)},N=function(z){z.persist(),z.preventDefault(),z.stopPropagation(),m&&m(z),C&&P(z)},T=function(){return y.createElement(jf.Overlay,{onClick:N,onContextMenu:N})};if(!i)return y.createElement("div",{hidden:!0,ref:j});var R=function(){var z;return y.createElement(jf.PopperWrapper,{zIndex:k,style:z4({},f)},v&&T(),y.createElement(jf.Popper,he({ref:j},x),r,h&&y.createElement(jf.Arrow,{warning:o,"data-popper-arrow":!0,position:(j==null||(z=j.state)===null||z===void 0?void 0:z.placement)||c})))};return P0.createPortal(R(),E)});Om.defaultProps={};var NM={anchorEl:F.oneOfType([F.instanceOf(Element),F.object]),popperOptions:F.shape({modifiers:F.arrayOf(F.shape({data:F.object,effect:F.func,enabled:F.bool,fn:F.func,name:F.any.isRequired,options:F.object,phase:F.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:F.arrayOf(F.string),requiresIfExists:F.arrayOf(F.string)})),onFirstUpdate:F.func,placement:F.oneOf(lt(Yn)),strategy:F.oneOf(lt(Gq))}),overlay:F.bool,warning:F.bool,arrow:F.bool,zIndex:F.number,enableUnderlayingEvent:F.bool,wrapperStyles:F.object};Om.propTypes=NM;var DM="Menu",Zq=Z.div.attrs({className:xe(DM,"Overlay")}).withConfig({componentId:"sc-10okxhw-0"})(function(){return X(["position:fixed;right:0;bottom:0;top:0;left:0;background-color:transparent;z-index:-1;"])}),qq=t8(["from{opacity:0;}to{opacity:1;}"]),$q=t8(["from{transform:scale(0.97);margin-top:0px;}to{transform:scale(1);margin-top:4px;}"]),Qq=X(["animation:"," 250ms 0ms cubic-bezier(0.4,0,0.2,1),"," 250ms cubic-bezier(0.4,0,0.2,1);"],qq,$q),Jq=Z.div.attrs({className:xe(DM,"root")}).withConfig({componentId:"sc-10okxhw-1"})(function(e){var t=e.rect,n=e.theme,r=e.scroll,i=e.maxHeight,a=i===void 0?"":i;return X(["min-width:","px;width:195px;min-height:16px;overflow-x:hidden;overflow-y:auto;transition:opacity 250ms cubic-bezier(0.4,0,0,1),transform 250ms cubic-bezier(0.4,0,0,1),margin-top 250ms cubic-bezier(0.4,0,0,1);outline:0;box-shadow:0 2px 4px ",";border-radius:",";"," "," margin-top:4px;",""],t.width,n.palette[L.MediumShadow],n.shape.borderRadius[ga.Md],r&&UP,a&&X(["max-height:",";"],Number.isNaN(+a)?a:"".concat(a,"px")),Qq)}),e$=Dt({Menu:Jq,Overlay:Zq}),t$=["id","children","open","fullWidth","anchorElPosition","anchorEl","onClose","containerProps","alignCenter","maxHeight","position","popperOptions","enableOverlay","zIndex","hideScroll","scroll","enableUnderlayingEvent","popperWrapperStyles"];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 n$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XS(Object(n),!0).forEach(function(r){I(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Do=ut(function(e,t){e.id;var n=e.children,r=e.open;e.fullWidth;var i=e.anchorElPosition,a=e.anchorEl,o=e.onClose,s=e.containerProps,c=e.alignCenter,d=e.maxHeight,h=e.position,b=e.popperOptions,m=e.enableOverlay,g=m===void 0?!0:m,v=e.zIndex,w=e.hideScroll,k=w===void 0?!0:w,C=e.scroll,_=C===void 0?!0:C,f=e.enableUnderlayingEvent,x=f===void 0?!1:f,E=e.popperWrapperStyles,M=E===void 0?{}:E,j=me(e,t$),P=V.useState(null),N=Oe(P,2),T=N[0],R=N[1],z=V.useState(new DOMRect),H=Oe(z,2),J=H[0],q=H[1],Y=V.useRef(null),le=V.useCallback(function(){var ne,oe=n$({top:0,left:0,height:0,width:0},i||{}),Q=new DOMRect(oe.left,oe.top,oe.width,oe.height);q((ne=a?.getBoundingClientRect())!==null&&ne!==void 0?ne:Q)},[r,T,a]),K=V.useCallback(function(){r&&(T&&clearTimeout(T),R(setTimeout(le,300)))},[r,T]);V.useEffect(function(){return window.addEventListener("resize",K),function(){window.removeEventListener("resize",K)}},[K]),V.useEffect(function(){le()},[i,le]),V.useEffect(function(){if(k)return r?(document.body.classList.add("Menu-open"),le()):document.body.classList.remove("Menu-open"),function(){document.body.classList.remove("Menu-open")}},[r,le]);var ce=function(ne){typeof o=="function"&&o(ne)};return y.createElement(y.Fragment,null,y.createElement(Om,{ref:Y,position:h||"bottom-start",open:!!a,anchorEl:a,overlay:!!g,onClick:ce,popperOptions:b,zIndex:v,enableUnderlayingEvent:x,wrapperStyles:M},y.createElement(e$.Menu,he({},s,{alignCenter:!!c,scroll:_,rect:J},j,{ref:t,maxHeight:d}),n)))}),r$={open:!1,containerProps:{},maxHeight:250,position:Yn.BottomStart,enableOverlay:!0,hideScroll:!0,scroll:!0};Do.defaultProps=r$;var RM={anchorElPosition:F.shape({left:F.number,right:F.number,top:F.number,bottom:F.number}),anchorEl:F.instanceOf(Element),open:F.bool,fullWidth:F.bool,onClose:F.func,id:F.string,containerProps:F.object,alignCenter:F.bool,maxHeight:F.oneOfType([F.string,F.number]),popperOptions:NM.popperOptions,position:F.oneOf(lt(Yn)),enableOverlay:F.bool,zIndex:F.number,hideScroll:F.bool,scroll:F.bool,enableUnderlayingEvent:F.bool,popperWrapperStyles:F.object,style:F.object};Do.propTypes=RM;var gr={Sm:"sm",Md:"md"},i$=I(I({},gr.Sm,function(e){var t=e.theme.typography.font;return X(["padding:8px 16px;min-height:32px;",""],t[_e.LabelMedium])}),gr.Md,function(e){var t=e.theme.typography.font;return X(["padding:11px 16px;min-height:40px;",""],t[_e.LabelLarge])}),Zs="MenuItem",FM=Z.span.attrs({className:xe(Zs,"Icon")}).withConfig({componentId:"sc-rrzye0-0"})(function(e){var t=e.theme.palette,n=e.disabled;return X(["flex-shrink:0;margin-right:10px;color:",";"],n?t[L.TextPlaceholder]:t[L.IconsPrimary])}),a$=Z(FM).attrs({className:xe(Zs,"Actions")}).withConfig({componentId:"sc-rrzye0-1"})(function(){return X(["margin-right:0px;margin-left:16px;"])}),o$=Z.span.attrs({className:xe(Zs,"Label")}).withConfig({componentId:"sc-rrzye0-2"})(["align-items:center;column-gap:4px;flex-grow:1;"]),s$=Z.div.attrs({className:xe(Zs,"wrapper")}).withConfig({componentId:"sc-rrzye0-3"})(function(e){var t=e.divider,n=t===void 0?!1:t,r=e.noOptionsText,i=r===void 0?!1:r,a=e.disabled,o=a===void 0?!1:a,s=e.theme;return X([""," ",""],n&&X(["width:100%;height:1px;background:",";box-sizing:border-box;"],s.palette[L.BordersSecondary]),(i||o)&&X(["color:",";"],s.palette[L.ButtonDisabledText]))}),l$=Z.div.attrs({className:xe(Zs,"root")}).withConfig({componentId:"sc-rrzye0-4"})(function(e){var t=e.size,n=t===void 0?gr.Sm:t,r=e.active,i=e.theme,a=e.disableHover,o=a===void 0?!1:a,s=e.noOptionsText,c=e.disabled;return X(["display:flex;justify-content:space-between;flex-direction:row;align-items:center;width:100%;background:",";color:",";cursor:pointer;box-sizing:border-box;transition:all 100ms ease-out;"," &:focus-within,&:focus,&:hover{",";","}",""],i.palette[r?L.BackgroundActive:L.BackgroundSecondary],i.palette[L.TextPrimary],i$[n],!o&&"background-color: ".concat(i.palette[L.BackgroundHover]),(s||c)&&X(["cursor:default;background-color:white;"]),(s||c)&&X(["& > 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;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YS(Object(n),!0).forEach(function(r){I(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ya=ut(function(e,t){var n=e.list,r=e.depth,i=r===void 0?0:r,a=e.children,o=e.disableHover,s=e.noOptionsText,c=e.disabled,d=e.enableScrollIntoView,h=me(e,h$),b=V.useRef(null),m=y.useState(null),g=Oe(m,2),v=g[0],w=g[1],k=y.useState([]),C=Oe(k,2),_=C[0],f=C[1],x=function(N){w(N.currentTarget)},E=function(){var N;(N=b.current)===null||N===void 0||N.scrollIntoView({behavior:"auto",block:"nearest"})};V.useEffect(function(){h.active&&d&&E()},[h.active]);var M=function(N,T,R){var z=_.slice(0);z[R]=T,f(z),x(N)},j=function(N){var T=_.slice(0);T[N]="",f(T),w(null)},P=function(N){var T=arguments.length>1&&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;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QS(Object(n),!0).forEach(function(r){I(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var _ee=function(e){switch(e){case ot.Md:return 16;case ot.Sm:default:return 14}},kee=function(e){var t=arguments.length>1&&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<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tE(Object(n),!0).forEach(function(r){I(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var xa="ColorPicker",jee="ColorItem",Nee=Z.div.attrs({className:xe(xa,"root")}).withConfig({componentId:"sc-qj4xo5-0"})(["background-color:",";box-shadow:0px 1px 2px rgba(78,77,77,0.15);border-radius:2px;padding:12px;max-width:300px;"],function(e){var t=e.theme;return t.palette[L.BackgroundSecondary]}),Dee=Z.div.attrs({className:xe(xa,"icon")}).withConfig({componentId:"sc-qj4xo5-1"})(["display:flex;justify-content:space-between;align-items:center;cursor:pointer;"]),Ree=Z.div.attrs({className:xe(xa,"range-picker")}).withConfig({componentId:"sc-qj4xo5-2"})(function(e){var t=e.color;return X(["position:relative;border-radius:2px;width:100%;height:180px;user-select:none;cursor:crosshair;background-color:",";"],t)}),Fee=Z.div.attrs({className:xe(xa,"white-gradient")}).withConfig({componentId:"sc-qj4xo5-3"})(["background:linear-gradient(to right,white 0%,rgba(255,255,255,0) 100%);z-index:0;position:absolute;width:100%;height:100%;border-radius:2px;user-select:none;pointer-events:none;top:-1px;"]),zee=Z.div.attrs({className:xe(xa,"black-gradient")}).withConfig({componentId:"sc-qj4xo5-4"})(["background:linear-gradient(to bottom,rgba(0,0,0,0) 0%,black 100%);z-index:1;position:absolute;width:100%;height:100%;border-radius:2px;user-select:none;pointer-events:none;"]),Bee=Z.span.attrs(function(e){var t=e.left,n=t===void 0?0:t,r=e.top,i=r===void 0?0:r,a=e.considerTopWidth,o=a===void 0?!1:a,s=e.style;return{className:xe(xa,"pointer"),style:Lee({left:n-7,top:i-(o?7:0)},s)}}).withConfig({componentId:"sc-qj4xo5-5"})(function(e){var t=e.theme,n=e.pointerColor;return X(["display:inline-block;box-sizing:border-box;width:15px;height:15px;border-radius:20px;box-shadow:0px 1px 2px rgba(78,77,77,0.15);border:2px solid ",";background-color:",";position:absolute;cursor:pointer;z-index:11;user-select:none;outline:none;"],t.palette[L.BackgroundSecondary],n)}),Hee=Z.div.attrs({className:xe(xa,"bar-wrapper")}).withConfig({componentId:"sc-qj4xo5-6"})(["margin-top:8px;position:relative;width:100%;height:12px;"]),Gee=Z.table.attrs({className:xe(xa,"bar")}).withConfig({componentId:"sc-qj4xo5-7"})(["border-radius:4px;width:100%;height:8px;border-collapse:collapse;"]),Vee=Z.td.attrs(function(e){var t=e.$color;return{className:xe(xa,"stop"),style:{backgroundColor:t}}}).withConfig({componentId:"sc-qj4xo5-8"})(["padding:0;user-select:none;pointer-events:none;&:first-child{width:4px;border-top-left-radius:4px;border-bottom-left-radius:4px;}&:last-child{width:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;}"]),Uee=Z.div.attrs({className:xe(xa,"action")}).withConfig({componentId:"sc-qj4xo5-9"})(["display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;"]),Wee=Z.label.attrs({className:xe(jee,"label")}).withConfig({componentId:"sc-qj4xo5-10"})(function(e){var t=e.theme,n=e.size,r=e.color,i=e.stroke,a=e.value;return X(["border-radius:2px;border:",";box-sizing:border-box;width:","px;height:","px;background-color:",";user-select:none;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 300ms;margin-bottom:8px;background:",";input{display:none;}"],"1px solid ".concat(i),n,n,r,a==="rgba(0,0,0,0)"&&"repeating-conic-gradient(".concat(t.palette[L.LinkPrimary]," 0% 25%, transparent 0% 50%) 50% / 8px 8px"))}),Xee=Z.div.withConfig({componentId:"sc-qj4xo5-11"})(["display:flex;flex-wrap:wrap;align-content:space-between;margin-top:14px;margin-left:12px;& > .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;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nE(Object(n),!0).forEach(function(r){I(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Nf=["rgba(0,0,0,0)"],Df="#00000000",U4=360,Zy=ut(function(e,t){var n=e.defaultColor,r=n===void 0?"#000000":n,i=e.onChange,a=e.pinnedColors,o=a===void 0?[]:a,s=e.showTransparentColor,c=s===void 0?!1:s,d=e.hidePinIcon,h=d===void 0?!1:d,b=e.containerProps,m=me(e,Zee),g=c?Nf.concat(o):o,v=function(Pe){return Pe===Df||Pe===Nf[0]},w=V.useState({color:"#ff0000",pointerLeft:0}),k=Oe(w,2),C=k[0],_=k[1],f=V.useState({color:v(r)?"#00000000":zw(r)||"#000000",pointer:{left:0,top:0}}),x=Oe(f,2),E=x[0],M=x[1],j=V.useState(g),P=Oe(j,2),N=P[0],T=P[1],R=V.useState("hex"),z=Oe(R,2),H=z[0],J=z[1],q=V.useState([]),Y=Oe(q,2),le=Y[0],K=Y[1],ce=V.useState(zw(E.color)),ne=Oe(ce,2),oe=ne[0],Q=ne[1],$=V.useState(null),re=Oe($,2),we=re[0],W=re[1],D=V.useState(null),B=Oe(D,2),ee=B[0],ue=B[1],ve=function(Pe){return Pe===Nf[0]&&E.color===Df?!0:Pe===E.color},se=function(Pe){return Pe.filter(function(Ze){return Ze!=="rgba(0,0,0,0)"})},Ie=function(Pe){return v(Pe)?Nf[0]:"rgb(".concat(jp(Pe).join(", "),")")},Ae=function(Pe,Ze){if(Ze==="add"){var Pt=[].concat(an(N),[Pe]);T(Pt),typeof i=="function"&&i(E.color,Ie(Pe),se(Pt))}else{var kt=N.filter(function(En){return En!==E.color});T(kt),typeof i=="function"&&i(E.color,Ie(Pe),se(kt))}},Se=function(Pe){if(we!==null){var Ze=pl(we),Pt=Ze.left,kt=L5(Pe||E.color),En=Oe(kt,1),Vt=En[0],on=we.querySelector("[data-hue='".concat(Vt,"']"));if(on!==null){var si=on.style.backgroundColor||C.color;_({color:si,pointerLeft:pl(on).left-Pt||C.pointerLeft})}}},Ne=function(Pe,Ze){if(!(Pe>255||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;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rE(Object(n),!0).forEach(function(r){I(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var y7=ut(function(e,t){var n,r=e.fullWidth,i=e.size,a=e.value,o=e.readOnly,s=e.disabled,c=e.error,d=e.cols,h=e.rows,b=e.copyTextMessage,m=b===void 0?"":b,g=e.copySuccessIcon,v=e.showActionButton,w=v===void 0?!1:v,k=e.showClearButton,C=k===void 0?!1:k,_=e.showCopyIcon,f=_===void 0?!1:_,x=e.disableActionButton,E=x===void 0?!1:x,M=e.isActionButtonLoading,j=M===void 0?!1:M,P=e.actionButtonLabel,N=e.clearAllButtonLabel,T=e.onClickActionButton,R=e.onClear,z=e.onChange,H=me(e,lte),J=V.useRef(null),q=r8(J,t),Y=V.useState(!1),le=Oe(Y,2),K=le[0],ce=le[1],ne=V.useState({}),oe=Oe(ne,2),Q=oe[0],$=oe[1],re=V.useState(!1),we=Oe(re,2),W=we[0],D=we[1],B=V.useState(a),ee=Oe(B,2),ue=ee[0],ve=ee[1],se=function(He){T&&T(He)},Ie=function(He){ve(""),R&&R(He)},Ae=function(He){ve(He.target.value),z&&z(He)},Se=function(){f&&CM(ue,D)};V.useEffect(function(){var He=J.current;He&&He.scrollHeight>He.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<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iE(Object(n),!0).forEach(function(r){I(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Qg=ut(function(e,t){e.children;var n=e.type,r=e.error,i=e.label,a=e.hint,o=e.LabelProps,s=e.InputProps,c=e.inputProps,d=e.inputRef,h=e.TextareaProps,b=e.readOnly,m=e.disabled,g=e.size,v=e.value,w=me(e,hte),k=function(){return i?typeof i=="function"?i({error:r}):Hr(i)==="object"?i:y.createElement($t,he({size:g,error:r,disabled:m},o||{}),i):null},C=function(){var f=fte({value:v,readOnly:b,disabled:m,size:g,error:r},w);return n===$g.Input?y.createElement(lc,he({},f,s||{},c,{ref:d?.ref||d,readOnly:b,disabled:m})):n===$g.Textarea?y.createElement(y7,he({},f,h||{})):null},_=function(){return a?typeof a=="function"?a({error:r}):Hr(a)==="object"?a:y.createElement(qg,{size:g,error:r,disabled:m},a):null};return y.createElement(aI.InputGroup,{ref:t},k(),C(),_())});Qg.defaultProps={type:$g.Input,error:!1,readOnly:!1},Qg.propTypes={type:F.oneOf(lt($g)),size:F.oneOf(lt(ot)),label:F.node,hint:F.node,error:F.bool,value:F.any,LabelProps:F.exact(l7),InputProps:F.exact(EM),inputProps:F.object,inputRef:F.oneOfType([F.func,F.object]),TextareaProps:F.exact(iI),readOnly:F.bool,disabled:F.bool};var _s={Xs:"xs",Sm:"sm",Md:"md",Lg:"lg",Xl:"xl"},pte=V.createContext({modalOpened:!1}),gte=I(I(I(I(I({},_s.Xs,X(["max-width:300px;"])),_s.Sm,X(["max-width:600px;"])),_s.Md,X(["max-width:960px;"])),_s.Lg,X(["max-width:1280px;"])),_s.Xl,X(["max-width:1920px;"])),Im="Modal",mte=Z.div.attrs({className:xe(Im,"Wrapper")}).withConfig({componentId:"sc-80m07l-0"})(function(e){var t=e.open;return X(["position:fixed;right:0px;bottom:0px;top:0px;left:0px;z-index:1200;visibility:",";"],t?"visible":"hidden")}),vte=Z.div.attrs({className:xe(Im,"Overlay")}).withConfig({componentId:"sc-80m07l-1"})(function(e){var t=e.open;return X(["position:fixed;right:0px;bottom:0px;top:0px;left:0px;background-color:rgba(0,0,0,0.5);z-index:-1;transition:opacity 251ms cubic-bezier(0.4,0,0.2,1) 0ms;opacity:",";"],t?"1":"0")}),yte=Z.div.attrs({className:xe(Im,"Container")}).withConfig({componentId:"sc-80m07l-2"})(function(e){var t=e.theme,n=e.open,r=n===void 0?!1:n,i=e.fullWidth,a=i===void 0?!1:i,o=e.maxWidth,s=o===void 0?_s.Sm:o;return X(["position:absolute;overflow-x:hidden;overflow-y:auto;transition:opacity 251ms cubic-bezier(0.4,0,0.2,1) 0ms,transform 167ms cubic-bezier(0.4,0,0.2,1) 0ms;outline:0;border-radius:",";background-color:",";box-shadow:0px 2px 4px ",";visibility:",";opacity:",";display:flex;max-height:calc(100% - 64px);flex-direction:column;"," "," top:50%;left:50%;transform:translate(-50%,-50%);"],t.shape.borderRadius[ga.Lg],t.palette[L.BackgroundSecondary],t.palette[L.LightShadow],r?"visible":"hidden",r?"1":"0",a&&X(["width:calc(100% - 64px);"]),gte[s])}),bte=Z.div.attrs({className:xe(Im,"root")}).withConfig({componentId:"sc-80m07l-3"})(function(){return X(["position:relative;padding-top:8px;padding-bottom:8px;margin:0;padding:0;outline:0;display:flex;flex-direction:column;"])}),Ff=Dt({Modal:bte,Wrapper:mte,Overlay:vte,Container:yte}),wte=["children","open","onClose","maxWidth","fullWidth","modalStyles","hideOverlay","disableOverlayClick"];function aE(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 oE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aE(Object(n),!0).forEach(function(r){I(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var xte=function(e){return e&&V.isValidElement(e)&&y.Children.count(e)===1&&e.type===y.Fragment},Am=ut(function(e,t){var n=e.children,r=e.open,i=e.onClose,a=e.maxWidth,o=e.fullWidth,s=e.modalStyles,c=e.hideOverlay,d=e.disableOverlayClick,h=me(e,wte),b=xte(n)?n.props.children:n,m=document.querySelector("body");V.useEffect(function(){return r?document.body.classList.add("Modal-open"):document.body.classList.remove("Modal-open"),function(){document.body.classList.remove("Modal-open")}},[r]);var g=function(){typeof i=="function"&&i()};V.useEffect(function(){var w=function(k){k.key==="Escape"&&g()};return document.addEventListener("keydown",w),function(){return document.removeEventListener("keydown",w)}});var v=function(){return y.createElement(pte.Provider,{value:{modalOpened:!!r}},y.createElement(Ff.Wrapper,{style:oE({},s),open:!!r,ref:t},!c&&y.createElement(Ff.Overlay,{onClick:function(){return d?null:g()},open:!!r}),y.createElement(Ff.Container,he({},h,{maxWidth:a,fullWidth:o,open:!!r}),y.createElement(Ff.Modal,null,y.Children.map(b,function(w){return V.isValidElement(w)&&w.type.displayName==="ModalTitle"?y.cloneElement(w,oE({onClose:g},w.props||{})):w})))))};return P0.createPortal(v(),m)}),Cte={open:!1,fullWidth:!1,disableOverlayClick:!1,hideOverlay:!1,maxWidth:_s.Xs};Am.defaultProps=Cte;var Ste={onClose:F.func,modalStyles:F.object,disableOverlayClick:F.bool,hideOverlay:F.bool,children:F.node.isRequired,maxWidth:F.oneOf(lt(_s)),open:F.bool,fullWidth:F.bool};Am.propTypes=Ste;var Jg={Left:"left",Center:"center",Right:"right"},Ete="ModalActions",_te=Z.div.attrs({className:xe(Ete,"root")}).withConfig({componentId:"sc-1wg6u00-0"})(function(e){var t=e.align,n=t===void 0?Jg.Center:t;return X(["position:relative;display:flex;align-items:center;padding:24px;justify-content:",";gap:12px;"],n===Jg.Right?"flex-end":n)}),kte=Dt({ModalActions:_te}),Ote=["children"],Vh=ut(function(e,t){var n=e.children,r=me(e,Ote);return y.createElement(kte.ModalActions,he({},r,{ref:t}),n)});Vh.defaultProps={align:Jg.Center},Vh.propTypes={children:F.node.isRequired,align:F.oneOf(lt(Jg))},Vh.displayName="ModalActions";var Pte="ModalContent",Tte=Z.div.attrs({className:xe(Pte,"root")}).withConfig({componentId:"sc-1ng1w0v-0"})(function(){return X(["position:relative;padding:12px 24px 0px;"])}),Mte=Dt({ModalContent:Tte}),Ite=["children"],Uh=ut(function(e,t){var n=e.children,r=me(e,Ite);return y.createElement(Mte.ModalContent,he({},r,{ref:t}),n)});Uh.defaultProps={},Uh.propTypes={children:F.node.isRequired},Uh.displayName="ModalContent";var Jr={Default:"default",WithIcon:"with-icon"},L0="ModalTitle",Ate=Z.div.attrs({className:xe(L0,"Icon")}).withConfig({componentId:"sc-l3tf49-0"})(function(e){var t=e.theme.palette;return X(["display:flex;margin-bottom:8px;padding:14.5px;border-radius:50%;background:",";color:",";"],t[L.Accent_1_2_Opacity],t[L.AccentStateless])}),Lte=Z.div.attrs({className:xe(L0,"LabelPrimary")}).withConfig({componentId:"sc-l3tf49-1"})(function(e){var t=e.variant,n=t===void 0?Jr.Default:t;return X(["font-size:18px;line-height:27px;font-weight:",";"],n===Jr.Default?400:500)}),jte=Z.div.attrs({className:xe(L0,"LabelSecondary")}).withConfig({componentId:"sc-l3tf49-2"})(["font-size:12px;line-height:14px;margin-top:4px;"]),Nte=Z.div.attrs({className:xe(L0,"Close")}).withConfig({componentId:"sc-l3tf49-3"})(function(e){var t=e.variant,n=t===void 0?Jr.Default:t,r=e.theme.palette;return X(["position:absolute;display:flex;top:","px;right:","px;color:",";&:hover{color:",";}cursor:pointer;"],n===Jr.WithIcon?2:8,n===Jr.WithIcon?2:8,r[L.IconsSecondary],r[L.AccentPrimary])}),Dte=Z.div.attrs({className:xe(L0,"root")}).withConfig({componentId:"sc-l3tf49-4"})(function(e){var t=e.variant,n=t===void 0?Jr.Default:t,r=e.theme,i=r.palette,a=r.shape.borderRadius;return X(["position:relative;color:",";border-radius:"," "," 0px 0px;"," "," ",""],i[L.TextPrimary],a[ga.Md],a[ga.Md],function(){var o=n===Jr.WithIcon?26:14,s=n===Jr.WithIcon?12:14,c=18,d=n===Jr.WithIcon?c:40;return X(["padding:","px ","px ","px ","px;"],o,d,s,c)},n===Jr.Default&&X(["background:",";border-bottom:1px solid ",";"],i[L.BackgroundPrimary],i[L.BordersSecondary]),n===Jr.WithIcon&&X(["display:flex;align-items:center;flex-direction:column;"]))}),mh=Dt({ModalTitle:Dte,LabelPrimary:Lte,LabelSecondary:jte,Close:Nte,Icon:Ate}),Rte=["secondary","onClose","primaryLabelStyles"],Wh=ut(function(e,t){var n=e.secondary,r=e.onClose,i=e.primaryLabelStyles,a=me(e,Rte);return y.createElement(mh.ModalTitle,he({},a,{ref:t}),a.icon&&y.createElement(mh.Icon,{iconShadow:!!a.iconShadow},a.icon),y.createElement(mh.LabelPrimary,{variant:a.variant,style:i},a.primary),a.variant===Jr.WithIcon&&n&&y.createElement(mh.LabelSecondary,null,n),y.createElement(mh.Close,{variant:a.variant},y.createElement(hd,{size:"lg",onClick:r})))});Wh.defaultProps={iconShadow:!0,variant:Jr.Default},Wh.propTypes={primary:F.node.isRequired,secondary:F.node,icon:F.node,iconShadow:F.bool,onClose:F.func,primaryLabelStyles:F.object,variant:F.oneOf(lt(Jr))},Wh.displayName="ModalTitle";var Va={Success:"success",Info:"info",Error:"error",Warning:"warning"},Fte="PopupStatus",zte=Z.span.attrs({className:xe(Fte,"root")}).withConfig({componentId:"sc-qash56-0"})(function(){return X(["display:flex;"])}),Bte=Dt({PopupStatus:zte}),Hte=["status","notificationBackground"],Gte=function(e,t){switch(e){case Va.Warning:return t?y.createElement(KM,{color:Ir[L.Warning],size:20}):y.createElement(GJ,{color:Ir[L.Warning],size:12});case Va.Error:return t?y.createElement(XJ,{color:Ir[L.Error],size:20}):y.createElement(KJ,{color:Ir[L.Error],size:12});case Va.Info:return t?y.createElement(EQ,{color:Ir[L.Info],size:20}):y.createElement(OQ,{color:Ir[L.Info],size:12});case Va.Success:default:return y.createElement(UJ,{color:Ir[L.Success],size:20})}},b7=ut(function(e,t){var n=e.status,r=e.notificationBackground,i=r===void 0?!0:r,a=me(e,Hte);return y.createElement(Bte.PopupStatus,he({status:n},a,{ref:t}),Gte(n,i))}),oI={status:Va.Success};b7.defaultProps=oI;var sI={status:F.oneOf(lt(Va))};b7.propTypes=sI;var Vte=I(I(I(I({},Va.Success,function(e){var t=e.theme.palette;return X(["background-color:",";"],t[L.BackgroundGreen])}),Va.Info,function(e){var t=e.theme.palette;return X(["background-color:",";"],t[L.BackgroundBlue])}),Va.Error,function(e){var t=e.theme.palette;return X(["background-color:",";"],t[L.BackgroundRed])}),Va.Warning,function(e){var t=e.theme.palette;return X(["background-color:",";"],t[L.BackgroundOrange])}),j0="PopupContent",Ute=Z.span.attrs({className:xe(j0,"LabelWrapper")}).withConfig({componentId:"sc-njbmnt-0"})(function(e){var t=e.theme.palette;return X(["display:flex;flex-grow:1;margin-left:44px;margin-right:28px;padding:16px;padding-right:0;overflow:hidden;background:",";"],t[L.ButtonPrimaryText])}),Wte=Z.span.attrs({className:xe(j0,"Label")}).withConfig({componentId:"sc-njbmnt-1"})(function(e){var t=e.theme,n=t.palette,r=t.typography.font;return X(["max-width:100%;overflow:hidden;text-overflow:ellipsis;color:",";",""],n[L.TextPrimary],r[_e.TextSmallUp])}),Xte=Z.div.attrs({className:xe(j0,"PopupContent")}).withConfig({componentId:"sc-njbmnt-2"})(function(e){var t=e.theme;return X(["position:relative;display:flex;align-items:center;width:360px;border-radius:4px;box-shadow:0px 2px 6px ",";"],t.palette[L.LargeShadow])}),Yte=Z.div.attrs({className:xe(j0,"PopupContent")}).withConfig({componentId:"sc-njbmnt-3"})(function(e){var t=e.theme;return X(["position:absolute;top:0;right:0;display:flex;justify-content:center;align-items:flex-start;box-sizing:border-box;padding:2px;height:fit-content;cursor:pointer;background:",";border-radius:0 4px 4px 0;height:100%;"],t.palette[L.BackgroundStateless])}),Kte=Z.div.attrs({className:xe(j0,"PopupStatus")}).withConfig({componentId:"sc-njbmnt-4"})(function(e){var t=e.status,n=t===void 0?"success":t;return X(["position:absolute;display:flex;left:0;z-index:1;height:100%;min-width:44px;align-items:center;justify-content:center;box-sizing:border-box;border-radius:4px 0 0 4px;",""],Vte[n])}),vh=Dt({PopupContent:Xte,PopupStatus:Kte,LabelWrapper:Ute,CloseWrapper:Yte,Label:Wte}),Zte=["onClose","message","status"];function sE(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 qy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sE(Object(n),!0).forEach(function(r){I(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var w7=ut(function(e,t){var n=e.onClose,r=e.message,i=e.status,a=me(e,Zte);return y.createElement(vh.PopupContent,he({},a,{ref:t}),y.createElement(vh.PopupStatus,he({status:i,message:r},a),y.createElement(b7,{status:i})),y.createElement(vh.LabelWrapper,null,y.createElement(vh.Label,null,r)),y.createElement(vh.CloseWrapper,null,y.createElement(hd,{size:"sm",onClick:n})))}),lI=qy({},oI);w7.defaultProps=lI;var cI=qy(qy({},sI),{},{message:F.node.isRequired,onClose:F.func});w7.propTypes=cI;var Hu={Center:"center",Left:"left",Right:"right"},x0={Top:"top",Bottom:"bottom"},qte=I(I(I({},Hu.Left,X(["left:25px;right:auto;"])),Hu.Center,X(["left:50%;right:auto;transform:translateX(-50%);"])),Hu.Right,X(["left:auto;right:25px;"])),$te=I(I({},x0.Top,X(["top:25px;bottom:auto;"])),x0.Bottom,X(["top:auto;bottom:25px;"])),Qte="Popup",Jte=Z.div.attrs({className:xe(Qte,"root")}).withConfig({componentId:"sc-jmtjri-0"})(function(e){var t=e.anchorOrigin;return X(["position:fixed;display:flex;align-items:center;justify-content:center;z-index:1400;"," ",""],qte[t?.horizontal||Hu.Left],$te[t?.vertical||x0.Bottom])}),ene=Dt({Popup:Jte}),tne=["autoHideDuration","anchorOrigin","open","onClose"];function lE(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 zf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lE(Object(n),!0).forEach(function(r){I(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var $y=ut(function(e,t){var n=e.autoHideDuration;e.anchorOrigin;var r=e.open,i=e.onClose,a=me(e,tne),o=jM(xe("Popup")),s=V.useState(n),c=Oe(s,2),d=c[0],h=c[1],b=V.useState(!1),m=Oe(b,2),g=m[0],v=m[1],w=function(){v(!1),h(1e3)};V.useEffect(function(){r&&h(n)},[r]),V.useEffect(function(){var C=null;return r&&!g&&d&&typeof i=="function"&&(C=setTimeout(i,d)),function(){C&&clearTimeout(C)}},[d,g,r,i]);var k=function(){return r?y.createElement(ene.Popup,he({onMouseEnter:function(){return v(!0)},onMouseLeave:w},e),y.createElement(w7,he({onClose:i},a,{ref:t}))):null};return P0.createPortal(k(),o)});$y.defaultProps=zf(zf({},lI),{},{open:!1,autoHideDuration:5e3,anchorOrigin:{vertical:x0.Bottom,horizontal:Hu.Left}}),$y.propTypes=zf(zf({},cI),{},{anchorOrigin:F.exact({vertical:F.oneOf(lt(x0)),horizontal:F.oneOf(lt(Hu))}),open:F.bool,autoHideDuration:F.number,onClose:F.func});var fc="RotationSlider",nne=Z.ul.attrs({className:xe(fc,"list")}).withConfig({componentId:"sc-1xuruq0-0"})(["display:flex;align-items:center;position:relative;padding:0;width:100%;list-style:none;"]),rne=Z.li.attrs({className:xe(fc,"big-dot")}).withConfig({componentId:"sc-1xuruq0-1"})(function(e){var t=e.theme.palette;return X(["width:8px;height:8px;border-radius:50%;background-color:",";cursor:pointer;"],t[L.LinkPrimary])}),ine=Z.div.attrs({className:xe(fc,"small-dot-wrapper")}).withConfig({componentId:"sc-1xuruq0-2"})(["padding:2px;"]),ane=Z.li.attrs({className:xe(fc,"small-dot")}).withConfig({componentId:"sc-1xuruq0-3"})(function(e){var t=e.theme.palette;return X(["width:2px;height:2px;border-radius:50%;background-color:",";cursor:pointer;"],t[L.LinkPrimary])}),one=Z.span.attrs({className:xe(fc,"control")}).withConfig({componentId:"sc-1xuruq0-4"})(function(e){var t=e.theme.palette;return X(["display:flex;justify-content:center;align-items:center;position:absolute;height:18px;width:2px;transform:translate(-50%,-50%);top:50%;background-color:",";& > 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;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cE(Object(n),!0).forEach(function(r){I(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Qy=ut(function(e,t){var n=e.min,r=n===void 0?0:n,i=e.max,a=i===void 0?100:i,o=e.angle,s=o===void 0?10:o,c=e.onChange;e.onMouseDown,e.onMouseUp;var d=e.step,h=d===void 0?1:d,b=e.labelTooltipOptions,m=b===void 0?sd.Off:b,g=e.annotation,v=g===void 0?"°":g,w=e.hideMarkText,k=w===void 0?!1:w,C=e.showCurrentMarkText,_=C===void 0?!1:C,f=e.value,x=e.railProps,E=x===void 0?{}:x,M=e.trackProps,j=M===void 0?{}:M,P=e.thumbProps,N=P===void 0?{}:P,T=e.labelTooltipProps,R=T===void 0?{}:T,z=e.markStyles,H=z===void 0?{}:z,J=e.markTextStyles,q=J===void 0?{}:J,Y=me(e,cne),le=function(oe,Q){c&&c(oe,Q)},K=function(){return f||f===0?f>a?a:f<r?r:f:r},ce=function(oe){return k?!1:_?K()===oe:!0},ne=function(){for(var oe=[],Q,$=r;$<=a;$+=h)Q=[],$%s===0||$===a?Q=y.createElement(Ll.RotationSliderMark,{key:$,style:Pr({},H)},ce($)&&y.createElement(Ll.RotationSliderMarkText,{style:Pr({},q)},$===r+1?a:$,y.createElement("sup",null,v)),y.createElement(Ll.RotationSliderBigDot,null)):$%10===0&&(Q=y.createElement(Ll.RotationSliderSmallDotWrapper,{key:$},y.createElement(Ll.RotationSliderSmallDot,null))),Array.isArray(Q)||oe.push(Q);return oe};return y.createElement(Xg,he({min:r,max:a,step:h,value:K(),hideTrack:!0,hideAnnotation:!0,annotation:v,onChange:le,labelTooltip:m,ref:t,components:{Rail:function(oe,Q){return y.createElement(Ll.RotationSliderList,he({},oe,{styles:Pr({},Q)}),ne())},Thumb:Ll.RotationSliderControl},componentsProps:{rail:Pr(Pr({},E),{},{style:Pr({},E.style)}),track:Pr(Pr({},j),{},{style:Pr({},j.style)}),thumb:Pr(Pr({},N),{},{style:Pr({top:"15%"},N.style)}),labelTooltip:Pr(Pr({},R),{},{style:Pr({},R.style)})}},Y,{defaultValue:Number(Y.defaultValue),style:Pr({width:"auto",height:"auto"},Y.style)}))});Qy.defaultProps={annotation:"°",min:0,max:100,step:1,labelTooltipOptions:sd.Off},Qy.propTypes={value:F.oneOfType([F.array,F.number]),min:F.number,max:F.number,angle:F.number,onChange:F.func,onMouseDown:F.func,onMouseUp:F.func,step:F.number,annotation:F.string,hideMarkText:F.bool,showCurrentMarkText:F.bool,railProps:F.object,trackProps:F.object,thumbProps:F.object,labelTooltipProps:F.object,markStyles:F.object,markTextStyles:F.object,labelTooltipOptions:F.oneOf(lt(sd))};var une="SelectGroup",dne=Z(aI.InputGroup).attrs({className:xe(une,"root")}).withConfig({componentId:"sc-1uvutwe-0"})([""]),hne=Dt({SelectGroup:dne}),fne=["children","size","error","label","placeholder","hint","LabelProps","SelectProps","selectProps","scroll","fullWidth","showSelectionKey","value","multiple","hideMenuItemsActions","onChange","readOnly","disabled","showClearIcon"];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 dE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uE(Object(n),!0).forEach(function(r){I(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var x7=ut(function(e,t){var n=e.children,r=e.size,i=e.error,a=e.label,o=e.placeholder,s=e.hint,c=e.LabelProps,d=e.SelectProps,h=e.selectProps,b=e.scroll,m=b===void 0?!0:b,g=e.fullWidth,v=e.showSelectionKey,w=e.value,k=e.multiple,C=e.hideMenuItemsActions,_=e.onChange,f=e.readOnly,x=e.disabled,E=e.showClearIcon,M=me(e,fne),j=function(){return a?typeof a=="function"?a({error:i}):Hr(a)==="object"?a:y.createElement($t,he({error:i},c||{}),a):null},P=function(){return s?typeof s=="function"?s({error:i}):Hr(s)==="object"?s:y.createElement(qg,{error:i},s):null};return y.createElement(hne.SelectGroup,he({},M,{ref:t}),j(),y.createElement(A0,he({error:i,value:w,size:r,scroll:m,onChange:_,multiple:k,fullWidth:!!g},d||{},{selectProps:h,readOnly:f,disabled:x,placeholder:o,showSelectionKey:v,hideMenuItemsActions:C,showClearIcon:E}),n),P())});x7.defaultProps={error:!1,fullWidth:!1,readOnly:!1,disabled:!1,scroll:!0,hideMenuItemsActions:!1},Tm.size;var pne=me(Tm,["size"]);x7.propTypes=dE(dE({},pne),{},{fullWidth:F.bool,size:F.oneOf(lt(ot)),label:F.node,hint:F.node,LabelProps:F.exact(l7),SelectProps:F.exact(Tm),selectProps:F.object,readOnly:F.bool,scroll:F.bool,showSelectionKey:F.bool,disabled:F.bool});var gne="Backdrop",mne=Z.div.attrs({className:xe(gne,"root")}).withConfig({componentId:"sc-txa5a-0"})(function(e){var t=e.theme.palette;return X(["position:fixed;display:flex;align-items:center;justify-content:center;inset:0px;background-color:",";transition:opacity 251ms cubic-bezier(0.4,0,0.2,1) 0ms;opacity:1;z-index:-1;"],t[L.Extra_0_3_Overlay])}),vne=Dt({Backdrop:mne}),Jy=ut(function(e,t){var n=he({},(tI(e),e));return y.createElement(vne.Backdrop,he({},n,{ref:t}))});Jy.defaultProps={},Jy.propTypes={};var Ei="Drawer",yne=Z.div.attrs({className:xe(Ei,"temporary")}).withConfig({componentId:"sc-1riasfx-0"})(function(e){var t=e.open;return X(["position:absolute;inset:0px;z-index:1200;visibility:",";"],!t&&"hidden")}),bne=Z.div.attrs({className:xe(Ei,"persistent")}).withConfig({componentId:"sc-1riasfx-1"})([""]),wne=Z.div.attrs({className:xe(Ei,"root")}).withConfig({componentId:"sc-1riasfx-2"})(function(e){var t=e.open,n=e.isCollapsed,r=e.top,i=r===void 0?0:r,a=e.theme,o=a.palette,s=a.shadows,c=a.breakpoints;return X(["display:flex;flex-direction:column;flex:1 0 auto;background-color:",";box-shadow:",";overflow-y:overlay;overflow-x:hidden;transform:",";visibility:",";transition:200ms;height:calc(100% - ","px);","{margin-top:0px;height:100%;}"," &{margin-top:0px;height:100%;}box-sizing:border-box;width:",";",""],o[L.BackgroundStateless],s[qr.LeftPanelMd],t?"none":"translateX(-100%)",!t&&"hidden",i,c.down("md"),c.classes.sm,n?"68px":"302px",UP)}),xne=Z.div.attrs({className:xe(Ei,"header")}).withConfig({componentId:"sc-1riasfx-3"})(function(e){var t=e.isCollapsed;return X(["display:",";justify-content:flex-start;align-items:center;position:relative;text-decoration:none;width:100%;box-sizing:border-box;text-align:left;margin-top:12px;transition:background-color 100ms ease-out;"],t?"none":"flex")}),Cne=Z.div.attrs({className:xe(Ei,"body")}).withConfig({componentId:"sc-1riasfx-4"})(["flex:1 1 auto;.SfxAccordionDetails-root{margin:0;}"]),Sne=Z.div.attrs({className:xe(Ei,"footer")}).withConfig({componentId:"sc-1riasfx-5"})(function(e){var t=e.isCollapsed;return X(["display:flex;flex-direction:column;width:100%;padding:",";"],t?"0px":"0px 8px")}),Ene=Z.ul.attrs({className:xe(Ei,"list")}).withConfig({componentId:"sc-1riasfx-6"})(function(){return X(["list-style:none;margin:12px 0;padding:0;position:relative;"])}),_ne=Z.li.attrs({className:xe(Ei,"item")}).withConfig({componentId:"sc-1riasfx-7"})(function(e){var t=e.theme.palette,n=e.isCollapsed,r=e.selected;return X(["display:",";justify-content:flex-start;align-items:center;position:relative;text-decoration:none;width:100%;box-sizing:border-box;text-align:left;padding:13px 16px;transition:background-color 100ms ease-out;margin-bottom:4px;cursor:pointer;&:hover{background-color:",";& > *{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;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hE(Object(n),!0).forEach(function(r){I(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var C7=ut(function(e,t){var n=e.children,r=e.open,i=e.iconsSize,a=i===void 0?20:i,o=e.collapsed,s=o===void 0?!1:o,c=e.top,d=e.hideBackdrop,h=e.disablePortal,b=e.collapseButtonLabel,m=b===void 0?"Collapse menu":b,g=e.persistentDrawerStyles,v=g===void 0?{}:g,w=e.temproryDrawerStyles,k=w===void 0?{}:w,C=e.variant,_=C===void 0?Ou.Auto:C,f=e.onClose,x=e.onCollapse,E=e.onCollapseClick,M=me(e,Ane),j=rM(),P=UY(j.breakpoints.down("xl")),N=V.useState(s),T=Oe(N,2),R=T[0],z=T[1],H=V.useRef(null),J=V.useMemo(function(){return a},[a]),q=document.querySelector("body");V.useEffect(function(){z(s)},[s]),V.useEffect(function(){x&&x(R)},[R]);var Y=function(){var re=!R;z(re),E&&E(re)},le=function(){typeof f=="function"&&f()},K=function(re){var we=!1;if(H!=null&&H.current){var W;we=(H==null||(W=H.current)===null||W===void 0?void 0:W.offsetWidth)>0}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=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t=e.lockCropAreaAt;return t}},{titleKey:"original",ratio:d8,icon:ZM},{titleKey:"landscape",descriptionKey:"16:9",ratio:bn(16/9),icon:RQ},{titleKey:"portrait",descriptionKey:"9:16",ratio:bn(9/16),icon:BJ},{titleKey:"ellipse",ratio:hc,icon:qM}],Gne=Z.div.withConfig({componentId:"sc-ldar2z-0"})(["display:flex;"]),Vne=Z(Ci).withConfig({componentId:"sc-ldar2z-1"})(["margin:0 0 0 6px;padding:0;"]),dI=Z.div.withConfig({componentId:"sc-ldar2z-2"})(["svg,span{vertical-align:middle;}"]),Une=Z($t).withConfig({componentId:"sc-ldar2z-3"})(["cursor:pointer;",""],function(e){var t=e.theme.typography;return t.font[_e.InputSm]}),Wne=Z.div.withConfig({componentId:"sc-ldar2z-4"})(["min-width:270px;border-radius:4px;overflow:hidden;background-color:",";"],function(e){var t=e.theme.palette;return t[L.BackgroundStateless]}),hI=Z(ya).withConfig({componentId:"sc-ldar2z-5"})(["display:flex;gap:10px;justify-content:flex-start;align-items:center;border-radius:4px;padding:8px 16px;"," ",""],function(e){var t=e.isAccordion;return t&&"padding-left: 22px;"},function(e){var t=e.isListItem;return t&&"padding: 0;"}),Xne=Z($t).withConfig({componentId:"sc-ldar2z-6"})(function(e){var t=e.theme;return X(["color:",";",";"],t.palette[L.TextPrimary],t.typography.font[_e.InputMd])}),Yne=Z(Kg).withConfig({componentId:"sc-ldar2z-7"})(function(e){var t=e.theme;return X([".SfxAccordionHeader-icon{padding-left:0;}.SfxAccordionHeader-label{",";color:",";}.SfxAccordionHeader-root{display:flex;flex-direction:row-reverse;width:fit-content;gap:10px;}"],t.typography.font[_e.LabelMediumEmphasis],t.palette[L.TextPrimary])}),S7=function(e){var t=e.titleKey,n=e.description,r=e.ratio,i=e.onClick,a=e.Icon,o=e.isActive,s=e.isAccordion,c=e.theme,d=e.width,h=e.height,b=e.t,m=e.disableManualResize,g=e.noEffect;return y.createElement(hI,{active:o,onClick:function(v){return i(v,r,{ratioTitleKey:t,width:d,height:h,disableManualResize:m,noEffect:g})},isAccordion:s},a&&y.createElement(dI,null,typeof a=="string"?y.createElement("span",{dangerouslySetInnerHTML:{__html:a}}):y.createElement(a,{color:c.palette["icon-primary"]})),y.createElement(Xne,null,b(t)),n&&y.createElement(Une,null,n))};S7.defaultProps={Icon:void 0,width:void 0,height:void 0,disableManualResize:!1,isAccordion:!1,noEffect:!1};function mE(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 vE(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?mE(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):mE(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var Kne=function(e){var t=e.groupTitleKey,n=e.items,r=e.onItemSelect,i=e.t,a=e.isExpanded,o=e.setExpandedGroup,s=$e(),c=s.adjustments.crop,d=c.ratio,h=c.ratioGroupKey,b=c.ratioTitleKey,m=s.theme,g=function(v,w,k){r(v,w,vE(vE({},k),{},{ratioGroupKey:t}))};return y.createElement(Yne,{label:i(t),onChange:function(){o(a?null:t)},expanded:a},n.map(function(v){var w=v.titleKey,k=v.ratio,C=v.width,_=v.height,f=v.descriptionKey,x=v.icon,E=v.disableManualResize,M=v.noEffect,j=k??bn(C/_);return y.createElement(S7,{key:w,titleKey:w,t:i,description:i(f),size:"sm",onClick:g,width:C,height:_,ratio:j,Icon:x,theme:m,isAccordion:!0,disableManualResize:E,isActive:d===j&&b===w&&h===t,noEffect:M})}))};function yE(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 bE(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?yE(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):yE(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var fI=function(e){var t=e.titleKey,n=e.Icon,r=e.theme,i=e.groups,a=e.onItemSelect,o=e.t,s=$e(),c=s.adjustments.crop,d=c.ratioFolderKey,h=c.ratioGroupKey,b=V.useState(""),m=Oe(b,2),g=m[0],v=m[1],w=function(k,C,_){a(k,C,bE(bE({},_),{},{ratioFolderKey:t}))};return y.createElement(hI,{isListItem:!0,list:[{content:o(t),key:t,active:t===d,prefix:n&&y.createElement(dI,null,typeof n=="string"?y.createElement("span",{dangerouslySetInnerHTML:{__html:n}}):y.createElement(n,{color:r.palette["icon-primary"]})),subList:i.map(function(k){var C=k.titleKey,_=k.items;return{content:y.createElement(Kne,{groupTitleKey:C,setExpandedGroup:v,isExpanded:g===""?h===C:g===C,t:o,items:_,onItemSelect:w}),key:C,disableHover:!0}}),subMenuProps:{style:{backgroundColor:r.palette[L.BackgroundStateless]}}}]})};fI.defaultProps={Icon:void 0};var pI=function(e){var t=e.anchorEl,n=e.onClose,r=$e(),i=r.dispatch,a=r.t,o=r.adjustments,s=o===void 0?{}:o,c=s.crop,d=c===void 0?{}:c,h=d.ratio,b=d.ratioTitleKey,m=d.ratioFolderKey,g=r.shownImageDimensions,v=r.config,w=r.theme,k=v[de.CROP],C=ba(),_=V.useMemo(function(){var x=k.presetsItems,E=x===void 0?[]:x,M=k.presetsFolders,j=M===void 0?[]:M,P=k.lockCropAreaAt,N=P?gE.filter(function(T){var R;return!((R=T.hide)!==null&&R!==void 0&&R.call(T,{lockCropAreaAt:P}))}):gE;return[].concat(an(j),an(N),an(E))},[k]),f=function(x,E,M){x.stopPropagation();var j={ratio:E,ratioTitleKey:M.ratioTitleKey,ratioGroupKey:M.ratioGroupKey,ratioFolderKey:M.ratioFolderKey,noEffect:M.noEffect};i({type:M7,payload:j}),k.autoResize&&(i({type:Gu,payload:{width:M.width,height:M.height,manualChangeDisabled:M.disableManualResize}}),i({type:pd,payload:{factor:M.width>g.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(0<T),k(0<z)}},f=function(j,P){var N=j.findIndex(function(T){return T.classList.contains("FIE_carousel-item")});N!==-1&&(j[N].scrollIntoView({inline:P,behavior:"smooth",block:"nearest"}),setTimeout(function(){_()},500))},x=function(j){if(i.current){var P,N=(((P=j.touches)===null||P===void 0?void 0:P[0])||j).pageX;a.current.scrollBy(i.current-N,0),i.current=N,Sm(_,30)()}},E=function(){i.current=null,document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",E),document.removeEventListener("touchmove",x),document.removeEventListener("touchcancel",E),document.removeEventListener("touchend",E)},M=function(j){var P;i.current=(((P=j.touches)===null||P===void 0?void 0:P[0])||j).pageX,document.addEventListener("mousemove",x),document.addEventListener("mouseup",E),document.addEventListener("touchmove",x),document.addEventListener("touchcancel",E),document.addEventListener("touchend",E)};return V.useEffect(function(){a.current&&c(a.current,_)},[]),y.createElement(cre,{className:"".concat(r,"-wrapper"),style:n,onMouseDown:M,onTouchStart:M},b&&y.createElement(hre,{className:"FIE_carousel-prev-button",onClick:function(j){var P=By(),N=P.topOffset,T=P.leftOffset,R=document.elementsFromPoint(j.pageX+j.currentTarget.offsetWidth-T,j.pageY-N);f(R,"end")}},y.createElement(QM,null)),y.createElement(ure,{className:"".concat(r,"-items"),ref:a},C.map(function(j){return y.createElement(dre,{className:"".concat(r,"-item-wrapper FIE_carousel-item"),key:j.key},j)})),w&&y.createElement(fre,{className:"FIE_carousel-next-button",onClick:function(j){var P=By(),N=P.topOffset,T=P.leftOffset,R=document.elementsFromPoint(j.pageX-j.currentTarget.offsetWidth-T,j.pageY-N);f(R,"start")}},y.createElement(dJ,null)))};Lm.defaultProps={style:null};var pre=Z.div.withConfig({componentId:"sc-oxugzy-0"})(["display:inline-flex;flex-direction:column;align-items:center;justify-content:center;padding:0px 2px;gap:6px;cursor:pointer;border-radius:2px;canvas{border-radius:2px;}"]),gre=Z(_T).withConfig({componentId:"sc-oxugzy-1"})(["[aria-selected='true'] &{padding:1px;border:1px solid ",";border-radius:2px;}"],function(e){var t=e.theme;return t.palette["accent-primary-active"]}),mre=Z($t).withConfig({componentId:"sc-oxugzy-2"})(function(e){var t=e.theme;return X(["color:",";",";[aria-selected='true'] &{color:",";}"],t.palette[L.TextPrimary],t.typography.font[_e.LabelExtraSmallUp],t.palette["accent-primary-active"])}),Bf=60,Hf=45,EI=function(e){var t=e.filterLabel,n=e.filterFn,r=e.applyFilter,i=e.isActive,a=e.image,o=V.useRef(),s=V.useCallback(function(){r(n)},[n]),c=V.useCallback(function(){o.current?o.current.cache():setTimeout(c,0)},[]);V.useEffect(function(){return a&&c(),function(){var g;(g=o.current)===null||g===void 0||g.clearCache()}},[a]);var d=a.width/a.height,h=1>d,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=2<arguments.length&&arguments[2]!==void 0?arguments[2]:0,g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:100;n(I({},h,Hn(b,m,g)))};return y.createElement(Qs,{preventFlex:!0},y.createElement($t,null,r("shadow")),y.createElement(OE,null,y.createElement(Vf,null,y.createElement($t,null,r("horizontal")),y.createElement($n,{annotation:"px",min:-100,max:100,onChange:function(h){return d("shadowOffsetX",h,-100,100)},value:i||0,hideTrack:!0})),y.createElement(Vf,null,y.createElement($t,null,r("vertical")),y.createElement($n,{annotation:"px",min:-100,max:100,onChange:function(h){return d("shadowOffsetY",h,-100,100)},value:a||0,hideTrack:!0}))),y.createElement(OE,null,y.createElement(Vf,null,y.createElement($t,null,r("blur")),y.createElement($n,{annotation:"%",onChange:function(h){return d("shadowBlur",h)},value:o})),y.createElement(Vf,null,y.createElement($t,null,r("opacity")),y.createElement($n,{annotation:"%",onChange:function(h){return d("shadowOpacity",h/100,0,1)},value:Math.round(100*c)}))),y.createElement(jm,{color:s,onChange:function(h){n({shadowColor:h})},colorFor:"shadow"}))},Nre=function(e,t,n){var r=e.width,i=e.height,a=e.scaleX,o=a===void 0?1:a,s=e.scaleY,c=s===void 0?1:s,d=e.rotation,h=d===void 0?0:d,b=e.padding,m=b===void 0?0:b,g=e.radius,v=e.radiusX,w=e.radiusY,k=Gs((r||2*(g||v))*o,(i||2*(g||w))*c,h),C=t.attrs,_=C.clipWidth,f=C.clipHeight,x=C.clipX,E=x===void 0?0:x,M=C.clipY,j=M===void 0?0:M,P={left:E+k.offsetLeft+m,center:E+_/2-(k.width/2-k.offsetLeft)+m,right:E+_-k.width-m+k.offsetLeft},N={top:j+k.offsetTop+m,middle:j+f/2-(k.height/2-k.offsetTop)+m,bottom:j+f-k.height-m+k.offsetTop},T=I(I(I(I(I(I(I(I(I({},zn.TOP_LEFT,function(){return{x:P.left,y:N.top}}),zn.TOP_CENTER,function(){return{x:P.center,y:N.top}}),zn.TOP_RIGHT,function(){return{x:P.right,y:N.top}}),zn.MIDDLE_LEFT,function(){return{x:P.left,y:N.middle}}),zn.MIDDLE_CENTER,function(){return{x:P.center,y:N.middle}}),zn.MIDDLE_RIGHT,function(){return{x:P.right,y:N.middle}}),zn.BOTTOM_LEFT,function(){return{x:P.left,y:N.bottom}}),zn.BOTTOM_CENTER,function(){return{x:P.center,y:N.bottom}}),zn.BOTTOM_RIGHT,function(){return{x:P.right,y:N.bottom}});return T[n]()},PE=Object.values(zn),Dre=I(I(I(I(I(I(I(I(I({},zn.TOP_LEFT,-145),zn.TOP_CENTER,-90),zn.TOP_RIGHT,-45),zn.MIDDLE_LEFT,180),zn.MIDDLE_CENTER,0),zn.MIDDLE_RIGHT,0),zn.BOTTOM_LEFT,135),zn.BOTTOM_CENTER,90),zn.BOTTOM_RIGHT,45),uo={OPACITY:"opacity",STROKE:"stroke",SHADOW:"shadow",POSITION:"position"},Rre=function(e){var t=e.annotation,n=e.updateAnnotation,r=V.useState(null),i=Oe(r,2),a=i[0],o=i[1],s=$e(),c=s.designLayer,d=function(b){n(Nre(t,c,b)),o(b)},h=PE.length;return PE.map(function(b,m){return y.createElement(V.Fragment,{key:b},y.createElement(Fs,{onClick:function(){return d(b)},active:a===b,secondaryIconColor:!0,addThinBorder:!0},b===zn.MIDDLE_CENTER?y.createElement(CQ,null):y.createElement(rJ,{style:{transform:"rotate(".concat(Dre[b],"deg)")}})),(m+1)%3==0&&m+1!==h&&y.createElement("div",null))})},Fre=["children","morePoppableOptionsPrepended","moreOptionsPopupComponentsObj","morePoppableOptionsAppended","annotation","updateAnnotation","hideFillOption","hidePositionField","className"];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 ME(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?TE(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):TE(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var Ro=function(e){var t=e.children,n=e.morePoppableOptionsPrepended,r=e.moreOptionsPopupComponentsObj,i=e.morePoppableOptionsAppended,a=e.annotation,o=e.updateAnnotation,s=e.hideFillOption,c=e.hidePositionField,d=e.className,h=me(e,Fre),b=V.useState(null),m=Oe(b,2),g=m[0],v=m[1],w=V.useState(null),k=Oe(w,2),C=k[0],_=k[1],f=$e(),x=f.config.useCloudimage,E=f.t,M=ba(320),j=V.useMemo(function(){return[].concat(an(n),[{titleKey:"opacity",name:uo.OPACITY,Icon:HQ}],an(x?[]:[{titleKey:"stroke",name:uo.STROKE,Icon:zQ},{titleKey:"shadow",name:uo.SHADOW,Icon:VQ}]),[c?void 0:{titleKey:"position",name:uo.POSITION,Icon:YQ}])},[n]),P=V.useMemo(function(){return ME(ME({},r),{},I(I(I(I({},uo.OPACITY,_re),uo.STROKE,Lre),uo.SHADOW,jre),uo.POSITION,Rre),i)},[r]),N=V.useCallback(function(z,H){var J=z?.currentTarget;v(J),_(H)},[]),T=V.useCallback(function(z){o({fill:z})},[o]),R=g&&C&&P[C];return y.createElement(xre,{className:"FIE_annotations-options".concat(d?" ".concat(d):""),isPhoneScreen:M},!s&&y.createElement(jm,{color:a.fill,onChange:T,colorFor:"fill"}),t,y.createElement(Cre,null,j.map(function(z){return z&&y.createElement(Fs,{className:"FIE_annotation-option-triggerer",key:z.name,title:E(z.titleKey),onClick:function(H){return N(H,z.name)},active:C===z.name},y.createElement(z.Icon,{size:20}))})),R&&y.createElement(Do,{className:"FIE_annotation-option-popup",anchorEl:g,open:!!g,onClose:N,position:"top"},y.createElement(tm,null,C===uo.POSITION?function(){return y.createElement(y.Fragment,null,y.createElement($t,null,E("position")),y.createElement(tm,{position:!0},y.createElement(R,he({annotation:a,updateAnnotation:o},h))))}():y.createElement(R,he({annotation:a,updateAnnotation:o},h)))))};Ro.defaultProps={children:void 0,morePoppableOptionsPrepended:[],moreOptionsPopupComponentsObj:{},morePoppableOptionsAppended:[],hideFillOption:!1,hidePositionField:!1,className:void 0};var zre=Z(A0).withConfig({componentId:"sc-1cwdnjz-0"})(["width:160px;"]),Bre=Z(lc).withConfig({componentId:"sc-1cwdnjz-1"})(["width:72px;"]),Hre=Z.div.withConfig({componentId:"sc-1cwdnjz-2"})(["display:flex;"]),Gre=0,Vre=100,IE=1,Ure=function(e){var t=e.annotation,n=e.updateAnnotation,r=e.t,i=t.letterSpacing,a=t.lineHeight,o=function(s,c){n(I({},s,Hn(c,Gre,Vre)))};return y.createElement(Qs,{preventFlex:!0},y.createElement($t,null,r("letterSpacing")),y.createElement($n,{annotation:"px",isActive:!!i,onChange:function(s){return o("letterSpacing",s)},value:i,step:IE}),y.createElement($t,null,r("lineHeight")),y.createElement($n,{annotation:"px",isActive:!!a,onChange:function(s){return o("lineHeight",s)},value:a,step:IE}))},Wre={transform:"scaleX(-1)"},Xre=function(e){var t=e.annotation,n=e.updateAnnotation,r=t.align,i=function(a){n({align:a})};return y.createElement(Qs,null,y.createElement(Fs,{onClick:function(){return i("left")},active:r==="left"},y.createElement($S,null)),y.createElement(Fs,{onClick:function(){return i("center")},active:r==="center"},y.createElement(XM,null)),y.createElement(Fs,{onClick:function(){return i("right")},active:r==="right"},y.createElement($S,{style:Wre})))},Yre=[{titleKey:"textAlignment",name:"text-alignment",Icon:XM},{titleKey:"textSpacings",name:"text-spacings",Icon:ZQ}],Kre=I(I({},"text-alignment",Xre),"text-spacings",Ure),Je,Nt,Xh,o6,s6,PI=function(e){if(e.target!==Je){var t=Je.value;nm(),o6(t)}},nm=function(){Je&&Je.remove(Je),window&&window.removeEventListener("click",PI),Nt&&Nt.show(),Xh&&Xh.show(),typeof s6=="function"&&s6(),Nt=null,Je=null,Xh=null},Zre=function(e,t,n,r,i){function a(b){var m=b;m||(m=Nt.placeholder.length*Nt.fontSize());var g=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);(g||h)&&(m=Math.ceil(m));var v=document.documentMode||/Edge/.test(navigator.userAgent);v&&(m+=1),Je.style.width="".concat(m,"px")}o6=r,s6=i,Xh=n,Nt=t.findOne("#".concat(e)),Nt.hide(),Xh.hide();var o=Nt.absolutePosition();Je=document.createElement("textarea"),t.container().parentNode.appendChild(Je),Je.value=Nt.text(),Je.style.position="absolute",Je.style.top="".concat(o.y,"px"),Je.style.left="".concat(o.x,"px"),Je.style.width="".concat(Nt.width()-2*Nt.padding(),"px"),Je.style.height="".concat(Nt.height()-2*Nt.padding()+5,"px"),Je.style.maxWidth="".concat(Nt.width()-2*Nt.padding(),"px"),Je.style.maxHeight="".concat(Nt.height()-2*Nt.padding()+5,"px"),Je.style.fontSize="".concat(Nt.fontSize(),"px"),Je.style.border="1px solid rgba(0, 0, 0, 0.5)",Je.style.padding="0px",Je.style.margin="0px",Je.style.overflow="hidden",Je.style.background="none",Je.style.outline="none",Je.style.resize="none",Je.style.lineHeight=Nt.lineHeight(),Je.style.fontFamily=Nt.fontFamily(),Je.style.transformOrigin="left top",Je.style.textAlign=Nt.align(),Je.style.fontStyle=Nt.fontStyle(),Je.style.letterSpacing=Nt.letterSpacing(),Je.style.lineHeight=Nt.lineHeight(),Je.style.color=Nt.fill();var s=Nt.rotation(),c="";s&&(c+="rotateZ(".concat(s,"deg)"));var d=0,h=-1<navigator.userAgent.toLowerCase().indexOf("firefox");h&&(d+=2+Math.round(Nt.fontSize()/20)),c+="translateY(-".concat(d,"px)"),Je.style.transform=c,Je.style.height="auto",Je.style.height="".concat(Je.scrollHeight+3,"px"),Je.focus(),Je.addEventListener("keydown",function(b){if(b.key==="Enter"&&!b.shiftKey){var m=Je.value;nm(),o6(m)}b.key==="Escape"&&nm()}),Je.addEventListener("keydown",function(b){if(b.key!=="Enter"&&b.key!=="Escape"){var m=Nt.getAbsoluteScale().x;a(Nt.width()*m),Je.style.height="auto",Je.style.height="".concat(Je.scrollHeight+Nt.fontSize(),"px")}}),window&&setTimeout(function(){window.addEventListener("click",PI)})},E7=function(e){var t=e.text,n=e.saveText,r=e.children,i=$e(),a=i.dispatch,o=i.textIdOfEditableContent,s=i.designLayer,c=i.t,d=i.config,h=d.useCloudimage,b=d[de.TEXT],m=b.fonts,g=m===void 0?[]:m,v=b.onFontChange,w=V.useCallback(function(x){var E=x.target,M=E.name,j=E.value,P=E.type;n(function(N){return I({id:N.id},M,P==="number"?Hn(j,1,500):j)})},[n]),k=V.useCallback(function(x){if(w({target:{name:"fontFamily",value:x}}),t.fontFamily!==x&&typeof v=="function"){var E=s.draw.bind(s);v(x,E)}},[w,t,s]),C=V.useCallback(function(x){var E,M=((E=t.fontStyle)===null||E===void 0?void 0:E.replace("normal","").split(" "))||[];0<Object.keys(M).length&&M.includes(x)?M=M.filter(function(j){return j!==x}):M.push(x),w({target:{name:"fontStyle",value:M.join(" ").trim()||"normal"}})},[t]),_=V.useCallback(function(){a({type:I7,payload:{textIdOfEditableContent:null}})},[]),f=V.useCallback(function(x){w({target:{name:"text",value:x}}),_()},[]);return V.useEffect(function(){var x;if(o&&t.id===o){var E=s.getStage(),M=Oe(E.findOne("#".concat(kT)).children,1);x=M[0],Zre(o,E,x,f,_)}return function(){x&&o&&nm()}},[o]),y.createElement(Ro,{className:"FIE_text-tool-options",annotation:t,updateAnnotation:n,morePoppableOptionsPrepended:h?[]:Yre,moreOptionsPopupComponentsObj:h?{}:Kre,t:c},Array.isArray(g)&&1<g.length&&y.createElement(zre,{className:"FIE_text-font-family-option",onChange:k,value:t.fontFamily,placeholder:c("fontFamily"),size:"sm"},g.map(function(){var x,E,M,j=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"";return y.createElement(ya,{className:"FIE_text-font-family-item",key:(x=j.value)!==null&&x!==void 0?x:j,value:(E=j.value)!==null&&E!==void 0?E:j},(M=j.label)!==null&&M!==void 0?M:j)})),y.createElement(Bre,{className:"FIE_text-size-option",value:t.fontSize||"",name:"fontSize",onChange:w,inputMode:"numeric",type:"number",size:"sm",placeholder:c("size")}),y.createElement(Hre,null,!h&&y.createElement(y.Fragment,null,y.createElement(Fs,{className:"FIE_text-bold-option",active:(t.fontStyle||"").includes("bold"),onClick:function(){return C("bold")},watermarkTool:!0},y.createElement(sJ,{size:20})),y.createElement(Fs,{className:"FIE_text-italic-option",active:(t.fontStyle||"").includes("italic"),onClick:function(){return C("italic")},watermarkTool:!0},y.createElement(aJ,{size:20}))),r))};E7.defaultProps={children:null};var qre=function(e){var t=e.t,n=Ys({name:de.TEXT}),r=Oe(n,2),i=r[0],a=r[1];return y.createElement(E7,{text:i,saveText:a,t})},TI=function(e){var t=e.selectTool,n=e.isSelected,r=e.t;return y.createElement(Qn,{className:"FIE_image-tool-button",id:de.IMAGE,label:r("imageTool"),Icon:ZM,onClick:t,isSelected:n})};TI.defaultProps={isSelected:!1};var $re=Z.input.withConfig({componentId:"sc-h20emh-0"})(["display:none;width:1px;height:1px;position:absolute;z-index:-1;"]),Qre=function(e,t){return y.createElement($re,he({type:"file",ref:t},e))};const MI=V.forwardRef(Qre);var Jre=Z.div.withConfig({componentId:"sc-m9ezm7-0"})(["display:flex;align-items:center;margin-left:",";flex-shrink:0;"],function(e){var t=e.noMargin;return t?"0":"12px"}),eie=Z(Ci).withConfig({componentId:"sc-m9ezm7-1"})(["flex-grow:1;justify-content:center;align-items:center;"]),tie=Z(Do).withConfig({componentId:"sc-m9ezm7-2"})(["padding:8px;background-color:",";"],function(e){var t=e.theme.palette;return t[L.BackgroundStateless]}),nie=Z(ya).withConfig({componentId:"sc-m9ezm7-3"})(["border-radius:4px;"]),rie=Z(Xy).withConfig({componentId:"sc-m9ezm7-4"})(["display:flex;align-items:center;"]),Nm=function(e){var t=e.onClick,n=e.title,r=e.label,i=e.color,a=e.menuFromBtn,o=e.menuItems,s=e.menuPosition,c=s===void 0?"bottom":s,d=e.disabled,h=d!==void 0&&d,b=e.className,m=e.menuStyle,g=e.wrapperStyle,v=e.buttonRef,w=e.noMargin,k=$e(),C=k.t,_=V.useRef(!0),f=V.useState(null),x=Oe(f,2),E=x[0],M=x[1],j="sm",P=o.filter(Boolean),N=1<P.length,T=function(H){_.current&&M(H.currentTarget)},R=function(){_.current&&M(null)},z=function(H){typeof H=="function"&&H(),R()};return V.useEffect(function(){return _.current=!0,function(){_.current=!1}},[]),y.createElement(y.Fragment,null,y.createElement(Jre,{className:"".concat(b,"-wrapper"),style:g,ref:v,noMargin:w},y.createElement(eie,{className:"".concat(b,"-button"),color:i,size:j,title:n,onClick:h?void 0:function(H){var J;return a&&N?void T(H):void(typeof t=="function"?t():(J=P[0])!==null&&J!==void 0&&J.onClick&&P[0].onClick())},disabled:h},r||C("saveAs"))),N&&y.createElement(tie,{className:"".concat(b,"-menu"),anchorEl:E,onClose:R,open:!0,style:m,position:c},o.map(function(H){return H&&y.createElement(nie,{className:"".concat(b,"-menu-item"),key:H.key,active:H.isActive,onClick:function(){return z(H.onClick)},size:j},H.icon&&y.createElement(rie,{size:j},typeof H.icon=="string"?y.createElement("span",{dangerouslySetInnerHTML:{__html:H.icon}}):y.createElement(H.icon,null)),y.createElement(Pm,null,H.label))})))};Nm.defaultProps={title:"",label:"",color:"primary",menuFromBtn:!1,noMargin:!1,menuPosition:"bottom",onClick:void 0,disabled:!1,menuStyle:void 0,wrapperStyle:void 0,buttonRef:void 0};var _7=function(e){var t=e.image,n=e.saveImage,r=e.children,i=e.t;return y.createElement(Ro,{className:"FIE_image-tool-options",annotation:t,updateAnnotation:n,t:i,hideFillOption:!0},r)};_7.defaultProps={children:null};var iie=Z.div.withConfig({componentId:"sc-dqni47-0"})(["background:",";box-shadow:0px 1px 2px ",";border-radius:4px;padding:8px;overflow-y:auto;max-height:350px;max-width:300px;"],function(e){var t=e.theme;return t.palette["bg-secondary"]},function(e){var t=e.theme;return t.palette["light-shadow"]}),aie=Z.div.withConfig({componentId:"sc-dqni47-1"})(["display:inline-flex;align-items:center;justify-content:center;width:60px;height:60px;margin:4px;padding:4px;cursor:pointer;border-radius:4px;border:2px solid ",";user-select:none;:hover{border-color:",";}img{width:100%;height:100%;object-fit:contain;}"],function(e){var t=e.theme;return t.palette["bg-primary-active"]},function(e){var t=e.theme;return t.palette["accent-primary-active"]}),II=function(e){var t=e.gallery,n=e.anchorEl,r=e.onClose,i=e.onSelect;return y.createElement(Om,{className:"FIE_image-tool-gallery",anchorEl:n,open:!!n,position:"top",onClick:r,overlay:!0},y.createElement(iie,null,t.map(function(a){var o=a.originalUrl,s=a.previewUrl;return y.createElement(aie,{key:o,onClick:function(){return i(o)}},y.createElement("img",{src:s,alt:s,crossOrigin:"Anonymous",draggable:!1}))})))};II.defaultProps={gallery:[],anchorEl:null};var AE=.15,oie=function(){var e=V.useState(),t=Oe(e,2),n=t[0],r=t[1],i=V.useState(null),a=Oe(i,2),o=a[0],s=a[1],c=V.useRef(),d=V.useRef(),h=$e(),b=h.shownImageDimensions,m=h.dispatch,g=h.adjustments.crop,v=g===void 0?{}:g,w=h.t,k=h.config,C=k===void 0?{}:k,_=C[de.IMAGE],f=!_.disableUpload,x=Array.isArray(_.gallery)&&0<_.gallery.length,E=Ys({name:de.IMAGE,opacity:1},!1),M=Oe(E,3),j=M[0],P=M[1],N=M[2],T=V.useRef(0),R=function(le){var K=v.width||b.width,ce=v.height||b.height,ne=v.x||0,oe=v.y||0,Q=Math.min(1,K/(le.width+le.width*AE),ce/(le.height+le.height*AE));N({image:le,x:ne+K/2-le.width*Q/2,y:oe+ce/2-le.height*Q/2,width:le.width*Q,height:le.height*Q})},z=function(le){T.current+=1,T.current===le&&(T.current=0,r(!1))},H=function(le){m({type:Xs,payload:{feedback:{message:le,status:nd.WARNING}}})},J=function(){c.current&&c.current.click()},q=function(){s(d.current)},Y=V.useMemo(function(){return[f&&{key:"add-by-upload-image",label:w(n?"importing":"uploadImage"),icon:$M,onClick:n?void 0:J},x&&{key:"add-from-gallery",label:w("fromGallery"),icon:cQ,onClick:q}]},[_,n,w]);return y.createElement(_7,{image:j,saveImage:P,t:w},y.createElement(Nm,{className:"FIE_image-tool-add-option",color:"secondary",label:w("addImage"),title:w("addImageTitle"),menuPosition:"top",menuItems:Y,size:"sm",style:{maxHeight:24},buttonRef:d,menuFromBtn:!0}),f&&y.createElement(MI,{ref:c,onChange:n?void 0:function(le){if(le.target.files){r(!0);var K=[],ce=Array.from(le.target.files),ne=ce.length;if(ce.forEach(function(Q){if(Q.type.startsWith("image/")){var $=new Image;$.onload=function(){R($),URL.revokeObjectURL(Q),z(ne)},$.onerror=function(){H(w("uploadImageError")),z(ne)},$.src=URL.createObjectURL(Q)}else K.push(Q.name),z(ne)}),0<K.length){var oe=1<K.length?w("areNotImages"):w("isNotImage");H("".concat(K.join(", ")," ").concat(oe," ").concat(w("toBeUploaded"),"."))}}le.target.value=""},disabled:n,multiple:!0}),x&&y.createElement(II,{gallery:_.gallery,onSelect:function(le){r(!0);var K=new Image;K.onload=function(){R(K),z(1)},K.onerror=function(){H(w("uploadImageError")),z(1)},K.crossOrigin="Anonymous",K.src=le},onClose:function(){s(null)},anchorEl:o}))},AI=function(e){var t=e.selectTool,n=e.isSelected,r=e.t;return y.createElement(Qn,{className:"FIE_rect-tool-button",id:de.RECT,label:r("rectangleTool"),Icon:rQ,onClick:t,isSelected:n})};AI.defaultProps={isSelected:!1};var LE=0,jE=150,sie=function(e){var t=e.annotation,n=e.updateAnnotation,r=e.t,i=t.cornerRadius;return y.createElement(Qs,null,y.createElement($t,null,r("cornerRadius")),y.createElement($n,{annotation:"px",onChange:function(a){n({cornerRadius:Hn(a,LE,jE)})},value:i,min:LE,max:jE,noMargin:!0}))},lie=[{titleKey:"cornerRadius",name:"corner-radius",Icon:WQ}],cie=I({},"corner-radius",sie),uie=function(e){var t=e.t,n=Ys({name:de.RECT}),r=Oe(n,2),i=r[0],a=r[1];return y.createElement(Ro,{className:"FIE_rect-tool-options",moreOptionsPopupComponentsObj:cie,morePoppableOptionsPrepended:lie,annotation:i,updateAnnotation:a,t})},LI=function(e){var t=e.selectTool,n=e.isSelected,r=e.t;return y.createElement(Qn,{className:"FIE_ellipse-tool-button",id:de.ELLIPSE,label:r("ellipseTool"),Icon:qM,onClick:t,isSelected:n})};LI.defaultProps={isSelected:!1};var die=function(e){var t=e.t,n=Ys({name:de.ELLIPSE}),r=Oe(n,2),i=r[0],a=r[1];return y.createElement(Ro,{className:"FIE_ellipse-tool-options",annotation:i,updateAnnotation:a,t})},jI=function(e){var t=e.selectTool,n=e.isSelected,r=e.t;return y.createElement(Qn,{className:"FIE_pen-tool-button",id:de.PEN,label:r("penTool"),Icon:cee,onClick:t,isSelected:n})};jI.defaultProps={isSelected:!1};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 ev(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?NE(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):NE(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var ps={passive:!0},hie=function(e){var t=e.t,n=$e(),r=n.dispatch,i=n.designLayer,a=n.previewGroup,o=n.config,s=Ys(ev(ev(ev({},o.annotationsCommon),o[de.PEN]),{},{name:de.PEN}),!1),c=Oe(s,3),d=c[0],h=c[1],b=c[2],m=V.useRef(null),g=V.useRef({points:[],moved:!1,id:""}),v=V.useCallback(function(){var _=oM(m.current.content),f=Hp(a,_);return[f.offsetX-(i.attrs.xPadding||0),f.offsetY-(i.attrs.yPadding||0)]},[i]),w=V.useCallback(function(){g.current.moved?(g.current.points=g.current.points.concat(v()),r({type:Ql,payload:{id:g.current.id,points:g.current.points,dismissHistory:!0}})):(g.current={moved:!0,id:Cm(de.PEN),points:[].concat(an(g.current.points),an(v()))},b({id:g.current.id,name:de.PEN,points:g.current.points}))},[v]),k=V.useCallback(function(){g.current.id&&o[de.PEN].selectAnnotationAfterDrawing&&r({type:fd,payload:{annotationId:g.current.id}}),g.current=null,m.current.off("mousemove touchmove",w),m.current.off("mouseleave touchcancel",k),document.removeEventListener("mouseup",k,ps),document.removeEventListener("touchend",k,ps),document.removeEventListener("mouseleave",k,ps),document.removeEventListener("touchcancel",k,ps)},[w]),C=V.useCallback(function(_){_.target.attrs.draggable||(_.evt.preventDefault(),g.current={points:v()},m.current.on("mousemove touchmove",w),m.current.on("mouseleave touchcancel",k),document.addEventListener("mouseup",k,ps),document.addEventListener("touchend",k,ps),document.addEventListener("mouseleave",k,ps),document.addEventListener("touchcancel",k,ps))},[v,w,k]);return V.useEffect(function(){return m.current=i?.getStage(),m.current&&m.current.on("mousedown touchstart",C),function(){m.current&&m.current.off("mousedown touchstart",C)}},[i]),y.createElement(Ro,{className:"FIE_pen-tool-options",annotation:d,updateAnnotation:h,t,hidePositionField:!0,hideFillOption:!0})},NI=function(e){var t=e.selectTool,n=e.isSelected,r=e.t;return y.createElement(Qn,{className:"FIE_line-tool-button",id:de.LINE,label:r("lineTool"),Icon:$$,onClick:t,isSelected:n})};NI.defaultProps={isSelected:!1};var fie=function(e){var t=e.t,n=Ys({name:de.LINE}),r=Oe(n,2),i=r[0],a=r[1];return y.createElement(Ro,{className:"FIE_line-tool-options",annotation:i,updateAnnotation:a,t,hidePositionField:!0,hideFillOption:!0})},DI=function(e){var t=e.selectTool,n=e.isSelected,r=e.t;return y.createElement(Qn,{className:"FIE_arrow-tool-button",id:de.ARROW,label:r("arrowTool"),Icon:gJ,onClick:t,isSelected:n})};DI.defaultProps={isSelected:!1};var pie=function(e){var t=e.t,n=Ys({name:de.ARROW}),r=Oe(n,2),i=r[0],a=r[1];return y.createElement(Ro,{className:"FIE_arrow-tool-options",annotation:i,updateAnnotation:a,t,hidePositionField:!0,hideFillOption:!0})},RI=function(e){var t=e.selectTool,n=e.isSelected,r=e.t;return y.createElement(Qn,{className:"FIE_polygon-tool-button",id:de.POLYGON,label:r("polygonTool"),Icon:JQ,onClick:t,isSelected:n})};RI.defaultProps={isSelected:!1};var DE=3,RE=25,gie=function(e){var t=e.annotation,n=e.updateAnnotation,r=e.t,i=t.sides;return y.createElement(Qs,null,y.createElement($t,null,r("sides")),y.createElement($n,{annotation:"",onChange:function(a){n({sides:Hn(a,DE,RE)})},value:i,min:DE,max:RE,noMargin:!0}))},mie=[{titleKey:"sides",name:"sides-number",Icon:tJ}],vie=I({},"sides-number",gie),yie=function(e){var t=e.t,n=Ys({name:de.POLYGON}),r=Oe(n,2),i=r[0],a=r[1];return y.createElement(Ro,{className:"FIE_polygon-tool-options",morePoppableOptionsPrepended:mie,moreOptionsPopupComponentsObj:vie,annotation:i,updateAnnotation:a,t,hidePositionField:!0})};function FE(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 zE(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?FE(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):FE(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var FI=function(e,t,n,r){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0;if(e.width&&e.height)return e;var a=Wg(t,n,r),o=Gs(a.width,a.height,i);return e.width||e.height?{width:e.width||o.width,height:e.height||o.height}:o.width&&o.height&&o||zE(zE({},r),Gs(r.width,r.height,i))},bie=Z.div.withConfig({componentId:"sc-17otqpz-0"})(["display:flex;justify-content:",";align-items:flex-end;gap:3px;flex-wrap:wrap;"],function(e){var t=e.alignment;return t||"center"}),BE=Z(Qg).withConfig({componentId:"sc-17otqpz-1"})(function(e){var t=e.theme;return X(["width:106px;max-width:106px;margin-top:4px;.SfxInput-Base{width:100%;min-width:100%;max-width:100%;}span{color:",";",";}"],t.palette[L.TextSecondary],t.typography.font[_e.LabelMedium])}),wie=Z(Ka).withConfig({componentId:"sc-17otqpz-2"})(["svg{margin-bottom:1px;}"]),xie=Z(Ka).withConfig({componentId:"sc-17otqpz-3"})(["margin-left:12px;"]);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 GE(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?HE(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):HE(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var k7=function(e){var t=e.onChange,n=e.currentSize,r=e.hideResetButton,i=e.alignment,a=$e(),o=a.dispatch,s=a.originalImage,c=a.resize,d=a.shownImageDimensions,h=a.adjustments,b=h.crop,m=h.rotation,g=m===void 0?0:m,v=a.theme,w=a.t,k=function(M){var j,P=M.target,N=P.name,T=P.value;if(!(1>parseFloat(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;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?UE(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):UE(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var WE=.33,au="watermark",_ie=function(){var e=$e(),t=e.annotations,n=e.shownImageDimensions,r=e.selectionsIds,i=e.config,a=e.dispatch,o=e.t,s=e.adjustments.crop,c=s===void 0?{}:s,d=ba(),h=V.useState(!1),b=Oe(h,2),m=b[0],g=b[1],v=V.useRef(),w=i[de.WATERMARK],k=V.useMemo(function(){return t[au]},[t[au]]),C=c.width||n.width,_=c.height||n.height,f=c.x||0,x=c.y||0,E=w.textScalingRatio||WE,M=w.imageScalingRatio||WE,j=function(H){var J=H.naturalWidth||H.width,q=H.naturalHeight||H.height,Y=_>C?_*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=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},q=J.url,Y=J.revokeObjectUrl;return T(q,Y!==void 0&&Y)}))}v.current&&v.current.click()}},!w.hideTextWatermark&&{key:"add-text-watermark",label:o("addWatermarkAsText"),icon:WM,onClick:function(){var H={height:_*E,width:C*E},J=ho(ho(ho(ho({},i.annotationsCommon),i[de.TEXT]),H),{},{padding:1,x:f+C/2-H.width/2,y:x+_/2-H.height/2,fill:"#000000",id:au,name:de.TEXT,replaceCurrent:!0});a({type:Ql,payload:J})}}],z=function(){return y.createElement(Eie,{watermark:k,saveWatermark:P,t:o})};return y.createElement("div",{className:"FIE_watermark-tool-wrapper"},k?.name===de.TEXT&&y.createElement(VE,{className:"FIE_watermark-options-wrapper"},y.createElement(E7,{text:k,saveText:P,t:o},z())),k?.name===de.IMAGE&&y.createElement(VE,{className:"FIE_watermark-options-wrapper"},y.createElement(_7,{image:k,saveImage:P,t:o},z())),y.createElement(Cie,{className:"FIE_watermark-add-wrapper",noWrap:!0},y.createElement(Nm,{className:"FIE_watermark-add",color:"secondary",label:function(){return d?o("plus"):R[0]?o("addWatermark"):o("addTextWatermark")}(),title:o("addWatermarkTitle"),menuPosition:"top",menuItems:R,menuFromBtn:!0,noMargin:!0}),y.createElement(zI,{loadAndSetWatermarkImg:T,addImgWatermark:j,style:d&&!(k==null||!k.name)?{width:"55%"}:void 0}),y.createElement(MI,{onChange:m?void 0:function(H){if(H.target.files){var J=H.target.files[0];J.type.startsWith("image/")&&T(URL.createObjectURL(J),!0)}H.target.value=""},disabled:m,ref:v})))},tv,yh=(tv={},I(I(I(I(I(I(I(I(I(I(tv,de.CROP,{id:de.CROP,Item:gI}),de.ROTATE,{id:de.ROTATE,Item:yI,ItemOptions:ere}),de.FLIP_X,{id:de.FLIP_X,Item:mI}),de.FLIP_Y,{id:de.FLIP_Y,Item:vI}),de.BRIGHTNESS,{id:de.BRIGHTNESS,Item:gM,ItemOptions:Hne}),de.CONTRAST,{id:de.CONTRAST,Item:bI,ItemOptions:nre}),de.HSV,{id:de.HSV,Item:wI,ItemOptions:ire,hideFn:function(e){var t=e.useCloudimage;return t}}),de.BLUR,{id:de.BLUR,Item:xI,ItemOptions:ore}),de.WARMTH,{id:de.WARMTH,Item:CI,ItemOptions:lre,hideFn:function(e){var t=e.useCloudimage;return t}}),de.FILTERS,{id:de.FILTERS,Item:wre}),I(I(I(I(I(I(I(I(I(I(tv,de.WATERMARK,{id:de.WATERMARK,Item:_ie}),de.TEXT,{id:de.TEXT,Item:_I,ItemOptions:qre}),de.IMAGE,{id:de.IMAGE,Item:TI,ItemOptions:oie}),de.RECT,{id:de.RECT,Item:AI,ItemOptions:uie}),de.POLYGON,{id:de.POLYGON,Item:RI,ItemOptions:yie}),de.ELLIPSE,{id:de.ELLIPSE,Item:LI,ItemOptions:die}),de.PEN,{id:de.PEN,Item:jI,ItemOptions:hie}),de.LINE,{id:de.LINE,Item:NI,ItemOptions:fie}),de.ARROW,{id:de.ARROW,Item:DI,ItemOptions:pie}),de.RESIZE,{id:de.RESIZE,Item:k7})),Xp=I(I(I(I(I(I({},qt.ADJUST,[de.CROP,de.ROTATE,de.FLIP_X,de.FLIP_Y]),qt.FINETUNE,[de.BRIGHTNESS,de.CONTRAST,de.HSV,de.BLUR,de.WARMTH]),qt.FILTERS,[de.FILTERS]),qt.WATERMARK,[de.WATERMARK]),qt.ANNOTATE,[de.TEXT,de.IMAGE,de.RECT,de.ELLIPSE,de.POLYGON,de.PEN,de.LINE,de.ARROW]),qt.RESIZE,[de.RESIZE]);function XE(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 YE(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?XE(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):XE(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var BI="SELECT_TAB",kie=function(e,t){return t.tabId===e.tabId?e:YE(YE({},e),{},{tabId:t.tabId,toolId:Xp[t.tabId][0],selectionsIds:[],pointerCssIcon:t.tabId===qt.ANNOTATE?Co.DRAW:Co.DEFAULT})};function KE(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 nv(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?KE(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):KE(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var O7="UNDO",Oie=function(e){if(e.pastDesignStates&&0<e.pastDesignStates.length){var t=od(e),n=LT(e.pastDesignStates),r=n[0],i=n.slice(1),a=[t].concat(an(e.futureDesignStates||[]));return nv(nv(nv({},e),r),{},{selectionsIds:[],pastDesignStates:i,futureDesignStates:a,hasUndo:0<i.length,hasRedo:!0,haveNotSavedChanges:0<i.length})}return e};function ZE(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 Uf(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?ZE(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ZE(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var HI="SET_FINETUNE",Pie=function(e,t){return Uf(Uf({},e),{},{isDesignState:!t.dismissHistory,finetunes:!t.finetune||e.finetunes.includes(t.finetune)?e.finetunes:[].concat(an(e.finetunes),[t.finetune]),finetunesProps:Uf(Uf({},e.finetunesProps),t.finetuneProps)})},Tie=["dismissHistory","replaceCurrent"];function qE(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 ou(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?qE(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):qE(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var Ql="SET_ANNOTATION",Mie=function(e){var t,n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},r=n.dismissHistory,i=n.replaceCurrent,a=me(n,Tie),o=(t=a.id)!==null&&t!==void 0?t:Cm(a.name),s=e.annotations[o];return s&&!Object.keys(a).some(function(c){return(a[c]||a[c]===0)&&a[c]!==s[c]})?e:ou(ou({},e),{},{isDesignState:!(r!==void 0&&r),annotations:ou(ou({},e.annotations),{},I({},o,ou(ou({},i!==void 0&&i?{}:s),a)))})};function $E(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 QE(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?$E(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$E(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var C0="CHANGE_POINTER_ICON",Iie=function(e,t){return e.pointerCssIcon===t.pointerCssIcon?e:QE(QE({},e),{},{pointerCssIcon:t.pointerCssIcon})};function JE(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_(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?JE(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):JE(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var fd="SELECT_ANNOTATION",Aie=function(e,t){if(e.selectionsIds.length===1&&e.selectionsIds[0]===t.annotationId)return e;var n;if(t.multiple){n=e.selectionsIds.filter(function(i){return i!==t.annotationId});var r=n.length!==e.selectionsIds.length;r||n.push(t.annotationId)}else n=[t.annotationId];return e_(e_({},e),{},{selectionsIds:n})};function t_(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 n_(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?t_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):t_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var P7="CLEAR_ANNOTATIONS_SELECTIONS",Lie=function(e){return e.selectionsIds.length===0?e:n_(n_({},e),{},{selectionsIds:[]})};function r_(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 i_(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?r_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):r_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var l6="TOGGLE_ORIGINAL_IMAGE_DISPLAY",jie=function(e,t){return i_(i_({},e),{},{isShowOriginalImage:t.isShow})};function a_(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 o_(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?a_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var rm="SELECT_TOOL",Nie=function(e,t){return e.toolId===t.toolId?e:o_(o_({},e),{},{toolId:t.toolId,selectionsIds:t.keepSelections?e.selectionsIds:[]})};function s_(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 Wf(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?s_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var T7="TOGGLE_FLIP",Die=function(e,t){var n="isFlipped".concat(t.direction===u8.X?"X":"Y");return Wf(Wf({},e),{},{isDesignState:!t.dismissHistory,adjustments:Wf(Wf({},e.adjustments),{},I({},n,!e.adjustments[n]))})};function l_(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 su(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?l_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var M7="SET_CROP",Rie=function(e,t){var n,r,i,a,o,s,c,d=(n=e.adjustments.crop)!==null&&n!==void 0?n:{},h={x:(r=bn(t.x))!==null&&r!==void 0?r:d.x,y:(i=bn(t.y))!==null&&i!==void 0?i:d.y,ratio:typeof t.ratio=="string"?t.ratio:(a=bn(t.ratio))!==null&&a!==void 0?a:d.ratio,width:(o=bn(t.width))!==null&&o!==void 0?o:d.width,height:(s=bn(t.height))!==null&&s!==void 0?s:d.height,ratioTitleKey:(c=t.ratioTitleKey)!==null&&c!==void 0?c:d.ratioTitleKey,ratioGroupKey:t.ratioGroupKey,ratioFolderKey:t.ratioFolderKey,noEffect:t.noEffect};return su(su({},e),{},{isDesignState:!t.dismissHistory,adjustments:su(su({},e.adjustments),{},{crop:su(su({},d),h)})})};function c_(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 Xf(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?c_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var GI="CHANGE_ROTATION",Fie=function(e,t){return e.adjustments.rotation===t.rotation?e:Xf(Xf({},e),{},{isDesignState:!t.dismissHistory,adjustments:Xf(Xf({},e.adjustments),{},{rotation:t.rotation})})};function u_(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 d_(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?u_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var zie=function(e,t,n,r){if(e.factor===va)return{x:0,y:0,factor:va};var i=e.factor>t.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;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?h_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var pd="ZOOM_CANVAS",Hie=.03,Gie=60,Vie=function(e,t){var n,r=Hn(parseFloat(t.factor).toFixed(2),Hie,Gie);if(t.preparedDimensions){t.preparedDimensions;var i=me(t,Bie);n=i}else{var a,o,s={x:t.x||t.x===0?(a=t.x)!==null&&a!==void 0?a:e.zoom.x:e.canvasWidth/2,y:t.y||t.y===0?(o=t.y)!==null&&o!==void 0?o:e.zoom.y:e.canvasHeight/2};n=zie(lu(lu({},s),{},{factor:r}),t.isAbsoluteZoom?{factor:va,x:null,y:null}:e.zoom,e.canvasWidth,e.canvasHeight)}return n.factor===e.zoom.factor&&n.x===e.zoom.x&&n.y===e.zoom.y?e:lu(lu({},e),{},{zoom:lu(lu({},e.zoom),n)})};function f_(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 p_(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?f_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var VI="SET_CANVAS_SIZE",Uie=function(e,t){if(e.canvasWidth===t.canvasWidth&&e.canvasHeight===t.canvasHeight)return e;var n=e.initialCanvasWidth,r=n===void 0?t.canvasWidth:n,i=e.initialCanvasHeight,a=i===void 0?t.canvasHeight:i,o=Oy(e.initialCanvasWidth,e.initialCanvasHeight,e.originalImage.width,e.originalImage.height),s=o*e.originalImage.width,c=o*e.originalImage.height,d=1;if(r!==t.canvasWidth||a!==t.canvasHeight){var h=t.canvasWidth/s,b=t.canvasHeight/c;d=Math.min(h,b)}return p_(p_({},e),{},{initialCanvasWidth:r,initialCanvasHeight:a,canvasWidth:t.canvasWidth,canvasHeight:t.canvasHeight,canvasScale:d})};function g_(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 m_(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?g_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var UI="SET_ORIGINAL_IMAGE",Wie=function(e,t){return m_(m_({},e),{},{feedback:{},originalImage:t.originalImage,imgSrc:t.originalImage.src})};function v_(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 Yf(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?v_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var WI="SET_SHOWN_IMAGE_DIMENSIONS",Xie=function(e,t){return Yf(Yf({},e),{},{shownImageDimensions:Yf(Yf({},e.shownImageDimensions),t.shownImageDimensions),designLayer:t.designLayer||e.designLayer,previewGroup:t.previewGroup||e.previewGroup})};function y_(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 b_(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?y_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var XI="REMOVE_ANNOTATIONS",Yie=function(e,t){var n=e.annotations,r=e.selectionsIds;return t.annotationsIds.forEach(function(i){if(r=r.filter(function(o){return o!==i}),e.designLayer&&n[i]){var a=e.designLayer.findOne("#".concat(i));a&&a.destroy(),delete n[i]}}),b_(b_({},e),{},{isDesignState:t.isDesignState||!0,annotations:n,selectionsIds:[]})};function w_(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 cu(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?w_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var YI="DUPLICATE_ANNOTATIONS",Kie=function(e,t){var n=e.annotations,r={};return t.annotationsIds.forEach(function(i){var a=n[i];if(a){var o=Cm(a.name);r[o]=cu(cu({},a),{},{id:o,x:a.x+20,y:a.y+20})}}),cu(cu({},e),{},{isDesignState:!t.dismissHistory,annotations:cu(cu({},n),r)})};function x_(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 C_(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?x_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var I7="ENABLE_TEXT_CONTENT_EDIT",Zie=function(e,t){return C_(C_({},e),{},{textIdOfEditableContent:t.textIdOfEditableContent||null})};function S_(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 bh(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?S_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):S_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var Gu="SET_RESIZE",qie=function(e,t){var n;return bh(bh({},e),{},{isDesignState:!t.dismissHistory,resize:bh(bh(bh({},e.resize),t),{},{manualChangeDisabled:!((n=t.manualChangeDisabled)===null||n===void 0)&&n})})};function E_(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<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?E_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):E_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var KI="SET_SAVED",$ie=function(e){return e.haveNotSavedChanges?__(__({},e),{},{haveNotSavedChanges:!1}):e};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 Qie(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?k_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var D0=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=2<arguments.length&&arguments[2]!==void 0&&arguments[2],r=Qie({},e),i=Object.keys(t);return i.forEach(function(a){var o=t[a];if(o!==void 0){var s=Hr(o);if(s!=="object"||o instanceof HTMLElement||o===null||Array.isArray(o)||!e[a]||Hr(e[a])!=="object")return void(r[a]=n&&Array.isArray(r[a])&&Array.isArray(o)?[].concat(an(r[a]),an(o)):o);r[a]=D0(e[a],o)}}),r},Yp="UPDATE_STATE",Jie=function(e,t){var n=t&&typeof t=="function"?t(e):t;return n?D0(e,n):e};function O_(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 Kf(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?O_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var ZI="SET_LATEST_COLOR",eae=function(e,t){return Kf(Kf({},e),{},{latestColors:Kf(Kf({},e.latestColors),t.latestColors)})};function P_(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 T_(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?P_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var qI="SET_SHOWN_TABS_MENU",tae=function(e,t){return T_(T_({},e),{},{showTabsMenu:t.opened})},Zf;const M_=(Zf={},I(I(I(I(I(I(I(I(I(I(Zf,UI,Wie),Xs,zY),r7,BY),bm,rG),C0,Iie),fd,Aie),P7,Lie),l6,jie),BI,kie),rm,Nie),I(I(I(I(I(I(I(I(I(I(Zf,pd,Vie),VI,Uie),WI,Xie),I7,Zie),ZI,eae),qI,tae),AT,nG),HI,Pie),Ql,Mie),M7,Rie),I(I(I(I(I(I(I(I(I(I(Zf,GI,Fie),T7,Die),Gu,qie),XI,Yie),YI,Kie),O7,Oie),n7,RY),xm,FY),KI,$ie),Yp,Jie));var nae=.05,rae=12,iae=function(){return 2*(window?Math.min(window.innerHeight,window.innerWidth)*nae:rae)},I_=function(e,t){var n=e.x,r=e.y,i=t*Math.PI/180,a=Math.cos(i),o=Math.sin(i);return{x:n*a-r*o,y:r*a+n*o}},aae=function(e,t,n){if(!e||!t||!n&&n!==0)return{x:0,y:0,rotation:n};var r={x:-e/2,y:-t/2},i=I_(r,0),a=I_(r,n),o=a.x-i.x,s=a.y-i.y;return{x:o,y:s,rotation:n}},pc={definitions:{id:F.string.isRequired,name:F.string.isRequired,rotation:F.number,scaleX:F.number,scaleY:F.number,stroke:F.string,strokeWidth:F.number,shadowOffsetX:F.number,shadowOffsetY:F.number,shadowBlur:F.number,shadowColor:F.string,shadowOpacity:F.number,opacity:F.number},defaults:{rotation:0,scaleX:1,scaleY:1,stroke:void 0,strokeWidth:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,shadowBlur:void 0,shadowColor:void 0,shadowOpacity:void 0,opacity:1}},oae=["id","name","fill","x","y","width","height","scaleX","scaleY","rotation","annotationEvents","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","opacity","cornerRadius"];function A_(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 L_(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?A_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):A_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var $I=function(e){var t=e.id,n=e.name,r=e.fill,i=e.x,a=e.y,o=e.width,s=e.height,c=e.scaleX,d=e.scaleY,h=e.rotation,b=e.annotationEvents,m=e.stroke,g=e.strokeWidth,v=e.shadowOffsetX,w=e.shadowOffsetY,k=e.shadowBlur,C=e.shadowColor,_=e.shadowOpacity,f=e.opacity,x=e.cornerRadius,E=me(e,oae);return y.createElement(CT,he({id:t,name:n,rotation:h,scaleX:c,scaleY:d,stroke:m,strokeWidth:g,shadowOffsetX:v,shadowOffsetY:w,shadowBlur:k,shadowColor:C,shadowOpacity:_,fill:r,x:i,y:a,width:o,height:s,opacity:f,cornerRadius:x},b,E))};$I.defaultProps=L_(L_({},pc.defaults),{},{fill:"#000",cornerRadius:0,width:0,height:0});var sae=["id","name","fill","x","y","radiusX","radiusY","scaleX","scaleY","rotation","annotationEvents","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","opacity"];function j_(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 N_(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?j_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):j_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var QI=function(e){var t=e.id,n=e.name,r=e.fill,i=e.x,a=e.y,o=e.radiusX,s=e.radiusY,c=e.scaleX,d=e.scaleY,h=e.rotation,b=e.annotationEvents,m=e.stroke,g=e.strokeWidth,v=e.shadowOffsetX,w=e.shadowOffsetY,k=e.shadowBlur,C=e.shadowColor,_=e.shadowOpacity,f=e.opacity,x=me(e,sae);return y.createElement(ST,he({id:t,name:n,rotation:h,scaleX:c,scaleY:d,stroke:m,strokeWidth:g,shadowOffsetX:v,shadowOffsetY:w,shadowBlur:k,shadowColor:C,shadowOpacity:_,fill:r,x:i,y:a,radiusX:o,radiusY:s,offsetX:-o,offsetY:-s,opacity:f},b,x))};QI.defaultProps=N_(N_({},pc.defaults),{},{fill:"#000",radiusX:0,radiusY:0});var lae=["id","name","fill","x","y","radius","scaleX","scaleY","rotation","sides","annotationEvents","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","opacity"];function D_(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 R_(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?D_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var JI=function(e){var t=e.id,n=e.name,r=e.fill,i=e.x,a=e.y,o=e.radius,s=e.scaleX,c=e.scaleY,d=e.rotation,h=e.sides,b=e.annotationEvents,m=e.stroke,g=e.strokeWidth,v=e.shadowOffsetX,w=e.shadowOffsetY,k=e.shadowBlur,C=e.shadowColor,_=e.shadowOpacity,f=e.opacity,x=me(e,lae);return y.createElement(ZH,he({id:t,name:n,rotation:d,scaleX:s,scaleY:c,stroke:m,strokeWidth:g,shadowOffsetX:v,shadowOffsetY:w,shadowBlur:k,shadowColor:C,shadowOpacity:_,fill:r,x:i,y:a,radius:o,offsetX:-o,offsetY:-o,sides:h,opacity:f},b,x))};JI.defaultProps=R_(R_({},pc.defaults),{},{fill:"#000",sides:3});var cae=["id","name","text","fontFamily","fontSize","fontStyle","fill","x","y","width","height","scaleX","scaleY","rotation","annotationEvents","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","opacity","letterSpacing","lineHeight","align"];function F_(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 z_(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?F_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):F_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var A7=function(e){var t=e.id,n=e.name,r=e.text,i=e.fontFamily,a=e.fontSize,o=e.fontStyle,s=e.fill,c=e.x,d=e.y,h=e.width,b=e.height,m=e.scaleX,g=e.scaleY,v=e.rotation,w=e.annotationEvents,k=e.stroke,C=e.strokeWidth,_=e.shadowOffsetX,f=e.shadowOffsetY,x=e.shadowBlur,E=e.shadowColor,M=e.shadowOpacity,j=e.opacity,P=e.letterSpacing,N=e.lineHeight,T=e.align,R=me(e,cae);return y.createElement(KH,he({id:t,name:n,rotation:v,scaleX:m,scaleY:g,stroke:k,strokeWidth:C,shadowOffsetX:_,shadowOffsetY:f,shadowBlur:x,shadowColor:E,shadowOpacity:M,opacity:j,fill:s,text:r,fontFamily:i,fontStyle:o,fontSize:a,letterSpacing:P,lineHeight:N,align:T,x:c,y:d,width:h,height:b},w,R))};A7.defaultProps=z_(z_({},pc.defaults),{},{text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur imperdiet tortor quis odio facilisis, id aliquet nulla facilisis. Etiam tincidunt tempor odio nec placerat.",fontFamily:"Arial",fontSize:14,fill:"#000",width:0,height:0,letterSpacing:void 0,lineHeight:void 0,align:"left"});var uae=function(e){var t=e.split("/");return t[t.length-1].split("?")[0]},eA=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0&&arguments[2];return new Promise(function(r,i){var a=new Image;n||(a.crossOrigin="Anonymous"),a.src=e,a.name=t??uae(e),a.onload=function(){r(a)},a.onerror=function(){i(new Error("Error in loading the image with the provided url: ".concat(e)))}})},dae=["id","name","image","x","y","width","height","scaleX","scaleY","rotation","annotationEvents","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","opacity"];function B_(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 H_(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?B_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):B_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var tA=function(e){var t=e.id,n=e.name,r=e.image,i=e.x,a=e.y,o=e.width,s=e.height,c=e.scaleX,d=e.scaleY,h=e.rotation,b=e.annotationEvents,m=e.stroke,g=e.strokeWidth,v=e.shadowOffsetX,w=e.shadowOffsetY,k=e.shadowBlur,C=e.shadowColor,_=e.shadowOpacity,f=e.opacity,x=me(e,dae),E=V.useState(null),M=Oe(E,2),j=M[0],P=M[1];V.useEffect(function(){typeof r=="string"&&eA(r).then(P)},[r]);var N=r instanceof HTMLImageElement;if(!N&&!j)return null;var T=N?r:j;return y.createElement(ym,he({id:t,name:n,rotation:h,scaleX:c,scaleY:d,stroke:m,strokeWidth:g,shadowOffsetX:v,shadowOffsetY:w,shadowBlur:k,shadowColor:C,shadowOpacity:_,image:T,x:i,y:a,width:o,height:s,opacity:f},x,b,x))};tA.defaultProps=H_(H_({},pc.defaults),{},{width:0,height:0});var hae=["id","name","scaleX","scaleY","rotation","annotationEvents","points","lineCap","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","tension","opacity"];function G_(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 V_(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?G_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):G_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var c6=function(e){var t=e.id,n=e.name,r=e.scaleX,i=e.scaleY,a=e.rotation,o=e.annotationEvents,s=e.points,c=e.lineCap,d=e.stroke,h=e.strokeWidth,b=e.shadowOffsetX,m=e.shadowOffsetY,g=e.shadowBlur,v=e.shadowColor,w=e.shadowOpacity,k=e.tension,C=e.opacity,_=me(e,hae);return y.createElement(YH,he({id:t,name:n,rotation:a,scaleX:r,scaleY:i,stroke:d,strokeWidth:h,shadowOffsetX:b,shadowOffsetY:m,shadowBlur:g,shadowColor:v,shadowOpacity:w,points:s,lineCap:c,tension:k,hitStrokeWidth:20,x:0,y:0,opacity:C},o,_))};c6.defaultProps=V_(V_({},pc.defaults),{},{stroke:"#000000",strokeWidth:1,lineCap:"butt",annotationEvents:{},tension:void 0});var fae=["id","name","fill","pointerLength","pointerWidth","scaleX","scaleY","rotation","annotationEvents","points","lineCap","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","opacity"];function U_(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 W_(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?U_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):U_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var nA=function(e){var t=e.id,n=e.name,r=e.fill,i=e.pointerLength,a=e.pointerWidth,o=e.scaleX,s=e.scaleY,c=e.rotation,d=e.annotationEvents,h=e.points,b=e.lineCap,m=e.stroke,g=e.strokeWidth,v=e.shadowOffsetX,w=e.shadowOffsetY,k=e.shadowBlur,C=e.shadowColor,_=e.shadowOpacity,f=e.opacity,x=me(e,fae);return y.createElement(qH,he({id:t,name:n,rotation:c,scaleX:o,scaleY:s,stroke:m,strokeWidth:g,shadowOffsetX:v,shadowOffsetY:w,shadowBlur:k,shadowColor:C,shadowOpacity:_,fill:r,x:0,y:0,points:h,pointerLength:i,pointerWidth:a,lineCap:b,opacity:f},d,x))};nA.defaultProps=W_(W_({},pc.defaults),{},{stroke:"#000000",strokeWidth:6,fill:void 0,lineCap:"butt",pointerLength:void 0,pointerWidth:void 0});var pae=I(I(I(I(I(I(I(I({},de.RECT,$I),de.ELLIPSE,QI),de.POLYGON,JI),de.TEXT,A7),de.IMAGE,tA),de.LINE,c6),de.ARROW,nA),de.PEN,c6),gae=function(e){var t=e.annotation,n=e.annotationEvents,r=e.selectionsIds,i=pae[t.name];return i?y.createElement(i,he({key:t.id,annotationEvents:n,draggable:r.includes(t.id)},t)):null};const mae=V.memo(gae);var vae=function(){var e=$e(),t=e.annotations,n=t===void 0?{}:t,r=e.selectionsIds,i=r===void 0?[]:r,a=cK();return V.useMemo(function(){return Object.values(n).map(function(o){return y.createElement(mae,{key:o.id,annotation:o,annotationEvents:a,selectionsIds:i})})},[n,a,i])},yae=function(e,t){return y.createElement(XH,he({ref:t},e))};const bae=V.forwardRef(yae);function X_(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 rv(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?X_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):X_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var wae=iae(),xae=10,Cae=function(){var e,t,n,r,i=V.useRef(),a=$e(),o=a.initialCanvasWidth,s=a.initialCanvasHeight,c=a.canvasWidth,d=a.canvasHeight,h=a.dispatch,b=a.toolId,m=a.canvasScale,g=a.originalImage,v=g===void 0?{}:g,w=a.finetunes,k=w===void 0?[]:w,C=a.finetunesProps,_=C===void 0?{}:C,f=a.filter,x=f===void 0?null:f,E=a.adjustments,M=E===void 0?{}:E,j=M.rotation,P=j===void 0?0:j,N=M.crop,T=N===void 0?{}:N,R=M.isFlippedX,z=M.isFlippedY,H=a.resize,J=V.useRef(),q=V.useRef(),Y=b===de.CROP,le=V.useMemo(function(){return x?[].concat(an(k),[x]):k},[k,x]),K=V.useMemo(function(){var He=Math.max(xae,v.width-wae),We=v.width/v.height;return{width:He,height:He/We}},[v]),ce=V.useMemo(function(){return Gs(v.width,v.height,P)},[v,P]),ne=V.useMemo(function(){return Oy(o,s,v.width,v.height)},[v,o,s]),oe=V.useMemo(function(){return{width:K.width*ne,height:K.height*ne}},[K,ne]),Q=H.width&&!Y?H.width/((e=(t=T.width)!==null&&t!==void 0?t:oe.width)!==null&&e!==void 0?e:ce.width):1,$=H.height&&!Y?H.height/((n=(r=T.height)!==null&&r!==void 0?r:oe.height)!==null&&n!==void 0?n:ce.height):1,re=c/(2*m)-oe.width*Q/2,we=d/(2*m)-oe.height*$/2,W=c/(2*m)-oe.width/2,D=d/(2*m)-oe.height/2,B=V.useMemo(function(){return{x:Math.round(re),y:Math.round(we),abstractX:Math.round(W),abstractY:Math.round(D),width:oe.width,height:oe.height,scaledBy:m}},[m,re,we,W,D,oe]),ee=V.useCallback(function(){J.current?J.current.cache():setTimeout(ee,0)},[]),ue=Gs(B.width,B.height,P),ve=Y?1:Oy(B.width,B.height,ue.width,ue.height);if(V.useEffect(function(){return v&&ee(),function(){var He;(He=J.current)===null||He===void 0||He.clearCache()}},[v]),V.useEffect(function(){B&&h({type:WI,payload:{shownImageDimensions:B,designLayer:i.current,previewGroup:q.current}})},[B]),!re||!we||!B)return null;var se=aae(T.x,T.y,P),Ie=re+(!Y&&T.width?(R?-1:1)*(B.width/2-T.x-T.width/2+se.x)*Q:0),Ae=we+(!Y&&T.height?(z?-1:1)*(B.height/2-T.y-T.height/2+se.y)*$:0),Se=Y?W:Ie,Ne=Y?D:Ae,Me=(R?-1:1)*(Y?1:Q)*ve,Ye=(z?-1:1)*(Y?1:$)*ve;return y.createElement(c8,{id:QH,ref:i,xPadding:Se,yPadding:Ne,offsetX:oe.width/2,offsetY:oe.height/2,x:oe.width*Q/2+Se,y:oe.height*$/2+Ne,scaleX:Me,scaleY:Ye,rotation:Y?0:P,clipFunc:function(He){var We,_t=Y&&!((We=i.current)!==null&&We!==void 0&&(We=We.attrs)!==null&&We!==void 0&&We.isSaving),gt=_t||T.noEffect?rv(rv({},B),{},{x:0,y:0}):{width:T.width||B.width,height:T.height||B.height,x:T.x||0,y:T.y||0};tG(He,rv({ratio:T.ratio},gt),_t),i.current&&i.current.setAttrs({clipX:gt.x,clipY:gt.y,clipWidth:gt.width,clipHeight:gt.height})}},y.createElement(ym,he({id:OT,image:v,width:oe.width,height:oe.height,offsetX:oe.width/2,offsetY:oe.height/2,x:oe.width/2,y:oe.height/2,listening:!1,filters:le,ref:J},_)),y.createElement(vae,null),y.createElement(bae,{ref:q}))},Sae=function(e,t){return bn(e)===bn(t)};function Y_(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 Eae(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?Y_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Y_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var _ae=function(e,t){var n=t.width-(2*e.radiusX||e.width),r=t.height-(2*e.radiusY||e.height);return{x:bn(Math.min(Math.max(e.x,0),n)),y:bn(Math.min(Math.max(e.y,0),r))}},kae=function(e,t,n){var r=e.split("-"),i=Oe(r,2),a=i[0],o=i[1],s={x:0,y:0};return a==="center"?s.y=t.height/2-n.height/2:a==="bottom"&&(s.y=t.height-n.height),o==="center"?s.x=t.width/2-n.width/2:o==="right"&&(s.x=t.width-n.width),s},iv=function(e,t,n,r){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:{},a={x:bn(n.abstractX*n.scaledBy),y:bn(n.abstractY*n.scaledBy),width:bn(n.width*n.scaledBy),height:bn(n.height*n.scaledBy)},o=Eae({},t);if(t.x<a.x&&(o.x=a.x,o.width=e.x-a.x+e.width),t.y<a.y&&(o.y=a.y,o.height=e.y-a.y+e.height),o.x+o.width>a.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<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?K_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):K_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var Z_=!1,qf={width:200,height:100},Oae=function(){var e=$e(),t=e.dispatch,n=e.theme,r=e.designLayer,i=e.originalImage,a=e.shownImageDimensions,o=e.adjustments,s=o===void 0?{}:o,c=s.crop,d=c===void 0?{}:c,h=s.isFlippedX,b=s.isFlippedY,m=e.resize,g=m===void 0?{}:m,v=e.config,w=e.t,k=V.useRef(),C=V.useRef(),_=V.useRef(),f=V.useRef(),x=v[de.CROP],E=V.useMemo(function(){var W;return fi(fi({},x),{},{lockCropAreaAt:(W=d.lockCropAreaAt)!==null&&W!==void 0?W:x?.lockCropAreaAt})},[d.lockCropAreaAt,x]),M=E.lockCropAreaAt,j=d.ratio||E.ratio,P=j===MT,N=j===hc,T=function(){return j===d8?i.width/i.height:j},R=function(W,D){var B=W.width,ee=W.height,ue=W.x,ve=W.y,se={x:h?a.width-ue-B:ue,y:b?a.height-ve-ee:ve,width:B,height:ee},Ie=d.width>=g.width&&d.height>=g.height;g.width&&g.height&&(B<g.width||ee<g.height)&&Ie&&t({type:Xs,payload:{feedback:{message:w("cropSizeLowerThanResizedWarning"),status:nd.WARNING}}}),t({type:M7,payload:fi(fi(fi({},d),se),{},{dismissHistory:D})})},z=function(W,D){var B,ee;C.current&&k.current&&C.current.nodes([k.current]);var ue=f.current,ve={width:W,height:D,x:(B=d.x)!==null&&B!==void 0?B:0,y:(ee=d.y)!==null&&ee!==void 0?ee:0};R(iv(ve,ve,fi(fi({},ue),{},{abstractX:0,abstractY:0}),!(P||N)&&T(),E),!0)};if(V.useEffect(function(){return r&&C.current&&k.current&&(_.current&&_.current.cache(),C.current.nodes([k.current])),function(){_.current&&_.current.clearCache()}},[r,i,a]),V.useEffect(function(){if(f.current){var W,D,B=f.current;z((W=d.width)!==null&&W!==void 0?W:B.width,(D=d.height)!==null&&D!==void 0?D:B.height)}},[j]),V.useEffect(function(){C.current&&k.current&&f.current&&d.width&&d.height&&z(d.width,d.height)},[E,a.width,a.height]),V.useEffect(function(){if(a&&(f.current=a,!Z_&&j&&a.x&&a.width)){var W,D;z((W=d.width)!==null&&W!==void 0?W:a.width,(D=d.height)!==null&&D!==void 0?D:a.height),Z_=!0}},[a]),!r)return null;var H,J=(M||d.noEffect)&&[]||(P||N?void 0:["top-left","bottom-left","top-right","bottom-right"]),q=function(W){var D=1<arguments.length&&arguments[1]!==void 0&&arguments[1];W.target&&R({width:W.target.width()*W.target.scaleX(),height:W.target.height()*W.target.scaleY(),x:W.target.x(),y:W.target.y()},D)};if(!d.width&&!d.height){var Y=1>a.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<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?q_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):q_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}function Aae(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Q_(e,t){return{x:(e.x+t.x)/2,y:(e.y+t.y)/2}}var hu=null,Ph=0,Lae=function(e,t){e.evt.preventDefault();var n=e.evt.touches[0],r=e.evt.touches[1];if(n&&r){var i=e.currentTarget;i.isDragging()&&i.stopDrag();var a={x:n.clientX,y:n.clientY},o={x:r.clientX,y:r.clientY};if(!hu)return void(hu=Q_(a,o));var s=Q_(a,o),c=Aae(a,o);Ph||(Ph=c);var d=i.attrs.zoomFactor||va,h={x:(s.x-i.x())/d,y:(s.y-i.y())/d},b=(d||va)*(c/Ph),m=s.x-hu.x,g=s.y-hu.y,v={x:s.x-h.x*b+m,y:s.y-h.y*b+g};Ph=c,hu=s,t($_($_({},v),{},{factor:b,preparedDimensions:!0}))}},jae=function(e){Ph=0,hu=null,typeof e=="function"&&e()},Nae=Z.div.withConfig({componentId:"sc-3ln9py-0"})(["width:100%;position:relative;height:calc(100% - 112px - 16px);overflow:hidden;min-height:250px;padding:16px;flex-grow:1;"]),Dae=Z.img.withConfig({componentId:"sc-3ln9py-1"})(["max-width:98%;max-height:98%;box-shadow:0 0 0 5px rgba(0,0,0,0.1);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2;"]),Rae=Z(_T).withConfig({componentId:"sc-3ln9py-2"})(["outline:none;background:",";"],function(e){var t=e.theme;return t.palette["bg-hover"]});function J_(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 ek(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?J_(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):J_(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var Fae=function(e){var t=e.children;$H(!0);var n=V.useRef(),r=$e(),i=r.dispatch,a=r.pointerCssIcon,o=r.tabId,s=r.toolId,c=r.canvasWidth,d=r.canvasHeight,h=r.canvasScale,b=r.selectionsIds,m=b===void 0?[]:b,g=r.zoom,v=g===void 0?{}:g,w=r.config,k=w.previewPixelRatio,C=w.disableZooming;yn.pixelRatio=k;var _=va,f=!C&&s!==de.CROP,x=V.useState(o!==qt.ANNOTATE&&o!==qt.WATERMARK&&v.factor>_),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<m.length&&i({type:P7})},[m]),R=function(){return j(o!==qt.ANNOTATE||o===qt.WATERMARK)},z=function(Y){(Y.code==="Space"||Y.key==="Control")&&!Y.repeat&&v.factor>_&&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<e?TT:e};function tk(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 Tr(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?tk(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):tk(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var doe={marginBottom:16},hoe={minWidth:67,width:"fit-content"},foe={marginLeft:12},av=!0,nk=function(){var e=$e(),t=V.useRef(),n=e.theme,r=e.dispatch,i=e.originalImage,a=e.resize,o=e.isLoadingGlobally,s=e.haveNotSavedChanges,c=e.feedback,d=e.hasUndo,h=e.t,b=e.adjustments,m=b===void 0?{}:b,g=m.crop,v=e.config,w=v.onClose,k=v.closeAfterSave,C=v.onBeforeSave,_=v.onSave,f=v.forceToPngInEllipticalCrop,x=v.defaultSavedImageName,E=v.defaultSavedImageType,M=v.defaultSavedImageQuality,j=M===void 0?TT:M,P=v.useCloudimage,N=v.moreSaveOptions,T=v.disableSaveIfNoChanges,R=v.removeSaveButton,z=V.useState(!1),H=Oe(z,2),J=H[0],q=H[1],Y=V.useState({quality:uoe(j)}),le=Oe(Y,2),K=le[0],ce=le[1],ne=uM(),oe=["jpeg","jpg","webp"].includes(K.extension),Q=c.duration===0,$=function(){var ue=ne(K,!1,!0),ve=t.current||_,se=ve(ue.imageData,ue.designState),Ie=function(){r({type:bm})};se instanceof Promise?se.finally(Ie):Ie(),t.current=null,k&&w&&w(IT.AFTER_SAVE,s)},re=function(){r({type:r7}),q(!1),setTimeout($,3)},we=function(){var ue=t.current||_;if(typeof ue!="function")throw new Error("Please provide onSave function handler.");return K.name&&K.extension?void re():void r({type:Xs,payload:{feedback:{message:h("nameIsRequired")}}})},W=function(){if(!T||d){if(P){var ue=ne(K),ve=t.current||_;return void ve(ue.imageData,ue.designState)}return t.current||typeof C!="function"||C(K)!==!1?void q(!0):void we()}},D=function(ue,ve){if(typeof ue=="function")t.current=ue,ve();else throw new Error("onSave function callback is required as an argument to the passed function.")},B=function(){var ue=cM(x||i.name,f&&g.ratio===hc?"png":td.includes(E?.toLowerCase())&&E),ve=ue.name,se=ue.extension;ce(Tr(Tr({},K),{},{name:ve,extension:se}))};if(V.useEffect(function(){i&&B()},[i]),V.useEffect(function(){!i||K.name&&K.extension||B()},[J]),V.useEffect(function(){ce(Tr(Tr({},K),{},{size:{width:a.width,height:a.height}}))},[a]),V.useEffect(function(){return av=!0,function(){av=!1}},[]),R)return null;var ee=Array.isArray(N)&&0<N.length?N.map(function(ue,ve){return Tr(Tr({},ue),{},{key:"".concat(ue.label||ve,"-option-key"),onClick:typeof ue.onClick=="function"?function(){return ue.onClick(function(se){return D(se,W)},function(se){return D(se,re)})}:void 0})}):[];return y.createElement(y.Fragment,null,y.createElement(Nm,{className:"FIE_topbar-save",color:"primary",onClick:W,menuPosition:"bottom",menuFromBtn:!0,label:0<ee.length?h("saveAs"):h("save"),menuItems:ee,menuStyle:foe,wrapperStyle:hoe,disabled:o||T&&!d||Q,noMargin:!0}),J&&y.createElement(N7,{className:"FIE_save-modal",title:h("saveAsModalTitle"),Icon:function(ue){return y.createElement(W$,he({color:n.palette["accent-primary"]},ue))},isOpened:J,onCancel:function(){av&&J&&(t.current=null,q(!1))},onDone:we,doneLabel:h("save"),cancelLabel:h("cancel"),doneButtonColor:"primary",areButtonsDisabled:o,zIndex:11110},y.createElement($ae,{className:"FIE_save-file-name-input",value:K.name,onChange:function(ue){var ve=ue.target.value;ce(Tr(Tr({},K),{},{name:ve}))},size:"sm",label:h("name"),placeholder:h("imageName"),error:!K.name,fullWidth:!0,focusOnMount:!0}),y.createElement(Qae,{className:"FIE_save-extension-selector",onChange:function(ue){return ce(Tr(Tr({},K),{},{extension:ue}))},value:K.extension,label:h("format"),placeholder:h("extension"),size:"sm",fullWidth:!0},td.map(function(ue){return y.createElement(ya,{key:ue,value:ue},ue)})),oe&&y.createElement(Jae,{className:"FIE_save-quality-wrapper"},y.createElement($t,null,h("quality")),y.createElement($n,{annotation:"%",min:1,max:100,onChange:function(ue){ce(Tr(Tr({},K),{},{quality:Hn(ue/100,.01,1)}))},value:parseInt(100*K.quality,10),width:"100%",style:doe})),y.createElement(eoe,{className:"FIE_save-resize-wrapper"},y.createElement(toe,null,h("resize")),y.createElement(k7,{onChange:function(ue){ce(Tr(Tr({},K),{},{size:Tr(Tr({},K.size),ue)}))},currentSize:K?.size||{},hideResetButton:!0,alignLeft:!0,alignment:"space-between"}))))},rA=function(e){var t=e.margin,n=$e(),r=n.isResetted,i=n.feedback,a=n.t,o=i.duration===0;return y.createElement(Dm,{isReset:!0},y.createElement(j7,{className:"FIE_topbar-reset-button",color:"basic",size:"sm",disabled:r===void 0||r||o,title:a("resetOperations"),margin:t},y.createElement(UM,null)))};rA.defaultProps={margin:void 0};var iA=function(e){var t=e.margin,n=$e(),r=n.dispatch,i=n.hasUndo,a=i!==void 0&&i,o=n.t,s=n.feedback,c=s.duration===0,d=V.useCallback(function(){r({type:O7})},[]);return y.createElement(j7,{className:"FIE_topbar-undo-button",color:"basic",size:"sm",onClick:a?d:void 0,disabled:!a||c,title:o("undoTitle"),margin:t},y.createElement(Y$,null))};iA.defaultProps={margin:void 0};var aA=function(e){var t=e.margin,n=$e(),r=n.dispatch,i=n.hasRedo,a=i!==void 0&&i,o=n.t,s=V.useCallback(function(){r({type:n7})},[]);return y.createElement(j7,{className:"FIE_topbar-redo-button",color:"basic",size:"sm",onClick:a?s:void 0,disabled:!a,title:o("redoTitle"),margin:t},y.createElement(Z$,null))};aA.defaultProps={margin:void 0};var poe=[{labelKey:"fitSize",factor:"fit"},{labelKey:"actualSize",factor:1},{label:"25%",factor:.25},{label:"50%",factor:.5},{label:"75%",factor:.75},{label:"125%",factor:1.25},{label:"170%",factor:1.7},{label:"300%",factor:3},{label:"500%",factor:5},{label:"1000%",factor:10}],rk=1.1,oA=function(e){var t=e.showBackButton,n=$e(),r=n.dispatch,i=n.zoom,a=i===void 0?{}:i,o=n.toolId,s=n.feedback,c=n.t,d=n.shownImageDimensions,h=n.resize,b=n.originalImage,m=n.adjustments.crop,g=n.config.useZoomPresetsMenu,v=s.duration===0,w=V.useState(null),k=Oe(w,2),C=k[0],_=k[1],f=function(N,T){r({type:pd,payload:{factor:N,isAbsoluteZoom:T}})},x=function(){var N=h.width&&h.height&&h||m.width&&m.height&&m||d,T=em(m.width&&m.height&&m||d,N);f(T,!0)},E=function(N){_(C?null:N.target)},M=function(N){if(N==="fit")return x(),void E();var T=h.width||h.height?N:Math.min(N*b.width/d.width,N*b.height/d.height);f(T,!0),E()},j=o===de.CROP||v,P=!b||h.width||h.height?a.factor:Math.min(d.width*a.factor/b.width,d.height*a.factor/b.height);return y.createElement(Wae,null,y.createElement(u6,{onClick:function(){f(a.factor/rk)},color:"basic",title:c("zoomOutTitle"),disabled:j,showBackButton:t,className:"FIE_topbar-zoom-out-btn"},y.createElement(bJ,null)),y.createElement(Kae,{title:c("toggleZoomMenuTitle"),onClick:j?void 0:g&&E||x,"aria-disabled":j,className:"FIE_topbar-zoom-label"},"".concat(bn(100*P,0),"%")),y.createElement(u6,{onClick:function(){f(a.factor*rk)},color:"basic",title:c("zoomInTitle"),disabled:j,showBackButton:t,className:"FIE_topbar-zoom-in-btn"},y.createElement(fJ,null)),y.createElement(Do,{anchorEl:C,onClose:E,open:!!C,position:"bottom",className:"FIE_topbar-zoom-menu"},poe.map(function(N){var T=N.factor,R=N.labelKey,z=N.label;return y.createElement(ya,{key:z||R,onClick:function(){return M(T)}},y.createElement(Pm,null,z??c(R)))})))};oA.defaultProps={showBackButton:!1};var sA=function(e){var t=e.showBackButton,n=e.isPhoneScreen,r=$e(),i=r.dispatch,a=r.isResetted,o=a===void 0||a,s=r.originalImage,c=r.resize,d=c===void 0?{}:c,h=r.adjustments,b=h.crop,m=h.rotation,g=m===void 0?0:m,v=r.shownImageDimensions,w=r.config.disableZooming,k=r.t,C=function(){i({type:l6,payload:{isShow:!1}}),document.removeEventListener("mouseup",C),document.removeEventListener("mouseleave",C),document.removeEventListener("touchcancel",C),document.removeEventListener("touchend",C)},_=function(){i({type:l6,payload:{isShow:!0}}),document.addEventListener("mouseup",C),document.addEventListener("mouseleave",C),document.addEventListener("touchcancel",C),document.addEventListener("touchend",C)};if(!s)return null;var f=FI(d,b,v,s,g);return y.createElement(roe,{isPhoneScreen:n},y.createElement(Xae,{title:k("imageDimensionsHoverTitle")},"".concat(f.width," x ").concat(f.height," px")),y.createElement(aoe,null,y.createElement(u6,{color:"basic",onMouseDown:o?void 0:_,onTouchStart:o?void 0:_,disabled:o,showBackButton:t,title:k("showImageTitle")},y.createElement(vJ,null)),!w&&y.createElement(y.Fragment,null,y.createElement(L7,null),y.createElement(oA,{showBackButton:t}))))};sA.defaultProps={showBackButton:!1,isPhoneScreen:!1};var goe=function(){var e=$e(),t=e.t,n=ba();return y.createElement(Dm,null,y.createElement(Ci,{className:"FIE_topbar-back-button",color:"link-secondary",size:"sm",startIcon:y.createElement(QM,null)},!n&&y.createElement(Zae,null,t("back"))))},lA=function(e){var t=e.toggleMainMenu,n=$e(),r=n.config.showBackButton,i=ba(320);return y.createElement(Gae,{className:"FIE_topbar",isPhoneScreen:i},y.createElement(Vae,{className:"FIE_topbar-buttons-wrapper"},y.createElement(ioe,{className:"FIE_tabs_toggle_btn",size:i?"sm":"lg",color:"basic",onClick:function(){return t(!0)}},function(a){return y.createElement(eI,a)}),r?y.createElement(goe,null):y.createElement(nk,null)),y.createElement(Yae,{className:"FIE_topbar-center-options",showBackButton:r},y.createElement(sA,{showBackButton:r,isPhoneScreen:i})),y.createElement(Uae,null,y.createElement(noe,{className:"FIE_topbar-history-buttons"},y.createElement(rA,{margin:"0",showBackButton:r}),y.createElement(iA,{margin:"0",showBackButton:r}),y.createElement(aA,{margin:"0",showBackButton:r})),r?y.createElement(nk,null):y.createElement(coe,null)))};lA.defaultProps={toggleMainMenu:function(){}};var moe=Z.div.withConfig({componentId:"sc-qhd6ow-0"})(function(e){var t=e.theme;return`
|
|
width: 72px;
|
|
min-height: 66px;
|
|
padding: 4px 2px;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
background: `.concat(t.palette[L.BackgroundStateless],`;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
[data-phone='true'] & {
|
|
margin-bottom: 0;
|
|
height: 50px;
|
|
border-radius: 0;
|
|
}
|
|
|
|
svg {
|
|
color: `).concat(t.palette[L.IconsPrimary],`;
|
|
}
|
|
|
|
&,
|
|
* {
|
|
cursor: pointer;
|
|
}
|
|
|
|
&:hover {
|
|
background: `).concat(t.palette["bg-primary-active"],`;
|
|
}
|
|
|
|
&[aria-selected='true'] {
|
|
background: `).concat(t.palette["bg-primary-active"],`;
|
|
|
|
* {
|
|
color: `).concat(t.palette["accent-primary-active"],`;
|
|
}
|
|
}
|
|
`)}),voe=Z($t).withConfig({componentId:"sc-qhd6ow-1"})(function(e){var t=e.theme;return`
|
|
color: `.concat(t.palette[L.TextPrimary],`;
|
|
`).concat(t.typography.font[_e.LabelSmall],`;
|
|
font-size: 12px;
|
|
line-height: 14px;
|
|
|
|
span {
|
|
white-space: normal;
|
|
}
|
|
|
|
[data-phone='true'] & {
|
|
font-size: 10px;
|
|
}
|
|
`)}),cA=function(e){var t=e.id,n=e.label,r=e.Icon,i=e.isSelected,a=e.onClick,o=V.useCallback(function(){typeof a=="function"&&a(t)},[t]);return y.createElement(moe,{className:"FIE_tab","aria-selected":i,onClick:o},y.createElement(r,{size:24}),n&&y.createElement(voe,{className:"FIE_tab-label"},n))};cA.defaultProps={isSelected:!1,onClick:void 0,label:void 0};const yoe=V.memo(cA);var ov=[{id:qt.ADJUST,labelKey:"adjustTab",icon:FJ},{id:qt.FINETUNE,labelKey:"finetuneTab",icon:_J},{id:qt.FILTERS,labelKey:"filtersTab",icon:J$,hideFn:function(e){var t=e.useCloudimage;return t}},{id:qt.WATERMARK,labelKey:"watermarkTab",icon:sQ},{id:qt.ANNOTATE,labelKey:"annotateTabLabel",icon:TJ,hideFn:function(e){var t=e.useCloudimage;return t}},{id:qt.RESIZE,labelKey:"resizeTab",icon:aQ}],D7=function(e){var t=e.toggleMainMenu,n=e.isDrawer,r=$e(),i=r.t,a=r.tabId,o=a===void 0?null:a,s=r.dispatch,c=r.config,d=c.defaultTabId,h=c.tabsIds,b=c.useCloudimage,m=V.useCallback(function(w){s({type:BI,payload:{tabId:w}}),t(!1)},[]),g=V.useMemo(function(){var w=[];return 0<Object.keys(h).length?ov.forEach(function(k){var C=h.indexOf(k.id);C!==-1&&(w[C]=k)}):w=ov,(0<w.length?w:ov).filter(function(k){var C=k.hideFn;return!C||!C({useCloudimage:b})})},[h]);if(g.length===1)return null;var v=function(w){var k=w.id,C=w.labelKey,_=w.icon;return y.createElement(yoe,{key:k,id:k,label:i(C),Icon:_,isSelected:(o||d)===k,onClick:m})};return y.createElement(y.Fragment,null,g.map(function(w){return n?y.createElement(a6,{key:w.id},v(w)):v(w)}))};D7.defaultProps={toggleMainMenu:function(){},isDrawer:!1};var uA=function(e){var t=e.children,n=e.isPhoneScreen;return y.createElement(RK,{className:"FIE_tool-options-wrapper",hasChildren:!!t,isPhoneScreen:n},t)};uA.defaultProps={children:void 0,isPhoneScreen:!1};var boe={maxWidth:"100%",width:"100%"},dA=function(e){var t,n=e.isPhoneScreen,r=$e(),i=r.t,a=r.dispatch,o=r.tabId,s=r.toolId,c=r.annotations,d=r.selectionsIds,h=d===void 0?[]:d,b=r.config,m=b.defaultTabId,g=b.defaultToolId,v=b.useCloudimage,w=o||m,k=s||g||((t=Xp[w])===null||t===void 0?void 0:t[0]),C=V.useMemo(function(){return Xp[w]||[]},[w]),_=V.useCallback(function(E){a({type:rm,payload:{toolId:E}})},[]),f=V.useMemo(function(){return C.map(function(E){var M=yh[E],j=M.Item,P=M.hideFn;return j&&(!P||!P({useCloudimage:v}))&&y.createElement(j,{key:E,selectTool:_,t:i,isSelected:k===E})})},[C,k]),x=V.useMemo(function(){var E,M,j;if(!k)return!1;if(w===qt.ANNOTATE){var P=h.length;if(P===1){var N,T=c[h[0]];return(N=yh[T.name])===null||N===void 0?void 0:N.ItemOptions}if(1<P)return null}return w&&k&&Xp[w].includes(k)&&(!((E=yh[s])!==null&&E!==void 0&&E.hideFn)||!((M=yh[s])!==null&&M!==void 0&&M.hideFn({useCloudimage:v})))&&((j=yh[s])===null||j===void 0?void 0:j.ItemOptions)},[w,k,c,h]);return V.useEffect(function(){!s&&k&&a({type:rm,payload:{toolId:k}})},[]),y.createElement(jK,{className:"FIE_tools-bar-wrapper"},y.createElement(uA,{isPhoneScreen:n},x&&y.createElement(x,{t:i})),f&&y.createElement(NK,{className:"FIE_tools-bar",isPhoneScreen:n},w===qt.WATERMARK?f:y.createElement(Lm,{className:"FIE_tools",style:boe},f)))};dA.defaultProps={isPhoneScreen:!1};var woe={horizontal:"center",vertical:"bottom"},xoe=I(I({},nd.ERROR,"error"),nd.WARNING,"warning"),hA=function(e){var t,n=e.anchorOrigin,r=$e(),i=r.feedback,a=i===void 0?{}:i,o=r.dispatch;return a.message?y.createElement($y,{className:"FIE_feedback-robot",anchorOrigin:n,autoHideDuration:(t=a.duration)!==null&&t!==void 0?t:5e3,message:a.message,open:!!a.message,status:xoe[a.status||nd.ERROR],onClose:function(){o({type:Xs,payload:{feedback:{}}})}}):null};hA.defaultProps={anchorOrigin:woe};var Coe=t8(["to{transform:rotate(360deg);}"]),Soe=Z.div.withConfig({componentId:"sc-m42fbk-0"})(["background:",";display:flex;align-items:center;justify-content:center;position:absolute;z-index:11111;top:0;bottom:0;right:0;left:0;flex-direction:column;user-select:none;"],function(e){var t=e.theme.palette;return t[L.BackgroundStateless]}),Eoe=Z(qJ).withConfig({componentId:"sc-m42fbk-1"})(["animation:"," 1.2s infinite;"],Coe),fA=function(e){var t=e.theme;return y.createElement(Soe,{className:"FIE_spinner-wrapper"},y.createElement(Eoe,{size:50,color:t.palette[L.AccentStateless]}))};fA.defaultProps={theme:{}};var _oe=["cropX2","cropY2","crop","watermark"];function ik(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 fo(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?ik(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ik(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var koe=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{},r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:{},i=eG[t];switch(e){case"wat_text":return{watermark:{text:t.replaceAll("+"," ")}};case"wat_font":return{watermark:{fontFamily:t}};case"wat_color":return{watermark:{fill:"#".concat(t)}};case"wat_fontsize":return{watermark:{fontSize:parseFloat(t)}};case"wat_opacity":return{watermark:{opacity:parseFloat(t)}};case"wat_pos":{var a=t.split(","),o=Oe(a,2),s=o[0],c=o[1];return{watermark:{x:parseFloat(s)/100*n.width,y:parseFloat(c)/100*n.height}}}case"wat_url":return{watermark:{image:decodeURIComponent(t)}};case"wat_scale":{var d=t.split(","),h=Oe(d,2),b=h[0],m=h[1];return{watermark:{width:parseFloat(b)/100*(n.width||0),height:parseFloat(m)/100*(n.height||0)}}}case"tl_px":{var g=t.split(","),v=Oe(g,2),w=v[0],k=v[1];return{crop:{x:Ga(parseFloat(w),0,r.width,0,n.width),y:Ga(parseFloat(k),0,r.height,0,n.height)}}}case"br_px":{var C=t.split(","),_=Oe(C,2),f=_[0],x=_[1];return{cropX2:Ga(parseFloat(f),0,r.width,0,n.width),cropY2:Ga(parseFloat(x),0,r.height,0,n.height)}}case"round":return{crop:{ratio:hc}};case"gravity":return{crop:i?{lockCropAreaAt:i,width:null,height:null}:{noEffect:!0,ratio:t,ratioTitleKey:t,width:null,height:null}};case"aspect_ratio":return{crop:{ratio:+t}};case"w":return{resize:{width:parseFloat(t)}};case"h":return{resize:{height:parseFloat(t)}};case"r":return{adjustments:{rotation:-parseInt(t,10)}};case"flip":case"mirror":return{adjustments:{isFlippedX:t.includes("x")||t.includes("h"),isFlippedY:t.includes("y")||t.includes("v")}};default:{var E;if(Object.keys(Gp).forEach(function(N){Gp[N].cloudimage.name===e.toLowerCase()&&(E=N)}),!E)return null;var M=Gp[E],j=M.cloudimage,P=M.internal;return{finetunes:[yn.Filters[E]],finetunesProps:I({},P.propName,Ga(parseFloat(t),j.min,j.max,P.min,P.max))}}}},Ooe=function(e,t,n){if(!e)return null;var r=e.split("&"),i={};r.forEach(function(m){var g=m.split("="),v=Oe(g,2),w=v[0],k=v[1],C=koe(w,k,t,n);C&&(i=D0(i,C,!0))});var a=i,o=a.cropX2,s=a.cropY2,c=a.crop,d=a.watermark,h=me(a,_oe),b=fo(fo(fo({},h),o&&s&&c||c!=null&&c.noEffect||c!=null&&c.lockCropAreaAt?{adjustments:fo(fo({},h.adjustments),{},{crop:fo({width:(o||0)-c.x,height:(s||0)-c.y},c)})}:{}),{},{annotations:fo({},d?I({},Hs,fo(fo({},d),{},{x:(c?.x||0)+(d.x||0),y:(c?.y||0)+(d.y||0),id:Hs,name:d.text?de.TEXT:de.IMAGE},d.text?{width:d.text.length*d.fontSize,height:d.fontSize}:{})):{})});return b},sv=function(e,t){return e&&t&&(e instanceof HTMLImageElement&&e.src===t.src&&e.width===t.width&&e.height===t.height||(e?.src||e)===t.src)},ak=function(e,t){var n=V.useRef(!0);V.useEffect(function(){return function(){n.current=!0}},[]),V.useEffect(function(){if(n.current)n.current=!1;else if(typeof e=="function")return e()},t)},Poe=Z.div.attrs(function(e){var t,n,r=e.$size,i=r===void 0?{}:r;return{style:{width:(t=i.width)!==null&&t!==void 0?t:"100%",height:(n=i.height)!==null&&n!==void 0?n:"100%"}}}).withConfig({componentId:"sc-ugtqr7-0"})(["display:flex;flex-direction:column;align-items:center;height:100%;max-height:100%;width:100%;max-width:100%;overflow:auto;border-radius:8px;position:relative;min-height:250px;background:",";",""],function(e){var t=e.theme;return t.palette["bg-secondary"]},function(e){var t=e.showTabsDrawer;return t&&`
|
|
overflow: unset;
|
|
`}),Toe=Z.div.withConfig({componentId:"sc-ugtqr7-1"})(["display:flex;align-items:flex-start;width:100%;box-sizing:border-box;height:calc(100% - 95px);flex-grow:1;[data-phone='true'] &{padding:0;}"]),Moe=Z.div.withConfig({componentId:"sc-ugtqr7-2"})(["height:100%;width:calc(100% - 80px);flex-grow:1;overflow-y:auto;display:flex;flex-direction:column;",""],function(e){var t=e.showTabsDrawer;return t&&`
|
|
overflow-y: unset;
|
|
`}),Ioe=Z.div.withConfig({componentId:"sc-ugtqr7-3"})(["min-width:108px;height:100%;padding:16px;display:flex;flex-direction:column;gap:16px;overflow-y:auto;max-height:100%;box-shadow:6px 8px 12px 0px rgba(146,166,188,0.14);[data-phone='true'] &{display:flex;padding:0;}"]),Aoe=Z(C7).withConfig({componentId:"sc-ugtqr7-4"})(["transition:transform 200ms ease-in-out;width:92px;height:100%;padding:12px;.SfxDrawer-list,.SfxDrawer-item{padding:0;}"]),pA=function(e){var t=e.toggleMainMenu,n=$e(),r=n.t,i=n.showTabsMenu;return y.createElement(Aoe,{className:"FIE_tabs-drawer",open:i,onClose:function(){return t(!1)},disablePortal:!0},y.createElement(n6,null,y.createElement(Ci,{color:"link-basic-secondary",startIcon:y.createElement(eI,null),onClick:function(){return t(!1)}},r("tabsMenu"))),y.createElement(r6,null,y.createElement(i6,null,y.createElement(D7,{toggleMainMenu:t,isDrawer:!0}))))};pA.defaultProps={toggleMainMenu:function(){}};function ok(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 sk(e){for(var t,n=1;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?ok(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ok(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var Loe=function(){var e=$e(),t=e.config,n=e.isLoadingGlobally,r=e.haveNotSavedChanges,i=e.dispatch,a=e.originalImage,o=e.shownImageDimensions,s=e.t,c=e.theme,d=e.feedback,h=d===void 0?{}:d,b=t.loadableDesignState,m=t.useCloudimage,g=t.cloudimage,v=t.source,w=t.avoidChangesNotSavedAlertOnLeave,k=t.useBackendTranslations,C=t.translations,_=t.language,f=t.defaultSavedImageName,x=t.observePluginContainerSize,E=t.showCanvasOnly,M=t.getCurrentImgDataFnRef,j=t.updateStateFnRef,P=t.noCrossOrigin,N=t.resetOnImageSourceChange,T=window.matchMedia("(max-width: 760px)").matches,R=o7(),z=Oe(R,2),H=z[0],J=z[1],q=V.useState({width:void 0,height:void 0}),Y=Oe(q,2),le=Y[0],K=Y[1],ce=ba(),ne=V.useRef(null),oe=V.useRef(!1),Q=V.useRef(null),$=V.useRef(r),re=uM(),we=V.useCallback(function(se){i({type:UI,payload:{originalImage:se}})},[]),W=V.useCallback(function(se){i({type:Xs,payload:{feedback:{message:se.message||se,duration:0}}})},[]),D=function(se){return new Promise(function(Ie){var Ae=se?.src||se;if(Q.current===Ae||!Ae&&a||sv(Ae,a))return void(Q.current||Ie());var Se=function(){Q.current=null,Ie()};Q.current=Ae,setTimeout(function(){if(typeof se=="string")eA(se,f,P).then(we).catch(W).finally(Se);else if(se instanceof HTMLImageElement){if(!se.name&&f&&(se.name=f),!se.complete)return void se.addEventListener("load",function(){we(se),Se()});we(se),Se()}else W(s("invalidImageError")),Se()},0)})},B=function(se){$.current&&(se.preventDefault(),se.returnValue="")},ee=function(){var se=0<arguments.length&&arguments[0]!==void 0?arguments[0]:function(){return[]};return i({type:r7}),Promise.all(se()).finally(function(){i({type:bm})})},ue=function(){b&&0<Object.keys(b).length&&i({type:Yp,payload:sk(sk({},b),{},{finetunes:tM(b?.finetunes),filter:JT(b?.filter)})})};ak(function(){v&&!sv(v,a)&&(oe.current=!1,ee(function(){return[D(v)]})),N&&i({type:xm,payload:{config:t}})},[v]),ak(function(){var se=b?.imgSrc;se&&!sv(se,a)?ee(function(){return[D(se).then(ue)]}):ue()},[b]),V.useEffect(function(){0<Object.keys(o||{}).length&&!Object.keys(o).some(function(se){return!o[se]})&&a&&m&&g!==null&&g!==void 0&&g.loadableQuery&&!oe.current&&(i({type:Yp,payload:Ooe(g.loadableQuery,o,a)}),oe.current=!0)},[o,a,m,g]),V.useEffect(function(){var se=!1;return x&&ne.current?H(ne.current.parentNode,function(Ie){var Ae=Ie.width,Se=Ie.height;return K({width:Ae,height:Se})}):le.width&&le.height&&!se&&K({width:void 0,height:void 0}),function(){x&&ne.current&&J(ne.current),se=!0}},[x]),V.useEffect(function(){return ee(function(){return[D(b?.imgSrc||v)].concat(an(k?[XY(_,C)]:[]))}),window&&!w&&window.addEventListener("beforeunload",B),function(){window&&!w&&window.removeEventListener("beforeunload",B)}},[]),V.useEffect(function(){j&&Hr(j)==="object"&&(j.current=function(se){i({type:Yp,payload:se})})},[j,i]),V.useEffect(function(){M&&Hr(M)==="object"&&(M.current=re)},[re]),V.useEffect(function(){$.current=r},[r]);var ve=function(se){i({type:qI,payload:{opened:se}})};return y.createElement(Poe,{className:sg,"data-phone":ce,showTabsDrawer:T,ref:ne,$size:le},n&&y.createElement(fA,{theme:c}),function(){return y.createElement(y.Fragment,null,!E&&y.createElement(y.Fragment,null,T&&y.createElement(pA,{toggleMainMenu:ve}),y.createElement(lA,{toggleMainMenu:ve})),a&&h.duration!==0&&y.createElement(Toe,{className:"FIE_main-container"},!E&&!T&&y.createElement(Ioe,{className:"FIE_tabs"},y.createElement(D7,{toggleMainMenu:ve})),y.createElement(Moe,{className:"FIE_editor-content",showTabsDrawer:T},y.createElement(Bae,null),!E&&y.createElement(dA,{isPhoneScreen:ce}))))}(),y.createElement(hA,null))};const joe=V.memo(Loe);var Noe=function(){Object.keys(Konva.Filters).forEach(function(e){return Konva.Filters[e].finetuneName=e})},Doe=gm([".","{font-family:",";}.SfxModal-Wrapper *{font-family:",";}"],sg,function(e){var t,n=e.theme,r=n===void 0?{}:n;return((t=r.typography)===null||t===void 0?void 0:t.fontFamily)||"Arial"},function(e){var t,n=e.theme,r=n===void 0?{}:n;return((t=r.typography)===null||t===void 0?void 0:t.fontFamily)||"Arial"}),Roe=gm([".Menu-open{overflow:visible !important;}.",",#SfxPopper{box-sizing:border-box;.SfxPopper-root .SfxMenu-root{overflow:visible;width:max-content;.SfxMenuItem-prefix{margin-right:6px;}}}."," *,#SfxPopper *{box-sizing:border-box;scrollbar-color:rgba(203,211,218,1) rgba(203,211,218,0.35);:not(button) > 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;n<arguments.length;n++)t=arguments[n]==null?{}:arguments[n],n%2?lk(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):lk(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}function lv(e,t,n){zoe(e,t),t.set(e,n)}function zoe(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Nl(e,t){return e.get(mA(e,t))}function $f(e,t,n){return e.set(mA(e,t),n),n}function mA(e,t,n){if(typeof e=="function"?e===t:e.has(t))return 3>arguments.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<arguments.length&&arguments[1]!==void 0?arguments[1]:{};if(ZA(this,e),lv(this,uu,void 0),lv(this,Qf,void 0),lv(this,Jf,void 0),this.container=t,this.config=n,!t||!(t instanceof HTMLElement))throw new Error("`container` (argument 0) is required to initialize the image editor plugin.");$f(uu,this,ny(this.container)),$f(Qf,this,{}),$f(Jf,this,{}),this.getCurrentImgData=this.getCurrentImgData.bind(this),this.render=this.render.bind(this),this.terminate=this.terminate.bind(this),this.updateState=this.updateState.bind(this)}return QA(e,[{key:"render",value:function(t){Hr(t)==="object"&&(this.config=this.config=D0(this.config||{},t)),this.config=ck(ck({},this.config),{},{getCurrentImgDataFnRef:Nl(Qf,this),updateStateFnRef:Nl(Jf,this)}),Nl(uu,this)._internalRoot||$f(uu,this,ny(this.container)),Nl(uu,this).render(V.createElement(Foe,this.config))}},{key:"terminate",value:function(){Nl(uu,this).unmount()}},{key:"getCurrentImgData",value:function(t,n,r){var i,a;return((i=Nl(Qf,this))===null||i===void 0||(a=i.current)===null||a===void 0?void 0:a.call(i,t,n,r))||{}}},{key:"updateState",value:function(t){var n,r;(n=Nl(Jf,this))===null||n===void 0||(r=n.current)===null||r===void 0||r.call(n,t)}}])}();I(ep,"TABS",qt),I(ep,"TOOLS",de),ep.TABS=qt,ep.TOOLS=de;export{ep as default};
|
|
//# sourceMappingURL=index-Dui4-o5s.chunk.mjs.map
|