!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Clappr=e():t.Clappr=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(i){if(r[i])return r[i].exports;var n=r[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,i){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=100)}([function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,r){"use strict";e.__esModule=!0;var i=r(39),n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,n.default)(e))&&"function"!=typeof e?t:e}},function(t,e,r){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var n=r(134),a=i(n),o=r(76),s=i(o),l=r(39),u=i(l);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,u.default)(e)));t.prototype=(0,s.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(a.default?(0,a.default)(t,e):t.__proto__=e)}},function(t,e,r){"use strict";e.__esModule=!0;var i=r(75),n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(){function t(t,e){for(var r=0;r0&&(o+=a+":",n<1&&(o+="00:")),(n&&n>0||e)&&(o+=("0"+n).slice(-2)+":"),o+=("0"+i).slice(-2)+":",o+=("0"+r).slice(-2),o.trim()}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"t",e=0,r=B.params[t]||B.hashParams[t]||"",i=r.match(/[0-9]+[hms]+/g)||[];if(i.length>0){var n={h:3600,m:60,s:1};i.forEach(function(t){if(t){var r=t[t.length-1],i=parseInt(t.slice(0,t.length-1),10);e+=i*n[r]}})}else r&&(e=parseInt(r,10));return e}function l(t){return U[t]||(U[t]=0),t+ ++U[t]}function u(t){return t-parseFloat(t)+1>=0}function d(){var t=document.getElementsByTagName("script");return t.length?t[t.length-1].src:""}function c(){return window.navigator&&window.navigator.language}function f(){return window.performance&&window.performance.now?performance.now():Date.now()}function h(t,e){var r=t.indexOf(e);r>=0&&t.splice(r,1)}function p(t,e){return void 0!==t&&void 0!==e&&void 0!==e.find(function(e){return t.toLowerCase()===e.toLowerCase()})}function g(t,e){e=(0,m.default)({inline:!1,muted:!1,timeout:250,type:"video",source:M.default.mp4,element:null},e);var r=e.element?e.element:document.createElement(e.type);r.muted=e.muted,!0===e.muted&&r.setAttribute("muted","muted"),!0===e.inline&&r.setAttribute("playsinline","playsinline"),r.src=e.source;var i=r.play(),n=setTimeout(function(){a(!1,new Error("Timeout "+e.timeout+" ms has been reached"))},e.timeout),a=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;clearTimeout(n),t(e,r)};void 0!==i?i.then(function(){return a(!0)}).catch(function(t){return a(!1,t)}):a(!0)}Object.defineProperty(e,"__esModule",{value:!0}),e.DomRecycler=e.cancelAnimationFrame=e.requestAnimationFrame=e.QueryString=e.Config=e.Fullscreen=void 0;var y=r(12),m=i(y),v=r(3),A=i(v),_=r(0),b=i(_),E=r(1),T=i(E),S=r(2),L=i(S),k=r(75),R=i(k),C=r(140),w=i(C);e.assign=n,e.extend=a,e.formatTime=o,e.seekStringToSeconds=s,e.uniqueId=l,e.isNumber=u,e.currentScriptUrl=d,e.getBrowserLanguage=c,e.now=f,e.removeArrayItem=h,e.listContainsIgnoreCase=p,e.canAutoPlayMedia=g,r(143);var O=r(14),P=i(O),D=r(6),I=i(D),x=r(147),M=i(x),N=e.Fullscreen={isFullscreen:function(){return!!(document.webkitFullscreenElement||document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement)},requestFullscreen:function(t){t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen?t.msRequestFullscreen():t.querySelector&&t.querySelector("video")&&t.querySelector("video").webkitEnterFullScreen?t.querySelector("video").webkitEnterFullScreen():t.webkitEnterFullScreen&&t.webkitEnterFullScreen()},cancelFullscreen:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;t.exitFullscreen?t.exitFullscreen():t.webkitCancelFullScreen?t.webkitCancelFullScreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen()},fullscreenEnabled:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},F=e.Config=function(){function t(){(0,b.default)(this,t)}return t._defaultConfig=function(){return{volume:{value:100,parse:parseInt}}},t._defaultValueFor=function(t){try{return this._defaultConfig()[t].parse(this._defaultConfig()[t].value)}catch(t){return}},t._createKeyspace=function(t){return"clappr."+document.domain+"."+t},t.restore=function(t){return P.default.hasLocalstorage&&localStorage[this._createKeyspace(t)]?this._defaultConfig()[t].parse(localStorage[this._createKeyspace(t)]):this._defaultValueFor(t)},t.persist=function(t,e){if(P.default.hasLocalstorage)try{return localStorage[this._createKeyspace(t)]=e,!0}catch(t){return!1}},t}(),B=e.QueryString=function(){function t(){(0,b.default)(this,t)}return t.parse=function(t){for(var e=void 0,r=/\+/g,i=/([^&=]+)=?([^&]*)/g,n=function(t){return decodeURIComponent(t.replace(r," "))},a={};e=i.exec(t);)a[n(e[1]).toLowerCase()]=n(e[2]);return a},(0,A.default)(t,null,[{key:"params",get:function(){var t=window.location.search.substring(1);return t!==this.query&&(this._urlParams=this.parse(t),this.query=t),this._urlParams}},{key:"hashParams",get:function(){var t=window.location.hash.substring(1);return t!==this.hash&&(this._hashParams=this.parse(t),this.hash=t),this._hashParams}}]),t}(),U={},j=e.requestAnimationFrame=(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}).bind(window),G=e.cancelAnimationFrame=(window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.clearTimeout).bind(window),K=[],V=e.DomRecycler=function(){function t(){(0,b.default)(this,t)}return t.configure=function(t){this.options=I.default.extend(this.options,t)},t.create=function(t){return this.options.recycleVideo&&"video"===t&&K.length>0?K.shift():(0,I.default)("<"+t+">")},t.garbage=function(t){this.options.recycleVideo&&"VIDEO"===t[0].tagName.toUpperCase()&&(t.children().remove(),K.push(t))},t}();V.options={recycleVideo:!1},e.default={Config:F,Fullscreen:N,QueryString:B,DomRecycler:V,extend:a,formatTime:o,seekStringToSeconds:s,uniqueId:l,currentScriptUrl:d,isNumber:u,requestAnimationFrame:j,cancelAnimationFrame:G,getBrowserLanguage:c,now:f,removeArrayItem:h,canAutoPlayMedia:g,Media:M.default}},function(t,e){var r=function(){function t(t){return null==t?String(t):z[q.call(t)]||"object"}function e(e){return"function"==t(e)}function r(t){return null!=t&&t==t.window}function i(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function n(e){return"object"==t(e)}function a(t){return n(t)&&!r(t)&&Object.getPrototypeOf(t)==Object.prototype}function o(t){var e=!!t&&"length"in t&&t.length,i=S.type(t);return"function"!=i&&!r(t)&&("array"==i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function s(t){return O.call(t,function(t){return null!=t})}function l(t){return t.length>0?S.fn.concat.apply([],t):t}function u(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function d(t){return t in x?x[t]:x[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function c(t,e){return"number"!=typeof e||M[u(t)]?e:e+"px"}function f(t){var e,r;return I[t]||(e=D.createElement(t),D.body.appendChild(e),r=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==r&&(r="block"),I[t]=r),I[t]}function h(t){return"children"in t?P.call(t.children):S.map(t.childNodes,function(t){if(1==t.nodeType)return t})}function p(t,e){var r,i=t?t.length:0;for(r=0;r]*>/,F=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,B=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,U=/^(?:body|html)$/i,j=/([A-Z])/g,G=["val","css","html","text","data","width","height","offset"],K=["after","prepend","before","append"],V=D.createElement("table"),Y=D.createElement("tr"),H={tr:D.createElement("tbody"),tbody:V,thead:V,tfoot:V,td:Y,th:Y,"*":D.createElement("div")},$=/complete|loaded|interactive/,W=/^[\w-]*$/,z={},q=z.toString,X={},Z=D.createElement("div"),Q={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},J=Array.isArray||function(t){return t instanceof Array};return X.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(r)return r.call(t,e);var i,n=t.parentNode,a=!n;return a&&(n=Z).appendChild(t),i=~X.qsa(n,e).indexOf(t),a&&Z.removeChild(t),i},k=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},R=function(t){return O.call(t,function(e,r){return t.indexOf(e)==r})},X.fragment=function(t,e,r){var i,n,o;return F.test(t)&&(i=S(D.createElement(RegExp.$1))),i||(t.replace&&(t=t.replace(B,"<$1>")),e===E&&(e=N.test(t)&&RegExp.$1),e in H||(e="*"),o=H[e],o.innerHTML=""+t,i=S.each(P.call(o.childNodes),function(){o.removeChild(this)})),a(r)&&(n=S(i),S.each(r,function(t,e){G.indexOf(t)>-1?n[t](e):n.attr(t,e)})),i},X.Z=function(t,e){return new p(t,e)},X.isZ=function(t){return t instanceof X.Z},X.init=function(t,r){var i;if(!t)return X.Z();if("string"==typeof t)if(t=t.trim(),"<"==t[0]&&N.test(t))i=X.fragment(t,RegExp.$1,r),t=null;else{if(r!==E)return S(r).find(t);i=X.qsa(D,t)}else{if(e(t))return S(D).ready(t);if(X.isZ(t))return t;if(J(t))i=s(t);else if(n(t))i=[t],t=null;else if(N.test(t))i=X.fragment(t.trim(),RegExp.$1,r),t=null;else{if(r!==E)return S(r).find(t);i=X.qsa(D,t)}}return X.Z(i,t)},S=function(t,e){return X.init(t,e)},S.extend=function(t){var e,r=P.call(arguments,1);return"boolean"==typeof t&&(e=t,t=r.shift()),r.forEach(function(r){g(t,r,e)}),t},X.qsa=function(t,e){var r,i="#"==e[0],n=!i&&"."==e[0],a=i||n?e.slice(1):e,o=W.test(a);return t.getElementById&&o&&i?(r=t.getElementById(a))?[r]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:P.call(o&&!i&&t.getElementsByClassName?n?t.getElementsByClassName(a):t.getElementsByTagName(e):t.querySelectorAll(e))},S.contains=D.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},S.type=t,S.isFunction=e,S.isWindow=r,S.isArray=J,S.isPlainObject=a,S.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},S.isNumeric=function(t){var e=Number(t),r=typeof t;return null!=t&&"boolean"!=r&&("string"!=r||t.length)&&!isNaN(e)&&isFinite(e)||!1},S.inArray=function(t,e,r){return C.indexOf.call(e,t,r)},S.camelCase=k,S.trim=function(t){return null==t?"":String.prototype.trim.call(t)},S.uuid=0,S.support={},S.expr={},S.noop=function(){},S.map=function(t,e){var r,i,n,a=[];if(o(t))for(i=0;i=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return C.every.call(this,function(e,r){return!1!==t.call(e,r,e)}),this},filter:function(t){return e(t)?this.not(this.not(t)):S(O.call(this,function(e){return X.matches(e,t)}))},add:function(t,e){return S(R(this.concat(S(t,e))))},is:function(t){return this.length>0&&X.matches(this[0],t)},not:function(t){var r=[];if(e(t)&&t.call!==E)this.each(function(e){t.call(this,e)||r.push(this)});else{var i="string"==typeof t?this.filter(t):o(t)&&e(t.item)?P.call(t):S(t);this.forEach(function(t){i.indexOf(t)<0&&r.push(t)})}return S(r)},has:function(t){return this.filter(function(){return n(t)?S.contains(this,t):S(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!n(t)?t:S(t)},last:function(){var t=this[this.length-1];return t&&!n(t)?t:S(t)},find:function(t){var e=this;return t?"object"==typeof t?S(t).filter(function(){var t=this;return C.some.call(e,function(e){return S.contains(e,t)})}):1==this.length?S(X.qsa(this[0],t)):this.map(function(){return X.qsa(this,t)}):S()},closest:function(t,e){var r=[],n="object"==typeof t&&S(t);return this.each(function(a,o){for(;o&&!(n?n.indexOf(o)>=0:X.matches(o,t));)o=o!==e&&!i(o)&&o.parentNode;o&&r.indexOf(o)<0&&r.push(o)}),S(r)},parents:function(t){for(var e=[],r=this;r.length>0;)r=S.map(r,function(t){if((t=t.parentNode)&&!i(t)&&e.indexOf(t)<0)return e.push(t),t});return y(e,t)},parent:function(t){return y(R(this.pluck("parentNode")),t)},children:function(t){return y(this.map(function(){return h(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||P.call(this.childNodes)})},siblings:function(t){return y(this.map(function(t,e){return O.call(h(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return S.map(this,function(e){return e[t]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=f(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var r=e(t);if(this[0]&&!r)var i=S(t).get(0),n=i.parentNode||this.length>1;return this.each(function(e){S(this).wrapAll(r?t.call(this,e):n?i.cloneNode(!0):i)})},wrapAll:function(t){if(this[0]){S(this[0]).before(t=S(t));for(var e;(e=t.children()).length;)t=e.first();S(t).append(this)}return this},wrapInner:function(t){var r=e(t);return this.each(function(e){var i=S(this),n=i.contents(),a=r?t.call(this,e):t;n.length?n.wrapAll(a):i.append(a)})},unwrap:function(){return this.parent().each(function(){S(this).replaceWith(S(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var e=S(this);(t===E?"none"==e.css("display"):t)?e.show():e.hide()})},prev:function(t){return S(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return S(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(e){var r=this.innerHTML;S(this).empty().append(m(this,t,e,r))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var r=m(this,t,e,this.textContent);this.textContent=null==r?"":""+r}):0 in this?this.pluck("textContent").join(""):null},attr:function(t,e){var r;return"string"!=typeof t||1 in arguments?this.each(function(r){if(1===this.nodeType)if(n(t))for(T in t)v(this,T,t[T]);else v(this,t,m(this,e,r,this.getAttribute(t)))}):0 in this&&1==this[0].nodeType&&null!=(r=this[0].getAttribute(t))?r:E},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){v(this,t)},this)})},prop:function(t,e){return t=Q[t]||t,1 in arguments?this.each(function(r){this[t]=m(this,e,r,this[t])}):this[0]&&this[0][t]},removeProp:function(t){return t=Q[t]||t,this.each(function(){delete this[t]})},data:function(t,e){var r="data-"+t.replace(j,"-$1").toLowerCase(),i=1 in arguments?this.attr(r,e):this.attr(r);return null!==i?_(i):E},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each(function(e){this.value=m(this,t,e,this.value)})):this[0]&&(this[0].multiple?S(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(t){if(t)return this.each(function(e){var r=S(this),i=m(this,t,e,r.offset()),n=r.offsetParent().offset(),a={top:i.top-n.top,left:i.left-n.left};"static"==r.css("position")&&(a.position="relative"),r.css(a)});if(!this.length)return null;if(D.documentElement!==this[0]&&!S.contains(D.documentElement,this[0]))return{top:0,left:0};var e=this[0].getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,width:Math.round(e.width),height:Math.round(e.height)}},css:function(e,r){if(arguments.length<2){var i=this[0];if("string"==typeof e){if(!i)return;return i.style[k(e)]||getComputedStyle(i,"").getPropertyValue(e)}if(J(e)){if(!i)return;var n={},a=getComputedStyle(i,"");return S.each(e,function(t,e){n[e]=i.style[k(e)]||a.getPropertyValue(e)}),n}}var o="";if("string"==t(e))r||0===r?o=u(e)+":"+c(e,r):this.each(function(){this.style.removeProperty(u(e))});else for(T in e)e[T]||0===e[T]?o+=u(T)+":"+c(T,e[T])+";":this.each(function(){this.style.removeProperty(u(T))});return this.each(function(){this.style.cssText+=";"+o})},index:function(t){return t?this.indexOf(S(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&C.some.call(this,function(t){return this.test(A(t))},d(t))},addClass:function(t){return t?this.each(function(e){if("className"in this){L=[];var r=A(this);m(this,t,e,r).split(/\s+/g).forEach(function(t){S(this).hasClass(t)||L.push(t)},this),L.length&&A(this,r+(r?" ":"")+L.join(" "))}}):this},removeClass:function(t){return this.each(function(e){if("className"in this){if(t===E)return A(this,"");L=A(this),m(this,t,e,L).split(/\s+/g).forEach(function(t){L=L.replace(d(t)," ")}),A(this,L.trim())}})},toggleClass:function(t,e){return t?this.each(function(r){var i=S(this);m(this,t,r,A(this)).split(/\s+/g).forEach(function(t){(e===E?!i.hasClass(t):e)?i.addClass(t):i.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var e="scrollTop"in this[0];return t===E?e?this[0].scrollTop:this[0].pageYOffset:this.each(e?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var e="scrollLeft"in this[0];return t===E?e?this[0].scrollLeft:this[0].pageXOffset:this.each(e?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),r=this.offset(),i=U.test(e[0].nodeName)?{top:0,left:0}:e.offset();return r.top-=parseFloat(S(t).css("margin-top"))||0,r.left-=parseFloat(S(t).css("margin-left"))||0,i.top+=parseFloat(S(e[0]).css("border-top-width"))||0,i.left+=parseFloat(S(e[0]).css("border-left-width"))||0,{top:r.top-i.top,left:r.left-i.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||D.body;t&&!U.test(t.nodeName)&&"static"==S(t).css("position");)t=t.offsetParent;return t})}},S.fn.detach=S.fn.remove,["width","height"].forEach(function(t){var e=t.replace(/./,function(t){return t[0].toUpperCase()});S.fn[t]=function(n){var a,o=this[0];return n===E?r(o)?o["inner"+e]:i(o)?o.documentElement["scroll"+e]:(a=this.offset())&&a[t]:this.each(function(e){o=S(this),o.css(t,m(this,n,e,o[t]()))})}}),K.forEach(function(e,r){var i=r%2;S.fn[e]=function(){var e,n,a=S.map(arguments,function(r){var i=[];return e=t(r),"array"==e?(r.forEach(function(t){return t.nodeType!==E?i.push(t):S.zepto.isZ(t)?i=i.concat(t.get()):void(i=i.concat(X.fragment(t)))}),i):"object"==e||null==r?r:X.fragment(r)}),o=this.length>1;return a.length<1?this:this.each(function(t,e){n=i?e:e.parentNode,e=0==r?e.nextSibling:1==r?e.firstChild:2==r?e:null;var s=S.contains(D.documentElement,n);a.forEach(function(t){if(o)t=t.cloneNode(!0);else if(!n)return S(t).remove();n.insertBefore(t,e),s&&b(t,function(t){if(!(null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src)){var e=t.ownerDocument?t.ownerDocument.defaultView:window;e.eval.call(e,t.innerHTML)}})})})},S.fn[i?e+"To":"insert"+(r?"Before":"After")]=function(t){return S(t)[e](this),this}}),X.Z.prototype=p.prototype=S.fn,X.uniq=R,X.deserializeValue=_,S.zepto=X,S}();window.Zepto=r,void 0===window.$&&(window.$=r),function(t){function e(e,r,i){var n=t.Event(r);return t(e).trigger(n,i),!n.isDefaultPrevented()}function r(t,r,i,n){if(t.global)return e(r||A,i,n)}function i(e){e.global&&0==t.active++&&r(e,null,"ajaxStart")}function n(e){e.global&&!--t.active&&r(e,null,"ajaxStop")}function a(t,e){var i=e.context;if(!1===e.beforeSend.call(i,t,e)||!1===r(e,i,"ajaxBeforeSend",[t,e]))return!1;r(e,i,"ajaxSend",[t,e])}function o(t,e,i,n){var a=i.context;i.success.call(a,t,"success",e),n&&n.resolveWith(a,[t,"success",e]),r(i,a,"ajaxSuccess",[e,i,t]),l("success",e,i)}function s(t,e,i,n,a){var o=n.context;n.error.call(o,i,e,t),a&&a.rejectWith(o,[i,e,t]),r(n,o,"ajaxError",[i,n,t||e]),l(e,i,n)}function l(t,e,i){var a=i.context;i.complete.call(a,e,t),r(i,a,"ajaxComplete",[e,i]),n(i)}function u(t,e,r){if(r.dataFilter==d)return t;var i=r.context;return r.dataFilter.call(i,t,e)}function d(){}function c(t){return t&&(t=t.split(";",2)[0]),t&&(t==S?"html":t==T?"json":b.test(t)?"script":E.test(t)&&"xml")||"text"}function f(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function h(e){e.processData&&e.data&&"string"!=t.type(e.data)&&(e.data=t.param(e.data,e.traditional)),!e.data||e.type&&"GET"!=e.type.toUpperCase()&&"jsonp"!=e.dataType||(e.url=f(e.url,e.data),e.data=void 0)}function p(e,r,i,n){return t.isFunction(r)&&(n=i,i=r,r=void 0),t.isFunction(i)||(n=i,i=void 0),{url:e,data:r,success:i,dataType:n}}function g(e,r,i,n){var a,o=t.isArray(r),s=t.isPlainObject(r);t.each(r,function(r,l){a=t.type(l),n&&(r=i?n:n+"["+(s||"object"==a||"array"==a?r:"")+"]"),!n&&o?e.add(l.name,l.value):"array"==a||!i&&"object"==a?g(e,l,i,r):e.add(r,l)})}var y,m,v=+new Date,A=window.document,_=/)<[^<]*)*<\/script>/gi,b=/^(?:text|application)\/javascript/i,E=/^(?:text|application)\/xml/i,T="application/json",S="text/html",L=/^\s*$/,k=A.createElement("a");k.href=window.location.href,t.active=0,t.ajaxJSONP=function(e,r){if(!("type"in e))return t.ajax(e);var i,n,l=e.jsonpCallback,u=(t.isFunction(l)?l():l)||"Zepto"+v++,d=A.createElement("script"),c=window[u],f=function(e){t(d).triggerHandler("error",e||"abort")},h={abort:f};return r&&r.promise(h),t(d).on("load error",function(a,l){clearTimeout(n),t(d).off().remove(),"error"!=a.type&&i?o(i[0],h,e,r):s(null,l||"error",h,e,r),window[u]=c,i&&t.isFunction(c)&&c(i[0]),c=i=void 0}),!1===a(h,e)?(f("abort"),h):(window[u]=function(){i=arguments},d.src=e.url.replace(/\?(.+)=\?/,"?$1="+u),A.head.appendChild(d),e.timeout>0&&(n=setTimeout(function(){f("timeout")},e.timeout)),h)},t.ajaxSettings={type:"GET",beforeSend:d,success:d,error:d,complete:d,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:T,xml:"application/xml, text/xml",html:S,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0,dataFilter:d},t.ajax=function(e){var r,n,l=t.extend({},e||{}),p=t.Deferred&&t.Deferred();for(y in t.ajaxSettings)void 0===l[y]&&(l[y]=t.ajaxSettings[y]);i(l),l.crossDomain||(r=A.createElement("a"),r.href=l.url,r.href=r.href,l.crossDomain=k.protocol+"//"+k.host!=r.protocol+"//"+r.host),l.url||(l.url=window.location.toString()),(n=l.url.indexOf("#"))>-1&&(l.url=l.url.slice(0,n)),h(l);var g=l.dataType,v=/\?.+=\?/.test(l.url);if(v&&(g="jsonp"),!1!==l.cache&&(e&&!0===e.cache||"script"!=g&&"jsonp"!=g)||(l.url=f(l.url,"_="+Date.now())),"jsonp"==g)return v||(l.url=f(l.url,l.jsonp?l.jsonp+"=?":!1===l.jsonp?"":"callback=?")),t.ajaxJSONP(l,p);var _,b=l.accepts[g],E={},T=function(t,e){E[t.toLowerCase()]=[t,e]},S=/^([\w-]+:)\/\//.test(l.url)?RegExp.$1:window.location.protocol,R=l.xhr(),C=R.setRequestHeader;if(p&&p.promise(R),l.crossDomain||T("X-Requested-With","XMLHttpRequest"),T("Accept",b||"*/*"),(b=l.mimeType||b)&&(b.indexOf(",")>-1&&(b=b.split(",",2)[0]),R.overrideMimeType&&R.overrideMimeType(b)),(l.contentType||!1!==l.contentType&&l.data&&"GET"!=l.type.toUpperCase())&&T("Content-Type",l.contentType||"application/x-www-form-urlencoded"),l.headers)for(m in l.headers)T(m,l.headers[m]);if(R.setRequestHeader=T,R.onreadystatechange=function(){if(4==R.readyState){R.onreadystatechange=d,clearTimeout(_);var e,r=!1;if(R.status>=200&&R.status<300||304==R.status||0==R.status&&"file:"==S){if(g=g||c(l.mimeType||R.getResponseHeader("content-type")),"arraybuffer"==R.responseType||"blob"==R.responseType)e=R.response;else{e=R.responseText;try{e=u(e,g,l),"script"==g?(0,eval)(e):"xml"==g?e=R.responseXML:"json"==g&&(e=L.test(e)?null:t.parseJSON(e))}catch(t){r=t}if(r)return s(r,"parsererror",R,l,p)}o(e,R,l,p)}else s(R.statusText||null,R.status?"error":"abort",R,l,p)}},!1===a(R,l))return R.abort(),s(null,"abort",R,l,p),R;var w=!("async"in l)||l.async;if(R.open(l.type,l.url,w,l.username,l.password),l.xhrFields)for(m in l.xhrFields)R[m]=l.xhrFields[m];for(m in E)C.apply(R,E[m]);return l.timeout>0&&(_=setTimeout(function(){R.onreadystatechange=d,R.abort(),s(null,"timeout",R,l,p)},l.timeout)),R.send(l.data?l.data:null),R},t.get=function(){return t.ajax(p.apply(null,arguments))},t.post=function(){var e=p.apply(null,arguments);return e.type="POST",t.ajax(e)},t.getJSON=function(){var e=p.apply(null,arguments);return e.dataType="json",t.ajax(e)},t.fn.load=function(e,r,i){if(!this.length)return this;var n,a=this,o=e.split(/\s/),s=p(e,r,i),l=s.success;return o.length>1&&(s.url=o[0],n=o[1]),s.success=function(e){a.html(n?t("
").html(e.replace(_,"")).find(n):e),l&&l.apply(a,arguments)},t.ajax(s),this};var R=encodeURIComponent;t.param=function(e,r){var i=[];return i.add=function(e,r){t.isFunction(r)&&(r=r()),null==r&&(r=""),this.push(R(e)+"="+R(r))},g(i,e,r),i.join("&").replace(/%20/g,"+")}}(r),function(t){t.Callbacks=function(e){e=t.extend({},e);var r,i,n,a,o,s,l=[],u=!e.once&&[],d=function(t){for(r=e.memory&&t,i=!0,s=a||0,a=0,o=l.length,n=!0;l&&s-1;)l.splice(i,1),n&&(i<=o&&--o,i<=s&&--s)}),this},has:function(e){return!(!l||!(e?t.inArray(e,l)>-1:l.length))},empty:function(){return o=l.length=0,this},disable:function(){return l=u=r=void 0,this},disabled:function(){return!l},lock:function(){return u=void 0,r||c.disable(),this},locked:function(){return!u},fireWith:function(t,e){return!l||i&&!u||(e=e||[],e=[t,e.slice?e.slice():e],n?u.push(e):d(e)),this},fire:function(){return c.fireWith(this,arguments)},fired:function(){return!!i}};return c}}(r),function(t){function e(r){var i=[["resolve","done",t.Callbacks({once:1,memory:1}),"resolved"],["reject","fail",t.Callbacks({once:1,memory:1}),"rejected"],["notify","progress",t.Callbacks({memory:1})]],n="pending",a={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var r=arguments;return e(function(e){t.each(i,function(i,n){var s=t.isFunction(r[i])&&r[i];o[n[1]](function(){var r=s&&s.apply(this,arguments);if(r&&t.isFunction(r.promise))r.promise().done(e.resolve).fail(e.reject).progress(e.notify);else{var i=this===a?e.promise():this,o=s?[r]:arguments;e[n[0]+"With"](i,o)}})}),r=null}).promise()},promise:function(e){return null!=e?t.extend(e,a):a}},o={};return t.each(i,function(t,e){var r=e[2],s=e[3];a[e[1]]=r.add,s&&r.add(function(){n=s},i[1^t][2].disable,i[2][2].lock),o[e[0]]=function(){return o[e[0]+"With"](this===o?a:this,arguments),this},o[e[0]+"With"]=r.fireWith}),a.promise(o),r&&r.call(o,o),o}var r=Array.prototype.slice;t.when=function(i){var n,a,o,s=r.call(arguments),l=s.length,u=0,d=1!==l||i&&t.isFunction(i.promise)?l:0,c=1===d?i:e(),f=function(t,e,i){return function(a){e[t]=this,i[t]=arguments.length>1?r.call(arguments):a,i===n?c.notifyWith(e,i):--d||c.resolveWith(e,i)}};if(l>1)for(n=new Array(l),a=new Array(l),o=new Array(l);u-1)return this},has:function(t,e,r){if(i.qsa(this,r).length)return this}},s=new RegExp("(.*):(\\w+)(?:\\(([^)]+)\\))?$\\s*"),l=/^\s*>/,u="Zepto"+ +new Date;i.qsa=function(e,a){return r(a,function(r,o,s){try{var d;!r&&o?r="*":l.test(r)&&(d=t(e).addClass(u),r="."+u+" "+r);var c=n(e,r)}catch(t){throw console.error("error performing selector: %o",a),t}finally{d&&d.removeClass(u)}return o?i.uniq(t.map(c,function(t,e){return o.call(t,e,c,s)})):c})},i.matches=function(t,e){return r(e,function(e,r,i){return(!e||a(t,e))&&(!r||r.call(t,null,i)===t)})}}(r),t.exports=r},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},n=/(.)^/,a={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},o=/\\|'|\r|\n|\t|\u2028|\u2029/g,s={"&":"&","<":"<",">":">",'"':""","'":"'"},l=new RegExp("[&<>\"']","g"),u=function(t){return null===t?"":(""+t).replace(l,function(t){return s[t]})},d=0,c=function(t,e){var r,s=new RegExp([(i.escape||n).source,(i.interpolate||n).source,(i.evaluate||n).source].join("|")+"|$","g"),l=0,c="__p+='";t.replace(s,function(e,r,i,n,s){return c+=t.slice(l,s).replace(o,function(t){return"\\"+a[t]}),r&&(c+="'+\n((__t=("+r+"))==null?'':escapeExpr(__t))+\n'"),i&&(c+="'+\n((__t=("+i+"))==null?'':__t)+\n'"),n&&(c+="';\n"+n+"\n__p+='"),l=s+e.length,e}),c+="';\n",i.variable||(c="with(obj||{}){\n"+c+"}\n"),c="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+c+"return __p;\n//# sourceURL=/microtemplates/source["+d+++"]";try{r=new Function(i.variable||"obj","escapeExpr",c)}catch(t){throw t.source=c,t}if(e)return r(e,u);var f=function(t){return r.call(this,t,u)};return f.source="function("+(i.variable||"obj")+"){\n"+c+"}",f};c.settings=i,e.default=c,t.exports=e.default},function(t,e){function r(t,e){var r=t[1]||"",n=t[3];if(!n)return r;if(e&&"function"==typeof btoa){var a=i(n);return[r].concat(n.sources.map(function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"})).concat([a]).join("\n")}return[r].join("\n")}function i(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i=r(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},n=0;n=0&&_.splice(e,1)}function s(t){var e=document.createElement("style");return t.attrs.type="text/css",u(e,t.attrs),a(t,e),e}function l(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",u(e,t.attrs),a(t,e),e}function u(t,e){Object.keys(e).forEach(function(r){t.setAttribute(r,e[r])})}function d(t,e){var r,i,n,a;if(e.transform&&t.css){if(!(a=e.transform(t.css)))return function(){};t.css=a}if(e.singleton){var u=A++;r=v||(v=s(e)),i=c.bind(null,r,u,!1),n=c.bind(null,r,u,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=l(e),i=h.bind(null,r,e),n=function(){o(r),r.href&&URL.revokeObjectURL(r.href)}):(r=s(e),i=f.bind(null,r),n=function(){o(r)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else n()}}function c(t,e,r,i){var n=r?"":i.css;if(t.styleSheet)t.styleSheet.cssText=E(e,n);else{var a=document.createTextNode(n),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(a,o[e]):t.appendChild(a)}}function f(t,e){var r=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}function h(t,e,r){var i=r.css,n=r.sourceMap,a=void 0===e.convertToAbsoluteUrls&&n;(e.convertToAbsoluteUrls||a)&&(i=b(i)),n&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var o=new Blob([i],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(o),s&&URL.revokeObjectURL(s)}var p={},g=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),y=function(t){return document.querySelector(t)},m=function(t){var e={};return function(t){if("function"==typeof t)return t();if(void 0===e[t]){var r=y.call(this,t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}}(),v=null,A=0,_=[],b=r(158);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=g()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var r=n(t,e);return i(r,e),function(t){for(var a=[],o=0;o0}},{key:"closedCaptionsTracks",get:function(){return[]}},{key:"closedCaptionsTrackId",get:function(){return-1},set:function(t){}}]),e}(y.default);e.default=b,(0,a.default)(b.prototype,v.default),b.extend=function(t){return(0,p.extend)(b,t)},b.canPlay=function(t,e){return!1},b.VOD="vod",b.AOD="aod",b.LIVE="live",b.NO_OP="no_op",b.type="playback",t.exports=e.default},function(t,e){var r=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=r)},function(t,e,r){t.exports={default:r(102),__esModule:!0}},function(t,e,r){var i=r(50)("wks"),n=r(36),a=r(17).Symbol,o="function"==typeof a;(t.exports=function(t){return i[t]||(i[t]=o&&a[t]||(o?a:n)("Symbol."+t))}).store=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(144),n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=n.default,t.exports=e.default},function(t,e,r){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),a=i(n),o=r(1),s=i(o),l=r(3),u=i(l),d=r(2),c=i(d),f=r(5),h=r(4),p=i(h),g=function(t){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.default)(this,e);var i=(0,s.default)(this,t.call(this,r));return i._options=r,i.uniqueId=(0,f.uniqueId)("o"),i}return(0,c.default)(e,t),(0,u.default)(e,[{key:"options",get:function(){return this._options}}]),e}(p.default);e.default=g,t.exports=e.default},function(t,e,r){var i=r(17),n=r(11),a=r(44),o=r(25),s=function(t,e,r){var l,u,d,c=t&s.F,f=t&s.G,h=t&s.S,p=t&s.P,g=t&s.B,y=t&s.W,m=f?n:n[e]||(n[e]={}),v=m.prototype,A=f?i:h?i[e]:(i[e]||{}).prototype;f&&(r=e);for(l in r)(u=!c&&A&&void 0!==A[l])&&l in m||(d=u?A[l]:r[l],m[l]=f&&"function"!=typeof A[l]?r[l]:g&&u?a(d,i):y&&A[l]==d?function(t){var e=function(e,r,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(d):p&&"function"==typeof d?a(Function.call,d):d,p&&((m.virtual||(m.virtual={}))[l]=d,t&s.R&&v&&!v[l]&&o(v,l,d)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e,r){var i=r(26),n=r(65),a=r(45),o=Object.defineProperty;e.f=r(21)?Object.defineProperty:function(t,e,r){if(i(t),e=a(e,!0),i(r),n)try{return o(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var i=r(68),n=r(47);t.exports=function(t){return i(n(t))}},function(t,e,r){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=r(12),a=i(n),o=r(29),s=i(o),l=r(24),u=i(l),d={createError:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{useCodePrefix:!0},r=this.constructor&&this.constructor.type||"",i=this.name||r,n=this.i18n||this.core&&this.core.i18n||this.container&&this.container.i18n,o=i+":"+(t&&t.code||"unknown"),l={description:"",level:u.default.Levels.FATAL,origin:i,scope:r,raw:{}},d=(0,a.default)({},l,t,{code:e.useCodePrefix?o:t.code});if(n&&d.level==u.default.Levels.FATAL&&!d.UI){var c={title:n.t("default_error_title"),message:n.t("default_error_message")};d.UI=c}return this.playerError?this.playerError.createError(d):s.default.warn(i,"PlayerError is not defined. Error: ",d),d}};e.default=d,t.exports=e.default},function(t,e,r){t.exports=!r(27)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=r(12),a=i(n),o=r(0),s=i(o),l=r(1),u=i(l),d=r(3),c=i(d),f=r(2),h=i(f),p=r(5),g=r(30),y=i(g),m=r(20),v=i(m),A=function(t){function e(r){(0,s.default)(this,e);var i=(0,u.default)(this,t.call(this,r.options));return i.core=r,i.enabled=!0,i.bindEvents(),i.render(),i}return(0,h.default)(e,t),(0,c.default)(e,[{key:"playerError",get:function(){return this.core.playerError}}]),e.prototype.bindEvents=function(){},e.prototype.getExternalInterface=function(){return{}},e.prototype.enable=function(){this.enabled||(this.bindEvents(),this.$el.show(),this.enabled=!0)},e.prototype.disable=function(){this.stopListening(),this.$el.hide(),this.enabled=!1},e.prototype.render=function(){return this},e}(y.default);e.default=A,(0,a.default)(A.prototype,v.default),A.extend=function(t){return(0,p.extend)(A,t)},A.type="core",t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(79),n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=n.default,t.exports=e.default},function(t,e,r){var i=r(18),n=r(33);t.exports=r(21)?function(t,e,r){return i.f(t,e,n(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var i=r(32);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){var i=r(67),n=r(51);t.exports=Object.keys||function(t){return i(t,n)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(148),n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=n.default,t.exports=e.default},function(t,e,r){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),a=i(n),o=r(1),s=i(o),l=r(3),u=i(l),d=r(2),c=i(d),f=r(6),h=i(f),p=r(5),g=r(15),y=i(g),m=/^(\S+)\s*(.*)$/,v=function(t){function e(r){(0,a.default)(this,e);var i=(0,s.default)(this,t.call(this,r));return i.cid=(0,p.uniqueId)("c"),i._ensureElement(),i.delegateEvents(),i}return(0,c.default)(e,t),(0,u.default)(e,[{key:"tagName",get:function(){return"div"}},{key:"events",get:function(){return{}}},{key:"attributes",get:function(){return{}}}]),e.prototype.$=function(t){return this.$el.find(t)},e.prototype.render=function(){return this},e.prototype.destroy=function(){return this.$el.remove(),this.stopListening(),this.undelegateEvents(),this},e.prototype.setElement=function(t,e){return this.$el&&this.undelegateEvents(),this.$el=h.default.zepto.isZ(t)?t:(0,h.default)(t),this.el=this.$el[0],!1!==e&&this.delegateEvents(),this},e.prototype.delegateEvents=function(t){if(!t&&!(t=this.events))return this;this.undelegateEvents();for(var e in t){var r=t[e];if(r&&r.constructor!==Function&&(r=this[t[e]]),r){var i=e.match(m),n=i[1],a=i[2];n+=".delegateEvents"+this.cid,""===a?this.$el.on(n,r.bind(this)):this.$el.on(n,a,r.bind(this))}}return this},e.prototype.undelegateEvents=function(){return this.$el.off(".delegateEvents"+this.cid),this},e.prototype._ensureElement=function(){if(this.el)this.setElement(this.el,!1);else{var t=h.default.extend({},this.attributes);this.id&&(t.id=this.id),this.className&&(t.class=this.className);var e=p.DomRecycler.create(this.tagName).attr(t);this.setElement(e,!1)}},e}(y.default);e.default=v,t.exports=e.default},function(t,e,r){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),a=i(n),o=r(4),s=i(o),l=new s.default,u=function t(){(0,a.default)(this,t)};e.default=u,u.on=function(t,e,r){l.on(t,e,r)},u.once=function(t,e,r){l.once(t,e,r)},u.off=function(t,e,r){l.off(t,e,r)},u.trigger=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i0?i:r)(t)}},function(t,e,r){var i=r(50)("keys"),n=r(36);t.exports=function(t){return i[t]||(i[t]=n(t))}},function(t,e,r){var i=r(17),n=i["__core-js_shared__"]||(i["__core-js_shared__"]={});t.exports=function(t){return n[t]||(n[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){t.exports={default:r(108),__esModule:!0}},function(t,e){t.exports=!0},function(t,e,r){var i=r(26),n=r(114),a=r(51),o=r(49)("IE_PROTO"),s=function(){},l=function(){var t,e=r(66)("iframe"),i=a.length;for(e.style.display="none",r(115).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("