-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path7-264cc401203e1af4411e.js
2 lines (2 loc) · 22.7 KB
/
7-264cc401203e1af4411e.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{148:function(e,t,i){"use strict";var n=function(e){return"object"==typeof window.Node?e instanceof window.Node:null!==e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName};var r=function(e){var t=Object.prototype.toString.call(e);return"object"==typeof window.NodeList?e instanceof window.NodeList:null!==e&&"object"==typeof e&&"number"==typeof e.length&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(t)&&(0===e.length||n(e[0]))};var o=function(e,t){if(void 0===t&&(t=document),e instanceof Array)return e.filter(n);if(n(e))return[e];if(r(e))return Array.prototype.slice.call(e);if("string"==typeof e)try{var i=t.querySelectorAll(e);return Array.prototype.slice.call(i)}catch(e){return[]}return[]};function a(e){if(e.constructor!==Array)throw new TypeError("Expected array.");if(16===e.length)return e;if(6===e.length){var t=s();return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}throw new RangeError("Expected array with either 6 or 16 values.")}function s(){for(var e=[],t=0;t<16;t++)t%5==0?e.push(1):e.push(0);return e}function l(e,t){for(var i=a(e),n=a(t),r=[],o=0;o<4;o++)for(var s=[i[o],i[o+4],i[o+8],i[o+12]],l=0;l<4;l++){var c=4*l,d=[n[c],n[c+1],n[c+2],n[c+3]],u=s[0]*d[0]+s[1]*d[1]+s[2]*d[2]+s[3]*d[3];r[o+c]=u}return r}function c(e){var t=Math.PI/180*e,i=s();return i[0]=i[5]=Math.cos(t),i[1]=i[4]=Math.sin(t),i[4]*=-1,i}function d(e,t){var i=s();return i[0]=e,i[5]="number"==typeof t?t:e,i}var u,f=(u=Date.now(),function(e){var t=Date.now();t-u>16?(u=t,e(t)):setTimeout(function(){return f(e)},0)}),h=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||f,p={delay:0,distance:"0",duration:600,easing:"cubic-bezier(0.5, 0, 0, 1)",interval:0,opacity:0,origin:"bottom",rotate:{x:0,y:0,z:0},scale:1,cleanup:!1,container:document.documentElement,desktop:!0,mobile:!0,reset:!1,useDelay:"always",viewFactor:0,viewOffset:{top:0,right:0,bottom:0,left:0},afterReset:function(){},afterReveal:function(){},beforeReset:function(){},beforeReveal:function(){}};var m={success:function(){document.documentElement.classList.add("sr"),document.body?document.body.style.height="100%":document.addEventListener("DOMContentLoaded",function(){document.body.style.height="100%"})},failure:function(){return document.documentElement.classList.remove("sr"),{clean:function(){},destroy:function(){},reveal:function(){},sync:function(){},get noop(){return!0}}}};function g(e){return null!==e&&e instanceof Object&&(e.constructor===Object||"[object Object]"===Object.prototype.toString.call(e))}function y(e,t){if(g(e))return Object.keys(e).forEach(function(i){return t(e[i],i,e)});if(e instanceof Array)return e.forEach(function(i,n){return t(i,n,e)});throw new TypeError("Expected either an array or object literal.")}function v(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];if(this.constructor.debug&&console){var n="%cScrollReveal: "+e;t.forEach(function(e){return n+="\n — "+e}),console.log(n,"color: #ea654b;")}}function b(){var e=this,t={active:[],stale:[]},i={active:[],stale:[]},n={active:[],stale:[]};try{y(o("[data-sr-id]"),function(e){var i=parseInt(e.getAttribute("data-sr-id"));t.active.push(i)})}catch(e){throw e}y(this.store.elements,function(e){-1===t.active.indexOf(e.id)&&t.stale.push(e.id)}),y(t.stale,function(t){return delete e.store.elements[t]}),y(this.store.elements,function(e){-1===n.active.indexOf(e.containerId)&&n.active.push(e.containerId),e.hasOwnProperty("sequence")&&-1===i.active.indexOf(e.sequence.id)&&i.active.push(e.sequence.id)}),y(this.store.containers,function(e){-1===n.active.indexOf(e.id)&&n.stale.push(e.id)}),y(n.stale,function(t){var i=e.store.containers[t].node;i.removeEventListener("scroll",e.delegate),i.removeEventListener("resize",e.delegate),delete e.store.containers[t]}),y(this.store.sequences,function(e){-1===i.active.indexOf(e.id)&&i.stale.push(e.id)}),y(i.stale,function(t){return delete e.store.sequences[t]})}function w(e){var t,i=this;try{y(o(e),function(e){var n=e.getAttribute("data-sr-id");if(null!==n){t=!0;var r=i.store.elements[n];r.callbackTimer&&window.clearTimeout(r.callbackTimer.clock),e.setAttribute("style",r.styles.inline.generated),e.removeAttribute("data-sr-id"),delete i.store.elements[n]}})}catch(e){return v.call(this,"Clean failed.",e.message)}if(t)try{b.call(this)}catch(e){return v.call(this,"Clean failed.",e.message)}}var E=function(){var e={},t=document.documentElement.style;function i(i,n){if(void 0===n&&(n=t),i&&"string"==typeof i){if(e[i])return e[i];if("string"==typeof n[i])return e[i]=i;if("string"==typeof n["-webkit-"+i])return e[i]="-webkit-"+i;throw new RangeError('Unable to find "'+i+'" style property.')}throw new TypeError("Expected a string.")}return i.clearCache=function(){return e={}},i}();function S(e){var t=window.getComputedStyle(e.node),i=t.position,n=e.config,r={},o=(e.node.getAttribute("style")||"").match(/[\w-]+\s*:\s*[^;]+\s*/gi)||[];r.computed=o?o.map(function(e){return e.trim()}).join("; ")+";":"",r.generated=o.some(function(e){return e.match(/visibility\s?:\s?visible/i)})?r.computed:o.concat(["visibility: visible"]).map(function(e){return e.trim()}).join("; ")+";";var u,f,h,p=parseFloat(t.opacity),m=isNaN(parseFloat(n.opacity))?parseFloat(t.opacity):parseFloat(n.opacity),g={computed:p!==m?"opacity: "+p+";":"",generated:p!==m?"opacity: "+m+";":""},y=[];if(parseFloat(n.distance)){var v="top"===n.origin||"bottom"===n.origin?"Y":"X",b=n.distance;"top"!==n.origin&&"left"!==n.origin||(b=/^-/.test(b)?b.substr(1):"-"+b);var w=b.match(/(^-?\d+\.?\d?)|(em$|px$|%$)/g),S=w[0];switch(w[1]){case"em":b=parseInt(t.fontSize)*S;break;case"px":b=S;break;case"%":b="Y"===v?e.node.getBoundingClientRect().height*S/100:e.node.getBoundingClientRect().width*S/100;break;default:throw new RangeError("Unrecognized or missing distance unit.")}"Y"===v?y.push(function(e){var t=s();return t[13]=e,t}(b)):y.push(function(e){var t=s();return t[12]=e,t}(b))}n.rotate.x&&y.push((u=n.rotate.x,f=Math.PI/180*u,(h=s())[5]=h[10]=Math.cos(f),h[6]=h[9]=Math.sin(f),h[9]*=-1,h)),n.rotate.y&&y.push(function(e){var t=Math.PI/180*e,i=s();return i[0]=i[10]=Math.cos(t),i[2]=i[8]=Math.sin(t),i[2]*=-1,i}(n.rotate.y)),n.rotate.z&&y.push(c(n.rotate.z)),1!==n.scale&&(0===n.scale?y.push(d(2e-4)):y.push(d(n.scale)));var j={};if(y.length){j.property=E("transform"),j.computed={raw:t[j.property],matrix:function(e){if("string"==typeof e){var t=e.match(/matrix(3d)?\(([^)]+)\)/);if(t)return a(t[2].split(", ").map(parseFloat))}return s()}(t[j.property])},y.unshift(j.computed.matrix);var L=y.reduce(l);j.generated={initial:j.property+": matrix3d("+L.join(", ")+");",final:j.property+": matrix3d("+j.computed.matrix.join(", ")+");"}}else j.generated={initial:"",final:""};var T={};if(g.generated||j.generated.initial){T.property=E("transition"),T.computed=t[T.property],T.fragments=[];var R=n.delay,k=n.duration,O=n.easing;g.generated&&T.fragments.push({delayed:"opacity "+k/1e3+"s "+O+" "+R/1e3+"s",instant:"opacity "+k/1e3+"s "+O+" 0s"}),j.generated.initial&&T.fragments.push({delayed:j.property+" "+k/1e3+"s "+O+" "+R/1e3+"s",instant:j.property+" "+k/1e3+"s "+O+" 0s"}),T.computed&&!T.computed.match(/all 0s/)&&T.fragments.unshift({delayed:T.computed,instant:T.computed});var I=T.fragments.reduce(function(e,t,i){return e.delayed+=0===i?t.delayed:", "+t.delayed,e.instant+=0===i?t.instant:", "+t.instant,e},{delayed:"",instant:""});T.generated={delayed:T.property+": "+I.delayed+";",instant:T.property+": "+I.instant+";"}}else T.generated={delayed:"",instant:""};return{inline:r,opacity:g,position:i,transform:j,transition:T}}function j(e,t){void 0===t&&(t={});var i=t.pristine||this.pristine,n="always"===e.config.useDelay||"onload"===e.config.useDelay&&i||"once"===e.config.useDelay&&!e.seen,r=e.visible&&!e.revealed,o=!e.visible&&e.revealed&&e.config.reset;return t.reveal||r?function(e,t){var i=[e.styles.inline.generated,e.styles.opacity.computed,e.styles.transform.generated.final];t?i.push(e.styles.transition.generated.delayed):i.push(e.styles.transition.generated.instant);e.revealed=e.seen=!0,e.node.setAttribute("style",i.filter(function(e){return""!==e}).join(" ")),L.call(this,e,t)}.call(this,e,n):t.reset||o?function(e){var t=[e.styles.inline.generated,e.styles.opacity.generated,e.styles.transform.generated.initial,e.styles.transition.generated.instant];e.revealed=!1,e.node.setAttribute("style",t.filter(function(e){return""!==e}).join(" ")),L.call(this,e)}.call(this,e):void 0}function L(e,t){var i=this,n=t?e.config.duration+e.config.delay:e.config.duration,r=e.revealed?e.config.beforeReveal:e.config.beforeReset,o=e.revealed?e.config.afterReveal:e.config.afterReset,a=0;e.callbackTimer&&(a=Date.now()-e.callbackTimer.start,window.clearTimeout(e.callbackTimer.clock)),r(e.node),e.callbackTimer={start:Date.now(),clock:window.setTimeout(function(){o(e.node),e.callbackTimer=null,e.revealed&&!e.config.reset&&e.config.cleanup&&w.call(i,e.node)},n-a)}}var T,R=(T=0,function(){return T++});function k(e,t){if(void 0===t&&(t=this.pristine),!e.visible&&e.revealed&&e.config.reset)return j.call(this,e,{reset:!0});var i=this.store.sequences[e.sequence.id],n=e.sequence.index;if(i){var r=new I(i,"visible",this.store),o=new I(i,"revealed",this.store);if(i.models={visible:r,revealed:o},!o.body.length){var a=i.members[r.body[0]],s=this.store.elements[a];if(s)return x.call(this,i,r.body[0],-1,t),x.call(this,i,r.body[0],1,t),j.call(this,s,{reveal:!0,pristine:t})}if(!i.blocked.head&&n===[].concat(o.head).pop()&&n>=[].concat(r.body).shift())return x.call(this,i,n,-1,t),j.call(this,e,{reveal:!0,pristine:t});if(!i.blocked.foot&&n===[].concat(o.foot).shift()&&n<=[].concat(r.body).pop())return x.call(this,i,n,1,t),j.call(this,e,{reveal:!0,pristine:t})}}function O(e){var t=Math.abs(e);if(isNaN(t))throw new RangeError("Invalid sequence interval.");this.id=R(),this.interval=Math.max(t,16),this.members=[],this.models={},this.blocked={head:!1,foot:!1}}function I(e,t,i){var n=this;this.head=[],this.body=[],this.foot=[],y(e.members,function(e,r){var o=i.elements[e];o&&o[t]&&n.body.push(r)}),this.body.length&&y(e.members,function(e,r){var o=i.elements[e];o&&!o[t]&&(r<n.body[0]?n.head.push(r):n.foot.push(r))})}function x(e,t,i,n){var r=this,o=["head",null,"foot"][1+i],a=e.members[t+i],s=this.store.elements[a];e.blocked[o]=!0,setTimeout(function(){e.blocked[o]=!1,s&&k.call(r,s,n)},e.interval)}function z(){var e=this;b.call(this),y(this.store.elements,function(e){var t=[e.styles.inline.generated];e.visible?(t.push(e.styles.opacity.computed),t.push(e.styles.transform.generated.final),e.revealed=!0):(t.push(e.styles.opacity.generated),t.push(e.styles.transform.generated.initial),e.revealed=!1),e.node.setAttribute("style",t.filter(function(e){return""!==e}).join(" "))}),y(this.store.containers,function(t){var i=t.node===document.documentElement?window:t.node;i.addEventListener("scroll",e.delegate),i.addEventListener("resize",e.delegate)}),this.delegate(),this.initTimeout=null}function q(e){return void 0===e&&(e=navigator.userAgent),/Android|iPhone|iPad|iPod/i.test(e)}function N(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];if(g(e))return y(t,function(t){y(t,function(t,i){g(t)?(e[i]&&g(e[i])||(e[i]={}),N(e[i],t)):e[i]=t})}),e;throw new TypeError("Target must be an object literal.")}function A(e,t,i){var n=this;void 0===t&&(t={}),void 0===i&&(i=!1);var r,a=[],s=t.interval||p.interval;try{s&&(r=new O(s));var l=o(e);if(!l.length)throw new Error("Invalid reveal target.");var c=l.reduce(function(e,i){var s={},l=i.getAttribute("data-sr-id");l?(N(s,n.store.elements[l]),s.node.setAttribute("style",s.styles.inline.computed)):(s.id=R(),s.node=i,s.seen=!1,s.revealed=!1,s.visible=!1);var c=N({},s.config||n.defaults,t);if(!c.mobile&&q()||!c.desktop&&!q())return l&&w.call(n,s),e;var d,u=o(c.container)[0];if(!u)throw new Error("Invalid container.");return u.contains(i)?(null===(d=function(e){var t=[],i=arguments.length-1;for(;i-- >0;)t[i]=arguments[i+1];var n=null;return y(t,function(t){y(t,function(t){null===n&&t.node===e&&(n=t.id)})}),n}(u,a,n.store.containers))&&(d=R(),a.push({id:d,node:u})),s.config=c,s.containerId=d,s.styles=S(s),r&&(s.sequence={id:r.id,index:r.members.length},r.members.push(s.id)),e.push(s),e):e},[]);y(c,function(e){n.store.elements[e.id]=e,e.node.setAttribute("data-sr-id",e.id)})}catch(e){return v.call(this,"Reveal failed.",e.message)}y(a,function(e){n.store.containers[e.id]={id:e.id,node:e.node}}),r&&(this.store.sequences[r.id]=r),!0!==i&&(this.store.history.push({target:e,options:t}),this.initTimeout&&window.clearTimeout(this.initTimeout),this.initTimeout=window.setTimeout(z.bind(this),0))}var M=Math.sign||function(e){return(e>0)-(e<0)||+e};function P(e,t){var i=t?e.node.clientHeight:e.node.offsetHeight,n=t?e.node.clientWidth:e.node.offsetWidth,r=0,o=0,a=e.node;do{isNaN(a.offsetTop)||(r+=a.offsetTop),isNaN(a.offsetLeft)||(o+=a.offsetLeft),a=a.offsetParent}while(a);return{bounds:{top:r,right:o+n,bottom:r+i,left:o},height:i,width:n}}function C(e,t){var i=this;void 0===e&&(e={type:"init"}),void 0===t&&(t=this.store.elements),h(function(){var n="init"===e.type||"resize"===e.type;y(i.store.containers,function(e){n&&(e.geometry=P.call(i,e,!0));var t=function(e){var t,i;return e.node===document.documentElement?(t=window.pageYOffset,i=window.pageXOffset):(t=e.node.scrollTop,i=e.node.scrollLeft),{top:t,left:i}}.call(i,e);e.scroll&&(e.direction={x:M(t.left-e.scroll.left),y:M(t.top-e.scroll.top)}),e.scroll=t}),y(t,function(e){n&&(e.geometry=P.call(i,e)),e.visible=function(e){void 0===e&&(e={});var t=this.store.containers[e.containerId];if(t){var i=Math.max(0,Math.min(1,e.config.viewFactor)),n=e.config.viewOffset,r=e.geometry.bounds.top+e.geometry.height*i,o=e.geometry.bounds.right-e.geometry.width*i,a=e.geometry.bounds.bottom-e.geometry.height*i,s=e.geometry.bounds.left+e.geometry.width*i,l=t.geometry.bounds.top+t.scroll.top+n.top,c=t.geometry.bounds.right+t.scroll.left-n.right,d=t.geometry.bounds.bottom+t.scroll.top-n.bottom,u=t.geometry.bounds.left+t.scroll.left+n.left;return r<d&&o>u&&a>l&&s<c||"fixed"===e.styles.position}}.call(i,e)}),y(t,function(e){e.sequence?k.call(i,e):j.call(i,e)}),i.pristine=!1})}var D,W,F,V,G,_,B,H,J="4.0.5";function Y(e){var t;if(void 0===e&&(e={}),void 0===this||Object.getPrototypeOf(this)!==Y.prototype)return new Y(e);if(!Y.isSupported())return v.call(this,"Instantiation failed.","This browser is not supported."),m.failure();try{t=N({},_||p,e)}catch(e){return v.call(this,"Invalid configuration.",e.message),m.failure()}try{if(!o(t.container)[0])throw new Error("Invalid container.")}catch(e){return v.call(this,e.message),m.failure()}return!(_=t).mobile&&q()||!_.desktop&&!q()?(v.call(this,"This device is disabled.","desktop: "+_.desktop,"mobile: "+_.mobile),m.failure()):(m.success(),this.store={containers:{},elements:{},history:[],sequences:{}},this.pristine=!0,D=D||C.bind(this),W=W||function(){var e=this;y(this.store.elements,function(e){e.node.setAttribute("style",e.styles.inline.generated),e.node.removeAttribute("data-sr-id")}),y(this.store.containers,function(t){var i=t.node===document.documentElement?window:t.node;i.removeEventListener("scroll",e.delegate),i.removeEventListener("resize",e.delegate)}),this.store={containers:{},elements:{},history:[],sequences:{}}}.bind(this),F=F||A.bind(this),V=V||w.bind(this),G=G||function(){var e=this;y(this.store.history,function(t){A.call(e,t.target,t.options,!0)}),z.call(this)}.bind(this),Object.defineProperty(this,"delegate",{get:function(){return D}}),Object.defineProperty(this,"destroy",{get:function(){return W}}),Object.defineProperty(this,"reveal",{get:function(){return F}}),Object.defineProperty(this,"clean",{get:function(){return V}}),Object.defineProperty(this,"sync",{get:function(){return G}}),Object.defineProperty(this,"defaults",{get:function(){return _}}),Object.defineProperty(this,"version",{get:function(){return J}}),Object.defineProperty(this,"noop",{get:function(){return!1}}),H||(H=this))}Y.isSupported=function(){return("transform"in(e=document.documentElement.style)||"WebkitTransform"in e)&&function(){var e=document.documentElement.style;return"transition"in e||"WebkitTransition"in e}();var e},Object.defineProperty(Y,"debug",{get:function(){return B||!1},set:function(e){return B="boolean"==typeof e?e:B}}),Y();t.a=Y},205:function(e,t,i){"use strict";var n=i(33);t.__esModule=!0,t.default=void 0;var r,o=n(i(7)),a=n(i(49)),s=n(i(152)),l=n(i(153)),c=n(i(0)),d=n(i(4)),u=function(e){var t=(0,l.default)({},e);return t.resolutions&&(t.fixed=t.resolutions,delete t.resolutions),t.sizes&&(t.fluid=t.sizes,delete t.sizes),t},f={},h=function(e){var t=u(e),i=t.fluid?t.fluid.src:t.fixed.src;return!!f[i]||(f[i]=!0,!1)},p=[];var m=function(e,t){(void 0===r&&"undefined"!=typeof window&&window.IntersectionObserver&&(r=new window.IntersectionObserver(function(e){e.forEach(function(e){p.forEach(function(t){t[0]===e.target&&(e.isIntersecting||e.intersectionRatio>0)&&(r.unobserve(t[0]),t[1]())})})},{rootMargin:"200px"})),r).observe(e),p.push([e,t])},g=function(e){var t=e.src?'src="'+e.src+'" ':'src="" ',i=e.sizes?'sizes="'+e.sizes+'" ':"",n=e.srcSetWebp?"<source type='image/webp' srcSet=\""+e.srcSetWebp+'" '+i+"/>":"",r=e.srcSet?'<source srcSet="'+e.srcSet+'" '+i+"/>":"",o=e.title?'title="'+e.title+'" ':"",a=e.alt?'alt="'+e.alt+'" ':'alt="" ',s=e.width?'width="'+e.width+'" ':"",l=e.height?'height="'+e.height+'" ':"",c=e.opacity?e.opacity:"1";return"<picture>"+n+r+"<img "+s+l+t+a+o+'style="position:absolute;top:0;left:0;transition:opacity 0.5s;transition-delay:'+(e.transitionDelay?e.transitionDelay:"0.5s")+";opacity:"+c+';width:100%;height:100%;object-fit:cover;object-position:center"/></picture>'},y=c.default.forwardRef(function(e,t){var i=e.style,n=e.onLoad,r=e.onError,o=(0,s.default)(e,["style","onLoad","onError"]);return c.default.createElement("img",(0,l.default)({},o,{onLoad:n,onError:r,ref:t,style:(0,l.default)({position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"cover",objectPosition:"center"},i)}))});y.propTypes={style:d.default.object,onError:d.default.func,onLoad:d.default.func};var v=function(e){function t(t){var i;i=e.call(this,t)||this;var n=!0,r=!0,o=!1,s=t.fadeIn,l=h(t);!l&&"undefined"!=typeof window&&window.IntersectionObserver&&(n=!1,r=!1,o=!0),"undefined"==typeof window&&(n=!1,r=!1),t.critical&&(n=!0,r=!1,o=!1);var d=!(i.props.critical&&!i.props.fadeIn);return i.state={isVisible:n,imgLoaded:r,IOSupported:o,fadeIn:s,hasNoScript:d,seenBefore:l},i.imageRef=c.default.createRef(),i.handleImageLoaded=i.handleImageLoaded.bind((0,a.default)((0,a.default)(i))),i.handleRef=i.handleRef.bind((0,a.default)((0,a.default)(i))),i}(0,o.default)(t,e);var i=t.prototype;return i.componentDidMount=function(){if(this.props.critical){var e=this.imageRef.current;e&&e.complete&&this.handleImageLoaded()}},i.handleRef=function(e){var t=this;this.state.IOSupported&&e&&m(e,function(){t.setState({isVisible:!0})})},i.handleImageLoaded=function(){this.setState({imgLoaded:!0}),this.state.seenBefore&&this.setState({fadeIn:!1}),this.props.onLoad&&this.props.onLoad()},i.render=function(){var e=u(this.props),t=e.title,i=e.alt,n=e.className,r=e.style,o=void 0===r?{}:r,a=e.imgStyle,s=void 0===a?{}:a,d=e.placeholderStyle,f=void 0===d?{}:d,h=e.placeholderClassName,p=e.fluid,m=e.fixed,v=e.backgroundColor,b=e.Tag,w="boolean"==typeof v?"lightgray":v,E=(0,l.default)({opacity:this.state.imgLoaded?0:1,transition:"opacity 0.5s",transitionDelay:this.state.imgLoaded?"0.5s":"0.25s"},s,f),S=(0,l.default)({opacity:this.state.imgLoaded||!1===this.state.fadeIn?1:0,transition:!0===this.state.fadeIn?"opacity 0.5s":"none"},s),j={title:t,alt:this.state.isVisible?"":i,style:E,className:h};if(p){var L=p;return c.default.createElement(b,{className:(n||"")+" gatsby-image-wrapper",style:(0,l.default)({position:"relative",overflow:"hidden"},o),ref:this.handleRef,key:"fluid-"+JSON.stringify(L.srcSet)},c.default.createElement(b,{style:{width:"100%",paddingBottom:100/L.aspectRatio+"%"}}),L.base64&&c.default.createElement(y,(0,l.default)({src:L.base64},j)),L.tracedSVG&&c.default.createElement(y,(0,l.default)({src:L.tracedSVG},j)),w&&c.default.createElement(b,{title:t,style:{backgroundColor:w,position:"absolute",top:0,bottom:0,opacity:this.state.imgLoaded?0:1,transitionDelay:"0.35s",right:0,left:0}}),this.state.isVisible&&c.default.createElement("picture",null,L.srcSetWebp&&c.default.createElement("source",{type:"image/webp",srcSet:L.srcSetWebp,sizes:L.sizes}),c.default.createElement("source",{srcSet:L.srcSet,sizes:L.sizes}),c.default.createElement(y,{alt:i,title:t,src:L.src,style:S,ref:this.imageRef,onLoad:this.handleImageLoaded,onError:this.props.onError})),this.state.hasNoScript&&c.default.createElement("noscript",{dangerouslySetInnerHTML:{__html:g((0,l.default)({alt:i,title:t},L))}}))}if(m){var T=m,R=(0,l.default)({position:"relative",overflow:"hidden",display:"inline-block",width:T.width,height:T.height},o);return"inherit"===o.display&&delete R.display,c.default.createElement(b,{className:(n||"")+" gatsby-image-wrapper",style:R,ref:this.handleRef,key:"fixed-"+JSON.stringify(T.srcSet)},T.base64&&c.default.createElement(y,(0,l.default)({src:T.base64},j)),T.tracedSVG&&c.default.createElement(y,(0,l.default)({src:T.tracedSVG},j)),w&&c.default.createElement(b,{title:t,style:{backgroundColor:w,width:T.width,opacity:this.state.imgLoaded?0:1,transitionDelay:"0.25s",height:T.height}}),this.state.isVisible&&c.default.createElement("picture",null,T.srcSetWebp&&c.default.createElement("source",{type:"image/webp",srcSet:T.srcSetWebp,sizes:T.sizes}),c.default.createElement("source",{srcSet:T.srcSet,sizes:T.sizes}),c.default.createElement(y,{alt:i,title:t,width:T.width,height:T.height,src:T.src,style:S,ref:this.imageRef,onLoad:this.handleImageLoaded,onError:this.props.onError})),this.state.hasNoScript&&c.default.createElement("noscript",{dangerouslySetInnerHTML:{__html:g((0,l.default)({alt:i,title:t,width:T.width,height:T.height},T))}}))}return null},t}(c.default.Component);v.defaultProps={critical:!1,fadeIn:!0,alt:"",Tag:"div"};var b=d.default.shape({width:d.default.number.isRequired,height:d.default.number.isRequired,src:d.default.string.isRequired,srcSet:d.default.string.isRequired,base64:d.default.string,tracedSVG:d.default.string,srcWebp:d.default.string,srcSetWebp:d.default.string}),w=d.default.shape({aspectRatio:d.default.number.isRequired,src:d.default.string.isRequired,srcSet:d.default.string.isRequired,sizes:d.default.string.isRequired,base64:d.default.string,tracedSVG:d.default.string,srcWebp:d.default.string,srcSetWebp:d.default.string});v.propTypes={resolutions:b,sizes:w,fixed:b,fluid:w,fadeIn:d.default.bool,title:d.default.string,alt:d.default.string,className:d.default.oneOfType([d.default.string,d.default.object]),critical:d.default.bool,style:d.default.object,imgStyle:d.default.object,placeholderStyle:d.default.object,placeholderClassName:d.default.string,backgroundColor:d.default.oneOfType([d.default.string,d.default.bool]),onLoad:d.default.func,onError:d.default.func,Tag:d.default.string};var E=v;t.default=E}}]);
//# sourceMappingURL=7-264cc401203e1af4411e.js.map