/*! For license information please see 2.7b4df116.chunk.js.LICENSE.txt */ (this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(18)},function(e,t,n){"use strict";e.exports=n(17)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(6);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){e.exports=n(23)()},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),e.apply(this,arguments)}}u="function"!==typeof Object.assign?function(e){if(e===l||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n-1}function P(e){return e.trim().split(/\s+/g)}function O(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;rn[t]})):r.sort()),r}function L(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),o=0;o1&&!n.firstMultiple?n.firstMultiple=$(t):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,u=a?a.center:o.center,s=t.center=Y(r);t.timeStamp=p(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=K(u,s),t.distance=X(u,s),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y});t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=Q(t.deltaX,t.deltaY);var c=q(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=c.x,t.overallVelocityY=c.y,t.overallVelocity=d(c.x)>d(c.y)?c.x:c.y,t.scale=a?(f=a.pointers,h=r,X(h[0],h[1],W)/X(f[0],f[1],W)):1,t.rotation=a?function(e,t){return K(t[1],t[0],W)+K(e[1],e[0],W)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,i,o,a=e.lastInterval||t,u=t.timeStamp-a.timeStamp;if(8!=t.eventType&&(u>25||a.velocity===l)){var s=t.deltaX-a.deltaX,c=t.deltaY-a.deltaY,f=q(u,s,c);r=f.x,i=f.y,n=d(f.x)>d(f.y)?f.x:f.y,o=Q(s,c),e.lastInterval=t}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=o}(n,t);var f,h;var v=e.element;C(t.srcEvent.target,v)&&(v=t.srcEvent.target);t.target=v}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function $(e){for(var t=[],n=0;n=d(t)?e<0?2:4:t<0?8:16}function X(e,t,n){n||(n=V);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function K(e,t,n){n||(n=V);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}B.prototype={handler:function(){},init:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(R(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&_(this.element,this.evEl,this.domHandler),this.evTarget&&_(this.target,this.evTarget,this.domHandler),this.evWin&&_(R(this.element),this.evWin,this.domHandler)}};var G={mousedown:1,mousemove:2,mouseup:4},Z="mousedown",J="mousemove mouseup";function ee(){this.evEl=Z,this.evWin=J,this.pressed=!1,B.apply(this,arguments)}w(ee,B,{handler:function(e){var t=G[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:A,srcEvent:e}))}});var te={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ne={2:j,3:"pen",4:A,5:"kinect"},re="pointerdown",ie="pointermove pointerup pointercancel";function oe(){this.evEl=re,this.evWin=ie,B.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(re="MSPointerDown",ie="MSPointerMove MSPointerUp MSPointerCancel"),w(oe,B,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=te[r],o=ne[e.pointerType]||e.pointerType,a=o==j,l=O(t,e.pointerId,"pointerId");1&i&&(0===e.button||a)?l<0&&(t.push(e),l=t.length-1):12&i&&(n=!0),l<0||(t[l]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(l,1))}});var ae={touchstart:1,touchmove:2,touchend:4,touchcancel:8},le="touchstart",ue="touchstart touchmove touchend touchcancel";function se(){this.evTarget=le,this.evWin=ue,this.started=!1,B.apply(this,arguments)}function ce(e,t){var n=D(e.touches),r=D(e.changedTouches);return 12&t&&(n=N(n.concat(r),"identifier",!0)),[n,r]}w(se,B,{handler:function(e){var t=ae[e.type];if(1===t&&(this.started=!0),this.started){var n=ce.call(this,e,t);12&t&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:j,srcEvent:e})}}});var fe={touchstart:1,touchmove:2,touchend:4,touchcancel:8},de="touchstart touchmove touchend touchcancel";function pe(){this.evTarget=de,this.targetIds={},B.apply(this,arguments)}function he(e,t){var n=D(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=D(e.changedTouches),l=[],u=this.target;if(o=n.filter((function(e){return C(e.target,u)})),1===t)for(i=0;i-1&&r.splice(e,1)}),2500)}}function ye(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+Ne(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+Ne(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=Oe},canEmit:function(){for(var e=0;et.threshold&&i&t.direction},attrTest:function(e){return Re.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Le(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),w(Fe,Re,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[xe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),w(Me,De,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Ee]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distancet.time;if(this._input=e,!r||!n||12&e.eventType&&!i)this.reset();else if(1&e.eventType)this.reset(),this._timer=h((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return Oe},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),w(je,Re,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[xe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),w(Ae,Re,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Ie.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:n&U&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&d(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=Le(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),w(Ue,De,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Se]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance=9||(o.SUPPORT=void 0!==n.onmousewheel?"mousewheel":"DOMMouseScroll"),t.addEventListener||(o.ADD_EVENT="attachEvent",o.REMOVE_EVENT="detachEvent",o.PREFIX="on")},event:function(e){var t={originalEvent:e,target:e.target||e.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"===e.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){e.preventDefault?e.preventDefault():e.returnValue=!1},stopPropagation:function(){e.stopPropagation?e.stopPropagation():e.cancelBubble=!1}};return e.wheelDelta&&(t.deltaY=-1/40*e.wheelDelta),e.wheelDeltaX&&(t.deltaX=-1/40*e.wheelDeltaX),e.detail&&(t.deltaY=e.detail),t},delta:function(e){var t,n,o,a=0,l=0,u=0;return e.deltaY&&(a=u=-1*e.deltaY),e.deltaX&&(a=-1*(l=e.deltaX)),e.wheelDelta&&(a=e.wheelDelta),e.wheelDeltaY&&(u=e.wheelDeltaY),e.wheelDeltaX&&(l=-1*e.wheelDeltaX),e.detail&&(a=-1*e.detail),0===a?[0,0,0]:(t=Math.abs(a),(!r||t0?"floor":"ceil",[a=Math[o](a/r),l=Math[o](l/i),u=Math[o](u/i)])}},"function"===typeof t.define&&t.define.amd?t.define("hamster",[],(function(){return o})):e.exports=o}(window,window.document)},function(e,t,n){"use strict";var r={format:"image/png",quality:.92,width:void 0,height:void 0,Canvas:void 0,crossOrigin:void 0};t.a=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t={}),new Promise((function(n){var i=(t=Object.assign({},r,t)).Canvas?new t.Canvas:window.document.createElement("canvas"),o=t.Image||window.Image,a=e.map((function(e){return new Promise((function(n,r){"Object"!==e.constructor.name&&(e={src:e});var i=new o;i.crossOrigin=t.crossOrigin,i.onerror=function(){return r(new Error("Couldn't load image"))},i.onload=function(){return n(Object.assign({},e,{img:i}))},i.src=e.src}))})),l=i.getContext("2d");n(Promise.all(a).then((function(e){var n=function(n){return t[n]||Math.max.apply(Math,e.map((function(e){return e.img[n]})))};return i.width=n("width"),i.height=n("height"),e.forEach((function(e){return l.globalAlpha=e.opacity?e.opacity:1,l.drawImage(e.img,e.x||0,e.y||0)})),t.Canvas&&"image/jpeg"===t.format?new Promise((function(e,n){i.toDataURL(t.format,{quality:t.quality,progressive:!1},(function(t,r){t?n(t):e(r)}))})):i.toDataURL(t.format,t.quality)})))}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return J}));var r=n(0),i=n.n(r),o=n(3),a=n.n(o);function l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function l(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))}function u(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(l){i={error:l}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}Object.create;var c=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function f(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=c.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!==typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"===typeof t?t:"string"===typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var d=[".DS_Store","Thumbs.db"];function p(e){return(null!==e.target&&e.target.files?m(e.target.files):[]).map((function(e){return f(e)}))}function h(e,t){return l(this,void 0,void 0,(function(){var n;return u(this,(function(r){switch(r.label){case 0:return e.items?(n=m(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(g))]):[3,2];case 1:return[2,v(y(r.sent()))];case 2:return[2,v(m(e.files).map((function(e){return f(e)})))]}}))}))}function v(e){return e.filter((function(e){return-1===d.indexOf(e.name)}))}function m(e){for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,P(n)];if(e.sizen)return[!1,P(n)]}return[!0,null]}function z(e){return void 0!==e&&null!==e}function R(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles;return!(!o&&t.length>1||o&&a>=1&&t.length>a)&&t.every((function(e){var t=_(N(e,n),1)[0],o=_(L(e,r,i),1)[0];return t&&o}))}function I(e){return"function"===typeof e.isPropagationStopped?e.isPropagationStopped():"undefined"!==typeof e.cancelBubble&&e.cancelBubble}function F(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function M(e){e.preventDefault()}function j(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function A(e){return-1!==e.indexOf("Edge/")}function U(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return j(e)||A(e)}function V(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),i=1;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var K=Object(r.forwardRef)((function(e,t){var n=e.children,o=J(X(e,["children"])),a=o.open,l=X(o,["open"]);return Object(r.useImperativeHandle)(t,(function(){return{open:a}}),[a]),i.a.createElement(r.Fragment,null,n(q(q({},l),{},{open:a})))}));K.displayName="Dropzone";var G={disabled:!1,getFilesFromEvent:function(e){return l(this,void 0,void 0,(function(){return u(this,(function(t){return[2,(n=e,n.dataTransfer&&e.dataTransfer?h(e.dataTransfer,e.type):p(e))];var n}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1};K.defaultProps=G,K.propTypes={children:a.a.func,accept:a.a.oneOfType([a.a.string,a.a.arrayOf(a.a.string)]),multiple:a.a.bool,preventDropOnDocument:a.a.bool,noClick:a.a.bool,noKeyboard:a.a.bool,noDrag:a.a.bool,noDragEventsBubbling:a.a.bool,minSize:a.a.number,maxSize:a.a.number,maxFiles:a.a.number,disabled:a.a.bool,getFilesFromEvent:a.a.func,onFileDialogCancel:a.a.func,onDragEnter:a.a.func,onDragLeave:a.a.func,onDragOver:a.a.func,onDrop:a.a.func,onDropAccepted:a.a.func,onDropRejected:a.a.func};var Z={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=q(q({},G),e),n=t.accept,i=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,l=t.minSize,u=t.multiple,s=t.maxFiles,c=t.onDragEnter,f=t.onDragLeave,d=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,v=t.onDropRejected,m=t.onFileDialogCancel,g=t.preventDropOnDocument,y=t.noClick,b=t.noKeyboard,w=t.noDrag,k=t.noDragEventsBubbling,E=Object(r.useRef)(null),S=Object(r.useRef)(null),x=Object(r.useReducer)(ee,Z),_=B(x,2),C=_[0],T=_[1],P=C.isFocused,O=C.isFileDialogActive,z=C.draggedFiles,j=Object(r.useCallback)((function(){S.current&&(T({type:"openDialog"}),S.current.value=null,S.current.click())}),[T]),A=function(){O&&setTimeout((function(){S.current&&(S.current.files.length||(T({type:"closeDialog"}),"function"===typeof m&&m()))}),300)};Object(r.useEffect)((function(){return window.addEventListener("focus",A,!1),function(){window.removeEventListener("focus",A,!1)}}),[S,O,m]);var H=Object(r.useCallback)((function(e){E.current&&E.current.isEqualNode(e.target)&&(32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),j()))}),[E,S]),$=Object(r.useCallback)((function(){T({type:"focus"})}),[]),Y=Object(r.useCallback)((function(){T({type:"blur"})}),[]),K=Object(r.useCallback)((function(){y||(U()?setTimeout(j,0):j())}),[S,y]),J=Object(r.useRef)([]),te=function(e){E.current&&E.current.contains(e.target)||(e.preventDefault(),J.current=[])};Object(r.useEffect)((function(){return g&&(document.addEventListener("dragover",M,!1),document.addEventListener("drop",te,!1)),function(){g&&(document.removeEventListener("dragover",M),document.removeEventListener("drop",te))}}),[E,g]);var ne=Object(r.useCallback)((function(e){e.preventDefault(),e.persist(),se(e),J.current=[].concat(W(J.current),[e.target]),F(e)&&Promise.resolve(o(e)).then((function(t){I(e)&&!k||(T({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e))}))}),[o,c,k]),re=Object(r.useCallback)((function(e){if(e.preventDefault(),e.persist(),se(e),e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(t){}return F(e)&&d&&d(e),!1}),[d,k]),ie=Object(r.useCallback)((function(e){e.preventDefault(),e.persist(),se(e);var t=J.current.filter((function(e){return E.current&&E.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),J.current=t,t.length>0||(T({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),F(e)&&f&&f(e))}),[E,f,k]),oe=Object(r.useCallback)((function(e){e.preventDefault(),e.persist(),se(e),J.current=[],F(e)&&Promise.resolve(o(e)).then((function(t){if(!I(e)||k){var r=[],i=[];t.forEach((function(e){var t=B(N(e,n),2),o=t[0],u=t[1],s=B(L(e,l,a),2),c=s[0],f=s[1];if(o&&c)r.push(e);else{var d=[u,f].filter((function(e){return e}));i.push({file:e,errors:d})}})),(!u&&r.length>1||u&&s>=1&&r.length>s)&&(r.forEach((function(e){i.push({file:e,errors:[D]})})),r.splice(0)),T({acceptedFiles:r,fileRejections:i,type:"setFiles"}),p&&p(r,i,e),i.length>0&&v&&v(i,e),r.length>0&&h&&h(r,e)}})),T({type:"reset"})}),[u,n,l,a,s,o,p,h,v,k]),ae=function(e){return i?null:e},le=function(e){return b?null:ae(e)},ue=function(e){return w?null:ae(e)},se=function(e){k&&e.stopPropagation()},ce=Object(r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onKeyDown,o=e.onFocus,a=e.onBlur,l=e.onClick,u=e.onDragEnter,s=e.onDragOver,c=e.onDragLeave,f=e.onDrop,d=X(e,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return q(q(Q({onKeyDown:le(V(r,H)),onFocus:le(V(o,$)),onBlur:le(V(a,Y)),onClick:ae(V(l,K)),onDragEnter:ue(V(u,ne)),onDragOver:ue(V(s,re)),onDragLeave:ue(V(c,ie)),onDrop:ue(V(f,oe))},n,E),i||b?{}:{tabIndex:0}),d)}}),[E,H,$,Y,K,ne,re,ie,oe,b,w,i]),fe=Object(r.useCallback)((function(e){e.stopPropagation()}),[]),de=Object(r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,i=e.onChange,o=e.onClick,a=X(e,["refKey","onChange","onClick"]),l=Q({accept:n,multiple:u,type:"file",style:{display:"none"},onChange:ae(V(i,oe)),onClick:ae(V(o,fe)),autoComplete:"off",tabIndex:-1},r,S);return q(q({},l),a)}}),[S,n,u,oe,i]),pe=z.length,he=pe>0&&R({files:z,accept:n,minSize:l,maxSize:a,multiple:u,maxFiles:s}),ve=pe>0&&!he;return q(q({},C),{},{isDragAccept:he,isDragReject:ve,isFocused:P&&!i,getRootProps:ce,getInputProps:de,rootRef:E,inputRef:S,open:ae(j)})}function ee(e,t){switch(t.type){case"focus":return q(q({},e),{},{isFocused:!0});case"blur":return q(q({},e),{},{isFocused:!1});case"openDialog":return q(q({},e),{},{isFileDialogActive:!0});case"closeDialog":return q(q({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return q(q({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return q(q({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return q(q({},e),{},{isFileDialogActive:!1,isDragActive:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]});default:return e}}},function(e,t,n){"use strict";n(7);var r=n(0),i=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,o={},s=null,c=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(c=t.ref),t)l.call(t,r)&&!u.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:s,ref:c,props:o,_owner:a.current}}t.jsx=s,t.jsxs=s},function(e,t,n){"use strict";var r=n(7),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,u=60112;t.Suspense=60113;var s=60115,c=60116;if("function"===typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),l=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),s=f("react.memo"),c=f("react.lazy")}var d="function"===typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n