From df65679a1e83318ef2a4c34f4d934a5b092d4d1c Mon Sep 17 00:00:00 2001 From: "allen.chen" Date: Mon, 13 Jul 2020 17:12:15 +0800 Subject: [PATCH] oem_ipc: update prebuilt web applicantion for v0.4.8 1. debug: when modify, iComplete statu -> repeat Signed-off-by: allen.chen Change-Id: Idb556848c8fab5c7df1c01a4531c257f8c742081 --- oem/oem_ipc/www/assets/i18n/en-US.json | 4 ++-- oem/oem_ipc/www/index.html | 2 +- ...40c1131970eabf0.js => main-es2015.9dc27d607e918cc95783.js} | 2 +- ...5e140c1131970eabf0.js => main-es5.9dc27d607e918cc95783.js} | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename oem/oem_ipc/www/{main-es2015.415e140c1131970eabf0.js => main-es2015.9dc27d607e918cc95783.js} (86%) rename oem/oem_ipc/www/{main-es5.415e140c1131970eabf0.js => main-es5.9dc27d607e918cc95783.js} (86%) diff --git a/oem/oem_ipc/www/assets/i18n/en-US.json b/oem/oem_ipc/www/assets/i18n/en-US.json index 4b432d3..94d514d 100644 --- a/oem/oem_ipc/www/assets/i18n/en-US.json +++ b/oem/oem_ipc/www/assets/i18n/en-US.json @@ -499,7 +499,7 @@ "Download": { "inquireCondition": "Inquire Condition", - "startDownload": "Start Download", + "startDownload": "Download", "stopDownload": "Stop Download", "fileType": "File Type", "startTime": "Start Time", @@ -686,7 +686,7 @@ "maxAge": "Max age", "ageOrder": "Max age should be bigger than min age!", "timeOrder": "Endtime should be bigger thatn Starttime!", - "selectFile": "Select File", + "selectFile": "Select", "noFileSelected": "No File Selected", "noFileSelectedWithLimit": "No File Selected(file size should be smaller than 1M)", "qualifiedFile": "Qualified File", diff --git a/oem/oem_ipc/www/index.html b/oem/oem_ipc/www/index.html index f9d1a56..aa6f66b 100644 --- a/oem/oem_ipc/www/index.html +++ b/oem/oem_ipc/www/index.html @@ -10,5 +10,5 @@ - + diff --git a/oem/oem_ipc/www/main-es2015.415e140c1131970eabf0.js b/oem/oem_ipc/www/main-es2015.9dc27d607e918cc95783.js similarity index 86% rename from oem/oem_ipc/www/main-es2015.415e140c1131970eabf0.js rename to oem/oem_ipc/www/main-es2015.9dc27d607e918cc95783.js index 7ca2927..b21ce2b 100644 --- a/oem/oem_ipc/www/main-es2015.415e140c1131970eabf0.js +++ b/oem/oem_ipc/www/main-es2015.9dc27d607e918cc95783.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+9CB":function(t,e,i){"use strict";var n=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],r=function(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]};t.exports={isLikelyAacData:function(t){return t[0]==="I".charCodeAt(0)&&t[1]==="D".charCodeAt(0)&&t[2]==="3".charCodeAt(0)},parseId3TagSize:function(t,e){var i=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9];return(16&t[e+5])>>4?i+20:i+10},parseAdtsSize:function(t,e){return 6144&t[e+3]|t[e+4]<<3|(224&t[e+5])>>5},parseType:function(t,e){return t[e]==="I".charCodeAt(0)&&t[e+1]==="D".charCodeAt(0)&&t[e+2]==="3".charCodeAt(0)?"timed-metadata":!0&t[e]&&240==(240&t[e+1])?"audio":null},parseSampleRate:function(t){for(var e=0;e+5>>2];e++}return null},parseAacTimestamp:function(t){var e,i,n;e=10,64&t[5]&&(e+=4,e+=r(t.subarray(10,14)));do{if((i=r(t.subarray(e+4,e+8)))<1)return null;if("PRIV"===String.fromCharCode(t[e],t[e+1],t[e+2],t[e+3])){n=t.subarray(e+10,e+i+10);for(var s=0;s>>2;return(o*=4)+(3&a[7])}break}}e+=10,e+=i}while(e=0&&t<=100}t.exports=function(){var t=100,e=3,r=0,s=100,a=0,o=100,c="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!n(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!n(t))throw new Error("RegionAnchorX must be between 0 and 100.");s=t}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(t){if(!n(t))throw new Error("RegionAnchorY must be between 0 and 100.");r=t}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(t){if(!n(t))throw new Error("ViewportAnchorY must be between 0 and 100.");o=t}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(t){if(!n(t))throw new Error("ViewportAnchorX must be between 0 and 100.");a=t}},scroll:{enumerable:!0,get:function(){return c},set:function(t){var e=function(t){return"string"==typeof t&&!!i[t.toLowerCase()]&&t.toLowerCase()}(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");c=e}}})}},"+qE3":function(t,e,i){"use strict";var n,r="object"==typeof Reflect?Reflect:null,s=r&&"function"==typeof r.apply?r.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)};n=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var c=10;function l(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function h(t,e,i,n){var r,s,a;if(l(i),void 0===(s=t._events)?(s=t._events=Object.create(null),t._eventsCount=0):(void 0!==s.newListener&&(t.emit("newListener",e,i.listener?i.listener:i),s=t._events),a=s[e]),void 0===a)a=s[e]=i,++t._eventsCount;else if("function"==typeof a?a=s[e]=n?[i,a]:[a,i]:n?a.unshift(i):a.push(i),(r=u(t))>0&&a.length>r&&!a.warned){a.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=t,o.type=e,o.count=a.length,console&&console.warn&&console.warn(o)}return t}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,i){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},r=d.bind(n);return r.listener=i,n.wrapFn=r,r}function f(t,e,i){var n=t._events;if(void 0===n)return[];var r=n[e];return void 0===r?[]:"function"==typeof r?i?[r.listener||r]:[r]:i?function(t){for(var e=new Array(t.length),i=0;i0&&(a=e[0]),a instanceof Error)throw a;var o=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var c=r[t];if(void 0===c)return!1;if("function"==typeof c)s(c,this,e);else{var l=c.length,u=g(c,l);for(i=0;i=0;s--)if(i[s]===e||i[s].listener===e){a=i[s].listener,r=s;break}if(r<0)return this;0===r?i.shift():function(t,e){for(;e+1=0;n--)this.removeListener(t,e[n]);return this},o.prototype.listeners=function(t){return f(this,t,!0)},o.prototype.rawListeners=function(t){return f(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):m.call(t,e)},o.prototype.listenerCount=m,o.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},0:function(t,e,i){t.exports=i("zUnb")},"0CSc":function(t,e,i){"use strict";var n=i("IdCN"),r=Object.prototype.toString,s=Object.prototype.hasOwnProperty,a=function(t,e,i){for(var n=0,r=t.length;n=3&&(s=i),"[object Array]"===r.call(t)?a(t,e,s):"string"==typeof t?o(t,e,s):c(t,e,s)}},"0CxO":function(t,e){var i=Object.create||function(){function t(){}return function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();function n(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function r(t){function e(t,e,i,n){return 3600*(0|t)+60*(0|e)+(0|i)+(0|n)/1e3}var i=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return i?i[3]?e(i[1],i[2],i[3].replace(":",""),i[4]):i[1]>59?e(i[1],i[2],0,i[4]):e(0,i[1],i[2],i[4]):null}function s(){this.values=i(null)}function a(t,e,i,n){var r=n?t.split(n):[t];for(var s in r)if("string"==typeof r[s]){var a=r[s].split(i);2===a.length&&e(a[0],a[1])}}function o(t,e,i){var o=t;function c(){var e=r(t);if(null===e)throw new n(n.Errors.BadTimeStamp,"Malformed timestamp: "+o);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function l(){t=t.replace(/^\s+/,"")}if(l(),e.startTime=c(),l(),"--\x3e"!==t.substr(0,3))throw new n(n.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+o);t=t.substr(3),l(),e.endTime=c(),l(),function(t,e){var n=new s;a(t,(function(t,e){switch(t){case"region":for(var r=i.length-1;r>=0;r--)if(i[r].id===e){n.set(t,i[r].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":var s=e.split(","),a=s[0];n.integer(t,a),n.percent(t,a)&&n.set("snapToLines",!1),n.alt(t,a,["auto"]),2===s.length&&n.alt("lineAlign",s[1],["start","middle","end"]);break;case"position":s=e.split(","),n.percent(t,s[0]),2===s.length&&n.alt("positionAlign",s[1],["start","middle","end"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start","middle","end","left","right"])}}),/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical",""),e.line=n.get("line","auto"),e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100),e.align=n.get("align","middle"),e.position=n.get("position",{start:0,left:0,middle:50,end:100,right:100},e.align),e.positionAlign=n.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},e.align)}(t,e)}(n.prototype=i(Error.prototype)).constructor=n,n.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,i){return i?this.has(t)?this.values[t]:e[i]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,i){for(var n=0;n=0&&e<=100)&&(this.set(t,e),!0)}};var c={"&":"&","<":"<",">":">","‎":"\u200e","‏":"\u200f"," ":"\xa0"},l={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},u={v:"title",lang:"lang"},h={rt:"ruby"};function d(t,e){function i(){if(!e)return null;var t,i=e.match(/^([^<]*)(<[^>]*>?)?/);return e=e.substr((t=i[1]?i[1]:i[2]).length),t}function n(t){return c[t]}function s(t){for(;v=t.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(v[0],n);return t}function a(t,e){return!h[e.localName]||h[e.localName]===t.localName}function o(e,i){var n=l[e];if(!n)return null;var r=t.document.createElement(n);r.localName=n;var s=u[e];return s&&i&&(r[s]=i.trim()),r}for(var d,p=t.document.createElement("div"),f=p,m=[];null!==(d=i());)if("<"!==d[0])f.appendChild(t.document.createTextNode(s(d)));else{if("/"===d[1]){m.length&&m[m.length-1]===d.substr(2).replace(">","")&&(m.pop(),f=f.parentNode);continue}var g,b=r(d.substr(1,d.length-2));if(b){g=t.document.createProcessingInstruction("timestamp",b),f.appendChild(g);continue}var v=d.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!v)continue;if(!(g=o(v[1],v[3])))continue;if(!a(f,g))continue;v[2]&&(g.className=v[2].substr(1).replace("."," ")),m.push(v[1]),f.appendChild(g),f=g}return p}var p=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function f(t){for(var e=0;e=i[0]&&t<=i[1])return!0}return!1}function m(t){var e=[],i="";if(!t||!t.childNodes)return"ltr";function n(t,e){for(var i=e.childNodes.length-1;i>=0;i--)t.push(e.childNodes[i])}function r(t){if(!t||!t.length)return null;var e=t.pop(),i=e.textContent||e.innerText;if(i){var s=i.match(/^.*(\n|\r)/);return s?(t.length=0,s[0]):i}return"ruby"===e.tagName?r(t):e.childNodes?(n(t,e),r(t)):void 0}for(n(e,t);i=r(e);)for(var s=0;s=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,i=e.textTrackList,n=0,r=0;rh&&(u=u<0?-1:1,u*=Math.ceil(h/l)*l),a<0&&(u+=""===s.vertical?i.height:i.width,o=o.reverse()),r.move(d,u)}else{var p=r.lineHeight/i.height*100;switch(s.lineAlign){case"middle":a-=p/2;break;case"end":a-=p}switch(s.vertical){case"":e.applyStyles({top:e.formatStyle(a,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(a,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(a,"%")})}o=["+y","-x","+x","-y"],r=new v(e)}var f=function(t,e){for(var r,s=new v(t),a=1,o=0;oc&&(r=new v(t),a=c),t=new v(s)}return r||s}(r,o);e.move(f.toCSSCompatValues(i))}function w(){}g.prototype.applyStyles=function(t,e){for(var i in e=e||this.div,t)t.hasOwnProperty(i)&&(e.style[i]=t[i])},g.prototype.formatStyle=function(t,e){return 0===t?0:t+e},(b.prototype=i(g.prototype)).constructor=b,v.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},v.prototype.overlaps=function(t){return this.leftt.left&&this.topt.top},v.prototype.overlapsAny=function(t){for(var e=0;e=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},v.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.leftt.right;case"+y":return this.topt.bottom}},v.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},v.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},v.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,i=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,n=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||n,height:t.height||e,bottom:t.bottom||n+(t.height||e),width:t.width||i}},w.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},w.convertCueToDOMTree=function(t,e){return t&&e?d(t,e):null},w.processCues=function(t,e,i){if(!t||!e||!i)return null;for(;i.firstChild;)i.removeChild(i.firstChild);var n=t.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",i.appendChild(n),function(t){for(var e=0;e=2?function(i){return Object(a.a)(Object(n.a)(t,e),Object(r.a)(1),Object(s.a)(e))(i)}:function(e){return Object(a.a)(Object(n.a)((e,i,n)=>t(e,i,n+1)),Object(r.a)(1))(e)}}},"1KsK":function(t,e,i){"use strict";var n=Object.prototype.toString;t.exports=function(t){var e=n.call(t),i="[object Arguments]"===e;return i||(i="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===n.call(t.callee)),i}},"1seS":function(t,e,i){"use strict";var n=Array.prototype.slice,r=i("1KsK"),s=Object.keys,a=s?function(t){return s(t)}:i("sYn3"),o=Object.keys;a.shim=function(){return Object.keys?function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2)||(Object.keys=function(t){return r(t)?o(n.call(t)):o(t)}):Object.keys=a,Object.keys||a},t.exports=a},"27QW":function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("fXoL"),r=i("qXBG"),s=i("Vmd4"),a=i("SAnJ");let o=(()=>{class t{constructor(t,e,i){this.auth=t,this.tips=e,this.pfs=i,this.errorDict={401:[{pat:/token verification failed/,todo:"logout",tip:"loginExpire"}],501:[{pat:/Not Implemented/,todo:"rbTip",tip:"responseError"}],500:[{pat:/\[json\.exception\.type_error\.304\]/,todo:"rbTip",tip:"responseError"},{pat:/json\.exception\.out_of_range\.403/,todo:"rbTip",tip:"keyLoss"}],de:{pat:"",todo:"rbTip",tip:"responseError"}}}analyseRes(t,e=null,i=null){this.analyseFunc(t,e,i)}analyseFunc(t,e,i){if(t.error){const n=t.error.code;let r=t.error.message;for(const t of this.errorDict[n])if(t.pat.test(r))return void this.actionFunc(t,e,r,i);this.actionFunc(this.errorDict.de,e,r,i)}}actionFunc(t,e,i,n){switch(t.todo){case"logout":this.auth.logout(),this.tips.setRbTip(t.tip);break;case"rbTip":throw n?this.pfs.waitNavActive(2e4,n).then(()=>{this.tips.setRbTip(e||t.tip)}).catch(()=>{console.error("res show tip fail!")}):this.tips.setRbTip(e||t.tip),i.toString()}}}return t.\u0275fac=function(e){return new(e||t)(n.Wb(r.a),n.Wb(s.a),n.Wb(a.a))},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"2QA8":function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));const n=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("XNiG"),r=i("9ppp");class s extends n.a{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.a;return this._value}next(t){super.next(this._value=t)}}},"2fFW":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));let n=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},"3D7k":function(t,e,i){"use strict";var n=i("rnXk"),r=i("JW/Y").handleRollover,s={};s.ts=i("Qj6V"),s.aac=i("+9CB");var a=function(t,e,i){for(var n,r,a,o,c=0,l=188,u=!1;l<=t.byteLength;)if(71!==t[c]||71!==t[l]&&l!==t.byteLength)c++,l++;else{switch(n=t.subarray(c,l),s.ts.parseType(n,e.pid)){case"pes":r=s.ts.parsePesType(n,e.table),a=s.ts.parsePayloadUnitStartIndicator(n),"audio"===r&&a&&(o=s.ts.parsePesTime(n))&&(o.type="audio",i.audio.push(o),u=!0)}if(u)break;c+=188,l+=188}for(c=(l=t.byteLength)-188,u=!1;c>=0;)if(71!==t[c]||71!==t[l]&&l!==t.byteLength)c--,l--;else{switch(n=t.subarray(c,l),s.ts.parseType(n,e.pid)){case"pes":r=s.ts.parsePesType(n,e.table),a=s.ts.parsePayloadUnitStartIndicator(n),"audio"===r&&a&&(o=s.ts.parsePesTime(n))&&(o.type="audio",i.audio.push(o),u=!0)}if(u)break;c-=188,l-=188}},o=function(t,e,i){for(var n,r,a,o,c,l,u,h=0,d=188,p=!1,f={data:[],size:0};d=0;)if(71!==t[h]||71!==t[d])h--,d--;else{switch(n=t.subarray(h,d),s.ts.parseType(n,e.pid)){case"pes":r=s.ts.parsePesType(n,e.table),a=s.ts.parsePayloadUnitStartIndicator(n),"video"===r&&a&&(o=s.ts.parsePesTime(n))&&(o.type="video",i.video.push(o),p=!0)}if(p)break;h-=188,d-=188}};t.exports={inspect:function(t,e){var i;return(i=s.aac.isLikelyAacData(t)?function(t){for(var e,i=!1,n=0,r=null,a=null,o=0,c=0;t.length-c>=3;){switch(s.aac.parseType(t,c)){case"timed-metadata":if(t.length-c<10){i=!0;break}if((o=s.aac.parseId3TagSize(t,c))>t.length){i=!0;break}null===a&&(e=t.subarray(c,c+o),a=s.aac.parseAacTimestamp(e)),c+=o;break;case"audio":if(t.length-c<7){i=!0;break}if((o=s.aac.parseAdtsSize(t,c))>t.length){i=!0;break}null===r&&(e=t.subarray(c,c+o),r=s.aac.parseSampleRate(e)),n++,c+=o;break;default:c++}if(i)return null}if(null===r||null===a)return null;var l=9e4/r;return{audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*n*l,pts:a+1024*n*l}]}}(t):function(t){var e={pid:null,table:null},i={};for(var r in function(t,e){for(var i,n=0,r=188;r{const n=t.length;if(0===n)return void i.complete();const r=new Array(n);let s=0,a=0;for(let o=0;o{u||(u=!0,a++),r[o]=t},error:t=>i.error(t),complete:()=>{s++,s!==n&&u||(a===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=r[i],t),{}):r),i.complete())}}))}})}i.d(e,"a",(function(){return p})),i.d(e,"b",(function(){return g})),i.d(e,"c",(function(){return Lt})),i.d(e,"d",(function(){return Wt})),i.d(e,"e",(function(){return bt})),i.d(e,"f",(function(){return Bt})),i.d(e,"g",(function(){return Nt})),i.d(e,"h",(function(){return Dt})),i.d(e,"i",(function(){return qt})),i.d(e,"j",(function(){return x})),i.d(e,"k",(function(){return T})),i.d(e,"l",(function(){return C})),i.d(e,"m",(function(){return _t})),i.d(e,"n",(function(){return Ot})),i.d(e,"o",(function(){return Q})),i.d(e,"p",(function(){return D})),i.d(e,"q",(function(){return z})),i.d(e,"r",(function(){return B})),i.d(e,"s",(function(){return $t})),i.d(e,"t",(function(){return Gt})),i.d(e,"u",(function(){return Y})),i.d(e,"v",(function(){return P})),i.d(e,"w",(function(){return J})),i.d(e,"x",(function(){return It}));const h=new n.q("NgValueAccessor"),d={provide:h,useExisting:Object(n.S)(()=>p),multi:!0};let p=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.D),n.Mb(n.l))},t.\u0275dir=n.Hb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&n.ac("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(t){return e.onTouched()}))},features:[n.yb([d])]}),t})();const f={provide:h,useExisting:Object(n.S)(()=>g),multi:!0},m=new n.q("CompositionEventMode");let g=(()=>{class t{constructor(t,e,i){this._renderer=t,this._elementRef=e,this._compositionMode=i,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(r.t)()?Object(r.t)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.D),n.Mb(n.l),n.Mb(m,8))},t.\u0275dir=n.Hb({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&n.ac("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(t){return e.onTouched()}))("compositionstart",(function(t){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[n.yb([f])]}),t})(),b=(()=>{class t{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t}),t})(),v=(()=>{class t extends b{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return y(e||t)},t.\u0275dir=n.Hb({type:t,features:[n.wb]}),t})();const y=n.Ub(v);function w(){throw new Error("unimplemented")}class S extends b{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return w()}get asyncValidator(){return w()}}class _{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let T=(()=>{class t extends _{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(S,2))},t.\u0275dir=n.Hb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.Eb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[n.wb]}),t})(),C=(()=>{class t extends _{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(v,2))},t.\u0275dir=n.Hb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.Eb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[n.wb]}),t})();function k(t){return null==t||0===t.length}const x=new n.q("NgValidators"),R=new n.q("NgAsyncValidators"),E=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[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])?)*$/;class P{static min(t){return e=>{if(k(e.value)||k(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(k(e.value)||k(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}static required(t){return k(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return k(t.value)?null:E.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(k(e.value))return null;const i=e.value?e.value.length:0;return i{const i=e.value?e.value.length:0;return i>t?{maxlength:{requiredLength:t,actualLength:i}}:null}}static pattern(t){if(!t)return P.nullValidator;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(k(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(O);return 0==e.length?null:function(t){return A(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(O);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(Object(a.a)(e))return u(e,null);if(Object(c.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return u(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return u(t=1===t.length&&Object(a.a)(t[0])?t[0]:t,null).pipe(Object(o.a)(t=>e(...t)))}return u(t,null)}(function(t,e){return e.map(e=>e(t))}(t,e).map(I)).pipe(Object(o.a)(A))}}}function O(t){return null!=t}function I(t){const e=Object(n.qb)(t)?Object(l.a)(t):t;if(!Object(n.pb)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function A(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function M(t){return t.validate?e=>t.validate(e):t}function N(t){return t.validate?e=>t.validate(e):t}const j={provide:h,useExisting:Object(n.S)(()=>D),multi:!0};let D=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.D),n.Mb(n.l))},t.\u0275dir=n.Hb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&n.ac("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(t){return e.onTouched()}))},features:[n.yb([j])]}),t})();const F={provide:h,useExisting:Object(n.S)(()=>z),multi:!0};let L=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})(),z=(()=>{class t{constructor(t,e,i,n){this._renderer=t,this._elementRef=e,this._registry=i,this._injector=n,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(S),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.D),n.Mb(n.l),n.Mb(L),n.Mb(n.r))},t.\u0275dir=n.Hb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&n.ac("change",(function(t){return e.onChange()}))("blur",(function(t){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[n.yb([F])]}),t})();const U={provide:h,useExisting:Object(n.S)(()=>B),multi:!0};let B=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.D),n.Mb(n.l))},t.\u0275dir=n.Hb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&n.ac("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(t){return e.onTouched()}))},features:[n.yb([U])]}),t})();const V='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',G='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',H='\n
\n
\n \n
\n
';class W{static controlParentException(){throw new Error(`formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${V}`)}static ngModelGroupException(){throw new Error(`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n ${G}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${H}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${V}`)}static groupParentException(){throw new Error(`formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${G}`)}static arrayParentException(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')}static disabledAttrWarning(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")}static ngModelWarning(t){console.warn(`\n It looks like you're using ngModel on the same form field as ${t}. \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/${"formControl"===t?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n `)}}const q={provide:h,useExisting:Object(n.S)(()=>Y),multi:!0};function $(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Y=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=n.rb}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const i=$(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",i)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.D),n.Mb(n.l))},t.\u0275dir=n.Hb({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&n.ac("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(t){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[n.yb([q])]}),t})(),Q=(()=>{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue($(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.l),n.Mb(n.D),n.Mb(Y,9))},t.\u0275dir=n.Hb({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const X={provide:h,useExisting:Object(n.S)(()=>Z),multi:!0};function K(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Z=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=n.rb}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const i=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(i.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const i=[];if(e.hasOwnProperty("selectedOptions")){const t=e.selectedOptions;for(let e=0;e{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(K(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(K(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.l),n.Mb(n.D),n.Mb(Z,9))},t.\u0275dir=n.Hb({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function tt(t,e){return[...e.path,t]}function et(t,e){t||st(e,"Cannot find control with"),e.valueAccessor||st(e,"No value accessor for form control with"),t.validator=P.compose([t.validator,e.validator]),t.asyncValidator=P.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&it(t,e)})}(t,e),function(t,e){t.registerOnChange((t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&it(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function it(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function nt(t,e){null==t&&st(e,"Cannot find control with"),t.validator=P.compose([t.validator,e.validator]),t.asyncValidator=P.composeAsync([t.asyncValidator,e.asyncValidator])}function rt(t){return st(t,"There is no FormControl instance attached to form control element with")}function st(t,e){let i;throw i=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${i}`)}function at(t){return null!=t?P.compose(t.map(M)):null}function ot(t){return null!=t?P.composeAsync(t.map(N)):null}function ct(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object(n.rb)(e,i.currentValue)}const lt=[p,B,D,Y,Z,z];function ut(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function ht(t,e){if(!e)return null;Array.isArray(e)||st(t,"Value accessor was not provided as an array for form control with");let i=void 0,n=void 0,r=void 0;return e.forEach(e=>{var s;e.constructor===g?i=e:(s=e,lt.some(t=>s.constructor===t)?(n&&st(t,"More than one built-in value accessor matches form control with"),n=e):(r&&st(t,"More than one custom value accessor matches form control with"),r=e))}),r||n||i||(st(t,"No valid value accessor for form control with"),null)}function dt(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function pt(t){const e=mt(t)?t.validators:t;return Array.isArray(e)?at(e):e||null}function ft(t,e){const i=mt(e)?e.asyncValidators:t;return Array.isArray(i)?ot(i):i||null}function mt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class gt{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this.validator=pt(t)}setAsyncValidators(t){this.asyncValidator=ft(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING";const e=I(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof vt?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof yt&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new n.n,this.statusChanges=new n.n}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){mt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class bt extends gt{constructor(t=null,e,i){super(pt(e),ft(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class vt extends gt{constructor(t,e,i){super(pt(e),ft(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof bt?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){let e=!1;return this._forEachChild((i,n)=>{e=e||this.contains(n)&&t(i)}),e}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class yt extends gt{constructor(t,e,i){super(pt(e),ft(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof bt?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const wt={provide:v,useExisting:Object(n.S)(()=>_t)},St=(()=>Promise.resolve(null))();let _t=(()=>{class t extends v{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new n.n,this.form=new vt({},at(t),ot(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){St.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),et(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){St.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),dt(this._directives,t)})}addFormGroup(t){St.then(()=>{const e=this._findContainer(t.path),i=new vt({});nt(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){St.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){St.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,ut(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(x,10),n.Mb(R,10))},t.\u0275dir=n.Hb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&n.ac("submit",(function(t){return e.onSubmit(t)}))("reset",(function(t){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.yb([wt]),n.wb]}),t})(),Tt=(()=>{class t extends v{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return tt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return at(this._validators)}get asyncValidator(){return ot(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return Ct(e||t)},t.\u0275dir=n.Hb({type:t,features:[n.wb]}),t})();const Ct=n.Ub(Tt);class kt{static modelParentException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup's partner directive "formControlName" instead. Example:\n\n ${V}\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n `)}static formGroupNameException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ${G}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${H}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')}static modelGroupParentException(){throw new Error(`\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ${G}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${H}`)}}const xt={provide:v,useExisting:Object(n.S)(()=>Rt)};let Rt=(()=>{class t extends Tt{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){this._parent instanceof t||this._parent instanceof _t||kt.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(v,5),n.Mb(x,10),n.Mb(R,10))},t.\u0275dir=n.Hb({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[n.yb([xt]),n.wb]}),t})();const Et={provide:S,useExisting:Object(n.S)(()=>Ot)},Pt=(()=>Promise.resolve(null))();let Ot=(()=>{class t extends S{constructor(t,e,i,r){super(),this.control=new bt,this._registered=!1,this.update=new n.n,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=ht(this,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),ct(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?tt(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return at(this._rawValidators)}get asyncValidator(){return ot(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){et(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof Rt)&&this._parent instanceof Tt?kt.formGroupNameException():this._parent instanceof Rt||this._parent instanceof _t||kt.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||kt.missingNameException()}_updateValue(t){Pt.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;Pt.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(v,9),n.Mb(x,10),n.Mb(R,10),n.Mb(h,10))},t.\u0275dir=n.Hb({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n.yb([Et]),n.wb,n.xb()]}),t})(),It=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const At=new n.q("NgModelWithFormControlWarning"),Mt={provide:v,useExisting:Object(n.S)(()=>Nt)};let Nt=(()=>{class t extends v{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new n.n}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return et(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){dt(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);nt(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);nt(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,ut(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){e.valueAccessor.registerOnChange(()=>rt(e)),e.valueAccessor.registerOnTouched(()=>rt(e)),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&et(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=at(this._validators);this.form.validator=P.compose([this.form.validator,t]);const e=ot(this._asyncValidators);this.form.asyncValidator=P.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||W.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(x,10),n.Mb(R,10))},t.\u0275dir=n.Hb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&n.ac("submit",(function(t){return e.onSubmit(t)}))("reset",(function(t){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.yb([Mt]),n.wb,n.xb()]}),t})();const jt={provide:v,useExisting:Object(n.S)(()=>Dt)};let Dt=(()=>{class t extends Tt{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){zt(this._parent)&&W.groupParentException()}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(v,13),n.Mb(x,10),n.Mb(R,10))},t.\u0275dir=n.Hb({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[n.yb([jt]),n.wb]}),t})();const Ft={provide:v,useExisting:Object(n.S)(()=>Lt)};let Lt=(()=>{class t extends v{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return tt(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return at(this._validators)}get asyncValidator(){return ot(this._asyncValidators)}_checkParentType(){zt(this._parent)&&W.arrayParentException()}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(v,13),n.Mb(x,10),n.Mb(R,10))},t.\u0275dir=n.Hb({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[n.yb([Ft]),n.wb]}),t})();function zt(t){return!(t instanceof Dt||t instanceof Nt||t instanceof Lt)}const Ut={provide:S,useExisting:Object(n.S)(()=>Bt)};let Bt=(()=>{class t extends S{constructor(t,e,i,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new n.n,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=ht(this,r)}set isDisabled(t){W.disabledAttrWarning()}ngOnChanges(e){this._added||this._setUpControl(),ct(e,this.viewModel)&&(function(t,e,i,r){Object(n.T)()&&"never"!==r&&((null!==r&&"once"!==r||e._ngModelWarningSentOnce)&&("always"!==r||i._ngModelWarningSent)||(W.ngModelWarning("formControlName"),e._ngModelWarningSentOnce=!0,i._ngModelWarningSent=!0))}(0,t,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return tt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return at(this._rawValidators)}get asyncValidator(){return ot(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof Dt)&&this._parent instanceof Tt?W.ngModelGroupException():this._parent instanceof Dt||this._parent instanceof Nt||this._parent instanceof Lt||W.controlParentException()}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(v,13),n.Mb(x,10),n.Mb(R,10),n.Mb(h,10),n.Mb(At,8))},t.\u0275dir=n.Hb({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n.yb([Ut]),n.wb,n.xb()]}),t._ngModelWarningSentOnce=!1,t})();const Vt={provide:x,useExisting:Object(n.S)(()=>Gt),multi:!0};let Gt=(()=>{class t{get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!==`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?P.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&n.Ab("required",e.required?"":null)},inputs:{required:"required"},features:[n.yb([Vt])]}),t})(),Ht=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)}}),t})(),Wt=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n=null,r=null,s=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(n=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,s=null!=e.updateOn?e.updateOn:void 0):(n=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new vt(i,{asyncValidators:r,updateOn:s,validators:n})}control(t,e,i){return new bt(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new yt(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof bt||t instanceof vt||t instanceof yt?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})(),qt=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},providers:[L],imports:[Ht]}),t})(),$t=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:At,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},providers:[Wt,L],imports:[Ht]}),t})()},"3zPy":function(t,e){function i(t){if(t&&"object"==typeof t){var e=t.which||t.keyCode||t.charCode;e&&(t=e)}if("number"==typeof t)return a[t];var i,s=String(t);return(i=n[s.toLowerCase()])?i:(i=r[s.toLowerCase()])||(1===s.length?s.charCodeAt(0):void 0)}i.isEventKey=function(t,e){if(t&&"object"==typeof t){var i=t.which||t.keyCode||t.charCode;if(null==i)return!1;if("string"==typeof e){var s;if(s=n[e.toLowerCase()])return s===i;if(s=r[e.toLowerCase()])return s===i}else if("number"==typeof e)return e===i;return!1}};var n=(e=t.exports=i).code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=e.aliases={windows:91,"\u21e7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(s=97;s<123;s++)n[String.fromCharCode(s)]=s-32;for(var s=48;s<58;s++)n[s-48]=s;for(s=1;s<13;s++)n["f"+s]=s+111;for(s=0;s<10;s++)n["numpad "+s]=s+96;var a=e.names=e.title={};for(s in n)a[n[s]]=s;for(var o in r)n[o]=r[o]},"49sm":function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},"4I5i":function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));const n=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},"4npW":function(t,e,i){!function(t){t.parser=function(t,e){return new r(t,e)},t.SAXParser=r,t.SAXStream=a,t.createStream=function(t,e){return new a(t,e)},t.MAX_BUFFER_LENGTH=65536;var e,n=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function r(e,i){if(!(this instanceof r))return new r(e,i);!function(t){for(var e=0,i=n.length;e"===c?(C(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=S.TEXT):f(c)?(this.state=S.SGML_DECL_QUOTED,this.sgmlDecl+=c):this.sgmlDecl+=c;continue;case S.SGML_DECL_QUOTED:c===this.q&&(this.state=S.SGML_DECL,this.q=""),this.sgmlDecl+=c;continue;case S.DOCTYPE:">"===c?(this.state=S.TEXT,C(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=c,"["===c?this.state=S.DOCTYPE_DTD:f(c)&&(this.state=S.DOCTYPE_QUOTED,this.q=c));continue;case S.DOCTYPE_QUOTED:this.doctype+=c,c===this.q&&(this.q="",this.state=S.DOCTYPE);continue;case S.DOCTYPE_DTD:this.doctype+=c,"]"===c?this.state=S.DOCTYPE:f(c)&&(this.state=S.DOCTYPE_DTD_QUOTED,this.q=c);continue;case S.DOCTYPE_DTD_QUOTED:this.doctype+=c,c===this.q&&(this.state=S.DOCTYPE_DTD,this.q="");continue;case S.COMMENT:"-"===c?this.state=S.COMMENT_ENDING:this.comment+=c;continue;case S.COMMENT_ENDING:"-"===c?(this.state=S.COMMENT_ENDED,this.comment=x(this.opt,this.comment),this.comment&&C(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+c,this.state=S.COMMENT);continue;case S.COMMENT_ENDED:">"!==c?(P(this,"Malformed comment"),this.comment+="--"+c,this.state=S.COMMENT):this.state=S.TEXT;continue;case S.CDATA:"]"===c?this.state=S.CDATA_ENDING:this.cdata+=c;continue;case S.CDATA_ENDING:"]"===c?this.state=S.CDATA_ENDING_2:(this.cdata+="]"+c,this.state=S.CDATA);continue;case S.CDATA_ENDING_2:">"===c?(this.cdata&&C(this,"oncdata",this.cdata),C(this,"onclosecdata"),this.cdata="",this.state=S.TEXT):"]"===c?this.cdata+="]":(this.cdata+="]]"+c,this.state=S.CDATA);continue;case S.PROC_INST:"?"===c?this.state=S.PROC_INST_ENDING:p(c)?this.state=S.PROC_INST_BODY:this.procInstName+=c;continue;case S.PROC_INST_BODY:if(!this.procInstBody&&p(c))continue;"?"===c?this.state=S.PROC_INST_ENDING:this.procInstBody+=c;continue;case S.PROC_INST_ENDING:">"===c?(C(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}),this.procInstName=this.procInstBody="",this.state=S.TEXT):(this.procInstBody+="?"+c,this.state=S.PROC_INST_BODY);continue;case S.OPEN_TAG:g(u,c)?this.tagName+=c:(O(this),">"===c?M(this):"/"===c?this.state=S.OPEN_TAG_SLASH:(p(c)||P(this,"Invalid character in tag name"),this.state=S.ATTRIB));continue;case S.OPEN_TAG_SLASH:">"===c?(M(this,!0),N(this)):(P(this,"Forward-slash in opening tag not followed by >"),this.state=S.ATTRIB);continue;case S.ATTRIB:if(p(c))continue;">"===c?M(this):"/"===c?this.state=S.OPEN_TAG_SLASH:g(l,c)?(this.attribName=c,this.attribValue="",this.state=S.ATTRIB_NAME):P(this,"Invalid attribute name");continue;case S.ATTRIB_NAME:"="===c?this.state=S.ATTRIB_VALUE:">"===c?(P(this,"Attribute without value"),this.attribValue=this.attribName,A(this),M(this)):p(c)?this.state=S.ATTRIB_NAME_SAW_WHITE:g(u,c)?this.attribName+=c:P(this,"Invalid attribute name");continue;case S.ATTRIB_NAME_SAW_WHITE:if("="===c)this.state=S.ATTRIB_VALUE;else{if(p(c))continue;P(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",C(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===c?M(this):g(l,c)?(this.attribName=c,this.state=S.ATTRIB_NAME):(P(this,"Invalid attribute name"),this.state=S.ATTRIB)}continue;case S.ATTRIB_VALUE:if(p(c))continue;f(c)?(this.q=c,this.state=S.ATTRIB_VALUE_QUOTED):(P(this,"Unquoted attribute value"),this.state=S.ATTRIB_VALUE_UNQUOTED,this.attribValue=c);continue;case S.ATTRIB_VALUE_QUOTED:if(c!==this.q){"&"===c?this.state=S.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=c;continue}A(this),this.q="",this.state=S.ATTRIB_VALUE_CLOSED;continue;case S.ATTRIB_VALUE_CLOSED:p(c)?this.state=S.ATTRIB:">"===c?M(this):"/"===c?this.state=S.OPEN_TAG_SLASH:g(l,c)?(P(this,"No whitespace between attributes"),this.attribName=c,this.attribValue="",this.state=S.ATTRIB_NAME):P(this,"Invalid attribute name");continue;case S.ATTRIB_VALUE_UNQUOTED:if(!m(c)){"&"===c?this.state=S.ATTRIB_VALUE_ENTITY_U:this.attribValue+=c;continue}A(this),">"===c?M(this):this.state=S.ATTRIB;continue;case S.CLOSE_TAG:if(this.tagName)">"===c?N(this):g(u,c)?this.tagName+=c:this.script?(this.script+=""===c?N(this):P(this,"Invalid characters in closing tag");continue;case S.TEXT_ENTITY:case S.ATTRIB_VALUE_ENTITY_Q:case S.ATTRIB_VALUE_ENTITY_U:var y,w;switch(this.state){case S.TEXT_ENTITY:y=S.TEXT,w="textNode";break;case S.ATTRIB_VALUE_ENTITY_Q:y=S.ATTRIB_VALUE_QUOTED,w="attribValue";break;case S.ATTRIB_VALUE_ENTITY_U:y=S.ATTRIB_VALUE_UNQUOTED,w="attribValue"}";"===c?(this[w]+=(i=void 0,r=void 0,void 0,a=void 0,s=(r=this.entity).toLowerCase(),a="",this.ENTITIES[r]?this.ENTITIES[r]:this.ENTITIES[s]?this.ENTITIES[s]:("#"===(r=s).charAt(0)&&("x"===r.charAt(1)?(r=r.slice(2),a=(i=parseInt(r,16)).toString(16)):(r=r.slice(1),a=(i=parseInt(r,10)).toString(10))),r=r.replace(/^0+/,""),isNaN(i)||a.toLowerCase()!==r?(P(this,"Invalid character entity"),"&"+this.entity+";"):String.fromCodePoint(i))),this.entity="",this.state=y):g(this.entity.length?d:h,c)?this.entity+=c:(P(this,"Invalid character in entity name"),this[w]+="&"+this.entity+c,this.entity="",this.state=y);continue;default:throw new Error(this,"Unknown state: "+this.state)}return this.position>=this.bufferCheckPosition&&function(e){for(var i=Math.max(t.MAX_BUFFER_LENGTH,10),r=0,s=0,a=n.length;si)switch(n[s]){case"textNode":k(e);break;case"cdata":C(e,"oncdata",e.cdata),e.cdata="";break;case"script":C(e,"onscript",e.script),e.script="";break;default:R(e,"Max buffer length exceeded: "+n[s])}r=Math.max(r,o)}e.bufferCheckPosition=t.MAX_BUFFER_LENGTH-r+e.position}(this),this},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){k(this),""!==this.cdata&&(C(this,"oncdata",this.cdata),this.cdata=""),""!==this.script&&(C(this,"onscript",this.script),this.script="")}};try{e=i("DD3b").Stream}catch(F){e=function(){}}var s=t.EVENTS.filter((function(t){return"error"!==t&&"end"!==t}));function a(t,i){if(!(this instanceof a))return new a(t,i);e.apply(this),this._parser=new r(t,i),this.writable=!0,this.readable=!0;var n=this;this._parser.onend=function(){n.emit("end")},this._parser.onerror=function(t){n.emit("error",t),n._parser.error=null},this._decoder=null,s.forEach((function(t){Object.defineProperty(n,"on"+t,{get:function(){return n._parser["on"+t]},set:function(e){if(!e)return n.removeAllListeners(t),n._parser["on"+t]=e,e;n.on(t,e)},enumerable:!0,configurable:!1})}))}(a.prototype=Object.create(e.prototype,{constructor:{value:a}})).write=function(t){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(t)){if(!this._decoder){var e=i("fXKp").StringDecoder;this._decoder=new e("utf8")}t=this._decoder.write(t)}return this._parser.write(t.toString()),this.emit("data",t),!0},a.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},a.prototype.on=function(t,i){var n=this;return n._parser["on"+t]||-1===s.indexOf(t)||(n._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),n.emit.apply(n,e)}),e.prototype.on.call(n,t,i)};var o="http://www.w3.org/XML/1998/namespace",c={xml:o,xmlns:"http://www.w3.org/2000/xmlns/"},l=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,u=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,h=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function p(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function f(t){return'"'===t||"'"===t}function m(t){return">"===t||p(t)}function g(t,e){return t.test(e)}function b(t,e){return!g(t,e)}var v,y,w,S=0;for(var _ in t.STATE={BEGIN:S++,BEGIN_WHITESPACE:S++,TEXT:S++,TEXT_ENTITY:S++,OPEN_WAKA:S++,SGML_DECL:S++,SGML_DECL_QUOTED:S++,DOCTYPE:S++,DOCTYPE_QUOTED:S++,DOCTYPE_DTD:S++,DOCTYPE_DTD_QUOTED:S++,COMMENT_STARTING:S++,COMMENT:S++,COMMENT_ENDING:S++,COMMENT_ENDED:S++,CDATA:S++,CDATA_ENDING:S++,CDATA_ENDING_2:S++,PROC_INST:S++,PROC_INST_BODY:S++,PROC_INST_ENDING:S++,OPEN_TAG:S++,OPEN_TAG_SLASH:S++,ATTRIB:S++,ATTRIB_NAME:S++,ATTRIB_NAME_SAW_WHITE:S++,ATTRIB_VALUE:S++,ATTRIB_VALUE_QUOTED:S++,ATTRIB_VALUE_CLOSED:S++,ATTRIB_VALUE_UNQUOTED:S++,ATTRIB_VALUE_ENTITY_Q:S++,ATTRIB_VALUE_ENTITY_U:S++,CLOSE_TAG:S++,CLOSE_TAG_SAW_WHITE:S++,SCRIPT:S++,SCRIPT_ENDING:S++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach((function(e){var i=t.ENTITIES[e],n="number"==typeof i?String.fromCharCode(i):i;t.ENTITIES[e]=n})),t.STATE)t.STATE[t.STATE[_]]=_;function T(t,e,i){t[e]&&t[e](i)}function C(t,e,i){t.textNode&&k(t),T(t,e,i)}function k(t){t.textNode=x(t.opt,t.textNode),t.textNode&&T(t,"ontext",t.textNode),t.textNode=""}function x(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function R(t,e){return k(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,T(t,"onerror",e),t}function E(t){return t.sawRoot&&!t.closedRoot&&P(t,"Unclosed root tag"),t.state!==S.BEGIN&&t.state!==S.BEGIN_WHITESPACE&&t.state!==S.TEXT&&R(t,"Unexpected end"),k(t),t.c="",t.closed=!0,T(t,"onend"),r.call(t,t.strict,t.opt),t}function P(t,e){if("object"!=typeof t||!(t instanceof r))throw new Error("bad call to strictFail");t.strict&&R(t,e)}function O(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,i=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(i.ns=e.ns),t.attribList.length=0,C(t,"onopentagstart",i)}function I(t,e){var i=t.indexOf(":")<0?["",t]:t.split(":"),n=i[0],r=i[1];return e&&"xmlns"===t&&(n="xmlns",r=""),{prefix:n,local:r}}function A(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))t.attribName=t.attribValue="";else{if(t.opt.xmlns){var e=I(t.attribName,!0),i=e.local;if("xmlns"===e.prefix)if("xml"===i&&t.attribValue!==o)P(t,"xml: prefix must be bound to "+o+"\nActual: "+t.attribValue);else if("xmlns"===i&&"http://www.w3.org/2000/xmlns/"!==t.attribValue)P(t,"xmlns: prefix must be bound to http://www.w3.org/2000/xmlns/\nActual: "+t.attribValue);else{var n=t.tag,r=t.tags[t.tags.length-1]||t;n.ns===r.ns&&(n.ns=Object.create(r.ns)),n.ns[i]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,C(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}}function M(t,e){if(t.opt.xmlns){var i=t.tag,n=I(t.tagName);i.prefix=n.prefix,i.local=n.local,i.uri=i.ns[n.prefix]||"",i.prefix&&!i.uri&&(P(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),i.uri=n.prefix),i.ns&&(t.tags[t.tags.length-1]||t).ns!==i.ns&&Object.keys(i.ns).forEach((function(e){C(t,"onopennamespace",{prefix:e,uri:i.ns[e]})}));for(var r=0,s=t.attribList.length;r",t.tagName="",void(t.state=S.SCRIPT);C(t,"onscript",t.script),t.script=""}var e=t.tags.length,i=t.tagName;t.strict||(i=i[t.looseCase]());for(var n=i;e--&&t.tags[e].name!==n;)P(t,"Unexpected close tag");if(e<0)return P(t,"Unmatched closing tag: "+t.tagName),t.textNode+="",void(t.state=S.TEXT);t.tagName=i;for(var r=t.tags.length;r-- >e;){var s=t.tag=t.tags.pop();t.tagName=t.tag.name,C(t,"onclosetag",t.tagName);var a={};for(var o in s.ns)a[o]=s.ns[o];t.opt.xmlns&&s.ns!==(t.tags[t.tags.length-1]||t).ns&&Object.keys(s.ns).forEach((function(e){C(t,"onclosenamespace",{prefix:e,uri:s.ns[e]})}))}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=S.TEXT}function j(t,e){"<"===e?(t.state=S.OPEN_WAKA,t.startTagPosition=t.position):p(e)||(P(t,"Non-whitespace before first tag."),t.textNode=e,t.state=S.TEXT)}function D(t,e){var i="";return e1114111||y(s)!==s)throw RangeError("Invalid code point: "+s);s<=65535?e.push(s):e.push(55296+((s-=65536)>>10),s%1024+56320),(i+1===n||e.length>t)&&(r+=v.apply(null,e),e.length=0)}return r},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:w,configurable:!0,writable:!0}):String.fromCodePoint=w)}(e)},"5+tZ":function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("ZUHj"),r=i("l7GE"),s=i("51Dv"),a=i("lJxs"),o=i("Cfvw");function c(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(c((i,n)=>Object(o.a)(t(i,n)).pipe(Object(a.a)((t,r)=>e(i,t,n,r))),i)):("number"==typeof e&&(i=e),e=>e.lift(new l(t,i)))}class l{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new u(t,this.project,this.concurrent))}}class u extends r.a{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"51Dv":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("7o/Q");class r extends n.a{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},"62BN":function(t,e){e.every=function(t){return new r(t)};var i={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5};for(var n in i)"millisecond"===n?i.ms=i[n]:i[n.charAt(0)]=i[n],i[n+"s"]=i[n];function r(t){this.count=0;var e=function(t){var e=t.match(s);return e&&i[e[2]]?e.slice(1):null}(t);e&&(this.time=Number(e[0])*i[e[1]],this.type=e[1])}r.prototype.do=function(t){this.time&&(this.interval=setInterval((function(){e.count++,t.call(e)}),this.time));var e=this;return this},r.prototype.stop=function(){return this.interval&&(clearInterval(this.interval),delete this.interval),this};var s=/^\s*(\d+(?:\.\d+)?)\s*([a-z]+)\s*$/},"6MUB":function(t,e,i){"use strict";var n=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,i,r){return e=e||"&",i=i||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map((function(r){var s=encodeURIComponent(n(r))+i;return Array.isArray(t[r])?t[r].map((function(t){return s+encodeURIComponent(n(t))})).join(e):s+encodeURIComponent(n(t[r]))})).join(e):r?encodeURIComponent(n(r))+i+encodeURIComponent(n(t)):""}},"6ayh":function(t,e,i){"use strict";var n=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,s=Object.getPrototypeOf||function(t){return t.__proto__},a="undefined"==typeof Uint8Array?void 0:s(Uint8Array),o={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":r?s([][Symbol.iterator]()):void 0,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":void 0,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":void 0,"$ %AsyncGenerator%":void 0,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":void 0,"$ %AsyncIteratorPrototype%":void 0,"$ %Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?void 0:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":void 0,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":void 0,"$ %Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":r?s(s([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&r?s((new Map)[Symbol.iterator]()):void 0,"$ %MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?void 0:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?void 0:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&r?s((new Set)[Symbol.iterator]()):void 0,"$ %SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":r?s(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":r?Symbol:void 0,"$ %SymbolPrototype%":r?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":n,"$ %TypedArray%":a,"$ %TypedArrayPrototype%":a?a.prototype:void 0,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype};t.exports=function(t,e){if(arguments.length>1&&"boolean"!=typeof e)throw new TypeError('"allowMissing" argument must be a boolean');var i="$ "+t;if(!(i in o))throw new SyntaxError("intrinsic "+t+" does not exist!");if(void 0===o[i]&&!e)throw new TypeError("intrinsic "+t+" exists, but is not available. Please file an issue!");return o[i]}},"6bNy":function(t,e){var i;i="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t.exports=i},"7ZPM":function(t,e){t.exports={clearDtsInfo:function(t){delete t.minSegmentDts,delete t.maxSegmentDts,delete t.minSegmentPts,delete t.maxSegmentPts},calculateTrackBaseMediaDecodeTime:function(t,e){var i,n=t.minSegmentDts;return e||(n-=t.timelineStartInfo.dts),i=t.timelineStartInfo.baseMediaDecodeTime,i+=n,i=Math.max(0,i),"audio"===t.type&&(i*=t.samplerate/9e4,i=Math.floor(i)),i},collectDtsInfo:function(t,e){"number"==typeof e.pts&&(void 0===t.timelineStartInfo.pts&&(t.timelineStartInfo.pts=e.pts),t.minSegmentPts=void 0===t.minSegmentPts?e.pts:Math.min(t.minSegmentPts,e.pts),t.maxSegmentPts=void 0===t.maxSegmentPts?e.pts:Math.max(t.maxSegmentPts,e.pts)),"number"==typeof e.dts&&(void 0===t.timelineStartInfo.dts&&(t.timelineStartInfo.dts=e.dts),t.minSegmentDts=void 0===t.minSegmentDts?e.dts:Math.min(t.minSegmentDts,e.dts),t.maxSegmentDts=void 0===t.maxSegmentDts?e.dts:Math.max(t.maxSegmentDts,e.dts))}}},"7o/Q":function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("n6bG"),r=i("gRHU"),s=i("quSY"),a=i("2QA8"),o=i("2fFW"),c=i("NJ4a");class l extends s.a{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=r.a;break;case 1:if(!t){this.destination=r.a;break}if("object"==typeof t){t instanceof l?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,i)}}[a.a](){return this}static create(t,e,i){const n=new l(t,e,i);return n.syncErrorThrowable=!1,n}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends l{constructor(t,e,i,s){let a;super(),this._parentSubscriber=t;let o=this;Object(n.a)(e)?a=e:e&&(a=e.next,i=e.error,s=e.complete,e!==r.a&&(o=Object.create(e),Object(n.a)(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=a,this._error=i,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;o.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=o.a;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(c.a)(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;Object(c.a)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);o.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),o.a.useDeprecatedSynchronousErrorHandling)throw i;Object(c.a)(i)}}__tryOrSetError(t,e,i){if(!o.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return o.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):(Object(c.a)(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"7sSp":function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("ofXK"),r=i("sYmb"),s=i("tk/3"),a=i("mqiu"),o=i("fXoL");function c(t){return new a.a(t)}let l=(()=>{class t{}return t.\u0275mod=o.Kb({type:t}),t.\u0275inj=o.Jb({factory:function(e){return new(e||t)},imports:[[n.c,r.b.forRoot({loader:{provide:r.a,useFactory:c,deps:[s.b]}})]]}),t})()},"7sdD":function(t,e,i){"use strict";var n=i("6bNy"),r=i("g2LC"),s=i("ZESv"),a=i("U6jy");function o(t,e,i){var n=t;return r(e)?(i=e,"string"==typeof t&&(n={uri:t})):n=a(e,{uri:t}),n.callback=i,n}function c(t,e,i){return l(e=o(t,e,i))}function l(t){if(void 0===t.callback)throw new Error("callback argument missing");var e=!1,i=function(i,n,r){e||(e=!0,t.callback(i,n,r))};function n(){var t=void 0;if(t=u.response?u.response:u.responseText||function(t){return"document"===t.responseType?t.responseXML:""!==t.responseType||t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName?null:t.responseXML}(u),b)try{t=JSON.parse(t)}catch(e){}return t}function r(t){return clearTimeout(h),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,i(t,v)}function a(){if(!l){var e;clearTimeout(h);var r=v,a=null;return 0!==(e=t.useXDR&&void 0===u.status?200:1223===u.status?204:u.status)?(r={body:n(),statusCode:e,method:p,headers:{},url:d,rawRequest:u},u.getAllResponseHeaders&&(r.headers=s(u.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),i(a,r,r.body)}}var o,l,u=t.xhr||null;u||(u=t.cors||t.useXDR?new c.XDomainRequest:new c.XMLHttpRequest);var h,d=u.url=t.uri||t.url,p=u.method=t.method||"GET",f=t.body||t.data,m=u.headers=t.headers||{},g=!!t.sync,b=!1,v={body:void 0,headers:{},statusCode:0,method:p,url:d,rawRequest:u};if("json"in t&&!1!==t.json&&(b=!0,m.accept||m.Accept||(m.Accept="application/json"),"GET"!==p&&"HEAD"!==p&&(m["content-type"]||m["Content-Type"]||(m["Content-Type"]="application/json"),f=JSON.stringify(!0===t.json?f:t.json))),u.onreadystatechange=function(){4===u.readyState&&setTimeout(a,0)},u.onload=a,u.onerror=r,u.onprogress=function(){},u.onabort=function(){l=!0},u.ontimeout=r,u.open(p,d,!g,t.username,t.password),g||(u.withCredentials=!!t.withCredentials),!g&&t.timeout>0&&(h=setTimeout((function(){if(!l){l=!0,u.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",r(t)}}),t.timeout)),u.setRequestHeader)for(o in m)m.hasOwnProperty(o)&&u.setRequestHeader(o,m[o]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(u.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(u),u.send(f||null),u}t.exports=c,c.XMLHttpRequest=n.XMLHttpRequest||function(){},c.XDomainRequest="withCredentials"in new c.XMLHttpRequest?c.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var i=0;i2?arguments[2]:{},s=n(e);r&&(s=a.call(s,Object.getOwnPropertySymbols(e)));for(var o=0;o{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},AytR:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));const n={production:!0,serverUrl:"/cgi-bin/entry.cgi",scenarioUrl:"/image/0/scenario",osdUrl:"/osd/overlays",lanUrl:"/network/lan",wlanUrl:"/network/wlan",infoUrl:"/system/device-info",privacyMaskUrl:"/osd/privacy-mask",pictureMaskUrl:"/osd/image/picture",picMaskUrl:"/osd/image",wifiEnableUrl:"/network/wifi",wifiOnUrl:"/network/wifi?power=on",wifiOffUrl:"/network/wifi?power=off",wifiListUrl:"/network/wifi-list",scanWifiUrl:"/network/wifi?scan=1",wifiDeleteUrl:"/network/wifi?service=",upgradeNumUrl:"/system/firmware-upgrade?upload-type=resumable",upgradeUrl:"/system/firmware-upgrade?id=",quotaUrl:"/storage/quota/",hddListUrl:"/storage/hdd-list",formatUrl:"/storage/format/",searchUrl:"/storage/search",reviewDeleteUrl:"/storage/delete",ttlRoiUrl:"/roi",regionCropUrl:"/video/2/region-clip",motionRegionUrl:"/event/motion-detection/0",motionLinkageUrl:"/event/triggers/vmd_0",rebootUrl:"/system/reboot",factoryResetUrl:"/system/factory-reset",upgradeEndUrl:"/system/firmware-upgrade?start=",freeRoomUrl:"/system/remain-space",sysLogUrl:"/system/export-log",sysDbUrl:"/system/export-db",infoDbUrl:"/system/import-db",ntpTimUrl:"/network-ntp/time",ntpInfoUrl:"/network-ntp",timezoneUrl:"/network-ntp/zone",memberListUrl:"/event/face-list",memberFaceUrl:"/event/face",memberAvatarUrl:"/event/face-picture?path=",memberSearchUrl:"/event/face-list?search=condition",snapSearchUrl:"/event/snapshot-record",snapImgUrl:"/event/face-picture?copy-path=",memberSearchByNameUrl:"/event/face-list?search=name",controlConditionSearchUrl:"/event/control-record?search=condition",controlNameSearchUrl:"/event/control-record?search=name",controlUrl:"/event/control-record",faceParaUrl:"/event/face-config",takePhotoUrl:"/event/take-photo",intrusionRegionUrl:"/event/regional-invasion/0",planTimingUrl:"/storage/snap-plan/0",planEventUrl:"/storage/snap-plan/1",parameterUrl:"/system/para/",scheduleUrl:"/event/schedules/",loginUrl:"/system/login",addLoginUrl:"/system/login/add",modifyLoginUrl:"/system/login/modify",deleteLoginUrl:"/system/login/delete",storagePathUrl:"/storage/current-path",advancedEncUrl:"/video/0/advanced-enc",batchInputBufferUrl:"/event/face-waiting",reboot4DbUrl:"/system/import-db?start=1",startRecordUrl:"/event/start-record",stopRecordUrl:"/event/stop-record",overlaySnapUrl:"/event/smart/cover",recordStatusUrl:"/event/get-record-status",planAdvancePara:"/storage/advance-para"}},BFxc:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("7o/Q"),r=i("4I5i"),s=i("EY2u");function a(t){return function(e){return 0===t?Object(s.b)():e.lift(new o(t))}}class o{constructor(t){if(this.total=t,this.total<0)throw new r.a}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends n.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let r=0;r{const n=new s.a;return n.add(e.schedule(()=>{const r=t[a.a]();n.add(r.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if(Object(l.a)(t))return function(t,e){return new n.a(i=>{const n=new s.a;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if(Object(u.a)(t))return Object(o.a)(t,e);if(function(t){return t&&"function"==typeof t[c.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new n.a(i=>{const n=new s.a;let r;return n.add(()=>{r&&"function"==typeof r.return&&r.return()}),n.add(e.schedule(()=>{r=t[c.a](),n.add(e.schedule((function(){if(i.closed)return;let t,e;try{const i=r.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())})))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof n.a?t:new n.a(Object(r.a)(t))}i.d(e,"a",(function(){return h}))},CxY0:function(t,e,i){"use strict";var n=i("rWzI"),r=i("Nehr");function s(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=y,e.resolve=function(t,e){return y(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?y(t,!1,!0).resolveObject(e):e},e.format=function(t){return r.isString(t)&&(t=y(t)),t instanceof s?t.format():s.prototype.format.call(t)},e.Url=s;var a=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),h=["%","/","?",";","#"].concat(u),d=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=i("r8II");function y(t,e,i){if(t&&r.isObject(t)&&t instanceof s)return t;var n=new s;return n.parse(t,e,i),n}s.prototype.parse=function(t,e,i){if(!r.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var s=t.indexOf("?"),o=-1!==s&&s127?M+="x":M+=A[N];if(!M.match(p)){var D=O.slice(0,R),F=O.slice(R+1),L=A.match(f);L&&(D.push(L[1]),F.unshift(L[2])),F.length&&(y="/"+F.join(".")+y),this.hostname=D.join(".");break}}}this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),P||(this.hostname=n.toASCII(this.hostname)),this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!m[_])for(R=0,I=u.length;R0)&&i.host.split("@"))&&(i.auth=R.shift(),i.host=i.hostname=R.shift())),i.search=t.search,i.query=t.query,r.isNull(i.pathname)&&r.isNull(i.search)||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.href=i.format(),i;if(!S.length)return i.pathname=null,i.path=i.search?"/"+i.search:null,i.href=i.format(),i;for(var T=S.slice(-1)[0],C=(i.host||t.host||S.length>1)&&("."===T||".."===T)||""===T,k=0,x=S.length;x>=0;x--)"."===(T=S[x])?S.splice(x,1):".."===T?(S.splice(x,1),k++):k&&(S.splice(x,1),k--);if(!y&&!w)for(;k--;k)S.unshift("..");!y||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),C&&"/"!==S.join("/").substr(-1)&&S.push("");var R,E=""===S[0]||S[0]&&"/"===S[0].charAt(0);return _&&(i.hostname=i.host=E?"":S.length?S.shift():"",(R=!!(i.host&&i.host.indexOf("@")>0)&&i.host.split("@"))&&(i.auth=R.shift(),i.host=i.hostname=R.shift())),(y=y||i.host&&S.length)&&!E&&S.unshift(""),S.length?i.pathname=S.join("/"):(i.pathname=null,i.path=null),r.isNull(i.pathname)&&r.isNull(i.search)||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.auth=t.auth||i.auth,i.slashes=i.slashes||t.slashes,i.href=i.format(),i},s.prototype.parseHost=function(){var t=this.host,e=o.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},D3zA:function(t,e,i){"use strict";var n=i("aI7X");t.exports=Function.prototype.bind||n},DD3b:function(t,e,i){var n=i("j0oL");function r(){n.call(this)}r.prototype=new n,t.exports=r,r.Stream=r,r.prototype.pipe=function(t,e){var i=this;function n(e){t.writable&&!1===t.write(e)&&i.pause&&i.pause()}function r(){i.readable&&i.resume&&i.resume()}i.on("data",n),t.on("drain",r),t._isStdio||e&&!1===e.end||(i.on("end",a),i.on("close",o));var s=!1;function a(){s||(s=!0,t.end())}function o(){s||(s=!0,"function"==typeof t.destroy&&t.destroy())}function c(t){if(l(),!this.hasListeners("error"))throw t}function l(){i.off("data",n),t.off("drain",r),i.off("end",a),i.off("close",o),i.off("error",c),t.off("error",c),i.off("end",l),i.off("close",l),t.off("end",l),t.off("close",l)}return i.on("error",c),t.on("error",c),i.on("end",l),i.on("close",l),t.on("end",l),t.on("close",l),t.emit("pipe",i),t}},DH7j:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));const n=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},DqJA:function(t,e,i){"use strict";var n,r,s,a=i("QykG"),o=i("Tmm6"),c=i("rnXk"),l=i("JW/Y").TimestampRolloverStream,u=i("rnXk");(n=function(){var t=new Uint8Array(188),e=0;n.prototype.init.call(this),this.push=function(i){var n,r=0,s=188;for(e?((n=new Uint8Array(i.byteLength+e)).set(t.subarray(0,e)),n.set(i,e),e=0):n=i;s>>4>1&&(n+=e[n]+1),0===i.pid)i.type="pat",t(e.subarray(n),i),this.trigger("data",i);else if(i.pid===this.pmtPid)for(i.type="pmt",t(e.subarray(n),i),this.trigger("data",i);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([e,n,i]):this.processPes_(e,n,i)},this.processPes_=function(t,e,i){i.streamType=i.pid===this.programMapTable.video?c.H264_STREAM_TYPE:i.pid===this.programMapTable.audio?c.ADTS_STREAM_TYPE:this.programMapTable["timed-metadata"][i.pid],i.type="pes",i.data=t.subarray(e),this.trigger("data",i)}}).prototype=new a,r.STREAM_TYPES={h264:27,adts:15},(s=function(){var t=this,e={data:[],size:0},i={data:[],size:0},n={data:[],size:0},r=function(e,i,n){var r,s,a=new Uint8Array(e.size),o={type:i},c=0,l=0;if(e.data.length&&!(e.size<9)){for(o.trackId=e.data[0].pid,c=0;c>>3,h.pts*=4,h.pts+=(6&u[13])>>>1,h.dts=h.pts,64&d&&(h.dts=(14&u[14])<<27|(255&u[15])<<20|(254&u[16])<<12|(255&u[17])<<5|(254&u[18])>>>3,h.dts*=4,h.dts+=(6&u[18])>>>1)),h.data=u.subarray(9+u[8]),r="video"===i||o.packetLength<=e.size,(n||r)&&(e.size=0,e.data.length=0),r&&t.trigger("data",o)}};s.prototype.init.call(this),this.push=function(s){({pat:function(){},pes:function(){var t,a;switch(s.streamType){case c.H264_STREAM_TYPE:case u.H264_STREAM_TYPE:t=e,a="video";break;case c.ADTS_STREAM_TYPE:t=i,a="audio";break;case c.METADATA_STREAM_TYPE:t=n,a="timed-metadata";break;default:return}s.payloadUnitStartIndicator&&r(t,a,!0),t.data.push(s),t.size+=s.data.byteLength},pmt:function(){var e={type:"metadata",tracks:[]},i=s.programMapTable;null!==i.video&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+i.video,codec:"avc",type:"video"}),null!==i.audio&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+i.audio,codec:"adts",type:"audio"}),t.trigger("data",e)}})[s.type]()},this.flush=function(){r(e,"video"),r(i,"audio"),r(n,"timed-metadata"),this.trigger("done")}}).prototype=new a;var h={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:n,TransportParseStream:r,ElementaryStream:s,TimestampRolloverStream:l,CaptionStream:o.CaptionStream,Cea608Stream:o.Cea608Stream,MetadataStream:i("W8Ai")};for(var d in c)c.hasOwnProperty(d)&&(h[d]=c[d]);t.exports=h},DwGB:function(t,e,i){"use strict";var n=i("6ayh"),r=n("%Object%"),s=n("%TypeError%"),a=n("%String%"),o=i("xG2L"),c=i("IFfy"),l=i("xhJ2"),u=i("WXWk"),h=i("u1Mj"),d=i("IdCN"),p=i("Lxf3"),f=i("oNNP");t.exports={ToPrimitive:p,ToBoolean:function(t){return!!t},ToNumber:function(t){return+t},ToInteger:function(t){var e=this.ToNumber(t);return c(e)?0:0!==e&&l(e)?u(e)*Math.floor(Math.abs(e)):e},ToInt32:function(t){return this.ToNumber(t)>>0},ToUint32:function(t){return this.ToNumber(t)>>>0},ToUint16:function(t){var e=this.ToNumber(t);if(c(e)||0===e||!l(e))return 0;var i=u(e)*Math.floor(Math.abs(e));return h(i,65536)},ToString:function(t){return a(t)},ToObject:function(t){return this.CheckObjectCoercible(t),r(t)},CheckObjectCoercible:function(t,e){if(null==t)throw new s(e||"Cannot call method on "+t);return t},IsCallable:d,SameValue:function(t,e){return t===e?0!==t||1/t==1/e:c(t)&&c(e)},Type:function(t){return null===t?"Null":void 0===t?"Undefined":"function"==typeof t||"object"==typeof t?"Object":"number"==typeof t?"Number":"boolean"==typeof t?"Boolean":"string"==typeof t?"String":void 0},IsPropertyDescriptor:function(t){if("Object"!==this.Type(t))return!1;var e={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var i in t)if(f(t,i)&&!e[i])return!1;var n=f(t,"[[Value]]"),r=f(t,"[[Get]]")||f(t,"[[Set]]");if(n&&r)throw new s("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(t){return void 0!==t&&(o(this,"Property Descriptor","Desc",t),!(!f(t,"[[Get]]")&&!f(t,"[[Set]]")))},IsDataDescriptor:function(t){return void 0!==t&&(o(this,"Property Descriptor","Desc",t),!(!f(t,"[[Value]]")&&!f(t,"[[Writable]]")))},IsGenericDescriptor:function(t){return void 0!==t&&(o(this,"Property Descriptor","Desc",t),!this.IsAccessorDescriptor(t)&&!this.IsDataDescriptor(t))},FromPropertyDescriptor:function(t){if(void 0===t)return t;if(o(this,"Property Descriptor","Desc",t),this.IsDataDescriptor(t))return{value:t["[[Value]]"],writable:!!t["[[Writable]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};if(this.IsAccessorDescriptor(t))return{get:t["[[Get]]"],set:t["[[Set]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};throw new s("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(t){if("Object"!==this.Type(t))throw new s("ToPropertyDescriptor requires an object");var e={};if(f(t,"enumerable")&&(e["[[Enumerable]]"]=this.ToBoolean(t.enumerable)),f(t,"configurable")&&(e["[[Configurable]]"]=this.ToBoolean(t.configurable)),f(t,"value")&&(e["[[Value]]"]=t.value),f(t,"writable")&&(e["[[Writable]]"]=this.ToBoolean(t.writable)),f(t,"get")){var i=t.get;if(void 0!==i&&!this.IsCallable(i))throw new TypeError("getter must be a function");e["[[Get]]"]=i}if(f(t,"set")){var n=t.set;if(void 0!==n&&!this.IsCallable(n))throw new s("setter must be a function");e["[[Set]]"]=n}if((f(e,"[[Get]]")||f(e,"[[Set]]"))&&(f(e,"[[Value]]")||f(e,"[[Writable]]")))throw new s("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return e}}},E6OW:function(t,e,i){var n=i("fhC+"),r=i("NsZL");t.exports={prefixWithSilence:function(t,e,i,s){var a,o,c,l,u=0,h=0,d=0;if(e.length&&(a=r.audioTsToVideoTs(t.baseMediaDecodeTime,t.samplerate),o=Math.ceil(9e4/(t.samplerate/1024)),i&&s&&(u=a-Math.max(i,s),d=(h=Math.floor(u/o))*o),!(h<1||d>45e3))){for((c=n[t.samplerate])||(c=e[0].data),l=0;l=i?t:(e.minSegmentDts=1/0,t.filter((function(t){return t.dts>=i&&(e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),e.minSegmentPts=e.minSegmentDts,!0)})))},generateSampleTable:function(t){var e,i=[];for(e=0;et.complete());function s(t){return t?function(t){return new n.a(e=>t.schedule(()=>e.complete()))}(t):r}},FYWk:function(t,e,i){(function(){var e,n,r={}.hasOwnProperty;n=i("RfOz").isObject,e=i("kud4"),t.exports=function(t){function e(t,i,r,s){if(e.__super__.constructor.call(this,t),null==r)throw new Error("Missing entity name");if(null==s)throw new Error("Missing entity value");if(this.pe=!!i,this.name=this.stringify.eleName(r),n(s)){if(!s.pubID&&!s.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(s.pubID&&!s.sysID)throw new Error("System identifier is required for a public external entity");if(null!=s.pubID&&(this.pubID=this.stringify.dtdPubID(s.pubID)),null!=s.sysID&&(this.sysID=this.stringify.dtdSysID(s.sysID)),null!=s.nData&&(this.nData=this.stringify.dtdNData(s.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(s)}return function(t,e){for(var i in e)r.call(e,i)&&(t[i]=e[i]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,t),e.prototype.toString=function(t){return this.options.writer.set(t).dtdEntity(this)},e}(e)}).call(this)},"G3+v":function(t,e,i){"use strict";var n=i("Vi6U");t.exports=function(){return String.prototype.trim&&"\u200b"==="\u200b".trim()?String.prototype.trim:n}},G43f:function(t,e){function i(t){return t.replace(/\n\r?\s*/g,"")}t.exports=function(t){for(var e="",n=0;n{const n=i.get(t),r=i.get(e),s=new Date(n.value),a=new Date(r.value);return n&&r&&a.getTime()>>1,t.samplingfrequencyindex<<7|t.channelcount<<3,6,1,2]))},b=function(t){return n(C.hdlr,O[t])},g=function(t){var e=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,t.duration>>>24&255,t.duration>>>16&255,t.duration>>>8&255,255&t.duration,85,196,0,0]);return t.samplerate&&(e[12]=t.samplerate>>>24&255,e[13]=t.samplerate>>>16&255,e[14]=t.samplerate>>>8&255,e[15]=255&t.samplerate),n(C.mdhd,e)},m=function(t){return n(C.mdia,g(t),b(t.type),c(t))},o=function(t){return n(C.mfhd,new Uint8Array([0,0,0,0,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t]))},c=function(t){return n(C.minf,"video"===t.type?n(C.vmhd,I):n(C.smhd,A),r(),y(t))},l=function(t,e){for(var i=[],r=e.length;r--;)i[r]=S(e[r]);return n.apply(null,[C.moof,o(t)].concat(i))},u=function(t){for(var e=t.length,i=[];e--;)i[e]=p(t[e]);return n.apply(null,[C.moov,d(4294967295)].concat(i).concat(h(t)))},h=function(t){for(var e=t.length,i=[];e--;)i[e]=_(t[e]);return n.apply(null,[C.mvex].concat(i))},d=function(t){var e=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return n(C.mvhd,e)},v=function(t){var e,i,r=t.samples||[],s=new Uint8Array(4+r.length);for(i=0;i>>8),s.push(255&i[e].byteLength),s=s.concat(Array.prototype.slice.call(i[e]));for(e=0;e>>8),a.push(255&r[e].byteLength),a=a.concat(Array.prototype.slice.call(r[e]));return n(C.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&t.width)>>8,255&t.width,(65280&t.height)>>8,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),n(C.avcC,new Uint8Array([1,t.profileIdc,t.profileCompatibility,t.levelIdc,255].concat([i.length]).concat(s).concat([r.length]).concat(a))),n(C.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])))},z=function(t){return n(C.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&t.channelcount)>>8,255&t.channelcount,(65280&t.samplesize)>>8,255&t.samplesize,0,0,0,0,(65280&t.samplerate)>>8,255&t.samplerate,0,0]),s(t))},f=function(t){var e=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,0,(4278190080&t.duration)>>24,(16711680&t.duration)>>16,(65280&t.duration)>>8,255&t.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&t.width)>>8,255&t.width,0,0,(65280&t.height)>>8,255&t.height,0,0]);return n(C.tkhd,e)},S=function(t){var e,i,r,s,a,o;return e=n(C.tfhd,new Uint8Array([0,0,0,58,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),a=Math.floor(t.baseMediaDecodeTime/(G+1)),o=Math.floor(t.baseMediaDecodeTime%(G+1)),i=n(C.tfdt,new Uint8Array([1,0,0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a,o>>>24&255,o>>>16&255,o>>>8&255,255&o])),"audio"===t.type?(r=T(t,92),n(C.traf,e,i,r)):(s=v(t),r=T(t,s.length+92),n(C.traf,e,i,r,s))},p=function(t){return t.duration=t.duration||4294967295,n(C.trak,f(t),m(t))},_=function(t){var e=new Uint8Array([0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==t.type&&(e[e.length-1]=0),n(C.trex,e)},V=function(t,e){var i=0,n=0,r=0,s=0;return t.length&&(void 0!==t[0].duration&&(i=1),void 0!==t[0].size&&(n=2),void 0!==t[0].flags&&(r=4),void 0!==t[0].compositionTimeOffset&&(s=8)),[0,0,i|n|r|s,1,(4278190080&t.length)>>>24,(16711680&t.length)>>>16,(65280&t.length)>>>8,255&t.length,(4278190080&e)>>>24,(16711680&e)>>>16,(65280&e)>>>8,255&e]},B=function(t,e){var i,r,s,a;for(i=V(r=t.samples||[],e+=20+16*r.length),a=0;a>>24,(16711680&s.duration)>>>16,(65280&s.duration)>>>8,255&s.duration,(4278190080&s.size)>>>24,(16711680&s.size)>>>16,(65280&s.size)>>>8,255&s.size,s.flags.isLeading<<2|s.flags.dependsOn,s.flags.isDependedOn<<6|s.flags.hasRedundancy<<4|s.flags.paddingValue<<1|s.flags.isNonSyncSample,61440&s.flags.degradationPriority,15&s.flags.degradationPriority,(4278190080&s.compositionTimeOffset)>>>24,(16711680&s.compositionTimeOffset)>>>16,(65280&s.compositionTimeOffset)>>>8,255&s.compositionTimeOffset]);return n(C.trun,new Uint8Array(i))},U=function(t,e){var i,r,s,a;for(i=V(r=t.samples||[],e+=20+8*r.length),a=0;a>>24,(16711680&s.duration)>>>16,(65280&s.duration)>>>8,255&s.duration,(4278190080&s.size)>>>24,(16711680&s.size)>>>16,(65280&s.size)>>>8,255&s.size]);return n(C.trun,new Uint8Array(i))},T=function(t,e){return"audio"===t.type?U(t,e):B(t,e)},t.exports={ftyp:a=function(){return n(C.ftyp,k,x,k,R)},mdat:function(t){return n(C.mdat,t)},moof:l,moov:u,initSegment:function(t){var e,i=a(),n=u(t);return(e=new Uint8Array(i.byteLength+n.byteLength)).set(i),e.set(n,i.byteLength),e}}},GyhO:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("LRne"),r=i("0EUg");function s(...t){return Object(r.a)()(Object(n.a)(...t))}},H7XF:function(t,e,i){"use strict";e.byteLength=function(t){var e=l(t),i=e[1];return 3*(e[0]+i)/4-i},e.toByteArray=function(t){var e,i,n=l(t),a=n[0],o=n[1],c=new s(function(t,e,i){return 3*(e+i)/4-i}(0,a,o)),u=0,h=o>0?a-4:a;for(i=0;i>16&255,c[u++]=e>>8&255,c[u++]=255&e;return 2===o&&(e=r[t.charCodeAt(i)]<<2|r[t.charCodeAt(i+1)]>>4,c[u++]=255&e),1===o&&(e=r[t.charCodeAt(i)]<<10|r[t.charCodeAt(i+1)]<<4|r[t.charCodeAt(i+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e),c},e.fromByteArray=function(t){for(var e,i=t.length,r=i%3,s=[],a=0,o=i-r;ao?o:a+16383));return 1===r?s.push(n[(e=t[i-1])>>2]+n[e<<4&63]+"=="):2===r&&s.push(n[(e=(t[i-2]<<8)+t[i-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),s.join("")};for(var n=[],r=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,c=a.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function u(t,e,i){for(var r,s=[],a=e;a>18&63]+n[r>>12&63]+n[r>>6&63]+n[63&r]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},HDdC:function(t,e,i){"use strict";var n=i("8Qeq"),r=i("7o/Q"),s=i("2QA8"),a=i("gRHU"),o=i("kJWO"),c=i("mCNh"),l=i("2fFW");i.d(e,"a",(function(){return u}));let u=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:n}=this,o=function(t,e,i){if(t){if(t instanceof r.a)return t;if(t[s.a])return t[s.a]()}return t||e||i?new r.a(t,e,i):new r.a(a.a)}(t,e,i);if(o.add(n?n.call(o,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),l.a.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),Object(n.a)(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=h(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(r){i(r),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.a](){return this}pipe(...t){return 0===t.length?this:Object(c.b)(t)(this)}toPromise(t){return new(t=h(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function h(t){if(t||(t=l.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},Ha02:function(t,e,i){"use strict";var n=i("mo69"),r=i("ICOb"),s=i("ZyuO"),a=i.n(s),o=i("zFeg"),c=i.n(o),l=i("G43f"),u=i.n(l),h=i("jBAH"),d=i.n(h),p=i("3zPy"),f=i.n(p),m=i("7sdD"),g=i.n(m),b=i("K4wu"),v=i.n(b),y=i("0Tbm"),w=i.n(y);function S(){return(S=Object.assign||function(t){for(var e=1;e-1},e.trigger=function(t){var e,i,n,r=this.listeners[t];if(r)if(2===arguments.length)for(i=r.length,e=0;e-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)},e}(C),x=function(t){for(var e,i=t.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),n={},r=i.length;r--;)""!==i[r]&&((e=/([^=]*)=(.*)/.exec(i[r]).slice(1))[0]=e[0].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^['"](.*)['"]$/g,"$1"),n[e[0]]=e[1]);return n},R=function(t){function e(){var e;return(e=t.call(this)||this).customParsers=[],e.tagMappers=[],e}_(e,t);var i=e.prototype;return i.push=function(t){var e,i,n=this;0!==(t=t.trim()).length&&("#"===t[0]?this.tagMappers.reduce((function(e,i){var n=i(t);return n===t?e:e.concat([n])}),[t]).forEach((function(t){for(var r=0;r0&&(a.duration=t.duration),0===t.duration&&(a.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=s},key:function(){t.attributes?"NONE"!==t.attributes.METHOD?t.attributes.URI?(t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),n={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},void 0!==t.attributes.IV&&(n.iv=t.attributes.IV)):this.trigger("warn",{message:"ignoring key declaration without URI"}):n=null:this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(t.number)?this.manifest.mediaSequence=t.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number})},"discontinuity-sequence":function(){isFinite(t.number)?(this.manifest.discontinuitySequence=t.number,l=t.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number})},"playlist-type":function(){/VOD|EVENT/.test(t.playlistType)?this.manifest.playlistType=t.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist})},map:function(){i={},t.uri&&(i.uri=t.uri),t.byterange&&(i.byterange=t.byterange)},"stream-inf":function(){this.manifest.playlists=s,this.manifest.mediaGroups=this.manifest.mediaGroups||c,t.attributes?(a.attributes||(a.attributes={}),S(a.attributes,t.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||c,t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME){var i=this.manifest.mediaGroups[t.attributes.TYPE];i[t.attributes["GROUP-ID"]]=i[t.attributes["GROUP-ID"]]||{},e=i[t.attributes["GROUP-ID"]],(u={default:/yes/i.test(t.attributes.DEFAULT)}).autoselect=!!u.default||/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&&(u.language=t.attributes.LANGUAGE),t.attributes.URI&&(u.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&&(u.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&&(u.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&&(u.forced=/yes/i.test(t.attributes.FORCED)),e[t.attributes.NAME]=u}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){l+=1,a.discontinuity=!0,this.manifest.discontinuityStarts.push(s.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject),a.dateTimeString=t.dateTimeString,a.dateTimeObject=t.dateTimeObject},targetduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration}):this.manifest.targetDuration=t.duration},totalduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid total duration: "+t.duration}):this.manifest.totalDuration=t.duration},start:function(){t.attributes&&!isNaN(t.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:t.attributes["TIME-OFFSET"],precise:t.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){a.cueOut=t.data},"cue-out-cont":function(){a.cueOutCont=t.data},"cue-in":function(){a.cueIn=t.data}}[t.tagType]||o).call(r)},uri:function(){a.uri=t.uri,s.push(a),!this.manifest.targetDuration||"duration"in a||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),a.duration=this.manifest.targetDuration),n&&(a.key=n),a.timeline=l,i&&(a.map=i),a={}},comment:function(){},custom:function(){t.segment?(a.custom=a.custom||{},a.custom[t.customType]=t.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[t.customType]=t.data)}})[t.type].call(r)})),e}_(e,t);var i=e.prototype;return i.push=function(t){this.lineStream.push(t)},i.end=function(){this.lineStream.push("\n")},i.addParser=function(t){this.parseStream.addParser(t)},i.addTagMapper=function(t){this.parseStream.addTagMapper(t)},e}(C),P=i("vgmO"),O=i.n(P),I=function(t){return!!t&&"object"==typeof t},A=function t(){for(var e=arguments.length,i=new Array(e),n=0;nm&&(m=w);var S=void 0;if(y<0){var _=g+1;S=_===e.length?"dynamic"===n&&s>0&&o.indexOf("$Number$")>0?q(t,m,v):(c*u-m)/v:(e[_].t-m)/v}else S=y+1;for(var T=d+f.length+S,C=d+f.length;C=r?s:""+new Array(r-s.length+1).join("0")+s)}}(e))},X=function(t,e){var i={RepresentationID:t.id,Bandwidth:t.bandwidth||0},n=t.initialization,r=void 0===n?{sourceURL:"",range:""}:n,s=F({baseUrl:t.baseUrl,source:Q(r.sourceURL,i),range:r.range});return function(t,e){return t.duration||e?t.duration?z(t):$(t,e):[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodIndex}]}(t,e).map((function(e){i.Number=e.number,i.Time=e.time;var n=Q(t.media||"",i);return{uri:n,timeline:e.timeline,duration:e.duration,resolvedUri:D(t.baseUrl||"",n),map:s,number:e.number}}))},K=function(t,e){var i=t.duration,n=t.segmentUrls,r=void 0===n?[]:n;if(!i&&!e||i&&e)throw new Error("SEGMENT_TIME_UNSPECIFIED");var s,a=r.map((function(e){return function(t,e){var i=t.baseUrl,n=t.initialization,r=void 0===n?{}:n,s=F({baseUrl:i,source:r.sourceURL,range:r.range}),a=F({baseUrl:i,source:e.media,range:e.mediaRange});return a.map=s,a}(t,e)}));return i&&(s=z(t)),e&&(s=$(t,e)),s.map((function(t,e){if(a[e]){var i=a[e];return i.timeline=t.timeline,i.duration=t.duration,i.number=t.number,i}})).filter((function(t){return t}))},Z=function(t){var e,i,n=t.attributes,r=t.segmentInfo;r.template?(i=X,e=A(n,r.template)):r.base?(i=U,e=A(n,r.base)):r.list&&(i=K,e=A(n,r.list));var s={attributes:n};if(!i)return s;var a=i(e,r.timeline);if(e.duration){var o=e.timescale;e.duration=e.duration/(void 0===o?1:o)}else e.duration=a.length?a.reduce((function(t,e){return Math.max(t,Math.ceil(e.duration))}),0):0;return s.attributes=e,s.segments=a,r.base&&e.indexRange&&(s.sidx=a[0],s.segments=[]),s},J=function(t,e){return N(t.childNodes).filter((function(t){return t.tagName===e}))},tt=function(t){return t.textContent.trim()},et=function(t){var e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!e)return 0;var i=e.slice(1),n=i[1],r=i[2],s=i[3],a=i[4],o=i[5];return 31536e3*parseFloat(i[0]||0)+2592e3*parseFloat(n||0)+86400*parseFloat(r||0)+3600*parseFloat(s||0)+60*parseFloat(a||0)+parseFloat(o||0)},it={mediaPresentationDuration:function(t){return et(t)},availabilityStartTime:function(t){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e=t)&&(e+="Z"),Date.parse(e)/1e3;var e},minimumUpdatePeriod:function(t){return et(t)},timeShiftBufferDepth:function(t){return et(t)},start:function(t){return et(t)},width:function(t){return parseInt(t,10)},height:function(t){return parseInt(t,10)},bandwidth:function(t){return parseInt(t,10)},startNumber:function(t){return parseInt(t,10)},timescale:function(t){return parseInt(t,10)},duration:function(t){var e=parseInt(t,10);return isNaN(e)?et(t):e},d:function(t){return parseInt(t,10)},t:function(t){return parseInt(t,10)},r:function(t){return parseInt(t,10)},DEFAULT:function(t){return t}},nt=function(t){return t&&t.attributes?N(t.attributes).reduce((function(t,e){return t[e.name]=(it[e.name]||it.DEFAULT)(e.value),t}),{}):{}},rt={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},st=function(t,e){return e.length?M(t.map((function(t){return e.map((function(e){return D(t,tt(e))}))}))):t},at=function(t){var e=J(t,"SegmentTemplate")[0],i=J(t,"SegmentList")[0],n=i&&J(i,"SegmentURL").map((function(t){return A({tag:"SegmentURL"},nt(t))})),r=J(t,"SegmentBase")[0],s=i||e,a=s&&J(s,"SegmentTimeline")[0],o=i||r||e,c=o&&J(o,"Initialization")[0],l=e&&nt(e);l&&c?l.initialization=c&&nt(c):l&&l.initialization&&(l.initialization={sourceURL:l.initialization});var u={template:l,timeline:a&&J(a,"S").map((function(t){return nt(t)})),list:i&&A(nt(i),{segmentUrls:n,initialization:nt(c)}),base:r&&A(nt(r),{initialization:nt(c)})};return Object.keys(u).forEach((function(t){u[t]||delete u[t]})),u},ot=function(t){if(""===t)throw new Error("DASH_EMPTY_MANIFEST");var e=(new O.a.DOMParser).parseFromString(t,"application/xml"),i=e&&"MPD"===e.documentElement.tagName?e.documentElement:null;if(!i||i&&i.getElementsByTagName("parsererror").length>0)throw new Error("DASH_INVALID_XML");return i},ct=function(t,e){return void 0===e&&(e={}),function(t,e){var i;if(void 0===e&&(e={}),!t.length)return{};var n=t[0].attributes,r=n.sourceDuration,s=n.minimumUpdatePeriod,a=void 0===s?0:s,o=V(t.filter((function(t){var e=t.attributes;return"video/mp4"===e.mimeType||"video"===e.contentType}))).map(W),c=V(t.filter((function(t){var e=t.attributes;return"audio/mp4"===e.mimeType||"audio"===e.contentType}))),l=t.filter((function(t){var e=t.attributes;return"text/vtt"===e.mimeType||"text"===e.contentType})),u={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(i={AUDIO:{},VIDEO:{}},i["CLOSED-CAPTIONS"]={},i.SUBTITLES={},i),uri:"",duration:r,playlists:G(o,e),minimumUpdatePeriod:1e3*a};return c.length&&(u.mediaGroups.AUDIO.audio=function(t,e){var i;void 0===e&&(e={});var n=t.reduce((function(t,n){var r=n.attributes.role&&n.attributes.role.value||"",s=n.attributes.lang||"",a="main";return s&&(a=n.attributes.lang+(r?" ("+r+")":"")),t[a]&&t[a].playlists[0].attributes.BANDWIDTH>n.attributes.bandwidth?t:(t[a]={language:s,autoselect:!0,default:"main"===r,playlists:G([H(n)],e),uri:""},void 0===i&&"main"===r&&((i=n).default=!0),t)}),{});return i||(n[Object.keys(n)[0]].default=!0),n}(c,e)),l.length&&(u.mediaGroups.SUBTITLES.subs=function(t,e){return void 0===e&&(e={}),t.reduce((function(t,i){var n,r,s,a,o=i.attributes.lang||"text";return t[o]?t:(t[o]={language:o,default:!1,autoselect:!1,playlists:G([(n=i,s=n.attributes,a=n.segments,void 0===a&&(a=[{uri:s.baseUrl,timeline:s.periodIndex,resolvedUri:s.baseUrl||"",duration:s.sourceDuration,number:0}],s.duration=s.sourceDuration),{attributes:(r={NAME:s.id,BANDWIDTH:s.bandwidth},r["PROGRAM-ID"]=1,r),uri:"",endList:"static"===(s.type||"static"),timeline:s.periodIndex,resolvedUri:s.baseUrl||"",targetDuration:s.duration,segments:a,mediaSequence:a.length?a[0].number:1})],e),uri:""},t)}),{})}(l,e)),u}(function(t,e){void 0===e&&(e={});var i=e,n=i.manifestUri,r=void 0===n?"":n,s=i.NOW,a=void 0===s?Date.now():s,o=i.clientOffset,c=void 0===o?0:o,l=J(t,"Period");if(!l.length)throw new Error("INVALID_NUMBER_OF_PERIOD");var u=nt(t),h=st([r],J(t,"BaseURL"));return u.sourceDuration=u.mediaPresentationDuration||0,u.NOW=a,u.clientOffset=c,M(l.map(function(t,e){return function(i,n){var r=st(e,J(i,"BaseURL")),s=nt(i),a=parseInt(s.id,10),o=O.a.isNaN(a)?n:a,c=A(t,{periodIndex:o}),l=J(i,"AdaptationSet"),u=at(i);return M(l.map(function(t,e,i){return function(n){var r=nt(n),s=st(e,J(n,"BaseURL")),a=J(n,"Role")[0],o={role:nt(a)},c=A(t,r,o),l=J(n,"ContentProtection").reduce((function(t,e){var i=nt(e),n=rt[i.schemeIdUri];if(n){t[n]={attributes:i};var r=J(e,"cenc:pssh")[0];if(r){var s=tt(r),a=s&&function(t){for(var e=O.a.atob(t),i=new Uint8Array(e.length),n=0;n>7))^s]=s;for(a=o=0;!n[a];a^=u||1,o=l[o]||1)for(n[a]=d=(d=o^o<<1^o<<2^o<<3^o<<4)>>8^255&d^99,r[d]=a,f=16843009*c[h=c[u=c[a]]]^65537*h^257*u^16843008*a,p=257*c[d]^16843008*d,s=0;s<4;s++)e[s][a]=p=p<<24^p>>>8,i[s][d]=f=f<<24^f>>>8;for(s=0;s<5;s++)e[s]=e[s].slice(0),i[s]=i[s].slice(0);return t}()),this._tables=[[vt[0][0].slice(),vt[0][1].slice(),vt[0][2].slice(),vt[0][3].slice(),vt[0][4].slice()],[vt[1][0].slice(),vt[1][1].slice(),vt[1][2].slice(),vt[1][3].slice(),vt[1][4].slice()]];var i=void 0,n=void 0,r=void 0,s=void 0,a=void 0,o=this._tables[0][4],c=this._tables[1],l=e.length,u=1;if(4!==l&&6!==l&&8!==l)throw new Error("Invalid aes key size");for(s=e.slice(0),this._key=[s,a=[]],i=l;i<4*l+28;i++)r=s[i-1],(i%l==0||8===l&&i%l==4)&&(r=o[r>>>24]<<24^o[r>>16&255]<<16^o[r>>8&255]<<8^o[255&r],i%l==0&&(r=r<<8^r>>>24^u<<24,u=u<<1^283*(u>>7))),s[i]=s[i-l]^r;for(n=0;i;n++,i--)r=s[3&n?i:i-4],a[n]=i<=4||n<4?r:c[0][o[r>>>24]]^c[1][o[r>>16&255]]^c[2][o[r>>8&255]]^c[3][o[255&r]]}return t.prototype.decrypt=function(t,e,i,n,r,s){var a=this._key[1],o=t^a[0],c=n^a[1],l=i^a[2],u=e^a[3],h=void 0,d=void 0,p=void 0,f=a.length/4-2,m=void 0,g=4,b=this._tables[1],v=b[0],y=b[1],w=b[2],S=b[3],_=b[4];for(m=0;m>>24]^y[c>>16&255]^w[l>>8&255]^S[255&u]^a[g],d=v[c>>>24]^y[l>>16&255]^w[u>>8&255]^S[255&o]^a[g+1],p=v[l>>>24]^y[u>>16&255]^w[o>>8&255]^S[255&c]^a[g+2],u=v[u>>>24]^y[o>>16&255]^w[c>>8&255]^S[255&l]^a[g+3],g+=4,o=h,c=d,l=p;for(m=0;m<4;m++)r[(3&-m)+s]=_[o>>>24]<<24^_[c>>16&255]<<16^_[l>>8&255]<<8^_[255&u]^a[g++],h=o,o=c,c=l,l=u,u=h},t}(),wt=function(){function t(){gt(this,t),this.listeners={}}return t.prototype.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},t.prototype.off=function(t,e){if(!this.listeners[t])return!1;var i=this.listeners[t].indexOf(e);return this.listeners[t].splice(i,1),i>-1},t.prototype.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var i=e.length,n=0;n>8|t>>>24},Tt=function(t,e,i){var n=new Int32Array(t.buffer,t.byteOffset,t.byteLength>>2),r=new yt(Array.prototype.slice.call(e)),s=new Uint8Array(t.byteLength),a=new Int32Array(s.buffer),o=void 0,c=void 0,l=void 0,u=void 0,h=void 0,d=void 0,p=void 0,f=void 0,m=void 0;for(o=i[0],c=i[1],l=i[2],u=i[3],m=0;m1?e-1:0),n=1;n0)for(var i=t.attributes,n=i.length-1;n>=0;n--){var r=i[n].name,s=i[n].value;"boolean"!=typeof t[r]&&-1===",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+r+",")||(s=null!==s),e[r]=s}return e}function ne(t,e){return t.getAttribute(e)}function re(t,e,i){t.setAttribute(e,i)}function se(t,e){t.removeAttribute(e)}function ae(){c.a.body.focus(),c.a.onselectstart=function(){return!1}}function oe(){c.a.onselectstart=function(){return!0}}function ce(t){if(t&&t.getBoundingClientRect&&t.parentNode){var e=t.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach((function(t){void 0!==e[t]&&(i[t]=e[t])})),i.height||(i.height=parseFloat(Ut(t,"height"))),i.width||(i.width=parseFloat(Ut(t,"width"))),i}}function le(t){var e;if(t.getBoundingClientRect&&t.parentNode&&(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var i=c.a.documentElement,n=c.a.body,r=e.top+(a.a.pageYOffset||n.scrollTop)-(i.clientTop||n.clientTop||0);return{left:Math.round(e.left+(a.a.pageXOffset||n.scrollLeft)-(i.clientLeft||n.clientLeft||0)),top:Math.round(r)}}function ue(t,e){var i={},n=le(t),r=t.offsetWidth,s=t.offsetHeight,a=n.left,o=e.pageY,c=e.pageX;return e.changedTouches&&(c=e.changedTouches[0].pageX,o=e.changedTouches[0].pageY),i.y=Math.max(0,Math.min(1,(n.top-o+s)/s)),i.x=Math.max(0,Math.min(1,(c-a)/r)),i}function he(t){return Lt(t)&&3===t.nodeType}function de(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function pe(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map((function(t){return"function"==typeof t&&(t=t()),Wt(t)||he(t)?t:"string"==typeof t&&/\S/.test(t)?c.a.createTextNode(t):void 0})).filter((function(t){return t}))}function fe(t,e){return pe(e).forEach((function(e){return t.appendChild(e)})),t}function me(t,e){return fe(de(t),e)}function ge(t){return void 0===t.button&&void 0===t.buttons||0===t.button&&void 0===t.buttons||0===t.button&&0===t.buttons||0===t.button&&1===t.buttons}var be=$t("querySelector"),ve=$t("querySelectorAll"),ye=Object.freeze({isReal:Ht,isEl:Wt,isInFrame:qt,createEl:Yt,textContent:Qt,prependTo:Xt,hasClass:Kt,addClass:Zt,removeClass:Jt,toggleClass:te,setAttributes:ee,getAttributes:ie,getAttribute:ne,setAttribute:re,removeAttribute:se,blockTextSelection:ae,unblockTextSelection:oe,getBoundingClientRect:ce,findPosition:le,getPointerPosition:ue,isTextNode:he,emptyEl:de,normalizeContent:pe,appendContent:fe,insertContent:me,isSingleLeftClick:ge,$:be,$$:ve}),we=1;function Se(){return we++}var _e={},Te="vdata"+Math.floor(a.a.performance&&a.a.performance.now()||Date.now());function Ce(t){var e=t[Te];return e||(e=t[Te]=Se()),_e[e]||(_e[e]={}),_e[e]}function ke(t){var e=t[Te];return!!e&&!!Object.getOwnPropertyNames(_e[e]).length}function xe(t){var e=t[Te];if(e){delete _e[e];try{delete t[Te]}catch(i){t.removeAttribute?t.removeAttribute(Te):t[Te]=null}}}function Re(t,e){var i=Ce(t);0===i.handlers[e].length&&(delete i.handlers[e],t.removeEventListener?t.removeEventListener(e,i.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,i.dispatcher)),Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled),0===Object.getOwnPropertyNames(i).length&&xe(t)}function Ee(t,e,i,n){i.forEach((function(i){t(e,i,n)}))}function Pe(t){function e(){return!0}function i(){return!1}if(!t||!t.isPropagationStopped){var n=t||a.a.event;for(var r in t={},n)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&("returnValue"===r&&n.preventDefault||(t[r]=n[r]));if(t.target||(t.target=t.srcElement||c.a),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){n.preventDefault&&n.preventDefault(),t.returnValue=!1,n.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),t.cancelBubble=!0,n.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=i,t.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=i,null!=t.clientX){var s=c.a.documentElement,o=c.a.body;t.pageX=t.clientX+(s&&s.scrollLeft||o&&o.scrollLeft||0)-(s&&s.clientLeft||o&&o.clientLeft||0),t.pageY=t.clientY+(s&&s.scrollTop||o&&o.scrollTop||0)-(s&&s.clientTop||o&&o.clientTop||0)}t.which=t.charCode||t.keyCode,null!=t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t}var Oe=!1;!function(){try{var t=Object.defineProperty({},"passive",{get:function(){Oe=!0}});a.a.addEventListener("test",null,t),a.a.removeEventListener("test",null,t)}catch(e){}}();var Ie=["touchstart","touchmove"];function Ae(t,e,i){if(Array.isArray(e))return Ee(Ae,t,e,i);var n=Ce(t);if(n.handlers||(n.handlers={}),n.handlers[e]||(n.handlers[e]=[]),i.guid||(i.guid=Se()),n.handlers[e].push(i),n.dispatcher||(n.disabled=!1,n.dispatcher=function(e,i){if(!n.disabled){e=Pe(e);var r=n.handlers[e.type];if(r)for(var s=r.slice(0),a=0,o=s.length;a-1&&(r={passive:!0}),t.addEventListener(e,n.dispatcher,r)}else t.attachEvent&&t.attachEvent("on"+e,n.dispatcher)}function Me(t,e,i){if(ke(t)){var n=Ce(t);if(n.handlers){if(Array.isArray(e))return Ee(Me,t,e,i);var r=function(t,e){n.handlers[e]=[],Re(t,e)};if(void 0!==e){var s=n.handlers[e];if(s)if(i){if(i.guid)for(var a=0;a0)for(var r=0,s=n.length;r=e&&(t.apply(void 0,arguments),i=n)}},$e=function(){};$e.prototype.allowedEvents_={},$e.prototype.addEventListener=$e.prototype.on=function(t,e){var i=this.addEventListener;this.addEventListener=function(){},Ae(this,t,e),this.addEventListener=i},$e.prototype.removeEventListener=$e.prototype.off=function(t,e){Me(this,t,e)},$e.prototype.one=function(t,e){var i=this.addEventListener;this.addEventListener=function(){},je(this,t,e),this.addEventListener=i},$e.prototype.any=function(t,e){var i=this.addEventListener;this.addEventListener=function(){},De(this,t,e),this.addEventListener=i},$e.prototype.dispatchEvent=$e.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&&(t={type:e}),t=Pe(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),Ne(this,t)},$e.prototype.queueTrigger=function(t){var e=this;Ve||(Ve=new Map);var i=t.type||t,n=Ve.get(this);n||(n=new Map,Ve.set(this,n));var r=n.get(i);n.delete(i),a.a.clearTimeout(r);var s=a.a.setTimeout((function(){0===n.size&&(n=null,Ve.delete(e)),e.trigger(t)}),0);n.set(i,s)};var Ye=function(t){return t instanceof $e||!!t.eventBusEl_&&["on","one","off","trigger"].every((function(e){return"function"==typeof t[e]}))},Qe=function(t){return"string"==typeof t&&/\S/.test(t)||Array.isArray(t)&&!!t.length},Xe=function(t){if(!t.nodeName&&!Ye(t))throw new Error("Invalid target; must be a DOM node or evented object.")},Ke=function(t){if(!Qe(t))throw new Error("Invalid event type; must be a non-empty string or array.")},Ze=function(t){if("function"!=typeof t)throw new Error("Invalid listener; must be a function.")},Je=function(t,e){var i,n,r,s=e.length<3||e[0]===t||e[0]===t.eventBusEl_;return s?(i=t.eventBusEl_,e.length>=3&&e.shift(),n=e[0],r=e[1]):(i=e[0],n=e[1],r=e[2]),Xe(i),Ke(n),Ze(r),{isTargetingSelf:s,target:i,type:n,listener:r=We(t,r)}},ti=function(t,e,i,n){Xe(t),t.nodeName?Le[e](t,i,n):t[e](i,n)},ei={on:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),xe(this.el_),this.el_=null),this.player_=null},e.player=function(){return this.player_},e.options=function(t){return t?(this.options_=ai(this.options_,t),this.options_):this.options_},e.el=function(){return this.el_},e.createEl=function(t,e,i){return Yt(t,e,i)},e.localize=function(t,e,i){void 0===i&&(i=t);var n=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),s=r&&r[n],a=n&&n.split("-")[0],o=r&&r[a],c=i;return s&&s[t]?c=s[t]:o&&o[t]&&(c=o[t]),e&&(c=c.replace(/\{(\d+)\}/g,(function(t,i){var n=e[i-1],r=n;return void 0===n&&(r=t),r}))),c},e.contentEl=function(){return this.contentEl_||this.el_},e.id=function(){return this.id_},e.name=function(){return this.name_},e.children=function(){return this.children_},e.getChildById=function(t){return this.childIndex_[t]},e.getChild=function(t){if(t)return t=si(t),this.childNameIndex_[t]},e.addChild=function(e,i,n){var r,s;if(void 0===i&&(i={}),void 0===n&&(n=this.children_.length),"string"==typeof e){s=si(e);var a=i.componentClass||s;i.name=s;var o=t.getComponent(a);if(!o)throw new Error("Component "+a+" does not exist");if("function"!=typeof o)return null;r=new o(this.player_||this,i)}else r=e;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(n,0,r),r.parentComponent_=this,"function"==typeof r.id&&(this.childIndex_[r.id()]=r),(s=s||r.name&&si(r.name()))&&(this.childNameIndex_[s]=r),"function"==typeof r.el&&r.el()){var c=this.contentEl().children[n]||null;this.contentEl().insertBefore(r.el(),c)}return r},e.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,i=this.children_.length-1;i>=0;i--)if(this.children_[i]===t){e=!0,this.children_.splice(i,1);break}if(e){t.parentComponent_=null,this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var n=t.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},e.initChildren=function(){var e=this,i=this.options_.children;if(i){var n,r=this.options_,s=t.getComponent("Tech");(n=Array.isArray(i)?i:Object.keys(i)).concat(Object.keys(this.options_).filter((function(t){return!n.some((function(e){return"string"==typeof e?t===e:t===e.name}))}))).map((function(t){var n,r;return"string"==typeof t?r=i[n=t]||e.options_[n]||{}:(n=t.name,r=t),{name:n,opts:r}})).filter((function(e){var i=t.getComponent(e.opts.componentClass||si(e.name));return i&&!s.isTech(i)})).forEach((function(t){var i=t.name,n=t.opts;if(void 0!==r[i]&&(n=r[i]),!1!==n){!0===n&&(n={}),n.playerOptions=e.options_.playerOptions;var s=e.addChild(i,n);s&&(e[i]=s)}}))}},e.buildCSSClass=function(){return""},e.ready=function(t,e){if(void 0===e&&(e=!1),t)return this.isReady_?void(e?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},e.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach((function(t){t.call(this)}),this),this.trigger("ready")}),1)},e.$=function(t,e){return be(t,e||this.contentEl())},e.$$=function(t,e){return ve(t,e||this.contentEl())},e.hasClass=function(t){return Kt(this.el_,t)},e.addClass=function(t){Zt(this.el_,t)},e.removeClass=function(t){Jt(this.el_,t)},e.toggleClass=function(t,e){te(this.el_,t,e)},e.show=function(){this.removeClass("vjs-hidden")},e.hide=function(){this.addClass("vjs-hidden")},e.lockShowing=function(){this.addClass("vjs-lock-showing")},e.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.getAttribute=function(t){return ne(this.el_,t)},e.setAttribute=function(t,e){re(this.el_,t,e)},e.removeAttribute=function(t){se(this.el_,t)},e.width=function(t,e){return this.dimension("width",t,e)},e.height=function(t,e){return this.dimension("height",t,e)},e.dimensions=function(t,e){this.width(t,!0),this.height(e)},e.dimension=function(t,e,i){if(void 0!==e)return null!==e&&e==e||(e=0),this.el_.style[t]=-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?e:"auto"===e?"":e+"px",void(i||this.trigger("componentresize"));if(!this.el_)return 0;var n=this.el_.style[t],r=n.indexOf("px");return-1!==r?parseInt(n.slice(0,r),10):parseInt(this.el_["offset"+si(t)],10)},e.currentDimension=function(t){var e=0;if("width"!==t&&"height"!==t)throw new Error("currentDimension only accepts width or height value");if("function"==typeof a.a.getComputedStyle){var i=a.a.getComputedStyle(this.el_);e=i.getPropertyValue(t)||i[t]}if(0===(e=parseFloat(e))){var n="offset"+si(t);e=this.el_[n]}return e},e.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.currentWidth=function(){return this.currentDimension("width")},e.currentHeight=function(){return this.currentDimension("height")},e.focus=function(){this.el_.focus()},e.blur=function(){this.el_.blur()},e.handleKeyDown=function(t){this.player_&&(t.stopPropagation(),this.player_.handleKeyDown(t))},e.handleKeyPress=function(t){this.handleKeyDown(t)},e.emitTapEvents=function(){var t,e=0,i=null;this.on("touchstart",(function(n){1===n.touches.length&&(i={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},e=a.a.performance.now(),t=!0)})),this.on("touchmove",(function(e){if(e.touches.length>1)t=!1;else if(i){var n=e.touches[0].pageX-i.pageX,r=e.touches[0].pageY-i.pageY;Math.sqrt(n*n+r*r)>10&&(t=!1)}}));var n=function(){t=!1};this.on("touchleave",n),this.on("touchcancel",n),this.on("touchend",(function(n){i=null,!0===t&&a.a.performance.now()-e<200&&(n.preventDefault(),this.trigger("tap"))}))},e.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t,e=We(this.player(),this.player().reportUserActivity);this.on("touchstart",(function(){e(),this.clearInterval(t),t=this.setInterval(e,250)}));var i=function(i){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",i),this.on("touchcancel",i)}},e.setTimeout=function(t,e){var i,n,r=this;return t=We(this,t),i=a.a.setTimeout((function(){r.off("dispose",n),t()}),e),(n=function(){return r.clearTimeout(i)}).guid="vjs-timeout-"+i,this.on("dispose",n),i},e.clearTimeout=function(t){a.a.clearTimeout(t);var e=function(){};return e.guid="vjs-timeout-"+t,this.off("dispose",e),t},e.setInterval=function(t,e){var i=this;t=We(this,t);var n=a.a.setInterval(t,e),r=function(){return i.clearInterval(n)};return r.guid="vjs-interval-"+n,this.on("dispose",r),n},e.clearInterval=function(t){a.a.clearInterval(t);var e=function(){};return e.guid="vjs-interval-"+t,this.off("dispose",e),t},e.requestAnimationFrame=function(t){var e,i,n=this;return this.supportsRaf_?(t=We(this,t),e=a.a.requestAnimationFrame((function(){n.off("dispose",i),t()})),(i=function(){return n.cancelAnimationFrame(e)}).guid="vjs-raf-"+e,this.on("dispose",i),e):this.setTimeout(t,1e3/60)},e.cancelAnimationFrame=function(t){if(this.supportsRaf_){a.a.cancelAnimationFrame(t);var e=function(){};return e.guid="vjs-raf-"+t,this.off("dispose",e),t}return this.clearTimeout(t)},t.registerComponent=function(e,i){if("string"!=typeof e||!e)throw new Error('Illegal component name, "'+e+'"; must be a non-empty string.');var n=t.getComponent("Tech"),r=n&&n.isTech(i),s=t===i||t.prototype.isPrototypeOf(i.prototype);if(r||!s)throw new Error('Illegal component, "'+e+'"; '+(r?"techs must be registered using Tech.registerTech()":"must be a Component subclass")+".");e=si(e),t.components_||(t.components_={});var a=t.getComponent("Player");if("Player"===e&&a&&a.players){var o=a.players,c=Object.keys(o);if(o&&c.length>0&&c.map((function(t){return o[t]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return t.components_[e]=i,i},t.getComponent=function(e){if(e)return e=si(e),t.components_&&t.components_[e]?t.components_[e]:void 0},t}();oi.prototype.supportsRaf_="function"==typeof a.a.requestAnimationFrame&&"function"==typeof a.a.cancelAnimationFrame,oi.registerComponent("Component",oi);var ci,li,ui,hi=a.a.navigator&&a.a.navigator.userAgent||"",di=/AppleWebKit\/([\d.]+)/i.exec(hi),pi=di?parseFloat(di.pop()):null,fi=/iPad/i.test(hi),mi=/iPhone/i.test(hi)&&!fi,gi=/iPod/i.test(hi),bi=mi||fi||gi,vi=(ci=hi.match(/OS (\d+)_/i))&&ci[1]?ci[1]:null,yi=/Android/i.test(hi),wi=function(){var t=hi.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var e=t[1]&&parseFloat(t[1]),i=t[2]&&parseFloat(t[2]);return e&&i?parseFloat(t[1]+"."+t[2]):e||null}(),Si=yi&&wi<5&&pi<537,_i=/Firefox/i.test(hi),Ti=/Edge/i.test(hi),Ci=!Ti&&(/Chrome/i.test(hi)||/CriOS/i.test(hi)),ki=function(){var t=hi.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),xi=(!(ui=(li=/MSIE\s(\d+)\.\d/.exec(hi))&&parseFloat(li[1]))&&/Trident\/7.0/i.test(hi)&&/rv:11.0/.test(hi)&&(ui=11),ui),Ri=/Safari/i.test(hi)&&!Ci&&!yi&&!Ti,Ei=(Ri||bi)&&!Ci,Pi=/Windows/i.test(hi),Oi=Ht()&&("ontouchstart"in a.a||a.a.navigator.maxTouchPoints||a.a.DocumentTouch&&a.a.document instanceof a.a.DocumentTouch),Ii=Object.freeze({IS_IPAD:fi,IS_IPHONE:mi,IS_IPOD:gi,IS_IOS:bi,IOS_VERSION:vi,IS_ANDROID:yi,ANDROID_VERSION:wi,IS_NATIVE_ANDROID:Si,IS_FIREFOX:_i,IS_EDGE:Ti,IS_CHROME:Ci,CHROME_VERSION:ki,IE_VERSION:xi,IS_SAFARI:Ri,IS_ANY_SAFARI:Ei,IS_WINDOWS:Pi,TOUCH_ENABLED:Oi});function Ai(t,e,i,n){return function(t,e,i){if("number"!=typeof e||e<0||e>i)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is non-numeric or out of bounds (0-"+i+").")}(t,n,i.length-1),i[n][e]}function Mi(t){return void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:Ai.bind(null,"start",0,t),end:Ai.bind(null,"end",1,t)}}function Ni(t,e){return Array.isArray(t)?Mi(t):void 0===t||void 0===e?Mi():Mi([[t,e]])}function ji(t,e){var i,n,r=0;if(!e)return 0;t&&t.length||(t=Ni(0,0));for(var s=0;se&&(n=e),r+=n-i;return r/e}for(var Di,Fi={prefixed:!0},Li=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],zi=Li[0],Ui=0;Ui=0;n--)if(e[n].enabled){Xi(e,e[n]);break}return(i=t.call(this,e)||this).changing_=!1,i}kt(e,t);var i=e.prototype;return i.addTrack=function(e){var i=this;e.enabled&&Xi(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&&(e.enabledChange_=function(){i.changing_||(i.changing_=!0,Xi(i,e),i.changing_=!1,i.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))},i.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)},e}(Yi),Zi=function(t,e){for(var i=0;i=0;n--)if(e[n].selected){Zi(e,e[n]);break}return(i=t.call(this,e)||this).changing_=!1,Object.defineProperty(Pt(i),"selectedIndex",{get:function(){for(var t=0;t',i=n.firstChild,n.setAttribute("style","display:none; position:absolute;"),c.a.body.appendChild(n));for(var s={},o=0;ox',t=e.firstChild.href}return t},hn=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(t);if(e)return e.pop().toLowerCase()}return""},dn=function(t){var e=a.a.location,i=ln(t);return(":"===i.protocol?e.protocol:i.protocol)+i.host!==e.protocol+e.host},pn=Object.freeze({parseUrl:ln,getAbsoluteURL:un,getFileExtension:hn,isCrossOrigin:dn}),fn=function(t,e){var i=new a.a.WebVTT.Parser(a.a,a.a.vttjs,a.a.WebVTT.StringDecoder()),n=[];i.oncue=function(t){e.addCue(t)},i.onparsingerror=function(t){n.push(t)},i.onflush=function(){e.trigger({type:"loadeddata",target:e})},i.parse(t),n.length>0&&(a.a.console&&a.a.console.groupCollapsed&&a.a.console.groupCollapsed("Text Track parsing errors for "+e.src),n.forEach((function(t){return At.error(t)})),a.a.console&&a.a.console.groupEnd&&a.a.console.groupEnd()),i.flush()},mn=function(t){function e(e){var i;if(void 0===e&&(e={}),!e.tech)throw new Error("A tech was not provided.");var n=ai(e,{kind:an[e.kind]||"subtitles",language:e.language||e.srclang||""}),r=on[n.mode]||"disabled",s=n.default;"metadata"!==n.kind&&"chapters"!==n.kind||(r="hidden"),(i=t.call(this,n)||this).tech_=n.tech,i.cues_=[],i.activeCues_=[];var o=new nn(i.cues_),c=new nn(i.activeCues_),l=!1,u=We(Pt(i),(function(){this.activeCues=this.activeCues,l&&(this.trigger("cuechange"),l=!1)}));return"disabled"!==r&&i.tech_.ready((function(){i.tech_.on("timeupdate",u)}),!0),Object.defineProperties(Pt(i),{default:{get:function(){return s},set:function(){}},mode:{get:function(){return r},set:function(t){var e=this;on[t]&&("disabled"!==(r=t)?this.tech_.ready((function(){e.tech_.on("timeupdate",u)}),!0):this.tech_.off("timeupdate",u),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?o:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return c;for(var t=this.tech_.currentTime(),e=[],i=0,n=this.cues.length;i=t?e.push(r):r.startTime===r.endTime&&r.startTime<=t&&r.startTime+.5>=t&&e.push(r)}if(l=!1,e.length!==this.activeCues_.length)l=!0;else for(var s=0;s0)return void this.trigger("vttjsloaded");var e=c.a.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=function(){t.trigger("vttjsloaded")},e.onerror=function(){t.trigger("vttjserror")},this.on("dispose",(function(){e.onload=null,e.onerror=null})),a.a.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)},i.emulateTextTracks=function(){var t=this,e=this.textTracks(),i=this.remoteTextTracks(),n=function(t){return e.addTrack(t.track)},r=function(t){return e.removeTrack(t.track)};i.on("addtrack",n),i.on("removetrack",r),this.addWebVttScript_();var s=function(){return t.trigger("texttrackchange")},a=function(){s();for(var t=0;t=0;r--){var s=t[r];s[e]&&s[e](n,i)}}(t,i,o,a),o}var Rn={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1,volume:1},En={setCurrentTime:1,setVolume:1},Pn={play:1,pause:1};function On(t){return function(e,i){return e===kn?kn:i[t]?i[t](e):e}}var In={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},An=function(t){void 0===t&&(t="");var e=hn(t);return In[e.toLowerCase()]||""};function Mn(t){var e=An(t.src);return!t.type&&e&&(t.type=e),t}var Nn=function(t){function e(e,i,n){var r,s=ai({createEl:!1},i);if(r=t.call(this,e,s,n)||this,i.playerOptions.sources&&0!==i.playerOptions.sources.length)e.src(i.playerOptions.sources);else for(var a=0,o=i.playerOptions.techOrder;a