| 12345678910111213141516171819202122232425 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"0094":function(e,t,n){"use strict";var i,r=n("da84"),a=n("e330"),o=n("6964"),s=n("f183"),u=n("6d61"),c=n("acac"),l=n("861d"),d=n("4fad"),f=n("69f3").enforce,h=n("cdce"),p=!r.ActiveXObject&&"ActiveXObject"in r,g=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},v=u("WeakMap",g,c);if(h&&p){i=c.getConstructor(g,"WeakMap",!0),s.enable();var m=v.prototype,y=a(m["delete"]),b=a(m.has),_=a(m.get),w=a(m.set);o(m,{delete:function(e){if(l(e)&&!d(e)){var t=f(this);return t.frozen||(t.frozen=new i),y(this,e)||t.frozen["delete"](e)}return y(this,e)},has:function(e){if(l(e)&&!d(e)){var t=f(this);return t.frozen||(t.frozen=new i),b(this,e)||t.frozen.has(e)}return b(this,e)},get:function(e){if(l(e)&&!d(e)){var t=f(this);return t.frozen||(t.frozen=new i),b(this,e)?_(this,e):t.frozen.get(e)}return _(this,e)},set:function(e,t){if(l(e)&&!d(e)){var n=f(this);n.frozen||(n.frozen=new i),b(this,e)?w(this,e,t):n.frozen.set(e,t)}else w(this,e,t);return this}})}},"00b4":function(e,t,n){"use strict";n("ac1f");var i=n("23e7"),r=n("c65b"),a=n("1626"),o=n("825a"),s=n("577e"),u=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),c=/./.test;i({target:"RegExp",proto:!0,forced:!u},{test:function(e){var t=o(this),n=s(e),i=t.exec;if(!a(i))return r(c,t,n);var u=r(i,t,n);return null!==u&&(o(u),!0)}})},"00ee":function(e,t,n){var i=n("b622"),r=i("toStringTag"),a={};a[r]="z",e.exports="[object z]"===String(a)},"01b4":function(e,t){var n=function(){this.head=null,this.tail=null};n.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=n},"0366":function(e,t,n){var i=n("4625"),r=n("59ed"),a=n("40d5"),o=i(i.bind);e.exports=function(e,t){return r(e),void 0===t?e:a?o(e,t):function(){return e.apply(t,arguments)}}},"04d1":function(e,t,n){var i=n("342f"),r=i.match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},"04f8":function(e,t,n){var i=n("2d00"),r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},"0538":function(e,t,n){"use strict";var i=n("e330"),r=n("59ed"),a=n("861d"),o=n("1a2d"),s=n("f36a"),u=n("40d5"),c=Function,l=i([].concat),d=i([].join),f={},h=function(e,t,n){if(!o(f,t)){for(var i=[],r=0;r<t;r++)i[r]="a["+r+"]";f[t]=c("C,a","return new C("+d(i,",")+")")}return f[t](e,n)};e.exports=u?c.bind:function(e){var t=r(this),n=t.prototype,i=s(arguments,1),o=function(){var n=l(i,s(arguments));return this instanceof o?h(t,n.length,n):t.apply(e,n)};return a(n)&&(o.prototype=n),o}},"057f":function(e,t,n){var i=n("c6b6"),r=n("fc6a"),a=n("241c").f,o=n("4dae"),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==i(e)?function(e){try{return a(e)}catch(t){return o(s)}}(e):a(r(e))}},"06c5":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)return;if("string"===typeof e)return(0,i.default)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return(0,i.default)(e,t)},n("fb6a"),n("d3b7"),n("a630"),n("3ca3"),n("ac1f"),n("00b4");var i=function(e){return e&&e.__esModule?e:{default:e}}(n("6b75"))},"06cf":function(e,t,n){var i=n("83ab"),r=n("c65b"),a=n("d1e7"),o=n("5c6c"),s=n("fc6a"),u=n("a04b"),c=n("1a2d"),l=n("0cfb"),d=Object.getOwnPropertyDescriptor;t.f=i?d:function(e,t){if(e=s(e),t=u(t),l)try{return d(e,t)}catch(n){}if(c(e,t))return o(!r(a.f,e,t),e[t])}},"07ac":function(e,t,n){var i=n("23e7"),r=n("6f53").values;i({target:"Object",stat:!0},{values:function(e){return r(e)}})},"07d6":function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},"07fa":function(e,t,n){var i=n("50c4");e.exports=function(e){return i(e.length)}},"083a":function(e,t,n){"use strict";var i=n("0d51"),r=TypeError;e.exports=function(e,t){if(!delete e[t])throw r("Cannot delete property "+i(t)+" of "+i(e))}},"09f0":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,s=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);u=!0);}catch(l){c=!0,r=l}finally{try{if(!u&&null!=n["return"]&&(o=n["return"](),Object(o)!==o))return}finally{if(c)throw r}}return s}},n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("14d9")},"0b25":function(e,t,n){var i=n("5926"),r=n("50c4"),a=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=r(t);if(t!==n)throw a("Wrong length or index");return n}},"0b42":function(e,t,n){var i=n("e8b5"),r=n("68ee"),a=n("861d"),o=n("b622"),s=o("species"),u=Array;e.exports=function(e){var t;return i(e)&&(t=e.constructor,r(t)&&(t===u||i(t.prototype))?t=void 0:a(t)&&(t=t[s],null===t&&(t=void 0))),void 0===t?u:t}},"0b43":function(e,t,n){var i=n("04f8");e.exports=i&&!!Symbol["for"]&&!!Symbol.keyFor},"0b49":function(e,t,n){n("ace4"),n("d3b7"),n("5cc6"),n("907a"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("986a"),n("1d02"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),n("14d9");var i=n("d562").getUint64;e.exports=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},r=12;0===n.version?(n.earliestPresentationTime=t.getUint32(r),n.firstOffset=t.getUint32(r+4),r+=8):(n.earliestPresentationTime=i(e.subarray(r)),n.firstOffset=i(e.subarray(r+8)),r+=16),r+=2;var a=t.getUint16(r);for(r+=2;a>0;r+=12,a--)n.references.push({referenceType:(128&e[r])>>>7,referencedSize:2147483647&t.getUint32(r),subsegmentDuration:t.getUint32(r+4),startsWithSap:!!(128&e[r+8]),sapType:(112&e[r+8])>>>4,sapDeltaTime:268435455&t.getUint32(r+8)});return n}},"0c47":function(e,t,n){var i=n("da84"),r=n("d44e");r(i.JSON,"JSON",!0)},"0cb2":function(e,t,n){var i=n("e330"),r=n("7b0b"),a=Math.floor,o=i("".charAt),s=i("".replace),u=i("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,i,d,f){var h=n+e.length,p=i.length,g=l;return void 0!==d&&(d=r(d),g=c),s(f,g,(function(r,s){var c;switch(o(s,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,h);case"<":c=d[u(s,1,-1)];break;default:var l=+s;if(0===l)return r;if(l>p){var f=a(l/10);return 0===f?r:f<=p?void 0===i[f-1]?o(s,1):i[f-1]+o(s,1):r}c=i[l-1]}return void 0===c?"":c}))}},"0ccb":function(e,t,n){var i=n("e330"),r=n("50c4"),a=n("577e"),o=n("1148"),s=n("1d80"),u=i(o),c=i("".slice),l=Math.ceil,d=function(e){return function(t,n,i){var o,d,f=a(s(t)),h=r(n),p=f.length,g=void 0===i?" ":a(i);return h<=p||""==g?f:(o=h-p,d=u(g,l(o/g.length)),d.length>o&&(d=c(d,0,o)),e?f+d:d+f)}};e.exports={start:d(!1),end:d(!0)}},"0cfb":function(e,t,n){var i=n("83ab"),r=n("d039"),a=n("cc12");e.exports=!i&&!r((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},"0d21":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(Array.isArray(e))return e}},"0d26":function(e,t,n){var i=n("e330"),r=Error,a=i("".replace),o=function(e){return String(r("zxcasd").stack)}(),s=/\n\s*at [^:]*:[^\n]*/,u=s.test(o);e.exports=function(e,t){if(u&&"string"==typeof e&&!r.prepareStackTrace)while(t--)e=a(e,s,"");return e}},"0d51":function(e,t){var n=String;e.exports=function(e){try{return n(e)}catch(t){return"Object"}}},"0eb6":function(e,t,n){"use strict";var i=n("23e7"),r=n("7c37"),a=n("d066"),o=n("d039"),s=n("7c73"),u=n("5c6c"),c=n("9bf2").f,l=n("cb2d"),d=n("edd0"),f=n("1a2d"),h=n("19aa"),p=n("825a"),g=n("aa1f"),v=n("e391"),m=n("cf98"),y=n("0d26"),b=n("69f3"),_=n("83ab"),w=n("c430"),T=a("Error"),S=a("DOMException")||function(){try{var e=a("MessageChannel")||r("worker_threads").MessageChannel;(new e).port1.postMessage(new WeakMap)}catch(t){if("DATA_CLONE_ERR"==t.name&&25==t.code)return t.constructor}}(),k=S&&S.prototype,x=T.prototype,C=b.set,E=b.getterFor("DOMException"),A="stack"in T("DOMException"),O=function(e){return f(m,e)&&m[e].m?m[e].c:0},j=function(){h(this,I);var e=arguments.length,t=v(e<1?void 0:arguments[0]),n=v(e<2?void 0:arguments[1],"Error"),i=O(n);if(C(this,{type:"DOMException",name:n,message:t,code:i}),_||(this.name=n,this.message=t,this.code=i),A){var r=T(t);r.name="DOMException",c(this,"stack",u(1,y(r.stack,1)))}},I=j.prototype=s(x),P=function(e){return{enumerable:!0,configurable:!0,get:e}},M=function(e){return P((function(){return E(this)[e]}))};_&&(d(I,"code",M("code")),d(I,"message",M("message")),d(I,"name",M("name"))),c(I,"constructor",u(1,j));var L=o((function(){return!(new S instanceof T)})),D=L||o((function(){return x.toString!==g||"2: 1"!==String(new S(1,2))})),R=L||o((function(){return 25!==new S(1,"DataCloneError").code})),N=L||25!==S["DATA_CLONE_ERR"]||25!==k["DATA_CLONE_ERR"],B=w?D||R||N:L;i({global:!0,constructor:!0,forced:B},{DOMException:B?j:S});var U=a("DOMException"),F=U.prototype;for(var $ in D&&(w||S===U)&&l(F,"toString",g),R&&_&&S===U&&d(F,"code",P((function(){return O(p(this).name)}))),m)if(f(m,$)){var H=m[$],V=H.s,z=u(6,H.c);f(U,V)||c(U,V,z),f(F,V)||c(F,V,z)}},"107c":function(e,t,n){var i=n("d039"),r=n("da84"),a=r.RegExp;e.exports=i((function(){var e=a("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},"10d1":function(e,t,n){n("0094")},1148:function(e,t,n){"use strict";var i=n("5926"),r=n("577e"),a=n("1d80"),o=RangeError;e.exports=function(e){var t=r(a(this)),n="",s=i(e);if(s<0||s==1/0)throw o("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(n+=t);return n}},1276:function(e,t,n){"use strict";var i=n("2ba4"),r=n("c65b"),a=n("e330"),o=n("d784"),s=n("825a"),u=n("7234"),c=n("44e7"),l=n("1d80"),d=n("4840"),f=n("8aa5"),h=n("50c4"),p=n("577e"),g=n("dc4a"),v=n("4dae"),m=n("14c3"),y=n("9263"),b=n("9f7f"),_=n("d039"),w=b.UNSUPPORTED_Y,T=Math.min,S=[].push,k=a(/./.exec),x=a(S),C=a("".slice),E=!_((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));o("split",(function(e,t,n){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var a=p(l(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[a];if(!c(e))return r(t,a,e,o);var s,u,d,f=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,m=new RegExp(e.source,h+"g");while(s=r(y,m,a)){if(u=m.lastIndex,u>g&&(x(f,C(a,g,s.index)),s.length>1&&s.index<a.length&&i(S,f,v(s,1)),d=s[0].length,g=u,f.length>=o))break;m.lastIndex===s.index&&m.lastIndex++}return g===a.length?!d&&k(m,"")||x(f,""):x(f,C(a,g)),f.length>o?v(f,0,o):f}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t,[function(t,n){var i=l(this),o=u(t)?void 0:g(t,e);return o?r(o,t,i,n):r(a,p(i),t,n)},function(e,i){var r=s(this),o=p(e),u=n(a,r,o,i,a!==t);if(u.done)return u.value;var c=d(r,RegExp),l=r.unicode,g=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(w?"g":"y"),v=new c(w?"^(?:"+r.source+")":r,g),y=void 0===i?4294967295:i>>>0;if(0===y)return[];if(0===o.length)return null===m(v,o)?[o]:[];var b=0,_=0,S=[];while(_<o.length){v.lastIndex=w?0:_;var k,E=m(v,w?C(o,_):o);if(null===E||(k=T(h(v.lastIndex+(w?_:0)),o.length))===b)_=f(o,_,l);else{if(x(S,C(o,b,_)),S.length===y)return S;for(var A=1;A<=E.length-1;A++)if(x(S,E[A]),S.length===y)return S;_=b=k}}return x(S,C(o,b)),S}]}),!E,w)},"128d":function(e,t,n){n("d9e2"),n("d401"),n("ac1f"),n("466d"),n("5319"),n("d3b7"),n("ddb0"),n("00b4"),n("e25e"),n("acd8"),n("1276"),n("498a"),n("159b"),n("fb6a"),n("14d9"),n("26e9"),n("c975");var i=n("bb1e"),r=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function a(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function o(e){function t(e,t,n,i){return 3600*(0|e)+60*(0|t)+(0|n)+(0|i)/1e3}var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function s(){this.values=r(null)}function u(e,t,n,i){var r=i?e.split(i):[e];for(var a in r)if("string"===typeof r[a]){var o=r[a].split(n);if(2===o.length){var s=o[0].trim(),u=o[1].trim();t(s,u)}}}function c(e,t,n){var i=e;function r(){var t=o(e);if(null===t)throw new a(a.Errors.BadTimeStamp,"Malformed timestamp: "+i);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function c(){e=e.replace(/^\s+/,"")}if(c(),t.startTime=r(),c(),"--\x3e"!==e.substr(0,3))throw new a(a.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);e=e.substr(3),c(),t.endTime=r(),c(),function(e,t){var i=new s;u(e,(function(e,t){switch(e){case"region":for(var r=n.length-1;r>=0;r--)if(n[r].id===t){i.set(e,n[r].region);break}break;case"vertical":i.alt(e,t,["rl","lr"]);break;case"line":var a=t.split(","),o=a[0];i.integer(e,o),i.percent(e,o)&&i.set("snapToLines",!1),i.alt(e,o,["auto"]),2===a.length&&i.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=t.split(","),i.percent(e,a[0]),2===a.length&&i.alt("positionAlign",a[1],["start","center","end"]);break;case"size":i.percent(e,t);break;case"align":i.alt(e,t,["start","center","end","left","right"]);break}}),/:/,/\s/),t.region=i.get("region",null),t.vertical=i.get("vertical","");try{t.line=i.get("line","auto")}catch(r){}t.lineAlign=i.get("lineAlign","start"),t.snapToLines=i.get("snapToLines",!0),t.size=i.get("size",100);try{t.align=i.get("align","center")}catch(r){t.align=i.get("align","middle")}try{t.position=i.get("position","auto")}catch(r){t.position=i.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=i.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}a.prototype=r(Error.prototype),a.prototype.constructor=a,a.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var i=0;i<n.length;++i)if(t===n[i]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t),t>=0&&t<=100))&&(this.set(e,t),!0)}};var l=i.createElement&&i.createElement("textarea"),d={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},f={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},h={v:"title",lang:"lang"},p={rt:"ruby"};function g(e,t){function n(){if(!t)return null;var e=t.match(/^([^<]*)(<[^>]*>?)?/);return function(e){return t=t.substr(e.length),e}(e[1]?e[1]:e[2])}function i(e){return l.innerHTML=e,e=l.textContent,l.textContent="",e}function r(e,t){return!p[t.localName]||p[t.localName]===e.localName}function a(t,n){var i=d[t];if(!i)return null;var r=e.document.createElement(i),a=h[t];return a&&n&&(r[a]=n.trim()),r}var s,u=e.document.createElement("div"),c=u,g=[];while(null!==(s=n()))if("<"!==s[0])c.appendChild(e.document.createTextNode(i(s)));else{if("/"===s[1]){g.length&&g[g.length-1]===s.substr(2).replace(">","")&&(g.pop(),c=c.parentNode);continue}var v,m=o(s.substr(1,s.length-2));if(m){v=e.document.createProcessingInstruction("timestamp",m),c.appendChild(v);continue}var y=s.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(v=a(y[1],y[3]),!v)continue;if(!r(c,v))continue;if(y[2]){var b=y[2].split(".");b.forEach((function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;if(f.hasOwnProperty(n)){var i=t?"background-color":"color",r=f[n];v.style[i]=r}})),v.className=b.join(" ")}g.push(y[1]),c.appendChild(v),c=v}return u}var v=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function m(e){for(var t=0;t<v.length;t++){var n=v[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function y(e){var t,n=[],i="";if(!e||!e.childNodes)return"ltr";function r(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function a(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var i=n.match(/^.*(\n|\r)/);return i?(e.length=0,i[0]):n}return"ruby"===t.tagName?a(e):t.childNodes?(r(e,t),a(e)):void 0}r(n,e);while(i=a(n))for(var o=0;o<i.length;o++)if(t=i.charCodeAt(o),m(t))return"rtl";return"ltr"}function b(){}function _(e,t,n){b.call(this),this.cue=t,this.cueDiv=g(e,t.text);var i={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(i,this.cueDiv),this.div=e.document.createElement("div"),i={direction:y(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(i),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":r=t.position-t.size;break}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function w(e){var t,n,i,r;if(e.div){n=e.div.offsetHeight,i=e.div.offsetWidth,r=e.div.offsetTop;var a=(a=e.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();e=e.div.getBoundingClientRect(),t=a?Math.max(a[0]&&a[0].height||0,e.height/a.length):0}this.left=e.left,this.right=e.right,this.top=e.top||r,this.height=e.height||n,this.bottom=e.bottom||r+(e.height||n),this.width=e.width||i,this.lineHeight=void 0!==t?t:e.lineHeight}function T(e,t,n,i){var r=new w(t),a=t.cue,o=function(e){if("number"===typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,i=0,r=0;r<n.length&&n[r]!==t;r++)"showing"===n[r].mode&&i++;return-1*++i}(a),s=[];if(a.snapToLines){var u;switch(a.vertical){case"":s=["+y","-y"],u="height";break;case"rl":s=["+x","-x"],u="width";break;case"lr":s=["-x","+x"],u="width";break}var c=r.lineHeight,l=c*Math.round(o),d=n[u]+c,f=s[0];Math.abs(l)>d&&(l=l<0?-1:1,l*=Math.ceil(d/c)*c),o<0&&(l+=""===a.vertical?n.height:n.width,s=s.reverse()),r.move(f,l)}else{var h=r.lineHeight/n.height*100;switch(a.lineAlign){case"center":o-=h/2;break;case"end":o-=h;break}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")});break}s=["+y","-x","+x","-y"],r=new w(t)}var p=function(e,t){for(var r,a=new w(e),o=1,s=0;s<t.length;s++){while(e.overlapsOppositeAxis(n,t[s])||e.within(n)&&e.overlapsAny(i))e.move(t[s]);if(e.within(n))return e;var u=e.intersectPercentage(n);o>u&&(r=new w(e),o=u),e=new w(a)}return r||a}(r,s);t.move(p.toCSSCompatValues(n))}function S(){}b.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},b.prototype.formatStyle=function(e,t){return 0===e?0:e+t},_.prototype=r(b.prototype),_.prototype.constructor=_,w.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t;break}},w.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},w.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},w.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},w.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},w.prototype.intersectPercentage=function(e){var t=Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left)),n=Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top)),i=t*n;return i/(this.height*this.width)},w.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},w.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,i=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e;var r={left:e.left,right:e.right,top:e.top||i,height:e.height||t,bottom:e.bottom||i+(e.height||t),width:e.width||n};return r},S.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!==typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},S.convertCueToDOMTree=function(e,t){return e&&t?g(e,t):null};S.processCues=function(e,t,n){if(!e||!t||!n)return null;while(n.firstChild)n.removeChild(n.firstChild);var i=e.document.createElement("div");if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin="1.5%",n.appendChild(i),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var r=[],a=w.getSimpleBoxPosition(i),o=Math.round(.05*a.height*100)/100,s={font:o+"px sans-serif"};(function(){for(var n,o,u=0;u<t.length;u++)o=t[u],n=new _(e,o,s),i.appendChild(n.div),T(0,n,a,r),o.displayState=n.div,r.push(w.getSimpleBoxPosition(n))})()}else for(var u=0;u<t.length;u++)i.appendChild(t[u].displayState)},S.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},S.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof a))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){var e=t.buffer,n=0;while(n<e.length&&"\r"!==e[n]&&"\n"!==e[n])++n;var i=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),i}function i(e){e.match(/X-TIMESTAMP-MAP/)?u(e,(function(e,n){switch(e){case"X-TIMESTAMP-MAP":(function(e){var n=new s;u(e,(function(e,t){switch(e){case"MPEGT":n.integer(e+"S",t);break;case"LOCA":n.set(e+"L",o(t));break}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})})(n);break}}),/=/):u(e,(function(e,n){switch(e){case"Region":(function(e){var n=new s;if(u(e,(function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var i=t.split(",");if(2!==i.length)break;var r=new s;if(r.percent("x",i[0]),r.percent("y",i[1]),!r.has("x")||!r.has("y"))break;n.set(e+"X",r.get("x")),n.set(e+"Y",r.get("y"));break;case"scroll":n.alt(e,t,["up"]);break}}),/=/,/\s/),n.has("id")){var i=new(t.vttjs.VTTRegion||t.window.VTTRegion);i.width=n.get("width",100),i.lines=n.get("lines",3),i.regionAnchorX=n.get("regionanchorX",0),i.regionAnchorY=n.get("regionanchorY",100),i.viewportAnchorX=n.get("viewportanchorX",0),i.viewportAnchorY=n.get("viewportanchorY",100),i.scroll=n.get("scroll",""),t.onregion&&t.onregion(i),t.regionList.push({id:n.get("id"),region:i})}})(n);break}}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var r;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;r=n();var l=r.match(/^WEBVTT([ \t].*)?$/);if(!l||!l[0])throw new a(a.Errors.BadSignature);t.state="HEADER"}var d=!1;while(t.buffer){if(!/\r\n|\n/.test(t.buffer))return this;switch(d?d=!1:r=n(),t.state){case"HEADER":/:/.test(r)?i(r):r||(t.state="ID");continue;case"NOTE":r||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){t.state="NOTE";break}if(!r)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(h){t.cue.align="middle"}if(t.state="CUE",-1===r.indexOf("--\x3e")){t.cue.id=r;continue}case"CUE":try{c(r,t.cue,t.regionList)}catch(h){t.reportOrThrowError(h),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var f=-1!==r.indexOf("--\x3e");if(!r||f&&(d=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=r.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":r||(t.state="ID");continue}}}catch(h){t.reportOrThrowError(h),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new a(a.Errors.BadSignature)}catch(e){this.reportOrThrowError(e)}return this.onflush&&this.onflush(),this}},e.exports=S},"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"131a":function(e,t,n){var i=n("23e7"),r=n("d2bb");i({target:"Object",stat:!0},{setPrototypeOf:r})},"13d2":function(e,t,n){var i=n("d039"),r=n("1626"),a=n("1a2d"),o=n("83ab"),s=n("5e77").CONFIGURABLE,u=n("8925"),c=n("69f3"),l=c.enforce,d=c.get,f=Object.defineProperty,h=o&&!i((function(){return 8!==f((function(){}),"length",{value:8}).length})),p=String(String).split("String"),g=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||s&&e.name!==t)&&(o?f(e,"name",{value:t,configurable:!0}):e.name=t),h&&n&&a(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?o&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(r){}var i=l(e);return a(i,"source")||(i.source=p.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return r(this)&&d(this).source||u(this)}),"toString")},"13d5":function(e,t,n){"use strict";var i=n("23e7"),r=n("d58f").left,a=n("a640"),o=n("2d00"),s=n("605d"),u=a("reduce"),c=!s&&o>79&&o<83;i({target:"Array",proto:!0,forced:!u||c},{reduce:function(e){var t=arguments.length;return r(this,e,t,t>1?arguments[1]:void 0)}})},"143c":function(e,t,n){var i=n("74e8");i("Int32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},1448:function(e,t,n){var i=n("dfb9"),r=n("b6b7");e.exports=function(e,t){return i(r(e),t)}},"145e":function(e,t,n){"use strict";var i=n("7b0b"),r=n("23cb"),a=n("07fa"),o=n("083a"),s=Math.min;e.exports=[].copyWithin||function(e,t){var n=i(this),u=a(n),c=r(e,u),l=r(t,u),d=arguments.length>2?arguments[2]:void 0,f=s((void 0===d?u:r(d,u))-l,u-c),h=1;l<c&&c<l+f&&(h=-1,l+=f-1,c+=f-1);while(f-- >0)l in n?n[c]=n[l]:o(n,c),c+=h,l+=h;return n}},"14c3":function(e,t,n){var i=n("c65b"),r=n("825a"),a=n("1626"),o=n("c6b6"),s=n("9263"),u=TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var c=i(n,e,t);return null!==c&&r(c),c}if("RegExp"===o(e))return i(s,e,t);throw u("RegExp#exec called on incompatible receiver")}},"14d9":function(e,t,n){"use strict";var i=n("23e7"),r=n("7b0b"),a=n("07fa"),o=n("3a34"),s=n("3511"),u=n("d039"),c=u((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}();i({target:"Array",proto:!0,arity:1,forced:c||l},{push:function(e){var t=r(this),n=a(t),i=arguments.length;s(n+i);for(var u=0;u<i;u++)t[n]=arguments[u],n++;return o(t,n),n}})},"14e5":function(e,t,n){"use strict";var i=n("23e7"),r=n("c65b"),a=n("59ed"),o=n("f069"),s=n("e667"),u=n("2266"),c=n("5eed");i({target:"Promise",stat:!0,forced:c},{all:function(e){var t=this,n=o.f(t),i=n.resolve,c=n.reject,l=s((function(){var n=a(t.resolve),o=[],s=0,l=1;u(e,(function(e){var a=s++,u=!1;l++,r(n,t,e).then((function(e){u||(u=!0,o[a]=e,--l||i(o))}),c)})),--l||i(o)}));return l.error&&c(l.value),n.promise}})},"159b":function(e,t,n){var i=n("da84"),r=n("fdbc"),a=n("785a"),o=n("17c2"),s=n("9112"),u=function(e){if(e&&e.forEach!==o)try{s(e,"forEach",o)}catch(t){e.forEach=o}};for(var c in r)r[c]&&u(i[c]&&i[c].prototype);u(a)},1626:function(e,t,n){var i=n("8ea1"),r=i.all;e.exports=i.IS_HTMLDDA?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},"17c2":function(e,t,n){"use strict";var i=n("b727").forEach,r=n("a640"),a=r("forEach");e.exports=a?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},"182d":function(e,t,n){var i=n("f8cd"),r=RangeError;e.exports=function(e,t){var n=i(e);if(n%t)throw r("Wrong offset");return n}},"19aa":function(e,t,n){var i=n("3a9b"),r=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw r("Incorrect invocation")}},"1a2d":function(e,t,n){var i=n("e330"),r=n("7b0b"),a=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(r(e),t)}},"1be4":function(e,t,n){var i=n("d066");e.exports=i("document","documentElement")},"1c31":function(e,t,n){(function(e){var i=n("7037").default;n("7a82"),n("a4d3"),n("e01a"),n("d3b7"),n("944a"),n("0c47"),n("23dc"),n("c975"),n("ac1f"),n("1276"),n("14d9"),n("7db0"),n("d9e2"),n("d401"),n("e9c4"),n("5319"),n("d28b"),n("3ca3"),n("ddb0"),n("00b4"),n("caad"),n("d81d"),n("b64b"),n("99af"),n("159b"),n("466d"),n("4de4"),n("a9e3"),n("a434"),n("25f0"),n("e25e"),n("13d5"),n("4d63"),n("c607"),n("2c3e"),n("c19f"),n("ace4"),n("07ac"),n("2532"),n("fb6a"),n("a630"),n("acd8"),n("2ca0"),n("4ae1"),n("f8c9"),n("131a"),n("26e9"),n("498a"),n("8a59"),n("907a"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("986a"),n("1d02"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),n("4e82"),n("3c65"),n("841c"),n("e439"),n("dbb4"),n("1d1c"),n("5cc6"),n("c740"),n("3410"),n("5d41"),n("81b2"),n("0eb6"),n("b7ef"),n("8bd4"),n("2b3d"),n("9861"),function(r,a){"object"===i(t)&&"object"===i(e)?e.exports=a(n("a7a7"),n("e143"),n("37dc")):n("07d6")([,,],a)}("undefined"!==typeof self&&self,(function(e,t,n){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===i(e)&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fae3")}({"0001":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"loadFontFace",(function(){return a}));var i=n("a118"),r=n("db70");function a(t,n){var i=Object(r["a"])();if(!i)return{errMsg:"loadFontFace:fail not font page"};e.publishHandler("loadFontFace",{options:t,callbackId:n},i)}e.subscribe("onLoadFontFaceCallback",(function(e){var t=e.callbackId,n=e.data;Object(i["a"])(t,n)}))}.call(this,n("0dd1"))},"010d":function(e,t,n){},"0138":function(e,t,n){"use strict";n.r(t),function(e){var i=n("052f"),r=n("3d1f"),a=n("98be"),o=n("abbf");n.d(t,"getApp",(function(){return o["b"]})),n.d(t,"getCurrentPages",(function(){return o["c"]})),Object(i["a"])(e.on,{getApp:o["b"],getCurrentPages:o["c"]}),Object(r["a"])(e.subscribe,{getApp:o["b"],getCurrentPages:o["c"]}),t["default"]=a["a"]}.call(this,n("0dd1"))},"0212":function(e,t,n){"use strict";n.r(t),n.d(t,"getLaunchOptionsSync",(function(){return r})),n.d(t,"getEnterOptionsSync",(function(){return a}));var i=n("abbf");function r(){return Object(i["e"])()}function a(){return Object(i["d"])()}},"02b5":function(e,t,n){"use strict";var i=n("e5e5"),r=n.n(i);r.a},"02c9":function(e,t,n){"use strict";function i(e){if(0===e.indexOf("#")){var t=e.substr(1);return function(e){return!(!e.componentInstance||e.componentInstance.id!==t)||!(!e.data||!e.data.attrs||e.data.attrs.id!==t)}}if(0===e.indexOf(".")){var n=e.substr(1);return function(e){return e.data&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t?-1!==t.split(r).indexOf(e):n&&"string"===typeof n?-1!==n.split(r).indexOf(e):void 0}(n,e.data.staticClass,e.data.class)}}}n.d(t,"a",(function(){return a}));var r=/\s+/;function a(e){e.prototype.createIntersectionObserver=function(e){return uni.createIntersectionObserver(this,e)},e.prototype.createMediaQueryObserver=function(e){return uni.createMediaQueryObserver(this,e)},e.prototype.selectComponent=function(e){return function e(t,n){if(n(t.$vnode||t._vnode))return t;for(var i=t.$children,r=0;r<i.length;r++){var a=e(i[r],n);if(a)return a}}(this,i(e))},e.prototype.selectAllComponents=function(e){return function e(t,n,i){n(t.$vnode||t._vnode)&&i.push(t);for(var r=t.$children,a=0;a<r.length;a++)e(r[a],n,i);return i}(this,i(e),[])}}},"02ed":function(e){e.exports=JSON.parse('{"uni.app.quit":"再按一次退出應用","uni.async.error":"連接服務器超時,點擊屏幕重試","uni.showActionSheet.cancel":"取消","uni.showToast.unpaired":"請注意 showToast 與 hideToast 必須配對使用","uni.showLoading.unpaired":"請注意 showLoading 與 hideLoading 必須配對使用","uni.showModal.cancel":"取消","uni.showModal.confirm":"確定","uni.chooseImage.cancel":"取消","uni.chooseImage.sourceType.album":"從相冊選擇","uni.chooseImage.sourceType.camera":"拍攝","uni.chooseVideo.cancel":"取消","uni.chooseVideo.sourceType.album":"從相冊選擇","uni.chooseVideo.sourceType.camera":"拍攝","uni.chooseFile.notUserActivation":"文件選擇器對話框只能在由用戶激活時顯示","uni.previewImage.cancel":"取消","uni.previewImage.button.save":"保存圖像","uni.previewImage.save.success":"保存圖像到相冊成功","uni.previewImage.save.fail":"保存圖像到相冊失敗","uni.setClipboardData.success":"內容已復制","uni.scanCode.title":"掃碼","uni.scanCode.album":"相冊","uni.scanCode.fail":"識別失敗","uni.scanCode.flash.on":"輕觸照亮","uni.scanCode.flash.off":"輕觸關閉","uni.startSoterAuthentication.authContent":"指紋識別中...","uni.picker.done":"完成","uni.picker.cancel":"取消","uni.video.danmu":"彈幕","uni.video.volume":"音量","uni.button.feedback.title":"問題反饋","uni.button.feedback.send":"發送","uni.chooseLocation.search":"搜索地點","uni.chooseLocation.cancel":"取消"}')},"052f":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("a741"),r=n("45db");function a(e,t){var n=e.name,i=e.arg;"postMessage"===n||uni[n](i)}function o(e,t){var n=t.getApp,o=t.getCurrentPages;function s(e,t){var n=o();n.length&&Object(i["b"])(n[n.length-1],e,t)}function u(e){return function(t){s(e,t)}}e("onError",(function(e){Object(i["a"])(n(),"onError",e)})),e("onPageNotFound",(function(e){Object(i["a"])(n(),"onPageNotFound",e)})),e("onAppEnterBackground",(function(){Object(i["a"])(n(),"onHide"),s("onHide")})),e("onAppEnterForeground",(function(e){Object(i["a"])(n(),"onShow",e);var t=o();0!==t.length&&s("onShow")})),e("onResize",(function(e,t){var n=o().find((function(e){return e.$page.id===t}));n&&Object(i["b"])(n,"onResize",e)})),e("onPullDownRefresh",(function(e,t){var n=o().find((function(e){return e.$page.id===t}));n&&(Object(r["setPullDownRefreshPageId"])(t),Object(i["b"])(n,"onPullDownRefresh"))})),e("onTabItemTap",u("onTabItemTap")),e("onNavigationBarButtonTap",u("onNavigationBarButtonTap")),e("onNavigationBarSearchInputChanged",u("onNavigationBarSearchInputChanged")),e("onNavigationBarSearchInputConfirmed",u("onNavigationBarSearchInputConfirmed")),e("onNavigationBarSearchInputClicked",u("onNavigationBarSearchInputClicked")),e("onNavigationBarSearchInputFocusChanged",u("onNavigationBarSearchInputFocusChanged")),e("onWebInvokeAppService",a)}},"0554":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"getLocation",(function(){return o}));var i=n("ffdc"),r=n("636c"),a=n("31c6");function o(t,n){var o=t.type,s=t.altitude,u=t.isHighAccuracy,c=t.highAccuracyExpireTime,l=e,d=l.invokeCallbackHandler,f=Object(r["e"])();new Promise((function(e,t){navigator.geolocation?navigator.geolocation.getCurrentPosition((function(t){return e(t.coords)}),t,{enableHighAccuracy:u||s,timeout:c||1e5}):t(new Error("device nonsupport geolocation"))})).catch((function(){return new Promise((function(e,t){f.type===r["d"].QQ?Object(i["a"])("https://apis.map.qq.com/ws/location/v1/ip?output=jsonp&key=".concat(f.key),{callback:"callback"},(function(n){if("result"in n&&n.result.location){var i=n.result.location;e({latitude:i.lat,longitude:i.lng},!0)}else t(new Error(n.message||JSON.stringify(n)))}),(function(){return t(new Error("network error"))})):f.type===r["d"].GOOGLE?uni.request({method:"POST",url:"https://www.googleapis.com/geolocation/v1/geolocate?key=".concat(f.key),success:function(n){var i=n.data;"location"in i?e({latitude:i.location.lat,longitude:i.location.lng,accuracy:i.accuracy}):t(new Error(i.error&&i.error.message||JSON.stringify(n)))},fail:function(){t(new Error("network error"))}}):f.type===r["d"].AMAP?Object(a["a"])([],(function(){window.AMap.plugin("AMap.Geolocation",(function(){var n=new window.AMap.Geolocation({enableHighAccuracy:!0,timeout:1e4});n.getCurrentPosition((function(n,i){"complete"===n?e({latitude:i.position.lat,longitude:i.position.lng,accuracy:i.accuracy}):t(new Error(i.message))}))}))})):t(new Error("network error"))}))})).then((function(e,t){Object(r["f"])(o,e,t).then((function(e){d(n,Object.assign(e,{errMsg:"getLocation:ok",verticalAccuracy:e.altitudeAccuracy||0,horizontalAccuracy:e.accuracy}))})).catch((function(e){d(n,{errMsg:"getLocation:fail "+e.message})}))}))}}.call(this,n("0dd1"))},"0741":function(e,t,n){"use strict";var i=n("5bb5"),r=n.n(i);r.a},"0758":function(e,t,n){"use strict";n.r(t),function(e){function i(t,n,i,r){var a=n.$page.id;e.publishHandler(a+"-map-"+t,{mapId:t,type:i,data:r},a)}n.d(t,"operateMapPlayer",(function(){return i}))}.call(this,n("0dd1"))},"0784":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("f2b3"),r=n("a741"),a=n("28c0");function o(){return{created:function(){var e=Object(i["e"])(this.$route.query);(function(e,t){var n=e.$route;e.route=n.meta.pagePath,e.options||(e.options=t);var r=Object(i["i"])(n.params,"__id__")?n.params.__id__:n.meta.id,o=n.fullPath;n.meta.isEntry&&-1===o.indexOf(n.meta.pagePath)&&(o="/"+n.meta.pagePath+o.replace("/","")),e.__page__={id:r,path:n.path,route:n.meta.pagePath,fullPath:o,options:t,meta:Object.assign({},n.meta)};var s=e.$router.$eventChannel||new a["a"];e.getOpenerEventChannel=function(){return s},e.$vm=e,e.$root=e,e.$holder=e.$parent.$parent,e.$mp={mpType:"page",page:e,query:{},status:""}})(this,e),Object(r["b"])(this,"onLoad",e),Object(r["b"])(this,"onShow")}}}},"0811":function(e,t,n){"use strict";(function(e){var r=n("8af1"),a=n("18fd"),o=n("b253"),s=n("93ab");function u(e){return u="function"===typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)},u(e)}t["a"]={name:"Editor",mixins:[r["g"],r["a"],r["e"]],props:{id:{type:String,default:""},readOnly:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},showImgSize:{type:[Boolean,String],default:!1},showImgToolbar:{type:[Boolean,String],default:!1},showImgResize:{type:[Boolean,String],default:!1}},data:function(){return{quillReady:!1}},computed:{},watch:{readOnly:function(e){if(this.quillReady){var t=this.quill;t.enable(!e),e||t.blur()}},placeholder:function(e){this.quillReady&&this.setPlaceHolder(e)}},mounted:function(){var e=this,t=[];this.showImgSize&&t.push("DisplaySize"),this.showImgToolbar&&t.push("Toolbar"),this.showImgResize&&t.push("Resize");Object(s["a"])(window.Quill,"https://unpkg.com/quill@1.3.7/dist/quill.min.js",(function(){if(t.length){Object(s["a"])(window.ImageResize,"https://unpkg.com/quill-image-resize-mp@3.0.1/image-resize.min.js",(function(){e.initQuill(t)}))}else e.initQuill(t)}))},methods:{_textChangeHandler:function(){this.$trigger("input",{},this.getContents())},_handleSubscribe:function(t){var n,i,r,a=this,o=t.type,s=t.data,c=s.options,l=s.callbackId,d=this.quill,f=window.Quill;if(this.quillReady){switch(o){case"format":var h=c.name,p=void 0===h?"":h,g=c.value,v=void 0!==g&&g;i=d.getSelection(!0);var m=d.getFormat(i)[p]||!1;if(["bold","italic","underline","strike","ins"].includes(p))v=!m;else if("direction"===p){v=("rtl"!==v||!m)&&v;var y=d.getFormat(i).align;"rtl"!==v||y?v||"right"!==y||d.format("align",!1,f.sources.USER):d.format("align","right",f.sources.USER)}else if("indent"===p){var b="rtl"===d.getFormat(i).direction;v="+1"===v,b&&(v=!v),v=v?"+1":"-1"}else"list"===p&&(v="check"===v?"unchecked":v,m="checked"===m?"unchecked":m),v=m&&m!==(v||!1)||!m&&v?v:!m;d.format(p,v,f.sources.USER);break;case"insertDivider":i=d.getSelection(!0),d.insertText(i.index,"\n",f.sources.USER),d.insertEmbed(i.index+1,"divider",!0,f.sources.USER),d.setSelection(i.index+2,f.sources.SILENT);break;case"insertImage":i=d.getSelection(!0);var _=c.src,w=void 0===_?"":_,T=c.alt,S=void 0===T?"":T,k=c.width,x=void 0===k?"":k,C=c.height,E=void 0===C?"":C,A=c.extClass,O=void 0===A?"":A,j=c.data,I=void 0===j?{}:j,P=this.$getRealPath(w);d.insertEmbed(i.index,"image",P,f.sources.SILENT);var M=!!/^(file|blob):/.test(P)&&P;d.formatText(i.index,1,"data-local",M,f.sources.SILENT),d.formatText(i.index,1,"alt",S,f.sources.SILENT),d.formatText(i.index,1,"width",x,f.sources.SILENT),d.formatText(i.index,1,"height",E,f.sources.SILENT),d.formatText(i.index,1,"class",O,f.sources.SILENT),d.formatText(i.index,1,"data-custom",Object.keys(I).map((function(e){return"".concat(e,"=").concat(I[e])})).join("&"),f.sources.SILENT),d.setSelection(i.index+1,f.sources.SILENT),d.scrollIntoView(),setTimeout((function(){a._textChangeHandler()}),1e3);break;case"insertText":i=d.getSelection(!0);var L=c.text,D=void 0===L?"":L;d.insertText(i.index,D,f.sources.USER),d.setSelection(i.index+D.length,0,f.sources.SILENT);break;case"setContents":var R=c.delta,N=c.html;"object"===u(R)?d.setContents(R,f.sources.SILENT):"string"===typeof N?d.setContents(this.html2delta(N),f.sources.SILENT):r="contents is missing";break;case"getContents":n=this.getContents();break;case"clear":d.setContents([]);break;case"removeFormat":i=d.getSelection(!0);var B=f.import("parchment");i.length?d.removeFormat(i,f.sources.USER):Object.keys(d.getFormat(i)).forEach((function(e){B.query(e,B.Scope.INLINE)&&d.format(e,!1)}));break;case"undo":d.history.undo();break;case"redo":d.history.redo();break;case"blur":d.blur();break;case"getSelectionText":i=d.selection.savedRange,n={text:""},i&&0!==i.length&&(n.text=d.getText(i.index,i.length));break;case"scrollIntoView":d.scrollIntoView();break;default:break}this.updateStatus(i)}else r="not ready";l&&e.publishHandler("onEditorMethodCallback",{callbackId:l,data:Object.assign({},n,{errMsg:"".concat(o,":").concat(r?"fail "+r:"ok")})},this.$page.id)},setPlaceHolder:function(e){var t="data-placeholder",n=this.quill.root;n.getAttribute(t)!==e&&n.setAttribute(t,e)},initQuill:function(e){var t=this,n=window.Quill;o["a"](n);var i={toolbar:!1,readOnly:this.readOnly,placeholder:this.placeholder,modules:{}};e.length&&(n.register("modules/ImageResize",window.ImageResize.default),i.modules.ImageResize={modules:e});var r=this.quill=new n(this.$el,i),a=r.root;["focus","blur","input"].forEach((function(e){a.addEventListener(e,(function(n){var i=t.getContents();if("input"===e){if(function(){var e=navigator.userAgent,t=/iphone|ipad|ipod/i.test(e),n=/Macintosh|Mac/i.test(e),i=n&&navigator.maxTouchPoints>0;return t||i}()){var r=(i.html.match(/<span [\s\S]*>([\s\S]*)<\/span>/)||[])[1],a=r&&r.replace(/\s/g,"")?"":t.placeholder;t.setPlaceHolder(a)}n.stopPropagation()}else t.$trigger(e,n,i)}))})),r.on(n.events.TEXT_CHANGE,this._textChangeHandler),r.on(n.events.SELECTION_CHANGE,this.updateStatus.bind(this)),r.on(n.events.SCROLL_OPTIMIZE,(function(){var e=r.selection.getRange()[0];t.updateStatus(e)})),r.clipboard.addMatcher(Node.ELEMENT_NODE,(function(e,n){return t.skipMatcher||(n.ops=n.ops.filter((function(e){var t=e.insert;return"string"===typeof t})).map((function(e){var t=e.insert;return{insert:t}}))),n})),this.initKeyboard(a),this.quillReady=!0,this.$trigger("ready",event,{})},getContents:function(){var e=this.quill,t=e.root.innerHTML,n=e.getText(),i=e.getContents();return{html:t,text:n,delta:i}},html2delta:function(e){var t,n=["span","strong","b","ins","em","i","u","a","del","s","sub","sup","img","div","p","h1","h2","h3","h4","h5","h6","hr","ol","ul","li","br"],i="";Object(a["a"])(e,{start:function(e,r,a){if(n.includes(e)){t=!1;var o=r.map((function(e){var t=e.name,n=e.value;return"".concat(t,'="').concat(n,'"')})).join(" "),s="<".concat(e," ").concat(o," ").concat(a?"/":"",">");i+=s}else t=!a},end:function(e){t||(i+="</".concat(e,">"))},chars:function(e){t||(i+=e)}}),this.skipMatcher=!0;var r=this.quill.clipboard.convert(i);return this.skipMatcher=!1,r},updateStatus:function(e){var t=this,n=e?this.quill.getFormat(e):{},i=Object.keys(n);(i.length!==Object.keys(this.__status||{}).length||i.find((function(e){return n[e]!==t.__status[e]})))&&(this.__status=n,this.$trigger("statuschange",{},n))}}}}).call(this,n("501c"))},"091a":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"createIntersectionObserver",(function(){return l}));var i=n("62b5"),r=n("1634"),a=n("db70");function o(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),Object.defineProperty(e,i.key,i)}}var s=Object(i["a"])("requestComponentObserver"),u={thresholds:[0],initialRatio:0,observeAll:!1},c=function(){function t(e,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),this.pageId=e.$page&&e.$page.id,this.component=e._$id||e,this.options=Object.assign({},u,n)}return function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(t,[{key:"_makeRootMargin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options.rootMargin=["top","right","bottom","left"].map((function(t){return"".concat(Number(e[t])||0,"px")})).join(" ")}},{key:"relativeTo",value:function(e,t){return this.options.relativeToSelector=e,this._makeRootMargin(t),this}},{key:"relativeToViewport",value:function(e){return this.options.relativeToSelector=null,this._makeRootMargin(e),this}},{key:"observe",value:function(t,n){"function"===typeof n&&(this.options.selector=t,this.reqId=s.push(n),e.publishHandler("requestComponentObserver",{reqId:this.reqId,component:this.component,options:this.options},Object(r["a"])(this.component)?this.component:this.pageId))}},{key:"disconnect",value:function(){e.publishHandler("destroyComponentObserver",{reqId:this.reqId},Object(r["a"])(this.component)?this.component:this.pageId)}}]),t}();function l(e,t){return e._isVue||(t=e,e=null),new c(e||Object(a["b"])("createIntersectionObserver"),t)}}.call(this,n("0dd1"))},"0998":function(e,t,n){"use strict";var i=n("010d"),r=n.n(i);r.a},"09e5":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"requestComponentInfo",(function(){return o}));var i=n("62b5"),r=n("1634"),a=Object(i["a"])("requestComponentInfo");function o(t,n,i){e.publishHandler("requestComponentInfo",{reqId:a.push(i),reqs:n},Object(r["a"])(t)?t:t.$page.id)}}.call(this,n("0dd1"))},"0a7b":function(e,t,n){},"0baa":function(e,t,n){"use strict";n.r(t),n.d(t,"chooseFile",(function(){return a}));var i=["all","image","video"],r=["album","camera"],a={count:{type:Number,required:!1,default:100,validator:function(e,t){e<=0&&(t.count=100)}},sourceType:{type:Array,required:!1,default:r,validator:function(e,t){e=e.filter((function(e){return r.includes(e)})),t.sourceType=e.length?e:r}},type:{type:String,required:!1,default:"all",validator:function(e,t){i.includes(e)||(t.type=i[0]),t.type="all"===t.type?t.type="*":t.type}},extension:{type:Array,default:[""],validator:function(e,t){if(0===e.length)return"param extension should not be empty."}}}},"0c7c":function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var u,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=u):r&&(u=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,u):[u]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},"0dd1":function(e,t,n){"use strict";n.r(t),n.d(t,"on",(function(){return u})),n.d(t,"off",(function(){return c})),n.d(t,"once",(function(){return l})),n.d(t,"emit",(function(){return d})),n.d(t,"subscribe",(function(){return f})),n.d(t,"unsubscribe",(function(){return h})),n.d(t,"subscribeHandler",(function(){return p}));var i=n("8bbf"),r=n.n(i),a=n("27a7");n.d(t,"invokeCallbackHandler",(function(){return a["a"]})),n.d(t,"removeCallbackHandler",(function(){return a["b"]}));var o=n("b865");n.d(t,"publishHandler",(function(){return o["b"]}));var s=new r.a,u=s.$on.bind(s),c=s.$off.bind(s),l=s.$once.bind(s),d=s.$emit.bind(s);function f(e,t){return u("view."+e,t)}function h(e,t){return c("view."+e,t)}function p(e,t,n){return d("view."+e,t,n)}},"0e5c":function(e,t,n){"use strict";n.r(t),n.d(t,"showTopWindow",(function(){return a})),n.d(t,"hideTopWindow",(function(){return o})),n.d(t,"showLeftWindow",(function(){return s})),n.d(t,"hideLeftWindow",(function(){return u})),n.d(t,"showRightWindow",(function(){return c})),n.d(t,"hideRightWindow",(function(){return l})),n.d(t,"getTopWindowStyle",(function(){return f})),n.d(t,"getLeftWindowStyle",(function(){return h})),n.d(t,"getRightWindowStyle",(function(){return p})),n.d(t,"setTopWindowStyle",(function(){return v})),n.d(t,"setLeftWindowStyle",(function(){return m})),n.d(t,"setRightWindowStyle",(function(){return y}));var i=n("f2b3");function r(e,t){var n=t?"show":"hide"+Object(i["c"])(e)+"Window",r=getApp();if(r){var a=r.$children[0].$refs.layout.showWindow(e,t);return a?{errMsg:"".concat(n,":fail ").concat(a)}:{}}return{errMsg:"".concat(n,":fail app not ready")}}function a(){return r("top",!0)}function o(){return r("top",!1)}function s(){return r("left",!0)}function u(){return r("left",!1)}function c(){return r("right",!0)}function l(){return r("right",!1)}function d(e){var t="get"+Object(i["c"])(e)+"WindowStyle",n=getApp();if(!n)return{errMsg:"".concat(t,":fail app not ready")};var r=n.$children[0].$refs.layout.getWindowStyle(e);return"string"===typeof r&&-1!==r.indexOf("Window not found")?{errMsg:"".concat(t,":fail ").concat(r)}:r}function f(e){return d("top")}function h(e){return d("left")}function p(e){return d("right")}function g(e,t){var n="set"+Object(i["c"])(e)+"WindowStyle",r=getApp();if(!r)return{errMsg:"".concat(n,":fail app not ready")};var a=r.$children[0].$refs.layout.setWindowStyle(e,t);return a?{errMsg:"".concat(n,":fail ").concat(a)}:{}}function v(e){return g("top",e)}function m(e){return g("left",e)}function y(e){return g("right",e)}},"0f55":function(e,t,n){"use strict";var i=n("55e3"),r=n.n(i);r.a},"0f74":function(e,t,n){"use strict";function i(e,t){if(t){if(0===t.indexOf("/"))return t}else{if(t=e,0===t.indexOf("/"))return t;var n=getCurrentPages();e=n.length?n[n.length-1].$page.route:""}if(0===t.indexOf("./"))return i(e,t.substr(2));for(var r=t.split("/"),a=r.length,o=0;o<a&&".."===r[o];o++);r.splice(0,o),t=r.join("/");var s=e.length>0?e.split("/"):[];return s.splice(s.length-o-1,o+1),"/"+s.concat(r).join("/")}n.d(t,"a",(function(){return i}))},1082:function(e,t,n){"use strict";n.r(t);function r(e){return r="function"===typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)},r(e)}function a(e){return("undefined"===typeof navigator||r(navigator))&&"Google Inc."===navigator.vendor&&e>10&&(e=2*Math.round(e/2)),e}var o={name:"Image",props:{src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},data:function(){return{originalWidth:0,originalHeight:0,originalStyle:{width:"",height:""},contentPath:""}},computed:{ratio:function(){return this.originalWidth&&this.originalHeight?this.originalWidth/this.originalHeight:0},style:function(){var e="auto",t="";switch(this.mode){case"aspectFit":e="contain",t="center center";break;case"aspectFill":e="cover",t="center center";break;case"widthFix":case"heightFix":e="100% 100%";break;case"top":t="center top";break;case"bottom":t="center bottom";break;case"center":t="center center";break;case"left":t="left center";break;case"right":t="right center";break;case"top left":t="left top";break;case"top right":t="right top";break;case"bottom left":t="left bottom";break;case"bottom right":t="right bottom";break;default:e="100% 100%",t="0% 0%";break}return{"background-image":this.contentPath?'url("'.concat(this.contentPath,'")'):"none","background-position":t,"background-size":e,"background-repeat":"no-repeat"}}},watch:{src:function(e,t){this._loadImage()},mode:function(e,t){"widthFix"!==t&&"heightFix"!==t||this._resetSize(),"widthFix"!==e&&"heightFix"!==e||this._fixSize()},contentPath:function(e){!e&&this.__img&&(this.__img.remove(),delete this.__img)}},mounted:function(){this.originalStyle.width=this.$el.style.width||"",this.originalStyle.height=this.$el.style.height||"",this._loadImage()},beforeDestroy:function(){this._clearImage()},methods:{_fixSize:function(){if(this.ratio){var e=this.$el;if("widthFix"===this.mode){var t=e.offsetWidth;t&&(e.style.height=a(t/this.ratio)+"px")}else if("heightFix"===this.mode){var n=e.offsetHeight;n&&(e.style.width=a(n*this.ratio)+"px")}}window.dispatchEvent(new CustomEvent("updateview"))},_resetSize:function(){this.$el.style.width=this.originalStyle.width,this.$el.style.height=this.originalStyle.height},_resetData:function(){this.originalWidth=0,this.originalHeight=0,this.contentPath=""},_loadImage:function(){var e=this,t=this.$getRealPath(this.src);if(t){var n=this._img=this._img||new Image;n.onload=function(i){e._img=null;var r=e.originalWidth=n.width,a=e.originalHeight=n.height;e._fixSize(),e.contentPath=t,n.draggable=e.draggable,e.__img&&e.__img.remove(),e.__img=n,e.$el.appendChild(n),e.$trigger("load",i,{width:r,height:a})},n.onerror=function(t){e._img=null,e._resetData(),e.$trigger("error",t,{errMsg:"GET ".concat(e.src," 404 (Not Found)")})},n.src=t}else this._clearImage(),this._resetData()},_clearImage:function(){var e=this._img;e&&(e.onload=null,e.onerror=null,this._img=null)}}},s=o,u=(n("db18"),n("0c7c")),c=Object(u["a"])(s,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-image",e._g({},e.$listeners),[n("div",{ref:"content",style:e.style}),"widthFix"===e.mode||"heightFix"===e.mode?n("v-uni-resize-sensor",{ref:"sensor",on:{resize:function(t){return e._fixSize()}}}):e._e()],1)}),[],!1,null,null,null);t["default"]=c.exports},"10a3":function(e,t,n){"use strict";n.r(t);var i=n("8af1");function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(){function e(){r(this,e),this._instance=null,this._adConfig=null,this._isLoading=!1,this._lastError=null,this._callbacks=[]}return o(e,null,[{key:"instance",get:function(){return null==this._instance&&(this._instance=new e,this._instance._init()),this._instance}}]),o(e,[{key:"_init",value:function(){var e=this._getConfig();null!==e&&e.last&&(this.isExpired||(this._adConfig=e.data))}},{key:"get",value:function(t,n,i){if(e.IC++,null!=this._adConfig)return this._doCallback(t,n,i),void(this.isExpired&&this._loadAdConfig(t));this._callbacks.push({adpid:t,success:n,fail:i}),this._loadAdConfig(t)}},{key:"_doCallback",value:function(t,n,i){e.IS++;var r=this._adConfig,a=r.a,o=r.b;a[t]?n(o,a[t]):i(this.ERROR_INVALID_ADPID)}},{key:"_loadAdConfig",value:function(e){var t=this;!0!==this._isLoading&&(this._isLoading=!0,uni.request({url:this.URL,method:"GET",timeout:8e3,data:{d:location.hostname,a:e},dataType:"json",success:function(e){var n=e.data;if(0===n.ret){var i=n.data;t._adConfig=i,t._setConfig(i),t._callbacks.forEach((function(e){var n=e.adpid,i=e.success,r=e.fail;t._doCallback(n,i,r)}))}else t._callbacks.forEach((function(e){e.fail({errCode:n.ret,errMsg:n.msg})}));t._callbacks=[]},fail:function(e){t._callbacks.forEach((function(t){t.fail(e)})),t._callbacks=[]},complete:function(e){t._isLoading=!1}}))}},{key:"_getConfig",value:function(){if(!navigator.cookieEnabled||!window.localStorage)return null;var e=localStorage.getItem(this.KEY);return e?JSON.parse(e):null}},{key:"_setConfig",value:function(e){if(!navigator.cookieEnabled||!window.localStorage)return null;localStorage.setItem(this.KEY,JSON.stringify({last:Date.now(),data:e}))}},{key:"adConfig",get:function(){return this._adConfig}},{key:"isExpired",get:function(){return null==this._adConfig||Math.abs(Date.now()-this._adConfig.last)>this.CACHE_TIME}}]),e}();s(u,"IC",0),s(u,"IS",0),Object.assign(u.prototype,{URL:"https://hac1.dcloud.net.cn/ah5",KEY:"uni_app_ad_config",CACHE_TIME:6e5,ERROR_INVALID_ADPID:{"-5002":"invalid adpid"}});var c=function(){function e(){r(this,e),this._instance=null,this._adConfig=null,this._guid=null}return o(e,null,[{key:"instance",get:function(){return null==this._instance&&(this._instance=new e,this._instance._init()),this._instance}}]),o(e,[{key:"_init",value:function(){var e=this._getConfig();null!==e&&e.guid?this._guid=e.guid:(this._guid=this._newGUID(),this._setConfig(this._guid))}},{key:"get",value:function(e){this._process(Object.assign(e,{d:location.hostname,i:this._guid}))}},{key:"_process",value:function(e){uni.request({url:this.URL,method:"GET",data:e,dataType:"json",success:function(){}})}},{key:"_newGUID",value:function(){for(var e="",t="xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx",n=0;n<t.length;n++)e+="x"===t[n]?(16*Math.random()|0).toString(16):t[n];return e.toUpperCase()}},{key:"_getConfig",value:function(){if(!navigator.cookieEnabled||!window.localStorage)return null;var e=localStorage.getItem(this.KEY);return e?JSON.parse(e):null}},{key:"_setConfig",value:function(e){if(!navigator.cookieEnabled||!window.localStorage)return null;localStorage.setItem(this.KEY,JSON.stringify({last:Date.now(),guid:e}))}}]),e}();Object.assign(c.prototype,{URL:"https://has1.dcloud.net.cn/ahl",KEY:"uni_app_ad_guid"});var l=function(){function e(){r(this,e),this._instance=null,this._callback={},this._cache={}}return o(e,null,[{key:"instance",get:function(){return null==this._instance&&(this._instance=new e),this._instance}}]),o(e,[{key:"load",value:function(e,t,n,i){void 0===this._cache[e]&&this.loadScript(e,t),1===this._cache[e]?n():(this._callback[e]||(this._callback[e]=[]),this._callback[e].push({success:n,fail:i}))}},{key:"loadScript",value:function(e,t){var n=this;this._cache[e]=0;var i=document.createElement("script");for(var r in i.setAttribute("id","uniad_provider"+e),t)i.setAttribute(r,t[r]);i.onload=function(){n._cache[e]=1,n._callback[e].forEach((function(e){var t=e.success;t()})),n._callback[e].length=0},i.onerror=function(t){n._cache[e]=void 0,n._callback[e].forEach((function(e){var n=e.fail;n(t)})),n._callback[e].length=0},document.body.append(i)}}]),e}(),d=function(){function e(){r(this,e),this._instance=null,this._callback={},this._cache={},window.TencentGDT=window.TencentGDT||[]}return o(e,null,[{key:"instance",get:function(){return null==this._instance&&(this._instance=new e),this._instance}}]),o(e,[{key:"load",value:function(e,t,n,i){var r=this;this._callback[t]||(this._callback[t]=[]),this._callback[t].push({success:n,fail:i}),this._cache[t]||(this._cache[t]={isReady:!1},window.TencentGDT.push({app_id:e,placement_id:t,type:"native",count:1,onComplete:function(e){r._cache[t].isReady=!0,r._callback[t].forEach((function(n){var i=n.success,a=n.fail;e&&Array.isArray(e)&&e.length?i(e[0]):a(e),r._callback[t].length=0}))}})),!0===this._cache[t].isReady&&window.TencentGDT.NATIVE.loadAd(t)}}]),e}(),f={name:"Ad",mixins:[i["g"]],props:{adpid:{type:[Number,String],default:""},adpidWidescreen:{type:[Number,String],default:""},widescreenWidth:{type:[Number,String],default:750}},watch:{adpid:function(e){e&&this._loadData(e)},adpidWidescreen:function(e){e&&this._loadData(e)}},mounted:function(){this._p={},this._pl=[],this._pi=0,this._checkTimer=null,this._checkTimerCount=0,this._isWidescreen=this.$refs.container.clientWidth>parseInt(this.widescreenWidth),this._loadData(),c.instance.get({h:__uniConfig.compilerVersion,a:this.adpid,at:-3,ic:u.IC,is:u.IS})},beforeDestroy:function(){this._clearCheckTimer(),this.$refs.container.innerHTML="",this._shanhuAd&&delete this._shanhuAd},methods:{_onhandle:function(e){this._report(41)},_reset:function(){this._p={},this._pl=[],this._pi=0,this._clearCheckTimer(),this.$refs.container.innerHTML="",this._isReady=!1},_loadData:function(e){var t=this;this._reset();var n=e||this.adpid,i=this._isWidescreen&&this.adpidWidescreen||n;u.instance.get(i,(function(e,n){t._b=e,t._pl=n,t._renderAd()}),(function(e){t.$trigger("error",{},e)}))},_renderAd:function(){var e=this;if(!(this._pi>this._pl.length-1)){var t=this._pl[this._pi],n=this._b[t.a1][t.t],i=n.script;this._currentChannel=t.a1;var r=this._randomId(),a=this._createView(r);"10010"===t.a1?l.instance.load(t.t,i,(function(){e._renderBaidu(r,t.a2)}),(function(t){e.$trigger("error",{},t)})):"10011"===t.a1?(d.instance.load(t.a3,t.a2,(function(e){window.TencentGDT.NATIVE.renderAd(e,r)})),this._startCheckTimer()):"10012"===t.a1?this._renderScript(a,i):"10014"===t.a1?l.instance.load(t.t,i,(function(){e._renderShanhu(r,t.tt,t.tar)}),(function(t){e.$trigger("error",{},t)})):l.instance.load(t.t,i,(function(){e._renderAdView(r,i.s,t)}),(function(t){e.$trigger("error",{},t)}))}},_createView:function(e){var t=document.createElement("div");return t.setAttribute("id",e),t.setAttribute("class",e),this.$refs.container.innerHTML="",this.$refs.container.append(t),t},_renderScript:function(e,t){var n=document.createElement("script");for(var i in t)n.setAttribute(i,t[i]);e.appendChild(n),this._startCheckTimer()},_renderBaidu:function(e,t){(window.slotbydup=window.slotbydup||[]).push({id:t,container:e,async:!0}),this._startCheckTimer()},_renderAdView:function(e,t,n){var i=window;t.split(".").reduce((function(e,t){return i=e,e[t]}),window).bind(i)(n.a2,e,2),this._startCheckTimer()},_renderShanhu:function(e,t,n){var i=this;this._shanhuAd=new window.CoralTBSAdv(e,{type:t,target:n,advShowCb:function(){i._report(42),i.$trigger("load",{},{})},advClickCb:function(){i._report(43),i.$trigger("adclicked",{},{})},advCloseCb:function(){i.$trigger("close",{},{})},advErrorCb:function(e){i.$trigger("error",{},e)}}),this._startCheckTimer()},_renderNext:function(){this._pi>=this._pl.length-1||(this._pi++,this._renderAd())},_checkRender:function(){var e=this.$refs.container.children.length>0&&this.$refs.container.clientHeight>40;return e&&this._report(40,this._currentChannel),e},_startCheckTimer:function(){var e=this;this._clearCheckTimer(),this._checkTimer=setInterval((function(){if(e._checkTimerCount++,e._checkTimerCount>=5)return e._clearCheckTimer(),void e._renderNext();e._checkRender()&&e._clearCheckTimer()}),1e3)},_clearCheckTimer:function(){this._checkTimerCount=0,null!=this._checkTimer&&(window.clearInterval(this._checkTimer),this._checkTimer=null)},_report:function(e,t){var n={h:__uniConfig.compilerVersion,a:this.adpid,at:e};t&&(n.t=t),c.instance.get(n)},_randomId:function(){for(var e="",t=0;t<4;t++)e+=(65536*(1+Math.random())|0).toString(16).substring(1);return"_u"+e}}},h=f,p=(n("e4bc"),n("0c7c")),g=Object(p["a"])(h,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-ad",e._g(e._b({},"uni-ad",e.attrs,!1),e.$listeners),[n("div",{ref:"container",staticClass:"uni-ad-container",on:{click:e._onhandle}})])}),[],!1,null,null,null);t["default"]=g.exports},1164:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return u}));var i=n("a6b0"),r=n("23e5"),a=!1;function o(){return a}function s(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=[],r=o();if(!r)return n&&e.error("app is not ready"),[];var a=r.$children[0];if(a&&a.$children.length){var s=a.$children.find((function(e){return"TabBar"===e.$options.name})),u=a.$children.find((function(e){return"Layout"===e.$options.name}));u&&(a=u),a.$children.forEach((function(e){if(s!==e&&e.$children.length&&"Page"===e.$children[0].$options.name&&e.$children[0].$slots.page){var n=e.$children[0].$children.find((function(e){return"PageBody"===e.$options.name})),a=n&&n.$children.find((function(e){return!!e.$page}));if(a){var o=!0;!t&&s&&a.$page&&a.$page.meta.isTabBar&&(r.$route.meta&&r.$route.meta.isTabBar?r.$route.path!==a.$page.path&&(o=!1):s.__path__!==a.$page.path&&(o=!1)),o&&i.push(a)}}}))}var c=i.length;if(c>1){var l=i[c-1];l.$page.path!==r.$route.path&&i.splice(c-1,1)}return i}function u(e,t,n){a=t,a.$vm=t,a.globalData=a.$options.globalData||{},Object(i["d"])(e,a),Object(r["a"])(a,n)}}).call(this,n("3ad9")["default"])},"11d0":function(e,t,n){"use strict";var i=n("a92f"),r=n.n(i);r.a},"11fb":function(e,t,n){"use strict";n.r(t),n.d(t,"previewImage",(function(){return r}));var i=n("cb0f"),r={urls:{type:Array,required:!0,validator:function(e,t){var n;if(t.urls=e.map((function(e){if("string"===typeof e)return Object(i["a"])(e);n=!0})),n)return"url is not string"}},current:{type:[String,Number],validator:function(e,t){"number"===typeof e?t.current=e>0&&e<t.urls.length?e:0:"string"===typeof e&&e&&(t.current=Object(i["a"])(e))},default:0}}},"14ab":function(e,t,n){"use strict";(function(e){var i=n("e949"),r=n("cb0f"),a=n("15bb"),o={forward:"",back:"",share:"",favorite:"",home:"",menu:"",close:""};t["a"]={name:"PageHead",mixins:[a["a"]],props:{backButton:{type:Boolean,default:!0},backgroundColor:{type:String,default:function(){return"transparent"===this.type?"#000":"#F8F8F8"}},textColor:{type:String,default:"#fff"},titleText:{type:String,default:""},duration:{type:String,default:"0"},timingFunc:{type:String,default:""},loading:{type:Boolean,default:!1},titleSize:{type:String,default:"16px"},type:{default:"default",validator:function(e){return-1!==["default","transparent","float"].indexOf(e)}},coverage:{type:String,default:"132px"},buttons:{type:Array,default:function(){return[]}},searchInput:{type:[Object,Boolean],default:function(){return!1}},titleImage:{type:String,default:""},titlePenetrate:{type:Boolean,default:!1},shadow:{type:Object,default:function(){return{}}}},data:function(){return{focus:!1,text:"",composing:!1,showPlaceholder:!1}},computed:{btns:function(){var e=this,t=[],n={};return this.buttons.length&&this.buttons.forEach((function(a){var o=Object.assign({},a);if(o.fontSrc&&!o.fontFamily){var s,u=o.fontSrc=Object(r["a"])(o.fontSrc);if(u in n)s=n[u];else{s="font".concat(Date.now()),n[u]=s;var c='@font-face{font-family: "'.concat(s,'";src: url("').concat(u,'") format("truetype")}');Object(i["a"])(c,"uni-btn-font-"+s)}o.fontFamily=s}o.color="transparent"===e.type?"#fff":o.color||e.textColor;var l=o.fontSize||("transparent"===e.type||/\\u/.test(o.text)?"22px":"27px");/\d$/.test(l)&&(l+="px"),o.fontSize=l,o.fontWeight=o.fontWeight||"normal",t.push(o)})),t},headClass:function(){var e=this.shadow.colorType,t={"uni-page-head-transparent":"transparent"===this.type,"uni-page-head-titlePenetrate":this.titlePenetrate,"uni-page-head-shadow":e};return e&&(t["uni-page-head-shadow-".concat(e)]=e),t}},mounted:function(){var t=this;if(this.searchInput){var n=this.$refs.input;n.$watch("composing",(function(e){t.composing=e})),n.$watch("valueSync",(function(e){t.showPlaceholder=!!e})),this.searchInput.disabled?n.$el.addEventListener("click",(function(){e.emit("onNavigationBarSearchInputClicked","")})):(n.$refs.input.addEventListener("keyup",(function(n){"ENTER"===n.key.toUpperCase()&&e.emit("onNavigationBarSearchInputConfirmed",{text:t.text})})),n.$refs.input.addEventListener("focus",(function(){e.emit("onNavigationBarSearchInputFocusChanged",{focus:!0})})),n.$refs.input.addEventListener("blur",(function(){e.emit("onNavigationBarSearchInputFocusChanged",{focus:!1})})))}},methods:{_back:function(){1===getCurrentPages().length?uni.reLaunch({url:"/"}):uni.navigateBack({from:"backbutton"})},_onBtnClick:function(t){e.emit("onNavigationBarButtonTap",Object.assign({},this.btns[t],{index:t}))},_formatBtnFontText:function(e){return e.fontSrc&&e.fontFamily?e.text.replace("\\u","&#x"):o[e.type]?o[e.type]:e.text||""},_formatBtnStyle:function(e){var t={color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight};return e.fontFamily&&(t.fontFamily=e.fontFamily),t},_focus:function(){this.focus=!0},_blur:function(){this.focus=!1},_input:function(t){e.emit("onNavigationBarSearchInputChanged",{text:t})},_clearInput:function(){this.text="",this._input(this.text)}}}}).call(this,n("0dd1"))},1585:function(e,t,n){"use strict";n.r(t),n.d(t,"addPhoneContact",(function(){return i}));var i={firstName:{type:String,required:!0,validator:function(e){if(!e)return"addPhoneContact:fail parameter error: parameter.firstName should not be empty String;"}}}},"15bb":function(e,t,n){"use strict";(function(e){var i=n("f2b3");t["a"]={mounted:function(){var t=this;if("transparent"===this.type){for(var n=this.$el.querySelector(".uni-page-head-transparent").style,i=this.$el.querySelector(".uni-page-head__title"),r=this.$el.querySelectorAll(".uni-btn-icon"),a=[],o=this.textColor,s=0;s<r.length;s++)a.push(r[s].style);for(var u=this.$el.querySelectorAll(".uni-page-head-btn"),c=[],l=[],d=0;d<u.length;d++){var f=u[d];c.push(getComputedStyle(f).backgroundColor),l.push(f.style)}this._A=0,e.on("onPageScroll",(function(e){var r=e.scrollTop,s=Math.min(r/t.offset,1);1===s&&1===t._A||(s>.5&&t._A<=.5?a.forEach((function(e){e.color=o})):s<=.5&&t._A>.5&&a.forEach((function(e){e.color="#fff"})),t._A=s,i&&(i.style.opacity=s),n.backgroundColor="rgba(".concat(t._R,",").concat(t._G,",").concat(t._B,",").concat(s,")"),l.forEach((function(e,t){var n=c[t],i=n.match(/[\d+\.]+/g);i[3]=(1-s)*(4===i.length?i[3]:1),e.backgroundColor="rgba(".concat(i,")")})))}))}else if("float"===this.type){for(var h=this.$el.querySelectorAll(".uni-btn-icon"),p=[],g=0;g<h.length;g++)p.push(h[g].style);for(var v=this.$el.querySelectorAll(".uni-page-head-btn"),m=[],y=[],b=0;b<v.length;b++){var _=v[b];m.push(getComputedStyle(_).backgroundColor),y.push(_.style)}}},computed:{color:function(){return"transparent"===this.type?"#fff":this.textColor},offset:function(){return parseInt(this.coverage)},bgColor:function(){if("transparent"===this.type){var e=Object(i["j"])(this.backgroundColor),t=e.r,n=e.g,r=e.b;return this._R=t,this._G=n,this._B=r,"rgba(".concat(t,",").concat(n,",").concat(r,",0)")}return this.backgroundColor}}}}).call(this,n("501c"))},1634:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=["VUniLeftWindow","VUniTopWindow","VUniRightWindow"];function r(e){while(e){if(-1!==i.indexOf(e.$options.name))return!0;e=e.$parent}}},"167a":function(e,t,n){"use strict";var i=n("0a7b"),r=n.n(i);r.a},1757:function(e,t,n){},"17fd":function(e,t,n){"use strict";n.r(t);var i=n("6d7c"),r=i["a"],a=(n("f7fd"),n("0c7c")),o=Object(a["a"])(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.hoverClass&&"none"!==e.hoverClass?n("uni-navigator",e._g({class:[e.hovering?e.hoverClass:""],on:{touchstart:e._hoverTouchStart,touchend:e._hoverTouchEnd,touchcancel:e._hoverTouchCancel,mousedown:e._hoverMousedown,mouseup:e._hoverMouseup,click:e._onClick}},e.$listeners),[e._t("default")],2):n("uni-navigator",e._g({on:{click:e._onClick}},e.$listeners),[e._t("default")],2)}),[],!1,null,null,null);t["default"]=o.exports},"18fd":function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var i=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,r=/^<\/([-A-Za-z0-9_]+)[^>]*>/,a=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,o=h("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),s=h("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),u=h("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),c=h("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),l=h("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),d=h("script,style");function f(e,t){var n,f,h,p=[],g=e;p.last=function(){return this[this.length-1]};while(e){if(f=!0,p.last()&&d[p.last()])e=e.replace(new RegExp("([\\s\\S]*?)</"+p.last()+"[^>]*>"),(function(e,n){return n=n.replace(/<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g,"$1$2"),t.chars&&t.chars(n),""})),y("",p.last());else if(0==e.indexOf("\x3c!--")?(n=e.indexOf("--\x3e"),n>=0&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),f=!1)):0==e.indexOf("</")?(h=e.match(r),h&&(e=e.substring(h[0].length),h[0].replace(r,y),f=!1)):0==e.indexOf("<")&&(h=e.match(i),h&&(e=e.substring(h[0].length),h[0].replace(i,m),f=!1)),f){n=e.indexOf("<");var v=n<0?e:e.substring(0,n);e=n<0?"":e.substring(n),t.chars&&t.chars(v)}if(e==g)throw"Parse Error: "+e;g=e}function m(e,n,i,r){if(n=n.toLowerCase(),s[n])while(p.last()&&u[p.last()])y("",p.last());if(c[n]&&p.last()==n&&y("",n),r=o[n]||!!r,r||p.push(n),t.start){var d=[];i.replace(a,(function(e,t){var n=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:l[t]?t:"";d.push({name:t,value:n,escaped:n.replace(/(^|[^\\])"/g,'$1\\"')})})),t.start&&t.start(n,d,r)}}function y(e,n){if(n){for(i=p.length-1;i>=0;i--)if(p[i]==n)break}else var i=0;if(i>=0){for(var r=p.length-1;r>=i;r--)t.end&&t.end(p[r]);p.length=i}}y()}function h(e){for(var t={},n=e.split(","),i=0;i<n.length;i++)t[n[i]]=!0;return t}},1934:function(e,t,n){"use strict";n.r(t),n.d(t,"setNavigationBarColor",(function(){return r})),n.d(t,"setNavigationBarTitle",(function(){return a}));var i=["#ffffff","#000000"],r={frontColor:{type:String,required:!0,validator:function(e,t){if(-1===i.indexOf(e))return'invalid frontColor "'.concat(e,'"')}},backgroundColor:{type:String,required:!0},animation:{type:Object,default:function(){return{duration:0,timingFunc:"linear"}},validator:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;t.animation={duration:e.duration||0,timingFunc:e.timingFunc||"linear"}}}},a={title:{type:String,required:!0}}},1955:function(e,t,n){"use strict";n.r(t);var i=n("ba15"),r=n("8aec"),a=n("5363"),o=n("72b3"),s=n("d4cd");var u={name:"PickerViewColumn",mixins:[i["a"],r["a"]],data:function(){return{scope:"picker-view-column-".concat(Date.now()),inited:!1,indicatorStyle:"",indicatorClass:"",indicatorHeight:34,maskStyle:"",maskClass:"",current:this.$parent.getItemValue(this),length:0}},computed:{height:function(){return this.$parent.height},maskSize:function(){return(this.height-this.indicatorHeight)/2}},watch:{indicatorHeight:function(e){this._setItemHeight(e),this.inited&&this.update()},current:function(e){this.$parent.setItemValue(this,e)},length:function(e){this.inited&&this.update(e)}},created:function(){var e=this.$parent;this.indicatorStyle=e.indicatorStyle,this.indicatorClass=e.indicatorClass,this.maskStyle=e.maskStyle,this.maskClass=e.maskClass,this.deltaY=0},mounted:function(){var e=this;this.touchtrack(this.$refs.main,"_handleTrack",!0),this.setCurrent(this.current),this.$nextTick((function(){e.init(),e.update()})),function(e){var t=0,n=0;e.addEventListener("touchstart",(function(e){var i=e.changedTouches[0];t=i.clientX,n=i.clientY})),e.addEventListener("touchend",(function(e){var i=e.changedTouches[0];if(Math.abs(i.clientX-t)<20&&Math.abs(i.clientY-n)<20){var r=new CustomEvent("click",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((function(e){r[e]=i[e]})),e.target.dispatchEvent(r)}}))}(this.$el),Object(s["b"])();var t=this;while(t){var n=t.$options._scopeId;n&&this.$refs.indicator.setAttribute(n,""),t=t.$parent}},methods:{_setItemHeight:function(e){var t=document.createElement("style");t.innerText=".uni-picker-view-content.".concat(this.scope,">*{height: ").concat(e,"px;overflow: hidden;}"),document.head.appendChild(t)},_handleTrack:function(e){if(this._scroller)switch(e.detail.state){case"start":this._handleTouchStart(e),Object(s["a"])({disable:!0});break;case"move":this._handleTouchMove(e),e.stopPropagation();break;case"end":case"cancel":this._handleTouchEnd(e),Object(s["a"])({disable:!1})}},_handleTap:function(e){var t=e.clientY;if(!this._scroller.isScrolling()){var n=this.$el.getBoundingClientRect(),i=t-n.top-this.height/2,r=this.indicatorHeight/2;if(!(Math.abs(i)<=r)){var a=Math.ceil((Math.abs(i)-r)/this.indicatorHeight),o=i<0?-a:a,s=Math.min(this.current+o,this.length-1);this.current=s=Math.max(s,0),this._scroller.scrollTo(s*this.indicatorHeight)}}},_handleWheel:function(e){var t=this.deltaY+e.deltaY;if(Math.abs(t)>10){this.deltaY=0;var n=Math.min(this.current+(t<0?-1:1),this.length-1);this.current=n=Math.max(n,0),this._scroller.scrollTo(n*this.indicatorHeight)}else this.deltaY=t;e.preventDefault()},setCurrent:function(e){e!==this.current&&(this.current=e,this.inited&&this.update())},init:function(){var e=this;this.initScroller(this.$refs.content,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:this.indicatorHeight,friction:new a["a"](1e-4),spring:new o["a"](2,90,20),onSnap:function(t){isNaN(t)||t===e.current||(e.current=t)}}),this.inited=!0},update:function(){var e=this;this.$nextTick((function(){var t=Math.min(e.current,e.length-1);t=Math.max(t,0),e._scroller.update(t*e.indicatorHeight,void 0,e.indicatorHeight)}))},_resize:function(e){var t=e.height;this.indicatorHeight=t}},render:function(e){return this.length=this.$slots.default&&this.$slots.default.length||0,e("uni-picker-view-column",{on:{on:this.$listeners}},[e("div",{ref:"main",staticClass:"uni-picker-view-group",on:{wheel:this._handleWheel,click:this._handleTap}},[e("div",{ref:"mask",staticClass:"uni-picker-view-mask",class:this.maskClass,style:"background-size: 100% ".concat(this.maskSize,"px;").concat(this.maskStyle)}),e("div",{ref:"indicator",staticClass:"uni-picker-view-indicator",class:this.indicatorClass,style:this.indicatorStyle},[e("v-uni-resize-sensor",{attrs:{initial:!0},on:{resize:this._resize}})]),e("div",{ref:"content",staticClass:"uni-picker-view-content",class:this.scope,style:"padding: ".concat(this.maskSize,"px 0;")},[this.$slots.default])])])}},c=u,l=(n("edfa"),n("0c7c")),d=Object(l["a"])(c,void 0,void 0,!1,null,null,null);t["default"]=d.exports},"19c4":function(e,t,n){var i={"./base/base64.js":"6481","./base/can-i-use.js":"957a","./base/event-bus.js":"b0ef","./base/interceptor.js":"a954","./base/upx2px.js":"2289","./context/canvas.js":"82b9","./context/context.js":"3bfb","./device/add-phone-contact.js":"1585","./device/make-phone-call.js":"f102","./device/scan-code.js":"ea0f","./device/set-clipboard-data.js":"b501","./file/file.js":"2da2","./file/open-document.js":"2604","./location/choose-location.js":"e5bb","./location/get-location.js":"19d9","./location/open-location.js":"70bb","./media/choose-file.js":"0baa","./media/choose-image.js":"f1b2","./media/choose-video.js":"ed9f","./media/compress-image.js":"dc12","./media/compress-video.js":"5243","./media/get-image-info.js":"b866","./media/get-video-info.js":"3f15","./media/preview-image.js":"11fb","./media/save-image-to-photos-album.js":"4f53","./network/download-file.js":"439a","./network/request.js":"a201","./network/socket.js":"abb2","./network/upload-file.js":"9a3e","./plugin/get-provider.js":"4e7c","./plugin/load-sub-package.js":"d013","./plugin/pre-login.js":"f68f","./route/route.js":"332a","./storage/storage.js":"ec33","./ui/load-font-face.js":"5ff9","./ui/navigation-bar.js":"1934","./ui/page-scroll-to.js":"232e","./ui/popup.js":"2246","./ui/tab-bar.js":"5621"};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=a,e.exports=r,r.id="19c4"},"19d9":function(e,t,n){"use strict";n.r(t),n.d(t,"getLocation",(function(){return r}));var i=["wgs84","gcj02"],r={type:{type:String,validator:function(e,t){e=(e||"").toLowerCase(),t.type=i.indexOf(e)<0?i[0]:e}},altitude:{type:Boolean,default:!1}}},"1a12":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"request",(function(){return s}));var i=n("f2b3");function r(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),Object.defineProperty(e,i.key,i)}}var a=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_xhr",void 0),this._xhr=t}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"abort",value:function(){this._xhr&&(this._xhr.abort(),delete this._xhr)}}]),e}();function o(e){var t={},n=e.split("\n");return n.forEach((function(e){var n=e.match(/(\S+\s*):\s*(.*)/);if(n&&3===n.length){var i=n[1],r=n[2];t[i]=r}})),t}function s(t,n){var r,s=t.url,u=t.data,c=t.header,l=t.method,d=t.dataType,f=t.responseType,h=t.withCredentials,p=t.timeout,g=void 0===p?__uniConfig.networkTimeout&&__uniConfig.networkTimeout.request||6e4:p,v=e,m=v.invokeCallbackHandler,y=null;for(var b in c)if(Object(i["i"])(c,b)&&"content-type"===b.toLowerCase()){r=c[b],r=0===r.indexOf("application/json")?"json":0===r.indexOf("application/x-www-form-urlencoded")?"urlencoded":"string";break}if("GET"!==l)if("string"===typeof u||u instanceof ArrayBuffer)y=u;else if("json"===r)try{y=JSON.stringify(u)}catch(C){y=u.toString()}else if("urlencoded"===r){var _=[];for(var w in u)Object(i["i"])(u,w)&&_.push(encodeURIComponent(w)+"="+encodeURIComponent(u[w]));y=_.join("&")}else y=u.toString();var T=new XMLHttpRequest,S=new a(T);for(var k in T.open(l,s),c)Object(i["i"])(c,k)&&T.setRequestHeader(k,c[k]);var x=setTimeout((function(){T.onload=T.onabort=T.onerror=null,S.abort(),m(n,{errMsg:"request:fail timeout"})}),g);return T.responseType=f,T.onload=function(){clearTimeout(x);var e=T.status,t="text"===f?T.responseText:T.response;if("text"===f&&"json"===d)try{t=JSON.parse(t)}catch(C){}m(n,{data:t,statusCode:e,header:o(T.getAllResponseHeaders()),errMsg:"request:ok"})},T.onabort=function(){clearTimeout(x),m(n,{errMsg:"request:fail abort"})},T.onerror=function(){clearTimeout(x),m(n,{errMsg:"request:fail"})},T.withCredentials=h,T.send(y),S}}.call(this,n("0dd1"))},"1a8c":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"redirectTo",(function(){return u})),n.d(t,"navigateTo",(function(){return c})),n.d(t,"navigateBack",(function(){return l})),n.d(t,"reLaunch",(function(){return d})),n.d(t,"switchTab",(function(){return f})),n.d(t,"preloadPage",(function(){return h}));var i=n("85b6"),r=n("d65e"),a=e,o=a.invokeCallbackHandler;function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.url,a=t.delta,o=t.events,u=t.exists,c=t.animationType,l=t.animationDuration,d=t.from,f=void 0===d?"navigateBack":d,h=t.detail,p=getApp().$router;switch(delete p.$eventChannel,e){case"redirectTo":if("back"===u){var g=Object(i["a"])(n);if(-1!==g){var v=getCurrentPages().length-1-g;if(v>0)return s("navigateBack",{delta:v})}}p.replace({type:e,path:n});break;case"navigateTo":return p.$eventChannel=Object(r["a"])(o),p.push({type:e,path:n,animationType:c,animationDuration:l}),{errMsg:e+":ok",eventChannel:p.$eventChannel};case"navigateBack":var m=!0,y=getCurrentPages();if(y.length){var b=y[y.length-1];Object(i["c"])(b.$options,"onBackPress")&&!0===b.__call_hook("onBackPress",{from:f})&&(m=!1)}m&&(a>1&&(p._$delta=a),p.go(-a,{animationType:c,animationDuration:l}));break;case"reLaunch":p.replace({type:e,path:n});break;case"switchTab":p.replace({type:e,path:n,params:{detail:h}});break}return{errMsg:e+":ok"}}function u(e){return s("redirectTo",e)}function c(e){return s("navigateTo",e)}function l(e){return s("navigateBack",e)}function d(e){return s("reLaunch",e)}function f(e){return s("switchTab",e)}function h(e,t){var n=e.url,i=n.split("?")[0].replace(/\//g,"-");__uniConfig.__webpack_chunk_load__(i.substr(1)).then((function(){o(t,{url:n,errMsg:"preloadPage:ok"})})).catch((function(e){o(t,{url:n,errMsg:"preloadPage:fail "+e})}))}}.call(this,n("0dd1"))},"1b3d":function(e,t,n){"use strict";n.r(t),function(e){var i=n("f2b3");t["default"]={data:function(){return{previewImage:{visible:!1}}},created:function(){var t=this;e.on("onShowPreviewImage",(function(e,n){t.previewImage=Object.assign({},e,{visible:!0}),Object(i["k"])(n)&&t.$nextTick(n)})),e.on("onClosePreviewImage",(function(e){t._onPreviewClose(),Object(i["k"])(e)&&t.$nextTick(e)})),e.on("onHidePopup",(function(e){t.previewImage.visible=!1}))},methods:{_onPreviewClose:function(e){this.previewImage.visible=!1}}}}.call(this,n("0dd1"))},"1b6f":function(e,t,n){"use strict";(function(e){var i=n("f2b3");t["a"]={mounted:function(){var e=this;this._toggleListeners("subscribe",this.id),this.$watch("id",(function(t,n){e._toggleListeners("unsubscribe",n,!0),e._toggleListeners("subscribe",t,!0)}))},beforeDestroy:function(){this._toggleListeners("unsubscribe",this.id),this._contextId&&this._toggleListeners("unsubscribe",this._contextId)},methods:{_toggleListeners:function(t,n,r){r&&!n||Object(i["k"])(this._handleSubscribe)&&e[t](this.$page.id+"-"+this.$options.name.replace(/VUni([A-Z])/,"$1").toLowerCase()+"-"+n,this._handleSubscribe)},_getContextInfo:function(){var e="context-".concat(this._uid);return this._contextId||(this._toggleListeners("subscribe",e),this._contextId=e),{name:this.$options.name.replace(/VUni([A-Z])/,"$1").toLowerCase(),id:e,page:this.$page.id}}}}}).call(this,n("501c"))},"1c64":function(e,t,n){"use strict";var i=n("97b9"),r=n.n(i);r.a},"1c73":function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u}));var i={},r={};function a(e){for(var t=[],n=0,i=["width","minWidth","maxWidth","height","minHeight","maxHeight","orientation"];n<i.length;n++){var r=i[n];"orientation"!==r&&""!==e[r]&&Number(e[r])>=0&&t.push("(".concat(o(r),": ").concat(Number(e[r]),"px)")),"orientation"===r&&e[r]&&t.push("(".concat(o(r),": ").concat(e[r],")"))}return t=t.join(" and "),t}function o(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function s(t){var n=t.reqId,o=t.options,s=i[n]=window.matchMedia(a(o)),u=r[n]=function(t){e.publishHandler("onRequestMediaQueryObserver",{reqId:n,res:t.matches})};u(s),s.addListener(u)}function u(t){var n=t.reqId,a=r[n],o=i[n];o&&(o.removeListener(a),delete i[n],e.publishHandler("onRequestMediaQueryObserver",{reqId:n,reqEnd:!0}))}}).call(this,n("501c"))},"1ca3":function(e,t,n){"use strict";n.r(t),n.d(t,"base64ToArrayBuffer",(function(){return r})),n.d(t,"arrayBufferToBase64",(function(){return a}));var i=n("8390");function r(e){return Object(i["decode"])(e)}function a(e){return Object(i["encode"])(e)}},"1d15":function(e,t,n){},"1e4d":function(e,t,n){"use strict";function i(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),Object.defineProperty(e,i.key,i)}}n.r(t),n.d(t,"createAnimation",(function(){return u}));var r={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"},a=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=Object.assign({},r,t)}return function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"_getOption",value:function(e){var t={transition:Object.assign({},this.option,e)};return t.transformOrigin=t.transition.transformOrigin,delete t.transition.transformOrigin,t}},{key:"_pushAnimates",value:function(e,t){this.currentStepAnimates.push({type:e,args:t})}},{key:"_converType",value:function(e){return e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}))}},{key:"_getValue",value:function(e){return"number"===typeof e?"".concat(e,"px"):e}},{key:"export",value:function(){var e=this.actions;return this.actions=[],{actions:e}}},{key:"step",value:function(e){var t=this;return this.currentStepAnimates.forEach((function(e){"style"!==e.type?t.currentTransform[e.type]=e:t.currentTransform["".concat(e.type,".").concat(e.args[0])]=e})),this.actions.push({animates:Object.values(this.currentTransform),option:this._getOption(e)}),this.currentStepAnimates=[],this}}]),e}(),o=["opacity","backgroundColor"],s=["width","height","left","right","top","bottom"];function u(e){return new a(e)}["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"].concat(o,s).forEach((function(e){a.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return o.concat(s).includes(e)?this._pushAnimates("style",[this._converType(e),s.includes(e)?this._getValue(n[0]):n[0]]):this._pushAnimates(e,n),this}}))},"1efd":function(e,t,n){"use strict";n.r(t);var i=n("8bbf"),r=n.n(i),a=n("cb0f"),o=n("d4b6"),s={methods:{$getRealPath:function(e){return e?Object(a["a"])(e):e},$trigger:function(e,t,n){this.$emit(e,o["b"].call(this,e,t,n,this.$el,this.$el))}}};function u(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function l(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(function(e,t){return"".concat(uni.upx2px(parseFloat(t)),"px")})):/^-?[\d\.]+$/.test(e)?"".concat(e,"px"):e||""}function d(e){var t=e.animation;if(t&&t.actions&&t.actions.length){var n=0,i=t.actions,r=t.actions.length;setTimeout((function(){a()}),0)}function a(){var t=i[n],o=t.option.transition,s=function(e){var t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],i=["opacity","background-color"],r=["width","height","left","right","top","bottom"],a=e.animates,o=e.option,s=o.transition,c={},d=[];return a.forEach((function(e){var a=e.type,o=u(e.args);if(t.concat(n).includes(a))a.startsWith("rotate")||a.startsWith("skew")?o=o.map((function(e){return parseFloat(e)+"deg"})):a.startsWith("translate")&&(o=o.map(l)),n.indexOf(a)>=0&&(o.length=1),d.push("".concat(a,"(").concat(o.join(","),")"));else if(i.concat(r).includes(o[0])){a=o[0];var s=o[1];c[a]=r.includes(a)?l(s):s}})),c.transform=c.webkitTransform=d.join(" "),c.transition=c.webkitTransition=Object.keys(c).map((function(e){return"".concat(function(e){return e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})).replace("webkit","-webkit")}(e)," ").concat(s.duration,"ms ").concat(s.timingFunction," ").concat(s.delay,"ms")})).join(","),c.transformOrigin=c.webkitTransformOrigin=o.transformOrigin,c}(t);Object.keys(s).forEach((function(t){e.$el.style[t]=s[t]})),n+=1,n<r&&setTimeout(a,o.duration+o.delay)}}var f={props:["animation"],watch:{animation:function(){d(this)}},mounted:function(){d(this)}},h=[n("5408"),n("93a5")];h.forEach((function(e,t){e.keys().forEach((function(t){var n=e(t),i=n.default||n;i.mixins=i.mixins?[].concat(s,i.mixins):[s],i.functional||i.mixins.push(f),i.name="VUni"+i.name,i.isReserved=!0,r.a.component(i.name,i)}))}))},"1ff3":function(e,t,n){"use strict";n.r(t),n.d(t,"uploadFile",(function(){return u}));var i=n("a118"),r=n("db70");function a(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),Object.defineProperty(e,i.key,i)}}var o=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.id=t,this._callbackId=n,this._callbacks=[]}return function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(e,[{key:"abort",value:function(){Object(r["c"])("operateUploadTask",{uploadTaskId:this.id,operationType:"abort"})}},{key:"onProgressUpdate",value:function(e){"function"===typeof e&&this._callbacks.push(e)}},{key:"onHeadersReceived",value:function(){}},{key:"offProgressUpdate",value:function(e){var t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}},{key:"offHeadersReceived",value:function(){}}]),e}(),s=Object.create(null);function u(e,t){var n=Object(r["c"])("createUploadTask",e),i=n.uploadTaskId,a=new o(i,t);return s[i]=a,a}Object(r["d"])("onUploadTaskStateChange",(function(e){var t=e.uploadTaskId,n=e.state,r=e.data,a=e.statusCode,o=e.progress,u=e.totalBytesSent,c=e.totalBytesExpectedToSend,l=e.errMsg,d=s[t],f=d._callbackId;switch(n){case"progressUpdate":d._callbacks.forEach((function(e){e({progress:o,totalBytesSent:u,totalBytesExpectedToSend:c})}));break;case"success":Object(i["a"])(f,{data:r,statusCode:a,errMsg:"request:ok"});case"fail":Object(i["a"])(f,{errMsg:"request:fail "+l});default:setTimeout((function(){delete s[t]}),100);break}}))},2206:function(e,t,n){},2209:function(e){e.exports=JSON.parse('{"uni.app.quit":"再按一次退出应用","uni.async.error":"连接服务器超时,点击屏幕重试","uni.showActionSheet.cancel":"取消","uni.showToast.unpaired":"请注意 showToast 与 hideToast 必须配对使用","uni.showLoading.unpaired":"请注意 showLoading 与 hideLoading 必须配对使用","uni.showModal.cancel":"取消","uni.showModal.confirm":"确定","uni.chooseImage.cancel":"取消","uni.chooseImage.sourceType.album":"从相册选择","uni.chooseImage.sourceType.camera":"拍摄","uni.chooseVideo.cancel":"取消","uni.chooseVideo.sourceType.album":"从相册选择","uni.chooseVideo.sourceType.camera":"拍摄","uni.chooseFile.notUserActivation":"文件选择器对话框只能在由用户激活时显示","uni.previewImage.cancel":"取消","uni.previewImage.button.save":"保存图像","uni.previewImage.save.success":"保存图像到相册成功","uni.previewImage.save.fail":"保存图像到相册失败","uni.setClipboardData.success":"内容已复制","uni.scanCode.title":"扫码","uni.scanCode.album":"相册","uni.scanCode.fail":"识别失败","uni.scanCode.flash.on":"轻触照亮","uni.scanCode.flash.off":"轻触关闭","uni.startSoterAuthentication.authContent":"指纹识别中...","uni.picker.done":"完成","uni.picker.cancel":"取消","uni.video.danmu":"弹幕","uni.video.volume":"音量","uni.button.feedback.title":"问题反馈","uni.button.feedback.send":"发送","uni.chooseLocation.search":"搜索地点","uni.chooseLocation.cancel":"取消"}')},2246:function(e,t,n){"use strict";n.r(t),n.d(t,"showModal",(function(){return a})),n.d(t,"showToast",(function(){return o})),n.d(t,"showLoading",(function(){return s})),n.d(t,"showActionSheet",(function(){return u}));var i=n("a6b0"),r=n("cb0f"),a={title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:function(){return Object(i["g"])("uni.showModal.cancel")}},cancelColor:{type:String,default:"#000"},confirmText:{type:String,default:function(){return Object(i["g"])("uni.showModal.confirm")}},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean,default:!0}},o={title:{type:String,default:""},icon:{default:"success",validator:function(e,t){-1===["success","loading","error","none"].indexOf(e)&&(t.icon="success")}},image:{type:String,default:"",validator:function(e,t){e&&(t.image=Object(r["a"])(e))}},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}},s={title:{type:String,default:""},icon:{type:String,default:"loading"},duration:{type:Number,default:1e8},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}},u={itemList:{type:Array,required:!0,validator:function(e,t){if(!e.length)return"parameter.itemList should have at least 1 item"}},itemColor:{type:String,default:"#000"},visible:{type:Boolean,default:!0},popover:{type:Object}}},2289:function(e,t,n){"use strict";n.r(t),n.d(t,"upx2px",(function(){return i}));var i=[{name:"upx",type:[Number,String],required:!0}]},2292:function(e,t,n){},2318:function(e,t,n){"use strict";(function(e){var i=n("8af1"),r=n("f2b3"),a=n("31c6"),o=n("453f"),s=n("4c39"),u=n("5b9f"),c=n("636c");function l(e,t,n){return l=d()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=Function.bind.apply(e,i),a=new r;return n&&f(a,n.prototype),a},l.apply(null,arguments)}function d(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function h(e,t,n){return new e.LatLng(t,n)}function p(e,t,n){return c["c"]?function(e,t,n){return new e.LngLat(n,t)}(e,t,n):h(e,t,n)}function g(e){return"getLat"in e?e.getLat():e.lat()}function v(e){return"getLng"in e?e.getLng():e.lng()}t["a"]={name:"Map",components:{mapMarker:o["a"],mapControl:s["a"],mapPolygon:u["a"]},mixins:[i["g"]],props:{id:{type:String,default:""},latitude:{type:[String,Number],default:39.92},longitude:{type:[String,Number],default:116.46},scale:{type:[String,Number],default:16},markers:{type:Array,default:function(){return[]}},covers:{type:Array,default:function(){return[]}},includePoints:{type:Array,default:function(){return[]}},polyline:{type:Array,default:function(){return[]}},circles:{type:Array,default:function(){return[]}},controls:{type:Array,default:function(){return[]}},showLocation:{type:[Boolean,String],default:!1},libraries:{type:Array,default:function(){return[]}},polygons:{type:Array,default:function(){return[]}}},data:function(){return{center:{latitude:116.46,longitude:116.46},isMapReady:!1,isBoundsReady:!1,polylineSync:[],circlesSync:[]}},watch:{latitude:function(){this.centerChange()},longitude:function(){this.centerChange()},scale:function(e){var t=this;this.mapReady((function(){t._map.setZoom(Number(e)||16)}))},polyline:function(e){var t=this;this.mapReady((function(){t.createPolyline()}))},circles:function(){var e=this;this.mapReady((function(){e.createCircles()}))},includePoints:function(){var e=this;this.mapReady((function(){e.fitBounds(e.includePoints)}))},showLocation:function(e){var t=this;this.mapReady((function(){t[e?"createLocation":"removeLocation"]()}))}},created:function(){this._markers={};var e=this.latitude,t=this.longitude;e&&t&&(this.center.latitude=e,this.center.longitude=t)},mounted:function(){var e=this;Object(a["a"])(this.libraries,(function(t){t.event=t.event||t.Event,t.Point=t.Point||t.BuryPoint,e._maps=t,e.init()}))},beforeDestroy:function(){this.removePolyline(),this.removeCircles(),this.removeLocation()},methods:{_handleSubscribe:function(e){var t=this,n=e.type,i=e.data,r=void 0===i?{}:i,a=this._maps;function o(e,t){e=e||{},e.errMsg="".concat(n,":").concat(t?"fail"+t:"ok");var i=t?r.fail:r.success;"function"===typeof i&&i(e),"function"===typeof r.complete&&r.complete(e)}switch(n){case"getCenterLocation":this.mapReady((function(){var e,n,i=t._map.getCenter();e=g(i),n=v(i),o({latitude:e,longitude:n})}));break;case"moveToLocation":var s=r.latitude,u=r.longitude,l=s&&u?p(a,s,u):this._locationPosition;l&&(this._map.setCenter(l),o({latitude:s,longitude:u}));break;case"translateMarker":this.mapReady((function(){try{var e=t.getMarker(r.markerId),n=r.destination,i=r.duration,s=!!r.autoRotate,u=Number(r.rotate)?r.rotate:0,c=0;"getRotation"in e&&(c=e.getRotation());var l=e.getPosition(),d=p(a,n.latitude,n.longitude),f=a.geometry.spherical.computeDistanceBetween(l,d)/1e3,h=("number"===typeof i?i:1e3)/36e5,g=f/h,v=a.event.addListener(e,"moving",(function(t){var n=t.latLng,i=e.label;i&&i.setPosition(n);var r=e.callout;r&&r.setPosition(n)})),m=a.event.addListener(e,"moveend",(function(t){m.remove(),v.remove(),e.lastPosition=l,e.setPosition(d);var n=e.label;n&&n.setPosition(d);var i=e.callout;i&&i.setPosition(d);var a=r.animationEnd;"function"===typeof a&&a()})),y=0;s&&(e.lastPosition&&(y=a.geometry.spherical.computeHeading(e.lastPosition,l)),u=a.geometry.spherical.computeHeading(l,d)-y),"setRotation"in e&&e.setRotation(c+u),"moveTo"in e?e.moveTo(d,g):(e.setPosition(d),a.event.trigger(e,"moveend",{}))}catch(b){o(null,b)}}));break;case"includePoints":this.fitBounds(r.points);break;case"getRegion":this.mapReady((function(){t.boundsReady((function(){var e=t._map.getBounds(),n=e.getSouthWest(),i=e.getNorthEast();o({southwest:{latitude:g(n),longitude:v(n)},northeast:{latitude:g(i),longitude:v(i)}})})),c["c"]&&(t.isBoundsReady=!0,t.$emit("boundsready"))}));break;case"getScale":this.mapReady((function(){o({scale:t._map.getZoom()})}));break}},init:function(){var e=this,t=this._maps,n=p(t,this.center.latitude,this.center.longitude),i=this._map=new t.Map(this.$refs.map,{center:n,zoom:Number(this.scale),disableDoubleClickZoom:!0,mapTypeControl:!1,zoomControl:!1,scaleControl:!1,panControl:!1,fullscreenControl:!1,streetViewControl:!1,keyboardShortcuts:!1,minZoom:5,maxZoom:18,draggable:!0}),r=t.event.addListener(i,"bounds_changed",(function(t){r.remove(),e.isBoundsReady=!0,e.$emit("boundsready")}));function a(){var e=i.getCenter();return{scale:i.getZoom(),centerLocation:{latitude:g(e),longitude:v(e)}}}t.event.addListener(i,"click",(function(t){e.$trigger("click",{},{})})),t.event.addListener(i,"dragstart",(function(){e.$trigger("regionchange",{},{type:"begin",causedBy:"gesture"})})),t.event.addListener(i,"dragend",(function(){e.$trigger("regionchange",{},Object.assign({type:"end",causedBy:"drag"},a()))}));var o=function(){e.$emit("update:scale",i.getZoom()),e.$trigger("regionchange",{},Object.assign({type:"end",causedBy:"scale"},a()))};t.event.addListener(i,"zoom_changed",o),t.event.addListener(i,"zoomend",o),t.event.addListener(i,"center_changed",(function(){var t,n,r=i.getCenter();t=g(r),n=v(r),e.$emit("update:latitude",t),e.$emit("update:longitude",n)})),this.polyline&&Array.isArray(this.polyline)&&this.polyline.length&&this.createPolyline(),this.circles&&Array.isArray(this.circles)&&this.circles.length&&this.createCircles(),this.showLocation&&this.createLocation(),this.includePoints&&Array.isArray(this.includePoints)&&this.includePoints.length&&this.fitBounds(this.includePoints,(function(){i.setCenter(n)})),this.isMapReady=!0,this.$emit("mapready"),this.$trigger("updated",{},{})},centerChange:function(){var e=this,t=this._maps,n=Number(this.latitude),i=Number(this.longitude);n===this.center.latitude&&i===this.center.longitude||(this.center.latitude=n,this.center.longitude=i,this._map&&this.mapReady((function(){var r=p(t,n,i);e._map.setCenter(r)})))},createPolyline:function(){var e=this._maps,t=this._map,n=this.polylineSync;this.removePolyline(),this.polyline.forEach((function(i){var a=[];i.points.forEach((function(t){var n=c["c"]?[t.longitude,t.latitude]:h(e,t.latitude,t.longitude);a.push(n)}));var o=Number(i.borderWidth)||0,s=Object(r["j"])(i.color),u=s.r,l=s.g,d=s.b,f=s.a,p=Object(r["j"])(i.borderColor),g=p.r,v=p.g,m=p.b,y=p.a,b={map:t,clickable:!1,path:a,strokeWeight:(Number(i.width)||0)+o||6,strokeDashStyle:i.dottedLine?"dash":"solid"};c["c"]&&(b.strokeColor=i.strokeColor,b.strokeStyle=i.dottedLine?"dashed":"solid",b.isOutline=!!i.borderWidth,b.borderWeight=i.borderWidth,b.outlineColor=i.borderColor);var _={map:t,clickable:!1,path:a,strokeWeight:i.width||6,strokeDashStyle:i.dottedLine?"dash":"solid"};"Color"in e?(b.strokeColor=new e.Color(u,l,d,f),_.strokeColor=new e.Color(g,v,m,y)):(b.strokeColor="rgb(".concat(u,", ").concat(l,", ").concat(d,")"),b.strokeOpacity=f,_.strokeColor="rgb(".concat(g,", ").concat(v,", ").concat(m,")"),_.strokeOpacity=y),o&&n.push(new e.Polyline(_));var w=new e.Polyline(b);c["c"]&&t.add(w),n.push(w)}))},removePolyline:function(){var e=this.polylineSync;e.forEach((function(e){e.setMap(null)})),e.splice(0,e.length)},createCircles:function(){var e=this._maps,t=this._map,n=this.circlesSync;this.removeCircles(),this.circles.forEach((function(i){var a=c["c"]?[i.longitude,i.latitude]:h(e,i.latitude,i.longitude),o={map:t,center:a,clickable:!1,radius:i.radius,strokeWeight:Number(i.strokeWidth)||1,strokeDashStyle:"solid"};if(c["c"])o.strokeColor=i.color,o.fillColor=i.fillColor||"#000";else{var s=Object(r["j"])(i.fillColor||"#00000000"),u=s.r,l=s.g,d=s.b,f=s.a,p=Object(r["j"])(i.color||"#000000"),g=p.r,v=p.g,m=p.b,y=p.a;"Color"in e?(o.fillColor=new e.Color(u,l,d,f),o.strokeColor=new e.Color(g,v,m,y)):(o.fillColor="rgb(".concat(u,", ").concat(l,", ").concat(d,")"),o.fillOpacity=f,o.strokeColor="rgb(".concat(g,", ").concat(v,", ").concat(m,")"),o.strokeOpacity=y)}var b=new e.Circle(o);c["c"]&&t.add(b),n.push(b)}))},removeCircles:function(){var e=this.circlesSync;e.forEach((function(e){e.setMap(null)})),e.splice(0,e.length)},createLocation:function(){var t=this,n=this._maps,i=this._map,r=this._location;r&&this.removeLocation(),uni.getLocation({type:"gcj02",success:function(e){if(r===t._location){var a=p(n,e.latitude,e.longitude);if(c["c"]){r=new n.Marker({position:a,map:i,flat:!0,rotation:0});var s=new n.Icon({size:new n.Size(44,44),image:c["a"],imageSize:new n.Size(44,44)});r.setIcon(s),i.add(r)}else r=new n.Marker({position:a,map:i,icon:new n.MarkerImage(c["a"],null,null,new n.Point(22,22),new n.Size(44,44)),flat:!0,rotation:0});t._location=r,o(),t.__onCompassChange=function(e){"setRotation"in r&&r.setRotation(e.direction)},uni.onCompassChange(t.__onCompassChange)}},fail:function(t){e.error(t)}});var a=this;function o(){r===a._location&&setTimeout((function(){uni.getLocation({type:"gcj02",success:function(e){var t=a._locationPosition=p(n,e.latitude,e.longitude);r.setPosition(t)},fail:function(t){e.error(t)},complete:function(){o()}})}),3e4)}},removeLocation:function(){var e=this._location;e&&(e.setMap(null),this._location=null,this._locationPosition=null,uni.offCompassChange(this.__onCompassChange))},fitBounds:function(e,t){var n=this,i=this._maps;this.boundsReady((function(){var r=n._map;if(c["c"]){var a=[];e.forEach((function(e){a.push([e.longitude,e.latitude])}));var o=l(i.Bounds,a);r.setBounds(o)}else{var s=new i.LatLngBounds;e.forEach((function(e){var t=e.longitude,n=e.latitude,r=h(i,n,t);s.extend(r)})),r.fitBounds(s)}"function"===typeof t&&t()})),c["c"]&&(this.isBoundsReady=!0,this.$emit("boundsready"))},mapReady:function(e){this.isMapReady?e():this.$once("mapready",(function(){e()}))},boundsReady:function(e){this.isBoundsReady?e():this.$once("boundsready",(function(){e()}))},getMarker:function(e){var t=this._markers[e];if(!t)throw new Error("translateMarker: fail cannot find marker with id "+e);return t}}}}).call(this,n("3ad9")["default"])},"232e":function(e,t,n){"use strict";n.r(t),n.d(t,"pageScrollTo",(function(){return i}));var i={scrollTop:{type:Number},duration:{type:Number,default:300,validator:function(e,t){t.duration=Math.max(0,e)}}}},"23ab":function(e,t,n){},"23e5":function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return g}));var i=n("a741");function r(e){-1===this.keepAliveInclude.indexOf(e)&&this.keepAliveInclude.push(e)}var a=[];function o(e){if("number"===typeof e)a=this.keepAliveInclude.splice(-(e-1)).map((function(e){return parseInt(e.split("-").pop())}));else{var t=this.keepAliveInclude.indexOf(e);-1!==t&&this.keepAliveInclude.splice(t,1)}}var s=Object.create(null);function u(e){return s[e]}function c(e){s[e]={x:window.pageXOffset,y:window.pageYOffset}}function l(e,t,n){t&&n&&t.meta.isTabBar&&n.meta.isTabBar&&c(n.params.__id__);for(var r=getCurrentPages(),a=r.length-1;a>=0;a--){var s=r[a],u=s.$page.meta;u.isTabBar||(o.call(this,u.name+"-"+s.$page.id),Object(i["b"])(s,"onUnload"))}}function d(e){__uniConfig.reLaunch=(__uniConfig.reLaunch||1)+1;for(var t=getCurrentPages(!0),n=t.length-1;n>=0;n--)Object(i["b"])(t[n],"onUnload"),t[n].$destroy();this.keepAliveInclude=[],s=Object.create(null)}var f=[];function h(e,t,n,i){f=getCurrentPages(!0);var a=t.params.__id__,s=e.params.__id__,u=e.meta.name+"-"+s;if(s===a&&"reLaunch"!==e.type)e.fullPath!==t.fullPath?(r.call(this,u),n()):n(!1);else if(e.meta.id&&e.meta.id!==s)n({path:e.path,replace:!0});else{var c=t.meta.name+"-"+a;switch(e.type){case"navigateTo":break;case"redirectTo":o.call(this,c),t.meta&&t.meta.isQuit&&(e.meta.isQuit=!0,e.meta.isEntry=!!t.meta.isEntry);break;case"switchTab":l.call(this,i,e,t);break;case"reLaunch":d.call(this,u),e.meta.isQuit=!0;break;default:a&&a>s&&(o.call(this,c),this.$router._$delta>1&&o.call(this,this.$router._$delta));break}if("reLaunch"!==e.type&&"redirectTo"!==e.type&&t.meta.id&&r.call(this,c),r.call(this,u),e.meta&&e.meta.name){document.body.className="uni-body "+e.meta.name;var h="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.meta.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(h,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(h))}n()}}function p(t,n){var r,o=n.params.__id__,s=t.params.__id__;function u(e){if(e){Object(i["b"])(e,"onUnload");var t=f.indexOf(e);t>=0&&f.splice(t,1)}}switch(r=n.meta.isSet?f.find((function(e){return e.$page.meta.pagePath===n.meta.pagePath})):f.find((function(e){return e.$page.id===o})),t.type){case"navigateTo":r&&Object(i["b"])(r,"onHide");break;case"redirectTo":u(r);break;case"switchTab":n.meta.isTabBar&&r&&Object(i["b"])(r,"onHide");break;case"reLaunch":break;default:o&&o>s&&(u(r),this.$router._$delta>1&&a.reverse().forEach((function(e){var t=f.find((function(t){return t.$page.id===e}));u(t)})));break}if(delete this.$router._$delta,a.length=0,"reLaunch"!==t.type){var c,l=getCurrentPages(!0);c=t.meta.isSet?l.find((function(e){return e.$page.meta.pagePath===t.meta.pagePath})):l.find((function(e){return e.$page.id===s})),c&&(setTimeout((function(){e.emit("onNavigationBarChange",c.$parent.$parent.navigationBar),Object(i["b"])(c,"onShow")}),0),document.title=c.$parent.$parent.navigationBar.titleText)}}function g(e,t){e.$router.beforeEach((function(n,i,r){h.call(e,n,i,r,t)})),e.$router.afterEach((function(t,n){p.call(e,t,n)}))}}).call(this,n("0dd1"))},"24d9":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var r=n("f2b3");function a(e){return a="function"===typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)},a(e)}function o(e){return e.mp=Object.assign({"@warning":"mp is deprecated"},e),e._processed=!0,e}function s(e,t){return Object(r["l"])(t)&&(Object(r["i"])(t,"backgroundColor")&&(e.backgroundColor=t.backgroundColor),Object(r["i"])(t,"buttons")&&(e.buttons=t.buttons),Object(r["i"])(t,"titleColor")&&(e.textColor=t.titleColor),Object(r["i"])(t,"titleText")&&(e.titleText=t.titleText),Object(r["i"])(t,"titleSize")&&(e.titleSize=t.titleSize),Object(r["i"])(t,"type")&&(e.type=t.type),Object(r["i"])(t,"searchInput")&&"object"===a(t.searchInput)&&(e.searchInput=Object.assign({autoFocus:!1,align:"center",color:"#000000",backgroundColor:"rgba(255,255,255,0.5)",borderRadius:"0px",placeholder:"",placeholderColor:"#CCCCCC",disabled:!1},t.searchInput))),e}},"250d":function(e,t,n){"use strict";n.r(t);var i=n("8af1"),r=n("f2b3"),a=["text","number","idcard","digit","password","tel"],o=["number","digit"],s=["off","one-time-code"],u=["none","text","decimal","numeric","tel","search","email","url"],c={name:"Input",mixins:[i["b"]],props:{name:{type:String,default:""},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:"input-placeholder"},disabled:{type:[Boolean,String],default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},textContentType:{type:String,default:""},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:function(e){return!!~u.indexOf(e)}}},data:function(){return{wrapperHeight:0,cachedValue:""}},computed:{inputType:function(){var e="";switch(this.type){case"text":"search"===this.confirmType&&(e="search");break;case"idcard":e="text";break;case"digit":e="number";break;default:e=~a.indexOf(this.type)?this.type:"text";break}return this.password?"password":e},_step:function(){return~o.indexOf(this.type)?this.step:""},autocomplete:function(){var e=s.indexOf(this.textContentType),t=s.indexOf(Object(r["n"])(this.textContentType)),n=-1!==e?e:-1!==t?t:0;return s[n]},showPlaceholder:function(){var e="digit"===this.type?this.cachedValue.indexOf("."):-1;return!(this.composing||this.valueSync.length||"-"===this.cachedValue||-1!==e&&e===this.cachedValue.length-1)}},watch:{maxlength:function(e){var t=this.valueSync.slice(0,parseInt(e,10));t!==this.valueSync&&(this.valueSync=t)},valueSync:function(e){"number"!==this.type||"-"===this.cachedValue&&""===e||(this.cachedValue=e)}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},mounted:function(){if("search"===this.confirmType){var e=document.createElement("form");e.action="",e.onsubmit=function(){return!1},e.className="uni-input-form",e.appendChild(this.$refs.input),this.$refs.wrapper.appendChild(e)}var t=this;while(t){var n=t.$options._scopeId;n&&this.$refs.placeholder.setAttribute(n,""),t=t.$parent}},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onKeyup:function(e){var t=e.target;this.$trigger("confirm",e,{value:t.value}),this.confirmHold||t.blur()},_onInput:function(e,t){var n=this,i=!1;if(!this.composing||!this.ignoreCompositionEvent){if("number"===this.inputType){var r=parseInt(this.maxlength,10);if(r>0&&e.target.value.length>r&&(this.cachedValue.length===r?(this.valueSync=this.cachedValue,i=!0):(e.target.value=e.target.value.slice(0,r),this.valueSync=e.target.value)),this.__clearCachedValue&&e.target.removeEventListener("blur",this.__clearCachedValue),e.target.validity&&!e.target.validity.valid){if((!this.cachedValue||!e.target.value)&&"-"===e.data||"-"===this.cachedValue[0]&&"deleteContentBackward"===e.inputType){this.cachedValue="-",this.valueSync="";var a=this.__clearCachedValue=function(){n.cachedValue=e.target.value=""};return void e.target.addEventListener("blur",a)}if(this.cachedValue)if(-1!==this.cachedValue.indexOf(".")){if("."!==e.data&&"deleteContentBackward"===e.inputType){var o=this.cachedValue.indexOf(".");return this.cachedValue=e.target.value=this.valueSync=this.cachedValue.slice(0,o),this.$triggerInput(e,{value:this.valueSync},t)}}else if("."===e.data)return this.cachedValue+=".",this.__clearCachedValue=function(){n.cachedValue=n.valueSync=e.target.value=n.cachedValue.slice(0,-1)},e.target.addEventListener("blur",this.__clearCachedValue),!1;return void(this.cachedValue=this.valueSync=e.target.value="-"===this.cachedValue?"":this.cachedValue)}this.cachedValue=this.valueSync}i||(this.ignoreCompositionEvent||(this.valueSync=this.$refs.input.value),this.$triggerInput(e,{value:this.valueSync},t))}},_onComposition:function(e){switch(e.type){case"compositionstart":this.composing=!0;break;case"compositionend":this.composing&&(this.composing=!1,this._onInput(e));break}!this.ignoreCompositionEvent&&this.$trigger(e.type,e,{data:e.data})},_resetFormData:function(){this.valueSync=""},_getFormData:function(){return this.name?{value:this.valueSync,key:this.name}:{}}}},l=c,d=(n("0f55"),n("0c7c")),f=Object(d["a"])(l,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-input",e._g({},e.$listeners),[n("div",{ref:"wrapper",staticClass:"uni-input-wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPlaceholder,expression:"showPlaceholder"}],ref:"placeholder",staticClass:"uni-input-placeholder",class:e.placeholderClass,style:e.placeholderStyle,domProps:{textContent:e._s(e.placeholder)}}),"checkbox"!==e.inputType||e.disabled&&e.fixColor?"radio"!==e.inputType||e.disabled&&e.fixColor?e.disabled&&e.fixColor?e._e():n("input",{directives:[{name:"model",rawName:"v-model",value:e.valueSync,expression:"valueSync"},{name:"keyboard",rawName:"v-keyboard"},{name:"field",rawName:"v-field"}],ref:"input",staticClass:"uni-input-input",attrs:{disabled:e.disabled,maxlength:e.maxlength,step:e._step,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":null,autocomplete:e.autocomplete,inputmode:e.inputmode,type:e.inputType},domProps:{value:e.valueSync},on:{change:function(e){e.stopPropagation()},focus:e._onFocus,blur:e._onBlur,input:[function(t){t.target.composing||(e.valueSync=t.target.value)},function(t){return t.stopPropagation(),e._onInput(t)}],compositionstart:function(t){return t.stopPropagation(),e._onComposition(t)},compositionend:function(t){return t.stopPropagation(),e._onComposition(t)},compositionupdate:function(t){return t.stopPropagation(),e._onComposition(t)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e._onKeyup(t))}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.valueSync,expression:"valueSync"},{name:"keyboard",rawName:"v-keyboard"},{name:"field",rawName:"v-field"}],ref:"input",staticClass:"uni-input-input",attrs:{disabled:e.disabled,maxlength:e.maxlength,step:e._step,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":null,autocomplete:e.autocomplete,inputmode:e.inputmode,type:"radio"},domProps:{checked:e._q(e.valueSync,null)},on:{change:[function(t){e.valueSync=null},function(e){e.stopPropagation()}],focus:e._onFocus,blur:e._onBlur,input:function(t){return t.stopPropagation(),e._onInput(t)},compositionstart:function(t){return t.stopPropagation(),e._onComposition(t)},compositionend:function(t){return t.stopPropagation(),e._onComposition(t)},compositionupdate:function(t){return t.stopPropagation(),e._onComposition(t)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e._onKeyup(t))}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.valueSync,expression:"valueSync"},{name:"keyboard",rawName:"v-keyboard"},{name:"field",rawName:"v-field"}],ref:"input",staticClass:"uni-input-input",attrs:{disabled:e.disabled,maxlength:e.maxlength,step:e._step,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":null,autocomplete:e.autocomplete,inputmode:e.inputmode,type:"checkbox"},domProps:{checked:Array.isArray(e.valueSync)?e._i(e.valueSync,null)>-1:e.valueSync},on:{change:[function(t){var n=e.valueSync,i=t.target,r=!!i.checked;if(Array.isArray(n)){var a=e._i(n,null);i.checked?a<0&&(e.valueSync=n.concat([null])):a>-1&&(e.valueSync=n.slice(0,a).concat(n.slice(a+1)))}else e.valueSync=r},function(e){e.stopPropagation()}],focus:e._onFocus,blur:e._onBlur,input:function(t){return t.stopPropagation(),e._onInput(t)},compositionstart:function(t){return t.stopPropagation(),e._onComposition(t)},compositionend:function(t){return t.stopPropagation(),e._onComposition(t)},compositionupdate:function(t){return t.stopPropagation(),e._onComposition(t)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e._onKeyup(t))}}}),e.disabled&&e.fixColor?n("input",{ref:"input",staticClass:"uni-input-input",attrs:{tabindex:"-1",readonly:e.disabled,type:e.inputType,maxlength:e.maxlength,step:e._step},domProps:{value:e.valueSync},on:{focus:function(e){return e.target.blur()}}}):e._e()])])}),[],!1,null,null,null);t["default"]=f.exports},"252b":function(e,t,n){},"25ce":function(e,t,n){"use strict";n.r(t);var i=n("8af1"),r={name:"CheckboxGroup",mixins:[i["a"],i["f"]],props:{name:{type:String,default:""}},data:function(){return{checkboxList:[]}},listeners:{"@checkbox-change":"_changeHandler","@checkbox-group-update":"_checkboxGroupUpdateHandler"},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_changeHandler:function(e){var t=[];this.checkboxList.forEach((function(e){e.checkboxChecked&&t.push(e.value)})),this.$trigger("change",e,{value:t})},_checkboxGroupUpdateHandler:function(e){if("add"===e.type)this.checkboxList.push(e.vm);else{var t=this.checkboxList.indexOf(e.vm);this.checkboxList.splice(t,1)}},_getFormData:function(){var e={};if(""!==this.name){var t=[];this.checkboxList.forEach((function(e){e.checkboxChecked&&t.push(e.value)})),e.value=t,e.key=this.name}return e}}},a=r,o=(n("0998"),n("0c7c")),s=Object(o["a"])(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-checkbox-group",e._g({},e.$listeners),[e._t("default")],2)}),[],!1,null,null,null);t["default"]=s.exports},2604:function(e,t,n){"use strict";n.r(t),n.d(t,"openDocument",(function(){return i}));var i={filePath:{type:String,required:!0},fileType:{type:String}}},2608:function(e,t,n){"use strict";(function(e){function i(t){return function(){try{return t.apply(t,arguments)}catch(n){e.error(n)}}}function r(t){return function(){try{return t.apply(t,arguments)}catch(n){e.error(n)}}}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}))}).call(this,n("3ad9")["default"])},2765:function(e,t,n){"use strict";var i=n("5f8d"),r=n.n(i);r.a},"27a7":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return _})),n.d(t,"d",(function(){return w})),n.d(t,"c",(function(){return k}));var i=n("f2b3"),r=n("2608"),a=n("ed1a"),o=n("6710"),s=n("cc76"),u=n("de29");function c(e,t,n){var i="".concat(t,":fail ").concat(e);if(-1===n)throw new Error(i);return"number"===typeof n&&b(n,{errMsg:i}),!1}var l=[{name:"callback",type:Function,required:!0}],d=["beforeValidate","beforeAll","beforeSuccess"];function f(e,t,n){var r=s["a"][e];if(!r&&Object(a["a"])(e)&&(r=l),r){if(Array.isArray(r)&&Array.isArray(t)){var o=Object.create(null),f=Object.create(null),h=t.length;r.forEach((function(e,n){o[e.name]=e,h>n&&(f[e.name]=t[n])})),r=o,t=f}if(Object(i["k"])(r.beforeValidate)){var p=r.beforeValidate(t);if(p)return c(p,e,n)}for(var g=Object.keys(r),v=0;v<g.length;v++)if(-1===d.indexOf(g[v])){var m=Object(u["a"])(g[v],r,t);if(m)return c(m,e,n)}}return!0}var h=1,p={};function g(e,t){var n=h++,i="api."+e+"."+n;return p[n]={name:i,keepAlive:!0,callback:t},n}function v(e,t){for(var n in p){var i=p[n];if(i.name.startsWith("api."+e.replace(/^off/,"on"))&&i.callback===t)return delete p[n],Number(n)}return"fail"}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Object(i["l"])(t))return{params:t};t=Object.assign({},t);var a=Object(o["a"])(t),s=a.success,u=a.fail,c=a.cancel,l=a.complete,d=Object(i["k"])(s),f=Object(i["k"])(u),g=Object(i["k"])(c),v=Object(i["k"])(l);if(!d&&!f&&!g&&!v)return{params:t};var m={};for(var y in n){var b=n[y];Object(i["k"])(b)&&(m[y]=Object(r["b"])(b))}var _=m.beforeSuccess,w=m.afterSuccess,T=m.beforeFail,S=m.afterFail,k=m.beforeCancel,x=m.afterCancel,C=m.beforeAll,E=m.afterAll,A=h++,O="api."+e+"."+A,j=function(n){if(n.errMsg=n.errMsg||e+":ok",-1!==n.errMsg.indexOf(":ok"))n.errMsg=e+":ok";else if(-1!==n.errMsg.indexOf(":cancel"))n.errMsg=e+":cancel";else if(-1!==n.errMsg.indexOf(":fail")){var r="",a=n.errMsg.indexOf(" ");a>-1&&(r=n.errMsg.substr(a)),n.errMsg=e+":fail"+r}Object(i["k"])(C)&&C(n);var o=n.errMsg;0===o.indexOf(e+":ok")?(Object(i["k"])(_)&&_(n,t),d&&s(n),Object(i["k"])(w)&&w(n)):0===o.indexOf(e+":cancel")?(n.errMsg=n.errMsg.replace(e+":cancel",e+":fail cancel"),f&&u(n),Object(i["k"])(k)&&k(n),g&&c(n),Object(i["k"])(x)&&x(n)):0===o.indexOf(e+":fail")&&(Object(i["k"])(T)&&T(n),f&&u(n),Object(i["k"])(S)&&S(n)),v&&l(n),Object(i["k"])(E)&&E(n)};return p[A]={name:O,callback:j},{params:t,callbackId:A}}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=m(e,t,n),a=r.params,o=r.callbackId;return Object(i["l"])(a)&&!f(e,a,o)?{params:a,callbackId:!1}:{params:a,callbackId:o}}function b(e,t,n){if("number"===typeof e){var i=p[e];if(i)return i.keepAlive||delete p[e],i.callback(t,n)}return t}function _(e){delete p[e]}function w(t){return function(n){e.error("API `"+t+"` is not yet implemented")}}function T(e,t){var n=s["a"][e];n&&(Object(i["k"])(n.beforeAll)&&(t.beforeAll=n.beforeAll),Object(i["k"])(n.beforeSuccess)&&(t.beforeSuccess=n.beforeSuccess))}var S=["getPushClientId","onPushMessage","offPushMessage"];function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return S.indexOf(e)>-1||!Object(i["k"])(t)?t:(T(e,n),function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];if(Object(a["b"])(e)){if(f(e,o,-1))return t.apply(null,o)}else if(Object(a["a"])(e)){if(f(e,o,-1))return t((e.startsWith("off")?v:g)(e,o[0]))}else{var u={};o.length&&(u=o[0]);var c,l=y(e,u,n),d=l.params,h=l.callbackId;if(!1!==h)return c=Object(i["k"])(d)?t(h):t(d,h),c&&!Object(a["c"])(e)&&(c=b(h,c),Object(i["l"])(c)&&(c.errMsg=c.errMsg||e+":ok")),c}})}}).call(this,n("3ad9")["default"])},"27ab":function(e,t,n){"use strict";n.r(t);var i=n("f2b3");function r(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var o={name:"PickerView",props:{value:{type:Array,default:function(){return[]},validator:function(e){return Array.isArray(e)&&e.filter((function(e){return"number"===typeof e})).length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},data:function(){return{valueSync:r(this.value),height:34,items:[],changeSource:""}},watch:{value:function(e,t){var n=this;this.valueSync.length=e.length,e.forEach((function(e,t){e!==n.valueSync[t]&&n.$set(n.valueSync,t,e)}))},valueSync:{deep:!0,handler:function(e,t){if(""===this.changeSource)this._valueChanged(e);else{this.changeSource="";var n=e.map((function(e){return e}));this.$emit("update:value",n),this.$trigger("change",{},{value:n})}}}},methods:{getItemIndex:function(e){return this.items.indexOf(e)},getItemValue:function(e){return this.valueSync[this.getItemIndex(e.$vnode)]||0},setItemValue:function(e,t){var n=this.getItemIndex(e.$vnode),i=this.valueSync[n];i!==t&&(this.changeSource="touch",this.$set(this.valueSync,n,t))},_valueChanged:function(e){this.items.forEach((function(t,n){t.componentInstance.setCurrent(e[n]||0)}))},_resize:function(e){var t=e.height;this.height=t}},render:function(e){var t=[];return this.$slots.default&&Object(i["f"])(this.$slots.default,e).forEach((function(e){e.componentOptions&&"v-uni-picker-view-column"===e.componentOptions.tag&&t.push(e)})),this.items=t,e("uni-picker-view",{on:this.$listeners},[e("v-uni-resize-sensor",{attrs:{initial:!0},on:{resize:this._resize}}),e("div",{ref:"wrapper",class:"uni-picker-view-wrapper"},t)])}},s=o,u=(n("6062"),n("0c7c")),c=Object(u["a"])(s,void 0,void 0,!1,null,null,null);t["default"]=c.exports},"27c2":function(e,t,n){"use strict";n.r(t);var i=n("0811"),r=i["a"],a=(n("e298"),n("0c7c")),o=Object(a["a"])(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-editor",e._g({staticClass:"ql-container",attrs:{id:e.id}},e.$listeners))}),[],!1,null,null,null);t["default"]=o.exports},"28c0":function(e,t,n){"use strict";function i(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),Object.defineProperty(e,i.key,i)}}n.d(t,"a",(function(){return r}));var r=function(){function e(t,n){var i=this;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.id=t,this.listener={},this.emitCache={},n&&Object.keys(n).forEach((function(e){i.on(e,n[e])}))}return function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=this.listener[e];if(!r)return(this.emitCache[e]||(this.emitCache[e]=[])).push(n);r.forEach((function(e){e.fn.apply(e.fn,n)})),this.listener[e]=r.filter((function(e){return"once"!==e.type}))}},{key:"on",value:function(e,t){this._addListener(e,"on",t),this._clearCache(e)}},{key:"once",value:function(e,t){this._addListener(e,"once",t),this._clearCache(e)}},{key:"off",value:function(e,t){var n=this.listener[e];if(n)if(t)for(var i=0;i<n.length;)n[i].fn===t&&(n.splice(i,1),i--),i++;else delete this.listener[e]}},{key:"_clearCache",value:function(e){var t=this.emitCache[e];if(t)for(;t.length>0;)this.emit.apply(this,[e].concat(t.shift()))}},{key:"_addListener",value:function(e,t,n){(this.listener[e]||(this.listener[e]=[])).push({fn:n,type:t})}}]),e}()},"2bdd":function(e,t,n){"use strict";n.r(t),function(e){var i;n.d(t,"startAccelerometer",(function(){return a})),n.d(t,"stopAccelerometer",(function(){return o})),n.d(t,"onAccelerometerChange",(function(){return s})),n.d(t,"offAccelerometerChange",(function(){return u}));var r=[];function a(t,n){var a=e,o=a.invokeCallbackHandler;if(!window.DeviceMotionEvent)return{errMsg:"startAccelerometer:fail"};function s(){i=function(e){var t=e.acceleration||e.accelerationIncludingGravity;r.forEach((function(e){o(e,{x:t.x||0,y:t.y||0,z:t.z||0})}))},window.addEventListener("devicemotion",i,!1)}if(!i){if(DeviceMotionEvent.requestPermission)return void DeviceMotionEvent.requestPermission().then((function(e){"granted"===e?(s(),o(n,{errMsg:"startAccelerometer:ok"})):o(n,{errMsg:"startAccelerometer:fail ".concat(e)})})).catch((function(e){o(n,{errMsg:"startAccelerometer:fail ".concat(e)})}));s()}return{}}function o(){return i&&(window.removeEventListener("devicemotion",i,!1),i=null),{}}function s(e){r.length||a(),r.push(e)}function u(e){if(e){var t=r.indexOf(e);t>=0&&r.splice(t,1)}r.length||o()}}.call(this,n("0dd1"))},"2c67":function(e,t,n){"use strict";n.r(t),function(e){function i(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),Object.defineProperty(e,i.key,i)}}function r(t,n,i,r){e.publishHandler(n+"-audio-"+t,{audioId:t,type:i,data:r},n)}n.d(t,"createAudioContext",(function(){return o}));var a=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.id=t,this.pageId=n}return function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"setSrc",value:function(e){r(this.id,this.pageId,"setSrc",{src:e})}},{key:"play",value:function(){r(this.id,this.pageId,"play")}},{key:"pause",value:function(){r(this.id,this.pageId,"pause")}},{key:"seek",value:function(e){r(this.id,this.pageId,"seek",{position:e})}}]),e}();function o(t,n){if(n)return new a(t,n.$page.id);var i=getApp();if(i.$route&&i.$route.params.__id__)return new a(t,i.$route.params.__id__);e.emit("onError","createAudioContext:fail")}}.call(this,n("0dd1"))},"2caf":function(e,t,n){"use strict";(function(e){var r=n("85b6"),a=n("a6b0"),o=n("65a8"),s=n("f2b3"),u=n("24d9"),c=n("2d02"),l=n("a402"),d=n("90f7"),f=n("be12"),h=n("d8c8"),p=n.n(h),g=n("3af1");function v(e){return v="function"===typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)},v(e)}function m(){var e={},t={none:"default",auto:"transparent",always:"float"},n=this.titleNView;n=!1===n||"false"===n||"custom"===this.navigationStyle&&!Object(s["l"])(n)||"always"===this.transparentTitle&&!Object(s["l"])(n)?{type:"none"}:Object.assign({},{type:"custom"===this.navigationStyle?"none":"default"},this.transparentTitle in t?{type:t[this.transparentTitle]}:null,"object"===v(n)?n:"boolean"===typeof n?{type:n?"default":"none"}:null);return e=Object(u["a"])({loading:!1,backButton:!this.isQuit&&!this.$route.meta.isQuit,backgroundColor:this.navigationBarBackgroundColor,textColor:"black"===Object(g["d"])({testStyle:this.navigationBarTextStyle}).testStyle?"#000":"#fff",titleText:this.navigationBarTitleText,titleImage:this.titleImage,duration:"0",timingFunc:"",titlePenetrate:{YES:!0,NO:!1}[this.titlePenetrate]},n),e.shadow=this.navigationBarShadow,Object(a["e"])(e),{navigationBar:__uniConfig.darkmode?Object(g["d"])(e):e,titleNView:n}}function y(e){var t=Object.assign({support:!0,color:"#2BD009",style:"circle",height:70,range:150,offset:0},this.pullToRefresh),n=Object(r["e"])(t.offset);return"none"!==e.type&&"transparent"!==e.type&&(n+=o["a"]+p.a.top),t.offset=n,t.height=Object(r["e"])(t.height),t.range=Object(r["e"])(t.range),t}t["a"]={name:"Page",mpType:"page",components:{PageHead:c["a"],PageBody:l["a"],PageRefresh:d["a"]},mixins:[f["a"]],props:{isQuit:{type:Boolean,default:!1},isEntry:{type:Boolean,default:!1},isTabBar:{type:Boolean,default:!1},tabBarIndex:{type:Number,default:-1},navigationBarBackgroundColor:{type:String,default:"#000"},navigationBarTextStyle:{default:"white",validator:function(e){return-1!==["white","black"].indexOf(e)||0===e.indexOf("@")}},navigationBarTitleText:{type:String,default:""},navigationStyle:{default:"default",validator:function(e){return-1!==["default","custom"].indexOf(e)}},backgroundColor:{type:String,default:"#ffffff"},backgroundTextStyle:{default:"dark",validator:function(e){return-1!==["dark","light"].indexOf(e)}},backgroundColorTop:{type:String,default:"#fff"},backgroundColorBottom:{type:String,default:"#fff"},enablePullDownRefresh:{type:Boolean,default:!1},onReachBottomDistance:{type:Number,default:50},disableScroll:{type:Boolean,default:!1},titleNView:{type:[Boolean,Object,String],default:""},pullToRefresh:{type:Object,default:function(){return{}}},titleImage:{type:String,default:""},transparentTitle:{type:String,default:""},titlePenetrate:{type:String,default:"NO"},navigationBarShadow:{type:Object,default:function(){return{}}},topWindow:{type:Boolean,default:!0}},data:function(){var e=m.call(this),t=e.navigationBar,n=e.titleNView;return{navigationBar:t,refreshOptions:y.call(this,n)}},created:function(){var t=this,n=this.navigationBar;document.title=n.titleText,e.emit("onNavigationBarChange",n),Object(g["c"])((function(){t.navigationBar=m.call(t).navigationBar}))}}}).call(this,n("0dd1"))},"2d02":function(e,t,n){"use strict";var i=n("14ab"),r=i["a"],a=(n("8e16"),n("0c7c")),o=Object(a["a"])(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-page-head",{attrs:{"uni-page-head-type":e.type}},[n("div",{staticClass:"uni-page-head",class:e.headClass,style:{transitionDuration:e.duration,transitionTimingFunction:e.timingFunc,backgroundColor:e.bgColor,color:e.textColor}},[n("div",{staticClass:"uni-page-head-hd"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.backButton,expression:"backButton"}],staticClass:"uni-page-head-btn",on:{click:e._back}},[n("i",{staticClass:"uni-btn-icon",style:{color:e.color,fontSize:"27px"}},[e._v("")])]),n("div",{staticClass:"uni-page-head-ft"},[e._l(e.btns,(function(t,i){return["left"===t.float?n("div",{key:i,staticClass:"uni-page-head-btn",class:{"uni-page-head-btn-red-dot":t.redDot||t.badgeText,"uni-page-head-btn-select":t.select},style:{backgroundColor:"transparent"===e.type?t.background:"transparent",width:t.width},attrs:{"badge-text":t.badgeText}},[n("i",{staticClass:"uni-btn-icon",style:e._formatBtnStyle(t),domProps:{innerHTML:e._s(e._formatBtnFontText(t))},on:{click:function(t){return e._onBtnClick(i)}}})]):e._e()]}))],2)]),e.searchInput?e._e():n("div",{staticClass:"uni-page-head-bd"},[n("div",{staticClass:"uni-page-head__title",style:{fontSize:e.titleSize,opacity:"transparent"===e.type?0:1}},[e.loading?n("i",{staticClass:"uni-loading"}):e._e(),""!==e.titleImage?n("img",{staticClass:"uni-page-head__title_image",attrs:{src:e.titleImage}}):[e._v(" "+e._s(e.titleText)+" ")]],2)]),e.searchInput?n("div",{staticClass:"uni-page-head-search",style:{"border-radius":e.searchInput.borderRadius,"background-color":e.searchInput.backgroundColor}},[n("div",{staticClass:"uni-page-head-search-placeholder",class:["uni-page-head-search-placeholder-"+(e.focus||e.showPlaceholder?"left":e.searchInput.align)],style:{color:e.searchInput.placeholderColor},domProps:{textContent:e._s(e.showPlaceholder||e.composing?"":e.searchInput.placeholder)}}),n("v-uni-input",{ref:"input",staticClass:"uni-page-head-search-input",style:{color:e.searchInput.color},attrs:{focus:e.searchInput.autoFocus,disabled:e.searchInput.disabled,"placeholder-style":"color:"+e.searchInput.placeholderColor,"confirm-type":"search"},on:{focus:e._focus,blur:e._blur,"update:value":e._input},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}}),e.text?n("i",{staticClass:"uni-icon-clear",on:{click:e._clearInput}}):e._e()],1):e._e(),n("div",{staticClass:"uni-page-head-ft"},[e._l(e.btns,(function(t,i){return["left"!==t.float?n("div",{key:i,staticClass:"uni-page-head-btn",class:{"uni-page-head-btn-red-dot":t.redDot||t.badgeText,"uni-page-head-btn-select":t.select},style:{backgroundColor:"transparent"===e.type?t.background:"transparent",width:t.width},attrs:{"badge-text":t.badgeText}},[n("i",{staticClass:"uni-btn-icon",style:e._formatBtnStyle(t),domProps:{innerHTML:e._s(e._formatBtnFontText(t))},on:{click:function(t){return e._onBtnClick(i)}}})]):e._e()]}))],2)]),"transparent"!==e.type&&"float"!==e.type?n("div",{staticClass:"uni-placeholder",class:{"uni-placeholder-titlePenetrate":e.titlePenetrate}}):e._e()])}),[],!1,null,null,null);t["a"]=o.exports},"2d89":function(e,t,n){"use strict";var i=n("6488"),r=n.n(i);r.a},"2da2":function(e,t,n){"use strict";n.r(t),n.d(t,"saveFile",(function(){return r})),n.d(t,"getFileInfo",(function(){return o})),n.d(t,"getSavedFileInfo",(function(){return s})),n.d(t,"removeSavedFile",(function(){return u}));var i=n("cb0f"),r={tempFilePath:{type:String,required:!0,validator:function(e,t){t.tempFilePath=Object(i["a"])(e)}}},a=["md5","sha1"],o={filePath:{type:String,required:!0,validator:function(e,t){t.filePath=Object(i["a"])(e)}},digestAlgorithm:{type:String,validator:function(e,t){t.digestAlgorithm=a.includes(e)?e:a[0]},default:a[0]}},s={filePath:{type:String,required:!0,validator:function(e,t){t.filePath=Object(i["a"])(e)}}},u={filePath:{type:String,required:!0,validator:function(e,t){t.filePath=Object(i["a"])(e)}}}},"2eae":function(e,t,n){"use strict";n.r(t),n.d(t,"interceptors",(function(){return r}));var i=n("8542");n.d(t,"addInterceptor",(function(){return i["a"]})),n.d(t,"removeInterceptor",(function(){return i["d"]}));var r={promiseInterceptor:i["c"]}},"2ec6":function(e,t,n){"use strict";n.r(t),function(e){function i(t){var n=getCurrentPages();return n.length&&e.publishHandler("setPageMeta",t,n[n.length-1].$page.id),{}}n.d(t,"setPageMeta",(function(){return i}))}.call(this,n("0dd1"))},"2ef3":function(e,t,n){"use strict";(function(e,t,i){var r=n("8bbf"),a=n.n(r),o=n("442e");function s(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),Object.defineProperty(e,i.key,i)}}var u=function(){function r(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,r),this._init()}return function(e,t,n){t&&s(e.prototype,t),n&&s(e,n)}(r,[{key:"_init",value:function(){t.UniViewJSBridge={subscribe:e.subscribe,publishHandler:e.publishHandler,subscribeHandler:e.subscribeHandler},t.UniServiceJSBridge={subscribe:i.subscribe,publishHandler:i.publishHandler,subscribeHandler:i.subscribeHandler};var r=n("0138"),s=r.default,u=r.getApp,c=r.getCurrentPages;["chooseImage"].forEach((function(e){Object.defineProperty(s,e,{writable:!1,configurable:!1})})),t.uni=s,t.wx=t.uni,t.getApp=u,t.getCurrentPages=c,a.a.use(n("4ca9").default,{routes:__uniRoutes}),a.a.use(n("8c15").default,{routes:__uniRoutes}),Object(o["a"])(a.a),n("8f7e"),n("1efd")}}]),r}();t.UniApp=u,t.__uniConfig&&new u}).call(this,n("501c"),n("c8ba"),n("0dd1"))},"303a":function(e,t,n){},"303f":function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"CanvasContext",(function(){return S})),n.d(t,"createCanvasContext",(function(){return k})),n.d(t,"canvasGetImageData",(function(){return x})),n.d(t,"canvasPutImageData",(function(){return C})),n.d(t,"canvasToTempFilePath",(function(){return E}));var a=n("f2b3"),o=n("62b5"),s=n("db70"),u=n("a118"),c=n("8b67");function l(e){return l="function"===typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)},l(e)}function d(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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),Object.defineProperty(e,i.key,i)}}function g(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}var v=Object(o["a"])("canvasEvent");function m(t,n,i,r){e.publishHandler(n+"-canvas-"+t,{canvasId:t,type:i,data:r},n)}e.subscribe("onCanvasMethodCallback",(function(e){var t=e.callbackId,n=e.data,i=v.pop(t);i&&i(n)}));var y={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",transparent:"#00000000"};function b(e){e=e||"#000000";var t=null;if(null!=(t=/^#([0-9|A-F|a-f]{6})$/.exec(e))){var n=parseInt(t[1].slice(0,2),16),i=parseInt(t[1].slice(2,4),16),o=parseInt(t[1].slice(4),16);return[n,i,o,255]}if(null!=(t=/^#([0-9|A-F|a-f]{3})$/.exec(e))){var s=t[1].slice(0,1),u=t[1].slice(1,2),c=t[1].slice(2,3);return s=parseInt(s+s,16),u=parseInt(u+u,16),c=parseInt(c+c,16),[s,u,c,255]}if(null!=(t=/^rgb\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e){return Math.min(255,parseInt(e.trim()))})).concat(255);if(null!=(t=/^rgba\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e,t){return 3===t?Math.floor(255*parseFloat(e.trim())):Math.min(255,parseInt(e.trim()))}));var l=e.toLowerCase();if(Object(a["i"])(y,l)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(y[l]);var d=parseInt(t[1].slice(0,2),16),f=parseInt(t[1].slice(2,4),16),h=parseInt(t[1].slice(4,6),16),p=parseInt(t[1].slice(6,8),16);return p=p>=0?p:255,[d,f,h,p]}return r.error("unsupported color:"+e),[0,0,0,255]}function _(e,t){this.type="pattern",this.data=e,this.colorStop=t}var w=function(){function e(t,n){h(this,e),this.type=t,this.data=n,this.colorStop=[]}return g(e,[{key:"addColorStop",value:function(e,t){this.colorStop.push([e,b(t)])}}]),e}();function T(e){this.width=e}var S=function(){function e(t,n){h(this,e),this.id=t,this.pageId=n,this.actions=[],this.path=[],this.subpath=[],this.currentTransform=[],this.currentStepAnimates=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}return g(e,[{key:"draw",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,i=d(this.actions);this.actions=[],this.path=[],"function"===typeof n&&(e=v.push(n)),m(this.id,this.pageId,"actionsChanged",{actions:i,reserve:t,callbackId:e})}},{key:"createLinearGradient",value:function(e,t,n,i){return new w("linear",[e,t,n,i])}},{key:"createCircularGradient",value:function(e,t,n){return new w("radial",[e,t,n])}},{key:"createPattern",value:function(e,t){if(void 0===t)r.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.");else{if(!(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(t)<0))return new _(e,t);r.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+t+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}}},{key:"measureText",value:function(e){var t,n=this.state.font;return t=function(e,t){var n=document.createElement("canvas"),i=n.getContext("2d");return i.font=t,i.measureText(e).width||0}(e,n),new T(t)}},{key:"save",value:function(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}},{key:"restore",value:function(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}},{key:"beginPath",value:function(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}},{key:"moveTo",value:function(e,t){this.path.push({method:"moveTo",data:[e,t]}),this.subpath=[[e,t]]}},{key:"lineTo",value:function(e,t){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[e,t]}):this.path.push({method:"lineTo",data:[e,t]}),this.subpath.push([e,t])}},{key:"quadraticCurveTo",value:function(e,t,n,i){this.path.push({method:"quadraticCurveTo",data:[e,t,n,i]}),this.subpath.push([n,i])}},{key:"bezierCurveTo",value:function(e,t,n,i,r,a){this.path.push({method:"bezierCurveTo",data:[e,t,n,i,r,a]}),this.subpath.push([r,a])}},{key:"arc",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.path.push({method:"arc",data:[e,t,n,i,r,a]}),this.subpath.push([e,t])}},{key:"rect",value:function(e,t,n,i){this.path.push({method:"rect",data:[e,t,n,i]}),this.subpath=[[e,t]]}},{key:"arcTo",value:function(e,t,n,i,r){this.path.push({method:"arcTo",data:[e,t,n,i,r]}),this.subpath.push([n,i])}},{key:"clip",value:function(){this.actions.push({method:"clip",data:d(this.path)})}},{key:"closePath",value:function(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}},{key:"clearActions",value:function(){this.actions=[],this.path=[],this.subpath=[]}},{key:"getActions",value:function(){var e=d(this.actions);return this.clearActions(),e}},{key:"lineDashOffset",set:function(e){this.actions.push({method:"setLineDashOffset",data:[e]})}},{key:"globalCompositeOperation",set:function(e){this.actions.push({method:"setGlobalCompositeOperation",data:[e]})}},{key:"shadowBlur",set:function(e){this.actions.push({method:"setShadowBlur",data:[e]})}},{key:"shadowColor",set:function(e){this.actions.push({method:"setShadowColor",data:[e]})}},{key:"shadowOffsetX",set:function(e){this.actions.push({method:"setShadowOffsetX",data:[e]})}},{key:"shadowOffsetY",set:function(e){this.actions.push({method:"setShadowOffsetY",data:[e]})}},{key:"font",set:function(e){var t=this;this.state.font=e;var n=e.match(/^(([\w\-]+\s)*)(\d+r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var i=n[1].trim().split(/\s/),a=parseFloat(n[3]),o=n[7],s=[];i.forEach((function(e,n){["italic","oblique","normal"].indexOf(e)>-1?(s.push({method:"setFontStyle",data:[e]}),t.state.fontStyle=e):["bold","normal"].indexOf(e)>-1?(s.push({method:"setFontWeight",data:[e]}),t.state.fontWeight=e):0===n?(s.push({method:"setFontStyle",data:["normal"]}),t.state.fontStyle="normal"):1===n&&u()})),1===i.length&&u(),i=s.map((function(e){return e.data[0]})).join(" "),this.state.fontSize=a,this.state.fontFamily=o,this.actions.push({method:"setFont",data:["".concat(i," ").concat(a,"px ").concat(o)]})}else r.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function u(){s.push({method:"setFontWeight",data:["normal"]}),t.state.fontWeight="normal"}},get:function(){return this.state.font}},{key:"fillStyle",set:function(e){this.setFillStyle(e)}},{key:"strokeStyle",set:function(e){this.setStrokeStyle(e)}},{key:"globalAlpha",set:function(e){e=Math.floor(255*parseFloat(e)),this.actions.push({method:"setGlobalAlpha",data:[e]})}},{key:"textAlign",set:function(e){this.actions.push({method:"setTextAlign",data:[e]})}},{key:"lineCap",set:function(e){this.actions.push({method:"setLineCap",data:[e]})}},{key:"lineJoin",set:function(e){this.actions.push({method:"setLineJoin",data:[e]})}},{key:"lineWidth",set:function(e){this.actions.push({method:"setLineWidth",data:[e]})}},{key:"miterLimit",set:function(e){this.actions.push({method:"setMiterLimit",data:[e]})}},{key:"textBaseline",set:function(e){this.actions.push({method:"setTextBaseline",data:[e]})}}]),e}();function k(t,n){if(n)return new S(t,n.$page.id);var i=Object(s["a"])();if(i)return new S(t,i);e.emit("onError","createCanvasContext:fail")}function x(e,t){var n=e.canvasId,i=e.x,r=e.y,a=e.width,o=e.height,c=Object(s["a"])();if(c){var l=v.push((function(e){var n=e.data;n&&n.length&&(e.data=new Uint8ClampedArray(n)),Object(u["a"])(t,e)}));m(n,c,"getImageData",{x:i,y:r,width:a,height:o,callbackId:l})}else Object(u["a"])(t,{errMsg:"canvasGetImageData:fail"})}function C(e,t){var n=e.canvasId,i=e.data,r=e.x,a=e.y,o=e.width,c=e.height,l=Object(s["a"])();if(l){var d=v.push((function(e){Object(u["a"])(t,e)}));i=Array.prototype.slice.call(i),m(n,l,"putImageData",{data:i,x:r,y:a,width:o,height:c,compressed:void 0,callbackId:d})}else Object(u["a"])(t,{errMsg:"canvasPutImageData:fail"})}function E(e,t){var n=e.x,i=void 0===n?0:n,r=e.y,a=void 0===r?0:r,o=e.width,l=e.height,d=e.destWidth,f=e.destHeight,h=e.canvasId,p=e.fileType,g=e.quality,y=Object(s["a"])();if(y){var b=v.push((function(e){Object(u["a"])(t,e)})),_="".concat(c["TEMP_PATH"],"/canvas");m(h,y,"toTempFilePath",{x:i,y:a,width:o,height:l,destWidth:d,destHeight:f,fileType:p,quality:g,dirname:_,callbackId:b})}else Object(u["a"])(t,{errMsg:"canvasToTempFilePath:fail"})}[].concat(["scale","rotate","translate","setTransform","transform"],["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"]).forEach((function(e){S.prototype[e]=function(e){switch(e){case"fill":case"stroke":return function(){this.actions.push({method:e+"Path",data:d(this.path)})};case"fillRect":return function(e,t,n,i){this.actions.push({method:"fillPath",data:[{method:"rect",data:[e,t,n,i]}]})};case"strokeRect":return function(e,t,n,i){this.actions.push({method:"strokePath",data:[{method:"rect",data:[e,t,n,i]}]})};case"fillText":case"strokeText":return function(t,n,i,r){var a=[t.toString(),n,i];"number"===typeof r&&a.push(r),this.actions.push({method:e,data:a})};case"drawImage":return function(t,n,i,r,a,o,s,u,c){var l;function d(e){return"number"===typeof e}void 0===c&&(o=n,s=i,u=r,c=a,n=void 0,i=void 0,r=void 0,a=void 0),l=d(n)&&d(i)&&d(r)&&d(a)?[t,o,s,u,c,n,i,r,a]:d(u)&&d(c)?[t,o,s,u,c]:[t,o,s],this.actions.push({method:e,data:l})};default:return function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this.actions.push({method:e,data:n})}}}(e)})),["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"].forEach((function(e){S.prototype[e]=function(e){switch(e){case"setFillStyle":case"setStrokeStyle":return function(t){"object"!==l(t)?this.actions.push({method:e,data:["normal",b(t)]}):this.actions.push({method:e,data:[t.type,t.data,t.colorStop]})};case"setGlobalAlpha":return function(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:e,data:[t]})};case"setShadow":return function(t,n,i,r){r=b(r),this.actions.push({method:e,data:[t,n,i,r]}),this.state.shadowBlur=i,this.state.shadowColor=r,this.state.shadowOffsetX=t,this.state.shadowOffsetY=n};case"setLineDash":return function(t,n){t=t||[0,0],n=n||0,this.actions.push({method:e,data:[t,n]}),this.state.lineDash=t};case"setFontSize":return function(t){this.state.font=this.state.font.replace(/\d+\.?\d*px/,t+"px"),this.state.fontSize=t,this.actions.push({method:e,data:[t]})};default:return function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this.actions.push({method:e,data:n})}}}(e)}))}.call(this,n("0dd1"),n("3ad9")["default"])},"31c6":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var i,r=n("636c"),a=n("3b51"),o={};function s(t,n){var s=Object(r["e"])();if(s.key){var u=o[s.type]=o[s.type]||[];if(i)n(i);else if(window[s.type]&&window[s.type].maps)i=r["c"]?window[s.type]:window[s.type].maps,i.Callout=i.Callout||Object(a["a"])(i),n(i);else if(u.length)u.push(n);else{u.push(n);var c=window,l="__map_callback__"+s.type;c[l]=function(){delete c[l],i=r["c"]?window[s.type]:window[s.type].maps,i.Callout=Object(a["a"])(i),u.forEach((function(e){return e(i)})),u.length=0};var d=document.createElement("script"),f=function(e){return{qq:"https://map.qq.com/api/js?v=2.exp&",google:"https://maps.googleapis.com/maps/api/js?",AMap:"https://webapi.amap.com/maps?v=2.0&"}[e]}(s.type);s.type===r["d"].QQ&&t.push("geometry"),t.length&&(f+="libraries=".concat(t.join("%2C"),"&")),r["c"]&&function(e){window._AMapSecurityConfig={securityJsCode:e.securityJsCode||"",serviceHost:e.serviceHost||""}}(s),d.src="".concat(f,"key=").concat(s.key,"&callback=").concat(l),d.onerror=function(){e.error("Map load failed.")},document.body.appendChild(d)}}else e.error("Map key not configured.")}}).call(this,n("3ad9")["default"])},"31e2":function(e,t,n){"use strict";n.r(t);var i=n("8af1"),r=n("f2b3"),a=n("a6b0"),o=!!r["s"]&&{passive:!1},s={NONE:"none",STOP:"stop",VOLUME:"volume",PROGRESS:"progress"},u={name:"Video",filters:{time:function(e){e=e>0&&e<1/0?e:0;var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);t=(t<10?"0":"")+t,n=(n<10?"0":"")+n,i=(i<10?"0":"")+i;var r=n+":"+i;return"00"!==t&&(r=t+":"+r),r}},mixins:[a["c"],i["g"],i["d"]],props:{id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:function(){return[]}},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0}},data:function(){return{start:!1,playing:!1,currentTime:0,durationTime:0,progress:0,touching:!1,enableDanmuSync:Boolean(this.enableDanmu),controlsVisible:!0,fullscreen:!1,controlsTouching:!1,touchStartOrigin:{x:0,y:0},gestureType:s.NONE,currentTimeOld:0,currentTimeNew:0,volumeOld:null,volumeNew:null,buffered:0,isSafari:/^Apple/.test(navigator.vendor)}},computed:{centerPlayBtnShow:function(){return this.showCenterPlayBtn&&!this.start},controlsShow:function(){return!this.centerPlayBtnShow&&this.controls&&this.controlsVisible},autoHideContorls:function(){return this.controlsShow&&this.playing&&!this.controlsTouching},srcSync:function(){return this.$getRealPath(this.src)}},watch:{enableDanmuSync:function(e){this.$emit("update:enableDanmu",e)},autoHideContorls:function(e){e?this.autoHideStart():this.autoHideEnd()},srcSync:function(e){this.playing=!1,this.currentTime=0},currentTime:function(){this.updateProgress()},duration:function(){this.updateProgress()},buffered:function(e){0!==e&&this.$trigger("progress",{},{buffered:e})}},created:function(){this.otherData={danmuList:[],danmuIndex:{time:0,index:-1},hideTiming:null};var e=this.otherData.danmuList=JSON.parse(JSON.stringify(this.danmuList||[]));e.sort((function(e,t){return(e.time||0)-(t.time||0)}))},mounted:function(){var e,t,n,i=this,r=this,a=!0,s=this.$refs.ball;function u(i){var o=i.targetTouches[0],s=o.pageX,u=o.pageY;if(a&&Math.abs(s-e)<Math.abs(u-t))c();else{a=!1;var l=r.$refs.progress.offsetWidth,d=n+(s-e)/l*100;d<0?d=0:d>100&&(d=100),r.progress=d,i.preventDefault(),i.stopPropagation()}}function c(e){r.controlsTouching=!1,r.touching&&(s.removeEventListener("touchmove",u,o),a||(e.preventDefault(),e.stopPropagation(),r.seek(r.$refs.video.duration*r.progress/100)),r.touching=!1)}s.addEventListener("touchstart",(function(r){i.controlsTouching=!0;var c=r.targetTouches[0];e=c.pageX,t=c.pageY,n=i.progress,a=!0,i.touching=!0,s.addEventListener("touchmove",u,o)})),s.addEventListener("touchend",c),s.addEventListener("touchcancel",c)},beforeDestroy:function(){this.triggerFullscreen(!1),clearTimeout(this.otherData.hideTiming)},methods:{_handleSubscribe:function(e){var t,n=e.type,i=e.data,r=void 0===i?{}:i;switch(n){case"seek":t=r.position;break;case"sendDanmu":t=r;break;case"playbackRate":t=r.rate;break}["play","pause","seek","sendDanmu","playbackRate","requestFullScreen","exitFullScreen"].indexOf(n)>=0&&this[n](t)},trigger:function(){this.playing?this.$refs.video.pause():this.$refs.video.play()},play:function(){this.start=!0,this.$refs.video.play()},pause:function(){this.$refs.video.pause()},seek:function(e){e=Number(e),"number"!==typeof e||isNaN(e)||(this.$refs.video.currentTime=e)},clickProgress:function(e){var t=this.$refs.progress,n=e.target,i=e.offsetX;while(n!==t)i+=n.offsetLeft,n=n.parentNode;var r=t.offsetWidth,a=0;i>=0&&i<=r&&(a=i/r,this.seek(this.$refs.video.duration*a))},triggerDanmu:function(){this.enableDanmuSync=!this.enableDanmuSync},playDanmu:function(e){var t=document.createElement("p");t.className="uni-video-danmu-item",t.innerText=e.text;var n="bottom: ".concat(100*Math.random(),"%;color: ").concat(e.color,";");t.setAttribute("style",n),this.$refs.danmu.appendChild(t),setTimeout((function(){n+="left: 0;-webkit-transform: translateX(-100%);transform: translateX(-100%);",t.setAttribute("style",n),setTimeout((function(){t.remove()}),4e3)}),17)},sendDanmu:function(e){var t=this.otherData;t.danmuList.splice(t.danmuIndex.index+1,0,{text:String(e.text),color:e.color,time:this.$refs.video.currentTime||0})},playbackRate:function(e){this.$refs.video.playbackRate=e},triggerFullscreen:function(e){var t,n=this.$refs.container,i=this.$refs.video;e?!document.fullscreenEnabled&&!document.webkitFullscreenEnabled||this.isSafari&&!this.userInteract?i.webkitEnterFullScreen?i.webkitEnterFullScreen():(t=!0,n.remove(),n.classList.add("uni-video-type-fullscreen"),document.body.appendChild(n)):n[document.fullscreenEnabled?"requestFullscreen":"webkitRequestFullscreen"]():document.fullscreenEnabled||document.webkitFullscreenEnabled?document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen():i.webkitExitFullScreen?i.webkitExitFullScreen():(t=!0,n.remove(),n.classList.remove("uni-video-type-fullscreen"),this.$el.appendChild(n)),t&&this.emitFullscreenChange(e)},onFullscreenChange:function(e,t){t&&document.fullscreenEnabled||this.emitFullscreenChange(!(!document.fullscreenElement&&!document.webkitFullscreenElement))},emitFullscreenChange:function(e){this.fullscreen=e,this.$trigger("fullscreenchange",{},{fullScreen:e,direction:"vertical"})},requestFullScreen:function(){this.triggerFullscreen(!0)},exitFullScreen:function(){this.triggerFullscreen(!1)},onDurationChange:function(e){var t=e.target;this.durationTime=t.duration},onLoadedMetadata:function(e){var t=Number(this.initialTime)||0,n=e.target;t>0&&(n.currentTime=t),this.$trigger("loadedmetadata",e,{width:n.videoWidth,height:n.videoHeight,duration:n.duration}),this.onProgress(e)},onProgress:function(e){var t=e.target,n=t.buffered;n.length&&(this.buffered=n.end(n.length-1)/t.duration*100)},onWaiting:function(e){this.$trigger("waiting",e,{})},onVideoError:function(e){this.playing=!1,this.$trigger("error",e,{})},onPlay:function(e){this.start=!0,this.playing=!0,this.$trigger("play",e,{})},onPause:function(e){this.playing=!1,this.$trigger("pause",e,{})},onEnded:function(e){this.playing=!1,this.$trigger("ended",e,{})},onTimeUpdate:function(e){var t=e.target,n=this.otherData,i=this.currentTime=t.currentTime,r=n.danmuIndex,a={time:i,index:r.index},o=n.danmuList;if(i>r.time)for(var s=r.index+1;s<o.length;s++){var u=o[s];if(!(i>=(u.time||0)))break;a.index=s,this.playing&&this.enableDanmuSync&&this.playDanmu(u)}else if(i<r.time)for(var c=r.index-1;c>-1;c--){var l=o[c];if(!(i<=(l.time||0)))break;a.index=c-1}n.danmuIndex=a,this.$trigger("timeupdate",e,{currentTime:i,duration:t.duration})},triggerControls:function(){this.controlsVisible=!this.controlsVisible},touchstart:function(e){var t=e.targetTouches[0];this.touchStartOrigin={x:t.pageX,y:t.pageY},this.gestureType=s.NONE,this.volumeOld=null,this.currentTimeOld=this.currentTimeNew=0},touchmove:function(e){function t(){e.stopPropagation(),e.preventDefault()}this.fullscreen&&t();var n=this.gestureType;if(n!==s.STOP){var i=e.targetTouches[0],r=i.pageX,a=i.pageY,o=this.touchStartOrigin;if(n===s.PROGRESS?this.changeProgress(r-o.x):n===s.VOLUME&&this.changeVolume(a-o.y),n===s.NONE)if(Math.abs(r-o.x)>Math.abs(a-o.y)){if(!this.enableProgressGesture)return void(this.gestureType=s.STOP);this.gestureType=s.PROGRESS,this.currentTimeOld=this.currentTimeNew=this.$refs.video.currentTime,this.fullscreen||t()}else{if(!this.pageGesture)return void(this.gestureType=s.STOP);this.gestureType=s.VOLUME,this.volumeOld=this.$refs.video.volume,this.fullscreen||t()}}},touchend:function(e){this.gestureType!==s.NONE&&this.gestureType!==s.STOP&&(e.stopPropagation(),e.preventDefault()),this.gestureType===s.PROGRESS&&this.currentTimeOld!==this.currentTimeNew&&(this.$refs.video.currentTime=this.currentTimeNew),this.gestureType=s.NONE},changeProgress:function(e){var t=this.$refs.video.duration,n=e/600*t+this.currentTimeOld;n<0?n=0:n>t&&(n=t),this.currentTimeNew=n},changeVolume:function(e){var t,n=this.volumeOld;"number"===typeof n&&(t=n-e/200,t<0?t=0:t>1&&(t=1),this.$refs.video.volume=t,this.volumeNew=t)},autoHideStart:function(){var e=this;this.otherData.hideTiming=setTimeout((function(){e.controlsVisible=!1}),3e3)},autoHideEnd:function(){var e=this.otherData;e.hideTiming&&(clearTimeout(e.hideTiming),e.hideTiming=null)},updateProgress:function(){this.touching||(this.progress=this.currentTime/this.durationTime*100)}}},c=u,l=(n("856e"),n("0c7c")),d=Object(l["a"])(c,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-video",e._g({attrs:{id:e.id}},e.$listeners),[n("div",{ref:"container",staticClass:"uni-video-container",on:{touchstart:e.touchstart,touchend:e.touchend,touchmove:e.touchmove,fullscreenchange:function(t){return t.stopPropagation(),e.onFullscreenChange(t)},webkitfullscreenchange:function(t){return t.stopPropagation(),e.onFullscreenChange(t,!0)}}},[n("video",e._b({ref:"video",staticClass:"uni-video-video",style:{objectFit:e.objectFit},attrs:{loop:e.loop,src:e.srcSync,poster:e.poster,autoplay:e.autoplay,"webkit-playsinline":"",playsinline:""},domProps:{muted:e.muted},on:{click:e.triggerControls,durationchange:e.onDurationChange,loadedmetadata:e.onLoadedMetadata,progress:e.onProgress,waiting:e.onWaiting,error:e.onVideoError,play:e.onPlay,pause:e.onPause,ended:e.onEnded,timeupdate:e.onTimeUpdate,webkitbeginfullscreen:function(t){return e.emitFullscreenChange(!0)},x5videoenterfullscreen:function(t){return e.emitFullscreenChange(!0)},webkitendfullscreen:function(t){return e.emitFullscreenChange(!1)},x5videoexitfullscreen:function(t){return e.emitFullscreenChange(!1)}}},"video",e.$attrs,!1)),n("div",{directives:[{name:"show",rawName:"v-show",value:e.controlsShow,expression:"controlsShow"}],staticClass:"uni-video-bar uni-video-bar-full",on:{click:function(e){e.stopPropagation()}}},[n("div",{staticClass:"uni-video-controls"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPlayBtn,expression:"showPlayBtn"}],staticClass:"uni-video-control-button",class:{"uni-video-control-button-play":!e.playing,"uni-video-control-button-pause":e.playing},on:{click:function(t){return t.stopPropagation(),e.trigger(t)}}}),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showProgress,expression:"showProgress"}],staticClass:"uni-video-current-time"},[e._v(" "+e._s(e._f("time")(e.currentTime))+" ")]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showProgress,expression:"showProgress"}],ref:"progress",staticClass:"uni-video-progress-container",on:{click:function(t){return t.stopPropagation(),e.clickProgress(t)}}},[n("div",{staticClass:"uni-video-progress"},[n("div",{staticClass:"uni-video-progress-buffered",style:{width:e.buffered+"%"}}),n("div",{ref:"ball",staticClass:"uni-video-ball",style:{left:e.progress+"%"}},[n("div",{staticClass:"uni-video-inner"})])])]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showProgress,expression:"showProgress"}],staticClass:"uni-video-duration"},[e._v(" "+e._s(e._f("time")(e.duration||e.durationTime))+" ")])]),e.danmuBtn?n("div",{staticClass:"uni-video-danmu-button",class:{"uni-video-danmu-button-active":e.enableDanmuSync},on:{click:function(t){return t.stopPropagation(),e.triggerDanmu(t)}}},[e._v(" "+e._s(e.$$t("uni.video.danmu"))+" ")]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showFullscreenBtn,expression:"showFullscreenBtn"}],staticClass:"uni-video-fullscreen",class:{"uni-video-type-fullscreen":e.fullscreen},on:{click:function(t){return t.stopPropagation(),e.triggerFullscreen(!e.fullscreen)}}})]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.start&&e.enableDanmuSync,expression:"start&&enableDanmuSync"}],ref:"danmu",staticClass:"uni-video-danmu",staticStyle:{"z-index":"0"}}),e.centerPlayBtnShow?n("div",{staticClass:"uni-video-cover",on:{click:function(e){e.stopPropagation()}}},[n("div",{staticClass:"uni-video-cover-play-button",on:{click:function(t){return t.stopPropagation(),e.play(t)}}}),n("p",{staticClass:"uni-video-cover-duration"},[e._v(" "+e._s(e._f("time")(e.duration||e.durationTime))+" ")])]):e._e(),n("div",{staticClass:"uni-video-toast",class:{"uni-video-toast-volume":"volume"===e.gestureType}},[n("div",{staticClass:"uni-video-toast-title"},[e._v(" "+e._s(e.$$t("uni.video.volume"))+" ")]),n("svg",{staticClass:"uni-video-toast-icon",attrs:{width:"200px",height:"200px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M475.400704 201.19552l0 621.674496q0 14.856192-10.856448 25.71264t-25.71264 10.856448-25.71264-10.856448l-190.273536-190.273536-149.704704 0q-14.856192 0-25.71264-10.856448t-10.856448-25.71264l0-219.414528q0-14.856192 10.856448-25.71264t25.71264-10.856448l149.704704 0 190.273536-190.273536q10.856448-10.856448 25.71264-10.856448t25.71264 10.856448 10.856448 25.71264zm219.414528 310.837248q0 43.425792-24.28416 80.851968t-64.2816 53.425152q-5.71392 2.85696-14.2848 2.85696-14.856192 0-25.71264-10.570752t-10.856448-25.998336q0-11.999232 6.856704-20.284416t16.570368-14.2848 19.427328-13.142016 16.570368-20.284416 6.856704-32.569344-6.856704-32.569344-16.570368-20.284416-19.427328-13.142016-16.570368-14.2848-6.856704-20.284416q0-15.427584 10.856448-25.998336t25.71264-10.570752q8.57088 0 14.2848 2.85696 39.99744 15.427584 64.2816 53.139456t24.28416 81.137664zm146.276352 0q0 87.422976-48.56832 161.41824t-128.5632 107.707392q-7.428096 2.85696-14.2848 2.85696-15.427584 0-26.284032-10.856448t-10.856448-25.71264q0-22.284288 22.284288-33.712128 31.997952-16.570368 43.425792-25.141248 42.283008-30.855168 65.995776-77.423616t23.712768-99.136512-23.712768-99.136512-65.995776-77.423616q-11.42784-8.57088-43.425792-25.141248-22.284288-11.42784-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 79.99488 33.712128 128.5632 107.707392t48.56832 161.41824zm146.276352 0q0 131.42016-72.566784 241.41312t-193.130496 161.989632q-7.428096 2.85696-14.856192 2.85696-14.856192 0-25.71264-10.856448t-10.856448-25.71264q0-20.570112 22.284288-33.712128 3.999744-2.285568 12.85632-5.999616t12.85632-5.999616q26.284032-14.2848 46.854144-29.140992 70.281216-51.996672 109.707264-129.705984t39.426048-165.132288-39.426048-165.132288-109.707264-129.705984q-20.570112-14.856192-46.854144-29.140992-3.999744-2.285568-12.85632-5.999616t-12.85632-5.999616q-22.284288-13.142016-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 120.563712 51.996672 193.130496 161.989632t72.566784 241.41312z"}})]),n("div",{staticClass:"uni-video-toast-value"},[n("div",{staticClass:"uni-video-toast-value-content",style:{width:100*e.volumeNew+"%"}},[n("div",{staticClass:"uni-video-toast-volume-grids"},e._l(10,(function(e,t){return n("div",{key:t,staticClass:"uni-video-toast-volume-grids-item"})})),0)])])]),n("div",{staticClass:"uni-video-toast",class:{"uni-video-toast-progress":"progress"==e.gestureType}},[n("div",{staticClass:"uni-video-toast-title"},[e._v(" "+e._s(e._f("time")(e.currentTimeNew))+" / "+e._s(e._f("time")(e.durationTime))+" ")])]),n("div",{staticClass:"uni-video-slots"},[e._t("default")],2)])])}),[],!1,null,null,null);t["default"]=d.exports},"332a":function(e,t,n){"use strict";n.r(t),n.d(t,"redirectTo",(function(){return u})),n.d(t,"reLaunch",(function(){return c})),n.d(t,"navigateTo",(function(){return l})),n.d(t,"switchTab",(function(){return d})),n.d(t,"navigateBack",(function(){return f})),n.d(t,"preloadPage",(function(){return h})),n.d(t,"unPreloadPage",(function(){return p}));var i,r=n("0f74");function a(e){return function(t,n){t=Object(r["a"])(t);var a=t.split("?")[0],o=__uniRoutes.find((function(e){var t=e.path,n=e.alias;return t===a||n===a}));if(!o)return"page `"+t+"` is not found";if("navigateTo"===e||"redirectTo"===e){if(o.meta.isTabBar)return"can not ".concat(e," a tabbar page")}else if("switchTab"===e&&!o.meta.isTabBar)return"can not switch to no-tabBar page";if("switchTab"!==e&&"preloadPage"!==e||!o.meta.isTabBar||"appLaunch"===n.openType||(t=a),o.meta.isEntry&&(t=t.replace(o.alias,"/")),n.url=function(e){if("string"!==typeof e)return e;var t=e.indexOf("?");if(-1===t)return e;var n=e.substr(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.substr(0,t);var i=[];return n.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),n=t.shift(),r=t.length>0?t.join("="):"";i.push(n+"="+encodeURIComponent(r))})),i.length?e+"?"+i.join("&"):e}(t),"unPreloadPage"!==e)if("preloadPage"!==e){if(i===t&&"appLaunch"!==n.openType)return"".concat(i," locked");__uniConfig.ready&&!1!==__uniConfig.enableNavigatorLock&&(i=t)}else if(o.meta.isTabBar){var s=getCurrentPages(!0),u=(o.alias||o.path).substr(1);if(s.find((function(e){return e.route===u})))return"tabBar page `"+u+"` already exists"}}}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({url:{type:String,required:!0,validator:a(e)},beforeAll:function(){i=""}},t)}function s(e){return{animationType:{type:String,validator:function(t){if(t&&-1===e.indexOf(t))return"`"+t+"` is not supported for `animationType` (supported values are: `"+e.join("`|`")+"`)"}},animationDuration:{type:Number}}}var u=o("redirectTo"),c=o("reLaunch"),l=o("navigateTo",s(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"])),d=o("switchTab"),f=Object.assign({delta:{type:Number,validator:function(e,t){e=parseInt(e)||1,t.delta=Math.min(getCurrentPages().length-1,e)}}},s(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"])),h={url:{type:String,required:!0,validator:a("preloadPage")}},p={url:{type:String,required:!0,validator:a("unPreloadPage")}}},"33ed":function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return u}));var i,r=n("4a59");function a(e){e.preventDefault()}function o(e){var t=e.scrollTop,n=e.selector,i=e.duration;if("undefined"===typeof t){var r=document.querySelector(n);if(r){var a=r.getBoundingClientRect(),o=a.top,s=a.height;t=o+window.pageYOffset,t-=s}}var u=document.documentElement,c=u.clientHeight,l=u.scrollHeight;t=Math.min(t,l-c),0!==i?window.scrollY!==t&&function e(n){if(n<=0)window.scrollTo(0,t);else{var i=t-window.scrollY;requestAnimationFrame((function(){window.scrollTo(0,window.scrollY+i/n*10),e(n-10)}))}}(i):u.scrollTop=document.body.scrollTop=t}var s=0;function u(t,n){var a=n.enablePageScroll,o=n.enablePageReachBottom,u=n.onReachBottomDistance,c=n.enableTransparentTitleNView,l=!1,d=!1,f=!0;function h(){var e=document.documentElement.scrollHeight,t=window.innerHeight,n=window.scrollY,i=n>0&&e>t&&n+t+u>=e,r=Math.abs(e-s)>u;return!i||d&&!r?(!i&&d&&(d=!1),!1):(s=e,d=!0,!0)}function p(){var n=getCurrentPages();if(n.length&&n[n.length-1].$page.id===t){var s=window.pageYOffset;a&&Object(r["a"])("onPageScroll",{scrollTop:s},t),c&&e.emit("onPageScroll",{scrollTop:s}),o&&f&&(u()||(i=setTimeout(u,300))),l=!1}function u(){if(h())return Object(r["a"])("onReachBottom",{},t),f=!1,setTimeout((function(){f=!0}),350),!0}}return function(){clearTimeout(i),l||requestAnimationFrame(p),l=!0}}}).call(this,n("501c"))},"34b2":function(e,t,n){"use strict";n.r(t),function(e){function i(){return window.location.protocol+"//"+window.location.host}function r(t,n){var r=t.src,a=e,o=a.invokeCallbackHandler,s=new Image,u=r;s.onload=function(){o(n,{errMsg:"getImageInfo:ok",width:s.naturalWidth,height:s.naturalHeight,path:0===u.indexOf("/")?i()+u:u})},s.onerror=function(e){o(n,{errMsg:"getImageInfo:fail"})},s.src=r}n.d(t,"getImageInfo",(function(){return r}))}.call(this,n("0dd1"))},3563:function(e,t,n){"use strict";n.r(t);var i=n("f2b3"),r=n("bd97"),a=n("8af1");a["d"].addInteractListener();t["default"]=function(e){var t=e.count,n=e.sourceType,a=e.type,o=e.extension,s=document.createElement("input");return s.type="file",Object(i["w"])(s,{position:"absolute",visibility:"hidden","z-index":-999,width:0,height:0,top:0,left:0}),s.accept=o.map((function(e){if("*"!==a){var t=e.replace(".","");return"".concat(a,"/").concat(r["default"][a][t]||t)}return function(){var e=window.navigator.userAgent.toLowerCase();return!(!e.match(/MicroMessenger/i)||"micromessenger"!==e.match(/MicroMessenger/i)[0])}()?".":0===e.indexOf(".")?e:".".concat(e)})).join(","),t>1&&(s.multiple="multiple"),1===n.length&&"camera"===n[0]&&(s.capture="camera"),s}},3569:function(e,t,n){},3648:function(e,t,n){"use strict";n.r(t),n.d(t,"canIUse",(function(){return s}));var i=n("f2b3");function r(e){return window.CSS&&CSS.supports&&(CSS.supports(e)||CSS.supports.apply(CSS,e.split(":")))}var a={"css.var":r("--a:0"),"css.env":r("top:env(a)"),"css.constant":r("top:constant(a)")},o=n("9fe4");function s(e){return Object(i["i"])(a,e)?a[e]:!!Object(i["i"])(o["a"],e)}},3676:function(e,t,n){"use strict";n.r(t),n.d(t,"getRecorderManager",(function(){return u}));var i=n("db70");function r(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),Object.defineProperty(e,i.key,i)}}var a,o={pause:null,resume:null,start:null,stop:null,error:null},s=function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),Object(i["d"])("onRecorderStateChange",(function(e){var t=e.state;delete e.state,delete e.errMsg,"function"===typeof o[t]&&o[t](e)}))}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"onError",value:function(e){o.error=e}},{key:"onFrameRecorded",value:function(e){}},{key:"onInterruptionBegin",value:function(e){}},{key:"onInterruptionEnd",value:function(e){}},{key:"onPause",value:function(e){o.pause=e}},{key:"onResume",value:function(e){o.resume=e}},{key:"onStart",value:function(e){o.start=e}},{key:"onStop",value:function(e){o.stop=e}},{key:"pause",value:function(){Object(i["c"])("operateRecorder",{operationType:"pause"})}},{key:"resume",value:function(){Object(i["c"])("operateRecorder",{operationType:"resume"})}},{key:"start",value:function(e){Object(i["c"])("operateRecorder",Object.assign({},e,{operationType:"start"}))}},{key:"stop",value:function(){Object(i["c"])("operateRecorder",{operationType:"stop"})}}]),e}();function u(){return a||(a=new s)}},3870:function(e,t,n){},3898:function(e,t,n){"use strict";n.r(t),function(e,i){n.d(t,"chooseFile",(function(){return d}));var r=n("e2e2"),a=n("a6b0"),o=n("3563"),s=n("8af1"),u=e,c=u.invokeCallbackHandler,l=null;function d(e,t){var n=e.count,u=e.sourceType,d=e.type,f=e.extension;l&&(document.body.removeChild(l),l=null),l=Object(o["default"])({count:n,sourceType:u,type:d,extension:f}),document.body.appendChild(l),l.addEventListener("change",(function(e){for(var i=[],a=e.target.files.length,o=function(t){var a=e.target.files[t],o=void 0;Object.defineProperty(a,"path",{get:function(){return o=o||Object(r["b"])(a),o}}),t<n&&i.push(a)},s=0;s<a;s++)o(s);var u={errMsg:"chooseFile:ok",get tempFilePaths(){return i.map((function(e){var t=e.path;return t}))},tempFiles:i};c(t,u)})),l.click(),s["d"].getStatus()||i.warn("".concat(Object(a["g"])("uni.chooseFile.notUserActivation")))}}.call(this,n("0dd1"),n("3ad9")["default"])},"39aa":function(e){e.exports=JSON.parse('{"uni.app.quit":"Press back button again to exit","uni.async.error":"The connection timed out, click the screen to try again.","uni.showActionSheet.cancel":"Cancel","uni.showToast.unpaired":"Please note showToast must be paired with hideToast","uni.showLoading.unpaired":"Please note showLoading must be paired with hideLoading","uni.showModal.cancel":"Cancel","uni.showModal.confirm":"OK","uni.chooseImage.cancel":"Cancel","uni.chooseImage.sourceType.album":"Album","uni.chooseImage.sourceType.camera":"Camera","uni.chooseVideo.cancel":"Cancel","uni.chooseVideo.sourceType.album":"Album","uni.chooseVideo.sourceType.camera":"Camera","uni.chooseFile.notUserActivation":"File chooser dialog can only be shown with a user activation","uni.previewImage.cancel":"Cancel","uni.previewImage.button.save":"Save Image","uni.previewImage.save.success":"Saved successfully","uni.previewImage.save.fail":"Save failed","uni.setClipboardData.success":"Content copied","uni.scanCode.title":"Scan code","uni.scanCode.album":"Album","uni.scanCode.fail":"Recognition failure","uni.scanCode.flash.on":"Tap to turn light on","uni.scanCode.flash.off":"Tap to turn light off","uni.startSoterAuthentication.authContent":"Fingerprint recognition","uni.picker.done":"Done","uni.picker.cancel":"Cancel","uni.video.danmu":"Danmu","uni.video.volume":"Volume","uni.button.feedback.title":"feedback","uni.button.feedback.send":"send","uni.chooseLocation.search":"Find Place","uni.chooseLocation.cancel":"Cancel"}')},"3ad9":function(e,t,n){"use strict";n.r(t),function(e){var n=Array.prototype.unshift;function i(e){return n.call(e,"[system]"),e}function r(t){return function(){var n=!0;"debug"!==t||__uniConfig.debug||(n=!1),n&&e.console[t].apply(e.console,i(arguments))}}t["default"]={log:r("log"),info:r("info"),warn:r("warn"),debug:r("debug"),error:r("error")}}.call(this,n("c8ba"))},"3ae8":function(e,t,n){},"3af1":function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return u}));var i=n("f2b3"),r=n("fb3e");n.d(t,"a",(function(){return r["getTheme"]}));var a=n("65a8");function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};__uniConfig.darkmode&&e.on("api."+a["b"],t)}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};e.off("api."+a["b"],t)}function u(e){var t={};if(__uniConfig.darkmode){var n=Object(r["getTheme"])();t=Object(i["o"])(e,__uniConfig.themeConfig,n)}return __uniConfig.darkmode?t:e}}).call(this,n("0dd1"))},"3b51":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("636c");function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){function t(){var e=this.div,t=this.getPanes();t.floatPane.appendChild(e)}function n(){var e=this.div.parentNode;e&&e.removeChild(this.div)}function a(){var t=this,n=this.option;this.Text=new e.Text({text:n.content,anchor:"bottom-center",offset:new e.Pixel(0,n.offsetY-16),style:{padding:(n.padding||8)+"px","line-height":(n.fontSize||14)+"px","border-radius":(n.borderRadius||0)+"px","border-color":"".concat(n.bgColor||"#fff"," transparent transparent"),"background-color":n.bgColor||"#fff","box-shadow":"0 2px 6px 0 rgba(114, 124, 245, .5)","text-align":"center","font-size":(n.fontSize||14)+"px",color:n.color||"#000"},position:n.position}),this.Text.dom.addEventListener("click",(function(e){u(t,e)})),this.Text.dom.addEventListener("touchend",(function(e){u(t,e)})),this.Text.setMap(n.map)}function u(e,t){e.callback(t,e.parent),t.stopPropagation()}function c(){this.Text&&this.option.map.remove(this.Text)}var l=function(){function e(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0;if(r(this,e),s(this,"option",void 0),s(this,"position",void 0),s(this,"index",void 0),s(this,"visible",void 0),s(this,"alwaysVisible",void 0),s(this,"div",void 0),s(this,"triangle",void 0),s(this,"callback",void 0),s(this,"parent",void 0),s(this,"Text",void 0),s(this,"createAMapText",a),s(this,"removeAMapText",c),s(this,"onAdd",t),s(this,"construct",t),s(this,"onRemove",n),s(this,"destroy",n),this.option=o||{},this.visible=this.alwaysVisible="ALWAYS"===o.display,i["c"])this.callback=u,this.parent=l,this.visible&&this.createAMapText();else{var d=o.map;this.position=o.position,this.index=1;var f=this.div=document.createElement("div"),h=f.style;h.position="absolute",h.whiteSpace="nowrap",h.transform="translateX(-50%) translateY(-100%)",h.zIndex="1",h.boxShadow=o.boxShadow||"none",h.display=this.visible?"block":"none";var p=this.triangle=document.createElement("div");p.setAttribute("style","position: absolute;white-space: nowrap;border-width: 4px;border-style: solid;border-color: #fff transparent transparent;border-image: initial;font-size: 12px;padding: 0px;background-color: transparent;width: 0px;height: 0px;transform: translate(-50%, 100%);left: 50%;bottom: 0;"),this.setStyle(o),f.appendChild(p),d&&this.setMap(d)}}return o(e,[{key:"onclick",set:function(e){this.div.onclick=e},get:function(){return this.div.onclick}}]),o(e,[{key:"setOption",value:function(e){this.option=e,"ALWAYS"===e.display?this.alwaysVisible=this.visible=!0:this.alwaysVisible=!1,i["c"]?this.visible&&this.createAMapText():(this.setPosition(e.position),this.setStyle(e))}},{key:"setStyle",value:function(e){var t=this.div,n=t.style;t.innerText=e.content||"",n.lineHeight=(e.fontSize||14)+"px",n.fontSize=(e.fontSize||14)+"px",n.padding=(e.padding||8)+"px",n.color=e.color||"#000",n.borderRadius=(e.borderRadius||0)+"px",n.backgroundColor=e.bgColor||"#fff",n.marginTop="-"+((e.top||0)+5)+"px",this.triangle.style.borderColor="".concat(e.bgColor||"#fff"," transparent transparent")}},{key:"setPosition",value:function(e){this.position=e,this.draw()}},{key:"draw",value:function(){var e=this.getProjection();if(this.position&&this.div&&e){var t=e.fromLatLngToDivPixel(this.position),n=this.div.style;n.left=t.x+"px",n.top=t.y+"px"}}},{key:"changed",value:function(){var e=this.div.style;e.display=this.visible?"block":"none"}}]),e}();if(!i["c"]){var d=l.prototype,f=new(e.OverlayView||e.Overlay);for(var h in f)h in d||(d[h]=f[h])}return l}},"3b54":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"getFileInfo",(function(){return o}));var i=n("e2e2"),r=e,a=r.invokeCallbackHandler;function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filePath,n=arguments.length>1?arguments[1]:void 0;Object(i["f"])(t).then((function(e){a(n,{errMsg:"getFileInfo:ok",size:e.size})})).catch((function(e){a(n,{errMsg:"getFileInfo:fail "+e.message})}))}}.call(this,n("0dd1"))},"3b67":function(e,t,n){"use strict";var i=Object.create(null),r=n("e3a7");r.keys().forEach((function(e){Object.assign(i,r(e))})),t["a"]=i},"3bfb":function(e,t,n){"use strict";n.r(t),n.d(t,"createAudioContext",(function(){return r})),n.d(t,"createVideoContext",(function(){return a})),n.d(t,"createMapContext",(function(){return o})),n.d(t,"createCanvasContext",(function(){return s}));var i=[{name:"id",type:String,required:!0}],r=i,a=i,o=i,s=[{name:"canvasId",type:String,required:!0},{name:"componentInstance",type:Object}]},"3d1f":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("62b5"),r=n("a741");function a(e,t){t.getApp;var n=t.getCurrentPages;function a(e){return function(t,i){i=parseInt(i);var a=n(),o=a.find((function(e){return e.$page.id===i}));o&&Object(r["b"])(o,e,t)}}var o=Object(i["a"])("requestComponentInfo");var s=Object(i["a"])("requestComponentObserver");var u=Object(i["a"])("requestMediaQueryObserver");e("onPageReady",a("onReady")),e("onPageScroll",a("onPageScroll")),e("onReachBottom",a("onReachBottom")),e("onRequestComponentInfo",(function(e){var t=e.reqId,n=e.res,i=o.pop(t);i&&i(n)})),e("onRequestComponentObserver",(function(e){var t=e.reqId,n=e.reqEnd,i=e.res,r=s.get(t);if(r){if(n)return void s.pop(t);r(i)}})),e("onRequestMediaQueryObserver",(function(e){var t=e.reqId,n=e.reqEnd,i=e.res,r=u.get(t);if(r){if(n)return void u.pop(t);r(i)}}))}},"3d64":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"onNetworkStatusChange",(function(){return s})),n.d(t,"offNetworkStatusChange",(function(){return u})),n.d(t,"getNetworkType",(function(){return c}));var i=e,r=i.invokeCallbackHandler,a=[];function o(){var e=c(),t=e.networkType;a.forEach((function(e){r(e,{errMsg:"onNetworkStatusChange:ok",isConnected:"none"!==t,networkType:t})}))}function s(e){var t=navigator.connection||navigator.webkitConnection;a.push(e),t?t.addEventListener("change",o):(window.addEventListener("offline",o),window.addEventListener("online",o))}function u(e){if(e){var t=a.indexOf(e);t>=0&&a.splice(t,1)}if(!a.length){var n=navigator.connection||navigator.webkitConnection;n?n.removeEventListener("change",o):(window.removeEventListener("offline",o),window.removeEventListener("online",o))}}function c(){var e=navigator.connection||navigator.webkitConnection,t="unknown";return e?(t=e.type,"cellular"===t&&e.effectiveType?t=e.effectiveType.replace("slow-",""):["none","wifi"].includes(t)||(t="unknown")):!1===navigator.onLine&&(t="none"),{errMsg:"getNetworkType:ok",networkType:t}}}.call(this,n("0dd1"))},"3da9":function(e,t,n){"use strict";var i=n("fdb1"),r=n.n(i);r.a},"3e8c":function(e,t,n){"use strict";n.r(t);var i=1e5,r={name:"ResizeSensor",props:{initial:{type:[Boolean,String],default:!1}},data:function(){return{size:{width:-1,height:-1}}},watch:{size:{deep:!0,handler:function(e){this.$emit("resize",Object.assign({},e))}}},mounted:function(){!0===this.initial&&this.$nextTick(this.update),this.$el.offsetParent!==this.$el.parentNode&&(this.$el.parentNode.style.position="relative"),"AnimationEvent"in window||this.reset()},activated:function(){this.reset()},methods:{reset:function(){var e=this.$el.firstChild;e.scrollLeft=i,e.scrollTop=i;var t=this.$el.lastChild;t.scrollLeft=i,t.scrollTop=i},update:function(){this.size.width=this.$el.offsetWidth,this.size.height=this.$el.offsetHeight,this.reset()}}},a=r,o=(n("64d0"),n("0c7c")),s=Object(o["a"])(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-resize-sensor",{on:{"~animationstart":function(t){return e.update(t)}}},[n("div",{on:{scroll:e.update}},[n("div")]),n("div",{on:{scroll:e.update}},[n("div")])])}),[],!1,null,null,null);t["default"]=s.exports},"3f15":function(e,t,n){"use strict";n.r(t),n.d(t,"getVideoInfo",(function(){return r}));var i=n("cb0f"),r={src:{type:String,required:!0,validator:function(e,t){t.src=Object(i["a"])(e)}}}},"3f7e":function(e,t,n){"use strict";var i=n("a036"),r=n.n(i);r.a},"42f9":function(e,t,n){},"439a":function(e,t,n){"use strict";n.r(t),n.d(t,"downloadFile",(function(){return i}));var i={url:{type:String,required:!0},header:{type:Object,validator:function(e,t){t.header=e||{}}}}},"442e":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var i=n("5129"),r=n.n(i),a=n("85b6"),o=n("f2b3");function s(t){t.config.errorHandler=function(n,i,r){var s=Object(o["u"])(n);t.util.warn("Error in ".concat(r,': "').concat("Error"===s?n.toString():n,'"'),i);var u="function"===typeof getApp&&getApp();u&&Object(a["c"])(u.$options,"onError")?u.__call_hook("onError",n):e.error(n)};var n=t.config.isReservedTag;t.config.isReservedTag=function(e){return-1!==r.a.indexOf(e)||n(e)},t.config.ignoredElements=r.a;var i=t.config.getTagNamespace,s=["switch","image","text","view"];t.config.getTagNamespace=function(e){return!~s.indexOf(e)&&i(e)}}}).call(this,n("3ad9")["default"])},"44de":function(e,t,n){"use strict";n.r(t),n.d(t,"vibrateLong",(function(){return r})),n.d(t,"vibrateShort",(function(){return a}));var i=!!window.navigator.vibrate;function r(){return i&&window.navigator.vibrate(400)?{errMsg:"vibrateLong:ok"}:{errMsg:"vibrateLong:fail"}}function a(){return i&&window.navigator.vibrate(15)?{errMsg:"vibrateShort:ok"}:{errMsg:"vibrateShort:fail"}}},"453f":function(e,t,n){"use strict";(function(e){var i=n("636c"),r=n("cb0f");t["a"]={props:{id:{type:[Number,String],default:""},latitude:{type:[Number,String],require:!0},longitude:{type:[Number,String],require:!0},title:{type:String,default:""},iconPath:{type:String,require:!0},rotate:{type:[Number,String],default:0},alpha:{type:[Number,String],default:1},width:{type:[Number,String],default:""},height:{type:[Number,String],default:""},callout:{type:Object,default:null},label:{type:Object,default:null},anchor:{type:Object,default:null},clusterId:{type:[Number,String],default:""},customCallout:{type:Object,default:null},ariaLabel:{type:String,default:""}},data:function(){return{idString:String(isNaN(Number(this.id))?"":this.id)}},mounted:function(){var e=this,t=this.$parent;t.mapReady((function(){e._maps=t._maps,e._map=t._map,e.addMarker(e.$props),Object.keys(e.$props).forEach((function(t){e.$watch(t,(function(){e.updateMarker(e.$props)}))}))}))},beforeDestroy:function(){this.removeMarker()},methods:{addMarker:function(e){var t=this,n=this._maps,r=this._map,a=this._marker=new n.Marker({map:r,flat:!0,autoRotation:!1});if(this.$parent._markers[this.idString]=a,this.updateMarker(e),i["c"]){a.dom.addEventListener("click",(function(e){t.handleAMapMarkerClick(e,a)}));var o={};a.dom.addEventListener("touchstart",(function(e){o=e.touches[0]})),a.dom.addEventListener("touchend",(function(e){var n=e.changedTouches[0];o.clientX===n.clientX&&o.clientY===n.clientY&&t.handleAMapMarkerClick(e,a)}))}else n.event.addListener(a,"click",(function(e){var n=a.callout;if(n&&!n.alwaysVisible&&(n.set("visible",!n.visible),n.visible)){var i=n.div,r=i.parentNode;r.removeChild(i),r.appendChild(i)}var o=e.event||e.domEvent;if(t.idString){var s=t.getMarkerLatitudeLongitude(e),u=s.latitude,c=s.longitude;t.$parent.$trigger("markertap",o,{markerId:Number(t.idString),latitude:u,longitude:c})}o.stopPropagation()}))},updateMarker:function(t){var n=this,a=this._map,o=this._maps,s=this._marker,u=t.title,c=i["c"]?new o.LngLat(t.longitude,t.latitude):new o.LatLng(t.latitude,t.longitude),l=new Image;l.onload=function(){var e,r,d,f=t.anchor||{},h="number"===typeof f.x?f.x:.5,p="number"===typeof f.y?f.y:1;t.iconPath&&(t.width||t.height)?(r=t.width||l.width/l.height*t.height,d=t.height||l.height/l.width*t.width):(r=l.width/2,d=l.height/2);var g=d-(d-p*d);e="MarkerImage"in o?new o.MarkerImage(l.src,null,null,new o.Point(h*r,p*d),new o.Size(r,d)):"Icon"in o?new o.Icon({image:l.src,size:new o.Size(r,d),imageSize:new o.Size(r,d),imageOffset:new o.Pixel(h*r,p*d)}):{url:l.src,anchor:new o.Point(h,p),size:new o.Size(r,d)},s.setPosition(c),s.setIcon(e),"setRotation"in s&&s.setRotation(t.rotate||0);var v,m=t.label||{};if("label"in s&&(s.label.setMap(null),delete s.label),m.content){var y={borderColor:m.borderColor,borderWidth:(Number(m.borderWidth)||0)+"px",padding:(Number(m.padding)||0)+"px",borderRadius:(Number(m.borderRadius)||0)+"px",backgroundColor:m.bgColor,color:m.color,fontSize:(m.fontSize||14)+"px",lineHeight:(m.fontSize||14)+"px",marginLeft:(Number(m.anchorX||m.x)||0)+"px",marginTop:(Number(m.anchorY||m.y)||0)+"px"};if("Label"in o)v=new o.Label({position:c,map:a,clickable:!1,content:m.content,style:y}),s.label=v;else if("setLabel"in s)if(i["c"]){var b='<div style="\n margin-left:'.concat(y.marginLeft,";\n margin-top:").concat(y.marginTop,";\n padding:").concat(y.padding,";\n background-color:").concat(y.backgroundColor,";\n border-radius:").concat(y.borderRadius,";\n line-height:").concat(y.lineHeight,";\n color:").concat(y.color,";\n font-size:").concat(y.fontSize,';\n\n ">\n ').concat(m.content,"\n <div>");s.setLabel({content:b,direction:"bottom-right"})}else{var _=n.updateMarkerLabelStyle(n.idString,y);s.setLabel({text:m.content,color:y.color,fontSize:y.fontSize,className:_})}}var w,T=t.callout||{},S=s.callout;if(T.content||u){var k="0px 0px 3px 1px rgba(0,0,0,0.5)";if(w=T.content?{position:c,map:a,top:g,offsetY:-t.height/2,content:T.content,color:T.color,fontSize:T.fontSize,borderRadius:T.borderRadius,bgColor:T.bgColor,padding:T.padding,boxShadow:T.boxShadow||k,display:T.display}:{position:c,map:a,top:g,offsetY:-t.height/2,content:u,boxShadow:k},S)S.setOption(w);else if(i["c"]){S=s.callout=new o.Callout(w,(function(e,t){t.idString&&t.$parent.$trigger("callouttap",e,{markerId:Number(t.idString)})}),n)}else S=s.callout=new o.Callout(w),S.div.onclick=function(e){n.idString&&n.$parent.$trigger("callouttap",e,{markerId:Number(n.idString)}),e.stopPropagation(),e.preventDefault()},Object(i["e"])().type===i["d"].GOOGLE&&(S.div.onpointerdown=function(e){e.stopPropagation()},S.div.ontouchstart=function(e){e.stopPropagation()})}else S&&(n.removeMarkerCallout(s.callout),delete s.callout)},t.iconPath?l.src=Object(r["a"])(t.iconPath):e.error("Marker.iconPath is required.")},handleAMapMarkerClick:function(e,t){var n=t.callout;n&&!n.alwaysVisible&&(n.visible=!n.visible,n.visible?t.callout.createAMapText():t.callout.removeAMapText()),this.idString&&this.$parent.$trigger("markertap",e,{markerId:Number(this.idString),latitude:t._position.lat,longitude:t._position.lng}),e.stopPropagation()},updateMarkerLabelStyle:function(e,t){var n="uni-map-marker-label-"+e,i=document.getElementById(n);i||(i=document.createElement("style"),i.id=n,document.head.appendChild(i),this.$once("hook:destroyed",(function(){i.remove()})));var r=Object.assign({},t,{position:"absolute",top:"70px",borderStyle:"solid"}),a=document.createElement("div");return Object.keys(r).forEach((function(e){a.style[e]=r[e]||""})),i.innerText=".".concat(n,"{").concat(a.getAttribute("style"),"}"),n},getMarkerLatitudeLongitude:function(e){var t,n,r=Object(i["e"])();return i["c"]?(t=e.lnglat.lat,n=e.lnglat.lng):r.type===i["d"].QQ?(t=e.latLng.lat,n=e.latLng.lng):r.type===i["d"].GOOGLE&&(t=e.latLng.lat(),n=e.latLng.lng()),{latitude:t,longitude:n}},removeMarker:function(){var e=this._marker;e&&(e.label&&"setMap"in e.label&&e.label.setMap(null),e.callout&&this.removeMarkerCallout(e.callout),e.setMap(null)),delete this.$parent._markers[this.idString],this._marker=null},removeMarkerCallout:function(e){i["c"]?e.removeAMapText():e.setMap(null)}},render:function(){return null}}}).call(this,n("3ad9")["default"])},"454d":function(e,t,n){"use strict";n.r(t),n.d(t,"removeTabBarBadge",(function(){return a})),n.d(t,"showTabBarRedDot",(function(){return o})),n.d(t,"hideTabBarRedDot",(function(){return s})),n.d(t,"onTabBarMidButtonTap",(function(){return c}));var i=n("db70"),r=n("a118");function a(e){var t=e.index;return Object(i["c"])("setTabBarBadge",{index:t,type:"none"})}function o(e){var t=e.index;return Object(i["c"])("setTabBarBadge",{index:t,type:"redDot"})}var s=a,u=[];function c(e){u.push(e)}Object(i["d"])("onTabBarMidButtonTap",(function(e){u.forEach((function(t){Object(r["a"])(t,e)}))}))},"45d2":function(e,t,n){"use strict";n.r(t),n.d(t,"upx2px",(function(){return s}));var i=!1,r=0,a=0;function o(e,t){return e=Number(e),isNaN(e)?t:e}function s(e,t){if(0===r&&function(){var e=uni.getSystemInfoSync(),t=e.platform,n=e.pixelRatio,o=e.windowWidth;r=o,a=n,i="ios"===t}(),e=Number(e),0===e)return 0;var n=__uniConfig.globalStyle||__uniConfig.window||{},s=o(n.rpxCalcMaxDeviceWidth,960),u=o(n.rpxCalcBaseDeviceWidth,375),c=o(n.rpxCalcIncludeWidth,750),l=t||r;l=e===c||l<=s?l:u;var d=e/750*l;return d<0&&(d=-d),d=Math.floor(d+1e-4),0===d&&(d=1!==a&&i?.5:1),e<0?-d:d}},"45db":function(e,t,n){"use strict";n.r(t),function(e){var i;function r(e){i=e}function a(){i&&e.emit(i+".stopPullDownRefresh",{},i);var t=getCurrentPages();return t.length&&(i=t[t.length-1].$page.id,e.emit(i+".startPullDownRefresh",{},i)),{}}function o(){if(i)e.emit(i+".stopPullDownRefresh",{},i),i=null;else{var t=getCurrentPages();t.length&&(i=t[t.length-1].$page.id,e.emit(i+".stopPullDownRefresh",{},i))}return{}}n.d(t,"setPullDownRefreshPageId",(function(){return r})),n.d(t,"startPullDownRefresh",(function(){return a})),n.d(t,"stopPullDownRefresh",(function(){return o}))}.call(this,n("0dd1"))},4814:function(e,t,n){},"4a59":function(e,t,n){"use strict";(function(e){function i(t,n,i){e.UniServiceJSBridge.subscribeHandler(t,n,i)}n.d(t,"a",(function(){return i}))}).call(this,n("c8ba"))},"4c39":function(e,t,n){"use strict";var i=n("cb0f"),r={props:{id:{type:[Number,String],default:""},position:{type:Object,required:!0},iconPath:{type:String,required:!0},clickable:{type:Boolean,default:!1}},computed:{imgPath:function(){return Object(i["a"])(this.iconPath)},positionStyle:function(){var e="top:".concat(this.position.top||0,"px;left:").concat(this.position.left||0,"px;");return this.position.width&&(e+="width:".concat(this.position.width,"px;")),this.position.height&&(e+="height:".concat(this.position.height,"px;")),e}},methods:{handleClick:function(e){this.clickable&&this.$parent.$trigger("controltap",e,{controlId:this.id}),e.stopPropagation()}}},a=r,o=(n("a8b8"),n("0c7c")),s=Object(o["a"])(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uni-map-control"},[n("img",{staticClass:"uni-map-control-icon",style:e.positionStyle,attrs:{src:e.imgPath},on:{click:e.handleClick}})])}),[],!1,null,null,null);t["a"]=s.exports},"4ca9":function(e,t,n){"use strict";n.r(t),function(e){var i=n("6389"),r=n.n(i),a=n("85b6"),o=n("abbf"),s=n("0784"),u=n("aa92"),c=n("02c9"),l=n("23e5"),d=n("f2b3");function f(e){var t=0;return e.forEach((function(e){e.meta.id&&t++})),t}function h(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":decodeURI(e.slice(t+1))}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=decodeURI(window.location.pathname),n=window.location.search,i=window.location.hash;return"/"===e[e.length-1]&&t===e.substring(0,e.length-1)&&(t=e,window.history.replaceState({},"",e+n+i)),e&&0===t.indexOf(e)&&(t=t.slice(e.length)),(t||"/")+n+i}t["default"]={install:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.routes;t.config.devtools&&"undefined"!==typeof window&&-1!==window.navigator.userAgent.toLowerCase().indexOf("hbuilderx")&&(t.config.devtools=!1),Object(c["a"])(t),Object(u["a"])(t),Object(d["v"])(t),"undefined"!==typeof __UNI_ROUTER_BASE__&&(__uniConfig.router.base=__UNI_ROUTER_BASE__);var g=f(i),v=new r.a({id:g,mode:__uniConfig.router.mode,base:__uniConfig.router.base,routes:i,scrollBehavior:function(e,t,n){if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){var i=Object(l["b"])(e.params.__id__);if(i)return i}return{x:0,y:0}}}),m=[],y=v.match("history"===__uniConfig.router.mode?p(__uniConfig.router.base):h());if(y.meta.name&&(y.meta.id?m.push(y.meta.name+"-"+y.meta.id):m.push(y.meta.name+"-"+(g+1))),y.meta&&y.meta.name&&(document.body.className="uni-body "+y.meta.name,y.meta.isNVue)){var b="nvue-dir-"+__uniConfig.nvue["flex-direction"];document.body.setAttribute("nvue",""),document.body.setAttribute(b,"")}t.mixin({beforeCreate:function(){var n=this.$options;if("app"===n.mpType){n.data=function(){return{keepAliveInclude:m}};var r=Object(o["a"])(t,i,y);Object.keys(r).forEach((function(e){n[e]=n[e]?[].concat(r[e],n[e]):[r[e]]})),n.router=v,Array.isArray(n.onError)&&0!==n.onError.length||(n.onError=[function(t){e.error(t)}])}else if(Object(a["d"])(this)){var u=Object(s["a"])();Object.keys(u).forEach((function(e){n.mpOptions?n[e]=n[e]?[].concat(n[e],u[e]):[u[e]]:n[e]=n[e]?[].concat(u[e],n[e]):[u[e]]}))}else this.$parent&&this.$parent.__page__&&(this.__page__=this.$parent.__page__)}}),Object.defineProperty(t.prototype,"$page",{get:function(){return this.__page__}}),t.prototype.createSelectorQuery=function(){return uni.createSelectorQuery().in(this)},t.prototype.createIntersectionObserver=function(e){return uni.createIntersectionObserver(this,e)},t.prototype.createMediaQueryObserver=function(e){return uni.createMediaQueryObserver(this,e)},t.use(r.a)}}}.call(this,n("3ad9")["default"])},"4ccd":function(e,t,n){"use strict";n.r(t),t["default"]={data:function(){return{popupWidth:0,popupHeight:0}},computed:{isDesktop:function(){return this.popupWidth>=500&&this.popupHeight>=500},popupStyle:function(){var e={},t=e.content={},n=e.triangle={},i=this.popover;function r(e){return Number(e)||0}if(this.isDesktop&&i){Object.assign(n,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});var a=r(i.left),o=r(i.width),s=r(i.top),u=r(i.height),c=a+o/2;t.transform="none !important";var l=Math.max(0,c-150);t.left="".concat(l,"px");var d=Math.max(12,c-l);d=Math.min(288,d),n.left="".concat(d,"px");var f=this.popupHeight/2;s+u-f>f-s?(t.top="auto",t.bottom="".concat(this.popupHeight-s+6,"px"),n.bottom="-6px",n["border-width"]="6px 6px 0 6px",n["border-color"]="#fcfcfd transparent transparent transparent"):(t.top="".concat(s+u+6,"px"),n.top="-6px",n["border-width"]="0 6px 6px 6px",n["border-color"]="transparent transparent #fcfcfd transparent")}return e}},mounted:function(){var e=this,t=function(){var t=uni.getSystemInfoSync(),n=t.windowWidth,i=t.windowHeight,r=t.windowTop;e.popupWidth=n,e.popupHeight=i+r};window.addEventListener("resize",t),t(),this.$once("hook:beforeDestroy",(function(){window.removeEventListener("resize",t)}))}}},"4da7":function(e,t,n){"use strict";n.r(t);var i=n("5092"),r=i["a"],a=(n("c8ed"),n("0c7c")),o=Object(a["a"])(r,void 0,void 0,!1,null,null,null);t["default"]=o.exports},"4e7c":function(e,t,n){"use strict";n.r(t),n.d(t,"getProvider",(function(){return r}));var i={OAUTH:"OAUTH",SHARE:"SHARE",PAYMENT:"PAYMENT",PUSH:"PUSH"},r={service:{type:String,required:!0,validator:function(e,t){if(e=(e||"").toUpperCase(),e&&Object.values(i).indexOf(e)<0)return"service error"}}}},"4f1c":function(e,t,n){"use strict";n.r(t);var i=n("8af1"),r={name:"Switch",mixins:[i["a"],i["f"]],props:{name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:""}},data:function(){return{switchChecked:this.checked}},computed:{checkedColor:function(){return this.switchChecked&&this.color?{backgroundColor:this.color,borderColor:this.color}:{}}},watch:{checked:function(e){this.switchChecked=e}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},listeners:{"label-click":"_onClick","@label-click":"_onClick"},methods:{_onClick:function(e){this.disabled||(this.switchChecked=!this.switchChecked,this.$trigger("change",e,{value:this.switchChecked}))},_resetFormData:function(){this.switchChecked=!1},_getFormData:function(){var e={};return""!==this.name&&(e.value=this.switchChecked,e.key=this.name),e}}},a=r,o=(n("a5ec"),n("0c7c")),s=Object(o["a"])(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-switch",e._g({attrs:{disabled:e.disabled},on:{click:e._onClick}},e.$listeners),[n("div",{staticClass:"uni-switch-wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:"switch"===e.type,expression:"type === 'switch'"}],staticClass:"uni-switch-input",class:[e.switchChecked?"uni-switch-input-checked":""],style:e.checkedColor}),n("div",{directives:[{name:"show",rawName:"v-show",value:"checkbox"===e.type,expression:"type === 'checkbox'"}],staticClass:"uni-checkbox-input",class:[e.switchChecked?"uni-checkbox-input-checked":""],style:{color:e.color}})])])}),[],!1,null,null,null);t["default"]=s.exports},"4f43":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"downloadFile",(function(){return s}));var i=n("e2e2");function r(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),Object.defineProperty(e,i.key,i)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),a(this,"_xhr",void 0),a(this,"_callbacks",[]),this._xhr=t}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"onProgressUpdate",value:function(e){"function"===typeof e&&this._callbacks.push(e)}},{key:"offProgressUpdate",value:function(e){var t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}},{key:"abort",value:function(){this._xhr&&(this._xhr.abort(),delete this._xhr)}}]),e}();function s(t,n){var r,a=t.url,s=t.header,u=t.timeout,c=void 0===u?__uniConfig.networkTimeout&&__uniConfig.networkTimeout.request||6e4:u,l=e,d=l.invokeCallbackHandler,f=new XMLHttpRequest,h=new o(f);return f.open("GET",a,!0),Object.keys(s).forEach((function(e){f.setRequestHeader(e,s[e])})),f.responseType="blob",f.onload=function(){clearTimeout(r);var e,t=f.status,o=this.response,s=f.getResponseHeader("content-disposition");if(s){var u=s.match(/filename="?(\S+)"?\b/);u&&(e=u[1])}o.name=e||Object(i["c"])(a),d(n,{errMsg:"downloadFile:ok",statusCode:t,tempFilePath:Object(i["b"])(o)})},f.onabort=function(){clearTimeout(r),d(n,{errMsg:"downloadFile:fail abort"})},f.onerror=function(){clearTimeout(r),d(n,{errMsg:"downloadFile:fail"})},f.onprogress=function(e){h._callbacks.forEach((function(t){var n=e.loaded,i=e.total,r=Math.round(n/i*100);t({progress:r,totalBytesWritten:n,totalBytesExpectedToWrite:i})}))},f.send(),r=setTimeout((function(){f.onprogress=f.onload=f.onabort=f.onerror=null,h.abort(),d(n,{errMsg:"downloadFile:fail timeout"})}),c),h}}.call(this,n("0dd1"))},"4f53":function(e,t,n){"use strict";n.r(t),n.d(t,"saveImageToPhotosAlbum",(function(){return r}));var i=n("cb0f"),r={filePath:{type:String,required:!0,validator:function(e,t){t.filePath=Object(i["a"])(e)}}}},"4fef":function(e,t,n){"use strict";var i=n("23ab"),r=n.n(i);r.a},"501c":function(e,t,n){"use strict";n.r(t),n.d(t,"on",(function(){return p})),n.d(t,"off",(function(){return g})),n.d(t,"once",(function(){return v})),n.d(t,"emit",(function(){return m})),n.d(t,"subscribe",(function(){return y})),n.d(t,"unsubscribe",(function(){return b})),n.d(t,"subscribeHandler",(function(){return _})),n.d(t,"publishHandler",(function(){return f["a"]}));var i=n("8bbf"),r=n.n(i);var a=n("6bdf"),o=n("5dc1"),s=n("1c73"),u={setPageMeta:function(e){var t=e.pageStyle,n=e.rootFontSize,i=document.querySelector("uni-page-body")||document.body;i.setAttribute("style",t),n&&document.documentElement.style.fontSize!==n&&(document.documentElement.style.fontSize=n)},requestComponentInfo:a["a"],requestComponentObserver:o["b"],destroyComponentObserver:o["a"],requestMediaQueryObserver:s["b"],destroyMediaQueryObserver:s["a"]},c=n("33ed"),l=n("7107"),d=n("764a");var f=n("4a59"),h=new r.a,p=h.$on.bind(h),g=h.$off.bind(h),v=h.$once.bind(h),m=h.$emit.bind(h);function y(e,t){return p("service."+e,t)}function b(e,t){return g("service."+e,t)}function _(e,t,n){m("service."+e,t,n)}(function(e){Object.keys(u).forEach((function(t){e(t,u[t])})),e("pageScrollTo",c["c"]),e("loadFontFace",l["a"]),Object(d["a"])(e)})(y)},5092:function(e,t,n){"use strict";(function(e){var n={ensp:" ",emsp:" ",nbsp:" "};t["a"]={name:"Text",props:{selectable:{type:[Boolean,String],default:!1},space:{type:String,default:""},decode:{type:[Boolean,String],default:!1}},methods:{_decodeHtml:function(e){return this.space&&n[this.space]&&(e=e.replace(/ /g,n[this.space])),this.decode&&(e=e.replace(/ /g,n.nbsp).replace(/ /g,n.ensp).replace(/ /g,n.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'")),e}},render:function(t){var n=this,i=[];return this.$slots.default&&this.$slots.default.forEach((function(r){if(r.text){var a=r.text.replace(/\\n/g,"\n"),o=a.split("\n");o.forEach((function(e,r){i.push(n._decodeHtml(e)),r!==o.length-1&&i.push(t("br"))}))}else r.componentOptions&&"v-uni-text"!==r.componentOptions.tag&&e.warn("Do not nest other components in the text component, as there may be display differences on different platforms."),i.push(r)})),t("uni-text",{on:this.$listeners,attrs:{selectable:!!this.selectable}},[t("span",{},i)])}}}).call(this,n("3ad9")["default"])},5129:function(e,t){e.exports=["uni-app","uni-layout","uni-content","uni-main","uni-top-window","uni-left-window","uni-right-window","uni-tabbar","uni-page","uni-page-head","uni-page-wrapper","uni-page-body","uni-page-refresh","uni-actionsheet","uni-modal","uni-toast","uni-resize-sensor","uni-shadow-root","uni-ad","uni-audio","uni-button","uni-camera","uni-canvas","uni-checkbox","uni-checkbox-group","uni-cover-image","uni-cover-view","uni-editor","uni-form","uni-functional-page-navigator","uni-icon","uni-image","uni-input","uni-label","uni-live-player","uni-live-pusher","uni-map","uni-movable-area","uni-movable-view","uni-navigator","uni-official-account","uni-open-data","uni-picker","uni-picker-view","uni-picker-view-column","uni-progress","uni-radio","uni-radio-group","uni-rich-text","uni-scroll-view","uni-slider","uni-swiper","uni-swiper-item","uni-switch","uni-text","uni-textarea","uni-video","uni-view","uni-web-view"]},5243:function(e,t,n){"use strict";n.r(t),n.d(t,"compressVideo",(function(){return r}));var i=n("cb0f"),r={src:{type:String,required:!0,validator:function(e,t){t.src=Object(i["a"])(e)}},quality:{type:String},bitrate:{type:Number},fps:{type:Number},resolution:{type:Number}}},5363:function(e,t,n){"use strict";function i(e){this._drag=e,this._dragLog=Math.log(e),this._x=0,this._v=0,this._startTime=0}n.d(t,"a",(function(){return i})),i.prototype.set=function(e,t){this._x=e,this._v=t,this._startTime=(new Date).getTime()},i.prototype.setVelocityByEnd=function(e){this._v=(e-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)},i.prototype.x=function(e){var t;return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e),this._dt=e,this._x+this._v*t/this._dragLog-this._v/this._dragLog},i.prototype.dx=function(e){var t;return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e),this._dt=e,this._v*t},i.prototype.done=function(){return Math.abs(this.dx())<3},i.prototype.reconfigure=function(e){var t=this.x(),n=this.dx();this._drag=e,this._dragLog=Math.log(e),this.set(t,n)},i.prototype.configuration=function(){var e=this;return[{label:"Friction",read:function(){return e._drag},write:function(t){e.reconfigure(t)},min:.001,max:.1,step:.001}]}},5408:function(e,t,n){var i={"./audio/index.vue":"6150","./button/index.vue":"d3bd","./canvas/index.vue":"bacd","./checkbox-group/index.vue":"25ce","./checkbox/index.vue":"7bb3","./editor/index.vue":"27c2","./form/index.vue":"b34d","./icon/index.vue":"9a8b","./image/index.vue":"1082","./input/index.vue":"250d","./label/index.vue":"70f4","./movable-area/index.vue":"c61c","./movable-view/index.vue":"8842","./navigator/index.vue":"17fd","./picker-view-column/index.vue":"1955","./picker-view/index.vue":"27ab","./progress/index.vue":"9b1f","./radio-group/index.vue":"d5ec","./radio/index.vue":"6491","./resize-sensor/index.vue":"3e8c","./rich-text/index.vue":"b705","./scroll-view/index.vue":"f1ef","./slider/index.vue":"9f96","./swiper-item/index.vue":"9213","./swiper/index.vue":"5513","./switch/index.vue":"4f1c","./text/index.vue":"4da7","./textarea/index.vue":"5768"};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=a,e.exports=r,r.id="5408"},"54f4":function(e,t,n){"use strict";function i(){var e=document.activeElement;!e||"TEXTAREA"!==e.tagName&&"INPUT"!==e.tagName||e.blur()}n.r(t),n.d(t,"hideKeyboard",(function(){return i}))},5513:function(e,t,n){"use strict";n.r(t);var i=n("ba15"),r=n("f2b3");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={name:"Swiper",mixins:[i["a"]],props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1},navigation:{type:[Boolean,String],default:!1},navigationColor:{type:String,default:"#fff"},navigationActiveColor:{type:String,default:"rgba(53, 53, 53, 0.6)"}},data:function(){return{currentSync:Math.round(this.current)||0,currentItemIdSync:this.currentItemId||"",userTracking:!1,currentChangeSource:"",items:[],isNavigationAuto:!1,hideNavigation:!1,prevDisabled:!1,nextDisabled:!1}},computed:{intervalNumber:function(){var e=Number(this.interval);return isNaN(e)?5e3:e},durationNumber:function(){var e=Number(this.duration);return isNaN(e)?500:e},displayMultipleItemsNumber:function(){var e=Math.round(this.displayMultipleItems);return isNaN(e)?1:e},slidesStyle:function(){var e={};return(this.nextMargin||this.previousMargin)&&(e=this.vertical?{left:0,right:0,top:this._upx2px(this.previousMargin),bottom:this._upx2px(this.nextMargin)}:{top:0,bottom:0,left:this._upx2px(this.previousMargin),right:this._upx2px(this.nextMargin)}),e},slideFrameStyle:function(){var e=Math.abs(100/this.displayMultipleItemsNumber)+"%";return{width:this.vertical?"100%":e,height:this.vertical?e:"100%"}},swiperEnabled:function(){return this.items.length>this.displayMultipleItemsNumber},circularEnabled:function(){return this.circular&&this.swiperEnabled}},watch:{vertical:function(){this._resetLayout()},circular:function(){this._resetLayout()},intervalNumber:function(e){this._timer&&(this._cancelSchedule(),this._scheduleAutoplay())},current:function(e){this._currentCheck()},currentSync:function(e,t){this._currentChanged(e,t),this.$emit("update:current",e),this._setNavigationState()},currentItemId:function(e){this._currentCheck()},currentItemIdSync:function(e){this.$emit("update:currentItemId",e)},displayMultipleItemsNumber:function(){this._resetLayout()},navigation:{immediate:!0,handler:function(e){this.isNavigationAuto="auto"===e,this.hideNavigation=!0!==e||this.isNavigationAuto,this._navigationSwiperAddMouseEvent()}},items:function(){this._setNavigationState()},swiperEnabled:function(e){e||(this.prevDisabled=!0,this.nextDisabled=!0,this.isNavigationAuto&&(this.hideNavigation=!0))}},created:function(){this._invalid=!0,this._viewportPosition=0,this._viewportMoveRatio=1,this._animating=null,this._requestedAnimation=!1,this._userDirectionChecked=!1,this._contentTrackViewport=0,this._contentTrackSpeed=0,this._contentTrackT=0},mounted:function(){var e=this;this._currentCheck(),this.touchtrack(this.$refs.slidesWrapper,"_handleContentTrack",!0),this._resetLayout(),this.$watch((function(){return e.autoplay&&!e.userTracking}),this._inintAutoplay),this._inintAutoplay(this.autoplay&&!this.userTracking),this.$watch("items.length",this._resetLayout),this._navigationSwiperAddMouseEvent()},beforeDestroy:function(){this._cancelSchedule(),cancelAnimationFrame(this._animationFrame)},methods:{_inintAutoplay:function(e){e?this._scheduleAutoplay():this._cancelSchedule()},_currentCheck:function(){var e=-1;if(this.currentItemId)for(var t=0,n=this.items;t<n.length;t++){var i=n[t].componentInstance;if(i&&i.itemId===this.currentItemId){e=t;break}}e<0&&(e=Math.round(this.current)||0),e=e<0?0:e,this.currentSync!==e&&(this.currentChangeSource="",this.currentSync=e)},_itemReady:function(e,t){e.componentInstance&&e.componentInstance._isMounted?t():(e._callbacks=e._callbacks||[],e._callbacks.push(t))},_currentChanged:function(e,t){var n=this,i=this.currentChangeSource;if(this.currentChangeSource="",!i){var r=this.items.length;this._animateViewport(e,"",this.circularEnabled&&t+(r-e)%r>r/2?1:0)}var a=this.items[e];a&&this._itemReady(a,(function(){var e=n.currentItemIdSync=a.componentInstance.itemId||"";n.$trigger("change",{},{current:n.currentSync,currentItemId:e,source:i})}))},_scheduleAutoplay:function(){var e=this;this._cancelSchedule(),!this._isMounted||this._invalid||this.items.length<=this.displayMultipleItemsNumber||(this._timer=setTimeout((function t(){e._timer=null,e.currentChangeSource="autoplay",e.circularEnabled?e.currentSync=e._normalizeCurrentValue(e.currentSync+1):e.currentSync=e.currentSync+e.displayMultipleItemsNumber<e.items.length?e.currentSync+1:0,e._animateViewport(e.currentSync,"autoplay",e.circularEnabled?1:0),e._timer=setTimeout(t,e.intervalNumber)}),this.intervalNumber))},_cancelSchedule:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_normalizeCurrentValue:function(e){var t=this.items.length;if(!t)return-1;var n=(Math.round(e)%t+t)%t;if(this.circularEnabled){if(t<=this.displayMultipleItemsNumber)return 0}else if(n>t-this.displayMultipleItemsNumber)return t-this.displayMultipleItemsNumber;return n},_upx2px:function(e){return/\d+[ur]px$/i.test(e)&&e.replace(/\d+[ur]px$/i,(function(e){return"".concat(uni.upx2px(parseFloat(e)),"px")})),e||""},_resetLayout:function(){if(this._isMounted){this._cancelSchedule(),this._endViewportAnimation();for(var e=this.items,t=0;t<e.length;t++)this._updateItemPos(t,t);if(this._viewportMoveRatio=1,1===this.displayMultipleItemsNumber&&e.length){var n=e[0].componentInstance.$el.getBoundingClientRect(),i=this.$refs.slideFrame.getBoundingClientRect();this._viewportMoveRatio=n.width/i.width,this._viewportMoveRatio>0&&this._viewportMoveRatio<1||(this._viewportMoveRatio=1)}var r=this._viewportPosition;this._viewportPosition=-2;var a=this.currentSync;a>=0?(this._invalid=!1,this.userTracking?(this._updateViewport(r+a-this._contentTrackViewport),this._contentTrackViewport=a):(this._updateViewport(a),this.autoplay&&this._scheduleAutoplay())):(this._invalid=!0,this._updateViewport(-this.displayMultipleItemsNumber-1))}},_checkCircularLayout:function(e){if(!this._invalid)for(var t=this.items,n=t.length,i=e+this.displayMultipleItemsNumber,r=0;r<n;r++){var a=t[r],o=a._position,s=Math.floor(e/n)*n+r,u=s+n,c=s-n,l=Math.max(e-(s+1),s-i,0),d=Math.max(e-(u+1),u-i,0),f=Math.max(e-(c+1),c-i,0),h=Math.min(l,d,f),p=[s,u,c][[l,d,f].indexOf(h)];o!==p&&this._updateItemPos(r,p)}},_updateItemPos:function(e,t){var n=this.vertical?"0":100*t+"%",i=this.vertical?100*t+"%":"0",r="translate("+n+", "+i+") translateZ(0)",a=this.items[e];this._itemReady(a,(function(){var e=a.componentInstance.$el;e.style["-webkit-transform"]=r,e.style.transform=r,e._position=t}))},_updateViewport:function(e){Math.floor(2*this._viewportPosition)===Math.floor(2*e)&&Math.ceil(2*this._viewportPosition)===Math.ceil(2*e)||this.circularEnabled&&this._checkCircularLayout(e);var t=this.vertical?"0":100*-e*this._viewportMoveRatio+"%",n=this.vertical?100*-e*this._viewportMoveRatio+"%":"0",i="translate("+t+", "+n+") translateZ(0)",r=this.$refs.slideFrame;if(r&&(r.style["-webkit-transform"]=i,r.style.transform=i),this._viewportPosition=e,!this._transitionStart){if(e%1===0)return;this._transitionStart=e}e-=Math.floor(this._transitionStart),e<=-(this.items.length-1)?e+=this.items.length:e>=this.items.length&&(e-=this.items.length),e=this._transitionStart%1>.5||this._transitionStart<0?e-1:e,this.$trigger("transition",{},{dx:this.vertical?0:e*r.offsetWidth,dy:this.vertical?e*r.offsetHeight:0})},_animateFrameFuncProto:function(){var e=this;if(this._animating){var t=this._animating,n=t.toPos,i=t.acc,r=t.endTime,a=t.source,o=r-Date.now();if(o<=0){this._updateViewport(n),this._animating=null,this._requestedAnimation=!1,this._transitionStart=null;var s=this.items[this.currentSync];s&&this._itemReady(s,(function(){var t=s.componentInstance.itemId||"";e.$trigger("animationfinish",{},{current:e.currentSync,currentItemId:t,source:a})}))}else{var u=i*o*o/2,c=n+u;this._updateViewport(c),this._animationFrame=requestAnimationFrame(this._animateFrameFuncProto.bind(this))}}else this._requestedAnimation=!1},_animateViewport:function(e,t,n){this._cancelViewportAnimation();var i=this.durationNumber,r=this.items.length,a=this._viewportPosition;if(this.circularEnabled)if(n<0){for(;a<e;)a+=r;for(;a-r>e;)a-=r}else if(n>0){for(;a>e;)a-=r;for(;a+r<e;)a+=r;a+r-e<e-a&&(a+=r)}else{for(;a+r<e;)a+=r;for(;a-r>e;)a-=r;a+r-e<e-a&&(a+=r)}else"click"===t&&(e=e+this.displayMultipleItemsNumber-1<r?e:0);this._animating={toPos:e,acc:2*(a-e)/(i*i),endTime:Date.now()+i,source:t},this._requestedAnimation||(this._requestedAnimation=!0,this._animationFrame=requestAnimationFrame(this._animateFrameFuncProto.bind(this)))},_cancelViewportAnimation:function(){this._animating=null},_endViewportAnimation:function(){this._animating&&(this._updateViewport(this._animating.toPos),this._animating=null)},_handleTrackStart:function(){this._cancelSchedule(),this._contentTrackViewport=this._viewportPosition,this._contentTrackSpeed=0,this._contentTrackT=Date.now(),this._cancelViewportAnimation()},_handleTrackMove:function(e){var t=this,n=this._contentTrackT;this._contentTrackT=Date.now();var i=this.items.length,r=i-this.displayMultipleItemsNumber;function a(e){return.5-.25/(e+.5)}function o(e,n){var i=t._contentTrackViewport+e;t._contentTrackSpeed=.6*t._contentTrackSpeed+.4*n,t.circularEnabled||(i<0||i>r)&&(i<0?i=-a(-i):i>r&&(i=r+a(i-r)),t._contentTrackSpeed=0),t._updateViewport(i)}var s=this._contentTrackT-n||1;this.vertical?o(-e.dy/this.$refs.slideFrame.offsetHeight,-e.ddy/s):o(-e.dx/this.$refs.slideFrame.offsetWidth,-e.ddx/s)},_handleTrackEnd:function(e){this.userTracking=!1;var t=this._contentTrackSpeed/Math.abs(this._contentTrackSpeed),n=0;!e&&Math.abs(this._contentTrackSpeed)>.2&&(n=.5*t);var i=this._normalizeCurrentValue(this._viewportPosition+n);e?this._updateViewport(this._contentTrackViewport):(this.currentChangeSource="touch",this.currentSync=i,this._animateViewport(i,"touch",0!==n?n:0===i&&this.circularEnabled&&this._viewportPosition>=1?1:0))},_handleContentTrack:function(e){if(!this.disableTouch&&this.items.length&&!this._invalid){if("start"===e.detail.state)return this.userTracking=!0,this._userDirectionChecked=!1,this._handleTrackStart();if("end"===e.detail.state)return this._handleTrackEnd(!1);if("cancel"===e.detail.state)return this._handleTrackEnd(!0);if(this.userTracking){if(!this._userDirectionChecked){this._userDirectionChecked=!0;var t=Math.abs(e.detail.dx),n=Math.abs(e.detail.dy);if((t>=n&&this.vertical||t<=n&&!this.vertical)&&(this.userTracking=!1),!this.userTracking)return void(this.autoplay&&this._scheduleAutoplay())}return this._handleTrackMove(e.detail),!1}}},_onSwiperDotClick:function(e){this._animateViewport(this.currentSync=e,this.currentChangeSource="click",this.circularEnabled?1:0)},_navigationClick:function(e,t,n){if(e.stopPropagation(),!n){var i=this.items.length,r=this.currentSync;switch(t){case"prev":r--,r<0&&this.circularEnabled&&(r=i-1);break;case"next":r++,r>=i&&this.circularEnabled&&(r=0);break}this._onSwiperDotClick(r)}},_navigationMouseMove:function(e){var t=this;clearTimeout(this.hideNavigationTimer);var n,i=e.clientX,r=e.clientY,a=this.$refs.slidesWrapper.getBoundingClientRect(),o=a.left,s=a.right,u=a.top,c=a.bottom,l=a.width,d=a.height;n=this.vertical?!(r-u<d/3||c-r<d/3):!(i-o<l/3||s-i<l/3),n?this.hideNavigationTimer=setTimeout((function(){t.hideNavigation=n}),300):this.hideNavigation=n},_navigationMouseOut:function(){this.hideNavigation=!0},_navigationSwiperAddMouseEvent:function(){var e=this.$refs.slidesWrapper;e&&(e.removeEventListener("mousemove",this._navigationMouseMove),e.removeEventListener("mouseleave",this._navigationMouseOut),this.isNavigationAuto&&(e.addEventListener("mousemove",this._navigationMouseMove),e.addEventListener("mouseleave",this._navigationMouseOut)))},_navigationHover:function(e,t){var n=e.currentTarget;n&&(n.style.backgroundColor="over"===t?this.navigationActiveColor:"")},_setNavigationState:function(){var e=this.items.length,t=!this.circularEnabled;this.prevDisabled=0===this.currentSync&&t,this.nextDisabled=this.currentSync===e-1&&t||t&&this.currentSync+this.displayMultipleItemsNumber>=e}},render:function(e){var t=this,n=[],i=[];this.$slots.default&&Object(r["f"])(this.$slots.default,e).forEach((function(e){e.componentOptions&&"v-uni-swiper-item"===e.componentOptions.tag&&i.push(e)}));for(var a=function(i,r){var a=t.currentSync;n.push(e("div",{on:{click:function(){return t._onSwiperDotClick(i)}},class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":i<a+t.displayMultipleItemsNumber&&i>=a||i<a+t.displayMultipleItemsNumber-r},style:{background:i===a?t.indicatorActiveColor:t.indicatorColor}}))},s=0,u=i.length;s<u;s++)a(s,u);this.items=i;var c=[e("div",{ref:"slides",style:this.slidesStyle,class:"uni-swiper-slides"},[e("div",{ref:"slideFrame",class:"uni-swiper-slide-frame",style:this.slideFrameStyle},i)])];if(this.indicatorDots&&c.push(e("div",{ref:"slidesDots",class:["uni-swiper-dots",this.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},n)),this.navigation){var l={"uni-swiper-navigation-hide":this.hideNavigation,"uni-swiper-navigation-vertical":this.vertical},d=e("i",{domProps:{innerHTML:""},class:"uni-btn-icon",style:{color:this.navigationColor,fontSize:"26px"}}),f={mouseover:function(e){return t._navigationHover(e,"over")},mouseout:function(e){return t._navigationHover(e,"out")}};c.push(e("div",{on:o({click:function(e){return t._navigationClick(e,"prev",t.prevDisabled)}},f),class:["uni-swiper-navigation","uni-swiper-navigation-prev",o({"uni-swiper-navigation-disabled":this.prevDisabled},l)]},[d]),e("div",{on:o({click:function(e){return t._navigationClick(e,"next",t.nextDisabled)}},f),class:["uni-swiper-navigation","uni-swiper-navigation-next",o({"uni-swiper-navigation-disabled":this.nextDisabled},l)]},[d]))}return e("uni-swiper",{on:this.$listeners},[e("div",{ref:"slidesWrapper",class:"uni-swiper-wrapper"},c)])}},c=u,l=(n("1c64"),n("0c7c")),d=Object(l["a"])(c,void 0,void 0,!1,null,null,null);t["default"]=d.exports},"55e3":function(e,t,n){},5621:function(e,t,n){"use strict";n.r(t),n.d(t,"setTabBarItem",(function(){return o})),n.d(t,"setTabBarStyle",(function(){return s})),n.d(t,"hideTabBar",(function(){return u})),n.d(t,"showTabBar",(function(){return c})),n.d(t,"hideTabBarRedDot",(function(){return l})),n.d(t,"showTabBarRedDot",(function(){return d})),n.d(t,"removeTabBarBadge",(function(){return f})),n.d(t,"setTabBarBadge",(function(){return h}));var i=n("f2b3"),r=n("cb0f"),a={type:Number,required:!0},o={index:a,text:{type:String},iconPath:{type:String},selectedIconPath:{type:String},pagePath:{type:String}},s={color:{type:String},selectedColor:{type:String},backgroundColor:{type:String},backgroundImage:{type:String,validator:function(e,t){e&&!/^(linear|radial)-gradient\(.+?\);?$/.test(e)&&(t.backgroundImage=Object(r["a"])(e))}},backgroundRepeat:{type:String},borderStyle:{type:String,validator:function(e,t){e&&(t.borderStyle="black"===e?"black":"white")}}},u={animation:{type:Boolean,default:!1}},c={animation:{type:Boolean,default:!1}},l={index:a},d={index:a},f={index:a},h={index:a,text:{type:String,required:!0,validator:function(e,t){Object(i["h"])(e)>=4&&(t.text="...")}}}},5676:function(e,t,n){"use strict";var i=n("303a"),r=n.n(i);r.a},"56e9":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"showModal",(function(){return o})),n.d(t,"showToast",(function(){return s})),n.d(t,"hideToast",(function(){return u})),n.d(t,"showLoading",(function(){return c})),n.d(t,"hideLoading",(function(){return l})),n.d(t,"showActionSheet",(function(){return d}));var i=e,r=i.emit,a=i.invokeCallbackHandler;function o(e,t){r("onShowModal",e,(function(e){a(t,e)}))}function s(e){return r("onShowToast",e),{}}function u(){return r("onHideToast"),{}}function c(e){return r("onShowLoading",e),{}}function l(){return r("onHideLoading"),{}}function d(e,t){r("onShowActionSheet",e,(function(e){a(t,-1===e?{errMsg:"showActionSheet:fail cancel"}:{tapIndex:e})}))}}.call(this,n("0dd1"))},5727:function(e,t,n){"use strict";var i=n("6cdd"),r=n.n(i);r.a},5768:function(e,t,n){"use strict";n.r(t);var i=n("8af1"),r="(prefers-color-scheme: dark)",a=["done","go","next","search","send"],o=["none","text","decimal","numeric","tel","search","email","url"],s={name:"Textarea",mixins:[i["b"]],props:{name:{type:String,default:""},maxlength:{type:[Number,String],default:140},placeholder:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},placeholderClass:{type:String,default:"textarea-placeholder"},placeholderStyle:{type:String,default:""},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:function(e){return a.concat("return").includes(e)}},inputmode:{type:String,default:void 0,validator:function(e){return!!~o.indexOf(e)}}},data:function(){return{valueComposition:"",height:0,focusChangeSource:"",fixMargin:0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(r).media!==r}},computed:{maxlengthNumber:function(){var e=Number(this.maxlength);return isNaN(e)?140:e},valueCompute:function(){return(this.composing?this.valueComposition:this.valueSync).split("\n")},isDone:function(){return a.includes(this.confirmType)}},watch:{focus:function(e){e&&(this.focusChangeSource="focus")},height:function(e){var t=parseFloat(getComputedStyle(this.$el).lineHeight);isNaN(t)&&(t=this.$refs.line.offsetHeight);var n=Math.round(e/t);this.$trigger("linechange",{},{height:e,heightRpx:750/window.innerWidth*e,lineCount:n}),this.autoHeight&&(this.$el.style.height="auto",this.$refs.wrapper.style.height=this.height+"px")}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},mounted:function(){this._resize({height:this.$refs.sensor.$el.offsetHeight});var e=this;while(e){var t=e.$options._scopeId;t&&this.$refs.placeholder.setAttribute(t,""),e=e.$parent}},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onKeyDownEnter:function(e){this.isDone&&e.preventDefault()},_onKeyUpEnter:function(e){this.isDone&&(this._confirm(e),!this.confirmHold&&this.$refs.textarea.blur())},_onComposition:function(e){switch(e.type){case"compositionstart":this.composing=!0;break;case"compositionend":this.composing&&(this.composing=!1,this._onInput(e));break}!this.ignoreCompositionEvent&&this.$trigger(e.type,e,{data:e.data})},_confirm:function(e){this.$trigger("confirm",e,{value:this.valueSync})},_linechange:function(e){this.$trigger("linechange",e,{value:this.valueSync})},_onTouchstart:function(){this.focusChangeSource="touch"},_resize:function(e){var t=e.height;this.height=t},_onInput:function(e,t){this.composing&&this.ignoreCompositionEvent?this.valueComposition=e.target.value:(this.ignoreCompositionEvent||(this.valueSync=this.$refs.textarea.value),this.$triggerInput(e,{value:this.valueSync,cursor:this.$refs.textarea.selectionEnd},t))},_getFormData:function(){return{value:this.valueSync,key:this.name}},_resetFormData:function(){this.valueSync=""}}},u=s,c=(n("9400"),n("0c7c")),l=Object(c["a"])(u,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-textarea",e._g({},e.$listeners),[n("div",{ref:"wrapper",staticClass:"uni-textarea-wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!(e.composing||e.valueSync.length),expression:"!(composing || valueSync.length)"}],ref:"placeholder",staticClass:"uni-textarea-placeholder",class:e.placeholderClass,style:e.placeholderStyle,domProps:{textContent:e._s(e.placeholder)}}),n("div",{ref:"line",staticClass:"uni-textarea-line",domProps:{textContent:e._s(" ")}}),n("div",{staticClass:"uni-textarea-compute"},[e._l(e.valueCompute,(function(t,i){return n("div",{key:i,domProps:{textContent:e._s(t.trim()?t:".")}})})),n("v-uni-resize-sensor",{ref:"sensor",on:{resize:e._resize}})],2),e.disabled&&e.fixColor?e._e():n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.valueSync,expression:"valueSync"},{name:"keyboard",rawName:"v-keyboard"},{name:"field",rawName:"v-field"}],ref:"textarea",staticClass:"uni-textarea-textarea",class:{"uni-textarea-textarea-fix-margin":e.fixMargin},style:{"overflow-y":e.autoHeight?"hidden":"auto"},attrs:{disabled:e.disabled,maxlength:e.maxlengthNumber,enterkeyhint:e.confirmType,inputmode:e.inputmode},domProps:{value:e.valueSync},on:{change:function(e){e.stopPropagation()},compositionstart:function(t){return t.stopPropagation(),e._onComposition(t)},compositionend:function(t){return t.stopPropagation(),e._onComposition(t)},compositionupdate:function(t){return t.stopPropagation(),e._onComposition(t)},input:[function(t){t.target.composing||(e.valueSync=t.target.value)},function(t){return t.stopPropagation(),e._onInput(t)}],focus:e._onFocus,blur:e._onBlur,"&touchstart":function(t){return e._onTouchstart(t)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e._onKeyUpEnter(t)},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e._onKeyDownEnter(t)}}}),e._v(" "),e.disabled&&e.fixColor?n("textarea",{ref:"textarea",staticClass:"uni-textarea-textarea",class:{"uni-textarea-textarea-fix-margin":e.fixMargin},style:{"overflow-y":e.autoHeight?"hidden":"auto"},attrs:{tabindex:"-1",readonly:e.disabled,maxlength:e.maxlengthNumber},domProps:{value:e.valueSync},on:{focus:function(e){return e.target.blur()}}}):e._e()])])}),[],!1,null,null,null);t["default"]=l.exports},"57a7":function(e,t,n){"use strict";n.r(t),n.d(t,"createInnerAudioContext",(function(){return l}));var i=n("db70");function r(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),Object.defineProperty(e,i.key,i)}}var a=["canplay","play","pause","stop","ended","timeUpdate","error","waiting","seeking","seeked"],o=[{name:"src",cache:!0},{name:"startTime",default:0,cache:!0},{name:"autoplay",default:!1,cache:!0},{name:"loop",default:!1,cache:!0},{name:"obeyMuteSwitch",default:!0,readonly:!0,cache:!0},{name:"duration",readonly:!0},{name:"currentTime",readonly:!0},{name:"paused",readonly:!0},{name:"buffered",readonly:!0},{name:"volume"},{name:"sessionCategory"},{name:"playbackRate",cache:!0}],s=function(){function e(t){var n=this;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.id=t,this._callbacks={},this._options={},a.forEach((function(e){n._callbacks[e.toLowerCase()]=[]})),o.forEach((function(e){var t=e.name,r={get:function(){var n=e.cache?this._options:Object(i["c"])("getAudioState",{audioId:this.id}),r=t in n?n[t]:e.default;return"number"===typeof r&&"volume"!==t?r/1e3:r}};e.readonly||(r.set=function(e){this._options[t]=e,Object(i["c"])("setAudioState",Object.assign({},this._options,{audioId:this.id}))}),Object.defineProperty(n,t,r)}))}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"play",value:function(){this._operate("play")}},{key:"pause",value:function(){this._operate("pause")}},{key:"stop",value:function(){this._operate("stop")}},{key:"seek",value:function(e){this._operate("seek",{currentTime:1e3*e})}},{key:"destroy",value:function(){clearInterval(this.__timing),Object(i["c"])("destroyAudioInstance",{audioId:this.id}),delete c[this.id]}},{key:"_operate",value:function(e,t){Object(i["c"])("operateAudio",Object.assign({},t,{audioId:this.id,operationType:e}))}}]),e}();function u(e,t,n,i){e._callbacks[t].forEach((function(e){"function"===typeof e&&e("error"===t?{errMsg:n,errCode:i}:{})}))}a.forEach((function(e){var t=e[0].toUpperCase()+e.substr(1);e=e.toLowerCase(),s.prototype["on".concat(t)]=function(t){this._callbacks[e].push(t)},s.prototype["off".concat(t)]=function(t){var n=this._callbacks[e],i=n.indexOf(t);i>=0&&n.splice(i,1)}})),Object(i["d"])("onAudioStateChange",(function(e){var t=e.state,n=e.audioId,i=e.errMsg,r=e.errCode,a=c[n];if(a)if(u(a,t,i,r),"play"===t){var o=a.currentTime;u(a,"timeupdate"),a.__timing=setInterval((function(){var e=a.currentTime;e!==o&&u(a,"timeupdate")}),200)}else"pause"!==t&&"stop"!==t&&"error"!==t||clearInterval(a.__timing)}));var c=Object.create(null);function l(){var e=Object(i["c"])("createAudioInstance"),t=e.audioId,n=new s(t);return c[t]=n,n}},"594d":function(e,t,n){"use strict";n.r(t);var i=n("2318"),r=i["a"],a=(n("3f7e"),n("0c7c")),o=Object(a["a"])(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-map",e._g({ref:"mapContainer",attrs:{id:e.id}},e.$listeners),[e._l(e.markers,(function(t){return n("map-marker",e._b({key:t.id},"map-marker",t,!1))})),e._l(e.controls,(function(t,i){return n("map-control",e._b({key:t.id||i},"map-control",t,!1))})),e._l(e.polygons,(function(t){return n("map-polygon",e._b({key:JSON.stringify(t.points)},"map-polygon",t,!1))})),n("div",{ref:"map",staticStyle:{width:"100%",height:"100%",position:"relative",overflow:"hidden"},on:{click:function(e){e.stopPropagation()}}}),n("div",{staticStyle:{position:"absolute",top:"0",width:"100%",height:"100%",overflow:"hidden","pointer-events":"none"}},[e._t("default")],2)],2)}),[],!1,null,null,null);t["default"]=o.exports},5964:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"setNavigationBarColor",(function(){return a})),n.d(t,"showNavigationBarLoading",(function(){return o})),n.d(t,"hideNavigationBarLoading",(function(){return s})),n.d(t,"setNavigationBarTitle",(function(){return u}));var i=n("79d5");function r(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object(i["getPageHolder"])(n.__page__);if(r)switch(t){case"setNavigationBarColor":var a=n.frontColor,o=n.backgroundColor,s=n.animation,u=s.duration,c=s.timingFunc;a&&(r.navigationBar.textColor="#000000"===a?"black":"white"),o&&(r.navigationBar.backgroundColor=o),e.emit("onNavigationBarChange",{textColor:"#000000"===a?"#000":"#fff",backgroundColor:r.navigationBar.backgroundColor}),r.navigationBar.duration=u+"ms",r.navigationBar.timingFunc=c;break;case"showNavigationBarLoading":r.navigationBar.loading=!0;break;case"hideNavigationBarLoading":r.navigationBar.loading=!1;break;case"setNavigationBarTitle":var l=n.title;r.navigationBar.titleText=l,Object(i["isCurrentPage"])(r)&&(document.title=l),e.emit("onNavigationBarChange",{titleText:l});break}return{}}function a(e){return r("setNavigationBarColor",e)}function o(e){return r("showNavigationBarLoading",e)}function s(e){return r("hideNavigationBarLoading",e)}function u(e){return r("setNavigationBarTitle",e)}}.call(this,n("0dd1"))},"59dc":function(e,t,n){},"5a23":function(e,t,n){"use strict";n("f2b3");var i=n("5cf8");function r(){}t["a"]={name:"Keyboard",mixins:[i["a"]],props:{cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},computed:{isApple:function(){return 0===String(navigator.vendor).indexOf("Apple")}},directives:{keyboard:{inserted:function(e,t,n){n.context.initKeyboard(e)}}},methods:{initKeyboard:function(e){var t=this;e.addEventListener("focus",(function(){clearTimeout(void 0),document.addEventListener("click",r,!1)}));e.addEventListener("blur",(function(){t.isApple&&e.blur(),function(){document.removeEventListener("click",r,!1),t.isApple&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)}()}))}}}},"5a56":function(e,t,n){"use strict";n.r(t),t["default"]={methods:{beforeTransition:function(){},afterTransition:function(){}}}},"5ab3":function(e,t,n){"use strict";var i=n("907b"),r=n.n(i);r.a},"5abe":function(e,t){(function(){"use strict";if("object"===("undefined"===typeof window?"undefined":i(window)))if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=window.document,t=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(e){var t=this._observationTargets.some((function(t){return t.element==e}));if(!t){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},r.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},r.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},r.prototype._parseRootMargin=function(e){var t=e||"0px",n=t.split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return n[1]=n[1]||n[0],n[2]=n[2]||n[0],n[3]=n[3]||n[1],n},r.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(o(window,"resize",this._checkForIntersections,!0),o(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},r.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(window,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),t=e?this._getRootRect():l();this._observationTargets.forEach((function(i){var r=i.element,o=c(r),s=this._rootContainsTarget(r),u=i.entry,l=e&&s&&this._computeTargetAndRootIntersection(r,t),d=i.entry=new n({time:a(),target:r,boundingClientRect:o,rootBounds:t,intersectionRect:l});u?e&&s?this._hasCrossedThreshold(u,d)&&this._queuedEntries.push(d):u&&u.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(t,n){if("none"!=window.getComputedStyle(t).display){var i=c(t),r=i,a=f(t),o=!1;while(!o){var s=null,l=1==a.nodeType?window.getComputedStyle(a):{};if("none"==l.display)return;if(a==this.root||a==e?(o=!0,s=n):a!=e.body&&a!=e.documentElement&&"visible"!=l.overflow&&(s=c(a)),s&&(r=u(s,r),!r))break;a=f(a)}return r}},r.prototype._getRootRect=function(){var t;if(this.root)t=c(this.root);else{var n=e.documentElement,i=e.body;t={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},r.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,i=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==i)for(var r=0;r<this.thresholds.length;r++){var a=this.thresholds[r];if(a==n||a==i||a<n!==a<i)return!0}},r.prototype._rootIsInDom=function(){return!this.root||d(e,this.root)},r.prototype._rootContainsTarget=function(t){return d(this.root||e,t)},r.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},r.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=r,window.IntersectionObserverEntry=n}function n(e){this.time=e.time,this.target=e.target,this.rootBounds=e.rootBounds,this.boundingClientRect=e.boundingClientRect,this.intersectionRect=e.intersectionRect||l(),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,i=this.intersectionRect,r=i.width*i.height;this.intersectionRatio=n?Number((r/n).toFixed(4)):this.isIntersecting?1:0}function r(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=function(e,t){var n=null;return function(){n||(n=setTimeout((function(){e(),n=null}),t))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" ")}function a(){return window.performance&&performance.now&&performance.now()}function o(e,t,n,i){"function"==typeof e.addEventListener?e.addEventListener(t,n,i||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function s(e,t,n,i){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,i||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function u(e,t){var n=Math.max(e.top,t.top),i=Math.min(e.bottom,t.bottom),r=Math.max(e.left,t.left),a=Math.min(e.right,t.right),o=a-r,s=i-n;return o>=0&&s>=0&&{top:n,bottom:i,left:r,right:a,width:o,height:s}}function c(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):l()}function l(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function d(e,t){var n=t;while(n){if(n==e)return!0;n=f(n)}return!1}function f(e){var t=e.parentNode;return t&&11==t.nodeType&&t.host?t.host:t&&t.assignedSlot?t.assignedSlot.parentNode:t}})()},"5b4c":function(e,t,n){},"5b9f":function(e,t,n){"use strict";var i=n("f2b3"),r=n("636c");t["a"]={props:{dashArray:{type:Array,default:function(){return[0,0]}},points:{type:Array,required:!0},strokeWidth:{type:Number,default:1},strokeColor:{type:String,default:"#000000"},fillColor:{type:String,default:"#00000000"},zIndex:{type:Number,default:0}},mounted:function(){var e=this,t=this.$parent;t.mapReady((function(){e.drawPolygon(),Object.keys(e.$props).forEach((function(t){e.$watch(t,(function(){e.drawPolygon()}),{deep:!0})}))}))},methods:{drawPolygon:function(){var e=this.points,t=this.strokeWidth,n=this.strokeColor,a=this.dashArray,o=this.fillColor,s=this.zIndex,u=this.$parent,c=u._maps,l=u._map,d=e.map((function(e){var t=e.latitude,n=e.longitude;return r["c"]?[n,t]:new c.LatLng(t,n)})),f=Object(i["j"])(o),h=f.r,p=f.g,g=f.b,v=f.a,m=Object(i["j"])(n),y=m.r,b=m.g,_=m.b,w=m.a,T={clickable:!0,cursor:"crosshair",editable:!1,map:l,fillColor:"",path:d,strokeColor:"",strokeDashStyle:a.some((function(e){return e>0}))?"dash":"solid",strokeWeight:t,visible:!0,zIndex:s};c.Color?(T.fillColor=new c.Color(h,p,g,v),T.strokeColor=new c.Color(y,b,_,w)):(T.fillColor="rgb(".concat(h,", ").concat(p,", ").concat(g,")"),T.fillOpacity=v,T.strokeColor="rgb(".concat(y,", ").concat(b,", ").concat(_,")"),T.strokeOpacity=w),this.polygonIns?this.polygonIns.setOptions(T):this.polygonIns=new c.Polygon(T)}},beforeDestroy:function(){this.polygonIns.setMap(null),this.polygonIns=null},render:function(){return null}}},"5bb5":function(e,t,n){},"5bc8":function(e,t,n){"use strict";(function(e,i){var r=n("f2b3"),a=n("65a8"),o=n("81ea"),s=n("f1ea"),u=n("bdbe");t["a"]={name:"App",components:o["a"],mixins:s["default"],props:{keepAliveInclude:{type:Array,default:function(){return[]}}},data:function(){return{transitionName:"fade",hideTabBar:!1,sysComponents:this.$sysComponents,showLayout:!1,showMaxWidth:!1,tabBarMediaQuery:!1}},computed:{key:function(){return this.$route.meta.name+"-"+this.$route.params.__id__+"-"+(__uniConfig.reLaunch||1)},tabBarOptions:function(){return u["a"]},hasTabBar:function(){return u["a"].list&&u["a"].list.length},showTabBar:function(){return!this.hideTabBar&&(this.$route.meta.isTabBar||this.tabBarMediaQuery)}},watch:{$route:function(t,n){e.emit("onHidePopup")},hideTabBar:function(e,t){if(uni.canIUse("css.var")){var n=e?0:a["d"],r=uni.canIUse("css.env")?"env":uni.canIUse("css.constant")?"constant":"",o=n&&r?"calc(".concat(n,"px + ").concat(r,"(safe-area-inset-bottom))"):"".concat(n,"px");document.documentElement.style.setProperty("--window-bottom",o),i.debug("uni.".concat(o?"showTabBar":"hideTabBar",":--window-bottom=").concat(o))}window.dispatchEvent(new CustomEvent("resize"))}},created:function(){uni.canIUse("css.var")&&document.documentElement.style.setProperty("--status-bar-height","0px"),this.initMediaQuery()},mounted:function(){window.addEventListener("message",(function(t){Object(r["l"])(t.data)&&"WEB_INVOKE_APPSERVICE"===t.data.type&&e.emit("onWebInvokeAppService",t.data.data,t.data.pageId)})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?e.emit("onAppEnterForeground",{}):e.emit("onAppEnterBackground")})),function(){var t=null;try{t=window.matchMedia("(prefers-color-scheme: dark)")}catch(n){}t&&t.addEventListener("change",(function(t){e.emit("api."+a["b"],{theme:t.matches?"dark":"light"})}))}()},methods:{onLayout:function(e){this.showLayout=e},onMaxWidth:function(e){this.showMaxWidth=e},initMediaQuery:function(){var e=this;if(window.matchMedia&&u["a"].matchMedia&&Object(r["i"])(u["a"].matchMedia,"minWidth")){var t=window.matchMedia("(min-width: "+u["a"].matchMedia.minWidth+"px)");t.addListener((function(t){e.tabBarMediaQuery=t.matches})),this.tabBarMediaQuery=t.matches}}}}}).call(this,n("0dd1"),n("3ad9")["default"])},"5bf9":function(e,t,n){},"5c85":function(e,t,n){},"5cf8":function(e,t,n){"use strict";function i(e,t){for(var n=this.$children,r=n.length,a=arguments.length,o=new Array(a>2?a-2:0),s=2;s<a;s++)o[s-2]=arguments[s];for(var u=0;u<r;u++){var c=n[u],l=c.$options.name&&c.$options.name.substr(4);if(~e.indexOf(l))return c.$emit.apply(c,[t].concat(o)),!1;if(!1===i.apply(c,[e,t].concat([o])))return!1}}t["a"]={methods:{$dispatch:function(e,t){"string"===typeof e&&(e=[e]);var n=this.$parent||this.$root,i=n.$options.name&&n.$options.name.substr(4);while(n&&(!i||!~e.indexOf(i)))n=n.$parent,n&&(i=n.$options.name&&n.$options.name.substr(4));if(n){for(var r=arguments.length,a=new Array(r>2?r-2:0),o=2;o<r;o++)a[o-2]=arguments[o];n.$emit.apply(n,[t].concat(a))}},$broadcast:function(e,t){"string"===typeof e&&(e=[e]);for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];i.apply(this,[e,t].concat(r))}}}},"5d1d":function(e,t,n){"use strict";var i=n("98e3"),r=n.n(i);r.a},"5d74":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"startLocationUpdate",(function(){return l})),n.d(t,"stopLocationUpdate",(function(){return d})),n.d(t,"onLocationChange",(function(){return f})),n.d(t,"offLocationChange",(function(){return h})),n.d(t,"onLocationChangeError",(function(){return p})),n.d(t,"offLocationChangeError",(function(){return g}));var i=n("636c"),r=e,a=r.invokeCallbackHandler,o=[],s=[],u=!1,c=0;function l(e,t){var n=e.type,r=void 0===n?"gcj02":n;if(!navigator.geolocation)return{errMsg:"startLocationUpdate:fail"};c=c||navigator.geolocation.watchPosition((function(e){u=!0,Object(i["f"])(r,e.coords).then((function(e){o.forEach((function(t){a(t,e)}))})).catch((function(e){s.forEach((function(t){a(t,{errMsg:"onLocationChange:fail ".concat(e.message)})}))}))}),(function(e){u||(a(t,{errMsg:"startLocationUpdate:fail ".concat(e.message)}),u=!0),s.forEach((function(t){a(t,{errMsg:"onLocationChange:fail ".concat(e.message)})}))})),setTimeout((function(){a(t,{errMsg:"startLocationUpdate:ok"})}),100)}function d(){return 0!==c&&(navigator.geolocation.clearWatch(c),u=!1,c=0),{}}function f(e){o.push(e)}function h(e){if(e){var t=o.indexOf(e);t>=0&&o.splice(t,1)}else o=[]}function p(e){s.push(e)}function g(e){if(e){var t=s.indexOf(e);t>=0&&s.splice(t,1)}else s=[]}}.call(this,n("0dd1"))},"5dc1":function(e,t,n){"use strict";(function(e,i){n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l})),n("5abe");var r=n("85b6"),a=n("db8e");function o(e){return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}function s(e){var t=e.intersectionRatio,n=e.boundingClientRect,i=n.height,r=n.width,a=e.intersectionRect,o=a.height,s=a.width;return 0!==t?t:o===i?s/r:o/i}var u={};function c(t,n){var c,l=t.reqId,d=t.component,f=t.options;if(n._isVue)c=n;else{var h=getCurrentPages(),p=h.find((function(e){return e.$page.id===n}));if(!p)throw new Error("Not Found:Page[".concat(n,"]"));c=p.$vm}var g=Object(a["b"])(d,c),v=f.relativeToSelector?g.querySelector(f.relativeToSelector):null,m=u[l]=new IntersectionObserver((function(t,n){t.forEach((function(t){e.publishHandler("onRequestComponentObserver",{reqId:l,res:{intersectionRatio:s(t),intersectionRect:o(t.intersectionRect),boundingClientRect:o(t.boundingClientRect),relativeRect:o(t.rootBounds),time:Date.now(),dataset:Object(r["b"])(t.target),id:t.target.id}})}))}),{root:v,rootMargin:f.rootMargin,threshold:f.thresholds});if(f.observeAll)m.USE_MUTATION_OBSERVER=!0,Array.prototype.map.call(g.querySelectorAll(f.selector),(function(e){e?m.observe(e):i.warn("Node ".concat(f.selector," is not found. Intersection observer will not trigger."))}));else{m.USE_MUTATION_OBSERVER=!1;var y=g.querySelector(f.selector);if(!y)return void i.warn("Node ".concat(f.selector," is not found. Intersection observer will not trigger."));m.observe(y)}}function l(t){var n=t.reqId,i=u[n];i&&(i.disconnect(),delete u[n],e.publishHandler("onRequestComponentObserver",{reqId:n,reqEnd:!0}))}}).call(this,n("501c"),n("3ad9")["default"])},"5f8d":function(e,t,n){},"5ff9":function(e,t,n){"use strict";n.r(t),n.d(t,"loadFontFace",(function(){return i}));var i={family:{type:String,required:!0},source:{type:String,required:!0},desc:{type:Object,required:!1},success:{type:Function,required:!1},fail:{type:Function,required:!1},complete:{type:Function,required:!1}}},6062:function(e,t,n){"use strict";var i=n("3569"),r=n.n(i);r.a},"60db":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"EditorContext",(function(){return o}));var i=n("f2b3");function r(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),Object.defineProperty(e,i.key,i)}}function a(t,n,i,r){e.publishHandler(n+"-editor-"+t,{componentId:t,type:i,data:r},n)}e.subscribe("onEditorMethodCallback",(function(e){var t=e.callbackId,n=e.data;i["a"].invoke(t,n)}));var o=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.id=t,this.pageId=n}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"format",value:function(e,t){a(this.id,this.pageId,"format",{options:{name:e,value:t}})}}]),e}();["insertDivider","insertImage","insertText","setContents","getContents","clear","removeFormat","undo","redo","blur","getSelectionText","scrollIntoView"].forEach((function(e){o.prototype[e]=i["a"].warp((function(t,n){a(this.id,this.pageId,e,{options:t,callbackId:n})}))}))}.call(this,n("0dd1"))},6150:function(e,t,n){"use strict";n.r(t);var i=n("8af1"),r={name:"Audio",mixins:[i["g"]],props:{id:{type:String,default:""},src:{type:String,default:""},loop:{type:[Boolean,String],default:!1},controls:{type:[Boolean,String],default:!1},poster:{type:String,default:""},name:{type:String,default:""},author:{type:String,default:""}},data:function(){return{playing:!1,currentTime:this.getTime(0)}},watch:{src:function(e){this.$refs.audio&&(this.$refs.audio.src=this.$getRealPath(e))}},mounted:function(){var e=this,t=this.$refs.audio;t.addEventListener("error",(function(t){e.playing=!1,e.$trigger("error",t,{})})),t.addEventListener("play",(function(t){e.playing=!0,e.$trigger("play",t,{})})),t.addEventListener("pause",(function(t){e.playing=!1,e.$trigger("pause",t,{})})),t.addEventListener("ended",(function(t){e.playing=!1,e.$trigger("ended",t,{})})),t.addEventListener("timeupdate",(function(n){var i=t.currentTime;e.currentTime=e.getTime(i);var r=t.duration;e.$trigger("timeupdate",n,{currentTime:i,duration:r})})),t.src=this.$getRealPath(this.src)},methods:{_handleSubscribe:function(e){var t=e.type,n=e.data,i=void 0===n?{}:n,r=this.$refs.audio;switch(t){case"setSrc":r.src=this.$getRealPath(i.src),this.$emit("update:src",i.src);break;case"play":r.play();break;case"pause":r.pause();break;case"seek":r.currentTime=i.position;break}},trigger:function(){this.playing?this.$refs.audio.pause():this.$refs.audio.play()},getTime:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);t=(t<10?"0":"")+t,n=(n<10?"0":"")+n,i=(i<10?"0":"")+i;var r=n+":"+i;return"00"!==t&&(r=t+":"+r),r}}},a=r,o=(n("02b5"),n("0c7c")),s=Object(o["a"])(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-audio",e._g({attrs:{id:e.id,controls:!!e.controls}},e.$listeners),[n("audio",{ref:"audio",staticStyle:{display:"none"},attrs:{loop:e.loop}}),n("div",{staticClass:"uni-audio-default"},[n("div",{staticClass:"uni-audio-left",style:"background-image: url("+e.$getRealPath(e.poster)+");"},[n("div",{staticClass:"uni-audio-button",class:{play:!e.playing,pause:e.playing},on:{click:e.trigger}})]),n("div",{staticClass:"uni-audio-right"},[n("div",{staticClass:"uni-audio-time"},[e._v(" "+e._s(e.currentTime)+" ")]),n("div",{staticClass:"uni-audio-info"},[n("div",{staticClass:"uni-audio-name"},[e._v(" "+e._s(e.name)+" ")]),n("div",{staticClass:"uni-audio-author"},[e._v(" "+e._s(e.author)+" ")])])])])])}),[],!1,null,null,null);t["default"]=s.exports},"61c2":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("f2b3"),r=n("8af1");function a(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})}function o(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})}var s={name:"uni://form-field",init:function(e,t){t.constructor.options.props&&t.constructor.options.props.name&&t.constructor.options.props.value||(t.constructor.options.props||(t.constructor.options.props={}),t.constructor.options.props.name||(t.constructor.options.props.name=e.props.name={type:String}),t.constructor.options.props.value||(t.constructor.options.props.value=e.props.value={type:null})),e.propsData||(e.propsData={});var n=t.$vnode;if(n&&n.data&&n.data.attrs&&(Object(i["i"])(n.data.attrs,"name")&&(e.propsData.name=n.data.attrs.name),Object(i["i"])(n.data.attrs,"value")&&(e.propsData.value=n.data.attrs.value)),!t.constructor.options.methods||!t.constructor.options.methods._getFormData){t.constructor.options.methods||(t.constructor.options.methods={}),e.methods||(e.methods={});var s={_getFormData:function(){return this.name?{key:this.name,value:this.value}:{}},_resetFormData:function(){this.value=""}};Object.assign(t.constructor.options.methods,s),Object.assign(e.methods,s),Object.assign(t.constructor.options.methods,r["a"].methods),Object.assign(e.methods,r["a"].methods);var u=e.created;t.constructor.options.created=e.created=u?[].concat(a,u):[a];var c=e.beforeDestroy;t.constructor.options.beforeDestroy=e.beforeDestroy=c?[].concat(o,c):[o]}}};var u=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},s.name,s);function c(e,t){e.behaviors.forEach((function(n){var i=u[n];i&&i.init(e,t)}))}},6226:function(e,t,n){"use strict";var i=n("bed8"),r=n.n(i);r.a},"626d":function(e,t,n){"use strict";n.r(t),function(e){var i=n("f2b3");t["default"]={data:function(){return{showActionSheet:{visible:!1}}},created:function(){var t=this;e.on("onShowActionSheet",(function(e,n){t.showActionSheet=e,t.onActionSheetCloseCallback=n})),e.on("onHidePopup",(function(e){t.showActionSheet.visible=!1}))},methods:{_onActionSheetClose:function(e){this.showActionSheet.visible=!1,Object(i["k"])(this.onActionSheetCloseCallback)&&this.onActionSheetCloseCallback(e)}}}}.call(this,n("0dd1"))},"62b5":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i={};function r(e){var t=i[e];return t||(t={id:1,callbacks:Object.create(null)},i[e]=t),{get:function(e){return t.callbacks[e]},pop:function(e){var n=t.callbacks[e];return n&&delete t.callbacks[e],n},push:function(e){var n=t.id++;return t.callbacks[n]=e,n}}}},"636c":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"f",(function(){return l}));var i=n("ffdc"),r=n("31c6"),a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACECAMAAABmmnOVAAAC01BMVEUAAAAAef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef96quGStdqStdpbnujMzMzCyM7Gyc7Ky83MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMwAef8GfP0yjfNWnOp0qOKKsdyYt9mju9aZt9mMstx1qeJYnekyjvIIfP0qivVmouaWttnMzMyat9lppOUujPQKffxhoOfNzc3Y2Njh4eHp6enu7u7y8vL19fXv7+/i4uLZ2dnOzs6auNgOf/sKff15quHR0dHx8fH9/f3////j4+N6quFdn+iywdPb29vw8PD+/v7c3NyywtLa2tr29vbS0tLd3d38/Pzf39/o6Ojc7f+q0v+HwP9rsf9dqv9Hnv9Vpv/q6urj8P+Vx/9Am/8Pgf8Iff/z8/OAvP95uf/n5+c5l//V6f+52v+y1//7+/vt7e0rkP/09PTQ0NDq9P8Whf+cy//W1tbe3t7A3v/m5ubs7OxOov/r6+vk5OQiaPjKAAAAknRSTlMACBZ9oB71/jiqywJBZATT6hBukRXv+zDCAVrkDIf4JbQsTb7eVeJLbwfa8Rh4G/OlPS/6/kxQ9/xdmZudoJxNVhng7B6wtWdzAtQOipcF1329wS44doK/BAkyP1pvgZOsrbnGXArAg34G2IsD1eMRe7bi7k5YnqFT9V0csyPedQyYD3p/Fje+hDpskq/MwpRBC6yKp2MAAAQdSURBVHja7Zn1exMxGIAPHbrhDsPdneHuNtzd3d3dIbjLh93o2o4i7TpgG1Jk0g0mMNwd/gTa5rq129reHnK5e/bk/TFNk/dJ7r5894XjGAwGg8GgTZasCpDIll1+hxw5vXLJLpEboTx5ZXbIhyzkl9fB28cqUaCgrBKFkI3CcjoUKYolihWXUSI7EihRUjaHXF52CVRKLoe8eZIdUOkyMknkRw6UlcehYAFHiXK+skgURk6Ul8OhQjFnCVRRBolKqRxQ5SzUHaqgNGSj7VCmalqJnDkoS5RF6ZCbroNvufQkUD6qEuXTdUA+3hQdqiEXVKfnUKOmK4latalJ1EEuoZZ6162HJ9x/4OChw0eOHj12/MTJU6dxG7XUu751tjNnz4ET5y9ctLZTSr0beKFLl89bpuUDrqgC1RqNWqsKuqqzNFw7e51S6u3tc+OmZUJ9kCHY6ECwOkRvab51iUrqXej2HYDQsHBjWgx3Ae7dppB6N2wEcF9jdMGDUIDGTaR2aNoM9FqjG7QmaN5CWgc/gIePjG559BigpZQOrYB/4jBfRGRUtDkmJjY6KjLCofkpD62lc2gDfMpWPIuLdwyV8XEpHgaddBZ+wBuSFcwJqSN2ovmZ/dfnOvCTxqGtwzq8SEjv4EhISn48eWgnhUP7DvDSvgzxrs6vV6+FLiro2EkCic4QKkzwJsH1KYreCp0eQhfyDl1B/w4P/xa5JVJ4U03QjbRD9x7wXlgH5IE3wmMBHXoSlugFAcI6f/AkkSi8q6HQm6xDn77wEQ8djTwSj3tqAMguRTe4ikeOQyJ4YV+KfkQl+oNW5GbY4gWOWgbwJ+kwAD6Fi90MK2ZsrIeBBCUGwRXbqJ+/iJMQliIEBhOU6AJhtlG/IpHE2bqrYQg5h6HA4yQiRqwEfkGCdTCMmMRw+IbPDCQaHCsCYAQxiZHw3TbmD/ESOHgHwShiEqPhp/gggYkSztIxxCRawy/bmEniJaJtfwiEscQkxkFgRqJESqQwwHhiEuMBp3Vm8RK/cZoHEzKXhCK2QxEPpiJe0YlKCFaKCNv/cYBNUsBRPlkJSc0U+dM7E9H0ThGJbgZT/iR7yj+VqMS06Qr4+OFm2JdCxIa8lugzkJs5K6MfxAaYPUcBpYG5khZJEkUUSb7DPCnKRfPBXj6M8FwuegoLpCgXcQszVjhbJFUJUee2hBhLoYTIcYtB57KY+opSMdVqwatSlZVj05aV//CwJLMX2DluaUcwhXm4ali2XOoLjxUrPV26zFtF4f5p0Gp310+z13BUWNvbehEXona6iAtX/zVZmtfN4WixfsNky4S6gCCVVq3RPLdfSfpv3MRRZfPoLc6Xs/5bt3EyMGzE9h07/Xft2t15z6i9+zgGg8FgMBgMBoPBYDAYDAYj8/APG67Rie8pUDsAAAAASUVORK5CYII=",o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAACcCAMAAAC3Fl5oAAAB3VBMVEVMaXH/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/EhL/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/Dw//AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/GRn/NTX/Dw//Fhb/AAD/AAD/AAD/GRn/GRn/Y2P/AAD/AAD/ExP/Ghr/AAD/AAD/MzP/GRn/AAD/Hh7/AAD/RUX/AAD/AAD/AAD/AAD/AAD/AAD/Dg7/AAD/HR3/Dw//FRX/SUn/AAD/////kJD/DQ3/Zmb/+/v/wMD/mJj/6en/vb3/1NT//Pz/ODj/+fn/3Nz/nJz/j4//9/f/7e3/9vb/7Oz/2Nj/x8f/Ozv/+Pj/3d3/nZ3/2dn//f3/6Oj/2tr/v7//09P/vr7/mZn/l5cdSvP3AAAAe3RSTlMAAhLiZgTb/vztB/JMRhlp6lQW86g8mQ4KFPs3UCH5U8huwlesWtTYGI7RsdVeJGfTW5rxnutLsvXWF8vQNdo6qQbuz7D4hgVIx2xtw8GC1TtZaIw0i84P98tU0/fsj7PKaAgiZZxeVfo8Z52eg1P0nESrENnjXVPUgw/uuSmDAAADsUlEQVR42u3aZ3cTRxgF4GtbYleSLdnGcsENG2ODjbExEHrvhAQCIb1Bem+QdkeuuFMNBBJIfmuOckzZI8/srHYmH3Lm+QNXK632LTvQ03Tu/IWeU/tTGTKT2n+q58L5c00wpXJd47DHEt5w47pKxLbhdLdPKb/7dBYxVLxw1GcI/2h1BcpzKNFHLX2JQ4gumaiitqpEEhEdOMJI9h5AFC3feYzI+7IF2tpSLEOqDXpObPRYFm/jCWho/4Ble7MdoT7fzhhq9yHEz28wltU1UPrJZ0wd66HwicfYvEFIfePTAP8tSLTupBHvtGJFH9bSkNrNWEHzERrT34xSH9Ogr1CijkbVAUH1KRqVqkdQAw07iIAaGlcTqI+/0LjeJJ5J0IIEnkpXMdzs4sTtW9dnZq7fuj2xOMtwVWk88RHDjBYejYvnjD8qjOpfQsUqhvj7oSjxcJIhVj3pyKqpNjYvVjQ/RrXq5YABKi3MCYm5BSrtWO5v11DlmlC4RpU1WRS9SJU7QukOVbpQ9JLu549+Dd0AUOlTbkGEuk85vxLAK5QbuytC3R2j3HoAjZSbFxrmKTcCoJdSk0LLJKV6gSaPMqNTQsvUKGW8JrxKqUWhaZFSeWyh1LTQNE2pHF6mzOy40DQ+S5mLimJcENoKlOnBWsr8KbRNUGYt5LXgd6HtD3lNQIoyN4S2G5RJIUOZm0LbTcqsBqVmhLYZSlkPsP4VWf+Rrd+m1v9o9h8Vv5p42C1R5qL1x7WRglOgVN52yfwNOBu76P+lLPoYidu23KPciIHGa07ZeIW1jvcNtI7q5vexCPGYCmf+m/Y9a3sAwQ5bI9T7ukPgPcn9GToEao+xk1OixJT+GIsvNAbx6eAgPq0xiF+KtkpYKhRXCQ8eFFcJhSWGu3rZ8jJkCM8kz9K4TUnrC6mAgzTsB9tLwQ2W15qfosQ2GrQNpZr7aczbzVjBZsvLcaC1g0bsbIVEnU8DOr6H1KDH2LwtUBi0/JII6Dxm9zUXkH+XMWzfh1Dte1i2Pe3QkC77Zel7aehpO8wyHG6Dtt0NjKxhN6I4uSli/TqJiJJDUQ4NDCURXTrXRy1XcumyD24M+AzhD1RXIIZsl/LoyZmurJHDM7s8lvB2FQ/PmPJ6PseAXP5HGMYAAC7ABbgAF+ACXIALcAEuwAW4ABfgAlyAC3ABLsAFuID/d8Cx4NEt8/byOf0wLnis8zjMq9/Kp7bWw4JOj8u8TlhRl+G/Mp2wpOX48GffvvZ1CyL4B53LAS6zb08EAAAAAElFTkSuQmCC",s={QQ:"qq",GOOGLE:"google",AMAP:"AMap",UNKNOWN:""};function u(){return __uniConfig.qqMapKey?{type:s.QQ,key:__uniConfig.qqMapKey}:__uniConfig.googleMapKey?{type:s.GOOGLE,key:__uniConfig.googleMapKey}:__uniConfig.aMapKey?{type:s.AMAP,key:__uniConfig.aMapKey,securityJsCode:__uniConfig.aMapSecurityJsCode,serviceHost:__uniConfig.aMapServiceHost}:{type:s.UNKNOWN,key:""}}var c=u().type===s.AMAP;function l(e,t,n){var a=u(),o=[s.GOOGLE];return"WGS84"===e.toUpperCase()||o.includes(a.type)||n?Promise.resolve(t):a.type===s.QQ?new Promise((function(e,n){Object(i["a"])("https://apis.map.qq.com/jsapi?qt=translate&type=1&points=".concat(t.longitude,",").concat(t.latitude,"&key=").concat(a.key,"&output=jsonp&pf=jsapi&ref=jsapi"),{callback:"cb"},(function(i){if("detail"in i&&"points"in i.detail&&i.detail.points.length){var r=i.detail.points[0];e({longitude:r.lng,latitude:r.lat,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else n(new Error("translate geo fail"))}),(function(){return n(new Error("translate geo fail"))}))})):a.type===s.AMAP?new Promise((function(e,n){Object(r["a"])([],(function(){window.AMap.convertFrom([t.longitude,t.latitude],"gps",(function(i,r){if("ok"===r.info&&r.locations.length){var a=r.locations[0],o=a.lat,s=a.lng;e({longitude:s,latitude:o,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else n(new Error("translate geo fail"))}))}))})):void 0}},6389:function(t,n){t.exports=e},"639e":function(e,t,n){"use strict";var i=n("84ca"),r=n.n(i);r.a},6428:function(e,t,n){"use strict";var i=n("687b"),r=n.n(i);r.a},6481:function(e,t,n){"use strict";n.r(t),n.d(t,"base64ToArrayBuffer",(function(){return i})),n.d(t,"arrayBufferToBase64",(function(){return r}));var i=[{name:"base64",type:String,required:!0}],r=[{name:"arrayBuffer",type:[ArrayBuffer,Uint8Array],required:!0}]},6488:function(e,t,n){},6491:function(e,t,n){"use strict";n.r(t);var i=n("8af1"),r={name:"Radio",mixins:[i["a"],i["f"]],props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007AFF"},value:{type:String,default:""}},data:function(){return{radioChecked:this.checked,radioValue:this.value}},computed:{checkedStyle:function(){return this.disabled?"background-color: #E1E1E1;border-color: ##D1D1D1;":"background-color: ".concat(this.color,";border-color: ").concat(this.color,";")}},watch:{checked:function(e){this.radioChecked=e},value:function(e){this.radioValue=e}},listeners:{"label-click":"_onClick","@label-click":"_onClick"},created:function(){this.$dispatch("RadioGroup","uni-radio-group-update",{type:"add",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("RadioGroup","uni-radio-group-update",{type:"remove",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onClick:function(e){this.disabled||this.radioChecked||(this.radioChecked=!0,this.$dispatch("RadioGroup","uni-radio-change",e,this))},_resetFormData:function(){this.radioChecked=this.min}}},a=r,o=(n("c96e"),n("0c7c")),s=Object(o["a"])(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-radio",e._g({attrs:{disabled:e.disabled},on:{click:e._onClick}},e.$listeners),[n("div",{staticClass:"uni-radio-wrapper"},[n("div",{staticClass:"uni-radio-input",class:{"uni-radio-input-checked":e.radioChecked,"uni-radio-input-disabled":e.disabled},style:e.radioChecked?e.checkedStyle:""}),e._t("default")],2)])}),[],!1,null,null,null);t["default"]=s.exports},"64d0":function(e,t,n){"use strict";var i=n("1757"),r=n.n(i);r.a},6575:function(e,t,n){"use strict";n.r(t),function(e){function i(t,n){var i=t.latitude,r=t.longitude,a=t.scale,o=t.name,s=t.address,u=e,c=u.invokeCallbackHandler;getApp().$router.push({type:"navigateTo",path:"/open-location",query:{latitude:i,longitude:r,scale:a,name:o,address:s}},(function(){c(n,{errMsg:"openLocation:ok"})}),(function(){c(n,{errMsg:"openLocation:fail"})}))}n.d(t,"openLocation",(function(){return i}))}.call(this,n("0dd1"))},"65a8":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return o})),n.d(t,"b",(function(){return s}));var i=44,r=50,a=768,o="UNI_LOCALE",s="onThemeChange"},6710:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("f2b3"),r=n("2608");function a(e){var t={};for(var n in e){var a=e[n];Object(i["k"])(a)&&(t[n]=Object(r["a"])(a),delete e[n])}return t}},6730:function(e,t,n){"use strict";var i=n("b18e"),r=n.n(i);r.a},"687b":function(e,t,n){},"68fb":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"createMediaQueryObserver",(function(){return c}));var i=n("62b5"),r=n("db70"),a=n("1634");function o(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),Object.defineProperty(e,i.key,i)}}var s=Object(i["a"])("requestMediaQueryObserver"),u=function(){function t(e,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),this.pageId=e.$page&&e.$page.id,this.component=e._$id||e,this.options=n}return function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(t,[{key:"observe",value:function(t,n){"function"===typeof n&&(this.options=t,this.reqId=s.push(n),e.publishHandler("requestMediaQueryObserver",{reqId:this.reqId,component:this.component,options:this.options},Object(a["a"])(this.component)?this.component:this.pageId))}},{key:"disconnect",value:function(){e.publishHandler("destroyMediaQueryObserver",{reqId:this.reqId},Object(a["a"])(this.component)?this.component:this.pageId)}}]),t}();function c(e,t){return e._isVue||(t=e,e=null),new u(e||Object(r["b"])("createMediaQueryObserver"),t)}}.call(this,n("0dd1"))},"6a26":function(e,t,n){},"6bd7":function(e,t,n){},"6bdf":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var i=n("85b6"),r=n("f2b3"),a=n("a470"),o=n("db8e");function s(e,t){var n={},o=Object(a["a"])(),s=o.top;if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=Object(i["b"])(e)),t.rect||t.size){var u=e.getBoundingClientRect();t.rect&&(n.left=u.left,n.right=u.right,n.top=u.top-s,n.bottom=u.bottom-s),t.size&&(n.width=u.width,n.height=u.height)}if(Array.isArray(t.properties)){var c=e.__vue__&&e.__vue__.$props;c&&t.properties.forEach((function(e){"string"===typeof e&&(e=Object(r["b"])(e),null!=c[e]&&(n[e]=c[e]))}))}if(t.scrollOffset&&("UNI-SCROLL-VIEW"===e.tagName&&e.__vue__&&e.__vue__.getScrollPosition?Object.assign(n,e.__vue__.getScrollPosition()):(n.scrollLeft=0,n.scrollTop=0,n.scrollHeight=0,n.scrollWidth=0)),Array.isArray(t.computedStyle)){var l=getComputedStyle(e);t.computedStyle.forEach((function(e){n[e]=l[e]}))}return t.context&&e.__vue__&&e.__vue__._getContextInfo&&(n.context=e.__vue__._getContextInfo()),n}function u(e,t,n,i,r){var a=Object(o["a"])(Object(o["b"])(t,e));if(!a||a&&8===a.nodeType)return i?null:[];if(i){var u=a.matches(n)?a:a.querySelector(n);return u?s(u,r):null}var c=[],l=a.querySelectorAll(n);return l&&l.length&&(c=[].map.call(l,(function(e){return s(e,r)}))),a.matches(n)&&c.unshift(s(a,r)),c}function c(t,n){var i,r=t.reqId,a=t.reqs;if(n._isVue)i=n;else{var o=getCurrentPages(),s=o.find((function(e){return e.$page.id===n}));if(!s)throw new Error("Not Found:Page[".concat(n,"]"));i=s.$vm}var c=[];a.forEach((function(e){var t=e.component,n=e.selector,r=e.single,a=e.fields;0===t?c.push(function(e){var t={};if(e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset){var n=document.documentElement,i=document.body;t.scrollLeft=n.scrollLeft||i.scrollLeft||0,t.scrollTop=n.scrollTop||i.scrollTop||0,t.scrollHeight=n.scrollHeight||i.scrollHeight||0,t.scrollWidth=n.scrollWidth||i.scrollWidth||0}return t}(a)):c.push(u(i,t,n,r,a))})),e.publishHandler("onRequestComponentInfo",{reqId:r,res:c})}}).call(this,n("501c"))},"6cdd":function(e,t,n){},"6d7c":function(e,t,n){"use strict";(function(e){var i=n("8af1"),r=["navigate","redirect","switchTab","reLaunch","navigateBack"],a=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],o=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"];t["a"]={name:"Navigator",mixins:[i["c"]],props:{hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator:function(e){return~r.indexOf(e)}},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""},animationType:{type:String,validator:function(e){return!e||~a.concat(o).indexOf(e)},default:""},animationDuration:{type:[String,Number],default:300}},methods:{_onClick:function(t){if("navigateBack"===this.openType||this.url){var n=parseInt(this.animationDuration);switch(this.openType){case"navigate":uni.navigateTo({url:this.url,animationType:this.animationType||"pop-in",animationDuration:n});break;case"redirect":uni.redirectTo({url:this.url,exists:this.exists});break;case"switchTab":uni.switchTab({url:this.url});break;case"reLaunch":uni.reLaunch({url:this.url});break;case"navigateBack":uni.navigateBack({delta:this.delta,animationType:this.animationType||"pop-out",animationDuration:n});break;default:break}}else e.error("<navigator/> should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab")}}}}).call(this,n("3ad9")["default"])},"6e0c":function(e,t,n){"use strict";n.r(t),n.d(t,"$on",(function(){return s})),n.d(t,"$off",(function(){return u})),n.d(t,"$once",(function(){return c})),n.d(t,"$emit",(function(){return l}));var i=n("8bbf"),r=n.n(i),a=new r.a;function o(e,t,n){return e[t].apply(e,n)}function s(){return o(a,"$on",Array.prototype.slice.call(arguments))}function u(){return o(a,"$off",Array.prototype.slice.call(arguments))}function c(){return o(a,"$once",Array.prototype.slice.call(arguments))}function l(){return o(a,"$emit",Array.prototype.slice.call(arguments))}},"6fa7":function(e,t,n){"use strict";n.r(t);var r=n("8af1"),a=n("f2b3"),o=n("4ccd"),s=n("da71"),u=n("a6b0");function c(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function d(){if(this.mode===h.TIME)return"00:00";if(this.mode===h.DATE){var e=(new Date).getFullYear()-150;switch(this.fields){case p.YEAR:return e.toString();case p.MONTH:return e+"-01";default:return e+"-01-01"}}return""}function f(){if(this.mode===h.TIME)return"23:59";if(this.mode===h.DATE){var e=(new Date).getFullYear()+150;switch(this.fields){case p.YEAR:return e.toString();case p.MONTH:return e+"-12";default:return e+"-12-31"}}return""}var h={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},p={YEAR:"year",MONTH:"month",DAY:"day"},g={PICKER:"picker",SELECT:"select"},v={name:"Picker",components:{keypress:s["a"]},mixins:[u["c"],r["a"],o["default"]],props:{name:{type:String,default:""},range:{type:Array,default:function(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:h.SELECTOR,validator:function(e){return Object.values(h).includes(e)}},fields:{type:String,default:""},start:{type:String,default:d},end:{type:String,default:f},disabled:{type:[Boolean,String],default:!1},selectorType:{type:String,default:""}},data:function(){return{valueSync:null,visible:!1,contentVisible:!1,popover:null,valueChangeSource:"",timeArray:[],dateArray:[],valueArray:[],oldValueArray:[]}},computed:{rangeArray:function(){var e=this.range;switch(this.mode){case h.SELECTOR:return[e];case h.MULTISELECTOR:return e;case h.TIME:return this.timeArray;case h.DATE:var t=this.dateArray;switch(this.fields){case p.YEAR:return[t[0]];case p.MONTH:return[t[0],t[1]];default:return[t[0],t[1],t[2]]}}return[]},startArray:function(){return this._getDateValueArray(this.start,d.bind(this)())},endArray:function(){return this._getDateValueArray(this.end,f.bind(this)())},selectorTypeComputed:function(){var e=this.selectorType;return Object.values(g).includes(e)?e:0===String(navigator.vendor).indexOf("Apple")&&navigator.maxTouchPoints>0?g.PICKER:g.SELECT},system:function(){if(this.mode===h.DATE&&!Object.values(p).includes(this.fields)&&this.isDesktop&&/win|mac/i.test(navigator.platform)){if("Google Inc."===navigator.vendor)return"chrome";if(/Firefox/.test(navigator.userAgent))return"firefox"}return""}},watch:{visible:function(e){var t=this;e?(clearTimeout(this.__contentVisibleDelay),this.contentVisible=e,this._select()):this.__contentVisibleDelay=setTimeout((function(){t.contentVisible=e}),300)},value:function(){this._setValueSync()},mode:function(){this._setValueSync()},range:function(){this._setValueSync()},valueSync:function(){this._setValueArray()},valueArray:function(e){var t=this;if(this.mode===h.TIME||this.mode===h.DATE){var n=this.mode===h.TIME?this._getTimeValue:this._getDateValue,i=this.valueArray,r=this.startArray,a=this.endArray;if(this.mode===h.DATE){var o=this.dateArray,s=o[2].length,u=Number(o[2][i[2]])||1,c=new Date("".concat(o[0][i[0]],"/").concat(o[1][i[1]],"/").concat(u)).getDate();c<u&&(i[2]-=c+s-u)}n(i)<n(r)?this._cloneArray(i,r):n(i)>n(a)&&this._cloneArray(i,a)}e.forEach((function(e,n){e!==t.oldValueArray[n]&&(t.oldValueArray[n]=e,t.mode===h.MULTISELECTOR&&t.$trigger("columnchange",{},{column:n,value:e}))}))}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this}),this._createTime(),this._createDate(),this._setValueSync()},beforeDestroy:function(){this.$refs.picker.remove(),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_show:function(e){var t=this;if(!this.disabled){this.valueChangeSource="";var n=this.$refs.picker;n.remove(),(document.querySelector("uni-app")||document.body).appendChild(n),n.style.display="block";var i=e.currentTarget.getBoundingClientRect();this.popover={top:i.top,left:i.left,width:i.width,height:i.height},setTimeout((function(){t.visible=!0}),20)}},_getFormData:function(){return{value:this.valueSync,key:this.name}},_resetFormData:function(){switch(this.mode){case h.SELECTOR:this.valueSync=0;break;case h.MULTISELECTOR:this.valueSync=this.value.map((function(e){return 0}));break;case h.DATE:case h.TIME:this.valueSync="";break;default:break}},_createTime:function(){var e=[],t=[];e.splice(0,e.length);for(var n=0;n<24;n++)e.push((n<10?"0":"")+n);t.splice(0,t.length);for(var i=0;i<60;i++)t.push((i<10?"0":"")+i);this.timeArray.push(e,t)},_createDate:function(){for(var e=[],t=function(e){var t=(new Date).getFullYear(),n=t-150,i=t+150;if(e.start){var r=new Date(e.start).getFullYear();!isNaN(r)&&r<n&&(n=r)}if(e.end){var a=new Date(e.end).getFullYear();!isNaN(a)&&a>i&&(i=a)}return{start:n,end:i}}(this),n=t.start,i=t.end;n<=i;n++)e.push(String(n));for(var r=[],a=1;a<=12;a++)r.push((a<10?"0":"")+a);for(var o=[],s=1;s<=31;s++)o.push((s<10?"0":"")+s);this.dateArray.push(e,r,o)},_getTimeValue:function(e){return 60*e[0]+e[1]},_getDateValue:function(e){return 31*e[0]*12+31*(e[1]||0)+(e[2]||0)},_cloneArray:function(e,t){for(var n=0;n<e.length&&n<t.length;n++)e[n]=t[n]},_setValueSync:function(){var e=this.value;switch(this.mode){case h.MULTISELECTOR:Array.isArray(e)||(e=this.valueArray),Array.isArray(this.valueSync)||(this.valueSync=[]);for(var t=this.valueSync.length=Math.max(e.length,this.range.length),n=0;n<t;n++){var i=Number(e[n]),r=Number(this.valueSync[n]),a=isNaN(i)?isNaN(r)?0:r:i,o=this.range[n]?this.range[n].length-1:0;this.valueSync.splice(n,1,a<0||a>o?0:a)}break;case h.TIME:case h.DATE:this.valueSync=String(e);break;default:var s=Number(e);this.valueSync=s<0?0:s;break}},_setValueArray:function(){var e,t=this.valueSync;switch(this.mode){case h.MULTISELECTOR:e=c(t);break;case h.TIME:e=this._getDateValueArray(t,Object(a["g"])({mode:h.TIME}));break;case h.DATE:e=this._getDateValueArray(t,Object(a["g"])({mode:h.DATE}));break;default:e=[t];break}this.oldValueArray=c(e),this.valueArray=c(e)},_getValue:function(){var e=this,t=this.valueArray;switch(this.mode){case h.SELECTOR:return t[0];case h.MULTISELECTOR:return t.map((function(e){return e}));case h.TIME:return this.valueArray.map((function(t,n){return e.timeArray[n][t]})).join(":");case h.DATE:return this.valueArray.map((function(t,n){return e.dateArray[n][t]})).join("-")}},_getDateValueArray:function(e,t){var n,i=this.mode===h.DATE?"-":":",r=this.mode===h.DATE?this.dateArray:this.timeArray;if(this.mode===h.TIME)n=2;else switch(this.fields){case p.YEAR:n=1;break;case p.MONTH:n=2;break;default:n=3;break}for(var a=String(e).split(i),o=[],s=0;s<n;s++){var u=a[s];o.push(r[s].indexOf(u))}return o.indexOf(-1)>=0&&(o=t?this._getDateValueArray(t):o.map((function(){return 0}))),o},_change:function(){this._close(),this.valueChangeSource="click";var e=this._getValue();this.valueSync=Array.isArray(e)?e.map((function(e){return e})):e,this.$trigger("change",{},{value:e})},_cancel:function(e){if("firefox"===this.system){var t=this.popover,n=t.top,i=t.left,r=t.width,a=t.height,o=e.pageX,s=e.pageY;if(o>i&&o<i+r&&s>n&&s<n+a)return}this._close(),this.$trigger("cancel",{},{})},_close:function(){var e=this;this.visible=!1,setTimeout((function(){var t=e.$refs.picker;t.remove(),e.$el.prepend(t),t.style.display="none"}),260)},_select:function(){this.mode===h.SELECTOR&&this.selectorTypeComputed===g.SELECT&&(this.$refs.select.scrollTop=34*this.valueArray[0])},_input:function(e){var t=this;this.valueSync=e.target.value,this.$nextTick((function(){t._change()}))},_fixInputPosition:function(e){if("chrome"===this.system){var t=this.$el.getBoundingClientRect(),n=this.$refs.input.style;n.left="".concat(e.clientX-t.left-48,"px"),n.top="".concat(e.clientY-t.top-16,"px")}},_pickerViewChange:function(e){this.valueArray=this._l10nColumn(e.detail.value,!0)},_l10nColumn:function(e,t){if(this.mode===h.DATE){var n=Object(u["a"])();if(!n.startsWith("zh"))switch(this.fields){case p.YEAR:return e;case p.MONTH:return[e[1],e[0]];default:switch(n){case"es":case"fr":return[e[2],e[1],e[0]];default:return t?[e[2],e[0],e[1]]:[e[1],e[2],e[0]]}}}return e},_l10nItem:function(e,t){if(this.mode===h.DATE){var n=Object(u["a"])();if(n.startsWith("zh")){return e+["年","月","日"][t]}if(this.fields!==p.YEAR&&t===(this.fields===p.MONTH||"es"!==n&&"fr"!==n?0:1)){var i;switch(n){case"es":i=["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"];break;case"fr":i=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"];break;default:i=["January","February","March","April","May","June","July","August","September","October","November","December"];break}return i[Number(e)-1]}}return e}}},m=v,y=(n("2d89"),n("0c7c")),b=Object(y["a"])(m,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-picker",e._g({attrs:{disabled:e.disabled},on:{click:e._show}},e.$listeners),[n("div",{ref:"picker",staticClass:"uni-picker-container",class:"uni-"+e.mode+"-"+e.selectorTypeComputed,on:{wheel:function(e){e.preventDefault()},touchmove:function(e){e.preventDefault()}}},[n("transition",{attrs:{name:"uni-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"uni-mask uni-picker-mask",on:{click:e._cancel,mousemove:e._fixInputPosition}})]),e.system?e._e():n("div",{staticClass:"uni-picker-custom",class:{"uni-picker-toggle":e.visible},style:e.popupStyle.content},[n("div",{staticClass:"uni-picker-header",on:{click:function(e){e.stopPropagation()}}},[n("div",{staticClass:"uni-picker-action uni-picker-action-cancel",on:{click:e._cancel}},[e._v(" "+e._s(e.$$t("uni.picker.cancel"))+" ")]),n("div",{staticClass:"uni-picker-action uni-picker-action-confirm",on:{click:e._change}},[e._v(" "+e._s(e.$$t("uni.picker.done"))+" ")])]),e.contentVisible?n("v-uni-picker-view",{staticClass:"uni-picker-content",attrs:{value:e._l10nColumn(e.valueArray)},on:{change:e._pickerViewChange}},e._l(e._l10nColumn(e.rangeArray),(function(t,r){return n("v-uni-picker-view-column",{key:r},e._l(t,(function(t,a){return n("div",{key:a,staticClass:"uni-picker-item"},[e._v(" "+e._s("object"===i(t)?t[e.rangeKey]||"":e._l10nItem(t,r))+" ")])})),0)})),1):e._e(),n("div",{ref:"select",staticClass:"uni-picker-select",on:{wheel:function(e){e.stopPropagation()},touchmove:function(e){e.stopPropagation()}}},e._l(e.rangeArray[0],(function(t,r){return n("div",{key:r,staticClass:"uni-picker-item",class:{selected:e.valueArray[0]===r},on:{click:function(t){e.valueArray[0]=r,e._change()}}},[e._v(" "+e._s("object"===i(t)?t[e.rangeKey]||"":t)+" ")])})),0),n("div",{style:e.popupStyle.triangle})],1)],1),n("div",[e._t("default")],2),e.system?n("div",{staticClass:"uni-picker-system",on:{mousemove:e._fixInputPosition}},[n("input",{ref:"input",class:[e.system,e.popupStyle.dock],attrs:{type:e.mode,tabindex:"-1",min:e.start,max:e.end},domProps:{value:e.valueSync},on:{change:function(t){return t.stopPropagation(),e._input(t)}}})]):e._e(),n("keypress",{attrs:{disable:!e.visible},on:{esc:e._cancel,enter:e._change}})],1)}),[],!1,null,null,null);t["default"]=b.exports},"70bb":function(e,t,n){"use strict";n.r(t),n.d(t,"openLocation",(function(){return i}));var i={latitude:{type:Number,required:!0},longitude:{type:Number,required:!0},scale:{type:Number,validator:function(e,t){e=Math.floor(e),t.scale=e>=5&&e<=18?e:18},default:18},name:{type:String},address:{type:String}}},"70f4":function(e,t,n){"use strict";n.r(t);var i=n("d977"),r=i["a"],a=(n("6730"),n("0c7c")),o=Object(a["a"])(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-label",e._g({class:{"uni-label-pointer":e.pointer},on:{click:e._onClick}},e.$listeners),[e._t("default")],2)}),[],!1,null,null,null);t["default"]=o.exports},7107:function(e,t,n){"use strict";(function(e){function i(t){var n=t.options,i=t.callbackId,r=n.family,a=n.source,o=n.desc,s=void 0===o?{}:o,u=document.fonts;if(u){var c=new FontFace(r,a,s);c.load().then((function(){u.add(c),e.publishHandler("onLoadFontFaceCallback",{callbackId:i,data:{errMsg:"loadFontFace:ok"}})})).catch((function(t){e.publishHandler("onLoadFontFaceCallback",{callbackId:i,data:{errMsg:"loadFontFace:fail ".concat(t)}})}))}else{var l=document.createElement("style");l.innerText='@font-face{font-family:"'.concat(r,'";src:').concat(a,";font-style:").concat(s.style,";font-weight:").concat(s.weight,";font-stretch:").concat(s.stretch,";unicode-range:").concat(s.unicodeRange,";font-variant:").concat(s.variant,";font-feature-settings:").concat(s.featureSettings,";}"),document.head.appendChild(l),e.publishHandler("onLoadFontFaceCallback",{callbackId:i,data:{errMsg:"loadFontFace:ok"}})}}n.d(t,"a",(function(){return i}))}).call(this,n("501c"))},"72b3":function(e,t,n){"use strict";function i(e,t,n){return e>t-n&&e<t+n}function r(e,t){return i(e,0,t)}function a(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}n.d(t,"a",(function(){return a})),a.prototype._solve=function(e,t){var n=this._c,i=this._m,r=this._k,a=n*n-4*i*r;if(0===a){var o=-n/(2*i),s=e,u=t/(o*e);return{x:function(e){return(s+u*e)*Math.pow(Math.E,o*e)},dx:function(e){var t=Math.pow(Math.E,o*e);return o*(s+u*e)*t+u*t}}}if(a>0){var c=(-n-Math.sqrt(a))/(2*i),l=(-n+Math.sqrt(a))/(2*i),d=(t-c*e)/(l-c),f=e-d;return{x:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,c*e)),n||(n=this._powER2T=Math.pow(Math.E,l*e)),f*t+d*n},dx:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,c*e)),n||(n=this._powER2T=Math.pow(Math.E,l*e)),f*c*t+d*l*n}}}var h=Math.sqrt(4*i*r-n*n)/(2*i),p=-n/2*i,g=e,v=(t-p*e)/h;return{x:function(e){return Math.pow(Math.E,p*e)*(g*Math.cos(h*e)+v*Math.sin(h*e))},dx:function(e){var t=Math.pow(Math.E,p*e),n=Math.cos(h*e),i=Math.sin(h*e);return t*(v*h*n-g*h*i)+p*t*(v*i+g*n)}}},a.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},a.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},a.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!r(t,.4)){t=t||0;var i=this._endPosition;this._solution&&(r(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),i=this._solution.x((n-this._startTime)/1e3),r(t,.4)&&(t=0),r(i,.4)&&(i=0),i+=this._endPosition),this._solution&&r(i-e,.4)&&r(t,.4)||(this._endPosition=e,this._solution=this._solve(i-this._endPosition,t),this._startTime=n)}},a.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},a.prototype.done=function(e){return e||(e=(new Date).getTime()),i(this.x(),this._endPosition,.4)&&r(this.dx(),.4)},a.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},a.prototype.springConstant=function(){return this._k},a.prototype.damping=function(){return this._c},a.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]}},"73a6":function(e,t,n){"use strict";(function(e){var i=n("8aec"),r=n("f2b3"),a=n("d4cd"),o=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return!!r["s"]&&{passive:e}},s=o();t["a"]={name:"ScrollView",mixins:[i["a"]],props:{scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"back"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},data:function(){return{lastScrollTop:this.scrollTopNumber,lastScrollLeft:this.scrollLeftNumber,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshRotate:0,refreshState:""}},computed:{upperThresholdNumber:function(){var e=Number(this.upperThreshold);return isNaN(e)?50:e},lowerThresholdNumber:function(){var e=Number(this.lowerThreshold);return isNaN(e)?50:e},scrollTopNumber:function(){return Number(this.scrollTop)||0},scrollLeftNumber:function(){return Number(this.scrollLeft)||0}},watch:{scrollTopNumber:function(e){this._scrollTopChanged(e)},scrollLeftNumber:function(e){this._scrollLeftChanged(e)},scrollIntoView:function(e){this._scrollIntoViewChanged(e)},refresherTriggered:function(e){!0===e?this._setRefreshState("refreshing"):!1===e&&this._setRefreshState("restore")}},mounted:function(){var e=this,t=null,n=null;this._attached=!0,this.toUpperNumber=0,this.triggerAbort=!1,this.beforeRefreshing=!1,this._scrollTopChanged(this.scrollTopNumber),this._scrollLeftChanged(this.scrollLeftNumber),this._scrollIntoViewChanged(this.scrollIntoView),this.__handleScroll=function(t){t.preventDefault(),t.stopPropagation(),e._handleScroll.bind(e,t)()},this.__handleTouchMove=function(i){if(null!==t){var r=i.touches[0].pageX,a=i.touches[0].pageY,o=e.$refs.main;if(Math.abs(r-t.x)>Math.abs(a-t.y))if(e.scrollX){if(0===o.scrollLeft&&r>t.x)return void(n=!1);if(o.scrollWidth===o.offsetWidth+o.scrollLeft&&r<t.x)return void(n=!1);n=!0}else n=!1;else if(e.scrollY)if(0===o.scrollTop&&a>t.y)n=!1,e.refresherEnabled&&!1!==i.cancelable&&i.preventDefault();else{if(o.scrollHeight===o.offsetHeight+o.scrollTop&&a<t.y)return void(n=!1);n=!0}else n=!1;if(n&&i.stopPropagation(),0===o.scrollTop&&1===i.touches.length&&(e.refreshState="pulling"),e.refresherEnabled&&"pulling"===e.refreshState){var s=a-t.y;0===e.toUpperNumber&&(e.toUpperNumber=a),e.beforeRefreshing?(e.refresherHeight=s+e.refresherThreshold,e.triggerAbort=!1):(e.refresherHeight=a-e.toUpperNumber,e.refresherHeight>0&&(e.triggerAbort=!0,e.$trigger("refresherpulling",i,{deltaY:s})));var u=e.refresherHeight/e.refresherThreshold;e.refreshRotate=360*(u>1?1:u)}}},this.__handleTouchStart=function(e){1===e.touches.length&&(Object(a["a"])({disable:!0}),t={x:e.touches[0].pageX,y:e.touches[0].pageY})},this.__handleTouchEnd=function(n){t=null,Object(a["a"])({disable:!1}),e.refresherHeight>=e.refresherThreshold?e._setRefreshState("refreshing"):e._setRefreshState("refresherabort")},this.$refs.main.addEventListener("touchstart",this.__handleTouchStart,s),this.$refs.main.addEventListener("touchmove",this.__handleTouchMove,o(!1)),this.$refs.main.addEventListener("scroll",this.__handleScroll,o(!1)),this.$refs.main.addEventListener("touchend",this.__handleTouchEnd,s),Object(a["b"])()},activated:function(){this.scrollY&&(this.$refs.main.scrollTop=this.lastScrollTop),this.scrollX&&(this.$refs.main.scrollLeft=this.lastScrollLeft)},beforeDestroy:function(){this.$refs.main.removeEventListener("touchstart",this.__handleTouchStart,s),this.$refs.main.removeEventListener("touchmove",this.__handleTouchMove,s),this.$refs.main.removeEventListener("scroll",this.__handleScroll,o(!1)),this.$refs.main.removeEventListener("touchend",this.__handleTouchEnd,s)},methods:{scrollTo:function(e,t){var n=this.$refs.main;e<0?e=0:"x"===t&&e>n.scrollWidth-n.offsetWidth?e=n.scrollWidth-n.offsetWidth:"y"===t&&e>n.scrollHeight-n.offsetHeight&&(e=n.scrollHeight-n.offsetHeight);var i=0,r="";"x"===t?i=n.scrollLeft-e:"y"===t&&(i=n.scrollTop-e),0!==i&&(this.$refs.content.style.transition="transform .3s ease-out",this.$refs.content.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?r="translateX("+i+"px) translateZ(0)":"y"===t&&(r="translateY("+i+"px) translateZ(0)"),this.$refs.content.removeEventListener("transitionend",this.__transitionEnd),this.$refs.content.removeEventListener("webkitTransitionEnd",this.__transitionEnd),this.__transitionEnd=this._transitionEnd.bind(this,e,t),this.$refs.content.addEventListener("transitionend",this.__transitionEnd),this.$refs.content.addEventListener("webkitTransitionEnd",this.__transitionEnd),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),this.$refs.content.style.transform=r,this.$refs.content.style.webkitTransform=r)},_handleTrack:function(e){if("start"===e.detail.state)return this._x=e.detail.x,this._y=e.detail.y,void(this._noBubble=null);"end"===e.detail.state&&(this._noBubble=!1),null===this._noBubble&&this.scrollY&&(Math.abs(this._y-e.detail.y)/Math.abs(this._x-e.detail.x)>1?this._noBubble=!0:this._noBubble=!1),null===this._noBubble&&this.scrollX&&(Math.abs(this._x-e.detail.x)/Math.abs(this._y-e.detail.y)>1?this._noBubble=!0:this._noBubble=!1),this._x=e.detail.x,this._y=e.detail.y,this._noBubble&&e.stopPropagation()},_handleScroll:function(e){var t=e.target;this.$trigger("scroll",e,{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,scrollHeight:t.scrollHeight,scrollWidth:t.scrollWidth,deltaX:this.lastScrollLeft-t.scrollLeft,deltaY:this.lastScrollTop-t.scrollTop}),this.scrollY&&(t.scrollTop<=this.upperThresholdNumber&&this.lastScrollTop-t.scrollTop>0&&e.timeStamp-this.lastScrollToUpperTime>200&&(this.$trigger("scrolltoupper",e,{direction:"top"}),this.lastScrollToUpperTime=e.timeStamp),t.scrollTop+t.offsetHeight+this.lowerThresholdNumber>=t.scrollHeight&&this.lastScrollTop-t.scrollTop<0&&e.timeStamp-this.lastScrollToLowerTime>200&&(this.$trigger("scrolltolower",e,{direction:"bottom"}),this.lastScrollToLowerTime=e.timeStamp)),this.scrollX&&(t.scrollLeft<=this.upperThresholdNumber&&this.lastScrollLeft-t.scrollLeft>0&&e.timeStamp-this.lastScrollToUpperTime>200&&(this.$trigger("scrolltoupper",e,{direction:"left"}),this.lastScrollToUpperTime=e.timeStamp),t.scrollLeft+t.offsetWidth+this.lowerThresholdNumber>=t.scrollWidth&&this.lastScrollLeft-t.scrollLeft<0&&e.timeStamp-this.lastScrollToLowerTime>200&&(this.$trigger("scrolltolower",e,{direction:"right"}),this.lastScrollToLowerTime=e.timeStamp)),this.lastScrollTop=t.scrollTop,this.lastScrollLeft=t.scrollLeft},_scrollTopChanged:function(e){this.scrollY&&(this._innerSetScrollTop?this._innerSetScrollTop=!1:this.scrollWithAnimation?this.scrollTo(e,"y"):this.$refs.main.scrollTop=e)},_scrollLeftChanged:function(e){this.scrollX&&(this._innerSetScrollLeft?this._innerSetScrollLeft=!1:this.scrollWithAnimation?this.scrollTo(e,"x"):this.$refs.main.scrollLeft=e)},_scrollIntoViewChanged:function(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return void e.error("id error: scroll-into-view=".concat(t));var n=this.$el.querySelector("#"+t);if(n){var i=this.$refs.main.getBoundingClientRect(),r=n.getBoundingClientRect();if(this.scrollX){var a=r.left-i.left,o=this.$refs.main.scrollLeft,s=o+a;this.scrollWithAnimation?this.scrollTo(s,"x"):this.$refs.main.scrollLeft=s}if(this.scrollY){var u=r.top-i.top,c=this.$refs.main.scrollTop,l=c+u;this.scrollWithAnimation?this.scrollTo(l,"y"):this.$refs.main.scrollTop=l}}}},_transitionEnd:function(e,t){this.$refs.content.style.transition="",this.$refs.content.style.webkitTransition="",this.$refs.content.style.transform="",this.$refs.content.style.webkitTransform="";var n=this.$refs.main;"x"===t?(n.style.overflowX=this.scrollX?"auto":"hidden",n.scrollLeft=e):"y"===t&&(n.style.overflowY=this.scrollY?"auto":"hidden",n.scrollTop=e),this.$refs.content.removeEventListener("transitionend",this.__transitionEnd),this.$refs.content.removeEventListener("webkitTransitionEnd",this.__transitionEnd)},_setRefreshState:function(e){switch(e){case"refreshing":this.refresherHeight=this.refresherThreshold,this.beforeRefreshing||(this.beforeRefreshing=!0,this.$trigger("refresherrefresh",{},{}));break;case"restore":case"refresherabort":this.beforeRefreshing=!1,this.refresherHeight=this.toUpperNumber=0,"restore"===e&&(this.triggerAbort=!1,this.$trigger("refresherrestore",{},{})),"refresherabort"===e&&this.triggerAbort&&(this.triggerAbort=!1,this.$trigger("refresherabort",{},{}));break}this.refreshState=e},getScrollPosition:function(){var e=this.$refs.main;return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth}}}}}).call(this,n("3ad9")["default"])},"764a":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var i=n("f2b3"),r=n("85b6"),a=n("65a8"),o=n("33ed"),s=!!i["s"]&&{passive:!1};function u(t){if(uni.canIUse("css.var")){var n=parseFloat(__uniConfig.tabBar.height),i=t.$parent.$parent,r=i.navigationBar.type,o="default"===r||"float"===r?a["a"]:0,s=getApp().$children[0].showTabBar?isNaN(n)?a["d"]:n:0,u=uni.canIUse("css.env")?"env":uni.canIUse("css.constant")?"constant":"",c=o&&u?"calc(".concat(o,"px + ").concat(u,"(safe-area-inset-top))"):"".concat(o,"px"),l=s&&u?"calc(".concat(s,"px + ").concat(u,"(safe-area-inset-bottom))"):"".concat(s,"px"),d=document.documentElement.style;d.setProperty("--window-top","calc(var(--top-window-height) + ".concat(c,")")),d.setProperty("--window-bottom",l),e.debug("".concat(t.$page.route,"[").concat(t.$page.id,"]:--window-top=").concat(c)),e.debug("".concat(t.$page.route,"[").concat(t.$page.id,"]:--window-bottom=").concat(l))}}function c(e){var t=!1,n=!1;e("onPageLoad",(function(e){u(e)})),e("onPageShow",(function(e){var a=e.$parent.$parent;e._isMounted&&u(e),n&&document.removeEventListener("touchmove",n,s),a.disableScroll&&(n=o["b"],document.addEventListener("touchmove",n,s));var c=Object(r["c"])(e.$options,"onPageScroll"),l=Object(r["c"])(e.$options,"onReachBottom"),d=a.onReachBottomDistance,f=Object(i["l"])(a.titleNView)&&"transparent"===a.titleNView.type||Object(i["l"])(a.navigationBar)&&"transparent"===a.navigationBar.type;t&&document.removeEventListener("scroll",t),(f||c||l)&&(t=Object(o["a"])(e.$page.id,{enablePageScroll:c,enablePageReachBottom:l,onReachBottomDistance:d,enableTransparentTitleNView:f}),requestAnimationFrame((function(){document.addEventListener("scroll",t)})))}))}}).call(this,n("3ad9")["default"])},7691:function(e,t,n){},"77e0":function(e,t,n){"use strict";n.r(t),function(e,i){var r=n("a6b0");t["default"]={data:function(){return{showToast:{visible:!1}}},created:function(){var t=this,n="",a=function(e){return function(i){n=e,setTimeout((function(){t.showToast=i}),10)}};e.on("onShowToast",a("onShowToast")),e.on("onShowLoading",a("onShowLoading"));var o=function(e){return function(){if(n){var a="";if("onHideToast"===e&&"onShowToast"!==n?a=Object(r["g"])("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==n&&(a=Object(r["g"])("uni.showLoading.unpaired")),a)return i.warn(a);n="",setTimeout((function(){t.showToast.visible=!1}),10)}}};e.on("onHidePopup",o("onHidePopup")),e.on("onHideToast",o("onHideToast")),e.on("onHideLoading",o("onHideLoading"))}}}.call(this,n("0dd1"),n("3ad9")["default"])},7822:function(e,t,n){},"78c8":function(e,t,n){"use strict";n.r(t),n.d(t,"getDeviceInfo",(function(){return h})),n.d(t,"getAppBaseInfo",(function(){return p})),n.d(t,"getSystemInfoSync",(function(){return g})),n.d(t,"getSystemInfo",(function(){return v}));var i,r=n("c6af"),a="__DC_STAT_UUID",o=window.localStorage||window.sessionStorage||{},s=function(){if(i=i||o[a],!i){i=Date.now()+""+Math.floor(1e7*Math.random());try{o[a]=i}catch(e){}}return i},u=n("fb3e"),c=n("f2b3"),l={},d=!0;function f(){d&&(l=Object(u["getBrowserInfo"])())}function h(){f();var e=l,t=e.deviceBrand,n=e.deviceModel,i=e.brand,r=e.model,a=e.platform,o=e.system,u=e.deviceOrientation,c=e.deviceType;return{brand:i,deviceBrand:t,deviceModel:n,devicePixelRatio:window.devicePixelRatio,deviceId:s(),deviceOrientation:u,deviceType:c,model:r,platform:a,system:o}}function p(){f();var e=l,t=e.theme,n=e.language,i=e.browserName,r=e.browserVersion,a=uni&&uni.getLocale?uni.getLocale():n;return{appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:a,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:i,hostVersion:r,hostTheme:t,hostLanguage:n,language:n,SDKVersion:"",theme:t,version:""}}function g(){d=!0,f(),d=!1;var e=Object(r["getWindowInfo"])(),t=h(),n=p();d=!0;var i=l,a=i.ua,o=i.browserName,s=i.browserVersion,u=i.osname,g=i.osversion,v=Object.assign({},e,t,n,{browserName:o,browserVersion:s,fontSizeSetting:n.hostFontSizeSetting,osName:u.toLocaleLowerCase(),osVersion:g,osLanguage:void 0,osTheme:void 0,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,ua:a});return delete v.screenTop,delete v.enableDebug,__uniConfig.darkmode||delete v.theme,Object(c["r"])(v)}function v(){return g()}},"79d5":function(e,t,n){"use strict";function i(e){if(e)return e.$holder;var t=getCurrentPages(),n=t.length;return n?t[n-1].$holder:void 0}function r(e){var t=getCurrentPages(),n=t.length;return!!n&&t[n-1].$holder===e}n.r(t),n.d(t,"getPageHolder",(function(){return i})),n.d(t,"isCurrentPage",(function(){return r}))},"7bab":function(e,t,n){"use strict";function i(){var e=document.getElementById("#clipboard"),t=e?e.value:void 0;return t?{data:t,errMsg:"getClipboardData:ok"}:{errMsg:"getClipboardData:fail"}}function r(e){var t=e.data,n=document.getElementById("#clipboard");n&&n.remove();var i=document.createElement("textarea");i.id="#clipboard",i.style.position="fixed",i.style.top="-9999px",i.style.zIndex="-9999",document.body.appendChild(i),i.value=t,i.select(),i.setSelectionRange(0,i.value.length);var r=document.execCommand("Copy",!1,null);return i.blur(),r?{errMsg:"setClipboardData:ok"}:{errMsg:"setClipboardData:fail"}}n.r(t),n.d(t,"getClipboardData",(function(){return i})),n.d(t,"setClipboardData",(function(){return r}))},"7bb3":function(e,t,n){"use strict";n.r(t);var i=n("8af1"),r={name:"Checkbox",mixins:[i["a"],i["f"]],props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},data:function(){return{checkboxChecked:this.checked,checkboxValue:this.value}},watch:{checked:function(e){this.checkboxChecked=e},value:function(e){this.checkboxValue=e}},listeners:{"label-click":"_onClick","@label-click":"_onClick"},created:function(){this.$dispatch("CheckboxGroup","uni-checkbox-group-update",{type:"add",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("CheckboxGroup","uni-checkbox-group-update",{type:"remove",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onClick:function(e){this.disabled||(this.checkboxChecked=!this.checkboxChecked,this.$dispatch("CheckboxGroup","uni-checkbox-change",e))},_resetFormData:function(){this.checkboxChecked=!1}}},a=r,o=(n("f53a"),n("0c7c")),s=Object(o["a"])(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-checkbox",e._g({attrs:{disabled:e.disabled},on:{click:e._onClick}},e.$listeners),[n("div",{staticClass:"uni-checkbox-wrapper"},[n("div",{staticClass:"uni-checkbox-input",class:{"uni-checkbox-input-checked":e.checkboxChecked,"uni-checkbox-input-disabled":e.disabled},style:{color:e.color}}),e._t("default")],2)])}),[],!1,null,null,null);t["default"]=s.exports},"7c2b":function(e,t,n){"use strict";var i=n("e804"),r=n.n(i);r.a},"7d18":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"uploadFile",(function(){return s}));var i=n("e2e2");function r(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),Object.defineProperty(e,i.key,i)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),a(this,"_xhr",void 0),a(this,"_isAbort",void 0),a(this,"_callbacks",[]),this._xhr=t,this._callbackId=n}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"onProgressUpdate",value:function(e){"function"===typeof e&&this._callbacks.push(e)}},{key:"offProgressUpdate",value:function(e){var t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}},{key:"abort",value:function(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}}]),e}();function s(t,n){var r=t.url,a=t.file,s=t.filePath,u=t.name,c=t.files,l=t.header,d=t.formData,f=t.timeout,h=void 0===f?__uniConfig.networkTimeout&&__uniConfig.networkTimeout.uploadFile||6e4:f,p=e,g=p.invokeCallbackHandler,v=new o(null,n);return Array.isArray(c)&&c.length||(c=[{name:u,file:a,uri:s}]),Promise.all(c.map((function(e){var t=e.file,n=e.uri;return t instanceof Blob?Promise.resolve(Object(i["a"])(t)):Object(i["f"])(n)}))).then((function(e){var t,i=new XMLHttpRequest,a=new FormData;Object.keys(d).forEach((function(e){a.append(e,d[e])})),Object.values(c).forEach((function(t,n){var i=t.name,r=e[n];a.append(i||"file",r,r.name||"file-".concat(Date.now()))})),i.open("POST",r),Object.keys(l).forEach((function(e){i.setRequestHeader(e,l[e])})),i.upload.onprogress=function(e){v._callbacks.forEach((function(t){var n=e.loaded,i=e.total,r=Math.round(n/i*100);t({progress:r,totalBytesSent:n,totalBytesExpectedToSend:i})}))},i.onerror=function(){clearTimeout(t),g(n,{errMsg:"uploadFile:fail"})},i.onabort=function(){clearTimeout(t),g(n,{errMsg:"uploadFile:fail abort"})},i.onload=function(){clearTimeout(t);var e=i.status;g(n,{errMsg:"uploadFile:ok",statusCode:e,data:i.responseText||i.response})},v._isAbort?g(n,{errMsg:"uploadFile:fail abort"}):(t=setTimeout((function(){i.upload.onprogress=i.onload=i.onabort=i.onerror=null,v.abort(),g(n,{errMsg:"uploadFile:fail timeout"})}),h),i.send(a),v._xhr=i)})).catch((function(){setTimeout((function(){g(n,{errMsg:"uploadFile:fail file error"})}),0)})),v}}.call(this,n("0dd1"))},"7e6a":function(e,t,n){"use strict";var i=n("5bf9"),r=n.n(i);r.a},"7f4e":function(e,t,n){"use strict";function i(e){var t=e.phoneNumber;return window.location.href="tel:".concat(t),{errMsg:"makePhoneCall:ok"}}n.r(t),n.d(t,"makePhoneCall",(function(){return i}))},"80e5":function(e){e.exports=JSON.parse('{"uni.app.quit":"Pulse otra vez para salir","uni.async.error":"Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo.","uni.showActionSheet.cancel":"Cancelar","uni.showToast.unpaired":"Tenga en cuenta que showToast debe estar emparejado con hideToast","uni.showLoading.unpaired":"Tenga en cuenta que showLoading debe estar emparejado con hideLoading","uni.showModal.cancel":"Cancelar","uni.showModal.confirm":"OK","uni.chooseImage.cancel":"Cancelar","uni.chooseImage.sourceType.album":"Álbum","uni.chooseImage.sourceType.camera":"Cámara","uni.chooseVideo.cancel":"Cancelar","uni.chooseVideo.sourceType.album":"Álbum","uni.chooseVideo.sourceType.camera":"Cámara","uni.chooseFile.notUserActivation":"El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario","uni.previewImage.cancel":"Cancelar","uni.previewImage.button.save":"Guardar imagen","uni.previewImage.save.success":"Guardado exitosamente","uni.previewImage.save.fail":"Error al guardar","uni.setClipboardData.success":"Contenido copiado","uni.scanCode.title":"Código de escaneo","uni.scanCode.album":"Álbum","uni.scanCode.fail":"Échec de la reconnaissance","uni.scanCode.flash.on":"Toque para encender la luz","uni.scanCode.flash.off":"Toque para apagar la luz","uni.startSoterAuthentication.authContent":"Reconocimiento de huellas dactilares","uni.picker.done":"OK","uni.picker.cancel":"Cancelar","uni.video.danmu":"Danmu","uni.video.volume":"Volumen","uni.button.feedback.title":"realimentación","uni.button.feedback.send":"enviar","uni.chooseLocation.search":"Encontrar","uni.chooseLocation.cancel":"Cancelar"}')},"811a":function(e,t,n){"use strict";n.r(t),n.d(t,"connectSocket",(function(){return l})),n.d(t,"sendSocketMessage",(function(){return d})),n.d(t,"closeSocket",(function(){return f})),n.d(t,"onSocketOpen",(function(){return h})),n.d(t,"onSocketError",(function(){return p})),n.d(t,"onSocketMessage",(function(){return g})),n.d(t,"onSocketClose",(function(){return v}));var i=n("a118"),r=n("db70");function a(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),Object.defineProperty(e,i.key,i)}}var o=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.id=t,this._callbacks={open:[],close:[],error:[],message:[]},this.CLOSED=3,this.CLOSING=2,this.CONNECTING=0,this.OPEN=1,this.readyState=this.CLOSED}return function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(e,[{key:"send",value:function(e){this.readyState!==this.OPEN&&this._callback(e,"sendSocketMessage:fail WebSocket is not connected");var t=Object(r["c"])("operateSocketTask",Object.assign({},e,{operationType:"send",socketTaskId:this.id})),n=t.errMsg;this._callback(e,n.replace("operateSocketTask","sendSocketMessage"))}},{key:"close",value:function(e){this.readyState=this.CLOSING;var t=Object(r["c"])("operateSocketTask",Object.assign({},e,{operationType:"close",socketTaskId:this.id})),n=t.errMsg;this._callback(e,n.replace("operateSocketTask","closeSocket"))}},{key:"onOpen",value:function(e){this._callbacks.open.push(e)}},{key:"onClose",value:function(e){this._callbacks.close.push(e)}},{key:"onError",value:function(e){this._callbacks.error.push(e)}},{key:"onMessage",value:function(e){this._callbacks.message.push(e)}},{key:"_callback",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.success,n=e.fail,i=e.complete,r=arguments.length>1?arguments[1]:void 0,a={errMsg:r};/:ok$/.test(r)?"function"===typeof t&&t(a):"function"===typeof n&&n(a),"function"===typeof i&&i(a)}}]),e}(),s=Object.create(null),u=[],c=Object.create(null);function l(e,t){var n=Object(r["c"])("createSocketTask",e),a=n.socketTaskId,c=new o(a);return s[a]=c,u.push(c),setTimeout((function(){Object(i["a"])(t,{errMsg:"connectSocket:ok"})}),0),c}function d(e,t){var n=u[0];if(n&&n.readyState===n.OPEN)return Object(r["c"])("operateSocketTask",Object.assign({},e,{operationType:"send",socketTaskId:n.id}));Object(i["a"])(t,{errMsg:"sendSocketMessage:fail WebSocket is not connected"})}function f(e,t){var n=u[0];if(n)return n.readyState=n.CLOSING,Object(r["c"])("operateSocketTask",Object.assign({},e,{operationType:"close",socketTaskId:n.id}));Object(i["a"])(t,{errMsg:"closeSocket:fail WebSocket is not connected"})}function h(e){c.open=e}function p(e){c.error=e}function g(e){c.message=e}function v(e){c.close=e}Object(r["d"])("onSocketTaskStateChange",(function(e){var t=e.socketTaskId,n=e.state,r=e.data,a=(e.errMsg,s[t]);if(a){if("open"===n&&(a.readyState=a.OPEN),a===u[0]&&c[n]&&Object(i["a"])(c[n],"message"===n?{data:r}:{}),"error"===n||"close"===n){a.readyState=a.CLOSED,delete s[t];var o=u.indexOf(a);o>=0&&u.splice(o,1)}a._callbacks[n].forEach((function(e){"function"===typeof e&&e("message"===n?{data:r}:{})}))}}))},"81ea":function(e,t,n){"use strict";var i=n("e428"),r=i["a"],a=(n("f4e0"),n("0c7c")),o=Object(a["a"])(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-tabbar",{class:["uni-tabbar-"+e.position]},[n("div",{staticClass:"uni-tabbar",style:{backgroundColor:e.tabbarBackgroundColor,"backdrop-filter":"none"!==e.blurEffect?"blur(10px)":e.blurEffect}},[n("div",{staticClass:"uni-tabbar-border",style:{backgroundColor:e.borderColor}}),e._l(e.visibleList,(function(t,i){return n("div",{key:t.isMidButton?i:t.pagePath,staticClass:"uni-tabbar__item",style:t.isMidButton?{flex:"0 0 "+t.width,position:"relative"}:{},on:{click:function(n){return e._switchTab(t,i)}}},[t.isMidButton?n("div",{staticClass:"uni-tabbar__mid",style:e._uniTabbarBdStyle(t)},[t.iconPath?n("img",{style:{width:t.iconWidth,height:t.iconWidth},attrs:{src:e._getRealPath(t.iconPath)}}):e._e()]):e._e(),n("div",{staticClass:"uni-tabbar__bd",style:{height:e.height}},[e.getIconPath(t,i)||t.iconfont||t.iconPath||t.isMidButton?n("div",{staticClass:"uni-tabbar__icon",class:{"uni-tabbar__icon__diff":!t.text},style:{width:e.iconWidth,height:e.iconWidth}},[t.iconfont?n("div",{staticClass:"uni-tabbar__iconfont",style:{color:e.selectedIndex===i?t.iconfont.selectedColor:t.iconfont.color,fontSize:t.iconfont.fontSize||e.iconWidth}},[e._v(" "+e._s(e.selectedIndex===i?t.iconfont.selectedText:t.iconfont.text)+" ")]):t.isMidButton?e._e():n("img",{attrs:{src:e._getRealPath(e.getIconPath(t,i))}})]):e._e(),t.text?n("div",{staticClass:"uni-tabbar__label",style:{color:e.selectedIndex===i?e.selectedColor:e.color,fontSize:e.fontSize,lineHeight:t.iconPath?"normal":1.8,marginTop:t.iconPath?e.spacing:"inherit"}},[e._v(" "+e._s(t.text)+" ")]):e._e(),t.redDot?n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!t.badge}},[e._v(" "+e._s(t.badge)+" ")]):e._e()])])}))],2),n("div",{staticClass:"uni-placeholder",style:{height:e.height}})])}),[],!1,null,null,null),s=o.exports,u=n("a8f2"),c=u["a"],l=(n("639e"),Object(a["a"])(c,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.responsive?n("uni-layout",{class:{"uni-app--showlayout":e.showLayout,"uni-app--showtopwindow":e.showTopWindow,"uni-app--showleftwindow":e.showLeftWindow,"uni-app--showrightwindow":e.showRightWindow}},[e.topWindow?n("uni-top-window",{directives:[{name:"show",rawName:"v-show",value:e.showTopWindow||e.apiShowTopWindow,expression:"showTopWindow || apiShowTopWindow"}]},[n("div",{ref:"topWindow",staticClass:"uni-top-window",style:e.topWindowStyle},[n("v-uni-top-window",e._b({ref:"top",attrs:{"navigation-bar-title-text":e.navigationBarTitleText},on:{"hook:mounted":e.onTopWindowInit}},"v-uni-top-window",e.bindWindow,!1))],1),n("div",{staticClass:"uni-top-window--placeholder",style:{height:e.topWindowHeight}})]):e._e(),n("uni-content",[n("uni-main",[n("keep-alive",{attrs:{include:e.keepAliveInclude}},[n("router-view",{key:e.routerKey})],1)],1),e.leftWindow?n("uni-left-window",{directives:[{name:"show",rawName:"v-show",value:e.showLeftWindow||e.apiShowLeftWindow,expression:"showLeftWindow || apiShowLeftWindow"}],ref:"leftWindow",style:e.leftWindowStyle,attrs:{"data-show":e.apiShowLeftWindow}},[e.apiShowLeftWindow?n("div",{staticClass:"uni-mask",on:{click:function(t){e.apiShowLeftWindow=!1}}}):e._e(),n("div",{staticClass:"uni-left-window"},[n("v-uni-left-window",e._b({ref:"left",on:{"hook:mounted":e.onLeftWindowInit}},"v-uni-left-window",e.bindWindow,!1))],1)]):e._e(),e.rightWindow?n("uni-right-window",{directives:[{name:"show",rawName:"v-show",value:e.showRightWindow||e.apiShowRightWindow,expression:"showRightWindow || apiShowRightWindow"}],ref:"rightWindow",style:e.rightWindowStyle,attrs:{"data-show":e.apiShowRightWindow}},[e.apiShowRightWindow?n("div",{staticClass:"uni-mask",on:{click:function(t){e.apiShowRightWindow=!1}}}):e._e(),n("div",{staticClass:"uni-right-window"},[n("v-uni-right-window",e._b({ref:"right",on:{"hook:mounted":e.onRightWindowInit}},"v-uni-right-window",e.bindWindow,!1))],1)]):e._e()],1)],1):n("keep-alive",{attrs:{include:e.keepAliveInclude}},[n("router-view",{key:e.routerKey})],1)}),[],!1,null,null,null)),d=l.exports,f=n("dfa7"),h=f["a"],p=(n("ff28"),Object(a["a"])(h,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"uni-fade"}},[e.visible?n("uni-toast",{attrs:{"data-duration":e.duration}},[e.mask?n("div",{staticClass:"uni-mask",staticStyle:{background:"transparent"},on:{touchmove:function(e){e.preventDefault()}}}):e._e(),e.image||e.iconClass?n("div",{staticClass:"uni-toast"},[e.image?n("img",{staticClass:"uni-toast__icon",attrs:{src:e.image}}):n("i",{staticClass:"uni-icon_toast",class:e.iconClass}),n("p",{staticClass:"uni-toast__content"},[e._v(" "+e._s(e.title)+" ")])]):n("div",{staticClass:"uni-sample-toast"},[n("p",{staticClass:"uni-simple-toast__text"},[e._v(" "+e._s(e.title)+" ")])])]):e._e()],1)}),[],!1,null,null,null)),g=p.exports,v=n("5a56"),m=n("da71"),y=n("3af1");var b={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}};function _(e){this.cancelColor_=b[e].cancelColor}var w={name:"Modal",components:{keypress:m["a"]},mixins:[v["default"]],props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},data:function(){return{cancelColor_:"#000"}},watch:{visible:function(e){e?(this.cancelColor_=this.$parent.showModal.cancelColor,"#000"===this.$parent.showModal.cancelColor&&("dark"===Object(y["a"])()&&this._onThemeChange({theme:"dark"}),Object(y["c"])(this._onThemeChange))):Object(y["b"])(this._onThemeChange)}},methods:{_onThemeChange:function(e){var t=e.theme;_.call(this,t)},_close:function(e){var t=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,!0);this.editable&&"confirm"===e&&(t.content=this.$refs.editContent.value),this.$emit("close",t)}}},T=w,S=(n("2765"),Object(a["a"])(T,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"uni-fade"}},[n("uni-modal",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],on:{touchmove:function(e){e.preventDefault()}}},[n("div",{staticClass:"uni-mask"}),n("div",{staticClass:"uni-modal"},[e.title?n("div",{staticClass:"uni-modal__hd"},[n("strong",{staticClass:"uni-modal__title",domProps:{textContent:e._s(e.title)}})]):e._e(),e.editable?n("textarea",{ref:"editContent",staticClass:"uni-modal__textarea",attrs:{rows:"1",placeholder:e.placeholderText},domProps:{value:e.content}}):n("div",{staticClass:"uni-modal__bd",domProps:{textContent:e._s(e.content)},on:{touchmove:function(e){e.stopPropagation()}}}),n("div",{staticClass:"uni-modal__ft"},[e.showCancel?n("div",{staticClass:"uni-modal__btn uni-modal__btn_default",style:{color:e.cancelColor_},on:{click:function(t){return e._close("cancel")}}},[e._v(" "+e._s(e.cancelText)+" ")]):e._e(),n("div",{staticClass:"uni-modal__btn uni-modal__btn_primary",style:{color:e.confirmColor},on:{click:function(t){return e._close("confirm")}}},[e._v(" "+e._s(e.confirmText)+" ")])])]),n("keypress",{attrs:{disable:!e.visible},on:{esc:function(t){return e._close("cancel")},enter:function(t){!e.editable&&e._close("confirm")}}})],1)],1)}),[],!1,null,null,null)),k=S.exports,x=n("4ccd"),C=n("a6b0"),E=n("ba15"),A=n("8aec"),O=n("5363"),j=n("72b3"),I=n("d4cd");var P={light:{listItemColor:"#000000",cancelItemColor:"#000000"},dark:{listItemColor:"rgba(255, 255, 255, 0.8)",cancelItemColor:"rgba(255, 255, 255)"}};function M(e){var t=this;["listItemColor","cancelItemColor"].forEach((function(n){t[n]=P[e][n]}))}var L={name:"ActionSheet",components:{keypress:m["a"]},mixins:[C["c"],x["default"],E["a"],A["a"]],props:{title:{type:String,default:""},itemList:{type:Array,default:function(){return[]}},itemColor:{type:String,default:"#000000"},popover:{type:Object,default:null},visible:{type:Boolean,default:!1}},data:function(){return{HEIGHT:260,contentHeight:0,titleHeight:0,deltaY:0,scrollTop:0,listItemColor:"#000000",cancelItemColor:"#000000"}},watch:{visible:function(e){var t=this;e?(this.$nextTick((function(){t.title&&(t.titleHeight=document.querySelector(".uni-actionsheet__title").offsetHeight),t._scroller.update(),t.contentHeight=t.$refs.content.clientHeight-t.HEIGHT,document.querySelectorAll(".uni-actionsheet__cell").forEach((function(e){(function(e){var t=0,n=0;e.addEventListener("touchstart",(function(e){var i=e.changedTouches[0];t=i.clientX,n=i.clientY})),e.addEventListener("touchend",(function(e){var i=e.changedTouches[0];if(Math.abs(i.clientX-t)<20&&Math.abs(i.clientY-n)<20){var r=new CustomEvent("click",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((function(e){r[e]=i[e]})),e.target.dispatchEvent(r)}}))})(e)}))})),this.listItemColor=this.cancelItemColor=this.itemColor,"#000"===this.$parent.showActionSheet.itemColor&&("dark"===Object(y["a"])()&&this._onThemeChange({theme:"dark"}),Object(y["c"])(this._onThemeChange))):Object(y["b"])(this._onThemeChange)}},mounted:function(){var e=this;this.touchtrack(this.$refs.content,"_handleTrack",!0),this.$nextTick((function(){e.initScroller(e.$refs.content,{enableY:!0,friction:new O["a"](1e-4),spring:new j["a"](2,90,20),onScroll:function(t){e.scrollTop=t.target.scrollTop}})})),Object(I["b"])()},methods:{_onThemeChange:function(e){var t=e.theme;M.call(this,t)},_close:function(e){this.$emit("close",e)},_handleTrack:function(e){if(this._scroller)switch(e.detail.state){case"start":this._handleTouchStart(e),Object(I["a"])({disable:!0});break;case"move":this._handleTouchMove(e);break;case"end":case"cancel":this._handleTouchEnd(e),Object(I["a"])({disable:!1})}},_handleWheel:function(e){var t=this.deltaY+e.deltaY;Math.abs(t)>10?(this.scrollTop+=t/3,this.scrollTop=this.scrollTop>=this.contentHeight?this.contentHeight:this.scrollTop<=0?0:this.scrollTop,this._scroller.scrollTo(this.scrollTop)):this.deltaY=t,e.preventDefault()}}},D=L,R=(n("4fef"),Object(a["a"])(D,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-actionsheet",{on:{touchmove:function(e){e.preventDefault()}}},[n("transition",{attrs:{name:"uni-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"uni-mask uni-actionsheet__mask",on:{click:function(t){return e._close(-1)}}})]),n("div",{staticClass:"uni-actionsheet",class:{"uni-actionsheet_toggle":e.visible},style:e.popupStyle.content},[n("div",{ref:"main",staticClass:"uni-actionsheet__menu",on:{wheel:e._handleWheel}},[e.title?n("div",{staticClass:"uni-actionsheet__cell",style:{height:e.titleHeight+"px"}}):e._e(),e.title?n("div",{staticClass:"uni-actionsheet__title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),n("div",{style:{maxHeight:e.HEIGHT+"px",overflow:"hidden"}},[n("div",{ref:"content"},e._l(e.itemList,(function(t,i){return n("div",{key:i,staticClass:"uni-actionsheet__cell",style:{color:e.listItemColor},on:{click:function(t){return e._close(i)}}},[e._v(" "+e._s(t)+" ")])})),0)])]),n("div",{staticClass:"uni-actionsheet__action"},[n("div",{staticClass:"uni-actionsheet__cell",style:{color:e.cancelItemColor},on:{click:function(t){return e._close(-1)}}},[e._v(" "+e._s(e.$$t("uni.showActionSheet.cancel"))+" ")])]),n("div",{style:e.popupStyle.triangle})]),n("keypress",{attrs:{disable:!e.visible},on:{esc:function(t){return e._close(-1)}}})],1)}),[],!1,null,null,null)),N=R.exports,B={name:"ImageView",props:{src:{type:String,default:""}},data:function(){return{direction:"none"}},created:function(){this.scale=1,this.imgWidth=0,this.imgHeight=0,this.width=0,this.height=0},methods:{onScale:function(e){var t=e.detail.scale;this.scale=t},onImgLoad:function(e){var t=e.target,n=t.getBoundingClientRect();this.imgWidth=n.width,this.imgHeight=n.height},onTouchStart:function(e){var t=this.$el,n=t.getBoundingClientRect();this.width=n.width,this.height=n.height,this.checkDirection(e)},onTouchEnd:function(e){var t=this.scale,n=t*this.imgWidth>this.width,i=t*this.imgHeight>this.height;this.direction=n&&i?"all":n?"horizontal":i?"vertical":"none",this.checkDirection(e)},checkDirection:function(e){var t=this.direction;"all"!==t&&"horizontal"!==t||e.stopPropagation()}}},U=B,F=(n("11d0"),Object(a["a"])(U,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-movable-area",{staticClass:"image-view-area",nativeOn:{touchstart:function(t){return e.onTouchStart(t)},touchmove:function(t){return e.checkDirection(t)},touchend:function(t){return e.onTouchEnd(t)}}},[n("v-uni-movable-view",{staticClass:"image-view-view",attrs:{direction:e.direction,inertia:"",scale:"","scale-min":"1","scale-max":"4"},on:{scale:e.onScale}},[n("img",{staticClass:"image-view-img",attrs:{src:e.src},on:{load:e.onImgLoad}})])],1)}),[],!1,null,null,null)),$=F.exports,H={name:"PreviewImage",components:{imageView:$},props:{visible:{type:Boolean,default:!1},urls:{type:Array,default:function(){return[]}},current:{type:[String,Number],default:0}},data:function(){return{index:0}},watch:{visible:function(e){if(e){var t="number"===typeof this.current?this.current:this.urls.indexOf(this.current);this.index=t<0?0:t}}},mounted:function(){var e=this,t=0,n=0;this.$el.addEventListener("mousedown",(function(i){e.preventDefault=!1,t=i.clientX,n=i.clientY})),this.$el.addEventListener("mouseup",(function(i){(Math.abs(i.clientX-t)>20||Math.abs(i.clientY-n)>20)&&(e.preventDefault=!0)}))},methods:{_click:function(){this.preventDefault||this.$emit("close")}}},V=H,z=(n("8ed9"),Object(a["a"])(V,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.visible?n("div",{staticClass:"uni-system-preview-image",on:{click:e._click}},[n("v-uni-swiper",{staticClass:"uni-system-preview-image-swiper",attrs:{navigation:"auto",current:e.index,"indicator-dots":!1,autoplay:!1},on:{"update:current":function(t){e.index=t}}},e._l(e.urls,(function(e,t){return n("v-uni-swiper-item",{key:t},[n("image-view",{attrs:{src:e}})],1)})),1),e._m(0)],1):e._e()}),[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"nav-btn-back"},[n("i",{staticClass:"uni-btn-icon"},[e._v("")])])}],!1,null,null,null)),q=z.exports,W={Toast:g,Modal:k,ActionSheet:N,PreviewImage:q};function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t["a"]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){Y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({TabBar:s,Layout:d},W)},"82b9":function(e,t,n){"use strict";function i(e){return function(t,n){t&&(n[e]=Math.round(t))}}n.r(t),n.d(t,"canvasGetImageData",(function(){return r})),n.d(t,"canvasPutImageData",(function(){return a})),n.d(t,"canvasToTempFilePath",(function(){return s})),n.d(t,"drawCanvas",(function(){return u}));var r={canvasId:{type:String,required:!0},x:{type:Number,required:!0,validator:i("x")},y:{type:Number,required:!0,validator:i("y")},width:{type:Number,required:!0,validator:i("width")},height:{type:Number,required:!0,validator:i("height")}},a={canvasId:{type:String,required:!0},data:{type:Uint8ClampedArray,required:!0},x:{type:Number,required:!0,validator:i("x")},y:{type:Number,required:!0,validator:i("y")},width:{type:Number,required:!0,validator:i("width")},height:{type:Number,validator:i("height")}},o={PNG:"png",JPG:"jpg",JPEG:"jpg"},s={x:{type:Number,default:0,validator:i("x")},y:{type:Number,default:0,validator:i("y")},width:{type:Number,validator:i("width")},height:{type:Number,validator:i("height")},destWidth:{type:Number,validator:i("destWidth")},destHeight:{type:Number,validator:i("destHeight")},canvasId:{type:String,required:!0},fileType:{type:String,validator:function(e,t){e=(e||"").toUpperCase(),t.fileType=e in o?o[e]:o.PNG}},quality:{type:Number,validator:function(e,t){t.quality=e>0&&e<1?e:1}}},u={canvasId:{type:String,required:!0},actions:{type:Array,required:!0},reserve:{type:Boolean,default:!1}}},"82c2":function(e,t,n){"use strict";n.r(t),n.d(t,"request",(function(){return l}));var i=n("f2b3"),r=n("a118"),a=n("db70");function o(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),Object.defineProperty(e,i.key,i)}}var s=Object.create(null);function u(e,t){if("string"===typeof e.data&&65279===e.data.charCodeAt(0)&&(e.data=e.data.substr(1)),e.statusCode=parseInt(e.statusCode,10),Object(i["l"])(e.header)&&(e.header=Object.keys(e.header).reduce((function(t,n){var i=e.header[n];return Array.isArray(i)?t[n]=i.join(","):"string"===typeof i&&(t[n]=i),t}),{})),t.dataType&&"json"===t.dataType.toLowerCase())try{e.data=JSON.parse(e.data)}catch(n){}return e}Object(a["d"])("onRequestTaskStateChange",(function(e){var t=e.requestTaskId,n=e.state,i=e.data,a=e.statusCode,o=e.header,c=e.errMsg,l=e.cookies,d=s[t]||{},f=d.args,h=d.callbackId;if(h)switch(delete s[t],n){case"success":Object(r["a"])(h,u({data:i,statusCode:a,header:o,errMsg:"request:ok",cookies:l},f));break;case"fail":Object(r["a"])(h,{errMsg:"request:fail "+c});break}}));var c=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.id=t}return function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(e,[{key:"abort",value:function(){Object(a["c"])("operateRequestTask",{requestTaskId:this.id,operationType:"abort"})}},{key:"offHeadersReceived",value:function(){}},{key:"onHeadersReceived",value:function(){}}]),e}();function l(e,t){var n;for(var r in e.header)if("content-type"===r.toLowerCase()){n=e.header[r];break}"GET"!==e.method&&0===n.indexOf("application/json")&&Object(i["l"])(e.data)&&(e.data=JSON.stringify(e.data));var o=Object(a["c"])("createRequestTask",e),u=o.requestTaskId;return s[u]={args:e,callbackId:t},new c(u)}},8390:function(e,t){(function(){"use strict";for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),i=0;i<e.length;i++)n[e.charCodeAt(i)]=i;t.encode=function(t){var n,i=new Uint8Array(t),r=i.length,a="";for(n=0;n<r;n+=3)a+=e[i[n]>>2],a+=e[(3&i[n])<<4|i[n+1]>>4],a+=e[(15&i[n+1])<<2|i[n+2]>>6],a+=e[63&i[n+2]];return r%3===2?a=a.substring(0,a.length-1)+"=":r%3===1&&(a=a.substring(0,a.length-2)+"=="),a},t.decode=function(e){var t,i,r,a,o,s=.75*e.length,u=e.length,c=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var l=new ArrayBuffer(s),d=new Uint8Array(l);for(t=0;t<u;t+=4)i=n[e.charCodeAt(t)],r=n[e.charCodeAt(t+1)],a=n[e.charCodeAt(t+2)],o=n[e.charCodeAt(t+3)],d[c++]=i<<2|r>>4,d[c++]=(15&r)<<4|a>>2,d[c++]=(3&a)<<6|63&o;return l}})()},"83a6":function(e,t,n){"use strict";t["a"]={data:function(){return{hovering:!1}},props:{hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}},methods:{_hoverTouchStart:function(e){e.touches.length>1||this._handleHoverStart(e)},_hoverMousedown:function(e){this._hoverTouch||(this._handleHoverStart(e),window.addEventListener("mouseup",this._hoverMouseup))},_handleHoverStart:function(e){var t=this;e._hoverPropagationStopped||this.hoverClass&&"none"!==this.hoverClass&&!this.disabled&&(this.hoverStopPropagation&&(e._hoverPropagationStopped=!0),this._hoverTouch=!0,this._hoverStartTimer=setTimeout((function(){t.hovering=!0,t._hoverTouch||t._hoverReset()}),this.hoverStartTime))},_hoverMouseup:function(){this._hoverTouch&&(this._handleHoverEnd(),window.removeEventListener("mouseup",this._hoverMouseup))},_hoverTouchEnd:function(){this._handleHoverEnd()},_handleHoverEnd:function(){this._hoverTouch=!1,this.hovering&&this._hoverReset()},_hoverReset:function(){var e=this;requestAnimationFrame((function(){clearTimeout(e._hoverStayTimer),e._hoverStayTimer=setTimeout((function(){e.hovering=!1}),e.hoverStayTime)}))},_hoverTouchCancel:function(){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}}}},"84ca":function(e,t,n){},"84e0":function(e,t,n){"use strict";n.r(t),function(e){function i(t){var n=getCurrentPages();return n.length&&e.publishHandler("pageScrollTo",t,n[n.length-1].$page.id),{}}n.d(t,"pageScrollTo",(function(){return i}))}.call(this,n("0dd1"))},8542:function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return b})),n.d(t,"b",(function(){return w})),n.d(t,"c",(function(){return T}));var r=n("f2b3");function a(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function s(e){return s="function"===typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)},s(e)}var u=["invoke","success","fail","complete","returnValue"],c={},l={};function d(e,t){Object.keys(t).forEach((function(n){-1!==u.indexOf(n)&&Object(r["k"])(t[n])&&(e[n]=function(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}(e[n],t[n]))}))}function f(e,t){e&&t&&Object.keys(t).forEach((function(n){-1!==u.indexOf(n)&&Object(r["k"])(t[n])&&function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}(e[n],t[n])}))}function h(e,t){"string"===typeof e&&Object(r["l"])(t)?d(l[e]||(l[e]={}),t):Object(r["l"])(e)&&d(c,e)}function p(e,t){"string"===typeof e?Object(r["l"])(t)?f(l[e],t):delete l[e]:Object(r["l"])(e)&&f(c,e)}function g(e){return function(t){return e(t)||t}}function v(e){return!!e&&("object"===s(e)||"function"===typeof e)&&"function"===typeof e.then}function m(e,t){for(var n=!1,i=0;i<e.length;i++){var r=e[i];if(n)n=Promise.resolve(g(r));else{var a=r(t);if(v(a)&&(n=Promise.resolve(a)),!1===a)return{then:function(){}}}}return n||{then:function(e){return e(t)}}}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(n){if(Array.isArray(e[n])){var i=t[n];t[n]=function(t){m(e[n],t).then((function(e){return Object(r["k"])(i)&&i(e)||e}))}}})),t}function b(e,t){var n=[];Array.isArray(c.returnValue)&&n.push.apply(n,a(c.returnValue));var i=l[e];return i&&Array.isArray(i.returnValue)&&n.push.apply(n,a(i.returnValue)),n.forEach((function(e){t=e(t)||t})),t}function _(e){var t=Object.create(null);Object.keys(c).forEach((function(e){"returnValue"!==e&&(t[e]=c[e].slice())}));var n=l[e];return n&&Object.keys(n).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function w(e,t,n){for(var i=arguments.length,r=new Array(i>3?i-3:0),a=3;a<i;a++)r[a-3]=arguments[a];var o=_(e);if(o&&Object.keys(o).length){if(Array.isArray(o.invoke)){var s=m(o.invoke,n);return s.then((function(e){return t.apply(void 0,[y(o,e)].concat(r))}))}return t.apply(void 0,[y(o,n)].concat(r))}return t.apply(void 0,[n].concat(r))}var T={returnValue:function(e){return v(e)?new Promise((function(t,n){e.then((function(e){e[0]?n(e[0]):t(e[1])}))})):e}}},"854d":function(e,t,n){"use strict";var i=n("2206"),r=n.n(i);r.a},"856e":function(e,t,n){"use strict";var i=n("9389"),r=n.n(i);r.a},"85b6":function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return c}));var i=n("f2b3"),r=["SystemAsyncLoading","SystemAsyncError"];function a(e){return!(!e.$parent||"PageBody"!==e.$parent.$options.name)&&-1===r.indexOf(e.$options.name)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return Array.isArray(e[t])&&e[t].length}function s(e){var t={},n=e.__vue__;function r(e,n){var r=e.$attrs;for(var a in r)if(a.startsWith("data-")){var o=Object(i["b"])(a.substr(5).toLowerCase()),s=r[a];t[o]=n?s:t[o]||s}}if(n){var a=n;while(a&&a.$el===e)r(a),a=a.$children[0];var o=n.$parent;while(o&&o.$el===e)r(o,!0),o=o.$parent}else t=Object.assign({},e.dataset,e.__uniDataset);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e)),n=Object.keys(t),i=n.length;if(i)for(var r=0;r<i;r++){var a=n[r],o=a.length;"v"!==a.substr(0,1)||9!==o&&10!==o||delete t[a]}return t}(t)}function u(e){return e+="",-1!==e.indexOf("upx")?uni.upx2px(parseInt(e)||0):parseInt(e)||0}function c(e){var t=getCurrentPages(),n=t.length;while(n--){var i=t[n];if(i.$page&&i.$page.fullPath===e)return n}return-1}},8793:function(e,t,n){var i={"./action-sheet.js":"626d","./index.js":"f1ea","./modal.js":"ee4f","./popup.js":"4ccd","./preview-image.js":"1b3d","./toast.js":"77e0","./transition.js":"5a56"};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=a,e.exports=r,r.id="8793"},8832:function(e,t,n){"use strict";(function(e){var i,r=n("8af1"),a=n("a20f"),o=n("cf6f"),s=n("e2e2");function u(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function l(e){return e=e.slice(0),e[3]=e[3]/255,"rgba("+e.join(",")+")"}function d(e,t){return[].map.call(t,(function(t){var n=e.getBoundingClientRect();return{identifier:t.identifier,x:t.clientX-n.left,y:t.clientY-n.top}}))}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return i||(i=document.createElement("canvas")),i.width=e,i.height=t,i}t["a"]={name:"Canvas",mixins:[r["g"]],props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},data:function(){return{actionsWaiting:!1}},computed:{id:function(){return this.canvasId},_listeners:function(){var e=this,t=Object.assign({},this.$listeners);return["touchstart","touchmove","touchend"].forEach((function(n){var i=t[n],r=[];i&&r.push((function(t){e.$trigger(n,Object.assign({},t,{touches:d(t.currentTarget,t.touches),changedTouches:d(t.currentTarget,t.changedTouches)}))})),e.disableScroll&&"touchmove"===n&&r.push(e._touchmove),t[n]=r})),t},pixelRatio:function(){return this.hidpi?a["a"]:1}},created:function(){this._actionsDefer=[],this._images={}},mounted:function(){this._resize()},beforeDestroy:function(){var e=this.$refs.canvas;e.height=e.width=0},methods:{_handleSubscribe:function(e){var t=e.type,n=e.data,i=void 0===n?{}:n,r=this[t];0!==t.indexOf("_")&&"function"===typeof r&&r(i)},_resize:function(e){var t=this.$refs.canvas,n=!e||t.width!==Math.floor(e.width*this.pixelRatio)||t.height!==Math.floor(e.height*this.pixelRatio);if(n)if(t.width>0&&t.height>0){var i=t.getContext("2d"),r=i.getImageData(0,0,t.width,t.height);Object(a["b"])(t,this.hidpi),i.putImageData(r,0,0)}else Object(a["b"])(t,this.hidpi)},_touchmove:function(e){e.preventDefault()},actionsChanged:function(t){var n=this,i=t.actions,r=t.reserve,a=t.callbackId,o=this;if(i)if(this.actionsWaiting)this._actionsDefer.push([i,r,a]);else{var s=this.$refs.canvas,c=s.getContext("2d");r||(c.fillStyle="#000000",c.strokeStyle="#000000",c.shadowColor="#000000",c.shadowBlur=0,c.shadowOffsetX=0,c.shadowOffsetY=0,c.setTransform(1,0,0,1,0,0),c.clearRect(0,0,s.width,s.height)),this.preloadImage(i);var d=function(e){var t=i[e],r=t.method,s=t.data;if(/^set/.test(r)&&"setTransform"!==r){var d,f=r[3].toLowerCase()+r.slice(4);if("fillStyle"===f||"strokeStyle"===f){if("normal"===s[0])d=l(s[1]);else if("linear"===s[0]){var g=c.createLinearGradient.apply(c,u(s[1]));s[2].forEach((function(e){var t=e[0],n=l(e[1]);g.addColorStop(t,n)})),d=g}else if("radial"===s[0]){var v=s[1][0],m=s[1][1],y=s[1][2],b=c.createRadialGradient(v,m,0,v,m,y);s[2].forEach((function(e){var t=e[0],n=l(e[1]);b.addColorStop(t,n)})),d=b}else if("pattern"===s[0]){var _=n.checkImageLoaded(s[1],i.slice(e+1),a,(function(e){e&&(c[f]=c.createPattern(e,s[2]))}));return _?"continue":"break"}c[f]=d}else if("globalAlpha"===f)c[f]=s[0]/255;else if("shadow"===f)h=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"],s.forEach((function(e,t){c[h[t]]="shadowColor"===h[t]?l(e):e}));else if("fontSize"===f){var w=c.__font__||c.font;c.__font__=c.font=w.replace(/\d+\.?\d*px/,s[0]+"px")}else"lineDash"===f?(c.setLineDash(s[0]),c.lineDashOffset=s[1]||0):"textBaseline"===f?("normal"===s[0]&&(s[0]="alphabetic"),c[f]=s[0]):"font"===f?c.__font__=c.font=s[0]:c[f]=s[0]}else if("fillPath"===r||"strokePath"===r)r=r.replace(/Path/,""),c.beginPath(),s.forEach((function(e){c[e.method].apply(c,e.data)})),c[r]();else if("fillText"===r)c.fillText.apply(c,s);else if("drawImage"===r){if(p=function(){var t=u(s),n=t[0],r=t.slice(1);if(o._images=o._images||{},!o.checkImageLoaded(n,i.slice(e+1),a,(function(e){e&&c.drawImage.apply(c,[e].concat(u(r.slice(4,8)),u(r.slice(0,4))))})))return"break"}(),"break"===p)return"break"}else"clip"===r?(s.forEach((function(e){c[e.method].apply(c,e.data)})),c.clip()):c[r].apply(c,s)};e:for(var f=0;f<i.length;f++){var h,p,g=d(f);switch(g){case"break":break e;case"continue":continue}}!this.actionsWaiting&&a&&e.publishHandler("onCanvasMethodCallback",{callbackId:a,data:{errMsg:"drawCanvas:ok"}},this.$page.id)}},preloadImage:function(e){var t=this;e.forEach((function(e){var n=e.method,i=e.data,r="";"drawImage"===n?(r=i[0],r=t.$getRealPath(r),i[0]=r):"setFillStyle"===n&&"pattern"===i[0]&&(r=i[1],r=t.$getRealPath(r),i[1]=r),r&&!t._images[r]&&function(){var e=t._images[r]=new Image;e.onload=function(){e.ready=!0},Object(s["d"])(r).then((function(t){e.src=t})).catch((function(){e.src=r}))}()}))},checkImageLoaded:function(e,t,n,i){var r=this,a=this._images[e];return a.ready?(i(a),!0):(this._actionsDefer.unshift([t,!0]),this.actionsWaiting=!0,a.onload=function(){a.ready=!0,i(a),r.actionsWaiting=!1;var e=r._actionsDefer.slice(0);r._actionsDefer=[];for(var t=e.shift();t;)r.actionsChanged({actions:t[0],reserve:t[1],callbackId:n}),t=e.shift()},!1)},getImageData:function(t){var n,i=t.x,r=void 0===i?0:i,a=t.y,o=void 0===a?0:a,s=t.width,u=t.height,c=t.destWidth,l=t.destHeight,d=t.hidpi,h=void 0===d||d,p=t.dataType,g=t.quality,v=void 0===g?1:g,m=t.type,y=void 0===m?"png":m,b=t.callbackId,_=this.$refs.canvas,w=_.offsetWidth-r;s=s?Math.min(s,w):w;var T=_.offsetHeight-o;u=u?Math.min(u,T):T,h?(c=s,l=u):c||l?c?l||(l=Math.round(u/s*c)):c=Math.round(s/u*l):(c=Math.round(s*this.pixelRatio),l=Math.round(u*this.pixelRatio));var S,k=f(c,l),x=k.getContext("2d");"jpeg"!==y&&"jpg"!==y||(y="jpeg",x.fillStyle="#fff",x.fillRect(0,0,c,l)),x.__hidpi__=!0,x.drawImageByCanvas(_,r,o,s,u,0,0,c,l,!1);try{if("base64"===p)n=k.toDataURL("image/".concat(y),v);else{var C=x.getImageData(0,0,c,l);n=Array.prototype.slice.call(C.data)}S={errMsg:"canvasGetImageData:ok",data:n,compressed:void 0,width:c,height:l}}catch(E){S={errMsg:"canvasGetImageData:fail ".concat(E)}}if(k.height=k.width=0,x.__hidpi__=!1,!b)return S;e.publishHandler("onCanvasMethodCallback",{callbackId:b,data:S},this.$page.id)},putImageData:function(t){var n=t.data,i=t.x,r=t.y,a=t.width,o=t.height,s=(t.compressed,t.callbackId);try{o||(o=Math.round(n.length/4/a));var u=f(a,o),c=u.getContext("2d");c.putImageData(new ImageData(new Uint8ClampedArray(n),a,o),0,0),this.$refs.canvas.getContext("2d").drawImage(u,i,r,a,o),u.height=u.width=0}catch(l){return void e.publishHandler("onCanvasMethodCallback",{callbackId:s,data:{errMsg:"canvasPutImageData:fail"}},this.$page.id)}e.publishHandler("onCanvasMethodCallback",{callbackId:s,data:{errMsg:"canvasPutImageData:ok"}},this.$page.id)},toTempFilePath:function(t){var n=this,i=t.x,r=void 0===i?0:i,a=t.y,s=void 0===a?0:a,u=t.width,c=t.height,l=t.destWidth,d=t.destHeight,f=t.fileType,h=t.quality,p=t.dirname,g=t.callbackId,v=this.getImageData({x:r,y:s,width:u,height:c,destWidth:l,destHeight:d,hidpi:!1,dataType:"base64",type:f,quality:h});v.data&&v.data.length?Object(o["a"])(v.data,p,(function(t,i){var r="toTempFilePath:".concat(t?"fail":"ok");t&&(r+=" ".concat(t.message)),e.publishHandler("onCanvasMethodCallback",{callbackId:g,data:{errMsg:r,tempFilePath:i}},n.$page.id)})):e.publishHandler("onCanvasMethodCallback",{callbackId:g,data:{errMsg:v.errMsg.replace("canvasPutImageData","toTempFilePath")}},this.$page.id)}}}}).call(this,n("501c"))},8842:function(e,t,n){"use strict";n.r(t);var i=n("ba15");function r(e,t,n){return e>t-n&&e<t+n}function a(e,t){return r(e,0,t)}function o(){}function s(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}function u(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}function c(e,t,n){this._springX=new u(e,t,n),this._springY=new u(e,t,n),this._springScale=new u(e,t,n),this._startTime=0}o.prototype.x=function(e){return Math.sqrt(e)},s.prototype.setV=function(e,t){var n=Math.pow(Math.pow(e,2)+Math.pow(t,2),.5);this._x_v=e,this._y_v=t,this._x_a=-this._f*this._x_v/n,this._y_a=-this._f*this._y_v/n,this._t=Math.abs(e/this._x_a)||Math.abs(t/this._y_a),this._lastDt=null,this._startTime=(new Date).getTime()},s.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},s.prototype.s=function(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t,this._lastDt=e);var t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&t<this._endPositionX||this._x_a<0&&t>this._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&n<this._endPositionY||this._y_a<0&&n>this._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},s.prototype.ds=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},s.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},s.prototype.dt=function(){return-this._x_v/this._x_a},s.prototype.done=function(){var e=r(this.s().x,this._endPositionX)||r(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},s.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},s.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},u.prototype._solve=function(e,t){var n=this._c,i=this._m,r=this._k,a=n*n-4*i*r;if(0===a){var o=-n/(2*i),s=e,u=t/(o*e);return{x:function(e){return(s+u*e)*Math.pow(Math.E,o*e)},dx:function(e){var t=Math.pow(Math.E,o*e);return o*(s+u*e)*t+u*t}}}if(a>0){var c=(-n-Math.sqrt(a))/(2*i),l=(-n+Math.sqrt(a))/(2*i),d=(t-c*e)/(l-c),f=e-d;return{x:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,c*e)),n||(n=this._powER2T=Math.pow(Math.E,l*e)),f*t+d*n},dx:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,c*e)),n||(n=this._powER2T=Math.pow(Math.E,l*e)),f*c*t+d*l*n}}}var h=Math.sqrt(4*i*r-n*n)/(2*i),p=-n/2*i,g=e,v=(t-p*e)/h;return{x:function(e){return Math.pow(Math.E,p*e)*(g*Math.cos(h*e)+v*Math.sin(h*e))},dx:function(e){var t=Math.pow(Math.E,p*e),n=Math.cos(h*e),i=Math.sin(h*e);return t*(v*h*n-g*h*i)+p*t*(v*i+g*n)}}},u.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},u.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},u.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!a(t,.1)){t=t||0;var i=this._endPosition;this._solution&&(a(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),i=this._solution.x((n-this._startTime)/1e3),a(t,.1)&&(t=0),a(i,.1)&&(i=0),i+=this._endPosition),this._solution&&a(i-e,.1)&&a(t,.1)||(this._endPosition=e,this._solution=this._solve(i-this._endPosition,t),this._startTime=n)}},u.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},u.prototype.done=function(e){return e||(e=(new Date).getTime()),r(this.x(),this._endPosition,.1)&&a(this.dx(),.1)},u.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},u.prototype.springConstant=function(){return this._k},u.prototype.damping=function(){return this._c},u.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]},c.prototype.setEnd=function(e,t,n,i){var r=(new Date).getTime();this._springX.setEnd(e,i,r),this._springY.setEnd(t,i,r),this._springScale.setEnd(n,i,r),this._startTime=r},c.prototype.x=function(){var e=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},c.prototype.done=function(){var e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},c.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};var l=n("d4cd"),d=!1;function f(e){d||(d=!0,requestAnimationFrame((function(){e(),d=!1})))}function h(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}function p(e,t,n){var i={id:0,cancelled:!1};return function t(n,i,r,a){if(!n||!n.cancelled){r(i);var o=e.done();o||n.cancelled||(n.id=requestAnimationFrame(t.bind(null,n,i,r,a))),o&&a&&a(i)}}(i,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,i),model:e}}var g={name:"MovableView",mixins:[i["a"]],props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},data:function(){return{xSync:this._getPx(this.x),ySync:this._getPx(this.y),scaleValueSync:Number(this.scaleValue)||1,width:0,height:0,minX:0,minY:0,maxX:0,maxY:0}},computed:{dampingNumber:function(){var e=Number(this.damping);return isNaN(e)?20:e},frictionNumber:function(){var e=Number(this.friction);return isNaN(e)||e<=0?2:e},scaleMinNumber:function(){var e=Number(this.scaleMin);return isNaN(e)?.5:e},scaleMaxNumber:function(){var e=Number(this.scaleMax);return isNaN(e)?10:e},xMove:function(){return"all"===this.direction||"horizontal"===this.direction},yMove:function(){return"all"===this.direction||"vertical"===this.direction}},watch:{x:function(e){this.xSync=this._getPx(e)},xSync:function(e){this._setX(e)},y:function(e){this.ySync=this._getPx(e)},ySync:function(e){this._setY(e)},disabled:function(){this.__handleTouchStart()},scaleValue:function(e){this.scaleValueSync=Number(e)||0},scaleValueSync:function(e){this._setScaleValue(e)},scaleMinNumber:function(){this._setScaleMinOrMax()},scaleMaxNumber:function(){this._setScaleMinOrMax()}},created:function(){this._offset={x:0,y:0},this._scaleOffset={x:0,y:0},this._translateX=0,this._translateY=0,this._scale=1,this._oldScale=1,this._STD=new c(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber),this._friction=new s(1,this.frictionNumber),this._declineX=new o,this._declineY=new o,this.__touchInfo={historyX:[0,0],historyY:[0,0],historyT:[0,0]}},mounted:function(){this.touchtrack(this.$el,"_onTrack"),this.setParent(),this._friction.reconfigure(1,this.frictionNumber),this._STD.reconfigure(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber),this.$el.style.transformOrigin="center",Object(l["b"])()},methods:{_getPx:function(e){return/\d+[ur]px$/i.test(e)?uni.upx2px(parseFloat(e)):Number(e)||0},_setX:function(e){if(this.xMove){if(e+this._scaleOffset.x===this._translateX)return this._translateX;this._SFA&&this._SFA.cancel(),this._animationTo(e+this._scaleOffset.x,this.ySync+this._scaleOffset.y,this._scale)}return e},_setY:function(e){if(this.yMove){if(e+this._scaleOffset.y===this._translateY)return this._translateY;this._SFA&&this._SFA.cancel(),this._animationTo(this.xSync+this._scaleOffset.x,e+this._scaleOffset.y,this._scale)}return e},_setScaleMinOrMax:function(){if(!this.scale)return!1;this._updateScale(this._scale,!0),this._updateOldScale(this._scale)},_setScaleValue:function(e){return!!this.scale&&(e=this._adjustScale(e),this._updateScale(e,!0),this._updateOldScale(e),e)},__handleTouchStart:function(){this._isScaling||this.disabled||(Object(l["a"])({disable:!0}),this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel(),this.__touchInfo.historyX=[0,0],this.__touchInfo.historyY=[0,0],this.__touchInfo.historyT=[0,0],this.xMove&&(this.__baseX=this._translateX),this.yMove&&(this.__baseY=this._translateY),this.$el.style.willChange="transform",this._checkCanMove=null,this._firstMoveDirection=null,this._isTouching=!0)},__handleTouchMove:function(e){var t=this;if(!this._isScaling&&!this.disabled&&this._isTouching){var n=this._translateX,i=this._translateY;if(null===this._firstMoveDirection&&(this._firstMoveDirection=Math.abs(e.detail.dx/e.detail.dy)>1?"htouchmove":"vtouchmove"),this.xMove&&(n=e.detail.dx+this.__baseX,this.__touchInfo.historyX.shift(),this.__touchInfo.historyX.push(n),this.yMove||null!==this._checkCanMove||(this._checkCanMove=Math.abs(e.detail.dx/e.detail.dy)<1)),this.yMove&&(i=e.detail.dy+this.__baseY,this.__touchInfo.historyY.shift(),this.__touchInfo.historyY.push(i),this.xMove||null!==this._checkCanMove||(this._checkCanMove=Math.abs(e.detail.dy/e.detail.dx)<1)),this.__touchInfo.historyT.shift(),this.__touchInfo.historyT.push(e.detail.timeStamp),!this._checkCanMove){e.preventDefault();var r="touch";n<this.minX?this.outOfBounds?(r="touch-out-of-bounds",n=this.minX-this._declineX.x(this.minX-n)):n=this.minX:n>this.maxX&&(this.outOfBounds?(r="touch-out-of-bounds",n=this.maxX+this._declineX.x(n-this.maxX)):n=this.maxX),i<this.minY?this.outOfBounds?(r="touch-out-of-bounds",i=this.minY-this._declineY.x(this.minY-i)):i=this.minY:i>this.maxY&&(this.outOfBounds?(r="touch-out-of-bounds",i=this.maxY+this._declineY.x(i-this.maxY)):i=this.maxY),f((function(){t._setTransform(n,i,t._scale,r)}))}}},__handleTouchEnd:function(){var e=this;if(!this._isScaling&&!this.disabled&&this._isTouching&&(Object(l["a"])({disable:!1}),this.$el.style.willChange="auto",this._isTouching=!1,!this._checkCanMove&&!this._revise("out-of-bounds")&&this.inertia)){var t=1e3*(this.__touchInfo.historyX[1]-this.__touchInfo.historyX[0])/(this.__touchInfo.historyT[1]-this.__touchInfo.historyT[0]),n=1e3*(this.__touchInfo.historyY[1]-this.__touchInfo.historyY[0])/(this.__touchInfo.historyT[1]-this.__touchInfo.historyT[0]);this._friction.setV(t,n),this._friction.setS(this._translateX,this._translateY);var i=this._friction.delta().x,r=this._friction.delta().y,a=i+this._translateX,o=r+this._translateY;a<this.minX?(a=this.minX,o=this._translateY+(this.minX-this._translateX)*r/i):a>this.maxX&&(a=this.maxX,o=this._translateY+(this.maxX-this._translateX)*r/i),o<this.minY?(o=this.minY,a=this._translateX+(this.minY-this._translateY)*i/r):o>this.maxY&&(o=this.maxY,a=this._translateX+(this.maxY-this._translateY)*i/r),this._friction.setEnd(a,o),this._FA=p(this._friction,(function(){var t=e._friction.s(),n=t.x,i=t.y;e._setTransform(n,i,e._scale,"friction")}),(function(){e._FA.cancel()}))}},_onTrack:function(e){switch(e.detail.state){case"start":this.__handleTouchStart();break;case"move":this.__handleTouchMove(e);break;case"end":this.__handleTouchEnd()}},_getLimitXY:function(e,t){var n=!1;return e>this.maxX?(e=this.maxX,n=!0):e<this.minX&&(e=this.minX,n=!0),t>this.maxY?(t=this.maxY,n=!0):t<this.minY&&(t=this.minY,n=!0),{x:e,y:t,outOfBounds:n}},setParent:function(){if(this.$parent._isMounted){this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel();var e=this.scale?this.scaleValueSync:1;this._updateOffset(),this._updateWH(e),this._updateBoundary(),this._translateX=this.xSync+this._scaleOffset.x,this._translateY=this.ySync+this._scaleOffset.y;var t=this._getLimitXY(this._translateX,this._translateY),n=t.x,i=t.y;this._setTransform(n,i,e,"",!0),this._updateOldScale(e)}},_updateOffset:function(){this._offset.x=function e(t,n){if(t===n)return 0;var i=t.offsetLeft;return t.offsetParent?i+=e(t.offsetParent,n):0}(this.$el,this.$parent.$el),this._offset.y=function e(t,n){if(t===n)return 0;var i=t.offsetTop;return t.offsetParent?i+=e(t.offsetParent,n):0}(this.$el,this.$parent.$el)},_updateWH:function(e){e=e||this._scale,e=this._adjustScale(e);var t=this.$el.getBoundingClientRect();this.height=t.height/this._scale,this.width=t.width/this._scale;var n=this.height*e,i=this.width*e;this._scaleOffset.x=(i-this.width)/2,this._scaleOffset.y=(n-this.height)/2},_updateBoundary:function(){var e=0-this._offset.x+this._scaleOffset.x,t=this.$parent.width-this.width-this._offset.x-this._scaleOffset.x;this.minX=Math.min(e,t),this.maxX=Math.max(e,t);var n=0-this._offset.y+this._scaleOffset.y,i=this.$parent.height-this.height-this._offset.y-this._scaleOffset.y;this.minY=Math.min(n,i),this.maxY=Math.max(n,i)},_beginScale:function(){this._isScaling=!0},_endScale:function(){this._isScaling=!1,this._updateOldScale(this._scale)},_setScale:function(e){this.scale&&(e=this._oldScale*e,this._beginScale(),this._updateScale(e))},_updateScale:function(e,t){var n=this;if(this.scale){e=this._adjustScale(e),this._updateWH(e),this._updateBoundary();var i=this._getLimitXY(this._translateX,this._translateY),r=i.x,a=i.y;t?this._animationTo(r,a,e,"",!0,!0):f((function(){n._setTransform(r,a,e,"",!0,!0)}))}},_updateOldScale:function(e){this._oldScale=e},_adjustScale:function(e){return e=Math.max(.5,this.scaleMinNumber,e),e=Math.min(10,this.scaleMaxNumber,e),e},_animationTo:function(e,t,n,i,r,a){var o=this;this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel(),this.xMove||(e=this._translateX),this.yMove||(t=this._translateY),this.scale||(n=this._scale);var s=this._getLimitXY(e,t);e=s.x,t=s.y,this.animation?(this._STD._springX._solution=null,this._STD._springY._solution=null,this._STD._springScale._solution=null,this._STD._springX._endPosition=this._translateX,this._STD._springY._endPosition=this._translateY,this._STD._springScale._endPosition=this._scale,this._STD.setEnd(e,t,n,1),this._SFA=p(this._STD,(function(){var e=o._STD.x(),t=e.x,n=e.y,s=e.scale;o._setTransform(t,n,s,i,r,a)}),(function(){o._SFA.cancel()}))):this._setTransform(e,t,n,i,r,a)},_revise:function(e){var t=this._getLimitXY(this._translateX,this._translateY),n=t.x,i=t.y,r=t.outOfBounds;return r&&this._animationTo(n,i,this._scale,e),r},_setTransform:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;null!==e&&"NaN"!==e.toString()&&"number"===typeof e||(e=this._translateX||0),null!==t&&"NaN"!==t.toString()&&"number"===typeof t||(t=this._translateY||0),e=Number(e.toFixed(1)),t=Number(t.toFixed(1)),n=Number(n.toFixed(1)),this._translateX===e&&this._translateY===t||r||this.$trigger("change",{},{x:h(e,this._scaleOffset.x),y:h(t,this._scaleOffset.y),source:i}),this.scale||(n=this._scale),n=this._adjustScale(n),n=+n.toFixed(3),a&&n!==this._scale&&this.$trigger("scale",{},{x:e,y:t,scale:n});var o="translateX("+e+"px) translateY("+t+"px) translateZ(0px) scale("+n+")";this.$el.style.transform=o,this.$el.style.webkitTransform=o,this._translateX=e,this._translateY=t,this._scale=n}}},v=g,m=(n("7c2b"),n("0c7c")),y=Object(m["a"])(v,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-movable-view",e._g({},e.$listeners),[n("v-uni-resize-sensor",{on:{resize:e.setParent}}),e._t("default")],2)}),[],!1,null,null,null);t["default"]=y.exports},8875:function(e,t,n){var i,r,a;(function(n,o){r=[],i=function(){return function(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(c){var e,t,n,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(c.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(c.stack),r=i&&i[1]||!1,a=i&&i[2]||!1,o=document.location.href.replace(document.location.hash,""),s=document.getElementsByTagName("script");r===o&&(e=document.documentElement.outerHTML,t=new RegExp("(?:[^\\n]+?\\n){0,"+(a-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=e.replace(t,"$1").trim());for(var u=0;u<s.length;u++){if("interactive"===s[u].readyState)return s[u];if(s[u].src===r)return s[u];if(r===o&&s[u].innerHTML&&s[u].innerHTML.trim()===n)return s[u]}return null}}},a="function"===typeof i?i.apply(t,r):i,void 0===a||(e.exports=a)})("undefined"!==typeof self&&self)},"893e":function(e,t,n){"use strict";n.r(t),function(e,i){function r(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),Object.defineProperty(e,i.key,i)}}n.d(t,"connectSocket",(function(){return d})),n.d(t,"sendSocketMessage",(function(){return f})),n.d(t,"closeSocket",(function(){return h})),n.d(t,"onSocketOpen",(function(){return g})),n.d(t,"onSocketError",(function(){return v})),n.d(t,"onSocketMessage",(function(){return m})),n.d(t,"onSocketClose",(function(){return y}));var a=e,o=a.invokeCallbackHandler,s=["open","close","error","message"],u={},c=[],l=function(){function e(t,n,r){var a,l=this;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_webSocket",void 0);try{var d=this._webSocket=new WebSocket(t,n);d.binaryType="arraybuffer",this._callbacks={},s.forEach((function(e){l._callbacks[e]=[],d.addEventListener(e,(function(t){var n="message"===e?{data:t.data}:{};if(l._callbacks[e].forEach((function(t){try{t(n)}catch(r){i.error("thirdScriptError\n".concat(r,";at socketTask.on").concat(e[0].toUpperCase()+e.substr(1)," callback function\n"),r)}})),l===c[0]&&u[e]&&o(u[e],n),"error"===e||"close"===e){var r=c.indexOf(l);r>=0&&c.splice(r,1)}}))}));["CLOSED","CLOSING","CONNECTING","OPEN","readyState"].forEach((function(e){Object.defineProperty(l,e,{get:function(){return d[e]}})}))}catch(f){a=f}r(a,this)}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"send",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=this._webSocket;try{if(n.readyState!==n.OPEN)throw new Error("SocketTask.readyState is not OPEN");n.send(t),this._callback(e,"sendSocketMessage:ok")}catch(i){this._callback(e,"sendSocketMessage:fail ".concat(i))}}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._webSocket,n=[];n.push(e.code||1e3),"string"===typeof e.reason&&n.push(e.reason);try{t.close.apply(t,n),this._callback(e,"closeSocket:ok")}catch(i){this._callback(e,"closeSocket:fail ".concat(i))}}},{key:"_callback",value:function(e,t){var n=e.success,i=e.fail,r=e.complete,a={errMsg:t};/:ok$/.test(t)?"function"===typeof n&&n(a):"function"===typeof i&&i(a),"function"===typeof r&&r(a)}}]),e}();function d(e,t){var n=e.url,i=e.protocols;return new l(n,i,(function(e,n){e||c.push(n),o(t,{errMsg:"connectSocket:"+(e?"fail ".concat(e):"ok")})}))}function f(e,t){var n=c[0];n&&n.readyState===n.OPEN?n.send(Object.assign({},e,{complete:function(e){o(t,e)}})):o(t,{errMsg:"sendSocketMessage:fail WebSocket is not connected "})}function h(e,t){var n=c[0];n?n.close(Object.assign({},e,{complete:function(e){o(t,e)}})):o(t,{errMsg:"closeSocket:fail WebSocket is not connected"})}function p(e){return function(t){u[e]=t}}s.forEach((function(e){var t=e[0].toUpperCase()+e.substr(1);l.prototype["on".concat(t)]=function(t){this._callbacks[e].push(t)}}));var g=p("open"),v=p("error"),m=p("message"),y=p("close")}.call(this,n("0dd1"),n("3ad9")["default"])},"898f":function(e,t,n){"use strict";n.r(t),n.d(t,"previewImage",(function(){return o})),n.d(t,"closePreviewImage",(function(){return s}));var i=n("db70"),r="longPressActionsCallback",a={};function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a=e.longPressActions||{},(a.success||a.fail||a.complete)&&(a.callbackId=r),Object(i["c"])("previewImagePlus",e)}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i["c"])("closePreviewImagePlus",e)}Object(i["d"])(r,(function(e){var t=e.errMsg||"";new RegExp("\\:\\s*fail").test(t)?a.fail&&a.fail(e):a.success&&a.success(e),a.complete&&a.complete(e)}))},"8a36":function(e,t,n){"use strict";(function(e){var i=n("f2b3");t["a"]={props:{id:{type:String,default:""}},created:function(){var e=this;this._addListeners(this.id),this.$watch("id",(function(t,n){e._removeListeners(n,!0),e._addListeners(t,!0)}))},beforeDestroy:function(){this._removeListeners(this.id)},methods:{_addListeners:function(t,n){var r=this;if(!n||t){var a=this.$options.listeners;Object(i["l"])(a)&&Object.keys(a).forEach((function(i){n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&e.on("uni-".concat(i,"-").concat(r.$page.id,"-").concat(t),r[a[i]]):0===i.indexOf("@")?r.$on("uni-".concat(i.substr(1)),r[a[i]]):0===i.indexOf("uni-")?e.on(i,r[a[i]]):t&&e.on("uni-".concat(i,"-").concat(r.$page.id,"-").concat(t),r[a[i]])}))}},_removeListeners:function(t,n){var r=this;if(!n||t){var a=this.$options.listeners;Object(i["l"])(a)&&Object.keys(a).forEach((function(i){n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&e.off("uni-".concat(i,"-").concat(r.$page.id,"-").concat(t),r[a[i]]):0===i.indexOf("@")?r.$off("uni-".concat(i.substr(1)),r[a[i]]):0===i.indexOf("uni-")?e.off(i,r[a[i]]):t&&e.off("uni-".concat(i,"-").concat(r.$page.id,"-").concat(t),r[a[i]])}))}}}}}).call(this,n("501c"))},"8aec":function(e,t,n){"use strict";var i=n("5363"),r=n("72b3");function a(e,t,n){this._extent=e,this._friction=t||new i["a"](.01),this._spring=n||new r["a"](1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}function o(e,t){t=t||{},this._element=e,this._options=t,this._enableSnap=t.enableSnap||!1,this._itemSize=t.itemSize||0,this._enableX=t.enableX||!1,this._enableY=t.enableY||!1,this._shouldDispatchScrollEvent=!!t.onScroll,this._enableX?(this._extent=(t.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=t.scrollWidth):(this._extent=(t.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=t.scrollHeight),this._position=0,this._scroll=new a(this._extent,t.friction,t.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}a.prototype.snap=function(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)},a.prototype.set=function(e,t){this._friction.set(e,t),e>0&&t>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(0)):e<-this._extent&&t<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()},a.prototype.x=function(e){if(!this._startTime)return 0;if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;var t=this._friction.x(e),n=this.dx(e);return(t>0&&n>=0||t<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),t<-this._extent?this._springOffset=-this._extent:this._springOffset=0,t=this._spring.x()+this._springOffset),t},a.prototype.dx=function(e){var t;return t=this._lastTime===e?this._lastDx:this._springing?this._spring.dx(e):this._friction.dx(e),this._lastTime=e,this._lastDx=t,t},a.prototype.done=function(){return this._springing?this._spring.done():this._friction.done()},a.prototype.setVelocityByEnd=function(e){this._friction.setVelocityByEnd(e)},a.prototype.configuration=function(){var e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e},o.prototype.onTouchStart=function(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()},o.prototype.onTouchMove=function(e,t){var n=this._startPosition;this._enableX?n+=e:this._enableY&&(n+=t),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()},o.prototype.onTouchEnd=function(e,t,n){var i=this;if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(t)<this._itemSize&&Math.abs(n.y)<300||Math.abs(n.y)<150))return void this.snap();if(this._enableX&&(Math.abs(e)<this._itemSize&&Math.abs(n.x)<300||Math.abs(n.x)<150))return void this.snap()}if(this._enableX?this._scroll.set(this._position,n.x):this._enableY&&this._scroll.set(this._position,n.y),this._enableSnap){var r=this._scroll._friction.x(100),a=r%this._itemSize,o=Math.abs(a)>this._itemSize/2?r-(this._itemSize-Math.abs(a)):r-a;o<=0&&o>=-this._extent&&this._scroll.setVelocityByEnd(o)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=function(e,t,n){var i={id:0,cancelled:!1};return function e(t,n,i,r){if(!t||!t.cancelled){i(n);var a=n.done();a||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,i,r))),a&&r&&r(n)}}(i,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,i),model:e}}(this._scroll,(function(){var e=Date.now(),t=(e-i._scroll._startTime)/1e3,n=i._scroll.x(t);i._position=n,i.updatePosition();var r=i._scroll.dx(t);i._shouldDispatchScrollEvent&&e-i._lastTime>i._lastDelay&&(i.dispatchScroll(),i._lastDelay=Math.abs(2e3/r),i._lastTime=e)}),(function(){i._enableSnap&&(o<=0&&o>=-i._extent&&(i._position=o,i.updatePosition()),"function"===typeof i._options.onSnap&&i._options.onSnap(Math.floor(Math.abs(i._position)/i._itemSize))),i._shouldDispatchScrollEvent&&i.dispatchScroll(),i._scrolling=!1}))},o.prototype.onTransitionEnd=function(){this._element.style.transition="",this._element.style.webkitTransition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._element.removeEventListener("webkitTransitionEnd",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()},o.prototype.snap=function(){var e=this._itemSize,t=this._position%e,n=Math.abs(t)>this._itemSize/2?this._position-(e-Math.abs(t)):this._position-t;this._position!==n&&(this._snapping=!0,this.scrollTo(-n),"function"===typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))},o.prototype.scrollTo=function(e,t){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"===typeof e&&(this._position=-e),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0),this._element.style.transition="transform "+(t||.2)+"s ease-out",this._element.style.webkitTransition="-webkit-transform "+(t||.2)+"s ease-out",this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd),this._element.addEventListener("webkitTransitionEnd",this._onTransitionEnd)},o.prototype.dispatchScroll=function(){if("function"===typeof this._options.onScroll&&Math.round(this._lastPos)!==Math.round(this._position)){this._lastPos=this._position;var e={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(e)}},o.prototype.update=function(e,t,n){var i=0,r=this._position;this._enableX?(i=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(i=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"===typeof e&&(this._position=-e),this._position<-i?this._position=-i:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),r!==this._position&&(this.dispatchScroll(),"function"===typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=i,this._scroll._extent=i},o.prototype.updatePosition=function(){var e="";this._enableX?e="translateX("+this._position+"px) translateZ(0)":this._enableY&&(e="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=e,this._element.style.transform=e},o.prototype.isScrolling=function(){return this._scrolling||this._snapping},t["a"]={methods:{initScroller:function(e,t){this._touchInfo={trackingID:-1,maxDy:0,maxDx:0},this._scroller=new o(e,t),this.__handleTouchStart=this._handleTouchStart.bind(this),this.__handleTouchMove=this._handleTouchMove.bind(this),this.__handleTouchEnd=this._handleTouchEnd.bind(this),this._initedScroller=!0},_findDelta:function(e){var t=this._touchInfo;return"move"===e.detail.state||"end"===e.detail.state?{x:e.detail.dx,y:e.detail.dy}:{x:e.screenX-t.x,y:e.screenY-t.y}},_handleTouchStart:function(e){var t=this._touchInfo,n=this._scroller;n&&("start"===e.detail.state?(t.trackingID="touch",t.x=e.detail.x,t.y=e.detail.y):(t.trackingID="mouse",t.x=e.screenX,t.y=e.screenY),t.maxDx=0,t.maxDy=0,t.historyX=[0],t.historyY=[0],t.historyTime=[e.detail.timeStamp],t.listener=n,n.onTouchStart&&n.onTouchStart(),e.preventDefault())},_handleTouchMove:function(e){var t=this._touchInfo;if(-1!==t.trackingID){e.preventDefault();var n=this._findDelta(e);if(n){for(t.maxDy=Math.max(t.maxDy,Math.abs(n.y)),t.maxDx=Math.max(t.maxDx,Math.abs(n.x)),t.historyX.push(n.x),t.historyY.push(n.y),t.historyTime.push(e.detail.timeStamp);t.historyTime.length>10;)t.historyTime.shift(),t.historyX.shift(),t.historyY.shift();t.listener&&t.listener.onTouchMove&&t.listener.onTouchMove(n.x,n.y,e.detail.timeStamp)}}},_handleTouchEnd:function(e){var t=this._touchInfo;if(-1!==t.trackingID){e.preventDefault();var n=this._findDelta(e);if(n){var i=t.listener;t.trackingID=-1,t.listener=null;var r=t.historyTime.length,a={x:0,y:0};if(r>2)for(var o=t.historyTime.length-1,s=t.historyTime[o],u=t.historyX[o],c=t.historyY[o];o>0;){o--;var l=t.historyTime[o],d=s-l;if(d>30&&d<50){a.x=(u-t.historyX[o])/(d/1e3),a.y=(c-t.historyY[o])/(d/1e3);break}}t.historyTime=[],t.historyX=[],t.historyY=[],i&&i.onTouchEnd&&i.onTouchEnd(n.x,n.y,a)}}}}}},"8af1":function(e,t,n){"use strict";var i=n("5cf8");n.d(t,"a",(function(){return i["a"]}));var r=n("8a36");n.d(t,"f",(function(){return r["a"]}));var a=n("83a6");n.d(t,"c",(function(){return a["a"]}));var o=n("1b6f");n.d(t,"g",(function(){return o["a"]}));var s=n("5a23");n.d(t,"e",(function(){return s["a"]}));var u=n("b282");n.d(t,"b",(function(){return u["a"]}));var c=n("a878");n.d(t,"d",(function(){return c["a"]}))},"8b3f":function(e,t,n){"use strict";n.r(t),n.d(t,"onNetworkStatusChange",(function(){return o})),n.d(t,"offNetworkStatusChange",(function(){return s}));var i=n("a118"),r=n("db70"),a=[];function o(e){a.push(e)}function s(e){if(e){var t=a.indexOf(e);t>=0&&a.splice(t,1)}}Object(r["d"])("onNetworkStatusChange",(function(e){a.forEach((function(t){Object(i["a"])(t,e)}))}))},"8b67":function(e,t,n){"use strict";n.r(t),n.d(t,"TEMP_PATH",(function(){return i}));var i=""},"8bbf":function(e,n){e.exports=t},"8c15":function(e,t,n){"use strict";n.r(t),function(e){var i=n("85b6"),r=n("d4b6"),a=n("61c2"),o=n("c4c5");function s(){e.publishHandler("onPageReady",{},this.$page.id)}t["default"]={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.routes,Object(r["a"])();var n=function(e,t){for(var n=e.target;n&&n!==t;n=n.parentNode)if(n.tagName&&0===n.tagName.indexOf("UNI-"))break;return n};e.prototype.$handleEvent=function(e){if(e instanceof Event){var t=n(e,this.$el);e=r["b"].call(this,e.type,e,{},t||e.target,e.currentTarget)}return e},e.prototype.$getComponentDescriptor=function(e,t){return Object(o["a"])(e||this,t)},Object.defineProperty(e.prototype,"$ownerInstance",{get:function(){return this.$getComponentDescriptor(this)}}),e.prototype.$handleWxsEvent=function(e){if(e instanceof Event){var t=e.currentTarget,i=t&&(t.__vue__||t),a=t&&i.$getComponentDescriptor&&i.$getComponentDescriptor(i,!1),o=e;e=r["b"].call(this,o.type,o,{},n(o,this.$el)||o.target,o.currentTarget),e.instance=a,e.preventDefault=function(){return o.preventDefault()},e.stopPropagation=function(){return o.stopPropagation()}}return e},e.mixin({beforeCreate:function(){var e=this,t=this.$options,n=t.wxs;n&&Object.keys(n).forEach((function(t){e[t]=n[t]})),t.behaviors&&t.behaviors.length&&Object(a["a"])(t,this),Object(i["d"])(this)&&(t.mounted=t.mounted?[].concat(s,t.mounted):[s])}})}}}.call(this,n("501c"))},"8ce3":function(e,t,n){"use strict";n.r(t),function(e,i){n.d(t,"chooseVideo",(function(){return d}));var r=n("e2e2"),a=n("a6b0"),o=n("3563"),s=n("8af1"),u=e,c=u.invokeCallbackHandler,l=null;function d(e,t){var n=e.sourceType,u=e.extension;l&&(document.body.removeChild(l),l=null),l=Object(o["default"])({sourceType:n,extension:u,type:"video"}),document.body.appendChild(l),l.addEventListener("change",(function(e){var n,i=e.target.files[0],a={errMsg:"chooseVideo:ok",tempFile:i,size:i.size,duration:0,width:0,height:0,name:i.name};Object.defineProperty(a,"tempFilePath",{get:function(){return n=n||Object(r["b"])(this.tempFile),n}});var o=document.createElement("video");if(void 0!==o.onloadedmetadata){var s=Object(r["b"])(i);o.onloadedmetadata=function(){Object(r["e"])(s),c(t,Object.assign(a,{duration:o.duration||0,width:o.videoWidth||0,height:o.videoHeight||0}))},setTimeout((function(){o.onloadedmetadata=null,Object(r["e"])(s),c(t,a)}),300),o.src=s}else c(t,a)})),l.click(),s["d"].getStatus()||i.warn("".concat(Object(a["g"])("uni.chooseFile.notUserActivation")))}}.call(this,n("0dd1"),n("3ad9")["default"])},"8e16":function(e,t,n){"use strict";var i=n("6bd7"),r=n.n(i);r.a},"8ed9":function(e,t,n){"use strict";var i=n("7691"),r=n.n(i);r.a},"8f7e":function(e,t,n){"use strict";n.r(t);var i=n("8bbf"),r=n.n(i),a=n("5bc8"),o=a["a"],s=(n("854d"),n("0c7c")),u=Object(s["a"])(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-app",{class:{"uni-app--showtabbar":e.showTabBar,"uni-app--maxwidth":e.showMaxWidth}},[n("layout",{ref:"layout",attrs:{"router-key":e.key,"keep-alive-include":e.keepAliveInclude},on:{maxWidth:e.onMaxWidth,layout:e.onLayout}}),e.hasTabBar?n("tab-bar",e._b({directives:[{name:"show",rawName:"v-show",value:e.showTabBar,expression:"showTabBar"}],ref:"tabBar"},"tab-bar",e.tabBarOptions,!1)):e._e(),e.$options.components.Toast?n("toast",e._b({},"toast",e.showToast,!1)):e._e(),e.$options.components.ActionSheet?n("action-sheet",e._b({on:{close:e._onActionSheetClose}},"action-sheet",e.showActionSheet,!1)):e._e(),e.$options.components.Modal?n("modal",e._b({on:{close:e._onModalClose}},"modal",e.showModal,!1)):e._e(),e.$options.components.PreviewImage?n("preview-image",e._b({on:{close:e._onPreviewClose}},"preview-image",e.previewImage,!1)):e._e(),e.sysComponents&&e.sysComponents.length?e._l(e.sysComponents,(function(e,t){return n(e,{key:t,tag:"component"})})):e._e()],2)}),[],!1,null,null,null),c=u.exports,l=n("2caf"),d=l["a"],f=(n("6226"),Object(s["a"])(d,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-page",{attrs:{"data-page":e.$route.meta.pagePath}},["none"!==e.navigationBar.type?n("page-head",e._b({},"page-head",e.navigationBar,!1)):e._e(),e.enablePullDownRefresh?n("page-refresh",{ref:"refresh",attrs:{color:e.refreshOptions.color,offset:e.refreshOptions.offset}}):e._e(),e.enablePullDownRefresh?n("page-body",{nativeOn:{touchstart:function(t){return e._touchstart(t)},touchmove:function(t){return e._touchmove(t)},touchend:function(t){return e._touchend(t)},touchcancel:function(t){return e._touchend(t)}}},[e._t("page")],2):n("page-body",[e._t("page")],2)],1)}),[],!1,null,null,null)),h=f.exports,p=n("a6b0"),g={name:"AsyncError",mixins:[p["c"]],methods:{_onClick:function(){window.location.reload()}}},v=g,m=(n("b628"),Object(s["a"])(v,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uni-async-error",on:{click:e._onClick}},[e._v(" "+e._s(e.$$t("uni.async.error"))+" ")])}),[],!1,null,null,null)),y=m.exports,b={name:"AsyncLoading"},_=(n("5727"),Object(s["a"])(b,(function(){var e=this;e.$createElement;return e._self._c,e._m(0)}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"uni-async-loading"},[t("i",{staticClass:"uni-loading"})])}],!1,null,null,null)),w=_.exports,T=n("a850"),S=T["a"],k=Object(s["a"])(S,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.hasTabBar?n("uni-tabbar",{directives:[{name:"show",rawName:"v-show",value:e.showTabBar,expression:"showTabBar"}]},[n("div",{staticClass:"uni-tabbar",style:{"flex-direction":"vertical"===e.direction?"column":"row",backgroundColor:e.tabBarOptions.backgroundColor}},[e._l(e.tabBarOptions.list,(function(t,i){return[!1!==t.visible?n("div",{key:t.pagePath,staticClass:"uni-tabbar__item",on:{click:function(n){return e._switchTab(t,i)}}},[n("div",{staticClass:"uni-tabbar__bd"},[e.showIcon&&t.iconPath?n("div",{staticClass:"uni-tabbar__icon",class:{"uni-tabbar__icon__diff":!t.text}},[n("img",{attrs:{src:e._getRealPath(e.selectedIndex===i?t.selectedIconPath:t.iconPath)}}),t.redDot?n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!t.badge}},[e._v(" "+e._s(t.badge)+" ")]):e._e()]):e._e(),t.text?n("div",{staticClass:"uni-tabbar__label",style:{color:e.selectedIndex===i?e.tabBarOptions.selectedColor:e.tabBarOptions.color,fontSize:e.showIcon&&t.iconPath?"10px":"14px"}},[e._v(" "+e._s(t.text)+" "),!t.redDot||e.showIcon&&t.iconPath?e._e():n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!t.badge}},[e._v(" "+e._s(t.badge)+" ")])]):e._e()])]):e._e()]}))],2)]):e._e()}),[],!1,null,null,null),x=k.exports,C=n("a9c8"),E=C["a"],A=(n("9470"),Object(s["a"])(E,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uni-system-choose-location"},[n("v-uni-map",{staticClass:"map",attrs:{latitude:e.latitude,longitude:e.longitude,"show-location":"",libraries:["places"]},on:{updated:e.getList,regionchange:e.onRegionChange}},[n("div",{staticClass:"map-location",style:e.locationStyle}),n("div",{staticClass:"map-move",on:{click:e.moveToLocation}},[n("i",[e._v("")])])]),n("div",{staticClass:"nav"},[n("div",{staticClass:"nav-btn back",on:{click:e.back}},[n("i",{staticClass:"uni-btn-icon"},[e._v("")])]),n("div",{staticClass:"nav-btn confirm",class:{disable:!e.selected},on:{click:e.choose}},[n("i",{staticClass:"uni-btn-icon"},[e._v("")])])]),n("div",{staticClass:"menu"},[n("div",{staticClass:"search"},[n("v-uni-input",{staticClass:"search-input",attrs:{placeholder:e.$$t("uni.chooseLocation.search")},on:{focus:function(t){e.searching=!0},input:e.input},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}}),e.searching?n("div",{staticClass:"search-btn",on:{click:function(t){e.searching=!1,e.keyword=""}}},[e._v(" "+e._s(e.$$t("uni.chooseLocation.cancel"))+" ")]):e._e()],1),n("v-uni-scroll-view",{staticClass:"list",attrs:{"scroll-y":""},on:{scrolltolower:e.loadMore}},[e.loading?n("div",{staticClass:"list-loading"},[n("i",{staticClass:"uni-loading"})]):e._e(),e._l(e.list,(function(t,i){return n("div",{key:i,staticClass:"list-item",class:{selected:e.selectedIndex===i},on:{click:function(n){e.selectedIndex=i,e.latitude=t.latitude,e.longitude=t.longitude}}},[n("div",{staticClass:"list-item-title"},[e._v(" "+e._s(t.name)+" ")]),n("div",{staticClass:"list-item-detail"},[e._v(" "+e._s(e._f("distance")(t.distance))+e._s(t.address)+" ")])])}))],2)],1)],1)}),[],!1,null,null,null)),O=A.exports,j=n("636c"),I={name:"SystemOpenLocation",data:function(){var e=this.$route.query,t=e.latitude,n=e.longitude,i=e.scale,r=void 0===i?18:i,a=e.name,o=void 0===a?"":a,s=e.address,u=void 0===s?"":s;return{latitude:t,longitude:n,scale:r,name:o,address:u,center:{latitude:t,longitude:n},marker:{id:1,latitude:t,longitude:n,iconPath:j["b"],width:32,height:52},location:{id:2,latitude:0,longitude:0,iconPath:j["a"],width:44,height:44}}},mounted:function(){var e=this;uni.getLocation({type:"gcj02",success:function(t){var n=t.latitude,i=t.longitude;e.location.latitude=n,e.location.longitude=i}})},methods:{onRegionChange:function(e){var t=e.detail.centerLocation;t&&(this.center.latitude=t.latitude,this.center.longitude=t.longitude)},setCenter:function(e){var t=e.latitude,n=e.longitude;this.center.latitude=t,this.center.longitude=n},back:function(){getApp().$router.back()},nav:function(){var e=Object(j["e"])(),t="";if(e.type===j["d"].GOOGLE){var n=this.location.latitude?"&origin=".concat(this.location.latitude,"%2C").concat(this.location.longitude):"";t="https://www.google.com/maps/dir/?api=1".concat(n,"&destination=").concat(this.latitude,"%2C").concat(this.longitude)}else if(e.type===j["d"].QQ){var i=this.location.latitude?"&fromcoord=".concat(this.location.latitude,"%2C").concat(this.location.longitude,"&from=").concat(encodeURIComponent("我的位置")):"";t="https://apis.map.qq.com/uri/v1/routeplan?type=drive".concat(i,"&tocoord=").concat(this.latitude,"%2C").concat(this.longitude,"&to=").concat(encodeURIComponent(this.name||"目的地"),"&ref=").concat(e.key)}else if(e.type===j["d"].AMAP){var r=this.location.latitude?"from=".concat(this.location.longitude,",").concat(this.location.latitude,",").concat(encodeURIComponent("我的位置"),"&"):"";t="https://uri.amap.com/navigation?".concat(r,"to=").concat(this.longitude,",").concat(this.latitude,",").concat(encodeURIComponent(this.name||"目的地"),"}")}window.open(t)}}},P=I,M=(n("3da9"),Object(s["a"])(P,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uni-system-open-location"},[n("v-uni-map",{staticClass:"map",attrs:{latitude:e.center.latitude,longitude:e.center.longitude,markers:[e.marker,e.location]},on:{regionchange:e.onRegionChange}},[n("div",{staticClass:"map-move",on:{click:function(t){return e.setCenter(e.location)}}},[n("i",[e._v("")])])]),n("div",{staticClass:"info"},[n("div",{staticClass:"name",on:{click:function(t){return e.setCenter(e.marker)}}},[e._v(" "+e._s(e.name)+" ")]),n("div",{staticClass:"address",on:{click:function(t){return e.setCenter(e.marker)}}},[e._v(" "+e._s(e.address)+" ")]),n("div",{staticClass:"nav",on:{click:e.nav}},[n("svg",{attrs:{width:"26",height:"26",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M896 544c-207.807 0-388.391 82.253-480 203.149V173.136l201.555 201.555c12.412 12.412 32.723 12.412 45.136 0 12.412-12.412 12.412-32.723 0-45.136L408.913 75.777a31.93 31.93 0 0 0-2.222-2.468c-6.222-6.222-14.429-9.324-22.631-9.308l-0.059-0.002-0.059 0.002c-8.202-0.016-16.409 3.085-22.631 9.308a31.93 31.93 0 0 0-2.222 2.468l-253.78 253.778c-12.412 12.412-12.412 32.723 0 45.136 12.412 12.412 32.723 12.412 45.136 0L352 173.136V928c0 17.6 14.4 32 32 32s32-14.4 32-32c0-176.731 214.903-320 480-320 17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32z",fill:"#ffffff"}})])])]),n("div",{staticClass:"nav-btn-back",on:{click:e.back}},[n("i",{staticClass:"uni-btn-icon"},[e._v("")])])],1)}),[],!1,null,null,null)),L=M.exports,D={ChooseLocation:O,OpenLocation:L};r.a.component(c.name,c),r.a.component(h.name,h),r.a.component(y.name,y),r.a.component(w.name,w),r.a.component(x.name,x),Object.keys(D).forEach((function(e){var t=D[e];r.a.component(t.name,t)}))},"907b":function(e,t,n){},"90f7":function(e,t,n){"use strict";var i={name:"PageRefresh",props:{color:{type:String,default:"#2BD009"},offset:{type:Number,default:0}}},r=i,a=(n("9b5b"),n("0c7c")),o=Object(a["a"])(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-page-refresh",[n("div",{staticClass:"uni-page-refresh",style:{"margin-top":e.offset+"px"}},[n("div",{staticClass:"uni-page-refresh-inner"},[n("svg",{staticClass:"uni-page-refresh__icon",attrs:{fill:e.color,width:"24",height:"24",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}}),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})]),n("svg",{staticClass:"uni-page-refresh__spinner",attrs:{width:"24",height:"24",viewBox:"25 25 50 50"}},[n("circle",{staticClass:"uni-page-refresh__path",attrs:{stroke:e.color,cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"}})])])])])}),[],!1,null,null,null);t["a"]=o.exports},9213:function(e,t,n){"use strict";n.r(t);var i={name:"SwiperItem",props:{itemId:{type:String,default:""}},mounted:function(){var e=this.$el;e.style.position="absolute",e.style.width="100%",e.style.height="100%";var t=this.$vnode._callbacks;t&&t.forEach((function(e){e()}))}},r=i,a=(n("bfea"),n("0c7c")),o=Object(a["a"])(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-swiper-item",e._g({},e.$listeners),[e._t("default")],2)}),[],!1,null,null,null);t["default"]=o.exports},9250:function(e,t){var n=[].concat(["base64ToArrayBuffer","arrayBufferToBase64","addInterceptor","removeInterceptor","interceptors"],["request","uploadFile","downloadFile","connectSocket","onSocketOpen","onSocketError","sendSocketMessage","onSocketMessage","closeSocket","onSocketClose","getUpdateManager","configMTLS"],["navigateTo","redirectTo","reLaunch","switchTab","navigateBack"],["setStorage","setStorageSync","getStorage","getStorageSync","getStorageInfo","getStorageInfoSync","removeStorage","removeStorageSync","clearStorage","clearStorageSync"],["getLocation","chooseLocation","openLocation","createMapContext","onLocationChange","onLocationChangeError","startLocationUpdate","stopLocationUpdate","offLocationChange","offLocationChangeError"],["chooseImage","chooseFile","previewImage","closePreviewImage","getImageInfo","getVideoInfo","saveImageToPhotosAlbum","compressImage","compressVideo","getRecorderManager","getBackgroundAudioManager","createAudioContext","createInnerAudioContext","chooseVideo","saveVideoToPhotosAlbum","createVideoContext","createCameraContext","createLivePlayerContext","createLivePusherContext"],["getSystemInfo","getSystemInfoSync","getWindowInfo","getDeviceInfo","getAppBaseInfo","canIUse","onMemoryWarning","getNetworkType","onNetworkStatusChange","offNetworkStatusChange","onAccelerometerChange","offAccelerometerChange","startAccelerometer","stopAccelerometer","onCompassChange","offCompassChange","startCompass","stopCompass","onGyroscopeChange","startGyroscope","stopGyroscope","makePhoneCall","scanCode","setClipboardData","getClipboardData","setScreenBrightness","getScreenBrightness","setKeepScreenOn","onUserCaptureScreen","vibrateLong","vibrateShort","addPhoneContact","openBluetoothAdapter","startBluetoothDevicesDiscovery","onBluetoothDeviceFound","stopBluetoothDevicesDiscovery","onBluetoothAdapterStateChange","getConnectedBluetoothDevices","getBluetoothDevices","getBluetoothAdapterState","closeBluetoothAdapter","writeBLECharacteristicValue","readBLECharacteristicValue","onBLEConnectionStateChange","onBLECharacteristicValueChange","notifyBLECharacteristicValueChange","getBLEDeviceServices","getBLEDeviceCharacteristics","createBLEConnection","closeBLEConnection","setBLEMTU","getBLEDeviceRSSI","onBeaconServiceChange","onBeaconUpdate","getBeacons","startBeaconDiscovery","stopBeaconDiscovery","checkIsSupportSoterAuthentication","checkIsSoterEnrolledInDevice","startSoterAuthentication","onThemeChange","offThemeChange","onUIStyleChange","getSystemSetting","getAppAuthorizeSetting","openAppAuthorizeSetting"],["hideKeyboard","onKeyboardHeightChange","offKeyboardHeightChange","getSelectedTextRange"],["showToast","hideToast","showLoading","hideLoading","showModal","showActionSheet","setNavigationBarTitle","setNavigationBarColor","showNavigationBarLoading","hideNavigationBarLoading","setTabBarItem","setTabBarStyle","hideTabBar","showTabBar","setTabBarBadge","removeTabBarBadge","showTabBarRedDot","hideTabBarRedDot","onTabBarMidButtonTap","setBackgroundColor","setBackgroundTextStyle","createAnimation","pageScrollTo","onWindowResize","offWindowResize","loadFontFace","startPullDownRefresh","stopPullDownRefresh","createSelectorQuery","createIntersectionObserver","createMediaQueryObserver","getMenuButtonBoundingClientRect","showTopWindow","showLeftWindow","showRightWindow","hideTopWindow","hideLeftWindow","hideRightWindow","getTopWindowStyle","getLeftWindowStyle","getRightWindowStyle","setTopWindowStyle","setLeftWindowStyle","setRightWindowStyle","getLocale","setLocale","onLocaleChange"],["$emit","$on","$once","$off"],["saveFile","getSavedFileList","getSavedFileInfo","removeSavedFile","getFileInfo","openDocument","getFileSystemManager"],["createOffscreenCanvas","createCanvasContext","canvasToTempFilePath","canvasPutImageData","canvasGetImageData"],["getProvider","login","checkSession","getUserInfo","getUserProfile","preLogin","closeAuthView","getCheckBoxState","getUniverifyManager","share","shareWithSystem","showShareMenu","hideShareMenu","requestPayment","subscribePush","unsubscribePush","onPush","offPush","requireNativePlugin","upx2px","restoreGlobal","requireGlobal","getSubNVueById","getCurrentSubNVue","setPageMeta","onHostEventReceive","onNativeEventReceive","sendNativeEvent","preloadPage","unPreloadPage","loadSubPackage","sendHostEvent","navigateToMiniProgram","getLaunchOptionsSync","getEnterOptionsSync","initUTSProxyClass","initUTSProxyFunction","initUTSIndexClassName","initUTSClassName","initUTSPackageName","requireUTSPlugin","registerUTSPlugin"],["createRewardedVideoAd","createFullScreenVideoAd","createInterstitialAd","createInteractiveAd"],["invokePushCallback","getPushClientId","onPushMessage","offPushMessage","createPushMessage"]);e.exports=n},9389:function(e,t,n){},"93a5":function(e,t,n){var i={"./ad/index.vue":"10a3","./cover-image/index.vue":"d677","./cover-view/index.vue":"c41f","./map/index.vue":"594d","./picker/index.vue":"6fa7","./video/index.vue":"31e2","./view/index.vue":"ec4b","./web-view/index.vue":"9980"};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=a,e.exports=r,r.id="93a5"},"93ab":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i={};function r(e,t,n){var r="string"===typeof e?window[e]:e;if(r)n();else{var a=i[t];if(!a){a=i[t]=[];var o=document.createElement("script");o.src=t,document.body.appendChild(o),o.onload=function(){a.forEach((function(e){return e()})),delete i[t]}}a.push(n)}}},9400:function(e,t,n){"use strict";var i=n("bb8c"),r=n.n(i);r.a},"944e":function(e,t,n){"use strict";var i=n("db10"),r=n.n(i);r.a},9470:function(e,t,n){"use strict";var i=n("aa20"),r=n.n(i);r.a},"956d":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"getVideoInfo",(function(){return r}));var i=n("e2e2");function r(t,n){var r=t.src,a=e,o=a.invokeCallbackHandler;Object(i["f"])(r,!0).then((function(e){return e})).catch((function(){return{}})).then((function(e){var t=e.size?{size:e.size,errMsg:"getVideoInfo:ok"}:{errMsg:"getVideoInfo:fail"},i=document.createElement("video");if(void 0!==i.onloadedmetadata){var a=setTimeout((function(){i.onloadedmetadata=null,i.onerror=null,o(n,t)}),r.startsWith("data:")||r.startsWith("blob:")?300:3e3);i.onloadedmetadata=function(){clearTimeout(a),i.onerror=null,o(n,Object.assign(t,{size:e.size,duration:i.duration||0,width:i.videoWidth||0,height:i.videoHeight||0,errMsg:"getVideoInfo:ok"}))},i.onerror=function(){clearTimeout(a),i.onloadedmetadata=null,o(n,t)},i.src=r}else o(n,t)}))}}.call(this,n("0dd1"))},"957a":function(e,t,n){"use strict";n.r(t),n.d(t,"canIUse",(function(){return i}));var i=[{name:"schema",type:String,required:!0}]},9776:function(e,t,n){"use strict";n.r(t),n.d(t,"getLocale",(function(){return o})),n.d(t,"setLocale",(function(){return s})),n.d(t,"onLocaleChange",(function(){return c}));var i=n("a118"),r=n("a6b0"),a=n("65a8");function o(){var e=getApp({allowDefault:!0});return e&&e.$vm?e.$vm.$locale:r["b"].getLocale()}function s(e){var t=getApp().$vm.$locale;return t!==e&&(getApp().$vm.$locale=e,window.localStorage&&(localStorage[a["e"]]=e),u.forEach((function(t){Object(i["a"])(t,{locale:e})})),!0)}var u=[];function c(e){u.push(e)}},"97b9":function(e,t,n){},"98be":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("9250"),r=n.n(i),a=n("27a7"),o=n("ed1a"),s=n("9fe4"),u=Object.create(null);r.a.forEach((function(e){s["a"][e]?u[e]=Object(o["d"])(e,Object(a["c"])(e,s["a"][e])):u[e]=Object(a["d"])(e)}))},"98e3":function(e,t,n){},9980:function(e,t,n){"use strict";n.r(t);var i={name:"WebView",props:{src:{type:String,default:""},fullscreen:{type:Boolean,default:!0}},watch:{src:function(e,t){this.iframe&&(this.iframe.src=this.$getRealPath(this.src))}},mounted:function(){var e=this;this.iframe=document.createElement("iframe"),Object.keys(this.$attrs).forEach((function(t){e.iframe[t]=e.$attrs[t]})),this.iframe.src=this.$getRealPath(this.src),this.fullscreen?document.body.appendChild(this.iframe):this.$refs.webviewContainer.appendChild(this.iframe),this._resize()},activated:function(){this.fullscreen&&(this.iframe.style.display="block")},deactivated:function(){this.fullscreen&&(this.iframe.style.display="none")},beforeDestroy:function(){this.fullscreen&&document.body.removeChild(this.iframe)},methods:{_resize:function(){if(this.fullscreen){var e=this.$el.getBoundingClientRect(),t=e.top,n=e.left,i=e.width,r=e.height;this.iframe.style.position="absolute",this.iframe.style.display="block",this.iframe.style.border=0,this.iframe.style.top=t+"px",this.iframe.style.left=n+"px",this.iframe.style.width=i+"px",this.iframe.style.height=r+"px"}else this.iframe.style.width=this.$refs.webviewContainer.style.width||"300px",this.iframe.style.height=this.$refs.webviewContainer.style.height||"150px"}}},r=i,a=(n("c33f"),n("0c7c")),o=Object(a["a"])(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-web-view",e._g({ref:"webviewContainer",class:{"uni-webview--fullscreen":e.fullscreen}},e.$listeners),[n("v-uni-resize-sensor",{ref:"sensor",on:{resize:e._resize}})],1)}),[],!1,null,null,null);t["default"]=o.exports},"9a3e":function(e,t,n){"use strict";n.r(t),n.d(t,"uploadFile",(function(){return r}));var i=n("cb0f"),r={url:{type:String,required:!0},files:{type:Array},filePath:{type:String,validator:function(e,t){e&&(t.filePath=Object(i["a"])(e))}},name:{type:String},header:{type:Object,validator:function(e,t){t.header=e||{}}},formData:{type:Object,validator:function(e,t){t.formData=e||{}}}}},"9a8b":function(e,t,n){"use strict";n.r(t);var i={name:"Icon",props:{type:{type:String,required:!0,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},methods:{_converPx:function(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(function(e,t){return"".concat(uni.upx2px(parseFloat(t)),"px")})):/^-?[\d\.]+$/.test(e)?"".concat(e,"px"):e||""}}},r=i,a=(n("7e6a"),n("0c7c")),o=Object(a["a"])(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-icon",e._g({},e.$listeners),[n("i",{class:"uni-icon-"+e.type,style:{"font-size":e._converPx(e.size),color:e.color},attrs:{role:"img"}})])}),[],!1,null,null,null);t["default"]=o.exports},"9b1b":function(e,t,n){"use strict";n.r(t),n.d(t,"onWindowResize",(function(){return o})),n.d(t,"offWindowResize",(function(){return s}));var i=n("a118"),r=n("db70"),a=[];function o(e){a.push(e)}function s(e){a.splice(a.indexOf(e),1)}Object(r["d"])("onViewDidResize",(function(e){a.forEach((function(t){Object(i["a"])(t,e)}))}))},"9b1f":function(e,t,n){"use strict";n.r(t);var i={activeColor:"#007AFF",backgroundColor:"#EBEBEB",activeMode:"backwards"},r={name:"Progress",props:{percent:{type:[Number,String],default:0,validator:function(e){return!isNaN(parseFloat(e,10))}},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator:function(e){return!isNaN(parseFloat(e,10))}},color:{type:String,default:i.activeColor},activeColor:{type:String,default:i.activeColor},backgroundColor:{type:String,default:i.backgroundColor},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:i.activeMode},duration:{type:[Number,String],default:30,validator:function(e){return!isNaN(parseFloat(e,10))}}},data:function(){return{currentPercent:0,strokeTimer:0,lastPercent:0}},computed:{outerBarStyle:function(){return"background-color: ".concat(this.backgroundColor,"; height: ").concat(this.strokeWidth,"px;")},innerBarStyle:function(){var e;return e=this.color!==i.activeColor&&this.activeColor===i.activeColor?this.color:this.activeColor,"width: ".concat(this.currentPercent,"%;background-color: ").concat(e)},realPercent:function(){var e=parseFloat(this.percent,10);return e<0&&(e=0),e>100&&(e=100),e}},watch:{realPercent:function(e,t){this.strokeTimer&&clearInterval(this.strokeTimer),this.lastPercent=t||0,this._activeAnimation()}},created:function(){this._activeAnimation()},methods:{_activeAnimation:function(){var e=this;this.active?(this.currentPercent=this.activeMode===i.activeMode?0:this.lastPercent,this.strokeTimer=setInterval((function(){e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1}),parseFloat(this.duration))):this.currentPercent=this.realPercent}}},a=r,o=(n("944e"),n("0c7c")),s=Object(o["a"])(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-progress",e._g({staticClass:"uni-progress"},e.$listeners),[n("div",{staticClass:"uni-progress-bar",style:e.outerBarStyle},[n("div",{staticClass:"uni-progress-inner-bar",style:e.innerBarStyle})]),e.showInfo?[n("p",{staticClass:"uni-progress-info"},[e._v(" "+e._s(e.currentPercent)+"% ")])]:e._e()],2)}),[],!1,null,null,null);t["default"]=s.exports},"9b5b":function(e,t,n){"use strict";var i=n("fc64"),r=n.n(i);r.a},"9c39":function(e,t,n){},"9e56":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"previewImage",(function(){return o})),n.d(t,"closePreviewImage",(function(){return s}));var i=e,r=i.emit,a=i.invokeCallbackHandler;function o(e,t){r("onShowPreviewImage",e,(function(e){a(t,{errMsg:"previewImage:ok"})}))}function s(e,t){r("onClosePreviewImage",(function(){a(t,{errMsg:"closePreviewImage:ok"})}))}}.call(this,n("0dd1"))},"9f96":function(e,t,n){"use strict";n.r(t);var i=n("8af1"),r=n("ba15"),a={add:function(e){var t,n,i;try{t=this.toString().split(".")[1].length}catch(r){t=0}try{n=e.toString().split(".")[1].length}catch(r){n=0}return i=Math.pow(10,Math.max(t,n)),(this*i+e*i)/i},sub:function(e){return this.add(-e)},mul:function(e){var t=0,n=this.toString(),i=e.toString();try{t+=n.split(".")[1].length}catch(r){}try{t+=i.split(".")[1].length}catch(r){}return Number(n.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,t)},div:function(e){var t,n,r=0,a=0;try{r=this.toString().split(".")[1].length}catch(i){}try{a=e.toString().split(".")[1].length}catch(i){}return t=Number(this.toString().replace(".","")),n=Number(e.toString().replace(".","")),t/n*Math.pow(10,a-r)},mod:function(e){var t,n,i=0,r=0;try{i=this.toString().split(".")[1].length}catch(a){}try{r=e.toString().split(".")[1].length}catch(a){}var o=Math.pow(10,Math.abs(i-r));1==o&&(o=Math.pow(10,i)),t=(this*o).toString().split(".")[0],n=e*o;var s=(this*o).toString().split(".")[1]?(this*o).toString().split(".")[1]:"";return(t%n+s)/o}},o={name:"Slider",mixins:[i["a"],i["f"],r["a"]],props:{name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},data:function(){return{sliderValue:Number(this.value)}},computed:{setBlockStyle:function(){return{width:this.blockSize+"px",height:this.blockSize+"px",marginLeft:-this.blockSize/2+"px",marginTop:-this.blockSize/2+"px",left:this._getValueWidth(),backgroundColor:this.blockColor}},setBgColor:function(){return{backgroundColor:this._getBgColor()}},setBlockBg:function(){return{left:this._getValueWidth()}},setActiveColor:function(){return{backgroundColor:this._getActiveColor(),width:this._getValueWidth()}}},watch:{value:function(e){this.sliderValue=Number(e)}},mounted:function(){this.touchtrack(this.$refs["uni-slider-handle"],"_onTrack")},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onUserChangedValue:function(e){var t=this.$refs["uni-slider-value"],n=getComputedStyle(t,null).marginLeft,i=t.offsetWidth;i+=parseInt(n);var r=this.$refs["uni-slider"],a=r.offsetWidth-(this.showValue?i:0),o=r.getBoundingClientRect().left,s=(e.x-o)*(this.max-this.min)/a+Number(this.min);this.sliderValue=this._filterValue(s)},_filterValue:function(e){var t=Number(this.max),n=Number(this.min);return e<n?n:e>t?t:a.mul.call(Math.round((e-n)/this.step),this.step)+n},_getValueWidth:function(){return 100*(this.sliderValue-this.min)/(this.max-this.min)+"%"},_getBgColor:function(){return"#e9e9e9"!==this.backgroundColor?this.backgroundColor:"#007aff"!==this.color?this.color:"#007aff"},_getActiveColor:function(){return"#007aff"!==this.activeColor?this.activeColor:"#e9e9e9"!==this.selectedColor?this.selectedColor:"#e9e9e9"},_onTrack:function(e){if(!this.disabled)return"move"===e.detail.state?(this._onUserChangedValue({x:e.detail.x}),this.$trigger("changing",e,{value:this.sliderValue}),!1):"end"===e.detail.state&&this.$trigger("change",e,{value:this.sliderValue})},_onClick:function(e){this.disabled||(this._onUserChangedValue(e),this.$trigger("change",e,{value:this.sliderValue}))},_resetFormData:function(){this.sliderValue=this.min},_getFormData:function(){var e={};return""!==this.name&&(e.value=this.sliderValue,e.key=this.name),e}}},s=o,u=(n("6428"),n("0c7c")),c=Object(u["a"])(s,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-slider",e._g({ref:"uni-slider",on:{click:e._onClick}},e.$listeners),[n("div",{staticClass:"uni-slider-wrapper"},[n("div",{staticClass:"uni-slider-tap-area"},[n("div",{staticClass:"uni-slider-handle-wrapper",style:e.setBgColor},[n("div",{ref:"uni-slider-handle",staticClass:"uni-slider-handle",style:e.setBlockBg}),n("div",{staticClass:"uni-slider-thumb",style:e.setBlockStyle}),n("div",{staticClass:"uni-slider-track",style:e.setActiveColor})])]),n("span",{directives:[{name:"show",rawName:"v-show",value:e.showValue,expression:"showValue"}],ref:"uni-slider-value",staticClass:"uni-slider-value"},[e._v(e._s(e.sliderValue))])]),e._t("default")],2)}),[],!1,null,null,null);t["default"]=c.exports},"9fe4":function(e,t,n){"use strict";var i=Object.create(null),r=n("bdb1");r.keys().forEach((function(e){Object.assign(i,r(e))}));var a=i,o=n("3b67");t["a"]=Object.assign(Object.create(null),a,o["a"])},a036:function(e,t,n){},a118:function(e,t,n){"use strict";(function(e){function i(){var t;return(t=e).invokeCallbackHandler.apply(t,arguments)}function r(t){return e.removeCallbackHandler(t)}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}))}).call(this,n("0dd1"))},a201:function(e,t,n){"use strict";n.r(t),n.d(t,"request",(function(){return u})),n.d(t,"configMTLS",(function(){return c}));var i=n("f2b3"),r={OPTIONS:"OPTIONS",GET:"GET",HEAD:"HEAD",POST:"POST",PUT:"PUT",DELETE:"DELETE",TRACE:"TRACE",CONNECT:"CONNECT",PATCH:"PATCH"},a={JSON:"json"},o={TEXT:"text",ARRAYBUFFER:"arraybuffer"},s=encodeURIComponent;var u={method:{type:String,validator:function(e,t){e=(e||"").toUpperCase(),t.method=Object.values(r).indexOf(e)<0?r.GET:e}},data:{type:[Object,String,Array,ArrayBuffer],validator:function(e,t){t.data=e||""}},url:{type:String,required:!0,validator:function(e,t){t.method===r.GET&&Object(i["l"])(t.data)&&Object.keys(t.data).length&&(t.url=function(e,t){var n=e.split("#"),r=n[1]||"";n=n[0].split("?");var a=n[1]||"";e=n[0];var o=a.split("&").filter((function(e){return e}));for(var u in a={},o.forEach((function(e){e=e.split("="),a[e[0]]=e[1]})),t)if(Object(i["i"])(t,u)){var c=t[u];"undefined"===typeof c||null===c?c="":Object(i["l"])(c)&&(c=JSON.stringify(c)),a[s(u)]=s(c)}return a=Object.keys(a).map((function(e){return"".concat(e,"=").concat(a[e])})).join("&"),e+(a?"?"+a:"")+(r?"#"+r:"")}(e,t.data))}},header:{type:Object,validator:function(e,t){var n=t.header=e||{};t.method!==r.GET&&(Object.keys(n).find((function(e){return"content-type"===e.toLowerCase()}))||(n["Content-Type"]="application/json"))}},dataType:{type:String,validator:function(e,t){t.dataType=(e||a.JSON).toLowerCase()}},responseType:{type:String,validator:function(e,t){e=(e||"").toLowerCase(),t.responseType=Object.values(o).indexOf(e)<0?o.TEXT:e}},withCredentials:{type:Boolean},timeout:{type:Number}},c={certificates:{type:Array,required:!0,validator:function(e){if(e.some((function(e){return"String"!==Object(i["u"])(e.host)})))return"参数配置错误,请确认后重试"}}}},a20f:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n("f2b3"),r=function(){var e=document.createElement("canvas");e.height=e.width=0;var t=e.getContext("2d"),n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}(),a=CanvasRenderingContext2D.prototype;function o(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.width=e.offsetWidth*(t?r:1),e.height=e.offsetHeight*(t?r:1),e.__hidpi__=t,e.__context2d__=e.getContext("2d"),e.__context2d__.__hidpi__=t}a.drawImageByCanvas=function(e){return function(t,n,i,a,o,s,u,c,l,d){if(!this.__hidpi__)return e.apply(this,arguments);n*=r,i*=r,a*=r,o*=r,s*=r,u*=r,c=d?c*r:c,l=d?l*r:l,e.call(this,t,n,i,a,o,s,u,c,l)}}(a.drawImage),1!==r&&(function(e,t){for(var n in e)Object(i["i"])(e,n)&&t(e[n],n)}({fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},(function(e,t){a[t]=function(t){return function(){if(!this.__hidpi__)return t.apply(this,arguments);var n=Array.prototype.slice.call(arguments);if("all"===e)n=n.map((function(e){return e*r}));else if(Array.isArray(e))for(var i=0;i<e.length;i++)n[e[i]]*=r;return t.apply(this,n)}}(a[t])})),a.stroke=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.lineWidth*=r,e.apply(this,arguments),this.lineWidth/=r}}(a.stroke),a.fillText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var t=Array.prototype.slice.call(arguments);t[1]*=r,t[2]*=r,t[3]*=r,isNaN(t[3])&&(t.length=3);var n=this.__font__||this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,(function(e,t,n){return t*r+n})),e.apply(this,t),this.font=n}}(a.fillText),a.strokeText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var t=Array.prototype.slice.call(arguments);t[1]*=r,t[2]*=r,t[3]*=r,isNaN(t[3])&&(t.length=3);var n=this.__font__||this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,(function(e,t,n){return t*r+n})),e.apply(this,t),this.font=n}}(a.strokeText),a.drawImage=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.scale(r,r),e.apply(this,arguments),this.scale(1/r,1/r)}}(a.drawImage))},a3e5:function(e,t,n){"use strict";var i=n("eec9"),r=n.n(i);r.a},a402:function(e,t,n){"use strict";var i=n("e949"),r=n("bdbe"),a={name:"PageBody",mounted:function(){var e=r["a"].height||"50px",t=".uni-app--showtabbar uni-page-wrapper {\n display: block;\n height: calc(100% - ".concat(e,");\n height: calc(100% - ").concat(e," - constant(safe-area-inset-bottom));\n height: calc(100% - ").concat(e," - env(safe-area-inset-bottom));\n }");t+="\n",t+='.uni-app--showtabbar uni-page-wrapper::after {\n content: "";\n display: block;\n width: 100%;\n height: '.concat(e,";\n height: calc(").concat(e," + constant(safe-area-inset-bottom));\n height: calc(").concat(e," + env(safe-area-inset-bottom));\n }"),t+="\n",t+='.uni-app--showtabbar uni-page-head[uni-page-head-type="default"] ~ uni-page-wrapper {\n height: calc(100% - 44px - '.concat(e,");\n height: calc(100% - 44px - constant(safe-area-inset-top) - ").concat(e," - constant(safe-area-inset-bottom));\n height: calc(100% - 44px - env(safe-area-inset-top) - ").concat(e," - env(safe-area-inset-bottom));\n }"),Object(i["a"])(t)}},o=a,s=(n("167a"),n("0c7c")),u=Object(s["a"])(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-page-wrapper",[n("uni-page-body",[e._t("default")],2)],1)}),[],!1,null,null,null);t["a"]=u.exports},a470:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("65a8"),r=n("d8c8"),a=n.n(r);function o(){if(uni.canIUse("css.var")){var e=document.documentElement.style,t=parseInt((e.getPropertyValue("--window-top").match(/\d+/)||["0"])[0]),n=parseInt((e.getPropertyValue("--window-bottom").match(/\d+/)||["0"])[0]),r=parseInt((e.getPropertyValue("--window-left").match(/\d+/)||["0"])[0]),o=parseInt((e.getPropertyValue("--window-right").match(/\d+/)||["0"])[0]),s=parseInt((e.getPropertyValue("--top-window-height").match(/\d+/)||["0"])[0]);return{top:(t?t+a.a.top:0)+(s||0),bottom:n?n+a.a.bottom:0,left:r?r+a.a.left:0,right:o?o+a.a.right:0}}var u=0,c=0,l=getCurrentPages();if(l.length){var d=l[l.length-1].$parent.$parent,f=d.navigationBar.type;u="default"===f||"float"===f?i["a"]:0}var h=getApp();return h&&(c=h.$children[0]&&h.$children[0].showTabBar?i["d"]:0),{top:u,bottom:c,left:0,right:0}}},a5ec:function(e,t,n){"use strict";var i=n("9c39"),r=n.n(i);r.a},a6b0:function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"g",(function(){return v})),n.d(t,"c",(function(){return m})),n.d(t,"a",(function(){return y})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return x})),n.d(t,"f",(function(){return C}));var i=n("d46d"),r=n("f2b3"),a=n("65a8"),o=n("39aa"),s=n("80e5"),u=n("b3b1"),c=n("2209"),l=n("02ed");function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f,h,p={};Object.assign(p,(f={},d(f,"en",o),d(f,"es",s),d(f,"fr",u),d(f,"zh-Hans",c),d(f,"zh-Hant",l),f)),h=window.localStorage&&localStorage[a["e"]]||__uniConfig.locale||navigator.language,function(){if(k()){var e=Object.keys(__uniConfig.locales);e.length&&e.forEach((function(e){var t=p[e],n=__uniConfig.locales[e];t?Object.assign(t,n):p[e]=n}))}}();var g=Object(i["initVueI18n"])(h,p),v=g.t,m=g.mixin={beforeCreate:function(){var e=this,t=g.i18n.watchLocale((function(){e.$forceUpdate()}));this.$once("hook:beforeDestroy",(function(){t()}))},methods:{$$t:function(e,t){return v(e,t)}}},y=(g.setLocale,g.getLocale);function b(e,t,n){var i=e.observable({locale:n||g.getLocale()}),r=[];t.$watchLocale=function(e){r.push(e)},Object.defineProperty(t,"$locale",{get:function(){return i.locale},set:function(e){i.locale=e,r.forEach((function(t){return t(e)}))}})}var _=["%","%"];function w(e){return Object(i["isI18nStr"])(e,_)?g.f(e,function(){var e=uni.getLocale(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t["en"]||{}}(),_):e}function T(e,t){if(1!==t.length){var n=t.shift();return T(e&&e[n],t)}if(e){var a=function(e){return Object(r["m"])(e)&&Object(i["isI18nStr"])(e,_)},o=t[0],s=[];if(Array.isArray(e)&&(s=e.filter((function(e){return a(e[o])}))).length)return s;var u=e[o];if(a(u))return e}}function S(e,t){var n=T(e,t);if(!n)return!1;var i=t[t.length-1];if(Array.isArray(n))n.forEach((function(e){return S(e,[i])}));else{var r=n[i];Object.defineProperty(n,i,{get:function(){return w(r)},set:function(e){r=e}})}return!0}function k(){return"undefined"!==typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length}function x(e){if(k())return function(e,t){return t.map((function(t){return S(e,t)}))}(e,[["titleText"],["searchInput","placeholder"],["buttons","text"]])}function C(e){return k()&&e.list&&e.list.forEach((function(e){S(e,["text"])})),e}},a741:function(e,t,n){"use strict";(function(e,i){function r(t,n,i){return"onError"!==n&&e.debug("App:".concat(n," have been invoked")+(i?" ".concat(JSON.stringify(i)):"")),t=t.$vm||t,t.__call_hook&&t.__call_hook(n,i)}function a(t,n,r){return"onLoad"===n&&(t.$mp.query=r,i.publishHandler("onPageLoad",t,t.$page.id)),"onShow"===n&&(t.$route.meta.isTabBar&&t.$route.params.detail&&setTimeout((function(){i.emit("onTabItemTap",t.$route.params.detail)}),0),i.publishHandler("onPageShow",t,t.$page.id)),"onPageScroll"!==n&&e.debug("".concat(t.$page.route,"[").concat(t.$page.id,"]:").concat(n," have been invoked")),function(e,t,n){return e=e.$vm||e,e.__call_hook&&e.__call_hook(t,n)}(t,n,r)}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}))}).call(this,n("3ad9")["default"],n("0dd1"))},a850:function(e,t,n){"use strict";(function(e){var i=n("cb0f"),r=n("bdbe");t["a"]={name:"CustomTabBar",props:{selected:{type:Number,default:0},showIcon:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},data:function(){return{selectedIndex:this.selected}},computed:{tabBarOptions:function(){return r["a"]},hasTabBar:function(){return r["a"].list&&r["a"].list.length},showTabBar:function(){var e=getApp();return!e||!e.$children[0].hideTabBar}},watch:{selected:function(e){this.selectedIndex=e;var t=getApp().$children[0].$refs.tabBar;t&&(t.selectedIndex=e)},$route:function(e,t){if(e.meta.isTabBar){var n=r["a"].list.findIndex((function(t){return e.meta.pagePath===t.pagePath}));n>-1&&(this.selectedIndex=n)}}},methods:{_getRealPath:function(e){return/^([a-z-]+:)?\/\//i.test(e)||/^data:.*,.*/.test(e)||0===e.indexOf("/")||(e="/"+e),Object(i["a"])(e)},_switchTab:function(t,n){var i=t.text,r=t.pagePath;this.selectedIndex=n;var a="/"+r;a===__uniRoutes[0].alias&&(a="/");var o={index:n,text:i,pagePath:r};this.$emit("onTabItemTap",o),this.$route.path===a&&e.emit("onTabItemTap",o)}}}}).call(this,n("0dd1"))},a878:function(e,t,n){"use strict";var i,r=n("f2b3"),a=!r["s"]||{passive:!0,capture:!0},o=[],s=0;function u(e){o.forEach((function(t){return t.userInteract=e}))}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!i){var t=["touchstart","touchmove","touchend","mousedown","mouseup"];t.forEach((function(e){document.addEventListener(e,(function(){!s&&u(!0),s++,setTimeout((function(){!--s&&u(!1)}),0)}),a)})),i=!0}o.push(e)}t["a"]={data:function(){return{userInteract:!1}},mounted:function(){c(this)},beforeDestroy:function(){(function(e){var t=o.indexOf(e);t>=0&&o.splice(t,1)})(this)},addInteractListener:c,getStatus:function(){return!!s}}},a8b8:function(e,t,n){"use strict";var i=n("b27b"),r=n.n(i);r.a},a8f2:function(e,t,n){"use strict";(function(e){var i,r=n("8bbf"),a=n.n(r),o=n("f2b3"),s=n("65a8"),u=["top","left","right"],c=document.documentElement;function l(e,t){i||(i=c.style),i.setProperty(e,t)}t["a"]={name:"Layout",props:{routerKey:{type:String,default:""},keepAliveInclude:{type:Array,default:function(){return[]}}},data:function(){return{marginWidth:0,leftWindowStyle:"",rightWindowStyle:"",topWindowStyle:"",topWindowMediaQuery:!1,leftWindowMediaQuery:!1,rightWindowMediaQuery:!1,topWindowHeight:"0px",apiShowTopWindow:!1,apiShowLeftWindow:!1,apiShowRightWindow:!1,navigationBarTitleText:"",maxWidthMeidaQuery:!1}},computed:{bindWindow:function(){return{matchTopWindow:this.topWindowMediaQuery,showTopWindow:this.showTopWindow||this.apiShowTopWindow,matchLeftWindow:this.leftWindowMediaQuery,showLeftWindow:this.showLeftWindow||this.apiShowLeftWindow,matchRightWindow:this.rightWindowMediaQuery,showRightWindow:this.showRightWindow||this.apiShowRightWindow}},showLayout:function(){return this.showTopWindow||this.showLeftWindow||this.showRightWindow},showTopWindow:function(){return this.resetApiShowWindow(),!1!==this.$route.meta.topWindow&&this.topWindowMediaQuery},showLeftWindow:function(){return this.resetApiShowWindow(),!1!==this.$route.meta.leftWindow&&this.leftWindowMediaQuery},showRightWindow:function(){return this.resetApiShowWindow(),!1!==this.$route.meta.rightWindow&&this.rightWindowMediaQuery}},watch:{$route:function(){this.checkMaxWidth()},showLayout:function(){this.checkLayout()},showTopWindow:function(e,t){e?this.$nextTick(this.onTopWindowInit):l("--top-window-height","0px")},showLeftWindow:function(e,t){e?this.$nextTick(this.onLeftWindowInit):l("--window-left","0px")},showRightWindow:function(e,t){e?this.$nextTick(this.onRightWindowInit):l("--window-right","0px")},marginWidth:function(e){l("--window-margin",e+"px")}},beforeCreate:function(){l("--top-window-height","0px"),l("--window-left","0px"),l("--window-right","0px"),l("--window-margin","0px")},created:function(){var t=this;this.topWindow=a.a.component("VUniTopWindow"),this.leftWindow=a.a.component("VUniLeftWindow"),this.rightWindow=a.a.component("VUniRightWindow"),(this.topWindow||this.leftWindow||this.rightWindow)&&uni.canIUse("css.var")&&window.matchMedia&&(u.forEach((function(e){return t.initWindowMinWidth(e)})),this.responsive=function(e){var t=window.screen,n=[window.outerWidth,window.outerHeight,t.width,t.height,c.clientWidth,c.clientHeight];return Math.max.apply(null,n)>e}(this.minWidth),this.responsive&&(this.topWindow&&this.topWindow.options.style&&(this.topWindowStyle=this.topWindow.options.style),this.leftWindow&&this.leftWindow.options.style&&(this.leftWindowStyle=this.leftWindow.options.style),this.rightWindow&&this.rightWindow.options.style&&(this.rightWindowStyle=this.rightWindow.options.style),u.forEach((function(e){return t.initMediaQuery(e)})),e.on("onNavigationBarChange",(function(e){t.navigationBarTitleText=e.titleText})))),this.initMaxWidth()},mounted:function(){this.checkLayout(),this.checkMaxWidth()},methods:{resetApiShowWindow:function(){this.apiShowLeftWindow=!1,this.apiShowRightWindow=!1},showWindow:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!this[e+"Window"])return e+"Window not found";var n=Object(o["c"])(e);if(!this["show"+n+"Window"]){var i="apiShow"+n+"Window";this[i]!==t&&(this[i]=t,"top"===e&&(t?this.$nextTick(this.onTopWindowInit):l("--top-window-height","0px")))}},getWindowStyle:function(e){if(!this[e+"Window"])return e+"Window not found";var t=Object.assign({},this[e+"WindowStyle"]);return t},setWindowStyle:function(e,t){if(!this[e+"Window"])return e+"Window not found";t&&(this[e+"WindowStyle"]=t,this.$nextTick(this["on"+Object(o["c"])(e)+"WindowInit"]))},initMaxWidth:function(){var e=this;window.addEventListener("resize",(function(){e.checkMaxWidth()}))},checkLayout:function(){this.$emit("layout",this.showLayout)},checkMaxWidth:function(){var e,t=this,n=document.body.clientWidth,i=parseInt(this.$route.meta.maxWidth);e=n>i,this.$emit("maxWidth",e),this.$containerElem||(this.$containerElem=document.querySelector("uni-app")),this.$containerElem&&(e&&i?(this.marginWidth=(n-i)/2,this.$nextTick((function(){t.onLeftWindowInit(),t.onRightWindowInit(),t.$containerElem.setAttribute("style","max-width:"+i+"px;margin:0 auto;")}))):(this.marginWidth=0,this.$nextTick((function(){t.onLeftWindowInit(),t.onRightWindowInit(),t.$containerElem.removeAttribute("style")}))))},initWindowMinWidth:function(e){var t=e+"Window";if(this[t]){var n=e+"WindowMinWidth";this[n]=s["c"];var i=__uniConfig[t];i&&i.matchMedia&&Object(o["i"])(i.matchMedia,"minWidth")&&(this[n]=i.matchMedia.minWidth),("undefined"===typeof this.minWidth||this.minWidth>this[n])&&(this.minWidth=this[n])}},initMediaQuery:function(e){var t=this;if(this[e+"Window"]){var n=e+"WindowMediaQuery",i=window.matchMedia("(min-width: "+this[e+"WindowMinWidth"]+"px)");i.addListener((function(i){t[n]=i.matches,t.$nextTick((function(){t["on"+Object(o["c"])(e)+"WindowInit"]()}))})),this[n]=i.matches}},onTopWindowInit:function(){if(this.responsive&&this.topWindow){var e;e=this.topWindowStyle&&this.topWindowStyle.height?this.$refs.topWindow.offsetHeight+"px":this.$refs.top.$el.offsetHeight+"px",this.topWindowHeight=e,l("--top-window-height",e)}},onLeftWindowInit:function(){this.responsive&&this.leftWindow?this.leftWindowStyle&&this.leftWindowStyle.width?l("--window-left",this.$refs.leftWindow.offsetWidth+this.marginWidth+"px"):l("--window-left",this.$refs.left.$el.offsetWidth+this.marginWidth+"px"):l("--window-left",this.marginWidth+"px")},onRightWindowInit:function(){this.responsive&&this.rightWindow?this.rightWindowStyle&&this.rightWindowStyle.width?l("--window-right",this.$refs.rightWindow.offsetWidth+this.marginWidth+"px"):l("--window-right",this.$refs.right.$el.offsetWidth+this.marginWidth+"px"):l("--window-right",this.marginWidth+"px")}}}}).call(this,n("0dd1"))},a92f:function(e,t,n){},a954:function(e,t,n){"use strict";n.r(t),n.d(t,"addInterceptor",(function(){return i})),n.d(t,"removeInterceptor",(function(){return r}));var i=[{name:"method",type:[String,Object],required:!0}],r=i},a9c8:function(e,t,n){"use strict";(function(e,i){var r=n("f2b3"),a=n("ffdc"),o=n("a6b0"),s=n("636c");t["a"]={name:"SystemChooseLocation",filters:{distance:function(e){return e>100?"".concat(e>1e3?(e/1e3).toFixed(1)+"k":e.toFixed(0),"m | "):e>0?"<100m | ":""}},mixins:[o["c"]],data:function(){var e=this.$route.query,t=e.latitude,n=e.longitude;return{latitude:t,longitude:n,pageSize:20,pageIndex:1,hasNextPage:!0,nextPage:null,selectedIndex:-1,list:[],keyword:"",searching:!1,loading:!0,adcode:"",locationStyle:'background-image: url("'.concat(s["b"],'")')}},computed:{selected:function(){return this.list[this.selectedIndex]},boundary:function(){return this.adcode?"region(".concat(this.adcode,",1,").concat(this.latitude,",").concat(this.longitude,")"):"nearby(".concat(this.latitude,",").concat(this.longitude,",5000)")}},created:function(){var e=this;this.latitude&&this.longitude||this.moveToLocation(),this.search=Object(r["d"])((function(){e.reset(),e.keyword&&e.getList()}),1e3),this.$watch("searching",(function(t){e.reset(),t||e.getList()}))},methods:{choose:function(){this.selected&&(e.publishHandler("onChooseLocation",Object.assign({},this.selected)),getApp().$router.back())},back:function(){e.publishHandler("onChooseLocation",null),getApp().$router.back()},moveToLocation:function(){uni.getLocation({type:"gcj02",success:this.move.bind(this),fail:function(){}})},onRegionChange:function(e){var t=e.detail.centerLocation;t&&this.move(t)},pushData:function(e){var t=this;e.forEach((function(e){t.list.push({name:e.title,address:e.address,distance:e._distance||e.distance,latitude:e.location.lat,longitude:e.location.lng})}))},getList:function(){var e=this;this.loading=!0;var t=Object(s["e"])();if(t.type===s["d"].GOOGLE){if(this.pageIndex>1&&this.nextPage)return void this.nextPage();var n=new window.google.maps.places.PlacesService(document.createElement("div"));n[this.searching?"textSearch":"nearbySearch"]({location:{lat:this.latitude,lng:this.longitude},query:this.keyword,radius:5e3},(function(t,n,i){e.loading=!1,t&&t.length&&t.forEach((function(t){e.list.push({name:t.name||"",address:t.vicinity||t.formatted_address||"",distance:0,latitude:t.geometry.location.lat(),longitude:t.geometry.location.lng()})})),i&&(i.hasNextPage?e.nextPage=function(){i.nextPage()}:e.hasNextPage=!1)}))}else if(t.type===s["d"].QQ){var r=this.searching?"https://apis.map.qq.com/ws/place/v1/search?output=jsonp&key=".concat(t.key,"&boundary=").concat(this.boundary,"&keyword=").concat(this.keyword,"&page_size=").concat(this.pageSize,"&page_index=").concat(this.pageIndex):"https://apis.map.qq.com/ws/geocoder/v1/?output=jsonp&key=".concat(t.key,"&location=").concat(this.latitude,",").concat(this.longitude,"&get_poi=1&poi_options=page_size=").concat(this.pageSize,";page_index=").concat(this.pageIndex);Object(a["a"])(r,{callback:"callback"},(function(t){if(e.loading=!1,e.searching&&"data"in t&&t.data.length)e.pushData(t.data);else if("result"in t){var n=t.result;e.adcode=n.ad_info?n.ad_info.adcode:"",n.pois&&e.pushData(n.pois),e.list.length===e.pageSize*e.pageIndex&&(e.hasNextPage=!1)}}),(function(){e.loading=!1}))}else if(t.type===s["d"].AMAP){var o=this;window.AMap.plugin("AMap.PlaceSearch",(function(){var e=new window.AMap.PlaceSearch({city:"全国",pageSize:10,pageIndex:o.pageIndex}),t=o.searching?o.keyword:"",n=o.searching?5e4:5e3;e.searchNearBy(t,[o.longitude,o.latitude],n,(function(e,t){"error"===e?i.error(t):"no_data"===e?o.hasNextPage=!1:o.pushData(t.poiList.pois)})),o.loading=!1}))}},loadMore:function(){!this.loading&&this.hasNextPage&&(this.pageIndex++,this.getList())},reset:function(){this.selectedIndex=-1,this.pageIndex=1,this.hasNextPage=!0,this.nextPage=null,this.list=[]},move:function(e){var t=e.latitude,n=e.longitude;this.latitude=t,this.longitude=n,this.searching||(this.reset(),this.getList())},input:function(){this.search()}}}}).call(this,n("501c"),n("3ad9")["default"])},aa20:function(e,t,n){},aa92:function(e,t,n){"use strict";function i(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}n.d(t,"a",(function(){return u}));var a=["onLaunch","onShow","onHide","onUniNViewMessage","onPageNotFound","onThemeChange","onError","onUnhandledRejection","onInit","onLoad","onReady","onUnload","onPullDownRefresh","onReachBottom","onTabItemTap","onAddToFavorites","onShareTimeline","onShareAppMessage","onResize","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onNavigationBarSearchInputFocusChanged","onPageShow","onPageHide","onPageResize","onServiceCreated","onServiceAttached"],o=["data","properties","options","relations"];function s(e,t){o.forEach((function(n){(function(e,t,n){t[n]&&Object.assign(e[n]||(e[n]={}),t[n])})(e,t,n)})),t.externalClasses&&function(e,t){e.push.apply(e,i(t))}(e.externalClasses||(e.externalClasses=[]),t.externalClasses),t.path&&(e.path=t.path)}function u(e){var t=e.extend;e.extend=function(e){e=e||{};var n=e.methods;n&&Object.keys(n).forEach((function(t){-1!==a.indexOf(t)&&(e[t]=n[t],delete n[t])}));var i=e.setup;if(i){var r="";try{r=i.toString()}catch(o){}["onPageScroll","onReachBottom"].forEach((function(t){r.indexOf("uniApp.".concat(t))&&!e[t]&&(e[t]=[function(){}])}))}return t.call(this,e)};var n=e.config.optionMergeStrategies,i=n.created;a.forEach((function(e){n[e]=i})),n.mpOptions=function(e,t){if(!e)return t;var n=Object.create(null);return s(n,e),t&&s(n,t),n}}},abb2:function(e,t,n){"use strict";n.r(t),n.d(t,"connectSocket",(function(){return r})),n.d(t,"sendSocketMessage",(function(){return a})),n.d(t,"closeSocket",(function(){return o}));var i={OPTIONS:"OPTIONS",GET:"GET",HEAD:"HEAD",POST:"POST",PUT:"PUT",DELETE:"DELETE",TRACE:"TRACE",CONNECT:"CONNECT"},r={url:{type:String,required:!0},header:{type:Object,validator:function(e,t){t.header=e||{}}},method:{type:String,validator:function(e,t){e=(e||"").toUpperCase(),t.method=Object.values(i).indexOf(e)<0?i.GET:e}},protocols:{type:[Array,String],validator:function(e,t){"string"===typeof e&&(e=[e]),t.protocols=(e||[]).filter((function(e){return"string"===typeof e}))}}},a={data:{type:[String,ArrayBuffer]}},o={code:{type:Number},reason:{type:String}}},abbf:function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return f}));var i=n("a741"),r=n("1164");n.d(t,"b",(function(){return r["b"]})),n.d(t,"c",(function(){return r["c"]}));var a=Object.assign;function o(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}var s=o(),u=o();function c(){return u}function l(){return s}function d(e){var t=e.path,n=e.query,i=e.referrerInfo;return a(u,{path:t,query:n||{},referrerInfo:i||{}}),a(s,u),u}function f(t,n,a){return{created:function(){Object(r["a"])(t,this,n),a.meta.name||e.emit("onPageNotFound",{path:a.path,query:a.query,isEntryPage:!0})},beforeMount:function(){this.$el=document.getElementById("app")},mounted:function(){d({path:this.$route.meta&&this.$route.meta.pagePath,query:this.$route.query}),Object(i["a"])(this,"onLaunch",u),Object(i["a"])(this,"onShow",s)}}}}).call(this,n("0dd1"))},abea:function(e,t,n){"use strict";function i(e){var t=e.service;return{service:t,provider:[]}}n.r(t),n.d(t,"getProvider",(function(){return i}))},af33:function(e,t,n){"use strict";n.r(t),n.d(t,"createSelectorQuery",(function(){return v}));var i=n("f2b3"),r=n("db70"),a=n("303f"),o=n("bfa6"),s=n("ee03"),u=n("60db");function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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),Object.defineProperty(e,i.key,i)}}function d(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}var f={canvas:a["CanvasContext"],map:o["MapContext"],video:s["VideoContext"],editor:u["EditorContext"]};function h(e){if(e&&e.context){var t=e.context,n=t.id,i=t.name,r=t.page,a=f[i];e.context=a&&new a(n,r)}}var p=function(){function e(t,n,i,r){c(this,e),this._selectorQuery=t,this._component=n,this._selector=i,this._single=r}return d(e,[{key:"boundingClientRect",value:function(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,rect:!0,size:!0},e),this._selectorQuery}},{key:"fields",value:function(e,t){return this._selectorQuery._push(this._selector,this._component,this._single,e,t),this._selectorQuery}},{key:"scrollOffset",value:function(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,scrollOffset:!0},e),this._selectorQuery}},{key:"context",value:function(e){return this._selectorQuery._push(this._selector,this._component,this._single,{context:!0},e),this._selectorQuery}}]),e}(),g=function(){function e(t){c(this,e),this._page=t,this._queue=[],this._queueCb=[],this._nodesRef=null}return d(e,[{key:"exec",value:function(e){var t=this;return Object(r["c"])("requestComponentInfo",this._page,this._queue,(function(n){var r=t._queueCb;n.forEach((function(e,n){Array.isArray(e)?e.forEach(h):h(e);var a=r[n];Object(i["k"])(a)&&a.call(t,e)})),Object(i["k"])(e)&&e.call(t,n)})),this._nodesRef}},{key:"in",value:function(e){return this._component=e._$id||e,this}},{key:"select",value:function(e){return this._nodesRef=new p(this,this._component,e,!0)}},{key:"selectAll",value:function(e){return this._nodesRef=new p(this,this._component,e,!1)}},{key:"selectViewport",value:function(){return this._nodesRef=new p(this,0,"",!0)}},{key:"_push",value:function(e,t,n,i,r){this._queue.push({component:t,selector:e,single:n,fields:i}),this._queueCb.push(r)}}]),e}();function v(e){return new g(e||Object(r["b"])("createSelectorQuery"))}},b0ef:function(e,t,n){"use strict";n.r(t),n.d(t,"$on",(function(){return i})),n.d(t,"$once",(function(){return r})),n.d(t,"$off",(function(){return a})),n.d(t,"$emit",(function(){return o}));var i=[{name:"event",type:[String,Array],required:!0},{name:"callback",type:Function,required:!0}],r=i,a=[{name:"event",type:[String,Array]},{name:"callback",type:Function}],o=[{name:"event",type:String,required:!0}]},b0fb:function(e,t,n){"use strict";var i=n("2292"),r=n.n(i);r.a},b10a:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r}));var i=n("18fd");function r(t){t=function(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/<!doctype.*>\n/,"").replace(/<!DOCTYPE.*>\n/,"")}(t);var n=[],r={node:"root",children:[]};return Object(i["a"])(t,{start:function(e,t,i){var a={name:e};if(0!==t.length&&(a.attrs=function(e){return e.reduce((function(e,t){var n=t.value,i=t.name;return n.match(/ /)&&-1===["style","src"].indexOf(i)&&(n=n.split(" ")),e[i]?Array.isArray(e[i])?e[i].push(n):e[i]=[e[i],n]:e[i]=n,e}),{})}(t)),i){var o=n[0]||r;o.children||(o.children=[]),o.children.push(a)}else n.unshift(a)},end:function(t){var i=n.shift();if(i.name!==t&&e.error("invalid state: mismatch end tag"),0===n.length)r.children.push(i);else{var a=n[0];a.children||(a.children=[]),a.children.push(i)}},chars:function(e){var t={type:"text",text:e};if(0===n.length)r.children.push(t);else{var i=n[0];i.children||(i.children=[]),i.children.push(t)}},comment:function(e){var t={node:"comment",text:e},i=n[0];i.children||(i.children=[]),i.children.push(t)}}),r.children}}).call(this,n("3ad9")["default"])},b18e:function(e,t,n){},b253:function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)},r(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function s(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}n.d(t,"a",(function(){return N}));var l=function(e){var t=e.import("blots/block/embed"),n=function(e){(function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)})(n,e);var t=function(e){return function(){var t,n=c(e);if(u()){var i=c(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return s(this,t)}}(n);function n(){return a(this,n),t.apply(this,arguments)}return n}(t);return n.blotName="divider",n.tagName="HR",{"formats/divider":n}};function d(e){return d="function"===typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)},d(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function p(e,t){return!t||"object"!==d(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var m=function(e){var t=e.import("blots/inline"),n=function(e){(function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)})(n,e);var t=function(e){return function(){var t,n=v(e);if(g()){var i=v(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p(this,t)}}(n);function n(){return f(this,n),t.apply(this,arguments)}return n}(t);return n.blotName="ins",n.tagName="INS",{"formats/ins":n}},y=function(e){var t=e.import("parchment"),n=t.Scope,i=t.Attributor,r={scope:n.BLOCK,whitelist:["left","right","center","justify"]},a=new i.Style("align","text-align",r);return{"formats/align":a}},b=function(e){var t=e.import("parchment"),n=t.Scope,i=t.Attributor,r={scope:n.BLOCK,whitelist:["rtl"]},a=new i.Style("direction","direction",r);return{"formats/direction":a}};function _(e){return _="function"===typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)},_(e)}function w(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),Object.defineProperty(e,i.key,i)}}function T(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),e}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function k(e,t){return!t||"object"!==_(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function x(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function C(e,t,n){return C="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=E(e),null===e)break;return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(n):r.value}},C(e,t,n||e)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var A=function(e){var t=e.import("parchment"),n=e.import("blots/container"),i=e.import("formats/list/item"),r=function(e){(function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)})(r,e);var n=function(e){return function(){var t,n=E(e);if(x()){var i=E(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return k(this,t)}}(r);function r(e){var i;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,r),i=n.call(this,e);return e.addEventListener("click",(function(n){if(n.target.parentNode===e){var r=i.statics.formats(e),a=t.find(n.target);"checked"===r?a.format("list","unchecked"):"unchecked"===r&&a.format("list","checked")}})),i}return T(r,null,[{key:"create",value:function(e){var t="ordered"===e?"OL":"UL",n=C(E(r),"create",this).call(this,t);return"checked"!==e&&"unchecked"!==e||n.setAttribute("data-checked","checked"===e),n}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),T(r,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,t){if(e instanceof i)C(E(r.prototype),"insertBefore",this).call(this,e,t);else{var n=null==t?this.length():t.offset(this),a=this.split(n);a.parent.insertBefore(e,a)}}},{key:"optimize",value:function(e){C(E(r.prototype),"optimize",this).call(this,e);var t=this.next;null!=t&&t.prev===this&&t.statics.blotName===this.statics.blotName&&t.domNode.tagName===this.domNode.tagName&&t.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(t.moveChildren(this),t.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=t.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}C(E(r.prototype),"replace",this).call(this,e)}}]),r}(n);return r.blotName="list",r.scope=t.Scope.BLOCK_BLOT,r.tagName=["OL","UL"],r.defaultChild="list-item",r.allowedChildren=[i],{"formats/list":r}},O=function(e){var t=e.import("parchment"),n=t.Scope,i=e.import("formats/background"),r=new i.constructor("backgroundColor","background-color",{scope:n.INLINE});return{"formats/backgroundColor":r}},j=n("f2b3"),I=function(e){var t=e.import("parchment"),n=t.Scope,i=t.Attributor,r={scope:n.BLOCK},a={};return["margin","marginTop","marginBottom","marginLeft","marginRight"].concat(["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"]).forEach((function(e){a["formats/".concat(e)]=new i.Style(e,Object(j["n"])(e),r)})),a},P=function(e){var t=e.import("parchment"),n=t.Scope,i=t.Attributor,r={scope:n.INLINE},a={};return["font","fontSize","fontStyle","fontVariant","fontWeight","fontFamily"].forEach((function(e){a["formats/".concat(e)]=new i.Style(e,Object(j["n"])(e),r)})),a},M=function(e){var t=e.import("parchment"),n=t.Scope,i=t.Attributor,r=[{name:"lineHeight",scope:n.BLOCK},{name:"letterSpacing",scope:n.INLINE},{name:"textDecoration",scope:n.INLINE},{name:"textIndent",scope:n.BLOCK}],a={};return r.forEach((function(e){var t=e.name,n=e.scope;a["formats/".concat(t)]=new i.Style(t,Object(j["n"])(t),{scope:n})})),a},L=n("cb0f"),D=function(e){var t=e.import("formats/image"),n=["alt","height","width","data-custom","class","data-local"];t.sanitize=function(e){return e?Object(L["a"])(e):e},t.formats=function(e){return n.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})};var i=t.prototype.format;t.prototype.format=function(e,t){n.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):i.call(this,e,t)}},R=function(e){var t=e.import("formats/link");t.sanitize=function(e){var n=document.createElement("a");n.href=e;var i=n.href.slice(0,n.href.indexOf(":"));return t.PROTOCOL_WHITELIST.concat("file").indexOf(i)>-1?e:t.SANITIZED_URL}};function N(e){var t={divider:l,ins:m,align:y,direction:b,list:A,background:O,box:I,font:P,text:M,image:D,link:R},n={};Object.values(t).forEach((function(t){return Object.assign(n,t(e))})),e.register(n,!0)}},b27b:function(e,t,n){},b282:function(e,t,n){"use strict";(function(e){var i,r=n("f2b3"),a=n("5cf8"),o=n("5a23"),s=n("a878");e.subscribe("getSelectedTextRange",(function(t){var n=t.pageId,i=t.callbackId,r=document.activeElement,a=r.tagName.toLowerCase(),o={};["input","textarea"].includes(a)?(o.errMsg="getSelectedTextRange:ok",o.start=r.selectionStart,o.end=r.selectionEnd):o.errMsg="getSelectedTextRange:fail no focused",e.publishHandler("onGetSelectedTextRange",{callbackId:i,data:o},n)})),t["a"]={name:"Field",mixins:[a["a"],o["a"],s["a"]],model:{prop:"value",event:"update:value"},props:{value:{type:[String,Number],default:""},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0}},data:function(){return{composing:!1,valueSync:this._getValueString(this.value,this.type),focusSync:this.focus,fixColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image")}},watch:{focus:function(e){e?this._focus():this._blur()},focusSync:function(e){this.$emit("update:focus",e)},cursorNumber:function(){this._checkCursor()},selectionStartNumber:function(){this._checkSelection()},selectionEndNumber:function(){this._checkSelection()}},computed:{needFocus:function(){return this.autoFocus||this.focus},cursorNumber:function(){var e=Number(this.cursor);return isNaN(e)?-1:e},selectionStartNumber:function(){var e=Number(this.selectionStart);return isNaN(e)?-1:e},selectionEndNumber:function(){var e=Number(this.selectionEnd);return isNaN(e)?-1:e}},created:function(){var e=this,t=this.__valueChange=Object(r["d"])((function(t){e.valueSync=e._getValueString(t,e.type)}),100);this.$watch("value",t),this.__triggerInput=Object(r["t"])((function(t,n){e.__valueChange.cancel(),e.$emit("update:value",n.value),e.$trigger("input",t,n)}),100),this.$triggerInput=function(t,n,i){e.__valueChange.cancel(),e.__triggerInput(t,n),i&&e.__triggerInput.flush()}},beforeDestroy:function(){this.__valueChange.cancel(),this.__triggerInput.cancel()},directives:{field:{inserted:function(e,t,n){n.context._initField(e)}}},methods:{_getValueString:function(e,t){return"number"===t&&isNaN(Number(e))&&(e=""),null===e?"":String(e)},_initField:function(e){var t=this;this._field=e,i=i||Date.now(),this.needFocus&&setTimeout((function(){t._focus()}))},_focus:function(){if(this.needFocus){var e=this._field;e?e.focus():setTimeout(this._focus.bind(this),100)}},_blur:function(){var e=this._field;e&&e.blur()},_onFocus:function(e){this.focusSync=!0,this.$trigger("focus",e,{value:this.valueSync}),this._checkSelection(),this._checkCursor()},_onBlur:function(e){this.composing&&(this.composing=!1,this._onInput(e,!0)),this.focusSync=!1;var t,n=e.target;"number"===n.type?(n.type="text",t=n.selectionEnd,n.type="number"):t=n.selectionEnd,this.$trigger("blur",e,{value:this.valueSync,cursor:t})},_checkSelection:function(){var e=this._field;this.focusSync&&this.selectionStartNumber>-1&&this.selectionEndNumber>-1&&"number"!==e.type&&(e.selectionStart=this.selectionStartNumber,e.selectionEnd=this.selectionEndNumber)},_checkCursor:function(){var e=this._field;this.focusSync&&this.selectionStartNumber<0&&this.selectionEndNumber<0&&this.cursorNumber>-1&&"number"!==e.type&&(e.selectionEnd=e.selectionStart=this.cursorNumber)}}}}).call(this,n("501c"))},b34d:function(e,t,n){"use strict";n.r(t);var i=n("8af1"),r={name:"Form",mixins:[i["f"]],data:function(){return{childrenList:[]}},listeners:{"@form-submit":"_onSubmit","@form-reset":"_onReset","@form-group-update":"_formGroupUpdateHandler"},methods:{_onSubmit:function(e){var t={};this.childrenList.forEach((function(e){e._getFormData&&e._getFormData().key&&(t[e._getFormData().key]=e._getFormData().value)})),this.$trigger("submit",e,{value:t})},_onReset:function(e){this.$trigger("reset",e,{}),this.childrenList.forEach((function(e){e._resetFormData&&e._resetFormData()}))},_formGroupUpdateHandler:function(e){if("add"===e.type)this.childrenList.push(e.vm);else{var t=this.childrenList.indexOf(e.vm);this.childrenList.splice(t,1)}}}},a=r,o=n("0c7c"),s=Object(o["a"])(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-form",e._g({},e.$listeners),[n("span",[e._t("default")],2)])}),[],!1,null,null,null);t["default"]=s.exports},b3b1:function(e){e.exports=JSON.parse('{"uni.app.quit":"Appuyez à nouveau pour quitter l\'application","uni.async.error":"La connexion a expiré, cliquez sur l\'écran pour réessayer.","uni.showActionSheet.cancel":"Annuler","uni.showToast.unpaired":"Veuillez noter que showToast doit être associé à hideToast","uni.showLoading.unpaired":"Veuillez noter que showLoading doit être associé à hideLoading","uni.showModal.cancel":"Annuler","uni.showModal.confirm":"OK","uni.chooseImage.cancel":"Annuler","uni.chooseImage.sourceType.album":"Album","uni.chooseImage.sourceType.camera":"Caméra","uni.chooseVideo.cancel":"Annuler","uni.chooseVideo.sourceType.album":"Album","uni.chooseVideo.sourceType.camera":"Caméra","uni.chooseFile.notUserActivation":"La boîte de dialogue du sélecteur de fichier ne peut être affichée qu\'avec une activation par l\'utilisateur","uni.previewImage.cancel":"Annuler","uni.previewImage.button.save":"Guardar imagen","uni.previewImage.save.success":"Enregistré avec succès","uni.previewImage.save.fail":"Échec de la sauvegarde","uni.setClipboardData.success":"Contenu copié","uni.scanCode.title":"Code d’analyse","uni.scanCode.album":"Album","uni.scanCode.fail":"Fallo de reconocimiento","uni.scanCode.flash.on":"Appuyez pour activer l\'éclairage","uni.scanCode.flash.off":"Appuyez pour désactiver l\'éclairage","uni.startSoterAuthentication.authContent":"Reconnaissance de l\'empreinte digitale","uni.picker.done":"OK","uni.picker.cancel":"Annuler","uni.video.danmu":"Danmu","uni.video.volume":"Le Volume","uni.button.feedback.title":"retour d\'information","uni.button.feedback.send":"envoyer","uni.chooseLocation.search":"Trouve","uni.chooseLocation.cancel":"Annuler"}')},b418:function(e,t,n){"use strict";n.r(t),n.d(t,"invokePushCallback",(function(){return c})),n.d(t,"getPushClientId",(function(){return f})),n.d(t,"onPushMessage",(function(){return p})),n.d(t,"offPushMessage",(function(){return g}));var i,r,a,o=n("f2b3"),s=n("6710");function u(e){try{return JSON.parse(e)}catch(t){}return e}function c(e){if("enabled"===e.type)a=!0;else if("clientId"===e.type)i=e.cid,r=e.errMsg,d(i,e.errMsg);else if("pushMsg"===e.type)for(var t={type:"receive",data:u(e.message)},n=0;n<h.length;n++){var o=h[n];if(o(t),t.stopped)break}else"click"===e.type&&h.forEach((function(t){t({type:"click",data:u(e.message)})}))}var l=[];function d(e,t){l.forEach((function(n){n(e,t)})),l.length=0}function f(e){Object(o["l"])(e)||(e={});var t=Object(s["a"])(e),n=t.success,u=t.fail,c=t.complete,f=Object(o["k"])(n),h=Object(o["k"])(u),p=Object(o["k"])(c);Promise.resolve().then((function(){"undefined"===typeof a&&(a=!1,i="",r="uniPush is not enabled"),l.push((function(e,t){var i;e?(i={errMsg:"getPushClientId:ok",cid:e},f&&n(i)):(i={errMsg:"getPushClientId:fail"+(t?" "+t:"")},h&&u(i)),p&&c(i)})),"undefined"!==typeof i&&d(i,r)}))}var h=[],p=function(e){-1===h.indexOf(e)&&h.push(e)},g=function(e){if(e){var t=h.indexOf(e);t>-1&&h.splice(t,1)}else h.length=0}},b501:function(e,t,n){"use strict";n.r(t),n.d(t,"setClipboardData",(function(){return r}));var i=n("a6b0"),r={data:{type:String,required:!0},showToast:{type:Boolean,default:!0},beforeSuccess:function(e,t){if(t.showToast){var n=Object(i["g"])("uni.setClipboardData.success");n&&uni.showToast({title:n,icon:"success",mask:!1,style:{width:void 0}})}}}},b628:function(e,t,n){"use strict";var i=n("3870"),r=n.n(i);r.a},b705:function(e,t,n){"use strict";n.r(t);var i=n("b10a"),r=n("f2b3"),a=n("cb0f"),o={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},s={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'"};function u(e){return e.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,(function(e,t){if(Object(r["i"])(s,t)&&s[t])return s[t];if(/^#[0-9]{1,4}$/.test(t))return String.fromCharCode(t.slice(1));if(/^#x[0-9a-f]{1,4}$/i.test(t))return String.fromCharCode("0"+t.slice(1));var n=document.createElement("div");return n.innerHTML=e,n.innerText||n.textContent}))}function c(e,t,n){return"img"===e&&"src"===t?Object(a["a"])(n):n}function l(e,t,n,i){return e.forEach((function(e){if(Object(r["l"])(e))if(Object(r["i"])(e,"type")&&"node"!==e.type)"text"===e.type&&"string"===typeof e.text&&""!==e.text&&t.appendChild(document.createTextNode(u(e.text)));else{if("string"!==typeof e.name||!e.name)return;var a=e.name.toLowerCase();if(!Object(r["i"])(o,a))return;var s=document.createElement(a);if(!s)return;var d=e.attrs;if(n&&s.setAttribute(n,""),Object(r["l"])(d)){var f=o[a]||[];Object.keys(d).forEach((function(e){var t=d[e];switch(e){case"class":Array.isArray(t)&&(t=t.join(" "));case"style":s.setAttribute(e,t);break;default:-1!==f.indexOf(e)&&s.setAttribute(e,c(a,e,t))}}))}(function(e,t,n){["a","img"].includes(e.name)&&n&&(t.setAttribute("onClick","return false;"),t.addEventListener("click",(function(t){n(t,{node:e}),t.stopPropagation()}),!0))})(e,s,i);var h=e.children;Array.isArray(h)&&h.length&&l(e.children,s,n,i),t.appendChild(s)}})),t}var d={name:"RichText",props:{nodes:{type:[Array,String],default:function(){return[]}}},watch:{nodes:function(e){this._renderNodes(e)}},mounted:function(){this._renderNodes(this.nodes)},methods:{_renderNodes:function(e){var t="",n=this;while(n)!t&&(t=n.$options._scopeId),n=n.$parent;var r=!!this.$listeners.itemclick;if(this._isMounted){"string"===typeof e&&(e=Object(i["a"])(e));var a=l(e,document.createDocumentFragment(),t,r&&this.triggerItemClick);a.appendChild(this.$refs.sensor.$el);var o=this.$refs.content;o.innerHTML="",o.appendChild(a)}},_updateView:function(){window.dispatchEvent(new CustomEvent("updateview"))},triggerItemClick:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.$trigger("itemclick",e,t)}}},f=d,h=n("0c7c"),p=Object(h["a"])(f,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-rich-text",e._g({},e.$listeners),[n("div",{ref:"content"},[n("v-uni-resize-sensor",{ref:"sensor",on:{resize:function(t){return e._updateView()}}})],1)])}),[],!1,null,null,null);t["default"]=p.exports},b865:function(e,t,n){"use strict";(function(e,i){function r(t,n){return e.emit("api."+t,n)}function a(e,t,n){i.UniViewJSBridge.subscribeHandler(e,t,n)}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}))}).call(this,n("0dd1"),n("c8ba"))},b866:function(e,t,n){"use strict";n.r(t),n.d(t,"getImageInfo",(function(){return r}));var i=n("cb0f"),r={src:{type:String,required:!0,validator:function(e,t){t.src=Object(i["a"])(e)}}}},ba15:function(e,t,n){"use strict";var i=function(e,t,n,i){e.addEventListener(t,(function(e){"function"===typeof n&&!1===n(e)&&(e.preventDefault(),e.stopPropagation())}),{capture:i,passive:!1})};t["a"]={beforeDestroy:function(){document.removeEventListener("mousemove",this.__mouseMoveEventListener),document.removeEventListener("mouseup",this.__mouseUpEventListener)},methods:{touchtrack:function(e,t,n){var r,a,o,s=this,u=this,c=0,l=0,d=0,f=0,h=function(e,n,i,r){if(!1===u[t]({target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:i,y:r,dx:i-c,dy:r-l,ddx:i-d,ddy:r-f,timeStamp:e.timeStamp}}))return!1},p=null;i(e,"touchstart",(function(e){if(a=!0,1===e.touches.length&&!p)return p=e,c=d=e.touches[0].pageX,l=f=e.touches[0].pageY,h(e,"start",c,l)})),i(e,"mousedown",(function(e){if(o=!0,!a&&!p)return p=e,c=d=e.pageX,l=f=e.pageY,h(e,"start",c,l)})),i(e,"touchmove",(function(e){if(1===e.touches.length&&p){var t=h(e,"move",e.touches[0].pageX,e.touches[0].pageY);return d=e.touches[0].pageX,f=e.touches[0].pageY,t}}));var g=this.__clickEventListener=function(e){e.preventDefault(),e.stopPropagation()},v=this.__mouseMoveEventListener=function(e){if(!a&&o&&p){!r&&(Math.abs(d-c)>2||Math.abs(f-l)>2)&&(document.addEventListener("click",g,!0),r=!0);var t=h(e,"move",e.pageX,e.pageY);return d=e.pageX,f=e.pageY,t}};document.addEventListener("mousemove",v),i(e,"touchend",(function(e){if(0===e.touches.length&&p)return a=!1,p=null,h(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));var m=this.__mouseUpEventListener=function(e){if(o=!1,!a&&p)return r&&setTimeout((function(){document.removeEventListener("click",s.__clickEventListener,!0),r=!1}),0),p=null,h(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",m),i(e,"touchcancel",(function(e){if(p){a=!1;var t=p;return p=null,h(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}}}},bacd:function(e,t,n){"use strict";n.r(t);var i=n("8832"),r=i["a"],a=(n("0741"),n("0c7c")),o=Object(a["a"])(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-canvas",e._g({attrs:{"canvas-id":e.canvasId,"disable-scroll":e.disableScroll}},e._listeners),[n("canvas",{ref:"canvas",attrs:{width:"300",height:"150"}}),n("div",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",overflow:"hidden"}},[e._t("default")],2),n("v-uni-resize-sensor",{ref:"sensor",on:{resize:e._resize}})],1)}),[],!1,null,null,null);t["default"]=o.exports},bb00:function(e,t,n){"use strict";n.r(t),n.d(t,"onKeyboardHeightChange",(function(){return o})),n.d(t,"offKeyboardHeightChange",(function(){return s}));var i,r=n("a118"),a=n("db70");function o(e){Object(r["b"])(i),i=e}function s(){i=null}Object(a["d"])("onKeyboardHeightChange",(function(e){i&&Object(r["a"])(i,e)}))},bb67:function(e,t,n){},bb8c:function(e,t,n){},bd97:function(e,t,n){"use strict";n.r(t),t["default"]={image:{jpg:"jpeg",jpe:"jpeg",pbm:"x-portable-bitmap",pgm:"x-portable-graymap",pnm:"x-portable-anymap",ppm:"x-portable-pixmap",psd:"vnd.adobe.photoshop",pic:"x-pict",rgb:"x-rgb",svg:"svg+xml",svgz:"svg+xml",tif:"tiff",xif:"vnd.xiff",wbmp:"vnd.wap.wbmp",wdp:"vnd.ms-photo",xbm:"x-xbitmap",ico:"x-icon"},video:{"3g2":"3gpp2","3gp":"3gpp",avi:"x-msvideo",f4v:"x-f4v",flv:"x-flv",jpgm:"jpm",jpgv:"jpeg",m1v:"mpeg",m2v:"mpeg",mpe:"mpeg",mpg:"mpeg",mpg4:"mpeg",m4v:"x-m4v",mkv:"x-matroska",mov:"quicktime",qt:"quicktime",movie:"x-sgi-movie",mp4v:"mp4",ogv:"ogg",smv:"x-smv",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx"}}},bdb1:function(e,t,n){var i={"./base/base64.js":"1ca3","./base/can-i-use.js":"3648","./base/interceptor.js":"2eae","./base/upx2px.js":"45d2","./context/audio.js":"2c67","./context/background-audio.js":"c3f2","./context/canvas.js":"303f","./context/create-map-context.js":"bfa6","./context/create-video-context.js":"ee03","./context/editor.js":"60db","./context/inner-audio.js":"57a7","./device/network.js":"8b3f","./device/theme.js":"d001","./keyboard/get-selected-text-range.js":"d502","./keyboard/keyboard.js":"bb00","./media/preview-image.js":"898f","./media/recorder.js":"3676","./network/download-file.js":"f0c3","./network/request.js":"82c2","./network/socket.js":"811a","./network/update.js":"c7d8","./network/upload-file.js":"1ff3","./plugin/push.js":"b418","./ui/create-animation.js":"1e4d","./ui/create-intersection-observer.js":"091a","./ui/create-media-query-observer.js":"68fb","./ui/create-selector-query.js":"af33","./ui/load-font-face.js":"0001","./ui/locale.js":"9776","./ui/page-scroll-to.js":"84e0","./ui/set-page-meta.js":"2ec6","./ui/tab-bar.js":"454d","./ui/window.js":"9b1b"};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=a,e.exports=r,r.id="bdb1"},bdbe:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("8bbf"),r=n.n(i),a=n("a6b0"),o=n("3af1"),s=__uniConfig.tabBar||{};__uniConfig.tabBar=r.a.observable(Object(o["d"])(Object(a["f"])(s))),Object(o["c"])((function(){var e=Object(o["d"])(Object(a["f"])(s));__uniConfig.tabBar.backgroundColor=e.backgroundColor,__uniConfig.tabBar.borderStyle=e.borderStyle,__uniConfig.tabBar.color=e.color,__uniConfig.tabBar.selectedColor=e.selectedColor,__uniConfig.tabBar.blurEffect=e.blurEffect,e.list&&e.list.length&&__uniConfig.tabBar.list.length&&e.list.forEach((function(e,t){__uniConfig.tabBar.list[t].iconPath=e.iconPath,__uniConfig.tabBar.list[t].selectedIconPath=e.selectedIconPath}))}));var u=__uniConfig.tabBar},be12:function(e,t,n){"use strict";(function(e){function n(e,t,n){var i=Array.prototype.slice.call(e.changedTouches).filter((function(e){return e.identifier===t}))[0];return!!i&&(e.deltaY=i.pageY-n,!0)}var i="pulling",r="reached",a="aborting",o="refreshing",s="restoring";t["a"]={mounted:function(){var t=this;this.enablePullDownRefresh&&(this.refreshContainerElem=this.$refs.refresh.$el,this.refreshControllerElem=this.refreshContainerElem.querySelector(".uni-page-refresh"),this.refreshInnerElemStyle=this.refreshControllerElem.querySelector(".uni-page-refresh-inner").style,e.on(this.$route.params.__id__+".startPullDownRefresh",(function(){t.state||(t.state=o,t._addClass(),setTimeout((function(){t._refreshing()}),50))})),e.on(this.$route.params.__id__+".stopPullDownRefresh",(function(){t.state===o&&(t._removeClass(),t.state=s,t._addClass(),t._restoring((function(){t._removeClass(),t.state=t.distance=t.offset=null})))})))},methods:{_touchstart:function(e){var t=e.changedTouches[0];this.touchId=t.identifier,this.startY=t.pageY,[a,o,s].indexOf(this.state)>=0?this.canRefresh=!1:this.canRefresh=!0},_touchmove:function(e){if(this.canRefresh&&n(e,this.touchId,this.startY)){var t=e.deltaY;if(0===(document.documentElement.scrollTop||document.body.scrollTop)){if(!(t<0)||this.state){e.preventDefault(),null==this.distance&&(this.offset=t,this.state=i,this._addClass()),t-=this.offset,t<0&&(t=0),this.distance=t;var a=t>=this.refreshOptions.range&&this.state!==r,o=t<this.refreshOptions.range&&this.state!==i;(a||o)&&(this._removeClass(),this.state=this.state===r?i:r,this._addClass()),this._pulling(t)}}else this.touchId=null}},_touchend:function(e){var t=this;n(e,this.touchId,this.startY)&&null!==this.state&&(this.state===i?(this._removeClass(),this.state=a,this._addClass(),this._aborting((function(){t._removeClass(),t.state=t.distance=t.offset=null}))):this.state===r&&(this._removeClass(),this.state=o,this._addClass(),this._refreshing()))},_toggleClass:function(e){if(this.state){var t=this.refreshContainerElem;t&&t.classList[e]("uni-page-refresh--"+this.state)}},_addClass:function(){this._toggleClass("add")},_removeClass:function(){this._toggleClass("remove")},_pulling:function(e){var t=this.refreshControllerElem;if(t){var n=t.style,i=e/this.refreshOptions.range;i>1?i=1:i*=i*i;var r=Math.round(e/(this.refreshOptions.range/this.refreshOptions.height)),a=r?"translate3d(-50%, "+r+"px, 0)":0;n.webkitTransform=a,n.clip="rect("+(45-r)+"px,45px,45px,-5px)",this.refreshInnerElemStyle.webkitTransform="rotate("+360*i+"deg)"}},_aborting:function(e){var t=this.refreshControllerElem;if(t){var n=t.style;if(n.webkitTransform){n.webkitTransition="-webkit-transform 0.3s",n.webkitTransform="translate3d(-50%, 0, 0)";var i=function i(){r&&clearTimeout(r),t.removeEventListener("webkitTransitionEnd",i),n.webkitTransition="",e()};t.addEventListener("webkitTransitionEnd",i);var r=setTimeout(i,350)}else e()}},_refreshing:function(){var t=this.refreshControllerElem;if(t){var n=t.style;n.webkitTransition="-webkit-transform 0.2s",n.webkitTransform="translate3d(-50%, "+this.refreshOptions.height+"px, 0)",e.emit("onPullDownRefresh",{},this.$route.params.__id__)}},_restoring:function(e){var t=this.refreshControllerElem;if(t){var n=t.style;n.webkitTransition="-webkit-transform 0.3s",n.webkitTransform+=" scale(0.01)";var i=function i(){r&&clearTimeout(r),t.removeEventListener("webkitTransitionEnd",i),n.webkitTransition="",n.webkitTransform="translate3d(-50%, 0, 0)",e()};t.addEventListener("webkitTransitionEnd",i);var r=setTimeout(i,350)}}}}}).call(this,n("0dd1"))},be14:function(e,t,n){"use strict";n.r(t),function(e){function i(t,n){var i=e,r=i.invokeCallbackHandler;getApp().$router.push({type:"navigateTo",path:"/choose-location",query:t},(function(){e.subscribe("onChooseLocation",(function t(i){e.unsubscribe("onChooseLocation",t),r(n,i?Object.assign(i,{errMsg:"chooseLocation:ok"}):{errMsg:"chooseLocation:fail"})}))}),(function(){r(n,{errMsg:"chooseLocation:fail"})}))}n.d(t,"chooseLocation",(function(){return i}))}.call(this,n("0dd1"))},bed8:function(e,t,n){},bfa6:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"MapContext",(function(){return s})),n.d(t,"createMapContext",(function(){return u}));var i=n("db70"),r=n("f2b3");function a(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),Object.defineProperty(e,i.key,i)}}function o(e,t,n,r){Object(i["c"])("operateMapPlayer",e,t,n,r)}e.subscribe("onMapMethodCallback",(function(e){var t=e.callbackId,n=e.data;r["a"].invoke(t,n)}));var s=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.id=t,this.pageVm=n}return function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(e,[{key:"on",value:function(e,t){o(this.id,this.pageVm,"on",{name:e,callback:t})}}]),e}();function u(e,t){return new s(e,t||Object(i["b"])("createMapContext"))}s.prototype.$getAppMap=function(){},["getCenterLocation","moveToLocation","getScale","getRegion","includePoints","translateMarker","addCustomLayer","removeCustomLayer","addGroundOverlay","removeGroundOverlay","updateGroundOverlay","initMarkerCluster","addMarkers","removeMarkers","moveAlong","setLocMarkerIcon","openMapApp"].forEach((function(e){s.prototype[e]=r["a"].warp((function(t,n){t.callbackId=n,o(this.id,this.pageVm,e,t)}))}))}.call(this,n("0dd1"))},bfea:function(e,t,n){"use strict";var i=n("e71c"),r=n.n(i);r.a},c33f:function(e,t,n){"use strict";var i=n("5b4c"),r=n.n(i);r.a},c3f2:function(e,t,n){"use strict";n.r(t),n.d(t,"getBackgroundAudioManager",(function(){return d}));var i=n("db70");function r(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),Object.defineProperty(e,i.key,i)}}var a=["canplay","play","pause","stop","ended","timeUpdate","prev","next","error","waiting"],o={};a.forEach((function(e){o[e]=[]}));var s,u=[{name:"duration",readonly:!0},{name:"currentTime",readonly:!0},{name:"paused",readonly:!0},{name:"src",cache:!0},{name:"startTime",default:0,cache:!0},{name:"buffered",readonly:!0},{name:"title",cache:!0},{name:"epname",cache:!0},{name:"singer",cache:!0},{name:"coverImgUrl",cache:!0},{name:"webUrl",cache:!0},{name:"protocol",readonly:!0,default:"http"},{name:"playbackRate",default:1,cache:!0}],c=["prev","next"],l=function(){function e(){var t=this;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._options={},Object(i["d"])("onBackgroundAudioStateChange",(function(e){var t=e.state,n=e.errMsg,i=e.errCode;o[t].forEach((function(e){"function"===typeof e&&e("error"===t?{errMsg:n,errCode:i}:{})}))})),c.forEach((function(e){Object(i["d"])("onBackgroundAudio".concat(e[0].toUpperCase()+e.substr(1)),(function(){o[e].forEach((function(e){"function"===typeof e&&e({})}))}))})),u.forEach((function(e){var n=e.name,r={get:function(){var t=e.cache?this._options:Object(i["c"])("getBackgroundAudioState");return n in t?t[n]:e.default}};e.readonly||(r.set=function(e){this._options[n]=e,Object(i["c"])("setBackgroundAudioState",Object.assign({},this._options,{audioId:this.id}),n)}),Object.defineProperty(t,n,r)}))}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"play",value:function(){this._operate("play")}},{key:"pause",value:function(){this._operate("pause")}},{key:"stop",value:function(){this._operate("stop")}},{key:"seek",value:function(e){this._operate("seek",{currentTime:e})}},{key:"_operate",value:function(e,t){Object(i["c"])("operateBackgroundAudio",Object.assign({},t,{operationType:e}))}}]),e}();function d(){return s||(s=new l)}a.forEach((function(e){var t=e[0].toUpperCase()+e.substr(1);l.prototype["on".concat(t)]=function(t){o[e].push(t)}}))},c41f:function(e,t,n){"use strict";n.r(t);var i={name:"CoverView",props:{scrollTop:{type:[String,Number],default:0}},watch:{scrollTop:function(e){this.setScrollTop(e)}},mounted:function(){this.setScrollTop(this.scrollTop)},methods:{setScrollTop:function(e){var t=this.$refs.content;"scroll"===getComputedStyle(t).overflowY&&(t.scrollTop=this._upx2pxNum(e))},_upx2pxNum:function(e){return/\d+[ur]px$/i.test(e)&&e.replace(/\d+[ur]px$/i,(function(e){return uni.upx2px(parseFloat(e))})),parseFloat(e)||0}}},r=i,a=(n("cc5f"),n("0c7c")),o=Object(a["a"])(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-cover-view",e._g({attrs:{"scroll-top":e.scrollTop}},e.$listeners),[n("div",{ref:"content",staticClass:"uni-cover-view"},[e._t("default")],2)])}),[],!1,null,null,null);t["default"]=o.exports},c4c5:function(e,t,n){"use strict";(function(e,i){n.d(t,"a",(function(){return l}));var r=n("f2b3");function a(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),Object.defineProperty(e,i.key,i)}}var o=/^\s+|\s+$/g,s=/\s+/;function u(e,t,n){var i=[],r=function(e){return r=n?function(e){return!t.contains(e)}:function(e){return t.contains(e)},r(e)};return e.forEach((function(e){e=e.replace(o,""),r(e)&&i.push(e)})),i}var c=function(){function t(e){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),this.$vm=e,Object.defineProperty(this,"$el",{get:function(){return e.$el}})}return function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(t,[{key:"selectComponent",value:function(e){if(this.$el&&e){var t=this.$el.querySelector(e),n=t.__vue__||t;return n.$getComponentDescriptor&&n.$getComponentDescriptor(n,!1)}}},{key:"selectAllComponents",value:function(e){if(!this.$el||!e)return[];for(var t=[],n=this.$el.querySelectorAll(e),i=0;i<n.length;i++){var r=n[i],a=r.__vue__||r;a.$getComponentDescriptor&&t.push(a.$getComponentDescriptor(a,!1))}return t}},{key:"setStyle",value:function(e){return this.$el&&e?("string"===typeof e&&(e=function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var i=e.split(n);i.length>1&&(t[i[0].trim()]=i[1].trim())}})),t}(e)),Object(r["l"])(e)&&(this.$el.__wxsStyle=e,this.$vm.$forceUpdate()),this):this}},{key:"addClass",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!this.$el||!t.length)return this;var i=u(t,this.$el.classList,!0);if(i.length){var r=this.$el.__wxsAddClass||"";this.$el.__wxsAddClass=r+(r?" ":"")+i.join(" "),this.$vm.$forceUpdate()}return this}},{key:"removeClass",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!this.$el||!t.length)return this;var i=this.$el.classList,r=this.$el.__wxsAddClass?this.$el.__wxsAddClass.split(s):[],a=u(t,i,!1);if(a.length){var o=[];a.forEach((function(e){var t=r.findIndex((function(t){return t===e}));-1!==t&&r.splice(t,1),o.push(e)})),this.$el.__wxsRemoveClass=o,this.$el.__wxsAddClass=r.join(" "),this.$vm.$forceUpdate()}return this}},{key:"hasClass",value:function(e){return this.$el&&this.$el.classList.contains(e)}},{key:"getComputedStyle",value:function(){return this.$el?window.getComputedStyle(this.$el):{}}},{key:"getDataset",value:function(){return this.$el&&this.$el.dataset}},{key:"callMethod",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t in this.$vm?this.$vm[t](JSON.parse(JSON.stringify(n))):this.$vm._$id&&e.publishHandler("onWxsInvokeCallMethod",{cid:this.$vm._$id,method:t,args:n})}},{key:"requestAnimationFrame",value:function(e){return i.requestAnimationFrame(e),this}},{key:"getState",value:function(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}},{key:"triggerEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.$vm.$emit(e,t),this}},{key:"setTimeout",value:function(e,t){return window.setTimeout(e,t)}},{key:"clearTimeout",value:function(e){return window.clearTimeout(e)}},{key:"getBoundingClientRect",value:function(){return this.$el.getBoundingClientRect()}}]),t}();function l(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t&&e&&e.$options.name&&0===e.$options.name.indexOf("VUni")&&(e=e.$parent),e)return"__wxsComponentDescriptor"in e||(e.__wxsComponentDescriptor=new c(e)),e.__wxsComponentDescriptor}}).call(this,n("501c"),n("c8ba"))},c61c:function(e,t,n){"use strict";n.r(t);var i=n("f2b3"),r=n("d4cd");function a(e){return Math.sqrt(e.x*e.x+e.y*e.y)}var o={name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},data:function(){return{width:0,height:0,items:[]}},created:function(){this.gapV={x:null,y:null},this.pinchStartLen=null},mounted:function(){this._resize(),Object(r["b"])()},methods:{_resize:function(){this._getWH(),this.items.forEach((function(e,t){e.componentInstance.setParent()}))},_find:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.items,n=this.$el;function i(e){for(var r=0;r<t.length;r++){var a=t[r];if(e===a.componentInstance.$el)return a}return e===n||e===document.body||e===document?null:i(e.parentNode)}return i(e)},_touchstart:function(e){Object(r["a"])({disable:!0});var t=e.touches;if(t&&t.length>1){var n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(this.pinchStartLen=a(n),this.gapV=n,!this.scaleArea){var i=this._find(t[0].target),o=this._find(t[1].target);this._scaleMovableView=i&&i===o?i:null}}},_touchmove:function(e){var t=e.touches;if(t&&t.length>1){e.preventDefault();var n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(null!==this.gapV.x&&this.pinchStartLen>0){var i=a(n)/this.pinchStartLen;this._updateScale(i)}this.gapV=n}},_touchend:function(e){Object(r["a"])({disable:!1});var t=e.touches;t&&t.length||e.changedTouches&&(this.gapV.x=0,this.gapV.y=0,this.pinchStartLen=null,this.scaleArea?this.items.forEach((function(e){e.componentInstance._endScale()})):this._scaleMovableView&&this._scaleMovableView.componentInstance._endScale())},_updateScale:function(e){e&&1!==e&&(this.scaleArea?this.items.forEach((function(t){t.componentInstance._setScale(e)})):this._scaleMovableView&&this._scaleMovableView.componentInstance._setScale(e))},_getWH:function(){var e=window.getComputedStyle(this.$el),t=this.$el.getBoundingClientRect();this.width=t.width-["Left","Right"].reduce((function(t,n){return t+parseFloat(e["border"+n+"Width"])+parseFloat(e["padding"+n])}),0),this.height=t.height-["Top","Bottom"].reduce((function(t,n){return t+parseFloat(e["border"+n+"Width"])+parseFloat(e["padding"+n])}),0)}},render:function(e){var t=this,n=[],r=this.$slots.default&&Object(i["f"])(this.$slots.default,e);r&&r.forEach((function(e){e.componentOptions&&"v-uni-movable-view"===e.componentOptions.tag&&n.push(e)})),this.items=n;var a=Object.assign({},this.$listeners);return["touchstart","touchmove","touchend"].forEach((function(e){var n=a[e],i=t["_".concat(e)];a[e]=n?[].concat(n,i):i})),e("uni-movable-area",{on:a},[e("v-uni-resize-sensor",{on:{resize:this._resize}}),r])}},s=o,u=(n("a3e5"),n("0c7c")),c=Object(u["a"])(s,void 0,void 0,!1,null,null,null);t["default"]=c.exports},c6af:function(e,t,n){"use strict";n.r(t),n.d(t,"getWindowInfo",(function(){return o}));var i=n("a470"),r=n("d8c8"),a=n.n(r);function o(){var e=window.screen,t=window.devicePixelRatio,n=/^Apple/.test(navigator.vendor)&&"number"===typeof window.orientation,r=n&&90===Math.abs(window.orientation),o=n?Math[r?"max":"min"](e.width,e.height):e.width,s=n?Math[r?"min":"max"](e.height,e.width):e.height,u=Math.min(window.innerWidth,document.documentElement.clientWidth,o)||o,c=window.innerHeight,l=a.a.top,d={left:a.a.left,right:u-a.a.right,top:a.a.top,bottom:c-a.a.bottom,width:u-a.a.left-a.a.right,height:c-a.a.top-a.a.bottom},f=Object(i["a"])(),h=f.top,p=f.bottom;return c-=h,c-=p,{windowTop:h,windowBottom:p,windowWidth:u,windowHeight:c,pixelRatio:t,screenWidth:o,screenHeight:s,statusBarHeight:l,safeArea:d,safeAreaInsets:{top:a.a.top,right:a.a.right,bottom:a.a.bottom,left:a.a.left},screenTop:s-c}}},c7d8:function(e,t,n){"use strict";function i(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),Object.defineProperty(e,i.key,i)}}n.r(t),n.d(t,"getUpdateManager",(function(){return o}));var r,a=function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e)}return function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"onCheckForUpdate",value:function(){}},{key:"onUpdateReady",value:function(){}},{key:"onUpdateFailed",value:function(){}},{key:"applyUpdate",value:function(){}}]),e}();function o(){return r||(r=new a)}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===("undefined"===typeof window?"undefined":i(window))&&(n=window)}e.exports=n},c8ed:function(e,t,n){"use strict";var i=n("e9f0"),r=n.n(i);r.a},c96e:function(e,t,n){"use strict";var i=n("7822"),r=n.n(i);r.a},cb0f:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("0f74"),r=/^([a-z-]+:)?\/\//i,a=/^data:.*,.*/;function o(e){var t=__uniConfig.router.base;return t?"/"!==t&&0===("/"+e).indexOf(t)?"/"+e:t+e:e}function s(e){if("./"===__uniConfig.router.base&&(e=e.replace(/^\.\/static\//,"/static/")),0===e.indexOf("/")){if(0!==e.indexOf("//"))return o(e.substr(1));e="https:"+e}if(r.test(e)||a.test(e)||0===e.indexOf("blob:"))return e;var t=getCurrentPages();return t.length?o(Object(i["a"])(t[t.length-1].$page.route,e).substr(1)):e}},cc5f:function(e,t,n){"use strict";var i=n("1d15"),r=n.n(i);r.a},cc76:function(e,t,n){"use strict";var i=Object.create(null),r=n("19c4");r.keys().forEach((function(e){Object.assign(i,r(e))})),t["a"]=i},cf6f:function(e,t,n){"use strict";function i(e,t,n){n(null,e)}n.d(t,"a",(function(){return i}))},d001:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"onThemeChange",(function(){return u})),n.d(t,"offThemeChange",(function(){return c})),n.d(t,"onUIStyleChange",(function(){return l}));var i=n("a118"),r=n("db70"),a=n("65a8"),o=[],s=[];function u(e){o.push(e)}function c(e){if(e){var t=o.indexOf(e);t>=0&&o.splice(t,1)}}function l(t){s.push(t),e.warn('The "uni.onUIStyleChange" API is deprecated, please use "uni.onThemeChange". Learn more: https://uniapp.dcloud.net.cn/api/system/theme.')}Object(r["d"])(a["b"],(function(e){o.forEach((function(t){Object(i["a"])(t,e)}))})),Object(r["d"])("onUIStyleChange",(function(e){s.forEach((function(t){Object(i["a"])(t,e)}))}))}.call(this,n("3ad9")["default"])},d013:function(e,t,n){"use strict";n.r(t),n.d(t,"loadSubPackage",(function(){return i}));var i={root:{type:String,required:!0,validator:function(e,t){var n=__uniConfig.subPackages;return Array.isArray(n)&&0!==n.length?n.find((function(t){return t.root===e}))?void 0:"root `"+e+"` is not found":"no subPackages"}}}},d218:function(e,t){},d3bd:function(e,t,n){"use strict";n.r(t),n("a6b0");var i=n("8af1"),r={name:"Button",mixins:[i["c"],i["a"],i["f"]],props:{hoverClass:{type:String,default:"button-hover"},disabled:{type:[Boolean,String],default:!1},id:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},formType:{type:String,default:"",validator:function(e){return~["","submit","reset"].indexOf(e)}},openType:{type:String,default:""}},data:function(){return{clickFunction:null}},methods:{_onClick:function(e,t){this.disabled||(t&&this.$el.click(),this.formType?this.$dispatch("Form","submit"===this.formType?"uni-form-submit":"uni-form-reset",{type:this.formType}):this.openType)},_bindObjectListeners:function(e,t){if(t)for(var n in t){var i=e.on[n],r=t[n];e.on[n]=i?[].concat(i,r):r}return e}},render:function(e){var t=this,n=Object.create(null);return this.$listeners&&Object.keys(this.$listeners).forEach((function(e){(!t.disabled||"click"!==e&&"tap"!==e)&&(n[e]=t.$listeners[e])})),this.hoverClass&&"none"!==this.hoverClass?e("uni-button",this._bindObjectListeners({class:[this.hovering?this.hoverClass:""],attrs:{disabled:this.disabled},on:{touchstart:this._hoverTouchStart,touchend:this._hoverTouchEnd,touchcancel:this._hoverTouchCancel,mousedown:this._hoverMousedown,mouseup:this._hoverMouseup,click:this._onClick}},n),this.$slots.default):e("uni-button",this._bindObjectListeners({class:[this.hovering?this.hoverClass:""],attrs:{disabled:this.disabled},on:{click:this._onClick}},n),this.$slots.default)},listeners:{"label-click":"_onClick","@label-click":"_onClick"}},a=r,o=(n("5676"),n("0c7c")),s=Object(o["a"])(a,void 0,void 0,!1,null,null,null);t["default"]=s.exports},d46d:function(e,t){e.exports=n},d4b6:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return y}));var i=n("f2b3"),r=n("85b6"),a=n("24d9"),o=n("a470");function s(e,t){var n={id:e.id,offsetLeft:e.offsetLeft,offsetTop:e.offsetTop,dataset:Object(r["b"])(e)};return t&&Object.assign(n,t),n}function u(e){if(e){for(var t=[],n=Object(o["a"])(),i=n.top,r=0;r<e.length;r++){var a=e[r];t.push({identifier:a.identifier,pageX:a.pageX,pageY:a.pageY-i,clientX:a.clientX,clientY:a.clientY-i,force:a.force||0})}return t}return[]}function c(e){return e.startsWith("mouse")||["contextmenu"].includes(e)}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(t._processed)return t.type=n.type||e,t;if("click"===e){var l=Object(o["a"])(),d=l.top;n={x:t.x,y:t.y-d},t.touches=t.changedTouches=[{force:1,identifier:0,clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY}]}var f=Object(a["b"])({type:n.type||e,timeStamp:t.timeStamp||0,detail:n,target:s(i,n),currentTarget:s(r,!1,!0),touches:t instanceof Event||t instanceof CustomEvent?u(t.touches):t.touches,changedTouches:t instanceof Event||t instanceof CustomEvent?u(t.changedTouches):t.changedTouches,preventDefault:function(){},stopPropagation:function(){}});if(c(e)){var h=Object(o["a"])(),p=h.top;f.pageX=t.pageX,f.pageY=t.pageY-p,f.clientX=t.clientX,f.clientY=t.clientY-p}return f}var d=!!i["s"]&&{passive:!0},f=!1;function h(){f&&(clearTimeout(f),f=!1)}var p=0,g=0;function v(e){if(h(),1===e.touches.length){var t=e.touches[0],n=t.pageX,i=t.pageY;p=n,g=i,f=setTimeout((function(){var t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)}),350)}}function m(e){if(f){if(1!==e.touches.length)return h();var t=e.touches[0],n=t.pageX,i=t.pageY;return Math.abs(n-p)>10||Math.abs(i-g)>10?h():void 0}}function y(){window.addEventListener("touchstart",v,d),window.addEventListener("touchmove",m,d),window.addEventListener("touchend",h,d),window.addEventListener("touchcancel",h,d)}},d4cd:function(e,t,n){"use strict";function i(){}function r(e){e.disable}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}))},d502:function(e,t,n){"use strict";n.r(t),function(e,i){n.d(t,"getSelectedTextRange",(function(){return u}));var r=n("62b5"),a=n("db70"),o=n("a118"),s=Object(r["a"])("getSelectedTextRangeEvent");function u(t,n){var i=Object(a["a"])();e.publishHandler("getSelectedTextRange",{pageId:i,callbackId:s.push((function(e){Object(o["a"])(n,e)}))},i)}e.subscribe("onGetSelectedTextRange",(function(e){var t=e.callbackId,n=e.data;i.log("onGetSelectedTextRange");var r=s.pop(t);r&&r(n)}))}.call(this,n("0dd1"),n("3ad9")["default"])},d5be:function(e,t,n){"use strict";n.r(t),function(e,i){n.d(t,"chooseImage",(function(){return d}));var r=n("e2e2"),a=n("a6b0"),o=n("3563"),s=n("8af1"),u=e,c=u.invokeCallbackHandler,l=null;function d(e,t){var n=e.count,u=e.sourceType,d=e.extension;l&&(document.body.removeChild(l),l=null),l=Object(o["default"])({count:n,sourceType:u,extension:d,type:"image"}),document.body.appendChild(l),l.addEventListener("change",(function(e){for(var i=[],a=e.target.files.length,o=function(t){var a=e.target.files[t],o=void 0;Object.defineProperty(a,"path",{get:function(){return o=o||Object(r["b"])(a),o}}),t<n&&i.push(a)},s=0;s<a;s++)o(s);var u={errMsg:"chooseImage:ok",get tempFilePaths(){return i.map((function(e){var t=e.path;return t}))},tempFiles:i};c(t,u)})),l.click(),s["d"].getStatus()||i.warn("".concat(Object(a["g"])("uni.chooseFile.notUserActivation")))}}.call(this,n("0dd1"),n("3ad9")["default"])},d5ec:function(e,t,n){"use strict";n.r(t);var i=n("8af1"),r={name:"RadioGroup",mixins:[i["a"],i["f"]],props:{name:{type:String,default:""}},data:function(){return{radioList:[]}},listeners:{"@radio-change":"_changeHandler","@radio-group-update":"_radioGroupUpdateHandler"},mounted:function(){this._resetRadioGroupValue(this.radioList.length-1)},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_changeHandler:function(e,t){var n=this.radioList.indexOf(t);this._resetRadioGroupValue(n,!0),this.$trigger("change",e,{value:t.radioValue})},_radioGroupUpdateHandler:function(e){if("add"===e.type)this.radioList.push(e.vm);else{var t=this.radioList.indexOf(e.vm);this.radioList.splice(t,1)}},_resetRadioGroupValue:function(e,t){var n=this;this.radioList.forEach((function(i,r){r!==e&&(t?n.radioList[r].radioChecked=!1:n.radioList.forEach((function(e,t){r>=t||n.radioList[t].radioChecked&&(n.radioList[r].radioChecked=!1)})))}))},_getFormData:function(){var e={};if(""!==this.name){var t="";this.radioList.forEach((function(e){e.radioChecked&&(t=e.value)})),e.value=t,e.key=this.name}return e}}},a=r,o=(n("fb61"),n("0c7c")),s=Object(o["a"])(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-radio-group",e._g({},e.$listeners),[e._t("default")],2)}),[],!1,null,null,null);t["default"]=s.exports},d65e:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("28c0"),r={},a=[],o=0;function s(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];o++;var n=new i["a"](o,e);return t&&(r[o]=n,a.push(n)),n}},d677:function(e,t,n){"use strict";n.r(t);var i={name:"CoverImage",props:{src:{type:String,default:""}},methods:{_load:function(e){this.$trigger("load",e)},_error:function(e){this.$trigger("error",e)}}},r=i,a=(n("5d1d"),n("0c7c")),o=Object(a["a"])(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-cover-image",e._g({attrs:{src:e.src}},e.$listeners),[n("div",{staticClass:"uni-cover-image"},[e.src?n("img",{attrs:{src:e.$getRealPath(e.src)},on:{load:e._load,error:e._error}}):e._e()])])}),[],!1,null,null,null);t["default"]=o.exports},d8c8:function(e,t,n){"use strict";var i,r,a=["top","left","right","bottom"],o={};function s(){return r="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":"",r}function u(){if(r="string"===typeof r?r:s(),r){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(f){}var u=document.createElement("div");c(u,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),a.forEach((function(e){(function(e,n){var i=document.createElement("div"),a=document.createElement("div"),s=document.createElement("div"),u=document.createElement("div"),f={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:r+"(safe-area-inset-"+n+")"};c(i,f),c(a,f),c(s,{transition:"0s",animation:"none",width:"400px",height:"400px"}),c(u,{transition:"0s",animation:"none",width:"250%",height:"250%"}),i.appendChild(s),a.appendChild(u),e.appendChild(i),e.appendChild(a),l((function(){i.scrollTop=a.scrollTop=1e4;var e=i.scrollTop,r=a.scrollTop;function o(){this.scrollTop!==(this===i?e:r)&&(i.scrollTop=a.scrollTop=1e4,e=i.scrollTop,r=a.scrollTop,d(n))}i.addEventListener("scroll",o,t),a.addEventListener("scroll",o,t)}));var h=getComputedStyle(i);Object.defineProperty(o,n,{configurable:!0,get:function(){return parseFloat(h.paddingBottom)}})})(u,e)})),document.body.appendChild(u),l(),i=!0}else a.forEach((function(e){o[e]=0}));function c(e,t){var n=e.style;Object.keys(t).forEach((function(e){var i=t[e];n[e]=i}))}function l(t){t?e.push(t):e.forEach((function(e){e()}))}}function c(e){return i||u(),o[e]}var l=[];function d(e){l.length||setTimeout((function(){var e={};l.forEach((function(t){e[t]=o[t]})),l.length=0,f.forEach((function(t){t(e)}))}),0),l.push(e)}var f=[];var h={get support(){return 0!=("string"===typeof r?r:s()).length},get top(){return c("top")},get left(){return c("left")},get right(){return c("right")},get bottom(){return c("bottom")},onChange:function(e){s()&&(i||u(),"function"===typeof e&&f.push(e))},offChange:function(e){var t=f.indexOf(e);t>=0&&f.splice(t,1)}};e.exports=h},d977:function(e,t,n){"use strict";(function(e){var i=n("8af1");t["a"]={name:"Label",mixins:[i["a"]],props:{for:{type:String,default:""}},computed:{pointer:function(){return this.for||this.$slots.default&&this.$slots.default.length}},methods:{_onClick:function(t){var n=/^uni-(checkbox|radio|switch)-/.test(t.target.className);n||(n=/^uni-(checkbox|radio|switch|button)$/i.test(t.target.tagName)),n||(this.for?e.emit("uni-label-click-"+this.$page.id+"-"+this.for,t,!0):this.$broadcast(["Checkbox","Radio","Switch","Button"],"uni-label-click",t,!0))}}}}).call(this,n("501c"))},da71:function(e,t,n){"use strict";t["a"]={name:"Keypress",props:{disable:{type:Boolean,default:!1}},mounted:function(){var e=this,t={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},n=function(n){if(!e.disable){var i=Object.keys(t).find((function(e){var i=n.key,r=t[e];return r===i||Array.isArray(r)&&r.includes(i)}));i&&setTimeout((function(){e.$emit(i,n)}),0)}};document.addEventListener("keyup",n),this.$once("hook:beforeDestroy",(function(){document.removeEventListener("keyup",n)}))},render:function(){return null}}},db10:function(e,t,n){},db18:function(e,t,n){"use strict";var i=n("4814"),r=n.n(i);r.a},db70:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var i=n("3b67");function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return i["a"][e].apply(null,n)}function a(t,n){return e.on("api."+t,n)}function o(t){var n=getCurrentPages(),i=n.length;i||e.emit("onError","".concat(t,":fail"));var r=n[i-1];return r.$vm}function s(){var e=getCurrentPages(),t=e[e.length-1];return t&&t.$page.id}}).call(this,n("0dd1"))},db8e:function(e,t,n){"use strict";(function(e){function i(t,n){return n?t?t.$el:n.$el:e.error("page is not ready")}function r(e){return e.matches||(e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;while(--n>=0&&t.item(n)!==this);return n>-1}),e}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}))}).call(this,n("3ad9")["default"])},dc12:function(e,t,n){"use strict";n.r(t),n.d(t,"compressImage",(function(){return r}));var i=n("cb0f"),r={src:{type:String,required:!0,validator:function(e,t){t.src=Object(i["a"])(e)}}}},de29:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("f2b3");function a(e){return a="function"===typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)},a(e)}function o(e,t,n){var i=t[e],a=!Object(r["i"])(n,e),o=n[e],u=function(e,t){if(!Array.isArray(t))return d(t,e)?0:-1;for(var n=0,i=t.length;n<i;n++)if(d(t[n],e))return n;return-1}(Boolean,i.type);if(u>-1&&a&&!Object(r["i"])(i,"default")&&(o=!1),void 0===o&&Object(r["i"])(i,"default")){var c=i.default;o=Object(r["k"])(c)?c():c,n[e]=o}return s(i,e,o,a,n)}function s(e,t,n,i,r){if(e.required&&i)return"Missing required parameter `".concat(t,"`");if(null==n&&!e.required){var a=e.validator;return a?a(n,r):void 0}var o=e.type,s=!o||!0===o,u=[];if(o){Array.isArray(o)||(o=[o]);for(var l=0;l<o.length&&!s;l++){var d=c(n,o[l]);u.push(d.expectedType||""),s=d.valid}}if(!s)return f(t,n,u);var h=e.validator;return h?h(n,r):void 0}var u=/^(String|Number|Boolean|Function|Symbol)$/;function c(e,t){var n,i=l(t);if(u.test(i)){var o=a(e);n=o===i.toLowerCase(),n||"object"!==o||(n=e instanceof t)}else n=e.byteLength>=0||("Object"===i?Object(r["l"])(e):"Array"===i?Array.isArray(e):e instanceof t||Object(r["u"])(e)===l(t));return{valid:n,expectedType:i}}function l(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function d(e,t){return l(e)===l(t)}function f(e,t,n){var i="parameter `".concat(e,"`.")+" Expected ".concat(n.join(", ")),a=n[0],o=Object(r["u"])(t),s=h(t,a),u=h(t,o);return 1===n.length&&g(a)&&!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return"boolean"===e.toLowerCase()}))}(a,o)&&(i+=" with value ".concat(s)),i+=", got ".concat(o," "),g(o)&&(i+="with value ".concat(u,".")),i}function h(e,t){return"String"===t?'"'.concat(e,'"'):"".concat("Number"===t?Number(e):e)}var p=["string","number","boolean"];function g(e){return p.some((function(t){return e.toLowerCase()===t}))}},df8a:function(e,t,n){},dfa7:function(e,t,n){"use strict";(function(e){var i=n("5a56");t["a"]={name:"Toast",mixins:[i["default"]],props:{title:{type:String,default:""},icon:{default:"success",validator:function(e){return-1!==["success","loading","error","none"].indexOf(e)}},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!1}},computed:{iconClass:function(){return"success"===this.icon?"uni-icon-success-no-circle":"loading"===this.icon?"uni-loading":"error"===this.icon?"uni-icon-error":""}},beforeUpdate:function(){this.visible&&(this.timeoutId&&clearTimeout(this.timeoutId),this.timeoutId=setTimeout((function(){e.emit("onHideToast")}),this.duration))}}}).call(this,n("0dd1"))},e298:function(e,t,n){"use strict";var i=n("df8a"),r=n.n(i);r.a},e2e2:function(e,t,n){"use strict";n.d(t,"f",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return l}));var i=n("f2b3"),r={};function a(e,t){var n=r[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(function(e){e=e.split(",");var t=e[0].match(/:(.*?);/)[1],n=atob(e[1]),i=n.length,r=new Uint8Array(i);while(i--)r[i]=n.charCodeAt(i);return s(r,t)}(e)):t?Promise.reject(new Error("not find")):new Promise((function(t,n){var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(){t(this.response)},i.onerror=n,i.send()}))}function o(e){e=e.split("#")[0].split("?")[0];var t=e.split("/");return t[t.length-1]}function s(e,t){if(!(e instanceof File)){t=t||e.type||"";var n="".concat(Date.now()).concat(function(e){var t=e.split("/")[1];return t?".".concat(t):""}(t));try{e=new File([e],n,{type:t})}catch(i){e=e instanceof Blob?e:new Blob([e],{type:t}),e.name=e.name||n}}return e}function u(e){for(var t in r)if(Object(i["i"])(r,t)){var n=r[t];if(n===e)return t}var a=(window.URL||window.webkitURL).createObjectURL(e);return r[a]=e,a}function c(e){var t=document.createElement("a");return t.href=e,t.origin===location.origin?Promise.resolve(e):a(e).then(u)}function l(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete r[e]}},e3a7:function(e,t,n){var i={"./base/event-bus.js":"6e0c","./base/get-browser-info.js":"fb3e","./constants.js":"8b67","./context/inner-audio.js":"f9d2","./context/operate-map-player.js":"0758","./context/operate-video-player.js":"f941","./device/accelerometer.js":"2bdd","./device/clipboard.js":"7bab","./device/compass.js":"f7b4","./device/get-system-info.js":"78c8","./device/get-window-info.js":"c6af","./device/make-phone-call.js":"7f4e","./device/network-info.js":"3d64","./device/vibrate.js":"44de","./file/file.js":"3b54","./file/open-document.js":"e826","./index.js":"d218","./keyboard/keyboard.js":"54f4","./location/choose-location.js":"be14","./location/get-location.js":"0554","./location/location-change.js":"5d74","./location/open-location.js":"6575","./media/MIMEType.js":"bd97","./media/choose-file.js":"3898","./media/choose-image.js":"d5be","./media/choose-video.js":"8ce3","./media/create_input.js":"3563","./media/get-image-info.js":"34b2","./media/get-video-info.js":"956d","./media/preview-image.js":"9e56","./network/download-file.js":"4f43","./network/request.js":"1a12","./network/socket.js":"893e","./network/upload-file.js":"7d18","./plugin/get-launch-options-sync.js":"0212","./plugin/get-provider.js":"abea","./route/route.js":"1a8c","./storage/storage.js":"e649","./ui/navigation-bar.js":"5964","./ui/popup.js":"56e9","./ui/pull-down-refresh.js":"45db","./ui/request-component-info.js":"09e5","./ui/tab-bar.js":"fcd1","./ui/window.js":"e8b5","./ui/windows.js":"0e5c","./util.js":"79d5"};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=a,e.exports=r,r.id="e3a7"},e428:function(e,t,n){"use strict";(function(e){var i=n("cb0f"),r=n("f2b3"),a=n("b865"),o=n("7107");t["a"]={name:"TabBar",props:{position:{default:"bottom",validator:function(e){return-1!==["bottom","top"].indexOf(e)}},color:{type:String,default:"#999"},selectedColor:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderStyle:{type:String,default:"black"},iconfontSrc:{type:String,default:""},list:{type:Array,default:function(){return[]}},matchMedia:{type:Object,default:function(){return{}}},blurEffect:{type:String,default:"none"},fontSize:{type:String,default:"10px"},iconWidth:{type:String,default:"24px"},spacing:{type:String,default:"3px"},height:{type:String,default:"50px"},midButton:{type:Object,default:null}},data:function(){return{selectedIndex:0,visibleList:[],internalMidButton:{}}},computed:{tabbarBackgroundColor:function(){if(this.backgroundColor)return this.backgroundColor;if(function(e){return window.CSS&&CSS.supports&&(CSS.supports(e)||CSS.supports.apply(CSS,e.split(":")))}("backdrop-filter:blur(10px)")&&"none"!==this.blurEffect){if("dark"===this.blurEffect)return"rgb(0, 0, 0, 0.8)";if(["light","extralight"].includes(this.blurEffect))return"rgb(250, 250, 250, 0.8)"}return"#f7f7fa"},borderColor:function(){return"white"===this.borderStyle?"rgba(255, 255, 255, 0.33)":"black"===this.borderStyle?"rgba(0, 0, 0, 0.33)":this.borderStyle}},watch:{$route:{immediate:!0,handler:function(){this.visibleList.length||this._initVisibleList(),this.setSelectedIndex()}},list:{deep:!0,handler:function(){this._initVisibleList(),this.setSelectedIndex()}},midButton:function(e){this._initVisibleList()}},created:function(){var e=this;this.list.forEach((function(t){void 0===t.visible&&e.$set(t,"visible",!0)})),this.iconfontSrc&&Object(o["a"])({options:{family:"UniTabbarIconFont",source:'url("'.concat(this.iconfontSrc,'")')}})},beforeCreate:function(){this.__path__=this.$route.path},methods:{getIconPath:function(e,t){return this.selectedIndex===t&&e.selectedIconPath||e.iconPath||""},setSelectedIndex:function(){var e=this;if(this.$route.meta.isTabBar){this.__path__=this.$route.path;var t=this.visibleList.findIndex((function(t){return e.$route.meta.pagePath===t.pagePath}));this.selectedIndex=t}},_initVisibleList:function(){this.visibleList=this._initMidButton(this.list.filter((function(e){return!1!==e.visible})))},_getRealPath:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=/^([a-z-]+:)?\/\//i,n=/^data:.*,.*/;return t.test(e)||n.test(e)||0===e.indexOf("/")||(e="/"+e),Object(i["a"])(e)},_switchTab:function(t,n){var i=t.text,r=t.pagePath,o=t.isMidButton,s=void 0!==o&&o;if(s)Object(a["a"])("onTabBarMidButtonTap");else{this.selectedIndex=n;var u="/"+r;u===__uniRoutes[0].alias&&(u="/");var c={index:n,text:i,pagePath:r};this.$route.path!==u?(this.__path__=this.$route.path,uni.switchTab({from:"tabBar",url:u,detail:c})):e.emit("onTabItemTap",c)}},_initMidButton:function(e){var t=e.length;return t%2===0&&Object(r["l"])(this.midButton)&&(this.internalMidButton=Object.assign({width:"50px",height:"50px",iconWidth:"24px"},this.internalMidButton,this.midButton),e.splice(~~(t/2),0,Object.assign({},this.internalMidButton,{isMidButton:!0}))),e},_uniTabbarBdStyle:function(e){return Object.assign({},{width:e.width,height:e.height,backgroundImage:e.backgroundImage?"url('"+this._getRealPath(e.backgroundImage)+"')":""})}}}}).call(this,n("0dd1"))},e4bc:function(e,t,n){"use strict";var i=n("252b"),r=n.n(i);r.a},e5bb:function(e,t,n){"use strict";n.r(t),n.d(t,"chooseLocation",(function(){return i}));var i={keyword:{type:String}}},e5e5:function(e,t,n){},e649:function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)},r(e)}n.r(t),n.d(t,"setStorage",(function(){return o})),n.d(t,"setStorageSync",(function(){return s})),n.d(t,"getStorage",(function(){return u})),n.d(t,"getStorageSync",(function(){return c})),n.d(t,"removeStorage",(function(){return l})),n.d(t,"removeStorageSync",(function(){return d})),n.d(t,"clearStorage",(function(){return f})),n.d(t,"clearStorageSync",(function(){return h})),n.d(t,"getStorageInfo",(function(){return p})),n.d(t,"getStorageInfoSync",(function(){return g}));function a(e){try{var t="string"===typeof e?JSON.parse(e):e,n=t.type;if(["object","string","number","boolean","undefined"].indexOf(n)>=0){var i=Object.keys(t);if(2===i.length&&"data"in t){if(r(t.data)===n)return t.data;if("object"===n&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(t.data))return new Date(t.data)}else if(1===i.length)return""}}catch(o){}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key,n=e.data,i=r(n),a="string"===i?n:JSON.stringify({type:i,data:n});try{localStorage.setItem(t,a)}catch(o){return{errMsg:"setStorage:fail ".concat(o)}}return{errMsg:"setStorage:ok"}}function s(e,t){o({key:e,data:t})}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key,n=localStorage&&localStorage.getItem(t);if("string"!==typeof n)return{data:"",errMsg:"getStorage:fail"};var i=n;try{var r=JSON.parse(n),o=a(r);void 0!==o&&(i=o)}catch(s){}return{data:i,errMsg:"getStorage:ok"}}function c(e){var t=u({key:e});return t.data}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key;return localStorage&&localStorage.removeItem(t),{errMsg:"removeStorage:ok"}}function d(e){l({key:e})}function f(){return localStorage&&localStorage.clear(),{errMsg:"clearStorage:ok"}}function h(){f()}function p(){for(var e=localStorage&&localStorage.length||0,t=[],n=0,i=0;i<e;i++){var r=localStorage.key(i),a=localStorage.getItem(r);n+=r.length+a.length,"uni-storage-keys"!==r&&t.push(r)}return{keys:t,currentSize:Math.ceil(2*n/1024),limitSize:Number.MAX_VALUE,errMsg:"getStorageInfo:ok"}}function g(){var e=p();return delete e.errMsg,e}},e71c:function(e,t,n){},e804:function(e,t,n){},e826:function(e,t,n){"use strict";n.r(t),function(e){function i(t,n){var i=t.filePath,r=e,a=r.invokeCallbackHandler;window.open(i),a(n,{errMsg:"openDocument:ok"})}n.d(t,"openDocument",(function(){return i}))}.call(this,n("0dd1"))},e8b5:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"onWindowResize",(function(){return o})),n.d(t,"offWindowResize",(function(){return s}));var i=[],r=[];function a(){r.push(setTimeout((function(){r.forEach((function(e){return clearTimeout(e)})),r.length=0;var t=e,n=t.invokeCallbackHandler,a=uni.getSystemInfoSync(),o=a.windowWidth,s=a.windowHeight,u=a.screenWidth,c=a.screenHeight,l=90===Math.abs(window.orientation),d=l?"landscape":"portrait";i.forEach((function(e){n(e,{deviceOrientation:d,size:{windowWidth:o,windowHeight:s,screenWidth:u,screenHeight:c}})}))}),20))}function o(e){i.length||window.addEventListener("resize",a),i.push(e)}function s(e){i.splice(i.indexOf(e),1),i.length||window.removeEventListener("resize",a)}}.call(this,n("0dd1"))},e949:function(e,t,n){"use strict";function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=document.getElementById(t);i&&n&&(i.parentNode.removeChild(i),i=null),i||(i=document.createElement("style"),i.type="text/css",t&&(i.id=t),document.getElementsByTagName("head")[0].appendChild(i)),i.appendChild(document.createTextNode(e))}n.d(t,"a",(function(){return i}))},e9f0:function(e,t,n){},ea0f:function(e,t,n){"use strict";n.r(t),n.d(t,"scanCode",(function(){return i}));var i={onlyFromCamera:{type:Boolean},scanType:{type:Array},autoDecodeCharSet:{type:Boolean},sound:{type:String,default:"none"},autoZoom:{type:Boolean,default:!0}}},ec33:function(e,t,n){"use strict";n.r(t),n.d(t,"getStorage",(function(){return i})),n.d(t,"getStorageSync",(function(){return r})),n.d(t,"setStorage",(function(){return a})),n.d(t,"setStorageSync",(function(){return o})),n.d(t,"removeStorage",(function(){return s})),n.d(t,"removeStorageSync",(function(){return u}));var i={key:{type:String,required:!0}},r=[{name:"key",type:String,required:!0}],a={key:{type:String,required:!0},data:{required:!0}},o=[{name:"key",type:String,required:!0},{name:"data",required:!0}],s=i,u=r},ec4b:function(e,t,n){"use strict";n.r(t);var i=n("83a6"),r={name:"View",mixins:[i["a"]],listeners:{"label-click":"clickHandler"}},a=r,o=(n("b0fb"),n("0c7c")),s=Object(o["a"])(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.hoverClass&&"none"!==e.hoverClass?n("uni-view",e._g({class:[e.hovering?e.hoverClass:""],on:{touchstart:e._hoverTouchStart,touchend:e._hoverTouchEnd,touchcancel:e._hoverTouchCancel,mousedown:e._hoverMousedown,mouseup:e._hoverMouseup}},e.$listeners),[e._t("default")],2):n("uni-view",e._g({},e.$listeners),[e._t("default")],2)}),[],!1,null,null,null);t["default"]=s.exports},ed1a:function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return v}));var i=n("f2b3"),r=n("8542"),a=/^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/,o=/^create|Manager$/,s=["createBLEConnection"],u=["request","downloadFile","uploadFile","connectSocket"],c=["createBLEConnection","createPushMessage"],l=/^on|^off/;function d(e){return a.test(e)&&-1===c.indexOf(e)}function f(e){return l.test(e)&&"onPush"!==e}function h(e){return-1!==u.indexOf(e)}function p(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e]}))}function g(e){return!(function(e){return o.test(e)&&-1===s.indexOf(e)}(e)||d(e)||f(e))}function v(e,t){return g(e)&&Object(i["k"])(t)?function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length,o=new Array(a>1?a-1:0),s=1;s<a;s++)o[s-1]=arguments[s];return Object(i["k"])(n.success)||Object(i["k"])(n.fail)||Object(i["k"])(n.complete)?Object(r["e"])(e,r["b"].apply(void 0,[e,t,n].concat(o))):Object(r["e"])(e,p(new Promise((function(i,a){r["b"].apply(void 0,[e,t,Object.assign({},n,{success:i,fail:a})].concat(o))}))))}:t}Promise.prototype.finally||(Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))})},ed9f:function(e,t,n){"use strict";n.r(t),n.d(t,"chooseVideo",(function(){return r}));var i=["album","camera"],r={sourceType:{type:Array,required:!1,default:i,validator:function(e,t){e=e.filter((function(e){return i.includes(e)})),t.sourceType=e.length?e:i}},compressed:{type:Boolean,default:!0},maxDuration:{type:Number,default:60},camera:{type:String,default:"back"},extension:{type:Array,default:["*"],validator:function(e,t){if(0===e.length)return"param extension should not be empty."}}}},edfa:function(e,t,n){"use strict";var i=n("5c85"),r=n.n(i);r.a},ee03:function(e,t,n){"use strict";n.r(t),n.d(t,"VideoContext",(function(){return s})),n.d(t,"createVideoContext",(function(){return u}));var i=n("db70");function r(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),Object.defineProperty(e,i.key,i)}}var a=[.5,.8,1,1.25,1.5,2];function o(e,t,n,r){Object(i["c"])("operateVideoPlayer",e,t,n,r)}var s=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.id=t,this.pageVm=n}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"play",value:function(){o(this.id,this.pageVm,"play")}},{key:"pause",value:function(){o(this.id,this.pageVm,"pause")}},{key:"stop",value:function(){o(this.id,this.pageVm,"stop")}},{key:"seek",value:function(e){o(this.id,this.pageVm,"seek",{position:e})}},{key:"sendDanmu",value:function(e){o(this.id,this.pageVm,"sendDanmu",e)}},{key:"playbackRate",value:function(e){~a.indexOf(e)||(e=1),o(this.id,this.pageVm,"playbackRate",{rate:e})}},{key:"requestFullScreen",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this.id,this.pageVm,"requestFullScreen",e)}},{key:"exitFullScreen",value:function(){o(this.id,this.pageVm,"exitFullScreen")}},{key:"showStatusBar",value:function(){o(this.id,this.pageVm,"showStatusBar")}},{key:"hideStatusBar",value:function(){o(this.id,this.pageVm,"hideStatusBar")}}]),e}();function u(e,t){return new s(e,t||Object(i["b"])("createVideoContext"))}},ee4f:function(e,t,n){"use strict";n.r(t),function(e){var i=n("f2b3");t["default"]={data:function(){return{showModal:{visible:!1}}},created:function(){var t=this;e.on("onShowModal",(function(e,n){t.showModal=e,t.onModalCloseCallback=n})),e.on("onHidePopup",(function(e){t.showModal.visible=!1}))},methods:{_onModalClose:function(e){this.showModal.visible=!1,Object(i["k"])(this.onModalCloseCallback)&&this.onModalCloseCallback(e)}}}}.call(this,n("0dd1"))},eec9:function(e,t,n){},f0c3:function(e,t,n){"use strict";n.r(t),n.d(t,"downloadFile",(function(){return u}));var i=n("a118"),r=n("db70");function a(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),Object.defineProperty(e,i.key,i)}}var o=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.id=t,this._callbackId=n,this._callbacks=[]}return function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(e,[{key:"abort",value:function(){Object(r["c"])("operateDownloadTask",{downloadTaskId:this.id,operationType:"abort"})}},{key:"onProgressUpdate",value:function(e){"function"===typeof e&&this._callbacks.push(e)}},{key:"onHeadersReceived",value:function(){}},{key:"offProgressUpdate",value:function(e){var t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}},{key:"offHeadersReceived",value:function(){}}]),e}(),s=Object.create(null);function u(e,t){var n=Object(r["c"])("createDownloadTask",e),i=n.downloadTaskId,a=new o(i,t);return s[i]=a,a}Object(r["d"])("onDownloadTaskStateChange",(function(e){var t=e.downloadTaskId,n=e.state,r=e.tempFilePath,a=e.statusCode,o=e.progress,u=e.totalBytesWritten,c=e.totalBytesExpectedToWrite,l=e.errMsg,d=s[t],f=d._callbackId;switch(n){case"progressUpdate":d._callbacks.forEach((function(e){e({progress:o,totalBytesWritten:u,totalBytesExpectedToWrite:c})}));break;case"success":Object(i["a"])(f,{tempFilePath:r,statusCode:a,errMsg:"request:ok"});case"fail":Object(i["a"])(f,{errMsg:"request:fail "+l});default:setTimeout((function(){delete s[t]}),100);break}}))},f102:function(e,t,n){"use strict";n.r(t),n.d(t,"makePhoneCall",(function(){return i}));var i={phoneNumber:{type:String,required:!0,validator:function(e){if(!e)return"makePhoneCall:fail parameter error: parameter.phoneNumber should not be empty String;"}}}},f1b2:function(e,t,n){"use strict";n.r(t),n.d(t,"chooseImage",(function(){return a}));var i=["original","compressed"],r=["album","camera"],a={count:{type:Number,required:!1,default:9,validator:function(e,t){e<=0&&(t.count=9)}},sizeType:{type:[Array,String],required:!1,default:i,validator:function(e,t){e="string"===typeof e?[e]:e,e=e.filter((function(e){return i.includes(e)})),t.sizeType=e.length?e:i}},sourceType:{type:Array,required:!1,default:r,validator:function(e,t){e=e.filter((function(e){return r.includes(e)})),t.sourceType=e.length?e:r}},extension:{type:Array,default:["*"],validator:function(e,t){if(0===e.length)return"param extension should not be empty."}}}},f1ea:function(e,t,n){"use strict";n.r(t);var i=[],r=n("8793");r.keys().forEach((function(e){"./index.js"!==e&&i.push(r(e).default)})),t["default"]=i},f1ef:function(e,t,n){"use strict";n.r(t);var i=n("73a6"),r=i["a"],a=(n("5ab3"),n("0c7c")),o=Object(a["a"])(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-scroll-view",e._g({},e.$listeners),[n("div",{ref:"wrap",staticClass:"uni-scroll-view"},[n("div",{ref:"main",staticClass:"uni-scroll-view",style:{"overflow-x":e.scrollX?"auto":"hidden","overflow-y":e.scrollY?"auto":"hidden"}},[n("div",{ref:"content",staticClass:"uni-scroll-view-content"},[e.refresherEnabled?n("div",{ref:"refresherinner",staticClass:"uni-scroll-view-refresher",style:{"background-color":e.refresherBackground,height:e.refresherHeight+"px"}},["none"!==e.refresherDefaultStyle?n("div",{staticClass:"uni-scroll-view-refresh"},[n("div",{staticClass:"uni-scroll-view-refresh-inner"},["pulling"==e.refreshState?n("svg",{key:"refresh__icon",staticClass:"uni-scroll-view-refresh__icon",style:{transform:"rotate("+e.refreshRotate+"deg)"},attrs:{fill:"#2BD009",width:"24",height:"24",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}}),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})]):e._e(),"refreshing"==e.refreshState?n("svg",{key:"refresh__spinner",staticClass:"uni-scroll-view-refresh__spinner",attrs:{width:"24",height:"24",viewBox:"25 25 50 50"}},[n("circle",{staticStyle:{color:"#2bd009"},attrs:{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"3"}})]):e._e()])]):e._e(),"none"==e.refresherDefaultStyle?e._t("refresher"):e._e()],2):e._e(),e._t("default")],2)])])])}),[],!1,null,null,null);t["default"]=o.exports},f2b3:function(e,t,n){"use strict";n.d(t,"s",(function(){return r})),n.d(t,"k",(function(){return h})),n.d(t,"m",(function(){return p})),n.d(t,"l",(function(){return g})),n.d(t,"i",(function(){return v})),n.d(t,"u",(function(){return m})),n.d(t,"b",(function(){return _})),n.d(t,"c",(function(){return w})),n.d(t,"q",(function(){return T})),n.d(t,"h",(function(){return S})),n.d(t,"g",(function(){return k})),n.d(t,"w",(function(){return x})),n.d(t,"d",(function(){return C})),n.d(t,"t",(function(){return E})),n.d(t,"n",(function(){return A})),n.d(t,"f",(function(){return O})),n.d(t,"v",(function(){return c})),n.d(t,"r",(function(){return j})),n.d(t,"j",(function(){return M})),n.d(t,"e",(function(){return D})),n.d(t,"p",(function(){return R})),n.d(t,"a",(function(){return F})),n.d(t,"o",(function(){return V}));var i,r=!1;try{var a={};Object.defineProperty(a,"passive",{get:function(){r=!0}}),window.addEventListener("test-passive",null,a)}catch(z){}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function u(){var e,t=uni.getStorageSync("uni_id_token")||"",n=t.split(".");if(!t||3!==n.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse(function(e){return decodeURIComponent(i(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}(n[1]))}catch(i){throw new Error("获取当前用户信息出错,详细错误信息为:"+i.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}function c(e){e.prototype.uniIDHasRole=function(e){var t=u(),n=t.role;return n.indexOf(e)>-1},e.prototype.uniIDHasPermission=function(e){var t=u(),n=t.permission;return this.uniIDHasRole("admin")||n.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=u(),t=e.tokenExpired;return t>Date.now()}}i="function"!==typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!s.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,i,r="",a=0;a<e.length;)t=o.indexOf(e.charAt(a++))<<18|o.indexOf(e.charAt(a++))<<12|(n=o.indexOf(e.charAt(a++)))<<6|(i=o.indexOf(e.charAt(a++))),r+=64===n?String.fromCharCode(t>>16&255):64===i?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return r}:atob;var l=Object.prototype.toString,d=Object.prototype.hasOwnProperty,f=function(e){return e>9?e:"0"+e};function h(e){return"function"===typeof e}function p(e){return"string"===typeof e}function g(e){return"[object Object]"===l.call(e)}function v(e,t){return d.call(e,t)}function m(e){return l.call(e).slice(8,-1)}function y(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}Object.assign;var b=/-(\w)/g,_=y((function(e){return e.replace(b,(function(e,t){return t?t.toUpperCase():""}))})),w=y((function(e){return e.charAt(0).toUpperCase()+e.slice(1)}));function T(e,t,n){t.forEach((function(t){v(n,t)&&(e[t]=n[t])}))}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(""+e).replace(/[^\x00-\xff]/g,"**").length}function k(e){var t=e.date,n=void 0===t?new Date:t,i=e.mode,r=void 0===i?"date":i;return"time"===r?f(n.getHours())+":"+f(n.getMinutes()):n.getFullYear()+"-"+f(n.getMonth()+1)+"-"+f(n.getDate())}function x(e,t){for(var n in t)e.style[n]=t[n]}function C(e,t){var n,i=function(){var i=arguments,r=this;clearTimeout(n);var a=function(){return e.apply(r,i)};n=setTimeout(a,t)};return i.cancel=function(){clearTimeout(n)},i}function E(e,t){var n,i,r=0,a=function(){for(var a=this,o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];var c=Date.now();clearTimeout(n),i=function(){i=null,r=c,e.apply(a,s)},c-r<t?n=setTimeout(i,t-(c-r)):i()};return a.cancel=function(){clearTimeout(n),i=null},a.flush=function(){clearTimeout(n),i&&i()},a}function A(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))}function O(e,t){return e.map((function e(n){var i=n.children&&n.children.map(e),r=t(n.tag,n.data,i);return r.text=n.text,r.isComment=n.isComment,r.componentOptions=n.componentOptions,r.elm=n.elm,r.context=n.context,r.ns=n.ns,r.isStatic=n.isStatic,r.key=n.key,r}))}function j(e){var t={};return g(e)&&Object.keys(e).sort().forEach((function(n){t[n]=e[n]})),Object.keys(t)?t:e}function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(n.push(o.value),t&&n.length===t)break}catch(u){r=!0,a=u}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"===typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function M(e){if(!e)return{r:0,g:0,b:0,a:0};var t=e.slice(1),n=t.length;if(![3,4,6,8].includes(n))return{r:0,g:0,b:0,a:0};3!==n&&4!==n||(t=t.replace(/(\w{1})/g,"$1$1"));var i=t.match(/(\w{2})/g),r=I(i,4),a=r[0],o=r[1],s=r[2],u=r[3],c=parseInt(a,16),l=parseInt(o,16),d=parseInt(s,16);return u?{r:c,g:l,b:d,a:("0x100".concat(u)-65536)/255}:{r:c,g:l,b:d,a:1}}var L=decodeURIComponent;function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.keys(e).forEach((function(n){try{t[n]=L(e[n])}catch(z){t[n]=e[n]}})),t}function R(e){if("function"===typeof e)return window.plus?e():void document.addEventListener("plusready",e)}var N=0,B={};function U(e,t){var n=B[e]||{};delete B[e];var i=t.errMsg||"";new RegExp("\\:\\s*fail").test(i)?n.fail&&n.fail(t):n.success&&n.success(t),n.complete&&n.complete(t)}var F={warp:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=String(N++);B[n]={success:t.success,fail:t.fail,complete:t.complete};var i=Object.assign({},t),r=e.bind(this)(i,n);r&&U(n,r)}},invoke:U},$={black:"rgba(0,0,0,0.4)",white:"rgba(255,255,255,0.4)"};function H(e){return e&&e in $?$[e]:e}function V(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"light",i=t[n],r={};return i?(Object.keys(e).forEach((function(a){var o=e[a];r[a]=function(){if(g(o))return V(o,t,n);if(Array.isArray(o))return o.map((function(e){return g(e)?V(e,t,n):e}));if(p(o)&&o.startsWith("@")){var e=o.replace("@",""),r=i[e]||o;switch(a){case"borderStyle":r=H(r);break}return r}return o}()})),r):r}},f4e0:function(e,t,n){"use strict";var i=n("6a26"),r=n.n(i);r.a},f53a:function(e,t,n){"use strict";var i=n("3ae8"),r=n.n(i);r.a},f68f:function(e,t,n){"use strict";n.r(t),n.d(t,"preLogin",(function(){return r}));var i={UNIVERIFY:"univerify"},r={provider:{type:String,required:!0,default:i.UNIVERIFY,validator:function(e,t){if(Object.values(i).indexOf(e)<0)return"provider error"}}}},f7b4:function(e,t,n){"use strict";n.r(t),function(e){var i;n.d(t,"startCompass",(function(){return a})),n.d(t,"stopCompass",(function(){return o})),n.d(t,"onCompassChange",(function(){return s})),n.d(t,"offCompassChange",(function(){return u}));var r=[];function a(t,n){var a=e,o=a.invokeCallbackHandler;if(!window.DeviceOrientationEvent)return{errMsg:"startCompass:fail"};function s(){i=function(e){var t=360-e.alpha;r.forEach((function(e){o(e,{direction:t||0})}))},window.addEventListener("deviceorientation",i,!1)}if(!i){if(DeviceOrientationEvent.requestPermission)return void DeviceOrientationEvent.requestPermission().then((function(e){"granted"===e?(s(),o(n,{errMsg:"startCompass:ok"})):o(n,{errMsg:"startCompass:fail ".concat(e)})})).catch((function(e){o(n,{errMsg:"startCompass:fail ".concat(e)})}));s()}return{}}function o(){return i&&(window.removeEventListener("deviceorientation",i,!1),i=null),{}}function s(e){r.length||a(),r.push(e)}function u(e){if(e){var t=r.indexOf(e);t>=0&&r.splice(t,1)}r.length||o()}}.call(this,n("0dd1"))},f7fd:function(e,t,n){"use strict";var i=n("42f9"),r=n.n(i);r.a},f941:function(e,t,n){"use strict";n.r(t),function(e){function i(t,n,i,r){var a=n.$page.id;e.publishHandler(a+"-video-"+t,{videoId:t,type:i,data:r},a)}n.d(t,"operateVideoPlayer",(function(){return i}))}.call(this,n("0dd1"))},f9d2:function(e,t,n){"use strict";n.r(t),n.d(t,"createInnerAudioContext",(function(){return u}));var i=n("cb0f");function r(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),Object.defineProperty(e,i.key,i)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=["onCanplay","onPlay","onPause","onStop","onEnded","onTimeUpdate","onError","onWaiting","onSeeking","onSeeked"],s=function(){function e(){var t=this;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),a(this,"_audio",void 0),a(this,"_stoping",void 0),a(this,"startTime",void 0),a(this,"_events",void 0),a(this,"_src",void 0);var n=this._audio=new Audio;this._stoping=!1;["src","autoplay","loop","duration","currentTime","paused","volume"].forEach((function(e){Object.defineProperty(t,e,{set:"src"===e?function(e){return n.src=Object(i["a"])(e),t._src=e,e}:function(t){return n[e]=t,t},get:"src"===e?function(){return t._src}:function(){return n[e]}})})),this.startTime=0,Object.defineProperty(this,"obeyMuteSwitch",{set:function(e){return!1},get:function(){return!1}}),Object.defineProperty(this,"buffered",{get:function(){var e=n.buffered;return e.length?e.end(e.length-1):0}}),this._events={},o.forEach((function(e){t._events[e]=[]})),n.addEventListener("loadedmetadata",(function(){var e=Number(t.startTime)||0;e>0&&(n.currentTime=e)}));var r=["canplay","pause","seeking","seeked","timeUpdate"];["canplay","play","pause","ended","timeUpdate","error","waiting","seeking","seeked"].forEach((function(e){n.addEventListener(e.toLowerCase(),(function(){t._stoping&&r.indexOf(e)>=0||t._events["on".concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))].forEach((function(e){e()}))}),!1)}))}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"play",value:function(){this._stoping=!1,this._audio.play()}},{key:"pause",value:function(){this._audio.pause()}},{key:"stop",value:function(){this._stoping=!0,this._audio.pause(),this._audio.currentTime=0,this._events.onStop.forEach((function(e){e()}))}},{key:"seek",value:function(e){this._stoping=!1,e=Number(e),"number"!==typeof e||isNaN(e)||(this._audio.currentTime=e)}},{key:"destroy",value:function(){this.stop()}}]),e}();function u(){return new s}o.forEach((function(e){s.prototype[e]=function(t){"function"===typeof t&&this._events[e].push(t)}})),["offCanplay","offPlay","offPause","offStop","offEnded","offTimeUpdate","offError","offWaiting","offSeeking","offSeeked"].forEach((function(e){s.prototype[e]=function(t){var n=this._events[e.replace("off","on")],i=n.indexOf(t);i>=0&&n.splice(i,1)}}))},fae3:function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var i=window.document.currentScript,r=n("8875");i=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r});var a=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}n("2ef3")},fb3e:function(e,t,n){"use strict";n.r(t),n.d(t,"getTheme",(function(){return r})),n.d(t,"getBrowserInfo",(function(){return f}));var i=n("f2b3");function r(){if(!0!==__uniConfig.darkmode)return Object(i["m"])(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}var a=navigator.userAgent,o=/android/i.test(a),s=/iphone|ipad|ipod/i.test(a),u=a.match(/Windows NT ([\d|\d.\d]*)/i),c=/Macintosh|Mac/i.test(a),l=/Linux|X11/i.test(a),d=c&&navigator.maxTouchPoints>0;function f(){var e,t,n,i=navigator.language,f="phone";if(s){e="iOS";var h=a.match(/OS\s([\w_]+)\slike/);h&&(t=h[1].replace(/_/g,"."));var p=a.match(/\(([a-zA-Z]+);/);p&&(n=p[1])}else if(o){e="Android";var g=a.match(/Android[\s/]([\w\.]+)[;\s]/);g&&(t=g[1]);for(var v=a.match(/\((.+?)\)/),m=v?v[1].split(";"):a.split(" "),y=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i],b=0;b<m.length;b++){var _=m[b];if(_.indexOf("Build")>0){n=_.split("Build")[0].trim();break}for(var w=void 0,T=0;T<y.length;T++)if(y[T].test(_)){w=!0;break}if(!w){n=_.trim();break}}}else if(d)n="iPad",e="iOS",t="function"===typeof window.BigInt?"14.0":"13.0",f="pad";else if(u||c||l){n="PC",e="PC",f="pc";var S=a.match(/\((.+?)\)/)[1];if(u){switch(e="Windows",t="",u[1]){case"5.1":t="XP";break;case"6.0":t="Vista";break;case"6.1":t="7";break;case"6.2":t="8";break;case"6.3":t="8.1";break;case"10.0":t="10";break}var k=S.match(/[Win|WOW]([\d]+)/);k&&(t+=" x".concat(k[1]))}else c?(e="macOS",t=S.match(/Mac OS X (.+)/)||"",t&&(t=t[1].replace(/_/g,"."),-1!==t.indexOf(";")&&(t=t.split(";")[0]))):l&&(e="Linux",t=S.match(/Linux (.*)/)||"",t&&(t=t[1],-1!==t.indexOf(";")&&(t=t.split(";")[0])))}else e="Other",t="0",f="unknown";var x="".concat(e," ").concat(t),C=e.toLocaleLowerCase(),E="",A=String(function(){var e=navigator.userAgent,t=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,i=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){var r=new RegExp("MSIE (\\d+\\.\\d+);");r.test(e);var a=parseFloat(RegExp.$1);return a>6?a:6}return n?-1:i?11:-1}());if("-1"!==A)E="IE";else for(var O=["Version","Firefox","Chrome","Edge{0,1}"],j=["Safari","Firefox","Chrome","Edge"],I=0;I<O.length;I++){var P=O[I],M=new RegExp("(".concat(P,")/(\\S*)\\b"));M.test(a)&&(E=j[I],A=a.match(M)[2])}var L,D="undefined"===typeof window.screen.orientation?window.orientation:window.screen.orientation.angle;return L=90===Math.abs(D)?"landscape":"portrait",{deviceBrand:void 0,brand:void 0,deviceModel:n,deviceOrientation:L,model:n,system:x,platform:C,browserName:E.toLocaleLowerCase(),browserVersion:A,language:i,deviceType:f,ua:a,osname:e,osversion:t,theme:r()}}},fb61:function(e,t,n){"use strict";var i=n("bb67"),r=n.n(i);r.a},fc64:function(e,t,n){},fcd1:function(e,t,n){"use strict";n.r(t),n.d(t,"setTabBarItem",(function(){return c})),n.d(t,"setTabBarStyle",(function(){return l})),n.d(t,"hideTabBar",(function(){return d})),n.d(t,"showTabBar",(function(){return f})),n.d(t,"hideTabBarRedDot",(function(){return h})),n.d(t,"showTabBarRedDot",(function(){return p})),n.d(t,"removeTabBarBadge",(function(){return g})),n.d(t,"setTabBarBadge",(function(){return v}));var i=n("f2b3"),r=["text","iconPath","iconfont","selectedIconPath","visible"],a=["color","selectedColor","backgroundColor","borderStyle","midButton"],o=["badge","redDot"],s=["text","selectedText","fontSize","color","selectedColor"];function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=getApp();if(n){var u=!1,c=getCurrentPages();if(c.length?c[c.length-1].$page.meta.isTabBar&&(u=!0):n.$children[0].hasTabBar&&(u=!0),!u)return{errMsg:"".concat(e,":fail not TabBar page")};var l=t.index,d=__uniConfig.tabBar;if(l>=__uniConfig.tabBar.list.length)return{errMsg:"".concat(e,":fail tabbar item not found")};switch(e){case"showTabBar":n.$children[0].hideTabBar=!1;break;case"hideTabBar":n.$children[0].hideTabBar=!0;break;case"setTabBarItem":t.iconfont&&(Object(i["q"])(d.list[l].iconfont,s,t.iconfont),t.iconfont=d.list[l].iconfont),Object(i["q"])(d.list[l],r,t);var f=t.pagePath,h=f&&__uniRoutes.find((function(e){var t=e.path;return t===f}));if(h){var p=h.meta;p.isTabBar=!0,p.tabBarIndex=l,p.isQuit=!0,p.isSet=!0,p.id=l+1;var g=__uniConfig.tabBar;g&&g.list&&g.list[l]&&(g.list[l].pagePath=f.startsWith("/")?f.substring(1):f)}break;case"setTabBarStyle":Object(i["q"])(d,a,t);break;case"showTabBarRedDot":Object(i["q"])(d.list[l],o,{badge:"",redDot:!0});break;case"setTabBarBadge":Object(i["q"])(d.list[l],o,{badge:t.text,redDot:!0});break;case"hideTabBarRedDot":case"removeTabBarBadge":Object(i["q"])(d.list[l],o,{badge:"",redDot:!1});break}}return{}}function c(e){return u("setTabBarItem",e)}function l(e){return u("setTabBarStyle",e)}function d(e){return u("hideTabBar",e)}function f(e){return u("showTabBar",e)}function h(e){return u("hideTabBarRedDot",e)}function p(e){return u("showTabBarRedDot",e)}function g(e){return u("removeTabBarBadge",e)}function v(e){return u("setTabBarBadge",e)}},fdb1:function(e,t,n){},ff28:function(e,t,n){"use strict";var i=n("59dc"),r=n.n(i);r.a},ffdc:function(e,t,n){"use strict";function i(e,t,n,i){var r,a=document.createElement("script"),o=t.callback||"callback",s="__callback"+Date.now()+Math.random().toString().slice(2),u=t.timeout||3e4;function c(){clearTimeout(r),delete window[s],a.remove()}window[s]=function(e){"function"===typeof n&&n(e),c()},a.onerror=function(){"function"===typeof i&&i(),c()},r=setTimeout((function(){"function"===typeof i&&i(),c()}),u),a.src=e+(e.indexOf("?")>=0?"&":"?")+o+"="+s,document.body.appendChild(a)}n.d(t,"a",(function(){return i}))}})}))}).call(this,n("62e4")(e))},"1c59":function(e,t,n){"use strict";var i=n("6d61"),r=n("6566");i("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r)},"1c7e":function(e,t,n){var i=n("b622"),r=i("iterator"),a=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){a=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(u){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(u){}return n}},"1cdc":function(e,t,n){var i=n("342f");e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},"1d02":function(e,t,n){"use strict";var i=n("ebb5"),r=n("a258").findLastIndex,a=i.aTypedArray,o=i.exportTypedArrayMethod;o("findLastIndex",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},"1d1c":function(e,t,n){var i=n("23e7"),r=n("83ab"),a=n("37e8").f;i({target:"Object",stat:!0,forced:Object.defineProperties!==a,sham:!r},{defineProperties:a})},"1d80":function(e,t,n){var i=n("7234"),r=TypeError;e.exports=function(e){if(i(e))throw r("Can't call method on "+e);return e}},"1da1":function(e,t,n){"use strict";function i(e,t,n,i,r,a,o){try{var s=e[a](o),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(i,r)}n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function s(e){i(o,r,a,s,u,"next",e)}function u(e){i(o,r,a,s,u,"throw",e)}s(void 0)}))}},n("d3b7")},"1dde":function(e,t,n){var i=n("d039"),r=n("b622"),a=n("2d00"),o=r("species");e.exports=function(e){return a>=51||!i((function(){var t=[],n=t.constructor={};return n[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1fb5":function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],i=t[1];return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,i=c(e),o=i[0],s=i[1],u=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),l=0,d=s>0?o-4:o;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[l++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,a=[],o=0,s=n-r;o<s;o+=16383)a.push(d(e,o,o+16383>s?s:o+16383));1===r?(t=e[n-1],a.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],a.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return a.join("")};for(var i=[],r=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=o.length;s<u;++s)i[s]=o[s],r[o.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var i=n===t?0:4-n%4;return[n,i]}function l(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[63&e]}function d(e,t,n){for(var i,r=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),r.push(l(i));return r.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},"219c":function(e,t,n){"use strict";var i=n("da84"),r=n("4625"),a=n("d039"),o=n("59ed"),s=n("addb"),u=n("ebb5"),c=n("04d1"),l=n("d998"),d=n("2d00"),f=n("512c"),h=u.aTypedArray,p=u.exportTypedArrayMethod,g=i.Uint16Array,v=g&&r(g.prototype.sort),m=!!v&&!(a((function(){v(new g(2),null)}))&&a((function(){v(new g(2),{})}))),y=!!v&&!a((function(){if(d)return d<74;if(c)return c<67;if(l)return!0;if(f)return f<602;var e,t,n=new g(516),i=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,i[e]=e-2*t+3;for(v(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==i[e])return!0}));p("sort",(function(e){return void 0!==e&&o(e),y?v(this,e):s(h(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!==n?-1:t!==t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!y||m)},2266:function(e,t,n){var i=n("0366"),r=n("c65b"),a=n("825a"),o=n("0d51"),s=n("e95a"),u=n("07fa"),c=n("3a9b"),l=n("9a1f"),d=n("35a1"),f=n("2a62"),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},g=p.prototype;e.exports=function(e,t,n){var v,m,y,b,_,w,T,S=n&&n.that,k=!(!n||!n.AS_ENTRIES),x=!(!n||!n.IS_RECORD),C=!(!n||!n.IS_ITERATOR),E=!(!n||!n.INTERRUPTED),A=i(t,S),O=function(e){return v&&f(v,"normal",e),new p(!0,e)},j=function(e){return k?(a(e),E?A(e[0],e[1],O):A(e[0],e[1])):E?A(e,O):A(e)};if(x)v=e.iterator;else if(C)v=e;else{if(m=d(e),!m)throw h(o(e)+" is not iterable");if(s(m)){for(y=0,b=u(e);b>y;y++)if(_=j(e[y]),_&&c(g,_))return _;return new p(!1)}v=l(e,m)}w=x?e.next:v.next;while(!(T=r(w,v)).done){try{_=j(T.value)}catch(I){f(v,"throw",I)}if("object"==typeof _&&_&&c(g,_))return _}return new p(!1)}},"23cb":function(e,t,n){var i=n("5926"),r=Math.max,a=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):a(n,t)}},"23dc":function(e,t,n){var i=n("d44e");i(Math,"Math",!0)},"23e7":function(e,t,n){var i=n("da84"),r=n("06cf").f,a=n("9112"),o=n("cb2d"),s=n("6374"),u=n("e893"),c=n("94ca");e.exports=function(e,t){var n,l,d,f,h,p,g=e.target,v=e.global,m=e.stat;if(l=v?i:m?i[g]||s(g,{}):(i[g]||{}).prototype,l)for(d in t){if(h=t[d],e.dontCallGetSet?(p=r(l,d),f=p&&p.value):f=l[d],n=c(v?d:g+(m?".":"#")+d,e.forced),!n&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(e.sham||f&&f.sham)&&a(h,"sham",!0),o(l,d,h,e)}}},"241c":function(e,t,n){var i=n("ca84"),r=n("7839"),a=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,a)}},"24fb":function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"===typeof btoa){var r=function(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}(i),a=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(a).concat([r]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"===typeof e&&(e=[[null,e,""]]);var r={};if(i)for(var a=0;a<this.length;a++){var o=this[a][0];null!=o&&(r[o]=!0)}for(var s=0;s<e.length;s++){var u=[].concat(e[s]);i&&r[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},2507:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.forEachMediaGroup=void 0,n("d3b7"),n("159b");t.forEachMediaGroup=function(e,t,n){t.forEach((function(t){for(var i in e.mediaGroups[t])for(var r in e.mediaGroups[t][i]){var a=e.mediaGroups[t][i][r];n(a,t,i,r)}}))}},2532:function(e,t,n){"use strict";var i=n("23e7"),r=n("e330"),a=n("5a34"),o=n("1d80"),s=n("577e"),u=n("ab13"),c=r("".indexOf);i({target:"String",proto:!0,forced:!u("includes")},{includes:function(e){return!!~c(s(o(this)),s(a(e)),arguments.length>1?arguments[1]:void 0)}})},"25a1":function(e,t,n){"use strict";var i=n("ebb5"),r=n("d58f").right,a=i.aTypedArray,o=i.exportTypedArrayMethod;o("reduceRight",(function(e){var t=arguments.length;return r(a(this),e,t,t>1?arguments[1]:void 0)}))},"25f0":function(e,t,n){"use strict";var i=n("5e77").PROPER,r=n("cb2d"),a=n("825a"),o=n("577e"),s=n("d039"),u=n("90d8"),c=RegExp.prototype,l=c["toString"],d=s((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),f=i&&"toString"!=l.name;(d||f)&&r(RegExp.prototype,"toString",(function(){var e=a(this),t=o(e.source),n=o(u(e));return"/"+t+"/"+n}),{unsafe:!0})},2626:function(e,t,n){"use strict";var i=n("d066"),r=n("9bf2"),a=n("b622"),o=n("83ab"),s=a("species");e.exports=function(e){var t=i(e),n=r.f;o&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},"26e9":function(e,t,n){"use strict";var i=n("23e7"),r=n("e330"),a=n("e8b5"),o=r([].reverse),s=[1,2];i({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),o(this)}})},2954:function(e,t,n){"use strict";var i=n("ebb5"),r=n("b6b7"),a=n("d039"),o=n("f36a"),s=i.aTypedArray,u=i.exportTypedArrayMethod,c=a((function(){new Int8Array(1).slice()}));u("slice",(function(e,t){var n=o(s(this),e,t),i=r(this),a=0,u=n.length,c=new i(u);while(u>a)c[a]=n[a++];return c}),c)},"2a62":function(e,t,n){var i=n("c65b"),r=n("825a"),a=n("dc4a");e.exports=function(e,t,n){var o,s;r(e);try{if(o=a(e,"return"),!o){if("throw"===t)throw n;return n}o=i(o,e)}catch(u){s=!0,o=u}if("throw"===t)throw n;if(s)throw o;return r(o),n}},"2b3d":function(e,t,n){n("4002")},"2ba4":function(e,t,n){var i=n("40d5"),r=Function.prototype,a=r.apply,o=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?o.bind(a):function(){return o.apply(a,arguments)})},"2c3e":function(e,t,n){var i=n("83ab"),r=n("9f7f").MISSED_STICKY,a=n("c6b6"),o=n("edd0"),s=n("69f3").get,u=RegExp.prototype,c=TypeError;i&&r&&o(u,"sticky",{configurable:!0,get:function(){if(this!==u){if("RegExp"===a(this))return!!s(this).sticky;throw c("Incompatible receiver, RegExp required")}}})},"2c6b":function(e,t,n){"use strict";n("4d90"),n("7a82");var i=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.toUint8=t.toHexString=t.toBinaryString=t.stringToBytes=t.sliceBytes=t.reverseBytes=t.padStart=t.numberToBytes=t.isTypedArray=t.isArrayBufferView=t.countBytes=t.countBits=t.concatTypedArrays=t.bytesToString=t.bytesToNumber=t.bytesMatch=t.IS_LITTLE_ENDIAN=t.IS_BIG_ENDIAN=t.ENDIANNESS=void 0,n("d401"),n("d3b7"),n("25f0"),n("fb6a"),n("82da"),n("c19f"),n("ace4"),n("5cc6"),n("907a"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("986a"),n("1d02"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),n("a9e3"),n("84c3"),n("4de4"),n("13d5"),n("159b"),n("26e9");var r=i(n("4924")),a=function(e){return e.toString(2).length};t.countBits=a;var o=function(e){return Math.ceil(a(e)/8)};t.countBytes=o;var s=function(e,t,n){return void 0===n&&(n=" "),(function(e,t){var n="";while(t--)n+=e;return n}(n,t)+e.toString()).slice(-t)};t.padStart=s;var u=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer};t.isArrayBufferView=u;var c=function(e){return u(e)};t.isTypedArray=c;var l=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||c(e)||e instanceof ArrayBuffer||(e="number"!==typeof e||"number"===typeof e&&e!==e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))};t.toUint8=l;t.toHexString=function(e){e=l(e);for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16),2,"0");return t};t.toBinaryString=function(e){e=l(e);for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(2),8,"0");return t};var d=r.default.BigInt||Number,f=[d("0x1"),d("0x100"),d("0x10000"),d("0x1000000"),d("0x100000000"),d("0x10000000000"),d("0x1000000000000"),d("0x100000000000000"),d("0x10000000000000000")],h=function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return 255===t[0]?"big":204===t[0]?"little":"unknown"}();t.ENDIANNESS=h;var p="big"===h;t.IS_BIG_ENDIAN=p;var g="little"===h;t.IS_LITTLE_ENDIAN=g;t.bytesToNumber=function(e,t){var n=void 0===t?{}:t,i=n.signed,r=void 0!==i&&i,a=n.le,o=void 0!==a&&a;e=l(e);var s=o?"reduce":"reduceRight",u=e[s]?e[s]:Array.prototype[s],c=u.call(e,(function(t,n,i){var r=o?i:Math.abs(i+1-e.length);return t+d(n)*f[r]}),d(0));if(r){var h=f[e.length]/d(2)-d(1);c=d(c),c>h&&(c-=h,c-=h,c-=d(2))}return Number(c)};t.numberToBytes=function(e,t){var n=void 0===t?{}:t,i=n.le,r=void 0!==i&&i;("bigint"!==typeof e&&"number"!==typeof e||"number"===typeof e&&e!==e)&&(e=0),e=d(e);for(var a=o(e),s=new Uint8Array(new ArrayBuffer(a)),u=0;u<a;u++){var c=r?u:Math.abs(u+1-s.length);s[c]=Number(e/f[u]&d(255)),e<0&&(s[c]=Math.abs(~s[c]),s[c]-=0===u?1:2)}return s};t.bytesToString=function(e){if(!e)return"";e=Array.prototype.slice.call(e);var t=String.fromCharCode.apply(null,l(e));try{return decodeURIComponent(escape(t))}catch(n){}return t};t.stringToBytes=function(e,t){if("string"!==typeof e&&e&&"function"===typeof e.toString&&(e=e.toString()),"string"!==typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var n=new Uint8Array(e.length),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n};t.concatTypedArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t=t.filter((function(e){return e&&(e.byteLength||e.length)&&"string"!==typeof e})),t.length<=1)return l(t[0]);var i=t.reduce((function(e,t,n){return e+(t.byteLength||t.length)}),0),r=new Uint8Array(i),a=0;return t.forEach((function(e){e=l(e),r.set(e,a),a+=e.byteLength})),r};t.bytesMatch=function(e,t,n){var i=void 0===n?{}:n,r=i.offset,a=void 0===r?0:r,o=i.mask,s=void 0===o?[]:o;e=l(e),t=l(t);var u=t.every?t.every:Array.prototype.every;return t.length&&e.length-a>=t.length&&u.call(t,(function(t,n){var i=s[n]?s[n]&e[a+n]:e[a+n];return t===i}))};t.sliceBytes=function(e,t,n){return Uint8Array.prototype.slice?Uint8Array.prototype.slice.call(e,t,n):new Uint8Array(Array.prototype.slice.call(e,t,n))};t.reverseBytes=function(e){return e.reverse?e.reverse():Array.prototype.reverse.call(e)}},"2ca0":function(e,t,n){"use strict";var i=n("23e7"),r=n("4625"),a=n("06cf").f,o=n("50c4"),s=n("577e"),u=n("5a34"),c=n("1d80"),l=n("ab13"),d=n("c430"),f=r("".startsWith),h=r("".slice),p=Math.min,g=l("startsWith"),v=!d&&!g&&!!function(){var e=a(String.prototype,"startsWith");return e&&!e.writable}();i({target:"String",proto:!0,forced:!v&&!g},{startsWith:function(e){var t=s(c(this));u(e);var n=o(p(arguments.length>1?arguments[1]:void 0,t.length)),i=s(e);return f?f(t,i,n):h(t,n,n+i.length)===i}})},"2cc7":function(e,t){e.exports=function(e,t){var n,i=null;try{n=JSON.parse(e,t)}catch(r){i=r}return[i,n]}},"2cf4":function(e,t,n){var i,r,a,o,s=n("da84"),u=n("2ba4"),c=n("0366"),l=n("1626"),d=n("1a2d"),f=n("d039"),h=n("1be4"),p=n("f36a"),g=n("cc12"),v=n("d6d6"),m=n("1cdc"),y=n("605d"),b=s.setImmediate,_=s.clearImmediate,w=s.process,T=s.Dispatch,S=s.Function,k=s.MessageChannel,x=s.String,C=0,E={};try{i=s.location}catch(P){}var A=function(e){if(d(E,e)){var t=E[e];delete E[e],t()}},O=function(e){return function(){A(e)}},j=function(e){A(e.data)},I=function(e){s.postMessage(x(e),i.protocol+"//"+i.host)};b&&_||(b=function(e){v(arguments.length,1);var t=l(e)?e:S(e),n=p(arguments,1);return E[++C]=function(){u(t,void 0,n)},r(C),C},_=function(e){delete E[e]},y?r=function(e){w.nextTick(O(e))}:T&&T.now?r=function(e){T.now(O(e))}:k&&!m?(a=new k,o=a.port2,a.port1.onmessage=j,r=c(o.postMessage,o)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&i&&"file:"!==i.protocol&&!f(I)?(r=I,s.addEventListener("message",j,!1)):r="onreadystatechange"in g("script")?function(e){h.appendChild(g("script"))["onreadystatechange"]=function(){h.removeChild(this),A(e)}}:function(e){setTimeout(O(e),0)}),e.exports={set:b,clear:_}},"2d00":function(e,t,n){var i,r,a=n("da84"),o=n("342f"),s=a.process,u=a.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=l.split("."),r=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&o&&(i=o.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/),i&&(r=+i[1]))),e.exports=r},3280:function(e,t,n){"use strict";var i=n("ebb5"),r=n("2ba4"),a=n("e58c"),o=i.aTypedArray,s=i.exportTypedArrayMethod;s("lastIndexOf",(function(e){var t=arguments.length;return r(a,o(this),t>1?[e,arguments[1]]:[e])}))},3410:function(e,t,n){var i=n("23e7"),r=n("d039"),a=n("7b0b"),o=n("e163"),s=n("e177"),u=r((function(){o(1)}));i({target:"Object",stat:!0,forced:u,sham:!s},{getPrototypeOf:function(e){return o(a(e))}})},"342f":function(e,t,n){var i=n("d066");e.exports=i("navigator","userAgent")||""},3511:function(e,t){var n=TypeError;e.exports=function(e){if(e>9007199254740991)throw n("Maximum allowed index exceeded");return e}},3529:function(e,t,n){"use strict";var i=n("23e7"),r=n("c65b"),a=n("59ed"),o=n("f069"),s=n("e667"),u=n("2266"),c=n("5eed");i({target:"Promise",stat:!0,forced:c},{race:function(e){var t=this,n=o.f(t),i=n.reject,c=s((function(){var o=a(t.resolve);u(e,(function(e){r(o,t,e).then(n.resolve,i)}))}));return c.error&&i(c.value),n.promise}})},"35a1":function(e,t,n){var i=n("f5df"),r=n("dc4a"),a=n("7234"),o=n("3f8c"),s=n("b622"),u=s("iterator");e.exports=function(e){if(!a(e))return r(e,u)||r(e,"@@iterator")||o[i(e)]}},"367c":function(e,t,n){"use strict";n("4d90"),n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.parseTracks=t.parseMediaInfo=t.parseDescriptors=t.findNamedBox=t.findBox=t.buildFrameTable=t.addSampleDescription=void 0,n("d81d"),n("14d9"),n("5377"),n("fb6a"),n("c975"),n("4de4"),n("d3b7"),n("d401"),n("25f0"),n("159b"),n("ace4");var i,r=n("2c6b"),a=n("bff6"),o=n("cf986"),s=function(e){return"string"===typeof e?(0,r.stringToBytes)(e):e},u=function(e){e=(0,r.toUint8)(e);var t=[],n=0;while(e.length>n){var a=e[n],o=0,s=0;s++;var u=e[s];s++;while(128&u)o=(127&u)<<7,u=e[s],s++;o+=127&u;for(var c=0;c<i.length;c++){var l=i[c],d=l.id,f=l.parser;if(a===d){t.push(f(e.subarray(s,s+o)));break}}n+=o+s}return t};t.parseDescriptors=u,i=[{id:3,parser:function(e){var t={tag:3,id:e[0]<<8|e[1],flags:e[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&t.flags&&(t.dependsOnEsId=e[t.size]<<8|e[t.size+1],t.size+=2),64&t.flags){var n=e[t.size];t.url=(0,r.bytesToString)(e.subarray(t.size+1,t.size+1+n)),t.size+=n}return 32&t.flags&&(t.ocrEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.descriptors=u(e.subarray(t.size))||[],t}},{id:4,parser:function(e){var t={tag:4,oti:e[0],streamType:e[1],bufferSize:e[2]<<16|e[3]<<8|e[4],maxBitrate:e[5]<<24|e[6]<<16|e[7]<<8|e[8],avgBitrate:e[9]<<24|e[10]<<16|e[11]<<8|e[12],descriptors:u(e.subarray(13))};return t}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var c=function e(t,n,i){void 0===i&&(i=!1),n=function(e){return Array.isArray(e)?e.map((function(e){return s(e)})):[s(e)]}(n),t=(0,r.toUint8)(t);var a=[];if(!n.length)return a;var o=0;while(o<t.length){var u=(t[o]<<24|t[o+1]<<16|t[o+2]<<8|t[o+3])>>>0,c=t.subarray(o+4,o+8);if(0===u)break;var l=o+u;if(l>t.length){if(i)break;l=t.length}var d=t.subarray(o+8,l);(0,r.bytesMatch)(c,n[0])&&(1===n.length?a.push(d):a.push.apply(a,e(d,n.slice(1),i))),o=l}return a};t.findBox=c;var l=function(e,t){if(t=s(t),!t.length)return e.subarray(e.length);var n=0;while(n<e.length){if((0,r.bytesMatch)(e.subarray(n,n+t.length),t)){var i=(e[n-4]<<24|e[n-3]<<16|e[n-2]<<8|e[n-1])>>>0,a=i>1?n+i:e.byteLength;return e.subarray(n+4,a)}n++}return e.subarray(e.length)};t.findNamedBox=l;var d=function(e,t,n){void 0===t&&(t=4),void 0===n&&(n=function(e){return(0,r.bytesToNumber)(e)});var i=[];if(!e||!e.length)return i;for(var a=(0,r.bytesToNumber)(e.subarray(4,8)),o=8;a;o+=t,a--)i.push(n(e.subarray(o,o+t)));return i},f=function(e,t){for(var n=d(c(e,["stss"])[0]),i=d(c(e,["stco"])[0]),a=d(c(e,["stts"])[0],8,(function(e){return{sampleCount:(0,r.bytesToNumber)(e.subarray(0,4)),sampleDelta:(0,r.bytesToNumber)(e.subarray(4,8))}})),o=d(c(e,["stsc"])[0],12,(function(e){return{firstChunk:(0,r.bytesToNumber)(e.subarray(0,4)),samplesPerChunk:(0,r.bytesToNumber)(e.subarray(4,8)),sampleDescriptionIndex:(0,r.bytesToNumber)(e.subarray(8,12))}})),s=c(e,["stsz"])[0],u=d(s&&s.length&&s.subarray(4)||null),l=[],f=0;f<i.length;f++){for(var h=void 0,p=0;p<o.length;p++){var g=o[p],v=f+1>=g.firstChunk&&(p+1>=o.length||f+1<o[p+1].firstChunk);if(v){h=g.samplesPerChunk;break}}for(var m=i[f],y=0;y<h;y++){var b=u[l.length],_=!n.length;n.length&&-1!==n.indexOf(l.length+1)&&(_=!0);for(var w={keyframe:_,start:m,end:m+b},T=0;T<a.length;T++){var S=a[T],k=S.sampleCount,x=S.sampleDelta;if(l.length<=k){var C=l.length?l[l.length-1].timestamp:0;w.timestamp=C+x/t*1e3,w.duration=x;break}}l.push(w),m+=b}}return l};t.buildFrameTable=f;var h=function(e,t){var n=(0,r.bytesToString)(t.subarray(0,4));if("video"===e.type?(e.info=e.info||{},e.info.width=t[28]<<8|t[29],e.info.height=t[30]<<8|t[31]):"audio"===e.type&&(e.info=e.info||{},e.info.channels=t[20]<<8|t[21],e.info.bitDepth=t[22]<<8|t[23],e.info.sampleRate=t[28]<<8|t[29]),"avc1"===n){var i=l(t,"avcC");n+="."+(0,a.getAvcCodec)(i),e.info.avcC=i}else if("hvc1"===n||"hev1"===n)n+="."+(0,a.getHvcCodec)(l(t,"hvcC"));else if("mp4a"===n||"mp4v"===n){var s=l(t,"esds"),c=u(s.subarray(4))[0],d=c&&c.descriptors.filter((function(e){var t=e.tag;return 4===t}))[0];d?(n+="."+(0,r.toHexString)(d.oti),64===d.oti?n+="."+(d.descriptors[0].bytes[0]>>3).toString():32===d.oti?n+="."+d.descriptors[0].bytes[4].toString():221===d.oti&&(n="vorbis")):"audio"===e.type?n+=".40.2":n+=".20.9"}else if("av01"===n)n+="."+(0,a.getAv1Codec)(l(t,"av1C"));else if("vp09"===n){var f=l(t,"vpcC"),h=f[0],p=f[1],g=f[2]>>4,v=(15&f[2])>>1,m=(15&f[2])>>3,y=f[3],b=f[4],_=f[5];n+="."+(0,r.padStart)(h,2,"0"),n+="."+(0,r.padStart)(p,2,"0"),n+="."+(0,r.padStart)(g,2,"0"),n+="."+(0,r.padStart)(v,2,"0"),n+="."+(0,r.padStart)(y,2,"0"),n+="."+(0,r.padStart)(b,2,"0"),n+="."+(0,r.padStart)(_,2,"0"),n+="."+(0,r.padStart)(m,2,"0")}else if("theo"===n)n="theora";else if("spex"===n)n="speex";else if(".mp3"===n)n="mp4a.40.34";else if("msVo"===n)n="vorbis";else if("Opus"===n){n="opus";var w=l(t,"dOps");e.info.opus=(0,o.parseOpusHead)(w),e.info.codecDelay=65e5}else n=n.toLowerCase();e.codec=n};t.addSampleDescription=h;t.parseTracks=function(e,t){void 0===t&&(t=!0),e=(0,r.toUint8)(e);var n=c(e,["moov","trak"],!0),i=[];return n.forEach((function(e){var n={bytes:e},a=c(e,["mdia"])[0],o=c(a,["hdlr"])[0],s=(0,r.bytesToString)(o.subarray(8,12));n.type="soun"===s?"audio":"vide"===s?"video":s;var u=c(e,["tkhd"])[0];if(u){var l=new DataView(u.buffer,u.byteOffset,u.byteLength),d=l.getUint8(0);n.number=0===d?l.getUint32(12):l.getUint32(20)}var p=c(a,["mdhd"])[0];if(p){var g=p[0],v=0===g?12:20;n.timescale=(p[v]<<24|p[v+1]<<16|p[v+2]<<8|p[v+3])>>>0}var m=c(a,["minf","stbl"])[0],y=c(m,["stsd"])[0],b=(0,r.bytesToNumber)(y.subarray(4,8)),_=8;while(b--){var w=(0,r.bytesToNumber)(y.subarray(_,_+4)),T=y.subarray(_+4,_+4+w);h(n,T),_+=4+w}t&&(n.frameTable=f(m,n.timescale)),i.push(n)})),i};t.parseMediaInfo=function(e){var t=c(e,["moov","mvhd"],!0)[0];if(t&&t.length){var n={};return 1===t[0]?(n.timestampScale=(0,r.bytesToNumber)(t.subarray(20,24)),n.duration=(0,r.bytesToNumber)(t.subarray(24,32))):(n.timestampScale=(0,r.bytesToNumber)(t.subarray(12,16)),n.duration=(0,r.bytesToNumber)(t.subarray(16,20))),n.bytes=t,n}}},"36e8":function(e,t,n){n("ac1f"),n("00b4"),n("5319");var i=n("7342"),r=n("cee1"),a=n("950f"),o=n("a54a"),s=r.DOMImplementation,u=i.NAMESPACE,c=o.ParseError,l=o.XMLReader;function d(e){this.options=e||{locator:{}}}function f(){this.cdata=!1}function h(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function p(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function g(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function v(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}d.prototype.parseFromString=function(e,t){var n=this.options,i=new l,r=n.domBuilder||new f,o=n.errorHandler,s=n.locator,c=n.xmlns||{},d=/\/x?html?$/.test(t),h=d?a.HTML_ENTITIES:a.XML_ENTITIES;return s&&r.setDocumentLocator(s),i.errorHandler=function(e,t,n){if(!e){if(t instanceof f)return t;e=t}var i={},r=e instanceof Function;function a(t){var a=e[t];!a&&r&&(a=2==e.length?function(n){e(t,n)}:e),i[t]=a&&function(e){a("[xmldom "+t+"]\t"+e+p(n))}||function(){}}return n=n||{},a("warning"),a("error"),a("fatalError"),i}(o,r,s),i.domBuilder=n.domBuilder||r,d&&(c[""]=u.HTML),c.xml=c.xml||u.XML,e&&"string"===typeof e?i.parse(e,c,h):i.errorHandler.error("invalid doc source"),r.doc},f.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,i){var r=this.doc,a=r.createElementNS(e,n||t),o=i.length;v(this,a),this.currentElement=a,this.locator&&h(this.locator,a);for(var s=0;s<o;s++){e=i.getURI(s);var u=i.getValue(s),c=(n=i.getQName(s),r.createAttributeNS(e,n));this.locator&&h(i.getLocator(s),c),c.value=c.nodeValue=u,a.setAttributeNode(c)}},endElement:function(e,t,n){var i=this.currentElement;i.tagName;this.currentElement=i.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&h(this.locator,n),v(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=g.apply(this,arguments),e){if(this.cdata)var i=this.doc.createCDATASection(e);else i=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(e)&&this.doc.appendChild(i),this.locator&&h(this.locator,i)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=g.apply(this,arguments);var i=this.doc.createComment(e);this.locator&&h(this.locator,i),v(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var r=i.createDocumentType(e,t,n);this.locator&&h(this.locator,r),v(this,r),this.doc.doctype=r}},warning:function(e){console.warn("[xmldom warning]\t"+e,p(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,p(this.locator))},fatalError:function(e){throw new c(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){f.prototype[e]=function(){return null}})),t.__DOMHandler=f,t.DOMParser=d,t.DOMImplementation=r.DOMImplementation,t.XMLSerializer=r.XMLSerializer},"37dc":function(e,t,n){"use strict";(function(e){n("7a82");var i=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.LOCALE_ZH_HANT=t.LOCALE_ZH_HANS=t.LOCALE_FR=t.LOCALE_ES=t.LOCALE_EN=t.I18n=t.Formatter=void 0,t.compileI18nJsonStr=function(e,t){var n=t.locale,i=t.locales,r=t.delimiters;if(!x(e,r))return e;S||(S=new d);var a=[];Object.keys(i).forEach((function(e){e!==n&&a.push({locale:e,values:i[e]})})),a.unshift({locale:n,values:i[n]});try{return JSON.stringify(E(JSON.parse(e),a,r),null,2)}catch(o){}return e},t.hasI18nJson=function e(t,n){S||(S=new d);return A(t,(function(t,i){var r=t[i];return k(r)?!!x(r,n)||void 0:e(r,n)}))},t.initVueI18n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if("string"!==typeof e){var r=[t,e];e=r[0],t=r[1]}"string"!==typeof e&&(e=T());"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||"en");var a=new _({locale:e,fallbackLocale:n,messages:t,watcher:i}),o=function(e,t){if("function"!==typeof getApp)o=function(e,t){return a.t(e,t)};else{var n=!1;o=function(e,t){var i=getApp().$vm;return i&&(i.$locale,n||(n=!0,w(i,a))),a.t(e,t)}}return o(e,t)};return{i18n:a,f:function(e,t,n){return a.f(e,t,n)},t:function(e,t){return o(e,t)},add:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return a.add(e,t,n)},watch:function(e){return a.watchLocale(e)},getLocale:function(){return a.getLocale()},setLocale:function(e){return a.setLocale(e)}}},t.isI18nStr=x,t.isString=void 0,t.normalizeLocale=b,t.parseI18nJson=function e(t,n,i){S||(S=new d);return A(t,(function(t,r){var a=t[r];k(a)?x(a,i)&&(t[r]=C(a,n,i)):e(a,n,i)})),t},t.resolveLocale=function(e){return function(t){return t?(t=b(t)||t,function(e){var t=[],n=e.split("-");while(n.length)t.push(n.join("-")),n.pop();return t}(t).find((function(t){return e.indexOf(t)>-1}))):t}},n("14d9"),n("ac1f"),n("00b4"),n("e25e"),n("99af"),n("7db0"),n("d3b7"),n("c975"),n("5319"),n("498a"),n("159b"),n("a434"),n("b64b"),n("3c65"),n("e9c4"),n("ddb0");var r=i(n("3835")),a=i(n("d4ec")),o=i(n("bee2")),s=i(n("53ca")),u=Array.isArray,c=function(e){return null!==e&&"object"===(0,s.default)(e)},l=["{","}"],d=function(){function e(){(0,a.default)(this,e),this._caches=Object.create(null)}return(0,o.default)(e,[{key:"interpolate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l;if(!t)return[e];var i=this._caches[e];return i||(i=p(e,n),this._caches[e]=i),g(i,t)}}]),e}();t.Formatter=d;var f=/^(?:\d)+/,h=/^(?:\w)+/;function p(e,t){var n=(0,r.default)(t,2),i=n[0],a=n[1],o=[],s=0,u="";while(s<e.length){var c=e[s++];if(c===i){u&&o.push({type:"text",value:u}),u="";var l="";c=e[s++];while(void 0!==c&&c!==a)l+=c,c=e[s++];var d=c===a,p=f.test(l)?"list":d&&h.test(l)?"named":"unknown";o.push({value:l,type:p})}else u+=c}return u&&o.push({type:"text",value:u}),o}function g(e,t){var n=[],i=0,r=u(t)?"list":c(t)?"named":"unknown";if("unknown"===r)return n;while(i<e.length){var a=e[i];switch(a.type){case"text":n.push(a.value);break;case"list":n.push(t[parseInt(a.value,10)]);break;case"named":"named"===r&&n.push(t[a.value]);break;case"unknown":0;break}i++}return n}t.LOCALE_ZH_HANS="zh-Hans";t.LOCALE_ZH_HANT="zh-Hant";t.LOCALE_EN="en";t.LOCALE_FR="fr";t.LOCALE_ES="es";var v=Object.prototype.hasOwnProperty,m=function(e,t){return v.call(e,t)},y=new d;function b(e,t){if(e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),0===e.indexOf("zh"))return e.indexOf("-hans")>-1?"zh-Hans":e.indexOf("-hant")>-1||function(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}(e,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var n=function(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}(e,["en","fr","es"]);return n||void 0}}var _=function(){function e(t){var n=t.locale,i=t.fallbackLocale,r=t.messages,o=t.watcher,s=t.formater;(0,a.default)(this,e),this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],i&&(this.fallbackLocale=i),this.formater=s||y,this.messages=r||{},this.setLocale(n||"en"),o&&this.watchLocale(o)}return(0,o.default)(e,[{key:"setLocale",value:function(e){var t=this,n=this.locale;this.locale=b(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],n!==this.locale&&this.watchers.forEach((function(e){e(t.locale,n)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(e){var t=this,n=this.watchers.push(e)-1;return function(){t.watchers.splice(n,1)}}},{key:"add",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this.messages[e];i?n?Object.assign(i,t):Object.keys(t).forEach((function(e){m(i,e)||(i[e]=t[e])})):this.messages[e]=t}},{key:"f",value:function(e,t,n){return this.formater.interpolate(e,t,n).join("")}},{key:"t",value:function(e,t,n){var i=this.message;return"string"===typeof t?(t=b(t,this.messages),t&&(i=this.messages[t])):n=t,m(i,e)?this.formater.interpolate(i[e],n).join(""):(console.warn("Cannot translate the value of keypath ".concat(e,". Use the value of keypath as default.")),e)}}]),e}();function w(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function T(){return"undefined"!==typeof uni&&uni.getLocale?uni.getLocale():"undefined"!==typeof e&&e.getLocale?e.getLocale():"en"}t.I18n=_;var S,k=function(e){return"string"===typeof e};function x(e,t){return e.indexOf(t[0])>-1}function C(e,t,n){return S.interpolate(e,t,n).join("")}function E(e,t,n){return A(e,(function(e,i){(function(e,t,n,i){var r=e[t];if(k(r)){if(x(r,i)&&(e[t]=C(r,n[0].values,i),n.length>1)){var a=e[t+"Locales"]={};n.forEach((function(e){a[e.locale]=C(r,e.values,i)}))}}else E(r,n,i)})(e,i,t,n)})),e}function A(e,t){if(u(e)){for(var n=0;n<e.length;n++)if(t(e,n))return!0}else if(c(e))for(var i in e)if(t(e,i))return!0;return!1}t.isString=k}).call(this,n("c8ba"))},"37e8":function(e,t,n){var i=n("83ab"),r=n("aed9"),a=n("9bf2"),o=n("825a"),s=n("fc6a"),u=n("df75");t.f=i&&!r?Object.defineProperties:function(e,t){o(e);var n,i=s(t),r=u(t),c=r.length,l=0;while(c>l)a.f(e,n=r[l++],i[n]);return e}},3835:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,i.default)(e)||(0,r.default)(e,t)||(0,a.default)(e,t)||(0,o.default)()};var i=s(n("0d21")),r=s(n("09f0")),a=s(n("06c5")),o=s(n("3d8c"));function s(e){return e&&e.__esModule?e:{default:e}}},"3a34":function(e,t,n){"use strict";var i=n("83ab"),r=n("e8b5"),a=TypeError,o=Object.getOwnPropertyDescriptor,s=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(r(e)&&!o(e,"length").writable)throw a("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},"3a7b":function(e,t,n){"use strict";var i=n("ebb5"),r=n("b727").findIndex,a=i.aTypedArray,o=i.exportTypedArrayMethod;o("findIndex",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},"3a9b":function(e,t,n){var i=n("e330");e.exports=i({}.isPrototypeOf)},"3bbe":function(e,t,n){var i=n("1626"),r=String,a=TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw a("Can't set "+r(e)+" as a prototype")}},"3c5d":function(e,t,n){"use strict";var i=n("da84"),r=n("c65b"),a=n("ebb5"),o=n("07fa"),s=n("182d"),u=n("7b0b"),c=n("d039"),l=i.RangeError,d=i.Int8Array,f=d&&d.prototype,h=f&&f.set,p=a.aTypedArray,g=a.exportTypedArrayMethod,v=!c((function(){var e=new Uint8ClampedArray(2);return r(h,e,{length:1,0:3},1),3!==e[1]})),m=v&&a.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));g("set",(function(e){p(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=u(e);if(v)return r(h,this,n,t);var i=this.length,a=o(n),c=0;if(a+t>i)throw l("Wrong length");while(c<a)this[t+c]=n[c++]}),!v||m)},"3c65":function(e,t,n){"use strict";var i=n("23e7"),r=n("7b0b"),a=n("07fa"),o=n("3a34"),s=n("083a"),u=n("3511"),c=1!==[].unshift(0),l=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}();i({target:"Array",proto:!0,arity:1,forced:c||l},{unshift:function(e){var t=r(this),n=a(t),i=arguments.length;if(i){u(n+i);var c=n;while(c--){var l=c+i;c in t?t[l]=t[c]:s(t,l)}for(var d=0;d<i;d++)t[d]=arguments[d]}return o(t,n+i)}})},"3c96":function(e,t,n){n("d9e2"),n("d401"),e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports["default"]=e.exports},"3ca3":function(e,t,n){"use strict";var i=n("6547").charAt,r=n("577e"),a=n("69f3"),o=n("c6d2"),s=n("4754"),u=a.set,c=a.getterFor("String Iterator");o(String,"String",(function(e){u(this,{type:"String Iterator",string:r(e),index:0})}),(function(){var e,t=c(this),n=t.string,r=t.index;return r>=n.length?s(void 0,!0):(e=i(n,r),t.index+=e.length,s(e,!1))}))},"3d1d":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.isLikelyFmp4MediaSegment=t.isLikely=t.detectContainerForBytes=void 0,n("99af"),n("4de4"),n("d3b7"),n("b64b"),n("159b");var i=n("2c6b"),r=n("367c"),a=n("b9b8"),o=n("a347"),s=n("4265"),u={webm:(0,i.toUint8)([119,101,98,109]),matroska:(0,i.toUint8)([109,97,116,114,111,115,107,97]),flac:(0,i.toUint8)([102,76,97,67]),ogg:(0,i.toUint8)([79,103,103,83]),ac3:(0,i.toUint8)([11,119]),riff:(0,i.toUint8)([82,73,70,70]),avi:(0,i.toUint8)([65,86,73]),wav:(0,i.toUint8)([87,65,86,69]),"3gp":(0,i.toUint8)([102,116,121,112,51,103]),mp4:(0,i.toUint8)([102,116,121,112]),fmp4:(0,i.toUint8)([115,116,121,112]),mov:(0,i.toUint8)([102,116,121,112,113,116]),moov:(0,i.toUint8)([109,111,111,118]),moof:(0,i.toUint8)([109,111,111,102])},c={aac:function(e){var t=(0,o.getId3Offset)(e);return(0,i.bytesMatch)(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=(0,o.getId3Offset)(e);return(0,i.bytesMatch)(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=(0,a.findEbml)(e,[a.EBML_TAGS.EBML,a.EBML_TAGS.DocType])[0];return(0,i.bytesMatch)(t,u.webm)},mkv:function(e){var t=(0,a.findEbml)(e,[a.EBML_TAGS.EBML,a.EBML_TAGS.DocType])[0];return(0,i.bytesMatch)(t,u.matroska)},mp4:function(e){return!c["3gp"](e)&&!c.mov(e)&&(!(!(0,i.bytesMatch)(e,u.mp4,{offset:4})&&!(0,i.bytesMatch)(e,u.fmp4,{offset:4}))||(!(!(0,i.bytesMatch)(e,u.moof,{offset:4})&&!(0,i.bytesMatch)(e,u.moov,{offset:4}))||void 0))},mov:function(e){return(0,i.bytesMatch)(e,u.mov,{offset:4})},"3gp":function(e){return(0,i.bytesMatch)(e,u["3gp"],{offset:4})},ac3:function(e){var t=(0,o.getId3Offset)(e);return(0,i.bytesMatch)(e,u.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];var t=0;while(t+188<e.length&&t<188){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=(0,o.getId3Offset)(e);return(0,i.bytesMatch)(e,u.flac,{offset:t})},ogg:function(e){return(0,i.bytesMatch)(e,u.ogg)},avi:function(e){return(0,i.bytesMatch)(e,u.riff)&&(0,i.bytesMatch)(e,u.avi,{offset:8})},wav:function(e){return(0,i.bytesMatch)(e,u.riff)&&(0,i.bytesMatch)(e,u.wav,{offset:8})},h264:function(e){return(0,s.findH264Nal)(e,7,3).length},h265:function(e){return(0,s.findH265Nal)(e,[32,33],3).length}},l=Object.keys(c).filter((function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e})).concat(["ts","h264","h265"]);l.forEach((function(e){var t=c[e];c[e]=function(e){return t((0,i.toUint8)(e))}}));var d=c;t.isLikely=d;t.detectContainerForBytes=function(e){e=(0,i.toUint8)(e);for(var t=0;t<l.length;t++){var n=l[t];if(d[n](e))return n}return""};t.isLikelyFmp4MediaSegment=function(e){return(0,r.findBox)(e,["moof"]).length>0}},"3d8c":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},n("d9e2"),n("d401")},"3f8c":function(e,t){e.exports={}},"3fcc":function(e,t,n){"use strict";var i=n("ebb5"),r=n("b727").map,a=n("b6b7"),o=i.aTypedArray,s=i.exportTypedArrayMethod;s("map",(function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(a(e))(t)}))}))},4002:function(e,t,n){"use strict";n("3ca3");var i,r=n("23e7"),a=n("83ab"),o=n("f354"),s=n("da84"),u=n("0366"),c=n("e330"),l=n("cb2d"),d=n("edd0"),f=n("19aa"),h=n("1a2d"),p=n("60da"),g=n("4df4"),v=n("4dae"),m=n("6547").codeAt,y=n("5fb2"),b=n("577e"),_=n("d44e"),w=n("d6d6"),T=n("5352"),S=n("69f3"),k=S.set,x=S.getterFor("URL"),C=T.URLSearchParams,E=T.getState,A=s.URL,O=s.TypeError,j=s.parseInt,I=Math.floor,P=Math.pow,M=c("".charAt),L=c(/./.exec),D=c([].join),R=c(1..toString),N=c([].pop),B=c([].push),U=c("".replace),F=c([].shift),$=c("".split),H=c("".slice),V=c("".toLowerCase),z=c([].unshift),q=/[a-z]/i,W=/[\d+-.a-z]/i,G=/\d/,Y=/^0x/i,X=/^[0-7]+$/,K=/^\d+$/,Q=/^[\da-f]+$/i,J=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Z=/[\0\t\n\r #/:<>?@[\\\]^|]/,ee=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,te=/[\t\n\r]/g,ne=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)z(t,e%256),e=I(e/256);return D(t,".")}if("object"==typeof e){for(t="",i=function(e){for(var t=null,n=1,i=null,r=0,a=0;a<8;a++)0!==e[a]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=a),++r);return r>n&&(t=i,n=r),t}(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=R(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ie={},re=p({},ie,{" ":1,'"':1,"<":1,">":1,"`":1}),ae=p({},re,{"#":1,"?":1,"{":1,"}":1}),oe=p({},ae,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),se=function(e,t){var n=m(e,0);return n>32&&n<127&&!h(t,e)?e:encodeURIComponent(e)},ue={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ce=function(e,t){var n;return 2==e.length&&L(q,M(e,0))&&(":"==(n=M(e,1))||!t&&"|"==n)},le=function(e){var t;return e.length>1&&ce(H(e,0,2))&&(2==e.length||"/"===(t=M(e,2))||"\\"===t||"?"===t||"#"===t)},de=function(e){return"."===e||"%2e"===V(e)},fe=function(e){return e=V(e),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},he={},pe={},ge={},ve={},me={},ye={},be={},_e={},we={},Te={},Se={},ke={},xe={},Ce={},Ee={},Ae={},Oe={},je={},Ie={},Pe={},Me={},Le=function(e,t,n){var i,r,a,o=b(e);if(t){if(r=this.parse(o),r)throw O(r);this.searchParams=null}else{if(void 0!==n&&(i=new Le(n,!0)),r=this.parse(o,null,i),r)throw O(r);a=E(new C),a.bindURL(this),this.searchParams=a}};Le.prototype={type:"URL",parse:function(e,t,n){var r,a,o,s,u=this,c=t||he,l=0,d="",f=!1,p=!1,m=!1;e=b(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=U(e,ee,"")),e=U(e,te,""),r=g(e);while(l<=r.length){switch(a=r[l],c){case he:if(!a||!L(q,a)){if(t)return"Invalid scheme";c=ge;continue}d+=V(a),c=pe;break;case pe:if(a&&(L(W,a)||"+"==a||"-"==a||"."==a))d+=V(a);else{if(":"!=a){if(t)return"Invalid scheme";d="",c=ge,l=0;continue}if(t&&(u.isSpecial()!=h(ue,d)||"file"==d&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=d,t)return void(u.isSpecial()&&ue[u.scheme]==u.port&&(u.port=null));d="","file"==u.scheme?c=Ce:u.isSpecial()&&n&&n.scheme==u.scheme?c=ve:u.isSpecial()?c=_e:"/"==r[l+1]?(c=me,l++):(u.cannotBeABaseURL=!0,B(u.path,""),c=Ie)}break;case ge:if(!n||n.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"==a){u.scheme=n.scheme,u.path=v(n.path),u.query=n.query,u.fragment="",u.cannotBeABaseURL=!0,c=Me;break}c="file"==n.scheme?Ce:ye;continue;case ve:if("/"!=a||"/"!=r[l+1]){c=ye;continue}c=we,l++;break;case me:if("/"==a){c=Te;break}c=je;continue;case ye:if(u.scheme=n.scheme,a==i)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=v(n.path),u.query=n.query;else if("/"==a||"\\"==a&&u.isSpecial())c=be;else if("?"==a)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=v(n.path),u.query="",c=Pe;else{if("#"!=a){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=v(n.path),u.path.length--,c=je;continue}u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=v(n.path),u.query=n.query,u.fragment="",c=Me}break;case be:if(!u.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,c=je;continue}c=Te}else c=we;break;case _e:if(c=we,"/"!=a||"/"!=M(d,l+1))continue;l++;break;case we:if("/"!=a&&"\\"!=a){c=Te;continue}break;case Te:if("@"==a){f&&(d="%40"+d),f=!0,o=g(d);for(var y=0;y<o.length;y++){var _=o[y];if(":"!=_||m){var w=se(_,oe);m?u.password+=w:u.username+=w}else m=!0}d=""}else if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&u.isSpecial()){if(f&&""==d)return"Invalid authority";l-=g(d).length+1,d="",c=Se}else d+=a;break;case Se:case ke:if(t&&"file"==u.scheme){c=Ae;continue}if(":"!=a||p){if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&u.isSpecial()){if(u.isSpecial()&&""==d)return"Invalid host";if(t&&""==d&&(u.includesCredentials()||null!==u.port))return;if(s=u.parseHost(d),s)return s;if(d="",c=Oe,t)return;continue}"["==a?p=!0:"]"==a&&(p=!1),d+=a}else{if(""==d)return"Invalid host";if(s=u.parseHost(d),s)return s;if(d="",c=xe,t==ke)return}break;case xe:if(!L(G,a)){if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&u.isSpecial()||t){if(""!=d){var T=j(d,10);if(T>65535)return"Invalid port";u.port=u.isSpecial()&&T===ue[u.scheme]?null:T,d=""}if(t)return;c=Oe;continue}return"Invalid port"}d+=a;break;case Ce:if(u.scheme="file","/"==a||"\\"==a)c=Ee;else{if(!n||"file"!=n.scheme){c=je;continue}if(a==i)u.host=n.host,u.path=v(n.path),u.query=n.query;else if("?"==a)u.host=n.host,u.path=v(n.path),u.query="",c=Pe;else{if("#"!=a){le(D(v(r,l),""))||(u.host=n.host,u.path=v(n.path),u.shortenPath()),c=je;continue}u.host=n.host,u.path=v(n.path),u.query=n.query,u.fragment="",c=Me}}break;case Ee:if("/"==a||"\\"==a){c=Ae;break}n&&"file"==n.scheme&&!le(D(v(r,l),""))&&(ce(n.path[0],!0)?B(u.path,n.path[0]):u.host=n.host),c=je;continue;case Ae:if(a==i||"/"==a||"\\"==a||"?"==a||"#"==a){if(!t&&ce(d))c=je;else if(""==d){if(u.host="",t)return;c=Oe}else{if(s=u.parseHost(d),s)return s;if("localhost"==u.host&&(u.host=""),t)return;d="",c=Oe}continue}d+=a;break;case Oe:if(u.isSpecial()){if(c=je,"/"!=a&&"\\"!=a)continue}else if(t||"?"!=a)if(t||"#"!=a){if(a!=i&&(c=je,"/"!=a))continue}else u.fragment="",c=Me;else u.query="",c=Pe;break;case je:if(a==i||"/"==a||"\\"==a&&u.isSpecial()||!t&&("?"==a||"#"==a)){if(fe(d)?(u.shortenPath(),"/"==a||"\\"==a&&u.isSpecial()||B(u.path,"")):de(d)?"/"==a||"\\"==a&&u.isSpecial()||B(u.path,""):("file"==u.scheme&&!u.path.length&&ce(d)&&(u.host&&(u.host=""),d=M(d,0)+":"),B(u.path,d)),d="","file"==u.scheme&&(a==i||"?"==a||"#"==a))while(u.path.length>1&&""===u.path[0])F(u.path);"?"==a?(u.query="",c=Pe):"#"==a&&(u.fragment="",c=Me)}else d+=se(a,ae);break;case Ie:"?"==a?(u.query="",c=Pe):"#"==a?(u.fragment="",c=Me):a!=i&&(u.path[0]+=se(a,ie));break;case Pe:t||"#"!=a?a!=i&&("'"==a&&u.isSpecial()?u.query+="%27":u.query+="#"==a?"%23":se(a,ie)):(u.fragment="",c=Me);break;case Me:a!=i&&(u.fragment+=se(a,re));break}l++}},parseHost:function(e){var t,n,i;if("["==M(e,0)){if("]"!=M(e,e.length-1))return"Invalid host";if(t=function(e){var t,n,i,r,a,o,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,d=0,f=function(){return M(e,d)};if(":"==f()){if(":"!=M(e,1))return;d+=2,c++,l=c}while(f()){if(8==c)return;if(":"!=f()){t=n=0;while(n<4&&L(Q,f()))t=16*t+j(f(),16),d++,n++;if("."==f()){if(0==n)return;if(d-=n,c>6)return;i=0;while(f()){if(r=null,i>0){if(!("."==f()&&i<4))return;d++}if(!L(G,f()))return;while(L(G,f())){if(a=j(f(),10),null===r)r=a;else{if(0==r)return;r=10*r+a}if(r>255)return;d++}u[c]=256*u[c]+r,i++,2!=i&&4!=i||c++}if(4!=i)return;break}if(":"==f()){if(d++,!f())return}else if(f())return;u[c++]=t}else{if(null!==l)return;d++,c++,l=c}}if(null!==l){o=c-l,c=7;while(0!=c&&o>0)s=u[c],u[c--]=u[l+o-1],u[l+--o]=s}else if(8!=c)return;return u}(H(e,1,-1)),!t)return"Invalid host";this.host=t}else if(this.isSpecial()){if(e=y(e),L(J,e))return"Invalid host";if(t=function(e){var t,n,i,r,a,o,s,u=$(e,".");if(u.length&&""==u[u.length-1]&&u.length--,t=u.length,t>4)return e;for(n=[],i=0;i<t;i++){if(r=u[i],""==r)return e;if(a=10,r.length>1&&"0"==M(r,0)&&(a=L(Y,r)?16:8,r=H(r,8==a?1:2)),""===r)o=0;else{if(!L(10==a?K:8==a?X:Q,r))return e;o=j(r,a)}B(n,o)}for(i=0;i<t;i++)if(o=n[i],i==t-1){if(o>=P(256,5-t))return null}else if(o>255)return null;for(s=N(n),i=0;i<n.length;i++)s+=n[i]*P(256,3-i);return s}(e),null===t)return"Invalid host";this.host=t}else{if(L(Z,e))return"Invalid host";for(t="",n=g(e),i=0;i<n.length;i++)t+=se(n[i],ie);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return h(ue,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&ce(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,i=e.password,r=e.host,a=e.port,o=e.path,s=e.query,u=e.fragment,c=t+":";return null!==r?(c+="//",e.includesCredentials()&&(c+=n+(i?":"+i:"")+"@"),c+=ne(r),null!==a&&(c+=":"+a)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?o[0]:o.length?"/"+D(o,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw O(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new De(e.path[0]).origin}catch(n){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ne(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",he)},getUsername:function(){return this.username},setUsername:function(e){var t=g(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=se(t[n],oe)}},getPassword:function(){return this.password},setPassword:function(e){var t=g(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=se(t[n],oe)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ne(e):ne(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Se)},getHostname:function(){var e=this.host;return null===e?"":ne(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,ke)},getPort:function(){var e=this.port;return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=b(e),""==e?this.port=null:this.parse(e,xe))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+D(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Oe))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){e=b(e),""==e?this.query=null:("?"==M(e,0)&&(e=H(e,1)),this.query="",this.parse(e,Pe)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){e=b(e),""!=e?("#"==M(e,0)&&(e=H(e,1)),this.fragment="",this.parse(e,Me)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var De=function(e){var t=f(this,Re),n=w(arguments.length,1)>1?arguments[1]:void 0,i=k(t,new Le(e,!1,n));a||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},Re=De.prototype,Ne=function(e,t){return{get:function(){return x(this)[e]()},set:t&&function(e){return x(this)[t](e)},configurable:!0,enumerable:!0}};if(a&&(d(Re,"href",Ne("serialize","setHref")),d(Re,"origin",Ne("getOrigin")),d(Re,"protocol",Ne("getProtocol","setProtocol")),d(Re,"username",Ne("getUsername","setUsername")),d(Re,"password",Ne("getPassword","setPassword")),d(Re,"host",Ne("getHost","setHost")),d(Re,"hostname",Ne("getHostname","setHostname")),d(Re,"port",Ne("getPort","setPort")),d(Re,"pathname",Ne("getPathname","setPathname")),d(Re,"search",Ne("getSearch","setSearch")),d(Re,"searchParams",Ne("getSearchParams")),d(Re,"hash",Ne("getHash","setHash"))),l(Re,"toJSON",(function(){return x(this).serialize()}),{enumerable:!0}),l(Re,"toString",(function(){return x(this).serialize()}),{enumerable:!0}),A){var Be=A.createObjectURL,Ue=A.revokeObjectURL;Be&&l(De,"createObjectURL",u(Be,A)),Ue&&l(De,"revokeObjectURL",u(Ue,A))}_(De,"URL"),r({global:!0,constructor:!0,forced:!o,sham:!a},{URL:De})},"408a":function(e,t,n){var i=n("e330");e.exports=i(1..valueOf)},"40d5":function(e,t,n){var i=n("d039");e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},"421e":function(e,t,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.translateLegacyCodecs=t.translateLegacyCodec=t.parseCodecs=t.muxerSupportsCodec=t.mapLegacyAvcCodecs=t.isVideoCodec=t.isTextCodec=t.isAudioCodec=t.getMimeForCodec=t.codecsFromDefault=t.browserSupportsCodec=t.DEFAULT_VIDEO_CODEC=t.DEFAULT_AUDIO_CODEC=void 0,n("ac1f"),n("5319"),n("fb6a"),n("d401"),n("d3b7"),n("25f0"),n("a9e3"),n("d81d"),n("159b"),n("498a"),n("14d9"),n("00b4");var r=i(n("4924")),a={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},o=["video","audio","text"],s=["Video","Audio","Text"],u=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e,t,n){var i=("00"+Number(t).toString(16)).slice(-2),r=("00"+Number(n).toString(16)).slice(-2);return"avc1."+i+"00"+r})):e};t.translateLegacyCodec=u;var c=function(e){return e.map(u)};t.translateLegacyCodecs=c;t.mapLegacyAvcCodecs=function(e){return e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e){return c([e])[0]}))};var l=function(e){void 0===e&&(e="");var t=e.split(","),n=[];return t.forEach((function(e){var t;e=e.trim(),o.forEach((function(i){var r=a[i].exec(e.toLowerCase());if(r&&!(r.length<=1)){t=i;var o=e.substring(0,r[1].length),s=e.replace(o,"");n.push({type:o,details:s,mediaType:i})}})),t||n.push({type:e,details:"",mediaType:"unknown"})})),n};t.parseCodecs=l;t.codecsFromDefault=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var n=e.mediaGroups.AUDIO[t];if(!n)return null;for(var i in n){var r=n[i];if(r.default&&r.playlists)return l(r.playlists[0].attributes.CODECS)}return null};t.isVideoCodec=function(e){return void 0===e&&(e=""),a.video.test(e.trim().toLowerCase())};var d=function(e){return void 0===e&&(e=""),a.audio.test(e.trim().toLowerCase())};t.isAudioCodec=d;var f=function(e){return void 0===e&&(e=""),a.text.test(e.trim().toLowerCase())};t.isTextCodec=f;var h=function(e){if(e&&"string"===typeof e){var t=e.toLowerCase().split(",").map((function(e){return u(e.trim())})),n="video";1===t.length&&d(t[0])?n="audio":1===t.length&&f(t[0])&&(n="application");var i="mp4";return t.every((function(e){return a.mp4.test(e)}))?i="mp4":t.every((function(e){return a.webm.test(e)}))?i="webm":t.every((function(e){return a.ogg.test(e)}))&&(i="ogg"),n+"/"+i+';codecs="'+e+'"'}};t.getMimeForCodec=h;t.browserSupportsCodec=function(e){return void 0===e&&(e=""),r.default.MediaSource&&r.default.MediaSource.isTypeSupported&&r.default.MediaSource.isTypeSupported(h(e))||!1};t.muxerSupportsCodec=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every((function(e){e=e.trim();for(var t=0;t<s.length;t++){var n=s[t];if(a["muxer"+n].test(e))return!0}return!1}))};t.DEFAULT_AUDIO_CODEC="mp4a.40.2";t.DEFAULT_VIDEO_CODEC="avc1.4d400d"},4265:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.findNal=t.findH265Nal=t.findH264Nal=t.discardEmulationPreventionBytes=t.NAL_TYPE_TWO=t.NAL_TYPE_ONE=t.EMULATION_PREVENTION=void 0,n("14d9"),n("ace4"),n("d3b7"),n("5cc6"),n("907a"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("986a"),n("1d02"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),n("99af"),n("c975");var i=n("2c6b"),r=(0,i.toUint8)([0,0,0,1]);t.NAL_TYPE_ONE=r;var a=(0,i.toUint8)([0,0,1]);t.NAL_TYPE_TWO=a;var o=(0,i.toUint8)([0,0,3]);t.EMULATION_PREVENTION=o;var s=function(e){var t=[],n=1;while(n<e.length-2)(0,i.bytesMatch)(e.subarray(n,n+3),o)&&(t.push(n+2),n++),n++;if(0===t.length)return e;var r=e.length-t.length,a=new Uint8Array(r),s=0;for(n=0;n<r;s++,n++)s===t[0]&&(s++,t.shift()),a[n]=e[s];return a};t.discardEmulationPreventionBytes=s;var u=function(e,t,n,o){void 0===o&&(o=1/0),e=(0,i.toUint8)(e),n=[].concat(n);var u,c=0,l=0;while(c<e.length&&(l<o||u)){var d=void 0;if((0,i.bytesMatch)(e.subarray(c),r)?d=4:(0,i.bytesMatch)(e.subarray(c),a)&&(d=3),d){if(l++,u)return s(e.subarray(u,c));var f=void 0;"h264"===t?f=31&e[c+d]:"h265"===t&&(f=e[c+d]>>1&63),-1!==n.indexOf(f)&&(u=c+d),c+=d+("h264"===t?1:2)}else c++}return e.subarray(0,0)};t.findNal=u;t.findH264Nal=function(e,t,n){return u(e,"h264",t,n)};t.findH265Nal=function(e,t,n){return u(e,"h265",t,n)}},"428f":function(e,t,n){var i=n("da84");e.exports=i},"44ad":function(e,t,n){var i=n("e330"),r=n("d039"),a=n("c6b6"),o=Object,s=i("".split);e.exports=r((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?s(e,""):o(e)}:o},"44d2":function(e,t,n){var i=n("b622"),r=n("7c73"),a=n("9bf2").f,o=i("unscopables"),s=Array.prototype;void 0==s[o]&&a(s,o,{configurable:!0,value:r(null)}),e.exports=function(e){s[o][e]=!0}},"44de":function(e,t,n){var i=n("da84");e.exports=function(e,t){var n=i.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},"44e7":function(e,t,n){var i=n("861d"),r=n("c6b6"),a=n("b622"),o=a("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==r(e))}},4625:function(e,t,n){var i=n("c6b6"),r=n("e330");e.exports=function(e){if("Function"===i(e))return r(e)}},"466d":function(e,t,n){"use strict";var i=n("c65b"),r=n("d784"),a=n("825a"),o=n("7234"),s=n("50c4"),u=n("577e"),c=n("1d80"),l=n("dc4a"),d=n("8aa5"),f=n("14c3");r("match",(function(e,t,n){return[function(t){var n=c(this),r=o(t)?void 0:l(t,e);return r?i(r,t,n):new RegExp(t)[e](u(n))},function(e){var i=a(this),r=u(e),o=n(t,i,r);if(o.done)return o.value;if(!i.global)return f(i,r);var c=i.unicode;i.lastIndex=0;var l,h=[],p=0;while(null!==(l=f(i,r))){var g=u(l[0]);h[p]=g,""===g&&(i.lastIndex=d(r,s(i.lastIndex),c)),p++}return 0===p?null:h}]}))},4738:function(e,t,n){var i=n("da84"),r=n("d256"),a=n("1626"),o=n("94ca"),s=n("8925"),u=n("b622"),c=n("6069"),l=n("6c59"),d=n("c430"),f=n("2d00"),h=r&&r.prototype,p=u("species"),g=!1,v=a(i.PromiseRejectionEvent),m=o("Promise",(function(){var e=s(r),t=e!==String(r);if(!t&&66===f)return!0;if(d&&(!h["catch"]||!h["finally"]))return!0;if(!f||f<51||!/native code/.test(e)){var n=new r((function(e){e(1)})),i=function(e){e((function(){}),(function(){}))},a=n.constructor={};if(a[p]=i,g=n.then((function(){}))instanceof i,!g)return!0}return!t&&(c||l)&&!v}));e.exports={CONSTRUCTOR:m,REJECTION_EVENT:v,SUBCLASSING:g}},4754:function(e,t){e.exports=function(e,t){return{value:e,done:t}}},4840:function(e,t,n){var i=n("825a"),r=n("5087"),a=n("7234"),o=n("b622"),s=o("species");e.exports=function(e,t){var n,o=i(e).constructor;return void 0===o||a(n=i(o)[s])?t:r(n)}},"485a":function(e,t,n){var i=n("c65b"),r=n("1626"),a=n("861d"),o=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&r(n=e.toString)&&!a(s=i(n,e)))return s;if(r(n=e.valueOf)&&!a(s=i(n,e)))return s;if("string"!==t&&r(n=e.toString)&&!a(s=i(n,e)))return s;throw o("Can't convert object to primitive value")}},4924:function(e,t,n){(function(t){var n;n="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},e.exports=n}).call(this,n("c8ba"))},"498a":function(e,t,n){"use strict";var i=n("23e7"),r=n("58a8").trim,a=n("c8d2");i({target:"String",proto:!0,forced:a("trim")},{trim:function(){return r(this)}})},"49cb":function(e,t,n){"use strict";n("d3b7"),n("159b"),n("498a"),n("c975"),n("fb6a"),n("14d9"),n("d9e2"),n("d401"),n("e9c4");var i=n("4924"),r=n("a559"),a=n("92bf");s.httpHandler=n("7761");function o(e,t,n){var i=e;return a(t)?(n=t,"string"===typeof e&&(i={uri:e})):i=r({},t,{uri:e}),i.callback=n,i}function s(e,t,n){return t=o(e,t,n),u(t)}function u(e){if("undefined"===typeof e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,i,r){t||(t=!0,e.callback(n,i,r))};function i(){var e=void 0;if(e=c.response?c.response:c.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(n){}return null}(c),v)try{e=JSON.parse(e)}catch(t){}return e}function r(e){return clearTimeout(l),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,m)}function a(){if(!u){var t;clearTimeout(l),t=e.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var r=m,a=null;return 0!==t?(r={body:i(),statusCode:t,method:f,headers:{},url:d,rawRequest:c},c.getAllResponseHeaders&&(r.headers=function(e){var t={};return e?(e.trim().split("\n").forEach((function(e){var n=e.indexOf(":"),i=e.slice(0,n).trim().toLowerCase(),r=e.slice(n+1).trim();"undefined"===typeof t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]})),t):t}(c.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),n(a,r,r.body)}}var o,u,c=e.xhr||null;c||(c=e.cors||e.useXDR?new s.XDomainRequest:new s.XMLHttpRequest);var l,d=c.url=e.uri||e.url,f=c.method=e.method||"GET",h=e.body||e.data,p=c.headers=e.headers||{},g=!!e.sync,v=!1,m={body:void 0,headers:{},statusCode:0,method:f,url:d,rawRequest:c};if("json"in e&&!1!==e.json&&(v=!0,p["accept"]||p["Accept"]||(p["Accept"]="application/json"),"GET"!==f&&"HEAD"!==f&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),h=JSON.stringify(!0===e.json?h:e.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(a,0)},c.onload=a,c.onerror=r,c.onprogress=function(){},c.onabort=function(){u=!0},c.ontimeout=r,c.open(f,d,!g,e.username,e.password),g||(c.withCredentials=!!e.withCredentials),!g&&e.timeout>0&&(l=setTimeout((function(){if(!u){u=!0,c.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",r(e)}}),e.timeout)),c.setRequestHeader)for(o in p)p.hasOwnProperty(o)&&c.setRequestHeader(o,p[o]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(c.responseType=e.responseType),"beforeSend"in e&&"function"===typeof e.beforeSend&&e.beforeSend(c),c.send(h||null),c}e.exports=s,e.exports.default=s,s.XMLHttpRequest=i.XMLHttpRequest||function(){},s.XDomainRequest="withCredentials"in new s.XMLHttpRequest?s.XMLHttpRequest:i.XDomainRequest,function(e,t){for(var n=0;n<e.length;n++)t(e[n])}(["get","put","post","patch","head","delete"],(function(e){s["delete"===e?"del":e]=function(t,n,i){return n=o(t,n,i),n.method=e.toUpperCase(),u(n)}}))},"49f7":function(e,t,n){n("1d1c"),n("d9e2"),n("d401");var i={"":1,lr:1,rl:1},r={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function a(e){if("string"!==typeof e)return!1;var t=r[e.toLowerCase()];return!!t&&e.toLowerCase()}function o(e,t,n){this.hasBeenReset=!1;var r="",o=!1,s=e,u=t,c=n,l=null,d="",f=!0,h="auto",p="start",g="auto",v="auto",m=100,y="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return r},set:function(e){r=""+e}},pauseOnExit:{enumerable:!0,get:function(){return o},set:function(e){o=!!e}},startTime:{enumerable:!0,get:function(){return s},set:function(e){if("number"!==typeof e)throw new TypeError("Start time must be set to a number.");s=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return u},set:function(e){if("number"!==typeof e)throw new TypeError("End time must be set to a number.");u=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return c},set:function(e){c=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return l},set:function(e){l=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return d},set:function(e){var t=function(e){if("string"!==typeof e)return!1;var t=i[e.toLowerCase()];return!!t&&e.toLowerCase()}(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");d=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return f},set:function(e){f=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return h},set:function(e){if("number"!==typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");h=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return p},set:function(e){var t=a(e);t?(p=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return g},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");g=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return v},set:function(e){var t=a(e);t?(v=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");m=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(e){var t=a(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=t,this.hasBeenReset=!0}}}),this.displayState=void 0}o.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=o},"4a4b":function(e,t,n){function i(t,n){return e.exports=i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports["default"]=e.exports,i(t,n)}n("131a"),e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},"4ae1":function(e,t,n){var i=n("23e7"),r=n("d066"),a=n("2ba4"),o=n("0538"),s=n("5087"),u=n("825a"),c=n("861d"),l=n("7c73"),d=n("d039"),f=r("Reflect","construct"),h=Object.prototype,p=[].push,g=d((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),v=!d((function(){f((function(){}))})),m=g||v;i({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){s(e),u(t);var n=arguments.length<3?e:s(arguments[2]);if(v&&!g)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return a(p,i,t),new(a(o,e,i))}var r=n.prototype,d=l(c(r)?r:h),m=a(e,d,t);return c(m)?m:d}})},"4b11":function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"4d63":function(e,t,n){var i=n("83ab"),r=n("da84"),a=n("e330"),o=n("94ca"),s=n("7156"),u=n("9112"),c=n("241c").f,l=n("3a9b"),d=n("44e7"),f=n("577e"),h=n("90d8"),p=n("9f7f"),g=n("aeb0"),v=n("cb2d"),m=n("d039"),y=n("1a2d"),b=n("69f3").enforce,_=n("2626"),w=n("b622"),T=n("fce3"),S=n("107c"),k=w("match"),x=r.RegExp,C=x.prototype,E=r.SyntaxError,A=a(C.exec),O=a("".charAt),j=a("".replace),I=a("".indexOf),P=a("".slice),M=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,D=/a/g,R=new x(L)!==L,N=p.MISSED_STICKY,B=p.UNSUPPORTED_Y,U=i&&(!R||N||T||S||m((function(){return D[k]=!1,x(L)!=L||x(D)==D||"/a/i"!=x(L,"i")})));if(o("RegExp",U)){for(var F=function(e,t){var n,i,r,a,o,c,p=l(C,this),g=d(e),v=void 0===t,m=[],_=e;if(!p&&g&&v&&e.constructor===F)return e;if((g||l(C,e))&&(e=e.source,v&&(t=h(_))),e=void 0===e?"":f(e),t=void 0===t?"":f(t),_=e,T&&"dotAll"in L&&(i=!!t&&I(t,"s")>-1,i&&(t=j(t,/s/g,""))),n=t,N&&"sticky"in L&&(r=!!t&&I(t,"y")>-1,r&&B&&(t=j(t,/y/g,""))),S&&(a=function(e){for(var t,n=e.length,i=0,r="",a=[],o={},s=!1,u=!1,c=0,l="";i<=n;i++){if(t=O(e,i),"\\"===t)t+=O(e,++i);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:A(M,P(e,i+1))&&(i+=2,u=!0),r+=t,c++;continue;case">"===t&&u:if(""===l||y(o,l))throw new E("Invalid capture group name");o[l]=!0,a[a.length]=[l,c],u=!1,l="";continue}u?l+=t:r+=t}return[r,a]}(e),e=a[0],m=a[1]),o=s(x(e,t),p?this:C,F),(i||r||m.length)&&(c=b(o),i&&(c.dotAll=!0,c.raw=F(function(e){for(var t,n=e.length,i=0,r="",a=!1;i<=n;i++)t=O(e,i),"\\"!==t?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),r+=t):r+="[\\s\\S]":r+=t+O(e,++i);return r}(e),n)),r&&(c.sticky=!0),m.length&&(c.groups=m)),e!==_)try{u(o,"source",""===_?"(?:)":_)}catch(w){}return o},$=c(x),H=0;$.length>H;)g(F,x,$[H++]);C.constructor=F,F.prototype=C,v(r,"RegExp",F,{constructor:!0})}_("RegExp")},"4d64":function(e,t,n){var i=n("fc6a"),r=n("23cb"),a=n("07fa"),o=function(e){return function(t,n,o){var s,u=i(t),c=a(u),l=r(o,c);if(e&&n!=n){while(c>l)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},"4d90":function(e,t,n){"use strict";var i=n("23e7"),r=n("0ccb").start,a=n("9a0c");i({target:"String",proto:!0,forced:a},{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"4dae":function(e,t,n){var i=n("23cb"),r=n("07fa"),a=n("8418"),o=Array,s=Math.max;e.exports=function(e,t,n){for(var u=r(e),c=i(t,u),l=i(void 0===n?u:n,u),d=o(s(l-c,0)),f=0;c<l;c++,f++)a(d,f,e[c]);return d.length=f,d}},"4de4":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").filter,a=n("1dde"),o=a("filter");i({target:"Array",proto:!0,forced:!o},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var i=n("0366"),r=n("c65b"),a=n("7b0b"),o=n("9bdd"),s=n("e95a"),u=n("68ee"),c=n("07fa"),l=n("8418"),d=n("9a1f"),f=n("35a1"),h=Array;e.exports=function(e){var t=a(e),n=u(this),p=arguments.length,g=p>1?arguments[1]:void 0,v=void 0!==g;v&&(g=i(g,p>2?arguments[2]:void 0));var m,y,b,_,w,T,S=f(t),k=0;if(!S||this===h&&s(S))for(m=c(t),y=n?new this(m):h(m);m>k;k++)T=v?g(t[k],k):t[k],l(y,k,T);else for(_=d(t,S),w=_.next,y=n?new this:[];!(b=r(w,_)).done;k++)T=v?o(_,g,[b.value,k],!0):b.value,l(y,k,T);return y.length=k,y}},"4e82":function(e,t,n){"use strict";var i=n("23e7"),r=n("e330"),a=n("59ed"),o=n("7b0b"),s=n("07fa"),u=n("083a"),c=n("577e"),l=n("d039"),d=n("addb"),f=n("a640"),h=n("04d1"),p=n("d998"),g=n("2d00"),v=n("512c"),m=[],y=r(m.sort),b=r(m.push),_=l((function(){m.sort(void 0)})),w=l((function(){m.sort(null)})),T=f("sort"),S=!l((function(){if(g)return g<70;if(!(h&&h>3)){if(p)return!0;if(v)return v<603;var e,t,n,i,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)m.push({k:t+i,v:n})}for(m.sort((function(e,t){return t.v-e.v})),i=0;i<m.length;i++)t=m[i].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return"DGBEFHACIJK"!==r}})),k=_||!w||!T||!S;i({target:"Array",proto:!0,forced:k},{sort:function(e){void 0!==e&&a(e);var t=o(this);if(S)return void 0===e?y(t):y(t,e);var n,i,r=[],l=s(t);for(i=0;i<l;i++)i in t&&b(r,t[i]);d(r,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:c(t)>c(n)?1:-1}}(e)),n=s(r),i=0;while(i<n)t[i]=r[i++];while(i<l)u(t,i++);return t}})},"4ea4":function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports["default"]=e.exports},"4ec9":function(e,t,n){n("6f48")},"4f06":function(e,t,n){"use strict";function i(e,t){for(var n=[],i={},r=0;r<t.length;r++){var a=t[r],o=a[0],s=a[1],u=a[2],c=a[3],l={id:e+":"+r,css:s,media:u,sourceMap:c};i[o]?i[o].parts.push(l):n.push(i[o]={id:o,parts:[l]})}return n}n.r(t),n.d(t,"default",(function(){return h}));var r="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},o=r&&(document.head||document.getElementsByTagName("head")[0]),s=null,u=0,c=!1,l=function(){},d=null,f="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,n,r){c=n,d=r||{};var o=i(e,t);return p(o),function(t){for(var n=[],r=0;r<o.length;r++){var s=o[r],u=a[s.id];u.refs--,n.push(u)}t?(o=i(e,t),p(o)):o=[];for(r=0;r<n.length;r++){u=n[r];if(0===u.refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete a[u.id]}}}}function p(e){for(var t=0;t<e.length;t++){var n=e[t],i=a[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(v(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var o=[];for(r=0;r<n.parts.length;r++)o.push(v(n.parts[r]));a[n.id]={id:n.id,refs:1,parts:o}}}}function g(){var e=document.createElement("style");return e.type="text/css",o.appendChild(e),e}function v(e){var t,n,i=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(i){if(c)return l;i.parentNode.removeChild(i)}if(f){var r=u++;i=s||(s=g()),t=y.bind(null,i,r,!1),n=y.bind(null,i,r,!0)}else i=g(),t=b.bind(null,i),n=function(){i.parentNode.removeChild(i)};return t(e),function(i){if(i){if(i.css===e.css&&i.media===e.media&&i.sourceMap===e.sourceMap)return;t(e=i)}else n()}}var m=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function y(e,t,n,i){var r=n?"":O(i.css);if(e.styleSheet)e.styleSheet.cssText=m(t,r);else{var a=document.createTextNode(r),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function b(e,t){var n=O(t.css),i=t.media,r=t.sourceMap;if(i&&e.setAttribute("media",i),d.ssrId&&e.setAttribute("data-vue-ssr-id",t.id),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var _=/%\?([+-]?\d+(\.\d+)?)\?%/g,w=/\.\?%PAGE\?%/g,T=/\?%PAGE\?%\[data-v-[a-z0-9]{8}\]/g,S=/uni-page-body\[data-v-[a-z0-9]{8}\]/g,k=/var\(--status-bar-height\)/gi,x=/var\(--window-top\)/gi,C=/var\(--window-bottom\)/gi,E=/var\(--window-left\)/gi,A=/var\(--window-right\)/gi;function O(e){var t=function(){var e="function"===typeof getApp&&getApp();return e&&e.$route&&e.$route.meta&&e.$route.meta.name||""}();if("undefined"!==typeof uni&&!uni.canIUse("css.var")){var n=function(){var e="function"===typeof getApp&&getApp();if(e&&e.$route&&e.$route.meta&&e.$route.meta.name)return{top:e.$route.meta.windowTop,bottom:e.$route.meta.isTabBar?50:0};return{top:0,bottom:0}}();e=e.replace(k,"0px").replace(x,n.top+"px").replace(C,n.bottom+"px").replace(E,"0px").replace(A,"0px")}return e.replace(T,t).replace(w,"").replace(S,"body."+t+" uni-page-body").replace(/\{[\s\S]+?\}|@media.+?\{/g,(function(e){return"undefined"===typeof uni?e:e.replace(_,(function(e,t){return uni.upx2px(t)+"px"}))}))}},"4fad":function(e,t,n){var i=n("d039"),r=n("861d"),a=n("c6b6"),o=n("d86b"),s=Object.isExtensible,u=i((function(){s(1)}));e.exports=u||o?function(e){return!!r(e)&&((!o||"ArrayBuffer"!=a(e))&&(!s||s(e)))}:s},5087:function(e,t,n){var i=n("68ee"),r=n("0d51"),a=TypeError;e.exports=function(e){if(i(e))return e;throw a(r(e)+" is not a constructor")}},"50c4":function(e,t,n){var i=n("5926"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},"512c":function(e,t,n){var i=n("342f"),r=i.match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},"51eb":function(e,t,n){"use strict";var i=n("825a"),r=n("485a"),a=TypeError;e.exports=function(e){if(i(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw a("Incorrect hint");return r(this,e)}},5319:function(e,t,n){"use strict";var i=n("2ba4"),r=n("c65b"),a=n("e330"),o=n("d784"),s=n("d039"),u=n("825a"),c=n("1626"),l=n("7234"),d=n("5926"),f=n("50c4"),h=n("577e"),p=n("1d80"),g=n("8aa5"),v=n("dc4a"),m=n("0cb2"),y=n("14c3"),b=n("b622"),_=b("replace"),w=Math.max,T=Math.min,S=a([].concat),k=a([].push),x=a("".indexOf),C=a("".slice),E=function(e){return void 0===e?e:String(e)},A=function(){return"$0"==="a".replace(/./,"$0")}(),O=function(){return!!/./[_]&&""===/./[_]("a","$0")}(),j=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));o("replace",(function(e,t,n){var a=O?"$":"$0";return[function(e,n){var i=p(this),a=l(e)?void 0:v(e,_);return a?r(a,e,i,n):r(t,h(i),e,n)},function(e,r){var o=u(this),s=h(e);if("string"==typeof r&&-1===x(r,a)&&-1===x(r,"$<")){var l=n(t,o,s,r);if(l.done)return l.value}var p=c(r);p||(r=h(r));var v=o.global;if(v){var b=o.unicode;o.lastIndex=0}var _=[];while(1){var A=y(o,s);if(null===A)break;if(k(_,A),!v)break;var O=h(A[0]);""===O&&(o.lastIndex=g(s,f(o.lastIndex),b))}for(var j="",I=0,P=0;P<_.length;P++){A=_[P];for(var M=h(A[0]),L=w(T(d(A.index),s.length),0),D=[],R=1;R<A.length;R++)k(D,E(A[R]));var N=A.groups;if(p){var B=S([M],D,L,s);void 0!==N&&k(B,N);var U=h(i(r,void 0,B))}else U=m(M,s,L,D,N,r);L>=I&&(j+=C(s,I,L)+U,I=L+M.length)}return j+C(s,I)}]}),!j||!A||O)},5352:function(e,t,n){"use strict";n("e260");var i=n("23e7"),r=n("da84"),a=n("c65b"),o=n("e330"),s=n("83ab"),u=n("f354"),c=n("cb2d"),l=n("6964"),d=n("d44e"),f=n("dcc3"),h=n("69f3"),p=n("19aa"),g=n("1626"),v=n("1a2d"),m=n("0366"),y=n("f5df"),b=n("825a"),_=n("861d"),w=n("577e"),T=n("7c73"),S=n("5c6c"),k=n("9a1f"),x=n("35a1"),C=n("d6d6"),E=n("b622"),A=n("addb"),O=E("iterator"),j=h.set,I=h.getterFor("URLSearchParams"),P=h.getterFor("URLSearchParamsIterator"),M=Object.getOwnPropertyDescriptor,L=function(e){if(!s)return r[e];var t=M(r,e);return t&&t.value},D=L("fetch"),R=L("Request"),N=L("Headers"),B=R&&R.prototype,U=N&&N.prototype,F=r.RegExp,$=r.TypeError,H=r.decodeURIComponent,V=r.encodeURIComponent,z=o("".charAt),q=o([].join),W=o([].push),G=o("".replace),Y=o([].shift),X=o([].splice),K=o("".split),Q=o("".slice),J=/\+/g,Z=Array(4),ee=function(e){return Z[e-1]||(Z[e-1]=F("((?:%[\\da-f]{2}){"+e+"})","gi"))},te=function(e){try{return H(e)}catch(t){return e}},ne=function(e){var t=G(e,J," "),n=4;try{return H(t)}catch(i){while(n)t=G(t,ee(n--),te);return t}},ie=/[!'()~]|%20/g,re={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ae=function(e){return re[e]},oe=function(e){return G(V(e),ie,ae)},se=f((function(e,t){j(this,{type:"URLSearchParamsIterator",iterator:k(I(e).entries),kind:t})}),"Iterator",(function(){var e=P(this),t=e.kind,n=e.iterator.next(),i=n.value;return n.done||(n.value="keys"===t?i.key:"values"===t?i.value:[i.key,i.value]),n}),!0),ue=function(e){this.entries=[],this.url=null,void 0!==e&&(_(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===z(e,0)?Q(e,1):e:w(e)))};ue.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,i,r,o,s,u,c=x(e);if(c){t=k(e,c),n=t.next;while(!(i=a(n,t)).done){if(r=k(b(i.value)),o=r.next,(s=a(o,r)).done||(u=a(o,r)).done||!a(o,r).done)throw $("Expected sequence with length 2");W(this.entries,{key:w(s.value),value:w(u.value)})}}else for(var l in e)v(e,l)&&W(this.entries,{key:l,value:w(e[l])})},parseQuery:function(e){if(e){var t,n,i=K(e,"&"),r=0;while(r<i.length)t=i[r++],t.length&&(n=K(t,"="),W(this.entries,{key:ne(Y(n)),value:ne(q(n,"="))}))}},serialize:function(){var e,t=this.entries,n=[],i=0;while(i<t.length)e=t[i++],W(n,oe(e.key)+"="+oe(e.value));return q(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ce=function(){p(this,le);var e=arguments.length>0?arguments[0]:void 0;j(this,new ue(e))},le=ce.prototype;if(l(le,{append:function(e,t){C(arguments.length,2);var n=I(this);W(n.entries,{key:w(e),value:w(t)}),n.updateURL()},delete:function(e){C(arguments.length,1);var t=I(this),n=t.entries,i=w(e),r=0;while(r<n.length)n[r].key===i?X(n,r,1):r++;t.updateURL()},get:function(e){C(arguments.length,1);for(var t=I(this).entries,n=w(e),i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(e){C(arguments.length,1);for(var t=I(this).entries,n=w(e),i=[],r=0;r<t.length;r++)t[r].key===n&&W(i,t[r].value);return i},has:function(e){C(arguments.length,1);var t=I(this).entries,n=w(e),i=0;while(i<t.length)if(t[i++].key===n)return!0;return!1},set:function(e,t){C(arguments.length,1);for(var n,i=I(this),r=i.entries,a=!1,o=w(e),s=w(t),u=0;u<r.length;u++)n=r[u],n.key===o&&(a?X(r,u--,1):(a=!0,n.value=s));a||W(r,{key:o,value:s}),i.updateURL()},sort:function(){var e=I(this);A(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){var t,n=I(this).entries,i=m(e,arguments.length>1?arguments[1]:void 0),r=0;while(r<n.length)t=n[r++],i(t.value,t.key,this)},keys:function(){return new se(this,"keys")},values:function(){return new se(this,"values")},entries:function(){return new se(this,"entries")}},{enumerable:!0}),c(le,O,le.entries,{name:"entries"}),c(le,"toString",(function(){return I(this).serialize()}),{enumerable:!0}),d(ce,"URLSearchParams"),i({global:!0,constructor:!0,forced:!u},{URLSearchParams:ce}),!u&&g(N)){var de=o(U.has),fe=o(U.set),he=function(e){if(_(e)){var t,n=e.body;if("URLSearchParams"===y(n))return t=e.headers?new N(e.headers):new N,de(t,"content-type")||fe(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),T(e,{body:S(0,w(n)),headers:S(0,t)})}return e};if(g(D)&&i({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return D(e,arguments.length>1?he(arguments[1]):{})}}),g(R)){var pe=function(e){return p(this,B),new R(e,arguments.length>1?he(arguments[1]):{})};B.constructor=pe,pe.prototype=B,i({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:pe})}}e.exports={URLSearchParams:ce,getState:I}},5377:function(e,t,n){var i=n("da84"),r=n("83ab"),a=n("edd0"),o=n("ad6d"),s=n("d039"),u=i.RegExp,c=u.prototype,l=r&&s((function(){var e=!0;try{u(".","d")}catch(l){e=!1}var t={},n="",i=e?"dgimsy":"gimsy",r=function(e,i){Object.defineProperty(t,e,{get:function(){return n+=i,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in e&&(a.hasIndices="d"),a)r(o,a[o]);var s=Object.getOwnPropertyDescriptor(c,"flags").get.call(t);return s!==i||n!==i}));l&&a(c,"flags",{configurable:!0,get:o})},"53ca":function(e,t,n){"use strict";function i(e){return t.default=i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=i,n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0")},5530:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e},n("b64b"),n("a4d3"),n("4de4"),n("d3b7"),n("e439"),n("14d9"),n("159b"),n("dbb4"),n("1d1c"),n("7a82");var i=function(e){return e&&e.__esModule?e:{default:e}}(n("ade3"));function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}},"55b5":function(e,t,n){var i=n("4a4b");e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)},e.exports.__esModule=!0,e.exports["default"]=e.exports},5692:function(e,t,n){var i=n("c430"),r=n("c6cd");(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.1",mode:i?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(e,t,n){var i=n("d066"),r=n("e330"),a=n("241c"),o=n("7418"),s=n("825a"),u=r([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=o.f;return n?u(t,n(e)):t}},"577e":function(e,t,n){var i=n("f5df"),r=String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return r(e)}},"57b9":function(e,t,n){var i=n("c65b"),r=n("d066"),a=n("b622"),o=n("cb2d");e.exports=function(){var e=r("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=a("toPrimitive");t&&!t[s]&&o(t,s,(function(e){return i(n,this)}),{arity:1})}},5883:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("14d9"),n("c975"),n("fb6a"),n("a434");var i=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,o=0;o<a;++o)t[o].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",(function(t){e.push(t)}))},e}();t.default=i},5899:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(e,t,n){var i=n("e330"),r=n("1d80"),a=n("577e"),o=n("5899"),s=i("".replace),u="["+o+"]",c=RegExp("^"+u+u+"*"),l=RegExp(u+u+"*$"),d=function(e){return function(t){var n=a(r(t));return 1&e&&(n=s(n,c,"")),2&e&&(n=s(n,l,"")),n}};e.exports={start:d(1),end:d(2),trim:d(3)}},5926:function(e,t,n){var i=n("b42e");e.exports=function(e){var t=+e;return t!==t||0===t?0:i(t)}},"59ed":function(e,t,n){var i=n("1626"),r=n("0d51"),a=TypeError;e.exports=function(e){if(i(e))return e;throw a(r(e)+" is not a function")}},"5a34":function(e,t,n){var i=n("44e7"),r=TypeError;e.exports=function(e){if(i(e))throw r("The method doesn't accept regular expressions");return e}},"5a47":function(e,t,n){var i=n("23e7"),r=n("04f8"),a=n("d039"),o=n("7418"),s=n("7b0b"),u=!r||a((function(){o.f(1)}));i({target:"Object",stat:!0,forced:u},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(s(e)):[]}})},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5cc6":function(e,t,n){var i=n("74e8");i("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},"5d41":function(e,t,n){var i=n("23e7"),r=n("c65b"),a=n("861d"),o=n("825a"),s=n("c60d"),u=n("06cf"),c=n("e163");i({target:"Reflect",stat:!0},{get:function e(t,n){var i,l,d=arguments.length<3?t:arguments[2];return o(t)===d?t[n]:(i=u.f(t,n),i?s(i)?i.value:void 0===i.get?void 0:r(i.get,d):a(l=c(t))?e(l,n,d):void 0)}})},"5e77":function(e,t,n){var i=n("83ab"),r=n("1a2d"),a=Function.prototype,o=i&&Object.getOwnPropertyDescriptor,s=r(a,"name"),u=s&&"something"===function(){}.name,c=s&&(!i||i&&o(a,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},"5e7e":function(e,t,n){"use strict";var i,r,a,o=n("23e7"),s=n("c430"),u=n("605d"),c=n("da84"),l=n("c65b"),d=n("cb2d"),f=n("d2bb"),h=n("d44e"),p=n("2626"),g=n("59ed"),v=n("1626"),m=n("861d"),y=n("19aa"),b=n("4840"),_=n("2cf4").set,w=n("b575"),T=n("44de"),S=n("e667"),k=n("01b4"),x=n("69f3"),C=n("d256"),E=n("4738"),A=n("f069"),O=E.CONSTRUCTOR,j=E.REJECTION_EVENT,I=E.SUBCLASSING,P=x.getterFor("Promise"),M=x.set,L=C&&C.prototype,D=C,R=L,N=c.TypeError,B=c.document,U=c.process,F=A.f,$=F,H=!!(B&&B.createEvent&&c.dispatchEvent),V=function(e){var t;return!(!m(e)||!v(t=e.then))&&t},z=function(e,t){var n,i,r,a=t.value,o=1==t.state,s=o?e.ok:e.fail,u=e.resolve,c=e.reject,d=e.domain;try{s?(o||(2===t.rejection&&X(t),t.rejection=1),!0===s?n=a:(d&&d.enter(),n=s(a),d&&(d.exit(),r=!0)),n===e.promise?c(N("Promise-chain cycle")):(i=V(n))?l(i,n,u,c):u(n)):c(a)}catch(f){d&&!r&&d.exit(),c(f)}},q=function(e,t){e.notified||(e.notified=!0,w((function(){var n,i=e.reactions;while(n=i.get())z(n,e);e.notified=!1,t&&!e.rejection&&G(e)})))},W=function(e,t,n){var i,r;H?(i=B.createEvent("Event"),i.promise=t,i.reason=n,i.initEvent(e,!1,!0),c.dispatchEvent(i)):i={promise:t,reason:n},!j&&(r=c["on"+e])?r(i):"unhandledrejection"===e&&T("Unhandled promise rejection",n)},G=function(e){l(_,c,(function(){var t,n=e.facade,i=e.value,r=Y(e);if(r&&(t=S((function(){u?U.emit("unhandledRejection",i,n):W("unhandledrejection",n,i)})),e.rejection=u||Y(e)?2:1,t.error))throw t.value}))},Y=function(e){return 1!==e.rejection&&!e.parent},X=function(e){l(_,c,(function(){var t=e.facade;u?U.emit("rejectionHandled",t):W("rejectionhandled",t,e.value)}))},K=function(e,t,n){return function(i){e(t,i,n)}},Q=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,q(e,!0))},J=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw N("Promise can't be resolved itself");var i=V(t);i?w((function(){var n={done:!1};try{l(i,t,K(J,n,e),K(Q,n,e))}catch(r){Q(n,r,e)}})):(e.value=t,e.state=1,q(e,!1))}catch(r){Q({done:!1},r,e)}}};if(O&&(D=function(e){y(this,R),g(e),l(i,this);var t=P(this);try{e(K(J,t),K(Q,t))}catch(n){Q(t,n)}},R=D.prototype,i=function(e){M(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new k,rejection:!1,state:0,value:void 0})},i.prototype=d(R,"then",(function(e,t){var n=P(this),i=F(b(this,D));return n.parent=!0,i.ok=!v(e)||e,i.fail=v(t)&&t,i.domain=u?U.domain:void 0,0==n.state?n.reactions.add(i):w((function(){z(i,n)})),i.promise})),r=function(){var e=new i,t=P(e);this.promise=e,this.resolve=K(J,t),this.reject=K(Q,t)},A.f=F=function(e){return e===D||void 0===e?new r(e):$(e)},!s&&v(C)&&L!==Object.prototype)){a=L.then,I||d(L,"then",(function(e,t){var n=this;return new D((function(e,t){l(a,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete L.constructor}catch(Z){}f&&f(L,R)}o({global:!0,constructor:!0,wrap:!0,forced:O},{Promise:D}),h(D,"Promise",!1,!0),p("Promise")},"5eed":function(e,t,n){var i=n("d256"),r=n("1c7e"),a=n("4738").CONSTRUCTOR;e.exports=a||!r((function(e){i.all(e).then(void 0,(function(){}))}))},"5f96":function(e,t,n){"use strict";var i=n("ebb5"),r=n("e330"),a=i.aTypedArray,o=i.exportTypedArrayMethod,s=r([].join);o("join",(function(e){return s(a(this),e)}))},"5fb2":function(e,t,n){"use strict";var i=n("e330"),r=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",s=RangeError,u=i(a.exec),c=Math.floor,l=String.fromCharCode,d=i("".charCodeAt),f=i([].join),h=i([].push),p=i("".replace),g=i("".split),v=i("".toLowerCase),m=function(e){return e+22+75*(e<26)},y=function(e,t,n){var i=0;e=n?c(e/700):e>>1,e+=c(e/t);while(e>455)e=c(e/35),i+=36;return c(i+36*e/(e+38))},b=function(e){var t=[];e=function(e){var t=[],n=0,i=e.length;while(n<i){var r=d(e,n++);if(r>=55296&&r<=56319&&n<i){var a=d(e,n++);56320==(64512&a)?h(t,((1023&r)<<10)+(1023&a)+65536):(h(t,r),n--)}else h(t,r)}return t}(e);var n,i,r=e.length,a=128,u=0,p=72;for(n=0;n<e.length;n++)i=e[n],i<128&&h(t,l(i));var g=t.length,v=g;g&&h(t,"-");while(v<r){var b=2147483647;for(n=0;n<e.length;n++)i=e[n],i>=a&&i<b&&(b=i);var _=v+1;if(b-a>c((2147483647-u)/_))throw s(o);for(u+=(b-a)*_,a=b,n=0;n<e.length;n++){if(i=e[n],i<a&&++u>2147483647)throw s(o);if(i==a){var w=u,T=36;while(1){var S=T<=p?1:T>=p+26?26:T-p;if(w<S)break;var k=w-S,x=36-S;h(t,l(m(S+k%x))),w=c(k/x),T+=36}h(t,l(m(w))),p=y(u,_,v==g),u=0,v++}}u++,a++}return f(t,"")};e.exports=function(e){var t,n,i=[],o=g(p(v(e),a,"."),".");for(t=0;t<o.length;t++)n=o[t],h(i,u(r,n)?"xn--"+b(n):n);return f(i,".")}},"605d":function(e,t,n){var i=n("c6b6"),r=n("da84");e.exports="process"==i(r.process)},6062:function(e,t,n){n("1c59")},6069:function(e,t,n){var i=n("6c59"),r=n("605d");e.exports=!i&&!r&&"object"==typeof window&&"object"==typeof document},"60bd":function(e,t,n){"use strict";var i=n("da84"),r=n("d039"),a=n("e330"),o=n("ebb5"),s=n("e260"),u=n("b622"),c=u("iterator"),l=i.Uint8Array,d=a(s.values),f=a(s.keys),h=a(s.entries),p=o.aTypedArray,g=o.exportTypedArrayMethod,v=l&&l.prototype,m=!r((function(){v[c].call([1])})),y=!!v&&v.values&&v[c]===v.values&&"values"===v.values.name,b=function(){return d(p(this))};g("entries",(function(){return h(p(this))}),m),g("keys",(function(){return f(p(this))}),m),g("values",b,m||!y,{name:"values"}),g(c,b,m||!y,{name:"values"})},"60da":function(e,t,n){"use strict";var i=n("83ab"),r=n("e330"),a=n("c65b"),o=n("d039"),s=n("df75"),u=n("7418"),c=n("d1e7"),l=n("7b0b"),d=n("44ad"),f=Object.assign,h=Object.defineProperty,p=r([].concat);e.exports=!f||o((function(){if(i&&1!==f({b:1},f(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=f({},e)[n]||"abcdefghijklmnopqrst"!=s(f({},t)).join("")}))?function(e,t){var n=l(e),r=arguments.length,o=1,f=u.f,h=c.f;while(r>o){var g,v=d(arguments[o++]),m=f?p(s(v),f(v)):s(v),y=m.length,b=0;while(y>b)g=m[b++],i&&!a(h,v,g)||(n[g]=v[g])}return n}:f},"621a":function(e,t,n){"use strict";var i=n("da84"),r=n("e330"),a=n("83ab"),o=n("4b11"),s=n("5e77"),u=n("9112"),c=n("6964"),l=n("d039"),d=n("19aa"),f=n("5926"),h=n("50c4"),p=n("0b25"),g=n("77a7"),v=n("e163"),m=n("d2bb"),y=n("241c").f,b=n("9bf2").f,_=n("81d5"),w=n("4dae"),T=n("d44e"),S=n("69f3"),k=s.PROPER,x=s.CONFIGURABLE,C=S.get,E=S.set,A=i["ArrayBuffer"],O=A,j=O&&O["prototype"],I=i["DataView"],P=I&&I["prototype"],M=Object.prototype,L=i.Array,D=i.RangeError,R=r(_),N=r([].reverse),B=g.pack,U=g.unpack,F=function(e){return[255&e]},$=function(e){return[255&e,e>>8&255]},H=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},V=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},z=function(e){return B(e,23,4)},q=function(e){return B(e,52,8)},W=function(e,t){b(e["prototype"],t,{get:function(){return C(this)[t]}})},G=function(e,t,n,i){var r=p(n),a=C(e);if(r+t>a.byteLength)throw D("Wrong index");var o=C(a.buffer).bytes,s=r+a.byteOffset,u=w(o,s,s+t);return i?u:N(u)},Y=function(e,t,n,i,r,a){var o=p(n),s=C(e);if(o+t>s.byteLength)throw D("Wrong index");for(var u=C(s.buffer).bytes,c=o+s.byteOffset,l=i(+r),d=0;d<t;d++)u[c+d]=l[a?d:t-d-1]};if(o){var X=k&&"ArrayBuffer"!==A.name;if(l((function(){A(1)}))&&l((function(){new A(-1)}))&&!l((function(){return new A,new A(1.5),new A(NaN),1!=A.length||X&&!x})))X&&x&&u(A,"name","ArrayBuffer");else{O=function(e){return d(this,j),new A(p(e))},O["prototype"]=j;for(var K,Q=y(A),J=0;Q.length>J;)(K=Q[J++])in O||u(O,K,A[K]);j.constructor=O}m&&v(P)!==M&&m(P,M);var Z=new I(new O(2)),ee=r(P.setInt8);Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),!Z.getInt8(0)&&Z.getInt8(1)||c(P,{setInt8:function(e,t){ee(this,e,t<<24>>24)},setUint8:function(e,t){ee(this,e,t<<24>>24)}},{unsafe:!0})}else O=function(e){d(this,j);var t=p(e);E(this,{bytes:R(L(t),0),byteLength:t}),a||(this.byteLength=t)},j=O["prototype"],I=function(e,t,n){d(this,P),d(e,j);var i=C(e).byteLength,r=f(t);if(r<0||r>i)throw D("Wrong offset");if(n=void 0===n?i-r:h(n),r+n>i)throw D("Wrong length");E(this,{buffer:e,byteLength:n,byteOffset:r}),a||(this.buffer=e,this.byteLength=n,this.byteOffset=r)},P=I["prototype"],a&&(W(O,"byteLength"),W(I,"buffer"),W(I,"byteLength"),W(I,"byteOffset")),c(P,{getInt8:function(e){return G(this,1,e)[0]<<24>>24},getUint8:function(e){return G(this,1,e)[0]},getInt16:function(e){var t=G(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=G(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return V(G(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return V(G(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return U(G(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return U(G(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Y(this,1,e,F,t)},setUint8:function(e,t){Y(this,1,e,F,t)},setInt16:function(e,t){Y(this,2,e,$,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Y(this,2,e,$,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Y(this,4,e,H,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Y(this,4,e,H,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Y(this,4,e,z,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Y(this,8,e,q,t,arguments.length>2?arguments[2]:void 0)}});T(O,"ArrayBuffer"),T(I,"DataView"),e.exports={ArrayBuffer:O,DataView:I}},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},6374:function(e,t,n){var i=n("da84"),r=Object.defineProperty;e.exports=function(e,t){try{r(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},"649e":function(e,t,n){"use strict";var i=n("ebb5"),r=n("b727").some,a=i.aTypedArray,o=i.exportTypedArrayMethod;o("some",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},6547:function(e,t,n){var i=n("e330"),r=n("5926"),a=n("577e"),o=n("1d80"),s=i("".charAt),u=i("".charCodeAt),c=i("".slice),l=function(e){return function(t,n){var i,l,d=a(o(t)),f=r(n),h=d.length;return f<0||f>=h?e?"":void 0:(i=u(d,f),i<55296||i>56319||f+1===h||(l=u(d,f+1))<56320||l>57343?e?s(d,f):i:e?c(d,f,f+2):l-56320+(i-55296<<10)+65536)}};e.exports={codeAt:l(!1),charAt:l(!0)}},6566:function(e,t,n){"use strict";var i=n("9bf2").f,r=n("7c73"),a=n("6964"),o=n("0366"),s=n("19aa"),u=n("7234"),c=n("2266"),l=n("c6d2"),d=n("4754"),f=n("2626"),h=n("83ab"),p=n("f183").fastKey,g=n("69f3"),v=g.set,m=g.getterFor;e.exports={getConstructor:function(e,t,n,l){var d=e((function(e,i){s(e,f),v(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),h||(e.size=0),u(i)||c(i,e[l],{that:e,AS_ENTRIES:n})})),f=d.prototype,g=m(t),y=function(e,t,n){var i,r,a=g(e),o=b(e,t);return o?o.value=n:(a.last=o={index:r=p(t,!0),key:t,value:n,previous:i=a.last,next:void 0,removed:!1},a.first||(a.first=o),i&&(i.next=o),h?a.size++:e.size++,"F"!==r&&(a.index[r]=o)),e},b=function(e,t){var n,i=g(e),r=p(t);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==t)return n};return a(f,{clear:function(){var e=g(this),t=e.index,n=e.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,h?e.size=0:this.size=0},delete:function(e){var t=g(this),n=b(this,e);if(n){var i=n.next,r=n.previous;delete t.index[n.index],n.removed=!0,r&&(r.next=i),i&&(i.previous=r),t.first==n&&(t.first=i),t.last==n&&(t.last=r),h?t.size--:this.size--}return!!n},forEach:function(e){var t,n=g(this),i=o(e,arguments.length>1?arguments[1]:void 0);while(t=t?t.next:n.first){i(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!b(this,e)}}),a(f,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),h&&i(f,"size",{get:function(){return g(this).size}}),d},setStrong:function(e,t,n){var i=t+" Iterator",r=m(t),a=m(i);l(e,t,(function(e,t){v(this,{type:i,target:e,state:r(e),kind:t,last:void 0})}),(function(){var e=a(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?d("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,d(void 0,!0))}),n?"entries":"values",!n,!0),f(t)}}},"65f0":function(e,t,n){var i=n("0b42");e.exports=function(e,t){return new(i(e))(0===t?0:t)}},"68ee":function(e,t,n){var i=n("e330"),r=n("d039"),a=n("1626"),o=n("f5df"),s=n("d066"),u=n("8925"),c=function(){},l=[],d=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,h=i(f.exec),p=!f.exec(c),g=function(e){if(!a(e))return!1;try{return d(c,l,e),!0}catch(t){return!1}},v=function(e){if(!a(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!h(f,u(e))}catch(t){return!0}};v.sham=!0,e.exports=!d||r((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?v:g},6964:function(e,t,n){var i=n("cb2d");e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},"69f3":function(e,t,n){var i,r,a,o=n("cdce"),s=n("da84"),u=n("861d"),c=n("9112"),l=n("1a2d"),d=n("c6cd"),f=n("f772"),h=n("d012"),p=s.TypeError,g=s.WeakMap;if(o||d.state){var v=d.state||(d.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,i=function(e,t){if(v.has(e))throw p("Object already initialized");return t.facade=e,v.set(e,t),t},r=function(e){return v.get(e)||{}},a=function(e){return v.has(e)}}else{var m=f("state");h[m]=!0,i=function(e,t){if(l(e,m))throw p("Object already initialized");return t.facade=e,c(e,m,t),t},r=function(e){return l(e,m)?e[m]:{}},a=function(e){return l(e,m)}}e.exports={set:i,get:r,has:a,enforce:function(e){return a(e)?r(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=r(t)).type!==e)throw p("Incompatible receiver, "+e+" required");return n}}}},"6b75":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}},"6c57":function(e,t,n){var i=n("23e7"),r=n("da84");i({global:!0,forced:r.globalThis!==r},{globalThis:r})},"6c59":function(e,t){e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},"6d61":function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),a=n("e330"),o=n("94ca"),s=n("cb2d"),u=n("f183"),c=n("2266"),l=n("19aa"),d=n("1626"),f=n("7234"),h=n("861d"),p=n("d039"),g=n("1c7e"),v=n("d44e"),m=n("7156");e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),_=y?"set":"add",w=r[e],T=w&&w.prototype,S=w,k={},x=function(e){var t=a(T[e]);s(T,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!h(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return b&&!h(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!h(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})},C=o(e,!d(w)||!(b||T.forEach&&!p((function(){(new w).entries().next()}))));if(C)S=n.getConstructor(t,e,y,_),u.enable();else if(o(e,!0)){var E=new S,A=E[_](b?{}:-0,1)!=E,O=p((function(){E.has(1)})),j=g((function(e){new w(e)})),I=!b&&p((function(){var e=new w,t=5;while(t--)e[_](t,t);return!e.has(-0)}));j||(S=t((function(e,t){l(e,T);var n=m(new w,e,S);return f(t)||c(t,n[_],{that:n,AS_ENTRIES:y}),n})),S.prototype=T,T.constructor=S),(O||I)&&(x("delete"),x("has"),y&&x("get")),(I||A)&&x(_),b&&T.clear&&delete T.clear}return k[e]=S,i({global:!0,constructor:!0,forced:S!=w},k),v(S,e),b||n.setStrong(S,e,y),S}},"6e7c":function(e,t,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=t.ParseStream=t.LineStream=void 0,n("14d9"),n("c975"),n("ac1f"),n("e25e"),n("4d63"),n("c607"),n("2c3e"),n("25f0"),n("1276"),n("fb6a"),n("5319"),n("498a"),n("13d5"),n("d3b7"),n("99af"),n("159b"),n("acd8"),n("00b4"),n("466d"),n("ace4"),n("fb2c"),n("907a"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("986a"),n("1d02"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),n("d81d"),n("b64b");var r=i(n("55b5")),a=i(n("5883")),o=i(n("a559")),s=i(n("3c96")),u=i(n("758f")),c=function(e){function t(){var t;return t=e.call(this)||this,t.buffer="",t}(0,r.default)(t,e);var n=t.prototype;return n.push=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t}(a.default);t.LineStream=c;var l=String.fromCharCode(9),d=function(e){var t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),n={};return t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),n},f=function(e){var t,n=e.split(function(){return new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')}()),i={},r=n.length;while(r--)""!==n[r]&&(t=/([^=]*)=(.*)/.exec(n[r]).slice(1),t[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),i[t[0]]=t[1]);return i},h=function(e){function t(){var t;return t=e.call(this)||this,t.customParsers=[],t.tagMappers=[],t}(0,r.default)(t,e);var n=t.prototype;return n.push=function(e){var t,n,i=this;if(e=e.trim(),0!==e.length)if("#"===e[0]){var r=this.tagMappers.reduce((function(t,n){var i=n(e);return i===e?t:t.concat([i])}),[e]);r.forEach((function(e){for(var r=0;r<i.customParsers.length;r++)if(i.customParsers[r].call(i,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e),t)i.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),void i.trigger("data",n);if(t=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),void i.trigger("data",n);if(t=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(e),t)return n=(0,o.default)(d(t[1]),{type:"tag",tagType:"byterange"}),void i.trigger("data",n);if(t=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e),t)return n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-MAP:?(.*)$/.exec(e),t){if(n={type:"tag",tagType:"map"},t[1]){var a=f(t[1]);a.URI&&(n.uri=a.URI),a.BYTERANGE&&(n.byterange=d(a.BYTERANGE))}i.trigger("data",n)}else if(t=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e),t){if(n={type:"tag",tagType:"stream-inf"},t[1]){if(n.attributes=f(t[1]),n.attributes.RESOLUTION){var s=n.attributes.RESOLUTION.split("x"),u={};s[0]&&(u.width=parseInt(s[0],10)),s[1]&&(u.height=parseInt(s[1],10)),n.attributes.RESOLUTION=u}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}i.trigger("data",n)}else{if(t=/^#EXT-X-MEDIA:?(.*)$/.exec(e),t)return n={type:"tag",tagType:"media"},t[1]&&(n.attributes=f(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-ENDLIST/.exec(e),t)i.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e),t)i.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e),t)return n={type:"tag",tagType:"program-date-time"},t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-KEY:?(.*)$/.exec(e),t)return n={type:"tag",tagType:"key"},t[1]&&(n.attributes=f(t[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void i.trigger("data",n);if(t=/^#EXT-X-START:?(.*)$/.exec(e),t)return n={type:"tag",tagType:"start"},t[1]&&(n.attributes=f(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void i.trigger("data",n);if(t=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-out-cont"},t[1]?n.data=t[1]:n.data="",void i.trigger("data",n);if(t=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-out"},t[1]?n.data=t[1]:n.data="",void i.trigger("data",n);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-in"},t[1]?n.data=t[1]:n.data="",void i.trigger("data",n);if(t=/^#EXT-X-SKIP:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"skip"},n.attributes=f(t[1]),n.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(n.attributes["SKIPPED-SEGMENTS"]=parseInt(n.attributes["SKIPPED-SEGMENTS"],10)),n.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(n.attributes["RECENTLY-REMOVED-DATERANGES"]=n.attributes["RECENTLY-REMOVED-DATERANGES"].split(l)),void i.trigger("data",n);if(t=/^#EXT-X-PART:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"part"},n.attributes=f(t[1]),["DURATION"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),["INDEPENDENT","GAP"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))})),n.attributes.hasOwnProperty("BYTERANGE")&&(n.attributes.byterange=d(n.attributes.BYTERANGE)),void i.trigger("data",n);if(t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"server-control"},n.attributes=f(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))})),void i.trigger("data",n);if(t=/^#EXT-X-PART-INF:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"part-inf"},n.attributes=f(t[1]),["PART-TARGET"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),void i.trigger("data",n);if(t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"preload-hint"},n.attributes=f(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach((function(e){if(n.attributes.hasOwnProperty(e)){n.attributes[e]=parseInt(n.attributes[e],10);var t="BYTERANGE-LENGTH"===e?"length":"offset";n.attributes.byterange=n.attributes.byterange||{},n.attributes.byterange[t]=n.attributes[e],delete n.attributes[e]}})),void i.trigger("data",n);if(t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"rendition-report"},n.attributes=f(t[1]),["LAST-MSN","LAST-PART"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseInt(n.attributes[e],10))})),void i.trigger("data",n);i.trigger("data",{type:"tag",data:e.slice(4)})}}}else i.trigger("data",{type:"comment",text:e.slice(1)})}))}else this.trigger("data",{type:"uri",uri:e})},n.addParser=function(e){var t=this,n=e.expression,i=e.customType,r=e.dataParser,a=e.segment;"function"!==typeof r&&(r=function(e){return e}),this.customParsers.push((function(e){var o=n.exec(e);if(o)return t.trigger("data",{type:"custom",data:r(e),customType:i,segment:a}),!0}))},n.addTagMapper=function(e){var t=e.expression,n=e.map;this.tagMappers.push((function(e){return t.test(e)?n(e):e}))},t}(a.default);t.ParseStream=h;var p=function(e){var t={};return Object.keys(e).forEach((function(n){t[function(e){return e.toLowerCase().replace(/-(\w)/g,(function(e){return e[1].toUpperCase()}))}(n)]=e[n]})),t},g=function(e){var t=e.serverControl,n=e.targetDuration,i=e.partTargetDuration;if(t){var r="#EXT-X-SERVER-CONTROL",a="holdBack",o="partHoldBack",s=n&&3*n,u=i&&2*i;n&&!t.hasOwnProperty(a)&&(t[a]=s,this.trigger("info",{message:r+" defaulting HOLD-BACK to targetDuration * 3 ("+s+")."})),s&&t[a]<s&&(this.trigger("warn",{message:r+" clamping HOLD-BACK ("+t[a]+") to targetDuration * 3 ("+s+")"}),t[a]=s),i&&!t.hasOwnProperty(o)&&(t[o]=3*i,this.trigger("info",{message:r+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+t[o]+")."})),i&&t[o]<u&&(this.trigger("warn",{message:r+" clamping PART-HOLD-BACK ("+t[o]+") to partTargetDuration * 2 ("+u+")."}),t[o]=u)}},v=function(e){function t(){var t;t=e.call(this)||this,t.lineStream=new c,t.parseStream=new h,t.lineStream.pipe(t.parseStream);var n,i,r=(0,s.default)(t),a=[],l={},d=!1,f=function(){},v={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},m=0;t.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var y=0,b=0;return t.on("end",(function(){l.uri||!l.parts&&!l.preloadHints||(!l.map&&n&&(l.map=n),!l.key&&i&&(l.key=i),l.timeline||"number"!==typeof m||(l.timeline=m),t.manifest.preloadSegment=l)})),t.parseStream.on("data",(function(e){var t,s;({tag:function(){({version:function(){e.version&&(this.manifest.version=e.version)},"allow-cache":function(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var t={};"length"in e&&(l.byterange=t,t.length=e.length,"offset"in e||(e.offset=y)),"offset"in e&&(l.byterange=t,t.offset=e.offset),y=t.offset+t.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.duration>0&&(l.duration=e.duration),0===e.duration&&(l.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=a},key:function(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes});if("com.microsoft.playready"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:(0,u.default)(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),i={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},"undefined"!==typeof e.attributes.IV&&(i.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else i=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,m=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){n={},e.uri&&(n.uri=e.uri),e.byterange&&(n.byterange=e.byterange),i&&(n.key=i)},"stream-inf":function(){this.manifest.playlists=a,this.manifest.mediaGroups=this.manifest.mediaGroups||v,e.attributes?(l.attributes||(l.attributes={}),(0,o.default)(l.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||v,e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME){var n=this.manifest.mediaGroups[e.attributes.TYPE];n[e.attributes["GROUP-ID"]]=n[e.attributes["GROUP-ID"]]||{},t=n[e.attributes["GROUP-ID"]],s={default:/yes/i.test(e.attributes.DEFAULT)},s.default?s.autoselect=!0:s.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(s.language=e.attributes.LANGUAGE),e.attributes.URI&&(s.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(s.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(s.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(s.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=s}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){m+=1,l.discontinuity=!0,this.manifest.discontinuityStarts.push(a.length)},"program-date-time":function(){"undefined"===typeof this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),l.dateTimeString=e.dateTimeString,l.dateTimeObject=e.dateTimeObject},targetduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,g.call(this,this.manifest))},start:function(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){l.cueOut=e.data},"cue-out-cont":function(){l.cueOutCont=e.data},"cue-in":function(){l.cueIn=e.data},skip:function(){this.manifest.skip=p(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part:function(){var t=this;d=!0;var n=this.manifest.segments.length,i=p(e.attributes);l.parts=l.parts||[],l.parts.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=b),b=i.byterange.offset+i.byterange.length);var r=l.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+r+" for segment #"+n,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((function(e,n){e.hasOwnProperty("lastPart")||t.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+n+" lacks required attribute(s): LAST-PART"})}))},"server-control":function(){var t=this.manifest.serverControl=p(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),g.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var t=this.manifest.segments.length,n=p(e.attributes),i=n.type&&"PART"===n.type;l.preloadHints=l.preloadHints||[],l.preloadHints.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=i?b:0,i&&(b=n.byterange.offset+n.byterange.length)));var r=l.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t,e.attributes,["TYPE","URI"]),n.type)for(var a=0;a<l.preloadHints.length-1;a++){var o=l.preloadHints[a];o.type&&(o.type===n.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t+" has the same TYPE "+n.type+" as preload hint #"+a}))}},"rendition-report":function(){var t=p(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t);var n=this.manifest.renditionReports.length-1,i=["LAST-MSN","URI"];d&&i.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+n,e.attributes,i)},"part-inf":function(){this.manifest.partInf=p(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),g.call(this,this.manifest)}}[e.tagType]||f).call(r)},uri:function(){l.uri=e.uri,a.push(l),this.manifest.targetDuration&&!("duration"in l)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),l.duration=this.manifest.targetDuration),i&&(l.key=i),l.timeline=m,n&&(l.map=n),b=0,l={}},comment:function(){},custom:function(){e.segment?(l.custom=l.custom||{},l.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(r)})),t}(0,r.default)(t,e);var n=t.prototype;return n.warnOnMissingAttributes_=function(e,t,n){var i=[];n.forEach((function(e){t.hasOwnProperty(e)||i.push(e)})),i.length&&this.trigger("warn",{message:e+" lacks required attribute(s): "+i.join(", ")})},n.push=function(e){this.lineStream.push(e)},n.end=function(){this.lineStream.push("\n"),this.trigger("end")},n.addParser=function(e){this.parseStream.addParser(e)},n.addTagMapper=function(e){this.parseStream.addTagMapper(e)},t}(a.default);t.Parser=v},"6f48":function(e,t,n){"use strict";var i=n("6d61"),r=n("6566");i("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r)},"6f53":function(e,t,n){var i=n("83ab"),r=n("e330"),a=n("df75"),o=n("fc6a"),s=n("d1e7").f,u=r(s),c=r([].push),l=function(e){return function(t){var n,r=o(t),s=a(r),l=s.length,d=0,f=[];while(l>d)n=s[d++],i&&!u(r,n)||c(f,e?[n,r[n]]:r[n]);return f}};e.exports={entries:l(!0),values:l(!1)}},"6f8f":function(e,t,n){n("d3b7"),n("f8c9"),n("4ae1"),e.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports["default"]=e.exports},7037:function(e,t,n){function i(t){return e.exports=i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,i(t)}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},7039:function(e,t,n){var i=n("23e7"),r=n("d039"),a=n("057f").f,o=r((function(){return!Object.getOwnPropertyNames(1)}));i({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:a})},7149:function(e,t,n){"use strict";var i=n("23e7"),r=n("d066"),a=n("c430"),o=n("d256"),s=n("4738").CONSTRUCTOR,u=n("cdf9"),c=r("Promise"),l=a&&!s;i({target:"Promise",stat:!0,forced:a||s},{resolve:function(e){return u(l&&this===c?o:this,e)}})},7156:function(e,t,n){var i=n("1626"),r=n("861d"),a=n("d2bb");e.exports=function(e,t,n){var o,s;return a&&i(o=t.constructor)&&o!==n&&r(s=o.prototype)&&s!==n.prototype&&a(e,s),e}},7234:function(e,t){e.exports=function(e){return null===e||void 0===e}},"72ab":function(e,t,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.toPlaylists=t.toM3u8=t.stringToMpdXml=t.parseUTCTiming=t.parse=t.inheritAttributes=t.generateSidxKey=t.addSidxSegmentsToPlaylist=t.VERSION=void 0,n("13d5"),n("d3b7"),n("159b"),n("b64b"),n("99af"),n("d81d"),n("14d9"),n("e25e"),n("aff5"),n("a9e3"),n("d9e2"),n("d401"),n("4de4"),n("4e82"),n("3c65"),n("c975"),n("ac1f"),n("5319"),n("498a"),n("fb6a"),n("acd8"),n("00b4");var r=i(n("53ca")),a=i(n("9c0d")),o=i(n("4924")),s=n("2507"),u=i(n("758f")),c=n("bf11"),l=function(e){return!!e&&"object"===(0,r.default)(e)},d=function e(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.reduce((function(t,n){return"object"!==(0,r.default)(n)||Object.keys(n).forEach((function(i){Array.isArray(t[i])&&Array.isArray(n[i])?t[i]=t[i].concat(n[i]):l(t[i])&&l(n[i])?t[i]=e(t[i],n[i]):t[i]=n[i]})),t}),{})},f=function(e){return Object.keys(e).map((function(t){return e[t]}))},h=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},p=function(e){if(!e.length)return[];for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t},g=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1},v={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"},m=function(e){var t=e.baseUrl,n=void 0===t?"":t,i=e.source,r=void 0===i?"":i,s=e.range,u=void 0===s?"":s,c=e.indexRange,l=void 0===c?"":c,d={uri:r,resolvedUri:(0,a.default)(n||"",r)};if(u||l){var f,h=u||l,p=h.split("-"),g=o.default.BigInt?o.default.BigInt(p[0]):parseInt(p[0],10),v=o.default.BigInt?o.default.BigInt(p[1]):parseInt(p[1],10);g<Number.MAX_SAFE_INTEGER&&"bigint"===typeof g&&(g=Number(g)),v<Number.MAX_SAFE_INTEGER&&"bigint"===typeof v&&(v=Number(v)),f="bigint"===typeof v||"bigint"===typeof g?o.default.BigInt(v)-o.default.BigInt(g)+o.default.BigInt(1):v-g+1,"bigint"===typeof f&&f<Number.MAX_SAFE_INTEGER&&(f=Number(f)),d.byterange={length:f,offset:g}}return d},y=function(e){return e&&"number"!==typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e},b={static:function(e){var t=e.duration,n=e.timescale,i=void 0===n?1:n,r=e.sourceDuration,a=e.periodDuration,o=y(e.endNumber),s=t/i;return"number"===typeof o?{start:0,end:o}:"number"===typeof a?{start:0,end:a/s}:{start:0,end:r/s}},dynamic:function(e){var t=e.NOW,n=e.clientOffset,i=e.availabilityStartTime,r=e.timescale,a=void 0===r?1:r,o=e.duration,s=e.periodStart,u=void 0===s?0:s,c=e.minimumUpdatePeriod,l=void 0===c?0:c,d=e.timeShiftBufferDepth,f=void 0===d?1/0:d,h=y(e.endNumber),p=(t+n)/1e3,g=i+u,v=p+l,m=v-g,b=Math.ceil(m*a/o),_=Math.floor((p-g-f)*a/o),w=Math.floor((p-g)*a/o);return{start:Math.max(0,_),end:"number"===typeof h?h:Math.min(b,w)}}},_=function(e){var t=e.type,n=e.duration,i=e.timescale,r=void 0===i?1:i,a=e.periodDuration,o=e.sourceDuration,s=b[t](e),u=s.start,c=s.end,l=function(e,t){for(var n=[],i=e;i<t;i++)n.push(i);return n}(u,c).map(function(e){return function(t){var n=e.duration,i=e.timescale,r=void 0===i?1:i,a=e.periodStart,o=e.startNumber,s=void 0===o?1:o;return{number:s+t,duration:n/r,timeline:a,time:t*n}}}(e));if("static"===t){var d=l.length-1,f="number"===typeof a?a:o;l[d].duration=f-n/r*d}return l},w=function(e){var t=e.baseUrl,n=e.initialization,i=void 0===n?{}:n,r=e.sourceDuration,a=e.indexRange,o=void 0===a?"":a,s=e.periodStart,u=e.presentationTime,c=e.number,l=void 0===c?0:c,d=e.duration;if(!t)throw new Error(v.NO_BASE_URL);var f=m({baseUrl:t,source:i.sourceURL,range:i.range}),h=m({baseUrl:t,source:t,indexRange:o});if(h.map=f,d){var p=_(e);p.length&&(h.duration=p[0].duration,h.timeline=p[0].timeline)}else r&&(h.duration=r,h.timeline=s);return h.presentationTime=u||s,h.number=l,[h]},T=function(e,t,n){var i,r=e.sidx.map?e.sidx.map:null,a=e.sidx.duration,s=e.timeline||0,u=e.sidx.byterange,c=u.offset+u.length,l=t.timescale,d=t.references.filter((function(e){return 1!==e.referenceType})),f=[],h=e.endList?"static":"dynamic",p=e.sidx.timeline,g=p,v=e.mediaSequence||0;i="bigint"===typeof t.firstOffset?o.default.BigInt(c)+t.firstOffset:c+t.firstOffset;for(var m=0;m<d.length;m++){var y=t.references[m],b=y.referencedSize,_=y.subsegmentDuration,T=void 0;T="bigint"===typeof i?i+o.default.BigInt(b)-o.default.BigInt(1):i+b-1;var S=i+"-"+T,k={baseUrl:n,timescale:l,timeline:s,periodStart:p,presentationTime:g,number:v,duration:_,sourceDuration:a,indexRange:S,type:h},x=w(k)[0];r&&(x.map=r),f.push(x),i+="bigint"===typeof i?o.default.BigInt(b):b,g+=_/l,v++}return e.segments=f,e};t.addSidxSegmentsToPlaylist=T;var S=["AUDIO","SUBTITLES"],k=function(e){return function(e,t){return f(e.reduce((function(e,n){return n.forEach((function(n){e[t(n)]=n})),e}),{}))}(e,(function(e){var t=e.timeline;return t})).sort((function(e,t){return e.timeline>t.timeline?1:-1}))},x=function(e){var t=[];return(0,s.forEachMediaGroup)(e,S,(function(e,n,i,r){t=t.concat(e.playlists||[])})),t},C=function(e){var t=e.playlist,n=e.mediaSequence;t.mediaSequence=n,t.segments.forEach((function(e,n){e.number=t.mediaSequence+n}))},E=function(e){var t=e.oldManifest,n=e.newManifest,i=t.playlists.concat(x(t)),r=n.playlists.concat(x(n));return n.timelineStarts=k([t.timelineStarts,n.timelineStarts]),function(e){var t=e.oldPlaylists,n=e.newPlaylists,i=e.timelineStarts;n.forEach((function(e){e.discontinuitySequence=g(i,(function(t){var n=t.timeline;return n===e.timeline}));var n=function(e,t){for(var n=0;n<e.length;n++)if(e[n].attributes.NAME===t)return e[n];return null}(t,e.attributes.NAME);if(n&&!e.sidx){var r=e.segments[0],a=g(n.segments,(function(e){return Math.abs(e.presentationTime-r.presentationTime)<1/60}));if(-1===a)return C({playlist:e,mediaSequence:n.mediaSequence+n.segments.length}),e.segments[0].discontinuity=!0,e.discontinuityStarts.unshift(0),void((!n.segments.length&&e.timeline>n.timeline||n.segments.length&&e.timeline>n.segments[n.segments.length-1].timeline)&&e.discontinuitySequence--);var o=n.segments[a];o.discontinuity&&!r.discontinuity&&(r.discontinuity=!0,e.discontinuityStarts.unshift(0),e.discontinuitySequence--),C({playlist:e,mediaSequence:n.segments[a].number})}}))}({oldPlaylists:i,newPlaylists:r,timelineStarts:n.timelineStarts}),n},A=function(e){return e&&e.uri+"-"+function(e){var t;return t="bigint"===typeof e.offset||"bigint"===typeof e.length?o.default.BigInt(e.offset)+o.default.BigInt(e.length)-o.default.BigInt(1):e.offset+e.length-1,e.offset+"-"+t}(e.byterange)};t.generateSidxKey=A;var O=function(e){var t=f(e.reduce((function(e,t){var n=t.attributes.id+(t.attributes.lang||"");if(e[n]){var i;if(t.segments)t.segments[0]&&(t.segments[0].discontinuity=!0),(i=e[n].segments).push.apply(i,t.segments);t.attributes.contentProtection&&(e[n].attributes.contentProtection=t.attributes.contentProtection)}else e[n]=t,e[n].attributes.timelineStarts=[];return e[n].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e}),{}));return t.map((function(e){return e.discontinuityStarts=function(e,t){return e.reduce((function(e,n,i){return n[t]&&e.push(i),e}),[])}(e.segments||[],"discontinuity"),e}))},j=function(e,t){var n=A(e.sidx),i=n&&t[n]&&t[n].sidx;return i&&T(e,i,e.sidx.resolvedUri),e},I=function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var n in e)e[n]=j(e[n],t);return e},P=function(e){var t,n=e.attributes,i=e.segments,r=e.sidx,a=e.discontinuityStarts,o={attributes:(t={NAME:n.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:n.width,height:n.height},CODECS:n.codecs,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuityStarts:a,timelineStarts:n.timelineStarts,segments:i};return n.contentProtection&&(o.contentProtection=n.contentProtection),r&&(o.sidx=r),o},M=function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType},L=function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType},D=function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType},R=function(e){return e?Object.keys(e).reduce((function(t,n){var i=e[n];return t.concat(i.playlists)}),[]):[]},N=function(e){var t,n=e.dashPlaylists,i=e.locations,r=e.sidxMapping,a=void 0===r?{}:r,o=e.previousManifest;if(!n.length)return{};var s=n[0].attributes,u=s.sourceDuration,c=s.type,l=s.suggestedPresentationDelay,d=s.minimumUpdatePeriod,f=O(n.filter(M)).map(P),h=O(n.filter(L)),p=O(n.filter(D)),v=n.map((function(e){return e.attributes.captionServices})).filter(Boolean),m={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(t={AUDIO:{},VIDEO:{}},t["CLOSED-CAPTIONS"]={},t.SUBTITLES={},t),uri:"",duration:u,playlists:I(f,a)};d>=0&&(m.minimumUpdatePeriod=1e3*d),i&&(m.locations=i),"dynamic"===c&&(m.suggestedPresentationDelay=l);var y=0===m.playlists.length,b=h.length?function(e,t,n){var i;void 0===t&&(t={}),void 0===n&&(n=!1);var r=e.reduce((function(e,r){var a=r.attributes.role&&r.attributes.role.value||"",o=r.attributes.lang||"",s=r.attributes.label||"main";if(o&&!r.attributes.label){var u=a?" ("+a+")":"";s=""+r.attributes.lang+u}e[s]||(e[s]={language:o,autoselect:!0,default:"main"===a,playlists:[],uri:""});var c=j(function(e,t){var n,i=e.attributes,r=e.segments,a=e.sidx,o=e.mediaSequence,s=e.discontinuitySequence,u=e.discontinuityStarts,c={attributes:(n={NAME:i.id,BANDWIDTH:i.bandwidth,CODECS:i.codecs},n["PROGRAM-ID"]=1,n),uri:"",endList:"static"===i.type,timeline:i.periodStart,resolvedUri:"",targetDuration:i.duration,discontinuitySequence:s,discontinuityStarts:u,timelineStarts:i.timelineStarts,mediaSequence:o,segments:r};return i.contentProtection&&(c.contentProtection=i.contentProtection),a&&(c.sidx=a),t&&(c.attributes.AUDIO="audio",c.attributes.SUBTITLES="subs"),c}(r,n),t);return e[s].playlists.push(c),"undefined"===typeof i&&"main"===a&&(i=r,i.default=!0),e}),{});if(!i){var a=Object.keys(r)[0];r[a].default=!0}return r}(h,a,y):null,_=p.length?function(e,t){return void 0===t&&(t={}),e.reduce((function(e,n){var i=n.attributes.lang||"text";return e[i]||(e[i]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),e[i].playlists.push(j(function(e){var t,n=e.attributes,i=e.segments,r=e.mediaSequence,a=e.discontinuityStarts,o=e.discontinuitySequence;"undefined"===typeof i&&(i=[{uri:n.baseUrl,timeline:n.periodStart,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration);var s=(t={NAME:n.id,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t);return n.codecs&&(s.CODECS=n.codecs),{attributes:s,uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:n.baseUrl||"",targetDuration:n.duration,timelineStarts:n.timelineStarts,discontinuityStarts:a,discontinuitySequence:o,mediaSequence:r,segments:i}}(n),t)),e}),{})}(p,a):null,w=f.concat(R(b),R(_)),T=w.map((function(e){var t=e.timelineStarts;return t}));return m.timelineStarts=k(T),function(e,t){e.forEach((function(e){e.mediaSequence=0,e.discontinuitySequence=g(t,(function(t){var n=t.timeline;return n===e.timeline})),e.segments&&e.segments.forEach((function(e,t){e.number=t}))}))}(w,m.timelineStarts),b&&(m.mediaGroups.AUDIO.audio=b),_&&(m.mediaGroups.SUBTITLES.subs=_),v.length&&(m.mediaGroups["CLOSED-CAPTIONS"].cc=function(e){return e.reduce((function(e,t){return t?(t.forEach((function(t){var n=t.channel,i=t.language;e[i]={autoselect:!1,default:!1,instreamId:n,language:i},t.hasOwnProperty("aspectRatio")&&(e[i].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[i].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[i]["3D"]=t["3D"])})),e):e}),{})}(v)),o?E({oldManifest:o,newManifest:m}):m};t.toM3u8=N;var B=function(e,t,n){var i=e.NOW,r=e.clientOffset,a=e.availabilityStartTime,o=e.timescale,s=void 0===o?1:o,u=e.periodStart,c=void 0===u?0:u,l=e.minimumUpdatePeriod,d=void 0===l?0:l,f=(i+r)/1e3,h=a+c,p=f+d,g=p-h;return Math.ceil((g*s-t)/n)},U=function(e,t){for(var n=e.type,i=e.minimumUpdatePeriod,r=void 0===i?0:i,a=e.media,o=void 0===a?"":a,s=e.sourceDuration,u=e.timescale,c=void 0===u?1:u,l=e.startNumber,d=void 0===l?1:l,f=e.periodStart,h=[],p=-1,g=0;g<t.length;g++){var v=t[g],m=v.d,y=v.r||0,b=v.t||0;p<0&&(p=b),b&&b>p&&(p=b);var _=void 0;if(y<0){var w=g+1;_=w===t.length?"dynamic"===n&&r>0&&o.indexOf("$Number$")>0?B(e,p,m):(s*c-p)/m:(t[w].t-p)/m}else _=y+1;var T=d+h.length+_,S=d+h.length;while(S<T)h.push({number:S,duration:m/c,time:p,timeline:f}),p+=m,S++}return h},F=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,$=function(e,t){return e.replace(F,function(e){return function(t,n,i,r){if("$$"===t)return"$";if("undefined"===typeof e[n])return t;var a=""+e[n];return"RepresentationID"===n?a:(r=i?parseInt(r,10):1,a.length>=r?a:""+new Array(r-a.length+1).join("0")+a)}}(t))},H=function(e,t){var n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},i=e.initialization,r=void 0===i?{sourceURL:"",range:""}:i,o=m({baseUrl:e.baseUrl,source:$(r.sourceURL,n),range:r.range}),s=function(e,t){return e.duration||t?e.duration?_(e):U(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]}(e,t);return s.map((function(t){n.Number=t.number,n.Time=t.time;var i=$(e.media||"",n),r=e.timescale||1,s=e.presentationTimeOffset||0,u=e.periodStart+(t.time-s)/r,c={uri:i,timeline:t.timeline,duration:t.duration,resolvedUri:(0,a.default)(e.baseUrl||"",i),map:o,number:t.number,presentationTime:u};return c}))},V=function(e,t){var n=e.duration,i=e.segmentUrls,r=void 0===i?[]:i,a=e.periodStart;if(!n&&!t||n&&t)throw new Error(v.SEGMENT_TIME_UNSPECIFIED);var o,s=r.map((function(t){return function(e,t){var n=e.baseUrl,i=e.initialization,r=void 0===i?{}:i,a=m({baseUrl:n,source:r.sourceURL,range:r.range}),o=m({baseUrl:n,source:t.media,range:t.mediaRange});return o.map=a,o}(e,t)}));n&&(o=_(e)),t&&(o=U(e,t));var u=o.map((function(t,n){if(s[n]){var i=s[n],r=e.timescale||1,o=e.presentationTimeOffset||0;return i.timeline=t.timeline,i.duration=t.duration,i.number=t.number,i.presentationTime=a+(t.time-o)/r,i}})).filter((function(e){return e}));return u},z=function(e){var t,n,i=e.attributes,r=e.segmentInfo;r.template?(n=H,t=d(i,r.template)):r.base?(n=w,t=d(i,r.base)):r.list&&(n=V,t=d(i,r.list));var a={attributes:i};if(!n)return a;var o=n(t,r.segmentTimeline);if(t.duration){var s=t,u=s.duration,c=s.timescale,l=void 0===c?1:c;t.duration=u/l}else o.length?t.duration=o.reduce((function(e,t){return Math.max(e,Math.ceil(t.duration))}),0):t.duration=0;return a.attributes=t,a.segments=o,r.base&&t.indexRange&&(a.sidx=o[0],a.segments=[]),a},q=function(e){return e.map(z)};t.toPlaylists=q;var W=function(e,t){return p(e.childNodes).filter((function(e){var n=e.tagName;return n===t}))},G=function(e){return e.textContent.trim()},Y=function(e){var t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;var n=t.slice(1),i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],u=n[5];return 31536e3*parseFloat(i||0)+2592e3*parseFloat(r||0)+86400*parseFloat(a||0)+3600*parseFloat(o||0)+60*parseFloat(s||0)+parseFloat(u||0)},X={mediaPresentationDuration:function(e){return Y(e)},availabilityStartTime:function(e){return function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e)}(e)/1e3},minimumUpdatePeriod:function(e){return Y(e)},suggestedPresentationDelay:function(e){return Y(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return Y(e)},start:function(e){return Y(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},presentationTimeOffset:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?Y(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},K=function(e){return e&&e.attributes?p(e.attributes).reduce((function(e,t){var n=X[t.name]||X.DEFAULT;return e[t.name]=n(t.value),e}),{}):{}},Q={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},J=function(e,t){return t.length?h(e.map((function(e){return t.map((function(t){return(0,a.default)(e,G(t))}))}))):e},Z=function(e){var t=W(e,"SegmentTemplate")[0],n=W(e,"SegmentList")[0],i=n&&W(n,"SegmentURL").map((function(e){return d({tag:"SegmentURL"},K(e))})),r=W(e,"SegmentBase")[0],a=n||t,o=a&&W(a,"SegmentTimeline")[0],s=n||r||t,u=s&&W(s,"Initialization")[0],c=t&&K(t);c&&u?c.initialization=u&&K(u):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});var l={template:c,segmentTimeline:o&&W(o,"S").map((function(e){return K(e)})),list:n&&d(K(n),{segmentUrls:i,initialization:K(u)}),base:r&&d(K(r),{initialization:K(u)})};return Object.keys(l).forEach((function(e){l[e]||delete l[e]})),l},ee=function(e,t,n){return function(i){var r=K(i),a=J(t,W(i,"BaseURL")),o=W(i,"Role")[0],s={role:K(o)},c=d(e,r,s),l=W(i,"Accessibility")[0],f=function(e){if("urn:scte:dash:cc:cea-608:2015"===e.schemeIdUri){var t="string"!==typeof e.value?[]:e.value.split(";");return t.map((function(e){var t,n;if(n=e,/^CC\d=/.test(e)){var i=e.split("=");t=i[0],n=i[1]}else/^CC\d$/.test(e)&&(t=e);return{channel:t,language:n}}))}if("urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri){var n="string"!==typeof e.value?[]:e.value.split(";");return n.map((function(e){var t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){var n=e.split("="),i=n[0],r=n[1],a=void 0===r?"":r;t.channel=i,t.language=e,a.split(",").forEach((function(e){var n=e.split(":"),i=n[0],r=n[1];"lang"===i?t.language=r:"er"===i?t.easyReader=Number(r):"war"===i?t.aspectRatio=Number(r):"3D"===i&&(t["3D"]=Number(r))}))}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t}))}}(K(l));f&&(c=d(c,{captionServices:f}));var p=W(i,"Label")[0];if(p&&p.childNodes.length){var g=p.childNodes[0].nodeValue.trim();c=d(c,{label:g})}var v=function(e){return e.reduce((function(e,t){var n=K(t);n.schemeIdUri&&(n.schemeIdUri=n.schemeIdUri.toLowerCase());var i=Q[n.schemeIdUri];if(i){e[i]={attributes:n};var r=W(t,"cenc:pssh")[0];if(r){var a=G(r);e[i].pssh=a&&(0,u.default)(a)}}return e}),{})}(W(i,"ContentProtection"));Object.keys(v).length&&(c=d(c,{contentProtection:v}));var m=Z(i),y=W(i,"Representation"),b=d(n,m);return h(y.map(function(e,t,n){return function(i){var r=W(i,"BaseURL"),a=J(t,r),o=d(e,K(i)),s=Z(i);return a.map((function(e){return{segmentInfo:d(n,s),attributes:d(o,{baseUrl:e})}}))}}(c,a,b)))}},te=function(e,t){return function(n,i){var r=J(t,W(n.node,"BaseURL")),a=d(e,{periodStart:n.attributes.start});"number"===typeof n.attributes.duration&&(a.periodDuration=n.attributes.duration);var o=W(n.node,"AdaptationSet"),s=Z(n.node);return h(o.map(ee(a,r,s)))}},ne=function(e,t){void 0===t&&(t={});var n=t,i=n.manifestUri,r=void 0===i?"":i,a=n.NOW,o=void 0===a?Date.now():a,s=n.clientOffset,u=void 0===s?0:s,c=W(e,"Period");if(!c.length)throw new Error(v.INVALID_NUMBER_OF_PERIOD);var l=W(e,"Location"),d=K(e),f=J([r],W(e,"BaseURL"));d.type=d.type||"static",d.sourceDuration=d.mediaPresentationDuration||0,d.NOW=o,d.clientOffset=u,l.length&&(d.locations=l.map(G));var p=[];return c.forEach((function(e,t){var n=K(e),i=p[t-1];n.start=function(e){var t=e.attributes,n=e.priorPeriodAttributes,i=e.mpdType;return"number"===typeof t.start?t.start:n&&"number"===typeof n.start&&"number"===typeof n.duration?n.start+n.duration:n||"static"!==i?null:0}({attributes:n,priorPeriodAttributes:i?i.attributes:null,mpdType:d.type}),p.push({node:e,attributes:n})})),{locations:d.locations,representationInfo:h(p.map(te(d,f)))}};t.inheritAttributes=ne;var ie=function(e){if(""===e)throw new Error(v.DASH_EMPTY_MANIFEST);var t,n,i=new c.DOMParser;try{t=i.parseFromString(e,"application/xml"),n=t&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(r){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(v.DASH_INVALID_XML);return n};t.stringToMpdXml=ie;t.VERSION="0.21.1";t.parse=function(e,t){void 0===t&&(t={});var n=ne(ie(e),t),i=q(n.representationInfo);return N({dashPlaylists:i,locations:n.locations,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest})};t.parseUTCTiming=function(e){return function(e){var t=W(e,"UTCTiming")[0];if(!t)return null;var n=K(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(v.UNSUPPORTED_UTC_TIMING_SCHEME)}return n}(ie(e))}},"72f7":function(e,t,n){"use strict";var i=n("ebb5").exportTypedArrayMethod,r=n("d039"),a=n("da84"),o=n("e330"),s=a.Uint8Array,u=s&&s.prototype||{},c=[].toString,l=o([].join);r((function(){c.call({})}))&&(c=function(){return l(this)});var d=u.toString!=c;i("toString",c,d)},7342:function(e,t,n){"use strict";function i(e,t){return void 0===t&&(t=Object),t&&"function"===typeof t.freeze?t.freeze(e):e}var r=i({HTML:"text/html",isHTML:function(e){return e===r.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),a=i({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===a.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.freeze=i,t.MIME_TYPE=r,t.NAMESPACE=a},"735e":function(e,t,n){"use strict";var i=n("ebb5"),r=n("81d5"),a=n("f495"),o=n("f5df"),s=n("c65b"),u=n("e330"),c=n("d039"),l=i.aTypedArray,d=i.exportTypedArrayMethod,f=u("".slice),h=c((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}));d("fill",(function(e){var t=arguments.length;l(this);var n="Big"===f(o(this),0,3)?a(e):+e;return s(r,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),h)},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"74e8":function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),a=n("c65b"),o=n("83ab"),s=n("8aa7"),u=n("ebb5"),c=n("621a"),l=n("19aa"),d=n("5c6c"),f=n("9112"),h=n("eac5"),p=n("50c4"),g=n("0b25"),v=n("182d"),m=n("a04b"),y=n("1a2d"),b=n("f5df"),_=n("861d"),w=n("d9b5"),T=n("7c73"),S=n("3a9b"),k=n("d2bb"),x=n("241c").f,C=n("a078"),E=n("b727").forEach,A=n("2626"),O=n("9bf2"),j=n("06cf"),I=n("69f3"),P=n("7156"),M=I.get,L=I.set,D=I.enforce,R=O.f,N=j.f,B=Math.round,U=r.RangeError,F=c.ArrayBuffer,$=F.prototype,H=c.DataView,V=u.NATIVE_ARRAY_BUFFER_VIEWS,z=u.TYPED_ARRAY_TAG,q=u.TypedArray,W=u.TypedArrayPrototype,G=u.aTypedArrayConstructor,Y=u.isTypedArray,X=function(e,t){G(e);var n=0,i=t.length,r=new e(i);while(i>n)r[n]=t[n++];return r},K=function(e,t){R(e,t,{get:function(){return M(this)[t]}})},Q=function(e){var t;return S($,e)||"ArrayBuffer"==(t=b(e))||"SharedArrayBuffer"==t},J=function(e,t){return Y(e)&&!w(t)&&t in e&&h(+t)&&t>=0},Z=function(e,t){return t=m(t),J(e,t)?d(2,e[t]):N(e,t)},ee=function(e,t,n){return t=m(t),!(J(e,t)&&_(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?R(e,t,n):(e[t]=n.value,e)};o?(V||(j.f=Z,O.f=ee,K(W,"buffer"),K(W,"byteOffset"),K(W,"byteLength"),K(W,"length")),i({target:"Object",stat:!0,forced:!V},{getOwnPropertyDescriptor:Z,defineProperty:ee}),e.exports=function(e,t,n){var o=e.match(/\d+$/)[0]/8,u=e+(n?"Clamped":"")+"Array",c="get"+e,d="set"+e,h=r[u],m=h,y=m&&m.prototype,b={},w=function(e,t){R(e,t,{get:function(){return function(e,t){var n=M(e);return n.view[c](t*o+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,i){var r=M(e);n&&(i=(i=B(i))<0?0:i>255?255:255&i),r.view[d](t*o+r.byteOffset,i,!0)}(this,t,e)},enumerable:!0})};V?s&&(m=t((function(e,t,n,i){return l(e,y),P(function(){return _(t)?Q(t)?void 0!==i?new h(t,v(n,o),i):void 0!==n?new h(t,v(n,o)):new h(t):Y(t)?X(m,t):a(C,m,t):new h(g(t))}(),e,m)})),k&&k(m,q),E(x(h),(function(e){e in m||f(m,e,h[e])})),m.prototype=y):(m=t((function(e,t,n,i){l(e,y);var r,s,u,c=0,d=0;if(_(t)){if(!Q(t))return Y(t)?X(m,t):a(C,m,t);r=t,d=v(n,o);var f=t.byteLength;if(void 0===i){if(f%o)throw U("Wrong length");if(s=f-d,s<0)throw U("Wrong length")}else if(s=p(i)*o,s+d>f)throw U("Wrong length");u=s/o}else u=g(t),s=u*o,r=new F(s);L(e,{buffer:r,byteOffset:d,byteLength:s,length:u,view:new H(r)});while(c<u)w(e,c++)})),k&&k(m,q),y=m.prototype=T(W)),y.constructor!==m&&f(y,"constructor",m),D(y).TypedArrayConstructor=m,z&&f(y,z,u);var S=m!=h;b[u]=m,i({global:!0,constructor:!0,forced:S,sham:!V},b),"BYTES_PER_ELEMENT"in m||f(m,"BYTES_PER_ELEMENT",o),"BYTES_PER_ELEMENT"in y||f(y,"BYTES_PER_ELEMENT",o),A(u)}):e.exports=function(){}},"758f":function(e,t,n){"use strict";(function(e){n("7a82");var i=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){for(var n=function(t){return r.default.atob?r.default.atob(t):e.from(t,"base64").toString("binary")}(t),i=new Uint8Array(n.length),a=0;a<n.length;a++)i[a]=n.charCodeAt(a);return i},n("d401"),n("81b2"),n("0eb6"),n("b7ef"),n("8bd4"),n("d3b7"),n("25f0"),n("ace4"),n("5cc6"),n("907a"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("986a"),n("1d02"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7");var r=i(n("4924"))}).call(this,n("b639").Buffer)},7761:function(e,t,n){"use strict";n("ace4"),n("d3b7"),n("5cc6"),n("907a"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("986a"),n("1d02"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),n("13d5"),n("498a");var i=n("4924");e.exports=function(e,t){return void 0===t&&(t=!1),function(n,r,a){if(n)e(n);else if(r.statusCode>=400&&r.statusCode<=599){var o=a;if(t)if(i.TextDecoder){var s=function(e){void 0===e&&(e="");return e.toLowerCase().split(";").reduce((function(e,t){var n=t.split("="),i=n[0],r=n[1];return"charset"===i.trim()?r.trim():e}),"utf-8")}(r.headers&&r.headers["content-type"]);try{o=new TextDecoder(s).decode(a)}catch(u){}}else o=String.fromCharCode.apply(null,new Uint8Array(a));e({cause:o})}else e(null,a)}}},"77a7":function(e,t){var n=Array,i=Math.abs,r=Math.pow,a=Math.floor,o=Math.log,s=Math.LN2;e.exports={pack:function(e,t,u){var c,l,d,f=n(u),h=8*u-t-1,p=(1<<h)-1,g=p>>1,v=23===t?r(2,-24)-r(2,-77):0,m=e<0||0===e&&1/e<0?1:0,y=0;e=i(e),e!=e||e===1/0?(l=e!=e?1:0,c=p):(c=a(o(e)/s),d=r(2,-c),e*d<1&&(c--,d*=2),e+=c+g>=1?v/d:v*r(2,1-g),e*d>=2&&(c++,d/=2),c+g>=p?(l=0,c=p):c+g>=1?(l=(e*d-1)*r(2,t),c+=g):(l=e*r(2,g-1)*r(2,t),c=0));while(t>=8)f[y++]=255&l,l/=256,t-=8;c=c<<t|l,h+=t;while(h>0)f[y++]=255&c,c/=256,h-=8;return f[--y]|=128*m,f},unpack:function(e,t){var n,i=e.length,a=8*i-t-1,o=(1<<a)-1,s=o>>1,u=a-7,c=i-1,l=e[c--],d=127&l;l>>=7;while(u>0)d=256*d+e[c--],u-=8;n=d&(1<<-u)-1,d>>=-u,u+=t;while(u>0)n=256*n+e[c--],u-=8;if(0===d)d=1-s;else{if(d===o)return n?NaN:l?-1/0:1/0;n+=r(2,t),d-=s}return(l?-1:1)*n*r(2,d-t)}}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"785a":function(e,t,n){var i=n("cc12"),r=i("span").classList,a=r&&r.constructor&&r.constructor.prototype;e.exports=a===Object.prototype?void 0:a},"7a82":function(e,t,n){var i=n("23e7"),r=n("83ab"),a=n("9bf2").f;i({target:"Object",stat:!0,forced:Object.defineProperty!==a,sham:!r},{defineProperty:a})},"7b0b":function(e,t,n){var i=n("1d80"),r=Object;e.exports=function(e){return r(i(e))}},"7c37":function(e,t,n){var i=n("605d");e.exports=function(e){try{if(i)return Function('return require("'+e+'")')()}catch(t){}}},"7c73":function(e,t,n){var i,r=n("825a"),a=n("37e8"),o=n("7839"),s=n("d012"),u=n("1be4"),c=n("cc12"),l=n("f772"),d=l("IE_PROTO"),f=function(){},h=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}g="undefined"!=typeof document?document.domain&&i?p(i):function(){var e,t=c("iframe");return t.style.display="none",u.appendChild(t),t.src=String("javascript:"),e=t.contentWindow.document,e.open(),e.write(h("document.F=Object")),e.close(),e.F}():p(i);var e=o.length;while(e--)delete g["prototype"][o[e]];return g()};s[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f["prototype"]=r(e),n=new f,f["prototype"]=null,n[d]=e):n=g(),void 0===t?n:a.f(n,t)}},"7db0":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").find,a=n("44d2"),o=!0;"find"in[]&&Array(1)["find"]((function(){o=!1})),i({target:"Array",proto:!0,forced:o},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("find")},"7e12":function(e,t,n){var i=n("da84"),r=n("d039"),a=n("e330"),o=n("577e"),s=n("58a8").trim,u=n("5899"),c=a("".charAt),l=i.parseFloat,d=i.Symbol,f=d&&d.iterator,h=1/l(u+"-0")!==-1/0||f&&!r((function(){l(Object(f))}));e.exports=h?function(e){var t=s(o(e)),n=l(t);return 0===n&&"-"==c(t,0)?-0:n}:l},8172:function(e,t,n){var i=n("e065"),r=n("57b9");i("toPrimitive"),r()},"81b2":function(e,t,n){var i=n("23e7"),r=n("d066"),a=n("e330"),o=n("d039"),s=n("577e"),u=n("1a2d"),c=n("d6d6"),l=n("b917").ctoi,d=/[^\d+/a-z]/i,f=/[\t\n\f\r ]+/g,h=/[=]+$/,p=r("atob"),g=String.fromCharCode,v=a("".charAt),m=a("".replace),y=a(d.exec),b=o((function(){return""!==p(" ")})),_=!o((function(){p("a")})),w=!b&&!_&&!o((function(){p()})),T=!b&&!_&&1!==p.length;i({global:!0,enumerable:!0,forced:b||_||w||T},{atob:function(e){if(c(arguments.length,1),w||T)return p(e);var t,n,i=m(s(e),f,""),a="",o=0,b=0;if(i.length%4==0&&(i=m(i,h,"")),i.length%4==1||y(d,i))throw new(r("DOMException"))("The string is not correctly encoded","InvalidCharacterError");while(t=v(i,o++))u(l,t)&&(n=b%4?64*n+l[t]:l[t],b++%4&&(a+=g(255&n>>(-2*b&6))));return a}})},"81d5":function(e,t,n){"use strict";var i=n("7b0b"),r=n("23cb"),a=n("07fa");e.exports=function(e){var t=i(this),n=a(t),o=arguments.length,s=r(o>1?arguments[1]:void 0,n),u=o>2?arguments[2]:void 0,c=void 0===u?n:r(u,n);while(c>s)t[s++]=e;return t}},"825a":function(e,t,n){var i=n("861d"),r=String,a=TypeError;e.exports=function(e){if(i(e))return e;throw a(r(e)+" is not an object")}},"82da":function(e,t,n){var i=n("23e7"),r=n("ebb5"),a=r.NATIVE_ARRAY_BUFFER_VIEWS;i({target:"ArrayBuffer",stat:!0,forced:!a},{isView:r.isView})},"82f8":function(e,t,n){"use strict";var i=n("ebb5"),r=n("4d64").includes,a=i.aTypedArray,o=i.exportTypedArrayMethod;o("includes",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},"83ab":function(e,t,n){var i=n("d039");e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,n){"use strict";var i=n("a04b"),r=n("9bf2"),a=n("5c6c");e.exports=function(e,t,n){var o=i(t);o in e?r.f(e,o,a(0,n)):e[o]=n}},"841c":function(e,t,n){"use strict";var i=n("c65b"),r=n("d784"),a=n("825a"),o=n("7234"),s=n("1d80"),u=n("129f"),c=n("577e"),l=n("dc4a"),d=n("14c3");r("search",(function(e,t,n){return[function(t){var n=s(this),r=o(t)?void 0:l(t,e);return r?i(r,t,n):new RegExp(t)[e](c(n))},function(e){var i=a(this),r=c(e),o=n(t,i,r);if(o.done)return o.value;var s=i.lastIndex;u(s,0)||(i.lastIndex=0);var l=d(i,r);return u(i.lastIndex,s)||(i.lastIndex=s),null===l?-1:l.index}]}))},"84c3":function(e,t,n){var i=n("74e8");i("Uint16",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},"861d":function(e,t,n){var i=n("1626"),r=n("8ea1"),a=r.all;e.exports=r.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:i(e)||e===a}:function(e){return"object"==typeof e?null!==e:i(e)}},8925:function(e,t,n){var i=n("e330"),r=n("1626"),a=n("c6cd"),o=i(Function.toString);r(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),e.exports=a.inspectSource},"8a59":function(e,t,n){var i=n("74e8");i("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}),!0)},"8aa5":function(e,t,n){"use strict";var i=n("6547").charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"8aa7":function(e,t,n){var i=n("da84"),r=n("d039"),a=n("1c7e"),o=n("ebb5").NATIVE_ARRAY_BUFFER_VIEWS,s=i.ArrayBuffer,u=i.Int8Array;e.exports=!o||!r((function(){u(1)}))||!r((function(){new u(-1)}))||!a((function(e){new u,new u(null),new u(1.5),new u(e)}),!0)||r((function(){return 1!==new u(new s(2),1,void 0).length}))},"8bd4":function(e,t,n){var i=n("d066"),r=n("d44e");r(i("DOMException"),"DOMException")},"8ea1":function(e,t){var n="object"==typeof document&&document.all,i="undefined"==typeof n&&void 0!==n;e.exports={all:n,IS_HTMLDDA:i}},"907a":function(e,t,n){"use strict";var i=n("ebb5"),r=n("07fa"),a=n("5926"),o=i.aTypedArray,s=i.exportTypedArrayMethod;s("at",(function(e){var t=o(this),n=r(t),i=a(e),s=i>=0?i:n+i;return s<0||s>=n?void 0:t[s]}))},"90d8":function(e,t,n){var i=n("c65b"),r=n("1a2d"),a=n("3a9b"),o=n("ad6d"),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||r(e,"flags")||!a(s,e)?t:i(o,e)}},"90e3":function(e,t,n){var i=n("e330"),r=0,a=Math.random(),o=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++r+a,36)}},9112:function(e,t,n){var i=n("83ab"),r=n("9bf2"),a=n("5c6c");e.exports=i?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},9152:function(e,t){
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
- t.read=function(e,t,n,i,r){var a,o,s=8*r-i-1,u=(1<<s)-1,c=u>>1,l=-7,d=n?r-1:0,f=n?-1:1,h=e[t+d];for(d+=f,a=h&(1<<-l)-1,h>>=-l,l+=s;l>0;a=256*a+e[t+d],d+=f,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=i;l>0;o=256*o+e[t+d],d+=f,l-=8);if(0===a)a=1-c;else{if(a===u)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,i),a-=c}return(h?-1:1)*o*Math.pow(2,a-i)},t.write=function(e,t,n,i,r,a){var o,s,u,c=8*a-r-1,l=(1<<c)-1,d=l>>1,f=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,h=i?0:a-1,p=i?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),t+=o+d>=1?f/u:f*Math.pow(2,1-d),t*u>=2&&(o++,u/=2),o+d>=l?(s=0,o=l):o+d>=1?(s=(t*u-1)*Math.pow(2,r),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),o=0));r>=8;e[n+h]=255&s,h+=p,s/=256,r-=8);for(o=o<<r|s,c+=r;c>0;e[n+h]=255&o,h+=p,o/=256,c-=8);e[n+h-p]|=128*g}},9263:function(e,t,n){"use strict";var i=n("c65b"),r=n("e330"),a=n("577e"),o=n("ad6d"),s=n("9f7f"),u=n("5692"),c=n("7c73"),l=n("69f3").get,d=n("fce3"),f=n("107c"),h=u("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,g=p,v=r("".charAt),m=r("".indexOf),y=r("".replace),b=r("".slice),_=function(){var e=/a/,t=/b*/g;return i(p,e,"a"),i(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),w=s.BROKEN_CARET,T=void 0!==/()??/.exec("")[1],S=_||T||w||d||f;S&&(g=function(e){var t,n,r,s,u,d,f,S=this,k=l(S),x=a(e),C=k.raw;if(C)return C.lastIndex=S.lastIndex,t=i(g,C,x),S.lastIndex=C.lastIndex,t;var E=k.groups,A=w&&S.sticky,O=i(o,S),j=S.source,I=0,P=x;if(A&&(O=y(O,"y",""),-1===m(O,"g")&&(O+="g"),P=b(x,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==v(x,S.lastIndex-1))&&(j="(?: "+j+")",P=" "+P,I++),n=new RegExp("^(?:"+j+")",O)),T&&(n=new RegExp("^"+j+"$(?!\\s)",O)),_&&(r=S.lastIndex),s=i(p,A?n:S,P),A?s?(s.input=b(s.input,I),s[0]=b(s[0],I),s.index=S.lastIndex,S.lastIndex+=s[0].length):S.lastIndex=0:_&&s&&(S.lastIndex=S.global?s.index+s[0].length:r),T&&s&&s.length>1&&i(h,s[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(s[u]=void 0)})),s&&E)for(s.groups=d=c(null),u=0;u<E.length;u++)f=E[u],d[f[0]]=s[f[1]];return s}),e.exports=g},"92bf":function(e,t,n){n("d3b7"),e.exports=function(e){if(!e)return!1;var t=i.call(e);return"[object Function]"===t||"function"===typeof e&&"[object RegExp]"!==t||"undefined"!==typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var i=Object.prototype.toString},"944a":function(e,t,n){var i=n("d066"),r=n("e065"),a=n("d44e");r("toStringTag"),a(i("Symbol"),"Symbol")},"94ca":function(e,t,n){var i=n("d039"),r=n("1626"),a=/#|\.prototype\./,o=function(e,t){var n=u[s(e)];return n==l||n!=c&&(r(t)?i(t):!!t)},s=o.normalize=function(e){return String(e).replace(a,".").toLowerCase()},u=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},"950f":function(e,t,n){var i=n("7342").freeze;t.XML_ENTITIES=i({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=i({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),t.entityMap=t.HTML_ENTITIES},9667:function(e,t,n){var i=n("7037").default;function r(e){if(e&&"object"===i(e)){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"===typeof e)return u[e];var n=String(e),r=a[n.toLowerCase()];if(r)return r;r=o[n.toLowerCase()];return r||(1===n.length?n.charCodeAt(0):void 0)}r.isEventKey=function(e,t){if(e&&"object"===i(e)){var n=e.which||e.keyCode||e.charCode;if(null===n||void 0===n)return!1;if("string"===typeof t){var r=a[t.toLowerCase()];if(r)return r===n;r=o[t.toLowerCase()];if(r)return r===n}else if("number"===typeof t)return t===n;return!1}},t=e.exports=r;var a=t.code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};
- /*!
- * Programatically add the following
- */
- for(s=97;s<123;s++)a[String.fromCharCode(s)]=s-32;for(var s=48;s<58;s++)a[s-48]=s;for(s=1;s<13;s++)a["f"+s]=s+111;for(s=0;s<10;s++)a["numpad "+s]=s+96;var u=t.names=t.title={};for(s in a)u[a[s]]=s;for(var c in o)a[c]=o[c]},9861:function(e,t,n){n("5352")},"986a":function(e,t,n){"use strict";var i=n("ebb5"),r=n("a258").findLast,a=i.aTypedArray,o=i.exportTypedArrayMethod;o("findLast",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},"99af":function(e,t,n){"use strict";var i=n("23e7"),r=n("d039"),a=n("e8b5"),o=n("861d"),s=n("7b0b"),u=n("07fa"),c=n("3511"),l=n("8418"),d=n("65f0"),f=n("1dde"),h=n("b622"),p=n("2d00"),g=h("isConcatSpreadable"),v=p>=51||!r((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),m=f("concat"),y=function(e){if(!o(e))return!1;var t=e[g];return void 0!==t?!!t:a(e)},b=!v||!m;i({target:"Array",proto:!0,arity:1,forced:b},{concat:function(e){var t,n,i,r,a,o=s(this),f=d(o,0),h=0;for(t=-1,i=arguments.length;t<i;t++)if(a=-1===t?o:arguments[t],y(a))for(r=u(a),c(h+r),n=0;n<r;n++,h++)n in a&&l(f,h,a[n]);else c(h+1),l(f,h++,a);return f.length=h,f}})},"9a0c":function(e,t,n){var i=n("342f");e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(i)},"9a1f":function(e,t,n){var i=n("c65b"),r=n("59ed"),a=n("825a"),o=n("0d51"),s=n("35a1"),u=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return a(i(n,e));throw u(o(e)+" is not iterable")}},"9a8c":function(e,t,n){"use strict";var i=n("e330"),r=n("ebb5"),a=n("145e"),o=i(a),s=r.aTypedArray,u=r.exportTypedArrayMethod;u("copyWithin",(function(e,t){return o(s(this),e,t,arguments.length>2?arguments[2]:void 0)}))},"9bdd":function(e,t,n){var i=n("825a"),r=n("2a62");e.exports=function(e,t,n,a){try{return a?t(i(n)[0],n[1]):t(n)}catch(o){r(e,"throw",o)}}},"9bf2":function(e,t,n){var i=n("83ab"),r=n("0cfb"),a=n("aed9"),o=n("825a"),s=n("a04b"),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor;t.f=i?a?function(e,t,n){if(o(e),t=s(t),o(n),"function"===typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n["writable"]){var i=l(e,t);i&&i["writable"]&&(e[t]=n.value,n={configurable:"configurable"in n?n["configurable"]:i["configurable"],enumerable:"enumerable"in n?n["enumerable"]:i["enumerable"],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(o(e),t=s(t),o(n),r)try{return c(e,t,n)}catch(i){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9c0d":function(e,t,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("ac1f"),n("00b4"),n("d3b7"),n("3ca3"),n("ddb0"),n("2b3d"),n("9861"),n("fb6a");var r=i(n("ad18")),a=i(n("4924")),o=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=a.default.location&&a.default.location.href||"");var n="function"===typeof a.default.URL,i=/^\/\//.test(e),o=!a.default.location&&!/\/\//i.test(e);if(n?e=new a.default.URL(e,a.default.location||"http://example.com"):/\/\//i.test(e)||(e=r.default.buildAbsoluteURL(a.default.location&&a.default.location.href||"",e)),n){var s=new URL(t,e);return o?s.href.slice("http://example.com".length):i?s.href.slice(s.protocol.length):s.href}return r.default.buildAbsoluteURL(e,t)};t.default=o},"9f7f":function(e,t,n){var i=n("d039"),r=n("da84"),a=r.RegExp,o=i((function(){var e=a("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),s=o||i((function(){return!a("a","y").sticky})),u=o||i((function(){var e=a("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:u,MISSED_STICKY:s,UNSUPPORTED_Y:o}},a04b:function(e,t,n){var i=n("c04e"),r=n("d9b5");e.exports=function(e){var t=i(e,"string");return r(t)?t:t+""}},a078:function(e,t,n){var i=n("0366"),r=n("c65b"),a=n("5087"),o=n("7b0b"),s=n("07fa"),u=n("9a1f"),c=n("35a1"),l=n("e95a"),d=n("bcbf"),f=n("ebb5").aTypedArrayConstructor,h=n("f495");e.exports=function(e){var t,n,p,g,v,m,y,b,_=a(this),w=o(e),T=arguments.length,S=T>1?arguments[1]:void 0,k=void 0!==S,x=c(w);if(x&&!l(x)){y=u(w,x),b=y.next,w=[];while(!(m=r(b,y)).done)w.push(m.value)}for(k&&T>2&&(S=i(S,arguments[2])),n=s(w),p=new(f(_))(n),g=d(p),t=0;n>t;t++)v=k?S(w[t],t):w[t],p[t]=g?h(v):+v;return p}},a258:function(e,t,n){var i=n("0366"),r=n("44ad"),a=n("7b0b"),o=n("07fa"),s=function(e){var t=1==e;return function(n,s,u){var c,l,d=a(n),f=r(d),h=i(s,u),p=o(f);while(p-- >0)if(c=f[p],l=h(c,p,d),l)switch(e){case 0:return c;case 1:return p}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},a347:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.getId3Size=t.getId3Offset=void 0;var i=n("2c6b"),r=(0,i.toUint8)([73,68,51]),a=function(e,t){void 0===t&&(t=0),e=(0,i.toUint8)(e);var n=e[t+5],r=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9],a=(16&n)>>4;return a?r+20:r+10};t.getId3Size=a;t.getId3Offset=function e(t,n){return void 0===n&&(n=0),t=(0,i.toUint8)(t),t.length-n<10||!(0,i.bytesMatch)(t,r,{offset:n})?n:(n+=a(t,n),e(t,n))}},a38e:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,r.default)(e,"string");return"symbol"===(0,i.default)(t)?t:String(t)};var i=a(n("53ca")),r=a(n("af50"));function a(e){return e&&e.__esModule?e:{default:e}}},a434:function(e,t,n){"use strict";var i=n("23e7"),r=n("7b0b"),a=n("23cb"),o=n("5926"),s=n("07fa"),u=n("3a34"),c=n("3511"),l=n("65f0"),d=n("8418"),f=n("083a"),h=n("1dde"),p=h("splice"),g=Math.max,v=Math.min;i({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var n,i,h,p,m,y,b=r(this),_=s(b),w=a(e,_),T=arguments.length;for(0===T?n=i=0:1===T?(n=0,i=_-w):(n=T-2,i=v(g(o(t),0),_-w)),c(_+n-i),h=l(b,i),p=0;p<i;p++)m=w+p,m in b&&d(h,p,b[m]);if(h.length=i,n<i){for(p=w;p<_-i;p++)m=p+i,y=p+n,m in b?b[y]=b[m]:f(b,y);for(p=_;p>_-i+n;p--)f(b,p-1)}else if(n>i)for(p=_-i;p>w;p--)m=p+i-1,y=p+n-1,m in b?b[y]=b[m]:f(b,y);for(p=0;p<n;p++)b[p+w]=arguments[p+2];return u(b,_-i+n),h}})},a4b4:function(e,t,n){var i=n("342f");e.exports=/web0s(?!.*chrome)/i.test(i)},a4d3:function(e,t,n){n("d9f5"),n("b4f8"),n("c513"),n("e9c4"),n("5a47")},a54a:function(e,t,n){n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("25f0"),n("fb6a"),n("d9e2"),n("d401"),n("e25e"),n("5319"),n("c975"),n("466d"),n("14d9"),n("00b4"),n("baa5");var i=n("7342").NAMESPACE,r=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,a=new RegExp("[\\-\\.0-9"+r.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=new RegExp("^"+r.source+a.source+"*(?::"+r.source+a.source+"*)?$");function s(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,s)}function u(){}function c(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function l(e,t,n,r,a,o){function s(e,t,i){n.attributeNames.hasOwnProperty(e)&&o.fatalError("Attribute "+e+" redefined"),n.addValue(e,t,i)}var u,c=++t,l=0;while(1){var d=e.charAt(c);switch(d){case"=":if(1===l)u=e.slice(t,c),l=3;else{if(2!==l)throw new Error("attribute equal must after attrName");l=3}break;case"'":case'"':if(3===l||1===l){if(1===l&&(o.warning('attribute value must after "="'),u=e.slice(t,c)),t=c+1,c=e.indexOf(d,t),!(c>0))throw new Error("attribute value no end '"+d+"' match");f=e.slice(t,c).replace(/&#?\w+;/g,a),s(u,f,t-1),l=5}else{if(4!=l)throw new Error('attribute value must after "="');f=e.slice(t,c).replace(/&#?\w+;/g,a),s(u,f,t),o.warning('attribute "'+u+'" missed start quot('+d+")!!"),t=c+1,l=5}break;case"/":switch(l){case 0:n.setTagName(e.slice(t,c));case 5:case 6:case 7:l=7,n.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==l&&n.setTagName(e.slice(t,c)),c;case">":switch(l){case 0:n.setTagName(e.slice(t,c));case 5:case 6:case 7:break;case 4:case 1:f=e.slice(t,c),"/"===f.slice(-1)&&(n.closed=!0,f=f.slice(0,-1));case 2:2===l&&(f=u),4==l?(o.warning('attribute "'+f+'" missed quot(")!'),s(u,f.replace(/&#?\w+;/g,a),t)):(i.isHTML(r[""])&&f.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+f+'" missed value!! "'+f+'" instead!!'),s(f,f,t));break;case 3:throw new Error("attribute value missed!!")}return c;case"":d=" ";default:if(d<=" ")switch(l){case 0:n.setTagName(e.slice(t,c)),l=6;break;case 1:u=e.slice(t,c),l=2;break;case 4:var f=e.slice(t,c).replace(/&#?\w+;/g,a);o.warning('attribute "'+f+'" missed quot(")!!'),s(u,f,t);case 5:l=6;break}else switch(l){case 2:n.tagName;i.isHTML(r[""])&&u.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+u+'" missed value!! "'+u+'" instead2!!'),s(u,u,t),t=c,l=1;break;case 5:o.warning('attribute space is required"'+u+'"!!');case 6:l=1,t=c;break;case 3:l=4,t=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function d(e,t,n){var r=e.tagName,a=null,o=e.length;while(o--){var s=e[o],u=s.qName,c=s.value,l=u.indexOf(":");if(l>0)var d=s.prefix=u.slice(0,l),f=u.slice(l+1),h="xmlns"===d&&f;else f=u,d=null,h="xmlns"===u&&"";s.localName=f,!1!==h&&(null==a&&(a={},p(n,n={})),n[h]=a[h]=c,s.uri=i.XMLNS,t.startPrefixMapping(h,c))}o=e.length;while(o--){s=e[o];d=s.prefix;d&&("xml"===d&&(s.uri=i.XML),"xmlns"!==d&&(s.uri=n[d||""]))}l=r.indexOf(":");l>0?(d=e.prefix=r.slice(0,l),f=e.localName=r.slice(l+1)):(d=null,f=e.localName=r);var g=e.uri=n[d||""];if(t.startElement(g,f,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=a,!0;if(t.endElement(g,f,r),a)for(d in a)t.endPrefixMapping(d)}function f(e,t,n,i,r){if(/^(?:script|textarea)$/i.test(n)){var a=e.indexOf("</"+n+">",t),o=e.substring(t+1,a);if(/[&<]/.test(o))return/^script$/i.test(n)?(r.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,i),r.characters(o,0,o.length),a)}return t+1}function h(e,t,n,i){var r=i[n];return null==r&&(r=e.lastIndexOf("</"+n+">"),r<t&&(r=e.lastIndexOf("</"+n)),i[n]=r),r<t}function p(e,t){for(var n in e)t[n]=e[n]}function g(e,t,n,i){var r=e.charAt(t+2);switch(r){case"-":if("-"===e.charAt(t+3)){var a=e.indexOf("--\x3e",t+4);return a>t?(n.comment(e,t+4,a-t-4),a+3):(i.error("Unclosed comment"),-1)}return-1;default:if("CDATA["==e.substr(t+3,6)){a=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,a-t-9),n.endCDATA(),a+3}var o=function(e,t){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;r.lastIndex=t,r.exec(e);while(n=r.exec(e))if(i.push(n),n[1])return i}(e,t),s=o.length;if(s>1&&/!doctype/i.test(o[0][0])){var u=o[1][0],c=!1,l=!1;s>3&&(/^public$/i.test(o[2][0])?(c=o[3][0],l=s>4&&o[4][0]):/^system$/i.test(o[2][0])&&(l=o[3][0]));var d=o[s-1];return n.startDTD(u,c,l),n.endDTD(),d.index+d[0].length}}return-1}function v(e,t,n){var i=e.indexOf("?>",t);if(i){var r=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(r){r[0].length;return n.processingInstruction(r[1],r[2]),i+2}return-1}return-1}function m(){this.attributeNames={}}s.prototype=new Error,s.prototype.name=s.name,u.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),p(t,t={}),function(e,t,n,r,a){function o(e){var t=e.slice(1,-1);return t in n?n[t]:"#"===t.charAt(0)?function(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(a.error("entity not found:"+e),e)}function u(t){if(t>k){var n=e.substring(k,t).replace(/&#?\w+;/g,o);w&&p(k),r.characters(n,0,t-k),k=t}}function p(t,n){while(t>=b&&(n=_.exec(e)))y=n.index,b=y+n[0].length,w.lineNumber++;w.columnNumber=t-y+1}var y=0,b=0,_=/.*(?:\r\n?|\n)|.*$/g,w=r.locator,T=[{currentNSMap:t}],S={},k=0;while(1){try{var x=e.indexOf("<",k);if(x<0){if(!e.substr(k).match(/^\s*$/)){var C=r.doc,E=C.createTextNode(e.substr(k));C.appendChild(E),r.currentElement=E}return}switch(x>k&&u(x),e.charAt(x+1)){case"/":var A=e.indexOf(">",x+3),O=e.substring(x+2,A).replace(/[ \t\n\r]+$/g,""),j=T.pop();A<0?(O=e.substring(x+2).replace(/[\s<].*/,""),a.error("end tag name: "+O+" is not complete:"+j.tagName),A=x+1+O.length):O.match(/\s</)&&(O=O.replace(/[\s<].*/,""),a.error("end tag name: "+O+" maybe not complete"),A=x+1+O.length);var I=j.localNSMap,P=j.tagName==O,M=P||j.tagName&&j.tagName.toLowerCase()==O.toLowerCase();if(M){if(r.endElement(j.uri,j.localName,O),I)for(var L in I)r.endPrefixMapping(L);P||a.fatalError("end tag name: "+O+" is not match the current start tagName:"+j.tagName)}else T.push(j);A++;break;case"?":w&&p(x),A=v(e,x,r);break;case"!":w&&p(x),A=g(e,x,r,a);break;default:w&&p(x);var D=new m,R=T[T.length-1].currentNSMap,N=(A=l(e,x,D,R,o,a),D.length);if(!D.closed&&h(e,A,D.tagName,S)&&(D.closed=!0,n.nbsp||a.warning("unclosed xml attribute")),w&&N){for(var B=c(w,{}),U=0;U<N;U++){var F=D[U];p(F.offset),F.locator=c(w,{})}r.locator=B,d(D,r,R)&&T.push(D),r.locator=w}else d(D,r,R)&&T.push(D);i.isHTML(D.uri)&&!D.closed?A=f(e,A,D.tagName,o,r):A++}}catch($){if($ instanceof s)throw $;a.error("element parse error: "+$),A=-1}A>k?k=A:u(Math.max(x,k)+1)}}(e,t,n,r,this.errorHandler),r.endDocument()}},m.prototype={setTagName:function(e){if(!o.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!o.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=u,t.ParseError=s},a559:function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},e.exports.__esModule=!0,e.exports["default"]=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},a630:function(e,t,n){var i=n("23e7"),r=n("4df4"),a=n("1c7e"),o=!a((function(e){Array.from(e)}));i({target:"Array",stat:!0,forced:o},{from:r})},a640:function(e,t,n){"use strict";var i=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){return 1},1)}))}},a79d:function(e,t,n){"use strict";var i=n("23e7"),r=n("c430"),a=n("d256"),o=n("d039"),s=n("d066"),u=n("1626"),c=n("4840"),l=n("cdf9"),d=n("cb2d"),f=a&&a.prototype,h=!!a&&o((function(){f["finally"].call({then:function(){}},(function(){}))}));if(i({target:"Promise",proto:!0,real:!0,forced:h},{finally:function(e){var t=c(this,s("Promise")),n=u(e);return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),!r&&u(a)){var p=s("Promise").prototype["finally"];f["finally"]!==p&&d(f,"finally",p,{unsafe:!0})}},a7a7:function(e,t,n){"use strict";function i(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function r(e,t){for(var n in t)e[n]=t[n];return e}n.r(t);var a={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,i=t.children,a=t.parent,o=t.data;o.routerView=!0;var s=a.$createElement,u=n.name,c=a.$route,l=a._routerViewCache||(a._routerViewCache={}),d=0,f=!1;while(a&&a._routerRoot!==a)a.$vnode&&a.$vnode.data.routerView&&d++,a._inactive&&(f=!0),a=a.$parent;if(o.routerViewDepth=d,f)return s(l[u],o,i);var h=c.matched[d];if(!h)return l[u]=null,s();var p=l[u]=h.components[u];o.registerRouteInstance=function(e,t){var n=h.instances[u];(t&&n!==e||!t&&n===e)&&(h.instances[u]=t)},(o.hook||(o.hook={})).prepatch=function(e,t){h.instances[u]=t.componentInstance};var g=o.props=function(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}(c,h.props&&h.props[u]);if(g){g=o.props=r({},g);var v=o.attrs=o.attrs||{};for(var m in g)p.props&&m in p.props||(v[m]=g[m],delete g[m])}return s(p,o,i)}};var o=/[!'()*]/g,s=function(e){return"%"+e.charCodeAt(0).toString(16)},u=/%2C/g,c=function(e){return encodeURIComponent(e).replace(o,s).replace(u,",")},l=decodeURIComponent;function d(e,t,n){void 0===t&&(t={});var i,r=n||f;try{i=r(e||"")}catch(o){i={}}for(var a in t)i[a]=t[a];return i}function f(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),i=l(n.shift()),r=n.length>0?l(n.join("=")):null;void 0===t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]})),t):t}function h(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return c(t);if(Array.isArray(n)){var i=[];return n.forEach((function(e){void 0!==e&&(null===e?i.push(c(t)):i.push(c(t)+"="+c(e)))})),i.join("&")}return c(t)+"="+c(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var p=/\/?$/;function g(e,t,n,i){var r=i&&i.options.stringifyQuery,a=t.query||{};try{a=v(a)}catch(s){}var o={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",type:t.type,query:a,params:t.params||{},fullPath:b(t,r),matched:e?y(e):[]};return n&&(o.redirectedFrom=b(n,r)),Object.freeze(o)}function v(e){if(Array.isArray(e))return e.map(v);if(e&&"object"===typeof e){var t={};for(var n in e)t[n]=v(e[n]);return t}return e}var m=g(null,{path:"/"});function y(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function b(e,t){var n=e.path,i=e.query;void 0===i&&(i={});var r=e.hash;void 0===r&&(r="");var a=t||h;return(n||"/")+a(i)+r}function _(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e),i=Object.keys(t);return n.length===i.length&&n.every((function(n){var i=e[n],r=t[n];return"object"===typeof i&&"object"===typeof r?_(i,r):String(i)===String(r)}))}var w,T=[String,Object],S=[String,Array],k={name:"RouterLink",props:{to:{type:T,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:S,default:"click"}},render:function(e){var t=this,n=this.$router,i=this.$route,a=n.resolve(this.to,i,this.append),o=a.location,s=a.route,u=a.href,c={},l=n.options.linkActiveClass,d=n.options.linkExactActiveClass,f=null==l?"router-link-active":l,h=null==d?"router-link-exact-active":d,v=null==this.activeClass?f:this.activeClass,y=null==this.exactActiveClass?h:this.exactActiveClass,b=o.path?g(null,o,null,n):s;c[y]=function(e,t){return t===m?e===t:!!t&&(e.path&&t.path?e.path.replace(p,"")===t.path.replace(p,"")&&e.hash===t.hash&&_(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&_(e.query,t.query)&&_(e.params,t.params)))}(i,b),c[v]=this.exact?c[y]:function(e,t){return 0===e.path.replace(p,"/").indexOf(t.path.replace(p,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var n in t)if(!(n in e))return!1;return!0}(e.query,t.query)}(i,b);var w=function(e){x(e)&&(t.replace?n.replace(o):n.push(o))},T={click:x};Array.isArray(this.event)?this.event.forEach((function(e){T[e]=w})):T[this.event]=w;var S={class:c};if("a"===this.tag)S.on=T,S.attrs={href:u};else{var k=function e(t){var n;if(t)for(var i=0;i<t.length;i++){if(n=t[i],"a"===n.tag)return n;if(n.children&&(n=e(n.children)))return n}}(this.$slots.default);if(k){k.isStatic=!1;var C=k.data=r({},k.data);C.on=T;var E=k.data.attrs=r({},k.data.attrs);E.href=u}else S.on=T}return e(this.tag,S,this.$slots.default)}};function x(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}var C="undefined"!==typeof window;function E(e,t,n){var i=e.charAt(0);if("/"===i)return e;if("?"===i||"#"===i)return t+e;var r=t.split("/");n&&r[r.length-1]||r.pop();for(var a=e.replace(/^\//,"").split("/"),o=0;o<a.length;o++){var s=a[o];".."===s?r.pop():"."!==s&&r.push(s)}return""!==r[0]&&r.unshift(""),r.join("/")}function A(e){return e.replace(/\/\//g,"/")}var O=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},j=q,I=R,P=function(e,t){return U(R(e,t))},M=U,L=z,D=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function R(e,t){var n,i=[],r=0,a=0,o="",s=t&&t.delimiter||"/";while(null!=(n=D.exec(e))){var u=n[0],c=n[1],l=n.index;if(o+=e.slice(a,l),a=l+u.length,c)o+=c[1];else{var d=e[a],f=n[2],h=n[3],p=n[4],g=n[5],v=n[6],m=n[7];o&&(i.push(o),o="");var y=null!=f&&null!=d&&d!==f,b="+"===v||"*"===v,_="?"===v||"*"===v,w=n[2]||s,T=p||g;i.push({name:h||r++,prefix:f||"",delimiter:w,optional:_,repeat:b,partial:y,asterisk:!!m,pattern:T?$(T):m?".*":"[^"+F(w)+"]+?"})}}return a<e.length&&(o+=e.substr(a)),o&&i.push(o),i}function N(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function B(e){return encodeURI(e).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function U(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"===typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,i){for(var r="",a=n||{},o=i||{},s=o.pretty?N:encodeURIComponent,u=0;u<e.length;u++){var c=e[u];if("string"!==typeof c){var l,d=a[c.name];if(null==d){if(c.optional){c.partial&&(r+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(O(d)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var f=0;f<d.length;f++){if(l=s(d[f]),!t[u].test(l))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(l)+"`");r+=(0===f?c.prefix:c.delimiter)+l}}else{if(l=c.asterisk?B(d):s(d),!t[u].test(l))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+l+'"');r+=c.prefix+l}}else r+=c}return r}}function F(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function $(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function H(e,t){return e.keys=t,e}function V(e){return e.sensitive?"":"i"}function z(e,t,n){O(t)||(n=t||n,t=[]),n=n||{};for(var i=n.strict,r=!1!==n.end,a="",o=0;o<e.length;o++){var s=e[o];if("string"===typeof s)a+=F(s);else{var u=F(s.prefix),c="(?:"+s.pattern+")";t.push(s),s.repeat&&(c+="(?:"+u+c+")*"),c=s.optional?s.partial?u+"("+c+")?":"(?:"+u+"("+c+"))?":u+"("+c+")",a+=c}}var l=F(n.delimiter||"/"),d=a.slice(-l.length)===l;return i||(a=(d?a.slice(0,-l.length):a)+"(?:"+l+"(?=$))?"),a+=r?"$":i&&d?"":"(?="+l+"|$)",H(new RegExp("^"+a,V(n)),t)}function q(e,t,n){return O(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)t.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return H(e,t)}(e,t):O(e)?function(e,t,n){for(var i=[],r=0;r<e.length;r++)i.push(q(e[r],t,n).source);var a=new RegExp("(?:"+i.join("|")+")",V(n));return H(a,t)}(e,t,n):function(e,t,n){return z(R(e,n),t,n)}(e,t,n)}j.parse=I,j.compile=P,j.tokensToFunction=M,j.tokensToRegExp=L;var W=Object.create(null);function G(e,t,n){try{var i=W[e]||(W[e]=j.compile(e));return i(t||{},{pretty:!0})}catch(r){return""}}function Y(e,t,n,i){var r=t||[],a=n||Object.create(null),o=i||Object.create(null);e.forEach((function(e){(function e(t,n,i,r,a,o){var s=r.path,u=r.name;0;var c=r.pathToRegexpOptions||{},l=function(e,t,n){n||(e=e.replace(/\/$/,""));if("/"===e[0])return e;if(null==t)return e;return A(t.path+"/"+e)}(s,a,c.strict);"boolean"===typeof r.caseSensitive&&(c.sensitive=r.caseSensitive);var d={path:l,regex:X(l,c),components:r.components||{default:r.component},instances:{},name:u,parent:a,matchAs:o,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};r.children&&r.children.forEach((function(r){var a=o?A(o+"/"+r.path):void 0;e(t,n,i,r,d,a)}));if(void 0!==r.alias){var f=Array.isArray(r.alias)?r.alias:[r.alias];f.forEach((function(o){var s={path:o,children:r.children};e(t,n,i,s,a,d.path||"/")}))}n[d.path]||(t.push(d.path),n[d.path]=d);u&&(i[u]||(i[u]=d))})(r,a,o,e)}));for(var s=0,u=r.length;s<u;s++)"*"===r[s]&&(r.push(r.splice(s,1)[0]),u--,s--);return{pathList:r,pathMap:a,nameMap:o}}function X(e,t){var n=j(e,[],t);return n}function K(e,t,n,i){var a="string"===typeof e?{path:e}:e;if(a.name||a._normalized)return a;if(!a.path&&a.params&&t){a=r({},a),a._normalized=!0;var o=r(r({},t.params),a.params);if(t.name)a.name=t.name,a.params=o;else if(t.matched.length){var s=t.matched[t.matched.length-1].path;a.path=G(s,o,t.path)}else 0;return a}var u=function(e){var t="",n="",i=e.indexOf("#");i>=0&&(t=e.slice(i),e=e.slice(0,i));var r=e.indexOf("?");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{path:e,query:n,hash:t}}(a.path||""),c=t&&t.path||"/",l=u.path?E(u.path,c,n||a.append):c,f=d(u.query,a.query,i&&i.options.parseQuery),h=a.hash||u.hash;return h&&"#"!==h.charAt(0)&&(h="#"+h),{_normalized:!0,type:a.type,params:a.params||{},path:l,query:f,hash:h}}function Q(e,t){var n=Y(e),i=n.pathList,a=n.pathMap,o=n.nameMap;function s(e,n,r){var s=K(e,n,!1,t),u=s.name;if(u){var l=o[u];if(!l)return c(null,s);var d=l.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!==typeof s.params&&(s.params={}),n&&"object"===typeof n.params)for(var f in n.params)!(f in s.params)&&d.indexOf(f)>-1&&(s.params[f]=n.params[f]);if(l)return s.path=G(l.path,s.params),c(l,s,r)}else if(s.path){s.params=s.params||{};for(var h=0;h<i.length;h++){var p=i[h],g=a[p];if(J(g.regex,s.path,s.params))return c(g,s,r)}}return c(null,s)}function u(e,n){var i=e.redirect,r="function"===typeof i?i(g(e,n,null,t)):i;if("string"===typeof r&&(r={path:r}),!r||"object"!==typeof r)return c(null,n);var a=r,u=a.name,l=a.path,d=n.query,f=n.hash,h=n.params;if(d=a.hasOwnProperty("query")?a.query:d,f=a.hasOwnProperty("hash")?a.hash:f,h=a.hasOwnProperty("params")?a.params:h,u){o[u];return s({_normalized:!0,name:u,query:d,hash:f,params:h},void 0,n)}if(l){var p=function(e,t){return E(e,t.parent?t.parent.path:"/",!0)}(l,e),v=G(p,h);return s({_normalized:!0,path:v,query:d,hash:f},void 0,n)}return c(null,n)}function c(e,n,i){return e&&e.redirect?u(e,i||n):e&&e.matchAs?function(e,t,n){var i=G(n,t.params),r=s({_normalized:!0,path:i});if(r){var a=r.matched,o=a[a.length-1];return t.params=r.params,c(o,t)}return c(null,t)}(0,n,e.matchAs):(n.params=n.params||{},e&&e.meta&&e.meta.id?n.params.__id__=e.meta.id:n.params.__id__||(n.params.__id__=t.id),e&&e.meta&&e.meta.name&&(e.meta.id?e.components.default.name=e.meta.name+"-"+n.params.__id__:(e=r({},e),e.components={default:{name:e.meta.name+"-"+n.params.__id__,render:e.components["default"].render}})),g(e,n,i,t))}return{match:s,addRoutes:function(e){Y(e,i,a,o)}}}function J(e,t,n){var i=t.match(e);if(!i)return!1;if(!n)return!0;for(var r=1,a=i.length;r<a;++r){var o=e.keys[r-1],s="string"===typeof i[r]?decodeURIComponent(i[r]):i[r];o&&(n[o.name||"pathMatch"]=s)}return!0}var Z=Object.create(null);function ee(e){window.history.replaceState({key:de(),id:e.currentRoute&&e.currentRoute.params.__id__||e.id},"",window.location.href.replace(window.location.origin,"")),window.addEventListener("popstate",(function(e){ne(),e.state&&e.state.key&&function(e){ce=e}(e.state.key)}))}function te(e,t,n,i){if(e.app){var r=e.options.scrollBehavior;r&&e.app.$nextTick((function(){var a=function(){var e=de();if(e)return Z[e]}(),o=r.call(e,t,n,i?a:null);o&&("function"===typeof o.then?o.then((function(e){oe(e,a)})).catch((function(e){0})):oe(o,a))}))}}function ne(){var e=de();e&&(Z[e]={x:window.pageXOffset,y:window.pageYOffset})}function ie(e){return ae(e.x)||ae(e.y)}function re(e){return{x:ae(e.x)?e.x:window.pageXOffset,y:ae(e.y)?e.y:window.pageYOffset}}function ae(e){return"number"===typeof e}function oe(e,t){var n="object"===typeof e;if(n&&"string"===typeof e.selector){var i=document.querySelector(e.selector);if(i){var r=e.offset&&"object"===typeof e.offset?e.offset:{};r=function(e){return{x:ae(e.x)?e.x:0,y:ae(e.y)?e.y:0}}(r),t=function(e,t){var n=document.documentElement,i=n.getBoundingClientRect(),r=e.getBoundingClientRect();return{x:r.left-i.left-t.x,y:r.top-i.top-t.y}}(i,r)}else ie(e)&&(t=re(e))}else n&&ie(e)&&(t=re(e));t&&window.scrollTo(t.x,t.y)}var se=C&&function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),ue=C&&window.performance&&window.performance.now?window.performance:Date,ce=le();function le(){return ue.now().toFixed(3)}function de(){return ce}function fe(e,t,n){ne();var i=window.history;try{n?i.replaceState({id:t,key:ce},"",e):(ce=le(),i.pushState({id:t,key:ce},"",e))}catch(r){window.location[n?"replace":"assign"](e)}}function he(e,t){fe(e,t,!0)}function pe(e,t,n){var i=function(r){r>=e.length?n():e[r]?t(e[r],(function(){i(r+1)})):i(r+1)};i(0)}function ge(e){return function(t,n,r){var a=!1,o=0,s=null;ve(e,(function(e,t,n,u){if("function"===typeof e&&void 0===e.cid){a=!0,o++;var c,l=be((function(t){(function(e){return e.__esModule||ye&&"Module"===e[Symbol.toStringTag]})(t)&&(t=t.default),e.resolved="function"===typeof t?t:w.extend(t),n.components[u]=t,o--,o<=0&&r()})),d=be((function(e){var t="Failed to resolve async component "+u+": "+e;s||(s=i(e)?e:new Error(t),r(s))}));try{c=e(l,d)}catch(h){d(h)}if(c)if("function"===typeof c.then)c.then(l,d);else{var f=c.component;f&&"function"===typeof f.then&&f.then(l,d)}}})),a||r()}}function ve(e,t){return me(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function me(e){return Array.prototype.concat.apply([],e)}var ye="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function be(e){var t=!1;return function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];if(!t)return t=!0,e.apply(this,n)}}var _e=function(e,t){this.router=e,this.base=function(e){if(!e)if(C){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";"/"!==e.charAt(0)&&(e="/"+e);return e.replace(/\/$/,"")}(t),this.current=m,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function we(e,t,n,i){var r=ve(e,(function(e,i,r,a){var o=function(e,t){"function"!==typeof e&&(e=w.extend(e));return e.options[t]}(e,t);if(o)return Array.isArray(o)?o.map((function(e){return n(e,i,r,a)})):n(o,i,r,a)}));return me(i?r.reverse():r)}function Te(e,t){if(t)return function(){return e.apply(t,arguments)}}_e.prototype.listen=function(e){this.cb=e},_e.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},_e.prototype.onError=function(e){this.errorCbs.push(e)},_e.prototype.transitionTo=function(e,t,n){var i=this,r=this.router.match(e,this.current);this.confirmTransition(r,(function(){i.updateRoute(r),t&&t(r),i.ensureURL(),i.ready||(i.ready=!0,i.readyCbs.forEach((function(e){e(r)})))}),(function(e){n&&n(e),e&&!i.ready&&(i.ready=!0,i.readyErrorCbs.forEach((function(t){t(e)})))}))},_e.prototype.confirmTransition=function(e,t,n){var r=this,a=this.current,o=function(e){i(e)&&(r.errorCbs.length?r.errorCbs.forEach((function(t){t(e)})):(function(e,t){0}(),console.error(e))),n&&n(e)},s=function(e,t){var n,i=Math.max(e.length,t.length);for(n=0;n<i;n++)if(e[n]!==t[n])break;return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}(this.current.matched,e.matched),u=s.updated,c=s.deactivated,l=s.activated,d=[].concat(function(e){return we(e,"beforeRouteLeave",Te,!0)}(c),this.router.beforeHooks,function(e){return we(e,"beforeRouteUpdate",Te)}(u),l.map((function(e){return e.beforeEnter})),ge(l));this.pending=e;var f=function(t,n){if(r.pending!==e)return o();try{t(e,a,(function(e){!1===e||i(e)?(r.ensureURL(!0),o(e)):"string"===typeof e||"object"===typeof e&&("string"===typeof e.path||"string"===typeof e.name)?(o(),"object"===typeof e&&e.replace?r.replace(e):r.push(e)):n(e)}))}catch(s){o(s)}};pe(d,f,(function(){var n=[],i=function(e,t,n){return we(e,"beforeRouteEnter",(function(e,i,r,a){return function(e,t,n,i,r){return function(a,o,s){return e(a,o,(function(e){s(e),"function"===typeof e&&i.push((function(){(function e(t,n,i,r){n[i]&&!n[i]._isBeingDestroyed?t(n[i]):r()&&setTimeout((function(){e(t,n,i,r)}),16)})(e,t.instances,n,r)}))}))}}(e,r,a,t,n)}))}(l,n,(function(){return r.current===e})),a=i.concat(r.router.resolveHooks);pe(a,f,(function(){if(r.pending!==e)return o();r.pending=null,t(e),r.router.app&&r.router.app.$nextTick((function(){n.forEach((function(e){e()}))}))}))}))},_e.prototype.updateRoute=function(e){var t=this.current;this.current=e,this.cb&&this.cb(e),this.router.afterHooks.forEach((function(n){n&&n(e,t)}))};var Se=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this,t=this.router,n=t.options.scrollBehavior,i=se&&n;i&&ee(t);var r=ke(this.base);window.addEventListener("popstate",(function(n){var a=e.current,o=ke(e.base);if(e.current!==m||o!==r){var s=n.state&&n.state.id;if(!s)return window.location.reload();e.transitionTo({path:o,params:{__id__:s}},(function(e){i&&te(t,e,a,!0)}))}}))},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var i=this;if("object"===typeof e){e.params=e.params||{};var r=e.params.__id__;switch(e.type){case"navigateTo":r||this.router.id++;break;case"redirectTo":case"reLaunch":this.router.id++;break;case"switchTab":break}r||(e.params.__id__=this.router.id)}var a=this.current;this.transitionTo(e,(function(n){fe(A(i.base+n.fullPath),e.params.__id__),te(i.router,n,a,!1),t&&t(n)}),n)},t.prototype.replace=function(e,t,n){var i=this;if("object"===typeof e){switch(e.type){case"navigateTo":case"redirectTo":case"reLaunch":this.router.id++;break;case"switchTab":break}e.params=e.params||{},e.params.__id__=this.router.id}var r=this.current;this.transitionTo(e,(function(n){he(A(i.base+n.fullPath),e.params.__id__),te(i.router,n,r,!1),t&&t(n)}),n)},t.prototype.ensureURL=function(e){if(ke(this.base)!==this.current.fullPath){var t=A(this.base+this.current.fullPath),n=this.current.params.__id__;e?fe(t,n):he(t,n)}},t.prototype.getCurrentLocation=function(){return{path:ke(this.base),params:{__id__:++this.router.id}}},t}(_e);function ke(e){var t=decodeURI(window.location.pathname);return e&&0===t.indexOf(e)&&(t=t.slice(e.length)),(t||"/")+h(d(window.location.search))+window.location.hash}var xe=function(e){function t(t,n,i){e.call(this,t,n),i&&function(e){var t=ke(e);if(!/^\/#/.test(t))return window.location.replace(A(e+"/#"+t)),!0}(this.base)||Ce()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this,t=this.router,n=t.options.scrollBehavior,i=se&&n;i&&ee(t),window.addEventListener(se?"popstate":"hashchange",(function(t){var n=e.current;if(Ce()){var r=t.state&&t.state.id;if(!r)return window.location.reload();e.transitionTo({path:Ee(),params:{__id__:r}},(function(t){i&&te(e.router,t,n,!0),se||je(t.fullPath,t.params.__id__)}))}}))},t.prototype.push=function(e,t,n){var i=this;if("object"===typeof e){e.params=e.params||{};var r=e.params.__id__;switch(e.type){case"navigateTo":r||this.router.id++;break;case"redirectTo":case"reLaunch":this.router.id++;break;case"switchTab":break}r||(e.params.__id__=this.router.id)}var a=this.current,o=this.router.id;this.transitionTo(e,(function(e){Oe(e.fullPath,o),te(i.router,e,a,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this;if("object"===typeof e){switch(e.type){case"navigateTo":case"redirectTo":case"reLaunch":this.router.id++;break;case"switchTab":break}e.params=e.params||{},e.params.__id__=this.router.id}var r=this.current,a=this.router.id;this.transitionTo(e,(function(e){je(e.fullPath,a),te(i.router,e,r,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;Ee()!==t&&(e?Oe(t,this.current.params.__id__):je(t,this.current.params.__id__))},t.prototype.getCurrentLocation=function(){return{path:Ee(),params:{__id__:++this.router.id}}},t}(_e);function Ce(){var e=Ee();return"/"===e.charAt(0)||(je("/"+e),!1)}function Ee(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":decodeURI(e.slice(t+1))}function Ae(e){var t=window.location.href,n=t.indexOf("#"),i=n>=0?t.slice(0,n):t;return i+"#"+e}function Oe(e,t){se?fe(Ae(e),t):window.location.hash=e}function je(e,t){se?he(Ae(e),t):window.location.replace(Ae(e))}var Ie=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var i=this;this.transitionTo(e,(function(e){i.stack=i.stack.slice(0,i.index+1).concat(e),i.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this;this.transitionTo(e,(function(e){i.stack=i.stack.slice(0,i.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,(function(){t.index=n,t.updateRoute(i)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(_e),Pe=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Q(e.routes||[],this),this.id=e.id||1,this.minId=e.id||1;var t=e.mode||"hash";switch(this.fallback="history"===t&&!se&&!1!==e.fallback,this.fallback&&(t="hash"),C||(t="abstract"),this.mode=t,t){case"history":this.history=new Se(this,e.base);break;case"hash":this.history=new xe(this,e.base,this.fallback);break;case"abstract":this.history=new Ie(this,e.base);break;default:0}},Me={currentRoute:{configurable:!0}};function Le(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}Pe.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},Me.currentRoute.get=function(){return this.history&&this.history.current},Pe.prototype.init=function(e){var t=this;if(this.apps.push(e),!this.app){this.app=e;var n=this.history;if(n instanceof Se){var i=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),i,i)}else if(n instanceof xe){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},Pe.prototype.beforeEach=function(e){return Le(this.beforeHooks,e)},Pe.prototype.beforeResolve=function(e){return Le(this.resolveHooks,e)},Pe.prototype.afterEach=function(e){return Le(this.afterHooks,e)},Pe.prototype.onReady=function(e,t){this.history.onReady(e,t)},Pe.prototype.onError=function(e){this.history.onError(e)},Pe.prototype.push=function(e,t,n){this.history.push(e,t,n)},Pe.prototype.replace=function(e,t,n){this.history.replace(e,t,n)},Pe.prototype.go=function(e){this.history.go(e)},Pe.prototype.back=function(){this.go(-1)},Pe.prototype.forward=function(){this.go(1)},Pe.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},Pe.prototype.resolve=function(e,t,n){var i=K(e,t||this.history.current,n,this),r=this.match(i,t),a=r.redirectedFrom||r.fullPath,o=this.history.base,s=function(e,t,n){var i="hash"===n?"#"+t:t;return e?A(e+"/"+i):i}(o,a,this.mode);return{location:i,route:r,href:s,normalizedTo:i,resolved:r}},Pe.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Pe.prototype,Me),Pe.install=function e(t){if(!e.installed||w!==t){e.installed=!0,w=t;var n=function(e){return void 0!==e},i=function(e,t){var i=e.$options._parentVnode;n(i)&&n(i=i.data)&&n(i=i.registerRouteInstance)&&i(e,t)};t.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,i(this,this)},destroyed:function(){i(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",a),t.component("RouterLink",k);var r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}},Pe.version="3.0.1",t["default"]=Pe},a975:function(e,t,n){"use strict";var i=n("ebb5"),r=n("b727").every,a=i.aTypedArray,o=i.exportTypedArrayMethod;o("every",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},a9e3:function(e,t,n){"use strict";var i=n("83ab"),r=n("da84"),a=n("e330"),o=n("94ca"),s=n("cb2d"),u=n("1a2d"),c=n("7156"),l=n("3a9b"),d=n("d9b5"),f=n("c04e"),h=n("d039"),p=n("241c").f,g=n("06cf").f,v=n("9bf2").f,m=n("408a"),y=n("58a8").trim,b=r["Number"],_=b.prototype,w=r.TypeError,T=a("".slice),S=a("".charCodeAt),k=function(e){var t=f(e,"number");return"bigint"==typeof t?t:x(t)},x=function(e){var t,n,i,r,a,o,s,u,c=f(e,"number");if(d(c))throw w("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=y(c),t=S(c,0),43===t||45===t){if(n=S(c,2),88===n||120===n)return NaN}else if(48===t){switch(S(c,1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+c}for(a=T(c,2),o=a.length,s=0;s<o;s++)if(u=S(a,s),u<48||u>r)return NaN;return parseInt(a,i)}return+c};if(o("Number",!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var C,E=function(e){var t=arguments.length<1?0:b(k(e)),n=this;return l(_,n)&&h((function(){m(n)}))?c(Object(t),n,E):t},A=i?p(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),O=0;A.length>O;O++)u(b,C=A[O])&&!u(E,C)&&v(E,C,g(b,C));E.prototype=_,_.constructor=E,s(r,"Number",E,{constructor:!0})}},aa1f:function(e,t,n){"use strict";var i=n("83ab"),r=n("d039"),a=n("825a"),o=n("7c73"),s=n("e391"),u=Error.prototype.toString,c=r((function(){if(i){var e=o(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==u.call(e))return!0}return"2: 1"!==u.call({message:1,name:2})||"Error"!==u.call({})}));e.exports=c?function(){var e=a(this),t=s(e.name,"Error"),n=s(e.message);return t?n?t+": "+n:t:n}:u},aaf3:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.simpleTypeFromSourceType=void 0,n("ac1f"),n("00b4");var i=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,r=/^application\/dash\+xml/i;t.simpleTypeFromSourceType=function(e){return i.test(e)?"hls":r.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null}},ab13:function(e,t,n){var i=n("b622"),r=i("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(i){}}return!1}},ab36:function(e,t,n){var i=n("861d"),r=n("9112");e.exports=function(e,t){i(t)&&"cause"in t&&r(e,"cause",t.cause)}},ac1f:function(e,t,n){"use strict";var i=n("23e7"),r=n("9263");i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},acac:function(e,t,n){"use strict";var i=n("e330"),r=n("6964"),a=n("f183").getWeakData,o=n("19aa"),s=n("825a"),u=n("7234"),c=n("861d"),l=n("2266"),d=n("b727"),f=n("1a2d"),h=n("69f3"),p=h.set,g=h.getterFor,v=d.find,m=d.findIndex,y=i([].splice),b=0,_=function(e){return e.frozen||(e.frozen=new w)},w=function(){this.entries=[]},T=function(e,t){return v(e.entries,(function(e){return e[0]===t}))};w.prototype={get:function(e){var t=T(this,e);if(t)return t[1]},has:function(e){return!!T(this,e)},set:function(e,t){var n=T(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=m(this.entries,(function(t){return t[0]===e}));return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var d=e((function(e,r){o(e,h),p(e,{type:t,id:b++,frozen:void 0}),u(r)||l(r,e[i],{that:e,AS_ENTRIES:n})})),h=d.prototype,v=g(t),m=function(e,t,n){var i=v(e),r=a(s(t),!0);return!0===r?_(i).set(t,n):r[i.id]=n,e};return r(h,{delete:function(e){var t=v(this);if(!c(e))return!1;var n=a(e);return!0===n?_(t)["delete"](e):n&&f(n,t.id)&&delete n[t.id]},has:function(e){var t=v(this);if(!c(e))return!1;var n=a(e);return!0===n?_(t).has(e):n&&f(n,t.id)}}),r(h,n?{get:function(e){var t=v(this);if(c(e)){var n=a(e);return!0===n?_(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return m(this,e,t)}}:{add:function(e){return m(this,e,!0)}}),d}}},acd8:function(e,t,n){var i=n("23e7"),r=n("7e12");i({global:!0,forced:parseFloat!=r},{parseFloat:r})},ace4:function(e,t,n){"use strict";var i=n("23e7"),r=n("4625"),a=n("d039"),o=n("621a"),s=n("825a"),u=n("23cb"),c=n("50c4"),l=n("4840"),d=o.ArrayBuffer,f=o.DataView,h=f.prototype,p=r(d.prototype.slice),g=r(h.getUint8),v=r(h.setUint8),m=a((function(){return!new d(2).slice(1,void 0).byteLength}));i({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:m},{slice:function(e,t){if(p&&void 0===t)return p(s(this),e);var n=s(this).byteLength,i=u(e,n),r=u(void 0===t?n:t,n),a=new(l(this,d))(c(r-i)),o=new f(this),h=new f(a),m=0;while(i<r)v(h,m++,g(o,i++));return a}})},ad18:function(e,t,n){(function(e){var i,r,a=n("7037").default;n("498a"),n("d9e2"),n("d401"),n("ac1f"),n("baa5"),n("5319"),n("26e9"),function(n){var o=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,s=/^(?=([^\/?#]*))\1([^]*)$/,u=/(?:\/|^)\.(?=\/)/g,c=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,l={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),t=t.trim(),!t){if(!n.alwaysNormalize)return e;var i=l.parseURL(e);if(!i)throw new Error("Error trying to parse base URL.");return i.path=l.normalizePath(i.path),l.buildURLFromParts(i)}var r=l.parseURL(t);if(!r)throw new Error("Error trying to parse relative URL.");if(r.scheme)return n.alwaysNormalize?(r.path=l.normalizePath(r.path),l.buildURLFromParts(r)):t;var a=l.parseURL(e);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var o=s.exec(a.path);a.netLoc=o[1],a.path=o[2]}a.netLoc&&!a.path&&(a.path="/");var u={scheme:a.scheme,netLoc:r.netLoc,path:null,params:r.params,query:r.query,fragment:r.fragment};if(!r.netLoc&&(u.netLoc=a.netLoc,"/"!==r.path[0]))if(r.path){var c=a.path,d=c.substring(0,c.lastIndexOf("/")+1)+r.path;u.path=l.normalizePath(d)}else u.path=a.path,r.params||(u.params=a.params,r.query||(u.query=a.query));return null===u.path&&(u.path=n.alwaysNormalize?l.normalizePath(r.path):r.path),l.buildURLFromParts(u)},parseURL:function(e){var t=o.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){e=e.split("").reverse().join("").replace(u,"");while(e.length!==(e=e.replace(c,"")).length);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}};"object"===a(t)&&"object"===a(e)?e.exports=l:(i=[],r=function(){return l}.apply(t,i),void 0===r||(e.exports=r))}()}).call(this,n("62e4")(e))},ad6d:function(e,t,n){"use strict";var i=n("825a");e.exports=function(){var e=i(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},addb:function(e,t,n){var i=n("4dae"),r=Math.floor,a=function(e,t){var n=e.length,u=r(n/2);return n<8?o(e,t):s(e,a(i(e,0,u),t),a(i(e,u),t),t)},o=function(e,t){var n,i,r=e.length,a=1;while(a<r){i=a,n=e[a];while(i&&t(e[i-1],n)>0)e[i]=e[--i];i!==a++&&(e[i]=n)}return e},s=function(e,t,n,i){var r=t.length,a=n.length,o=0,s=0;while(o<r||s<a)e[o+s]=o<r&&s<a?i(t[o],n[s])<=0?t[o++]:n[s++]:o<r?t[o++]:n[s++];return e};e.exports=a},ade3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){t=(0,i.default)(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e},n("7a82");var i=function(e){return e&&e.__esModule?e:{default:e}}(n("a38e"))},ae93:function(e,t,n){"use strict";var i,r,a,o=n("d039"),s=n("1626"),u=n("861d"),c=n("7c73"),l=n("e163"),d=n("cb2d"),f=n("b622"),h=n("c430"),p=f("iterator"),g=!1;[].keys&&(a=[].keys(),"next"in a?(r=l(l(a)),r!==Object.prototype&&(i=r)):g=!0);var v=!u(i)||o((function(){var e={};return i[p].call(e)!==e}));v?i={}:h&&(i=c(i)),s(i[p])||d(i,p,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:g}},aeb0:function(e,t,n){var i=n("9bf2").f;e.exports=function(e,t,n){n in e||i(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},aed9:function(e,t,n){var i=n("83ab"),r=n("d039");e.exports=i&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},af50:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("object"!==(0,i.default)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==(0,i.default)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},n("8172"),n("efec"),n("a4d3"),n("e01a"),n("d3b7"),n("d9e2"),n("d401"),n("a9e3");var i=function(e){return e&&e.__esModule?e:{default:e}}(n("53ca"))},aff5:function(e,t,n){var i=n("23e7");i({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},b041:function(e,t,n){"use strict";var i=n("00ee"),r=n("f5df");e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},b17c:function(e,t,n){n("4ae1"),n("d3b7"),n("f8c9"),n("14d9");var i=n("4a4b"),r=n("6f8f");function a(t,n,o){return r()?(e.exports=a=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports["default"]=e.exports):(e.exports=a=function(e,t,n){var r=[null];r.push.apply(r,t);var a=Function.bind.apply(e,r),o=new a;return n&&i(o,n.prototype),o},e.exports.__esModule=!0,e.exports["default"]=e.exports),a.apply(null,arguments)}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},b39a:function(e,t,n){"use strict";var i=n("da84"),r=n("2ba4"),a=n("ebb5"),o=n("d039"),s=n("f36a"),u=i.Int8Array,c=a.aTypedArray,l=a.exportTypedArrayMethod,d=[].toLocaleString,f=!!u&&o((function(){d.call(new u(1))})),h=o((function(){return[1,2].toLocaleString()!=new u([1,2]).toLocaleString()}))||!o((function(){u.prototype.toLocaleString.call([1,2])}));l("toLocaleString",(function(){return r(d,f?s(c(this)):c(this),s(arguments))}),h)},b42e:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?i:n)(t)}},b4f8:function(e,t,n){var i=n("23e7"),r=n("d066"),a=n("1a2d"),o=n("577e"),s=n("5692"),u=n("0b43"),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=o(e);if(a(c,t))return c[t];var n=r("Symbol")(t);return c[t]=n,l[n]=t,n}})},b575:function(e,t,n){var i,r,a,o,s,u,c,l,d=n("da84"),f=n("0366"),h=n("06cf").f,p=n("2cf4").set,g=n("1cdc"),v=n("d4c3"),m=n("a4b4"),y=n("605d"),b=d.MutationObserver||d.WebKitMutationObserver,_=d.document,w=d.process,T=d.Promise,S=h(d,"queueMicrotask"),k=S&&S.value;k||(i=function(){var e,t;y&&(e=w.domain)&&e.exit();while(r){t=r.fn,r=r.next;try{t()}catch(n){throw r?o():a=void 0,n}}a=void 0,e&&e.enter()},g||y||m||!b||!_?!v&&T&&T.resolve?(c=T.resolve(void 0),c.constructor=T,l=f(c.then,c),o=function(){l(i)}):y?o=function(){w.nextTick(i)}:(p=f(p,d),o=function(){p(i)}):(s=!0,u=_.createTextNode(""),new b(i).observe(u,{characterData:!0}),o=function(){u.data=s=!s})),e.exports=k||function(e){var t={fn:e,next:void 0};a&&(a.next=t),r||(r=t,o()),a=t}},b622:function(e,t,n){var i=n("da84"),r=n("5692"),a=n("1a2d"),o=n("90e3"),s=n("04f8"),u=n("fdbf"),c=r("wks"),l=i.Symbol,d=l&&l["for"],f=u?l:l&&l.withoutSetter||o;e.exports=function(e){if(!a(c,e)||!s&&"string"!=typeof c[e]){var t="Symbol."+e;s&&a(l,e)?c[e]=l[e]:c[e]=u&&d?d(t):f(t)}return c[e]}},b636:function(e,t,n){var i=n("e065");i("asyncIterator")},b639:function(e,t,n){"use strict";(function(e){
- /*!
- * The buffer module from node.js, for the browser.
- *
- * @author Feross Aboukhadijeh <http://feross.org>
- * @license MIT
- */
- var i=n("1fb5"),r=n("9152"),a=n("e3db");function o(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=u.prototype):(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,i){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i);u.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=u.prototype):e=f(e,t);return e}(e,t,n,i):"string"===typeof t?function(e,t,n){"string"===typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|p(t,n);e=s(e,i);var r=e.write(t,n);r!==i&&(e=e.slice(0,r));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|h(t.length);return e=s(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||function(e){return e!==e}(t.length)?s(e,0):f(e,t);if("Buffer"===t.type&&a(t.data))return f(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(l(t),e=s(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|h(t.length);e=s(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function h(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(i)return F(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function v(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function m(e,t,n,i,r){if(0===e.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof t&&(t=u.from(t,i)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,i,r);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,i,r){var a,o=1,s=e.length,u=t.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;o=2,s/=2,u/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(r){var l=-1;for(a=n;a<s;a++)if(c(e,a)===c(t,-1===l?0:a-l)){if(-1===l&&(l=a),a-l+1===u)return l*o}else-1!==l&&(a-=a-l),l=-1}else for(n+u>s&&(n=s-u),a=n;a>=0;a--){for(var d=!0,f=0;f<u;f++)if(c(e,a+f)!==c(t,f)){d=!1;break}if(d)return a}return-1}function b(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i),i>r&&(i=r)):i=r;var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");i>a/2&&(i=a/2);for(var o=0;o<i;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function _(e,t,n,i){return H(F(t,e.length-n),e,n,i)}function w(e,t,n,i){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function T(e,t,n,i){return w(e,t,n,i)}function S(e,t,n,i){return H($(t),e,n,i)}function k(e,t,n,i){return H(function(e,t){for(var n,i,r,a=[],o=0;o<e.length;++o){if((t-=2)<0)break;n=e.charCodeAt(o),i=n>>8,r=n%256,a.push(r),a.push(i)}return a}(t,e.length-n),e,n,i)}function x(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);var i=[],r=t;while(r<n){var a,o,s,u,c=e[r],l=null,d=c>239?4:c>223?3:c>191?2:1;if(r+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:a=e[r+1],128===(192&a)&&(u=(31&c)<<6|63&a,u>127&&(l=u));break;case 3:a=e[r+1],o=e[r+2],128===(192&a)&&128===(192&o)&&(u=(15&c)<<12|(63&a)<<6|63&o,u>2047&&(u<55296||u>57343)&&(l=u));break;case 4:a=e[r+1],o=e[r+2],s=e[r+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(u=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s,u>65535&&u<1114112&&(l=u))}null===l?(l=65533,d=1):l>65535&&(l-=65536,i.push(l>>>10&1023|55296),l=56320|1023&l),i.push(l),r+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",i=0;while(i<t)n+=String.fromCharCode.apply(String,e.slice(i,i+=4096));return n}(i)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}(),t.kMaxLength=o(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,i){return l(t),t<=0?s(e,t):void 0!==n?"string"===typeof i?s(e,t).fill(n,i):s(e,t).fill(n):s(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return d(null,e)},u.allocUnsafeSlow=function(e){return d(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,r=0,a=Math.min(n,i);r<a;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=u.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var o=e[n];if(!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,r),r+=o.length}return i},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):g.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,i,r){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,r>>>=0,this===e)return 0;for(var a=r-i,o=n-t,s=Math.min(a,o),c=this.slice(i,r),l=e.slice(t,n),d=0;d<s;++d)if(c[d]!==l[d]){a=c[d],o=l[d];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},u.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return T(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function E(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function A(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function O(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",a=t;a<n;++a)r+=U(e[a]);return r}function j(e,t,n){for(var i=e.slice(t,n),r="",a=0;a<i.length;a+=2)r+=String.fromCharCode(i[a]+256*i[a+1]);return r}function I(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,i,r,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<a)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function M(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,a=Math.min(e.length-n,2);r<a;++r)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function L(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,a=Math.min(e.length-n,4);r<a;++r)e[n+r]=t>>>8*(i?r:3-r)&255}function D(e,t,n,i,r,a){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,i,a){return a||D(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function N(e,t,n,i,a){return a||D(e,0,n,8),r.write(e,t,n,i,52,8),n+8}u.prototype.slice=function(e,t){var n,i=this.length;if(e=~~e,t=void 0===t?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=u.prototype;else{var r=t-e;n=new u(r,void 0);for(var a=0;a<r;++a)n[a]=this[a+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);var i=this[e],r=1,a=0;while(++a<t&&(r*=256))i+=this[e+a]*r;return i},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);var i=this[e+--t],r=1;while(t>0&&(r*=256))i+=this[e+--t]*r;return i},u.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);var i=this[e],r=1,a=0;while(++a<t&&(r*=256))i+=this[e+a]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*t)),i},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);var i=t,r=1,a=this[e+--i];while(i>0&&(r*=256))a+=this[e+--i]*r;return r*=128,a>=r&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),r.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),r.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),r.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),r.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;P(this,e,t,n,r,0)}var a=1,o=0;this[t]=255&e;while(++o<n&&(a*=256))this[t+o]=e/a&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;P(this,e,t,n,r,0)}var a=n-1,o=1;this[t+a]=255&e;while(--a>=0&&(o*=256))this[t+a]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);P(this,e,t,n,r-1,-r)}var a=0,o=1,s=0;this[t]=255&e;while(++a<n&&(o*=256))e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);P(this,e,t,n,r-1,-r)}var a=n-1,o=1,s=0;this[t+a]=255&e;while(--a>=0&&(o*=256))e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r,a=i-n;if(this===e&&n<t&&t<i)for(r=a-1;r>=0;--r)e[r+t]=this[r+n];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},u.prototype.fill=function(e,t,n,i){if("string"===typeof e){if("string"===typeof t?(i=t,t=0,n=this.length):"string"===typeof n&&(i=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==i&&"string"!==typeof i)throw new TypeError("encoding must be a string");if("string"===typeof i&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=u.isBuffer(e)?e:F(new u(e,i).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function F(e,t){var n;t=t||1/0;for(var i=e.length,r=null,a=[],o=0;o<i;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function $(e){return i.toByteArray(function(e){if(e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}(e))}function H(e,t,n,i){for(var r=0;r<i;++r){if(r+n>=t.length||r>=e.length)break;t[r+n]=e[r]}return r}}).call(this,n("c8ba"))},b64b:function(e,t,n){var i=n("23e7"),r=n("7b0b"),a=n("df75"),o=n("d039"),s=o((function(){a(1)}));i({target:"Object",stat:!0,forced:s},{keys:function(e){return a(r(e))}})},b6b7:function(e,t,n){var i=n("ebb5"),r=n("4840"),a=i.aTypedArrayConstructor,o=i.getTypedArrayConstructor;e.exports=function(e){return a(r(e,o(e)))}},b727:function(e,t,n){var i=n("0366"),r=n("e330"),a=n("44ad"),o=n("7b0b"),s=n("07fa"),u=n("65f0"),c=r([].push),l=function(e){var t=1==e,n=2==e,r=3==e,l=4==e,d=6==e,f=7==e,h=5==e||d;return function(p,g,v,m){for(var y,b,_=o(p),w=a(_),T=i(g,v),S=s(w),k=0,x=m||u,C=t?x(p,S):n||f?x(p,0):void 0;S>k;k++)if((h||k in w)&&(y=w[k],b=T(y,k,_),e))if(t)C[k]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return k;case 2:c(C,y)}else switch(e){case 4:return!1;case 7:c(C,y)}return d?-1:r||l?l:C}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},b7ef:function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),a=n("d066"),o=n("5c6c"),s=n("9bf2").f,u=n("1a2d"),c=n("19aa"),l=n("7156"),d=n("e391"),f=n("cf98"),h=n("0d26"),p=n("83ab"),g=n("c430"),v=a("Error"),m=a("DOMException"),y=function(){c(this,b);var e=arguments.length,t=d(e<1?void 0:arguments[0]),n=d(e<2?void 0:arguments[1],"Error"),i=new m(t,n),r=v(t);return r.name="DOMException",s(i,"stack",o(1,h(r.stack,1))),l(i,this,y),i},b=y.prototype=m.prototype,_="stack"in v("DOMException"),w="stack"in new m(1,2),T=m&&p&&Object.getOwnPropertyDescriptor(r,"DOMException"),S=!!T&&!(T.writable&&T.configurable),k=_&&!S&&!w;i({global:!0,constructor:!0,forced:g||k},{DOMException:k?y:m});var x=a("DOMException"),C=x.prototype;if(C.constructor!==x)for(var E in g||s(C,"constructor",o(1,x)),f)if(u(f,E)){var A=f[E],O=A.s;u(x,O)||s(x,O,o(6,A.c))}},b917:function(e,t){for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i={},r=0;r<66;r++)i[n.charAt(r)]=r;e.exports={itoc:n,ctoi:i}},b980:function(e,t,n){var i=n("d039"),r=n("5c6c");e.exports=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)}))},b9b8:function(e,t,n){"use strict";n("4d90"),n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.parseTracks=t.parseData=t.findEbml=t.decodeBlock=t.EBML_TAGS=void 0,n("fb6a"),n("d81d"),n("ac1f"),n("466d"),n("14d9"),n("99af"),n("ace4"),n("d3b7"),n("159b"),n("00b4"),n("d401"),n("25f0"),n("4e82");var i=n("2c6b"),r=n("bff6"),a={EBML:(0,i.toUint8)([26,69,223,163]),DocType:(0,i.toUint8)([66,130]),Segment:(0,i.toUint8)([24,83,128,103]),SegmentInfo:(0,i.toUint8)([21,73,169,102]),Tracks:(0,i.toUint8)([22,84,174,107]),Track:(0,i.toUint8)([174]),TrackNumber:(0,i.toUint8)([215]),DefaultDuration:(0,i.toUint8)([35,227,131]),TrackEntry:(0,i.toUint8)([174]),TrackType:(0,i.toUint8)([131]),FlagDefault:(0,i.toUint8)([136]),CodecID:(0,i.toUint8)([134]),CodecPrivate:(0,i.toUint8)([99,162]),VideoTrack:(0,i.toUint8)([224]),AudioTrack:(0,i.toUint8)([225]),Cluster:(0,i.toUint8)([31,67,182,117]),Timestamp:(0,i.toUint8)([231]),TimestampScale:(0,i.toUint8)([42,215,177]),BlockGroup:(0,i.toUint8)([160]),BlockDuration:(0,i.toUint8)([155]),Block:(0,i.toUint8)([161]),SimpleBlock:(0,i.toUint8)([163])};t.EBML_TAGS=a;var o=[128,64,32,16,8,4,2,1],s=function(e,t,n,r){void 0===n&&(n=!0),void 0===r&&(r=!1);var a=function(e){for(var t=1,n=0;n<o.length;n++){if(e&o[n])break;t++}return t}(e[t]),s=e.subarray(t,t+a);return n&&(s=Array.prototype.slice.call(e,t,t+a),s[0]^=o[a-1]),{length:a,value:(0,i.bytesToNumber)(s,{signed:r}),bytes:s}},u=function e(t){return"string"===typeof t?t.match(/.{1,2}/g).map((function(t){return e(t)})):"number"===typeof t?(0,i.numberToBytes)(t):t},c=function e(t,n,r){if(r>=n.length)return n.length;var a=s(n,r,!1);if((0,i.bytesMatch)(t.bytes,a.bytes))return r;var o=s(n,r+a.length);return e(t,n,r+o.length+o.value+a.length)},l=function e(t,n){n=function(e){return Array.isArray(e)?e.map((function(e){return u(e)})):[u(e)]}(n),t=(0,i.toUint8)(t);var r=[];if(!n.length)return r;var a=0;while(a<t.length){var o=s(t,a,!1),l=s(t,a+o.length),d=a+o.length+l.length;127===l.value&&(l.value=c(o,t,d),l.value!==t.length&&(l.value-=d));var f=d+l.value>t.length?t.length:d+l.value,h=t.subarray(d,f);(0,i.bytesMatch)(n[0],o.bytes)&&(1===n.length?r.push(h):r=r.concat(e(h,n.slice(1))));var p=o.length+l.length+h.length;a+=p}return r};t.findEbml=l;var d=function(e,t,n,r){var o;"group"===t&&(o=l(e,[a.BlockDuration])[0],o&&(o=(0,i.bytesToNumber)(o),o=1/n*o*n/1e3),e=l(e,[a.Block])[0],t="block");var u=new DataView(e.buffer,e.byteOffset,e.byteLength),c=s(e,0),d=u.getInt16(c.length,!1),f=e[c.length+2],h=e.subarray(c.length+3),p=1/n*(r+d)*n/1e3,g={duration:o,trackNumber:c.value,keyframe:"simple"===t&&f>>7===1,invisible:(8&f)>>3===1,lacing:(6&f)>>1,discardable:"simple"===t&&1===(1&f),frames:[],pts:p,dts:p,timestamp:d};if(!g.lacing)return g.frames.push(h),g;var v=h[0]+1,m=[],y=1;if(2===g.lacing)for(var b=(h.length-y)/v,_=0;_<v;_++)m.push(b);if(1===g.lacing)for(var w=0;w<v-1;w++){var T=0;do{T+=h[y],y++}while(255===h[y-1]);m.push(T)}if(3===g.lacing)for(var S=0,k=0;k<v-1;k++){var x=0===k?s(h,y):s(h,y,!0,!0);S+=x.value,m.push(S),y+=x.length}return m.forEach((function(e){g.frames.push(h.subarray(y,y+e)),y+=e})),g};t.decodeBlock=d;var f=function(e){e=(0,i.toUint8)(e);var t=[],n=l(e,[a.Segment,a.Tracks,a.Track]);return n.length||(n=l(e,[a.Tracks,a.Track])),n.length||(n=l(e,[a.Track])),n.length?(n.forEach((function(e){var n=l(e,a.TrackType)[0];if(n&&n.length){if(1===n[0])n="video";else if(2===n[0])n="audio";else{if(17!==n[0])return;n="subtitle"}var o={rawCodec:(0,i.bytesToString)(l(e,[a.CodecID])[0]),type:n,codecPrivate:l(e,[a.CodecPrivate])[0],number:(0,i.bytesToNumber)(l(e,[a.TrackNumber])[0]),defaultDuration:(0,i.bytesToNumber)(l(e,[a.DefaultDuration])[0]),default:l(e,[a.FlagDefault])[0],rawData:e},s="";if(/V_MPEG4\/ISO\/AVC/.test(o.rawCodec))s="avc1."+(0,r.getAvcCodec)(o.codecPrivate);else if(/V_MPEGH\/ISO\/HEVC/.test(o.rawCodec))s="hev1."+(0,r.getHvcCodec)(o.codecPrivate);else if(/V_MPEG4\/ISO\/ASP/.test(o.rawCodec))s=o.codecPrivate?"mp4v.20."+o.codecPrivate[4].toString():"mp4v.20.9";else if(/^V_THEORA/.test(o.rawCodec))s="theora";else if(/^V_VP8/.test(o.rawCodec))s="vp8";else if(/^V_VP9/.test(o.rawCodec))if(o.codecPrivate){var u=function(e){var t=0,n={};while(t<e.length){var i=127&e[t],r=e[t+1],a=void 0;a=1===r?e[t+2]:e.subarray(t+2,t+2+r),1===i?n.profile=a:2===i?n.level=a:3===i?n.bitDepth=a:4===i?n.chromaSubsampling=a:n[i]=a,t+=2+r}return n}(o.codecPrivate),c=u.profile,d=u.level,f=u.bitDepth,h=u.chromaSubsampling;s="vp09.",s+=(0,i.padStart)(c,2,"0")+".",s+=(0,i.padStart)(d,2,"0")+".",s+=(0,i.padStart)(f,2,"0")+".",s+=""+(0,i.padStart)(h,2,"0");var p=l(e,[224,[85,176],[85,177]])[0]||[],g=l(e,[224,[85,176],[85,185]])[0]||[],v=l(e,[224,[85,176],[85,186]])[0]||[],m=l(e,[224,[85,176],[85,187]])[0]||[];(p.length||g.length||v.length||m.length)&&(s+="."+(0,i.padStart)(m[0],2,"0"),s+="."+(0,i.padStart)(v[0],2,"0"),s+="."+(0,i.padStart)(p[0],2,"0"),s+="."+(0,i.padStart)(g[0],2,"0"))}else s="vp9";else/^V_AV1/.test(o.rawCodec)?s="av01."+(0,r.getAv1Codec)(o.codecPrivate):/A_ALAC/.test(o.rawCodec)?s="alac":/A_MPEG\/L2/.test(o.rawCodec)?s="mp2":/A_MPEG\/L3/.test(o.rawCodec)?s="mp3":/^A_AAC/.test(o.rawCodec)?s=o.codecPrivate?"mp4a.40."+(o.codecPrivate[0]>>>3).toString():"mp4a.40.2":/^A_AC3/.test(o.rawCodec)?s="ac-3":/^A_PCM/.test(o.rawCodec)?s="pcm":/^A_MS\/ACM/.test(o.rawCodec)?s="speex":/^A_EAC3/.test(o.rawCodec)?s="ec-3":/^A_VORBIS/.test(o.rawCodec)?s="vorbis":/^A_FLAC/.test(o.rawCodec)?s="flac":/^A_OPUS/.test(o.rawCodec)&&(s="opus");o.codec=s,t.push(o)}})),t.sort((function(e,t){return e.number-t.number}))):t};t.parseTracks=f;t.parseData=function(e,t){var n=[],r=l(e,[a.Segment])[0],o=l(r,[a.SegmentInfo,a.TimestampScale])[0];o=o&&o.length?(0,i.bytesToNumber)(o):1e6;var s=l(r,[a.Cluster]);return t||(t=f(r)),s.forEach((function(e,t){var r=l(e,[a.SimpleBlock]).map((function(e){return{type:"simple",data:e}})),s=l(e,[a.BlockGroup]).map((function(e){return{type:"group",data:e}})),u=l(e,[a.Timestamp])[0]||0;u&&u.length&&(u=(0,i.bytesToNumber)(u));var c=r.concat(s).sort((function(e,t){return e.data.byteOffset-t.data.byteOffset}));c.forEach((function(e,t){var i=d(e.data,e.type,o,u);n.push(i)}))})),{tracks:t,blocks:n}}},baa5:function(e,t,n){var i=n("23e7"),r=n("e58c");i({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},bb1e:function(e,t,n){(function(t){var i,r="undefined"!==typeof t?t:"undefined"!==typeof window?window:{},a=n(1);"undefined"!==typeof document?i=document:(i=r["__GLOBAL_DOCUMENT_CACHE@4"],i||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=a)),e.exports=i}).call(this,n("c8ba"))},bb2f:function(e,t,n){var i=n("d039");e.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bcbf:function(e,t,n){var i=n("f5df"),r=n("e330"),a=r("".slice);e.exports=function(e){return"Big"===a(i(e),0,3)}},bee2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){t&&r(e.prototype,t);n&&r(e,n);return Object.defineProperty(e,"prototype",{writable:!1}),e},n("7a82");var i=function(e){return e&&e.__esModule?e:{default:e}}(n("a38e"));function r(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,(0,i.default)(r.key),r)}}},bf11:function(e,t,n){var i=n("cee1");t.DOMImplementation=i.DOMImplementation,t.XMLSerializer=i.XMLSerializer,t.DOMParser=n("36e8").DOMParser},bf19:function(e,t,n){"use strict";var i=n("23e7"),r=n("c65b");i({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return r(URL.prototype.toString,this)}})},bff6:function(e,t,n){"use strict";n("4d90"),n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.getHvcCodec=t.getAvcCodec=t.getAv1Codec=void 0,n("e25e"),n("26e9"),n("d401"),n("d3b7"),n("25f0");var i=n("2c6b");t.getAv1Codec=function(e){var t,n="",r=e[1]>>>3,a=31&e[1],o=e[2]>>>7,s=(64&e[2])>>6,u=(32&e[2])>>5,c=(16&e[2])>>4,l=(8&e[2])>>3,d=(4&e[2])>>2,f=3&e[2];return n+=r+"."+(0,i.padStart)(a,2,"0"),0===o?n+="M":1===o&&(n+="H"),t=2===r&&s?u?12:10:s?10:8,n+="."+(0,i.padStart)(t,2,"0"),n+="."+c,n+="."+l+d+f,n};t.getAvcCodec=function(e){var t=(0,i.toHexString)(e[1]),n=(0,i.toHexString)(252&e[2]),r=(0,i.toHexString)(e[3]);return""+t+n+r};t.getHvcCodec=function(e){var t="",n=e[1]>>6,r=31&e[1],a=(32&e[1])>>5,o=e.subarray(2,6),s=e.subarray(6,12),u=e[12];1===n?t+="A":2===n?t+="B":3===n&&(t+="C"),t+=r+".";var c=parseInt((0,i.toBinaryString)(o).split("").reverse().join(""),2);c>255&&(c=parseInt((0,i.toBinaryString)(o),2)),t+=c.toString(16)+".",t+=0===a?"L":"H",t+=u;for(var l="",d=0;d<s.length;d++){var f=s[d];f&&(l&&(l+="."),l+=f.toString(16))}return l&&(t+="."+l),t}},c04e:function(e,t,n){var i=n("c65b"),r=n("861d"),a=n("d9b5"),o=n("dc4a"),s=n("485a"),u=n("b622"),c=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!r(e)||a(e))return e;var n,u=o(e,l);if(u){if(void 0===t&&(t="default"),n=i(u,e,t),!r(n)||a(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},c19f:function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),a=n("621a"),o=n("2626"),s=a["ArrayBuffer"],u=r["ArrayBuffer"];i({global:!0,constructor:!0,forced:u!==s},{ArrayBuffer:s}),o("ArrayBuffer")},c1ac:function(e,t,n){"use strict";var i=n("ebb5"),r=n("b727").filter,a=n("1448"),o=i.aTypedArray,s=i.exportTypedArrayMethod;s("filter",(function(e){var t=r(o(this),e,arguments.length>1?arguments[1]:void 0);return a(this,t)}))},c20d:function(e,t,n){var i=n("da84"),r=n("d039"),a=n("e330"),o=n("577e"),s=n("58a8").trim,u=n("5899"),c=i.parseInt,l=i.Symbol,d=l&&l.iterator,f=/^[+-]?0x/i,h=a(f.exec),p=8!==c(u+"08")||22!==c(u+"0x16")||d&&!r((function(){c(Object(d))}));e.exports=p?function(e,t){var n=s(o(e));return c(n,t>>>0||(h(f,n)?16:10))}:c},c235:function(e,t,n){"use strict";(function(e){var i=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("53ca"));n("99af"),n("c975"),n("fb6a"),n("a434"),n("d81d"),n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("25f0"),n("3c65"),n("14d9"),n("00b4"),n("d9e2"),n("d401"),n("4de4"),n("d3b7"),n("b64b"),n("159b"),n("13d5"),n("acd8"),n("466d"),n("dca8"),n("498a"),n("7039"),n("1276"),n("a9e3"),n("3ca3"),n("10d1"),n("ddb0"),n("7a82"),n("4ec9"),n("5319"),n("e25e"),n("a4d3"),n("e01a"),n("cb29"),n("1d1c"),n("6062"),n("f4dd"),n("e9c4"),n("4e82"),n("e439"),n("f4b3"),n("bf19"),n("ace4"),n("5cc6"),n("907a"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("986a"),n("1d02"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),n("c19f"),n("2b3d"),n("9861"),n("aff5"),n("5377"),n("26e9"),n("6c57"),n("fb2c"),n("131a"),n("143c"),n("82da");for(var a,o=i(n("4924")),s=i(n("bb1e")),u=i(n("a559")),c=i(n("9667")),l=i(n("3c96")),d=i(n("55b5")),f=i(n("2cc7")),h=i(n("49cb")),p=i(n("f1839")),g=i(n("b17c")),v=i(n("ed6d")),m=i(n("9c0d")),y=n("6e7c"),b=n("421e"),_=n("aaf3"),w=n("2c6b"),T=n("72ab"),S=i(n("0b49")),k=n("a347"),x=n("3d1d"),C=n("dbad"),E={},A=function(e,t){return E[e]=E[e]||[],t&&(E[e]=E[e].concat(t)),E[e]},O=function(e,t){var n=A(e).indexOf(t);return!(n<=-1)&&(E[e]=E[e].slice(),E[e].splice(n,1),!0)},j={prefixed:!0},I=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],P=I[0],M=0;M<I.length;M++)if(I[M][1]in s.default){a=I[M];break}if(a){for(var L=0;L<a.length;L++)j[P[L]]=a[L];j.prefixed=a[0]!==P[0]}var D=[];var R=function e(t){var n,i="info",r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n("log",i,t)};return n=function(e,t){return function(n,i,r){var a=t.levels[i],s=new RegExp("^("+a+")$");if("log"!==n&&r.unshift(n.toUpperCase()+":"),r.unshift(e+":"),D){D.push([].concat(r));var u=D.length-1e3;D.splice(0,u>0?u:0)}if(o.default.console){var c=o.default.console[n];c||"debug"!==n||(c=o.default.console.info||o.default.console.log),c&&a&&s.test(n)&&c[Array.isArray(r)?"apply":"call"](o.default.console,r)}}}(t,r),r.createLogger=function(n){return e(t+": "+n)},r.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:i},r.level=function(e){if("string"===typeof e){if(!r.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');i=e}return i},r.history=function(){return D?[].concat(D):[]},r.history.filter=function(e){return(D||[]).filter((function(t){return new RegExp(".*"+e+".*").test(t[0])}))},r.history.clear=function(){D&&(D.length=0)},r.history.disable=function(){null!==D&&(D.length=0,D=null)},r.history.enable=function(){null===D&&(D=[])},r.error=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n("error",i,t)},r.warn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n("warn",i,t)},r.debug=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n("debug",i,t)},r}("VIDEOJS"),N=R.createLogger,B=Object.prototype.toString,U=function(e){return H(e)?Object.keys(e):[]};function F(e,t){U(e).forEach((function(n){return t(e[n],n)}))}function $(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Object.assign?u.default.apply(void 0,[e].concat(n)):(n.forEach((function(t){t&&F(t,(function(t,n){e[n]=t}))})),e)}function H(e){return!!e&&"object"===(0,r.default)(e)}function V(e){return H(e)&&"[object Object]"===B.call(e)&&e.constructor===Object}function z(e,t){if(!e||!t)return"";if("function"===typeof o.default.getComputedStyle){var n;try{n=o.default.getComputedStyle(e)}catch(i){return""}return n?n.getPropertyValue(t)||n[t]:""}return""}var q=o.default.navigator&&o.default.navigator.userAgent||"",W=/AppleWebKit\/([\d.]+)/i.exec(q),G=W?parseFloat(W.pop()):null,Y=/iPod/i.test(q),X=function(){var e=q.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),K=/Android/i.test(q),Q=function(){var e=q.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),J=K&&Q<5&&G<537,Z=/Firefox/i.test(q),ee=/Edg/i.test(q),te=!ee&&(/Chrome/i.test(q)||/CriOS/i.test(q)),ne=function(){var e=q.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),ie=function(){var e=/MSIE\s(\d+)\.\d/.exec(q),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(q)&&/rv:11.0/.test(q)&&(t=11),t}(),re=/Safari/i.test(q)&&!te&&!K&&!ee,ae=/Windows/i.test(q),oe=Boolean(pe()&&("ontouchstart"in o.default||o.default.navigator.maxTouchPoints||o.default.DocumentTouch&&o.default.document instanceof o.default.DocumentTouch)),se=/iPad/i.test(q)||re&&oe&&!/iPhone/i.test(q),ue=/iPhone/i.test(q)&&!se,ce=ue||se||Y,le=(re||ce)&&!te,de=Object.freeze({__proto__:null,IS_IPOD:Y,IOS_VERSION:X,IS_ANDROID:K,ANDROID_VERSION:Q,IS_NATIVE_ANDROID:J,IS_FIREFOX:Z,IS_EDGE:ee,IS_CHROME:te,CHROME_VERSION:ne,IE_VERSION:ie,IS_SAFARI:re,IS_WINDOWS:ae,TOUCH_ENABLED:oe,IS_IPAD:se,IS_IPHONE:ue,IS_IOS:ce,IS_ANY_SAFARI:le});function fe(e){return"string"===typeof e&&Boolean(e.trim())}function he(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function pe(){return s.default===o.default.document}function ge(e){return H(e)&&1===e.nodeType}function ve(){try{return o.default.parent!==o.default.self}catch(e){return!0}}function me(e){return function(t,n){if(!fe(t))return s.default[e](null);fe(n)&&(n=s.default.querySelector(n));var i=ge(n)?n:s.default;return i[e]&&i[e](t)}}function ye(e,t,n,i){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={});var r=s.default.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(R.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+n+"."),r.setAttribute(e,n)):"textContent"===e?be(r,n):r[e]===n&&"tabIndex"!==e||(r[e]=n)})),Object.getOwnPropertyNames(n).forEach((function(e){r.setAttribute(e,n[e])})),i&&Be(r,i),r}function be(e,t){return"undefined"===typeof e.textContent?e.innerText=t:e.textContent=t,e}function _e(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function we(e,t){return he(t),e.classList?e.classList.contains(t):function(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}(t).test(e.className)}function Te(e,t){return e.classList?e.classList.add(t):we(e,t)||(e.className=(e.className+" "+t).trim()),e}function Se(e,t){return e?(e.classList?e.classList.remove(t):(he(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e):(R.warn("removeClass was called with an element that doesn't exist"),null)}function ke(e,t,n){var i=we(e,t);if("function"===typeof n&&(n=n(e,t)),"boolean"!==typeof n&&(n=!i),n!==i)return n?Te(e,t):Se(e,t),e}function xe(e,t){Object.getOwnPropertyNames(t).forEach((function(n){var i=t[n];null===i||"undefined"===typeof i||!1===i?e.removeAttribute(n):e.setAttribute(n,!0===i?"":i)}))}function Ce(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var i=e.attributes,r=i.length-1;r>=0;r--){var a=i[r].name,o=i[r].value;"boolean"!==typeof e[a]&&-1===n.indexOf(","+a+",")||(o=null!==o),t[a]=o}return t}function Ee(e,t){return e.getAttribute(t)}function Ae(e,t,n){e.setAttribute(t,n)}function Oe(e,t){e.removeAttribute(t)}function je(){s.default.body.focus(),s.default.onselectstart=function(){return!1}}function Ie(){s.default.onselectstart=function(){return!0}}function Pe(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),n.height||(n.height=parseFloat(z(e,"height"))),n.width||(n.width=parseFloat(z(e,"width"))),n}}function Me(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};var t=e.offsetWidth,n=e.offsetHeight,i=0,r=0;while(e.offsetParent&&e!==s.default[j.fullscreenElement])i+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:i,top:r,width:t,height:n}}function Le(e,t){var n={x:0,y:0};if(ce){var i=e;while(i&&"html"!==i.nodeName.toLowerCase()){var r=z(i,"transform");if(/^matrix/.test(r)){var a=r.slice(7,-1).split(/,\s/).map(Number);n.x+=a[4],n.y+=a[5]}else if(/^matrix3d/.test(r)){var o=r.slice(9,-1).split(/,\s/).map(Number);n.x+=o[12],n.y+=o[13]}i=i.parentNode}}var s={},u=Me(t.target),c=Me(e),l=c.width,d=c.height,f=t.offsetY-(c.top-u.top),h=t.offsetX-(c.left-u.left);return t.changedTouches&&(h=t.changedTouches[0].pageX-c.left,f=t.changedTouches[0].pageY+c.top,ce&&(h-=n.x,f-=n.y)),s.y=1-Math.max(0,Math.min(1,f/d)),s.x=Math.max(0,Math.min(1,h/l)),s}function De(e){return H(e)&&3===e.nodeType}function Re(e){while(e.firstChild)e.removeChild(e.firstChild);return e}function Ne(e){return"function"===typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"===typeof e&&(e=e()),ge(e)||De(e)?e:"string"===typeof e&&/\S/.test(e)?s.default.createTextNode(e):void 0})).filter((function(e){return e}))}function Be(e,t){return Ne(t).forEach((function(t){return e.appendChild(t)})),e}function Ue(e,t){return Be(Re(e),t)}function Fe(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}var $e,He=me("querySelector"),Ve=me("querySelectorAll"),ze=Object.freeze({__proto__:null,isReal:pe,isEl:ge,isInFrame:ve,createEl:ye,textContent:be,prependTo:_e,hasClass:we,addClass:Te,removeClass:Se,toggleClass:ke,setAttributes:xe,getAttributes:Ce,getAttribute:Ee,setAttribute:Ae,removeAttribute:Oe,blockTextSelection:je,unblockTextSelection:Ie,getBoundingClientRect:Pe,findPosition:Me,getPointerPosition:Le,isTextNode:De,emptyEl:Re,normalizeContent:Ne,appendContent:Be,insertContent:Ue,isSingleLeftClick:Fe,$:He,$$:Ve}),qe=!1,We=function(){if(!1!==$e.options.autoSetup){var e=Array.prototype.slice.call(s.default.getElementsByTagName("video")),t=Array.prototype.slice.call(s.default.getElementsByTagName("audio")),n=Array.prototype.slice.call(s.default.getElementsByTagName("video-js")),i=e.concat(t,n);if(i&&i.length>0)for(var r=0,a=i.length;r<a;r++){var o=i[r];if(!o||!o.getAttribute){Ge(1);break}if(void 0===o.player){var u=o.getAttribute("data-setup");null!==u&&$e(o)}}else qe||Ge(1)}};function Ge(e,t){pe()&&(t&&($e=t),o.default.setTimeout(We,e))}function Ye(){qe=!0,o.default.removeEventListener("load",Ye)}pe()&&("complete"===s.default.readyState?Ye():o.default.addEventListener("load",Ye));var Xe,Ke=function(e){var t=s.default.createElement("style");return t.className=e,t},Qe=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},Je=3;function Ze(){return Je++}o.default.WeakMap||(Xe=function(){function e(){this.vdata="vdata"+Math.floor(o.default.performance&&o.default.performance.now()||Date.now()),this.data={}}var t=e.prototype;return t.set=function(e,t){var n=e[this.vdata]||Ze();return e[this.vdata]||(e[this.vdata]=n),this.data[n]=t,this},t.get=function(e){var t=e[this.vdata];if(t)return this.data[t];R("We have no data for this element",e)},t.has=function(e){var t=e[this.vdata];return t in this.data},t["delete"]=function(e){var t=e[this.vdata];t&&(delete this.data[t],delete e[this.vdata])},e}());var et,tt=o.default.WeakMap?new WeakMap:new Xe;function nt(e,t){if(tt.has(e)){var n=tt.get(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&tt["delete"](e)}}function it(e,t,n,i){n.forEach((function(n){e(t,n,i)}))}function rt(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var i=e||o.default.event;for(var r in e={},i)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&"path"!==r&&("returnValue"===r&&i.preventDefault||(e[r]=i[r]));if(e.target||(e.target=e.srcElement||s.default),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){i.preventDefault&&i.preventDefault(),e.returnValue=!1,i.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),e.cancelBubble=!0,i.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var a=s.default.documentElement,u=s.default.body;e.pageX=e.clientX+(a&&a.scrollLeft||u&&u.scrollLeft||0)-(a&&a.clientLeft||u&&u.clientLeft||0),e.pageY=e.clientY+(a&&a.scrollTop||u&&u.scrollTop||0)-(a&&a.clientTop||u&&u.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}var at=["touchstart","touchmove"];function ot(e,t,n){if(Array.isArray(t))return it(ot,e,t,n);tt.has(e)||tt.set(e,{});var i=tt.get(e);if(i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=Ze()),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,n){if(!i.disabled){t=rt(t);var r=i.handlers[t.type];if(r)for(var a=r.slice(0),o=0,s=a.length;o<s;o++){if(t.isImmediatePropagationStopped())break;try{a[o].call(e,t,n)}catch(u){R.error(u)}}}}),1===i.handlers[t].length)if(e.addEventListener){var r=!1;(function(){if("boolean"!==typeof et){et=!1;try{var e=Object.defineProperty({},"passive",{get:function(){et=!0}});o.default.addEventListener("test",null,e),o.default.removeEventListener("test",null,e)}catch(t){}}return et})()&&at.indexOf(t)>-1&&(r={passive:!0}),e.addEventListener(t,i.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,i.dispatcher)}function st(e,t,n){if(tt.has(e)){var i=tt.get(e);if(i.handlers){if(Array.isArray(t))return it(st,e,t,n);var r=function(e,t){i.handlers[t]=[],nt(e,t)};if(void 0!==t){var a=i.handlers[t];if(a)if(n){if(n.guid)for(var o=0;o<a.length;o++)a[o].guid===n.guid&&a.splice(o--,1);nt(e,t)}else r(e,t)}else for(var s in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},s)&&r(e,s)}}}function ut(e,t,n){var i=tt.has(e)?tt.get(e):{},r=e.parentNode||e.ownerDocument;if("string"===typeof t?t={type:t,target:e}:t.target||(t.target=e),t=rt(t),i.dispatcher&&i.dispatcher.call(e,t,n),r&&!t.isPropagationStopped()&&!0===t.bubbles)ut.call(null,r,t,n);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){tt.has(t.target)||tt.set(t.target,{});var a=tt.get(t.target);t.target[t.type]&&(a.disabled=!0,"function"===typeof t.target[t.type]&&t.target[t.type](),a.disabled=!1)}return!t.defaultPrevented}function ct(e,t,n){if(Array.isArray(t))return it(ct,e,t,n);var i=function i(){st(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||Ze(),ot(e,t,i)}function lt(e,t,n){var i=function i(){st(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||Ze(),ot(e,t,i)}var dt,ft=Object.freeze({__proto__:null,fixEvent:rt,on:ot,off:st,trigger:ut,one:ct,any:lt}),ht=function(e,t,n){t.guid||(t.guid=Ze());var i=t.bind(e);return i.guid=n?n+"_"+t.guid:t.guid,i},pt=function(e,t){var n=o.default.performance.now();return function(){var i=o.default.performance.now();i-n>=t&&(e.apply(void 0,arguments),n=i)}},gt=function(){};gt.prototype.allowedEvents_={},gt.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},ot(this,e,t),this.addEventListener=n},gt.prototype.addEventListener=gt.prototype.on,gt.prototype.off=function(e,t){st(this,e,t)},gt.prototype.removeEventListener=gt.prototype.off,gt.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},ct(this,e,t),this.addEventListener=n},gt.prototype.any=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},lt(this,e,t),this.addEventListener=n},gt.prototype.trigger=function(e){var t=e.type||e;"string"===typeof e&&(e={type:t}),e=rt(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),ut(this,e)},gt.prototype.dispatchEvent=gt.prototype.trigger,gt.prototype.queueTrigger=function(e){var t=this;dt||(dt=new Map);var n=e.type||e,i=dt.get(this);i||(i=new Map,dt.set(this,i));var r=i.get(n);i["delete"](n),o.default.clearTimeout(r);var a=o.default.setTimeout((function(){0===i.size&&(i=null,dt["delete"](t)),t.trigger(e)}),0);i.set(n,a)};var vt=function(e){return"function"===typeof e.name?e.name():"string"===typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:(0,r.default)(e)},mt=function(e){return e instanceof gt||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"===typeof e[t]}))},yt=function(e){return"string"===typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},bt=function(e,t,n){if(!e||!e.nodeName&&!mt(e))throw new Error("Invalid target for "+vt(t)+"#"+n+"; must be a DOM node or evented object.")},_t=function(e,t,n){if(!yt(e))throw new Error("Invalid event type for "+vt(t)+"#"+n+"; must be a non-empty string or array.")},wt=function(e,t,n){if("function"!==typeof e)throw new Error("Invalid listener for "+vt(t)+"#"+n+"; must be a function.")},Tt=function(e,t,n){var i,r,a,o=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return o?(i=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],a=t[1]):(i=t[0],r=t[1],a=t[2]),bt(i,e,n),_t(r,e,n),wt(a,e,n),a=ht(e,a),{isTargetingSelf:o,target:i,type:r,listener:a}},St=function(e,t,n,i){bt(e,e,t),e.nodeName?ft[t](e,n,i):e[t](n,i)},kt={on:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=Tt(this,n,"on"),a=r.isTargetingSelf,o=r.target,s=r.type,u=r.listener;if(St(o,"on",s,u),!a){var c=function(){return e.off(o,s,u)};c.guid=u.guid;var l=function(){return e.off("dispose",c)};l.guid=u.guid,St(this,"on","dispose",c),St(o,"on","dispose",l)}},one:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=Tt(this,n,"one"),a=r.isTargetingSelf,o=r.target,s=r.type,u=r.listener;if(a)St(o,"one",s,u);else{var c=function t(){e.off(o,s,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];u.apply(null,i)};c.guid=u.guid,St(o,"one",s,c)}},any:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=Tt(this,n,"any"),a=r.isTargetingSelf,o=r.target,s=r.type,u=r.listener;if(a)St(o,"any",s,u);else{var c=function t(){e.off(o,s,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];u.apply(null,i)};c.guid=u.guid,St(o,"any",s,c)}},off:function(e,t,n){if(!e||yt(e))st(this.eventBusEl_,e,t);else{var i=e,r=t;bt(i,this,"off"),_t(r,this,"off"),wt(n,this,"off"),n=ht(this,n),this.off("dispose",n),i.nodeName?(st(i,r,n),st(i,"dispose",n)):mt(i)&&(i.off(r,n),i.off("dispose",n))}},trigger:function(e,t){bt(this.eventBusEl_,this,"trigger");var n=e&&"string"!==typeof e?e.type:e;if(!yt(n)){var i="Invalid event type for "+vt(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(!e)throw new Error(i);(this.log||R).error(i)}return ut(this.eventBusEl_,e,t)}};function xt(e,t){void 0===t&&(t={});var n=t,i=n.eventBusKey;if(i){if(!e[i].nodeName)throw new Error('The eventBusKey "'+i+'" does not refer to an element.');e.eventBusEl_=e[i]}else e.eventBusEl_=ye("span",{className:"vjs-event-bus"});return $(e,kt),e.eventedCallbacks&&e.eventedCallbacks.forEach((function(e){e()})),e.on("dispose",(function(){e.off(),[e,e.el_,e.eventBusEl_].forEach((function(e){e&&tt.has(e)&&tt["delete"](e)})),o.default.setTimeout((function(){e.eventBusEl_=null}),0)})),e}var Ct={state:{},setState:function(e){var t,n=this;return"function"===typeof e&&(e=e()),F(e,(function(e,i){n.state[i]!==e&&(t=t||{},t[i]={from:n.state[i],to:e}),n.state[i]=e})),t&&mt(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function Et(e,t){return $(e,Ct),e.state=$({},e.state,t),"function"===typeof e.handleStateChanged&&mt(e)&&e.on("statechanged",e.handleStateChanged),e}var At=function(e){return"string"!==typeof e?e:e.replace(/./,(function(e){return e.toLowerCase()}))},Ot=function(e){return"string"!==typeof e?e:e.replace(/./,(function(e){return e.toUpperCase()}))};function jt(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.forEach((function(t){t&&F(t,(function(t,n){V(t)?(V(e[n])||(e[n]={}),e[n]=jt(e[n],t)):e[n]=t}))})),e}var It=function(){function e(){this.map_={}}var t=e.prototype;return t.has=function(e){return e in this.map_},t["delete"]=function(e){var t=this.has(e);return delete this.map_[e],t},t.set=function(e,t){return this.map_[e]=t,this},t.forEach=function(e,t){for(var n in this.map_)e.call(t,this.map_[n],n,this)},e}(),Pt=o.default.Map?o.default.Map:It,Mt=function(){function e(){this.set_={}}var t=e.prototype;return t.has=function(e){return e in this.set_},t["delete"]=function(e){var t=this.has(e);return delete this.set_[e],t},t.add=function(e){return this.set_[e]=1,this},t.forEach=function(e,t){for(var n in this.set_)e.call(t,n,n,this)},e}(),Lt=o.default.Set?o.default.Set:Mt,Dt=function(){function e(e,t,n){var i=this;if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=jt({},this.options_),t=this.options_=jt(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){var r=e&&e.id&&e.id()||"no_player";this.id_=r+"_component_"+Ze()}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(" ").forEach((function(e){return i.addClass(e)})),!1!==t.evented&&(xt(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),Et(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Lt,this.setIntervalIds_=new Lt,this.rafIds_=new Lt,this.namedRafs_=new Pt,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(n),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(e){if(void 0===e&&(e={}),!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=jt(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,n){return ye(e,t,n)},t.localize=function(e,t,n){void 0===n&&(n=e);var i=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),a=r&&r[i],o=i&&i.split("-")[0],s=r&&r[o],u=n;return a&&a[e]?u=a[e]:s&&s[e]&&(u=s[e]),t&&(u=u.replace(/\{(\d+)\}/g,(function(e,n){var i=t[n-1],r=i;return"undefined"===typeof i&&(r=e),r}))),u},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.reduce((function(e,t){return e.concat(t)}),[]);for(var i=this,r=0;r<t.length;r++)if(i=i.getChild(t[r]),!i||!i.getChild)return;return i},t.addChild=function(t,n,i){var r,a;if(void 0===n&&(n={}),void 0===i&&(i=this.children_.length),"string"===typeof t){a=Ot(t);var o=n.componentClass||a;n.name=a;var s=e.getComponent(o);if(!s)throw new Error("Component "+o+" does not exist");if("function"!==typeof s)return null;r=new s(this.player_||this,n)}else r=t;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(i,0,r),r.parentComponent_=this,"function"===typeof r.id&&(this.childIndex_[r.id()]=r),a=a||r.name&&Ot(r.name()),a&&(this.childNameIndex_[a]=r,this.childNameIndex_[At(a)]=r),"function"===typeof r.el&&r.el()){var u=null;this.children_[i+1]&&(this.children_[i+1].el_?u=this.children_[i+1].el_:ge(this.children_[i+1])&&(u=this.children_[i+1])),this.contentEl().insertBefore(r.el(),u)}return r},t.removeChild=function(e){if("string"===typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Ot(e.name())]=null,this.childNameIndex_[At(e.name())]=null;var i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,n=this.options_.children;if(n){var i,r=this.options_,a=e.getComponent("Tech");i=Array.isArray(n)?n:Object.keys(n),i.concat(Object.keys(this.options_).filter((function(e){return!i.some((function(t){return"string"===typeof t?e===t:e===t.name}))}))).map((function(e){var i,r;return"string"===typeof e?(i=e,r=n[i]||t.options_[i]||{}):(i=e.name,r=e),{name:i,opts:r}})).filter((function(t){var n=e.getComponent(t.opts.componentClass||Ot(t.name));return n&&!a.isTech(n)})).forEach((function(e){var n=e.name,i=e.opts;if(void 0!==r[n]&&(i=r[n]),!1!==i){!0===i&&(i={}),i.playerOptions=t.options_.playerOptions;var a=t.addChild(n,i);a&&(t[n]=a)}}))}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)},t.$=function(e,t){return He(e,t||this.contentEl())},t.$$=function(e,t){return Ve(e,t||this.contentEl())},t.hasClass=function(e){return we(this.el_,e)},t.addClass=function(e){Te(this.el_,e)},t.removeClass=function(e){Se(this.el_,e)},t.toggleClass=function(e,t){ke(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return Ee(this.el_,e)},t.setAttribute=function(e,t){Ae(this.el_,e,t)},t.removeAttribute=function(e){Oe(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t===t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var i=this.el_.style[e],r=i.indexOf("px");return-1!==r?parseInt(i.slice(0,r),10):parseInt(this.el_["offset"+Ot(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=z(this.el_,e),t=parseFloat(t),0===t||isNaN(t)){var n="offset"+Ot(e);t=this.el_[n]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(c.default.isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,n=null;this.on("touchstart",(function(i){1===i.touches.length&&(n={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},t=o.default.performance.now(),e=!0)})),this.on("touchmove",(function(t){if(t.touches.length>1)e=!1;else if(n){var i=t.touches[0].pageX-n.pageX,r=t.touches[0].pageY-n.pageY,a=Math.sqrt(i*i+r*r);a>10&&(e=!1)}}));var i=function(){e=!1};this.on("touchleave",i),this.on("touchcancel",i),this.on("touchend",(function(i){if(n=null,!0===e){var r=o.default.performance.now()-t;r<200&&(i.preventDefault(),this.trigger("tap"))}}))},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=ht(this.player(),this.player().reportUserActivity);this.on("touchstart",(function(){t(),this.clearInterval(e),e=this.setInterval(t,250)}));var n=function(n){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.setTimeout=function(e,t){var n,i=this;return e=ht(this,e),this.clearTimersOnDispose_(),n=o.default.setTimeout((function(){i.setTimeoutIds_.has(n)&&i.setTimeoutIds_["delete"](n),e()}),t),this.setTimeoutIds_.add(n),n},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_["delete"](e),o.default.clearTimeout(e)),e},t.setInterval=function(e,t){e=ht(this,e),this.clearTimersOnDispose_();var n=o.default.setInterval(e,t);return this.setIntervalIds_.add(n),n},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_["delete"](e),o.default.clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=ht(this,e),t=o.default.requestAnimationFrame((function(){n.rafIds_.has(t)&&n.rafIds_["delete"](t),e()})),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.requestNamedAnimationFrame=function(e,t){var n=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=ht(this,t);var i=this.requestAnimationFrame((function(){t(),n.namedRafs_.has(e)&&n.namedRafs_["delete"](e)}));return this.namedRafs_.set(e,i),e}},t.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_["delete"](e))},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_["delete"](e),o.default.cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach((function(t){var n=t[0],i=t[1];e[n].forEach((function(t,n){return e[i](n)}))})),e.clearingTimersOnDispose_=!1})))},e.registerComponent=function(t,n){if("string"!==typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var i,r=e.getComponent("Tech"),a=r&&r.isTech(n),o=e===n||e.prototype.isPrototypeOf(n.prototype);if(a||!o)throw i=a?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+i+".");t=Ot(t),e.components_||(e.components_={});var s=e.getComponent("Player");if("Player"===t&&s&&s.players){var u=s.players,c=Object.keys(u);if(u&&c.length>0&&c.map((function(e){return u[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[At(t)]=n,n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function Rt(e,t,n,i){return function(e,t,n){if("number"!==typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}(e,i,n.length-1),n[i][t]}function Nt(e){var t;return t=void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:Rt.bind(null,"start",0,e),end:Rt.bind(null,"end",1,e)},o.default.Symbol&&o.default.Symbol.iterator&&(t[o.default.Symbol.iterator]=function(){return(e||[]).values()}),t}function Bt(e,t){return Array.isArray(e)?Nt(e):void 0===e||void 0===t?Nt():Nt([[e,t]])}function Ut(e,t){var n,i,r=0;if(!t)return 0;e&&e.length||(e=Bt(0,0));for(var a=0;a<e.length;a++)n=e.start(a),i=e.end(a),i>t&&(i=t),r+=i-n;return r/t}function Ft(e){if(e instanceof Ft)return e;"number"===typeof e?this.code=e:"string"===typeof e?this.message=e:H(e)&&("number"===typeof e.code&&(this.code=e.code),$(this,e)),this.message||(this.message=Ft.defaultMessages[this.code]||"")}Dt.prototype.supportsRaf_="function"===typeof o.default.requestAnimationFrame&&"function"===typeof o.default.cancelAnimationFrame,Dt.registerComponent("Component",Dt),Ft.prototype.code=0,Ft.prototype.message="",Ft.prototype.status=null,Ft.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Ft.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var $t=0;$t<Ft.errorTypes.length;$t++)Ft[Ft.errorTypes[$t]]=$t,Ft.prototype[Ft.errorTypes[$t]]=$t;function Ht(e){return void 0!==e&&null!==e&&"function"===typeof e.then}function Vt(e){Ht(e)&&e.then(null,(function(e){}))}var zt=function(e){var t=["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((function(t,n,i){return e[n]&&(t[n]=e[n]),t}),{cues:e.cues&&Array.prototype.map.call(e.cues,(function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}}))});return t},qt={textTracksToJson:function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,(function(e){return e.track})),i=Array.prototype.map.call(t,(function(e){var t=zt(e.track);return e.src&&(t.src=e.src),t}));return i.concat(Array.prototype.filter.call(e.textTracks(),(function(e){return-1===n.indexOf(e)})).map(zt))},jsonToTextTracks:function(e,t){return e.forEach((function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach((function(e){return n.addCue(e)}))})),t.textTracks()},trackToJson_:zt},Wt=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.close_=function(e){return i.close(e)},i.opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=ye("div",{className:"vjs-modal-dialog-content"},{role:"document"}),i.descEl_=ye("p",{className:"vjs-modal-dialog-description vjs-control-text",id:i.el().getAttribute("aria-describedby")}),be(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},n.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-modal-dialog vjs-hidden "+e.prototype.buildCSSClass.call(this)},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},n.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},n.opened=function(e){return"boolean"===typeof e&&this[e?"open":"close"](),this.opened_},n.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},n.closeable=function(e){if("boolean"===typeof e){var t=this.closeable_=!!e,n=this.getChild("closeButton");if(t&&!n){var i=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=i,this.on(n,"close",this.close_)}!t&&n&&(this.off(n,"close",this.close_),this.removeChild(n),n.dispose())}return this.closeable_},n.fill=function(){this.fillWith(this.content())},n.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,i=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),Ue(t,e),this.trigger("modalfill"),i?n.insertBefore(t,i):n.appendChild(t);var r=this.getChild("closeButton");r&&n.appendChild(r.el_)},n.empty=function(){this.trigger("beforemodalempty"),Re(this.contentEl()),this.trigger("modalempty")},n.content=function(e){return"undefined"!==typeof e&&(this.content_=e),this.content_},n.conditionalFocus_=function(){var e=s.default.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},n.handleKeyDown=function(e){if(e.stopPropagation(),c.default.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(c.default.isEventKey(e,"Tab")){for(var t,n=this.focusableEls_(),i=this.el_.querySelector(":focus"),r=0;r<n.length;r++)if(i===n[r]){t=r;break}s.default.activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(n[n.length-1].focus(),e.preventDefault()):e.shiftKey||t!==n.length-1||(n[0].focus(),e.preventDefault())}},n.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,(function(e){return(e instanceof o.default.HTMLAnchorElement||e instanceof o.default.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof o.default.HTMLInputElement||e instanceof o.default.HTMLSelectElement||e instanceof o.default.HTMLTextAreaElement||e instanceof o.default.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof o.default.HTMLIFrameElement||e instanceof o.default.HTMLObjectElement||e instanceof o.default.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")}))},t}(Dt);Wt.prototype.options_={pauseOnOpen:!0,temporary:!0},Dt.registerComponent("ModalDialog",Wt);var Gt=function(e){function t(t){var n;void 0===t&&(t=[]),n=e.call(this)||this,n.tracks_=[],Object.defineProperty((0,l.default)(n),"length",{get:function(){return this.tracks_.length}});for(var i=0;i<t.length;i++)n.addTrack(t[i]);return n}(0,d.default)(t,e);var n=t.prototype;return n.addTrack=function(e){var t=this,n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get:function(){return this.tracks_[n]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=function(){t.trigger({track:e,type:"labelchange",target:t})},mt(e)&&e.addEventListener("labelchange",e.labelchange_)},n.removeTrack=function(e){for(var t,n=0,i=this.length;n<i;n++)if(this[n]===e){t=this[n],t.off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})},n.getTrackById=function(e){for(var t=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===e){t=r;break}}return t},t}(gt);for(var Yt in Gt.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},Gt.prototype.allowedEvents_)Gt.prototype["on"+Yt]=null;var Xt=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)},Kt=function(e){function t(t){var n;void 0===t&&(t=[]);for(var i=t.length-1;i>=0;i--)if(t[i].enabled){Xt(t,t[i]);break}return n=e.call(this,t)||this,n.changing_=!1,n}(0,d.default)(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.enabled&&Xt(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){n.changing_||(n.changing_=!0,Xt(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(Gt),Qt=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)},Jt=function(e){function t(t){var n;void 0===t&&(t=[]);for(var i=t.length-1;i>=0;i--)if(t[i].selected){Qt(t,t[i]);break}return n=e.call(this,t)||this,n.changing_=!1,Object.defineProperty((0,l.default)(n),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),n}(0,d.default)(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.selected&&Qt(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.selectedChange_=function(){n.changing_||(n.changing_=!0,Qt(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("selectedchange",t.selectedChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.selectedChange_&&(t.removeEventListener("selectedchange",t.selectedChange_),t.selectedChange_=null)},t}(Gt),Zt=function(e){function t(){return e.apply(this,arguments)||this}(0,d.default)(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;e.prototype.addTrack.call(this,t),this.queueChange_||(this.queueChange_=function(){return n.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}),t.addEventListener("modechange",this.queueChange_);-1===["metadata","chapters"].indexOf(t.kind)&&t.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&(this.queueChange_&&t.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&t.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},t}(Gt),en=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},t.getTrackElementByTrack_=function(e){for(var t,n=0,i=this.trackElements_.length;n<i;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},t.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"===typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"===typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}},e}(),tn=function(){function e(t){e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var t=e.prototype;return t.setCues_=function(e){var t=this.length||0,n=0,i=e.length;this.cues_=e,this.length_=e.length;var r=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<i)for(n=t;n<i;n++)r.call(this,n)},t.getCueById=function(e){for(var t=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===e){t=r;break}}return t},e}(),nn={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},rn={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},an={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},on={disabled:"disabled",hidden:"hidden",showing:"showing"},sn=function(e){function t(t){var n;void 0===t&&(t={}),n=e.call(this)||this;var i={id:t.id||"vjs_track_"+Ze(),kind:t.kind||"",language:t.language||""},r=t.label||"",a=function(e){Object.defineProperty((0,l.default)(n),e,{get:function(){return i[e]},set:function(){}})};for(var o in i)a(o);return Object.defineProperty((0,l.default)(n),"label",{get:function(){return r},set:function(e){e!==r&&(r=e,this.trigger("labelchange"))}}),n}return(0,d.default)(t,e),t}(gt),un=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=s.default.createElement("a");n.href=e;for(var i={},r=0;r<t.length;r++)i[t[r]]=n[t[r]];return"http:"===i.protocol&&(i.host=i.host.replace(/:80$/,"")),"https:"===i.protocol&&(i.host=i.host.replace(/:443$/,"")),i.protocol||(i.protocol=o.default.location.protocol),i.host||(i.host=o.default.location.host),i},cn=function(e){if(!e.match(/^https?:\/\//)){var t=s.default.createElement("a");t.href=e,e=t.href}return e},ln=function(e){if("string"===typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""},dn=function(e,t){void 0===t&&(t=o.default.location);var n=un(e),i=":"===n.protocol?t.protocol:n.protocol,r=i+n.host!==t.protocol+t.host;return r},fn=Object.freeze({__proto__:null,parseUrl:un,getAbsoluteURL:cn,getFileExtension:ln,isCrossOrigin:dn}),hn=function(e,t){var n=new o.default.WebVTT.Parser(o.default,o.default.vttjs,o.default.WebVTT.StringDecoder()),i=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){i.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),i.length>0&&(o.default.console&&o.default.console.groupCollapsed&&o.default.console.groupCollapsed("Text Track parsing errors for "+t.src),i.forEach((function(e){return R.error(e)})),o.default.console&&o.default.console.groupEnd&&o.default.console.groupEnd()),n.flush()},pn=function(e,t){var n={uri:e},i=dn(e);i&&(n.cors=i);var r="use-credentials"===t.tech_.crossOrigin();r&&(n.withCredentials=r),(0,h.default)(n,ht(this,(function(e,n,i){if(e)return R.error(e,n);t.loaded_=!0,"function"!==typeof o.default.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],(function(e){if("vttjserror"!==e.type)return hn(i,t);R.error("vttjs failed to load, stopping trying to process "+t.src)})):hn(i,t)})))},gn=function(e){function t(t){var n;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var i=jt(t,{kind:an[t.kind]||"subtitles",language:t.language||t.srclang||""}),r=on[i.mode]||"disabled",a=i["default"];"metadata"!==i.kind&&"chapters"!==i.kind||(r="hidden"),n=e.call(this,i)||this,n.tech_=i.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var o=new tn(n.cues_),s=new tn(n.activeCues_),u=!1;n.timeupdateHandler=ht((0,l.default)(n),(function(e){void 0===e&&(e={}),this.tech_.isDisposed()||(this.tech_.isReady_?(this.activeCues=this.activeCues,u&&(this.trigger("cuechange"),u=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))):"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)))}));return n.tech_.one("dispose",(function(){n.stopTracking()})),"disabled"!==r&&n.startTracking(),Object.defineProperties((0,l.default)(n),{default:{get:function(){return a},set:function(){}},mode:{get:function(){return r},set:function(e){on[e]&&r!==e&&(r=e,this.preload_||"disabled"===r||0!==this.cues.length||pn(this.src,this),this.stopTracking(),"disabled"!==r&&this.startTracking(),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?o:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return s;for(var e=this.tech_.currentTime(),t=[],n=0,i=this.cues.length;n<i;n++){var r=this.cues[n];(r.startTime<=e&&r.endTime>=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(u=!1,t.length!==this.activeCues_.length)u=!0;else for(var a=0;a<t.length;a++)-1===this.activeCues_.indexOf(t[a])&&(u=!0);return this.activeCues_=t,s.setCues_(this.activeCues_),s},set:function(){}}}),i.src?(n.src=i.src,n.preload_||(n.loaded_=!0),(n.preload_||"subtitles"!==i.kind&&"captions"!==i.kind)&&pn(n.src,(0,l.default)(n))):n.loaded_=!0,n}(0,d.default)(t,e);var n=t.prototype;return n.startTracking=function(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)},n.stopTracking=function(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)},n.addCue=function(e){var t=e;if(o.default.vttjs&&!(e instanceof o.default.vttjs.VTTCue)){for(var n in t=new o.default.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}for(var i=this.tech_.textTracks(),r=0;r<i.length;r++)i[r]!==this&&i[r].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},n.removeCue=function(e){var t=this.cues_.length;while(t--){var n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(sn);gn.prototype.allowedEvents_={cuechange:"cuechange"};var vn=function(e){function t(t){var n;void 0===t&&(t={});var i=jt(t,{kind:rn[t.kind]||""});n=e.call(this,i)||this;var r=!1;return Object.defineProperty((0,l.default)(n),"enabled",{get:function(){return r},set:function(e){"boolean"===typeof e&&e!==r&&(r=e,this.trigger("enabledchange"))}}),i.enabled&&(n.enabled=i.enabled),n.loaded_=!0,n}return(0,d.default)(t,e),t}(sn),mn=function(e){function t(t){var n;void 0===t&&(t={});var i=jt(t,{kind:nn[t.kind]||""});n=e.call(this,i)||this;var r=!1;return Object.defineProperty((0,l.default)(n),"selected",{get:function(){return r},set:function(e){"boolean"===typeof e&&e!==r&&(r=e,this.trigger("selectedchange"))}}),i.selected&&(n.selected=i.selected),n}return(0,d.default)(t,e),t}(sn),yn=function(e){function t(t){var n,i;void 0===t&&(t={}),n=e.call(this)||this;var r=new gn(t);return n.kind=r.kind,n.src=r.src,n.srclang=r.language,n.label=r.label,n["default"]=r["default"],Object.defineProperties((0,l.default)(n),{readyState:{get:function(){return i}},track:{get:function(){return r}}}),i=0,r.addEventListener("loadeddata",(function(){i=2,n.trigger({type:"load",target:(0,l.default)(n)})})),n}return(0,d.default)(t,e),t}(gt);yn.prototype.allowedEvents_={load:"load"},yn.NONE=0,yn.LOADING=1,yn.LOADED=2,yn.ERROR=3;var bn={audio:{ListClass:Kt,TrackClass:vn,capitalName:"Audio"},video:{ListClass:Jt,TrackClass:mn,capitalName:"Video"},text:{ListClass:Zt,TrackClass:gn,capitalName:"Text"}};Object.keys(bn).forEach((function(e){bn[e].getterName=e+"Tracks",bn[e].privateName=e+"Tracks_"}));var _n={remoteText:{ListClass:Zt,TrackClass:gn,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:en,TrackClass:yn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},wn=(0,u.default)({},bn,_n);_n.names=Object.keys(_n),bn.names=Object.keys(bn),wn.names=[].concat(_n.names).concat(bn.names);var Tn=function(e){function t(t,n){var i;return void 0===t&&(t={}),void 0===n&&(n=function(){}),t.reportTouchActivity=!1,i=e.call(this,null,t,n)||this,i.onDurationChange_=function(e){return i.onDurationChange(e)},i.trackProgress_=function(e){return i.trackProgress(e)},i.trackCurrentTime_=function(e){return i.trackCurrentTime(e)},i.stopTrackingCurrentTime_=function(e){return i.stopTrackingCurrentTime(e)},i.disposeSourceHandler_=function(e){return i.disposeSourceHandler(e)},i.queuedHanders_=new Set,i.hasStarted_=!1,i.on("playing",(function(){this.hasStarted_=!0})),i.on("loadstart",(function(){this.hasStarted_=!1})),wn.names.forEach((function(e){var n=wn[e];t&&t[n.getterName]&&(i[n.privateName]=t[n.getterName])})),i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(e){!1===t["native"+e+"Tracks"]&&(i["featuresNative"+e+"Tracks"]=!1)})),!1===t.nativeCaptions||!1===t.nativeTextTracks?i.featuresNativeTextTracks=!1:!0!==t.nativeCaptions&&!0!==t.nativeTextTracks||(i.featuresNativeTextTracks=!0),i.featuresNativeTextTracks||i.emulateTextTracks(),i.preloadTextTracks=!1!==t.preloadTextTracks,i.autoRemoteTextTracks_=new wn.text.ListClass,i.initTrackListeners(),t.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}(0,d.default)(t,e);var n=t.prototype;return n.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",(function(){return t.setTimeout((function(){return t.triggerSourceset(e)}),1)})),this.trigger({src:e,type:"sourceset"})},n.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},n.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},n.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(ht(this,(function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()})),500)},n.onDurationChange=function(e){this.duration_=this.duration()},n.buffered=function(){return Bt(0,0)},n.bufferedPercent=function(){return Ut(this.buffered(),this.duration_)},n.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},n.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},n.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},n.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},n.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.dispose=function(){this.clearTracks(bn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},n.clearTracks=function(e){var t=this;e=[].concat(e),e.forEach((function(e){var n=t[e+"Tracks"]()||[],i=n.length;while(i--){var r=n[i];"text"===e&&t.removeRemoteTextTrack(r),n.removeTrack(r)}}))},n.cleanupAutoTextTracks=function(){var e=this.autoRemoteTextTracks_||[],t=e.length;while(t--){var n=e[t];this.removeRemoteTextTrack(n)}},n.reset=function(){},n.crossOrigin=function(){},n.setCrossOrigin=function(){},n.error=function(e){return void 0!==e&&(this.error_=new Ft(e),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?Bt(0,0):Bt()},n.play=function(){},n.setScrubbing=function(){},n.scrubbing=function(){},n.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.initTrackListeners=function(){var e=this;bn.names.forEach((function(t){var n=bn[t],i=function(){e.trigger(t+"trackchange")},r=e[n.getterName]();r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),e.on("dispose",(function(){r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i)}))}))},n.addWebVttScript_=function(){var e=this;if(!o.default.WebVTT)if(s.default.body.contains(this.el())){if(!this.options_["vtt.js"]&&V(p.default)&&Object.keys(p.default).length>0)return void this.trigger("vttjsloaded");var t=s.default.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",(function(){t.onload=null,t.onerror=null})),o.default.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),i=function(e){return t.addTrack(e.track)},r=function(e){return t.removeTrack(e.track)};n.on("addtrack",i),n.on("removetrack",r),this.addWebVttScript_();var a=function(){return e.trigger("texttrackchange")},o=function(){a();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",a),"showing"===n.mode&&n.addEventListener("cuechange",a)}};o(),t.addEventListener("change",o),t.addEventListener("addtrack",o),t.addEventListener("removetrack",o),this.on("dispose",(function(){n.off("addtrack",i),n.off("removetrack",r),t.removeEventListener("change",o),t.removeEventListener("addtrack",o),t.removeEventListener("removetrack",o);for(var e=0;e<t.length;e++){var s=t[e];s.removeEventListener("cuechange",a)}}))},n.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,n,i,r){void 0===r&&(r={});var a=e.textTracks();r.kind=t,n&&(r.label=n),i&&(r.language=i),r.tech=e;var o=new wn.text.TrackClass(r);return a.addTrack(o),o}(this,e,t,n)},n.createRemoteTextTrack=function(e){var t=jt(e,{tech:this});return new _n.remoteTextEl.TrackClass(t)},n.addRemoteTextTrack=function(e,t){var n=this;void 0===e&&(e={});var i=this.createRemoteTextTrack(e);return!0!==t&&!1!==t&&(R.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!0!==t&&this.ready((function(){return n.autoRemoteTextTracks_.addTrack(i.track)})),i},n.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},n.getVideoPlaybackQuality=function(){return{}},n.requestPictureInPicture=function(){var e=this.options_.Promise||o.default.Promise;if(e)return e.reject()},n.disablePictureInPicture=function(){return!0},n.setDisablePictureInPicture=function(){},n.requestVideoFrameCallback=function(e){var t=this,n=Ze();return!this.isReady_||this.paused()?(this.queuedHanders_.add(n),this.one("playing",(function(){t.queuedHanders_.has(n)&&(t.queuedHanders_["delete"](n),e())}))):this.requestNamedAnimationFrame(n,e),n},n.cancelVideoFrameCallback=function(e){this.queuedHanders_.has(e)?this.queuedHanders_["delete"](e):this.cancelNamedAnimationFrame(e)},n.setPoster=function(){},n.playsinline=function(){},n.setPlaysinline=function(){},n.overrideNativeAudioTracks=function(){},n.overrideNativeVideoTracks=function(){},n.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=Ot(e),t.techs_[e]=n,t.techs_[At(e)]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return t.techs_&&t.techs_[e]?t.techs_[e]:(e=Ot(e),o.default&&o.default.videojs&&o.default.videojs[e]?(R.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),o.default.videojs[e]):void 0)},t}(Dt);wn.names.forEach((function(e){var t=wn[e];Tn.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),Tn.prototype.featuresVolumeControl=!0,Tn.prototype.featuresMuteControl=!0,Tn.prototype.featuresFullscreenResize=!1,Tn.prototype.featuresPlaybackRate=!1,Tn.prototype.featuresProgressEvents=!1,Tn.prototype.featuresSourceset=!1,Tn.prototype.featuresTimeupdateEvents=!1,Tn.prototype.featuresNativeTextTracks=!1,Tn.prototype.featuresVideoFrameCallback=!1,Tn.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var i=e.sourceHandlers;i||(i=e.sourceHandlers=[]),void 0===n&&(n=i.length),i.splice(n,0,t)},e.canPlayType=function(t){for(var n,i=e.sourceHandlers||[],r=0;r<i.length;r++)if(n=i[r].canPlayType(t),n)return n;return""},e.selectSourceHandler=function(t,n){for(var i,r=e.sourceHandlers||[],a=0;a<r.length;a++)if(i=r[a].canHandleSource(t,n),i)return r[a];return null},e.canPlaySource=function(t,n){var i=e.selectSourceHandler(t,n);return i?i.canHandleSource(t,n):""};["seekable","seeking","duration"].forEach((function(e){var t=this[e];"function"===typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})}),e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:R.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Dt.registerComponent("Tech",Tn),Tn.registerTech("Tech",Tn),Tn.defaultTechOrder_=[];var Sn={},kn={},xn={};function Cn(e,t,n){e.setTimeout((function(){return function e(t,n,i,r,a,o){void 0===t&&(t={});void 0===n&&(n=[]);void 0===a&&(a=[]);void 0===o&&(o=!1);var s=n,u=s[0],c=s.slice(1);if("string"===typeof u)e(t,Sn[u],i,r,a,o);else if(u){var l=function(e,t){var n=kn[e.id()],i=null;if(void 0===n||null===n)return i=t(e),kn[e.id()]=[[t,i]],i;for(var r=0;r<n.length;r++){var a=n[r],o=a[0],s=a[1];o===t&&(i=s)}null===i&&(i=t(e),n.push([t,i]));return i}(r,u);if(!l.setSource)return a.push(l),e(t,c,i,r,a,o);l.setSource($({},t),(function(n,s){if(n)return e(t,c,i,r,a,o);a.push(l),e(s,t.type===s.type?c:Sn[s.type],i,r,a,o)}))}else c.length?e(t,c,i,r,a,o):o?i(t,a):e(t,Sn["*"],i,r,a,!0)}(t,Sn[t.type],n,e)}),1)}function En(e,t,n,i){void 0===i&&(i=null);var r="call"+Ot(n),a=e.reduce(In(r),i),o=a===xn,s=o?null:t[n](a);return function(e,t,n,i){for(var r=e.length-1;r>=0;r--){var a=e[r];a[t]&&a[t](i,n)}}(e,n,s,o),s}var An={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},On={setCurrentTime:1,setMuted:1,setVolume:1},jn={play:1,pause:1};function In(e){return function(t,n){return t===xn?xn:n[e]?n[e](t):t}}var Pn={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},Mn=function(e){void 0===e&&(e="");var t=ln(e),n=Pn[t.toLowerCase()];return n||""};function Ln(e){if(!e.type){var t=Mn(e.src);t&&(e.type=t)}return e}var Dn=function(e){function t(t,n,i){var r,a=jt({createEl:!1},n);if(r=e.call(this,t,a,i)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)t.src(n.playerOptions.sources);else for(var o=0,s=n.playerOptions.techOrder;o<s.length;o++){var u=Ot(s[o]),c=Tn.getTech(u);if(u||(c=Dt.getComponent(u)),c&&c.isSupported()){t.loadTech_(u);break}}return r}return(0,d.default)(t,e),t}(Dt);Dt.registerComponent("MediaLoader",Dn);var Rn=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.options_.controlText&&i.controlText(i.options_.controlText),i.handleMouseOver_=function(e){return i.handleMouseOver(e)},i.handleMouseOut_=function(e){return i.handleMouseOut(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.emitTapEvents(),i.enable(),i}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={}),t=$({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&R.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),n=$({role:"button"},n),this.tabIndex_=t.tabIndex;var i=ye(e,t,n);return i.appendChild(ye("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i},n.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},n.createControlTextEl=function(e){return this.controlTextEl_=ye("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},n.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,be(this.controlTextEl_,n),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!==typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!==typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)},n.handleLanguagechange=function(){this.controlText(this.controlText_)},n.handleClick=function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(t){c.default.isEventKey(t,"Space")||c.default.isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(Dt);Dt.registerComponent("ClickableComponent",Rn);var Nn=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update(),i.update_=function(e){return i.update(e)},t.on("posterchange",i.update_),i}(0,d.default)(t,e);var n=t.prototype;return n.dispose=function(){this.player().off("posterchange",this.update_),e.prototype.dispose.call(this)},n.createEl=function(){var e=ye("div",{className:"vjs-poster",tabIndex:-1});return e},n.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},n.setSrc=function(e){var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t},n.handleClick=function(e){if(this.player_.controls()){var t=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;!this.player_.tech(!0)||(ie||ee)&&t||this.player_.tech(!0).focus(),this.player_.paused()?Vt(this.player_.play()):this.player_.pause()}},t}(Rn);Dt.registerComponent("PosterImage",Nn);var Bn={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Un(e,t){var n;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function Fn(e,t,n){try{e.style[t]=n}catch(i){return}}var $n=function(e){function t(t,n,i){var r;r=e.call(this,t,n,i)||this;var a=function(e){return r.updateDisplay(e)};return t.on("loadstart",(function(e){return r.toggleDisplay(e)})),t.on("texttrackchange",a),t.on("loadedmetadata",(function(e){return r.preselectTrack(e)})),t.ready(ht((0,l.default)(r),(function(){if(t.tech_&&t.tech_.featuresNativeTextTracks)this.hide();else{t.on("fullscreenchange",a),t.on("playerresize",a),o.default.addEventListener("orientationchange",a),t.on("dispose",(function(){return o.default.removeEventListener("orientationchange",a)}));for(var e=this.options_.playerOptions.tracks||[],n=0;n<e.length;n++)this.player_.addRemoteTextTrack(e[n],!0);this.preselectTrack()}}))),r}(0,d.default)(t,e);var n=t.prototype;return n.preselectTrack=function(){for(var e,t,n,i={captions:1,subtitles:1},r=this.player_.textTracks(),a=this.player_.cache_.selectedLanguage,o=0;o<r.length;o++){var s=r[o];a&&a.enabled&&a.language&&a.language===s.language&&s.kind in i?s.kind===a.kind?n=s:n||(n=s):a&&!a.enabled?(n=null,e=null,t=null):s["default"]&&("descriptions"!==s.kind||e?s.kind in i&&!t&&(t=s):e=s)}n?n.mode="showing":t?t.mode="showing":e&&(e.mode="showing")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})},n.clearDisplay=function(){"function"===typeof o.default.WebVTT&&o.default.WebVTT.processCues(o.default,[],this.el_)},n.updateDisplay=function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){for(var n=[],i=0;i<e.length;++i){var r=e[i];"showing"===r.mode&&n.push(r)}this.updateForTrack(n)}else{var a=null,o=null,s=e.length;while(s--){var u=e[s];"showing"===u.mode&&("descriptions"===u.kind?a=u:o=u)}o?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(o)):a&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(a))}},n.updateDisplayState=function(e){var t=this.player_.textTrackSettings.getValues(),n=e.activeCues,i=n.length;while(i--){var r=n[i];if(r){var a=r.displayState;if(t.color&&(a.firstChild.style.color=t.color),t.textOpacity&&Fn(a.firstChild,"color",Un(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(a.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&Fn(a.firstChild,"backgroundColor",Un(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?Fn(a,"backgroundColor",Un(t.windowColor,t.windowOpacity)):a.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?a.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===t.edgeStyle&&(a.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),t.fontPercent&&1!==t.fontPercent){var s=o.default.parseFloat(a.style.fontSize);a.style.fontSize=s*t.fontPercent+"px",a.style.height="auto",a.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=Bn[t.fontFamily])}}},n.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"===typeof o.default.WebVTT&&!e.every((function(e){return!e.activeCues}))){for(var t=[],n=0;n<e.length;++n)for(var i=e[n],r=0;r<i.activeCues.length;++r)t.push(i.activeCues[r]);o.default.WebVTT.processCues(o.default,t,this.el_);for(var a=0;a<e.length;++a){for(var s=e[a],u=0;u<s.activeCues.length;++u){var c=s.activeCues[u].displayState;Te(c,"vjs-text-track-cue"),Te(c,"vjs-text-track-cue-"+(s.language?s.language:a)),s.language&&Ae(c,"lang",s.language)}this.player_.textTrackSettings&&this.updateDisplayState(s)}}},t}(Dt);Dt.registerComponent("TextTrackDisplay",$n);var Hn=function(e){function t(){return e.apply(this,arguments)||this}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(){var t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"Video Player"),i=ye("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[n])}),r=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(i),r},t}(Dt);Dt.registerComponent("LoadingSpinner",Hn);var Vn=function(e){function t(){return e.apply(this,arguments)||this}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={}),t=$({className:this.buildCSSClass()},t),n=$({type:"button"},n);var i=ye("button",t,n);return i.appendChild(ye("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i},n.addChild=function(e,t){void 0===t&&(t={});var n=this.constructor.name;return R.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),Dt.prototype.addChild.call(this,e,t)},n.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(t){c.default.isEventKey(t,"Space")||c.default.isEventKey(t,"Enter")?t.stopPropagation():e.prototype.handleKeyDown.call(this,t)},t}(Rn);Dt.registerComponent("Button",Vn);var zn=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.mouseused_=!1,i.on("mousedown",(function(e){return i.handleMouseDown(e)})),i}(0,d.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY){var n=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;return Vt(t),void(!this.player_.tech(!0)||(ie||ee)&&n||this.player_.tech(!0).focus())}var i=this.player_.getChild("controlBar"),r=i&&i.getChild("playToggle");if(r){var a=function(){return r.focus()};Ht(t)?t.then(a,(function(){})):this.setTimeout(a,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(t){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,t)},n.handleMouseDown=function(e){this.mouseused_=!0},t}(Vn);zn.prototype.controlText_="Play Video",Dt.registerComponent("BigPlayButton",zn);var qn=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.controlText(n&&n.controlText||i.localize("Close")),i}(0,d.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(t){c.default.isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(Vn);Dt.registerComponent("CloseButton",qn);var Wn=function(e){function t(t,n){var i;return void 0===n&&(n={}),i=e.call(this,t,n)||this,n.replay=void 0===n.replay||n.replay,i.on(t,"play",(function(e){return i.handlePlay(e)})),i.on(t,"pause",(function(e){return i.handlePause(e)})),n.replay&&i.on(t,"ended",(function(e){return i.handleEnded(e)})),i}(0,d.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.player_.paused()?Vt(this.player_.play()):this.player_.pause()},n.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},n.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",(function(e){return t.handleSeeked(e)}))},t}(Vn);Wn.prototype.controlText_="Play",Dt.registerComponent("PlayToggle",Wn);var Gn=function(e,t){e=e<0?0:e;var n=Math.floor(e%60),i=Math.floor(e/60%60),r=Math.floor(e/3600),a=Math.floor(t/60%60),o=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=i=n="-"),r=r>0||o>0?r+":":"",i=((r||a>=10)&&i<10?"0"+i:i)+":",n=n<10?"0"+n:n,r+i+n},Yn=Gn;function Xn(e,t){return void 0===t&&(t=e),Yn(e,t)}var Kn=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.on(t,["timeupdate","ended"],(function(e){return i.updateContent(e)})),i.updateTextNode_(),i}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(){var t=this.buildCSSClass(),n=e.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control"}),i=ye("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+" "},{role:"presentation"});return n.appendChild(i),this.contentEl_=ye("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},n.updateTextNode_=function(e){var t=this;void 0===e&&(e=0),e=Xn(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",(function(){if(t.contentEl_){var e=t.textNode_;e&&t.contentEl_.firstChild!==e&&(e=null,R.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=s.default.createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}})))},n.updateContent=function(e){},t}(Dt);Kn.prototype.labelText_="Time",Kn.prototype.controlText_="Time",Dt.registerComponent("TimeDisplay",Kn);var Qn=function(e){function t(){return e.apply(this,arguments)||this}(0,d.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(e){var t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)},t}(Kn);Qn.prototype.labelText_="Current Time",Qn.prototype.controlText_="Current Time",Dt.registerComponent("CurrentTimeDisplay",Qn);var Jn=function(e){function t(t,n){var i;i=e.call(this,t,n)||this;var r=function(e){return i.updateContent(e)};return i.on(t,"durationchange",r),i.on(t,"loadstart",r),i.on(t,"loadedmetadata",r),i}(0,d.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},t}(Kn);Jn.prototype.labelText_="Duration",Jn.prototype.controlText_="Duration",Dt.registerComponent("DurationDisplay",Jn);var Zn=function(e){function t(){return e.apply(this,arguments)||this}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),n=e.prototype.createEl.call(this,"div"),i=e.prototype.createEl.call(this,"span",{textContent:"/"});return n.appendChild(i),t.appendChild(n),t},t}(Dt);Dt.registerComponent("TimeDivider",Zn);var ei=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.on(t,"durationchange",(function(e){return i.updateContent(e)})),i}(0,d.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var t=e.prototype.createEl.call(this);return!1!==this.options_.displayNegative&&t.insertBefore(ye("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},n.updateContent=function(e){var t;"number"===typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},t}(Kn);ei.prototype.labelText_="Remaining Time",ei.prototype.controlText_="Remaining Time",Dt.registerComponent("RemainingTimeDisplay",ei);var ti=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.updateShowing(),i.on(i.player(),"durationchange",(function(e){return i.updateShowing(e)})),i}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=ye("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(ye("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+" "})),this.contentEl_.appendChild(s.default.createTextNode(this.localize("LIVE"))),t.appendChild(this.contentEl_),t},n.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},n.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(Dt);Dt.registerComponent("LiveDisplay",ti);var ni=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.updateLiveEdgeStatus(),i.player_.liveTracker&&(i.updateLiveEdgeStatusHandler_=function(e){return i.updateLiveEdgeStatus(e)},i.on(i.player_.liveTracker,"liveedgechange",i.updateLiveEdgeStatusHandler_)),i}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=ye("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},n.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,e.prototype.dispose.call(this)},t}(Vn);ni.prototype.controlText_="Seek to live, currently playing live",Dt.registerComponent("SeekToLive",ni);var ii=function(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))},ri=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.handleMouseDown_=function(e){return i.handleMouseDown(e)},i.handleMouseUp_=function(e){return i.handleMouseUp(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleMouseMove_=function(e){return i.handleMouseMove(e)},i.update_=function(e){return i.update(e)},i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}(0,d.default)(t,e);var n=t.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),n.className=n.className+" vjs-slider",n=$({tabIndex:0},n),i=$({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),e.prototype.createEl.call(this,t,n,i)},n.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||te||e.preventDefault(),je(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)},n.handleMouseMove=function(e){},n.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;Ie(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.update()},n.update=function(){var e=this;if(this.el_&&this.bar){var t=this.getProgress();return t===this.progress_||(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",(function(){var n=e.vertical()?"height":"width";e.bar.el().style[n]=(100*t).toFixed(2)+"%"}))),t}},n.getProgress=function(){return Number(ii(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(e){var t=Le(this.el_,e);return this.vertical()?t.y:t.x},n.handleKeyDown=function(t){c.default.isEventKey(t,"Left")||c.default.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):c.default.isEventKey(t,"Right")||c.default.isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){e.stopPropagation(),e.preventDefault()},n.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(Dt);Dt.registerComponent("Slider",ri);var ai=function(e,t){return ii(e/t*100,0,100).toFixed(2)+"%"},oi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.partEls_=[],i.on(t,"progress",(function(e){return i.update(e)})),i}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),n=ye("span",{className:"vjs-control-text"}),i=ye("span",{textContent:this.localize("Loaded")}),r=s.default.createTextNode(": ");return this.percentageEl_=ye("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(n),n.appendChild(i),n.appendChild(r),n.appendChild(this.percentageEl_),t},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,e.prototype.dispose.call(this)},n.update=function(e){var t=this;this.requestNamedAnimationFrame("LoadProgressBar#update",(function(){var e=t.player_.liveTracker,n=t.player_.buffered(),i=e&&e.isLive()?e.seekableEnd():t.player_.duration(),r=t.player_.bufferedEnd(),a=t.partEls_,o=ai(r,i);t.percent_!==o&&(t.el_.style.width=o,be(t.percentageEl_,o),t.percent_=o);for(var s=0;s<n.length;s++){var u=n.start(s),c=n.end(s),l=a[s];l||(l=t.el_.appendChild(ye()),a[s]=l),l.dataset.start===u&&l.dataset.end===c||(l.dataset.start=u,l.dataset.end=c,l.style.left=ai(u,r),l.style.width=ai(c-u,r))}for(var d=a.length;d>n.length;d--)t.el_.removeChild(a[d-1]);a.length=n.length}))},t}(Dt);Dt.registerComponent("LoadProgressBar",oi);var si=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update=pt(ht((0,l.default)(i),i.update),30),i}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n){var i=Me(this.el_),r=Pe(this.player_.el()),a=e.width*t;if(r&&i){var o=e.left-r.left+a,s=e.width-a+(r.right-e.right),u=i.width/2;o<u?u+=u-o:s<u&&(u=s),u<0?u=0:u>i.width&&(u=i.width),u=Math.round(u),this.el_.style.right="-"+u+"px",this.write(n)}},n.write=function(e){be(this.el_,e)},n.updateTime=function(e,t,n,i){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",(function(){var a,o=r.player_.duration();if(r.player_.liveTracker&&r.player_.liveTracker.isLive()){var s=r.player_.liveTracker.liveWindow(),u=s-t*s;a=(u<1?"":"-")+Xn(u,s)}else a=Xn(n,o);r.update(e,t,a),i&&i()}))},t}(Dt);Dt.registerComponent("TimeTooltip",si);var ui=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update=pt(ht((0,l.default)(i),i.update),30),i}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(e,t){var n=this.getChild("timeTooltip");if(n){var i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(e,t,i)}},t}(Dt);ui.prototype.options_={children:[]},ce||K||ui.prototype.options_.children.push("timeTooltip"),Dt.registerComponent("PlayProgressBar",ui);var ci=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update=pt(ht((0,l.default)(i),i.update),30),i}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t){var n=this,i=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,i,(function(){n.el_.style.left=e.width*t+"px"}))},t}(Dt);ci.prototype.options_={children:["timeTooltip"]},Dt.registerComponent("MouseTimeDisplay",ci);var li=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.setEventHandlers_(),i}(0,d.default)(t,e);var n=t.prototype;return n.setEventHandlers_=function(){var e=this;this.update_=ht(this,this.update),this.update=pt(this.update_,30),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(t){return e.enableInterval_(t)},this.disableIntervalHandler_=function(t){return e.disableInterval_(t)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in s.default&&"visibilityState"in s.default&&this.on(s.default,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(e){"hidden"===s.default.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,30))},n.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(t){var n=this;if("hidden"!==s.default.visibilityState){var i=e.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",(function(){var e=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),t=n.player_.liveTracker,r=n.player_.duration();t&&t.isLive()&&(r=n.player_.liveTracker.liveCurrentTime()),n.percent_!==i&&(n.el_.setAttribute("aria-valuenow",(100*i).toFixed(2)),n.percent_=i),n.currentTime_===e&&n.duration_===r||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[Xn(e,r),Xn(r,r)],"{1} of {2}")),n.currentTime_=e,n.duration_=r),n.bar&&n.bar.update(Pe(n.el()),n.getProgress())})),i}},n.userSeek_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var e,t=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(e=(t-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},n.handleMouseDown=function(t){Fe(t)&&(t.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},n.handleMouseMove=function(e,t){if(void 0===t&&(t=!1),Fe(e)){var n;t||this.player_.scrubbing()||this.player_.scrubbing(!0);var i=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(i>=.99)return void r.seekToLiveEdge();var a=r.seekableStart(),o=r.liveCurrentTime();if(n=a+i*r.liveWindow(),n>=o&&(n=o),n<=a&&(n=a+.1),n===1/0)return}else n=i*this.player_.duration(),n===this.player_.duration()&&(n-=.1);this.userSeek_(n)}},n.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},n.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},n.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Vt(this.player_.play()):this.update_()},n.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},n.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},n.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(t){var n=this.player_.liveTracker;if(c.default.isEventKey(t,"Space")||c.default.isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(c.default.isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(c.default.isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test((0,c.default)(t))){t.preventDefault(),t.stopPropagation();var i=10*(c.default.codes[(0,c.default)(t)]-c.default.codes["0"])/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else c.default.isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):c.default.isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):e.prototype.handleKeyDown.call(this,t)},n.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in s.default&&"visibilityState"in s.default&&this.off(s.default,"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(ri);li.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},ce||K||li.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Dt.registerComponent("SeekBar",li);var di=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.handleMouseMove=pt(ht((0,l.default)(i),i.handleMouseMove),30),i.throttledHandleMouseSeek=pt(ht((0,l.default)(i),i.handleMouseSeek),30),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.handleMouseDownHandler_=function(e){return i.handleMouseDown(e)},i.enable(),i}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("playProgressBar"),i=t.getChild("mouseTimeDisplay");if(n||i){var r=t.el(),a=Me(r),o=Le(r,e).x;o=ii(o,0,1),i&&i.update(a,o),n&&n.update(a,t.getProgress())}}},n.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},n.enabled=function(){return this.enabled_},n.disable=function(){if(this.children().forEach((function(e){return e.disable&&e.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&Vt(this.player_.play())}},n.enable=function(){this.children().forEach((function(e){return e.enable&&e.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.removeListenersAddedOnMousedownAndTouchstart=function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},t}(Dt);di.prototype.options_={children:["seekBar"]},Dt.registerComponent("ProgressControl",di);var fi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.on(t,["enterpictureinpicture","leavepictureinpicture"],(function(e){return i.handlePictureInPictureChange(e)})),i.on(t,["disablepictureinpicturechanged","loadedmetadata"],(function(e){return i.handlePictureInPictureEnabledChange(e)})),i.on(t,["loadedmetadata","audioonlymodechange","audiopostermodechange"],(function(){var e="audio"===t.currentType().substring(0,5);e||t.audioPosterMode()||t.audioOnlyMode()?(t.isInPictureInPicture()&&t.exitPictureInPicture(),i.hide()):i.show()})),i.disable(),i}(0,d.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){s.default.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},n.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(Vn);fi.prototype.controlText_="Picture-in-Picture",Dt.registerComponent("PictureInPictureToggle",fi);var hi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.on(t,"fullscreenchange",(function(e){return i.handleFullscreenChange(e)})),!1===s.default[t.fsApi_.fullscreenEnabled]&&i.disable(),i}(0,d.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(Vn);hi.prototype.controlText_="Fullscreen",Dt.registerComponent("FullscreenToggle",hi);var pi=function(e){function t(){return e.apply(this,arguments)||this}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return t.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),t},t}(Dt);Dt.registerComponent("VolumeLevel",pi);var gi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update=pt(ht((0,l.default)(i),i.update),30),i}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n,i){if(!n){var r=Pe(this.el_),a=Pe(this.player_.el()),o=e.width*t;if(!a||!r)return;var s=e.left-a.left+o,u=e.width-o+(a.right-e.right),c=r.width/2;s<c?c+=c-s:u<c&&(c=u),c<0?c=0:c>r.width&&(c=r.width),this.el_.style.right="-"+c+"px"}this.write(i+"%")},n.write=function(e){be(this.el_,e)},n.updateVolume=function(e,t,n,i,r){var a=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",(function(){a.update(e,t,n,i.toFixed(0)),r&&r()}))},t}(Dt);Dt.registerComponent("VolumeLevelTooltip",gi);var vi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update=pt(ht((0,l.default)(i),i.update),30),i}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t,n){var i=this,r=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,n,r,(function(){n?i.el_.style.bottom=e.height*t+"px":i.el_.style.left=e.width*t+"px"}))},t}(Dt);vi.prototype.options_={children:["volumeLevelTooltip"]},Dt.registerComponent("MouseVolumeLevelDisplay",vi);var mi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.on("slideractive",(function(e){return i.updateLastVolume_(e)})),i.on(t,"volumechange",(function(e){return i.updateARIAAttributes(e)})),t.ready((function(){return i.updateARIAAttributes()})),i}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(t){Fe(t)&&e.prototype.handleMouseDown.call(this,t)},n.handleMouseMove=function(e){var t=this.getChild("mouseVolumeLevelDisplay");if(t){var n=this.el(),i=Pe(n),r=this.vertical(),a=Le(n,e);a=r?a.y:a.x,a=ii(a,0,1),t.update(i,a,r)}Fe(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",(function(){0===e.player_.volume()&&e.player_.lastVolume_(t)}))},t}(ri);mi.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},ce||K||mi.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),mi.prototype.playerEvent="volumechange",Dt.registerComponent("VolumeBar",mi);var yi=function(e){function t(t,n){var i;return void 0===n&&(n={}),n.vertical=n.vertical||!1,("undefined"===typeof n.volumeBar||V(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),i=e.call(this,t,n)||this,function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))}((0,l.default)(i),t),i.throttledHandleMouseMove=pt(ht((0,l.default)(i),i.handleMouseMove),30),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.on("mousedown",(function(e){return i.handleMouseDown(e)})),i.on("touchstart",(function(e){return i.handleMouseDown(e)})),i.on("mousemove",(function(e){return i.handleMouseMove(e)})),i.on(i.volumeBar,["focus","slideractive"],(function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")})),i.on(i.volumeBar,["blur","sliderinactive"],(function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")})),i}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},n.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(Dt);yi.prototype.options_={children:["volumeBar"]},Dt.registerComponent("VolumeControl",yi);var bi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))}((0,l.default)(i),t),i.on(t,["loadstart","volumechange"],(function(e){return i.update(e)})),i}(0,d.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var i=n<.1?.1:n;this.player_.volume(i),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(e){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var e=this.player_.volume(),t=3;ce&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)Se(this.el_,"vjs-vol-"+n);Te(this.el_,"vjs-vol-"+t)},n.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume(),t=e?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)},t}(Vn);bi.prototype.controlText_="Mute",Dt.registerComponent("MuteToggle",bi);var _i=function(e){function t(t,n){var i;return void 0===n&&(n={}),"undefined"!==typeof n.inline?n.inline=n.inline:n.inline=!0,("undefined"===typeof n.volumeControl||V(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),i=e.call(this,t,n)||this,i.handleKeyPressHandler_=function(e){return i.handleKeyPress(e)},i.on(t,["loadstart"],(function(e){return i.volumePanelState_(e)})),i.on(i.muteToggle,"keyup",(function(e){return i.handleKeyPress(e)})),i.on(i.volumeControl,"keyup",(function(e){return i.handleVolumeControlKeyUp(e)})),i.on("keydown",(function(e){return i.handleKeyPress(e)})),i.on("mouseover",(function(e){return i.handleMouseOver(e)})),i.on("mouseout",(function(e){return i.handleMouseOut(e)})),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}(0,d.default)(t,e);var n=t.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},n.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},n.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(e){c.default.isEventKey(e,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(e){this.addClass("vjs-hover"),ot(s.default,"keyup",this.handleKeyPressHandler_)},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),st(s.default,"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(e){c.default.isEventKey(e,"Esc")&&this.handleMouseOut()},t}(Dt);_i.prototype.options_={children:["muteToggle","volumeControl"]},Dt.registerComponent("VolumePanel",_i);var wi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,n&&(i.menuButton_=n.menuButton),i.focusedChild_=-1,i.on("keydown",(function(e){return i.handleKeyDown(e)})),i.boundHandleBlur_=function(e){return i.handleBlur(e)},i.boundHandleTapClick_=function(e){return i.handleTapClick(e)},i}(0,d.default)(t,e);var n=t.prototype;return n.addEventListenerForItem=function(e){e instanceof Dt&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(e){e instanceof Dt&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(t){"string"===typeof t&&(t=this.getChild(t)),this.removeEventListenerForItem(t),e.prototype.removeChild.call(this,t)},n.addItem=function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)},n.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=ye(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),ot(n,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),n},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},n.handleBlur=function(e){var t=e.relatedTarget||s.default.activeElement;if(!this.children().some((function(e){return e.el()===t}))){var n=this.menuButton_;n&&n.buttonPressed_&&t!==n.el().firstChild&&n.unpressButton()}},n.handleTapClick=function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(!Array.isArray(t))return;var n=t.filter((function(t){return t.el()===e.target}))[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},n.handleKeyDown=function(e){c.default.isEventKey(e,"Left")||c.default.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(c.default.isEventKey(e,"Right")||c.default.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},n.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},n.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},n.focus=function(e){void 0===e&&(e=0);var t=this.children().slice(),n=t.length&&t[0].hasClass("vjs-menu-title");n&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(Dt);Dt.registerComponent("Menu",wi);var Ti=function(e){function t(t,n){var i;void 0===n&&(n={}),i=e.call(this,t,n)||this,i.menuButton_=new Vn(t,n),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true");var r=Vn.prototype.buildCSSClass();i.menuButton_.el_.className=i.buildCSSClass()+" "+r,i.menuButton_.removeClass("vjs-control"),i.addChild(i.menuButton_),i.update(),i.enabled_=!0;var a=function(e){return i.handleClick(e)};return i.handleMenuKeyUp_=function(e){return i.handleMenuKeyUp(e)},i.on(i.menuButton_,"tap",a),i.on(i.menuButton_,"click",a),i.on(i.menuButton_,"keydown",(function(e){return i.handleKeyDown(e)})),i.on(i.menuButton_,"mouseenter",(function(){i.addClass("vjs-hover"),i.menu.show(),ot(s.default,"keyup",i.handleMenuKeyUp_)})),i.on("mouseleave",(function(e){return i.handleMouseLeave(e)})),i.on("keydown",(function(e){return i.handleSubmenuKeyDown(e)})),i}(0,d.default)(t,e);var n=t.prototype;return n.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))},n.createMenu=function(){var e=new wi(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=ye("li",{className:"vjs-menu-title",textContent:Ot(this.options_.title),tabIndex:-1}),n=new Dt(this.player_,{el:t});e.addItem(n)}if(this.items=this.createItems(),this.items)for(var i=0;i<this.items.length;i++)e.addItem(this.items[i]);return e},n.createItems=function(){},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var t="vjs-menu-button";!0===this.options_.inline?t+="-inline":t+="-popup";var n=Vn.prototype.buildCSSClass();return"vjs-menu-button "+t+" "+n+" "+e.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},n.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},n.dispose=function(){this.handleMouseLeave(),e.prototype.dispose.call(this)},n.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},n.handleMouseLeave=function(e){this.removeClass("vjs-hover"),st(s.default,"keyup",this.handleMenuKeyUp_)},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(e){c.default.isEventKey(e,"Esc")||c.default.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),c.default.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(c.default.isEventKey(e,"Up")||c.default.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))},n.handleMenuKeyUp=function(e){(c.default.isEventKey(e,"Esc")||c.default.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},n.handleSubmenuKeyDown=function(e){(c.default.isEventKey(e,"Esc")||c.default.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),c.default.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},n.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),ce&&ve())return;this.menu.focus()}},n.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},n.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},n.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(Dt);Dt.registerComponent("MenuButton",Ti);var Si=function(e){function t(t,n){var i,r=n.tracks;if(i=e.call(this,t,n)||this,i.items.length<=1&&i.hide(),!r)return(0,l.default)(i);var a=ht((0,l.default)(i),i.update);return r.addEventListener("removetrack",a),r.addEventListener("addtrack",a),r.addEventListener("labelchange",a),i.player_.on("ready",a),i.player_.on("dispose",(function(){r.removeEventListener("removetrack",a),r.removeEventListener("addtrack",a),r.removeEventListener("labelchange",a)})),i}return(0,d.default)(t,e),t}(Ti);Dt.registerComponent("TrackButton",Si);var ki=["Tab","Esc","Up","Down","Right","Left"],xi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.selectable=n.selectable,i.isSelected_=n.selected||!1,i.multiSelectable=n.multiSelectable,i.selected(i.isSelected_),i.selectable?i.multiSelectable?i.el_.setAttribute("role","menuitemcheckbox"):i.el_.setAttribute("role","menuitemradio"):i.el_.setAttribute("role","menuitem"),i}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(t,n,i){this.nonIconControl=!0;var r=e.prototype.createEl.call(this,"li",$({className:"vjs-menu-item",tabIndex:-1},n),i);return r.replaceChild(ye("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),r.querySelector(".vjs-icon-placeholder")),r},n.handleKeyDown=function(t){ki.some((function(e){return c.default.isEventKey(t,e)}))||e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){this.selected(!0)},n.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}(Rn);Dt.registerComponent("MenuItem",xi);var Ci=function(e){function t(t,n){var i,a=n.track,u=t.textTracks();n.label=a.label||a.language||"Unknown",n.selected="showing"===a.mode,i=e.call(this,t,n)||this,i.track=a,i.kinds=(n.kinds||[n.kind||i.track.kind]).filter(Boolean);var c,d=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleTracksChange.apply((0,l.default)(i),t)},f=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleSelectedLanguageChange.apply((0,l.default)(i),t)};(t.on(["loadstart","texttrackchange"],d),u.addEventListener("change",d),u.addEventListener("selectedlanguagechange",f),i.on("dispose",(function(){t.off(["loadstart","texttrackchange"],d),u.removeEventListener("change",d),u.removeEventListener("selectedlanguagechange",f)})),void 0===u.onchange)&&i.on(["tap","click"],(function(){if("object"!==(0,r.default)(o.default.Event))try{c=new o.default.Event("change")}catch(e){}c||(c=s.default.createEvent("Event"),c.initEvent("change",!0,!0)),u.dispatchEvent(c)}));return i.handleTracksChange(),i}(0,d.default)(t,e);var n=t.prototype;return n.handleClick=function(t){var n=this.track,i=this.player_.textTracks();if(e.prototype.handleClick.call(this,t),i)for(var r=0;r<i.length;r++){var a=i[r];-1!==this.kinds.indexOf(a.kind)&&(a===n?"showing"!==a.mode&&(a.mode="showing"):"disabled"!==a.mode&&(a.mode="disabled"))}},n.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},n.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},n.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(xi);Dt.registerComponent("TextTrackMenuItem",Ci);var Ei=function(e){function t(t,n){return n.track={player:t,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,e.call(this,t,n)||this}(0,d.default)(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var a=t[i];if(this.options_.kinds.indexOf(a.kind)>-1&&"showing"===a.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var a=t[i];if(["captions","descriptions","subtitles"].indexOf(a.kind)>-1&&"showing"===a.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(Ci);Dt.registerComponent("OffTextTrackMenuItem",Ei);var Ai=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.textTracks(),e.call(this,t,n)||this}(0,d.default)(t,e);var n=t.prototype;return n.createItems=function(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t=Ci),this.label_&&(n=this.label_+" off"),e.push(new Ei(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var i=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r<i.length;r++){var a=i[r];if(this.kinds_.indexOf(a.kind)>-1){var o=new t(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});o.addClass("vjs-"+a.kind+"-menu-item"),e.push(o)}}return e},t}(Si);Dt.registerComponent("TextTrackButton",Ai);var Oi=function(e){function t(t,n){var i,r=n.track,a=n.cue,o=t.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=a.text,n.selected=a.startTime<=o&&o<a.endTime,i=e.call(this,t,n)||this,i.track=r,i.cue=a,i}(0,d.default)(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime)},t}(xi);Dt.registerComponent("ChaptersTrackMenuItem",Oi);var ji=function(e){function t(t,n,i){var r;return r=e.call(this,t,n,i)||this,r.selectCurrentItem_=function(){r.items.forEach((function(e){e.selected(r.track_.activeCues[0]===e.cue)}))},r}(0,d.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},n.update=function(t){if(!t||!t.track||"chapters"===t.track.kind){var n=this.findChaptersTrack();n!==this.track_?(this.setTrack(n),e.prototype.update.call(this)):(!this.items||n&&n.cues&&n.cues.length!==this.items.length)&&e.prototype.update.call(this)}},n.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}},n.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(Ot(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},n.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,i=t.length;n<i;n++){var r=t[n],a=new Oi(this.player_,{track:this.track_,cue:r});e.push(a)}return e},t}(Ai);ji.prototype.kind_="chapters",ji.prototype.controlText_="Chapters",Dt.registerComponent("ChaptersButton",ji);var Ii=function(e){function t(t,n,i){var r;r=e.call(this,t,n,i)||this;var a=t.textTracks(),o=ht((0,l.default)(r),r.handleTracksChange);return a.addEventListener("change",o),r.on("dispose",(function(){a.removeEventListener("change",o)})),r}(0,d.default)(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,i=0,r=t.length;i<r;i++){var a=t[i];if(a.kind!==this.kind_&&"showing"===a.mode){n=!0;break}}n?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Ai);Ii.prototype.kind_="descriptions",Ii.prototype.controlText_="Descriptions",Dt.registerComponent("DescriptionsButton",Ii);var Pi=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}(0,d.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Ai);Pi.prototype.kind_="subtitles",Pi.prototype.controlText_="Subtitles",Dt.registerComponent("SubtitlesButton",Pi);var Mi=function(e){function t(t,n){var i;return n.track={player:t,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",i=e.call(this,t,n)||this,i.addClass("vjs-texttrack-settings"),i.controlText(", opens "+n.kind+" settings dialog"),i}(0,d.default)(t,e);var n=t.prototype;return n.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(Ci);Dt.registerComponent("CaptionSettingsMenuItem",Mi);var Li=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}(0,d.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new Mi(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(Ai);Li.prototype.kind_="captions",Li.prototype.controlText_="Captions",Dt.registerComponent("CaptionsButton",Li);var Di=function(e){function t(){return e.apply(this,arguments)||this}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(t,n,i){var r=e.prototype.createEl.call(this,t,n,i),a=r.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(a.appendChild(ye("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(ye("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),r},t}(Ci);Dt.registerComponent("SubsCapsMenuItem",Di);var Ri=function(e){function t(t,n){var i;return void 0===n&&(n={}),i=e.call(this,t,n)||this,i.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(i.player_.language_)>-1&&(i.label_="captions"),i.menuButton_.controlText(Ot(i.label_)),i}(0,d.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new Mi(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,Di),t},t}(Ai);Ri.prototype.kinds_=["captions","subtitles"],Ri.prototype.controlText_="Subtitles",Dt.registerComponent("SubsCapsButton",Ri);var Ni=function(e){function t(t,n){var i,r=n.track,a=t.audioTracks();n.label=r.label||r.language||"Unknown",n.selected=r.enabled,i=e.call(this,t,n)||this,i.track=r,i.addClass("vjs-"+r.kind+"-menu-item");var o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleTracksChange.apply((0,l.default)(i),t)};return a.addEventListener("change",o),i.on("dispose",(function(){a.removeEventListener("change",o)})),i}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(t,n,i){var r=e.prototype.createEl.call(this,t,n,i),a=r.querySelector(".vjs-menu-item-text");return"main-desc"===this.options_.track.kind&&(a.appendChild(ye("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(ye("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),r},n.handleClick=function(t){if(e.prototype.handleClick.call(this,t),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks)for(var n=this.player_.audioTracks(),i=0;i<n.length;i++){var r=n[i];r!==this.track&&(r.enabled=r===this.track)}},n.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(xi);Dt.registerComponent("AudioTrackMenuItem",Ni);var Bi=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.audioTracks(),e.call(this,t,n)||this}(0,d.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),n=0;n<t.length;n++){var i=t[n];e.push(new Ni(this.player_,{track:i,selectable:!0,multiSelectable:!1}))}return e},t}(Si);Bi.prototype.controlText_="Audio Track",Dt.registerComponent("AudioTrackButton",Bi);var Ui=function(e){function t(t,n){var i,r=n.rate,a=parseFloat(r,10);return n.label=r,n.selected=a===t.playbackRate(),n.selectable=!0,n.multiSelectable=!1,i=e.call(this,t,n)||this,i.label=r,i.rate=a,i.on(t,"ratechange",(function(e){return i.update(e)})),i}(0,d.default)(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(xi);Ui.prototype.contentElType="button",Dt.registerComponent("PlaybackRateMenuItem",Ui);var Fi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.menuButton_.el_.setAttribute("aria-describedby",i.labelElId_),i.updateVisibility(),i.updateLabel(),i.on(t,"loadstart",(function(e){return i.updateVisibility(e)})),i.on(t,"ratechange",(function(e){return i.updateLabel(e)})),i.on(t,"playbackrateschange",(function(e){return i.handlePlaybackRateschange(e)})),i}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=ye("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),t.appendChild(this.labelEl_),t},n.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){for(var e=this.playbackRates(),t=[],n=e.length-1;n>=0;n--)t.push(new Ui(this.player(),{rate:e[n]+"x"}));return t},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(e){var t=this.player().playbackRate(),n=this.playbackRates(),i=n.indexOf(t),r=(i+1)%n.length;this.player().playbackRate(n[r])},n.handlePlaybackRateschange=function(e){this.update()},n.playbackRates=function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},t}(Ti);Fi.prototype.controlText_="Playback Rate",Dt.registerComponent("PlaybackRateMenuButton",Fi);var $i=function(e){function t(){return e.apply(this,arguments)||this}(0,d.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(t,n,i){return void 0===t&&(t="div"),void 0===n&&(n={}),void 0===i&&(i={}),n.className||(n.className=this.buildCSSClass()),e.prototype.createEl.call(this,t,n,i)},t}(Dt);Dt.registerComponent("Spacer",$i);var Hi=function(e){function t(){return e.apply(this,arguments)||this}(0,d.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:" "})},t}($i);Dt.registerComponent("CustomControlSpacer",Hi);var Vi=function(e){function t(){return e.apply(this,arguments)||this}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(Dt);Vi.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in s.default&&Vi.prototype.options_.children.splice(Vi.prototype.options_.children.length-1,0,"pictureInPictureToggle"),Dt.registerComponent("ControlBar",Vi);var zi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.on(t,"error",(function(e){return i.open(e)})),i}(0,d.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},n.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(Wt);zi.prototype.options_=(0,u.default)({},Wt.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Dt.registerComponent("ErrorDisplay",zi);var qi=["#000","Black"],Wi=["#00F","Blue"],Gi=["#0FF","Cyan"],Yi=["#0F0","Green"],Xi=["#F0F","Magenta"],Ki=["#F00","Red"],Qi=["#FFF","White"],Ji=["#FF0","Yellow"],Zi=["1","Opaque"],er=["0.5","Semi-Transparent"],tr=["0","Transparent"],nr={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[qi,Qi,Ki,Yi,Wi,Ji,Xi,Gi]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Zi,er,tr]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Qi,qi,Ki,Yi,Wi,Ji,Xi,Gi]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Zi,er]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[tr,er,Zi]}};function ir(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}nr.windowColor.options=nr.backgroundColor.options;var rr=function(e){function t(t,n){var i;return n.temporary=!1,i=e.call(this,t,n)||this,i.updateDisplay=i.updateDisplay.bind((0,l.default)(i)),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=ye("p",{className:"vjs-control-text",textContent:i.localize("End of dialog window.")}),i.el().appendChild(i.endDialog),i.setDefaults(),void 0===n.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",(function(){i.saveSettings(),i.close()})),i.on(i.$(".vjs-default-button"),"click",(function(){i.setDefaults(),i.updateDisplay()})),F(nr,(function(e){i.on(i.$(e.selector),"change",i.updateDisplay)})),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}(0,d.default)(t,e);var n=t.prototype;return n.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},n.createElSelect_=function(e,t,n){var i=this;void 0===t&&(t=""),void 0===n&&(n="label");var r=nr[e],a=r.id.replace("%s",this.id_),o=[t,a].join(" ").trim();return["<"+n+' id="'+a+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(r.label),"</"+n+">",'<select aria-labelledby="'+o+'">'].concat(r.options.map((function(e){var t=a+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+o+" "+t+'">',i.localize(e[1]),"</option>"].join("")}))).concat("</select>").join("")},n.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return ye("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return ye("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},n.createElControls_=function(){var e=this.localize("restore all settings to the default values");return ye("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var e=this;return function(e,t,n){return void 0===n&&(n=0),U(e).reduce((function(n,i){return t(n,e[i],i)}),n)}(nr,(function(t,n,i){var r=function(e,t){var n=e.options[e.options.selectedIndex].value;return ir(n,t)}(e.$(n.selector),n.parser);return void 0!==r&&(t[i]=r),t}),{})},n.setValues=function(e){var t=this;F(nr,(function(n,i){(function(e,t,n){if(t)for(var i=0;i<e.options.length;i++)if(ir(e.options[i].value,n)===t){e.selectedIndex=i;break}})(t.$(n.selector),e[i],n.parser)}))},n.setDefaults=function(){var e=this;F(nr,(function(t){var n=t.hasOwnProperty("default")?t["default"]:0;e.$(t.selector).selectedIndex=n}))},n.restoreSettings=function(){var e;try{e=JSON.parse(o.default.localStorage.getItem("vjs-text-track-settings"))}catch(t){R.warn(t)}e&&this.setValues(e)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?o.default.localStorage.setItem("vjs-text-track-settings",JSON.stringify(e)):o.default.localStorage.removeItem("vjs-text-track-settings")}catch(t){R.warn(t)}}},n.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()},t}(Wt);Dt.registerComponent("TextTrackSettings",rr);var ar=function(e){function t(t,n){var i,r=n.ResizeObserver||o.default.ResizeObserver;null===n.ResizeObserver&&(r=!1);var a=jt({createEl:!r,reportTouchActivity:!1},n);return i=e.call(this,t,a)||this,i.ResizeObserver=n.ResizeObserver||o.default.ResizeObserver,i.loadListener_=null,i.resizeObserver_=null,i.debouncedHandler_=function(e,t,n,i){var r;void 0===i&&(i=o.default);var a=function(){var a=this,o=arguments,s=function(){r=null,s=null,n||e.apply(a,o)};!r&&n&&e.apply(a,o),i.clearTimeout(r),r=i.setTimeout(s,t)};return a.cancel=function(){i.clearTimeout(r),r=null},a}((function(){i.resizeHandler()}),100,!1,(0,l.default)(i)),r?(i.resizeObserver_=new i.ResizeObserver(i.debouncedHandler_),i.resizeObserver_.observe(t.el())):(i.loadListener_=function(){if(i.el_&&i.el_.contentWindow){var e=i.debouncedHandler_,t=i.unloadListener_=function(){st(this,"resize",e),st(this,"unload",t),t=null};ot(i.el_.contentWindow,"unload",t),ot(i.el_.contentWindow,"resize",e)}},i.one("load",i.loadListener_)),i}(0,d.default)(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})},n.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},n.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,e.prototype.dispose.call(this)},t}(Dt);Dt.registerComponent("ResizeManager",ar);var or={trackingThreshold:20,liveTolerance:15},sr=function(e){function t(t,n){var i,r=jt(or,n,{createEl:!1});return i=e.call(this,t,r)||this,i.handleVisibilityChange_=function(e){return i.handleVisibilityChange(e)},i.trackLiveHandler_=function(){return i.trackLive_()},i.handlePlay_=function(e){return i.handlePlay(e)},i.handleFirstTimeupdate_=function(e){return i.handleFirstTimeupdate(e)},i.handleSeeked_=function(e){return i.handleSeeked(e)},i.seekToLiveEdge_=function(e){return i.seekToLiveEdge(e)},i.reset_(),i.on(i.player_,"durationchange",(function(e){return i.handleDurationchange(e)})),i.on(i.player_,"canplay",(function(){return i.toggleTracking()})),ie&&"hidden"in s.default&&"visibilityState"in s.default&&i.on(s.default,"visibilitychange",i.handleVisibilityChange_),i}(0,d.default)(t,e);var n=t.prototype;return n.handleVisibilityChange=function(){this.player_.duration()===1/0&&(s.default.hidden?this.stopTracking():this.startTracking())},n.trackLive_=function(){var e=this.player_.seekable();if(e&&e.length){var t=Number(o.default.performance.now().toFixed(4)),n=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+n;var i=this.liveCurrentTime(),r=this.player_.currentTime(),a=this.player_.paused()||this.seekedBehindLive_||Math.abs(i-r)>this.options_.liveTolerance;this.timeupdateSeen_&&i!==1/0||(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}},n.handleDurationchange=function(){this.toggleTracking()},n.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},n.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,30),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},n.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},n.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()},n.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},n.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},n.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},n.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},n.seekableEnd=function(){var e=this.player_.seekable(),t=[],n=e?e.length:0;while(n--)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0},n.seekableStart=function(){var e=this.player_.seekable(),t=[],n=e?e.length:0;while(n--)t.push(e.start(n));return t.length?t.sort()[0]:0},n.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},n.isLive=function(){return this.isTracking()},n.atLiveEdge=function(){return!this.behindLiveEdge()},n.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},n.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},n.behindLiveEdge=function(){return this.behindLiveEdge_},n.isTracking=function(){return"number"===typeof this.trackingInterval_},n.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},n.dispose=function(){this.off(s.default,"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),e.prototype.dispose.call(this)},t}(Dt);Dt.registerComponent("LiveTracker",sr);var ur,cr=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),i=[],r="";if(!n.length)return!1;for(var a=0;a<n.length;a++){var o=n[a].src;o&&-1===i.indexOf(o)&&i.push(o)}return!!i.length&&(1===i.length&&(r=i[0]),e.triggerSourceset(r),!0)},lr=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=s.default.createElement(this.nodeName.toLowerCase());t.innerHTML=e;var n=s.default.createDocumentFragment();while(t.childNodes.length)n.appendChild(t.childNodes[0]);return this.innerText="",o.default.Element.prototype.appendChild.call(this,n),this.innerHTML}}),dr=function(e,t){for(var n={},i=0;i<e.length;i++)if(n=Object.getOwnPropertyDescriptor(e[i],t),n&&n.set&&n.get)break;return n.enumerable=!0,n.configurable=!0,n},fr=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},i=function(e){return dr([e.el(),o.default.HTMLMediaElement.prototype,o.default.Element.prototype,lr],"innerHTML")}(e),r=function(n){return function(){for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];var o=n.apply(t,r);return cr(e),o}};["append","appendChild","insertAdjacentHTML"].forEach((function(e){t[e]&&(n[e]=t[e],t[e]=r(n[e]))})),Object.defineProperty(t,"innerHTML",jt(i,{set:r(i.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(n).forEach((function(e){t[e]=n[e]})),Object.defineProperty(t,"innerHTML",i)},e.one("sourceset",t.resetSourceWatch_)}},hr=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?cn(o.default.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return o.default.Element.prototype.setAttribute.call(this,"src",e),e}}),pr=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=function(e){return dr([e.el(),o.default.HTMLMediaElement.prototype,hr],"src")}(e),i=t.setAttribute,r=t.load;Object.defineProperty(t,"src",jt(n,{set:function(i){var r=n.set.call(t,i);return e.triggerSourceset(t.src),r}})),t.setAttribute=function(n,r){var a=i.call(t,n,r);return/src/i.test(n)&&e.triggerSourceset(t.src),a},t.load=function(){var n=r.call(t);return cr(e)||(e.triggerSourceset(""),fr(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):cr(e)||fr(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=r,t.setAttribute=i,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},gr=function(e,t,n,i){void 0===i&&(i=!0);var r=function(n){return Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0})},a={configurable:!0,enumerable:!0,get:function(){var e=n();return r(e),e}};return i&&(a.set=r),Object.defineProperty(e,t,a)},vr=function(e){function t(t,n){var i;i=e.call(this,t,n)||this;var r=t.source,a=!1;if(i.featuresVideoFrameCallback=i.featuresVideoFrameCallback&&"VIDEO"===i.el_.tagName,r&&(i.el_.currentSrc!==r.src||t.tag&&3===t.tag.initNetworkState_)?i.setSource(r):i.handleLateInit_(i.el_),t.enableSourceset&&i.setupSourcesetHandling_(),i.isScrubbing_=!1,i.el_.hasChildNodes()){var o=i.el_.childNodes,s=o.length,u=[];while(s--){var c=o[s],l=c.nodeName.toLowerCase();"track"===l&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(c),i.remoteTextTracks().addTrack(c.track),i.textTracks().addTrack(c.track),a||i.el_.hasAttribute("crossorigin")||!dn(c.src)||(a=!0)):u.push(c))}for(var d=0;d<u.length;d++)i.el_.removeChild(u[d])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&a&&R.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),i.restoreMetadataTracksInIOSNativePlayer_(),(oe||ue||J)&&!0===t.nativeControlsForTouch&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}(0,d.default)(t,e);var n=t.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.disposeMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){pr(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){var e,t=this.textTracks(),n=function(){e=[];for(var n=0;n<t.length;n++){var i=t[n];"metadata"===i.kind&&e.push({track:i,storedMode:i.mode})}};n(),t.addEventListener("change",n),this.on("dispose",(function(){return t.removeEventListener("change",n)}));var i=function n(){for(var i=0;i<e.length;i++){var r=e[i];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}t.removeEventListener("change",n)};this.on("webkitbeginfullscreen",(function(){t.removeEventListener("change",n),t.removeEventListener("change",i),t.addEventListener("change",i)})),this.on("webkitendfullscreen",(function(){t.removeEventListener("change",n),t.addEventListener("change",n),t.removeEventListener("change",i)}))},n.overrideNative_=function(e,t){var n=this;if(t===this["featuresNative"+e+"Tracks"]){var i=e.toLowerCase();this[i+"TracksListeners_"]&&Object.keys(this[i+"TracksListeners_"]).forEach((function(e){var t=n.el()[i+"Tracks"];t.removeEventListener(e,n[i+"TracksListeners_"][e])})),this["featuresNative"+e+"Tracks"]=!t,this[i+"TracksListeners_"]=null,this.proxyNativeTracksForType_(i)}},n.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},n.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},n.proxyNativeTracksForType_=function(e){var t=this,n=bn[e],i=this.el()[n.getterName],r=this[n.getterName]();if(this["featuresNative"+n.capitalName+"Tracks"]&&i&&i.addEventListener){var a={change:function(n){var i={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(i),"text"===e&&t[_n.remoteText.getterName]().trigger(i)},addtrack:function(e){r.addTrack(e.track)},removetrack:function(e){r.removeTrack(e.track)}},o=function(){for(var e=[],t=0;t<r.length;t++){for(var n=!1,a=0;a<i.length;a++)if(i[a]===r[t]){n=!0;break}n||e.push(r[t])}while(e.length)r.removeTrack(e.shift())};this[n.getterName+"Listeners_"]=a,Object.keys(a).forEach((function(e){var n=a[e];i.addEventListener(e,n),t.on("dispose",(function(t){return i.removeEventListener(e,n)}))})),this.on("loadstart",o),this.on("dispose",(function(e){return t.off("loadstart",o)}))}},n.proxyNativeTracks_=function(){var e=this;bn.names.forEach((function(t){e.proxyNativeTracksForType_(t)}))},n.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=s.default.createElement("video");var i=this.options_.tag&&Ce(this.options_.tag),r=jt({},i);oe&&!0===this.options_.nativeControlsForTouch||delete r.controls,xe(e,$(r,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}"undefined"!==typeof this.options_.preload&&Ae(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);for(var a=["loop","muted","playsinline","autoplay"],o=0;o<a.length;o++){var u=a[o],c=this.options_[u];"undefined"!==typeof c&&(c?Ae(e,u,u):Oe(e,u),e[u]=c)}return e},n.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,n=function(){t=!0};this.on("loadstart",n);var i=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",i),void this.ready((function(){this.off("loadstart",n),this.off("loadedmetadata",i),t||this.trigger("loadstart")}))}var r=["loadstart"];r.push("loadedmetadata"),e.readyState>=2&&r.push("loadeddata"),e.readyState>=3&&r.push("canplay"),e.readyState>=4&&r.push("canplaythrough"),this.ready((function(){r.forEach((function(e){this.trigger(e)}),this)}))}},n.setScrubbing=function(e){this.isScrubbing_=e},n.scrubbing=function(){return this.isScrubbing_},n.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&le?this.el_.fastSeek(e):this.el_.currentTime=e}catch(t){R(t,"Video is not ready. (Video.js)")}},n.duration=function(){var e=this;if(this.el_.duration===1/0&&K&&te&&0===this.el_.currentTime){return this.on("timeupdate",(function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))})),NaN}return this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",(function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)}))}},n.supportsFullScreen=function(){if("function"===typeof this.el_.webkitEnterFullScreen){var e=o.default.navigator&&o.default.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},n.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)Vt(this.el_.play()),this.setTimeout((function(){e.pause();try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}}),0);else try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},n.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},n.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},n.requestVideoFrameCallback=function(t){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(t):e.prototype.requestVideoFrameCallback.call(this,t)},n.cancelVideoFrameCallback=function(t){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(t):e.prototype.cancelVideoFrameCallback.call(this,t)},n.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},n.reset=function(){t.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(e){this.el_.controls=!!e},n.addTextTrack=function(t,n,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,i):e.prototype.addTextTrack.call(this,t,n,i)},n.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=s.default.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t["default"]&&(n["default"]=t["default"]),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},n.addRemoteTextTrack=function(t,n){var i=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(i),i},n.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks){var n=this.$$("track"),i=n.length;while(i--)t!==n[i]&&t!==n[i].track||this.el().removeChild(n[i])}},n.getVideoPlaybackQuality=function(){if("function"===typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return"undefined"!==typeof this.el().webkitDroppedFrameCount&&"undefined"!==typeof this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),o.default.performance&&"function"===typeof o.default.performance.now?e.creationTime=o.default.performance.now():o.default.performance&&o.default.performance.timing&&"number"===typeof o.default.performance.timing.navigationStart&&(e.creationTime=o.default.Date.now()-o.default.performance.timing.navigationStart),e},t}(Tn);gr(vr,"TEST_VID",(function(){if(pe()){var e=s.default.createElement("video"),t=s.default.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}})),vr.isSupported=function(){try{vr.TEST_VID.volume=.5}catch(e){return!1}return!(!vr.TEST_VID||!vr.TEST_VID.canPlayType)},vr.canPlayType=function(e){return vr.TEST_VID.canPlayType(e)},vr.canPlaySource=function(e,t){return vr.canPlayType(e.type)},vr.canControlVolume=function(){try{var e=vr.TEST_VID.volume;vr.TEST_VID.volume=e/2+.1;var t=e!==vr.TEST_VID.volume;return t&&ce?(o.default.setTimeout((function(){vr&&vr.prototype&&(vr.prototype.featuresVolumeControl=e!==vr.TEST_VID.volume)})),!1):t}catch(n){return!1}},vr.canMuteVolume=function(){try{var e=vr.TEST_VID.muted;return vr.TEST_VID.muted=!e,vr.TEST_VID.muted?Ae(vr.TEST_VID,"muted","muted"):Oe(vr.TEST_VID,"muted"),e!==vr.TEST_VID.muted}catch(t){return!1}},vr.canControlPlaybackRate=function(){if(K&&te&&ne<58)return!1;try{var e=vr.TEST_VID.playbackRate;return vr.TEST_VID.playbackRate=e/2+.1,e!==vr.TEST_VID.playbackRate}catch(t){return!1}},vr.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(s.default.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(s.default.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(s.default.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(s.default.createElement("audio"),"innerHTML",{get:e,set:e})}catch(t){return!1}return!0},vr.supportsNativeTextTracks=function(){return le||ce&&te},vr.supportsNativeVideoTracks=function(){return!(!vr.TEST_VID||!vr.TEST_VID.videoTracks)},vr.supportsNativeAudioTracks=function(){return!(!vr.TEST_VID||!vr.TEST_VID.audioTracks)},vr.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach((function(e){var t=e[0],n=e[1];gr(vr.prototype,t,(function(){return vr[n]()}),!0)})),vr.prototype.featuresVolumeControl=vr.canControlVolume(),vr.prototype.movingMediaElementInDOM=!ce,vr.prototype.featuresFullscreenResize=!0,vr.prototype.featuresProgressEvents=!0,vr.prototype.featuresTimeupdateEvents=!0,vr.prototype.featuresVideoFrameCallback=!(!vr.TEST_VID||!vr.TEST_VID.requestVideoFrameCallback),vr.patchCanPlayType=function(){Q>=4&&!Z&&!te&&(ur=vr.TEST_VID&&vr.TEST_VID.constructor.prototype.canPlayType,vr.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":ur.call(this,e)})},vr.unpatchCanPlayType=function(){var e=vr.TEST_VID.constructor.prototype.canPlayType;return ur&&(vr.TEST_VID.constructor.prototype.canPlayType=ur),e},vr.patchCanPlayType(),vr.disposeMediaElement=function(e){if(e){e.parentNode&&e.parentNode.removeChild(e);while(e.hasChildNodes())e.removeChild(e.firstChild);e.removeAttribute("src"),"function"===typeof e.load&&function(){try{e.load()}catch(t){}}()}},vr.resetMediaElement=function(e){if(e){var t=e.querySelectorAll("source"),n=t.length;while(n--)e.removeChild(t[n]);e.removeAttribute("src"),"function"===typeof e.load&&function(){try{e.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(e){vr.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){vr.prototype["set"+Ot(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach((function(e){vr.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(e){vr.prototype["set"+Ot(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){vr.prototype[e]=function(){return this.el_[e]()}})),Tn.withSourceHandlers(vr),vr.nativeSourceHandler={},vr.nativeSourceHandler.canPlayType=function(e){try{return vr.TEST_VID.canPlayType(e)}catch(t){return""}},vr.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return vr.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=ln(e.src);return vr.nativeSourceHandler.canPlayType("video/"+n)}return""},vr.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},vr.nativeSourceHandler.dispose=function(){},vr.registerSourceHandler(vr.nativeSourceHandler),Tn.registerTech("Html5",vr);var mr=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],yr={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},br=["tiny","xsmall","small","medium","large","xlarge","huge"],_r={};br.forEach((function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;_r[e]="vjs-layout-"+t}));var wr={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Tr=function(e){function t(n,i,r){var a;if(n.id=n.id||i.id||"vjs_video_"+Ze(),i=$(t.getTagSettings(n),i),i.initChildren=!1,i.createEl=!1,i.evented=!1,i.reportTouchActivity=!1,!i.language)if("function"===typeof n.closest){var o=n.closest("[lang]");o&&o.getAttribute&&(i.language=o.getAttribute("lang"))}else{var u=n;while(u&&1===u.nodeType){if(Ce(u).hasOwnProperty("lang")){i.language=u.getAttribute("lang");break}u=u.parentNode}}if(a=e.call(this,null,i,r)||this,a.boundDocumentFullscreenChange_=function(e){return a.documentFullscreenChange_(e)},a.boundFullWindowOnEscKey_=function(e){return a.fullWindowOnEscKey(e)},a.boundUpdateStyleEl_=function(e){return a.updateStyleEl_(e)},a.boundApplyInitTime_=function(e){return a.applyInitTime_(e)},a.boundUpdateCurrentBreakpoint_=function(e){return a.updateCurrentBreakpoint_(e)},a.boundHandleTechClick_=function(e){return a.handleTechClick_(e)},a.boundHandleTechDoubleClick_=function(e){return a.handleTechDoubleClick_(e)},a.boundHandleTechTouchStart_=function(e){return a.handleTechTouchStart_(e)},a.boundHandleTechTouchMove_=function(e){return a.handleTechTouchMove_(e)},a.boundHandleTechTouchEnd_=function(e){return a.handleTechTouchEnd_(e)},a.boundHandleTechTap_=function(e){return a.handleTechTap_(e)},a.isFullscreen_=!1,a.log=N(a.id_),a.fsApi_=j,a.isPosterFromTech_=!1,a.queuedCallbacks_=[],a.isReady_=!1,a.hasStarted_=!1,a.userActive_=!1,a.debugEnabled_=!1,a.audioOnlyMode_=!1,a.audioPosterMode_=!1,a.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!a.options_||!a.options_.techOrder||!a.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(a.tag=n,a.tagAttributes=n&&Ce(n),a.language(a.options_.language),i.languages){var c={};Object.getOwnPropertyNames(i.languages).forEach((function(e){c[e.toLowerCase()]=i.languages[e]})),a.languages_=c}else a.languages_=t.prototype.options_.languages;a.resetCache_(),a.poster_=i.poster||"",a.controls_=!!i.controls,n.controls=!1,n.removeAttribute("controls"),a.changingSrc_=!1,a.playCallbacks_=[],a.playTerminatedQueue_=[],n.hasAttribute("autoplay")?a.autoplay(!0):a.autoplay(a.options_.autoplay),i.plugins&&Object.keys(i.plugins).forEach((function(e){if("function"!==typeof a[e])throw new Error('plugin "'+e+'" does not exist')})),a.scrubbing_=!1,a.el_=a.createEl(),xt((0,l.default)(a),{eventBusKey:"el_"}),a.fsApi_.requestFullscreen&&(ot(s.default,a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_),a.on(a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_)),a.fluid_&&a.on(["playerreset","resize"],a.boundUpdateStyleEl_);var d=jt(a.options_);i.plugins&&Object.keys(i.plugins).forEach((function(e){a[e](i.plugins[e])})),i.debug&&a.debug(!0),a.options_.playerOptions=d,a.middleware_=[],a.playbackRates(i.playbackRates),a.initChildren(),a.isAudio("audio"===n.nodeName.toLowerCase()),a.controls()?a.addClass("vjs-controls-enabled"):a.addClass("vjs-controls-disabled"),a.el_.setAttribute("role","region"),a.isAudio()?a.el_.setAttribute("aria-label",a.localize("Audio Player")):a.el_.setAttribute("aria-label",a.localize("Video Player")),a.isAudio()&&a.addClass("vjs-audio"),a.flexNotSupported_()&&a.addClass("vjs-no-flex"),oe&&a.addClass("vjs-touch-enabled"),ce||a.addClass("vjs-workinghover"),t.players[a.id_]=(0,l.default)(a);var f="7.20.3".split(".")[0];return a.addClass("vjs-v"+f),a.userActive(!0),a.reportUserActivity(),a.one("play",(function(e){return a.listenForUserActivity_(e)})),a.on("stageclick",(function(e){return a.handleStageClick_(e)})),a.on("keydown",(function(e){return a.handleKeyDown(e)})),a.on("languagechange",(function(e){return a.handleLanguagechange(e)})),a.breakpoints(a.options_.breakpoints),a.responsive(a.options_.responsive),a.on("ready",(function(){a.audioPosterMode(a.options_.audioPosterMode),a.audioOnlyMode(a.options_.audioOnlyMode)})),a}(0,d.default)(t,e);var n=t.prototype;return n.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),st(s.default,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),st(s.default,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),function(e){kn[e.id()]=null}(this),wn.names.forEach((function(e){var t=wn[e],i=n[t.getterName]();i&&i.off&&i.off()})),e.prototype.dispose.call(this,{restoreEl:this.options_.restoreEl})},n.createEl=function(){var t,n=this.tag,i=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),r="video-js"===this.tag.tagName.toLowerCase();i?t=this.el_=n.parentNode:r||(t=this.el_=e.prototype.createEl.call(this,"div"));var a=Ce(n);if(r){t=this.el_=n,n=this.tag=s.default.createElement("video");while(t.children.length)n.appendChild(t.firstChild);we(t,"video-js")||Te(t,"video-js"),t.appendChild(n),i=this.playerElIngest_=t,Object.keys(t).forEach((function(e){try{n[e]=t[e]}catch(i){}}))}if(n.setAttribute("tabindex","-1"),a.tabindex="-1",(ie||te&&ae)&&(n.setAttribute("role","application"),a.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in a&&delete a.width,"height"in a&&delete a.height,Object.getOwnPropertyNames(a).forEach((function(e){r&&"class"===e||t.setAttribute(e,a[e]),r&&n.setAttribute(e,a[e])})),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=t.player=this,this.addClass("vjs-paused"),!0!==o.default.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Ke("vjs-styles-dimensions");var u=He(".vjs-styles-defaults"),c=He("head");c.insertBefore(this.styleEl_,u?u.nextSibling:c.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var l=n.getElementsByTagName("a"),d=0;d<l.length;d++){var f=l.item(d);Te(f,"vjs-hidden"),f.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!i&&n.parentNode.insertBefore(t,n),_e(n,t),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=t,t},n.crossOrigin=function(e){if(!e)return this.techGet_("crossOrigin");"anonymous"===e||"use-credentials"===e?this.techCall_("setCrossOrigin",e):R.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+e+'"')},n.width=function(e){return this.dimension("width",e)},n.height=function(e){return this.dimension("height",e)},n.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t||"auto"===t)return this[n]=void 0,void this.updateStyleEl_();var i=parseFloat(t);isNaN(i)?R.error('Improper value "'+t+'" supplied for for '+e):(this[n]=i,this.updateStyleEl_())},n.fluid=function(e){var t=this;if(void 0===e)return!!this.fluid_;this.fluid_=!!e,mt(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),function(e,t){mt(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))}(this,(function(){t.on(["playerreset","resize"],t.boundUpdateStyleEl_)}))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},n.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},n.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},n.updateStyleEl_=function(){if(!0!==o.default.VIDEOJS_NO_DYNAMIC_STYLE){var e,t,n,i;n=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";var r=n.split(":"),a=r[1]/r[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/a:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*a,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),Qe(this.styleEl_,"\n ."+i+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+i+".vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: "+100*a+"%;\n }\n ")}else{var s="number"===typeof this.width_?this.width_:this.options_.width,u="number"===typeof this.height_?this.height_:this.options_.height,c=this.tech_&&this.tech_.el();c&&(s>=0&&(c.width=s),u>=0&&(c.height=u))}},n.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_();var i=Ot(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==i&&this.tag&&(Tn.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;var a=this.autoplay();("string"===typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(a=!1);var o={source:t,autoplay:a,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};wn.names.forEach((function(e){var t=wn[e];o[t.getterName]=n[t.privateName]})),$(o,this.options_[i]),$(o,this.options_[r]),$(o,this.options_[e.toLowerCase()]),this.tag&&(o.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(o.startTime=this.cache_.currentTime);var s=Tn.getTech(e);if(!s)throw new Error("No Tech named '"+i+"' exists! '"+i+"' should be registered using videojs.registerTech()'");this.tech_=new s(o),this.tech_.ready(ht(this,this.handleTechReady_),!0),qt.jsonToTextTracks(this.textTracksJson_||[],this.tech_),mr.forEach((function(e){n.on(n.tech_,e,(function(t){return n["handleTech"+Ot(e)+"_"](t)}))})),Object.keys(yr).forEach((function(e){n.on(n.tech_,e,(function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+yr[e]+"_"].bind(n),event:t}):n["handleTech"+yr[e]+"_"](t)}))})),this.on(this.tech_,"loadstart",(function(e){return n.handleTechLoadStart_(e)})),this.on(this.tech_,"sourceset",(function(e){return n.handleTechSourceset_(e)})),this.on(this.tech_,"waiting",(function(e){return n.handleTechWaiting_(e)})),this.on(this.tech_,"ended",(function(e){return n.handleTechEnded_(e)})),this.on(this.tech_,"seeking",(function(e){return n.handleTechSeeking_(e)})),this.on(this.tech_,"play",(function(e){return n.handleTechPlay_(e)})),this.on(this.tech_,"firstplay",(function(e){return n.handleTechFirstPlay_(e)})),this.on(this.tech_,"pause",(function(e){return n.handleTechPause_(e)})),this.on(this.tech_,"durationchange",(function(e){return n.handleTechDurationChange_(e)})),this.on(this.tech_,"fullscreenchange",(function(e,t){return n.handleTechFullscreenChange_(e,t)})),this.on(this.tech_,"fullscreenerror",(function(e,t){return n.handleTechFullscreenError_(e,t)})),this.on(this.tech_,"enterpictureinpicture",(function(e){return n.handleTechEnterPictureInPicture_(e)})),this.on(this.tech_,"leavepictureinpicture",(function(e){return n.handleTechLeavePictureInPicture_(e)})),this.on(this.tech_,"error",(function(e){return n.handleTechError_(e)})),this.on(this.tech_,"posterchange",(function(e){return n.handleTechPosterChange_(e)})),this.on(this.tech_,"textdata",(function(e){return n.handleTechTextData_(e)})),this.on(this.tech_,"ratechange",(function(e){return n.handleTechRateChange_(e)})),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===i&&this.tag||_e(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},n.unloadTech_=function(){var e=this;wn.names.forEach((function(t){var n=wn[t];e[n.privateName]=e[n.getterName]()})),this.textTracksJson_=qt.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},n.tech=function(e){return void 0===e&&R.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},n.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},n.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},n.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},n.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},n.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"===typeof e){var n,i=function(){var e=t.muted();t.muted(!0);var n=function(){t.muted(e)};t.playTerminatedQueue_.push(n);var i=t.play();if(Ht(i))return i["catch"]((function(e){throw n(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))}))};if("any"!==e||this.muted()?n="muted"!==e||this.muted()?this.play():i():(n=this.play(),Ht(n)&&(n=n["catch"](i))),Ht(n))return n.then((function(){t.trigger({type:"autoplay-success",autoplay:e})}))["catch"]((function(){t.trigger({type:"autoplay-failure",autoplay:e})}))}},n.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,n="";"string"!==typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter((function(e){return e.src===t}));if(n.length)return n[0].type;for(var i=e.$$("source"),r=0;r<i.length;r++){var a=i[r];if(a.type&&a.src&&a.src===t)return a.type}return Mn(t)}(this,t)),this.cache_.source=jt({},e,{src:t,type:n});for(var i=this.cache_.sources.filter((function(e){return e.src&&e.src===t})),r=[],a=this.$$("source"),o=[],s=0;s<a.length;s++){var u=Ce(a[s]);r.push(u),u.src&&u.src===t&&o.push(u.src)}o.length&&!i.length?this.cache_.sources=r:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},n.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var n=function(e){return t.updateSourceCaches_(e)},i=this.currentSource().src,r=e.src;i&&!/^blob:/.test(i)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==i)&&(n=function(){}),n(r),e.src||this.tech_.any(["sourceset","loadstart"],(function(e){if("sourceset"!==e.type){var n=t.techGet("currentSrc");t.lastSource_.tech=n,t.updateSourceCaches_(n)}}))}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},n.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},n.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},n.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach((function(e){return e.callback(e.event)})),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},n.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime();this.on("timeupdate",(function n(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",n))}))},n.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},n.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},n.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},n.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},n.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},n.handleTechFirstPlay_=function(){this.options_.starttime&&(R.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},n.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},n.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},n.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},n.handleTechClick_=function(e){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"===typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?Vt(this.play()):this.pause()))},n.handleTechDoubleClick_=function(e){if(this.controls_){var t=Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),(function(t){return t.contains(e.target)}));t||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"===typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen())}},n.handleTechTap_=function(){this.userActive(!this.userActive())},n.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},n.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},n.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},n.handleStageClick_=function(){this.reportUserActivity()},n.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},n.documentFullscreenChange_=function(e){var t=e.target.player;if(!t||t===this){var n=this.el(),i=s.default[this.fsApi_.fullscreenElement]===n;!i&&n.matches?i=n.matches(":"+this.fsApi_.fullscreen):!i&&n.msMatchesSelector&&(i=n.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(i)}},n.handleTechFullscreenChange_=function(e,t){var n=this;t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",(function(){n.removeClass("vjs-ios-native-fs")}))),this.isFullscreen(t.isFullscreen))},n.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},n.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},n.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},n.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},n.handleTechError_=function(){var e=this.tech_.error();this.error(e)},n.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},n.getCache=function(){return this.cache_},n.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},n.techCall_=function(e,t){this.ready((function(){if(e in On)return function(e,t,n,i){return t[n](e.reduce(In(n),i))}(this.middleware_,this.tech_,e,t);if(e in jn)return En(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(n){throw R(n),n}}),!0)},n.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in An)return function(e,t,n){return e.reduceRight(In(n),t[n]())}(this.middleware_,this.tech_,e);if(e in jn)return En(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw R("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw R("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw R(t),t}}},n.play=function(){var e=this,t=this.options_.Promise||o.default.Promise;return t?new t((function(t){e.play_(t)})):this.play_()},n.play_=function(e){var t=this;void 0===e&&(e=Vt),this.playCallbacks_.push(e);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(n||!le&&!ce||this.load());var i=this.techGet_("play");null===i?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(i)},n.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach((function(e){e()}))},n.runPlayCallbacks_=function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach((function(t){t(e)}))},n.pause=function(){this.techCall_("pause")},n.paused=function(){return!1!==this.techGet_("paused")},n.played=function(){return this.techGet_("played")||Bt(0,0)},n.scrubbing=function(e){if("undefined"===typeof e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},n.currentTime=function(e){return"undefined"!==typeof e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},n.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},n.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;e=parseFloat(e),e<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},n.remainingTime=function(){return this.duration()-this.currentTime()},n.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},n.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=Bt(0,0)),e},n.bufferedPercent=function(){return Ut(this.buffered(),this.duration())},n.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},n.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},n.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},n.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},n.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},n.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},n.isFullscreen=function(e){if(void 0!==e){var t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},n.requestFullscreen=function(e){var t=this.options_.Promise||o.default.Promise;if(t){var n=this;return new t((function(t,i){function r(){n.off("fullscreenerror",o),n.off("fullscreenchange",a)}function a(){r(),t()}function o(e,t){r(),i(t)}n.one("fullscreenchange",a),n.one("fullscreenerror",o);var s=n.requestFullscreenHelper_(e);s&&(s.then(r,r),s.then(t,i))}))}return this.requestFullscreenHelper_()},n.requestFullscreenHelper_=function(e){var t,n=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){var i=this.el_[this.fsApi_.requestFullscreen](t);return i&&i.then((function(){return n.isFullscreen(!0)}),(function(){return n.isFullscreen(!1)})),i}this.tech_.supportsFullScreen()&&!0===!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},n.exitFullscreen=function(){var e=this.options_.Promise||o.default.Promise;if(e){var t=this;return new e((function(e,n){function i(){t.off("fullscreenerror",a),t.off("fullscreenchange",r)}function r(){i(),e()}function a(e,t){i(),n(t)}t.one("fullscreenchange",r),t.one("fullscreenerror",a);var o=t.exitFullscreenHelper_();o&&(o.then(i,i),o.then(e,n))}))}return this.exitFullscreenHelper_()},n.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=s.default[this.fsApi_.exitFullscreen]();return t&&Vt(t.then((function(){return e.isFullscreen(!1)}))),t}this.tech_.supportsFullScreen()&&!0===!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},n.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=s.default.documentElement.style.overflow,ot(s.default,"keydown",this.boundFullWindowOnEscKey_),s.default.documentElement.style.overflow="hidden",Te(s.default.body,"vjs-full-window"),this.trigger("enterFullWindow")},n.fullWindowOnEscKey=function(e){c.default.isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},n.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,st(s.default,"keydown",this.boundFullWindowOnEscKey_),s.default.documentElement.style.overflow=this.docOrigOverflow,Se(s.default.body,"vjs-full-window"),this.trigger("exitFullWindow")},n.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},n.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},n.requestPictureInPicture=function(){if("pictureInPictureEnabled"in s.default&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},n.exitPictureInPicture=function(){if("pictureInPictureEnabled"in s.default)return s.default.exitPictureInPicture()},n.handleKeyDown=function(e){var t=this.options_.userActions;if(t&&t.hotkeys){(function(e){var t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;if("input"===t)return-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type);return-1!==["textarea"].indexOf(t)})(this.el_.ownerDocument.activeElement)||("function"===typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}},n.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},n=t.fullscreenKey,i=void 0===n?function(e){return c.default.isEventKey(e,"f")}:n,r=t.muteKey,a=void 0===r?function(e){return c.default.isEventKey(e,"m")}:r,o=t.playPauseKey,u=void 0===o?function(e){return c.default.isEventKey(e,"k")||c.default.isEventKey(e,"Space")}:o;if(i.call(this,e)){e.preventDefault(),e.stopPropagation();var l=Dt.getComponent("FullscreenToggle");!1!==s.default[this.fsApi_.fullscreenEnabled]&&l.prototype.handleClick.call(this,e)}else if(a.call(this,e)){e.preventDefault(),e.stopPropagation();var d=Dt.getComponent("MuteToggle");d.prototype.handleClick.call(this,e)}else if(u.call(this,e)){e.preventDefault(),e.stopPropagation();var f=Dt.getComponent("PlayToggle");f.prototype.handleClick.call(this,e)}},n.canPlayType=function(e){for(var t,n=0,i=this.options_.techOrder;n<i.length;n++){var r=i[n],a=Tn.getTech(r);if(a||(a=Dt.getComponent(r)),a){if(a.isSupported()&&(t=a.canPlayType(e),t))return t}else R.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},n.selectSource=function(e){var t,n=this,i=this.options_.techOrder.map((function(e){return[e,Tn.getTech(e)]})).filter((function(e){var t=e[0],n=e[1];return n?n.isSupported():(R.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)})),r=function(e,t,n){var i;return e.some((function(e){return t.some((function(t){if(i=n(e,t),i)return!0}))})),i},a=function(e,t){var i=e[0],r=e[1];if(r.canPlaySource(t,n.options_[i.toLowerCase()]))return{source:t,tech:i}};return t=this.options_.sourceOrder?r(e,i,function(e){return function(t,n){return e(n,t)}}(a)):r(i,e,a),t||!1},n.handleSrc_=function(e,t){var n=this;if("undefined"===typeof e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var i=function e(t){if(Array.isArray(t)){var n=[];t.forEach((function(t){t=e(t),Array.isArray(t)?n=n.concat(t):H(t)&&n.push(t)})),t=n}else t="string"===typeof t&&t.trim()?[Ln({src:t})]:H(t)&&"string"===typeof t.src&&t.src&&t.src.trim()?[Ln(t)]:[];return t}(e);if(i.length){if(this.changingSrc_=!0,t||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),Cn(this,i[0],(function(e,r){n.middleware_=r,t||(n.cache_.sources=i),n.updateSourceCaches_(e);var a=n.src_(e);if(a)return i.length>1?n.handleSrc_(i.slice(1)):(n.changingSrc_=!1,n.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0),void n.triggerReady());(function(e,t){e.forEach((function(e){return e.setTech&&e.setTech(t)}))})(r,n.tech_)})),this.options_.retryOnError&&i.length>1){var r=function(){n.error(null),n.handleSrc_(i.slice(1),!0)},a=function(){n.off("error",r)};this.one("error",r),this.one("playing",a),this.resetRetryOnError_=function(){n.off("error",r),n.off("playing",a)}}}else this.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0)},n.src=function(e){return this.handleSrc_(e,!1)},n.src_=function(e){var t=this,n=this.selectSource([e]);return!n||(function(e,t){return Ot(e)===Ot(t)}(n.tech,this.techName_)?(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1}),!0),!1):(this.changingSrc_=!0,this.loadTech_(n.tech,n.source),this.tech_.ready((function(){t.changingSrc_=!1})),!1))},n.load=function(){this.techCall_("load")},n.reset=function(){var e=this,t=this.options_.Promise||o.default.Promise;if(this.paused()||!t)this.doReset_();else{var n=this.play();Vt(n.then((function(){return e.doReset_()})))}},n.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),mt(this)&&this.trigger("playerreset")},n.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},n.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar||{},t=e.durationDisplay,n=e.remainingTimeDisplay;t&&t.updateContent(),n&&n.updateContent()},n.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},n.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},n.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},n.currentSource=function(){return this.cache_.source||{}},n.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},n.currentType=function(){return this.currentSource()&&this.currentSource().type||""},n.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},n.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"===typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"===typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t="undefined"===typeof t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},n.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},n.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},n.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},n.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},n.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},n.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},n.error=function(e){var t=this;if(void 0===e)return this.error_||null;if(A("beforeerror").forEach((function(n){var i=n(t,e);H(i)&&!Array.isArray(i)||"string"===typeof i||"number"===typeof i||null===i?e=i:t.log.error("please return a value that MediaError expects in beforeerror hooks")})),this.options_.suppressNotSupportedError&&e&&4===e.code){var n=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],n),void this.one("loadstart",(function(){this.off(["click","touchstart"],n)}))}if(null===e)return this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Ft(e),this.addClass("vjs-error"),R.error("(CODE:"+this.error_.code+" "+Ft.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),A("error").forEach((function(e){return e(t,t.error_)}))},n.reportUserActivity=function(e){this.userActivity_=!0},n.userActive=function(e){if(void 0===e)return this.userActive_;if(e=!!e,e!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",(function(e){e.stopPropagation(),e.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},n.listenForUserActivity_=function(){var e,t,n,i=ht(this,this.reportUserActivity),r=function(t){i(),this.clearInterval(e)};this.on("mousedown",(function(){i(),this.clearInterval(e),e=this.setInterval(i,250)})),this.on("mousemove",(function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,i())})),this.on("mouseup",r),this.on("mouseleave",r);var a,o=this.getChild("controlBar");!o||ce||K||(o.on("mouseenter",(function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0})),o.on("mouseleave",(function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",i),this.on("keyup",i),this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(a);var e=this.options_.inactivityTimeout;e<=0||(a=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e))}}),250)},n.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},n.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},n.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},n.enableAudioOnlyUI_=function(){var e=this;this.addClass("vjs-audio-only-mode");var t=this.children(),n=this.getChild("ControlBar"),i=n&&n.currentHeight();t.forEach((function(t){t!==n&&t.el_&&!t.hasClass("vjs-hidden")&&(t.hide(),e.audioOnlyCache_.hiddenChildren.push(t))})),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(i),this.trigger("audioonlymodechange")},n.disableAudioOnlyUI_=function(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach((function(e){return e.show()})),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")},n.audioOnlyMode=function(e){var t=this;if("boolean"!==typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;this.audioOnlyMode_=e;var n=this.options_.Promise||o.default.Promise;if(n){if(e){var i=[];return this.isInPictureInPicture()&&i.push(this.exitPictureInPicture()),this.isFullscreen()&&i.push(this.exitFullscreen()),this.audioPosterMode()&&i.push(this.audioPosterMode(!1)),n.all(i).then((function(){return t.enableAudioOnlyUI_()}))}return n.resolve().then((function(){return t.disableAudioOnlyUI_()}))}e?(this.isInPictureInPicture()&&this.exitPictureInPicture(),this.isFullscreen()&&this.exitFullscreen(),this.enableAudioOnlyUI_()):this.disableAudioOnlyUI_()},n.enablePosterModeUI_=function(){var e=this.tech_&&this.tech_;e.hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},n.disablePosterModeUI_=function(){var e=this.tech_&&this.tech_;e.show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},n.audioPosterMode=function(e){var t=this;if("boolean"!==typeof e||e===this.audioPosterMode_)return this.audioPosterMode_;this.audioPosterMode_=e;var n=this.options_.Promise||o.default.Promise;if(n){if(e){if(this.audioOnlyMode()){var i=this.audioOnlyMode(!1);return i.then((function(){t.enablePosterModeUI_()}))}return n.resolve().then((function(){t.enablePosterModeUI_()}))}return n.resolve().then((function(){t.disablePosterModeUI_()}))}if(e)return this.audioOnlyMode()&&this.audioOnlyMode(!1),void this.enablePosterModeUI_();this.disablePosterModeUI_()},n.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},n.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},n.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e,n=t.track;if(n||(n=e),this.tech_)return this.tech_.removeRemoteTextTrack(n)},n.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},n.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},n.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},n.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),mt(this)&&this.trigger("languagechange"))},n.languages=function(){return jt(t.prototype.options_.languages,this.languages_)},n.toJSON=function(){var e=jt(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var i=t[n];i=jt(i),i.player=void 0,e.tracks[n]=i}return e},n.createModal=function(e,t){var n=this;t=t||{},t.content=e||"";var i=new Wt(this,t);return this.addChild(i),i.on("dispose",(function(){n.removeChild(i)})),i.open(),i},n.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<br.length;n++){var i=br[n],r=this.breakpoints_[i];if(t<=r){if(e===i)return;e&&this.removeClass(_r[e]),this.addClass(_r[i]),this.breakpoint_=i;break}}},n.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},n.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=$({},wr,e),this.updateCurrentBreakpoint_()),$(this.breakpoints_)},n.responsive=function(e){if(void 0===e)return this.responsive_;e=Boolean(e);var t=this.responsive_;return e!==t?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},n.currentBreakpoint=function(){return this.breakpoint_},n.currentBreakpointClass=function(){return _r[this.breakpoint_]||""},n.loadMedia=function(e,t){var n=this;if(e&&"object"===(0,r.default)(e)){this.reset(),this.cache_.media=jt(e);var i=this.cache_.media,a=i.artwork,o=i.poster,s=i.src,u=i.textTracks;!a&&o&&(this.cache_.media.artwork=[{src:o,type:Mn(o)}]),s&&this.src(s),o&&this.poster(o),Array.isArray(u)&&u.forEach((function(e){return n.addRemoteTextTrack(e,!1)})),this.ready(t)}},n.getMedia=function(){if(!this.cache_.media){var e=this.poster(),t=this.currentSources(),n=Array.prototype.map.call(this.remoteTextTracks(),(function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}})),i={src:t,textTracks:n};return e&&(i.poster=e,i.artwork=[{src:i.poster,type:Mn(i.poster)}]),i}return jt(this.cache_.media)},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=Ce(e),i=n["data-setup"];if(we(e,"vjs-fill")&&(n.fill=!0),we(e,"vjs-fluid")&&(n.fluid=!0),null!==i){var r=(0,f.default)(i||"{}"),a=r[0],o=r[1];a&&R.error(a),$(n,o)}if($(t,n),e.hasChildNodes())for(var s=e.childNodes,u=0,c=s.length;u<c;u++){var l=s[u],d=l.nodeName.toLowerCase();"source"===d?t.sources.push(Ce(l)):"track"===d&&t.tracks.push(Ce(l))}return t},n.flexNotSupported_=function(){var e=s.default.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},n.debug=function(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},n.playbackRates=function(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every((function(e){return"number"===typeof e}))&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))},t}(Dt);wn.names.forEach((function(e){var t=wn[e];Tr.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}})),Tr.prototype.crossorigin=Tr.prototype.crossOrigin,Tr.players={};var Sr=o.default.navigator;Tr.prototype.options_={techOrder:Tn.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Sr&&(Sr.languages&&Sr.languages[0]||Sr.userLanguage||Sr.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1},["ended","seeking","seekable","networkState","readyState"].forEach((function(e){Tr.prototype[e]=function(){return this.techGet_(e)}})),mr.forEach((function(e){Tr.prototype["handleTech"+Ot(e)+"_"]=function(){return this.trigger(e)}})),Dt.registerComponent("Player",Tr);var kr={},xr=function(e){return kr.hasOwnProperty(e)},Cr=function(e){return xr(e)?kr[e]:void 0},Er=function(e,t){e["activePlugins_"]=e["activePlugins_"]||{},e["activePlugins_"][t]=!0},Ar=function(e,t,n){var i=(n?"before":"")+"pluginsetup";e.trigger(i,t),e.trigger(i+":"+t.name,t)},Or=function(e,t){return t.prototype.name=e,function(){Ar(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var a=(0,g.default)(t,[this].concat(i));return this[e]=function(){return a},Ar(this,a.getEventHash()),a}},jr=function(){function e(t){if(this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),xt(this),delete this.trigger,Et(this,this.constructor.defaultState),Er(t,this.name),this.dispose=this.dispose.bind(this),t.on("dispose",this.dispose)}var t=e.prototype;return t.version=function(){return this.constructor.VERSION},t.getEventHash=function(e){return void 0===e&&(e={}),e.name=this.name,e.plugin=this.constructor,e.instance=this,e},t.trigger=function(e,t){return void 0===t&&(t={}),ut(this.eventBusEl_,e,this.getEventHash(t))},t.handleStateChanged=function(e){},t.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t["activePlugins_"][e]=!1,this.player=this.state=null,t[e]=Or(e,kr[e])},e.isBasic=function(t){var n="string"===typeof t?Cr(t):t;return"function"===typeof n&&!e.prototype.isPrototypeOf(n.prototype)},e.registerPlugin=function(t,n){if("string"!==typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+(0,r.default)(t)+".");if(xr(t))R.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(Tr.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!==typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+(0,r.default)(n)+".");return kr[t]=n,"plugin"!==t&&(e.isBasic(n)?Tr.prototype[t]=function(e,t){var n=function(){Ar(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return Er(this,e),Ar(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach((function(e){n[e]=t[e]})),n}(t,n):Tr.prototype[t]=Or(t,n)),n},e.deregisterPlugin=function(e){if("plugin"===e)throw new Error("Cannot de-register base plugin.");xr(e)&&(delete kr[e],delete Tr.prototype[e])},e.getPlugins=function(e){var t;return void 0===e&&(e=Object.keys(kr)),e.forEach((function(e){var n=Cr(e);n&&(t=t||{},t[e]=n)})),t},e.getPluginVersion=function(e){var t=Cr(e);return t&&t.VERSION||""},e}();jr.getPlugin=Cr,jr.BASE_PLUGIN_NAME="plugin",jr.registerPlugin("plugin",jr),Tr.prototype.usingPlugin=function(e){return!!this["activePlugins_"]&&!0===this["activePlugins_"][e]},Tr.prototype.hasPlugin=function(e){return!!xr(e)};var Ir=function(e){return 0===e.indexOf("#")?e.slice(1):e};function Pr(e,t,n){var i=Pr.getPlayer(e);if(i)return t&&R.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&i.ready(n),i;var r="string"===typeof e?He("#"+Ir(e)):e;if(!ge(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");r.ownerDocument.defaultView&&r.ownerDocument.body.contains(r)||R.warn("The element supplied is not included in the DOM"),t=t||{},!0===t.restoreEl&&(t.restoreEl=(r.parentNode&&r.parentNode.hasAttribute("data-vjs-player")?r.parentNode:r).cloneNode(!0)),A("beforesetup").forEach((function(e){var n=e(r,jt(t));H(n)&&!Array.isArray(n)?t=jt(t,n):R.error("please return an object in beforesetup hooks")}));var a=Dt.getComponent("Player");return i=new a(r,t,n),A("setup").forEach((function(e){return e(i)})),i}if(Pr.hooks_=E,Pr.hooks=A,Pr.hook=function(e,t){A(e,t)},Pr.hookOnce=function(e,t){A(e,[].concat(t).map((function(t){return function n(){return O(e,n),t.apply(void 0,arguments)}})))},Pr.removeHook=O,!0!==o.default.VIDEOJS_NO_DYNAMIC_STYLE&&pe()){var Mr=He(".vjs-styles-defaults");if(!Mr){Mr=Ke("vjs-styles-defaults");var Lr=He("head");Lr&&Lr.insertBefore(Mr,Lr.firstChild),Qe(Mr,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: 56.25%\n }\n ")}}Ge(1,Pr),Pr.VERSION="7.20.3",Pr.options=Tr.prototype.options_,Pr.getPlayers=function(){return Tr.players},Pr.getPlayer=function(e){var t,n=Tr.players;if("string"===typeof e){var i=Ir(e),r=n[i];if(r)return r;t=He("#"+i)}else t=e;if(ge(t)){var a=t,o=a.player,s=a.playerId;if(o||n[s])return o||n[s]}},Pr.getAllPlayers=function(){return Object.keys(Tr.players).map((function(e){return Tr.players[e]})).filter(Boolean)},Pr.players=Tr.players,Pr.getComponent=Dt.getComponent,Pr.registerComponent=function(e,t){Tn.isTech(t)&&R.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Dt.registerComponent.call(Dt,e,t)},Pr.getTech=Tn.getTech,Pr.registerTech=Tn.registerTech,Pr.use=function(e,t){Sn[e]=Sn[e]||[],Sn[e].push(t)},Object.defineProperty(Pr,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(Pr.middleware,"TERMINATOR",{value:xn,writeable:!1,enumerable:!0}),Pr.browser=de,Pr.TOUCH_ENABLED=oe,Pr.extend=function(e,t){void 0===t&&(t={});var n=function(){e.apply(this,arguments)},i={};for(var a in"object"===(0,r.default)(t)?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),i=t):"function"===typeof t&&(n=t),(0,v.default)(n,e),e&&(n.super_=e),i)i.hasOwnProperty(a)&&(n.prototype[a]=i[a]);return n},Pr.mergeOptions=jt,Pr.bind=ht,Pr.registerPlugin=jr.registerPlugin,Pr.deregisterPlugin=jr.deregisterPlugin,Pr.plugin=function(e,t){return R.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),jr.registerPlugin(e,t)},Pr.getPlugins=jr.getPlugins,Pr.getPlugin=jr.getPlugin,Pr.getPluginVersion=jr.getPluginVersion,Pr.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),Pr.options.languages=jt(Pr.options.languages,(n={},n[e]=t,n)),Pr.options.languages[e]},Pr.log=R,Pr.createLogger=N,Pr.createTimeRange=Pr.createTimeRanges=Bt,Pr.formatTime=Xn,Pr.setFormatTime=function(e){Yn=e},Pr.resetFormatTime=function(){Yn=Gn},Pr.parseUrl=un,Pr.isCrossOrigin=dn,Pr.EventTarget=gt,Pr.on=ot,Pr.one=ct,Pr.off=st,Pr.trigger=ut,Pr.xhr=h.default,Pr.TextTrack=gn,Pr.AudioTrack=vn,Pr.VideoTrack=mn,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((function(e){Pr[e]=function(){return R.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),ze[e].apply(null,arguments)}})),Pr.computedStyle=z,Pr.dom=ze,Pr.url=fn,Pr.defineLazyProperty=gr,Pr.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});/*! @name @videojs/http-streaming @version 2.14.3 @license Apache-2.0 */
- var Dr=m.default,Rr=function(e,t,n){return e&&n&&n.responseURL&&t!==n.responseURL?n.responseURL:t},Nr=function(e){return Pr.log.debug?Pr.log.debug.bind(Pr,"VHS:",e+" >"):function(){}},Br=function(e,t){var n,i=[];if(e&&e.length)for(n=0;n<e.length;n++)t(e.start(n),e.end(n))&&i.push([e.start(n),e.end(n)]);return Pr.createTimeRanges(i)},Ur=function(e,t){return Br(e,(function(e,n){return e-.1<=t&&n+.1>=t}))},Fr=function(e,t){return Br(e,(function(e){return e-1/30>=t}))},$r=function(e){var t=[];if(!e||!e.length)return"";for(var n=0;n<e.length;n++)t.push(e.start(n)+" => "+e.end(n));return t.join(", ")},Hr=function(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},Vr=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},zr=function(e,t){var n=0;if(!e||!e.length)return n;for(var i=0;i<e.length;i++){var r=e.start(i),a=e.end(i);t>a||(n+=t>r&&t<=a?a-t:a-r)}return n},qr=Pr.createTimeRange,Wr=function(e,t){if(!t.preload)return t.duration;var n=0;return(t.parts||[]).forEach((function(e){n+=e.duration})),(t.preloadHints||[]).forEach((function(t){"PART"===t.type&&(n+=e.partTargetDuration)})),n},Gr=function(e){return(e.segments||[]).reduce((function(e,t,n){return t.parts?t.parts.forEach((function(i,r){e.push({duration:i.duration,segmentIndex:n,partIndex:r,part:i,segment:t})})):e.push({duration:t.duration,segmentIndex:n,partIndex:null,segment:t,part:null}),e}),[])},Yr=function(e){var t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},Xr=function(e){var t=e.preloadSegment;if(t){var n=t.parts,i=t.preloadHints,r=(i||[]).reduce((function(e,t){return e+("PART"===t.type?1:0)}),0);return r+=n&&n.length?n.length:0,r}},Kr=function(e,t){if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;var n=Yr(t).length>0;return n&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:n&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},Qr=function(e,t,n){if("undefined"===typeof t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;var i=function(e,t){var n=0,i=t-e.mediaSequence,r=e.segments[i];if(r){if("undefined"!==typeof r.start)return{result:r.start,precise:!0};if("undefined"!==typeof r.end)return{result:r.end-r.duration,precise:!0}}while(i--){if(r=e.segments[i],"undefined"!==typeof r.end)return{result:n+r.end,precise:!0};if(n+=Wr(e,r),"undefined"!==typeof r.start)return{result:n+r.start,precise:!0}}return{result:n,precise:!1}}(e,t);if(i.precise)return i.result;var r=function(e,t){for(var n,i=0,r=t-e.mediaSequence;r<e.segments.length;r++){if(n=e.segments[r],"undefined"!==typeof n.start)return{result:n.start-i,precise:!0};if(i+=Wr(e,n),"undefined"!==typeof n.end)return{result:n.end-i,precise:!0}}return{result:-1,precise:!1}}(e,t);return r.precise?r.result:i.result+n},Jr=function(e,t,n){if(!e)return 0;if("number"!==typeof n&&(n=0),"undefined"===typeof t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return o.default.Infinity}return Qr(e,t,n)},Zr=function(e){var t=e.defaultDuration,n=e.durationList,i=e.startIndex,r=e.endIndex,a=0;if(i>r){var o=[r,i];i=o[0],r=o[1]}if(i<0){for(var s=i;s<Math.min(0,r);s++)a+=t;i=0}for(var u=i;u<r;u++)a+=n[u].duration;return a},ea=function(e,t,n,i){if(!e||!e.segments)return null;if(e.endList)return Jr(e);if(null===t)return null;t=t||0;var r=Qr(e,e.mediaSequence+e.segments.length,t);return n&&(i="number"===typeof i?i:Kr(null,e),r-=i),Math.max(0,r)},ta=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},na=function(e){return e.excludeUntil&&e.excludeUntil===1/0},ia=function(e){var t=ta(e);return!e.disabled&&!t},ra=function(e,t){return t.attributes&&t.attributes[e]},aa=function(e,t){if(1===e.playlists.length)return!0;var n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter((function(e){return!!ia(e)&&(e.attributes.BANDWIDTH||0)<n})).length},oa=function(e,t){return!(!e&&!t||!e&&t||e&&!t)&&(e===t||(!(!e.id||!t.id||e.id!==t.id)||(!(!e.resolvedUri||!t.resolvedUri||e.resolvedUri!==t.resolvedUri)||!(!e.uri||!t.uri||e.uri!==t.uri))))},sa=function(e,t){var n=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{},i=!1;for(var r in n){for(var a in n[r])if(i=t(n[r][a]),i)break;if(i)break}return!!i},ua=function(e){if(!e||!e.playlists||!e.playlists.length){var t=sa(e,(function(e){return e.playlists&&e.playlists.length||e.uri}));return t}for(var n=function(t){var n=e.playlists[t],i=n.attributes&&n.attributes.CODECS;if(i&&i.split(",").every((function(e){return(0,b.isAudioCodec)(e)})))return"continue";var r=sa(e,(function(e){return oa(n,e)}));return r?"continue":{v:!1}},i=0;i<e.playlists.length;i++){var a=n(i);if("continue"!==a&&"object"===(0,r.default)(a))return a.v}return!0},ca={liveEdgeDelay:Kr,duration:Jr,seekable:function(e,t,n){var i=t||0,r=ea(e,t,!0,n);return null===r?qr():qr(i,r)},getMediaInfoForTime:function(e){for(var t=e.playlist,n=e.currentTime,i=e.startingSegmentIndex,r=e.startingPartIndex,a=e.startTime,o=e.experimentalExactManifestTimings,s=n-a,u=Gr(t),c=0,l=0;l<u.length;l++){var d=u[l];if(i===d.segmentIndex&&("number"!==typeof r||"number"!==typeof d.partIndex||r===d.partIndex)){c=l;break}}if(s<0){if(c>0)for(var f=c-1;f>=0;f--){var h=u[f];if(s+=h.duration,o){if(s<0)continue}else if(s+1/30<=0)continue;return{partIndex:h.partIndex,segmentIndex:h.segmentIndex,startTime:a-Zr({defaultDuration:t.targetDuration,durationList:u,startIndex:c,endIndex:f})}}return{partIndex:u[0]&&u[0].partIndex||null,segmentIndex:u[0]&&u[0].segmentIndex||0,startTime:n}}if(c<0){for(var p=c;p<0;p++)if(s-=t.targetDuration,s<0)return{partIndex:u[0]&&u[0].partIndex||null,segmentIndex:u[0]&&u[0].segmentIndex||0,startTime:n};c=0}for(var g=c;g<u.length;g++){var v=u[g];if(s-=v.duration,o){if(s>0)continue}else if(s-1/30>=0)continue;return{partIndex:v.partIndex,segmentIndex:v.segmentIndex,startTime:a+Zr({defaultDuration:t.targetDuration,durationList:u,startIndex:c,endIndex:g})}}return{segmentIndex:u[u.length-1].segmentIndex,partIndex:u[u.length-1].partIndex,startTime:n}},isEnabled:ia,isDisabled:function(e){return e.disabled},isBlacklisted:ta,isIncompatible:na,playlistEnd:ea,isAes:function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:ra,estimateSegmentRequestTime:function(e,t,n,i){if(void 0===i&&(i=0),!ra("BANDWIDTH",n))return NaN;var r=e*n.attributes.BANDWIDTH;return(r-8*i)/t},isLowestEnabledRendition:aa,isAudioOnly:ua,playlistMatch:oa,segmentDurationWithParts:Wr},la=Pr.log,da=function(e,t){return e+"-"+t},fa=function(e,t){e.mediaGroups&&["AUDIO","SUBTITLES"].forEach((function(n){if(e.mediaGroups[n])for(var i in e.mediaGroups[n])for(var r in e.mediaGroups[n][i]){var a=e.mediaGroups[n][i][r];t(a,n,i,r)}}))},ha=function(e){var t=e.playlist,n=e.uri,i=e.id;t.id=i,t.playlistErrors_=0,n&&(t.uri=n),t.attributes=t.attributes||{}},pa=function(e,t){e.uri=t;for(var n=0;n<e.playlists.length;n++)if(!e.playlists[n].uri){var i="placeholder-uri-"+n;e.playlists[n].uri=i}var r=ua(e);fa(e,(function(t,n,i,a){var o="placeholder-uri-"+n+"-"+i+"-"+a;if(!t.playlists||!t.playlists.length){if(r&&"AUDIO"===n&&!t.uri)for(var s=0;s<e.playlists.length;s++){var c=e.playlists[s];if(c.attributes&&c.attributes.AUDIO&&c.attributes.AUDIO===i)return}t.playlists=[(0,u.default)({},t)]}t.playlists.forEach((function(t,n){var i=da(n,o);t.uri?t.resolvedUri=t.resolvedUri||Dr(e.uri,t.uri):(t.uri=0===n?o:i,t.resolvedUri=t.uri),t.id=t.id||i,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t}))})),function(e){var t=e.playlists.length;while(t--){var n=e.playlists[t];ha({playlist:n,id:da(t,n.uri)}),n.resolvedUri=Dr(e.uri,n.uri),e.playlists[n.id]=n,e.playlists[n.uri]=n,n.attributes.BANDWIDTH||la.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}}(e),function(e){fa(e,(function(t){t.uri&&(t.resolvedUri=Dr(e.uri,t.uri))}))}(e)},ga=Pr.mergeOptions,va=Pr.EventTarget,ma=function(e,t){if(!e)return t;var n=ga(e,t);if(e.preloadHints&&!t.preloadHints&&delete n.preloadHints,e.parts&&!t.parts)delete n.parts;else if(e.parts&&t.parts)for(var i=0;i<t.parts.length;i++)e.parts&&e.parts[i]&&(n.parts[i]=ga(e.parts[i],t.parts[i]));return!e.skipped&&t.skipped&&(n.skipped=!1),e.preload&&!t.preload&&(n.preload=!1),n},ya=function(e,t){!e.resolvedUri&&e.uri&&(e.resolvedUri=Dr(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=Dr(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=Dr(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=Dr(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach((function(e){e.resolvedUri||(e.resolvedUri=Dr(t,e.uri))})),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach((function(e){e.resolvedUri||(e.resolvedUri=Dr(t,e.uri))}))},ba=function(e){var t=e.segments||[],n=e.preloadSegment;if(n&&n.parts&&n.parts.length){if(n.preloadHints)for(var i=0;i<n.preloadHints.length;i++)if("MAP"===n.preloadHints[i].type)return t;n.duration=e.targetDuration,n.preload=!0,t.push(n)}return t},_a=function(e,t){return e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment},wa=function(e,t,n){void 0===n&&(n=_a);var i=ga(e,{}),r=i.playlists[t.id];if(!r)return null;if(n(r,t))return null;t.segments=ba(t);var a=ga(r,t);if(a.preloadSegment&&!t.preloadSegment&&delete a.preloadSegment,r.segments){if(t.skip){t.segments=t.segments||[];for(var o=0;o<t.skip.skippedSegments;o++)t.segments.unshift({skipped:!0})}a.segments=function(e,t,n){var i=e.slice(),r=t.slice();n=n||0;for(var a,o=[],s=0;s<r.length;s++){var u=i[s+n],c=r[s];u?(a=u.map||a,o.push(ma(u,c))):(a&&!c.map&&(c.map=a),o.push(c))}return o}(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}a.segments.forEach((function(e){ya(e,a.resolvedUri)}));for(var s=0;s<i.playlists.length;s++)i.playlists[s].id===t.id&&(i.playlists[s]=a);return i.playlists[t.id]=a,i.playlists[t.uri]=a,fa(e,(function(e,n,i,r){if(e.playlists)for(var o=0;o<e.playlists.length;o++)t.id===e.playlists[o].id&&(e.playlists[o]=a)})),i},Ta=function(e,t){var n=e.segments||[],i=n[n.length-1],r=i&&i.parts&&i.parts[i.parts.length-1],a=r&&r.duration||i&&i.duration;return t&&a?1e3*a:500*(e.partTargetDuration||e.targetDuration||10)},Sa=function(e){function t(t,n,i){var r;if(void 0===i&&(i={}),r=e.call(this)||this,!t)throw new Error("A non-empty playlist URL or object is required");r.logger_=Nr("PlaylistLoader");var a=i,o=a.withCredentials,s=void 0!==o&&o,u=a.handleManifestRedirects,c=void 0!==u&&u;r.src=t,r.vhs_=n,r.withCredentials=s,r.handleManifestRedirects=c;var d=n.options_;return r.customTagParsers=d&&d.customTagParsers||[],r.customTagMappers=d&&d.customTagMappers||[],r.experimentalLLHLS=d&&d.experimentalLLHLS||!1,Pr.browser.IE_VERSION&&(r.experimentalLLHLS=!1),r.state="HAVE_NOTHING",r.handleMediaupdatetimeout_=r.handleMediaupdatetimeout_.bind((0,l.default)(r)),r.on("mediaupdatetimeout",r.handleMediaupdatetimeout_),r}(0,d.default)(t,e);var n=t.prototype;return n.handleMediaupdatetimeout_=function(){var e=this;if("HAVE_METADATA"===this.state){var t=this.media(),n=Dr(this.master.uri,t.uri);this.experimentalLLHLS&&(n=function(e,t){if(t.endList||!t.serverControl)return e;var n={};if(t.serverControl.canBlockReload){var i=t.preloadSegment,r=t.mediaSequence+t.segments.length;if(i){var a=i.parts||[],s=Xr(t)-1;s>-1&&s!==a.length-1&&(n._HLS_part=s),(s>-1||a.length)&&r--}n._HLS_msn=r}if(t.serverControl&&t.serverControl.canSkipUntil&&(n._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(n).length){var u=new o.default.URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach((function(e){n.hasOwnProperty(e)&&u.searchParams.set(e,n[e])})),e=u.toString()}return e}(n,t)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials},(function(t,n){if(e.request)return t?e.playlistRequestError(e.request,e.media(),"HAVE_METADATA"):void e.haveMetadata({playlistString:e.request.responseText,url:e.media().uri,id:e.media().id})}))}},n.playlistRequestError=function(e,t,n){var i=t.uri,r=t.id;this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[r],status:e.status,message:"HLS playlist request error at URL: "+i+".",responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")},n.parseManifest_=function(e){var t=this,n=e.url,i=e.manifestString;return function(e){var t=e.onwarn,n=e.oninfo,i=e.manifestString,r=e.customTagParsers,a=void 0===r?[]:r,o=e.customTagMappers,s=void 0===o?[]:o,u=e.experimentalLLHLS,c=new y.Parser;t&&c.on("warn",t),n&&c.on("info",n),a.forEach((function(e){return c.addParser(e)})),s.forEach((function(e){return c.addTagMapper(e)})),c.push(i),c.end();var l=c.manifest;if(u||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach((function(e){l.hasOwnProperty(e)&&delete l[e]})),l.segments&&l.segments.forEach((function(e){["parts","preloadHints"].forEach((function(t){e.hasOwnProperty(t)&&delete e[t]}))}))),!l.targetDuration){var d=10;l.segments&&l.segments.length&&(d=l.segments.reduce((function(e,t){return Math.max(e,t.duration)}),0)),t&&t("manifest has no targetDuration defaulting to "+d),l.targetDuration=d}var f=Yr(l);if(f.length&&!l.partTargetDuration){var h=f.reduce((function(e,t){return Math.max(e,t.duration)}),0);t&&(t("manifest has no partTargetDuration defaulting to "+h),la.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),l.partTargetDuration=h}return l}({onwarn:function(e){var i=e.message;return t.logger_("m3u8-parser warn for "+n+": "+i)},oninfo:function(e){var i=e.message;return t.logger_("m3u8-parser info for "+n+": "+i)},manifestString:i,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},n.haveMetadata=function(e){var t=e.playlistString,n=e.playlistObject,i=e.url,r=e.id;this.request=null,this.state="HAVE_METADATA";var a=n||this.parseManifest_({url:i,manifestString:t});a.lastRequest=Date.now(),ha({playlist:a,uri:i,id:r});var o=wa(this.master,a);this.targetDuration=a.partTargetDuration||a.targetDuration,this.pendingMedia_=null,o?(this.master=o,this.media_=this.master.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(Ta(this.media(),!!o)),this.trigger("loadedplaylist")},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),o.default.clearTimeout(this.mediaUpdateTimeout),o.default.clearTimeout(this.finalRenditionTimeout),this.off()},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e,t){var n=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"===typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}if(o.default.clearTimeout(this.finalRenditionTimeout),t){var i=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=o.default.setTimeout(this.media.bind(this,e,!1),i)}else{var r=this.state,a=!this.media_||e.id!==this.media_.id,s=this.master.playlists[e.id];if(s&&s.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(a&&(this.trigger("mediachanging"),"HAVE_MASTER"===r?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(Ta(e,!0)),a){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e,this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},(function(t,i){if(n.request){if(e.lastRequest=Date.now(),e.resolvedUri=Rr(n.handleManifestRedirects,e.resolvedUri,i),t)return n.playlistRequestError(n.request,e,r);n.haveMetadata({playlistString:i.responseText,url:e.uri,id:e.id}),"HAVE_MASTER"===r?n.trigger("loadedmetadata"):n.trigger("mediachange")}}))}}},n.pause=function(){this.mediaUpdateTimeout&&(o.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},n.load=function(e){var t=this;this.mediaUpdateTimeout&&(o.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var n=this.media();if(e){var i=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=o.default.setTimeout((function(){t.mediaUpdateTimeout=null,t.load()}),i)}else this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},n.updateMediaUpdateTimeout_=function(e){var t=this;this.mediaUpdateTimeout&&(o.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=o.default.setTimeout((function(){t.mediaUpdateTimeout=null,t.trigger("mediaupdatetimeout"),t.updateMediaUpdateTimeout_(e)}),e))},n.start=function(){var e=this;if(this.started=!0,"object"===(0,r.default)(this.src))return this.src.uri||(this.src.uri=o.default.location.href),this.src.resolvedUri=this.src.uri,void setTimeout((function(){e.setupInitialPlaylist(e.src)}),0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},(function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"HLS playlist request error at URL: "+e.src+".",responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.src=Rr(e.handleManifestRedirects,e.src,n);var i=e.parseManifest_({manifestString:n.responseText,url:e.src});e.setupInitialPlaylist(i)}}))},n.srcUri=function(){return"string"===typeof this.src?this.src:this.src.uri},n.setupInitialPlaylist=function(e){if(this.state="HAVE_MASTER",e.playlists)return this.master=e,pa(this.master,this.srcUri()),e.playlists.forEach((function(e){e.segments=ba(e),e.segments.forEach((function(t){ya(t,e.resolvedUri)}))})),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var t=this.srcUri()||o.default.location.href;this.master=function(e,t){var n=da(0,t),i={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:o.default.location.href,resolvedUri:o.default.location.href,playlists:[{uri:t,id:n,resolvedUri:t,attributes:{}}]};return i.playlists[n]=i.playlists[0],i.playlists[t]=i.playlists[0],i}(0,t),this.haveMetadata({playlistObject:e,url:t,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},t}(va),ka=Pr.xhr,xa=Pr.mergeOptions,Ca=function(e,t,n,i){var r="arraybuffer"===e.responseType?e.response:e.responseText;!t&&r&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),n.headers&&(e.responseHeaders=n.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===n.statusCode||206===n.statusCode||0===n.statusCode||(t=new Error("XHR Failed with a response of: "+(e&&(r||e.responseText)))),i(t,e)},Ea=function(){var e=function e(t,n){t=xa({timeout:45e3},t);var i=e.beforeRequest||Pr.Vhs.xhr.beforeRequest;if(i&&"function"===typeof i){var r=i(t);r&&(t=r)}var a=!0===Pr.Vhs.xhr.original?ka:Pr.Vhs.xhr,o=a(t,(function(e,t){return Ca(o,e,t,n)})),s=o.abort;return o.abort=function(){return o.aborted=!0,s.apply(o,arguments)},o.uri=t.uri,o.requestTime=Date.now(),o};return e.original=!0,e},Aa=function(e){var t={};return e.byterange&&(t.Range=function(e){var t,n=e.offset;return t="bigint"===typeof e.offset||"bigint"===typeof e.length?o.default.BigInt(e.offset)+o.default.BigInt(e.length)-o.default.BigInt(1):e.offset+e.length-1,"bytes="+n+"-"+t}(e.byterange)),t},Oa=function(e,t){return e.start(t)+"-"+e.end(t)},ja=function(e,t){var n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},Ia=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},Pa=function(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];(0,w.isArrayBufferView)(i)?t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[n]=i})),t},Ma=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},La=function(e){return e.resolvedUri},Da=function(e){for(var t,n,i=Array.prototype.slice.call(e),r="",a=0;a<i.length/16;a++)t=i.slice(16*a,16*a+16).map(ja).join(""),n=i.slice(16*a,16*a+16).map(Ia).join(""),r+=t+" "+n+"\n";return r},Ra=Object.freeze({__proto__:null,createTransferableMessage:Pa,initSegmentId:Ma,segmentKeyId:La,hexDump:Da,tagDump:function(e){var t=e.bytes;return Da(t)},textRanges:function(e){var t,n="";for(t=0;t<e.length;t++)n+=Oa(e,t)+" ";return n}}),Na=function(e){var t=e.playlist,n=e.time,i=void 0===n?void 0:n,r=e.callback;if(!r)throw new Error("getProgramTime: callback must be provided");if(!t||void 0===i)return r({message:"getProgramTime: playlist and time must be provided"});var a=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var n,i=0,r=0;r<t.segments.length;r++)if(n=t.segments[r],i=n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:i+n.duration,e<=i)break;var a=t.segments[t.segments.length-1];if(a.videoTimingInfo&&a.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>i){if(e>i+.25*a.duration)return null;n=a}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:i-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}}(i,t);if(!a)return r({message:"valid programTime was not found"});if("estimate"===a.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:a.estimatedStart});var o={mediaSeconds:i},s=function(e,t){if(!t.dateTimeObject)return null;var n=t.videoTimingInfo.transmuxerPrependedSeconds,i=t.videoTimingInfo.transmuxedPresentationStart,r=i+n,a=e-r;return new Date(t.dateTimeObject.getTime()+1e3*a)}(i,a.segment);return s&&(o.programDateTime=s.toISOString()),r(null,o)},Ba=function e(t){var n=t.programTime,i=t.playlist,r=t.retryCount,a=void 0===r?2:r,o=t.seekTo,s=t.pauseAfterSeek,u=void 0===s||s,c=t.tech,l=t.callback;if(!l)throw new Error("seekToProgramTime: callback must be provided");if("undefined"===typeof n||!i||!o)return l({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!i.endList&&!c.hasStarted_)return l({message:"player must be playing a live stream to start buffering"});if(!function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t<e.segments.length;t++){var n=e.segments[t];if(!n.dateTimeObject)return!1}return!0}(i))return l({message:"programDateTime tags must be provided in the manifest "+i.resolvedUri});var d=function(e,t){var n;try{n=new Date(e)}catch(l){return null}if(!t||!t.segments||0===t.segments.length)return null;var i=t.segments[0];if(n<i.dateTimeObject)return null;for(var r=0;r<t.segments.length-1;r++){i=t.segments[r];var a=t.segments[r+1].dateTimeObject;if(n<a)break}var o=t.segments[t.segments.length-1],s=o.dateTimeObject,u=o.videoTimingInfo?function(e){return e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds}(o.videoTimingInfo):o.duration+.25*o.duration,c=new Date(s.getTime()+1e3*u);return n>c?null:(n>s&&(i=o),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:ca.duration(t,t.mediaSequence+t.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})}(n,i);if(!d)return l({message:n+" was not found in the stream"});var f=d.segment,h=function(e,t){var n,i;try{n=new Date(e),i=new Date(t)}catch(o){}var r=n.getTime(),a=i.getTime();return(a-r)/1e3}(f.dateTimeObject,n);if("estimate"===d.type)return 0===a?l({message:n+" is not buffered yet. Try again"}):(o(d.estimatedStart+h),void c.one("seeked",(function(){e({programTime:n,playlist:i,retryCount:a-1,seekTo:o,pauseAfterSeek:u,tech:c,callback:l})})));var p=f.start+h;c.one("seeked",(function(){return l(null,c.currentTime())})),u&&c.pause(),o(p)},Ua=function(e,t){if(4===e.readyState)return t()},Fa=Pr.EventTarget,$a=Pr.mergeOptions,Ha=function(e,t){if(!_a(e,t))return!1;if(e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx)return!1;if(e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(var n=0;n<e.segments.length;n++){var i=e.segments[n],r=t.segments[n];if(i.uri!==r.uri)return!1;if(i.byterange||r.byterange){var a=i.byterange,o=r.byterange;if(a&&!o||!a&&o)return!1;if(a.offset!==o.offset||a.length!==o.length)return!1}}return!0},Va=function(e,t){var n=Boolean(!e.map&&!t.map),i=n||Boolean(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length);return i&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length},za=function(e,t){var n={};for(var i in e){var r=e[i],a=r.sidx;if(a){var o=(0,T.generateSidxKey)(a);if(!t[o])break;var s=t[o].sidxInfo;Va(s,a)&&(n[o]=t[o])}}return n},qa=function(e){function t(t,n,i,r){var a;void 0===i&&(i={}),a=e.call(this)||this,a.masterPlaylistLoader_=r||(0,l.default)(a),r||(a.isMaster_=!0);var o=i,s=o.withCredentials,u=void 0!==s&&s,c=o.handleManifestRedirects,d=void 0!==c&&c;if(a.vhs_=n,a.withCredentials=u,a.handleManifestRedirects=d,!t)throw new Error("A non-empty playlist URL or object is required");return a.on("minimumUpdatePeriod",(function(){a.refreshXml_()})),a.on("mediaupdatetimeout",(function(){a.refreshMedia_(a.media().id)})),a.state="HAVE_NOTHING",a.loadedPlaylists_={},a.logger_=Nr("DashPlaylistLoader"),a.isMaster_?(a.masterPlaylistLoader_.srcUrl=t,a.masterPlaylistLoader_.sidxMapping_={}):a.childPlaylist_=t,a}(0,d.default)(t,e);var n=t.prototype;return n.requestErrored_=function(e,t,n){return!this.request||(this.request=null,e?(this.error="object"!==(0,r.default)(e)||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2}:e,n&&(this.state=n),this.trigger("error"),!0):void 0)},n.addSidxSegments_=function(e,t,n){var i=this,r=e.sidx&&(0,T.generateSidxKey)(e.sidx);if(e.sidx&&r&&!this.masterPlaylistLoader_.sidxMapping_[r]){var a=Rr(this.handleManifestRedirects,e.sidx.resolvedUri),s=function(a,o){if(!i.requestErrored_(a,o,t)){var s,u=i.masterPlaylistLoader_.sidxMapping_;try{s=(0,S.default)((0,w.toUint8)(o.response).subarray(8))}catch(c){return void i.requestErrored_(c,o,t)}return u[r]={sidxInfo:e.sidx,sidx:s},(0,T.addSidxSegmentsToPlaylist)(e,s,e.sidx.resolvedUri),n(!0)}};this.request=function(e,t,n){var i,r=[],a=!1,o=function(e,t,i,r){return t.abort(),a=!0,n(e,t,i,r)},s=function(e,t){if(!a){if(e)return o(e,t,"",r);var n=t.responseText.substring(r&&r.byteLength||0,t.responseText.length);if(r=(0,w.concatTypedArrays)(r,(0,w.stringToBytes)(n,!0)),i=i||(0,k.getId3Offset)(r),r.length<10||i&&r.length<i+2)return Ua(t,(function(){return o(e,t,"",r)}));var s=(0,x.detectContainerForBytes)(r);return"ts"===s&&r.length<188||!s&&r.length<376?Ua(t,(function(){return o(e,t,"",r)})):o(null,t,s,r)}},u={uri:e,beforeSend:function(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",(function(t){return t.total,t.loaded,Ca(e,null,{statusCode:e.status},s)}))}},c=t(u,(function(e,t){return Ca(c,e,t,s)}));return c}(a,this.vhs_.xhr,(function(t,n,r,o){if(t)return s(t,n);if(!r||"mp4"!==r)return s({status:n.status,message:"Unsupported "+(r||"unknown")+" container type for sidx segment at URL: "+a,response:"",playlist:e,internal:!0,blacklistDuration:1/0,code:2},n);var u=e.sidx.byterange,c=u.offset,l=u.length;if(o.length>=l+c)return s(t,{response:o.subarray(c,c+l),status:n.status,uri:n.uri});i.request=i.vhs_.xhr({uri:a,responseType:"arraybuffer",headers:Aa({byterange:e.sidx.byterange})},s)}))}else this.mediaRequest_=o.default.setTimeout((function(){return n(!1)}),0)},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},o.default.clearTimeout(this.minimumUpdatePeriodTimeout_),o.default.clearTimeout(this.mediaRequest_),o.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},n.hasPendingRequest=function(){return this.request||this.mediaRequest_},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"===typeof e){if(!this.masterPlaylistLoader_.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.masterPlaylistLoader_.master.playlists[e]}var i=!this.media_||e.id!==this.media_.id;if(i&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,n,(function(i){t.haveMetadata({startingState:n,playlist:e})})))},n.haveMetadata=function(e){var t=e.startingState,n=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,this.mediaRequest_=null,this.refreshMedia_(n.id),"HAVE_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")},n.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),o.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(o.default.clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},n.load=function(e){var t=this;o.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var n=this.media();if(e){var i=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=o.default.setTimeout((function(){return t.load()}),i)}else this.started?n&&!n.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()},n.start=function(){var e=this;this.started=!0,this.isMaster_?this.requestMaster_((function(t,n){e.haveMaster_(),e.hasPendingRequest()||e.media_||e.media(e.masterPlaylistLoader_.master.playlists[0])})):this.mediaRequest_=o.default.setTimeout((function(){return e.haveMaster_()}),0)},n.requestMaster_=function(e){var t=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},(function(n,i){if(!t.requestErrored_(n,i)){var r=i.responseText!==t.masterPlaylistLoader_.masterXml_;return t.masterPlaylistLoader_.masterXml_=i.responseText,i.responseHeaders&&i.responseHeaders.date?t.masterLoaded_=Date.parse(i.responseHeaders.date):t.masterLoaded_=Date.now(),t.masterPlaylistLoader_.srcUrl=Rr(t.handleManifestRedirects,t.masterPlaylistLoader_.srcUrl,i),r?(t.handleMaster_(),void t.syncClientServerClock_((function(){return e(i,r)}))):e(i,r)}"HAVE_NOTHING"===t.state&&(t.started=!1)}))},n.syncClientServerClock_=function(e){var t=this,n=(0,T.parseUTCTiming)(this.masterPlaylistLoader_.masterXml_);return null===n?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),e()):"DIRECT"===n.method?(this.masterPlaylistLoader_.clientOffset_=n.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:Dr(this.masterPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},(function(i,r){if(t.request){if(i)return t.masterPlaylistLoader_.clientOffset_=t.masterLoaded_-Date.now(),e();var a;a="HEAD"===n.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):t.masterLoaded_:Date.parse(r.responseText),t.masterPlaylistLoader_.clientOffset_=a-Date.now(),e()}})))},n.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},n.handleMaster_=function(){this.mediaRequest_=null;var e=this.masterPlaylistLoader_.master,t=function(e){var t=e.masterXml,n=e.srcUrl,i=e.clientOffset,r=e.sidxMapping,a=e.previousManifest,o=(0,T.parse)(t,{manifestUri:n,clientOffset:i,sidxMapping:r,previousManifest:a});return pa(o,n),o}({masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:e});e&&(t=function(e,t,n){for(var i=!0,r=$a(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts}),a=0;a<t.playlists.length;a++){var o=t.playlists[a];if(o.sidx){var s=(0,T.generateSidxKey)(o.sidx);n&&n[s]&&n[s].sidx&&(0,T.addSidxSegmentsToPlaylist)(o,n[s].sidx,o.sidx.resolvedUri)}var u=wa(r,o,Ha);u&&(r=u,i=!1)}return fa(t,(function(e,t,n,a){if(e.playlists&&e.playlists.length){var o=e.playlists[0].id,s=wa(r,e.playlists[0],Ha);s&&(r=s,r.mediaGroups[t][n][a].playlists[0]=r.playlists[o],i=!1)}})),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(i=!1),i?null:r}(e,t,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=t||e;var n=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return n&&n!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=n),(!e||t&&t.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(t)},n.updateMinimumUpdatePeriodTimeout_=function(){var e=this.masterPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(o.default.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);var t=e.master&&e.master.minimumUpdatePeriod;0===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!==typeof t||t<=0?t<0&&this.logger_("found invalid minimumUpdatePeriod of "+t+", not setting a timeout"):this.createMUPTimeout_(t)},n.createMUPTimeout_=function(e){var t=this.masterPlaylistLoader_;t.minimumUpdatePeriodTimeout_=o.default.setTimeout((function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)}),e)},n.refreshXml_=function(){var e=this;this.requestMaster_((function(t,n){n&&(e.media_&&(e.media_=e.masterPlaylistLoader_.master.playlists[e.media_.id]),e.masterPlaylistLoader_.sidxMapping_=function(e,t){var n=za(e.playlists,t),i=n;return fa(e,(function(e,n,r,a){if(e.playlists&&e.playlists.length){var o=e.playlists;i=$a(i,za(o,t))}})),i}(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.sidxMapping_),e.addSidxSegments_(e.media(),e.state,(function(t){e.refreshMedia_(e.media().id)})))}))},n.refreshMedia_=function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var n=this.masterPlaylistLoader_.master.playlists,i=!this.media_||this.media_!==n[e];if(i?this.media_=n[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){(function e(){t.media().endList||(t.mediaUpdateTimeout=o.default.setTimeout((function(){t.trigger("mediaupdatetimeout"),e()}),Ta(t.media(),Boolean(i))))})()}this.trigger("loadedplaylist")},t}(Fa),Wa={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},Ga=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},Ya=function(e){return function(){var t=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(n){var t=new BlobBuilder;return t.append(e),URL.createObjectURL(t.getBlob())}}(e),n=Ga(new Worker(t));n.objURL=t;var i=n.terminate;return n.on=n.addEventListener,n.off=n.removeEventListener,n.terminate=function(){return URL.revokeObjectURL(t),i.call(this)},n}},Xa=function(e){return"var browserWorkerPolyFill = "+Ga.toString()+";\nbrowserWorkerPolyFill(self);\n"+e},Ka=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},Qa=Xa(Ka((function(){var t=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var i;return!!e[t]&&(i=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(i,1),i>-1)},this.trigger=function(t){var n,i,r,a;if(n=e[t],n)if(2===arguments.length)for(r=n.length,i=0;i<r;++i)n[i].call(this,arguments[1]);else{for(a=[],i=arguments.length,i=1;i<arguments.length;++i)a.push(arguments[i]);for(r=n.length,i=0;i<r;++i)n[i].apply(this,a)}},this.dispose=function(){e={}}}};t.prototype.pipe=function(e){return this.on("data",(function(t){e.push(t)})),this.on("done",(function(t){e.flush(t)})),this.on("partialdone",(function(t){e.partialFlush(t)})),this.on("endedtimeline",(function(t){e.endTimeline(t)})),this.on("reset",(function(t){e.reset(t)})),e},t.prototype.push=function(e){this.trigger("data",e)},t.prototype.flush=function(e){this.trigger("done",e)},t.prototype.partialFlush=function(e){this.trigger("partialdone",e)},t.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},t.prototype.reset=function(e){this.trigger("reset",e)};var n,i,a,o,s,u,c,l,d,f,h,p,g,v,m,y,b,_,w,T,S,k,x,C,E,A,O,j,I,P,M,L,D,R,N,B,U=t,F=Math.pow(2,32),$={getUint64:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.getBigUint64?(t=n.getBigUint64(0),t<Number.MAX_SAFE_INTEGER?Number(t):t):n.getUint32(0)*F+n.getUint32(4)},MAX_UINT32:F},H=$.MAX_UINT32;(function(){var e;if(x={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!==typeof Uint8Array){for(e in x)x.hasOwnProperty(e)&&(x[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);C=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),A=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),E=new Uint8Array([0,0,0,1]),O=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),j=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),I={video:O,audio:j},L=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),M=new Uint8Array([0,0,0,0,0,0,0,0]),D=new Uint8Array([0,0,0,0,0,0,0,0]),R=D,N=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),B=D,P=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),n=function(e){var t,n,i,r=[],a=0;for(t=1;t<arguments.length;t++)r.push(arguments[t]);t=r.length;while(t--)a+=r[t].byteLength;for(n=new Uint8Array(a+8),i=new DataView(n.buffer,n.byteOffset,n.byteLength),i.setUint32(0,n.byteLength),n.set(e,4),t=0,a=8;t<r.length;t++)n.set(r[t],a),a+=r[t].byteLength;return n},i=function(){return n(x.dinf,n(x.dref,L))},a=function(e){return n(x.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},o=function(){return n(x.ftyp,C,E,C,A)},y=function(e){return n(x.hdlr,I[e])},s=function(e){return n(x.mdat,e)},m=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),n(x.mdhd,t)},v=function(e){return n(x.mdia,m(e),y(e.type),c(e))},u=function(e){return n(x.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},c=function(e){return n(x.minf,"video"===e.type?n(x.vmhd,P):n(x.smhd,M),i(),_(e))},l=function(e,t){var i=[],r=t.length;while(r--)i[r]=T(t[r]);return n.apply(null,[x.moof,u(e)].concat(i))},d=function(e){var t=e.length,i=[];while(t--)i[t]=p(e[t]);return n.apply(null,[x.moov,h(4294967295)].concat(i).concat(f(e)))},f=function(e){var t=e.length,i=[];while(t--)i[t]=S(e[t]);return n.apply(null,[x.mvex].concat(i))},h=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return n(x.mvhd,t)},b=function(e){var t,i,r=e.samples||[],a=new Uint8Array(4+r.length);for(i=0;i<r.length;i++)t=r[i].flags,a[i+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return n(x.sdtp,a)},_=function(e){return n(x.stbl,w(e),n(x.stts,B),n(x.stsc,R),n(x.stsz,N),n(x.stco,D))},function(){var e,t;w=function(i){return n(x.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===i.type?e(i):t(i))},e=function(e){var t,i,r=e.sps||[],a=e.pps||[],o=[],s=[];for(t=0;t<r.length;t++)o.push((65280&r[t].byteLength)>>>8),o.push(255&r[t].byteLength),o=o.concat(Array.prototype.slice.call(r[t]));for(t=0;t<a.length;t++)s.push((65280&a[t].byteLength)>>>8),s.push(255&a[t].byteLength),s=s.concat(Array.prototype.slice.call(a[t]));if(i=[x.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),n(x.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length],o,[a.length],s))),n(x.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var u=e.sarRatio[0],c=e.sarRatio[1];i.push(n(x.pasp,new Uint8Array([(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u,(4278190080&c)>>24,(16711680&c)>>16,(65280&c)>>8,255&c])))}return n.apply(null,i)},t=function(e){return n(x.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),a(e))}}(),g=function(e){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return n(x.tkhd,t)},T=function(e){var t,i,r,a,o,s;return t=n(x.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),o=Math.floor(e.baseMediaDecodeTime/H),s=Math.floor(e.baseMediaDecodeTime%H),i=n(x.tfdt,new Uint8Array([1,0,0,0,o>>>24&255,o>>>16&255,o>>>8&255,255&o,s>>>24&255,s>>>16&255,s>>>8&255,255&s])),92,"audio"===e.type?(r=k(e,92),n(x.traf,t,i,r)):(a=b(e),r=k(e,a.length+92),n(x.traf,t,i,r,a))},p=function(e){return e.duration=e.duration||4294967295,n(x.trak,g(e),v(e))},S=function(e){var t=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),n(x.trex,t)},function(){var e,t,i;i=function(e,t){var n=0,i=0,r=0,a=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(i=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,n|i|r|a,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},t=function(e,t){var r,a,o,s,u,c;for(s=e.samples||[],t+=20+16*s.length,o=i(s,t),a=new Uint8Array(o.length+16*s.length),a.set(o),r=o.length,c=0;c<s.length;c++)u=s[c],a[r++]=(4278190080&u.duration)>>>24,a[r++]=(16711680&u.duration)>>>16,a[r++]=(65280&u.duration)>>>8,a[r++]=255&u.duration,a[r++]=(4278190080&u.size)>>>24,a[r++]=(16711680&u.size)>>>16,a[r++]=(65280&u.size)>>>8,a[r++]=255&u.size,a[r++]=u.flags.isLeading<<2|u.flags.dependsOn,a[r++]=u.flags.isDependedOn<<6|u.flags.hasRedundancy<<4|u.flags.paddingValue<<1|u.flags.isNonSyncSample,a[r++]=61440&u.flags.degradationPriority,a[r++]=15&u.flags.degradationPriority,a[r++]=(4278190080&u.compositionTimeOffset)>>>24,a[r++]=(16711680&u.compositionTimeOffset)>>>16,a[r++]=(65280&u.compositionTimeOffset)>>>8,a[r++]=255&u.compositionTimeOffset;return n(x.trun,a)},e=function(e,t){var r,a,o,s,u,c;for(s=e.samples||[],t+=20+8*s.length,o=i(s,t),r=new Uint8Array(o.length+8*s.length),r.set(o),a=o.length,c=0;c<s.length;c++)u=s[c],r[a++]=(4278190080&u.duration)>>>24,r[a++]=(16711680&u.duration)>>>16,r[a++]=(65280&u.duration)>>>8,r[a++]=255&u.duration,r[a++]=(4278190080&u.size)>>>24,r[a++]=(16711680&u.size)>>>16,r[a++]=(65280&u.size)>>>8,r[a++]=255&u.size;return n(x.trun,r)},k=function(n,i){return"audio"===n.type?e(n,i):t(n,i)}}();var V,z,q,W,G,Y,X,K,Q={ftyp:o,mdat:s,moof:l,moov:d,initSegment:function(e){var t,n=o(),i=d(e);return t=new Uint8Array(n.byteLength+i.byteLength),t.set(n),t.set(i,n.byteLength),t}},J=function(e,t){var n=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}}();return n.dataOffset=t,n.compositionTimeOffset=e.pts-e.dts,n.duration=e.duration,n.size=4*e.length,n.size+=e.byteLength,e.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},Z={groupNalsIntoFrames:function(e){var t,n,i=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,i.byteLength=0,t=0;t<e.length;t++)n=e[t],"access_unit_delimiter_rbsp"===n.nalUnitType?(i.length&&(i.duration=n.dts-i.dts,r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i)),i=[n],i.byteLength=n.data.byteLength,i.pts=n.pts,i.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(i.keyFrame=!0),i.duration=n.dts-i.dts,i.byteLength+=n.data.byteLength,i.push(n));return r.length&&(!i.duration||i.duration<=0)&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i),r},groupFramesIntoGops:function(e){var t,n,i=[],r=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=e[0].pts,i.dts=e[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,t=0;t<e.length;t++)n=e[t],n.keyFrame?(i.length&&(r.push(i),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration),i=[n],i.nalCount=n.length,i.byteLength=n.byteLength,i.pts=n.pts,i.dts=n.dts,i.duration=n.duration):(i.duration+=n.duration,i.nalCount+=n.length,i.byteLength+=n.byteLength,i.push(n));return r.length&&i.duration<=0&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration,r.push(i),r},extendFirstKeyFrame:function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},generateSampleTable:function(e,t){var n,i,r,a,o,s=t||0,u=[];for(n=0;n<e.length;n++)for(a=e[n],i=0;i<a.length;i++)o=a[i],r=J(o,s),s+=r.size,u.push(r);return u},concatenateNalData:function(e){var t,n,i,r,a,o,s=0,u=e.byteLength,c=e.nalCount,l=u+4*c,d=new Uint8Array(l),f=new DataView(d.buffer);for(t=0;t<e.length;t++)for(r=e[t],n=0;n<r.length;n++)for(a=r[n],i=0;i<a.length;i++)o=a[i],f.setUint32(s,o.data.byteLength),s+=4,d.set(o.data,s),s+=o.data.byteLength;return d},generateSampleTableForFrame:function(e,t){var n,i=t||0,r=[];return n=J(e,i),r.push(n),r},concatenateNalDataForFrame:function(e){var t,n,i=0,r=e.byteLength,a=e.length,o=r+4*a,s=new Uint8Array(o),u=new DataView(s.buffer);for(t=0;t<e.length;t++)n=e[t],u.setUint32(i,n.data.byteLength),i+=4,s.set(n.data,i),i+=n.data.byteLength;return s}},ee=[33,16,5,32,164,27],te=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],ne=function(e){var t=[];while(e--)t.push(0);return t},ie=function(){if(!V){var e={96e3:[ee,[227,64],ne(154),[56]],88200:[ee,[231],ne(170),[56]],64e3:[ee,[248,192],ne(240),[56]],48e3:[ee,[255,192],ne(268),[55,148,128],ne(54),[112]],44100:[ee,[255,192],ne(268),[55,163,128],ne(84),[112]],32e3:[ee,[255,192],ne(268),[55,234],ne(226),[112]],24e3:[ee,[255,192],ne(268),[55,255,128],ne(268),[111,112],ne(126),[224]],16e3:[ee,[255,192],ne(268),[55,255,128],ne(268),[111,255],ne(269),[223,108],ne(195),[1,192]],12e3:[te,ne(268),[3,127,248],ne(268),[6,255,240],ne(268),[13,255,224],ne(268),[27,253,128],ne(259),[56]],11025:[te,ne(268),[3,127,248],ne(268),[6,255,240],ne(268),[13,255,224],ne(268),[27,255,192],ne(268),[55,175,128],ne(108),[112]],8e3:[te,ne(268),[3,121,16],ne(47),[7]]};V=function(e){return Object.keys(e).reduce((function(t,n){return t[n]=new Uint8Array(e[n].reduce((function(e,t){return e.concat(t)}),[])),t}),{})}(e)}return V};z=function(e){return 9e4*e},q=function(e,t){return e*t},W=function(e){return e/9e4},G=function(e,t){return e/t},Y=function(e,t){return z(G(e,t))},X=function(e,t){return q(W(e),t)},K=function(e,t,n){return W(n?e:e-t)};var re={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:z,secondsToAudioTs:q,videoTsToSeconds:W,audioTsToSeconds:G,audioTsToVideoTs:Y,videoTsToAudioTs:X,metadataTsToSeconds:K},ae={prefixWithSilence:function(e,t,n,i){var r,a,o,s,u,c=0,l=0,d=0;if(t.length&&(r=re.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),a=Math.ceil(re.ONE_SECOND_IN_TS/(e.samplerate/1024)),n&&i&&(c=r-Math.max(n,i),l=Math.floor(c/a),d=l*a),!(l<1||d>re.ONE_SECOND_IN_TS/2))){for(o=ie()[e.samplerate],o||(o=t[0].data),s=0;s<l;s++)u=t[0],t.splice(0,0,{data:o,dts:u.dts-a,pts:u.pts-a});return e.baseMediaDecodeTime-=Math.floor(re.videoTsToAudioTs(d,e.samplerate)),d}},trimAdtsFramesByEarliestDts:function(e,t,n){return t.minSegmentDts>=n?e:(t.minSegmentDts=1/0,e.filter((function(e){return e.dts>=n&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)})))},generateSampleTable:function(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t],i.push({size:n.data.byteLength,duration:1024});return i},concatenateFrameData:function(e){var t,n,i=0,r=new Uint8Array(function(e){var t,n,i=0;for(t=0;t<e.length;t++)n=e[t],i+=n.data.byteLength;return i}(e));for(t=0;t<e.length;t++)n=e[t],r.set(n.data,i),i+=n.data.byteLength;return r}},oe=re.ONE_SECOND_IN_TS,se={clearDtsInfo:function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},calculateTrackBaseMediaDecodeTime:function(e,t){var n,i,r=e.minSegmentDts;return t||(r-=e.timelineStartInfo.dts),n=e.timelineStartInfo.baseMediaDecodeTime,n+=r,n=Math.max(0,n),"audio"===e.type&&(i=e.samplerate/oe,n*=i,n=Math.floor(n)),n},collectDtsInfo:function(e,t){"number"===typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"===typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))}},ue={parseSei:function(e){var t=0,n={payloadType:-1,payloadSize:0},i=0,r=0;while(t<e.byteLength){if(128===e[t])break;while(255===e[t])i+=255,t++;i+=e[t++];while(255===e[t])r+=255,t++;if(r+=e[t++],!n.payload&&4===i){var a=String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6]);if("GA94"===a){n.payloadType=i,n.payloadSize=r,n.payload=e.subarray(t,t+r);break}n.payload=void 0}t+=r,i=0,r=0}return n},parseUserData:function(e){return 181!==e.payload[0]||49!==(e.payload[1]<<8|e.payload[2])||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},parseCaptionPackets:function(e,t){var n,i,r,a,o=[];if(!(64&t[0]))return o;for(i=31&t[0],n=0;n<i;n++)r=3*n,a={type:3&t[r+2],pts:e},4&t[r+2]&&(a.ccData=t[r+3]<<8|t[r+4],o.push(a));return o},discardEmulationPreventionBytes:function(e){var t,n,i=e.byteLength,r=[],a=1;while(a<i-2)0===e[a]&&0===e[a+1]&&3===e[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return e;t=i-r.length,n=new Uint8Array(t);var o=0;for(a=0;a<t;o++,a++)o===r[0]&&(o++,r.shift()),n[a]=e[o];return n},USER_DATA_REGISTERED_ITU_T_T35:4},ce=function e(t){t=t||{},e.prototype.init.call(this),this.parse708captions_="boolean"!==typeof t.parse708captions||t.parse708captions,this.captionPackets_=[],this.ccStreams_=[new be(0,0),new be(0,1),new be(1,0),new be(1,1)],this.parse708captions_&&(this.cc708Stream_=new pe({captionServices:t.captionServices})),this.reset(),this.ccStreams_.forEach((function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))}),this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};ce.prototype=new U,ce.prototype.push=function(e){var t,n,i;if("sei_rbsp"===e.nalUnitType&&(t=ue.parseSei(e.escapedRBSP),t.payload&&t.payloadType===ue.USER_DATA_REGISTERED_ITU_T_T35&&(n=ue.parseUserData(t),n)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));i=ue.parseCaptionPackets(e.pts,n),this.captionPackets_=this.captionPackets_.concat(i),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},ce.prototype.flushCCStreams=function(e){this.ccStreams_.forEach((function(t){return"flush"===e?t.flush():t.partialFlush()}),this)},ce.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach((function(e,t){e.presortIndex=t})),this.captionPackets_.sort((function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts})),this.captionPackets_.forEach((function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)}),this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},ce.prototype.flush=function(){return this.flushStream("flush")},ce.prototype.partialFlush=function(){return this.flushStream("partialFlush")},ce.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(e){e.reset()}))},ce.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},ce.prototype.setsChannel1Active=function(e){return 4096===(30720&e.ccData)},ce.prototype.setsChannel2Active=function(e){return 6144===(30720&e.ccData)},ce.prototype.setsTextOrXDSActive=function(e){return 256===(28928&e.ccData)||4138===(30974&e.ccData)||6186===(30974&e.ccData)},ce.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var le={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},de=function(e){return 32<=e&&e<=127||160<=e&&e<=255},fe=function(e){this.windowNum=e,this.reset()};fe.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},fe.prototype.getText=function(){return this.rows.join("\n")},fe.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},fe.prototype.newLine=function(e){this.rows.length>=this.virtualRowCount&&"function"===typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);while(this.rows.length>this.virtualRowCount)this.rows.shift(),this.rowIdx--},fe.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},fe.prototype.addText=function(e){this.rows[this.rowIdx]+=e},fe.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var he=function(e,t,n){this.serviceNum=e,this.text="",this.currentWindow=new fe(-1),this.windows=[],this.stream=n,"string"===typeof t&&this.createTextDecoder(t)};he.prototype.init=function(e,t){this.startPts=e;for(var n=0;n<8;n++)this.windows[n]=new fe(n),"function"===typeof t&&(this.windows[n].beforeRowOverflow=t)},he.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},he.prototype.createTextDecoder=function(e){if("undefined"===typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var pe=function e(t){t=t||{},e.prototype.init.call(this);var n,i=this,r=t.captionServices||{},a={};Object.keys(r).forEach((function(e){n=r[e],/^SERVICE/.test(e)&&(a[e]=n.encoding)})),this.serviceEncodings=a,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(i.new708Packet(),i.add708Bytes(e)):(null===i.current708Packet&&i.new708Packet(),i.add708Bytes(e))}};pe.prototype=new U,pe.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},pe.prototype.add708Bytes=function(e){var t=e.ccData,n=t>>>8,i=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(n),this.current708Packet.data.push(i)},pe.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,n=null,i=null,r=0,a=t[r++];for(e.seq=a>>6,e.sizeCode=63&a;r<t.length;r++)a=t[r++],n=a>>5,i=31&a,7===n&&i>0&&(a=t[r++],n=a),this.pushServiceBlock(n,r,i),i>0&&(r+=i-1)},pe.prototype.pushServiceBlock=function(e,t,n){var i,r=t,a=this.current708Packet.data,o=this.services[e];for(o||(o=this.initService(e,r));r<t+n&&r<a.length;r++)i=a[r],de(i)?r=this.handleText(r,o):24===i?r=this.multiByteCharacter(r,o):16===i?r=this.extendedCommands(r,o):128<=i&&i<=135?r=this.setCurrentWindow(r,o):152<=i&&i<=159?r=this.defineWindow(r,o):136===i?r=this.clearWindows(r,o):140===i?r=this.deleteWindows(r,o):137===i?r=this.displayWindows(r,o):138===i?r=this.hideWindows(r,o):139===i?r=this.toggleWindows(r,o):151===i?r=this.setWindowAttributes(r,o):144===i?r=this.setPenAttributes(r,o):145===i?r=this.setPenColor(r,o):146===i?r=this.setPenLocation(r,o):143===i?o=this.reset(r,o):8===i?o.currentWindow.backspace():12===i?o.currentWindow.clearText():13===i?o.currentWindow.pendingNewLine=!0:14===i?o.currentWindow.clearText():141===i&&r++},pe.prototype.extendedCommands=function(e,t){var n=this.current708Packet.data,i=n[++e];return de(i)&&(e=this.handleText(e,t,{isExtended:!0})),e},pe.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},pe.prototype.initService=function(e,t){var n,i="SERVICE"+e,r=this;return i in this.serviceEncodings&&(n=this.serviceEncodings[i]),this.services[e]=new he(e,n,r),this.services[e].init(this.getPts(t),(function(t){r.flushDisplayed(t,r.services[e])})),this.services[e]},pe.prototype.handleText=function(e,t,n){var i,r,a=n&&n.isExtended,o=n&&n.isMultiByte,s=this.current708Packet.data,u=a?4096:0,c=s[e],l=s[e+1],d=t.currentWindow;return t.textDecoder_&&!a?(o?(r=[c,l],e++):r=[c],i=t.textDecoder_.decode(new Uint8Array(r))):i=function(e){var t=le[e]||e;return 4096&e&&e===t?"":String.fromCharCode(t)}(u|c),d.pendingNewLine&&!d.isEmpty()&&d.newLine(this.getPts(e)),d.pendingNewLine=!1,d.addText(i),e},pe.prototype.multiByteCharacter=function(e,t){var n=this.current708Packet.data,i=n[e+1],r=n[e+2];return de(i)&&de(r)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},pe.prototype.setCurrentWindow=function(e,t){var n=this.current708Packet.data,i=n[e],r=7&i;return t.setCurrentWindow(r),e},pe.prototype.defineWindow=function(e,t){var n=this.current708Packet.data,i=n[e],r=7&i;t.setCurrentWindow(r);var a=t.currentWindow;return i=n[++e],a.visible=(32&i)>>5,a.rowLock=(16&i)>>4,a.columnLock=(8&i)>>3,a.priority=7&i,i=n[++e],a.relativePositioning=(128&i)>>7,a.anchorVertical=127&i,i=n[++e],a.anchorHorizontal=i,i=n[++e],a.anchorPoint=(240&i)>>4,a.rowCount=15&i,i=n[++e],a.columnCount=63&i,i=n[++e],a.windowStyle=(56&i)>>3,a.penStyle=7&i,a.virtualRowCount=a.rowCount+1,e},pe.prototype.setWindowAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.winAttr;return i=n[++e],r.fillOpacity=(192&i)>>6,r.fillRed=(48&i)>>4,r.fillGreen=(12&i)>>2,r.fillBlue=3&i,i=n[++e],r.borderType=(192&i)>>6,r.borderRed=(48&i)>>4,r.borderGreen=(12&i)>>2,r.borderBlue=3&i,i=n[++e],r.borderType+=(128&i)>>5,r.wordWrap=(64&i)>>6,r.printDirection=(48&i)>>4,r.scrollDirection=(12&i)>>2,r.justify=3&i,i=n[++e],r.effectSpeed=(240&i)>>4,r.effectDirection=(12&i)>>2,r.displayEffect=3&i,e},pe.prototype.flushDisplayed=function(e,t){for(var n=[],i=0;i<8;i++)t.windows[i].visible&&!t.windows[i].isEmpty()&&n.push(t.windows[i].getText());t.endPts=e,t.text=n.join("\n\n"),this.pushCaption(t),t.startPts=e},pe.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},pe.prototype.displayWindows=function(e,t){var n=this.current708Packet.data,i=n[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)i&1<<a&&(t.windows[a].visible=1);return e},pe.prototype.hideWindows=function(e,t){var n=this.current708Packet.data,i=n[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)i&1<<a&&(t.windows[a].visible=0);return e},pe.prototype.toggleWindows=function(e,t){var n=this.current708Packet.data,i=n[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)i&1<<a&&(t.windows[a].visible^=1);return e},pe.prototype.clearWindows=function(e,t){var n=this.current708Packet.data,i=n[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)i&1<<a&&t.windows[a].clearText();return e},pe.prototype.deleteWindows=function(e,t){var n=this.current708Packet.data,i=n[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)i&1<<a&&t.windows[a].reset();return e},pe.prototype.setPenAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penAttr;return i=n[++e],r.textTag=(240&i)>>4,r.offset=(12&i)>>2,r.penSize=3&i,i=n[++e],r.italics=(128&i)>>7,r.underline=(64&i)>>6,r.edgeType=(56&i)>>3,r.fontStyle=7&i,e},pe.prototype.setPenColor=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penColor;return i=n[++e],r.fgOpacity=(192&i)>>6,r.fgRed=(48&i)>>4,r.fgGreen=(12&i)>>2,r.fgBlue=3&i,i=n[++e],r.bgOpacity=(192&i)>>6,r.bgRed=(48&i)>>4,r.bgGreen=(12&i)>>2,r.bgBlue=3&i,i=n[++e],r.edgeRed=(48&i)>>4,r.edgeGreen=(12&i)>>2,r.edgeBlue=3&i,e},pe.prototype.setPenLocation=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,i=n[++e],r.row=15&i,i=n[++e],r.column=63&i,e},pe.prototype.reset=function(e,t){var n=this.getPts(e);return this.flushDisplayed(n,t),this.initService(t.serviceNum,e)};var ge={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},ve=function(e){return null===e?"":(e=ge[e]||e,String.fromCharCode(e))},me=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],ye=function(){var e=[],t=15;while(t--)e.push("");return e},be=function e(t,n){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,i,r,a;if(t=32639&e.ccData,t!==this.lastControlCode_){if(4096===(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),i=t>>>8,r=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=ye();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=ye();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=ye()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(i,r))i=(3&i)<<8,a=ve(i|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(i,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),i=(3&i)<<8,a=ve(i|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isMidRowCode(i,r))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14===(14&r)&&this.addFormatting(e.pts,["i"]),1===(1&r)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(i,r))this.column_+=3&r;else if(this.isPAC(i,r)){var o=me.indexOf(7968&t);"rollUp"===this.mode_&&(o-this.rollUpRows_+1<0&&(o=this.rollUpRows_-1),this.setRollUp(e.pts,o)),o!==this.row_&&(this.clearFormatting(e.pts),this.row_=o),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16===(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(r)&&14===(14&r)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(i)&&(0===r&&(r=null),a=ve(i),a+=ve(r),this[this.mode_](e.pts,a),this.column_+=a.length)}else this.lastControlCode_=null}};be.prototype=new U,be.prototype.flushDisplayed=function(e){var t=this.displayed_.map((function(e,t){try{return e.trim()}catch(n){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."}),""}}),this).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},be.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=ye(),this.nonDisplayed_=ye(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},be.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},be.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},be.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},be.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},be.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},be.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},be.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},be.prototype.isNormalChar=function(e){return e>=32&&e<=127},be.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=ye(),this.displayed_=ye()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},be.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var n=t.reduce((function(e,t){return e+"<"+t+">"}),"");this[this.mode_](e,n)},be.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce((function(e,t){return e+"</"+t+">"}),"");this.formatting_=[],this[this.mode_](e,t)}},be.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];n+=t,this.nonDisplayed_[this.row_]=n},be.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},be.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<15;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},be.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n};var _e={CaptionStream:ce,Cea608Stream:be,Cea708Stream:pe},we={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Te=function(e,t){var n=1;e>t&&(n=-1);while(Math.abs(t-e)>4294967296)e+=8589934592*n;return e},Se=function e(t){var n,i;e.prototype.init.call(this),this.type_=t||"shared",this.push=function(e){"shared"!==this.type_&&e.type!==this.type_||(void 0===i&&(i=e.dts),e.dts=Te(e.dts,i),e.pts=Te(e.pts,i),n=e.dts,this.trigger("data",e))},this.flush=function(){i=n,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){i=void 0,n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Se.prototype=new U;var ke,xe={TimestampRolloverStream:Se,handleRollover:Te},Ce=function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r},Ee=function(e,t,n){return decodeURIComponent(Ce(e,t,n))},Ae=function(e,t,n){return unescape(Ce(e,t,n))},Oe=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},je={TXXX:function(e){var t;if(3===e.data[0]){for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Ee(e.data,1,t),e.value=Ee(e.data,t+1,e.data.length).replace(/\0*$/,"");break}e.data=e.value}},WXXX:function(e){var t;if(3===e.data[0])for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Ee(e.data,1,t),e.url=Ee(e.data,t+1,e.data.length);break}},PRIV:function(e){var t;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=Ae(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}};ke=function(e){var t,n={descriptor:e&&e.descriptor},i=0,r=[],a=0;if(ke.prototype.init.call(this),this.dispatchType=we.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(t=0;t<n.descriptor.length;t++)this.dispatchType+=("00"+n.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,n,o,s,u,c;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(a=0,r.length=0),0===r.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});else if(r.push(e),a+=e.data.byteLength,1===r.length&&(i=Oe(e.data.subarray(6,10)),i+=10),!(a<i)){for(t={data:new Uint8Array(i),frames:[],pts:r[0].pts,dts:r[0].dts},u=0;u<i;)t.data.set(r[0].data.subarray(0,i-u),u),u+=r[0].data.byteLength,a-=r[0].data.byteLength,r.shift();n=10,64&t.data[5]&&(n+=4,n+=Oe(t.data.subarray(10,14)),i-=Oe(t.data.subarray(16,20)));do{if(o=Oe(t.data.subarray(n+4,n+8)),o<1)return void this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping metadata parsing."});if(c=String.fromCharCode(t.data[n],t.data[n+1],t.data[n+2],t.data[n+3]),s={id:c,data:t.data.subarray(n+10,n+o+10)},s.key=s.id,je[s.id]&&(je[s.id](s),"com.apple.streaming.transportStreamTimestamp"===s.owner)){var l=s.data,d=(1&l[3])<<30|l[4]<<22|l[5]<<14|l[6]<<6|l[7]>>>2;d*=4,d+=3&l[7],s.timeStamp=d,void 0===t.pts&&void 0===t.dts&&(t.pts=s.timeStamp,t.dts=s.timeStamp),this.trigger("timestamp",s)}t.frames.push(s),n+=10,n+=o}while(n<i);this.trigger("data",t)}}},ke.prototype=new U;var Ie,Pe,Me,Le=ke,De=xe.TimestampRolloverStream;Ie=function(){var e=new Uint8Array(188),t=0;Ie.prototype.init.call(this),this.push=function(n){var i,r=0,a=188;t?(i=new Uint8Array(n.byteLength+t),i.set(e.subarray(0,t)),i.set(n,t),t=0):i=n;while(a<i.byteLength)71!==i[r]||71!==i[a]?(r++,a++):(this.trigger("data",i.subarray(r,a)),r+=188,a+=188);r<i.byteLength&&(e.set(i.subarray(r),0),t=i.byteLength-r)},this.flush=function(){188===t&&71===e[0]&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}},Ie.prototype=new U,Pe=function(){var e,t,n,i;Pe.prototype.init.call(this),i=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,i){var r=0;i.payloadUnitStartIndicator&&(r+=e[r]+1),"pat"===i.type?t(e.subarray(r),i):n(e.subarray(r),i)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],i.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=i.pmtPid},n=function(e,t){var n,r,a,o;if(1&e[5]){i.programMapTable={video:null,audio:null,"timed-metadata":{}},n=(15&e[1])<<8|e[2],r=3+n-4,a=(15&e[10])<<8|e[11],o=12+a;while(o<r){var s=e[o],u=(31&e[o+1])<<8|e[o+2];s===we.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=u:s===we.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=u:s===we.METADATA_STREAM_TYPE&&(i.programMapTable["timed-metadata"][u]=s),o+=5+((15&e[o+3])<<8|e[o+4])}t.programMapTable=i.programMapTable}},this.push=function(t){var n={},i=4;if(n.payloadUnitStartIndicator=!!(64&t[1]),n.pid=31&t[1],n.pid<<=8,n.pid|=t[2],(48&t[3])>>>4>1&&(i+=t[i]+1),0===n.pid)n.type="pat",e(t.subarray(i),n),this.trigger("data",n);else if(n.pid===this.pmtPid){n.type="pmt",e(t.subarray(i),n),this.trigger("data",n);while(this.packetsWaitingForPmt.length)this.processPes_.apply(this,this.packetsWaitingForPmt.shift())}else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,i,n]):this.processPes_(t,i,n)},this.processPes_=function(e,t,n){n.pid===this.programMapTable.video?n.streamType=we.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=we.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}},Pe.prototype=new U,Pe.STREAM_TYPES={h264:27,adts:15},Me=function(){var e,t=this,n=!1,i={data:[],size:0},r={data:[],size:0},a={data:[],size:0},o=function(e,n,i){var r,a,o=new Uint8Array(e.size),s={type:n},u=0,c=0;if(e.data.length&&!(e.size<9)){for(s.trackId=e.data[0].pid,u=0;u<e.data.length;u++)a=e.data[u],o.set(a.data,c),c+=a.data.byteLength;(function(e,t){var n,i=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1===i&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=0!==(4&e[6]),n=e[7],192&n&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&n&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8]))})(o,s),r="video"===n||s.packetLength<=e.size,(i||r)&&(e.size=0,e.data.length=0),r&&t.trigger("data",s)}};Me.prototype.init.call(this),this.push=function(s){({pat:function(){},pes:function(){var e,t;switch(s.streamType){case we.H264_STREAM_TYPE:e=i,t="video";break;case we.ADTS_STREAM_TYPE:e=r,t="audio";break;case we.METADATA_STREAM_TYPE:e=a,t="timed-metadata";break;default:return}s.payloadUnitStartIndicator&&o(e,t,!0),e.data.push(s),e.size+=s.data.byteLength},pmt:function(){var i={type:"metadata",tracks:[]};e=s.programMapTable,null!==e.video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),n=!0,t.trigger("data",i)}})[s.type]()},this.reset=function(){i.size=0,i.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){o(i,"video"),o(r,"audio"),o(a,"timed-metadata")},this.flush=function(){if(!n&&e){var i={type:"metadata",tracks:[]};null!==e.video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",i)}n=!1,this.flushStreams_(),this.trigger("done")}},Me.prototype=new U;var Re={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:Ie,TransportParseStream:Pe,ElementaryStream:Me,TimestampRolloverStream:De,CaptionStream:_e.CaptionStream,Cea608Stream:_e.Cea608Stream,Cea708Stream:_e.Cea708Stream,MetadataStream:Le};for(var Ne in we)we.hasOwnProperty(Ne)&&(Re[Ne]=we[Ne]);var Be,Ue=Re,Fe=re.ONE_SECOND_IN_TS,$e=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];Be=function(e){var t,n=0;Be.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:"adts skiping bytes "+e+" to "+t+" in frame "+n+" outside syncword"})},this.push=function(i){var r,a,o,s,u,c=0;if(e||(n=0),"audio"===i.type){var l;t&&t.length?(o=t,t=new Uint8Array(o.byteLength+i.data.byteLength),t.set(o),t.set(i.data,o.byteLength)):t=i.data;while(c+7<t.length)if(255===t[c]&&240===(246&t[c+1])){if("number"===typeof l&&(this.skipWarn_(l,c),l=null),a=2*(1&~t[c+1]),r=(3&t[c+3])<<11|t[c+4]<<3|(224&t[c+5])>>5,s=1024*(1+(3&t[c+6])),u=s*Fe/$e[(60&t[c+2])>>>2],t.byteLength-c<r)break;this.trigger("data",{pts:i.pts+n*u,dts:i.dts+n*u,sampleCount:s,audioobjecttype:1+(t[c+2]>>>6&3),channelcount:(1&t[c+2])<<2|(192&t[c+3])>>>6,samplerate:$e[(60&t[c+2])>>>2],samplingfrequencyindex:(60&t[c+2])>>>2,samplesize:16,data:t.subarray(c+7+a,c+r)}),n++,c+=r}else"number"!==typeof l&&(l=c),c++;"number"===typeof l&&(this.skipWarn_(l,c),l=null),t=t.subarray(c)}},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}},Be.prototype=new U;var He,Ve=Be;He=function(e){var t=e.byteLength,n=0,i=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+i},this.loadWord=function(){var r=e.byteLength-t,a=new Uint8Array(4),o=Math.min(4,t);if(0===o)throw new Error("no bytes available");a.set(e.subarray(r,r+o)),n=new DataView(a.buffer).getUint32(0),i=8*o,t-=o},this.skipBits=function(e){var r;i>e?(n<<=e,i-=e):(e-=i,r=Math.floor(e/8),e-=8*r,t-=r,this.loadWord(),n<<=e,i-=e)},this.readBits=function(e){var r=Math.min(i,e),a=n>>>32-r;return i-=r,i>0?n<<=r:t>0&&this.loadWord(),r=e-r,r>0?a<<r|this.readBits(r):a},this.skipLeadingZeros=function(){var e;for(e=0;e<i;++e)if(0!==(n&2147483648>>>e))return n<<=e,i-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var ze,qe,We,Ge=He;qe=function(){var e,t,n=0;qe.prototype.init.call(this),this.push=function(i){var r;t?(r=new Uint8Array(t.byteLength+i.data.byteLength),r.set(t),r.set(i.data,t.byteLength),t=r):t=i.data;for(var a=t.byteLength;n<a-3;n++)if(1===t[n+2]){e=n+5;break}while(e<a)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}n+3!==e-2&&this.trigger("data",t.subarray(n+3,e-2));do{e++}while(1!==t[e]&&e<a);n=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(n+3,e-2)),n=e-2,e+=3;break;default:e+=3;break}t=t.subarray(n),e-=n,n=0},this.reset=function(){t=null,n=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(n+3)),t=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},qe.prototype=new U,We={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},ze=function(){var e,t,n,i,r,a,o,s=new qe;ze.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,i=e.dts,s.push(e))},s.on("data",(function(o){var s={trackId:t,pts:n,dts:i,data:o,nalUnitTypeCode:31&o[0]};switch(s.nalUnitTypeCode){case 5:s.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:s.nalUnitType="sei_rbsp",s.escapedRBSP=r(o.subarray(1));break;case 7:s.nalUnitType="seq_parameter_set_rbsp",s.escapedRBSP=r(o.subarray(1)),s.config=a(s.escapedRBSP);break;case 8:s.nalUnitType="pic_parameter_set_rbsp";break;case 9:s.nalUnitType="access_unit_delimiter_rbsp";break}e.trigger("data",s)})),s.on("done",(function(){e.trigger("done")})),s.on("partialdone",(function(){e.trigger("partialdone")})),s.on("reset",(function(){e.trigger("reset")})),s.on("endedtimeline",(function(){e.trigger("endedtimeline")})),this.flush=function(){s.flush()},this.partialFlush=function(){s.partialFlush()},this.reset=function(){s.reset()},this.endTimeline=function(){s.endTimeline()},o=function(e,t){var n,i,r=8,a=8;for(n=0;n<e;n++)0!==a&&(i=t.readExpGolomb(),a=(r+i+256)%256),r=0===a?r:a},r=function(e){var t,n,i=e.byteLength,r=[],a=1;while(a<i-2)0===e[a]&&0===e[a+1]&&3===e[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return e;t=i-r.length,n=new Uint8Array(t);var o=0;for(a=0;a<t;o++,a++)o===r[0]&&(o++,r.shift()),n[a]=e[o];return n},a=function(e){var t,n,i,r,a,s,u,c,l,d,f,h,p,g=0,v=0,m=0,y=0,b=[1,1];if(t=new Ge(e),n=t.readUnsignedByte(),r=t.readUnsignedByte(),i=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),We[n]&&(a=t.readUnsignedExpGolomb(),3===a&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(f=3!==a?8:12,p=0;p<f;p++)t.readBoolean()&&o(p<6?16:64,t);if(t.skipUnsignedExpGolomb(),s=t.readUnsignedExpGolomb(),0===s)t.readUnsignedExpGolomb();else if(1===s)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),u=t.readUnsignedExpGolomb(),p=0;p<u;p++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),c=t.readUnsignedExpGolomb(),l=t.readUnsignedExpGolomb(),d=t.readBits(1),0===d&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(g=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb(),m=t.readUnsignedExpGolomb(),y=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(h=t.readUnsignedByte(),h){case 1:b=[1,1];break;case 2:b=[12,11];break;case 3:b=[10,11];break;case 4:b=[16,11];break;case 5:b=[40,33];break;case 6:b=[24,11];break;case 7:b=[20,11];break;case 8:b=[32,11];break;case 9:b=[80,33];break;case 10:b=[18,11];break;case 11:b=[15,11];break;case 12:b=[64,33];break;case 13:b=[160,99];break;case 14:b=[4,3];break;case 15:b=[3,2];break;case 16:b=[2,1];break;case 255:b=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()];break}b&&(b[0],b[1])}return{profileIdc:n,levelIdc:i,profileCompatibility:r,width:16*(c+1)-2*g-2*v,height:(2-d)*(l+1)*16-2*m-2*y,sarRatio:b}}},ze.prototype=new U;var Ye,Xe={H264Stream:ze,NalByteStream:qe},Ke=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],Qe=function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9],i=e[t+5],r=(16&i)>>4;return n=n>=0?n:0,r?n+20:n+10},Je=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},Ze=function(e,t,n){return unescape(function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r}(e,t,n))},et={isLikelyAacData:function(e){var t=function e(t,n){return t.length-n<10||t[n]!=="I".charCodeAt(0)||t[n+1]!=="D".charCodeAt(0)||t[n+2]!=="3".charCodeAt(0)?n:(n+=Qe(t,n),e(t,n))}(e,0);return e.length>=t+2&&255===(255&e[t])&&240===(240&e[t+1])&&16===(22&e[t+1])},parseId3TagSize:Qe,parseAdtsSize:function(e,t){var n=(224&e[t+5])>>5,i=e[t+4]<<3,r=6144&e[t+3];return r|i|n},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240===(240&e[t+1])?"audio":null},parseSampleRate:function(e){var t=0;while(t+5<e.length){if(255===e[t]&&240===(246&e[t+1]))return Ke[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,n,i,r;t=10,64&e[5]&&(t+=4,t+=Je(e.subarray(10,14)));do{if(n=Je(e.subarray(t+4,t+8)),n<1)return null;if(r=String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3]),"PRIV"===r){i=e.subarray(t+10,t+n+10);for(var a=0;a<i.byteLength;a++)if(0===i[a]){var o=Ze(i,0,a);if("com.apple.streaming.transportStreamTimestamp"===o){var s=i.subarray(a+1),u=(1&s[3])<<30|s[4]<<22|s[5]<<14|s[6]<<6|s[7]>>>2;return u*=4,u+=3&s[7],u}break}}t+=10,t+=n}while(t<e.byteLength);return null}};Ye=function(){var e=new Uint8Array,t=0;Ye.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(n){var i,r,a,o,s=0,u=0;e.length?(o=e.length,e=new Uint8Array(n.byteLength+o),e.set(e.subarray(0,o)),e.set(n,o)):e=n;while(e.length-u>=3)if(e[u]!=="I".charCodeAt(0)||e[u+1]!=="D".charCodeAt(0)||e[u+2]!=="3".charCodeAt(0))if(255!==(255&e[u])||240!==(240&e[u+1]))u++;else{if(e.length-u<7)break;if(s=et.parseAdtsSize(e,u),u+s>e.length)break;a={type:"audio",data:e.subarray(u,u+s),pts:t,dts:t},this.trigger("data",a),u+=s}else{if(e.length-u<10)break;if(s=et.parseId3TagSize(e,u),u+s>e.length)break;r={type:"timed-metadata",data:e.subarray(u,u+s)},this.trigger("data",r),u+=s}i=e.length-u,e=i>0?e.subarray(u):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}},Ye.prototype=new U;var tt,nt,it,rt,at=Ye,ot=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],st=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],ut=Xe.H264Stream,ct=et.isLikelyAacData,lt=re.ONE_SECOND_IN_TS,dt=function(e,t){t.stream=e,this.trigger("log",t)},ft=function(e,t){for(var n=Object.keys(t),i=0;i<n.length;i++){var r=n[i];"headOfPipeline"!==r&&t[r].on&&t[r].on("log",dt.bind(e,r))}},ht=function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},pt=function(e,t,n,i,r,a){var o=n-t,s=i-t,u=r-n;return{start:{dts:e,pts:e+o},end:{dts:e+s,pts:e+u},prependedContentDuration:a,baseMediaDecodeTime:e}};nt=function(e,t){var n,i=[],r=0,a=0,o=1/0;t=t||{},n=t.firstSequenceNumber||0,nt.prototype.init.call(this),this.push=function(t){se.collectDtsInfo(e,t),e&&ot.forEach((function(n){e[n]=t[n]})),i.push(t)},this.setEarliestDts=function(e){r=e},this.setVideoBaseMediaDecodeTime=function(e){o=e},this.setAudioAppendStart=function(e){a=e},this.flush=function(){var s,u,c,l,d,f,h;0!==i.length?(s=ae.trimAdtsFramesByEarliestDts(i,e,r),e.baseMediaDecodeTime=se.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),h=ae.prefixWithSilence(e,s,a,o),e.samples=ae.generateSampleTable(s),c=Q.mdat(ae.concatenateFrameData(s)),i=[],u=Q.moof(n,[e]),l=new Uint8Array(u.byteLength+c.byteLength),n++,l.set(u),l.set(c,u.byteLength),se.clearDtsInfo(e),d=Math.ceil(1024*lt/e.samplerate),s.length&&(f=s.length*d,this.trigger("segmentTimingInfo",pt(re.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),s[0].dts,s[0].pts,s[0].dts+f,s[0].pts+f,h||0)),this.trigger("timingInfo",{start:s[0].pts,end:s[0].pts+f})),this.trigger("data",{track:e,boxes:l}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){se.clearDtsInfo(e),i=[],this.trigger("reset")}},nt.prototype=new U,tt=function(e,t){var n,i,r,a=[],o=[];t=t||{},n=t.firstSequenceNumber||0,tt.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){se.collectDtsInfo(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||i||(i=t.config,e.sps=[t.data],st.forEach((function(t){e[t]=i[t]}),this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,e.pps=[t.data]),a.push(t)},this.flush=function(){var i,r,s,u,c,l,d,f,h=0;while(a.length){if("access_unit_delimiter_rbsp"===a[0].nalUnitType)break;a.shift()}if(0===a.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(i=Z.groupNalsIntoFrames(a),s=Z.groupFramesIntoGops(i),s[0][0].keyFrame||(r=this.getGopForFusion_(a[0],e),r?(h=r.duration,s.unshift(r),s.byteLength+=r.byteLength,s.nalCount+=r.nalCount,s.pts=r.pts,s.dts=r.dts,s.duration+=r.duration):s=Z.extendFirstKeyFrame(s)),o.length){var p;if(p=t.alignGopsAtEnd?this.alignGopsAtEnd_(s):this.alignGopsAtStart_(s),!p)return this.gopCache_.unshift({gop:s.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");se.clearDtsInfo(e),s=p}se.collectDtsInfo(e,s),e.samples=Z.generateSampleTable(s),c=Q.mdat(Z.concatenateNalData(s)),e.baseMediaDecodeTime=se.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",s.map((function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}}))),d=s[0],f=s[s.length-1],this.trigger("segmentTimingInfo",pt(e.baseMediaDecodeTime,d.dts,d.pts,f.dts+f.duration,f.pts+f.duration,h)),this.trigger("timingInfo",{start:s[0].pts,end:s[s.length-1].pts+s[s.length-1].duration}),this.gopCache_.unshift({gop:s.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),u=Q.moof(n,[e]),l=new Uint8Array(u.byteLength+c.byteLength),n++,l.set(u),l.set(c,u.byteLength),this.trigger("data",{track:e,boxes:l}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),a=[],this.gopCache_.length=0,o.length=0,this.trigger("reset")},this.resetStream_=function(){se.clearDtsInfo(e),i=void 0,r=void 0},this.getGopForFusion_=function(t){var n,i,r,a,o,s=1/0;for(o=0;o<this.gopCache_.length;o++)a=this.gopCache_[o],r=a.gop,e.pps&&ht(e.pps[0],a.pps[0])&&e.sps&&ht(e.sps[0],a.sps[0])&&(r.dts<e.timelineStartInfo.dts||(n=t.dts-r.dts-r.duration,n>=-1e4&&n<=45e3&&(!i||s>n)&&(i=a,s=n)));return i?i.gop:null},this.alignGopsAtStart_=function(e){var t,n,i,r,a,s,u,c;a=e.byteLength,s=e.nalCount,u=e.duration,t=n=0;while(t<o.length&&n<e.length){if(i=o[t],r=e[n],i.pts===r.pts)break;r.pts>i.pts?t++:(n++,a-=r.byteLength,s-=r.nalCount,u-=r.duration)}return 0===n?e:n===e.length?null:(c=e.slice(n),c.byteLength=a,c.duration=u,c.nalCount=s,c.pts=c[0].pts,c.dts=c[0].dts,c)},this.alignGopsAtEnd_=function(e){var t,n,i,r,a,s,u;t=o.length-1,n=e.length-1,a=null,s=!1;while(t>=0&&n>=0){if(i=o[t],r=e[n],i.pts===r.pts){s=!0;break}i.pts>r.pts?t--:(t===o.length-1&&(a=n),n--)}if(!s&&null===a)return null;if(u=s?n:a,0===u)return e;var c=e.slice(u),l=c.reduce((function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e}),{byteLength:0,duration:0,nalCount:0});return c.byteLength=l.byteLength,c.duration=l.duration,c.nalCount=l.nalCount,c.pts=c[0].pts,c.dts=c[0].dts,c},this.alignGopsWith=function(e){o=e}},tt.prototype=new U,rt=function(e,t){this.numberOfTracks=0,this.metadataStream=t,e=e||{},"undefined"!==typeof e.remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"===typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,rt.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}},rt.prototype=new U,rt.prototype.flush=function(e){var t,n,i,r,a=0,o={captions:[],captionStreams:{},metadata:[],info:{}},s=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(s=this.videoTrack.timelineStartInfo.pts,st.forEach((function(e){o.info[e]=this.videoTrack[e]}),this)):this.audioTrack&&(s=this.audioTrack.timelineStartInfo.pts,ot.forEach((function(e){o.info[e]=this.audioTrack[e]}),this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?o.type=this.pendingTracks[0].type:o.type="combined",this.emittedTracks+=this.pendingTracks.length,i=Q.initSegment(this.pendingTracks),o.initSegment=new Uint8Array(i.byteLength),o.initSegment.set(i),o.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)o.data.set(this.pendingBoxes[r],a),a+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)t=this.pendingCaptions[r],t.startTime=re.metadataTsToSeconds(t.startPts,s,this.keepOriginalTimestamps),t.endTime=re.metadataTsToSeconds(t.endPts,s,this.keepOriginalTimestamps),o.captionStreams[t.stream]=!0,o.captions.push(t);for(r=0;r<this.pendingMetadata.length;r++)n=this.pendingMetadata[r],n.cueTime=re.metadataTsToSeconds(n.pts,s,this.keepOriginalTimestamps),o.metadata.push(n);for(o.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",o),r=0;r<o.captions.length;r++)t=o.captions[r],this.trigger("caption",t);for(r=0;r<o.metadata.length;r++)n=o.metadata[r],this.trigger("id3Frame",n)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},rt.prototype.setRemux=function(e){this.remuxTracks=e},it=function(e){var t,n,i=this,r=!0;it.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="aac",r.metadataStream=new Ue.MetadataStream,r.aacStream=new at,r.audioTimestampRolloverStream=new Ue.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new Ue.TimestampRolloverStream("timed-metadata"),r.adtsStream=new Ve,r.coalesceStream=new rt(e,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",(function(e){r.aacStream.setTimestamp(e.timeStamp)})),r.aacStream.on("data",(function(a){"timed-metadata"!==a.type&&"audio"!==a.type||r.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new nt(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t}))})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),ft(this,r)},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new Ue.MetadataStream,r.packetStream=new Ue.TransportPacketStream,r.parseStream=new Ue.TransportParseStream,r.elementaryStream=new Ue.ElementaryStream,r.timestampRolloverStream=new Ue.TimestampRolloverStream,r.adtsStream=new Ve,r.h264Stream=new ut,r.captionStream=new Ue.CaptionStream(e),r.coalesceStream=new rt(e,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",(function(a){var o;if("metadata"===a.type){o=a.tracks.length;while(o--)t||"video"!==a.tracks[o].type?n||"audio"!==a.tracks[o].type||(n=a.tracks[o],n.timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime):(t=a.tracks[o],t.timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime);t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new tt(t,e),r.videoSegmentStream.on("log",i.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",(function(t){n&&!e.keepOriginalTimestamps&&(n.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts-i.baseMediaDecodeTime))})),r.videoSegmentStream.on("processedGopsInfo",i.trigger.bind(i,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",(function(e){n&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(e)})),r.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),n&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new nt(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t})}})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",(function(e){e.dispatchType=r.metadataStream.dispatchType,i.trigger("id3Frame",e)})),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),ft(this,r)},this.setBaseMediaDecodeTime=function(i){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=i),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,se.clearDtsInfo(n),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,se.clearDtsInfo(t),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var n=this.transmuxPipeline_;e.remux=t,n&&n.coalesceStream&&n.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(n){n.stream=e,t.trigger("log",n)}},this.push=function(e){if(r){var t=ct(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},it.prototype=new U;var gt,vt={Transmuxer:it,VideoSegmentStream:tt,AudioSegmentStream:nt,AUDIO_PROPERTIES:ot,VIDEO_PROPERTIES:st,generateSegmentTimingInfo:pt},mt={toUnsigned:function(e){return e>>>0},toHexString:function(e){return("00"+e.toString(16)).slice(-2)}},yt=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3]),t},bt=mt.toUnsigned,_t=function e(t,n){var i,r,a,o,s,u=[];if(!n.length)return null;for(i=0;i<t.byteLength;)r=bt(t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]),a=yt(t.subarray(i+4,i+8)),o=r>1?i+r:t.byteLength,a===n[0]&&(1===n.length?u.push(t.subarray(i+8,o)):(s=e(t.subarray(i+8,o),n.slice(1)),s.length&&(u=u.concat(s)))),i=o;return u},wt=mt.toUnsigned,Tt=$.getUint64,St=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=Tt(e.subarray(4)):t.baseMediaDecodeTime=wt(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},kt=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},xt=function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},i=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&n.flags[2],a=4&n.flags[2],o=1&n.flags[1],s=2&n.flags[1],u=4&n.flags[1],c=8&n.flags[1],l=i.getUint32(4),d=8;r&&(n.dataOffset=i.getInt32(d),d+=4),a&&l&&(t={flags:kt(e.subarray(d,d+4))},d+=4,o&&(t.duration=i.getUint32(d),d+=4),s&&(t.size=i.getUint32(d),d+=4),c&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t),l--);while(l--)t={},o&&(t.duration=i.getUint32(d),d+=4),s&&(t.size=i.getUint32(d),d+=4),u&&(t.flags=kt(e.subarray(d,d+4)),d+=4),c&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t);return n},Ct=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:n.getUint32(4)},r=1&i.flags[2],a=2&i.flags[2],o=8&i.flags[2],s=16&i.flags[2],u=32&i.flags[2],c=65536&i.flags[0],l=131072&i.flags[0];return t=8,r&&(t+=4,i.baseDataOffset=n.getUint32(12),t+=4),a&&(i.sampleDescriptionIndex=n.getUint32(t),t+=4),o&&(i.defaultSampleDuration=n.getUint32(t),t+=4),s&&(i.defaultSampleSize=n.getUint32(t),t+=4),u&&(i.defaultSampleFlags=n.getUint32(t)),c&&(i.durationIsEmpty=!0),!r&&l&&(i.baseDataOffsetIsMoof=!0),i},Et="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{};gt="undefined"!==typeof window?window:"undefined"!==typeof Et?Et:"undefined"!==typeof self?self:{};var At,Ot,jt,It,Pt,Mt,Lt=gt,Dt=ue.discardEmulationPreventionBytes,Rt=_e.CaptionStream,Nt=function(e,t){for(var n=e,i=0;i<t.length;i++){var r=t[i];if(n<r.size)return r;n-=r.size}return null},Bt=function(e,t){var n=_t(e,["moof","traf"]),i=_t(e,["mdat"]),r={},a=[];return i.forEach((function(e,t){var i=n[t];a.push({mdat:e,traf:i})})),a.forEach((function(e){var n,i,a=e.mdat,o=e.traf,s=_t(o,["tfhd"]),u=Ct(s[0]),c=u.trackId,l=_t(o,["tfdt"]),d=l.length>0?St(l[0]).baseMediaDecodeTime:0,f=_t(o,["trun"]);t===c&&f.length>0&&(n=function(e,t,n){var i=t,r=n.defaultSampleDuration||0,a=n.defaultSampleSize||0,o=n.trackId,s=[];return e.forEach((function(e){var t=xt(e),n=t.samples;n.forEach((function(e){void 0===e.duration&&(e.duration=r),void 0===e.size&&(e.size=a),e.trackId=o,e.dts=i,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"===typeof i?(e.pts=i+Lt.BigInt(e.compositionTimeOffset),i+=Lt.BigInt(e.duration)):(e.pts=i+e.compositionTimeOffset,i+=e.duration)})),s=s.concat(n)})),s}(f,d,u),i=function(e,t,n){var i,r,a,o,s=new DataView(e.buffer,e.byteOffset,e.byteLength),u={logs:[],seiNals:[]};for(r=0;r+4<e.length;r+=a)if(a=s.getUint32(r),r+=4,!(a<=0))switch(31&e[r]){case 6:var c=e.subarray(r+1,r+1+a),l=Nt(r,t);if(i={nalUnitType:"sei_rbsp",size:a,data:c,escapedRBSP:Dt(c),trackId:n},l)i.pts=l.pts,i.dts=l.dts,o=l;else{if(!o){u.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+r+" for trackId "+n+". See mux.js#223."});break}i.pts=o.pts,i.dts=o.dts}u.seiNals.push(i);break}return u}(a,n,c),r[c]||(r[c]={seiNals:[],logs:[]}),r[c].seiNals=r[c].seiNals.concat(i.seiNals),r[c].logs=r[c].logs.concat(i.logs))})),r},Ut=function(){var e,t,n,i,a,o,s=!1;this.isInitialized=function(){return s},this.init=function(t){e=new Rt,s=!0,o=!!t&&t.isPartial,e.on("data",(function(e){e.startTime=e.startPts/i,e.endTime=e.endPts/i,a.captions.push(e),a.captionStreams[e.stream]=!0})),e.on("log",(function(e){a.logs.push(e)}))},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"===(0,r.default)(t)&&0===Object.keys(t).length)&&(n!==e[0]||i!==t[n])},this.parse=function(e,r,o){var s;if(!this.isInitialized())return null;if(!r||!o)return null;if(this.isNewInit(r,o))n=r[0],i=o[n];else if(null===n||!i)return t.push(e),null;while(t.length>0){var u=t.shift();this.parse(u,r,o)}return s=function(e,t,n){var i;if(null===t)return null;i=Bt(e,t);var r=i[t]||{};return{seiNals:r.seiNals,logs:r.logs,timescale:n}}(e,n,i),s&&s.logs&&(a.logs=a.logs.concat(s.logs)),null!==s&&s.seiNals?(this.pushNals(s.seiNals),this.flushStream(),a):a.logs.length?{logs:a.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach((function(t){e.push(t)}))},this.flushStream=function(){if(!this.isInitialized())return null;o?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){a.captions=[],a.captionStreams={},a.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],n=null,i=null,a?this.clearParsedCaptions():a={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},Ft=mt.toUnsigned,$t=mt.toHexString,Ht=$.getUint64;At=function(e){var t=_t(e,["moov","trak"]);return t.reduce((function(e,t){var n,i,r,a,o;return n=_t(t,["tkhd"])[0],n?(i=n[0],r=0===i?12:20,a=Ft(n[r]<<24|n[r+1]<<16|n[r+2]<<8|n[r+3]),o=_t(t,["mdia","mdhd"])[0],o?(i=o[0],r=0===i?12:20,e[a]=Ft(o[r]<<24|o[r+1]<<16|o[r+2]<<8|o[r+3]),e):null):null}),{})},Ot=function(e,t){var n;n=_t(t,["moof","traf"]);var i=n.reduce((function(t,n){var i,r,a=_t(n,["tfhd"])[0],o=Ft(a[4]<<24|a[5]<<16|a[6]<<8|a[7]),s=e[o]||9e4,u=_t(n,["tfdt"])[0],c=new DataView(u.buffer,u.byteOffset,u.byteLength);return i=1===u[0]?Ht(u.subarray(4,12)):c.getUint32(4),"bigint"===typeof i?r=i/Lt.BigInt(s):"number"!==typeof i||isNaN(i)||(r=i/s),r<Number.MAX_SAFE_INTEGER&&(r=Number(r)),r<t&&(t=r),t}),1/0);return"bigint"===typeof i||isFinite(i)?i:0},jt=function(e,t){var n,i=_t(t,["moof","traf"]),r=0,a=0;if(i&&i.length){var o=_t(i[0],["tfhd"])[0],s=_t(i[0],["trun"])[0],u=_t(i[0],["tfdt"])[0];if(o){var c=Ct(o);n=c.trackId}if(u){var l=St(u);r=l.baseMediaDecodeTime}if(s){var d=xt(s);d.samples&&d.samples.length&&(a=d.samples[0].compositionTimeOffset||0)}}var f=e[n]||9e4;"bigint"===typeof r&&(a=Lt.BigInt(a),f=Lt.BigInt(f));var h=(r+a)/f;return"bigint"===typeof h&&h<Number.MAX_SAFE_INTEGER&&(h=Number(h)),h},It=function(e){var t=_t(e,["moov","trak"]),n=[];return t.forEach((function(e){var t=_t(e,["mdia","hdlr"]),i=_t(e,["tkhd"]);t.forEach((function(e,t){var r,a,o,s=yt(e.subarray(8,12)),u=i[t];"vide"===s&&(r=new DataView(u.buffer,u.byteOffset,u.byteLength),a=r.getUint8(0),o=0===a?r.getUint32(12):r.getUint32(20),n.push(o))}))})),n},Mt=function(e){var t=e[0],n=0===t?12:20;return Ft(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3])},Pt=function(e){var t=_t(e,["moov","trak"]),n=[];return t.forEach((function(e){var t,i,r={},a=_t(e,["tkhd"])[0];a&&(t=new DataView(a.buffer,a.byteOffset,a.byteLength),i=t.getUint8(0),r.id=0===i?t.getUint32(12):t.getUint32(20));var o=_t(e,["mdia","hdlr"])[0];if(o){var s=yt(o.subarray(8,12));r.type="vide"===s?"video":"soun"===s?"audio":s}var u=_t(e,["mdia","minf","stbl","stsd"])[0];if(u){var c=u.subarray(8);r.codec=yt(c.subarray(4,8));var l,d,f=_t(c,[r.codec])[0];f&&(/^[asm]vc[1-9]$/i.test(r.codec)?(l=f.subarray(78),d=yt(l.subarray(4,8)),"avcC"===d&&l.length>11?(r.codec+=".",r.codec+=$t(l[9]),r.codec+=$t(l[10]),r.codec+=$t(l[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(l=f.subarray(28),d=yt(l.subarray(4,8)),"esds"===d&&l.length>20&&0!==l[19]?(r.codec+="."+$t(l[19]),r.codec+="."+$t(l[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var h=_t(e,["mdia","mdhd"])[0];h&&(r.timescale=Mt(h)),n.push(r)})),n};var Vt={findBox:_t,parseType:yt,timescale:At,startTime:Ot,compositionStartTime:jt,videoTrackIds:It,tracks:Pt,getTimescaleFromMediaHeader:Mt},zt=function(e){var t=31&e[1];return t<<=8,t|=e[2],t},qt=function(e){return!!(64&e[1])},Wt=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},Gt=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},Yt={parseType:function(e,t){var n=zt(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},parsePat:function(e){var t=qt(e),n=4+Wt(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},parsePmt:function(e){var t={},n=qt(e),i=4+Wt(e);if(n&&(i+=e[i]+1),1&e[i+5]){var r,a,o;r=(15&e[i+1])<<8|e[i+2],a=3+r-4,o=(15&e[i+10])<<8|e[i+11];var s=12+o;while(s<a){var u=i+s;t[(31&e[u+1])<<8|e[u+2]]=e[u],s+=5+((15&e[u+3])<<8|e[u+4])}return t}},parsePayloadUnitStartIndicator:qt,parsePesType:function(e,t){var n=zt(e),i=t[n];switch(i){case we.H264_STREAM_TYPE:return"video";case we.ADTS_STREAM_TYPE:return"audio";case we.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){var t=qt(e);if(!t)return null;var n=4+Wt(e);if(n>=e.byteLength)return null;var i,r=null;return i=e[n+7],192&i&&(r={},r.pts=(14&e[n+9])<<27|(255&e[n+10])<<20|(254&e[n+11])<<12|(255&e[n+12])<<5|(254&e[n+13])>>>3,r.pts*=4,r.pts+=(6&e[n+13])>>>1,r.dts=r.pts,64&i&&(r.dts=(14&e[n+14])<<27|(255&e[n+15])<<20|(254&e[n+16])<<12|(255&e[n+17])<<5|(254&e[n+18])>>>3,r.dts*=4,r.dts+=(6&e[n+18])>>>1)),r},videoPacketContainsKeyFrame:function(e){for(var t,n=4+Wt(e),i=e.subarray(n),r=0,a=0,o=!1;a<i.byteLength-3;a++)if(1===i[a+2]){r=a+5;break}while(r<i.byteLength)switch(i[r]){case 0:if(0!==i[r-1]){r+=2;break}if(0!==i[r-2]){r++;break}a+3!==r-2&&(t=Gt(31&i[a+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(o=!0));do{r++}while(1!==i[r]&&r<i.length);a=r-2,r+=3;break;case 1:if(0!==i[r-1]||0!==i[r-2]){r+=3;break}t=Gt(31&i[a+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(o=!0),a=r-2,r+=3;break;default:r+=3;break}return i=i.subarray(a),r-=a,a=0,i&&i.byteLength>3&&(t=Gt(31&i[a+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(o=!0)),o}},Xt=xe.handleRollover,Kt={};Kt.ts=Yt,Kt.aac=et;var Qt=re.ONE_SECOND_IN_TS,Jt=function(e,t,n){var i,r,a,o,s,u=0,c=188,l=!1;while(c<=e.byteLength)if(71!==e[u]||71!==e[c]&&c!==e.byteLength)u++,c++;else{switch(i=e.subarray(u,c),r=Kt.ts.parseType(i,t.pid),r){case"pes":a=Kt.ts.parsePesType(i,t.table),o=Kt.ts.parsePayloadUnitStartIndicator(i),"audio"===a&&o&&(s=Kt.ts.parsePesTime(i),s&&(s.type="audio",n.audio.push(s),l=!0));break}if(l)break;u+=188,c+=188}c=e.byteLength,u=c-188,l=!1;while(u>=0)if(71!==e[u]||71!==e[c]&&c!==e.byteLength)u--,c--;else{switch(i=e.subarray(u,c),r=Kt.ts.parseType(i,t.pid),r){case"pes":a=Kt.ts.parsePesType(i,t.table),o=Kt.ts.parsePayloadUnitStartIndicator(i),"audio"===a&&o&&(s=Kt.ts.parsePesTime(i),s&&(s.type="audio",n.audio.push(s),l=!0));break}if(l)break;u-=188,c-=188}},Zt=function(e,t,n){var i,r,a,o,s,u,c,l,d=0,f=188,h=!1,p={data:[],size:0};while(f<e.byteLength)if(71!==e[d]||71!==e[f])d++,f++;else{switch(i=e.subarray(d,f),r=Kt.ts.parseType(i,t.pid),r){case"pes":if(a=Kt.ts.parsePesType(i,t.table),o=Kt.ts.parsePayloadUnitStartIndicator(i),"video"===a&&(o&&!h&&(s=Kt.ts.parsePesTime(i),s&&(s.type="video",n.video.push(s),h=!0)),!n.firstKeyFrame)){if(o&&0!==p.size){u=new Uint8Array(p.size),c=0;while(p.data.length)l=p.data.shift(),u.set(l,c),c+=l.byteLength;if(Kt.ts.videoPacketContainsKeyFrame(u)){var g=Kt.ts.parsePesTime(u);g?(n.firstKeyFrame=g,n.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}p.size=0}p.data.push(i),p.size+=i.byteLength}break}if(h&&n.firstKeyFrame)break;d+=188,f+=188}f=e.byteLength,d=f-188,h=!1;while(d>=0)if(71!==e[d]||71!==e[f])d--,f--;else{switch(i=e.subarray(d,f),r=Kt.ts.parseType(i,t.pid),r){case"pes":a=Kt.ts.parsePesType(i,t.table),o=Kt.ts.parsePayloadUnitStartIndicator(i),"video"===a&&o&&(s=Kt.ts.parsePesTime(i),s&&(s.type="video",n.video.push(s),h=!0));break}if(h)break;d-=188,f-=188}},en=function(e){var t={pid:null,table:null},n={};for(var i in function(e,t){var n,i,r=0,a=188;while(a<e.byteLength)if(71!==e[r]||71!==e[a])r++,a++;else{switch(n=e.subarray(r,a),i=Kt.ts.parseType(n,t.pid),i){case"pat":t.pid=Kt.ts.parsePat(n);break;case"pmt":var o=Kt.ts.parsePmt(n);t.table=t.table||{},Object.keys(o).forEach((function(e){t.table[e]=o[e]}));break}r+=188,a+=188}}(e,t),t.table)if(t.table.hasOwnProperty(i)){var r=t.table[i];switch(r){case we.H264_STREAM_TYPE:n.video=[],Zt(e,t,n),0===n.video.length&&delete n.video;break;case we.ADTS_STREAM_TYPE:n.audio=[],Jt(e,t,n),0===n.audio.length&&delete n.audio;break}}return n},tn={inspect:function(e,t){var n,i=Kt.aac.isLikelyAacData(e);return n=i?function(e){var t,n=!1,i=0,r=null,a=null,o=0,s=0;while(e.length-s>=3){var u=Kt.aac.parseType(e,s);switch(u){case"timed-metadata":if(e.length-s<10){n=!0;break}if(o=Kt.aac.parseId3TagSize(e,s),o>e.length){n=!0;break}null===a&&(t=e.subarray(s,s+o),a=Kt.aac.parseAacTimestamp(t)),s+=o;break;case"audio":if(e.length-s<7){n=!0;break}if(o=Kt.aac.parseAdtsSize(e,s),o>e.length){n=!0;break}null===r&&(t=e.subarray(s,s+o),r=Kt.aac.parseSampleRate(t)),i++,s+=o;break;default:s++;break}if(n)return null}if(null===r||null===a)return null;var c=Qt/r,l={audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*i*c,pts:a+1024*i*c}]};return l}(e):en(e),n&&(n.audio||n.video)?(function(e,t){if(e.audio&&e.audio.length){var n=t;("undefined"===typeof n||isNaN(n))&&(n=e.audio[0].dts),e.audio.forEach((function(e){e.dts=Xt(e.dts,n),e.pts=Xt(e.pts,n),e.dtsTime=e.dts/Qt,e.ptsTime=e.pts/Qt}))}if(e.video&&e.video.length){var i=t;if(("undefined"===typeof i||isNaN(i))&&(i=e.video[0].dts),e.video.forEach((function(e){e.dts=Xt(e.dts,i),e.pts=Xt(e.pts,i),e.dtsTime=e.dts/Qt,e.ptsTime=e.pts/Qt})),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=Xt(r.dts,i),r.pts=Xt(r.pts,i),r.dtsTime=r.dts/Qt,r.ptsTime=r.pts/Qt}}}(n,t),n):null},parseAudioPes_:Jt},nn=function(){function e(e,t){this.options=t||{},this.self=e,this.init()}var t=e.prototype;return t.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new vt.Transmuxer(this.options),function(e,t){t.on("data",(function(t){var n=t.initSegment;t.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};var i=t.data;t.data=i.buffer,e.postMessage({action:"data",segment:t,byteOffset:i.byteOffset,byteLength:i.byteLength},[t.data])})),t.on("done",(function(t){e.postMessage({action:"done"})})),t.on("gopInfo",(function(t){e.postMessage({action:"gopInfo",gopInfo:t})})),t.on("videoSegmentTimingInfo",(function(t){var n={start:{decode:re.videoTsToSeconds(t.start.dts),presentation:re.videoTsToSeconds(t.start.pts)},end:{decode:re.videoTsToSeconds(t.end.dts),presentation:re.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:re.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=re.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})})),t.on("audioSegmentTimingInfo",(function(t){var n={start:{decode:re.videoTsToSeconds(t.start.dts),presentation:re.videoTsToSeconds(t.start.pts)},end:{decode:re.videoTsToSeconds(t.end.dts),presentation:re.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:re.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=re.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:n})})),t.on("id3Frame",(function(t){e.postMessage({action:"id3Frame",id3Frame:t})})),t.on("caption",(function(t){e.postMessage({action:"caption",caption:t})})),t.on("trackinfo",(function(t){e.postMessage({action:"trackinfo",trackInfo:t})})),t.on("audioTimingInfo",(function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:re.videoTsToSeconds(t.start),end:re.videoTsToSeconds(t.end)}})})),t.on("videoTimingInfo",(function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:re.videoTsToSeconds(t.start),end:re.videoTsToSeconds(t.end)}})})),t.on("log",(function(t){e.postMessage({action:"log",log:t})}))}(this.self,this.transmuxer)},t.pushMp4Captions=function(e){this.captionParser||(this.captionParser=new Ut,this.captionParser.init());var t=new Uint8Array(e.data,e.byteOffset,e.byteLength),n=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:n&&n.captions||[],logs:n&&n.logs||[],data:t.buffer},[t.buffer])},t.probeMp4StartTime=function(e){var t=e.timescales,n=e.data,i=Vt.startTime(t,n);this.self.postMessage({action:"probeMp4StartTime",startTime:i,data:n},[n.buffer])},t.probeMp4Tracks=function(e){var t=e.data,n=Vt.tracks(t);this.self.postMessage({action:"probeMp4Tracks",tracks:n,data:t},[t.buffer])},t.probeTs=function(e){var t=e.data,n=e.baseStartTime,i="number"!==typeof n||isNaN(n)?void 0:n*re.ONE_SECOND_IN_TS,r=tn.inspect(t,i),a=null;r&&(a={hasVideo:r.video&&2===r.video.length||!1,hasAudio:r.audio&&2===r.audio.length||!1},a.hasVideo&&(a.videoStart=r.video[0].ptsTime),a.hasAudio&&(a.audioStart=r.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:a,data:t},[t.buffer])},t.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},t.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},t.push=function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)},t.reset=function(){this.transmuxer.reset()},t.setTimestampOffset=function(e){var t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(re.secondsToVideoTs(t)))},t.setAudioAppendStart=function(e){this.transmuxer.setAudioAppendStart(Math.ceil(re.secondsToVideoTs(e.appendStart)))},t.setRemux=function(e){this.transmuxer.setRemux(e.remux)},t.flush=function(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},t.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},t.alignGopsWith=function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())},e}();self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new nn(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new nn(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}}))),Ja=Ya(Qa),Za=function(e){var t=e.transmuxer,n=e.bytes,i=e.audioAppendStart,r=e.gopsToAlignWith,a=e.remux,o=e.onData,s=e.onTrackInfo,u=e.onAudioTimingInfo,c=e.onVideoTimingInfo,l=e.onVideoSegmentTimingInfo,d=e.onAudioSegmentTimingInfo,f=e.onId3,h=e.onCaptions,p=e.onDone,g=e.onEndedTimeline,v=e.onTransmuxerLog,m=e.isEndOfTimeline,y={buffer:[]},b=m;if(t.onmessage=function(n){t.currentTransmux===e&&("data"===n.data.action&&function(e,t,n){var i=e.data.segment,r=i.type,a=i.initSegment,o=i.captions,s=i.captionStreams,u=i.metadata,c=i.videoFrameDtsTime,l=i.videoFramePtsTime;t.buffer.push({captions:o,captionStreams:s,metadata:u});var d=e.data.segment.boxes||{data:e.data.segment.data},f={type:r,data:new Uint8Array(d.data,d.data.byteOffset,d.data.byteLength),initSegment:new Uint8Array(a.data,a.byteOffset,a.byteLength)};"undefined"!==typeof c&&(f.videoFrameDtsTime=c),"undefined"!==typeof l&&(f.videoFramePtsTime=l),n(f)}(n,y,o),"trackinfo"===n.data.action&&s(n.data.trackInfo),"gopInfo"===n.data.action&&function(e,t){t.gopInfo=e.data.gopInfo}(n,y),"audioTimingInfo"===n.data.action&&u(n.data.audioTimingInfo),"videoTimingInfo"===n.data.action&&c(n.data.videoTimingInfo),"videoSegmentTimingInfo"===n.data.action&&l(n.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===n.data.action&&d(n.data.audioSegmentTimingInfo),"id3Frame"===n.data.action&&f([n.data.id3Frame],n.data.id3Frame.dispatchType),"caption"===n.data.action&&h(n.data.caption),"endedtimeline"===n.data.action&&(b=!1,g()),"log"===n.data.action&&v(n.data.log),"transmuxed"===n.data.type&&(b||(t.onmessage=null,function(e){var t=e.transmuxedData,n=e.callback;t.buffer=[],n(t)}({transmuxedData:y,callback:p}),eo(t))))},i&&t.postMessage({action:"setAudioAppendStart",appendStart:i}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),"undefined"!==typeof a&&t.postMessage({action:"setRemux",remux:a}),n.byteLength){var _=n instanceof ArrayBuffer?n:n.buffer,w=n instanceof ArrayBuffer?0:n.byteOffset;t.postMessage({action:"push",data:_,byteOffset:w,byteLength:n.byteLength},[_])}m&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},eo=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"===typeof e.currentTransmux?e.currentTransmux():Za(e.currentTransmux))},to=function(e,t){e.postMessage({action:t}),eo(e)},no=function(e,t){if(!t.currentTransmux)return t.currentTransmux=e,void to(t,e);t.transmuxQueue.push(to.bind(null,t,e))},io=function(e){if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void Za(e);e.transmuxer.transmuxQueue.push(e)},ro={reset:function(e){no("reset",e)},endTimeline:function(e){no("endTimeline",e)},transmux:io,createTransmuxer:function(e){var t=new Ja;t.currentTransmux=null,t.transmuxQueue=[];var n=t.terminate;return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,n.call(t)},t.postMessage({action:"init",options:e}),t}},ao=function(e){var t=e.transmuxer,n=e.endAction||e.action,i=e.callback,r=(0,u.default)({},e,{endAction:null,transmuxer:null,callback:null});if(t.addEventListener("message",(function r(a){a.data.action===n&&(t.removeEventListener("message",r),a.data.data&&(a.data.data=new Uint8Array(a.data.data,e.byteOffset||0,e.byteLength||a.data.data.byteLength),e.data&&(e.data=a.data.data)),i(a.data))})),e.data){var a=e.data instanceof ArrayBuffer;r.byteOffset=a?0:e.data.byteOffset,r.byteLength=e.data.byteLength;var o=[a?e.data:e.data.buffer];t.postMessage(r,o)}else t.postMessage(r)},oo={FAILURE:2,TIMEOUT:-101,ABORTED:-102},so=function(e){e.forEach((function(e){e.abort()}))},uo=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:oo.TIMEOUT,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:oo.ABORTED,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:oo.FAILURE,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:oo.FAILURE,xhr:t}:null},co=function(e,t,n){return function(i,r){var a=r.response,o=uo(i,r);if(o)return n(o,e);if(16!==a.byteLength)return n({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:oo.FAILURE,xhr:r},e);for(var s=new DataView(a),u=new Uint32Array([s.getUint32(0),s.getUint32(4),s.getUint32(8),s.getUint32(12)]),c=0;c<t.length;c++)t[c].bytes=u;return n(null,e)}},lo=function(e,t){var n=(0,x.detectContainerForBytes)(e.map.bytes);if("mp4"!==n){var i=e.map.resolvedUri||e.map.uri;return t({internal:!0,message:"Found unsupported "+(n||"unknown")+" container for initialization segment at URL: "+i,code:oo.FAILURE})}ao({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:function(n){var i=n.tracks,r=n.data;return e.map.bytes=r,i.forEach((function(t){e.map.tracks=e.map.tracks||{},e.map.tracks[t.type]||(e.map.tracks[t.type]=t,"number"===typeof t.id&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale))})),t(null)}})},fo=function(e){var t=e.segment,n=e.finishProcessingFn,i=e.responseType;return function(e,r){var a=uo(e,r);if(a)return n(a,t);var o="arraybuffer"!==i&&r.responseText?function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t.buffer}(r.responseText.substring(t.lastReachedChar||0)):r.response;return t.stats=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}}(r),t.key?t.encryptedBytes=new Uint8Array(o):t.bytes=new Uint8Array(o),n(null,t)}},ho=function(e){var t=e.segment,n=e.bytes,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,u=e.captionsFn,c=e.isEndOfTimeline,l=e.endedTimelineFn,d=e.dataFn,f=e.doneFn,h=e.onTransmuxerLog,p=t.map&&t.map.tracks||{},g=Boolean(p.audio&&p.video),v=r.bind(null,t,"audio","start"),m=r.bind(null,t,"audio","end"),y=r.bind(null,t,"video","start"),b=r.bind(null,t,"video","end");ao({action:"probeTs",transmuxer:t.transmuxer,data:n,baseStartTime:t.baseStartTime,callback:function(e){t.bytes=n=e.data;var r=e.result;r&&(i(t,{hasAudio:r.hasAudio,hasVideo:r.hasVideo,isMuxed:g}),i=null,r.hasAudio&&!g&&v(r.audioStart),r.hasVideo&&y(r.videoStart),v=null,y=null),function(){io({bytes:n,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,remux:g,onData:function(e){e.type="combined"===e.type?"video":e.type,d(t,e)},onTrackInfo:function(e){i&&(g&&(e.isMuxed=!0),i(t,e))},onAudioTimingInfo:function(e){v&&"undefined"!==typeof e.start&&(v(e.start),v=null),m&&"undefined"!==typeof e.end&&m(e.end)},onVideoTimingInfo:function(e){y&&"undefined"!==typeof e.start&&(y(e.start),y=null),b&&"undefined"!==typeof e.end&&b(e.end)},onVideoSegmentTimingInfo:function(e){a(e)},onAudioSegmentTimingInfo:function(e){o(e)},onId3:function(e,n){s(t,e,n)},onCaptions:function(e){u(t,[e])},isEndOfTimeline:c,onEndedTimeline:function(){l()},onTransmuxerLog:h,onDone:function(e){f&&(e.type="combined"===e.type?"video":e.type,f(null,t,e))}})}()}})},po=function(e){var t=e.segment,n=e.bytes,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,u=e.captionsFn,c=e.isEndOfTimeline,l=e.endedTimelineFn,d=e.dataFn,f=e.doneFn,h=e.onTransmuxerLog,p=new Uint8Array(n);if((0,x.isLikelyFmp4MediaSegment)(p)){t.isFmp4=!0;var g=t.map.tracks,v={isFmp4:!0,hasVideo:!!g.video,hasAudio:!!g.audio};g.audio&&g.audio.codec&&"enca"!==g.audio.codec&&(v.audioCodec=g.audio.codec),g.video&&g.video.codec&&"encv"!==g.video.codec&&(v.videoCodec=g.video.codec),g.video&&g.audio&&(v.isMuxed=!0),i(t,v);var m=function(e){d(t,{data:p,type:v.hasAudio&&!v.isMuxed?"audio":"video"}),e&&e.length&&u(t,e),f(null,t,{})};ao({action:"probeMp4StartTime",timescales:t.map.timescales,data:p,transmuxer:t.transmuxer,callback:function(e){var i=e.data,a=e.startTime;n=i.buffer,t.bytes=p=i,v.hasAudio&&!v.isMuxed&&r(t,"audio","start",a),v.hasVideo&&r(t,"video","start",a),g.video&&i.byteLength&&t.transmuxer?ao({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:t.transmuxer,data:p,timescales:t.map.timescales,trackIds:[g.video.id],callback:function(e){n=e.data.buffer,t.bytes=p=e.data,e.logs.forEach((function(e){h(Pr.mergeOptions(e,{stream:"mp4CaptionParser"}))})),m(e.captions)}}):m()}})}else if(t.transmuxer){if("undefined"===typeof t.container&&(t.container=(0,x.detectContainerForBytes)(p)),"ts"!==t.container&&"aac"!==t.container)return i(t,{hasAudio:!1,hasVideo:!1}),void f(null,t,{});ho({segment:t,bytes:n,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:u,isEndOfTimeline:c,endedTimelineFn:l,dataFn:d,doneFn:f,onTransmuxerLog:h})}else f(null,t,{})},go=function(e,t){var n,i=e.id,r=e.key,a=e.encryptedBytes,o=e.decryptionWorker;o.addEventListener("message",(function e(n){if(n.data.source===i){o.removeEventListener("message",e);var r=n.data.decrypted;t(new Uint8Array(r.bytes,r.byteOffset,r.byteLength))}})),n=r.bytes.slice?r.bytes.slice():new Uint32Array(Array.prototype.slice.call(r.bytes)),o.postMessage(Pa({source:i,encrypted:a,key:n,iv:r.iv}),[a.buffer,n.buffer])},vo=function(e){var t=e.activeXhrs,n=e.decryptionWorker,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,u=e.captionsFn,c=e.isEndOfTimeline,l=e.endedTimelineFn,d=e.dataFn,f=e.doneFn,h=e.onTransmuxerLog,p=0,g=!1;return function(e,v){if(!g){if(e)return g=!0,so(t),f(e,v);if(p+=1,p===t.length){var m=function(){if(v.encryptedBytes)return function(e){var t=e.decryptionWorker,n=e.segment,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,u=e.captionsFn,c=e.isEndOfTimeline,l=e.endedTimelineFn,d=e.dataFn,f=e.doneFn,h=e.onTransmuxerLog;go({id:n.requestId,key:n.key,encryptedBytes:n.encryptedBytes,decryptionWorker:t},(function(e){n.bytes=e,po({segment:n,bytes:n.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:u,isEndOfTimeline:c,endedTimelineFn:l,dataFn:d,doneFn:f,onTransmuxerLog:h})}))}({decryptionWorker:n,segment:v,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:u,isEndOfTimeline:c,endedTimelineFn:l,dataFn:d,doneFn:f,onTransmuxerLog:h});po({segment:v,bytes:v.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:u,isEndOfTimeline:c,endedTimelineFn:l,dataFn:d,doneFn:f,onTransmuxerLog:h})};if(v.endOfAllRequests=Date.now(),v.map&&v.map.encryptedBytes&&!v.map.bytes)return go({decryptionWorker:n,id:v.requestId+"-init",encryptedBytes:v.map.encryptedBytes,key:v.map.key},(function(e){v.map.bytes=e,lo(v,(function(e){if(e)return so(t),f(e,v);m()}))}));m()}}}},mo=function(e){var t=e.segment,n=e.progressFn;return e.trackInfoFn,e.timingInfoFn,e.videoSegmentTimingInfoFn,e.audioSegmentTimingInfoFn,e.id3Fn,e.captionsFn,e.isEndOfTimeline,e.endedTimelineFn,e.dataFn,function(e){var i=e.target;if(!i.aborted)return t.stats=Pr.mergeOptions(t.stats,function(e){var t=e.target,n=Date.now()-t.requestTime,i={bandwidth:1/0,bytesReceived:0,roundTripTime:n||0};return i.bytesReceived=e.loaded,i.bandwidth=Math.floor(i.bytesReceived/i.roundTripTime*8*1e3),i}(e)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),n(e,t)}},yo=function(e){var t=e.xhr,n=e.xhrOptions,i=e.decryptionWorker,r=e.segment,a=e.abortFn,o=e.progressFn,s=e.trackInfoFn,u=e.timingInfoFn,c=e.videoSegmentTimingInfoFn,l=e.audioSegmentTimingInfoFn,d=e.id3Fn,f=e.captionsFn,h=e.isEndOfTimeline,p=e.endedTimelineFn,g=e.dataFn,v=e.doneFn,m=e.onTransmuxerLog,y=[],b=vo({activeXhrs:y,decryptionWorker:i,trackInfoFn:s,timingInfoFn:u,videoSegmentTimingInfoFn:c,audioSegmentTimingInfoFn:l,id3Fn:d,captionsFn:f,isEndOfTimeline:h,endedTimelineFn:p,dataFn:g,doneFn:v,onTransmuxerLog:m});if(r.key&&!r.key.bytes){var _=[r.key];r.map&&!r.map.bytes&&r.map.key&&r.map.key.resolvedUri===r.key.resolvedUri&&_.push(r.map.key);var w=Pr.mergeOptions(n,{uri:r.key.resolvedUri,responseType:"arraybuffer"}),T=co(r,_,b),S=t(w,T);y.push(S)}if(r.map&&!r.map.bytes){var k=r.map.key&&(!r.key||r.key.resolvedUri!==r.map.key.resolvedUri);if(k){var x=Pr.mergeOptions(n,{uri:r.map.key.resolvedUri,responseType:"arraybuffer"}),C=co(r,[r.map.key],b),E=t(x,C);y.push(E)}var A=Pr.mergeOptions(n,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:Aa(r.map)}),O=function(e){var t=e.segment,n=e.finishProcessingFn;return function(e,i){var r=uo(e,i);if(r)return n(r,t);var a=new Uint8Array(i.response);if(t.map.key)return t.map.encryptedBytes=a,n(null,t);t.map.bytes=a,lo(t,(function(e){if(e)return e.xhr=i,e.status=i.status,n(e,t);n(null,t)}))}}({segment:r,finishProcessingFn:b}),j=t(A,O);y.push(j)}var I=Pr.mergeOptions(n,{uri:r.part&&r.part.resolvedUri||r.resolvedUri,responseType:"arraybuffer",headers:Aa(r)}),P=fo({segment:r,finishProcessingFn:b,responseType:I.responseType}),M=t(I,P);M.addEventListener("progress",mo({segment:r,progressFn:o,trackInfoFn:s,timingInfoFn:u,videoSegmentTimingInfoFn:c,audioSegmentTimingInfoFn:l,id3Fn:d,captionsFn:f,isEndOfTimeline:h,endedTimelineFn:p,dataFn:g})),y.push(M);var L={};return y.forEach((function(e){e.addEventListener("loadend",function(e){var t=e.loadendState,n=e.abortFn;return function(e){var i=e.target;i.aborted&&n&&!t.calledAbortFn&&(n(),t.calledAbortFn=!0)}}({loadendState:L,abortFn:a}))})),function(){return so(y)}},bo=Nr("CodecUtils"),_o=function(e,t){var n=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&n.AUDIO&&e.mediaGroups.AUDIO[n.AUDIO]},wo=function(e){var t={};return e.forEach((function(e){var n=e.mediaType,i=e.type,r=e.details;t[n]=t[n]||[],t[n].push((0,b.translateLegacyCodec)(""+i+r))})),Object.keys(t).forEach((function(e){if(t[e].length>1)return bo("multiple "+e+" codecs found as attributes: "+t[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),void(t[e]=null);t[e]=t[e][0]})),t},To=function(e){var t=0;return e.audio&&t++,e.video&&t++,t},So=function(e,t){var n=t.attributes||{},i=wo(function(e){var t=e.attributes||{};if(t.CODECS)return(0,b.parseCodecs)(t.CODECS)}(t)||[]);if(_o(e,t)&&!i.audio&&!function(e,t){if(!_o(e,t))return!0;var n=t.attributes||{},i=e.mediaGroups.AUDIO[n.AUDIO];for(var r in i)if(!i[r].uri&&!i[r].playlists)return!0;return!1}(e,t)){var r=wo((0,b.codecsFromDefault)(e,n.AUDIO)||[]);r.audio&&(i.audio=r.audio)}return i},ko=Nr("PlaylistSelector"),xo=function(e){if(e&&e.playlist){var t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})}},Co=function(e,t){if(!e)return"";var n=o.default.getComputedStyle(e);return n?n[t]:""},Eo=function(e,t){var n=e.slice();e.sort((function(e,i){var r=t(e,i);return 0===r?n.indexOf(e)-n.indexOf(i):r}))},Ao=function(e,t){var n,i;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||o.default.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(i=t.attributes.BANDWIDTH),i=i||o.default.Number.MAX_VALUE,n-i},Oo=function(e,t,n,i,r,a){if(e){var s={bandwidth:t,width:n,height:i,limitRenditionByPlayerDimensions:r},u=e.playlists;ca.isAudioOnly(e)&&(u=a.getAudioTrackPlaylists_(),s.audioOnly=!0);var c=u.map((function(e){var t,n=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,i=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return t=e.attributes&&e.attributes.BANDWIDTH,t=t||o.default.Number.MAX_VALUE,{bandwidth:t,width:n,height:i,playlist:e}}));Eo(c,(function(e,t){return e.bandwidth-t.bandwidth})),c=c.filter((function(e){return!ca.isIncompatible(e.playlist)}));var l=c.filter((function(e){return ca.isEnabled(e.playlist)}));l.length||(l=c.filter((function(e){return!ca.isDisabled(e.playlist)})));var d=l.filter((function(e){return e.bandwidth*Wa.BANDWIDTH_VARIANCE<t})),f=d[d.length-1],h=d.filter((function(e){return e.bandwidth===f.bandwidth}))[0];if(!1===r){var p=h||l[0]||c[0];if(p&&p.playlist){var g="sortedPlaylistReps";return h&&(g="bandwidthBestRep"),l[0]&&(g="enabledPlaylistReps"),ko("choosing "+xo(p)+" using "+g+" with options",s),p.playlist}return ko("could not choose a playlist with options",s),null}var v=d.filter((function(e){return e.width&&e.height}));Eo(v,(function(e,t){return e.width-t.width}));var m=v.filter((function(e){return e.width===n&&e.height===i}));f=m[m.length-1];var y,b,_,w,T=m.filter((function(e){return e.bandwidth===f.bandwidth}))[0];if(T||(y=v.filter((function(e){return e.width>n||e.height>i})),b=y.filter((function(e){return e.width===y[0].width&&e.height===y[0].height})),f=b[b.length-1],_=b.filter((function(e){return e.bandwidth===f.bandwidth}))[0]),a.experimentalLeastPixelDiffSelector){var S=v.map((function(e){return e.pixelDiff=Math.abs(e.width-n)+Math.abs(e.height-i),e}));Eo(S,(function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff})),w=S[0]}var k=w||_||T||h||l[0]||c[0];if(k&&k.playlist){var x="sortedPlaylistReps";return w?x="leastPixelDiffRep":_?x="resolutionPlusOneRep":T?x="resolutionBestRep":h?x="bandwidthBestRep":l[0]&&(x="enabledPlaylistReps"),ko("choosing "+xo(k)+" using "+x+" with options",s),k.playlist}return ko("could not choose a playlist with options",s),null}},jo=function(){var e=this.useDevicePixelRatio&&o.default.devicePixelRatio||1;return Oo(this.playlists.master,this.systemBandwidth,parseInt(Co(this.tech_.el(),"width"),10)*e,parseInt(Co(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},Io=function(e){var t=e.inbandTextTracks,n=e.metadataArray,i=e.timestampOffset,r=e.videoDuration;if(n){var a=o.default.WebKitDataCue||o.default.VTTCue,s=t.metadataTrack_;if(s&&(n.forEach((function(e){var t=e.cueTime+i;!("number"!==typeof t||o.default.isNaN(t)||t<0)&&t<1/0&&e.frames.forEach((function(e){var n=new a(t,t,e.value||e.url||e.data||"");n.frame=e,n.value=e,function(e){Object.defineProperties(e.frame,{id:{get:function(){return Pr.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return Pr.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return Pr.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})}(n),s.addCue(n)}))})),s.cues&&s.cues.length)){for(var u=s.cues,c=[],l=0;l<u.length;l++)u[l]&&c.push(u[l]);var d=c.reduce((function(e,t){var n=e[t.startTime]||[];return n.push(t),e[t.startTime]=n,e}),{}),f=Object.keys(d).sort((function(e,t){return Number(e)-Number(t)}));f.forEach((function(e,t){var n=d[e],i=Number(f[t+1])||r;n.forEach((function(e){e.endTime=i}))}))}}},Po=function(e,t,n){var i,r;if(n&&n.cues){i=n.cues.length;while(i--)r=n.cues[i],r.startTime>=e&&r.endTime<=t&&n.removeCue(r)}},Mo=function(e){return"number"===typeof e&&isFinite(e)},Lo=function(e){var t=e.startOfSegment,n=e.duration,i=e.segment,r=e.part,a=e.playlist,o=a.mediaSequence,s=a.id,u=a.segments,c=void 0===u?[]:u,l=e.mediaIndex,d=e.partIndex,f=e.timeline,h=c.length-1,p="mediaIndex/partIndex increment";e.getMediaInfoForTime?p="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(p="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(p+=" with independent "+e.independent);var g="number"===typeof d,v=e.segment.uri?"segment":"pre-segment",m=g?Xr({preloadSegment:i})-1:0;return v+" ["+(o+l)+"/"+(o+h)+"]"+(g?" part ["+d+"/"+m+"]":"")+" segment start/end ["+i.start+" => "+i.end+"]"+(g?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+t+"] duration ["+n+"] timeline ["+f+"] selected by ["+p+"] playlist ["+s+"]"},Do=function(e){return e+"TimingInfo"},Ro=function(e){var t=e.timelineChangeController,n=e.currentTimeline,i=e.segmentTimeline,r=e.loaderType,a=e.audioDisabled;if(n===i)return!1;if("audio"===r){var o=t.lastTimelineChange({type:"main"});return!o||o.to!==i}if("main"===r&&a){var s=t.pendingTimelineChange({type:"audio"});return!s||s.to!==i}return!1},No=function(e){var t=e.segmentDuration,n=e.maxDuration;return!!t&&Math.round(t)>n+1/30},Bo=function(e,t){if("hls"!==t)return null;var n=function(e){var t=0;return["video","audio"].forEach((function(n){var i=e[n+"TimingInfo"];if(i){var r,a=i.start,s=i.end;"bigint"===typeof a||"bigint"===typeof s?r=o.default.BigInt(s)-o.default.BigInt(a):"number"===typeof a&&"number"===typeof s&&(r=s-a),"undefined"!==typeof r&&r>t&&(t=r)}})),"bigint"===typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),t}({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!n)return null;var i=e.playlist.targetDuration,r=No({segmentDuration:n,maxDuration:2*i}),a=No({segmentDuration:n,maxDuration:i}),s="Segment with index "+e.mediaIndex+" from playlist "+e.playlist.id+" has a duration of "+n+" when the reported duration is "+e.duration+" and the target duration is "+i+". For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";return r||a?{severity:r?"warn":"info",message:s}:null},Uo=function(e){function t(t,n){var i;if(i=e.call(this)||this,!t)throw new TypeError("Initialization settings are required");if("function"!==typeof t.currentTime)throw new TypeError("No currentTime getter specified");if(!t.mediaSource)throw new TypeError("No MediaSource specified");return i.bandwidth=t.bandwidth,i.throughput={rate:0,count:0},i.roundTrip=NaN,i.resetStats_(),i.mediaIndex=null,i.partIndex=null,i.hasPlayed_=t.hasPlayed,i.currentTime_=t.currentTime,i.seekable_=t.seekable,i.seeking_=t.seeking,i.duration_=t.duration,i.mediaSource_=t.mediaSource,i.vhs_=t.vhs,i.loaderType_=t.loaderType,i.currentMediaInfo_=void 0,i.startingMediaInfo_=void 0,i.segmentMetadataTrack_=t.segmentMetadataTrack,i.goalBufferLength_=t.goalBufferLength,i.sourceType_=t.sourceType,i.sourceUpdater_=t.sourceUpdater,i.inbandTextTracks_=t.inbandTextTracks,i.state_="INIT",i.timelineChangeController_=t.timelineChangeController,i.shouldSaveSegmentTimingInfo_=!0,i.parse708captions_=t.parse708captions,i.useDtsForTimestampOffset_=t.useDtsForTimestampOffset,i.captionServices_=t.captionServices,i.experimentalExactManifestTimings=t.experimentalExactManifestTimings,i.checkBufferTimeout_=null,i.error_=void 0,i.currentTimeline_=-1,i.pendingSegment_=null,i.xhrOptions_=null,i.pendingSegments_=[],i.audioDisabled_=!1,i.isPendingTimestampOffset_=!1,i.gopBuffer_=[],i.timeMapping_=0,i.safeAppend_=Pr.browser.IE_VERSION>=11,i.appendInitSegment_={audio:!0,video:!0},i.playlistOfLastInitSegment_={audio:null,video:null},i.callQueue_=[],i.loadQueue_=[],i.metadataQueue_={id3:[],caption:[]},i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=null,i.activeInitSegmentId_=null,i.initSegments_={},i.cacheEncryptionKeys_=t.cacheEncryptionKeys,i.keyCache_={},i.decrypter_=t.decrypter,i.syncController_=t.syncController,i.syncPoint_={segmentIndex:0,time:0},i.transmuxer_=i.createTransmuxer_(),i.triggerSyncInfoUpdate_=function(){return i.trigger("syncinfoupdate")},i.syncController_.on("syncinfoupdate",i.triggerSyncInfoUpdate_),i.mediaSource_.addEventListener("sourceopen",(function(){i.isEndOfStream_()||(i.ended_=!1)})),i.fetchAtBuffer_=!1,i.logger_=Nr("SegmentLoader["+i.loaderType_+"]"),Object.defineProperty((0,l.default)(i),"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e,this.trigger("statechange"))}}),i.sourceUpdater_.on("ready",(function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),"main"===i.loaderType_&&i.timelineChangeController_.on("pendingtimelinechange",(function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),"audio"===i.loaderType_&&i.timelineChangeController_.on("timelinechange",(function(){i.hasEnoughInfoToLoad_()&&i.processLoadQueue_(),i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),i}(0,d.default)(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return ro.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})},n.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},n.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&o.default.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},n.setAudio=function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},n.abort=function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)},n.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,o.default.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},n.checkForAbort_=function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)},n.error=function(e){return"undefined"!==typeof e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_},n.endOfStream=function(){this.ended_=!0,this.transmuxer_&&ro.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},n.buffered_=function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return Pr.createTimeRanges();if("main"===this.loaderType_){var t=e.hasAudio,n=e.hasVideo,i=e.isMuxed;if(n&&t&&!this.audioDisabled_&&!i)return this.sourceUpdater_.buffered();if(n)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Ma(e),i=this.initSegments_[n];return t&&!i&&e.bytes&&(this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),i||e},n.segmentKey=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=La(e),i=this.keyCache_[n];this.cacheEncryptionKeys_&&t&&!i&&e.bytes&&(this.keyCache_[n]=i={resolvedUri:e.resolvedUri,bytes:e.bytes});var r={resolvedUri:(i||e).resolvedUri};return i&&(r.bytes=i.bytes),r},n.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},n.load=function(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.playlist=function(e,t){if(void 0===t&&(t={}),e){var n=this.playlist_,i=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));var r=null;if(n&&(n.id?r=n.id:n.uri&&(r=n.uri)),this.logger_("playlist update ["+r+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==e.uri)return null!==this.mediaIndex&&(e.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var a=e.mediaSequence-n.mediaSequence;if(this.logger_("live window shift ["+a+"]"),null!==this.mediaIndex)if(this.mediaIndex-=a,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var o=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!o.parts||!o.parts.length||!o.parts[this.partIndex])){var s=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=s}}i&&(i.mediaIndex-=a,i.mediaIndex<0?(i.mediaIndex=null,i.partIndex=null):(i.mediaIndex>=0&&(i.segment=e.segments[i.mediaIndex]),i.partIndex>=0&&i.segment.parts&&(i.part=i.segment.parts[i.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,e)}},n.pause=function(){this.checkBufferTimeout_&&(o.default.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},n.paused=function(){return null===this.checkBufferTimeout_},n.resetEverything=function(e){this.ended_=!1,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))},n.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},n.resyncLoader=function(){this.transmuxer_&&ro.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},n.remove=function(e,t,n,i){if(void 0===n&&(n=function(){}),void 0===i&&(i=!1),t===1/0&&(t=this.duration_()),t<=e)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var r=1,a=function(){r--,0===r&&n()};for(var o in!i&&this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(e,t,a)),(i||"main"===this.loaderType_)&&(this.gopBuffer_=function(e,t,n,i){var r=Math.ceil((t-i)*C.ONE_SECOND_IN_TS),a=Math.ceil((n-i)*C.ONE_SECOND_IN_TS),o=e.slice(),s=e.length;while(s--)if(e[s].pts<=a)break;if(-1===s)return o;var u=s+1;while(u--)if(e[u].pts<=r)break;return u=Math.max(u,0),o.splice(u,s-u+1),o}(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,a)),this.inbandTextTracks_)Po(e,t,this.inbandTextTracks_[o]);Po(e,t,this.segmentMetadataTrack_),a()}else this.logger_("skipping remove because no source updater or starting media info")},n.monitorBuffer_=function(){this.checkBufferTimeout_&&o.default.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=o.default.setTimeout(this.monitorBufferTick_.bind(this),1)},n.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&o.default.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=o.default.setTimeout(this.monitorBufferTick_.bind(this),500)},n.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var e=this.chooseNextRequest_();e&&("number"===typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}},n.isEndOfStream_=function(e,t,n){if(void 0===e&&(e=this.mediaIndex),void 0===t&&(t=this.playlist_),void 0===n&&(n=this.partIndex),!t||!this.mediaSource_)return!1;var i="number"===typeof e&&t.segments[e],r=e+1===t.segments.length,a=!i||!i.parts||n+1===i.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&r&&a},n.chooseNextRequest_=function(){var e=this.buffered_(),t=Vr(e)||0,n=zr(e,this.currentTime_()),i=!this.hasPlayed_()&&n>=1,r=n>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||i||r)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var o={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(o.isSyncRequest)o.mediaIndex=function(e,t,n){t=t||[];for(var i=[],r=0,a=0;a<t.length;a++){var o=t[a];if(e===o.timeline&&(i.push(a),r+=o.duration,r>n))return a}return 0===i.length?0:i[i.length-1]}(this.currentTimeline_,a,t);else if(null!==this.mediaIndex){var s=a[this.mediaIndex],u="number"===typeof this.partIndex?this.partIndex:-1;o.startOfSegment=s.end?s.end:t,s.parts&&s.parts[u+1]?(o.mediaIndex=this.mediaIndex,o.partIndex=u+1):o.mediaIndex=this.mediaIndex+1}else{var c=ca.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),l=c.segmentIndex,d=c.startTime,f=c.partIndex;o.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+t:"currentTime "+this.currentTime_(),o.mediaIndex=l,o.startOfSegment=d,o.partIndex=f}var h=a[o.mediaIndex],p=h&&"number"===typeof o.partIndex&&h.parts&&h.parts[o.partIndex];if(!h||"number"===typeof o.partIndex&&!p)return null;if("number"!==typeof o.partIndex&&h.parts&&(o.partIndex=0,p=h.parts[0]),!n&&p&&!p.independent)if(0===o.partIndex){var g=a[o.mediaIndex-1],v=g.parts&&g.parts.length&&g.parts[g.parts.length-1];v&&v.independent&&(o.mediaIndex-=1,o.partIndex=g.parts.length-1,o.independent="previous segment")}else h.parts[o.partIndex-1].independent&&(o.partIndex-=1,o.independent="previous part");var m=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return o.mediaIndex>=a.length-1&&m&&!this.seeking_()?null:this.generateSegmentInfo_(o)},n.generateSegmentInfo_=function(e){var t=e.independent,n=e.playlist,i=e.mediaIndex,r=e.startOfSegment,a=e.isSyncRequest,o=e.partIndex,s=e.forceTimestampOffset,u=e.getMediaInfoForTime,c=n.segments[i],l="number"===typeof o&&c.parts[o],d={requestId:"segment-loader-"+Math.random(),uri:l&&l.resolvedUri||c.resolvedUri,mediaIndex:i,partIndex:l?o:null,isSyncRequest:a,startOfSegment:r,playlist:n,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:c.timeline,duration:l&&l.duration||c.duration,segment:c,part:l,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:u,independent:t},f="undefined"!==typeof s?s:this.isPendingTimestampOffset_;d.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:c.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:f});var h=Vr(this.sourceUpdater_.audioBuffered());return"number"===typeof h&&(d.audioAppendStart=h-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(d.gopsToAlignWith=function(e,t,n){if("undefined"===typeof t||null===t||!e.length)return[];var i,r=Math.ceil((t-n+3)*C.ONE_SECOND_IN_TS);for(i=0;i<e.length;i++)if(e[i].pts>r)break;return e.slice(i)}(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),d},n.timestampOffsetForSegment_=function(e){return function(e){var t=e.segmentTimeline,n=e.currentTimeline,i=e.startOfSegment,r=e.buffered,a=e.overrideCheck;return a||t!==n?t<n?i:r.length?r.end(r.length-1):i:null}(e)},n.earlyAbortWhenNeeded_=function(e){if(!this.vhs_.tech_.paused()&&this.xhrOptions_.timeout&&this.playlist_.attributes.BANDWIDTH&&!(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)){var t=this.currentTime_(),n=e.bandwidth,i=this.pendingSegment_.duration,r=ca.estimateSegmentRequestTime(i,n,this.playlist_,e.bytesReceived),a=function(e,t,n){void 0===n&&(n=1);var i=e.length?e.end(e.length-1):0;return(i-t)/n}(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(!(r<=a)){var o=function(e){var t=e.master,n=e.currentTime,i=e.bandwidth,r=e.duration,a=e.segmentDuration,o=e.timeUntilRebuffer,s=e.currentTimeline,u=e.syncController,c=t.playlists.filter((function(e){return!ca.isIncompatible(e)})),l=c.filter(ca.isEnabled);l.length||(l=c.filter((function(e){return!ca.isDisabled(e)})));var d=l.filter(ca.hasAttribute.bind(null,"BANDWIDTH")),f=d.map((function(e){var t=u.getSyncPoint(e,r,s,n),c=t?1:2,l=ca.estimateSegmentRequestTime(a,i,e),d=l*c-o;return{playlist:e,rebufferingImpact:d}})),h=f.filter((function(e){return e.rebufferingImpact<=0}));return Eo(h,(function(e,t){return Ao(t.playlist,e.playlist)})),h.length?h[0]:(Eo(f,(function(e,t){return e.rebufferingImpact-t.rebufferingImpact})),f[0]||null)}({master:this.vhs_.playlists.master,currentTime:t,bandwidth:n,duration:this.duration_(),segmentDuration:i,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(o){var s=r-a,u=s-o.rebufferingImpact,c=.5;a<=1/30&&(c=1),!o.playlist||o.playlist.uri===this.playlist_.uri||u<c||(this.bandwidth=o.playlist.attributes.BANDWIDTH*Wa.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}},n.handleAbort_=function(e){this.logger_("Aborting "+Lo(e)),this.mediaRequestsAborted+=1},n.handleProgress_=function(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")},n.handleTrackInfo_=function(e,t){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(t=t||{},function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;var n=Object.keys(e).sort(),i=Object.keys(t).sort();if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++){var a=n[r];if(a!==i[r])return!1;if(e[a]!==t[a])return!1}return!0}(this.currentMediaInfo_,t)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),this.checkForAbort_(e.requestId)||(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))},n.handleTimingInfo_=function(e,t,n,i){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){var r=this.pendingSegment_,a=Do(t);r[a]=r[a]||{},r[a][n]=i,this.logger_("timinginfo: "+t+" - "+n+" - "+i),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}},n.handleCaptions_=function(e,t){var n=this;if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(0!==t.length){var i=this.pendingSegment_;if(i.hasAppendedData_){var r=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),a={};t.forEach((function(e){a[e.stream]=a[e.stream]||{startTime:1/0,captions:[],endTime:0};var t=a[e.stream];t.startTime=Math.min(t.startTime,e.startTime+r),t.endTime=Math.max(t.endTime,e.endTime+r),t.captions.push(e)})),Object.keys(a).forEach((function(e){var t=a[e],i=t.startTime,s=t.endTime,u=t.captions,c=n.inbandTextTracks_;n.logger_("adding cues from "+i+" -> "+s+" for "+e),function(e,t,n){if(!e[n]){t.trigger({type:"usage",name:"vhs-608"}),t.trigger({type:"usage",name:"hls-608"});var i=n;/^cc708_/.test(n)&&(i="SERVICE"+n.split("_")[1]);var r=t.textTracks().getTrackById(i);if(r)e[n]=r;else{var a=t.options_.vhs&&t.options_.vhs.captionServices||{},o=n,s=n,u=!1,c=a[i];c&&(o=c.label,s=c.language,u=c["default"]),e[n]=t.addRemoteTextTrack({kind:"captions",id:i,default:u,label:o,language:s},!1).track}}}(c,n.vhs_.tech_,e),Po(i,s,c[e]),function(e){var t=e.inbandTextTracks,n=e.captionArray,i=e.timestampOffset;if(n){var r=o.default.WebKitDataCue||o.default.VTTCue;n.forEach((function(e){var n=e.stream;t[n].addCue(new r(e.startTime+i,e.endTime+i,e.text))}))}}({captionArray:u,inbandTextTracks:c,timestampOffset:r})})),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}else this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t))}else this.logger_("SegmentLoader received no captions from a caption event")},n.handleId3_=function(e,t,n){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){var i=this.pendingSegment_;if(i.hasAppendedData_){var r=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();(function(e,t,n){e.metadataTrack_||(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=t)})(this.inbandTextTracks_,n,this.vhs_.tech_),Io({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:r,videoDuration:this.duration_()})}else this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,n))}},n.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach((function(e){return e()})),this.metadataQueue_.caption.forEach((function(e){return e()})),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},n.processCallQueue_=function(){var e=this.callQueue_;this.callQueue_=[],e.forEach((function(e){return e()}))},n.processLoadQueue_=function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach((function(e){return e()}))},n.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!Ro({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.getCurrentMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),e&&e.trackInfo||this.currentMediaInfo_},n.getMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),this.getCurrentMediaInfo_(e)||this.startingMediaInfo_},n.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;var n=t.hasAudio,i=t.hasVideo,r=t.isMuxed;return!(i&&!e.videoTimingInfo)&&(!(n&&!this.audioDisabled_&&!r&&!e.audioTimingInfo)&&!Ro({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.handleData_=function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(!this.callQueue_.length&&this.hasEnoughInfoToAppend_()){var n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(n.part||n.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),n.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),n.isFmp4=e.isFmp4,n.timingInfo=n.timingInfo||{},n.isFmp4)this.trigger("fmp4"),n.timingInfo.start=n[Do(t.type)].start;else{var i,r=this.getCurrentMediaInfo_(),a="main"===this.loaderType_&&r&&r.hasVideo;a&&(i=n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:a,firstVideoFrameTimeForData:i,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(n,t.type),this.updateSourceBufferTimestampOffset_(n),n.isSyncRequest){this.updateTimingInfoEnd_(n),this.syncController_.saveSegmentTimingInfo({segmentInfo:n,shouldSaveTimelineMapping:"main"===this.loaderType_});var o=this.chooseNextRequest_();if(o.mediaIndex!==n.mediaIndex||o.partIndex!==n.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}n.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(n,t)}}else this.callQueue_.push(this.handleData_.bind(this,e,t))},n.updateAppendInitSegmentStatus=function(e,t){"main"!==this.loaderType_||"number"!==typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)},n.getInitSegmentAndUpdateState_=function(e){var t=e.type,n=e.initSegment,i=e.map,r=e.playlist;if(i){var a=Ma(i);if(this.activeInitSegmentId_===a)return null;n=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=a}return n&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=r,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,n):null},n.handleQuotaExceededError_=function(e,t){var n=this,i=e.segmentInfo,r=e.type,a=e.bytes,s=this.sourceUpdater_.audioBuffered(),u=this.sourceUpdater_.videoBuffered();s.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+Hr(s).join(", ")),u.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Hr(u).join(", "));var c=s.length?s.start(0):0,l=s.length?s.end(s.length-1):0,d=u.length?u.start(0):0,f=u.length?u.end(u.length-1):0;if(l-c<=1&&f-d<=1)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+a.byteLength+", audio buffer: "+Hr(s).join(", ")+", video buffer: "+Hr(u).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:i,type:r,bytes:a}));var h=this.currentTime_(),p=h-1;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+p),this.remove(0,p,(function(){n.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=o.default.setTimeout((function(){n.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),n.quotaExceededErrorRetryTimeout_=null,n.processCallQueue_()}),1e3)}),!0)},n.handleAppendError_=function(e,t){var n=e.segmentInfo,i=e.type,r=e.bytes;t&&(22!==t.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error(i+" append of "+r.length+"b failed for segment #"+n.mediaIndex+" in playlist "+n.playlist.id),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:n,type:i,bytes:r}))},n.appendToSourceBuffer_=function(e){var t=e.segmentInfo,n=e.type,i=e.initSegment,r=e.data,a=e.bytes;if(!a){var o=[r],s=r.byteLength;i&&(o.unshift(i),s+=i.byteLength),a=function(e){var t,n=0;return e.bytes&&(t=new Uint8Array(e.bytes),e.segments.forEach((function(e){t.set(e,n),n+=e.byteLength}))),t}({bytes:s,segments:o})}this.sourceUpdater_.appendBuffer({segmentInfo:t,type:n,bytes:a},this.handleAppendError_.bind(this,{segmentInfo:t,type:n,bytes:a}))},n.handleSegmentTimingInfo_=function(e,t,n){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var i=this.pendingSegment_.segment,r=e+"TimingInfo";i[r]||(i[r]={}),i[r].transmuxerPrependedSeconds=n.prependedContentDuration||0,i[r].transmuxedPresentationStart=n.start.presentation,i[r].transmuxedDecodeStart=n.start.decode,i[r].transmuxedPresentationEnd=n.end.presentation,i[r].transmuxedDecodeEnd=n.end.decode,i[r].baseMediaDecodeTime=n.baseMediaDecodeTime}},n.appendData_=function(e,t){var n=t.type,i=t.data;if(i&&i.byteLength&&("audio"!==n||!this.audioDisabled_)){var r=this.getInitSegmentAndUpdateState_({type:n,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:n,initSegment:r,data:i})}},n.loadSegment_=function(e){var t=this;this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"===typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(e):this.loadQueue_.push((function(){var n=(0,u.default)({},e,{forceTimestampOffset:!0});(0,u.default)(e,t.generateSegmentInfo_(n)),t.isPendingTimestampOffset_=!1,t.updateTransmuxerAndRequestSegment_(e)}))},n.updateTransmuxerAndRequestSegment_=function(e){var t=this;this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));var n=this.createSimplifiedSegmentObj_(e),i=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),r=null!==this.mediaIndex,a=e.timeline!==this.currentTimeline_&&e.timeline>0,o=i||r&&a;this.logger_("Requesting "+Lo(e)),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=yo({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:n,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:o,endedTimelineFn:function(){t.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(n){var i=n.message,r=n.level,a=n.stream;t.logger_(Lo(e)+" logged from transmuxer stream "+a+" as a "+r+": "+i)}})},n.trimBackBuffer_=function(e){var t=function(e,t,n){var i=t-Wa.BACK_BUFFER_LENGTH;e.length&&(i=Math.max(i,e.start(0)));var r=t-n;return Math.min(r,i)}(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)},n.createSimplifiedSegmentObj_=function(e){var t=e.segment,n=e.part,i={resolvedUri:n?n.resolvedUri:t.resolvedUri,byterange:n?n.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},r=e.playlist.segments[e.mediaIndex-1];if(r&&r.timeline===t.timeline&&(r.videoTimingInfo?i.baseStartTime=r.videoTimingInfo.transmuxedDecodeEnd:r.audioTimingInfo&&(i.baseStartTime=r.audioTimingInfo.transmuxedDecodeEnd)),t.key){var a=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);i.key=this.segmentKey(t.key),i.key.iv=a}return t.map&&(i.map=this.initSegmentForMap(t.map)),i},n.saveTransferStats_=function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)},n.saveBandwidthRelatedStats_=function(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e<1/60?this.logger_("Ignoring segment's bandwidth because its duration of "+e+" is less than the min to record "+1/60):(this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime)},n.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate")},n.segmentRequestFinished_=function(e,t,n){if(this.callQueue_.length)this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,n));else if(this.saveTransferStats_(t.stats),this.pendingSegment_&&t.requestId===this.pendingSegment_.requestId){if(e){if(this.pendingSegment_=null,this.state="READY",e.code===oo.ABORTED)return;return this.pause(),e.code===oo.TIMEOUT?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}var i=this.pendingSegment_;this.saveBandwidthRelatedStats_(i.duration,t.stats),i.endOfAllRequests=t.endOfAllRequests,n.gopInfo&&(this.gopBuffer_=function(e,t,n){if(!t.length)return e;if(n)return t.slice();var i=t[0].pts,r=0;for(r;r<e.length;r++)if(e[r].pts>=i)break;return e.slice(0,r).concat(t)}(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(i)}},n.setTimeMapping_=function(e){var t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)},n.updateMediaSecondsLoaded_=function(e){"number"===typeof e.start&&"number"===typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration},n.shouldUpdateTransmuxerTimestampOffset_=function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())},n.trueSegmentStart_=function(e){var t=e.currentStart,n=e.playlist,i=e.mediaIndex,r=e.firstVideoFrameTimeForData,a=e.currentVideoTimestampOffset,o=e.useVideoTimingInfo,s=e.videoTimingInfo,u=e.audioTimingInfo;if("undefined"!==typeof t)return t;if(!o)return u.start;var c=n.segments[i-1];return 0!==i&&c&&"undefined"!==typeof c.start&&c.end===r+a?s.start:r},n.waitForAppendsToComplete_=function(e){var t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");var n=t.hasAudio,i=t.hasVideo,r=t.isMuxed,a="main"===this.loaderType_&&i,o=!this.audioDisabled_&&n&&!r;if(e.waitingOnAppends=0,!e.hasAppendedData_)return e.timingInfo||"number"!==typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);a&&e.waitingOnAppends++,o&&e.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),o&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))},n.checkAppendsDone_=function(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())},n.checkForIllegalMediaSwitch=function(e){var t=function(e,t,n){return"main"===e&&t&&n?n.hasAudio||n.hasVideo?t.hasVideo&&!n.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&n.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null}(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,blacklistDuration:1/0}),this.trigger("error"),!0)},n.updateSourceBufferTimestampOffset_=function(e){if(null!==e.timestampOffset&&"number"===typeof e.timingInfo.start&&!e.changedTimestampOffset&&"main"===this.loaderType_){var t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}},n.getSegmentStartTimeForTimestampOffsetCalculation_=function(e){var t=e.videoTimingInfo,n=e.audioTimingInfo,i=e.timingInfo;return this.useDtsForTimestampOffset_?t&&"number"===typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:n&&"number"===typeof n.transmuxedDecodeStart?n.transmuxedDecodeStart:i.start:i.start},n.updateTimingInfoEnd_=function(e){e.timingInfo=e.timingInfo||{};var t=this.getMediaInfo_(),n="main"===this.loaderType_&&t&&t.hasVideo,i=n&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;i&&(e.timingInfo.end="number"===typeof i.end?i.end:i.start+e.duration)},n.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});var t=Bo(e,this.sourceType_);if(t&&("warn"===t.severity?Pr.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",!e.isSyncRequest||(this.trigger("syncinfoupdate"),e.hasAppendedData_)){this.logger_("Appended "+Lo(e)),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");var n=e.segment,i=e.part,r=n.end&&this.currentTime_()-n.end>3*e.playlist.targetDuration,a=i&&i.end&&this.currentTime_()-i.end>3*e.playlist.partTargetDuration;if(r||a)return this.logger_("bad "+(r?"segment":"part")+" "+Lo(e)),void this.resetEverything();var o=null!==this.mediaIndex;o&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}else this.logger_("Throwing away un-appended sync request "+Lo(e))},n.recordThroughput_=function(e){if(e.duration<1/60)this.logger_("Ignoring segment's throughput because its duration of "+e.duration+" is less than the min to record "+1/60);else{var t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,i=Math.floor(e.byteLength/n*8*1e3);this.throughput.rate+=(i-t)/++this.throughput.count}},n.addSegmentMetadataCue_=function(e){if(this.segmentMetadataTrack_){var t=e.segment,n=t.start,i=t.end;if(Mo(n)&&Mo(i)){Po(n,i,this.segmentMetadataTrack_);var r=o.default.WebKitDataCue||o.default.VTTCue,a={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:n,end:i},s=JSON.stringify(a),u=new r(n,i,s);u.value=a,this.segmentMetadataTrack_.addCue(u)}}},t}(Pr.EventTarget);function Fo(){}var $o,Ho=function(e){return"string"!==typeof e?e:e.replace(/./,(function(e){return e.toUpperCase()}))},Vo=["video","audio"],zo=function(e,t){var n=t[e+"Buffer"];return n&&n.updating||t.queuePending[e]},qo=function e(t,n){if(0!==n.queue.length){var i=0,r=n.queue[i];if("mediaSource"!==r.type){if("mediaSource"!==t&&n.ready()&&"closed"!==n.mediaSource.readyState&&!zo(t,n)){if(r.type!==t){if(i=function(e,t){for(var n=0;n<t.length;n++){var i=t[n];if("mediaSource"===i.type)return null;if(i.type===e)return n}return null}(t,n.queue),null===i)return;r=n.queue[i]}return n.queue.splice(i,1),n.queuePending[t]=r,r.action(t,n),r.doneFn?void 0:(n.queuePending[t]=null,void e(t,n))}}else n.updating()||"closed"===n.mediaSource.readyState||(n.queue.shift(),r.action(n),r.doneFn&&r.doneFn(),e("audio",n),e("video",n))}},Wo=function(e,t){var n=t[e+"Buffer"],i=Ho(e);n&&(n.removeEventListener("updateend",t["on"+i+"UpdateEnd_"]),n.removeEventListener("error",t["on"+i+"Error_"]),t.codecs[e]=null,t[e+"Buffer"]=null)},Go=function(e,t){return e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t)},Yo={appendBuffer:function(e,t,n){return function(i,r){var a=r[i+"Buffer"];if(Go(r.mediaSource,a)){r.logger_("Appending segment "+t.mediaIndex+"'s "+e.length+" bytes to "+i+"Buffer");try{a.appendBuffer(e)}catch(o){r.logger_("Error with code "+o.code+" "+(22===o.code?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment "+t.mediaIndex+" to "+i+"Buffer"),r.queuePending[i]=null,n(o)}}}},remove:function(e,t){return function(n,i){var r=i[n+"Buffer"];if(Go(i.mediaSource,r)){i.logger_("Removing "+e+" to "+t+" from "+n+"Buffer");try{r.remove(e,t)}catch(a){i.logger_("Remove "+e+" to "+t+" from "+n+"Buffer failed")}}}},timestampOffset:function(e){return function(t,n){var i=n[t+"Buffer"];Go(n.mediaSource,i)&&(n.logger_("Setting "+t+"timestampOffset to "+e),i.timestampOffset=e)}},callback:function(e){return function(t,n){e()}},endOfStream:function(e){return function(t){if("open"===t.mediaSource.readyState){t.logger_("Calling mediaSource endOfStream("+(e||"")+")");try{t.mediaSource.endOfStream(e)}catch(n){Pr.log.warn("Failed to call media source endOfStream",n)}}}},duration:function(e){return function(t){t.logger_("Setting mediaSource duration to "+e);try{t.mediaSource.duration=e}catch(n){Pr.log.warn("Failed to set media source duration",n)}}},abort:function(){return function(e,t){if("open"===t.mediaSource.readyState){var n=t[e+"Buffer"];if(Go(t.mediaSource,n)){t.logger_("calling abort on "+e+"Buffer");try{n.abort()}catch(i){Pr.log.warn("Failed to abort on "+e+"Buffer",i)}}}}},addSourceBuffer:function(e,t){return function(n){var i=Ho(e),r=(0,b.getMimeForCodec)(t);n.logger_("Adding "+e+"Buffer with codec "+t+" to mediaSource");var a=n.mediaSource.addSourceBuffer(r);a.addEventListener("updateend",n["on"+i+"UpdateEnd_"]),a.addEventListener("error",n["on"+i+"Error_"]),n.codecs[e]=t,n[e+"Buffer"]=a}},removeSourceBuffer:function(e){return function(t){var n=t[e+"Buffer"];if(Wo(e,t),Go(t.mediaSource,n)){t.logger_("Removing "+e+"Buffer with codec "+t.codecs[e]+" from mediaSource");try{t.mediaSource.removeSourceBuffer(n)}catch(i){Pr.log.warn("Failed to removeSourceBuffer "+e+"Buffer",i)}}}},changeType:function(e){return function(t,n){var i=n[t+"Buffer"],r=(0,b.getMimeForCodec)(e);Go(n.mediaSource,i)&&n.codecs[t]!==e&&(n.logger_("changing "+t+"Buffer codec from "+n.codecs[t]+" to "+e),i.changeType(r),n.codecs[t]=e)}}},Xo=function(e){var t=e.type,n=e.sourceUpdater,i=e.action,r=e.doneFn,a=e.name;n.queue.push({type:t,action:i,doneFn:r,name:a}),qo(t,n)},Ko=function(e,t){return function(n){if(t.queuePending[e]){var i=t.queuePending[e].doneFn;t.queuePending[e]=null,i&&i(t[e+"Error_"])}qo(e,t)}},Qo=function(e){function t(t){var n;return n=e.call(this)||this,n.mediaSource=t,n.sourceopenListener_=function(){return qo("mediaSource",(0,l.default)(n))},n.mediaSource.addEventListener("sourceopen",n.sourceopenListener_),n.logger_=Nr("SourceUpdater"),n.audioTimestampOffset_=0,n.videoTimestampOffset_=0,n.queue=[],n.queuePending={audio:null,video:null},n.delayedAudioAppendQueue_=[],n.videoAppendQueued_=!1,n.codecs={},n.onVideoUpdateEnd_=Ko("video",(0,l.default)(n)),n.onAudioUpdateEnd_=Ko("audio",(0,l.default)(n)),n.onVideoError_=function(e){n.videoError_=e},n.onAudioError_=function(e){n.audioError_=e},n.createdSourceBuffers_=!1,n.initializedEme_=!1,n.triggeredReady_=!1,n}(0,d.default)(t,e);var n=t.prototype;return n.initializedEme=function(){this.initializedEme_=!0,this.triggerReady()},n.hasCreatedSourceBuffers=function(){return this.createdSourceBuffers_},n.hasInitializedAnyEme=function(){return this.initializedEme_},n.ready=function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()},n.createSourceBuffers=function(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())},n.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},n.addSourceBuffer=function(e,t){Xo({type:"mediaSource",sourceUpdater:this,action:Yo.addSourceBuffer(e,t),name:"addSourceBuffer"})},n.abort=function(e){Xo({type:e,sourceUpdater:this,action:Yo.abort(e),name:"abort"})},n.removeSourceBuffer=function(e){this.canRemoveSourceBuffer()?Xo({type:"mediaSource",sourceUpdater:this,action:Yo.removeSourceBuffer(e),name:"removeSourceBuffer"}):Pr.log.error("removeSourceBuffer is not supported!")},n.canRemoveSourceBuffer=function(){return!Pr.browser.IE_VERSION&&!Pr.browser.IS_FIREFOX&&o.default.MediaSource&&o.default.MediaSource.prototype&&"function"===typeof o.default.MediaSource.prototype.removeSourceBuffer},t.canChangeType=function(){return o.default.SourceBuffer&&o.default.SourceBuffer.prototype&&"function"===typeof o.default.SourceBuffer.prototype.changeType},n.canChangeType=function(){return this.constructor.canChangeType()},n.changeType=function(e,t){this.canChangeType()?Xo({type:e,sourceUpdater:this,action:Yo.changeType(t),name:"changeType"}):Pr.log.error("changeType is not supported!")},n.addOrChangeSourceBuffers=function(e){var t=this;if(!e||"object"!==(0,r.default)(e)||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach((function(n){var i=e[n];if(!t.hasCreatedSourceBuffers())return t.addSourceBuffer(n,i);t.canChangeType()&&t.changeType(n,i)}))},n.appendBuffer=function(e,t){var n=this,i=e.segmentInfo,r=e.type,a=e.bytes;if(this.processedAppend_=!0,"audio"===r&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_("delayed audio append of "+a.length+" until video append");var o=t;if(Xo({type:r,sourceUpdater:this,action:Yo.appendBuffer(a,i||{mediaIndex:-1},o),doneFn:t,name:"appendBuffer"}),"video"===r){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var s=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+s.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,s.forEach((function(e){n.appendBuffer.apply(n,e)}))}},n.audioBuffered=function(){return Go(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:Pr.createTimeRange()},n.videoBuffered=function(){return Go(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:Pr.createTimeRange()},n.buffered=function(){var e=Go(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=Go(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():function(e,t){var n=null,i=null,r=0,a=[],o=[];if(!e||!e.length||!t||!t.length)return Pr.createTimeRange();var s=e.length;while(s--)a.push({time:e.start(s),type:"start"}),a.push({time:e.end(s),type:"end"});s=t.length;while(s--)a.push({time:t.start(s),type:"start"}),a.push({time:t.end(s),type:"end"});for(a.sort((function(e,t){return e.time-t.time})),s=0;s<a.length;s++)"start"===a[s].type?(r++,2===r&&(n=a[s].time)):"end"===a[s].type&&(r--,1===r&&(i=a[s].time)),null!==n&&null!==i&&(o.push([n,i]),n=null,i=null);return Pr.createTimeRanges(o)}(this.audioBuffered(),this.videoBuffered())},n.setDuration=function(e,t){void 0===t&&(t=Fo),Xo({type:"mediaSource",sourceUpdater:this,action:Yo.duration(e),name:"duration",doneFn:t})},n.endOfStream=function(e,t){void 0===e&&(e=null),void 0===t&&(t=Fo),"string"!==typeof e&&(e=void 0),Xo({type:"mediaSource",sourceUpdater:this,action:Yo.endOfStream(e),name:"endOfStream",doneFn:t})},n.removeAudio=function(e,t,n){void 0===n&&(n=Fo),this.audioBuffered().length&&0!==this.audioBuffered().end(0)?Xo({type:"audio",sourceUpdater:this,action:Yo.remove(e,t),doneFn:n,name:"remove"}):n()},n.removeVideo=function(e,t,n){void 0===n&&(n=Fo),this.videoBuffered().length&&0!==this.videoBuffered().end(0)?Xo({type:"video",sourceUpdater:this,action:Yo.remove(e,t),doneFn:n,name:"remove"}):n()},n.updating=function(){return!(!zo("audio",this)&&!zo("video",this))},n.audioTimestampOffset=function(e){return"undefined"!==typeof e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(Xo({type:"audio",sourceUpdater:this,action:Yo.timestampOffset(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_},n.videoTimestampOffset=function(e){return"undefined"!==typeof e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(Xo({type:"video",sourceUpdater:this,action:Yo.timestampOffset(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_},n.audioQueueCallback=function(e){this.audioBuffer&&Xo({type:"audio",sourceUpdater:this,action:Yo.callback(e),name:"callback"})},n.videoQueueCallback=function(e){this.videoBuffer&&Xo({type:"video",sourceUpdater:this,action:Yo.callback(e),name:"callback"})},n.dispose=function(){var e=this;this.trigger("dispose"),Vo.forEach((function(t){e.abort(t),e.canRemoveSourceBuffer()?e.removeSourceBuffer(t):e[t+"QueueCallback"]((function(){return Wo(t,e)}))})),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},t}(Pr.EventTarget),Jo=function(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))},Zo=new Uint8Array("\n\n".split("").map((function(e){return e.charCodeAt(0)}))),es=function(e){function t(t,n){var i;return void 0===n&&(n={}),i=e.call(this,t,n)||this,i.mediaSource_=null,i.subtitlesTrack_=null,i.loaderType_="subtitle",i.featuresNativeTextTracks_=t.featuresNativeTextTracks,i.shouldSaveSegmentTimingInfo_=!1,i}(0,d.default)(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return null},n.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return Pr.createTimeRanges();var e=this.subtitlesTrack_.cues,t=e[0].startTime,n=e[e.length-1].startTime;return Pr.createTimeRanges([[t,n]])},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Ma(e),i=this.initSegments_[n];if(t&&!i&&e.bytes){var r=Zo.byteLength+e.bytes.byteLength,a=new Uint8Array(r);a.set(e.bytes),a.set(Zo,e.bytes.byteLength),this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:a}}return i||e},n.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.track=function(e){return"undefined"===typeof e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_},n.remove=function(e,t){Po(e,t,this.subtitlesTrack_)},n.fillBuffer_=function(){var e=this,t=this.chooseNextRequest_();if(t){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline)){return this.syncController_.one("timestampoffset",(function(){e.state="READY",e.paused()||e.monitorBuffer_()})),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(t)}},n.timestampOffsetForSegment_=function(){return null},n.chooseNextRequest_=function(){return this.skipEmptySegments_(e.prototype.chooseNextRequest_.call(this))},n.skipEmptySegments_=function(e){while(e&&e.segment.empty){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e},n.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},n.segmentRequestFinished_=function(e,t,n){var i=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===oo.TIMEOUT&&this.handleTimeout_(),e.code===oo.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");var a=r.segment;if(a.map&&(a.map.bytes=t.map.bytes),r.bytes=t.bytes,"function"!==typeof o.default.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var s,u=function(){i.subtitlesTrack_.tech_.off("vttjsloaded",s),i.stopForError({message:"Error loading vtt.js"})};return s=function(){i.subtitlesTrack_.tech_.off("vttjserror",u),i.segmentRequestFinished_(e,t,n)},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",s),void this.subtitlesTrack_.tech_.one("vttjserror",u)}a.requested=!0;try{this.parseVTTCues_(r)}catch(c){return void this.stopForError({message:c.message})}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=a.duration,r.cues.forEach((function(e){i.subtitlesTrack_.addCue(i.featuresNativeTextTracks_?new o.default.VTTCue(e.startTime,e.endTime,e.text):e)})),function(e){var t=e.cues;if(t)for(var n=0;n<t.length;n++){for(var i=[],r=0,a=0;a<t.length;a++)t[n].startTime===t[a].startTime&&t[n].endTime===t[a].endTime&&t[n].text===t[a].text&&(r++,r>1&&i.push(t[a]));i.length&&i.forEach((function(t){return e.removeCue(t)}))}}(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},n.handleData_=function(){},n.updateTimingInfoEnd_=function(){},n.parseVTTCues_=function(e){var t,n=!1;"function"===typeof o.default.TextDecoder?t=new o.default.TextDecoder("utf8"):(t=o.default.WebVTT.StringDecoder(),n=!0);var i=new o.default.WebVTT.Parser(o.default,o.default.vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},i.oncue=e.cues.push.bind(e.cues),i.ontimestampmap=function(t){e.timestampmap=t},i.onparsingerror=function(e){Pr.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var r=e.segment.map.bytes;n&&(r=Jo(r)),i.parse(r)}var a=e.bytes;n&&(a=Jo(a)),i.parse(a),i.flush()},n.updateTimeMapping_=function(e,t,n){var i=e.segment;if(t)if(e.cues.length){var r=e.timestampmap,a=r.MPEGTS/C.ONE_SECOND_IN_TS-r.LOCAL+t.mapping;if(e.cues.forEach((function(e){e.startTime+=a,e.endTime+=a})),!n.syncInfo){var o=e.cues[0].startTime,s=e.cues[e.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(o,s-i.duration)}}}else i.empty=!0},t}(Uo),ts=function(e,t){for(var n=e.cues,i=0;i<n.length;i++){var r=n[i];if(t>=r.adStartTime&&t<=r.adEndTime)return r}return null},ns=[{name:"VOD",run:function(e,t,n,i,r){if(n!==1/0){return{time:0,segmentIndex:0,partIndex:null}}return null}},{name:"ProgramDateTime",run:function(e,t,n,i,r){if(!Object.keys(e.timelineToDatetimeMappings).length)return null;var a=null,o=null,s=Gr(t);r=r||0;for(var u=0;u<s.length;u++){var c=t.endList||0===r?u:s.length-(u+1),l=s[c],d=l.segment,f=e.timelineToDatetimeMappings[d.timeline];if(f&&d.dateTimeObject){var h=d.dateTimeObject.getTime()/1e3,p=h+f;if(d.parts&&"number"===typeof l.partIndex)for(var g=0;g<l.partIndex;g++)p+=d.parts[g].duration;var v=Math.abs(r-p);if(null!==o&&(0===v||o<v))break;o=v,a={time:p,segmentIndex:l.segmentIndex,partIndex:l.partIndex}}}return a}},{name:"Segment",run:function(e,t,n,i,r){var a=null,o=null;r=r||0;for(var s=Gr(t),u=0;u<s.length;u++){var c=t.endList||0===r?u:s.length-(u+1),l=s[c],d=l.segment,f=l.part&&l.part.start||d&&d.start;if(d.timeline===i&&"undefined"!==typeof f){var h=Math.abs(r-f);if(null!==o&&o<h)break;(!a||null===o||o>=h)&&(o=h,a={time:f,segmentIndex:l.segmentIndex,partIndex:l.partIndex})}}return a}},{name:"Discontinuity",run:function(e,t,n,i,r){var a=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var o=null,s=0;s<t.discontinuityStarts.length;s++){var u=t.discontinuityStarts[s],c=t.discontinuitySequence+s+1,l=e.discontinuities[c];if(l){var d=Math.abs(r-l.time);if(null!==o&&o<d)break;(!a||null===o||o>=d)&&(o=d,a={time:l.time,segmentIndex:u,partIndex:null})}}return a}},{name:"Playlist",run:function(e,t,n,i,r){if(t.syncInfo){var a={time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null};return a}return null}}],is=function(e){function t(t){var n;return n=e.call(this)||this,n.timelines=[],n.discontinuities=[],n.timelineToDatetimeMappings={},n.logger_=Nr("SyncController"),n}(0,d.default)(t,e);var n=t.prototype;return n.getSyncPoint=function(e,t,n,i){var r=this.runStrategies_(e,t,n,i);return r.length?this.selectSyncPoint_(r,{key:"time",value:i}):null},n.getExpiredTime=function(e,t){if(!e||!e.segments)return null;var n=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!n.length)return null;var i=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return i.segmentIndex>0&&(i.time*=-1),Math.abs(i.time+Zr({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:i.segmentIndex,endIndex:0}))},n.runStrategies_=function(e,t,n,i){for(var r=[],a=0;a<ns.length;a++){var o=ns[a],s=o.run(this,e,t,n,i);s&&(s.strategy=o.name,r.push({strategy:o.name,syncPoint:s}))}return r},n.selectSyncPoint_=function(e,t){for(var n=e[0].syncPoint,i=Math.abs(e[0].syncPoint[t.key]-t.value),r=e[0].strategy,a=1;a<e.length;a++){var o=Math.abs(e[a].syncPoint[t.key]-t.value);o<i&&(i=o,n=e[a].syncPoint,r=e[a].strategy)}return this.logger_("syncPoint for ["+t.key+": "+t.value+"] chosen with strategy ["+r+"]: [time:"+n.time+", segmentIndex:"+n.segmentIndex+("number"===typeof n.partIndex?",partIndex:"+n.partIndex:"")+"]"),n},n.saveExpiredSegmentInfo=function(e,t){var n=t.mediaSequence-e.mediaSequence;if(n>86400)Pr.log.warn("Not saving expired segment info. Media sequence gap "+n+" is too large.");else for(var i=n-1;i>=0;i--){var r=e.segments[i];if(r&&"undefined"!==typeof r.start){t.syncInfo={mediaSequence:e.mediaSequence+i,time:r.start},this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},n.setDateTimeMappingForStart=function(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0],n=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-n}},n.saveSegmentTimingInfo=function(e){var t=e.segmentInfo,n=e.shouldSaveTimelineMapping,i=this.calculateSegmentTimeMapping_(t,t.timingInfo,n),r=t.segment;i&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:r.start}));var a=r.dateTimeObject;r.discontinuity&&n&&a&&(this.timelineToDatetimeMappings[r.timeline]=-a.getTime()/1e3)},n.timestampOffsetForTimeline=function(e){return"undefined"===typeof this.timelines[e]?null:this.timelines[e].time},n.mappingForTimeline=function(e){return"undefined"===typeof this.timelines[e]?null:this.timelines[e].mapping},n.calculateSegmentTimeMapping_=function(e,t,n){var i,r,a=e.segment,o=e.part,s=this.timelines[e.timeline];if("number"===typeof e.timestampOffset)s={time:e.startOfSegment,mapping:e.startOfSegment-t.start},n&&(this.timelines[e.timeline]=s,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+s.time+"] [mapping: "+s.mapping+"]")),i=e.startOfSegment,r=t.end+s.mapping;else{if(!s)return!1;i=t.start+s.mapping,r=t.end+s.mapping}return o&&(o.start=i,o.end=r),(!a.start||i<a.start)&&(a.start=i),a.end=r,!0},n.saveDiscontinuitySyncInfo_=function(e){var t=e.playlist,n=e.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(var i=0;i<t.discontinuityStarts.length;i++){var r=t.discontinuityStarts[i],a=t.discontinuitySequence+i+1,o=r-e.mediaIndex,s=Math.abs(o);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>s){var u=void 0;u=o<0?n.start-Zr({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:r}):n.end+Zr({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:r}),this.discontinuities[a]={time:u,accuracy:s}}}},n.dispose=function(){this.trigger("dispose"),this.off()},t}(Pr.EventTarget),rs=function(e){function t(){var t;return t=e.call(this)||this,t.pendingTimelineChanges_={},t.lastTimelineChanges_={},t}(0,d.default)(t,e);var n=t.prototype;return n.clearPendingTimelineChange=function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")},n.pendingTimelineChange=function(e){var t=e.type,n=e.from,i=e.to;return"number"===typeof n&&"number"===typeof i&&(this.pendingTimelineChanges_[t]={type:t,from:n,to:i},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]},n.lastTimelineChange=function(e){var t=e.type,n=e.from,i=e.to;return"number"===typeof n&&"number"===typeof i&&(this.lastTimelineChanges_[t]={type:t,from:n,to:i},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]},n.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},t}(Pr.EventTarget),as=Xa(Ka((function(){var t="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{};function n(e,t,n){return n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}((void 0===t||null===t)&&n.path)}},e(n,n.exports),n.exports}var i=n((function(e){function t(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),Object.defineProperty(e,i.key,i)}}e.exports=function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e},e.exports["default"]=e.exports,e.exports.__esModule=!0})),r=n((function(e){function t(n,i){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports["default"]=e.exports,e.exports.__esModule=!0,t(n,i)}e.exports=t,e.exports["default"]=e.exports,e.exports.__esModule=!0})),a=n((function(e){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports["default"]=e.exports,e.exports.__esModule=!0})),o=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,o=0;o<a;++o)t[o].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",(function(t){e.push(t)}))},e}();/*! @name aes-decrypter @version 3.1.3 @license Apache-2.0 */
- var s,u=null,c=function(){function e(e){var t,n,i;u||(u=function(){var e,t,n,i,r,a,o,s,u,c=[[[],[],[],[],[]],[[],[],[],[],[]]],l=c[0],d=c[1],f=l[4],h=d[4],p=[],g=[];for(e=0;e<256;e++)g[(p[e]=e<<1^283*(e>>7))^e]=e;for(t=n=0;!f[t];t^=i||1,n=g[n]||1)for(o=n^n<<1^n<<2^n<<3^n<<4,o=o>>8^255&o^99,f[t]=o,h[o]=t,a=p[r=p[i=p[t]]],u=16843009*a^65537*r^257*i^16843008*t,s=257*p[o]^16843008*o,e=0;e<4;e++)l[e][t]=s=s<<24^s>>>8,d[e][o]=u=u<<24^u>>>8;for(e=0;e<5;e++)l[e]=l[e].slice(0),d[e]=d[e].slice(0);return c}()),this._tables=[[u[0][0].slice(),u[0][1].slice(),u[0][2].slice(),u[0][3].slice(),u[0][4].slice()],[u[1][0].slice(),u[1][1].slice(),u[1][2].slice(),u[1][3].slice(),u[1][4].slice()]];var r=this._tables[0][4],a=this._tables[1],o=e.length,s=1;if(4!==o&&6!==o&&8!==o)throw new Error("Invalid aes key size");var c=e.slice(0),l=[];for(this._key=[c,l],t=o;t<4*o+28;t++)i=c[t-1],(t%o===0||8===o&&t%o===4)&&(i=r[i>>>24]<<24^r[i>>16&255]<<16^r[i>>8&255]<<8^r[255&i],t%o===0&&(i=i<<8^i>>>24^s<<24,s=s<<1^283*(s>>7))),c[t]=c[t-o]^i;for(n=0;t;n++,t--)i=c[3&n?t:t-4],l[n]=t<=4||n<4?i:a[0][r[i>>>24]]^a[1][r[i>>16&255]]^a[2][r[i>>8&255]]^a[3][r[255&i]]}var t=e.prototype;return t.decrypt=function(e,t,n,i,r,a){var o,s,u,c,l=this._key[1],d=e^l[0],f=i^l[1],h=n^l[2],p=t^l[3],g=l.length/4-2,v=4,m=this._tables[1],y=m[0],b=m[1],_=m[2],w=m[3],T=m[4];for(c=0;c<g;c++)o=y[d>>>24]^b[f>>16&255]^_[h>>8&255]^w[255&p]^l[v],s=y[f>>>24]^b[h>>16&255]^_[p>>8&255]^w[255&d]^l[v+1],u=y[h>>>24]^b[p>>16&255]^_[d>>8&255]^w[255&f]^l[v+2],p=y[p>>>24]^b[d>>16&255]^_[f>>8&255]^w[255&h]^l[v+3],v+=4,d=o,f=s,h=u;for(c=0;c<4;c++)r[(3&-c)+a]=T[d>>>24]<<24^T[f>>16&255]<<16^T[h>>8&255]<<8^T[255&p]^l[v++],o=d,d=f,f=h,h=p,p=o},e}(),l=function(e){function t(){var t;return t=e.call(this,o)||this,t.jobs=[],t.delay=1,t.timeout_=null,t}a(t,e);var n=t.prototype;return n.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},n.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},t}(o),d=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},f=function(){function e(t,n,i,r){var a=e.STEP,o=new Int32Array(t.buffer),s=new Uint8Array(t.byteLength),u=0;for(this.asyncStream_=new l,this.asyncStream_.push(this.decryptChunk_(o.subarray(u,u+a),n,i,s)),u=a;u<o.length;u+=a)i=new Uint32Array([d(o[u-4]),d(o[u-3]),d(o[u-2]),d(o[u-1])]),this.asyncStream_.push(this.decryptChunk_(o.subarray(u,u+a),n,i,s));this.asyncStream_.push((function(){r(null,/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */
- function(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}(s))}))}var t=e.prototype;return t.decryptChunk_=function(e,t,n,i){return function(){var r=function(e,t,n){var i,r,a,o,s,u,l,f,h,p=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),g=new c(Array.prototype.slice.call(t)),v=new Uint8Array(e.byteLength),m=new Int32Array(v.buffer);for(i=n[0],r=n[1],a=n[2],o=n[3],h=0;h<p.length;h+=4)s=d(p[h]),u=d(p[h+1]),l=d(p[h+2]),f=d(p[h+3]),g.decrypt(s,u,l,f,m,h),m[h]=d(m[h]^i),m[h+1]=d(m[h+1]^r),m[h+2]=d(m[h+2]^a),m[h+3]=d(m[h+3]^o),i=s,r=u,a=l,o=f;return v}(e,t,n);i.set(r,e.byteOffset)}},i(e,null,[{key:"STEP",get:function(){return 32e3}}]),e}();s="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{};var h=s,p=h.BigInt||Number;p("0x1"),p("0x100"),p("0x10000"),p("0x1000000"),p("0x100000000"),p("0x10000000000"),p("0x1000000000000"),p("0x100000000000000"),p("0x10000000000000000");var g=function(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];!function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer}(i)?t[n]=i:t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}})),t};self.onmessage=function(e){var t=e.data,n=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),i=new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),r=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new f(n,i,r,(function(e,n){self.postMessage(g({source:t.source,decrypted:n}),[n.buffer])}))}}))),os=Ya(as),ss=function(e){var t=e["default"]?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},us=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},cs=function(e,t){t.activePlaylistLoader=e,e.load()},ls={AUDIO:function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e],r=t.blacklistCurrentPlaylist;us(n,i);var a=i.activeTrack(),o=i.activeGroup(),s=(o.filter((function(e){return e["default"]}))[0]||o[0]).id,u=i.tracks[s];if(a!==u){for(var c in Pr.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),i.tracks)i.tracks[c].enabled=i.tracks[c]===u;i.onTrackChanged()}else r({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e];Pr.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),us(n,i);var r=i.activeTrack();r&&(r.mode="disabled"),i.onTrackChanged()}}},ds={AUDIO:function(e,t,n){if(t){var i=n.tech,r=n.requestOptions,a=n.segmentLoaders[e];t.on("loadedmetadata",(function(){var e=t.media();a.playlist(e,r),(!i.paused()||e.endList&&"none"!==i.preload())&&a.load()})),t.on("loadedplaylist",(function(){a.playlist(t.media(),r),i.paused()||a.load()})),t.on("error",ls[e](e,n))}},SUBTITLES:function(e,t,n){var i=n.tech,r=n.requestOptions,a=n.segmentLoaders[e],o=n.mediaTypes[e];t.on("loadedmetadata",(function(){var e=t.media();a.playlist(e,r),a.track(o.activeTrack()),(!i.paused()||e.endList&&"none"!==i.preload())&&a.load()})),t.on("loadedplaylist",(function(){a.playlist(t.media(),r),i.paused()||a.load()})),t.on("error",ls[e](e,n))}},fs={AUDIO:function(e,t){var n=t.vhs,i=t.sourceType,r=t.segmentLoaders[e],a=t.requestOptions,o=t.master.mediaGroups,s=t.mediaTypes[e],u=s.groups,c=s.tracks,l=s.logger_,d=t.masterPlaylistLoader,f=ua(d.master);for(var h in o[e]&&0!==Object.keys(o[e]).length||(o[e]={main:{default:{default:!0}}},f&&(o[e].main["default"].playlists=d.master.playlists)),o[e])for(var p in u[h]||(u[h]=[]),o[e][h]){var g=o[e][h][p],v=void 0;if(f?(l("AUDIO group '"+h+"' label '"+p+"' is a master playlist"),g.isMasterPlaylist=!0,v=null):v="vhs-json"===i&&g.playlists?new Sa(g.playlists[0],n,a):g.resolvedUri?new Sa(g.resolvedUri,n,a):g.playlists&&"dash"===i?new qa(g.playlists[0],n,a,d):null,g=Pr.mergeOptions({id:p,playlistLoader:v},g),ds[e](e,g.playlistLoader,t),u[h].push(g),"undefined"===typeof c[p]){var m=new Pr.AudioTrack({id:p,kind:ss(g),enabled:!1,language:g.language,default:g["default"],label:p});c[p]=m}}r.on("error",ls[e](e,t))},SUBTITLES:function(e,t){var n=t.tech,i=t.vhs,r=t.sourceType,a=t.segmentLoaders[e],o=t.requestOptions,s=t.master.mediaGroups,u=t.mediaTypes[e],c=u.groups,l=u.tracks,d=t.masterPlaylistLoader;for(var f in s[e])for(var h in c[f]||(c[f]=[]),s[e][f])if(!s[e][f][h].forced){var p=s[e][f][h],g=void 0;if("hls"===r)g=new Sa(p.resolvedUri,i,o);else if("dash"===r){var v=p.playlists.filter((function(e){return e.excludeUntil!==1/0}));if(!v.length)return;g=new qa(p.playlists[0],i,o,d)}else"vhs-json"===r&&(g=new Sa(p.playlists?p.playlists[0]:p.resolvedUri,i,o));if(p=Pr.mergeOptions({id:h,playlistLoader:g},p),ds[e](e,p.playlistLoader,t),c[f].push(p),"undefined"===typeof l[h]){var m=n.addRemoteTextTrack({id:h,kind:"subtitles",default:p["default"]&&p.autoselect,language:p.language,label:h},!1).track;l[h]=m}}a.on("error",ls[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var n=t.tech,i=t.master.mediaGroups,r=t.mediaTypes[e],a=r.groups,o=r.tracks;for(var s in i[e])for(var u in a[s]||(a[s]=[]),i[e][s]){var c=i[e][s][u];if(/^(?:CC|SERVICE)/.test(c.instreamId)){var l=n.options_.vhs&&n.options_.vhs.captionServices||{},d={label:u,language:c.language,instreamId:c.instreamId,default:c["default"]&&c.autoselect};if(l[d.instreamId]&&(d=Pr.mergeOptions(d,l[d.instreamId])),void 0===d["default"]&&delete d["default"],a[s].push(Pr.mergeOptions({id:u},c)),"undefined"===typeof o[u]){var f=n.addRemoteTextTrack({id:d.instreamId,kind:"captions",default:d["default"],language:d.language,label:d.label},!1).track;o[u]=f}}}}},hs=function e(t,n){for(var i=0;i<t.length;i++){if(oa(n,t[i]))return!0;if(t[i].playlists&&e(t[i].playlists,n))return!0}return!1},ps={AUDIO:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var i in n)if(n[i].enabled)return n[i];return null}},SUBTITLES:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var i in n)if("showing"===n[i].mode||"hidden"===n[i].mode)return n[i];return null}}},gs=function(e){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(t){fs[t](t,e)}));var t=e.mediaTypes,n=e.masterPlaylistLoader,i=e.tech,r=e.vhs,a=e.segmentLoaders,o=a["AUDIO"],s=a.main;["AUDIO","SUBTITLES"].forEach((function(n){t[n].activeGroup=function(e,t){return function(n){var i=t.masterPlaylistLoader,r=t.mediaTypes[e].groups,a=i.media();if(!a)return null;var o=null;a.attributes[e]&&(o=r[a.attributes[e]]);var s=Object.keys(r);if(!o)if("AUDIO"===e&&s.length>1&&ua(t.master))for(var u=0;u<s.length;u++){var c=r[s[u]];if(hs(c,a)){o=c;break}}else r.main?o=r.main:1===s.length&&(o=r[s[0]]);return"undefined"===typeof n?o:null!==n&&o&&o.filter((function(e){return e.id===n.id}))[0]||null}}(n,e),t[n].activeTrack=ps[n](n,e),t[n].onGroupChanged=function(e,t){return function(){var n=t.segmentLoaders,i=n[e],r=n.main,a=t.mediaTypes[e],o=a.activeTrack(),s=a.getActiveGroup(),u=a.activePlaylistLoader,c=a.lastGroup_;s&&c&&s.id===c.id||(a.lastGroup_=s,a.lastTrack_=o,us(i,a),s&&!s.isMasterPlaylist&&(s.playlistLoader?(i.resyncLoader(),cs(s.playlistLoader,a)):u&&r.resetEverything()))}}(n,e),t[n].onGroupChanging=function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e];i.lastGroup_=null,n.abort(),n.pause()}}(n,e),t[n].onTrackChanged=function(e,t){return function(){var n=t.masterPlaylistLoader,i=t.segmentLoaders,r=i[e],a=i.main,o=t.mediaTypes[e],s=o.activeTrack(),u=o.getActiveGroup(),c=o.activePlaylistLoader,l=o.lastTrack_;if((!l||!s||l.id!==s.id)&&(o.lastGroup_=u,o.lastTrack_=s,us(r,o),u)){if(u.isMasterPlaylist){if(!s||!l||s.id===l.id)return;var d=t.vhs.masterPlaylistController_,f=d.selectPlaylist();if(d.media()===f)return;return o.logger_("track change. Switching master audio from "+l.id+" to "+s.id),n.pause(),a.resetEverything(),void d.fastQualityChange_(f)}if("AUDIO"===e){if(!u.playlistLoader)return a.setAudio(!0),void a.resetEverything();r.setAudio(!0),a.setAudio(!1)}c!==u.playlistLoader?(r.track&&r.track(s),r.resetEverything(),cs(u.playlistLoader,o)):cs(u.playlistLoader,o)}}}(n,e),t[n].getActiveGroup=function(e,t){var n=t.mediaTypes;return function(){var t=n[e].activeTrack();return t?n[e].activeGroup(t):null}}(n,e)}));var u=t.AUDIO.activeGroup();if(u){var c=(u.filter((function(e){return e["default"]}))[0]||u[0]).id;t.AUDIO.tracks[c].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged();var l=t.AUDIO.getActiveGroup();l.playlistLoader?(s.setAudio(!1),o.setAudio(!0)):s.setAudio(!0)}n.on("mediachange",(function(){["AUDIO","SUBTITLES"].forEach((function(e){return t[e].onGroupChanged()}))})),n.on("mediachanging",(function(){["AUDIO","SUBTITLES"].forEach((function(e){return t[e].onGroupChanging()}))}));var d=function(){t.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"vhs-audio-change"}),i.trigger({type:"usage",name:"hls-audio-change"})};for(var f in i.audioTracks().addEventListener("change",d),i.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),r.on("dispose",(function(){i.audioTracks().removeEventListener("change",d),i.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)})),i.clearTracks("audio"),t.AUDIO.tracks)i.audioTracks().addTrack(t.AUDIO.tracks[f])},vs=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],ms=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},ys=function(e){function t(t){var n;n=e.call(this)||this;var i=t.src,r=t.handleManifestRedirects,a=t.withCredentials,s=t.tech,u=t.bandwidth,c=t.externVhs,d=t.useCueTags,f=t.blacklistDuration,h=t.enableLowInitialPlaylist,p=t.sourceType,g=t.cacheEncryptionKeys,v=t.experimentalBufferBasedABR,m=t.experimentalLeastPixelDiffSelector,y=t.captionServices;if(!i)throw new Error("A non-empty playlist URL or JSON manifest string is required");var b=t.maxPlaylistRetries;null!==b&&"undefined"!==typeof b||(b=1/0),$o=c,n.experimentalBufferBasedABR=Boolean(v),n.experimentalLeastPixelDiffSelector=Boolean(m),n.withCredentials=a,n.tech_=s,n.vhs_=s.vhs,n.sourceType_=p,n.useCueTags_=d,n.blacklistDuration=f,n.maxPlaylistRetries=b,n.enableLowInitialPlaylist=h,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:a,handleManifestRedirects:r,maxPlaylistRetries:b,timeout:null},n.on("error",n.pauseLoading),n.mediaTypes_=function(){var e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(t){e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:Fo,activeTrack:Fo,getActiveGroup:Fo,onGroupChanged:Fo,onTrackChanged:Fo,lastTrack_:null,logger_:Nr("MediaGroups["+t+"]")}})),e}(),n.mediaSource=new o.default.MediaSource,n.handleDurationChange_=n.handleDurationChange_.bind((0,l.default)(n)),n.handleSourceOpen_=n.handleSourceOpen_.bind((0,l.default)(n)),n.handleSourceEnded_=n.handleSourceEnded_.bind((0,l.default)(n)),n.mediaSource.addEventListener("durationchange",n.handleDurationChange_),n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_),n.mediaSource.addEventListener("sourceended",n.handleSourceEnded_),n.seekable_=Pr.createTimeRanges(),n.hasPlayed_=!1,n.syncController_=new is(t),n.segmentMetadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new os,n.sourceUpdater_=new Qo(n.mediaSource),n.inbandTextTracks_={},n.timelineChangeController_=new rs;var _={vhs:n.vhs_,parse708captions:t.parse708captions,useDtsForTimestampOffset:t.useDtsForTimestampOffset,captionServices:y,mediaSource:n.mediaSource,currentTime:n.tech_.currentTime.bind(n.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.duration()},hasPlayed:function(){return n.hasPlayed_},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:u,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:g,sourceUpdater:n.sourceUpdater_,timelineChangeController:n.timelineChangeController_,experimentalExactManifestTimings:t.experimentalExactManifestTimings};n.masterPlaylistLoader_="dash"===n.sourceType_?new qa(i,n.vhs_,n.requestOptions_):new Sa(i,n.vhs_,n.requestOptions_),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new Uo(Pr.mergeOptions(_,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),t),n.audioSegmentLoader_=new Uo(Pr.mergeOptions(_,{loaderType:"audio"}),t),n.subtitleSegmentLoader_=new es(Pr.mergeOptions(_,{loaderType:"vtt",featuresNativeTextTracks:n.tech_.featuresNativeTextTracks}),t),n.setupSegmentLoaderListeners_(),n.experimentalBufferBasedABR&&(n.masterPlaylistLoader_.one("loadedplaylist",(function(){return n.startABRTimer_()})),n.tech_.on("pause",(function(){return n.stopABRTimer_()})),n.tech_.on("play",(function(){return n.startABRTimer_()}))),vs.forEach((function(e){n[e+"_"]=ms.bind((0,l.default)(n),e)})),n.logger_=Nr("MPC"),n.triggeredFmp4Usage=!1,"none"===n.tech_.preload()?(n.loadOnPlay_=function(){n.loadOnPlay_=null,n.masterPlaylistLoader_.load()},n.tech_.one("play",n.loadOnPlay_)):n.masterPlaylistLoader_.load(),n.timeToLoadedData__=-1,n.mainAppendsToLoadedData__=-1,n.audioAppendsToLoadedData__=-1;var w="none"===n.tech_.preload()?"play":"loadstart";return n.tech_.one(w,(function(){var e=Date.now();n.tech_.one("loadeddata",(function(){n.timeToLoadedData__=Date.now()-e,n.mainAppendsToLoadedData__=n.mainSegmentLoader_.mediaAppends,n.audioAppendsToLoadedData__=n.audioSegmentLoader_.mediaAppends}))})),n}(0,d.default)(t,e);var n=t.prototype;return n.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},n.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},n.appendsToLoadedData_=function(){var e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t},n.timeToLoadedData_=function(){return this.timeToLoadedData__},n.checkABR_=function(){var e=this.selectPlaylist();e&&this.shouldSwitchToMedia_(e)&&this.switchMedia_(e,"abr")},n.switchMedia_=function(e,t,n){var i=this.media(),r=i&&(i.id||i.uri),a=e.id||e.uri;r&&r!==a&&(this.logger_("switch media "+r+" -> "+a+" from "+t),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.masterPlaylistLoader_.media(e,n)},n.startABRTimer_=function(){var e=this;this.stopABRTimer_(),this.abrTimer_=o.default.setInterval((function(){return e.checkABR_()}),250)},n.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(o.default.clearInterval(this.abrTimer_),this.abrTimer_=null)},n.getAudioTrackPlaylists_=function(){var e=this.master(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;var n,i=e.mediaGroups.AUDIO,r=Object.keys(i);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)n=this.mediaTypes_.AUDIO.activeTrack();else{var a=i.main||r.length&&i[r[0]];for(var o in a)if(a[o]["default"]){n={label:o};break}}if(!n)return t;var s=[];for(var u in i)if(i[u][n.label]){var c=i[u][n.label];if(c.playlists&&c.playlists.length)s.push.apply(s,c.playlists);else if(c.uri)s.push(c);else if(e.playlists.length)for(var l=0;l<e.playlists.length;l++){var d=e.playlists[l];d.attributes&&d.attributes.AUDIO&&d.attributes.AUDIO===u&&s.push(d)}}return s.length?s:t},n.setupMasterPlaylistLoaderListeners_=function(){var e=this;this.masterPlaylistLoader_.on("loadedmetadata",(function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;aa(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,t.endList&&"none"!==e.tech_.preload()&&(e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load()),gs({sourceType:e.sourceType_,segmentLoaders:{AUDIO:e.audioSegmentLoader_,SUBTITLES:e.subtitleSegmentLoader_,main:e.mainSegmentLoader_},tech:e.tech_,requestOptions:e.requestOptions_,masterPlaylistLoader:e.masterPlaylistLoader_,vhs:e.vhs_,master:e.master(),mediaTypes:e.mediaTypes_,blacklistCurrentPlaylist:e.blacklistCurrentPlaylist.bind(e)}),e.triggerPresenceUsage_(e.master(),t),e.setupFirstPlay(),!e.mediaTypes_.AUDIO.activePlaylistLoader||e.mediaTypes_.AUDIO.activePlaylistLoader.media()?e.trigger("selectedinitialmedia"):e.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",(function(){e.trigger("selectedinitialmedia")}))})),this.masterPlaylistLoader_.on("loadedplaylist",(function(){e.loadOnPlay_&&e.tech_.off("play",e.loadOnPlay_);var t=e.masterPlaylistLoader_.media();if(!t){var n;if(e.excludeUnsupportedVariants_(),e.enableLowInitialPlaylist&&(n=e.selectInitialPlaylist()),n||(n=e.selectPlaylist()),!n||!e.shouldSwitchToMedia_(n))return;e.initialMedia_=n,e.switchMedia_(e.initialMedia_,"initial");var i="vhs-json"===e.sourceType_&&e.initialMedia_.segments;if(!i)return;t=e.initialMedia_}e.handleUpdatedMediaPlaylist(t)})),this.masterPlaylistLoader_.on("error",(function(){e.blacklistCurrentPlaylist(e.masterPlaylistLoader_.error)})),this.masterPlaylistLoader_.on("mediachanging",(function(){e.mainSegmentLoader_.abort(),e.mainSegmentLoader_.pause()})),this.masterPlaylistLoader_.on("mediachange",(function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;aa(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load(),e.tech_.trigger({type:"mediachange",bubbles:!0})})),this.masterPlaylistLoader_.on("playlistunchanged",(function(){var t=e.masterPlaylistLoader_.media();if("playlist-unchanged"!==t.lastExcludeReason_){var n=e.stuckAtPlaylistEnd_(t);n&&(e.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),e.tech_.trigger("playliststuck"))}})),this.masterPlaylistLoader_.on("renditiondisabled",(function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})})),this.masterPlaylistLoader_.on("renditionenabled",(function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})}))},n.handleUpdatedMediaPlaylist=function(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},n.triggerPresenceUsage_=function(e,t){var n=e.mediaGroups||{},i=!0,r=Object.keys(n.AUDIO);for(var a in n.AUDIO)for(var o in n.AUDIO[a]){var s=n.AUDIO[a][o];s.uri||(i=!1)}i&&(this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),this.tech_.trigger({type:"usage",name:"hls-demuxed"})),Object.keys(n.SUBTITLES).length&&(this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),this.tech_.trigger({type:"usage",name:"hls-webvtt"})),$o.Playlist.isAes(t)&&(this.tech_.trigger({type:"usage",name:"vhs-aes"}),this.tech_.trigger({type:"usage",name:"hls-aes"})),r.length&&Object.keys(n.AUDIO[r[0]]).length>1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},n.shouldSwitchToMedia_=function(e){var t=this.masterPlaylistLoader_.media()||this.masterPlaylistLoader_.pendingMedia_,n=this.tech_.currentTime(),i=this.bufferLowWaterLine(),r=this.bufferHighWaterLine(),a=this.tech_.buffered();return function(e){var t=e.currentPlaylist,n=e.buffered,i=e.currentTime,r=e.nextPlaylist,a=e.bufferLowWaterLine,o=e.bufferHighWaterLine,s=e.duration,u=e.experimentalBufferBasedABR,c=e.log;if(!r)return Pr.log.warn("We received no playlist to switch to. Please check your stream."),!1;var l="allowing switch "+(t&&t.id||"null")+" -> "+r.id;if(!t)return c(l+" as current playlist is not set"),!0;if(r.id===t.id)return!1;var d=Boolean(Ur(n,i).length);if(!t.endList)return d||"number"!==typeof t.partTargetDuration?(c(l+" as current playlist is live"),!0):(c("not "+l+" as current playlist is live llhls, but currentTime isn't in buffered."),!1);var f=zr(n,i),h=u?Wa.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Wa.MAX_BUFFER_LOW_WATER_LINE;if(s<h)return c(l+" as duration < max low water line ("+s+" < "+h+")"),!0;var p=r.attributes.BANDWIDTH,g=t.attributes.BANDWIDTH;if(p<g&&(!u||f<o)){var v=l+" as next bandwidth < current bandwidth ("+p+" < "+g+")";return u&&(v+=" and forwardBuffer < bufferHighWaterLine ("+f+" < "+o+")"),c(v),!0}if((!u||p>g)&&f>=a){var m=l+" as forwardBuffer >= bufferLowWaterLine ("+f+" >= "+a+")";return u&&(m+=" and next bandwidth > current bandwidth ("+p+" > "+g+")"),c(m),!0}return c("not "+l+" as no switching criteria met"),!1}({buffered:a,currentTime:n,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:i,bufferHighWaterLine:r,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},n.setupSegmentLoaderListeners_=function(){var e=this;this.experimentalBufferBasedABR||(this.mainSegmentLoader_.on("bandwidthupdate",(function(){var t=e.selectPlaylist();e.shouldSwitchToMedia_(t)&&e.switchMedia_(t,"bandwidthupdate"),e.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("progress",(function(){e.trigger("progress")}))),this.mainSegmentLoader_.on("error",(function(){e.blacklistCurrentPlaylist(e.mainSegmentLoader_.error())})),this.mainSegmentLoader_.on("appenderror",(function(){e.error=e.mainSegmentLoader_.error_,e.trigger("error")})),this.mainSegmentLoader_.on("syncinfoupdate",(function(){e.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("timestampoffset",(function(){e.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),e.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})})),this.audioSegmentLoader_.on("syncinfoupdate",(function(){e.onSyncInfoUpdate_()})),this.audioSegmentLoader_.on("appenderror",(function(){e.error=e.audioSegmentLoader_.error_,e.trigger("error")})),this.mainSegmentLoader_.on("ended",(function(){e.logger_("main segment loader ended"),e.onEndOfStream()})),this.mainSegmentLoader_.on("earlyabort",(function(t){e.experimentalBufferBasedABR||(e.delegateLoaders_("all",["abort"]),e.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120))}));var t=function(){if(!e.sourceUpdater_.hasCreatedSourceBuffers())return e.tryToCreateSourceBuffers_();var t=e.getCodecsOrExclude_();t&&e.sourceUpdater_.addOrChangeSourceBuffers(t)};this.mainSegmentLoader_.on("trackinfo",t),this.audioSegmentLoader_.on("trackinfo",t),this.mainSegmentLoader_.on("fmp4",(function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("fmp4",(function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("ended",(function(){e.logger_("audioSegmentLoader ended"),e.onEndOfStream()}))},n.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},n.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},n.smoothQualityChange_=function(e){void 0===e&&(e=this.selectPlaylist()),this.fastQualityChange_(e)},n.fastQualityChange_=function(e){var t=this;void 0===e&&(e=this.selectPlaylist()),e!==this.masterPlaylistLoader_.media()?(this.switchMedia_(e,"fast-quality"),this.mainSegmentLoader_.resetEverything((function(){Pr.browser.IE_VERSION||Pr.browser.IS_EDGE?t.tech_.setCurrentTime(t.tech_.currentTime()+.04):t.tech_.setCurrentTime(t.tech_.currentTime())}))):this.logger_("skipping fastQualityChange because new media is same as old")},n.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}},n.setupFirstPlay=function(){var e=this,t=this.masterPlaylistLoader_.media();if(!t||this.tech_.paused()||this.hasPlayed_)return!1;if(!t.endList){var n=this.seekable();if(!n.length)return!1;if(Pr.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",(function(){e.trigger("firstplay"),e.tech_.setCurrentTime(n.end(0)),e.hasPlayed_=!0})),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(n.end(0))}return this.hasPlayed_=!0,this.load(),!0},n.handleSourceOpen_=function(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){var e=this.tech_.play();"undefined"!==typeof e&&"function"===typeof e.then&&e.then(null,(function(e){}))}this.trigger("sourceopen")},n.handleSourceEnded_=function(){if(this.inbandTextTracks_.metadataTrack_){var e=this.inbandTextTracks_.metadataTrack_.cues;if(e&&e.length){var t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}}},n.handleDurationChange_=function(){this.tech_.trigger("durationchange")},n.onEndOfStream=function(){var e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){var t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},n.stuckAtPlaylistEnd_=function(e){var t=this.seekable();if(!t.length)return!1;var n=this.syncController_.getExpiredTime(e,this.duration());if(null===n)return!1;var i=$o.Playlist.playlistEnd(e,n),r=this.tech_.currentTime(),a=this.tech_.buffered();if(!a.length)return i-r<=.1;var o=a.end(a.length-1);return o-r<=.1&&i-o<=.1},n.blacklistCurrentPlaylist=function(e,t){void 0===e&&(e={});var n=e.playlist||this.masterPlaylistLoader_.media();if(t=t||e.blacklistDuration||this.blacklistDuration,!n)return this.error=e,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));n.playlistErrors_++;var i,r=this.masterPlaylistLoader_.master.playlists,a=r.filter(ia),o=1===a.length&&a[0]===n;if(1===r.length&&t!==1/0)return Pr.log.warn("Problem encountered with playlist "+n.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(o);if(o){var s=!1;r.forEach((function(e){if(e!==n){var t=e.excludeUntil;"undefined"!==typeof t&&t!==1/0&&(s=!0,delete e.excludeUntil)}})),s&&(Pr.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}i=n.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*t,n.excludeUntil=i,e.reason&&(n.lastExcludeReason_=e.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var u=this.selectPlaylist();if(!u)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");var c=e.internal?this.logger_:Pr.log.warn,l=e.message?" "+e.message:"";c((e.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+l+" Switching to playlist "+u.id+"."),u.attributes.AUDIO!==n.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),u.attributes.SUBTITLES!==n.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var d=u.targetDuration/2*1e3||5e3,f="number"===typeof u.lastRequest&&Date.now()-u.lastRequest<=d;return this.switchMedia_(u,"exclude",o||f)},n.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},n.delegateLoaders_=function(e,t){var n=this,i=[],r="all"===e;(r||"main"===e)&&i.push(this.masterPlaylistLoader_);var a=[];(r||"audio"===e)&&a.push("AUDIO"),(r||"subtitle"===e)&&(a.push("CLOSED-CAPTIONS"),a.push("SUBTITLES")),a.forEach((function(e){var t=n.mediaTypes_[e]&&n.mediaTypes_[e].activePlaylistLoader;t&&i.push(t)})),["main","audio","subtitle"].forEach((function(t){var r=n[t+"SegmentLoader_"];!r||e!==t&&"all"!==e||i.push(r)})),i.forEach((function(e){return t.forEach((function(t){"function"===typeof e[t]&&e[t]()}))}))},n.setCurrentTime=function(e){var t=Ur(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},n.duration=function(){if(!this.masterPlaylistLoader_)return 0;var e=this.masterPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:$o.Playlist.duration(e):1/0:0},n.seekable=function(){return this.seekable_},n.onSyncInfoUpdate_=function(){var e;if(this.masterPlaylistLoader_){var t=this.masterPlaylistLoader_.media();if(t){var n=this.syncController_.getExpiredTime(t,this.duration());if(null!==n){var i=this.masterPlaylistLoader_.master,r=$o.Playlist.seekable(t,n,$o.Playlist.liveEdgeDelay(i,t));if(0!==r.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),n=this.syncController_.getExpiredTime(t,this.duration()),null===n)return;if(e=$o.Playlist.seekable(t,n,$o.Playlist.liveEdgeDelay(i,t)),0===e.length)return}var a,o;this.seekable_&&this.seekable_.length&&(a=this.seekable_.end(0),o=this.seekable_.start(0)),e?e.start(0)>r.end(0)||r.start(0)>e.end(0)?this.seekable_=r:this.seekable_=Pr.createTimeRanges([[e.start(0)>r.start(0)?e.start(0):r.start(0),e.end(0)<r.end(0)?e.end(0):r.end(0)]]):this.seekable_=r,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===a&&this.seekable_.start(0)===o||(this.logger_("seekable updated ["+$r(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},n.updateDuration=function(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,e),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(e){var t=this.seekable();if(!t.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<t.end(t.length-1))&&this.sourceUpdater_.setDuration(t.end(t.length-1))}else{var n=this.tech_.buffered(),i=$o.Playlist.duration(this.masterPlaylistLoader_.media());n.length>0&&(i=Math.max(i,n.end(n.length-1))),this.mediaSource.duration!==i&&this.sourceUpdater_.setDuration(i)}},n.dispose=function(){var e=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach((function(t){var n=e.mediaTypes_[t].groups;for(var i in n)n[i].forEach((function(e){e.playlistLoader&&e.playlistLoader.dispose()}))})),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},n.master=function(){return this.masterPlaylistLoader_.master},n.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},n.areMediaTypesKnown_=function(){var e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),n=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!n)},n.getCodecsOrExclude_=function(){var e=this,t={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}};t.video=t.main;var n=So(this.master(),this.media()),i={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(i.video=n.video||t.main.videoCodec||b.DEFAULT_VIDEO_CODEC),t.main.isMuxed&&(i.video+=","+(n.audio||t.main.audioCodec||b.DEFAULT_AUDIO_CODEC)),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||r)&&(i.audio=n.audio||t.main.audioCodec||t.audio.audioCodec||b.DEFAULT_AUDIO_CODEC,t.audio.isFmp4=t.main.hasAudio&&!t.main.isMuxed?t.main.isFmp4:t.audio.isFmp4),i.audio||i.video){var a,o={};if(["video","audio"].forEach((function(e){if(i.hasOwnProperty(e)&&!function(e,t){return e?(0,b.browserSupportsCodec)(t):(0,b.muxerSupportsCodec)(t)}(t[e].isFmp4,i[e])){var n=t[e].isFmp4?"browser":"muxer";o[n]=o[n]||[],o[n].push(i[e]),"audio"===e&&(a=n)}})),r&&a&&this.media().attributes.AUDIO){var s=this.media().attributes.AUDIO;this.master().playlists.forEach((function(t){var n=t.attributes&&t.attributes.AUDIO;n===s&&t!==e.media()&&(t.excludeUntil=1/0)})),this.logger_("excluding audio group "+s+" as "+a+' does not support codec(s): "'+i.audio+'"')}if(!Object.keys(o).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var u=[];if(["video","audio"].forEach((function(t){var n=((0,b.parseCodecs)(e.sourceUpdater_.codecs[t]||"")[0]||{}).type,r=((0,b.parseCodecs)(i[t]||"")[0]||{}).type;n&&r&&n.toLowerCase()!==r.toLowerCase()&&u.push('"'+e.sourceUpdater_.codecs[t]+'" -> "'+i[t]+'"')})),u.length)return void this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+u.join(", ")+".",blacklistDuration:1/0,internal:!0})}return i}var c=Object.keys(o).reduce((function(e,t){return e&&(e+=", "),e+=t+' does not support codec(s): "'+o[t].join(",")+'"',e}),"")+".";this.blacklistCurrentPlaylist({playlist:this.media(),internal:!0,message:c,blacklistDuration:1/0})}else this.blacklistCurrentPlaylist({playlist:this.media(),message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},n.tryToCreateSourceBuffers_=function(){if("open"===this.mediaSource.readyState&&!this.sourceUpdater_.hasCreatedSourceBuffers()&&this.areMediaTypesKnown_()){var e=this.getCodecsOrExclude_();if(e){this.sourceUpdater_.createSourceBuffers(e);var t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}}},n.excludeUnsupportedVariants_=function(){var e=this,t=this.master().playlists,n=[];Object.keys(t).forEach((function(i){var r=t[i];if(-1===n.indexOf(r.id)){n.push(r.id);var a=So(e.master,r),o=[];!a.audio||(0,b.muxerSupportsCodec)(a.audio)||(0,b.browserSupportsCodec)(a.audio)||o.push("audio codec "+a.audio),!a.video||(0,b.muxerSupportsCodec)(a.video)||(0,b.browserSupportsCodec)(a.video)||o.push("video codec "+a.video),a.text&&"stpp.ttml.im1t"===a.text&&o.push("text codec "+a.text),o.length&&(r.excludeUntil=1/0,e.logger_("excluding "+r.id+" for unsupported: "+o.join(", ")))}}))},n.excludeIncompatibleVariants_=function(e){var t=this,n=[],i=this.master().playlists,r=wo((0,b.parseCodecs)(e)),a=To(r),o=r.video&&(0,b.parseCodecs)(r.video)[0]||null,s=r.audio&&(0,b.parseCodecs)(r.audio)[0]||null;Object.keys(i).forEach((function(e){var r=i[e];if(-1===n.indexOf(r.id)&&r.excludeUntil!==1/0){n.push(r.id);var u=[],c=So(t.masterPlaylistLoader_.master,r),l=To(c);if(c.audio||c.video){if(l!==a&&u.push('codec count "'+l+'" !== "'+a+'"'),!t.sourceUpdater_.canChangeType()){var d=c.video&&(0,b.parseCodecs)(c.video)[0]||null,f=c.audio&&(0,b.parseCodecs)(c.audio)[0]||null;d&&o&&d.type.toLowerCase()!==o.type.toLowerCase()&&u.push('video codec "'+d.type+'" !== "'+o.type+'"'),f&&s&&f.type.toLowerCase()!==s.type.toLowerCase()&&u.push('audio codec "'+f.type+'" !== "'+s.type+'"')}u.length&&(r.excludeUntil=1/0,t.logger_("blacklisting "+r.id+": "+u.join(" && ")))}}}))},n.updateAdCues_=function(e){var t=0,n=this.seekable();n.length&&(t=n.start(0)),function(e,t,n){if(void 0===n&&(n=0),e.segments)for(var i,r=n,a=0;a<e.segments.length;a++){var s=e.segments[a];if(i||(i=ts(t,r+s.duration/2)),i){if("cueIn"in s){i.endTime=r,i.adEndTime=r,r+=s.duration,i=null;continue}if(r<i.endTime){r+=s.duration;continue}i.endTime+=s.duration}else if("cueOut"in s&&(i=new o.default.VTTCue(r,r+s.duration,s.cueOut),i.adStartTime=r,i.adEndTime=r+parseFloat(s.cueOut),t.addCue(i)),"cueOutCont"in s){var u=s.cueOutCont.split("/").map(parseFloat),c=u[0],l=u[1];i=new o.default.VTTCue(r,r+s.duration,""),i.adStartTime=r-c,i.adEndTime=i.adStartTime+l,t.addCue(i)}r+=s.duration}}(e,this.cueTagsTrack_,t)},n.goalBufferLength=function(){var e=this.tech_.currentTime(),t=Wa.GOAL_BUFFER_LENGTH,n=Wa.GOAL_BUFFER_LENGTH_RATE,i=Math.max(t,Wa.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*n,i)},n.bufferLowWaterLine=function(){var e=this.tech_.currentTime(),t=Wa.BUFFER_LOW_WATER_LINE,n=Wa.BUFFER_LOW_WATER_LINE_RATE,i=Math.max(t,Wa.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,Wa.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*n,this.experimentalBufferBasedABR?r:i)},n.bufferHighWaterLine=function(){return Wa.BUFFER_HIGH_WATER_LINE},t}(Pr.EventTarget),bs=function(e,t,n){var i=e.masterPlaylistController_,r=e.options_.smoothQualityChange,a=r?"smooth":"fast",o=i[a+"QualityChange_"].bind(i);if(t.attributes){var s=t.attributes.RESOLUTION;this.width=s&&s.width,this.height=s&&s.height,this.bandwidth=t.attributes.BANDWIDTH}this.codecs=So(i.master(),t),this.playlist=t,this.id=n,this.enabled=function(e,t,n){return function(i){var r=e.master.playlists[t],a=na(r),o=ia(r);return"undefined"===typeof i?o:(i?delete r.disabled:r.disabled=!0,i===o||a||(n(),i?e.trigger("renditionenabled"):e.trigger("renditiondisabled")),i)}}(e.playlists,t.id,o)},_s=["seeking","seeked","pause","playing","error"],ws=function(){function e(e){var t=this;this.masterPlaylistController_=e.masterPlaylistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=Nr("PlaybackWatcher"),this.logger_("initialize");var n=function(){return t.monitorCurrentTime_()},i=function(){return t.monitorCurrentTime_()},r=function(){return t.techWaiting_()},a=function(){return t.cancelTimer_()},s=this.masterPlaylistController_,u=["main","subtitle","audio"],c={};u.forEach((function(e){c[e]={reset:function(){return t.resetSegmentDownloads_(e)},updateend:function(){return t.checkSegmentDownloads_(e)}},s[e+"SegmentLoader_"].on("appendsdone",c[e].updateend),s[e+"SegmentLoader_"].on("playlistupdate",c[e].reset),t.tech_.on(["seeked","seeking"],c[e].reset)}));var l=function(e){["main","audio"].forEach((function(n){s[n+"SegmentLoader_"][e]("appended",t.seekingAppendCheck_)}))};this.seekingAppendCheck_=function(){t.fixesBadSeeks_()&&(t.consecutiveUpdates=0,t.lastRecordedTime=t.tech_.currentTime(),l("off"))},this.clearSeekingAppendCheck_=function(){return l("off")},this.watchForBadSeeking_=function(){t.clearSeekingAppendCheck_(),l("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",r),this.tech_.on(_s,a),this.tech_.on("canplay",i),this.tech_.one("play",n),this.dispose=function(){t.clearSeekingAppendCheck_(),t.logger_("dispose"),t.tech_.off("waiting",r),t.tech_.off(_s,a),t.tech_.off("canplay",i),t.tech_.off("play",n),t.tech_.off("seeking",t.watchForBadSeeking_),t.tech_.off("seeked",t.clearSeekingAppendCheck_),u.forEach((function(e){s[e+"SegmentLoader_"].off("appendsdone",c[e].updateend),s[e+"SegmentLoader_"].off("playlistupdate",c[e].reset),t.tech_.off(["seeked","seeking"],c[e].reset)})),t.checkCurrentTimeTimeout_&&o.default.clearTimeout(t.checkCurrentTimeTimeout_),t.cancelTimer_()}}var t=e.prototype;return t.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&o.default.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=o.default.setTimeout(this.monitorCurrentTime_.bind(this),250)},t.resetSegmentDownloads_=function(e){var t=this.masterPlaylistController_[e+"SegmentLoader_"];this[e+"StalledDownloads_"]>0&&this.logger_("resetting possible stalled download count for "+e+" loader"),this[e+"StalledDownloads_"]=0,this[e+"Buffered_"]=t.buffered_()},t.checkSegmentDownloads_=function(e){var t=this.masterPlaylistController_,n=t[e+"SegmentLoader_"],i=n.buffered_(),r=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;if(e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e.start(n)!==t.start(n)||e.end(n)!==t.end(n))return!0;return!1}(this[e+"Buffered_"],i);this[e+"Buffered_"]=i,r?this.resetSegmentDownloads_(e):(this[e+"StalledDownloads_"]++,this.logger_("found #"+this[e+"StalledDownloads_"]+" "+e+" appends that did not increase buffer (possible stalled download)",{playlistId:n.playlist_&&n.playlist_.id,buffered:Hr(i)}),this[e+"StalledDownloads_"]<10||(this.logger_(e+" loader stalled download exclusion"),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:"vhs-"+e+"-download-exclusion"}),"subtitle"!==e&&t.blacklistCurrentPlaylist({message:"Excessive "+e+" segment downloading detected."},1/0)))},t.checkCurrentTime_=function(){if(!this.tech_.paused()&&!this.tech_.seeking()){var e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+.1>=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}},t.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},t.fixesBadSeeks_=function(){var e=this.tech_.seeking();if(!e)return!1;var t,n=this.seekable(),i=this.tech_.currentTime(),r=this.afterSeekableWindow_(n,i,this.media(),this.allowSeeksWithinUnsafeLiveWindow);if(r){var a=n.end(n.length-1);t=a}if(this.beforeSeekableWindow_(n,i)){var o=n.start(0);t=o+(o===n.end(0)?0:.1)}if("undefined"!==typeof t)return this.logger_("Trying to seek outside of seekable at time "+i+" with seekable range "+$r(n)+". Seeking to "+t+"."),this.tech_.setCurrentTime(t),!0;for(var s=this.masterPlaylistController_.sourceUpdater_,u=this.tech_.buffered(),c=s.audioBuffer?s.audioBuffered():null,l=s.videoBuffer?s.videoBuffered():null,d=this.media(),f=d.partTargetDuration?d.partTargetDuration:2*(d.targetDuration-1/30),h=[c,l],p=0;p<h.length;p++)if(h[p]){var g=zr(h[p],i);if(g<f)return!1}var v=Fr(u,i);return 0!==v.length&&(t=v.start(0)+.1,this.logger_("Buffered region starts ("+v.start(0)+") just beyond seek point ("+i+"). Seeking to "+t+"."),this.tech_.setCurrentTime(t),!0)},t.waiting_=function(){if(!this.techWaiting_()){var e=this.tech_.currentTime(),t=this.tech_.buffered(),n=Ur(t,e);return n.length&&e+3<=n.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(e),this.logger_("Stopped at "+e+" while inside a buffered region ["+n.start(0)+" -> "+n.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}},t.techWaiting_=function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t)){var n=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var i=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,r=this.tech_.buffered(),a=this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:t});if(a)return this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var o=Fr(r,t);if(o.length>0){var s=o.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+s+", seeking to "+o.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*s,t),!0}return!1},t.afterSeekableWindow_=function(e,t,n,i){if(void 0===i&&(i=!1),!e.length)return!1;var r=e.end(e.length-1)+.1,a=!n.endList;return a&&i&&(r=e.end(e.length-1)+3*n.targetDuration),t>r},t.beforeSeekableWindow_=function(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)},t.videoUnderflow_=function(e){var t=e.videoBuffered,n=e.audioBuffered,i=e.currentTime;if(t){var r;if(t.length&&n.length){var a=Ur(t,i-3),o=Ur(t,i),s=Ur(n,i);s.length&&!o.length&&a.length&&(r={start:a.end(0),end:s.end(0)})}else{var u=Fr(t,i);u.length||(r=this.gapFromVideoUnderflow_(t,i))}return!!r&&(this.logger_("Encountered a gap in video from "+r.start+" to "+r.end+". Seeking to current time "+i),!0)}},t.skipTheGap_=function(e){var t=this.tech_.buffered(),n=this.tech_.currentTime(),i=Fr(t,n);this.cancelTimer_(),0!==i.length&&n===e&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",e,"nextRange start:",i.start(0)),this.tech_.setCurrentTime(i.start(0)+1/30),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))},t.gapFromVideoUnderflow_=function(e,t){for(var n=function(e){if(e.length<2)return Pr.createTimeRanges();for(var t=[],n=1;n<e.length;n++){var i=e.end(n-1),r=e.start(n);t.push([i,r])}return Pr.createTimeRanges(t)}(e),i=0;i<n.length;i++){var r=n.start(i),a=n.end(i);if(t-r<4&&t-r>2)return{start:r,end:a}}return null},e}(),Ts={errorInterval:30,getSource:function(e){var t=this.tech({IWillNotUseThisInPlugins:!0}),n=t.currentSource_||this.currentSource();return e(n)}},Ss={PlaylistLoader:Sa,Playlist:ca,utils:Ra,STANDARD_PLAYLIST_SELECTOR:jo,INITIAL_PLAYLIST_SELECTOR:function(){var e=this,t=this.playlists.master.playlists.filter(ca.isEnabled);Eo(t,(function(e,t){return Ao(e,t)}));var n=t.filter((function(t){return!!So(e.playlists.master,t).video}));return n[0]||null},lastBandwidthSelector:jo,movingAverageBandwidthSelector:function(e){var t=-1,n=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var i=this.useDevicePixelRatio&&o.default.devicePixelRatio||1;return t<0&&(t=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(t=e*this.systemBandwidth+(1-e)*t,n=this.systemBandwidth),Oo(this.playlists.master,t,parseInt(Co(this.tech_.el(),"width"),10)*i,parseInt(Co(this.tech_.el(),"height"),10)*i,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},comparePlaylistBandwidth:Ao,comparePlaylistResolution:function(e,t){var n,i;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||o.default.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(i=t.attributes.RESOLUTION.width),i=i||o.default.Number.MAX_VALUE,n===i&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-i},xhr:Ea()};Object.keys(Wa).forEach((function(e){Object.defineProperty(Ss,e,{get:function(){return Pr.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),Wa[e]},set:function(t){Pr.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),"number"!==typeof t||t<0?Pr.log.warn("value of Vhs."+e+" must be greater than or equal to 0"):Wa[e]=t}})}));var ks=function(e,t){for(var n=t.media(),i=-1,r=0;r<e.length;r++)if(e[r].id===n.id){i=r;break}e.selectedIndex_=i,e.trigger({selectedIndex:i,type:"change"})};Ss.canPlaySource=function(){return Pr.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var xs=function(e){var t=e.player,n=e.sourceKeySystems,i=e.audioMedia,r=e.mainPlaylists;if(!t.eme.initializeMediaKeys)return Promise.resolve();var a=i?r.concat([i]):r,o=function(e,t){return e.reduce((function(e,n){if(!n.contentProtection)return e;var i=t.reduce((function(e,t){var i=n.contentProtection[t];return i&&i.pssh&&(e[t]={pssh:i.pssh}),e}),{});return Object.keys(i).length&&e.push(i),e}),[])}(a,Object.keys(n)),s=[],u=[];return o.forEach((function(e){u.push(new Promise((function(e,n){t.tech_.one("keysessioncreated",e)}))),s.push(new Promise((function(n,i){t.eme.initializeMediaKeys({keySystems:e},(function(e){e?i(e):n()}))})))})),Promise.race([Promise.all(s),Promise.race(u)])},Cs=function(e){var t=e.player,n=e.sourceKeySystems,i=e.media,r=e.audioMedia,a=function(e,t,n){if(!e)return e;var i={};t&&t.attributes&&t.attributes.CODECS&&(i=wo((0,b.parseCodecs)(t.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(i.audio=n.attributes.CODECS);var r=(0,b.getMimeForCodec)(i.video),a=(0,b.getMimeForCodec)(i.audio),o={};for(var s in e)o[s]={},a&&(o[s].audioContentType=a),r&&(o[s].videoContentType=r),t.contentProtection&&t.contentProtection[s]&&t.contentProtection[s].pssh&&(o[s].pssh=t.contentProtection[s].pssh),"string"===typeof e[s]&&(o[s].url=e[s]);return Pr.mergeOptions(e,o)}(n,i,r);return!!a&&(t.currentSource().keySystems=a,!(a&&!t.eme)||(Pr.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))},Es=function(){if(!o.default.localStorage)return null;var e=o.default.localStorage.getItem("videojs-vhs");if(!e)return null;try{return JSON.parse(e)}catch(t){return null}};Ss.supportsNativeHls=function(){if(!s.default||!s.default.createElement)return!1;var e=s.default.createElement("video");if(!Pr.getTech("Html5").isSupported())return!1;return["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some((function(t){return/maybe|probably/i.test(e.canPlayType(t))}))}(),Ss.supportsNativeDash=function(){return!!(s.default&&s.default.createElement&&Pr.getTech("Html5").isSupported())&&/maybe|probably/i.test(s.default.createElement("video").canPlayType("application/dash+xml"))}(),Ss.supportsTypeNatively=function(e){return"hls"===e?Ss.supportsNativeHls:"dash"===e&&Ss.supportsNativeDash},Ss.isSupported=function(){return Pr.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var As=Pr.getComponent("Component"),Os=function(e){function t(t,n,i){var r;if(r=e.call(this,n,Pr.mergeOptions(i.hls,i.vhs))||this,i.hls&&Object.keys(i.hls).length&&Pr.log.warn("Using hls options is deprecated. Please rename `hls` to `vhs` in your options object."),"number"===typeof i.initialBandwidth&&(r.options_.bandwidth=i.initialBandwidth),r.logger_=Nr("VhsHandler"),n.options_&&n.options_.playerId){var a=Pr(n.options_.playerId);a.hasOwnProperty("hls")||Object.defineProperty(a,"hls",{get:function(){return Pr.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"hls-player-access"}),(0,l.default)(r)},configurable:!0}),a.hasOwnProperty("vhs")||Object.defineProperty(a,"vhs",{get:function(){return Pr.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"vhs-player-access"}),(0,l.default)(r)},configurable:!0}),a.hasOwnProperty("dash")||Object.defineProperty(a,"dash",{get:function(){return Pr.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),(0,l.default)(r)},configurable:!0}),r.player_=a}if(r.tech_=n,r.source_=t,r.stats={},r.ignoreNextSeekingEvent_=!1,r.setOptions_(),r.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(r.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return r.on(s.default,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],(function(e){var t=s.default.fullscreenElement||s.default.webkitFullscreenElement||s.default.mozFullScreenElement||s.default.msFullscreenElement;t&&t.contains(r.tech_.el())?r.masterPlaylistController_.fastQualityChange_():r.masterPlaylistController_.checkABR_()})),r.on(r.tech_,"seeking",(function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())})),r.on(r.tech_,"error",(function(){this.tech_.error()&&this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()})),r.on(r.tech_,"play",r.play),r}(0,d.default)(t,e);var n=t.prototype;return n.setOptions_=function(){var e=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=!1!==this.options_.handleManifestRedirects,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage="undefined"!==typeof this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!==typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!==typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var t=Es();t&&t.bandwidth&&(this.options_.bandwidth=t.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),t&&t.throughput&&(this.options_.throughput=t.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}"number"!==typeof this.options_.bandwidth&&(this.options_.bandwidth=Wa.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Wa.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS","useNetworkInformationApi","useDtsForTimestampOffset","experimentalExactManifestTimings","experimentalLeastPixelDiffSelector"].forEach((function(t){"undefined"!==typeof e.source_[t]&&(e.options_[t]=e.source_[t])})),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},n.src=function(e,t){var n=this;if(e){this.setOptions_(),this.options_.src=function(e){return 0===e.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(e.substring(e.indexOf(",")+1)):e}(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=Ss,this.options_.sourceType=(0,_.simpleTypeFromSourceType)(t),this.options_.seekTo=function(e){n.tech_.setCurrentTime(e)},this.options_.smoothQualityChange&&Pr.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new ys(this.options_);var i=Pr.mergeOptions({liveRangeSafeTimeDelta:.1},this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new ws(i),this.masterPlaylistController_.on("error",(function(){var e=Pr.players[n.tech_.options_.playerId],t=n.masterPlaylistController_.error;"object"!==(0,r.default)(t)||t.code?"string"===typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)}));var a=this.options_.experimentalBufferBasedABR?Ss.movingAverageBandwidthSelector(.55):Ss.STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):a.bind(this),this.masterPlaylistController_.selectInitialPlaylist=Ss.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(e){this.masterPlaylistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=e,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){var e=this.masterPlaylistController_.mainSegmentLoader_.bandwidth,t=o.default.navigator.connection||o.default.navigator.mozConnection||o.default.navigator.webkitConnection;if(this.options_.useNetworkInformationApi&&t){var n=1e3*t.downlink*1e3;e=n>=1e7&&e>=1e7?Math.max(e,n):n}return e},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e,t=1/(this.bandwidth||1);e=this.throughput>0?1/this.throughput:0;var n=Math.floor(1/(t+e));return n},set:function(){Pr.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return n.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return n.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return n.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return Hr(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return Hr(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",(function(){n.options_.useBandwidthFromLocalStorage&&function(e){if(!o.default.localStorage)return!1;var t=Es();t=t?Pr.mergeOptions(t,e):e;try{o.default.localStorage.setItem("videojs-vhs",JSON.stringify(t))}catch(n){return!1}}({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})})),this.masterPlaylistController_.on("selectedinitialmedia",(function(){(function(e){e.representations=function(){var t=e.masterPlaylistController_.master(),n=ua(t)?e.masterPlaylistController_.getAudioTrackPlaylists_():t.playlists;return n?n.filter((function(e){return!na(e)})).map((function(t,n){return new bs(e,t,t.id)})):[]}})(n)})),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",(function(){n.setupEme_()})),this.on(this.masterPlaylistController_,"progress",(function(){this.tech_.trigger("progress")})),this.on(this.masterPlaylistController_,"firstplay",(function(){this.ignoreNextSeekingEvent_=!0})),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=o.default.URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},n.createKeySessions_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),xs({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:t&&t.media(),mainPlaylists:this.playlists.master.playlists}).then((function(){e.logger_("created EME key session"),e.masterPlaylistController_.sourceUpdater_.initializedEme()}))["catch"]((function(t){e.logger_("error while creating EME key session",t),e.player_.error({message:"Failed to initialize media keys for EME",code:3})}))},n.handleWaitingForKey_=function(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()},n.setupEme_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,n=Cs({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});this.player_.tech_.on("keystatuschange",(function(t){if("output-restricted"===t.status){var n=e.masterPlaylistController_.master();if(n&&n.playlists){var i,r=[];if(n.playlists.forEach((function(e){e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height>=720&&(!e.excludeUntil||e.excludeUntil<1/0)&&(e.excludeUntil=1/0,r.push(e))})),r.length)(i=Pr.log).warn.apply(i,['DRM keystatus changed to "output-restricted." Removing the following HD playlists that will most likely fail to play and clearing the buffer. This may be due to HDCP restrictions on the stream and the capabilities of the current device.'].concat(r)),e.masterPlaylistController_.fastQualityChange_()}}})),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),11!==Pr.browser.IE_VERSION&&n?this.createKeySessions_():this.masterPlaylistController_.sourceUpdater_.initializedEme()},n.setupQualityLevels_=function(){var e=this,t=Pr.players[this.tech_.options_.playerId];t&&t.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",(function(){(function(e,t){t.representations().forEach((function(t){e.addQualityLevel(t)})),ks(e,t.playlists)})(e.qualityLevels_,e)})),this.playlists.on("mediachange",(function(){ks(e.qualityLevels_,e.playlists)})))},t.version=function(){return{"@videojs/http-streaming":"2.14.3","mux.js":"6.0.1","mpd-parser":"0.21.1","m3u8-parser":"4.7.1","aes-decrypter":"3.1.3"}},n.version=function(){return this.constructor.version()},n.canChangeType=function(){return Qo.canChangeType()},n.play=function(){this.masterPlaylistController_.play()},n.setCurrentTime=function(e){this.masterPlaylistController_.setCurrentTime(e)},n.duration=function(){return this.masterPlaylistController_.duration()},n.seekable=function(){return this.masterPlaylistController_.seekable()},n.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&o.default.URL.revokeObjectURL&&(o.default.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),e.prototype.dispose.call(this)},n.convertToProgramTime=function(e,t){return Na({playlist:this.masterPlaylistController_.media(),time:e,callback:t})},n.seekToProgramTime=function(e,t,n,i){return void 0===n&&(n=!0),void 0===i&&(i=2),Ba({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:i,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})},t}(As),js={name:"videojs-http-streaming",VERSION:"2.14.3",canHandleSource:function(e,t){void 0===t&&(t={});var n=Pr.mergeOptions(Pr.options,t);return js.canPlayType(e.type,n)},handleSource:function(e,t,n){void 0===n&&(n={});var i=Pr.mergeOptions(Pr.options,n);return t.vhs=new Os(e,t,i),Pr.hasOwnProperty("hls")||Object.defineProperty(t,"hls",{get:function(){return Pr.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),t.vhs},configurable:!0}),t.vhs.xhr=Ea(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e,t){void 0===t&&(t={});var n=Pr.mergeOptions(Pr.options,t),i=n.vhs;i=void 0===i?{}:i;var r=i.overrideNative,a=void 0===r?!Pr.browser.IS_ANY_SAFARI:r,o=n.hls;o=void 0===o?{}:o;var s=o.overrideNative,u=void 0!==s&&s,c=(0,_.simpleTypeFromSourceType)(e),l=c&&(!Ss.supportsTypeNatively(c)||u||a);return l?"maybe":""}};if(function(){return(0,b.browserSupportsCodec)("avc1.4d400d,mp4a.40.2")}()&&Pr.getTech("Html5").registerSourceHandler(js,0),Pr.VhsHandler=Os,Object.defineProperty(Pr,"HlsHandler",{get:function(){return Pr.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),Os},configurable:!0}),Pr.VhsSourceHandler=js,Object.defineProperty(Pr,"HlsSourceHandler",{get:function(){return Pr.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),js},configurable:!0}),Pr.Vhs=Ss,Object.defineProperty(Pr,"Hls",{get:function(){return Pr.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),Ss},configurable:!0}),Pr.use||(Pr.registerComponent("Hls",Ss),Pr.registerComponent("Vhs",Ss)),Pr.options.vhs=Pr.options.vhs||{},Pr.options.hls=Pr.options.hls||{},!Pr.getPlugin||!Pr.getPlugin("reloadSourceOnError")){var Is=Pr.registerPlugin||Pr.plugin;Is("reloadSourceOnError",(function(e){(function e(t,n){var i=0,r=0,a=Pr.mergeOptions(Ts,n);t.ready((function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"}),t.trigger({type:"usage",name:"hls-error-reload-initialized"})}));var o=function(){r&&t.currentTime(r)},s=function(e){null!==e&&void 0!==e&&(r=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",o),t.src(e),t.trigger({type:"usage",name:"vhs-error-reload"}),t.trigger({type:"usage",name:"hls-error-reload"}),t.play())},u=function(){return Date.now()-i<1e3*a.errorInterval?(t.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void t.trigger({type:"usage",name:"hls-error-reload-canceled"})):a.getSource&&"function"===typeof a.getSource?(i=Date.now(),a.getSource.call(t,s)):void Pr.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},c=function e(){t.off("loadedmetadata",o),t.off("error",u),t.off("dispose",e)};t.on("error",u),t.on("dispose",c),t.reloadSourceOnError=function(n){c(),e(t,n)}})(this,e)}))}var Ps=Pr;t.default=Ps}).call(this,n("c8ba"))},c430:function(e,t){e.exports=!1},c513:function(e,t,n){var i=n("23e7"),r=n("1a2d"),a=n("d9b5"),o=n("0d51"),s=n("5692"),u=n("0b43"),c=s("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!u},{keyFor:function(e){if(!a(e))throw TypeError(o(e)+" is not a symbol");if(r(c,e))return c[e]}})},c607:function(e,t,n){var i=n("83ab"),r=n("fce3"),a=n("c6b6"),o=n("edd0"),s=n("69f3").get,u=RegExp.prototype,c=TypeError;i&&r&&o(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if("RegExp"===a(this))return!!s(this).dotAll;throw c("Incompatible receiver, RegExp required")}}})},c60d:function(e,t,n){var i=n("1a2d");e.exports=function(e){return void 0!==e&&(i(e,"value")||i(e,"writable"))}},c65b:function(e,t,n){var i=n("40d5"),r=Function.prototype.call;e.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},c6b6:function(e,t,n){var i=n("e330"),r=i({}.toString),a=i("".slice);e.exports=function(e){return a(r(e),8,-1)}},c6cd:function(e,t,n){var i=n("da84"),r=n("6374"),a=i["__core-js_shared__"]||r("__core-js_shared__",{});e.exports=a},c6d2:function(e,t,n){"use strict";var i=n("23e7"),r=n("c65b"),a=n("c430"),o=n("5e77"),s=n("1626"),u=n("dcc3"),c=n("e163"),l=n("d2bb"),d=n("d44e"),f=n("9112"),h=n("cb2d"),p=n("b622"),g=n("3f8c"),v=n("ae93"),m=o.PROPER,y=o.CONFIGURABLE,b=v.IteratorPrototype,_=v.BUGGY_SAFARI_ITERATORS,w=p("iterator"),T=function(){return this};e.exports=function(e,t,n,o,p,v,S){u(n,t,o);var k,x,C,E=function(e){if(e===p&&P)return P;if(!_&&e in j)return j[e];switch(e){case"keys":return function(){return new n(this,e)};case"values":return function(){return new n(this,e)};case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},A=t+" Iterator",O=!1,j=e.prototype,I=j[w]||j["@@iterator"]||p&&j[p],P=!_&&I||E(p),M="Array"==t&&j.entries||I;if(M&&(k=c(M.call(new e)),k!==Object.prototype&&k.next&&(a||c(k)===b||(l?l(k,b):s(k[w])||h(k,w,T)),d(k,A,!0,!0),a&&(g[A]=T))),m&&"values"==p&&I&&"values"!==I.name&&(!a&&y?f(j,"name","values"):(O=!0,P=function(){return r(I,this)})),p)if(x={values:E("values"),keys:v?P:E("keys"),entries:E("entries")},S)for(C in x)(_||O||!(C in j))&&h(j,C,x[C]);else i({target:t,proto:!0,forced:_||O},x);return a&&!S||j[w]===P||h(j,w,P,{name:p}),g[t]=P,x}},c740:function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").findIndex,a=n("44d2"),o=!0;"findIndex"in[]&&Array(1)["findIndex"]((function(){o=!1})),i({target:"Array",proto:!0,forced:o},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("findIndex")},c7eb:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
- t.default=function(){return e};var e={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(j){l=function(e,t,n){return e[t]=n}}function d(e,t,n,i){var r=t&&t.prototype instanceof p?t:p,o=Object.create(r.prototype),s=new E(i||[]);return a(o,"_invoke",{value:S(e,n,s)}),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(j){return{type:"throw",arg:j}}}e.wrap=d;var h={};function p(){}function g(){}function v(){}var m={};l(m,s,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(A([])));b&&b!==n&&r.call(b,s)&&(m=b);var _=v.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){var n;a(this,"_invoke",{value:function(a,o){function s(){return new t((function(n,s){(function n(a,o,s,u){var c=f(e[a],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==(0,i.default)(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)})(a,o,n,s)}))}return n=n?n.then(s,s):s()}})}function S(e,t,n){var i="suspendedStart";return function(r,a){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw a;return O()}for(n.method=r,n.arg=a;;){var o=n.delegate;if(o){var s=k(o,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var u=f(e,t,n);if("normal"===u.type){if(i=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i="completed",n.method="throw",n.arg=u.arg)}}}function k(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator["return"]&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var r=f(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function A(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return g.prototype=v,a(_,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:g,configurable:!0}),g.displayName=l(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(T.prototype),l(T.prototype,u,(function(){return this})),e.AsyncIterator=T,e.async=function(t,n,i,r,a){void 0===a&&(a=Promise);var o=new T(d(t,n,i,r),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},w(_),l(_,c,"Generator"),l(_,s,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=A,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,i){return o.type="throw",o.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e},n("7a82"),n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("b636"),n("944a"),n("0c47"),n("23dc"),n("3410"),n("d9e2"),n("d401"),n("14d9"),n("159b"),n("131a"),n("26e9"),n("fb6a");var i=function(e){return e&&e.__esModule?e:{default:e}}(n("53ca"))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},c8d2:function(e,t,n){var i=n("5e77").PROPER,r=n("d039"),a=n("5899");e.exports=function(e){return r((function(){return!!a[e]()||"
"!=="
"[e]()||i&&a[e].name!==e}))}},c975:function(e,t,n){"use strict";var i=n("23e7"),r=n("4625"),a=n("4d64").indexOf,o=n("a640"),s=r([].indexOf),u=!!s&&1/s([1],1,-0)<0,c=o("indexOf");i({target:"Array",proto:!0,forced:u||!c},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return u?s(this,e,t)||0:a(this,e,t)}})},ca02:function(e,t,n){n("1d1c"),n("d9e2"),n("d401");var i={"":!0,up:!0};function r(e){return"number"===typeof e&&e>=0&&e<=100}e.exports=function(){var e=100,t=3,n=0,a=100,o=0,s=100,u="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!r(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!==typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(e){if(!r(e))throw new Error("RegionAnchorX must be between 0 and 100.");a=e}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(e){if(!r(e))throw new Error("RegionAnchorY must be between 0 and 100.");n=e}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!r(e))throw new Error("ViewportAnchorY must be between 0 and 100.");s=e}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(e){if(!r(e))throw new Error("ViewportAnchorX must be between 0 and 100.");o=e}},scroll:{enumerable:!0,get:function(){return u},set:function(e){var t=function(e){if("string"!==typeof e)return!1;var t=i[e.toLowerCase()];return!!t&&e.toLowerCase()}(e);!1===t?console.warn("Scroll: an invalid or illegal string was specified."):u=t}}})}},ca84:function(e,t,n){var i=n("e330"),r=n("1a2d"),a=n("fc6a"),o=n("4d64").indexOf,s=n("d012"),u=i([].push);e.exports=function(e,t){var n,i=a(e),c=0,l=[];for(n in i)!r(s,n)&&r(i,n)&&u(l,n);while(t.length>c)r(i,n=t[c++])&&(~o(l,n)||u(l,n));return l}},ca91:function(e,t,n){"use strict";var i=n("ebb5"),r=n("d58f").left,a=i.aTypedArray,o=i.exportTypedArrayMethod;o("reduce",(function(e){var t=arguments.length;return r(a(this),e,t,t>1?arguments[1]:void 0)}))},caad:function(e,t,n){"use strict";var i=n("23e7"),r=n("4d64").includes,a=n("d039"),o=n("44d2"),s=a((function(){return!Array(1).includes()}));i({target:"Array",proto:!0,forced:s},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},cb29:function(e,t,n){var i=n("23e7"),r=n("81d5"),a=n("44d2");i({target:"Array",proto:!0},{fill:r}),a("fill")},cb2d:function(e,t,n){var i=n("1626"),r=n("9bf2"),a=n("13d2"),o=n("6374");e.exports=function(e,t,n,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:t;if(i(n)&&a(n,c,s),s.global)u?e[t]=n:o(t,n);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch(l){}u?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},cc12:function(e,t,n){var i=n("da84"),r=n("861d"),a=i.document,o=r(a)&&r(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},cc98:function(e,t,n){"use strict";var i=n("23e7"),r=n("c430"),a=n("4738").CONSTRUCTOR,o=n("d256"),s=n("d066"),u=n("1626"),c=n("cb2d"),l=o&&o.prototype;if(i({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(e){return this.then(void 0,e)}}),!r&&u(o)){var d=s("Promise").prototype["catch"];l["catch"]!==d&&c(l,"catch",d,{unsafe:!0})}},cca6:function(e,t,n){var i=n("23e7"),r=n("60da");i({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},cd26:function(e,t,n){"use strict";var i=n("ebb5"),r=i.aTypedArray,a=i.exportTypedArrayMethod,o=Math.floor;a("reverse",(function(){var e,t=r(this).length,n=o(t/2),i=0;while(i<n)e=this[i],this[i++]=this[--t],this[t]=e;return this}))},cdce:function(e,t,n){var i=n("da84"),r=n("1626"),a=i.WeakMap;e.exports=r(a)&&/native code/.test(String(a))},cdf9:function(e,t,n){var i=n("825a"),r=n("861d"),a=n("f069");e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=a.f(e),o=n.resolve;return o(t),n.promise}},cee1:function(e,t,n){var i=n("7037").default;n("4de4"),n("d3b7"),n("ac1f"),n("1276"),n("b64b"),n("13d5"),n("c975"),n("d9e2"),n("d401"),n("14d9"),n("25f0"),n("5319"),n("00b4"),n("fb6a"),n("7a82");var r=n("7342"),a=r.NAMESPACE;function o(e){return""!==e}function s(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function u(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(o):[]}(e);return Object.keys(t.reduce(s,{}))}function c(e,t){for(var n in e)t[n]=e[n]}function l(e,t){var n=e.prototype;if(!(n instanceof t)){var i=function(){};i.prototype=t.prototype,i=new i,c(n,i),e.prototype=n=i}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var d={},f=d.ELEMENT_NODE=1,h=d.ATTRIBUTE_NODE=2,p=d.TEXT_NODE=3,g=d.CDATA_SECTION_NODE=4,v=d.ENTITY_REFERENCE_NODE=5,m=d.ENTITY_NODE=6,y=d.PROCESSING_INSTRUCTION_NODE=7,b=d.COMMENT_NODE=8,_=d.DOCUMENT_NODE=9,w=d.DOCUMENT_TYPE_NODE=10,T=d.DOCUMENT_FRAGMENT_NODE=11,S=d.NOTATION_NODE=12,k={},x={},C=(k.INDEX_SIZE_ERR=(x[1]="Index size error",1),k.DOMSTRING_SIZE_ERR=(x[2]="DOMString size error",2),k.HIERARCHY_REQUEST_ERR=(x[3]="Hierarchy request error",3)),E=(k.WRONG_DOCUMENT_ERR=(x[4]="Wrong document",4),k.INVALID_CHARACTER_ERR=(x[5]="Invalid character",5),k.NO_DATA_ALLOWED_ERR=(x[6]="No data allowed",6),k.NO_MODIFICATION_ALLOWED_ERR=(x[7]="No modification allowed",7),k.NOT_FOUND_ERR=(x[8]="Not found",8)),A=(k.NOT_SUPPORTED_ERR=(x[9]="Not supported",9),k.INUSE_ATTRIBUTE_ERR=(x[10]="Attribute in use",10));k.INVALID_STATE_ERR=(x[11]="Invalid state",11),k.SYNTAX_ERR=(x[12]="Syntax error",12),k.INVALID_MODIFICATION_ERR=(x[13]="Invalid modification",13),k.NAMESPACE_ERR=(x[14]="Invalid namespace",14),k.INVALID_ACCESS_ERR=(x[15]="Invalid access",15);function O(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,x[e]),this.message=x[e],Error.captureStackTrace&&Error.captureStackTrace(this,O);return n.code=e,t&&(this.message=this.message+": "+t),n}function j(){}function I(e,t){this._node=e,this._refresh=t,P(this)}function P(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);ce(e,"length",n.length),c(n,e),e._inc=t}}function M(){}function L(e,t){var n=e.length;while(n--)if(e[n]===t)return n}function D(e,t,n,i){if(i?t[L(t,i)]=n:t[t.length++]=n,e){n.ownerElement=e;var r=e.ownerDocument;r&&(i&&H(r,e,i),function(e,t,n){e&&e._inc++;var i=n.namespaceURI;i===a.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}(r,e,n))}}function R(e,t,n){var i=L(t,n);if(!(i>=0))throw O(E,new Error(e.tagName+"@"+n));var r=t.length-1;while(i<r)t[i]=t[++i];if(t.length=r,e){var a=e.ownerDocument;a&&(H(a,e,n),n.ownerElement=null)}}function N(){}function B(){}function U(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function F(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(F(e,t))return!0}while(e=e.nextSibling)}function $(){}function H(e,t,n,i){e&&e._inc++;var r=n.namespaceURI;r===a.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function V(e,t,n){if(e&&e._inc){e._inc++;var i=t.childNodes;if(n)i[i.length++]=n;else{var r=t.firstChild,a=0;while(r)i[a++]=r,r=r.nextSibling;i.length=a}}}function z(e,t){var n=t.previousSibling,i=t.nextSibling;return n?n.nextSibling=i:e.firstChild=i,i?i.previousSibling=n:e.lastChild=n,V(e.ownerDocument,e),t}function q(e,t,n){var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===T){var r=t.firstChild;if(null==r)return t;var a=t.lastChild}else r=a=t;var o=n?n.previousSibling:e.lastChild;r.previousSibling=o,a.nextSibling=n,o?o.nextSibling=r:e.firstChild=r,null==n?e.lastChild=a:n.previousSibling=a;do{r.parentNode=e}while(r!==a&&(r=r.nextSibling));return V(e.ownerDocument||e,e),t.nodeType==T&&(t.firstChild=t.lastChild=null),t}function W(){this._nsMap={}}function G(){}function Y(){}function X(){}function K(){}function Q(){}function J(){}function Z(){}function ee(){}function te(){}function ne(){}function ie(){}function re(){}function ae(e,t){var n=[],i=9==this.nodeType&&this.documentElement||this,r=i.prefix,a=i.namespaceURI;if(a&&null==r){r=i.lookupPrefix(a);if(null==r)var o=[{namespace:a,prefix:null}]}return ue(this,n,e,t,o),n.join("")}function oe(e,t,n){var i=e.prefix||"",r=e.namespaceURI;if(!r)return!1;if("xml"===i&&r===a.XML||r===a.XMLNS)return!1;var o=n.length;while(o--){var s=n[o];if(s.prefix===i)return s.namespace!==r}return!0}function se(e,t,n){e.push(" ",t,'="',n.replace(/[<&"]/g,U),'"')}function ue(e,t,n,i,r){if(r||(r=[]),i){if(e=i(e),!e)return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case f:var o=e.attributes,s=o.length,u=e.firstChild,c=e.tagName;n=a.isHTML(e.namespaceURI)||n;var l=c;if(!n&&!e.prefix&&e.namespaceURI){for(var d,m=0;m<o.length;m++)if("xmlns"===o.item(m).name){d=o.item(m).value;break}if(!d)for(var S=r.length-1;S>=0;S--){var k=r[S];if(""===k.prefix&&k.namespace===e.namespaceURI){d=k.namespace;break}}if(d!==e.namespaceURI)for(S=r.length-1;S>=0;S--){k=r[S];if(k.namespace===e.namespaceURI){k.prefix&&(l=k.prefix+":"+c);break}}}t.push("<",l);for(var x=0;x<s;x++){var C=o.item(x);"xmlns"==C.prefix?r.push({prefix:C.localName,namespace:C.value}):"xmlns"==C.nodeName&&r.push({prefix:"",namespace:C.value})}for(x=0;x<s;x++){C=o.item(x);if(oe(C,0,r)){var E=C.prefix||"",A=C.namespaceURI;se(t,E?"xmlns:"+E:"xmlns",A),r.push({prefix:E,namespace:A})}ue(C,t,n,i,r)}if(c===l&&oe(e,0,r)){E=e.prefix||"",A=e.namespaceURI;se(t,E?"xmlns:"+E:"xmlns",A),r.push({prefix:E,namespace:A})}if(u||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(c)){if(t.push(">"),n&&/^script$/i.test(c))while(u)u.data?t.push(u.data):ue(u,t,n,i,r.slice()),u=u.nextSibling;else while(u)ue(u,t,n,i,r.slice()),u=u.nextSibling;t.push("</",l,">")}else t.push("/>");return;case _:case T:u=e.firstChild;while(u)ue(u,t,n,i,r.slice()),u=u.nextSibling;return;case h:return se(t,e.name,e.value);case p:return t.push(e.data.replace(/[<&]/g,U).replace(/]]>/g,"]]>"));case g:return t.push("<![CDATA[",e.data,"]]>");case b:return t.push("\x3c!--",e.data,"--\x3e");case w:var O=e.publicId,j=e.systemId;if(t.push("<!DOCTYPE ",e.name),O)t.push(" PUBLIC ",O),j&&"."!=j&&t.push(" ",j),t.push(">");else if(j&&"."!=j)t.push(" SYSTEM ",j,">");else{var I=e.internalSubset;I&&t.push(" [",I,"]"),t.push(">")}return;case y:return t.push("<?",e.target," ",e.data,"?>");case v:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function ce(e,t,n){e[t]=n}O.prototype=Error.prototype,c(k,O),j.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],i=0;i<this.length;i++)ue(this[i],n,e,t);return n.join("")}},I.prototype.item=function(e){return P(this),this[e]},l(I,j),M.prototype={length:0,item:j.prototype.item,getNamedItem:function(e){var t=this.length;while(t--){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new O(A);var n=this.getNamedItem(e.nodeName);return D(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new O(A);return t=this.getNamedItemNS(e.namespaceURI,e.localName),D(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return R(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return R(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){var n=this.length;while(n--){var i=this[n];if(i.localName==t&&i.namespaceURI==e)return i}return null}},N.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var i=new $;if(i.implementation=this,i.childNodes=new j,i.doctype=n||null,n&&i.appendChild(n),t){var r=i.createElementNS(e,t);i.appendChild(r)}return i},createDocumentType:function(e,t,n){var i=new J;return i.name=e,i.nodeName=e,i.publicId=t||"",i.systemId=n||"",i}},B.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return q(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return z(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return function e(t,n,r){var a=new n.constructor;for(var o in n){var s=n[o];"object"!=i(s)&&s!=a[o]&&(a[o]=s)}n.childNodes&&(a.childNodes=new j);switch(a.ownerDocument=t,a.nodeType){case f:var u=n.attributes,c=a.attributes=new M,l=u.length;c._ownerElement=a;for(var d=0;d<l;d++)a.setAttributeNode(e(t,u.item(d),!0));break;case h:r=!0}if(r){var p=n.firstChild;while(p)a.appendChild(e(t,p,r)),p=p.nextSibling}return a}(this.ownerDocument||this,this,e)},normalize:function(){var e=this.firstChild;while(e){var t=e.nextSibling;t&&t.nodeType==p&&e.nodeType==p?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){var t=this;while(t){var n=t._nsMap;if(n)for(var i in n)if(n[i]==e)return i;t=t.nodeType==h?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){var t=this;while(t){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==h?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return null==t}},c(d,B),c(d,B.prototype),$.prototype={nodeName:"#document",nodeType:_,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==T){var n=e.firstChild;while(n){var i=n.nextSibling;this.insertBefore(n,t),n=i}return e}return null==this.documentElement&&e.nodeType==f&&(this.documentElement=e),q(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),z(this,e)},importNode:function(e,t){return function e(t,n,i){var r;switch(n.nodeType){case f:r=n.cloneNode(!1),r.ownerDocument=t;case T:break;case h:i=!0;break}r||(r=n.cloneNode(!1));if(r.ownerDocument=t,r.parentNode=null,i){var a=n.firstChild;while(a)r.appendChild(e(t,a,i)),a=a.nextSibling}return r}(this,e,t)},getElementById:function(e){var t=null;return F(this.documentElement,(function(n){if(n.nodeType==f&&n.getAttribute("id")==e)return t=n,!0})),t},getElementsByClassName:function(e){var t=u(e);return new I(this,(function(n){var i=[];return t.length>0&&F(n.documentElement,(function(r){if(r!==n&&r.nodeType===f){var a=r.getAttribute("class");if(a){var o=e===a;if(!o){var s=u(a);o=t.every(function(e){return function(t){return e&&-1!==e.indexOf(t)}}(s))}o&&i.push(r)}}})),i}))},createElement:function(e){var t=new W;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new j;var n=t.attributes=new M;return n._ownerElement=t,t},createDocumentFragment:function(){var e=new ne;return e.ownerDocument=this,e.childNodes=new j,e},createTextNode:function(e){var t=new X;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new K;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new Q;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new ie;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new G;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new te;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new W,i=t.split(":"),r=n.attributes=new M;return n.childNodes=new j,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,r._ownerElement=n,n},createAttributeNS:function(e,t){var n=new G,i=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,n}},l($,B),W.prototype={nodeType:f,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===T?this.insertBefore(e,null):function(e,t){var n=t.parentNode;if(n){var i=e.lastChild;n.removeChild(t);i=e.lastChild}return i=e.lastChild,t.parentNode=e,t.previousSibling=i,t.nextSibling=null,i?i.nextSibling=t:e.firstChild=t,e.lastChild=t,V(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var i=this.ownerDocument.createAttributeNS(e,t);i.value=i.nodeValue=""+n,this.setAttributeNode(i)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new I(this,(function(t){var n=[];return F(t,(function(i){i===t||i.nodeType!=f||"*"!==e&&i.tagName!=e||n.push(i)})),n}))},getElementsByTagNameNS:function(e,t){return new I(this,(function(n){var i=[];return F(n,(function(r){r===n||r.nodeType!==f||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||i.push(r)})),i}))}},$.prototype.getElementsByTagName=W.prototype.getElementsByTagName,$.prototype.getElementsByTagNameNS=W.prototype.getElementsByTagNameNS,l(W,B),G.prototype.nodeType=h,l(G,B),Y.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(x[C])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){var i=this.data.substring(0,e),r=this.data.substring(e+t);n=i+n+r,this.nodeValue=this.data=n,this.length=n.length}},l(Y,B),X.prototype={nodeName:"#text",nodeType:p,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var i=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}},l(X,Y),K.prototype={nodeName:"#comment",nodeType:b},l(K,Y),Q.prototype={nodeName:"#cdata-section",nodeType:g},l(Q,Y),J.prototype.nodeType=w,l(J,B),Z.prototype.nodeType=S,l(Z,B),ee.prototype.nodeType=m,l(ee,B),te.prototype.nodeType=v,l(te,B),ne.prototype.nodeName="#document-fragment",ne.prototype.nodeType=T,l(ne,B),ie.prototype.nodeType=y,l(ie,B),re.prototype.serializeToString=function(e,t,n){return ae.call(e,t,n)},B.prototype.toString=ae;try{if(Object.defineProperty){Object.defineProperty(I.prototype,"length",{get:function(){return P(this),this.$$length}}),Object.defineProperty(B.prototype,"textContent",{get:function(){return function e(t){switch(t.nodeType){case f:case T:var n=[];t=t.firstChild;while(t)7!==t.nodeType&&8!==t.nodeType&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}}(this)},set:function(e){switch(this.nodeType){case f:case T:while(this.firstChild)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),ce=function(e,t,n){e["$$"+t]=n}}}catch(le){}t.DocumentType=J,t.DOMException=O,t.DOMImplementation=N,t.Element=W,t.Node=B,t.NodeList=j,t.XMLSerializer=re},cf98:function(e,t){e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},cf986:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.setOpusHead=t.parseOpusHead=t.OPUS_HEAD=void 0,n("ace4"),n("d3b7"),n("5cc6"),n("907a"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("986a"),n("1d02"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),n("14d9"),n("c19f");var i=new Uint8Array([79,112,117,115,72,101,97,100]);t.OPUS_HEAD=i;t.parseOpusHead=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=t.getUint8(0),i=0!==n,r={version:n,channels:t.getUint8(1),preSkip:t.getUint16(2,i),sampleRate:t.getUint32(4,i),outputGain:t.getUint16(8,i),channelMappingFamily:t.getUint8(10)};if(r.channelMappingFamily>0&&e.length>10){r.streamCount=t.getUint8(11),r.twoChannelStreamCount=t.getUint8(12),r.channelMapping=[];for(var a=0;a<r.channels;a++)r.channelMapping.push(t.getUint8(13+a))}return r};t.setOpusHead=function(e){var t=e.channelMappingFamily<=0?11:12+e.channels,n=new DataView(new ArrayBuffer(t)),i=0!==e.version;return n.setUint8(0,e.version),n.setUint8(1,e.channels),n.setUint16(2,e.preSkip,i),n.setUint32(4,e.sampleRate,i),n.setUint16(8,e.outputGain,i),n.setUint8(10,e.channelMappingFamily),e.channelMappingFamily>0&&(n.setUint8(11,e.streamCount),e.channelMapping.foreach((function(e,t){n.setUint8(12+t,e)}))),new Uint8Array(n.buffer)}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var i=n("da84"),r=n("1626"),a=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(i[e]):i[e]&&i[e][t]}},d139:function(e,t,n){"use strict";var i=n("ebb5"),r=n("b727").find,a=i.aTypedArray,o=i.exportTypedArrayMethod;o("find",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},d1e7:function(e,t,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!i.call({1:2},1);t.f=a?function(e){var t=r(this,e);return!!t&&t.enumerable}:i},d256:function(e,t,n){var i=n("da84");e.exports=i.Promise},d28b:function(e,t,n){var i=n("e065");i("iterator")},d2bb:function(e,t,n){var i=n("e330"),r=n("825a"),a=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(o){}return function(n,i){return r(n),a(i),t?e(n,i):n.__proto__=i,n}}():void 0)},d3b7:function(e,t,n){var i=n("00ee"),r=n("cb2d"),a=n("b041");i||r(Object.prototype,"toString",a,{unsafe:!0})},d401:function(e,t,n){var i=n("cb2d"),r=n("aa1f"),a=Error.prototype;a.toString!==r&&i(a,"toString",r)},d44e:function(e,t,n){var i=n("9bf2").f,r=n("1a2d"),a=n("b622"),o=a("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!r(e,o)&&i(e,o,{configurable:!0,value:t})}},d4c3:function(e,t,n){var i=n("342f"),r=n("da84");e.exports=/ipad|iphone|ipod/i.test(i)&&void 0!==r.Pebble},d4ec:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n("d9e2"),n("d401")},d562:function(e,t,n){n("ace4"),n("d3b7"),n("aff5"),n("a9e3");var i=Math.pow(2,32);e.exports={getUint64:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.getBigUint64?(t=n.getBigUint64(0),t<Number.MAX_SAFE_INTEGER?Number(t):t):n.getUint32(0)*i+n.getUint32(4)},MAX_UINT32:i}},d58f:function(e,t,n){var i=n("59ed"),r=n("7b0b"),a=n("44ad"),o=n("07fa"),s=TypeError,u=function(e){return function(t,n,u,c){i(n);var l=r(t),d=a(l),f=o(l),h=e?f-1:0,p=e?-1:1;if(u<2)while(1){if(h in d){c=d[h],h+=p;break}if(h+=p,e?h<0:f<=h)throw s("Reduce of empty array with no initial value")}for(;e?h>=0:f>h;h+=p)h in d&&(c=n(c,d[h],h,l));return c}};e.exports={left:u(!1),right:u(!0)}},d5d6:function(e,t,n){"use strict";var i=n("ebb5"),r=n("b727").forEach,a=i.aTypedArray,o=i.exportTypedArrayMethod;o("forEach",(function(e){r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},d6d6:function(e,t){var n=TypeError;e.exports=function(e,t){if(e<t)throw n("Not enough arguments");return e}},d784:function(e,t,n){"use strict";n("ac1f");var i=n("4625"),r=n("cb2d"),a=n("9263"),o=n("d039"),s=n("b622"),u=n("9112"),c=s("species"),l=RegExp.prototype;e.exports=function(e,t,n,d){var f=s(e),h=!o((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),p=h&&!o((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!h||!p||n){var g=i(/./[f]),v=t(f,""[e],(function(e,t,n,r,o){var s=i(e),u=t.exec;return u===a||u===l.exec?h&&!o?{done:!0,value:g(t,n,r)}:{done:!0,value:s(n,t,r)}:{done:!1}}));r(String.prototype,e,v[0]),r(l,f,v[1])}d&&u(l[f],"sham",!0)}},d81d:function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").map,a=n("1dde"),o=a("map");i({target:"Array",proto:!0,forced:!o},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},d86b:function(e,t,n){var i=n("d039");e.exports=i((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},d998:function(e,t,n){var i=n("342f");e.exports=/MSIE|Trident/.test(i)},d9b5:function(e,t,n){var i=n("d066"),r=n("1626"),a=n("3a9b"),o=n("fdbf"),s=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return r(t)&&a(t.prototype,s(e))}},d9e2:function(e,t,n){var i=n("23e7"),r=n("da84"),a=n("2ba4"),o=n("e5cb"),s=r["WebAssembly"],u=7!==Error("e",{cause:7}).cause,c=function(e,t){var n={};n[e]=o(e,t,u),i({global:!0,constructor:!0,arity:1,forced:u},n)},l=function(e,t){if(s&&s[e]){var n={};n[e]=o("WebAssembly."+e,t,u),i({target:"WebAssembly",stat:!0,constructor:!0,arity:1,forced:u},n)}};c("Error",(function(e){return function(t){return a(e,this,arguments)}})),c("EvalError",(function(e){return function(t){return a(e,this,arguments)}})),c("RangeError",(function(e){return function(t){return a(e,this,arguments)}})),c("ReferenceError",(function(e){return function(t){return a(e,this,arguments)}})),c("SyntaxError",(function(e){return function(t){return a(e,this,arguments)}})),c("TypeError",(function(e){return function(t){return a(e,this,arguments)}})),c("URIError",(function(e){return function(t){return a(e,this,arguments)}})),l("CompileError",(function(e){return function(t){return a(e,this,arguments)}})),l("LinkError",(function(e){return function(t){return a(e,this,arguments)}})),l("RuntimeError",(function(e){return function(t){return a(e,this,arguments)}}))},d9f5:function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),a=n("c65b"),o=n("e330"),s=n("c430"),u=n("83ab"),c=n("04f8"),l=n("d039"),d=n("1a2d"),f=n("3a9b"),h=n("825a"),p=n("fc6a"),g=n("a04b"),v=n("577e"),m=n("5c6c"),y=n("7c73"),b=n("df75"),_=n("241c"),w=n("057f"),T=n("7418"),S=n("06cf"),k=n("9bf2"),x=n("37e8"),C=n("d1e7"),E=n("cb2d"),A=n("5692"),O=n("f772"),j=n("d012"),I=n("90e3"),P=n("b622"),M=n("e538"),L=n("e065"),D=n("57b9"),R=n("d44e"),N=n("69f3"),B=n("b727").forEach,U=O("hidden"),F=N.set,$=N.getterFor("Symbol"),H=Object["prototype"],V=r.Symbol,z=V&&V["prototype"],q=r.TypeError,W=r.QObject,G=S.f,Y=k.f,X=w.f,K=C.f,Q=o([].push),J=A("symbols"),Z=A("op-symbols"),ee=A("wks"),te=!W||!W["prototype"]||!W["prototype"].findChild,ne=u&&l((function(){return 7!=y(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=G(H,t);i&&delete H[t],Y(e,t,n),i&&e!==H&&Y(H,t,i)}:Y,ie=function(e,t){var n=J[e]=y(z);return F(n,{type:"Symbol",tag:e,description:t}),u||(n.description=t),n},re=function(e,t,n){e===H&&re(Z,t,n),h(e);var i=g(t);return h(n),d(J,i)?(n.enumerable?(d(e,U)&&e[U][i]&&(e[U][i]=!1),n=y(n,{enumerable:m(0,!1)})):(d(e,U)||Y(e,U,m(1,{})),e[U][i]=!0),ne(e,i,n)):Y(e,i,n)},ae=function(e,t){h(e);var n=p(t),i=b(n).concat(ce(n));return B(i,(function(t){u&&!a(oe,n,t)||re(e,t,n[t])})),e},oe=function(e){var t=g(e),n=a(K,this,t);return!(this===H&&d(J,t)&&!d(Z,t))&&(!(n||!d(this,t)||!d(J,t)||d(this,U)&&this[U][t])||n)},se=function(e,t){var n=p(e),i=g(t);if(n!==H||!d(J,i)||d(Z,i)){var r=G(n,i);return!r||!d(J,i)||d(n,U)&&n[U][i]||(r.enumerable=!0),r}},ue=function(e){var t=X(p(e)),n=[];return B(t,(function(e){d(J,e)||d(j,e)||Q(n,e)})),n},ce=function(e){var t=e===H,n=X(t?Z:p(e)),i=[];return B(n,(function(e){!d(J,e)||t&&!d(H,e)||Q(i,J[e])})),i};c||(V=function(){if(f(z,this))throw q("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,t=I(e),n=function(e){this===H&&a(n,Z,e),d(this,U)&&d(this[U],t)&&(this[U][t]=!1),ne(this,t,m(1,e))};return u&&te&&ne(H,t,{configurable:!0,set:n}),ie(t,e)},z=V["prototype"],E(z,"toString",(function(){return $(this).tag})),E(V,"withoutSetter",(function(e){return ie(I(e),e)})),C.f=oe,k.f=re,x.f=ae,S.f=se,_.f=w.f=ue,T.f=ce,M.f=function(e){return ie(P(e),e)},u&&(Y(z,"description",{configurable:!0,get:function(){return $(this).description}}),s||E(H,"propertyIsEnumerable",oe,{unsafe:!0}))),i({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:V}),B(b(ee),(function(e){L(e)})),i({target:"Symbol",stat:!0,forced:!c},{useSetter:function(){te=!0},useSimple:function(){te=!1}}),i({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(e,t){return void 0===t?y(e):ae(y(e),t)},defineProperty:re,defineProperties:ae,getOwnPropertyDescriptor:se}),i({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ue}),D(),R(V,"Symbol"),j[U]=!0},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},db50:function(e,t,n){var i=n("e856");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4f06").default;r("5cd6cc47",i,!0,{sourceMap:!1,shadowMode:!1})},dbad:function(e,t){var n,i,r,a,o,s,u;n=function(e){return 9e4*e},i=function(e,t){return e*t},r=function(e){return e/9e4},a=function(e,t){return e/t},o=function(e,t){return n(a(e,t))},s=function(e,t){return i(r(e),t)},u=function(e,t,n){return r(n?e:e-t)},e.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:n,secondsToAudioTs:i,videoTsToSeconds:r,audioTsToSeconds:a,audioTsToVideoTs:o,videoTsToAudioTs:s,metadataTsToSeconds:u}},dbb4:function(e,t,n){var i=n("23e7"),r=n("83ab"),a=n("56ef"),o=n("fc6a"),s=n("06cf"),u=n("8418");i({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){var t,n,i=o(e),r=s.f,c=a(i),l={},d=0;while(c.length>d)n=r(i,t=c[d++]),void 0!==n&&u(l,t,n);return l}})},dbce:function(e,t,n){n("d3b7"),n("3ca3"),n("10d1"),n("ddb0"),n("7a82"),n("e439");var i=n("7037")["default"];function r(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=o?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(a,s,u):a[s]=e[s]}return a["default"]=e,n&&n.set(e,a),a},e.exports.__esModule=!0,e.exports["default"]=e.exports},dc4a:function(e,t,n){var i=n("59ed"),r=n("7234");e.exports=function(e,t){var n=e[t];return r(n)?void 0:i(n)}},dca8:function(e,t,n){var i=n("23e7"),r=n("bb2f"),a=n("d039"),o=n("861d"),s=n("f183").onFreeze,u=Object.freeze,c=a((function(){u(1)}));i({target:"Object",stat:!0,forced:c,sham:!r},{freeze:function(e){return u&&o(e)?u(s(e)):e}})},dcc3:function(e,t,n){"use strict";var i=n("ae93").IteratorPrototype,r=n("7c73"),a=n("5c6c"),o=n("d44e"),s=n("3f8c"),u=function(){return this};e.exports=function(e,t,n,c){var l=t+" Iterator";return e.prototype=r(i,{next:a(+!c,n)}),o(e,l,!1,!0),s[l]=u,e}},ddb0:function(e,t,n){var i=n("da84"),r=n("fdbc"),a=n("785a"),o=n("e260"),s=n("9112"),u=n("b622"),c=u("iterator"),l=u("toStringTag"),d=o.values,f=function(e,t){if(e){if(e[c]!==d)try{s(e,c,d)}catch(i){e[c]=d}if(e[l]||s(e,l,t),r[t])for(var n in o)if(e[n]!==o[n])try{s(e,n,o[n])}catch(i){e[n]=o[n]}}};for(var h in r)f(i[h]&&i[h].prototype,h);f(a,"DOMTokenList")},df75:function(e,t,n){var i=n("ca84"),r=n("7839");e.exports=Object.keys||function(e){return i(e,r)}},dfb9:function(e,t,n){var i=n("07fa");e.exports=function(e,t){var n=0,r=i(t),a=new e(r);while(r>n)a[n]=t[n++];return a}},e01a:function(e,t,n){"use strict";var i=n("23e7"),r=n("83ab"),a=n("da84"),o=n("e330"),s=n("1a2d"),u=n("1626"),c=n("3a9b"),l=n("577e"),d=n("9bf2").f,f=n("e893"),h=a.Symbol,p=h&&h.prototype;if(r&&u(h)&&(!("description"in p)||void 0!==h().description)){var g={},v=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=c(p,this)?new h(e):void 0===e?h():h(e);return""===e&&(g[t]=!0),t};f(v,h),v.prototype=p,p.constructor=v;var m="Symbol(test)"==String(h("test")),y=o(p.valueOf),b=o(p.toString),_=/^Symbol\((.*)\)[^)]+$/,w=o("".replace),T=o("".slice);d(p,"description",{configurable:!0,get:function(){var e=y(this);if(s(g,e))return"";var t=b(e),n=m?T(t,7,-1):w(t,_,"$1");return""===n?void 0:n}}),i({global:!0,constructor:!0,forced:!0},{Symbol:v})}},e065:function(e,t,n){var i=n("428f"),r=n("1a2d"),a=n("e538"),o=n("9bf2").f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});r(t,e)||o(t,e,{value:a.f(e)})}},e143:function(e,t,n){"use strict";n.r(t),function(e){
- /*!
- * Vue.js v2.6.11
- * (c) 2014-2022 Evan You
- * Released under the MIT License.
- */
- var n=Object.freeze({});function i(e){return void 0===e||null===e}function r(e){return void 0!==e&&null!==e}function a(e){return!0===e}function o(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function s(e){return null!==e&&"object"===typeof e}var u=Object.prototype.toString;function c(e){return"[object Object]"===u.call(e)}function l(e){return"[object RegExp]"===u.call(e)}function d(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return r(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function h(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function p(e){var t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){for(var n=Object.create(null),i=e.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}g("slot,component",!0);var v=g("key,ref,slot,slot-scope,is");function m(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function b(e,t){return y.call(e,t)}function _(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}var w=/-(\w)/g,T=_((function(e){return e.replace(w,(function(e,t){return t?t.toUpperCase():""}))})),S=_((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),k=/\B([A-Z])/g,x=_((function(e){return e.replace(k,"-$1").toLowerCase()}));var C=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function E(e,t){t=t||0;var n=e.length-t,i=new Array(n);while(n--)i[n]=e[n+t];return i}function A(e,t){for(var n in t)e[n]=t[n];return e}function O(e){for(var t={},n=0;n<e.length;n++)e[n]&&A(t,e[n]);return t}function j(e,t,n){}var I=function(e,t,n){return!1},P=function(e){return e};function M(e,t){if(e===t)return!0;var n=s(e),i=s(t);if(!n||!i)return!n&&!i&&String(e)===String(t);try{var r=Array.isArray(e),a=Array.isArray(t);if(r&&a)return e.length===t.length&&e.every((function(e,n){return M(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(r||a)return!1;var o=Object.keys(e),u=Object.keys(t);return o.length===u.length&&o.every((function(n){return M(e[n],t[n])}))}catch(c){return!1}}function L(e,t){for(var n=0;n<e.length;n++)if(M(e[n],t))return n;return-1}function D(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var R=["component","directive","filter"],N=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],B={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:I,isReservedAttr:I,isUnknownElement:I,getTagNamespace:j,parsePlatformTagName:P,mustUseProp:I,async:!0,_lifecycleHooks:N},U=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function F(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function $(e,t,n,i){Object.defineProperty(e,t,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var H=new RegExp("[^"+U.source+".$_\\d]");var V,z="__proto__"in{},q="undefined"!==typeof window,W="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,G=W&&WXEnvironment.platform.toLowerCase(),Y=q&&window.navigator.userAgent.toLowerCase(),X=Y&&/msie|trident/.test(Y),K=Y&&Y.indexOf("msie 9.0")>0,Q=Y&&Y.indexOf("edge/")>0,J=(Y&&Y.indexOf("android"),Y&&/iphone|ipad|ipod|ios/.test(Y)||"ios"===G),Z=(Y&&/chrome\/\d+/.test(Y),Y&&/phantomjs/.test(Y),Y&&Y.match(/firefox\/(\d+)/)),ee={}.watch,te=!1;if(q)try{var ne={};Object.defineProperty(ne,"passive",{get:function(){te=!0}}),window.addEventListener("test-passive",null,ne)}catch(Vr){}var ie=function(){return void 0===V&&(V=!q&&!W&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),V},re=q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ae(e){return"function"===typeof e&&/native code/.test(e.toString())}var oe,se="undefined"!==typeof Symbol&&ae(Symbol)&&"undefined"!==typeof Reflect&&ae(Reflect.ownKeys);oe="undefined"!==typeof Set&&ae(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ue=j,ce=0,le=function(){this.id=ce++,this.subs=[]};function de(e){le.SharedObject.targetStack.push(e),le.SharedObject.target=e,le.target=e}function fe(){le.SharedObject.targetStack.pop(),le.SharedObject.target=le.SharedObject.targetStack[le.SharedObject.targetStack.length-1],le.target=le.SharedObject.target}le.prototype.addSub=function(e){this.subs.push(e)},le.prototype.removeSub=function(e){m(this.subs,e)},le.prototype.depend=function(){le.SharedObject.target&&le.SharedObject.target.addDep(this)},le.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},le.SharedObject={},le.SharedObject.target=null,le.SharedObject.targetStack=[];var he=function(e,t,n,i,r,a,o,s){this.tag=e,this.data=t,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=a,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},pe={child:{configurable:!0}};pe.child.get=function(){return this.componentInstance},Object.defineProperties(he.prototype,pe);var ge=function(e){void 0===e&&(e="");var t=new he;return t.text=e,t.isComment=!0,t};function ve(e){return new he(void 0,void 0,void 0,String(e))}function me(e){var t=new he(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var ye=Array.prototype,be=Object.create(ye);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=ye[e];$(be,e,(function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];var r,a=t.apply(this,n),o=this.__ob__;switch(e){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2);break}return r&&o.observeArray(r),o.dep.notify(),a}))}));var _e=Object.getOwnPropertyNames(be),we=!0;function Te(e){we=e}var Se=function(e){this.value=e,this.dep=new le,this.vmCount=0,$(e,"__ob__",this),Array.isArray(e)?(z?function(e,t){e.__proto__=t}(e,be):function(e,t,n){for(var i=0,r=n.length;i<r;i++){var a=n[i];$(e,a,t[a])}}(e,be,_e),this.observeArray(e)):this.walk(e)};function ke(e,t){var n;if(s(e)&&!(e instanceof he))return b(e,"__ob__")&&e.__ob__ instanceof Se?n=e.__ob__:we&&!ie()&&(Array.isArray(e)||c(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Se(e)),t&&n&&n.vmCount++,n}function xe(e,t,n,i,r){var a=new le,o=Object.getOwnPropertyDescriptor(e,t);if(!o||!1!==o.configurable){var s=o&&o.get,u=o&&o.set;s&&!u||2!==arguments.length||(n=e[t]);var c=!r&&ke(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return le.SharedObject.target&&(a.depend(),c&&(c.dep.depend(),Array.isArray(t)&&Ae(t))),t},set:function(t){var i=s?s.call(e):n;t===i||t!==t&&i!==i||s&&!u||(u?u.call(e,t):n=t,c=!r&&ke(t),a.notify())}})}}function Ce(e,t,n){if(Array.isArray(e)&&d(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var i=e.__ob__;return e._isVue||i&&i.vmCount?n:i?(xe(i.value,t,n),i.dep.notify(),n):(e[t]=n,n)}function Ee(e,t){if(Array.isArray(e)&&d(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||b(e,t)&&(delete e[t],n&&n.dep.notify())}}function Ae(e){for(var t=void 0,n=0,i=e.length;n<i;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Ae(t)}Se.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)xe(e,t[n])},Se.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)ke(e[t])};var Oe=B.optionMergeStrategies;function je(e,t){if(!t)return e;for(var n,i,r,a=se?Reflect.ownKeys(t):Object.keys(t),o=0;o<a.length;o++)n=a[o],"__ob__"!==n&&(i=e[n],r=t[n],b(e,n)?i!==r&&c(i)&&c(r)&&je(i,r):Ce(e,n,r));return e}function Ie(e,t,n){return n?function(){var i="function"===typeof t?t.call(n,n):t,r="function"===typeof e?e.call(n,n):e;return i?je(i,r):r}:t?e?function(){return je("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function Pe(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function Me(e,t,n,i){var r=Object.create(e||null);return t?A(r,t):r}Oe.data=function(e,t,n){return n?Ie(e,t,n):t&&"function"!==typeof t?e:Ie(e,t)},N.forEach((function(e){Oe[e]=Pe})),R.forEach((function(e){Oe[e+"s"]=Me})),Oe.watch=function(e,t,n,i){if(e===ee&&(e=void 0),t===ee&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var r={};for(var a in A(r,e),t){var o=r[a],s=t[a];o&&!Array.isArray(o)&&(o=[o]),r[a]=o?o.concat(s):Array.isArray(s)?s:[s]}return r},Oe.props=Oe.methods=Oe.inject=Oe.computed=function(e,t,n,i){if(!e)return t;var r=Object.create(null);return A(r,e),t&&A(r,t),r},Oe.provide=Ie;var Le=function(e,t){return void 0===t?e:t};function De(e,t,n){if("function"===typeof t&&(t=t.options),function(e,t){var n=e.props;if(n){var i,r,a,o={};if(Array.isArray(n)){i=n.length;while(i--)r=n[i],"string"===typeof r&&(a=T(r),o[a]={type:null})}else if(c(n))for(var s in n)r=n[s],a=T(s),o[a]=c(r)?r:{type:r};else 0;e.props=o}}(t),function(e,t){var n=e.inject;if(n){var i=e.inject={};if(Array.isArray(n))for(var r=0;r<n.length;r++)i[n[r]]={from:n[r]};else if(c(n))for(var a in n){var o=n[a];i[a]=c(o)?A({from:a},o):{from:o}}else 0}}(t),function(e){var t=e.directives;if(t)for(var n in t){var i=t[n];"function"===typeof i&&(t[n]={bind:i,update:i})}}(t),!t._base&&(t.extends&&(e=De(e,t.extends,n)),t.mixins))for(var i=0,r=t.mixins.length;i<r;i++)e=De(e,t.mixins[i],n);var a,o={};for(a in e)s(a);for(a in t)b(e,a)||s(a);function s(i){var r=Oe[i]||Le;o[i]=r(e[i],t[i],n,i)}return o}function Re(e,t,n,i){if("string"===typeof n){var r=e[t];if(b(r,n))return r[n];var a=T(n);if(b(r,a))return r[a];var o=S(a);if(b(r,o))return r[o];var s=r[n]||r[a]||r[o];return s}}function Ne(e,t,n,i){var r=t[e],a=!b(n,e),o=n[e],s=Fe(Boolean,r.type);if(s>-1)if(a&&!b(r,"default"))o=!1;else if(""===o||o===x(e)){var u=Fe(String,r.type);(u<0||s<u)&&(o=!0)}if(void 0===o){o=function(e,t,n){if(!b(t,"default"))return;var i=t.default;0;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"===typeof i&&"Function"!==Be(t.type)?i.call(e):i}(i,r,e);var c=we;Te(!0),ke(o),Te(c)}return o}function Be(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Ue(e,t){return Be(e)===Be(t)}function Fe(e,t){if(!Array.isArray(t))return Ue(t,e)?0:-1;for(var n=0,i=t.length;n<i;n++)if(Ue(t[n],e))return n;return-1}function $e(e,t,n){de();try{if(t){var i=t;while(i=i.$parent){var r=i.$options.errorCaptured;if(r)for(var a=0;a<r.length;a++)try{var o=!1===r[a].call(i,e,t,n);if(o)return}catch(Vr){Ve(Vr,i,"errorCaptured hook")}}}Ve(e,t,n)}finally{fe()}}function He(e,t,n,i,r){var a;try{a=n?e.apply(t,n):e.call(t),a&&!a._isVue&&f(a)&&!a._handled&&(a.catch((function(e){return $e(e,i,r+" (Promise/async)")})),a._handled=!0)}catch(Vr){$e(Vr,i,r)}return a}function Ve(e,t,n){if(B.errorHandler)try{return B.errorHandler.call(null,e,t,n)}catch(Vr){Vr!==e&&ze(Vr,null,"config.errorHandler")}ze(e,t,n)}function ze(e,t,n){if(!q&&!W||"undefined"===typeof console)throw e;console.error(e)}var qe,We=!1,Ge=[],Ye=!1;function Xe(){Ye=!1;var e=Ge.slice(0);Ge.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&ae(Promise)){var Ke=Promise.resolve();qe=function(){Ke.then(Xe),J&&setTimeout(j)},We=!0}else if(X||"undefined"===typeof MutationObserver||!ae(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())qe="undefined"!==typeof setImmediate&&ae(setImmediate)?function(){setImmediate(Xe)}:function(){setTimeout(Xe,0)};else{var Qe=1,Je=new MutationObserver(Xe),Ze=document.createTextNode(String(Qe));Je.observe(Ze,{characterData:!0}),qe=function(){Qe=(Qe+1)%2,Ze.data=String(Qe)},We=!0}function et(e,t){var n;if(Ge.push((function(){if(e)try{e.call(t)}catch(Vr){$e(Vr,t,"nextTick")}else n&&n(t)})),Ye||(Ye=!0,qe()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var tt=new oe;function nt(e){(function e(t,n){var i,r,a=Array.isArray(t);if(!a&&!s(t)||Object.isFrozen(t)||t instanceof he)return;if(t.__ob__){var o=t.__ob__.dep.id;if(n.has(o))return;n.add(o)}if(a){i=t.length;while(i--)e(t[i],n)}else{r=Object.keys(t),i=r.length;while(i--)e(t[r[i]],n)}})(e,tt),tt.clear()}var it=_((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var i="!"===e.charAt(0);return e=i?e.slice(1):e,{name:e,once:n,capture:i,passive:t}}));function rt(e,t){function n(){var e=arguments,i=n.fns;if(!Array.isArray(i))return He(i,null,arguments,t,"v-on handler");for(var r=i.slice(),a=0;a<r.length;a++)He(r[a],null,e,t,"v-on handler")}return n.fns=e,n}function at(e,t,n,r,o,s){var u,c,l,d;for(u in e)c=e[u],l=t[u],d=it(u),i(c)||(i(l)?(i(c.fns)&&(c=e[u]=rt(c,s)),a(d.once)&&(c=e[u]=o(d.name,c,d.capture)),n(d.name,c,d.capture,d.passive,d.params)):c!==l&&(l.fns=c,e[u]=l));for(u in t)i(e[u])&&(d=it(u),r(d.name,t[u],d.capture))}function ot(e,t,n){var o;e instanceof he&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function u(){n.apply(this,arguments),m(o.fns,u)}i(s)?o=rt([u]):r(s.fns)&&a(s.merged)?(o=s,o.fns.push(u)):o=rt([s,u]),o.merged=!0,e[t]=o}function st(e,t,n,a){var o=t.options.mpOptions&&t.options.mpOptions.properties;if(i(o))return n;var s=t.options.mpOptions.externalClasses||[],u=e.attrs,c=e.props;if(r(u)||r(c))for(var l in o){var d=x(l),f=ut(n,c,l,d,!0)||ut(n,u,l,d,!1);f&&n[l]&&-1!==s.indexOf(d)&&a[T(n[l])]&&(n[l]=a[T(n[l])])}return n}function ut(e,t,n,i,a){if(r(t)){if(b(t,n))return e[n]=t[n],a||delete t[n],!0;if(b(t,i))return e[n]=t[i],a||delete t[i],!0}return!1}function ct(e){return o(e)?[ve(e)]:Array.isArray(e)?function e(t,n){var s,u,c,l,d=[];for(s=0;s<t.length;s++)u=t[s],i(u)||"boolean"===typeof u||(c=d.length-1,l=d[c],Array.isArray(u)?u.length>0&&(u=e(u,(n||"")+"_"+s),lt(u[0])&<(l)&&(d[c]=ve(l.text+u[0].text),u.shift()),d.push.apply(d,u)):o(u)?lt(l)?d[c]=ve(l.text+u):""!==u&&d.push(ve(u)):lt(u)&<(l)?d[c]=ve(l.text+u.text):(a(t._isVList)&&r(u.tag)&&i(u.key)&&r(n)&&(u.key="__vlist"+n+"_"+s+"__"),d.push(u)));return d}(e):void 0}function lt(e){return r(e)&&r(e.text)&&function(e){return!1===e}(e.isComment)}function dt(e,t){if(e){for(var n=Object.create(null),i=se?Reflect.ownKeys(e):Object.keys(e),r=0;r<i.length;r++){var a=i[r];if("__ob__"!==a){var o=e[a].from,s=t;while(s){if(s._provided&&b(s._provided,o)){n[a]=s._provided[o];break}s=s.$parent}if(!s)if("default"in e[a]){var u=e[a].default;n[a]="function"===typeof u?u.call(t):u}else 0}}return n}}function ft(e,t){if(!e||!e.length)return{};for(var n={},i=0,r=e.length;i<r;i++){var a=e[i],o=a.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,a.context!==t&&a.fnContext!==t||!o||null==o.slot)a.asyncMeta&&a.asyncMeta.data&&"page"===a.asyncMeta.data.slot?(n["page"]||(n["page"]=[])).push(a):(n.default||(n.default=[])).push(a);else{var s=o.slot,u=n[s]||(n[s]=[]);"template"===a.tag?u.push.apply(u,a.children||[]):u.push(a)}}for(var c in n)n[c].every(ht)&&delete n[c];return n}function ht(e){return e.isComment&&!e.asyncFactory||" "===e.text}function pt(e,t,i){var r,a=Object.keys(t).length>0,o=e?!!e.$stable:!a,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&i&&i!==n&&s===i.$key&&!a&&!i.$hasNormal)return i;for(var u in r={},e)e[u]&&"$"!==u[0]&&(r[u]=gt(t,u,e[u]))}else r={};for(var c in t)c in r||(r[c]=vt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=r),$(r,"$stable",o),$(r,"$key",s),$(r,"$hasNormal",a),r}function gt(e,t,n){var i=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:ct(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:i,enumerable:!0,configurable:!0}),i}function vt(e,t){return function(){return e[t]}}function mt(e,t){var n,i,a,o,u;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),i=0,a=e.length;i<a;i++)n[i]=t(e[i],i,i,i);else if("number"===typeof e)for(n=new Array(e),i=0;i<e;i++)n[i]=t(i+1,i,i,i);else if(s(e))if(se&&e[Symbol.iterator]){n=[];var c=e[Symbol.iterator](),l=c.next();while(!l.done)n.push(t(l.value,n.length,i,i++)),l=c.next()}else for(o=Object.keys(e),n=new Array(o.length),i=0,a=o.length;i<a;i++)u=o[i],n[i]=t(e[u],u,i,i);return r(n)||(n=[]),n._isVList=!0,n}function yt(e,t,n,i){var r,a=this.$scopedSlots[e];a?(n=n||{},i&&(n=A(A({},i),n)),r=a(n,this,n._i)||t):r=this.$slots[e]||t;var o=n&&n.slot;return o?this.$createElement("template",{slot:o},r):r}function bt(e){return Re(this.$options,"filters",e)||P}function _t(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function wt(e,t,n,i,r){var a=B.keyCodes[t]||n;return r&&i&&!B.keyCodes[t]?_t(r,i):a?_t(a,e):i?x(i)!==t:void 0}function Tt(e,t,n,i,r){if(n)if(s(n)){var a;Array.isArray(n)&&(n=O(n));var o=function(o){if("class"===o||"style"===o||v(o))a=e;else{var s=e.attrs&&e.attrs.type;a=i||B.mustUseProp(t,s,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var u=T(o),c=x(o);if(!(u in a)&&!(c in a)&&(a[o]=n[o],r)){var l=e.on||(e.on={});l["update:"+o]=function(e){n[o]=e}}};for(var u in n)o(u)}else;return e}function St(e,t){var n=this._staticTrees||(this._staticTrees=[]),i=n[e];return i&&!t||(i=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),xt(i,"__static__"+e,!1)),i}function kt(e,t,n){return xt(e,"__once__"+t+(n?"_"+n:""),!0),e}function xt(e,t,n){if(Array.isArray(e))for(var i=0;i<e.length;i++)e[i]&&"string"!==typeof e[i]&&Ct(e[i],t+"_"+i,n);else Ct(e,t,n)}function Ct(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Et(e,t){if(t)if(c(t)){var n=e.on=e.on?A({},e.on):{};for(var i in t){var r=n[i],a=t[i];n[i]=r?[].concat(r,a):a}}else;return e}function At(e,t,n,i){t=t||{$stable:!n};for(var r=0;r<e.length;r++){var a=e[r];Array.isArray(a)?At(a,t,n):a&&(a.proxy&&(a.fn.proxy=!0),t[a.key]=a.fn)}return i&&(t.$key=i),t}function Ot(e,t){for(var n=0;n<t.length;n+=2){var i=t[n];"string"===typeof i&&i&&(e[t[n]]=t[n+1])}return e}function jt(e,t){return"string"===typeof e?t+e:e}function It(e){e._o=kt,e._n=p,e._s=h,e._l=mt,e._t=yt,e._q=M,e._i=L,e._m=St,e._f=bt,e._k=wt,e._b=Tt,e._v=ve,e._e=ge,e._u=At,e._g=Et,e._d=Ot,e._p=jt}function Pt(e,t,i,r,o){var s,u=this,c=o.options;b(r,"_uid")?(s=Object.create(r),s._original=r):(s=r,r=r._original);var l=a(c._compiled),d=!l;this.data=e,this.props=t,this.children=i,this.parent=r,this.listeners=e.on||n,this.injections=dt(c.inject,r),this.slots=function(){return u.$slots||pt(e.scopedSlots,u.$slots=ft(i,r)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return pt(e.scopedSlots,this.slots())}}),l&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=pt(e.scopedSlots,this.$slots)),c._scopeId?this._c=function(e,t,n,i){var a=Ut(s,e,t,n,i,d);return a&&!Array.isArray(a)&&(a.fnScopeId=c._scopeId,a.fnContext=r),a}:this._c=function(e,t,n,i){return Ut(s,e,t,n,i,d)}}function Mt(e,t,n,i,r){var a=me(e);return a.fnContext=n,a.fnOptions=i,t.slot&&((a.data||(a.data={})).slot=t.slot),a}function Lt(e,t){for(var n in t)e[T(n)]=t[n]}It(Pt.prototype);var Dt={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Dt.prepatch(n,n)}else{var i=e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},i=e.data.inlineTemplate;r(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Xt);i.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var i=t.componentOptions,r=t.componentInstance=e.componentInstance;(function(e,t,i,r,a){0;var o=r.data.scopedSlots,s=e.$scopedSlots,u=!!(o&&!o.$stable||s!==n&&!s.$stable||o&&e.$scopedSlots.$key!==o.$key),c=!!(a||e.$options._renderChildren||u);e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r);if(e.$options._renderChildren=a,e.$attrs=r.data.attrs||n,e.$listeners=i||n,t&&e.$options.props){Te(!1);for(var l=e._props,d=e.$options._propKeys||[],f=0;f<d.length;f++){var h=d[f],p=e.$options.props;l[h]=Ne(h,p,t,e)}Te(!0),e.$options.propsData=t}e._$updateProperties&&e._$updateProperties(e),i=i||n;var g=e.$options._parentListeners;e.$options._parentListeners=i,Yt(e,i,g),c&&(e.$slots=ft(a,r.context),e.$forceUpdate());0})(r,i.propsData,i.listeners,t,i.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(Zt(n,"onServiceCreated"),Zt(n,"onServiceAttached"),n._isMounted=!0,Zt(n,"mounted")),e.data.keepAlive&&(t._isMounted?function(e){e._inactive=!1,tn.push(e)}(n):Jt(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(n&&(t._directInactive=!0,Qt(t)))return;if(!t._inactive){t._inactive=!0;for(var i=0;i<t.$children.length;i++)e(t.$children[i]);Zt(t,"deactivated")}}(t,!0):t.$destroy())}},Rt=Object.keys(Dt);function Nt(e,t,o,u,c){if(!i(e)){var l=o.$options._base;if(s(e)&&(e=l.extend(e)),"function"===typeof e){var d;if(i(e.cid)&&(d=e,e=function(e,t){if(a(e.error)&&r(e.errorComp))return e.errorComp;if(r(e.resolved))return e.resolved;var n=$t;n&&r(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n);if(a(e.loading)&&r(e.loadingComp))return e.loadingComp;if(n&&!r(e.owners)){var o=e.owners=[n],u=!0,c=null,l=null;n.$on("hook:destroyed",(function(){return m(o,n)}));var d=function(e){for(var t=0,n=o.length;t<n;t++)o[t].$forceUpdate();e&&(o.length=0,null!==c&&(clearTimeout(c),c=null),null!==l&&(clearTimeout(l),l=null))},h=D((function(n){e.resolved=Ht(n,t),u?o.length=0:d(!0)})),p=D((function(t){r(e.errorComp)&&(e.error=!0,d(!0))})),g=e(h,p);return s(g)&&(f(g)?i(e.resolved)&&g.then(h,p):f(g.component)&&(g.component.then(h,p),r(g.error)&&(e.errorComp=Ht(g.error,t)),r(g.loading)&&(e.loadingComp=Ht(g.loading,t),0===g.delay?e.loading=!0:c=setTimeout((function(){c=null,i(e.resolved)&&i(e.error)&&(e.loading=!0,d(!1))}),g.delay||200)),r(g.timeout)&&(l=setTimeout((function(){l=null,i(e.resolved)&&p(null)}),g.timeout)))),u=!1,e.loading?e.loadingComp:e.resolved}}(d,l),void 0===e))return function(e,t,n,i,r){var a=ge();return a.asyncFactory=e,a.asyncMeta={data:t,context:n,children:i,tag:r},a}(d,t,o,u,c);t=t||{},Tn(e),r(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",i=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var a=t.on||(t.on={}),o=a[i],s=t.model.callback;r(o)?(Array.isArray(o)?-1===o.indexOf(s):o!==s)&&(a[i]=[s].concat(o)):a[i]=s}(e.options,t);var h=function(e,t,n,a){var o=t.options.props;if(i(o))return st(e,t,{},a);var s={},u=e.attrs,c=e.props;if(r(u)||r(c))for(var l in o){var d=x(l);ut(s,c,l,d,!0)||ut(s,u,l,d,!1)}return st(e,t,s,a)}(t,e,0,o);if(a(e.options.functional))return function(e,t,i,a,o){var s=e.options,u={},c=s.props;if(r(c))for(var l in c)u[l]=Ne(l,c,t||n);else r(i.attrs)&&Lt(u,i.attrs),r(i.props)&&Lt(u,i.props);var d=new Pt(i,u,o,a,e),f=s.render.call(null,d._c,d);if(f instanceof he)return Mt(f,i,d.parent,s,d);if(Array.isArray(f)){for(var h=ct(f)||[],p=new Array(h.length),g=0;g<h.length;g++)p[g]=Mt(h[g],i,d.parent,s,d);return p}}(e,h,t,o,u);var p=t.on;if(t.on=t.nativeOn,a(e.options.abstract)){var g=t.slot;t={},g&&(t.slot=g)}(function(e){for(var t=e.hook||(e.hook={}),n=0;n<Rt.length;n++){var i=Rt[n],r=t[i],a=Dt[i];r===a||r&&r._merged||(t[i]=r?Bt(a,r):a)}})(t);var v=e.options.name||c,y=new he("vue-component-"+e.cid+(v?"-"+v:""),t,void 0,void 0,void 0,o,{Ctor:e,propsData:h,listeners:p,tag:c,children:u},d);return y}}}function Bt(e,t){var n=function(n,i){e(n,i),t(n,i)};return n._merged=!0,n}function Ut(e,t,n,u,c,l){return(Array.isArray(n)||o(n))&&(c=u,u=n,n=void 0),a(l)&&(c=2),function(e,t,n,o,u){if(r(n)&&r(n.__ob__))return ge();r(n)&&r(n.is)&&(t=n.is);if(!t)return ge();0;Array.isArray(o)&&"function"===typeof o[0]&&(n=n||{},n.scopedSlots={default:o[0]},o.length=0);2===u?o=ct(o):1===u&&(o=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(o));var c,l;if("string"===typeof t){var d;l=e.$vnode&&e.$vnode.ns||B.getTagNamespace(t),c=B.isReservedTag(t)?new he(B.parsePlatformTagName(t),n,o,void 0,void 0,e):n&&n.pre||!r(d=Re(e.$options,"components",t))?new he(t,n,o,void 0,void 0,e):Nt(d,n,e,o,t)}else c=Nt(t,n,e,o);return Array.isArray(c)?c:r(c)?(r(l)&&function e(t,n,o){t.ns=n,"foreignObject"===t.tag&&(n=void 0,o=!0);if(r(t.children))for(var s=0,u=t.children.length;s<u;s++){var c=t.children[s];r(c.tag)&&(i(c.ns)||a(o)&&"svg"!==c.tag)&&e(c,n,o)}}(c,l),r(n)&&function(e){s(e.style)&&nt(e.style);s(e.class)&&nt(e.class)}(n),c):ge()}(e,t,n,u,c)}var Ft,$t=null;function Ht(e,t){return(e.__esModule||se&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function Vt(e){return e.isComment&&e.asyncFactory}function zt(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(r(n)&&(r(n.componentOptions)||Vt(n)))return n}}function qt(e,t){Ft.$on(e,t)}function Wt(e,t){Ft.$off(e,t)}function Gt(e,t){var n=Ft;return function i(){var r=t.apply(null,arguments);null!==r&&n.$off(e,i)}}function Yt(e,t,n){Ft=e,at(t,n||{},qt,Wt,Gt,e),Ft=void 0}var Xt=null;function Kt(e){var t=Xt;return Xt=e,function(){Xt=t}}function Qt(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function Jt(e,t){if(t){if(e._directInactive=!1,Qt(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Jt(e.$children[n]);Zt(e,"activated")}}function Zt(e,t){de();var n=e.$options[t],i=t+" hook";if(n)for(var r=0,a=n.length;r<a;r++)He(n[r],e,null,e,i);e._hasHookEvent&&e.$emit("hook:"+t),fe()}var en=[],tn=[],nn={},rn=!1,an=!1,on=0;var sn=0,un=Date.now;if(q&&!X){var cn=window.performance;cn&&"function"===typeof cn.now&&un()>document.createEvent("Event").timeStamp&&(un=function(){return cn.now()})}function ln(){var e,t;for(sn=un(),an=!0,en.sort((function(e,t){return e.id-t.id})),on=0;on<en.length;on++)e=en[on],e.before&&e.before(),t=e.id,nn[t]=null,e.run();var n=tn.slice(),i=en.slice();(function(){on=en.length=tn.length=0,nn={},rn=an=!1})(),function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Jt(e[t],!0)}(n),function(e){var t=e.length;while(t--){var n=e[t],i=n.vm;i._watcher===n&&i._isMounted&&!i._isDestroyed&&Zt(i,"updated")}}(i),re&&B.devtools&&re.emit("flush")}var dn=0,fn=function(e,t,n,i,r){this.vm=e,r&&(e._watcher=this),e._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++dn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new oe,this.newDepIds=new oe,this.expression="","function"===typeof t?this.getter=t:(this.getter=function(e){if(!H.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=j)),this.value=this.lazy?void 0:this.get()};fn.prototype.get=function(){var e;de(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Vr){if(!this.user)throw Vr;$e(Vr,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&nt(e),fe(),this.cleanupDeps()}return e},fn.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},fn.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},fn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==nn[t]){if(nn[t]=!0,an){var n=en.length-1;while(n>on&&en[n].id>e.id)n--;en.splice(n+1,0,e)}else en.push(e);rn||(rn=!0,et(ln))}}(this)},fn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Vr){$e(Vr,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},fn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},fn.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},fn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||m(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var hn={enumerable:!0,configurable:!0,get:j,set:j};function pn(e,t,n){hn.get=function(){return this[t][n]},hn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,hn)}function gn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},i=e._props={},r=e.$options._propKeys=[],a=!e.$parent;a||Te(!1);var o=function(a){r.push(a);var o=Ne(a,t,n,e);xe(i,a,o),a in e||pn(e,"_props",a)};for(var s in t)o(s);Te(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?j:C(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;t=e._data="function"===typeof t?function(e,t){de();try{return e.call(t,t)}catch(Vr){return $e(Vr,t,"data()"),{}}finally{fe()}}(t,e):t||{},c(t)||(t={});var n=Object.keys(t),i=e.$options.props,r=(e.$options.methods,n.length);while(r--){var a=n[r];0,i&&b(i,a)||F(a)||pn(e,"_data",a)}ke(t,!0)}(e):ke(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),i=ie();for(var r in t){var a=t[r],o="function"===typeof a?a:a.get;0,i||(n[r]=new fn(e,o||j,j,vn)),r in e||mn(e,r,a)}}(e,t.computed),t.watch&&t.watch!==ee&&function(e,t){for(var n in t){var i=t[n];if(Array.isArray(i))for(var r=0;r<i.length;r++)_n(e,n,i[r]);else _n(e,n,i)}}(e,t.watch)}var vn={lazy:!0};function mn(e,t,n){var i=!ie();"function"===typeof n?(hn.get=i?yn(t):bn(n),hn.set=j):(hn.get=n.get?i&&!1!==n.cache?yn(t):bn(n.get):j,hn.set=n.set||j),Object.defineProperty(e,t,hn)}function yn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),le.SharedObject.target&&t.depend(),t.value}}function bn(e){return function(){return e.call(this,this)}}function _n(e,t,n,i){return c(n)&&(i=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,i)}var wn=0;function Tn(e){var t=e.options;if(e.super){var n=Tn(e.super),i=e.superOptions;if(n!==i){e.superOptions=n;var r=function(e){var t,n=e.options,i=e.sealedOptions;for(var r in n)n[r]!==i[r]&&(t||(t={}),t[r]=n[r]);return t}(e);r&&A(e.extendOptions,r),t=e.options=De(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function Sn(e){this._init(e)}function kn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,i=n.cid,r=e._Ctor||(e._Ctor={});if(r[i])return r[i];var a=e.name||n.options.name;var o=function(e){this._init(e)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=t++,o.options=De(n.options,e),o["super"]=n,o.options.props&&function(e){var t=e.options.props;for(var n in t)pn(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)mn(e.prototype,n,t[n])}(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,R.forEach((function(e){o[e]=n[e]})),a&&(o.options.components[a]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=A({},o.options),r[i]=o,o}}function xn(e){return e&&(e.Ctor.options.name||e.tag)}function Cn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!l(e)&&e.test(t)}function En(e,t){var n=e.cache,i=e.keys,r=e._vnode;for(var a in n){var o=n[a];if(o){var s=xn(o.componentOptions);s&&!t(s)&&An(n,a,i,r)}}}function An(e,t,n,i){var r=e[t];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),e[t]=null,m(n,t)}(function(e){e.prototype._init=function(e){var t=this;t._uid=wn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),i=t._parentVnode;n.parent=t.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=De(Tn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Yt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,i=e.$vnode=t._parentVnode,r=i&&i.context;e.$slots=ft(t._renderChildren,r),e.$scopedSlots=n,e._c=function(t,n,i,r){return Ut(e,t,n,i,r,!1)},e.$createElement=function(t,n,i,r){return Ut(e,t,n,i,r,!0)};var a=i&&i.data;xe(e,"$attrs",a&&a.attrs||n,null,!0),xe(e,"$listeners",t._parentListeners||n,null,!0)}(t),Zt(t,"beforeCreate"),!t._$fallback&&function(e){var t=dt(e.$options.inject,e);t&&(Te(!1),Object.keys(t).forEach((function(n){xe(e,n,t[n])})),Te(!0))}(t),gn(t),!t._$fallback&&function(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}(t),!t._$fallback&&Zt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}})(Sn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ce,e.prototype.$delete=Ee,e.prototype.$watch=function(e,t,n){if(c(t))return _n(this,e,t,n);n=n||{},n.user=!0;var i=new fn(this,e,t,n);if(n.immediate)try{t.call(this,i.value)}catch(r){$e(r,this,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}(Sn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var i=this;if(Array.isArray(e))for(var r=0,a=e.length;r<a;r++)i.$on(e[r],n);else(i._events[e]||(i._events[e]=[])).push(n),t.test(e)&&(i._hasHookEvent=!0);return i},e.prototype.$once=function(e,t){var n=this;function i(){n.$off(e,i),t.apply(n,arguments)}return i.fn=t,n.$on(e,i),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var i=0,r=e.length;i<r;i++)n.$off(e[i],t);return n}var a,o=n._events[e];if(!o)return n;if(!t)return n._events[e]=null,n;var s=o.length;while(s--)if(a=o[s],a===t||a.fn===t){o.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?E(n):n;for(var i=E(arguments,1),r='event handler for "'+e+'"',a=0,o=n.length;a<o;a++)He(n[a],t,i,t,r)}return t}}(Sn),function(e){e.prototype._update=function(e,t){var n=this,i=n.$el,r=n._vnode,a=Kt(n);n._vnode=e,n.$el=r?n.__patch__(r,e):n.__patch__(n.$el,e,t,!1),a(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Zt(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||m(t.$children,e),e._watcher&&e._watcher.teardown();var n=e._watchers.length;while(n--)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Zt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(Sn),function(e){It(e.prototype),e.prototype.$nextTick=function(e){return et(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,i=n.render,r=n._parentVnode;r&&(t.$scopedSlots=pt(r.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=r;try{$t=t,e=i.call(t._renderProxy,t.$createElement)}catch(Vr){$e(Vr,t,"render"),e=t._vnode}finally{$t=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof he||(e=ge()),e.parent=r,e}}(Sn);var On=[String,RegExp,Array],jn={name:"keep-alive",abstract:!0,props:{include:On,exclude:On,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)An(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){En(e,(function(e){return Cn(t,e)}))})),this.$watch("exclude",(function(t){En(e,(function(e){return!Cn(t,e)}))}))},render:function(){var e=this.$slots.default,t=zt(e),n=t&&t.componentOptions;if(n){var i=xn(n),r=this.include,a=this.exclude;if(r&&(!i||!Cn(r,i))||a&&i&&Cn(a,i))return t;var o=this.cache,s=this.keys,u=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;o[u]?(t.componentInstance=o[u].componentInstance,m(s,u),s.push(u)):(o[u]=t,s.push(u),this.max&&s.length>parseInt(this.max)&&An(o,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},In={KeepAlive:jn};(function(e){var t={get:function(){return B}};Object.defineProperty(e,"config",t),e.util={warn:ue,extend:A,mergeOptions:De,defineReactive:xe},e.set=Ce,e.delete=Ee,e.nextTick=et,e.observable=function(e){return ke(e),e},e.options=Object.create(null),R.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,A(e.options.components,In),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=E(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=De(this.options,e),this}}(e),kn(e),function(e){R.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&c(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)})(Sn),Object.defineProperty(Sn.prototype,"$isServer",{get:ie}),Object.defineProperty(Sn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Sn,"FunctionalRenderContext",{value:Pt}),Sn.version="2.6.11";var Pn=g("style,class"),Mn=g("input,textarea,option,select,progress"),Ln=g("contenteditable,draggable,spellcheck"),Dn=g("events,caret,typing,plaintext-only"),Rn=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Nn="http://www.w3.org/1999/xlink",Bn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Un=function(e){return Bn(e)?e.slice(6,e.length):""},Fn=function(e){return null==e||!1===e};function $n(e){var t=e.data,n=e,i=e;while(r(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(t=Hn(i.data,t));while(r(n=n.parent))n&&n.data&&(t=Hn(t,n.data));return function(e,t){if(r(e)||r(t))return Vn(e,zn(t));return""}(t.staticClass,t.class)}function Hn(e,t){return{staticClass:Vn(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Vn(e,t){return e?t?e+" "+t:e:t||""}function zn(e){return Array.isArray(e)?function(e){for(var t,n="",i=0,a=e.length;i<a;i++)r(t=zn(e[i]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):s(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"===typeof e?e:""}var qn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Wn=g("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Gn=g("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Yn=function(e){return Wn(e)||Gn(e)};var Xn=Object.create(null);var Kn=g("text,number,password,search,email,tel,url");var Qn=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS(qn[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),Jn={create:function(e,t){Zn(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Zn(e,!0),Zn(t))},destroy:function(e){Zn(e,!0)}};function Zn(e,t){var n=e.data.ref;if(r(n)){var i=e.context,a=e.componentInstance||e.elm,o=i.$refs;t?Array.isArray(o[n])?m(o[n],a):o[n]===a&&(o[n]=void 0):e.data.refInFor?Array.isArray(o[n])?o[n].indexOf(a)<0&&o[n].push(a):o[n]=[a]:o[n]=a}}var ei=new he("",{},[]),ti=["create","activate","update","remove","destroy"];function ni(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&r(e.data)===r(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,i=r(n=e.data)&&r(n=n.attrs)&&n.type,a=r(n=t.data)&&r(n=n.attrs)&&n.type;return i===a||Kn(i)&&Kn(a)}(e,t)||a(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&i(t.asyncFactory.error))}function ii(e,t,n){var i,a,o={};for(i=t;i<=n;++i)a=e[i].key,r(a)&&(o[a]=i);return o}var ri={create:ai,update:ai,destroy:function(e){ai(e,ei)}};function ai(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,i,r,a=e===ei,o=t===ei,s=si(e.data.directives,e.context),u=si(t.data.directives,t.context),c=[],l=[];for(n in u)i=s[n],r=u[n],i?(r.oldValue=i.value,r.oldArg=i.arg,ci(r,"update",t,e),r.def&&r.def.componentUpdated&&l.push(r)):(ci(r,"bind",t,e),r.def&&r.def.inserted&&c.push(r));if(c.length){var d=function(){for(var n=0;n<c.length;n++)ci(c[n],"inserted",t,e)};a?ot(t,"insert",d):d()}l.length&&ot(t,"postpatch",(function(){for(var n=0;n<l.length;n++)ci(l[n],"componentUpdated",t,e)}));if(!a)for(n in s)u[n]||ci(s[n],"unbind",e,e,o)}(e,t)}var oi=Object.create(null);function si(e,t){var n,i,r=Object.create(null);if(!e)return r;for(n=0;n<e.length;n++)i=e[n],i.modifiers||(i.modifiers=oi),r[ui(i)]=i,i.def=Re(t.$options,"directives",i.name);return r}function ui(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function ci(e,t,n,i,r){var a=e.def&&e.def[t];if(a)try{a(n.elm,e,n,i,r)}catch(Vr){$e(Vr,n.context,"directive "+e.name+" "+t+" hook")}}var li=[Jn,ri];function di(e,t){if(!i(e.data.wxsProps)||!i(t.data.wxsProps)){var n=e.$wxsWatches,r=Object.keys(t.data.wxsProps);if(n||r.length){n||(n={});var a=function(e,t){var n={};return Object.keys(e).forEach((function(i){t[i]&&(n[e[i]]=t[i],delete t[i])})),n}(t.data.wxsProps,t.data.attrs),o=t.context;t.$wxsWatches={},Object.keys(a).forEach((function(e){var i=e;t.context.wxsProps&&(i="wxsProps."+e),t.$wxsWatches[e]=n[e]||t.context.$watch(i,(function(n,i){var r=t.elm.__vue__||t.elm;a[e](n,i,o.$getComponentDescriptor(o,!0),r.$getComponentDescriptor&&r.$getComponentDescriptor(r,!1))}),{immediate:!0,deep:!0})})),Object.keys(n).forEach((function(e){t.$wxsWatches[e]||(n[e](),delete n[e])}))}}}var fi={create:di,update:di};function hi(e,t){var n=t.componentOptions;if((!r(n)||!1!==n.Ctor.options.inheritAttrs)&&(!i(e.data.attrs)||!i(t.data.attrs))){var a,o,s,u=t.elm,c=e.data.attrs||{},l=t.data.attrs||{};for(a in r(l.__ob__)&&(l=t.data.attrs=A({},l)),l)o=l[a],s=c[a],s!==o&&pi(u,a,o);for(a in(X||Q)&&l.value!==c.value&&pi(u,"value",l.value),c)i(l[a])&&(Bn(a)?u.removeAttributeNS(Nn,Un(a)):Ln(a)||u.removeAttribute(a))}}function pi(e,t,n){e.tagName.indexOf("-")>-1?gi(e,t,n):Rn(t)?Fn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Ln(t)?e.setAttribute(t,function(e,t){return Fn(t)||"false"===t?"false":"contenteditable"===e&&Dn(t)?t:"true"}(t,n)):Bn(t)?Fn(n)?e.removeAttributeNS(Nn,Un(t)):e.setAttributeNS(Nn,t,n):gi(e,t,n)}function gi(e,t,n){if(Fn(n))e.removeAttribute(t);else{if(X&&!K&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var i=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",i)};e.addEventListener("input",i),e.__ieph=!0}e.setAttribute(t,n)}}var vi={create:hi,update:hi};function mi(e,t){var n=t.elm,a=t.data,o=e.data;if(!(i(a.staticClass)&&i(a.class)&&(i(o)||i(o.staticClass)&&i(o.class))&&i(n.__wxsAddClass)&&i(n.__wxsRemoveClass))){var s=$n(t),u=n._transitionClasses;if(r(u)&&(s=Vn(s,zn(u))),Array.isArray(n.__wxsRemoveClass)&&n.__wxsRemoveClass.length){var c=s.split(/\s+/);n.__wxsRemoveClass.forEach((function(e){var t=c.findIndex((function(t){return t===e}));-1!==t&&c.splice(t,1)})),s=c.join(" "),n.__wxsRemoveClass.length=0}if(n.__wxsAddClass){var l=s.split(/\s+/).concat(n.__wxsAddClass.split(/\s+/)),d=Object.create(null);l.forEach((function(e){e&&(d[e]=1)})),s=Object.keys(d).join(" ")}var f=t.context,h=f.$options.mpOptions&&f.$options.mpOptions.externalClasses;Array.isArray(h)&&h.forEach((function(e){var t=f[T(e)];t&&(s=s.replace(e,t))})),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var yi,bi={create:mi,update:mi};function _i(e,t,n){var i=yi;return function r(){var a=t.apply(null,arguments);null!==a&&Si(e,r,n,i)}}var wi=We&&!(Z&&Number(Z[1])<=53);function Ti(e,t,n,i){if(wi){var r=sn,a=t;t=a._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=r||e.timeStamp<=0||e.target.ownerDocument!==document)return a.apply(this,arguments)}}yi.addEventListener(e,t,te?{capture:n,passive:i}:n)}function Si(e,t,n,i){(i||yi).removeEventListener(e,t._wrapper||t,n)}function ki(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},a=e.data.on||{};yi=t.elm,function(e){if(r(e["__r"])){var t=X?"change":"input";e[t]=[].concat(e["__r"],e[t]||[]),delete e["__r"]}r(e["__c"])&&(e.change=[].concat(e["__c"],e.change||[]),delete e["__c"])}(n),at(n,a,Ti,Si,_i,t.context),yi=void 0}}var xi,Ci={create:ki,update:ki};function Ei(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,a,o=t.elm,s=e.data.domProps||{},u=t.data.domProps||{};for(n in r(u.__ob__)&&(u=t.data.domProps=A({},u)),s)n in u||(o[n]="");for(n in u){if(a=u[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),a===s[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=a;var c=i(a)?"":String(a);Ai(o,c)&&(o.value=c)}else if("innerHTML"===n&&Gn(o.tagName)&&i(o.innerHTML)){xi=xi||document.createElement("div"),xi.innerHTML="<svg>"+a+"</svg>";var l=xi.firstChild;while(o.firstChild)o.removeChild(o.firstChild);while(l.firstChild)o.appendChild(l.firstChild)}else if(a!==s[n])try{o[n]=a}catch(Vr){}}}}function Ai(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(Vr){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,i=e._vModifiers;if(r(i)){if(i.number)return p(n)!==p(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var Oi={create:Ei,update:Ei},ji=_((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var i=e.split(n);i.length>1&&(t[i[0].trim()]=i[1].trim())}})),t}));function Ii(e){var t=Pi(e.style);return e.staticStyle?A(e.staticStyle,t):t}function Pi(e){return Array.isArray(e)?O(e):"string"===typeof e?ji(e):e}var Mi,Li=/^--/,Di=/\s*!important$/,Ri=/\b([+-]?\d+(\.\d+)?)[r|u]px\b/g,Ni=function(e){return"string"===typeof e?e.replace(Ri,(function(e,t){return uni.upx2px(t)+"px"})):e},Bi=/url\(\s*['"](.+?\.(jpg|gif|png))['"]\s*\)/,Ui=/url\(\s*([a-zA-Z0-9\.\-\_\/]+?\.(jpg|gif|png))\s*\)/,Fi=function(e,t,n,i){if(i&&i._$getRealPath&&n&&(n=function(e,t){if("string"===typeof e&&-1!==e.indexOf("url(")){var n=e.match(Bi)||e.match(Ui);n&&3===n.length&&(e=e.replace(n[1],t._$getRealPath(n[1])))}return e}(n,i)),Li.test(t))e.style.setProperty(t,n);else if(Di.test(n))e.style.setProperty(x(t),n.replace(Di,""),"important");else{var r=Hi(t);if(Array.isArray(n))for(var a=0,o=n.length;a<o;a++)e.style[r]=Ni(n[a]);else e.style[r]=Ni(n)}},$i=["Webkit","Moz","ms"],Hi=_((function(e){if(Mi=Mi||document.createElement("div").style,e=T(e),"filter"!==e&&e in Mi)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<$i.length;n++){var i=$i[n]+t;if(i in Mi)return i}}));function Vi(e,t){var n=t.data,a=e.data,o=t.elm;if(!(i(n.staticStyle)&&i(n.style)&&i(a.staticStyle)&&i(a.style)&&i(o.__wxsStyle))){var s,u,c=a.staticStyle,l=a.normalizedStyle||a.style||{},d=c||l,f=Pi(t.data.style)||{};t.data.normalizedStyle=r(f.__ob__)?A({},f):f;var h=function(e,t){var n,i={};if(t){var r=e;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(n=Ii(r.data))&&A(i,n)}(n=Ii(e.data))&&A(i,n);var a=e;while(a=a.parent)a.data&&(n=Ii(a.data))&&A(i,n);return i}(t,!0);for(u in o.__wxsStyle&&(Object.assign(t.data.normalizedStyle,o.__wxsStyle),Object.assign(h,o.__wxsStyle)),d)i(h[u])&&Fi(o,u,"");for(u in h)s=h[u],s!==d[u]&&Fi(o,u,null==s?"":s,t.context)}}var zi={create:Vi,update:Vi},qi=/\s+/;function Wi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(qi).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Gi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(qi).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",i=" "+t+" ";while(n.indexOf(i)>=0)n=n.replace(i," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function Yi(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&A(t,Xi(e.name||"v")),A(t,e),t}return"string"===typeof e?Xi(e):void 0}}var Xi=_((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Ki=q&&!K,Qi="transition",Ji="transitionend",Zi="animation",er="animationend";Ki&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Qi="WebkitTransition",Ji="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Zi="WebkitAnimation",er="webkitAnimationEnd"));var tr=q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function nr(e){tr((function(){tr(e)}))}function ir(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Wi(e,t))}function rr(e,t){e._transitionClasses&&m(e._transitionClasses,t),Gi(e,t)}function ar(e,t,n){var i=sr(e,t),r=i.type,a=i.timeout,o=i.propCount;if(!r)return n();var s="transition"===r?Ji:er,u=0,c=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++u>=o&&c()};setTimeout((function(){u<o&&c()}),a+1),e.addEventListener(s,l)}var or=/\b(transform|all)(,|$)/;function sr(e,t){var n,i=window.getComputedStyle(e),r=(i[Qi+"Delay"]||"").split(", "),a=(i[Qi+"Duration"]||"").split(", "),o=ur(r,a),s=(i[Zi+"Delay"]||"").split(", "),u=(i[Zi+"Duration"]||"").split(", "),c=ur(s,u),l=0,d=0;"transition"===t?o>0&&(n="transition",l=o,d=a.length):"animation"===t?c>0&&(n="animation",l=c,d=u.length):(l=Math.max(o,c),n=l>0?o>c?"transition":"animation":null,d=n?"transition"===n?a.length:u.length:0);var f="transition"===n&&or.test(i[Qi+"Property"]);return{type:n,timeout:l,propCount:d,hasTransform:f}}function ur(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return cr(t)+cr(e[n])})))}function cr(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function lr(e,t){var n=e.elm;r(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var a=Yi(e.data.transition);if(!i(a)&&!r(n._enterCb)&&1===n.nodeType){var o=a.css,u=a.type,c=a.enterClass,l=a.enterToClass,d=a.enterActiveClass,f=a.appearClass,h=a.appearToClass,g=a.appearActiveClass,v=a.beforeEnter,m=a.enter,y=a.afterEnter,b=a.enterCancelled,_=a.beforeAppear,w=a.appear,T=a.afterAppear,S=a.appearCancelled,k=a.duration,x=Xt,C=Xt.$vnode;while(C&&C.parent)x=C.context,C=C.parent;var E=!x._isMounted||!e.isRootInsert;if(!E||w||""===w){var A=E&&f?f:c,O=E&&g?g:d,j=E&&h?h:l,I=E&&_||v,P=E&&"function"===typeof w?w:m,M=E&&T||y,L=E&&S||b,R=p(s(k)?k.enter:k);0;var N=!1!==o&&!K,B=hr(P),U=n._enterCb=D((function(){N&&(rr(n,j),rr(n,O)),U.cancelled?(N&&rr(n,A),L&&L(n)):M&&M(n),n._enterCb=null}));e.data.show||ot(e,"insert",(function(){var t=n.parentNode,i=t&&t._pending&&t._pending[e.key];i&&i.tag===e.tag&&i.elm._leaveCb&&i.elm._leaveCb(),P&&P(n,U)})),I&&I(n),N&&(ir(n,A),ir(n,O),nr((function(){rr(n,A),U.cancelled||(ir(n,j),B||(fr(R)?setTimeout(U,R):ar(n,u,U)))}))),e.data.show&&(t&&t(),P&&P(n,U)),N||B||U()}}}function dr(e,t){var n=e.elm;r(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var a=Yi(e.data.transition);if(i(a)||1!==n.nodeType)return t();if(!r(n._leaveCb)){var o=a.css,u=a.type,c=a.leaveClass,l=a.leaveToClass,d=a.leaveActiveClass,f=a.beforeLeave,h=a.leave,g=a.afterLeave,v=a.leaveCancelled,m=a.delayLeave,y=a.duration,b=!1!==o&&!K,_=hr(h),w=p(s(y)?y.leave:y);0;var T=n._leaveCb=D((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),b&&(rr(n,l),rr(n,d)),T.cancelled?(b&&rr(n,c),v&&v(n)):(t(),g&&g(n)),n._leaveCb=null}));m?m(S):S()}function S(){T.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),f&&f(n),b&&(ir(n,c),ir(n,d),nr((function(){rr(n,c),T.cancelled||(ir(n,l),_||(fr(w)?setTimeout(T,w):ar(n,u,T)))}))),h&&h(n,T),b||_||T())}}function fr(e){return"number"===typeof e&&!isNaN(e)}function hr(e){if(i(e))return!1;var t=e.fns;return r(t)?hr(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function pr(e,t){!0!==t.data.show&&lr(t)}var gr=q?{create:pr,activate:pr,remove:function(e,t){!0!==e.data.show?dr(e,t):t()}}:{},vr=[fi,vi,bi,Ci,Oi,zi,gr],mr=vr.concat(li),yr=function(e){var t,n,s={},u=e.modules,c=e.nodeOps;for(t=0;t<ti.length;++t)for(s[ti[t]]=[],n=0;n<u.length;++n)r(u[n][ti[t]])&&s[ti[t]].push(u[n][ti[t]]);function l(e){var t=c.parentNode(e);r(t)&&c.removeChild(t,e)}function d(e,t,n,i,o,u,l){if(r(e.elm)&&r(u)&&(e=u[l]=me(e)),e.isRootInsert=!o,!function(e,t,n,i){var o=e.data;if(r(o)){var u=r(e.componentInstance)&&o.keepAlive;if(r(o=o.hook)&&r(o=o.init)&&o(e,!1),r(e.componentInstance))return f(e,t),h(n,e.elm,i),a(u)&&function(e,t,n,i){var a,o=e;while(o.componentInstance)if(o=o.componentInstance._vnode,r(a=o.data)&&r(a=a.transition)){for(a=0;a<s.activate.length;++a)s.activate[a](ei,o);t.push(o);break}h(n,e.elm,i)}(e,t,n,i),!0}}(e,t,n,i)){var d=e.data,g=e.children,v=e.tag;r(v)?(e.elm=e.ns?c.createElementNS(e.ns,v):c.createElement(v,e),y(e),p(e,g,t),r(d)&&m(e,t),h(n,e.elm,i)):a(e.isComment)?(e.elm=c.createComment(e.text),h(n,e.elm,i)):(e.elm=c.createTextNode(e.text),h(n,e.elm,i))}}function f(e,t){r(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,v(e)?(m(e,t),y(e)):(Zn(e),t.push(e))}function h(e,t,n){r(e)&&(r(n)?c.parentNode(n)===e&&c.insertBefore(e,t,n):c.appendChild(e,t))}function p(e,t,n){if(Array.isArray(t)){0;for(var i=0;i<t.length;++i)d(t[i],n,e.elm,null,!0,t,i)}else o(e.text)&&c.appendChild(e.elm,c.createTextNode(String(e.text)))}function v(e){while(e.componentInstance)e=e.componentInstance._vnode;return r(e.tag)}function m(e,n){for(var i=0;i<s.create.length;++i)s.create[i](ei,e);t=e.data.hook,r(t)&&(r(t.create)&&t.create(ei,e),r(t.insert)&&n.push(e))}function y(e){var t;if(r(t=e.fnScopeId))c.setStyleScope(e.elm,t);else{var n=e;while(n)r(t=n.context)&&r(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t),n=n.parent}r(t=Xt)&&t!==e.context&&t!==e.fnContext&&r(t=t.$options._scopeId)&&!Xt._vnode.elm.__uniDataset&&c.setStyleScope(e.elm,t)}function b(e,t,n,i,r,a){for(;i<=r;++i)d(n[i],a,e,t,!1,n,i)}function _(e){var t,n,i=e.data;if(r(i))for(r(t=i.hook)&&r(t=t.destroy)&&t(e),t=0;t<s.destroy.length;++t)s.destroy[t](e);if(r(t=e.children))for(n=0;n<e.children.length;++n)_(e.children[n])}function w(e,t,n){for(;t<=n;++t){var i=e[t];r(i)&&(r(i.tag)?(T(i),_(i)):l(i.elm))}}function T(e,t){if(r(t)||r(e.data)){var n,i=s.remove.length+1;for(r(t)?t.listeners+=i:t=function(e,t){function n(){0===--n.listeners&&l(e)}return n.listeners=t,n}(e.elm,i),r(n=e.componentInstance)&&r(n=n._vnode)&&r(n.data)&&T(n,t),n=0;n<s.remove.length;++n)s.remove[n](e,t);r(n=e.data.hook)&&r(n=n.remove)?n(e,t):t()}else l(e.elm)}function S(e,t,n,i){for(var a=n;a<i;a++){var o=t[a];if(r(o)&&ni(e,o))return a}}function k(e,t,n,o,u,l){if(e!==t){r(t.elm)&&r(o)&&(t=o[u]=me(t));var f=t.elm=e.elm;if(a(e.isAsyncPlaceholder))r(t.asyncFactory.resolved)?E(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(a(t.isStatic)&&a(e.isStatic)&&t.key===e.key&&(a(t.isCloned)||a(t.isOnce)))t.componentInstance=e.componentInstance;else{var h,p=t.data;r(p)&&r(h=p.hook)&&r(h=h.prepatch)&&h(e,t);var g=e.children,m=t.children;if(r(p)&&v(t)){for(h=0;h<s.update.length;++h)s.update[h](e,t);r(h=p.hook)&&r(h=h.update)&&h(e,t)}i(t.text)?r(g)&&r(m)?g!==m&&function(e,t,n,a,o){var s,u,l,f,h=0,p=0,g=t.length-1,v=t[0],m=t[g],y=n.length-1,_=n[0],T=n[y],x=!o;while(h<=g&&p<=y)i(v)?v=t[++h]:i(m)?m=t[--g]:ni(v,_)?(k(v,_,a,n,p),v=t[++h],_=n[++p]):ni(m,T)?(k(m,T,a,n,y),m=t[--g],T=n[--y]):ni(v,T)?(k(v,T,a,n,y),x&&c.insertBefore(e,v.elm,c.nextSibling(m.elm)),v=t[++h],T=n[--y]):ni(m,_)?(k(m,_,a,n,p),x&&c.insertBefore(e,m.elm,v.elm),m=t[--g],_=n[++p]):(i(s)&&(s=ii(t,h,g)),u=r(_.key)?s[_.key]:S(_,t,h,g),i(u)?d(_,a,e,v.elm,!1,n,p):(l=t[u],ni(l,_)?(k(l,_,a,n,p),t[u]=void 0,x&&c.insertBefore(e,l.elm,v.elm)):d(_,a,e,v.elm,!1,n,p)),_=n[++p]);h>g?(f=i(n[y+1])?null:n[y+1].elm,b(e,f,n,p,y,a)):p>y&&w(t,h,g)}(f,g,m,n,l):r(m)?(r(e.text)&&c.setTextContent(f,""),b(f,null,m,0,m.length-1,n)):r(g)?w(g,0,g.length-1):r(e.text)&&c.setTextContent(f,""):e.text!==t.text&&c.setTextContent(f,t.text),r(p)&&r(h=p.hook)&&r(h=h.postpatch)&&h(e,t)}}}function x(e,t,n){if(a(n)&&r(e.parent))e.parent.data.pendingInsert=t;else for(var i=0;i<t.length;++i)t[i].data.hook.insert(t[i])}var C=g("attrs,class,staticClass,staticStyle,key");function E(e,t,n,i){var o,s=t.tag,u=t.data,c=t.children;if(i=i||u&&u.pre,t.elm=e,a(t.isComment)&&r(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(r(u)&&(r(o=u.hook)&&r(o=o.init)&&o(t,!0),r(o=t.componentInstance)))return f(t,n),!0;if(r(s)){if(r(c))if(e.hasChildNodes())if(r(o=u)&&r(o=o.domProps)&&r(o=o.innerHTML)){if(o!==e.innerHTML)return!1}else{for(var l=!0,d=e.firstChild,h=0;h<c.length;h++){if(!d||!E(d,c[h],n,i)){l=!1;break}d=d.nextSibling}if(!l||d)return!1}else p(t,c,n);if(r(u)){var g=!1;for(var v in u)if(!C(v)){g=!0,m(t,n);break}!g&&u["class"]&&nt(u["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,o){if(!i(t)){var u=!1,l=[];if(i(e))u=!0,d(t,l);else{var f=r(e.nodeType);if(!f&&ni(e,t))k(e,t,l,null,null,o);else{if(f){if(1===e.nodeType&&e.hasAttribute("data-server-rendered")&&(e.removeAttribute("data-server-rendered"),n=!0),a(n)&&E(e,t,l))return x(t,l,!0),e;e=function(e){return new he(c.tagName(e).toLowerCase(),{},[],void 0,e)}(e)}var h=e.elm,p=c.parentNode(h);if(d(t,l,h._leaveCb?null:p,c.nextSibling(h)),r(t.parent)){var g=t.parent,m=v(t);while(g){for(var y=0;y<s.destroy.length;++y)s.destroy[y](g);if(g.elm=t.elm,m){for(var b=0;b<s.create.length;++b)s.create[b](ei,g);var T=g.data.hook.insert;if(T.merged)for(var S=1;S<T.fns.length;S++)T.fns[S]()}else Zn(g);g=g.parent}}r(p)?w([e],0,0):r(e.tag)&&_(e)}}return x(t,l,u),t.elm}r(e)&&_(e)}}({nodeOps:Qn,modules:mr});K&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Cr(e,"input")}));var br={inserted:function(e,t,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?ot(n,"postpatch",(function(){br.componentUpdated(e,t,n)})):_r(e,t,n.context),e._vOptions=[].map.call(e.options,Sr)):("textarea"===n.tag||Kn(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",kr),e.addEventListener("compositionend",xr),e.addEventListener("change",xr),K&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){_r(e,t,n.context);var i=e._vOptions,r=e._vOptions=[].map.call(e.options,Sr);if(r.some((function(e,t){return!M(e,i[t])}))){var a=e.multiple?t.value.some((function(e){return Tr(e,r)})):t.value!==t.oldValue&&Tr(t.value,r);a&&Cr(e,"change")}}}};function _r(e,t,n){wr(e,t,n),(X||Q)&&setTimeout((function(){wr(e,t,n)}),0)}function wr(e,t,n){var i=t.value,r=e.multiple;if(!r||Array.isArray(i)){for(var a,o,s=0,u=e.options.length;s<u;s++)if(o=e.options[s],r)a=L(i,Sr(o))>-1,o.selected!==a&&(o.selected=a);else if(M(Sr(o),i))return void(e.selectedIndex!==s&&(e.selectedIndex=s));r||(e.selectedIndex=-1)}}function Tr(e,t){return t.every((function(t){return!M(t,e)}))}function Sr(e){return"_value"in e?e._value:e.value}function kr(e){e.target.composing=!0}function xr(e){e.target.composing&&(e.target.composing=!1,Cr(e.target,"input"))}function Cr(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Er(e){return!e.componentInstance||e.data&&e.data.transition?e:Er(e.componentInstance._vnode)}var Ar={bind:function(e,t,n){var i=t.value;n=Er(n);var r=n.data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;i&&r?(n.data.show=!0,lr(n,(function(){e.style.display=a}))):e.style.display=i?a:"none"},update:function(e,t,n){var i=t.value,r=t.oldValue;if(!i!==!r){n=Er(n);var a=n.data&&n.data.transition;a?(n.data.show=!0,i?lr(n,(function(){e.style.display=e.__vOriginalDisplay})):dr(n,(function(){e.style.display="none"}))):e.style.display=i?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,i,r){r||(e.style.display=e.__vOriginalDisplay)}},Or={model:br,show:Ar},jr={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ir(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ir(zt(t.children)):e}function Pr(e){var t={},n=e.$options;for(var i in n.propsData)t[i]=e[i];var r=n._parentListeners;for(var a in r)t[T(a)]=r[a];return t}function Mr(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Lr=function(e){return e.tag||Vt(e)},Dr=function(e){return"show"===e.name},Rr={name:"transition",props:jr,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Lr),n.length)){0;var i=this.mode;0;var r=n[0];if(function(e){while(e=e.parent)if(e.data.transition)return!0}(this.$vnode))return r;var a=Ir(r);if(!a)return r;if(this._leaving)return Mr(e,r);var s="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?s+"comment":s+a.tag:o(a.key)?0===String(a.key).indexOf(s)?a.key:s+a.key:a.key;var u=(a.data||(a.data={})).transition=Pr(this),c=this._vnode,l=Ir(c);if(a.data.directives&&a.data.directives.some(Dr)&&(a.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,l)&&!Vt(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var d=l.data.transition=A({},u);if("out-in"===i)return this._leaving=!0,ot(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Mr(e,r);if("in-out"===i){if(Vt(a))return c;var f,h=function(){f()};ot(u,"afterEnter",h),ot(u,"enterCancelled",h),ot(d,"delayLeave",(function(e){f=e}))}}return r}}},Nr=A({tag:String,moveClass:String},jr);delete Nr.mode;var Br={props:Nr,beforeMount:function(){var e=this,t=this._update;this._update=function(n,i){var r=Kt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,r(),t.call(e,n,i)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],a=this.children=[],o=Pr(this),s=0;s<r.length;s++){var u=r[s];if(u.tag)if(null!=u.key&&0!==String(u.key).indexOf("__vlist"))a.push(u),n[u.key]=u,(u.data||(u.data={})).transition=o;else;}if(i){for(var c=[],l=[],d=0;d<i.length;d++){var f=i[d];f.data.transition=o,f.data.pos=f.elm.getBoundingClientRect(),n[f.key]?c.push(f):l.push(f)}this.kept=e(t,null,c),this.removed=l}return e(t,null,a)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(Ur),e.forEach(Fr),e.forEach($r),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,i=n.style;ir(n,t),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(Ji,n._moveCb=function e(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(Ji,e),n._moveCb=null,rr(n,t))})}})))},methods:{hasMove:function(e,t){if(!Ki)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){Gi(n,e)})),Wi(n,t),n.style.display="none",this.$el.appendChild(n);var i=sr(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}};function Ur(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Fr(e){e.data.newPos=e.elm.getBoundingClientRect()}function $r(e){var t=e.data.pos,n=e.data.newPos,i=t.left-n.left,r=t.top-n.top;if(i||r){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate("+i+"px,"+r+"px)",a.transitionDuration="0s"}}var Hr={Transition:Rr,TransitionGroup:Br};Sn.config.mustUseProp=function(e,t,n){return"value"===n&&Mn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Sn.config.isReservedTag=Yn,Sn.config.isReservedAttr=Pn,Sn.config.getTagNamespace=function(e){return Gn(e)?"svg":"math"===e?"math":void 0},Sn.config.isUnknownElement=function(e){if(!q)return!0;if(Yn(e))return!1;if(e=e.toLowerCase(),null!=Xn[e])return Xn[e];var t=document.createElement(e);return e.indexOf("-")>-1?Xn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Xn[e]=/HTMLUnknownElement/.test(t.toString())},A(Sn.options.directives,Or),A(Sn.options.components,Hr),Sn.prototype.__patch__=q?yr:j,Sn.prototype.__call_hook=function(e,t){var n=this;de();var i,r=n.$options[e],a=e+" hook";if(r)for(var o=0,s=r.length;o<s;o++)i=He(r[o],n,t?[t]:null,n,a);return n._hasHookEvent&&n.$emit("hook:"+e,t),fe(),i},Sn.prototype.$mount=function(e,t){return e=e&&q?function(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}(e):void 0,function(e,t,n){var i;return e.$el=t,e.$options.render||(e.$options.render=ge),Zt(e,"beforeMount"),i=function(){e._update(e._render(),n)},new fn(e,i,j,{before:function(){e._isMounted&&!e._isDestroyed&&Zt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(Zt(e,"onServiceCreated"),Zt(e,"onServiceAttached"),e._isMounted=!0,Zt(e,"mounted")),e}(this,e,t)},q&&setTimeout((function(){B.devtools&&re&&re.emit("init",Sn)}),0),t["default"]=Sn}.call(this,n("c8ba"))},e163:function(e,t,n){var i=n("1a2d"),r=n("1626"),a=n("7b0b"),o=n("f772"),s=n("e177"),u=o("IE_PROTO"),c=Object,l=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=a(e);if(i(t,u))return t[u];var n=t.constructor;return r(n)&&t instanceof n?n.prototype:t instanceof c?l:null}},e177:function(e,t,n){var i=n("d039");e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e25e:function(e,t,n){var i=n("23e7"),r=n("c20d");i({global:!0,forced:parseInt!=r},{parseInt:r})},e260:function(e,t,n){"use strict";var i=n("fc6a"),r=n("44d2"),a=n("3f8c"),o=n("69f3"),s=n("9bf2").f,u=n("c6d2"),c=n("4754"),l=n("c430"),d=n("83ab"),f=o.set,h=o.getterFor("Array Iterator");e.exports=u(Array,"Array",(function(e,t){f(this,{type:"Array Iterator",target:i(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,c(void 0,!0)):c("keys"==n?i:"values"==n?t[i]:[i,t[i]],!1)}),"values");var p=a.Arguments=a.Array;if(r("keys"),r("values"),r("entries"),!l&&d&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(g){}},e330:function(e,t,n){var i=n("40d5"),r=Function.prototype,a=r.call,o=i&&r.bind.bind(a,a);e.exports=i?o:function(e){return function(){return a.apply(e,arguments)}}},e391:function(e,t,n){var i=n("577e");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e439:function(e,t,n){var i=n("23e7"),r=n("d039"),a=n("fc6a"),o=n("06cf").f,s=n("83ab"),u=r((function(){o(1)})),c=!s||u;i({target:"Object",stat:!0,forced:c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(a(e),t)}})},e538:function(e,t,n){var i=n("b622");t.f=i},e58c:function(e,t,n){"use strict";var i=n("2ba4"),r=n("fc6a"),a=n("5926"),o=n("07fa"),s=n("a640"),u=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),f=l||!d;e.exports=f?function(e){if(l)return i(c,this,arguments)||0;var t=r(this),n=o(t),s=n-1;for(arguments.length>1&&(s=u(s,a(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:c},e5cb:function(e,t,n){"use strict";var i=n("d066"),r=n("1a2d"),a=n("9112"),o=n("3a9b"),s=n("d2bb"),u=n("e893"),c=n("aeb0"),l=n("7156"),d=n("e391"),f=n("ab36"),h=n("0d26"),p=n("b980"),g=n("83ab"),v=n("c430");e.exports=function(e,t,n,m){var y=m?2:1,b=e.split("."),_=b[b.length-1],w=i.apply(null,b);if(w){var T=w.prototype;if(!v&&r(T,"cause")&&delete T.cause,!n)return w;var S=i("Error"),k=t((function(e,t){var n=d(m?t:e,void 0),i=m?new w(e):new w;return void 0!==n&&a(i,"message",n),p&&a(i,"stack",h(i.stack,2)),this&&o(T,this)&&l(i,this,k),arguments.length>y&&f(i,arguments[y]),i}));if(k.prototype=T,"Error"!==_?s?s(k,S):u(k,S,{name:!0}):g&&"stackTraceLimit"in w&&(c(k,w,"stackTraceLimit"),c(k,w,"prepareStackTrace")),u(k,w),!v)try{T.name!==_&&a(T,"name",_),T.constructor=k}catch(x){}return k}}},e667:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e6cf:function(e,t,n){n("5e7e"),n("14e5"),n("cc98"),n("3529"),n("f22b"),n("7149")},e856:function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-modal-dialog,.vjs-button>.vjs-icon-placeholder:before,.vjs-modal-dialog .vjs-modal-dialog-content{position:absolute;top:0;left:0;width:100%;height:100%}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.vjs-button>.vjs-icon-placeholder:before{text-align:center}@font-face{font-family:VideoJS;src:url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABDkAAsAAAAAG6gAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFZRiV3hY21hcAAAAYQAAADaAAADPv749/pnbHlmAAACYAAAC3AAABHQZg6OcWhlYWQAAA3QAAAAKwAAADYZw251aGhlYQAADfwAAAAdAAAAJA+RCLFobXR4AAAOHAAAABMAAACM744AAGxvY2EAAA4wAAAASAAAAEhF6kqubWF4cAAADngAAAAfAAAAIAE0AIFuYW1lAAAOmAAAASUAAAIK1cf1oHBvc3QAAA/AAAABJAAAAdPExYuNeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS7wTiBgZWBgaWQ5RkDA8MvCM0cwxDOeI6BgYmBlZkBKwhIc01hcPjI+FGJHcRdyA4RZgQRADK3CxEAAHic7dFZbsMgAEXRS0ycyZnnOeG7y+qC8pU1dHusIOXxuoxaOlwZYWQB0Aea4quIEN4E9LzKbKjzDeM6H/mua6Lmc/p8yhg0lvdYx15ZG8uOLQOGjMp3EzqmzJizYMmKNRu27Nhz4MiJMxeu3Ljz4Ekqm7T8P52G8PP3lnTOVk++Z6iN6QZzNN1F7ptuN7eGOjDUoaGODHVsuvU8MdTO9Hd5aqgzQ50b6sJQl4a6MtS1oW4MdWuoO0PdG+rBUI+GejLUs6FeDPVqqDdDvRvqw1CfhpqM9At0iFLaAAB4nJ1YDXBTVRZ+5/22TUlJ8we0pHlJm7RJf5O8F2j6EymlSPkpxaL8U2xpa3DKj0CBhc2IW4eWKSokIoLsuMqssM64f+jA4HSdWXXXscBq67IOs3FXZ1ZYWVyRFdo899yXtIBQZ90k7717zz3v3HPPOfd854YCCj9cL9dL0RQFOqCbGJnrHb5EayiKIWN8iA/hWBblo6hUWm8TtCDwE80WMJus/irwyxOdxeB0MDb14VNJHnXYoLLSl6FfCUYO9nYPTA8Epg9090LprfbBbZ2hY0UlJUXHQp3/vtWkS6EBv8+rPMq5u9692f/dNxJNiqwC1xPE9TCUgCsSdQWgE3XQD25lkG4CN2xmTcOXWBOyser6RN6KnGbKSbmQ3+d0OI1m2W8QzLLkI2sykrWAgJJEtA8vGGW/2Q+CmT3n8zS9wZwu2DCvtuZKZN3xkrLh36yCZuUomQSqGpY8t/25VfHVhw8z4ebGBtfLb0ya9PCaDc+8dGTvk2dsh6z7WzvowlXKUSWo9MJ15a3KrEP2loOr2Ojhw6iW6hf2BDdEccQvZGpaAy7YovSwq8kr7HGllxpd71rkS6G0Sf11sl9OvMK1+jwPPODxjUwkOim9CU3ix1wNjXDfmJSEn618Bs6lpWwUpU+8PCqLMY650zjq8VhCIP17NEKTx3eaLL+s5Pi6yJWaWjTHLR1jYzPSV9VF/6Ojdb/1kO3Mk3uhHC0x6gc1BjlKQ+nQFxTYdaJkZ7ySVxLBbhR1dsboNXp1tCYKW2LRaEzpYcIx2BKNxaL0ZaUnSqfFoiNhHKR/GkX6PWUSAaJelQaqZL1EpoHNsajSEyPSoJ9IjhIxTdjHLmwZvhRDOiFTY/YeQnvrVZmiTQtGncECXtFTBZLOVwwMRgoXHAkXzMzPn1nAJJ8jYSbMDaqN2waGLzNhih/bZynUBMpIWSg7VYi7DRx2m8ALkIdRCJwI6ArJx2EI8kaDWeTQKeAFk9fjl/1AvwktjQ1P7NjyMGQyfd4vjipX6M/i52D7Cq80kqlcxEcGXRr/FEcgs0u5uGgB4VWuMFfpdn2Re6Hi3PqzmxWKsz6+ae2Pn9hXXw/fqM859UiGC0oKYYILJBqJrsn1Z1E5qOs9rQCiUQRREjm8yJcbHF5cUJufX1vAHlefw0XgUoboS3ETfQlTxBC4SOtuE8VPRJTBSCQSjZCpk7Gqzu+masaZ2y7Zjehho4F3g82BNDkAHpORG4+OCS+f6JTPmtRn/PH1kch6d04sp7AQb25aQ/pqUyXeQ8vrebG8OYQdXOQ+585u0sdW9rqalzRURiJ+9F4MweRFrKUjl1GUYhH1A27WOHw5cTFSFPMo9EeUIGnQTZHIaJ7AHLaOKsOODaNF9jkBjYG2QEsQ2xjMUAx2bBEbeTBWMHwskBjngq56S/yfgkBnWBa4K9sqKtq2t1UI8S9He5XuBRbawAdatrQEAi30Aks2+LM8WeCbalVZkWNylvJ+dqJnzVb+OHlSoKW8nPCP7Rd+CcZ2DdWAGqJ2CBFOphgywFFCFBNtfAbGtNPBCwxvygHeYMZMY9ZboBqwq/pVrsbgN5tkv152ODlbMfiqwGMBgxa4Exz3QhovRIUp6acqZmQzRq0ypDXS2TPLT02YIkQETnOE445oOGxOmXAqUJNNG7XgupMjPq2ua9asrj5yY/yuKteO1Kx0YNJTufrirLe1mZnat7OL6rnUdCWenpW6I8mAnbsY8KWs1PuSovCW9A/Z25PQ24a7cNOqgmTkLmBMgh4THgc4b9k2IVv1/g/F5nGljwPLfOgHAzJzh45V/4+WenTzmMtR5Z7us2Tys909UHqrPY7KbckoxRvRHhmVc3cJGE97uml0R1S0jdULVl7EvZtDFVBF35N9cEdjpgmAiOlFZ+Dtoh93+D3zzHr8RRNZQhnCNMNbcegOvpEwZoL+06cJQ07h+th3fZ/7PVbVC6ngTAV/KoLFuO6+2KFcU651gEb5ugPSIb1D+Xp8V4+k3sEIGnw5mYe4If4k1lFYr6SCzmM2EQ8iWtmwjnBI9kTwe1TlfAmXh7H02by9fW2gsjKwtv0aaURKil4OdV7rDL1MXIFNrhdxohcZXYTnq47WisrKitaObbf5+yvkLi5J6lCNZZ+B6GC38VNBZBDidSS/+mSvh6s+srgC8pyKMvDtt+de3c9fU76ZPfuM8ud4Kv0fyP/LqfepMT/3oZxSqpZaTa1DaQYLY8TFsHYbWYsPoRhRWfL5eSSQbhUGgGC3YLbVMk6PitTFNGpAsNrC6D1VNBKgBHMejaiuRWEWGgsSDBTJjqWIl8kJLlsaLJ2tXDr6xGfT85bM2Q06a46x2HTgvdnV8z5YDy/27J4zt6x2VtkzjoYpkq36kaBr4eQSg7tyiVweWubXZugtadl58ydapfbORfKsDTuZ0OBgx4cfdjCf5tbWNITnL120fdOi1RV1C3uKGzNdwYLcMvZ3BxoPyTOCD1XvXTp7U10gWCVmTV9b3r2z0SkGWovb2hp9I89O8a2smlyaO8muMU+dRmtzp60IzAoFpjLr1n388boLyf0dRvxhsHZ0qbWqDkwqvvpkj4l0fY6EIXRi5sQSrAvsVYwXRy4qJ2EVtD1AN7a0HWth9ymvL1xc3WTUKK/TAHA/bXDVtVWfOMfuGxGZv4Ln/jVr9jc3j1yMv0tndmyt9Vq88Y9gH1wtLX3KWjot5++jWHgAoZZkQ14wGQ20Fli71UmKJAy4xKMSTGbVdybW7FDDAut9XpD5AzWrYO7zQ8qffqF8+Ynd/clrHcdyxGy3a/3+mfNnzC/cBsveTjnTvXf1o6vzOlZw7WtqtdmPK/Errz/6NNtD72zmNOZfbmYdTGHfoofqI79Oc+R2n1lrnL6pOm0Up7kwxhTW12Amm7WYkXR2qYrF2AmgmbAsxZjwy1xpg/m1Je2vrp8v/nz2xpmlBg4E9hrMU341wVpTOh/OfmGvAnra8q6uctr60ZQHV3Q+WMQJykMj8ZsWn2QBOmmHMB+m5pDIpTFonYigiaKAhGEiAHF7EliVnQkjoLVIMPtJpBKHYd3A8GYH9jJzrWwmHx5Qjp7vDAX0suGRym1vtm/9W1/HyR8vczfMs6Sk8DSv855/5dlX9oQq52hT8syyp2rx5Id17IAyAM3wIjQPMOHzytEB64q6D5zT91yNbnx3V/nqnd017S9Y0605k3izoXLpsxde2n38yoOV9s1LcjwzNjbdX6asnBVaBj/6/DwKwPkpcqbDG7BnsXoSqWnUAmottYF6jMSdVyYZh3zVXCjwTiwwHH6sGuRiEHQGzuRX6whZkp123oy1BWE2mEfJ/tvIRtM4ZM5bDXiMsPMaAKOTyc5uL57rqyyc5y5JE5pm1i2S2iUX0CcaQ6lC6Zog7JqSqZmYlosl2K6pwNA84zRnQW6SaALYZQGW5lhCtU/W34N6o+bKfZ8cf3/Cl/+iTX3wBzpOY4mRkeNf3rptycGSshQWgGbYt5jFc2e0+DglIrwl6DVWQ7BuwaJ3Xk1J4VL5urnLl/Wf+gHU/hZoZdKNym6lG+I34FaNeZKcSpJIo2IeCVvpdsDGfKvzJnAwmeD37Ow65ZWwSowpgwX5T69s/rB55dP5BcpgDKFV8p7q2sn/1uc93bVzT/w6UrCqDTWvfCq/oCD/qZXNoUj8BL5Kp6GU017frfNXkAtiiyf/SOCEeLqnd8R/Ql9GlCRfctS6k5chvIBuQ1zCCjoCHL2DHNHIXxMJ3kQeO8lbsUXONeSfA5EjcG6/E+KdhN4bP04vBhdi883+BFBzQbxFbvZzQeY9LNBZc0FNfn5NwfDn6rCTnTw6R8o+gfpf5hCom33cRuiTlss3KHmZjD+BPN+5gXuA2ziS/Q73mLxUkpbKN/eqwz5uK0X9F3h2d1V4nGNgZGBgAOJd776+iue3+crAzc4AAje5Bfcg0xz9YHEOBiYQBQA8FQlFAHicY2BkYGBnAAGOPgaG//85+hkYGVCBMgBGGwNYAAAAeJxjYGBgYB8EmKOPgQEAQ04BfgAAAAAAAA4AaAB+AMwA4AECAUIBbAGYAcICGAJYArQC4AMwA7AD3gQwBJYE3AUkBWYFigYgBmYGtAbqB1gIEghYCG4IhAi2COh4nGNgZGBgUGYoZWBnAAEmIOYCQgaG/2A+AwAYCQG2AHicXZBNaoNAGIZfE5PQCKFQ2lUps2oXBfOzzAESyDKBQJdGR2NQR3QSSE/QE/QEPUUPUHqsvsrXjTMw83zPvPMNCuAWP3DQDAejdm1GjzwS7pMmwi75XngAD4/CQ/oX4TFe4Qt7uMMbOzjuDc0EmXCP/C7cJ38Iu+RP4QEe8CU8pP8WHmOPX2EPz87TPo202ey2OjlnQSXV/6arOjWFmvszMWtd6CqwOlKHq6ovycLaWMWVydXKFFZnmVFlZU46tP7R2nI5ncbi/dDkfDtFBA2DDXbYkhKc+V0Bqs5Zt9JM1HQGBRTm/EezTmZNKtpcAMs9Yu6AK9caF76zoLWIWcfMGOSkVduvSWechqZsz040Ib2PY3urxBJTzriT95lipz+TN1fmAAAAeJxtkMl2wjAMRfOAhABlKm2h80C3+ajgCKKDY6cegP59TYBzukAL+z1Zsq8ctaJTTKPrsUQLbXQQI0EXKXroY4AbDDHCGBNMcYsZ7nCPB8yxwCOe8IwXvOIN7/jAJ76wxHfUqWX+OzgumWAjJMV17i0Ndlr6irLKO+qftdT7i6y4uFSUvCknay+lFYZIZaQcmfH/xIFdYn98bqhra1aKTM/6lWMnyaYirx1rFUQZFBkb2zJUtoXeJCeg0WnLtHeSFc3OtrnozNwqi0TkSpBMDB1nSde5oJXW23hTS2/T0LilglXX7dmFVxLnq5U0vYATHFk3zX3BOisoQHNDFDeZnqKDy9hRNawN7Vh727hFzcJ5c8TILrKZfH7tIPxAFP0BpLeJPA==) format("woff");font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder,.vjs-icon-play{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder:before,.vjs-icon-play:before{content:"\\f101"}.vjs-icon-play-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-play-circle:before{content:"\\f102"}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder,.vjs-icon-pause{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before,.vjs-icon-pause:before{content:"\\f103"}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder,.vjs-icon-volume-mute{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before,.vjs-icon-volume-mute:before{content:"\\f104"}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder,.vjs-icon-volume-low{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before,.vjs-icon-volume-low:before{content:"\\f105"}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder,.vjs-icon-volume-mid{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before,.vjs-icon-volume-mid:before{content:"\\f106"}.video-js .vjs-mute-control .vjs-icon-placeholder,.vjs-icon-volume-high{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control .vjs-icon-placeholder:before,.vjs-icon-volume-high:before{content:"\\f107"}.video-js .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-enter:before{content:"\\f108"}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-exit:before{content:"\\f109"}.vjs-icon-square{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-square:before{content:"\\f10a"}.vjs-icon-spinner{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-spinner:before{content:"\\f10b"}.video-js .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subtitles-button .vjs-icon-placeholder,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-subtitles{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subtitles-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-subtitles:before{content:"\\f10c"}.video-js .vjs-captions-button .vjs-icon-placeholder,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-captions{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-captions-button .vjs-icon-placeholder:before,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-captions:before{content:"\\f10d"}.video-js .vjs-chapters-button .vjs-icon-placeholder,.vjs-icon-chapters{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-chapters-button .vjs-icon-placeholder:before,.vjs-icon-chapters:before{content:"\\f10e"}.vjs-icon-share{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-share:before{content:"\\f10f"}.vjs-icon-cog{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cog:before{content:"\\f110"}.video-js .vjs-play-progress,.video-js .vjs-volume-level,.vjs-icon-circle,.vjs-seek-to-live-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-progress:before,.video-js .vjs-volume-level:before,.vjs-icon-circle:before,.vjs-seek-to-live-control .vjs-icon-placeholder:before{content:"\\f111"}.vjs-icon-circle-outline{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-outline:before{content:"\\f112"}.vjs-icon-circle-inner-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-inner-circle:before{content:"\\f113"}.vjs-icon-hd{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-hd:before{content:"\\f114"}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder,.vjs-icon-cancel{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before,.vjs-icon-cancel:before{content:"\\f115"}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder,.vjs-icon-replay{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before,.vjs-icon-replay:before{content:"\\f116"}.vjs-icon-facebook{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-facebook:before{content:"\\f117"}.vjs-icon-gplus{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-gplus:before{content:"\\f118"}.vjs-icon-linkedin{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-linkedin:before{content:"\\f119"}.vjs-icon-twitter{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-twitter:before{content:"\\f11a"}.vjs-icon-tumblr{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-tumblr:before{content:"\\f11b"}.vjs-icon-pinterest{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-pinterest:before{content:"\\f11c"}.video-js .vjs-descriptions-button .vjs-icon-placeholder,.vjs-icon-audio-description{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-descriptions-button .vjs-icon-placeholder:before,.vjs-icon-audio-description:before{content:"\\f11d"}.video-js .vjs-audio-button .vjs-icon-placeholder,.vjs-icon-audio{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-audio-button .vjs-icon-placeholder:before,.vjs-icon-audio:before{content:"\\f11e"}.vjs-icon-next-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-next-item:before{content:"\\f11f"}.vjs-icon-previous-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-previous-item:before{content:"\\f120"}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-enter:before{content:"\\f121"}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-exit:before{content:"\\f122"}.video-js{display:block;vertical-align:top;box-sizing:border-box;color:#fff;background-color:#000;position:relative;padding:0;font-size:10px;line-height:1;font-weight:400;font-style:normal;font-family:Arial,Helvetica,sans-serif;word-break:normal}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js[tabindex="-1"]{outline:0}.video-js *,.video-js :after,.video-js :before{box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.video-js.vjs-1-1,.video-js.vjs-16-9,.video-js.vjs-4-3,.video-js.vjs-9-16,.video-js.vjs-fluid{width:100%;max-width:100%}.video-js.vjs-1-1:not(.vjs-audio-only-mode),.video-js.vjs-16-9:not(.vjs-audio-only-mode),.video-js.vjs-4-3:not(.vjs-audio-only-mode),.video-js.vjs-9-16:not(.vjs-audio-only-mode),.video-js.vjs-fluid:not(.vjs-audio-only-mode){height:0}.video-js.vjs-16-9:not(.vjs-audio-only-mode){padding-top:56.25%}.video-js.vjs-4-3:not(.vjs-audio-only-mode){padding-top:75%}.video-js.vjs-9-16:not(.vjs-audio-only-mode){padding-top:177.7777777778%}.video-js.vjs-1-1:not(.vjs-audio-only-mode){padding-top:100%}.video-js.vjs-fill:not(.vjs-audio-only-mode){width:100%;height:100%}.video-js .vjs-tech{position:absolute;top:0;left:0;width:100%;height:100%}.video-js.vjs-audio-only-mode .vjs-tech{display:none}body.vjs-full-window{padding:0;margin:0;height:100%}.vjs-full-window .video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0}.video-js.vjs-fullscreen:not(.vjs-ios-native-fs){width:100%!important;height:100%!important;padding-top:0!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-hidden{display:none!important}.vjs-disabled{opacity:.5;cursor:default}.video-js .vjs-offscreen{height:1px;left:-9999px;position:absolute;top:0;width:1px}.vjs-lock-showing{display:block!important;opacity:1!important;visibility:visible!important}.vjs-no-js{padding:20px;color:#fff;background-color:#000;font-size:18px;font-family:Arial,Helvetica,sans-serif;text-align:center;width:300px;height:150px;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#66a8cc}.video-js .vjs-big-play-button{font-size:3em;line-height:1.5em;height:1.63332em;width:3em;display:block;position:absolute;top:10px;left:10px;padding:0;cursor:pointer;opacity:1;border:.06666em solid #fff;background-color:#2b333f;background-color:rgba(43,51,63,.7);border-radius:.3em;transition:all .4s}.vjs-big-play-centered .vjs-big-play-button{top:50%;left:50%;margin-top:-.81666em;margin-left:-1.5em}.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{border-color:#fff;background-color:#73859f;background-color:rgba(115,133,159,.5);transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-error .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-controls .vjs-big-play-button{display:none}.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause .vjs-big-play-button{display:block}.video-js uni-button{background:0 0;border:none;color:inherit;display:inline-block;font-size:inherit;line-height:inherit;text-transform:none;text-decoration:none;transition:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vjs-control .vjs-button{width:100%;height:100%}.video-js .vjs-control.vjs-close-button{cursor:pointer;height:3em;position:absolute;right:0;top:.5em;z-index:2}.video-js .vjs-modal-dialog{background:rgba(0,0,0,.8);background:linear-gradient(180deg,rgba(0,0,0,.8),hsla(0,0%,100%,0));overflow:auto}.video-js .vjs-modal-dialog>*{box-sizing:border-box}.vjs-modal-dialog .vjs-modal-dialog-content{font-size:1.2em;line-height:1.5;padding:20px 24px;z-index:1}.vjs-menu-button{cursor:pointer}.vjs-menu-button.vjs-disabled{cursor:default}.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu{display:none}.vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;font-family:Arial,Helvetica,sans-serif;overflow:auto}.vjs-menu .vjs-menu-content>*{box-sizing:border-box}.vjs-scrubbing .vjs-control.vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{list-style:none;margin:0;padding:.2em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.js-focus-visible .vjs-menu li.vjs-menu-item:hover,.vjs-menu li.vjs-menu-item:focus,.vjs-menu li.vjs-menu-item:hover{background-color:#73859f;background-color:rgba(115,133,159,.5)}.js-focus-visible .vjs-menu li.vjs-selected:hover,.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2b333f}.js-focus-visible .vjs-menu :not(.vjs-selected):focus:not(.focus-visible),.video-js .vjs-menu :not(.vjs-selected):focus:not(:focus-visible){background:0 0}.vjs-menu li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em 0;font-weight:700;cursor:default}.vjs-menu-button-popup .vjs-menu{display:none;position:absolute;bottom:0;width:10em;left:-3em;height:0;margin-bottom:1.5em;border-top-color:rgba(43,51,63,.7)}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2b333f;background-color:rgba(43,51,63,.7);position:absolute;width:100%;bottom:1.5em;max-height:15em}.vjs-layout-tiny .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:5em}.vjs-layout-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:10em}.vjs-layout-medium .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:14em}.vjs-layout-huge .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:25em}.vjs-menu-button-popup .vjs-menu.vjs-lock-showing,.vjs-workinghover .vjs-menu-button-popup.vjs-hover .vjs-menu{display:block}.video-js .vjs-menu-button-inline{transition:all .4s;overflow:hidden}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline{width:12em}.vjs-menu-button-inline .vjs-menu{opacity:0;height:100%;width:auto;position:absolute;left:4em;top:0;padding:0;margin:0;transition:all .4s}.vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline:hover .vjs-menu{display:block;opacity:1}.vjs-no-flex .vjs-menu-button-inline .vjs-menu{display:block;opacity:1;position:relative;width:auto}.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:hover .vjs-menu{width:auto}.vjs-menu-button-inline .vjs-menu-content{width:auto;height:100%;margin:0;overflow:hidden}.video-js .vjs-control-bar{display:none;width:100%;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.vjs-audio-only-mode .vjs-control-bar,.vjs-has-started .vjs-control-bar{display:flex;visibility:visible;opacity:1;transition:visibility .1s,opacity .1s}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:visible;opacity:0;pointer-events:none;transition:visibility 1s,opacity 1s}.vjs-controls-disabled .vjs-control-bar,.vjs-error .vjs-control-bar,.vjs-using-native-controls .vjs-control-bar{display:none!important}.vjs-audio-only-mode.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar,.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible;pointer-events:auto}.vjs-has-started.vjs-no-flex .vjs-control-bar{display:table}.video-js .vjs-control{position:relative;text-align:center;margin:0;padding:0;height:100%;width:4em;flex:none}.video-js .vjs-control.vjs-visible-text{width:auto;padding-left:1em;padding-right:1em}.vjs-button>.vjs-icon-placeholder:before{font-size:1.8em;line-height:1.67}.vjs-button>.vjs-icon-placeholder{display:block}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js :not(.vjs-visible-text)>.vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-no-flex .vjs-control{display:table-cell;vertical-align:middle}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{cursor:pointer;flex:auto;display:flex;align-items:center;min-width:4em;touch-action:none}.video-js .vjs-progress-control.disabled{cursor:default}.vjs-live .vjs-progress-control{display:none}.vjs-liveui .vjs-progress-control{display:flex;align-items:center}.vjs-no-flex .vjs-progress-control{width:auto}.video-js .vjs-progress-holder{flex:auto;transition:all .2s;height:.3em}.video-js .vjs-progress-control .vjs-progress-holder{margin:0 10px}.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.6666666667em}.video-js .vjs-progress-control:hover .vjs-progress-holder.disabled{font-size:1em}.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div,.video-js .vjs-progress-holder .vjs-play-progress{position:absolute;display:block;height:100%;margin:0;padding:0;width:0}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{font-size:.9em;position:absolute;right:-.5em;top:-.3333333333em;z-index:1}.video-js .vjs-load-progress{background:rgba(115,133,159,.5)}.video-js .vjs-load-progress div{background:rgba(115,133,159,.75)}.video-js .vjs-time-tooltip{background-color:#fff;background-color:hsla(0,0%,100%,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-progress-holder:focus .vjs-time-tooltip{display:none}.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip,.video-js .vjs-progress-control:hover .vjs-time-tooltip{display:block;font-size:.6em;visibility:visible}.video-js .vjs-progress-control.disabled:hover .vjs-time-tooltip{font-size:1em}.video-js .vjs-progress-control .vjs-mouse-display{display:none;position:absolute;width:1px;height:100%;background-color:#000;z-index:1}.vjs-no-flex .vjs-progress-control .vjs-mouse-display{z-index:0}.video-js .vjs-progress-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-time-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.video-js .vjs-slider{position:relative;cursor:pointer;padding:0;margin:0 .45em 0 .45em;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#73859f;background-color:rgba(115,133,159,.5)}.video-js .vjs-slider.disabled{cursor:default}.video-js .vjs-slider:focus{text-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js .vjs-mute-control{cursor:pointer;flex:none}.video-js .vjs-volume-control{cursor:pointer;margin-right:1em;display:flex}.video-js .vjs-volume-control.vjs-volume-horizontal{width:5em}.video-js .vjs-volume-panel .vjs-volume-control{visibility:visible;opacity:0;width:1px;height:1px;margin-left:-1px}.video-js .vjs-volume-panel{transition:width 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active,.video-js .vjs-volume-panel .vjs-volume-control:active,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control,.video-js .vjs-volume-panel:active .vjs-volume-control,.video-js .vjs-volume-panel:focus .vjs-volume-control{visibility:visible;opacity:1;position:relative;transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;margin-right:0}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical{left:-3.5em;transition:left 0s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal:active{width:10em;transition:width .1s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-mute-toggle-only{width:4em}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{height:8em;width:3em;left:-3000em;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s}.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;visibility:visible;opacity:1;position:relative;transition:none}.video-js.vjs-no-flex .vjs-volume-control.vjs-volume-vertical,.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{position:absolute;bottom:3em;left:.5em}.video-js .vjs-volume-panel{display:flex}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{width:5em;height:.3em}.vjs-volume-bar.vjs-slider-vertical{width:.3em;height:5em;margin:1.35em auto}.video-js .vjs-volume-level{position:absolute;bottom:0;left:0;background-color:#fff}.video-js .vjs-volume-level:before{position:absolute;font-size:.9em;z-index:1}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{top:-.5em;left:-.3em;z-index:1}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{top:-.3em;right:-.5em}.video-js .vjs-volume-panel.vjs-volume-panel-vertical{width:4em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.video-js .vjs-volume-vertical{width:3em;height:8em;bottom:8em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.video-js .vjs-volume-horizontal .vjs-menu{left:-2em}.video-js .vjs-volume-tooltip{background-color:#fff;background-color:hsla(0,0%,100%,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-volume-control:hover .vjs-progress-holder:focus .vjs-volume-tooltip,.video-js .vjs-volume-control:hover .vjs-volume-tooltip{display:block;font-size:1em;visibility:visible}.video-js .vjs-volume-vertical:hover .vjs-progress-holder:focus .vjs-volume-tooltip,.video-js .vjs-volume-vertical:hover .vjs-volume-tooltip{left:1em;top:-12px}.video-js .vjs-volume-control.disabled:hover .vjs-volume-tooltip{font-size:1em}.video-js .vjs-volume-control .vjs-mouse-display{display:none;position:absolute;width:100%;height:1px;background-color:#000;z-index:1}.video-js .vjs-volume-horizontal .vjs-mouse-display{width:1px;height:100%}.vjs-no-flex .vjs-volume-control .vjs-mouse-display{z-index:0}.video-js .vjs-volume-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-volume-control .vjs-mouse-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-volume-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-volume-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.vjs-poster{display:inline-block;vertical-align:middle;background-repeat:no-repeat;background-position:50% 50%;background-size:contain;background-color:#000;cursor:pointer;margin:0;padding:0;position:absolute;top:0;right:0;bottom:0;left:0;height:100%}.vjs-has-started .vjs-poster,.vjs-using-native-controls .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster,.vjs-has-started.vjs-audio-poster-mode .vjs-poster{display:block}.video-js .vjs-live-control{display:flex;align-items:flex-start;flex:auto;font-size:1em;line-height:3em}.vjs-no-flex .vjs-live-control{display:table-cell;width:auto;text-align:left}.video-js.vjs-liveui .vjs-live-control,.video-js:not(.vjs-live) .vjs-live-control{display:none}.video-js .vjs-seek-to-live-control{align-items:center;cursor:pointer;flex:none;display:inline-flex;height:100%;padding-left:.5em;padding-right:.5em;font-size:1em;line-height:3em;width:auto;min-width:4em}.vjs-no-flex .vjs-seek-to-live-control{display:table-cell;width:auto;text-align:left}.video-js.vjs-live:not(.vjs-liveui) .vjs-seek-to-live-control,.video-js:not(.vjs-live) .vjs-seek-to-live-control{display:none}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge{cursor:auto}.vjs-seek-to-live-control .vjs-icon-placeholder{margin-right:.5em;color:#888}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-icon-placeholder{color:red}.video-js .vjs-time-control{flex:none;font-size:1em;line-height:3em;min-width:2em;width:auto;padding-left:1em;padding-right:1em}.vjs-live .vjs-time-control{display:none}.video-js .vjs-current-time,.vjs-no-flex .vjs-current-time{display:none}.video-js .vjs-duration,.vjs-no-flex .vjs-duration{display:none}.vjs-time-divider{display:none;line-height:3em}.vjs-live .vjs-time-divider{display:none}.video-js .vjs-play-control{cursor:pointer}.video-js .vjs-play-control .vjs-icon-placeholder{flex:none}.vjs-text-track-display{position:absolute;bottom:3em;left:0;right:0;top:0;pointer-events:none}.video-js.vjs-controls-disabled .vjs-text-track-display,.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;text-align:center;margin-bottom:.1em}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}uni-video::-webkit-media-text-track-display{-webkit-transform:translateY(-3em);transform:translateY(-3em)}.video-js.vjs-controls-disabled uni-video::-webkit-media-text-track-display,.video-js.vjs-user-inactive.vjs-playing uni-video::-webkit-media-text-track-display{-webkit-transform:translateY(-1.5em);transform:translateY(-1.5em)}.video-js .vjs-picture-in-picture-control{cursor:pointer;flex:none}.video-js.vjs-audio-only-mode .vjs-picture-in-picture-control{display:none}.video-js .vjs-fullscreen-control{cursor:pointer;flex:none}.video-js.vjs-audio-only-mode .vjs-fullscreen-control{display:none}.vjs-playback-rate .vjs-playback-rate-value,.vjs-playback-rate>.vjs-menu-button{position:absolute;top:0;left:0;width:100%;height:100%}.vjs-playback-rate .vjs-playback-rate-value{pointer-events:none;font-size:1.5em;line-height:2;text-align:center}.vjs-playback-rate .vjs-menu{width:4em;left:0}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:1.4em;text-align:center}.vjs-error .vjs-error-display:before{color:#fff;content:"X";font-family:Arial,Helvetica,sans-serif;font-size:4em;left:0;line-height:1;margin-top:-.5em;position:absolute;text-shadow:.05em .05em .1em #000;text-align:center;top:50%;vertical-align:middle;width:100%}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;opacity:.85;text-align:left;border:6px solid rgba(43,51,63,.7);box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;border-radius:25px;visibility:hidden}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{display:block;-webkit-animation:vjs-spinner-show 0s linear .3s forwards;animation:vjs-spinner-show 0s linear .3s forwards}.vjs-loading-spinner:after,.vjs-loading-spinner:before{content:"";position:absolute;margin:-6px;box-sizing:inherit;width:inherit;height:inherit;border-radius:inherit;opacity:1;border:inherit;border-color:transparent;border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{-webkit-animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite;animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{border-top-color:#fff;-webkit-animation-delay:.44s;animation-delay:.44s}@keyframes vjs-spinner-show{to{visibility:visible}}@-webkit-keyframes vjs-spinner-show{to{visibility:visible}}@keyframes vjs-spinner-spin{100%{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes vjs-spinner-spin{100%{-webkit-transform:rotate(1turn)}}@keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}100%{border-top-color:#73859f}}@-webkit-keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}100%{border-top-color:#73859f}}.video-js.vjs-audio-only-mode .vjs-captions-button{display:none}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js.vjs-audio-only-mode .vjs-descriptions-button{display:none}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:"";font-size:1.5em;line-height:inherit}.video-js.vjs-audio-only-mode .vjs-subs-caps-button{display:none}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:" ";font-size:1.5em;line-height:inherit}.video-js.vjs-layout-small .vjs-current-time,.video-js.vjs-layout-small .vjs-duration,.video-js.vjs-layout-small .vjs-playback-rate,.video-js.vjs-layout-small .vjs-remaining-time,.video-js.vjs-layout-small .vjs-time-divider,.video-js.vjs-layout-small .vjs-volume-control,.video-js.vjs-layout-tiny .vjs-current-time,.video-js.vjs-layout-tiny .vjs-duration,.video-js.vjs-layout-tiny .vjs-playback-rate,.video-js.vjs-layout-tiny .vjs-remaining-time,.video-js.vjs-layout-tiny .vjs-time-divider,.video-js.vjs-layout-tiny .vjs-volume-control,.video-js.vjs-layout-x-small .vjs-current-time,.video-js.vjs-layout-x-small .vjs-duration,.video-js.vjs-layout-x-small .vjs-playback-rate,.video-js.vjs-layout-x-small .vjs-remaining-time,.video-js.vjs-layout-x-small .vjs-time-divider,.video-js.vjs-layout-x-small .vjs-volume-control{display:none}.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover{width:auto;width:auto}.video-js.vjs-layout-tiny .vjs-progress-control,.video-js.vjs-layout-x-small .vjs-progress-control{display:none}.video-js.vjs-layout-x-small .vjs-custom-control-spacer{flex:auto;display:block}.video-js.vjs-layout-x-small.vjs-no-flex .vjs-custom-control-spacer{width:auto}.vjs-modal-dialog.vjs-text-track-settings{background-color:#2b333f;background-color:rgba(43,51,63,.75);color:#fff;height:70%}.vjs-text-track-settings .vjs-modal-dialog-content{display:table}.vjs-text-track-settings .vjs-track-settings-colors,.vjs-text-track-settings .vjs-track-settings-controls,.vjs-text-track-settings .vjs-track-settings-font{display:table-cell}.vjs-text-track-settings .vjs-track-settings-controls{text-align:right;vertical-align:bottom}@supports (display:grid){.vjs-text-track-settings .vjs-modal-dialog-content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;padding:20px 24px 0 24px}.vjs-track-settings-controls .vjs-default-button{margin-bottom:20px}.vjs-text-track-settings .vjs-track-settings-controls{grid-column:1/-1}.vjs-layout-small .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-tiny .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-x-small .vjs-text-track-settings .vjs-modal-dialog-content{grid-template-columns:1fr}}.vjs-track-setting>select{margin-right:1em;margin-bottom:.5em}.vjs-text-track-settings fieldset{margin:5px;padding:3px;border:none}.vjs-text-track-settings fieldset span{display:inline-block}.vjs-text-track-settings fieldset span>select{max-width:7.3em}.vjs-text-track-settings legend{color:#fff;margin:0 0 5px 0}.vjs-text-track-settings .vjs-label{position:absolute;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);display:block;margin:0 0 5px 0;padding:0;border:0;height:1px;width:1px;overflow:hidden}.vjs-track-settings-controls uni-button:active,.vjs-track-settings-controls uni-button:focus{outline-style:solid;outline-width:medium;background-image:linear-gradient(0deg,#fff 88%,#73859f)}.vjs-track-settings-controls uni-button:hover{color:rgba(43,51,63,.75)}.vjs-track-settings-controls uni-button{background-color:#fff;background-image:linear-gradient(-180deg,#fff 88%,#73859f);color:#2b333f;cursor:pointer;border-radius:2px}.vjs-track-settings-controls .vjs-default-button{margin-right:1em}@media print{.video-js>:not(.vjs-tech):not(.vjs-poster){visibility:hidden}}.vjs-resize-manager{position:absolute;top:0;left:0;width:100%;height:100%;border:none;z-index:-1000}.js-focus-visible .video-js :focus:not(.focus-visible){outline:0}.video-js :focus:not(:focus-visible){outline:0}',""]),e.exports=t},e893:function(e,t,n){var i=n("1a2d"),r=n("56ef"),a=n("06cf"),o=n("9bf2");e.exports=function(e,t,n){for(var s=r(t),u=o.f,c=a.f,l=0;l<s.length;l++){var d=s[l];i(e,d)||n&&i(n,d)||u(e,d,c(t,d))}}},e8b5:function(e,t,n){var i=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==i(e)}},e91f:function(e,t,n){"use strict";var i=n("ebb5"),r=n("4d64").indexOf,a=i.aTypedArray,o=i.exportTypedArrayMethod;o("indexOf",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},e95a:function(e,t,n){var i=n("b622"),r=n("3f8c"),a=i("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[a]===e)}},e9c4:function(e,t,n){var i=n("23e7"),r=n("d066"),a=n("2ba4"),o=n("c65b"),s=n("e330"),u=n("d039"),c=n("e8b5"),l=n("1626"),d=n("861d"),f=n("d9b5"),h=n("f36a"),p=n("04f8"),g=r("JSON","stringify"),v=s(/./.exec),m=s("".charAt),y=s("".charCodeAt),b=s("".replace),_=s(1..toString),w=/[\uD800-\uDFFF]/g,T=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,k=!p||u((function(){var e=r("Symbol")();return"[null]"!=g([e])||"{}"!=g({a:e})||"{}"!=g(Object(e))})),x=u((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),C=function(e,t){var n=h(arguments),i=t;if((d(t)||void 0!==e)&&!f(e))return c(t)||(t=function(e,t){if(l(i)&&(t=o(i,this,e,t)),!f(t))return t}),n[1]=t,a(g,null,n)},E=function(e,t,n){var i=m(n,t-1),r=m(n,t+1);return v(T,e)&&!v(S,r)||v(S,e)&&!v(T,i)?"\\u"+_(y(e,0),16):e};g&&i({target:"JSON",stat:!0,arity:3,forced:k||x},{stringify:function(e,t,n){var i=h(arguments),r=a(k?C:g,null,i);return x&&"string"==typeof r?b(r,w,E):r}})},eac5:function(e,t,n){var i=n("861d"),r=Math.floor;e.exports=Number.isInteger||function(e){return!i(e)&&isFinite(e)&&r(e)===e}},ebb5:function(e,t,n){"use strict";var i,r,a,o=n("4b11"),s=n("83ab"),u=n("da84"),c=n("1626"),l=n("861d"),d=n("1a2d"),f=n("f5df"),h=n("0d51"),p=n("9112"),g=n("cb2d"),v=n("9bf2").f,m=n("3a9b"),y=n("e163"),b=n("d2bb"),_=n("b622"),w=n("90e3"),T=n("69f3"),S=T.enforce,k=T.get,x=u.Int8Array,C=x&&x.prototype,E=u.Uint8ClampedArray,A=E&&E.prototype,O=x&&y(x),j=C&&y(C),I=Object.prototype,P=u.TypeError,M=_("toStringTag"),L=w("TYPED_ARRAY_TAG"),D=o&&!!b&&"Opera"!==f(u.opera),R=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},B={BigInt64Array:8,BigUint64Array:8},U=function(e){var t=y(e);if(l(t)){var n=k(t);return n&&d(n,"TypedArrayConstructor")?n["TypedArrayConstructor"]:U(t)}},F=function(e){if(!l(e))return!1;var t=f(e);return d(N,t)||d(B,t)};for(i in N)r=u[i],a=r&&r.prototype,a?S(a)["TypedArrayConstructor"]=r:D=!1;for(i in B)r=u[i],a=r&&r.prototype,a&&(S(a)["TypedArrayConstructor"]=r);if((!D||!c(O)||O===Function.prototype)&&(O=function(){throw P("Incorrect invocation")},D))for(i in N)u[i]&&b(u[i],O);if((!D||!j||j===I)&&(j=O.prototype,D))for(i in N)u[i]&&b(u[i].prototype,j);if(D&&y(A)!==j&&b(A,j),s&&!d(j,M))for(i in R=!0,v(j,M,{get:function(){return l(this)?this[L]:void 0}}),N)u[i]&&p(u[i],L,i);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_TAG:R&&L,aTypedArray:function(e){if(F(e))return e;throw P("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!b||m(O,e)))return e;throw P(h(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,i){if(s){if(n)for(var r in N){var a=u[r];if(a&&d(a.prototype,e))try{delete a.prototype[e]}catch(o){try{a.prototype[e]=t}catch(c){}}}j[e]&&!n||g(j,e,n?t:D&&C[e]||t,i)}},exportTypedArrayStaticMethod:function(e,t,n){var i,r;if(s){if(b){if(n)for(i in N)if(r=u[i],r&&d(r,e))try{delete r[e]}catch(a){}if(O[e]&&!n)return;try{return g(O,e,n?t:D&&O[e]||t)}catch(a){}}for(i in N)r=u[i],!r||r[e]&&!n||g(r,e,t)}},getTypedArrayConstructor:U,isView:function(e){if(!l(e))return!1;var t=f(e);return"DataView"===t||d(N,t)||d(B,t)},isTypedArray:F,TypedArray:O,TypedArrayPrototype:j}},ed6d:function(e,t,n){n("d9e2"),n("d401"),n("7a82");var i=n("4a4b");e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)},e.exports.__esModule=!0,e.exports["default"]=e.exports},edd0:function(e,t,n){var i=n("13d2"),r=n("9bf2");e.exports=function(e,t,n){return n.get&&i(n.get,t,{getter:!0}),n.set&&i(n.set,t,{setter:!0}),r.f(e,t,n)}},efec:function(e,t,n){var i=n("1a2d"),r=n("cb2d"),a=n("51eb"),o=n("b622"),s=o("toPrimitive"),u=Date.prototype;i(u,s)||r(u,s,a)},f069:function(e,t,n){"use strict";var i=n("59ed"),r=TypeError,a=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw r("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)};e.exports.f=function(e){return new a(e)}},f0c5:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s,u,c){var l,d="function"===typeof e?e.options:e;if(u){d.components||(d.components={});var f=Object.prototype.hasOwnProperty;for(var h in u)f.call(u,h)&&!f.call(d.components,h)&&(d.components[h]=u[h])}if(c&&("function"===typeof c.beforeCreate&&(c.beforeCreate=[c.beforeCreate]),(c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(d.mixins||(d.mixins=[])).push(c)),t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),i&&(d.functional=!0),a&&(d._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},d._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(d.functional){d._injectStyles=l;var p=d.render;d.render=function(e,t){return l.call(t),p(e,t)}}else{var g=d.beforeCreate;d.beforeCreate=g?[].concat(g,l):[l]}return{exports:e,options:d}}n.d(t,"a",(function(){return i}))},f183:function(e,t,n){var i=n("23e7"),r=n("e330"),a=n("d012"),o=n("861d"),s=n("1a2d"),u=n("9bf2").f,c=n("241c"),l=n("057f"),d=n("4fad"),f=n("90e3"),h=n("bb2f"),p=!1,g=f("meta"),v=0,m=function(e){u(e,g,{value:{objectID:"O"+v++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},p=!0;var e=c.f,t=r([].splice),n={};n[g]=1,e(n).length&&(c.f=function(n){for(var i=e(n),r=0,a=i.length;r<a;r++)if(i[r]===g){t(i,r,1);break}return i},i({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,g)){if(!d(e))return"F";if(!t)return"E";m(e)}return e[g].objectID},getWeakData:function(e,t){if(!s(e,g)){if(!d(e))return!0;if(!t)return!1;m(e)}return e[g].weakData},onFreeze:function(e){return h&&p&&d(e)&&!s(e,g)&&m(e),e}};a[g]=!0},f1839:function(e,t,n){var i=n("4924"),r=e.exports={WebVTT:n("128d"),VTTCue:n("49f7"),VTTRegion:n("ca02")};i.vttjs=r,i.WebVTT=r.WebVTT;var a=r.VTTCue,o=r.VTTRegion,s=i.VTTCue,u=i.VTTRegion;r.shim=function(){i.VTTCue=a,i.VTTRegion=o},r.restore=function(){i.VTTCue=s,i.VTTRegion=u},i.VTTCue||r.shim()},f22b:function(e,t,n){"use strict";var i=n("23e7"),r=n("c65b"),a=n("f069"),o=n("4738").CONSTRUCTOR;i({target:"Promise",stat:!0,forced:o},{reject:function(e){var t=a.f(this);return r(t.reject,void 0,e),t.promise}})},f354:function(e,t,n){var i=n("d039"),r=n("b622"),a=n("c430"),o=r("iterator");e.exports=!i((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,i){t["delete"]("b"),n+=i+e})),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},f36a:function(e,t,n){var i=n("e330");e.exports=i([].slice)},f495:function(e,t,n){var i=n("c04e"),r=TypeError;e.exports=function(e){var t=i(e,"number");if("number"==typeof t)throw r("Can't convert number to bigint");return BigInt(t)}},f4b3:function(e,t,n){"use strict";var i=n("23e7"),r=n("d039"),a=n("7b0b"),o=n("c04e"),s=r((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));i({target:"Date",proto:!0,arity:1,forced:s},{toJSON:function(e){var t=a(this),n=o(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},f4dd:function(e,t,n){"use strict";var i=n("23e7"),r=n("d58f").right,a=n("a640"),o=n("2d00"),s=n("605d"),u=a("reduceRight"),c=!s&&o>79&&o<83;i({target:"Array",proto:!0,forced:!u||c},{reduceRight:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},f5df:function(e,t,n){var i=n("00ee"),r=n("1626"),a=n("c6b6"),o=n("b622"),s=o("toStringTag"),u=Object,c="Arguments"==a(function(){return arguments}());e.exports=i?a:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=u(e),s))?n:c?a(t):"Object"==(i=a(t))&&r(t.callee)?"Arguments":i}},f772:function(e,t,n){var i=n("5692"),r=n("90e3"),a=i("keys");e.exports=function(e){return a[e]||(a[e]=r(e))}},f8c9:function(e,t,n){var i=n("23e7"),r=n("da84"),a=n("d44e");i({global:!0},{Reflect:{}}),a(r.Reflect,"Reflect",!0)},f8cd:function(e,t,n){var i=n("5926"),r=RangeError;e.exports=function(e){var t=i(e);if(t<0)throw r("The argument can't be less than 0");return t}},fb2c:function(e,t,n){var i=n("74e8");i("Uint32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},fb6a:function(e,t,n){"use strict";var i=n("23e7"),r=n("e8b5"),a=n("68ee"),o=n("861d"),s=n("23cb"),u=n("07fa"),c=n("fc6a"),l=n("8418"),d=n("b622"),f=n("1dde"),h=n("f36a"),p=f("slice"),g=d("species"),v=Array,m=Math.max;i({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,i,d,f=c(this),p=u(f),y=s(e,p),b=s(void 0===t?p:t,p);if(r(f)&&(n=f.constructor,a(n)&&(n===v||r(n.prototype))?n=void 0:o(n)&&(n=n[g],null===n&&(n=void 0)),n===v||void 0===n))return h(f,y,b);for(i=new(void 0===n?v:n)(m(b-y,0)),d=0;y<b;y++,d++)y in f&&l(i,d,f[y]);return i.length=d,i}})},fc6a:function(e,t,n){var i=n("44ad"),r=n("1d80");e.exports=function(e){return i(r(e))}},fce3:function(e,t,n){var i=n("d039"),r=n("da84"),a=r.RegExp;e.exports=i((function(){var e=a(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var i=n("04f8");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}}]);
|