(this.webpackJsonpLivePlayer=this.webpackJsonpLivePlayer||[]).push([[4],{182:function(e,t,n){"use strict";var o=n(395),r=n(396),i=n(398),a=n(399),c=n(400),u=c(),f=c(!0),s=n(401),l=n(402),m=n(403);function d(e,t){var n=(t=t||{}).controller;if(n||(e instanceof SVGElement&&(n=l(e,t)),e instanceof HTMLElement&&(n=m(e,t))),!n)throw new Error("Cannot create panzoom for the current type of dom element");var c=n.getOwner(),d={x:0,y:0},v=!1,x=new s;n.initTransform&&n.initTransform(x);var w,b="function"==typeof t.filterKey?t.filterKey:p,E="number"==typeof t.pinchSpeed?t.pinchSpeed:1,C=t.bounds,T="number"==typeof t.maxZoom?t.maxZoom:Number.POSITIVE_INFINITY,L="number"==typeof t.minZoom?t.minZoom:0,B="number"==typeof t.boundsPadding?t.boundsPadding:.05,S="number"==typeof t.zoomDoubleClickSpeed?t.zoomDoubleClickSpeed:1.75,k=t.beforeWheel||p,D=t.beforeMouseDown||p,A="number"==typeof t.zoomSpeed?t.zoomSpeed:.065,M=h(t.transformOrigin),z=t.enableTextSelection?f:u;!function(e){var t=typeof e;if("undefined"===t||"boolean"===t)return;var n=y(e.left)&&y(e.top)&&y(e.bottom)&&y(e.right);if(!n)throw new Error("Bounds object is not valid. It can be: undefined, boolean (true|false) or an object {left, top, right, bottom}")}(C),t.autocenter&&function(){var e,t,o=0,r=0,i=X();if(i)o=i.left,r=i.top,e=i.right-i.left,t=i.bottom-i.top;else{var a=c.getBoundingClientRect();e=a.width,t=a.height}var u=n.getBBox();if(0===u.width||0===u.height)return;var f=t/u.height,s=e/u.width,l=Math.min(s,f);x.x=-(u.left+u.width/2)*l+e/2+o,x.y=-(u.top+u.height/2)*l+t/2+r,x.scale=l}();var F,N,P,q,O,R,I,Z=0,V=!1,j=!1;q="smoothScroll"in t&&!t.smoothScroll?{start:p,stop:p,cancel:p}:a((function(){return{x:x.x,y:x.y}}),(function(e,t){we(),W(e,t)}),t.smoothScroll);var Y=!1;ee();var G={dispose:function(){te()},moveBy:$,moveTo:W,centerOn:function(e){var t=e.ownerSVGElement;if(!t)throw new Error("ui element is required to be within the scene");var n=e.getBoundingClientRect(),o=n.left+n.width/2,r=n.top+n.height/2,i=t.getBoundingClientRect(),a=i.width/2-o,c=i.height/2-r;$(a,c,!0)},zoomTo:xe,zoomAbs:Q,smoothZoom:ye,smoothZoomAbs:function(e,t,n){var o={scale:x.scale},i={scale:n};q.cancel(),we(),R=r(o,i,{step:function(n){Q(e,t,n.scale)}})},showRectangle:function(e){var t=c.getBoundingClientRect(),n=K(t.width,t.height),o=e.right-e.left,r=e.bottom-e.top;if(!Number.isFinite(o)||!Number.isFinite(r))throw new Error("Invalid rectangle");var i=n.x/o,a=n.y/r,u=Math.min(i,a);x.x=-(e.left+o/2)*u+n.x/2,x.y=-(e.top+r/2)*u+n.y/2,x.scale=u},pause:function(){te(),Y=!0},resume:function(){Y&&(ee(),Y=!1)},isPaused:function(){return Y},getTransform:function(){return x},getMinZoom:function(){return L},getMaxZoom:function(){return T},getTransformOrigin:function(){return M},setTransformOrigin:function(e){M=h(e)}};return i(G),G;function K(e,t){if(n.getScreenCTM){var o=n.getScreenCTM(),r=o.a,i=o.d,a=o.e,c=o.f;d.x=e*r-a,d.y=t*i-c}else d.x=e,d.y=t;return d}function W(e,t){x.x=e,x.y=t,J(),Le("pan"),U()}function H(e,t){W(x.x+e,x.y+t)}function J(){var e=X();if(e){var t,o,r,i,a=!1,c=(t=n.getBBox(),r=t.left,i=t.top,{left:(o={x:r*x.scale+x.x,y:i*x.scale+x.y}).x,top:o.y,right:t.width*x.scale+o.x,bottom:t.height*x.scale+o.y}),u=e.left-c.right;return u>0&&(x.x+=u,a=!0),(u=e.right-c.left)<0&&(x.x+=u,a=!0),(u=e.top-c.bottom)>0&&(x.y+=u,a=!0),(u=e.bottom-c.top)<0&&(x.y+=u,a=!0),a}}function X(){if(C){if("boolean"==typeof C){var e=c.getBoundingClientRect(),t=e.width,n=e.height;return{left:t*B,top:n*B,right:t*(1-B),bottom:n*(1-B)}}return C}}function U(){v=!0,w=window.requestAnimationFrame(ne)}function _(e,t,n){if(g(e)||g(t)||g(n))throw new Error("zoom requires valid numbers");var o=x.scale*n;if(oT){if(x.scale===T)return;n=T/x.scale}var r=K(e,t);(x.x=r.x-n*(r.x-x.x),x.y=r.y-n*(r.y-x.y),C&&1===B&&1===L)?(x.scale*=n,J()):J()||(x.scale*=n);Le("zoom"),U()}function Q(e,t,n){_(e,t,n/x.scale)}function $(e,t,n){if(!n)return H(e,t);O&&O.cancel();var o=0,i=0;O=r({x:0,y:0},{x:e,y:t},{step:function(e){H(e.x-o,e.y-i),o=e.x,i=e.y}})}function ee(){c.addEventListener("mousedown",se,{passive:!1}),c.addEventListener("dblclick",fe,{passive:!1}),c.addEventListener("touchstart",re,{passive:!1}),c.addEventListener("keydown",oe,{passive:!1}),o.addWheelListener(c,ve,{passive:!1}),U()}function te(){o.removeWheelListener(c,ve),c.removeEventListener("mousedown",se),c.removeEventListener("keydown",oe),c.removeEventListener("dblclick",fe),c.removeEventListener("touchstart",re),w&&(window.cancelAnimationFrame(w),w=0),q.cancel(),de(),he(),z.release(),Ce()}function ne(){v&&(v=!1,n.applyTransform(x),Le("transform"),w=0)}function oe(e){var t=0,n=0,o=0;if(38===e.keyCode?n=1:40===e.keyCode?n=-1:37===e.keyCode?t=1:39===e.keyCode?t=-1:189===e.keyCode||109===e.keyCode?o=1:187!==e.keyCode&&107!==e.keyCode||(o=-1),!b(e,t,n,o)){if(t||n){e.preventDefault(),e.stopPropagation();var r=c.getBoundingClientRect();$(.05*(i=Math.min(r.width,r.height))*t,.05*i*n)}if(o){var i,a=be(o);xe((i=M?ge():{x:(u=c.getBoundingClientRect()).width/2,y:u.height/2}).x,i.y,a)}var u}}function re(e){if(function(e){if(t.onTouch&&!t.onTouch(e))return;e.stopPropagation(),e.preventDefault()}(e),1===e.touches.length)return function(e){var t=e.touches[0],n=pe(t);F=n.x,N=n.y,q.cancel(),ie()}(e,e.touches[0]);2===e.touches.length&&(P=ue(e.touches[0],e.touches[1]),I=!0,ie())}function ie(){V||(V=!0,document.addEventListener("touchmove",ae),document.addEventListener("touchend",ce),document.addEventListener("touchcancel",ce))}function ae(e){if(1===e.touches.length){e.stopPropagation();var t=K((s=pe(e.touches[0])).x,s.y),n=t.x-F,o=t.y-N;0!==n&&0!==o&&Ee(),F=t.x,N=t.y,$(n,o)}else if(2===e.touches.length){I=!0;var r=e.touches[0],i=e.touches[1],a=ue(r,i),c=1+(a/P-1)*E,u=pe(r),f=pe(i);if(F=(u.x+f.x)/2,N=(u.y+f.y)/2,M){var s=ge();F=s.x,N=s.y}xe(F,N,c),P=a,e.stopPropagation(),e.preventDefault()}}function ce(e){if(e.touches.length>0){var t=pe(e.touches[0]);F=t.x,N=t.y}else{var n=new Date;if(n-Z<300)if(M)ye((t=ge()).x,t.y,S);else ye(F,N,S);Z=n,V=!1,Ce(),he()}}function ue(e,t){var n=e.clientX-t.clientX,o=e.clientY-t.clientY;return Math.sqrt(n*n+o*o)}function fe(e){!function(e){t.onDoubleClick&&!t.onDoubleClick(e)||(e.preventDefault(),e.stopPropagation())}(e);var n=pe(e);M&&(n=ge()),ye(n.x,n.y,S)}function se(e){if(!D(e)){if(V)return e.stopPropagation(),!1;if(1===e.button&&null!==window.event||0===e.button){q.cancel();var t=pe(e),n=K(t.x,t.y);return F=n.x,N=n.y,document.addEventListener("mousemove",le),document.addEventListener("mouseup",me),z.capture(e.target||e.srcElement),!1}}}function le(e){if(!V){Ee();var t=pe(e),n=K(t.x,t.y),o=n.x-F,r=n.y-N;F=n.x,N=n.y,$(o,r)}}function me(){z.release(),Ce(),de()}function de(){document.removeEventListener("mousemove",le),document.removeEventListener("mouseup",me),j=!1}function he(){document.removeEventListener("touchmove",ae),document.removeEventListener("touchend",ce),document.removeEventListener("touchcancel",ce),j=!1,I=!1}function ve(e){if(!k(e)){q.cancel();var t=be(e.deltaY);if(1!==t){var n=M?ge():pe(e);xe(n.x,n.y,t),e.preventDefault()}}}function pe(e){var t=c.getBoundingClientRect();return{x:e.clientX-t.left,y:e.clientY-t.top}}function ye(e,t,n){var o=x.scale,i={scale:o},a={scale:n*o};q.cancel(),we(),R=r(i,a,{step:function(n){Q(e,t,n.scale)},done:Te})}function ge(){var e=c.getBoundingClientRect();return{x:e.width*M.x,y:e.height*M.y}}function xe(e,t,n){return q.cancel(),we(),_(e,t,n)}function we(){R&&(R.cancel(),R=null)}function be(e){var t=1;return e>0?t=1-A:e<0&&(t=1+A),t}function Ee(){j||(Le("panstart"),j=!0,q.start())}function Ce(){j&&(I||q.stop(),Le("panend"))}function Te(){Le("zoomend")}function Le(e){G.fire(e,G)}}function h(e){if(e)return"object"==typeof e?(y(e.x)&&y(e.y)||v(e),e):void v()}function v(e){throw console.error(e),new Error(["Cannot parse transform origin.","Some good examples:",' "center center" can be achieved with {x: 0.5, y: 0.5}',' "top center" can be achieved with {x: 0.5, y: 0}',' "bottom right" can be achieved with {x: 1, y: 1}'].join("\n"))}function p(){}function y(e){return Number.isFinite(e)}function g(e){return Number.isNaN?Number.isNaN(e):e!=e}e.exports=d,function(){if("undefined"!=typeof document){var e=document.getElementsByTagName("script");if(e){for(var t,n=0;nh)&&(u+=f=v*c);(s<-h||s>h)&&(l+=m=v*s);d=y(x)},cancel:function(){p(a),p(d)}};function g(){var t=Date.now(),n=t-i;i=t;var o=e(),u=o.x-r.x,f=o.y-r.y;r=o;var l=1e3/(1+n);c=.8*u*l+.2*c,s=.8*f*l+.2*s,a=y(g)}function x(){var e=Date.now()-i,t=!1,o=0,r=0;f&&((o=-f*Math.exp(-e/342))>.5||o<-.5?t=!0:o=f=0),m&&((r=-m*Math.exp(-e/342))>.5||r<-.5?t=!0:r=m=0),t&&(n(u+o,l+r),d=y(x))}}}).call(this,n(31))},400:function(e,t){function n(e){return e.stopPropagation(),!1}function o(){}e.exports=function(e){if(e)return{capture:o,release:o};var t,r,i,a=!1;return{capture:function(e){a=!0,r=window.document.onselectstart,i=window.document.ondragstart,window.document.onselectstart=n,(t=e).ondragstart=n},release:function(){if(!a)return;a=!1,window.document.onselectstart=r,t&&(t.ondragstart=i)}}}},401:function(e,t){e.exports=function(){this.x=0,this.y=0,this.scale=1}},402:function(e,t){e.exports=function(e,t){if(!(e instanceof SVGElement))throw new Error("svg element is required for svg.panzoom to work");var n=e.ownerSVGElement;if(!n)throw new Error("Do not apply panzoom to the root element. Use its child instead (e.g. ). As of March 2016 only FireFox supported transform on the root element");t.disableKeyboardInteraction||n.setAttribute("tabindex",0);return{getBBox:function(){var t=e.getBBox();return{left:t.x,top:t.y,width:t.width,height:t.height}},getScreenCTM:function(){var e=n.getCTM();if(!e)return n.getScreenCTM();return e},getOwner:function(){return n},applyTransform:function(t){e.setAttribute("transform","matrix("+t.scale+" 0 0 "+t.scale+" "+t.x+" "+t.y+")")},initTransform:function(t){var o=e.getCTM();t.x=o.e,t.y=o.f,t.scale=o.a,n.removeAttributeNS(null,"viewBox")}}}},403:function(e,t){e.exports=function(e,t){if(!(e instanceof HTMLElement))throw new Error("svg element is required for svg.panzoom to work");var n=e.parentElement;if(!n)throw new Error("Do not apply panzoom to the detached DOM element. ");e.scrollTop=0,t.disableKeyboardInteraction||n.setAttribute("tabindex",0);return{getBBox:function(){return{left:0,top:0,width:e.clientWidth,height:e.clientHeight}},getOwner:function(){return n},applyTransform:function(t){e.style.transformOrigin="0 0 0",e.style.transform="matrix("+t.scale+", 0, 0, "+t.scale+", "+t.x+", "+t.y+")"}}}}}]);