/*! For license information please see LICENSES */ (window.webpackJsonp=window.webpackJsonp||[]).push([[212],[function(t,e,n){(function(e){var n;n="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},t.exports=n}).call(this,n(45))},function(t,e,n){"use strict";n.d(e,"g",(function(){return o})),n.d(e,"e",(function(){return l})),n.d(e,"k",(function(){return c})),n.d(e,"j",(function(){return h})),n.d(e,"i",(function(){return d})),n.d(e,"b",(function(){return v})),n.d(e,"f",(function(){return y})),n.d(e,"c",(function(){return _})),n.d(e,"h",(function(){return w})),n.d(e,"d",(function(){return T})),n.d(e,"a",(function(){return x}));var a,b,r=n(0),o=function(b,t,e){return void 0===e&&(e=" "),(function(t,e){for(var n="";e--;)n+=t;return n}(e,t)+b.toString()).slice(-t)},l=function(t){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer},c=function(t){return t instanceof Uint8Array?t:(Array.isArray(t)||l(t)||t instanceof ArrayBuffer||(t="number"!=typeof t||"number"==typeof t&&t!=t?0:[t]),new Uint8Array(t&&t.buffer||t,t&&t.byteOffset||0,t&&t.byteLength||0))},h=function(t){t=c(t);for(var e="",i=0;i<t.length;i++)e+=o(t[i].toString(16),2,"0");return e},d=function(t){t=c(t);for(var e="",i=0;i<t.length;i++)e+=o(t[i].toString(2),8,"0");return e},f=n.n(r).a.BigInt||Number,m=[f("0x1"),f("0x100"),f("0x10000"),f("0x1000000"),f("0x100000000"),f("0x10000000000"),f("0x1000000000000"),f("0x100000000000000"),f("0x10000000000000000")],v=(a=new Uint16Array([65484]),255===(b=new Uint8Array(a.buffer,a.byteOffset,a.byteLength))[0]||b[0],function(t,e){var n=void 0===e?{}:e,r=n.signed,o=void 0!==r&&r,l=n.le,h=void 0!==l&&l;t=c(t);var d=h?"reduce":"reduceRight",v=(t[d]?t[d]:Array.prototype[d]).call(t,(function(e,n,i){var r=h?i:Math.abs(i+1-t.length);return e+f(n)*m[r]}),f(0));if(o){var y=m[t.length]/f(2)-f(1);(v=f(v))>y&&(v-=y,v-=y,v-=f(2))}return Number(v)}),y=function(t,e){var n=(void 0===e?{}:e).le,r=void 0!==n&&n;("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&t!=t)&&(t=0),t=f(t);for(var o,l=(o=t,Math.ceil(function(t){return t.toString(2).length}(o)/8)),c=new Uint8Array(new ArrayBuffer(l)),i=0;i<l;i++){var h=r?i:Math.abs(i+1-c.length);c[h]=Number(t/m[i]&f(255)),t<0&&(c[h]=Math.abs(~c[h]),c[h]-=0===i?1:2)}return c},_=function(t){if(!t)return"";t=Array.prototype.slice.call(t);var e=String.fromCharCode.apply(null,c(t));try{return decodeURIComponent(escape(e))}catch(t){}return e},w=function(t,e){if("string"!=typeof t&&t&&"function"==typeof t.toString&&(t=t.toString()),"string"!=typeof t)return new Uint8Array;e||(t=unescape(encodeURIComponent(t)));for(var view=new Uint8Array(t.length),i=0;i<t.length;i++)view[i]=t.charCodeAt(i);return view},T=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e=e.filter((function(b){return b&&(b.byteLength||b.length)&&"string"!=typeof b})),e.length<=1)return c(e[0]);var r=e.reduce((function(t,e,i){return t+(e.byteLength||e.length)}),0),o=new Uint8Array(r),l=0;return e.forEach((function(t){t=c(t),o.set(t,l),l+=t.byteLength})),o},x=function(a,b,t){var e=void 0===t?{}:t,n=e.offset,r=void 0===n?0:n,o=e.mask,mask=void 0===o?[]:o;a=c(a);var l=(b=c(b)).every?b.every:Array.prototype.every;return b.length&&a.length-r>=b.length&&l.call(b,(function(t,i){return t===(mask[i]?mask[i]&a[r+i]:a[r+i])}))}},function(t,e,n){(function(e){var r,o=void 0!==e?e:"undefined"!=typeof window?window:{},l=n(674);"undefined"!=typeof document?r=document:(r=o["__GLOBAL_DOCUMENT_CACHE@4"])||(r=o["__GLOBAL_DOCUMENT_CACHE@4"]=l),t.exports=r}).call(this,n(45))},,,,,,,,,,function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var content=t(e);return e[2]?"@media ".concat(e[2]," {").concat(content,"}"):content})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(o[l]=!0)}for(var c=0;c<t.length;c++){var h=[].concat(t[c]);r&&o[h[0]]||(n&&(h[2]?h[2]="".concat(n," and ").concat(h[2]):h[2]=n),e.push(h))}},e}},function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],l=o[0],c={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[l]?r[l].parts.push(c):n.push(r[l]={id:l,parts:[c]})}return n}n.r(e),n.d(e,"default",(function(){return _}));var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)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 l={},head=o&&(document.head||document.getElementsByTagName("head")[0]),c=null,h=0,d=!1,f=function(){},m=null,v="data-vue-ssr-id",y="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function _(t,e,n,o){d=n,m=o||{};var c=r(t,e);return w(c),function(e){for(var n=[],i=0;i<c.length;i++){var o=c[i];(h=l[o.id]).refs--,n.push(h)}e?w(c=r(t,e)):c=[];for(i=0;i<n.length;i++){var h;if(0===(h=n[i]).refs){for(var d=0;d<h.parts.length;d++)h.parts[d]();delete l[h.id]}}}}function w(t){for(var i=0;i<t.length;i++){var e=t[i],n=l[e.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](e.parts[r]);for(;r<e.parts.length;r++)n.parts.push(x(e.parts[r]));n.parts.length>e.parts.length&&(n.parts.length=e.parts.length)}else{var o=[];for(r=0;r<e.parts.length;r++)o.push(x(e.parts[r]));l[e.id]={id:e.id,refs:1,parts:o}}}}function T(){var t=document.createElement("style");return t.type="text/css",head.appendChild(t),t}function x(t){var e,n,r=document.querySelector("style["+v+'~="'+t.id+'"]');if(r){if(d)return f;r.parentNode.removeChild(r)}if(y){var o=h++;r=c||(c=T()),e=k.bind(null,r,o,!1),n=k.bind(null,r,o,!0)}else r=T(),e=A.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var S,E=(S=[],function(t,e){return S[t]=e,S.filter(Boolean).join("\n")});function k(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=E(e,o);else{var l=document.createTextNode(o),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(l,c[e]):t.appendChild(l)}}function A(t,e){var n=e.css,r=e.media,o=e.sourceMap;if(r&&t.setAttribute("media",r),m.ssrId&&t.setAttribute(v,e.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},function(t,e){function n(t){if(t&&"object"==typeof t){var e=t.which||t.keyCode||t.charCode;e&&(t=e)}if("number"==typeof t)return l[t];var n,c=String(t);return(n=r[c.toLowerCase()])?n:(n=o[c.toLowerCase()])||(1===c.length?c.charCodeAt(0):void 0)}n.isEventKey=function(t,e){if(t&&"object"==typeof t){var n=t.which||t.keyCode||t.charCode;if(null==n)return!1;if("string"==typeof e){var l;if(l=r[e.toLowerCase()])return l===n;if(l=o[e.toLowerCase()])return l===n}else if("number"==typeof e)return e===n;return!1}};var r=(e=t.exports=n).code=e.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=e.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};for(i=97;i<123;i++)r[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)r[i-48]=i;for(i=1;i<13;i++)r["f"+i]=i+111;for(i=0;i<10;i++)r["numpad "+i]=i+96;var l=e.names=e.title={};for(i in r)l[r[i]]=i;for(var c in o)r[c]=o[c]},,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"i",(function(){return d})),n.d(e,"h",(function(){return f})),n.d(e,"d",(function(){return m})),n.d(e,"f",(function(){return v})),n.d(e,"e",(function(){return y})),n.d(e,"c",(function(){return _})),n.d(e,"g",(function(){return w})),n.d(e,"a",(function(){return T})),n.d(e,"b",(function(){return x}));var r=n(0),o=n.n(r),l={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^/},c=["video","audio","text"],h=["Video","Audio","Text"],d=function(t){return t?t.replace(/avc1\.(\d+)\.(\d+)/i,(function(t,e,n){return"avc1."+("00"+Number(e).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)})):t},f=function(t){void 0===t&&(t="");var e=t.split(","),n=[];return e.forEach((function(t){var e;t=t.trim(),c.forEach((function(r){var o=l[r].exec(t.toLowerCase());if(o&&!(o.length<=1)){e=r;var c=t.substring(0,o[1].length),details=t.replace(c,"");n.push({type:c,details:details,mediaType:r})}})),e||n.push({type:t,details:"",mediaType:"unknown"})})),n},m=function(t,e){if(!t.mediaGroups.AUDIO||!e)return null;var n=t.mediaGroups.AUDIO[e];if(!n)return null;for(var r in n){var o=n[r];if(o.default&&o.playlists)return f(o.playlists[0].attributes.CODECS)}return null},v=function(t){return void 0===t&&(t=""),l.audio.test(t.trim().toLowerCase())},y=function(t){if(t&&"string"==typeof t){var e,n=t.toLowerCase().split(",").map((function(t){return d(t.trim())})),r="video";1===n.length&&v(n[0])?r="audio":1===n.length&&(void 0===(e=n[0])&&(e=""),l.text.test(e.trim().toLowerCase()))&&(r="application");var o="mp4";return n.every((function(t){return l.mp4.test(t)}))?o="mp4":n.every((function(t){return l.webm.test(t)}))?o="webm":n.every((function(t){return l.ogg.test(t)}))&&(o="ogg"),r+"/"+o+';codecs="'+t+'"'}},_=function(t){return void 0===t&&(t=""),o.a.MediaSource&&o.a.MediaSource.isTypeSupported&&o.a.MediaSource.isTypeSupported(y(t))||!1},w=function(t){return void 0===t&&(t=""),t.toLowerCase().split(",").every((function(t){t=t.trim();for(var i=0;i<h.length;i++){if(l["muxer"+h[i]].test(t))return!0}return!1}))},T="mp4a.40.2",x="avc1.4d400d"},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r=n(342),o="object"==typeof self&&self&&self.Object===Object&&self,l=r||o||Function("return this")();t.exports=l},,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return L})),n.d(e,"b",(function(){return B})),n.d(e,"c",(function(){return gt})),n.d(e,"d",(function(){return vt}));var r=n(109),o=n(0),l=n.n(o),c=n(167),h=n(377),d=function(t){return!!t&&"object"==typeof t},f=function t(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.reduce((function(e,source){return"object"!=typeof source||Object.keys(source).forEach((function(n){Array.isArray(e[n])&&Array.isArray(source[n])?e[n]=e[n].concat(source[n]):d(e[n])&&d(source[n])?e[n]=t(e[n],source[n]):e[n]=source[n]})),e}),{})},m=function(t){return Object.keys(t).map((function(e){return t[e]}))},v=function(t){return t.reduce((function(t,e){return t.concat(e)}),[])},y=function(t){if(!t.length)return[];for(var e=[],i=0;i<t.length;i++)e.push(t[i]);return e},_=function(t,e){for(var i=0;i<t.length;i++)if(e(t[i]))return i;return-1},w="INVALID_NUMBER_OF_PERIOD",T="DASH_EMPTY_MANIFEST",x="DASH_INVALID_XML",S="NO_BASE_URL",E="SEGMENT_TIME_UNSPECIFIED",k="UNSUPPORTED_UTC_TIMING_SCHEME",A=function(t){var e=t.baseUrl,n=void 0===e?"":e,o=t.source,source=void 0===o?"":o,c=t.range,h=void 0===c?"":c,d=t.indexRange,f=void 0===d?"":d,m={uri:source,resolvedUri:Object(r.a)(n||"",source)};if(h||f){var v,y=(h||f).split("-"),_=l.a.BigInt?l.a.BigInt(y[0]):parseInt(y[0],10),w=l.a.BigInt?l.a.BigInt(y[1]):parseInt(y[1],10);_<Number.MAX_SAFE_INTEGER&&"bigint"==typeof _&&(_=Number(_)),w<Number.MAX_SAFE_INTEGER&&"bigint"==typeof w&&(w=Number(w)),"bigint"==typeof(v="bigint"==typeof w||"bigint"==typeof _?l.a.BigInt(w)-l.a.BigInt(_)+l.a.BigInt(1):w-_+1)&&v<Number.MAX_SAFE_INTEGER&&(v=Number(v)),m.byterange={length:v,offset:_}}return m},C=function(t){return t&&"number"!=typeof t&&(t=parseInt(t,10)),isNaN(t)?null:t},O={static:function(t){var e=t.duration,n=t.timescale,r=void 0===n?1:n,o=t.sourceDuration,l=t.periodDuration,c=C(t.endNumber),h=e/r;return"number"==typeof c?{start:0,end:c}:"number"==typeof l?{start:0,end:l/h}:{start:0,end:o/h}},dynamic:function(t){var e=t.NOW,n=t.clientOffset,r=t.availabilityStartTime,o=t.timescale,l=void 0===o?1:o,c=t.duration,h=t.periodStart,d=void 0===h?0:h,f=t.minimumUpdatePeriod,m=void 0===f?0:f,v=t.timeShiftBufferDepth,y=void 0===v?1/0:v,_=C(t.endNumber),w=(e+n)/1e3,T=r+d,x=w+m-T,S=Math.ceil(x*l/c),E=Math.floor((w-T-y)*l/c),k=Math.floor((w-T)*l/c);return{start:Math.max(0,E),end:"number"==typeof _?_:Math.min(S,k)}}},j=function(t){var e=t.type,n=t.duration,r=t.timescale,o=void 0===r?1:r,l=t.periodDuration,c=t.sourceDuration,h=O[e](t),d=function(t,e){for(var n=[],i=t;i<e;i++)n.push(i);return n}(h.start,h.end).map(function(t){return function(e){var n=t.duration,r=t.timescale,o=void 0===r?1:r,l=t.periodStart,c=t.startNumber;return{number:(void 0===c?1:c)+e,duration:n/o,timeline:l,time:e*n}}}(t));if("static"===e){var f=d.length-1,m="number"==typeof l?l:c;d[f].duration=m-n/o*f}return d},I=function(t){var e=t.baseUrl,n=t.initialization,r=void 0===n?{}:n,o=t.sourceDuration,l=t.indexRange,c=void 0===l?"":l,h=t.periodStart,d=t.presentationTime,f=t.number,m=void 0===f?0:f,v=t.duration;if(!e)throw new Error(S);var y=A({baseUrl:e,source:r.sourceURL,range:r.range}),_=A({baseUrl:e,source:e,indexRange:c});if(_.map=y,v){var w=j(t);w.length&&(_.duration=w[0].duration,_.timeline=w[0].timeline)}else o&&(_.duration=o,_.timeline=h);return _.presentationTime=d||h,_.number=m,[_]},L=function(t,e,n){var r,o=t.sidx.map?t.sidx.map:null,c=t.sidx.duration,h=t.timeline||0,d=t.sidx.byterange,f=d.offset+d.length,m=e.timescale,v=e.references.filter((function(t){return 1!==t.referenceType})),y=[],_=t.endList?"static":"dynamic",w=t.sidx.timeline,T=w,x=t.mediaSequence||0;r="bigint"==typeof e.firstOffset?l.a.BigInt(f)+e.firstOffset:f+e.firstOffset;for(var i=0;i<v.length;i++){var S=e.references[i],E=S.referencedSize,k=S.subsegmentDuration,A=void 0;A="bigint"==typeof r?r+l.a.BigInt(E)-l.a.BigInt(1):r+E-1;var C=I({baseUrl:n,timescale:m,timeline:h,periodStart:w,presentationTime:T,number:x,duration:k,sourceDuration:c,indexRange:r+"-"+A,type:_})[0];o&&(C.map=o),y.push(C),r+="bigint"==typeof r?l.a.BigInt(E):E,T+=k/m,x++}return t.segments=y,t},D=["AUDIO","SUBTITLES"],P=1/60,M=function(t){return(e=t,n=function(t){return t.timeline},m(e.reduce((function(t,e){return e.forEach((function(e){t[n(e)]=e})),t}),{}))).sort((function(a,b){return a.timeline>b.timeline?1:-1}));var e,n},N=function(t){var e,n,r=[];return e=t,n=function(t,e,n,label){r=r.concat(t.playlists||[])},D.forEach((function(t){for(var r in e.mediaGroups[t])for(var o in e.mediaGroups[t][r]){var l=e.mediaGroups[t][r][o];n(l,t,r,o)}})),r},R=function(t){var e=t.playlist,n=t.mediaSequence;e.mediaSequence=n,e.segments.forEach((function(t,n){t.number=e.mediaSequence+n}))},U=function(t){var e=t.oldManifest,n=t.newManifest,r=e.playlists.concat(N(e)),o=n.playlists.concat(N(n));return n.timelineStarts=M([e.timelineStarts,n.timelineStarts]),function(t){var e=t.oldPlaylists,n=t.newPlaylists,r=t.timelineStarts;n.forEach((function(t){t.discontinuitySequence=_(r,(function(e){return e.timeline===t.timeline}));var n=function(t,e){for(var i=0;i<t.length;i++)if(t[i].attributes.NAME===e)return t[i];return null}(e,t.attributes.NAME);if(n&&!t.sidx){var o=t.segments[0],l=_(n.segments,(function(t){return Math.abs(t.presentationTime-o.presentationTime)<P}));if(-1===l)return R({playlist:t,mediaSequence:n.mediaSequence+n.segments.length}),t.segments[0].discontinuity=!0,t.discontinuityStarts.unshift(0),void((!n.segments.length&&t.timeline>n.timeline||n.segments.length&&t.timeline>n.segments[n.segments.length-1].timeline)&&t.discontinuitySequence--);n.segments[l].discontinuity&&!o.discontinuity&&(o.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),R({playlist:t,mediaSequence:n.segments[l].number})}}))}({oldPlaylists:r,newPlaylists:o,timelineStarts:n.timelineStarts}),n},B=function(t){return t&&t.uri+"-"+(e=t.byterange,n="bigint"==typeof e.offset||"bigint"==typeof e.length?l.a.BigInt(e.offset)+l.a.BigInt(e.length)-l.a.BigInt(1):e.offset+e.length-1,e.offset+"-"+n);var e,n},F=function(t){return m(t.reduce((function(t,e){var n=e.attributes.id+(e.attributes.lang||"");if(t[n]){var r;if(e.segments)e.segments[0]&&(e.segments[0].discontinuity=!0),(r=t[n].segments).push.apply(r,e.segments);e.attributes.contentProtection&&(t[n].attributes.contentProtection=e.attributes.contentProtection)}else t[n]=e,t[n].attributes.timelineStarts=[];return t[n].attributes.timelineStarts.push({start:e.attributes.periodStart,timeline:e.attributes.periodStart}),t}),{})).map((function(t){var e,n;return t.discontinuityStarts=(e=t.segments||[],n="discontinuity",e.reduce((function(a,t,i){return t[n]&&a.push(i),a}),[])),t}))},z=function(t,e){var n=B(t.sidx),r=n&&e[n]&&e[n].sidx;return r&&L(t,r,t.sidx.resolvedUri),t},H=function(t,e){if(void 0===e&&(e={}),!Object.keys(e).length)return t;for(var i in t)t[i]=z(t[i],e);return t},V=function(t){var e,n=t.attributes,r=t.segments,o=t.sidx,l=t.discontinuityStarts,c={attributes:(e={NAME:n.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:n.width,height:n.height},CODECS:n.codecs,BANDWIDTH:n.bandwidth},e["PROGRAM-ID"]=1,e),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuityStarts:l,timelineStarts:n.timelineStarts,segments:r};return n.frameRate&&(c.attributes["FRAME-RATE"]=n.frameRate),n.contentProtection&&(c.contentProtection=n.contentProtection),o&&(c.sidx=o),c},W=function(t){var e=t.attributes;return"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType},Y=function(t){var e=t.attributes;return"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType},G=function(t){var e=t.attributes;return"text/vtt"===e.mimeType||"text"===e.contentType},X=function(t){return t?Object.keys(t).reduce((function(e,label){var n=t[label];return e.concat(n.playlists)}),[]):[]},K=function(t){var e,n=t.dashPlaylists,r=t.locations,o=t.sidxMapping,l=void 0===o?{}:o,c=t.previousManifest;if(!n.length)return{};var h=n[0].attributes,d=h.sourceDuration,f=h.type,m=h.suggestedPresentationDelay,v=h.minimumUpdatePeriod,y=F(n.filter(W)).map(V),w=F(n.filter(Y)),T=F(n.filter(G)),x=n.map((function(t){return t.attributes.captionServices})).filter(Boolean),S={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(e={AUDIO:{},VIDEO:{}},e["CLOSED-CAPTIONS"]={},e.SUBTITLES={},e),uri:"",duration:d,playlists:H(y,l)};v>=0&&(S.minimumUpdatePeriod=1e3*v),r&&(S.locations=r),"dynamic"===f&&(S.suggestedPresentationDelay=m);var E,k,A=0===S.playlists.length,C=w.length?function(t,e,n){var r;void 0===e&&(e={}),void 0===n&&(n=!1);var o=t.reduce((function(a,t){var o=t.attributes.role&&t.attributes.role.value||"",l=t.attributes.lang||"",label=t.attributes.label||"main";if(l&&!t.attributes.label){var c=o?" ("+o+")":"";label=""+t.attributes.lang+c}a[label]||(a[label]={language:l,autoselect:!0,default:"main"===o,playlists:[],uri:""});var h=z(function(t,e){var n,r=t.attributes,o=t.segments,l=t.sidx,c=t.mediaSequence,h=t.discontinuitySequence,d=t.discontinuityStarts,f={attributes:(n={NAME:r.id,BANDWIDTH:r.bandwidth,CODECS:r.codecs},n["PROGRAM-ID"]=1,n),uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:"",targetDuration:r.duration,discontinuitySequence:h,discontinuityStarts:d,timelineStarts:r.timelineStarts,mediaSequence:c,segments:o};return r.contentProtection&&(f.contentProtection=r.contentProtection),l&&(f.sidx=l),e&&(f.attributes.AUDIO="audio",f.attributes.SUBTITLES="subs"),f}(t,n),e);return a[label].playlists.push(h),void 0===r&&"main"===o&&((r=t).default=!0),a}),{});return r||(o[Object.keys(o)[0]].default=!0),o}(w,l,A):null,O=T.length?function(t,e){return void 0===e&&(e={}),t.reduce((function(a,t){var label=t.attributes.lang||"text";return a[label]||(a[label]={language:label,default:!1,autoselect:!1,playlists:[],uri:""}),a[label].playlists.push(z(function(t){var e,n=t.attributes,r=t.segments,o=t.mediaSequence,l=t.discontinuityStarts,c=t.discontinuitySequence;void 0===r&&(r=[{uri:n.baseUrl,timeline:n.periodStart,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration);var h=((e={NAME:n.id,BANDWIDTH:n.bandwidth})["PROGRAM-ID"]=1,e);return n.codecs&&(h.CODECS=n.codecs),{attributes:h,uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:n.baseUrl||"",targetDuration:n.duration,timelineStarts:n.timelineStarts,discontinuityStarts:l,discontinuitySequence:c,mediaSequence:o,segments:r}}(t),e)),a}),{})}(T,l):null,j=y.concat(X(C),X(O)),I=j.map((function(t){return t.timelineStarts}));return S.timelineStarts=M(I),E=j,k=S.timelineStarts,E.forEach((function(t){t.mediaSequence=0,t.discontinuitySequence=_(k,(function(e){return e.timeline===t.timeline})),t.segments&&t.segments.forEach((function(t,e){t.number=e}))})),C&&(S.mediaGroups.AUDIO.audio=C),O&&(S.mediaGroups.SUBTITLES.subs=O),x.length&&(S.mediaGroups["CLOSED-CAPTIONS"].cc=x.reduce((function(t,e){return e?(e.forEach((function(e){var n=e.channel,r=e.language;t[r]={autoselect:!1,default:!1,instreamId:n,language:r},e.hasOwnProperty("aspectRatio")&&(t[r].aspectRatio=e.aspectRatio),e.hasOwnProperty("easyReader")&&(t[r].easyReader=e.easyReader),e.hasOwnProperty("3D")&&(t[r]["3D"]=e["3D"])})),t):t}),{})),c?U({oldManifest:c,newManifest:S}):S},$=function(t,time,e){var n=t.NOW,r=t.clientOffset,o=t.availabilityStartTime,l=t.timescale,c=void 0===l?1:l,h=t.periodStart,d=void 0===h?0:h,f=t.minimumUpdatePeriod,m=(n+r)/1e3+(void 0===f?0:f)-(o+d);return Math.ceil((m*c-time)/e)},Q=function(t,e){for(var n=t.type,r=t.minimumUpdatePeriod,o=void 0===r?0:r,l=t.media,c=void 0===l?"":l,h=t.sourceDuration,d=t.timescale,f=void 0===d?1:d,m=t.startNumber,v=void 0===m?1:m,y=t.periodStart,_=[],time=-1,w=0;w<e.length;w++){var T=e[w],x=T.d,S=T.r||0,E=T.t||0;time<0&&(time=E),E&&E>time&&(time=E);var k=void 0;if(S<0){var A=w+1;k=A===e.length?"dynamic"===n&&o>0&&c.indexOf("$Number$")>0?$(t,time,x):(h*f-time)/x:(e[A].t-time)/x}else k=S+1;for(var C=v+_.length+k,O=v+_.length;O<C;)_.push({number:O,duration:x/f,time:time,timeline:y}),time+=x,O++}return _},J=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,Z=function(t,e){return t.replace(J,function(t){return function(e,n,r,o){if("$$"===e)return"$";if(void 0===t[n])return e;var l=""+t[n];return"RepresentationID"===n?l:(o=r?parseInt(o,10):1,l.length>=o?l:""+new Array(o-l.length+1).join("0")+l)}}(e))},tt=function(t,e){var n={RepresentationID:t.id,Bandwidth:t.bandwidth||0},o=t.initialization,l=void 0===o?{sourceURL:"",range:""}:o,c=A({baseUrl:t.baseUrl,source:Z(l.sourceURL,n),range:l.range}),h=function(t,e){return t.duration||e?t.duration?j(t):Q(t,e):[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodStart}]}(t,e);return h.map((function(e){n.Number=e.number,n.Time=e.time;var o=Z(t.media||"",n),l=t.timescale||1,h=t.presentationTimeOffset||0,d=t.periodStart+(e.time-h)/l;return{uri:o,timeline:e.timeline,duration:e.duration,resolvedUri:Object(r.a)(t.baseUrl||"",o),map:c,number:e.number,presentationTime:d}}))},et=function(t,e){var n=t.duration,r=t.segmentUrls,o=void 0===r?[]:r,l=t.periodStart;if(!n&&!e||n&&e)throw new Error(E);var c,h=o.map((function(e){return function(t,e){var n=t.baseUrl,r=t.initialization,o=void 0===r?{}:r,l=A({baseUrl:n,source:o.sourceURL,range:o.range}),c=A({baseUrl:n,source:e.media,range:e.mediaRange});return c.map=l,c}(t,e)}));return n&&(c=j(t)),e&&(c=Q(t,e)),c.map((function(e,n){if(h[n]){var r=h[n],o=t.timescale||1,c=t.presentationTimeOffset||0;return r.timeline=e.timeline,r.duration=e.duration,r.number=e.number,r.presentationTime=l+(e.time-c)/o,r}})).filter((function(t){return t}))},nt=function(t){var e,n,r=t.attributes,o=t.segmentInfo;o.template?(n=tt,e=f(r,o.template)):o.base?(n=I,e=f(r,o.base)):o.list&&(n=et,e=f(r,o.list));var l={attributes:r};if(!n)return l;var c=n(e,o.segmentTimeline);if(e.duration){var h=e,d=h.duration,m=h.timescale,v=void 0===m?1:m;e.duration=d/v}else c.length?e.duration=c.reduce((function(t,e){return Math.max(t,Math.ceil(e.duration))}),0):e.duration=0;return l.attributes=e,l.segments=c,o.base&&e.indexRange&&(l.sidx=c[0],l.segments=[]),l},it=function(element,t){return y(element.childNodes).filter((function(e){return e.tagName===t}))},st=function(element){return element.textContent.trim()},ot=function(t){var e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!e)return 0;var n=e.slice(1),r=n[0],o=n[1],l=n[2],c=n[3],h=n[4],d=n[5];return 31536e3*parseFloat(r||0)+2592e3*parseFloat(o||0)+86400*parseFloat(l||0)+3600*parseFloat(c||0)+60*parseFloat(h||0)+parseFloat(d||0)},at={mediaPresentationDuration:function(t){return ot(t)},availabilityStartTime:function(t){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e=t)&&(e+="Z"),Date.parse(e)/1e3;var e},minimumUpdatePeriod:function(t){return ot(t)},suggestedPresentationDelay:function(t){return ot(t)},type:function(t){return t},timeShiftBufferDepth:function(t){return ot(t)},start:function(t){return ot(t)},width:function(t){return parseInt(t,10)},height:function(t){return parseInt(t,10)},bandwidth:function(t){return parseInt(t,10)},frameRate:function(t){return function(t){return parseFloat(t.split("/").reduce((function(t,e){return t/e})))}(t)},startNumber:function(t){return parseInt(t,10)},timescale:function(t){return parseInt(t,10)},presentationTimeOffset:function(t){return parseInt(t,10)},duration:function(t){var e=parseInt(t,10);return isNaN(e)?ot(t):e},d:function(t){return parseInt(t,10)},t:function(t){return parseInt(t,10)},r:function(t){return parseInt(t,10)},DEFAULT:function(t){return t}},ut=function(t){return t&&t.attributes?y(t.attributes).reduce((function(a,t){var e=at[t.name]||at.DEFAULT;return a[t.name]=e(t.value),a}),{}):{}},lt={"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"},ct=function(t,e){return e.length?v(t.map((function(t){return e.map((function(e){return Object(r.a)(t,st(e))}))}))):t},ht=function(t){var e=it(t,"SegmentTemplate")[0],n=it(t,"SegmentList")[0],r=n&&it(n,"SegmentURL").map((function(s){return f({tag:"SegmentURL"},ut(s))})),o=it(t,"SegmentBase")[0],l=n||e,c=l&&it(l,"SegmentTimeline")[0],h=n||o||e,d=h&&it(h,"Initialization")[0],template=e&&ut(e);template&&d?template.initialization=d&&ut(d):template&&template.initialization&&(template.initialization={sourceURL:template.initialization});var m={template:template,segmentTimeline:c&&it(c,"S").map((function(s){return ut(s)})),list:n&&f(ut(n),{segmentUrls:r,initialization:ut(d)}),base:o&&f(ut(o),{initialization:ut(d)})};return Object.keys(m).forEach((function(t){m[t]||delete m[t]})),m},ft=function(t,e,n){return function(r){var o,l=ut(r),h=ct(e,it(r,"BaseURL")),d=it(r,"Role")[0],m={role:ut(d)},y=f(t,l,m),_=it(r,"Accessibility")[0],w="urn:scte:dash:cc:cea-608:2015"===(o=ut(_)).schemeIdUri?("string"!=typeof o.value?[]:o.value.split(";")).map((function(t){var e,n;if(n=t,/^CC\d=/.test(t)){var r=t.split("=");e=r[0],n=r[1]}else/^CC\d$/.test(t)&&(e=t);return{channel:e,language:n}})):"urn:scte:dash:cc:cea-708:2015"===o.schemeIdUri?("string"!=typeof o.value?[]:o.value.split(";")).map((function(t){var e={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(t)){var n=t.split("="),r=n[0],o=n[1],l=void 0===o?"":o;e.channel=r,e.language=t,l.split(",").forEach((function(t){var n=t.split(":"),r=n[0],o=n[1];"lang"===r?e.language=o:"er"===r?e.easyReader=Number(o):"war"===r?e.aspectRatio=Number(o):"3D"===r&&(e["3D"]=Number(o))}))}else e.language=t;return e.channel&&(e.channel="SERVICE"+e.channel),e})):void 0;w&&(y=f(y,{captionServices:w}));var label=it(r,"Label")[0];if(label&&label.childNodes.length){var T=label.childNodes[0].nodeValue.trim();y=f(y,{label:T})}var x=it(r,"ContentProtection").reduce((function(t,e){var n=ut(e);n.schemeIdUri&&(n.schemeIdUri=n.schemeIdUri.toLowerCase());var r=lt[n.schemeIdUri];if(r){t[r]={attributes:n};var o=it(e,"cenc:pssh")[0];if(o){var l=st(o);t[r].pssh=l&&Object(c.a)(l)}}return t}),{});Object.keys(x).length&&(y=f(y,{contentProtection:x}));var S=ht(r),E=it(r,"Representation"),k=f(n,S);return v(E.map(function(t,e,n){return function(r){var o=it(r,"BaseURL"),l=ct(e,o),c=f(t,ut(r)),h=ht(r);return l.map((function(t){return{segmentInfo:f(n,h),attributes:f(c,{baseUrl:t})}}))}}(y,h,k)))}},pt=function(t,e){return function(n,r){var o=ct(e,it(n.node,"BaseURL")),l=f(t,{periodStart:n.attributes.start});"number"==typeof n.attributes.duration&&(l.periodDuration=n.attributes.duration);var c=it(n.node,"AdaptationSet"),h=ht(n.node);return v(c.map(ft(l,o,h)))}},mt=function(t){if(""===t)throw new Error(T);var e,n,r=new h.DOMParser;try{n=(e=r.parseFromString(t,"application/xml"))&&"MPD"===e.documentElement.tagName?e.documentElement:null}catch(t){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(x);return n},gt=function(t,e){void 0===e&&(e={});var n=function(t,e){void 0===e&&(e={});var n=e,r=n.manifestUri,o=void 0===r?"":r,l=n.NOW,c=void 0===l?Date.now():l,h=n.clientOffset,d=void 0===h?0:h,f=it(t,"Period");if(!f.length)throw new Error(w);var m=it(t,"Location"),y=ut(t),_=ct([o],it(t,"BaseURL"));y.type=y.type||"static",y.sourceDuration=y.mediaPresentationDuration||0,y.NOW=c,y.clientOffset=d,m.length&&(y.locations=m.map(st));var T=[];return f.forEach((function(t,e){var n=ut(t),r=T[e-1];n.start=function(t){var e=t.attributes,n=t.priorPeriodAttributes,r=t.mpdType;return"number"==typeof e.start?e.start:n&&"number"==typeof n.start&&"number"==typeof n.duration?n.start+n.duration:n||"static"!==r?null:0}({attributes:n,priorPeriodAttributes:r?r.attributes:null,mpdType:y.type}),T.push({node:t,attributes:n})})),{locations:y.locations,representationInfo:v(T.map(pt(y,_)))}}(mt(t),e),r=n.representationInfo.map(nt);return K({dashPlaylists:r,locations:n.locations,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest})},vt=function(t){return function(t){var e=it(t,"UTCTiming")[0];if(!e)return null;var n=ut(e);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;default:throw new Error(k)}return n}(mt(t))}},,,,,,,function(t,e,n){var r=n(582),o=n(587);t.exports=function(object,t){var e=o(object,t);return r(e)?e:void 0}},function(t,e,n){var r=n(570);t.exports=function(t){return r(t,5)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(1),o=Object(r.k)([73,68,51]),l=function t(e,n){return void 0===n&&(n=0),(e=Object(r.k)(e)).length-n<10||!Object(r.a)(e,o,{offset:n})?n:(n+=function(t,e){void 0===e&&(e=0);var n=(t=Object(r.k)(t))[e+5],o=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9];return(16&n)>>4?o+20:o+10}(e,n),t(e,n))}},function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",(function(){return ci}));var l,c,h,d,f,m,v,y,_,w,T,x,S,E,k,A,C,O={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},j={duration:.5,overwrite:!1,delay:0},I=1e8,L=1e-8,D=2*Math.PI,P=D/4,M=0,N=Math.sqrt,R=Math.cos,U=Math.sin,B=function(t){return"string"==typeof t},F=function(t){return"function"==typeof t},z=function(t){return"number"==typeof t},H=function(t){return void 0===t},V=function(t){return"object"==typeof t},W=function(t){return!1!==t},Y=function(){return"undefined"!=typeof window},G=function(t){return F(t)||B(t)},X="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},K=Array.isArray,$=/(?:-?\.?\d|\.)+/gi,Q=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,J=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Z=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,tt=/[+-]=-?[.\d]+/,et=/[^,'"\[\]\s]+/gi,nt=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,it={},st={},ot=function(t){return(st=Nt(t,it))&&Un},at=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},ut=function(t,e){return!e&&console.warn(t)},lt=function(t,e){return t&&(it[t]=e)&&st&&(st[t]=e)||it},ct=function(){return 0},ht={suppressEvents:!0,isStart:!0,kill:!1},ft={suppressEvents:!0,kill:!1},pt={suppressEvents:!0},mt={},gt=[],vt={},yt={},bt={},_t=30,wt=[],Tt="",xt=function(t){var e,i,n=t[0];if(V(n)||F(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(i=wt.length;i--&&!wt[i].targetTest(n););e=wt[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Qe(t[i],e)))||t.splice(i,1);return t},St=function(t){return t._gsap||xt(pe(t))[0]._gsap},Et=function(t,e,n){return(n=t[e])&&F(n)?t[e]():H(n)&&t.getAttribute&&t.getAttribute(e)||n},kt=function(t,e){return(t=t.split(",")).forEach(e)||t},At=function(t){return Math.round(1e5*t)/1e5||0},Ct=function(t){return Math.round(1e7*t)/1e7||0},Ot=function(t,e){var n=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),"+"===n?t+r:"-"===n?t-r:"*"===n?t*r:t/r},jt=function(t,e){for(var n=e.length,i=0;t.indexOf(e[i])<0&&++i<n;);return i<n},It=function(){var i,t,e=gt.length,a=gt.slice(0);for(vt={},gt.length=0,i=0;i<e;i++)(t=a[i])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)},Lt=function(t,time,e,n){gt.length&&!c&&It(),t.render(time,e,n||c&&time<0&&(t._initted||t._startAt)),gt.length&&!c&&It()},Dt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(et).length<2?e:B(t)?t.trim():t},Pt=function(p){return p},Mt=function(t,e){for(var p in e)p in t||(t[p]=e[p]);return t},Nt=function(base,t){for(var p in t)base[p]=t[p];return base},Rt=function t(base,e){for(var p in e)"__proto__"!==p&&"constructor"!==p&&"prototype"!==p&&(base[p]=V(e[p])?t(base[p]||(base[p]={}),e[p]):e[p]);return base},Ut=function(t,e){var p,n={};for(p in t)p in e||(n[p]=t[p]);return n},Bt=function(t){var e,n=t.parent||d,r=t.keyframes?(e=K(t.keyframes),function(t,n){for(var p in n)p in t||"duration"===p&&e||"ease"===p||(t[p]=n[p])}):Mt;if(W(t.inherit))for(;n;)r(t,n.vars.defaults),n=n.parent||n._dp;return t},Ft=function(t,e,n,r,o){void 0===n&&(n="_first"),void 0===r&&(r="_last");var l,c=t[r];if(o)for(l=e[o];c&&c[o]>l;)c=c._prev;return c?(e._next=c._next,c._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=c,e.parent=e._dp=t,e},zt=function(t,e,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var o=e._prev,l=e._next;o?o._next=l:t[n]===e&&(t[n]=l),l?l._prev=o:t[r]===e&&(t[r]=o),e._next=e._prev=e.parent=null},qt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Ht=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var a=t;a;)a._dirty=1,a=a.parent;return t},Vt=function(t,e,n,r){return t._startAt&&(c?t._startAt.revert(ft):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},Wt=function t(e){return!e||e._ts&&t(e.parent)},Yt=function(t){return t._repeat?Gt(t._tTime,t=t.duration()+t._rDelay)*t:0},Gt=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},Xt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Kt=function(t){return t._end=Ct(t._start+(t._tDur/Math.abs(t._ts||t._rts||L)||0))},$t=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=Ct(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Kt(t),n._dirty||Ht(n,t)),t},Qt=function(t,e){var n;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(n=Xt(t.rawTime(),e),(!e._dur||le(0,e.totalDuration(),n)-e._tTime>L)&&e.render(n,!0)),Ht(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-1e-8}},Jt=function(t,e,n,r){return e.parent&&qt(e),e._start=Ct((z(n)?n:n||t!==d?oe(t,n,e):t._time)+e._delay),e._end=Ct(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Ft(t,e,"_first","_last",t._sort?"_start":0),ne(e)||(t._recent=e),r||Qt(t,e),t._ts<0&&$t(t,t._tTime),t},Zt=function(t,e){return(it.ScrollTrigger||at("scrollTrigger",e))&&it.ScrollTrigger.create(e,t)},te=function(t,time,e,n,r){return on(t,time,r),t._initted?!e&&t._pt&&!c&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&_!==Ue.frame?(gt.push(t),t._lazy=[r,n],1):void 0:1},ee=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},ne=function(t){var data=t.data;return"isFromStart"===data||"isStart"===data},re=function(t,e,n,r){var o=t._repeat,l=Ct(e)||0,c=t._tTime/t._tDur;return c&&!r&&(t._time*=l/t._dur),t._dur=l,t._tDur=o?o<0?1e10:Ct(l*(o+1)+t._rDelay*o):l,c>0&&!r&&$t(t,t._tTime=t._tDur*c),t.parent&&Kt(t),n||Ht(t.parent,t),t},ie=function(t){return t instanceof Ze?Ht(t):re(t,t._dur)},se={_start:0,endTime:ct,totalDuration:ct},oe=function t(e,n,r){var i,o,l,c=e.labels,h=e._recent||se,d=e.duration()>=I?h.endTime(!1):e._dur;return B(n)&&(isNaN(n)||n in c)?(o=n.charAt(0),l="%"===n.substr(-1),i=n.indexOf("="),"<"===o||">"===o?(i>=0&&(n=n.replace(/=/,"")),("<"===o?h._start:h.endTime(h._repeat>=0))+(parseFloat(n.substr(1))||0)*(l?(i<0?h:r).totalDuration()/100:1)):i<0?(n in c||(c[n]=d),c[n]):(o=parseFloat(n.charAt(i-1)+n.substr(i+1)),l&&r&&(o=o/100*(K(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+o:d+o)):null==n?d:+n},ae=function(t,e,n){var r,o,l=z(e[1]),c=(l?2:1)+(t<2?0:1),h=e[c];if(l&&(h.duration=e[1]),h.parent=n,t){for(r=h,o=n;o&&!("immediateRender"in r);)r=o.vars.defaults||{},o=W(o.vars.inherit)&&o.parent;h.immediateRender=W(r.immediateRender),t<2?h.runBackwards=1:h.startAt=e[c-1]}return new hn(e[0],h,e[c+1])},ue=function(t,e){return t||0===t?e(t):e},le=function(t,e,n){return n<t?t:n>e?e:n},ce=function(t,e){return B(t)&&(e=nt.exec(t))?e[1]:""},he=[].slice,de=function(t,e){return t&&V(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&V(t[0]))&&!t.nodeType&&t!==f},fe=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return B(t)&&!e||de(t,1)?(r=n).push.apply(r,pe(t)):n.push(t)}))||n},pe=function(t,e,n){return h&&!e&&h.selector?h.selector(t):!B(t)||n||!m&&Be()?K(t)?fe(t,n):de(t)?he.call(t,0):t?[t]:[]:he.call((e||v).querySelectorAll(t),0)},me=function(t){return t=pe(t)[0]||ut("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return pe(e,n.querySelectorAll?n:n===t?ut("Invalid scope")||v.createElement("div"):t)}},ge=function(a){return a.sort((function(){return.5-Math.random()}))},ve=function(t){if(F(t))return t;var e=V(t)?t:{each:t},n=Ye(e.ease),r=e.from||0,base=parseFloat(e.base)||0,o={},l=r>0&&r<1,c=isNaN(r)||l,h=e.axis,d=r,f=r;return B(r)?d=f={center:.5,edges:.5,end:1}[r]||0:!l&&c&&(d=r[0],f=r[1]),function(i,t,a){var l,m,v,y,_,w,T,x,S,E=(a||e).length,k=o[E];if(!k){if(!(S="auto"===e.grid?0:(e.grid||[1,I])[1])){for(T=-I;T<(T=a[S++].getBoundingClientRect().left)&&S<E;);S<E&&S--}for(k=o[E]=[],l=c?Math.min(S,E)*d-.5:r%S,m=S===I?0:c?E*f/S-.5:r/S|0,T=0,x=I,w=0;w<E;w++)v=w%S-l,y=m-(w/S|0),k[w]=_=h?Math.abs("y"===h?y:v):N(v*v+y*y),_>T&&(T=_),_<x&&(x=_);"random"===r&&ge(k),k.max=T-x,k.min=x,k.v=E=(parseFloat(e.amount)||parseFloat(e.each)*(S>E?E-1:h?"y"===h?E/S:S:Math.max(S,E/S))||0)*("edges"===r?-1:1),k.b=E<0?base-E:base,k.u=ce(e.amount||e.each)||0,n=n&&E<0?Ve(n):n}return E=(k[i]-k.min)/k.max||0,Ct(k.b+(n?n(E):E)*k.v)+k.u}},ye=function(t){var p=Math.pow(10,((t+"").split(".")[1]||"").length);return function(e){var n=Ct(Math.round(parseFloat(e)/t)*t*p);return(n-n%1)/p+(z(e)?0:ce(e))}},be=function(t,e){var n,r,o=K(t);return!o&&V(t)&&(n=o=t.radius||I,t.values?(t=pe(t.values),(r=!z(t[0]))&&(n*=n)):t=ye(t.increment)),ue(e,o?F(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var o,l,c=parseFloat(r?e.x:e),h=parseFloat(r?e.y:0),d=I,f=0,i=t.length;i--;)(o=r?(o=t[i].x-c)*o+(l=t[i].y-h)*l:Math.abs(t[i]-c))<d&&(d=o,f=i);return f=!n||d<=n?t[f]:e,r||f===e||z(e)?f:f+ce(e)}:ye(t))},_e=function(t,e,n,r){return ue(K(t)?!e:!0===n?!!(n=0):!r,(function(){return K(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(r=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(e-t+.99*n))/n)*n*r)/r}))},we=function(a,t,e){return ue(e,(function(e){return a[~~t(e)]}))},Te=function(t){for(var i,e,n,r,o=0,s="";~(i=t.indexOf("random(",o));)n=t.indexOf(")",i),r="["===t.charAt(i+7),e=t.substr(i+7,n-i-7).match(r?et:$),s+=t.substr(o,i-o)+_e(r?e:+e[0],r?0:+e[1],+e[2]||1e-5),o=n+1;return s+t.substr(o,t.length-o)},xe=function(t,e,n,r,o){var l=e-t,c=r-n;return ue(o,(function(e){return n+((e-t)/l*c||0)}))},Se=function(t,e,n){var p,r,label,o=t.labels,l=I;for(p in o)(r=o[p]-e)<0==!!n&&r&&l>(r=Math.abs(r))&&(label=p,l=r);return label},Ee=function(t,e,n){var r,o,l,c=t.vars,d=c[e],f=h,m=t._ctx;if(d)return r=c[e+"Params"],o=c.callbackScope||t,n&>.length&&It(),m&&(h=m),l=r?d.apply(o,r):d.call(o),h=f,l},ke=function(t){return qt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!c),t.progress()<1&&Ee(t,"onInterrupt"),t},Ae=[],Ce=function(t){if(t)if(t=!t.name&&t.default||t,Y()||t.headless){var e=t.name,n=F(t),r=e&&!n&&t.init?function(){this._props=[]}:t,o={init:ct,render:_n,add:rn,kill:Tn,modifier:wn,rawVars:0},l={targetTest:0,get:0,getSetter:gn,aliases:{},register:0};if(Be(),t!==r){if(yt[e])return;Mt(r,Mt(Ut(t,o),l)),Nt(r.prototype,Nt(o,Ut(t,l))),yt[r.prop=e]=r,t.targetTest&&(wt.push(r),mt[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}lt(e,r),t.register&&t.register(Un,r,En)}else Ae.push(t)},Oe=255,je={aqua:[0,Oe,Oe],lime:[0,Oe,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Oe],navy:[0,0,128],white:[Oe,Oe,Oe],olive:[128,128,0],yellow:[Oe,Oe,0],orange:[Oe,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Oe,0,0],pink:[Oe,192,203],cyan:[0,Oe,Oe],transparent:[Oe,Oe,Oe,0]},Ie=function(t,e,n){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)*Oe+.5|0},Le=function(t,e,n){var r,g,b,o,s,l,c,h,d,f,a=t?z(t)?[t>>16,t>>8&Oe,t&Oe]:0:je.black;if(!a){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),je[t])a=je[t];else if("#"===t.charAt(0)){if(t.length<6&&(r=t.charAt(1),g=t.charAt(2),b=t.charAt(3),t="#"+r+r+g+g+b+b+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(a=parseInt(t.substr(1,6),16))>>16,a>>8&Oe,a&Oe,parseInt(t.substr(7),16)/255];a=[(t=parseInt(t.substr(1),16))>>16,t>>8&Oe,t&Oe]}else if("hsl"===t.substr(0,3))if(a=f=t.match($),e){if(~t.indexOf("="))return a=t.match(Q),n&&a.length<4&&(a[3]=1),a}else o=+a[0]%360/360,s=+a[1]/100,r=2*(l=+a[2]/100)-(g=l<=.5?l*(s+1):l+s-l*s),a.length>3&&(a[3]*=1),a[0]=Ie(o+1/3,r,g),a[1]=Ie(o,r,g),a[2]=Ie(o-1/3,r,g);else a=t.match($)||je.transparent;a=a.map(Number)}return e&&!f&&(r=a[0]/Oe,g=a[1]/Oe,b=a[2]/Oe,l=((c=Math.max(r,g,b))+(h=Math.min(r,g,b)))/2,c===h?o=s=0:(d=c-h,s=l>.5?d/(2-c-h):d/(c+h),o=c===r?(g-b)/d+(g<b?6:0):c===g?(b-r)/d+2:(r-g)/d+4,o*=60),a[0]=~~(o+.5),a[1]=~~(100*s+.5),a[2]=~~(100*l+.5)),n&&a.length<4&&(a[3]=1),a},De=function(t){var e=[],n=[],i=-1;return t.split(Me).forEach((function(t){var a=t.match(J)||[];e.push.apply(e,a),n.push(i+=a.length+1)})),e.c=n,e},Pe=function(s,t,e){var n,r,o,l,c="",h=(s+c).match(Me),d=t?"hsla(":"rgba(",i=0;if(!h)return s;if(h=h.map((function(e){return(e=Le(e,t,1))&&d+(t?e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]:e.join(","))+")"})),e&&(o=De(s),(n=e.c).join(c)!==o.c.join(c)))for(l=(r=s.replace(Me,"1").split(J)).length-1;i<l;i++)c+=r[i]+(~n.indexOf(i)?h.shift()||d+"0,0,0,0)":(o.length?o:h.length?h:e).shift());if(!r)for(l=(r=s.split(Me)).length-1;i<l;i++)c+=r[i]+h[i];return c+r[l]},Me=function(){var p,s="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(p in je)s+="|"+p+"\\b";return new RegExp(s+")","gi")}(),Ne=/hsl[a]?\(/,Re=function(a){var t,e=a.join(" ");if(Me.lastIndex=0,Me.test(e))return t=Ne.test(e),a[1]=Pe(a[1],t),a[0]=Pe(a[0],t,De(a[1])),!0},Ue=function(){var t,e,n,r,o,l,c=Date.now,h=500,d=33,_=c(),w=_,x=1e3/240,S=x,E=[],k=function n(f){var m,v,time,y,T=c()-w,k=!0===f;if((T>h||T<0)&&(_+=T-d),((m=(time=(w+=T)-_)-S)>0||k)&&(y=++r.frame,o=time-1e3*r.time,r.time=time/=1e3,S+=m+(m>=x?4:x-m),v=1),k||(t=e(n)),v)for(l=0;l<E.length;l++)E[l](time,o,y,f)};return r={time:0,frame:0,tick:function(){k(!0)},deltaRatio:function(t){return o/(1e3/(t||60))},wake:function(){y&&(!m&&Y()&&(f=m=window,v=f.document||{},it.gsap=Un,(f.gsapVersions||(f.gsapVersions=[])).push(Un.version),ot(st||f.GreenSockGlobals||!f.gsap&&f||{}),Ae.forEach(Ce)),n="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&r.sleep(),e=n||function(t){return setTimeout(t,S-1e3*r.time+1|0)},T=1,k(2))},sleep:function(){(n?cancelAnimationFrame:clearTimeout)(t),T=0,e=ct},lagSmoothing:function(t,e){h=t||1/0,d=Math.min(e||33,h)},fps:function(t){x=1e3/(t||240),S=1e3*r.time+x},add:function(t,e,n){var o=e?function(e,n,l,c){t(e,n,l,c),r.remove(o)}:t;return r.remove(t),E[n?"unshift":"push"](o),Be(),o},remove:function(t,i){~(i=E.indexOf(t))&&E.splice(i,1)&&l>=i&&l--},_listeners:E}}(),Be=function(){return!T&&Ue.wake()},Fe={},ze=/^[\d.\-M][\d.\-,\s]/,qe=/["']/g,He=function(t){for(var e,n,r,o={},l=t.substr(1,t.length-3).split(":"),c=l[0],i=1,h=l.length;i<h;i++)n=l[i],e=i!==h-1?n.lastIndexOf(","):n.length,r=n.substr(0,e),o[c]=isNaN(r)?r.replace(qe,"").trim():+r,c=n.substr(e+1).trim();return o},Ve=function(t){return function(p){return 1-t(1-p)}},We=function t(e,n){for(var r,o=e._first;o;)o instanceof Ze?t(o,n):!o.vars.yoyoEase||o._yoyo&&o._repeat||o._yoyo===n||(o.timeline?t(o.timeline,n):(r=o._ease,o._ease=o._yEase,o._yEase=r,o._yoyo=n)),o=o._next},Ye=function(t,e){return t&&(F(t)?t:Fe[t]||function(t){var e,n,r,o,l=(t+"").split("("),c=Fe[l[0]];return c&&l.length>1&&c.config?c.config.apply(null,~t.indexOf("{")?[He(l[1])]:(e=t,n=e.indexOf("(")+1,r=e.indexOf(")"),o=e.indexOf("(",n),e.substring(n,~o&&o<r?e.indexOf(")",r+1):r)).split(",").map(Dt)):Fe._CE&&ze.test(t)?Fe._CE("",t):c}(t))||e},Ge=function(t,e,n,r){void 0===n&&(n=function(p){return 1-e(1-p)}),void 0===r&&(r=function(p){return p<.5?e(2*p)/2:1-e(2*(1-p))/2});var o,l={easeIn:e,easeOut:n,easeInOut:r};return kt(t,(function(t){for(var p in Fe[t]=it[t]=l,Fe[o=t.toLowerCase()]=n,l)Fe[o+("easeIn"===p?".in":"easeOut"===p?".out":".inOut")]=Fe[t+"."+p]=l[p]})),l},Xe=function(t){return function(p){return p<.5?(1-t(1-2*p))/2:.5+t(2*(p-.5))/2}},Ke=function t(e,n,r){var o=n>=1?n:1,l=(r||(e?.3:.45))/(n<1?n:1),c=l/D*(Math.asin(1/o)||0),h=function(p){return 1===p?1:o*Math.pow(2,-10*p)*U((p-c)*l)+1},d="out"===e?h:"in"===e?function(p){return 1-h(1-p)}:Xe(h);return l=D/l,d.config=function(n,r){return t(e,n,r)},d},$e=function t(e,n){void 0===n&&(n=1.70158);var r=function(p){return p?--p*p*((n+1)*p+n)+1:0},o="out"===e?r:"in"===e?function(p){return 1-r(1-p)}:Xe(r);return o.config=function(n){return t(e,n)},o};kt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,i){var e=i<5?i+1:i;Ge(t+",Power"+(e-1),i?function(p){return Math.pow(p,e)}:function(p){return p},(function(p){return 1-Math.pow(1-p,e)}),(function(p){return p<.5?Math.pow(2*p,e)/2:1-Math.pow(2*(1-p),e)/2}))})),Fe.Linear.easeNone=Fe.none=Fe.Linear.easeIn,Ge("Elastic",Ke("in"),Ke("out"),Ke()),x=7.5625,k=2*(E=1/(S=2.75)),A=2.5*E,Ge("Bounce",(function(p){return 1-C(1-p)}),C=function(p){return p<E?x*p*p:p<k?x*Math.pow(p-1.5/S,2)+.75:p<A?x*(p-=2.25/S)*p+.9375:x*Math.pow(p-2.625/S,2)+.984375}),Ge("Expo",(function(p){return p?Math.pow(2,10*(p-1)):0})),Ge("Circ",(function(p){return-(N(1-p*p)-1)})),Ge("Sine",(function(p){return 1===p?1:1-R(p*P)})),Ge("Back",$e("in"),$e("out"),$e()),Fe.SteppedEase=Fe.steps=it.SteppedEase={config:function(t,e){void 0===t&&(t=1);var n=1/t,r=t+(e?0:1),o=e?1:0;return function(p){return((r*le(0,.99999999,p)|0)+o)*n}}},j.ease=Fe["quad.out"],kt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return Tt+=t+","+t+"Params,"}));var Qe=function(t,e){this.id=M++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Et,this.set=e?e.getSetter:gn},Je=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,re(this,+t.duration,1,1),this.data=t.data,h&&(this._ctx=h,h.data.push(this)),T||Ue.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,re(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Be(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for($t(this,t),!n._dp||n.parent||Qt(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&Jt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===L||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Lt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Yt(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Yt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?Gt(this._tTime,n)+1:1},e.timeScale=function(t,e){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var n=this.parent&&this._ts?Xt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(le(-Math.abs(this._delay),this._tDur,n),!1!==e),Kt(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Be(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==L&&(this._tTime-=L)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Jt(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(W(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Xt(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=pt);var e=c;return c=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),c=e,this},e.globalTime=function(t){for(var e=this,time=arguments.length?t:e.rawTime();e;)time=e._start+time/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):time},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,ie(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var time=this._time;return this._rDelay=t,ie(this),time?this.time(time):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(oe(this,t),W(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,W(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,n=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=n&&t<this.endTime(!0)-L))},e.eventCallback=function(t,e,n){var r=this.vars;return arguments.length>1?(e?(r[t]=e,n&&(r[t+"Params"]=n),"onUpdate"===t&&(this._onUpdate=e)):delete r[t],this):r[t]},e.then=function(t){var e=this;return new Promise((function(n){var r=F(t)?t:Pt,o=function(){var t=e.then;e.then=null,F(r)&&(r=r(e))&&(r.then||r===e)&&(e.then=t),n(r),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?o():e._prom=o}))},e.kill=function(){ke(this)},t}();Mt(Je.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Ze=function(t){function e(e,n){var o;return void 0===e&&(e={}),(o=t.call(this,e)||this).labels={},o.smoothChildTiming=!!e.smoothChildTiming,o.autoRemoveChildren=!!e.autoRemoveChildren,o._sort=W(e.sortChildren),d&&Jt(e.parent||d,r(o),n),e.reversed&&o.reverse(),e.paused&&o.paused(!0),e.scrollTrigger&&Zt(r(o),e.scrollTrigger),o}o(e,t);var n=e.prototype;return n.to=function(t,e,n){return ae(0,arguments,this),this},n.from=function(t,e,n){return ae(1,arguments,this),this},n.fromTo=function(t,e,n,r){return ae(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,Bt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new hn(t,e,oe(this,n),1),this},n.call=function(t,e,n){return Jt(this,hn.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,r,o,l,c){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=l,n.onCompleteParams=c,n.parent=this,new hn(t,n,oe(this,o)),this},n.staggerFrom=function(t,e,n,r,o,l,c){return n.runBackwards=1,Bt(n).immediateRender=W(n.immediateRender),this.staggerTo(t,e,n,r,o,l,c)},n.staggerFromTo=function(t,e,n,r,o,l,c,h){return r.startAt=n,Bt(r).immediateRender=W(r.immediateRender),this.staggerTo(t,e,r,o,l,c,h)},n.render=function(t,e,n){var time,r,o,l,h,f,m,v,y,_,w,T,x=this._time,S=this._dirty?this.totalDuration():this._tDur,E=this._dur,k=t<=0?0:Ct(t),A=this._zTime<0!=t<0&&(this._initted||!E);if(this!==d&&k>S&&t>=0&&(k=S),k!==this._tTime||n||A){if(x!==this._time&&E&&(k+=this._time-x,t+=this._time-x),time=k,y=this._start,f=!(v=this._ts),A&&(E||(x=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(w=this._yoyo,h=E+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*h+t,e,n);if(time=Ct(k%h),k===S?(l=this._repeat,time=E):((l=~~(k/h))&&l===k/h&&(time=E,l--),time>E&&(time=E)),_=Gt(this._tTime,h),!x&&this._tTime&&_!==l&&this._tTime-_*h-this._dur<=0&&(_=l),w&&1&l&&(time=E-time,T=1),l!==_&&!this._lock){var C=w&&1&_,O=C===(w&&1&l);if(l<_&&(C=!C),x=C?0:k%E?E:k,this._lock=1,this.render(x||(T?0:Ct(l*h)),e,!E)._lock=0,this._tTime=k,!e&&this.parent&&Ee(this,"onRepeat"),this.vars.repeatRefresh&&!T&&(this.invalidate()._lock=1),x&&x!==this._time||f!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(E=this._dur,S=this._tDur,O&&(this._lock=2,x=C?E:-1e-4,this.render(x,!0),this.vars.repeatRefresh&&!T&&this.invalidate()),this._lock=0,!this._ts&&!f)return this;We(this,T)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(m=function(t,e,time){var n;if(time>e)for(n=t._first;n&&n._start<=time;){if("isPause"===n.data&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=time;){if("isPause"===n.data&&n._start<e)return n;n=n._prev}}(this,Ct(x),Ct(time)),m&&(k-=time-(time=m._start))),this._tTime=k,this._time=time,this._act=!v,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,x=0),!x&&time&&!e&&!l&&(Ee(this,"onStart"),this._tTime!==k))return this;if(time>=x&&t>=0)for(r=this._first;r;){if(o=r._next,(r._act||time>=r._start)&&r._ts&&m!==r){if(r.parent!==this)return this.render(t,e,n);if(r.render(r._ts>0?(time-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(time-r._start)*r._ts,e,n),time!==this._time||!this._ts&&!f){m=0,o&&(k+=this._zTime=-1e-8);break}}r=o}else{r=this._last;for(var j=t<0?t:time;r;){if(o=r._prev,(r._act||j<=r._end)&&r._ts&&m!==r){if(r.parent!==this)return this.render(t,e,n);if(r.render(r._ts>0?(j-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(j-r._start)*r._ts,e,n||c&&(r._initted||r._startAt)),time!==this._time||!this._ts&&!f){m=0,o&&(k+=this._zTime=j?-1e-8:L);break}}r=o}}if(m&&!e&&(this.pause(),m.render(time>=x?0:-1e-8)._zTime=time>=x?1:-1,this._ts))return this._start=y,Kt(this),this.render(t,e,n);this._onUpdate&&!e&&Ee(this,"onUpdate",!0),(k===S&&this._tTime>=this.totalDuration()||!k&&x)&&(y!==this._start&&Math.abs(v)===Math.abs(this._ts)||this._lock||((t||!E)&&(k===S&&this._ts>0||!k&&this._ts<0)&&qt(this,1),e||t<0&&!x||!k&&!x&&S||(Ee(this,k===S&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(k<S&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(t,e){var n=this;if(z(e)||(e=oe(this,e,t)),!(t instanceof Je)){if(K(t))return t.forEach((function(t){return n.add(t,e)})),this;if(B(t))return this.addLabel(t,e);if(!F(t))return this;t=hn.delayedCall(0,t)}return this!==t?Jt(this,t,e):this},n.getChildren=function(t,e,n,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===r&&(r=-I);for(var a=[],o=this._first;o;)o._start>=r&&(o instanceof hn?e&&a.push(o):(n&&a.push(o),t&&a.push.apply(a,o.getChildren(!0,e,n)))),o=o._next;return a},n.getById=function(t){for(var e=this.getChildren(1,1,1),i=e.length;i--;)if(e[i].vars.id===t)return e[i]},n.remove=function(t){return B(t)?this.removeLabel(t):F(t)?this.killTweensOf(t):(zt(this,t),t===this._recent&&(this._recent=this._last),Ht(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Ct(Ue.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,n),this._forcing=0,this):this._tTime},n.addLabel=function(label,t){return this.labels[label]=oe(this,t),this},n.removeLabel=function(label){return delete this.labels[label],this},n.addPause=function(t,e,n){var r=hn.delayedCall(0,e||ct,n);return r.data="isPause",this._hasPause=1,Jt(this,r,oe(this,t))},n.removePause=function(t){var e=this._first;for(t=oe(this,t);e;)e._start===t&&"isPause"===e.data&&qt(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)tn!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,a=[],r=pe(t),o=this._first,l=z(e);o;)o instanceof hn?jt(o._targets,r)&&(l?(!tn||o._initted&&o._ts)&&o.globalTime(0)<=e&&o.globalTime(o.totalDuration())>e:!e||o.isActive())&&a.push(o):(n=o.getTweensOf(r,e)).length&&a.push.apply(a,n),o=o._next;return a},n.tweenTo=function(t,e){e=e||{};var n,r=this,o=oe(r,t),l=e,c=l.startAt,h=l.onStart,d=l.onStartParams,f=l.immediateRender,m=hn.to(r,Mt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:e.duration||Math.abs((o-(c&&"time"in c?c.time:r._time))/r.timeScale())||L,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((o-(c&&"time"in c?c.time:r._time))/r.timeScale());m._dur!==t&&re(m,t,0,1).render(m._time,!0,!0),n=1}h&&h.apply(m,d||[])}},e));return f?m.render(0):m},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,Mt({startAt:{time:oe(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),Se(this,oe(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),Se(this,oe(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+L)},n.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var p,r=this._first,o=this.labels;r;)r._start>=n&&(r._start+=t,r._end+=t),r=r._next;if(e)for(p in o)o[p]>=n&&(o[p]+=t);return Ht(this)},n.invalidate=function(e){var n=this._first;for(this._lock=0;n;)n.invalidate(e),n=n._next;return t.prototype.invalidate.call(this,e)},n.clear=function(t){void 0===t&&(t=!0);for(var e,n=this._first;n;)e=n._next,this.remove(n),n=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Ht(this)},n.totalDuration=function(t){var e,n,r,o=0,l=this,c=l._last,h=I;if(arguments.length)return l.timeScale((l._repeat<0?l.duration():l.totalDuration())/(l.reversed()?-t:t));if(l._dirty){for(r=l.parent;c;)e=c._prev,c._dirty&&c.totalDuration(),(n=c._start)>h&&l._sort&&c._ts&&!l._lock?(l._lock=1,Jt(l,c,n-c._delay,1)._lock=0):h=n,n<0&&c._ts&&(o-=n,(!r&&!l._dp||r&&r.smoothChildTiming)&&(l._start+=n/l._ts,l._time-=n,l._tTime-=n),l.shiftChildren(-n,!1,-Infinity),h=0),c._end>o&&c._ts&&(o=c._end),c=e;re(l,l===d&&l._time>o?l._time:o,1,1),l._dirty=0}return l._tDur},e.updateRoot=function(time){if(d._ts&&(Lt(d,Xt(time,d)),_=Ue.frame),Ue.frame>=_t){_t+=O.autoSleep||120;var t=d._first;if((!t||!t._ts)&&O.autoSleep&&Ue._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||Ue.sleep()}}},e}(Je);Mt(Ze.prototype,{_lock:0,_hasPause:0,_forcing:0});var tn,en,nn=function(t,e,n,r,o,l,c){var h,d,f,m,v,y,_,a,w=new En(this._pt,t,e,0,1,bn,null,o),T=0,x=0;for(w.b=n,w.e=r,n+="",(_=~(r+="").indexOf("random("))&&(r=Te(r)),l&&(l(a=[n,r],t,e),n=a[0],r=a[1]),d=n.match(Z)||[];h=Z.exec(r);)m=h[0],v=r.substring(T,h.index),f?f=(f+1)%5:"rgba("===v.substr(-5)&&(f=1),m!==d[x++]&&(y=parseFloat(d[x-1])||0,w._pt={_next:w._pt,p:v||1===x?v:",",s:y,c:"="===m.charAt(1)?Ot(y,m)-y:parseFloat(m)-y,m:f&&f<4?Math.round:0},T=Z.lastIndex);return w.c=T<r.length?r.substring(T,r.length):"",w.fp=c,(tt.test(r)||_)&&(w.e=0),this._pt=w,w},rn=function(t,e,n,r,o,l,c,h,d,f){F(r)&&(r=r(o||0,t,l));var m,v=t[e],y="get"!==n?n:F(v)?d?t[e.indexOf("set")||!F(t["get"+e.substr(3)])?e:"get"+e.substr(3)](d):t[e]():v,_=F(v)?d?pn:fn:dn;if(B(r)&&(~r.indexOf("random(")&&(r=Te(r)),"="===r.charAt(1)&&((m=Ot(y,r)+(ce(y)||0))||0===m)&&(r=m)),!f||y!==r||en)return isNaN(y*r)||""===r?(!v&&!(e in t)&&at(e,r),nn.call(this,t,e,y,r,_,h||O.stringFilter,d)):(m=new En(this._pt,t,e,+y||0,r-(y||0),"boolean"==typeof v?yn:vn,0,_),d&&(m.fp=d),c&&m.modifier(c,this,t),this._pt=m)},sn=function(t,e,n,r,o,l){var c,h,d,i;if(yt[t]&&!1!==(c=new yt[t]).init(o,c.rawVars?e[t]:function(t,e,n,r,o){if(F(t)&&(t=un(t,o,e,n,r)),!V(t)||t.style&&t.nodeType||K(t)||X(t))return B(t)?un(t,o,e,n,r):t;var p,l={};for(p in t)l[p]=un(t[p],o,e,n,r);return l}(e[t],r,o,l,n),n,r,l)&&(n._pt=h=new En(n._pt,o,t,0,1,c.render,c,0,c.priority),n!==w))for(d=n._ptLookup[n._targets.indexOf(o)],i=c._props.length;i--;)d[c._props[i]]=h;return c},on=function t(e,time,n){var r,i,p,o,h,f,m,v,y,_,w,T,x,S=e.vars,E=S.ease,k=S.startAt,A=S.immediateRender,C=S.lazy,O=S.onUpdate,D=S.runBackwards,P=S.yoyoEase,M=S.keyframes,N=S.autoRevert,R=e._dur,U=e._startAt,B=e._targets,F=e.parent,z=F&&"nested"===F.data?F.vars.targets:B,H="auto"===e._overwrite&&!l,V=e.timeline;if(V&&(!M||!E)&&(E="none"),e._ease=Ye(E,j.ease),e._yEase=P?Ve(Ye(!0===P?E:P,j.ease)):0,P&&e._yoyo&&!e._repeat&&(P=e._yEase,e._yEase=e._ease,e._ease=P),e._from=!V&&!!S.runBackwards,!V||M&&!S.stagger){if(T=(v=B[0]?St(B[0]).harness:0)&&S[v.prop],r=Ut(S,mt),U&&(U._zTime<0&&U.progress(1),time<0&&D&&A&&!N?U.render(-1,!0):U.revert(D&&R?ft:ht),U._lazy=0),k){if(qt(e._startAt=hn.set(B,Mt({data:"isStart",overwrite:!1,parent:F,immediateRender:!0,lazy:!U&&W(C),startAt:null,delay:0,onUpdate:O&&function(){return Ee(e,"onUpdate")},stagger:0},k))),e._startAt._dp=0,e._startAt._sat=e,time<0&&(c||!A&&!N)&&e._startAt.revert(ft),A&&R&&time<=0&&n<=0)return void(time&&(e._zTime=time))}else if(D&&R&&!U)if(time&&(A=!1),p=Mt({overwrite:!1,data:"isFromStart",lazy:A&&!U&&W(C),immediateRender:A,stagger:0,parent:F},r),T&&(p[v.prop]=T),qt(e._startAt=hn.set(B,p)),e._startAt._dp=0,e._startAt._sat=e,time<0&&(c?e._startAt.revert(ft):e._startAt.render(-1,!0)),e._zTime=time,A){if(!time)return}else t(e._startAt,L,L);for(e._pt=e._ptCache=0,C=R&&W(C)||C&&!R,i=0;i<B.length;i++){if(m=(h=B[i])._gsap||xt(B)[i]._gsap,e._ptLookup[i]=_={},vt[m.id]&>.length&&It(),w=z===B?i:z.indexOf(h),v&&!1!==(y=new v).init(h,T||r,e,w,z)&&(e._pt=o=new En(e._pt,h,y.name,0,1,y.render,y,0,y.priority),y._props.forEach((function(t){_[t]=o})),y.priority&&(f=1)),!v||T)for(p in r)yt[p]&&(y=sn(p,r,e,w,h,z))?y.priority&&(f=1):_[p]=o=rn.call(e,h,p,"get",r[p],w,z,0,S.stringFilter);e._op&&e._op[i]&&e.kill(h,e._op[i]),H&&e._pt&&(tn=e,d.killTweensOf(h,_,e.globalTime(time)),x=!e.parent,tn=0),e._pt&&C&&(vt[m.id]=1)}f&&Sn(e),e._onInit&&e._onInit(e)}e._onUpdate=O,e._initted=(!e._op||e._pt)&&!x,M&&time<=0&&V.render(I,!0,!0)},an=function(t,e,n,r){var p,a,o=e.ease||r||"power1.inOut";if(K(e))a=n[t]||(n[t]=[]),e.forEach((function(t,i){return a.push({t:i/(e.length-1)*100,v:t,e:o})}));else for(p in e)a=n[p]||(n[p]=[]),"ease"===p||a.push({t:parseFloat(t),v:e[p],e:o})},un=function(t,e,i,n,r){return F(t)?t.call(e,i,n,r):B(t)&&~t.indexOf("random(")?Te(t):t},ln=Tt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",cn={};kt(ln+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return cn[t]=1}));var hn=function(t){function e(e,n,o,c){var h;"number"==typeof n&&(o.duration=n,n=o,o=null);var f,i,m,v,p,y,_,w,T=(h=t.call(this,c?n:Bt(n))||this).vars,x=T.duration,S=T.delay,E=T.immediateRender,k=T.stagger,A=T.overwrite,C=T.keyframes,j=T.defaults,I=T.scrollTrigger,L=T.yoyoEase,D=n.parent||d,P=(K(e)||X(e)?z(e[0]):"length"in n)?[e]:pe(e);if(h._targets=P.length?xt(P):ut("GSAP target "+e+" not found. https://gsap.com",!O.nullTargetWarn)||[],h._ptLookup=[],h._overwrite=A,C||k||G(x)||G(S)){if(n=h.vars,(f=h.timeline=new Ze({data:"nested",defaults:j||{},targets:D&&"nested"===D.data?D.vars.targets:P})).kill(),f.parent=f._dp=r(h),f._start=0,k||G(x)||G(S)){if(v=P.length,_=k&&ve(k),V(k))for(p in k)~ln.indexOf(p)&&(w||(w={}),w[p]=k[p]);for(i=0;i<v;i++)(m=Ut(n,cn)).stagger=0,L&&(m.yoyoEase=L),w&&Nt(m,w),y=P[i],m.duration=+un(x,r(h),i,y,P),m.delay=(+un(S,r(h),i,y,P)||0)-h._delay,!k&&1===v&&m.delay&&(h._delay=S=m.delay,h._start+=S,m.delay=0),f.to(y,m,_?_(i,y,P):0),f._ease=Fe.none;f.duration()?x=S=0:h.timeline=0}else if(C){Bt(Mt(f.vars.defaults,{ease:"none"})),f._ease=Ye(C.ease||n.ease||"none");var a,M,N,time=0;if(K(C))C.forEach((function(t){return f.to(P,t,">")})),f.duration();else{for(p in m={},C)"ease"===p||"easeEach"===p||an(p,C[p],m,C.easeEach);for(p in m)for(a=m[p].sort((function(a,b){return a.t-b.t})),time=0,i=0;i<a.length;i++)(N={ease:(M=a[i]).e,duration:(M.t-(i?a[i-1].t:0))/100*x})[p]=M.v,f.to(P,N,time),time+=N.duration;f.duration()<x&&f.to({},{duration:x-f.duration()})}}x||h.duration(x=f.duration())}else h.timeline=0;return!0!==A||l||(tn=r(h),d.killTweensOf(P),tn=0),Jt(D,r(h),o),n.reversed&&h.reverse(),n.paused&&h.paused(!0),(E||!x&&!C&&h._start===Ct(D._time)&&W(E)&&Wt(r(h))&&"nested"!==D.data)&&(h._tTime=-1e-8,h.render(Math.max(0,-S)||0)),I&&Zt(r(h),I),h}o(e,t);var n=e.prototype;return n.render=function(t,e,n){var time,r,o,l,h,d,f,m,v,y=this._time,_=this._tDur,w=this._dur,T=t<0,x=t>_-L&&!T?_:t<L?0:t;if(w){if(x!==this._tTime||!t||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==T){if(time=x,m=this.timeline,this._repeat){if(l=w+this._rDelay,this._repeat<-1&&T)return this.totalTime(100*l+t,e,n);if(time=Ct(x%l),x===_?(o=this._repeat,time=w):((o=~~(x/l))&&o===Ct(x/l)&&(time=w,o--),time>w&&(time=w)),(d=this._yoyo&&1&o)&&(v=this._yEase,time=w-time),h=Gt(this._tTime,l),time===y&&!n&&this._initted&&o===h)return this._tTime=x,this;o!==h&&(m&&this._yEase&&We(m,d),this.vars.repeatRefresh&&!d&&!this._lock&&this._time!==l&&this._initted&&(this._lock=n=1,this.render(Ct(l*o),!0).invalidate()._lock=0))}if(!this._initted){if(te(this,T?t:time,n,e,x))return this._tTime=0,this;if(!(y===this._time||n&&this.vars.repeatRefresh&&o!==h))return this;if(w!==this._dur)return this.render(t,e,n)}if(this._tTime=x,this._time=time,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=f=(v||this._ease)(time/w),this._from&&(this.ratio=f=1-f),time&&!y&&!e&&!o&&(Ee(this,"onStart"),this._tTime!==x))return this;for(r=this._pt;r;)r.r(f,r.d),r=r._next;m&&m.render(t<0?t:m._dur*m._ease(time/this._dur),e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(T&&Vt(this,t,0,n),Ee(this,"onUpdate")),this._repeat&&o!==h&&this.vars.onRepeat&&!e&&this.parent&&Ee(this,"onRepeat"),x!==this._tDur&&x||this._tTime!==x||(T&&!this._onUpdate&&Vt(this,t,0,!0),(t||!w)&&(x===this._tDur&&this._ts>0||!x&&this._ts<0)&&qt(this,1),e||T&&!y||!(x||y||d)||(Ee(this,x===_?"onComplete":"onReverseComplete",!0),this._prom&&!(x<_&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,n,r){var o,l,h,d=t.ratio,f=e<0||!e&&(!t._start&&ee(t)&&(t._initted||!ne(t))||(t._ts<0||t._dp._ts<0)&&!ne(t))?0:1,m=t._rDelay,v=0;if(m&&t._repeat&&(v=le(0,t._tDur,e),l=Gt(v,m),t._yoyo&&1&l&&(f=1-f),l!==Gt(t._tTime,m)&&(d=1-f,t.vars.repeatRefresh&&t._initted&&t.invalidate())),f!==d||c||r||t._zTime===L||!e&&t._zTime){if(!t._initted&&te(t,e,r,n,v))return;for(h=t._zTime,t._zTime=e||(n?L:0),n||(n=e&&!h),t.ratio=f,t._from&&(f=1-f),t._time=0,t._tTime=v,o=t._pt;o;)o.r(f,o.d),o=o._next;e<0&&Vt(t,e,0,!0),t._onUpdate&&!n&&Ee(t,"onUpdate"),v&&t._repeat&&!n&&t.parent&&Ee(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===f&&(f&&qt(t,1),n||c||(Ee(t,f?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,n);return this},n.targets=function(){return this._targets},n.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},n.resetTo=function(t,e,n,r,o){T||Ue.wake(),this._ts||this.play();var time=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||on(this,time),function(t,e,n,r,o,l,time,c){var h,d,f,i,m=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!m)for(m=t._ptCache[e]=[],f=t._ptLookup,i=t._targets.length;i--;){if((h=f[i][e])&&h.d&&h.d._pt)for(h=h.d._pt;h&&h.p!==e&&h.fp!==e;)h=h._next;if(!h)return en=1,t.vars[e]="+=0",on(t,time),en=0,c?ut(e+" not eligible for reset"):1;m.push(h)}for(i=m.length;i--;)(h=(d=m[i])._pt||d).s=!r&&0!==r||o?h.s+(r||0)+l*h.c:r,h.c=n-h.s,d.e&&(d.e=At(n)+ce(d.e)),d.b&&(d.b=h.s+ce(d.b))}(this,t,e,n,r,this._ease(time/this._dur),time,o)?this.resetTo(t,e,n,r,1):($t(this,0),this.parent||Ft(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?ke(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,tn&&!0!==tn.vars.overwrite)._first||ke(this),this.parent&&n!==this.timeline.totalDuration()&&re(this,this._dur*this.timeline._tDur/n,0,1),this}var r,o,l,c,p,h,i,d=this._targets,f=t?pe(t):d,m=this._ptLookup,v=this._pt;if((!e||"all"===e)&&function(t,e){for(var i=t.length,n=i===e.length;n&&i--&&t[i]===e[i];);return i<0}(d,f))return"all"===e&&(this._pt=0),ke(this);for(r=this._op=this._op||[],"all"!==e&&(B(e)&&(p={},kt(e,(function(t){return p[t]=1})),e=p),e=function(t,e){var n,p,i,r,o=t[0]?St(t[0]).harness:0,l=o&&o.aliases;if(!l)return e;for(p in n=Nt({},e),l)if(p in n)for(i=(r=l[p].split(",")).length;i--;)n[r[i]]=n[p];return n}(d,e)),i=d.length;i--;)if(~f.indexOf(d[i]))for(p in o=m[i],"all"===e?(r[i]=e,c=o,l={}):(l=r[i]=r[i]||{},c=e),c)(h=o&&o[p])&&("kill"in h.d&&!0!==h.d.kill(p)||zt(this,h,"_pt"),delete o[p]),"all"!==l&&(l[p]=1);return this._initted&&!this._pt&&v&&ke(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return ae(1,arguments)},e.delayedCall=function(t,n,r,o){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:o})},e.fromTo=function(t,e,n){return ae(2,arguments)},e.set=function(t,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(t,n)},e.killTweensOf=function(t,e,n){return d.killTweensOf(t,e,n)},e}(Je);Mt(hn.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),kt("staggerTo,staggerFrom,staggerFromTo",(function(t){hn[t]=function(){var e=new Ze,n=he.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var dn=function(t,e,n){return t[e]=n},fn=function(t,e,n){return t[e](n)},pn=function(t,e,n,data){return t[e](data.fp,n)},mn=function(t,e,n){return t.setAttribute(e,n)},gn=function(t,e){return F(t[e])?fn:H(t[e])&&t.setAttribute?mn:dn},vn=function(t,data){return data.set(data.t,data.p,Math.round(1e6*(data.s+data.c*t))/1e6,data)},yn=function(t,data){return data.set(data.t,data.p,!!(data.s+data.c*t),data)},bn=function(t,data){var e=data._pt,s="";if(!t&&data.b)s=data.b;else if(1===t&&data.e)s=data.e;else{for(;e;)s=e.p+(e.m?e.m(e.s+e.c*t):Math.round(1e4*(e.s+e.c*t))/1e4)+s,e=e._next;s+=data.c}data.set(data.t,data.p,s,data)},_n=function(t,data){for(var e=data._pt;e;)e.r(t,e.d),e=e._next},wn=function(t,e,n,r){for(var o,l=this._pt;l;)o=l._next,l.p===r&&l.modifier(t,e,n),l=o},Tn=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?zt(this,r,"_pt"):r.dep||(e=1),r=n;return!e},xn=function(t,e,n,data){data.mSet(t,e,data.m.call(data.tween,n,data.mt),data)},Sn=function(t){for(var e,n,r,o,l=t._pt;l;){for(e=l._next,n=r;n&&n.pr>l.pr;)n=n._next;(l._prev=n?n._prev:o)?l._prev._next=l:r=l,(l._next=n)?n._prev=l:o=l,l=e}t._pt=r},En=function(){function t(t,e,n,r,o,l,data,c,h){this.t=e,this.s=r,this.c=o,this.p=n,this.r=l||vn,this.d=data||this,this.set=c||dn,this.pr=h||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,n){this.mSet=this.mSet||this.set,this.set=xn,this.m=t,this.mt=n,this.tween=e},t}();kt(Tt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return mt[t]=1})),it.TweenMax=it.TweenLite=hn,it.TimelineLite=it.TimelineMax=Ze,d=new Ze({sortChildren:!1,defaults:j,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),O.stringFilter=Re;var kn=[],An={},Cn=[],On=0,jn=0,In=function(t){return(An[t]||Cn).map((function(t){return t()}))},Ln=function(){var time=Date.now(),t=[];time-On>2&&(In("matchMediaInit"),kn.forEach((function(e){var n,p,r,o,l=e.queries,c=e.conditions;for(p in l)(n=f.matchMedia(l[p]).matches)&&(r=1),n!==c[p]&&(c[p]=n,o=1);o&&(e.revert(),r&&t.push(e))})),In("matchMediaRevert"),t.forEach((function(t){return t.onMatch(t,(function(e){return t.add(null,e)}))})),On=time,In("matchMedia"))},Dn=function(){function t(t,e){this.selector=e&&me(e),this.data=[],this._r=[],this.isReverted=!1,this.id=jn++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,n){F(t)&&(n=e,e=t,t=F);var r=this,o=function(){var t,o=h,l=r.selector;return o&&o!==r&&o.data.push(r),n&&(r.selector=me(n)),h=r,t=e.apply(r,arguments),F(t)&&r._r.push(t),h=o,r.selector=l,r.isReverted=!1,t};return r.last=o,t===F?o(r,(function(t){return r.add(null,t)})):t?r[t]=o:o},e.ignore=function(t){var e=h;h=null,t(this),h=e},e.getTweens=function(){var a=[];return this.data.forEach((function(e){return e instanceof t?a.push.apply(a,e.getTweens()):e instanceof hn&&!(e.parent&&"nested"===e.parent.data)&&a.push(e)})),a},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var n=this;if(t?function(){for(var e,r=n.getTweens(),i=n.data.length;i--;)"isFlip"===(e=n.data[i]).data&&(e.revert(),e.getChildren(!0,!0,!1).forEach((function(t){return r.splice(r.indexOf(t),1)})));for(r.map((function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t:t}})).sort((function(a,b){return b.g-a.g||-1/0})).forEach((function(e){return e.t.revert(t)})),i=n.data.length;i--;)(e=n.data[i])instanceof Ze?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof hn)&&e.revert&&e.revert(t);n._r.forEach((function(e){return e(t,n)})),n.isReverted=!0}():this.data.forEach((function(t){return t.kill&&t.kill()})),this.clear(),e)for(var i=kn.length;i--;)kn[i].id===this.id&&kn.splice(i,1)},e.revert=function(t){this.kill(t||{})},t}(),Pn=function(){function t(t){this.contexts=[],this.scope=t,h&&h.data.push(this)}var e=t.prototype;return e.add=function(t,e,n){V(t)||(t={matches:t});var r,p,o,l=new Dn(0,n||this.scope),c=l.conditions={};for(p in h&&!l.selector&&(l.selector=h.selector),this.contexts.push(l),e=l.add("onMatch",e),l.queries=t,t)"all"===p?o=1:(r=f.matchMedia(t[p]))&&(kn.indexOf(l)<0&&kn.push(l),(c[p]=r.matches)&&(o=1),r.addListener?r.addListener(Ln):r.addEventListener("change",Ln));return o&&e(l,(function(t){return l.add(null,t)})),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),Mn={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach((function(t){return Ce(t)}))},timeline:function(t){return new Ze(t)},getTweensOf:function(t,e){return d.getTweensOf(t,e)},getProperty:function(t,e,n,r){B(t)&&(t=pe(t)[0]);var o=St(t||{}).get,l=n?Pt:Dt;return"native"===n&&(n=""),t?e?l((yt[e]&&yt[e].get||o)(t,e,n,r)):function(e,n,r){return l((yt[e]&&yt[e].get||o)(t,e,n,r))}:t},quickSetter:function(t,e,n){if((t=pe(t)).length>1){var r=t.map((function(t){return Un.quickSetter(t,e,n)})),o=r.length;return function(t){for(var i=o;i--;)r[i](t)}}t=t[0]||{};var l=yt[e],c=St(t),p=c.harness&&(c.harness.aliases||{})[e]||e,h=l?function(e){var p=new l;w._pt=0,p.init(t,n?e+n:e,w,0,[t]),p.render(1,p),w._pt&&_n(1,w)}:c.set(t,p);return l?h:function(e){return h(t,p,n?e+n:e,c,1)}},quickTo:function(t,e,n){var r,o=Un.to(t,Nt(((r={})[e]="+=0.1",r.paused=!0,r),n||{})),l=function(t,n,r){return o.resetTo(e,t,n,r)};return l.tween=o,l},isTweening:function(t){return d.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ye(t.ease,j.ease)),Rt(j,t||{})},config:function(t){return Rt(O,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,r=t.plugins,o=t.defaults,l=t.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!yt[t]&&!it[t]&&ut(e+" effect requires "+t+" plugin.")})),bt[e]=function(t,e,r){return n(pe(t),Mt(e||{},o),r)},l&&(Ze.prototype[e]=function(t,n,r){return this.add(bt[e](t,V(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){Fe[t]=Ye(e)},parseEase:function(t,e){return arguments.length?Ye(t,e):Fe},getById:function(t){return d.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,o=new Ze(t);for(o.smoothChildTiming=W(t.smoothChildTiming),d.remove(o),o._dp=0,o._time=o._tTime=d._time,n=d._first;n;)r=n._next,!e&&!n._dur&&n instanceof hn&&n.vars.onComplete===n._targets[0]||Jt(o,n,n._start-n._delay),n=r;return Jt(d,o,0),o},context:function(t,e){return t?new Dn(t,e):h},matchMedia:function(t){return new Pn(t)},matchMediaRefresh:function(){return kn.forEach((function(t){var e,p,n=t.conditions;for(p in n)n[p]&&(n[p]=!1,e=1);e&&t.revert()}))||Ln()},addEventListener:function(t,e){var a=An[t]||(An[t]=[]);~a.indexOf(e)||a.push(e)},removeEventListener:function(t,e){var a=An[t],i=a&&a.indexOf(e);i>=0&&a.splice(i,1)},utils:{wrap:function t(e,n,r){var o=n-e;return K(e)?we(e,t(0,e.length),n):ue(r,(function(t){return(o+(t-e)%o)%o+e}))},wrapYoyo:function t(e,n,r){var o=n-e,l=2*o;return K(e)?we(e,t(0,e.length-1),n):ue(r,(function(t){return e+((t=(l+(t-e)%l)%l||0)>o?l-t:t)}))},distribute:ve,random:_e,snap:be,normalize:function(t,e,n){return xe(t,e,0,1,n)},getUnit:ce,clamp:function(t,e,n){return ue(n,(function(n){return le(t,e,n)}))},splitColor:Le,toArray:pe,selector:me,mapRange:xe,pipe:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(n){return t(parseFloat(n))+(e||ce(n))}},interpolate:function t(e,n,progress,r){var o=isNaN(e+n)?0:function(p){return(1-p)*e+p*n};if(!o){var p,i,l,c,h,d=B(e),f={};if(!0===progress&&(r=1)&&(progress=null),d)e={p:e},n={p:n};else if(K(e)&&!K(n)){for(l=[],c=e.length,h=c-2,i=1;i<c;i++)l.push(t(e[i-1],e[i]));c--,o=function(p){p*=c;var i=Math.min(h,~~p);return l[i](p-i)},progress=n}else r||(e=Nt(K(e)?[]:{},e));if(!l){for(p in n)rn.call(f,e,p,"get",n[p]);o=function(p){return _n(p,f)||(d?e.p:e)}}}return ue(progress,o)},shuffle:ge},install:ot,effects:bt,ticker:Ue,updateRoot:Ze.updateRoot,plugins:yt,globalTimeline:d,core:{PropTween:En,globals:lt,Tween:hn,Timeline:Ze,Animation:Je,getCache:St,_removeLinkedListItem:zt,reverting:function(){return c},context:function(t){return t&&h&&(h.data.push(t),t._ctx=h),h},suppressOverwrites:function(t){return l=t}}};kt("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Mn[t]=hn[t]})),Ue.add(Ze.updateRoot),w=Mn.to({},{duration:0});var Nn=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},Rn=function(t,e){return{name:t,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,p;if(B(n)&&(r={},kt(n,(function(t){return r[t]=1})),n=r),e){for(p in r={},n)r[p]=e(n[p]);n=r}!function(t,e){var p,i,n,r=t._targets;for(p in e)for(i=r.length;i--;)(n=t._ptLookup[i][p])&&(n=n.d)&&(n._pt&&(n=Nn(n,p)),n&&n.modifier&&n.modifier(e[p],t,r[i],p))}(t,n)}}}},Un=Mn.registerPlugin({name:"attr",init:function(t,e,n,r,o){var p,l,c;for(p in this.tween=n,e)c=t.getAttribute(p)||"",(l=this.add(t,"setAttribute",(c||0)+"",e[p],r,o,0,0,p)).op=p,l.b=c,this._props.push(p)},render:function(t,data){for(var e=data._pt;e;)c?e.set(e.t,e.p,e.b,e):e.r(t,e.d),e=e._next}},{name:"endArray",init:function(t,e){for(var i=e.length;i--;)this.add(t,i,t[i]||0,e[i],0,0,0,0,0,1)}},Rn("roundProps",ye),Rn("modifiers"),Rn("snap",be))||Mn;hn.version=Ze.version=Un.version="3.12.5",y=1,Y()&&Be();Fe.Power0,Fe.Power1,Fe.Power2,Fe.Power3,Fe.Power4,Fe.Linear,Fe.Quad,Fe.Cubic,Fe.Quart,Fe.Quint,Fe.Strong,Fe.Elastic,Fe.Back,Fe.SteppedEase,Fe.Bounce,Fe.Sine,Fe.Expo,Fe.Circ;var Bn,Fn,zn,qn,Hn,Vn,Wn,Yn,Gn={},Xn=180/Math.PI,Kn=Math.PI/180,$n=Math.atan2,Qn=/([A-Z])/g,Jn=/(left|right|width|margin|padding|x)/i,Zn=/[\s,\(]\S/,er={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},nr=function(t,data){return data.set(data.t,data.p,Math.round(1e4*(data.s+data.c*t))/1e4+data.u,data)},rr=function(t,data){return data.set(data.t,data.p,1===t?data.e:Math.round(1e4*(data.s+data.c*t))/1e4+data.u,data)},ir=function(t,data){return data.set(data.t,data.p,t?Math.round(1e4*(data.s+data.c*t))/1e4+data.u:data.b,data)},sr=function(t,data){var e=data.s+data.c*t;data.set(data.t,data.p,~~(e+(e<0?-.5:.5))+data.u,data)},or=function(t,data){return data.set(data.t,data.p,t?data.e:data.b,data)},ar=function(t,data){return data.set(data.t,data.p,1!==t?data.b:data.e,data)},ur=function(t,e,n){return t.style[e]=n},lr=function(t,e,n){return t.style.setProperty(e,n)},cr=function(t,e,n){return t._gsap[e]=n},dr=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},fr=function(t,e,n,data,r){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(r,o)},pr=function(t,e,n,data,r){var o=t._gsap;o[e]=n,o.renderTransform(r,o)},mr="transform",gr=mr+"Origin",vr=function t(e,n){var r=this,o=this.target,style=o.style,l=o._gsap;if(e in Gn&&style){if(this.tfm=this.tfm||{},"transform"===e)return er.transform.split(",").forEach((function(p){return t.call(r,p,n)}));if(~(e=er[e]||e).indexOf(",")?e.split(",").forEach((function(a){return r.tfm[a]=Nr(o,a)})):this.tfm[e]=l.x?l[e]:Nr(o,e),e===gr&&(this.tfm.zOrigin=l.zOrigin),this.props.indexOf(mr)>=0)return;l.svg&&(this.svgo=o.getAttribute("data-svg-origin"),this.props.push(gr,n,"")),e=mr}(style||n)&&this.props.push(e,n,style[e])},yr=function(style){style.translate&&(style.removeProperty("translate"),style.removeProperty("scale"),style.removeProperty("rotate"))},_r=function(){var i,p,t=this.props,e=this.target,style=e.style,n=e._gsap;for(i=0;i<t.length;i+=3)t[i+1]?e[t[i]]=t[i+2]:t[i+2]?style[t[i]]=t[i+2]:style.removeProperty("--"===t[i].substr(0,2)?t[i]:t[i].replace(Qn,"-$1").toLowerCase());if(this.tfm){for(p in this.tfm)n[p]=this.tfm[p];n.svg&&(n.renderTransform(),e.setAttribute("data-svg-origin",this.svgo||"")),(i=Wn())&&i.isStart||style[mr]||(yr(style),n.zOrigin&&style[gr]&&(style[gr]+=" "+n.zOrigin+"px",n.zOrigin=0,n.renderTransform()),n.uncache=1)}},wr=function(t,e){var n={target:t,props:[],revert:_r,save:vr};return t._gsap||Un.core.getCache(t),e&&e.split(",").forEach((function(p){return n.save(p)})),n},Tr=function(t,e){var n=Fn.createElementNS?Fn.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Fn.createElement(t);return n&&n.style?n:Fn.createElement(t)},xr=function t(e,n,r){var o=getComputedStyle(e);return o[n]||o.getPropertyValue(n.replace(Qn,"-$1").toLowerCase())||o.getPropertyValue(n)||!r&&t(e,Er(n)||n,1)||""},Sr="O,Moz,ms,Ms,Webkit".split(","),Er=function(t,element,e){var s=(element||Hn).style,i=5;if(t in s&&!e)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(Sr[i]+t in s););return i<0?null:(3===i?"ms":i>=0?Sr[i]:"")+t},kr=function(){"undefined"!=typeof window&&window.document&&(Bn=window,Fn=Bn.document,zn=Fn.documentElement,Hn=Tr("div")||{style:{}},Tr("div"),mr=Er(mr),gr=mr+"Origin",Hn.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Yn=!!Er("perspective"),Wn=Un.core.reverting,qn=1)},Ar=function t(e){var n,svg=Tr("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,o=this.nextSibling,l=this.style.cssText;if(zn.appendChild(svg),svg.appendChild(this),this.style.display="block",e)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(n=this._gsapBBox());return r&&(o?r.insertBefore(this,o):r.appendChild(this)),zn.removeChild(svg),this.style.cssText=l,n},Cr=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},Or=function(t){var e;try{e=t.getBBox()}catch(n){e=Ar.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Ar||(e=Ar.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+Cr(t,["x","cx","x1"])||0,y:+Cr(t,["y","cy","y1"])||0,width:0,height:0}},jr=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Or(t))},Ir=function(t,e){if(e){var n,style=t.style;e in Gn&&e!==gr&&(e=mr),style.removeProperty?("ms"!==(n=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),style.removeProperty("--"===n?e:e.replace(Qn,"-$1").toLowerCase())):style.removeAttribute(e)}},Lr=function(t,e,n,r,o,l){var c=new En(t._pt,e,n,0,1,l?ar:or);return t._pt=c,c.b=r,c.e=o,t._props.push(n),c},Dr={deg:1,rad:1,turn:1},Pr={grid:1,flex:1},Mr=function t(e,n,r,o){var l,c,h,d,f=parseFloat(r)||0,m=(r+"").trim().substr((f+"").length)||"px",style=Hn.style,v=Jn.test(n),y="svg"===e.tagName.toLowerCase(),_=(y?"client":"offset")+(v?"Width":"Height"),w=100,T="px"===o,x="%"===o;if(o===m||!f||Dr[o]||Dr[m])return f;if("px"!==m&&!T&&(f=t(e,n,r,"px")),d=e.getCTM&&jr(e),(x||"%"===m)&&(Gn[n]||~n.indexOf("adius")))return l=d?e.getBBox()[v?"width":"height"]:e[_],At(x?f/l*w:f/100*l);if(style[v?"width":"height"]=w+(T?m:o),c=~n.indexOf("adius")||"em"===o&&e.appendChild&&!y?e:e.parentNode,d&&(c=(e.ownerSVGElement||{}).parentNode),c&&c!==Fn&&c.appendChild||(c=Fn.body),(h=c._gsap)&&x&&h.width&&v&&h.time===Ue.time&&!h.uncache)return At(f/h.width*w);if(!x||"height"!==n&&"width"!==n)(x||"%"===m)&&!Pr[xr(c,"display")]&&(style.position=xr(e,"position")),c===e&&(style.position="static"),c.appendChild(Hn),l=Hn[_],c.removeChild(Hn),style.position="absolute";else{var S=e.style[n];e.style[n]=w+o,l=e[_],S?e.style[n]=S:Ir(e,n)}return v&&x&&((h=St(c)).time=Ue.time,h.width=c[_]),At(T?l*f/w:l&&f?w/l*f:0)},Nr=function(t,e,n,r){var o;return qn||kr(),e in er&&"transform"!==e&&~(e=er[e]).indexOf(",")&&(e=e.split(",")[0]),Gn[e]&&"transform"!==e?(o=Gr(t,r),o="transformOrigin"!==e?o[e]:o.svg?o.origin:Xr(xr(t,gr))+" "+o.zOrigin+"px"):(!(o=t.style[e])||"auto"===o||r||~(o+"").indexOf("calc("))&&(o=Fr[e]&&Fr[e](t,e,n)||xr(t,e)||Et(t,e)||("opacity"===e?1:0)),n&&!~(o+"").trim().indexOf(" ")?Mr(t,e,o,n)+n:o},Rr=function(t,e,n,r){if(!n||"none"===n){var p=Er(e,t,1),s=p&&xr(t,p,1);s&&s!==n?(e=p,n=s):"borderColor"===e&&(n=xr(t,"borderTopColor"))}var a,o,l,c,h,d,f,m,v,y,_,w=new En(this._pt,t.style,e,0,1,bn),T=0,x=0;if(w.b=n,w.e=r,n+="","auto"===(r+="")&&(d=t.style[e],t.style[e]=r,r=xr(t,e)||r,d?t.style[e]=d:Ir(t,e)),Re(a=[n,r]),r=a[1],l=(n=a[0]).match(J)||[],(r.match(J)||[]).length){for(;o=J.exec(r);)f=o[0],v=r.substring(T,o.index),h?h=(h+1)%5:"rgba("!==v.substr(-5)&&"hsla("!==v.substr(-5)||(h=1),f!==(d=l[x++]||"")&&(c=parseFloat(d)||0,_=d.substr((c+"").length),"="===f.charAt(1)&&(f=Ot(c,f)+_),m=parseFloat(f),y=f.substr((m+"").length),T=J.lastIndex-y.length,y||(y=y||O.units[e]||_,T===r.length&&(r+=y,w.e+=y)),_!==y&&(c=Mr(t,e,d,y)||0),w._pt={_next:w._pt,p:v||1===x?v:",",s:c,c:m-c,m:h&&h<4||"zIndex"===e?Math.round:0});w.c=T<r.length?r.substring(T,r.length):""}else w.r="display"===e&&"none"===r?ar:or;return tt.test(r)&&(w.e=0),this._pt=w,w},Ur={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Br=function(t,data){if(data.tween&&data.tween._time===data.tween._dur){var e,n,i,r=data.t,style=r.style,o=data.u,l=r._gsap;if("all"===o||!0===o)style.cssText="",n=1;else for(i=(o=o.split(",")).length;--i>-1;)e=o[i],Gn[e]&&(n=1,e="transformOrigin"===e?gr:mr),Ir(r,e);n&&(Ir(r,mr),l&&(l.svg&&r.removeAttribute("transform"),Gr(r,1),l.uncache=1,yr(style)))}},Fr={clearProps:function(t,e,n,r,o){if("isFromStart"!==o.data){var l=t._pt=new En(t._pt,e,n,0,0,Br);return l.u=r,l.pr=-10,l.tween=o,t._props.push(n),1}}},zr=[1,0,0,1,0,0],qr={},Hr=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Vr=function(t){var e=xr(t,mr);return Hr(e)?zr:e.substr(7).match(Q).map(At)},Wr=function(t,e){var n,r,o,l,c=t._gsap||St(t),style=t.style,h=Vr(t);return c.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(h=[(o=t.transform.baseVal.consolidate().matrix).a,o.b,o.c,o.d,o.e,o.f]).join(",")?zr:h:(h!==zr||t.offsetParent||t===zn||c.svg||(o=style.display,style.display="block",(n=t.parentNode)&&t.offsetParent||(l=1,r=t.nextElementSibling,zn.appendChild(t)),h=Vr(t),o?style.display=o:Ir(t,"display"),l&&(r?n.insertBefore(t,r):n?n.appendChild(t):zn.removeChild(t))),e&&h.length>6?[h[0],h[1],h[4],h[5],h[12],h[13]]:h)},Yr=function(t,e,n,r,o,l){var c,h,d,f=t._gsap,m=o||Wr(t,!0),v=f.xOrigin||0,y=f.yOrigin||0,_=f.xOffset||0,w=f.yOffset||0,a=m[0],b=m[1],T=m[2],x=m[3],S=m[4],E=m[5],k=e.split(" "),A=parseFloat(k[0])||0,C=parseFloat(k[1])||0;n?m!==zr&&(h=a*x-b*T)&&(d=A*(-b/h)+C*(a/h)-(a*E-b*S)/h,A=A*(x/h)+C*(-T/h)+(T*E-x*S)/h,C=d):(A=(c=Or(t)).x+(~k[0].indexOf("%")?A/100*c.width:A),C=c.y+(~(k[1]||k[0]).indexOf("%")?C/100*c.height:C)),r||!1!==r&&f.smooth?(S=A-v,E=C-y,f.xOffset=_+(S*a+E*T)-S,f.yOffset=w+(S*b+E*x)-E):f.xOffset=f.yOffset=0,f.xOrigin=A,f.yOrigin=C,f.smooth=!!r,f.origin=e,f.originIsAbsolute=!!n,t.style[gr]="0px 0px",l&&(Lr(l,f,"xOrigin",v,A),Lr(l,f,"yOrigin",y,C),Lr(l,f,"xOffset",_,f.xOffset),Lr(l,f,"yOffset",w,f.yOffset)),t.setAttribute("data-svg-origin",A+" "+C)},Gr=function(t,e){var n=t._gsap||new Qe(t);if("x"in n&&!e&&!n.uncache)return n;var r,o,l,c,h,d,f,m,v,y,_,w,T,x,S,E,k,a,b,A,C,j,I,L,D,P,M,N,R,U,B,F,style=t.style,z=n.scaleX<0,H="px",V="deg",W=getComputedStyle(t),Y=xr(t,gr)||"0";return r=o=l=d=f=m=v=y=_=0,c=h=1,n.svg=!(!t.getCTM||!jr(t)),W.translate&&("none"===W.translate&&"none"===W.scale&&"none"===W.rotate||(style[mr]=("none"!==W.translate?"translate3d("+(W.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==W.rotate?"rotate("+W.rotate+") ":"")+("none"!==W.scale?"scale("+W.scale.split(" ").join(",")+") ":"")+("none"!==W[mr]?W[mr]:"")),style.scale=style.rotate=style.translate="none"),x=Wr(t,n.svg),n.svg&&(n.uncache?(D=t.getBBox(),Y=n.xOrigin-D.x+"px "+(n.yOrigin-D.y)+"px",L=""):L=!e&&t.getAttribute("data-svg-origin"),Yr(t,L||Y,!!L||n.originIsAbsolute,!1!==n.smooth,x)),w=n.xOrigin||0,T=n.yOrigin||0,x!==zr&&(a=x[0],b=x[1],A=x[2],C=x[3],r=j=x[4],o=I=x[5],6===x.length?(c=Math.sqrt(a*a+b*b),h=Math.sqrt(C*C+A*A),d=a||b?$n(b,a)*Xn:0,(v=A||C?$n(A,C)*Xn+d:0)&&(h*=Math.abs(Math.cos(v*Kn))),n.svg&&(r-=w-(w*a+T*A),o-=T-(w*b+T*C))):(F=x[6],U=x[7],M=x[8],N=x[9],R=x[10],B=x[11],r=x[12],o=x[13],l=x[14],f=(S=$n(F,R))*Xn,S&&(L=j*(E=Math.cos(-S))+M*(k=Math.sin(-S)),D=I*E+N*k,P=F*E+R*k,M=j*-k+M*E,N=I*-k+N*E,R=F*-k+R*E,B=U*-k+B*E,j=L,I=D,F=P),m=(S=$n(-A,R))*Xn,S&&(E=Math.cos(-S),B=C*(k=Math.sin(-S))+B*E,a=L=a*E-M*k,b=D=b*E-N*k,A=P=A*E-R*k),d=(S=$n(b,a))*Xn,S&&(L=a*(E=Math.cos(S))+b*(k=Math.sin(S)),D=j*E+I*k,b=b*E-a*k,I=I*E-j*k,a=L,j=D),f&&Math.abs(f)+Math.abs(d)>359.9&&(f=d=0,m=180-m),c=At(Math.sqrt(a*a+b*b+A*A)),h=At(Math.sqrt(I*I+F*F)),S=$n(j,I),v=Math.abs(S)>2e-4?S*Xn:0,_=B?1/(B<0?-B:B):0),n.svg&&(L=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!Hr(xr(t,mr)),L&&t.setAttribute("transform",L))),Math.abs(v)>90&&Math.abs(v)<270&&(z?(c*=-1,v+=d<=0?180:-180,d+=d<=0?180:-180):(h*=-1,v+=v<=0?180:-180)),e=e||n.uncache,n.x=r-((n.xPercent=r&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+H,n.y=o-((n.yPercent=o&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-o)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+H,n.z=l+H,n.scaleX=At(c),n.scaleY=At(h),n.rotation=At(d)+V,n.rotationX=At(f)+V,n.rotationY=At(m)+V,n.skewX=v+V,n.skewY=y+V,n.transformPerspective=_+H,(n.zOrigin=parseFloat(Y.split(" ")[2])||!e&&n.zOrigin||0)&&(style[gr]=Xr(Y)),n.xOffset=n.yOffset=0,n.force3D=O.force3D,n.renderTransform=n.svg?ei:Yn?ti:$r,n.uncache=0,n},Xr=function(t){return(t=t.split(" "))[0]+" "+t[1]},Kr=function(t,e,n){var r=ce(e);return At(parseFloat(e)+parseFloat(Mr(t,"x",n+"px",r)))+r},$r=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,ti(t,e)},Qr="0deg",Jr="0px",Zr=") ",ti=function(t,e){var n=e||this,r=n.xPercent,o=n.yPercent,l=n.x,c=n.y,h=n.z,d=n.rotation,f=n.rotationY,m=n.rotationX,v=n.skewX,y=n.skewY,_=n.scaleX,w=n.scaleY,T=n.transformPerspective,x=n.force3D,S=n.target,E=n.zOrigin,k="",A="auto"===x&&t&&1!==t||!0===x;if(E&&(m!==Qr||f!==Qr)){var C,O=parseFloat(f)*Kn,j=Math.sin(O),I=Math.cos(O);O=parseFloat(m)*Kn,C=Math.cos(O),l=Kr(S,l,j*C*-E),c=Kr(S,c,-Math.sin(O)*-E),h=Kr(S,h,I*C*-E+E)}T!==Jr&&(k+="perspective("+T+Zr),(r||o)&&(k+="translate("+r+"%, "+o+"%) "),(A||l!==Jr||c!==Jr||h!==Jr)&&(k+=h!==Jr||A?"translate3d("+l+", "+c+", "+h+") ":"translate("+l+", "+c+Zr),d!==Qr&&(k+="rotate("+d+Zr),f!==Qr&&(k+="rotateY("+f+Zr),m!==Qr&&(k+="rotateX("+m+Zr),v===Qr&&y===Qr||(k+="skew("+v+", "+y+Zr),1===_&&1===w||(k+="scale("+_+", "+w+Zr),S.style[mr]=k||"translate(0, 0)"},ei=function(t,e){var n,r,o,l,c,h=e||this,d=h.xPercent,f=h.yPercent,m=h.x,v=h.y,y=h.rotation,_=h.skewX,w=h.skewY,T=h.scaleX,x=h.scaleY,S=h.target,E=h.xOrigin,k=h.yOrigin,A=h.xOffset,C=h.yOffset,O=h.forceCSS,j=parseFloat(m),I=parseFloat(v);y=parseFloat(y),_=parseFloat(_),(w=parseFloat(w))&&(_+=w=parseFloat(w),y+=w),y||_?(y*=Kn,_*=Kn,n=Math.cos(y)*T,r=Math.sin(y)*T,o=Math.sin(y-_)*-x,l=Math.cos(y-_)*x,_&&(w*=Kn,c=Math.tan(_-w),o*=c=Math.sqrt(1+c*c),l*=c,w&&(c=Math.tan(w),n*=c=Math.sqrt(1+c*c),r*=c)),n=At(n),r=At(r),o=At(o),l=At(l)):(n=T,l=x,r=o=0),(j&&!~(m+"").indexOf("px")||I&&!~(v+"").indexOf("px"))&&(j=Mr(S,"x",m,"px"),I=Mr(S,"y",v,"px")),(E||k||A||C)&&(j=At(j+E-(E*n+k*o)+A),I=At(I+k-(E*r+k*l)+C)),(d||f)&&(c=S.getBBox(),j=At(j+d/100*c.width),I=At(I+f/100*c.height)),c="matrix("+n+","+r+","+o+","+l+","+j+","+I+")",S.setAttribute("transform",c),O&&(S.style[mr]=c)},ni=function(t,e,n,r,o){var l,c,h=360,d=B(o),f=parseFloat(o)*(d&&~o.indexOf("rad")?Xn:1)-r,m=r+f+"deg";return d&&("short"===(l=o.split("_")[1])&&(f%=h)!==f%180&&(f+=f<0?h:-360),"cw"===l&&f<0?f=(f+36e9)%h-~~(f/h)*h:"ccw"===l&&f>0&&(f=(f-36e9)%h-~~(f/h)*h)),t._pt=c=new En(t._pt,e,n,r,f,rr),c.e=m,c.u="deg",t._props.push(n),c},ri=function(t,source){for(var p in source)t[p]=source[p];return t},ii=function(t,e,n){var r,p,o,l,c,h,d,f=ri({},n._gsap),style=n.style;for(p in f.svg?(o=n.getAttribute("transform"),n.setAttribute("transform",""),style[mr]=e,r=Gr(n,1),Ir(n,mr),n.setAttribute("transform",o)):(o=getComputedStyle(n)[mr],style[mr]=e,r=Gr(n,1),style[mr]=o),Gn)(o=f[p])!==(l=r[p])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(p)<0&&(c=ce(o)!==(d=ce(l))?Mr(n,p,o,d):parseFloat(o),h=parseFloat(l),t._pt=new En(t._pt,r,p,c,h-c,nr),t._pt.u=d||0,t._props.push(p));ri(r,f)};kt("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",b="Bottom",o="Left",l=(e<3?[n,r,b,o]:[n+o,n+r,b+r,b+o]).map((function(n){return e<2?t+n:"border"+n+t}));Fr[e>1?"border"+t:t]=function(t,e,n,r,o){var a,c;if(arguments.length<4)return a=l.map((function(e){return Nr(t,e,n)})),5===(c=a.join(" ")).split(a[0]).length?a[0]:c;a=(r+"").split(" "),c={},l.forEach((function(t,i){return c[t]=a[i]=a[i]||a[(i-1)/2|0]})),t.init(e,c,o)}}));var si,oi,ai,ui={name:"css",register:kr,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,o){var l,c,h,d,f,m,p,v,y,_,w,T,x,S,E,k,A,C,j,I,L=this._props,style=t.style,D=n.vars.startAt;for(p in qn||kr(),this.styles=this.styles||wr(t),k=this.styles.props,this.tween=n,e)if("autoRound"!==p&&(c=e[p],!yt[p]||!sn(p,e,n,r,t,o)))if(f=typeof c,m=Fr[p],"function"===f&&(f=typeof(c=c.call(n,r,t,o))),"string"===f&&~c.indexOf("random(")&&(c=Te(c)),m)m(this,t,p,c,n)&&(E=1);else if("--"===p.substr(0,2))l=(getComputedStyle(t).getPropertyValue(p)+"").trim(),c+="",Me.lastIndex=0,Me.test(l)||(v=ce(l),y=ce(c)),y?v!==y&&(l=Mr(t,p,l,y)+y):v&&(c+=v),this.add(style,"setProperty",l,c,r,o,0,0,p),L.push(p),k.push(p,0,style[p]);else if("undefined"!==f){if(D&&p in D?(l="function"==typeof D[p]?D[p].call(n,r,t,o):D[p],B(l)&&~l.indexOf("random(")&&(l=Te(l)),ce(l+"")||"auto"===l||(l+=O.units[p]||ce(Nr(t,p))||""),"="===(l+"").charAt(1)&&(l=Nr(t,p))):l=Nr(t,p),d=parseFloat(l),(_="string"===f&&"="===c.charAt(1)&&c.substr(0,2))&&(c=c.substr(2)),h=parseFloat(c),p in er&&("autoAlpha"===p&&(1===d&&"hidden"===Nr(t,"visibility")&&h&&(d=0),k.push("visibility",0,style.visibility),Lr(this,style,"visibility",d?"inherit":"hidden",h?"inherit":"hidden",!h)),"scale"!==p&&"transform"!==p&&~(p=er[p]).indexOf(",")&&(p=p.split(",")[0])),w=p in Gn)if(this.styles.save(p),T||((x=t._gsap).renderTransform&&!e.parseTransform||Gr(t,e.parseTransform),S=!1!==e.smoothOrigin&&x.smooth,(T=this._pt=new En(this._pt,style,mr,0,1,x.renderTransform,x,0,-1)).dep=1),"scale"===p)this._pt=new En(this._pt,x,"scaleY",x.scaleY,(_?Ot(x.scaleY,_+h):h)-x.scaleY||0,nr),this._pt.u=0,L.push("scaleY",p),p+="X";else{if("transformOrigin"===p){k.push(gr,0,style[gr]),C=void 0,j=void 0,I=void 0,C=(A=c).split(" "),j=C[0],I=C[1]||"50%","top"!==j&&"bottom"!==j&&"left"!==I&&"right"!==I||(A=j,j=I,I=A),C[0]=Ur[j]||j,C[1]=Ur[I]||I,c=C.join(" "),x.svg?Yr(t,c,0,S,0,this):((y=parseFloat(c.split(" ")[2])||0)!==x.zOrigin&&Lr(this,x,"zOrigin",x.zOrigin,y),Lr(this,style,p,Xr(l),Xr(c)));continue}if("svgOrigin"===p){Yr(t,c,1,S,0,this);continue}if(p in qr){ni(this,x,p,d,_?Ot(d,_+c):c);continue}if("smoothOrigin"===p){Lr(this,x,"smooth",x.smooth,c);continue}if("force3D"===p){x[p]=c;continue}if("transform"===p){ii(this,c,t);continue}}else p in style||(p=Er(p)||p);if(w||(h||0===h)&&(d||0===d)&&!Zn.test(c)&&p in style)h||(h=0),(v=(l+"").substr((d+"").length))!==(y=ce(c)||(p in O.units?O.units[p]:v))&&(d=Mr(t,p,l,y)),this._pt=new En(this._pt,w?x:style,p,d,(_?Ot(d,_+h):h)-d,w||"px"!==y&&"zIndex"!==p||!1===e.autoRound?nr:sr),this._pt.u=y||0,v!==y&&"%"!==y&&(this._pt.b=l,this._pt.r=ir);else if(p in style)Rr.call(this,t,p,l,_?_+c:c);else if(p in t)this.add(t,p,l||t[p],_?_+c:c,r,o);else if("parseTransform"!==p){at(p,c);continue}w||(p in style?k.push(p,0,style[p]):k.push(p,1,l||t[p])),L.push(p)}E&&Sn(this)},render:function(t,data){if(data.tween._time||!Wn())for(var e=data._pt;e;)e.r(t,e.d),e=e._next;else data.styles.revert()},get:Nr,aliases:er,getSetter:function(t,e,n){var p=er[e];return p&&p.indexOf(",")<0&&(e=p),e in Gn&&e!==gr&&(t._gsap.x||Nr(t,"x"))?n&&Vn===n?"scale"===e?dr:cr:(Vn=n||{})&&("scale"===e?fr:pr):t.style&&!H(t.style[e])?ur:~e.indexOf("-")?lr:gn(t,e)},core:{_removeProperty:Ir,_getMatrix:Wr}};Un.utils.checkPrefix=Er,Un.core.getStyleSaver=wr,ai=kt((si="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(oi="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Gn[t]=1})),kt(oi,(function(t){O.units[t]="deg",qr[t]=1})),er[ai[13]]=si+","+oi,kt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");er[e[1]]=ai[e[0]]})),kt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){O.units[t]="px"})),Un.registerPlugin(ui);var ci=Un.registerPlugin(ui)||Un;ci.core.Tween},,,,,,,,,,,,,,,function(t,e,n){!function(e){var n=function(t,e,n){"use strict";var r,o;if(function(){var e,n={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(e in o=t.lazySizesConfig||t.lazysizesConfig||{},n)e in o||(o[e]=n[e])}(),!e||!e.getElementsByClassName)return{init:function(){},cfg:o,noSupport:!0};var l=e.documentElement,c=t.HTMLPictureElement,h="addEventListener",d="getAttribute",f=t[h].bind(t),m=t.setTimeout,v=t.requestAnimationFrame||m,y=t.requestIdleCallback,_=/^picture$/i,w=["load","error","lazyincluded","_lazyloaded"],T={},x=Array.prototype.forEach,S=function(t,e){return T[e]||(T[e]=new RegExp("(\\s|^)"+e+"(\\s|$)")),T[e].test(t[d]("class")||"")&&T[e]},E=function(t,e){S(t,e)||t.setAttribute("class",(t[d]("class")||"").trim()+" "+e)},k=function(t,e){var n;(n=S(t,e))&&t.setAttribute("class",(t[d]("class")||"").replace(n," "))},A=function(t,e,n){var r=n?h:"removeEventListener";n&&A(t,e),w.forEach((function(n){t[r](n,e)}))},C=function(t,n,o,l,c){var h=e.createEvent("Event");return o||(o={}),o.instance=r,h.initEvent(n,!l,!c),h.detail=o,t.dispatchEvent(h),h},O=function(e,n){var r;!c&&(r=t.picturefill||o.pf)?(n&&n.src&&!e[d]("srcset")&&e.setAttribute("srcset",n.src),r({reevaluate:!0,elements:[e]})):n&&n.src&&(e.src=n.src)},j=function(t,style){return(getComputedStyle(t,null)||{})[style]},I=function(t,e,n){for(n=n||t.offsetWidth;n<o.minSize&&e&&!t._lazysizesWidth;)n=e.offsetWidth,e=e.parentNode;return n},L=(Ct=[],Ot=[],jt=Ct,It=function(){var t=jt;for(jt=Ct.length?Ot:Ct,kt=!0,At=!1;t.length;)t.shift()();kt=!1},Lt=function(t,n){kt&&!n?t.apply(this,arguments):(jt.push(t),At||(At=!0,(e.hidden?m:v)(It)))},Lt._lsFlush=It,Lt),D=function(t,e){return e?function(){L(t)}:function(){var e=this,n=arguments;L((function(){t.apply(e,n)}))}},P=function(t){var e,r=0,l=o.throttleDelay,c=o.ricTimeout,h=function(){e=!1,r=n.now(),t()},d=y&&c>49?function(){y(h,{timeout:c}),c!==o.ricTimeout&&(c=o.ricTimeout)}:D((function(){m(h)}),!0);return function(t){var o;(t=!0===t)&&(c=33),e||(e=!0,(o=l-(n.now()-r))<0&&(o=0),t||o<9?d():m(d,o))}},M=function(t){var e,r,o=99,l=function(){e=null,t()},c=function(){var t=n.now()-r;t<o?m(c,o-t):(y||l)(l)};return function(){r=n.now(),e||(e=m(c,o))}},N=(nt=/^img$/i,it=/^iframe$/i,st="onscroll"in t&&!/(gle|ing)bot/.test(navigator.userAgent),ot=0,at=0,ut=0,lt=-1,ct=function(t){ut--,(!t||ut<0||!t.target)&&(ut=0)},ht=function(t){return null==et&&(et="hidden"==j(e.body,"visibility")),et||!("hidden"==j(t.parentNode,"visibility")&&"hidden"==j(t,"visibility"))},ft=function(t,n){var r,o=t,c=ht(t);for(Q-=n,tt+=n,J-=n,Z+=n;c&&(o=o.offsetParent)&&o!=e.body&&o!=l;)(c=(j(o,"opacity")||1)>0)&&"visible"!=j(o,"overflow")&&(r=o.getBoundingClientRect(),c=Z>r.left&&J<r.right&&tt>r.top-1&&Q<r.bottom+1);return c},pt=function(){var t,i,rect,n,c,h,f,m,v,y,_,w,T=r.elements;if((G=o.loadMode)&&ut<8&&(t=T.length)){for(i=0,lt++;i<t;i++)if(T[i]&&!T[i]._lazyRace)if(!st||r.prematureUnveil&&r.prematureUnveil(T[i]))Tt(T[i]);else if((m=T[i][d]("data-expand"))&&(h=1*m)||(h=at),y||(y=!o.expand||o.expand<1?l.clientHeight>500&&l.clientWidth>500?500:370:o.expand,r._defEx=y,_=y*o.expFactor,w=o.hFac,et=null,at<_&&ut<1&<>2&&G>2&&!e.hidden?(at=_,lt=0):at=G>1&<>1&&ut<6?y:ot),v!==h&&(K=innerWidth+h*w,$=innerHeight+h,f=-1*h,v=h),rect=T[i].getBoundingClientRect(),(tt=rect.bottom)>=f&&(Q=rect.top)<=$&&(Z=rect.right)>=f*w&&(J=rect.left)<=K&&(tt||Z||J||Q)&&(o.loadHidden||ht(T[i]))&&(W&&ut<3&&!m&&(G<3||lt<4)||ft(T[i],h))){if(Tt(T[i]),c=!0,ut>9)break}else!c&&W&&!n&&ut<4&<<4&&G>2&&(V[0]||o.preloadAfterLoad)&&(V[0]||!m&&(tt||Z||J||Q||"auto"!=T[i][d](o.sizesAttr)))&&(n=V[0]||T[i]);n&&!c&&Tt(n)}},mt=P(pt),gt=function(t){var e=t.target;e._lazyCache?delete e._lazyCache:(ct(t),E(e,o.loadedClass),k(e,o.loadingClass),A(e,yt),C(e,"lazyloaded"))},vt=D(gt),yt=function(t){vt({target:t.target})},bt=function(t,e){var n=t.getAttribute("data-load-mode")||o.iframeLoadMode;0==n?t.contentWindow.location.replace(e):1==n&&(t.src=e)},_t=function(source){var t,e=source[d](o.srcsetAttr);(t=o.customMedia[source[d]("data-media")||source[d]("media")])&&source.setAttribute("media",t),e&&source.setAttribute("srcset",e)},wt=D((function(t,e,n,r,l){var c,h,f,v,y,w;(y=C(t,"lazybeforeunveil",e)).defaultPrevented||(r&&(n?E(t,o.autosizesClass):t.setAttribute("sizes",r)),h=t[d](o.srcsetAttr),c=t[d](o.srcAttr),l&&(v=(f=t.parentNode)&&_.test(f.nodeName||"")),w=e.firesLoad||"src"in t&&(h||c||v),y={target:t},E(t,o.loadingClass),w&&(clearTimeout(Y),Y=m(ct,2500),A(t,yt,!0)),v&&x.call(f.getElementsByTagName("source"),_t),h?t.setAttribute("srcset",h):c&&!v&&(it.test(t.nodeName)?bt(t,c):t.src=c),l&&(h||v)&&O(t,{src:c})),t._lazyRace&&delete t._lazyRace,k(t,o.lazyClass),L((function(){var e=t.complete&&t.naturalWidth>1;w&&!e||(e&&E(t,o.fastLoadedClass),gt(y),t._lazyCache=!0,m((function(){"_lazyCache"in t&&delete t._lazyCache}),9)),"lazy"==t.loading&&ut--}),!0)})),Tt=function(t){if(!t._lazyRace){var e,n=nt.test(t.nodeName),r=n&&(t[d](o.sizesAttr)||t[d]("sizes")),l="auto"==r;(!l&&W||!n||!t[d]("src")&&!t.srcset||t.complete||S(t,o.errorClass)||!S(t,o.lazyClass))&&(e=C(t,"lazyunveilread").detail,l&&R.updateElem(t,!0,t.offsetWidth),t._lazyRace=!0,ut++,wt(t,e,l,r,n))}},xt=M((function(){o.loadMode=3,mt()})),St=function(){3==o.loadMode&&(o.loadMode=2),xt()},Et=function(){W||(n.now()-X<999?m(Et,999):(W=!0,o.loadMode=3,mt(),f("scroll",St,!0)))},{_:function(){X=n.now(),r.elements=e.getElementsByClassName(o.lazyClass),V=e.getElementsByClassName(o.lazyClass+" "+o.preloadClass),f("scroll",mt,!0),f("resize",mt,!0),f("pageshow",(function(t){if(t.persisted){var n=e.querySelectorAll("."+o.loadingClass);n.length&&n.forEach&&v((function(){n.forEach((function(img){img.complete&&Tt(img)}))}))}})),t.MutationObserver?new MutationObserver(mt).observe(l,{childList:!0,subtree:!0,attributes:!0}):(l[h]("DOMNodeInserted",mt,!0),l[h]("DOMAttrModified",mt,!0),setInterval(mt,999)),f("hashchange",mt,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach((function(t){e[h](t,mt,!0)})),/d$|^c/.test(e.readyState)?Et():(f("load",Et),e[h]("DOMContentLoaded",mt),m(Et,2e4)),r.elements.length?(pt(),L._lsFlush()):mt()},checkElems:mt,unveil:Tt,_aLSL:St}),R=(F=D((function(t,e,n,r){var o,i,l;if(t._lazysizesWidth=r,r+="px",t.setAttribute("sizes",r),_.test(e.nodeName||""))for(i=0,l=(o=e.getElementsByTagName("source")).length;i<l;i++)o[i].setAttribute("sizes",r);n.detail.dataAttr||O(t,n.detail)})),z=function(t,e,n){var r,o=t.parentNode;o&&(n=I(t,o,n),(r=C(t,"lazybeforesizes",{width:n,dataAttr:!!e})).defaultPrevented||(n=r.detail.width)&&n!==t._lazysizesWidth&&F(t,o,r,n))},H=M((function(){var i,t=B.length;if(t)for(i=0;i<t;i++)z(B[i])})),{_:function(){B=e.getElementsByClassName(o.autosizesClass),f("resize",H)},checkElems:H,updateElem:z}),U=function(){!U.i&&e.getElementsByClassName&&(U.i=!0,R._(),N._())};var B,F,z,H;var V,W,Y,G,X,K,$,Q,J,Z,tt,et,nt,it,st,ot,at,ut,lt,ct,ht,ft,pt,mt,gt,vt,yt,bt,_t,wt,Tt,xt,St,Et;var kt,At,Ct,Ot,jt,It,Lt;return m((function(){o.init&&U()})),r={cfg:o,autoSizer:R,loader:N,init:U,uP:O,aC:E,rC:k,hC:S,fire:C,gW:I,rAF:L}}(e,e.document,Date);e.lazySizes=n,t.exports&&(t.exports=n)}("undefined"!=typeof window?window:{})},,,,function(t,e,n){"use strict";var r=n(226),o=n.n(r),l=n(0),c=n.n(l),h="http://example.com";e.a=function(t,e){if(/^[a-z]+:/i.test(e))return e;/^data:/.test(t)&&(t=c.a.location&&c.a.location.href||"");var n="function"==typeof c.a.URL,r=/^\/\//.test(t),l=!c.a.location&&!/\/\//i.test(t);if(n?t=new c.a.URL(t,c.a.location||h):/\/\//i.test(t)||(t=o.a.buildAbsoluteURL(c.a.location&&c.a.location.href||"",t)),n){var d=new URL(e,t);return l?d.href.slice(18):r?d.href.slice(d.protocol.length):d.href}return o.a.buildAbsoluteURL(t,e)}},function(t,e,n){"use strict";var r={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var n=e.parent,r=e.slots,o=e.props,l=r(),c=l.default;void 0===c&&(c=[]);var h=l.placeholder;return n._isMounted?c:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||h)?t(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||h):c.length>0?c.map((function(){return t(!1)})):t(!1))}};t.exports=r},,,,,,,,,,,,,,,,,,function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},,function(t,e,n){t.exports=function(t){"use strict";var e=function(){return e=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},e.apply(this,arguments)};function n(element){return element&&element.ownerDocument&&element.ownerDocument.defaultView?element.ownerDocument.defaultView:window}function r(element){return element&&element.ownerDocument?element.ownerDocument:document}var o=function(t){var e={};return Array.prototype.reduce.call(t,(function(t,e){var option=e.name.match(/data-simplebar-(.+)/);if(option){var n=option[1].replace(/\W+(.)/g,(function(t,e){return e.toUpperCase()}));switch(e.value){case"true":t[n]=!0;break;case"false":t[n]=!1;break;case void 0:t[n]=!0;break;default:t[n]=e.value}}return t}),e)};function l(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function c(t,e){t&&e.split(" ").forEach((function(e){t.classList.remove(e)}))}function h(t){return".".concat(t.split(" ").join("."))}var d=!("undefined"==typeof window||!window.document||!window.document.createElement),f=Object.freeze({__proto__:null,addClasses:l,canUseDOM:d,classNamesToQuery:h,getElementDocument:r,getElementWindow:n,getOptions:o,removeClasses:c}),m=null,v=null;function y(){if(null===m){if("undefined"==typeof document)return m=0;var body=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),body.appendChild(t);var e=t.getBoundingClientRect().right;body.removeChild(t),m=e}return m}d&&window.addEventListener("resize",(function(){v!==window.devicePixelRatio&&(v=window.devicePixelRatio,m=null)}));var _=n,w=r,T=o,x=l,S=c,E=h;return function(){function n(element,r){void 0===r&&(r={});var o=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var t=_(o.el);o.scrollXTicking||(t.requestAnimationFrame(o.scrollX),o.scrollXTicking=!0),o.scrollYTicking||(t.requestAnimationFrame(o.scrollY),o.scrollYTicking=!0),o.isScrolling||(o.isScrolling=!0,x(o.el,o.classNames.scrolling)),o.showScrollbar("x"),o.showScrollbar("y"),o.onStopScrolling()},this.scrollX=function(){o.axis.x.isOverflowing&&o.positionScrollbar("x"),o.scrollXTicking=!1},this.scrollY=function(){o.axis.y.isOverflowing&&o.positionScrollbar("y"),o.scrollYTicking=!1},this._onStopScrolling=function(){S(o.el,o.classNames.scrolling),o.options.autoHide&&(o.hideScrollbar("x"),o.hideScrollbar("y")),o.isScrolling=!1},this.onMouseEnter=function(){o.isMouseEntering||(x(o.el,o.classNames.mouseEntered),o.showScrollbar("x"),o.showScrollbar("y"),o.isMouseEntering=!0),o.onMouseEntered()},this._onMouseEntered=function(){S(o.el,o.classNames.mouseEntered),o.options.autoHide&&(o.hideScrollbar("x"),o.hideScrollbar("y")),o.isMouseEntering=!1},this._onMouseMove=function(t){o.mouseX=t.clientX,o.mouseY=t.clientY,(o.axis.x.isOverflowing||o.axis.x.forceVisible)&&o.onMouseMoveForAxis("x"),(o.axis.y.isOverflowing||o.axis.y.forceVisible)&&o.onMouseMoveForAxis("y")},this.onMouseLeave=function(){o.onMouseMove.cancel(),(o.axis.x.isOverflowing||o.axis.x.forceVisible)&&o.onMouseLeaveForAxis("x"),(o.axis.y.isOverflowing||o.axis.y.forceVisible)&&o.onMouseLeaveForAxis("y"),o.mouseX=-1,o.mouseY=-1},this._onWindowResize=function(){o.scrollbarWidth=o.getScrollbarWidth(),o.hideNativeScrollbar()},this.onPointerEvent=function(t){var e,n;o.axis.x.track.el&&o.axis.y.track.el&&o.axis.x.scrollbar.el&&o.axis.y.scrollbar.el&&(o.axis.x.track.rect=o.axis.x.track.el.getBoundingClientRect(),o.axis.y.track.rect=o.axis.y.track.el.getBoundingClientRect(),(o.axis.x.isOverflowing||o.axis.x.forceVisible)&&(e=o.isWithinBounds(o.axis.x.track.rect)),(o.axis.y.isOverflowing||o.axis.y.forceVisible)&&(n=o.isWithinBounds(o.axis.y.track.rect)),(e||n)&&(t.stopPropagation(),"pointerdown"===t.type&&"touch"!==t.pointerType&&(e&&(o.axis.x.scrollbar.rect=o.axis.x.scrollbar.el.getBoundingClientRect(),o.isWithinBounds(o.axis.x.scrollbar.rect)?o.onDragStart(t,"x"):o.onTrackClick(t,"x")),n&&(o.axis.y.scrollbar.rect=o.axis.y.scrollbar.el.getBoundingClientRect(),o.isWithinBounds(o.axis.y.scrollbar.rect)?o.onDragStart(t,"y"):o.onTrackClick(t,"y")))))},this.drag=function(t){var e,r,l,c,h,d,f,m,v,y,_;if(o.draggedAxis&&o.contentWrapperEl){var track=o.axis[o.draggedAxis].track,w=null!==(r=null===(e=track.rect)||void 0===e?void 0:e[o.axis[o.draggedAxis].sizeAttr])&&void 0!==r?r:0,T=o.axis[o.draggedAxis].scrollbar,x=null!==(c=null===(l=o.contentWrapperEl)||void 0===l?void 0:l[o.axis[o.draggedAxis].scrollSizeAttr])&&void 0!==c?c:0,S=parseInt(null!==(d=null===(h=o.elStyles)||void 0===h?void 0:h[o.axis[o.draggedAxis].sizeAttr])&&void 0!==d?d:"0px",10);t.preventDefault(),t.stopPropagation();var E=("y"===o.draggedAxis?t.pageY:t.pageX)-(null!==(m=null===(f=track.rect)||void 0===f?void 0:f[o.axis[o.draggedAxis].offsetAttr])&&void 0!==m?m:0)-o.axis[o.draggedAxis].dragOffset,k=(E="x"===o.draggedAxis&&o.isRtl?(null!==(y=null===(v=track.rect)||void 0===v?void 0:v[o.axis[o.draggedAxis].sizeAttr])&&void 0!==y?y:0)-T.size-E:E)/(w-T.size)*(x-S);"x"===o.draggedAxis&&o.isRtl&&(k=(null===(_=n.getRtlHelpers())||void 0===_?void 0:_.isScrollingToNegative)?-k:k),o.contentWrapperEl[o.axis[o.draggedAxis].scrollOffsetAttr]=k}},this.onEndDrag=function(t){o.isDragging=!1;var e=w(o.el),n=_(o.el);t.preventDefault(),t.stopPropagation(),S(o.el,o.classNames.dragging),o.onStopScrolling(),e.removeEventListener("mousemove",o.drag,!0),e.removeEventListener("mouseup",o.onEndDrag,!0),o.removePreventClickId=n.setTimeout((function(){e.removeEventListener("click",o.preventClick,!0),e.removeEventListener("dblclick",o.preventClick,!0),o.removePreventClickId=null}))},this.preventClick=function(t){t.preventDefault(),t.stopPropagation()},this.el=element,this.options=e(e({},n.defaultOptions),r),this.classNames=e(e({},n.defaultOptions.classNames),r.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},"object"!=typeof this.el||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=t.throttle(this._onMouseMove,64),this.onWindowResize=t.debounce(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=t.debounce(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=t.debounce(this._onMouseEntered,this.stopScrollDelay),this.init()}return n.getRtlHelpers=function(){if(n.rtlHelpers)return n.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var e=t.firstElementChild,r=null==e?void 0:e.firstElementChild;if(!r)return null;document.body.appendChild(e),e.scrollLeft=0;var o=n.getOffset(e),l=n.getOffset(r);e.scrollLeft=-999;var c=n.getOffset(r);return document.body.removeChild(e),n.rtlHelpers={isScrollOriginAtZero:o.left!==l.left,isScrollingToNegative:l.left!==c.left},n.rtlHelpers},n.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:y()}catch(t){return y()}},n.getOffset=function(t){var rect=t.getBoundingClientRect(),e=w(t),n=_(t);return{top:rect.top+(n.pageYOffset||e.documentElement.scrollTop),left:rect.left+(n.pageXOffset||e.documentElement.scrollLeft)}},n.prototype.init=function(){d&&(this.initDOM(),this.rtlHelpers=n.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},n.prototype.initDOM=function(){var t,e;this.wrapperEl=this.el.querySelector(E(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(E(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(E(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(E(this.classNames.offset)),this.maskEl=this.el.querySelector(E(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,E(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(E(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(E(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(E(this.classNames.track)).concat(E(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(E(this.classNames.track)).concat(E(this.classNames.vertical))),this.axis.x.scrollbar.el=(null===(t=this.axis.x.track.el)||void 0===t?void 0:t.querySelector(E(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=(null===(e=this.axis.y.track.el)||void 0===e?void 0:e.querySelector(E(this.classNames.scrollbar)))||null,this.options.autoHide||(x(this.axis.x.scrollbar.el,this.classNames.visible),x(this.axis.y.scrollbar.el,this.classNames.visible))},n.prototype.initListeners=function(){var t,e=this,n=_(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),null===(t=this.contentWrapperEl)||void 0===t||t.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize),this.contentEl){if(window.ResizeObserver){var r=!1,o=n.ResizeObserver||ResizeObserver;this.resizeObserver=new o((function(){r&&n.requestAnimationFrame((function(){e.recalculate()}))})),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame((function(){r=!0}))}this.mutationObserver=new n.MutationObserver((function(){n.requestAnimationFrame((function(){e.recalculate()}))})),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},n.prototype.recalculate=function(){if(this.heightAutoObserverEl&&this.contentEl&&this.contentWrapperEl&&this.wrapperEl&&this.placeholderEl){var t=_(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var e=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,r=this.heightAutoObserverEl.offsetWidth<=1||e>0,o=this.contentWrapperEl.offsetWidth,l=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var h=this.contentEl.scrollHeight,d=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=r?"".concat(e||d,"px"):"auto",this.placeholderEl.style.height="".concat(h,"px");var f=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=0!==e&&d>e,this.axis.y.isOverflowing=h>f,this.axis.x.isOverflowing="hidden"!==l&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==c&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var m=this.axis.x.isOverflowing?this.scrollbarWidth:0,v=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&d>o-v,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&h>f-m,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},n.prototype.getScrollbarSize=function(t){var e,n;if(void 0===t&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var r,o=this.contentEl[this.axis[t].scrollSizeAttr],l=null!==(n=null===(e=this.axis[t].track.el)||void 0===e?void 0:e[this.axis[t].offsetSizeAttr])&&void 0!==n?n:0,c=l/o;return r=Math.max(~~(c*l),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(r=Math.min(r,this.options.scrollbarMaxSize)),r},n.prototype.positionScrollbar=function(t){var e,r,o;void 0===t&&(t="y");var l=this.axis[t].scrollbar;if(this.axis[t].isOverflowing&&this.contentWrapperEl&&l.el&&this.elStyles){var c=this.contentWrapperEl[this.axis[t].scrollSizeAttr],h=(null===(e=this.axis[t].track.el)||void 0===e?void 0:e[this.axis[t].offsetSizeAttr])||0,d=parseInt(this.elStyles[this.axis[t].sizeAttr],10),f=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];f="x"===t&&this.isRtl&&(null===(r=n.getRtlHelpers())||void 0===r?void 0:r.isScrollOriginAtZero)?-f:f,"x"===t&&this.isRtl&&(f=(null===(o=n.getRtlHelpers())||void 0===o?void 0:o.isScrollingToNegative)?f:-f);var m=f/(c-d),v=~~((h-l.size)*m);v="x"===t&&this.isRtl?-v+(h-l.size):v,l.el.style.transform="x"===t?"translate3d(".concat(v,"px, 0, 0)"):"translate3d(0, ".concat(v,"px, 0)")}},n.prototype.toggleTrackVisibility=function(t){void 0===t&&(t="y");var track=this.axis[t].track.el,e=this.axis[t].scrollbar.el;track&&e&&this.contentWrapperEl&&(this.axis[t].isOverflowing||this.axis[t].forceVisible?(track.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(track.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?e.style.display="block":e.style.display="none")},n.prototype.showScrollbar=function(t){void 0===t&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(x(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},n.prototype.hideScrollbar=function(t){void 0===t&&(t="y"),this.isDragging||this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(S(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},n.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},n.prototype.onMouseMoveForAxis=function(t){void 0===t&&(t="y");var e=this.axis[t];e.track.el&&e.scrollbar.el&&(e.track.rect=e.track.el.getBoundingClientRect(),e.scrollbar.rect=e.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(e.track.rect)?(this.showScrollbar(t),x(e.track.el,this.classNames.hover),this.isWithinBounds(e.scrollbar.rect)?x(e.scrollbar.el,this.classNames.hover):S(e.scrollbar.el,this.classNames.hover)):(S(e.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},n.prototype.onMouseLeaveForAxis=function(t){void 0===t&&(t="y"),S(this.axis[t].track.el,this.classNames.hover),S(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},n.prototype.onDragStart=function(t,e){var n;void 0===e&&(e="y"),this.isDragging=!0;var r=w(this.el),o=_(this.el),l=this.axis[e].scrollbar,c="y"===e?t.pageY:t.pageX;this.axis[e].dragOffset=c-((null===(n=l.rect)||void 0===n?void 0:n[this.axis[e].offsetAttr])||0),this.draggedAxis=e,x(this.el,this.classNames.dragging),r.addEventListener("mousemove",this.drag,!0),r.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(r.addEventListener("click",this.preventClick,!0),r.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},n.prototype.onTrackClick=function(t,e){var n,r,o,l,c=this;void 0===e&&(e="y");var h=this.axis[e];if(this.options.clickOnTrack&&h.scrollbar.el&&this.contentWrapperEl){t.preventDefault();var d=_(this.el);this.axis[e].scrollbar.rect=h.scrollbar.el.getBoundingClientRect();var f=null!==(r=null===(n=this.axis[e].scrollbar.rect)||void 0===n?void 0:n[this.axis[e].offsetAttr])&&void 0!==r?r:0,m=parseInt(null!==(l=null===(o=this.elStyles)||void 0===o?void 0:o[this.axis[e].sizeAttr])&&void 0!==l?l:"0px",10),v=this.contentWrapperEl[this.axis[e].scrollOffsetAttr],y=("y"===e?this.mouseY-f:this.mouseX-f)<0?-1:1,w=-1===y?v-m:v+m,T=40,x=function(){c.contentWrapperEl&&(-1===y?v>w&&(v-=T,c.contentWrapperEl[c.axis[e].scrollOffsetAttr]=v,d.requestAnimationFrame(x)):v<w&&(v+=T,c.contentWrapperEl[c.axis[e].scrollOffsetAttr]=v,d.requestAnimationFrame(x)))};x()}},n.prototype.getContentElement=function(){return this.contentEl},n.prototype.getScrollElement=function(){return this.contentWrapperEl},n.prototype.removeListeners=function(){var t=_(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},n.prototype.unMount=function(){this.removeListeners()},n.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},n.prototype.findChild=function(t,e){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,(function(t){return n.call(t,e)}))[0]},n.rtlHelpers=null,n.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},n.getOptions=T,n.helpers=f,n}()}(n(139))},,function(t,e){var n,r,o,l,c,h,d,f=9e4;n=function(t){return t*f},r=function(t,e){return t*e},o=function(t){return t/f},l=function(t,e){return t/e},c=function(t,e){return n(l(t,e))},h=function(t,e){return r(o(t),e)},d=function(t,e,n){return o(n?t:t-e)},t.exports={ONE_SECOND_IN_TS:f,secondsToVideoTs:n,secondsToAudioTs:r,videoTsToSeconds:o,audioTsToSeconds:l,audioTsToVideoTs:c,videoTsToAudioTs:h,metadataTsToSeconds:d}},function(t,e,n){"use strict";n.d(e,"a",(function(){return I})),n.d(e,"b",(function(){return L}));var r,o=n(1),l=(new Uint8Array([79,112,117,115,72,101,97,100]),function(path){return"string"==typeof path?Object(o.h)(path):path}),c=function(t){t=Object(o.k)(t);for(var e=[],i=0;t.length>i;){var n=t[i],l=0,c=0,h=t[++c];for(c++;128&h;)l=(127&h)<<7,h=t[c],c++;l+=127&h;for(var d=0;d<r.length;d++){var f=r[d],m=f.id,v=f.parser;if(n===m){e.push(v(t.subarray(c,c+l)));break}}i+=l+c}return e};r=[{id:3,parser:function(t){var desc={tag:3,id:t[0]<<8|t[1],flags:t[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&desc.flags&&(desc.dependsOnEsId=t[desc.size]<<8|t[desc.size+1],desc.size+=2),64&desc.flags){var e=t[desc.size];desc.url=Object(o.c)(t.subarray(desc.size+1,desc.size+1+e)),desc.size+=e}return 32&desc.flags&&(desc.ocrEsId=t[desc.size]<<8|t[desc.size+1],desc.size+=2),desc.descriptors=c(t.subarray(desc.size))||[],desc}},{id:4,parser:function(t){return{tag:4,oti:t[0],streamType:t[1],bufferSize:t[2]<<16|t[3]<<8|t[4],maxBitrate:t[5]<<24|t[6]<<16|t[7]<<8|t[8],avgBitrate:t[9]<<24|t[10]<<16|t[11]<<8|t[12],descriptors:c(t.subarray(13))}}},{id:5,parser:function(t){return{tag:5,bytes:t}}},{id:6,parser:function(t){return{tag:6,bytes:t}}}];var h=function t(e,n,r){void 0===r&&(r=!1),n=function(t){return Array.isArray(t)?t.map((function(p){return l(p)})):[l(t)]}(n),e=Object(o.k)(e);var c=[];if(!n.length)return c;for(var i=0;i<e.length;){var h=(e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3])>>>0,d=e.subarray(i+4,i+8);if(0===h)break;var f=i+h;if(f>e.length){if(r)break;f=e.length}var data=e.subarray(i+8,f);Object(o.a)(d,n[0])&&(1===n.length?c.push(data):c.push.apply(c,t(data,n.slice(1),r))),i=f}return c},d={EBML:Object(o.k)([26,69,223,163]),DocType:Object(o.k)([66,130]),Segment:Object(o.k)([24,83,128,103]),SegmentInfo:Object(o.k)([21,73,169,102]),Tracks:Object(o.k)([22,84,174,107]),Track:Object(o.k)([174]),TrackNumber:Object(o.k)([215]),DefaultDuration:Object(o.k)([35,227,131]),TrackEntry:Object(o.k)([174]),TrackType:Object(o.k)([131]),FlagDefault:Object(o.k)([136]),CodecID:Object(o.k)([134]),CodecPrivate:Object(o.k)([99,162]),VideoTrack:Object(o.k)([224]),AudioTrack:Object(o.k)([225]),Cluster:Object(o.k)([31,67,182,117]),Timestamp:Object(o.k)([231]),TimestampScale:Object(o.k)([42,215,177]),BlockGroup:Object(o.k)([160]),BlockDuration:Object(o.k)([155]),Block:Object(o.k)([161]),SimpleBlock:Object(o.k)([163])},f=[128,64,32,16,8,4,2,1],m=function(t,e,n,r){void 0===n&&(n=!0),void 0===r&&(r=!1);var l=function(t){for(var e=1,i=0;i<f.length&&!(t&f[i]);i++)e++;return e}(t[e]),c=t.subarray(e,e+l);return n&&((c=Array.prototype.slice.call(t,e,e+l))[0]^=f[l-1]),{length:l,value:Object(o.b)(c,{signed:r}),bytes:c}},v=function t(path){return"string"==typeof path?path.match(/.{1,2}/g).map((function(p){return t(p)})):"number"==typeof path?Object(o.f)(path):path},y=function t(e,n,r){if(r>=n.length)return n.length;var l=m(n,r,!1);if(Object(o.a)(e.bytes,l.bytes))return r;var c=m(n,r+l.length);return t(e,n,r+c.length+c.value+l.length)},_=function t(e,n){n=function(t){return Array.isArray(t)?t.map((function(p){return v(p)})):[v(t)]}(n),e=Object(o.k)(e);var r=[];if(!n.length)return r;for(var i=0;i<e.length;){var l=m(e,i,!1),c=m(e,i+l.length),h=i+l.length+c.length;127===c.value&&(c.value=y(l,e,h),c.value!==e.length&&(c.value-=h));var d=h+c.value>e.length?e.length:h+c.value,data=e.subarray(h,d);Object(o.a)(n[0],l.bytes)&&(1===n.length?r.push(data):r=r.concat(t(data,n.slice(1)))),i+=l.length+c.length+data.length}return r},w=n(89),T=Object(o.k)([0,0,0,1]),x=Object(o.k)([0,0,1]),S=Object(o.k)([0,0,3]),E=function(t){for(var e=[],i=1;i<t.length-2;)Object(o.a)(t.subarray(i,i+3),S)&&(e.push(i+2),i++),i++;if(0===e.length)return t;var n=t.length-e.length,r=new Uint8Array(n),l=0;for(i=0;i<n;l++,i++)l===e[0]&&(l++,e.shift()),r[i]=t[l];return r},k=function(t,e,n,r){void 0===r&&(r=1/0),t=Object(o.k)(t),n=[].concat(n);for(var l,i=0,c=0;i<t.length&&(c<r||l);){var h=void 0;if(Object(o.a)(t.subarray(i),T)?h=4:Object(o.a)(t.subarray(i),x)&&(h=3),h){if(c++,l)return E(t.subarray(l,i));var d=void 0;"h264"===e?d=31&t[i+h]:"h265"===e&&(d=t[i+h]>>1&63),-1!==n.indexOf(d)&&(l=i+h),i+=h+("h264"===e?1:2)}else i++}return t.subarray(0,0)},A={webm:Object(o.k)([119,101,98,109]),matroska:Object(o.k)([109,97,116,114,111,115,107,97]),flac:Object(o.k)([102,76,97,67]),ogg:Object(o.k)([79,103,103,83]),ac3:Object(o.k)([11,119]),riff:Object(o.k)([82,73,70,70]),avi:Object(o.k)([65,86,73]),wav:Object(o.k)([87,65,86,69]),"3gp":Object(o.k)([102,116,121,112,51,103]),mp4:Object(o.k)([102,116,121,112]),fmp4:Object(o.k)([115,116,121,112]),mov:Object(o.k)([102,116,121,112,113,116]),moov:Object(o.k)([109,111,111,118]),moof:Object(o.k)([109,111,111,102])},C={aac:function(t){var e=Object(w.a)(t);return Object(o.a)(t,[255,16],{offset:e,mask:[255,22]})},mp3:function(t){var e=Object(w.a)(t);return Object(o.a)(t,[255,2],{offset:e,mask:[255,6]})},webm:function(t){var e=_(t,[d.EBML,d.DocType])[0];return Object(o.a)(e,A.webm)},mkv:function(t){var e=_(t,[d.EBML,d.DocType])[0];return Object(o.a)(e,A.matroska)},mp4:function(t){return!C["3gp"](t)&&!C.mov(t)&&(!(!Object(o.a)(t,A.mp4,{offset:4})&&!Object(o.a)(t,A.fmp4,{offset:4}))||(!(!Object(o.a)(t,A.moof,{offset:4})&&!Object(o.a)(t,A.moov,{offset:4}))||void 0))},mov:function(t){return Object(o.a)(t,A.mov,{offset:4})},"3gp":function(t){return Object(o.a)(t,A["3gp"],{offset:4})},ac3:function(t){var e=Object(w.a)(t);return Object(o.a)(t,A.ac3,{offset:e})},ts:function(t){if(t.length<189&&t.length>=1)return 71===t[0];for(var i=0;i+188<t.length&&i<188;){if(71===t[i]&&71===t[i+188])return!0;i+=1}return!1},flac:function(t){var e=Object(w.a)(t);return Object(o.a)(t,A.flac,{offset:e})},ogg:function(t){return Object(o.a)(t,A.ogg)},avi:function(t){return Object(o.a)(t,A.riff)&&Object(o.a)(t,A.avi,{offset:8})},wav:function(t){return Object(o.a)(t,A.riff)&&Object(o.a)(t,A.wav,{offset:8})},h264:function(t){return function(t,e,n){return k(t,"h264",e,n)}(t,7,3).length},h265:function(t){return function(t,e,n){return k(t,"h265",e,n)}(t,[32,33],3).length}},O=Object.keys(C).filter((function(t){return"ts"!==t&&"h264"!==t&&"h265"!==t})).concat(["ts","h264","h265"]);O.forEach((function(t){var e=C[t];C[t]=function(t){return e(Object(o.k)(t))}}));var j=C,I=function(t){t=Object(o.k)(t);for(var i=0;i<O.length;i++){var e=O[i];if(j[e](t))return e}return""},L=function(t){return h(t,["moof"]).length>0}},,,,,function(t,e,n){(function(t,r){var o;(function(){var l,c="Expected a function",h="__lodash_hash_undefined__",d="__lodash_placeholder__",f=16,m=32,v=64,y=128,_=256,w=1/0,T=9007199254740991,x=NaN,S=4294967295,E=[["ary",y],["bind",1],["bindKey",2],["curry",8],["curryRight",f],["flip",512],["partial",m],["partialRight",v],["rearg",_]],k="[object Arguments]",A="[object Array]",C="[object Boolean]",O="[object Date]",j="[object Error]",I="[object Function]",L="[object GeneratorFunction]",D="[object Map]",P="[object Number]",M="[object Object]",N="[object Promise]",R="[object RegExp]",U="[object Set]",B="[object String]",F="[object Symbol]",z="[object WeakMap]",H="[object ArrayBuffer]",V="[object DataView]",W="[object Float32Array]",Y="[object Float64Array]",G="[object Int8Array]",X="[object Int16Array]",K="[object Int32Array]",$="[object Uint8Array]",Q="[object Uint8ClampedArray]",J="[object Uint16Array]",Z="[object Uint32Array]",tt=/\b__p \+= '';/g,et=/\b(__p \+=) '' \+/g,nt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,it=/&(?:amp|lt|gt|quot|#39);/g,st=/[&<>"']/g,ot=RegExp(it.source),at=RegExp(st.source),ut=/<%-([\s\S]+?)%>/g,lt=/<%([\s\S]+?)%>/g,ct=/<%=([\s\S]+?)%>/g,ht=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ft=/^\w*$/,pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mt=/[\\^$.*+?()[\]{}|]/g,gt=RegExp(mt.source),vt=/^\s+/,yt=/\s/,bt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,_t=/\{\n\/\* \[wrapped with (.+)\] \*/,wt=/,? & /,Tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xt=/[()=,{}\[\]\/\s]/,St=/\\(\\)?/g,Et=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,kt=/\w*$/,At=/^[-+]0x[0-9a-f]+$/i,Ct=/^0b[01]+$/i,Ot=/^\[object .+?Constructor\]$/,jt=/^0o[0-7]+$/i,It=/^(?:0|[1-9]\d*)$/,Lt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Dt=/($^)/,Pt=/['\n\r\u2028\u2029\\]/g,Mt="\\ud800-\\udfff",Nt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Rt="\\u2700-\\u27bf",Ut="a-z\\xdf-\\xf6\\xf8-\\xff",Bt="A-Z\\xc0-\\xd6\\xd8-\\xde",Ft="\\ufe0e\\ufe0f",zt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",qt="['’]",Ht="["+Mt+"]",Vt="["+zt+"]",Wt="["+Nt+"]",Yt="\\d+",Gt="["+Rt+"]",Xt="["+Ut+"]",Kt="[^"+Mt+zt+Yt+Rt+Ut+Bt+"]",$t="\\ud83c[\\udffb-\\udfff]",Qt="[^"+Mt+"]",Jt="(?:\\ud83c[\\udde6-\\uddff]){2}",Zt="[\\ud800-\\udbff][\\udc00-\\udfff]",te="["+Bt+"]",ee="\\u200d",ne="(?:"+Xt+"|"+Kt+")",re="(?:"+te+"|"+Kt+")",ie="(?:['’](?:d|ll|m|re|s|t|ve))?",se="(?:['’](?:D|LL|M|RE|S|T|VE))?",oe="(?:"+Wt+"|"+$t+")"+"?",ae="["+Ft+"]?",ue=ae+oe+("(?:"+ee+"(?:"+[Qt,Jt,Zt].join("|")+")"+ae+oe+")*"),le="(?:"+[Gt,Jt,Zt].join("|")+")"+ue,ce="(?:"+[Qt+Wt+"?",Wt,Jt,Zt,Ht].join("|")+")",he=RegExp(qt,"g"),de=RegExp(Wt,"g"),fe=RegExp($t+"(?="+$t+")|"+ce+ue,"g"),pe=RegExp([te+"?"+Xt+"+"+ie+"(?="+[Vt,te,"$"].join("|")+")",re+"+"+se+"(?="+[Vt,te+ne,"$"].join("|")+")",te+"?"+ne+"+"+ie,te+"+"+se,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Yt,le].join("|"),"g"),me=RegExp("["+ee+Mt+Nt+Ft+"]"),ge=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ve=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ye=-1,be={};be[W]=be[Y]=be[G]=be[X]=be[K]=be[$]=be[Q]=be[J]=be[Z]=!0,be[k]=be[A]=be[H]=be[C]=be[V]=be[O]=be[j]=be[I]=be[D]=be[P]=be[M]=be[R]=be[U]=be[B]=be[z]=!1;var _e={};_e[k]=_e[A]=_e[H]=_e[V]=_e[C]=_e[O]=_e[W]=_e[Y]=_e[G]=_e[X]=_e[K]=_e[D]=_e[P]=_e[M]=_e[R]=_e[U]=_e[B]=_e[F]=_e[$]=_e[Q]=_e[J]=_e[Z]=!0,_e[j]=_e[I]=_e[z]=!1;var we={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Te=parseFloat,xe=parseInt,Se="object"==typeof t&&t&&t.Object===Object&&t,Ee="object"==typeof self&&self&&self.Object===Object&&self,ke=Se||Ee||Function("return this")(),Ae=e&&!e.nodeType&&e,Ce=Ae&&"object"==typeof r&&r&&!r.nodeType&&r,Oe=Ce&&Ce.exports===Ae,je=Oe&&Se.process,Ie=function(){try{var t=Ce&&Ce.require&&Ce.require("util").types;return t||je&&je.binding&&je.binding("util")}catch(t){}}(),Le=Ie&&Ie.isArrayBuffer,De=Ie&&Ie.isDate,Pe=Ie&&Ie.isMap,Me=Ie&&Ie.isRegExp,Ne=Ie&&Ie.isSet,Re=Ie&&Ie.isTypedArray;function Ue(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Be(t,e,n,r){for(var o=-1,l=null==t?0:t.length;++o<l;){var c=t[o];e(r,c,n(c),t)}return r}function Fe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function ze(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function qe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function He(t,e){for(var n=-1,r=null==t?0:t.length,o=0,l=[];++n<r;){var c=t[n];e(c,n,t)&&(l[o++]=c)}return l}function Ve(t,e){return!!(null==t?0:t.length)&&tn(t,e,0)>-1}function We(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}function Ye(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function Ge(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function Xe(t,e,n,r){var o=-1,l=null==t?0:t.length;for(r&&l&&(n=t[++o]);++o<l;)n=e(n,t[o],o,t);return n}function Ke(t,e,n,r){var o=null==t?0:t.length;for(r&&o&&(n=t[--o]);o--;)n=e(n,t[o],o,t);return n}function $e(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Qe=sn("length");function Je(t,e,n){var r;return n(t,(function(t,n,o){if(e(t,n,o))return r=n,!1})),r}function Ze(t,e,n,r){for(var o=t.length,l=n+(r?1:-1);r?l--:++l<o;)if(e(t[l],l,t))return l;return-1}function tn(t,e,n){return e==e?function(t,e,n){var r=n-1,o=t.length;for(;++r<o;)if(t[r]===e)return r;return-1}(t,e,n):Ze(t,nn,n)}function en(t,e,n,r){for(var o=n-1,l=t.length;++o<l;)if(r(t[o],e))return o;return-1}function nn(t){return t!=t}function rn(t,e){var n=null==t?0:t.length;return n?un(t,e)/n:x}function sn(t){return function(object){return null==object?l:object[t]}}function on(object){return function(t){return null==object?l:object[t]}}function an(t,e,n,r,o){return o(t,(function(t,o,l){n=r?(r=!1,t):e(n,t,o,l)})),n}function un(t,e){for(var n,r=-1,o=t.length;++r<o;){var c=e(t[r]);c!==l&&(n=n===l?c:n+c)}return n}function ln(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function cn(t){return t?t.slice(0,An(t)+1).replace(vt,""):t}function hn(t){return function(e){return t(e)}}function dn(object,t){return Ye(t,(function(t){return object[t]}))}function fn(t,e){return t.has(e)}function pn(t,e){for(var n=-1,r=t.length;++n<r&&tn(e,t[n],0)>-1;);return n}function mn(t,e){for(var n=t.length;n--&&tn(e,t[n],0)>-1;);return n}var gn=on({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),vn=on({"&":"&","<":"<",">":">",'"':""","'":"'"});function yn(t){return"\\"+we[t]}function bn(t){return me.test(t)}function _n(map){var t=-1,e=Array(map.size);return map.forEach((function(n,r){e[++t]=[r,n]})),e}function wn(t,e){return function(n){return t(e(n))}}function Tn(t,e){for(var n=-1,r=t.length,o=0,l=[];++n<r;){var c=t[n];c!==e&&c!==d||(t[n]=d,l[o++]=n)}return l}function xn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function Sn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function En(t){return bn(t)?function(t){var e=fe.lastIndex=0;for(;fe.test(t);)++e;return e}(t):Qe(t)}function kn(t){return bn(t)?function(t){return t.match(fe)||[]}(t):function(t){return t.split("")}(t)}function An(t){for(var e=t.length;e--&&yt.test(t.charAt(e)););return e}var Cn=on({"&":"&","<":"<",">":">",""":'"',"'":"'"});var On=function t(e){var n,r=(e=null==e?ke:On.defaults(ke.Object(),e,On.pick(ke,ve))).Array,o=e.Date,yt=e.Error,Mt=e.Function,Nt=e.Math,Rt=e.Object,Ut=e.RegExp,Bt=e.String,Ft=e.TypeError,zt=r.prototype,qt=Mt.prototype,Ht=Rt.prototype,Vt=e["__core-js_shared__"],Wt=qt.toString,Yt=Ht.hasOwnProperty,Gt=0,Xt=(n=/[^.]+$/.exec(Vt&&Vt.keys&&Vt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Kt=Ht.toString,$t=Wt.call(Rt),Qt=ke._,Jt=Ut("^"+Wt.call(Yt).replace(mt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zt=Oe?e.Buffer:l,te=e.Symbol,ee=e.Uint8Array,ne=Zt?Zt.allocUnsafe:l,re=wn(Rt.getPrototypeOf,Rt),ie=Rt.create,se=Ht.propertyIsEnumerable,oe=zt.splice,ae=te?te.isConcatSpreadable:l,ue=te?te.iterator:l,le=te?te.toStringTag:l,ce=function(){try{var t=ks(Rt,"defineProperty");return t({},"",{}),t}catch(t){}}(),fe=e.clearTimeout!==ke.clearTimeout&&e.clearTimeout,me=o&&o.now!==ke.Date.now&&o.now,we=e.setTimeout!==ke.setTimeout&&e.setTimeout,Se=Nt.ceil,Ee=Nt.floor,Ae=Rt.getOwnPropertySymbols,Ce=Zt?Zt.isBuffer:l,je=e.isFinite,Ie=zt.join,Qe=wn(Rt.keys,Rt),on=Nt.max,jn=Nt.min,In=o.now,Ln=e.parseInt,Dn=Nt.random,Pn=zt.reverse,Mn=ks(e,"DataView"),Nn=ks(e,"Map"),Rn=ks(e,"Promise"),Un=ks(e,"Set"),Bn=ks(e,"WeakMap"),Fn=ks(Rt,"create"),zn=Bn&&new Bn,qn={},Hn=Js(Mn),Vn=Js(Nn),Wn=Js(Rn),Yn=Js(Un),Gn=Js(Bn),Xn=te?te.prototype:l,Kn=Xn?Xn.valueOf:l,$n=Xn?Xn.toString:l;function Qn(t){if(pa(t)&&!ra(t)&&!(t instanceof nr)){if(t instanceof er)return t;if(Yt.call(t,"__wrapped__"))return Zs(t)}return new er(t)}var Jn=function(){function object(){}return function(t){if(!fa(t))return{};if(ie)return ie(t);object.prototype=t;var e=new object;return object.prototype=l,e}}();function Zn(){}function er(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=l}function nr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=S,this.__views__=[]}function rr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ir(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function sr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function or(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new sr;++e<n;)this.add(t[e])}function ar(t){var data=this.__data__=new ir(t);this.size=data.size}function ur(t,e){var n=ra(t),r=!n&&na(t),o=!n&&!r&&aa(t),l=!n&&!r&&!o&&Ta(t),c=n||r||o||l,h=c?ln(t.length,Bt):[],d=h.length;for(var f in t)!e&&!Yt.call(t,f)||c&&("length"==f||o&&("offset"==f||"parent"==f)||l&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||Ds(f,d))||h.push(f);return h}function lr(t){var e=t.length;return e?t[ui(0,e-1)]:l}function cr(t,e){return Ks(Vi(t),wr(e,0,t.length))}function dr(t){return Ks(Vi(t))}function fr(object,t,e){(e!==l&&!Zo(object[t],e)||e===l&&!(t in object))&&yr(object,t,e)}function pr(object,t,e){var n=object[t];Yt.call(object,t)&&Zo(n,e)&&(e!==l||t in object)||yr(object,t,e)}function mr(t,e){for(var n=t.length;n--;)if(Zo(t[n][0],e))return n;return-1}function gr(t,e,n,r){return kr(t,(function(t,o,l){e(r,t,n(t),l)})),r}function vr(object,source){return object&&Wi(source,Va(source),object)}function yr(object,t,e){"__proto__"==t&&ce?ce(object,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):object[t]=e}function _r(object,t){for(var e=-1,n=t.length,o=r(n),c=null==object;++e<n;)o[e]=c?l:Ba(object,t[e]);return o}function wr(t,e,n){return t==t&&(n!==l&&(t=t<=n?t:n),e!==l&&(t=t>=e?t:e)),t}function Tr(t,e,n,r,object,o){var c,h=1&e,d=2&e,f=4&e;if(n&&(c=object?n(t,r,object,o):n(t)),c!==l)return c;if(!fa(t))return t;var m=ra(t);if(m){if(c=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Yt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!h)return Vi(t,c)}else{var v=Os(t),y=v==I||v==L;if(aa(t))return Ui(t,h);if(v==M||v==k||y&&!object){if(c=d||y?{}:Is(t),!h)return d?function(source,object){return Wi(source,Cs(source),object)}(t,function(object,source){return object&&Wi(source,Wa(source),object)}(c,t)):function(source,object){return Wi(source,As(source),object)}(t,vr(c,t))}else{if(!_e[v])return object?t:{};c=function(object,t,e){var n=object.constructor;switch(t){case H:return Bi(object);case C:case O:return new n(+object);case V:return function(t,e){var n=e?Bi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(object,e);case W:case Y:case G:case X:case K:case $:case Q:case J:case Z:return Fi(object,e);case D:return new n;case P:case B:return new n(object);case R:return function(t){var e=new t.constructor(t.source,kt.exec(t));return e.lastIndex=t.lastIndex,e}(object);case U:return new n;case F:return symbol=object,Kn?Rt(Kn.call(symbol)):{}}var symbol}(t,v,h)}}o||(o=new ar);var _=o.get(t);if(_)return _;o.set(t,c),ba(t)?t.forEach((function(r){c.add(Tr(r,e,n,r,t,o))})):ma(t)&&t.forEach((function(r,l){c.set(l,Tr(r,e,n,l,t,o))}));var w=m?l:(f?d?bs:ys:d?Wa:Va)(t);return Fe(w||t,(function(r,l){w&&(r=t[l=r]),pr(c,l,Tr(r,e,n,l,t,o))})),c}function xr(object,source,t){var e=t.length;if(null==object)return!e;for(object=Rt(object);e--;){var n=t[e],r=source[n],o=object[n];if(o===l&&!(n in object)||!r(o))return!1}return!0}function Sr(t,e,n){if("function"!=typeof t)throw new Ft(c);return Ws((function(){t.apply(l,n)}),e)}function Er(t,e,n,r){var o=-1,l=Ve,c=!0,h=t.length,d=[],f=e.length;if(!h)return d;n&&(e=Ye(e,hn(n))),r?(l=We,c=!1):e.length>=200&&(l=fn,c=!1,e=new or(e));t:for(;++o<h;){var m=t[o],v=null==n?m:n(m);if(m=r||0!==m?m:0,c&&v==v){for(var y=f;y--;)if(e[y]===v)continue t;d.push(m)}else l(e,v,r)||d.push(m)}return d}Qn.templateSettings={escape:ut,evaluate:lt,interpolate:ct,variable:"",imports:{_:Qn}},Qn.prototype=Zn.prototype,Qn.prototype.constructor=Qn,er.prototype=Jn(Zn.prototype),er.prototype.constructor=er,nr.prototype=Jn(Zn.prototype),nr.prototype.constructor=nr,rr.prototype.clear=function(){this.__data__=Fn?Fn(null):{},this.size=0},rr.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},rr.prototype.get=function(t){var data=this.__data__;if(Fn){var e=data[t];return e===h?l:e}return Yt.call(data,t)?data[t]:l},rr.prototype.has=function(t){var data=this.__data__;return Fn?data[t]!==l:Yt.call(data,t)},rr.prototype.set=function(t,e){var data=this.__data__;return this.size+=this.has(t)?0:1,data[t]=Fn&&e===l?h:e,this},ir.prototype.clear=function(){this.__data__=[],this.size=0},ir.prototype.delete=function(t){var data=this.__data__,e=mr(data,t);return!(e<0)&&(e==data.length-1?data.pop():oe.call(data,e,1),--this.size,!0)},ir.prototype.get=function(t){var data=this.__data__,e=mr(data,t);return e<0?l:data[e][1]},ir.prototype.has=function(t){return mr(this.__data__,t)>-1},ir.prototype.set=function(t,e){var data=this.__data__,n=mr(data,t);return n<0?(++this.size,data.push([t,e])):data[n][1]=e,this},sr.prototype.clear=function(){this.size=0,this.__data__={hash:new rr,map:new(Nn||ir),string:new rr}},sr.prototype.delete=function(t){var e=Ss(this,t).delete(t);return this.size-=e?1:0,e},sr.prototype.get=function(t){return Ss(this,t).get(t)},sr.prototype.has=function(t){return Ss(this,t).has(t)},sr.prototype.set=function(t,e){var data=Ss(this,t),n=data.size;return data.set(t,e),this.size+=data.size==n?0:1,this},or.prototype.add=or.prototype.push=function(t){return this.__data__.set(t,h),this},or.prototype.has=function(t){return this.__data__.has(t)},ar.prototype.clear=function(){this.__data__=new ir,this.size=0},ar.prototype.delete=function(t){var data=this.__data__,e=data.delete(t);return this.size=data.size,e},ar.prototype.get=function(t){return this.__data__.get(t)},ar.prototype.has=function(t){return this.__data__.has(t)},ar.prototype.set=function(t,e){var data=this.__data__;if(data instanceof ir){var n=data.__data__;if(!Nn||n.length<199)return n.push([t,e]),this.size=++data.size,this;data=this.__data__=new sr(n)}return data.set(t,e),this.size=data.size,this};var kr=Xi(Pr),Ar=Xi(Mr,!0);function Cr(t,e){var n=!0;return kr(t,(function(t,r,o){return n=!!e(t,r,o)})),n}function Or(t,e,n){for(var r=-1,o=t.length;++r<o;){var c=t[r],h=e(c);if(null!=h&&(d===l?h==h&&!wa(h):n(h,d)))var d=h,f=c}return f}function jr(t,e){var n=[];return kr(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n}function Ir(t,e,n,r,o){var l=-1,c=t.length;for(n||(n=Ls),o||(o=[]);++l<c;){var h=t[l];e>0&&n(h)?e>1?Ir(h,e-1,n,r,o):Ge(o,h):r||(o[o.length]=h)}return o}var Lr=Ki(),Dr=Ki(!0);function Pr(object,t){return object&&Lr(object,t,Va)}function Mr(object,t){return object&&Dr(object,t,Va)}function Nr(object,t){return He(t,(function(t){return ca(object[t])}))}function Rr(object,path){for(var t=0,e=(path=Pi(path,object)).length;null!=object&&t<e;)object=object[Qs(path[t++])];return t&&t==e?object:l}function Ur(object,t,e){var n=t(object);return ra(object)?n:Ge(n,e(object))}function Br(t){return null==t?t===l?"[object Undefined]":"[object Null]":le&&le in Rt(t)?function(t){var e=Yt.call(t,le),n=t[le];try{t[le]=l;var r=!0}catch(t){}var o=Kt.call(t);r&&(e?t[le]=n:delete t[le]);return o}(t):function(t){return Kt.call(t)}(t)}function Fr(t,e){return t>e}function zr(object,t){return null!=object&&Yt.call(object,t)}function qr(object,t){return null!=object&&t in Rt(object)}function Hr(t,e,n){for(var o=n?We:Ve,c=t[0].length,h=t.length,d=h,f=r(h),m=1/0,v=[];d--;){var y=t[d];d&&e&&(y=Ye(y,hn(e))),m=jn(y.length,m),f[d]=!n&&(e||c>=120&&y.length>=120)?new or(d&&y):l}y=t[0];var _=-1,w=f[0];t:for(;++_<c&&v.length<m;){var T=y[_],x=e?e(T):T;if(T=n||0!==T?T:0,!(w?fn(w,x):o(v,x,n))){for(d=h;--d;){var S=f[d];if(!(S?fn(S,x):o(t[d],x,n)))continue t}w&&w.push(x),v.push(T)}}return v}function Vr(object,path,t){var e=null==(object=qs(object,path=Pi(path,object)))?object:object[Qs(lo(path))];return null==e?l:Ue(e,object,t)}function Wr(t){return pa(t)&&Br(t)==k}function Yr(t,e,n,r,o){return t===e||(null==t||null==e||!pa(t)&&!pa(e)?t!=t&&e!=e:function(object,t,e,n,r,o){var c=ra(object),h=ra(t),d=c?A:Os(object),f=h?A:Os(t),m=(d=d==k?M:d)==M,v=(f=f==k?M:f)==M,y=d==f;if(y&&aa(object)){if(!aa(t))return!1;c=!0,m=!1}if(y&&!m)return o||(o=new ar),c||Ta(object)?gs(object,t,e,n,r,o):function(object,t,e,n,r,o,l){switch(e){case V:if(object.byteLength!=t.byteLength||object.byteOffset!=t.byteOffset)return!1;object=object.buffer,t=t.buffer;case H:return!(object.byteLength!=t.byteLength||!o(new ee(object),new ee(t)));case C:case O:case P:return Zo(+object,+t);case j:return object.name==t.name&&object.message==t.message;case R:case B:return object==t+"";case D:var c=_n;case U:var h=1&n;if(c||(c=xn),object.size!=t.size&&!h)return!1;var d=l.get(object);if(d)return d==t;n|=2,l.set(object,t);var f=gs(c(object),c(t),n,r,o,l);return l.delete(object),f;case F:if(Kn)return Kn.call(object)==Kn.call(t)}return!1}(object,t,d,e,n,r,o);if(!(1&e)){var _=m&&Yt.call(object,"__wrapped__"),w=v&&Yt.call(t,"__wrapped__");if(_||w){var T=_?object.value():object,x=w?t.value():t;return o||(o=new ar),r(T,x,e,n,o)}}if(!y)return!1;return o||(o=new ar),function(object,t,e,n,r,o){var c=1&e,h=ys(object),d=h.length,f=ys(t),m=f.length;if(d!=m&&!c)return!1;var v=d;for(;v--;){var y=h[v];if(!(c?y in t:Yt.call(t,y)))return!1}var _=o.get(object),w=o.get(t);if(_&&w)return _==t&&w==object;var T=!0;o.set(object,t),o.set(t,object);var x=c;for(;++v<d;){var S=object[y=h[v]],E=t[y];if(n)var k=c?n(E,S,y,t,object,o):n(S,E,y,object,t,o);if(!(k===l?S===E||r(S,E,e,n,o):k)){T=!1;break}x||(x="constructor"==y)}if(T&&!x){var A=object.constructor,C=t.constructor;A==C||!("constructor"in object)||!("constructor"in t)||"function"==typeof A&&A instanceof A&&"function"==typeof C&&C instanceof C||(T=!1)}return o.delete(object),o.delete(t),T}(object,t,e,n,r,o)}(t,e,n,r,Yr,o))}function Gr(object,source,t,e){var n=t.length,r=n,o=!e;if(null==object)return!r;for(object=Rt(object);n--;){var data=t[n];if(o&&data[2]?data[1]!==object[data[0]]:!(data[0]in object))return!1}for(;++n<r;){var c=(data=t[n])[0],h=object[c],d=data[1];if(o&&data[2]){if(h===l&&!(c in object))return!1}else{var f=new ar;if(e)var m=e(h,d,c,object,source,f);if(!(m===l?Yr(d,h,3,e,f):m))return!1}}return!0}function Xr(t){return!(!fa(t)||(e=t,Xt&&Xt in e))&&(ca(t)?Jt:Ot).test(Js(t));var e}function Kr(t){return"function"==typeof t?t:null==t?gu:"object"==typeof t?ra(t)?ei(t[0],t[1]):ti(t):Eu(t)}function $r(object){if(!Us(object))return Qe(object);var t=[];for(var e in Rt(object))Yt.call(object,e)&&"constructor"!=e&&t.push(e);return t}function Qr(object){if(!fa(object))return function(object){var t=[];if(null!=object)for(var e in Rt(object))t.push(e);return t}(object);var t=Us(object),e=[];for(var n in object)("constructor"!=n||!t&&Yt.call(object,n))&&e.push(n);return e}function Jr(t,e){return t<e}function Zr(t,e){var n=-1,o=sa(t)?r(t.length):[];return kr(t,(function(t,r,l){o[++n]=e(t,r,l)})),o}function ti(source){var t=Es(source);return 1==t.length&&t[0][2]?Fs(t[0][0],t[0][1]):function(object){return object===source||Gr(object,source,t)}}function ei(path,t){return Ms(path)&&Bs(t)?Fs(Qs(path),t):function(object){var e=Ba(object,path);return e===l&&e===t?Fa(object,path):Yr(t,e,3)}}function ni(object,source,t,e,n){object!==source&&Lr(source,(function(r,o){if(n||(n=new ar),fa(r))!function(object,source,t,e,n,r,o){var c=Hs(object,t),h=Hs(source,t),d=o.get(h);if(d)return void fr(object,t,d);var f=r?r(c,h,t+"",object,source,o):l,m=f===l;if(m){var v=ra(h),y=!v&&aa(h),_=!v&&!y&&Ta(h);f=h,v||y||_?ra(c)?f=c:oa(c)?f=Vi(c):y?(m=!1,f=Ui(h,!0)):_?(m=!1,f=Fi(h,!0)):f=[]:va(h)||na(h)?(f=c,na(c)?f=ja(c):fa(c)&&!ca(c)||(f=Is(h))):m=!1}m&&(o.set(h,f),n(f,h,e,r,o),o.delete(h));fr(object,t,f)}(object,source,o,t,ni,e,n);else{var c=e?e(Hs(object,o),r,o+"",object,source,n):l;c===l&&(c=r),fr(object,o,c)}}),Wa)}function ri(t,e){var n=t.length;if(n)return Ds(e+=e<0?n:0,n)?t[e]:l}function ii(t,e,n){e=e.length?Ye(e,(function(t){return ra(t)?function(e){return Rr(e,1===t.length?t[0]:t)}:t})):[gu];var r=-1;e=Ye(e,hn(xs()));var o=Zr(t,(function(t,n,o){var l=Ye(e,(function(e){return e(t)}));return{criteria:l,index:++r,value:t}}));return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(o,(function(object,t){return function(object,t,e){var n=-1,r=object.criteria,o=t.criteria,l=r.length,c=e.length;for(;++n<l;){var h=zi(r[n],o[n]);if(h)return n>=c?h:h*("desc"==e[n]?-1:1)}return object.index-t.index}(object,t,n)}))}function si(object,t,e){for(var n=-1,r=t.length,o={};++n<r;){var path=t[n],l=Rr(object,path);e(l,path)&&pi(o,Pi(path,object),l)}return o}function oi(t,e,n,r){var o=r?en:tn,l=-1,c=e.length,h=t;for(t===e&&(e=Vi(e)),n&&(h=Ye(t,hn(n)));++l<c;)for(var d=0,f=e[l],m=n?n(f):f;(d=o(h,m,d,r))>-1;)h!==t&&oe.call(h,d,1),oe.call(t,d,1);return t}function ai(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==l){var l=o;Ds(o)?oe.call(t,o,1):ki(t,o)}}return t}function ui(t,e){return t+Ee(Dn()*(e-t+1))}function ci(t,e){var n="";if(!t||e<1||e>T)return n;do{e%2&&(n+=t),(e=Ee(e/2))&&(t+=t)}while(e);return n}function hi(t,e){return Ys(zs(t,e,gu),t+"")}function di(t){return lr(Za(t))}function fi(t,e){var n=Za(t);return Ks(n,wr(e,0,n.length))}function pi(object,path,t,e){if(!fa(object))return object;for(var n=-1,r=(path=Pi(path,object)).length,o=r-1,c=object;null!=c&&++n<r;){var h=Qs(path[n]),d=t;if("__proto__"===h||"constructor"===h||"prototype"===h)return object;if(n!=o){var f=c[h];(d=e?e(f,h,c):l)===l&&(d=fa(f)?f:Ds(path[n+1])?[]:{})}pr(c,h,d),c=c[h]}return object}var mi=zn?function(t,data){return zn.set(t,data),t}:gu,gi=ce?function(t,e){return ce(t,"toString",{configurable:!0,enumerable:!1,value:fu(e),writable:!0})}:gu;function vi(t){return Ks(Za(t))}function yi(t,e,n){var o=-1,l=t.length;e<0&&(e=-e>l?0:l+e),(n=n>l?l:n)<0&&(n+=l),l=e>n?0:n-e>>>0,e>>>=0;for(var c=r(l);++o<l;)c[o]=t[o+e];return c}function bi(t,e){var n;return kr(t,(function(t,r,o){return!(n=e(t,r,o))})),!!n}function _i(t,e,n){var r=0,o=null==t?r:t.length;if("number"==typeof e&&e==e&&o<=2147483647){for(;r<o;){var l=r+o>>>1,c=t[l];null!==c&&!wa(c)&&(n?c<=e:c<e)?r=l+1:o=l}return o}return wi(t,e,gu,n)}function wi(t,e,n,r){var o=0,c=null==t?0:t.length;if(0===c)return 0;for(var h=(e=n(e))!=e,d=null===e,f=wa(e),m=e===l;o<c;){var v=Ee((o+c)/2),y=n(t[v]),_=y!==l,w=null===y,T=y==y,x=wa(y);if(h)var S=r||T;else S=m?T&&(r||_):d?T&&_&&(r||!w):f?T&&_&&!w&&(r||!x):!w&&!x&&(r?y<=e:y<e);S?o=v+1:c=v}return jn(c,4294967294)}function Ti(t,e){for(var n=-1,r=t.length,o=0,l=[];++n<r;){var c=t[n],h=e?e(c):c;if(!n||!Zo(h,d)){var d=h;l[o++]=0===c?0:c}}return l}function xi(t){return"number"==typeof t?t:wa(t)?x:+t}function Si(t){if("string"==typeof t)return t;if(ra(t))return Ye(t,Si)+"";if(wa(t))return $n?$n.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ei(t,e,n){var r=-1,o=Ve,l=t.length,c=!0,h=[],d=h;if(n)c=!1,o=We;else if(l>=200){var f=e?null:cs(t);if(f)return xn(f);c=!1,o=fn,d=new or}else d=e?[]:h;t:for(;++r<l;){var m=t[r],v=e?e(m):m;if(m=n||0!==m?m:0,c&&v==v){for(var y=d.length;y--;)if(d[y]===v)continue t;e&&d.push(v),h.push(m)}else o(d,v,n)||(d!==h&&d.push(v),h.push(m))}return h}function ki(object,path){return null==(object=qs(object,path=Pi(path,object)))||delete object[Qs(lo(path))]}function Ai(object,path,t,e){return pi(object,path,t(Rr(object,path)),e)}function Ci(t,e,n,r){for(var o=t.length,l=r?o:-1;(r?l--:++l<o)&&e(t[l],l,t););return n?yi(t,r?0:l,r?l+1:o):yi(t,r?l+1:0,r?o:l)}function Oi(t,e){var n=t;return n instanceof nr&&(n=n.value()),Xe(e,(function(t,e){return e.func.apply(e.thisArg,Ge([t],e.args))}),n)}function ji(t,e,n){var o=t.length;if(o<2)return o?Ei(t[0]):[];for(var l=-1,c=r(o);++l<o;)for(var h=t[l],d=-1;++d<o;)d!=l&&(c[l]=Er(c[l]||h,t[d],e,n));return Ei(Ir(c,1),e,n)}function Ii(t,e,n){for(var r=-1,o=t.length,c=e.length,h={};++r<o;){var d=r<c?e[r]:l;n(h,t[r],d)}return h}function Li(t){return oa(t)?t:[]}function Di(t){return"function"==typeof t?t:gu}function Pi(t,object){return ra(t)?t:Ms(t,object)?[t]:$s(Ia(t))}var Mi=hi;function Ni(t,e,n){var r=t.length;return n=n===l?r:n,!e&&n>=r?t:yi(t,e,n)}var Ri=fe||function(t){return ke.clearTimeout(t)};function Ui(t,e){if(e)return t.slice();var n=t.length,r=ne?ne(n):new t.constructor(n);return t.copy(r),r}function Bi(t){var e=new t.constructor(t.byteLength);return new ee(e).set(new ee(t)),e}function Fi(t,e){var n=e?Bi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function zi(t,e){if(t!==e){var n=t!==l,r=null===t,o=t==t,c=wa(t),h=e!==l,d=null===e,f=e==e,m=wa(e);if(!d&&!m&&!c&&t>e||c&&h&&f&&!d&&!m||r&&h&&f||!n&&f||!o)return 1;if(!r&&!c&&!m&&t<e||m&&n&&o&&!r&&!c||d&&n&&o||!h&&o||!f)return-1}return 0}function qi(t,e,n,o){for(var l=-1,c=t.length,h=n.length,d=-1,f=e.length,m=on(c-h,0),v=r(f+m),y=!o;++d<f;)v[d]=e[d];for(;++l<h;)(y||l<c)&&(v[n[l]]=t[l]);for(;m--;)v[d++]=t[l++];return v}function Hi(t,e,n,o){for(var l=-1,c=t.length,h=-1,d=n.length,f=-1,m=e.length,v=on(c-d,0),y=r(v+m),_=!o;++l<v;)y[l]=t[l];for(var w=l;++f<m;)y[w+f]=e[f];for(;++h<d;)(_||l<c)&&(y[w+n[h]]=t[l++]);return y}function Vi(source,t){var e=-1,n=source.length;for(t||(t=r(n));++e<n;)t[e]=source[e];return t}function Wi(source,t,object,e){var n=!object;object||(object={});for(var r=-1,o=t.length;++r<o;){var c=t[r],h=e?e(object[c],source[c],c,object,source):l;h===l&&(h=source[c]),n?yr(object,c,h):pr(object,c,h)}return object}function Yi(t,e){return function(n,r){var o=ra(n)?Be:gr,l=e?e():{};return o(n,t,xs(r,2),l)}}function Gi(t){return hi((function(object,e){var n=-1,r=e.length,o=r>1?e[r-1]:l,c=r>2?e[2]:l;for(o=t.length>3&&"function"==typeof o?(r--,o):l,c&&Ps(e[0],e[1],c)&&(o=r<3?l:o,r=1),object=Rt(object);++n<r;){var source=e[n];source&&t(object,source,n,o)}return object}))}function Xi(t,e){return function(n,r){if(null==n)return n;if(!sa(n))return t(n,r);for(var o=n.length,l=e?o:-1,c=Rt(n);(e?l--:++l<o)&&!1!==r(c[l],l,c););return n}}function Ki(t){return function(object,e,n){for(var r=-1,o=Rt(object),l=n(object),c=l.length;c--;){var h=l[t?c:++r];if(!1===e(o[h],h,o))break}return object}}function $i(t){return function(e){var n=bn(e=Ia(e))?kn(e):l,r=n?n[0]:e.charAt(0),o=n?Ni(n,1).join(""):e.slice(1);return r[t]()+o}}function Qi(t){return function(e){return Xe(cu(nu(e).replace(he,"")),t,"")}}function Ji(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Jn(t.prototype),r=t.apply(n,e);return fa(r)?r:n}}function Zi(t){return function(e,n,r){var o=Rt(e);if(!sa(e)){var c=xs(n,3);e=Va(e),n=function(t){return c(o[t],t,o)}}var h=t(e,n,r);return h>-1?o[c?e[h]:h]:l}}function ts(t){return vs((function(e){var n=e.length,r=n,o=er.prototype.thru;for(t&&e.reverse();r--;){var h=e[r];if("function"!=typeof h)throw new Ft(c);if(o&&!d&&"wrapper"==ws(h))var d=new er([],!0)}for(r=d?r:n;++r<n;){var f=ws(h=e[r]),data="wrapper"==f?_s(h):l;d=data&&Ns(data[0])&&424==data[1]&&!data[4].length&&1==data[9]?d[ws(data[0])].apply(d,data[3]):1==h.length&&Ns(h)?d[f]():d.thru(h)}return function(){var t=arguments,r=t[0];if(d&&1==t.length&&ra(r))return d.plant(r).value();for(var o=0,l=n?e[o].apply(this,t):r;++o<n;)l=e[o].call(this,l);return l}}))}function es(t,e,n,o,c,h,d,f,m,v){var _=e&y,w=1&e,T=2&e,x=24&e,S=512&e,E=T?l:Ji(t);return function y(){for(var k=arguments.length,A=r(k),C=k;C--;)A[C]=arguments[C];if(x)var O=Ts(y),j=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(A,O);if(o&&(A=qi(A,o,c,x)),h&&(A=Hi(A,h,d,x)),k-=j,x&&k<v){var I=Tn(A,O);return us(t,e,es,y.placeholder,n,A,I,f,m,v-k)}var L=w?n:this,D=T?L[t]:t;return k=A.length,f?A=function(t,e){var n=t.length,r=jn(e.length,n),o=Vi(t);for(;r--;){var c=e[r];t[r]=Ds(c,n)?o[c]:l}return t}(A,f):S&&k>1&&A.reverse(),_&&m<k&&(A.length=m),this&&this!==ke&&this instanceof y&&(D=E||Ji(D)),D.apply(L,A)}}function ns(t,e){return function(object,n){return function(object,t,e,n){return Pr(object,(function(r,o,object){t(n,e(r),o,object)})),n}(object,t,e(n),{})}}function rs(t,e){return function(n,r){var o;if(n===l&&r===l)return e;if(n!==l&&(o=n),r!==l){if(o===l)return r;"string"==typeof n||"string"==typeof r?(n=Si(n),r=Si(r)):(n=xi(n),r=xi(r)),o=t(n,r)}return o}}function is(t){return vs((function(e){return e=Ye(e,hn(xs())),hi((function(n){var r=this;return t(e,(function(t){return Ue(t,r,n)}))}))}))}function ss(t,e){var n=(e=e===l?" ":Si(e)).length;if(n<2)return n?ci(e,t):e;var r=ci(e,Se(t/En(e)));return bn(e)?Ni(kn(r),0,t).join(""):r.slice(0,t)}function os(t){return function(e,n,o){return o&&"number"!=typeof o&&Ps(e,n,o)&&(n=o=l),e=ka(e),n===l?(n=e,e=0):n=ka(n),function(t,e,n,o){for(var l=-1,c=on(Se((e-t)/(n||1)),0),h=r(c);c--;)h[o?c:++l]=t,t+=n;return h}(e,n,o=o===l?e<n?1:-1:ka(o),t)}}function as(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Oa(e),n=Oa(n)),t(e,n)}}function us(t,e,n,r,o,c,h,d,f,y){var _=8&e;e|=_?m:v,4&(e&=~(_?v:m))||(e&=-4);var w=[t,e,o,_?c:l,_?h:l,_?l:c,_?l:h,d,f,y],T=n.apply(l,w);return Ns(t)&&Vs(T,w),T.placeholder=r,Gs(T,t,e)}function ls(t){var e=Nt[t];return function(t,n){if(t=Oa(t),(n=null==n?0:jn(Aa(n),292))&&je(t)){var r=(Ia(t)+"e").split("e");return+((r=(Ia(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var cs=Un&&1/xn(new Un([,-0]))[1]==w?function(t){return new Un(t)}:wu;function hs(t){return function(object){var e=Os(object);return e==D?_n(object):e==U?Sn(object):function(object,t){return Ye(t,(function(t){return[t,object[t]]}))}(object,t(object))}}function ds(t,e,n,o,h,w,T,x){var S=2&e;if(!S&&"function"!=typeof t)throw new Ft(c);var E=o?o.length:0;if(E||(e&=-97,o=h=l),T=T===l?T:on(Aa(T),0),x=x===l?x:Aa(x),E-=h?h.length:0,e&v){var k=o,A=h;o=h=l}var data=S?l:_s(t),C=[t,e,n,o,h,k,A,w,T,x];if(data&&function(data,source){var t=data[1],e=source[1],n=t|e,r=n<131,o=e==y&&8==t||e==y&&t==_&&data[7].length<=source[8]||384==e&&source[7].length<=source[8]&&8==t;if(!r&&!o)return data;1&e&&(data[2]=source[2],n|=1&t?0:4);var l=source[3];if(l){var c=data[3];data[3]=c?qi(c,l,source[4]):l,data[4]=c?Tn(data[3],d):source[4]}(l=source[5])&&(c=data[5],data[5]=c?Hi(c,l,source[6]):l,data[6]=c?Tn(data[5],d):source[6]);(l=source[7])&&(data[7]=l);e&y&&(data[8]=null==data[8]?source[8]:jn(data[8],source[8]));null==data[9]&&(data[9]=source[9]);data[0]=source[0],data[1]=n}(C,data),t=C[0],e=C[1],n=C[2],o=C[3],h=C[4],!(x=C[9]=C[9]===l?S?0:t.length:on(C[9]-E,0))&&24&e&&(e&=-25),e&&1!=e)O=8==e||e==f?function(t,e,n){var o=Ji(t);return function c(){for(var h=arguments.length,d=r(h),f=h,m=Ts(c);f--;)d[f]=arguments[f];var v=h<3&&d[0]!==m&&d[h-1]!==m?[]:Tn(d,m);return(h-=v.length)<n?us(t,e,es,c.placeholder,l,d,v,l,l,n-h):Ue(this&&this!==ke&&this instanceof c?o:t,this,d)}}(t,e,x):e!=m&&33!=e||h.length?es.apply(l,C):function(t,e,n,o){var l=1&e,c=Ji(t);return function e(){for(var h=-1,d=arguments.length,f=-1,m=o.length,v=r(m+d),y=this&&this!==ke&&this instanceof e?c:t;++f<m;)v[f]=o[f];for(;d--;)v[f++]=arguments[++h];return Ue(y,l?n:this,v)}}(t,e,n,o);else var O=function(t,e,n){var r=1&e,o=Ji(t);return function e(){return(this&&this!==ke&&this instanceof e?o:t).apply(r?n:this,arguments)}}(t,e,n);return Gs((data?mi:Vs)(O,C),t,e)}function fs(t,e,n,object){return t===l||Zo(t,Ht[n])&&!Yt.call(object,n)?e:t}function ps(t,e,n,object,source,r){return fa(t)&&fa(e)&&(r.set(e,t),ni(t,e,l,ps,r),r.delete(e)),t}function ms(t){return va(t)?l:t}function gs(t,e,n,r,o,c){var h=1&n,d=t.length,f=e.length;if(d!=f&&!(h&&f>d))return!1;var m=c.get(t),v=c.get(e);if(m&&v)return m==e&&v==t;var y=-1,_=!0,w=2&n?new or:l;for(c.set(t,e),c.set(e,t);++y<d;){var T=t[y],x=e[y];if(r)var S=h?r(x,T,y,e,t,c):r(T,x,y,t,e,c);if(S!==l){if(S)continue;_=!1;break}if(w){if(!$e(e,(function(t,e){if(!fn(w,e)&&(T===t||o(T,t,n,r,c)))return w.push(e)}))){_=!1;break}}else if(T!==x&&!o(T,x,n,r,c)){_=!1;break}}return c.delete(t),c.delete(e),_}function vs(t){return Ys(zs(t,l,so),t+"")}function ys(object){return Ur(object,Va,As)}function bs(object){return Ur(object,Wa,Cs)}var _s=zn?function(t){return zn.get(t)}:wu;function ws(t){for(var e=t.name+"",n=qn[e],r=Yt.call(qn,e)?n.length:0;r--;){var data=n[r],o=data.func;if(null==o||o==t)return data.name}return e}function Ts(t){return(Yt.call(Qn,"placeholder")?Qn:t).placeholder}function xs(){var t=Qn.iteratee||vu;return t=t===vu?Kr:t,arguments.length?t(arguments[0],arguments[1]):t}function Ss(map,t){var e,n,data=map.__data__;return("string"==(n=typeof(e=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e)?data["string"==typeof t?"string":"hash"]:data.map}function Es(object){for(var t=Va(object),e=t.length;e--;){var n=t[e],r=object[n];t[e]=[n,r,Bs(r)]}return t}function ks(object,t){var e=function(object,t){return null==object?l:object[t]}(object,t);return Xr(e)?e:l}var As=Ae?function(object){return null==object?[]:(object=Rt(object),He(Ae(object),(function(symbol){return se.call(object,symbol)})))}:Cu,Cs=Ae?function(object){for(var t=[];object;)Ge(t,As(object)),object=re(object);return t}:Cu,Os=Br;function js(object,path,t){for(var e=-1,n=(path=Pi(path,object)).length,r=!1;++e<n;){var o=Qs(path[e]);if(!(r=null!=object&&t(object,o)))break;object=object[o]}return r||++e!=n?r:!!(n=null==object?0:object.length)&&da(n)&&Ds(o,n)&&(ra(object)||na(object))}function Is(object){return"function"!=typeof object.constructor||Us(object)?{}:Jn(re(object))}function Ls(t){return ra(t)||na(t)||!!(ae&&t&&t[ae])}function Ds(t,e){var n=typeof t;return!!(e=null==e?T:e)&&("number"==n||"symbol"!=n&&It.test(t))&&t>-1&&t%1==0&&t<e}function Ps(t,e,object){if(!fa(object))return!1;var n=typeof e;return!!("number"==n?sa(object)&&Ds(e,object.length):"string"==n&&e in object)&&Zo(object[e],t)}function Ms(t,object){if(ra(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!wa(t))||(ft.test(t)||!ht.test(t)||null!=object&&t in Rt(object))}function Ns(t){var e=ws(t),n=Qn[e];if("function"!=typeof n||!(e in nr.prototype))return!1;if(t===n)return!0;var data=_s(n);return!!data&&t===data[0]}(Mn&&Os(new Mn(new ArrayBuffer(1)))!=V||Nn&&Os(new Nn)!=D||Rn&&Os(Rn.resolve())!=N||Un&&Os(new Un)!=U||Bn&&Os(new Bn)!=z)&&(Os=function(t){var e=Br(t),n=e==M?t.constructor:l,r=n?Js(n):"";if(r)switch(r){case Hn:return V;case Vn:return D;case Wn:return N;case Yn:return U;case Gn:return z}return e});var Rs=Vt?ca:Ou;function Us(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ht)}function Bs(t){return t==t&&!fa(t)}function Fs(t,e){return function(object){return null!=object&&(object[t]===e&&(e!==l||t in Rt(object)))}}function zs(t,e,n){return e=on(e===l?t.length-1:e,0),function(){for(var o=arguments,l=-1,c=on(o.length-e,0),h=r(c);++l<c;)h[l]=o[e+l];l=-1;for(var d=r(e+1);++l<e;)d[l]=o[l];return d[e]=n(h),Ue(t,this,d)}}function qs(object,path){return path.length<2?object:Rr(object,yi(path,0,-1))}function Hs(object,t){if(("constructor"!==t||"function"!=typeof object[t])&&"__proto__"!=t)return object[t]}var Vs=Xs(mi),Ws=we||function(t,e){return ke.setTimeout(t,e)},Ys=Xs(gi);function Gs(t,e,n){var source=e+"";return Ys(t,function(source,details){var t=details.length;if(!t)return source;var e=t-1;return details[e]=(t>1?"& ":"")+details[e],details=details.join(t>2?", ":" "),source.replace(bt,"{\n/* [wrapped with "+details+"] */\n")}(source,function(details,t){return Fe(E,(function(e){var n="_."+e[0];t&e[1]&&!Ve(details,n)&&details.push(n)})),details.sort()}(function(source){var t=source.match(_t);return t?t[1].split(wt):[]}(source),n)))}function Xs(t){var e=0,n=0;return function(){var r=In(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(l,arguments)}}function Ks(t,e){var n=-1,r=t.length,o=r-1;for(e=e===l?r:e;++n<e;){var c=ui(n,o),h=t[c];t[c]=t[n],t[n]=h}return t.length=e,t}var $s=function(t){var e=Go(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(pt,(function(t,n,r,o){e.push(r?o.replace(St,"$1"):n||t)})),e}));function Qs(t){if("string"==typeof t||wa(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Js(t){if(null!=t){try{return Wt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Zs(t){if(t instanceof nr)return t.clone();var e=new er(t.__wrapped__,t.__chain__);return e.__actions__=Vi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var to=hi((function(t,e){return oa(t)?Er(t,Ir(e,1,oa,!0)):[]})),eo=hi((function(t,e){var n=lo(e);return oa(n)&&(n=l),oa(t)?Er(t,Ir(e,1,oa,!0),xs(n,2)):[]})),no=hi((function(t,e){var n=lo(e);return oa(n)&&(n=l),oa(t)?Er(t,Ir(e,1,oa,!0),l,n):[]}));function ro(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:Aa(n);return o<0&&(o=on(r+o,0)),Ze(t,xs(e,3),o)}function io(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return n!==l&&(o=Aa(n),o=n<0?on(r+o,0):jn(o,r-1)),Ze(t,xs(e,3),o,!0)}function so(t){return(null==t?0:t.length)?Ir(t,1):[]}function head(t){return t&&t.length?t[0]:l}var oo=hi((function(t){var e=Ye(t,Li);return e.length&&e[0]===t[0]?Hr(e):[]})),ao=hi((function(t){var e=lo(t),n=Ye(t,Li);return e===lo(n)?e=l:n.pop(),n.length&&n[0]===t[0]?Hr(n,xs(e,2)):[]})),uo=hi((function(t){var e=lo(t),n=Ye(t,Li);return(e="function"==typeof e?e:l)&&n.pop(),n.length&&n[0]===t[0]?Hr(n,l,e):[]}));function lo(t){var e=null==t?0:t.length;return e?t[e-1]:l}var co=hi(ho);function ho(t,e){return t&&t.length&&e&&e.length?oi(t,e):t}var fo=vs((function(t,e){var n=null==t?0:t.length,r=_r(t,e);return ai(t,Ye(e,(function(t){return Ds(t,n)?+t:t})).sort(zi)),r}));function po(t){return null==t?t:Pn.call(t)}var mo=hi((function(t){return Ei(Ir(t,1,oa,!0))})),go=hi((function(t){var e=lo(t);return oa(e)&&(e=l),Ei(Ir(t,1,oa,!0),xs(e,2))})),vo=hi((function(t){var e=lo(t);return e="function"==typeof e?e:l,Ei(Ir(t,1,oa,!0),l,e)}));function yo(t){if(!t||!t.length)return[];var e=0;return t=He(t,(function(t){if(oa(t))return e=on(t.length,e),!0})),ln(e,(function(e){return Ye(t,sn(e))}))}function bo(t,e){if(!t||!t.length)return[];var n=yo(t);return null==e?n:Ye(n,(function(t){return Ue(e,l,t)}))}var _o=hi((function(t,e){return oa(t)?Er(t,e):[]})),wo=hi((function(t){return ji(He(t,oa))})),To=hi((function(t){var e=lo(t);return oa(e)&&(e=l),ji(He(t,oa),xs(e,2))})),xo=hi((function(t){var e=lo(t);return e="function"==typeof e?e:l,ji(He(t,oa),l,e)})),So=hi(yo);var Eo=hi((function(t){var e=t.length,n=e>1?t[e-1]:l;return n="function"==typeof n?(t.pop(),n):l,bo(t,n)}));function ko(t){var e=Qn(t);return e.__chain__=!0,e}function Ao(t,e){return e(t)}var Co=vs((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(object){return _r(object,t)};return!(e>1||this.__actions__.length)&&r instanceof nr&&Ds(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:Ao,args:[o],thisArg:l}),new er(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(l),t}))):this.thru(o)}));var Oo=Yi((function(t,e,n){Yt.call(t,n)?++t[n]:yr(t,n,1)}));var jo=Zi(ro),Io=Zi(io);function Lo(t,e){return(ra(t)?Fe:kr)(t,xs(e,3))}function Do(t,e){return(ra(t)?ze:Ar)(t,xs(e,3))}var Po=Yi((function(t,e,n){Yt.call(t,n)?t[n].push(e):yr(t,n,[e])}));var Mo=hi((function(t,path,e){var n=-1,o="function"==typeof path,l=sa(t)?r(t.length):[];return kr(t,(function(t){l[++n]=o?Ue(path,t,e):Vr(t,path,e)})),l})),No=Yi((function(t,e,n){yr(t,n,e)}));function map(t,e){return(ra(t)?Ye:Zr)(t,xs(e,3))}var Ro=Yi((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var Uo=hi((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Ps(t,e[0],e[1])?e=[]:n>2&&Ps(e[0],e[1],e[2])&&(e=[e[0]]),ii(t,Ir(e,1),[])})),Bo=me||function(){return ke.Date.now()};function Fo(t,e,n){return e=n?l:e,e=t&&null==e?t.length:e,ds(t,y,l,l,l,l,e)}function zo(t,e){var n;if("function"!=typeof e)throw new Ft(c);return t=Aa(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=l),n}}var qo=hi((function(t,e,n){var r=1;if(n.length){var o=Tn(n,Ts(qo));r|=m}return ds(t,r,e,n,o)})),Ho=hi((function(object,t,e){var n=3;if(e.length){var r=Tn(e,Ts(Ho));n|=m}return ds(t,n,object,e,r)}));function Vo(t,e,n){var r,o,h,d,f,m,v=0,y=!1,_=!1,w=!0;if("function"!=typeof t)throw new Ft(c);function T(time){var e=r,n=o;return r=o=l,v=time,d=t.apply(n,e)}function x(time){var t=time-m;return m===l||t>=e||t<0||_&&time-v>=h}function S(){var time=Bo();if(x(time))return E(time);f=Ws(S,function(time){var t=e-(time-m);return _?jn(t,h-(time-v)):t}(time))}function E(time){return f=l,w&&r?T(time):(r=o=l,d)}function k(){var time=Bo(),t=x(time);if(r=arguments,o=this,m=time,t){if(f===l)return function(time){return v=time,f=Ws(S,e),y?T(time):d}(m);if(_)return Ri(f),f=Ws(S,e),T(m)}return f===l&&(f=Ws(S,e)),d}return e=Oa(e)||0,fa(n)&&(y=!!n.leading,h=(_="maxWait"in n)?on(Oa(n.maxWait)||0,e):h,w="trailing"in n?!!n.trailing:w),k.cancel=function(){f!==l&&Ri(f),v=0,r=m=o=f=l},k.flush=function(){return f===l?d:E(Bo())},k}var Wo=hi((function(t,e){return Sr(t,1,e)})),Yo=hi((function(t,e,n){return Sr(t,Oa(e)||0,n)}));function Go(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Ft(c);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],l=n.cache;if(l.has(o))return l.get(o);var c=t.apply(this,r);return n.cache=l.set(o,c)||l,c};return n.cache=new(Go.Cache||sr),n}function Xo(t){if("function"!=typeof t)throw new Ft(c);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Go.Cache=sr;var Ko=Mi((function(t,e){var n=(e=1==e.length&&ra(e[0])?Ye(e[0],hn(xs())):Ye(Ir(e,1),hn(xs()))).length;return hi((function(r){for(var o=-1,l=jn(r.length,n);++o<l;)r[o]=e[o].call(this,r[o]);return Ue(t,this,r)}))})),$o=hi((function(t,e){var n=Tn(e,Ts($o));return ds(t,m,l,e,n)})),Qo=hi((function(t,e){var n=Tn(e,Ts(Qo));return ds(t,v,l,e,n)})),Jo=vs((function(t,e){return ds(t,_,l,l,l,e)}));function Zo(t,e){return t===e||t!=t&&e!=e}var ta=as(Fr),ea=as((function(t,e){return t>=e})),na=Wr(function(){return arguments}())?Wr:function(t){return pa(t)&&Yt.call(t,"callee")&&!se.call(t,"callee")},ra=r.isArray,ia=Le?hn(Le):function(t){return pa(t)&&Br(t)==H};function sa(t){return null!=t&&da(t.length)&&!ca(t)}function oa(t){return pa(t)&&sa(t)}var aa=Ce||Ou,ua=De?hn(De):function(t){return pa(t)&&Br(t)==O};function la(t){if(!pa(t))return!1;var e=Br(t);return e==j||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!va(t)}function ca(t){if(!fa(t))return!1;var e=Br(t);return e==I||e==L||"[object AsyncFunction]"==e||"[object Proxy]"==e}function ha(t){return"number"==typeof t&&t==Aa(t)}function da(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=T}function fa(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function pa(t){return null!=t&&"object"==typeof t}var ma=Pe?hn(Pe):function(t){return pa(t)&&Os(t)==D};function ga(t){return"number"==typeof t||pa(t)&&Br(t)==P}function va(t){if(!pa(t)||Br(t)!=M)return!1;var e=re(t);if(null===e)return!0;var n=Yt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Wt.call(n)==$t}var ya=Me?hn(Me):function(t){return pa(t)&&Br(t)==R};var ba=Ne?hn(Ne):function(t){return pa(t)&&Os(t)==U};function _a(t){return"string"==typeof t||!ra(t)&&pa(t)&&Br(t)==B}function wa(t){return"symbol"==typeof t||pa(t)&&Br(t)==F}var Ta=Re?hn(Re):function(t){return pa(t)&&da(t.length)&&!!be[Br(t)]};var xa=as(Jr),Sa=as((function(t,e){return t<=e}));function Ea(t){if(!t)return[];if(sa(t))return _a(t)?kn(t):Vi(t);if(ue&&t[ue])return function(t){for(var data,e=[];!(data=t.next()).done;)e.push(data.value);return e}(t[ue]());var e=Os(t);return(e==D?_n:e==U?xn:Za)(t)}function ka(t){return t?(t=Oa(t))===w||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function Aa(t){var e=ka(t),n=e%1;return e==e?n?e-n:e:0}function Ca(t){return t?wr(Aa(t),0,S):0}function Oa(t){if("number"==typeof t)return t;if(wa(t))return x;if(fa(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=fa(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=cn(t);var n=Ct.test(t);return n||jt.test(t)?xe(t.slice(2),n?2:8):At.test(t)?x:+t}function ja(t){return Wi(t,Wa(t))}function Ia(t){return null==t?"":Si(t)}var La=Gi((function(object,source){if(Us(source)||sa(source))Wi(source,Va(source),object);else for(var t in source)Yt.call(source,t)&&pr(object,t,source[t])})),Da=Gi((function(object,source){Wi(source,Wa(source),object)})),Pa=Gi((function(object,source,t,e){Wi(source,Wa(source),object,e)})),Ma=Gi((function(object,source,t,e){Wi(source,Va(source),object,e)})),Na=vs(_r);var Ra=hi((function(object,t){object=Rt(object);var e=-1,n=t.length,r=n>2?t[2]:l;for(r&&Ps(t[0],t[1],r)&&(n=1);++e<n;)for(var source=t[e],o=Wa(source),c=-1,h=o.length;++c<h;){var d=o[c],f=object[d];(f===l||Zo(f,Ht[d])&&!Yt.call(object,d))&&(object[d]=source[d])}return object})),Ua=hi((function(t){return t.push(l,ps),Ue(Ga,l,t)}));function Ba(object,path,t){var e=null==object?l:Rr(object,path);return e===l?t:e}function Fa(object,path){return null!=object&&js(object,path,qr)}var za=ns((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Kt.call(e)),t[e]=n}),fu(gu)),qa=ns((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Kt.call(e)),Yt.call(t,e)?t[e].push(n):t[e]=[n]}),xs),Ha=hi(Vr);function Va(object){return sa(object)?ur(object):$r(object)}function Wa(object){return sa(object)?ur(object,!0):Qr(object)}var Ya=Gi((function(object,source,t){ni(object,source,t)})),Ga=Gi((function(object,source,t,e){ni(object,source,t,e)})),Xa=vs((function(object,t){var e={};if(null==object)return e;var n=!1;t=Ye(t,(function(path){return path=Pi(path,object),n||(n=path.length>1),path})),Wi(object,bs(object),e),n&&(e=Tr(e,7,ms));for(var r=t.length;r--;)ki(e,t[r]);return e}));var Ka=vs((function(object,t){return null==object?{}:function(object,t){return si(object,t,(function(t,path){return Fa(object,path)}))}(object,t)}));function $a(object,t){if(null==object)return{};var e=Ye(bs(object),(function(t){return[t]}));return t=xs(t),si(object,e,(function(e,path){return t(e,path[0])}))}var Qa=hs(Va),Ja=hs(Wa);function Za(object){return null==object?[]:dn(object,Va(object))}var tu=Qi((function(t,e,n){return e=e.toLowerCase(),t+(n?eu(e):e)}));function eu(t){return lu(Ia(t).toLowerCase())}function nu(t){return(t=Ia(t))&&t.replace(Lt,gn).replace(de,"")}var ru=Qi((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),iu=Qi((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),su=$i("toLowerCase");var ou=Qi((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var au=Qi((function(t,e,n){return t+(n?" ":"")+lu(e)}));var uu=Qi((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),lu=$i("toUpperCase");function cu(t,pattern,e){return t=Ia(t),(pattern=e?l:pattern)===l?function(t){return ge.test(t)}(t)?function(t){return t.match(pe)||[]}(t):function(t){return t.match(Tt)||[]}(t):t.match(pattern)||[]}var hu=hi((function(t,e){try{return Ue(t,l,e)}catch(t){return la(t)?t:new yt(t)}})),du=vs((function(object,t){return Fe(t,(function(t){t=Qs(t),yr(object,t,qo(object[t],object))})),object}));function fu(t){return function(){return t}}var pu=ts(),mu=ts(!0);function gu(t){return t}function vu(t){return Kr("function"==typeof t?t:Tr(t,1))}var yu=hi((function(path,t){return function(object){return Vr(object,path,t)}})),bu=hi((function(object,t){return function(path){return Vr(object,path,t)}}));function _u(object,source,t){var e=Va(source),n=Nr(source,e);null!=t||fa(source)&&(n.length||!e.length)||(t=source,source=object,object=this,n=Nr(source,Va(source)));var r=!(fa(t)&&"chain"in t&&!t.chain),o=ca(object);return Fe(n,(function(t){var e=source[t];object[t]=e,o&&(object.prototype[t]=function(){var t=this.__chain__;if(r||t){var n=object(this.__wrapped__);return(n.__actions__=Vi(this.__actions__)).push({func:e,args:arguments,thisArg:object}),n.__chain__=t,n}return e.apply(object,Ge([this.value()],arguments))})})),object}function wu(){}var Tu=is(Ye),xu=is(qe),Su=is($e);function Eu(path){return Ms(path)?sn(Qs(path)):function(path){return function(object){return Rr(object,path)}}(path)}var ku=os(),Au=os(!0);function Cu(){return[]}function Ou(){return!1}var ju=rs((function(t,e){return t+e}),0),Iu=ls("ceil"),Lu=rs((function(t,e){return t/e}),1),Du=ls("floor");var source,Pu=rs((function(t,e){return t*e}),1),Mu=ls("round"),Nu=rs((function(t,e){return t-e}),0);return Qn.after=function(t,e){if("function"!=typeof e)throw new Ft(c);return t=Aa(t),function(){if(--t<1)return e.apply(this,arguments)}},Qn.ary=Fo,Qn.assign=La,Qn.assignIn=Da,Qn.assignInWith=Pa,Qn.assignWith=Ma,Qn.at=Na,Qn.before=zo,Qn.bind=qo,Qn.bindAll=du,Qn.bindKey=Ho,Qn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return ra(t)?t:[t]},Qn.chain=ko,Qn.chunk=function(t,e,n){e=(n?Ps(t,e,n):e===l)?1:on(Aa(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var c=0,h=0,d=r(Se(o/e));c<o;)d[h++]=yi(t,c,c+=e);return d},Qn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,o=[];++e<n;){var l=t[e];l&&(o[r++]=l)}return o},Qn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],o=t;o--;)e[o-1]=arguments[o];return Ge(ra(n)?Vi(n):[n],Ir(e,1))},Qn.cond=function(t){var e=null==t?0:t.length,n=xs();return t=e?Ye(t,(function(t){if("function"!=typeof t[1])throw new Ft(c);return[n(t[0]),t[1]]})):[],hi((function(n){for(var r=-1;++r<e;){var o=t[r];if(Ue(o[0],this,n))return Ue(o[1],this,n)}}))},Qn.conforms=function(source){return function(source){var t=Va(source);return function(object){return xr(object,source,t)}}(Tr(source,1))},Qn.constant=fu,Qn.countBy=Oo,Qn.create=function(t,e){var n=Jn(t);return null==e?n:vr(n,e)},Qn.curry=function t(e,n,r){var o=ds(e,8,l,l,l,l,l,n=r?l:n);return o.placeholder=t.placeholder,o},Qn.curryRight=function t(e,n,r){var o=ds(e,f,l,l,l,l,l,n=r?l:n);return o.placeholder=t.placeholder,o},Qn.debounce=Vo,Qn.defaults=Ra,Qn.defaultsDeep=Ua,Qn.defer=Wo,Qn.delay=Yo,Qn.difference=to,Qn.differenceBy=eo,Qn.differenceWith=no,Qn.drop=function(t,e,n){var r=null==t?0:t.length;return r?yi(t,(e=n||e===l?1:Aa(e))<0?0:e,r):[]},Qn.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?yi(t,0,(e=r-(e=n||e===l?1:Aa(e)))<0?0:e):[]},Qn.dropRightWhile=function(t,e){return t&&t.length?Ci(t,xs(e,3),!0,!0):[]},Qn.dropWhile=function(t,e){return t&&t.length?Ci(t,xs(e,3),!0):[]},Qn.fill=function(t,e,n,r){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&Ps(t,e,n)&&(n=0,r=o),function(t,e,n,r){var o=t.length;for((n=Aa(n))<0&&(n=-n>o?0:o+n),(r=r===l||r>o?o:Aa(r))<0&&(r+=o),r=n>r?0:Ca(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},Qn.filter=function(t,e){return(ra(t)?He:jr)(t,xs(e,3))},Qn.flatMap=function(t,e){return Ir(map(t,e),1)},Qn.flatMapDeep=function(t,e){return Ir(map(t,e),w)},Qn.flatMapDepth=function(t,e,n){return n=n===l?1:Aa(n),Ir(map(t,e),n)},Qn.flatten=so,Qn.flattenDeep=function(t){return(null==t?0:t.length)?Ir(t,w):[]},Qn.flattenDepth=function(t,e){return(null==t?0:t.length)?Ir(t,e=e===l?1:Aa(e)):[]},Qn.flip=function(t){return ds(t,512)},Qn.flow=pu,Qn.flowRight=mu,Qn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r},Qn.functions=function(object){return null==object?[]:Nr(object,Va(object))},Qn.functionsIn=function(object){return null==object?[]:Nr(object,Wa(object))},Qn.groupBy=Po,Qn.initial=function(t){return(null==t?0:t.length)?yi(t,0,-1):[]},Qn.intersection=oo,Qn.intersectionBy=ao,Qn.intersectionWith=uo,Qn.invert=za,Qn.invertBy=qa,Qn.invokeMap=Mo,Qn.iteratee=vu,Qn.keyBy=No,Qn.keys=Va,Qn.keysIn=Wa,Qn.map=map,Qn.mapKeys=function(object,t){var e={};return t=xs(t,3),Pr(object,(function(n,r,object){yr(e,t(n,r,object),n)})),e},Qn.mapValues=function(object,t){var e={};return t=xs(t,3),Pr(object,(function(n,r,object){yr(e,r,t(n,r,object))})),e},Qn.matches=function(source){return ti(Tr(source,1))},Qn.matchesProperty=function(path,t){return ei(path,Tr(t,1))},Qn.memoize=Go,Qn.merge=Ya,Qn.mergeWith=Ga,Qn.method=yu,Qn.methodOf=bu,Qn.mixin=_u,Qn.negate=Xo,Qn.nthArg=function(t){return t=Aa(t),hi((function(e){return ri(e,t)}))},Qn.omit=Xa,Qn.omitBy=function(object,t){return $a(object,Xo(xs(t)))},Qn.once=function(t){return zo(2,t)},Qn.orderBy=function(t,e,n,r){return null==t?[]:(ra(e)||(e=null==e?[]:[e]),ra(n=r?l:n)||(n=null==n?[]:[n]),ii(t,e,n))},Qn.over=Tu,Qn.overArgs=Ko,Qn.overEvery=xu,Qn.overSome=Su,Qn.partial=$o,Qn.partialRight=Qo,Qn.partition=Ro,Qn.pick=Ka,Qn.pickBy=$a,Qn.property=Eu,Qn.propertyOf=function(object){return function(path){return null==object?l:Rr(object,path)}},Qn.pull=co,Qn.pullAll=ho,Qn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?oi(t,e,xs(n,2)):t},Qn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?oi(t,e,l,n):t},Qn.pullAt=fo,Qn.range=ku,Qn.rangeRight=Au,Qn.rearg=Jo,Qn.reject=function(t,e){return(ra(t)?He:jr)(t,Xo(xs(e,3)))},Qn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,o=[],l=t.length;for(e=xs(e,3);++r<l;){var c=t[r];e(c,r,t)&&(n.push(c),o.push(r))}return ai(t,o),n},Qn.rest=function(t,e){if("function"!=typeof t)throw new Ft(c);return hi(t,e=e===l?e:Aa(e))},Qn.reverse=po,Qn.sampleSize=function(t,e,n){return e=(n?Ps(t,e,n):e===l)?1:Aa(e),(ra(t)?cr:fi)(t,e)},Qn.set=function(object,path,t){return null==object?object:pi(object,path,t)},Qn.setWith=function(object,path,t,e){return e="function"==typeof e?e:l,null==object?object:pi(object,path,t,e)},Qn.shuffle=function(t){return(ra(t)?dr:vi)(t)},Qn.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Ps(t,e,n)?(e=0,n=r):(e=null==e?0:Aa(e),n=n===l?r:Aa(n)),yi(t,e,n)):[]},Qn.sortBy=Uo,Qn.sortedUniq=function(t){return t&&t.length?Ti(t):[]},Qn.sortedUniqBy=function(t,e){return t&&t.length?Ti(t,xs(e,2)):[]},Qn.split=function(t,e,n){return n&&"number"!=typeof n&&Ps(t,e,n)&&(e=n=l),(n=n===l?S:n>>>0)?(t=Ia(t))&&("string"==typeof e||null!=e&&!ya(e))&&!(e=Si(e))&&bn(t)?Ni(kn(t),0,n):t.split(e,n):[]},Qn.spread=function(t,e){if("function"!=typeof t)throw new Ft(c);return e=null==e?0:on(Aa(e),0),hi((function(n){var r=n[e],o=Ni(n,0,e);return r&&Ge(o,r),Ue(t,this,o)}))},Qn.tail=function(t){var e=null==t?0:t.length;return e?yi(t,1,e):[]},Qn.take=function(t,e,n){return t&&t.length?yi(t,0,(e=n||e===l?1:Aa(e))<0?0:e):[]},Qn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?yi(t,(e=r-(e=n||e===l?1:Aa(e)))<0?0:e,r):[]},Qn.takeRightWhile=function(t,e){return t&&t.length?Ci(t,xs(e,3),!1,!0):[]},Qn.takeWhile=function(t,e){return t&&t.length?Ci(t,xs(e,3)):[]},Qn.tap=function(t,e){return e(t),t},Qn.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new Ft(c);return fa(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Vo(t,e,{leading:r,maxWait:e,trailing:o})},Qn.thru=Ao,Qn.toArray=Ea,Qn.toPairs=Qa,Qn.toPairsIn=Ja,Qn.toPath=function(t){return ra(t)?Ye(t,Qs):wa(t)?[t]:Vi($s(Ia(t)))},Qn.toPlainObject=ja,Qn.transform=function(object,t,e){var n=ra(object),r=n||aa(object)||Ta(object);if(t=xs(t,4),null==e){var o=object&&object.constructor;e=r?n?new o:[]:fa(object)&&ca(o)?Jn(re(object)):{}}return(r?Fe:Pr)(object,(function(n,r,object){return t(e,n,r,object)})),e},Qn.unary=function(t){return Fo(t,1)},Qn.union=mo,Qn.unionBy=go,Qn.unionWith=vo,Qn.uniq=function(t){return t&&t.length?Ei(t):[]},Qn.uniqBy=function(t,e){return t&&t.length?Ei(t,xs(e,2)):[]},Qn.uniqWith=function(t,e){return e="function"==typeof e?e:l,t&&t.length?Ei(t,l,e):[]},Qn.unset=function(object,path){return null==object||ki(object,path)},Qn.unzip=yo,Qn.unzipWith=bo,Qn.update=function(object,path,t){return null==object?object:Ai(object,path,Di(t))},Qn.updateWith=function(object,path,t,e){return e="function"==typeof e?e:l,null==object?object:Ai(object,path,Di(t),e)},Qn.values=Za,Qn.valuesIn=function(object){return null==object?[]:dn(object,Wa(object))},Qn.without=_o,Qn.words=cu,Qn.wrap=function(t,e){return $o(Di(e),t)},Qn.xor=wo,Qn.xorBy=To,Qn.xorWith=xo,Qn.zip=So,Qn.zipObject=function(t,e){return Ii(t||[],e||[],pr)},Qn.zipObjectDeep=function(t,e){return Ii(t||[],e||[],pi)},Qn.zipWith=Eo,Qn.entries=Qa,Qn.entriesIn=Ja,Qn.extend=Da,Qn.extendWith=Pa,_u(Qn,Qn),Qn.add=ju,Qn.attempt=hu,Qn.camelCase=tu,Qn.capitalize=eu,Qn.ceil=Iu,Qn.clamp=function(t,e,n){return n===l&&(n=e,e=l),n!==l&&(n=(n=Oa(n))==n?n:0),e!==l&&(e=(e=Oa(e))==e?e:0),wr(Oa(t),e,n)},Qn.clone=function(t){return Tr(t,4)},Qn.cloneDeep=function(t){return Tr(t,5)},Qn.cloneDeepWith=function(t,e){return Tr(t,5,e="function"==typeof e?e:l)},Qn.cloneWith=function(t,e){return Tr(t,4,e="function"==typeof e?e:l)},Qn.conformsTo=function(object,source){return null==source||xr(object,source,Va(source))},Qn.deburr=nu,Qn.defaultTo=function(t,e){return null==t||t!=t?e:t},Qn.divide=Lu,Qn.endsWith=function(t,e,n){t=Ia(t),e=Si(e);var r=t.length,o=n=n===l?r:wr(Aa(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},Qn.eq=Zo,Qn.escape=function(t){return(t=Ia(t))&&at.test(t)?t.replace(st,vn):t},Qn.escapeRegExp=function(t){return(t=Ia(t))&>.test(t)?t.replace(mt,"\\$&"):t},Qn.every=function(t,e,n){var r=ra(t)?qe:Cr;return n&&Ps(t,e,n)&&(e=l),r(t,xs(e,3))},Qn.find=jo,Qn.findIndex=ro,Qn.findKey=function(object,t){return Je(object,xs(t,3),Pr)},Qn.findLast=Io,Qn.findLastIndex=io,Qn.findLastKey=function(object,t){return Je(object,xs(t,3),Mr)},Qn.floor=Du,Qn.forEach=Lo,Qn.forEachRight=Do,Qn.forIn=function(object,t){return null==object?object:Lr(object,xs(t,3),Wa)},Qn.forInRight=function(object,t){return null==object?object:Dr(object,xs(t,3),Wa)},Qn.forOwn=function(object,t){return object&&Pr(object,xs(t,3))},Qn.forOwnRight=function(object,t){return object&&Mr(object,xs(t,3))},Qn.get=Ba,Qn.gt=ta,Qn.gte=ea,Qn.has=function(object,path){return null!=object&&js(object,path,zr)},Qn.hasIn=Fa,Qn.head=head,Qn.identity=gu,Qn.includes=function(t,e,n,r){t=sa(t)?t:Za(t),n=n&&!r?Aa(n):0;var o=t.length;return n<0&&(n=on(o+n,0)),_a(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&tn(t,e,n)>-1},Qn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:Aa(n);return o<0&&(o=on(r+o,0)),tn(t,e,o)},Qn.inRange=function(t,e,n){return e=ka(e),n===l?(n=e,e=0):n=ka(n),function(t,e,n){return t>=jn(e,n)&&t<on(e,n)}(t=Oa(t),e,n)},Qn.invoke=Ha,Qn.isArguments=na,Qn.isArray=ra,Qn.isArrayBuffer=ia,Qn.isArrayLike=sa,Qn.isArrayLikeObject=oa,Qn.isBoolean=function(t){return!0===t||!1===t||pa(t)&&Br(t)==C},Qn.isBuffer=aa,Qn.isDate=ua,Qn.isElement=function(t){return pa(t)&&1===t.nodeType&&!va(t)},Qn.isEmpty=function(t){if(null==t)return!0;if(sa(t)&&(ra(t)||"string"==typeof t||"function"==typeof t.splice||aa(t)||Ta(t)||na(t)))return!t.length;var e=Os(t);if(e==D||e==U)return!t.size;if(Us(t))return!$r(t).length;for(var n in t)if(Yt.call(t,n))return!1;return!0},Qn.isEqual=function(t,e){return Yr(t,e)},Qn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:l)?n(t,e):l;return r===l?Yr(t,e,l,n):!!r},Qn.isError=la,Qn.isFinite=function(t){return"number"==typeof t&&je(t)},Qn.isFunction=ca,Qn.isInteger=ha,Qn.isLength=da,Qn.isMap=ma,Qn.isMatch=function(object,source){return object===source||Gr(object,source,Es(source))},Qn.isMatchWith=function(object,source,t){return t="function"==typeof t?t:l,Gr(object,source,Es(source),t)},Qn.isNaN=function(t){return ga(t)&&t!=+t},Qn.isNative=function(t){if(Rs(t))throw new yt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Xr(t)},Qn.isNil=function(t){return null==t},Qn.isNull=function(t){return null===t},Qn.isNumber=ga,Qn.isObject=fa,Qn.isObjectLike=pa,Qn.isPlainObject=va,Qn.isRegExp=ya,Qn.isSafeInteger=function(t){return ha(t)&&t>=-9007199254740991&&t<=T},Qn.isSet=ba,Qn.isString=_a,Qn.isSymbol=wa,Qn.isTypedArray=Ta,Qn.isUndefined=function(t){return t===l},Qn.isWeakMap=function(t){return pa(t)&&Os(t)==z},Qn.isWeakSet=function(t){return pa(t)&&"[object WeakSet]"==Br(t)},Qn.join=function(t,e){return null==t?"":Ie.call(t,e)},Qn.kebabCase=ru,Qn.last=lo,Qn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==l&&(o=(o=Aa(n))<0?on(r+o,0):jn(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):Ze(t,nn,o,!0)},Qn.lowerCase=iu,Qn.lowerFirst=su,Qn.lt=xa,Qn.lte=Sa,Qn.max=function(t){return t&&t.length?Or(t,gu,Fr):l},Qn.maxBy=function(t,e){return t&&t.length?Or(t,xs(e,2),Fr):l},Qn.mean=function(t){return rn(t,gu)},Qn.meanBy=function(t,e){return rn(t,xs(e,2))},Qn.min=function(t){return t&&t.length?Or(t,gu,Jr):l},Qn.minBy=function(t,e){return t&&t.length?Or(t,xs(e,2),Jr):l},Qn.stubArray=Cu,Qn.stubFalse=Ou,Qn.stubObject=function(){return{}},Qn.stubString=function(){return""},Qn.stubTrue=function(){return!0},Qn.multiply=Pu,Qn.nth=function(t,e){return t&&t.length?ri(t,Aa(e)):l},Qn.noConflict=function(){return ke._===this&&(ke._=Qt),this},Qn.noop=wu,Qn.now=Bo,Qn.pad=function(t,e,n){t=Ia(t);var r=(e=Aa(e))?En(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return ss(Ee(o),n)+t+ss(Se(o),n)},Qn.padEnd=function(t,e,n){t=Ia(t);var r=(e=Aa(e))?En(t):0;return e&&r<e?t+ss(e-r,n):t},Qn.padStart=function(t,e,n){t=Ia(t);var r=(e=Aa(e))?En(t):0;return e&&r<e?ss(e-r,n)+t:t},Qn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),Ln(Ia(t).replace(vt,""),e||0)},Qn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&Ps(t,e,n)&&(e=n=l),n===l&&("boolean"==typeof e?(n=e,e=l):"boolean"==typeof t&&(n=t,t=l)),t===l&&e===l?(t=0,e=1):(t=ka(t),e===l?(e=t,t=0):e=ka(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=Dn();return jn(t+o*(e-t+Te("1e-"+((o+"").length-1))),e)}return ui(t,e)},Qn.reduce=function(t,e,n){var r=ra(t)?Xe:an,o=arguments.length<3;return r(t,xs(e,4),n,o,kr)},Qn.reduceRight=function(t,e,n){var r=ra(t)?Ke:an,o=arguments.length<3;return r(t,xs(e,4),n,o,Ar)},Qn.repeat=function(t,e,n){return e=(n?Ps(t,e,n):e===l)?1:Aa(e),ci(Ia(t),e)},Qn.replace=function(){var t=arguments,e=Ia(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Qn.result=function(object,path,t){var e=-1,n=(path=Pi(path,object)).length;for(n||(n=1,object=l);++e<n;){var r=null==object?l:object[Qs(path[e])];r===l&&(e=n,r=t),object=ca(r)?r.call(object):r}return object},Qn.round=Mu,Qn.runInContext=t,Qn.sample=function(t){return(ra(t)?lr:di)(t)},Qn.size=function(t){if(null==t)return 0;if(sa(t))return _a(t)?En(t):t.length;var e=Os(t);return e==D||e==U?t.size:$r(t).length},Qn.snakeCase=ou,Qn.some=function(t,e,n){var r=ra(t)?$e:bi;return n&&Ps(t,e,n)&&(e=l),r(t,xs(e,3))},Qn.sortedIndex=function(t,e){return _i(t,e)},Qn.sortedIndexBy=function(t,e,n){return wi(t,e,xs(n,2))},Qn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=_i(t,e);if(r<n&&Zo(t[r],e))return r}return-1},Qn.sortedLastIndex=function(t,e){return _i(t,e,!0)},Qn.sortedLastIndexBy=function(t,e,n){return wi(t,e,xs(n,2),!0)},Qn.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=_i(t,e,!0)-1;if(Zo(t[n],e))return n}return-1},Qn.startCase=au,Qn.startsWith=function(t,e,n){return t=Ia(t),n=null==n?0:wr(Aa(n),0,t.length),e=Si(e),t.slice(n,n+e.length)==e},Qn.subtract=Nu,Qn.sum=function(t){return t&&t.length?un(t,gu):0},Qn.sumBy=function(t,e){return t&&t.length?un(t,xs(e,2)):0},Qn.template=function(t,e,n){var r=Qn.templateSettings;n&&Ps(t,e,n)&&(e=l),t=Ia(t),e=Pa({},e,r,fs);var o,c,h=Pa({},e.imports,r.imports,fs),d=Va(h),f=dn(h,d),m=0,v=e.interpolate||Dt,source="__p += '",y=Ut((e.escape||Dt).source+"|"+v.source+"|"+(v===ct?Et:Dt).source+"|"+(e.evaluate||Dt).source+"|$","g"),_="//# sourceURL="+(Yt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ye+"]")+"\n";t.replace(y,(function(e,n,r,l,h,d){return r||(r=l),source+=t.slice(m,d).replace(Pt,yn),n&&(o=!0,source+="' +\n__e("+n+") +\n'"),h&&(c=!0,source+="';\n"+h+";\n__p += '"),r&&(source+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),m=d+e.length,e})),source+="';\n";var w=Yt.call(e,"variable")&&e.variable;if(w){if(xt.test(w))throw new yt("Invalid `variable` option passed into `_.template`")}else source="with (obj) {\n"+source+"\n}\n";source=(c?source.replace(tt,""):source).replace(et,"$1").replace(nt,"$1;"),source="function("+(w||"obj")+") {\n"+(w?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+source+"return __p\n}";var T=hu((function(){return Mt(d,_+"return "+source).apply(l,f)}));if(T.source=source,la(T))throw T;return T},Qn.times=function(t,e){if((t=Aa(t))<1||t>T)return[];var n=S,r=jn(t,S);e=xs(e),t-=S;for(var o=ln(r,e);++n<t;)e(n);return o},Qn.toFinite=ka,Qn.toInteger=Aa,Qn.toLength=Ca,Qn.toLower=function(t){return Ia(t).toLowerCase()},Qn.toNumber=Oa,Qn.toSafeInteger=function(t){return t?wr(Aa(t),-9007199254740991,T):0===t?t:0},Qn.toString=Ia,Qn.toUpper=function(t){return Ia(t).toUpperCase()},Qn.trim=function(t,e,n){if((t=Ia(t))&&(n||e===l))return cn(t);if(!t||!(e=Si(e)))return t;var r=kn(t),o=kn(e);return Ni(r,pn(r,o),mn(r,o)+1).join("")},Qn.trimEnd=function(t,e,n){if((t=Ia(t))&&(n||e===l))return t.slice(0,An(t)+1);if(!t||!(e=Si(e)))return t;var r=kn(t);return Ni(r,0,mn(r,kn(e))+1).join("")},Qn.trimStart=function(t,e,n){if((t=Ia(t))&&(n||e===l))return t.replace(vt,"");if(!t||!(e=Si(e)))return t;var r=kn(t);return Ni(r,pn(r,kn(e))).join("")},Qn.truncate=function(t,e){var n=30,r="...";if(fa(e)){var o="separator"in e?e.separator:o;n="length"in e?Aa(e.length):n,r="omission"in e?Si(e.omission):r}var c=(t=Ia(t)).length;if(bn(t)){var h=kn(t);c=h.length}if(n>=c)return t;var d=n-En(r);if(d<1)return r;var f=h?Ni(h,0,d).join(""):t.slice(0,d);if(o===l)return f+r;if(h&&(d+=f.length-d),ya(o)){if(t.slice(d).search(o)){var m,v=f;for(o.global||(o=Ut(o.source,Ia(kt.exec(o))+"g")),o.lastIndex=0;m=o.exec(v);)var y=m.index;f=f.slice(0,y===l?d:y)}}else if(t.indexOf(Si(o),d)!=d){var _=f.lastIndexOf(o);_>-1&&(f=f.slice(0,_))}return f+r},Qn.unescape=function(t){return(t=Ia(t))&&ot.test(t)?t.replace(it,Cn):t},Qn.uniqueId=function(t){var e=++Gt;return Ia(t)+e},Qn.upperCase=uu,Qn.upperFirst=lu,Qn.each=Lo,Qn.eachRight=Do,Qn.first=head,_u(Qn,(source={},Pr(Qn,(function(t,e){Yt.call(Qn.prototype,e)||(source[e]=t)})),source),{chain:!1}),Qn.VERSION="4.17.21",Fe(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Qn[t].placeholder=Qn})),Fe(["drop","take"],(function(t,e){nr.prototype[t]=function(n){n=n===l?1:on(Aa(n),0);var r=this.__filtered__&&!e?new nr(this):this.clone();return r.__filtered__?r.__takeCount__=jn(n,r.__takeCount__):r.__views__.push({size:jn(n,S),type:t+(r.__dir__<0?"Right":"")}),r},nr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Fe(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;nr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:xs(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Fe(["head","last"],(function(t,e){var n="take"+(e?"Right":"");nr.prototype[t]=function(){return this[n](1).value()[0]}})),Fe(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");nr.prototype[t]=function(){return this.__filtered__?new nr(this):this[n](1)}})),nr.prototype.compact=function(){return this.filter(gu)},nr.prototype.find=function(t){return this.filter(t).head()},nr.prototype.findLast=function(t){return this.reverse().find(t)},nr.prototype.invokeMap=hi((function(path,t){return"function"==typeof path?new nr(this):this.map((function(e){return Vr(e,path,t)}))})),nr.prototype.reject=function(t){return this.filter(Xo(xs(t)))},nr.prototype.slice=function(t,e){t=Aa(t);var n=this;return n.__filtered__&&(t>0||e<0)?new nr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==l&&(n=(e=Aa(e))<0?n.dropRight(-e):n.take(e-t)),n)},nr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},nr.prototype.toArray=function(){return this.take(S)},Pr(nr.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=Qn[r?"take"+("last"==e?"Right":""):e],c=r||/^find/.test(e);o&&(Qn.prototype[e]=function(){var e=this.__wrapped__,h=r?[1]:arguments,d=e instanceof nr,f=h[0],m=d||ra(e),v=function(t){var e=o.apply(Qn,Ge([t],h));return r&&y?e[0]:e};m&&n&&"function"==typeof f&&1!=f.length&&(d=m=!1);var y=this.__chain__,_=!!this.__actions__.length,w=c&&!y,T=d&&!_;if(!c&&m){e=T?e:new nr(this);var x=t.apply(e,h);return x.__actions__.push({func:Ao,args:[v],thisArg:l}),new er(x,y)}return w&&T?t.apply(this,h):(x=this.thru(v),w?r?x.value()[0]:x.value():x)})})),Fe(["pop","push","shift","sort","splice","unshift"],(function(t){var e=zt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Qn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(ra(o)?o:[],t)}return this[n]((function(n){return e.apply(ra(n)?n:[],t)}))}})),Pr(nr.prototype,(function(t,e){var n=Qn[e];if(n){var r=n.name+"";Yt.call(qn,r)||(qn[r]=[]),qn[r].push({name:e,func:n})}})),qn[es(l,2).name]=[{name:"wrapper",func:l}],nr.prototype.clone=function(){var t=new nr(this.__wrapped__);return t.__actions__=Vi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Vi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Vi(this.__views__),t},nr.prototype.reverse=function(){if(this.__filtered__){var t=new nr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},nr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=ra(t),r=e<0,o=n?t.length:0,view=function(t,e,n){var r=-1,o=n.length;for(;++r<o;){var data=n[r],l=data.size;switch(data.type){case"drop":t+=l;break;case"dropRight":e-=l;break;case"take":e=jn(e,t+l);break;case"takeRight":t=on(t,e-l)}}return{start:t,end:e}}(0,o,this.__views__),l=view.start,c=view.end,h=c-l,d=r?c:l-1,f=this.__iteratees__,m=f.length,v=0,y=jn(h,this.__takeCount__);if(!n||!r&&o==h&&y==h)return Oi(t,this.__actions__);var _=[];t:for(;h--&&v<y;){for(var w=-1,T=t[d+=e];++w<m;){var data=f[w],x=data.iteratee,S=data.type,E=x(T);if(2==S)T=E;else if(!E){if(1==S)continue t;break t}}_[v++]=T}return _},Qn.prototype.at=Co,Qn.prototype.chain=function(){return ko(this)},Qn.prototype.commit=function(){return new er(this.value(),this.__chain__)},Qn.prototype.next=function(){this.__values__===l&&(this.__values__=Ea(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?l:this.__values__[this.__index__++]}},Qn.prototype.plant=function(t){for(var e,n=this;n instanceof Zn;){var r=Zs(n);r.__index__=0,r.__values__=l,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},Qn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof nr){var e=t;return this.__actions__.length&&(e=new nr(this)),(e=e.reverse()).__actions__.push({func:Ao,args:[po],thisArg:l}),new er(e,this.__chain__)}return this.thru(po)},Qn.prototype.toJSON=Qn.prototype.valueOf=Qn.prototype.value=function(){return Oi(this.__wrapped__,this.__actions__)},Qn.prototype.first=Qn.prototype.head,ue&&(Qn.prototype[ue]=function(){return this}),Qn}();ke._=On,(o=function(){return On}.call(e,n,e,r))===l||(r.exports=o)}).call(this)}).call(this,n(45),n(155)(t))},,,,,,,,,,,,,,,,,function(t,e,n){var r=n(572),o=n(573),l=n(574),c=n(575),h=n(576);function d(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}d.prototype.clear=r,d.prototype.delete=o,d.prototype.get=l,d.prototype.has=c,d.prototype.set=h,t.exports=d},function(t,e,n){var r=n(340);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(208),o=n(583),l=n(584),c=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?o(t):l(t)}},function(t,e,n){var r=n(87)(Object,"create");t.exports=r},function(t,e,n){var r=n(597);t.exports=function(map,t){var data=map.__data__;return r(t)?data["string"==typeof t?"string":"hash"]:data.map}},function(t,e,n){var r=n(344),o=n(345);t.exports=function(source,t,object,e){var n=!object;object||(object={});for(var l=-1,c=t.length;++l<c;){var h=t[l],d=e?e(object[h],source[h],h,object,source):void 0;void 0===d&&(d=source[h]),n?o(object,h,d):r(object,h,d)}return object}},,function(t,e,n){"use strict";function r(object,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(object):object}var o=r({HTML:"text/html",isHTML:function(t){return t===o.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),l=r({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(t){return t===l.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});e.assign=function(t,source){if(null===t||"object"!=typeof t)throw new TypeError("target is not an object");for(var e in source)Object.prototype.hasOwnProperty.call(source,e)&&(t[e]=source[e]);return t},e.find=function(t,e,n){if(void 0===n&&(n=Array.prototype),t&&"function"==typeof n.find)return n.find.call(t,e);for(var i=0;i<t.length;i++)if(Object.prototype.hasOwnProperty.call(t,i)){var r=t[i];if(e.call(void 0,r,i,t))return r}},e.freeze=r,e.MIME_TYPE=o,e.NAMESPACE=l},,,,function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return c}));var r=n(0),o=n.n(r),l=function(s){return o.a.atob?o.a.atob(s):t.from(s,"base64").toString("binary")};function c(t){for(var e=l(t),n=new Uint8Array(e.length),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n}}).call(this,n(681).Buffer)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r=n(87)(n(71),"Map");t.exports=r},function(t,e,n){var r=n(71).Symbol;t.exports=r},function(t,e,n){var r=n(346),o=n(611),l=n(350);t.exports=function(object){return l(object)?r(object):o(object)}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){var r=n(342),o=e&&!e.nodeType&&e,l=o&&"object"==typeof t&&t&&!t.nodeType&&t,c=l&&l.exports===o&&r.process,h=function(){try{var t=l&&l.require&&l.require("util").types;return t||c&&c.binding&&c.binding("util")}catch(t){}}();t.exports=h}).call(this,n(155)(t))},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(346),o=n(614),l=n(350);t.exports=function(object){return l(object)?r(object,!0):o(object)}},function(t,e,n){var r=n(619),o=n(351),l=Object.prototype.propertyIsEnumerable,c=Object.getOwnPropertySymbols,h=c?function(object){return null==object?[]:(object=Object(object),r(c(object),(function(symbol){return l.call(object,symbol)})))}:o;t.exports=h},function(t,e,n){var r=n(623),o=n(207),l=n(624),c=n(625),h=n(626),d=n(158),f=n(343),m="[object Map]",v="[object Promise]",y="[object Set]",_="[object WeakMap]",w="[object DataView]",T=f(r),x=f(o),S=f(l),E=f(c),k=f(h),A=d;(r&&A(new r(new ArrayBuffer(1)))!=w||o&&A(new o)!=m||l&&A(l.resolve())!=v||c&&A(new c)!=y||h&&A(new h)!=_)&&(A=function(t){var e=d(t),n="[object Object]"==e?t.constructor:void 0,r=n?f(n):"";if(r)switch(r){case T:return w;case x:return m;case S:return v;case E:return y;case k:return _}return e}),t.exports=A},function(t,e,n){var r=n(629);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},,,,function(t,e,n){"use strict";var r={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var n=e.parent,r=e.slots,o=e.props,l=r(),c=l.default;void 0===c&&(c=[]);var h=l.placeholder;return n._isMounted?c:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||h)?t(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||h):c.length>0?c.map((function(){return t(!1)})):t(!1))}};t.exports=r},,function(t,e,n){t.exports=function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",l="month",c="quarter",h="year",d="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},_=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},w={s:_,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+_(r,2,"0")+":"+_(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,l),s=n-i<0,u=e.clone().add(r+(s?-1:1),l);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",T={};T[g]=y;var p="$isDayjsObject",x=function(t){return t instanceof k||!(!t||!t[p])},S=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();T[s]&&(i=s),n&&(T[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;T[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},E=function(t,e){if(x(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new k(n)},b=w;b.l=S,b.i=x,b.w=function(t,e){return E(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function y(t){this.$L=S(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var _=y.prototype;return _.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(m);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},_.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},_.$utils=function(){return b},_.isValid=function(){return!(this.$d.toString()===f)},_.isSame=function(t,e){var n=E(t);return this.startOf(e)<=n&&n<=this.endOf(e)},_.isAfter=function(t,e){return E(t)<this.startOf(e)},_.isBefore=function(t,e){return this.endOf(e)<E(t)},_.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(t,e){var n=this,r=!!b.u(e)||e,c=b.p(t),f=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},m=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},v=this.$W,y=this.$M,_=this.$D,w="set"+(this.$u?"UTC":"");switch(c){case h:return r?f(1,0):f(31,11);case l:return r?f(1,y):f(0,y+1);case o:var g=this.$locale().weekStart||0,T=(v<g?v+7:v)-g;return f(r?_-T:_+(6-T),y);case a:case d:return m(w+"Hours",0);case u:return m(w+"Minutes",1);case s:return m(w+"Seconds",2);case i:return m(w+"Milliseconds",3);default:return this.clone()}},_.endOf=function(t){return this.startOf(t,!1)},_.$set=function(t,e){var n,o=b.p(t),c="set"+(this.$u?"UTC":""),f=(n={},n[a]=c+"Date",n[d]=c+"Date",n[l]=c+"Month",n[h]=c+"FullYear",n[u]=c+"Hours",n[s]=c+"Minutes",n[i]=c+"Seconds",n[r]=c+"Milliseconds",n)[o],m=o===a?this.$D+(e-this.$W):e;if(o===l||o===h){var v=this.clone().set(d,1);v.$d[f](m),v.init(),this.$d=v.set(d,Math.min(this.$D,v.daysInMonth())).$d}else f&&this.$d[f](m);return this.init(),this},_.set=function(t,e){return this.clone().$set(t,e)},_.get=function(t){return this[b.p(t)]()},_.add=function(r,c){var d,f=this;r=Number(r);var m=b.p(c),v=function(t){var e=E(f);return b.w(e.date(e.date()+Math.round(t*r)),f)};if(m===l)return this.set(l,this.$M+r);if(m===h)return this.set(h,this.$y+r);if(m===a)return v(1);if(m===o)return v(7);var y=(d={},d[s]=e,d[u]=n,d[i]=t,d)[m]||1,_=this.$d.getTime()+r*y;return b.w(_,this)},_.subtract=function(t,e){return this.add(-1*t,e)},_.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,l=n.months,c=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},m=c||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(v,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return b.s(e.$y,4,"0");case"M":return a+1;case"MM":return b.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,l,3);case"MMMM":return h(l,a);case"D":return e.$D;case"DD":return b.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return b.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return m(s,u,!0);case"A":return m(s,u,!1);case"m":return String(u);case"mm":return b.s(u,2,"0");case"s":return String(e.$s);case"ss":return b.s(e.$s,2,"0");case"SSS":return b.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,d,f){var m,v=this,y=b.p(d),_=E(r),w=(_.utcOffset()-this.utcOffset())*e,g=this-_,T=function(){return b.m(v,_)};switch(y){case h:m=T()/12;break;case l:m=T();break;case c:m=T()/3;break;case o:m=(g-w)/6048e5;break;case a:m=(g-w)/864e5;break;case u:m=g/n;break;case s:m=g/e;break;case i:m=g/t;break;default:m=g}return f?m:b.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return T[this.$L]},_.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},_.clone=function(){return b.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},y}(),A=k.prototype;return E.prototype=A,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",l],["$y",h],["$D",d]].forEach((function(t){A[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),E.extend=function(t,e){return t.$i||(t(e,k,E),t.$i=!0),E},E.locale=S,E.isDayjs=x,E.unix=function(t){return E(1e3*t)},E.en=T[g],E.Ls=T,E.p={},E}()},function(t,e,n){"use strict";var r=n(0),o=n(62),l=n(675);d.httpHandler=n(676);var c=function(t){var e={};return t?(t.trim().split("\n").forEach((function(t){var n=t.indexOf(":"),r=t.slice(0,n).trim().toLowerCase(),o=t.slice(n+1).trim();void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]})),e):e};function h(t,e,n){var r=t;return l(e)?(n=e,"string"==typeof t&&(r={uri:t})):r=o({},e,{uri:t}),r.callback=n,r}function d(t,e,n){return f(e=h(t,e,n))}function f(t){if(void 0===t.callback)throw new Error("callback argument missing");var e=!1,n=function(n,r,body){e||(e=!0,t.callback(n,r,body))};function r(){var body=void 0;if(body=m.response?m.response:m.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(t){}return null}(m),x)try{body=JSON.parse(body)}catch(t){}return body}function o(t){return clearTimeout(v),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,n(t,S)}function l(){if(!f){var e;clearTimeout(v),e=t.useXDR&&void 0===m.status?200:1223===m.status?204:m.status;var o=S,l=null;return 0!==e?(o={body:r(),statusCode:e,method:_,headers:{},url:y,rawRequest:m},m.getAllResponseHeaders&&(o.headers=c(m.getAllResponseHeaders()))):l=new Error("Internal XMLHttpRequest Error"),n(l,o,o.body)}}var h,f,m=t.xhr||null;m||(m=t.cors||t.useXDR?new d.XDomainRequest:new d.XMLHttpRequest);var v,y=m.url=t.uri||t.url,_=m.method=t.method||"GET",body=t.body||t.data,w=m.headers=t.headers||{},T=!!t.sync,x=!1,S={body:void 0,headers:{},statusCode:0,method:_,url:y,rawRequest:m};if("json"in t&&!1!==t.json&&(x=!0,w.accept||w.Accept||(w.Accept="application/json"),"GET"!==_&&"HEAD"!==_&&(w["content-type"]||w["Content-Type"]||(w["Content-Type"]="application/json"),body=JSON.stringify(!0===t.json?body:t.json))),m.onreadystatechange=function(){4===m.readyState&&setTimeout(l,0)},m.onload=l,m.onerror=o,m.onprogress=function(){},m.onabort=function(){f=!0},m.ontimeout=o,m.open(_,y,!T,t.username,t.password),T||(m.withCredentials=!!t.withCredentials),!T&&t.timeout>0&&(v=setTimeout((function(){if(!f){f=!0,m.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",o(t)}}),t.timeout)),m.setRequestHeader)for(h in w)w.hasOwnProperty(h)&&m.setRequestHeader(h,w[h]);else if(t.headers&&!function(t){for(var i in t)if(t.hasOwnProperty(i))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(m.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(m),m.send(body||null),m}t.exports=d,t.exports.default=d,d.XMLHttpRequest=r.XMLHttpRequest||function(){},d.XDomainRequest="withCredentials"in new d.XMLHttpRequest?d.XMLHttpRequest:r.XDomainRequest,function(t,e){for(var i=0;i<t.length;i++)e(t[i])}(["get","put","post","patch","head","delete"],(function(t){d["delete"===t?"del":t]=function(e,n,r){return(n=h(e,n,r)).method=t.toUpperCase(),f(n)}}))},function(t,e,n){var r=n(0),o=t.exports={WebVTT:n(677),VTTCue:n(678),VTTRegion:n(679)};r.vttjs=o,r.WebVTT=o.WebVTT;var l=o.VTTCue,c=o.VTTRegion,h=r.VTTCue,d=r.VTTRegion;o.shim=function(){r.VTTCue=l,r.VTTRegion=c},o.restore=function(){r.VTTCue=h,r.VTTRegion=d},r.VTTCue||o.shim()},function(t,e,n){var r,o,l,c,h;r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,o=/^(?=([^\/?#]*))\1([^]*)$/,l=/(?:\/|^)\.(?=\/)/g,c=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,h={buildAbsoluteURL:function(t,e,n){if(n=n||{},t=t.trim(),!(e=e.trim())){if(!n.alwaysNormalize)return t;var r=h.parseURL(t);if(!r)throw new Error("Error trying to parse base URL.");return r.path=h.normalizePath(r.path),h.buildURLFromParts(r)}var l=h.parseURL(e);if(!l)throw new Error("Error trying to parse relative URL.");if(l.scheme)return n.alwaysNormalize?(l.path=h.normalizePath(l.path),h.buildURLFromParts(l)):e;var c=h.parseURL(t);if(!c)throw new Error("Error trying to parse base URL.");if(!c.netLoc&&c.path&&"/"!==c.path[0]){var d=o.exec(c.path);c.netLoc=d[1],c.path=d[2]}c.netLoc&&!c.path&&(c.path="/");var f={scheme:c.scheme,netLoc:l.netLoc,path:null,params:l.params,query:l.query,fragment:l.fragment};if(!l.netLoc&&(f.netLoc=c.netLoc,"/"!==l.path[0]))if(l.path){var m=c.path,v=m.substring(0,m.lastIndexOf("/")+1)+l.path;f.path=h.normalizePath(v)}else f.path=c.path,l.params||(f.params=c.params,l.query||(f.query=c.query));return null===f.path&&(f.path=n.alwaysNormalize?h.normalizePath(l.path):l.path),h.buildURLFromParts(f)},parseURL:function(t){var e=r.exec(t);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(path){for(path=path.split("").reverse().join("").replace(l,"");path.length!==(path=path.replace(c,"")).length;);return path.split("").reverse().join("")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}},t.exports=h},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,o=/^application\/dash\+xml/i,l=function(t){return r.test(t)?"hls":o.test(t)?"dash":"application/vnd.videojs.vhs+json"===t?"vhs-json":null}},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(131),o=function(t,b){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(t[p]=b[p])},o(t,b)};var l=r.helpers,c=l.getOptions,h=l.addClasses,d=l.canUseDOM,f=function(t){function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.apply(this,n)||this;return e.instances.set(n[0],o),o}return function(t,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function e(){this.constructor=t}o(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}(e,t),e.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),(function(t){"init"===t.getAttribute("data-simplebar")||e.instances.has(t)||new e(t,c(t.attributes))}))},e.removeObserver=function(){var t;null===(t=e.globalObserver)||void 0===t||t.disconnect()},e.prototype.initDOM=function(){var t,e,n,o=this;if(!Array.prototype.filter.call(this.el.children,(function(t){return t.classList.contains(o.classNames.wrapper)})).length){for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),h(this.wrapperEl,this.classNames.wrapper),h(this.contentWrapperEl,this.classNames.contentWrapper),h(this.offsetEl,this.classNames.offset),h(this.maskEl,this.classNames.mask),h(this.contentEl,this.classNames.contentEl),h(this.placeholderEl,this.classNames.placeholder),h(this.heightAutoObserverWrapperEl,this.classNames.heightAutoObserverWrapperEl),h(this.heightAutoObserverEl,this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl),null===(t=this.contentWrapperEl)||void 0===t||t.setAttribute("tabindex",this.options.tabIndex.toString()),null===(e=this.contentWrapperEl)||void 0===e||e.setAttribute("role","region"),null===(n=this.contentWrapperEl)||void 0===n||n.setAttribute("aria-label",this.options.ariaLabel)}if(!this.axis.x.track.el||!this.axis.y.track.el){var track=document.createElement("div"),l=document.createElement("div");h(track,this.classNames.track),h(l,this.classNames.scrollbar),track.appendChild(l),this.axis.x.track.el=track.cloneNode(!0),h(this.axis.x.track.el,this.classNames.horizontal),this.axis.y.track.el=track.cloneNode(!0),h(this.axis.y.track.el,this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}r.prototype.initDOM.call(this),this.el.setAttribute("data-simplebar","init")},e.prototype.unMount=function(){r.prototype.unMount.call(this),e.instances.delete(this.el)},e.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(e.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))},e.handleMutations=function(t){t.forEach((function(t){t.addedNodes.forEach((function(t){1===t.nodeType&&(t.hasAttribute("data-simplebar")?!e.instances.has(t)&&document.documentElement.contains(t)&&new e(t,c(t.attributes)):t.querySelectorAll("[data-simplebar]").forEach((function(t){"init"!==t.getAttribute("data-simplebar")&&!e.instances.has(t)&&document.documentElement.contains(t)&&new e(t,c(t.attributes))})))})),t.removedNodes.forEach((function(t){var n;1===t.nodeType&&("init"===t.getAttribute("data-simplebar")?!document.documentElement.contains(t)&&(null===(n=e.instances.get(t))||void 0===n||n.unMount()):Array.prototype.forEach.call(t.querySelectorAll('[data-simplebar="init"]'),(function(t){var n;!document.documentElement.contains(t)&&(null===(n=e.instances.get(t))||void 0===n||n.unMount())})))}))}))},e.instances=new WeakMap,e}(r);d&&f.initHtmlApi()},,,,,function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t)||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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){var n=e.options,r=e.callbacks,i=e.map,s=e.useObjectManager,l=e.objectManagerClusterize,c=e.useHtmlInLayout?'\n <div v-html="properties.balloonContentHeader"></div>\n <div v-html="properties.balloonContentBody"></div>\n <div v-html="properties.balloonContentFooter"></div>\n ':"\n <div>{{ properties.balloonContentHeader }}</div>\n <div>{{ properties.balloonContentBody }}</div>\n <div>{{ properties.balloonContentFooter }}</div>\n ",u={},p=[];if(t.forEach((function(t){t.clusterName?u[t.clusterName]=u[t.clusterName]?[].concat(a(u[t.clusterName]),[t]):[t]:p.push(t)})),Object.keys(u).forEach((function(t){var e=o({},n[t])||{},a=r[t]||{},p=e.layout||c;e.clusterBalloonItemContentLayout=ymaps.templateLayoutFactory.createClass(p);var h=e.clusterBalloonLayout||e.clusterLayout;delete e.clusterBalloonLayout;var d=h?ymaps.templateLayoutFactory.createClass(h):e.clusterBalloonContentLayout||"cluster#balloonTwoColumns";e.clusterBalloonContentLayout=d;var f=e.clusterIconContentLayout;if(e.clusterIconContentLayout=f&&ymaps.templateLayoutFactory.createClass(f),s){var m=new ymaps.ObjectManager(Object.assign({clusterize:l},e));Object.keys(a).forEach((function(t){m.clusters.events.add(t,a[t])})),m.add(u[t]),i.geoObjects.add(m)}else{var v=new ymaps.Clusterer(e);Object.keys(a).forEach((function(t){v.events.add(t,a[t])})),e.createCluster&&(v.createCluster=e.createCluster),v.add(u[t]),i.geoObjects.add(v)}})),p.length){var h=s?new ymaps.ObjectManager({clusterize:!1}):new ymaps.GeoObjectCollection;p.forEach((function(t){return h.add(t)})),i.geoObjects.add(h)}}function d(t){return t.charAt(0).toUpperCase()+t.slice(1)}function f(t){return(t.icon.color||"blue")+(t.icon.glyph?d(t.icon.glyph):t.icon.content?"Stretchy":"")}function u(t){return t.map((function(t){return Array.isArray(t)?u(t):+t}))}function p(t,e){var n=[];return function t(e,r){if(e===r)return!0;if(e instanceof Date&&r instanceof Date)return+e==+r;if("function"==typeof e&&"function"==typeof r)return!0;if("object"!==l(e)||"object"!==l(r))return!1;if(function(t,e){for(var r=n.length;r--;)if(!(n[r][0]!==t&&n[r][0]!==e||n[r][1]!==e&&n[r][1]!==t))return!0;return!1}(e,r))return!0;n.push([e,r]);var a=Object.keys(e),i=a.length;if(Object.keys(r).length!==i)return!1;for(;i--;)if(!t(e[a[i]],r[a[i]]))return!1;return!0}(t,e)}n.d(e,"b",(function(){return A}));var m=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.events={},this.ymapReady=!1,this.scriptIsNotAttached=!0}var e,n;return e=t,(n=[{key:"$on",value:function(t,e){var n=this;return this.events[t]||(this.events[t]=[]),this.events[t].push(e),function(){n.events[t]=n.events[t].filter((function(t){return e!==t}))}}},{key:"$emit",value:function(t,e){var n=this.events[t];n&&n.forEach((function(t){return t(e)}))}}])&&c(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()),v=["fullscreenControl","geolocationControl","routeEditor","rulerControl","searchControl","trafficControl","typeSelector","zoomControl","routeButtonControl","routePanelControl","smallMapDefaultSet","mediumMapDefaultSet","largeMapDefaultSet"];function y(t){return 0===t.filter((function(t){return![].concat(v,["default"]).includes(t)})).length}function _(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(e,n){if(window.ymaps)return e();if(document.getElementById("vue-yandex-maps"))m.$on("scriptIsLoaded",e);else{var r=document.createElement("SCRIPT"),o=t.apiKey,a=void 0===o?"":o,i=t.suggestApiKey,s=void 0===i?"":i,l=t.lang,c=void 0===l?"ru_RU":l,u=t.version,p=void 0===u?"2.1":u,h=t.coordorder,d=void 0===h?"latlong":h,f=t.debug,v=void 0!==f&&f,b=t.enterprise,y=void 0!==b&&b,g=v?"debug":"release",_="lang=".concat(c).concat(a&&"&apikey=".concat(a),"&mode=").concat(g,"&coordorder=").concat(d);s&&(_+="&suggest_apikey=".concat(s));var w="https://".concat(y?"enterprise.":"","api-maps.yandex.ru/").concat(p,"/?").concat(_);r.setAttribute("src",w),r.setAttribute("async",""),r.setAttribute("defer",""),r.setAttribute("id","vue-yandex-maps"),document.head.appendChild(r),m.scriptIsNotAttached=!1,r.onload=function(){ymaps.ready((function(){m.ymapReady=!0,m.$emit("scriptIsLoaded"),e()}))},r.onerror=n}}))}var w,b=1,T=m,g=["actionend","balloonclose","balloonopen","click","contextmenu","dblclick","destroy","hintclose","hintopen","optionschange","sizechange","typechange"],x={pluginOptions:{},provide:function(){var t,e,n,r,o,a,i=this,s=[],l=[];return null!=this.balloonComponent&&(r=this.balloonComponent,o=null,a="vue-balloon-".concat(b),b+=1,n=function(t,e){var n=ymaps.templateLayoutFactory.createClass('<div id="'.concat(a,'"><div>'),{build:function(){n.superclass.build.call(this),(o=new w({parent:t.$root,data:function(){return{props:t.$props,listeners:t.$listeners}},propsData:{marker:e,component:r}})).$mount("#".concat(a))},clear:function(){o.$destroy(),o=null,n.superclass.clear.call(this)}});return n}),{useObjectManager:this.useObjectManager,addMarker:this.addMarker,deleteMarker:function(e){i.myMap.geoObjects&&(s.push(e),t&&clearTimeout(t),t=setTimeout((function(){i.deleteMarkers(s),s=[]}),0))},compareValues:function(t){var n=t.newVal,r=t.oldVal,o=t.marker;p(n,r)||(l.push(o),e&&clearTimeout(e),e=setTimeout((function(){i.setMarkers(l),l=[]}),0))},makeComponentBalloonTemplate:n}},data:function(){return{ymapId:"yandexMap".concat(Math.round(1e5*Math.random())),style:this.ymapClass?"":"width: 100%; height: 100%;",isReady:!1,debounce:null}},props:{coords:{type:Array,required:!0},zoom:{validator:function(t){return!Number.isNaN(t)},default:18},bounds:Array,clusterOptions:{type:Object,default:function(){return{}}},clusterCallbacks:{type:Object,default:function(){return{}}},behaviors:{type:Array,default:function(){return["default"]}},controls:{type:Array,default:function(){return["default"]},validator:function(t){return y(t)}},detailedControls:{type:Object,validator:function(t){return y(Object.keys(t))}},scrollZoom:{type:Boolean,default:!0},mapType:{type:String,default:"map",validator:function(t){return["map","satellite","hybrid"].includes(t)}},placemarks:{type:Array,default:function(){return[]}},useObjectManager:{type:Boolean,default:!1},objectManagerClusterize:{type:Boolean,default:!0},ymapClass:String,initWithoutMarkers:{type:Boolean,default:!0},debug:{type:Boolean,default:!1},settings:{type:Object,default:function(){return{}}},options:{type:Object,default:function(){return{}}},mapEvents:{type:Array,default:function(){return[]}},showAllMarkers:Boolean,disablePan:Boolean,balloonComponent:{type:[Object,Function],default:function(){return null}},useHtmlInLayout:Boolean},computed:{coordinates:function(){return this.coords.map((function(t){return+t}))}},methods:{init:function(){var t=this;this.myMap={},this.markers=[],window.ymaps&&ymaps.GeoObjectCollection&&(this.initWithoutMarkers||this.$slots.default||this.placemarks.length)&&document.getElementById(this.ymapId)&&(this.$emit("map-initialization-started"),this.myMap=new ymaps.Map(this.ymapId,{center:this.coordinates,zoom:+this.zoom,bounds:this.bounds,behaviors:this.behaviors,controls:this.controls,type:"yandex#".concat(this.mapType)},this.options),(this.mapEvents.length?this.mapEvents:g).forEach((function(e){return t.myMap.events.add(e,(function(n){return t.$emit(e,n)}))})),this.myMap.events.add("boundschange",(function(e){var n=e.originalEvent,r=n.newZoom,o=n.newCenter,a=n.newBounds;t.$emit("boundschange",e),t.$emit("update:zoom",r),t.$emit("update:coords",o),t.$emit("update:bounds",a)})),this.detailedControls&&Object.keys(this.detailedControls).forEach((function(e){t.myMap.controls.remove(e),t.myMap.controls.add(e,t.detailedControls[e])})),!1===this.scrollZoom&&this.myMap.behaviors.disable("scrollZoom"),this.isReady=!0,this.$emit("map-was-initialized",this.myMap))},addMarker:function(t){var e=this;this.markers.push(t),this.debounce&&clearTimeout(this.debounce),this.debounce=setTimeout((function(){e.setMarkers(e.markers)}),0)},setMarkers:function(t){var e=this,n={options:this.clusterOptions,callbacks:this.clusterCallbacks,map:this.myMap,useObjectManager:this.useObjectManager,objectManagerClusterize:this.objectManagerClusterize,useHtmlInLayout:this.useHtmlInLayout};if(this.markers!==t){var r=t.map((function(t){return e.useObjectManager?t.id:t.properties.get("markerId")}));this.deleteMarkers(r),s(t,n),this.$emit("markers-was-change",r)}else s(t,n);this.markers=[],this.showAllMarkers&&this.myMap.setBounds(this.myMap.geoObjects.getBounds())},deleteMarkers:function(t){var e=this,n=[];this.myMap.geoObjects.each((function(t){return n.push(t)})),n.forEach((function(n){var r=[];if(e.useObjectManager)n.remove(t);else{var o,a=function(e){var n=e.properties.get("markerId");t.includes(n)&&r.push(e)};if(n.each)n.each(a),o=n.getLength();else if(n.getGeoObjects){var i=n.getGeoObjects();i.forEach(a),o=i.length}0===o||o===r.length?e.myMap.geoObjects.remove(n):r.length&&r.forEach((function(t){return n.remove(t)}))}})),this.$emit("markers-was-delete",t)}},watch:{coordinates:function(t){this.myMap&&(this.disablePan?this.myMap.setCenter&&this.myMap.setCenter(t):this.myMap.panTo&&this.myMap.getZoom()&&this.myMap.panTo(t,{checkZoomRange:!0}))},zoom:function(){this.myMap&&this.myMap.setZoom(this.zoom)},bounds:function(t){this.myMap&&this.myMap.setBounds&&this.myMap.setBounds(t)}},render:function(t){return t("section",{class:"ymap-container",ref:"mapContainer"},[t("div",{attrs:{id:this.ymapId,class:this.ymapClass,style:this.style}}),this.isReady&&t("div",[this.$slots.default])])},mounted:function(){var t=this;if(this.$attrs["map-link"]||this.$attrs.mapLink)throw new Error("Vue-yandex-maps: Attribute mapLink is not supported. Use settings.");if(this.placemarks&&this.placemarks.length)throw new Error("Vue-yandex-maps: Attribute placemarks is not supported. Use marker component.");this.mapObserver=new MutationObserver((function(){t.myMap.container&&t.myMap.container.fitToViewport()}));var e=this.$refs.mapContainer;if(this.mapObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!1}),T.scriptIsNotAttached){var n=this.debug;_(o(o(o({},this.$options.pluginOptions),this.settings),{},{debug:n}))}T.ymapReady?ymaps.ready(this.init):T.$on("scriptIsLoaded",this.init)},beforeDestroy:function(){this.myMap&&this.myMap.geoObjects&&this.myMap.geoObjects.removeAll()}},S=["placemark","polyline","rectangle","polygon","circle"],E=["balloonclose","balloonopen","click","contextmenu","dblclick","drag","dragend","dragstart","hintclose","hintopen","mouseenter","mouseleave"],k={inject:["useObjectManager","addMarker","deleteMarker","compareValues","makeComponentBalloonTemplate"],props:{coords:Array,hintContent:String,icon:Object,balloon:Object,markerType:{type:String,validator:function(t){return S.includes(t.toLowerCase())},default:"placemark"},markerFill:Object,markerStroke:Object,clusterName:[String,Number],circleRadius:{validator:function(t){return!Number.isNaN(t)},default:1e3},balloonTemplate:String,markerId:{type:[String,Number],required:!0},properties:Object,options:Object,balloonComponentProps:{type:Object,default:function(){return{}}},markerEvents:{type:Array,default:function(){return[]}}},data:function(){return{unwatchArr:[]}},render:function(t){return t("div",[this.$slots.balloon&&t("div",{style:"display: none;"},[this.$slots.balloon]),this.$slots.balloonLayout&&t("div",{style:"display: none;"},[this.$slots.balloonLayout])])},mounted:function(){var t=this;Object.keys(this.$props).forEach((function(e){"balloonComponentProps"!==e&&t.unwatchArr.push(t.$watch(e,(function(e,n){return t.compareValues({newVal:e,oldVal:n,marker:t.defineMarker()})})))})),this.addMarker(this.defineMarker())},methods:{defineMarker:function(){var t=this,e={markerId:this.markerId,markerType:this.markerType||"placemark",coords:u(this.coords),hintContent:this.hintContent,markerFill:this.markerFill,circleRadius:+this.circleRadius,clusterName:this.clusterName,markerStroke:this.markerStroke,balloon:this.balloon,properties:this.properties,options:this.options,balloonOptions:{}},n=null,r=null;this.balloonTemplate&&(n=ymaps.templateLayoutFactory.createClass(this.balloonTemplate)),this.$slots.balloon&&(n=ymaps.templateLayoutFactory.createClass(this.$slots.balloon[0].elm.outerHTML)),this.$slots.balloonLayout&&(r=ymaps.templateLayoutFactory.createClass(this.$slots.balloonLayout[0].elm.outerHTML)),this.makeComponentBalloonTemplate&&(n=this.makeComponentBalloonTemplate(this,e)),null!=n&&(e.balloonOptions.balloonContentLayout=n),null!=r&&(e.balloonOptions.balloonLayout=r),this.icon&&["default#image","default#imageWithContent"].includes(this.icon.layout)?(e.iconContent=this.icon.content,e.iconLayout=this.icon.layout,e.iconImageHref=this.icon.imageHref,e.iconImageSize=this.icon.imageSize,e.iconImageOffset=this.icon.imageOffset,e.iconContentOffset=this.icon.contentOffset,this.icon.contentLayout&&"string"==typeof this.icon.contentLayout&&(e.iconContentLayout=ymaps.templateLayoutFactory.createClass(this.icon.contentLayout))):e.icon=this.icon;var o=function(t,e){var n=d(t);if(!e)return n;switch(n){case"Placemark":return"Point";case"Polyline":return"LineString";default:return n}}(e.markerType,this.useObjectManager),a={hintContent:e.hintContent,iconContent:e.icon?e.icon.content:e.iconContent,markerId:e.markerId},i=e.balloon?{balloonContentHeader:e.balloon.header,balloonContentBody:e.balloon.body,balloonContentFooter:e.balloon.footer}:{},s=Object.assign(a,i,e.properties),p=e.iconLayout?{iconLayout:e.iconLayout,iconImageHref:e.iconImageHref,iconImageSize:e.iconImageSize,iconImageOffset:e.iconImageOffset,iconContentOffset:e.iconContentOffset,iconContentLayout:e.iconContentLayout}:{preset:e.icon&&"islands#".concat(f(e),"Icon")},l=e.markerStroke?{strokeColor:e.markerStroke.color||"0066ffff",strokeOpacity:parseFloat(e.markerStroke.opacity)>=0?parseFloat(e.markerStroke.opacity):1,strokeStyle:e.markerStroke.style,strokeWidth:parseFloat(e.markerStroke.width)>=0?parseFloat(e.markerStroke.width):1}:{},c=e.markerFill?{fill:e.markerFill.enabled||!0,fillColor:e.markerFill.color||"0066ff99",fillOpacity:parseFloat(e.markerFill.opacity)>=0?parseFloat(e.markerFill.opacity):1,fillImageHref:e.markerFill.imageHref||""}:{},h=Object.assign(p,l,c,e.balloonOptions,e.options);"Circle"===o&&(e.coords=[e.coords,e.circleRadius]);var m=function(t,e){var n=e?{type:"Feature",id:t.properties.markerId,geometry:{type:t.markerType,coordinates:t.coords},properties:t.properties,options:t.options}:new ymaps[t.markerType](t.coords,t.properties,t.options);return n.clusterName=t.clusterName,n}({properties:s,options:h,markerType:o,coords:e.coords,clusterName:e.clusterName},this.useObjectManager,this.$emit);return this.useObjectManager||(this.markerEvents.length?this.markerEvents:E).forEach((function(e){return m.events.add(e,(function(n){return t.$emit(e,n)}))})),m}},beforeDestroy:function(){this.unwatchArr.forEach((function(t){return t()})),this.deleteMarker(this.markerId)}};x.install=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.installed||(3!=+e.version[0]?(t.installed=!0,function(t){"function"==typeof t.extend&&(w=t.extend({props:["marker","component"],template:'<component :is="component" v-bind="{ marker, ...props.balloonComponentProps }" v-on="listeners" />'}))}(e),x.pluginOptions=n,e.component("yandex-map",x),e.component("ymap-marker",k)):console.warn("Vue-yandex-maps: This version is only compatible with Vue 2.X. Please install vue-yandex-maps@next"))},"undefined"!=typeof window&&window.Vue&&window.Vue.use(x);var A=_;e.a=x},,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return rn}));const r={},o=[];function l(t,e){if(Array.isArray(t))for(const n of t)l(n,e);else if("object"!=typeof t)h(Object.getOwnPropertyNames(e)),r[t]=Object.assign(r[t]||{},e);else for(const e in t)l(e,t[e])}function c(t){return r[t]||{}}function h(t){o.push(...t)}function map(t,e){let i;const n=t.length,r=[];for(i=0;i<n;i++)r.push(e(t[i]));return r}function filter(t,e){let i;const n=t.length,r=[];for(i=0;i<n;i++)e(t[i])&&r.push(t[i]);return r}function d(t){return t%360*Math.PI/180}function f(s){return s.toLowerCase().replace(/-(.)/g,(function(t,g){return g.toUpperCase()}))}function m(s){return s.replace(/([A-Z])/g,(function(t,g){return"-"+g.toLowerCase()}))}function v(s){return s.charAt(0).toUpperCase()+s.slice(1)}function y(element,t,e,n){return null!=t&&null!=e||(n=n||element.bbox(),null==t?t=n.width/n.height*e:null==e&&(e=n.height/n.width*t)),{width:t,height:e}}function _(t,element){const e=t.origin;let n=null!=t.ox?t.ox:null!=t.originX?t.originX:"center",r=null!=t.oy?t.oy:null!=t.originY?t.originY:"center";null!=e&&([n,r]=Array.isArray(e)?e:"object"==typeof e?[e.x,e.y]:[e,e]);const o="string"==typeof n,l="string"==typeof r;if(o||l){const{height:t,width:e,x:c,y:h}=element.bbox();o&&(n=n.includes("left")?c:n.includes("right")?c+e:c+e/2),l&&(r=r.includes("top")?h:r.includes("bottom")?h+t:h+t/2)}return[n,r]}const svg="http://www.w3.org/2000/svg",html="http://www.w3.org/1999/xhtml",w="http://www.w3.org/2000/xmlns/",T="http://www.w3.org/1999/xlink",x="http://svgjs.dev/svgjs";const S={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class E{}const k={},A="___SYMBOL___ROOT___";function C(t,e=svg){return S.document.createElementNS(e,t)}function O(element,t=!1){if(element instanceof E)return element;if("object"==typeof element)return L(element);if(null==element)return new k[A];if("string"==typeof element&&"<"!==element.charAt(0))return L(S.document.querySelector(element));const e=t?S.document.createElement("div"):C("svg");return e.innerHTML=element,element=L(e.firstChild),e.removeChild(e.firstChild),element}function j(t,e){return e&&e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node?e:C(t)}function I(t){if(!t)return null;if(t.instance instanceof E)return t.instance;if("#document-fragment"===t.nodeName)return new k.Fragment(t);let e=v(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":k[e]||(e="Dom"),new k[e](t)}let L=I;function D(element,t=element.name,e=!1){return k[t]=element,e&&(k[A]=element),h(Object.getOwnPropertyNames(element.prototype)),element}let P=1e3;function M(t){return"Svgjs"+v(t)+P++}function N(t){for(let i=t.children.length-1;i>=0;i--)N(t.children[i]);return t.id?(t.id=M(t.nodeName),t):t}function R(t,e){let n,i;for(i=(t=Array.isArray(t)?t:[t]).length-1;i>=0;i--)for(n in e)t[i].prototype[n]=e[n]}function U(t){return function(...e){const n=e[e.length-1];return!n||n.constructor!==Object||n instanceof Array?t.apply(this,e):t.apply(this,e.slice(0,-1)).attr(n)}}l("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const i=this.position();return this.parent().add(this.remove(),i+1),this},backward:function(){const i=this.position();return this.parent().add(this.remove(),i?i-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(element){(element=O(element)).remove();const i=this.position();return this.parent().add(element,i),this},after:function(element){(element=O(element)).remove();const i=this.position();return this.parent().add(element,i+1),this},insertBefore:function(element){return(element=O(element)).before(this),this},insertAfter:function(element){return(element=O(element)).after(this),this}});const B=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,F=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,z=/rgb\((\d+),(\d+),(\d+)\)/,H=/(#[a-z_][a-z0-9\-_]*)/i,V=/\)\s*,?\s*/,W=/\s/g,Y=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,G=/^rgb\(/,X=/^(\s+)?$/,K=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,$=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Q=/[\s,]+/,J=/[MLHVCSQTAZ]/i;function Z(component){const t=Math.round(component),e=Math.max(0,Math.min(255,t)).toString(16);return 1===e.length?"0"+e:e}function tt(object,t){for(let i=t.length;i--;)if(null==object[t[i]])return!1;return!0}function et(p,q,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?p+6*(q-p)*t:t<.5?q:t<2/3?p+(q-p)*(2/3-t)*6:p}l("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(Q)},hasClass:function(t){return-1!==this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){const e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter((function(e){return e!==t})).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}}),l("Dom",{css:function(style,t){const e={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter((function(t){return!!t.length})).forEach((function(t){const n=t.split(/\s*:\s*/);e[n[0]]=n[1]})),e;if(arguments.length<2){if(Array.isArray(style)){for(const t of style){const n=f(t);e[t]=this.node.style[n]}return e}if("string"==typeof style)return this.node.style[f(style)];if("object"==typeof style)for(const t in style)this.node.style[f(t)]=null==style[t]||X.test(style[t])?"":style[t]}return 2===arguments.length&&(this.node.style[f(style)]=null==t||X.test(t)?"":t),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),l("Dom",{data:function(a,t,e){if(null==a)return this.data(map(filter(this.node.attributes,(t=>0===t.nodeName.indexOf("data-"))),(t=>t.nodeName.slice(5))));if(a instanceof Array){const data={};for(const t of a)data[t]=this.data(t);return data}if("object"==typeof a)for(t in a)this.data(t,a[t]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+a))}catch(t){return this.attr("data-"+a)}else this.attr("data-"+a,null===t?null:!0===e||"string"==typeof t||"number"==typeof t?t:JSON.stringify(t));return this}}),l("Dom",{remember:function(t,e){if("object"==typeof arguments[0])for(const e in t)this.remember(e,t[e]);else{if(1===arguments.length)return this.memory()[t];this.memory()[t]=e}return this},forget:function(){if(0===arguments.length)this._memory={};else for(let i=arguments.length-1;i>=0;i--)delete this.memory()[arguments[i]];return this},memory:function(){return this._memory=this._memory||{}}});class nt{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof nt||this.isRgb(t)||this.test(t))}static isRgb(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b}static random(t="vibrant",e,u){const{random:n,round:r,sin:o,PI:l}=Math;if("vibrant"===t){const t=24*n()+57,e=38*n()+45,r=360*n();return new nt(t,e,r,"lch")}if("sine"===t){const t=r(80*o(2*l*(e=null==e?n():e)/.5+.01)+150),g=r(50*o(2*l*e/.5+4.6)+200),b=r(100*o(2*l*e/.5+2.3)+150);return new nt(t,g,b)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,r=360*n();return new nt(t,e,r,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,r=360*n();return new nt(t,e,r,"lch")}if("rgb"===t){const t=255*n(),g=255*n(),b=255*n();return new nt(t,g,b)}if("lab"===t){const t=100*n(),a=256*n()-128,b=256*n()-128;return new nt(t,a,b,"lab")}if("grey"===t){const t=255*n();return new nt(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(Y.test(t)||G.test(t))}cmyk(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,g,b]=[t,e,n].map((t=>t/255)),o=Math.min(1-r,1-g,1-b);if(1===o)return new nt(0,0,0,1,"cmyk");return new nt((1-r-o)/(1-o),(1-g-o)/(1-o),(1-b-o)/(1-o),o,"cmyk")}hsl(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,g,b]=[t,e,n].map((t=>t/255)),o=Math.max(r,g,b),l=Math.min(r,g,b),c=(o+l)/2,h=o===l,d=o-l;return new nt(360*(h?0:o===r?((g-b)/d+(g<b?6:0))/6:o===g?((b-r)/d+2)/6:o===b?((r-g)/d+4)/6:0),100*(h?0:c>.5?d/(2-o-l):d/(o+l)),100*c,"hsl")}init(a=0,b=0,t=0,e=0,n="rgb"){if(a=a||0,this.space)for(const component in this.space)delete this[this.space[component]];if("number"==typeof a)n="string"==typeof e?e:n,e="string"==typeof e?0:e,Object.assign(this,{_a:a,_b:b,_c:t,_d:e,space:n});else if(a instanceof Array)this.space=b||("string"==typeof a[3]?a[3]:a[4])||"rgb",Object.assign(this,{_a:a[0],_b:a[1],_c:a[2],_d:a[3]||0});else if(a instanceof Object){const t=function(a,b){const t=tt(a,"rgb")?{_a:a.r,_b:a.g,_c:a.b,_d:0,space:"rgb"}:tt(a,"xyz")?{_a:a.x,_b:a.y,_c:a.z,_d:0,space:"xyz"}:tt(a,"hsl")?{_a:a.h,_b:a.s,_c:a.l,_d:0,space:"hsl"}:tt(a,"lab")?{_a:a.l,_b:a.a,_c:a.b,_d:0,space:"lab"}:tt(a,"lch")?{_a:a.l,_b:a.c,_c:a.h,_d:0,space:"lch"}:tt(a,"cmyk")?{_a:a.c,_b:a.m,_c:a.y,_d:a.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return t.space=b||t.space,t}(a,b);Object.assign(this,t)}else if("string"==typeof a)if(G.test(a)){const t=a.replace(W,""),[e,n,r]=z.exec(t).slice(1,4).map((t=>parseInt(t)));Object.assign(this,{_a:e,_b:n,_c:r,_d:0,space:"rgb"})}else{if(!Y.test(a))throw Error("Unsupported string format, can't construct Color");{const t=t=>parseInt(t,16),[,e,n,r]=F.exec(function(t){return 4===t.length?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}(a)).map(t);Object.assign(this,{_a:e,_b:n,_c:r,_d:0,space:"rgb"})}}const{_a:r,_b:o,_c:l,_d:c}=this,h="rgb"===this.space?{r:r,g:o,b:l}:"xyz"===this.space?{x:r,y:o,z:l}:"hsl"===this.space?{h:r,s:o,l:l}:"lab"===this.space?{l:r,a:o,b:l}:"lch"===this.space?{l:r,c:o,h:l}:"cmyk"===this.space?{c:r,m:o,y:l,k:c}:{};Object.assign(this,h)}lab(){const{x:t,y:e,z:n}=this.xyz();return new nt(116*e-16,500*(t-e),200*(e-n),"lab")}lch(){const{l:t,a:a,b:b}=this.lab(),e=Math.sqrt(a**2+b**2);let n=180*Math.atan2(b,a)/Math.PI;n<0&&(n*=-1,n=360-n);return new nt(t,e,n,"lch")}rgb(){if("rgb"===this.space)return this;if("lab"===(t=this.space)||"xyz"===t||"lch"===t){let{x:t,y:e,z:n}=this;if("lab"===this.space||"lch"===this.space){let{l:r,a:a,b:b}=this;if("lch"===this.space){const{c:t,h:e}=this,n=Math.PI/180;a=t*Math.cos(n*e),b=t*Math.sin(n*e)}const o=(r+16)/116,l=a/500+o,c=o-b/200,h=16/116,d=.008856,f=7.787;t=.95047*(l**3>d?l**3:(l-h)/f),e=1*(o**3>d?o**3:(o-h)/f),n=1.08883*(c**3>d?c**3:(c-h)/f)}const r=3.2406*t+-1.5372*e+-.4986*n,o=-.9689*t+1.8758*e+.0415*n,l=.0557*t+-.204*e+1.057*n,c=Math.pow,h=.0031308,d=r>h?1.055*c(r,1/2.4)-.055:12.92*r,g=o>h?1.055*c(o,1/2.4)-.055:12.92*o,b=l>h?1.055*c(l,1/2.4)-.055:12.92*l;return new nt(255*d,255*g,255*b)}if("hsl"===this.space){let{h:t,s:s,l:e}=this;if(t/=360,s/=100,e/=100,0===s){e*=255;return new nt(e,e,e)}const q=e<.5?e*(1+s):e+s-e*s,p=2*e-q,n=255*et(p,q,t+1/3),g=255*et(p,q,t),b=255*et(p,q,t-1/3);return new nt(n,g,b)}if("cmyk"===this.space){const{c:t,m:e,y:n,k:r}=this,o=255*(1-Math.min(1,t*(1-r)+r)),g=255*(1-Math.min(1,e*(1-r)+r)),b=255*(1-Math.min(1,n*(1-r)+r));return new nt(o,g,b)}return this;var t}toArray(){const{_a:t,_b:e,_c:n,_d:r,space:o}=this;return[t,e,n,r,o]}toHex(){const[t,g,b]=this._clamped().map(Z);return`#${t}${g}${b}`}toRgb(){const[t,e,n]=this._clamped();return`rgb(${t},${e},${n})`}toString(){return this.toHex()}xyz(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,g,b]=[t,e,n].map((t=>t/255)),o=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,l=g>.04045?Math.pow((g+.055)/1.055,2.4):g/12.92,c=b>.04045?Math.pow((b+.055)/1.055,2.4):b/12.92,h=(.4124*o+.3576*l+.1805*c)/.95047,d=(.2126*o+.7152*l+.0722*c)/1,f=(.0193*o+.1192*l+.9505*c)/1.08883,m=h>.008856?Math.pow(h,1/3):7.787*h+16/116,v=d>.008856?Math.pow(d,1/3):7.787*d+16/116,y=f>.008856?Math.pow(f,1/3):7.787*f+16/116;return new nt(m,v,y,"xyz")}_clamped(){const{_a:t,_b:e,_c:n}=this.rgb(),{max:r,min:o,round:l}=Math;return[t,e,n].map((t=>r(0,o(l(t),255))))}}class it{constructor(...t){this.init(...t)}clone(){return new it(this)}init(t,e){const n=0,r=0,source=Array.isArray(t)?{x:t[0],y:t[1]}:"object"==typeof t?{x:t.x,y:t.y}:{x:t,y:e};return this.x=null==source.x?n:source.x,this.y=null==source.y?r:source.y,this}toArray(){return[this.x,this.y]}transform(t){return this.clone().transformO(t)}transformO(t){ot.isMatrixLike(t)||(t=new ot(t));const{x:e,y:n}=this;return this.x=t.a*e+t.c*n+t.e,this.y=t.b*e+t.d*n+t.f,this}}function st(a,b,t){return Math.abs(b-a)<(t||1e-6)}class ot{constructor(...t){this.init(...t)}static formatTransforms(t){const e="both"===t.flip||!0===t.flip,n=t.flip&&(e||"x"===t.flip)?-1:1,r=t.flip&&(e||"y"===t.flip)?-1:1,o=t.skew&&t.skew.length?t.skew[0]:isFinite(t.skew)?t.skew:isFinite(t.skewX)?t.skewX:0,l=t.skew&&t.skew.length?t.skew[1]:isFinite(t.skew)?t.skew:isFinite(t.skewY)?t.skewY:0,c=t.scale&&t.scale.length?t.scale[0]*n:isFinite(t.scale)?t.scale*n:isFinite(t.scaleX)?t.scaleX*n:n,h=t.scale&&t.scale.length?t.scale[1]*r:isFinite(t.scale)?t.scale*r:isFinite(t.scaleY)?t.scaleY*r:r,d=t.shear||0,f=t.rotate||t.theta||0,m=new it(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),v=m.x,y=m.y,_=new it(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),w=_.x,T=_.y,x=new it(t.translate||t.tx||t.translateX,t.ty||t.translateY),S=x.x,E=x.y,k=new it(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:c,scaleY:h,skewX:o,skewY:l,shear:d,theta:f,rx:k.x,ry:k.y,tx:S,ty:E,ox:v,oy:y,px:w,py:T}}static fromArray(a){return{a:a[0],b:a[1],c:a[2],d:a[3],e:a[4],f:a[5]}}static isMatrixLike(t){return null!=t.a||null!=t.b||null!=t.c||null!=t.d||null!=t.e||null!=t.f}static matrixMultiply(t,e,n){const a=t.a*e.a+t.c*e.b,b=t.b*e.a+t.d*e.b,r=t.a*e.c+t.c*e.d,o=t.b*e.c+t.d*e.d,l=t.e+t.a*e.e+t.c*e.f,c=t.f+t.b*e.e+t.d*e.f;return n.a=a,n.b=b,n.c=r,n.d=o,n.e=l,n.f=c,n}around(t,e,n){return this.clone().aroundO(t,e,n)}aroundO(t,e,n){const r=t||0,o=e||0;return this.translateO(-r,-o).lmultiplyO(n).translateO(r,o)}clone(){return new ot(this)}decompose(t=0,e=0){const a=this.a,b=this.b,n=this.c,r=this.d,o=this.e,l=this.f,c=a*r-b*n,h=c>0?1:-1,d=h*Math.sqrt(a*a+b*b),f=Math.atan2(h*b,h*a),m=180/Math.PI*f,v=Math.cos(f),y=Math.sin(f),_=(a*n+b*r)/c,w=n*d/(_*a-b)||r*d/(_*b+a);return{scaleX:d,scaleY:w,shear:_,rotate:m,translateX:o-t+t*v*d+e*(_*v*d-y*w),translateY:l-e+t*y*d+e*(_*y*d+v*w),originX:t,originY:e,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(t){if(t===this)return!0;const e=new ot(t);return st(this.a,e.a)&&st(this.b,e.b)&&st(this.c,e.c)&&st(this.d,e.d)&&st(this.e,e.e)&&st(this.f,e.f)}flip(t,e){return this.clone().flipO(t,e)}flipO(t,e){return"x"===t?this.scaleO(-1,1,e,0):"y"===t?this.scaleO(1,-1,0,e):this.scaleO(-1,-1,t,e||t)}init(source){const base=ot.fromArray([1,0,0,1,0,0]);return source=source instanceof Ot?source.matrixify():"string"==typeof source?ot.fromArray(source.split(Q).map(parseFloat)):Array.isArray(source)?ot.fromArray(source):"object"==typeof source&&ot.isMatrixLike(source)?source:"object"==typeof source?(new ot).transform(source):6===arguments.length?ot.fromArray([].slice.call(arguments)):base,this.a=null!=source.a?source.a:base.a,this.b=null!=source.b?source.b:base.b,this.c=null!=source.c?source.c:base.c,this.d=null!=source.d?source.d:base.d,this.e=null!=source.e?source.e:base.e,this.f=null!=source.f?source.f:base.f,this}inverse(){return this.clone().inverseO()}inverseO(){const a=this.a,b=this.b,t=this.c,e=this.d,n=this.e,r=this.f,o=a*e-b*t;if(!o)throw new Error("Cannot invert "+this);const l=e/o,c=-b/o,h=-t/o,d=a/o,f=-(l*n+h*r),m=-(c*n+d*r);return this.a=l,this.b=c,this.c=h,this.d=d,this.e=f,this.f=m,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const e=t instanceof ot?t:new ot(t);return ot.matrixMultiply(e,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=t instanceof ot?t:new ot(t);return ot.matrixMultiply(this,e,this)}rotate(t,e,n){return this.clone().rotateO(t,e,n)}rotateO(t,e=0,n=0){t=d(t);const r=Math.cos(t),o=Math.sin(t),{a:a,b:b,c:l,d:c,e:h,f:f}=this;return this.a=a*r-b*o,this.b=b*r+a*o,this.c=l*r-c*o,this.d=c*r+l*o,this.e=h*r-f*o+n*o-e*r+e,this.f=f*r+h*o-e*o-n*r+n,this}scale(t,e,n,r){return this.clone().scaleO(...arguments)}scaleO(t,e=t,n=0,r=0){3===arguments.length&&(r=n,n=e,e=t);const{a:a,b:b,c:o,d:l,e:c,f:h}=this;return this.a=a*t,this.b=b*e,this.c=o*t,this.d=l*e,this.e=c*t-n*t+n,this.f=h*e-r*e+r,this}shear(a,t,e){return this.clone().shearO(a,t,e)}shearO(t,e=0,n=0){const{a:a,b:b,c:r,d:o,e:l,f:c}=this;return this.a=a+b*t,this.c=r+o*t,this.e=l+c*t-n*t,this}skew(t,e,n,r){return this.clone().skewO(...arguments)}skewO(t,e=t,n=0,r=0){3===arguments.length&&(r=n,n=e,e=t),t=d(t),e=d(e);const o=Math.tan(t),l=Math.tan(e),{a:a,b:b,c:c,d:h,e:f,f:m}=this;return this.a=a+b*o,this.b=b+a*l,this.c=c+h*o,this.d=h+c*l,this.e=f+m*o-r*o,this.f=m+f*l-n*l,this}skewX(t,e,n){return this.skew(t,0,e,n)}skewY(t,e,n){return this.skew(0,t,e,n)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(t){if(ot.isMatrixLike(t)){return new ot(t).multiplyO(this)}const e=ot.formatTransforms(t),{x:n,y:r}=new it(e.ox,e.oy).transform(this),o=(new ot).translateO(e.rx,e.ry).lmultiplyO(this).translateO(-n,-r).scaleO(e.scaleX,e.scaleY).skewO(e.skewX,e.skewY).shearO(e.shear).rotateO(e.theta).translateO(n,r);if(isFinite(e.px)||isFinite(e.py)){const t=new it(n,r).transform(o),l=isFinite(e.px)?e.px-t.x:0,c=isFinite(e.py)?e.py-t.y:0;o.translateO(l,c)}return o.translateO(e.tx,e.ty),o}translate(t,e){return this.clone().translateO(t,e)}translateO(t,e){return this.e+=t||0,this.f+=e||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function at(){if(!at.nodes){const svg=O().size(2,0);svg.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),svg.attr("focusable","false"),svg.attr("aria-hidden","true");const path=svg.path().node;at.nodes={svg:svg,path:path}}if(!at.nodes.svg.node.parentNode){const b=S.document.body||S.document.documentElement;at.nodes.svg.addTo(b)}return at.nodes}function ut(t){return!(t.width||t.height||t.x||t.y)}D(ot,"Matrix");class lt{constructor(...t){this.init(...t)}addOffset(){return this.x+=S.window.pageXOffset,this.y+=S.window.pageYOffset,new lt(this)}init(source){return source="string"==typeof source?source.split(Q).map(parseFloat):Array.isArray(source)?source:"object"==typeof source?[null!=source.left?source.left:source.x,null!=source.top?source.top:source.y,source.width,source.height]:4===arguments.length?[].slice.call(arguments):[0,0,0,0],this.x=source[0]||0,this.y=source[1]||0,this.width=this.w=source[2]||0,this.height=this.h=source[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return ut(this)}merge(t){const e=Math.min(this.x,t.x),n=Math.min(this.y,t.y),r=Math.max(this.x+this.width,t.x+t.width)-e,o=Math.max(this.y+this.height,t.y+t.height)-n;return new lt(e,n,r,o)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(t){t instanceof ot||(t=new ot(t));let e=1/0,n=-1/0,r=1/0,o=-1/0;return[new it(this.x,this.y),new it(this.x2,this.y),new it(this.x,this.y2),new it(this.x2,this.y2)].forEach((function(p){p=p.transform(t),e=Math.min(e,p.x),n=Math.max(n,p.x),r=Math.min(r,p.y),o=Math.max(o,p.y)})),new lt(e,r,n-e,o-r)}}function ct(t,e,n){let r;try{if(r=e(t.node),ut(r)&&((o=t.node)!==S.document&&!(S.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===S.document}).call(S.document.documentElement,o)))throw new Error("Element not in the dom")}catch(e){r=n(t)}var o;return r}l({viewbox:{viewbox(t,e,n,r){return null==t?new lt(this.attr("viewBox")):this.attr("viewBox",new lt(t,e,n,r))},zoom(t,e){let{width:n,height:r}=this.attr(["width","height"]);if((n||r)&&"string"!=typeof n&&"string"!=typeof r||(n=this.node.clientWidth,r=this.node.clientHeight),!n||!r)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const o=this.viewbox(),l=n/o.width,c=r/o.height,h=Math.min(l,c);if(null==t)return h;let d=h/t;d===1/0&&(d=Number.MAX_SAFE_INTEGER/100),e=e||new it(n/2/l+o.x,r/2/c+o.y);const f=new lt(o).transform(new ot({scale:d,origin:e}));return this.viewbox(f)}}}),D(lt,"Box");class ht extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}R([ht],{each(t,...e){return"function"==typeof t?this.map(((e,i,n)=>t.call(e,e,i,n))):this.map((n=>n[t](...e)))},toArray(){return Array.prototype.concat.apply([],this)}});const ft=["toArray","constructor","each"];function pt(t,e){return new ht(map((e||S.document).querySelectorAll(t),(function(t){return I(t)})))}ht.extend=function(t){t=t.reduce(((t,e)=>(ft.includes(e)||"_"===e[0]||(t[e]=function(...t){return this.each(e,...t)}),t)),{}),R([ht],t)};let mt=0;const gt={};function vt(t){let e=t.getEventHolder();return e===S.window&&(e=gt),e.events||(e.events={}),e.events}function yt(t){return t.getEventTarget()}function bt(t,e,n,r,o){const l=n.bind(r||t),c=O(t),h=vt(c),d=yt(c);e=Array.isArray(e)?e:e.split(Q),n._svgjsListenerId||(n._svgjsListenerId=++mt),e.forEach((function(t){const e=t.split(".")[0],r=t.split(".")[1]||"*";h[e]=h[e]||{},h[e][r]=h[e][r]||{},h[e][r][n._svgjsListenerId]=l,d.addEventListener(e,l,o||!1)}))}function _t(t,e,n,r){const o=O(t),l=vt(o),c=yt(o);("function"!=typeof n||(n=n._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(Q)).forEach((function(t){const e=t&&t.split(".")[0],h=t&&t.split(".")[1];let d,f;if(n)l[e]&&l[e][h||"*"]&&(c.removeEventListener(e,l[e][h||"*"][n],r||!1),delete l[e][h||"*"][n]);else if(e&&h){if(l[e]&&l[e][h]){for(f in l[e][h])_t(c,[e,h].join("."),f);delete l[e][h]}}else if(h)for(t in l)for(d in l[t])h===d&&_t(c,[t,h].join("."));else if(e){if(l[e]){for(d in l[e])_t(c,[e,d].join("."));delete l[e]}}else{for(t in l)_t(c,t);!function(t){let e=t.getEventHolder();e===S.window&&(e=gt),e.events&&(e.events={})}(o)}}))}class wt extends E{addEventListener(){}dispatch(t,data,e){return function(t,e,data,n){const r=yt(t);return e instanceof S.window.Event||(e=new S.window.CustomEvent(e,{detail:data,cancelable:!0,...n})),r.dispatchEvent(e),e}(this,t,data,e)}dispatchEvent(t){const e=this.getEventHolder().events;if(!e)return!0;const n=e[t.type];for(const i in n)for(const e in n[i])n[i][e](t);return!t.defaultPrevented}fire(t,data,e){return this.dispatch(t,data,e),this}getEventHolder(){return this}getEventTarget(){return this}off(t,e,n){return _t(this,t,e,n),this}on(t,e,n,r){return bt(this,t,e,n,r),this}removeEventListener(){}}function Tt(){}D(wt,"EventTarget");const xt={duration:400,ease:">",delay:0},St={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class Et extends Array{constructor(...t){super(...t),this.init(...t)}clone(){return new this.constructor(this)}init(t){return"number"==typeof t||(this.length=0,this.push(...this.parse(t))),this}parse(t=[]){return t instanceof Array?t:t.trim().split(Q).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];return t.push(...this),t}}class kt{constructor(...t){this.init(...t)}convert(t){return new kt(this.value,t)}divide(t){return t=new kt(t),new kt(this/t,this.unit||t.unit)}init(t,e){return e=Array.isArray(t)?t[1]:e,t=Array.isArray(t)?t[0]:t,this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(B))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof kt&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new kt(t),new kt(this-t,this.unit||t.unit)}plus(t){return t=new kt(t),new kt(this+t,this.unit||t.unit)}times(t){return t=new kt(t),new kt(this*t,this.unit||t.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const At=[];class Ct extends wt{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(element,i){return(element=O(element)).removeNamespace&&this.node instanceof S.window.SVGElement&&element.removeNamespace(),null==i?this.node.appendChild(element.node):element.node!==this.node.childNodes[i]&&this.node.insertBefore(element.node,this.node.childNodes[i]),this}addTo(t,i){return O(t).put(this,i)}children(){return new ht(map(this.node.children,(function(t){return I(t)})))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(t=!0,e=!0){this.writeDataToDom();let n=this.node.cloneNode(t);return e&&(n=N(n)),new this.constructor(n)}each(t,e){const n=this.children();let i,r;for(i=0,r=n.length;i<r;i++)t.apply(n[i],[i,n]),e&&n[i].each(t,e);return this}element(t,e){return this.put(new Ct(C(t),e))}first(){return I(this.node.firstChild)}get(i){return I(this.node.childNodes[i])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(element){return this.index(element)>=0}html(t,e){return this.xml(t,e,html)}id(t){return void 0!==t||this.node.id||(this.node.id=M(this.type)),this.attr("id",t)}index(element){return[].slice.call(this.node.childNodes).indexOf(element.node)}last(){return I(this.node.lastChild)}matches(t){const e=this.node,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector||null;return n&&n.call(e,t)}parent(t){let e=this;if(!e.node.parentNode)return null;if(e=I(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=I(e.node.parentNode));return e}put(element,i){return element=O(element),this.add(element,i),element}putIn(t,i){return O(t).add(this,i)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(element){return this.node.removeChild(element.node),this}replace(element){return element=O(element),this.node.parentNode&&this.node.parentNode.replaceChild(element.node,this.node),element}round(t=2,map=null){const e=10**t,n=this.attr(map);for(const i in n)"number"==typeof n[i]&&(n[i]=Math.round(n[i]*e)/e);return this.attr(n),this}svg(t,e){return this.xml(t,e,svg)}toString(){return this.id()}words(text){return this.node.textContent=text,this}wrap(t){const e=this.parent();if(!e)return this.addTo(t);const n=e.index(this);return e.put(t,n).put(this)}writeDataToDom(){return this.each((function(){this.writeDataToDom()})),this}xml(t,e,n){if("boolean"==typeof t&&(n=e,e=t,t=null),null==t||"function"==typeof t){e=null==e||e,this.writeDataToDom();let n=this;if(null!=t){if(n=I(n.node.cloneNode(!0)),e){const e=t(n);if(n=e||n,!1===e)return""}n.each((function(){const e=t(this),n=e||this;!1===e?this.remove():e&&this!==n&&this.replace(n)}),!0)}return e?n.node.outerHTML:n.node.innerHTML}e=null!=e&&e;const r=C("wrapper",n),o=S.document.createDocumentFragment();r.innerHTML=t;for(let t=r.children.length;t--;)o.appendChild(r.firstElementChild);const l=this.parent();return e?this.replace(o)&&l:this.add(o)}}R(Ct,{attr:function(t,e,n){if(null==t){t={},e=this.node.attributes;for(const n of e)t[n.nodeName]=K.test(n.nodeValue)?parseFloat(n.nodeValue):n.nodeValue;return t}if(t instanceof Array)return t.reduce(((t,e)=>(t[e]=this.attr(e),t)),{});if("object"==typeof t&&t.constructor===Object)for(e in t)this.attr(e,t[e]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return null==(e=this.node.getAttribute(t))?St[t]:K.test(e)?parseFloat(e):e;"number"==typeof(e=At.reduce(((e,n)=>n(t,e,this)),e))?e=new kt(e):nt.isColor(e)?e=new nt(e):e.constructor===Array&&(e=new Et(e)),"leading"===t?this.leading&&this.leading(e):"string"==typeof n?this.node.setAttributeNS(n,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!==t&&"x"!==t||this.rebuild()}return this},find:function(t){return pt(t,this.node)},findOne:function(t){return I(this.node.querySelector(t))}}),D(Ct,"Dom");class Ot extends Ct{constructor(t,e){super(t,e),this.dom={},this.node.instance=this,t.hasAttribute("svgjs:data")&&this.setData(JSON.parse(t.getAttribute("svgjs:data"))||{})}center(t,e){return this.cx(t).cy(e)}cx(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,e){return this.dx(t).dy(e)}dx(t=0){return this.x(new kt(t).plus(this.x()))}dy(t=0){return this.y(new kt(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,e){return this.x(t).y(e)}parents(t=this.root()){const e="string"==typeof t;e||(t=O(t));const n=new ht;let r=this;for(;(r=r.parent())&&r.node!==S.document&&"#document-fragment"!==r.nodeName&&(n.push(r),e||r.node!==t.node)&&(!e||!r.matches(t));)if(r.node===this.root().node)return null;return n}reference(t){if(!(t=this.attr(t)))return null;const e=(t+"").match(H);return e?O(e[1]):null}root(){const p=this.parent(k[A]);return p&&p.root()}setData(t){return this.dom=t,this}size(t,e){const p=y(this,t,e);return this.width(new kt(p.width)).height(new kt(p.height))}width(t){return this.attr("width",t)}writeDataToDom(){return this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}R(Ot,{bbox:function(){const t=ct(this,(t=>t.getBBox()),(t=>{try{const e=t.clone().addTo(at().svg).show(),n=e.node.getBBox();return e.remove(),n}catch(e){throw new Error(`Getting bbox of element "${t.node.nodeName}" is not possible: ${e.toString()}`)}}));return new lt(t)},rbox:function(t){const e=ct(this,(t=>t.getBoundingClientRect()),(t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)})),n=new lt(e);return t?n.transform(t.screenCTM().inverseO()):n.addOffset()},inside:function(t,e){const n=this.bbox();return t>n.x&&e>n.y&&t<n.x+n.width&&e<n.y+n.height},point:function(t,e){return new it(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new ot(this.node.getCTM())},screenCTM:function(){if("function"==typeof this.isRoot&&!this.isRoot()){const rect=this.rect(1,1),t=rect.node.getScreenCTM();return rect.remove(),new ot(t)}return new ot(this.node.getScreenCTM())}}),D(Ot,"Element");const jt={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,a){return"color"===a?t:t+"-"+a}};["fill","stroke"].forEach((function(t){const e={};let i;e[t]=function(e){if(void 0===e)return this.attr(t);if("string"==typeof e||e instanceof nt||nt.isRgb(e)||e instanceof Ot)this.attr(t,e);else for(i=jt[t].length-1;i>=0;i--)null!=e[jt[t][i]]&&this.attr(jt.prefix(t,jt[t][i]),e[jt[t][i]]);return this},l(["Element","Runner"],e)})),l(["Element","Runner"],{matrix:function(t,b,e,n,r,o){return null==t?new ot(this):this.attr("transform",new ot(t,b,e,n,r,o))},rotate:function(t,e,n){return this.transform({rotate:t,ox:e,oy:n},!0)},skew:function(t,e,n,r){return 1===arguments.length||3===arguments.length?this.transform({skew:t,ox:e,oy:n},!0):this.transform({skew:[t,e],ox:n,oy:r},!0)},shear:function(t,e,n){return this.transform({shear:t,ox:e,oy:n},!0)},scale:function(t,e,n,r){return 1===arguments.length||3===arguments.length?this.transform({scale:t,ox:e,oy:n},!0):this.transform({scale:[t,e],ox:n,oy:r},!0)},translate:function(t,e){return this.transform({translate:[t,e]},!0)},relative:function(t,e){return this.transform({relative:[t,e]},!0)},flip:function(t="both",e="center"){return-1==="xybothtrue".indexOf(t)&&(e=t,t="both"),this.transform({flip:t,origin:e},!0)},opacity:function(t){return this.attr("opacity",t)}}),l("radius",{radius:function(t,e=t){return"radialGradient"===(this._element||this).type?this.attr("r",new kt(t)):this.rx(t).ry(e)}}),l("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new it(this.node.getPointAtLength(t))}}),l(["Element","Runner"],{font:function(a,t){if("object"==typeof a){for(t in a)this.font(t,a[t]);return this}return"leading"===a?this.leading(t):"anchor"===a?this.attr("text-anchor",t):"size"===a||"family"===a||"weight"===a||"stretch"===a||"variant"===a||"style"===a?this.attr("font-"+a,t):this.attr(a,t)}});l("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel"].reduce((function(t,e){return t[e]=function(t){return null===t?this.off(e):this.on(e,t),this},t}),{})),l("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){const t=(this.attr("transform")||"").split(V).slice(0,-1).map((function(t){const e=t.trim().split("(");return[e[0],e[1].split(Q).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,e){return"matrix"===e[0]?t.lmultiply(ot.fromArray(e[1])):t[e[0]].apply(t,e[1])}),new ot);return t},toParent:function(t,i){if(this===t)return this;const e=this.screenCTM(),n=t.screenCTM().inverse();return this.addTo(t,i).untransform().transform(n.multiply(e)),this},toRoot:function(i){return this.toParent(this.root(),i)},transform:function(t,e){if(null==t||"string"==typeof t){const e=new ot(this).decompose();return null==t?e:e[t]}ot.isMatrixLike(t)||(t={...t,origin:_(t,this)});const n=new ot(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class It extends Ot{flatten(t=this,e){return this.each((function(){if(this instanceof It)return this.flatten().ungroup()})),this}ungroup(t=this.parent(),e=t.index(this)){return e=-1===e?t.children().length:e,this.each((function(i,n){return n[n.length-i-1].toParent(t,e)})),this.remove()}}D(It,"Container");class Lt extends It{constructor(t,e=t){super(j("defs",t),e)}flatten(){return this}ungroup(){return this}}D(Lt,"Defs");class Dt extends Ot{}function Pt(t){return this.attr("rx",t)}function Mt(t){return this.attr("ry",t)}function Nt(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Rt(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Ut(t){return this.attr("cx",t)}function Bt(t){return this.attr("cy",t)}function Ft(t){return null==t?2*this.rx():this.rx(new kt(t).divide(2))}function zt(t){return null==t?2*this.ry():this.ry(new kt(t).divide(2))}D(Dt,"Shape");var qt={__proto__:null,rx:Pt,ry:Mt,x:Nt,y:Rt,cx:Ut,cy:Bt,width:Ft,height:zt};class Ht extends Dt{constructor(t,e=t){super(j("ellipse",t),e)}size(t,e){const p=y(this,t,e);return this.rx(new kt(p.width).divide(2)).ry(new kt(p.height).divide(2))}}R(Ht,qt),l("Container",{ellipse:U((function(t=0,e=t){return this.put(new Ht).size(t,e).move(0,0)}))}),D(Ht,"Ellipse");class Vt extends Ct{constructor(t=S.document.createDocumentFragment()){super(t)}xml(t,e,n){if("boolean"==typeof t&&(n=e,e=t,t=null),null==t||"function"==typeof t){const t=new Ct(C("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}function Wt(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new kt(t),fy:new kt(e)}):this.attr({x1:new kt(t),y1:new kt(e)})}function Yt(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new kt(t),cy:new kt(e)}):this.attr({x2:new kt(t),y2:new kt(e)})}D(Vt,"Fragment");var Gt,Xt={__proto__:null,from:Wt,to:Yt};class Kt extends It{constructor(t,e){super(j(t+"Gradient","string"==typeof t?null:t),e)}attr(a,b,t){return"transform"===a&&(a="gradientTransform"),super.attr(a,b,t)}bbox(){return new lt}targets(){return pt("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}R(Kt,Xt),l({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:U((function(t,e){return this.put(new Kt(t)).update(e)}))}}),D(Kt,"Gradient");class $t extends It{constructor(t,e=t){super(j("pattern",t),e)}attr(a,b,t){return"transform"===a&&(a="patternTransform"),super.attr(a,b,t)}bbox(){return new lt}targets(){return pt("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}l({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:U((function(t,e,n){return this.put(new $t).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}))}}),D($t,"Pattern");class Qt extends Dt{constructor(t,e=t){super(j("image",t),e)}load(t,e){if(!t)return this;const img=new S.window.Image;return bt(img,"load",(function(t){const p=this.parent($t);0===this.width()&&0===this.height()&&this.size(img.width,img.height),p instanceof $t&&0===p.width()&&0===p.height()&&p.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)}),this),bt(img,"load error",(function(){_t(img)})),this.attr("href",img.src=t,T)}}Gt=function(t,e,n){return"fill"!==t&&"stroke"!==t||$.test(e)&&(e=n.root().defs().image(e)),e instanceof Qt&&(e=n.root().defs().pattern(0,0,(pattern=>{pattern.add(e)}))),e},At.push(Gt),l({Container:{image:U((function(source,t){return this.put(new Qt).size(0,0).load(source,t)}))}}),D(Qt,"Image");class Jt extends Et{bbox(){let t=-1/0,e=-1/0,n=1/0,r=1/0;return this.forEach((function(o){t=Math.max(o[0],t),e=Math.max(o[1],e),n=Math.min(o[0],n),r=Math.min(o[1],r)})),new lt(n,r,t-n,e-r)}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let i=this.length-1;i>=0;i--)this[i]=[this[i][0]+t,this[i][1]+e];return this}parse(t=[0,0]){const e=[];(t=t instanceof Array?Array.prototype.concat.apply([],t):t.trim().split(Q).map(parseFloat)).length%2!=0&&t.pop();for(let i=0,n=t.length;i<n;i+=2)e.push([t[i],t[i+1]]);return e}size(t,e){let i;const n=this.bbox();for(i=this.length-1;i>=0;i--)n.width&&(this[i][0]=(this[i][0]-n.x)*t/n.width+n.x),n.height&&(this[i][1]=(this[i][1]-n.y)*e/n.height+n.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const t=[];for(let i=0,e=this.length;i<e;i++)t.push(this[i].join(","));return t.join(" ")}transform(t){return this.clone().transformO(t)}transformO(t){ot.isMatrixLike(t)||(t=new ot(t));for(let i=this.length;i--;){const[e,n]=this[i];this[i][0]=t.a*e+t.c*n+t.e,this[i][1]=t.b*e+t.d*n+t.f}return this}}var Zt={__proto__:null,MorphArray:Jt,x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)},width:function(t){const b=this.bbox();return null==t?b.width:this.size(t,b.height)},height:function(t){const b=this.bbox();return null==t?b.height:this.size(b.width,t)}};class te extends Dt{constructor(t,e=t){super(j("line",t),e)}array(){return new Jt([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,e){return this.attr(this.array().move(t,e).toLine())}plot(t,e,n,r){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:n,y2:r}:new Jt(t).toLine(),this.attr(t))}size(t,e){const p=y(this,t,e);return this.attr(this.array().size(p.width,p.height).toLine())}}R(te,Zt),l({Container:{line:U((function(...t){return te.prototype.plot.apply(this.put(new te),null!=t[0]?t:[0,0,0,0])}))}}),D(te,"Line");class ee extends It{constructor(t,e=t){super(j("marker",t),e)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,e){return this.attr("refX",t).attr("refY",e)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}}function ne(t,e){return function(n){return null==n?this[t]:(this[t]=n,e&&e.call(this),this)}}l({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:U((function(t,e,n){return this.put(new ee).size(t,e).ref(t/2,e/2).viewbox(0,0,t,e).attr("orient","auto").update(n)}))},marker:{marker(marker,t,e,n){let r=["marker"];return"all"!==marker&&r.push(marker),r=r.join("-"),marker=arguments[1]instanceof ee?arguments[1]:this.defs().marker(t,e,n),this.attr(r,marker)}}}),D(ee,"Marker");const re={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)},bezier:function(t,e,n,r){return function(o){return o<0?t>0?e/t*o:n>0?r/n*o:0:o>1?n<1?(1-r)/(1-n)*o+(r-n)/(1-n):t<1?(1-e)/(1-t)*o+(e-t)/(1-t):1:3*o*(1-o)**2*e+3*o**2*(1-o)*r+o**3}},steps:function(t,e="end"){e=e.split("-").reverse()[0];let n=t;return"none"===e?--n:"both"===e&&++n,(r,o=!1)=>{let l=Math.floor(r*t);const c=r*l%1==0;return"start"!==e&&"both"!==e||++l,o&&c&&--l,r>=0&&l<0&&(l=0),r<=1&&l>n&&(l=n),l/n}}};class ie{done(){return!1}}class se extends ie{constructor(t=xt.ease){super(),this.ease=re[t]||t}step(t,e,n){return"number"!=typeof t?n<1?t:e:t+(e-t)*this.ease(n)}}class oe extends ie{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,dt,n){return this.stepper(t,e,dt,n)}}function ae(){const t=(this._duration||500)/1e3,e=this._overshoot||0,n=Math.PI,r=Math.log(e/100+1e-10),o=-r/Math.sqrt(n*n+r*r),l=3.9/(o*t);this.d=2*o*l,this.k=l*l}R(class extends oe{constructor(t=500,e=0){super(),this.duration(t).overshoot(e)}step(t,e,dt,n){if("string"==typeof t)return t;if(n.done=dt===1/0,dt===1/0)return e;if(0===dt)return t;dt>100&&(dt=16),dt/=1e3;const r=n.velocity||0,o=-this.d*r-this.k*(t-e),l=t+r*dt+o*dt*dt/2;return n.velocity=r+o*dt,n.done=Math.abs(e-l)+Math.abs(r)<.002,n.done?e:l}},{duration:ne("_duration",ae),overshoot:ne("_overshoot",ae)});R(class extends oe{constructor(p=.1,i=.01,t=0,e=1e3){super(),this.p(p).i(i).d(t).windup(e)}step(t,e,dt,n){if("string"==typeof t)return t;if(n.done=dt===1/0,dt===1/0)return e;if(0===dt)return t;const p=e-t;let i=(n.integral||0)+p*dt;const r=(p-(n.error||0))/dt,o=this._windup;return!1!==o&&(i=Math.max(-o,Math.min(i,o))),n.error=p,n.integral=i,n.done=Math.abs(p)<.001,n.done?e:t+(this.P*p+this.I*i+this.D*r)}},{windup:ne("_windup"),p:ne("P"),i:ne("I"),d:ne("D")});const ue={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},le={M:function(t,p,e){return p.x=e.x=t[0],p.y=e.y=t[1],["M",p.x,p.y]},L:function(t,p){return p.x=t[0],p.y=t[1],["L",t[0],t[1]]},H:function(t,p){return p.x=t[0],["H",t[0]]},V:function(t,p){return p.y=t[0],["V",t[0]]},C:function(t,p){return p.x=t[4],p.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,p){return p.x=t[2],p.y=t[3],["S",t[0],t[1],t[2],t[3]]},Q:function(t,p){return p.x=t[2],p.y=t[3],["Q",t[0],t[1],t[2],t[3]]},T:function(t,p){return p.x=t[0],p.y=t[1],["T",t[0],t[1]]},Z:function(t,p,e){return p.x=e.x,p.y=e.y,["Z"]},A:function(t,p){return p.x=t[5],p.y=t[6],["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}},ce="mlhvqtcsaz".split("");for(let i=0,t=ce.length;i<t;++i)le[ce[i]]=function(i){return function(t,p,e){if("H"===i)t[0]=t[0]+p.x;else if("V"===i)t[0]=t[0]+p.y;else if("A"===i)t[5]=t[5]+p.x,t[6]=t[6]+p.y;else for(let e=0,n=t.length;e<n;++e)t[e]=t[e]+(e%2?p.y:p.x);return le[i](t,p,e)}}(ce[i].toUpperCase());function he(t){return t.segment.length&&t.segment.length-1===ue[t.segment[0].toUpperCase()]}function de(t,e){t.inNumber&&fe(t,!1);const n=J.test(e);if(n)t.segment=[e];else{const e=t.lastCommand,small=e.toLowerCase(),n=e===small;t.segment=["m"===small?n?"l":"L":e]}return t.inSegment=!0,t.lastCommand=t.segment[0],n}function fe(t,e){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=e,t.number="",t.pointSeen=!1,t.hasExponent=!1,he(t)&&pe(t)}function pe(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return le[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function me(t){if(!t.segment.length)return!1;const e="A"===t.segment[0].toUpperCase(),n=t.segment.length;return e&&(4===n||5===n)}function ge(t){return"E"===t.lastToken.toUpperCase()}class ve extends Et{bbox(){return at().path.setAttribute("d",this.toString()),new lt(at.nodes.path.getBBox())}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let n,i=this.length-1;i>=0;i--)n=this[i][0],"M"===n||"L"===n||"T"===n?(this[i][1]+=t,this[i][2]+=e):"H"===n?this[i][1]+=t:"V"===n?this[i][1]+=e:"C"===n||"S"===n||"Q"===n?(this[i][1]+=t,this[i][2]+=e,this[i][3]+=t,this[i][4]+=e,"C"===n&&(this[i][5]+=t,this[i][6]+=e)):"A"===n&&(this[i][6]+=t,this[i][7]+=e);return this}parse(t="M0 0"){return Array.isArray(t)&&(t=Array.prototype.concat.apply([],t).toString()),function(t,e=!0){let n=0,r="";const o={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:e,p0:new it,p:new it};for(;o.lastToken=r,r=t.charAt(n++);)if(o.inSegment||!de(o,r))if("."!==r)if(isNaN(parseInt(r)))if(" "!==r&&","!==r)if("-"!==r)if("E"!==r.toUpperCase()){if(J.test(r)){if(o.inNumber)fe(o,!1);else{if(!he(o))throw new Error("parser Error");pe(o)}--n}}else o.number+=r,o.hasExponent=!0;else{if(o.inNumber&&!ge(o)){fe(o,!1),--n;continue}o.number+=r,o.inNumber=!0}else o.inNumber&&fe(o,!1);else{if("0"===o.number||me(o)){o.inNumber=!0,o.number=r,fe(o,!0);continue}o.inNumber=!0,o.number+=r}else{if(o.pointSeen||o.hasExponent){fe(o,!1),--n;continue}o.inNumber=!0,o.pointSeen=!0,o.number+=r}return o.inNumber&&fe(o,!1),o.inSegment&&he(o)&&pe(o),o.segments}(t)}size(t,e){const n=this.bbox();let i,r;for(n.width=0===n.width?1:n.width,n.height=0===n.height?1:n.height,i=this.length-1;i>=0;i--)r=this[i][0],"M"===r||"L"===r||"T"===r?(this[i][1]=(this[i][1]-n.x)*t/n.width+n.x,this[i][2]=(this[i][2]-n.y)*e/n.height+n.y):"H"===r?this[i][1]=(this[i][1]-n.x)*t/n.width+n.x:"V"===r?this[i][1]=(this[i][1]-n.y)*e/n.height+n.y:"C"===r||"S"===r||"Q"===r?(this[i][1]=(this[i][1]-n.x)*t/n.width+n.x,this[i][2]=(this[i][2]-n.y)*e/n.height+n.y,this[i][3]=(this[i][3]-n.x)*t/n.width+n.x,this[i][4]=(this[i][4]-n.y)*e/n.height+n.y,"C"===r&&(this[i][5]=(this[i][5]-n.x)*t/n.width+n.x,this[i][6]=(this[i][6]-n.y)*e/n.height+n.y)):"A"===r&&(this[i][1]=this[i][1]*t/n.width,this[i][2]=this[i][2]*e/n.height,this[i][6]=(this[i][6]-n.x)*t/n.width+n.x,this[i][7]=(this[i][7]-n.y)*e/n.height+n.y);return this}toString(){return function(a){let s="";for(let i=0,t=a.length;i<t;i++)s+=a[i][0],null!=a[i][1]&&(s+=a[i][1],null!=a[i][2]&&(s+=" ",s+=a[i][2],null!=a[i][3]&&(s+=" ",s+=a[i][3],s+=" ",s+=a[i][4],null!=a[i][5]&&(s+=" ",s+=a[i][5],s+=" ",s+=a[i][6],null!=a[i][7]&&(s+=" ",s+=a[i][7])))));return s+" "}(this)}}const ye=t=>{const e=typeof t;return"number"===e?kt:"string"===e?nt.isColor(t)?nt:Q.test(t)?J.test(t)?ve:Et:B.test(t)?kt:_e:Se.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?Et:"object"===e?xe:_e};class be{constructor(t){this._stepper=t||new se("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce((function(t,e){return t&&e}),!0)}from(t){return null==t?this._from:(this._from=this._set(t),this)}stepper(t){return null==t?this._stepper:(this._stepper=t,this)}to(t){return null==t?this._to:(this._to=this._set(t),this)}type(t){return null==t?this._type:(this._type=t,this)}_set(t){this._type||this.type(ye(t));let e=new this._type(t);return this._type===nt&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===xe&&(e=this._to?e.align(this._to):this._from?e.align(this._from):e),e=e.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(e.length)).map(Object).map((function(t){return t.done=!0,t})),e}}class _e{constructor(...t){this.init(...t)}init(t){return t=Array.isArray(t)?t[0]:t,this.value=t,this}toArray(){return[this.value]}valueOf(){return this.value}}class we{constructor(...t){this.init(...t)}init(t){return Array.isArray(t)&&(t={scaleX:t[0],scaleY:t[1],shear:t[2],rotate:t[3],translateX:t[4],translateY:t[5],originX:t[6],originY:t[7]}),Object.assign(this,we.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}we.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const Te=(a,b)=>a[0]<b[0]?-1:a[0]>b[0]?1:0;class xe{constructor(...t){this.init(...t)}align(t){const e=this.values;for(let i=0,n=e.length;i<n;++i){if(e[i+1]===t[i+1]){if(e[i+1]===nt&&t[i+7]!==e[i+7]){const e=t[i+7],n=new nt(this.values.splice(i+3,5))[e]().toArray();this.values.splice(i+3,0,...n)}i+=e[i+2]+2;continue}if(!t[i+1])return this;const n=(new t[i+1]).toArray(),r=e[i+2]+3;e.splice(i,r,t[i],t[i+1],t[i+2],...n),i+=e[i+2]+2}return this}init(t){if(this.values=[],Array.isArray(t))return void(this.values=t.slice());t=t||{};const e=[];for(const i in t){const n=ye(t[i]),r=new n(t[i]).toArray();e.push([i,n,r.length,...r])}return e.sort(Te),this.values=e.reduce(((t,e)=>t.concat(e)),[]),this}toArray(){return this.values}valueOf(){const t={},e=this.values;for(;e.length;){const n=e.shift(),r=e.shift(),o=e.shift(),l=e.splice(0,o);t[n]=new r(l)}return t}}const Se=[_e,we,xe];class Ee extends Dt{constructor(t,e=t){super(j("path",t),e)}array(){return this._array||(this._array=new ve(this.attr("d")))}clear(){return delete this._array,this}height(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}move(t,e){return this.attr("d",this.array().move(t,e))}plot(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new ve(t))}size(t,e){const p=y(this,t,e);return this.attr("d",this.array().size(p.width,p.height))}width(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)}x(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}y(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}}Ee.prototype.MorphArray=ve,l({Container:{path:U((function(t){return this.put(new Ee).plot(t||new ve)}))}}),D(Ee,"Path");var ke={__proto__:null,array:function(){return this._array||(this._array=new Jt(this.attr("points")))},clear:function(){return delete this._array,this},move:function(t,e){return this.attr("points",this.array().move(t,e))},plot:function(p){return null==p?this.array():this.clear().attr("points","string"==typeof p?p:this._array=new Jt(p))},size:function(t,e){const p=y(this,t,e);return this.attr("points",this.array().size(p.width,p.height))}};class Ae extends Dt{constructor(t,e=t){super(j("polygon",t),e)}}l({Container:{polygon:U((function(p){return this.put(new Ae).plot(p||new Jt)}))}}),R(Ae,Zt),R(Ae,ke),D(Ae,"Polygon");class Ce extends Dt{constructor(t,e=t){super(j("polyline",t),e)}}l({Container:{polyline:U((function(p){return this.put(new Ce).plot(p||new Jt)}))}}),R(Ce,Zt),R(Ce,ke),D(Ce,"Polyline");class Oe extends Dt{constructor(t,e=t){super(j("rect",t),e)}}R(Oe,{rx:Pt,ry:Mt}),l({Container:{rect:U((function(t,e){return this.put(new Oe).size(t,e)}))}}),D(Oe,"Rect");class je{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const e=void 0!==t.next?t:{value:t,next:null,prev:null};return this._last?(e.prev=this._last,this._last.next=e,this._last=e):(this._last=e,this._first=e),e}remove(t){t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t===this._last&&(this._last=t.prev),t===this._first&&(this._first=t.next),t.prev=null,t.next=null}shift(){const t=this._first;return t?(this._first=t.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,t.value):null}}const Ie={nextDraw:null,frames:new je,timeouts:new je,immediates:new je,timer:()=>S.window.performance||S.window.Date,transforms:[],frame(t){const e=Ie.frames.push({run:t});return null===Ie.nextDraw&&(Ie.nextDraw=S.window.requestAnimationFrame(Ie._draw)),e},timeout(t,e){e=e||0;const time=Ie.timer().now()+e,n=Ie.timeouts.push({run:t,time:time});return null===Ie.nextDraw&&(Ie.nextDraw=S.window.requestAnimationFrame(Ie._draw)),n},immediate(t){const e=Ie.immediates.push(t);return null===Ie.nextDraw&&(Ie.nextDraw=S.window.requestAnimationFrame(Ie._draw)),e},cancelFrame(t){null!=t&&Ie.frames.remove(t)},clearTimeout(t){null!=t&&Ie.timeouts.remove(t)},cancelImmediate(t){null!=t&&Ie.immediates.remove(t)},_draw(t){let e=null;const n=Ie.timeouts.last();for(;(e=Ie.timeouts.shift())&&(t>=e.time?e.run():Ie.timeouts.push(e),e!==n););let r=null;const o=Ie.frames.last();for(;r!==o&&(r=Ie.frames.shift());)r.run(t);let l=null;for(;l=Ie.immediates.shift();)l();Ie.nextDraw=Ie.timeouts.first()||Ie.frames.first()?S.window.requestAnimationFrame(Ie._draw):null}},Le=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},De=function(){const t=S.window;return(t.performance||t.Date).now()};class Pe extends wt{constructor(t=De){super(),this._timeSource=t,this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),e=t?t.runner.duration():0;return(t?t.start:this._time)+e}getEndTimeOfTimeline(){const t=this._runners.map((i=>i.start+i.runner.duration()));return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){return this._paused=!0,this._continue()}persist(t){return null==t?this._persist:(this._persist=t,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(t){const e=this.speed();if(null==t)return this.speed(-e);const n=Math.abs(e);return this.speed(t?-n:n)}schedule(t,e,n){if(null==t)return this._runners.map(Le);let r=0;const o=this.getEndTime();if(e=e||0,null==n||"last"===n||"after"===n)r=o;else if("absolute"===n||"start"===n)r=e,e=0;else if("now"===n)r=this._time;else if("relative"===n){const n=this.getRunnerInfoById(t.id);n&&(r=n.start+e,e=0)}else{if("with-last"!==n)throw new Error('Invalid value for the "when" parameter');{const t=this.getLastRunnerInfo();r=t?t.start:this._time}}t.unschedule(),t.timeline(this);const l=t.persist(),c={persist:null===l?this._persist:l,start:r+e,runner:t};return this._lastRunnerId=t.id,this._runners.push(c),this._runners.sort(((a,b)=>a.start-b.start)),this._runnerIds=this._runners.map((t=>t.runner.id)),this.updateTime()._continue(),this}seek(dt){return this.time(this._time+dt)}source(t){return null==t?this._timeSource:(this._timeSource=t,this)}speed(t){return null==t?this._speed:(this._speed=t,this)}stop(){return this.time(0),this.pause()}time(time){return null==time?this._time:(this._time=time,this._continue(!0))}unschedule(t){const e=this._runnerIds.indexOf(t.id);return e<0||(this._runners.splice(e,1),this._runnerIds.splice(e,1),t.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(t=!1){return Ie.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=Ie.frame(this._step)),this)}_stepFn(t=!1){const time=this._timeSource();let e=time-this._lastSourceTime;t&&(e=0);const n=this._speed*e+(this._time-this._lastStepTime);this._lastSourceTime=time,t||(this._time+=n,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let t=this._runners.length;t--;){const e=this._runners[t],n=e.runner;this._time-e.start<=0&&n.reset()}let r=!1;for(let i=0,t=this._runners.length;i<t;i++){const e=this._runners[i],o=e.runner;let dt=n;const l=this._time-e.start;if(l<=0){r=!0;continue}if(l<dt&&(dt=l),!o.active())continue;if(o.step(dt).done){if(!0!==e.persist){o.duration()-o.time()+this._time+e.persist<this._time&&(o.unschedule(),--i,--t)}}else r=!0}return r&&!(this._speed<0&&0===this._time)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}}l({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Pe,this._timeline):(this._timeline=t,this)}}});class Me extends wt{constructor(t){super(),this.id=Me.id++,t="function"==typeof(t=null==t?xt.duration:t)?new oe(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof oe,this._stepper=this._isDeclarative?t:new se,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new ot,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(t,e,n){let r=1,o=!1,l=0;return e=e||xt.delay,n=n||"last","object"!=typeof(t=t||xt.duration)||t instanceof ie||(e=t.delay||e,n=t.when||n,o=t.swing||o,r=t.times||r,l=t.wait||l,t=t.duration||xt.duration),{duration:t,delay:e,swing:o,times:r,wait:l,when:n}}active(t){return null==t?this.enabled:(this.enabled=t,this)}addTransform(t,e){return this.transforms.lmultiplyO(t),this}after(t){return this.on("finished",t)}animate(t,e,n){const r=Me.sanitise(t,e,n),o=new Me(r.duration);return this._timeline&&o.timeline(this._timeline),this._element&&o.element(this._element),o.loop(r).schedule(r.delay,r.when)}clearTransform(){return this.transforms=new ot,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter((t=>!t.isTransform)))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){return this._stepper=new se(t),this}element(element){return null==element?this._element:(this._element=element,element._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,e,n){return"object"==typeof t&&(e=t.swing,n=t.wait,t=t.times),this._times=t||1/0,this._swing=e||!1,this._wait=n||0,!0===this._times&&(this._times=1/0),this}loops(p){const t=this._duration+this._wait;if(null==p){const e=Math.floor(this._time/t),n=(this._time-e*t)/this._duration;return Math.min(e+n,this._times)}const e=p%1,time=t*Math.floor(p)+this._duration*e;return this.time(time)}persist(t){return null==t?this._persist:(this._persist=t,this)}position(p){const t=this._time,e=this._duration,n=this._wait,r=this._times,s=this._swing,o=this._reverse;let l;if(null==p){const c=function(t){const r=s*Math.floor(t%(2*(n+e))/(n+e)),l=r&&!o||!r&&o,c=Math.pow(-1,l)*(t%(n+e))/e+l;return Math.max(Math.min(c,1),0)},h=r*(n+e)-n;return l=t<=0?Math.round(c(1e-5)):t<h?c(t):Math.round(c(h-1e-5)),l}const c=Math.floor(this.loops()),h=s&&c%2==0;return l=c+(h&&!o||o&&h?p:1-p),this.loops(l)}progress(p){return null==p?Math.min(1,this._time/this.duration()):this.time(p*this.duration())}queue(t,e,n,r){this._queue.push({initialiser:t||Tt,runner:e||Tt,retarget:n,isTransform:r,initialised:!1,finished:!1});return this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted||(this.time(0),this._reseted=!0),this}reverse(t){return this._reverse=null==t?!this._reverse:t,this}schedule(t,e,n){if(t instanceof Pe||(n=e,e=t,t=this.timeline()),!t)throw Error("Runner cannot be scheduled without timeline");return t.schedule(this,e,n),this}step(dt){if(!this.enabled)return this;dt=null==dt?16:dt,this._time+=dt;const t=this.position(),e=this._lastPosition!==t&&this._time>=0;this._lastPosition=t;const n=this.duration(),r=this._lastTime<=0&&this._time>0,o=this._lastTime<n&&this._time>=n;this._lastTime=this._time,r&&this.fire("start",this);const l=this._isDeclarative;this.done=!l&&!o&&this._time>=n,this._reseted=!1;let c=!1;return(e||l)&&(this._initialise(e),this.transforms=new ot,c=this._run(l?dt:t),this.fire("step",this)),this.done=this.done||c&&l,o&&this.fire("finished",this),this}time(time){if(null==time)return this._time;const dt=time-this._time;return this.step(dt),this}timeline(t){return void 0===t?this._timeline:(this._timeline=t,this)}unschedule(){const t=this.timeline();return t&&t.unschedule(this),this}_initialise(t){if(t||this._isDeclarative)for(let i=0,e=this._queue.length;i<e;++i){const e=this._queue[i],n=this._isDeclarative||!e.initialised&&t;t=!e.finished,n&&t&&(e.initialiser.call(this),e.initialised=!0)}}_rememberMorpher(t,e){if(this._history[t]={morpher:e,caller:this._queue[this._queue.length-1]},this._isDeclarative){const t=this.timeline();t&&t.play()}}_run(t){let e=!0;for(let i=0,n=this._queue.length;i<n;++i){const n=this._queue[i],r=n.runner.call(this,t);n.finished=n.finished||!0===r,e=e&&n.finished}return e}_tryRetarget(t,e,n){if(this._history[t]){if(!this._history[t].caller.initialised){const e=this._queue.indexOf(this._history[t].caller);return this._queue.splice(e,1),!1}this._history[t].caller.retarget?this._history[t].caller.retarget.call(this,e,n):this._history[t].morpher.to(e),this._history[t].caller.finished=!1;const r=this.timeline();return r&&r.play(),!0}return!1}}Me.id=0;class Ne{constructor(t=new ot,e=-1,n=!0){this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}R([Me,Ne],{mergeWith(t){return new Ne(t.transforms.lmultiply(this.transforms),t.id)}});const Re=(t,e)=>t.lmultiplyO(e),Ue=t=>t.transforms;function Be(){const t=this._transformationRunners.runners.map(Ue).reduce(Re,new ot);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class Fe{constructor(){this.runners=[],this.ids=[]}add(t){if(this.runners.includes(t))return;const e=t.id+1;return this.runners.push(t),this.ids.push(e),this}clearBefore(t){const e=this.ids.indexOf(t+1)||1;return this.ids.splice(0,e,0),this.runners.splice(0,e,new Ne).forEach((t=>t.clearTransformsFromQueue())),this}edit(t,e){const n=this.ids.indexOf(t+1);return this.ids.splice(n,1,t+1),this.runners.splice(n,1,e),this}getByID(t){return this.runners[this.ids.indexOf(t+1)]}length(){return this.ids.length}merge(){let t=null;for(let i=0;i<this.runners.length;++i){const e=this.runners[i];if(t&&e.done&&t.done&&(!e._timeline||!e._timeline._runnerIds.includes(e.id))&&(!t._timeline||!t._timeline._runnerIds.includes(t.id))){this.remove(e.id);const n=e.mergeWith(t);this.edit(t.id,n),t=n,--i}else t=e}return this}remove(t){const e=this.ids.indexOf(t+1);return this.ids.splice(e,1),this.runners.splice(e,1),this}}l({Element:{animate(t,e,n){const r=Me.sanitise(t,e,n),o=this.timeline();return new Me(r.duration).loop(r).element(this).timeline(o.play()).schedule(r.delay,r.when)},delay(t,e){return this.animate(0,t,e)},_clearTransformRunnersBefore(t){this._transformationRunners.clearBefore(t.id)},_currentTransform(t){return this._transformationRunners.runners.filter((e=>e.id<=t.id)).map(Ue).reduce(Re,new ot)},_addRunner(t){this._transformationRunners.add(t),Ie.cancelImmediate(this._frameId),this._frameId=Ie.immediate(Be.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new Fe).add(new Ne(new ot(this))))}}});R(Me,{attr(a,t){return this.styleAttr("attr",a,t)},css(s,t){return this.styleAttr("css",s,t)},styleAttr(t,e,n){if("string"==typeof e)return this.styleAttr(t,{[e]:n});let r=e;if(this._tryRetarget(t,r))return this;let o=new be(this._stepper).to(r),l=Object.keys(r);return this.queue((function(){o=o.from(this.element()[t](l))}),(function(e){return this.element()[t](o.at(e).valueOf()),o.done()}),(function(e){const n=Object.keys(e),c=(b=l,n.filter((t=>!b.includes(t))));var b;if(c.length){const e=this.element()[t](c),n=new xe(o.from()).valueOf();Object.assign(n,e),o.from(n)}const h=new xe(o.to()).valueOf();Object.assign(h,e),o.to(h),l=n,r=e})),this._rememberMorpher(t,o),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new be(this._stepper).to(new kt(t));return this.queue((function(){n=n.from(this.element().zoom())}),(function(t){return this.element().zoom(n.at(t),e),n.done()}),(function(t,r){e=r,n.to(t)})),this._rememberMorpher("zoom",n),this},transform(t,e,n){if(e=t.relative||e,this._isDeclarative&&!e&&this._tryRetarget("transform",t))return this;const r=ot.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!r;const o=new be(this._stepper).type(n?we:ot);let l,element,c,h,d;return this.queue((function(){element=element||this.element(),l=l||_(t,element),d=new ot(e?void 0:element),element._addRunner(this),e||element._clearTransformRunnersBefore(this)}),(function(f){e||this.clearTransform();const{x:m,y:v}=new it(l).transform(element._currentTransform(this));let y=new ot({...t,origin:[m,v]}),_=this._isDeclarative&&c?c:d;if(n){y=y.decompose(m,v),_=_.decompose(m,v);const t=y.rotate,e=_.rotate,n=[t-360,t,t+360],r=n.map((a=>Math.abs(a-e))),o=Math.min(...r),l=r.indexOf(o);y.rotate=n[l]}e&&(r||(y.rotate=t.rotate||0),this._isDeclarative&&h&&(_.rotate=h)),o.from(_),o.to(y);const w=o.at(f);return h=w.rotate,c=new ot(w),this.addTransform(c),element._addRunner(this),o.done()}),(function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(l=_(e,element)),t={...e,origin:l}}),!0),this._isDeclarative&&this._rememberMorpher("transform",o),this},x(t,e){return this._queueNumber("x",t)},y(t){return this._queueNumber("y",t)},dx(t=0){return this._queueNumberDelta("x",t)},dy(t=0){return this._queueNumberDelta("y",t)},dmove(t,e){return this.dx(t).dy(e)},_queueNumberDelta(t,e){if(e=new kt(e),this._tryRetarget(t,e))return this;const n=new be(this._stepper).to(e);let r=null;return this.queue((function(){r=this.element()[t](),n.from(r),n.to(r+e)}),(function(e){return this.element()[t](n.at(e)),n.done()}),(function(t){n.to(r+new kt(t))})),this._rememberMorpher(t,n),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const n=new be(this._stepper).to(e);return this.queue((function(){n.from(this.element()[t]())}),(function(e){return this.element()[t](n.at(e)),n.done()})),this._rememberMorpher(t,n),this},_queueNumber(t,e){return this._queueObject(t,new kt(e))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,e){return this.x(t).y(e)},center(t,e){return this.cx(t).cy(e)},size(t,e){let n;return t&&e||(n=this._element.bbox()),t||(t=n.width/n.height*e),e||(e=n.height/n.width*t),this.width(t).height(e)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(a,b,t,e){if(4===arguments.length)return this.plot([a,b,t,e]);if(this._tryRetarget("plot",a))return this;const n=new be(this._stepper).type(this._element.MorphArray).to(a);return this.queue((function(){n.from(this._element.array())}),(function(t){return this._element.plot(n.at(t)),n.done()})),this._rememberMorpher("plot",n),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,e,n,r){return this._queueObject("viewbox",new lt(t,e,n,r))},update(t){return"object"!=typeof t?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",t.offset),this)}}),R(Me,{rx:Pt,ry:Mt,from:Wt,to:Yt}),D(Me,"Runner");class ze extends It{constructor(t,e=t){super(j("svg",t),e),this.namespace()}defs(){return this.isRoot()?I(this.node.querySelector("defs"))||this.put(new Lt):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof S.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:svg,version:"1.1"}).attr("xmlns:xlink",T,w).attr("xmlns:svgjs",x,w):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,w).attr("xmlns:svgjs",null,w)}root(){return this.isRoot()?this:super.root()}}l({Container:{nested:U((function(){return this.put(new ze)}))}}),D(ze,"Svg",!0);class qe extends It{constructor(t,e=t){super(j("symbol",t),e)}}l({Container:{symbol:U((function(){return this.put(new qe)}))}}),D(qe,"Symbol");var He={__proto__:null,plain:function(text){return!1===this._build&&this.clear(),this.node.appendChild(S.document.createTextNode(text)),this},length:function(){return this.node.getComputedTextLength()},x:function(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)},y:function(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)},move:function(t,e,n=this.bbox()){return this.x(t,n).y(e,n)},cx:function(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)},cy:function(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)},center:function(t,e,n=this.bbox()){return this.cx(t,n).cy(e,n)},ax:function(t){return this.attr("x",t)},ay:function(t){return this.attr("y",t)},amove:function(t,e){return this.ax(t).ay(e)},build:function(t){return this._build=!!t,this}};class Ve extends Dt{constructor(t,e=t){super(j("text",t),e),this.dom.leading=new kt(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new kt(t),this.rebuild())}rebuild(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){const t=this;let e=0;const n=this.dom.leading;this.each((function(i){const r=S.window.getComputedStyle(this.node).getPropertyValue("font-size"),o=n*new kt(r);this.dom.newLined&&(this.attr("x",t.attr("x")),"\n"===this.text()?e+=o:(this.attr("dy",i?o+e:0),e=0))})),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new kt(t.leading||1.3),this}text(text){if(void 0===text){const t=this.node.childNodes;let e=0;text="";for(let i=0,n=t.length;i<n;++i)"textPath"!==t[i].nodeName?(i!==e&&3!==t[i].nodeType&&!0===I(t[i]).dom.newLined&&(text+="\n"),text+=t[i].textContent):0===i&&(e=1);return text}if(this.clear().build(!0),"function"==typeof text)text.call(this,this);else for(let t=0,e=(text=(text+"").split("\n")).length;t<e;t++)this.newLine(text[t]);return this.build(!1).rebuild()}}R(Ve,He),l({Container:{text:U((function(text=""){return this.put(new Ve).text(text)})),plain:U((function(text=""){return this.put(new Ve).plain(text)}))}}),D(Ve,"Text");class We extends Dt{constructor(t,e=t){super(j("tspan",t),e),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const text=this.parent();if(!(text instanceof Ve))return this;const i=text.index(this),t=S.window.getComputedStyle(this.node).getPropertyValue("font-size"),e=text.dom.leading*new kt(t);return this.dy(i?e:0).attr("x",text.x())}text(text){return null==text?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof text?(this.clear().build(!0),text.call(this,this),this.build(!1)):this.plain(text),this)}}R(We,He),l({Tspan:{tspan:U((function(text=""){const tspan=new We;return this._build||this.clear(),this.put(tspan).text(text)}))},Text:{newLine:function(text=""){return this.tspan(text).newLine()}}}),D(We,"Tspan");class Ye extends Dt{constructor(t,e=t){super(j("circle",t),e)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new kt(t).divide(2))}}R(Ye,{x:Nt,y:Rt,cx:Ut,cy:Bt,width:Ft,height:zt}),l({Container:{circle:U((function(t=0){return this.put(new Ye).size(t).move(0,0)}))}}),D(Ye,"Circle");class Ge extends It{constructor(t,e=t){super(j("clipPath",t),e)}remove(){return this.targets().forEach((function(t){t.unclip()})),super.remove()}targets(){return pt("svg [clip-path*="+this.id()+"]")}}l({Container:{clip:U((function(){return this.defs().put(new Ge)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(element){const t=element instanceof Ge?element:this.parent().clip().add(element);return this.attr("clip-path","url(#"+t.id()+")")},unclip(){return this.attr("clip-path",null)}}}),D(Ge,"ClipPath");class Xe extends Ot{constructor(t,e=t){super(j("foreignObject",t),e)}}l({Container:{foreignObject:U((function(t,e){return this.put(new Xe).size(t,e)}))}}),D(Xe,"ForeignObject");var Ke={__proto__:null,dmove:function(t,e){return this.children().forEach(((n,i)=>{let r;try{r=n.bbox()}catch(t){return}const o=new ot(n),l=o.translate(t,e).transform(o.inverse()),p=new it(r.x,r.y).transform(l);n.move(p.x,p.y)})),this},dx:function(t){return this.dmove(t,0)},dy:function(t){return this.dmove(0,t)},height:function(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)},move:function(t=0,e=0,n=this.bbox()){const r=t-n.x,o=e-n.y;return this.dmove(r,o)},size:function(t,e,n=this.bbox()){const p=y(this,t,e,n),r=p.width/n.width,o=p.height/n.height;return this.children().forEach(((t,i)=>{const e=new it(n).transform(new ot(t).inverse());t.scale(r,o,e.x,e.y)})),this},width:function(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)},x:function(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)},y:function(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}};class $e extends It{constructor(t,e=t){super(j("g",t),e)}}R($e,Ke),l({Container:{group:U((function(){return this.put(new $e)}))}}),D($e,"G");class Qe extends It{constructor(t,e=t){super(j("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,T)}}R(Qe,Ke),l({Container:{link:U((function(t){return this.put(new Qe).to(t)}))},Element:{unlink(){const link=this.linker();if(!link)return this;const t=link.parent();if(!t)return this.remove();const e=t.index(link);return t.add(this,e),link.remove(),this},linkTo(t){let link=this.linker();return link||(link=new Qe,this.wrap(link)),"function"==typeof t?t.call(link,link):link.to(t),this},linker(){const link=this.parent();return link&&"a"===link.node.nodeName.toLowerCase()?link:null}}}),D(Qe,"A");class Je extends It{constructor(t,e=t){super(j("mask",t),e)}remove(){return this.targets().forEach((function(t){t.unmask()})),super.remove()}targets(){return pt("svg [mask*="+this.id()+"]")}}l({Container:{mask:U((function(){return this.defs().put(new Je)}))},Element:{masker(){return this.reference("mask")},maskWith(element){const t=element instanceof Je?element:this.parent().mask().add(element);return this.attr("mask","url(#"+t.id()+")")},unmask(){return this.attr("mask",null)}}}),D(Je,"Mask");class Ze extends Ot{constructor(t,e=t){super(j("stop",t),e)}update(t){return("number"==typeof t||t instanceof kt)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new kt(t.offset)),this}}l({Gradient:{stop:function(t,e,n){return this.put(new Ze).update(t,e,n)}}}),D(Ze,"Stop");class tn extends Ot{constructor(t,e=t){super(j("style",t),e)}addText(t=""){return this.node.textContent+=t,this}font(t,e,n={}){return this.rule("@font-face",{fontFamily:t,src:e,...n})}rule(t,e){return this.addText(function(t,e){if(!t)return"";if(!e)return t;let n=t+"{";for(const i in e)n+=m(i)+":"+e[i]+";";return n+="}",n}(t,e))}}l("Dom",{style(t,e){return this.put(new tn).rule(t,e)},fontface(t,e,n){return this.put(new tn).font(t,e,n)}}),D(tn,"Style");class en extends Ve{constructor(t,e=t){super(j("textPath",t),e)}array(){const track=this.track();return track?track.array():null}plot(t){const track=this.track();let e=null;return track&&(e=track.plot(t)),null==t?e:this}track(){return this.reference("href")}}l({Container:{textPath:U((function(text,path){return text instanceof Ve||(text=this.text(text)),text.path(path)}))},Text:{path:U((function(track,t=!0){const e=new en;let n;if(track instanceof Ee||(track=this.defs().path(track)),e.attr("href","#"+track,T),t)for(;n=this.node.firstChild;)e.node.appendChild(n);return this.put(e)})),textPath(){return this.findOne("textPath")}},Path:{text:U((function(text){return text instanceof Ve||(text=(new Ve).addTo(this.parent()).text(text)),text.path(this)})),targets(){return pt("svg textPath").filter((t=>(t.attr("href")||"").includes(this.id())))}}}),en.prototype.MorphArray=ve,D(en,"TextPath");class nn extends Dt{constructor(t,e=t){super(j("use",t),e)}use(element,t){return this.attr("href",(t||"")+"#"+element,T)}}l({Container:{use:U((function(element,t){return this.put(new nn).use(element,t)}))}}),D(nn,"Use");const rn=O;R([ze,qe,Qt,$t,ee],c("viewbox")),R([te,Ce,Ae,Ee],c("marker")),R(Ve,c("Text")),R(Ee,c("Path")),R(Lt,c("Defs")),R([Ve,We],c("Tspan")),R([Oe,Ht,Kt,Me],c("radius")),R(wt,c("EventTarget")),R(Ct,c("Dom")),R(Ot,c("Element")),R(Dt,c("Shape")),R([It,Vt],c("Container")),R(Kt,c("Gradient")),R(Me,c("Runner")),ht.extend([...new Set(o)]),function(t=[]){Se.push(...[].concat(t))}([kt,nt,lt,ot,Et,Jt,ve,it]),R(Se,{to(t){return(new be).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,e,n,r,o){return this.fromArray(t.map((function(i,t){return r.step(i,e[t],n,o[t],o)})))}})},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r=t=>Math.max(t.offsetHeight,t.scrollHeight);class o{constructor(t={}){const e={content:t.viewport.children[0],direction:"all",pointerMode:"all",scrollMode:void 0,bounce:!0,bounceForce:.1,friction:.05,textSelection:!1,inputsFocus:!0,emulateScroll:!1,preventDefaultOnEmulateScroll:!1,preventPointerMoveDefault:!0,lockScrollOnDragDirection:!1,pointerDownPreventDefault:!0,dragDirectionTolerance:40,onPointerDown(){},onPointerUp(){},onPointerMove(){},onClick(){},onUpdate(){},onWheel(){},shouldScroll:()=>!0};if(this.props={...e,...t},!(this.props.viewport&&this.props.viewport instanceof Element))return void console.error('ScrollBooster init error: "viewport" config property must be present and must be Element');if(!this.props.content)return void console.error("ScrollBooster init error: Viewport does not have any content");this.isDragging=!1,this.isTargetScroll=!1,this.isScrolling=!1,this.isRunning=!1;const n={x:0,y:0};this.position={...n},this.velocity={...n},this.dragStartPosition={...n},this.dragOffset={...n},this.clientOffset={...n},this.dragPosition={...n},this.targetPosition={...n},this.scrollOffset={...n},this.rafID=null,this.events={},this.updateMetrics(),this.handleEvents()}updateOptions(t={}){this.props={...this.props,...t},this.props.onUpdate(this.getState()),this.startAnimationLoop()}updateMetrics(){var t;this.viewport={width:this.props.viewport.clientWidth,height:this.props.viewport.clientHeight},this.content={width:(t=this.props.content,Math.max(t.offsetWidth,t.scrollWidth)),height:r(this.props.content)},this.edgeX={from:Math.min(-this.content.width+this.viewport.width,0),to:0},this.edgeY={from:Math.min(-this.content.height+this.viewport.height,0),to:0},this.props.onUpdate(this.getState()),this.startAnimationLoop()}startAnimationLoop(){this.isRunning=!0,cancelAnimationFrame(this.rafID),this.rafID=requestAnimationFrame((()=>this.animate()))}animate(){if(!this.isRunning)return;this.updateScrollPosition(),this.isMoving()||(this.isRunning=!1,this.isTargetScroll=!1);const t=this.getState();this.setContentPosition(t),this.props.onUpdate(t),this.rafID=requestAnimationFrame((()=>this.animate()))}updateScrollPosition(){this.applyEdgeForce(),this.applyDragForce(),this.applyScrollForce(),this.applyTargetForce();const t=1-this.props.friction;this.velocity.x*=t,this.velocity.y*=t,"vertical"!==this.props.direction&&(this.position.x+=this.velocity.x),"horizontal"!==this.props.direction&&(this.position.y+=this.velocity.y),this.props.bounce&&!this.isScrolling||this.isTargetScroll||(this.position.x=Math.max(Math.min(this.position.x,this.edgeX.to),this.edgeX.from),this.position.y=Math.max(Math.min(this.position.y,this.edgeY.to),this.edgeY.from))}applyForce(t){this.velocity.x+=t.x,this.velocity.y+=t.y}applyEdgeForce(){if(!this.props.bounce||this.isDragging)return;const t=this.position.x<this.edgeX.from,e=this.position.x>this.edgeX.to,n=this.position.y<this.edgeY.from,r=this.position.y>this.edgeY.to,o=t||e,l=n||r;if(!o&&!l)return;const c=t?this.edgeX.from:this.edgeX.to,h=n?this.edgeY.from:this.edgeY.to,d=c-this.position.x,f=h-this.position.y,m={x:d*this.props.bounceForce,y:f*this.props.bounceForce},v=this.position.x+(this.velocity.x+m.x)/this.props.friction,y=this.position.y+(this.velocity.y+m.y)/this.props.friction;(t&&v>=this.edgeX.from||e&&v<=this.edgeX.to)&&(m.x=d*this.props.bounceForce-this.velocity.x),(n&&y>=this.edgeY.from||r&&y<=this.edgeY.to)&&(m.y=f*this.props.bounceForce-this.velocity.y),this.applyForce({x:o?m.x:0,y:l?m.y:0})}applyDragForce(){if(!this.isDragging)return;const t=this.dragPosition.x-this.position.x,e=this.dragPosition.y-this.position.y;this.applyForce({x:t-this.velocity.x,y:e-this.velocity.y})}applyScrollForce(){this.isScrolling&&(this.applyForce({x:this.scrollOffset.x-this.velocity.x,y:this.scrollOffset.y-this.velocity.y}),this.scrollOffset.x=0,this.scrollOffset.y=0)}applyTargetForce(){this.isTargetScroll&&this.applyForce({x:.08*(this.targetPosition.x-this.position.x)-this.velocity.x,y:.08*(this.targetPosition.y-this.position.y)-this.velocity.y})}isMoving(){return this.isDragging||this.isScrolling||Math.abs(this.velocity.x)>=.01||Math.abs(this.velocity.y)>=.01}scrollTo(t={}){this.isTargetScroll=!0,this.targetPosition.x=-t.x||0,this.targetPosition.y=-t.y||0,this.startAnimationLoop()}setPosition(t={}){this.velocity.x=0,this.velocity.y=0,this.position.x=-t.x||0,this.position.y=-t.y||0,this.startAnimationLoop()}getState(){return{isMoving:this.isMoving(),isDragging:!(!this.dragOffset.x&&!this.dragOffset.y),position:{x:-this.position.x,y:-this.position.y},dragOffset:this.dragOffset,dragAngle:this.getDragAngle(this.clientOffset.x,this.clientOffset.y),borderCollision:{left:this.position.x>=this.edgeX.to,right:this.position.x<=this.edgeX.from,top:this.position.y>=this.edgeY.to,bottom:this.position.y<=this.edgeY.from}}}getDragAngle(t,e){return Math.round(Math.atan2(t,e)*(180/Math.PI))}getDragDirection(t,e){return Math.abs(90-Math.abs(t))<=90-e?"horizontal":"vertical"}setContentPosition(t){"transform"===this.props.scrollMode&&(this.props.content.style.transform=`translate(${-t.position.x}px, ${-t.position.y}px)`),"native"===this.props.scrollMode&&(this.props.viewport.scrollTop=t.position.y,this.props.viewport.scrollLeft=t.position.x)}handleEvents(){const t={x:0,y:0},e={x:0,y:0};let n=null,r=null,o=!1;const l=r=>{if(!this.isDragging)return;const l=o?r.touches[0]:r,{pageX:c,pageY:h,clientX:d,clientY:f}=l;this.dragOffset.x=c-t.x,this.dragOffset.y=h-t.y,this.clientOffset.x=d-e.x,this.clientOffset.y=f-e.y,(Math.abs(this.clientOffset.x)>5&&!n||Math.abs(this.clientOffset.y)>5&&!n)&&(n=this.getDragDirection(this.getDragAngle(this.clientOffset.x,this.clientOffset.y),this.props.dragDirectionTolerance)),this.props.lockScrollOnDragDirection&&"all"!==this.props.lockScrollOnDragDirection?n===this.props.lockScrollOnDragDirection&&o?(this.dragPosition.x=this.dragStartPosition.x+this.dragOffset.x,this.dragPosition.y=this.dragStartPosition.y+this.dragOffset.y):o?(this.dragPosition.x=this.dragStartPosition.x,this.dragPosition.y=this.dragStartPosition.y):(this.dragPosition.x=this.dragStartPosition.x+this.dragOffset.x,this.dragPosition.y=this.dragStartPosition.y+this.dragOffset.y):(this.dragPosition.x=this.dragStartPosition.x+this.dragOffset.x,this.dragPosition.y=this.dragStartPosition.y+this.dragOffset.y)};this.events.pointerdown=n=>{o=!(!n.touches||!n.touches[0]),this.props.onPointerDown(this.getState(),n,o);const r=o?n.touches[0]:n,{pageX:c,pageY:h,clientX:d,clientY:f}=r,{viewport:m}=this.props,rect=m.getBoundingClientRect();if(d-rect.left>=m.clientLeft+m.clientWidth)return;if(f-rect.top>=m.clientTop+m.clientHeight)return;if(!this.props.shouldScroll(this.getState(),n))return;if(2===n.button)return;if("mouse"===this.props.pointerMode&&o)return;if("touch"===this.props.pointerMode&&!o)return;if(!(this.props.inputsFocus&&["input","textarea","button","select","label"].indexOf(n.target.nodeName.toLowerCase())>-1)){if(this.props.textSelection){const t=((element,t,e)=>{const n=element.childNodes,r=document.createRange();for(let i=0;i<n.length;i++){const o=n[i];if(3!==o.nodeType)continue;r.selectNodeContents(o);const rect=r.getBoundingClientRect();if(t>=rect.left&&e>=rect.top&&t<=rect.right&&e<=rect.bottom)return o}return!1})(n.target,d,f);if(t)return;(()=>{const t=window.getSelection?window.getSelection():document.selection;t&&(t.removeAllRanges?t.removeAllRanges():t.empty&&t.empty())})()}this.isDragging=!0,t.x=c,t.y=h,e.x=d,e.y=f,this.dragStartPosition.x=this.position.x,this.dragStartPosition.y=this.position.y,l(n),this.startAnimationLoop(),!o&&this.props.pointerDownPreventDefault&&n.preventDefault()}},this.events.pointermove=t=>{!t.cancelable||"all"!==this.props.lockScrollOnDragDirection&&this.props.lockScrollOnDragDirection!==n||t.preventDefault(),l(t),this.props.onPointerMove(this.getState(),t,o)},this.events.pointerup=t=>{this.isDragging=!1,n=null,this.props.onPointerUp(this.getState(),t,o)},this.events.wheel=t=>{const e=this.getState();this.props.emulateScroll&&(this.velocity.x=0,this.velocity.y=0,this.isScrolling=!0,this.scrollOffset.x=-t.deltaX,this.scrollOffset.y=-t.deltaY,this.props.onWheel(e,t),this.startAnimationLoop(),clearTimeout(r),r=setTimeout((()=>this.isScrolling=!1),80),this.props.preventDefaultOnEmulateScroll&&this.getDragDirection(this.getDragAngle(-t.deltaX,-t.deltaY),this.props.dragDirectionTolerance)===this.props.preventDefaultOnEmulateScroll&&t.preventDefault())},this.events.scroll=()=>{const{scrollLeft:t,scrollTop:e}=this.props.viewport;Math.abs(this.position.x+t)>3&&(this.position.x=-t,this.velocity.x=0),Math.abs(this.position.y+e)>3&&(this.position.y=-e,this.velocity.y=0)},this.events.click=t=>{const e=this.getState(),n="vertical"!==this.props.direction?e.dragOffset.x:0,r="horizontal"!==this.props.direction?e.dragOffset.y:0;Math.max(Math.abs(n),Math.abs(r))>5&&(t.preventDefault(),t.stopPropagation()),this.props.onClick(e,t,o)},this.events.contentLoad=()=>this.updateMetrics(),this.events.resize=()=>this.updateMetrics(),this.props.viewport.addEventListener("mousedown",this.events.pointerdown),this.props.viewport.addEventListener("touchstart",this.events.pointerdown,{passive:!1}),this.props.viewport.addEventListener("click",this.events.click),this.props.viewport.addEventListener("wheel",this.events.wheel,{passive:!1}),this.props.viewport.addEventListener("scroll",this.events.scroll),this.props.content.addEventListener("load",this.events.contentLoad,!0),window.addEventListener("mousemove",this.events.pointermove),window.addEventListener("touchmove",this.events.pointermove,{passive:!1}),window.addEventListener("mouseup",this.events.pointerup),window.addEventListener("touchend",this.events.pointerup),window.addEventListener("resize",this.events.resize)}destroy(){this.props.viewport.removeEventListener("mousedown",this.events.pointerdown),this.props.viewport.removeEventListener("touchstart",this.events.pointerdown),this.props.viewport.removeEventListener("click",this.events.click),this.props.viewport.removeEventListener("wheel",this.events.wheel),this.props.viewport.removeEventListener("scroll",this.events.scroll),this.props.content.removeEventListener("load",this.events.contentLoad),window.removeEventListener("mousemove",this.events.pointermove),window.removeEventListener("touchmove",this.events.pointermove),window.removeEventListener("mouseup",this.events.pointerup),window.removeEventListener("touchend",this.events.pointerup),window.removeEventListener("resize",this.events.resize)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(158),o=n(128);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(45))},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(345),o=n(340),l=Object.prototype.hasOwnProperty;t.exports=function(object,t,e){var n=object[t];l.call(object,t)&&o(n,e)&&(void 0!==e||t in object)||r(object,t,e)}},function(t,e,n){var r=n(602);t.exports=function(object,t,e){"__proto__"==t&&r?r(object,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):object[t]=e}},function(t,e,n){var r=n(604),o=n(605),l=n(210),c=n(347),h=n(608),d=n(609),f=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=l(t),m=!n&&o(t),v=!n&&!m&&c(t),y=!n&&!m&&!v&&d(t),_=n||m||v||y,w=_?r(t.length,String):[],T=w.length;for(var x in t)!e&&!f.call(t,x)||_&&("length"==x||v&&("offset"==x||"parent"==x)||y&&("buffer"==x||"byteLength"==x||"byteOffset"==x)||h(x,T))||w.push(x);return w}},function(t,e,n){(function(t){var r=n(71),o=n(607),l=e&&!e.nodeType&&e,c=l&&"object"==typeof t&&t&&!t.nodeType&&t,h=c&&c.exports===l?r.Buffer:void 0,d=(h?h.isBuffer:void 0)||o;t.exports=d}).call(this,n(155)(t))},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var r=n(341),o=n(348);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(353),o=n(354),l=n(215),c=n(351),h=Object.getOwnPropertySymbols?function(object){for(var t=[];object;)r(t,l(object)),object=o(object);return t}:c;t.exports=h},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},function(t,e,n){var r=n(349)(Object.getPrototypeOf,Object);t.exports=r},function(t,e,n){var r=n(353),o=n(210);t.exports=function(object,t,e){var n=t(object);return o(object)?n:r(n,e(object))}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.buildDirective=e.defaultDOMPurifyInstanceBuilder=void 0;var o=r(n(647));function l(){return o.default}e.defaultDOMPurifyInstanceBuilder=l,e.buildDirective=function(t,e){void 0===t&&(t={}),void 0===e&&(e=l);var n=e();!function(t,e){var n,r,o=null!==(n=t.hooks)&&void 0!==n?n:{};for(r in o){var l=o[r];void 0!==l&&e.addHook(r,l)}}(t,n);var r=function(e,r){var o;if(r.oldValue!==r.value){var l=r.arg,c=t.namedConfigurations;c&&void 0!==l&&void 0!==c[l]?e.innerHTML=n.sanitize(r.value,c[l]):e.innerHTML=n.sanitize(r.value,null!==(o=t.default)&&void 0!==o?o:{})}};return{inserted:r,update:r,unbind:function(t){t.innerHTML=""}}}},,,,,,,,,function(t,e,n){var r=n(163),o=r.find,l=r.NAMESPACE;function c(input){return""!==input}function h(t,element){return t.hasOwnProperty(element)||(t[element]=!0),t}function d(input){if(!input)return[];var t=function(input){return input?input.split(/[\t\n\f\r ]+/).filter(c):[]}(input);return Object.keys(t.reduce(h,{}))}function f(t,e){for(var p in t)Object.prototype.hasOwnProperty.call(t,p)&&(e[p]=t[p])}function m(t,e){var n=t.prototype;if(!(n instanceof e)){function r(){}r.prototype=e.prototype,f(n,r=new r),t.prototype=n=r}n.constructor!=t&&("function"!=typeof t&&console.error("unknown Class:"+t),n.constructor=t)}var v={},y=v.ELEMENT_NODE=1,_=v.ATTRIBUTE_NODE=2,w=v.TEXT_NODE=3,T=v.CDATA_SECTION_NODE=4,x=v.ENTITY_REFERENCE_NODE=5,S=v.ENTITY_NODE=6,E=v.PROCESSING_INSTRUCTION_NODE=7,k=v.COMMENT_NODE=8,A=v.DOCUMENT_NODE=9,C=v.DOCUMENT_TYPE_NODE=10,O=v.DOCUMENT_FRAGMENT_NODE=11,j=v.NOTATION_NODE=12,I={},L={},D=(I.INDEX_SIZE_ERR=(L[1]="Index size error",1),I.DOMSTRING_SIZE_ERR=(L[2]="DOMString size error",2),I.HIERARCHY_REQUEST_ERR=(L[3]="Hierarchy request error",3)),P=(I.WRONG_DOCUMENT_ERR=(L[4]="Wrong document",4),I.INVALID_CHARACTER_ERR=(L[5]="Invalid character",5),I.NO_DATA_ALLOWED_ERR=(L[6]="No data allowed",6),I.NO_MODIFICATION_ALLOWED_ERR=(L[7]="No modification allowed",7),I.NOT_FOUND_ERR=(L[8]="Not found",8)),M=(I.NOT_SUPPORTED_ERR=(L[9]="Not supported",9),I.INUSE_ATTRIBUTE_ERR=(L[10]="Attribute in use",10));I.INVALID_STATE_ERR=(L[11]="Invalid state",11),I.SYNTAX_ERR=(L[12]="Syntax error",12),I.INVALID_MODIFICATION_ERR=(L[13]="Invalid modification",13),I.NAMESPACE_ERR=(L[14]="Invalid namespace",14),I.INVALID_ACCESS_ERR=(L[15]="Invalid access",15);function N(code,t){if(t instanceof Error)var e=t;else e=this,Error.call(this,L[code]),this.message=L[code],Error.captureStackTrace&&Error.captureStackTrace(this,N);return e.code=code,t&&(this.message=this.message+": "+t),e}function R(){}function U(t,e){this._node=t,this._refresh=e,B(this)}function B(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!==e){var n=t._refresh(t._node);if(Ot(t,"length",n.length),!t.$$length||n.length<t.$$length)for(var i=n.length;i in t;i++)Object.prototype.hasOwnProperty.call(t,i)&&delete t[i];f(n,t),t._inc=e}}function F(){}function z(t,e){for(var i=t.length;i--;)if(t[i]===e)return i}function H(t,e,n,r){if(r?e[z(e,r)]=n:e[e.length++]=n,t){n.ownerElement=t;var o=t.ownerDocument;o&&(r&&$(o,t,r),function(t,e,n){t&&t._inc++;var r=n.namespaceURI;r===l.XMLNS&&(e._nsMap[n.prefix?n.localName:""]=n.value)}(o,t,n))}}function V(t,e,n){var i=z(e,n);if(!(i>=0))throw new N(P,new Error(t.tagName+"@"+n));for(var r=e.length-1;i<r;)e[i]=e[++i];if(e.length=r,t){var o=t.ownerDocument;o&&($(o,t,n),n.ownerElement=null)}}function W(){}function Y(){}function G(t){return("<"==t?"<":">"==t&&">")||"&"==t&&"&"||'"'==t&&"""||"&#"+t.charCodeAt()+";"}function X(t,e){if(e(t))return!0;if(t=t.firstChild)do{if(X(t,e))return!0}while(t=t.nextSibling)}function K(){this.ownerDocument=this}function $(t,e,n,r){t&&t._inc++,n.namespaceURI===l.XMLNS&&delete e._nsMap[n.prefix?n.localName:""]}function Q(t,e,n){if(t&&t._inc){t._inc++;var r=e.childNodes;if(n)r[r.length++]=n;else{for(var o=e.firstChild,i=0;o;)r[i++]=o,o=o.nextSibling;r.length=i,delete r[r.length]}}}function J(t,e){var n=e.previousSibling,r=e.nextSibling;return n?n.nextSibling=r:t.firstChild=r,r?r.previousSibling=n:t.lastChild=n,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,Q(t.ownerDocument,t),e}function Z(t){return t&&t.nodeType===Y.DOCUMENT_TYPE_NODE}function tt(t){return t&&t.nodeType===Y.ELEMENT_NODE}function et(t){return t&&t.nodeType===Y.TEXT_NODE}function nt(t,e){var n=t.childNodes||[];if(o(n,tt)||Z(e))return!1;var r=o(n,Z);return!(e&&r&&n.indexOf(r)>n.indexOf(e))}function it(t,e){var n=t.childNodes||[];if(o(n,(function(t){return tt(t)&&t!==e})))return!1;var r=o(n,Z);return!(e&&r&&n.indexOf(r)>n.indexOf(e))}function st(t,e,n){if(!function(t){return t&&(t.nodeType===Y.DOCUMENT_NODE||t.nodeType===Y.DOCUMENT_FRAGMENT_NODE||t.nodeType===Y.ELEMENT_NODE)}(t))throw new N(D,"Unexpected parent node type "+t.nodeType);if(n&&n.parentNode!==t)throw new N(P,"child not in parent");if(!function(t){return t&&(tt(t)||et(t)||Z(t)||t.nodeType===Y.DOCUMENT_FRAGMENT_NODE||t.nodeType===Y.COMMENT_NODE||t.nodeType===Y.PROCESSING_INSTRUCTION_NODE)}(e)||Z(e)&&t.nodeType!==Y.DOCUMENT_NODE)throw new N(D,"Unexpected node type "+e.nodeType+" for parent node type "+t.nodeType)}function ot(t,e,n){var r=t.childNodes||[],l=e.childNodes||[];if(e.nodeType===Y.DOCUMENT_FRAGMENT_NODE){var c=l.filter(tt);if(c.length>1||o(l,et))throw new N(D,"More than one element or text in fragment");if(1===c.length&&!nt(t,n))throw new N(D,"Element in fragment can not be inserted before doctype")}if(tt(e)&&!nt(t,n))throw new N(D,"Only one element can be added and only after doctype");if(Z(e)){if(o(r,Z))throw new N(D,"Only one doctype is allowed");var h=o(r,tt);if(n&&r.indexOf(h)<r.indexOf(n))throw new N(D,"Doctype can only be inserted before an element");if(!n&&h)throw new N(D,"Doctype can not be appended since element is present")}}function at(t,e,n){var r=t.childNodes||[],l=e.childNodes||[];if(e.nodeType===Y.DOCUMENT_FRAGMENT_NODE){var c=l.filter(tt);if(c.length>1||o(l,et))throw new N(D,"More than one element or text in fragment");if(1===c.length&&!it(t,n))throw new N(D,"Element in fragment can not be inserted before doctype")}if(tt(e)&&!it(t,n))throw new N(D,"Only one element can be added and only after doctype");if(Z(e)){if(o(r,(function(t){return Z(t)&&t!==n})))throw new N(D,"Only one doctype is allowed");var h=o(r,tt);if(n&&r.indexOf(h)<r.indexOf(n))throw new N(D,"Doctype can only be inserted before an element")}}function ut(t,e,n,r){st(t,e,n),t.nodeType===Y.DOCUMENT_NODE&&(r||ot)(t,e,n);var o=e.parentNode;if(o&&o.removeChild(e),e.nodeType===O){var l=e.firstChild;if(null==l)return e;var c=e.lastChild}else l=c=e;var pre=n?n.previousSibling:t.lastChild;l.previousSibling=pre,c.nextSibling=n,pre?pre.nextSibling=l:t.firstChild=l,null==n?t.lastChild=c:n.previousSibling=c;do{l.parentNode=t}while(l!==c&&(l=l.nextSibling));return Q(t.ownerDocument||t,t),e.nodeType==O&&(e.firstChild=e.lastChild=null),e}function lt(){this._nsMap={}}function ct(){}function ht(){}function ft(){}function pt(){}function mt(){}function gt(){}function vt(){}function yt(){}function bt(){}function _t(){}function wt(){}function Tt(){}function xt(t,e){var n=[],r=9==this.nodeType&&this.documentElement||this,o=r.prefix,l=r.namespaceURI;if(l&&null==o&&null==(o=r.lookupPrefix(l)))var c=[{namespace:l,prefix:null}];return kt(this,n,t,e,c),n.join("")}function St(t,e,n){var r=t.prefix||"",o=t.namespaceURI;if(!o)return!1;if("xml"===r&&o===l.XML||o===l.XMLNS)return!1;for(var i=n.length;i--;){var c=n[i];if(c.prefix===r)return c.namespace!==o}return!0}function Et(t,e,n){t.push(" ",e,'="',n.replace(/[<>&"\t\n\r]/g,G),'"')}function kt(t,e,n,r,o){if(o||(o=[]),r){if(!(t=r(t)))return;if("string"==typeof t)return void e.push(t)}switch(t.nodeType){case y:var c=t.attributes,h=c.length,d=t.firstChild,f=t.tagName,m=f;if(!(n=l.isHTML(t.namespaceURI)||n)&&!t.prefix&&t.namespaceURI){for(var v,S=0;S<c.length;S++)if("xmlns"===c.item(S).name){v=c.item(S).value;break}if(!v)for(var j=o.length-1;j>=0;j--){if(""===(I=o[j]).prefix&&I.namespace===t.namespaceURI){v=I.namespace;break}}if(v!==t.namespaceURI)for(j=o.length-1;j>=0;j--){var I;if((I=o[j]).namespace===t.namespaceURI){I.prefix&&(m=I.prefix+":"+f);break}}}e.push("<",m);for(var i=0;i<h;i++){"xmlns"==(L=c.item(i)).prefix?o.push({prefix:L.localName,namespace:L.value}):"xmlns"==L.nodeName&&o.push({prefix:"",namespace:L.value})}for(i=0;i<h;i++){var L,D,P;if(St(L=c.item(i),0,o))Et(e,(D=L.prefix||"")?"xmlns:"+D:"xmlns",P=L.namespaceURI),o.push({prefix:D,namespace:P});kt(L,e,n,r,o)}if(f===m&&St(t,0,o))Et(e,(D=t.prefix||"")?"xmlns:"+D:"xmlns",P=t.namespaceURI),o.push({prefix:D,namespace:P});if(d||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(f)){if(e.push(">"),n&&/^script$/i.test(f))for(;d;)d.data?e.push(d.data):kt(d,e,n,r,o.slice()),d=d.nextSibling;else for(;d;)kt(d,e,n,r,o.slice()),d=d.nextSibling;e.push("</",m,">")}else e.push("/>");return;case A:case O:for(d=t.firstChild;d;)kt(d,e,n,r,o.slice()),d=d.nextSibling;return;case _:return Et(e,t.name,t.value);case w:return e.push(t.data.replace(/[<&>]/g,G));case T:return e.push("<![CDATA[",t.data,"]]>");case k:return e.push("\x3c!--",t.data,"--\x3e");case C:var M=t.publicId,N=t.systemId;if(e.push("<!DOCTYPE ",t.name),M)e.push(" PUBLIC ",M),N&&"."!=N&&e.push(" ",N),e.push(">");else if(N&&"."!=N)e.push(" SYSTEM ",N,">");else{var sub=t.internalSubset;sub&&e.push(" [",sub,"]"),e.push(">")}return;case E:return e.push("<?",t.target," ",t.data,"?>");case x:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function At(t,e,n){var r;switch(e.nodeType){case y:(r=e.cloneNode(!1)).ownerDocument=t;case O:break;case _:n=!0}if(r||(r=e.cloneNode(!1)),r.ownerDocument=t,r.parentNode=null,n)for(var o=e.firstChild;o;)r.appendChild(At(t,o,n)),o=o.nextSibling;return r}function Ct(t,e,n){var r=new e.constructor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=e[o];"object"!=typeof l&&l!=r[o]&&(r[o]=l)}switch(e.childNodes&&(r.childNodes=new R),r.ownerDocument=t,r.nodeType){case y:var c=e.attributes,h=r.attributes=new F,d=c.length;h._ownerElement=r;for(var i=0;i<d;i++)r.setAttributeNode(Ct(t,c.item(i),!0));break;case _:n=!0}if(n)for(var f=e.firstChild;f;)r.appendChild(Ct(t,f,n)),f=f.nextSibling;return r}function Ot(object,t,e){object[t]=e}N.prototype=Error.prototype,f(I,N),R.prototype={length:0,item:function(t){return t>=0&&t<this.length?this[t]:null},toString:function(t,e){for(var n=[],i=0;i<this.length;i++)kt(this[i],n,t,e);return n.join("")},filter:function(t){return Array.prototype.filter.call(this,t)},indexOf:function(t){return Array.prototype.indexOf.call(this,t)}},U.prototype.item=function(i){return B(this),this[i]||null},m(U,R),F.prototype={length:0,item:R.prototype.item,getNamedItem:function(t){for(var i=this.length;i--;){var e=this[i];if(e.nodeName==t)return e}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new N(M);var n=this.getNamedItem(t.nodeName);return H(this._ownerElement,this,t,n),n},setNamedItemNS:function(t){var e,n=t.ownerElement;if(n&&n!=this._ownerElement)throw new N(M);return e=this.getNamedItemNS(t.namespaceURI,t.localName),H(this._ownerElement,this,t,e),e},removeNamedItem:function(t){var e=this.getNamedItem(t);return V(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var n=this.getNamedItemNS(t,e);return V(this._ownerElement,this,n),n},getNamedItemNS:function(t,e){for(var i=this.length;i--;){var n=this[i];if(n.localName==e&&n.namespaceURI==t)return n}return null}},W.prototype={hasFeature:function(t,e){return!0},createDocument:function(t,e,n){var r=new K;if(r.implementation=this,r.childNodes=new R,r.doctype=n||null,n&&r.appendChild(n),e){var o=r.createElementNS(t,e);r.appendChild(o)}return r},createDocumentType:function(t,e,n){var r=new gt;return r.name=t,r.nodeName=t,r.publicId=e||"",r.systemId=n||"",r}},Y.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(t,e){return ut(this,t,e)},replaceChild:function(t,e){ut(this,t,e,at),e&&this.removeChild(e)},removeChild:function(t){return J(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(t){return Ct(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var e=t.nextSibling;e&&e.nodeType==w&&t.nodeType==w?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var e=this;e;){var map=e._nsMap;if(map)for(var n in map)if(Object.prototype.hasOwnProperty.call(map,n)&&map[n]===t)return n;e=e.nodeType==_?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var map=e._nsMap;if(map&&Object.prototype.hasOwnProperty.call(map,t))return map[t];e=e.nodeType==_?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},f(v,Y),f(v,Y.prototype),K.prototype={nodeName:"#document",nodeType:A,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==O){for(var n=t.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,e),n=r}return t}return ut(this,t,e),t.ownerDocument=this,null===this.documentElement&&t.nodeType===y&&(this.documentElement=t),t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),J(this,t)},replaceChild:function(t,e){ut(this,t,e,at),t.ownerDocument=this,e&&this.removeChild(e),tt(t)&&(this.documentElement=t)},importNode:function(t,e){return At(this,t,e)},getElementById:function(t){var e=null;return X(this.documentElement,(function(n){if(n.nodeType==y&&n.getAttribute("id")==t)return e=n,!0})),e},getElementsByClassName:function(t){var e=d(t);return new U(this,(function(base){var n=[];return e.length>0&&X(base.documentElement,(function(r){if(r!==base&&r.nodeType===y){var o=r.getAttribute("class");if(o){var l=t===o;if(!l){var c=d(o);l=e.every((h=c,function(element){return h&&-1!==h.indexOf(element)}))}l&&n.push(r)}}var h})),n}))},createElement:function(t){var e=new lt;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new R,(e.attributes=new F)._ownerElement=e,e},createDocumentFragment:function(){var t=new _t;return t.ownerDocument=this,t.childNodes=new R,t},createTextNode:function(data){var t=new ft;return t.ownerDocument=this,t.appendData(data),t},createComment:function(data){var t=new pt;return t.ownerDocument=this,t.appendData(data),t},createCDATASection:function(data){var t=new mt;return t.ownerDocument=this,t.appendData(data),t},createProcessingInstruction:function(t,data){var e=new wt;return e.ownerDocument=this,e.tagName=e.nodeName=e.target=t,e.nodeValue=e.data=data,e},createAttribute:function(t){var e=new ct;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new bt;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var n=new lt,r=e.split(":"),o=n.attributes=new F;return n.childNodes=new R,n.ownerDocument=this,n.nodeName=e,n.tagName=e,n.namespaceURI=t,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=e,o._ownerElement=n,n},createAttributeNS:function(t,e){var n=new ct,r=e.split(":");return n.ownerDocument=this,n.nodeName=e,n.name=e,n.namespaceURI=t,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=e,n}},m(K,Y),lt.prototype={nodeType:y,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var n=this.ownerDocument.createAttribute(t);n.value=n.nodeValue=""+e,this.setAttributeNode(n)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===O?this.insertBefore(t,null):function(t,e){return e.parentNode&&e.parentNode.removeChild(e),e.parentNode=t,e.previousSibling=t.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:t.firstChild=e,t.lastChild=e,Q(t.ownerDocument,t,e),e}(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);n&&this.removeAttributeNode(n)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);return n&&n.value||""},setAttributeNS:function(t,e,n){var r=this.ownerDocument.createAttributeNS(t,e);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new U(this,(function(base){var e=[];return X(base,(function(n){n===base||n.nodeType!=y||"*"!==t&&n.tagName!=t||e.push(n)})),e}))},getElementsByTagNameNS:function(t,e){return new U(this,(function(base){var n=[];return X(base,(function(r){r===base||r.nodeType!==y||"*"!==t&&r.namespaceURI!==t||"*"!==e&&r.localName!=e||n.push(r)})),n}))}},K.prototype.getElementsByTagName=lt.prototype.getElementsByTagName,K.prototype.getElementsByTagNameNS=lt.prototype.getElementsByTagNameNS,m(lt,Y),ct.prototype.nodeType=_,m(ct,Y),ht.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(text){text=this.data+text,this.nodeValue=this.data=text,this.length=text.length},insertData:function(t,text){this.replaceData(t,0,text)},appendChild:function(t){throw new Error(L[D])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,text){text=this.data.substring(0,t)+text+this.data.substring(t+e),this.nodeValue=this.data=text,this.length=text.length}},m(ht,Y),ft.prototype={nodeName:"#text",nodeType:w,splitText:function(t){var text=this.data,e=text.substring(t);text=text.substring(0,t),this.data=this.nodeValue=text,this.length=text.length;var n=this.ownerDocument.createTextNode(e);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},m(ft,ht),pt.prototype={nodeName:"#comment",nodeType:k},m(pt,ht),mt.prototype={nodeName:"#cdata-section",nodeType:T},m(mt,ht),gt.prototype.nodeType=C,m(gt,Y),vt.prototype.nodeType=j,m(vt,Y),yt.prototype.nodeType=S,m(yt,Y),bt.prototype.nodeType=x,m(bt,Y),_t.prototype.nodeName="#document-fragment",_t.prototype.nodeType=O,m(_t,Y),wt.prototype.nodeType=E,m(wt,Y),Tt.prototype.serializeToString=function(t,e,n){return xt.call(t,e,n)},Y.prototype.toString=xt;try{if(Object.defineProperty){function jt(t){switch(t.nodeType){case y:case O:var e=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&e.push(jt(t)),t=t.nextSibling;return e.join("");default:return t.nodeValue}}Object.defineProperty(U.prototype,"length",{get:function(){return B(this),this.$$length}}),Object.defineProperty(Y.prototype,"textContent",{get:function(){return jt(this)},set:function(data){switch(this.nodeType){case y:case O:for(;this.firstChild;)this.removeChild(this.firstChild);(data||String(data))&&this.appendChild(this.ownerDocument.createTextNode(data));break;default:this.data=data,this.value=data,this.nodeValue=data}}}),Ot=function(object,t,e){object["$$"+t]=e}}}catch(It){}e.DocumentType=gt,e.DOMException=N,e.DOMImplementation=W,e.Element=lt,e.Node=Y,e.NodeList=R,e.XMLSerializer=Tt},function(t,e,n){"use strict";function r(t,e){return e=e||{},new Promise((function(n,r){var s=new XMLHttpRequest,o=[],u={},a=function t(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:t,headers:{keys:function(){return o},entries:function(){return o.map((function(t){return[t,s.getResponseHeader(t)]}))},get:function(t){return s.getResponseHeader(t)},has:function(t){return null!=s.getResponseHeader(t)}}}};for(var i in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,(function(t,e){u[e]||o.push(u[e]=e)})),n(a())},s.onerror=r,s.withCredentials="include"==e.credentials,e.headers)s.setRequestHeader(i,e.headers[i]);s.send(e.body||null)}))}n.d(e,"a",(function(){return r}))},,function(t,e,n){"use strict";var r=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===o}(t)}(t)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(t,e){return!1!==e.clone&&e.isMergeableObject(t)?m((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function c(t,source,e){return t.concat(source).map((function(element){return l(element,e)}))}function h(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(symbol){return Object.propertyIsEnumerable.call(t,symbol)})):[]}(t))}function d(object,t){try{return t in object}catch(t){return!1}}function f(t,source,e){var n={};return e.isMergeableObject(t)&&h(t).forEach((function(r){n[r]=l(t[r],e)})),h(source).forEach((function(r){(function(t,e){return d(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,r)||(d(t,r)&&e.isMergeableObject(source[r])?n[r]=function(t,e){if(!e.customMerge)return m;var n=e.customMerge(t);return"function"==typeof n?n:m}(r,e)(t[r],source[r],e):n[r]=l(source[r],e))})),n}function m(t,source,e){(e=e||{}).arrayMerge=e.arrayMerge||c,e.isMergeableObject=e.isMergeableObject||r,e.cloneUnlessOtherwiseSpecified=l;var n=Array.isArray(source);return n===Array.isArray(t)?n?e.arrayMerge(t,source,e):f(t,source,e):l(source,e)}m.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return m(t,n,e)}),{})};var v=m;t.exports=v},function(t,e,n){"use strict";var r,o;function l(t){return"object"==typeof t&&"function"==typeof t.to}function c(t){t.parentElement.removeChild(t)}function h(t){return null!=t}function d(t){t.preventDefault()}function f(a){return"number"==typeof a&&!isNaN(a)&&isFinite(a)}function m(element,t,e){e>0&&(w(element,t),setTimeout((function(){T(element,t)}),e))}function v(a){return Math.max(Math.min(a,100),0)}function y(a){return Array.isArray(a)?a:[a]}function _(t){var e=(t=String(t)).split(".");return e.length>1?e[1].length:0}function w(t,e){t.classList&&!/\s/.test(e)?t.classList.add(e):t.className+=" "+e}function T(t,e){t.classList&&!/\s/.test(e)?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function x(t){var e=void 0!==window.pageXOffset,n="CSS1Compat"===(t.compatMode||"");return{x:e?window.pageXOffset:n?t.documentElement.scrollLeft:t.body.scrollLeft,y:e?window.pageYOffset:n?t.documentElement.scrollTop:t.body.scrollTop}}function S(t,e){return 100/(e-t)}function E(t,e,n){return 100*e/(t[n+1]-t[n])}function k(t,e){for(var n=1;t>=e[n];)n+=1;return n}function A(t,e,n){if(n>=t.slice(-1)[0])return 100;var r=k(n,t),o=t[r-1],l=t[r],c=e[r-1],h=e[r];return c+function(t,e){return E(t,t[0]<0?e+Math.abs(t[0]):e-t[0],0)}([o,l],n)/S(c,h)}function C(t,e,n,r){if(100===r)return r;var o=k(r,t),a=t[o-1],b=t[o];return n?r-a>(b-a)/2?b:a:e[o-1]?t[o-1]+function(t,e){return Math.round(t/e)*e}(r-t[o-1],e[o-1]):r}n.d(e,"a",(function(){return at})),function(t){t.Range="range",t.Steps="steps",t.Positions="positions",t.Count="count",t.Values="values"}(r||(r={})),function(t){t[t.None=-1]="None",t[t.NoValue=0]="NoValue",t[t.LargeValue=1]="LargeValue",t[t.SmallValue=2]="SmallValue"}(o||(o={}));var O=function(){function t(t,e,n){var r;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.snap=e;var o=[];for(Object.keys(t).forEach((function(e){o.push([y(t[e]),e])})),o.sort((function(a,b){return a[0][0]-b[0][0]})),r=0;r<o.length;r++)this.handleEntryPoint(o[r][1],o[r][0]);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)this.handleStepPoint(r,this.xNumSteps[r])}return t.prototype.getDistance=function(t){for(var e=[],n=0;n<this.xNumSteps.length-1;n++)e[n]=E(this.xVal,t,n);return e},t.prototype.getAbsoluteDistance=function(t,e,n){var r,o=0;if(t<this.xPct[this.xPct.length-1])for(;t>this.xPct[o+1];)o++;else t===this.xPct[this.xPct.length-1]&&(o=this.xPct.length-2);n||t!==this.xPct[o+1]||o++,null===e&&(e=[]);var l=1,c=e[o],h=0,d=0,f=0,m=0;for(r=n?(t-this.xPct[o])/(this.xPct[o+1]-this.xPct[o]):(this.xPct[o+1]-t)/(this.xPct[o+1]-this.xPct[o]);c>0;)h=this.xPct[o+1+m]-this.xPct[o+m],e[o+m]*l+100-100*r>100?(d=h*r,l=(c-100*r)/e[o+m],r=1):(d=e[o+m]*h/100*l,l=0),n?(f-=d,this.xPct.length+m>=1&&m--):(f+=d,this.xPct.length-m>=1&&m++),c=e[o+m]*l;return t+f},t.prototype.toStepping=function(t){return t=A(this.xVal,this.xPct,t)},t.prototype.fromStepping=function(t){return function(t,e,n){if(n>=100)return t.slice(-1)[0];var r=k(n,e),o=t[r-1],l=t[r],c=e[r-1];return function(t,e){return e*(t[1]-t[0])/100+t[0]}([o,l],(n-c)*S(c,e[r]))}(this.xVal,this.xPct,t)},t.prototype.getStep=function(t){return t=C(this.xPct,this.xSteps,this.snap,t)},t.prototype.getDefaultStep=function(t,e,n){var r=k(t,this.xPct);return(100===t||e&&t===this.xPct[r-1])&&(r=Math.max(r-1,1)),(this.xVal[r]-this.xVal[r-1])/n},t.prototype.getNearbySteps=function(t){var e=k(t,this.xPct);return{stepBefore:{startValue:this.xVal[e-2],step:this.xNumSteps[e-2],highestStep:this.xHighestCompleteStep[e-2]},thisStep:{startValue:this.xVal[e-1],step:this.xNumSteps[e-1],highestStep:this.xHighestCompleteStep[e-1]},stepAfter:{startValue:this.xVal[e],step:this.xNumSteps[e],highestStep:this.xHighestCompleteStep[e]}}},t.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(_);return Math.max.apply(null,t)},t.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},t.prototype.convert=function(t){return this.getStep(this.toStepping(t))},t.prototype.handleEntryPoint=function(t,e){var n;if(!f(n="min"===t?0:"max"===t?100:parseFloat(t))||!f(e[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(n),this.xVal.push(e[0]);var r=Number(e[1]);n?this.xSteps.push(!isNaN(r)&&r):isNaN(r)||(this.xSteps[0]=r),this.xHighestCompleteStep.push(0)},t.prototype.handleStepPoint=function(i,t){if(t)if(this.xVal[i]!==this.xVal[i+1]){this.xSteps[i]=E([this.xVal[i],this.xVal[i+1]],t,0)/S(this.xPct[i],this.xPct[i+1]);var e=(this.xVal[i+1]-this.xVal[i])/this.xNumSteps[i],n=Math.ceil(Number(e.toFixed(3))-1),r=this.xVal[i]+this.xNumSteps[i]*n;this.xHighestCompleteStep[i]=r}else this.xSteps[i]=this.xHighestCompleteStep[i]=this.xVal[i]},t}(),j={to:function(t){return void 0===t?"":t.toFixed(2)},from:Number},I={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},L={tooltips:".__tooltips",aria:".__aria"};function D(t,e){if(!f(e))throw new Error("noUiSlider: 'step' is not numeric.");t.singleStep=e}function P(t,e){if(!f(e))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");t.keyboardPageMultiplier=e}function M(t,e){if(!f(e))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");t.keyboardMultiplier=e}function N(t,e){if(!f(e))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");t.keyboardDefaultStep=e}function R(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");t.spectrum=new O(e,t.snap||!1,t.singleStep)}function U(t,e){if(e=y(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider: 'start' option is incorrect.");t.handles=e.length,t.start=e}function B(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'snap' option must be a boolean.");t.snap=e}function F(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'animate' option must be a boolean.");t.animate=e}function z(t,e){if("number"!=typeof e)throw new Error("noUiSlider: 'animationDuration' option must be a number.");t.animationDuration=e}function H(t,e){var i,n=[!1];if("lower"===e?e=[!0,!1]:"upper"===e&&(e=[!1,!0]),!0===e||!1===e){for(i=1;i<t.handles;i++)n.push(e);n.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==t.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");n=e}t.connect=n}function V(t,e){switch(e){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function W(t,e){if(!f(e))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==e&&(t.margin=t.spectrum.getDistance(e))}function Y(t,e){if(!f(e))throw new Error("noUiSlider: 'limit' option must be numeric.");if(t.limit=t.spectrum.getDistance(e),!t.limit||t.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function G(t,e){var n;if(!f(e)&&!Array.isArray(e))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(e)&&2!==e.length&&!f(e[0])&&!f(e[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==e){for(Array.isArray(e)||(e=[e,e]),t.padding=[t.spectrum.getDistance(e[0]),t.spectrum.getDistance(e[1])],n=0;n<t.spectrum.xNumSteps.length-1;n++)if(t.padding[0][n]<0||t.padding[1][n]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var r=e[0]+e[1],o=t.spectrum.xVal[0];if(r/(t.spectrum.xVal[t.spectrum.xVal.length-1]-o)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function X(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function K(t,e){if("string"!=typeof e)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var n=e.indexOf("tap")>=0,r=e.indexOf("drag")>=0,o=e.indexOf("fixed")>=0,l=e.indexOf("snap")>=0,c=e.indexOf("hover")>=0,h=e.indexOf("unconstrained")>=0,d=e.indexOf("invert-connects")>=0,f=e.indexOf("drag-all")>=0,m=e.indexOf("smooth-steps")>=0;if(o){if(2!==t.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");W(t,t.start[1]-t.start[0])}if(d&&2!==t.handles)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(h&&(t.margin||t.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");t.events={tap:n||l,drag:r,dragAll:f,smoothSteps:m,fixed:o,snap:l,hover:c,unconstrained:h,invertConnects:d}}function $(t,e){if(!1!==e)if(!0===e||l(e)){t.tooltips=[];for(var i=0;i<t.handles;i++)t.tooltips.push(e)}else{if((e=y(e)).length!==t.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");e.forEach((function(t){if("boolean"!=typeof t&&!l(t))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")})),t.tooltips=e}}function Q(t,e){if(e.length!==t.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");t.handleAttributes=e}function J(t,e){if(!l(e))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");t.ariaFormat=e}function Z(t,e){if(!function(t){return l(t)&&"function"==typeof t.from}(e))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");t.format=e}function tt(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");t.keyboardSupport=e}function et(t,e){t.documentElement=e}function nt(t,e){if("string"!=typeof e&&!1!==e)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");t.cssPrefix=e}function it(t,e){if("object"!=typeof e)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof t.cssPrefix?(t.cssClasses={},Object.keys(e).forEach((function(n){t.cssClasses[n]=t.cssPrefix+e[n]}))):t.cssClasses=e}function st(t){var e={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:j,format:j},n={step:{r:!1,t:D},keyboardPageMultiplier:{r:!1,t:P},keyboardMultiplier:{r:!1,t:M},keyboardDefaultStep:{r:!1,t:N},start:{r:!0,t:U},connect:{r:!0,t:H},direction:{r:!0,t:X},snap:{r:!1,t:B},animate:{r:!1,t:F},animationDuration:{r:!1,t:z},range:{r:!0,t:R},orientation:{r:!1,t:V},margin:{r:!1,t:W},limit:{r:!1,t:Y},padding:{r:!1,t:G},behaviour:{r:!0,t:K},ariaFormat:{r:!1,t:J},format:{r:!1,t:Z},tooltips:{r:!1,t:$},keyboardSupport:{r:!0,t:tt},documentElement:{r:!1,t:et},cssPrefix:{r:!0,t:nt},cssClasses:{r:!0,t:it},handleAttributes:{r:!1,t:Q}},r={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:I,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};t.format&&!t.ariaFormat&&(t.ariaFormat=t.format),Object.keys(n).forEach((function(o){if(h(t[o])||void 0!==r[o])n[o].t(e,h(t[o])?t[o]:r[o]);else if(n[o].r)throw new Error("noUiSlider: '"+o+"' is required.")})),e.pips=t.pips;var o=document.createElement("div"),l=void 0!==o.style.msTransform,c=void 0!==o.style.transform;e.transformRule=c?"transform":l?"msTransform":"webkitTransform";return e.style=[["left","top"],["right","bottom"]][e.dir][e.ort],e}function ot(t,e,n){var l,f,_,S,E,k,A,C=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},O=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}(),j=t,I=e.spectrum,D=[],P=[],M=[],N=0,R={},U=!1,B=t.ownerDocument,F=e.documentElement||B.documentElement,z=B.body,V="rtl"===B.dir||1===e.ort?0:100;function W(t,e){var div=B.createElement("div");return e&&w(div,e),t.appendChild(div),div}function Y(base,t){var n=W(base,e.cssClasses.origin),r=W(n,e.cssClasses.handle);if(W(r,e.cssClasses.touchArea),r.setAttribute("data-handle",String(t)),e.keyboardSupport&&(r.setAttribute("tabindex","0"),r.addEventListener("keydown",(function(n){return function(t,n){if(K()||$(n))return!1;var r=["Left","Right"],o=["Down","Up"],l=["PageDown","PageUp"],c=["Home","End"];e.dir&&!e.ort?r.reverse():e.ort&&!e.dir&&(o.reverse(),l.reverse());var h,d=t.key.replace("Arrow",""),f=d===l[0],m=d===l[1],v=d===o[0]||d===r[0]||f,y=d===o[1]||d===r[1]||m,_=d===c[0],w=d===c[1];if(!(v||y||_||w))return!0;if(t.preventDefault(),y||v){var T=v?0:1,x=It(n)[T];if(null===x)return!1;!1===x&&(x=I.getDefaultStep(P[n],v,e.keyboardDefaultStep)),x*=m||f?e.keyboardPageMultiplier:e.keyboardMultiplier,x=Math.max(x,1e-7),x*=v?-1:1,h=D[n]+x}else h=w?e.spectrum.xVal[e.spectrum.xVal.length-1]:e.spectrum.xVal[0];return kt(n,I.toStepping(h),!0,!0),bt("slide",n),bt("update",n),bt("change",n),bt("set",n),!1}(n,t)}))),void 0!==e.handleAttributes){var o=e.handleAttributes[t];Object.keys(o).forEach((function(t){r.setAttribute(t,o[t])}))}return r.setAttribute("role","slider"),r.setAttribute("aria-orientation",e.ort?"vertical":"horizontal"),0===t?w(r,e.cssClasses.handleLower):t===e.handles-1&&w(r,e.cssClasses.handleUpper),n.handle=r,n}function G(base,t){return!!t&&W(base,e.cssClasses.connect)}function X(t,n){return!(!e.tooltips||!e.tooltips[n])&&W(t.firstChild,e.cssClasses.tooltip)}function K(){return j.hasAttribute("disabled")}function $(t){return _[t].hasAttribute("disabled")}function Q(){k&&(yt("update"+L.tooltips),k.forEach((function(t){t&&c(t)})),k=null)}function J(){Q(),k=_.map(X),vt("update"+L.tooltips,(function(t,n,r){if(k&&e.tooltips&&!1!==k[n]){var o=t[n];!0!==e.tooltips[n]&&(o=e.tooltips[n].to(r[n])),k[n].innerHTML=o}}))}function Z(t,e){return t.map((function(t){return I.fromStepping(e?I.getStep(t):t)}))}function tt(t){var e,n=function(t){if(t.mode===r.Range||t.mode===r.Steps)return I.xVal;if(t.mode===r.Count){if(t.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var e=t.values-1,n=100/e,o=[];e--;)o[e]=e*n;return o.push(100),Z(o,t.stepped)}return t.mode===r.Positions?Z(t.values,t.stepped):t.mode===r.Values?t.stepped?t.values.map((function(t){return I.fromStepping(I.getStep(I.toStepping(t)))})):t.values:[]}(t),l={},c=I.xVal[0],h=I.xVal[I.xVal.length-1],d=!1,f=!1,m=0;return e=n.slice().sort((function(a,b){return a-b})),(n=e.filter((function(a){return!this[a]&&(this[a]=!0)}),{}))[0]!==c&&(n.unshift(c),d=!0),n[n.length-1]!==h&&(n.push(h),f=!0),n.forEach((function(e,c){var h,i,q,v,y,_,w,T,x,S,E=e,k=n[c+1],A=t.mode===r.Steps;for(A&&(h=I.xNumSteps[c]),h||(h=k-E),void 0===k&&(k=E),h=Math.max(h,1e-7),i=E;i<=k;i=Number((i+h).toFixed(7))){for(T=(y=(v=I.toStepping(i))-m)/(t.density||1),S=y/(x=Math.round(T)),q=1;q<=x;q+=1)l[(_=m+q*S).toFixed(5)]=[I.fromStepping(_),0];w=n.indexOf(i)>-1?o.LargeValue:A?o.SmallValue:o.NoValue,!c&&d&&i!==k&&(w=0),i===k&&f||(l[v.toFixed(5)]=[i,w]),m=v}})),l}function et(t,n,r){var l,c,element=B.createElement("div"),h=((l={})[o.None]="",l[o.NoValue]=e.cssClasses.valueNormal,l[o.LargeValue]=e.cssClasses.valueLarge,l[o.SmallValue]=e.cssClasses.valueSub,l),d=((c={})[o.None]="",c[o.NoValue]=e.cssClasses.markerNormal,c[o.LargeValue]=e.cssClasses.markerLarge,c[o.SmallValue]=e.cssClasses.markerSub,c),f=[e.cssClasses.valueHorizontal,e.cssClasses.valueVertical],m=[e.cssClasses.markerHorizontal,e.cssClasses.markerVertical];function v(t,source){var a=source===e.cssClasses.value,n=a?h:d;return source+" "+(a?f:m)[e.ort]+" "+n[t]}return w(element,e.cssClasses.pips),w(element,0===e.ort?e.cssClasses.pipsHorizontal:e.cssClasses.pipsVertical),Object.keys(t).forEach((function(l){!function(t,l,c){if((c=n?n(l,c):c)!==o.None){var h=W(element,!1);h.className=v(c,e.cssClasses.marker),h.style[e.style]=t+"%",c>o.NoValue&&((h=W(element,!1)).className=v(c,e.cssClasses.value),h.setAttribute("data-value",String(l)),h.style[e.style]=t+"%",h.innerHTML=String(r.to(l)))}}(l,t[l][0],t[l][1])})),element}function nt(){E&&(c(E),E=null)}function it(t){nt();var e=tt(t),filter=t.filter,n=t.format||{to:function(t){return String(Math.round(t))}};return E=j.appendChild(et(e,filter,n))}function ot(){var rect=l.getBoundingClientRect(),t="offset"+["Width","Height"][e.ort];return 0===e.ort?rect.width||l[t]:rect.height||l[t]}function at(t,element,n,data){var r=function(r){var o,l,c=function(t,e,n){var r=0===t.type.indexOf("touch"),o=0===t.type.indexOf("mouse"),l=0===t.type.indexOf("pointer"),c=0,h=0;0===t.type.indexOf("MSPointer")&&(l=!0);if("mousedown"===t.type&&!t.buttons&&!t.touches)return!1;if(r){var d=function(e){var r=e.target;return r===n||n.contains(r)||t.composed&&t.composedPath().shift()===n};if("touchstart"===t.type){var f=Array.prototype.filter.call(t.touches,d);if(f.length>1)return!1;c=f[0].pageX,h=f[0].pageY}else{var m=Array.prototype.find.call(t.changedTouches,d);if(!m)return!1;c=m.pageX,h=m.pageY}}e=e||x(B),(o||l)&&(c=t.clientX+e.x,h=t.clientY+e.y);return t.pageOffset=e,t.points=[c,h],t.cursor=o||l,t}(r,data.pageOffset,data.target||element);return!!c&&(!(K()&&!data.doNotReject)&&(o=j,l=e.cssClasses.tap,!((o.classList?o.classList.contains(l):new RegExp("\\b"+l+"\\b").test(o.className))&&!data.doNotReject)&&(!(t===C.start&&void 0!==c.buttons&&c.buttons>1)&&((!data.hover||!c.buttons)&&(O||c.preventDefault(),c.calcPoint=c.points[e.ort],void n(c,data))))))},o=[];return t.split(" ").forEach((function(t){element.addEventListener(t,r,!!O&&{passive:!0}),o.push([t,r])})),o}function ut(t){var n,r,rect,o,c,h,d=100*(t-(n=l,r=e.ort,rect=n.getBoundingClientRect(),o=n.ownerDocument,c=o.documentElement,h=x(o),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(h.x=0),r?rect.top+h.y-c.clientTop:rect.left+h.x-c.clientLeft))/ot();return d=v(d),e.dir?100-d:d}function lt(t,data){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&ht(t,data)}function ct(t,data){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===t.buttons&&0!==data.buttonsProperty)return ht(t,data);var n=(e.dir?-1:1)*(t.calcPoint-data.startCalcPoint);Tt(n>0,100*n/data.baseSize,data.locations,data.handleNumbers,data.connect)}function ht(t,data){data.handle&&(T(data.handle,e.cssClasses.active),N-=1),data.listeners.forEach((function(t){F.removeEventListener(t[0],t[1])})),0===N&&(T(j,e.cssClasses.drag),Et(),t.cursor&&(z.style.cursor="",z.removeEventListener("selectstart",d))),e.events.smoothSteps&&(data.handleNumbers.forEach((function(t){kt(t,P[t],!0,!0,!1,!1)})),data.handleNumbers.forEach((function(t){bt("update",t)}))),data.handleNumbers.forEach((function(t){bt("change",t),bt("set",t),bt("end",t)}))}function ft(t,data){if(!data.handleNumbers.some($)){var n;if(1===data.handleNumbers.length)n=_[data.handleNumbers[0]].children[0],N+=1,w(n,e.cssClasses.active);t.stopPropagation();var r=[],o=at(C.move,F,ct,{target:t.target,handle:n,connect:data.connect,listeners:r,startCalcPoint:t.calcPoint,baseSize:ot(),pageOffset:t.pageOffset,handleNumbers:data.handleNumbers,buttonsProperty:t.buttons,locations:P.slice()}),l=at(C.end,F,ht,{target:t.target,handle:n,listeners:r,doNotReject:!0,handleNumbers:data.handleNumbers}),c=at("mouseout",F,lt,{target:t.target,handle:n,listeners:r,doNotReject:!0,handleNumbers:data.handleNumbers});r.push.apply(r,o.concat(l,c)),t.cursor&&(z.style.cursor=getComputedStyle(t.target).cursor,_.length>1&&w(j,e.cssClasses.drag),z.addEventListener("selectstart",d,!1)),data.handleNumbers.forEach((function(t){bt("start",t)}))}}function pt(t){t.stopPropagation();var n=ut(t.calcPoint),r=function(t){var e=100,n=!1;return _.forEach((function(r,o){if(!$(o)){var l=P[o],c=Math.abs(l-t);(c<e||c<=e&&t>l||100===c&&100===e)&&(n=o,e=c)}})),n}(n);!1!==r&&(e.events.snap||m(j,e.cssClasses.tap,e.animationDuration),kt(r,n,!0,!0),Et(),bt("slide",r,!0),bt("update",r,!0),e.events.snap?ft(t,{handleNumbers:[r]}):(bt("change",r,!0),bt("set",r,!0)))}function mt(t){var e=ut(t.calcPoint),n=I.getStep(e),r=I.fromStepping(n);Object.keys(R).forEach((function(t){"hover"===t.split(".")[0]&&R[t].forEach((function(t){t.call(Dt,r)}))}))}function gt(t){t.fixed||_.forEach((function(t,e){at(C.start,t.children[0],ft,{handleNumbers:[e]})})),t.tap&&at(C.start,l,pt,{}),t.hover&&at(C.move,l,mt,{hover:!0}),t.drag&&S.forEach((function(n,r){if(!1!==n&&0!==r&&r!==S.length-1){var o=_[r-1],l=_[r],c=[n],h=[o,l],d=[r-1,r];w(n,e.cssClasses.draggable),t.fixed&&(c.push(o.children[0]),c.push(l.children[0])),t.dragAll&&(h=_,d=M),c.forEach((function(t){at(C.start,t,ft,{handles:h,handleNumbers:d,connect:n})}))}}))}function vt(t,e){R[t]=R[t]||[],R[t].push(e),"update"===t.split(".")[0]&&_.forEach((function(a,t){bt("update",t)}))}function yt(t){var e=t&&t.split(".")[0],n=e?t.substring(e.length):t;Object.keys(R).forEach((function(t){var r=t.split(".")[0],o=t.substring(r.length);e&&e!==r||n&&n!==o||function(t){return t===L.aria||t===L.tooltips}(o)&&n!==o||delete R[t]}))}function bt(t,n,r){Object.keys(R).forEach((function(o){var l=o.split(".")[0];t===l&&R[o].forEach((function(t){t.call(Dt,D.map(e.format.to),n,D.slice(),r||!1,P.slice(),Dt)}))}))}function _t(t,n,r,o,l,c,h){var d;return _.length>1&&!e.events.unconstrained&&(o&&n>0&&(d=I.getAbsoluteDistance(t[n-1],e.margin,!1),r=Math.max(r,d)),l&&n<_.length-1&&(d=I.getAbsoluteDistance(t[n+1],e.margin,!0),r=Math.min(r,d))),_.length>1&&e.limit&&(o&&n>0&&(d=I.getAbsoluteDistance(t[n-1],e.limit,!1),r=Math.min(r,d)),l&&n<_.length-1&&(d=I.getAbsoluteDistance(t[n+1],e.limit,!0),r=Math.max(r,d))),e.padding&&(0===n&&(d=I.getAbsoluteDistance(0,e.padding[0],!1),r=Math.max(r,d)),n===_.length-1&&(d=I.getAbsoluteDistance(100,e.padding[1],!0),r=Math.min(r,d))),h||(r=I.getStep(r)),!((r=v(r))===t[n]&&!c)&&r}function wt(t,a){var n=e.ort;return(n?a:t)+", "+(n?t:a)}function Tt(t,n,r,o,l){var c=r.slice(),h=o[0],d=e.events.smoothSteps,b=[!t,t],f=[t,!t];o=o.slice(),t&&o.reverse(),o.length>1?o.forEach((function(t,e){var r=_t(c,t,c[t]+n,b[e],f[e],!1,d);!1===r?n=0:(n=r-c[t],c[t]=r)})):b=f=[!0];var m=!1;o.forEach((function(t,e){m=kt(t,r[t]+n,b[e],f[e],!1,d)||m})),m&&(o.forEach((function(t){bt("update",t),bt("slide",t)})),null!=l&&bt("drag",h))}function xt(a,b){return e.dir?100-a-b:a}function St(t,n){P[t]=n,D[t]=I.fromStepping(n);var r="translate("+wt(xt(n,0)-V+"%","0")+")";if(_[t].style[e.transformRule]=r,e.events.invertConnects&&P.length>1){var o=P.every((function(t,e,n){return 0===e||t>=n[e-1]}));if(U!==!o)return U=!U,H(e,e.connect.map((function(b){return!b}))),void Lt()}At(t),At(t+1),U&&(At(t-1),At(t+2))}function Et(){M.forEach((function(t){var e=P[t]>50?-1:1,n=3+(_.length+e*t);_[t].style.zIndex=String(n)}))}function kt(t,e,n,r,o,l){return o||(e=_t(P,t,e,n,r,!1,l)),!1!==e&&(St(t,e),!0)}function At(t){if(S[t]){var n=P.slice();U&&n.sort((function(a,b){return a-b}));var r=0,o=100;0!==t&&(r=n[t-1]),t!==S.length-1&&(o=n[t]);var l=o-r,c="translate("+wt(xt(r,l)+"%","0")+")",h="scale("+wt(l/100,"1")+")";S[t].style[e.transformRule]=c+" "+h}}function Ct(t,n){return null===t||!1===t||void 0===t?P[n]:("number"==typeof t&&(t=String(t)),!1!==(t=e.format.from(t))&&(t=I.toStepping(t)),!1===t||isNaN(t)?P[n]:t)}function Ot(input,t,n){var r=y(input),o=void 0===P[0];t=void 0===t||t,e.animate&&!o&&m(j,e.cssClasses.tap,e.animationDuration),M.forEach((function(t){kt(t,Ct(r[t],t),!0,!1,n)}));var i=1===M.length?0:1;if(o&&I.hasNoSize()&&(n=!0,P[0]=0,M.length>1)){var l=100/(M.length-1);M.forEach((function(t){P[t]=t*l}))}for(;i<M.length;++i)M.forEach((function(t){kt(t,P[t],!0,!0,n)}));Et(),M.forEach((function(e){bt("update",e),null!==r[e]&&t&&bt("set",e)}))}function jt(t){if(void 0===t&&(t=!1),t)return 1===D.length?D[0]:D.slice(0);var n=D.map(e.format.to);return 1===n.length?n[0]:n}function It(t){var n=P[t],r=I.getNearbySteps(n),o=D[t],l=r.thisStep.step,c=null;if(e.snap)return[o-r.stepBefore.startValue||null,r.stepAfter.startValue-o||null];!1!==l&&o+l>r.stepAfter.startValue&&(l=r.stepAfter.startValue-o),c=o>r.thisStep.startValue?r.thisStep.step:!1!==r.stepBefore.step&&o-r.stepBefore.highestStep,100===n?l=null:0===n&&(c=null);var h=I.countStepDecimals();return null!==l&&!1!==l&&(l=Number(l.toFixed(h))),null!==c&&!1!==c&&(c=Number(c.toFixed(h))),[c,l]}function Lt(){for(;f.firstChild;)f.removeChild(f.firstChild);for(var i=0;i<=e.handles;i++)S[i]=G(f,e.connect[i]),At(i);gt({drag:e.events.drag,fixed:!0})}w(A=j,e.cssClasses.target),0===e.dir?w(A,e.cssClasses.ltr):w(A,e.cssClasses.rtl),0===e.ort?w(A,e.cssClasses.horizontal):w(A,e.cssClasses.vertical),w(A,"rtl"===getComputedStyle(A).direction?e.cssClasses.textDirectionRtl:e.cssClasses.textDirectionLtr),l=W(A,e.cssClasses.base),function(t,base){f=W(base,e.cssClasses.connects),_=[],(S=[]).push(G(f,t[0]));for(var i=0;i<e.handles;i++)_.push(Y(base,i)),M[i]=i,S.push(G(f,t[i+1]))}(e.connect,l),gt(e.events),Ot(e.start),e.pips&&it(e.pips),e.tooltips&&J(),yt("update"+L.aria),vt("update"+L.aria,(function(t,n,r,o,l){M.forEach((function(t){var n=_[t],o=_t(P,t,0,!0,!0,!0),c=_t(P,t,100,!0,!0,!0),h=l[t],text=String(e.ariaFormat.to(r[t]));o=I.fromStepping(o).toFixed(1),c=I.fromStepping(c).toFixed(1),h=I.fromStepping(h).toFixed(1),n.children[0].setAttribute("aria-valuemin",o),n.children[0].setAttribute("aria-valuemax",c),n.children[0].setAttribute("aria-valuenow",h),n.children[0].setAttribute("aria-valuetext",text)}))}));var Dt={destroy:function(){for(yt(L.aria),yt(L.tooltips),Object.keys(e.cssClasses).forEach((function(t){T(j,e.cssClasses[t])}));j.firstChild;)j.removeChild(j.firstChild);delete j.noUiSlider},steps:function(){return M.map(It)},on:vt,off:yt,get:jt,set:Ot,setHandle:function(t,e,n,r){if(!((t=Number(t))>=0&&t<M.length))throw new Error("noUiSlider: invalid handle number, got: "+t);kt(t,Ct(e,t),!0,!0,r),bt("update",t),n&&bt("set",t)},reset:function(t){Ot(e.start,t)},disable:function(t){null!=t?(_[t].setAttribute("disabled",""),_[t].handle.removeAttribute("tabindex")):(j.setAttribute("disabled",""),_.forEach((function(t){t.handle.removeAttribute("tabindex")})))},enable:function(t){null!=t?(_[t].removeAttribute("disabled"),_[t].handle.setAttribute("tabindex","0")):(j.removeAttribute("disabled"),_.forEach((function(t){t.removeAttribute("disabled"),t.handle.setAttribute("tabindex","0")})))},__moveHandles:function(t,e,n){Tt(t,e,P,n)},options:n,updateOptions:function(t,r){var o=jt(),l=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];l.forEach((function(e){void 0!==t[e]&&(n[e]=t[e])}));var c=st(n);l.forEach((function(n){void 0!==t[n]&&(e[n]=c[n])})),I=c.spectrum,e.margin=c.margin,e.limit=c.limit,e.padding=c.padding,e.pips?it(e.pips):nt(),e.tooltips?J():Q(),P=[],Ot(h(t.start)?t.start:o,r),t.connect&&Lt()},target:j,removePips:nt,removeTooltips:Q,getPositions:function(){return P.slice()},getTooltips:function(){return k},getOrigins:function(){return _},pips:it};return Dt}function at(t,e){if(!t||!t.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+t);if(t.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var n=ot(t,st(e),e);return t.noUiSlider=n,n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.buildVueDompurifyHTMLDirective=void 0;var r=n(356),o=n(356);Object.defineProperty(e,"buildVueDompurifyHTMLDirective",{enumerable:!0,get:function(){return o.buildDirective}}),e.default={install:function(t,e,n){void 0===e&&(e={}),void 0===n&&(n=r.defaultDOMPurifyInstanceBuilder),t.directive("dompurify-html",(0,r.buildDirective)(e,n))}}},function(t,e){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(1);t.exports=function(e,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a="object"===("undefined"==typeof document?"undefined":r(document))&&"string"==typeof document.cookie,s="object"===(void 0===e?"undefined":r(e))&&"object"===(void 0===n?"undefined":r(n))&&void 0!==t,u=!a&&!s||a&&s,l=function(t){if(s){var r=e.headers.cookie||"";return t&&(r=(r=n.getHeaders())["set-cookie"]?r["set-cookie"].map((function(t){return t.split(";")[0]})).join(";"):""),r}if(a)return document.cookie||""},c=function(){var t=n.getHeader("Set-Cookie");return(t="string"==typeof t?[t]:t)||[]},p=function(t){return n.setHeader("Set-Cookie",t)},h=function(t,e){if(!e)return t;try{return JSON.parse(t)}catch(e){return t}},d={parseJSON:i,set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"};if(!u)if(e="object"===(void 0===e?"undefined":r(e))?JSON.stringify(e):e,s){var i=c();i.push(o.serialize(t,e,n)),p(i)}else document.cookie=o.serialize(t,e,n)},setAll:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];u||Array.isArray(t)&&t.forEach((function(t){var e=t.name,n=void 0===e?"":e,r=t.value,o=void 0===r?"":r,i=t.opts,a=void 0===i?{path:"/"}:i;d.set(n,o,a)}))},get:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fromRes:!1,parseJSON:d.parseJSON};if(u)return"";var n=o.parse(l(e.fromRes))[t];return h(n,e.parseJSON)},getAll:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{fromRes:!1,parseJSON:d.parseJSON};if(u)return{};var e=o.parse(l(t.fromRes));for(var n in e)e[n]=h(e[n],t.parseJSON);return e},remove:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{path:"/"};u||(e.expires=new Date(0),d.set(t,"",e))},removeAll:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{path:"/"};if(!u){var e=o.parse(l());for(var n in e)d.remove(n,t)}},nodeCookie:o};return d}},function(t,e,n){"use strict";function i(t,e){try{return e(t)}catch(e){return t}}e.parse=function(t,e){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var n={},r=e||{},o=t.split(u),s=r.decode||a,l=0;l<o.length;l++){var c=o[l],p=c.indexOf("=");if(!(p<0)){var h=c.substr(0,p).trim(),d=c.substr(++p,c.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),null==n[h]&&(n[h]=i(d,s))}}return n},e.serialize=function(t,e,n){var o=n||{},l=o.encode||s;if("function"!=typeof l)throw new TypeError("option encode is invalid");if(!r.test(t))throw new TypeError("argument name is invalid");var i=l(e);if(i&&!r.test(i))throw new TypeError("argument val is invalid");var a=t+"="+i;if(null!=o.maxAge){var u=o.maxAge-0;if(isNaN(u))throw new Error("maxAge should be a Number");a+="; Max-Age="+Math.floor(u)}if(o.domain){if(!r.test(o.domain))throw new TypeError("option domain is invalid");a+="; Domain="+o.domain}if(o.path){if(!r.test(o.path))throw new TypeError("option path is invalid");a+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw new TypeError("option expires is invalid");a+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(a+="; HttpOnly"),o.secure&&(a+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return a};var a=decodeURIComponent,s=encodeURIComponent,u=/; */,r=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/}])},function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(48),o=n(41);n(81),n(666),n(39),n(667),n(668),n(669),n(11),n(43),n(63),n(57);function l(t){if(null===t||"object"!==Object(o.a)(t))return!1;var e=Object.getPrototypeOf(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&(!(Symbol.iterator in t)&&(!(Symbol.toStringTag in t)||"[object Module]"===Object.prototype.toString.call(t)))}function c(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",o=arguments.length>3?arguments[3]:void 0;if(!l(e))return c(t,{},n,o);var object=Object.assign({},e);for(var h in t)if("__proto__"!==h&&"constructor"!==h){var d=t[h];null!=d&&(o&&o(object,h,d,n)||(Array.isArray(d)&&Array.isArray(object[h])?object[h]=[].concat(Object(r.a)(d),Object(r.a)(object[h])):l(d)&&l(object[h])?object[h]=c(d,object[h],(n?"".concat(n,"."):"")+h.toString(),o):object[h]=d))}return object}function h(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.reduce((function(p,e){return c(p,e,"",t)}),{})}}var d=h();h((function(object,t,e){if(void 0!==object[t]&&"function"==typeof e)return object[t]=e(object[t]),!0})),h((function(object,t,e){if(Array.isArray(object[t])&&"function"==typeof e)return object[t]=e(object[t]),!0}))},function(t,e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p=".",e(e.s=10)}([function(t,e){t.exports={"#":{pattern:/\d/},X:{pattern:/[0-9a-zA-Z]/},S:{pattern:/[a-zA-Z]/},A:{pattern:/[a-zA-Z]/,transform:function(t){return t.toLocaleUpperCase()}},a:{pattern:/[a-zA-Z]/,transform:function(t){return t.toLocaleLowerCase()}},"!":{escape:!0}}},function(t,e,n){"use strict";function r(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e}var a=n(2),o=n(0),i=n.n(o);e.a=function(t,e){var o=e.value;if((Array.isArray(o)||"string"==typeof o)&&(o={mask:o,tokens:i.a}),"INPUT"!==t.tagName.toLocaleUpperCase()){var u=t.getElementsByTagName("input");if(1!==u.length)throw new Error("v-mask directive requires 1 input, found "+u.length);t=u[0]}t.oninput=function(e){if(e.isTrusted){var i=t.selectionEnd,u=t.value[i-1];for(t.value=n.i(a.a)(t.value,o.mask,!0,o.tokens);i<t.value.length&&t.value.charAt(i-1)!==u;)i++;t===document.activeElement&&(t.setSelectionRange(i,i),setTimeout((function(){t.setSelectionRange(i,i)}),0)),t.dispatchEvent(r("input"))}};var s=n.i(a.a)(t.value,o.mask,!0,o.tokens);s!==t.value&&(t.value=s,t.dispatchEvent(r("input")))}},function(t,e,n){"use strict";var r=n(6),a=n(5);e.a=function(t,e){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments[3];return Array.isArray(e)?n.i(a.a)(r.a,e,i)(t,e,o,i):n.i(r.a)(t,e,o,i)}},function(t,e,n){"use strict";function r(t){t.component(s.a.name,s.a),t.directive("mask",i.a)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),o=n.n(a),i=n(1),u=n(7),s=n.n(u);n.d(e,"TheMask",(function(){return s.a})),n.d(e,"mask",(function(){return i.a})),n.d(e,"tokens",(function(){return o.a})),n.d(e,"version",(function(){return l}));var l="0.11.1";e.default=r,"undefined"!=typeof window&&window.Vue&&window.Vue.use(r)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),a=n(0),o=n.n(a),i=n(2);e.default={name:"TheMask",props:{value:[String,Number],mask:{type:[String,Array],required:!0},masked:{type:Boolean,default:!1},tokens:{type:Object,default:function(){return o.a}}},directives:{mask:r.a},data:function(){return{lastValue:null,display:this.value}},watch:{value:function(t){t!==this.lastValue&&(this.display=t)},masked:function(){this.refresh(this.display)}},computed:{config:function(){return{mask:this.mask,tokens:this.tokens,masked:this.masked}}},methods:{onInput:function(t){t.isTrusted||this.refresh(t.target.value)},refresh:function(t){this.display=t,(t=n.i(i.a)(t,this.mask,this.masked,this.tokens))!==this.lastValue&&(this.lastValue=t,this.$emit("input",t))}}}},function(t,e,n){"use strict";function r(t,e,n){return e=e.sort((function(t,e){return t.length-e.length})),function(r,a){for(var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=0;i<e.length;){var u=e[i];i++;var s=e[i];if(!(s&&t(r,s,!0,n).length>u.length))return t(r,u,o,n)}return""}}e.a=r},function(t,e,n){"use strict";function r(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments[3];t=t||"",e=e||"";for(var a=0,o=0,i="";a<e.length&&o<t.length;){var s=r[u=e[a]],l=t[o];s&&!s.escape?(s.pattern.test(l)&&(i+=s.transform?s.transform(l):l,a++),o++):(s&&s.escape&&(u=e[++a]),n&&(i+=u),l===u&&o++,a++)}for(var c="";a<e.length&&n;){var u;if(r[u=e[a]]){c="";break}c+=u,a++}return i+c}e.a=r},function(t,e,n){var r=n(8)(n(4),n(9),null,null);t.exports=r.exports},function(t,e){t.exports=function(t,e,n,r){var a,o=t=t||{},i=typeof t.default;"object"!==i&&"function"!==i||(a=t,o=t.default);var u="function"==typeof o?o.options:o;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns),n&&(u._scopeId=n),r){var s=u.computed||(u.computed={});Object.keys(r).forEach((function(t){var e=r[t];s[t]=function(){return e}}))}return{esModule:a,exports:o,options:u}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{directives:[{name:"mask",rawName:"v-mask",value:t.config,expression:"config"}],attrs:{type:"text"},domProps:{value:t.display},on:{input:t.onInput}})},staticRenderFns:[]}},function(t,e,n){t.exports=n(3)}])},function(t,e,n){"use strict";(function(t){for(var r,o=n(0),l=n.n(o),c=n(2),h=n.n(c),d=n(62),f=n.n(d),m=n(14),v=n.n(m),y=n(10),_=n.n(y),w=n(4),T=n.n(w),x=n(375),S=n.n(x),E=n(224),k=n.n(E),A=n(225),C=n.n(A),O=n(219),j=n.n(O),I=n(376),L=n.n(I),D=n(109),P=n(403),M=n(26),N=n(227),R=n(1),U=n(80),B=n(378),F=n.n(B),z=n(89),H=n(134),V=n(133),W=n(379),Y=n.n(W),G="7.21.6",X={},K=function(t,e){return X[t]=X[t]||[],e&&(X[t]=X[t].concat(e)),X[t]},$=function(t,e){var n=K(t).indexOf(e);return!(n<=-1)&&(X[t]=X[t].slice(),X[t].splice(n,1),!0)},Q={prefixed:!0},J=[["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"]],Z=J[0],i=0;i<J.length;i++)if(J[i][1]in h.a){r=J[i];break}if(r){for(var tt=0;tt<r.length;tt++)Q[Z[tt]]=r[tt];Q.prefixed=r[0]!==Z[0]}var et=[];var nt=function t(e){var n,r="info",o=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];n("log",r,e)};return n=function(t,e){return function(n,r,o){var c=e.levels[r],h=new RegExp("^("+c+")$");if("log"!==n&&o.unshift(n.toUpperCase()+":"),o.unshift(t+":"),et){et.push([].concat(o));var d=et.length-1e3;et.splice(0,d>0?d:0)}if(l.a.console){var f=l.a.console[n];f||"debug"!==n||(f=l.a.console.info||l.a.console.log),f&&c&&h.test(n)&&f[Array.isArray(o)?"apply":"call"](l.a.console,o)}}}(e,o),o.createLogger=function(n){return t(e+": "+n)},o.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:r},o.level=function(t){if("string"==typeof t){if(!o.levels.hasOwnProperty(t))throw new Error('"'+t+'" in not a valid log level');r=t}return r},(o.history=function(){return et?[].concat(et):[]}).filter=function(t){return(et||[]).filter((function(e){return new RegExp(".*"+t+".*").test(e[0])}))},o.history.clear=function(){et&&(et.length=0)},o.history.disable=function(){null!==et&&(et.length=0,et=null)},o.history.enable=function(){null===et&&(et=[])},o.error=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return n("error",r,e)},o.warn=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return n("warn",r,e)},o.debug=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return n("debug",r,e)},o}("VIDEOJS"),it=nt.createLogger,st=Object.prototype.toString,ot=function(object){return lt(object)?Object.keys(object):[]};function at(object,t){ot(object).forEach((function(e){return t(object[e],e)}))}function ut(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Object.assign?f.a.apply(void 0,[t].concat(n)):(n.forEach((function(source){source&&at(source,(function(e,n){t[n]=e}))})),t)}function lt(t){return!!t&&"object"==typeof t}function ct(t){return lt(t)&&"[object Object]"===st.call(t)&&t.constructor===Object}function ht(t,e){if(!t||!e)return"";if("function"==typeof l.a.getComputedStyle){var n;try{n=l.a.getComputedStyle(t)}catch(t){return""}return n?n.getPropertyValue(e)||n[e]:""}return""}var ft,pt=l.a.navigator&&l.a.navigator.userAgent||"",mt=/AppleWebKit\/([\d.]+)/i.exec(pt),gt=mt?parseFloat(mt.pop()):null,vt=/iPod/i.test(pt),yt=(ft=pt.match(/OS (\d+)_/i))&&ft[1]?ft[1]:null,bt=/Android/i.test(pt),_t=function(){var t=pt.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var e=t[1]&&parseFloat(t[1]),n=t[2]&&parseFloat(t[2]);return e&&n?parseFloat(t[1]+"."+t[2]):e||null}(),wt=bt&&_t<5&><537,Tt=/Firefox/i.test(pt),xt=/Edg/i.test(pt),St=!xt&&(/Chrome/i.test(pt)||/CriOS/i.test(pt)),Et=function(){var t=pt.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),kt=function(){var t=/MSIE\s(\d+)\.\d/.exec(pt),e=t&&parseFloat(t[1]);return!e&&/Trident\/7.0/i.test(pt)&&/rv:11.0/.test(pt)&&(e=11),e}(),At=/Safari/i.test(pt)&&!St&&!bt&&!xt,Ct=/Windows/i.test(pt),Ot=Boolean(Rt()&&("ontouchstart"in l.a||l.a.navigator.maxTouchPoints||l.a.DocumentTouch&&l.a.document instanceof l.a.DocumentTouch)),jt=/iPad/i.test(pt)||At&&Ot&&!/iPhone/i.test(pt),It=/iPhone/i.test(pt)&&!jt,Lt=It||jt||vt,Dt=(At||Lt)&&!St,Pt=Object.freeze({__proto__:null,IS_IPOD:vt,IOS_VERSION:yt,IS_ANDROID:bt,ANDROID_VERSION:_t,IS_NATIVE_ANDROID:wt,IS_FIREFOX:Tt,IS_EDGE:xt,IS_CHROME:St,CHROME_VERSION:Et,IE_VERSION:kt,IS_SAFARI:At,IS_WINDOWS:Ct,TOUCH_ENABLED:Ot,IS_IPAD:jt,IS_IPHONE:It,IS_IOS:Lt,IS_ANY_SAFARI:Dt});function Mt(t){return"string"==typeof t&&Boolean(t.trim())}function Nt(t){if(t.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function Rt(){return h.a===l.a.document}function Ut(t){return lt(t)&&1===t.nodeType}function Bt(){try{return l.a.parent!==l.a.self}catch(t){return!0}}function Ft(t){return function(e,n){if(!Mt(e))return h.a[t](null);Mt(n)&&(n=h.a.querySelector(n));var r=Ut(n)?n:h.a;return r[t]&&r[t](e)}}function zt(t,e,n,content){void 0===t&&(t="div"),void 0===e&&(e={}),void 0===n&&(n={});var r=h.a.createElement(t);return Object.getOwnPropertyNames(e).forEach((function(t){var n=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(nt.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+t+" to "+n+"."),r.setAttribute(t,n)):"textContent"===t?qt(r,n):r[t]===n&&"tabIndex"!==t||(r[t]=n)})),Object.getOwnPropertyNames(n).forEach((function(t){r.setAttribute(t,n[t])})),content&&ae(r,content),r}function qt(t,text){return void 0===t.textContent?t.innerText=text:t.textContent=text,t}function Ht(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function Vt(element,t){return Nt(t),element.classList?element.classList.contains(t):(e=t,new RegExp("(^|\\s)"+e+"($|\\s)")).test(element.className);var e}function Wt(element,t){return element.classList?element.classList.add(t):Vt(element,t)||(element.className=(element.className+" "+t).trim()),element}function Yt(element,t){return element?(element.classList?element.classList.remove(t):(Nt(t),element.className=element.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),element):(nt.warn("removeClass was called with an element that doesn't exist"),null)}function Gt(element,t,e){var n=Vt(element,t);if("function"==typeof e&&(e=e(element,t)),"boolean"!=typeof e&&(e=!n),e!==n)return e?Wt(element,t):Yt(element,t),element}function Xt(t,e){Object.getOwnPropertyNames(e).forEach((function(n){var r=e[n];null==r||!1===r?t.removeAttribute(n):t.setAttribute(n,!0===r?"":r)}))}function Kt(t){var e={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(t&&t.attributes&&t.attributes.length>0)for(var r=t.attributes,i=r.length-1;i>=0;i--){var o=r[i].name,l=r[i].value;"boolean"!=typeof t[o]&&-1===n.indexOf(","+o+",")||(l=null!==l),e[o]=l}return e}function $t(t,e){return t.getAttribute(e)}function Qt(t,e,n){t.setAttribute(e,n)}function Jt(t,e){t.removeAttribute(e)}function Zt(){h.a.body.focus(),h.a.onselectstart=function(){return!1}}function te(){h.a.onselectstart=function(){return!0}}function ee(t){if(t&&t.getBoundingClientRect&&t.parentNode){var rect=t.getBoundingClientRect(),e={};return["bottom","height","left","right","top","width"].forEach((function(t){void 0!==rect[t]&&(e[t]=rect[t])})),e.height||(e.height=parseFloat(ht(t,"height"))),e.width||(e.width=parseFloat(ht(t,"width"))),e}}function ne(t){if(!t||t&&!t.offsetParent)return{left:0,top:0,width:0,height:0};for(var e=t.offsetWidth,n=t.offsetHeight,r=0,o=0;t.offsetParent&&t!==h.a[Q.fullscreenElement];)r+=t.offsetLeft,o+=t.offsetTop,t=t.offsetParent;return{left:r,top:o,width:e,height:n}}function re(t,e){var n={x:0,y:0};if(Lt)for(var r=t;r&&"html"!==r.nodeName.toLowerCase();){var o=ht(r,"transform");if(/^matrix/.test(o)){var l=o.slice(7,-1).split(/,\s/).map(Number);n.x+=l[4],n.y+=l[5]}else if(/^matrix3d/.test(o)){var c=o.slice(9,-1).split(/,\s/).map(Number);n.x+=c[12],n.y+=c[13]}r=r.parentNode}var h={},d=ne(e.target),f=ne(t),m=f.width,v=f.height,y=e.offsetY-(f.top-d.top),_=e.offsetX-(f.left-d.left);return e.changedTouches&&(_=e.changedTouches[0].pageX-f.left,y=e.changedTouches[0].pageY+f.top,Lt&&(_-=n.x,y-=n.y)),h.y=1-Math.max(0,Math.min(1,y/v)),h.x=Math.max(0,Math.min(1,_/m)),h}function ie(t){return lt(t)&&3===t.nodeType}function se(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function oe(content){return"function"==typeof content&&(content=content()),(Array.isArray(content)?content:[content]).map((function(t){return"function"==typeof t&&(t=t()),Ut(t)||ie(t)?t:"string"==typeof t&&/\S/.test(t)?h.a.createTextNode(t):void 0})).filter((function(t){return t}))}function ae(t,content){return oe(content).forEach((function(e){return t.appendChild(e)})),t}function ue(t,content){return ae(se(t),content)}function le(t){return void 0===t.button&&void 0===t.buttons||(0===t.button&&void 0===t.buttons||("mouseup"===t.type&&0===t.button&&0===t.buttons||0===t.button&&1===t.buttons))}var ce,he=Ft("querySelector"),de=Ft("querySelectorAll"),fe=Object.freeze({__proto__:null,isReal:Rt,isEl:Ut,isInFrame:Bt,createEl:zt,textContent:qt,prependTo:Ht,hasClass:Vt,addClass:Wt,removeClass:Yt,toggleClass:Gt,setAttributes:Xt,getAttributes:Kt,getAttribute:$t,setAttribute:Qt,removeAttribute:Jt,blockTextSelection:Zt,unblockTextSelection:te,getBoundingClientRect:ee,findPosition:ne,getPointerPosition:re,isTextNode:ie,emptyEl:se,normalizeContent:oe,appendContent:ae,insertContent:ue,isSingleLeftClick:le,$:he,$$:de}),pe=!1,me=function(){if(!1!==ce.options.autoSetup){var t=Array.prototype.slice.call(h.a.getElementsByTagName("video")),e=Array.prototype.slice.call(h.a.getElementsByTagName("audio")),n=Array.prototype.slice.call(h.a.getElementsByTagName("video-js")),r=t.concat(e,n);if(r&&r.length>0)for(var i=0,o=r.length;i<o;i++){var l=r[i];if(!l||!l.getAttribute){ge(1);break}void 0===l.player&&null!==l.getAttribute("data-setup")&&ce(l)}else pe||ge(1)}};function ge(t,e){Rt()&&(e&&(ce=e),l.a.setTimeout(me,t))}function ve(){pe=!0,l.a.removeEventListener("load",ve)}Rt()&&("complete"===h.a.readyState?ve():l.a.addEventListener("load",ve));var ye,be=function(t){var style=h.a.createElement("style");return style.className=t,style},_e=function(t,content){t.styleSheet?t.styleSheet.cssText=content:t.textContent=content},we=3;function Te(){return we++}l.a.WeakMap||(ye=function(){function t(){this.vdata="vdata"+Math.floor(l.a.performance&&l.a.performance.now()||Date.now()),this.data={}}var e=t.prototype;return e.set=function(t,e){var n=t[this.vdata]||Te();return t[this.vdata]||(t[this.vdata]=n),this.data[n]=e,this},e.get=function(t){var e=t[this.vdata];if(e)return this.data[e];nt("We have no data for this element",t)},e.has=function(t){return t[this.vdata]in this.data},e.delete=function(t){var e=t[this.vdata];e&&(delete this.data[e],delete t[this.vdata])},t}());var xe,Se=l.a.WeakMap?new WeakMap:new ye;function Ee(t,e){if(Se.has(t)){var data=Se.get(t);0===data.handlers[e].length&&(delete data.handlers[e],t.removeEventListener?t.removeEventListener(e,data.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,data.dispatcher)),Object.getOwnPropertyNames(data.handlers).length<=0&&(delete data.handlers,delete data.dispatcher,delete data.disabled),0===Object.getOwnPropertyNames(data).length&&Se.delete(t)}}function ke(t,e,n,r){n.forEach((function(n){t(e,n,r)}))}function Ae(t){if(t.fixed_)return t;function e(){return!0}function n(){return!1}if(!t||!t.isPropagationStopped||!t.isImmediatePropagationStopped){var r=t||l.a.event;for(var o in t={},r)"layerX"!==o&&"layerY"!==o&&"keyLocation"!==o&&"webkitMovementX"!==o&&"webkitMovementY"!==o&&"path"!==o&&("returnValue"===o&&r.preventDefault||(t[o]=r[o]));if(t.target||(t.target=t.srcElement||h.a),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){r.preventDefault&&r.preventDefault(),t.returnValue=!1,r.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),t.cancelBubble=!0,r.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=n,t.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=n,null!==t.clientX&&void 0!==t.clientX){var c=h.a.documentElement,body=h.a.body;t.pageX=t.clientX+(c&&c.scrollLeft||body&&body.scrollLeft||0)-(c&&c.clientLeft||body&&body.clientLeft||0),t.pageY=t.clientY+(c&&c.scrollTop||body&&body.scrollTop||0)-(c&&c.clientTop||body&&body.clientTop||0)}t.which=t.charCode||t.keyCode,null!==t.button&&void 0!==t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t.fixed_=!0,t}var Ce=function(){if("boolean"!=typeof xe){xe=!1;try{var t=Object.defineProperty({},"passive",{get:function(){xe=!0}});l.a.addEventListener("test",null,t),l.a.removeEventListener("test",null,t)}catch(t){}}return xe},Oe=["touchstart","touchmove"];function je(t,e,n){if(Array.isArray(e))return ke(je,t,e,n);Se.has(t)||Se.set(t,{});var data=Se.get(t);if(data.handlers||(data.handlers={}),data.handlers[e]||(data.handlers[e]=[]),n.guid||(n.guid=Te()),data.handlers[e].push(n),data.dispatcher||(data.disabled=!1,data.dispatcher=function(e,n){if(!data.disabled){e=Ae(e);var r=data.handlers[e.type];if(r)for(var o=r.slice(0),l=0,c=o.length;l<c&&!e.isImmediatePropagationStopped();l++)try{o[l].call(t,e,n)}catch(t){nt.error(t)}}}),1===data.handlers[e].length)if(t.addEventListener){var r=!1;Ce()&&Oe.indexOf(e)>-1&&(r={passive:!0}),t.addEventListener(e,data.dispatcher,r)}else t.attachEvent&&t.attachEvent("on"+e,data.dispatcher)}function Ie(t,e,n){if(Se.has(t)){var data=Se.get(t);if(data.handlers){if(Array.isArray(e))return ke(Ie,t,e,n);var r=function(t,e){data.handlers[e]=[],Ee(t,e)};if(void 0!==e){var o=data.handlers[e];if(o)if(n){if(n.guid)for(var l=0;l<o.length;l++)o[l].guid===n.guid&&o.splice(l--,1);Ee(t,e)}else r(t,e)}else for(var c in data.handlers)Object.prototype.hasOwnProperty.call(data.handlers||{},c)&&r(t,c)}}}function Le(t,e,n){var r=Se.has(t)?Se.get(t):{},o=t.parentNode||t.ownerDocument;if("string"==typeof e?e={type:e,target:t}:e.target||(e.target=t),e=Ae(e),r.dispatcher&&r.dispatcher.call(t,e,n),o&&!e.isPropagationStopped()&&!0===e.bubbles)Le.call(null,o,e,n);else if(!o&&!e.defaultPrevented&&e.target&&e.target[e.type]){Se.has(e.target)||Se.set(e.target,{});var l=Se.get(e.target);e.target[e.type]&&(l.disabled=!0,"function"==typeof e.target[e.type]&&e.target[e.type](),l.disabled=!1)}return!e.defaultPrevented}function De(t,e,n){if(Array.isArray(e))return ke(De,t,e,n);var r=function r(){Ie(t,e,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||Te(),je(t,e,r)}function Pe(t,e,n){var r=function r(){Ie(t,e,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||Te(),je(t,e,r)}var Me,Ne=Object.freeze({__proto__:null,fixEvent:Ae,on:je,off:Ie,trigger:Le,one:De,any:Pe}),Re=30,Ue=function(t,e,n){e.guid||(e.guid=Te());var r=e.bind(t);return r.guid=n?n+"_"+e.guid:e.guid,r},Be=function(t,e){var n=l.a.performance.now();return function(){var r=l.a.performance.now();r-n>=e&&(t.apply(void 0,arguments),n=r)}},Fe=function(){};Fe.prototype.allowedEvents_={},Fe.prototype.on=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},je(this,t,e),this.addEventListener=n},Fe.prototype.addEventListener=Fe.prototype.on,Fe.prototype.off=function(t,e){Ie(this,t,e)},Fe.prototype.removeEventListener=Fe.prototype.off,Fe.prototype.one=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},De(this,t,e),this.addEventListener=n},Fe.prototype.any=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},Pe(this,t,e),this.addEventListener=n},Fe.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&&(t={type:e}),t=Ae(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),Le(this,t)},Fe.prototype.dispatchEvent=Fe.prototype.trigger,Fe.prototype.queueTrigger=function(t){var e=this;Me||(Me=new Map);var n=t.type||t,map=Me.get(this);map||(map=new Map,Me.set(this,map));var r=map.get(n);map.delete(n),l.a.clearTimeout(r);var o=l.a.setTimeout((function(){map.delete(n),0===map.size&&(map=null,Me.delete(e)),e.trigger(t)}),0);map.set(n,o)};var ze=function(t){return"function"==typeof t.name?t.name():"string"==typeof t.name?t.name:t.name_?t.name_:t.constructor&&t.constructor.name?t.constructor.name:typeof t},qe=function(object){return object instanceof Fe||!!object.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"==typeof object[t]}))},He=function(t){return"string"==typeof t&&/\S/.test(t)||Array.isArray(t)&&!!t.length},Ve=function(t,e,n){if(!t||!t.nodeName&&!qe(t))throw new Error("Invalid target for "+ze(e)+"#"+n+"; must be a DOM node or evented object.")},We=function(t,e,n){if(!He(t))throw new Error("Invalid event type for "+ze(e)+"#"+n+"; must be a non-empty string or array.")},Ye=function(t,e,n){if("function"!=typeof t)throw new Error("Invalid listener for "+ze(e)+"#"+n+"; must be a function.")},Ge=function(t,e,n){var r,o,l,c=e.length<3||e[0]===t||e[0]===t.eventBusEl_;return c?(r=t.eventBusEl_,e.length>=3&&e.shift(),o=e[0],l=e[1]):(r=e[0],o=e[1],l=e[2]),Ve(r,t,n),We(o,t,n),Ye(l,t,n),{isTargetingSelf:c,target:r,type:o,listener:l=Ue(t,l)}},Xe=function(t,e,n,r){Ve(t,t,e),t.nodeName?Ne[e](t,n,r):t[e](n,r)},Ke={on:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Ge(this,n,"on"),l=o.isTargetingSelf,c=o.target,h=o.type,d=o.listener;if(Xe(c,"on",h,d),!l){var f=function(){return t.off(c,h,d)};f.guid=d.guid;var m=function(){return t.off("dispose",f)};m.guid=d.guid,Xe(this,"on","dispose",f),Xe(c,"on","dispose",m)}},one:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Ge(this,n,"one"),l=o.isTargetingSelf,c=o.target,h=o.type,d=o.listener;if(l)Xe(c,"one",h,d);else{var f=function e(){t.off(c,h,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];d.apply(null,r)};f.guid=d.guid,Xe(c,"one",h,f)}},any:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Ge(this,n,"any"),l=o.isTargetingSelf,c=o.target,h=o.type,d=o.listener;if(l)Xe(c,"any",h,d);else{var f=function e(){t.off(c,h,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];d.apply(null,r)};f.guid=d.guid,Xe(c,"any",h,f)}},off:function(t,e,n){if(!t||He(t))Ie(this.eventBusEl_,t,e);else{var r=t,o=e;Ve(r,this,"off"),We(o,this,"off"),Ye(n,this,"off"),n=Ue(this,n),this.off("dispose",n),r.nodeName?(Ie(r,o,n),Ie(r,"dispose",n)):qe(r)&&(r.off(o,n),r.off("dispose",n))}},trigger:function(t,e){Ve(this.eventBusEl_,this,"trigger");var n=t&&"string"!=typeof t?t.type:t;if(!He(n)){var r="Invalid event type for "+ze(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(!t)throw new Error(r);(this.log||nt).error(r)}return Le(this.eventBusEl_,t,e)}};function $e(t,e){void 0===e&&(e={});var n=e.eventBusKey;if(n){if(!t[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');t.eventBusEl_=t[n]}else t.eventBusEl_=zt("span",{className:"vjs-event-bus"});return ut(t,Ke),t.eventedCallbacks&&t.eventedCallbacks.forEach((function(t){t()})),t.on("dispose",(function(){t.off(),[t,t.el_,t.eventBusEl_].forEach((function(t){t&&Se.has(t)&&Se.delete(t)})),l.a.setTimeout((function(){t.eventBusEl_=null}),0)})),t}var Qe={state:{},setState:function(t){var e,n=this;return"function"==typeof t&&(t=t()),at(t,(function(t,r){n.state[r]!==t&&((e=e||{})[r]={from:n.state[r],to:t}),n.state[r]=t})),e&&qe(this)&&this.trigger({changes:e,type:"statechanged"}),e}};function Je(t,e){return ut(t,Qe),t.state=ut({},t.state,e),"function"==typeof t.handleStateChanged&&qe(t)&&t.on("statechanged",t.handleStateChanged),t}var Ze=function(t){return"string"!=typeof t?t:t.replace(/./,(function(t){return t.toLowerCase()}))},tn=function(t){return"string"!=typeof t?t:t.replace(/./,(function(t){return t.toUpperCase()}))};function en(){for(var t={},e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.forEach((function(source){source&&at(source,(function(e,n){ct(e)?(ct(t[n])||(t[n]={}),t[n]=en(t[n],e)):t[n]=e}))})),t}var nn=function(){function t(){this.map_={}}var e=t.prototype;return e.has=function(t){return t in this.map_},e.delete=function(t){var e=this.has(t);return delete this.map_[t],e},e.set=function(t,e){return this.map_[t]=e,this},e.forEach=function(t,e){for(var n in this.map_)t.call(e,this.map_[n],n,this)},t}(),rn=l.a.Map?l.a.Map:nn,sn=function(){function t(){this.set_={}}var e=t.prototype;return e.has=function(t){return t in this.set_},e.delete=function(t){var e=this.has(t);return delete this.set_[t],e},e.add=function(t){return this.set_[t]=1,this},e.forEach=function(t,e){for(var n in this.set_)t.call(e,n,n,this)},t}(),on=l.a.Set?l.a.Set:sn,an=function(){function t(t,e,n){var r=this;if(!t&&this.play?this.player_=t=this:this.player_=t,this.isDisposed_=!1,this.parentComponent_=null,this.options_=en({},this.options_),e=this.options_=en(this.options_,e),this.id_=e.id||e.el&&e.el.id,!this.id_){var o=t&&t.id&&t.id()||"no_player";this.id_=o+"_component_"+Te()}this.name_=e.name||null,e.el?this.el_=e.el:!1!==e.createEl&&(this.el_=this.createEl()),e.className&&this.el_&&e.className.split(" ").forEach((function(t){return r.addClass(t)})),!1!==e.evented&&($e(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),Je(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new on,this.setIntervalIds_=new on,this.rafIds_=new on,this.namedRafs_=new rn,this.clearingTimersOnDispose_=!1,!1!==e.initChildren&&this.initChildren(),this.ready(n),!1!==e.reportTouchActivity&&this.enableTouchActivity()}var e=t.prototype;return e.dispose=function(t){if(void 0===t&&(t={}),!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var i=this.children_.length-1;i>=0;i--)this.children_[i].dispose&&this.children_[i].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(t.restoreEl?this.el_.parentNode.replaceChild(t.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}},e.isDisposed=function(){return Boolean(this.isDisposed_)},e.player=function(){return this.player_},e.options=function(t){return t?(this.options_=en(this.options_,t),this.options_):this.options_},e.el=function(){return this.el_},e.createEl=function(t,e,n){return zt(t,e,n)},e.localize=function(t,e,n){void 0===n&&(n=t);var code=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),o=r&&r[code],l=code&&code.split("-")[0],c=r&&r[l],h=n;return o&&o[t]?h=o[t]:c&&c[t]&&(h=c[t]),e&&(h=h.replace(/\{(\d+)\}/g,(function(t,n){var r=e[n-1],o=r;return void 0===r&&(o=t),o}))),h},e.handleLanguagechange=function(){},e.contentEl=function(){return this.contentEl_||this.el_},e.id=function(){return this.id_},e.name=function(){return this.name_},e.children=function(){return this.children_},e.getChildById=function(t){return this.childIndex_[t]},e.getChild=function(t){if(t)return this.childNameIndex_[t]},e.getDescendant=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e=e.reduce((function(t,e){return t.concat(e)}),[]);for(var r=this,i=0;i<e.length;i++)if(!(r=r.getChild(e[i]))||!r.getChild)return;return r},e.addChild=function(e,n,r){var component,o;if(void 0===n&&(n={}),void 0===r&&(r=this.children_.length),"string"==typeof e){o=tn(e);var l=n.componentClass||o;n.name=o;var c=t.getComponent(l);if(!c)throw new Error("Component "+l+" does not exist");if("function"!=typeof c)return null;component=new c(this.player_||this,n)}else component=e;if(component.parentComponent_&&component.parentComponent_.removeChild(component),this.children_.splice(r,0,component),component.parentComponent_=this,"function"==typeof component.id&&(this.childIndex_[component.id()]=component),(o=o||component.name&&tn(component.name()))&&(this.childNameIndex_[o]=component,this.childNameIndex_[Ze(o)]=component),"function"==typeof component.el&&component.el()){var h=null;this.children_[r+1]&&(this.children_[r+1].el_?h=this.children_[r+1].el_:Ut(this.children_[r+1])&&(h=this.children_[r+1])),this.contentEl().insertBefore(component.el(),h)}return component},e.removeChild=function(component){if("string"==typeof component&&(component=this.getChild(component)),component&&this.children_){for(var t=!1,i=this.children_.length-1;i>=0;i--)if(this.children_[i]===component){t=!0,this.children_.splice(i,1);break}if(t){component.parentComponent_=null,this.childIndex_[component.id()]=null,this.childNameIndex_[tn(component.name())]=null,this.childNameIndex_[Ze(component.name())]=null;var e=component.el();e&&e.parentNode===this.contentEl()&&this.contentEl().removeChild(component.el())}}},e.initChildren=function(){var e=this,n=this.options_.children;if(n){var r,o=this.options_,l=t.getComponent("Tech");(r=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter((function(t){return!r.some((function(e){return"string"==typeof e?t===e:t===e.name}))}))).map((function(t){var r,o;return"string"==typeof t?o=n[r=t]||e.options_[r]||{}:(r=t.name,o=t),{name:r,opts:o}})).filter((function(e){var n=t.getComponent(e.opts.componentClass||tn(e.name));return n&&!l.isTech(n)})).forEach((function(t){var n=t.name,r=t.opts;if(void 0!==o[n]&&(r=o[n]),!1!==r){!0===r&&(r={}),r.playerOptions=e.options_.playerOptions;var l=e.addChild(n,r);l&&(e[n]=l)}}))}},e.buildCSSClass=function(){return""},e.ready=function(t,e){if(void 0===e&&(e=!1),t)return this.isReady_?void(e?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},e.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach((function(t){t.call(this)}),this),this.trigger("ready")}),1)},e.$=function(t,e){return he(t,e||this.contentEl())},e.$$=function(t,e){return de(t,e||this.contentEl())},e.hasClass=function(t){return Vt(this.el_,t)},e.addClass=function(t){Wt(this.el_,t)},e.removeClass=function(t){Yt(this.el_,t)},e.toggleClass=function(t,e){Gt(this.el_,t,e)},e.show=function(){this.removeClass("vjs-hidden")},e.hide=function(){this.addClass("vjs-hidden")},e.lockShowing=function(){this.addClass("vjs-lock-showing")},e.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.getAttribute=function(t){return $t(this.el_,t)},e.setAttribute=function(t,e){Qt(this.el_,t,e)},e.removeAttribute=function(t){Jt(this.el_,t)},e.width=function(t,e){return this.dimension("width",t,e)},e.height=function(t,e){return this.dimension("height",t,e)},e.dimensions=function(t,e){this.width(t,!0),this.height(e)},e.dimension=function(t,e,n){if(void 0!==e)return null!==e&&e==e||(e=0),-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?this.el_.style[t]=e:this.el_.style[t]="auto"===e?"":e+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var r=this.el_.style[t],o=r.indexOf("px");return-1!==o?parseInt(r.slice(0,o),10):parseInt(this.el_["offset"+tn(t)],10)},e.currentDimension=function(t){var e=0;if("width"!==t&&"height"!==t)throw new Error("currentDimension only accepts width or height value");if(e=ht(this.el_,t),0===(e=parseFloat(e))||isNaN(e)){var n="offset"+tn(t);e=this.el_[n]}return e},e.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.currentWidth=function(){return this.currentDimension("width")},e.currentHeight=function(){return this.currentDimension("height")},e.focus=function(){this.el_.focus()},e.blur=function(){this.el_.blur()},e.handleKeyDown=function(t){this.player_&&(v.a.isEventKey(t,"Tab")||t.stopPropagation(),this.player_.handleKeyDown(t))},e.handleKeyPress=function(t){this.handleKeyDown(t)},e.emitTapEvents=function(){var t,e=0,n=null;this.on("touchstart",(function(r){1===r.touches.length&&(n={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},e=l.a.performance.now(),t=!0)})),this.on("touchmove",(function(e){if(e.touches.length>1)t=!1;else if(n){var r=e.touches[0].pageX-n.pageX,o=e.touches[0].pageY-n.pageY;Math.sqrt(r*r+o*o)>10&&(t=!1)}}));var r=function(){t=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",(function(r){(n=null,!0===t)&&(l.a.performance.now()-e<200&&(r.preventDefault(),this.trigger("tap")))}))},e.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t,e=Ue(this.player(),this.player().reportUserActivity);this.on("touchstart",(function(){e(),this.clearInterval(t),t=this.setInterval(e,250)}));var n=function(n){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n)}},e.setTimeout=function(t,e){var n,r=this;return t=Ue(this,t),this.clearTimersOnDispose_(),n=l.a.setTimeout((function(){r.setTimeoutIds_.has(n)&&r.setTimeoutIds_.delete(n),t()}),e),this.setTimeoutIds_.add(n),n},e.clearTimeout=function(t){return this.setTimeoutIds_.has(t)&&(this.setTimeoutIds_.delete(t),l.a.clearTimeout(t)),t},e.setInterval=function(t,e){t=Ue(this,t),this.clearTimersOnDispose_();var n=l.a.setInterval(t,e);return this.setIntervalIds_.add(n),n},e.clearInterval=function(t){return this.setIntervalIds_.has(t)&&(this.setIntervalIds_.delete(t),l.a.clearInterval(t)),t},e.requestAnimationFrame=function(t){var e,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),t=Ue(this,t),e=l.a.requestAnimationFrame((function(){n.rafIds_.has(e)&&n.rafIds_.delete(e),t()})),this.rafIds_.add(e),e):this.setTimeout(t,1e3/60)},e.requestNamedAnimationFrame=function(t,e){var n=this;if(!this.namedRafs_.has(t)){this.clearTimersOnDispose_(),e=Ue(this,e);var r=this.requestAnimationFrame((function(){e(),n.namedRafs_.has(t)&&n.namedRafs_.delete(t)}));return this.namedRafs_.set(t,r),t}},e.cancelNamedAnimationFrame=function(t){this.namedRafs_.has(t)&&(this.cancelAnimationFrame(this.namedRafs_.get(t)),this.namedRafs_.delete(t))},e.cancelAnimationFrame=function(t){return this.supportsRaf_?(this.rafIds_.has(t)&&(this.rafIds_.delete(t),l.a.cancelAnimationFrame(t)),t):this.clearTimeout(t)},e.clearTimersOnDispose_=function(){var t=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach((function(e){var n=e[0],r=e[1];t[n].forEach((function(e,n){return t[r](n)}))})),t.clearingTimersOnDispose_=!1})))},t.registerComponent=function(e,n){if("string"!=typeof e||!e)throw new Error('Illegal component name, "'+e+'"; must be a non-empty string.');var r,o=t.getComponent("Tech"),l=o&&o.isTech(n),c=t===n||t.prototype.isPrototypeOf(n.prototype);if(l||!c)throw r=l?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+e+'"; '+r+".");e=tn(e),t.components_||(t.components_={});var h=t.getComponent("Player");if("Player"===e&&h&&h.players){var d=h.players,f=Object.keys(d);if(d&&f.length>0&&f.map((function(t){return d[t]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return t.components_[e]=n,t.components_[Ze(e)]=n,n},t.getComponent=function(e){if(e&&t.components_)return t.components_[e]},t}();function un(t,e,n,r){return function(t,e,n){if("number"!=typeof e||e<0||e>n)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is non-numeric or out of bounds (0-"+n+").")}(t,r,n.length-1),n[r][e]}function ln(t){var e;return e=void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:un.bind(null,"start",0,t),end:un.bind(null,"end",1,t)},l.a.Symbol&&l.a.Symbol.iterator&&(e[l.a.Symbol.iterator]=function(){return(t||[]).values()}),e}function cn(t,e){return Array.isArray(t)?ln(t):void 0===t||void 0===e?ln():ln([[t,e]])}function hn(t,e){var n,r,o=0;if(!e)return 0;t&&t.length||(t=cn(0,0));for(var i=0;i<t.length;i++)n=t.start(i),(r=t.end(i))>e&&(r=e),o+=r-n;return o/e}function dn(t){if(t instanceof dn)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:lt(t)&&("number"==typeof t.code&&(this.code=t.code),ut(this,t)),this.message||(this.message=dn.defaultMessages[this.code]||"")}an.prototype.supportsRaf_="function"==typeof l.a.requestAnimationFrame&&"function"==typeof l.a.cancelAnimationFrame,an.registerComponent("Component",an),dn.prototype.code=0,dn.prototype.message="",dn.prototype.status=null,dn.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],dn.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 fn=0;fn<dn.errorTypes.length;fn++)dn[dn.errorTypes[fn]]=fn,dn.prototype[dn.errorTypes[fn]]=fn;function pn(t){return null!=t&&"function"==typeof t.then}function mn(t){pn(t)&&t.then(null,(function(t){}))}var gn=function(track){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((function(t,e,i){return track[e]&&(t[e]=track[e]),t}),{cues:track.cues&&Array.prototype.map.call(track.cues,(function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}}))})},vn=function(t){var e=t.$$("track"),n=Array.prototype.map.call(e,(function(t){return t.track}));return Array.prototype.map.call(e,(function(t){var e=gn(t.track);return t.src&&(e.src=t.src),e})).concat(Array.prototype.filter.call(t.textTracks(),(function(track){return-1===n.indexOf(track)})).map(gn))},yn=function(t,e){return t.forEach((function(track){var t=e.addRemoteTextTrack(track).track;!track.src&&track.cues&&track.cues.forEach((function(e){return t.addCue(e)}))})),e.textTracks()},bn="vjs-modal-dialog",_n=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).handleKeyDown_=function(t){return r.handleKeyDown(t)},r.close_=function(t){return r.close(t)},r.opened_=r.hasBeenOpened_=r.hasBeenFilled_=!1,r.closeable(!r.options_.uncloseable),r.content(r.options_.content),r.contentEl_=zt("div",{className:bn+"-content"},{role:"document"}),r.descEl_=zt("p",{className:bn+"-description vjs-control-text",id:r.el().getAttribute("aria-describedby")}),qt(r.descEl_,r.description()),r.el_.appendChild(r.descEl_),r.el_.appendChild(r.contentEl_),r}T()(e,t);var n=e.prototype;return n.createEl=function(){return t.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,t.prototype.dispose.call(this)},n.buildCSSClass=function(){return bn+" vjs-hidden "+t.prototype.buildCSSClass.call(this)},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=function(){var desc=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(desc+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),desc},n.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!t.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&t.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=t.controls(),t.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},n.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.opened_},n.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&t.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},n.closeable=function(t){if("boolean"==typeof t){var e=this.closeable_=!!t,n=this.getChild("closeButton");if(e&&!n){var r=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(n,"close",this.close_)}!e&&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(content){var t=this.contentEl(),e=t.parentNode,n=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,e.removeChild(t),this.empty(),ue(t,content),this.trigger("modalfill"),n?e.insertBefore(t,n):e.appendChild(t);var r=this.getChild("closeButton");r&&e.appendChild(r.el_)},n.empty=function(){this.trigger("beforemodalempty"),se(this.contentEl()),this.trigger("modalempty")},n.content=function(t){return void 0!==t&&(this.content_=t),this.content_},n.conditionalFocus_=function(){var t=h.a.activeElement,e=this.player_.el_;this.previouslyActiveEl_=null,(e.contains(t)||e===t)&&(this.previouslyActiveEl_=t,this.focus())},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},n.handleKeyDown=function(t){if(t.stopPropagation(),v.a.isEventKey(t,"Escape")&&this.closeable())return t.preventDefault(),void this.close();if(v.a.isEventKey(t,"Tab")){for(var e,n=this.focusableEls_(),r=this.el_.querySelector(":focus"),i=0;i<n.length;i++)if(r===n[i]){e=i;break}h.a.activeElement===this.el_&&(e=0),t.shiftKey&&0===e?(n[n.length-1].focus(),t.preventDefault()):t.shiftKey||e!==n.length-1||(n[0].focus(),t.preventDefault())}},n.focusableEls_=function(){var t=this.el_.querySelectorAll("*");return Array.prototype.filter.call(t,(function(t){return(t instanceof l.a.HTMLAnchorElement||t instanceof l.a.HTMLAreaElement)&&t.hasAttribute("href")||(t instanceof l.a.HTMLInputElement||t instanceof l.a.HTMLSelectElement||t instanceof l.a.HTMLTextAreaElement||t instanceof l.a.HTMLButtonElement)&&!t.hasAttribute("disabled")||t instanceof l.a.HTMLIFrameElement||t instanceof l.a.HTMLObjectElement||t instanceof l.a.HTMLEmbedElement||t.hasAttribute("tabindex")&&-1!==t.getAttribute("tabindex")||t.hasAttribute("contenteditable")}))},e}(an);_n.prototype.options_={pauseOnOpen:!0,temporary:!0},an.registerComponent("ModalDialog",_n);var wn=function(t){function e(e){var n;void 0===e&&(e=[]),(n=t.call(this)||this).tracks_=[],Object.defineProperty(_()(n),"length",{get:function(){return this.tracks_.length}});for(var i=0;i<e.length;i++)n.addTrack(e[i]);return n}T()(e,t);var n=e.prototype;return n.addTrack=function(track){var t=this,e=this.tracks_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.tracks_[e]}}),-1===this.tracks_.indexOf(track)&&(this.tracks_.push(track),this.trigger({track:track,type:"addtrack",target:this})),track.labelchange_=function(){t.trigger({track:track,type:"labelchange",target:t})},qe(track)&&track.addEventListener("labelchange",track.labelchange_)},n.removeTrack=function(t){for(var track,i=0,e=this.length;i<e;i++)if(this[i]===t){(track=this[i]).off&&track.off(),this.tracks_.splice(i,1);break}track&&this.trigger({track:track,type:"removetrack",target:this})},n.getTrackById=function(t){for(var e=null,i=0,n=this.length;i<n;i++){var track=this[i];if(track.id===t){e=track;break}}return e},e}(Fe);for(var Tn in wn.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},wn.prototype.allowedEvents_)wn.prototype["on"+Tn]=null;var xn=function(t,track){for(var i=0;i<t.length;i++)Object.keys(t[i]).length&&track.id!==t[i].id&&(t[i].enabled=!1)},Sn=function(t){function e(e){var n;void 0===e&&(e=[]);for(var i=e.length-1;i>=0;i--)if(e[i].enabled){xn(e,e[i]);break}return(n=t.call(this,e)||this).changing_=!1,n}T()(e,t);var n=e.prototype;return n.addTrack=function(track){var e=this;track.enabled&&xn(this,track),t.prototype.addTrack.call(this,track),track.addEventListener&&(track.enabledChange_=function(){e.changing_||(e.changing_=!0,xn(e,track),e.changing_=!1,e.trigger("change"))},track.addEventListener("enabledchange",track.enabledChange_))},n.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)},e}(wn),En=function(t,track){for(var i=0;i<t.length;i++)Object.keys(t[i]).length&&track.id!==t[i].id&&(t[i].selected=!1)},kn=function(t){function e(e){var n;void 0===e&&(e=[]);for(var i=e.length-1;i>=0;i--)if(e[i].selected){En(e,e[i]);break}return(n=t.call(this,e)||this).changing_=!1,Object.defineProperty(_()(n),"selectedIndex",{get:function(){for(var t=0;t<this.length;t++)if(this[t].selected)return t;return-1},set:function(){}}),n}T()(e,t);var n=e.prototype;return n.addTrack=function(track){var e=this;track.selected&&En(this,track),t.prototype.addTrack.call(this,track),track.addEventListener&&(track.selectedChange_=function(){e.changing_||(e.changing_=!0,En(e,track),e.changing_=!1,e.trigger("change"))},track.addEventListener("selectedchange",track.selectedChange_))},n.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)},e}(wn),An=function(t){function e(){return t.apply(this,arguments)||this}T()(e,t);var n=e.prototype;return n.addTrack=function(track){var e=this;t.prototype.addTrack.call(this,track),this.queueChange_||(this.queueChange_=function(){return e.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return e.trigger("selectedlanguagechange")}),track.addEventListener("modechange",this.queueChange_);-1===["metadata","chapters"].indexOf(track.kind)&&track.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},e}(wn),Cn=function(){function t(t){void 0===t&&(t=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var i=0,e=t.length;i<e;i++)this.addTrackElement_(t[i])}var e=t.prototype;return e.addTrackElement_=function(t){var e=this.trackElements_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.trackElements_[e]}}),-1===this.trackElements_.indexOf(t)&&this.trackElements_.push(t)},e.getTrackElementByTrack_=function(track){for(var t,i=0,e=this.trackElements_.length;i<e;i++)if(track===this.trackElements_[i].track){t=this.trackElements_[i];break}return t},e.removeTrackElement_=function(t){for(var i=0,e=this.trackElements_.length;i<e;i++)if(t===this.trackElements_[i]){this.trackElements_[i].track&&"function"==typeof this.trackElements_[i].track.off&&this.trackElements_[i].track.off(),"function"==typeof this.trackElements_[i].off&&this.trackElements_[i].off(),this.trackElements_.splice(i,1);break}},t}(),On=function(){function t(e){t.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var e=t.prototype;return e.setCues_=function(t){var e=this.length||0,i=0,n=t.length;this.cues_=t,this.length_=t.length;var r=function(t){""+t in this||Object.defineProperty(this,""+t,{get:function(){return this.cues_[t]}})};if(e<n)for(i=e;i<n;i++)r.call(this,i)},e.getCueById=function(t){for(var e=null,i=0,n=this.length;i<n;i++){var r=this[i];if(r.id===t){e=r;break}}return e},t}(),jn={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},In={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Ln={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Dn={disabled:"disabled",hidden:"hidden",showing:"showing"},Pn=function(t){function e(e){var n;void 0===e&&(e={}),n=t.call(this)||this;var r={id:e.id||"vjs_track_"+Te(),kind:e.kind||"",language:e.language||""},label=e.label||"",o=function(t){Object.defineProperty(_()(n),t,{get:function(){return r[t]},set:function(){}})};for(var l in r)o(l);return Object.defineProperty(_()(n),"label",{get:function(){return label},set:function(t){t!==label&&(label=t,this.trigger("labelchange"))}}),n}return T()(e,t),e}(Fe),Mn=function(t){var e=["protocol","hostname","port","pathname","search","hash","host"],a=h.a.createElement("a");a.href=t;for(var details={},i=0;i<e.length;i++)details[e[i]]=a[e[i]];return"http:"===details.protocol&&(details.host=details.host.replace(/:80$/,"")),"https:"===details.protocol&&(details.host=details.host.replace(/:443$/,"")),details.protocol||(details.protocol=l.a.location.protocol),details.host||(details.host=l.a.location.host),details},Nn=function(t){if(!t.match(/^https?:\/\//)){var a=h.a.createElement("a");a.href=t,t=a.href}return t},Rn=function(path){if("string"==typeof path){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(path);if(t)return t.pop().toLowerCase()}return""},Un=function(t,e){void 0===e&&(e=l.a.location);var n=Mn(t);return(":"===n.protocol?e.protocol:n.protocol)+n.host!==e.protocol+e.host},Bn=Object.freeze({__proto__:null,parseUrl:Mn,getAbsoluteURL:Nn,getFileExtension:Rn,isCrossOrigin:Un}),Fn=function(t,track){var e=new l.a.WebVTT.Parser(l.a,l.a.vttjs,l.a.WebVTT.StringDecoder()),n=[];e.oncue=function(t){track.addCue(t)},e.onparsingerror=function(t){n.push(t)},e.onflush=function(){track.trigger({type:"loadeddata",target:track})},e.parse(t),n.length>0&&(l.a.console&&l.a.console.groupCollapsed&&l.a.console.groupCollapsed("Text Track parsing errors for "+track.src),n.forEach((function(t){return nt.error(t)})),l.a.console&&l.a.console.groupEnd&&l.a.console.groupEnd()),e.flush()},zn=function(t,track){var e={uri:t},n=Un(t);n&&(e.cors=n);var r="use-credentials"===track.tech_.crossOrigin();r&&(e.withCredentials=r),k()(e,Ue(this,(function(t,e,n){if(t)return nt.error(t,e);track.loaded_=!0,"function"!=typeof l.a.WebVTT?track.tech_&&track.tech_.any(["vttjsloaded","vttjserror"],(function(t){if("vttjserror"!==t.type)return Fn(n,track);nt.error("vttjs failed to load, stopping trying to process "+track.src)})):Fn(n,track)})))},qn=function(t){function e(e){var n;if(void 0===e&&(e={}),!e.tech)throw new Error("A tech was not provided.");var r=en(e,{kind:Ln[e.kind]||"subtitles",language:e.language||e.srclang||""}),o=Dn[r.mode]||"disabled",l=r.default;"metadata"!==r.kind&&"chapters"!==r.kind||(o="hidden"),(n=t.call(this,r)||this).tech_=r.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var c=new On(n.cues_),h=new On(n.activeCues_),d=!1;n.timeupdateHandler=Ue(_()(n),(function(t){void 0===t&&(t={}),this.tech_.isDisposed()||(this.tech_.isReady_?(this.activeCues=this.activeCues,d&&(this.trigger("cuechange"),d=!1),"timeupdate"!==t.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))):"timeupdate"!==t.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)))}));return n.tech_.one("dispose",(function(){n.stopTracking()})),"disabled"!==o&&n.startTracking(),Object.defineProperties(_()(n),{default:{get:function(){return l},set:function(){}},mode:{get:function(){return o},set:function(t){Dn[t]&&o!==t&&(o=t,this.preload_||"disabled"===o||0!==this.cues.length||zn(this.src,this),this.stopTracking(),"disabled"!==o&&this.startTracking(),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?c:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return h;for(var t=this.tech_.currentTime(),e=[],i=0,n=this.cues.length;i<n;i++){var r=this.cues[i];(r.startTime<=t&&r.endTime>=t||r.startTime===r.endTime&&r.startTime<=t&&r.startTime+.5>=t)&&e.push(r)}if(d=!1,e.length!==this.activeCues_.length)d=!0;else for(var o=0;o<e.length;o++)-1===this.activeCues_.indexOf(e[o])&&(d=!0);return this.activeCues_=e,h.setCues_(this.activeCues_),h},set:function(){}}}),r.src?(n.src=r.src,n.preload_||(n.loaded_=!0),(n.preload_||"subtitles"!==r.kind&&"captions"!==r.kind)&&zn(n.src,_()(n))):n.loaded_=!0,n}T()(e,t);var n=e.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(t){var e=t;if(e.constructor&&"VTTCue"!==e.constructor.name){for(var n in e=new l.a.vttjs.VTTCue(t.startTime,t.endTime,t.text),t)n in e||(e[n]=t[n]);e.id=t.id,e.originalCue_=t}for(var r=this.tech_.textTracks(),i=0;i<r.length;i++)r[i]!==this&&r[i].removeCue(e);this.cues_.push(e),this.cues.setCues_(this.cues_)},n.removeCue=function(t){for(var i=this.cues_.length;i--;){var e=this.cues_[i];if(e===t||e.originalCue_&&e.originalCue_===t){this.cues_.splice(i,1),this.cues.setCues_(this.cues_);break}}},e}(Pn);qn.prototype.allowedEvents_={cuechange:"cuechange"};var Hn=function(t){function e(e){var n;void 0===e&&(e={});var r=en(e,{kind:In[e.kind]||""});n=t.call(this,r)||this;var o=!1;return Object.defineProperty(_()(n),"enabled",{get:function(){return o},set:function(t){"boolean"==typeof t&&t!==o&&(o=t,this.trigger("enabledchange"))}}),r.enabled&&(n.enabled=r.enabled),n.loaded_=!0,n}return T()(e,t),e}(Pn),Vn=function(t){function e(e){var n;void 0===e&&(e={});var r=en(e,{kind:jn[e.kind]||""});n=t.call(this,r)||this;var o=!1;return Object.defineProperty(_()(n),"selected",{get:function(){return o},set:function(t){"boolean"==typeof t&&t!==o&&(o=t,this.trigger("selectedchange"))}}),r.selected&&(n.selected=r.selected),n}return T()(e,t),e}(Pn),Wn=function(t){function e(e){var n,r;void 0===e&&(e={}),n=t.call(this)||this;var track=new qn(e);return n.kind=track.kind,n.src=track.src,n.srclang=track.language,n.label=track.label,n.default=track.default,Object.defineProperties(_()(n),{readyState:{get:function(){return r}},track:{get:function(){return track}}}),r=0,track.addEventListener("loadeddata",(function(){r=2,n.trigger({type:"load",target:_()(n)})})),n}return T()(e,t),e}(Fe);Wn.prototype.allowedEvents_={load:"load"},Wn.NONE=0,Wn.LOADING=1,Wn.LOADED=2,Wn.ERROR=3;var Yn={audio:{ListClass:Sn,TrackClass:Hn,capitalName:"Audio"},video:{ListClass:kn,TrackClass:Vn,capitalName:"Video"},text:{ListClass:An,TrackClass:qn,capitalName:"Text"}};Object.keys(Yn).forEach((function(t){Yn[t].getterName=t+"Tracks",Yn[t].privateName=t+"Tracks_"}));var Gn={remoteText:{ListClass:An,TrackClass:qn,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Cn,TrackClass:Wn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Xn=f()({},Yn,Gn);Gn.names=Object.keys(Gn),Yn.names=Object.keys(Yn),Xn.names=[].concat(Gn.names).concat(Yn.names);var Kn=function(t){function e(e,n){var r;return void 0===e&&(e={}),void 0===n&&(n=function(){}),e.reportTouchActivity=!1,(r=t.call(this,null,e,n)||this).onDurationChange_=function(t){return r.onDurationChange(t)},r.trackProgress_=function(t){return r.trackProgress(t)},r.trackCurrentTime_=function(t){return r.trackCurrentTime(t)},r.stopTrackingCurrentTime_=function(t){return r.stopTrackingCurrentTime(t)},r.disposeSourceHandler_=function(t){return r.disposeSourceHandler(t)},r.queuedHanders_=new Set,r.hasStarted_=!1,r.on("playing",(function(){this.hasStarted_=!0})),r.on("loadstart",(function(){this.hasStarted_=!1})),Xn.names.forEach((function(t){var n=Xn[t];e&&e[n.getterName]&&(r[n.privateName]=e[n.getterName])})),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(track){!1===e["native"+track+"Tracks"]&&(r["featuresNative"+track+"Tracks"]=!1)})),!1===e.nativeCaptions||!1===e.nativeTextTracks?r.featuresNativeTextTracks=!1:!0!==e.nativeCaptions&&!0!==e.nativeTextTracks||(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.preloadTextTracks=!1!==e.preloadTextTracks,r.autoRemoteTextTracks_=new Xn.text.ListClass,r.initTrackListeners(),e.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.name_=r.constructor.name||"Unknown Tech"),r}T()(e,t);var n=e.prototype;return n.triggerSourceset=function(t){var e=this;this.isReady_||this.one("ready",(function(){return e.setTimeout((function(){return e.triggerSourceset(t)}),1)})),this.trigger({src:t,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(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Ue(this,(function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),this.bufferedPercent_=t,1===t&&this.stopTrackingProgress()})),500)},n.onDurationChange=function(t){this.duration_=this.duration()},n.buffered=function(){return cn(0,0)},n.bufferedPercent=function(){return hn(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(Yn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},n.clearTracks=function(t){var e=this;(t=[].concat(t)).forEach((function(t){for(var n=e[t+"Tracks"]()||[],i=n.length;i--;){var track=n[i];"text"===t&&e.removeRemoteTextTrack(track),n.removeTrack(track)}}))},n.cleanupAutoTextTracks=function(){for(var t=this.autoRemoteTextTracks_||[],i=t.length;i--;){var track=t[i];this.removeRemoteTextTrack(track)}},n.reset=function(){},n.crossOrigin=function(){},n.setCrossOrigin=function(){},n.error=function(t){return void 0!==t&&(this.error_=new dn(t),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?cn(0,0):cn()},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 t=this;Yn.names.forEach((function(e){var n=Yn[e],r=function(){t.trigger(e+"trackchange")},o=t[n.getterName]();o.addEventListener("removetrack",r),o.addEventListener("addtrack",r),t.on("dispose",(function(){o.removeEventListener("removetrack",r),o.removeEventListener("addtrack",r)}))}))},n.addWebVttScript_=function(){var t=this;if(!l.a.WebVTT)if(h.a.body.contains(this.el())){if(!this.options_["vtt.js"]&&ct(C.a)&&Object.keys(C.a).length>0)return void this.trigger("vttjsloaded");var script=h.a.createElement("script");script.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",script.onload=function(){t.trigger("vttjsloaded")},script.onerror=function(){t.trigger("vttjserror")},this.on("dispose",(function(){script.onload=null,script.onerror=null})),l.a.WebVTT=!0,this.el().parentNode.appendChild(script)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var t=this,e=this.textTracks(),n=this.remoteTextTracks(),r=function(t){return e.addTrack(t.track)},o=function(t){return e.removeTrack(t.track)};n.on("addtrack",r),n.on("removetrack",o),this.addWebVttScript_();var l=function(){return t.trigger("texttrackchange")},c=function(){l();for(var i=0;i<e.length;i++){var track=e[i];track.removeEventListener("cuechange",l),"showing"===track.mode&&track.addEventListener("cuechange",l)}};c(),e.addEventListener("change",c),e.addEventListener("addtrack",c),e.addEventListener("removetrack",c),this.on("dispose",(function(){n.off("addtrack",r),n.off("removetrack",o),e.removeEventListener("change",c),e.removeEventListener("addtrack",c),e.removeEventListener("removetrack",c);for(var i=0;i<e.length;i++){e[i].removeEventListener("cuechange",l)}}))},n.addTextTrack=function(t,label,e){if(!t)throw new Error("TextTrack kind is required but was not provided");return function(t,e,label,n,r){void 0===r&&(r={});var o=t.textTracks();r.kind=e,label&&(r.label=label),n&&(r.language=n),r.tech=t;var track=new Xn.text.TrackClass(r);return o.addTrack(track),track}(this,t,label,e)},n.createRemoteTextTrack=function(t){var track=en(t,{tech:this});return new Gn.remoteTextEl.TrackClass(track)},n.addRemoteTextTrack=function(t,e){var n=this;void 0===t&&(t={});var r=this.createRemoteTextTrack(t);return!0!==e&&!1!==e&&(nt.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),e=!0),this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),!0!==e&&this.ready((function(){return n.autoRemoteTextTracks_.addTrack(r.track)})),r},n.removeRemoteTextTrack=function(track){var t=this.remoteTextTrackEls().getTrackElementByTrack_(track);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(track),this.autoRemoteTextTracks_.removeTrack(track)},n.getVideoPlaybackQuality=function(){return{}},n.requestPictureInPicture=function(){var t=this.options_.Promise||l.a.Promise;if(t)return t.reject()},n.disablePictureInPicture=function(){return!0},n.setDisablePictureInPicture=function(){},n.requestVideoFrameCallback=function(t){var e=this,n=Te();return!this.isReady_||this.paused()?(this.queuedHanders_.add(n),this.one("playing",(function(){e.queuedHanders_.has(n)&&(e.queuedHanders_.delete(n),t())}))):this.requestNamedAnimationFrame(n,t),n},n.cancelVideoFrameCallback=function(t){this.queuedHanders_.has(t)?this.queuedHanders_.delete(t):this.cancelNamedAnimationFrame(t)},n.setPoster=function(){},n.playsinline=function(){},n.setPlaysinline=function(){},n.overrideNativeAudioTracks=function(){},n.overrideNativeVideoTracks=function(){},n.canPlayType=function(){return""},e.canPlayType=function(){return""},e.canPlaySource=function(t,n){return e.canPlayType(t.type)},e.isTech=function(component){return component.prototype instanceof e||component instanceof e||component===e},e.registerTech=function(t,n){if(e.techs_||(e.techs_={}),!e.isTech(n))throw new Error("Tech "+t+" must be a Tech");if(!e.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!e.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return t=tn(t),e.techs_[t]=n,e.techs_[Ze(t)]=n,"Tech"!==t&&e.defaultTechOrder_.push(t),n},e.getTech=function(t){if(t)return e.techs_&&e.techs_[t]?e.techs_[t]:(t=tn(t),l.a&&l.a.videojs&&l.a.videojs[t]?(nt.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),l.a.videojs[t]):void 0)},e}(an);Xn.names.forEach((function(t){var e=Xn[t];Kn.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}})),Kn.prototype.featuresVolumeControl=!0,Kn.prototype.featuresMuteControl=!0,Kn.prototype.featuresFullscreenResize=!1,Kn.prototype.featuresPlaybackRate=!1,Kn.prototype.featuresProgressEvents=!1,Kn.prototype.featuresSourceset=!1,Kn.prototype.featuresTimeupdateEvents=!1,Kn.prototype.featuresNativeTextTracks=!1,Kn.prototype.featuresVideoFrameCallback=!1,Kn.withSourceHandlers=function(t){t.registerSourceHandler=function(e,n){var r=t.sourceHandlers;r||(r=t.sourceHandlers=[]),void 0===n&&(n=r.length),r.splice(n,0,e)},t.canPlayType=function(e){for(var n,r=t.sourceHandlers||[],i=0;i<r.length;i++)if(n=r[i].canPlayType(e))return n;return""},t.selectSourceHandler=function(source,e){for(var n=t.sourceHandlers||[],i=0;i<n.length;i++)if(n[i].canHandleSource(source,e))return n[i];return null},t.canPlaySource=function(e,n){var r=t.selectSourceHandler(e,n);return r?r.canHandleSource(e,n):""};["seekable","seeking","duration"].forEach((function(t){var e=this[t];"function"==typeof e&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):e.apply(this,arguments)})}),t.prototype),t.prototype.setSource=function(source){var e=t.selectSourceHandler(source,this.options_);e||(t.nativeSourceHandler?e=t.nativeSourceHandler:nt.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),e!==t.nativeSourceHandler&&(this.currentSource_=source),this.sourceHandler_=e.handleSource(source,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},t.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)}},an.registerComponent("Tech",Kn),Kn.registerTech("Tech",Kn),Kn.defaultTechOrder_=[];var $n={},Qn={},Jn={};function Zn(t,e,n){t.setTimeout((function(){return or(e,$n[e.type],n,t)}),1)}function er(t,e,n,r){void 0===r&&(r=null);var o="call"+tn(n),l=t.reduce(sr(o),r),c=l===Jn,h=c?null:e[n](l);return function(t,e,n,r){for(var i=t.length-1;i>=0;i--){var o=t[i];o[e]&&o[e](r,n)}}(t,n,h,c),h}var nr={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},rr={setCurrentTime:1,setMuted:1,setVolume:1},ir={play:1,pause:1};function sr(t){return function(e,n){return e===Jn?Jn:n[t]?n[t](e):e}}function or(t,e,n,r,o,l){void 0===t&&(t={}),void 0===e&&(e=[]),void 0===o&&(o=[]),void 0===l&&(l=!1);var c=e,h=c[0],d=c.slice(1);if("string"==typeof h)or(t,$n[h],n,r,o,l);else if(h){var f=function(t,e){var n=Qn[t.id()],r=null;if(null==n)return r=e(t),Qn[t.id()]=[[e,r]],r;for(var i=0;i<n.length;i++){var o=n[i],l=o[0],c=o[1];l===e&&(r=c)}return null===r&&(r=e(t),n.push([e,r])),r}(r,h);if(!f.setSource)return o.push(f),or(t,d,n,r,o,l);f.setSource(ut({},t),(function(e,c){if(e)return or(t,d,n,r,o,l);o.push(f),or(c,t.type===c.type?d:$n[c.type],n,r,o,l)}))}else d.length?or(t,d,n,r,o,l):l?n(t,o):or(t,$n["*"],n,r,o,!0)}var ar={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"},ur=function(t){void 0===t&&(t="");var e=Rn(t);return ar[e.toLowerCase()]||""},lr=function t(e){if(Array.isArray(e)){var n=[];e.forEach((function(e){e=t(e),Array.isArray(e)?n=n.concat(e):lt(e)&&n.push(e)})),e=n}else e="string"==typeof e&&e.trim()?[cr({src:e})]:lt(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[cr(e)]:[];return e};function cr(t){if(!t.type){var e=ur(t.src);e&&(t.type=e)}return t}var dr=function(t){function e(e,n,r){var o,l=en({createEl:!1},n);if(o=t.call(this,e,l,r)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)e.src(n.playerOptions.sources);else for(var i=0,c=n.playerOptions.techOrder;i<c.length;i++){var h=tn(c[i]),d=Kn.getTech(h);if(h||(d=an.getComponent(h)),d&&d.isSupported()){e.loadTech_(h);break}}return o}return T()(e,t),e}(an);an.registerComponent("MediaLoader",dr);var fr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).options_.controlText&&r.controlText(r.options_.controlText),r.handleMouseOver_=function(t){return r.handleMouseOver(t)},r.handleMouseOut_=function(t){return r.handleMouseOut(t)},r.handleClick_=function(t){return r.handleClick(t)},r.handleKeyDown_=function(t){return r.handleKeyDown(t)},r.emitTapEvents(),r.enable(),r}T()(e,t);var n=e.prototype;return n.createEl=function(t,e,n){void 0===t&&(t="div"),void 0===e&&(e={}),void 0===n&&(n={}),e=ut({className:this.buildCSSClass(),tabIndex:0},e),"button"===t&&nt.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),n=ut({role:"button"},n),this.tabIndex_=e.tabIndex;var r=zt(t,e,n);return r.appendChild(zt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r},n.dispose=function(){this.controlTextEl_=null,t.prototype.dispose.call(this)},n.createControlTextEl=function(t){return this.controlTextEl_=zt("span",{className:"vjs-control-text"},{"aria-live":"polite"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_},n.controlText=function(text,t){if(void 0===t&&(t=this.el()),void 0===text)return this.controlText_||"Need Text";var e=this.localize(text);this.controlText_=text,qt(this.controlTextEl_,e),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",e)},n.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==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"),void 0!==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(t){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(e){v.a.isEventKey(e,"Space")||v.a.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):t.prototype.handleKeyDown.call(this,e)},e}(an);an.registerComponent("ClickableComponent",fr);var pr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).update(),r.update_=function(t){return r.update(t)},e.on("posterchange",r.update_),r}T()(e,t);var n=e.prototype;return n.dispose=function(){this.player().off("posterchange",this.update_),t.prototype.dispose.call(this)},n.createEl=function(){return zt("div",{className:"vjs-poster",tabIndex:-1})},n.update=function(t){var e=this.player().poster();this.setSrc(e),e?this.show():this.hide()},n.setSrc=function(t){var e="";t&&(e='url("'+t+'")'),this.el_.style.backgroundImage=e},n.handleClick=function(t){if(this.player_.controls()){var e=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;!this.player_.tech(!0)||(kt||xt)&&e||this.player_.tech(!0).focus(),this.player_.paused()?mn(this.player_.play()):this.player_.pause()}},e}(fr);an.registerComponent("PosterImage",pr);var mr="#222",gr={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 vr(t,e){var n;if(4===t.length)n=t[1]+t[1]+t[2]+t[2]+t[3]+t[3];else{if(7!==t.length)throw new Error("Invalid color code provided, "+t+"; must be formatted as e.g. #f0e or #f604e2.");n=t.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+e+")"}function yr(t,style,e){try{t.style[style]=e}catch(t){return}}var _r=function(t){function e(e,n,r){var o;o=t.call(this,e,n,r)||this;var c=function(t){return o.updateDisplay(t)};return e.on("loadstart",(function(t){return o.toggleDisplay(t)})),e.on("texttrackchange",c),e.on("loadedmetadata",(function(t){return o.preselectTrack(t)})),e.ready(Ue(_()(o),(function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)this.hide();else{e.on("fullscreenchange",c),e.on("playerresize",c),l.a.addEventListener("orientationchange",c),e.on("dispose",(function(){return l.a.removeEventListener("orientationchange",c)}));for(var t=this.options_.playerOptions.tracks||[],i=0;i<t.length;i++)this.player_.addRemoteTextTrack(t[i],!0);this.preselectTrack()}}))),o}T()(e,t);var n=e.prototype;return n.preselectTrack=function(){for(var t,e,n,r={captions:1,subtitles:1},o=this.player_.textTracks(),l=this.player_.cache_.selectedLanguage,i=0;i<o.length;i++){var track=o[i];l&&l.enabled&&l.language&&l.language===track.language&&track.kind in r?track.kind===l.kind?n=track:n||(n=track):l&&!l.enabled?(n=null,t=null,e=null):track.default&&("descriptions"!==track.kind||t?track.kind in r&&!e&&(e=track):t=track)}n?n.mode="showing":e?e.mode="showing":t&&(t.mode="showing")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})},n.clearDisplay=function(){"function"==typeof l.a.WebVTT&&l.a.WebVTT.processCues(l.a,[],this.el_)},n.updateDisplay=function(){var t=this.player_.textTracks(),e=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),e){for(var n=[],r=0;r<t.length;++r){var track=t[r];"showing"===track.mode&&n.push(track)}this.updateForTrack(n)}else{for(var o=null,l=null,i=t.length;i--;){var c=t[i];"showing"===c.mode&&("descriptions"===c.kind?o=c:l=c)}l?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(l)):o&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(o))}},n.updateDisplayState=function(track){for(var t=this.player_.textTrackSettings.getValues(),e=track.activeCues,i=e.length;i--;){var n=e[i];if(n){var r=n.displayState;if(t.color&&(r.firstChild.style.color=t.color),t.textOpacity&&yr(r.firstChild,"color",vr(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(r.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&yr(r.firstChild,"backgroundColor",vr(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?yr(r,"backgroundColor",vr(t.windowColor,t.windowOpacity)):r.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?r.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px "+mr:"raised"===t.edgeStyle?r.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px "+mr:"depressed"===t.edgeStyle?r.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px "+mr:"uniform"===t.edgeStyle&&(r.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px "+mr)),t.fontPercent&&1!==t.fontPercent){var o=l.a.parseFloat(r.style.fontSize);r.style.fontSize=o*t.fontPercent+"px",r.style.height="auto",r.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?r.firstChild.style.fontVariant="small-caps":r.firstChild.style.fontFamily=gr[t.fontFamily])}}},n.updateForTrack=function(t){if(Array.isArray(t)||(t=[t]),"function"==typeof l.a.WebVTT&&!t.every((function(track){return!track.activeCues}))){for(var e=[],i=0;i<t.length;++i)for(var track=t[i],n=0;n<track.activeCues.length;++n)e.push(track.activeCues[n]);l.a.WebVTT.processCues(l.a,e,this.el_);for(var r=0;r<t.length;++r){for(var o=t[r],c=0;c<o.activeCues.length;++c){var h=o.activeCues[c].displayState;Wt(h,"vjs-text-track-cue"),Wt(h,"vjs-text-track-cue-"+(o.language?o.language:r)),o.language&&Qt(h,"lang",o.language)}this.player_.textTrackSettings&&this.updateDisplayState(o)}}},e}(an);an.registerComponent("TextTrackDisplay",_r);var wr=function(t){function e(){return t.apply(this,arguments)||this}return T()(e,t),e.prototype.createEl=function(){var e=this.player_.isAudio(),n=this.localize(e?"Audio Player":"Video Player"),r=zt("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[n])}),o=t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return o.appendChild(r),o},e}(an);an.registerComponent("LoadingSpinner",wr);var Tr=function(t){function e(){return t.apply(this,arguments)||this}T()(e,t);var n=e.prototype;return n.createEl=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={});var r=zt("button",e=ut({className:this.buildCSSClass()},e),n=ut({type:"button"},n));return r.appendChild(zt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r},n.addChild=function(t,e){void 0===e&&(e={});var n=this.constructor.name;return nt.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),an.prototype.addChild.call(this,t,e)},n.enable=function(){t.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){t.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(e){v.a.isEventKey(e,"Space")||v.a.isEventKey(e,"Enter")?e.stopPropagation():t.prototype.handleKeyDown.call(this,e)},e}(fr);an.registerComponent("Button",Tr);var xr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).mouseused_=!1,r.on("mousedown",(function(t){return r.handleMouseDown(t)})),r}T()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(t){var e=this.player_.play();if(this.mouseused_&&t.clientX&&t.clientY){var n=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;return mn(e),void(!this.player_.tech(!0)||(kt||xt)&&n||this.player_.tech(!0).focus())}var r=this.player_.getChild("controlBar"),o=r&&r.getChild("playToggle");if(o){var l=function(){return o.focus()};pn(e)?e.then(l,(function(){})):this.setTimeout(l,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(e){this.mouseused_=!1,t.prototype.handleKeyDown.call(this,e)},n.handleMouseDown=function(t){this.mouseused_=!0},e}(Tr);xr.prototype.controlText_="Play Video",an.registerComponent("BigPlayButton",xr);var Sr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).controlText(n&&n.controlText||r.localize("Close")),r}T()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(t){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(e){v.a.isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):t.prototype.handleKeyDown.call(this,e)},e}(Tr);an.registerComponent("CloseButton",Sr);var Er=function(t){function e(e,n){var r;return void 0===n&&(n={}),r=t.call(this,e,n)||this,n.replay=void 0===n.replay||n.replay,r.on(e,"play",(function(t){return r.handlePlay(t)})),r.on(e,"pause",(function(t){return r.handlePause(t)})),n.replay&&r.on(e,"ended",(function(t){return r.handleEnded(t)})),r}T()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(t){this.player_.paused()?mn(this.player_.play()):this.player_.pause()},n.handleSeeked=function(t){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(t):this.handlePlay(t)},n.handlePlay=function(t){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(t){var e=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",(function(t){return e.handleSeeked(t)}))},e}(Tr);Er.prototype.controlText_="Play",an.registerComponent("PlayToggle",Er);var kr=function(t,e){t=t<0?0:t;var s=Math.floor(t%60),n=Math.floor(t/60%60),r=Math.floor(t/3600),o=Math.floor(e/60%60),l=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(r=n=s="-"),(r=r>0||l>0?r+":":"")+(n=((r||o>=10)&&n<10?"0"+n:n)+":")+(s=s<10?"0"+s:s)},Ar=kr;function Cr(t,e){return void 0===e&&(e=t),Ar(t,e)}var Or=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).on(e,["timeupdate","ended"],(function(t){return r.updateContent(t)})),r.updateTextNode_(),r}T()(e,t);var n=e.prototype;return n.createEl=function(){var e=this.buildCSSClass(),n=t.prototype.createEl.call(this,"div",{className:e+" vjs-time-control vjs-control"}),span=zt("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+" "},{role:"presentation"});return n.appendChild(span),this.contentEl_=zt("span",{className:e+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,t.prototype.dispose.call(this)},n.updateTextNode_=function(time){var t=this;void 0===time&&(time=0),time=Cr(time),this.formattedTime_!==time&&(this.formattedTime_=time,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",(function(){if(t.contentEl_){var e=t.textNode_;e&&t.contentEl_.firstChild!==e&&(e=null,nt.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_=h.a.createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}})))},n.updateContent=function(t){},e}(an);Or.prototype.labelText_="Time",Or.prototype.controlText_="Time",an.registerComponent("TimeDisplay",Or);var jr=function(t){function e(){return t.apply(this,arguments)||this}T()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(t){var time;time=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(time)},e}(Or);jr.prototype.labelText_="Current Time",jr.prototype.controlText_="Current Time",an.registerComponent("CurrentTimeDisplay",jr);var Ir=function(t){function e(e,n){var r,o=function(t){return r.updateContent(t)};return(r=t.call(this,e,n)||this).on(e,"durationchange",o),r.on(e,"loadstart",o),r.on(e,"loadedmetadata",o),r}T()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(t){var e=this.player_.duration();this.updateTextNode_(e)},e}(Or);Ir.prototype.labelText_="Duration",Ir.prototype.controlText_="Duration",an.registerComponent("DurationDisplay",Ir);var Lr=function(t){function e(){return t.apply(this,arguments)||this}return T()(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),div=t.prototype.createEl.call(this,"div"),span=t.prototype.createEl.call(this,"span",{textContent:"/"});return div.appendChild(span),e.appendChild(div),e},e}(an);an.registerComponent("TimeDivider",Lr);var Dr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).on(e,"durationchange",(function(t){return r.updateContent(t)})),r}T()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var e=t.prototype.createEl.call(this);return!1!==this.options_.displayNegative&&e.insertBefore(zt("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e},n.updateContent=function(t){var time;"number"==typeof this.player_.duration()&&(time=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(time))},e}(Or);Dr.prototype.labelText_="Remaining Time",Dr.prototype.controlText_="Remaining Time",an.registerComponent("RemainingTimeDisplay",Dr);var Pr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).updateShowing(),r.on(r.player(),"durationchange",(function(t){return r.updateShowing(t)})),r}T()(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=zt("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(zt("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+" "})),this.contentEl_.appendChild(h.a.createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e},n.dispose=function(){this.contentEl_=null,t.prototype.dispose.call(this)},n.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},e}(an);an.registerComponent("LiveDisplay",Pr);var Mr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).updateLiveEdgeStatus(),r.player_.liveTracker&&(r.updateLiveEdgeStatusHandler_=function(t){return r.updateLiveEdgeStatus(t)},r.on(r.player_.liveTracker,"liveedgechange",r.updateLiveEdgeStatusHandler_)),r}T()(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=zt("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e},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,t.prototype.dispose.call(this)},e}(Tr);Mr.prototype.controlText_="Seek to live, currently playing live",an.registerComponent("SeekToLive",Mr);var Nr=function(t,e,n){return t=Number(t),Math.min(n,Math.max(e,isNaN(t)?e:t))},Rr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).handleMouseDown_=function(t){return r.handleMouseDown(t)},r.handleMouseUp_=function(t){return r.handleMouseUp(t)},r.handleKeyDown_=function(t){return r.handleKeyDown(t)},r.handleClick_=function(t){return r.handleClick(t)},r.handleMouseMove_=function(t){return r.handleMouseMove(t)},r.update_=function(t){return r.update(t)},r.bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}T()(e,t);var n=e.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 t=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(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"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(e,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),n.className=n.className+" vjs-slider",n=ut({tabIndex:0},n),r=ut({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),t.prototype.createEl.call(this,e,n,r)},n.handleMouseDown=function(t){var e=this.bar.el_.ownerDocument;"mousedown"===t.type&&t.preventDefault(),"touchstart"!==t.type||St||t.preventDefault(),Zt(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(e,"mousemove",this.handleMouseMove_),this.on(e,"mouseup",this.handleMouseUp_),this.on(e,"touchmove",this.handleMouseMove_),this.on(e,"touchend",this.handleMouseUp_),this.handleMouseMove(t,!0)},n.handleMouseMove=function(t){},n.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;te(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()},n.update=function(){var t=this;if(this.el_&&this.bar){var progress=this.getProgress();return progress===this.progress_||(this.progress_=progress,this.requestNamedAnimationFrame("Slider#update",(function(){var e=t.vertical()?"height":"width";t.bar.el().style[e]=(100*progress).toFixed(2)+"%"}))),progress}},n.getProgress=function(){return Number(Nr(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(t){var e=re(this.el_,t);return this.vertical()?e.y:e.x},n.handleKeyDown=function(e){v.a.isEventKey(e,"Left")||v.a.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):v.a.isEventKey(e,"Right")||v.a.isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):t.prototype.handleKeyDown.call(this,e)},n.handleClick=function(t){t.stopPropagation(),t.preventDefault()},n.vertical=function(t){if(void 0===t)return this.vertical_||!1;this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},e}(an);an.registerComponent("Slider",Rr);var Ur=function(time,t){return Nr(time/t*100,0,100).toFixed(2)+"%"},Br=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).partEls_=[],r.on(e,"progress",(function(t){return r.update(t)})),r}T()(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),n=zt("span",{className:"vjs-control-text"}),r=zt("span",{textContent:this.localize("Loaded")}),o=h.a.createTextNode(": ");return this.percentageEl_=zt("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(n),n.appendChild(r),n.appendChild(o),n.appendChild(this.percentageEl_),e},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,t.prototype.dispose.call(this)},n.update=function(t){var e=this;this.requestNamedAnimationFrame("LoadProgressBar#update",(function(){var t=e.player_.liveTracker,n=e.player_.buffered(),r=t&&t.isLive()?t.seekableEnd():e.player_.duration(),o=e.player_.bufferedEnd(),l=e.partEls_,c=Ur(o,r);e.percent_!==c&&(e.el_.style.width=c,qt(e.percentageEl_,c),e.percent_=c);for(var i=0;i<n.length;i++){var h=n.start(i),d=n.end(i),f=l[i];f||(f=e.el_.appendChild(zt()),l[i]=f),f.dataset.start===h&&f.dataset.end===d||(f.dataset.start=h,f.dataset.end=d,f.style.left=Ur(h,o),f.style.width=Ur(d-h,o))}for(var m=l.length;m>n.length;m--)e.el_.removeChild(l[m-1]);l.length=n.length}))},e}(an);an.registerComponent("LoadProgressBar",Br);var Fr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).update=Be(Ue(_()(r),r.update),Re),r}T()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(t,e,content){var n=ne(this.el_),r=ee(this.player_.el()),o=t.width*e;if(r&&n){var l=t.left-r.left+o,c=t.width-o+(r.right-t.right),h=n.width/2;l<h?h+=h-l:c<h&&(h=c),h<0?h=0:h>n.width&&(h=n.width),h=Math.round(h),this.el_.style.right="-"+h+"px",this.write(content)}},n.write=function(content){qt(this.el_,content)},n.updateTime=function(t,e,time,n){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",(function(){var content,o=r.player_.duration();if(r.player_.liveTracker&&r.player_.liveTracker.isLive()){var l=r.player_.liveTracker.liveWindow(),c=l-e*l;content=(c<1?"":"-")+Cr(c,l)}else content=Cr(time,o);r.update(t,e,content),n&&n()}))},e}(an);an.registerComponent("TimeTooltip",Fr);var zr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).update=Be(Ue(_()(r),r.update),Re),r}T()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(t,e){var n=this.getChild("timeTooltip");if(n){var time=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(t,e,time)}},e}(an);zr.prototype.options_={children:[]},Lt||bt||zr.prototype.options_.children.push("timeTooltip"),an.registerComponent("PlayProgressBar",zr);var qr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).update=Be(Ue(_()(r),r.update),Re),r}T()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(t,e){var n=this,time=e*this.player_.duration();this.getChild("timeTooltip").updateTime(t,e,time,(function(){n.el_.style.left=t.width*e+"px"}))},e}(an);qr.prototype.options_={children:["timeTooltip"]},an.registerComponent("MouseTimeDisplay",qr);var Hr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).setEventHandlers_(),r}T()(e,t);var n=e.prototype;return n.setEventHandlers_=function(){var t=this;this.update_=Ue(this,this.update),this.update=Be(this.update_,Re),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(e){return t.enableInterval_(e)},this.disableIntervalHandler_=function(e){return t.disableInterval_(e)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in h.a&&"visibilityState"in h.a&&this.on(h.a,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(t){"hidden"===h.a.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(t)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,Re))},n.disableInterval_=function(t){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&t&&"ended"!==t.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(e){var n=this;if("hidden"!==h.a.visibilityState){var r=t.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",(function(){var t=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),e=n.player_.liveTracker,o=n.player_.duration();e&&e.isLive()&&(o=n.player_.liveTracker.liveCurrentTime()),n.percent_!==r&&(n.el_.setAttribute("aria-valuenow",(100*r).toFixed(2)),n.percent_=r),n.currentTime_===t&&n.duration_===o||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[Cr(t,o),Cr(o,o)],"{1} of {2}")),n.currentTime_=t,n.duration_=o),n.bar&&n.bar.update(ee(n.el()),n.getProgress())})),r}},n.userSeek_=function(t){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(t)},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var t,e=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(t=(e-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t},n.handleMouseDown=function(e){le(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),t.prototype.handleMouseDown.call(this,e))},n.handleMouseMove=function(t,e){if(void 0===e&&(e=!1),le(t)){var n;e||this.player_.scrubbing()||this.player_.scrubbing(!0);var r=this.calculateDistance(t),o=this.player_.liveTracker;if(o&&o.isLive()){if(r>=.99)return void o.seekToLiveEdge();var l=o.seekableStart(),c=o.liveCurrentTime();if((n=l+r*o.liveWindow())>=c&&(n=c),n<=l&&(n=l+.1),n===1/0)return}else(n=r*this.player_.duration())===this.player_.duration()&&(n-=.1);this.userSeek_(n)}},n.enable=function(){t.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()},n.disable=function(){t.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()},n.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?mn(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(t){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(e){var n=this.player_.liveTracker;if(v.a.isEventKey(e,"Space")||v.a.isEventKey(e,"Enter"))e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(v.a.isEventKey(e,"Home"))e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if(v.a.isEventKey(e,"End"))e.preventDefault(),e.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(v()(e))){e.preventDefault(),e.stopPropagation();var r=10*(v.a.codes[v()(e)]-v.a.codes[0])/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*r):this.userSeek_(this.player_.duration()*r)}else v.a.isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):v.a.isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):t.prototype.handleKeyDown.call(this,e)},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 h.a&&"visibilityState"in h.a&&this.off(h.a,"visibilitychange",this.toggleVisibility_),t.prototype.dispose.call(this)},e}(Rr);Hr.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},Lt||bt||Hr.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),an.registerComponent("SeekBar",Hr);var Vr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).handleMouseMove=Be(Ue(_()(r),r.handleMouseMove),Re),r.throttledHandleMouseSeek=Be(Ue(_()(r),r.handleMouseSeek),Re),r.handleMouseUpHandler_=function(t){return r.handleMouseUp(t)},r.handleMouseDownHandler_=function(t){return r.handleMouseDown(t)},r.enable(),r}T()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(t){var e=this.getChild("seekBar");if(e){var n=e.getChild("playProgressBar"),r=e.getChild("mouseTimeDisplay");if(n||r){var o=e.el(),l=ne(o),c=re(o,t).x;c=Nr(c,0,1),r&&r.update(l,c),n&&n.update(l,e.getProgress())}}},n.handleMouseSeek=function(t){var e=this.getChild("seekBar");e&&e.handleMouseMove(t)},n.enabled=function(){return this.enabled_},n.disable=function(){if(this.children().forEach((function(t){return t.disable&&t.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 t=this.getChild("seekBar");this.player_.scrubbing(!1),t.videoWasPlaying&&mn(this.player_.play())}},n.enable=function(){this.children().forEach((function(t){return t.enable&&t.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 t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseDown=function(t){var e=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(t),this.on(e,"mousemove",this.throttledHandleMouseSeek),this.on(e,"touchmove",this.throttledHandleMouseSeek),this.on(e,"mouseup",this.handleMouseUpHandler_),this.on(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(t){var e=this.getChild("seekBar");e&&e.handleMouseUp(t),this.removeListenersAddedOnMousedownAndTouchstart()},e}(an);Vr.prototype.options_={children:["seekBar"]},an.registerComponent("ProgressControl",Vr);var Wr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).on(e,["enterpictureinpicture","leavepictureinpicture"],(function(t){return r.handlePictureInPictureChange(t)})),r.on(e,["disablepictureinpicturechanged","loadedmetadata"],(function(t){return r.handlePictureInPictureEnabledChange(t)})),r.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],(function(){"audio"===e.currentType().substring(0,5)||e.audioPosterMode()||e.audioOnlyMode()?(e.isInPictureInPicture()&&e.exitPictureInPicture(),r.hide()):r.show()})),r.disable(),r}T()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+t.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){h.a.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},n.handlePictureInPictureChange=function(t){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(t){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},e}(Tr);Wr.prototype.controlText_="Picture-in-Picture",an.registerComponent("PictureInPictureToggle",Wr);var Yr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).on(e,"fullscreenchange",(function(t){return r.handleFullscreenChange(t)})),!1===h.a[e.fsApi_.fullscreenEnabled]&&r.disable(),r}T()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(t){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(t){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},e}(Tr);Yr.prototype.controlText_="Fullscreen",an.registerComponent("FullscreenToggle",Yr);var Gr=function(t){function e(){return t.apply(this,arguments)||this}return T()(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return e.appendChild(t.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),e},e}(an);an.registerComponent("VolumeLevel",Gr);var Xr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).update=Be(Ue(_()(r),r.update),Re),r}T()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},n.update=function(t,e,n,content){if(!n){var r=ee(this.el_),o=ee(this.player_.el()),l=t.width*e;if(!o||!r)return;var c=t.left-o.left+l,h=t.width-l+(o.right-t.right),d=r.width/2;c<d?d+=d-c:h<d&&(d=h),d<0?d=0:d>r.width&&(d=r.width),this.el_.style.right="-"+d+"px"}this.write(content+"%")},n.write=function(content){qt(this.el_,content)},n.updateVolume=function(t,e,n,r,o){var l=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",(function(){l.update(t,e,n,r.toFixed(0)),o&&o()}))},e}(an);an.registerComponent("VolumeLevelTooltip",Xr);var Kr=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).update=Be(Ue(_()(r),r.update),Re),r}T()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(t,e,n){var r=this,o=100*e;this.getChild("volumeLevelTooltip").updateVolume(t,e,n,o,(function(){n?r.el_.style.bottom=t.height*e+"px":r.el_.style.left=t.width*e+"px"}))},e}(an);Kr.prototype.options_={children:["volumeLevelTooltip"]},an.registerComponent("MouseVolumeLevelDisplay",Kr);var $r=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).on("slideractive",(function(t){return r.updateLastVolume_(t)})),r.on(e,"volumechange",(function(t){return r.updateARIAAttributes(t)})),e.ready((function(){return r.updateARIAAttributes()})),r}T()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(e){le(e)&&t.prototype.handleMouseDown.call(this,e)},n.handleMouseMove=function(t){var e=this.getChild("mouseVolumeLevelDisplay");if(e){var n=this.el(),r=ee(n),o=this.vertical(),l=re(n,t);l=o?l.y:l.x,l=Nr(l,0,1),e.update(r,l,o)}le(t)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(t)))},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(t){var e=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",e),this.el_.setAttribute("aria-valuetext",e+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var t=this,e=this.player_.volume();this.one("sliderinactive",(function(){0===t.player_.volume()&&t.player_.lastVolume_(e)}))},e}(Rr);$r.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Lt||bt||$r.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),$r.prototype.playerEvent="volumechange",an.registerComponent("VolumeBar",$r);var Qr=function(t){function e(e,n){var r;return void 0===n&&(n={}),n.vertical=n.vertical||!1,(void 0===n.volumeBar||ct(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),r=t.call(this,e,n)||this,function(t,e){e.tech_&&!e.tech_.featuresVolumeControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",(function(){e.tech_.featuresVolumeControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")}))}(_()(r),e),r.throttledHandleMouseMove=Be(Ue(_()(r),r.handleMouseMove),Re),r.handleMouseUpHandler_=function(t){return r.handleMouseUp(t)},r.on("mousedown",(function(t){return r.handleMouseDown(t)})),r.on("touchstart",(function(t){return r.handleMouseDown(t)})),r.on("mousemove",(function(t){return r.handleMouseMove(t)})),r.on(r.volumeBar,["focus","slideractive"],(function(){r.volumeBar.addClass("vjs-slider-active"),r.addClass("vjs-slider-active"),r.trigger("slideractive")})),r.on(r.volumeBar,["blur","sliderinactive"],(function(){r.volumeBar.removeClass("vjs-slider-active"),r.removeClass("vjs-slider-active"),r.trigger("sliderinactive")})),r}T()(e,t);var n=e.prototype;return n.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},n.handleMouseDown=function(t){var e=this.el_.ownerDocument;this.on(e,"mousemove",this.throttledHandleMouseMove),this.on(e,"touchmove",this.throttledHandleMouseMove),this.on(e,"mouseup",this.handleMouseUpHandler_),this.on(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(t){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseMove),this.off(e,"touchmove",this.throttledHandleMouseMove),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseMove=function(t){this.volumeBar.handleMouseMove(t)},e}(an);Qr.prototype.options_={children:["volumeBar"]},an.registerComponent("VolumeControl",Qr);var Jr=function(t){function e(e,n){var r;return r=t.call(this,e,n)||this,function(t,e){e.tech_&&!e.tech_.featuresMuteControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",(function(){e.tech_.featuresMuteControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")}))}(_()(r),e),r.on(e,["loadstart","volumechange"],(function(t){return r.update(t)})),r}T()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(t){var e=this.player_.volume(),n=this.player_.lastVolume_();if(0===e){var r=n<.1?.1:n;this.player_.volume(r),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(t){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var t=this.player_.volume(),e=3;Lt&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===t||this.player_.muted()?e=0:t<.33?e=1:t<.67&&(e=2);for(var i=0;i<4;i++)Yt(this.el_,"vjs-vol-"+i);Wt(this.el_,"vjs-vol-"+e)},n.updateControlText_=function(){var text=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==text&&this.controlText(text)},e}(Tr);Jr.prototype.controlText_="Mute",an.registerComponent("MuteToggle",Jr);var Zr=function(t){function e(e,n){var r;return void 0===n&&(n={}),void 0!==n.inline?n.inline=n.inline:n.inline=!0,(void 0===n.volumeControl||ct(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),(r=t.call(this,e,n)||this).handleKeyPressHandler_=function(t){return r.handleKeyPress(t)},r.on(e,["loadstart"],(function(t){return r.volumePanelState_(t)})),r.on(r.muteToggle,"keyup",(function(t){return r.handleKeyPress(t)})),r.on(r.volumeControl,"keyup",(function(t){return r.handleVolumeControlKeyUp(t)})),r.on("keydown",(function(t){return r.handleKeyPress(t)})),r.on("mouseover",(function(t){return r.handleMouseOver(t)})),r.on("mouseout",(function(t){return r.handleMouseOut(t)})),r.on(r.volumeControl,["slideractive"],r.sliderActive_),r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_),r}T()(e,t);var n=e.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 e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+e})},n.dispose=function(){this.handleMouseOut(),t.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(t){v.a.isEventKey(t,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(t){this.addClass("vjs-hover"),je(h.a,"keyup",this.handleKeyPressHandler_)},n.handleMouseOut=function(t){this.removeClass("vjs-hover"),Ie(h.a,"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(t){v.a.isEventKey(t,"Esc")&&this.handleMouseOut()},e}(an);Zr.prototype.options_={children:["muteToggle","volumeControl"]},an.registerComponent("VolumePanel",Zr);var ti=function(t){function e(e,n){var r;return r=t.call(this,e,n)||this,n&&(r.menuButton_=n.menuButton),r.focusedChild_=-1,r.on("keydown",(function(t){return r.handleKeyDown(t)})),r.boundHandleBlur_=function(t){return r.handleBlur(t)},r.boundHandleTapClick_=function(t){return r.handleTapClick(t)},r}T()(e,t);var n=e.prototype;return n.addEventListenerForItem=function(component){component instanceof an&&(this.on(component,"blur",this.boundHandleBlur_),this.on(component,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(component){component instanceof an&&(this.off(component,"blur",this.boundHandleBlur_),this.off(component,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(component){"string"==typeof component&&(component=this.getChild(component)),this.removeEventListenerForItem(component),t.prototype.removeChild.call(this,component)},n.addItem=function(component){var t=this.addChild(component);t&&this.addEventListenerForItem(t)},n.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=zt(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),je(n,"click",(function(t){t.preventDefault(),t.stopImmediatePropagation()})),n},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,t.prototype.dispose.call(this)},n.handleBlur=function(t){var e=t.relatedTarget||h.a.activeElement;if(!this.children().some((function(element){return element.el()===e}))){var n=this.menuButton_;n&&n.buttonPressed_&&e!==n.el().firstChild&&n.unpressButton()}},n.handleTapClick=function(t){if(this.menuButton_){this.menuButton_.unpressButton();var e=this.children();if(!Array.isArray(e))return;var n=e.filter((function(component){return component.el()===t.target}))[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},n.handleKeyDown=function(t){v.a.isEventKey(t,"Left")||v.a.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):(v.a.isEventKey(t,"Right")||v.a.isEventKey(t,"Up"))&&(t.preventDefault(),t.stopPropagation(),this.stepBack())},n.stepForward=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_+1),this.focus(t)},n.stepBack=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_-1),this.focus(t)},n.focus=function(t){void 0===t&&(t=0);var e=this.children().slice();e.length&&e[0].hasClass("vjs-menu-title")&&e.shift(),e.length>0&&(t<0?t=0:t>=e.length&&(t=e.length-1),this.focusedChild_=t,e[t].el_.focus())},e}(an);an.registerComponent("Menu",ti);var ei=function(t){function e(e,n){var r;void 0===n&&(n={}),(r=t.call(this,e,n)||this).menuButton_=new Tr(e,n),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var o=Tr.prototype.buildCSSClass();r.menuButton_.el_.className=r.buildCSSClass()+" "+o,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0;var l=function(t){return r.handleClick(t)};return r.handleMenuKeyUp_=function(t){return r.handleMenuKeyUp(t)},r.on(r.menuButton_,"tap",l),r.on(r.menuButton_,"click",l),r.on(r.menuButton_,"keydown",(function(t){return r.handleKeyDown(t)})),r.on(r.menuButton_,"mouseenter",(function(){r.addClass("vjs-hover"),r.menu.show(),je(h.a,"keyup",r.handleMenuKeyUp_)})),r.on("mouseleave",(function(t){return r.handleMouseLeave(t)})),r.on("keydown",(function(t){return r.handleSubmenuKeyDown(t)})),r}T()(e,t);var n=e.prototype;return n.update=function(){var menu=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=menu,this.addChild(menu),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 menu=new ti(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=zt("li",{className:"vjs-menu-title",textContent:tn(this.options_.title),tabIndex:-1}),e=new an(this.player_,{el:t});menu.addItem(e)}if(this.items=this.createItems(),this.items)for(var i=0;i<this.items.length;i++)menu.addItem(this.items[i]);return menu},n.createItems=function(){},n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+Tr.prototype.buildCSSClass()+" "+t.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+t.prototype.buildCSSClass.call(this)},n.controlText=function(text,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(text,t)},n.dispose=function(){this.handleMouseLeave(),t.prototype.dispose.call(this)},n.handleClick=function(t){this.buttonPressed_?this.unpressButton():this.pressButton()},n.handleMouseLeave=function(t){this.removeClass("vjs-hover"),Ie(h.a,"keyup",this.handleMenuKeyUp_)},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(t){v.a.isEventKey(t,"Esc")||v.a.isEventKey(t,"Tab")?(this.buttonPressed_&&this.unpressButton(),v.a.isEventKey(t,"Tab")||(t.preventDefault(),this.menuButton_.focus())):(v.a.isEventKey(t,"Up")||v.a.isEventKey(t,"Down"))&&(this.buttonPressed_||(t.preventDefault(),this.pressButton()))},n.handleMenuKeyUp=function(t){(v.a.isEventKey(t,"Esc")||v.a.isEventKey(t,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(t){this.handleSubmenuKeyDown(t)},n.handleSubmenuKeyDown=function(t){(v.a.isEventKey(t,"Esc")||v.a.isEventKey(t,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),v.a.isEventKey(t,"Tab")||(t.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"),Lt&&Bt())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()},e}(an);an.registerComponent("MenuButton",ei);var ni=function(t){function e(e,n){var r,o=n.tracks;if((r=t.call(this,e,n)||this).items.length<=1&&r.hide(),!o)return _()(r);var l=Ue(_()(r),r.update);return o.addEventListener("removetrack",l),o.addEventListener("addtrack",l),o.addEventListener("labelchange",l),r.player_.on("ready",l),r.player_.on("dispose",(function(){o.removeEventListener("removetrack",l),o.removeEventListener("addtrack",l),o.removeEventListener("labelchange",l)})),r}return T()(e,t),e}(ei);an.registerComponent("TrackButton",ni);var ri=["Tab","Esc","Up","Down","Right","Left"],ii=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).selectable=n.selectable,r.isSelected_=n.selected||!1,r.multiSelectable=n.multiSelectable,r.selected(r.isSelected_),r.selectable?r.multiSelectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitemradio"):r.el_.setAttribute("role","menuitem"),r}T()(e,t);var n=e.prototype;return n.createEl=function(e,n,r){this.nonIconControl=!0;var o=t.prototype.createEl.call(this,"li",ut({className:"vjs-menu-item",tabIndex:-1},n),r);return o.replaceChild(zt("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),o.querySelector(".vjs-icon-placeholder")),o},n.handleKeyDown=function(e){ri.some((function(t){return v.a.isEventKey(e,t)}))||t.prototype.handleKeyDown.call(this,e)},n.handleClick=function(t){this.selected(!0)},n.selected=function(t){this.selectable&&(t?(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))},e}(fr);an.registerComponent("MenuItem",ii);var si=function(t){function e(e,n){var r,track=n.track,o=e.textTracks();n.label=track.label||track.language||"Unknown",n.selected="showing"===track.mode,(r=t.call(this,e,n)||this).track=track,r.kinds=(n.kinds||[n.kind||r.track.kind]).filter(Boolean);var c,d=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];r.handleTracksChange.apply(_()(r),e)},f=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];r.handleSelectedLanguageChange.apply(_()(r),e)};(e.on(["loadstart","texttrackchange"],d),o.addEventListener("change",d),o.addEventListener("selectedlanguagechange",f),r.on("dispose",(function(){e.off(["loadstart","texttrackchange"],d),o.removeEventListener("change",d),o.removeEventListener("selectedlanguagechange",f)})),void 0===o.onchange)&&r.on(["tap","click"],(function(){if("object"!=typeof l.a.Event)try{c=new l.a.Event("change")}catch(t){}c||(c=h.a.createEvent("Event")).initEvent("change",!0,!0),o.dispatchEvent(c)}));return r.handleTracksChange(),r}T()(e,t);var n=e.prototype;return n.handleClick=function(e){var n=this.track,r=this.player_.textTracks();if(t.prototype.handleClick.call(this,e),r)for(var i=0;i<r.length;i++){var track=r[i];-1!==this.kinds.indexOf(track.kind)&&(track===n?"showing"!==track.mode&&(track.mode="showing"):"disabled"!==track.mode&&(track.mode="disabled"))}},n.handleTracksChange=function(t){var e="showing"===this.track.mode;e!==this.isSelected_&&this.selected(e)},n.handleSelectedLanguageChange=function(t){if("showing"===this.track.mode){var e=this.player_.cache_.selectedLanguage;if(e&&e.enabled&&e.language===this.track.language&&e.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,t.prototype.dispose.call(this)},e}(ii);an.registerComponent("TextTrackMenuItem",si);var oi=function(t){function e(e,n){return n.track={player:e,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,t.call(this,e,n)||this}T()(e,t);var n=e.prototype;return n.handleTracksChange=function(t){for(var e=this.player().textTracks(),n=!0,i=0,r=e.length;i<r;i++){var track=e[i];if(this.options_.kinds.indexOf(track.kind)>-1&&"showing"===track.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(t){for(var e=this.player().textTracks(),n=!0,i=0,r=e.length;i<r;i++){var track=e[i];if(["captions","descriptions","subtitles"].indexOf(track.kind)>-1&&"showing"===track.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},e}(si);an.registerComponent("OffTextTrackMenuItem",oi);var ai=function(t){function e(e,n){return void 0===n&&(n={}),n.tracks=e.textTracks(),t.call(this,e,n)||this}return T()(e,t),e.prototype.createItems=function(t,e){var label;void 0===t&&(t=[]),void 0===e&&(e=si),this.label_&&(label=this.label_+" off"),t.push(new oi(this.player_,{kinds:this.kinds_,kind:this.kind_,label:label})),this.hideThreshold_+=1;var n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var i=0;i<n.length;i++){var track=n[i];if(this.kinds_.indexOf(track.kind)>-1){var r=new e(this.player_,{track:track,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});r.addClass("vjs-"+track.kind+"-menu-item"),t.push(r)}}return t},e}(ni);an.registerComponent("TextTrackButton",ai);var ui=function(t){function e(e,n){var r,track=n.track,o=n.cue,l=e.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=o.text,n.selected=o.startTime<=l&&l<o.endTime,(r=t.call(this,e,n)||this).track=track,r.cue=o,r}return T()(e,t),e.prototype.handleClick=function(e){t.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime)},e}(ii);an.registerComponent("ChaptersTrackMenuItem",ui);var ci=function(t){function e(e,n,r){var o;return(o=t.call(this,e,n,r)||this).selectCurrentItem_=function(){o.items.forEach((function(t){t.selected(o.track_.activeCues[0]===t.cue)}))},o}T()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildWrapperCSSClass.call(this)},n.update=function(e){if(!e||!e.track||"chapters"===e.track.kind){var track=this.findChaptersTrack();track!==this.track_?(this.setTrack(track),t.prototype.update.call(this)):(!this.items||track&&track.cues&&track.cues.length!==this.items.length)&&t.prototype.update.call(this)}},n.setTrack=function(track){if(this.track_!==track){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_=track,this.track_){this.track_.mode="hidden";var e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}},n.findChaptersTrack=function(){for(var t=this.player_.textTracks()||[],i=t.length-1;i>=0;i--){var track=t[i];if(track.kind===this.kind_)return track}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(tn(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),t.prototype.createMenu.call(this)},n.createItems=function(){var t=[];if(!this.track_)return t;var e=this.track_.cues;if(!e)return t;for(var i=0,n=e.length;i<n;i++){var r=e[i],o=new ui(this.player_,{track:this.track_,cue:r});t.push(o)}return t},e}(ai);ci.prototype.kind_="chapters",ci.prototype.controlText_="Chapters",an.registerComponent("ChaptersButton",ci);var hi=function(t){function e(e,n,r){var o;o=t.call(this,e,n,r)||this;var l=e.textTracks(),c=Ue(_()(o),o.handleTracksChange);return l.addEventListener("change",c),o.on("dispose",(function(){l.removeEventListener("change",c)})),o}T()(e,t);var n=e.prototype;return n.handleTracksChange=function(t){for(var e=this.player().textTracks(),n=!1,i=0,r=e.length;i<r;i++){var track=e[i];if(track.kind!==this.kind_&&"showing"===track.mode){n=!0;break}}n?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(ai);hi.prototype.kind_="descriptions",hi.prototype.controlText_="Descriptions",an.registerComponent("DescriptionsButton",hi);var di=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}T()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(ai);di.prototype.kind_="subtitles",di.prototype.controlText_="Subtitles",an.registerComponent("SubtitlesButton",di);var fi=function(t){function e(e,n){var r;return n.track={player:e,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",(r=t.call(this,e,n)||this).addClass("vjs-texttrack-settings"),r.controlText(", opens "+n.kind+" settings dialog"),r}return T()(e,t),e.prototype.handleClick=function(t){this.player().getChild("textTrackSettings").open()},e}(si);an.registerComponent("CaptionSettingsMenuItem",fi);var pi=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}T()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new fi(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),t.prototype.createItems.call(this,e)},e}(ai);pi.prototype.kind_="captions",pi.prototype.controlText_="Captions",an.registerComponent("CaptionsButton",pi);var mi=function(t){function e(){return t.apply(this,arguments)||this}return T()(e,t),e.prototype.createEl=function(e,n,r){var o=t.prototype.createEl.call(this,e,n,r),l=o.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(l.appendChild(zt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),l.appendChild(zt("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),o},e}(si);an.registerComponent("SubsCapsMenuItem",mi);var gi=function(t){function e(e,n){var r;return void 0===n&&(n={}),(r=t.call(this,e,n)||this).label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(r.player_.language_)>-1&&(r.label_="captions"),r.menuButton_.controlText(tn(r.label_)),r}T()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new fi(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=t.prototype.createItems.call(this,e,mi)},e}(ai);gi.prototype.kinds_=["captions","subtitles"],gi.prototype.controlText_="Subtitles",an.registerComponent("SubsCapsButton",gi);var vi=function(t){function e(e,n){var r,track=n.track,o=e.audioTracks();n.label=track.label||track.language||"Unknown",n.selected=track.enabled,(r=t.call(this,e,n)||this).track=track,r.addClass("vjs-"+track.kind+"-menu-item");var l=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];r.handleTracksChange.apply(_()(r),e)};return o.addEventListener("change",l),r.on("dispose",(function(){o.removeEventListener("change",l)})),r}T()(e,t);var n=e.prototype;return n.createEl=function(e,n,r){var o=t.prototype.createEl.call(this,e,n,r),l=o.querySelector(".vjs-menu-item-text");return"main-desc"===this.options_.track.kind&&(l.appendChild(zt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),l.appendChild(zt("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),o},n.handleClick=function(e){if(t.prototype.handleClick.call(this,e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks)for(var n=this.player_.audioTracks(),i=0;i<n.length;i++){var track=n[i];track!==this.track&&(track.enabled=track===this.track)}},n.handleTracksChange=function(t){this.selected(this.track.enabled)},e}(ii);an.registerComponent("AudioTrackMenuItem",vi);var yi=function(t){function e(e,n){return void 0===n&&(n={}),n.tracks=e.audioTracks(),t.call(this,e,n)||this}T()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(t){void 0===t&&(t=[]),this.hideThreshold_=1;for(var e=this.player_.audioTracks(),i=0;i<e.length;i++){var track=e[i];t.push(new vi(this.player_,{track:track,selectable:!0,multiSelectable:!1}))}return t},e}(ni);yi.prototype.controlText_="Audio Track",an.registerComponent("AudioTrackButton",yi);var bi=function(t){function e(e,n){var r,label=n.rate,o=parseFloat(label,10);return n.label=label,n.selected=o===e.playbackRate(),n.selectable=!0,n.multiSelectable=!1,(r=t.call(this,e,n)||this).label=label,r.rate=o,r.on(e,"ratechange",(function(t){return r.update(t)})),r}T()(e,t);var n=e.prototype;return n.handleClick=function(e){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(t){this.selected(this.player().playbackRate()===this.rate)},e}(ii);bi.prototype.contentElType="button",an.registerComponent("PlaybackRateMenuItem",bi);var _i=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).menuButton_.el_.setAttribute("aria-describedby",r.labelElId_),r.updateVisibility(),r.updateLabel(),r.on(e,"loadstart",(function(t){return r.updateVisibility(t)})),r.on(e,"ratechange",(function(t){return r.updateLabel(t)})),r.on(e,"playbackrateschange",(function(t){return r.handlePlaybackRateschange(t)})),r}T()(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=zt("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e},n.dispose=function(){this.labelEl_=null,t.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){for(var t=this.playbackRates(),e=[],i=t.length-1;i>=0;i--)e.push(new bi(this.player(),{rate:t[i]+"x"}));return e},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(t){var e=this.player().playbackRate(),n=this.playbackRates(),r=(n.indexOf(e)+1)%n.length;this.player().playbackRate(n[r])},n.handlePlaybackRateschange=function(t){this.update()},n.playbackRates=function(){var t=this.player();return t.playbackRates&&t.playbackRates()||[]},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(t){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},e}(ei);_i.prototype.controlText_="Playback Rate",an.registerComponent("PlaybackRateMenuButton",_i);var wi=function(t){function e(){return t.apply(this,arguments)||this}T()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},n.createEl=function(e,n,r){return void 0===e&&(e="div"),void 0===n&&(n={}),void 0===r&&(r={}),n.className||(n.className=this.buildCSSClass()),t.prototype.createEl.call(this,e,n,r)},e}(an);an.registerComponent("Spacer",wi);var Ti=function(t){function e(){return t.apply(this,arguments)||this}T()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:" "})},e}(wi);an.registerComponent("CustomControlSpacer",Ti);var xi=function(t){function e(){return t.apply(this,arguments)||this}return T()(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},e}(an);xi.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in h.a&&xi.prototype.options_.children.splice(xi.prototype.options_.children.length-1,0,"pictureInPictureToggle"),an.registerComponent("ControlBar",xi);var Si=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).on(e,"error",(function(t){return r.open(t)})),r}T()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},n.content=function(){var t=this.player().error();return t?this.localize(t.message):""},e}(_n);Si.prototype.options_=f()({},_n.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),an.registerComponent("ErrorDisplay",Si);var Ei="vjs-text-track-settings",ki=["#000","Black"],Ai=["#00F","Blue"],Ci=["#0FF","Cyan"],Oi=["#0F0","Green"],ji=["#F0F","Magenta"],Ii=["#F00","Red"],Li=["#FFF","White"],Di=["#FF0","Yellow"],Pi=["1","Opaque"],Mi=["0.5","Semi-Transparent"],Ni=["0","Transparent"],Ri={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[ki,Li,Ii,Oi,Ai,Di,ji,Ci]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Pi,Mi,Ni]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Li,ki,Ii,Oi,Ai,Di,ji,Ci]},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(t){return"1.00"===t?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Pi,Mi]},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:[Ni,Mi,Pi]}};function Ui(t,e){if(e&&(t=e(t)),t&&"none"!==t)return t}Ri.windowColor.options=Ri.backgroundColor.options;var Bi=function(t){function e(e,n){var r;return n.temporary=!1,(r=t.call(this,e,n)||this).updateDisplay=r.updateDisplay.bind(_()(r)),r.fill(),r.hasBeenOpened_=r.hasBeenFilled_=!0,r.endDialog=zt("p",{className:"vjs-control-text",textContent:r.localize("End of dialog window.")}),r.el().appendChild(r.endDialog),r.setDefaults(),void 0===n.persistTextTrackSettings&&(r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings),r.on(r.$(".vjs-done-button"),"click",(function(){r.saveSettings(),r.close()})),r.on(r.$(".vjs-default-button"),"click",(function(){r.setDefaults(),r.updateDisplay()})),at(Ri,(function(t){r.on(r.$(t.selector),"change",r.updateDisplay)})),r.options_.persistTextTrackSettings&&r.restoreSettings(),r}T()(e,t);var n=e.prototype;return n.dispose=function(){this.endDialog=null,t.prototype.dispose.call(this)},n.createElSelect_=function(t,e,n){var r=this;void 0===e&&(e=""),void 0===n&&(n="label");var o=Ri[t],l=o.id.replace("%s",this.id_),c=[e,l].join(" ").trim();return["<"+n+' id="'+l+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(o.label),"</"+n+">",'<select aria-labelledby="'+c+'">'].concat(o.options.map((function(t){var e=l+"-"+t[1].replace(/\W+/g,"");return['<option id="'+e+'" value="'+t[0]+'" ','aria-labelledby="'+c+" "+e+'">',r.localize(t[1]),"</option>"].join("")}))).concat("</select>").join("")},n.createElFgColor_=function(){var t="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",t),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",t),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var t="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",t),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",t),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var t="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",t),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",t),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return zt("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return zt("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 t=this.localize("restore all settings to the default values");return zt("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+t+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+t+"</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 t.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var object,t,e,n=this;return t=function(t,e,r){var o,l,c=(o=n.$(e.selector),l=e.parser,Ui(o.options[o.options.selectedIndex].value,l));return void 0!==c&&(t[r]=c),t},void 0===(e={})&&(e=0),ot(object=Ri).reduce((function(e,n){return t(e,object[n],n)}),e)},n.setValues=function(t){var e=this;at(Ri,(function(n,r){!function(t,e,n){if(e)for(var i=0;i<t.options.length;i++)if(Ui(t.options[i].value,n)===e){t.selectedIndex=i;break}}(e.$(n.selector),t[r],n.parser)}))},n.setDefaults=function(){var t=this;at(Ri,(function(e){var n=e.hasOwnProperty("default")?e.default:0;t.$(e.selector).selectedIndex=n}))},n.restoreSettings=function(){var t;try{t=JSON.parse(l.a.localStorage.getItem(Ei))}catch(t){nt.warn(t)}t&&this.setValues(t)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.keys(t).length?l.a.localStorage.setItem(Ei,JSON.stringify(t)):l.a.localStorage.removeItem(Ei)}catch(t){nt.warn(t)}}},n.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null;var t=this.player_.controlBar,e=t&&t.subsCapsButton,n=t&&t.captionsButton;e?e.focus():n&&n.focus()},e}(_n);an.registerComponent("TextTrackSettings",Bi);var Fi=function(t){function e(e,n){var r,o=n.ResizeObserver||l.a.ResizeObserver;null===n.ResizeObserver&&(o=!1);var c=en({createEl:!o,reportTouchActivity:!1},n);return(r=t.call(this,e,c)||this).ResizeObserver=n.ResizeObserver||l.a.ResizeObserver,r.loadListener_=null,r.resizeObserver_=null,r.debouncedHandler_=function(t,e,n,r){var o;void 0===r&&(r=l.a);var c=function(){var l=this,c=arguments,h=function(){o=null,h=null,n||t.apply(l,c)};!o&&n&&t.apply(l,c),r.clearTimeout(o),o=r.setTimeout(h,e)};return c.cancel=function(){r.clearTimeout(o),o=null},c}((function(){r.resizeHandler()}),100,!1,_()(r)),o?(r.resizeObserver_=new r.ResizeObserver(r.debouncedHandler_),r.resizeObserver_.observe(e.el())):(r.loadListener_=function(){if(r.el_&&r.el_.contentWindow){var t=r.debouncedHandler_,e=r.unloadListener_=function(){Ie(this,"resize",t),Ie(this,"unload",e),e=null};je(r.el_.contentWindow,"unload",e),je(r.el_.contentWindow,"resize",t)}},r.one("load",r.loadListener_)),r}T()(e,t);var n=e.prototype;return n.createEl=function(){return t.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,t.prototype.dispose.call(this)},e}(an);an.registerComponent("ResizeManager",Fi);var zi={trackingThreshold:20,liveTolerance:15},qi=function(t){function e(e,n){var r,o=en(zi,n,{createEl:!1});return(r=t.call(this,e,o)||this).handleVisibilityChange_=function(t){return r.handleVisibilityChange(t)},r.trackLiveHandler_=function(){return r.trackLive_()},r.handlePlay_=function(t){return r.handlePlay(t)},r.handleFirstTimeupdate_=function(t){return r.handleFirstTimeupdate(t)},r.handleSeeked_=function(t){return r.handleSeeked(t)},r.seekToLiveEdge_=function(t){return r.seekToLiveEdge(t)},r.reset_(),r.on(r.player_,"durationchange",(function(t){return r.handleDurationchange(t)})),r.on(r.player_,"canplay",(function(){return r.toggleTracking()})),kt&&"hidden"in h.a&&"visibilityState"in h.a&&r.on(h.a,"visibilitychange",r.handleVisibilityChange_),r}T()(e,t);var n=e.prototype;return n.handleVisibilityChange=function(){this.player_.duration()===1/0&&(h.a.hidden?this.stopTracking():this.startTracking())},n.trackLive_=function(){var t=this.player_.seekable();if(t&&t.length){var e=Number(l.a.performance.now().toFixed(4)),n=-1===this.lastTime_?0:(e-this.lastTime_)/1e3;this.lastTime_=e,this.pastSeekEnd_=this.pastSeekEnd()+n;var r=this.liveCurrentTime(),o=this.player_.currentTime(),c=this.player_.paused()||this.seekedBehindLive_||Math.abs(r-o)>this.options_.liveTolerance;this.timeupdateSeen_&&r!==1/0||(c=!1),c!==this.behindLiveEdge_&&(this.behindLiveEdge_=c,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_,Re),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 t=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&t>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(){for(var t=this.player_.seekable(),e=[],i=t?t.length:0;i--;)e.push(t.end(i));return e.length?e.sort()[e.length-1]:1/0},n.seekableStart=function(){for(var t=this.player_.seekable(),e=[],i=t?t.length:0;i--;)e.push(t.start(i));return e.length?e.sort()[0]:0},n.liveWindow=function(){var t=this.liveCurrentTime();return t===1/0?0:t-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 t=this.seekableEnd();return-1!==this.lastSeekEnd_&&t!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=t,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(h.a,"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),t.prototype.dispose.call(this)},e}(an);an.registerComponent("LiveTracker",qi);var Hi,Vi=function(t){var e=t.el();if(e.hasAttribute("src"))return t.triggerSourceset(e.src),!0;var n=t.$$("source"),r=[],o="";if(!n.length)return!1;for(var i=0;i<n.length;i++){var l=n[i].src;l&&-1===r.indexOf(l)&&r.push(l)}return!!r.length&&(1===r.length&&(o=r[0]),t.triggerSourceset(o),!0)},Wi=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(t){var e=h.a.createElement(this.nodeName.toLowerCase());e.innerHTML=t;for(var n=h.a.createDocumentFragment();e.childNodes.length;)n.appendChild(e.childNodes[0]);return this.innerText="",l.a.Element.prototype.appendChild.call(this,n),this.innerHTML}}),Yi=function(t,e){for(var n={},i=0;i<t.length&&!((n=Object.getOwnPropertyDescriptor(t[i],e))&&n.set&&n.get);i++);return n.enumerable=!0,n.configurable=!0,n},Gi=function(t){var e=t.el();if(!e.resetSourceWatch_){var n={},r=function(t){return Yi([t.el(),l.a.HTMLMediaElement.prototype,l.a.Element.prototype,Wi],"innerHTML")}(t),o=function(n){return function(){for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];var c=n.apply(e,o);return Vi(t),c}};["append","appendChild","insertAdjacentHTML"].forEach((function(t){e[t]&&(n[t]=e[t],e[t]=o(n[t]))})),Object.defineProperty(e,"innerHTML",en(r,{set:o(r.set)})),e.resetSourceWatch_=function(){e.resetSourceWatch_=null,Object.keys(n).forEach((function(t){e[t]=n[t]})),Object.defineProperty(e,"innerHTML",r)},t.one("sourceset",e.resetSourceWatch_)}},Xi=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?Nn(l.a.Element.prototype.getAttribute.call(this,"src")):""},set:function(t){return l.a.Element.prototype.setAttribute.call(this,"src",t),t}}),Ki=function(t){if(t.featuresSourceset){var e=t.el();if(!e.resetSourceset_){var n=function(t){return Yi([t.el(),l.a.HTMLMediaElement.prototype,Xi],"src")}(t),r=e.setAttribute,o=e.load;Object.defineProperty(e,"src",en(n,{set:function(r){var o=n.set.call(e,r);return t.triggerSourceset(e.src),o}})),e.setAttribute=function(n,o){var l=r.call(e,n,o);return/src/i.test(n)&&t.triggerSourceset(e.src),l},e.load=function(){var n=o.call(e);return Vi(t)||(t.triggerSourceset(""),Gi(t)),n},e.currentSrc?t.triggerSourceset(e.currentSrc):Vi(t)||Gi(t),e.resetSourceset_=function(){e.resetSourceset_=null,e.load=o,e.setAttribute=r,Object.defineProperty(e,"src",n),e.resetSourceWatch_&&e.resetSourceWatch_()}}}},$i=function(t,e,n,r){void 0===r&&(r=!0);var o=function(n){return Object.defineProperty(t,e,{value:n,enumerable:!0,writable:!0})},l={configurable:!0,enumerable:!0,get:function(){var t=n();return o(t),t}};return r&&(l.set=o),Object.defineProperty(t,e,l)},Qi=function(t){function e(e,n){var r;r=t.call(this,e,n)||this;var source=e.source,o=!1;if(r.featuresVideoFrameCallback=r.featuresVideoFrameCallback&&"VIDEO"===r.el_.tagName,source&&(r.el_.currentSrc!==source.src||e.tag&&3===e.tag.initNetworkState_)?r.setSource(source):r.handleLateInit_(r.el_),e.enableSourceset&&r.setupSourcesetHandling_(),r.isScrubbing_=!1,r.el_.hasChildNodes()){for(var l=r.el_.childNodes,c=l.length,h=[];c--;){var d=l[c];"track"===d.nodeName.toLowerCase()&&(r.featuresNativeTextTracks?(r.remoteTextTrackEls().addTrackElement_(d),r.remoteTextTracks().addTrack(d.track),r.textTracks().addTrack(d.track),o||r.el_.hasAttribute("crossorigin")||!Un(d.src)||(o=!0)):h.push(d))}for(var i=0;i<h.length;i++)r.el_.removeChild(h[i])}return r.proxyNativeTracks_(),r.featuresNativeTextTracks&&o&&nt.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),r.restoreMetadataTracksInIOSNativePlayer_(),(Ot||It||wt)&&!0===e.nativeControlsForTouch&&r.setControls(!0),r.proxyWebkitFullscreen_(),r.triggerReady(),r}T()(e,t);var n=e.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),e.disposeMediaElement(this.el_),this.options_=null,t.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){Ki(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){var t,e=this.textTracks(),n=function(){t=[];for(var i=0;i<e.length;i++){var track=e[i];"metadata"===track.kind&&t.push({track:track,storedMode:track.mode})}};n(),e.addEventListener("change",n),this.on("dispose",(function(){return e.removeEventListener("change",n)}));var r=function n(){for(var i=0;i<t.length;i++){var r=t[i];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}e.removeEventListener("change",n)};this.on("webkitbeginfullscreen",(function(){e.removeEventListener("change",n),e.removeEventListener("change",r),e.addEventListener("change",r)})),this.on("webkitendfullscreen",(function(){e.removeEventListener("change",n),e.addEventListener("change",n),e.removeEventListener("change",r)}))},n.overrideNative_=function(t,e){var n=this;if(e===this["featuresNative"+t+"Tracks"]){var r=t.toLowerCase();this[r+"TracksListeners_"]&&Object.keys(this[r+"TracksListeners_"]).forEach((function(t){n.el()[r+"Tracks"].removeEventListener(t,n[r+"TracksListeners_"][t])})),this["featuresNative"+t+"Tracks"]=!e,this[r+"TracksListeners_"]=null,this.proxyNativeTracksForType_(r)}},n.overrideNativeAudioTracks=function(t){this.overrideNative_("Audio",t)},n.overrideNativeVideoTracks=function(t){this.overrideNative_("Video",t)},n.proxyNativeTracksForType_=function(t){var e=this,n=Yn[t],r=this.el()[n.getterName],o=this[n.getterName]();if(this["featuresNative"+n.capitalName+"Tracks"]&&r&&r.addEventListener){var l={change:function(n){var r={type:"change",target:o,currentTarget:o,srcElement:o};o.trigger(r),"text"===t&&e[Gn.remoteText.getterName]().trigger(r)},addtrack:function(t){o.addTrack(t.track)},removetrack:function(t){o.removeTrack(t.track)}},c=function(){for(var t=[],i=0;i<o.length;i++){for(var e=!1,n=0;n<r.length;n++)if(r[n]===o[i]){e=!0;break}e||t.push(o[i])}for(;t.length;)o.removeTrack(t.shift())};this[n.getterName+"Listeners_"]=l,Object.keys(l).forEach((function(t){var n=l[t];r.addEventListener(t,n),e.on("dispose",(function(e){return r.removeEventListener(t,n)}))})),this.on("loadstart",c),this.on("dispose",(function(t){return e.off("loadstart",c)}))}},n.proxyNativeTracks_=function(){var t=this;Yn.names.forEach((function(e){t.proxyNativeTracksForType_(e)}))},n.createEl=function(){var t=this.options_.tag;if(!t||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(t){var n=t.cloneNode(!0);t.parentNode&&t.parentNode.insertBefore(n,t),e.disposeMediaElement(t),t=n}else{t=h.a.createElement("video");var r=en({},this.options_.tag&&Kt(this.options_.tag));Ot&&!0===this.options_.nativeControlsForTouch||delete r.controls,Xt(t,ut(r,{id:this.options_.techId,class:"vjs-tech"}))}t.playerId=this.options_.playerId}void 0!==this.options_.preload&&Qt(t,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(t.disablePictureInPicture=this.options_.disablePictureInPicture);for(var o=["loop","muted","playsinline","autoplay"],i=0;i<o.length;i++){var l=o[i],c=this.options_[l];void 0!==c&&(c?Qt(t,l,l):Jt(t,l),t[l]=c)}return t},n.handleLateInit_=function(t){if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var e=!1,n=function(){e=!0};this.on("loadstart",n);var r=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",r),void this.ready((function(){this.off("loadstart",n),this.off("loadedmetadata",r),e||this.trigger("loadstart")}))}var o=["loadstart"];o.push("loadedmetadata"),t.readyState>=2&&o.push("loadeddata"),t.readyState>=3&&o.push("canplay"),t.readyState>=4&&o.push("canplaythrough"),this.ready((function(){o.forEach((function(t){this.trigger(t)}),this)}))}},n.setScrubbing=function(t){this.isScrubbing_=t},n.scrubbing=function(){return this.isScrubbing_},n.setCurrentTime=function(t){try{this.isScrubbing_&&this.el_.fastSeek&&Dt?this.el_.fastSeek(t):this.el_.currentTime=t}catch(t){nt(t,"Video is not ready. (Video.js)")}},n.duration=function(){var t=this;if(this.el_.duration===1/0&&bt&&St&&0===this.el_.currentTime){return this.on("timeupdate",(function e(){t.el_.currentTime>0&&(t.el_.duration===1/0&&t.trigger("durationchange"),t.off("timeupdate",e))})),NaN}return this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var t=this;if("webkitDisplayingFullscreen"in this.el_){var e=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",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",(function(){t.off("webkitbeginfullscreen",n),t.off("webkitendfullscreen",e)}))}},n.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var t=l.a.navigator&&l.a.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},n.enterFullScreen=function(){var video=this.el_;if(video.paused&&video.networkState<=video.HAVE_METADATA)mn(this.el_.play()),this.setTimeout((function(){video.pause();try{video.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}}),0);else try{video.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(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):t.prototype.requestVideoFrameCallback.call(this,e)},n.cancelVideoFrameCallback=function(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):t.prototype.cancelVideoFrameCallback.call(this,e)},n.src=function(t){if(void 0===t)return this.el_.src;this.setSrc(t)},n.reset=function(){e.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(t){this.el_.controls=!!t},n.addTextTrack=function(e,label,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,label,n):t.prototype.addTextTrack.call(this,e,label,n)},n.createRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return t.prototype.createRemoteTextTrack.call(this,e);var n=h.a.createElement("track");return e.kind&&(n.kind=e.kind),e.label&&(n.label=e.label),(e.language||e.srclang)&&(n.srclang=e.language||e.srclang),e.default&&(n.default=e.default),e.id&&(n.id=e.id),e.src&&(n.src=e.src),n},n.addRemoteTextTrack=function(e,n){var r=t.prototype.addRemoteTextTrack.call(this,e,n);return this.featuresNativeTextTracks&&this.el().appendChild(r),r},n.removeRemoteTextTrack=function(track){if(t.prototype.removeRemoteTextTrack.call(this,track),this.featuresNativeTextTracks)for(var e=this.$$("track"),i=e.length;i--;)track!==e[i]&&track!==e[i].track||this.el().removeChild(e[i])},n.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var t={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(t.droppedVideoFrames=this.el().webkitDroppedFrameCount,t.totalVideoFrames=this.el().webkitDecodedFrameCount),l.a.performance&&"function"==typeof l.a.performance.now?t.creationTime=l.a.performance.now():l.a.performance&&l.a.performance.timing&&"number"==typeof l.a.performance.timing.navigationStart&&(t.creationTime=l.a.Date.now()-l.a.performance.timing.navigationStart),t},e}(Kn);$i(Qi,"TEST_VID",(function(){if(Rt()){var video=h.a.createElement("video"),track=h.a.createElement("track");return track.kind="captions",track.srclang="en",track.label="English",video.appendChild(track),video}})),Qi.isSupported=function(){try{Qi.TEST_VID.volume=.5}catch(t){return!1}return!(!Qi.TEST_VID||!Qi.TEST_VID.canPlayType)},Qi.canPlayType=function(t){return Qi.TEST_VID.canPlayType(t)},Qi.canPlaySource=function(t,e){return Qi.canPlayType(t.type)},Qi.canControlVolume=function(){try{var t=Qi.TEST_VID.volume;Qi.TEST_VID.volume=t/2+.1;var e=t!==Qi.TEST_VID.volume;return e&&Lt?(l.a.setTimeout((function(){Qi&&Qi.prototype&&(Qi.prototype.featuresVolumeControl=t!==Qi.TEST_VID.volume)})),!1):e}catch(t){return!1}},Qi.canMuteVolume=function(){try{var t=Qi.TEST_VID.muted;return Qi.TEST_VID.muted=!t,Qi.TEST_VID.muted?Qt(Qi.TEST_VID,"muted","muted"):Jt(Qi.TEST_VID,"muted"),t!==Qi.TEST_VID.muted}catch(t){return!1}},Qi.canControlPlaybackRate=function(){if(bt&&St&&Et<58)return!1;try{var t=Qi.TEST_VID.playbackRate;return Qi.TEST_VID.playbackRate=t/2+.1,t!==Qi.TEST_VID.playbackRate}catch(t){return!1}},Qi.canOverrideAttributes=function(){try{var t=function(){};Object.defineProperty(h.a.createElement("video"),"src",{get:t,set:t}),Object.defineProperty(h.a.createElement("audio"),"src",{get:t,set:t}),Object.defineProperty(h.a.createElement("video"),"innerHTML",{get:t,set:t}),Object.defineProperty(h.a.createElement("audio"),"innerHTML",{get:t,set:t})}catch(t){return!1}return!0},Qi.supportsNativeTextTracks=function(){return Dt||Lt&&St},Qi.supportsNativeVideoTracks=function(){return!(!Qi.TEST_VID||!Qi.TEST_VID.videoTracks)},Qi.supportsNativeAudioTracks=function(){return!(!Qi.TEST_VID||!Qi.TEST_VID.audioTracks)},Qi.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(t){var e=t[0],n=t[1];$i(Qi.prototype,e,(function(){return Qi[n]()}),!0)})),Qi.prototype.featuresVolumeControl=Qi.canControlVolume(),Qi.prototype.movingMediaElementInDOM=!Lt,Qi.prototype.featuresFullscreenResize=!0,Qi.prototype.featuresProgressEvents=!0,Qi.prototype.featuresTimeupdateEvents=!0,Qi.prototype.featuresVideoFrameCallback=!(!Qi.TEST_VID||!Qi.TEST_VID.requestVideoFrameCallback),Qi.patchCanPlayType=function(){_t>=4&&!Tt&&!St&&(Hi=Qi.TEST_VID&&Qi.TEST_VID.constructor.prototype.canPlayType,Qi.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(t)?"maybe":Hi.call(this,t)})},Qi.unpatchCanPlayType=function(){var t=Qi.TEST_VID.constructor.prototype.canPlayType;return Hi&&(Qi.TEST_VID.constructor.prototype.canPlayType=Hi),t},Qi.patchCanPlayType(),Qi.disposeMediaElement=function(t){if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},Qi.resetMediaElement=function(t){if(t){for(var e=t.querySelectorAll("source"),i=e.length;i--;)t.removeChild(e[i]);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(t){Qi.prototype[t]=function(){return this.el_[t]||this.el_.hasAttribute(t)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(t){Qi.prototype["set"+tn(t)]=function(e){this.el_[t]=e,e?this.el_.setAttribute(t,t):this.el_.removeAttribute(t)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach((function(t){Qi.prototype[t]=function(){return this.el_[t]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(t){Qi.prototype["set"+tn(t)]=function(e){this.el_[t]=e}})),["pause","load","play"].forEach((function(t){Qi.prototype[t]=function(){return this.el_[t]()}})),Kn.withSourceHandlers(Qi),Qi.nativeSourceHandler={},Qi.nativeSourceHandler.canPlayType=function(t){try{return Qi.TEST_VID.canPlayType(t)}catch(t){return""}},Qi.nativeSourceHandler.canHandleSource=function(source,t){if(source.type)return Qi.nativeSourceHandler.canPlayType(source.type);if(source.src){var e=Rn(source.src);return Qi.nativeSourceHandler.canPlayType("video/"+e)}return""},Qi.nativeSourceHandler.handleSource=function(source,t,e){t.setSrc(source.src)},Qi.nativeSourceHandler.dispose=function(){},Qi.registerSourceHandler(Qi.nativeSourceHandler),Kn.registerTech("Html5",Qi);var Ji=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Zi={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},ts=["tiny","xsmall","small","medium","large","xlarge","huge"],es={};ts.forEach((function(t){var e="x"===t.charAt(0)?"x-"+t.substring(1):t;es[t]="vjs-layout-"+e}));var ns={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},rs=function(t){function e(n,r,o){var l;if(n.id=n.id||r.id||"vjs_video_"+Te(),(r=ut(e.getTagSettings(n),r)).initChildren=!1,r.createEl=!1,r.evented=!1,r.reportTouchActivity=!1,!r.language)if("function"==typeof n.closest){var c=n.closest("[lang]");c&&c.getAttribute&&(r.language=c.getAttribute("lang"))}else for(var element=n;element&&1===element.nodeType;){if(Kt(element).hasOwnProperty("lang")){r.language=element.getAttribute("lang");break}element=element.parentNode}if((l=t.call(this,null,r,o)||this).boundDocumentFullscreenChange_=function(t){return l.documentFullscreenChange_(t)},l.boundFullWindowOnEscKey_=function(t){return l.fullWindowOnEscKey(t)},l.boundUpdateStyleEl_=function(t){return l.updateStyleEl_(t)},l.boundApplyInitTime_=function(t){return l.applyInitTime_(t)},l.boundUpdateCurrentBreakpoint_=function(t){return l.updateCurrentBreakpoint_(t)},l.boundHandleTechClick_=function(t){return l.handleTechClick_(t)},l.boundHandleTechDoubleClick_=function(t){return l.handleTechDoubleClick_(t)},l.boundHandleTechTouchStart_=function(t){return l.handleTechTouchStart_(t)},l.boundHandleTechTouchMove_=function(t){return l.handleTechTouchMove_(t)},l.boundHandleTechTouchEnd_=function(t){return l.handleTechTouchEnd_(t)},l.boundHandleTechTap_=function(t){return l.handleTechTap_(t)},l.isFullscreen_=!1,l.log=it(l.id_),l.fsApi_=Q,l.isPosterFromTech_=!1,l.queuedCallbacks_=[],l.isReady_=!1,l.hasStarted_=!1,l.userActive_=!1,l.debugEnabled_=!1,l.audioOnlyMode_=!1,l.audioPosterMode_=!1,l.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!l.options_||!l.options_.techOrder||!l.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(l.tag=n,l.tagAttributes=n&&Kt(n),l.language(l.options_.language),r.languages){var d={};Object.getOwnPropertyNames(r.languages).forEach((function(t){d[t.toLowerCase()]=r.languages[t]})),l.languages_=d}else l.languages_=e.prototype.options_.languages;l.resetCache_(),l.poster_=r.poster||"",l.controls_=!!r.controls,n.controls=!1,n.removeAttribute("controls"),l.changingSrc_=!1,l.playCallbacks_=[],l.playTerminatedQueue_=[],n.hasAttribute("autoplay")?l.autoplay(!0):l.autoplay(l.options_.autoplay),r.plugins&&Object.keys(r.plugins).forEach((function(t){if("function"!=typeof l[t])throw new Error('plugin "'+t+'" does not exist')})),l.scrubbing_=!1,l.el_=l.createEl(),$e(_()(l),{eventBusKey:"el_"}),l.fsApi_.requestFullscreen&&(je(h.a,l.fsApi_.fullscreenchange,l.boundDocumentFullscreenChange_),l.on(l.fsApi_.fullscreenchange,l.boundDocumentFullscreenChange_)),l.fluid_&&l.on(["playerreset","resize"],l.boundUpdateStyleEl_);var f=en(l.options_);r.plugins&&Object.keys(r.plugins).forEach((function(t){l[t](r.plugins[t])})),r.debug&&l.debug(!0),l.options_.playerOptions=f,l.middleware_=[],l.playbackRates(r.playbackRates),l.initChildren(),l.isAudio("audio"===n.nodeName.toLowerCase()),l.controls()?l.addClass("vjs-controls-enabled"):l.addClass("vjs-controls-disabled"),l.el_.setAttribute("role","region"),l.isAudio()?l.el_.setAttribute("aria-label",l.localize("Audio Player")):l.el_.setAttribute("aria-label",l.localize("Video Player")),l.isAudio()&&l.addClass("vjs-audio"),l.flexNotSupported_()&&l.addClass("vjs-no-flex"),Ot&&l.addClass("vjs-touch-enabled"),Lt||l.addClass("vjs-workinghover"),e.players[l.id_]=_()(l);var m=G.split(".")[0];return l.addClass("vjs-v"+m),l.userActive(!0),l.reportUserActivity(),l.one("play",(function(t){return l.listenForUserActivity_(t)})),l.on("stageclick",(function(t){return l.handleStageClick_(t)})),l.on("keydown",(function(t){return l.handleKeyDown(t)})),l.on("languagechange",(function(t){return l.handleLanguagechange(t)})),l.breakpoints(l.options_.breakpoints),l.responsive(l.options_.responsive),l.on("ready",(function(){l.audioPosterMode(l.options_.audioPosterMode),l.audioOnlyMode(l.options_.audioOnlyMode)})),l}T()(e,t);var n=e.prototype;return n.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),Ie(h.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),Ie(h.a,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),e.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),Qn[this.id()]=null,Xn.names.forEach((function(t){var e=Xn[t],r=n[e.getterName]();r&&r.off&&r.off()})),t.prototype.dispose.call(this,{restoreEl:this.options_.restoreEl})},n.createEl=function(){var e,n=this.tag,r=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),o="video-js"===this.tag.tagName.toLowerCase();r?e=this.el_=n.parentNode:o||(e=this.el_=t.prototype.createEl.call(this,"div"));var c=Kt(n);if(o){for(e=this.el_=n,n=this.tag=h.a.createElement("video");e.children.length;)n.appendChild(e.firstChild);Vt(e,"video-js")||Wt(e,"video-js"),e.appendChild(n),r=this.playerElIngest_=e,Object.keys(e).forEach((function(t){try{n[t]=e[t]}catch(t){}}))}if(n.setAttribute("tabindex","-1"),c.tabindex="-1",(kt||St&&Ct)&&(n.setAttribute("role","application"),c.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in c&&delete c.width,"height"in c&&delete c.height,Object.getOwnPropertyNames(c).forEach((function(t){o&&"class"===t||e.setAttribute(t,c[t]),o&&n.setAttribute(t,c[t])})),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=e.player=this,this.addClass("vjs-paused"),!0!==l.a.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=be("vjs-styles-dimensions");var d=he(".vjs-styles-defaults"),head=he("head");head.insertBefore(this.styleEl_,d?d.nextSibling:head.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 f=n.getElementsByTagName("a"),i=0;i<f.length;i++){var m=f.item(i);Wt(m,"vjs-hidden"),m.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!r&&n.parentNode.insertBefore(e,n),Ht(n,e),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=e,e},n.crossOrigin=function(t){if(!t)return this.techGet_("crossOrigin");"anonymous"===t||"use-credentials"===t?this.techCall_("setCrossOrigin",t):nt.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+t+'"')},n.width=function(t){return this.dimension("width",t)},n.height=function(t){return this.dimension("height",t)},n.dimension=function(t,e){var n=t+"_";if(void 0===e)return this[n]||0;if(""===e||"auto"===e)return this[n]=void 0,void this.updateStyleEl_();var r=parseFloat(e);isNaN(r)?nt.error('Improper value "'+e+'" supplied for for '+t):(this[n]=r,this.updateStyleEl_())},n.fluid=function(t){var e,n,r=this;if(void 0===t)return!!this.fluid_;this.fluid_=!!t,qe(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),t?(this.addClass("vjs-fluid"),this.fill(!1),n=function(){r.on(["playerreset","resize"],r.boundUpdateStyleEl_)},qe(e=this)?n():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(n))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},n.fill=function(t){if(void 0===t)return!!this.fill_;this.fill_=!!t,t?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},n.aspectRatio=function(t){if(void 0===t)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()},n.updateStyleEl_=function(){if(!0!==l.a.VIDEOJS_NO_DYNAMIC_STYLE){var t,e,n,r=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),o=r[1]/r[0];t=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/o:this.videoWidth()||300,e=void 0!==this.height_?this.height_:t*o,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),_e(this.styleEl_,"\n ."+n+" {\n width: "+t+"px;\n height: "+e+"px;\n }\n\n ."+n+".vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: "+100*o+"%;\n }\n ")}else{var c="number"==typeof this.width_?this.width_:this.options_.width,h="number"==typeof this.height_?this.height_:this.options_.height,d=this.tech_&&this.tech_.el();d&&(c>=0&&(d.width=c),h>=0&&(d.height=h))}},n.loadTech_=function(t,source){var e=this;this.tech_&&this.unloadTech_();var n=tn(t),r=t.charAt(0).toLowerCase()+t.slice(1);"Html5"!==n&&this.tag&&(Kn.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;var o=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(o=!1);var l={source:source,autoplay:o,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};Xn.names.forEach((function(t){var n=Xn[t];l[n.getterName]=e[n.privateName]})),ut(l,this.options_[n]),ut(l,this.options_[r]),ut(l,this.options_[t.toLowerCase()]),this.tag&&(l.tag=this.tag),source&&source.src===this.cache_.src&&this.cache_.currentTime>0&&(l.startTime=this.cache_.currentTime);var c=Kn.getTech(t);if(!c)throw new Error("No Tech named '"+n+"' exists! '"+n+"' should be registered using videojs.registerTech()'");this.tech_=new c(l),this.tech_.ready(Ue(this,this.handleTechReady_),!0),yn(this.textTracksJson_||[],this.tech_),Ji.forEach((function(t){e.on(e.tech_,t,(function(n){return e["handleTech"+tn(t)+"_"](n)}))})),Object.keys(Zi).forEach((function(t){e.on(e.tech_,t,(function(n){0===e.tech_.playbackRate()&&e.tech_.seeking()?e.queuedCallbacks_.push({callback:e["handleTech"+Zi[t]+"_"].bind(e),event:n}):e["handleTech"+Zi[t]+"_"](n)}))})),this.on(this.tech_,"loadstart",(function(t){return e.handleTechLoadStart_(t)})),this.on(this.tech_,"sourceset",(function(t){return e.handleTechSourceset_(t)})),this.on(this.tech_,"waiting",(function(t){return e.handleTechWaiting_(t)})),this.on(this.tech_,"ended",(function(t){return e.handleTechEnded_(t)})),this.on(this.tech_,"seeking",(function(t){return e.handleTechSeeking_(t)})),this.on(this.tech_,"play",(function(t){return e.handleTechPlay_(t)})),this.on(this.tech_,"firstplay",(function(t){return e.handleTechFirstPlay_(t)})),this.on(this.tech_,"pause",(function(t){return e.handleTechPause_(t)})),this.on(this.tech_,"durationchange",(function(t){return e.handleTechDurationChange_(t)})),this.on(this.tech_,"fullscreenchange",(function(t,data){return e.handleTechFullscreenChange_(t,data)})),this.on(this.tech_,"fullscreenerror",(function(t,n){return e.handleTechFullscreenError_(t,n)})),this.on(this.tech_,"enterpictureinpicture",(function(t){return e.handleTechEnterPictureInPicture_(t)})),this.on(this.tech_,"leavepictureinpicture",(function(t){return e.handleTechLeavePictureInPicture_(t)})),this.on(this.tech_,"error",(function(t){return e.handleTechError_(t)})),this.on(this.tech_,"posterchange",(function(t){return e.handleTechPosterChange_(t)})),this.on(this.tech_,"textdata",(function(t){return e.handleTechTextData_(t)})),this.on(this.tech_,"ratechange",(function(t){return e.handleTechRateChange_(t)})),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"===n&&this.tag||Ht(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},n.unloadTech_=function(){var t=this;Xn.names.forEach((function(e){var n=Xn[e];t[n.privateName]=t[n.getterName]()})),this.textTracksJson_=vn(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},n.tech=function(t){return void 0===t&&nt.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(t){var e=this;if(this.tech_&&"string"==typeof t){var n,r=function(){var t=e.muted();e.muted(!0);var n=function(){e.muted(t)};e.playTerminatedQueue_.push(n);var r=e.play();if(pn(r))return r.catch((function(t){throw n(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(t||""))}))};if("any"!==t||this.muted()?n="muted"!==t||this.muted()?this.play():r():pn(n=this.play())&&(n=n.catch(r)),pn(n))return n.then((function(){e.trigger({type:"autoplay-success",autoplay:t})})).catch((function(){e.trigger({type:"autoplay-failure",autoplay:t})}))}},n.updateSourceCaches_=function(t){void 0===t&&(t="");var e=t,n="";"string"!=typeof e&&(e=t.src,n=t.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],e&&!n&&(n=function(t,e){if(!e)return"";if(t.cache_.source.src===e&&t.cache_.source.type)return t.cache_.source.type;var n=t.cache_.sources.filter((function(s){return s.src===e}));if(n.length)return n[0].type;for(var r=t.$$("source"),i=0;i<r.length;i++){var s=r[i];if(s.type&&s.src&&s.src===e)return s.type}return ur(e)}(this,e)),this.cache_.source=en({},t,{src:e,type:n});for(var r=this.cache_.sources.filter((function(s){return s.src&&s.src===e})),o=[],l=this.$$("source"),c=[],i=0;i<l.length;i++){var h=Kt(l[i]);o.push(h),h.src&&h.src===e&&c.push(h.src)}c.length&&!r.length?this.cache_.sources=o:r.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=e},n.handleTechSourceset_=function(t){var e=this;if(!this.changingSrc_){var n=function(t){return e.updateSourceCaches_(t)},r=this.currentSource().src,o=t.src;r&&!/^blob:/.test(r)&&/^blob:/.test(o)&&(!this.lastSource_||this.lastSource_.tech!==o&&this.lastSource_.player!==r)&&(n=function(){}),n(o),t.src||this.tech_.any(["sourceset","loadstart"],(function(t){if("sourceset"!==t.type){var n=e.techGet("currentSrc");e.lastSource_.tech=n,e.updateSourceCaches_(n)}}))}this.lastSource_={player:this.currentSource().src,tech:t.src},this.trigger({src:t.src,type:"sourceset"})},n.hasStarted=function(t){if(void 0===t)return this.hasStarted_;t!==this.hasStarted_&&(this.hasStarted_=t,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(t){return t.callback(t.event)})),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},n.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting");var e=this.currentTime();this.on("timeupdate",(function n(){e!==t.currentTime()&&(t.removeClass("vjs-waiting"),t.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&&(nt.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(t){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,t):this.paused()?mn(this.play()):this.pause()))},n.handleTechDoubleClick_=function(t){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),(function(e){return e.contains(t.target)}))||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,t):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(t){t.cancelable&&t.preventDefault()},n.handleStageClick_=function(){this.reportUserActivity()},n.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},n.documentFullscreenChange_=function(t){var e=t.target.player;if(!e||e===this){var n=this.el(),r=h.a[this.fsApi_.fullscreenElement]===n;!r&&n.matches?r=n.matches(":"+this.fsApi_.fullscreen):!r&&n.msMatchesSelector&&(r=n.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(r)}},n.handleTechFullscreenChange_=function(t,data){var e=this;data&&(data.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",(function(){e.removeClass("vjs-ios-native-fs")}))),this.isFullscreen(data.isFullscreen))},n.handleTechFullscreenError_=function(t,e){this.trigger("fullscreenerror",e)},n.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},n.handleTechEnterPictureInPicture_=function(t){this.isInPictureInPicture(!0)},n.handleTechLeavePictureInPicture_=function(t){this.isInPictureInPicture(!1)},n.handleTechError_=function(){var t=this.tech_.error();this.error(t)},n.handleTechTextData_=function(){var data=null;arguments.length>1&&(data=arguments[1]),this.trigger("textdata",data)},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(t,e){this.ready((function(){if(t in rr)return function(t,e,n,r){return e[n](t.reduce(sr(n),r))}(this.middleware_,this.tech_,t,e);if(t in ir)return er(this.middleware_,this.tech_,t,e);try{this.tech_&&this.tech_[t](e)}catch(t){throw nt(t),t}}),!0)},n.techGet_=function(t){if(this.tech_&&this.tech_.isReady_){if(t in nr)return function(t,e,n){return t.reduceRight(sr(n),e[n]())}(this.middleware_,this.tech_,t);if(t in ir)return er(this.middleware_,this.tech_,t);try{return this.tech_[t]()}catch(e){if(void 0===this.tech_[t])throw nt("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e),e;if("TypeError"===e.name)throw nt("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1,e;throw nt(e),e}}},n.play=function(){var t=this,e=this.options_.Promise||l.a.Promise;return e?new e((function(e){t.play_(e)})):this.play_()},n.play_=function(t){var e=this;void 0===t&&(t=mn),this.playCallbacks_.push(t);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc())),r=Boolean(Dt||Lt);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n)return this.waitToPlay_=function(t){e.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(!n&&r&&this.load());var o=this.techGet_("play");r&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),null===o?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(o)},n.runPlayTerminatedQueue_=function(){var t=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],t.forEach((function(q){q()}))},n.runPlayCallbacks_=function(t){var e=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],e.forEach((function(e){e(t)}))},n.pause=function(){this.techCall_("pause")},n.paused=function(){return!1!==this.techGet_("paused")},n.played=function(){return this.techGet_("played")||cn(0,0)},n.scrubbing=function(t){if(void 0===t)return this.scrubbing_;this.scrubbing_=!!t,this.techCall_("setScrubbing",this.scrubbing_),t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},n.currentTime=function(t){return void 0!==t?(t<0&&(t=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",t),void(this.cache_.initTime=0)):(this.cache_.initTime=t,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(t){if(void 0===t)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(t=parseFloat(t))<0&&(t=1/0),t!==this.cache_.duration&&(this.cache_.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(t)||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 t=this.techGet_("buffered");return t&&t.length||(t=cn(0,0)),t},n.bufferedPercent=function(){return hn(this.buffered(),this.duration())},n.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),n=t.end(t.length-1);return n>e&&(n=e),n},n.volume=function(t){var e;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),void(e>0&&this.lastVolume_(e))):(e=parseFloat(this.techGet_("volume")),isNaN(e)?1:e)},n.muted=function(t){if(void 0===t)return this.techGet_("muted")||!1;this.techCall_("setMuted",t)},n.defaultMuted=function(t){return void 0!==t?this.techCall_("setDefaultMuted",t):this.techGet_("defaultMuted")||!1},n.lastVolume_=function(t){if(void 0===t||0===t)return this.cache_.lastVolume;this.cache_.lastVolume=t},n.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},n.isFullscreen=function(t){if(void 0!==t){var e=this.isFullscreen_;return this.isFullscreen_=Boolean(t),this.isFullscreen_!==e&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},n.requestFullscreen=function(t){var e=this.options_.Promise||l.a.Promise;if(e){var n=this;return new e((function(e,r){function o(){n.off("fullscreenerror",c),n.off("fullscreenchange",l)}function l(){o(),e()}function c(t,e){o(),r(e)}n.one("fullscreenchange",l),n.one("fullscreenerror",c);var h=n.requestFullscreenHelper_(t);h&&(h.then(o,o),h.then(e,r))}))}return this.requestFullscreenHelper_()},n.requestFullscreenHelper_=function(t){var e,n=this;if(this.fsApi_.prefixed||(e=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==t&&(e=t)),this.fsApi_.requestFullscreen){var r=this.el_[this.fsApi_.requestFullscreen](e);return r&&r.then((function(){return n.isFullscreen(!0)}),(function(){return n.isFullscreen(!1)})),r}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},n.exitFullscreen=function(){var t=this.options_.Promise||l.a.Promise;if(t){var e=this;return new t((function(t,n){function r(){e.off("fullscreenerror",l),e.off("fullscreenchange",o)}function o(){r(),t()}function l(t,e){r(),n(e)}e.one("fullscreenchange",o),e.one("fullscreenerror",l);var c=e.exitFullscreenHelper_();c&&(c.then(r,r),c.then(t,n))}))}return this.exitFullscreenHelper_()},n.exitFullscreenHelper_=function(){var t=this;if(this.fsApi_.requestFullscreen){var e=h.a[this.fsApi_.exitFullscreen]();return e&&mn(e.then((function(){return t.isFullscreen(!1)}))),e}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},n.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=h.a.documentElement.style.overflow,je(h.a,"keydown",this.boundFullWindowOnEscKey_),h.a.documentElement.style.overflow="hidden",Wt(h.a.body,"vjs-full-window"),this.trigger("enterFullWindow")},n.fullWindowOnEscKey=function(t){v.a.isEventKey(t,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},n.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,Ie(h.a,"keydown",this.boundFullWindowOnEscKey_),h.a.documentElement.style.overflow=this.docOrigOverflow,Yt(h.a.body,"vjs-full-window"),this.trigger("exitFullWindow")},n.disablePictureInPicture=function(t){if(void 0===t)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",t),this.options_.disablePictureInPicture=t,this.trigger("disablepictureinpicturechanged")},n.isInPictureInPicture=function(t){return void 0!==t?(this.isInPictureInPicture_=!!t,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},n.requestPictureInPicture=function(){if("pictureInPictureEnabled"in h.a&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},n.exitPictureInPicture=function(){if("pictureInPictureEnabled"in h.a)return h.a.exitPictureInPicture()},n.handleKeyDown=function(t){var e=this.options_.userActions;if(e&&e.hotkeys){(function(t){var e=t.tagName.toLowerCase();if(t.isContentEditable)return!0;if("input"===e)return-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(t.type);return-1!==["textarea"].indexOf(e)})(this.el_.ownerDocument.activeElement)||("function"==typeof e.hotkeys?e.hotkeys.call(this,t):this.handleHotkeys(t))}},n.handleHotkeys=function(t){var e=this.options_.userActions?this.options_.userActions.hotkeys:{},n=e.fullscreenKey,r=void 0===n?function(t){return v.a.isEventKey(t,"f")}:n,o=e.muteKey,l=void 0===o?function(t){return v.a.isEventKey(t,"m")}:o,c=e.playPauseKey,d=void 0===c?function(t){return v.a.isEventKey(t,"k")||v.a.isEventKey(t,"Space")}:c;if(r.call(this,t)){t.preventDefault(),t.stopPropagation();var f=an.getComponent("FullscreenToggle");!1!==h.a[this.fsApi_.fullscreenEnabled]&&f.prototype.handleClick.call(this,t)}else if(l.call(this,t)){t.preventDefault(),t.stopPropagation(),an.getComponent("MuteToggle").prototype.handleClick.call(this,t)}else if(d.call(this,t)){t.preventDefault(),t.stopPropagation(),an.getComponent("PlayToggle").prototype.handleClick.call(this,t)}},n.canPlayType=function(t){for(var e,i=0,n=this.options_.techOrder;i<n.length;i++){var r=n[i],o=Kn.getTech(r);if(o||(o=an.getComponent(r)),o){if(o.isSupported()&&(e=o.canPlayType(t)))return e}else nt.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},n.selectSource=function(t){var e,n=this,r=this.options_.techOrder.map((function(t){return[t,Kn.getTech(t)]})).filter((function(t){var e=t[0],n=t[1];return n?n.isSupported():(nt.error('The "'+e+'" tech is undefined. Skipped browser support check for that tech.'),!1)})),o=function(t,e,n){var r;return t.some((function(t){return e.some((function(e){if(r=n(t,e))return!0}))})),r},l=function(t,source){var e=t[0];if(t[1].canPlaySource(source,n.options_[e.toLowerCase()]))return{source:source,tech:e}};return(this.options_.sourceOrder?o(t,r,(e=l,function(a,b){return e(b,a)})):o(r,t,l))||!1},n.handleSrc_=function(source,t){var e=this;if(void 0===source)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var n=lr(source);if(n.length){if(this.changingSrc_=!0,t||(this.cache_.sources=n),this.updateSourceCaches_(n[0]),Zn(this,n[0],(function(r,o){var l,c;if(e.middleware_=o,t||(e.cache_.sources=n),e.updateSourceCaches_(r),e.src_(r))return n.length>1?e.handleSrc_(n.slice(1)):(e.changingSrc_=!1,e.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0),void e.triggerReady());l=o,c=e.tech_,l.forEach((function(t){return t.setTech&&t.setTech(c)}))})),this.options_.retryOnError&&n.length>1){var r=function(){e.error(null),e.handleSrc_(n.slice(1),!0)},o=function(){e.off("error",r)};this.one("error",r),this.one("playing",o),this.resetRetryOnError_=function(){e.off("error",r),e.off("playing",o)}}}else this.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0)},n.src=function(source){return this.handleSrc_(source,!1)},n.src_=function(source){var t,e,n=this,r=this.selectSource([source]);return!r||(t=r.tech,e=this.techName_,tn(t)!==tn(e)?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready((function(){n.changingSrc_=!1})),!1):(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",source):this.techCall_("src",source.src),this.changingSrc_=!1}),!0),!1))},n.load=function(){this.techCall_("load")},n.reset=function(){var t=this,e=this.options_.Promise||l.a.Promise;this.paused()||!e?this.doReset_():mn(this.play().then((function(){return t.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_(),qe(this)&&this.trigger("playerreset")},n.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},n.resetProgressBar_=function(){this.currentTime(0);var t=this.controlBar||{},e=t.durationDisplay,n=t.remainingTimeDisplay;e&&e.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 source=this.currentSource(),t=[];return 0!==Object.keys(source).length&&t.push(source),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(t){return void 0!==t?(this.techCall_("setPreload",t),void(this.options_.preload=t)):this.techGet_("preload")},n.autoplay=function(t){if(void 0===t)return this.options_.autoplay||!1;var e;"string"==typeof t&&/(any|play|muted)/.test(t)||!0===t&&this.options_.normalizeAutoplay?(this.options_.autoplay=t,this.manualAutoplay_("string"==typeof t?t:"play"),e=!1):this.options_.autoplay=!!t,e=void 0===e?this.options_.autoplay:e,this.tech_&&this.techCall_("setAutoplay",e)},n.playsinline=function(t){return void 0!==t?(this.techCall_("setPlaysinline",t),this.options_.playsinline=t,this):this.techGet_("playsinline")},n.loop=function(t){return void 0!==t?(this.techCall_("setLoop",t),void(this.options_.loop=t)):this.techGet_("loop")},n.poster=function(t){if(void 0===t)return this.poster_;t||(t=""),t!==this.poster_&&(this.poster_=t,this.techCall_("setPoster",t),this.isPosterFromTech_=!1,this.trigger("posterchange"))},n.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var t=this.tech_.poster()||"";t!==this.poster_&&(this.poster_=t,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},n.controls=function(t){if(void 0===t)return!!this.controls_;t=!!t,this.controls_!==t&&(this.controls_=t,this.usingNativeControls()&&this.techCall_("setControls",t),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(t){if(void 0===t)return!!this.usingNativeControls_;t=!!t,this.usingNativeControls_!==t&&(this.usingNativeControls_=t,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},n.error=function(t){var e=this;if(void 0===t)return this.error_||null;if(K("beforeerror").forEach((function(n){var r=n(e,t);lt(r)&&!Array.isArray(r)||"string"==typeof r||"number"==typeof r||null===r?t=r:e.log.error("please return a value that MediaError expects in beforeerror hooks")})),this.options_.suppressNotSupportedError&&t&&4===t.code){var n=function(){this.error(t)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],n),void this.one("loadstart",(function(){this.off(["click","touchstart"],n)}))}if(null===t)return this.error_=t,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new dn(t),this.addClass("vjs-error"),nt.error("(CODE:"+this.error_.code+" "+dn.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),K("error").forEach((function(t){return t(e,e.error_)}))},n.reportUserActivity=function(t){this.userActivity_=!0},n.userActive=function(t){if(void 0===t)return this.userActive_;if((t=!!t)!==this.userActive_){if(this.userActive_=t,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(t){t.stopPropagation(),t.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},n.listenForUserActivity_=function(){var t,e,n,r=Ue(this,this.reportUserActivity),o=function(e){r(),this.clearInterval(t)};this.on("mousedown",(function(){r(),this.clearInterval(t),t=this.setInterval(r,250)})),this.on("mousemove",(function(t){t.screenX===e&&t.screenY===n||(e=t.screenX,n=t.screenY,r())})),this.on("mouseup",o),this.on("mouseleave",o);var l,c=this.getChild("controlBar");!c||Lt||bt||(c.on("mouseenter",(function(t){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0})),c.on("mouseleave",(function(t){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",r),this.on("keyup",r),this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(l);var t=this.options_.inactivityTimeout;t<=0||(l=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),t))}}),250)},n.playbackRate=function(t){if(void 0===t)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",t)},n.defaultPlaybackRate=function(t){return void 0!==t?this.techCall_("setDefaultPlaybackRate",t):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},n.isAudio=function(t){if(void 0===t)return!!this.isAudio_;this.isAudio_=!!t},n.enableAudioOnlyUI_=function(){var t=this;this.addClass("vjs-audio-only-mode");var e=this.children(),n=this.getChild("ControlBar"),r=n&&n.currentHeight();e.forEach((function(e){e!==n&&e.el_&&!e.hasClass("vjs-hidden")&&(e.hide(),t.audioOnlyCache_.hiddenChildren.push(e))})),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(r),this.trigger("audioonlymodechange")},n.disableAudioOnlyUI_=function(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach((function(t){return t.show()})),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")},n.audioOnlyMode=function(t){var e=this;if("boolean"!=typeof t||t===this.audioOnlyMode_)return this.audioOnlyMode_;this.audioOnlyMode_=t;var n=this.options_.Promise||l.a.Promise;if(n){if(t){var r=[];return this.isInPictureInPicture()&&r.push(this.exitPictureInPicture()),this.isFullscreen()&&r.push(this.exitFullscreen()),this.audioPosterMode()&&r.push(this.audioPosterMode(!1)),n.all(r).then((function(){return e.enableAudioOnlyUI_()}))}return n.resolve().then((function(){return e.disableAudioOnlyUI_()}))}t?(this.isInPictureInPicture()&&this.exitPictureInPicture(),this.isFullscreen()&&this.exitFullscreen(),this.enableAudioOnlyUI_()):this.disableAudioOnlyUI_()},n.enablePosterModeUI_=function(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},n.disablePosterModeUI_=function(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},n.audioPosterMode=function(t){var e=this;if("boolean"!=typeof t||t===this.audioPosterMode_)return this.audioPosterMode_;this.audioPosterMode_=t;var n=this.options_.Promise||l.a.Promise;return n?t?this.audioOnlyMode()?this.audioOnlyMode(!1).then((function(){e.enablePosterModeUI_()})):n.resolve().then((function(){e.enablePosterModeUI_()})):n.resolve().then((function(){e.disablePosterModeUI_()})):t?(this.audioOnlyMode()&&this.audioOnlyMode(!1),void this.enablePosterModeUI_()):void this.disablePosterModeUI_()},n.addTextTrack=function(t,label,e){if(this.tech_)return this.tech_.addTextTrack(t,label,e)},n.addRemoteTextTrack=function(t,e){if(this.tech_)return this.tech_.addRemoteTextTrack(t,e)},n.removeRemoteTextTrack=function(t){void 0===t&&(t={});var track=t.track;if(track||(track=t),this.tech_)return this.tech_.removeRemoteTextTrack(track)},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(code){if(void 0===code)return this.language_;this.language_!==String(code).toLowerCase()&&(this.language_=String(code).toLowerCase(),qe(this)&&this.trigger("languagechange"))},n.languages=function(){return en(e.prototype.options_.languages,this.languages_)},n.toJSON=function(){var t=en(this.options_),e=t.tracks;t.tracks=[];for(var i=0;i<e.length;i++){var track=e[i];(track=en(track)).player=void 0,t.tracks[i]=track}return t},n.createModal=function(content,t){var e=this;(t=t||{}).content=content||"";var n=new _n(this,t);return this.addChild(n),n.on("dispose",(function(){e.removeChild(n)})),n.open(),n},n.updateCurrentBreakpoint_=function(){if(this.responsive())for(var t=this.currentBreakpoint(),e=this.currentWidth(),i=0;i<ts.length;i++){var n=ts[i];if(e<=this.breakpoints_[n]){if(t===n)return;t&&this.removeClass(es[t]),this.addClass(es[n]),this.breakpoint_=n;break}}},n.removeCurrentBreakpoint_=function(){var t=this.currentBreakpointClass();this.breakpoint_="",t&&this.removeClass(t)},n.breakpoints=function(t){return void 0===t||(this.breakpoint_="",this.breakpoints_=ut({},ns,t),this.updateCurrentBreakpoint_()),ut(this.breakpoints_)},n.responsive=function(t){return void 0===t?this.responsive_:(t=Boolean(t))!==this.responsive_?(this.responsive_=t,t?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),t):void 0},n.currentBreakpoint=function(){return this.breakpoint_},n.currentBreakpointClass=function(){return es[this.breakpoint_]||""},n.loadMedia=function(t,e){var n=this;if(t&&"object"==typeof t){this.reset(),this.cache_.media=en(t);var r=this.cache_.media,o=r.artwork,l=r.poster,c=r.src,h=r.textTracks;!o&&l&&(this.cache_.media.artwork=[{src:l,type:ur(l)}]),c&&this.src(c),l&&this.poster(l),Array.isArray(h)&&h.forEach((function(t){return n.addRemoteTextTrack(t,!1)})),this.ready(e)}},n.getMedia=function(){if(!this.cache_.media){var t=this.poster(),e={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),(function(t){return{kind:t.kind,label:t.label,language:t.language,src:t.src}}))};return t&&(e.poster=t,e.artwork=[{src:e.poster,type:ur(e.poster)}]),e}return en(this.cache_.media)},e.getTagSettings=function(t){var e={sources:[],tracks:[]},n=Kt(t),r=n["data-setup"];if(Vt(t,"vjs-fill")&&(n.fill=!0),Vt(t,"vjs-fluid")&&(n.fluid=!0),null!==r){var o=S()(r||"{}"),l=o[0],data=o[1];l&&nt.error(l),ut(n,data)}if(ut(e,n),t.hasChildNodes())for(var c=t.childNodes,i=0,h=c.length;i<h;i++){var d=c[i],f=d.nodeName.toLowerCase();"source"===f?e.sources.push(Kt(d)):"track"===f&&e.tracks.push(Kt(d))}return e},n.flexNotSupported_=function(){var t=h.a.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},n.debug=function(t){if(void 0===t)return this.debugEnabled_;t?(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(t){if(void 0===t)return this.cache_.playbackRates;Array.isArray(t)&&t.every((function(t){return"number"==typeof t}))&&(this.cache_.playbackRates=t,this.trigger("playbackrateschange"))},e}(an);Xn.names.forEach((function(t){var e=Xn[t];rs.prototype[e.getterName]=function(){return this.tech_?this.tech_[e.getterName]():(this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName])}})),rs.prototype.crossorigin=rs.prototype.crossOrigin,rs.players={};var is=l.a.navigator;rs.prototype.options_={techOrder:Kn.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:is&&(is.languages&&is.languages[0]||is.userLanguage||is.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(t){rs.prototype[t]=function(){return this.techGet_(t)}})),Ji.forEach((function(t){rs.prototype["handleTech"+tn(t)+"_"]=function(){return this.trigger(t)}})),an.registerComponent("Player",rs);var ss="plugin",os="activePlugins_",as={},us=function(t){return as.hasOwnProperty(t)},ls=function(t){return us(t)?as[t]:void 0},cs=function(t,e){t[os]=t[os]||{},t[os][e]=!0},hs=function(t,e,n){var r=(n?"before":"")+"pluginsetup";t.trigger(r,e),t.trigger(r+":"+e.name,e)},ds=function(t,e){return e.prototype.name=t,function(){hs(this,{name:t,plugin:e,instance:null},!0);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var l=j()(e,[this].concat(r));return this[t]=function(){return l},hs(this,l.getEventHash()),l}},fs=function(){function t(e){if(this.constructor===t)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),$e(this),delete this.trigger,Je(this,this.constructor.defaultState),cs(e,this.name),this.dispose=this.dispose.bind(this),e.on("dispose",this.dispose)}var e=t.prototype;return e.version=function(){return this.constructor.VERSION},e.getEventHash=function(t){return void 0===t&&(t={}),t.name=this.name,t.plugin=this.constructor,t.instance=this,t},e.trigger=function(t,e){return void 0===e&&(e={}),Le(this.eventBusEl_,t,this.getEventHash(e))},e.handleStateChanged=function(t){},e.dispose=function(){var t=this.name,e=this.player;this.trigger("dispose"),this.off(),e.off("dispose",this.dispose),e[os][t]=!1,this.player=this.state=null,e[t]=ds(t,as[t])},t.isBasic=function(e){var p="string"==typeof e?ls(e):e;return"function"==typeof p&&!t.prototype.isPrototypeOf(p.prototype)},t.registerPlugin=function(e,n){if("string"!=typeof e)throw new Error('Illegal plugin name, "'+e+'", must be a string, was '+typeof e+".");if(us(e))nt.warn('A plugin named "'+e+'" already exists. You may want to avoid re-registering plugins!');else if(rs.prototype.hasOwnProperty(e))throw new Error('Illegal plugin name, "'+e+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+e+'", must be a function, was '+typeof n+".");return as[e]=n,e!==ss&&(t.isBasic(n)?rs.prototype[e]=function(t,e){var n=function(){hs(this,{name:t,plugin:e,instance:null},!0);var n=e.apply(this,arguments);return cs(this,t),hs(this,{name:t,plugin:e,instance:n}),n};return Object.keys(e).forEach((function(t){n[t]=e[t]})),n}(e,n):rs.prototype[e]=ds(e,n)),n},t.deregisterPlugin=function(t){if(t===ss)throw new Error("Cannot de-register base plugin.");us(t)&&(delete as[t],delete rs.prototype[t])},t.getPlugins=function(t){var e;return void 0===t&&(t=Object.keys(as)),t.forEach((function(t){var n=ls(t);n&&((e=e||{})[t]=n)})),e},t.getPluginVersion=function(t){var e=ls(t);return e&&e.VERSION||""},t}();fs.getPlugin=ls,fs.BASE_PLUGIN_NAME=ss,fs.registerPlugin(ss,fs),rs.prototype.usingPlugin=function(t){return!!this[os]&&!0===this[os][t]},rs.prototype.hasPlugin=function(t){return!!us(t)};var ps=!1,ms=function(t){return 0===t.indexOf("#")?t.slice(1):t};function gs(t,e,n){var r=gs.getPlayer(t);if(r)return e&&nt.warn('Player "'+t+'" is already initialised. Options will not be applied.'),n&&r.ready(n),r;var o="string"==typeof t?he("#"+ms(t)):t;if(!Ut(o))throw new TypeError("The element or ID supplied is not valid. (videojs)");o.ownerDocument.defaultView&&o.ownerDocument.body.contains(o)||nt.warn("The element supplied is not included in the DOM"),!0===(e=e||{}).restoreEl&&(e.restoreEl=(o.parentNode&&o.parentNode.hasAttribute("data-vjs-player")?o.parentNode:o).cloneNode(!0)),K("beforesetup").forEach((function(t){var n=t(o,en(e));lt(n)&&!Array.isArray(n)?e=en(e,n):nt.error("please return an object in beforesetup hooks")}));var l=an.getComponent("Player");return r=new l(o,e,n),K("setup").forEach((function(t){return t(r)})),r}if(gs.hooks_=X,gs.hooks=K,gs.hook=function(t,e){K(t,e)},gs.hookOnce=function(t,e){K(t,[].concat(e).map((function(e){return function n(){return $(t,n),e.apply(void 0,arguments)}})))},gs.removeHook=$,!0!==l.a.VIDEOJS_NO_DYNAMIC_STYLE&&Rt()){var style=he(".vjs-styles-defaults");if(!style){style=be("vjs-styles-defaults");var head=he("head");head&&head.insertBefore(style,head.firstChild),_e(style,"\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,gs),gs.VERSION=G,gs.options=rs.prototype.options_,gs.getPlayers=function(){return rs.players},gs.getPlayer=function(t){var e,n=rs.players;if("string"==typeof t){var r=ms(t),o=n[r];if(o)return o;e=he("#"+r)}else e=t;if(Ut(e)){var l=e,c=l.player,h=l.playerId;if(c||n[h])return c||n[h]}},gs.getAllPlayers=function(){return Object.keys(rs.players).map((function(t){return rs.players[t]})).filter(Boolean)},gs.players=rs.players,gs.getComponent=an.getComponent,gs.registerComponent=function(t,e){Kn.isTech(e)&&nt.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),an.registerComponent.call(an,t,e)},gs.getTech=Kn.getTech,gs.registerTech=Kn.registerTech,gs.use=function(t,e){$n[t]=$n[t]||[],$n[t].push(e)},Object.defineProperty(gs,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(gs.middleware,"TERMINATOR",{value:Jn,writeable:!1,enumerable:!0}),gs.browser=Pt,gs.TOUCH_ENABLED=Ot,gs.extend=function(t,e){void 0===e&&(e={}),ps||(nt.warn("videojs.extend is deprecated as of Video.js 7.22.0 and will be removed in Video.js 8.0.0"),ps=!0);var n=function(){t.apply(this,arguments)},r={};for(var o in"object"==typeof e?(e.constructor!==Object.prototype.constructor&&(n=e.constructor),r=e):"function"==typeof e&&(n=e),L()(n,t),t&&(n.super_=t),r)r.hasOwnProperty(o)&&(n.prototype[o]=r[o]);return n},gs.mergeOptions=en,gs.bind=Ue,gs.registerPlugin=fs.registerPlugin,gs.deregisterPlugin=fs.deregisterPlugin,gs.plugin=function(t,e){return nt.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),fs.registerPlugin(t,e)},gs.getPlugins=fs.getPlugins,gs.getPlugin=fs.getPlugin,gs.getPluginVersion=fs.getPluginVersion,gs.addLanguage=function(code,data){var t;return code=(""+code).toLowerCase(),gs.options.languages=en(gs.options.languages,((t={})[code]=data,t)),gs.options.languages[code]},gs.log=nt,gs.createLogger=it,gs.createTimeRange=gs.createTimeRanges=cn,gs.formatTime=Cr,gs.setFormatTime=function(t){Ar=t},gs.resetFormatTime=function(){Ar=kr},gs.parseUrl=Mn,gs.isCrossOrigin=Un,gs.EventTarget=Fe,gs.on=je,gs.one=De,gs.off=Ie,gs.trigger=Le,gs.xhr=k.a,gs.TextTrack=qn,gs.AudioTrack=Hn,gs.VideoTrack=Vn,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((function(t){gs[t]=function(){return nt.warn("videojs."+t+"() is deprecated; use videojs.dom."+t+"() instead"),fe[t].apply(null,arguments)}})),gs.computedStyle=ht,gs.dom=fe,gs.url=Bn,gs.defineLazyProperty=$i,gs.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});var vs=D.a,ys=function(t,e,n){return t&&n&&n.responseURL&&e!==n.responseURL?n.responseURL:e},bs=function(source){return gs.log.debug?gs.log.debug.bind(gs,"VHS:",source+" >"):function(){}},_s=1/30,ws=.1,Ts=function(t,e){var i,n=[];if(t&&t.length)for(i=0;i<t.length;i++)e(t.start(i),t.end(i))&&n.push([t.start(i),t.end(i)]);return gs.createTimeRanges(n)},xs=function(t,time){return Ts(t,(function(t,e){return t-ws<=time&&e+ws>=time}))},Ss=function(t,time){return Ts(t,(function(t){return t-_s>=time}))},Es=function(t){var e=[];if(!t||!t.length)return"";for(var i=0;i<t.length;i++)e.push(t.start(i)+" => "+t.end(i));return e.join(", ")},ks=function(t){for(var e=[],i=0;i<t.length;i++)e.push({start:t.start(i),end:t.end(i)});return e},As=function(a){if(a&&a.length&&a.end)return a.end(a.length-1)},Cs=function(t,e){var time=0;if(!t||!t.length)return time;for(var i=0;i<t.length;i++){var n=t.start(i),r=t.end(i);e>r||(time+=e>n&&e<=r?r-e:r-n)}return time},Os=gs.createTimeRange,js=function(t,e){if(!e.preload)return e.duration;var n=0;return(e.parts||[]).forEach((function(p){n+=p.duration})),(e.preloadHints||[]).forEach((function(p){"PART"===p.type&&(n+=t.partTargetDuration)})),n},Is=function(t){return(t.segments||[]).reduce((function(t,e,n){return e.parts?e.parts.forEach((function(r,o){t.push({duration:r.duration,segmentIndex:n,partIndex:o,part:r,segment:e})})):t.push({duration:e.duration,segmentIndex:n,partIndex:null,segment:e,part:null}),t}),[])},Ls=function(t){var e=t.segments&&t.segments.length&&t.segments[t.segments.length-1];return e&&e.parts||[]},Ds=function(t){var e=t.preloadSegment;if(e){var n=e.parts,r=(e.preloadHints||[]).reduce((function(t,e){return t+("PART"===e.type?1:0)}),0);return r+=n&&n.length?n.length:0}},Ps=function(t,e){if(e.endList)return 0;if(t&&t.suggestedPresentationDelay)return t.suggestedPresentationDelay;var n=Ls(e).length>0;return n&&e.serverControl&&e.serverControl.partHoldBack?e.serverControl.partHoldBack:n&&e.partTargetDuration?3*e.partTargetDuration:e.serverControl&&e.serverControl.holdBack?e.serverControl.holdBack:e.targetDuration?3*e.targetDuration:0},Ms=function(t,e,n){if(void 0===e&&(e=t.mediaSequence+t.segments.length),e<t.mediaSequence)return 0;var r=function(t,e){var n=0,i=e-t.mediaSequence,r=t.segments[i];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;i--;){if(void 0!==(r=t.segments[i]).end)return{result:n+r.end,precise:!0};if(n+=js(t,r),void 0!==r.start)return{result:n+r.start,precise:!0}}return{result:n,precise:!1}}(t,e);if(r.precise)return r.result;var o=function(t,e){for(var n,r=0,i=e-t.mediaSequence;i<t.segments.length;i++){if(void 0!==(n=t.segments[i]).start)return{result:n.start-r,precise:!0};if(r+=js(t,n),void 0!==n.end)return{result:n.end-r,precise:!0}}return{result:-1,precise:!1}}(t,e);return o.precise?o.result:r.result+n},Ns=function(t,e,n){if(!t)return 0;if("number"!=typeof n&&(n=0),void 0===e){if(t.totalDuration)return t.totalDuration;if(!t.endList)return l.a.Infinity}return Ms(t,e,n)},Rs=function(t){var e=t.defaultDuration,n=t.durationList,r=t.startIndex,o=t.endIndex,l=0;if(r>o){var c=[o,r];r=c[0],o=c[1]}if(r<0){for(var i=r;i<Math.min(0,o);i++)l+=e;r=0}for(var h=r;h<o;h++)l+=n[h].duration;return l},Us=function(t,e,n,r){if(!t||!t.segments)return null;if(t.endList)return Ns(t);if(null===e)return null;e=e||0;var o=Ms(t,t.mediaSequence+t.segments.length,e);return n&&(o-=r="number"==typeof r?r:Ps(null,t)),Math.max(0,o)},Bs=function(t){return t.excludeUntil&&t.excludeUntil>Date.now()},Fs=function(t){return t.excludeUntil&&t.excludeUntil===1/0},zs=function(t){var e=Bs(t);return!t.disabled&&!e},qs=function(t,e){return e.attributes&&e.attributes[t]},Hs=function(t,e){if(1===t.playlists.length)return!0;var n=e.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===t.playlists.filter((function(t){return!!zs(t)&&(t.attributes.BANDWIDTH||0)<n})).length},Vs=function(a,b){return!(!a&&!b||!a&&b||a&&!b)&&(a===b||(!(!a.id||!b.id||a.id!==b.id)||(!(!a.resolvedUri||!b.resolvedUri||a.resolvedUri!==b.resolvedUri)||!(!a.uri||!b.uri||a.uri!==b.uri))))},Ws=function(t,e){var n=t&&t.mediaGroups&&t.mediaGroups.AUDIO||{},r=!1;for(var o in n){for(var label in n[o])if(r=e(n[o][label]))break;if(r)break}return!!r},Ys=function(t){if(!t||!t.playlists||!t.playlists.length)return Ws(t,(function(t){return t.playlists&&t.playlists.length||t.uri}));for(var e=function(i){var e=t.playlists[i],n=e.attributes&&e.attributes.CODECS;return n&&n.split(",").every((function(t){return Object(M.f)(t)}))||Ws(t,(function(t){return Vs(e,t)}))?"continue":{v:!1}},i=0;i<t.playlists.length;i++){var n=e(i);if("continue"!==n&&"object"==typeof n)return n.v}return!0},Gs={liveEdgeDelay:Ps,duration:Ns,seekable:function(t,e,n){var r=e||0,o=Us(t,e,!0,n);return null===o?Os():Os(r,o)},getMediaInfoForTime:function(t){for(var e=t.playlist,n=t.currentTime,r=t.startingSegmentIndex,o=t.startingPartIndex,l=t.startTime,c=t.experimentalExactManifestTimings,time=n-l,h=Is(e),d=0,i=0;i<h.length;i++){var f=h[i];if(r===f.segmentIndex&&("number"!=typeof o||"number"!=typeof f.partIndex||o===f.partIndex)){d=i;break}}if(time<0){if(d>0)for(var m=d-1;m>=0;m--){var v=h[m];if(time+=v.duration,c){if(time<0)continue}else if(time+_s<=0)continue;return{partIndex:v.partIndex,segmentIndex:v.segmentIndex,startTime:l-Rs({defaultDuration:e.targetDuration,durationList:h,startIndex:d,endIndex:m})}}return{partIndex:h[0]&&h[0].partIndex||null,segmentIndex:h[0]&&h[0].segmentIndex||0,startTime:n}}if(d<0){for(var y=d;y<0;y++)if((time-=e.targetDuration)<0)return{partIndex:h[0]&&h[0].partIndex||null,segmentIndex:h[0]&&h[0].segmentIndex||0,startTime:n};d=0}for(var _=d;_<h.length;_++){var w=h[_];if(time-=w.duration,c){if(time>0)continue}else if(time-_s>=0)continue;return{partIndex:w.partIndex,segmentIndex:w.segmentIndex,startTime:l+Rs({defaultDuration:e.targetDuration,durationList:h,startIndex:d,endIndex:_})}}return{segmentIndex:h[h.length-1].segmentIndex,partIndex:h[h.length-1].partIndex,startTime:n}},isEnabled:zs,isDisabled:function(t){return t.disabled},isBlacklisted:Bs,isIncompatible:Fs,playlistEnd:Us,isAes:function(t){for(var i=0;i<t.segments.length;i++)if(t.segments[i].key)return!0;return!1},hasAttribute:qs,estimateSegmentRequestTime:function(t,e,n,r){return void 0===r&&(r=0),qs("BANDWIDTH",n)?(t*n.attributes.BANDWIDTH-8*r)/e:NaN},isLowestEnabledRendition:Hs,isAudioOnly:Ys,playlistMatch:Vs,segmentDurationWithParts:js},Xs=gs.log,Ks=function(t,e){return t+"-"+e},$s=function(t,e,label){return"placeholder-uri-"+t+"-"+e+"-"+label},Qs=function(t,e){t.mediaGroups&&["AUDIO","SUBTITLES"].forEach((function(n){if(t.mediaGroups[n])for(var r in t.mediaGroups[n])for(var o in t.mediaGroups[n][r]){var l=t.mediaGroups[n][r][o];e(l,n,r,o)}}))},Js=function(t){var e=t.playlist,n=t.uri,r=t.id;e.id=r,e.playlistErrors_=0,n&&(e.uri=n),e.attributes=e.attributes||{}},Zs=function(t,e,n){void 0===n&&(n=$s),t.uri=e;for(var i=0;i<t.playlists.length;i++)if(!t.playlists[i].uri){var r="placeholder-uri-"+i;t.playlists[i].uri=r}var o=Ys(t);Qs(t,(function(e,r,l,c){if(!e.playlists||!e.playlists.length){if(o&&"AUDIO"===r&&!e.uri)for(var h=0;h<t.playlists.length;h++){var p=t.playlists[h];if(p.attributes&&p.attributes.AUDIO&&p.attributes.AUDIO===l)return}e.playlists=[f()({},e)]}e.playlists.forEach((function(p,i){var e=n(r,l,c,p),o=Ks(i,e);p.uri?p.resolvedUri=p.resolvedUri||vs(t.uri,p.uri):(p.uri=0===i?e:o,p.resolvedUri=p.uri),p.id=p.id||o,p.attributes=p.attributes||{},t.playlists[p.id]=p,t.playlists[p.uri]=p}))})),function(t){for(var i=t.playlists.length;i--;){var e=t.playlists[i];Js({playlist:e,id:Ks(i,e.uri)}),e.resolvedUri=vs(t.uri,e.uri),t.playlists[e.id]=e,t.playlists[e.uri]=e,e.attributes.BANDWIDTH||Xs.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}}(t),function(t){Qs(t,(function(e){e.uri&&(e.resolvedUri=vs(t.uri,e.uri))}))}(t)},to=gs.mergeOptions,eo=gs.EventTarget,no=function(a,b){if(!a)return b;var t=to(a,b);if(a.preloadHints&&!b.preloadHints&&delete t.preloadHints,a.parts&&!b.parts)delete t.parts;else if(a.parts&&b.parts)for(var i=0;i<b.parts.length;i++)a.parts&&a.parts[i]&&(t.parts[i]=to(a.parts[i],b.parts[i]));return!a.skipped&&b.skipped&&(t.skipped=!1),a.preload&&!b.preload&&(t.preload=!1),t},ro=function(t,e){!t.resolvedUri&&t.uri&&(t.resolvedUri=vs(e,t.uri)),t.key&&!t.key.resolvedUri&&(t.key.resolvedUri=vs(e,t.key.uri)),t.map&&!t.map.resolvedUri&&(t.map.resolvedUri=vs(e,t.map.uri)),t.map&&t.map.key&&!t.map.key.resolvedUri&&(t.map.key.resolvedUri=vs(e,t.map.key.uri)),t.parts&&t.parts.length&&t.parts.forEach((function(p){p.resolvedUri||(p.resolvedUri=vs(e,p.uri))})),t.preloadHints&&t.preloadHints.length&&t.preloadHints.forEach((function(p){p.resolvedUri||(p.resolvedUri=vs(e,p.uri))}))},io=function(t){var e=t.segments||[],n=t.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 e;n.duration=t.targetDuration,n.preload=!0,e.push(n)}return e},so=function(a,b){return a===b||a.segments&&b.segments&&a.segments.length===b.segments.length&&a.endList===b.endList&&a.mediaSequence===b.mediaSequence&&a.preloadSegment===b.preloadSegment},oo=function(t,e,n){void 0===n&&(n=so);var r=to(t,{}),o=r.playlists[e.id];if(!o)return null;if(n(o,e))return null;e.segments=io(e);var l=to(o,e);if(l.preloadSegment&&!e.preloadSegment&&delete l.preloadSegment,o.segments){if(e.skip){e.segments=e.segments||[];for(var i=0;i<e.skip.skippedSegments;i++)e.segments.unshift({skipped:!0})}l.segments=function(t,e,n){var r=t.slice(),o=e.slice();n=n||0;for(var l,c=[],h=0;h<o.length;h++){var d=r[h+n],f=o[h];d?(l=d.map||l,c.push(no(d,f))):(l&&!f.map&&(f.map=l),c.push(f))}return c}(o.segments,e.segments,e.mediaSequence-o.mediaSequence)}l.segments.forEach((function(t){ro(t,l.resolvedUri)}));for(var c=0;c<r.playlists.length;c++)r.playlists[c].id===e.id&&(r.playlists[c]=l);return r.playlists[e.id]=l,r.playlists[e.uri]=l,Qs(t,(function(t,n,r,o){if(t.playlists)for(var c=0;c<t.playlists.length;c++)e.id===t.playlists[c].id&&(t.playlists[c]=l)})),r},ao=function(t,e){var n=t.segments||[],r=n[n.length-1],o=r&&r.parts&&r.parts[r.parts.length-1],l=o&&o.duration||r&&r.duration;return e&&l?1e3*l:500*(t.partTargetDuration||t.targetDuration||10)},uo=function(t){function e(e,n,r){var o;if(void 0===r&&(r={}),o=t.call(this)||this,!e)throw new Error("A non-empty playlist URL or object is required");o.logger_=bs("PlaylistLoader");var l=r,c=l.withCredentials,h=void 0!==c&&c,d=l.handleManifestRedirects,f=void 0!==d&&d;o.src=e,o.vhs_=n,o.withCredentials=h,o.handleManifestRedirects=f;var m=n.options_;return o.customTagParsers=m&&m.customTagParsers||[],o.customTagMappers=m&&m.customTagMappers||[],o.experimentalLLHLS=m&&m.experimentalLLHLS||!1,gs.browser.IE_VERSION&&(o.experimentalLLHLS=!1),o.state="HAVE_NOTHING",o.handleMediaupdatetimeout_=o.handleMediaupdatetimeout_.bind(_()(o)),o.on("mediaupdatetimeout",o.handleMediaupdatetimeout_),o}T()(e,t);var n=e.prototype;return n.handleMediaupdatetimeout_=function(){var t=this;if("HAVE_METADATA"===this.state){var e=this.media(),n=vs(this.master.uri,e.uri);this.experimentalLLHLS&&(n=function(t,e){if(e.endList||!e.serverControl)return t;var n={};if(e.serverControl.canBlockReload){var r=e.preloadSegment,o=e.mediaSequence+e.segments.length;if(r){var c=r.parts||[],h=Ds(e)-1;h>-1&&h!==c.length-1&&(n._HLS_part=h),(h>-1||c.length)&&o--}n._HLS_msn=o}if(e.serverControl&&e.serverControl.canSkipUntil&&(n._HLS_skip=e.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(n).length){var d=new l.a.URL(t);["_HLS_skip","_HLS_msn","_HLS_part"].forEach((function(t){n.hasOwnProperty(t)&&d.searchParams.set(t,n[t])})),t=d.toString()}return t}(n,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials},(function(e,n){if(t.request)return e?t.playlistRequestError(t.request,t.media(),"HAVE_METADATA"):void t.haveMetadata({playlistString:t.request.responseText,url:t.media().uri,id:t.media().id})}))}},n.playlistRequestError=function(t,e,n){var r=e.uri,o=e.id;this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[o],status:t.status,message:"HLS playlist request error at URL: "+r+".",responseText:t.responseText,code:t.status>=500?4:2},this.trigger("error")},n.parseManifest_=function(t){var e=this,n=t.url;return function(t){var e=t.onwarn,n=t.oninfo,r=t.manifestString,o=t.customTagParsers,l=void 0===o?[]:o,c=t.customTagMappers,h=void 0===c?[]:c,d=t.experimentalLLHLS,f=new P.a;e&&f.on("warn",e),n&&f.on("info",n),l.forEach((function(t){return f.addParser(t)})),h.forEach((function(t){return f.addTagMapper(t)})),f.push(r),f.end();var m=f.manifest;if(d||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach((function(t){m.hasOwnProperty(t)&&delete m[t]})),m.segments&&m.segments.forEach((function(t){["parts","preloadHints"].forEach((function(e){t.hasOwnProperty(e)&&delete t[e]}))}))),!m.targetDuration){var v=10;m.segments&&m.segments.length&&(v=m.segments.reduce((function(t,s){return Math.max(t,s.duration)}),0)),e&&e("manifest has no targetDuration defaulting to "+v),m.targetDuration=v}var y=Ls(m);if(y.length&&!m.partTargetDuration){var _=y.reduce((function(t,p){return Math.max(t,p.duration)}),0);e&&(e("manifest has no partTargetDuration defaulting to "+_),Xs.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.")),m.partTargetDuration=_}return m}({onwarn:function(t){var r=t.message;return e.logger_("m3u8-parser warn for "+n+": "+r)},oninfo:function(t){var r=t.message;return e.logger_("m3u8-parser info for "+n+": "+r)},manifestString:t.manifestString,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},n.haveMetadata=function(t){var e=t.playlistString,n=t.playlistObject,r=t.url,o=t.id;this.request=null,this.state="HAVE_METADATA";var l=n||this.parseManifest_({url:r,manifestString:e});l.lastRequest=Date.now(),Js({playlist:l,uri:r,id:o});var c=oo(this.master,l);this.targetDuration=l.partTargetDuration||l.targetDuration,this.pendingMedia_=null,c?(this.master=c,this.media_=this.master.playlists[o]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(ao(this.media(),!!c)),this.trigger("loadedplaylist")},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),l.a.clearTimeout(this.mediaUpdateTimeout),l.a.clearTimeout(this.finalRenditionTimeout),this.off()},n.stopRequest=function(){if(this.request){var t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}},n.media=function(t,e){var n=this;if(!t)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof t){if(!this.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.master.playlists[t]}if(l.a.clearTimeout(this.finalRenditionTimeout),e){var r=(t.partTargetDuration||t.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=l.a.setTimeout(this.media.bind(this,t,!1),r)}else{var o=this.state,c=!this.media_||t.id!==this.media_.id,h=this.master.playlists[t.id];if(h&&h.endList||t.endList&&t.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=t,void(c&&(this.trigger("mediachanging"),"HAVE_MASTER"===o?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(ao(t,!0)),c){if(this.state="SWITCHING_MEDIA",this.request){if(t.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=t,this.request=this.vhs_.xhr({uri:t.resolvedUri,withCredentials:this.withCredentials},(function(e,r){if(n.request){if(t.lastRequest=Date.now(),t.resolvedUri=ys(n.handleManifestRedirects,t.resolvedUri,r),e)return n.playlistRequestError(n.request,t,o);n.haveMetadata({playlistString:r.responseText,url:t.uri,id:t.id}),"HAVE_MASTER"===o?n.trigger("loadedmetadata"):n.trigger("mediachange")}}))}}},n.pause=function(){this.mediaUpdateTimeout&&(l.a.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(t){var e=this;this.mediaUpdateTimeout&&(l.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var n=this.media();if(t){var r=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=l.a.setTimeout((function(){e.mediaUpdateTimeout=null,e.load()}),r)}else this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},n.updateMediaUpdateTimeout_=function(t){var e=this;this.mediaUpdateTimeout&&(l.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=l.a.setTimeout((function(){e.mediaUpdateTimeout=null,e.trigger("mediaupdatetimeout"),e.updateMediaUpdateTimeout_(t)}),t))},n.start=function(){var t=this;if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=l.a.location.href),this.src.resolvedUri=this.src.uri,void setTimeout((function(){t.setupInitialPlaylist(t.src)}),0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},(function(e,n){if(t.request){if(t.request=null,e)return t.error={status:n.status,message:"HLS playlist request error at URL: "+t.src+".",responseText:n.responseText,code:2},"HAVE_NOTHING"===t.state&&(t.started=!1),t.trigger("error");t.src=ys(t.handleManifestRedirects,t.src,n);var r=t.parseManifest_({manifestString:n.responseText,url:t.src});t.setupInitialPlaylist(r)}}))},n.srcUri=function(){return"string"==typeof this.src?this.src:this.src.uri},n.setupInitialPlaylist=function(t){if(this.state="HAVE_MASTER",t.playlists)return this.master=t,Zs(this.master,this.srcUri()),t.playlists.forEach((function(t){t.segments=io(t),t.segments.forEach((function(e){ro(e,t.resolvedUri)}))})),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var e=this.srcUri()||l.a.location.href;this.master=function(t,e){var n=Ks(0,e),r={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:l.a.location.href,resolvedUri:l.a.location.href,playlists:[{uri:e,id:n,resolvedUri:e,attributes:{}}]};return r.playlists[n]=r.playlists[0],r.playlists[e]=r.playlists[0],r}(0,e),this.haveMetadata({playlistObject:t,url:e,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},e}(eo),lo=gs.xhr,co=gs.mergeOptions,ho=function(t,e,n,r){var o="arraybuffer"===t.responseType?t.response:t.responseText;!e&&o&&(t.responseTime=Date.now(),t.roundTripTime=t.responseTime-t.requestTime,t.bytesReceived=o.byteLength||o.length,t.bandwidth||(t.bandwidth=Math.floor(t.bytesReceived/t.roundTripTime*8*1e3))),n.headers&&(t.responseHeaders=n.headers),e&&"ETIMEDOUT"===e.code&&(t.timedout=!0),e||t.aborted||200===n.statusCode||206===n.statusCode||0===n.statusCode||(e=new Error("XHR Failed with a response of: "+(t&&(o||t.responseText)))),r(e,t)},fo=function(){var t=function t(e,n){e=co({timeout:45e3},e);var r=t.beforeRequest||gs.Vhs.xhr.beforeRequest;if(r&&"function"==typeof r){var o=r(e);o&&(e=o)}var l=(!0===gs.Vhs.xhr.original?lo:gs.Vhs.xhr)(e,(function(t,e){return ho(l,t,e,n)})),c=l.abort;return l.abort=function(){return l.aborted=!0,c.apply(l,arguments)},l.uri=e.uri,l.requestTime=Date.now(),l};return t.original=!0,t},po=function(t){var e,n={};return t.byterange&&(n.Range="bytes="+(e=t.byterange).offset+"-"+("bigint"==typeof e.offset||"bigint"==typeof e.length?l.a.BigInt(e.offset)+l.a.BigInt(e.length)-l.a.BigInt(1):e.offset+e.length-1)),n},mo=function(t,i){return t.start(i)+"-"+t.end(i)},go=function(t,i){var e=t.toString(16);return"00".substring(0,2-e.length)+e+(i%2?" ":"")},vo=function(t){return t>=32&&t<126?String.fromCharCode(t):"."},yo=function(t){var e={};return Object.keys(t).forEach((function(n){var r=t[n];Object(R.e)(r)?e[n]={bytes:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength}:e[n]=r})),e},bo=function(t){var e=t.byterange||{length:1/0,offset:0};return[e.length,e.offset,t.resolvedUri].join(",")},_o=function(t){return t.resolvedUri},wo=function(data){for(var t=Array.prototype.slice.call(data),e=16,n="",r=0;r<t.length/e;r++)n+=t.slice(r*e,r*e+e).map(go).join("")+" "+t.slice(r*e,r*e+e).map(vo).join("")+"\n";return n},To=Object.freeze({__proto__:null,createTransferableMessage:yo,initSegmentId:bo,segmentKeyId:_o,hexDump:wo,tagDump:function(t){var e=t.bytes;return wo(e)},textRanges:function(t){var i,e="";for(i=0;i<t.length;i++)e+=mo(t,i)+" ";return e}}),xo=function(t){var e=t.playlist,n=t.time,time=void 0===n?void 0:n,r=t.callback;if(!r)throw new Error("getProgramTime: callback must be provided");if(!e||void 0===time)return r({message:"getProgramTime: playlist and time must be provided"});var o=function(time,t){if(!t||!t.segments||0===t.segments.length)return null;for(var e,n=0,i=0;i<t.segments.length&&!(time<=(n=(e=t.segments[i]).videoTimingInfo?e.videoTimingInfo.transmuxedPresentationEnd:n+e.duration));i++);var r=t.segments[t.segments.length-1];if(r.videoTimingInfo&&r.videoTimingInfo.transmuxedPresentationEnd<time)return null;if(time>n){if(time>n+.25*r.duration)return null;e=r}return{segment:e,estimatedStart:e.videoTimingInfo?e.videoTimingInfo.transmuxedPresentationStart:n-e.duration,type:e.videoTimingInfo?"accurate":"estimate"}}(time,e);if(!o)return r({message:"valid programTime was not found"});if("estimate"===o.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:o.estimatedStart});var l={mediaSeconds:time},c=function(t,e){if(!e.dateTimeObject)return null;var n=e.videoTimingInfo.transmuxerPrependedSeconds,r=t-(e.videoTimingInfo.transmuxedPresentationStart+n);return new Date(e.dateTimeObject.getTime()+1e3*r)}(time,o.segment);return c&&(l.programDateTime=c.toISOString()),r(null,l)},So=function t(e){var n=e.programTime,r=e.playlist,o=e.retryCount,l=void 0===o?2:o,c=e.seekTo,h=e.pauseAfterSeek,d=void 0===h||h,f=e.tech,m=e.callback;if(!m)throw new Error("seekToProgramTime: callback must be provided");if(void 0===n||!r||!c)return m({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!r.endList&&!f.hasStarted_)return m({message:"player must be playing a live stream to start buffering"});if(!function(t){if(!t.segments||0===t.segments.length)return!1;for(var i=0;i<t.segments.length;i++)if(!t.segments[i].dateTimeObject)return!1;return!0}(r))return m({message:"programDateTime tags must be provided in the manifest "+r.resolvedUri});var v=function(t,e){var n;try{n=new Date(t)}catch(t){return null}if(!e||!e.segments||0===e.segments.length)return null;var r=e.segments[0];if(n<r.dateTimeObject)return null;for(var i=0;i<e.segments.length-1&&(r=e.segments[i],!(n<e.segments[i+1].dateTimeObject));i++);var o,l=e.segments[e.segments.length-1],c=l.dateTimeObject,h=l.videoTimingInfo?(o=l.videoTimingInfo).transmuxedPresentationEnd-o.transmuxedPresentationStart-o.transmuxerPrependedSeconds:l.duration+.25*l.duration;return n>new Date(c.getTime()+1e3*h)?null:(n>c&&(r=l),{segment:r,estimatedStart:r.videoTimingInfo?r.videoTimingInfo.transmuxedPresentationStart:Gs.duration(e,e.mediaSequence+e.segments.indexOf(r)),type:r.videoTimingInfo?"accurate":"estimate"})}(n,r);if(!v)return m({message:n+" was not found in the stream"});var y=v.segment,_=function(t,e){var n,r;try{n=new Date(t),r=new Date(e)}catch(t){}var o=n.getTime();return(r.getTime()-o)/1e3}(y.dateTimeObject,n);if("estimate"===v.type)return 0===l?m({message:n+" is not buffered yet. Try again"}):(c(v.estimatedStart+_),void f.one("seeked",(function(){t({programTime:n,playlist:r,retryCount:l-1,seekTo:c,pauseAfterSeek:d,tech:f,callback:m})})));var w=y.start+_;f.one("seeked",(function(){return m(null,f.currentTime())})),d&&f.pause(),c(w)},Eo=function(t,e){if(4===t.readyState)return e()},ko=gs.EventTarget,Ao=gs.mergeOptions,Co=function(a,b){if(!so(a,b))return!1;if(a.sidx&&b.sidx&&(a.sidx.offset!==b.sidx.offset||a.sidx.length!==b.sidx.length))return!1;if(!a.sidx&&b.sidx||a.sidx&&!b.sidx)return!1;if(a.segments&&!b.segments||!a.segments&&b.segments)return!1;if(!a.segments&&!b.segments)return!0;for(var i=0;i<a.segments.length;i++){var t=a.segments[i],e=b.segments[i];if(t.uri!==e.uri)return!1;if(t.byterange||e.byterange){var n=t.byterange,r=e.byterange;if(n&&!r||!n&&r)return!1;if(n.offset!==r.offset||n.length!==r.length)return!1}}return!0},Oo=function(t,e,label,n){return"placeholder-uri-"+t+"-"+e+"-"+(n.attributes.NAME||label)},jo=function(t,e,n){for(var r=!0,o=Ao(t,{duration:e.duration,minimumUpdatePeriod:e.minimumUpdatePeriod,timelineStarts:e.timelineStarts}),i=0;i<e.playlists.length;i++){var l=e.playlists[i];if(l.sidx){var c=Object(U.b)(l.sidx);n&&n[c]&&n[c].sidx&&Object(U.a)(l,n[c].sidx,l.sidx.resolvedUri)}var h=oo(o,l,Co);h&&(o=h,r=!1)}return Qs(e,(function(t,e,n,label){if(t.playlists&&t.playlists.length){var l=t.playlists[0].id,c=oo(o,t.playlists[0],Co);c&&(label in(o=c).mediaGroups[e][n]||(o.mediaGroups[e][n][label]=t),o.mediaGroups[e][n][label].playlists[0]=o.playlists[l],r=!1)}})),function(t,e){Qs(t,(function(n,r,o,label){label in e.mediaGroups[r][o]||delete t.mediaGroups[r][o][label]}))}(o,e),e.minimumUpdatePeriod!==t.minimumUpdatePeriod&&(r=!1),r?null:o},Io=function(t,e){var a,b,n={};for(var r in t){var o=t[r].sidx;if(o){var l=Object(U.b)(o);if(!e[l])break;var c=e[l].sidxInfo;a=c,b=o,(Boolean(!a.map&&!b.map)||Boolean(a.map&&b.map&&a.map.byterange.offset===b.map.byterange.offset&&a.map.byterange.length===b.map.byterange.length))&&a.uri===b.uri&&a.byterange.offset===b.byterange.offset&&a.byterange.length===b.byterange.length&&(n[l]=e[l])}}return n},Lo=function(t){function e(e,n,r,o){var l;void 0===r&&(r={}),(l=t.call(this)||this).masterPlaylistLoader_=o||_()(l),o||(l.isMaster_=!0);var c=r,h=c.withCredentials,d=void 0!==h&&h,f=c.handleManifestRedirects,m=void 0!==f&&f;if(l.vhs_=n,l.withCredentials=d,l.handleManifestRedirects=m,!e)throw new Error("A non-empty playlist URL or object is required");return l.on("minimumUpdatePeriod",(function(){l.refreshXml_()})),l.on("mediaupdatetimeout",(function(){l.refreshMedia_(l.media().id)})),l.state="HAVE_NOTHING",l.loadedPlaylists_={},l.logger_=bs("DashPlaylistLoader"),l.isMaster_?(l.masterPlaylistLoader_.srcUrl=e,l.masterPlaylistLoader_.sidxMapping_={}):l.childPlaylist_=e,l}T()(e,t);var n=e.prototype;return n.requestErrored_=function(t,e,n){return!this.request||(this.request=null,t?(this.error="object"!=typeof t||t instanceof Error?{status:e.status,message:"DASH request error at URL: "+e.uri,response:e.response,code:2}:t,n&&(this.state=n),this.trigger("error"),!0):void 0)},n.addSidxSegments_=function(t,e,n){var r=this,o=t.sidx&&Object(U.b)(t.sidx);if(t.sidx&&o&&!this.masterPlaylistLoader_.sidxMapping_[o]){var c=ys(this.handleManifestRedirects,t.sidx.resolvedUri),h=function(l,c){if(!r.requestErrored_(l,c,e)){var h,d=r.masterPlaylistLoader_.sidxMapping_;try{h=F()(Object(R.k)(c.response).subarray(8))}catch(t){return void r.requestErrored_(t,c,e)}return d[o]={sidxInfo:t.sidx,sidx:h},Object(U.a)(t,h,t.sidx.resolvedUri),n(!0)}};this.request=function(t,e,n){var r,o=[],l=!1,c=function(t,e,r,o){return e.abort(),l=!0,n(t,e,r,o)},h=function(t,e){if(!l){if(t)return c(t,e,"",o);var n=e.responseText.substring(o&&o.byteLength||0,e.responseText.length);if(o=Object(R.d)(o,Object(R.h)(n,!0)),r=r||Object(z.a)(o),o.length<10||r&&o.length<r+2)return Eo(e,(function(){return c(t,e,"",o)}));var h=Object(H.a)(o);return"ts"===h&&o.length<188||!h&&o.length<376?Eo(e,(function(){return c(t,e,"",o)})):c(null,e,h,o)}},d={uri:t,beforeSend:function(t){t.overrideMimeType("text/plain; charset=x-user-defined"),t.addEventListener("progress",(function(e){return e.total,e.loaded,ho(t,null,{statusCode:t.status},h)}))}},f=e(d,(function(t,e){return ho(f,t,e,h)}));return f}(c,this.vhs_.xhr,(function(e,n,o,l){if(e)return h(e,n);if(!o||"mp4"!==o)return h({status:n.status,message:"Unsupported "+(o||"unknown")+" container type for sidx segment at URL: "+c,response:"",playlist:t,internal:!0,blacklistDuration:1/0,code:2},n);var d=t.sidx.byterange,f=d.offset,m=d.length;if(l.length>=m+f)return h(e,{response:l.subarray(f,f+m),status:n.status,uri:n.uri});r.request=r.vhs_.xhr({uri:c,responseType:"arraybuffer",headers:po({byterange:t.sidx.byterange})},h)}))}else this.mediaRequest_=l.a.setTimeout((function(){return n(!1)}),0)},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},l.a.clearTimeout(this.minimumUpdatePeriodTimeout_),l.a.clearTimeout(this.mediaRequest_),l.a.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 t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}},n.media=function(t){var e=this;if(!t)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 t){if(!this.masterPlaylistLoader_.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.masterPlaylistLoader_.master.playlists[t]}var r=!this.media_||t.id!==this.media_.id;if(r&&this.loadedPlaylists_[t.id]&&this.loadedPlaylists_[t.id].endList)return this.state="HAVE_METADATA",this.media_=t,void(r&&(this.trigger("mediachanging"),this.trigger("mediachange")));r&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(t,n,(function(r){e.haveMetadata({startingState:n,playlist:t})})))},n.haveMetadata=function(t){var e=t.startingState,n=t.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,this.mediaRequest_=null,this.refreshMedia_(n.id),"HAVE_MASTER"===e?this.trigger("loadedmetadata"):this.trigger("mediachange")},n.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),l.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(l.a.clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},n.load=function(t){var e=this;l.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var n=this.media();if(t){var r=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=l.a.setTimeout((function(){return e.load()}),r)}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 t=this;this.started=!0,this.isMaster_?this.requestMaster_((function(e,n){t.haveMaster_(),t.hasPendingRequest()||t.media_||t.media(t.masterPlaylistLoader_.master.playlists[0])})):this.mediaRequest_=l.a.setTimeout((function(){return t.haveMaster_()}),0)},n.requestMaster_=function(t){var e=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},(function(n,r){if(!e.requestErrored_(n,r)){var o=r.responseText!==e.masterPlaylistLoader_.masterXml_;return e.masterPlaylistLoader_.masterXml_=r.responseText,r.responseHeaders&&r.responseHeaders.date?e.masterLoaded_=Date.parse(r.responseHeaders.date):e.masterLoaded_=Date.now(),e.masterPlaylistLoader_.srcUrl=ys(e.handleManifestRedirects,e.masterPlaylistLoader_.srcUrl,r),o?(e.handleMaster_(),void e.syncClientServerClock_((function(){return t(r,o)}))):t(r,o)}"HAVE_NOTHING"===e.state&&(e.started=!1)}))},n.syncClientServerClock_=function(t){var e=this,n=Object(U.d)(this.masterPlaylistLoader_.masterXml_);return null===n?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),t()):"DIRECT"===n.method?(this.masterPlaylistLoader_.clientOffset_=n.value-Date.now(),t()):void(this.request=this.vhs_.xhr({uri:vs(this.masterPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},(function(r,o){if(e.request){if(r)return e.masterPlaylistLoader_.clientOffset_=e.masterLoaded_-Date.now(),t();var l;l="HEAD"===n.method?o.responseHeaders&&o.responseHeaders.date?Date.parse(o.responseHeaders.date):e.masterLoaded_:Date.parse(o.responseText),e.masterPlaylistLoader_.clientOffset_=l-Date.now(),t()}})))},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 t,e,n,r,o,l,c,h=this.masterPlaylistLoader_.master,d=(t={masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:h},e=t.masterXml,n=t.srcUrl,r=t.clientOffset,o=t.sidxMapping,l=t.previousManifest,c=Object(U.c)(e,{manifestUri:n,clientOffset:r,sidxMapping:o,previousManifest:l}),Zs(c,n,Oo),c);h&&(d=jo(h,d,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=d||h;var f=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return f&&f!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=f),(!h||d&&d.minimumUpdatePeriod!==h.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(d)},n.updateMinimumUpdatePeriodTimeout_=function(){var t=this.masterPlaylistLoader_;t.createMupOnMedia_&&(t.off("loadedmetadata",t.createMupOnMedia_),t.createMupOnMedia_=null),t.minimumUpdatePeriodTimeout_&&(l.a.clearTimeout(t.minimumUpdatePeriodTimeout_),t.minimumUpdatePeriodTimeout_=null);var e=t.master&&t.master.minimumUpdatePeriod;0===e&&(t.media()?e=1e3*t.media().targetDuration:(t.createMupOnMedia_=t.updateMinimumUpdatePeriodTimeout_,t.one("loadedmetadata",t.createMupOnMedia_))),"number"!=typeof e||e<=0?e<0&&this.logger_("found invalid minimumUpdatePeriod of "+e+", not setting a timeout"):this.createMUPTimeout_(e)},n.createMUPTimeout_=function(t){var e=this.masterPlaylistLoader_;e.minimumUpdatePeriodTimeout_=l.a.setTimeout((function(){e.minimumUpdatePeriodTimeout_=null,e.trigger("minimumUpdatePeriod"),e.createMUPTimeout_(t)}),t)},n.refreshXml_=function(){var t=this;this.requestMaster_((function(e,n){var r,o,l;n&&(t.media_&&(t.media_=t.masterPlaylistLoader_.master.playlists[t.media_.id]),t.masterPlaylistLoader_.sidxMapping_=(r=t.masterPlaylistLoader_.master,o=t.masterPlaylistLoader_.sidxMapping_,l=Io(r.playlists,o),Qs(r,(function(t,e,n,r){if(t.playlists&&t.playlists.length){var c=t.playlists;l=Ao(l,Io(c,o))}})),l),t.addSidxSegments_(t.media(),t.state,(function(e){t.refreshMedia_(t.media().id)})))}))},n.refreshMedia_=function(t){var e=this;if(!t)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var n=this.masterPlaylistLoader_.master.playlists,r=!this.media_||this.media_!==n[t];if(r?this.media_=n[t]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){!function t(){e.media().endList||(e.mediaUpdateTimeout=l.a.setTimeout((function(){e.trigger("mediaupdatetimeout"),t()}),ao(e.media(),Boolean(r))))}()}this.trigger("loadedplaylist")},e}(ko),Do={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},Po=function(t){return t.on=t.addEventListener,t.off=t.removeEventListener,t},Mo=function(code){return function(){var t=function(t){try{return URL.createObjectURL(new Blob([t],{type:"application/javascript"}))}catch(n){var e=new BlobBuilder;return e.append(t),URL.createObjectURL(e.getBlob())}}(code),e=Po(new Worker(t));e.objURL=t;var n=e.terminate;return e.on=e.addEventListener,e.off=e.removeEventListener,e.terminate=function(){return URL.revokeObjectURL(t),n.call(this)},e}},No=function(code){return"var browserWorkerPolyFill = "+Po.toString()+";\nbrowserWorkerPolyFill(self);\n"+code},Ro=function(t){return t.toString().replace(/^function.+?{/,"").slice(0,-1)},Uo=No(Ro((function(){var e=function(){this.init=function(){var t={};this.on=function(e,n){t[e]||(t[e]=[]),t[e]=t[e].concat(n)},this.off=function(e,n){var r;return!!t[e]&&(r=t[e].indexOf(n),t[e]=t[e].slice(),t[e].splice(r,1),r>-1)},this.trigger=function(e){var n,i,r,o;if(n=t[e])if(2===arguments.length)for(r=n.length,i=0;i<r;++i)n[i].call(this,arguments[1]);else{for(o=[],i=arguments.length,i=1;i<arguments.length;++i)o.push(arguments[i]);for(r=n.length,i=0;i<r;++i)n[i].apply(this,o)}},this.dispose=function(){t={}}}};e.prototype.pipe=function(t){return this.on("data",(function(data){t.push(data)})),this.on("done",(function(e){t.flush(e)})),this.on("partialdone",(function(e){t.partialFlush(e)})),this.on("endedtimeline",(function(e){t.endTimeline(e)})),this.on("reset",(function(e){t.reset(e)})),t},e.prototype.push=function(data){this.trigger("data",data)},e.prototype.flush=function(t){this.trigger("done",t)},e.prototype.partialFlush=function(t){this.trigger("partialdone",t)},e.prototype.endTimeline=function(t){this.trigger("endedtimeline",t)},e.prototype.reset=function(t){this.trigger("reset",t)};var n,r,o,l,c,h,d,f,m,v,y,_,w,T,x,S,E,k,A,C,O,j,I,L,D,P,M,N,R,U,B,F,z,H,V,W,Y,G,X,K,$=e,Q=Math.pow(2,32),J={getUint64:function(t){var e,n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.getBigUint64?(e=n.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(e):e:n.getUint32(0)*Q+n.getUint32(4)},MAX_UINT32:Q},Z=J.MAX_UINT32;!function(){var i;if(j={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(i in j)j.hasOwnProperty(i)&&(j[i]=[i.charCodeAt(0),i.charCodeAt(1),i.charCodeAt(2),i.charCodeAt(3)]);I=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),D=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),L=new Uint8Array([0,0,0,1]),P=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]),M=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]),N={video:P,audio:M},B=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),U=new Uint8Array([0,0,0,0,0,0,0,0]),F=new Uint8Array([0,0,0,0,0,0,0,0]),z=F,H=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),V=F,R=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),n=function(t){var i,e,n=[],r=0;for(i=1;i<arguments.length;i++)n.push(arguments[i]);for(i=n.length;i--;)r+=n[i].byteLength;for(e=new Uint8Array(r+8),new DataView(e.buffer,e.byteOffset,e.byteLength).setUint32(0,e.byteLength),e.set(t,4),i=0,r=8;i<n.length;i++)e.set(n[i],r),r+=n[i].byteLength;return e},r=function(){return n(j.dinf,n(j.dref,B))},o=function(track){return n(j.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,track.audioobjecttype<<3|track.samplingfrequencyindex>>>1,track.samplingfrequencyindex<<7|track.channelcount<<3,6,1,2]))},x=function(t){return n(j.hdlr,N[t])},T=function(track){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,track.duration>>>24&255,track.duration>>>16&255,track.duration>>>8&255,255&track.duration,85,196,0,0]);return track.samplerate&&(t[12]=track.samplerate>>>24&255,t[13]=track.samplerate>>>16&255,t[14]=track.samplerate>>>8&255,t[15]=255&track.samplerate),n(j.mdhd,t)},w=function(track){return n(j.mdia,T(track),x(track.type),h(track))},c=function(t){return n(j.mfhd,new Uint8Array([0,0,0,0,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t]))},h=function(track){return n(j.minf,"video"===track.type?n(j.vmhd,R):n(j.smhd,U),r(),E(track))},d=function(t,e){for(var r=[],i=e.length;i--;)r[i]=A(e[i]);return n.apply(null,[j.moof,c(t)].concat(r))},f=function(t){for(var i=t.length,e=[];i--;)e[i]=y(t[i]);return n.apply(null,[j.moov,v(4294967295)].concat(e).concat(m(t)))},m=function(t){for(var i=t.length,e=[];i--;)e[i]=C(t[i]);return n.apply(null,[j.mvex].concat(e))},v=function(t){var e=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t,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(j.mvhd,e)},S=function(track){var t,i,e=track.samples||[],r=new Uint8Array(4+e.length);for(i=0;i<e.length;i++)t=e[i].flags,r[i+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return n(j.sdtp,r)},E=function(track){return n(j.stbl,k(track),n(j.stts,V),n(j.stsc,z),n(j.stsz,H),n(j.stco,F))},k=function(track){return n(j.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===track.type?W(track):Y(track))},W=function(track){var i,t,e=track.sps||[],r=track.pps||[],o=[],l=[];for(i=0;i<e.length;i++)o.push((65280&e[i].byteLength)>>>8),o.push(255&e[i].byteLength),o=o.concat(Array.prototype.slice.call(e[i]));for(i=0;i<r.length;i++)l.push((65280&r[i].byteLength)>>>8),l.push(255&r[i].byteLength),l=l.concat(Array.prototype.slice.call(r[i]));if(t=[j.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&track.width)>>8,255&track.width,(65280&track.height)>>8,255&track.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(j.avcC,new Uint8Array([1,track.profileIdc,track.profileCompatibility,track.levelIdc,255].concat([e.length],o,[r.length],l))),n(j.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],track.sarRatio){var c=track.sarRatio[0],h=track.sarRatio[1];t.push(n(j.pasp,new Uint8Array([(4278190080&c)>>24,(16711680&c)>>16,(65280&c)>>8,255&c,(4278190080&h)>>24,(16711680&h)>>16,(65280&h)>>8,255&h])))}return n.apply(null,t)},Y=function(track){return n(j.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&track.channelcount)>>8,255&track.channelcount,(65280&track.samplesize)>>8,255&track.samplesize,0,0,0,0,(65280&track.samplerate)>>8,255&track.samplerate,0,0]),o(track))},_=function(track){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&track.id)>>24,(16711680&track.id)>>16,(65280&track.id)>>8,255&track.id,0,0,0,0,(4278190080&track.duration)>>24,(16711680&track.duration)>>16,(65280&track.duration)>>8,255&track.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&track.width)>>8,255&track.width,0,0,(65280&track.height)>>8,255&track.height,0,0]);return n(j.tkhd,t)},A=function(track){var t,e,r,o,l,c;return t=n(j.tfhd,new Uint8Array([0,0,0,58,(4278190080&track.id)>>24,(16711680&track.id)>>16,(65280&track.id)>>8,255&track.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),l=Math.floor(track.baseMediaDecodeTime/Z),c=Math.floor(track.baseMediaDecodeTime%Z),e=n(j.tfdt,new Uint8Array([1,0,0,0,l>>>24&255,l>>>16&255,l>>>8&255,255&l,c>>>24&255,c>>>16&255,c>>>8&255,255&c])),"audio"===track.type?(r=O(track,92),n(j.traf,t,e,r)):(o=S(track),r=O(track,o.length+92),n(j.traf,t,e,r,o))},y=function(track){return track.duration=track.duration||4294967295,n(j.trak,_(track),w(track))},C=function(track){var t=new Uint8Array([0,0,0,0,(4278190080&track.id)>>24,(16711680&track.id)>>16,(65280&track.id)>>8,255&track.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==track.type&&(t[t.length-1]=0),n(j.trex,t)},K=function(t,e){var n=0,r=0,o=0,l=0;return t.length&&(void 0!==t[0].duration&&(n=1),void 0!==t[0].size&&(r=2),void 0!==t[0].flags&&(o=4),void 0!==t[0].compositionTimeOffset&&(l=8)),[0,0,n|r|o|l,1,(4278190080&t.length)>>>24,(16711680&t.length)>>>16,(65280&t.length)>>>8,255&t.length,(4278190080&e)>>>24,(16711680&e)>>>16,(65280&e)>>>8,255&e]},X=function(track,t){var e,r,header,o,l,i;for(t+=20+16*(o=track.samples||[]).length,header=K(o,t),(r=new Uint8Array(header.length+16*o.length)).set(header),e=header.length,i=0;i<o.length;i++)l=o[i],r[e++]=(4278190080&l.duration)>>>24,r[e++]=(16711680&l.duration)>>>16,r[e++]=(65280&l.duration)>>>8,r[e++]=255&l.duration,r[e++]=(4278190080&l.size)>>>24,r[e++]=(16711680&l.size)>>>16,r[e++]=(65280&l.size)>>>8,r[e++]=255&l.size,r[e++]=l.flags.isLeading<<2|l.flags.dependsOn,r[e++]=l.flags.isDependedOn<<6|l.flags.hasRedundancy<<4|l.flags.paddingValue<<1|l.flags.isNonSyncSample,r[e++]=61440&l.flags.degradationPriority,r[e++]=15&l.flags.degradationPriority,r[e++]=(4278190080&l.compositionTimeOffset)>>>24,r[e++]=(16711680&l.compositionTimeOffset)>>>16,r[e++]=(65280&l.compositionTimeOffset)>>>8,r[e++]=255&l.compositionTimeOffset;return n(j.trun,r)},G=function(track,t){var e,r,header,o,l,i;for(t+=20+8*(o=track.samples||[]).length,header=K(o,t),(e=new Uint8Array(header.length+8*o.length)).set(header),r=header.length,i=0;i<o.length;i++)l=o[i],e[r++]=(4278190080&l.duration)>>>24,e[r++]=(16711680&l.duration)>>>16,e[r++]=(65280&l.duration)>>>8,e[r++]=255&l.duration,e[r++]=(4278190080&l.size)>>>24,e[r++]=(16711680&l.size)>>>16,e[r++]=(65280&l.size)>>>8,e[r++]=255&l.size;return n(j.trun,e)},O=function(track,t){return"audio"===track.type?G(track,t):X(track,t)};l=function(){return n(j.ftyp,I,L,I,D)};var tt,et,nt,it,st,ot,at,ut,lt=function(data){return n(j.mdat,data)},ct=d,ht=function(t){var e,n=l(),r=f(t);return(e=new Uint8Array(n.byteLength+r.byteLength)).set(n),e.set(r,n.byteLength),e},ft=function(t,e){var n={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return n.dataOffset=e,n.compositionTimeOffset=t.pts-t.dts,n.duration=t.duration,n.size=4*t.length,n.size+=t.byteLength,t.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},pt=function(t){var i,e,n=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,n.byteLength=0,i=0;i<t.length;i++)"access_unit_delimiter_rbsp"===(e=t[i]).nalUnitType?(n.length&&(n.duration=e.dts-n.dts,r.byteLength+=n.byteLength,r.nalCount+=n.length,r.duration+=n.duration,r.push(n)),(n=[e]).byteLength=e.data.byteLength,n.pts=e.pts,n.dts=e.dts):("slice_layer_without_partitioning_rbsp_idr"===e.nalUnitType&&(n.keyFrame=!0),n.duration=e.dts-n.dts,n.byteLength+=e.data.byteLength,n.push(e));return r.length&&(!n.duration||n.duration<=0)&&(n.duration=r[r.length-1].duration),r.byteLength+=n.byteLength,r.nalCount+=n.length,r.duration+=n.duration,r.push(n),r},mt=function(t){var i,e,n=[],r=[];for(n.byteLength=0,n.nalCount=0,n.duration=0,n.pts=t[0].pts,n.dts=t[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=t[0].pts,r.dts=t[0].dts,i=0;i<t.length;i++)(e=t[i]).keyFrame?(n.length&&(r.push(n),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration),(n=[e]).nalCount=e.length,n.byteLength=e.byteLength,n.pts=e.pts,n.dts=e.dts,n.duration=e.duration):(n.duration+=e.duration,n.nalCount+=e.length,n.byteLength+=e.byteLength,n.push(e));return r.length&&n.duration<=0&&(n.duration=r[r.length-1].duration),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration,r.push(n),r},gt=function(t){var e;return!t[0][0].keyFrame&&t.length>1&&(e=t.shift(),t.byteLength-=e.byteLength,t.nalCount-=e.nalCount,t[0][0].dts=e.dts,t[0][0].pts=e.pts,t[0][0].duration+=e.duration),t},vt=function(t,e){var n,i,r,o,l,c=e||0,h=[];for(n=0;n<t.length;n++)for(o=t[n],i=0;i<o.length;i++)l=o[i],c+=(r=ft(l,c)).size,h.push(r);return h},yt=function(t){var e,i,n,r,o,l,c=0,h=t.byteLength,d=t.nalCount,data=new Uint8Array(h+4*d),view=new DataView(data.buffer);for(e=0;e<t.length;e++)for(r=t[e],i=0;i<r.length;i++)for(o=r[i],n=0;n<o.length;n++)l=o[n],view.setUint32(c,l.data.byteLength),c+=4,data.set(l.data,c),c+=l.data.byteLength;return data},bt=[33,16,5,32,164,27],_t=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],wt=function(t){for(var a=[];t--;)a.push(0);return a},Tt=function(){if(!tt){var t={96e3:[bt,[227,64],wt(154),[56]],88200:[bt,[231],wt(170),[56]],64e3:[bt,[248,192],wt(240),[56]],48e3:[bt,[255,192],wt(268),[55,148,128],wt(54),[112]],44100:[bt,[255,192],wt(268),[55,163,128],wt(84),[112]],32e3:[bt,[255,192],wt(268),[55,234],wt(226),[112]],24e3:[bt,[255,192],wt(268),[55,255,128],wt(268),[111,112],wt(126),[224]],16e3:[bt,[255,192],wt(268),[55,255,128],wt(268),[111,255],wt(269),[223,108],wt(195),[1,192]],12e3:[_t,wt(268),[3,127,248],wt(268),[6,255,240],wt(268),[13,255,224],wt(268),[27,253,128],wt(259),[56]],11025:[_t,wt(268),[3,127,248],wt(268),[6,255,240],wt(268),[13,255,224],wt(268),[27,255,192],wt(268),[55,175,128],wt(108),[112]],8e3:[_t,wt(268),[3,121,16],wt(47),[7]]};e=t,tt=Object.keys(e).reduce((function(t,n){return t[n]=new Uint8Array(e[n].reduce((function(t,e){return t.concat(e)}),[])),t}),{})}var e;return tt},xt=9e4;ot=function(t,e){return et(st(t,e))},at=function(t,e){return nt(it(t),e)},ut=function(t,e,n){return it(n?t:t-e)};var St=xt,Et=et=function(t){return t*xt},kt=(nt=function(t,e){return t*e},it=function(t){return t/xt}),At=(st=function(t,e){return t/e},ot),Ct=at,Ot=ut,jt=function(track,t,e,n){var r,o,l,i,c,h=0,d=0,f=0;if(t.length&&(r=At(track.baseMediaDecodeTime,track.samplerate),o=Math.ceil(St/(track.samplerate/1024)),e&&n&&(h=r-Math.max(e,n),f=(d=Math.floor(h/o))*o),!(d<1||f>St/2))){for((l=Tt()[track.samplerate])||(l=t[0].data),i=0;i<d;i++)c=t[0],t.splice(0,0,{data:l,dts:c.dts-o,pts:c.pts-o});return track.baseMediaDecodeTime-=Math.floor(Ct(f,track.samplerate)),f}},It=function(t,track,e){return track.minSegmentDts>=e?t:(track.minSegmentDts=1/0,t.filter((function(t){return t.dts>=e&&(track.minSegmentDts=Math.min(track.minSegmentDts,t.dts),track.minSegmentPts=track.minSegmentDts,!0)})))},Lt=function(t){var i,e,n=[];for(i=0;i<t.length;i++)e=t[i],n.push({size:e.data.byteLength,duration:1024});return n},Dt=function(t){var i,e,n=0,data=new Uint8Array(function(t){var i,e=0;for(i=0;i<t.length;i++)e+=t[i].data.byteLength;return e}(t));for(i=0;i<t.length;i++)e=t[i],data.set(e.data,n),n+=e.data.byteLength;return data},Pt=St,Mt=function(track){delete track.minSegmentDts,delete track.maxSegmentDts,delete track.minSegmentPts,delete track.maxSegmentPts},Nt=function(track,t){var e,n=track.minSegmentDts;return t||(n-=track.timelineStartInfo.dts),e=track.timelineStartInfo.baseMediaDecodeTime,e+=n,e=Math.max(0,e),"audio"===track.type&&(e*=track.samplerate/Pt,e=Math.floor(e)),e},Rt=function(track,data){"number"==typeof data.pts&&(void 0===track.timelineStartInfo.pts&&(track.timelineStartInfo.pts=data.pts),void 0===track.minSegmentPts?track.minSegmentPts=data.pts:track.minSegmentPts=Math.min(track.minSegmentPts,data.pts),void 0===track.maxSegmentPts?track.maxSegmentPts=data.pts:track.maxSegmentPts=Math.max(track.maxSegmentPts,data.pts)),"number"==typeof data.dts&&(void 0===track.timelineStartInfo.dts&&(track.timelineStartInfo.dts=data.dts),void 0===track.minSegmentDts?track.minSegmentDts=data.dts:track.minSegmentDts=Math.min(track.minSegmentDts,data.dts),void 0===track.maxSegmentDts?track.maxSegmentDts=data.dts:track.maxSegmentDts=Math.max(track.maxSegmentDts,data.dts))},Ut=function(t){for(var i=0,e={payloadType:-1,payloadSize:0},n=0,r=0;i<t.byteLength&&128!==t[i];){for(;255===t[i];)n+=255,i++;for(n+=t[i++];255===t[i];)r+=255,i++;if(r+=t[i++],!e.payload&&4===n){if("GA94"===String.fromCharCode(t[i+3],t[i+4],t[i+5],t[i+6])){e.payloadType=n,e.payloadSize=r,e.payload=t.subarray(i,i+r);break}e.payload=void 0}i+=r,n=0,r=0}return e},Bt=function(t){return 181!==t.payload[0]||49!=(t.payload[1]<<8|t.payload[2])||"GA94"!==String.fromCharCode(t.payload[3],t.payload[4],t.payload[5],t.payload[6])||3!==t.payload[7]?null:t.payload.subarray(8,t.payload.length-1)},Ft=function(t,e){var i,n,r,data,o=[];if(!(64&e[0]))return o;for(n=31&e[0],i=0;i<n;i++)data={type:3&e[(r=3*i)+2],pts:t},4&e[r+2]&&(data.ccData=e[r+3]<<8|e[r+4],o.push(data));return o},zt=function(data){for(var t,e,n=data.byteLength,r=[],i=1;i<n-2;)0===data[i]&&0===data[i+1]&&3===data[i+2]?(r.push(i+2),i+=2):i++;if(0===r.length)return data;t=n-r.length,e=new Uint8Array(t);var o=0;for(i=0;i<t;o++,i++)o===r[0]&&(o++,r.shift()),e[i]=data[o];return e},qt=4,Ht=function t(e){e=e||{},t.prototype.init.call(this),this.parse708captions_="boolean"!=typeof e.parse708captions||e.parse708captions,this.captionPackets_=[],this.ccStreams_=[new Zt(0,0),new Zt(0,1),new Zt(1,0),new Zt(1,1)],this.parse708captions_&&(this.cc708Stream_=new Xt({captionServices:e.captionServices})),this.reset(),this.ccStreams_.forEach((function(t){t.on("data",this.trigger.bind(this,"data")),t.on("partialdone",this.trigger.bind(this,"partialdone")),t.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")))};(Ht.prototype=new $).push=function(t){var e,n,r;if("sei_rbsp"===t.nalUnitType&&(e=Ut(t.escapedRBSP)).payload&&e.payloadType===qt&&(n=Bt(e)))if(t.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(t.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));r=Ft(t.pts,n),this.captionPackets_=this.captionPackets_.concat(r),this.latestDts_!==t.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=t.dts}},Ht.prototype.flushCCStreams=function(t){this.ccStreams_.forEach((function(e){return"flush"===t?e.flush():e.partialFlush()}),this)},Ht.prototype.flushStream=function(t){this.captionPackets_.length?(this.captionPackets_.forEach((function(t,e){t.presortIndex=e})),this.captionPackets_.sort((function(a,b){return a.pts===b.pts?a.presortIndex-b.presortIndex:a.pts-b.pts})),this.captionPackets_.forEach((function(t){t.type<2?this.dispatchCea608Packet(t):this.dispatchCea708Packet(t)}),this),this.captionPackets_.length=0,this.flushCCStreams(t)):this.flushCCStreams(t)},Ht.prototype.flush=function(){return this.flushStream("flush")},Ht.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Ht.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(t){t.reset()}))},Ht.prototype.dispatchCea608Packet=function(t){this.setsTextOrXDSActive(t)?this.activeCea608Channel_[t.type]=null:this.setsChannel1Active(t)?this.activeCea608Channel_[t.type]=0:this.setsChannel2Active(t)&&(this.activeCea608Channel_[t.type]=1),null!==this.activeCea608Channel_[t.type]&&this.ccStreams_[(t.type<<1)+this.activeCea608Channel_[t.type]].push(t)},Ht.prototype.setsChannel1Active=function(t){return 4096==(30720&t.ccData)},Ht.prototype.setsChannel2Active=function(t){return 6144==(30720&t.ccData)},Ht.prototype.setsTextOrXDSActive=function(t){return 256==(28928&t.ccData)||4138==(30974&t.ccData)||6186==(30974&t.ccData)},Ht.prototype.dispatchCea708Packet=function(t){this.parse708captions_&&this.cc708Stream_.push(t)};var Vt={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},Wt=function(b){return 32<=b&&b<=127||160<=b&&b<=255},Yt=function(t){this.windowNum=t,this.reset()};Yt.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},Yt.prototype.getText=function(){return this.rows.join("\n")},Yt.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},Yt.prototype.newLine=function(t){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(t),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},Yt.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},Yt.prototype.addText=function(text){this.rows[this.rowIdx]+=text},Yt.prototype.backspace=function(){if(!this.isEmpty()){var t=this.rows[this.rowIdx];this.rows[this.rowIdx]=t.substr(0,t.length-1)}};var Gt=function(t,e,n){this.serviceNum=t,this.text="",this.currentWindow=new Yt(-1),this.windows=[],this.stream=n,"string"==typeof e&&this.createTextDecoder(e)};Gt.prototype.init=function(t,e){this.startPts=t;for(var n=0;n<8;n++)this.windows[n]=new Yt(n),"function"==typeof e&&(this.windows[n].beforeRowOverflow=e)},Gt.prototype.setCurrentWindow=function(t){this.currentWindow=this.windows[t]},Gt.prototype.createTextDecoder=function(t){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(t)}catch(e){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+t+" encoding. "+e})}};var Xt=function t(e){e=e||{},t.prototype.init.call(this);var n,r=this,o=e.captionServices||{},l={};Object.keys(o).forEach((function(t){n=o[t],/^SERVICE/.test(t)&&(l[t]=n.encoding)})),this.serviceEncodings=l,this.current708Packet=null,this.services={},this.push=function(t){3===t.type?(r.new708Packet(),r.add708Bytes(t)):(null===r.current708Packet&&r.new708Packet(),r.add708Bytes(t))}};Xt.prototype=new $,Xt.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Xt.prototype.add708Bytes=function(t){var data=t.ccData,e=data>>>8,n=255&data;this.current708Packet.ptsVals.push(t.pts),this.current708Packet.data.push(e),this.current708Packet.data.push(n)},Xt.prototype.push708Packet=function(){var t=this.current708Packet,e=t.data,n=null,r=null,i=0,b=e[i++];for(t.seq=b>>6,t.sizeCode=63&b;i<e.length;i++)r=31&(b=e[i++]),7===(n=b>>5)&&r>0&&(n=b=e[i++]),this.pushServiceBlock(n,i,r),r>0&&(i+=r-1)},Xt.prototype.pushServiceBlock=function(t,e,n){var b,i=e,r=this.current708Packet.data,o=this.services[t];for(o||(o=this.initService(t,i));i<e+n&&i<r.length;i++)b=r[i],Wt(b)?i=this.handleText(i,o):24===b?i=this.multiByteCharacter(i,o):16===b?i=this.extendedCommands(i,o):128<=b&&b<=135?i=this.setCurrentWindow(i,o):152<=b&&b<=159?i=this.defineWindow(i,o):136===b?i=this.clearWindows(i,o):140===b?i=this.deleteWindows(i,o):137===b?i=this.displayWindows(i,o):138===b?i=this.hideWindows(i,o):139===b?i=this.toggleWindows(i,o):151===b?i=this.setWindowAttributes(i,o):144===b?i=this.setPenAttributes(i,o):145===b?i=this.setPenColor(i,o):146===b?i=this.setPenLocation(i,o):143===b?o=this.reset(i,o):8===b?o.currentWindow.backspace():12===b?o.currentWindow.clearText():13===b?o.currentWindow.pendingNewLine=!0:14===b?o.currentWindow.clearText():141===b&&i++},Xt.prototype.extendedCommands=function(i,t){var b=this.current708Packet.data[++i];return Wt(b)&&(i=this.handleText(i,t,{isExtended:!0})),i},Xt.prototype.getPts=function(t){return this.current708Packet.ptsVals[Math.floor(t/2)]},Xt.prototype.initService=function(t,i){var e,n,r=this;return(e="SERVICE"+t)in this.serviceEncodings&&(n=this.serviceEncodings[e]),this.services[t]=new Gt(t,n,r),this.services[t].init(this.getPts(i),(function(e){r.flushDisplayed(e,r.services[t])})),this.services[t]},Xt.prototype.handleText=function(i,t,e){var n,r,code,o,l=e&&e.isExtended,c=e&&e.isMultiByte,h=this.current708Packet.data,d=l?4096:0,f=h[i],m=h[i+1],v=t.currentWindow;return t.textDecoder_&&!l?(c?(r=[f,m],i++):r=[f],n=t.textDecoder_.decode(new Uint8Array(r))):(o=Vt[code=d|f]||code,n=4096&code&&code===o?"":String.fromCharCode(o)),v.pendingNewLine&&!v.isEmpty()&&v.newLine(this.getPts(i)),v.pendingNewLine=!1,v.addText(n),i},Xt.prototype.multiByteCharacter=function(i,t){var e=this.current708Packet.data,n=e[i+1],r=e[i+2];return Wt(n)&&Wt(r)&&(i=this.handleText(++i,t,{isMultiByte:!0})),i},Xt.prototype.setCurrentWindow=function(i,t){var e=7&this.current708Packet.data[i];return t.setCurrentWindow(e),i},Xt.prototype.defineWindow=function(i,t){var e=this.current708Packet.data,b=e[i],n=7&b;t.setCurrentWindow(n);var r=t.currentWindow;return b=e[++i],r.visible=(32&b)>>5,r.rowLock=(16&b)>>4,r.columnLock=(8&b)>>3,r.priority=7&b,b=e[++i],r.relativePositioning=(128&b)>>7,r.anchorVertical=127&b,b=e[++i],r.anchorHorizontal=b,b=e[++i],r.anchorPoint=(240&b)>>4,r.rowCount=15&b,b=e[++i],r.columnCount=63&b,b=e[++i],r.windowStyle=(56&b)>>3,r.penStyle=7&b,r.virtualRowCount=r.rowCount+1,i},Xt.prototype.setWindowAttributes=function(i,t){var e=this.current708Packet.data,b=e[i],n=t.currentWindow.winAttr;return b=e[++i],n.fillOpacity=(192&b)>>6,n.fillRed=(48&b)>>4,n.fillGreen=(12&b)>>2,n.fillBlue=3&b,b=e[++i],n.borderType=(192&b)>>6,n.borderRed=(48&b)>>4,n.borderGreen=(12&b)>>2,n.borderBlue=3&b,b=e[++i],n.borderType+=(128&b)>>5,n.wordWrap=(64&b)>>6,n.printDirection=(48&b)>>4,n.scrollDirection=(12&b)>>2,n.justify=3&b,b=e[++i],n.effectSpeed=(240&b)>>4,n.effectDirection=(12&b)>>2,n.displayEffect=3&b,i},Xt.prototype.flushDisplayed=function(t,e){for(var n=[],r=0;r<8;r++)e.windows[r].visible&&!e.windows[r].isEmpty()&&n.push(e.windows[r].getText());e.endPts=t,e.text=n.join("\n\n"),this.pushCaption(e),e.startPts=t},Xt.prototype.pushCaption=function(t){""!==t.text&&(this.trigger("data",{startPts:t.startPts,endPts:t.endPts,text:t.text,stream:"cc708_"+t.serviceNum}),t.text="",t.startPts=t.endPts)},Xt.prototype.displayWindows=function(i,t){var b=this.current708Packet.data[++i],e=this.getPts(i);this.flushDisplayed(e,t);for(var n=0;n<8;n++)b&1<<n&&(t.windows[n].visible=1);return i},Xt.prototype.hideWindows=function(i,t){var b=this.current708Packet.data[++i],e=this.getPts(i);this.flushDisplayed(e,t);for(var n=0;n<8;n++)b&1<<n&&(t.windows[n].visible=0);return i},Xt.prototype.toggleWindows=function(i,t){var b=this.current708Packet.data[++i],e=this.getPts(i);this.flushDisplayed(e,t);for(var n=0;n<8;n++)b&1<<n&&(t.windows[n].visible^=1);return i},Xt.prototype.clearWindows=function(i,t){var b=this.current708Packet.data[++i],e=this.getPts(i);this.flushDisplayed(e,t);for(var n=0;n<8;n++)b&1<<n&&t.windows[n].clearText();return i},Xt.prototype.deleteWindows=function(i,t){var b=this.current708Packet.data[++i],e=this.getPts(i);this.flushDisplayed(e,t);for(var n=0;n<8;n++)b&1<<n&&t.windows[n].reset();return i},Xt.prototype.setPenAttributes=function(i,t){var e=this.current708Packet.data,b=e[i],n=t.currentWindow.penAttr;return b=e[++i],n.textTag=(240&b)>>4,n.offset=(12&b)>>2,n.penSize=3&b,b=e[++i],n.italics=(128&b)>>7,n.underline=(64&b)>>6,n.edgeType=(56&b)>>3,n.fontStyle=7&b,i},Xt.prototype.setPenColor=function(i,t){var e=this.current708Packet.data,b=e[i],n=t.currentWindow.penColor;return b=e[++i],n.fgOpacity=(192&b)>>6,n.fgRed=(48&b)>>4,n.fgGreen=(12&b)>>2,n.fgBlue=3&b,b=e[++i],n.bgOpacity=(192&b)>>6,n.bgRed=(48&b)>>4,n.bgGreen=(12&b)>>2,n.bgBlue=3&b,b=e[++i],n.edgeRed=(48&b)>>4,n.edgeGreen=(12&b)>>2,n.edgeBlue=3&b,i},Xt.prototype.setPenLocation=function(i,t){var e=this.current708Packet.data,b=e[i],n=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,b=e[++i],n.row=15&b,b=e[++i],n.column=63&b,i},Xt.prototype.reset=function(i,t){var e=this.getPts(i);return this.flushDisplayed(e,t),this.initService(t.serviceNum,i)};var Kt={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},$t=function(code){return null===code?"":(code=Kt[code]||code,String.fromCharCode(code))},Qt=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Jt=function(){for(var t=[],i=15;i--;)t.push("");return t},Zt=function t(e,n){t.prototype.init.call(this),this.field_=e||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(t){var data,e,n,r,text;if((data=32639&t.ccData)!==this.lastControlCode_){if(4096==(61440&data)?this.lastControlCode_=data:data!==this.PADDING_&&(this.lastControlCode_=null),n=data>>>8,r=255&data,data!==this.PADDING_)if(data===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(data===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(t.pts),this.flushDisplayed(t.pts),e=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=e,this.startPts_=t.pts;else if(data===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(t.pts);else if(data===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(t.pts);else if(data===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(t.pts);else if(data===this.CARRIAGE_RETURN_)this.clearFormatting(t.pts),this.flushDisplayed(t.pts),this.shiftRowsUp_(),this.startPts_=t.pts;else if(data===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(data===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(t.pts),this.displayed_=Jt();else if(data===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Jt();else if(data===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(t.pts),this.displayed_=Jt()),this.mode_="paintOn",this.startPts_=t.pts;else if(this.isSpecialCharacter(n,r))text=$t((n=(3&n)<<8)|r),this[this.mode_](t.pts,text),this.column_++;else if(this.isExtCharacter(n,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),text=$t((n=(3&n)<<8)|r),this[this.mode_](t.pts,text),this.column_++;else if(this.isMidRowCode(n,r))this.clearFormatting(t.pts),this[this.mode_](t.pts," "),this.column_++,14&~r||this.addFormatting(t.pts,["i"]),1&~r||this.addFormatting(t.pts,["u"]);else if(this.isOffsetControlCode(n,r))this.column_+=3&r;else if(this.isPAC(n,r)){var o=Qt.indexOf(7968&data);"rollUp"===this.mode_&&(o-this.rollUpRows_+1<0&&(o=this.rollUpRows_-1),this.setRollUp(t.pts,o)),o!==this.row_&&(this.clearFormatting(t.pts),this.row_=o),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(t.pts,["u"]),16&~data||(this.column_=4*((14&data)>>1)),this.isColorPAC(r)&&(14&~r||this.addFormatting(t.pts,["i"]))}else this.isNormalChar(n)&&(0===r&&(r=null),text=$t(n),text+=$t(r),this[this.mode_](t.pts,text),this.column_+=text.length)}else this.lastControlCode_=null}};Zt.prototype=new $,Zt.prototype.flushDisplayed=function(t){var content=this.displayed_.map((function(t,e){try{return t.trim()}catch(t){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+e+"."}),""}}),this).join("\n").replace(/^\n+|\n+$/g,"");content.length&&this.trigger("data",{startPts:this.startPts_,endPts:t,text:content,stream:this.name_})},Zt.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Jt(),this.nonDisplayed_=Jt(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},Zt.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_},Zt.prototype.isSpecialCharacter=function(t,e){return t===this.EXT_&&e>=48&&e<=63},Zt.prototype.isExtCharacter=function(t,e){return(t===this.EXT_+1||t===this.EXT_+2)&&e>=32&&e<=63},Zt.prototype.isMidRowCode=function(t,e){return t===this.EXT_&&e>=32&&e<=47},Zt.prototype.isOffsetControlCode=function(t,e){return t===this.OFFSET_&&e>=33&&e<=35},Zt.prototype.isPAC=function(t,e){return t>=this.BASE_&&t<this.BASE_+8&&e>=64&&e<=127},Zt.prototype.isColorPAC=function(t){return t>=64&&t<=79||t>=96&&t<=127},Zt.prototype.isNormalChar=function(t){return t>=32&&t<=127},Zt.prototype.setRollUp=function(t,e){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(t),this.nonDisplayed_=Jt(),this.displayed_=Jt()),void 0!==e&&e!==this.row_)for(var i=0;i<this.rollUpRows_;i++)this.displayed_[e-i]=this.displayed_[this.row_-i],this.displayed_[this.row_-i]="";void 0===e&&(e=this.row_),this.topRow_=e-this.rollUpRows_+1},Zt.prototype.addFormatting=function(t,e){this.formatting_=this.formatting_.concat(e);var text=e.reduce((function(text,t){return text+"<"+t+">"}),"");this[this.mode_](t,text)},Zt.prototype.clearFormatting=function(t){if(this.formatting_.length){var text=this.formatting_.reverse().reduce((function(text,t){return text+"</"+t+">"}),"");this.formatting_=[],this[this.mode_](t,text)}},Zt.prototype.popOn=function(t,text){var e=this.nonDisplayed_[this.row_];e+=text,this.nonDisplayed_[this.row_]=e},Zt.prototype.rollUp=function(t,text){var e=this.displayed_[this.row_];e+=text,this.displayed_[this.row_]=e},Zt.prototype.shiftRowsUp_=function(){var i;for(i=0;i<this.topRow_;i++)this.displayed_[i]="";for(i=this.row_+1;i<15;i++)this.displayed_[i]="";for(i=this.topRow_;i<this.row_;i++)this.displayed_[i]=this.displayed_[i+1];this.displayed_[this.row_]=""},Zt.prototype.paintOn=function(t,text){var e=this.displayed_[this.row_];e+=text,this.displayed_[this.row_]=e};var te={CaptionStream:Ht,Cea608Stream:Zt,Cea708Stream:Xt},ee={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},ne="shared",re=function(t,e){var n=1;for(t>e&&(n=-1);Math.abs(e-t)>4294967296;)t+=8589934592*n;return t},ie=function t(e){var n,r;t.prototype.init.call(this),this.type_=e||ne,this.push=function(data){this.type_!==ne&&data.type!==this.type_||(void 0===r&&(r=data.dts),data.dts=re(data.dts,r),data.pts=re(data.pts,r),n=data.dts,this.trigger("data",data))},this.flush=function(){r=n,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){r=void 0,n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};ie.prototype=new $;var se,oe=ie,ae=re,ue=function(t,e,n){var i,r="";for(i=e;i<n;i++)r+="%"+("00"+t[i].toString(16)).slice(-2);return r},le=function(t,e,n){return decodeURIComponent(ue(t,e,n))},ce=function(data){return data[0]<<21|data[1]<<14|data[2]<<7|data[3]},he={TXXX:function(t){var i;if(3===t.data[0]){for(i=1;i<t.data.length;i++)if(0===t.data[i]){t.description=le(t.data,1,i),t.value=le(t.data,i+1,t.data.length).replace(/\0*$/,"");break}t.data=t.value}},WXXX:function(t){var i;if(3===t.data[0])for(i=1;i<t.data.length;i++)if(0===t.data[i]){t.description=le(t.data,1,i),t.url=le(t.data,i+1,t.data.length);break}},PRIV:function(t){var i,e;for(i=0;i<t.data.length;i++)if(0===t.data[i]){t.owner=(e=t.data,unescape(ue(e,0,i)));break}t.privateData=t.data.subarray(i+1),t.data=t.privateData}};se=function(t){var i,e={descriptor:t&&t.descriptor},n=0,r=[],o=0;if(se.prototype.init.call(this),this.dispatchType=ee.METADATA_STREAM_TYPE.toString(16),e.descriptor)for(i=0;i<e.descriptor.length;i++)this.dispatchType+=("00"+e.descriptor[i].toString(16)).slice(-2);this.push=function(t){var e,l,c,h,i;if("timed-metadata"===t.type)if(t.dataAlignmentIndicator&&(o=0,r.length=0),0===r.length&&(t.data.length<10||t.data[0]!=="I".charCodeAt(0)||t.data[1]!=="D".charCodeAt(0)||t.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});else if(r.push(t),o+=t.data.byteLength,1===r.length&&(n=ce(t.data.subarray(6,10)),n+=10),!(o<n)){for(e={data:new Uint8Array(n),frames:[],pts:r[0].pts,dts:r[0].dts},i=0;i<n;)e.data.set(r[0].data.subarray(0,n-i),i),i+=r[0].data.byteLength,o-=r[0].data.byteLength,r.shift();l=10,64&e.data[5]&&(l+=4,l+=ce(e.data.subarray(10,14)),n-=ce(e.data.subarray(16,20)));do{if((c=ce(e.data.subarray(l+4,l+8)))<1)return void this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping metadata parsing."});if((h={id:String.fromCharCode(e.data[l],e.data[l+1],e.data[l+2],e.data[l+3]),data:e.data.subarray(l+10,l+c+10)}).key=h.id,he[h.id]&&(he[h.id](h),"com.apple.streaming.transportStreamTimestamp"===h.owner)){var d=h.data,f=(1&d[3])<<30|d[4]<<22|d[5]<<14|d[6]<<6|d[7]>>>2;f*=4,f+=3&d[7],h.timeStamp=f,void 0===e.pts&&void 0===e.dts&&(e.pts=h.timeStamp,e.dts=h.timeStamp),this.trigger("timestamp",h)}e.frames.push(h),l+=10,l+=c}while(l<n);this.trigger("data",e)}}},se.prototype=new $;var de,fe,pe,me=se,ge=oe,ve=188;(de=function(){var t=new Uint8Array(ve),e=0;de.prototype.init.call(this),this.push=function(n){var r,o=0,l=ve;for(e?((r=new Uint8Array(n.byteLength+e)).set(t.subarray(0,e)),r.set(n,e),e=0):r=n;l<r.byteLength;)71!==r[o]||71!==r[l]?(o++,l++):(this.trigger("data",r.subarray(o,l)),o+=ve,l+=ve);o<r.byteLength&&(t.set(r.subarray(o),0),e=r.byteLength-o)},this.flush=function(){e===ve&&71===t[0]&&(this.trigger("data",t),e=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){e=0,this.trigger("reset")}}).prototype=new $,fe=function(){var t,e,n,r;fe.prototype.init.call(this),r=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,t=function(t,r){var o=0;r.payloadUnitStartIndicator&&(o+=t[o]+1),"pat"===r.type?e(t.subarray(o),r):n(t.subarray(o),r)},e=function(t,e){e.section_number=t[7],e.last_section_number=t[8],r.pmtPid=(31&t[10])<<8|t[11],e.pmtPid=r.pmtPid},n=function(t,e){var n,o;if(1&t[5]){for(r.programMapTable={video:null,audio:null,"timed-metadata":{}},n=3+((15&t[1])<<8|t[2])-4,o=12+((15&t[10])<<8|t[11]);o<n;){var l=t[o],c=(31&t[o+1])<<8|t[o+2];l===ee.H264_STREAM_TYPE&&null===r.programMapTable.video?r.programMapTable.video=c:l===ee.ADTS_STREAM_TYPE&&null===r.programMapTable.audio?r.programMapTable.audio=c:l===ee.METADATA_STREAM_TYPE&&(r.programMapTable["timed-metadata"][c]=l),o+=5+((15&t[o+3])<<8|t[o+4])}e.programMapTable=r.programMapTable}},this.push=function(e){var n={},r=4;if(n.payloadUnitStartIndicator=!!(64&e[1]),n.pid=31&e[1],n.pid<<=8,n.pid|=e[2],(48&e[3])>>>4>1&&(r+=e[r]+1),0===n.pid)n.type="pat",t(e.subarray(r),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",t(e.subarray(r),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([e,r,n]):this.processPes_(e,r,n)},this.processPes_=function(t,e,n){n.pid===this.programMapTable.video?n.streamType=ee.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=ee.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=t.subarray(e),this.trigger("data",n)}},fe.prototype=new $,fe.STREAM_TYPES={h264:27,adts:15},pe=function(){var t,e=this,n=!1,video={data:[],size:0},audio={data:[],size:0},r={data:[],size:0},o=function(t,n,r){var o,l,c=new Uint8Array(t.size),h={type:n},i=0,d=0;if(t.data.length&&!(t.size<9)){for(h.trackId=t.data[0].pid,i=0;i<t.data.length;i++)l=t.data[i],c.set(l.data,d),d+=l.data.byteLength;var f,m,v,y;m=h,y=(f=c)[0]<<16|f[1]<<8|f[2],m.data=new Uint8Array,1===y&&(m.packetLength=6+(f[4]<<8|f[5]),m.dataAlignmentIndicator=!!(4&f[6]),192&(v=f[7])&&(m.pts=(14&f[9])<<27|(255&f[10])<<20|(254&f[11])<<12|(255&f[12])<<5|(254&f[13])>>>3,m.pts*=4,m.pts+=(6&f[13])>>>1,m.dts=m.pts,64&v&&(m.dts=(14&f[14])<<27|(255&f[15])<<20|(254&f[16])<<12|(255&f[17])<<5|(254&f[18])>>>3,m.dts*=4,m.dts+=(6&f[18])>>>1)),m.data=f.subarray(9+f[8])),o="video"===n||h.packetLength<=t.size,(r||o)&&(t.size=0,t.data.length=0),o&&e.trigger("data",h)}};pe.prototype.init.call(this),this.push=function(data){({pat:function(){},pes:function(){var t,e;switch(data.streamType){case ee.H264_STREAM_TYPE:t=video,e="video";break;case ee.ADTS_STREAM_TYPE:t=audio,e="audio";break;case ee.METADATA_STREAM_TYPE:t=r,e="timed-metadata";break;default:return}data.payloadUnitStartIndicator&&o(t,e,!0),t.data.push(data),t.size+=data.data.byteLength},pmt:function(){var r={type:"metadata",tracks:[]};null!==(t=data.programMapTable).video&&r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),n=!0,e.trigger("data",r)}})[data.type]()},this.reset=function(){video.size=0,video.data.length=0,audio.size=0,audio.data.length=0,this.trigger("reset")},this.flushStreams_=function(){o(video,"video"),o(audio,"audio"),o(r,"timed-metadata")},this.flush=function(){if(!n&&t){var r={type:"metadata",tracks:[]};null!==t.video&&r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),e.trigger("data",r)}n=!1,this.flushStreams_(),this.trigger("done")}},pe.prototype=new $;var ye={PAT_PID:0,MP2T_PACKET_LENGTH:ve,TransportPacketStream:de,TransportParseStream:fe,ElementaryStream:pe,TimestampRolloverStream:ge,CaptionStream:te.CaptionStream,Cea608Stream:te.Cea608Stream,Cea708Stream:te.Cea708Stream,MetadataStream:me};for(var be in ee)ee.hasOwnProperty(be)&&(ye[be]=ee[be]);var _e,we=ye,Te=St,xe=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];_e=function(t){var e,n=0;_e.prototype.init.call(this),this.skipWarn_=function(t,e){this.trigger("log",{level:"warn",message:"adts skiping bytes "+t+" to "+e+" in frame "+n+" outside syncword"})},this.push=function(r){var o,l,c,h,d,i=0;if(t||(n=0),"audio"===r.type){var f;for(e&&e.length?(c=e,(e=new Uint8Array(c.byteLength+r.data.byteLength)).set(c),e.set(r.data,c.byteLength)):e=r.data;i+7<e.length;)if(255===e[i]&&240==(246&e[i+1])){if("number"==typeof f&&(this.skipWarn_(f,i),f=null),l=2*(1&~e[i+1]),o=(3&e[i+3])<<11|e[i+4]<<3|(224&e[i+5])>>5,d=(h=1024*(1+(3&e[i+6])))*Te/xe[(60&e[i+2])>>>2],e.byteLength-i<o)break;this.trigger("data",{pts:r.pts+n*d,dts:r.dts+n*d,sampleCount:h,audioobjecttype:1+(e[i+2]>>>6&3),channelcount:(1&e[i+2])<<2|(192&e[i+3])>>>6,samplerate:xe[(60&e[i+2])>>>2],samplingfrequencyindex:(60&e[i+2])>>>2,samplesize:16,data:e.subarray(i+7+l,i+o)}),n++,i+=o}else"number"!=typeof f&&(f=i),i++;"number"==typeof f&&(this.skipWarn_(f,i),f=null),e=e.subarray(i)}},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){e=void 0,this.trigger("reset")},this.endTimeline=function(){e=void 0,this.trigger("endedtimeline")}},_e.prototype=new $;var Se,Ee,ke,Ae=_e,Ce=function(t){var e=t.byteLength,n=0,r=0;this.length=function(){return 8*e},this.bitsAvailable=function(){return 8*e+r},this.loadWord=function(){var o=t.byteLength-e,l=new Uint8Array(4),c=Math.min(4,e);if(0===c)throw new Error("no bytes available");l.set(t.subarray(o,o+c)),n=new DataView(l.buffer).getUint32(0),r=8*c,e-=c},this.skipBits=function(t){var o;r>t?(n<<=t,r-=t):(t-=r,t-=8*(o=Math.floor(t/8)),e-=o,this.loadWord(),n<<=t,r-=t)},this.readBits=function(t){var o=Math.min(r,t),l=n>>>32-o;return(r-=o)>0?n<<=o:e>0&&this.loadWord(),(o=t-o)>0?l<<o|this.readBits(o):l},this.skipLeadingZeros=function(){var t;for(t=0;t<r;++t)if(n&2147483648>>>t)return n<<=t,r-=t,t;return this.loadWord(),t+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var t=this.skipLeadingZeros();return this.readBits(t+1)-1},this.readExpGolomb=function(){var t=this.readUnsignedExpGolomb();return 1&t?1+t>>>1:-1*(t>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};Ee=function(){var i,t,e=0;Ee.prototype.init.call(this),this.push=function(data){var n;t?((n=new Uint8Array(t.byteLength+data.data.byteLength)).set(t),n.set(data.data,t.byteLength),t=n):t=data.data;for(var r=t.byteLength;e<r-3;e++)if(1===t[e+2]){i=e+5;break}for(;i<r;)switch(t[i]){case 0:if(0!==t[i-1]){i+=2;break}if(0!==t[i-2]){i++;break}e+3!==i-2&&this.trigger("data",t.subarray(e+3,i-2));do{i++}while(1!==t[i]&&i<r);e=i-2,i+=3;break;case 1:if(0!==t[i-1]||0!==t[i-2]){i+=3;break}this.trigger("data",t.subarray(e+3,i-2)),e=i-2,i+=3;break;default:i+=3}t=t.subarray(e),i-=e,e=0},this.reset=function(){t=null,e=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(e+3)),t=null,e=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},Ee.prototype=new $,ke={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},Se=function(){var t,e,n,r,o,l,c,h=new Ee;Se.prototype.init.call(this),t=this,this.push=function(t){"video"===t.type&&(e=t.trackId,n=t.pts,r=t.dts,h.push(t))},h.on("data",(function(data){var c={trackId:e,pts:n,dts:r,data:data,nalUnitTypeCode:31&data[0]};switch(c.nalUnitTypeCode){case 5:c.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:c.nalUnitType="sei_rbsp",c.escapedRBSP=o(data.subarray(1));break;case 7:c.nalUnitType="seq_parameter_set_rbsp",c.escapedRBSP=o(data.subarray(1)),c.config=l(c.escapedRBSP);break;case 8:c.nalUnitType="pic_parameter_set_rbsp";break;case 9:c.nalUnitType="access_unit_delimiter_rbsp"}t.trigger("data",c)})),h.on("done",(function(){t.trigger("done")})),h.on("partialdone",(function(){t.trigger("partialdone")})),h.on("reset",(function(){t.trigger("reset")})),h.on("endedtimeline",(function(){t.trigger("endedtimeline")})),this.flush=function(){h.flush()},this.partialFlush=function(){h.partialFlush()},this.reset=function(){h.reset()},this.endTimeline=function(){h.endTimeline()},c=function(t,e){var n,r=8,o=8;for(n=0;n<t;n++)0!==o&&(o=(r+e.readExpGolomb()+256)%256),r=0===o?r:o},o=function(data){for(var t,e,n=data.byteLength,r=[],i=1;i<n-2;)0===data[i]&&0===data[i+1]&&3===data[i+2]?(r.push(i+2),i+=2):i++;if(0===r.length)return data;t=n-r.length,e=new Uint8Array(t);var o=0;for(i=0;i<t;o++,i++)o===r[0]&&(o++,r.shift()),e[i]=data[o];return e},l=function(data){var t,e,n,r,o,l,h,d,f,m,v,i,y=0,_=0,w=0,T=0,x=[1,1];if(e=(t=new Ce(data)).readUnsignedByte(),r=t.readUnsignedByte(),n=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),ke[e]&&(3===(o=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(v=3!==o?8:12,i=0;i<v;i++)t.readBoolean()&&c(i<6?16:64,t);if(t.skipUnsignedExpGolomb(),0===(l=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===l)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),h=t.readUnsignedExpGolomb(),i=0;i<h;i++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),d=t.readUnsignedExpGolomb(),f=t.readUnsignedExpGolomb(),0===(m=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(y=t.readUnsignedExpGolomb(),_=t.readUnsignedExpGolomb(),w=t.readUnsignedExpGolomb(),T=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(t.readUnsignedByte()){case 1:x=[1,1];break;case 2:x=[12,11];break;case 3:x=[10,11];break;case 4:x=[16,11];break;case 5:x=[40,33];break;case 6:x=[24,11];break;case 7:x=[20,11];break;case 8:x=[32,11];break;case 9:x=[80,33];break;case 10:x=[18,11];break;case 11:x=[15,11];break;case 12:x=[64,33];break;case 13:x=[160,99];break;case 14:x=[4,3];break;case 15:x=[3,2];break;case 16:x=[2,1];break;case 255:x=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}x&&(x[0],x[1])}return{profileIdc:e,levelIdc:n,profileCompatibility:r,width:16*(d+1)-2*y-2*_,height:(2-m)*(f+1)*16-2*w-2*T,sarRatio:x}}},Se.prototype=new $;var Oe,je={H264Stream:Se,NalByteStream:Ee},Ie=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],Le=function(header,t){var e=header[t+6]<<21|header[t+7]<<14|header[t+8]<<7|header[t+9];return e=e>=0?e:0,(16&header[t+5])>>4?e+20:e+10},De=function t(data,e){return data.length-e<10||data[e]!=="I".charCodeAt(0)||data[e+1]!=="D".charCodeAt(0)||data[e+2]!=="3".charCodeAt(0)?e:t(data,e+=Le(data,e))},Pe=function(data){return data[0]<<21|data[1]<<14|data[2]<<7|data[3]},Me={isLikelyAacData:function(data){var t=De(data,0);return data.length>=t+2&&!(255&~data[t])&&!(240&~data[t+1])&&16==(22&data[t+1])},parseId3TagSize:Le,parseAdtsSize:function(header,t){var e=(224&header[t+5])>>5,n=header[t+4]<<3;return 6144&header[t+3]|n|e},parseType:function(header,t){return header[t]==="I".charCodeAt(0)&&header[t+1]==="D".charCodeAt(0)&&header[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&header[t]&&!(240&~header[t+1])?"audio":null},parseSampleRate:function(t){for(var i=0;i+5<t.length;){if(255===t[i]&&240==(246&t[i+1]))return Ie[(60&t[i+2])>>>2];i++}return null},parseAacTimestamp:function(t){var e,n,r;e=10,64&t[5]&&(e+=4,e+=Pe(t.subarray(10,14)));do{if((n=Pe(t.subarray(e+4,e+8)))<1)return null;if("PRIV"===String.fromCharCode(t[e],t[e+1],t[e+2],t[e+3])){r=t.subarray(e+10,e+n+10);for(var i=0;i<r.byteLength;i++)if(0===r[i]){var o=unescape(function(t,e,n){var i,r="";for(i=e;i<n;i++)r+="%"+("00"+t[i].toString(16)).slice(-2);return r}(r,0,i));if("com.apple.streaming.transportStreamTimestamp"===o){var l=r.subarray(i+1),c=(1&l[3])<<30|l[4]<<22|l[5]<<14|l[6]<<6|l[7]>>>2;return c*=4,c+=3&l[7]}break}}e+=10,e+=n}while(e<t.byteLength);return null}};(Oe=function(){var t=new Uint8Array,e=0;Oe.prototype.init.call(this),this.setTimestamp=function(t){e=t},this.push=function(n){var r,o,l,c,h=0,d=0;for(t.length?(c=t.length,(t=new Uint8Array(n.byteLength+c)).set(t.subarray(0,c)),t.set(n,c)):t=n;t.length-d>=3;)if(t[d]!=="I".charCodeAt(0)||t[d+1]!=="D".charCodeAt(0)||t[d+2]!=="3".charCodeAt(0))if(255&~t[d]||240&~t[d+1])d++;else{if(t.length-d<7)break;if(d+(h=Me.parseAdtsSize(t,d))>t.length)break;l={type:"audio",data:t.subarray(d,d+h),pts:e,dts:e},this.trigger("data",l),d+=h}else{if(t.length-d<10)break;if(d+(h=Me.parseId3TagSize(t,d))>t.length)break;o={type:"timed-metadata",data:t.subarray(d,d+h)},this.trigger("data",o),d+=h}r=t.length-d,t=r>0?t.subarray(d):new Uint8Array},this.reset=function(){t=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){t=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new $;var Ne,Re,Ue,Be,Fe=Oe,ze=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],qe=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],He=je.H264Stream,Ve=Me.isLikelyAacData,We=St,Ye=function(t,e){e.stream=t,this.trigger("log",e)},Ge=function(t,e){for(var n=Object.keys(e),i=0;i<n.length;i++){var r=n[i];"headOfPipeline"!==r&&e[r].on&&e[r].on("log",Ye.bind(t,r))}},Xe=function(a,b){var i;if(a.length!==b.length)return!1;for(i=0;i<a.length;i++)if(a[i]!==b[i])return!1;return!0},Ke=function(t,e,n,r,o,l){return{start:{dts:t,pts:t+(n-e)},end:{dts:t+(r-e),pts:t+(o-n)},prependedContentDuration:l,baseMediaDecodeTime:t}};Re=function(track,t){var e,n=[],r=0,o=0,l=1/0;e=(t=t||{}).firstSequenceNumber||0,Re.prototype.init.call(this),this.push=function(data){Rt(track,data),track&&ze.forEach((function(t){track[t]=data[t]})),n.push(data)},this.setEarliestDts=function(t){r=t},this.setVideoBaseMediaDecodeTime=function(t){l=t},this.setAudioAppendStart=function(t){o=t},this.flush=function(){var c,h,d,f,m,v,y;0!==n.length?(c=It(n,track,r),track.baseMediaDecodeTime=Nt(track,t.keepOriginalTimestamps),y=jt(track,c,o,l),track.samples=Lt(c),d=lt(Dt(c)),n=[],h=ct(e,[track]),f=new Uint8Array(h.byteLength+d.byteLength),e++,f.set(h),f.set(d,h.byteLength),Mt(track),m=Math.ceil(1024*We/track.samplerate),c.length&&(v=c.length*m,this.trigger("segmentTimingInfo",Ke(At(track.baseMediaDecodeTime,track.samplerate),c[0].dts,c[0].pts,c[0].dts+v,c[0].pts+v,y||0)),this.trigger("timingInfo",{start:c[0].pts,end:c[0].pts+v})),this.trigger("data",{track:track,boxes:f}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){Mt(track),n=[],this.trigger("reset")}},Re.prototype=new $,Ne=function(track,t){var e,n,r,o=[],l=[];e=(t=t||{}).firstSequenceNumber||0,Ne.prototype.init.call(this),delete track.minPTS,this.gopCache_=[],this.push=function(t){Rt(track,t),"seq_parameter_set_rbsp"!==t.nalUnitType||n||(n=t.config,track.sps=[t.data],qe.forEach((function(t){track[t]=n[t]}),this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,track.pps=[t.data]),o.push(t)},this.flush=function(){for(var n,r,c,h,d,f,m,v,y=0;o.length&&"access_unit_delimiter_rbsp"!==o[0].nalUnitType;)o.shift();if(0===o.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(n=pt(o),(c=mt(n))[0][0].keyFrame||((r=this.getGopForFusion_(o[0],track))?(y=r.duration,c.unshift(r),c.byteLength+=r.byteLength,c.nalCount+=r.nalCount,c.pts=r.pts,c.dts=r.dts,c.duration+=r.duration):c=gt(c)),l.length){var _;if(!(_=t.alignGopsAtEnd?this.alignGopsAtEnd_(c):this.alignGopsAtStart_(c)))return this.gopCache_.unshift({gop:c.pop(),pps:track.pps,sps:track.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),o=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");Mt(track),c=_}Rt(track,c),track.samples=vt(c),d=lt(yt(c)),track.baseMediaDecodeTime=Nt(track,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",c.map((function(t){return{pts:t.pts,dts:t.dts,byteLength:t.byteLength}}))),m=c[0],v=c[c.length-1],this.trigger("segmentTimingInfo",Ke(track.baseMediaDecodeTime,m.dts,m.pts,v.dts+v.duration,v.pts+v.duration,y)),this.trigger("timingInfo",{start:c[0].pts,end:c[c.length-1].pts+c[c.length-1].duration}),this.gopCache_.unshift({gop:c.pop(),pps:track.pps,sps:track.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),o=[],this.trigger("baseMediaDecodeTime",track.baseMediaDecodeTime),this.trigger("timelineStartInfo",track.timelineStartInfo),h=ct(e,[track]),f=new Uint8Array(h.byteLength+d.byteLength),e++,f.set(h),f.set(d,h.byteLength),this.trigger("data",{track:track,boxes:f}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),o=[],this.gopCache_.length=0,l.length=0,this.trigger("reset")},this.resetStream_=function(){Mt(track),n=void 0,r=void 0},this.getGopForFusion_=function(t){var e,n,r,o,i,l=1/0;for(i=0;i<this.gopCache_.length;i++)r=(o=this.gopCache_[i]).gop,track.pps&&Xe(track.pps[0],o.pps[0])&&track.sps&&Xe(track.sps[0],o.sps[0])&&(r.dts<track.timelineStartInfo.dts||(e=t.dts-r.dts-r.duration)>=-1e4&&e<=45e3&&(!n||l>e)&&(n=o,l=e));return n?n.gop:null},this.alignGopsAtStart_=function(t){var e,n,r,o,c,h,d,f;for(c=t.byteLength,h=t.nalCount,d=t.duration,e=n=0;e<l.length&&n<t.length&&(r=l[e],o=t[n],r.pts!==o.pts);)o.pts>r.pts?e++:(n++,c-=o.byteLength,h-=o.nalCount,d-=o.duration);return 0===n?t:n===t.length?null:((f=t.slice(n)).byteLength=c,f.duration=d,f.nalCount=h,f.pts=f[0].pts,f.dts=f[0].dts,f)},this.alignGopsAtEnd_=function(t){var e,n,r,o,c,h,d;for(e=l.length-1,n=t.length-1,c=null,h=!1;e>=0&&n>=0;){if(r=l[e],o=t[n],r.pts===o.pts){h=!0;break}r.pts>o.pts?e--:(e===l.length-1&&(c=n),n--)}if(!h&&null===c)return null;if(0===(d=h?n:c))return t;var f=t.slice(d),m=f.reduce((function(t,e){return t.byteLength+=e.byteLength,t.duration+=e.duration,t.nalCount+=e.nalCount,t}),{byteLength:0,duration:0,nalCount:0});return f.byteLength=m.byteLength,f.duration=m.duration,f.nalCount=m.nalCount,f.pts=f[0].pts,f.dts=f[0].dts,f},this.alignGopsWith=function(t){l=t}},Ne.prototype=new $,Be=function(t,e){this.numberOfTracks=0,this.metadataStream=e,void 0!==(t=t||{}).remux?this.remuxTracks=!!t.remux:this.remuxTracks=!0,"boolean"==typeof t.keepOriginalTimestamps?this.keepOriginalTimestamps=t.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Be.prototype.init.call(this),this.push=function(output){return output.text?this.pendingCaptions.push(output):output.frames?this.pendingMetadata.push(output):(this.pendingTracks.push(output.track),this.pendingBytes+=output.boxes.byteLength,"video"===output.track.type&&(this.videoTrack=output.track,this.pendingBoxes.push(output.boxes)),void("audio"===output.track.type&&(this.audioTrack=output.track,this.pendingBoxes.unshift(output.boxes))))}},Be.prototype=new $,Be.prototype.flush=function(t){var caption,e,n,i,r=0,o={captions:[],captionStreams:{},metadata:[],info:{}},l=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==t&&"AudioSegmentStream"!==t)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?(l=this.videoTrack.timelineStartInfo.pts,qe.forEach((function(t){o.info[t]=this.videoTrack[t]}),this)):this.audioTrack&&(l=this.audioTrack.timelineStartInfo.pts,ze.forEach((function(t){o.info[t]=this.audioTrack[t]}),this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?o.type=this.pendingTracks[0].type:o.type="combined",this.emittedTracks+=this.pendingTracks.length,n=ht(this.pendingTracks),o.initSegment=new Uint8Array(n.byteLength),o.initSegment.set(n),o.data=new Uint8Array(this.pendingBytes),i=0;i<this.pendingBoxes.length;i++)o.data.set(this.pendingBoxes[i],r),r+=this.pendingBoxes[i].byteLength;for(i=0;i<this.pendingCaptions.length;i++)(caption=this.pendingCaptions[i]).startTime=Ot(caption.startPts,l,this.keepOriginalTimestamps),caption.endTime=Ot(caption.endPts,l,this.keepOriginalTimestamps),o.captionStreams[caption.stream]=!0,o.captions.push(caption);for(i=0;i<this.pendingMetadata.length;i++)(e=this.pendingMetadata[i]).cueTime=Ot(e.pts,l,this.keepOriginalTimestamps),o.metadata.push(e);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),i=0;i<o.captions.length;i++)caption=o.captions[i],this.trigger("caption",caption);for(i=0;i<o.metadata.length;i++)e=o.metadata[i],this.trigger("id3Frame",e)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},Be.prototype.setRemux=function(t){this.remuxTracks=t},Ue=function(t){var e,n,r=this,o=!0;Ue.prototype.init.call(this),t=t||{},this.baseMediaDecodeTime=t.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var o={};this.transmuxPipeline_=o,o.type="aac",o.metadataStream=new we.MetadataStream,o.aacStream=new Fe,o.audioTimestampRolloverStream=new we.TimestampRolloverStream("audio"),o.timedMetadataTimestampRolloverStream=new we.TimestampRolloverStream("timed-metadata"),o.adtsStream=new Ae,o.coalesceStream=new Be(t,o.metadataStream),o.headOfPipeline=o.aacStream,o.aacStream.pipe(o.audioTimestampRolloverStream).pipe(o.adtsStream),o.aacStream.pipe(o.timedMetadataTimestampRolloverStream).pipe(o.metadataStream).pipe(o.coalesceStream),o.metadataStream.on("timestamp",(function(t){o.aacStream.setTimestamp(t.timeStamp)})),o.aacStream.on("data",(function(data){"timed-metadata"!==data.type&&"audio"!==data.type||o.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:r.baseMediaDecodeTime},codec:"adts",type:"audio"},o.coalesceStream.numberOfTracks++,o.audioSegmentStream=new Re(n,t),o.audioSegmentStream.on("log",r.getLogTrigger_("audioSegmentStream")),o.audioSegmentStream.on("timingInfo",r.trigger.bind(r,"audioTimingInfo")),o.adtsStream.pipe(o.audioSegmentStream).pipe(o.coalesceStream),r.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!e}))})),o.coalesceStream.on("data",this.trigger.bind(this,"data")),o.coalesceStream.on("done",this.trigger.bind(this,"done")),Ge(this,o)},this.setupTsPipeline=function(){var o={};this.transmuxPipeline_=o,o.type="ts",o.metadataStream=new we.MetadataStream,o.packetStream=new we.TransportPacketStream,o.parseStream=new we.TransportParseStream,o.elementaryStream=new we.ElementaryStream,o.timestampRolloverStream=new we.TimestampRolloverStream,o.adtsStream=new Ae,o.h264Stream=new He,o.captionStream=new we.CaptionStream(t),o.coalesceStream=new Be(t,o.metadataStream),o.headOfPipeline=o.packetStream,o.packetStream.pipe(o.parseStream).pipe(o.elementaryStream).pipe(o.timestampRolloverStream),o.timestampRolloverStream.pipe(o.h264Stream),o.timestampRolloverStream.pipe(o.adtsStream),o.timestampRolloverStream.pipe(o.metadataStream).pipe(o.coalesceStream),o.h264Stream.pipe(o.captionStream).pipe(o.coalesceStream),o.elementaryStream.on("data",(function(data){var i;if("metadata"===data.type){for(i=data.tracks.length;i--;)e||"video"!==data.tracks[i].type?n||"audio"!==data.tracks[i].type||((n=data.tracks[i]).timelineStartInfo.baseMediaDecodeTime=r.baseMediaDecodeTime):(e=data.tracks[i]).timelineStartInfo.baseMediaDecodeTime=r.baseMediaDecodeTime;e&&!o.videoSegmentStream&&(o.coalesceStream.numberOfTracks++,o.videoSegmentStream=new Ne(e,t),o.videoSegmentStream.on("log",r.getLogTrigger_("videoSegmentStream")),o.videoSegmentStream.on("timelineStartInfo",(function(e){n&&!t.keepOriginalTimestamps&&(n.timelineStartInfo=e,o.audioSegmentStream.setEarliestDts(e.dts-r.baseMediaDecodeTime))})),o.videoSegmentStream.on("processedGopsInfo",r.trigger.bind(r,"gopInfo")),o.videoSegmentStream.on("segmentTimingInfo",r.trigger.bind(r,"videoSegmentTimingInfo")),o.videoSegmentStream.on("baseMediaDecodeTime",(function(t){n&&o.audioSegmentStream.setVideoBaseMediaDecodeTime(t)})),o.videoSegmentStream.on("timingInfo",r.trigger.bind(r,"videoTimingInfo")),o.h264Stream.pipe(o.videoSegmentStream).pipe(o.coalesceStream)),n&&!o.audioSegmentStream&&(o.coalesceStream.numberOfTracks++,o.audioSegmentStream=new Re(n,t),o.audioSegmentStream.on("log",r.getLogTrigger_("audioSegmentStream")),o.audioSegmentStream.on("timingInfo",r.trigger.bind(r,"audioTimingInfo")),o.audioSegmentStream.on("segmentTimingInfo",r.trigger.bind(r,"audioSegmentTimingInfo")),o.adtsStream.pipe(o.audioSegmentStream).pipe(o.coalesceStream)),r.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!e})}})),o.coalesceStream.on("data",this.trigger.bind(this,"data")),o.coalesceStream.on("id3Frame",(function(t){t.dispatchType=o.metadataStream.dispatchType,r.trigger("id3Frame",t)})),o.coalesceStream.on("caption",this.trigger.bind(this,"caption")),o.coalesceStream.on("done",this.trigger.bind(this,"done")),Ge(this,o)},this.setBaseMediaDecodeTime=function(r){var o=this.transmuxPipeline_;t.keepOriginalTimestamps||(this.baseMediaDecodeTime=r),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,Mt(n),o.audioTimestampRolloverStream&&o.audioTimestampRolloverStream.discontinuity()),e&&(o.videoSegmentStream&&(o.videoSegmentStream.gopCache_=[]),e.timelineStartInfo.dts=void 0,e.timelineStartInfo.pts=void 0,Mt(e),o.captionStream.reset()),o.timestampRolloverStream&&o.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(t){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(t)},this.setRemux=function(e){var n=this.transmuxPipeline_;t.remux=e,n&&n.coalesceStream&&n.coalesceStream.setRemux(e)},this.alignGopsWith=function(t){e&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(t)},this.getLogTrigger_=function(t){var e=this;return function(n){n.stream=t,e.trigger("log",n)}},this.push=function(data){if(o){var t=Ve(data);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),o=!1}this.transmuxPipeline_.headOfPipeline.push(data)},this.flush=function(){o=!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()}},Ue.prototype=new $;var $e,Qe,Je,Ze={Transmuxer:Ue,VideoSegmentStream:Ne,AudioSegmentStream:Re,AUDIO_PROPERTIES:ze,VIDEO_PROPERTIES:qe,generateSegmentTimingInfo:Ke},tn=function(t){return t>>>0},en=function(t){var e="";return e+=String.fromCharCode(t[0]),e+=String.fromCharCode(t[1]),e+=String.fromCharCode(t[2]),e+=String.fromCharCode(t[3])},nn=tn,rn=function t(data,path){var i,e,n,r,o,l=[];if(!path.length)return null;for(i=0;i<data.byteLength;)e=nn(data[i]<<24|data[i+1]<<16|data[i+2]<<8|data[i+3]),n=en(data.subarray(i+4,i+8)),r=e>1?i+e:data.byteLength,n===path[0]&&(1===path.length?l.push(data.subarray(i+8,r)):(o=t(data.subarray(i+8,r),path.slice(1))).length&&(l=l.concat(o))),i=r;return l},sn=tn,on=J.getUint64,an=function(data){var t={version:data[0],flags:new Uint8Array(data.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=on(data.subarray(4)):t.baseMediaDecodeTime=sn(data[4]<<24|data[5]<<16|data[6]<<8|data[7]),t},un=function(t){return{isLeading:(12&t[0])>>>2,dependsOn:3&t[0],isDependedOn:(192&t[1])>>>6,hasRedundancy:(48&t[1])>>>4,paddingValue:(14&t[1])>>>1,isNonSyncSample:1&t[1],degradationPriority:t[2]<<8|t[3]}},ln=function(data){var t,e={version:data[0],flags:new Uint8Array(data.subarray(1,4)),samples:[]},view=new DataView(data.buffer,data.byteOffset,data.byteLength),n=1&e.flags[2],r=4&e.flags[2],o=1&e.flags[1],l=2&e.flags[1],c=4&e.flags[1],h=8&e.flags[1],d=view.getUint32(4),f=8;for(n&&(e.dataOffset=view.getInt32(f),f+=4),r&&d&&(t={flags:un(data.subarray(f,f+4))},f+=4,o&&(t.duration=view.getUint32(f),f+=4),l&&(t.size=view.getUint32(f),f+=4),h&&(1===e.version?t.compositionTimeOffset=view.getInt32(f):t.compositionTimeOffset=view.getUint32(f),f+=4),e.samples.push(t),d--);d--;)t={},o&&(t.duration=view.getUint32(f),f+=4),l&&(t.size=view.getUint32(f),f+=4),c&&(t.flags=un(data.subarray(f,f+4)),f+=4),h&&(1===e.version?t.compositionTimeOffset=view.getInt32(f):t.compositionTimeOffset=view.getUint32(f),f+=4),e.samples.push(t);return e},cn=function(data){var i,view=new DataView(data.buffer,data.byteOffset,data.byteLength),t={version:data[0],flags:new Uint8Array(data.subarray(1,4)),trackId:view.getUint32(4)},e=1&t.flags[2],n=2&t.flags[2],r=8&t.flags[2],o=16&t.flags[2],l=32&t.flags[2],c=65536&t.flags[0],h=131072&t.flags[0];return i=8,e&&(i+=4,t.baseDataOffset=view.getUint32(12),i+=4),n&&(t.sampleDescriptionIndex=view.getUint32(i),i+=4),r&&(t.defaultSampleDuration=view.getUint32(i),i+=4),o&&(t.defaultSampleSize=view.getUint32(i),i+=4),l&&(t.defaultSampleFlags=view.getUint32(i)),c&&(t.durationIsEmpty=!0),!e&&h&&(t.baseDataOffsetIsMoof=!0),t},hn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},dn="undefined"!=typeof window?window:void 0!==hn?hn:"undefined"!=typeof self?self:{},fn=zt,pn=te.CaptionStream,mn=function(t,e){for(var n=t,i=0;i<e.length;i++){var r=e[i];if(n<r.size)return r;n-=r.size}return null},gn=function(t,e){var n=rn(t,["moof","traf"]),r=rn(t,["mdat"]),o={},l=[];return r.forEach((function(t,e){var r=n[e];l.push({mdat:t,traf:r})})),l.forEach((function(t){var n,r,l=t.mdat,c=t.traf,h=rn(c,["tfhd"]),d=cn(h[0]),f=d.trackId,m=rn(c,["tfdt"]),v=m.length>0?an(m[0]).baseMediaDecodeTime:0,y=rn(c,["trun"]);e===f&&y.length>0&&(n=function(t,e,n){var r=e,o=n.defaultSampleDuration||0,l=n.defaultSampleSize||0,c=n.trackId,h=[];return t.forEach((function(t){var e=ln(t).samples;e.forEach((function(t){void 0===t.duration&&(t.duration=o),void 0===t.size&&(t.size=l),t.trackId=c,t.dts=r,void 0===t.compositionTimeOffset&&(t.compositionTimeOffset=0),"bigint"==typeof r?(t.pts=r+dn.BigInt(t.compositionTimeOffset),r+=dn.BigInt(t.duration)):(t.pts=r+t.compositionTimeOffset,r+=t.duration)})),h=h.concat(e)})),h}(y,v,d),r=function(t,e,n){var r,i,o,l,c=new DataView(t.buffer,t.byteOffset,t.byteLength),h={logs:[],seiNals:[]};for(i=0;i+4<t.length;i+=o)if(o=c.getUint32(i),i+=4,!(o<=0))switch(31&t[i]){case 6:var data=t.subarray(i+1,i+1+o),d=mn(i,e);if(r={nalUnitType:"sei_rbsp",size:o,data:data,escapedRBSP:fn(data),trackId:n},d)r.pts=d.pts,r.dts=d.dts,l=d;else{if(!l){h.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+i+" for trackId "+n+". See mux.js#223."});break}r.pts=l.pts,r.dts=l.dts}h.seiNals.push(r)}return h}(l,n,f),o[f]||(o[f]={seiNals:[],logs:[]}),o[f].seiNals=o[f].seiNals.concat(r.seiNals),o[f].logs=o[f].logs.concat(r.logs))})),o},vn=function(){var t,e,n,r,o,l,c=!1;this.isInitialized=function(){return c},this.init=function(e){t=new pn,c=!0,l=!!e&&e.isPartial,t.on("data",(function(t){t.startTime=t.startPts/r,t.endTime=t.endPts/r,o.captions.push(t),o.captionStreams[t.stream]=!0})),t.on("log",(function(t){o.logs.push(t)}))},this.isNewInit=function(t,e){return!(t&&0===t.length||e&&"object"==typeof e&&0===Object.keys(e).length)&&(n!==t[0]||r!==e[n])},this.parse=function(t,l,c){var h;if(!this.isInitialized())return null;if(!l||!c)return null;if(this.isNewInit(l,c))n=l[0],r=c[n];else if(null===n||!r)return e.push(t),null;for(;e.length>0;){var d=e.shift();this.parse(d,l,c)}return h=function(t,e,n){if(null===e)return null;var r=gn(t,e)[e]||{};return{seiNals:r.seiNals,logs:r.logs,timescale:n}}(t,n,r),h&&h.logs&&(o.logs=o.logs.concat(h.logs)),null!==h&&h.seiNals?(this.pushNals(h.seiNals),this.flushStream(),o):o.logs.length?{logs:o.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(e){if(!this.isInitialized()||!e||0===e.length)return null;e.forEach((function(e){t.push(e)}))},this.flushStream=function(){if(!this.isInitialized())return null;l?t.partialFlush():t.flush()},this.clearParsedCaptions=function(){o.captions=[],o.captionStreams={},o.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;t.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){e=[],n=null,r=null,o?this.clearParsedCaptions():o={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},yn=tn,bn=function(t){return("00"+t.toString(16)).slice(-2)},_n=J.getUint64;$e=function(t,e){var n=rn(e,["moof","traf"]).reduce((function(e,n){var r,o,l=rn(n,["tfhd"])[0],c=yn(l[4]<<24|l[5]<<16|l[6]<<8|l[7]),h=t[c]||9e4,d=rn(n,["tfdt"])[0],f=new DataView(d.buffer,d.byteOffset,d.byteLength);return"bigint"==typeof(r=1===d[0]?_n(d.subarray(4,12)):f.getUint32(4))?o=r/dn.BigInt(h):"number"!=typeof r||isNaN(r)||(o=r/h),o<Number.MAX_SAFE_INTEGER&&(o=Number(o)),o<e&&(e=o),e}),1/0);return"bigint"==typeof n||isFinite(n)?n:0},Je=function(t){var e=0===t[0]?12:20;return yn(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])},Qe=function(t){var e=rn(t,["moov","trak"]),n=[];return e.forEach((function(t){var view,e,track={},r=rn(t,["tkhd"])[0];r&&(e=(view=new DataView(r.buffer,r.byteOffset,r.byteLength)).getUint8(0),track.id=0===e?view.getUint32(12):view.getUint32(20));var o=rn(t,["mdia","hdlr"])[0];if(o){var l=en(o.subarray(8,12));track.type="vide"===l?"video":"soun"===l?"audio":l}var c=rn(t,["mdia","minf","stbl","stsd"])[0];if(c){var h=c.subarray(8);track.codec=en(h.subarray(4,8));var d,f=rn(h,[track.codec])[0];f&&(/^[asm]vc[1-9]$/i.test(track.codec)?(d=f.subarray(78),"avcC"===en(d.subarray(4,8))&&d.length>11?(track.codec+=".",track.codec+=bn(d[9]),track.codec+=bn(d[10]),track.codec+=bn(d[11])):track.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(track.codec)?(d=f.subarray(28),"esds"===en(d.subarray(4,8))&&d.length>20&&0!==d[19]?(track.codec+="."+bn(d[19]),track.codec+="."+bn(d[20]>>>2&63).replace(/^0/,"")):track.codec="mp4a.40.2"):track.codec=track.codec.toLowerCase())}var m=rn(t,["mdia","mdhd"])[0];m&&(track.timescale=Je(m)),n.push(track)})),n};var wn=$e,Tn=Qe,xn=function(t){var e=31&t[1];return e<<=8,e|=t[2]},Sn=function(t){return!!(64&t[1])},En=function(t){var e=0;return(48&t[3])>>>4>1&&(e+=t[4]+1),e},kn=function(t){switch(t){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}},An={parseType:function(t,e){var n=xn(t);return 0===n?"pat":n===e?"pmt":e?"pes":null},parsePat:function(t){var e=Sn(t),n=4+En(t);return e&&(n+=t[n]+1),(31&t[n+10])<<8|t[n+11]},parsePmt:function(t){var e={},n=Sn(t),r=4+En(t);if(n&&(r+=t[r]+1),1&t[r+5]){var o;o=3+((15&t[r+1])<<8|t[r+2])-4;for(var l=12+((15&t[r+10])<<8|t[r+11]);l<o;){var i=r+l;e[(31&t[i+1])<<8|t[i+2]]=t[i],l+=5+((15&t[i+3])<<8|t[i+4])}return e}},parsePayloadUnitStartIndicator:Sn,parsePesType:function(t,e){switch(e[xn(t)]){case ee.H264_STREAM_TYPE:return"video";case ee.ADTS_STREAM_TYPE:return"audio";case ee.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(t){if(!Sn(t))return null;var e=4+En(t);if(e>=t.byteLength)return null;var n,r=null;return 192&(n=t[e+7])&&((r={}).pts=(14&t[e+9])<<27|(255&t[e+10])<<20|(254&t[e+11])<<12|(255&t[e+12])<<5|(254&t[e+13])>>>3,r.pts*=4,r.pts+=(6&t[e+13])>>>1,r.dts=r.pts,64&n&&(r.dts=(14&t[e+14])<<27|(255&t[e+15])<<20|(254&t[e+16])<<12|(255&t[e+17])<<5|(254&t[e+18])>>>3,r.dts*=4,r.dts+=(6&t[e+18])>>>1)),r},videoPacketContainsKeyFrame:function(t){for(var e=4+En(t),n=t.subarray(e),r=0,o=0,l=!1;o<n.byteLength-3;o++)if(1===n[o+2]){r=o+5;break}for(;r<n.byteLength;)switch(n[r]){case 0:if(0!==n[r-1]){r+=2;break}if(0!==n[r-2]){r++;break}o+3!==r-2&&"slice_layer_without_partitioning_rbsp_idr"===kn(31&n[o+3])&&(l=!0);do{r++}while(1!==n[r]&&r<n.length);o=r-2,r+=3;break;case 1:if(0!==n[r-1]||0!==n[r-2]){r+=3;break}"slice_layer_without_partitioning_rbsp_idr"===kn(31&n[o+3])&&(l=!0),o=r-2,r+=3;break;default:r+=3}return n=n.subarray(o),r-=o,o=0,n&&n.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===kn(31&n[o+3])&&(l=!0),l}},Cn=ae,On={};On.ts=An,On.aac=Me;var jn=St,In=188,Ln=71,Dn=function(t,e,n){for(var r,o,l,c,h=0,d=In,f=!1;d<=t.byteLength;)if(t[h]!==Ln||t[d]!==Ln&&d!==t.byteLength)h++,d++;else{if(r=t.subarray(h,d),"pes"===On.ts.parseType(r,e.pid))o=On.ts.parsePesType(r,e.table),l=On.ts.parsePayloadUnitStartIndicator(r),"audio"===o&&l&&(c=On.ts.parsePesTime(r))&&(c.type="audio",n.audio.push(c),f=!0);if(f)break;h+=In,d+=In}for(h=(d=t.byteLength)-In,f=!1;h>=0;)if(t[h]!==Ln||t[d]!==Ln&&d!==t.byteLength)h--,d--;else{if(r=t.subarray(h,d),"pes"===On.ts.parseType(r,e.pid))o=On.ts.parsePesType(r,e.table),l=On.ts.parsePayloadUnitStartIndicator(r),"audio"===o&&l&&(c=On.ts.parsePesTime(r))&&(c.type="audio",n.audio.push(c),f=!0);if(f)break;h-=In,d-=In}},Pn=function(t,e,n){for(var r,o,l,c,h,i,d,f=0,m=In,v=!1,y={data:[],size:0};m<t.byteLength;)if(t[f]!==Ln||t[m]!==Ln)f++,m++;else{if(r=t.subarray(f,m),"pes"===On.ts.parseType(r,e.pid))if(o=On.ts.parsePesType(r,e.table),l=On.ts.parsePayloadUnitStartIndicator(r),"video"===o&&(l&&!v&&(c=On.ts.parsePesTime(r))&&(c.type="video",n.video.push(c),v=!0),!n.firstKeyFrame)){if(l&&0!==y.size){for(h=new Uint8Array(y.size),i=0;y.data.length;)d=y.data.shift(),h.set(d,i),i+=d.byteLength;if(On.ts.videoPacketContainsKeyFrame(h)){var _=On.ts.parsePesTime(h);_?(n.firstKeyFrame=_,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.")}y.size=0}y.data.push(r),y.size+=r.byteLength}if(v&&n.firstKeyFrame)break;f+=In,m+=In}for(f=(m=t.byteLength)-In,v=!1;f>=0;)if(t[f]!==Ln||t[m]!==Ln)f--,m--;else{if(r=t.subarray(f,m),"pes"===On.ts.parseType(r,e.pid))o=On.ts.parsePesType(r,e.table),l=On.ts.parsePayloadUnitStartIndicator(r),"video"===o&&l&&(c=On.ts.parsePesTime(r))&&(c.type="video",n.video.push(c),v=!0);if(v)break;f-=In,m-=In}},Mn=function(t){var e={pid:null,table:null},n={};for(var r in function(t,e){for(var n,r=0,o=In;o<t.byteLength;)if(t[r]!==Ln||t[o]!==Ln)r++,o++;else{switch(n=t.subarray(r,o),On.ts.parseType(n,e.pid)){case"pat":e.pid=On.ts.parsePat(n);break;case"pmt":var table=On.ts.parsePmt(n);e.table=e.table||{},Object.keys(table).forEach((function(t){e.table[t]=table[t]}))}r+=In,o+=In}}(t,e),e.table){if(e.table.hasOwnProperty(r))switch(e.table[r]){case ee.H264_STREAM_TYPE:n.video=[],Pn(t,e,n),0===n.video.length&&delete n.video;break;case ee.ADTS_STREAM_TYPE:n.audio=[],Dn(t,e,n),0===n.audio.length&&delete n.audio}}return n},Nn=function(t,e){var n;return n=On.aac.isLikelyAacData(t)?function(t){for(var e,n=!1,r=0,o=null,l=null,c=0,h=0;t.length-h>=3;){switch(On.aac.parseType(t,h)){case"timed-metadata":if(t.length-h<10){n=!0;break}if((c=On.aac.parseId3TagSize(t,h))>t.length){n=!0;break}null===l&&(e=t.subarray(h,h+c),l=On.aac.parseAacTimestamp(e)),h+=c;break;case"audio":if(t.length-h<7){n=!0;break}if((c=On.aac.parseAdtsSize(t,h))>t.length){n=!0;break}null===o&&(e=t.subarray(h,h+c),o=On.aac.parseSampleRate(e)),r++,h+=c;break;default:h++}if(n)return null}if(null===o||null===l)return null;var d=jn/o;return{audio:[{type:"audio",dts:l,pts:l},{type:"audio",dts:l+1024*r*d,pts:l+1024*r*d}]}}(t):Mn(t),n&&(n.audio||n.video)?(function(t,e){if(t.audio&&t.audio.length){var n=e;(void 0===n||isNaN(n))&&(n=t.audio[0].dts),t.audio.forEach((function(t){t.dts=Cn(t.dts,n),t.pts=Cn(t.pts,n),t.dtsTime=t.dts/jn,t.ptsTime=t.pts/jn}))}if(t.video&&t.video.length){var r=e;if((void 0===r||isNaN(r))&&(r=t.video[0].dts),t.video.forEach((function(t){t.dts=Cn(t.dts,r),t.pts=Cn(t.pts,r),t.dtsTime=t.dts/jn,t.ptsTime=t.pts/jn})),t.firstKeyFrame){var o=t.firstKeyFrame;o.dts=Cn(o.dts,r),o.pts=Cn(o.pts,r),o.dtsTime=o.dts/jn,o.ptsTime=o.pts/jn}}}(n,e),n):null},Rn=function(){function t(t,e){this.options=e||{},this.self=t,this.init()}var e=t.prototype;return e.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Ze.Transmuxer(this.options),function(t,e){e.on("data",(function(e){var n=e.initSegment;e.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};var r=e.data;e.data=r.buffer,t.postMessage({action:"data",segment:e,byteOffset:r.byteOffset,byteLength:r.byteLength},[e.data])})),e.on("done",(function(data){t.postMessage({action:"done"})})),e.on("gopInfo",(function(e){t.postMessage({action:"gopInfo",gopInfo:e})})),e.on("videoSegmentTimingInfo",(function(e){var n={start:{decode:kt(e.start.dts),presentation:kt(e.start.pts)},end:{decode:kt(e.end.dts),presentation:kt(e.end.pts)},baseMediaDecodeTime:kt(e.baseMediaDecodeTime)};e.prependedContentDuration&&(n.prependedContentDuration=kt(e.prependedContentDuration)),t.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})})),e.on("audioSegmentTimingInfo",(function(e){var n={start:{decode:kt(e.start.dts),presentation:kt(e.start.pts)},end:{decode:kt(e.end.dts),presentation:kt(e.end.pts)},baseMediaDecodeTime:kt(e.baseMediaDecodeTime)};e.prependedContentDuration&&(n.prependedContentDuration=kt(e.prependedContentDuration)),t.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:n})})),e.on("id3Frame",(function(e){t.postMessage({action:"id3Frame",id3Frame:e})})),e.on("caption",(function(caption){t.postMessage({action:"caption",caption:caption})})),e.on("trackinfo",(function(e){t.postMessage({action:"trackinfo",trackInfo:e})})),e.on("audioTimingInfo",(function(e){t.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:kt(e.start),end:kt(e.end)}})})),e.on("videoTimingInfo",(function(e){t.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:kt(e.start),end:kt(e.end)}})})),e.on("log",(function(e){t.postMessage({action:"log",log:e})}))}(this.self,this.transmuxer)},e.pushMp4Captions=function(data){this.captionParser||(this.captionParser=new vn,this.captionParser.init());var t=new Uint8Array(data.data,data.byteOffset,data.byteLength),e=this.captionParser.parse(t,data.trackIds,data.timescales);this.self.postMessage({action:"mp4Captions",captions:e&&e.captions||[],logs:e&&e.logs||[],data:t.buffer},[t.buffer])},e.probeMp4StartTime=function(t){var e=t.timescales,data=t.data,n=wn(e,data);this.self.postMessage({action:"probeMp4StartTime",startTime:n,data:data},[data.buffer])},e.probeMp4Tracks=function(t){var data=t.data,e=Tn(data);this.self.postMessage({action:"probeMp4Tracks",tracks:e,data:data},[data.buffer])},e.probeTs=function(t){var data=t.data,e=t.baseStartTime,n="number"!=typeof e||isNaN(e)?void 0:e*St,r=Nn(data,n),o=null;r&&((o={hasVideo:r.video&&2===r.video.length||!1,hasAudio:r.audio&&2===r.audio.length||!1}).hasVideo&&(o.videoStart=r.video[0].ptsTime),o.hasAudio&&(o.audioStart=r.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:o,data:data},[data.buffer])},e.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},e.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},e.push=function(data){var t=new Uint8Array(data.data,data.byteOffset,data.byteLength);this.transmuxer.push(t)},e.reset=function(){this.transmuxer.reset()},e.setTimestampOffset=function(data){var t=data.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(Et(t)))},e.setAudioAppendStart=function(data){this.transmuxer.setAudioAppendStart(Math.ceil(Et(data.appendStart)))},e.setRemux=function(data){this.transmuxer.setRemux(data.remux)},e.flush=function(data){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},e.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},e.alignGopsWith=function(data){this.transmuxer.alignGopsWith(data.gopsToAlignWith.slice())},t}();self.onmessage=function(t){"init"===t.data.action&&t.data.options?this.messageHandlers=new Rn(self,t.data.options):(this.messageHandlers||(this.messageHandlers=new Rn(self)),t.data&&t.data.action&&"init"!==t.data.action&&this.messageHandlers[t.data.action]&&this.messageHandlers[t.data.action](t.data))}}))),Bo=Mo(Uo),Fo=function(t){var e=t.transmuxer,n=t.bytes,r=t.audioAppendStart,o=t.gopsToAlignWith,l=t.remux,c=t.onData,h=t.onTrackInfo,d=t.onAudioTimingInfo,f=t.onVideoTimingInfo,m=t.onVideoSegmentTimingInfo,v=t.onAudioSegmentTimingInfo,y=t.onId3,_=t.onCaptions,w=t.onDone,T=t.onEndedTimeline,x=t.onTransmuxerLog,S=t.isEndOfTimeline,E={buffer:[]},k=S;if(e.onmessage=function(n){e.currentTransmux===t&&("data"===n.data.action&&function(t,e,n){var r=t.data.segment,o=r.type,l=r.initSegment,c=r.captions,h=r.captionStreams,d=r.metadata,f=r.videoFrameDtsTime,m=r.videoFramePtsTime;e.buffer.push({captions:c,captionStreams:h,metadata:d});var v=t.data.segment.boxes||{data:t.data.segment.data},y={type:o,data:new Uint8Array(v.data,v.data.byteOffset,v.data.byteLength),initSegment:new Uint8Array(l.data,l.byteOffset,l.byteLength)};void 0!==f&&(y.videoFrameDtsTime=f),void 0!==m&&(y.videoFramePtsTime=m),n(y)}(n,E,c),"trackinfo"===n.data.action&&h(n.data.trackInfo),"gopInfo"===n.data.action&&function(t,e){e.gopInfo=t.data.gopInfo}(n,E),"audioTimingInfo"===n.data.action&&d(n.data.audioTimingInfo),"videoTimingInfo"===n.data.action&&f(n.data.videoTimingInfo),"videoSegmentTimingInfo"===n.data.action&&m(n.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===n.data.action&&v(n.data.audioSegmentTimingInfo),"id3Frame"===n.data.action&&y([n.data.id3Frame],n.data.id3Frame.dispatchType),"caption"===n.data.action&&_(n.data.caption),"endedtimeline"===n.data.action&&(k=!1,T()),"log"===n.data.action&&x(n.data.log),"transmuxed"===n.data.type&&(k||(e.onmessage=null,function(t){var e=t.transmuxedData,n=t.callback;e.buffer=[],n(e)}({transmuxedData:E,callback:w}),zo(e))))},r&&e.postMessage({action:"setAudioAppendStart",appendStart:r}),Array.isArray(o)&&e.postMessage({action:"alignGopsWith",gopsToAlignWith:o}),void 0!==l&&e.postMessage({action:"setRemux",remux:l}),n.byteLength){var A=n instanceof ArrayBuffer?n:n.buffer,C=n instanceof ArrayBuffer?0:n.byteOffset;e.postMessage({action:"push",data:A,byteOffset:C,byteLength:n.byteLength},[A])}S&&e.postMessage({action:"endTimeline"}),e.postMessage({action:"flush"})},zo=function(t){t.currentTransmux=null,t.transmuxQueue.length&&(t.currentTransmux=t.transmuxQueue.shift(),"function"==typeof t.currentTransmux?t.currentTransmux():Fo(t.currentTransmux))},qo=function(t,e){t.postMessage({action:e}),zo(t)},Ho=function(t,e){if(!e.currentTransmux)return e.currentTransmux=t,void qo(e,t);e.transmuxQueue.push(qo.bind(null,e,t))},Vo=function(t){if(!t.transmuxer.currentTransmux)return t.transmuxer.currentTransmux=t,void Fo(t);t.transmuxer.transmuxQueue.push(t)},Wo=function(t){Ho("reset",t)},Yo=function(t){var e=new Bo;e.currentTransmux=null,e.transmuxQueue=[];var n=e.terminate;return e.terminate=function(){return e.currentTransmux=null,e.transmuxQueue.length=0,n.call(e)},e.postMessage({action:"init",options:t}),e},Go=function(t){var e=t.transmuxer,n=t.endAction||t.action,r=t.callback,o=f()({},t,{endAction:null,transmuxer:null,callback:null});if(e.addEventListener("message",(function o(l){l.data.action===n&&(e.removeEventListener("message",o),l.data.data&&(l.data.data=new Uint8Array(l.data.data,t.byteOffset||0,t.byteLength||l.data.data.byteLength),t.data&&(t.data=l.data.data)),r(l.data))})),t.data){var l=t.data instanceof ArrayBuffer;o.byteOffset=l?0:t.data.byteOffset,o.byteLength=t.data.byteLength;var c=[l?t.data:t.data.buffer];e.postMessage(o,c)}else e.postMessage(o)},Xo=2,Ko=-101,$o=-102,Qo=function(t){t.forEach((function(t){t.abort()}))},Jo=function(t,e){return e.timedout?{status:e.status,message:"HLS request timed-out at URL: "+e.uri,code:Ko,xhr:e}:e.aborted?{status:e.status,message:"HLS request aborted at URL: "+e.uri,code:$o,xhr:e}:t?{status:e.status,message:"HLS request errored at URL: "+e.uri,code:Xo,xhr:e}:"arraybuffer"===e.responseType&&0===e.response.byteLength?{status:e.status,message:"Empty HLS response at URL: "+e.uri,code:Xo,xhr:e}:null},Zo=function(t,e,n){return function(r,o){var l=o.response,c=Jo(r,o);if(c)return n(c,t);if(16!==l.byteLength)return n({status:o.status,message:"Invalid HLS key at URL: "+o.uri,code:Xo,xhr:o},t);for(var view=new DataView(l),h=new Uint32Array([view.getUint32(0),view.getUint32(4),view.getUint32(8),view.getUint32(12)]),i=0;i<e.length;i++)e[i].bytes=h;return n(null,t)}},ta=function(t,e){var n=Object(H.a)(t.map.bytes);if("mp4"!==n){var r=t.map.resolvedUri||t.map.uri;return e({internal:!0,message:"Found unsupported "+(n||"unknown")+" container for initialization segment at URL: "+r,code:Xo})}Go({action:"probeMp4Tracks",data:t.map.bytes,transmuxer:t.transmuxer,callback:function(n){var r=n.tracks,data=n.data;return t.map.bytes=data,r.forEach((function(track){t.map.tracks=t.map.tracks||{},t.map.tracks[track.type]||(t.map.tracks[track.type]=track,"number"==typeof track.id&&track.timescale&&(t.map.timescales=t.map.timescales||{},t.map.timescales[track.id]=track.timescale))})),e(null)}})},ea=function(t){var e=t.segment,n=t.finishProcessingFn,r=t.responseType;return function(t,o){var l=Jo(t,o);if(l)return n(l,e);var c="arraybuffer"!==r&&o.responseText?function(t){for(var view=new Uint8Array(new ArrayBuffer(t.length)),i=0;i<t.length;i++)view[i]=t.charCodeAt(i);return view.buffer}(o.responseText.substring(e.lastReachedChar||0)):o.response;return e.stats=function(t){return{bandwidth:t.bandwidth,bytesReceived:t.bytesReceived||0,roundTripTime:t.roundTripTime||0}}(o),e.key?e.encryptedBytes=new Uint8Array(c):e.bytes=new Uint8Array(c),n(null,e)}},na=function(t){var e=t.segment,n=t.bytes,r=t.trackInfoFn,o=t.timingInfoFn,l=t.videoSegmentTimingInfoFn,c=t.audioSegmentTimingInfoFn,h=t.id3Fn,d=t.captionsFn,f=t.isEndOfTimeline,m=t.endedTimelineFn,v=t.dataFn,y=t.doneFn,_=t.onTransmuxerLog,w=e.map&&e.map.tracks||{},T=Boolean(w.audio&&w.video),x=o.bind(null,e,"audio","start"),S=o.bind(null,e,"audio","end"),E=o.bind(null,e,"video","start"),k=o.bind(null,e,"video","end");Go({action:"probeTs",transmuxer:e.transmuxer,data:n,baseStartTime:e.baseStartTime,callback:function(data){e.bytes=n=data.data;var t=data.result;t&&(r(e,{hasAudio:t.hasAudio,hasVideo:t.hasVideo,isMuxed:T}),r=null,t.hasAudio&&!T&&x(t.audioStart),t.hasVideo&&E(t.videoStart),x=null,E=null),Vo({bytes:n,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,remux:T,onData:function(t){t.type="combined"===t.type?"video":t.type,v(e,t)},onTrackInfo:function(t){r&&(T&&(t.isMuxed=!0),r(e,t))},onAudioTimingInfo:function(t){x&&void 0!==t.start&&(x(t.start),x=null),S&&void 0!==t.end&&S(t.end)},onVideoTimingInfo:function(t){E&&void 0!==t.start&&(E(t.start),E=null),k&&void 0!==t.end&&k(t.end)},onVideoSegmentTimingInfo:function(t){l(t)},onAudioSegmentTimingInfo:function(t){c(t)},onId3:function(t,n){h(e,t,n)},onCaptions:function(t){d(e,[t])},isEndOfTimeline:f,onEndedTimeline:function(){m()},onTransmuxerLog:_,onDone:function(t){y&&(t.type="combined"===t.type?"video":t.type,y(null,e,t))}})}})},ra=function(t){var e=t.segment,n=t.bytes,r=t.trackInfoFn,o=t.timingInfoFn,l=t.videoSegmentTimingInfoFn,c=t.audioSegmentTimingInfoFn,h=t.id3Fn,d=t.captionsFn,f=t.isEndOfTimeline,m=t.endedTimelineFn,v=t.dataFn,y=t.doneFn,_=t.onTransmuxerLog,w=new Uint8Array(n);if(Object(H.b)(w)){e.isFmp4=!0;var T=e.map.tracks,x={isFmp4:!0,hasVideo:!!T.video,hasAudio:!!T.audio};T.audio&&T.audio.codec&&"enca"!==T.audio.codec&&(x.audioCodec=T.audio.codec),T.video&&T.video.codec&&"encv"!==T.video.codec&&(x.videoCodec=T.video.codec),T.video&&T.audio&&(x.isMuxed=!0),r(e,x);var S=function(t){v(e,{data:w,type:x.hasAudio&&!x.isMuxed?"audio":"video"}),t&&t.length&&d(e,t),y(null,e,{})};Go({action:"probeMp4StartTime",timescales:e.map.timescales,data:w,transmuxer:e.transmuxer,callback:function(t){var data=t.data,r=t.startTime;n=data.buffer,e.bytes=w=data,x.hasAudio&&!x.isMuxed&&o(e,"audio","start",r),x.hasVideo&&o(e,"video","start",r),T.video&&data.byteLength&&e.transmuxer?Go({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:e.transmuxer,data:w,timescales:e.map.timescales,trackIds:[T.video.id],callback:function(t){n=t.data.buffer,e.bytes=w=t.data,t.logs.forEach((function(t){_(gs.mergeOptions(t,{stream:"mp4CaptionParser"}))})),S(t.captions)}}):S()}})}else if(e.transmuxer){if(void 0===e.container&&(e.container=Object(H.a)(w)),"ts"!==e.container&&"aac"!==e.container)return r(e,{hasAudio:!1,hasVideo:!1}),void y(null,e,{});na({segment:e,bytes:n,trackInfoFn:r,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:h,captionsFn:d,isEndOfTimeline:f,endedTimelineFn:m,dataFn:v,doneFn:y,onTransmuxerLog:_})}else y(null,e,{})},ia=function(t,e){var n,r=t.id,o=t.key,l=t.encryptedBytes,c=t.decryptionWorker;c.addEventListener("message",(function t(n){if(n.data.source===r){c.removeEventListener("message",t);var o=n.data.decrypted;e(new Uint8Array(o.bytes,o.byteOffset,o.byteLength))}})),n=o.bytes.slice?o.bytes.slice():new Uint32Array(Array.prototype.slice.call(o.bytes)),c.postMessage(yo({source:r,encrypted:l,key:n,iv:o.iv}),[l.buffer,n.buffer])},sa=function(t){var e=t.activeXhrs,n=t.decryptionWorker,r=t.trackInfoFn,o=t.timingInfoFn,l=t.videoSegmentTimingInfoFn,c=t.audioSegmentTimingInfoFn,h=t.id3Fn,d=t.captionsFn,f=t.isEndOfTimeline,m=t.endedTimelineFn,v=t.dataFn,y=t.doneFn,_=t.onTransmuxerLog,w=0,T=!1;return function(t,x){if(!T){if(t)return T=!0,Qo(e),y(t,x);if((w+=1)===e.length){var S=function(){if(x.encryptedBytes)return function(t){var e=t.decryptionWorker,n=t.segment,r=t.trackInfoFn,o=t.timingInfoFn,l=t.videoSegmentTimingInfoFn,c=t.audioSegmentTimingInfoFn,h=t.id3Fn,d=t.captionsFn,f=t.isEndOfTimeline,m=t.endedTimelineFn,v=t.dataFn,y=t.doneFn,_=t.onTransmuxerLog;ia({id:n.requestId,key:n.key,encryptedBytes:n.encryptedBytes,decryptionWorker:e},(function(t){n.bytes=t,ra({segment:n,bytes:n.bytes,trackInfoFn:r,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:h,captionsFn:d,isEndOfTimeline:f,endedTimelineFn:m,dataFn:v,doneFn:y,onTransmuxerLog:_})}))}({decryptionWorker:n,segment:x,trackInfoFn:r,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:h,captionsFn:d,isEndOfTimeline:f,endedTimelineFn:m,dataFn:v,doneFn:y,onTransmuxerLog:_});ra({segment:x,bytes:x.bytes,trackInfoFn:r,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:h,captionsFn:d,isEndOfTimeline:f,endedTimelineFn:m,dataFn:v,doneFn:y,onTransmuxerLog:_})};if(x.endOfAllRequests=Date.now(),x.map&&x.map.encryptedBytes&&!x.map.bytes)return ia({decryptionWorker:n,id:x.requestId+"-init",encryptedBytes:x.map.encryptedBytes,key:x.map.key},(function(t){x.map.bytes=t,ta(x,(function(t){if(t)return Qo(e),y(t,x);S()}))}));S()}}}},oa=function(t){var e=t.segment,n=t.progressFn;return t.trackInfoFn,t.timingInfoFn,t.videoSegmentTimingInfoFn,t.audioSegmentTimingInfoFn,t.id3Fn,t.captionsFn,t.isEndOfTimeline,t.endedTimelineFn,t.dataFn,function(t){if(!t.target.aborted)return e.stats=gs.mergeOptions(e.stats,function(t){var e=t.target,n={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-e.requestTime||0};return n.bytesReceived=t.loaded,n.bandwidth=Math.floor(n.bytesReceived/n.roundTripTime*8*1e3),n}(t)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),n(t,e)}},aa=function(t){var e=t.xhr,n=t.xhrOptions,r=t.decryptionWorker,o=t.segment,l=t.abortFn,c=t.progressFn,h=t.trackInfoFn,d=t.timingInfoFn,f=t.videoSegmentTimingInfoFn,m=t.audioSegmentTimingInfoFn,v=t.id3Fn,y=t.captionsFn,_=t.isEndOfTimeline,w=t.endedTimelineFn,T=t.dataFn,x=t.doneFn,S=t.onTransmuxerLog,E=[],k=sa({activeXhrs:E,decryptionWorker:r,trackInfoFn:h,timingInfoFn:d,videoSegmentTimingInfoFn:f,audioSegmentTimingInfoFn:m,id3Fn:v,captionsFn:y,isEndOfTimeline:_,endedTimelineFn:w,dataFn:T,doneFn:x,onTransmuxerLog:S});if(o.key&&!o.key.bytes){var A=[o.key];o.map&&!o.map.bytes&&o.map.key&&o.map.key.resolvedUri===o.key.resolvedUri&&A.push(o.map.key);var C=e(gs.mergeOptions(n,{uri:o.key.resolvedUri,responseType:"arraybuffer"}),Zo(o,A,k));E.push(C)}if(o.map&&!o.map.bytes){if(o.map.key&&(!o.key||o.key.resolvedUri!==o.map.key.resolvedUri)){var O=e(gs.mergeOptions(n,{uri:o.map.key.resolvedUri,responseType:"arraybuffer"}),Zo(o,[o.map.key],k));E.push(O)}var j=gs.mergeOptions(n,{uri:o.map.resolvedUri,responseType:"arraybuffer",headers:po(o.map)}),I=function(t){var e=t.segment,n=t.finishProcessingFn;return function(t,r){var o=Jo(t,r);if(o)return n(o,e);var l=new Uint8Array(r.response);if(e.map.key)return e.map.encryptedBytes=l,n(null,e);e.map.bytes=l,ta(e,(function(t){if(t)return t.xhr=r,t.status=r.status,n(t,e);n(null,e)}))}}({segment:o,finishProcessingFn:k}),L=e(j,I);E.push(L)}var D=gs.mergeOptions(n,{uri:o.part&&o.part.resolvedUri||o.resolvedUri,responseType:"arraybuffer",headers:po(o)}),P=e(D,ea({segment:o,finishProcessingFn:k,responseType:D.responseType}));P.addEventListener("progress",oa({segment:o,progressFn:c,trackInfoFn:h,timingInfoFn:d,videoSegmentTimingInfoFn:f,audioSegmentTimingInfoFn:m,id3Fn:v,captionsFn:y,isEndOfTimeline:_,endedTimelineFn:w,dataFn:T})),E.push(P);var M={};return E.forEach((function(t){t.addEventListener("loadend",function(t){var e=t.loadendState,n=t.abortFn;return function(t){t.target.aborted&&n&&!e.calledAbortFn&&(n(),e.calledAbortFn=!0)}}({loadendState:M,abortFn:l}))})),function(){return Qo(E)}},ua=bs("CodecUtils"),la=function(t,e){var n=e.attributes||{};return t&&t.mediaGroups&&t.mediaGroups.AUDIO&&n.AUDIO&&t.mediaGroups.AUDIO[n.AUDIO]},ca=function(t){var e={};return t.forEach((function(t){var n=t.mediaType,r=t.type,details=t.details;e[n]=e[n]||[],e[n].push(Object(M.i)(""+r+details))})),Object.keys(e).forEach((function(t){if(e[t].length>1)return ua("multiple "+t+" codecs found as attributes: "+e[t].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),void(e[t]=null);e[t]=e[t][0]})),e},ha=function(t){var e=0;return t.audio&&e++,t.video&&e++,e},da=function(t,e){var n=e.attributes||{},r=ca(function(t){var e=t.attributes||{};if(e.CODECS)return Object(M.h)(e.CODECS)}(e)||[]);if(la(t,e)&&!r.audio&&!function(t,e){if(!la(t,e))return!0;var n=e.attributes||{},r=t.mediaGroups.AUDIO[n.AUDIO];for(var o in r)if(!r[o].uri&&!r[o].playlists)return!0;return!1}(t,e)){var o=ca(Object(M.d)(t,n.AUDIO)||[]);o.audio&&(r.audio=o.audio)}return r},fa=bs("PlaylistSelector"),pa=function(t){if(t&&t.playlist){var e=t.playlist;return JSON.stringify({id:e.id,bandwidth:t.bandwidth,width:t.width,height:t.height,codecs:e.attributes&&e.attributes.CODECS||""})}},ma=function(t,e){if(!t)return"";var n=l.a.getComputedStyle(t);return n?n[e]:""},ga=function(t,e){var n=t.slice();t.sort((function(t,r){var o=e(t,r);return 0===o?n.indexOf(t)-n.indexOf(r):o}))},va=function(t,e){var n,r;return t.attributes.BANDWIDTH&&(n=t.attributes.BANDWIDTH),n=n||l.a.Number.MAX_VALUE,e.attributes.BANDWIDTH&&(r=e.attributes.BANDWIDTH),n-(r=r||l.a.Number.MAX_VALUE)},ya=function(t,e,n,r,o,c){if(t){var h={bandwidth:e,width:n,height:r,limitRenditionByPlayerDimensions:o},d=t.playlists;Gs.isAudioOnly(t)&&(d=c.getAudioTrackPlaylists_(),h.audioOnly=!0);var f=d.map((function(t){var e=t.attributes&&t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width,n=t.attributes&&t.attributes.RESOLUTION&&t.attributes.RESOLUTION.height;return{bandwidth:t.attributes&&t.attributes.BANDWIDTH||l.a.Number.MAX_VALUE,width:e,height:n,playlist:t}}));ga(f,(function(t,e){return t.bandwidth-e.bandwidth}));var m=(f=f.filter((function(t){return!Gs.isIncompatible(t.playlist)}))).filter((function(t){return Gs.isEnabled(t.playlist)}));m.length||(m=f.filter((function(t){return!Gs.isDisabled(t.playlist)})));var v=m.filter((function(t){return t.bandwidth*Do.BANDWIDTH_VARIANCE<e})),y=v[v.length-1],_=v.filter((function(t){return t.bandwidth===y.bandwidth}))[0];if(!1===o){var w=_||m[0]||f[0];if(w&&w.playlist){var T="sortedPlaylistReps";return _&&(T="bandwidthBestRep"),m[0]&&(T="enabledPlaylistReps"),fa("choosing "+pa(w)+" using "+T+" with options",h),w.playlist}return fa("could not choose a playlist with options",h),null}var x=v.filter((function(t){return t.width&&t.height}));ga(x,(function(t,e){return t.width-e.width}));var S=x.filter((function(t){return t.width===n&&t.height===r}));y=S[S.length-1];var E,k,A,C,O=S.filter((function(t){return t.bandwidth===y.bandwidth}))[0];if(O||(k=(E=x.filter((function(t){return t.width>n||t.height>r}))).filter((function(t){return t.width===E[0].width&&t.height===E[0].height})),y=k[k.length-1],A=k.filter((function(t){return t.bandwidth===y.bandwidth}))[0]),c.experimentalLeastPixelDiffSelector){var j=x.map((function(t){return t.pixelDiff=Math.abs(t.width-n)+Math.abs(t.height-r),t}));ga(j,(function(t,e){return t.pixelDiff===e.pixelDiff?e.bandwidth-t.bandwidth:t.pixelDiff-e.pixelDiff})),C=j[0]}var I=C||A||O||_||m[0]||f[0];if(I&&I.playlist){var L="sortedPlaylistReps";return C?L="leastPixelDiffRep":A?L="resolutionPlusOneRep":O?L="resolutionBestRep":_?L="bandwidthBestRep":m[0]&&(L="enabledPlaylistReps"),fa("choosing "+pa(I)+" using "+L+" with options",h),I.playlist}return fa("could not choose a playlist with options",h),null}},ba=function(){var t=this.useDevicePixelRatio&&l.a.devicePixelRatio||1;return ya(this.playlists.master,this.systemBandwidth,parseInt(ma(this.tech_.el(),"width"),10)*t,parseInt(ma(this.tech_.el(),"height"),10)*t,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},_a=function(t){var e=t.inbandTextTracks,n=t.metadataArray,r=t.timestampOffset,o=t.videoDuration;if(n){var c=l.a.WebKitDataCue||l.a.VTTCue,h=e.metadataTrack_;if(h&&(n.forEach((function(t){var time=t.cueTime+r;!("number"!=typeof time||l.a.isNaN(time)||time<0)&&time<1/0&&t.frames.forEach((function(t){var e=new c(time,time,t.value||t.url||t.data||"");e.frame=t,e.value=t,function(t){Object.defineProperties(t.frame,{id:{get:function(){return gs.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),t.value.key}},value:{get:function(){return gs.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),t.value.data}},privateData:{get:function(){return gs.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),t.value.data}}})}(e),h.addCue(e)}))})),h.cues&&h.cues.length)){for(var d=h.cues,f=[],i=0;i<d.length;i++)d[i]&&f.push(d[i]);var m=f.reduce((function(t,e){var n=t[e.startTime]||[];return n.push(e),t[e.startTime]=n,t}),{}),v=Object.keys(m).sort((function(a,b){return Number(a)-Number(b)}));v.forEach((function(t,e){var n=m[t],r=Number(v[e+1])||o;n.forEach((function(t){t.endTime=r}))}))}}},wa=function(t,e,track){var i,n;if(track&&track.cues)for(i=track.cues.length;i--;)(n=track.cues[i]).startTime>=t&&n.endTime<=e&&track.removeCue(n)},Ta=function(t){return"number"==typeof t&&isFinite(t)},xa=1/60,Sa=function(t){var e=t.startOfSegment,n=t.duration,r=t.segment,o=t.part,l=t.playlist,c=l.mediaSequence,h=l.id,d=l.segments,f=void 0===d?[]:d,m=t.mediaIndex,v=t.partIndex,y=t.timeline,_=f.length-1,w="mediaIndex/partIndex increment";t.getMediaInfoForTime?w="getMediaInfoForTime ("+t.getMediaInfoForTime+")":t.isSyncRequest&&(w="getSyncSegmentCandidate (isSyncRequest)"),t.independent&&(w+=" with independent "+t.independent);var T="number"==typeof v,x=t.segment.uri?"segment":"pre-segment",S=T?Ds({preloadSegment:r})-1:0;return x+" ["+(c+m)+"/"+(c+_)+"]"+(T?" part ["+v+"/"+S+"]":"")+" segment start/end ["+r.start+" => "+r.end+"]"+(T?" part start/end ["+o.start+" => "+o.end+"]":"")+" startOfSegment ["+e+"] duration ["+n+"] timeline ["+y+"] selected by ["+w+"] playlist ["+h+"]"},Ea=function(t){return t+"TimingInfo"},ka=function(t){var e=t.timelineChangeController,n=t.currentTimeline,r=t.segmentTimeline,o=t.loaderType,l=t.audioDisabled;if(n===r)return!1;if("audio"===o){var c=e.lastTimelineChange({type:"main"});return!c||c.to!==r}if("main"===o&&l){var h=e.pendingTimelineChange({type:"audio"});return!h||h.to!==r}return!1},Aa=function(t){var e=t.segmentDuration,n=t.maxDuration;return!!e&&Math.round(e)>n+_s},Ca=function(t,e){if("hls"!==e)return null;var n,r,o=(n={audioTimingInfo:t.audioTimingInfo,videoTimingInfo:t.videoTimingInfo},r=0,["video","audio"].forEach((function(t){var e=n[t+"TimingInfo"];if(e){var o,c=e.start,h=e.end;"bigint"==typeof c||"bigint"==typeof h?o=l.a.BigInt(h)-l.a.BigInt(c):"number"==typeof c&&"number"==typeof h&&(o=h-c),void 0!==o&&o>r&&(r=o)}})),"bigint"==typeof r&&r<Number.MAX_SAFE_INTEGER&&(r=Number(r)),r);if(!o)return null;var c=t.playlist.targetDuration,h=Aa({segmentDuration:o,maxDuration:2*c}),d=Aa({segmentDuration:o,maxDuration:c}),f="Segment with index "+t.mediaIndex+" from playlist "+t.playlist.id+" has a duration of "+o+" when the reported duration is "+t.duration+" and the target duration is "+c+". 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 h||d?{severity:h?"warn":"info",message:f}:null},Oa=function(t){function e(e,n){var r;if(r=t.call(this)||this,!e)throw new TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");return r.bandwidth=e.bandwidth,r.throughput={rate:0,count:0},r.roundTrip=NaN,r.resetStats_(),r.mediaIndex=null,r.partIndex=null,r.hasPlayed_=e.hasPlayed,r.currentTime_=e.currentTime,r.seekable_=e.seekable,r.seeking_=e.seeking,r.duration_=e.duration,r.mediaSource_=e.mediaSource,r.vhs_=e.vhs,r.loaderType_=e.loaderType,r.currentMediaInfo_=void 0,r.startingMediaInfo_=void 0,r.segmentMetadataTrack_=e.segmentMetadataTrack,r.goalBufferLength_=e.goalBufferLength,r.sourceType_=e.sourceType,r.sourceUpdater_=e.sourceUpdater,r.inbandTextTracks_=e.inbandTextTracks,r.state_="INIT",r.timelineChangeController_=e.timelineChangeController,r.shouldSaveSegmentTimingInfo_=!0,r.parse708captions_=e.parse708captions,r.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,r.captionServices_=e.captionServices,r.experimentalExactManifestTimings=e.experimentalExactManifestTimings,r.checkBufferTimeout_=null,r.error_=void 0,r.currentTimeline_=-1,r.pendingSegment_=null,r.xhrOptions_=null,r.pendingSegments_=[],r.audioDisabled_=!1,r.isPendingTimestampOffset_=!1,r.gopBuffer_=[],r.timeMapping_=0,r.safeAppend_=gs.browser.IE_VERSION>=11,r.appendInitSegment_={audio:!0,video:!0},r.playlistOfLastInitSegment_={audio:null,video:null},r.callQueue_=[],r.loadQueue_=[],r.metadataQueue_={id3:[],caption:[]},r.waitingOnRemove_=!1,r.quotaExceededErrorRetryTimeout_=null,r.activeInitSegmentId_=null,r.initSegments_={},r.cacheEncryptionKeys_=e.cacheEncryptionKeys,r.keyCache_={},r.decrypter_=e.decrypter,r.syncController_=e.syncController,r.syncPoint_={segmentIndex:0,time:0},r.transmuxer_=r.createTransmuxer_(),r.triggerSyncInfoUpdate_=function(){return r.trigger("syncinfoupdate")},r.syncController_.on("syncinfoupdate",r.triggerSyncInfoUpdate_),r.mediaSource_.addEventListener("sourceopen",(function(){r.isEndOfStream_()||(r.ended_=!1)})),r.fetchAtBuffer_=!1,r.logger_=bs("SegmentLoader["+r.loaderType_+"]"),Object.defineProperty(_()(r),"state",{get:function(){return this.state_},set:function(t){t!==this.state_&&(this.logger_(this.state_+" -> "+t),this.state_=t,this.trigger("statechange"))}}),r.sourceUpdater_.on("ready",(function(){r.hasEnoughInfoToAppend_()&&r.processCallQueue_()})),"main"===r.loaderType_&&r.timelineChangeController_.on("pendingtimelinechange",(function(){r.hasEnoughInfoToAppend_()&&r.processCallQueue_()})),"audio"===r.loaderType_&&r.timelineChangeController_.on("timelinechange",(function(){r.hasEnoughInfoToLoad_()&&r.processLoadQueue_(),r.hasEnoughInfoToAppend_()&&r.processCallQueue_()})),r}T()(e,t);var n=e.prototype;return n.createTransmuxer_=function(){return Yo({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_&&l.a.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},n.setAudio=function(t){this.audioDisabled_=!t,t?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,l.a.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},n.checkForAbort_=function(t){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==t:(this.state="READY",!0)},n.error=function(t){return void 0!==t&&(this.logger_("error occurred:",t),this.error_=t),this.pendingSegment_=null,this.error_},n.endOfStream=function(){this.ended_=!0,this.transmuxer_&&Wo(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},n.buffered_=function(){var t=this.getMediaInfo_();if(!this.sourceUpdater_||!t)return gs.createTimeRanges();if("main"===this.loaderType_){var e=t.hasAudio,n=t.hasVideo,r=t.isMuxed;if(n&&e&&!this.audioDisabled_&&!r)return this.sourceUpdater_.buffered();if(n)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},n.initSegmentForMap=function(map,t){if(void 0===t&&(t=!1),!map)return null;var e=bo(map),n=this.initSegments_[e];return t&&!n&&map.bytes&&(this.initSegments_[e]=n={resolvedUri:map.resolvedUri,byterange:map.byterange,bytes:map.bytes,tracks:map.tracks,timescales:map.timescales}),n||map},n.segmentKey=function(t,e){if(void 0===e&&(e=!1),!t)return null;var n=_o(t),r=this.keyCache_[n];this.cacheEncryptionKeys_&&e&&!r&&t.bytes&&(this.keyCache_[n]=r={resolvedUri:t.resolvedUri,bytes:t.bytes});var o={resolvedUri:(r||t).resolvedUri};return r&&(o.bytes=r.bytes),o},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(t,e){if(void 0===e&&(e={}),t){var n=this.playlist_,r=this.pendingSegment_;this.playlist_=t,this.xhrOptions_=e,"INIT"===this.state&&(t.syncInfo={mediaSequence:t.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(t));var o=null;if(n&&(n.id?o=n.id:n.uri&&(o=n.uri)),this.logger_("playlist update ["+o+" => "+(t.id||t.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==t.uri)return null!==this.mediaIndex&&(t.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var l=t.mediaSequence-n.mediaSequence;if(this.logger_("live window shift ["+l+"]"),null!==this.mediaIndex)if(this.mediaIndex-=l,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var c=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!c.parts||!c.parts.length||!c.parts[this.partIndex])){var h=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=h}}r&&(r.mediaIndex-=l,r.mediaIndex<0?(r.mediaIndex=null,r.partIndex=null):(r.mediaIndex>=0&&(r.segment=t.segments[r.mediaIndex]),r.partIndex>=0&&r.segment.parts&&(r.part=r.segment.parts[r.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,t)}},n.pause=function(){this.checkBufferTimeout_&&(l.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},n.paused=function(){return null===this.checkBufferTimeout_},n.resetEverything=function(t){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,t),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_&&Wo(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(t,e,n,r){if(void 0===n&&(n=function(){}),void 0===r&&(r=!1),e===1/0&&(e=this.duration_()),e<=t)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var o=1,l=function(){0===--o&&n()};for(var track in!r&&this.audioDisabled_||(o++,this.sourceUpdater_.removeAudio(t,e,l)),(r||"main"===this.loaderType_)&&(this.gopBuffer_=function(t,e,n,r){for(var o=Math.ceil((e-r)*V.ONE_SECOND_IN_TS),l=Math.ceil((n-r)*V.ONE_SECOND_IN_TS),c=t.slice(),i=t.length;i--&&!(t[i].pts<=l););if(-1===i)return c;for(var h=i+1;h--&&!(t[h].pts<=o););return h=Math.max(h,0),c.splice(h,i-h+1),c}(this.gopBuffer_,t,e,this.timeMapping_),o++,this.sourceUpdater_.removeVideo(t,e,l)),this.inbandTextTracks_)wa(t,e,this.inbandTextTracks_[track]);wa(t,e,this.segmentMetadataTrack_),l()}else this.logger_("skipping remove because no source updater or starting media info")},n.monitorBuffer_=function(){this.checkBufferTimeout_&&l.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=l.a.setTimeout(this.monitorBufferTick_.bind(this),1)},n.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&l.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=l.a.setTimeout(this.monitorBufferTick_.bind(this),500)},n.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var t=this.chooseNextRequest_();t&&("number"==typeof t.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline})),this.loadSegment_(t))}},n.isEndOfStream_=function(t,e,n){if(void 0===t&&(t=this.mediaIndex),void 0===e&&(e=this.playlist_),void 0===n&&(n=this.partIndex),!e||!this.mediaSource_)return!1;var r="number"==typeof t&&e.segments[t],o=t+1===e.segments.length,l=!r||!r.parts||n+1===r.parts.length;return e.endList&&"open"===this.mediaSource_.readyState&&o&&l},n.chooseNextRequest_=function(){var t=this.buffered_(),e=As(t)||0,n=Cs(t,this.currentTime_()),r=!this.hasPlayed_()&&n>=1,o=n>=this.goalBufferLength_(),l=this.playlist_.segments;if(!l.length||r||o)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var c={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(c.isSyncRequest)c.mediaIndex=function(t,e,n){e=e||[];for(var r=[],time=0,i=0;i<e.length;i++){var o=e[i];if(t===o.timeline&&(r.push(i),(time+=o.duration)>n))return i}return 0===r.length?0:r[r.length-1]}(this.currentTimeline_,l,e);else if(null!==this.mediaIndex){var h=l[this.mediaIndex],d="number"==typeof this.partIndex?this.partIndex:-1;c.startOfSegment=h.end?h.end:e,h.parts&&h.parts[d+1]?(c.mediaIndex=this.mediaIndex,c.partIndex=d+1):c.mediaIndex=this.mediaIndex+1}else{var f=Gs.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?e:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),m=f.segmentIndex,v=f.startTime,y=f.partIndex;c.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+e:"currentTime "+this.currentTime_(),c.mediaIndex=m,c.startOfSegment=v,c.partIndex=y}var _=l[c.mediaIndex],w=_&&"number"==typeof c.partIndex&&_.parts&&_.parts[c.partIndex];if(!_||"number"==typeof c.partIndex&&!w)return null;if("number"!=typeof c.partIndex&&_.parts&&(c.partIndex=0,w=_.parts[0]),!n&&w&&!w.independent)if(0===c.partIndex){var T=l[c.mediaIndex-1],x=T.parts&&T.parts.length&&T.parts[T.parts.length-1];x&&x.independent&&(c.mediaIndex-=1,c.partIndex=T.parts.length-1,c.independent="previous segment")}else _.parts[c.partIndex-1].independent&&(c.partIndex-=1,c.independent="previous part");var S=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return c.mediaIndex>=l.length-1&&S&&!this.seeking_()?null:this.generateSegmentInfo_(c)},n.generateSegmentInfo_=function(t){var e=t.independent,n=t.playlist,r=t.mediaIndex,o=t.startOfSegment,l=t.isSyncRequest,c=t.partIndex,h=t.forceTimestampOffset,d=t.getMediaInfoForTime,f=n.segments[r],m="number"==typeof c&&f.parts[c],v={requestId:"segment-loader-"+Math.random(),uri:m&&m.resolvedUri||f.resolvedUri,mediaIndex:r,partIndex:m?c:null,isSyncRequest:l,startOfSegment:o,playlist:n,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:f.timeline,duration:m&&m.duration||f.duration,segment:f,part:m,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:d,independent:e},y=void 0!==h?h:this.isPendingTimestampOffset_;v.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:f.timeline,currentTimeline:this.currentTimeline_,startOfSegment:o,buffered:this.buffered_(),overrideCheck:y});var _=As(this.sourceUpdater_.audioBuffered());return"number"==typeof _&&(v.audioAppendStart=_-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(v.gopsToAlignWith=function(t,e,n){if(null==e||!t.length)return[];var i,r=Math.ceil((e-n+3)*V.ONE_SECOND_IN_TS);for(i=0;i<t.length&&!(t[i].pts>r);i++);return t.slice(i)}(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),v},n.timestampOffsetForSegment_=function(t){return n=(e=t).segmentTimeline,r=e.currentTimeline,o=e.startOfSegment,l=e.buffered,e.overrideCheck||n!==r?n<r?o:l.length?l.end(l.length-1):o:null;var e,n,r,o,l},n.earlyAbortWhenNeeded_=function(t){if(!this.vhs_.tech_.paused()&&this.xhrOptions_.timeout&&this.playlist_.attributes.BANDWIDTH&&!(Date.now()-(t.firstBytesReceivedAt||Date.now())<1e3)){var e=this.currentTime_(),n=t.bandwidth,r=this.pendingSegment_.duration,o=Gs.estimateSegmentRequestTime(r,n,this.playlist_,t.bytesReceived),l=function(t,e,n){return void 0===n&&(n=1),((t.length?t.end(t.length-1):0)-e)/n}(this.buffered_(),e,this.vhs_.tech_.playbackRate())-1;if(!(o<=l)){var c=function(t){var e=t.master,n=t.currentTime,r=t.bandwidth,o=t.duration,l=t.segmentDuration,c=t.timeUntilRebuffer,h=t.currentTimeline,d=t.syncController,f=e.playlists.filter((function(t){return!Gs.isIncompatible(t)})),m=f.filter(Gs.isEnabled);m.length||(m=f.filter((function(t){return!Gs.isDisabled(t)})));var v=m.filter(Gs.hasAttribute.bind(null,"BANDWIDTH")).map((function(t){var e=d.getSyncPoint(t,o,h,n)?1:2;return{playlist:t,rebufferingImpact:Gs.estimateSegmentRequestTime(l,r,t)*e-c}})),y=v.filter((function(t){return t.rebufferingImpact<=0}));return ga(y,(function(a,b){return va(b.playlist,a.playlist)})),y.length?y[0]:(ga(v,(function(a,b){return a.rebufferingImpact-b.rebufferingImpact})),v[0]||null)}({master:this.vhs_.playlists.master,currentTime:e,bandwidth:n,duration:this.duration_(),segmentDuration:r,timeUntilRebuffer:l,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(c){var h=o-l-c.rebufferingImpact,d=.5;l<=_s&&(d=1),!c.playlist||c.playlist.uri===this.playlist_.uri||h<d||(this.bandwidth=c.playlist.attributes.BANDWIDTH*Do.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}},n.handleAbort_=function(t){this.logger_("Aborting "+Sa(t)),this.mediaRequestsAborted+=1},n.handleProgress_=function(t,e){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.trigger("progress")},n.handleTrackInfo_=function(t,e){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.checkForIllegalMediaSwitch(e)||(e=e||{},function(a,b){if(!a&&!b||!a&&b||a&&!b)return!1;if(a===b)return!0;var t=Object.keys(a).sort(),e=Object.keys(b).sort();if(t.length!==e.length)return!1;for(var i=0;i<t.length;i++){var n=t[i];if(n!==e[i])return!1;if(a[n]!==b[n])return!1}return!0}(this.currentMediaInfo_,e)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=e,this.currentMediaInfo_=e,this.logger_("trackinfo update",e),this.trigger("trackinfo")),this.checkForAbort_(t.requestId)||(this.pendingSegment_.trackInfo=e,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))},n.handleTimingInfo_=function(t,e,n,time){if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId)){var r=this.pendingSegment_,o=Ea(e);r[o]=r[o]||{},r[o][n]=time,this.logger_("timinginfo: "+e+" - "+n+" - "+time),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}},n.handleCaptions_=function(t,e){var n=this;if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId))if(0!==e.length)if(this.pendingSegment_.hasAppendedData_){var r=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),o={};e.forEach((function(caption){o[caption.stream]=o[caption.stream]||{startTime:1/0,captions:[],endTime:0};var t=o[caption.stream];t.startTime=Math.min(t.startTime,caption.startTime+r),t.endTime=Math.max(t.endTime,caption.endTime+r),t.captions.push(caption)})),Object.keys(o).forEach((function(t){var e=o[t],c=e.startTime,h=e.endTime,d=e.captions,f=n.inbandTextTracks_;n.logger_("adding cues from "+c+" -> "+h+" for "+t),function(t,e,n){if(!t[n]){e.trigger({type:"usage",name:"vhs-608"}),e.trigger({type:"usage",name:"hls-608"});var r=n;/^cc708_/.test(n)&&(r="SERVICE"+n.split("_")[1]);var track=e.textTracks().getTrackById(r);if(track)t[n]=track;else{var label=n,o=n,l=!1,c=(e.options_.vhs&&e.options_.vhs.captionServices||{})[r];c&&(label=c.label,o=c.language,l=c.default),t[n]=e.addRemoteTextTrack({kind:"captions",id:r,default:l,label:label,language:o},!1).track}}}(f,n.vhs_.tech_,t),wa(c,h,f[t]),function(t){var e=t.inbandTextTracks,n=t.captionArray,r=t.timestampOffset;if(n){var o=l.a.WebKitDataCue||l.a.VTTCue;n.forEach((function(caption){var track=caption.stream;e[track].addCue(new o(caption.startTime+r,caption.endTime+r,caption.text))}))}}({captionArray:d,inbandTextTracks:f,timestampOffset:r})})),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}else this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,t,e));else this.logger_("SegmentLoader received no captions from a caption event")},n.handleId3_=function(t,e,n){if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId))if(this.pendingSegment_.hasAppendedData_){var r=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();!function(t,e,n){t.metadataTrack_||(t.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,t.metadataTrack_.inBandMetadataTrackDispatchType=e)}(this.inbandTextTracks_,n,this.vhs_.tech_),_a({inbandTextTracks:this.inbandTextTracks_,metadataArray:e,timestampOffset:r,videoDuration:this.duration_()})}else this.metadataQueue_.id3.push(this.handleId3_.bind(this,t,e,n))},n.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach((function(t){return t()})),this.metadataQueue_.caption.forEach((function(t){return t()})),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},n.processCallQueue_=function(){var t=this.callQueue_;this.callQueue_=[],t.forEach((function(t){return t()}))},n.processLoadQueue_=function(){var t=this.loadQueue_;this.loadQueue_=[],t.forEach((function(t){return t()}))},n.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var t=this.pendingSegment_;return!!t&&(!this.getCurrentMediaInfo_()||!ka({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:t.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.getCurrentMediaInfo_=function(t){return void 0===t&&(t=this.pendingSegment_),t&&t.trackInfo||this.currentMediaInfo_},n.getMediaInfo_=function(t){return void 0===t&&(t=this.pendingSegment_),this.getCurrentMediaInfo_(t)||this.startingMediaInfo_},n.getPendingSegmentPlaylist=function(){return this.pendingSegment_?this.pendingSegment_.playlist:null},n.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var t=this.pendingSegment_,e=this.getCurrentMediaInfo_();if(!t||!e)return!1;var n=e.hasAudio,r=e.hasVideo,o=e.isMuxed;return!(r&&!t.videoTimingInfo)&&(!(n&&!this.audioDisabled_&&!o&&!t.audioTimingInfo)&&!ka({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:t.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.handleData_=function(t,e){if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.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(t.map&&(t.map=this.initSegmentForMap(t.map,!0),n.segment.map=t.map),t.key&&this.segmentKey(t.key,!0),n.isFmp4=t.isFmp4,n.timingInfo=n.timingInfo||{},n.isFmp4)this.trigger("fmp4"),n.timingInfo.start=n[Ea(e.type)].start;else{var r,o=this.getCurrentMediaInfo_(),l="main"===this.loaderType_&&o&&o.hasVideo;l&&(r=n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:l,firstVideoFrameTimeForData:r,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(n,e.type),this.updateSourceBufferTimestampOffset_(n),n.isSyncRequest){this.updateTimingInfoEnd_(n),this.syncController_.saveSegmentTimingInfo({segmentInfo:n,shouldSaveTimelineMapping:"main"===this.loaderType_});var c=this.chooseNextRequest_();if(c.mediaIndex!==n.mediaIndex||c.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,e)}}else this.callQueue_.push(this.handleData_.bind(this,t,e))},n.updateAppendInitSegmentStatus=function(t,e){"main"!==this.loaderType_||"number"!=typeof t.timestampOffset||t.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[e]!==t.playlist&&(this.appendInitSegment_[e]=!0)},n.getInitSegmentAndUpdateState_=function(t){var e=t.type,n=t.initSegment,map=t.map,r=t.playlist;if(map){var o=bo(map);if(this.activeInitSegmentId_===o)return null;n=this.initSegmentForMap(map,!0).bytes,this.activeInitSegmentId_=o}return n&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=r,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,n):null},n.handleQuotaExceededError_=function(t,e){var n=this,r=t.segmentInfo,o=t.type,c=t.bytes,h=this.sourceUpdater_.audioBuffered(),d=this.sourceUpdater_.videoBuffered();h.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+ks(h).join(", ")),d.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+ks(d).join(", "));var f=h.length?h.start(0):0,m=h.length?h.end(h.length-1):0,v=d.length?d.start(0):0,y=d.length?d.end(d.length-1):0;if(m-f<=1&&y-v<=1)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+c.byteLength+", audio buffer: "+ks(h).join(", ")+", video buffer: "+ks(d).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:r,type:o,bytes:c}));var _=this.currentTime_()-1;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+_),this.remove(0,_,(function(){n.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=l.a.setTimeout((function(){n.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),n.quotaExceededErrorRetryTimeout_=null,n.processCallQueue_()}),1e3)}),!0)},n.handleAppendError_=function(t,e){var n=t.segmentInfo,r=t.type,o=t.bytes;e&&(22!==e.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",e),this.error(r+" append of "+o.length+"b failed for segment #"+n.mediaIndex+" in playlist "+n.playlist.id),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:n,type:r,bytes:o}))},n.appendToSourceBuffer_=function(t){var e,n,r,o=t.segmentInfo,l=t.type,c=t.initSegment,data=t.data,h=t.bytes;if(!h){var d=[data],f=data.byteLength;c&&(d.unshift(c),f+=c.byteLength),r=0,(e={bytes:f,segments:d}).bytes&&(n=new Uint8Array(e.bytes),e.segments.forEach((function(t){n.set(t,r),r+=t.byteLength}))),h=n}this.sourceUpdater_.appendBuffer({segmentInfo:o,type:l,bytes:h},this.handleAppendError_.bind(this,{segmentInfo:o,type:l,bytes:h}))},n.handleSegmentTimingInfo_=function(t,e,n){if(this.pendingSegment_&&e===this.pendingSegment_.requestId){var r=this.pendingSegment_.segment,o=t+"TimingInfo";r[o]||(r[o]={}),r[o].transmuxerPrependedSeconds=n.prependedContentDuration||0,r[o].transmuxedPresentationStart=n.start.presentation,r[o].transmuxedDecodeStart=n.start.decode,r[o].transmuxedPresentationEnd=n.end.presentation,r[o].transmuxedDecodeEnd=n.end.decode,r[o].baseMediaDecodeTime=n.baseMediaDecodeTime}},n.appendData_=function(t,e){var n=e.type,data=e.data;if(data&&data.byteLength&&("audio"!==n||!this.audioDisabled_)){var r=this.getInitSegmentAndUpdateState_({type:n,initSegment:e.initSegment,playlist:t.playlist,map:t.isFmp4?t.segment.map:null});this.appendToSourceBuffer_({segmentInfo:t,type:n,initSegment:r,data:data})}},n.loadSegment_=function(t){var e=this;this.state="WAITING",this.pendingSegment_=t,this.trimBackBuffer_(t),"number"==typeof t.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(t):this.loadQueue_.push((function(){var n=f()({},t,{forceTimestampOffset:!0});f()(t,e.generateSegmentInfo_(n)),e.isPendingTimestampOffset_=!1,e.updateTransmuxerAndRequestSegment_(t)}))},n.updateTransmuxerAndRequestSegment_=function(t){var e=this;this.shouldUpdateTransmuxerTimestampOffset_(t.timestampOffset)&&(this.gopBuffer_.length=0,t.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:t.timestampOffset}));var n=this.createSimplifiedSegmentObj_(t),r=this.isEndOfStream_(t.mediaIndex,t.playlist,t.partIndex),o=null!==this.mediaIndex,l=t.timeline!==this.currentTimeline_&&t.timeline>0,c=r||o&&l;this.logger_("Requesting "+Sa(t)),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),t.abortRequests=aa({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:n,abortFn:this.handleAbort_.bind(this,t),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",t.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",t.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:c,endedTimelineFn:function(){e.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(n){var r=n.message,o=n.level,l=n.stream;e.logger_(Sa(t)+" logged from transmuxer stream "+l+" as a "+o+": "+r)}})},n.trimBackBuffer_=function(t){var e=function(t,e,n){var r=e-Do.BACK_BUFFER_LENGTH;t.length&&(r=Math.max(r,t.start(0)));var o=e-n;return Math.min(o,r)}(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);e>0&&this.remove(0,e)},n.createSimplifiedSegmentObj_=function(t){var e=t.segment,n=t.part,r={resolvedUri:n?n.resolvedUri:e.resolvedUri,byterange:n?n.byterange:e.byterange,requestId:t.requestId,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,part:t.part},o=t.playlist.segments[t.mediaIndex-1];if(o&&o.timeline===e.timeline&&(o.videoTimingInfo?r.baseStartTime=o.videoTimingInfo.transmuxedDecodeEnd:o.audioTimingInfo&&(r.baseStartTime=o.audioTimingInfo.transmuxedDecodeEnd)),e.key){var l=e.key.iv||new Uint32Array([0,0,0,t.mediaIndex+t.playlist.mediaSequence]);r.key=this.segmentKey(e.key),r.key.iv=l}return e.map&&(r.map=this.initSegmentForMap(e.map)),r},n.saveTransferStats_=function(t){this.mediaRequests+=1,t&&(this.mediaBytesTransferred+=t.bytesReceived,this.mediaTransferDuration+=t.roundTripTime)},n.saveBandwidthRelatedStats_=function(t,e){this.pendingSegment_.byteLength=e.bytesReceived,t<xa?this.logger_("Ignoring segment's bandwidth because its duration of "+t+" is less than the min to record "+xa):(this.bandwidth=e.bandwidth,this.roundTrip=e.roundTripTime)},n.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")},n.segmentRequestFinished_=function(t,e,n){if(this.callQueue_.length)this.callQueue_.push(this.segmentRequestFinished_.bind(this,t,e,n));else if(this.saveTransferStats_(e.stats),this.pendingSegment_&&e.requestId===this.pendingSegment_.requestId){if(t){if(this.pendingSegment_=null,this.state="READY",t.code===$o)return;return this.pause(),t.code===Ko?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(t),void this.trigger("error"))}var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,e.stats),r.endOfAllRequests=e.endOfAllRequests,n.gopInfo&&(this.gopBuffer_=function(t,e,n){if(!e.length)return t;if(n)return e.slice();for(var r=e[0].pts,i=0;i<t.length&&!(t[i].pts>=r);i++);return t.slice(0,i).concat(e)}(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(r)}},n.setTimeMapping_=function(t){var e=this.syncController_.mappingForTimeline(t);null!==e&&(this.timeMapping_=e)},n.updateMediaSecondsLoaded_=function(t){"number"==typeof t.start&&"number"==typeof t.end?this.mediaSecondsLoaded+=t.end-t.start:this.mediaSecondsLoaded+=t.duration},n.shouldUpdateTransmuxerTimestampOffset_=function(t){return null!==t&&("main"===this.loaderType_&&t!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&t!==this.sourceUpdater_.audioTimestampOffset())},n.trueSegmentStart_=function(t){var e=t.currentStart,n=t.playlist,r=t.mediaIndex,o=t.firstVideoFrameTimeForData,l=t.currentVideoTimestampOffset,c=t.useVideoTimingInfo,h=t.videoTimingInfo,d=t.audioTimingInfo;if(void 0!==e)return e;if(!c)return d.start;var f=n.segments[r-1];return 0!==r&&f&&void 0!==f.start&&f.end===o+l?h.start:o},n.waitForAppendsToComplete_=function(t){var e=this.getCurrentMediaInfo_(t);if(!e)return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");var n=e.hasAudio,r=e.hasVideo,o=e.isMuxed,l="main"===this.loaderType_&&r,c=!this.audioDisabled_&&n&&!o;if(t.waitingOnAppends=0,!t.hasAppendedData_)return t.timingInfo||"number"!=typeof t.timestampOffset||(this.isPendingTimestampOffset_=!0),t.timingInfo={start:0},t.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(t),this.processMetadataQueue_()),void this.checkAppendsDone_(t);l&&t.waitingOnAppends++,c&&t.waitingOnAppends++,l&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,t)),c&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,t))},n.checkAppendsDone_=function(t){this.checkForAbort_(t.requestId)||(t.waitingOnAppends--,0===t.waitingOnAppends&&this.handleAppendsDone_())},n.checkForIllegalMediaSwitch=function(t){var e=function(t,e,n){return"main"===t&&e&&n?n.hasAudio||n.hasVideo?e.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.":!e.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_(),t);return!!e&&(this.error({message:e,blacklistDuration:1/0}),this.trigger("error"),!0)},n.updateSourceBufferTimestampOffset_=function(t){if(null!==t.timestampOffset&&"number"==typeof t.timingInfo.start&&!t.changedTimestampOffset&&"main"===this.loaderType_){var e=!1;t.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:t.segment.videoTimingInfo,audioTimingInfo:t.segment.audioTimingInfo,timingInfo:t.timingInfo}),t.changedTimestampOffset=!0,t.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(t.timestampOffset),e=!0),t.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(t.timestampOffset),e=!0),e&&this.trigger("timestampoffset")}},n.getSegmentStartTimeForTimestampOffsetCalculation_=function(t){var e=t.videoTimingInfo,n=t.audioTimingInfo,r=t.timingInfo;return this.useDtsForTimestampOffset_?e&&"number"==typeof e.transmuxedDecodeStart?e.transmuxedDecodeStart:n&&"number"==typeof n.transmuxedDecodeStart?n.transmuxedDecodeStart:r.start:r.start},n.updateTimingInfoEnd_=function(t){t.timingInfo=t.timingInfo||{};var e=this.getMediaInfo_(),n="main"===this.loaderType_&&e&&e.hasVideo&&t.videoTimingInfo?t.videoTimingInfo:t.audioTimingInfo;n&&(t.timingInfo.end="number"==typeof n.end?n.end:n.start+t.duration)},n.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var t=this.pendingSegment_;this.updateTimingInfoEnd_(t),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:t,shouldSaveTimelineMapping:"main"===this.loaderType_});var e=Ca(t,this.sourceType_);if(e&&("warn"===e.severity?gs.log.warn(e.message):this.logger_(e.message)),this.recordThroughput_(t),this.pendingSegment_=null,this.state="READY",!t.isSyncRequest||(this.trigger("syncinfoupdate"),t.hasAppendedData_)){this.logger_("Appended "+Sa(t)),this.addSegmentMetadataCue_(t),this.fetchAtBuffer_=!0,this.currentTimeline_!==t.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:t.timeline})),this.currentTimeline_=t.timeline,this.trigger("syncinfoupdate");var n=t.segment,r=t.part,o=n.end&&this.currentTime_()-n.end>3*t.playlist.targetDuration,l=r&&r.end&&this.currentTime_()-r.end>3*t.playlist.partTargetDuration;if(o||l)return this.logger_("bad "+(o?"segment":"part")+" "+Sa(t)),void this.resetEverything();null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=t.mediaIndex,this.partIndex=t.partIndex,this.isEndOfStream_(t.mediaIndex,t.playlist,t.partIndex)&&this.endOfStream(),this.trigger("appended"),t.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}else this.logger_("Throwing away un-appended sync request "+Sa(t))},n.recordThroughput_=function(t){if(t.duration<xa)this.logger_("Ignoring segment's throughput because its duration of "+t.duration+" is less than the min to record "+xa);else{var e=this.throughput.rate,n=Date.now()-t.endOfAllRequests+1,r=Math.floor(t.byteLength/n*8*1e3);this.throughput.rate+=(r-e)/++this.throughput.count}},n.addSegmentMetadataCue_=function(t){if(this.segmentMetadataTrack_){var e=t.segment,n=e.start,r=e.end;if(Ta(n)&&Ta(r)){wa(n,r,this.segmentMetadataTrack_);var o=l.a.WebKitDataCue||l.a.VTTCue,c={custom:e.custom,dateTimeObject:e.dateTimeObject,dateTimeString:e.dateTimeString,bandwidth:t.playlist.attributes.BANDWIDTH,resolution:t.playlist.attributes.RESOLUTION,codecs:t.playlist.attributes.CODECS,byteLength:t.byteLength,uri:t.uri,timeline:t.timeline,playlist:t.playlist.id,start:n,end:r},h=new o(n,r,JSON.stringify(c));h.value=c,this.segmentMetadataTrack_.addCue(h)}}},e}(gs.EventTarget);function ja(){}var Ia,La=function(t){return"string"!=typeof t?t:t.replace(/./,(function(t){return t.toUpperCase()}))},Da=["video","audio"],Pa=function(t,e){var n=e[t+"Buffer"];return n&&n.updating||e.queuePending[t]},Ma=function t(e,n){if(0!==n.queue.length){var r=0,o=n.queue[r];if("mediaSource"!==o.type){if("mediaSource"!==e&&n.ready()&&"closed"!==n.mediaSource.readyState&&!Pa(e,n)){if(o.type!==e){if(r=function(t,e){for(var i=0;i<e.length;i++){var n=e[i];if("mediaSource"===n.type)return null;if(n.type===t)return i}return null}(e,n.queue),null===r)return;o=n.queue[r]}return n.queue.splice(r,1),n.queuePending[e]=o,o.action(e,n),o.doneFn?void 0:(n.queuePending[e]=null,void t(e,n))}}else n.updating()||"closed"===n.mediaSource.readyState||(n.queue.shift(),o.action(n),o.doneFn&&o.doneFn(),t("audio",n),t("video",n))}},Na=function(t,e){var n=e[t+"Buffer"],r=La(t);n&&(n.removeEventListener("updateend",e["on"+r+"UpdateEnd_"]),n.removeEventListener("error",e["on"+r+"Error_"]),e.codecs[t]=null,e[t+"Buffer"]=null)},Ra=function(t,e){return t&&e&&-1!==Array.prototype.indexOf.call(t.sourceBuffers,e)},Ua=function(t,e,n){return function(r,o){var l=o[r+"Buffer"];if(Ra(o.mediaSource,l)){o.logger_("Appending segment "+e.mediaIndex+"'s "+t.length+" bytes to "+r+"Buffer");try{l.appendBuffer(t)}catch(t){o.logger_("Error with code "+t.code+" "+(22===t.code?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment "+e.mediaIndex+" to "+r+"Buffer"),o.queuePending[r]=null,n(t)}}}},Ba=function(t,e){return function(n,r){var o=r[n+"Buffer"];if(Ra(r.mediaSource,o)){r.logger_("Removing "+t+" to "+e+" from "+n+"Buffer");try{o.remove(t,e)}catch(o){r.logger_("Remove "+t+" to "+e+" from "+n+"Buffer failed")}}}},Fa=function(t){return function(e,n){var r=n[e+"Buffer"];Ra(n.mediaSource,r)&&(n.logger_("Setting "+e+"timestampOffset to "+t),r.timestampOffset=t)}},za=function(t){return function(e,n){t()}},qa=function(t){return function(e){if("open"===e.mediaSource.readyState){e.logger_("Calling mediaSource endOfStream("+(t||"")+")");try{e.mediaSource.endOfStream(t)}catch(t){gs.log.warn("Failed to call media source endOfStream",t)}}}},Ha=function(t){return function(e){e.logger_("Setting mediaSource duration to "+t);try{e.mediaSource.duration=t}catch(t){gs.log.warn("Failed to set media source duration",t)}}},Va=function(){return function(t,e){if("open"===e.mediaSource.readyState){var n=e[t+"Buffer"];if(Ra(e.mediaSource,n)){e.logger_("calling abort on "+t+"Buffer");try{n.abort()}catch(e){gs.log.warn("Failed to abort on "+t+"Buffer",e)}}}}},Wa=function(t,e){return function(n){var r=La(t),o=Object(M.e)(e);n.logger_("Adding "+t+"Buffer with codec "+e+" to mediaSource");var l=n.mediaSource.addSourceBuffer(o);l.addEventListener("updateend",n["on"+r+"UpdateEnd_"]),l.addEventListener("error",n["on"+r+"Error_"]),n.codecs[t]=e,n[t+"Buffer"]=l}},Ya=function(t){return function(e){var n=e[t+"Buffer"];if(Na(t,e),Ra(e.mediaSource,n)){e.logger_("Removing "+t+"Buffer with codec "+e.codecs[t]+" from mediaSource");try{e.mediaSource.removeSourceBuffer(n)}catch(e){gs.log.warn("Failed to removeSourceBuffer "+t+"Buffer",e)}}}},Ga=function(t){return function(e,n){var r=n[e+"Buffer"],o=Object(M.e)(t);if(Ra(n.mediaSource,r)&&n.codecs[e]!==t){n.logger_("changing "+e+"Buffer codec from "+n.codecs[e]+" to "+t);try{r.changeType(o),n.codecs[e]=t}catch(t){gs.log.warn("Failed to changeType on "+e+"Buffer",t)}}}},Xa=function(t){var e=t.type,n=t.sourceUpdater,r=t.action,o=t.doneFn,l=t.name;n.queue.push({type:e,action:r,doneFn:o,name:l}),Ma(e,n)},Ka=function(t,e){return function(n){if(e.queuePending[t]){var r=e.queuePending[t].doneFn;e.queuePending[t]=null,r&&r(e[t+"Error_"])}Ma(t,e)}},$a=function(t){function e(e){var n;return(n=t.call(this)||this).mediaSource=e,n.sourceopenListener_=function(){return Ma("mediaSource",_()(n))},n.mediaSource.addEventListener("sourceopen",n.sourceopenListener_),n.logger_=bs("SourceUpdater"),n.audioTimestampOffset_=0,n.videoTimestampOffset_=0,n.queue=[],n.queuePending={audio:null,video:null},n.delayedAudioAppendQueue_=[],n.videoAppendQueued_=!1,n.codecs={},n.onVideoUpdateEnd_=Ka("video",_()(n)),n.onAudioUpdateEnd_=Ka("audio",_()(n)),n.onVideoError_=function(t){n.videoError_=t},n.onAudioError_=function(t){n.audioError_=t},n.createdSourceBuffers_=!1,n.initializedEme_=!1,n.triggeredReady_=!1,n}T()(e,t);var n=e.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(t){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(t),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())},n.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},n.addSourceBuffer=function(t,e){Xa({type:"mediaSource",sourceUpdater:this,action:Wa(t,e),name:"addSourceBuffer"})},n.abort=function(t){Xa({type:t,sourceUpdater:this,action:Va(t),name:"abort"})},n.removeSourceBuffer=function(t){this.canRemoveSourceBuffer()?Xa({type:"mediaSource",sourceUpdater:this,action:Ya(t),name:"removeSourceBuffer"}):gs.log.error("removeSourceBuffer is not supported!")},n.canRemoveSourceBuffer=function(){return!gs.browser.IE_VERSION&&!gs.browser.IS_FIREFOX&&l.a.MediaSource&&l.a.MediaSource.prototype&&"function"==typeof l.a.MediaSource.prototype.removeSourceBuffer},e.canChangeType=function(){return l.a.SourceBuffer&&l.a.SourceBuffer.prototype&&"function"==typeof l.a.SourceBuffer.prototype.changeType},n.canChangeType=function(){return this.constructor.canChangeType()},n.changeType=function(t,e){this.canChangeType()?Xa({type:t,sourceUpdater:this,action:Ga(e),name:"changeType"}):gs.log.error("changeType is not supported!")},n.addOrChangeSourceBuffers=function(t){var e=this;if(!t||"object"!=typeof t||0===Object.keys(t).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(t).forEach((function(n){var r=t[n];if(!e.hasCreatedSourceBuffers())return e.addSourceBuffer(n,r);e.canChangeType()&&e.changeType(n,r)}))},n.appendBuffer=function(t,e){var n=this,r=t.segmentInfo,o=t.type,l=t.bytes;if(this.processedAppend_=!0,"audio"===o&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([t,e]),void this.logger_("delayed audio append of "+l.length+" until video append");if(Xa({type:o,sourceUpdater:this,action:Ua(l,r||{mediaIndex:-1},e),doneFn:e,name:"appendBuffer"}),"video"===o){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var c=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+c.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,c.forEach((function(t){n.appendBuffer.apply(n,t)}))}},n.audioBuffered=function(){return Ra(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:gs.createTimeRange()},n.videoBuffered=function(){return Ra(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:gs.createTimeRange()},n.buffered=function(){var video=Ra(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,audio=Ra(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return audio&&!video?this.audioBuffered():video&&!audio?this.videoBuffered():function(t,e){var n=null,r=null,o=0,l=[],c=[];if(!(t&&t.length&&e&&e.length))return gs.createTimeRange();for(var h=t.length;h--;)l.push({time:t.start(h),type:"start"}),l.push({time:t.end(h),type:"end"});for(h=e.length;h--;)l.push({time:e.start(h),type:"start"}),l.push({time:e.end(h),type:"end"});for(l.sort((function(a,b){return a.time-b.time})),h=0;h<l.length;h++)"start"===l[h].type?2==++o&&(n=l[h].time):"end"===l[h].type&&1==--o&&(r=l[h].time),null!==n&&null!==r&&(c.push([n,r]),n=null,r=null);return gs.createTimeRanges(c)}(this.audioBuffered(),this.videoBuffered())},n.setDuration=function(t,e){void 0===e&&(e=ja),Xa({type:"mediaSource",sourceUpdater:this,action:Ha(t),name:"duration",doneFn:e})},n.endOfStream=function(t,e){void 0===t&&(t=null),void 0===e&&(e=ja),"string"!=typeof t&&(t=void 0),Xa({type:"mediaSource",sourceUpdater:this,action:qa(t),name:"endOfStream",doneFn:e})},n.removeAudio=function(t,e,n){void 0===n&&(n=ja),this.audioBuffered().length&&0!==this.audioBuffered().end(0)?Xa({type:"audio",sourceUpdater:this,action:Ba(t,e),doneFn:n,name:"remove"}):n()},n.removeVideo=function(t,e,n){void 0===n&&(n=ja),this.videoBuffered().length&&0!==this.videoBuffered().end(0)?Xa({type:"video",sourceUpdater:this,action:Ba(t,e),doneFn:n,name:"remove"}):n()},n.updating=function(){return!(!Pa("audio",this)&&!Pa("video",this))},n.audioTimestampOffset=function(t){return void 0!==t&&this.audioBuffer&&this.audioTimestampOffset_!==t&&(Xa({type:"audio",sourceUpdater:this,action:Fa(t),name:"timestampOffset"}),this.audioTimestampOffset_=t),this.audioTimestampOffset_},n.videoTimestampOffset=function(t){return void 0!==t&&this.videoBuffer&&this.videoTimestampOffset!==t&&(Xa({type:"video",sourceUpdater:this,action:Fa(t),name:"timestampOffset"}),this.videoTimestampOffset_=t),this.videoTimestampOffset_},n.audioQueueCallback=function(t){this.audioBuffer&&Xa({type:"audio",sourceUpdater:this,action:za(t),name:"callback"})},n.videoQueueCallback=function(t){this.videoBuffer&&Xa({type:"video",sourceUpdater:this,action:za(t),name:"callback"})},n.dispose=function(){var t=this;this.trigger("dispose"),Da.forEach((function(e){t.abort(e),t.canRemoveSourceBuffer()?t.removeSourceBuffer(e):t[e+"QueueCallback"]((function(){return Na(e,t)}))})),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},e}(gs.EventTarget),Qa=function(t){return decodeURIComponent(escape(String.fromCharCode.apply(null,t)))},Ja=new Uint8Array("\n\n".split("").map((function(t){return t.charCodeAt(0)}))),Za=function(t){function e(){return t.call(this,"Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")||this}return T()(e,t),e}(Y()(Error)),tu=function(t){function e(e,n){var r;return void 0===n&&(n={}),(r=t.call(this,e,n)||this).mediaSource_=null,r.subtitlesTrack_=null,r.loaderType_="subtitle",r.featuresNativeTextTracks_=e.featuresNativeTextTracks,r.loadVttJs=e.loadVttJs,r.shouldSaveSegmentTimingInfo_=!1,r}T()(e,t);var n=e.prototype;return n.createTransmuxer_=function(){return null},n.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return gs.createTimeRanges();var t=this.subtitlesTrack_.cues,e=t[0].startTime,n=t[t.length-1].startTime;return gs.createTimeRanges([[e,n]])},n.initSegmentForMap=function(map,t){if(void 0===t&&(t=!1),!map)return null;var e=bo(map),n=this.initSegments_[e];if(t&&!n&&map.bytes){var r=Ja.byteLength+map.bytes.byteLength,o=new Uint8Array(r);o.set(map.bytes),o.set(Ja,map.bytes.byteLength),this.initSegments_[e]=n={resolvedUri:map.resolvedUri,byterange:map.byterange,bytes:o}}return n||map},n.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.track=function(t){return void 0===t||(this.subtitlesTrack_=t,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_},n.remove=function(t,e){wa(t,e,this.subtitlesTrack_)},n.fillBuffer_=function(){var t=this,e=this.chooseNextRequest_();if(e){if(null===this.syncController_.timestampOffsetForTimeline(e.timeline)){return this.syncController_.one("timestampoffset",(function(){t.state="READY",t.paused()||t.monitorBuffer_()})),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(e)}},n.timestampOffsetForSegment_=function(){return null},n.chooseNextRequest_=function(){return this.skipEmptySegments_(t.prototype.chooseNextRequest_.call(this))},n.skipEmptySegments_=function(t){for(;t&&t.segment.empty;){if(t.mediaIndex+1>=t.playlist.segments.length){t=null;break}t=this.generateSegmentInfo_({playlist:t.playlist,mediaIndex:t.mediaIndex+1,startOfSegment:t.startOfSegment+t.duration,isSyncRequest:t.isSyncRequest})}return t},n.stopForError=function(t){this.error(t),this.state="READY",this.pause(),this.trigger("error")},n.segmentRequestFinished_=function(t,e,n){var r=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(e.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(t)return t.code===Ko&&this.handleTimeout_(),t.code===$o?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(t);var o=this.pendingSegment_;this.saveBandwidthRelatedStats_(o.duration,e.stats),e.key&&this.segmentKey(e.key,!0),this.state="APPENDING",this.trigger("appending");var c=o.segment;if(c.map&&(c.map.bytes=e.map.bytes),o.bytes=e.bytes,"function"!=typeof l.a.WebVTT&&"function"==typeof this.loadVttJs)return this.state="WAITING_ON_VTTJS",void this.loadVttJs().then((function(){return r.segmentRequestFinished_(t,e,n)}),(function(){return r.stopForError({message:"Error loading vtt.js"})}));c.requested=!0;try{this.parseVTTCues_(o)}catch(t){return void this.stopForError({message:t.message})}if(this.updateTimeMapping_(o,this.syncController_.timelines[o.timeline],this.playlist_),o.cues.length?o.timingInfo={start:o.cues[0].startTime,end:o.cues[o.cues.length-1].endTime}:o.timingInfo={start:o.startOfSegment,end:o.startOfSegment+o.duration},o.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");o.byteLength=o.bytes.byteLength,this.mediaSecondsLoaded+=c.duration,o.cues.forEach((function(t){r.subtitlesTrack_.addCue(r.featuresNativeTextTracks_?new l.a.VTTCue(t.startTime,t.endTime,t.text):t)})),function(track){var t=track.cues;if(t)for(var i=0;i<t.length;i++){for(var e=[],n=0,r=0;r<t.length;r++)t[i].startTime===t[r].startTime&&t[i].endTime===t[r].endTime&&t[i].text===t[r].text&&++n>1&&e.push(t[r]);e.length&&e.forEach((function(t){return track.removeCue(t)}))}}(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},n.handleData_=function(){},n.updateTimingInfoEnd_=function(){},n.parseVTTCues_=function(t){var e,n=!1;if("function"!=typeof l.a.WebVTT)throw new Za;"function"==typeof l.a.TextDecoder?e=new l.a.TextDecoder("utf8"):(e=l.a.WebVTT.StringDecoder(),n=!0);var r=new l.a.WebVTT.Parser(l.a,l.a.vttjs,e);if(t.cues=[],t.timestampmap={MPEGTS:0,LOCAL:0},r.oncue=t.cues.push.bind(t.cues),r.ontimestampmap=function(map){t.timestampmap=map},r.onparsingerror=function(t){gs.log.warn("Error encountered when parsing cues: "+t.message)},t.segment.map){var o=t.segment.map.bytes;n&&(o=Qa(o)),r.parse(o)}var c=t.bytes;n&&(c=Qa(c)),r.parse(c),r.flush()},n.updateTimeMapping_=function(t,e,n){var r=t.segment;if(e)if(t.cues.length){var o=t.timestampmap,l=o.MPEGTS/V.ONE_SECOND_IN_TS-o.LOCAL+e.mapping;if(t.cues.forEach((function(t){t.startTime+=l,t.endTime+=l})),!n.syncInfo){var c=t.cues[0].startTime,h=t.cues[t.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+t.mediaIndex,time:Math.min(c,h-r.duration)}}}else r.empty=!0},e}(Oa),eu=function(track,t){for(var e=track.cues,i=0;i<e.length;i++){var n=e[i];if(t>=n.adStartTime&&t<=n.adEndTime)return n}return null},nu=[{name:"VOD",run:function(t,e,n,r,o){if(n!==1/0){return{time:0,segmentIndex:0,partIndex:null}}return null}},{name:"ProgramDateTime",run:function(t,e,n,r,o){if(!Object.keys(t.timelineToDatetimeMappings).length)return null;var l=null,c=null,h=Is(e);o=o||0;for(var i=0;i<h.length;i++){var d=h[e.endList||0===o?i:h.length-(i+1)],f=d.segment,m=t.timelineToDatetimeMappings[f.timeline];if(m&&f.dateTimeObject){var v=f.dateTimeObject.getTime()/1e3+m;if(f.parts&&"number"==typeof d.partIndex)for(var y=0;y<d.partIndex;y++)v+=f.parts[y].duration;var _=Math.abs(o-v);if(null!==c&&(0===_||c<_))break;c=_,l={time:v,segmentIndex:d.segmentIndex,partIndex:d.partIndex}}}return l}},{name:"Segment",run:function(t,e,n,r,o){var l=null,c=null;o=o||0;for(var h=Is(e),i=0;i<h.length;i++){var d=h[e.endList||0===o?i:h.length-(i+1)],f=d.segment,m=d.part&&d.part.start||f&&f.start;if(f.timeline===r&&void 0!==m){var v=Math.abs(o-m);if(null!==c&&c<v)break;(!l||null===c||c>=v)&&(c=v,l={time:m,segmentIndex:d.segmentIndex,partIndex:d.partIndex})}}return l}},{name:"Discontinuity",run:function(t,e,n,r,o){var l=null;if(o=o||0,e.discontinuityStarts&&e.discontinuityStarts.length)for(var c=null,i=0;i<e.discontinuityStarts.length;i++){var h=e.discontinuityStarts[i],d=e.discontinuitySequence+i+1,f=t.discontinuities[d];if(f){var m=Math.abs(o-f.time);if(null!==c&&c<m)break;(!l||null===c||c>=m)&&(c=m,l={time:f.time,segmentIndex:h,partIndex:null})}}return l}},{name:"Playlist",run:function(t,e,n,r,o){return e.syncInfo?{time:e.syncInfo.time,segmentIndex:e.syncInfo.mediaSequence-e.mediaSequence,partIndex:null}:null}}],ru=function(t){function e(e){var n;return(n=t.call(this)||this).timelines=[],n.discontinuities=[],n.timelineToDatetimeMappings={},n.logger_=bs("SyncController"),n}T()(e,t);var n=e.prototype;return n.getSyncPoint=function(t,e,n,r){var o=this.runStrategies_(t,e,n,r);return o.length?this.selectSyncPoint_(o,{key:"time",value:r}):null},n.getExpiredTime=function(t,e){if(!t||!t.segments)return null;var n=this.runStrategies_(t,e,t.discontinuitySequence,0);if(!n.length)return null;var r=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return r.segmentIndex>0&&(r.time*=-1),Math.abs(r.time+Rs({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:r.segmentIndex,endIndex:0}))},n.runStrategies_=function(t,e,n,r){for(var o=[],i=0;i<nu.length;i++){var l=nu[i],c=l.run(this,t,e,n,r);c&&(c.strategy=l.name,o.push({strategy:l.name,syncPoint:c}))}return o},n.selectSyncPoint_=function(t,e){for(var n=t[0].syncPoint,r=Math.abs(t[0].syncPoint[e.key]-e.value),o=t[0].strategy,i=1;i<t.length;i++){var l=Math.abs(t[i].syncPoint[e.key]-e.value);l<r&&(r=l,n=t[i].syncPoint,o=t[i].strategy)}return this.logger_("syncPoint for ["+e.key+": "+e.value+"] chosen with strategy ["+o+"]: [time:"+n.time+", segmentIndex:"+n.segmentIndex+("number"==typeof n.partIndex?",partIndex:"+n.partIndex:"")+"]"),n},n.saveExpiredSegmentInfo=function(t,e){var n=e.mediaSequence-t.mediaSequence;if(n>86400)gs.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=t.segments[i];if(r&&void 0!==r.start){e.syncInfo={mediaSequence:t.mediaSequence+i,time:r.start},this.logger_("playlist refresh sync: [time:"+e.syncInfo.time+", mediaSequence: "+e.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},n.setDateTimeMappingForStart=function(t){if(this.timelineToDatetimeMappings={},t.segments&&t.segments.length&&t.segments[0].dateTimeObject){var e=t.segments[0],n=e.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[e.timeline]=-n}},n.saveSegmentTimingInfo=function(t){var e=t.segmentInfo,n=t.shouldSaveTimelineMapping,r=this.calculateSegmentTimeMapping_(e,e.timingInfo,n),o=e.segment;r&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:o.start}));var l=o.dateTimeObject;o.discontinuity&&n&&l&&(this.timelineToDatetimeMappings[o.timeline]=-l.getTime()/1e3)},n.timestampOffsetForTimeline=function(t){return void 0===this.timelines[t]?null:this.timelines[t].time},n.mappingForTimeline=function(t){return void 0===this.timelines[t]?null:this.timelines[t].mapping},n.calculateSegmentTimeMapping_=function(t,e,n){var r,o,l=t.segment,c=t.part,h=this.timelines[t.timeline];if("number"==typeof t.timestampOffset)h={time:t.startOfSegment,mapping:t.startOfSegment-e.start},n&&(this.timelines[t.timeline]=h,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+t.timeline+": [time: "+h.time+"] [mapping: "+h.mapping+"]")),r=t.startOfSegment,o=e.end+h.mapping;else{if(!h)return!1;r=e.start+h.mapping,o=e.end+h.mapping}return c&&(c.start=r,c.end=o),(!l.start||r<l.start)&&(l.start=r),l.end=o,!0},n.saveDiscontinuitySyncInfo_=function(t){var e=t.playlist,n=t.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(e.discontinuityStarts&&e.discontinuityStarts.length)for(var i=0;i<e.discontinuityStarts.length;i++){var r=e.discontinuityStarts[i],o=e.discontinuitySequence+i+1,l=r-t.mediaIndex,c=Math.abs(l);if(!this.discontinuities[o]||this.discontinuities[o].accuracy>c){var time=void 0;time=l<0?n.start-Rs({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:t.mediaIndex,endIndex:r}):n.end+Rs({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:t.mediaIndex+1,endIndex:r}),this.discontinuities[o]={time:time,accuracy:c}}}},n.dispose=function(){this.trigger("dispose"),this.off()},e}(gs.EventTarget),iu=function(t){function e(){var e;return(e=t.call(this)||this).pendingTimelineChanges_={},e.lastTimelineChanges_={},e}T()(e,t);var n=e.prototype;return n.clearPendingTimelineChange=function(t){this.pendingTimelineChanges_[t]=null,this.trigger("pendingtimelinechange")},n.pendingTimelineChange=function(t){var e=t.type,n=t.from,r=t.to;return"number"==typeof n&&"number"==typeof r&&(this.pendingTimelineChanges_[e]={type:e,from:n,to:r},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[e]},n.lastTimelineChange=function(t){var e=t.type,n=t.from,r=t.to;return"number"==typeof n&&"number"==typeof r&&(this.lastTimelineChanges_[e]={type:e,from:n,to:r},delete this.pendingTimelineChanges_[e],this.trigger("timelinechange")),this.lastTimelineChanges_[e]},n.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},e}(gs.EventTarget),su=No(Ro((function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function n(t,e,n){return t(n={path:e,exports:{},require:function(path,base){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==base&&n.path)}},n.exports),n.exports}var r=n((function(t){function e(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t},t.exports.default=t.exports,t.exports.__esModule=!0})),o=n((function(t){function e(n,p){return t.exports=e=Object.setPrototypeOf||function(t,p){return t.__proto__=p,t},t.exports.default=t.exports,t.exports.__esModule=!0,e(n,p)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0})),l=n((function(t){t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,o(t,e)},t.exports.default=t.exports,t.exports.__esModule=!0})),c=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.off=function(t,e){if(!this.listeners[t])return!1;var n=this.listeners[t].indexOf(e);return this.listeners[t]=this.listeners[t].slice(0),this.listeners[t].splice(n,1),n>-1},e.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var n=e.length,i=0;i<n;++i)e[i].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),o=e.length,l=0;l<o;++l)e[l].apply(this,r)},e.dispose=function(){this.listeners={}},e.pipe=function(t){this.on("data",(function(data){t.push(data)}))},t}();var h,d=null,f=function(){function t(t){var i,e,n;d||(d=function(){var i,t,e,n,r,s,o,l,c=[[[],[],[],[],[]],[[],[],[],[],[]]],h=c[0],d=c[1],f=h[4],m=d[4],v=[],th=[];for(i=0;i<256;i++)th[(v[i]=i<<1^283*(i>>7))^i]=i;for(t=e=0;!f[t];t^=n||1,e=th[e]||1)for(s=(s=e^e<<1^e<<2^e<<3^e<<4)>>8^255&s^99,f[t]=s,m[s]=t,l=16843009*v[r=v[n=v[t]]]^65537*r^257*n^16843008*t,o=257*v[s]^16843008*s,i=0;i<4;i++)h[i][t]=o=o<<24^o>>>8,d[i][s]=l=l<<24^l>>>8;for(i=0;i<5;i++)h[i]=h[i].slice(0),d[i]=d[i].slice(0);return c}()),this._tables=[[d[0][0].slice(),d[0][1].slice(),d[0][2].slice(),d[0][3].slice(),d[0][4].slice()],[d[1][0].slice(),d[1][1].slice(),d[1][2].slice(),d[1][3].slice(),d[1][4].slice()]];var r=this._tables[0][4],o=this._tables[1],l=t.length,c=1;if(4!==l&&6!==l&&8!==l)throw new Error("Invalid aes key size");var h=t.slice(0),f=[];for(this._key=[h,f],i=l;i<4*l+28;i++)n=h[i-1],(i%l==0||8===l&&i%l==4)&&(n=r[n>>>24]<<24^r[n>>16&255]<<16^r[n>>8&255]<<8^r[255&n],i%l==0&&(n=n<<8^n>>>24^c<<24,c=c<<1^283*(c>>7))),h[i]=h[i-l]^n;for(e=0;i;e++,i--)n=h[3&e?i:i-4],f[e]=i<=4||e<4?n:o[0][r[n>>>24]]^o[1][r[n>>16&255]]^o[2][r[n>>8&255]]^o[3][r[255&n]]}return t.prototype.decrypt=function(t,e,n,r,o,l){var c,h,d,i,f=this._key[1],a=t^f[0],b=r^f[1],m=n^f[2],v=e^f[3],y=f.length/4-2,_=4,table=this._tables[1],w=table[0],T=table[1],x=table[2],S=table[3],E=table[4];for(i=0;i<y;i++)c=w[a>>>24]^T[b>>16&255]^x[m>>8&255]^S[255&v]^f[_],h=w[b>>>24]^T[m>>16&255]^x[v>>8&255]^S[255&a]^f[_+1],d=w[m>>>24]^T[v>>16&255]^x[a>>8&255]^S[255&b]^f[_+2],v=w[v>>>24]^T[a>>16&255]^x[b>>8&255]^S[255&m]^f[_+3],_+=4,a=c,b=h,m=d;for(i=0;i<4;i++)o[(3&-i)+l]=E[a>>>24]<<24^E[b>>16&255]<<16^E[m>>8&255]<<8^E[255&v]^f[_++],c=a,a=b,b=m,m=v,v=c},t}(),m=function(t){function e(){var e;return(e=t.call(this,c)||this).jobs=[],e.delay=1,e.timeout_=null,e}l(e,t);var n=e.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(t){this.jobs.push(t),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},e}(c),v=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24},y=function(){function t(e,n,r,o){var l=t.STEP,c=new Int32Array(e.buffer),h=new Uint8Array(e.byteLength),i=0;for(this.asyncStream_=new m,this.asyncStream_.push(this.decryptChunk_(c.subarray(i,i+l),n,r,h)),i=l;i<c.length;i+=l)r=new Uint32Array([v(c[i-4]),v(c[i-3]),v(c[i-2]),v(c[i-1])]),this.asyncStream_.push(this.decryptChunk_(c.subarray(i,i+l),n,r,h));this.asyncStream_.push((function(){var t;o(null,(t=h).subarray(0,t.byteLength-t[t.byteLength-1]))}))}return t.prototype.decryptChunk_=function(t,e,n,r){return function(){var o=function(t,e,n){var r,o,l,c,h,d,m,y,_,w=new Int32Array(t.buffer,t.byteOffset,t.byteLength>>2),T=new f(Array.prototype.slice.call(e)),x=new Uint8Array(t.byteLength),S=new Int32Array(x.buffer);for(r=n[0],o=n[1],l=n[2],c=n[3],_=0;_<w.length;_+=4)h=v(w[_]),d=v(w[_+1]),m=v(w[_+2]),y=v(w[_+3]),T.decrypt(h,d,m,y,S,_),S[_]=v(S[_]^r),S[_+1]=v(S[_+1]^o),S[_+2]=v(S[_+2]^l),S[_+3]=v(S[_+3]^c),r=h,o=d,l=m,c=y;return x}(t,e,n);r.set(o,t.byteOffset)}},r(t,null,[{key:"STEP",get:function(){return 32e3}}]),t}();h="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};var _=h.BigInt||Number;_("0x1"),_("0x100"),_("0x10000"),_("0x1000000"),_("0x100000000"),_("0x10000000000"),_("0x1000000000000"),_("0x100000000000000"),_("0x10000000000000000");var w=function(t){var e={};return Object.keys(t).forEach((function(n){var r,o=t[n];r=o,("function"===ArrayBuffer.isView?ArrayBuffer.isView(r):r&&r.buffer instanceof ArrayBuffer)?e[n]={bytes:o.buffer,byteOffset:o.byteOffset,byteLength:o.byteLength}:e[n]=o})),e};self.onmessage=function(t){var data=t.data,e=new Uint8Array(data.encrypted.bytes,data.encrypted.byteOffset,data.encrypted.byteLength),n=new Uint32Array(data.key.bytes,data.key.byteOffset,data.key.byteLength/4),r=new Uint32Array(data.iv.bytes,data.iv.byteOffset,data.iv.byteLength/4);new y(e,n,r,(function(t,e){self.postMessage(w({source:data.source,decrypted:e}),[e.buffer])}))}}))),ou=Mo(su),au=function(t){var e=t.default?"main":"alternative";return t.characteristics&&t.characteristics.indexOf("public.accessibility.describes-video")>=0&&(e="main-desc"),e},uu=function(t,e){t.abort(),t.pause(),e&&e.activePlaylistLoader&&(e.activePlaylistLoader.pause(),e.activePlaylistLoader=null)},lu=function(t,e){e.activePlaylistLoader=t,t.load()},cu={AUDIO:function(t,e){return function(){var n=e.segmentLoaders[t],r=e.mediaTypes[t],o=e.blacklistCurrentPlaylist;uu(n,r);var l=r.activeTrack(),c=r.activeGroup(),h=(c.filter((function(t){return t.default}))[0]||c[0]).id,d=r.tracks[h];if(l!==d){for(var f in gs.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),r.tracks)r.tracks[f].enabled=r.tracks[f]===d;r.onTrackChanged()}else o({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(t,e){return function(){var n=e.segmentLoaders[t],r=e.mediaTypes[t];gs.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),uu(n,r);var track=r.activeTrack();track&&(track.mode="disabled"),r.onTrackChanged()}}},hu={AUDIO:function(t,e,n){if(e){var r=n.tech,o=n.requestOptions,l=n.segmentLoaders[t];e.on("loadedmetadata",(function(){var t=e.media();l.playlist(t,o),(!r.paused()||t.endList&&"none"!==r.preload())&&l.load()})),e.on("loadedplaylist",(function(){l.playlist(e.media(),o),r.paused()||l.load()})),e.on("error",cu[t](t,n))}},SUBTITLES:function(t,e,n){var r=n.tech,o=n.requestOptions,l=n.segmentLoaders[t],c=n.mediaTypes[t];e.on("loadedmetadata",(function(){var t=e.media();l.playlist(t,o),l.track(c.activeTrack()),(!r.paused()||t.endList&&"none"!==r.preload())&&l.load()})),e.on("loadedplaylist",(function(){l.playlist(e.media(),o),r.paused()||l.load()})),e.on("error",cu[t](t,n))}},du={AUDIO:function(t,e){var n=e.vhs,r=e.sourceType,o=e.segmentLoaders[t],l=e.requestOptions,c=e.master.mediaGroups,h=e.mediaTypes[t],d=h.groups,f=h.tracks,m=h.logger_,v=e.masterPlaylistLoader,y=Ys(v.master);for(var _ in c[t]&&0!==Object.keys(c[t]).length||(c[t]={main:{default:{default:!0}}},y&&(c[t].main.default.playlists=v.master.playlists)),c[t])for(var w in d[_]||(d[_]=[]),c[t][_]){var T=c[t][_][w],x=void 0;if(y?(m("AUDIO group '"+_+"' label '"+w+"' is a master playlist"),T.isMasterPlaylist=!0,x=null):x="vhs-json"===r&&T.playlists?new uo(T.playlists[0],n,l):T.resolvedUri?new uo(T.resolvedUri,n,l):T.playlists&&"dash"===r?new Lo(T.playlists[0],n,l,v):null,T=gs.mergeOptions({id:w,playlistLoader:x},T),hu[t](t,T.playlistLoader,e),d[_].push(T),void 0===f[w]){var track=new gs.AudioTrack({id:w,kind:au(T),enabled:!1,language:T.language,default:T.default,label:w});f[w]=track}}o.on("error",cu[t](t,e))},SUBTITLES:function(t,e){var n=e.tech,r=e.vhs,o=e.sourceType,l=e.segmentLoaders[t],c=e.requestOptions,h=e.master.mediaGroups,d=e.mediaTypes[t],f=d.groups,m=d.tracks,v=e.masterPlaylistLoader;for(var y in h[t])for(var _ in f[y]||(f[y]=[]),h[t][y])if(!h[t][y][_].forced){var w=h[t][y][_],T=void 0;if("hls"===o)T=new uo(w.resolvedUri,r,c);else if("dash"===o){if(!w.playlists.filter((function(p){return p.excludeUntil!==1/0})).length)return;T=new Lo(w.playlists[0],r,c,v)}else"vhs-json"===o&&(T=new uo(w.playlists?w.playlists[0]:w.resolvedUri,r,c));if(w=gs.mergeOptions({id:_,playlistLoader:T},w),hu[t](t,w.playlistLoader,e),f[y].push(w),void 0===m[_]){var track=n.addRemoteTextTrack({id:_,kind:"subtitles",default:w.default&&w.autoselect,language:w.language,label:_},!1).track;m[_]=track}}l.on("error",cu[t](t,e))},"CLOSED-CAPTIONS":function(t,e){var n=e.tech,r=e.master.mediaGroups,o=e.mediaTypes[t],l=o.groups,c=o.tracks;for(var h in r[t])for(var d in l[h]||(l[h]=[]),r[t][h]){var f=r[t][h][d];if(/^(?:CC|SERVICE)/.test(f.instreamId)){var m=n.options_.vhs&&n.options_.vhs.captionServices||{},v={label:d,language:f.language,instreamId:f.instreamId,default:f.default&&f.autoselect};if(m[v.instreamId]&&(v=gs.mergeOptions(v,m[v.instreamId])),void 0===v.default&&delete v.default,l[h].push(gs.mergeOptions({id:d},f)),void 0===c[d]){var track=n.addRemoteTextTrack({id:v.instreamId,kind:"captions",default:v.default,language:v.language,label:v.label},!1).track;c[d]=track}}}}},fu=function t(e,n){for(var i=0;i<e.length;i++){if(Vs(n,e[i]))return!0;if(e[i].playlists&&t(e[i].playlists,n))return!0}return!1},pu={AUDIO:function(t,e){return function(){var n=e.mediaTypes[t].tracks;for(var r in n)if(n[r].enabled)return n[r];return null}},SUBTITLES:function(t,e){return function(){var n=e.mediaTypes[t].tracks;for(var r in n)if("showing"===n[r].mode||"hidden"===n[r].mode)return n[r];return null}}},mu=function(t){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(e){du[e](e,t)}));var e=t.mediaTypes,n=t.masterPlaylistLoader,r=t.tech,o=t.vhs,l=t.segmentLoaders,c=l.AUDIO,h=l.main;["AUDIO","SUBTITLES"].forEach((function(n){e[n].activeGroup=function(t,e){return function(track){var n=e.masterPlaylistLoader,r=e.mediaTypes[t].groups,o=n.media();if(!o)return null;var l=null;o.attributes[t]&&(l=r[o.attributes[t]]);var c=Object.keys(r);if(!l)if("AUDIO"===t&&c.length>1&&Ys(e.master))for(var i=0;i<c.length;i++){var h=r[c[i]];if(fu(h,o)){l=h;break}}else r.main?l=r.main:1===c.length&&(l=r[c[0]]);return void 0===track?l:null!==track&&l&&l.filter((function(t){return t.id===track.id}))[0]||null}}(n,t),e[n].activeTrack=pu[n](n,t),e[n].onGroupChanged=function(t,e){return function(){var n=e.segmentLoaders,r=n[t],o=n.main,l=e.mediaTypes[t],c=l.activeTrack(),h=l.getActiveGroup(),d=l.activePlaylistLoader,f=l.lastGroup_;h&&f&&h.id===f.id||(l.lastGroup_=h,l.lastTrack_=c,uu(r,l),h&&!h.isMasterPlaylist&&(h.playlistLoader?(r.resyncLoader(),lu(h.playlistLoader,l)):d&&o.resetEverything()))}}(n,t),e[n].onGroupChanging=function(t,e){return function(){var n=e.segmentLoaders[t];e.mediaTypes[t].lastGroup_=null,n.abort(),n.pause()}}(n,t),e[n].onTrackChanged=function(t,e){return function(){var n=e.masterPlaylistLoader,r=e.segmentLoaders,o=r[t],l=r.main,c=e.mediaTypes[t],h=c.activeTrack(),d=c.getActiveGroup(),f=c.activePlaylistLoader,m=c.lastTrack_;if((!m||!h||m.id!==h.id)&&(c.lastGroup_=d,c.lastTrack_=h,uu(o,c),d)){if(d.isMasterPlaylist){if(!h||!m||h.id===m.id)return;var v=e.vhs.masterPlaylistController_,y=v.selectPlaylist();if(v.media()===y)return;return c.logger_("track change. Switching master audio from "+m.id+" to "+h.id),n.pause(),l.resetEverything(),void v.fastQualityChange_(y)}if("AUDIO"===t){if(!d.playlistLoader)return l.setAudio(!0),void l.resetEverything();o.setAudio(!0),l.setAudio(!1)}f!==d.playlistLoader?(o.track&&o.track(h),o.resetEverything(),lu(d.playlistLoader,c)):lu(d.playlistLoader,c)}}}(n,t),e[n].getActiveGroup=function(t,e){var n=e.mediaTypes;return function(){var e=n[t].activeTrack();return e?n[t].activeGroup(e):null}}(n,t)}));var d=e.AUDIO.activeGroup();if(d){var f=(d.filter((function(t){return t.default}))[0]||d[0]).id;e.AUDIO.tracks[f].enabled=!0,e.AUDIO.onGroupChanged(),e.AUDIO.onTrackChanged(),e.AUDIO.getActiveGroup().playlistLoader?(h.setAudio(!1),c.setAudio(!0)):h.setAudio(!0)}n.on("mediachange",(function(){["AUDIO","SUBTITLES"].forEach((function(t){return e[t].onGroupChanged()}))})),n.on("mediachanging",(function(){["AUDIO","SUBTITLES"].forEach((function(t){return e[t].onGroupChanging()}))}));var m=function(){e.AUDIO.onTrackChanged(),r.trigger({type:"usage",name:"vhs-audio-change"}),r.trigger({type:"usage",name:"hls-audio-change"})};for(var v in r.audioTracks().addEventListener("change",m),r.remoteTextTracks().addEventListener("change",e.SUBTITLES.onTrackChanged),o.on("dispose",(function(){r.audioTracks().removeEventListener("change",m),r.remoteTextTracks().removeEventListener("change",e.SUBTITLES.onTrackChanged)})),r.clearTracks("audio"),e.AUDIO.tracks)r.audioTracks().addTrack(e.AUDIO.tracks[v])},gu=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],vu=function(t){return this.audioSegmentLoader_[t]+this.mainSegmentLoader_[t]},yu=function(t){function e(e){var n;n=t.call(this)||this;var r=e.src,o=e.handleManifestRedirects,c=e.withCredentials,h=e.tech,d=e.bandwidth,f=e.externVhs,m=e.useCueTags,v=e.blacklistDuration,y=e.enableLowInitialPlaylist,w=e.sourceType,T=e.cacheEncryptionKeys,x=e.experimentalBufferBasedABR,S=e.experimentalLeastPixelDiffSelector,E=e.captionServices;if(!r)throw new Error("A non-empty playlist URL or JSON manifest string is required");var k,A=e.maxPlaylistRetries;null==A&&(A=1/0),Ia=f,n.experimentalBufferBasedABR=Boolean(x),n.experimentalLeastPixelDiffSelector=Boolean(S),n.withCredentials=c,n.tech_=h,n.vhs_=h.vhs,n.sourceType_=w,n.useCueTags_=m,n.blacklistDuration=v,n.maxPlaylistRetries=A,n.enableLowInitialPlaylist=y,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:c,handleManifestRedirects:o,maxPlaylistRetries:A,timeout:null},n.on("error",n.pauseLoading),n.mediaTypes_=(k={},["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(t){k[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:ja,activeTrack:ja,getActiveGroup:ja,onGroupChanged:ja,onTrackChanged:ja,lastTrack_:null,logger_:bs("MediaGroups["+t+"]")}})),k),n.mediaSource=new l.a.MediaSource,n.handleDurationChange_=n.handleDurationChange_.bind(_()(n)),n.handleSourceOpen_=n.handleSourceOpen_.bind(_()(n)),n.handleSourceEnded_=n.handleSourceEnded_.bind(_()(n)),n.mediaSource.addEventListener("durationchange",n.handleDurationChange_),n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_),n.mediaSource.addEventListener("sourceended",n.handleSourceEnded_),n.seekable_=gs.createTimeRanges(),n.hasPlayed_=!1,n.syncController_=new ru(e),n.segmentMetadataTrack_=h.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new ou,n.sourceUpdater_=new $a(n.mediaSource),n.inbandTextTracks_={},n.timelineChangeController_=new iu;var C={vhs:n.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:E,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:d,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:T,sourceUpdater:n.sourceUpdater_,timelineChangeController:n.timelineChangeController_,experimentalExactManifestTimings:e.experimentalExactManifestTimings};n.masterPlaylistLoader_="dash"===n.sourceType_?new Lo(r,n.vhs_,n.requestOptions_):new uo(r,n.vhs_,n.requestOptions_),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new Oa(gs.mergeOptions(C,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),e),n.audioSegmentLoader_=new Oa(gs.mergeOptions(C,{loaderType:"audio"}),e),n.subtitleSegmentLoader_=new tu(gs.mergeOptions(C,{loaderType:"vtt",featuresNativeTextTracks:n.tech_.featuresNativeTextTracks,loadVttJs:function(){return new Promise((function(t,e){function n(){h.off("vttjserror",r),t()}function r(){h.off("vttjsloaded",n),e()}h.one("vttjsloaded",n),h.one("vttjserror",r),h.addWebVttScript_()}))}}),e),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_()}))),gu.forEach((function(t){n[t+"_"]=vu.bind(_()(n),t)})),n.logger_=bs("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 O="none"===n.tech_.preload()?"play":"loadstart";return n.tech_.one(O,(function(){var t=Date.now();n.tech_.one("loadeddata",(function(){n.timeToLoadedData__=Date.now()-t,n.mainAppendsToLoadedData__=n.mainSegmentLoader_.mediaAppends,n.audioAppendsToLoadedData__=n.audioSegmentLoader_.mediaAppends}))})),n}T()(e,t);var n=e.prototype;return n.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},n.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},n.appendsToLoadedData_=function(){var main=this.mainAppendsToLoadedData_(),audio=this.audioAppendsToLoadedData_();return-1===main||-1===audio?-1:main+audio},n.timeToLoadedData_=function(){return this.timeToLoadedData__},n.checkABR_=function(t){void 0===t&&(t="abr");var e=this.selectPlaylist();e&&this.shouldSwitchToMedia_(e)&&this.switchMedia_(e,t)},n.switchMedia_=function(t,e,n){var r=this.media(),o=r&&(r.id||r.uri),l=t.id||t.uri;o&&o!==l&&(this.logger_("switch media "+o+" -> "+l+" from "+e),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+e})),this.masterPlaylistLoader_.media(t,n)},n.startABRTimer_=function(){var t=this;this.stopABRTimer_(),this.abrTimer_=l.a.setInterval((function(){return t.checkABR_()}),250)},n.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(l.a.clearInterval(this.abrTimer_),this.abrTimer_=null)},n.getAudioTrackPlaylists_=function(){var t=this.master(),e=t&&t.playlists||[];if(!t||!t.mediaGroups||!t.mediaGroups.AUDIO)return e;var track,n=t.mediaGroups.AUDIO,r=Object.keys(n);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)track=this.mediaTypes_.AUDIO.activeTrack();else{var o=n.main||r.length&&n[r[0]];for(var label in o)if(o[label].default){track={label:label};break}}if(!track)return e;var l=[];for(var c in n)if(n[c][track.label]){var h=n[c][track.label];if(h.playlists&&h.playlists.length)l.push.apply(l,h.playlists);else if(h.uri)l.push(h);else if(t.playlists.length)for(var i=0;i<t.playlists.length;i++){var d=t.playlists[i];d.attributes&&d.attributes.AUDIO&&d.attributes.AUDIO===c&&l.push(d)}}return l.length?l:e},n.setupMasterPlaylistLoaderListeners_=function(){var t=this;this.masterPlaylistLoader_.on("loadedmetadata",(function(){var e=t.masterPlaylistLoader_.media(),n=1.5*e.targetDuration*1e3;Hs(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?t.requestOptions_.timeout=0:t.requestOptions_.timeout=n,e.endList&&"none"!==t.tech_.preload()&&(t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.mainSegmentLoader_.load()),mu({sourceType:t.sourceType_,segmentLoaders:{AUDIO:t.audioSegmentLoader_,SUBTITLES:t.subtitleSegmentLoader_,main:t.mainSegmentLoader_},tech:t.tech_,requestOptions:t.requestOptions_,masterPlaylistLoader:t.masterPlaylistLoader_,vhs:t.vhs_,master:t.master(),mediaTypes:t.mediaTypes_,blacklistCurrentPlaylist:t.blacklistCurrentPlaylist.bind(t)}),t.triggerPresenceUsage_(t.master(),e),t.setupFirstPlay(),!t.mediaTypes_.AUDIO.activePlaylistLoader||t.mediaTypes_.AUDIO.activePlaylistLoader.media()?t.trigger("selectedinitialmedia"):t.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",(function(){t.trigger("selectedinitialmedia")}))})),this.masterPlaylistLoader_.on("loadedplaylist",(function(){t.loadOnPlay_&&t.tech_.off("play",t.loadOnPlay_);var e=t.masterPlaylistLoader_.media();if(!e){var n;if(t.excludeUnsupportedVariants_(),t.enableLowInitialPlaylist&&(n=t.selectInitialPlaylist()),n||(n=t.selectPlaylist()),!n||!t.shouldSwitchToMedia_(n))return;if(t.initialMedia_=n,t.switchMedia_(t.initialMedia_,"initial"),!("vhs-json"===t.sourceType_&&t.initialMedia_.segments))return;e=t.initialMedia_}t.handleUpdatedMediaPlaylist(e)})),this.masterPlaylistLoader_.on("error",(function(){t.blacklistCurrentPlaylist(t.masterPlaylistLoader_.error)})),this.masterPlaylistLoader_.on("mediachanging",(function(){t.mainSegmentLoader_.abort(),t.mainSegmentLoader_.pause()})),this.masterPlaylistLoader_.on("mediachange",(function(){var e=t.masterPlaylistLoader_.media(),n=1.5*e.targetDuration*1e3;Hs(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?t.requestOptions_.timeout=0:t.requestOptions_.timeout=n,t.masterPlaylistLoader_.load(),t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.mainSegmentLoader_.load(),t.tech_.trigger({type:"mediachange",bubbles:!0})})),this.masterPlaylistLoader_.on("playlistunchanged",(function(){var e=t.masterPlaylistLoader_.media();"playlist-unchanged"!==e.lastExcludeReason_&&(t.stuckAtPlaylistEnd_(e)&&(t.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),t.tech_.trigger("playliststuck")))})),this.masterPlaylistLoader_.on("renditiondisabled",(function(){t.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),t.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})})),this.masterPlaylistLoader_.on("renditionenabled",(function(){t.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),t.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})}))},n.handleUpdatedMediaPlaylist=function(t){this.useCueTags_&&this.updateAdCues_(t),this.mainSegmentLoader_.playlist(t,this.requestOptions_),this.updateDuration(!t.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},n.triggerPresenceUsage_=function(t,e){var n=t.mediaGroups||{},r=!0,o=Object.keys(n.AUDIO);for(var l in n.AUDIO)for(var label in n.AUDIO[l]){n.AUDIO[l][label].uri||(r=!1)}r&&(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"})),Ia.Playlist.isAes(e)&&(this.tech_.trigger({type:"usage",name:"vhs-aes"}),this.tech_.trigger({type:"usage",name:"hls-aes"})),o.length&&Object.keys(n.AUDIO[o[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(t){var e=this.masterPlaylistLoader_.media()||this.masterPlaylistLoader_.pendingMedia_,n=this.tech_.currentTime(),r=this.bufferLowWaterLine(),o=this.bufferHighWaterLine();return function(t){var e=t.currentPlaylist,n=t.buffered,r=t.currentTime,o=t.nextPlaylist,l=t.bufferLowWaterLine,c=t.bufferHighWaterLine,h=t.duration,d=t.experimentalBufferBasedABR,f=t.log;if(!o)return gs.log.warn("We received no playlist to switch to. Please check your stream."),!1;var m="allowing switch "+(e&&e.id||"null")+" -> "+o.id;if(!e)return f(m+" as current playlist is not set"),!0;if(o.id===e.id)return!1;var v=Boolean(xs(n,r).length);if(!e.endList)return v||"number"!=typeof e.partTargetDuration?(f(m+" as current playlist is live"),!0):(f("not "+m+" as current playlist is live llhls, but currentTime isn't in buffered."),!1);var y=Cs(n,r),_=d?Do.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Do.MAX_BUFFER_LOW_WATER_LINE;if(h<_)return f(m+" as duration < max low water line ("+h+" < "+_+")"),!0;var w=o.attributes.BANDWIDTH,T=e.attributes.BANDWIDTH;if(w<T&&(!d||y<c)){var x=m+" as next bandwidth < current bandwidth ("+w+" < "+T+")";return d&&(x+=" and forwardBuffer < bufferHighWaterLine ("+y+" < "+c+")"),f(x),!0}if((!d||w>T)&&y>=l){var S=m+" as forwardBuffer >= bufferLowWaterLine ("+y+" >= "+l+")";return d&&(S+=" and next bandwidth > current bandwidth ("+w+" > "+T+")"),f(S),!0}return f("not "+m+" as no switching criteria met"),!1}({buffered:this.tech_.buffered(),currentTime:n,currentPlaylist:e,nextPlaylist:t,bufferLowWaterLine:r,bufferHighWaterLine:o,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},n.setupSegmentLoaderListeners_=function(){var t=this;this.mainSegmentLoader_.on("bandwidthupdate",(function(){t.checkABR_("bandwidthupdate"),t.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("timeout",(function(){t.experimentalBufferBasedABR&&t.mainSegmentLoader_.load()})),this.experimentalBufferBasedABR||this.mainSegmentLoader_.on("progress",(function(){t.trigger("progress")})),this.mainSegmentLoader_.on("error",(function(){t.blacklistCurrentPlaylist(t.mainSegmentLoader_.error())})),this.mainSegmentLoader_.on("appenderror",(function(){t.error=t.mainSegmentLoader_.error_,t.trigger("error")})),this.mainSegmentLoader_.on("syncinfoupdate",(function(){t.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("timestampoffset",(function(){t.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),t.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})})),this.audioSegmentLoader_.on("syncinfoupdate",(function(){t.onSyncInfoUpdate_()})),this.audioSegmentLoader_.on("appenderror",(function(){t.error=t.audioSegmentLoader_.error_,t.trigger("error")})),this.mainSegmentLoader_.on("ended",(function(){t.logger_("main segment loader ended"),t.onEndOfStream()})),this.mainSegmentLoader_.on("earlyabort",(function(e){t.experimentalBufferBasedABR||(t.delegateLoaders_("all",["abort"]),t.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120))}));var e=function(){if(!t.sourceUpdater_.hasCreatedSourceBuffers())return t.tryToCreateSourceBuffers_();var e=t.getCodecsOrExclude_();e&&t.sourceUpdater_.addOrChangeSourceBuffers(e)};this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",(function(){t.triggeredFmp4Usage||(t.tech_.trigger({type:"usage",name:"vhs-fmp4"}),t.tech_.trigger({type:"usage",name:"hls-fmp4"}),t.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("fmp4",(function(){t.triggeredFmp4Usage||(t.tech_.trigger({type:"usage",name:"vhs-fmp4"}),t.tech_.trigger({type:"usage",name:"hls-fmp4"}),t.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("ended",(function(){t.logger_("audioSegmentLoader ended"),t.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(t){void 0===t&&(t=this.selectPlaylist()),this.fastQualityChange_(t)},n.fastQualityChange_=function(t){var e=this;void 0===t&&(t=this.selectPlaylist()),t!==this.masterPlaylistLoader_.media()?(this.switchMedia_(t,"fast-quality"),this.mainSegmentLoader_.resetEverything((function(){gs.browser.IE_VERSION||gs.browser.IS_EDGE?e.tech_.setCurrentTime(e.tech_.currentTime()+.04):e.tech_.setCurrentTime(e.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 t=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<t.start(0)?this.tech_.setCurrentTime(t.end(t.length-1)):void 0}},n.setupFirstPlay=function(){var t=this,e=this.masterPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList){var n=this.seekable();if(!n.length)return!1;if(gs.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",(function(){t.trigger("firstplay"),t.tech_.setCurrentTime(n.end(0)),t.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 t=this.tech_.play();void 0!==t&&"function"==typeof t.then&&t.then(null,(function(t){}))}this.trigger("sourceopen")},n.handleSourceEnded_=function(){if(this.inbandTextTracks_.metadataTrack_){var t=this.inbandTextTracks_.metadataTrack_.cues;if(t&&t.length){var e=this.duration();t[t.length-1].endTime=isNaN(e)||Math.abs(e)===1/0?Number.MAX_VALUE:e}}},n.handleDurationChange_=function(){this.tech_.trigger("durationchange")},n.onEndOfStream=function(){var t=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){var e=this.mainSegmentLoader_.getCurrentMediaInfo_();t=!e||e.hasVideo?t&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}t&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},n.stuckAtPlaylistEnd_=function(t){if(!this.seekable().length)return!1;var e=this.syncController_.getExpiredTime(t,this.duration());if(null===e)return!1;var n=Ia.Playlist.playlistEnd(t,e),r=this.tech_.currentTime(),o=this.tech_.buffered();if(!o.length)return n-r<=ws;var l=o.end(o.length-1);return l-r<=ws&&n-l<=ws},n.blacklistCurrentPlaylist=function(t,e){void 0===t&&(t={});var n=t.playlist||this.masterPlaylistLoader_.media();if(e=e||t.blacklistDuration||this.blacklistDuration,!n)return this.error=t,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));n.playlistErrors_++;var r,o=this.masterPlaylistLoader_.master.playlists,l=o.filter(zs),c=1===l.length&&l[0]===n;if(1===o.length&&e!==1/0)return gs.log.warn("Problem encountered with playlist "+n.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(c);if(c){var h=!1;o.forEach((function(t){if(t!==n){var e=t.excludeUntil;void 0!==e&&e!==1/0&&(h=!0,delete t.excludeUntil)}})),h&&(gs.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}r=n.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*e,n.excludeUntil=r,t.reason&&(n.lastExcludeReason_=t.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var d=this.selectPlaylist();if(!d)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");var f=t.internal?this.logger_:gs.log.warn,m=t.message?" "+t.message:"";f((t.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+m+" Switching to playlist "+d.id+"."),d.attributes.AUDIO!==n.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),d.attributes.SUBTITLES!==n.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var v=d.targetDuration/2*1e3||5e3,y="number"==typeof d.lastRequest&&Date.now()-d.lastRequest<=v;return this.switchMedia_(d,"exclude",c||y)},n.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},n.delegateLoaders_=function(filter,t){var e=this,n=[],r="all"===filter;(r||"main"===filter)&&n.push(this.masterPlaylistLoader_);var o=[];(r||"audio"===filter)&&o.push("AUDIO"),(r||"subtitle"===filter)&&(o.push("CLOSED-CAPTIONS"),o.push("SUBTITLES")),o.forEach((function(t){var r=e.mediaTypes_[t]&&e.mediaTypes_[t].activePlaylistLoader;r&&n.push(r)})),["main","audio","subtitle"].forEach((function(t){var r=e[t+"SegmentLoader_"];!r||filter!==t&&"all"!==filter||n.push(r)})),n.forEach((function(e){return t.forEach((function(t){"function"==typeof e[t]&&e[t]()}))}))},n.setCurrentTime=function(t){var e=xs(this.tech_.buffered(),t);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?e&&e.length?t:(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 t=this.masterPlaylistLoader_.media();return t?t.endList?this.mediaSource?this.mediaSource.duration:Ia.Playlist.duration(t):1/0:0},n.seekable=function(){return this.seekable_},n.onSyncInfoUpdate_=function(){var t;if(this.masterPlaylistLoader_){var e=this.masterPlaylistLoader_.media();if(e){var n=this.syncController_.getExpiredTime(e,this.duration());if(null!==n){var r=this.masterPlaylistLoader_.master,o=Ia.Playlist.seekable(e,n,Ia.Playlist.liveEdgeDelay(r,e));if(0!==o.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(e=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(n=this.syncController_.getExpiredTime(e,this.duration())))return;if(0===(t=Ia.Playlist.seekable(e,n,Ia.Playlist.liveEdgeDelay(r,e))).length)return}var l,c;this.seekable_&&this.seekable_.length&&(l=this.seekable_.end(0),c=this.seekable_.start(0)),t?t.start(0)>o.end(0)||o.start(0)>t.end(0)?this.seekable_=o:this.seekable_=gs.createTimeRanges([[t.start(0)>o.start(0)?t.start(0):o.start(0),t.end(0)<o.end(0)?t.end(0):o.end(0)]]):this.seekable_=o,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===l&&this.seekable_.start(0)===c||(this.logger_("seekable updated ["+Es(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},n.updateDuration=function(t){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,t),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(t){var e=this.seekable();if(!e.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<e.end(e.length-1))&&this.sourceUpdater_.setDuration(e.end(e.length-1))}else{var n=this.tech_.buffered(),r=Ia.Playlist.duration(this.masterPlaylistLoader_.media());n.length>0&&(r=Math.max(r,n.end(n.length-1))),this.mediaSource.duration!==r&&this.sourceUpdater_.setDuration(r)}},n.dispose=function(){var t=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(e){var n=t.mediaTypes_[e].groups;for(var r in n)n[r].forEach((function(t){t.playlistLoader&&t.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 t=!!this.mediaTypes_.AUDIO.activePlaylistLoader,e=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),n=!t||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!e||!n)},n.getCodecsOrExclude_=function(){var t=this,e={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},n=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();e.video=e.main;var r=da(this.master(),n),o={},l=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(o.video=r.video||e.main.videoCodec||M.b),e.main.isMuxed&&(o.video+=","+(r.audio||e.main.audioCodec||M.a)),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||l)&&(o.audio=r.audio||e.main.audioCodec||e.audio.audioCodec||M.a,e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),o.audio||o.video){var c,h={};if(["video","audio"].forEach((function(t){if(o.hasOwnProperty(t)&&(r=e[t].isFmp4,l=o[t],!(r?Object(M.c)(l):Object(M.g)(l)))){var n=e[t].isFmp4?"browser":"muxer";h[n]=h[n]||[],h[n].push(o[t]),"audio"===t&&(c=n)}var r,l})),l&&c&&n.attributes.AUDIO){var d=n.attributes.AUDIO;this.master().playlists.forEach((function(t){(t.attributes&&t.attributes.AUDIO)===d&&t!==n&&(t.excludeUntil=1/0)})),this.logger_("excluding audio group "+d+" as "+c+' does not support codec(s): "'+o.audio+'"')}if(!Object.keys(h).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var f=[];if(["video","audio"].forEach((function(e){var n=(Object(M.h)(t.sourceUpdater_.codecs[e]||"")[0]||{}).type,r=(Object(M.h)(o[e]||"")[0]||{}).type;n&&r&&n.toLowerCase()!==r.toLowerCase()&&f.push('"'+t.sourceUpdater_.codecs[e]+'" -> "'+o[e]+'"')})),f.length)return void this.blacklistCurrentPlaylist({playlist:n,message:"Codec switching not supported: "+f.join(", ")+".",blacklistDuration:1/0,internal:!0})}return o}var m=Object.keys(h).reduce((function(t,e){return t&&(t+=", "),t+=e+' does not support codec(s): "'+h[e].join(",")+'"'}),"")+".";this.blacklistCurrentPlaylist({playlist:n,internal:!0,message:m,blacklistDuration:1/0})}else this.blacklistCurrentPlaylist({playlist:n,message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},n.tryToCreateSourceBuffers_=function(){if("open"===this.mediaSource.readyState&&!this.sourceUpdater_.hasCreatedSourceBuffers()&&this.areMediaTypesKnown_()){var t=this.getCodecsOrExclude_();if(t){this.sourceUpdater_.createSourceBuffers(t);var e=[t.video,t.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(e)}}},n.excludeUnsupportedVariants_=function(){var t=this,e=this.master().playlists,n=[];Object.keys(e).forEach((function(r){var o=e[r];if(-1===n.indexOf(o.id)){n.push(o.id);var l=da(t.master,o),c=[];!l.audio||Object(M.g)(l.audio)||Object(M.c)(l.audio)||c.push("audio codec "+l.audio),!l.video||Object(M.g)(l.video)||Object(M.c)(l.video)||c.push("video codec "+l.video),l.text&&"stpp.ttml.im1t"===l.text&&c.push("text codec "+l.text),c.length&&(o.excludeUntil=1/0,t.logger_("excluding "+o.id+" for unsupported: "+c.join(", ")))}}))},n.excludeIncompatibleVariants_=function(t){var e=this,n=[],r=this.master().playlists,o=ca(Object(M.h)(t)),l=ha(o),c=o.video&&Object(M.h)(o.video)[0]||null,h=o.audio&&Object(M.h)(o.audio)[0]||null;Object.keys(r).forEach((function(t){var o=r[t];if(-1===n.indexOf(o.id)&&o.excludeUntil!==1/0){n.push(o.id);var d=[],f=da(e.masterPlaylistLoader_.master,o),m=ha(f);if(f.audio||f.video){if(m!==l&&d.push('codec count "'+m+'" !== "'+l+'"'),!e.sourceUpdater_.canChangeType()){var v=f.video&&Object(M.h)(f.video)[0]||null,y=f.audio&&Object(M.h)(f.audio)[0]||null;v&&c&&v.type.toLowerCase()!==c.type.toLowerCase()&&d.push('video codec "'+v.type+'" !== "'+c.type+'"'),y&&h&&y.type.toLowerCase()!==h.type.toLowerCase()&&d.push('audio codec "'+y.type+'" !== "'+h.type+'"')}d.length&&(o.excludeUntil=1/0,e.logger_("blacklisting "+o.id+": "+d.join(" && ")))}}}))},n.updateAdCues_=function(t){var e=0,n=this.seekable();n.length&&(e=n.start(0)),function(t,track,e){if(void 0===e&&(e=0),t.segments)for(var n,r=e,i=0;i<t.segments.length;i++){var o=t.segments[i];if(n||(n=eu(track,r+o.duration/2)),n){if("cueIn"in o){n.endTime=r,n.adEndTime=r,r+=o.duration,n=null;continue}if(r<n.endTime){r+=o.duration;continue}n.endTime+=o.duration}else if("cueOut"in o&&((n=new l.a.VTTCue(r,r+o.duration,o.cueOut)).adStartTime=r,n.adEndTime=r+parseFloat(o.cueOut),track.addCue(n)),"cueOutCont"in o){var c=o.cueOutCont.split("/").map(parseFloat),h=c[0],d=c[1];(n=new l.a.VTTCue(r,r+o.duration,"")).adStartTime=r-h,n.adEndTime=n.adStartTime+d,track.addCue(n)}r+=o.duration}}(t,this.cueTagsTrack_,e)},n.goalBufferLength=function(){var t=this.tech_.currentTime(),e=Do.GOAL_BUFFER_LENGTH,n=Do.GOAL_BUFFER_LENGTH_RATE,r=Math.max(e,Do.MAX_GOAL_BUFFER_LENGTH);return Math.min(e+t*n,r)},n.bufferLowWaterLine=function(){var t=this.tech_.currentTime(),e=Do.BUFFER_LOW_WATER_LINE,n=Do.BUFFER_LOW_WATER_LINE_RATE,r=Math.max(e,Do.MAX_BUFFER_LOW_WATER_LINE),o=Math.max(e,Do.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(e+t*n,this.experimentalBufferBasedABR?o:r)},n.bufferHighWaterLine=function(){return Do.BUFFER_HIGH_WATER_LINE},e}(gs.EventTarget),bu=function(t,e,n){var r,o,l,c=t.masterPlaylistController_,h=c[(t.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(c);if(e.attributes){var d=e.attributes.RESOLUTION;this.width=d&&d.width,this.height=d&&d.height,this.bandwidth=e.attributes.BANDWIDTH,this.frameRate=e.attributes["FRAME-RATE"]}this.codecs=da(c.master(),e),this.playlist=e,this.id=n,this.enabled=(r=t.playlists,o=e.id,l=h,function(t){var e=r.master.playlists[o],n=Fs(e),c=zs(e);return void 0===t?c:(t?delete e.disabled:e.disabled=!0,t===c||n||(l(),t?r.trigger("renditionenabled"):r.trigger("renditiondisabled")),t)})},_u=["seeking","seeked","pause","playing","error"],wu=function(){function t(t){var e=this;this.masterPlaylistController_=t.masterPlaylistController,this.tech_=t.tech,this.seekable=t.seekable,this.allowSeeksWithinUnsafeLiveWindow=t.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=t.liveRangeSafeTimeDelta,this.media=t.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=bs("PlaybackWatcher"),this.logger_("initialize");var n=function(){return e.monitorCurrentTime_()},r=function(){return e.monitorCurrentTime_()},o=function(){return e.techWaiting_()},c=function(){return e.cancelTimer_()},h=this.masterPlaylistController_,d=["main","subtitle","audio"],f={};d.forEach((function(t){f[t]={reset:function(){return e.resetSegmentDownloads_(t)},updateend:function(){return e.checkSegmentDownloads_(t)}},h[t+"SegmentLoader_"].on("appendsdone",f[t].updateend),h[t+"SegmentLoader_"].on("playlistupdate",f[t].reset),e.tech_.on(["seeked","seeking"],f[t].reset)}));var m=function(t){["main","audio"].forEach((function(n){h[n+"SegmentLoader_"][t]("appended",e.seekingAppendCheck_)}))};this.seekingAppendCheck_=function(){e.fixesBadSeeks_()&&(e.consecutiveUpdates=0,e.lastRecordedTime=e.tech_.currentTime(),m("off"))},this.clearSeekingAppendCheck_=function(){return m("off")},this.watchForBadSeeking_=function(){e.clearSeekingAppendCheck_(),m("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",o),this.tech_.on(_u,c),this.tech_.on("canplay",r),this.tech_.one("play",n),this.dispose=function(){e.clearSeekingAppendCheck_(),e.logger_("dispose"),e.tech_.off("waiting",o),e.tech_.off(_u,c),e.tech_.off("canplay",r),e.tech_.off("play",n),e.tech_.off("seeking",e.watchForBadSeeking_),e.tech_.off("seeked",e.clearSeekingAppendCheck_),d.forEach((function(t){h[t+"SegmentLoader_"].off("appendsdone",f[t].updateend),h[t+"SegmentLoader_"].off("playlistupdate",f[t].reset),e.tech_.off(["seeked","seeking"],f[t].reset)})),e.checkCurrentTimeTimeout_&&l.a.clearTimeout(e.checkCurrentTimeTimeout_),e.cancelTimer_()}}var e=t.prototype;return e.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&l.a.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=l.a.setTimeout(this.monitorCurrentTime_.bind(this),250)},e.resetSegmentDownloads_=function(t){var e=this.masterPlaylistController_[t+"SegmentLoader_"];this[t+"StalledDownloads_"]>0&&this.logger_("resetting possible stalled download count for "+t+" loader"),this[t+"StalledDownloads_"]=0,this[t+"Buffered_"]=e.buffered_()},e.checkSegmentDownloads_=function(t){var e=this.masterPlaylistController_,n=e[t+"SegmentLoader_"],r=n.buffered_(),o=function(a,b){if(a===b)return!1;if(!a&&b||!b&&a)return!0;if(a.length!==b.length)return!0;for(var i=0;i<a.length;i++)if(a.start(i)!==b.start(i)||a.end(i)!==b.end(i))return!0;return!1}(this[t+"Buffered_"],r);this[t+"Buffered_"]=r,o?this.resetSegmentDownloads_(t):(this[t+"StalledDownloads_"]++,this.logger_("found #"+this[t+"StalledDownloads_"]+" "+t+" appends that did not increase buffer (possible stalled download)",{playlistId:n.playlist_&&n.playlist_.id,buffered:ks(r)}),this[t+"StalledDownloads_"]<10||(this.logger_(t+" loader stalled download exclusion"),this.resetSegmentDownloads_(t),this.tech_.trigger({type:"usage",name:"vhs-"+t+"-download-exclusion"}),"subtitle"!==t&&e.blacklistCurrentPlaylist({message:"Excessive "+t+" segment downloading detected."},1/0)))},e.checkCurrentTime_=function(){if(!this.tech_.paused()&&!this.tech_.seeking()){var t=this.tech_.currentTime(),e=this.tech_.buffered();if(this.lastRecordedTime===t&&(!e.length||t+ws>=e.end(e.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&t===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):t===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=t)}},e.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},e.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var t,e=this.seekable(),n=this.tech_.currentTime();this.afterSeekableWindow_(e,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(t=e.end(e.length-1));if(this.beforeSeekableWindow_(e,n)){var r=e.start(0);t=r+(r===e.end(0)?0:ws)}if(void 0!==t)return this.logger_("Trying to seek outside of seekable at time "+n+" with seekable range "+Es(e)+". Seeking to "+t+"."),this.tech_.setCurrentTime(t),!0;for(var o=this.masterPlaylistController_.sourceUpdater_,l=this.tech_.buffered(),c=o.audioBuffer?o.audioBuffered():null,h=o.videoBuffer?o.videoBuffered():null,d=this.media(),f=d.partTargetDuration?d.partTargetDuration:2*(d.targetDuration-_s),m=[c,h],i=0;i<m.length;i++){if(m[i])if(Cs(m[i],n)<f)return!1}var v=Ss(l,n);return 0!==v.length&&(t=v.start(0)+ws,this.logger_("Buffered region starts ("+v.start(0)+") just beyond seek point ("+n+"). Seeking to "+t+"."),this.tech_.setCurrentTime(t),!0)},e.waiting_=function(){if(!this.techWaiting_()){var t=this.tech_.currentTime(),e=this.tech_.buffered(),n=xs(e,t);return n.length&&t+3<=n.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(t),this.logger_("Stopped at "+t+" 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}},e.techWaiting_=function(){var t=this.seekable(),e=this.tech_.currentTime();if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(t,e)){var n=t.end(t.length-1);return this.logger_("Fell out of live window at time "+e+". 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 r=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,o=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:r.audioBuffered(),videoBuffered:r.videoBuffered(),currentTime:e}))return this.cancelTimer_(),this.tech_.setCurrentTime(e),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var l=Ss(o,e);if(l.length>0){var c=l.start(0)-e;return this.logger_("Stopped at "+e+", setting timer for "+c+", seeking to "+l.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*c,e),!0}return!1},e.afterSeekableWindow_=function(t,e,n,r){if(void 0===r&&(r=!1),!t.length)return!1;var o=t.end(t.length-1)+ws;return!n.endList&&r&&(o=t.end(t.length-1)+3*n.targetDuration),e>o},e.beforeSeekableWindow_=function(t,e){return!!(t.length&&t.start(0)>0&&e<t.start(0)-this.liveRangeSafeTimeDelta)},e.videoUnderflow_=function(t){var e=t.videoBuffered,n=t.audioBuffered,r=t.currentTime;if(e){var o;if(e.length&&n.length){var l=xs(e,r-3),c=xs(e,r),h=xs(n,r);h.length&&!c.length&&l.length&&(o={start:l.end(0),end:h.end(0)})}else{Ss(e,r).length||(o=this.gapFromVideoUnderflow_(e,r))}return!!o&&(this.logger_("Encountered a gap in video from "+o.start+" to "+o.end+". Seeking to current time "+r),!0)}},e.skipTheGap_=function(t){var e=this.tech_.buffered(),n=this.tech_.currentTime(),r=Ss(e,n);this.cancelTimer_(),0!==r.length&&n===t&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",t,"nextRange start:",r.start(0)),this.tech_.setCurrentTime(r.start(0)+_s),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))},e.gapFromVideoUnderflow_=function(t,e){for(var n=function(t){if(t.length<2)return gs.createTimeRanges();for(var e=[],i=1;i<t.length;i++){var n=t.end(i-1),r=t.start(i);e.push([n,r])}return gs.createTimeRanges(e)}(t),i=0;i<n.length;i++){var r=n.start(i),o=n.end(i);if(e-r<4&&e-r>2)return{start:r,end:o}}return null},t}(),Tu={errorInterval:30,getSource:function(t){return t(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},xu=function t(e,n){var r=0,o=0,l=gs.mergeOptions(Tu,n);e.ready((function(){e.trigger({type:"usage",name:"vhs-error-reload-initialized"}),e.trigger({type:"usage",name:"hls-error-reload-initialized"})}));var c=function(){o&&e.currentTime(o)},h=function(t){null!=t&&(o=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",c),e.src(t),e.trigger({type:"usage",name:"vhs-error-reload"}),e.trigger({type:"usage",name:"hls-error-reload"}),e.play())},d=function(){return Date.now()-r<1e3*l.errorInterval?(e.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void e.trigger({type:"usage",name:"hls-error-reload-canceled"})):l.getSource&&"function"==typeof l.getSource?(r=Date.now(),l.getSource.call(e,h)):void gs.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},f=function t(){e.off("loadedmetadata",c),e.off("error",d),e.off("dispose",t)};e.on("error",d),e.on("dispose",f),e.reloadSourceOnError=function(n){f(),t(e,n)}},Su="2.16.3",Eu={PlaylistLoader:uo,Playlist:Gs,utils:To,STANDARD_PLAYLIST_SELECTOR:ba,INITIAL_PLAYLIST_SELECTOR:function(){var t=this,e=this.playlists.master.playlists.filter(Gs.isEnabled);return ga(e,(function(a,b){return va(a,b)})),e.filter((function(e){return!!da(t.playlists.master,e).video}))[0]||null},lastBandwidthSelector:ba,movingAverageBandwidthSelector:function(t){var e=-1,n=-1;if(t<0||t>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var r=this.useDevicePixelRatio&&l.a.devicePixelRatio||1;return e<0&&(e=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(e=t*this.systemBandwidth+(1-t)*e,n=this.systemBandwidth),ya(this.playlists.master,e,parseInt(ma(this.tech_.el(),"width"),10)*r,parseInt(ma(this.tech_.el(),"height"),10)*r,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},comparePlaylistBandwidth:va,comparePlaylistResolution:function(t,e){var n,r;return t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(n=t.attributes.RESOLUTION.width),n=n||l.a.Number.MAX_VALUE,e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(r=e.attributes.RESOLUTION.width),n===(r=r||l.a.Number.MAX_VALUE)&&t.attributes.BANDWIDTH&&e.attributes.BANDWIDTH?t.attributes.BANDWIDTH-e.attributes.BANDWIDTH:n-r},xhr:fo()};Object.keys(Do).forEach((function(t){Object.defineProperty(Eu,t,{get:function(){return gs.log.warn("using Vhs."+t+" is UNSAFE be sure you know what you are doing"),Do[t]},set:function(e){gs.log.warn("using Vhs."+t+" is UNSAFE be sure you know what you are doing"),"number"!=typeof e||e<0?gs.log.warn("value of Vhs."+t+" must be greater than or equal to 0"):Do[t]=e}})}));var ku="videojs-vhs",Au=function(t,e){for(var n=e.media(),r=-1,i=0;i<t.length;i++)if(t[i].id===n.id){r=i;break}t.selectedIndex_=r,t.trigger({selectedIndex:r,type:"change"})};Eu.canPlaySource=function(){return gs.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Cu=function(t){var e=t.player,n=t.sourceKeySystems,r=t.audioMedia,o=t.mainPlaylists;if(!e.eme.initializeMediaKeys)return Promise.resolve();var l=function(t,e){return t.reduce((function(t,n){if(!n.contentProtection)return t;var r=e.reduce((function(t,e){var r=n.contentProtection[e];return r&&r.pssh&&(t[e]={pssh:r.pssh}),t}),{});return Object.keys(r).length&&t.push(r),t}),[])}(r?o.concat([r]):o,Object.keys(n)),c=[],h=[];return l.forEach((function(t){h.push(new Promise((function(t,n){e.tech_.one("keysessioncreated",t)}))),c.push(new Promise((function(n,r){e.eme.initializeMediaKeys({keySystems:t},(function(t){t?r(t):n()}))})))})),Promise.race([Promise.all(c),Promise.race(h)])},Ou=function(t){var e=t.player,n=function(t,e,n){if(!t)return t;var r={};e&&e.attributes&&e.attributes.CODECS&&(r=ca(Object(M.h)(e.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(r.audio=n.attributes.CODECS);var o=Object(M.e)(r.video),l=Object(M.e)(r.audio),c={};for(var h in t)c[h]={},l&&(c[h].audioContentType=l),o&&(c[h].videoContentType=o),e.contentProtection&&e.contentProtection[h]&&e.contentProtection[h].pssh&&(c[h].pssh=e.contentProtection[h].pssh),"string"==typeof t[h]&&(c[h].url=t[h]);return gs.mergeOptions(t,c)}(t.sourceKeySystems,t.media,t.audioMedia);return!!n&&(e.currentSource().keySystems=n,!(n&&!e.eme)||(gs.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))},ju=function(){if(!l.a.localStorage)return null;var t=l.a.localStorage.getItem(ku);if(!t)return null;try{return JSON.parse(t)}catch(t){return null}};Eu.supportsNativeHls=function(){if(!h.a||!h.a.createElement)return!1;var video=h.a.createElement("video");if(!gs.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(video.canPlayType(t))}))}(),Eu.supportsNativeDash=!!(h.a&&h.a.createElement&&gs.getTech("Html5").isSupported())&&/maybe|probably/i.test(h.a.createElement("video").canPlayType("application/dash+xml")),Eu.supportsTypeNatively=function(t){return"hls"===t?Eu.supportsNativeHls:"dash"===t&&Eu.supportsNativeDash},Eu.isSupported=function(){return gs.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Iu=function(t){function e(source,e,n){var r;if(r=t.call(this,e,gs.mergeOptions(n.hls,n.vhs))||this,n.hls&&Object.keys(n.hls).length&&gs.log.warn("Using hls options is deprecated. Please rename `hls` to `vhs` in your options object."),"number"==typeof n.initialBandwidth&&(r.options_.bandwidth=n.initialBandwidth),r.logger_=bs("VhsHandler"),e.options_&&e.options_.playerId){var o=gs(e.options_.playerId);o.hasOwnProperty("hls")||Object.defineProperty(o,"hls",{get:function(){return gs.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),e.trigger({type:"usage",name:"hls-player-access"}),_()(r)},configurable:!0}),o.hasOwnProperty("vhs")||Object.defineProperty(o,"vhs",{get:function(){return gs.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),e.trigger({type:"usage",name:"vhs-player-access"}),_()(r)},configurable:!0}),o.hasOwnProperty("dash")||Object.defineProperty(o,"dash",{get:function(){return gs.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),_()(r)},configurable:!0}),r.player_=o}if(r.tech_=e,r.source_=source,r.stats={},r.ignoreNextSeekingEvent_=!1,r.setOptions_(),r.options_.overrideNative&&e.overrideNativeAudioTracks&&e.overrideNativeVideoTracks)e.overrideNativeAudioTracks(!0),e.overrideNativeVideoTracks(!0);else if(r.options_.overrideNative&&(e.featuresNativeVideoTracks||e.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return r.on(h.a,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],(function(t){var e=h.a.fullscreenElement||h.a.webkitFullscreenElement||h.a.mozFullScreenElement||h.a.msFullscreenElement;e&&e.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}T()(e,t);var n=e.prototype;return n.setOptions_=function(){var t=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=void 0!==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 e=ju();e&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),e&&e.throughput&&(this.options_.throughput=e.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=Do.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Do.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS","useNetworkInformationApi","useDtsForTimestampOffset","experimentalExactManifestTimings","experimentalLeastPixelDiffSelector"].forEach((function(option){void 0!==t.source_[option]&&(t.options_[option]=t.source_[option])})),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},n.src=function(t,e){var n=this;if(t){var r;this.setOptions_(),this.options_.src=0===(r=this.source_.src).toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(r.substring(r.indexOf(",")+1)):r,this.options_.tech=this.tech_,this.options_.externVhs=Eu,this.options_.sourceType=Object(N.a)(e),this.options_.seekTo=function(time){n.tech_.setCurrentTime(time)},this.options_.smoothQualityChange&&gs.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new yu(this.options_);var o=gs.mergeOptions({liveRangeSafeTimeDelta:ws},this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new wu(o),this.masterPlaylistController_.on("error",(function(){var t=gs.players[n.tech_.options_.playerId],e=n.masterPlaylistController_.error;"object"!=typeof e||e.code?"string"==typeof e&&(e={message:e,code:3}):e.code=3,t.error(e)}));var c=this.options_.experimentalBufferBasedABR?Eu.movingAverageBandwidthSelector(.55):Eu.STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):c.bind(this),this.masterPlaylistController_.selectInitialPlaylist=Eu.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(t){this.masterPlaylistController_.selectPlaylist=t.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=t,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){var t=this.masterPlaylistController_.mainSegmentLoader_.bandwidth,e=l.a.navigator.connection||l.a.navigator.mozConnection||l.a.navigator.webkitConnection,n=1e7;if(this.options_.useNetworkInformationApi&&e){var r=1e3*e.downlink*1e3;t=r>=n&&t>=n?Math.max(t,r):r}return t},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=t,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var t,e=1/(this.bandwidth||1);return t=this.throughput>0?1/this.throughput:0,Math.floor(1/(e+t))},set:function(){gs.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 ks(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 ks(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(t){if(!l.a.localStorage)return!1;var e=ju();e=e?gs.mergeOptions(e,t):t;try{l.a.localStorage.setItem(ku,JSON.stringify(e))}catch(t){return!1}}({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})})),this.masterPlaylistController_.on("selectedinitialmedia",(function(){var t;(t=n).representations=function(){var e=t.masterPlaylistController_.master(),n=Ys(e)?t.masterPlaylistController_.getAudioTrackPlaylists_():e.playlists;return n?n.filter((function(t){return!Fs(t)})).map((function(e,i){return new bu(t,e,e.id)})):[]}})),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_=l.a.URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},n.createKeySessions_=function(){var t=this,e=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),Cu({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.master.playlists}).then((function(){t.logger_("created EME key session"),t.masterPlaylistController_.sourceUpdater_.initializedEme()})).catch((function(e){t.logger_("error while creating EME key session",e),t.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 t=this,e=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,n=Ou({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});this.player_.tech_.on("keystatuschange",(function(e){if("output-restricted"===e.status){var n=t.masterPlaylistController_.master();if(n&&n.playlists){var r,o=[];if(n.playlists.forEach((function(t){t&&t.attributes&&t.attributes.RESOLUTION&&t.attributes.RESOLUTION.height>=720&&(!t.excludeUntil||t.excludeUntil<1/0)&&(t.excludeUntil=1/0,o.push(t))})),o.length)(r=gs.log).warn.apply(r,['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(o)),t.masterPlaylistController_.fastQualityChange_()}}})),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),11!==gs.browser.IE_VERSION&&n?this.createKeySessions_():this.masterPlaylistController_.sourceUpdater_.initializedEme()},n.setupQualityLevels_=function(){var t=this,e=gs.players[this.tech_.options_.playerId];e&&e.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=e.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",(function(){var e,n;e=t.qualityLevels_,(n=t).representations().forEach((function(t){e.addQualityLevel(t)})),Au(e,n.playlists)})),this.playlists.on("mediachange",(function(){Au(t.qualityLevels_,t.playlists)})))},e.version=function(){return{"@videojs/http-streaming":Su,"mux.js":"6.0.1","mpd-parser":"0.22.1","m3u8-parser":"4.8.0","aes-decrypter":"3.1.3"}},n.version=function(){return this.constructor.version()},n.canChangeType=function(){return $a.canChangeType()},n.play=function(){this.masterPlaylistController_.play()},n.setCurrentTime=function(t){this.masterPlaylistController_.setCurrentTime(t)},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_&&l.a.URL.revokeObjectURL&&(l.a.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),t.prototype.dispose.call(this)},n.convertToProgramTime=function(time,t){return xo({playlist:this.masterPlaylistController_.media(),time:time,callback:t})},n.seekToProgramTime=function(t,e,n,r){return void 0===n&&(n=!0),void 0===r&&(r=2),So({programTime:t,playlist:this.masterPlaylistController_.media(),retryCount:r,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:e})},e}(gs.getComponent("Component")),Lu={name:"videojs-http-streaming",VERSION:Su,canHandleSource:function(t,e){void 0===e&&(e={});var n=gs.mergeOptions(gs.options,e);return Lu.canPlayType(t.type,n)},handleSource:function(source,t,e){void 0===e&&(e={});var n=gs.mergeOptions(gs.options,e);return t.vhs=new Iu(source,t,n),gs.hasOwnProperty("hls")||Object.defineProperty(t,"hls",{get:function(){return gs.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),t.vhs},configurable:!0}),t.vhs.xhr=fo(),t.vhs.src(source.src,source.type),t.vhs},canPlayType:function(t,e){var n=Object(N.a)(t);if(!n)return"";var r=Lu.getOverrideNative(e);return!Eu.supportsTypeNatively(n)||r?"maybe":""},getOverrideNative:function(t){void 0===t&&(t={});var e=t,n=e.vhs,r=void 0===n?{}:n,o=e.hls,l=void 0===o?{}:o,c=!(gs.browser.IS_ANY_SAFARI||gs.browser.IS_IOS),h=r.overrideNative,d=void 0===h?c:h,f=l.overrideNative;return void 0!==f&&f||d}};(Object(M.c)("avc1.4d400d,mp4a.40.2")&&gs.getTech("Html5").registerSourceHandler(Lu,0),gs.VhsHandler=Iu,Object.defineProperty(gs,"HlsHandler",{get:function(){return gs.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),Iu},configurable:!0}),gs.VhsSourceHandler=Lu,Object.defineProperty(gs,"HlsSourceHandler",{get:function(){return gs.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),Lu},configurable:!0}),gs.Vhs=Eu,Object.defineProperty(gs,"Hls",{get:function(){return gs.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),Eu},configurable:!0}),gs.use||(gs.registerComponent("Hls",Eu),gs.registerComponent("Vhs",Eu)),gs.options.vhs=gs.options.vhs||{},gs.options.hls=gs.options.hls||{},gs.getPlugin&&gs.getPlugin("reloadSourceOnError"))||(gs.registerPlugin||gs.plugin)("reloadSourceOnError",(function(t){xu(this,t)}));e.a=gs}).call(this,n(45))},function(t,e){t.exports=function(t,e){var n,r=null;try{n=JSON.parse(t,e)}catch(t){r=t}return[r,n]}},,function(t,e,n){var r=n(365);e.DOMImplementation=r.DOMImplementation,e.XMLSerializer=r.XMLSerializer,e.DOMParser=n(685).DOMParser},function(t,e,n){var r=n(688).getUint64;t.exports=function(data){var view=new DataView(data.buffer,data.byteOffset,data.byteLength),t={version:data[0],flags:new Uint8Array(data.subarray(1,4)),references:[],referenceId:view.getUint32(4),timescale:view.getUint32(8)},i=12;0===t.version?(t.earliestPresentationTime=view.getUint32(i),t.firstOffset=view.getUint32(i+4),i+=8):(t.earliestPresentationTime=r(data.subarray(i)),t.firstOffset=r(data.subarray(i+8)),i+=16),i+=2;var e=view.getUint16(i);for(i+=2;e>0;i+=12,e--)t.references.push({referenceType:(128&data[i])>>>7,referencedSize:2147483647&view.getUint32(i),subsegmentDuration:view.getUint32(i+4),startsWithSap:!!(128&data[i+8]),sapType:(112&data[i+8])>>>4,sapDeltaTime:268435455&view.getUint32(i+8)});return t}},,,,function(t,e,n){"use strict";var r=n(6),o=(n(39),n(672),n(374)),l=window.videojs||o.a,c={name:"VideoPlayer",props:{crossOrigin:{type:String,default:""},playsinline:{type:Boolean,default:!1},customEventName:{type:String,default:"statechanged"},options:{type:Object,required:!0},events:{type:Array,default:function(){return[]}},globalOptions:{type:Object,default:function(){return{autoplay:!0,controls:!0,language:"zh",inactivityTimeout:0,preload:"auto",fluid:!1,techOrder:["html5"],plugins:{}}}},globalEvents:{type:Array,default:function(){return[]}},trackList:{type:Array,default:function(){return[]}}},data:function(){return{player:null,reseted:!0}},methods:{initialize:function(){var t=this,e=this,n=this.$refs.video,o=Object.assign({},this.globalOptions,this.options);this.playsinline&&(n.setAttribute("playsinline",this.playsinline),n.setAttribute("webkit-playsinline",this.playsinline),n.setAttribute("x5-playsinline",this.playsinline),n.setAttribute("x5-video-player-type","h5"),n.setAttribute("x5-video-player-fullscreen",!1)),""!==this.crossOrigin&&(n.crossOrigin=this.crossOrigin,n.setAttribute("crossOrigin",this.crossOrigin)),o.plugins&&delete o.plugins.__ob__;var c=function(e,n){e&&t.$emit(e,t.player),n&&t.$emit(t.customEventName,Object(r.a)({},e,n))};this.player=l(n,o,(function(){for(var t=this,n=["loadeddata","canplay","canplaythrough","play","pause","waiting","playing","ended","error"].concat(e.events).concat(e.globalEvents),r={},i=0;i<n.length;i++)"string"==typeof n[i]&&void 0===r[n[i]]&&function(e){r[e]=null,t.on(e,(function(){c(e,!0)}))}(n[i]);e.$emit("ready",this)}))},dispose:function(t){var e=this;this.player&&this.player.dispose&&("Flash"!==this.player.techName_&&this.player.pause&&this.player.pause(),this.player.dispose(),this.player=null,this.$nextTick((function(){e.reseted=!1,e.$nextTick((function(){e.reseted=!0,e.$nextTick((function(){t&&t()}))}))})))}},watch:{options:{deep:!0,handler:function(t,e){var n=this;this.dispose((function(){t&&t.sources&&t.sources.length&&n.initialize()}))}}},mounted:function(){this.player||this.initialize()},beforeDestroy:function(){this.player&&this.dispose()}},h=n(3),d=Object(h.a)(c,(function(){var t=this,e=t._self._c;return t.reseted?e("div",[e("video",{ref:"video",staticClass:"video-js"},[t._l(t.trackList,(function(t,n){return e("track",{key:n,attrs:{kind:t.kind,label:t.label,src:t.src,srcLang:t.srcLang,default:t.default}})})),t._v(" "),t._m(0)],2)]):t._e()}),[function(){var t=this,e=t._self._c;return e("p",{staticClass:"vjs-no-js"},[t._v("\n To view this video please enable JavaScript, and consider upgrading to a web browser that\n "),e("a",{attrs:{href:"https://videojs.com/html5-video-support/",target:"_blank"}},[t._v("supports HTML5 video")])])}],!1,null,"704d1334",null).exports;e.a={videoPlayer:d,install:function(t,e){e&&(e.options&&(d.props.globalOptions.default=()=>e.options),e.events&&(d.props.globalEvents.default=()=>e.events)),t.component(d.name,d)}}},,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return E}));var r=n(4),o=n.n(r),l=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.off=function(t,e){if(!this.listeners[t])return!1;var n=this.listeners[t].indexOf(e);return this.listeners[t]=this.listeners[t].slice(0),this.listeners[t].splice(n,1),n>-1},e.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var n=e.length,i=0;i<n;++i)e[i].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),o=e.length,l=0;l<o;++l)e[l].apply(this,r)},e.dispose=function(){this.listeners={}},e.pipe=function(t){this.on("data",(function(data){t.push(data)}))},t}(),c=n(62),h=n.n(c),d=n(10),f=n.n(d),m=n(167),v=function(t){function e(){var e;return(e=t.call(this)||this).buffer="",e}return o()(e,t),e.prototype.push=function(data){var t;for(this.buffer+=data,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)},e}(l),y=String.fromCharCode(9),_=function(t){var e=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),n={};return e[1]&&(n.length=parseInt(e[1],10)),e[2]&&(n.offset=parseInt(e[2],10)),n},w=function(t){for(var e,n=t.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),r={},i=n.length;i--;)""!==n[i]&&((e=/([^=]*)=(.*)/.exec(n[i]).slice(1))[0]=e[0].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^['"](.*)['"]$/g,"$1"),r[e[0]]=e[1]);return r},T=function(t){function e(){var e;return(e=t.call(this)||this).customParsers=[],e.tagMappers=[],e}o()(e,t);var n=e.prototype;return n.push=function(line){var t,e,n=this;0!==(line=line.trim()).length&&("#"===line[0]?this.tagMappers.reduce((function(t,e){var n=e(line);return n===line?t:t.concat([n])}),[line]).forEach((function(r){for(var i=0;i<n.customParsers.length;i++)if(n.customParsers[i].call(n,r))return;if(0===r.indexOf("#EXT"))if(r=r.replace("\r",""),t=/^#EXTM3U/.exec(r))n.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(r))return e={type:"tag",tagType:"inf"},t[1]&&(e.duration=parseFloat(t[1])),t[2]&&(e.title=t[2]),void n.trigger("data",e);if(t=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(r))return e={type:"tag",tagType:"targetduration"},t[1]&&(e.duration=parseInt(t[1],10)),void n.trigger("data",e);if(t=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(r))return e={type:"tag",tagType:"version"},t[1]&&(e.version=parseInt(t[1],10)),void n.trigger("data",e);if(t=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(r))return e={type:"tag",tagType:"media-sequence"},t[1]&&(e.number=parseInt(t[1],10)),void n.trigger("data",e);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(r))return e={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(e.number=parseInt(t[1],10)),void n.trigger("data",e);if(t=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(r))return e={type:"tag",tagType:"playlist-type"},t[1]&&(e.playlistType=t[1]),void n.trigger("data",e);if(t=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(r))return e=h()(_(t[1]),{type:"tag",tagType:"byterange"}),void n.trigger("data",e);if(t=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(r))return e={type:"tag",tagType:"allow-cache"},t[1]&&(e.allowed=!/NO/.test(t[1])),void n.trigger("data",e);if(t=/^#EXT-X-MAP:?(.*)$/.exec(r)){if(e={type:"tag",tagType:"map"},t[1]){var o=w(t[1]);o.URI&&(e.uri=o.URI),o.BYTERANGE&&(e.byterange=_(o.BYTERANGE))}n.trigger("data",e)}else if(t=/^#EXT-X-STREAM-INF:?(.*)$/.exec(r)){if(e={type:"tag",tagType:"stream-inf"},t[1]){if(e.attributes=w(t[1]),e.attributes.RESOLUTION){var l=e.attributes.RESOLUTION.split("x"),c={};l[0]&&(c.width=parseInt(l[0],10)),l[1]&&(c.height=parseInt(l[1],10)),e.attributes.RESOLUTION=c}e.attributes.BANDWIDTH&&(e.attributes.BANDWIDTH=parseInt(e.attributes.BANDWIDTH,10)),e.attributes["FRAME-RATE"]&&(e.attributes["FRAME-RATE"]=parseFloat(e.attributes["FRAME-RATE"])),e.attributes["PROGRAM-ID"]&&(e.attributes["PROGRAM-ID"]=parseInt(e.attributes["PROGRAM-ID"],10))}n.trigger("data",e)}else{if(t=/^#EXT-X-MEDIA:?(.*)$/.exec(r))return e={type:"tag",tagType:"media"},t[1]&&(e.attributes=w(t[1])),void n.trigger("data",e);if(t=/^#EXT-X-ENDLIST/.exec(r))n.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(r))n.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(r))return e={type:"tag",tagType:"program-date-time"},t[1]&&(e.dateTimeString=t[1],e.dateTimeObject=new Date(t[1])),void n.trigger("data",e);if(t=/^#EXT-X-KEY:?(.*)$/.exec(r))return e={type:"tag",tagType:"key"},t[1]&&(e.attributes=w(t[1]),e.attributes.IV&&("0x"===e.attributes.IV.substring(0,2).toLowerCase()&&(e.attributes.IV=e.attributes.IV.substring(2)),e.attributes.IV=e.attributes.IV.match(/.{8}/g),e.attributes.IV[0]=parseInt(e.attributes.IV[0],16),e.attributes.IV[1]=parseInt(e.attributes.IV[1],16),e.attributes.IV[2]=parseInt(e.attributes.IV[2],16),e.attributes.IV[3]=parseInt(e.attributes.IV[3],16),e.attributes.IV=new Uint32Array(e.attributes.IV))),void n.trigger("data",e);if(t=/^#EXT-X-START:?(.*)$/.exec(r))return e={type:"tag",tagType:"start"},t[1]&&(e.attributes=w(t[1]),e.attributes["TIME-OFFSET"]=parseFloat(e.attributes["TIME-OFFSET"]),e.attributes.PRECISE=/YES/.test(e.attributes.PRECISE)),void n.trigger("data",e);if(t=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(r))return e={type:"tag",tagType:"cue-out-cont"},t[1]?e.data=t[1]:e.data="",void n.trigger("data",e);if(t=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(r))return e={type:"tag",tagType:"cue-out"},t[1]?e.data=t[1]:e.data="",void n.trigger("data",e);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(r))return e={type:"tag",tagType:"cue-in"},t[1]?e.data=t[1]:e.data="",void n.trigger("data",e);if((t=/^#EXT-X-SKIP:(.*)$/.exec(r))&&t[1])return(e={type:"tag",tagType:"skip"}).attributes=w(t[1]),e.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(e.attributes["SKIPPED-SEGMENTS"]=parseInt(e.attributes["SKIPPED-SEGMENTS"],10)),e.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(e.attributes["RECENTLY-REMOVED-DATERANGES"]=e.attributes["RECENTLY-REMOVED-DATERANGES"].split(y)),void n.trigger("data",e);if((t=/^#EXT-X-PART:(.*)$/.exec(r))&&t[1])return(e={type:"tag",tagType:"part"}).attributes=w(t[1]),["DURATION"].forEach((function(t){e.attributes.hasOwnProperty(t)&&(e.attributes[t]=parseFloat(e.attributes[t]))})),["INDEPENDENT","GAP"].forEach((function(t){e.attributes.hasOwnProperty(t)&&(e.attributes[t]=/YES/.test(e.attributes[t]))})),e.attributes.hasOwnProperty("BYTERANGE")&&(e.attributes.byterange=_(e.attributes.BYTERANGE)),void n.trigger("data",e);if((t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(r))&&t[1])return(e={type:"tag",tagType:"server-control"}).attributes=w(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach((function(t){e.attributes.hasOwnProperty(t)&&(e.attributes[t]=parseFloat(e.attributes[t]))})),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach((function(t){e.attributes.hasOwnProperty(t)&&(e.attributes[t]=/YES/.test(e.attributes[t]))})),void n.trigger("data",e);if((t=/^#EXT-X-PART-INF:(.*)$/.exec(r))&&t[1])return(e={type:"tag",tagType:"part-inf"}).attributes=w(t[1]),["PART-TARGET"].forEach((function(t){e.attributes.hasOwnProperty(t)&&(e.attributes[t]=parseFloat(e.attributes[t]))})),void n.trigger("data",e);if((t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(r))&&t[1])return(e={type:"tag",tagType:"preload-hint"}).attributes=w(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach((function(t){if(e.attributes.hasOwnProperty(t)){e.attributes[t]=parseInt(e.attributes[t],10);var n="BYTERANGE-LENGTH"===t?"length":"offset";e.attributes.byterange=e.attributes.byterange||{},e.attributes.byterange[n]=e.attributes[t],delete e.attributes[t]}})),void n.trigger("data",e);if((t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(r))&&t[1])return(e={type:"tag",tagType:"rendition-report"}).attributes=w(t[1]),["LAST-MSN","LAST-PART"].forEach((function(t){e.attributes.hasOwnProperty(t)&&(e.attributes[t]=parseInt(e.attributes[t],10))})),void n.trigger("data",e);n.trigger("data",{type:"tag",data:r.slice(4)})}}}else n.trigger("data",{type:"comment",text:r.slice(1)})})):this.trigger("data",{type:"uri",uri:line}))},n.addParser=function(t){var e=this,n=t.expression,r=t.customType,o=t.dataParser,l=t.segment;"function"!=typeof o&&(o=function(line){return line}),this.customParsers.push((function(line){if(n.exec(line))return e.trigger("data",{type:"custom",data:o(line),customType:r,segment:l}),!0}))},n.addTagMapper=function(t){var e=t.expression,map=t.map;this.tagMappers.push((function(line){return e.test(line)?map(line):line}))},e}(l),x=function(t){var e={};return Object.keys(t).forEach((function(n){var r;e[(r=n,r.toLowerCase().replace(/-(\w)/g,(function(a){return a[1].toUpperCase()})))]=t[n]})),e},S=function(t){var e=t.serverControl,n=t.targetDuration,r=t.partTargetDuration;if(e){var o="#EXT-X-SERVER-CONTROL",l="holdBack",c="partHoldBack",h=n&&3*n,d=r&&2*r;n&&!e.hasOwnProperty(l)&&(e[l]=h,this.trigger("info",{message:o+" defaulting HOLD-BACK to targetDuration * 3 ("+h+")."})),h&&e[l]<h&&(this.trigger("warn",{message:o+" clamping HOLD-BACK ("+e[l]+") to targetDuration * 3 ("+h+")"}),e[l]=h),r&&!e.hasOwnProperty(c)&&(e[c]=3*r,this.trigger("info",{message:o+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+e[c]+")."})),r&&e[c]<d&&(this.trigger("warn",{message:o+" clamping PART-HOLD-BACK ("+e[c]+") to partTargetDuration * 2 ("+d+")."}),e[c]=d)}},E=function(t){function e(){var e;(e=t.call(this)||this).lineStream=new v,e.parseStream=new T,e.lineStream.pipe(e.parseStream);var n,r,o=f()(e),l=[],c={},d=!1,y=function(){},_={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},w=0;e.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var E=0,k=0;return e.on("end",(function(){c.uri||!c.parts&&!c.preloadHints||(!c.map&&n&&(c.map=n),!c.key&&r&&(c.key=r),c.timeline||"number"!=typeof w||(c.timeline=w),e.manifest.preloadSegment=c)})),e.parseStream.on("data",(function(t){var e,f;({tag:function(){({version:function(){t.version&&(this.manifest.version=t.version)},"allow-cache":function(){this.manifest.allowCache=t.allowed,"allowed"in t||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var e={};"length"in t&&(c.byterange=e,e.length=t.length,"offset"in t||(t.offset=E)),"offset"in t&&(c.byterange=e,e.offset=t.offset),E=e.offset+e.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"})),t.duration>0&&(c.duration=t.duration),0===t.duration&&(c.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=l},key:function(){if(t.attributes)if("NONE"!==t.attributes.METHOD)if(t.attributes.URI){if("com.apple.streamingkeydelivery"===t.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:t.attributes});if("com.microsoft.playready"===t.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:t.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===t.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(t.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===t.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==t.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):t.attributes.KEYID&&"0x"===t.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:t.attributes.KEYFORMAT,keyId:t.attributes.KEYID.substring(2)},pssh:Object(m.a)(t.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),r={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},void 0!==t.attributes.IV&&(r.iv=t.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else r=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(t.number)?this.manifest.mediaSequence=t.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number})},"discontinuity-sequence":function(){isFinite(t.number)?(this.manifest.discontinuitySequence=t.number,w=t.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number})},"playlist-type":function(){/VOD|EVENT/.test(t.playlistType)?this.manifest.playlistType=t.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist})},map:function(){n={},t.uri&&(n.uri=t.uri),t.byterange&&(n.byterange=t.byterange),r&&(n.key=r)},"stream-inf":function(){this.manifest.playlists=l,this.manifest.mediaGroups=this.manifest.mediaGroups||_,t.attributes?(c.attributes||(c.attributes={}),h()(c.attributes,t.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||_,t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME){var n=this.manifest.mediaGroups[t.attributes.TYPE];n[t.attributes["GROUP-ID"]]=n[t.attributes["GROUP-ID"]]||{},e=n[t.attributes["GROUP-ID"]],(f={default:/yes/i.test(t.attributes.DEFAULT)}).default?f.autoselect=!0:f.autoselect=/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&&(f.language=t.attributes.LANGUAGE),t.attributes.URI&&(f.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&&(f.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&&(f.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&&(f.forced=/yes/i.test(t.attributes.FORCED)),e[t.attributes.NAME]=f}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){w+=1,c.discontinuity=!0,this.manifest.discontinuityStarts.push(l.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject),c.dateTimeString=t.dateTimeString,c.dateTimeObject=t.dateTimeObject},targetduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration}):(this.manifest.targetDuration=t.duration,S.call(this,this.manifest))},start:function(){t.attributes&&!isNaN(t.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:t.attributes["TIME-OFFSET"],precise:t.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){c.cueOut=t.data},"cue-out-cont":function(){c.cueOutCont=t.data},"cue-in":function(){c.cueIn=t.data},skip:function(){this.manifest.skip=x(t.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",t.attributes,["SKIPPED-SEGMENTS"])},part:function(){var e=this;d=!0;var n=this.manifest.segments.length,r=x(t.attributes);c.parts=c.parts||[],c.parts.push(r),r.byterange&&(r.byterange.hasOwnProperty("offset")||(r.byterange.offset=k),k=r.byterange.offset+r.byterange.length);var o=c.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+o+" for segment #"+n,t.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((function(t,i){t.hasOwnProperty("lastPart")||e.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+i+" lacks required attribute(s): LAST-PART"})}))},"server-control":function(){var e=this.manifest.serverControl=x(t.attributes);e.hasOwnProperty("canBlockReload")||(e.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),S.call(this,this.manifest),e.canSkipDateranges&&!e.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 e=this.manifest.segments.length,n=x(t.attributes),r=n.type&&"PART"===n.type;c.preloadHints=c.preloadHints||[],c.preloadHints.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=r?k:0,r&&(k=n.byterange.offset+n.byterange.length)));var o=c.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+o+" for segment #"+e,t.attributes,["TYPE","URI"]),n.type)for(var i=0;i<c.preloadHints.length-1;i++){var l=c.preloadHints[i];l.type&&(l.type===n.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+o+" for segment #"+e+" has the same TYPE "+n.type+" as preload hint #"+i}))}},"rendition-report":function(){var e=x(t.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(e);var n=this.manifest.renditionReports.length-1,r=["LAST-MSN","URI"];d&&r.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+n,t.attributes,r)},"part-inf":function(){this.manifest.partInf=x(t.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",t.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),S.call(this,this.manifest)}}[t.tagType]||y).call(o)},uri:function(){c.uri=t.uri,l.push(c),this.manifest.targetDuration&&!("duration"in c)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),c.duration=this.manifest.targetDuration),r&&(c.key=r),c.timeline=w,n&&(c.map=n),k=0,c={}},comment:function(){},custom:function(){t.segment?(c.custom=c.custom||{},c.custom[t.customType]=t.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[t.customType]=t.data)}})[t.type].call(o)})),e}o()(e,t);var n=e.prototype;return n.warnOnMissingAttributes_=function(t,e,n){var r=[];n.forEach((function(t){e.hasOwnProperty(t)||r.push(t)})),r.length&&this.trigger("warn",{message:t+" lacks required attribute(s): "+r.join(", ")})},n.push=function(t){this.lineStream.push(t)},n.end=function(){this.lineStream.push("\n"),this.trigger("end")},n.addParser=function(t){this.parseStream.addParser(t)},n.addTagMapper=function(t){this.parseStream.addTagMapper(t)},e}(l)},,,,,,,,,,,function(t,e,n){(function(t){t.installComponents=function(component,t){var n="function"==typeof component.exports?component.exports.extendOptions:component.options;for(var i in"function"==typeof component.exports&&(n.components=component.exports.options.components),n.components=n.components||{},t)n.components[i]=n.components[i]||t[i];n.functional&&function(component,t){if(component.exports[e])return;component.exports[e]=!0;var n=component.exports.render;component.exports.render=function(e,r){return n(e,Object.assign({},r,{_c:function(e,a,b){return r._c(t[e]||e,a,b)}}))}}(component,n.components)};var e="_functionalComponents"}).call(this,n(45))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},,,,,,function(t,e,n){var content=n(487);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(13).default)("61192f92",content,!0,{sourceMap:!1})},function(t,e,n){var r=n(12)((function(i){return i[1]}));r.push([t.i,'@font-face{font-family:"swiper-icons";font-style:normal;font-weight:400;src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff")}:root{--swiper-theme-color:#007aff}.swiper-container{list-style:none;margin-left:auto;margin-right:auto;overflow:hidden;padding:0;position:relative;z-index:1}.swiper-container-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{box-sizing:content-box;display:flex;height:100%;position:relative;transition-property:transform;width:100%;z-index:1}.swiper-container-android .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-container-multirow>.swiper-wrapper{flex-wrap:wrap}.swiper-container-multirow-column>.swiper-wrapper{flex-direction:column;flex-wrap:wrap}.swiper-container-free-mode>.swiper-wrapper{margin:0 auto;transition-timing-function:ease-out}.swiper-container-pointer-events{touch-action:pan-y}.swiper-container-pointer-events.swiper-container-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;height:100%;position:relative;transition-property:transform;width:100%}.swiper-slide-invisible-blank{visibility:hidden}.swiper-container-autoheight,.swiper-container-autoheight .swiper-slide{height:auto}.swiper-container-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-container-3d{perspective:1200px}.swiper-container-3d .swiper-cube-shadow,.swiper-container-3d .swiper-slide,.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top,.swiper-container-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:10}.swiper-container-3d .swiper-slide-shadow-left{background-image:linear-gradient(270deg,rgba(0,0,0,.5),transparent)}.swiper-container-3d .swiper-slide-shadow-right{background-image:linear-gradient(90deg,rgba(0,0,0,.5),transparent)}.swiper-container-3d .swiper-slide-shadow-top{background-image:linear-gradient(0deg,rgba(0,0,0,.5),transparent)}.swiper-container-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(180deg,rgba(0,0,0,.5),transparent)}.swiper-container-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-container-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-container-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-container-horizontal.swiper-container-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-container-vertical.swiper-container-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{align-items:center;color:#007aff;color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;display:flex;height:44px;height:var(--swiper-navigation-size);justify-content:center;margin-top:-22px;margin-top:calc(0px - var(--swiper-navigation-size)/2);position:absolute;top:50%;width:27px;width:calc(var(--swiper-navigation-size)/44*27);z-index:10}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:44px;font-size:var(--swiper-navigation-size);font-variant:normal;letter-spacing:0;line-height:1;text-transform:none!important;text-transform:none}.swiper-button-prev,.swiper-container-rtl .swiper-button-next{left:10px;right:auto}.swiper-button-prev:after,.swiper-container-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-container-rtl .swiper-button-prev{left:auto;right:10px}.swiper-button-next:after,.swiper-container-rtl .swiper-button-prev:after{content:"next"}.swiper-button-next.swiper-button-white,.swiper-button-prev.swiper-button-white{--swiper-navigation-color:#fff}.swiper-button-next.swiper-button-black,.swiper-button-prev.swiper-button-black{--swiper-navigation-color:#000}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transform:translateZ(0);transition:opacity .3s;z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-container-horizontal>.swiper-pagination-bullets,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{position:relative;transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{background:#000;border-radius:50%;display:inline-block;height:8px;opacity:.2;width:8px}button.swiper-pagination-bullet{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;box-shadow:none;margin:0;padding:0}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{background:#007aff;background:var(--swiper-pagination-color,var(--swiper-theme-color));opacity:1}.swiper-container-vertical>.swiper-pagination-bullets{right:10px;top:50%;transform:translate3d(0,-50%,0)}.swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{display:block;margin:6px 0}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:transform .2s,top .2s}.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 4px}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,left .2s}.swiper-container-horizontal.swiper-container-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-progressbar{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:#007aff;background:var(--swiper-pagination-color,var(--swiper-theme-color));height:100%;left:0;position:absolute;top:0;transform:scale(0);transform-origin:left top;width:100%}.swiper-container-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-container-horizontal>.swiper-pagination-progressbar,.swiper-container-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{height:4px;left:0;top:0;width:100%}.swiper-container-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-container-vertical>.swiper-pagination-progressbar{height:100%;left:0;top:0;width:4px}.swiper-pagination-white{--swiper-pagination-color:#fff}.swiper-pagination-black{--swiper-pagination-color:#000}.swiper-pagination-lock{display:none}.swiper-scrollbar{background:rgba(0,0,0,.1);border-radius:10px;position:relative;-ms-touch-action:none}.swiper-container-horizontal>.swiper-scrollbar{bottom:3px;height:5px;left:1%;position:absolute;width:98%;z-index:50}.swiper-container-vertical>.swiper-scrollbar{height:98%;position:absolute;right:3px;top:1%;width:5px;z-index:50}.swiper-scrollbar-drag{background:rgba(0,0,0,.5);border-radius:10px;height:100%;left:0;position:relative;top:0;width:100%}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{align-items:center;display:flex;height:100%;justify-content:center;text-align:center;width:100%}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.swiper-slide-zoomed{cursor:move}.swiper-lazy-preloader{animation:swiper-preloader-spin 1s linear infinite;border:4px solid #007aff;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top:4px solid transparent;box-sizing:border-box;height:42px;left:50%;margin-left:-21px;margin-top:-21px;position:absolute;top:50%;transform-origin:50%;width:42px;z-index:10}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{to{transform:rotate(1turn)}}.swiper-container .swiper-notification{left:0;opacity:0;pointer-events:none;position:absolute;top:0;z-index:-1000}.swiper-container-fade.swiper-container-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-container-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-container-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-fade .swiper-slide-active,.swiper-container-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube{overflow:visible}.swiper-container-cube .swiper-slide{backface-visibility:hidden;height:100%;pointer-events:none;transform-origin:0 0;visibility:hidden;width:100%;z-index:1}.swiper-container-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-cube.swiper-container-rtl .swiper-slide{transform-origin:100% 0}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-next,.swiper-container-cube .swiper-slide-next+.swiper-slide,.swiper-container-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-container-cube .swiper-slide-shadow-bottom,.swiper-container-cube .swiper-slide-shadow-left,.swiper-container-cube .swiper-slide-shadow-right,.swiper-container-cube .swiper-slide-shadow-top{backface-visibility:hidden;z-index:0}.swiper-container-cube .swiper-cube-shadow{bottom:0;height:100%;left:0;opacity:.6;position:absolute;width:100%;z-index:0}.swiper-container-cube .swiper-cube-shadow:before{background:#000;bottom:0;content:"";filter:blur(50px);left:0;position:absolute;right:0;top:0}.swiper-container-flip{overflow:visible}.swiper-container-flip .swiper-slide{backface-visibility:hidden;pointer-events:none;z-index:1}.swiper-container-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-flip .swiper-slide-active,.swiper-container-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-flip .swiper-slide-shadow-bottom,.swiper-container-flip .swiper-slide-shadow-left,.swiper-container-flip .swiper-slide-shadow-right,.swiper-container-flip .swiper-slide-shadow-top{backface-visibility:hidden;z-index:0}',""]),r.locals={},t.exports=r},function(t,e,n){var content=n(489);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(13).default)("52da737f",content,!0,{sourceMap:!1})},function(t,e,n){var r=n(12)((function(i){return i[1]}));r.push([t.i,'.noUi-target,.noUi-target *{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.noUi-target{position:relative}.noUi-base,.noUi-connects{height:100%;position:relative;width:100%;z-index:1}.noUi-connects{overflow:hidden;z-index:0}.noUi-connect,.noUi-origin{height:100%;position:absolute;right:0;top:0;-ms-transform-origin:0 0;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform-style:preserve-3d;transform-style:flat;width:100%;will-change:transform;z-index:1}.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin{left:0;right:auto}.noUi-vertical .noUi-origin{top:-100%;width:0}.noUi-horizontal .noUi-origin{height:0}.noUi-handle{backface-visibility:hidden;position:absolute}.noUi-touch-area{height:100%;width:100%}.noUi-state-tap .noUi-connect,.noUi-state-tap .noUi-origin{transition:transform .3s}.noUi-state-drag *{cursor:inherit!important}.noUi-horizontal{height:18px}.noUi-horizontal .noUi-handle{height:28px;right:-17px;top:-6px;width:34px}.noUi-vertical{width:18px}.noUi-vertical .noUi-handle{bottom:-17px;height:34px;right:-6px;width:28px}.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle{left:-17px;right:auto}.noUi-target{background:#fafafa;border:1px solid #d3d3d3;border-radius:4px;box-shadow:inset 0 1px 1px #f0f0f0,0 3px 6px -5px #bbb}.noUi-connects{border-radius:3px}.noUi-connect{background:#3fb8af}.noUi-draggable{cursor:ew-resize}.noUi-vertical .noUi-draggable{cursor:ns-resize}.noUi-handle{background:#fff;border:1px solid #d9d9d9;border-radius:3px;box-shadow:inset 0 0 1px #fff,inset 0 1px 7px #ebebeb,0 3px 6px -3px #bbb;cursor:default}.noUi-active{box-shadow:inset 0 0 1px #fff,inset 0 1px 7px #ddd,0 3px 6px -3px #bbb}.noUi-handle:after,.noUi-handle:before{background:#e8e7e6;content:"";display:block;height:14px;left:14px;position:absolute;top:6px;width:1px}.noUi-handle:after{left:17px}.noUi-vertical .noUi-handle:after,.noUi-vertical .noUi-handle:before{height:1px;left:6px;top:14px;width:14px}.noUi-vertical .noUi-handle:after{top:17px}[disabled] .noUi-connect{background:#b8b8b8}[disabled] .noUi-handle,[disabled].noUi-handle,[disabled].noUi-target{cursor:not-allowed}.noUi-pips,.noUi-pips *{box-sizing:border-box}.noUi-pips{color:#999;position:absolute}.noUi-value{position:absolute;text-align:center;white-space:nowrap}.noUi-value-sub{color:#ccc;font-size:10px}.noUi-marker{background:#ccc;position:absolute}.noUi-marker-large,.noUi-marker-sub{background:#aaa}.noUi-pips-horizontal{height:80px;left:0;padding:10px 0;top:100%;width:100%}.noUi-value-horizontal{transform:translate(-50%,50%)}.noUi-rtl .noUi-value-horizontal{transform:translate(50%,50%)}.noUi-marker-horizontal.noUi-marker{height:5px;margin-left:-1px;width:2px}.noUi-marker-horizontal.noUi-marker-sub{height:10px}.noUi-marker-horizontal.noUi-marker-large{height:15px}.noUi-pips-vertical{height:100%;left:100%;padding:0 10px;top:0}.noUi-value-vertical{padding-left:25px;transform:translateY(-50%)}.noUi-rtl .noUi-value-vertical{transform:translateY(50%)}.noUi-marker-vertical.noUi-marker{height:2px;margin-top:-1px;width:5px}.noUi-marker-vertical.noUi-marker-sub{width:10px}.noUi-marker-vertical.noUi-marker-large{width:15px}.noUi-tooltip{background:#fff;border:1px solid #d9d9d9;border-radius:3px;color:#000;display:block;padding:5px;position:absolute;text-align:center;white-space:nowrap}.noUi-horizontal .noUi-tooltip{bottom:120%;left:50%;transform:translate(-50%)}.noUi-vertical .noUi-tooltip{right:120%;top:50%;transform:translateY(-50%)}.noUi-horizontal .noUi-origin>.noUi-tooltip{bottom:10px;left:auto;transform:translate(50%)}.noUi-vertical .noUi-origin>.noUi-tooltip{right:28px;top:auto;transform:translateY(-18px)}',""]),r.locals={},t.exports=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r=n(571),o=n(601),l=n(344),c=n(603),h=n(613),d=n(616),f=n(617),m=n(618),v=n(620),y=n(621),_=n(622),w=n(216),T=n(627),x=n(628),S=n(634),E=n(210),k=n(347),A=n(636),C=n(128),O=n(638),j=n(209),I=n(214),L="[object Arguments]",D="[object Function]",P="[object Object]",M={};M[L]=M["[object Array]"]=M["[object ArrayBuffer]"]=M["[object DataView]"]=M["[object Boolean]"]=M["[object Date]"]=M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Map]"]=M["[object Number]"]=M[P]=M["[object RegExp]"]=M["[object Set]"]=M["[object String]"]=M["[object Symbol]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M["[object Error]"]=M[D]=M["[object WeakMap]"]=!1,t.exports=function t(e,n,N,R,object,U){var B,F=1&n,z=2&n,H=4&n;if(N&&(B=object?N(e,R,object,U):N(e)),void 0!==B)return B;if(!C(e))return e;var V=E(e);if(V){if(B=T(e),!F)return f(e,B)}else{var W=w(e),Y=W==D||"[object GeneratorFunction]"==W;if(k(e))return d(e,F);if(W==P||W==L||Y&&!object){if(B=z||Y?{}:S(e),!F)return z?v(e,h(B,e)):m(e,c(B,e))}else{if(!M[W])return object?e:{};B=x(e,W,F)}}U||(U=new r);var G=U.get(e);if(G)return G;U.set(e,B),O(e)?e.forEach((function(r){B.add(t(r,n,N,r,e,U))})):A(e)&&e.forEach((function(r,o){B.set(o,t(r,n,N,o,e,U))}));var X=V?void 0:(H?z?_:y:z?I:j)(e);return o(X||e,(function(r,o){X&&(r=e[o=r]),l(B,o,t(r,n,N,o,e,U))})),B}},function(t,e,n){var r=n(156),o=n(577),l=n(578),c=n(579),h=n(580),d=n(581);function f(t){var data=this.__data__=new r(t);this.size=data.size}f.prototype.clear=o,f.prototype.delete=l,f.prototype.get=c,f.prototype.has=h,f.prototype.set=d,t.exports=f},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(157),o=Array.prototype.splice;t.exports=function(t){var data=this.__data__,e=r(data,t);return!(e<0)&&(e==data.length-1?data.pop():o.call(data,e,1),--this.size,!0)}},function(t,e,n){var r=n(157);t.exports=function(t){var data=this.__data__,e=r(data,t);return e<0?void 0:data[e][1]}},function(t,e,n){var r=n(157);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(157);t.exports=function(t,e){var data=this.__data__,n=r(data,t);return n<0?(++this.size,data.push([t,e])):data[n][1]=e,this}},function(t,e,n){var r=n(156);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var data=this.__data__,e=data.delete(t);return this.size=data.size,e}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(156),o=n(207),l=n(588);t.exports=function(t,e){var data=this.__data__;if(data instanceof r){var n=data.__data__;if(!o||n.length<199)return n.push([t,e]),this.size=++data.size,this;data=this.__data__=new l(n)}return data.set(t,e),this.size=data.size,this}},function(t,e,n){var r=n(341),o=n(585),l=n(128),c=n(343),h=/^\[object .+?Constructor\]$/,d=Function.prototype,f=Object.prototype,m=d.toString,v=f.hasOwnProperty,y=RegExp("^"+m.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!l(t)||o(t))&&(r(t)?y:h).test(c(t))}},function(t,e,n){var r=n(208),o=Object.prototype,l=o.hasOwnProperty,c=o.toString,h=r?r.toStringTag:void 0;t.exports=function(t){var e=l.call(t,h),n=t[h];try{t[h]=void 0;var r=!0}catch(t){}var o=c.call(t);return r&&(e?t[h]=n:delete t[h]),o}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r,o=n(586),l=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!l&&l in t}},function(t,e,n){var r=n(71)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(object,t){return null==object?void 0:object[t]}},function(t,e,n){var r=n(589),o=n(596),l=n(598),c=n(599),h=n(600);function d(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}d.prototype.clear=r,d.prototype.delete=o,d.prototype.get=l,d.prototype.has=c,d.prototype.set=h,t.exports=d},function(t,e,n){var r=n(590),o=n(156),l=n(207);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(l||o),string:new r}}},function(t,e,n){var r=n(591),o=n(592),l=n(593),c=n(594),h=n(595);function d(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}d.prototype.clear=r,d.prototype.delete=o,d.prototype.get=l,d.prototype.has=c,d.prototype.set=h,t.exports=d},function(t,e,n){var r=n(159);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(159),o=Object.prototype.hasOwnProperty;t.exports=function(t){var data=this.__data__;if(r){var e=data[t];return"__lodash_hash_undefined__"===e?void 0:e}return o.call(data,t)?data[t]:void 0}},function(t,e,n){var r=n(159),o=Object.prototype.hasOwnProperty;t.exports=function(t){var data=this.__data__;return r?void 0!==data[t]:o.call(data,t)}},function(t,e,n){var r=n(159);t.exports=function(t,e){var data=this.__data__;return this.size+=this.has(t)?0:1,data[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,n){var r=n(160);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(160);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(160);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(160);t.exports=function(t,e){var data=r(this,t),n=data.size;return data.set(t,e),this.size+=data.size==n?0:1,this}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(87),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,n){var r=n(161),o=n(209);t.exports=function(object,source){return object&&r(source,o(source),object)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(606),o=n(129),l=Object.prototype,c=l.hasOwnProperty,h=l.propertyIsEnumerable,d=r(function(){return arguments}())?r:function(t){return o(t)&&c.call(t,"callee")&&!h.call(t,"callee")};t.exports=d},function(t,e,n){var r=n(158),o=n(129);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},function(t,e){t.exports=function(){return!1}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){var r=n(610),o=n(211),l=n(212),c=l&&l.isTypedArray,h=c?o(c):r;t.exports=h},function(t,e,n){var r=n(158),o=n(348),l=n(129),c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c["[object Arguments]"]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c["[object Map]"]=c["[object Number]"]=c["[object Object]"]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1,t.exports=function(t){return l(t)&&o(t.length)&&!!c[r(t)]}},function(t,e,n){var r=n(213),o=n(612),l=Object.prototype.hasOwnProperty;t.exports=function(object){if(!r(object))return o(object);var t=[];for(var e in Object(object))l.call(object,e)&&"constructor"!=e&&t.push(e);return t}},function(t,e,n){var r=n(349)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(161),o=n(214);t.exports=function(object,source){return object&&r(source,o(source),object)}},function(t,e,n){var r=n(128),o=n(213),l=n(615),c=Object.prototype.hasOwnProperty;t.exports=function(object){if(!r(object))return l(object);var t=o(object),e=[];for(var n in object)("constructor"!=n||!t&&c.call(object,n))&&e.push(n);return e}},function(t,e){t.exports=function(object){var t=[];if(null!=object)for(var e in Object(object))t.push(e);return t}},function(t,e,n){(function(t){var r=n(71),o=e&&!e.nodeType&&e,l=o&&"object"==typeof t&&t&&!t.nodeType&&t,c=l&&l.exports===o?r.Buffer:void 0,h=c?c.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=h?h(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(155)(t))},function(t,e){t.exports=function(source,t){var e=-1,n=source.length;for(t||(t=Array(n));++e<n;)t[e]=source[e];return t}},function(t,e,n){var r=n(161),o=n(215);t.exports=function(source,object){return r(source,o(source),object)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,l=[];++n<r;){var c=t[n];e(c,n,t)&&(l[o++]=c)}return l}},function(t,e,n){var r=n(161),o=n(352);t.exports=function(source,object){return r(source,o(source),object)}},function(t,e,n){var r=n(355),o=n(215),l=n(209);t.exports=function(object){return r(object,l,o)}},function(t,e,n){var r=n(355),o=n(352),l=n(214);t.exports=function(object){return r(object,l,o)}},function(t,e,n){var r=n(87)(n(71),"DataView");t.exports=r},function(t,e,n){var r=n(87)(n(71),"Promise");t.exports=r},function(t,e,n){var r=n(87)(n(71),"Set");t.exports=r},function(t,e,n){var r=n(87)(n(71),"WeakMap");t.exports=r},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t,e,n){var r=n(217),o=n(630),l=n(631),c=n(632),h=n(633);t.exports=function(object,t,e){var n=object.constructor;switch(t){case"[object ArrayBuffer]":return r(object);case"[object Boolean]":case"[object Date]":return new n(+object);case"[object DataView]":return o(object,e);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return h(object,e);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(object);case"[object RegExp]":return l(object);case"[object Symbol]":return c(object)}}},function(t,e,n){var r=n(71).Uint8Array;t.exports=r},function(t,e,n){var r=n(217);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var r=n(208),o=r?r.prototype:void 0,l=o?o.valueOf:void 0;t.exports=function(symbol){return l?Object(l.call(symbol)):{}}},function(t,e,n){var r=n(217);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(635),o=n(354),l=n(213);t.exports=function(object){return"function"!=typeof object.constructor||l(object)?{}:r(o(object))}},function(t,e,n){var r=n(128),o=Object.create,l=function(){function object(){}return function(t){if(!r(t))return{};if(o)return o(t);object.prototype=t;var e=new object;return object.prototype=void 0,e}}();t.exports=l},function(t,e,n){var r=n(637),o=n(211),l=n(212),c=l&&l.isMap,h=c?o(c):r;t.exports=h},function(t,e,n){var r=n(216),o=n(129);t.exports=function(t){return o(t)&&"[object Map]"==r(t)}},function(t,e,n){var r=n(639),o=n(211),l=n(212),c=l&&l.isSet,h=c?o(c):r;t.exports=h},function(t,e,n){var r=n(216),o=n(129);t.exports=function(t){return o(t)&&"[object Set]"==r(t)}},,,,,,,,function(t,e,n){t.exports=function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,p){return e=Object.setPrototypeOf||function(t,p){return t.__proto__=p,t},e(t,p)}function n(){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(t){return!1}}function r(t,o,l){return r=n()?Reflect.construct:function(t,n,r){var a=[null];a.push.apply(a,n);var o=new(Function.bind.apply(t,a));return r&&e(o,r.prototype),o},r.apply(null,arguments)}function o(t){return l(t)||c(t)||h(t)||f()}function l(t){if(Array.isArray(t))return d(t)}function c(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function h(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var m=Object.hasOwnProperty,v=Object.setPrototypeOf,y=Object.isFrozen,_=Object.getPrototypeOf,w=Object.getOwnPropertyDescriptor,T=Object.freeze,x=Object.seal,S=Object.create,E="undefined"!=typeof Reflect&&Reflect,k=E.apply,A=E.construct;k||(k=function(t,e,n){return t.apply(e,n)}),T||(T=function(t){return t}),x||(x=function(t){return t}),A||(A=function(t,e){return r(t,o(e))});var C=B(Array.prototype.forEach),O=B(Array.prototype.pop),j=B(Array.prototype.push),I=B(String.prototype.toLowerCase),L=B(String.prototype.toString),D=B(String.prototype.match),P=B(String.prototype.replace),M=B(String.prototype.indexOf),N=B(String.prototype.trim),R=B(RegExp.prototype.test),U=F(TypeError);function B(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return k(t,e,r)}}function F(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return A(t,n)}}function z(t,e,n){var r;n=null!==(r=n)&&void 0!==r?r:I,v&&v(t,null);for(var o=e.length;o--;){var element=e[o];if("string"==typeof element){var l=n(element);l!==element&&(y(e)||(e[o]=l),element=l)}t[element]=!0}return t}function H(object){var t,e=S(null);for(t in object)!0===k(m,object,[t])&&(e[t]=object[t]);return e}function V(object,t){for(;null!==object;){var desc=w(object,t);if(desc){if(desc.get)return B(desc.get);if("function"==typeof desc.value)return B(desc.value)}object=_(object)}function e(element){return console.warn("fallback value for",element),null}return e}var W=T(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Y=T(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),G=T(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),X=T(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),K=T(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),$=T(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),text=T(["#text"]),html=T(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),svg=T(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Q=T(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),J=T(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Z=x(/\{\{[\w\W]*|[\w\W]*\}\}/gm),tt=x(/<%[\w\W]*|[\w\W]*%>/gm),et=x(/\${[\w\W]*}/gm),nt=x(/^data-[\-\w.\u00B7-\uFFFF]/),it=x(/^aria-[\-\w]+$/),st=x(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ot=x(/^(?:\w+script|data):/i),at=x(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ut=x(/^html$/i),lt=x(/^[a-z][.\w]*(-[.\w]+)+$/i),ct=function(){return"undefined"==typeof window?null:window},ht=function(e,n){if("object"!==t(e)||"function"!=typeof e.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var l="dompurify"+(r?"#"+r:"");try{return e.createPolicy(l,{createHTML:function(html){return html},createScriptURL:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+l+" could not be created."),null}};function ft(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ct(),n=function(t){return ft(t)};if(n.version="2.5.6",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;var r=e.document,l=e.document,c=e.DocumentFragment,h=e.HTMLTemplateElement,d=e.Node,f=e.Element,m=e.NodeFilter,v=e.NamedNodeMap,y=void 0===v?e.NamedNodeMap||e.MozNamedAttrMap:v,_=e.HTMLFormElement,w=e.DOMParser,x=e.trustedTypes,S=f.prototype,E=V(S,"cloneNode"),k=V(S,"nextSibling"),A=V(S,"childNodes"),B=V(S,"parentNode");if("function"==typeof h){var template=l.createElement("template");template.content&&template.content.ownerDocument&&(l=template.content.ownerDocument)}var F=ht(x,r),pt=F?F.createHTML(""):"",mt=l,gt=mt.implementation,vt=mt.createNodeIterator,yt=mt.createDocumentFragment,bt=mt.getElementsByTagName,_t=r.importNode,wt={};try{wt=H(l).documentMode?l.documentMode:{}}catch(t){}var Tt={};n.isSupported="function"==typeof B&>&&void 0!==gt.createHTMLDocument&&9!==wt;var xt,St,Et=Z,kt=tt,At=et,Ct=nt,Ot=it,jt=ot,It=at,Lt=lt,Dt=st,Pt=null,Mt=z({},[].concat(o(W),o(Y),o(G),o(K),o(text))),Nt=null,Rt=z({},[].concat(o(html),o(svg),o(Q),o(J))),Ut=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Bt=null,Ft=null,zt=!0,qt=!0,Ht=!1,Vt=!0,Wt=!1,Yt=!0,Gt=!1,Xt=!1,Kt=!1,$t=!1,Qt=!1,Jt=!1,Zt=!0,te=!1,ee="user-content-",ne=!0,re=!1,ie={},se=null,oe=z({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ae=null,ue=z({},["audio","video","img","source","image","track"]),le=null,ce=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),he="http://www.w3.org/1998/Math/MathML",de="http://www.w3.org/2000/svg",fe="http://www.w3.org/1999/xhtml",pe=fe,me=!1,ge=null,ve=z({},[he,de,fe],L),ye=["application/xhtml+xml","text/html"],be="text/html",_e=null,we=l.createElement("form"),Te=function(t){return t instanceof RegExp||t instanceof Function},xe=function(e){_e&&_e===e||(e&&"object"===t(e)||(e={}),e=H(e),xt=xt=-1===ye.indexOf(e.PARSER_MEDIA_TYPE)?be:e.PARSER_MEDIA_TYPE,St="application/xhtml+xml"===xt?L:I,Pt="ALLOWED_TAGS"in e?z({},e.ALLOWED_TAGS,St):Mt,Nt="ALLOWED_ATTR"in e?z({},e.ALLOWED_ATTR,St):Rt,ge="ALLOWED_NAMESPACES"in e?z({},e.ALLOWED_NAMESPACES,L):ve,le="ADD_URI_SAFE_ATTR"in e?z(H(ce),e.ADD_URI_SAFE_ATTR,St):ce,ae="ADD_DATA_URI_TAGS"in e?z(H(ue),e.ADD_DATA_URI_TAGS,St):ue,se="FORBID_CONTENTS"in e?z({},e.FORBID_CONTENTS,St):oe,Bt="FORBID_TAGS"in e?z({},e.FORBID_TAGS,St):{},Ft="FORBID_ATTR"in e?z({},e.FORBID_ATTR,St):{},ie="USE_PROFILES"in e&&e.USE_PROFILES,zt=!1!==e.ALLOW_ARIA_ATTR,qt=!1!==e.ALLOW_DATA_ATTR,Ht=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Vt=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Wt=e.SAFE_FOR_TEMPLATES||!1,Yt=!1!==e.SAFE_FOR_XML,Gt=e.WHOLE_DOCUMENT||!1,$t=e.RETURN_DOM||!1,Qt=e.RETURN_DOM_FRAGMENT||!1,Jt=e.RETURN_TRUSTED_TYPE||!1,Kt=e.FORCE_BODY||!1,Zt=!1!==e.SANITIZE_DOM,te=e.SANITIZE_NAMED_PROPS||!1,ne=!1!==e.KEEP_CONTENT,re=e.IN_PLACE||!1,Dt=e.ALLOWED_URI_REGEXP||Dt,pe=e.NAMESPACE||fe,Ut=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ut.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ut.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ut.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Wt&&(qt=!1),Qt&&($t=!0),ie&&(Pt=z({},o(text)),Nt=[],!0===ie.html&&(z(Pt,W),z(Nt,html)),!0===ie.svg&&(z(Pt,Y),z(Nt,svg),z(Nt,J)),!0===ie.svgFilters&&(z(Pt,G),z(Nt,svg),z(Nt,J)),!0===ie.mathMl&&(z(Pt,K),z(Nt,Q),z(Nt,J))),e.ADD_TAGS&&(Pt===Mt&&(Pt=H(Pt)),z(Pt,e.ADD_TAGS,St)),e.ADD_ATTR&&(Nt===Rt&&(Nt=H(Nt)),z(Nt,e.ADD_ATTR,St)),e.ADD_URI_SAFE_ATTR&&z(le,e.ADD_URI_SAFE_ATTR,St),e.FORBID_CONTENTS&&(se===oe&&(se=H(se)),z(se,e.FORBID_CONTENTS,St)),ne&&(Pt["#text"]=!0),Gt&&z(Pt,["html","head","body"]),Pt.table&&(z(Pt,["tbody"]),delete Bt.tbody),T&&T(e),_e=e)},Se=z({},["mi","mo","mn","ms","mtext"]),Ee=z({},["foreignobject","annotation-xml"]),ke=z({},["title","style","font","a","script"]),Ae=z({},Y);z(Ae,G),z(Ae,X);var Ce=z({},K);z(Ce,$);var Oe=function(element){var t=B(element);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var e=I(element.tagName),n=I(t.tagName);return!!ge[element.namespaceURI]&&(element.namespaceURI===de?t.namespaceURI===fe?"svg"===e:t.namespaceURI===he?"svg"===e&&("annotation-xml"===n||Se[n]):Boolean(Ae[e]):element.namespaceURI===he?t.namespaceURI===fe?"math"===e:t.namespaceURI===de?"math"===e&&Ee[n]:Boolean(Ce[e]):element.namespaceURI===fe?!(t.namespaceURI===de&&!Ee[n])&&!(t.namespaceURI===he&&!Se[n])&&!Ce[e]&&(ke[e]||!Ae[e]):!("application/xhtml+xml"!==xt||!ge[element.namespaceURI]))},je=function(t){j(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=pt}catch(e){t.remove()}}},Ie=function(t,e){try{j(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){j(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!Nt[t])if($t||Qt)try{je(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},Le=function(t){var e,n;if(Kt)t="<remove></remove>"+t;else{var r=D(t,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===xt&&pe===fe&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var o=F?F.createHTML(t):t;if(pe===fe)try{e=(new w).parseFromString(o,xt)}catch(t){}if(!e||!e.documentElement){e=gt.createDocument(pe,"template",null);try{e.documentElement.innerHTML=me?pt:o}catch(t){}}var body=e.body||e.documentElement;return t&&n&&body.insertBefore(l.createTextNode(n),body.childNodes[0]||null),pe===fe?bt.call(e,Gt?"html":"body")[0]:Gt?e.documentElement:body},De=function(t){return vt.call(t.ownerDocument||t,t,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null,!1)},Pe=function(t){return t instanceof _&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof y)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Me=function(object){return"object"===t(d)?object instanceof d:object&&"object"===t(object)&&"number"==typeof object.nodeType&&"string"==typeof object.nodeName},Ne=function(t,e,data){Tt[t]&&C(Tt[t],(function(t){t.call(n,e,data,_e)}))},Re=function(t){var content;if(Ne("beforeSanitizeElements",t,null),Pe(t))return je(t),!0;if(R(/[\u0080-\uFFFF]/,t.nodeName))return je(t),!0;var e=St(t.nodeName);if(Ne("uponSanitizeElement",t,{tagName:e,allowedTags:Pt}),t.hasChildNodes()&&!Me(t.firstElementChild)&&(!Me(t.content)||!Me(t.content.firstElementChild))&&R(/<[/\w]/g,t.innerHTML)&&R(/<[/\w]/g,t.textContent))return je(t),!0;if("select"===e&&R(/<template/i,t.innerHTML))return je(t),!0;if(7===t.nodeType)return je(t),!0;if(Yt&&8===t.nodeType&&R(/<[/\w]/g,t.data))return je(t),!0;if(!Pt[e]||Bt[e]){if(!Bt[e]&&Be(e)){if(Ut.tagNameCheck instanceof RegExp&&R(Ut.tagNameCheck,e))return!1;if(Ut.tagNameCheck instanceof Function&&Ut.tagNameCheck(e))return!1}if(ne&&!se[e]){var r=B(t)||t.parentNode,o=A(t)||t.childNodes;if(o&&r)for(var i=o.length-1;i>=0;--i){var l=E(o[i],!0);l.__removalCount=(t.__removalCount||0)+1,r.insertBefore(l,k(t))}}return je(t),!0}return t instanceof f&&!Oe(t)?(je(t),!0):"noscript"!==e&&"noembed"!==e&&"noframes"!==e||!R(/<\/no(script|embed|frames)/i,t.innerHTML)?(Wt&&3===t.nodeType&&(content=t.textContent,content=P(content,Et," "),content=P(content,kt," "),content=P(content,At," "),t.textContent!==content&&(j(n.removed,{element:t.cloneNode()}),t.textContent=content)),Ne("afterSanitizeElements",t,null),!1):(je(t),!0)},Ue=function(t,e,n){if(Zt&&("id"===e||"name"===e)&&(n in l||n in we))return!1;if(qt&&!Ft[e]&&R(Ct,e));else if(zt&&R(Ot,e));else if(!Nt[e]||Ft[e]){if(!(Be(t)&&(Ut.tagNameCheck instanceof RegExp&&R(Ut.tagNameCheck,t)||Ut.tagNameCheck instanceof Function&&Ut.tagNameCheck(t))&&(Ut.attributeNameCheck instanceof RegExp&&R(Ut.attributeNameCheck,e)||Ut.attributeNameCheck instanceof Function&&Ut.attributeNameCheck(e))||"is"===e&&Ut.allowCustomizedBuiltInElements&&(Ut.tagNameCheck instanceof RegExp&&R(Ut.tagNameCheck,n)||Ut.tagNameCheck instanceof Function&&Ut.tagNameCheck(n))))return!1}else if(le[e]);else if(R(Dt,P(n,It,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==M(n,"data:")||!ae[t])if(Ht&&!R(jt,P(n,It,"")));else if(n)return!1;return!0},Be=function(t){return"annotation-xml"!==t&&D(t,Lt)},Fe=function(e){var r,o,l,c;Ne("beforeSanitizeAttributes",e,null);var h=e.attributes;if(h){var d={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Nt};for(c=h.length;c--;){var f=r=h[c],m=f.name,v=f.namespaceURI;if(o="value"===m?r.value:N(r.value),l=St(m),d.attrName=l,d.attrValue=o,d.keepAttr=!0,d.forceKeepAttr=void 0,Ne("uponSanitizeAttribute",e,d),o=d.attrValue,Yt&&R(/((--!?|])>)|<\/(style|title)/i,o))Ie(m,e);else if(!d.forceKeepAttr&&(Ie(m,e),d.keepAttr))if(Vt||!R(/\/>/i,o)){Wt&&(o=P(o,Et," "),o=P(o,kt," "),o=P(o,At," "));var y=St(e.nodeName);if(Ue(y,l,o)){if(!te||"id"!==l&&"name"!==l||(Ie(m,e),o=ee+o),F&&"object"===t(x)&&"function"==typeof x.getAttributeType)if(v);else switch(x.getAttributeType(y,l)){case"TrustedHTML":o=F.createHTML(o);break;case"TrustedScriptURL":o=F.createScriptURL(o)}try{v?e.setAttributeNS(v,m,o):e.setAttribute(m,o),Pe(e)?je(e):O(n.removed)}catch(t){}}}else Ie(m,e)}Ne("afterSanitizeAttributes",e,null)}},ze=function t(e){var n,r=De(e);for(Ne("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)Ne("uponSanitizeShadowNode",n,null),Re(n)||(n.content instanceof c&&t(n.content),Fe(n));Ne("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(o){var body,l,h,f,m,v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((me=!o)&&(o="\x3c!--\x3e"),"string"!=typeof o&&!Me(o)){if("function"!=typeof o.toString)throw U("toString is not a function");if("string"!=typeof(o=o.toString()))throw U("dirty is not a string, aborting")}if(!n.isSupported){if("object"===t(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof o)return e.toStaticHTML(o);if(Me(o))return e.toStaticHTML(o.outerHTML)}return o}if(Xt||xe(v),n.removed=[],"string"==typeof o&&(re=!1),re){if(o.nodeName){var y=St(o.nodeName);if(!Pt[y]||Bt[y])throw U("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof d)1===(l=(body=Le("\x3c!----\x3e")).ownerDocument.importNode(o,!0)).nodeType&&"BODY"===l.nodeName||"HTML"===l.nodeName?body=l:body.appendChild(l);else{if(!$t&&!Wt&&!Gt&&-1===o.indexOf("<"))return F&&Jt?F.createHTML(o):o;if(!(body=Le(o)))return $t?null:Jt?pt:""}body&&Kt&&je(body.firstChild);for(var _=De(re?o:body);h=_.nextNode();)3===h.nodeType&&h===f||Re(h)||(h.content instanceof c&&ze(h.content),Fe(h),f=h);if(f=null,re)return o;if($t){if(Qt)for(m=yt.call(body.ownerDocument);body.firstChild;)m.appendChild(body.firstChild);else m=body;return(Nt.shadowroot||Nt.shadowrootmod)&&(m=_t.call(r,m,!0)),m}var w=Gt?body.outerHTML:body.innerHTML;return Gt&&Pt["!doctype"]&&body.ownerDocument&&body.ownerDocument.doctype&&body.ownerDocument.doctype.name&&R(ut,body.ownerDocument.doctype.name)&&(w="<!DOCTYPE "+body.ownerDocument.doctype.name+">\n"+w),Wt&&(w=P(w,Et," "),w=P(w,kt," "),w=P(w,At," ")),F&&Jt?F.createHTML(w):w},n.setConfig=function(t){xe(t),Xt=!0},n.clearConfig=function(){_e=null,Xt=!1},n.isValidAttribute=function(t,e,n){_e||xe({});var r=St(t),o=St(e);return Ue(r,o,n)},n.addHook=function(t,e){"function"==typeof e&&(Tt[t]=Tt[t]||[],j(Tt[t],e))},n.removeHook=function(t){if(Tt[t])return O(Tt[t])},n.removeHooks=function(t){Tt[t]&&(Tt[t]=[])},n.removeAllHooks=function(){Tt={}},n}return ft()}()},,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r,o,l;!function(c,h){if(c){h=h.bind(null,c,c.document),t.exports?h(n(105)):(o=[n(105)],void 0===(l="function"==typeof(r=h)?r.apply(e,o):r)||(t.exports=l))}}("undefined"!=typeof window?window:0,(function(t,e,n){"use strict";var r;!function(){var t,e={blurUpClass:"ls-blur-up-img",blurUpLoadingClass:"ls-blur-up-is-loading",blurUpInviewClass:"ls-inview",blurUpLoadedClass:"ls-blur-up-loaded",blurUpLoadedOriginalClass:"ls-original-loaded"};for(t in r=n.cfg||{},e)t in r||(r[t]=e[t])}();var o=[].slice,l=/blur-up["']*\s*:\s*["']*(always|auto)/,c=/image\/(jpeg|png|gif|svg\+xml)/,h=function(picture,img){var e;return(picture?o.call(picture.querySelectorAll("source, img")):[img]).forEach((function(r){if(!e){var source,o,l,h=r.getAttribute("data-lowsrc");!h||(o=(source=r).getAttribute("data-media")||source.getAttribute("media"),(l=source.getAttribute("type"))&&!c.test(l)||o&&!t.matchMedia(n.cfg.customMedia[o]||o).matches)||(e=h)}})),e};t.addEventListener("lazybeforeunveil",(function(t){var r=t.detail;if(r.instance==n&&r.blurUp){var img=t.target,picture=img.parentNode;"PICTURE"!=picture.nodeName&&(picture=null),function(picture,img,t,r){var o,l=!1,c=!1,h="always"==r?0:Date.now(),d=0,f=(picture||img).parentNode,m=function(){o&&n.rAF((function(){n.rC(img,n.cfg.blurUpLoadingClass);try{o.parentNode.removeChild(o)}catch(t){}o=null}))},v=function(t){d++,c=t||c,t?m():d>1&&setTimeout(m,5e3)},y=function(){img.removeEventListener("load",y),img.removeEventListener("error",y),o&&n.rAF((function(){o&&n.aC(o,n.cfg.blurUpLoadedOriginalClass)})),n.fire(img,"blurUpLoaded"),"always"!=r&&(!l||Date.now()-h<66)?v(!0):v()};!function(){if(t){var h=function(t){l=!0,o||(o=t.target),n.rAF((function(){n.rC(img,n.cfg.blurUpLoadingClass),o&&n.aC(o,n.cfg.blurUpLoadedClass)})),o&&(o.removeEventListener("load",h),o.removeEventListener("error",h))};(o=e.createElement("img")).addEventListener("load",h),o.addEventListener("error",h),o.className=n.cfg.blurUpClass,o.cssText=img.cssText,o.src=t,o.alt="",o.setAttribute("aria-hidden","true"),f.insertBefore(o,(picture||img).nextSibling),"always"!=r&&(o.style.visibility="hidden",n.rAF((function(){o&&setTimeout((function(){o&&n.rAF((function(){!c&&o&&(o.style.visibility="")}))}),n.cfg.blurupCacheDelay||33)})))}}(),img.addEventListener("load",y),img.addEventListener("error",y),n.aC(img,n.cfg.blurUpLoadingClass);var _=function(t){f==t.target&&(n.aC(o||img,n.cfg.blurUpInviewClass),v(),f.removeEventListener("lazybeforeunveil",_))};f.getAttribute("data-expand")||f.setAttribute("data-expand",-1),f.addEventListener("lazybeforeunveil",_),n.aC(f,n.cfg.lazyClass)}(picture,img,h(picture,img)||"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",r.blurUp)}})),t.addEventListener("lazyunveilread",(function(t){var e=t.detail;if(e.instance==n){var img=t.target,r=(getComputedStyle(img,null)||{fontFamily:""}).fontFamily.match(l);(r||img.getAttribute("data-lowsrc"))&&(e.blurUp=r&&r[1]||n.cfg.blurupMode||"always")}}))}))},function(t,e,n){var r,o,l;!function(c,h){h=h.bind(null,c,c.document),t.exports?h(n(105)):(o=[n(105)],void 0===(l="function"==typeof(r=h)?r.apply(e,o):r)||(t.exports=l))}(window,(function(t,e,n){"use strict";var r="loading"in HTMLImageElement.prototype,o="loading"in HTMLIFrameElement.prototype,l=!1,c=n.prematureUnveil,h=n.cfg,d={focus:1,mouseover:1,click:1,load:1,transitionend:1,animationend:1,scroll:1,resize:1};function f(){var c,f,m,v;l||(l=!0,r&&o&&h.nativeLoading.disableListeners&&(!0===h.nativeLoading.disableListeners&&(h.nativeLoading.setLoadingAttribute=!0),c=n.loader,f=c.checkElems,m=function(){setTimeout((function(){t.removeEventListener("scroll",c._aLSL,!0)}),1e3)},(v="object"==typeof h.nativeLoading.disableListeners?h.nativeLoading.disableListeners:d).scroll&&(t.addEventListener("load",m),m(),t.removeEventListener("scroll",f,!0)),v.resize&&t.removeEventListener("resize",f,!0),Object.keys(v).forEach((function(t){v[t]&&e.removeEventListener(t,f,!0)}))),h.nativeLoading.setLoadingAttribute&&t.addEventListener("lazybeforeunveil",(function(t){var element=t.target;"loading"in element&&!element.getAttribute("loading")&&element.setAttribute("loading","lazy")}),!0))}h.nativeLoading||(h.nativeLoading={}),t.addEventListener&&t.MutationObserver&&(r||o)&&(n.prematureUnveil=function(element){return l||f(),!(!("loading"in element)||!h.nativeLoading.setLoadingAttribute&&!element.getAttribute("loading")||"auto"==element.getAttribute("data-sizes")&&!element.offsetWidth)||(c?c(element):void 0)})}))},function(t,e,n){var content=n(673);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(13).default)("85a8fa22",content,!0,{sourceMap:!1})},function(t,e,n){var r=n(12)((function(i){return i[1]}));r.push([t.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{height:100%;left:0;position:absolute;top:0;width: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;font-style:normal;font-weight:400;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")}.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-style:normal;font-weight:400}.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-style:normal;font-weight:400}.vjs-icon-play-circle:before{content:"\\f102"}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder,.vjs-icon-pause{font-family:VideoJS;font-style:normal;font-weight:400}.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-style:normal;font-weight:400}.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-style:normal;font-weight:400}.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-style:normal;font-weight:400}.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-style:normal;font-weight:400}.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-style:normal;font-weight:400}.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-style:normal;font-weight:400}.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-style:normal;font-weight:400}.vjs-icon-square:before{content:"\\f10a"}.vjs-icon-spinner{font-family:VideoJS;font-style:normal;font-weight:400}.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-style:normal;font-weight:400}.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-style:normal;font-weight:400}.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-style:normal;font-weight:400}.video-js .vjs-chapters-button .vjs-icon-placeholder:before,.vjs-icon-chapters:before{content:"\\f10e"}.vjs-icon-share{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-share:before{content:"\\f10f"}.vjs-icon-cog{font-family:VideoJS;font-style:normal;font-weight:400}.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-style:normal;font-weight:400}.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-style:normal;font-weight:400}.vjs-icon-circle-outline:before{content:"\\f112"}.vjs-icon-circle-inner-circle{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-circle-inner-circle:before{content:"\\f113"}.vjs-icon-hd{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-hd:before{content:"\\f114"}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder,.vjs-icon-cancel{font-family:VideoJS;font-style:normal;font-weight:400}.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-style:normal;font-weight:400}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before,.vjs-icon-replay:before{content:"\\f116"}.vjs-icon-facebook{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-facebook:before{content:"\\f117"}.vjs-icon-gplus{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-gplus:before{content:"\\f118"}.vjs-icon-linkedin{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-linkedin:before{content:"\\f119"}.vjs-icon-twitter{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-twitter:before{content:"\\f11a"}.vjs-icon-tumblr{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-tumblr:before{content:"\\f11b"}.vjs-icon-pinterest{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-pinterest:before{content:"\\f11c"}.video-js .vjs-descriptions-button .vjs-icon-placeholder,.vjs-icon-audio-description{font-family:VideoJS;font-style:normal;font-weight:400}.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-style:normal;font-weight:400}.video-js .vjs-audio-button .vjs-icon-placeholder:before,.vjs-icon-audio:before{content:"\\f11e"}.vjs-icon-next-item{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-next-item:before{content:"\\f11f"}.vjs-icon-previous-item{font-family:VideoJS;font-style:normal;font-weight:400}.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-style:normal;font-weight:400}.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-style:normal;font-weight:400}.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{background-color:#000;box-sizing:border-box;color:#fff;display:block;font-family:Arial,Helvetica,sans-serif;font-size:10px;font-style:normal;font-weight:400;line-height:1;padding:0;position:relative;vertical-align:top;word-break:normal}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{height:100%!important;width:100%!important}.video-js[tabindex="-1"]{outline:none}.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: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{max-width:100%;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-tech,.video-js.vjs-fill:not(.vjs-audio-only-mode){height:100%;width:100%}.video-js .vjs-tech{left:0;position:absolute;top:0}.video-js.vjs-audio-only-mode .vjs-tech{display:none}body.vjs-full-window{height:100%;margin:0;padding:0}.vjs-full-window .video-js.vjs-fullscreen{bottom:0;left:0;overflow:hidden;position:fixed;right:0;top:0;z-index:1000}.video-js.vjs-fullscreen:not(.vjs-ios-native-fs){height:100%!important;padding-top:0!important;width:100%!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-hidden{display:none!important}.vjs-disabled{cursor:default;opacity:.5}.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{background-color:#000;color:#fff;font-family:Arial,Helvetica,sans-serif;font-size:18px;height:150px;margin:0 auto;padding:20px;text-align:center;width:300px}.vjs-no-js a,.vjs-no-js a:visited{color:#66a8cc}.video-js .vjs-big-play-button{background-color:#2b333f;background-color:rgba(43,51,63,.7);border:.06666em solid #fff;border-radius:.3em;cursor:pointer;display:block;font-size:3em;height:1.63332em;left:10px;line-height:1.5em;opacity:1;padding:0;position:absolute;top:10px;transition:all .4s;width:3em}.vjs-big-play-centered .vjs-big-play-button{left:50%;margin-left:-1.5em;margin-top:-.81666em;top:50%}.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{background-color:#73859f;background-color:rgba(115,133,159,.5);border-color:#fff;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 button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;color:inherit;display:inline-block;font-size:inherit;line-height:inherit;-webkit-text-decoration:none;text-decoration:none;text-transform:none;transition:none}.vjs-control .vjs-button{height:100%;width: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;font-family:Arial,Helvetica,sans-serif;margin:0;overflow:auto;padding:0}.vjs-menu .vjs-menu-content>*{box-sizing:border-box}.vjs-scrubbing .vjs-control.vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{font-size:1.2em;line-height:1.4em;list-style:none;margin:0;padding:.2em 0;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:none}.vjs-menu li.vjs-menu-title{cursor:default;font-size:1em;font-weight:700;line-height:2em;margin:0 0 .3em;padding:0;text-align:center;text-transform:uppercase}.vjs-menu-button-popup .vjs-menu{border-top-color:rgba(43,51,63,.7);bottom:0;display:none;height:0;left:-3em;margin-bottom:1.5em;position:absolute;width:10em}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2b333f;background-color:rgba(43,51,63,.7);bottom:1.5em;max-height:15em;position:absolute;width:100%}.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{overflow:hidden;transition:all .4s}.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{height:100%;left:4em;margin:0;opacity:0;padding:0;position:absolute;top:0;transition:all .4s;width:auto}.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{height:100%;margin:0;overflow:hidden;width:auto}.video-js .vjs-control-bar{background-color:#2b333f;background-color:rgba(43,51,63,.7);bottom:0;display:none;height:3em;left:0;position:absolute;right:0;width:100%}.vjs-audio-only-mode .vjs-control-bar,.vjs-has-started .vjs-control-bar{display:flex;opacity:1;transition:visibility .1s,opacity .1s;visibility:visible}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:0;pointer-events:none;transition:visibility 1s,opacity 1s;visibility:visible}.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;pointer-events:auto;visibility:visible}.vjs-has-started.vjs-no-flex .vjs-control-bar{display:table}.video-js .vjs-control{flex:none;height:100%;margin:0;padding:0;position:relative;text-align:center;width:4em}.video-js .vjs-control.vjs-visible-text{padding-left:1em;padding-right:1em;width:auto}.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{align-items:center;cursor:pointer;display:flex;flex:auto;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{align-items:center;display:flex}.vjs-no-flex .vjs-progress-control{width:auto}.video-js .vjs-progress-holder{flex:auto;height:.3em;transition:all .2s}.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{display:block;height:100%;margin:0;padding:0;position:absolute;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;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{background-color:#000;display:none;height:100%;position:absolute;width:1px;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{opacity:0;transition:visibility 1s,opacity 1s;visibility:hidden}.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-time-tooltip{background-color:#000;background-color:rgba(0,0,0,.8);color:#fff}.video-js .vjs-slider{cursor:pointer;margin:0 .45em;padding:0;position:relative;-webkit-touch-callout:none;background-color:#73859f;background-color:rgba(115,133,159,.5);-webkit-user-select:none;-moz-user-select:none;user-select:none}.video-js .vjs-slider.disabled{cursor:default}.video-js .vjs-slider:focus{box-shadow:0 0 1em #fff;text-shadow:0 0 1em #fff}.video-js .vjs-mute-control{cursor:pointer;flex:none}.video-js .vjs-volume-control{cursor:pointer;display:flex;margin-right:1em}.video-js .vjs-volume-control.vjs-volume-horizontal{width:5em}.video-js .vjs-volume-panel .vjs-volume-control{height:1px;margin-left:-1px;opacity:0;visibility:visible;width: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{opacity:1;position:relative;transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s;visibility:visible}.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{height:3em;margin-right:0;width:5em}.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{transition:width .1s;width:10em}.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;left:-3000em;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s;width:3em}.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{height:3em;opacity:1;position:relative;transition:none;visibility:visible;width:5em}.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{bottom:3em;left:.5em;position:absolute}.video-js .vjs-volume-panel{display:flex}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{height:.3em;width:5em}.vjs-volume-bar.vjs-slider-vertical{height:5em;margin:1.35em auto;width:.3em}.video-js .vjs-volume-level{background-color:#fff;bottom:0;left:0;position:absolute}.video-js .vjs-volume-level:before{font-size:.9em;position:absolute;z-index:1}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{left:-.3em;top:-.5em;z-index:1}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{right:-.5em;top:-.3em}.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{background-color:#2b333f;background-color:rgba(43,51,63,.7);bottom:8em;height:8em;width:3em}.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;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{background-color:#000;display:none;height:1px;position:absolute;width:100%;z-index:1}.video-js .vjs-volume-horizontal .vjs-mouse-display{height:100%;width:1px}.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{opacity:0;transition:visibility 1s,opacity 1s;visibility:hidden}.video-js.vjs-user-inactive.vjs-no-flex .vjs-volume-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-volume-tooltip{background-color:#000;background-color:rgba(0,0,0,.8);color:#fff}.vjs-poster{background-color:#000;background-position:50% 50%;background-repeat:no-repeat;background-size:contain;bottom:0;cursor:pointer;display:inline-block;height:100%;left:0;margin:0;padding:0;position:absolute;right:0;top:0;vertical-align:middle}.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{align-items:flex-start;display:flex;flex:auto;font-size:1em;line-height:3em}.vjs-no-flex .vjs-live-control{display:table-cell;text-align:left;width:auto}.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;display:inline-flex;flex:none;font-size:1em;height:100%;line-height:3em;min-width:4em;padding-left:.5em;padding-right:.5em;width:auto}.vjs-no-flex .vjs-seek-to-live-control{display:table-cell;text-align:left;width:auto}.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{color:#888;margin-right:.5em}.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;padding-left:1em;padding-right:1em;width:auto}.video-js .vjs-current-time,.video-js .vjs-duration,.vjs-live .vjs-time-control,.vjs-no-flex .vjs-current-time,.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{bottom:3em;left:0;pointer-events:none;position:absolute;right:0;top:0}.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;margin-bottom:.1em;text-align:center}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}video::-webkit-media-text-track-display{transform:translateY(-3em)}.video-js.vjs-controls-disabled video::-webkit-media-text-track-display,.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display{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{height:100%;left:0;position:absolute;top:0;width:100%}.vjs-playback-rate .vjs-playback-rate-value{font-size:1.5em;line-height:2;pointer-events:none;text-align:center}.vjs-playback-rate .vjs-menu{left:0;width:4em}.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-align:center;text-shadow:.05em .05em .1em #000;top:50%;vertical-align:middle;width:100%}.vjs-loading-spinner{background-clip:padding-box;border:6px solid rgba(43,51,63,.7);border-radius:25px;box-sizing:border-box;display:none;height:50px;left:50%;margin:-25px 0 0 -25px;opacity:.85;position:absolute;text-align:left;top:50%;visibility:hidden;width:50px}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{animation:vjs-spinner-show 0s linear .3s forwards;display:block}.vjs-loading-spinner:after,.vjs-loading-spinner:before{border:inherit;border-color:#fff transparent transparent;border-radius:inherit;box-sizing:inherit;content:"";height:inherit;margin:-6px;opacity:1;position:absolute;width:inherit}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{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{animation-delay:.44s;border-top-color:#fff}@keyframes vjs-spinner-show{to{visibility:visible}}@keyframes vjs-spinner-spin{to{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}to{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{display:inline-block;margin-bottom:-.1em;vertical-align:middle}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{content:"";font-family:VideoJS;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{display:inline-block;margin-bottom:-.1em;vertical-align:middle}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{content:" ";font-family:VideoJS;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}.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{display:block;flex:auto}.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}.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-bottom:.5em;margin-right:1em}.vjs-text-track-settings fieldset{border:none;margin:5px;padding:3px}.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}.vjs-text-track-settings .vjs-label{position:absolute;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);border:0;display:block;height:1px;margin:0 0 5px;overflow:hidden;padding:0;width:1px}.vjs-track-settings-controls button:active,.vjs-track-settings-controls button:focus{background-image:linear-gradient(0deg,#fff 88%,#73859f);outline-style:solid;outline-width:medium}.vjs-track-settings-controls button:hover{color:rgba(43,51,63,.75)}.vjs-track-settings-controls button{background-color:#fff;background-image:linear-gradient(-180deg,#fff 88%,#73859f);border-radius:2px;color:#2b333f;cursor:pointer}.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{border:none;height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1000}.js-focus-visible .video-js :focus:not(.focus-visible){outline:none}.video-js :focus:not(:focus-visible){outline:none}',""]),r.locals={},t.exports=r},,function(t,e){t.exports=function(t){if(!t)return!1;var e=n.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var n=Object.prototype.toString},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e){return void 0===e&&(e=!1),function(n,o,l){if(n)t(n);else if(o.statusCode>=400&&o.statusCode<=599){var c=l;if(e)if(r.TextDecoder){var h=function(t){void 0===t&&(t="");return t.toLowerCase().split(";").reduce((function(t,e){var n=e.split("="),r=n[0],o=n[1];return"charset"===r.trim()?o.trim():t}),"utf-8")}(o.headers&&o.headers["content-type"]);try{c=new TextDecoder(h).decode(l)}catch(t){}}else c=String.fromCharCode.apply(null,new Uint8Array(l));t({cause:c})}else t(null,l)}}},function(t,e,n){var r=n(2),o=Object.create||function(){function t(){}return function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();function l(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function c(input){function t(t,e,s,n){return 3600*(0|t)+60*(0|e)+(0|s)+(0|n)/1e3}var e=input.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return e?e[3]?t(e[1],e[2],e[3].replace(":",""),e[4]):e[1]>59?t(e[1],e[2],0,e[4]):t(0,e[1],e[2],e[4]):null}function h(){this.values=o(null)}function d(input,t,e,n){var r=n?input.split(n):[input];for(var i in r)if("string"==typeof r[i]){var o=r[i].split(e);if(2===o.length)t(o[0].trim(),o[1].trim())}}function f(input,t,e){var n=input;function r(){var t=c(input);if(null===t)throw new l(l.Errors.BadTimeStamp,"Malformed timestamp: "+n);return input=input.replace(/^[^\sa-zA-Z-]+/,""),t}function o(){input=input.replace(/^\s+/,"")}if(o(),t.startTime=r(),o(),"--\x3e"!==input.substr(0,3))throw new l(l.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);input=input.substr(3),o(),t.endTime=r(),o(),function(input,t){var n=new h;d(input,(function(t,r){switch(t){case"region":for(var i=e.length-1;i>=0;i--)if(e[i].id===r){n.set(t,e[i].region);break}break;case"vertical":n.alt(t,r,["rl","lr"]);break;case"line":var o=r.split(","),l=o[0];n.integer(t,l),n.percent(t,l)&&n.set("snapToLines",!1),n.alt(t,l,["auto"]),2===o.length&&n.alt("lineAlign",o[1],["start","center","end"]);break;case"position":o=r.split(","),n.percent(t,o[0]),2===o.length&&n.alt("positionAlign",o[1],["start","center","end"]);break;case"size":n.percent(t,r);break;case"align":n.alt(t,r,["start","center","end","left","right"])}}),/:/,/\s/),t.region=n.get("region",null),t.vertical=n.get("vertical","");try{t.line=n.get("line","auto")}catch(t){}t.lineAlign=n.get("lineAlign","start"),t.snapToLines=n.get("snapToLines",!0),t.size=n.get("size",100);try{t.align=n.get("align","center")}catch(e){t.align=n.get("align","middle")}try{t.position=n.get("position","auto")}catch(e){t.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(input,t)}l.prototype=o(Error.prototype),l.prototype.constructor=l,l.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},h.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,a){for(var n=0;n<a.length;++n)if(e===a[n]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(e=parseFloat(e))>=0&&e<=100)&&(this.set(t,e),!0)}};var m=r.createElement&&r.createElement("textarea"),v={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},y={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)"},_={v:"title",lang:"lang"},w={rt:"ruby"};function T(t,input){function e(){if(!input)return null;var t,e=input.match(/^([^<]*)(<[^>]*>?)?/);return t=e[1]?e[1]:e[2],input=input.substr(t.length),t}function n(t,element){return!w[element.localName]||w[element.localName]===t.localName}function r(e,n){var r=v[e];if(!r)return null;var element=t.document.createElement(r),o=_[e];return o&&n&&(element[o]=n.trim()),element}for(var o,s,l=t.document.createElement("div"),h=l,d=[];null!==(o=e());)if("<"!==o[0])h.appendChild(t.document.createTextNode((s=o,m.innerHTML=s,s=m.textContent,m.textContent="",s)));else{if("/"===o[1]){d.length&&d[d.length-1]===o.substr(2).replace(">","")&&(d.pop(),h=h.parentNode);continue}var f,T=c(o.substr(1,o.length-2));if(T){f=t.document.createProcessingInstruction("timestamp",T),h.appendChild(f);continue}var x=o.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!x)continue;if(!(f=r(x[1],x[3])))continue;if(!n(h,f))continue;if(x[2]){var S=x[2].split(".");S.forEach((function(t){var e=/^bg_/.test(t),n=e?t.slice(3):t;if(y.hasOwnProperty(n)){var r=e?"background-color":"color",o=y[n];f.style[r]=o}})),f.className=S.join(" ")}d.push(x[1]),h.appendChild(f),h=f}return l}var x=[[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 S(t){for(var i=0;i<x.length;i++){var e=x[i];if(t>=e[0]&&t<=e[1])return!0}return!1}function E(t){var e=[],text="";if(!t||!t.childNodes)return"ltr";function n(t,e){for(var i=e.childNodes.length-1;i>=0;i--)t.push(e.childNodes[i])}function r(t){if(!t||!t.length)return null;var e=t.pop(),text=e.textContent||e.innerText;if(text){var o=text.match(/^.*(\n|\r)/);return o?(t.length=0,o[0]):text}return"ruby"===e.tagName?r(t):e.childNodes?(n(t,e),r(t)):void 0}for(n(e,t);text=r(e);)for(var i=0;i<text.length;i++)if(S(text.charCodeAt(i)))return"rtl";return"ltr"}function k(){}function A(t,e,n){k.call(this),this.cue=e,this.cueDiv=T(t,e.text);var r={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:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(r,this.cueDiv),this.div=t.document.createElement("div"),r={direction:E(this.cueDiv),writingMode:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===e.align?"center":e.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(r),this.div.appendChild(this.cueDiv);var o=0;switch(e.positionAlign){case"start":case"line-left":o=e.position;break;case"center":o=e.position-e.size/2;break;case"end":case"line-right":o=e.position-e.size}""===e.vertical?this.applyStyles({left:this.formatStyle(o,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(o,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function C(t){var e,n,r,o;if(t.div){n=t.div.offsetHeight,r=t.div.offsetWidth,o=t.div.offsetTop;var l=(l=t.div.childNodes)&&(l=l[0])&&l.getClientRects&&l.getClientRects();t=t.div.getBoundingClientRect(),e=l?Math.max(l[0]&&l[0].height||0,t.height/l.length):0}this.left=t.left,this.right=t.right,this.top=t.top||o,this.height=t.height||n,this.bottom=t.bottom||o+(t.height||n),this.width=t.width||r,this.lineHeight=void 0!==e?e:t.lineHeight}function O(t,e,n,r){var o=new C(e),l=e.cue,c=function(t){if("number"==typeof t.line&&(t.snapToLines||t.line>=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var track=t.track,e=track.textTrackList,n=0,i=0;i<e.length&&e[i]!==track;i++)"showing"===e[i].mode&&n++;return-1*++n}(l),h=[];if(l.snapToLines){var d;switch(l.vertical){case"":h=["+y","-y"],d="height";break;case"rl":h=["+x","-x"],d="width";break;case"lr":h=["-x","+x"],d="width"}var f=o.lineHeight,m=f*Math.round(c),v=n[d]+f,y=h[0];Math.abs(m)>v&&(m=m<0?-1:1,m*=Math.ceil(v/f)*f),c<0&&(m+=""===l.vertical?n.height:n.width,h=h.reverse()),o.move(y,m)}else{var _=o.lineHeight/n.height*100;switch(l.lineAlign){case"center":c-=_/2;break;case"end":c-=_}switch(l.vertical){case"":e.applyStyles({top:e.formatStyle(c,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(c,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(c,"%")})}h=["+y","-x","+x","-y"],o=new C(e)}var w=function(b,t){for(var e,o=new C(b),l=1,i=0;i<t.length;i++){for(;b.overlapsOppositeAxis(n,t[i])||b.within(n)&&b.overlapsAny(r);)b.move(t[i]);if(b.within(n))return b;var p=b.intersectPercentage(n);l>p&&(e=new C(b),l=p),b=new C(o)}return e||o}(o,h);e.move(w.toCSSCompatValues(n))}function j(){}k.prototype.applyStyles=function(t,div){for(var e in div=div||this.div,t)t.hasOwnProperty(e)&&(div.style[e]=t[e])},k.prototype.formatStyle=function(t,e){return 0===t?0:t+e},A.prototype=o(k.prototype),A.prototype.constructor=A,C.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},C.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top},C.prototype.overlapsAny=function(t){for(var i=0;i<t.length;i++)if(this.overlaps(t[i]))return!0;return!1},C.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},C.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left<t.left;case"-x":return this.right>t.right;case"+y":return this.top<t.top;case"-y":return this.bottom>t.bottom}},C.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},C.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},C.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,n=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,r=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||r,height:t.height||e,bottom:t.bottom||r+(t.height||e),width:t.width||n}},j.StringDecoder=function(){return{decode:function(data){if(!data)return"";if("string"!=typeof data)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(data))}}},j.convertCueToDOMTree=function(t,e){return t&&e?T(t,e):null};j.processCues=function(t,e,n){if(!t||!e||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var r=t.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",n.appendChild(r),function(t){for(var i=0;i<t.length;i++)if(t[i].hasBeenReset||!t[i].displayState)return!0;return!1}(e)){var o=[],l=C.getSimpleBoxPosition(r),c={font:Math.round(.05*l.height*100)/100+"px sans-serif"};!function(){for(var n,h,i=0;i<e.length;i++)h=e[i],n=new A(t,h,c),r.appendChild(n.div),O(0,n,l,o),h.displayState=n.div,o.push(C.getSimpleBoxPosition(n))}()}else for(var i=0;i<e.length;i++)r.appendChild(e[i].displayState)},j.Parser=function(t,e,n){n||(n=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},j.Parser.prototype={reportOrThrowError:function(t){if(!(t instanceof l))throw t;this.onparsingerror&&this.onparsingerror(t)},parse:function(data){var t=this;function e(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var line=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),line}function n(input){input.match(/X-TIMESTAMP-MAP/)?d(input,(function(e,n){if("X-TIMESTAMP-MAP"===e)!function(input){var e=new h;d(input,(function(t,n){switch(t){case"MPEGT":e.integer(t+"S",n);break;case"LOCA":e.set(t+"L",c(n))}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:e.get("MPEGTS"),LOCAL:e.get("LOCAL")})}(n)}),/=/):d(input,(function(e,n){if("Region"===e)!function(input){var e=new h;if(d(input,(function(t,n){switch(t){case"id":e.set(t,n);break;case"width":e.percent(t,n);break;case"lines":e.integer(t,n);break;case"regionanchor":case"viewportanchor":var r=n.split(",");if(2!==r.length)break;var o=new h;if(o.percent("x",r[0]),o.percent("y",r[1]),!o.has("x")||!o.has("y"))break;e.set(t+"X",o.get("x")),e.set(t+"Y",o.get("y"));break;case"scroll":e.alt(t,n,["up"])}}),/=/,/\s/),e.has("id")){var n=new(t.vttjs.VTTRegion||t.window.VTTRegion);n.width=e.get("width",100),n.lines=e.get("lines",3),n.regionAnchorX=e.get("regionanchorX",0),n.regionAnchorY=e.get("regionanchorY",100),n.viewportAnchorX=e.get("viewportanchorX",0),n.viewportAnchorY=e.get("viewportanchorY",100),n.scroll=e.get("scroll",""),t.onregion&&t.onregion(n),t.regionList.push({id:e.get("id"),region:n})}}(n)}),/:/)}data&&(t.buffer+=t.decoder.decode(data,{stream:!0}));try{var line;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var r=(line=e()).match(/^WEBVTT([ \t].*)?$/);if(!r||!r[0])throw new l(l.Errors.BadSignature);t.state="HEADER"}for(var o=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(o?o=!1:line=e(),t.state){case"HEADER":/:/.test(line)?n(line):line||(t.state="ID");continue;case"NOTE":line||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(line)){t.state="NOTE";break}if(!line)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(e){t.cue.align="middle"}if(t.state="CUE",-1===line.indexOf("--\x3e")){t.cue.id=line;continue}case"CUE":try{f(line,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var m=-1!==line.indexOf("--\x3e");if(!line||m&&(o=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=line.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":line||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"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(){var t=this;try{if(t.buffer+=t.decoder.decode(),(t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new l(l.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}},t.exports=j},function(t,e){var n={"":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 o(t){return"string"==typeof t&&(!!r[t.toLowerCase()]&&t.toLowerCase())}function l(t,e,text){this.hasBeenReset=!1;var r="",l=!1,c=t,h=e,d=text,f=null,m="",v=!0,y="auto",_="start",w="auto",T="auto",x=100,S="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return r},set:function(t){r=""+t}},pauseOnExit:{enumerable:!0,get:function(){return l},set:function(t){l=!!t}},startTime:{enumerable:!0,get:function(){return c},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");c=t,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return h},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");h=t,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return d},set:function(t){d=""+t,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return f},set:function(t){f=t,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return m},set:function(t){var e=function(t){return"string"==typeof t&&!!n[t.toLowerCase()]&&t.toLowerCase()}(t);if(!1===e)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");m=e,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return v},set:function(t){v=!!t,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return y},set:function(t){if("number"!=typeof t&&"auto"!==t)throw new SyntaxError("Line: an invalid number or illegal string was specified.");y=t,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return _},set:function(t){var e=o(t);e?(_=e,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return w},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");w=t,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return T},set:function(t){var e=o(t);e?(T=e,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return x},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");x=t,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return S},set:function(t){var e=o(t);if(!e)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");S=e,this.hasBeenReset=!0}}}),this.displayState=void 0}l.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=l},function(t,e){var n={"":!0,up:!0};function r(t){return"number"==typeof t&&t>=0&&t<=100}t.exports=function(){var t=100,e=3,o=0,l=100,c=0,h=100,d="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!r(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return l},set:function(t){if(!r(t))throw new Error("RegionAnchorX must be between 0 and 100.");l=t}},regionAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!r(t))throw new Error("RegionAnchorY must be between 0 and 100.");o=t}},viewportAnchorY:{enumerable:!0,get:function(){return h},set:function(t){if(!r(t))throw new Error("ViewportAnchorY must be between 0 and 100.");h=t}},viewportAnchorX:{enumerable:!0,get:function(){return c},set:function(t){if(!r(t))throw new Error("ViewportAnchorX must be between 0 and 100.");c=t}},scroll:{enumerable:!0,get:function(){return d},set:function(t){var e=function(t){return"string"==typeof t&&!!n[t.toLowerCase()]&&t.toLowerCase()}(t);!1===e?console.warn("Scroll: an invalid or illegal string was specified."):d=e}}})}},,function(t,e,n){"use strict";(function(t){var r=n(682),o=n(683),l=n(684);function c(){return d.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function h(t,e){if(c()<e)throw new RangeError("Invalid typed array length");return d.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=d.prototype:(null===t&&(t=new d(e)),t.length=e),t}function d(t,e,n){if(!(d.TYPED_ARRAY_SUPPORT||this instanceof d))return new d(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return v(this,t)}return f(this,t,e,n)}function f(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);d.TYPED_ARRAY_SUPPORT?(t=e).__proto__=d.prototype:t=y(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!d.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|w(e,n);t=h(t,r);var o=t.write(e,n);o!==r&&(t=t.slice(0,o));return t}(t,e,n):function(t,e){if(d.isBuffer(e)){var n=0|_(e.length);return 0===(t=h(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?h(t,0):y(t,e);if("Buffer"===e.type&&l(e.data))return y(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function m(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function v(t,e){if(m(e),t=h(t,e<0?0:0|_(e)),!d.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function y(t,e){var n=e.length<0?0:0|_(e.length);t=h(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function _(t){if(t>=c())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c().toString(16)+" bytes");return 0|t}function w(t,e){if(d.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(t).length;default:if(r)return K(t).length;e=(""+e).toLowerCase(),r=!0}}function T(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,n);case"utf8":case"utf-8":return D(this,e,n);case"ascii":return M(this,e,n);case"latin1":case"binary":return N(this,e,n);case"base64":return L(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function x(b,t,e){var i=b[t];b[t]=b[e],b[e]=i}function S(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=d.from(e,r)),d.isBuffer(e))return 0===e.length?-1:E(t,e,n,r,o);if("number"==typeof e)return e&=255,d.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):E(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function E(t,e,n,r,o){var i,l=1,c=t.length,h=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;l=2,c/=2,h/=2,n/=2}function d(t,i){return 1===l?t[i]:t.readUInt16BE(i*l)}if(o){var f=-1;for(i=n;i<c;i++)if(d(t,i)===d(e,-1===f?0:i-f)){if(-1===f&&(f=i),i-f+1===h)return f*l}else-1!==f&&(i-=i-f),f=-1}else for(n+h>c&&(n=c-h),i=n;i>=0;i--){for(var m=!0,v=0;v<h;v++)if(d(t,i+v)!==d(e,v)){m=!1;break}if(m)return i}return-1}function k(t,e,n,r){n=Number(n)||0;var o=t.length-n;r?(r=Number(r))>o&&(r=o):r=o;var l=e.length;if(l%2!=0)throw new TypeError("Invalid hex string");r>l/2&&(r=l/2);for(var i=0;i<r;++i){var c=parseInt(e.substr(2*i,2),16);if(isNaN(c))return i;t[n+i]=c}return i}function A(t,e,n,r){return Q(K(e,t.length-n),t,n,r)}function C(t,e,n,r){return Q(function(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}(e),t,n,r)}function O(t,e,n,r){return C(t,e,n,r)}function j(t,e,n,r){return Q($(e),t,n,r)}function I(t,e,n,r){return Q(function(t,e){for(var n,r,o,l=[],i=0;i<t.length&&!((e-=2)<0);++i)r=(n=t.charCodeAt(i))>>8,o=n%256,l.push(o),l.push(r);return l}(e,t.length-n),t,n,r)}function L(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function D(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,l,c,h,d=t[i],f=null,m=d>239?4:d>223?3:d>191?2:1;if(i+m<=n)switch(m){case 1:d<128&&(f=d);break;case 2:128==(192&(o=t[i+1]))&&(h=(31&d)<<6|63&o)>127&&(f=h);break;case 3:o=t[i+1],l=t[i+2],128==(192&o)&&128==(192&l)&&(h=(15&d)<<12|(63&o)<<6|63&l)>2047&&(h<55296||h>57343)&&(f=h);break;case 4:o=t[i+1],l=t[i+2],c=t[i+3],128==(192&o)&&128==(192&l)&&128==(192&c)&&(h=(15&d)<<18|(63&o)<<12|(63&l)<<6|63&c)>65535&&h<1114112&&(f=h)}null===f?(f=65533,m=1):f>65535&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),i+=m}return function(t){var e=t.length;if(e<=P)return String.fromCharCode.apply(String,t);var n="",i=0;for(;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=P));return n}(r)}e.Buffer=d,e.SlowBuffer=function(t){+t!=t&&(t=0);return d.alloc(+t)},e.INSPECT_MAX_BYTES=50,d.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=c(),d.poolSize=8192,d._augment=function(t){return t.__proto__=d.prototype,t},d.from=function(t,e,n){return f(null,t,e,n)},d.TYPED_ARRAY_SUPPORT&&(d.prototype.__proto__=Uint8Array.prototype,d.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&d[Symbol.species]===d&&Object.defineProperty(d,Symbol.species,{value:null,configurable:!0})),d.alloc=function(t,e,n){return function(t,e,n,r){return m(e),e<=0?h(t,e):void 0!==n?"string"==typeof r?h(t,e).fill(n,r):h(t,e).fill(n):h(t,e)}(null,t,e,n)},d.allocUnsafe=function(t){return v(null,t)},d.allocUnsafeSlow=function(t){return v(null,t)},d.isBuffer=function(b){return!(null==b||!b._isBuffer)},d.compare=function(a,b){if(!d.isBuffer(a)||!d.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var t=a.length,e=b.length,i=0,n=Math.min(t,e);i<n;++i)if(a[i]!==b[i]){t=a[i],e=b[i];break}return t<e?-1:e<t?1:0},d.isEncoding=function(t){switch(String(t).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}},d.concat=function(t,e){if(!l(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return d.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var n=d.allocUnsafe(e),r=0;for(i=0;i<t.length;++i){var o=t[i];if(!d.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,r),r+=o.length}return n},d.byteLength=w,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<t;i+=2)x(this,i,i+1);return this},d.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<t;i+=4)x(this,i,i+3),x(this,i+1,i+2);return this},d.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<t;i+=8)x(this,i,i+7),x(this,i+1,i+6),x(this,i+2,i+5),x(this,i+3,i+4);return this},d.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?D(this,0,t):T.apply(this,arguments)},d.prototype.equals=function(b){if(!d.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||0===d.compare(this,b)},d.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},d.prototype.compare=function(t,e,n,r,o){if(!d.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;for(var l=(o>>>=0)-(r>>>=0),c=(n>>>=0)-(e>>>=0),h=Math.min(l,c),f=this.slice(r,o),m=t.slice(e,n),i=0;i<h;++i)if(f[i]!==m[i]){l=f[i],c=m[i];break}return l<c?-1:c<l?1:0},d.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},d.prototype.indexOf=function(t,e,n){return S(this,t,e,n,!0)},d.prototype.lastIndexOf=function(t,e,n){return S(this,t,e,n,!1)},d.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var l=!1;;)switch(r){case"hex":return k(this,t,e,n);case"utf8":case"utf-8":return A(this,t,e,n);case"ascii":return C(this,t,e,n);case"latin1":case"binary":return O(this,t,e,n);case"base64":return j(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,e,n);default:if(l)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),l=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function M(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function N(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function R(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=e;i<n;++i)o+=X(t[i]);return o}function U(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function B(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,n,r,o,l){if(!d.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<l)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function z(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function H(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function V(t,e,n,r,o,l){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function W(t,e,n,r,l){return l||V(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function Y(t,e,n,r,l){return l||V(t,0,n,8),o.write(t,e,n,r,52,8),n+8}d.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),d.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=d.prototype;else{var o=e-t;n=new d(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+t]}return n},d.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||B(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r},d.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||B(t,e,this.length);for(var r=this[t+--e],o=1;e>0&&(o*=256);)r+=this[t+--e]*o;return r},d.prototype.readUInt8=function(t,e){return e||B(t,1,this.length),this[t]},d.prototype.readUInt16LE=function(t,e){return e||B(t,2,this.length),this[t]|this[t+1]<<8},d.prototype.readUInt16BE=function(t,e){return e||B(t,2,this.length),this[t]<<8|this[t+1]},d.prototype.readUInt32LE=function(t,e){return e||B(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},d.prototype.readUInt32BE=function(t,e){return e||B(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},d.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||B(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*e)),r},d.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||B(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},d.prototype.readInt8=function(t,e){return e||B(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},d.prototype.readInt16LE=function(t,e){e||B(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt16BE=function(t,e){e||B(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt32LE=function(t,e){return e||B(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},d.prototype.readInt32BE=function(t,e){return e||B(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},d.prototype.readFloatLE=function(t,e){return e||B(t,4,this.length),o.read(this,t,!0,23,4)},d.prototype.readFloatBE=function(t,e){return e||B(t,4,this.length),o.read(this,t,!1,23,4)},d.prototype.readDoubleLE=function(t,e){return e||B(t,8,this.length),o.read(this,t,!0,52,8)},d.prototype.readDoubleBE=function(t,e){return e||B(t,8,this.length),o.read(this,t,!1,52,8)},d.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||F(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[e]=255&t;++i<n&&(o*=256);)this[e+i]=t/o&255;return e+n},d.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||F(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},d.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,1,255,0),d.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},d.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):z(this,t,e,!0),e+2},d.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):z(this,t,e,!1),e+2},d.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):H(this,t,e,!0),e+4},d.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},d.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);F(this,t,e,n,o-1,-o)}var i=0,l=1,sub=0;for(this[e]=255&t;++i<n&&(l*=256);)t<0&&0===sub&&0!==this[e+i-1]&&(sub=1),this[e+i]=(t/l|0)-sub&255;return e+n},d.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);F(this,t,e,n,o-1,-o)}var i=n-1,l=1,sub=0;for(this[e+i]=255&t;--i>=0&&(l*=256);)t<0&&0===sub&&0!==this[e+i+1]&&(sub=1),this[e+i]=(t/l|0)-sub&255;return e+n},d.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,1,127,-128),d.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},d.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):z(this,t,e,!0),e+2},d.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):z(this,t,e,!1),e+2},d.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,2147483647,-2147483648),d.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):H(this,t,e,!0),e+4},d.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),d.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},d.prototype.writeFloatLE=function(t,e,n){return W(this,t,e,!0,n)},d.prototype.writeFloatBE=function(t,e,n){return W(this,t,e,!1,n)},d.prototype.writeDoubleLE=function(t,e,n){return Y(this,t,e,!0,n)},d.prototype.writeDoubleBE=function(t,e,n){return Y(this,t,e,!1,n)},d.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!d.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},d.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var code=t.charCodeAt(0);code<256&&(t=code)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!d.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{var o=d.isBuffer(t)?t:K(new d(t,r).toString()),l=o.length;for(i=0;i<n-e;++i)this[i+e]=o[i%l]}return this};var G=/[^+\/0-9A-Za-z-_]/g;function X(t){return t<16?"0"+t.toString(16):t.toString(16)}function K(t,e){var n;e=e||1/0;for(var r=t.length,o=null,l=[],i=0;i<r;++i){if((n=t.charCodeAt(i))>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&l.push(239,191,189);continue}if(i+1===r){(e-=3)>-1&&l.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&l.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&l.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;l.push(n)}else if(n<2048){if((e-=2)<0)break;l.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;l.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;l.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return l}function $(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(G,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Q(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(45))},function(t,e,n){"use strict";e.byteLength=function(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,i,n=c(t),r=n[0],h=n[1],d=new l(function(t,e,n){return 3*(e+n)/4-n}(0,r,h)),f=0,m=h>0?r-4:r;for(i=0;i<m;i+=4)e=o[t.charCodeAt(i)]<<18|o[t.charCodeAt(i+1)]<<12|o[t.charCodeAt(i+2)]<<6|o[t.charCodeAt(i+3)],d[f++]=e>>16&255,d[f++]=e>>8&255,d[f++]=255&e;2===h&&(e=o[t.charCodeAt(i)]<<2|o[t.charCodeAt(i+1)]>>4,d[f++]=255&e);1===h&&(e=o[t.charCodeAt(i)]<<10|o[t.charCodeAt(i+1)]<<4|o[t.charCodeAt(i+2)]>>2,d[f++]=e>>8&255,d[f++]=255&e);return d},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,l=[],c=16383,i=0,d=n-o;i<d;i+=c)l.push(h(t,i,i+c>d?d:i+c));1===o?(e=t[n-1],l.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],l.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return l.join("")};for(var r=[],o=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)r[i]=code[i],o[code.charCodeAt(i)]=i;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function h(t,e,n){for(var o,l,output=[],i=e;i<n;i+=3)o=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),output.push(r[(l=o)>>18&63]+r[l>>12&63]+r[l>>6&63]+r[63&l]);return output.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,o){var l,c,h=8*o-r-1,d=(1<<h)-1,f=d>>1,m=-7,i=n?o-1:0,v=n?-1:1,s=t[e+i];for(i+=v,l=s&(1<<-m)-1,s>>=-m,m+=h;m>0;l=256*l+t[e+i],i+=v,m-=8);for(c=l&(1<<-m)-1,l>>=-m,m+=r;m>0;c=256*c+t[e+i],i+=v,m-=8);if(0===l)l=1-f;else{if(l===d)return c?NaN:1/0*(s?-1:1);c+=Math.pow(2,r),l-=f}return(s?-1:1)*c*Math.pow(2,l-r)},e.write=function(t,e,n,r,o,l){var c,h,d,f=8*l-o-1,m=(1<<f)-1,v=m>>1,rt=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,i=r?0:l-1,y=r?1:-1,s=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(h=isNaN(e)?1:0,c=m):(c=Math.floor(Math.log(e)/Math.LN2),e*(d=Math.pow(2,-c))<1&&(c--,d*=2),(e+=c+v>=1?rt/d:rt*Math.pow(2,1-v))*d>=2&&(c++,d/=2),c+v>=m?(h=0,c=m):c+v>=1?(h=(e*d-1)*Math.pow(2,o),c+=v):(h=e*Math.pow(2,v-1)*Math.pow(2,o),c=0));o>=8;t[n+i]=255&h,i+=y,h/=256,o-=8);for(c=c<<o|h,f+=o;f>0;t[n+i]=255&c,i+=y,c/=256,f-=8);t[n+i-y]|=128*s}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){var r=n(163),o=n(365),l=n(686),c=n(687),h=o.DOMImplementation,d=r.NAMESPACE,f=c.ParseError,m=c.XMLReader;function v(input){return input.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function y(t){this.options=t||{locator:{}}}function _(){this.cdata=!1}function w(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}function T(t){if(t)return"\n@"+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function x(t,e,n){return"string"==typeof t?t.substr(e,n):t.length>=e+n||e?new java.lang.String(t,e,n)+"":t}function S(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}y.prototype.parseFromString=function(source,t){var e=this.options,n=new m,r=e.domBuilder||new _,o=e.errorHandler,c=e.locator,h=e.xmlns||{},f=/\/x?html?$/.test(t),y=f?l.HTML_ENTITIES:l.XML_ENTITIES;c&&r.setDocumentLocator(c),n.errorHandler=function(t,e,n){if(!t){if(e instanceof _)return e;t=e}var r={},o=t instanceof Function;function l(e){var l=t[e];!l&&o&&(l=2==t.length?function(n){t(e,n)}:t),r[e]=l&&function(t){l("[xmldom "+e+"]\t"+t+T(n))}||function(){}}return n=n||{},l("warning"),l("error"),l("fatalError"),r}(o,r,c),n.domBuilder=e.domBuilder||r,f&&(h[""]=d.HTML),h.xml=h.xml||d.XML;var w=e.normalizeLineEndings||v;return source&&"string"==typeof source?n.parse(w(source),h,y):n.errorHandler.error("invalid doc source"),r.doc},_.prototype={startDocument:function(){this.doc=(new h).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,n,r){var o=this.doc,l=o.createElementNS(t,n||e),c=r.length;S(this,l),this.currentElement=l,this.locator&&w(this.locator,l);for(var i=0;i<c;i++){t=r.getURI(i);var h=r.getValue(i),d=(n=r.getQName(i),o.createAttributeNS(t,n));this.locator&&w(r.getLocator(i),d),d.value=d.nodeValue=h,l.setAttributeNode(d)}},endElement:function(t,e,n){var r=this.currentElement;r.tagName;this.currentElement=r.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,data){var ins=this.doc.createProcessingInstruction(t,data);this.locator&&w(this.locator,ins),S(this,ins)},ignorableWhitespace:function(t,e,n){},characters:function(t,e,n){if(t=x.apply(this,arguments)){if(this.cdata)var r=this.doc.createCDATASection(t);else r=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(t)&&this.doc.appendChild(r),this.locator&&w(this.locator,r)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,n){t=x.apply(this,arguments);var r=this.doc.createComment(t);this.locator&&w(this.locator,r),S(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var dt=r.createDocumentType(t,e,n);this.locator&&w(this.locator,dt),S(this,dt),this.doc.doctype=dt}},warning:function(t){console.warn("[xmldom warning]\t"+t,T(this.locator))},error:function(t){console.error("[xmldom error]\t"+t,T(this.locator))},fatalError:function(t){throw new f(t,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(t){_.prototype[t]=function(){return null}})),e.__DOMHandler=_,e.normalizeLineEndings=v,e.DOMParser=y},function(t,e,n){"use strict";var r=n(163).freeze;e.XML_ENTITIES=r({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=r({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),e.entityMap=e.HTML_ENTITIES},function(t,e,n){var r=n(163).NAMESPACE,o=/[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]/,l=new RegExp("[\\-\\.0-9"+o.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),c=new RegExp("^"+o.source+l.source+"*(?::"+o.source+l.source+"*)?$"),h=0,d=1,f=2,m=3,v=4,y=5,_=6,w=7;function T(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,T)}function x(){}function S(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function E(source,t,e,n,o,l){function c(t,n,r){e.attributeNames.hasOwnProperty(t)&&l.fatalError("Attribute "+t+" redefined"),e.addValue(t,n.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,o),r)}for(var T,p=++t,s=h;;){var x=source.charAt(p);switch(x){case"=":if(s===d)T=source.slice(t,p),s=m;else{if(s!==f)throw new Error("attribute equal must after attrName");s=m}break;case"'":case'"':if(s===m||s===d){if(s===d&&(l.warning('attribute value must after "="'),T=source.slice(t,p)),t=p+1,!((p=source.indexOf(x,t))>0))throw new Error("attribute value no end '"+x+"' match");c(T,S=source.slice(t,p),t-1),s=y}else{if(s!=v)throw new Error('attribute value must after "="');c(T,S=source.slice(t,p),t),l.warning('attribute "'+T+'" missed start quot('+x+")!!"),t=p+1,s=y}break;case"/":switch(s){case h:e.setTagName(source.slice(t,p));case y:case _:case w:s=w,e.closed=!0;case v:case d:break;case f:e.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return l.error("unexpected end of input"),s==h&&e.setTagName(source.slice(t,p)),p;case">":switch(s){case h:e.setTagName(source.slice(t,p));case y:case _:case w:break;case v:case d:"/"===(S=source.slice(t,p)).slice(-1)&&(e.closed=!0,S=S.slice(0,-1));case f:s===f&&(S=T),s==v?(l.warning('attribute "'+S+'" missed quot(")!'),c(T,S,t)):(r.isHTML(n[""])&&S.match(/^(?:disabled|checked|selected)$/i)||l.warning('attribute "'+S+'" missed value!! "'+S+'" instead!!'),c(S,S,t));break;case m:throw new Error("attribute value missed!!")}return p;case"":x=" ";default:if(x<=" ")switch(s){case h:e.setTagName(source.slice(t,p)),s=_;break;case d:T=source.slice(t,p),s=f;break;case v:var S=source.slice(t,p);l.warning('attribute "'+S+'" missed quot(")!!'),c(T,S,t);case y:s=_}else switch(s){case f:e.tagName;r.isHTML(n[""])&&T.match(/^(?:disabled|checked|selected)$/i)||l.warning('attribute "'+T+'" missed value!! "'+T+'" instead2!!'),c(T,T,t),t=p,s=d;break;case y:l.warning('attribute space is required"'+T+'"!!');case _:s=d,t=p;break;case m:s=v,t=p;break;case w:throw new Error("elements closed character '/' and '>' must be connected to")}}p++}}function k(t,e,n){for(var o=t.tagName,l=null,i=t.length;i--;){var a=t[i],c=a.qName,h=a.value;if((v=c.indexOf(":"))>0)var d=a.prefix=c.slice(0,v),f=c.slice(v+1),m="xmlns"===d&&f;else f=c,d=null,m="xmlns"===c&&"";a.localName=f,!1!==m&&(null==l&&(l={},O(n,n={})),n[m]=l[m]=h,a.uri=r.XMLNS,e.startPrefixMapping(m,h))}for(i=t.length;i--;){(d=(a=t[i]).prefix)&&("xml"===d&&(a.uri=r.XML),"xmlns"!==d&&(a.uri=n[d||""]))}var v;(v=o.indexOf(":"))>0?(d=t.prefix=o.slice(0,v),f=t.localName=o.slice(v+1)):(d=null,f=t.localName=o);var y=t.uri=n[d||""];if(e.startElement(y,f,o,t),!t.closed)return t.currentNSMap=n,t.localNSMap=l,!0;if(e.endElement(y,f,o),l)for(d in l)Object.prototype.hasOwnProperty.call(l,d)&&e.endPrefixMapping(d)}function A(source,t,e,n,r){if(/^(?:script|textarea)$/i.test(e)){var o=source.indexOf("</"+e+">",t),text=source.substring(t+1,o);if(/[&<]/.test(text))return/^script$/i.test(e)?(r.characters(text,0,text.length),o):(text=text.replace(/&#?\w+;/g,n),r.characters(text,0,text.length),o)}return t+1}function C(source,t,e,n){var r=n[e];return null==r&&((r=source.lastIndexOf("</"+e+">"))<t&&(r=source.lastIndexOf("</"+e)),n[e]=r),r<t}function O(source,t){for(var e in source)Object.prototype.hasOwnProperty.call(source,e)&&(t[e]=source[e])}function j(source,t,e,n){if("-"===source.charAt(t+2))return"-"===source.charAt(t+3)?(r=source.indexOf("--\x3e",t+4))>t?(e.comment(source,t+4,r-t-4),r+3):(n.error("Unclosed comment"),-1):-1;if("CDATA["==source.substr(t+3,6)){var r=source.indexOf("]]>",t+9);return e.startCDATA(),e.characters(source,t+9,r-t-9),e.endCDATA(),r+3}var o=function(source,t){var e,n=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;r.lastIndex=t,r.exec(source);for(;e=r.exec(source);)if(n.push(e),e[1])return n}(source,t),l=o.length;if(l>1&&/!doctype/i.test(o[0][0])){var c=o[1][0],h=!1,d=!1;l>3&&(/^public$/i.test(o[2][0])?(h=o[3][0],d=l>4&&o[4][0]):/^system$/i.test(o[2][0])&&(d=o[3][0]));var f=o[l-1];return e.startDTD(c,h,d),e.endDTD(),f.index+f[0].length}return-1}function I(source,t,e){var n=source.indexOf("?>",t);if(n){var r=source.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(r){r[0].length;return e.processingInstruction(r[1],r[2]),n+2}return-1}return-1}function L(){this.attributeNames={}}T.prototype=new Error,T.prototype.name=T.name,x.prototype={parse:function(source,t,e){var n=this.domBuilder;n.startDocument(),O(t,t={}),function(source,t,e,n,o){function l(code){if(code>65535){var t=55296+((code-=65536)>>10),e=56320+(1023&code);return String.fromCharCode(t,e)}return String.fromCharCode(code)}function c(a){var t=a.slice(1,-1);return Object.hasOwnProperty.call(e,t)?e[t]:"#"===t.charAt(0)?l(parseInt(t.substr(1).replace("x","0x"))):(o.error("entity not found:"+a),a)}function h(t){if(t>x){var e=source.substring(x,t).replace(/&#?\w+;/g,c);y&&d(x),n.characters(e,0,t-x),x=t}}function d(p,t){for(;p>=m&&(t=v.exec(source));)f=t.index,m=f+t[0].length,y.lineNumber++;y.columnNumber=p-f+1}var f=0,m=0,v=/.*(?:\r\n?|\n)|.*$/g,y=n.locator,_=[{currentNSMap:t}],w={},x=0;for(;;){try{var O=source.indexOf("<",x);if(O<0){if(!source.substr(x).match(/^\s*$/)){var D=n.doc,text=D.createTextNode(source.substr(x));D.appendChild(text),n.currentElement=text}return}switch(O>x&&h(O),source.charAt(O+1)){case"/":var P=source.indexOf(">",O+3),M=source.substring(O+2,P).replace(/[ \t\n\r]+$/g,""),N=_.pop();P<0?(M=source.substring(O+2).replace(/[\s<].*/,""),o.error("end tag name: "+M+" is not complete:"+N.tagName),P=O+1+M.length):M.match(/\s</)&&(M=M.replace(/[\s<].*/,""),o.error("end tag name: "+M+" maybe not complete"),P=O+1+M.length);var R=N.localNSMap,U=N.tagName==M;if(U||N.tagName&&N.tagName.toLowerCase()==M.toLowerCase()){if(n.endElement(N.uri,N.localName,M),R)for(var B in R)Object.prototype.hasOwnProperty.call(R,B)&&n.endPrefixMapping(B);U||o.fatalError("end tag name: "+M+" is not match the current start tagName:"+N.tagName)}else _.push(N);P++;break;case"?":y&&d(O),P=I(source,O,n);break;case"!":y&&d(O),P=j(source,O,n,o);break;default:y&&d(O);var F=new L,z=_[_.length-1].currentNSMap,H=(P=E(source,O,F,z,c,o),F.length);if(!F.closed&&C(source,P,F.tagName,w)&&(F.closed=!0,e.nbsp||o.warning("unclosed xml attribute")),y&&H){for(var V=S(y,{}),i=0;i<H;i++){var a=F[i];d(a.offset),a.locator=S(y,{})}n.locator=V,k(F,n,z)&&_.push(F),n.locator=y}else k(F,n,z)&&_.push(F);r.isHTML(F.uri)&&!F.closed?P=A(source,P,F.tagName,c,n):P++}}catch(t){if(t instanceof T)throw t;o.error("element parse error: "+t),P=-1}P>x?x=P:h(Math.max(O,x)+1)}}(source,t,e,n,this.errorHandler),n.endDocument()}},L.prototype={setTagName:function(t){if(!c.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,n){if(!c.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:n}},length:0,getLocalName:function(i){return this[i].localName},getLocator:function(i){return this[i].locator},getQName:function(i){return this[i].qName},getURI:function(i){return this[i].uri},getValue:function(i){return this[i].value}},e.XMLReader=x,e.ParseError=T},function(t,e){var n=Math.pow(2,32);t.exports={getUint64:function(t){var e,r=new DataView(t.buffer,t.byteOffset,t.byteLength);return r.getBigUint64?(e=r.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(e):e:r.getUint32(0)*n+r.getUint32(4)},MAX_UINT32:n}},,,function(t,e,n){"use strict";n.r(e),n.d(e,"Draggable",(function(){return re})),n.d(e,"default",(function(){return re}));var r,o,l,c,h,d,f,m,v,y="transform",_=y+"Origin",w=function(element){var t=element.ownerDocument||element;!(y in element.style)&&"msTransform"in element.style&&(_=(y="msTransform")+"Origin");for(;t.parentNode&&(t=t.parentNode););if(o=window,f=new O,t){r=t,l=t.documentElement,c=t.body,(m=r.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var e=t.createElement("div"),n=t.createElement("div"),h=t&&(t.body||t.firstElementChild);h&&h.appendChild&&(h.appendChild(e),e.appendChild(n),e.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),v=n.offsetParent!==e,h.removeChild(e))}return t},T=[],x=[],S=function(element){return element.ownerSVGElement||("svg"===(element.tagName+"").toLowerCase()?element:null)},E=function t(element){return"fixed"===o.getComputedStyle(element).position||((element=element.parentNode)&&1===element.nodeType?t(element):void 0)},k=function t(element,i){if(element.parentNode&&(r||w(element))){var svg=S(element),e=svg?svg.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",n=svg?i?"rect":"g":"div",o=2!==i?0:100,l=3===i?100:0,c="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",f=r.createElementNS?r.createElementNS(e.replace(/^https/,"http"),n):r.createElement(n);return i&&(svg?(d||(d=t(element)),f.setAttribute("width",.01),f.setAttribute("height",.01),f.setAttribute("transform","translate("+o+","+l+")"),d.appendChild(f)):(h||((h=t(element)).style.cssText=c),f.style.cssText=c+"width:0.1px;height:0.1px;top:"+l+"px;left:"+o+"px",h.appendChild(f))),f}throw"Need document and parent."},A=function(element,t){var e,n,b,r,l,c,svg=S(element),w=element===svg,E=svg?T:x,A=element.parentNode;if(element===o)return element;if(E.length||E.push(k(element,1),k(element,2),k(element,3)),e=svg?d:h,svg)w?(b=function(svg){var t,e=svg.getCTM();return e||(t=svg.style[y],svg.style[y]="none",svg.appendChild(m),e=m.getCTM(),svg.removeChild(m),t?svg.style[y]=t:svg.style.removeProperty(y.replace(/([A-Z])/g,"-$1").toLowerCase())),e||f.clone()}(element),r=-b.e/b.a,l=-b.f/b.d,n=f):element.getBBox?(b=element.getBBox(),r=(n=(n=element.transform?element.transform.baseVal:{}).numberOfItems?n.numberOfItems>1?function(t){for(var e=new O,i=0;i<t.numberOfItems;i++)e.multiply(t.getItem(i).matrix);return e}(n):n.getItem(0).matrix:f).a*b.x+n.c*b.y,l=n.b*b.x+n.d*b.y):(n=new O,r=l=0),t&&"g"===element.tagName.toLowerCase()&&(r=l=0),(w?svg:A).appendChild(e),e.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+r)+","+(n.f+l)+")");else{if(r=l=0,v)for(n=element.offsetParent,b=element;b&&(b=b.parentNode)&&b!==n&&b.parentNode;)(o.getComputedStyle(b)[y]+"").length>4&&(r=b.offsetLeft,l=b.offsetTop,b=0);if("absolute"!==(c=o.getComputedStyle(element)).position&&"fixed"!==c.position)for(n=element.offsetParent;A&&A!==n;)r+=A.scrollLeft||0,l+=A.scrollTop||0,A=A.parentNode;(b=e.style).top=element.offsetTop-l+"px",b.left=element.offsetLeft-r+"px",b[y]=c[y],b[_]=c[_],b.position="fixed"===c.position?"fixed":"absolute",element.parentNode.appendChild(e)}return e},C=function(t,a,b,e,n,r,o){return t.a=a,t.b=b,t.c=e,t.d=n,t.e=r,t.f=o,t},O=function(){function t(a,b,t,e,n,r){void 0===a&&(a=1),void 0===b&&(b=0),void 0===t&&(t=0),void 0===e&&(e=1),void 0===n&&(n=0),void 0===r&&(r=0),C(this,a,b,t,e,n,r)}var e=t.prototype;return e.inverse=function(){var a=this.a,b=this.b,t=this.c,e=this.d,n=this.e,r=this.f,o=a*e-b*t||1e-10;return C(this,e/o,-b/o,-t/o,a/o,(t*r-e*n)/o,-(a*r-b*n)/o)},e.multiply=function(t){var a=this.a,b=this.b,e=this.c,n=this.d,r=this.e,o=this.f,l=t.a,c=t.c,h=t.b,d=t.d,f=t.e,m=t.f;return C(this,l*a+h*e,l*b+h*n,c*a+d*e,c*b+d*n,r+f*a+m*e,o+f*b+m*n)},e.clone=function(){return new t(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function(t){var a=this.a,b=this.b,e=this.c,n=this.d,r=this.e,o=this.f;return a===t.a&&b===t.b&&e===t.c&&n===t.d&&r===t.e&&o===t.f},e.apply=function(t,e){void 0===e&&(e={});var n=t.x,r=t.y,a=this.a,b=this.b,o=this.c,l=this.d,c=this.e,h=this.f;return e.x=n*a+r*o+c||0,e.y=n*b+r*l+h||0,e},t}();function j(element,t,e,n){if(!element||!element.parentNode||(r||w(element)).documentElement===element)return new O;var h=function(t){for(var a,e;t&&t!==c;)(e=t._gsap)&&e.uncache&&e.get(t,"x"),e&&!e.scaleX&&!e.scaleY&&e.renderTransform&&(e.scaleX=e.scaleY=1e-4,e.renderTransform(1,e),a?a.push(e):a=[e]),t=t.parentNode;return a}(element),d=S(element)?T:x,f=A(element,e),m=d[0].getBoundingClientRect(),v=d[1].getBoundingClientRect(),y=d[2].getBoundingClientRect(),_=f.parentNode,k=!n&&E(element),C=new O((v.left-m.left)/100,(v.top-m.top)/100,(y.left-m.left)/100,(y.top-m.top)/100,m.left+(k?0:o.pageXOffset||r.scrollLeft||l.scrollLeft||c.scrollLeft||0),m.top+(k?0:o.pageYOffset||r.scrollTop||l.scrollTop||c.scrollTop||0));if(_.removeChild(f),h)for(m=h.length;m--;)(v=h[m]).scaleX=v.scaleY=0,v.renderTransform(1,v);return t?C.inverse():C}function I(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var L,D,P,M,N,R,U,B,F,z,H,V,W,Y,G,X,K,$,Q,J,Z,tt,et=0,nt=function(){return"undefined"!=typeof window},it=function(){return L||nt()&&(L=window.gsap)&&L.registerPlugin&&L},st=function(t){return"function"==typeof t},ot=function(t){return"object"==typeof t},at=function(t){return void 0===t},ut=function(){return!1},lt="transform",ct="transformOrigin",ht=function(t){return Math.round(1e4*t)/1e4},ft=Array.isArray,pt=function(t,e){var n=P.createElementNS?P.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):P.createElement(t);return n.style?n:P.createElement(t)},mt=180/Math.PI,gt=1e20,vt=new O,yt=Date.now||function(){return(new Date).getTime()},bt=[],_t={},wt=0,Tt=/^(?:a|input|textarea|button|select)$/i,xt=0,St={},Et={},kt=function(t,e){var p,n={};for(p in t)n[p]=e?t[p]*e:t[p];return n},At=function t(e,n){for(var r,i=e.length;i--;)n?e[i].style.touchAction=n:e[i].style.removeProperty("touch-action"),(r=e[i].children)&&r.length&&t(r,n)},Ct=function(){return bt.forEach((function(t){return t()}))},Ot=function(){return!bt.length&&L.ticker.remove(Ct)},jt=function(t){for(var i=bt.length;i--;)bt[i]===t&&bt.splice(i,1);L.to(Ot,{overwrite:!0,delay:15,duration:0,onComplete:Ot,data:"_draggable"})},It=function(element,t,e,n){if(element.addEventListener){var r=W[t];n=n||(H?{passive:!1}:null),element.addEventListener(r||t,e,n),r&&t!==r&&element.addEventListener(t,e,n)}},Lt=function(element,t,e,n){if(element.removeEventListener){var r=W[t];element.removeEventListener(r||t,e,n),r&&t!==r&&element.removeEventListener(t,e,n)}},Dt=function(t){t.preventDefault&&t.preventDefault(),t.preventManipulation&&t.preventManipulation()},Pt=function t(e){Y=e.touches&&et<e.touches.length,Lt(e.target,"touchend",t)},Mt=function(t){Y=t.touches&&et<t.touches.length,It(t.target,"touchend",Pt)},Nt=function(t){return D.pageYOffset||t.scrollTop||t.documentElement.scrollTop||t.body.scrollTop||0},Rt=function(t){return D.pageXOffset||t.scrollLeft||t.documentElement.scrollLeft||t.body.scrollLeft||0},Ut=function t(e,n){It(e,"scroll",n),Ft(e.parentNode)||t(e.parentNode,n)},Bt=function t(e,n){Lt(e,"scroll",n),Ft(e.parentNode)||t(e.parentNode,n)},Ft=function(t){return!(t&&t!==M&&9!==t.nodeType&&t!==P.body&&t!==D&&t.nodeType&&t.parentNode)},zt=function(element,t){var e="x"===t?"Width":"Height",n="scroll"+e,r="client"+e;return Math.max(0,Ft(element)?Math.max(M[n],N[n])-(D["inner"+e]||M[r]||N[r]):element[n]-element[r])},qt=function t(e,n){var r=zt(e,"x"),o=zt(e,"y");Ft(e)?e=Et:t(e.parentNode,n),e._gsMaxScrollX=r,e._gsMaxScrollY=o,n||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)},Ht=function(element,t,e){var style=element.style;style&&(at(style[t])&&(t=F(t,element)||t),null==e?style.removeProperty&&style.removeProperty(t.replace(/([A-Z])/g,"-$1").toLowerCase()):style[t]=e)},Vt=function(element){return D.getComputedStyle(element instanceof Element?element:element.host||(element.parentNode||{}).host||element)},Wt={},Yt=function(t){if(t===D)return Wt.left=Wt.top=0,Wt.width=Wt.right=M.clientWidth||t.innerWidth||N.clientWidth||0,Wt.height=Wt.bottom=(t.innerHeight||0)-20<M.clientHeight?M.clientHeight:t.innerHeight||N.clientHeight||0,Wt;var e=t.ownerDocument||P,n=at(t.pageX)?t.nodeType||at(t.left)||at(t.top)?z(t)[0].getBoundingClientRect():t:{left:t.pageX-Rt(e),top:t.pageY-Nt(e),right:t.pageX-Rt(e)+1,bottom:t.pageY-Nt(e)+1};return at(n.right)&&!at(n.width)?(n.right=n.left+n.width,n.bottom=n.top+n.height):at(n.width)&&(n={width:n.right-n.left,height:n.bottom-n.top,right:n.right,left:n.left,bottom:n.bottom,top:n.top}),n},Gt=function(t,e,n){var r,o=t.vars,l=o[n],c=t._listeners[e];return st(l)&&(r=l.apply(o.callbackScope||t,o[n+"Params"]||[t.pointerEvent])),c&&!1===t.dispatchEvent(e)&&(r=!1),r},Xt=function(t,e){var n,r,o,l=z(t)[0];return l.nodeType||l===D?$t(l,e):at(t.left)?{left:r=t.min||t.minX||t.minRotation||0,top:n=t.min||t.minY||0,width:(t.max||t.maxX||t.maxRotation||0)-r,height:(t.max||t.maxY||0)-n}:(o={x:0,y:0},{left:t.left-o.x,top:t.top-o.y,width:t.width,height:t.height})},Kt={},$t=function(element,t){t=z(t)[0];var e,n,r,o,l,c,h,d,f,m,v,y,_,w=element.getBBox&&element.ownerSVGElement,T=element.ownerDocument||P;if(element===D)r=Nt(T),n=(e=Rt(T))+(T.documentElement.clientWidth||element.innerWidth||T.body.clientWidth||0),o=r+((element.innerHeight||0)-20<T.documentElement.clientHeight?T.documentElement.clientHeight:element.innerHeight||T.body.clientHeight||0);else{if(t===D||at(t))return element.getBoundingClientRect();e=r=0,w?(v=(m=element.getBBox()).width,y=m.height):(element.viewBox&&(m=element.viewBox.baseVal)&&(e=m.x||0,r=m.y||0,v=m.width,y=m.height),v||(m="border-box"===(_=Vt(element)).boxSizing,v=(parseFloat(_.width)||element.clientWidth||0)+(m?0:parseFloat(_.borderLeftWidth)+parseFloat(_.borderRightWidth)),y=(parseFloat(_.height)||element.clientHeight||0)+(m?0:parseFloat(_.borderTopWidth)+parseFloat(_.borderBottomWidth)))),n=v,o=y}return element===t?{left:e,top:r,width:n-e,height:o-r}:(c=(l=j(t,!0).multiply(j(element))).apply({x:e,y:r}),h=l.apply({x:n,y:r}),d=l.apply({x:n,y:o}),f=l.apply({x:e,y:o}),{left:e=Math.min(c.x,h.x,d.x,f.x),top:r=Math.min(c.y,h.y,d.y,f.y),width:Math.max(c.x,h.x,d.x,f.x)-e,height:Math.max(c.y,h.y,d.y,f.y)-r})},Qt=function(t,e,n,r,o,l){var a,i,c,h={};if(e)if(1!==o&&e instanceof Array){if(h.end=a=[],c=e.length,ot(e[0]))for(i=0;i<c;i++)a[i]=kt(e[i],o);else for(i=0;i<c;i++)a[i]=e[i]*o;n+=1.1,r-=1.1}else st(e)?h.end=function(n){var r,p,l=e.call(t,n);if(1!==o)if(ot(l)){for(p in r={},l)r[p]=l[p]*o;l=r}else l*=o;return l}:h.end=e;return(n||0===n)&&(h.max=n),(r||0===r)&&(h.min=r),l&&(h.velocity=0),h},Jt=function t(element){var data;return!(!element||!element.getAttribute||element===N)&&(!("true"!==(data=element.getAttribute("data-clickable"))&&("false"===data||!Tt.test(element.nodeName+"")&&"true"!==element.getAttribute("contentEditable")))||t(element.parentNode))},Zt=function(t,e){for(var n,i=t.length;i--;)(n=t[i]).ondragstart=n.onselectstart=e?null:ut,L.set(n,{lazy:!0,userSelect:e?"text":"none"})},te=function t(element){return"fixed"===Vt(element).position||((element=element.parentNode)&&1===element.nodeType?t(element):void 0)},ee=function(element,t){element=L.utils.toArray(element)[0],t=t||{};var e,n,r,o,l,c,content=document.createElement("div"),style=content.style,h=element.firstChild,d=0,f=0,m=element.scrollTop,v=element.scrollLeft,y=element.scrollWidth,_=element.scrollHeight,w=0,T=0,x=0;Z&&!1!==t.force3D?(l="translate3d(",c="px,0px)"):lt&&(l="translate(",c="px)"),this.scrollTop=function(t,e){if(!arguments.length)return-this.top();this.top(-t,e)},this.scrollLeft=function(t,e){if(!arguments.length)return-this.left();this.left(-t,e)},this.left=function(e,n){if(!arguments.length)return-(element.scrollLeft+f);var r=element.scrollLeft-v,o=f;if((r>2||r<-2)&&!n)return v=element.scrollLeft,L.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-v),void(t.onKill&&t.onKill());(e=-e)<0?(f=e-.5|0,e=0):e>T?(f=e-T|0,e=T):f=0,(f||o)&&(this._skip||(style[lt]=l+-f+"px,"+-d+c),f+w>=0&&(style.paddingRight=f+w+"px")),element.scrollLeft=0|e,v=element.scrollLeft},this.top=function(e,n){if(!arguments.length)return-(element.scrollTop+d);var r=element.scrollTop-m,o=d;if((r>2||r<-2)&&!n)return m=element.scrollTop,L.killTweensOf(this,{top:1,scrollTop:1}),this.top(-m),void(t.onKill&&t.onKill());(e=-e)<0?(d=e-.5|0,e=0):e>x?(d=e-x|0,e=x):d=0,(d||o)&&(this._skip||(style[lt]=l+-f+"px,"+-d+c)),element.scrollTop=0|e,m=element.scrollTop},this.maxScrollTop=function(){return x},this.maxScrollLeft=function(){return T},this.disable=function(){for(h=content.firstChild;h;)o=h.nextSibling,element.appendChild(h),h=o;element===content.parentNode&&element.removeChild(content)},this.enable=function(){if((h=element.firstChild)!==content){for(;h;)o=h.nextSibling,content.appendChild(h),h=o;element.appendChild(content),this.calibrate()}},this.calibrate=function(t){var o,l,c,h=element.clientWidth===e;m=element.scrollTop,v=element.scrollLeft,h&&element.clientHeight===n&&content.offsetHeight===r&&y===element.scrollWidth&&_===element.scrollHeight&&!t||((d||f)&&(l=this.left(),c=this.top(),this.left(-element.scrollLeft),this.top(-element.scrollTop)),o=Vt(element),h&&!t||(style.display="block",style.width="auto",style.paddingRight="0px",(w=Math.max(0,element.scrollWidth-element.clientWidth))&&(w+=parseFloat(o.paddingLeft)+(tt?parseFloat(o.paddingRight):0))),style.display="inline-block",style.position="relative",style.overflow="visible",style.verticalAlign="top",style.boxSizing="content-box",style.width="100%",style.paddingRight=w+"px",tt&&(style.paddingBottom=o.paddingBottom),e=element.clientWidth,n=element.clientHeight,y=element.scrollWidth,_=element.scrollHeight,T=element.scrollWidth-e,x=element.scrollHeight-n,r=content.offsetHeight,style.display="block",(l||c)&&(this.left(l),this.top(c)))},this.content=content,this.element=element,this._skip=!1,this.enable()},ne=function(t){if(nt()&&document.body){var nav=window&&window.navigator;D=window,P=document,M=P.documentElement,N=P.body,R=pt("div"),$=!!window.PointerEvent,(U=pt("div")).style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",K="grab"===U.style.cursor?"grab":"move",G=nav&&-1!==nav.userAgent.toLowerCase().indexOf("android"),V="ontouchstart"in M&&"orientation"in D||nav&&(nav.MaxTouchPoints>0||nav.msMaxTouchPoints>0),div=pt("div"),n=pt("div"),r=n.style,o=N,r.display="inline-block",r.position="relative",div.style.cssText="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",div.appendChild(n),o.appendChild(div),e=n.offsetHeight+18>div.scrollHeight,o.removeChild(div),tt=e,W=function(t){for(var e=t.split(","),n=(("onpointerdown"in R?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in R?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":t).split(",")),r={},i=4;--i>-1;)r[e[i]]=n[i],r[n[i]]=e[i];try{M.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){H=1}}))}catch(t){}return r}("touchstart,touchmove,touchend,touchcancel"),It(P,"touchcancel",ut),It(D,"touchmove",ut),N&&N.addEventListener("touchstart",ut),It(P,"contextmenu",(function(){for(var p in _t)_t[p].isPressed&&_t[p].endDrag()})),L=B=it()}var e,div,n,r,o;L?(X=L.plugins.inertia,Q=L.core.context||function(){},F=L.utils.checkPrefix,lt=F(lt),ct=F(ct),z=L.utils.toArray,J=L.core.getStyleSaver,Z=!!F("perspective")):t&&console.warn("Please gsap.registerPlugin(Draggable)")},re=function(t){var e,n;function r(e,n){var o;o=t.call(this)||this,B||ne(1),e=z(e)[0],o.styles=J&&J(e,"transform,left,top"),X||(X=L.plugins.inertia),o.vars=n=kt(n||{}),o.target=e,o.x=o.y=o.rotation=0,o.dragResistance=parseFloat(n.dragResistance)||0,o.edgeResistance=isNaN(n.edgeResistance)?1:parseFloat(n.edgeResistance)||0,o.lockAxis=n.lockAxis,o.autoScroll=n.autoScroll||0,o.lockedAxis=null,o.allowEventDefault=!!n.allowEventDefault,L.getProperty(e,"x");var l,c,h,d,f,m,v,y,_,w,T,x,S,E,k,A,C,N,R,F,H,Z,tt,nt,it,ut,lt,pt,Tt,Ot,Pt,zt,Wt,$t=(n.type||"x,y").toLowerCase(),re=~$t.indexOf("x")||~$t.indexOf("y"),ie=-1!==$t.indexOf("rotation"),se=ie?"rotation":re?"x":"left",oe=re?"y":"top",ae=!(!~$t.indexOf("x")&&!~$t.indexOf("left")&&"scroll"!==$t),ue=!(!~$t.indexOf("y")&&!~$t.indexOf("top")&&"scroll"!==$t),le=n.minimumMovement||2,ce=I(o),he=z(n.trigger||n.handle||e),de={},fe=0,pe=!1,me=n.autoScrollMarginTop||40,ge=n.autoScrollMarginRight||40,ve=n.autoScrollMarginBottom||40,ye=n.autoScrollMarginLeft||40,be=n.clickableTest||Jt,_e=0,we=e._gsap||L.core.getCache(e),Te=te(e),xe=function(t,n){return parseFloat(we.get(e,t,n))},Se=e.ownerDocument||P,Ee=function(t){return Dt(t),t.stopImmediatePropagation&&t.stopImmediatePropagation(),!1},ke=function t(n){if(ce.autoScroll&&ce.isDragging&&(pe||C)){var r,o,rect,l,h,d,f,m,v=e,_=15*ce.autoScroll;for(pe=!1,Et.scrollTop=null!=D.pageYOffset?D.pageYOffset:null!=Se.documentElement.scrollTop?Se.documentElement.scrollTop:Se.body.scrollTop,Et.scrollLeft=null!=D.pageXOffset?D.pageXOffset:null!=Se.documentElement.scrollLeft?Se.documentElement.scrollLeft:Se.body.scrollLeft,l=ce.pointerX-Et.scrollLeft,h=ce.pointerY-Et.scrollTop;v&&!o;)r=(o=Ft(v.parentNode))?Et:v.parentNode,rect=o?{bottom:Math.max(M.clientHeight,D.innerHeight||0),right:Math.max(M.clientWidth,D.innerWidth||0),left:0,top:0}:r.getBoundingClientRect(),d=f=0,ue&&((m=r._gsMaxScrollY-r.scrollTop)<0?f=m:h>rect.bottom-ve&&m?(pe=!0,f=Math.min(m,_*(1-Math.max(0,rect.bottom-h)/ve)|0)):h<rect.top+me&&r.scrollTop&&(pe=!0,f=-Math.min(r.scrollTop,_*(1-Math.max(0,h-rect.top)/me)|0)),f&&(r.scrollTop+=f)),ae&&((m=r._gsMaxScrollX-r.scrollLeft)<0?d=m:l>rect.right-ge&&m?(pe=!0,d=Math.min(m,_*(1-Math.max(0,rect.right-l)/ge)|0)):l<rect.left+ye&&r.scrollLeft&&(pe=!0,d=-Math.min(r.scrollLeft,_*(1-Math.max(0,l-rect.left)/ye)|0)),d&&(r.scrollLeft+=d)),o&&(d||f)&&(D.scrollTo(r.scrollLeft,r.scrollTop),Ue(ce.pointerX+d,ce.pointerY+f)),v=r}if(C){var w=ce.x,T=ce.y;ie?(ce.deltaX=w-parseFloat(we.rotation),ce.rotation=w,we.rotation=w+"deg",we.renderTransform(1,we)):c?(ue&&(ce.deltaY=T-c.top(),c.top(T)),ae&&(ce.deltaX=w-c.left(),c.left(w))):re?(ue&&(ce.deltaY=T-parseFloat(we.y),we.y=T+"px"),ae&&(ce.deltaX=w-parseFloat(we.x),we.x=w+"px"),we.renderTransform(1,we)):(ue&&(ce.deltaY=T-parseFloat(e.style.top||0),e.style.top=T+"px"),ae&&(ce.deltaX=w-parseFloat(e.style.left||0),e.style.left=w+"px")),!y||n||pt||(pt=!0,!1===Gt(ce,"drag","onDrag")&&(ae&&(ce.x-=ce.deltaX),ue&&(ce.y-=ce.deltaY),t(!0)),pt=!1)}C=!1},Ae=function(t,n){var r,o,l=ce.x,h=ce.y;e._gsap||(we=L.core.getCache(e)),we.uncache&&L.getProperty(e,"x"),re?(ce.x=parseFloat(we.x),ce.y=parseFloat(we.y)):ie?ce.x=ce.rotation=parseFloat(we.rotation):c?(ce.y=c.top(),ce.x=c.left()):(ce.y=parseFloat(e.style.top||(o=Vt(e))&&o.top)||0,ce.x=parseFloat(e.style.left||(o||{}).left)||0),(R||F||H)&&!n&&(ce.isDragging||ce.isThrowing)&&(H&&(St.x=ce.x,St.y=ce.y,(r=H(St)).x!==ce.x&&(ce.x=r.x,C=!0),r.y!==ce.y&&(ce.y=r.y,C=!0)),R&&(r=R(ce.x))!==ce.x&&(ce.x=r,ie&&(ce.rotation=r),C=!0),F&&((r=F(ce.y))!==ce.y&&(ce.y=r),C=!0)),C&&ke(!0),t||(ce.deltaX=ce.x-l,ce.deltaY=ce.y-h,Gt(ce,"throwupdate","onThrowUpdate"))},Ce=function(t,e,n,r){return null==e&&(e=-gt),null==n&&(n=gt),st(t)?function(o){var l=ce.isPressed?1-ce.edgeResistance:1;return t.call(ce,(o>n?n+(o-n)*l:o<e?e+(o-e)*l:o)*r)*r}:ft(t)?function(r){for(var o,l,i=t.length,c=0,h=gt;--i>-1;)(l=(o=t[i])-r)<0&&(l=-l),l<h&&o>=e&&o<=n&&(c=i,h=l);return t[c]}:isNaN(t)?function(t){return t}:function(){return t*r}},Oe=function(){var t,r,o,l;v=!1,c?(c.calibrate(),ce.minX=T=-c.maxScrollLeft(),ce.minY=S=-c.maxScrollTop(),ce.maxX=w=ce.maxY=x=0,v=!0):n.bounds&&(t=Xt(n.bounds,e.parentNode),ie?(ce.minX=T=t.left,ce.maxX=w=t.left+t.width,ce.minY=S=ce.maxY=x=0):at(n.bounds.maxX)&&at(n.bounds.maxY)?(r=Xt(e,e.parentNode),ce.minX=T=Math.round(xe(se,"px")+t.left-r.left),ce.minY=S=Math.round(xe(oe,"px")+t.top-r.top),ce.maxX=w=Math.round(T+(t.width-r.width)),ce.maxY=x=Math.round(S+(t.height-r.height))):(t=n.bounds,ce.minX=T=t.minX,ce.minY=S=t.minY,ce.maxX=w=t.maxX,ce.maxY=x=t.maxY),T>w&&(ce.minX=w,ce.maxX=w=T,T=ce.minX),S>x&&(ce.minY=x,ce.maxY=x=S,S=ce.minY),ie&&(ce.minRotation=T,ce.maxRotation=w),v=!0),n.liveSnap&&(o=!0===n.liveSnap?n.snap||{}:n.liveSnap,l=ft(o)||st(o),ie?(R=Ce(l?o:o.rotation,T,w,1),F=null):o.points?H=function(t,e,n,r,o,l,c){return l=l&&l<gt?l*l:gt,st(t)?function(h){var d,f,m,v=ce.isPressed?1-ce.edgeResistance:1,y=h.x,_=h.y;return h.x=y=y>n?n+(y-n)*v:y<e?e+(y-e)*v:y,h.y=_=_>o?o+(_-o)*v:_<r?r+(_-r)*v:_,(d=t.call(ce,h))!==h&&(h.x=d.x,h.y=d.y),1!==c&&(h.x*=c,h.y*=c),l<gt&&(f=h.x-y)*f+(m=h.y-_)*m>l&&(h.x=y,h.y=_),h}:ft(t)?function(p){for(var e,n,r,o,i=t.length,c=0,h=gt;--i>-1;)(o=(e=(r=t[i]).x-p.x)*e+(n=r.y-p.y)*n)<h&&(c=i,h=o);return h<=l?t[c]:p}:function(t){return t}}(l?o:o.points,T,w,S,x,o.radius,c?-1:1):(ae&&(R=Ce(l?o:o.x||o.left||o.scrollLeft,T,w,c?-1:1)),ue&&(F=Ce(l?o:o.y||o.top||o.scrollTop,S,x,c?-1:1))))},je=function(){ce.isThrowing=!1,Gt(ce,"throwcomplete","onThrowComplete")},Ie=function(){ce.isThrowing=!1},animate=function(t,r){var o,l,h,d;t&&X?(!0===t&&(o=n.snap||n.liveSnap||{},l=ft(o)||st(o),t={resistance:(n.throwResistance||n.resistance||1e3)/(ie?10:1)},ie?t.rotation=Qt(ce,l?o:o.rotation,w,T,1,r):(ae&&(t[se]=Qt(ce,l?o:o.points||o.x||o.left,w,T,c?-1:1,r||"x"===ce.lockedAxis)),ue&&(t[oe]=Qt(ce,l?o:o.points||o.y||o.top,x,S,c?-1:1,r||"y"===ce.lockedAxis)),(o.points||ft(o)&&ot(o[0]))&&(t.linkedProps=se+","+oe,t.radius=o.radius))),ce.isThrowing=!0,d=isNaN(n.overshootTolerance)?1===n.edgeResistance?0:1-ce.edgeResistance+.2:n.overshootTolerance,t.duration||(t.duration={max:Math.max(n.minDuration||0,"maxDuration"in n?n.maxDuration:2),min:isNaN(n.minDuration)?0===d||ot(t)&&t.resistance>1e3?0:.5:n.minDuration,overshoot:d}),ce.tween=h=L.to(c||e,{inertia:t,data:"_draggable",inherit:!1,onComplete:je,onInterrupt:Ie,onUpdate:n.fastMode?Gt:Ae,onUpdateParams:n.fastMode?[ce,"onthrowupdate","onThrowUpdate"]:o&&o.radius?[!1,!0]:[]}),n.fastMode||(c&&(c._skip=!0),h.render(1e9,!0,!0),Ae(!0,!0),ce.endX=ce.x,ce.endY=ce.y,ie&&(ce.endRotation=ce.x),h.play(0),Ae(!0,!0),c&&(c._skip=!1))):v&&ce.applyBounds()},Le=function(t){var p,n=nt;nt=j(e.parentNode,!0),t&&ce.isPressed&&!nt.equals(n||new O)&&(p=n.inverse().apply({x:h,y:d}),nt.apply(p,p),h=p.x,d=p.y),nt.equals(vt)&&(nt=null)},De=function(){var t,n,r,o=1-ce.edgeResistance,l=Te?Rt(Se):0,y=Te?Nt(Se):0;re&&(we.x=xe(se,"px")+"px",we.y=xe(oe,"px")+"px",we.renderTransform()),Le(!1),Kt.x=ce.pointerX-l,Kt.y=ce.pointerY-y,nt&&nt.apply(Kt,Kt),h=Kt.x,d=Kt.y,C&&(Ue(ce.pointerX,ce.pointerY),ke(!0)),zt=j(e),c?(Oe(),m=c.top(),f=c.left()):(Pe()?(Ae(!0,!0),Oe()):ce.applyBounds(),ie?(t=e.ownerSVGElement?[we.xOrigin-e.getBBox().x,we.yOrigin-e.getBBox().y]:(Vt(e)[ct]||"0 0").split(" "),A=ce.rotationOrigin=j(e).apply({x:parseFloat(t[0])||0,y:parseFloat(t[1])||0}),Ae(!0,!0),n=ce.pointerX-A.x-l,r=A.y-ce.pointerY+y,f=ce.x,m=ce.y=Math.atan2(r,n)*mt):(m=xe(oe,"px"),f=xe(se,"px"))),v&&o&&(f>w?f=w+(f-w)/o:f<T&&(f=T-(T-f)/o),ie||(m>x?m=x+(m-x)/o:m<S&&(m=S-(S-m)/o))),ce.startX=f=ht(f),ce.startY=m=ht(m)},Pe=function(){return ce.tween&&ce.tween.isActive()},Me=function(){!U.parentNode||Pe()||ce.isDragging||U.parentNode.removeChild(U)},Ne=function(t,o){var i;if(!l||ce.isPressed||!t||!("mousedown"!==t.type&&"pointerdown"!==t.type||o)&&yt()-_e<30&&W[ce.pointerEvent.type])Pt&&t&&l&&Dt(t);else{if(it=Pe(),Wt=!1,ce.pointerEvent=t,W[t.type]?(tt=~t.type.indexOf("touch")?t.currentTarget||t.target:Se,It(tt,"touchend",Be),It(tt,"touchmove",Re),It(tt,"touchcancel",Be),It(Se,"touchstart",Mt)):(tt=null,It(Se,"mousemove",Re)),lt=null,$&&tt||(It(Se,"mouseup",Be),t&&t.target&&It(t.target,"mouseup",Be)),Z=be.call(ce,t.target)&&!1===n.dragClickables&&!o)return It(t.target,"change",Be),Gt(ce,"pressInit","onPressInit"),Gt(ce,"press","onPress"),Zt(he,!0),void(Pt=!1);var f;if(ut=!(!tt||ae===ue||!1===ce.vars.allowNativeTouchScrolling||ce.vars.allowContextMenu&&t&&(t.ctrlKey||t.which>2))&&(ae?"y":"x"),(Pt=!ut&&!ce.allowEventDefault)&&(Dt(t),It(D,"touchforcechange",Dt)),t.changedTouches?(t=E=t.changedTouches[0],k=t.identifier):t.pointerId?k=t.pointerId:E=k=null,et++,f=ke,bt.push(f),1===bt.length&&L.ticker.add(Ct),d=ce.pointerY=t.pageY,h=ce.pointerX=t.pageX,Gt(ce,"pressInit","onPressInit"),(ut||ce.autoScroll)&&qt(e.parentNode),!e.parentNode||!ce.autoScroll||c||ie||!e.parentNode._gsMaxScrollX||U.parentNode||e.getBBox||(U.style.width=e.parentNode.scrollWidth+"px",e.parentNode.appendChild(U)),De(),ce.tween&&ce.tween.kill(),ce.isThrowing=!1,L.killTweensOf(c||e,de,!0),c&&L.killTweensOf(e,{scrollTo:1},!0),ce.tween=ce.lockedAxis=null,(n.zIndexBoost||!ie&&!c&&!1!==n.zIndexBoost)&&(e.style.zIndex=r.zIndex++),ce.isPressed=!0,y=!(!n.onDrag&&!ce._listeners.drag),_=!(!n.onMove&&!ce._listeners.move),!1!==n.cursor||n.activeCursor)for(i=he.length;--i>-1;)L.set(he[i],{cursor:n.activeCursor||n.cursor||("grab"===K?"grabbing":K)});Gt(ce,"press","onPress")}},Re=function(t){var n,r,o,i,c,f,m=t;if(l&&!Y&&ce.isPressed&&t){if(ce.pointerEvent=t,n=t.changedTouches){if((t=n[0])!==E&&t.identifier!==k){for(i=n.length;--i>-1&&(t=n[i]).identifier!==k&&t.target!==e;);if(i<0)return}}else if(t.pointerId&&k&&t.pointerId!==k)return;tt&&ut&&!lt&&(Kt.x=t.pageX-(Te?Rt(Se):0),Kt.y=t.pageY-(Te?Nt(Se):0),nt&&nt.apply(Kt,Kt),r=Kt.x,o=Kt.y,((c=Math.abs(r-h))!==(f=Math.abs(o-d))&&(c>le||f>le)||G&&ut===lt)&&(lt=c>f&&ae?"x":"y",ut&<!==ut&&It(D,"touchforcechange",Dt),!1!==ce.vars.lockAxisOnTouchScroll&&ae&&ue&&(ce.lockedAxis="x"===lt?"y":"x",st(ce.vars.onLockAxis)&&ce.vars.onLockAxis.call(ce,m)),G&&ut===lt))?Be(m):(ce.allowEventDefault||ut&&(!lt||ut===lt)||!1===m.cancelable?Pt&&(Pt=!1):(Dt(m),Pt=!0),ce.autoScroll&&(pe=!0),Ue(t.pageX,t.pageY,_))}else Pt&&t&&l&&Dt(t)},Ue=function(t,e,n){var r,o,l,c,y,_,E=1-ce.dragResistance,k=1-ce.edgeResistance,O=ce.pointerX,j=ce.pointerY,I=m,L=ce.x,D=ce.y,P=ce.endX,M=ce.endY,N=ce.endRotation,U=C;ce.pointerX=t,ce.pointerY=e,Te&&(t-=Rt(Se),e-=Nt(Se)),ie?(c=Math.atan2(A.y-e,t-A.x)*mt,(y=ce.y-c)>180?(m-=360,ce.y=c):y<-180&&(m+=360,ce.y=c),ce.x!==f||Math.abs(m-c)>le?(ce.y=c,l=f+(m-c)*E):l=f):(nt&&(_=t*nt.a+e*nt.c+nt.e,e=t*nt.b+e*nt.d+nt.f,t=_),(o=e-d)<le&&o>-le&&(o=0),(r=t-h)<le&&r>-le&&(r=0),(ce.lockAxis||ce.lockedAxis)&&(r||o)&&((_=ce.lockedAxis)||(ce.lockedAxis=_=ae&&Math.abs(r)>Math.abs(o)?"y":ue?"x":null,_&&st(ce.vars.onLockAxis)&&ce.vars.onLockAxis.call(ce,ce.pointerEvent)),"y"===_?o=0:"x"===_&&(r=0)),l=ht(f+r*E),c=ht(m+o*E)),(R||F||H)&&(ce.x!==l||ce.y!==c&&!ie)&&(H&&(St.x=l,St.y=c,_=H(St),l=ht(_.x),c=ht(_.y)),R&&(l=ht(R(l))),F&&(c=ht(F(c)))),v&&(l>w?l=w+Math.round((l-w)*k):l<T&&(l=T+Math.round((l-T)*k)),ie||(c>x?c=Math.round(x+(c-x)*k):c<S&&(c=Math.round(S+(c-S)*k)))),(ce.x!==l||ce.y!==c&&!ie)&&(ie?(ce.endRotation=ce.x=ce.endX=l,C=!0):(ue&&(ce.y=ce.endY=c,C=!0),ae&&(ce.x=ce.endX=l,C=!0)),n&&!1===Gt(ce,"move","onMove")?(ce.pointerX=O,ce.pointerY=j,m=I,ce.x=L,ce.y=D,ce.endX=P,ce.endY=M,ce.endRotation=N,C=U):!ce.isDragging&&ce.isPressed&&(ce.isDragging=Wt=!0,Gt(ce,"dragstart","onDragStart")))},Be=function t(r,o){if(l&&ce.isPressed&&(!r||null==k||o||!(r.pointerId&&r.pointerId!==k&&r.target!==e||r.changedTouches&&!function(t,e){for(var i=t.length;i--;)if(t[i].identifier===e)return!0}(r.changedTouches,k)))){ce.isPressed=!1;var c,i,h,d,f,m=r,v=ce.isDragging,y=ce.vars.allowContextMenu&&r&&(r.ctrlKey||r.which>2),_=L.delayedCall(.001,Me);if(tt?(Lt(tt,"touchend",t),Lt(tt,"touchmove",Re),Lt(tt,"touchcancel",t),Lt(Se,"touchstart",Mt)):Lt(Se,"mousemove",Re),Lt(D,"touchforcechange",Dt),$&&tt||(Lt(Se,"mouseup",t),r&&r.target&&Lt(r.target,"mouseup",t)),C=!1,v&&(fe=xt=yt(),ce.isDragging=!1),jt(ke),Z&&!y)return r&&(Lt(r.target,"change",t),ce.pointerEvent=m),Zt(he,!1),Gt(ce,"release","onRelease"),Gt(ce,"click","onClick"),void(Z=!1);for(i=he.length;--i>-1;)Ht(he[i],"cursor",n.cursor||(!1!==n.cursor?K:null));if(et--,r){if((c=r.changedTouches)&&(r=c[0])!==E&&r.identifier!==k){for(i=c.length;--i>-1&&(r=c[i]).identifier!==k&&r.target!==e;);if(i<0&&!o)return}ce.pointerEvent=m,ce.pointerX=r.pageX,ce.pointerY=r.pageY}return y&&m?(Dt(m),Pt=!0,Gt(ce,"release","onRelease")):m&&!v?(Pt=!1,it&&(n.snap||n.bounds)&&animate(n.inertia||n.throwProps),Gt(ce,"release","onRelease"),G&&"touchmove"===m.type||-1!==m.type.indexOf("cancel")||(Gt(ce,"click","onClick"),yt()-_e<300&&Gt(ce,"doubleclick","onDoubleClick"),d=m.target||e,_e=yt(),f=function(){_e===Tt||!ce.enabled()||ce.isPressed||m.defaultPrevented||(d.click?d.click():Se.createEvent&&((h=Se.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,D,1,ce.pointerEvent.screenX,ce.pointerEvent.screenY,ce.pointerX,ce.pointerY,!1,!1,!1,!1,0,null),d.dispatchEvent(h)))},G||m.defaultPrevented||L.delayedCall(.05,f))):(animate(n.inertia||n.throwProps),ce.allowEventDefault||!m||!1===n.dragClickables&&be.call(ce,m.target)||!v||ut&&(!lt||ut!==lt)||!1===m.cancelable?Pt=!1:(Pt=!0,Dt(m)),Gt(ce,"release","onRelease")),Pe()&&_.duration(ce.tween.duration()),v&&Gt(ce,"dragend","onDragEnd"),!0}Pt&&r&&l&&Dt(r)},Fe=function(t){if(t&&ce.isDragging&&!c){var n=t.target||e.parentNode,r=n.scrollLeft-n._gsScrollX,o=n.scrollTop-n._gsScrollY;(r||o)&&(nt?(h-=r*nt.a+o*nt.c,d-=o*nt.d+r*nt.b):(h-=r,d-=o),n._gsScrollX+=r,n._gsScrollY+=o,Ue(ce.pointerX,ce.pointerY))}},ze=function(t){var time=yt(),e=time-_e<100,n=time-fe<50,r=e&&Tt===_e,o=ce.pointerEvent&&ce.pointerEvent.defaultPrevented,l=e&&Ot===_e,c=t.isTrusted||null==t.isTrusted&&e&&r;if((r||n&&!1!==ce.vars.suppressClickOnDrag)&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),e&&(!ce.pointerEvent||!ce.pointerEvent.defaultPrevented)&&(!r||c&&!l))return c&&r&&(Ot=_e),void(Tt=_e);(ce.isPressed||n||e)&&(c&&t.detail&&e&&!o||Dt(t)),e||n||Wt||(t&&t.target&&(ce.pointerEvent=t),Gt(ce,"click","onClick"))},qe=function(p){return nt?{x:p.x*nt.a+p.y*nt.c+nt.e,y:p.x*nt.b+p.y*nt.d+nt.f}:{x:p.x,y:p.y}};return(N=r.get(e))&&N.kill(),o.startDrag=function(t,n){var r,o,l,c;Ne(t||ce.pointerEvent,!0),n&&!ce.hitTest(t||ce.pointerEvent)&&(r=Yt(t||ce.pointerEvent),o=Yt(e),l=qe({x:r.left+r.width/2,y:r.top+r.height/2}),c=qe({x:o.left+o.width/2,y:o.top+o.height/2}),h-=l.x-c.x,d-=l.y-c.y),ce.isDragging||(ce.isDragging=Wt=!0,Gt(ce,"dragstart","onDragStart"))},o.drag=Re,o.endDrag=function(t){return Be(t||ce.pointerEvent,!0)},o.timeSinceDrag=function(){return ce.isDragging?0:(yt()-fe)/1e3},o.timeSinceClick=function(){return(yt()-_e)/1e3},o.hitTest=function(t,e){return r.hitTest(ce.target,t,e)},o.getDirection=function(t,n){var r,o,l,c,h,d,v="velocity"===t&&X?t:ot(t)&&!ie?"element":"start";return"element"===v&&(h=Yt(ce.target),d=Yt(t)),r="start"===v?ce.x-f:"velocity"===v?X.getVelocity(e,se):h.left+h.width/2-(d.left+d.width/2),ie?r<0?"counter-clockwise":"clockwise":(n=n||2,o="start"===v?ce.y-m:"velocity"===v?X.getVelocity(e,oe):h.top+h.height/2-(d.top+d.height/2),c=(l=Math.abs(r/o))<1/n?"":r<0?"left":"right",l<n&&(""!==c&&(c+="-"),c+=o<0?"up":"down"),c)},o.applyBounds=function(t,r){var o,l,c,h,d,f;if(t&&n.bounds!==t)return n.bounds=t,ce.update(!0,r);if(Ae(!0),Oe(),v&&!Pe()){if(o=ce.x,l=ce.y,o>w?o=w:o<T&&(o=T),l>x?l=x:l<S&&(l=S),(ce.x!==o||ce.y!==l)&&(c=!0,ce.x=ce.endX=o,ie?ce.endRotation=o:ce.y=ce.endY=l,C=!0,ke(!0),ce.autoScroll&&!ce.isDragging))for(qt(e.parentNode),h=e,Et.scrollTop=null!=D.pageYOffset?D.pageYOffset:null!=Se.documentElement.scrollTop?Se.documentElement.scrollTop:Se.body.scrollTop,Et.scrollLeft=null!=D.pageXOffset?D.pageXOffset:null!=Se.documentElement.scrollLeft?Se.documentElement.scrollLeft:Se.body.scrollLeft;h&&!f;)d=(f=Ft(h.parentNode))?Et:h.parentNode,ue&&d.scrollTop>d._gsMaxScrollY&&(d.scrollTop=d._gsMaxScrollY),ae&&d.scrollLeft>d._gsMaxScrollX&&(d.scrollLeft=d._gsMaxScrollX),h=d;ce.isThrowing&&(c||ce.endX>w||ce.endX<T||ce.endY>x||ce.endY<S)&&animate(n.inertia||n.throwProps,c)}return ce},o.update=function(t,n,r){if(n&&ce.isPressed){var o=j(e),p=zt.apply({x:ce.x-f,y:ce.y-m}),l=j(e.parentNode,!0);l.apply({x:o.e-p.x,y:o.f-p.y},p),ce.x-=p.x-l.e,ce.y-=p.y-l.f,ke(!0),De()}var c=ce.x,h=ce.y;return Le(!n),t?ce.applyBounds():(C&&r&&ke(!0),Ae(!0)),n&&(Ue(ce.pointerX,ce.pointerY),C&&ke(!0)),ce.isPressed&&!n&&(ae&&Math.abs(c-ce.x)>.01||ue&&Math.abs(h-ce.y)>.01&&!ie)&&De(),ce.autoScroll&&(qt(e.parentNode,ce.isDragging),pe=ce.isDragging,ke(!0),Bt(e,Fe),Ut(e,Fe)),ce},o.enable=function(t){var r,i,o,h={lazy:!0};if(!1!==n.cursor&&(h.cursor=n.cursor||K),L.utils.checkPrefix("touchCallout")&&(h.touchCallout="none"),"soft"!==t){for(At(he,ae===ue?"none":n.allowNativeTouchScrolling&&e.scrollHeight===e.clientHeight==(e.scrollWidth===e.clientHeight)||n.allowEventDefault?"manipulation":ae?"pan-y":"pan-x"),i=he.length;--i>-1;)o=he[i],$||It(o,"mousedown",Ne),It(o,"touchstart",Ne),It(o,"click",ze,!0),L.set(o,h),o.getBBox&&o.ownerSVGElement&&ae!==ue&&L.set(o.ownerSVGElement,{touchAction:n.allowNativeTouchScrolling||n.allowEventDefault?"manipulation":ae?"pan-y":"pan-x"}),n.allowContextMenu||It(o,"contextmenu",Ee);Zt(he,!1)}return Ut(e,Fe),l=!0,X&&"soft"!==t&&X.track(c||e,re?"x,y":ie?"rotation":"top,left"),e._gsDragID=r="d"+wt++,_t[r]=ce,c&&(c.enable(),c.element._gsDragID=r),(n.bounds||ie)&&De(),n.bounds&&ce.applyBounds(),ce},o.disable=function(t){for(var n,r=ce.isDragging,i=he.length;--i>-1;)Ht(he[i],"cursor",null);if("soft"!==t){for(At(he,null),i=he.length;--i>-1;)n=he[i],Ht(n,"touchCallout",null),Lt(n,"mousedown",Ne),Lt(n,"touchstart",Ne),Lt(n,"click",ze,!0),Lt(n,"contextmenu",Ee);Zt(he,!0),tt&&(Lt(tt,"touchcancel",Be),Lt(tt,"touchend",Be),Lt(tt,"touchmove",Re)),Lt(Se,"mouseup",Be),Lt(Se,"mousemove",Re)}return Bt(e,Fe),l=!1,X&&"soft"!==t&&(X.untrack(c||e,re?"x,y":ie?"rotation":"top,left"),ce.tween&&ce.tween.kill()),c&&c.disable(),jt(ke),ce.isDragging=ce.isPressed=Z=!1,r&&Gt(ce,"dragend","onDragEnd"),ce},o.enabled=function(t,e){return arguments.length?t?ce.enable(e):ce.disable(e):l},o.kill=function(){return ce.isThrowing=!1,ce.tween&&ce.tween.kill(),ce.disable(),L.set(he,{clearProps:"userSelect"}),delete _t[e._gsDragID],ce},o.revert=function(){this.kill(),this.styles&&this.styles.revert()},~$t.indexOf("scroll")&&(c=o.scrollProxy=new ee(e,function(t,e){for(var p in e)p in t||(t[p]=e[p]);return t}({onKill:function(){ce.isPressed&&Be(null)}},n)),e.style.overflowY=ue&&!V?"auto":"hidden",e.style.overflowX=ae&&!V?"auto":"hidden",e=c.content),ie?de.rotation=1:(ae&&(de[se]=1),ue&&(de[oe]=1)),we.force3D=!("force3D"in n)||n.force3D,Q(I(o)),o.enable(),o}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.register=function(t){L=t,ne()},r.create=function(t,e){return B||ne(!0),z(t).map((function(t){return new r(t,e)}))},r.get=function(t){return _t[(z(t)[0]||{})._gsDragID]},r.timeSinceDrag=function(){return(yt()-xt)/1e3},r.hitTest=function(t,e,n){if(t===e)return!1;var r,area,o,l=Yt(t),c=Yt(e),h=l.top,d=l.left,f=l.right,m=l.bottom,v=l.width,y=l.height,_=c.left>f||c.right<d||c.top>m||c.bottom<h;return _||!n?!_:(o=-1!==(n+"").indexOf("%"),n=parseFloat(n)||0,(r={left:Math.max(d,c.left),top:Math.max(h,c.top)}).width=Math.min(f,c.right)-r.left,r.height=Math.min(m,c.bottom)-r.top,!(r.width<0||r.height<0)&&(o?(n*=.01,(area=r.width*r.height)>=v*y*n||area>=c.width*c.height*n):r.width>n&&r.height>n))},r}(function(){function t(t){this._listeners={},this.target=t||this}var e=t.prototype;return e.addEventListener=function(t,e){var n=this._listeners[t]||(this._listeners[t]=[]);~n.indexOf(e)||n.push(e)},e.removeEventListener=function(t,e){var n=this._listeners[t],i=n&&n.indexOf(e);i>=0&&n.splice(i,1)},e.dispatchEvent=function(t){var e,n=this;return(this._listeners[t]||[]).forEach((function(r){return!1===r.call(n,{type:t,target:n.target})&&(e=!1)})),e},t}());!function(t,e){for(var p in e)p in t||(t[p]=e[p])}(re.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),re.zIndex=1e3,re.version="3.12.5",it()&&L.registerPlugin(re)}]]);