text: !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.ChimeeMobilePlayer=t()}(this,function(){"use strict";var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e,t){return e(t={exports:{}},t.exports),t.exports}var r=Math.ceil,i=Math.floor,o=function(e){return isNaN(e=+e)?0:(e>0?i:r)(e)},a=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e},s=n(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),u=n(function(e){var t=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=t)}),c=(u.version,function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}),l=function(e,t,n){if(c(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},f=function(e){return"object"==typeof e?null!==e:"function"==typeof e},d=function(e){if(!f(e))throw TypeError(e+" is not an object!");return e},h=function(e){try{return!!e()}catch(e){return!0}},p=!h(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),v=s.document,y=f(v)&&f(v.createElement),m=function(e){return y?v.createElement(e):{}},g=!p&&!h(function(){return 7!=Object.defineProperty(m("div"),"a",{get:function(){return 7}}).a}),b=function(e,t){if(!f(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!f(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!f(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!f(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},w=Object.defineProperty,_={f:p?Object.defineProperty:function(e,t,n){if(d(e),t=b(t,!0),d(n),g)try{return w(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},E=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},k=p?function(e,t,n){return _.f(e,t,E(1,n))}:function(e,t,n){return e[t]=n,e},x=function(e,t,n){var r,i,o,a=e&x.F,c=e&x.G,f=e&x.S,d=e&x.P,h=e&x.B,p=e&x.W,v=c?u:u[t]||(u[t]={}),y=v.prototype,m=c?s:f?s[t]:(s[t]||{}).prototype;for(r in c&&(n=t),n)(i=!a&&m&&void 0!==m[r])&&r in v||(o=i?m[r]:n[r],v[r]=c&&"function"!=typeof m[r]?n[r]:h&&i?l(o,s):p&&m[r]==o?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(o):d&&"function"==typeof o?l(Function.call,o):o,d&&((v.virtual||(v.virtual={}))[r]=o,e&x.R&&y&&!y[r]&&k(y,r,o)))};x.F=1,x.G=2,x.S=4,x.P=8,x.B=16,x.W=32,x.U=64,x.R=128;var O,T=x,S=k,A={}.hasOwnProperty,P=function(e,t){return A.call(e,t)},j={},C={}.toString,M=function(e){return C.call(e).slice(8,-1)},$=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==M(e)?e.split(""):Object(e)},L=function(e){return $(a(e))},F=Math.min,N=function(e){return e>0?F(o(e),9007199254740991):0},z=Math.max,R=Math.min,I=s["__core-js_shared__"]||(s["__core-js_shared__"]={}),B=function(e){return I[e]||(I[e]={})},V=0,D=Math.random(),K=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++V+D).toString(36))},G=B("keys"),W=function(e){return G[e]||(G[e]=K(e))},H=(O=!1,function(e,t,n){var r,i=L(e),a=N(i.length),s=function(e,t){return(e=o(e))<0?z(e+t,0):R(e,t)}(n,a);if(O&&t!=t){for(;a>s;)if((r=i[s++])!=r)return!0}else for(;a>s;s++)if((O||s in i)&&i[s]===t)return O||s||0;return!O&&-1}),U=W("IE_PROTO"),q=function(e,t){var n,r=L(e),i=0,o=[];for(n in r)n!=U&&P(r,n)&&o.push(n);for(;t.length>i;)P(r,n=t[i++])&&(~H(o,n)||o.push(n));return o},Y="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),X=Object.keys||function(e){return q(e,Y)},J=p?Object.defineProperties:function(e,t){d(e);for(var n,r=X(t),i=r.length,o=0;i>o;)_.f(e,n=r[o++],t[n]);return e},Z=s.document,Q=Z&&Z.documentElement,ee=W("IE_PROTO"),te=function(){},ne=function(){var e,t=m("iframe"),n=Y.length;for(t.style.display="none",Q.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),ne=e.F;n--;)delete ne.prototype[Y[n]];return ne()},re=Object.create||function(e,t){var n;return null!==e?(te.prototype=d(e),n=new te,te.prototype=null,n[ee]=e):n=ne(),void 0===t?n:J(n,t)},ie=n(function(e){var t=B("wks"),n=s.Symbol,r="function"==typeof n;(e.exports=function(e){return t[e]||(t[e]=r&&n[e]||(r?n:K)("Symbol."+e))}).store=t}),oe=_.f,ae=ie("toStringTag"),se=function(e,t,n){e&&!P(e=n?e:e.prototype,ae)&&oe(e,ae,{configurable:!0,value:t})},ue={};k(ue,ie("iterator"),function(){return this});var ce,le=function(e,t,n){e.prototype=re(ue,{next:E(1,n)}),se(e,t+" Iterator")},fe=function(e){return Object(a(e))},de=W("IE_PROTO"),he=Object.prototype,pe=Object.getPrototypeOf||function(e){return e=fe(e),P(e,de)?e[de]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?he:null},ve=ie("iterator"),ye=!([].keys&&"next"in[].keys()),me=function(){return this},ge=function(e,t,n,r,i,o,a){le(n,t,r);var s,u,c,l=function(e){if(!ye&&e in p)return p[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},f=t+" Iterator",d="values"==i,h=!1,p=e.prototype,v=p[ve]||p["@@iterator"]||i&&p[i],y=!ye&&v||l(i),m=i?d?l("entries"):y:void 0,g="Array"==t&&p.entries||v;if(g&&(c=pe(g.call(new e)))!==Object.prototype&&c.next&&se(c,f,!0),d&&v&&"values"!==v.name&&(h=!0,y=function(){return v.call(this)}),a&&(ye||h||!p[ve])&&k(p,ve,y),j[t]=y,j[f]=me,i)if(s={values:d?y:l("values"),keys:o?y:l("keys"),entries:m},a)for(u in s)u in p||S(p,u,s[u]);else T(T.P+T.F*(ye||h),t,s);return s},be=(ce=!0,function(e,t){var n,r,i=String(a(e)),s=o(t),u=i.length;return s<0||s>=u?ce?"":void 0:(n=i.charCodeAt(s))<55296||n>56319||s+1===u||(r=i.charCodeAt(s+1))<56320||r>57343?ce?i.charAt(s):n:ce?i.slice(s,s+2):r-56320+(n-55296<<10)+65536});ge(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=be(t,n),this._i+=e.length,{value:e,done:!1})});var we=function(e,t){return{value:t,done:!!e}};ge(Array,"Array",function(e,t){this._t=L(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,we(1)):we(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values");j.Arguments=j.Array;for(var _e=ie("toStringTag"),Ee="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),ke=0;ke<Ee.length;ke++){var xe=Ee[ke],Oe=s[xe],Te=Oe&&Oe.prototype;Te&&!Te[_e]&&k(Te,_e,xe),j[xe]=j.Array}var Se={f:ie},Ae=Se.f("iterator"),Pe=n(function(e){e.exports={default:Ae,__esModule:!0}});t(Pe);var je=n(function(e){var t=K("meta"),n=_.f,r=0,i=Object.isExtensible||function(){return!0},o=!h(function(){return i(Object.preventExtensions({}))}),a=function(e){n(e,t,{value:{i:"O"+ ++r,w:{}}})},s=e.exports={KEY:t,NEED:!1,fastKey:function(e,n){if(!f(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!P(e,t)){if(!i(e))return"F";if(!n)return"E";a(e)}return e[t].i},getWeak:function(e,n){if(!P(e,t)){if(!i(e))return!0;if(!n)return!1;a(e)}return e[t].w},onFreeze:function(e){return o&&s.NEED&&i(e)&&!P(e,t)&&a(e),e}}}),Ce=(je.KEY,je.NEED,je.fastKey,je.getWeak,je.onFreeze,_.f),Me=function(e){var t=u.Symbol||(u.Symbol={});"_"==e.charAt(0)||e in t||Ce(t,e,{value:Se.f(e)})},$e={f:Object.getOwnPropertySymbols},Le={f:{}.propertyIsEnumerable},Fe=Array.isArray||function(e){return"Array"==M(e)},Ne=Y.concat("length","prototype"),ze={f:Object.getOwnPropertyNames||function(e){return q(e,Ne)}},Re=ze.f,Ie={}.toString,Be="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ve={f:function(e){return Be&&"[object Window]"==Ie.call(e)?function(e){try{return Re(e)}catch(e){return Be.slice()}}(e):Re(L(e))}},De=Object.getOwnPropertyDescriptor,Ke={f:p?De:function(e,t){if(e=L(e),t=b(t,!0),g)try{return De(e,t)}catch(e){}if(P(e,t))return E(!Le.f.call(e,t),e[t])}},Ge=je.KEY,We=Ke.f,He=_.f,Ue=Ve.f,qe=s.Symbol,Ye=s.JSON,Xe=Ye&&Ye.stringify,Je=ie("_hidden"),Ze=ie("toPrimitive"),Qe={}.propertyIsEnumerable,et=B("symbol-registry"),tt=B("symbols"),nt=B("op-symbols"),rt=Object.prototype,it="function"==typeof qe,ot=s.QObject,at=!ot||!ot.prototype||!ot.prototype.findChild,st=p&&h(function(){return 7!=re(He({},"a",{get:function(){return He(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=We(rt,t);r&&delete rt[t],He(e,t,n),r&&e!==rt&&He(rt,t,r)}:He,ut=function(e){var t=tt[e]=re(qe.prototype);return t._k=e,t},ct=it&&"symbol"==typeof qe.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof qe},lt=function(e,t,n){return e===rt&&lt(nt,t,n),d(e),t=b(t,!0),d(n),P(tt,t)?(n.enumerable?(P(e,Je)&&e[Je][t]&&(e[Je][t]=!1),n=re(n,{enumerable:E(0,!1)})):(P(e,Je)||He(e,Je,E(1,{})),e[Je][t]=!0),st(e,t,n)):He(e,t,n)},ft=function(e,t){d(e);for(var n,r=function(e){var t=X(e),n=$e.f;if(n)for(var r,i=n(e),o=Le.f,a=0;i.length>a;)o.call(e,r=i[a++])&&t.push(r);return t}(t=L(t)),i=0,o=r.length;o>i;)lt(e,n=r[i++],t[n]);return e},dt=function(e){var t=Qe.call(this,e=b(e,!0));return!(this===rt&&P(tt,e)&&!P(nt,e))&&(!(t||!P(this,e)||!P(tt,e)||P(this,Je)&&this[Je][e])||t)},ht=function(e,t){if(e=L(e),t=b(t,!0),e!==rt||!P(tt,t)||P(nt,t)){var n=We(e,t);return!n||!P(tt,t)||P(e,Je)&&e[Je][t]||(n.enumerable=!0),n}},pt=function(e){for(var t,n=Ue(L(e)),r=[],i=0;n.length>i;)P(tt,t=n[i++])||t==Je||t==Ge||r.push(t);return r},vt=function(e){for(var t,n=e===rt,r=Ue(n?nt:L(e)),i=[],o=0;r.length>o;)!P(tt,t=r[o++])||n&&!P(rt,t)||i.push(tt[t]);return i};it||(S((qe=function(){if(this instanceof qe)throw TypeError("Symbol is not a constructor!");var e=K(arguments.length>0?arguments[0]:void 0),t=function(n){this===rt&&t.call(nt,n),P(this,Je)&&P(this[Je],e)&&(this[Je][e]=!1),st(this,e,E(1,n))};return p&&at&&st(rt,e,{configurable:!0,set:t}),ut(e)}).prototype,"toString",function(){return this._k}),Ke.f=ht,_.f=lt,ze.f=Ve.f=pt,Le.f=dt,$e.f=vt,Se.f=function(e){return ut(ie(e))}),T(T.G+T.W+T.F*!it,{Symbol:qe});for(var yt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),mt=0;yt.length>mt;)ie(yt[mt++]);for(var gt=X(ie.store),bt=0;gt.length>bt;)Me(gt[bt++]);T(T.S+T.F*!it,"Symbol",{for:function(e){return P(et,e+="")?et[e]:et[e]=qe(e)},keyFor:function(e){if(!ct(e))throw TypeError(e+" is not a symbol!");for(var t in et)if(et[t]===e)return t},useSetter:function(){at=!0},useSimple:function(){at=!1}}),T(T.S+T.F*!it,"Object",{create:function(e,t){return void 0===t?re(e):ft(re(e),t)},defineProperty:lt,defineProperties:ft,getOwnPropertyDescriptor:ht,getOwnPropertyNames:pt,getOwnPropertySymbols:vt}),Ye&&T(T.S+T.F*(!it||h(function(){var e=qe();return"[null]"!=Xe([e])||"{}"!=Xe({a:e})||"{}"!=Xe(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(f(t)||void 0!==e)&&!ct(e))return Fe(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!ct(t))return t}),r[1]=t,Xe.apply(Ye,r)}}),qe.prototype[Ze]||k(qe.prototype,Ze,qe.prototype.valueOf),se(qe,"Symbol"),se(Math,"Math",!0),se(s.JSON,"JSON",!0),Me("asyncIterator"),Me("observable");var wt=u.Symbol,_t=n(function(e){e.exports={default:wt,__esModule:!0}});t(_t);var Et=n(function(e,t){t.__esModule=!0;var n=o(Pe),r=o(_t),i="function"==typeof r.default&&"symbol"==typeof n.default?function(e){return typeof e}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":typeof e};function o(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof r.default&&"symbol"===i(n.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":void 0===e?"undefined":i(e)}}),kt=t(Et),xt=function(e,t){var n=(u.Object||{})[e]||Object[e],r={};r[e]=t(n),T(T.S+T.F*h(function(){n(1)}),"Object",r)};xt("getPrototypeOf",function(){return function(e){return pe(fe(e))}});var Ot=u.Object.getPrototypeOf,Tt=n(function(e){e.exports={default:Ot,__esModule:!0}}),St=t(Tt),At=t(n(function(e,t){t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}})),Pt=t(n(function(e,t){t.__esModule=!0;var n,r=(n=Et)&&n.__esModule?n:{default:n};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,r.default)(t))&&"function"!=typeof t?e:t}}));T(T.S+T.F*!p,"Object",{defineProperty:_.f});var jt=u.Object,Ct=function(e,t,n){return jt.defineProperty(e,t,n)},Mt=n(function(e){e.exports={default:Ct,__esModule:!0}}),$t=t(Mt),Lt=t(n(function(e,t){t.__esModule=!0;var n,r=(n=Mt)&&n.__esModule?n:{default:n};t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),(0,r.default)(e,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()})),Ft=function(e,t){if(d(e),!f(t)&&null!==t)throw TypeError(t+": can't set as prototype!")},Nt={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=l(Function.call,Ke.f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return Ft(e,r),t?e.__proto__=r:n(e,r),e}}({},!1):void 0),check:Ft};T(T.S,"Object",{setPrototypeOf:Nt.set});var zt=u.Object.setPrototypeOf,Rt=n(function(e){e.exports={default:zt,__esModule:!0}});t(Rt),T(T.S,"Object",{create:re});var It=u.Object,Bt=function(e,t){return It.create(e,t)},Vt=n(function(e){e.exports={default:Bt,__esModule:!0}}),Dt=t(Vt),Kt=t(n(function(e,t){t.__esModule=!0;var n=o(Rt),r=o(Vt),i=o(Et);function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,i.default)(t)));e.prototype=(0,r.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(n.default?(0,n.default)(e,t):e.__proto__=t)}}));xt("keys",function(){return function(e){return X(fe(e))}});var Gt=u.Object.keys,Wt=t(n(function(e){e.exports={default:Gt,__esModule:!0}})),Ht=Math.floor;T(T.S,"Number",{isInteger:function(e){return!f(e)&&isFinite(e)&&Ht(e)===e}});var Ut=u.Number.isInteger,qt=t(n(function(e){e.exports={default:Ut,__esModule:!0}})),Yt="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff",Xt="["+Yt+"]",Jt=RegExp("^"+Xt+Xt+"*"),Zt=RegExp(Xt+Xt+"*$"),Qt=function(e,t,n){var r={},i=h(function(){return!!Yt[e]()||"​"!="​"[e]()}),o=r[e]=i?t(en):Yt[e];n&&(r[n]=o),T(T.P+T.F*i,"String",r)},en=Qt.trim=function(e,t){return e=String(a(e)),1&t&&(e=e.replace(Jt,"")),2&t&&(e=e.replace(Zt,"")),e},tn=Qt,nn=s.parseFloat,rn=tn.trim,on=1/nn(Yt+"-0")!=-1/0?function(e){var t=rn(String(e),3),n=nn(t);return 0===n&&"-"==t.charAt(0)?-0:n}:nn;T(T.S+T.F*(Number.parseFloat!=on),"Number",{parseFloat:on});var an=parseFloat,sn=t(n(function(e){e.exports={default:an,__esModule:!0}}));function un(e){return void 0!==e}function cn(e){return void 0===e||null===e}function ln(e){return Array.isArray(e)}function fn(e){return"function"==typeof e}function dn(e){return Object(e)===e&&"[object Object]"===String(e)&&!fn(e)&&!ln(e)}function hn(e){return"number"==typeof e}function pn(e){return qt(e)}function vn(e){return ln(e)?0===e.length:dn(e)?0===Wt(e).length:!e}function yn(e){return e instanceof Event||(e&&e.originalEvent)instanceof Event}function mn(e){return"string"==typeof e||e instanceof String}function gn(e){return"boolean"==typeof e}function bn(e){return!!e&&("object"===(void 0===e?"undefined":kt(e))||"function"==typeof e)&&"function"==typeof e.then}function wn(e){return cn(e)||gn(e)||mn(e)||hn(e)}function _n(e){return!!("object"===("undefined"==typeof Node?"undefined":kt(Node))?e instanceof Node:e&&"object"===(void 0===e?"undefined":kt(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName)}function En(e){return!!("object"===("undefined"==typeof HTMLElement?"undefined":kt(HTMLElement))?e instanceof HTMLElement:e&&"object"===(void 0===e?"undefined":kt(e))&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)}function kn(e,t){if(!_n(e)||!_n(t))return!1;for(;t.parentNode;)if((t=t.parentNode)===e)return!0;return!1}function xn(e){return e instanceof Error}function On(e,t){if(!mn(e))throw new TypeError("Log's method only acccept string as argument, but not "+e+" in "+(void 0===e?"undefined":kt(e)));return mn(t)?"["+(e=Tn.FORCE_GLOBAL_TAG?Tn.GLOBAL_TAG:e||Tn.GLOBAL_TAG)+"] > "+t:"["+Tn.GLOBAL_TAG+"] > "+e}var Tn=function(){function e(){At(this,e)}return Lt(e,null,[{key:"error",value:function(t,n){e.ENABLE_ERROR&&(console.error||console.warn||console.log).call(console,On(t,n))}},{key:"info",value:function(t,n){e.ENABLE_INFO&&(console.info||console.log).call(console,On(t,n))}},{key:"warn",value:function(t,n){e.ENABLE_WARN&&(console.warn||console.log).call(console,On(t,n))}},{key:"debug",value:function(t,n){e.ENABLE_DEBUG&&(console.debug||console.log).call(console,On(t,n))}},{key:"verbose",value:function(t,n){e.ENABLE_VERBOSE&&console.log(On(t,n))}}]),e}();Tn.GLOBAL_TAG="chimee",Tn.FORCE_GLOBAL_TAG=!1,Tn.ENABLE_ERROR=!0,Tn.ENABLE_INFO=!0,Tn.ENABLE_WARN=!0,Tn.ENABLE_DEBUG=!0,Tn.ENABLE_VERBOSE=!0;var Sn=n(function(t,n){!function(e,r){var i="model",o="name",a="type",s="vendor",u="version",c="mobile",l="tablet",f={extend:function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},d={rgx:function(e,t){for(var n,r,i,o,a,s,u=0;u<t.length&&!a;){var c=t[u],l=t[u+1];for(n=r=0;n<c.length&&!a;)if(a=c[n++].exec(e))for(i=0;i<l.length;i++)s=a[++r],"object"==typeof(o=l[i])&&o.length>0?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,s):this[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=s?s.replace(o[1],o[2]):void 0:this[o[0]]=s?o[1].call(this,s,o[2]):void 0:4==o.length&&(this[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):void 0):this[o]=s||void 0;u+=2}},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(f.has(t[n][r],e))return"?"===n?void 0:n}else if(f.has(t[n],e))return"?"===n?void 0:n;return e}},h={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2000:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},p={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[o,u],[/(opios)[\/\s]+([\w\.]+)/i],[[o,"Opera Mini"],u],[/\s(opr)\/([\w\.]+)/i],[[o,"Opera"],u],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser)\/([\w\.-]+)/i],[o,u],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[o,"IE"],u],[/(edge)\/((\d+)?[\w\.]+)/i],[o,u],[/(yabrowser)\/([\w\.]+)/i],[[o,"Yandex"],u],[/(puffin)\/([\w\.]+)/i],[[o,"Puffin"],u],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[o,"UCBrowser"],u],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],u],[/(micromessenger)\/([\w\.]+)/i],[[o,"WeChat"],u],[/(QQ)\/([\d\.]+)/i],[o,u],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[o,u],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[u,[o,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[u,[o,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[u,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,/(.+)/,"$1 WebView"],u],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[o,/(.+(?:g|us))(.+)/,"$1 $2"],u],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[u,[o,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,u],[/(dolfin)\/([\w\.]+)/i],[[o,"Dolphin"],u],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[o,"Chrome"],u],[/(coast)\/([\w\.]+)/i],[[o,"Opera Coast"],u],[/fxios\/([\w\.-]+)/i],[u,[o,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[u,[o,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[u,o],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[o,"GSA"],u],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[u,d.str,h.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[o,u],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],u],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]+)*/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[o,u]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",f.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",f.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",f.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[i,s,[a,l]],[/applecoremedia\/[\w\.]+ \((ipad)/],[i,[s,"Apple"],[a,l]],[/(apple\s{0,1}tv)/i],[[i,"Apple TV"],[s,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[s,i,[a,l]],[/(kf[A-z]+)\sbuild\/[\w\.]+.*silk\//i],[i,[s,"Amazon"],[a,l]],[/(sd|kf)[0349hijorstuw]+\sbuild\/[\w\.]+.*silk\//i],[[i,d.str,h.device.amazon.model],[s,"Amazon"],[a,c]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[i,s,[a,c]],[/\((ip[honed|\s\w*]+);/i],[i,[s,"Apple"],[a,c]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]+)*/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[s,i,[a,c]],[/\(bb10;\s(\w+)/i],[i,[s,"BlackBerry"],[a,c]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[i,[s,"Asus"],[a,l]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[s,"Sony"],[i,"Xperia Tablet"],[a,l]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[i,[s,"Sony"],[a,c]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[s,i,[a,"console"]],[/android.+;\s(shield)\sbuild/i],[i,[s,"Nvidia"],[a,"console"]],[/(playstation\s[34portablevi]+)/i],[i,[s,"Sony"],[a,"console"]],[/(sprint\s(\w+))/i],[[s,d.str,h.device.sprint.vendor],[i,d.str,h.device.sprint.model],[a,c]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[s,i,[a,l]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w+)*/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i],[s,[i,/_/g," "],[a,c]],[/(nexus\s9)/i],[i,[s,"HTC"],[a,l]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[i,[s,"Huawei"],[a,c]],[/(microsoft);\s(lumia[\s\w]+)/i],[s,i,[a,c]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[i,[s,"Microsoft"],[a,"console"]],[/(kin\.[onetw]{3})/i],[[i,/\./g," "],[s,"Microsoft"],[a,c]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?(:?\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w+)*/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[i,[s,"Motorola"],[a,c]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[i,[s,"Motorola"],[a,l]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[s,f.trim],[i,f.trim],[a,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[i,/^/,"SmartTV"],[s,"Samsung"],[a,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[i,[s,"Sharp"],[a,"smarttv"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[s,"Samsung"],i,[a,l]],[/smart-tv.+(samsung)/i],[s,[a,"smarttv"],i],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i,/sec-((sgh\w+))/i],[[s,"Samsung"],i,[a,c]],[/sie-(\w+)*/i],[i,[s,"Siemens"],[a,c]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]+)*/i],[[s,"Nokia"],i,[a,c]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[i,[s,"Acer"],[a,l]],[/android.+([vl]k\-?\d{3})\s+build/i],[i,[s,"LG"],[a,l]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[s,"LG"],i,[a,l]],[/(lg) netcast\.tv/i],[s,i,[a,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w+)*/i,/android.+lg(\-?[\d\w]+)\s+build/i],[i,[s,"LG"],[a,c]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[i,[s,"Lenovo"],[a,l]],[/linux;.+((jolla));/i],[s,i,[a,c]],[/((pebble))app\/[\d\.]+\s/i],[s,i,[a,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[s,i,[a,c]],[/crkey/i],[[i,"Chromecast"],[s,"Google"]],[/android.+;\s(glass)\s\d/i],[i,[s,"Google"],[a,"wearable"]],[/android.+;\s(pixel c)\s/i],[i,[s,"Google"],[a,l]],[/android.+;\s(pixel xl|pixel)\s/i],[i,[s,"Google"],[a,c]],[/android.+(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d\w)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+)?)\s+build/i],[[i,/_/g," "],[s,"Xiaomi"],[a,c]],[/android.+(mi[\s\-_]*(?:pad)?(?:[\s_]*[\w\s]+)?)\s+build/i],[[i,/_/g," "],[s,"Xiaomi"],[a,l]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[i,[s,"Meizu"],[a,l]],[/android.+a000(1)\s+build/i],[i,[s,"OnePlus"],[a,c]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[i,[s,"RCA"],[a,l]],[/android.+[;\/]\s*(Venue[\d\s]*)\s+build/i],[i,[s,"Dell"],[a,l]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[i,[s,"Verizon"],[a,l]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[s,"Barnes & Noble"],i,[a,l]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[i,[s,"NuVision"],[a,l]],[/android.+[;\/]\s*(zte)?.+(k\d{2})\s+build/i],[[s,"ZTE"],i,[a,l]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[i,[s,"Swiss"],[a,c]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[i,[s,"Swiss"],[a,l]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[i,[s,"Zeki"],[a,l]],[/(android).+[;\/]\s+([YR]\d{2}x?.*)\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(.+)\s+build/i],[[s,"Dragon Touch"],i,[a,l]],[/android.+[;\/]\s*(NS-?.+)\s+build/i],[i,[s,"Insignia"],[a,l]],[/android.+[;\/]\s*((NX|Next)-?.+)\s+build/i],[i,[s,"NextBook"],[a,l]],[/android.+[;\/]\s*(Xtreme\_?)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[s,"Voice"],i,[a,c]],[/android.+[;\/]\s*(LVTEL\-?)?(V1[12])\s+build/i],[[s,"LvTel"],i,[a,c]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[i,[s,"Envizen"],[a,l]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(.*\b)\s+build/i],[s,i,[a,l]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[i,[s,"MachSpeed"],[a,l]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[s,i,[a,l]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[i,[s,"Rotor"],[a,l]],[/android.+(KS(.+))\s+build/i],[i,[s,"Amazon"],[a,l]],[/android.+(Gigaset)[\s\-]+(Q.+)\s+build/i],[s,i,[a,l]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[a,f.lowerize],s,i],[/(android.+)[;\/].+build/i],[i,[s,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[u,[o,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[o,u],[/rv\:([\w\.]+).*(gecko)/i],[u,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,u],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s]+\w)*/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[o,[u,d.str,h.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[u,d.str,h.os.windows.version]],[/\((bb)(10);/i],[[o,"BlackBerry"],u],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]+)*/i,/linux;.+(sailfish);/i],[o,u],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[[o,"Symbian"],u],[/\((series40);/i],[o],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"],u],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],[o,u],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],u],[/(sunos)\s?([\w\.]+\d)*/i],[[o,"Solaris"],u],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],[o,u],[/(haiku)\s(\w+)/i],[o,u],[/cfnetwork\/.+darwin/i,/ip[honead]+(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[u,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,/(macintosh|mac(?=_powerpc)\s)/i],[[o,"Mac OS"],[u,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]+)*/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]+)*/i],[o,u]]},v=function(t,n){if("object"==typeof t&&(n=t,t=void 0),!(this instanceof v))return new v(t,n).getResult();var r=t||(e&&e.navigator&&e.navigator.userAgent?e.navigator.userAgent:""),i=n?f.extend(p,n):p;return this.getBrowser=function(){var e={name:void 0,version:void 0};return d.rgx.call(e,r,i.browser),e.major=f.major(e.version),e},this.getCPU=function(){var e={architecture:void 0};return d.rgx.call(e,r,i.cpu),e},this.getDevice=function(){var e={vendor:void 0,model:void 0,type:void 0};return d.rgx.call(e,r,i.device),e},this.getEngine=function(){var e={name:void 0,version:void 0};return d.rgx.call(e,r,i.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return d.rgx.call(e,r,i.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=e,this},this};v.VERSION="0.7.17",v.BROWSER={NAME:o,MAJOR:"major",VERSION:u},v.CPU={ARCHITECTURE:"architecture"},v.DEVICE={MODEL:i,VENDOR:s,TYPE:a,CONSOLE:"console",MOBILE:c,SMARTTV:"smarttv",TABLET:l,WEARABLE:"wearable",EMBEDDED:"embedded"},v.ENGINE={NAME:o,VERSION:u},v.OS={NAME:o,VERSION:u},t.exports&&(n=t.exports=v),n.UAParser=v;var y=e&&(e.jQuery||e.Zepto);if(void 0!==y){var m=new v;y.ua=m.getResult(),y.ua.get=function(){return m.getUA()},y.ua.set=function(e){m.setUA(e);var t=m.getResult();for(var n in t)y.ua[n]=t[n]}}}("object"==typeof window?window:e)}),An=(Sn.UAParser,function(e,t,n,r){try{return r?t(d(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&d(i.call(e)),t}}),Pn=ie("iterator"),jn=Array.prototype,Cn=function(e){return void 0!==e&&(j.Array===e||jn[Pn]===e)},Mn=function(e,t,n){t in e?_.f(e,t,E(0,n)):e[t]=n},$n=ie("toStringTag"),Ln="Arguments"==M(function(){return arguments}()),Fn=function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),$n))?n:Ln?M(t):"Object"==(r=M(t))&&"function"==typeof t.callee?"Arguments":r},Nn=ie("iterator"),zn=u.getIteratorMethod=function(e){if(void 0!=e)return e[Nn]||e["@@iterator"]||j[Fn(e)]},Rn=ie("iterator"),In=!1;try{[7][Rn]().return=function(){In=!0}}catch(e){}var Bn=function(e,t){if(!t&&!In)return!1;var n=!1;try{var r=[7],i=r[Rn]();i.next=function(){return{done:n=!0}},r[Rn]=function(){return i},e(r)}catch(e){}return n};T(T.S+T.F*!Bn(function(e){}),"Array",{from:function(e){var t,n,r,i,o=fe(e),a="function"==typeof this?this:Array,s=arguments.length,u=s>1?arguments[1]:void 0,c=void 0!==u,f=0,d=zn(o);if(c&&(u=l(u,s>2?arguments[2]:void 0,2)),void 0==d||a==Array&&Cn(d))for(n=new a(t=N(o.length));t>f;f++)Mn(n,f,c?u(o[f],f):o[f]);else for(i=d.call(o),n=new a;!(r=i.next()).done;f++)Mn(n,f,c?An(i,u,[r.value,f],!0):r.value);return n.length=f,n}});var Vn=u.Array.from,Dn=n(function(e){e.exports={default:Vn,__esModule:!0}}),Kn=t(Dn),Gn=t(n(function(e,t){t.__esModule=!0;var n,r=(n=Dn)&&n.__esModule?n:{default:n};t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,r.default)(e)}}));var Wn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e,t,n){e[t]=n};return function n(r,i,o){if(ln(r)||dn(r)){for(var a in i=wn(i)?dn(r)?{}:[]:i,r)t(i,a,n(r[a],i[a],a));return i}return e(r,i,o)}}(function(e){return e});function Hn(e){if(wn(e))throw new TypeError("deepClone only accept non primitive type");return Wn(e)}function Un(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length<2)throw new Error("deepAssign accept two and more argument");for(var r=t.length-1;r>-1;r--)if(wn(t[r]))throw new TypeError("deepAssign only accept non primitive type");var i=t.shift();return t.forEach(function(e){return Wn(e,i)}),i}function qn(e,t){return e.replace(/(^|[^a-zA-Z]+)([a-zA-Z])/g,function(e,n,r,i){return t||0!==i?r.toUpperCase():r.toLowerCase()})}function Yn(e,t){return e.bind?e.bind(t):e.apply?function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.apply(t,r)}:function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.call.apply(e,[t].concat(Gn(r)))}}var Xn,Jn,Zn,Qn=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e},er=n(function(e){var t={},n={},r=e.exports=function(e,r,i,o,a){var s,u,c,f,h=a?function(){return e}:zn(e),p=l(i,o,r?2:1),v=0;if("function"!=typeof h)throw TypeError(e+" is not iterable!");if(Cn(h)){for(s=N(e.length);s>v;v++)if((f=r?p(d(u=e[v])[0],u[1]):p(e[v]))===t||f===n)return f}else for(c=h.call(e);!(u=c.next()).done;)if((f=An(c,p,u.value,r))===t||f===n)return f};r.BREAK=t,r.RETURN=n}),tr=ie("species"),nr=function(e,t){var n,r=d(e).constructor;return void 0===r||void 0==(n=d(r)[tr])?t:c(n)},rr=s.process,ir=s.setImmediate,or=s.clearImmediate,ar=s.MessageChannel,sr=s.Dispatch,ur=0,cr={},lr=function(){var e=+this;if(cr.hasOwnProperty(e)){var t=cr[e];delete cr[e],t()}},fr=function(e){lr.call(e.data)};ir&&or||(ir=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return cr[++ur]=function(){!function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}e.apply(n,t)}("function"==typeof e?e:Function(e),t)},Xn(ur),ur},or=function(e){delete cr[e]},"process"==M(rr)?Xn=function(e){rr.nextTick(l(lr,e,1))}:sr&&sr.now?Xn=function(e){sr.now(l(lr,e,1))}:ar?(Zn=(Jn=new ar).port2,Jn.port1.onmessage=fr,Xn=l(Zn.postMessage,Zn,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(Xn=function(e){s.postMessage(e+"","*")},s.addEventListener("message",fr,!1)):Xn="onreadystatechange"in m("script")?function(e){Q.appendChild(m("script")).onreadystatechange=function(){Q.removeChild(this),lr.call(e)}}:function(e){setTimeout(l(lr,e,1),0)});var dr={set:ir,clear:or},hr=dr.set,pr=s.MutationObserver||s.WebKitMutationObserver,vr=s.process,yr=s.Promise,mr="process"==M(vr);var gr,br,wr,_r,Er={f:function(e){return new function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=c(t),this.reject=c(n)}(e)}},kr=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}},xr=function(e,t){if(d(e),f(t)&&t.constructor===e)return t;var n=Er.f(e);return(0,n.resolve)(t),n.promise},Or=function(e,t,n){for(var r in t)n&&e[r]?e[r]=t[r]:k(e,r,t[r]);return e},Tr=ie("species"),Sr=function(e){var t="function"==typeof u[e]?u[e]:s[e];p&&t&&!t[Tr]&&_.f(t,Tr,{configurable:!0,get:function(){return this}})},Ar=dr.set,Pr=function(){var e,t,n,r=function(){var r,i;for(mr&&(r=vr.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(mr)n=function(){vr.nextTick(r)};else if(!pr||s.navigator&&s.navigator.standalone)if(yr&&yr.resolve){var i=yr.resolve();n=function(){i.then(r)}}else n=function(){hr.call(s,r)};else{var o=!0,a=document.createTextNode("");new pr(r).observe(a,{characterData:!0}),n=function(){a.data=o=!o}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}(),jr=s.TypeError,Cr=s.process,Mr=s.Promise,$r="process"==Fn(Cr),Lr=function(){},Fr=br=Er.f,Nr=!!function(){try{var e=Mr.resolve(1),t=(e.constructor={})[ie("species")]=function(e){e(Lr,Lr)};return($r||"function"==typeof PromiseRejectionEvent)&&e.then(Lr)instanceof t}catch(e){}}(),zr=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},Rr=function(e,t){if(!e._n){e._n=!0;var n=e._c;Pr(function(){for(var r=e._v,i=1==e._s,o=0,a=function(t){var n,o,a=i?t.ok:t.fail,s=t.resolve,u=t.reject,c=t.domain;try{a?(i||(2==e._h&&Vr(e),e._h=1),!0===a?n=r:(c&&c.enter(),n=a(r),c&&c.exit()),n===t.promise?u(jr("Promise-chain cycle")):(o=zr(n))?o.call(n,s,u):s(n)):u(r)}catch(e){u(e)}};n.length>o;)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&Ir(e)})}},Ir=function(e){Ar.call(s,function(){var t,n,r,i=e._v,o=Br(e);if(o&&(t=kr(function(){$r?Cr.emit("unhandledRejection",i,e):(n=s.onunhandledrejection)?n({promise:e,reason:i}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",i)}),e._h=$r||Br(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},Br=function(e){return 1!==e._h&&0===(e._a||e._c).length},Vr=function(e){Ar.call(s,function(){var t;$r?Cr.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})})},Dr=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),Rr(t,!0))},Kr=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw jr("Promise can't be resolved itself");(t=zr(e))?Pr(function(){var r={_w:n,_d:!1};try{t.call(e,l(Kr,r,1),l(Dr,r,1))}catch(e){Dr.call(r,e)}}):(n._v=e,n._s=1,Rr(n,!1))}catch(e){Dr.call({_w:n,_d:!1},e)}}};Nr||(Mr=function(e){Qn(this,Mr,"Promise","_h"),c(e),gr.call(this);try{e(l(Kr,this,1),l(Dr,this,1))}catch(e){Dr.call(this,e)}},(gr=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=Or(Mr.prototype,{then:function(e,t){var n=Fr(nr(this,Mr));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=$r?Cr.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&Rr(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),wr=function(){var e=new gr;this.promise=e,this.resolve=l(Kr,e,1),this.reject=l(Dr,e,1)},Er.f=Fr=function(e){return e===Mr||e===_r?new wr(e):br(e)}),T(T.G+T.W+T.F*!Nr,{Promise:Mr}),se(Mr,"Promise"),Sr("Promise"),_r=u.Promise,T(T.S+T.F*!Nr,"Promise",{reject:function(e){var t=Fr(this);return(0,t.reject)(e),t.promise}}),T(T.S+!0*T.F,"Promise",{resolve:function(e){return xr(this===_r?Mr:this,e)}}),T(T.S+T.F*!(Nr&&Bn(function(e){Mr.all(e).catch(Lr)})),"Promise",{all:function(e){var t=this,n=Fr(t),r=n.resolve,i=n.reject,o=kr(function(){var n=[],o=0,a=1;er(e,!1,function(e){var s=o++,u=!1;n.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,n[s]=e,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=Fr(t),r=n.reject,i=kr(function(){er(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}}),T(T.P+T.R,"Promise",{finally:function(e){var t=nr(this,u.Promise||s.Promise),n="function"==typeof e;return this.then(n?function(n){return xr(t,e()).then(function(){return n})}:e,n?function(n){return xr(t,e()).then(function(){throw n})}:e)}}),T(T.S,"Promise",{try:function(e){var t=Er.f(this),n=kr(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}});var Gr=u.Promise,Wr=t(n(function(e){e.exports={default:Gr,__esModule:!0}})),Hr="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window);function Ur(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e,t){return+e-+t};return Wt(e).sort(t).reduce(function(t,n){return t.concat(e[n])},[])}function qr(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new Wr(function(t,r){!function i(o){if(!(o>=e.length)){var a=fn(e[o])?e[o].apply(e,Gn(n)):e[o];return!1===a?r("stop"):Wr.resolve(a).then(function(){return i(o+1)}).catch(function(e){return r(e||"stop")})}t()}(0)})}function Yr(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function t(r){return r>=e.length||!1!==(fn(e[r])?e[r].apply(e,Gn(n)):e[r])&&t(++r)}(0)}Hr&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),Hr&&(window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame);function Xr(e,t){var n=t,r=(e=""+(e||"")).length;return(((t=(t||r)-r)>0?e.repeat?"0".repeat(t):new Array(t+1).join("0"):"")+e).slice(0,n)}function Jr(e){var t=Math.floor(e/3600);e=Math.floor(e%3600);var n=Xr(Math.floor(e/60),2),r=Xr(e=Math.floor(e%60),2);return t>=1?t+":"+n+":"+r:n+":"+r}var Zr=Object.assign,Qr=!Zr||h(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=Zr({},e)[n]||Object.keys(Zr({},t)).join("")!=r})?function(e,t){for(var n=fe(e),r=arguments.length,i=1,o=$e.f,a=Le.f;r>i;)for(var s,u=$(arguments[i++]),c=o?X(u).concat(o(u)):X(u),l=c.length,f=0;l>f;)a.call(u,s=c[f++])&&(n[s]=u[s]);return n}:Zr;T(T.S+T.F,"Object",{assign:Qr});var ei=u.Object.assign,ti=t(n(function(e){e.exports={default:ei,__esModule:!0}})),ni=Dt(null);function ri(e,t){var n=e.__evt_id;n||(Object.defineProperty(e,"__evt_id",{writable:!0,enumerable:!1,configurable:!0}),n=e.__evt_id=++ni.count);var r=n+"_"+t,i=ni[r];return i||(i=ni[r]=[]),i}function ii(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments[4];fn(r)&&!i&&(i=r,r=void 0);var o=[n,void 0,r];r&&!i&&(i=function(){oi(e,t,n,r);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];n.apply(e,o)}),i&&(o[1]=i),ri(e,t).push(o)}function oi(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=ri(e,t);if(n||r){var o=-1,a=void 0;return i.find(function(e,t){if((!n||e[0]===n)&&(!r||e[2]))return o=t,a=e[1],!0}),-1!==o&&i.splice(o,1),a}i.length=0}ni.count=0;var ai=function(){function e(t,n){var r=this;if(At(this,e),Object.defineProperty(this,"__target",{writable:!0,enumerable:!1,configurable:!0}),this.__target=this,t){if("object"!==(void 0===t?"undefined":kt(t)))throw new Error("CusEvent target are not object");this.__target=t,n&&["on","once","off","emit"].forEach(function(e){t[e]=r[e]})}}return Lt(e,[{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return ii(this.__target,e,t,n),this}},{key:"once",value:function(e,t){return this.on(e,t,!0)}},{key:"off",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return oi(this.__target,e,t,n),this}},{key:"emit",value:function(e,t){return function(e,t,n){var r=Dt(null);r.type=t,r.target=e,n&&ti(r,dn(n)?n:{data:n}),ri(e,t).forEach(function(t){(t[1]||t[0]).apply(e,[r])})}(this.__target,e,{data:t}),this}}]),e}(),si=Hr?document.createElement("div"):{},ui="innerText";"textContent"in si&&(ui="textContent");var ci=Array.prototype;function li(e,t){return e.getAttribute(t)}function fi(e,t,n){void 0===n?e.removeAttribute(t):e.setAttribute(t,n)}function di(e,t){if(t&&(t=t.trim())){var n=t.split(/\s+/);if(e.classList)n.forEach(function(t){return e.classList.add(t)});else{var r=" "+(e.className||"")+" ";n.forEach(function(e){-1===r.indexOf(" "+e+" ")&&(r+=" "+e)}),e.className=r.trim()}}}function hi(e,t){if(t&&(t=t.trim())){var n=t.split(/\s+/);if(e.classList)n.forEach(function(t){return e.classList.remove(t)});else{var r=" "+e.className+" ";n.forEach(function(e){for(var t=" "+e+" ";-1!==r.indexOf(t);)r=r.replace(t," ")}),e.className=r.trim()}}}var pi=!1;try{var vi=Object.defineProperty({},"passive",{get:function(){pi=!0}});Hr&&window.addEventListener("test",null,vi)}catch(e){console.error(e)}function yi(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(void 0!==i&&!gn(i)&&pi&&(i={passive:!0}),r){var o=oi(e,t+"_once",n);o&&(n=o)}e.removeEventListener(t,n,i)}function mi(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(void 0!==i&&!gn(i)&&pi&&(i={passive:!0}),r){var o=n;ii(e,t+"_once",o,n=function(){for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];o.apply(this,s),yi(e,t,n,r,i)})}e.addEventListener(t,n,i)}function gi(e,t){return(e.currentStyle||document.defaultView.getComputedStyle(e,null))[t]||e.style[t]}function bi(e,t,n){if(dn(t))for(var r in t)bi(e,r,t[r]);else e.style[t]=n}function wi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n=arguments[2],r=t.querySelectorAll(e);return n?Kn(r):r}function _i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments[2],r=arguments[3],i=[];for(n&&i.push(e);e&&e.parentNode!==t;)(e=e.parentNode)&&i.push(e);return r&&i.push(t),i}var Ei=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;At(this,e);this.selector=t;var r=void 0;t&&t.constructor===NodeList?r=Kn(t):ln(t)?r=t:mn(t)?0===t.indexOf("<")?(si.innerHTML=t,r=wi("*",si,!0)):r=wi(t,n,!0):r=[t],ti(this,r),this.length=r.length}return Lt(e,[{key:"each",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return ci.forEach.apply(this,t),this}},{key:"push",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return ci.push.apply(this,t),this}},{key:"splice",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return ki(ci.splice.apply(this,t))}},{key:"find",value:function(e){var t=[];this.each(function(n){t=t.concat(wi(e,n,!0))});var n=ki(t);return n.parent=this,n.selector=e,n}},{key:"append",value:function(e){var t=ki(e),n=this[0];return t.each(function(e){return n.appendChild(e)}),this}},{key:"appendTo",value:function(e){return ki(e).append(this),this}},{key:"text",value:function(e){return 0===arguments.length?this[0][ui]:this.each(function(t){t[ui]=e})}},{key:"html",value:function(e){return 0===arguments.length?this[0].innerHTML:this.each(function(t){t.innerHTML=e})}},{key:"attr",value:function(e,t){return 1===arguments.length?li(this[0],e):this.each(function(n){return fi(n,e,t)})}},{key:"data",value:function(e,t){return 0===arguments.length?this[0].dataset||{}:1===arguments.length?(this[0].dataset||{})[e]:this.each(function(n){(n.dataset||(n.dataset={}))[e]=t})}},{key:"css",value:function(e,t){return 1!==arguments.length||dn(e)?this.each(function(n){return bi(n,e,t)}):gi(this[0],e)}},{key:"addClass",value:function(e){return this.each(function(t){return di(t,e)})}},{key:"removeClass",value:function(e){return this.each(function(t){return hi(t,e)})}},{key:"hasClass",value:function(e){return t=this[0],new RegExp("(?:^|\\s)"+e+"(?=\\s|$)").test(t.className);var t}},{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.each(function(i){return mi(i,e,t,n,r)})}},{key:"off",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.each(function(i){return yi(i,e,t,n,r)})}},{key:"delegate",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.each(function(i){return function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];void 0!==i&&!gn(i)&&pi&&(i={passive:!0});var o=function(n){var i=_i(n.target||n.srcElement,e,!0),o=wi(t,e,!0),a=void 0;o.find?a=o.find(function(e){return i.find(function(t){return e===t})}):o.forEach(function(e){return!a&&i.forEach(function(t){a||e!==t||(a=t)})}),a&&r.apply(a,arguments)};ii(e,n+"_delegate_"+t,r,o),e.addEventListener(n,o,i)}(i,e,t,n,r)})}},{key:"undelegate",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.each(function(i){return function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];void 0!==i&&!gn(i)&&pi&&(i={passive:!0});var o=oi(e,n+"_delegate_"+t,r);o&&e.removeEventListener(n,o,i)}(i,e,t,n,r)})}},{key:"remove",value:function(){return this.each(function(e){return function(e){e.parentNode.removeChild(e)}(e)})}}]),e}();function ki(e,t){return e.constructor===Ei?e:new Ei(e,t)}T(T.S,"Number",{isNaN:function(e){return e!=e}});var xi=u.Number.isNaN,Oi=t(n(function(e){e.exports={default:xi,__esModule:!0}})),Ti=s.Reflect,Si=Ti&&Ti.ownKeys||function(e){var t=ze.f(d(e)),n=$e.f;return n?t.concat(n(e)):t};T(T.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=L(e),i=Ke.f,o=Si(r),a={},s=0;o.length>s;)void 0!==(n=i(r,t=o[s++]))&&Mn(a,t,n);return a}});var Ai=u.Object.getOwnPropertyDescriptors,Pi=t(n(function(e){e.exports={default:Ai,__esModule:!0}})),ji=u.Object.getOwnPropertySymbols,Ci=t(n(function(e){e.exports={default:ji,__esModule:!0}}));xt("getOwnPropertyNames",function(){return Ve.f});var Mi=u.Object,$i=function(e){return Mi.getOwnPropertyNames(e)},Li=t(n(function(e){e.exports={default:$i,__esModule:!0}})),Fi=Ke.f;xt("getOwnPropertyDescriptor",function(){return function(e,t){return Fi(L(e),t)}});var Ni=u.Object,zi=function(e,t){return Ni.getOwnPropertyDescriptor(e,t)},Ri=n(function(e){e.exports={default:zi,__esModule:!0}}),Ii=t(Ri);function Bi(e,t){return e.bind?e.bind(t):e.apply?function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.apply(t,r)}:function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.call.apply(e,[t].concat(Gn(r)))}}function Vi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.throwError,i=void 0!==r&&r,o=n.backup;if(mn(t)&&(t=t.split(".")),!ln(t))throw new TypeError("keys of getDeepProperty must be string or Array<string>");for(var a=[],s=e,u=0,c=t.length;u<c;u++){var l=t[u];if(cn(s)){if(i)throw new Error("obj"+(a.length>0?"."+a.join("."):" itself")+" is "+s);return o}s=s[l],a.push(l)}return s}var Di=ie("iterator"),Ki=u.isIterable=function(e){var t=Object(e);return void 0!==t[Di]||"@@iterator"in t||j.hasOwnProperty(Fn(t))},Gi=n(function(e){e.exports={default:Ki,__esModule:!0}});t(Gi);var Wi=u.getIterator=function(e){var t=zn(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return d(t.call(e))},Hi=n(function(e){e.exports={default:Wi,__esModule:!0}}),Ui=t(Hi),qi=t(n(function(e,t){t.__esModule=!0;var n=i(Gi),r=i(Hi);function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return function(e,t){if(Array.isArray(e))return e;if((0,n.default)(Object(e)))return function(e,t){var n=[],i=!0,o=!1,a=void 0;try{for(var s,u=(0,r.default)(e);!(i=(s=u.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{!i&&u.return&&u.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()})),Yi=ie("species"),Xi=function(e,t){return new(function(e){var t;return Fe(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!Fe(t.prototype)||(t=void 0),f(t)&&null===(t=t[Yi])&&(t=void 0)),void 0===t?Array:t}(e))(t)},Ji=function(e,t){var n=1==e,r=2==e,i=3==e,o=4==e,a=6==e,s=5==e||a,u=t||Xi;return function(t,c,f){for(var d,h,p=fe(t),v=$(p),y=l(c,f,3),m=N(v.length),g=0,b=n?u(t,m):r?u(t,0):void 0;m>g;g++)if((s||g in v)&&(h=y(d=v[g],g,p),e))if(n)b[g]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return g;case 2:b.push(d)}else if(o)return!1;return a?-1:i||o?o:b}},Zi=function(e,t){if(!f(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e},Qi=je.getWeak,eo=Ji(5),to=Ji(6),no=0,ro=function(e){return e._l||(e._l=new io)},io=function(){this.a=[]},oo=function(e,t){return eo(e.a,function(e){return e[0]===t})};io.prototype={get:function(e){var t=oo(this,e);if(t)return t[1]},has:function(e){return!!oo(this,e)},set:function(e,t){var n=oo(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=to(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}};var ao={getConstructor:function(e,t,n,r){var i=e(function(e,o){Qn(e,i,t,"_i"),e._t=t,e._i=no++,e._l=void 0,void 0!=o&&er(o,n,e[r],e)});return Or(i.prototype,{delete:function(e){if(!f(e))return!1;var n=Qi(e);return!0===n?ro(Zi(this,t)).delete(e):n&&P(n,this._i)&&delete n[this._i]},has:function(e){if(!f(e))return!1;var n=Qi(e);return!0===n?ro(Zi(this,t)).has(e):n&&P(n,this._i)}}),i},def:function(e,t,n){var r=Qi(d(t),!0);return!0===r?ro(e).set(t,n):r[e._i]=n,e},ufstore:ro},so=_.f,uo=Ji(0),co=function(e,t,n,r,i,o){var a=s[e],u=a,c=i?"set":"add",l=u&&u.prototype,d={};return p&&"function"==typeof u&&(o||l.forEach&&!h(function(){(new u).entries().next()}))?(u=t(function(t,n){Qn(t,u,e,"_c"),t._c=new a,void 0!=n&&er(n,i,t[c],t)}),uo("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(e){var t="add"==e||"set"==e;e in l&&(!o||"clear"!=e)&&k(u.prototype,e,function(n,r){if(Qn(this,u,e),!t&&o&&!f(n))return"get"==e&&void 0;var i=this._c[e](0===n?0:n,r);return t?this:i})}),o||so(u.prototype,"size",{get:function(){return this._c.size}})):(u=r.getConstructor(t,e,i,c),Or(u.prototype,n),je.NEED=!0),se(u,e),d[e]=u,T(T.G+T.W+T.F,d),o||r.setStrong(u,e,i),u},lo=(n(function(e){var t,n=Ji(0),r=je.getWeak,i=Object.isExtensible,o=ao.ufstore,a={},s=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},u={get:function(e){if(f(e)){var t=r(e);return!0===t?o(Zi(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return ao.def(Zi(this,"WeakMap"),e,t)}},c=e.exports=co("WeakMap",s,u,ao,!0,!0);h(function(){return 7!=(new c).set((Object.freeze||Object)(a),7).get(a)})&&(t=ao.getConstructor(s,"WeakMap"),Qr(t.prototype,u),je.NEED=!0,n(["delete","has","get","set"],function(e){var n=c.prototype,r=n[e];S(n,e,function(n,o){if(f(n)&&!i(n)){this._f||(this._f=new t);var a=this._f[e](n,o);return"set"==e?this:a}return r.call(this,n,o)})}))}),function(e){T(T.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})});lo("WeakMap");var fo=function(e){T(T.S,e,{from:function(e){var t,n,r,i,o=arguments[1];return c(this),(t=void 0!==o)&&c(o),void 0==e?new this:(n=[],t?(r=0,i=l(o,arguments[2],2),er(e,!1,function(e){n.push(i(e,r++))})):er(e,!1,n.push,n),new this(n))}})};fo("WeakMap");var ho=u.WeakMap,po=t(n(function(e){e.exports={default:ho,__esModule:!0}})),vo=t(n(function(e,t){t.__esModule=!0;var n,r=(n=Mt)&&n.__esModule?n:{default:n};t.default=function(e,t,n){return t in e?(0,r.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}})),yo=je.onFreeze;xt("preventExtensions",function(e){return function(t){return e&&f(t)?e(yo(t)):t}});var mo=u.Object.preventExtensions;t(n(function(e){e.exports={default:mo,__esModule:!0}}));var go=Ii;function bo(e){if(!e||!e.hasOwnProperty)return!1;for(var t=["value","initializer","get","set"],n=0,r=t.length;n<r;n++)if(e.hasOwnProperty(t[n]))return!0;return!1}function wo(e){return!!e&&(fn(e.get)||fn(e.set))&&gn(e.configurable)&&gn(e.enumerable)&&void 0===e.writable}function _o(e){return!!e&&e.hasOwnProperty("value")&&gn(e.configurable)&&gn(e.enumerable)&&gn(e.writable)}function Eo(e){return!!e&&fn(e.initializer)&&gn(e.configurable)&&gn(e.enumerable)&&gn(e.writable)}function ko(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"You must pass me an array of function";if(!ln(e)||e.length<1)throw new TypeError(t);if(1===e.length){if(!fn(e[0]))throw new TypeError(t);return e[0]}return e.reduce(function(e,n){if(!fn(n)||!fn(e))throw new TypeError(t);return function(t){return Bi(n,this)(Bi(e,this)(t))}})}var xo=function(){var e=Li,t=Ci;return fn(t)?function(n){return Kn(e(n).concat(t(n)))}:e}();var Oo=fn(Pi)?Pi:function(e){return xo(e).reduce(function(t,n){return t[n]=go(e,n),t},{})};function To(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)throw new TypeError("You must pass in decorators in compressMultipleDecorators");return t.forEach(function(e){if(!fn(e))throw new TypeError('Decorators must be a function, but not "'+e+'" in '+(void 0===e?"undefined":kt(e)))}),1===t.length?t[0]:function(e,n,r){return t.reduce(function(t,r){return r(e,n,t)},r)}}function So(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.get,n=e.set,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.preGet,o=void 0!==i&&i,a=r.preSet,s=void 0===a||a;if(!(fn(t)||fn(n)||ln(t)&&t.length>0||ln(n)&&n.length>0))throw new TypeError("@accessor need a getter or setter. If you don't need to add setter/getter. You should remove @accessor");var u="@accessor only accept function or array of function as getter/setter";return t=ln(t)?ko(t,u):t,n=ln(n)?ko(n,u):n,function(e,r,i){var a=i||{},u=a.configurable,c=void 0===u||u,l=a.enumerable,f=void 0===l||l,d=fn(t),h=fn(n),p=function(e){return d?Bi(t,this)(e):e},v=function(e){return h?Bi(n,this)(e):e};if(wo(i)){var y=i.get,m=i.set,g=fn(y),b=fn(m);return{get:g||d?function(){var e=this,t=Bi(p,this),n=function(){return g?Bi(y,e)():void 0};return(o?[t,n]:[n,t]).reduce(function(e,t){return t(e)},void 0)}:void 0,set:b||h?function(e){var t=this,n=Bi(v,this),r=function(e){return b?Bi(m,t)(e):e};return(s?[n,r]:[r,n]).reduce(function(e,t){return t(e)},e)}:void 0,configurable:c,enumerable:f}}if(Eo(i)){var w=i.initializer,_=void 0,E=!1;return{get:function(){var e=Bi(p,this);return E?e(_):(_=Bi(w,this)(),E=!0,e(_))},set:function(e){var t=Bi(v,this);return _=s?t(e):e,E=!0,s||t(_),_},configurable:c,enumerable:f}}var k=(i||{}).value;return{get:function(){return Bi(p,this)(k)},set:function(e){var t=Bi(v,this);return k=s?t(e):e,s||t(k),k},configurable:c,enumerable:f}}}function Ao(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)throw new Error("@before accept at least one parameter. If you don't need to preprocess before your function, do not add @before decorators");if(t.length>2&&bo(t[2]))throw new Error("You may use @before straightly, @before return decorators, you should call it before you set it as decorator.");for(var r=t.length-1;r>-1;r--)if(!fn(t[r]))throw new TypeError("@before only accept function parameter");return function(e,n,r){var i=r||{},o=i.value,a=i.configurable,s=i.enumerable,u=i.writable;if(!fn(o))throw new TypeError('@before can only be used on function, please check the property "'+n+'" is a method or not.');return{value:function(){for(var e=this,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=t.reduce(function(t,n){var r=Bi(n,e).apply(void 0,Gn(t));return void 0===r?t:ln(r)?r:[r]},r);return Bi(o,this).apply(void 0,Gn(a))},configurable:a,enumerable:s,writable:u}}}function Po(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)throw new Error("@initialize accept at least one parameter. If you don't need to initialize your value, do not add @initialize.");if(t.length>2&&bo(t[2]))throw new Error("You may use @initialize straightly, @initialize return decorators, you need to call it");var r=ko(t,"@initialize only accept function parameter");return function(e,t,n){if(void 0===n)return{value:Bi(r,e)(),configurable:!0,writable:!0,enumerable:!0};if(wo(n)){var i=!1;return So({get:function(e){return i?e:Bi(r,this)(e)},set:n.set?function(e){return i=!0,e}:void 0})(e,t,n)}if(Eo(n)){var o=n.initializer;return{initializer:function(){return Bi(r,this)(Bi(o,this)())},configurable:n.configurable,writable:n.writable,enumerable:n.enumerable}}return{value:Bi(r,this)(n.value),writable:n.writable,configurable:n.configurable,enumerable:n.enumerable}}}var jo=Ii,Co=$t;function Mo(e,t,n,r,i,o){var a=n.configurable,s=n.enumerable,u=o.force,c=o.omit,l=jo(r,i);if(void 0!==l){if(c)return;if(!u)throw new Error('"'+t+'" is an existing property, if you want to override it, please set "force" true in @alias option.');if(!l.configurable)throw new Error('property "'+t+'" is unconfigurable.')}Co(r,i,{get:function(){return e[t]},set:function(n){return e[t]=n,t},configurable:a,enumerable:s})}function $o(e,t,n){if(2===arguments.length?mn(e)&&(n=t,t=e,e=void 0):1===arguments.length&&(t=e,e=void 0),!mn(t))throw new TypeError("@alias need a string as a key to find the porperty to set alias on");var r="If you want to use @alias to set alias on other instance, you must pass in a legal instance";if(void 0!==e&&wn(e))throw new TypeError(r);var i=dn(n)?n:{force:!1,omit:!1},o=i.force,a=i.omit;return function(n,i,s){function u(e,t,n){var i=wn(e)?t:e,o=n.split("."),a=o.slice(-1),s=qi(a,1)[0];if(wn(i=Vi(i,o.slice(0,-1),{throwError:!0})))throw new TypeError(r);return{target:i,name:s}}if(Eo(s=s||{value:void 0,configurable:!0,writable:!0,enumerable:!0}))return Po(function(n){var r=u(e,this,t),c=r.target,l=r.name;return Mo(this,i,s,c,l,{force:o,omit:a}),n})(n,i,s);if(wo(s)){var c=void 0,l=function(n){if(c)return n;var r=u(e,this,t),l=r.target,f=r.name;return Mo(this,i,s,l,f,{force:o,omit:a}),c=!0,n};return So({get:l,set:l})(n,i,s)}var f=u(e,n,t),d=f.target,h=f.name;return Mo(n,i,s,d,h,{force:o,omit:a}),s}}var Lo=$t;function Fo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.requirement,r=t.customArgs,i=void 0!==r&&r;return function(){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=a.exclude,u=void 0===s?[]:s,c=a.include,l=void 0===c?[]:c,f=a.construct,d=void 0!==f&&f,h=a.self,p=void 0!==h&&h;if(!ln(u))throw new TypeError("options.exclude must be an array");if(!ln(l))throw new TypeError("options.include must be an array");return function(t){var o=fn(t);if(!p&&!o)throw new TypeError("@"+e.name+"Class can only be used on class");if(p&&wn(t))throw new TypeError("@"+e.name+"Class must be used on non-primitive type value in 'self' mode");var a=p?t:t.prototype;if(cn(a))throw new Error("The prototype of the "+t.name+" is empty, please check it");var s=Oo(a);xo(a).concat(l).forEach(function(t){var c=s[t];"constructor"===t&&!d||p&&o&&["name","length","prototype"].indexOf(t)>-1||u.indexOf(t)>-1||fn(n)&&!1===n(a,t,c,{self:p})||Lo(a,t,(i?e.apply(void 0,Gn(r)):e)(a,t,c))})}}}var No=Fo(Ro,{requirement:function(e,t,n){return _o(n)&&fn(n.value)}}),zo=void 0;function Ro(e,t,n){if(1===arguments.length)return No()(e);var r=n||{},i=r.value,o=r.configurable;if(!fn(i))throw new TypeError('@autobind can only be used on functions, not "'+i+'" in '+(void 0===i?"undefined":kt(i))+' on property "'+t+'"');var a,s=e.constructor;return{configurable:o,enumerable:!1,get:function(){var n=this,r=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return i.call.apply(i,[n].concat(Gn(t)))};return this===e?i:this.constructor!==s&&St(this).constructor===s?i:this.constructor!==s&&t in this.constructor.prototype?function(e,t){if(void 0===po)throw new Error("Using @autobind on "+t.name+"() requires WeakMap support due to its use of super."+t.name+"()");zo||(zo=new po),!1===zo.has(e)&&zo.set(e,new po);var n=zo.get(e);return!1===n.has(t)&&n.set(t,Bi(t,e)),n.get(t)}(this,i):($t(this,t,{configurable:!0,writable:!0,enumerable:!1,value:r}),r)},set:(a=t,function(e){return $t(this,a,{configurable:!0,writable:!0,enumerable:!0,value:e}),e})}}var Io=$t;function Bo(e,t,n){if(void 0===n)return{value:void 0,writable:!1,enumerable:!1,configurable:!1};if(n.enumerable=!1,n.configurable=!1,wo(n)){var r=n.get;if(n.set=void 0,!fn(r))return;return{get:function(){var e=Bi(r,this)();return Io(this,t,{value:e,writable:!1,configurable:!1,enumerable:!1}),e},set:void 0,configurable:!1,enumerable:!1}}return n.writable=!1,n}var Vo=Ii,Do=$t;function Ko(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).other;if(!fn(e)&&!bn(e)&&!mn(e))throw new TypeError("@waitUntil only accept Function, Promise or String");return function(n,r,i){var o=i||{},a=o.value,s=o.configurable;if(!fn(a))throw new TypeError("@waituntil can only be used on function, but not "+a+' on property "'+r+'"');var u=!1,c=[],l=bn(e)?function(){return e}:fn(e)?e:function(){var n=e.split("."),r=n.slice(-1),i=wn(t)?this:t;if(!u){var o=Vi(i,n.slice(0,-1));if(cn(o))return o;var a=Vo(o,r),s=function(e){if(!0===e)for(;c.length>0;)c[0](),c.shift();return e},l=bo(a)?So({set:s})(o,r,a):So({set:s})(o,r,{value:void 0,configurable:!0,enumerable:!0,writable:!0});Do(o,r,l),u=!0}return Vi(i,n)};return{value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=Bi(a,this),o=Bi(l,this).apply(void 0,n);return bn(o)?Wr.resolve(o).then(function(){return Bi(a,e).apply(void 0,n)}):!0===o?Bi(a,this).apply(void 0,n):new Wr(function(e){c.push(function(){i.apply(void 0,n),e()})})},enumerable:!1,configurable:s,writable:!1}}}function Go(e,t,n){return void 0===n?{value:void 0,enumerable:!1,configurable:!0,writable:!0}:(n.enumerable=!1,n)}var Wo=$t,Ho=Ii;function Uo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.self,i=void 0!==r&&r,o=n.omit,a=void 0!==o&&o,s=fn(t);if(s||ln(t)){if(!fn(e))throw new TypeError("If you want to decorator class, you must pass it a legal class");if(s)t(e);else for(var u=0,c=t.length;u<c;u++){var l=t[u];if(!fn(l))throw new TypeError("If you want to decorate an class, you must pass it function or array of function");l(e)}return e}if(!i&&!fn(e))throw new TypeError("applyDecorators only accept class as first arguments. If you want to modify instance, you should set options.self true.");if(i&&wn(e))throw new TypeError("We can't apply docorators on a primitive value, even in self mode");if(!dn(t))throw new TypeError("applyDecorators only accept object as second arguments");var f=i?e:e.prototype;if(cn(f))throw new Error("The class muse have a prototype, please take a check");for(var d in t){var h=t[d],p=ln(h)?h:[h],v=void 0;try{v=To.apply(void 0,Gn(p))}catch(e){throw new Error("The decorators set on props must be Function or Array of Function")}var y=Ho(f,d);if(!y||y.configurable)Wo(f,d,v(f,d,y));else if(!a)throw new Error(d+" of "+f+" is unconfigurable")}return e}var qo=["push","pop","unshift","shift","splice","sort","reverse"];function Yo(e,t,n){var r,i=n.diff,o=n.operationPrefix,a={},s=!1,u=new Proxy(e,{get:function(e,n,r){var u=e[n];if(ln(e)&&qo.indexOf(n)>-1)return function(){s=!0,Bi(u,r).apply(void 0,arguments),s=!1,t()};if(!0===a[n])return u;if(dn(u)||ln(u)){var c=a[n]||Yo(u,t,{diff:i,operationPrefix:o});return a[n]=c,c}return a[n]=!0,u},set:function(e,n,r){var u=e[n],c=dn(r)||ln(r)?Yo(r,t,{diff:i,operationPrefix:o}):r;return e[n]=c,a[n]=!0,!!(s||i&&u===c)||(t(),!0)},deleteProperty:function(e,n){return delete e[n],delete a[n],!!s||(t(),!0)}}),c=(vo(r={},o+"set",[Po(function(e){return function(e,t){u[e]=t}}),Go]),vo(r,o+"del",[Po(function(e){return function(e){delete u[e]}}),Go]),r);return Uo(u,c,{self:!0}),u}function Xo(e,t,n){var r,i=this,o=n.operationPrefix,a=n.diff,s={},u=!1;function c(e){var n=void 0;return e.reduce(function(e,r){return e[r]=[So({set:function(e){return n=this[r],e}}),So({get:function(e){return s[r]?e:((dn(e)||ln(e))&&Xo(e,t,{operationPrefix:o,diff:a}),s[r]=!0,e)},set:function(e){return(dn(e)||ln(e))&&Xo(e,t,{operationPrefix:o,diff:a}),s[r]=!0,u||a&&n===e||t(),e}},{preSet:!1})],e},{})}var l=c(xo(e));if(Uo(e,l,{self:!0,omit:!0}),ln(e)){var f=qo.reduce(function(n,r){return n[r]=[Po(function(n){return n=fn(n)?n:Array.prototype[r],function(){var r=e.length;if(u=!0,Bi(n,e).apply(void 0,arguments),u=!1,r<e.length){var i=c(new Array(e.length-r).fill(1).map(function(e,t){return(t+r).toString()}));Uo(e,i,{self:!0,omit:!0})}t()}}),Go],n},{});Uo(e,f,{self:!0})}var d=(vo(r={},o+"set",[Po(function(t){return function(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=o.disable,s=o.isNewVal;if(s=s||-1===xo(e).indexOf(n),fn(t)&&Bi(t,i)(n,r,{disable:!0,isNewVal:s}),s){var u=c([n]);Uo(e,u,{self:!0,omit:!0})}a||(e[n]=r)}}),Go]),vo(r,o+"del",[Po(function(n){return function(r){fn(n)?Bi(n,i)(r):delete e[r],t()}}),Go]),r);return Uo(e,d,{self:!0}),e}function Jo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.other,r=t.backup;if(!fn(e)&&!mn(e))throw new TypeError("@runnable only accept Function or String");return function(t,i,o){var a=o||{},s=a.value,u=a.configurable;if(!fn(s))throw new TypeError("@runnable can only be used on method, but not "+s+' on property "'+i+'".');var c=fn(e)?e:function(){var t=e.split(".");return Vi(wn(n)?this:n,t)};return r=fn(r)?r:function(){},{value:function(){return!0===Bi(c,this).apply(void 0,arguments)?Bi(s,this).apply(void 0,arguments):Bi(r,this).apply(void 0,arguments)},enumerable:!1,configurable:u,writable:!1}}}function Zo(e,t,n){return void 0===n?{value:void 0,enumerable:!0,configurable:!0,writable:!0}:(n.configurable=!0,n)}function Qo(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=mn(t[0])?t.shift():"";return t.unshift(function(e){return mn(e)?e:r}),So({set:t,get:t})}function ea(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=!!gn(t[0])&&t.shift();return t.unshift(function(e){return gn(e)?e:r}),So({set:t,get:t})}function ta(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=hn(t[0])?t.shift():0;return t.unshift(function(e){return hn(e)?e:r}),So({set:t,get:t})}Fo(Ao,{requirement:function(e,t,n){return _o(n)&&fn(n.value)},customArgs:!0}),Fo(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)throw new Error("@after accept at least one parameter. If you don't need to preprocess after your function, do not add @after decorators");if(t.length>2&&bo(t[2]))throw new Error("You may have used @after straightly. @after return decorators. You should call it before you use it as decorators");var r=ko(t,"@after only accept function parameter");return function(e,t,n){var i=n||{},o=i.value,a=i.configurable,s=i.enumerable,u=i.writable;if(!fn(o))throw new TypeError('@after can only be used on function, please checkout your property "'+t+'" is a method or not.');return{value:function(){var e=Bi(o,this).apply(void 0,arguments);return Bi(r,this)(e)},configurable:a,enumerable:s,writable:u}}},{requirement:function(e,t,n){return _o(n)&&fn(n.value)},customArgs:!0}),Fo(Jo,{requirement:function(e,t,n){return _o(n)&&fn(n.value)},customArgs:!0}),Fo(Ko,{requirement:function(e,t,n){return _o(n)&&fn(n.value)},customArgs:!0});var na=u.JSON||(u.JSON={stringify:JSON.stringify}),ra=function(e){return na.stringify.apply(na,arguments)};t(n(function(e){e.exports={default:ra,__esModule:!0}}));var ia,oa,aa,sa,ua,ca,la,fa=t(n(function(e,t){t.__esModule=!0;var n=i(Tt),r=i(Ri);function i(e){return e&&e.__esModule?e:{default:e}}t.default=function e(t,i,o){null===t&&(t=Function.prototype);var a=(0,r.default)(t,i);if(void 0===a){var s=(0,n.default)(t);return null===s?void 0:e(s,i,o)}if("value"in a)return a.value;var u=a.get;return void 0!==u?u.call(o):void 0}})),da=["","o","ms","moz","webkit","webkitCurrent"],ha=[["",""],["exit","cancel"],["screen","Screen"]],pa={position:"fixed",zIndex:"2147483647",left:0,top:0,right:0,bottom:0,overflow:"hidden",width:"100%",height:"100%"},va=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],ya=["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],ma="undefined"!=typeof document;function ga(e,t,n){if(dn(t))for(var r in t)ga(e,r,t[r]);else e.style[t]=n}function ba(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};dn(t)&&(n=t),mn(e)&&(t=e);var r=n.keyOnly,i=void 0!==r&&r;if(!ma)return i?"":void 0;if(En(e)||(e=document),!mn(t))throw new Error("You must pass in a string as name, but not "+(void 0===t?"undefined":kt(t))+".");for(var o=0;o<ha.length;o++){t=t.replace(ha[o][0],ha[o][1]);for(var a=0;a<da.length;a++){var s=0===a?t:da[a]+t.charAt(0).toUpperCase()+t.substr(1);if(void 0!==e[s])return i?s:e[s]}}return i?"":void 0}function wa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.bubbles,i=void 0===r||r,o=n.cancelable,a=void 0===o||o,s=void 0;if(fn(Event)?s=new Event(t,{bubbles:i,cancelable:a}):ma&&document.createEvent?(s=document.createEvent("HTMLEvents")).initEvent(t,!0,!0):ma&&document.createEventObject&&((s=document.createEventObject()).eventType=t,s.eventName=t),!dn(s)&&!yn(s))throw new Error("We can't create an object on this browser, please report to author");e.dispatchEvent?e.dispatchEvent(s):e.fireEvent?e.fireEvent("on"+s.eventType,s):e[t]?e[t]():e["on"+t]&&e["on"+t]()}function _a(e,t,n,r,i){var o={};return Object.keys(r).forEach(function(e){o[e]=r[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var Ea=ba("fullscreenEnabled"),ka=!1,xa=new(ia=No(),oa=$o("requestFullscreen"),aa=$o("exitFullscreen"),sa=$o("addEventListener"),ua=$o("removeEventListener"),ia((_a((la=function(){function e(){At(this,e),this._fullscreenElement=null,this.isNativelySupport=un(ba("fullscreenElement"))&&(!un(Ea)||!0===Ea),this._openKey=ma?ba(document.body||document.documentElement,"requestFullscreen",{keyOnly:!0}):"",this._exitKey=ba("exitFullscreen",{keyOnly:!0}),this._useStyleFirst=!1,this.hasUsedStyle=!1}return Lt(e,[{key:"open",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).force,n=void 0!==t&&t,r=this.fullscreenElement;if(r&&r!==e){if(!n)return wa(document,"fullscreenerror"),!1;this.exit()}if(!this.useStyleFirst){if(this.isNativelySupport)return fn(e[this._openKey])&&e[this._openKey](),!0;if(e instanceof HTMLVideoElement&&e.webkitSupportsFullscreen&&fn(e.webkitEnterFullscreen))return e.webkitEnterFullscreen(),this._fullscreenElement=e,!0}return this._savedStyles=Wt(pa).reduce(function(t,n){return t[n]=e.style[n],t},{}),ga(e,pa),document.body&&(this._bodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden"),document.documentElement&&(this._htmlOverflow=document.documentElement.style.overflow,document.documentElement.style.overflow="hidden"),this._fullscreenElement=e,this.hasUsedStyle=!0,wa(e,"fullscreenchange"),!0}},{key:"exit",value:function(){if(!this.isFullscreen)return!1;if(this.isNativelySupport&&!this.useStyleFirst&&!this.hasUsedStyle)return document[this._exitKey](),!0;var e=this._fullscreenElement;return ga(e,this._savedStyles),document.body&&(document.body.style.overflow=this._bodyOverflow),document.documentElement&&(document.documentElement.style.overflow=this._htmlOverflow),this._fullscreenElement=null,this._savedStyles={},wa(e,"fullscreenchange"),!0}},{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;this._handleEvent(n,"addEventListener",e,t)}},{key:"off",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;this._handleEvent(n,"removeEventListener",e,t)}},{key:"_handleEvent",value:function(e,t,n,r){("fullscreenchange"===n?va:"fullscreenerror"===n?ya:[n]).forEach(function(n){e[t](n,r)})}},{key:"useStyleFirst",get:function(){return ka},set:function(e){return(e=!!e)===ka?e:(ka=e,wa(document,"esfullscreenmethodchange"),e)}},{key:"fullscreenElement",get:function(){return["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].reduce(function(e,t){return e||document[t]},null)||this._fullscreenElement}},{key:"isFullscreen",get:function(){return En(this.fullscreenElement)}}]),e}()).prototype,"open",[oa],Ii(la.prototype,"open"),la.prototype),_a(la.prototype,"exit",[aa],Ii(la.prototype,"exit"),la.prototype),_a(la.prototype,"on",[sa],Ii(la.prototype,"on"),la.prototype),_a(la.prototype,"off",[ua],Ii(la.prototype,"off"),la.prototype),ca=la))||ca),Oa=_.f,Ta=je.fastKey,Sa=p?"_s":"size",Aa=function(e,t){var n,r=Ta(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n},Pa={getConstructor:function(e,t,n,r){var i=e(function(e,o){Qn(e,i,t,"_i"),e._t=t,e._i=re(null),e._f=void 0,e._l=void 0,e[Sa]=0,void 0!=o&&er(o,n,e[r],e)});return Or(i.prototype,{clear:function(){for(var e=Zi(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[Sa]=0},delete:function(e){var n=Zi(this,t),r=Aa(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[Sa]--}return!!r},forEach:function(e){Zi(this,t);for(var n,r=l(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!Aa(Zi(this,t),e)}}),p&&Oa(i.prototype,"size",{get:function(){return Zi(this,t)[Sa]}}),i},def:function(e,t,n){var r,i,o=Aa(e,t);return o?o.v=n:(e._l=o={i:i=Ta(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[Sa]++,"F"!==i&&(e._i[i]=o)),e},getEntry:Aa,setStrong:function(e,t,n){ge(e,t,function(e,n){this._t=Zi(e,t),this._k=n,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?we(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,we(1))},n?"entries":"values",!n,!0),Sr(t)}};co("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=Pa.getEntry(Zi(this,"Map"),e);return t&&t.v},set:function(e,t){return Pa.def(Zi(this,"Map"),0===e?0:e,t)}},Pa,!0);T(T.P+T.R,"Map",{toJSON:function(e){return function(){if(Fn(this)!=e)throw TypeError(e+"#toJSON isn't generic");return er(this,!1,(n=[]).push,n,t),n;var t,n}}("Map")}),lo("Map"),fo("Map");var ja,Ca=u.Map,Ma=t(n(function(e){e.exports={default:Ca,__esModule:!0}})),$a=Le.f,La=(ja=!0,function(e){for(var t,n=L(e),r=X(n),i=r.length,o=0,a=[];i>o;)$a.call(n,t=r[o++])&&a.push(ja?[t,n[t]]:n[t]);return a});T(T.S,"Object",{entries:function(e){return La(e)}});var Fa=u.Object.entries,Na=t(n(function(e){e.exports={default:Fa,__esModule:!0}})),za=n(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),Ra=n(function(e){var t=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=t)}),Ia=(Ra.version,function(e){return"object"==typeof e?null!==e:"function"==typeof e}),Ba=function(e){if(!Ia(e))throw TypeError(e+" is not an object!");return e},Va=function(e){try{return!!e()}catch(e){return!0}},Da=!Va(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),Ka=za.document,Ga=Ia(Ka)&&Ia(Ka.createElement),Wa=!Da&&!Va(function(){return 7!=Object.defineProperty((e="div",Ga?Ka.createElement(e):{}),"a",{get:function(){return 7}}).a;var e}),Ha=Object.defineProperty,Ua={f:Da?Object.defineProperty:function(e,t,n){if(Ba(e),t=function(e,t){if(!Ia(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!Ia(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!Ia(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!Ia(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}(t,!0),Ba(n),Wa)try{return Ha(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},qa=Da?function(e,t,n){return Ua.f(e,t,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}(1,n))}:function(e,t,n){return e[t]=n,e},Ya={}.hasOwnProperty,Xa=function(e,t){return Ya.call(e,t)},Ja=0,Za=Math.random(),Qa=n(function(e){var t,n="Symbol(".concat(void 0===(t="src")?"":t,")_",(++Ja+Za).toString(36)),r=Function.toString,i=(""+r).split("toString");Ra.inspectSource=function(e){return r.call(e)},(e.exports=function(e,t,r,o){var a="function"==typeof r;a&&(Xa(r,"name")||qa(r,"name",t)),e[t]!==r&&(a&&(Xa(r,n)||qa(r,n,e[t]?""+e[t]:i.join(String(t)))),e===za?e[t]=r:o?e[t]?e[t]=r:qa(e,t,r):(delete e[t],qa(e,t,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[n]||r.call(this)})}),es=function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!")}(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},ts=function(e,t,n){var r,i,o,a,s=e&ts.F,u=e&ts.G,c=e&ts.S,l=e&ts.P,f=e&ts.B,d=u?za:c?za[t]||(za[t]={}):(za[t]||{}).prototype,h=u?Ra:Ra[t]||(Ra[t]={}),p=h.prototype||(h.prototype={});for(r in u&&(n=t),n)o=((i=!s&&d&&void 0!==d[r])?d:n)[r],a=f&&i?es(o,za):l&&"function"==typeof o?es(Function.call,o):o,d&&Qa(d,r,o,e&ts.U),h[r]!=o&&qa(h,r,a),l&&p[r]!=o&&(p[r]=o)};za.core=Ra,ts.F=1,ts.G=2,ts.S=4,ts.P=8,ts.B=16,ts.W=32,ts.U=64,ts.R=128;ts(ts.G,{global:za});Ra.global;var ns=0,rs=function(e){function t(e,n,r){At(this,t);var i=Pt(this,(t.__proto__||St(t)).call(this));if(!En(e))throw new Error("You must pass in an legal video element but not "+(void 0===e?"undefined":kt(e)));return i.video=e,i.config=n,i.customConfig=r,i}return Kt(t,ai),Lt(t,null,[{key:"isSupport",value:function(){return!0}}]),Lt(t,[{key:"load",value:function(e){this.video.setAttribute("src",e),this.video.src=e}},{key:"startLoad",value:function(e){var t=this.video.currentTime||ns;this.load(e),this.seek(t)}},{key:"stopLoad",value:function(){ns=this.video.currentTime,this.video.src="",this.video.removeAttribute("src")}},{key:"destroy",value:function(){En(this.video)&&this.stopLoad()}},{key:"play",value:function(){return this.video.play()}},{key:"pause",value:function(){return this.video.pause()}},{key:"refresh",value:function(){this.video.src=this.config.src}},{key:"attachMedia",value:function(){}},{key:"seek",value:function(e){this.video.currentTime=e}}]),t}(),is={flv:".flv",hls:".m3u8",native:".mp4"};function os(e){var t=e.src,n=e.box;if(mn(n)&&n)return n;for(var r in t=t.toLowerCase(),is){var i=is[r];if(t.indexOf(i)>-1)return r}return"native"}var as,ss,us,cs,ls,fs,ds,hs,ps,vs,ys=function(){function e(t,n){if(At(this,e),!En(t))throw new Error("You must pass in an video element to the chimee-kernel");this.config=n,this.videoElement=t,this.initVideoKernel()}return Lt(e,[{key:"destroy",value:function(){this.videoKernel.destroy()}},{key:"initVideoKernel",value:function(){var e=this.config,t=os(e);this.box=t;var n=this.chooseVideoKernel(this.box,e.preset);if(!fn(n))throw new Error("We can't find video kernel for "+t+". Please check your config and make sure it's installed or provided");var r=e.presetConfig[this.box];r&&Un(e,r),this.videoKernel=new n(this.videoElement,e,r)}},{key:"chooseVideoKernel",value:function(e,t){switch(e){case"native":return rs;case"mp4":return this.getMp4Kernel(t.mp4);case"flv":case"hls":return t[e];default:throw new Error("We currently do not support box "+e+", please contact us through https://github.com/Chimeejs/chimee/issues.")}}},{key:"getMp4Kernel",value:function(e){var t=e&&fn(e.isSupport);return t&&e.isSupport()?e:(t&&Tn.warn("chimee","mp4 decode is not support in this browser, we will switch to the native video kernel"),this.box="native",rs)}},{key:"attachMedia",value:function(){this.videoKernel.attachMedia()}},{key:"load",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.src;this.config.src=e,this.videoKernel.load(e)}},{key:"startLoad",value:function(){if(!fn(this.videoKernel.startLoad))throw new Error("This video kernel do not support startLoad, please contact us on https://github.com/Chimeejs/chimee/issues");this.videoKernel.startLoad(this.config.src)}},{key:"stopLoad",value:function(){fn(this.videoKernel.stopLoad)&&this.videoKernel.stopLoad()}},{key:"play",value:function(){this.videoKernel.play()}},{key:"pause",value:function(){this.videoKernel.pause()}},{key:"seek",value:function(e){hn(e)?this.videoKernel.seek(e):Tn.error("chimee","When you try to seek, you must offer us a number, but not "+(void 0===e?"undefined":kt(e)))}},{key:"refresh",value:function(){this.videoKernel.refresh()}},{key:"on",value:function(e,t){this.videoKernel.on(e,t)}},{key:"off",value:function(e,t){this.videoKernel.off(e,t)}},{key:"currentTime",get:function(){return this.videoElement.currentTime||0}}]),e}(),ms=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","interruptbegin","interruptend","loadeddata","loadedmetadata","loadstart","mozaudioavailable","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],gs=["buffered","currentSrc","duration","error","ended","networkState","paused","readyState","seekable","sinkId","controlsList","tabIndex","dataset","offsetHeight","offsetLeft","offsetParent","offsetTop","offsetWidth"],bs=["beforeinput","blur","click","compositionend","compositionstart","compositionupdate","dblclick","focus","focusin","focusout","input","keydown","keypress","keyup","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","resize","scroll","select","wheel","mousewheel","contextmenu","touchstart","touchmove","touchend","fullscreen"],ws=["fullscreenchange"],_s=["wheel","mousewheel","touchstart","touchmove"],Es=["silentLoad","fullscreen"],ks=["mouseenter","mouseleave"],xs=["play","pause","seek","startLoad","stopLoad"],Os=["load"],Ts=["mediaInfo","heartbeat","error"],Ss=["focus","fullscreen","requestFullscreen","exitFullscreen"],As=["canPlayType","captureStream","setSinkId"];function Ps(e,t){if(!mn(e))throw new TypeError("key parameter must be String");if(!fn(t))throw new TypeError("fn parameter must be Function")}function js(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length>2?["set"].concat(t):2===t.length?["video","container","wrapper","videoElement"].indexOf(t[0])>-1?["get"].concat(t):["set","container"].concat(t):["get","container"].concat(t)}function Cs(e,t,n,r){n&&$t(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Ms(e,t,n,r,i){var o={};return Object.keys(r).forEach(function(e){o[e]=r[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function $s(e){return mn(e)?e:void 0}function Ls(e){return So({get:function(t){return this.dispatcher.videoConfigReady&&this.inited?this.dom.videoElement[e]:t},set:function(t){return this.dispatcher.videoConfigReady?(this.dom.videoElement[e]=t,t):t}})}function Fs(e){var t=dn(e)?e:{set:e,get:e,isBoolean:!1},n=t.set,r=t.get,i=t.isBoolean;return So({get:function(e){return this.dispatcher.videoConfigReady&&this.inited?this.dom.videoElement[r]:e},set:function(e){if(!this.dispatcher.videoConfigReady)return e;var t=i?e?"":void 0:null===e?void 0:e;return this.dom.setAttr("video",n,t),e}},{preSet:!1})}function Ns(e,t){return So({get:function(n){var r=this.dom.getAttr("video",e);return this.dispatcher.videoConfigReady&&this.inited?t?!!r:r:n},set:function(n){if(!this.dispatcher.videoConfigReady)return n;var r=t?n||void 0:null===n?void 0:n;return this.dom.setAttr("video",e,r),n}})}function zs(e){return So({get:function(t){if(!this.dispatcher.videoConfigReady||!this.inited)return t;var n,r=this.dom.getAttr("video",e),i=this.dom.videoElement[e];return!ln(n=r)&&n-sn(n)+1>=0&&hn(i)?i:r||void 0},set:function(t){if(!this.dispatcher.videoConfigReady)return t;var n=void 0;return void 0===t||hn(t)?n=t:mn(t)&&!Oi(parseFloat(t))&&(n=t),this.dom.setAttr("video",e,n),n}})}var Rs,Is,Bs,Vs,Ds,Ks,Gs,Ws,Hs,Us,qs,Ys,Xs,Js,Zs,Qs,eu,tu,nu,ru,iu,ou={src:[Qo(),So({set:function(e){return this.dispatcher.readySync&&this.autoload&&e!==this.src&&(this.needToLoadSrc=!0),e}}),So({set:function(e){return this.needToLoadSrc&&(this.needToLoadSrc=!1,this.dispatcher.binder.emit({name:"load",target:"plugin",id:"dispatcher"},e)),e}},{preSet:!1})],autoload:ea(),autoplay:[ea(),Ls("autoplay")],controls:[ea(),Ls("controls")],width:[zs("width")],height:[zs("height")],crossOrigin:[So({set:$s}),Fs({set:"crossorigin",get:"crossOrigin"})],loop:[ea(),Ls("loop")],defaultMuted:[ea(),Fs({get:"defaultMuted",set:"muted",isBoolean:!0})],muted:[ea(),Ls("muted")],preload:[So({set:function(e){return["none","auto","metadata",""].indexOf(e)>-1?e:"none"}},{preSet:!0}),Fs("preload")],poster:[Qo(),So({get:function(e){return this.dispatcher.videoConfigReady&&this.inited?this.dom.videoElement.poster:e},set:function(e){return this.dispatcher.videoConfigReady?(e.length&&this.dom.setAttr("video","poster",e),e):e}})],playsInline:[So({get:function(e){var t=this.dom.videoElement.playsInline;return this.dispatcher.videoConfigReady&&this.inited?void 0===t?e:t:e},set:function(e){if(!this.dispatcher.videoConfigReady)return e;this.dom.videoElement.playsInline=e;var t=e?"":void 0;return this.dom.setAttr("video","playsinline",t),this.dom.setAttr("video","webkit-playsinline",t),this.dom.setAttr("video","x5-playsinline",t),e}}),ea()],x5VideoPlayerFullscreen:[So({set:function(e){return!!e},get:function(e){return!!e}}),Ns("x5-video-player-fullscreen",!0)],x5VideoOrientation:[So({set:$s}),Ns("x5-video-orientation")],x5VideoPlayerType:[So({set:function(e){if(!this.dispatcher.videoConfigReady)return e;var t="h5"===e?"h5":void 0;return this.dom.setAttr("video","x5-video-player-type",t),e},get:function(e){return this.dispatcher.videoConfigReady&&e||(this.dom.getAttr("video","x5-video-player-type")?"h5":void 0)}})],xWebkitAirplay:[So({set:function(e){return!!e},get:function(e){return!!e}}),Ns("x-webkit-airplay",!0)],playbackRate:[ta(1),Ls("playbackRate")],defaultPlaybackRate:[Ls("defaultPlaybackRate"),ta(1)],disableRemotePlayback:[ea(),Ls("disableRemotePlayback")],volume:[ta(1),Ls("volume")]},au=(as=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=!!gn(t[0])&&t.shift();return t.unshift(function(e){return gn(e)?e:r}),Po.apply(void 0,t)}(),ss=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=mn(t[0])?t.shift():"";return t.unshift(function(e){return mn(e)?e:r}),Po.apply(void 0,t)}(function(e){return e.toLocaleLowerCase()}),us=function(){function e(t,n){At(this,e),Cs(this,"needToLoadSrc",cs,this),Cs(this,"changeWatchable",ls,this),Cs(this,"inited",fs,this),this.src="",Cs(this,"isLive",ds,this),Cs(this,"box",hs,this),this.preset={},this.presetConfig={},this.autoload=!0,this.autoplay=!1,this.controls=!1,this.width="100%",this.height="100%",this.crossOrigin=void 0,this.loop=!1,this.defaultMuted=!1,this.muted=!1,this.preload="auto",this.poster=void 0,this.playsInline=!1,this.x5VideoPlayerFullscreen=!1,this.x5VideoOrientation=void 0,this.x5VideoPlayerType=void 0,this.xWebkitAirplay=!1,this.playbackRate=1,this.defaultPlaybackRate=1,this.disableRemotePlayback=!1,this.volume=1,Cs(this,"_kernelProperty",ps,this),Cs(this,"_realDomAttr",vs,this),Uo(this,ou,{self:!0}),Object.defineProperty(this,"dispatcher",{value:t,enumerable:!1,writable:!1,configurable:!1}),Object.defineProperty(this,"dom",{value:t.dom,enumerable:!1,writable:!1,configurable:!1}),Un(this,n)}return Lt(e,[{key:"init",value:function(){var e=this;this._realDomAttr.forEach(function(t){e[t]=e[t]}),this.inited=!0}}]),e}(),cs=Ms(us.prototype,"needToLoadSrc",[Go],{enumerable:!0,initializer:function(){return!1}}),ls=Ms(us.prototype,"changeWatchable",[Go],{enumerable:!0,initializer:function(){return!0}}),fs=Ms(us.prototype,"inited",[Go],{enumerable:!0,initializer:function(){return!1}}),ds=Ms(us.prototype,"isLive",[as,Zo],{enumerable:!0,initializer:function(){return!1}}),hs=Ms(us.prototype,"box",[ss,Zo],{enumerable:!0,initializer:function(){return""}}),ps=Ms(us.prototype,"_kernelProperty",[Bo],{enumerable:!0,initializer:function(){return["isLive","box","preset","kernels","presetConfig"]}}),vs=Ms(us.prototype,"_realDomAttr",[Bo],{enumerable:!0,initializer:function(){return["src","controls","width","height","crossOrigin","loop","muted","preload","poster","autoplay","playsInline","x5VideoPlayerFullscreen","x5VideoOrientation","xWebkitAirplay","playbackRate","defaultPlaybackRate","autoload","disableRemotePlayback","defaultMuted","volume","x5VideoPlayerType"]}}),us);function su(e,t,n,r,i){var o={};return Object.keys(r).forEach(function(e){o[e]=r[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var uu,cu,lu,fu,du,hu,pu,vu,yu=(Rs=No(),Is=$o("silentLoad"),Bs=$o("fullScreen"),Vs=$o("$fullScreen"),Ds=$o("fullscreen"),Ks=$o("emit"),Gs=$o("emitSync"),Ws=$o("on"),Hs=$o("addEventListener"),Us=Ao(Ps),qs=$o("off"),Ys=$o("removeEventListener"),Xs=Ao(Ps),Js=$o("once"),Zs=Ao(Ps),Qs=$o("css"),eu=Ao(js),tu=$o("attr"),nu=Ao(js),Rs((su((iu=function(){function e(){At(this,e),this.__events={},this.__unwatchHandlers=[]}return Lt(e,[{key:"__wrapAsVideo",value:function(e){var t=this;gs.forEach(function(e){$t(t,e,{get:function(){return this.__dispatcher.dom.videoElement[e]},set:void 0,configurable:!1,enumerable:!1})}),As.forEach(function(e){$t(t,e,{get:function(){var t=this.__dispatcher.dom.videoElement;return Yn(t[e],t)},set:void 0,configurable:!1,enumerable:!1})}),Uo(this,e._realDomAttr.concat(e._kernelProperty).reduce(function(t,n){return t[n]=[So({get:function(){return e[n]},set:function(t){return e[n]=t,t}}),Go],t},{}),{self:!0}),xs.forEach(function(e){$t(t,e,{value:function(){for(var t=this,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return new Wr(function(n){var i,o=t.__id;t.__dispatcher.binder.once({id:o,name:"_"+e,fn:n}),(i=t.__dispatcher.binder)[/^(seek)$/.test(e)?"emitSync":"emit"].apply(i,[{target:"video",name:e,id:o}].concat(Gn(r)))})},configurable:!0,enumerable:!1,writable:!0})}),Ss.forEach(function(e){"fullscreen"!==e&&$t(t,e,{value:function(){var t;return(t=this.__dispatcher.dom)[e].apply(t,arguments)},configurable:!0,enumerable:!1,writable:!0})})}},{key:"$watch",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.deep,o=r.diff,a=void 0===o||o,s=r.other,u=r.proxy,c=void 0!==u&&u;if(!mn(e)&&!ln(e))throw new TypeError("$watch only accept string and Array<string> as key to find the target to spy on, but not "+e+", whose type is "+(void 0===e?"undefined":kt(e)));var l=!0,f=function e(){l=!1;var t=n.__unwatchHandlers.indexOf(e);t>-1&&n.__unwatchHandlers.splice(t,1)},d=mn(e)?e.split("."):e,h=d.pop(),p=this.__dispatcher.videoConfig;return Uo(0===d.length&&!s&&p._realDomAttr.indexOf(h)>-1?p:["isFullscreen","fullscreenElement"].indexOf(h)>-1?this.__dispatcher.dom:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.throwError,i=void 0!==r&&r,o=n.backup;if(mn(t)&&(t=t.split(".")),!ln(t))throw new TypeError("keys of getDeepProperty must be string or Array<string>");for(var a=[],s=e,u=0,c=t.length;u<c;u++){var l=t[u];if(cn(s)){if(i)throw new Error("obj"+(a.length>0?"."+a.join("."):" itself")+" is "+s);return o}s=s[l],a.push(l)}return s}(s||this,d,{throwError:!0}),vo({},h,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=dn(t[t.length-1])?t[t.length-1]:{},i=r.deep,o=r.omit,a=r.other,s=r.operationPrefix,u=void 0===s?"__":s,c=r.diff,l=void 0===c||c,f=r.proxy;if("function"!=typeof Proxy&&(f=!1),!t.length)throw new TypeError("You must pass a function or a string to find the hanlder function.");if(void 0!==a&&wn(a))throw new TypeError("If you want us to trigger function on the other instance, you must pass in a legal instance");if(!mn(u))throw new TypeError("operationPrefix must be an string");return function(e,n,r){var s=t.reduce(function(n,r,i){if(!mn(r)&&!fn(r)){if(!i||i!==t.length-1)throw new TypeError("You can only pass function or string as handler");return n}return n.push(mn(r)?function(t,n){var i=Vi(a||e,r);if(fn(i))return Bi(i,this)(t,n);if(!o)throw new Error("You pass in a function for us to trigger, please ensure the property to be a function or set omit flag true")}:r),n},[]),c=function(e,t){var n=this;s.forEach(function(r){return Bi(r,n)(e,t)})},d=!1,h=void 0,p=void 0,v=void 0;return To(So({set:function(e){var t=this;h=this[n],v=void 0;var r=function(){return Bi(c,t)(p,h)};return i&&(dn(e)||ln(e))?f?Yo(e,r,{diff:l,operationPrefix:u}):Xo(e,r,{operationPrefix:u,diff:l}):e},get:function(e){var t=this;if(v)return v;if(!d){d=!0;var n=function(){return Bi(c,t)(p,h)};if(i&&(dn(e)||ln(e))){if(f)return v=Yo(e,n,{diff:l,operationPrefix:u}),h=v,p=v,v;Xo(e,n,{operationPrefix:u,diff:l})}h=e,p=e}return e}},{preSet:!0}),So({set:function(e){return p=e,l&&h===e||Bi(c,this)(p,h),h=e,e}},{preSet:!1}))(e,n,r)}}(function(){!l||this instanceof au&&!this.dispatcher.changeWatchable||Yn(t,this).apply(void 0,arguments)},{deep:i,diff:a,proxy:c})),{self:!0}),this.__unwatchHandlers.push(f),f}},{key:"$set",value:function(e,t,n){if(!dn(e)&&!ln(e))throw new TypeError("$set only support Array or Object, but not "+e+", whose type is "+(void 0===e?"undefined":kt(e)));fn(e.__set)?e.__set(t,n):e[t]=n}},{key:"$del",value:function(e,t){if(!dn(e)&&!ln(e))throw new TypeError("$del only support Array or Object, but not "+e+", whose type is "+(void 0===e?"undefined":kt(e)));fn(e.__del)?e.__del(t):delete e[t]}},{key:"load",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return new Wr(function(t){var r;e.__dispatcher.binder.once({id:e.__id,name:"_load",target:"plugin",fn:t}),(r=e.__dispatcher.binder).emit.apply(r,[{name:"load",target:"plugin",id:e.__id}].concat(n))})}},{key:"$silentLoad",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.__dispatcher.binder.emit({name:"silentLoad",target:"video",id:this.__id}).then(function(){var t;return(t=e.__dispatcher).silentLoad.apply(t,n)}).then(function(t){e.__dispatcher.binder.trigger({name:"silentLoad",target:"video",id:e.__id},t)})}},{key:"$fullscreen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"container";if(!this.__dispatcher.binder.emitSync({name:"fullscreen",id:this.__id,target:"video-dom"},e,t))return!1;var n=this.__dispatcher.dom.fullscreen(e,t);return this.__dispatcher.binder.triggerSync({name:"fullscreen",id:this.__id,target:"video-dom"},e,t),n}},{key:"$emit",value:function(e){var t,n=void 0;if(dn(e)&&mn(e.name)&&mn(e.target)&&(n=e.target,e=e.name),!mn(e))throw new TypeError("emit key parameter must be String");for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return(t=this.__dispatcher.binder).emit.apply(t,[{name:e,id:this.__id,target:n}].concat(Gn(i)))}},{key:"$emitSync",value:function(e){var t,n=void 0;if(dn(e)&&mn(e.name)&&mn(e.target)&&(n=e.target,e=e.name),!mn(e))throw new TypeError("emitSync key parameter must be String");for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return(t=this.__dispatcher.binder).emitSync.apply(t,[{name:e,id:this.__id,target:n}].concat(Gn(i)))}},{key:"$on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=ti({},n,{name:e,id:this.__id,fn:t});this.__dispatcher.binder.on(r),this.__addEvents(e,t)}},{key:"$off",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=ti({},n,{name:e,id:this.__id,fn:t});this.__dispatcher.binder.off(r),this.__removeEvents(e,t)}},{key:"$once",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this,i=function n(){Yn(t,this).apply(void 0,arguments),r.__removeEvents(e,n)};r.__addEvents(e,i);var o=ti({},n,{name:e,id:this.__id,fn:i});this.__dispatcher.binder.once(o)}},{key:"$css",value:function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=this.__dispatcher.dom)[e+"Style"].apply(t,r)}},{key:"$attr",value:function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if("set"===e&&/video/.test(r[0])){if(!this.__dispatcher.videoConfigReady)return r[2];if(this.__dispatcher.videoConfig._realDomAttr.indexOf(r[1])>-1){var o=r[1],a=r[2];return this.__dispatcher.videoConfig[o]=a,a}}return(t=this.__dispatcher.dom)[e+"Attr"].apply(t,r)}},{key:"__addEvents",value:function(e,t){this.__events[e]=this.__events[e]||[],this.__events[e].push(t)}},{key:"__removeEvents",value:function(e,t){if(!vn(this.__events[e])){var n=this.__events[e].indexOf(t);n<0||(this.__events[e].splice(n,1),vn(this.__events[e])&&delete this.__events[e])}}},{key:"__destroy",value:function(){var e=this;this.__unwatchHandlers.forEach(function(e){return e()}),Wt(this.__events).forEach(function(t){ln(e.__events[t])&&e.__events[t].forEach(function(n){return e.$off(t,n)})}),delete this.__events}},{key:"currentTime",get:function(){return this.__dispatcher.kernel.currentTime},set:function(e){this.__dispatcher.binder.emitSync({name:"seek",target:"video",id:this.__id},e)}},{key:"$plugins",get:function(){return this.__dispatcher.plugins}},{key:"$pluginOrder",get:function(){return this.__dispatcher.order}},{key:"$wrapper",get:function(){return this.__dispatcher.dom.wrapper}},{key:"$container",get:function(){return this.__dispatcher.dom.container}},{key:"$video",get:function(){return this.__dispatcher.dom.videoElement}},{key:"isFullscreen",get:function(){return this.__dispatcher.dom.isFullscreen}},{key:"fullscreenElement",get:function(){return this.__dispatcher.dom.fullscreenElement}},{key:"container",get:function(){return this.__dispatcher.containerConfig},set:function(e){if(!dn(e))throw new Error("The config of container must be Object, but not "+(void 0===e?"undefined":kt(e))+".");return Un(this.__dispatcher.containerConfig,e),this.__dispatcher.container}},{key:"videoRequireGuardedAttributes",get:function(){return this.__dispatcher.dom.videoRequireGuardedAttributes}}]),e}()).prototype,"$silentLoad",[Is],Ii(iu.prototype,"$silentLoad"),iu.prototype),su(iu.prototype,"$fullscreen",[Bs,Vs,Ds],Ii(iu.prototype,"$fullscreen"),iu.prototype),su(iu.prototype,"$emit",[Ks],Ii(iu.prototype,"$emit"),iu.prototype),su(iu.prototype,"$emitSync",[Gs],Ii(iu.prototype,"$emitSync"),iu.prototype),su(iu.prototype,"$on",[Ws,Hs,Us],Ii(iu.prototype,"$on"),iu.prototype),su(iu.prototype,"$off",[qs,Ys,Xs],Ii(iu.prototype,"$off"),iu.prototype),su(iu.prototype,"$once",[Js,Zs],Ii(iu.prototype,"$once"),iu.prototype),su(iu.prototype,"$css",[Qs,eu],Ii(iu.prototype,"$css"),iu.prototype),su(iu.prototype,"$attr",[tu,nu],Ii(iu.prototype,"$attr"),iu.prototype),su(iu.prototype,"$plugins",[Go],Ii(iu.prototype,"$plugins"),iu.prototype),su(iu.prototype,"$pluginOrder",[Go],Ii(iu.prototype,"$pluginOrder"),iu.prototype),su(iu.prototype,"$wrapper",[Go],Ii(iu.prototype,"$wrapper"),iu.prototype),su(iu.prototype,"$container",[Go],Ii(iu.prototype,"$container"),iu.prototype),su(iu.prototype,"$video",[Go],Ii(iu.prototype,"$video"),iu.prototype),ru=iu))||ru),mu=No()(uu=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.id,r=e.name,i=e.level,o=void 0===i?0:i,a=e.operable,s=void 0===a||a,u=e.beforeCreate,c=e.create,l=e.init,f=e.inited,d=e.destroy,h=e.events,p=void 0===h?{}:h,v=e.data,y=void 0===v?{}:v,m=e.computed,g=void 0===m?{}:m,b=e.methods,w=void 0===b?{}:b,_=e.el,E=e.penetrate,k=void 0!==E&&E,x=e.inner,O=void 0===x||x,T=e.autoFocus,S=e.className,A=arguments[1],P=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{name:r};At(this,t);var j=Pt(this,(t.__proto__||St(t)).call(this));if(j.destroyed=!1,j.VERSION="0.10.5",j.__operable=!0,j.__level=0,vn(A))throw new TypeError("lack of dispatcher");if(!mn(n))throw new TypeError("id of PluginConfig must be string");j.__id=n,j.__dispatcher=A,j.$videoConfig=j.__dispatcher.videoConfig,j.__wrapAsVideo(j.$videoConfig),j.beforeCreate=j.beforeCreate||u;try{fn(j.beforeCreate)&&j.beforeCreate({events:p,data:y,computed:g,methods:w},P)}catch(e){j.$throwError(e)}if(!vn(w)&&dn(w)&&Wt(w).forEach(function(e){var t=w[e];if(!fn(t))throw new TypeError("plugins methods must be Function");$t(j,e,{value:Yn(t,j),writable:!0,enumerable:!1,configurable:!0})}),!vn(p)&&dn(p)&&Wt(p).forEach(function(e){if(!fn(p[e]))throw new TypeError("plugins events hook must bind with Function");j.$on(e,p[e])}),!vn(y)&&dn(y)&&Un(j,y),!vn(g)&&dn(g)){var C=Wt(g).reduce(function(e,t){var n=g[t];return fn(n)?(e[t]=So({get:n}),e):dn(n)&&(fn(n.get)||fn(n.set))?(e[t]=So(n),e):e},{});Uo(j,C,{self:!0})}j.create=j.create||c,j.init=j.init||l,j.inited=j.inited||f,j.destroy=j.destroy||d,j.$dom=j.__dispatcher.dom.insertPlugin(j.__id,_,{penetrate:k,inner:O,className:S}),j.$autoFocus=gn(T)?T:O,j.$inner=O,j.$penetrate=k,Uo(j,{$inner:Bo,$penetrate:Bo},{self:!0}),j.$operable=gn(P.operable)?P.operable:s,j.__level=pn(P.level)?P.level:o,j.$config=P;try{fn(j.create)&&j.create()}catch(e){j.$throwError(e)}return j}return Kt(t,yu),Lt(t,[{key:"__init",value:function(e){try{fn(this.init)&&this.init(e)}catch(e){this.$throwError(e)}}},{key:"__inited",value:function(){var e=this,t=void 0;try{t=fn(this.inited)&&this.inited()}catch(e){this.$throwError(e)}return this.readySync=!bn(t),this.ready=this.readySync?Wr.resolve(this):t.then(function(){return e.readySync=!0,e}).catch(function(t){return xn(t)?e.$throwError(t):Wr.reject(t)}),this.readySync?this:this.ready}},{key:"$bumpToTop",value:function(){var e=this.__dispatcher._getTopLevel(this.$inner);this.$level=e+1}},{key:"$throwError",value:function(e){this.__dispatcher.throwError(e)}},{key:"$destroy",value:function(){this.destroyed||(fn(this.destroy)&&this.destroy(),fa(t.prototype.__proto__||St(t.prototype),"__destroy",this).call(this),this.__dispatcher.dom.removePlugin(this.__id),delete this.__dispatcher,delete this.$dom,this.destroyed=!0)}},{key:"$operable",set:function(e){gn(e)&&(this.$dom.style.pointerEvents=e?"auto":"none",this.__operable=e)},get:function(){return this.__operable}},{key:"$level",set:function(e){pn(e)&&(this.__level=e,this.__dispatcher._sortZIndex())},get:function(){return this.__level}},{key:"$autoFocus",get:function(){return this.__autoFocus},set:function(e){this.__autoFocus=e,this.__dispatcher.dom._autoFocusToVideo(this.$dom,!e)}}]),t}())||uu;function gu(e,t,n,r,i){var o={};return Object.keys(r).forEach(function(e){o[e]=r[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function bu(e){if("video"===e&&(e="videoElement"),!En(this[e]))throw new TypeError('Your target "'+e+'" is not a legal HTMLElement');for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[e].concat(n)}function wu(e,t,n){if(!mn(t))throw new TypeError("to handle dom's attribute or style, your attr parameter must be string, but not "+t+" in "+(void 0===t?"undefined":kt(t)));if(!mn(e))throw new TypeError("to handle dom's attribute or style, your target parameter must be string, , but not "+e+" in "+(void 0===e?"undefined":kt(e)));return[e,t,n]}var _u,Eu,ku,xu,Ou,Tu=(cu=Ko("__dispatcher.videoConfigReady"),lu=Ao(wu,bu),fu=Ao(wu,bu),du=Ao(wu,bu),hu=Ao(wu,bu),pu=Ao(bu),gu((vu=function(){function e(t,n){At(this,e),this.plugins={},this.originHTML="",this.__mouseInVideo=!1,this.destroyed=!1,this.__videoExtendedNodes=[],this.isFullscreen=!1,this.fullscreenElement=void 0;var r=(t||{}).wrapper;if(this.__dispatcher=n,!En(r)&&!mn(r))throw new TypeError("Wrapper can only be string or HTMLElement, but not "+(void 0===r?"undefined":kt(r)));var i=ki(r);if(0===i.length)throw new TypeError("Can not get dom node accroding wrapper. Please check your wrapper");this.wrapper=i[0],this.originHTML=this.wrapper.innerHTML;var o=i.find("video")[0];o||(o=document.createElement("video")),this.installVideo(o),this._fullscreenMonitor(),xa.on("fullscreenchange",this._fullscreenMonitor);var a=ln(t.videoRequiredGuardedAttributes)?t.videoRequiredGuardedAttributes:[];a.indexOf("style")<0&&a.unshift("style"),this.videoRequireGuardedAttributes=a}return Lt(e,[{key:"mouseInVideo",get:function(){return this.__mouseInVideo},set:function(e){this.__mouseInVideo=!!e}},{key:"videoExtendedNodes",get:function(){return this.__videoExtendedNodes}}]),Lt(e,[{key:"installVideo",value:function(e){if(this.__videoExtendedNodes.push(e),fi(e,"tabindex",-1),this._autoFocusToVideo(e),En(this.container)){var t=this.container;0===t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[0])}else e.parentElement&&En(e.parentElement)&&e.parentElement!==this.wrapper?this.container=e.parentElement:(this.container=document.createElement("container"),ki(this.container).append(e));return this.container.parentElement!==this.wrapper&&ki(this.wrapper).append(this.container),this.videoElement=e,e}},{key:"removeVideo",value:function(){var e=this.videoElement;return this._autoFocusToVideo(this.videoElement,!1),this.__dispatcher.binder&&this.__dispatcher.binder.bindEventOnVideo(e,!0),ki(e).remove(),delete this.videoElement,e}},{key:"insertPlugin",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!mn(e))throw new TypeError("insertPlugin id parameter must be string");if(En(this.plugins[e])&&this.removePlugin(e),mn(t))if(/<[^>]+?>/.test(t)){var r=document.createElement("div");r.innerHTML=t,t=r.children[0]}else t=document.createElement(function(e){return qn(e).replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}(t));else dn(t)&&(n=t);var i=n,o=i.inner,a=i.penetrate,s=n.className,u=t&&En(t)?t:document.createElement("div");ln(s)&&(s=s.join(" ")),mn(s)&&di(u,s),this.plugins[e]=u;var c=o?this.container:this.wrapper,l=o?this.videoElement:this.container;return a&&(this.__dispatcher.binder.bindEventOnPenetrateNode(u),this.__videoExtendedNodes.push(u)),c.lastChild===l?(c.appendChild(u),u):(c.insertBefore(u,l.nextSibling),u)}},{key:"removePlugin",value:function(e){if(mn(e)){var t=this.plugins[e];En(t)&&(t.parentNode&&t.parentNode.removeChild(t),this._autoFocusToVideo(t,!0));var n=(lc.getPluginConfig(e)||{}).penetrate;void 0!==n&&n&&this.__dispatcher.binder.bindEventOnPenetrateNode(t,!0),delete this.plugins[e]}}},{key:"setPluginsZIndex",value:function(e){var t=this;e.forEach(function(e,n){return bi(e.match(/^(videoElement|container)$/)?t[e]:t.plugins[e],"z-index",++n)})}},{key:"setAttr",value:function(e,t,n){fi(this[e],t,n)}},{key:"getAttr",value:function(e,t){return li(this[e],t)}},{key:"setStyle",value:function(e,t,n){bi(this[e],t,n)}},{key:"getStyle",value:function(e,t){return gi(this[e],t)}},{key:"requestFullscreen",value:function(e){return xa.open(this[e])}},{key:"exitFullscreen",value:function(){return xa.exit()}},{key:"fullscreen",value:function(){for(var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"container",n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e?this.requestFullscreen.apply(this,[t].concat(Gn(r))):this.exitFullscreen.apply(this,Gn(r))}},{key:"focus",value:function(){this.videoElement.focus()}},{key:"isNodeInsideVideo",value:function(e){return this.__videoExtendedNodes.indexOf(e)>-1||this.__videoExtendedNodes.reduce(function(t,n){return t||kn(n,e)},!1)}},{key:"migrateVideoRequiredGuardedAttributes",value:function(e){var t=this;this.videoRequireGuardedAttributes.map(function(e){return[e,li(t.videoElement,e)]}).forEach(function(t){var n=qi(t,2),r=n[0],i=n[1];return fi(e,r,i)})}},{key:"destroy",value:function(){this.removeVideo(),xa.off("fullscreenchange",this._fullscreenMonitor),this.wrapper.innerHTML=this.originHTML,delete this.wrapper,delete this.plugins,this.destroyed=!0}},{key:"_autoFocusToVideo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];En(e)&&((t?yi:mi)(e,"mouseup",this._focusToVideo,!1,!0),(t?yi:mi)(e,"touchend",this._focusToVideo,!1,!0))}},{key:"_focusToVideo",value:function(){var e=window.scrollX,t=window.scrollY;fn(this.videoElement.focus)&&this.videoElement.focus(),window.scrollTo(e,t)}},{key:"_fullscreenMonitor",value:function(e){var t=xa.fullscreenElement,n=this.isFullscreen;!t||!kn(this.wrapper,t)&&t!==this.wrapper?(this.isFullscreen=!1,this.fullscreenElement=void 0):(this.isFullscreen=!0,this.fullscreenElement=this.wrapper===t?"wrapper":this.container===t?"container":this.videoElement===t?"video":t),yn(e)&&n!==this.isFullscreen&&this.__dispatcher.binder.triggerSync({name:"fullscreenchange",target:"esFullscreen",id:"dispatcher"},e)}}]),e}()).prototype,"setAttr",[cu,lu],Ii(vu.prototype,"setAttr"),vu.prototype),gu(vu.prototype,"getAttr",[fu],Ii(vu.prototype,"getAttr"),vu.prototype),gu(vu.prototype,"setStyle",[du],Ii(vu.prototype,"setStyle"),vu.prototype),gu(vu.prototype,"getStyle",[hu],Ii(vu.prototype,"getStyle"),vu.prototype),gu(vu.prototype,"requestFullscreen",[pu],Ii(vu.prototype,"requestFullscreen"),vu.prototype),gu(vu.prototype,"_focusToVideo",[Ro],Ii(vu.prototype,"_focusToVideo"),vu.prototype),gu(vu.prototype,"_fullscreenMonitor",[Ro],Ii(vu.prototype,"_fullscreenMonitor"),vu.prototype),vu),Su={width:"100%",height:"100%",position:"relative",display:"block"},Au=function e(t,n,r){var i=this;At(this,e),this.__dispatcher=t,this.__target=n,["width","height","position","display"].forEach(function(e){$t(i,e,{get:function(){return this.__dispatcher.dom.getStyle(this.__target,e)},set:function(t){if(hn(t)&&(t+="px"),!mn(t))throw new Error("The value of "+e+" in "+this.__target+"Config must be string, but not "+(void 0===t?"undefined":kt(t))+".");this.__dispatcher.dom.setStyle(this.__target,e,t)},configurable:!0,enumerable:!0})}),Un(this,r)};function Pu(e,t,n,r,i){var o={};return Object.keys(r).forEach(function(e){o[e]=r[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var ju=/^(before|after|_)/;function Cu(e){return!e.match(ju)}var Mu,$u,Lu,Fu,Nu,zu,Ru,Iu,Bu,Vu,Du,Ku,Gu=(_u=Jo(Cu),Eu=Jo(Cu,{backup:function(){return!1}}),ku=Jo(Cu),xu=Jo(Cu,{backup:function(){return!1}}),Pu((Ou=function(){function e(t,n){At(this,e),this.events={},this.onceMap={},this.__dispatcher=t,this.__kind=n}return Lt(e,[{key:"on",value:function(e,t,n,r){this._addEvent([t,r,e],n)}},{key:"off",value:function(e,t,n,r){var i=[t,r,e];if(!this._removeEvent(i,n)){var o=this._getHandlerFromOnceMap(i,n);fn(o)&&this._removeEvent(i,o)&&this._removeFromOnceMap(i,n,o)}}},{key:"once",value:function(e,t,n,r){var i=this,o=[t,r,e],a=function e(){Yn(n,this).apply(void 0,arguments),i._removeEvent(o,e),i._removeFromOnceMap(o,n,e)};this._addEvent(o,a),this._addToOnceMap(o,n,a)}},{key:"emit",value:function(e){for(var t=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=this.events[e];if(vn(o))return Es.indexOf(e)>-1?Wr.resolve():this._eventProcessor.apply(this,[e,{sync:!1}].concat(Gn(r)));var a=this._getEventQueue(o.before,this.__dispatcher.order);return qr.apply(void 0,[a].concat(Gn(r))).then(function(){if(!(Es.indexOf(e)>-1))return t._eventProcessor.apply(t,[e,{sync:!1}].concat(Gn(r)))}).catch(function(e){return xn(e)&&t.__dispatcher.throwError(e),Wr.reject(e)})}},{key:"emitSync",value:function(e){for(var t=this.events[e],n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(vn(t))return Es.indexOf(e)>-1||this._eventProcessor.apply(this,[e,{sync:!0}].concat(Gn(r)));var o=this._getEventQueue(t.before,this.__dispatcher.order);return Yr.apply(void 0,[o].concat(Gn(r)))&&(Es.indexOf(e)>-1||this._eventProcessor.apply(this,[e,{sync:!0}].concat(Gn(r))))}},{key:"trigger",value:function(e){for(var t=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=this.events[e];if(vn(o))return Wr.resolve(!0);var a=this._getEventQueue(o.main,this.__dispatcher.order);return qr.apply(void 0,[a].concat(Gn(r))).then(function(){var e=t._getEventQueue(o.after,t.__dispatcher.order);return qr.apply(void 0,[e].concat(Gn(r)))}).then(function(){return t._runSideEffectEvent.apply(t,[e,t.__dispatcher.order].concat(Gn(r)))}).catch(function(n){return xn(n)&&t.__dispatcher.throwError(n),t._runSideEffectEvent.apply(t,[e,t.__dispatcher.order].concat(Gn(r)))})}},{key:"triggerSync",value:function(e){var t=this.events[e];if(vn(t))return!0;for(var n=this._getEventQueue(t.main,this.__dispatcher.order),r=this._getEventQueue(t.after,this.__dispatcher.order),i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];var s=Yr.apply(void 0,[n].concat(Gn(o)))&&Yr.apply(void 0,[r].concat(Gn(o)));return this._runSideEffectEvent.apply(this,[e,this.__dispatcher.order].concat(Gn(o))),s}},{key:"destroy",value:function(){delete this.events,delete this.__dispatcher}},{key:"_addEvent",value:function(e,t){var n=(e=Hn(e)).pop(),r=e.reduce(function(e,t){return e[t]=e[t]||{},e[t]},this.events);r[n]=r[n]||[],r[n].push(t)}},{key:"_removeEvent",value:function(e,t){for(var n=(e=Hn(e)).pop(),r=this.events,i=[],o=0,a=e.length;o<a;o++){var s=r[e[o]];if(vn(s))return;i.push([r,e[o]]),r=s}var u=r[n]||[],c=u.indexOf(t),l=c>-1;if(l&&u.splice(c,1),u.length<1){delete r[n];for(var f=i.length-1;f>-1;f--){var d=qi(i[f],2),h=d[0],p=d[1];if(!vn(h[p]))break;delete h[p]}}return l}},{key:"_addToOnceMap",value:function(e,t,n){var r=e.join("-"),i=this.onceMap[r]=this.onceMap[r]||new Ma;i.has(t)||i.set(t,[]),i.get(t).push(n)}},{key:"_removeFromOnceMap",value:function(e,t,n){var r=e.join("-"),i=this.onceMap[r],o=i.get(t),a=o.indexOf(n);o.splice(a,1),vn(o)&&i.delete(t)}},{key:"_getHandlerFromOnceMap",value:function(e,t){var n=e.join("-"),r=this.onceMap[n];if(!cn(r)&&r.has(t))return r.get(t)[0]}},{key:"_getEventStage",value:function(e){var t=e.match(ju),n=t&&t[0]||"main";return t&&(e=qn(e.replace(ju,""))),{stage:n,key:e}}},{key:"_getEventQueue",value:function(e,t){var n=this;return t=ln(t)?t.concat(["_vm"]):["_vm"],vn(e)?[]:t.reduce(function(t,r){return vn(e[r])||!ln(e[r])||!n.__dispatcher.plugins[r]&&"_vm"!==r?t:t.concat(e[r].map(function(e){return Yn(e,n.__dispatcher.plugins[r]||n.__dispatcher.vm)}))},[])}},{key:"_eventProcessor",value:function(e,t){for(var n=t.sync,r=xs.indexOf(e)>-1,i=Ss.indexOf(e)>-1,o=Os.indexOf(e)>-1,a=arguments.length,s=Array(a>2?a-2:0),u=2;u<a;u++)s[u-2]=arguments[u];if(r||i||o){var c,l;if(o)(c=this.__dispatcher)[e].apply(c,Gn(s));else(l=this.__dispatcher[r?"kernel":"dom"])[e].apply(l,Gn(s));if(ms.indexOf(e)>-1||bs.indexOf(e)>-1)return!0}return this[n?"triggerSync":"trigger"].apply(this,[e].concat(Gn(s)))}},{key:"_runSideEffectEvent",value:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=this.events[e];return!vn(o)&&(this._getEventQueue(o._,t).forEach(function(e){return e.apply(void 0,Gn(r))}),!0)}}]),e}()).prototype,"emit",[_u],Ii(Ou.prototype,"emit"),Ou.prototype),Pu(Ou.prototype,"emitSync",[Eu],Ii(Ou.prototype,"emitSync"),Ou.prototype),Pu(Ou.prototype,"trigger",[ku],Ii(Ou.prototype,"trigger"),Ou.prototype),Pu(Ou.prototype,"triggerSync",[xu],Ii(Ou.prototype,"triggerSync"),Ou.prototype),Ou);function Wu(e,t,n,r,i){var o={};return Object.keys(r).forEach(function(e){o[e]=r[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var Hu=/^(before|after|_)/;function Uu(e){var t,n,r=e.name,i=e.target,o=e.stage,a=(t=r,n=new RegExp("^(c|w)_"),t.match(n)?{name:t.replace(n,""),target:0===t.indexOf("c")?"container":"wrapper"}:"error"===t&&{name:"error",target:"kernel"});a&&(r=a.name,i=a.target);var s=function(e){var t=e.match(Hu),n=t&&t[0]||"main";return t&&(e=qn(e.replace(Hu,""))),{name:e,stage:n}}(r),u=s.stage;return r=s.name,i||(i=function(e){return ms.indexOf(e)>-1?"video":Ts.indexOf(e)>-1?"kernel":bs.indexOf(e)>-1?"video-dom":ws.indexOf(e)>-1?"esFullscreen":"plugin"}(r)),{name:r,stage:o||u,target:i}}function qu(e){var t=e.id,n=e.fn,r=Uu(e),i=r.name,o=r.target,a=r.stage;if(!fn(n))throw new Error("You must provide a function to handle with event "+i+", but not "+(void 0===n?"undefined":kt(n)));return{id:t,fn:n,name:i,target:o,stage:a}}function Yu(e){var t=e.id,n=e.name;return n&&mn(n)&&!Hu.test(n)?!(!t||!mn(t))||(Tn.error("You must provide the id of emitter"),!1):(Tn.error("You must provide a legal event name, which is string and could not started with before/after/_"),!1)}function Xu(e){e.target=Uu(e).target;for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[e].concat(Gn(n))}var Ju,Zu,Qu,ec,tc,nc,rc=(Mu=Ao(qu),$u=Ao(qu),Lu=Ao(qu),Fu=Jo(Yu),Nu=Ao(Xu),zu=Jo(Yu,{backup:function(){return!1}}),Ru=Ao(Xu),Iu=Jo(Yu),Bu=Ao(Xu),Vu=Jo(Yu,{backup:function(){return!1}}),Du=Ao(Xu),Wu((Ku=function(){function e(t){At(this,e),this.__dispatcher=t,this.kinds=["kernel","container","wrapper","video","video-dom","plugin","esFullscreen"],this.buses={},this.bindedEventNames={},this.bindedEventInfo={},this.pendingEventsInfo={};var n=!0,r=!1,i=void 0;try{for(var o,a=Ui(this.kinds);!(n=(o=a.next()).done);n=!0){var s=o.value;this.bindedEventNames[s]=[],this.bindedEventInfo[s]=[],this.pendingEventsInfo[s]=[],this.buses[s]=new Gu(t,s)}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}return Lt(e,[{key:"on",value:function(e){var t=e.target,n=e.id,r=e.name,i=e.fn,o=e.stage;return this._addEventListenerOnTarget({name:r,target:t,id:n}),this.buses[t].on(n,r,i,o)}},{key:"off",value:function(e){var t=e.target,n=e.id,r=e.name,i=e.fn,o=e.stage,a=this.buses[t].off(n,r,i,o);return this._removeEventListenerOnTargetWhenIsUseless({name:r,target:t}),a}},{key:"once",value:function(e){var t=e.target,n=e.id,r=e.name,i=e.fn,o=e.stage;return this.buses[t].once(n,r,i,o)}},{key:"emit",value:function(e){for(var t,n=e.target,r=e.name,i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return(t=this.buses[n]).emit.apply(t,[r].concat(Gn(o)))}},{key:"emitSync",value:function(e){for(var t,n=e.target,r=e.name,i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return(t=this.buses[n]).emitSync.apply(t,[r].concat(Gn(o)))}},{key:"trigger",value:function(e){for(var t,n=e.target,r=e.name,i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return(t=this.buses[n]).trigger.apply(t,[r].concat(Gn(o)))}},{key:"triggerSync",value:function(e){for(var t,n=e.target,r=e.name,i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return(t=this.buses[n]).triggerSync.apply(t,[r].concat(Gn(o)))}},{key:"bindEventOnPenetrateNode",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.bindedEventInfo["video-dom"].forEach(function(r){var i=qi(r,2),o=i[0],a=i[1];n?yi(e,o,a):t._addEventOnDom(e,o,a)})}},{key:"bindEventOnVideo",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.bindedEventInfo["video-dom"].concat(this.bindedEventInfo.video).forEach(function(r){var i=qi(r,2),o=i[0],a=i[1];n?yi(e,o,a):t._addEventOnDom(e,o,a)})}},{key:"listenOnMouseMoveEvent",value:function(e){var t=this,n=this.__dispatcher.dom,r="video-dom",i="_vm";ks.forEach(function(o){var a=function(){for(var e=arguments.length,a=Array(e),s=0;s<e;s++)a[s]=arguments[s];var u=a[0],c=u.toElement,l=u.currentTarget,f=u.relatedTarget,d=u.type,h=c||f;return n.mouseInVideo&&"mouseleave"===d&&!n.isNodeInsideVideo(h)?(n.mouseInVideo=!1,t.triggerSync.apply(t,[{target:r,name:o,id:i}].concat(a))):!n.mouseInVideo&&"mouseenter"===d&&n.isNodeInsideVideo(l)?(n.mouseInVideo=!0,t.triggerSync.apply(t,[{target:r,name:o,id:i}].concat(a))):void 0};t._addEventOnDom(e,o,a),t.bindedEventNames[r].indexOf(o)<0&&(t.bindedEventNames[r].push(o),t.bindedEventInfo[r].push([o,a]))})}},{key:"migrateKernelEvent",value:function(e,t){this.bindedEventInfo.kernel.forEach(function(n){var r=qi(n,2),i=r[0],o=r[1];e.off(i,o),t.on(i,o)})}},{key:"destroy",value:function(){var e=this;this.kinds.forEach(function(t){if("kernel"===t)e.bindedEventInfo.kernel.forEach(function(t){var n=qi(t,2),r=n[0],i=n[1];e.__dispatcher.kernel.off(r,i)});else{var n=e._getTargetDom(t);e.bindedEventInfo[t].forEach(function(r){var i=qi(r,2),o=i[0],a=i[1];yi(n,o,a),"video-dom"===t&&e.__dispatcher.dom.videoExtendedNodes.forEach(function(e){return yi(e,o,a)})})}e.bindedEventInfo.kernel=[],e.bindedEventNames.kernel=[]})}},{key:"_addEventOnDom",value:function(e,t,n){if(_s.indexOf(t)>-1)return mi(e,t,n,!1,{passive:!0});mi(e,t,n)}},{key:"_addEventListenerOnTarget",value:function(e){var t=this,n=e.name,r=e.target,i=e.id;if(this._isEventNeedToBeHandled(r,n)){var o=void 0;if(!(this.bindedEventNames[r].indexOf(n)>-1)){var a=this._getTargetDom(r);if("kernel"===r){if(!this.__dispatcher.kernel)return void this.addPendingEvent(r,n,i);o=function(){for(var e=arguments.length,i=Array(e),o=0;o<e;o++)i[o]=arguments[o];return t.triggerSync.apply(t,[{target:r,name:n,id:"kernel"}].concat(i))},this.__dispatcher.kernel.on(n,o)}else"container"===r||"wrapper"===r?(o=function(){for(var e=arguments.length,i=Array(e),o=0;o<e;o++)i[o]=arguments[o];return t.triggerSync.apply(t,[{target:r,name:n,id:r}].concat(i))},this._addEventOnDom(a,n,o)):"video"===r?(o=function(){for(var e=arguments.length,i=Array(e),o=0;o<e;o++)i[o]=arguments[o];return t.trigger.apply(t,[{target:r,name:n,id:r}].concat(i))},this._addEventOnDom(a,n,o)):"video-dom"===r&&(o=function(){for(var e=arguments.length,i=Array(e),o=0;o<e;o++)i[o]=arguments[o];return t.triggerSync.apply(t,[{target:r,name:n,id:r}].concat(i))},this.__dispatcher.dom.videoExtendedNodes.forEach(function(e){return t._addEventOnDom(e,n,o)}),this._addEventOnDom(a,n,o));this.bindedEventNames[r].push(n),this.bindedEventInfo[r].push([n,o])}}}},{key:"_removeEventListenerOnTargetWhenIsUseless",value:function(e){var t=e.name,n=e.target;if(this._isEventNeedToBeHandled(n,t)){var r=this.bindedEventNames[n],i=r.indexOf(t);if(!(i<0)&&vn(this.buses[n].events[t])){var o=this.bindedEventInfo[n],a=void 0,s=void 0;for(s=0;s<o.length;s++)if(o[s][0]===t){a=o[s][1];break}if(fn(a)){if("kernel"===n)this.__dispatcher.kernel.off(t,a);else yi(this._getTargetDom(n),t,a),"video-dom"===n&&this.__dispatcher.dom.videoExtendedNodes.forEach(function(e){yi(e,t,a)});o.splice(s,1),r.splice(i,1)}}}}},{key:"_getTargetDom",value:function(e){var t=void 0;switch(e){case"container":case"wrapper":t=this.__dispatcher.dom[e];break;default:t=this.__dispatcher.dom.videoElement}return t}},{key:"_isEventNeedToBeHandled",value:function(e,t){return"plugin"!==e&&"esFullscreen"!==e&&(ks.indexOf(t)<0||"video"!==e)}},{key:"addPendingEvent",value:function(e,t,n){this.pendingEventsInfo[e].push([t,n])}},{key:"applyPendingEvents",value:function(e){for(var t=this.pendingEventsInfo[e],n=t.splice(0,t.length);n.length;){var r=n.pop(),i=qi(r,2),o=i[0],a=i[1];this._addEventListenerOnTarget({name:o,target:e,id:a})}}}]),e}()).prototype,"on",[Mu],Ii(Ku.prototype,"on"),Ku.prototype),Wu(Ku.prototype,"off",[$u],Ii(Ku.prototype,"off"),Ku.prototype),Wu(Ku.prototype,"once",[Lu],Ii(Ku.prototype,"once"),Ku.prototype),Wu(Ku.prototype,"emit",[Fu,Nu],Ii(Ku.prototype,"emit"),Ku.prototype),Wu(Ku.prototype,"emitSync",[zu,Ru],Ii(Ku.prototype,"emitSync"),Ku.prototype),Wu(Ku.prototype,"trigger",[Iu,Bu],Ii(Ku.prototype,"trigger"),Ku.prototype),Wu(Ku.prototype,"triggerSync",[Vu,Du],Ii(Ku.prototype,"triggerSync"),Ku.prototype),Ku);function ic(e,t,n,r,i){var o={};return Object.keys(r).forEach(function(e){o[e]=r[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var oc={},ac={};function sc(e){if(!mn(e))throw new Error("Plugin's name must be a string, but not \""+e+'" in '+(void 0===e?"undefined":kt(e)));return qn(e)}var uc,cc,lc=(Ju=Ao(sc),Zu=Ao(function(e){if(fn(e)){if(!(e.prototype instanceof mu))throw new TypeError("Your are trying to install plugin "+e.name+", but it's not extends from Chimee.plugin.")}else{if(!dn(e)||vn(e))throw new TypeError("plugin's config must be an Object, but not \""+e+'" in '+(void 0===e?"undefined":kt(e)));var t=e.name;if(!mn(t)||t.length<1)throw new TypeError('plugin must have a legal namea, but not "'+t+'" in '+(void 0===t?"undefined":kt(t)))}}),Qu=Ao(sc),ec=Ao(sc),tc=Ao(sc),ic((nc=function(){function e(t,n){var r=this;if(At(this,e),this.plugins={},this.order=[],this.readySync=!1,this.zIndexMap={inner:[],outer:[]},this.changeWatchable=!0,this.kernelEventHandlerList=[],!dn(t))throw new TypeError('UserConfig must be an Object, but not "'+t+'" in '+(void 0===t?"undefined":kt(t)));this.dom=new Tu(t,this),this.vm=n,this.videoConfigReady=!1,this.videoConfig=new au(this,t),ln(t.plugins)&&!ln(t.plugin)&&(t.plugin=t.plugins,delete t.plugins),this.binder=new rc(this),this.binder.listenOnMouseMoveEvent(this.dom.videoElement),this._initUserPlugin(t.plugin);var i=Un({},Su,t.container||{});if(this.order.forEach(function(e){return r.plugins[e].__init(r.videoConfig,i)}),this.videoConfigReady=!0,this.videoConfig.init(),this.containerConfig=new Au(this,"container",i),this.kernel=this._createKernel(this.dom.videoElement,this.videoConfig),this.binder.applyPendingEvents("kernel"),t.noDefaultContextMenu){var o=t.noDefaultContextMenu,a="container"===o||"wrapper"===o?o:"video-dom";this.binder.on({target:a,id:"_vm",name:"contextmenu",fn:function(e){return e.preventDefault()},stage:"main"})}var s=[];this.order.forEach(function(e){var t=r.plugins[e].__inited();bn(t)&&s.push(t)}),this.readySync=0===s.length,this.ready=this.readySync?Wr.resolve():Wr.all(s).then(function(){r.readySync=!0,r.onReady()}),this.readySync&&this.onReady()}return Lt(e,[{key:"onReady",value:function(){this.binder.trigger({target:"plugin",name:"ready",id:"dispatcher"}),this._autoloadVideoSrcAtFirst()}},{key:"use",value:function(t){if(mn(t)&&(t={name:t,alias:void 0}),!dn(t)||dn(t)&&!mn(t.name))throw new TypeError("pluginConfig do not match requirement");mn(t.alias)||(t.alias=void 0);var n=t,r=n.name,i=n.alias;t.name=i||r,delete t.alias;var o=qn(r),a=qn(i||r),s=t,u=e.getPluginConfig(o);if(vn(u))throw new TypeError("You have not installed plugin "+o);dn(u)&&(u.id=a);var c=fn(u)?new u({id:a},this,s):new mu(u,this,s);return this.plugins[a]=c,$t(this.vm,a,{value:c,configurable:!0,enumerable:!1,writable:!1}),this.order.push(a),this._sortZIndex(),this.videoConfigReady&&c.__inited(),c.ready}},{key:"unuse",value:function(e){var t=this.plugins[e];if(dn(t)&&fn(t.$destroy)){t.$destroy();var n=this.order.indexOf(e);n>-1&&this.order.splice(n,1),delete this.plugins[e],delete this.vm[e]}else delete this.plugins[e]}},{key:"throwError",value:function(e){this.vm.__throwError(e)}},{key:"silentLoad",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.duration,i=void 0===r?3:r,o=n.bias,a=void 0===o?0:o,s=n.repeatTimes,u=void 0===s?0:s,c=n.increment,l=void 0===c?0:c,f=n.isLive,d=void 0===f?this.videoConfig.isLive:f,h=n.box,p=void 0===h?this.videoConfig.box:h,v=n.kernels,y=void 0===v?this.videoConfig.kernels:v,m=n.preset,g=void 0===m?this.videoConfig.preset:m,b=n.immediate||d,w={isLive:d,box:p,src:e,kernels:y,preset:g};return qr(new Array(u+1).fill(1).map(function(e,r){return function(){return new Wr(function(e,o){n.abort&&o({error:!0,message:"user abort the mission"});var s=document.createElement("video"),c=t.kernel.currentTime+i+l*r;s.muted=!0;var f=!1,h=void 0,p=void 0,v=void 0,y=void 0,m=function n(){var r=t.kernel.currentTime;if(a<=0&&r>=c||a>0&&(Math.abs(c-r)<=a&&f||r-c>a))return yi(t.dom.videoElement,"timeupdate",n),yi(s,"error",p,!0),f?o({error:!1,video:s,kernel:h}):(yi(s,"canplay",v,!0),yi(s,"loadedmetadata",y,!0),h.destroy(),e())};v=function(){if(f=!0,b)return yi(t.dom.videoElement,"timeupdate",m),yi(s,"error",p,!0),o({error:!1,video:s,kernel:h})},y=function(){d||h.seek(b?t.kernel.currentTime:c)},p=function(n){yi(s,"canplay",v,!0),yi(s,"loadedmetadata",y,!0),yi(t.dom.videoElement,"timeupdate",m),h.off("error",p);var i=void 0;if(!vn(n.data)&&n.data.errmsg){var a=n.data.errmsg;Tn.error("chimee's silentload bump into a kernel error",a),i=new Error(a)}else i=vn(s.error)?new Error("unknow video error"):new Error(s.error.message),Tn.error("chimee's silentload",i.message);return h.destroy(),t._silentLoadTempKernel=void 0,r===u?o(i):e(i)},mi(s,"canplay",v,!0),mi(s,"loadedmetadata",y,!0),mi(s,"error",p,!0),h=t._createKernel(s,w),t._silentLoadTempKernel=h,h.on("error",p),mi(t.dom.videoElement,"timeupdate",m),h.load()})}})).then(function(){var t="The silentLoad for "+e+" timed out. Please set a longer duration or check your network";return Wr.reject(new Error(t))}).catch(function(e){if(xn(e))return Wr.reject(e);if(e.error)return Wr.reject(new Error(e.message));var r=e.video,i=e.kernel;return n.abort?(i.destroy(),Wr.reject(new Error("user abort the mission"))):t.dom.videoElement.paused?(t.switchKernel({video:r,kernel:i,config:w}),Wr.resolve()):new Wr(function(e){mi(r,"play",function(){t.switchKernel({video:r,kernel:i,config:w}),e()},!0),r.play()})})}},{key:"load",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=mn(e)?e:dn(e)&&mn(e.src)?e.src:"";dn(e)&&(delete e.src,t=e);var r=this.kernel.box,i=this.videoConfig,o=t,a=o.isLive,s=void 0===a?i.isLive:a,u=o.box,c=void 0===u?os({src:n,box:i.box}):u,l=o.preset,f=void 0===l?i.preset:l,d=o.kernels,h=void 0===d?i.kernels:d;if("native"!==c||c!==r||!vn(t)){var p=document.createElement("video"),v={isLive:s,box:c,preset:f,src:n,kernels:h},y=this._createKernel(p,v);this.switchKernel({video:p,kernel:y,config:v,notifyChange:!0})}var m=this.videoConfig.autoload;this._changeUnwatchable(this.videoConfig,"autoload",!1),this.videoConfig.src=n||this.videoConfig.src,this.kernel.load(this.videoConfig.src),this._changeUnwatchable(this.videoConfig,"autoload",m)}},{key:"switchKernel",value:function(e){var t=this,n=e.video,r=e.kernel,i=e.config,o=e.notifyChange,a=this.kernel,s=Hn(this.videoConfig);this.dom.migrateVideoRequiredGuardedAttributes(n),this.dom.removeVideo(),this.dom.installVideo(n),this.videoConfig.changeWatchable=!1,this.videoConfig.autoload=!1,this.videoConfig.src=i.src,this.videoConfig._realDomAttr.forEach(function(e){"src"!==e&&(t.videoConfig[e]=s[e])}),this.videoConfig.changeWatchable=!0,this.binder.migrateKernelEvent(a,r),this.kernel=r,this._silentLoadTempKernel=void 0;var u=i.isLive,c=i.box,l=i.preset,f=i.kernels;ti(this.videoConfig,{isLive:u,box:c,preset:l,kernels:f}),a.destroy(),o?this.binder&&this.binder.bindEventOnVideo&&this.binder.bindEventOnVideo(n):setTimeout(function(){t.binder&&t.binder.bindEventOnVideo&&t.binder.bindEventOnVideo(n)})}},{key:"destroy",value:function(){for(var e in this.plugins)this.unuse(e);this.binder.destroy(),delete this.binder,this.dom.destroy(),delete this.dom,this.kernel.destroy(),delete this.kernel,delete this.vm,delete this.plugins,delete this.order}},{key:"_initUserPlugin",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return ln(t)||(t=[]),t.map(function(t){return e.use(t)})}},{key:"_sortZIndex",value:function(){var e=this,t=this.order.reduce(function(t,n){var r=e.plugins[n];if(vn(r))return t;var i=t[r.$inner?"inner":"outer"],o=r.$level;return i[o]=i[o]||[],i[o].push(n),t},{inner:{},outer:{}}),n=t.inner,r=t.outer;n[0]=n[0]||[],n[0].unshift("videoElement"),r[0]=r[0]||[],r[0].unshift("container");var i=Ur(n),o=Ur(r);this.dom.setPluginsZIndex(i),this.dom.setPluginsZIndex(o),this.zIndexMap.inner=i,this.zIndexMap.outer=o}},{key:"_getTopLevel",value:function(e){var t=this.zIndexMap[e?"inner":"outer"],n=this.plugins[t[t.length-1]];return vn(n)?0:n.$level}},{key:"_autoloadVideoSrcAtFirst",value:function(){if(this.videoConfig.autoload){if(!this.videoConfig.src)return void Tn.warn("You have not set the src, so you better set autoload to be false. Accroding to https://github.com/Chimeejs/chimee/blob/master/doc/zh-cn/chimee-api.md#src.");this.binder.emit({name:"load",target:"plugin",id:"dispatcher"},{src:this.videoConfig.src})}}},{key:"_changeUnwatchable",value:function(e,t,n){this.changeWatchable=!1,e[t]=n,this.changeWatchable=!0}},{key:"_createKernel",value:function(e,t){var n=t.kernels,r=t.preset,i={},o={};return ln(n)&&(o=n.reduce(function(e,t){if(mn(t)){var n=ac[t];return fn(n)?(e[t]=n,e):(Tn.warn("You have not installed kernel for "+t+"."),e)}if(dn(t)){var r=t.name,o=t.handler;if(mn(o)){var a=ac[o];return fn(a)?(e[o]=a,i[o]=t,e):(Tn.warn("You have not installed kernel for "+o+"."),e)}if(fn(o)){var s=r||o.name;return e[s]=o,i[s]=t,e}return Tn.warn("When you pass in an SingleKernelConfig in Array, you must clarify it's handler, we only support handler in string or function but not "+(void 0===o?"undefined":kt(o))),e}return Tn.warn("If you pass in kernels as array, you must pass in kernels in string or function, but not "+(void 0===t?"undefined":kt(t))),e},{})),dn(n)&&Wt(n).forEach(function(e){var t=n[e];if(!fn(t)){if(dn(t)){var r=t.handler;if(mn(r)){var a=ac[r];return fn(a)?(o[e]=a,void(i[e]=t)):void Tn.warn("You have not installed kernel for "+r+".")}return fn(r)?(o[e]=r,void(i[e]=t)):void Tn.warn("When you pass in an SingleKernelConfig in Object, you must clarify it's handler, we only support handler in string or function but not "+(void 0===r?"undefined":kt(r)))}return Tn.warn("If you pass in kernels as object, you must pass in kernels in string or function, but not "+(void 0===t?"undefined":kt(t))),n}o[e]=t}),t.preset=ti(o,r),t.presetConfig=i,new ys(e,t)}}],[{key:"install",value:function(e){var t=qn(e.name);vn(oc[t]);var n=fn(e)?e:Un({id:t},e);return oc[t]=n,t}},{key:"hasInstalled",value:function(e){return!vn(oc[e])}},{key:"uninstall",value:function(e){delete oc[e]}},{key:"getPluginConfig",value:function(e){return oc[e]}},{key:"installKernel",value:function(e,t){(dn(e)?Na(e):[[e,t]]).forEach(function(e){var t=qi(e,2),n=t[0],r=t[1];if(!fn(r))throw new Error("The kernel you install on "+n+" must be a Function, but not "+(void 0===r?"undefined":kt(r)));fn(ac[n])&&Tn.warn("You have alrady install a kernel on "+n+", and now we will replace it"),ac[n]=r})}},{key:"uninstallKernel",value:function(e){delete ac[e]}},{key:"hasInstalledKernel",value:function(e){return fn(ac[e])}}]),e}()).prototype,"unuse",[Ju],Ii(nc.prototype,"unuse"),nc.prototype),ic(nc.prototype,"throwError",[Ro],Ii(nc.prototype,"throwError"),nc.prototype),ic(nc,"install",[Zu],Ii(nc,"install"),nc),ic(nc,"hasInstalled",[Qu],Ii(nc,"hasInstalled"),nc),ic(nc,"uninstall",[ec],Ii(nc,"uninstall"),nc),ic(nc,"getPluginConfig",[tc],Ii(nc,"getPluginConfig"),nc),nc);var fc,dc,hc,pc,vc,yc,mc,gc,bc,wc,_c,Ec,kc,xc,Oc,Tc,Sc,Ac,Pc,jc,Cc,Mc,$c=(uc=function(){function e(){var t,n;At(this,e),this.log={error:!0,info:!0,warn:!0,debug:!0,verbose:!0},n=this,(t=cc)&&$t(this,"_silent",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(n):void 0}),this.errorHandler=void 0;var r=Wt(this.log).reduce(function(e,t){return e[t]=So({get:function(){return Tn["ENABLE_"+t.toUpperCase()]},set:function(e){return Tn["ENABLE_"+t.toUpperCase()]=e,!0===e&&(this.silent=!1),e}}),e},{});Uo(this.log,r,{self:!0})}return Lt(e,[{key:"silent",get:function(){return this._silent},set:function(e){var t=this;e=!!e,this._silent=e,Wt(this.log).forEach(function(n){t.log[n]=!e})}},{key:"useStyleFullscreen",get:function(){return xa.useStyleFirst},set:function(e){xa.useStyleFirst=!!e}}]),e}(),fc=uc.prototype,dc="_silent",hc=[Go],pc={enumerable:!0,initializer:function(){return!1}},yc={},Object.keys(pc).forEach(function(e){yc[e]=pc[e]}),yc.enumerable=!!yc.enumerable,yc.configurable=!!yc.configurable,("value"in yc||yc.initializer)&&(yc.writable=!0),yc=hc.slice().reverse().reduce(function(e,t){return t(fc,dc,e)||e},yc),vc&&void 0!==yc.initializer&&(yc.value=yc.initializer?yc.initializer.call(vc):void 0,yc.initializer=void 0),void 0===yc.initializer&&(Object.defineProperty(fc,dc,yc),yc=null),cc=yc,uc);function Lc(e,t,n,r){n&&$t(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Fc(e,t,n,r,i){var o={};return Object.keys(r).forEach(function(e){o[e]=r[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var Nc=No()((Mc=Cc=function(e){function t(e){At(this,t);var n=Pt(this,(t.__proto__||St(t)).call(this));if(n.destroyed=!1,Lc(n,"__id",bc,n),Lc(n,"version",wc,n),Lc(n,"config",_c,n),mn(e)||En(e))e={wrapper:e,controls:!0};else{if(!dn(e))throw new Error("You must pass in an Object containing wrapper or string or element to new a Chimee");if(!e.wrapper)throw new Error("You must pass in an legal object")}return n.__dispatcher=new lc(e,n),n.ready=n.__dispatcher.ready,n.readySync=n.__dispatcher.readySync,n.__wrapAsVideo(n.__dispatcher.videoConfig),n}return Kt(t,yu),Lt(t,null,[{key:"registerEvents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.target;if(!t||!mn(t))throw new Error("The event name must be a string, but not "+(void 0===t?"undefined":kt(t)));if(!n||!mn(n))throw new Error("The event target must be a string, but not "+(void 0===n?"undefined":kt(n)));"kernel"===n&&Ts.push(t)}}]),Lt(t,[{key:"destroy",value:function(){this.destroyed||(fa(t.prototype.__proto__||St(t.prototype),"__destroy",this).call(this),this.__dispatcher.destroy(),Object.defineProperty(this,"__dispatcher",{get:function(){throw new Error("This instance has been destroyed.")},enumerable:!0,configurable:!0}),this.destroyed=!0)}},{key:"use",value:function(e){return this.__dispatcher.use(e)}},{key:"unuse",value:function(e){return this.__dispatcher.unuse(e)}},{key:"__throwError",value:function(e){mn(e)&&(e=new Error(e));var n=this.config.errorHandler||t.config.errorHandler;if(fn(n))return n(e);if(!t.config.silent){if(xn(e))throw e;console.error(e)}}}]),t}(),Cc.plugin=mu,Cc.config=new $c,Cc.install=lc.install,Cc.uninstall=lc.uninstall,Cc.hasInstalled=lc.hasInstalled,Cc.installKernel=lc.installKernel,Cc.uninstallKernel=lc.uninstallKernel,Cc.hasInstalledKernel=lc.hasInstalledKernel,Cc.getPluginConfig=lc.getPluginConfig,bc=Fc((gc=Mc).prototype,"__id",[Bo],{enumerable:!0,initializer:function(){return"_vm"}}),wc=Fc(gc.prototype,"version",[Bo],{enumerable:!0,initializer:function(){return"0.10.5"}}),_c=Fc(gc.prototype,"config",[Bo],{enumerable:!0,initializer:function(){return{errorHandler:void 0}}}),Fc(gc,"plugin",[Bo],(Ec=(Ec=Ii(gc,"plugin"))?Ec.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return Ec}}),gc),Fc(gc,"config",[Bo],(kc=(kc=Ii(gc,"config"))?kc.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return kc}}),gc),Fc(gc,"install",[Bo],(xc=(xc=Ii(gc,"install"))?xc.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return xc}}),gc),Fc(gc,"uninstall",[Bo],(Oc=(Oc=Ii(gc,"uninstall"))?Oc.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return Oc}}),gc),Fc(gc,"hasInstalled",[Bo],(Tc=(Tc=Ii(gc,"hasInstalled"))?Tc.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return Tc}}),gc),Fc(gc,"installKernel",[Bo],(Sc=(Sc=Ii(gc,"installKernel"))?Sc.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return Sc}}),gc),Fc(gc,"uninstallKernel",[Bo],(Ac=(Ac=Ii(gc,"uninstallKernel"))?Ac.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return Ac}}),gc),Fc(gc,"hasInstalledKernel",[Bo],(Pc=(Pc=Ii(gc,"hasInstalledKernel"))?Pc.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return Pc}}),gc),Fc(gc,"getPluginConfig",[Bo],(jc=(jc=Ii(gc,"getPluginConfig"))?jc.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return jc}}),gc),mc=gc))||mc;function zc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rc(e,t){return e(t={exports:{}},t.exports),t.exports}var Ic=zc(Rc(function(e,t){t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}})),Bc=Rc(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),Vc=Rc(function(e){var t=e.exports={version:"2.5.1"};"number"==typeof __e&&(__e=t)}),Dc=(Vc.version,function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!")}(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}),Kc=function(e){return"object"==typeof e?null!==e:"function"==typeof e},Gc=function(e){if(!Kc(e))throw TypeError(e+" is not an object!");return e},Wc=function(e){try{return!!e()}catch(e){return!0}},Hc=!Wc(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),Uc=Bc.document,qc=Kc(Uc)&&Kc(Uc.createElement),Yc=!Hc&&!Wc(function(){return 7!=Object.defineProperty((e="div",qc?Uc.createElement(e):{}),"a",{get:function(){return 7}}).a;var e}),Xc=Object.defineProperty,Jc={f:Hc?Object.defineProperty:function(e,t,n){if(Gc(e),t=function(e,t){if(!Kc(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!Kc(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!Kc(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!Kc(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}(t,!0),Gc(n),Yc)try{return Xc(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},Zc=Hc?function(e,t,n){return Jc.f(e,t,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}(1,n))}:function(e,t,n){return e[t]=n,e},Qc=function(e,t,n){var r,i,o,a=e&Qc.F,s=e&Qc.G,u=e&Qc.S,c=e&Qc.P,l=e&Qc.B,f=e&Qc.W,d=s?Vc:Vc[t]||(Vc[t]={}),h=d.prototype,p=s?Bc:u?Bc[t]:(Bc[t]||{}).prototype;for(r in s&&(n=t),n)(i=!a&&p&&void 0!==p[r])&&r in d||(o=i?p[r]:n[r],d[r]=s&&"function"!=typeof p[r]?n[r]:l&&i?Dc(o,Bc):f&&p[r]==o?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(o):c&&"function"==typeof o?Dc(Function.call,o):o,c&&((d.virtual||(d.virtual={}))[r]=o,e&Qc.R&&h&&!h[r]&&Zc(h,r,o)))};Qc.F=1,Qc.G=2,Qc.S=4,Qc.P=8,Qc.B=16,Qc.W=32,Qc.U=64,Qc.R=128;var el=Qc;el(el.S+el.F*!Hc,"Object",{defineProperty:Jc.f});var tl=Vc.Object,nl=function(e,t,n){return tl.defineProperty(e,t,n)},rl=Rc(function(e){e.exports={default:nl,__esModule:!0}});zc(rl);var il=zc(Rc(function(e,t){t.__esModule=!0;var n,r=(n=rl)&&n.__esModule?n:{default:n};t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),(0,r.default)(e,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()}));function ol(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}function al(e){return Array.isArray(e)}var sl=function(){function e(){Ic(this,e),this.startTime=0,this.endTime=0,this.event={},this.status=""}return il(e,[{key:"touchstart",value:function(e){this.startTouch=e.changedTouches[0],this.startTime=Date.now(),this.status="tapping"}},{key:"touchmove",value:function(e){var t=e.changedTouches[0],n=ol(this.startTouch.clientX,this.startTouch.clientY,t.clientX,t.clientY);"tapping"===this.status&&n>10?(this.status="panning",this.fire("panstart",e)):"panning"===this.status&&this.fire("panmove",e)}},{key:"touchend",value:function(e){this.endTouch=e.changedTouches[0];var t=Date.now(),n=ol(this.startTouch.clientX,this.startTouch.clientY,this.endTouch.clientX,this.endTouch.clientY),r=t-this.startTime;r<=250&&n<10&&(this.fire("tap",e),t-this.endTime<300&&this.fire("doubletap",e)),r>250&&n<10&&this.fire("press",e),n/r>.3&&n>=10&&this.fire("swipe",e),"panning"===this.status&&this.fire("panend",e),this.endTime=Date.now()}},{key:"touchcancel",value:function(e){}},{key:"on",value:function(e,t){al(this.event[e])?this.event[e].push(t):this.event[e]=[t]}},{key:"fire",value:function(e,t){al(this.event[e])&&this.event[e].forEach(function(e){e(t)})}}]),e}(),ul=["touchstart","touchmove","touchend","touchcancel"],cl=["tap","swipe","panstart","panmove","panend","press","doubletap"];function ll(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=void 0===t?"chimeeGesture":t,r=e.el,i=e.level,o=void 0===i?0:i,a=e.inner,s=void 0===a||a,u=e.autoFocus,c=e.className,l=e.beforeCreate,f=e.create,d=e.init,h=e.inited,p=e.destroy,v=e.data,y=e.computed,m=e.events,g=void 0===m?{}:m,b=e.methods,w=void 0===b?{}:b,_=e.penetrate,E=void 0!==_&&_,k=e.operable;return{name:n,el:r,level:o,inner:s,autoFocus:u,className:c,data:v,computed:y,beforeCreate:function(e){var t=this;this.gesture=new sl,this.c_gesture=new sl,this.w_gesture=new sl,this.d_gesture=new sl,ul.forEach(function(n){e.events[n]=function(e){t.gesture[n](e)},e.events["c_"+n]=function(e){t.c_gesture[n](e)},e.events["w_"+n]=function(e){t.w_gesture[n](e)}}),cl.forEach(function(n){t.gesture.on(n,function(r){var i=e.events[n];i&&i.call(t,r)}),t.c_gesture.on(n,function(r){var i=e.events["c_"+n];i&&i.call(t,r)}),t.w_gesture.on(n,function(r){var i=e.events["w_"+n];i&&i.call(t,r)}),t.d_gesture.on(n,function(r){var i=e.events["d_"+n];i&&i.call(t,r)})}),l&&l.call(this)},create:function(){var e=this;this._i=this._i||0,this._i++,ul.forEach(function(t){var n="__"+t;e[n]=function(n){e.d_gesture[t](n)},mi(e.$dom,t,e[n])}),f&&f.call(this)},init:d,inited:h,destroy:function(){var e=this;ul.forEach(function(t){var n="__"+t;yi(e.$dom,t,e[n])}),p&&p.call(this)},methods:w,penetrate:E,operable:void 0===k||k,events:g}}function fl(e,t,n,r){var i=e.$dom,o=function(e){var n=_i(e.target||e.srcElement,i,!0),o=wi(t,i,!0),a=void 0;o.find?a=o.find(function(e){return n.find(function(t){return e===t})}):o.forEach(function(e){return!a&&n.forEach(function(t){a||e!==t||(a=t)})}),a&&r.apply(a,arguments)};ii(i,n+"_delegate_"+t,r,o),e.events[n]=ln(e.events[n])?e.events[n]:[],e.events[n].push(o)}function dl(e,t,n,r){var i=oi(e.$dom,n+"_delegate_"+t,r);if(i){var o=e.events[n].indexOf(i);e.events[n].splice(o,1)}}function hl(e,t,n){ln(e.events[t])&&e.events[t].forEach(function(e){e(n)})}var pl,vl=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},yl=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ml=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},gl=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},bl=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},wl=function(){function e(t){vl(this,e),this.parent=t}return yl(e,[{key:"create",value:function(){this.createEl(),this.addAllEvent()}},{key:"destroy",value:function(){this.removeAllEvent()}},{key:"createEl",value:function(){this.$dom=document.createElement(this.option.tag),this.$dom.innerHTML=this.option.html,this.parent.$wrap.appendChild(this.$dom)}},{key:"addAllEvent",value:function(){var e=this;this.option.defaultEvent&&Object.keys(this.option.defaultEvent).forEach(function(t){var n=e.option.defaultEvent[t];e[n]=Yn(e[n],e),fl(e.parent,e.option.tag,t,e[n])}),this.option.event&&Object.keys(this.option.event).forEach(function(t){var n="__"+t;e[n]=Yn(e.option.event[t],e),fl(e.parent,e.option.tag,t,e[n])})}},{key:"removeAllEvent",value:function(){var e=this;this.option.defaultEvent&&Object.keys(this.option.defaultEvent).forEach(function(t){var n=e.option.defaultEvent[t];e[n]=Yn(e[n],e),dl(e.parent,e.option.tag,t,e[n])}),this.option.event&&Object.keys(this.option.event).forEach(function(t){var n="__"+t;e[n]=Yn(e.option.event[t],e),dl(e.parent,e.option.tag,t,e[n])})}}]),e}(),_l=function(e){function t(e,n){vl(this,t);var r=bl(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.option=n,r.init(),r}return gl(t,wl),yl(t,[{key:"init",value:function(){ml(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"create",this).call(this),di(this.$dom,"chimee-flex-component")}}]),t}(),El={tag:"chimee-control-state",html:"\n    <chimee-control-state-play></chimee-control-state-play>\n    <chimee-control-state-pause></chimee-control-state-pause>\n  ",animate:{icon:'\n      <svg viewBox="0 0 200 200" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n        <g fill="#ffffff" stroke="#ffffff">\n          <path class="left"></path>\n          <path class="right"></path>\n        </g>\n      </svg>\n    ',path:{play:{left:"M0.921875,0.265625L0.921875,197.074852L95.7890625,149L96.2929688,49Z",right:"M90.3142151,45.9315226L90.3142151,151.774115L201.600944,99.9938782L201.600944,98.0237571Z"},pause:{left:"M0.921875,1.265625L0.921875,198.074852L79.3611677,198.074852L79.3611677,0.258923126Z",right:"M126.921875,1.265625L126.921875,198.074852L205.361168,198.074852L205.361168,0.258923126Z"}}},defaultEvent:{tap:"tap"}},kl=function(e){function t(e,n){vl(this,t);var r=bl(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.option=Un(El,dn(n)?n:{}),r.animate=!1,r.init(),r}return gl(t,wl),yl(t,[{key:"init",value:function(){ml(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"create",this).call(this),this.$dom=ki(this.$dom),this.$dom.addClass("chimee-flex-component"),this.option.icon&&this.option.icon.play&&this.option.icon.pause?(this.$play=this.$dom.find("chimee-control-state-play"),this.$pause=this.$dom.find("chimee-control-state-pause"),this.$play.html(this.option.icon.play),this.$pause.html(this.option.icon.pause)):this.option.bitmap||(this.animate=!0,this.option.animate.path=this.option.path?this.option.path:this.option.animate.path,this.$dom.html(this.option.animate.icon),this.$left=this.$dom.find(".left"),this.$right=this.$dom.find(".right")),this.changeState("pause")}},{key:"changeState",value:function(e){var t="play"===e?"pause":"play";this.state=e,di(this.parent.$dom,t),hi(this.parent.$dom,e),this.animate&&this.setPath(t)}},{key:"setPath",value:function(e){var t=this.option.animate.path;"play"===e?(this.$left.attr("d",t.play.left),this.$right.attr("d",t.play.right)):(this.$left.attr("d",t.pause.left),this.$right.attr("d",t.pause.right))}},{key:"tap",value:function(e){var t="play"===this.state?"pause":"play";this.changeState(t),this.parent.$emit(t)}}]),t}();var xl,Ol={tag:"chimee-screen",html:'\n    <chimee-screen-full>\n      <svg viewBox="0 0 67 66" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n          \x3c!-- Generator: Sketch 43.1 (39012) - http://www.bohemiancoding.com/sketch --\x3e\n          <desc>Created with Sketch.</desc>\n          <defs></defs>\n          <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n              <g id="screen-small" transform="translate(33.756308, 32.621867) rotate(45.000000) translate(-33.756308, -32.621867) translate(18.756308, -10.378133)" fill="#FFFFFF">\n                  <polygon id="Path" transform="translate(14.967695, 66.389245) rotate(180.000000) translate(-14.967695, -66.389245) " points="11.5190786 46.9431778 11.7210093 70.7913773 0.565180527 70.7913773 15.4674455 85.8353125 29.3702096 70.7913773 18.5573247 70.7702156 18.5573247 46.9431778"></polygon>\n                  <polygon id="Path" points="11.5190786 0.274130278 11.7210093 24.1223298 0.565180527 24.1223298 15.4674455 39.1662649 29.3702096 24.1223298 18.5573247 24.1011681 18.5573247 0.274130278"></polygon>\n              </g>\n          </g>\n      </svg>\n    </chimee-screen-full>\n    <chimee-screen-small>\n      <svg viewBox="0 0 61 62" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n        \x3c!-- Generator: Sketch 43.1 (39012) - http://www.bohemiancoding.com/sketch --\x3e\n        <desc>Created with Sketch.</desc>\n        <defs></defs>\n        <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n            <g id="Group" transform="translate(30.756308, 30.621867) rotate(45.000000) translate(-30.756308, -30.621867) translate(15.756308, -12.378133)" fill="#FFFFFF">\n                <polygon id="Path" points="11.5190786 46.9431778 11.7210093 70.7913773 0.565180527 70.7913773 15.4674455 85.8353125 29.3702096 70.7913773 18.5573247 70.7702156 18.5573247 46.9431778"></polygon>\n                <polygon id="Path" transform="translate(14.967695, 19.720198) rotate(180.000000) translate(-14.967695, -19.720198) " points="11.5190786 0.274130278 11.7210093 24.1223298 0.565180527 24.1223298 15.4674455 39.1662649 29.3702096 24.1223298 18.5573247 24.1011681 18.5573247 0.274130278"></polygon>\n            </g>\n        </g>\n      </svg>\n    </chimee-screen-small>\n  ',defaultEvent:{tap:"tap"}},Tl=(function(e,t,n,r,i){var o={};Object.keys(r).forEach(function(e){o[e]=r[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((pl=function(e){function t(e,n){vl(this,t);var r=bl(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.state="small",r.option=Un(Ol,dn(n)?n:{}),r.init(),r}return gl(t,wl),yl(t,[{key:"init",value:function(){ml(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"create",this).call(this),this.$dom=ki(this.$dom),this.changeState(this.state),this.$dom.addClass("chimee-flex-component"),this.$full=this.$dom.find("chimee-screen-full"),this.$small=this.$dom.find("chimee-screen-small"),this.option.icon&&this.option.icon.full&&this.option.icon.small?(this.$full.html(this.option.icon.full),this.$small.html(this.option.icon.small)):this.option.bitmap&&(this.$full.html(""),this.$small.html(""))}},{key:"changeState",value:function(e){var t="small"===e?"full":"small";di(this.parent.$dom,e),hi(this.parent.$dom,t)}},{key:"tap",value:function(){var e=!1;"small"===this.state?(this.state="full",e=!0):(this.state="small",e=!1),this.changeState(this.state),this.parent.$fullscreen(e,"container"),e?this.watch_screen=this.parent.$watch("isFullscreen",this.screenChange):this.watch_screen()}},{key:"screenChange",value:function(){this.parent.fullscreenElement&&(this.state="small",this.changeState("small"),this.parent.$fullscreen(!1,"container"))}}]),t}()).prototype,"screenChange",[Ro],Object.getOwnPropertyDescriptor(pl.prototype,"screenChange"),pl.prototype),pl);function Sl(e,t,n,r,i){var o={};return Object.keys(r).forEach(function(e){o[e]=r[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var Al={tag:"chimee-progressbar",html:'\n    <chimee-progressbar-bg class="chimee-progressbar-line"></chimee-progressbar-bg>\n    <chimee-progressbar-buffer class="chimee-progressbar-line"></chimee-progressbar-buffer>\n    <chimee-progressbar-all class="chimee-progressbar-line">\n      <chimee-progressbar-ball></chimee-progressbar-ball>\n    </chimee-progressbar-all>\n  '},Pl=(Sl((xl=function(e){function t(e,n){vl(this,t);var r=bl(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.option=Un(Al,dn(n)?n:{}),r.visiable=!1!==n,r.init(),r}return gl(t,wl),yl(t,[{key:"init",value:function(){ml(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"create",this).call(this),this.$dom=ki(this.$dom),this.$buffer=this.$dom.find("chimee-progressbar-buffer"),this.$all=this.$dom.find("chimee-progressbar-all"),this.$ball=this.$dom.find("chimee-progressbar-ball"),this.$dom.addClass("chimee-flex-component"),!this.visiable&&this.$dom.css("visibility","hidden"),this.addEvent()}},{key:"destroy",value:function(){this.removeEvent(),this.watch_screen&&this.watch_screen(),ml(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"addEvent",value:function(){fl(this.parent,"chimee-progressbar","tap",this.tap),fl(this.parent,"chimee-progressbar","panstart",this.mousedown)}},{key:"removeEvent",value:function(){dl(this.parent,"chimee-progressbar","tap",this.tap),dl(this.parent,"chimee-progressbar","panstart",this.mousedown)}},{key:"progress",value:function(){var e=0;try{e=this.parent.buffered.end(0)}catch(e){}var t=e/this.parent.duration*100+"%";this.$buffer.css("width",t)}},{key:"update",value:function(){var e=void 0!==this._currentTime?this._currentTime:this.parent.currentTime,t=e?e/this.parent.duration:0;this.$all.css("width",100*t+"%")}},{key:"tap",value:function(e){var t=this.$dom[0].getBoundingClientRect(),n=t.left,r=t.width;console.log(n,e.clientX),this._currentTime=(e.clientX-n)/r*this.parent.duration,this.update(),this.parent.currentTime=this._currentTime,this._currentTime=void 0}},{key:"mousedown",value:function(e){var t=this.$dom[0].getBoundingClientRect(),n=t.left,r=t.width;this._currentTime=(e.clientX-n)/r*this.parent.duration,this.startX=e.clientX,this.startTime=this._currentTime,fl(this.parent,this.option.tag,"panmove",this.draging),fl(this.parent,this.option.tag,"panend",this.dragEnd)}},{key:"draging",value:function(e){this.endX=e.clientX;var t=this.$dom[0].getBoundingClientRect().width,n=(this.endX-this.startX)/t*this.parent.duration,r=+(this.startTime+n).toFixed(2);this._currentTime=r<0?0:r>this.parent.duration?this.parent.duration:r,this.update()}},{key:"dragEnd",value:function(){this.startX=0,this.startTime=0,this.parent.currentTime=this._currentTime,this._currentTime=void 0,dl(this.parent,this.option.tag,"panmove",this.draging),dl(this.parent,this.option.tag,"panend",this.dragEnd)}},{key:"changePointerEvent",value:function(e){this.$dom.css("pointerEvents",e)}}]),t}()).prototype,"tap",[Ro],Object.getOwnPropertyDescriptor(xl.prototype,"tap"),xl.prototype),Sl(xl.prototype,"mousedown",[Ro],Object.getOwnPropertyDescriptor(xl.prototype,"mousedown"),xl.prototype),Sl(xl.prototype,"draging",[Ro],Object.getOwnPropertyDescriptor(xl.prototype,"draging"),xl.prototype),Sl(xl.prototype,"dragEnd",[Ro],Object.getOwnPropertyDescriptor(xl.prototype,"dragEnd"),xl.prototype),xl),jl={tag:"chimee-current-time",html:"\n    00:00\n  "},Cl=function(e){function t(e,n){vl(this,t);var r=bl(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.option=Un(jl,dn(n)?n:{}),r.init(),r}return gl(t,wl),yl(t,[{key:"init",value:function(){ml(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"create",this).call(this),this.$dom=ki(this.$dom),this.$dom.addClass("chimee-flex-component")}},{key:"updateCurrent",value:function(){this.$dom.text(Jr(this.parent.currentTime))}}]),t}(),Ml={tag:"chimee-total-time",html:"\n    00:00\n  "},$l=function(e){function t(e,n){vl(this,t);var r=bl(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.option=Un(Ml,dn(n)?n:{}),r.init(),r}return gl(t,wl),yl(t,[{key:"init",value:function(){ml(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"create",this).call(this),this.$dom=ki(this.$dom),this.$dom.addClass("chimee-flex-component")}},{key:"updateTotal",value:function(){this.$dom.text(Jr(this.parent.duration))}}]),t}();var Ll={hideBarTime:2e3},Fl={timer:null,show:!0},Nl=ll({name:"chimeeMobiControlbar",el:"chimee-control",data:{children:{},show:!1},level:99,operable:!0,penetrate:!1,create:function(){this.environment=(new Sn).getResult()},init:function(e){e.controls&&(this.show=!0,e.controls=!1);var t,n,r,i=this;Uo(e,{controls:So({get:function(){return i.show},set:function(e){return i.show=Boolean(e),i._display(),!1}},{preSet:!0})},{self:!0}),this.config=dn(this.$config)?Un(Ll,this.$config):Ll,this.$dom.innerHTML="<chimee-control-wrap></chimee-control-wrap>",this.$wrap=this.$dom.querySelector("chimee-control-wrap"),this.events={},this.children=(n=(t=this).config.children=function(e){return e.$config.children?e.$config.children:e.isLive?{play:!0,currentTime:!1,progressBar:!1,totalTime:!1,screen:!0}:{play:!0,currentTime:!0,progressBar:!0,totalTime:!0,screen:!0}}(t),r={},Object.keys(n).forEach(function(e){switch(e){case"play":n.play&&(r.play=new kl(t,n.play));break;case"currentTime":n.currentTime&&(r.currentTime=new Cl(t,n.currentTime));break;case"progressBar":r.progressBar=new Pl(t,n.progressBar);break;case"totalTime":n.totalTime&&(r.totalTime=new $l(t,n.totalTime));break;case"screen":n.screen&&(r.screen=new Tl(t,n.screen));break;default:r[e]=new _l(t,n[e])}}),r),this._setStyle(),this._addGlobalEvent(),this.watch_fullscreen=this.$watch("isFullscreen",this._mousemove)},destroy:function(){window.clearTimeout(Fl.timer),Fl.show=!1,this._removeGlobalEvent(),this.watch_fullscreen&&this.watch_fullscreen()},inited:function(){for(var e in this.children)this.children[e].inited&&this.children[e].inited()},events:{play:function(){this.children.play&&this.children.play.changeState("play"),this._hideItself()},pause:function(){this.children.play&&this.children.play.changeState("pause"),this._showItself()},canplay:function(){this.children.progressBar.changePointerEvent("auto")},load:function(){this._showItself(),this._progressUpdate(),this.children.play&&this.children.play.changeState("pause"),this.children.progressBar.changePointerEvent("none"),this._progressUpdate()},durationchange:function(){this.children.totalTime&&this.children.totalTime.updateTotal()},timeupdate:function(){this._progressUpdate()},progress:function(){this.children.progressBar&&this.children.progressBar.progress()},volumechange:function(){this.children.volume&&this.children.volume.update()},tap:function(e){this._mousemove()},d_tap:function(e){!this.paused&&this._mousemove(),hl(this,"tap",e.changedTouches[0])},d_panstart:function(e){!this.paused&&this._mousemove(),hl(this,"panstart",e.changedTouches[0])},d_panmove:function(e){!this.paused&&this._mousemove(),hl(this,"panmove",e.changedTouches[0])},d_panend:function(e){!this.paused&&this._mousemove(),hl(this,"panend",e.changedTouches[0])}},methods:{_progressUpdate:function(){this.children.progressBar&&this.children.progressBar.update(),this.children.currentTime&&this.children.currentTime.updateCurrent()},_hideItself:function(){var e=this;window.clearTimeout(Fl.timer),Fl.timer=setTimeout(function(){var t=-e.$wrap.offsetHeight;bi(e.$wrap,{bottom:t+"px"}),bi(e.$dom,{visibility:"hidden"}),Fl.show=!1,e.$emit("barHide")},this.config.hideBarTime)},_showItself:function(){window.clearTimeout(Fl.timer),bi(this.$wrap,{bottom:"0"}),bi(this.$dom,{visibility:"visible"}),!Fl.show&&this.$emit("barShow"),Fl.show=!0},_display:function(){var e=this.show?"block":"none";bi(this.$dom,{display:e})},_mousemove:function(e){this.paused||(this._showItself(),this._hideItself())},_setStyle:function(){var e="";e+=this.config.majorColor?"\n  .chimee-flex-component svg *{\n    fill: majorColor;\n    stroke: majorColor;\n  }\n  chimee-progressbar-all{\n    background: majorColor;\n  }\n  chimee-volume.chimee-flex-component chimee-volume-bar-all{\n    background: majorColor;    \n  }\n  chimee-clarity-list li:hover,\n  chimee-clarity-list li.active {\n    color: majorColor;\n  }\n".replace(/majorColor/g,this.config.majorColor):"",e+=this.config.hoverColor?"\n  .chimee-flex-component svg:hover *{\n    fill: hoverColor;\n    stroke: hoverColor;\n  }\n".replace(/hoverColor/g,this.config.hoverColor):"";var t=document.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t)},_weixinJSBridgeReady:function(){window.WeixinJSBridge&&"iOS"===this.environment.os.name&&this.load()},_addGlobalEvent:function(){mi(window,"orientationchange",this._mousemove),mi(document,"WeixinJSBridgeReady",this._weixinJSBridgeReady)},_removeGlobalEvent:function(){yi(window,"orientationchange",this._mousemove),yi(document,"WeixinJSBridgeReady",this._weixinJSBridgeReady)}}}),zl={errorTips:"加载失败，请刷新重试",icon:{loading:"<svg width='120px' height='120px' xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"xMidYMid\" class=\"uil-default\"><rect x=\"0\" y=\"0\" width=\"100\" height=\"100\" fill=\"none\" class=\"bk\"></rect><rect  x='47' y='40' width='6' height='20' rx='5' ry='5' fill='#ffffff' transform='rotate(0 50 50) translate(0 -30)'>  <animate attributeName='opacity' from='1' to='0' dur='1s' begin='-1s' repeatCount='indefinite'/></rect><rect  x='47' y='40' width='6' height='20' rx='5' ry='5' fill='#ffffff' transform='rotate(30 50 50) translate(0 -30)'>  <animate attributeName='opacity' from='1' to='0' dur='1s' begin='-0.9166666666666666s' repeatCount='indefinite'/></rect><rect  x='47' y='40' width='6' height='20' rx='5' ry='5' fill='#ffffff' transform='rotate(60 50 50) translate(0 -30)'>  <animate attributeName='opacity' from='1' to='0' dur='1s' begin='-0.8333333333333334s' repeatCount='indefinite'/></rect><rect  x='47' y='40' width='6' height='20' rx='5' ry='5' fill='#ffffff' transform='rotate(90 50 50) translate(0 -30)'>  <animate attributeName='opacity' from='1' to='0' dur='1s' begin='-0.75s' repeatCount='indefinite'/></rect><rect  x='47' y='40' width='6' height='20' rx='5' ry='5' fill='#ffffff' transform='rotate(120 50 50) translate(0 -30)'>  <animate attributeName='opacity' from='1' to='0' dur='1s' begin='-0.6666666666666666s' repeatCount='indefinite'/></rect><rect  x='47' y='40' width='6' height='20' rx='5' ry='5' fill='#ffffff' transform='rotate(150 50 50) translate(0 -30)'>  <animate attributeName='opacity' from='1' to='0' dur='1s' begin='-0.5833333333333334s' repeatCount='indefinite'/></rect><rect  x='47' y='40' width='6' height='20' rx='5' ry='5' fill='#ffffff' transform='rotate(180 50 50) translate(0 -30)'>  <animate attributeName='opacity' from='1' to='0' dur='1s' begin='-0.5s' repeatCount='indefinite'/></rect><rect  x='47' y='40' width='6' height='20' rx='5' ry='5' fill='#ffffff' transform='rotate(210 50 50) translate(0 -30)'>  <animate attributeName='opacity' from='1' to='0' dur='1s' begin='-0.4166666666666667s' repeatCount='indefinite'/></rect><rect  x='47' y='40' width='6' height='20' rx='5' ry='5' fill='#ffffff' transform='rotate(240 50 50) translate(0 -30)'>  <animate attributeName='opacity' from='1' to='0' dur='1s' begin='-0.3333333333333333s' repeatCount='indefinite'/></rect><rect  x='47' y='40' width='6' height='20' rx='5' ry='5' fill='#ffffff' transform='rotate(270 50 50) translate(0 -30)'>  <animate attributeName='opacity' from='1' to='0' dur='1s' begin='-0.25s' repeatCount='indefinite'/></rect><rect  x='47' y='40' width='6' height='20' rx='5' ry='5' fill='#ffffff' transform='rotate(300 50 50) translate(0 -30)'>  <animate attributeName='opacity' from='1' to='0' dur='1s' begin='-0.16666666666666666s' repeatCount='indefinite'/></rect><rect  x='47' y='40' width='6' height='20' rx='5' ry='5' fill='#ffffff' transform='rotate(330 50 50) translate(0 -30)'>  <animate attributeName='opacity' from='1' to='0' dur='1s' begin='-0.08333333333333333s' repeatCount='indefinite'/></rect></svg>",play:'\n<svg width="92px" height="92px" viewBox="0 0 92 92" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n    \x3c!-- Generator: Sketch 47.1 (45422) - http://www.bohemiancoding.com/sketch --\x3e\n    <desc>Created with Sketch.</desc>\n    <defs></defs>\n    <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n        <circle id="Oval" fill-opacity="0.5" fill="#000000" cx="46" cy="46" r="46"></circle>\n        <polygon id="Triangle" fill="#FFFFFF" transform="translate(51.000000, 46.500000) rotate(90.000000) translate(-51.000000, -46.500000) " points="51 26 76 67 26 67"></polygon>\n    </g>\n</svg>'},expectTime:3e4},Rl=ll({name:"chimeeState",el:'\n    <chimee-state class="play">\n      <chimee-state-loading></chimee-state-loading>\n      <chimee-state-play></chimee-state-play>\n      <chimee-state-error></chimee-state-error>\n    </chimee-state>\n  ',init:function(){this.config=dn(this.$config)?Un(zl,this.$config):zl,this._addInnerHtml()},inited:function(){this.src&&("auto"===this.preload||"metadata"===this.preload||""===this.preload||!0===this.autoplay)&&this.showState("loading",!0)},penetrate:!0,operable:!0,destroy:function(){this.clearTimeout()},events:{load:function(){console.log("load"),this.showState("play",!0)},pause:function(){console.log("pause"),this.showState("play",!0)},play:function(){this.showState("play",!1)},playing:function(){this.playing()},waiting:function(){this.waiting()},timeupdate:function(){this.clearTimeout()},panstart:function(e){this.emit("state-panstart",e)},panmove:function(e){this.emit("state-panmove",e)},panend:function(e){this.emit("state-panend",e)},tap:function(e){this.emit("state-tap",e)},d_tap:function(e){this.$dom.querySelector("chimee-state-play").contains(e.target)&&this.play()}},methods:{playing:function(){this.clearTimeout(),this.showState("loading",!1),this.showState("error",!1)},waiting:function(){var e=this;this.clearTimeout(),this._timeout=setTimeout(function(){return e.showState("error",!0)},this.config.expectTime),!this.paused&&this.showState("loading",!0)},clearTimeout:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){this._timeout&&(clearTimeout(this._timeout),this._timeout=null)}),showState:function(e,t){console.log(e,t),t&&this.emit("state-change",e),this.$dom.className=t?e:""},_addInnerHtml:function(){var e=ki(this.$dom);e.find("chimee-state-loading").html(this.config.icon.loading),e.find("chimee-state-play").html(this.config.icon.play),e.find("chimee-state-error").html(this.config.errorTips)}}});var Il=[],Bl=[Nl.name,Rl.name];function Vl(e){e.plugin=e.plugin||e.plugins,ln(e.plugin)||(e.plugin=[]);var t=e.plugin.map(function(e){return dn(e)?e.name:e});Bl.forEach(function(n){t.indexOf(n)>-1||e.plugin.push(n)}),e.plugin=function(e,t){if(!ln(t))return e;var n=[];return e.forEach(function(e){-1===t.indexOf(e)&&n.push(e)}),n}(e.plugin,e.removeInnerPlugins)}Nc.install(Nl),Nc.install(Rl);var Dl=function(e){function t(e){if(vl(this,t),!dn(e))throw new TypeError("You must pass an Object as config when you new ChimeePlayer");(function(e,t){return e.every(function(e){return!t.match(e)})})(void 0===e.disableUA?Il:e.disableUA,window.navigator.userAgent)&&Vl(e),e.box=void 0===e.box?"native":e.box;var n=bl(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.hlsWarn(n.box),n.ready.then(function(){n.$watch("box",function(e){return n.hlsWarn(e)})}),n}return gl(t,Nc),yl(t,[{key:"hlsWarn",value:function(e){"hls"===e&&Tn.warn("chimee-mobile-player","Mobile support m3u8, you do not need to use hls box. See more https://github.com/Chimeejs/chimee-mobile-player/blob/master/README.md#%E4%B8%BA%E4%BB%80%E4%B9%88%E7%A7%BB%E5%8A%A8%E7%AB%AF%E4%B8%8D%E8%83%BD%E6%92%AD%E6%94%BE-m3u8-%E7%9B%B4%E6%92%AD%E6%B5%81")}}]),t}();return Dl.gestureFactory=ll,Dl});
  