UNPKG

blocklet-development-guide

Version:

Blocklet development guide, a help documentation for quickly get started to develop a blocklet.

1 lines 56.4 kB
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{"+c4W":function(e,t,n){var r=n("711d"),o=n("4/ic"),a=n("9ggG"),i=n("9Nap");e.exports=function(e){return a(e)?r(i(e)):o(e)}},"03A+":function(e,t,n){var r=n("JTzB"),o=n("ExA7"),a=Object.prototype,i=a.hasOwnProperty,u=a.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!u.call(e,"callee")};e.exports=l},"0Cz8":function(e,t,n){var r=n("Xi7e"),o=n("ebwN"),a=n("e4Nc");e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},"0ycA":function(e,t){e.exports=function(){return[]}},"1LK5":function(e,t){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},"1hJj":function(e,t,n){var r=n("e4Nc"),o=n("ftKO"),a=n("3A9y");function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},"3A9y":function(e,t){e.exports=function(e){return this.__data__.has(e)}},"4/ic":function(e,t,n){var r=n("ZWtO");e.exports=function(e){return function(t){return r(t,e)}}},"4sDh":function(e,t,n){var r=n("4uTw"),o=n("03A+"),a=n("Z0cm"),i=n("wJg7"),u=n("shjB"),l=n("9Nap");e.exports=function(e,t,n){for(var s=-1,c=(t=r(t,e)).length,d=!1;++s<c;){var f=l(t[s]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++s!=c?d:!!(c=null==e?0:e.length)&&u(c)&&i(f,c)&&(a(e)||o(e))}},"6sVZ":function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},"77Zs":function(e,t,n){var r=n("Xi7e");e.exports=function(){this.__data__=new r,this.size=0}},"7GkX":function(e,t,n){var r=n("b80T"),o=n("A90E"),a=n("MMmD");e.exports=function(e){return a(e)?r(e):o(e)}},"7fqy":function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},"88Gu":function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var o=n(),a=16-(o-r);if(r=o,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},"8jAD":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.InlineIcon=t.Icon=void 0;var r,o=(r=n("q1tI"))&&r.__esModule?r:{default:r};function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(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,r.key,r)}}var u=0,l=/(-?[0-9.]*[0-9]+[0-9.]*)/g,s=/^-?[0-9.]*[0-9]+[0-9.]*$/g,c=["width","height","inline","hFlip","vFlip","flip","rotate","align","color","box"],d={left:0,top:0,width:16,height:16,rotate:0,hFlip:!1,vFlip:!1};var f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._item=t}var t,n,r;return t=e,r=[{key:"splitAttributes",value:function(e){var t={icon:Object.create(null),node:Object.create(null)};return Object.keys(e).forEach((function(n){t[-1===c.indexOf(n)?"node":"icon"][n]=e[n]})),t}},{key:"calculateDimension",value:function(e,t,n){if(1===t)return e;if(n=void 0===n?100:n,"number"==typeof e)return Math.ceil(e*t*n)/n;var r=e.split(l);if(null===r||!r.length)return null;for(var o,a=[],i=r.shift(),u=s.test(i);;){if(u?(o=parseFloat(i),isNaN(o)?a.push(i):a.push(Math.ceil(o*t*n)/n)):a.push(i),void 0===(i=r.shift()))return a.join("");u=!u}}},{key:"replaceIDs",value:function(e){var t,n,r=/\sid="(\S+)"/g,o=[];function a(e,t,n){for(var r=0;-1!==(r=n.indexOf(e,r));)n=n.slice(0,r)+t+n.slice(r+e.length),r+=t.length;return n}for(;t=r.exec(e);)o.push(t[1]);return o.length?(n="IconifyId-"+Date.now().toString(16)+"-"+(16777216*Math.random()|0).toString(16)+"-",o.forEach((function(t){var r=n+u;u++,e=a('="'+t+'"','="'+r+'"',e),e=a('="#'+t+'"','="#'+r+'"',e),e=a("(#"+t+")","(#"+r+")",e)})),e):e}}],(n=[{key:"getAttributes",value:function(t){var n=this._item;"object"!==a(t)&&(t=Object.create(null));var r={horizontal:"center",vertical:"middle",slice:!1},o={rotate:n.rotate,hFlip:n.hFlip,vFlip:n.vFlip},i=Object.create(null),u=Object.create(null),l=!0===t.inline||"true"===t.inline||"1"===t.inline,s={left:n.left,top:l?n.inlineTop:n.top,width:n.width,height:l?n.inlineHeight:n.height};if(["hFlip","vFlip"].forEach((function(e){void 0===t[e]||!0!==t[e]&&"true"!==t[e]&&"1"!==t[e]||(o[e]=!o[e])})),void 0!==t.flip&&t.flip.toLowerCase().split(/[\s,]+/).forEach((function(e){switch(e){case"horizontal":o.hFlip=!o.hFlip;break;case"vertical":o.vFlip=!o.vFlip}})),void 0!==t.rotate){var c=t.rotate;if("number"==typeof c)o.rotate+=c;else if("string"==typeof c){var d=c.replace(/^-?[0-9.]*/,"");if(""===d)c=parseInt(c),isNaN(c)||(o.rotate+=c);else if(d!==c){var f=!1;switch(d){case"%":f=25;break;case"deg":f=90}f&&(c=parseInt(c.slice(0,c.length-d.length)),isNaN(c)||(o.rotate+=Math.round(c/f)))}}}var h,p=[];switch(o.hFlip?o.vFlip?o.rotate+=2:(p.push("translate("+(s.width+s.left)+" "+(0-s.top)+")"),p.push("scale(-1 1)"),s.top=s.left=0):o.vFlip&&(p.push("translate("+(0-s.left)+" "+(s.height+s.top)+")"),p.push("scale(1 -1)"),s.top=s.left=0),o.rotate%4){case 1:h=s.height/2+s.top,p.unshift("rotate(90 "+h+" "+h+")"),0===s.left&&0===s.top||(h=s.left,s.left=s.top,s.top=h),s.width!==s.height&&(h=s.width,s.width=s.height,s.height=h);break;case 2:p.unshift("rotate(180 "+(s.width/2+s.left)+" "+(s.height/2+s.top)+")");break;case 3:h=s.width/2+s.left,p.unshift("rotate(-90 "+h+" "+h+")"),0===s.left&&0===s.top||(h=s.left,s.left=s.top,s.top=h),s.width!==s.height&&(h=s.width,s.width=s.height,s.height=h)}var v,m,g=t.width?t.width:null,b=t.height?t.height:null;null===g&&null===b&&(b="1em"),null!==g&&null!==b?(v=g,m=b):null!==g?(v=g,m=e.calculateDimension(v,s.height/s.width)):(m=b,v=e.calculateDimension(m,s.width/s.height)),!1!==v&&(u.width="auto"===v?s.width:v),!1!==m&&(u.height="auto"===m?s.height:m),l&&0!==n.verticalAlign&&(i["vertical-align"]=n.verticalAlign+"em"),void 0!==t.align&&t.align.toLowerCase().split(/[\s,]+/).forEach((function(e){switch(e){case"left":case"right":case"center":r.horizontal=e;break;case"top":case"bottom":case"middle":r.vertical=e;break;case"crop":r.slice=!0;break;case"meet":r.slice=!1}})),u.preserveAspectRatio=function(e){var t;switch(e.horizontal){case"left":t="xMin";break;case"right":t="xMax";break;default:t="xMid"}switch(e.vertical){case"top":t+="YMin";break;case"bottom":t+="YMax";break;default:t+="YMid"}return t+=e.slice?" slice":" meet"}(r),u.viewBox=s.left+" "+s.top+" "+s.width+" "+s.height;var w=e.replaceIDs(n.body);return void 0!==t.color&&(w=w.replace(/currentColor/g,t.color)),p.length&&(w='<g transform="'+p.join(" ")+'">'+w+"</g>"),!0!==t.box&&"true"!==t.box&&"1"!==t.box||(w+='<rect x="'+s.left+'" y="'+s.top+'" width="'+s.width+'" height="'+s.height+'" fill="rgba(0, 0, 0, 0)" />'),{attributes:u,body:w,style:i}}},{key:"getSVG",value:function(t,n){var r=e.splitAttributes(t),o=this.getAttributes(r.icon),a='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"';return n&&Object.keys(r.node).forEach((function(e){a+=" "+e+'="'+r.node[e]+'"'})),Object.keys(o.attributes).forEach((function(e){a+=" "+e+'="'+o.attributes[e]+'"'})),a+=' style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);',Object.keys(o.style).forEach((function(e){a+=" "+e+": "+o.style[e]+";"})),t&&void 0!==t.style&&(a+=t.style),a+='">',a+=o.body+"</svg>"}}])&&i(t.prototype,n),r&&i(t,r),e}();function h(e,t){if("object"!==a(e.icon))return null;var n=f.splitAttributes(e),r=n.icon,i=n.node;delete i.icon,void 0===r.inline&&(r.inline=t);var u=new f(function(e){var t,n=Object.create(null);for(t in d)n[t]=d[t];for(t in e)n[t]=e[t];return void 0===n.inlineTop&&(n.inlineTop=n.top),void 0===n.inlineHeight&&(n.inlineHeight=n.height),void 0===n.verticalAlign&&(n.verticalAlign=n.height%7==0&&n.height%8!=0?-.143:-.125),n}(e.icon)).getAttributes(r),l={transform:"rotate(360deg)"};if(void 0!==u.style["vertical-align"]&&(l.verticalAlign=u.style["vertical-align"]),void 0!==e.style)for(var s in e.style)l[s]=e.style[s];var c,h={xmlns:"http://www.w3.org/2000/svg",focusable:!1,style:l};for(c in i)h[c]=i[c];for(c in u.attributes)h[c]=u.attributes[c];return h.dangerouslySetInnerHTML={__html:u.body},o.default.createElement("svg",h,null)}var p=function(e){return h(e,!1)};t.Icon=p;t.InlineIcon=function(e){return h(e,!0)};var v=p;t.default=v},"9mE6":function(e,t){t.__esModule=!0,t.default={body:'<path d="M10 16.5v-9l6 4.5M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2z" fill="currentColor"/>',width:24,height:24}},A90E:function(e,t,n){var r=n("6sVZ"),o=n("V6Ve"),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},B8du:function(e,t){e.exports=function(){return!1}},BiGR:function(e,t,n){var r=n("nmnc"),o=n("03A+"),a=n("Z0cm"),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},CH3K:function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},CMye:function(e,t,n){var r=n("GoyQ");e.exports=function(e){return e==e&&!r(e)}},DSRE:function(e,t,n){(function(e){var r=n("Kz5y"),o=n("B8du"),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,u=i&&i.exports===a?r.Buffer:void 0,l=(u?u.isBuffer:void 0)||o;e.exports=l}).call(this,n("YuTi")(e))},E3hX:function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("q1tI")),a=(0,r(n("8/g6")).default)(o.default.createElement("path",{d:"M5.88 4.12L13.76 12l-7.88 7.88L8 22l10-10L8 2z"}),"ArrowForwardIos");t.default=a},EA7m:function(e,t,n){var r=n("zZ0H"),o=n("Ioao"),a=n("wclG");e.exports=function(e,t){return a(o(e,t,r),e+"")}},EBAg:function(e,t,n){},GDhZ:function(e,t,n){var r=n("wF/u"),o=n("mwIZ"),a=n("hgQt"),i=n("9ggG"),u=n("CMye"),l=n("IOzZ"),s=n("9Nap");e.exports=function(e,t){return i(e)&&u(t)?l(s(e),t):function(n){var i=o(n,e);return void 0===i&&i===t?a(n,e):r(t,i,3)}}},GtMS:function(e,t){t.__esModule=!0,t.default={body:'<path d="M11.5 12l8.5 6V6m-9 12V6l-8.5 6l8.5 6z" fill="currentColor"/>',width:24,height:24}},HDyB:function(e,t,n){var r=n("nmnc"),o=n("JHRd"),a=n("ljhN"),i=n("or5M"),u=n("7fqy"),l=n("rEGp"),s=r?r.prototype:void 0,c=s?s.valueOf:void 0;e.exports=function(e,t,n,r,s,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=u;case"[object Set]":var p=1&r;if(h||(h=l),e.size!=t.size&&!p)return!1;var v=f.get(e);if(v)return v==t;r|=2,f.set(e,t);var m=i(h(e),h(t),r,s,d,f);return f.delete(e),m;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},HOxn:function(e,t,n){var r=n("Cwc5")(n("Kz5y"),"Promise");e.exports=r},IOzZ:function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},IWTy:function(e,t,n){var r=n("yue5");e.exports=function(e,t,n){for(var o=-1,a=e.criteria,i=t.criteria,u=a.length,l=n.length;++o<u;){var s=r(a[o],i[o]);if(s)return o>=l?s:s*("desc"==n[o]?-1:1)}return e.index-t.index}},Ioao:function(e,t,n){var r=n("heNW"),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,u=o(a.length-t,0),l=Array(u);++i<u;)l[i]=a[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=a[i];return s[t]=n(l),r(e,this,s)}}},JC6p:function(e,t,n){var r=n("cq/+"),o=n("7GkX");e.exports=function(e,t){return e&&r(e,t,o)}},JHRd:function(e,t,n){var r=n("Kz5y").Uint8Array;e.exports=r},JTzB:function(e,t,n){var r=n("NykK"),o=n("ExA7");e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},JlcV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("i0/C"),o=n("q1tI"),a=r.__importDefault(n("bdgK"));t.default=function(){var e=o.useState({x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0}),t=e[0],n=e[1],r=o.useState((function(){return new a.default((function(e){var t=e[0];t&&n(t.contentRect)}))}))[0];return[o.useCallback((function(e){r.disconnect(),e&&r.observe(e)}),[r]),t]}},Juji:function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},L8xA:function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},LXxW:function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}},MMmD:function(e,t,n){var r=n("lSCD"),o=n("shjB");e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},MvSz:function(e,t,n){var r=n("LXxW"),o=n("0ycA"),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,u=i?function(e){return null==e?[]:(e=Object(e),r(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=u},O0oS:function(e,t,n){var r=n("Cwc5"),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},O7RO:function(e,t,n){var r=n("CMye"),o=n("7GkX");e.exports=function(e){for(var t=o(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,r(i)]}return t}},OHh6:function(e,t){t.__esModule=!0,t.default={body:'<path d="M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.84-5 6.7v2.07c4-.91 7-4.49 7-8.77c0-4.28-3-7.86-7-8.77M16.5 12c0-1.77-1-3.29-2.5-4.03V16c1.5-.71 2.5-2.24 2.5-4M3 9v6h4l5 5V4L7 9H3z" fill="currentColor"/>',width:24,height:24}},"Of+w":function(e,t,n){var r=n("Cwc5")(n("Kz5y"),"WeakMap");e.exports=r},QoRX:function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},QqLw:function(e,t,n){var r=n("tadb"),o=n("ebwN"),a=n("HOxn"),i=n("yGk4"),u=n("Of+w"),l=n("NykK"),s=n("3Fdi"),c=s(r),d=s(o),f=s(a),h=s(i),p=s(u),v=l;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||a&&"[object Promise]"!=v(a.resolve())||i&&"[object Set]"!=v(new i)||u&&"[object WeakMap]"!=v(new u))&&(v=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case c:return"[object DataView]";case d:return"[object Map]";case f:return"[object Promise]";case h:return"[object Set]";case p:return"[object WeakMap]"}return t}),e.exports=v},SKAX:function(e,t,n){var r=n("JC6p"),o=n("lQqw")(r);e.exports=o},"UNi/":function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},V6Ve:function(e,t,n){var r=n("kekF")(Object.keys,Object);e.exports=r},VaNO:function(e,t){e.exports=function(e){return this.__data__.has(e)}},WEVi:function(e,t){t.__esModule=!0,t.default={body:'<path d="M3 9h4l5-5v16l-5-5H3V9m13.59 3L14 9.41L15.41 8L18 10.59L20.59 8L22 9.41L19.41 12L22 14.59L20.59 16L18 13.41L15.41 16L14 14.59L16.59 12z" fill="currentColor"/>',width:24,height:24}},XGnz:function(e,t,n){var r=n("CH3K"),o=n("BiGR");e.exports=function e(t,n,a,i,u){var l=-1,s=t.length;for(a||(a=o),u||(u=[]);++l<s;){var c=t[l];n>0&&a(c)?n>1?e(c,n-1,a,i,u):r(u,c):i||(u[u.length]=c)}return u}},Ynen:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={fullscreenEnabled:0,fullscreenElement:1,requestFullscreen:2,exitFullscreen:3,fullscreenchange:4,fullscreenerror:5,fullscreen:6},o=["webkitFullscreenEnabled","webkitFullscreenElement","webkitRequestFullscreen","webkitExitFullscreen","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],a=["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],i=["msFullscreenEnabled","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"],u="undefined"!=typeof window&&void 0!==window.document?window.document:{},l="fullscreenEnabled"in u&&Object.keys(r)||o[0]in u&&o||a[0]in u&&a||i[0]in u&&i||[];t.default={requestFullscreen:function(e){return e[l[r.requestFullscreen]]()},requestFullscreenFunction:function(e){return e[l[r.requestFullscreen]]},get exitFullscreen(){return u[l[r.exitFullscreen]].bind(u)},get fullscreenPseudoClass(){return":"+l[r.fullscreen]},addEventListener:function(e,t,n){return u.addEventListener(l[r[e]],t,n)},removeEventListener:function(e,t,n){return u.removeEventListener(l[r[e]],t,n)},get fullscreenEnabled(){return Boolean(u[l[r.fullscreenEnabled]])},set fullscreenEnabled(e){},get fullscreenElement(){return u[l[r.fullscreenElement]]},set fullscreenElement(e){},get onfullscreenchange(){return u[("on"+l[r.fullscreenchange]).toLowerCase()]},set onfullscreenchange(e){return u[("on"+l[r.fullscreenchange]).toLowerCase()]=e},get onfullscreenerror(){return u[("on"+l[r.fullscreenerror]).toLowerCase()]},set onfullscreenerror(e){return u[("on"+l[r.fullscreenerror]).toLowerCase()]=e}}},ZCpW:function(e,t,n){var r=n("lm/5"),o=n("O7RO"),a=n("IOzZ");e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},alwl:function(e,t,n){var r=n("eUgh"),o=n("ZWtO"),a=n("ut/Y"),i=n("l9OW"),u=n("1LK5"),l=n("sEf8"),s=n("IWTy"),c=n("zZ0H"),d=n("Z0cm");e.exports=function(e,t,n){t=t.length?r(t,(function(e){return d(e)?function(t){return o(t,1===e.length?e[0]:e)}:e})):[c];var f=-1;t=r(t,l(a));var h=i(e,(function(e,n,o){return{criteria:r(t,(function(t){return t(e)})),index:++f,value:e}}));return u(h,(function(e,t){return s(e,t,n)}))}},anHE:function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("q1tI")),a=(0,r(n("8/g6")).default)(o.default.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}),"FullscreenExit");t.default=a},b80T:function(e,t,n){var r=n("UNi/"),o=n("03A+"),a=n("Z0cm"),i=n("DSRE"),u=n("wJg7"),l=n("c6wG"),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),c=!n&&o(e),d=!n&&!c&&i(e),f=!n&&!c&&!d&&l(e),h=n||c||d||f,p=h?r(e.length,String):[],v=p.length;for(var m in e)!t&&!s.call(e,m)||h&&("length"==m||d&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||u(m,v))||p.push(m);return p}},c6wG:function(e,t,n){var r=n("dD9F"),o=n("sEf8"),a=n("mdPL"),i=a&&a.isTypedArray,u=i?o(i):r;e.exports=u},"cq/+":function(e,t,n){var r=n("mc0g")();e.exports=r},cvCv:function(e,t){e.exports=function(e){return function(){return e}}},dD9F:function(e,t,n){var r=n("NykK"),o=n("shjB"),a=n("ExA7"),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[r(e)]}},e5cp:function(e,t,n){var r=n("fmRc"),o=n("or5M"),a=n("HDyB"),i=n("seXi"),u=n("QqLw"),l=n("Z0cm"),s=n("DSRE"),c=n("c6wG"),d="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,h,p,v){var m=l(e),g=l(t),b=m?"[object Array]":u(e),w=g?"[object Array]":u(t),y=(b="[object Arguments]"==b?d:b)==d,E=(w="[object Arguments]"==w?d:w)==d,x=b==w;if(x&&s(e)){if(!s(t))return!1;m=!0,y=!1}if(x&&!y)return v||(v=new r),m||c(e)?o(e,t,n,h,p,v):a(e,t,b,n,h,p,v);if(!(1&n)){var _=y&&f.call(e,"__wrapped__"),A=E&&f.call(t,"__wrapped__");if(_||A){var M=_?e.value():e,C=A?t.value():t;return v||(v=new r),p(M,C,n,h,v)}}return!!x&&(v||(v=new r),i(e,t,n,h,p,v))}},"fR/l":function(e,t,n){var r=n("CH3K"),o=n("Z0cm");e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},fmRc:function(e,t,n){var r=n("Xi7e"),o=n("77Zs"),a=n("L8xA"),i=n("gCq4"),u=n("VaNO"),l=n("0Cz8");function s(e){var t=this.__data__=new r(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=a,s.prototype.get=i,s.prototype.has=u,s.prototype.set=l,e.exports=s},ftKO:function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},g4R6:function(e,t){e.exports=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},gCq4:function(e,t){e.exports=function(e){return this.__data__.get(e)}},gLOz:function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("q1tI")),a=(0,r(n("8/g6")).default)(o.default.createElement("path",{d:"M11.67 3.87L9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");t.default=a},gb7j:function(e,t,n){var r=n("g4R6"),o=n("zoYe"),a=n("Sxd8"),i=n("dt0z");e.exports=function(e,t,n){e=i(e),t=o(t);var u=e.length,l=n=void 0===n?u:r(a(n),0,u);return(n-=t.length)>=0&&e.slice(n,l)==t}},gfl7:function(e,t){t.__esModule=!0,t.default={body:'<path d="M2 5.27L3.28 4L20 20.72L18.73 22l-3-3H7v3l-4-4l4-4v3h6.73L7 10.27V11H5V8.27l-3-3M17 13h2v4.18l-2-2V13m0-8V2l4 4l-4 4V7H8.82l-2-2H17z" fill="currentColor"/>',width:24,height:24}},hVMy:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return _e}));var r=n("q1tI"),o=n.n(r),a=n("Wbzz"),i=n("gb7j"),u=n.n(i),l=n("vOnD"),s=n("JlcV"),c=n.n(s),d=n("vlII"),f=n.n(d),h=n("pW3x"),p=n.n(h),v=n("668i"),m=n("PsDL"),g=n("E3hX"),b=n.n(g),w=n("gLOz"),y=n.n(w),E=n("jOUs"),x=n.n(E),_=n("anHE"),A=n.n(_),M=n("tE8B"),C=n.n(M),k=n("Ntlj"),L=n("xweI"),j=n.n(L),P=function(e){return e.properties&&Array.isArray(e.properties.className)&&e.properties.className.indexOf("slide")>-1},O=[37,38,33,72,75],T=[39,40,34,74,76];function S(e){var t=e.hast,n=e.controlled,a=e.selected,i=e.onPlay,u=e.changeLocationHash,l=t.children.filter(P),s=l.length,d=p()(),h=d.width,g=d.height,w=c()(),E=w[0],_=w[1].width,M=Object(r.useState)(0),L=M[0],j=M[1],S=f()(!1),D=S[0],F=S[1],N=f()(!1),z=N[0],I=N[1],B=Object(r.useState)()[1];Object(r.useEffect)((function(){if(l[L]&&u&&(window.location.hash=l[L].properties.id),!n){var e=function(e){z&&(O.indexOf(e.which)>=0&&(e.preventDefault(),j(L-1>=0?L-1:0)),T.indexOf(e.which)>=0&&(e.preventDefault(),j(L+1<s?L+1:0)))};return document.addEventListener("keydown",e),window.addEventListener("resize",B),function(){document.removeEventListener("keydown",e),window.removeEventListener("resize",B)}}})),Object(r.useEffect)((function(){"function"==typeof i&&i({current:L,total:s})}),[L]),Object(r.useEffect)((function(){a>=0&&a<s&&a!==L&&j(a)}),[a]);var R=L/(s-1)*100,W=Object(k.a)(function(e,t){return e.children.filter(P).forEach((function(e,n){if(e.properties||(e.properties={}),e.properties.className||(e.properties.className=[]),n===t)-1===e.properties.className.indexOf("active")&&e.properties.className.push("active");else{var r=e.properties.className.indexOf("active");r>-1&&e.properties.className.splice(r,1)}})),e}(t,L)),q=h/g,U=D?h:_,H=U>1280?1280:U,J=0;J=H<=1280?H/(16/9):H/(q>1?Math.min(16/9,q):Math.max(16/9,q));var G=1,Z=0;D&&(Z=(g-J)/2,G=q>16/9?g/J:h/H);var X=".shower { --slide-width: "+H+"px; }";return o.a.createElement(C.a,{enabled:D,onChange:function(e){return F(e)}},o.a.createElement(v.a,{onClickAway:function(){return I(!1)}},o.a.createElement(V,{ref:E,fullscreen:D,controlled:n,height:J,onClick:function(){return I(!0)},style:{marginTop:Z,transform:"scale("+G+")"}},o.a.createElement("div",{className:"presentation-wrapper"},o.a.createElement("div",{className:"shower full"},W.props.children,o.a.createElement("style",{scoped:!0,dangerouslySetInnerHTML:{__html:X}}),!n&&o.a.createElement("div",{className:"progress",role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":R,"aria-valuetext":"Slideshow Progress: "+R,style:{width:R+"%"}})),!n&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"controls",style:{width:H}},o.a.createElement("div",{className:"controls-group"},o.a.createElement(m.a,{className:"control-button",onClick:function(){return j(L-1)},disabled:0===L},o.a.createElement(y.a,{className:"control-icon control-prev",fontSize:"small"})),o.a.createElement(m.a,{className:"control-button",onClick:function(){return j(L+1)},disabled:L===s-1},o.a.createElement(b.a,{className:"control-icon control-prev",fontSize:"small"}))),o.a.createElement("div",{className:"controls-group"},o.a.createElement(m.a,{className:"control-button",onClick:function(){return F()},disabled:L===s-1},D?o.a.createElement(A.a,{className:"control-icon control-exit",fontSize:"medium"}):o.a.createElement(x.a,{className:"control-icon control-full",fontSize:"medium"})))))))))}S.defaultProps={changeLocationHash:!1,controlled:!1,selected:-1,onPlay:function(){}};var V=l.default.div.withConfig({displayName:"deck__Div",componentId:"sc-1anoifs-0"})(["width:100%;height:","px;margin-bottom:","px;.presentation-wrapper{position:relative;height:","px;.shower{"," box-shadow:0 0 3px 0 rgba(0,0,0,0.2);.slide.shout h2{padding:0;margin:0;position:absolute;border:none;top:50%;left:0;width:100%;text-align:center;line-height:1;font-size:60px;-webkit-transform:translateY(-50%);transform:translateY(-50%);}.slide.shout.small h2{font-size:36px;}.slide .highlight pre,.slide pre{background-color:#222;font-size:14px;}.slide{.gatsby-resp-image-background-image{display:none !important;}.gatsby-resp-image-image{width:auto !important;height:auto !important;max-height:calc(var(--slide-height) * 0.8) !important;max-width:calc(var(--slide-width) - 128px) !important;}}}.controls{background:#fff;position:absolute;right:0;bottom:-60px;left:0;z-index:4;display:flex;justify-content:space-between;align-items:center;padding:0 10px 0 10px;height:60px;width:100%;"," box-shadow:0 0 3px 0 rgba(0,0,0,0.2);.control-icon{}.control-group{height:60px;}}}"],(function(e){return e.height}),(function(e){return e.controlled?0:84}),(function(e){return e.height}),(function(e){return e.fullscreen?"":"border-radius: 6px 6px 0 0;"}),(function(e){return e.fullscreen?"":"border-radius: 0 0 6px 6px;"})),D=n("zLVn"),F=n("PJYZ"),N=n.n(F),z=n("VbXa"),I=n.n(z),B=n("lSNA"),R=n.n(B),W=n("8jAD"),q=n("9mE6"),U=n.n(q),H=n("zqQw"),J=n.n(H),G=n("sCTh"),Z=n.n(G),X=n("qJpP"),K=n.n(X),Y=n("oJqr"),Q=n.n(Y),$=n("GtMS"),ee=n.n($),te=n("OHh6"),ne=n.n(te),re=n("WEVi"),oe=n.n(re),ae=n("sRb4"),ie=n.n(ae),ue=n("gfl7"),le=n.n(ue),se=function(e){return e instanceof MouseEvent?e.pageX||e.clientX:e.touches[0].pageX||e.touches[0].clientX},ce=function(e){return e>9?e.toString():"0"+e},de=function(e){return isFinite(e)?ce(Math.floor(e/60))+":"+ce(Math.floor(e%60)):"00:00"};function fe(e,t){var n=!1;return function(r){n||(e(r),n=!0,setTimeout((function(){return n=!1}),t))}}var he=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,R()(N()(t),"audio",void 0),R()(N()(t),"timeOnMouseMove",0),R()(N()(t),"hasAddedAudioEventListener",!1),R()(N()(t),"downloadProgressAnimationTimer",void 0),R()(N()(t),"progressBarEl",void 0),R()(N()(t),"state",{isDraggingProgress:!1,currentTimePos:"0%",hasDownloadProgressAnimation:!1,downloadProgressArr:[]}),R()(N()(t),"getCurrentProgress",(function(e){var n=t.props.audio;if(!n.src||!isFinite(n.currentTime)||!t.progressBarEl)return{currentTime:0,currentTimePos:"0%"};var r=t.progressBarEl.getBoundingClientRect(),o=r.width,a=se(e)-r.left;return a<0?a=0:a>o&&(a=o),{currentTime:t.props.audio.duration*a/o,currentTimePos:(a/o*100).toFixed(2)+"%"}})),R()(N()(t),"handleMouseDownProgressBar",(function(e){e.stopPropagation();var n=t.getCurrentProgress(e.nativeEvent),r=n.currentTime,o=n.currentTimePos;isFinite(r)&&(t.timeOnMouseMove=r,t.setState({isDraggingProgress:!0,currentTimePos:o}),e.nativeEvent instanceof MouseEvent?(window.addEventListener("mousemove",t.handleWindowMouseOrTouchMove),window.addEventListener("mouseup",t.handleWindowMouseOrTouchUp)):(window.addEventListener("touchmove",t.handleWindowMouseOrTouchMove),window.addEventListener("touchend",t.handleWindowMouseOrTouchUp)))})),R()(N()(t),"handleWindowMouseOrTouchMove",(function(e){e.preventDefault(),e.stopPropagation();var n=window.getSelection();if(n&&"Range"===n.type&&n.empty(),t.state.isDraggingProgress){var r=t.getCurrentProgress(e),o=r.currentTime,a=r.currentTimePos;t.timeOnMouseMove=o,t.setState({currentTimePos:a})}})),R()(N()(t),"handleWindowMouseOrTouchUp",(function(e){e.stopPropagation(),t.setState((function(e){return e.isDraggingProgress&&isFinite(t.timeOnMouseMove)&&(t.props.audio.currentTime=t.timeOnMouseMove),{isDraggingProgress:!1}})),e instanceof MouseEvent?(window.removeEventListener("mousemove",t.handleWindowMouseOrTouchMove),window.removeEventListener("mouseup",t.handleWindowMouseOrTouchUp)):(window.removeEventListener("touchmove",t.handleWindowMouseOrTouchMove),window.removeEventListener("touchend",t.handleWindowMouseOrTouchUp))})),R()(N()(t),"handleAudioTimeUpdate",fe((function(e){var n=t.state.isDraggingProgress,r=e.target;if(!n){var o=r.duration,a=r.currentTime;t.setState({currentTimePos:(a/o*100||0).toFixed(2)+"%"})}}),t.props.progressUpdateInterval)),R()(N()(t),"handleAudioDownloadProgressUpdate",(function(e){for(var n=e.target,r=[],o=0;o<n.buffered.length;o++){var a=n.buffered.start(o),i=n.buffered.end(o);r.push({left:(Math.round(100/n.duration*a)||0)+"%",width:(Math.round(100/n.duration*(i-a))||0)+"%"})}clearTimeout(t.downloadProgressAnimationTimer),t.setState({downloadProgressArr:r,hasDownloadProgressAnimation:!0}),t.downloadProgressAnimationTimer=setTimeout((function(){t.setState({hasDownloadProgressAnimation:!1})}),200)})),t}I()(t,e);var n=t.prototype;return n.componentDidUpdate=function(){var e=this.props.audio;e&&!this.hasAddedAudioEventListener&&(this.audio=e,this.hasAddedAudioEventListener=!0,e.addEventListener("timeupdate",this.handleAudioTimeUpdate),e.addEventListener("progress",this.handleAudioDownloadProgressUpdate))},n.componentWillUnmount=function(){this.audio&&this.hasAddedAudioEventListener&&(this.audio.removeEventListener("timeupdate",this.handleAudioTimeUpdate),this.audio.removeEventListener("progress",this.handleAudioDownloadProgressUpdate)),clearTimeout(this.downloadProgressAnimationTimer)},n.render=function(){var e=this,t=this.props,n=t.showDownloadProgress,r=t.ShowFilledProgress,a=this.state,i=a.currentTimePos,u=a.downloadProgressArr,l=a.hasDownloadProgressAnimation;return o.a.createElement("div",{className:"rhap_progress-container",ref:function(t){e.progressBarEl=t},"aria-label":"Audio Progress Control","aria-describedby":"rhap_current-time",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Number(i.split("%")[0]),tabIndex:0,onMouseDown:this.handleMouseDownProgressBar,onTouchStart:this.handleMouseDownProgressBar},o.a.createElement("div",{className:"rhap_progress-bar "+(n?"rhap_progress-bar-show-download":"")},o.a.createElement("div",{className:"rhap_progress-indicator",style:{left:i}}),r&&o.a.createElement("div",{className:"rhap_progress-filled",style:{width:i}}),n&&u.map((function(e,t){var n=e.left,r=e.width;return o.a.createElement("div",{key:t,className:"rhap_download-progress",style:{left:n,width:r,transitionDuration:l?".2s":"0s"}})}))))},t}(r.Component),pe=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,R()(N()(t),"audio",void 0),R()(N()(t),"hasAddedAudioEventListener",!1),R()(N()(t),"state",{currentTime:t.props.defaultCurrentTime}),R()(N()(t),"handleAudioCurrentTimeChange",(function(e){var n=e.target;t.setState({currentTime:de(n.currentTime)})})),t}I()(t,e);var n=t.prototype;return n.componentDidUpdate=function(){var e=this.props.audio;e&&!this.hasAddedAudioEventListener&&(this.audio=e,this.hasAddedAudioEventListener=!0,e.addEventListener("timeupdate",this.handleAudioCurrentTimeChange),e.addEventListener("loadedmetadata",this.handleAudioCurrentTimeChange))},n.componentWillUnmount=function(){this.audio&&this.hasAddedAudioEventListener&&(this.audio.removeEventListener("timeupdate",this.handleAudioCurrentTimeChange),this.audio.removeEventListener("loadedmetadata",this.handleAudioCurrentTimeChange))},n.render=function(){return this.state.currentTime},t}(r.PureComponent),ve=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,R()(N()(t),"audio",void 0),R()(N()(t),"hasAddedAudioEventListener",!1),R()(N()(t),"state",{duration:t.props.defaultDuration}),R()(N()(t),"handleAudioDurationChange",(function(e){var n=e.target;t.setState({duration:de(n.duration)})})),t}I()(t,e);var n=t.prototype;return n.componentDidUpdate=function(){var e=this.props.audio;e&&!this.hasAddedAudioEventListener&&(this.audio=e,this.hasAddedAudioEventListener=!0,e.addEventListener("durationchange",this.handleAudioDurationChange))},n.componentWillUnmount=function(){this.audio&&this.hasAddedAudioEventListener&&this.audio.removeEventListener("durationchange",this.handleAudioDurationChange)},n.render=function(){return this.state.duration},t}(r.PureComponent),me=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,R()(N()(t),"audio",void 0),R()(N()(t),"hasAddedAudioEventListener",!1),R()(N()(t),"volumeBarEl",void 0),R()(N()(t),"volumeAnimationTimer",0),R()(N()(t),"lastVolume",t.props.volume),R()(N()(t),"state",{currentVolumePos:(t.lastVolume/1*100||0).toFixed(2)+"%",hasVolumeAnimation:!1,isDraggingVolume:!1}),R()(N()(t),"getCurrentVolume",(function(e){var n=t.props.audio;if(!t.volumeBarEl)return{currentVolume:n.volume,currentVolumePos:t.state.currentVolumePos};var r,o,a=t.volumeBarEl.getBoundingClientRect(),i=a.width,u=se(e)-a.left;return u<0?(r=0,o="0%"):u>a.width?(r=1,o="100%"):(r=u/i,o=u/i*100+"%"),{currentVolume:r,currentVolumePos:o}})),R()(N()(t),"handleClickVolumeButton",(function(){var e=t.props.audio;e.volume>0?(t.lastVolume=e.volume,e.volume=0):e.volume=t.lastVolume})),R()(N()(t),"handleVolumnControlMouseDown",(function(e){e.stopPropagation();var n=t.props.audio,r=t.getCurrentVolume(e.nativeEvent),o=r.currentVolume,a=r.currentVolumePos;n.volume=o,t.setState({isDraggingVolume:!0,currentVolumePos:a}),e.nativeEvent instanceof MouseEvent?(window.addEventListener("mousemove",t.handleWindowMouseOrTouchMove),window.addEventListener("mouseup",t.handleWindowMouseOrTouchUp)):(window.addEventListener("touchmove",t.handleWindowMouseOrTouchMove),window.addEventListener("touchend",t.handleWindowMouseOrTouchUp))})),R()(N()(t),"handleWindowMouseOrTouchMove",(function(e){e.preventDefault(),e.stopPropagation();var n=t.props.audio,r=window.getSelection();if(r&&"Range"===r.type&&r.empty(),t.state.isDraggingVolume){var o=t.getCurrentVolume(e),a=o.currentVolume,i=o.currentVolumePos;n.volume=a,t.setState({currentVolumePos:i})}})),R()(N()(t),"handleWindowMouseOrTouchUp",(function(e){e.stopPropagation(),t.setState({isDraggingVolume:!1}),e instanceof MouseEvent?(window.removeEventListener("mousemove",t.handleWindowMouseOrTouchMove),window.removeEventListener("mouseup",t.handleWindowMouseOrTouchUp)):(window.removeEventListener("touchmove",t.handleWindowMouseOrTouchMove),window.removeEventListener("touchend",t.handleWindowMouseOrTouchUp))})),R()(N()(t),"handleAudioVolumeChange",(function(e){var n=t.state.isDraggingVolume,r=e.target.volume;(t.lastVolume>0&&0===r||0===t.lastVolume&&r>0)&&t.props.onMuteChange(),t.lastVolume=r,n||(t.setState({hasVolumeAnimation:!0,currentVolumePos:(r/1*100||0).toFixed(2)+"%"}),clearTimeout(t.volumeAnimationTimer),t.volumeAnimationTimer=setTimeout((function(){t.setState({hasVolumeAnimation:!1})}),100))})),t}I()(t,e);var n=t.prototype;return n.componentDidUpdate=function(){var e=this.props.audio;e&&!this.hasAddedAudioEventListener&&(this.audio=e,this.hasAddedAudioEventListener=!0,e.addEventListener("volumechange",this.handleAudioVolumeChange))},n.componentWillUnmount=function(){this.audio&&this.hasAddedAudioEventListener&&this.audio.removeEventListener("volumechange",this.handleAudioVolumeChange),clearTimeout(this.volumeAnimationTimer)},n.render=function(){var e=this,t=this.props.audio,n=this.state,r=n.currentVolumePos,a=n.hasVolumeAnimation,i=(t||{}).volume;return o.a.createElement("div",{ref:function(t){e.volumeBarEl=t},onMouseDown:this.handleVolumnControlMouseDown,onTouchStart:this.handleVolumnControlMouseDown,role:"progressbar","aria-label":"volume Control","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Number((100*i).toFixed(0)),tabIndex:0,className:"rhap_volume-bar-area"},o.a.createElement("div",{className:"rhap_volume-bar"},o.a.createElement("div",{className:"rhap_volume-indicator",style:{left:r,transitionDuration:a?".1s":"0s"}})))},t}(r.Component),ge=function(e){function t(t){var n;n=e.call(this,t)||this,R()(N()(n),"state",void 0),R()(N()(n),"audio",void 0),R()(N()(n),"volumeControl",void 0),R()(N()(n),"progressBarInstance",void 0),R()(N()(n),"container",void 0),R()(N()(n),"lastVolume",void 0),R()(N()(n),"listenTracker",void 0),R()(N()(n),"volumeAnimationTimer",void 0),R()(N()(n),"downloadProgressAnimationTimer",void 0),R()(N()(n),"togglePlay",(function(e){(e.stopPropagation(),n.audio.paused&&n.audio.src)?n.audio.play().then(null).catch((function(e){var t=n.props.onPlayError;t&&t(new Error(e))})):n.audio.paused||n.audio.pause()})),R()(N()(n),"handleClickVolumeButton",(function(){n.audio.volume>0?(n.lastVolume=n.audio.volume,n.audio.volume=0):n.audio.volume=n.lastVolume})),R()(N()(n),"handleMuteChange",(function(){n.forceUpdate()})),R()(N()(n),"handleClickLoopButton",(function(){n.setState((function(e){return{isLoopEnabled:!e.isLoopEnabled}}))})),R()(N()(n),"handleClickRewind",(function(){n.setJumpTime(-n.props.progressJumpStep)})),R()(N()(n),"handleClickForward",(function(){n.setJumpTime(n.props.progressJumpStep)})),R()(N()(n),"setJumpTime",(function(e){var t=n.audio,r=t.duration,o=t.currentTime;if(isFinite(r)&&isFinite(o)){var a=o+e/1e3;a<0?(n.audio.currentTime=0,a=0):a>r?(n.audio.currentTime=r,a=r):n.audio.currentTime=a}})),R()(N()(n),"setJumpVolume",(function(e){var t=n.audio.volume+e;t<0?t=0:t>1&&(t=1),n.audio.volume=t})),R()(N()(n),"setListenTrack",(function(){if(!n.listenTracker){var e=n.props.listenInterval;n.listenTracker=setInterval((function(){n.props.onListen&&n.props.onListen(n.audio.currentTime)}),e)}})),R()(N()(n),"clearListenTrack",(function(){n.listenTracker&&(clearInterval(n.listenTracker),delete n.listenTracker)})),R()(N()(n),"handleKeyDown",(function(e){switch(e.keyCode){case 32:e.target!==n.container&&e.target!==n.progressBarInstance.progressBarEl||n.togglePlay(e);break;case 37:n.handleClickRewind();break;case 39:n.handleClickForward();break;case 38:n.setJumpVolume(n.props.volumeJumpStep);break;case 40:n.setJumpVolume(-n.props.volumeJumpStep);break;case 76:n.handleClickLoopButton();break;case 77:n.handleClickVolumeButton()}}));var r=t.volume;return n.state={isPlaying:!1,isLoopEnabled:n.props.loop},n.lastVolume=r,n}I()(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this;this.forceUpdate();var t=this.audio;this.props.muted?t.volume=0:t.volume=this.lastVolume,t.addEventListener("error",(function(t){e.props.onError&&e.props.onError(t)})),t.addEventListener("canplay",(function(t){e.props.onCanPlay&&e.props.onCanPlay(t)})),t.addEventListener("canplaythrough",(function(t){e.props.onCanPlayThrough&&e.props.onCanPlayThrough(t)})),t.addEventListener("play",(function(t){e.setState({isPlaying:!0}),e.setListenTrack(),e.props.onPlay&&e.props.onPlay(t)})),t.addEventListener("abort",(function(t){e.clearListenTrack(),e.props.autoPlayAfterSrcChange?e.audio.play():e.setState({isPlaying:!1}),e.props.onAbort&&e.props.onAbort(t)})),t.addEventListener("ended",(function(t){e.clearListenTrack(),e.props.onEnded&&e.props.onEnded(t)})),t.addEventListener("pause",(function(t){e.clearListenTrack(),e.audio&&(e.setState({isPlaying:!1}),e.props.onPause&&e.props.onPause(t))}))},n.render=function(){var e,t,n,r=this,a=this.props,i=a.className,u=a.src,l=a.preload,s=a.autoPlay,c=a.crossOrigin,d=a.mediaGroup,f=a.showLoopControl,h=a.showSkipControls,p=a.showJumpControls,v=a.showVolumeControl,m=a.onClickPrevious,g=a.onClickNext,b=a.showDownloadProgress,w=a.ShowFilledProgress,y=a.volume,E=a.defaultCurrentTime,x=a.defaultDuration,_=a.muted,A=a.progressUpdateInterval,M=a.header,C=a.footer,k=a.customIcons,L=a.children,j=a.style,P=this.state,O=P.isPlaying,T=P.isLoopEnabled,S=(this.audio||{}).volume,V=void 0===S?_?0:y:S;return e=T?k.loop?k.loop:o.a.createElement(W.Icon,{icon:ie.a}):k.loopOff?k.loopOff:o.a.createElement(W.Icon,{icon:le.a}),t=O?k.pause?k.pause:o.a.createElement(W.Icon,{icon:J.a}):k.play?k.play:o.a.createElement(W.Icon,{icon:U.a}),n=V?k.volume?k.volume:o.a.createElement(W.Icon,{icon:ne.a}):k.volume?k.volumeMute:o.a.createElement(W.Icon,{icon:oe.a}),o.a.createElement("div",{role:"group",tabIndex:0,"aria-label":"Audio Player",className:"rhap_container "+i,onKeyDown:this.handleKeyDown,ref:function(e){r.container=e},style:j},o.a.createElement("audio",{src:u,controls:!1,loop:T,autoPlay:s,preload:l,crossOrigin:c,mediaGroup:d,ref:function(e){r.audio=e}},L),M&&o.a.createElement("div",{className:"rhap_header"},M),o.a.createElement("div",{className:"rhap_progress-section"},o.a.createElement("div",{id:"rhap_current-time",className:"rhap_time rhap_current-time"},o.a.createElement(pe,{audio:this.audio,defaultCurrentTime:E})),o.a.createElement(he,{ref:function(e){r.progressBarInstance=e},audio:this.audio,progressUpdateInterval:A,showDownloadProgress:b,ShowFilledProgress:w}),o.a.createElement("div",{className:"rhap_time rhap_total-time"},o.a.createElement(ve,{audio:this.audio,defaultDuration:x}))),o.a.createElement("div",{className:"rhap_controls-section"},o.a.createElement("div",{className:"rhap_additional-controls"},f&&o.a.createElement("button",{"aria-label":T?"Enable Loop":"Disable Loop",className:"rhap_button-clear rhap_repeat-button",onClick:this.handleClickLoopButton},e)),o.a.createElement("div",{className:"rhap_main-controls"},h&&o.a.createElement("button",{"aria-label":"Previous",className:"rhap_button-clear rhap_main-controls-button rhap_skip-button",onClick:m},k.previous?k.previous:o.a.createElement(W.Icon,{icon:Z.a})),p&&o.a.createElement("button",{"aria-label":"Rewind",className:"rhap_button-clear rhap_main-controls-button rhap_rewind-button",onClick:this.handleClickRewind},k.rewind?k.rewind:o.a.createElement(W.Icon,{icon:ee.a})),o.a.createElement("button",{"aria-label":O?"Pause":"Play",className:"rhap_button-clear rhap_main-controls-button rhap_play-pause-button",onClick:this.togglePlay},t),p&&o.a.createElement("button",{"aria-label":"Forward",className:"rhap_button-clear rhap_main-controls-button rhap_forward-button",onClick:this.handleClickForward},k.forward?k.forward:o.a.createElement(W.Icon,{icon:Q.a})),h&&o.a.createElement("button",{"aria-label":"Skip",className:"rhap_button-clear rhap_main-controls-button rhap_skip-button",onClick:g},k.next?k.next:o.a.createElement(W.Icon,{icon:K.a}))),o.a.createElement("div",{className:"rhap_volume-controls"},v&&o.a.createElement("div",{className:"rhap_volume-container"},o.a.createElement("button",{"aria-label":V?"Mute":"Unmute",onClick:this.handleClickVolumeButton,className:"rhap_button-clear rhap_volume-button"},n),o.a.createElement(me,{audio:this.audio,volume:V,onMuteChange:this.handleMuteChange})))),C&&o.a.createElement("div",{className:"rhap_footer"},C))},t}(r.Component);R()(ge,"defaultProps",{autoPlay:!1,autoPlayAfterSrcChange:!0,listenInterval:1e3,progressJumpStep:5e3,volumeJumpStep:.1,loop:!1,muted:!1,preload:"auto",progressUpdateInterval:20,defaultCurrentTime:"--:--",defaultDuration:"--:--",volume:1,className:"",showLoopControl:!0,showVolumeControl:!0,showJumpControls:!0,showSkipControls:!1,showDownloadProgress:!0,ShowFilledProgress:!0,customIcons:{}});var be=ge;n("EBAg");function we(e){var t=e.audioSrc,n=e.breakpoints,a=Object(D.a)(e,["audioSrc","breakpoints"]),i=Object(r.useRef)(null),u=Object(r.useState)(0),l=u[0],s=u[1],c=Object(r.useState)(!1),d=c[0],f=c[1],h=Object(r.useState)(!1),p=(h[0],h[1]);Object(r.useEffect)((function(){if(i.current&&i.current.audio){var e=n.find((function(e){return e.slide===l}));e&&d&&(i.current.audio.currentTime=e.start+.25,f(!1))}}),[l]);var v=function(e){for(var t=0;t<n.length;t++){var r=n[t];if(e>=r.start&&e<r.end){r.slide!==l&&s(r.slide);break}}};return o.a.createElement(ye,null,o.a.createElement("div",{className:"presentation-deck"},o.a.createElement(S,Object.assign({},a,{controlled:!0,selected:l}))),o.a.createElement("div",{className:"presentation-audio"},o.a.createElement(be,{ref:i,autoPlay:!1,showLoopControl:!1,showJumpControls:!1,showSkipControls:!0,listenInterval:200,src:t,onPlay:function(){return p(!0)},onPause:function(){return p(!1)},onCanPlay:function(){i.current&&i.current.audio&&v(i.current.audio.currentTime)},onListen:v,onClickNext:function(){var e=n.findIndex((function(e){return e.slide===l}));if(n[e+1])return s(n[e+1].slide),void f(!0);s(n[0].slide),f(!0)},onClickPrevious:function(){var e=n.findIndex((function(e){return e.slide===l}));if(n[e-1])return s(n[e-1].slide),void f(!0);s(n[n.length-1].slide),f(!0)}})))}var ye=l.default.div.withConfig({displayName:"player__Div",componentId:"sc-1r25do3-0"})([".rhap_container{flex-direction:row-reverse;align-items:center;min-height:30px;border-radius:0 0 6px 6px;&:focus,&:active,*:focus,*:active{outline:none;}.rhap_progress-section{flex:2;margin-right:60px;}.rhap_controls-section{justify-content:flex-start;flex-shrink:0;margin-top:0;.rhap_additional-controls{display:none;}.rhap_volume-controls{flex-grow:0;flex-shrink:0;width:120px;}}}"]);function Ee(e){return o.a.createElement(a.b,{query:"1358860651",render:function(t){var n,r,a=t.tracks.edges.map((function(e){return e.node})),i=e.meta,l=i.audioFile,s=i.audioURL,c=i.trackFile,d=i.trackURL,f=void 0===d?"":d,h=l?l.publicURL:s,p=c?c.relativePath:f;if(h&&p){var v=p.replace(/^\.\//,"/"),m=a.find((function(e){return u()(e.relativePath,v)}));if(m){if(e.hast.children.filter(P).length===m.slides.length){var g=(n=m.slides,r=0,j()(n,(function(e){return e.slide})).map((function(e){var t={slide:e.slide,start:r,end:r+e.duration};return r+=e.duration,t})));return o.a.createElement(we,Object.assign({},e,{audioSrc:h,breakpoints:g}))}console.warn("Incorrect presentation audio track config yaml: breakpoints count does not match slide count")}}return o.a.createElement(S,e)}})}function xe(e){return o.a.createElement(a.b,{query:"2194038815",render:function(t){var n=t.presentations.edges.map((function(e){return e.node})).find((function(t){return t.fileAbsolutePath===e.src}));if(!n)return o.a.createElement("p",null,"Presentation not found ",e.src);var r=n.pageHtmlAst,a=n.frontmatter;return o.a.createElement(Ee,{hast:r,meta:a,changeLocationHash:!1})}})}function _e(e){var t=e.src,n=e.type,r=e.width,a=e.height;return"presentation"===n?o.a.createElement(xe,{src:t,type:n,width:r,height:a}):o.a.createElement("embed",{src:t,type:n,width:r,height:a})}},heNW:function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},hgQt:function(e,t,n){var r=n("Juji"),o=n("4sDh");e.exports=function(e,t){return null!=e&&o(e,t,r)}},jOUs:function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("q1tI")),a=(0,r(n("8/g6")).default)(o.default.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}),"Fullscreen");t.default=a},kekF:function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},l9OW:function(e,t,n){var r=n("SKAX"),o=n("MMmD");e.exports=function(e,t){var n=-1,a=o(e)?Array(e.length):[];return r(e,(function(e,r,o){a[++n]=t(e,r,o)})),a}},lQqw:function(e,t,n){var r=n("MMmD");e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var a=n.length,i=t?a:-1,u=Object(n);(t?i--:++i<a)&&!1!==o(u[i],i,u););return n}}},"lm/5":function(e,t,n){var r=n("fmRc"),o=n("wF/u");e.exports=function(e,t,n,a){var i=n.length,u=i,l=!a;if(null==e)return!u;for(e=Object(e);i--;){var s=n[i];if(l&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<u;){var c=(s=n[i])[0],d=e[c],f=s[1];if(l&&s[2]){if(void 0===d&&!(c in e))return!1}else{var h=new r;if(a)var p=a(d,f,c,e,t,h);if(!(void 0===p?o(f,d,3,a,h):p))return!1}}return!0}},mc0g:function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),u=i.length;u--;){var l=i[e?u:++o];if(!1===n(a[l],l,a))break}return t}}},mdPL:function(e,t,n){(function(e){var r=n("WFqU"),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,u=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=u}).call(this,n("YuTi")(e))},"mv/X":function(e,t,n){var r=n("ljhN"),o=n("MMmD"),a=n("wJg7"),i=n("GoyQ");e.exports=function(e,t,n){if(!i(n))return!1;var u=typeof t;return!!("number"==u?o(n)&&a(t,n.length):"string"==u&&t in n)&&r(n[t],e)}},oJqr:function(e,t){t.__esModule=!0,t.default={body:'<path d="M13 6v12l8.5-6M4 18l8.5-6L4 6v12z" fill="currentColor"/>',width:24,height:24}},or5M:function(e,t,n){var r=n("1hJj"),o=n("QoRX"),a=n("xYSL");e.exports=function(e,t,n,i,u,l){var s=1&n,c=e.length,d=t.length;if(c!=d&&!(s&&d>c))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,v=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p<c;){var g=e[p],b=t[p];if(i)var w=s?i(b,g,p,t,e,l):i(g,b