{"version":3,"file":"defaultVendors~AccountAreaRoot~AlgoliaSearchResults~ApplicationGallery~Downloads~Header~LasersRange~~d8e5dc4e-6c7037813ea8cf3366d2.js","sources":["webpack:///defaultVendors~AccountAreaRoot~AlgoliaSearchResults~ApplicationGallery~Downloads~Header~LasersRange~~d8e5dc4e-6c7037813ea8cf3366d2.js"],"sourcesContent":["(this.nextGenJsonpFunction=this.nextGenJsonpFunction||[]).push([[11],{106:function(n,t,e){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});const i=\"undefined\"!=typeof performance?()=>performance.now():()=>Date.now(),o=\"undefined\"!=typeof window?n=>window.requestAnimationFrame(n):n=>setTimeout(()=>n(i()),1/60*1e3);let r=!0,a=!1,s=!1;const u={delta:0,timestamp:0},c=[\"read\",\"update\",\"preRender\",\"render\",\"postRender\"],l=c.reduce((n,t)=>(n[t]=function(n){let t=[],e=[],i=0,o=!1,r=!1;const a=new WeakSet,s={schedule:(n,r=!1,s=!1)=>{const u=s&&o,c=u?t:e;return r&&a.add(n),-1===c.indexOf(n)&&(c.push(n),u&&o&&(i=t.length)),n},cancel:n=>{const t=e.indexOf(n);-1!==t&&e.splice(t,1),a.delete(n)},process:u=>{if(o)r=!0;else{if(o=!0,[t,e]=[e,t],e.length=0,i=t.length,i)for(let e=0;ea=!0),n),{}),f=c.reduce((n,t)=>{const e=l[t];return n[t]=(n,t=!1,i=!1)=>(a||h(),e.schedule(n,t,i)),n},{}),p=c.reduce((n,t)=>(n[t]=l[t].cancel,n),{}),d=c.reduce((n,t)=>(n[t]=()=>l[t].process(u),n),{}),m=n=>l[n].process(u),v=n=>{a=!1,u.delta=r?1/60*1e3:Math.max(Math.min(n-u.timestamp,40),1),u.timestamp=n,s=!0,c.forEach(m),s=!1,a&&(r=!1,o(v))},h=()=>{a=!0,r=!0,s||o(v)};t.cancelSync=p,t.default=f,t.flushSync=d,t.getFrameData=()=>u},130:function(n,t,e){\"use strict\";e.d(t,\"a\",(function(){return r}));var i=e(481),o=e(427),r=Object(i.a)(o.a)},341:function(n,t,e){\"use strict\";e.d(t,\"a\",(function(){return o}));var i=e(0);function o(n){return Object(i.useEffect)((function(){return function(){return n()}}),[])}},421:function(n,t,e){\"use strict\";e.d(t,\"a\",(function(){return ln})),e.d(t,\"b\",(function(){return sn}));var i=e(0),o=e.n(i),r=function(n,t){return Number(n.toFixed(t))},a=function(n,t,e){e&&\"function\"==typeof e&&e(n,t)},s={easeOut:function(n){return-Math.cos(n*Math.PI)/2+.5},linear:function(n){return n},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return n*(2-n)},easeInOutQuad:function(n){return n<.5?2*n*n:(4-2*n)*n-1},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return--n*n*n+1},easeInOutCubic:function(n){return n<.5?4*n*n*n:(n-1)*(2*n-2)*(2*n-2)+1},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return 1- --n*n*n*n},easeInOutQuart:function(n){return n<.5?8*n*n*n*n:1-8*--n*n*n*n},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return 1+--n*n*n*n*n},easeInOutQuint:function(n){return n<.5?16*n*n*n*n*n:1+16*--n*n*n*n*n}},u=function(n){\"number\"==typeof n&&cancelAnimationFrame(n)},c=function(n){n.mounted&&(u(n.animation),n.animate=!1,n.animation=null,n.velocity=null)};function l(n,t,e,i){if(n.mounted){var o=(new Date).getTime();c(n),n.animation=function(){if(!n.mounted)return u(n.animation);var r=(new Date).getTime()-o,a=(0,s[t])(r/e);r>=e?(i(1),n.animation=null):n.animation&&(i(a),requestAnimationFrame(n.animation))},requestAnimationFrame(n.animation)}}function f(n,t,e,i){var o=function(n){var t=n.scale,e=n.positionX,i=n.positionY;return!(Number.isNaN(t)||Number.isNaN(e)||Number.isNaN(i))}(t);if(n.mounted&&o){var r=n.setTransformState,a=n.transformState,s=a.scale,u=a.positionX,c=a.positionY,f=t.scale-s,p=t.positionX-u,d=t.positionY-c;0===e?r(t.scale,t.positionX,t.positionY):l(n,i,e,(function(n){r(s+f*n,u+p*n,c+d*n)}))}}var p=function(n,t){var e=n.wrapperComponent,i=n.contentComponent,o=n.setup.centerZoomedOut;if(!e||!i)throw new Error(\"Components are not mounted\");var r=function(n,t,e){var i=n.offsetWidth,o=n.offsetHeight,r=t.offsetWidth*e,a=t.offsetHeight*e;return{wrapperWidth:i,wrapperHeight:o,newContentWidth:r,newDiffWidth:i-r,newContentHeight:a,newDiffHeight:o-a}}(e,i,t),a=r.wrapperWidth,s=r.wrapperHeight;return function(n,t,e,i,o,r,a){var s=n>t?e*(a?1:.5):0,u=i>o?r*(a?1:.5):0;return{minPositionX:n-t-s,maxPositionX:s,minPositionY:i-o-u,maxPositionY:u}}(a,r.newContentWidth,r.newDiffWidth,s,r.newContentHeight,r.newDiffHeight,Boolean(o))},d=function(n,t,e,i){return r(i?ne?e:n:n,2)},m=function(n,t){var e=p(n,t);return n.bounds=e,e};function v(n,t,e,i,o,r,a){var s=e.minPositionX,u=e.minPositionY,c=e.maxPositionX,l=e.maxPositionY,f=0,p=0;return a&&(f=o,p=r),{x:d(n,s-f,c+f,i),y:d(t,u-p,l+p,i)}}function h(n,t,e,i,o,r){var a=n.transformState,s=a.scale,u=a.positionX,c=a.positionY,l=i-s;return\"number\"!=typeof t||\"number\"!=typeof e?(console.error(\"Mouse X and Y position were not provided!\"),{x:u,y:c}):v(u-t*l,c-e*l,o,r,0,0,null)}function g(n,t,e,i,o){var r=t-(o?i:0);return!Number.isNaN(e)&&n>=e?e:!Number.isNaN(t)&&n<=r?r:n}var b=function(n,t){var e=n.setup.panning.excluded,i=n.isInitialized,o=n.wrapperComponent,r=t.target,a=null==o?void 0:o.contains(r);return!!(i&&r&&a)&&!Q(r,e)},y=function(n){var t=n.isInitialized,e=n.isPanning,i=n.setup.panning.disabled;return!(!t||!e||i)};var S=function(n,t){var e=n.setup,i=n.transformState.scale,o=e.minScale,r=e.disablePadding;return t>0&&i>=o&&!r?t:0};function w(n,t,e,i,o,r,a,s,u,c){if(o){var l;if(t>a&&e>a)return(l=a+(n-a)*c)>u?u:lr?r:l}return i?t:d(n,r,a,o)}function C(n,t){if(function(n){var t=n.mounted,e=n.setup,i=e.disabled,o=e.velocityAnimation,r=n.transformState.scale;return!(o.disabled&&!(r>1)&&i&&!t)}(n)){var e=n.lastMousePosition,i=n.velocityTime,o=n.setup,r=n.wrapperComponent,a=o.velocityAnimation.equalToMove,s=Date.now();if(e&&i&&r){var u=function(n,t){return t?Math.min(1,n.offsetWidth/window.innerWidth):1}(r,a),c=t.x-e.x,l=t.y-e.y,f=c/u,p=l/u,d=s-i,m=c*c+l*l,v=Math.sqrt(m)/d;n.velocity={velocityX:f,velocityY:p,total:v}}n.lastMousePosition=t,n.velocityTime=s}}function P(n,t){var e=n.transformState.scale;c(n),m(n,e),void 0!==window.TouchEvent&&t instanceof TouchEvent?function(n,t){var e=t.touches,i=n.transformState,o=i.positionX,r=i.positionY;if(n.isPanning=!0,1===e.length){var a=e[0].clientX,s=e[0].clientY;n.startCoords={x:a-o,y:s-r}}}(n,t):function(n,t){var e=n.transformState,i=e.positionX,o=e.positionY;n.isPanning=!0;var r=t.clientX,a=t.clientY;n.startCoords={x:r-i,y:a-o}}(n,t)}function x(n){var t=n.transformState.scale,e=n.setup,i=e.minScale,o=e.alignmentAnimation,r=o.disabled,a=o.sizeX,s=o.sizeY,u=o.animationTime,c=o.animationType;if(!(r||tf||ed||if?c.offsetWidth:n.setup.minPositionX||0,i>d?c.offsetHeight:n.setup.minPositionY||0,o,n.bounds,s||u),y=b.x,S=b.y;return{scale:o,positionX:v?y:e,positionY:g?S:i}}}(n);l&&f(n,l,u,c)}}function T(n,t,e){var i=n.startCoords,o=n.setup.alignmentAnimation,r=o.sizeX,a=o.sizeY;if(i){var s=function(n,t,e){var i=n.startCoords,o=n.transformState,r=n.setup.panning,a=r.lockAxisX,s=r.lockAxisY,u=o.positionX,c=o.positionY;if(!i)return{x:u,y:c};var l=t-i.x,f=e-i.y;return{x:a?u:l,y:s?c:f}}(n,t,e),u=s.x,c=s.y,l=S(n,r),f=S(n,a);C(n,{x:u,y:c}),function(n,t,e,i,o){var r=n.setup.limitToBounds,a=n.wrapperComponent,s=n.bounds,u=n.transformState,c=u.scale,l=u.positionX,f=u.positionY;if(null!==a&&null!==s&&(t!==l||e!==f)){var p=v(t,e,s,r,i,o,a),d=p.x,m=p.y;n.setTransformState(c,d,m)}}(n,u,c,l,f)}}function E(n){if(n.isPanning){var t=n.setup.panning.velocityDisabled,e=n.velocity,i=n.wrapperComponent,o=n.contentComponent;n.isPanning=!1,n.animate=!1,n.animation=null;var r=null==i?void 0:i.getBoundingClientRect(),a=null==o?void 0:o.getBoundingClientRect(),u=(null==r?void 0:r.width)||0,c=(null==r?void 0:r.height)||0,f=(null==a?void 0:a.width)||0,p=(null==a?void 0:a.height)||0,d=u.1&&d?function(n){var t=n.velocity,e=n.bounds,i=n.setup,o=n.wrapperComponent;if(function(n){var t=n.mounted,e=n.velocity,i=n.bounds,o=n.setup,r=o.disabled,a=o.velocityAnimation,s=n.transformState.scale;return!(a.disabled&&!(s>1)&&r&&!t)&&!(!e||!i)}(n)&&t&&e&&o){var r=t.velocityX,a=t.velocityY,u=t.total,c=e.maxPositionX,f=e.minPositionX,p=e.maxPositionY,d=e.minPositionY,m=i.limitToBounds,v=i.alignmentAnimation,h=i.zoomAnimation,g=i.panning,b=g.lockAxisY,y=g.lockAxisX,C=h.animationType,P=v.sizeX,x=v.sizeY,T=v.velocityAlignmentTime,E=function(n,t){var e=n.setup.velocityAnimation,i=e.equalToMove,o=e.animationTime,r=e.sensitivity;return i?o*t*r:o}(n,u),O=Math.max(E,T),Y=S(n,P),X=S(n,x),z=Y*o.offsetWidth/100,N=X*o.offsetHeight/100,j=c+z,k=f-z,A=p+N,D=d-N,W=n.transformState,M=(new Date).getTime();l(n,C,O,(function(t){var e=n.transformState,i=e.scale,o=e.positionX,u=e.positionY,l=((new Date).getTime()-M)/T,h=1-(0,s[v.animationType])(Math.min(1,l)),g=1-t,S=o+r*g,C=u+a*g,P=w(S,W.positionX,o,y,m,f,c,k,j,h),x=w(C,W.positionY,u,b,m,d,p,D,A,h);o===S&&u===C||n.setTransformState(i,P,x)}))}}(n):x(n)}}function O(n,t,e,i){var o=n.setup,a=o.minScale,s=o.maxScale,u=o.limitToBounds,c=g(r(t,2),a,s,0,!1),l=h(n,e,i,c,m(n,c),u);return{scale:c,positionX:l.x,positionY:l.y}}function Y(n,t,e){var i=n.transformState.scale,o=n.wrapperComponent,r=n.setup,a=r.minScale,s=r.limitToBounds,u=r.zoomAnimation,c=u.disabled,l=u.animationTime,p=u.animationType,d=c||i>=a;if((i>=1||s)&&x(n),!d&&o&&n.mounted){var m=O(n,a,t||o.offsetWidth/2,e||o.offsetHeight/2);m&&f(n,m,l,p)}}var X=function(){return(X=Object.assign||function(n){for(var t,e=1,i=arguments.length;ea||(Math.sign(e.deltaY)!==Math.sign(t.deltaY)||(e.deltaY>0&&e.deltaYt.deltaY||Math.sign(e.deltaY)!==Math.sign(t.deltaY)))))}(n,t)&&(U(n.wheelStopEventTimer),n.wheelStopEventTimer=setTimeout((function(){n.mounted&&(n.wheelStopEventTimer=null,a(F(n),t,i),a(F(n),t,o))}),160))},tn=function(n,t){var e=n.contentComponent,i=n.pinchStartDistance,o=n.transformState.scale,a=n.setup,s=a.limitToBounds,u=a.centerZoomedOut,c=a.zoomAnimation,l=c.disabled,f=c.size;if(null!==i&&e){var p=function(n,t,e){var i=e.getBoundingClientRect(),o=n.touches,a=r(o[0].clientX-i.left,5),s=r(o[0].clientY-i.top,5);return{x:(a+r(o[1].clientX-i.left,5))/2/t,y:(s+r(o[1].clientY-i.top,5))/2/t}}(t,o,e);if(Number.isFinite(p.x)&&Number.isFinite(p.y)){var d=G(t),v=function(n,t){var e=n.pinchStartScale,i=n.pinchStartDistance,o=n.setup,a=o.maxScale,s=o.minScale,u=o.zoomAnimation,c=o.disablePadding,l=u.size,f=u.disabled;if(!e||null===i||!t)throw new Error(\"Pinch touches distance was not provided\");return t<0?n.transformState.scale:g(r(t/i*e,2),s,a,l,!f&&!c)}(n,d);if(v!==o){var b=m(n,v),y=s&&(l||0===f||u),S=h(n,p.x,p.y,v,b,y),w=S.x,C=S.y;n.pinchMidpoint=p,n.lastDistance=d,n.setTransformState(v,w,C)}}}},en=function(n,t){var e=n.props.onZoomStop,i=n.setup.doubleClick.animationTime;U(n.doubleClickStopEventTimer),n.doubleClickStopEventTimer=setTimeout((function(){n.doubleClickStopEventTimer=null,a(F(n),t,e)}),i)};function on(n,t){var e=n.setup,i=n.doubleClickStopEventTimer,o=n.transformState,r=n.contentComponent,s=o.scale,u=n.props,c=u.onZoomStart,l=u.onZoom,p=e.doubleClick,d=p.disabled,m=p.mode,v=p.step,h=p.animationTime,g=p.animationType;if(!d&&!i){if(\"reset\"===m)return function(n,t){var e=n.props,i=e.onZoomStart,o=e.onZoom,r=n.setup.doubleClick,s=r.animationTime,u=r.animationType;a(F(n),t,i),B(n,s,u,(function(){return a(F(n),t,o)})),en(n,t)}(n,t);if(!r)return console.error(\"No ContentComponent found\");var b=M(n,\"zoomOut\"===m?-1:1,v);if(s!==b){a(F(n),t,c);var y=V(t,r,s),S=O(n,b,y.x,y.y);if(!S)return console.error(\"Error during zoom event. New transformation state was not calculated.\");a(F(n),t,l),f(n,S,h,g),en(n,t)}}}var rn=function(n){var t=this;this.mounted=!0,this.onChangeCallbacks=new Set,this.wrapperComponent=null,this.contentComponent=null,this.isInitialized=!1,this.bounds=null,this.previousWheelEvent=null,this.wheelStopEventTimer=null,this.wheelAnimationTimer=null,this.isPanning=!1,this.startCoords=null,this.lastTouch=null,this.distance=null,this.lastDistance=null,this.pinchStartDistance=null,this.pinchStartScale=null,this.pinchMidpoint=null,this.doubleClickStopEventTimer=null,this.velocity=null,this.velocityTime=null,this.lastMousePosition=null,this.animate=!1,this.animation=null,this.maxBounds=null,this.pressedKeys={},this.mount=function(){t.initializeWindowEvents()},this.unmount=function(){t.cleanupWindowEvents()},this.update=function(n){m(t,t.transformState.scale),t.setup=W(n)},this.initializeWindowEvents=function(){var n,e=q(),i=null===(n=t.wrapperComponent)||void 0===n?void 0:n.ownerDocument,o=null==i?void 0:i.defaultView;null==o||o.addEventListener(\"mousedown\",t.onPanningStart,e),null==o||o.addEventListener(\"mousemove\",t.onPanning,e),null==o||o.addEventListener(\"mouseup\",t.onPanningStop,e),null==i||i.addEventListener(\"mouseleave\",t.clearPanning,e),null==o||o.addEventListener(\"keyup\",t.setKeyUnPressed,e),null==o||o.addEventListener(\"keydown\",t.setKeyPressed,e)},this.cleanupWindowEvents=function(){var n,e,i=q(),o=null===(n=t.wrapperComponent)||void 0===n?void 0:n.ownerDocument,r=null==o?void 0:o.defaultView;null==r||r.removeEventListener(\"mousedown\",t.onPanningStart,i),null==r||r.removeEventListener(\"mousemove\",t.onPanning,i),null==r||r.removeEventListener(\"mouseup\",t.onPanningStop,i),null==o||o.removeEventListener(\"mouseleave\",t.clearPanning,i),null==r||r.removeEventListener(\"keyup\",t.setKeyUnPressed,i),null==r||r.removeEventListener(\"keydown\",t.setKeyPressed,i),document.removeEventListener(\"mouseleave\",t.clearPanning,i),c(t),null===(e=t.observer)||void 0===e||e.disconnect()},this.handleInitializeWrapperEvents=function(n){var e=q();n.addEventListener(\"wheel\",t.onWheelZoom,e),n.addEventListener(\"dblclick\",t.onDoubleClick,e),n.addEventListener(\"touchstart\",t.onTouchPanningStart,e),n.addEventListener(\"touchmove\",t.onTouchPanning,e),n.addEventListener(\"touchend\",t.onTouchPanningStop,e)},this.handleInitialize=function(n){var e=t.setup.centerOnInit;t.applyTransformation(),e&&(t.setCenter(),t.observer=new ResizeObserver((function(){var n;t.setCenter(),null===(n=t.observer)||void 0===n||n.disconnect()})),t.observer.observe(n))},this.onWheelZoom=function(n){t.setup.disabled||function(n,t){var e=n.setup.wheel,i=e.disabled,o=e.wheelDisabled,r=e.touchPadDisabled,a=e.excluded,s=n.isInitialized,u=n.isPanning,c=t.target;return!(!s||u||i||!c||o&&!t.ctrlKey||r&&t.ctrlKey||Q(c,a))}(t,n)&&t.isPressingKeys(t.setup.wheel.activationKeys)&&(function(n,t){var e=n.props,i=e.onWheelStart,o=e.onZoomStart;n.wheelStopEventTimer||(c(n),a(F(n),t,i),a(F(n),t,o))}(t,n),$(t,n),nn(t,n))},this.onPanningStart=function(n){var e=t.setup.disabled,i=t.props.onPanningStart;e||b(t,n)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(n.preventDefault(),n.stopPropagation(),c(t),P(t,n),a(F(t),n,i))},this.onPanning=function(n){var e=t.setup.disabled,i=t.props.onPanning;e||y(t)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(n.preventDefault(),n.stopPropagation(),T(t,n.clientX,n.clientY),a(F(t),n,i))},this.onPanningStop=function(n){var e=t.props.onPanningStop;t.isPanning&&(E(t),a(F(t),n,e))},this.onPinchStart=function(n){var e=t.setup.disabled,i=t.props,o=i.onPinchingStart,r=i.onZoomStart;e||function(n,t){var e=n.setup.pinch,i=e.disabled,o=e.excluded,r=n.isInitialized,a=t.target;return!(!r||i||!a||Q(a,o))}(t,n)&&(function(n,t){var e=G(t);n.pinchStartDistance=e,n.lastDistance=e,n.pinchStartScale=n.transformState.scale,n.isPanning=!1,c(n)}(t,n),c(t),a(F(t),n,o),a(F(t),n,r))},this.onPinch=function(n){var e=t.setup.disabled,i=t.props,o=i.onPinching,r=i.onZoom;e||function(n){var t=n.setup.pinch.disabled,e=n.isInitialized,i=n.pinchStartDistance;return!(!e||t||!i)}(t)&&(n.preventDefault(),n.stopPropagation(),tn(t,n),a(F(t),n,o),a(F(t),n,r))},this.onPinchStop=function(n){var e,i,o=t.props,r=o.onPinchingStop,s=o.onZoomStop;t.pinchStartScale&&(i=(e=t).pinchMidpoint,e.velocity=null,e.lastDistance=null,e.pinchMidpoint=null,e.pinchStartScale=null,e.pinchStartDistance=null,Y(e,null==i?void 0:i.x,null==i?void 0:i.y),a(F(t),n,r),a(F(t),n,s))},this.onTouchPanningStart=function(n){var e=t.setup.disabled,i=t.props.onPanningStart;if(!e&&b(t,n))if(t.lastTouch&&+new Date-t.lastTouch<200&&1===n.touches.length)t.onDoubleClick(n);else{t.lastTouch=+new Date,c(t);var o=n.touches,r=1===o.length,s=2===o.length;r&&(c(t),P(t,n),a(F(t),n,i)),s&&t.onPinchStart(n)}},this.onTouchPanning=function(n){var e=t.setup.disabled,i=t.props.onPanning;if(t.isPanning&&1===n.touches.length){if(e)return;if(!y(t))return;n.preventDefault(),n.stopPropagation();var o=n.touches[0];T(t,o.clientX,o.clientY),a(F(t),n,i)}else n.touches.length>1&&t.onPinch(n)},this.onTouchPanningStop=function(n){t.onPanningStop(n),t.onPinchStop(n)},this.onDoubleClick=function(n){t.setup.disabled||function(n,t){var e=n.isInitialized,i=n.setup,o=n.wrapperComponent,r=i.doubleClick,a=r.disabled,s=r.excluded,u=t.target,c=null==o?void 0:o.contains(u);return!(!(e&&u&&c)||a||Q(u,s))}(t,n)&&on(t,n)},this.clearPanning=function(n){t.isPanning&&t.onPanningStop(n)},this.setKeyPressed=function(n){t.pressedKeys[n.key]=!0},this.setKeyUnPressed=function(n){t.pressedKeys[n.key]=!1},this.isPressingKeys=function(n){return!n.length||Boolean(n.find((function(n){return t.pressedKeys[n]})))},this.setTransformState=function(n,e,i){var o=t.props.onTransformed;if(Number.isNaN(n)||Number.isNaN(e)||Number.isNaN(i))console.error(\"Detected NaN set state values\");else{n!==t.transformState.scale&&(t.transformState.previousScale=t.transformState.scale,t.transformState.scale=n),t.transformState.positionX=e,t.transformState.positionY=i;var r=F(t);t.onChangeCallbacks.forEach((function(n){return n(r)})),a(r,{scale:n,positionX:e,positionY:i},o),t.applyTransformation()}},this.setCenter=function(){if(t.wrapperComponent&&t.contentComponent){var n=J(t.transformState.scale,t.wrapperComponent,t.contentComponent);t.setTransformState(n.scale,n.positionX,n.positionY)}},this.handleTransformStyles=function(n,e,i){return t.props.customTransform?t.props.customTransform(n,e,i):function(n,t,e){return\"translate(\".concat(n,\"px, \").concat(t,\"px) scale(\").concat(e,\")\")}(n,e,i)},this.applyTransformation=function(){if(t.mounted&&t.contentComponent){var n=t.transformState,e=n.scale,i=n.positionX,o=n.positionY,r=t.handleTransformStyles(i,o,e);t.contentComponent.style.transform=r}},this.getContext=function(){return F(t)},this.onChange=function(n){return t.onChangeCallbacks.has(n)||t.onChangeCallbacks.add(n),function(){t.onChangeCallbacks.delete(n)}},this.init=function(n,e){t.cleanupWindowEvents(),t.wrapperComponent=n,t.contentComponent=e,m(t,t.transformState.scale),t.handleInitializeWrapperEvents(n),t.handleInitialize(e),t.initializeWindowEvents(),t.isInitialized=!0,a(F(t),void 0,t.props.onInit)},this.props=n,this.setup=W(this.props),this.transformState=D(this.props)},an=o.a.createContext(null),sn=o.a.forwardRef((function(n,t){var e=Object(i.useState)(0)[1],r=n.children,a=Object(i.useRef)(new rn(n)).current,s=function(n,t){return\"function\"==typeof n?n(t):n}(n.children,F(a)),u=Object(i.useCallback)((function(){\"function\"==typeof r&&e((function(n){return n+1}))}),[r]);return Object(i.useImperativeHandle)(t,(function(){return F(a)}),[a]),Object(i.useEffect)((function(){a.update(n)}),[a,n]),Object(i.useEffect)((function(){return a.onChange(u)}),[a,n,u]),o.a.createElement(an.Provider,{value:a},s)}));var un=\"transform-component-module_wrapper__7HFJe\",cn=\"transform-component-module_content__uCDPE\";!function(n,t){void 0===t&&(t={});var e=t.insertAt;if(n&&\"undefined\"!=typeof document){var i=document.head||document.getElementsByTagName(\"head\")[0],o=document.createElement(\"style\");o.type=\"text/css\",\"top\"===e&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n))}}(\".transform-component-module_wrapper__7HFJe {\\n position: relative;\\n width: -moz-fit-content;\\n width: fit-content;\\n height: -moz-fit-content;\\n height: fit-content;\\n overflow: hidden;\\n -webkit-touch-callout: none; /* iOS Safari */\\n -webkit-user-select: none; /* Safari */\\n -khtml-user-select: none; /* Konqueror HTML */\\n -moz-user-select: none; /* Firefox */\\n -ms-user-select: none; /* Internet Explorer/Edge */\\n user-select: none;\\n margin: 0;\\n padding: 0;\\n}\\n.transform-component-module_content__uCDPE {\\n display: flex;\\n flex-wrap: wrap;\\n width: -moz-fit-content;\\n width: fit-content;\\n height: -moz-fit-content;\\n height: fit-content;\\n margin: 0;\\n padding: 0;\\n transform-origin: 0% 0%;\\n}\\n.transform-component-module_content__uCDPE img {\\n pointer-events: none;\\n}\\n\");var ln=function(n){var t=n.children,e=n.wrapperClass,r=void 0===e?\"\":e,a=n.contentClass,s=void 0===a?\"\":a,u=n.wrapperStyle,c=n.contentStyle,l=n.wrapperProps,f=void 0===l?{}:l,p=n.contentProps,d=void 0===p?{}:p,m=Object(i.useContext)(an).init,v=Object(i.useRef)(null),h=Object(i.useRef)(null);return Object(i.useEffect)((function(){var n=v.current,t=h.current;null!==n&&null!==t&&m&&m(n,t)}),[]),o.a.createElement(\"div\",X({},f,{ref:v,className:\"react-transform-wrapper \".concat(un,\" \").concat(r),style:u}),o.a.createElement(\"div\",X({},d,{ref:h,className:\"react-transform-component \".concat(cn,\" \").concat(s),style:c}),t))};o.a.forwardRef((function(n,t){var e,r=Object(i.useRef)(null),a=Object(i.useContext)(an);return Object(i.useEffect)((function(){return a.onChange((function(n){if(r.current){r.current.style.transform=a.handleTransformStyles(0,0,1/n.state.scale)}}))}),[a]),o.a.createElement(\"div\",X({},n,{ref:(e=[r,t],function(n){e.forEach((function(t){\"function\"==typeof t?t(n):null!=t&&(t.current=n)}))})}))}))},477:function(n,t,e){\"use strict\";e.d(t,\"a\",(function(){return r}));var i=e(0),o=e(195);function r(){var n=Object(i.useRef)(!1);return Object(o.a)((function(){return n.current=!0,function(){n.current=!1}}),[]),n}},478:function(n,t,e){\"use strict\";e.d(t,\"a\",(function(){return a}));var i=e(118),o=0,r=function(){return o++},a=function(){return Object(i.a)(r)}},479:function(n,t,e){\"use strict\";e.d(t,\"a\",(function(){return u}));var i=e(26),o=e(106),r=e.n(o),a=e(0),s=e(477);function u(){var n=Object(s.a)(),t=Object(i.__read)(Object(a.useState)(0),2),e=t[0],o=t[1],u=Object(a.useCallback)((function(){n.current&&o(e+1)}),[e]);return[Object(a.useCallback)((function(){return r.a.postRender(u)}),[u]),e]}},731:function(n,t,e){\"use strict\";e.d(t,\"a\",(function(){return g}));var i=e(26),o=e(0),r=e(345),a=e(479),s=e(477),u=e(216),c=e(118),l=e(478),f=function(n){var t=n.children,e=n.initial,r=n.isPresent,a=n.onExitComplete,s=n.custom,f=n.presenceAffectsLayout,d=Object(c.a)(p),m=Object(l.a)(),v=Object(o.useMemo)((function(){return{id:m,initial:e,isPresent:r,custom:s,onExitComplete:function(n){var t,e;d.set(n,!0);try{for(var o=Object(i.__values)(d.values()),r=o.next();!r.done;r=o.next()){if(!r.value)return}}catch(n){t={error:n}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}null==a||a()},register:function(n){return d.set(n,!1),function(){return d.delete(n)}}}}),f?void 0:[r]);return Object(o.useMemo)((function(){d.forEach((function(n,t){return d.set(t,!1)}))}),[r]),o.useEffect((function(){!r&&!d.size&&(null==a||a())}),[r]),o.createElement(u.a.Provider,{value:v},t)};function p(){return new Map}var d=e(254),m=e(195),v=e(341),h=function(n){return n.key||\"\"};var g=function(n){var t=n.children,e=n.custom,u=n.initial,c=void 0===u||u,l=n.onExitComplete,p=n.exitBeforeEnter,g=n.presenceAffectsLayout,b=void 0===g||g,y=Object(i.__read)(Object(a.a)(),1)[0],S=Object(o.useContext)(d.a).forceRender;S&&(y=S);var w=Object(s.a)(),C=function(n){var t=[];return o.Children.forEach(n,(function(n){Object(o.isValidElement)(n)&&t.push(n)})),t}(t),P=C,x=new Set,T=Object(o.useRef)(P),E=Object(o.useRef)(new Map).current,O=Object(o.useRef)(!0);if(Object(m.a)((function(){O.current=!1,function(n,t){n.forEach((function(n){var e=h(n);t.set(e,n)}))}(C,E),T.current=P})),Object(v.a)((function(){O.current=!0,E.clear(),x.clear()})),O.current)return o.createElement(o.Fragment,null,P.map((function(n){return o.createElement(f,{key:h(n),isPresent:!0,initial:!!c&&void 0,presenceAffectsLayout:b},n)})));P=Object(i.__spreadArray)([],Object(i.__read)(P),!1);for(var Y=T.current.map(h),X=C.map(h),z=Y.length,N=0;N1&&console.warn(\"You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour.\"),o.createElement(o.Fragment,null,x.size?P:P.map((function(n){return Object(o.cloneElement)(n)})))}}}]);"],"mappings":"AAAA","sourceRoot":""}