1 line
144 KiB
JavaScript
Vendored
1 line
144 KiB
JavaScript
Vendored
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1750],{60562:function(e,t,r){"use strict";r.d(t,{Au:function(){return o},G3:function(){return m},Ki:function(){return u},d3:function(){return d},hL:function(){return f},lx:function(){return g},qX:function(){return h},tm:function(){return p}});var n,i,a=r(58908),s=r.n(a),o=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},u=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||o(e)||e instanceof ArrayBuffer||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},l=s().BigInt||Number,c=[l("0x1"),l("0x100"),l("0x10000"),l("0x1000000"),l("0x100000000"),l("0x10000000000"),l("0x1000000000000"),l("0x100000000000000"),l("0x10000000000000000")];255===(i=new Uint8Array((n=new Uint16Array([65484])).buffer,n.byteOffset,n.byteLength))[0]||i[0];var p=function(e,t){var r=void 0===t?{}:t,n=r.signed,i=r.le,a=void 0!==i&&i;e=u(e);var s=a?"reduce":"reduceRight",o=(e[s]?e[s]:Array.prototype[s]).call(e,function(t,r,n){var i=a?n:Math.abs(n+1-e.length);return t+l(r)*c[i]},l(0));if(void 0!==n&&n){var p=c[e.length]/l(2)-l(1);(o=l(o))>p&&(o-=p,o-=p,o-=l(2))}return Number(o)},f=function(e,t){var r=(void 0===t?{}:t).le,n=void 0!==r&&r;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0);for(var i=Math.ceil((e=l(e)).toString(2).length/8),a=new Uint8Array(new ArrayBuffer(i)),s=0;s<i;s++){var o=n?s:Math.abs(s+1-a.length);a[o]=Number(e/c[s]&l(255)),e<0&&(a[o]=Math.abs(~a[o]),a[o]-=0===s?1:2)}return a},d=function(e){if(!e)return"";e=Array.prototype.slice.call(e);var t=String.fromCharCode.apply(null,u(e));try{return decodeURIComponent(escape(t))}catch(e){}return t},h=function(e,t){if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var r=new Uint8Array(e.length),n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r},g=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if((t=t.filter(function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e})).length<=1)return u(t[0]);var n=new Uint8Array(t.reduce(function(e,t,r){return e+(t.byteLength||t.length)},0)),i=0;return t.forEach(function(e){e=u(e),n.set(e,i),i+=e.byteLength}),n},m=function(e,t,r){var n=void 0===r?{}:r,i=n.offset,a=void 0===i?0:i,s=n.mask,o=void 0===s?[]:s;e=u(e);var l=(t=u(t)).every?t.every:Array.prototype.every;return t.length&&e.length-a>=t.length&&l.call(t,function(t,r){return t===(o[r]?o[r]&e[a+r]:e[a+r])})}},92260:function(e,t,r){"use strict";r.d(t,{Hi:function(){return h},Jg:function(){return c},KL:function(){return p},_5:function(){return f},kS:function(){return l},lA:function(){return g},p7:function(){return d},ws:function(){return u},xz:function(){return m}});var n=r(58908),i=r.n(n),a={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},s=["video","audio","text"],o=["Video","Audio","Text"],u=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,r){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(r).toString(16)).slice(-2)}):e},l=function(e){void 0===e&&(e="");var t=e.split(","),r=[];return t.forEach(function(e){var t;e=e.trim(),s.forEach(function(n){var i=a[n].exec(e.toLowerCase());if(i&&!(i.length<=1)){t=n;var s=e.substring(0,i[1].length),o=e.replace(s,"");r.push({type:s,details:o,mediaType:n})}}),t||r.push({type:e,details:"",mediaType:"unknown"})}),r},c=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var r=e.mediaGroups.AUDIO[t];if(!r)return null;for(var n in r){var i=r[n];if(i.default&&i.playlists)return l(i.playlists[0].attributes.CODECS)}return null},p=function(e){return void 0===e&&(e=""),a.audio.test(e.trim().toLowerCase())},f=function(e){if(e&&"string"==typeof e){var t,r=e.toLowerCase().split(",").map(function(e){return u(e.trim())}),n="video";1===r.length&&p(r[0])?n="audio":1===r.length&&(void 0===(t=r[0])&&(t=""),a.text.test(t.trim().toLowerCase()))&&(n="application");var i="mp4";return r.every(function(e){return a.mp4.test(e)})?i="mp4":r.every(function(e){return a.webm.test(e)})?i="webm":r.every(function(e){return a.ogg.test(e)})&&(i="ogg"),n+"/"+i+';codecs="'+e+'"'}},d=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=!1),i().MediaSource&&i().MediaSource.isTypeSupported&&i().MediaSource.isTypeSupported(f(e))||t&&i().ManagedMediaSource&&i().ManagedMediaSource.isTypeSupported&&i().ManagedMediaSource.isTypeSupported(f(e))||!1},h=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every(function(e){e=e.trim();for(var t=0;t<o.length;t++)if(a["muxer"+o[t]].test(e))return!0;return!1})},g="mp4a.40.2",m="avc1.4d400d"},86185:function(e,t,r){"use strict";r.d(t,{Xm:function(){return N},cz:function(){return A}});var n,i=r(60562);new Uint8Array([79,112,117,115,72,101,97,100]);var a=function(e){return"string"==typeof e?(0,i.qX)(e):e},s=function(e){e=(0,i.Ki)(e);for(var t=[],r=0;e.length>r;){var a=e[r],s=0,o=0,u=e[++o];for(o++;128&u;)s=(127&u)<<7,u=e[o],o++;s+=127&u;for(var l=0;l<n.length;l++){var c=n[l],p=c.id,f=c.parser;if(a===p){t.push(f(e.subarray(o,o+s)));break}}r+=s+o}return t};n=[{id:3,parser:function(e){var t={tag:3,id:e[0]<<8|e[1],flags:e[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&t.flags&&(t.dependsOnEsId=e[t.size]<<8|e[t.size+1],t.size+=2),64&t.flags){var r=e[t.size];t.url=(0,i.d3)(e.subarray(t.size+1,t.size+1+r)),t.size+=r}return 32&t.flags&&(t.ocrEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.descriptors=s(e.subarray(t.size))||[],t}},{id:4,parser:function(e){return{tag:4,oti:e[0],streamType:e[1],bufferSize:e[2]<<16|e[3]<<8|e[4],maxBitrate:e[5]<<24|e[6]<<16|e[7]<<8|e[8],avgBitrate:e[9]<<24|e[10]<<16|e[11]<<8|e[12],descriptors:s(e.subarray(13))}}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var o=function e(t,r,n){void 0===n&&(n=!1),r=Array.isArray(s=r)?s.map(function(e){return a(e)}):[a(s)],t=(0,i.Ki)(t);var s,o=[];if(!r.length)return o;for(var u=0;u<t.length;){var l=(t[u]<<24|t[u+1]<<16|t[u+2]<<8|t[u+3])>>>0,c=t.subarray(u+4,u+8);if(0===l)break;var p=u+l;if(p>t.length){if(n)break;p=t.length}var f=t.subarray(u+8,p);(0,i.G3)(c,r[0])&&(1===r.length?o.push(f):o.push.apply(o,e(f,r.slice(1),n))),u=p}return o},u={EBML:(0,i.Ki)([26,69,223,163]),DocType:(0,i.Ki)([66,130]),Segment:(0,i.Ki)([24,83,128,103]),SegmentInfo:(0,i.Ki)([21,73,169,102]),Tracks:(0,i.Ki)([22,84,174,107]),Track:(0,i.Ki)([174]),TrackNumber:(0,i.Ki)([215]),DefaultDuration:(0,i.Ki)([35,227,131]),TrackEntry:(0,i.Ki)([174]),TrackType:(0,i.Ki)([131]),FlagDefault:(0,i.Ki)([136]),CodecID:(0,i.Ki)([134]),CodecPrivate:(0,i.Ki)([99,162]),VideoTrack:(0,i.Ki)([224]),AudioTrack:(0,i.Ki)([225]),Cluster:(0,i.Ki)([31,67,182,117]),Timestamp:(0,i.Ki)([231]),TimestampScale:(0,i.Ki)([42,215,177]),BlockGroup:(0,i.Ki)([160]),BlockDuration:(0,i.Ki)([155]),Block:(0,i.Ki)([161]),SimpleBlock:(0,i.Ki)([163])},l=[128,64,32,16,8,4,2,1],c=function(e){for(var t=1,r=0;r<l.length&&!(e&l[r]);r++)t++;return t},p=function(e,t,r,n){void 0===r&&(r=!0),void 0===n&&(n=!1);var a=c(e[t]),s=e.subarray(t,t+a);return r&&(s=Array.prototype.slice.call(e,t,t+a),s[0]^=l[a-1]),{length:a,value:(0,i.tm)(s,{signed:n}),bytes:s}},f=function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map(function(t){return e(t)}):"number"==typeof t?(0,i.hL)(t):t},d=function e(t,r,n){if(n>=r.length)return r.length;var a=p(r,n,!1);if((0,i.G3)(t.bytes,a.bytes))return n;var s=p(r,n+a.length);return e(t,r,n+s.length+s.value+a.length)},h=function e(t,r){r=Array.isArray(n=r)?n.map(function(e){return f(e)}):[f(n)],t=(0,i.Ki)(t);var n,a=[];if(!r.length)return a;for(var s=0;s<t.length;){var o=p(t,s,!1),u=p(t,s+o.length),l=s+o.length+u.length;127===u.value&&(u.value=d(o,t,l),u.value!==t.length&&(u.value-=l));var c=l+u.value>t.length?t.length:l+u.value,h=t.subarray(l,c);(0,i.G3)(r[0],o.bytes)&&(1===r.length?a.push(h):a=a.concat(e(h,r.slice(1)))),s+=o.length+u.length+h.length}return a},g=r(68925),m=(0,i.Ki)([0,0,0,1]),b=(0,i.Ki)([0,0,1]),y=(0,i.Ki)([0,0,3]),D=function(e){for(var t=[],r=1;r<e.length-2;)(0,i.G3)(e.subarray(r,r+3),y)&&(t.push(r+2),r++),r++;if(0===t.length)return e;var n=e.length-t.length,a=new Uint8Array(n),s=0;for(r=0;r<n;s++,r++)s===t[0]&&(s++,t.shift()),a[r]=e[s];return a},E=function(e,t,r,n){void 0===n&&(n=1/0),e=(0,i.Ki)(e),r=[].concat(r);for(var a,s=0,o=0;s<e.length&&(o<n||a);){var u=void 0;if((0,i.G3)(e.subarray(s),m)?u=4:(0,i.G3)(e.subarray(s),b)&&(u=3),!u){s++;continue}if(o++,a)return D(e.subarray(a,s));var l=void 0;"h264"===t?l=31&e[s+u]:"h265"===t&&(l=e[s+u]>>1&63),-1!==r.indexOf(l)&&(a=s+u),s+=u+("h264"===t?1:2)}return e.subarray(0,0)},v={webm:(0,i.Ki)([119,101,98,109]),matroska:(0,i.Ki)([109,97,116,114,111,115,107,97]),flac:(0,i.Ki)([102,76,97,67]),ogg:(0,i.Ki)([79,103,103,83]),ac3:(0,i.Ki)([11,119]),riff:(0,i.Ki)([82,73,70,70]),avi:(0,i.Ki)([65,86,73]),wav:(0,i.Ki)([87,65,86,69]),"3gp":(0,i.Ki)([102,116,121,112,51,103]),mp4:(0,i.Ki)([102,116,121,112]),fmp4:(0,i.Ki)([115,116,121,112]),mov:(0,i.Ki)([102,116,121,112,113,116]),moov:(0,i.Ki)([109,111,111,118]),moof:(0,i.Ki)([109,111,111,102])},T={aac:function(e){var t=(0,g.c)(e);return(0,i.G3)(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=(0,g.c)(e);return(0,i.G3)(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=h(e,[u.EBML,u.DocType])[0];return(0,i.G3)(t,v.webm)},mkv:function(e){var t=h(e,[u.EBML,u.DocType])[0];return(0,i.G3)(t,v.matroska)},mp4:function(e){return!(T["3gp"](e)||T.mov(e))&&(!!((0,i.G3)(e,v.mp4,{offset:4})||(0,i.G3)(e,v.fmp4,{offset:4})||(0,i.G3)(e,v.moof,{offset:4})||(0,i.G3)(e,v.moov,{offset:4}))||void 0)},mov:function(e){return(0,i.G3)(e,v.mov,{offset:4})},"3gp":function(e){return(0,i.G3)(e,v["3gp"],{offset:4})},ac3:function(e){var t=(0,g.c)(e);return(0,i.G3)(e,v.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=(0,g.c)(e);return(0,i.G3)(e,v.flac,{offset:t})},ogg:function(e){return(0,i.G3)(e,v.ogg)},avi:function(e){return(0,i.G3)(e,v.riff)&&(0,i.G3)(e,v.avi,{offset:8})},wav:function(e){return(0,i.G3)(e,v.riff)&&(0,i.G3)(e,v.wav,{offset:8})},h264:function(e){return E(e,"h264",7,3).length},h265:function(e){return E(e,"h265",[32,33],3).length}},w=Object.keys(T).filter(function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e}).concat(["ts","h264","h265"]);w.forEach(function(e){var t=T[e];T[e]=function(e){return t((0,i.Ki)(e))}});var N=function(e){e=(0,i.Ki)(e);for(var t=0;t<w.length;t++){var r=w[t];if(T[r](e))return r}return""},A=function(e){return o(e,["moof"]).length>0}},36722:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(58908),i=r.n(n),a=r(48764).lW;function s(e){for(var t=i().atob?i().atob(e):a.from(e,"base64").toString("binary"),r=new Uint8Array(t.length),n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}},68925:function(e,t,r){"use strict";r.d(t,{c:function(){return s}});var n=r(60562),i=(0,n.Ki)([73,68,51]),a=function(e,t){void 0===t&&(t=0);var r=(e=(0,n.Ki)(e))[t+5],i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&r)>>4?i+20:i+10},s=function e(t,r){return(void 0===r&&(r=0),(t=(0,n.Ki)(t)).length-r<10||!(0,n.G3)(t,i,{offset:r}))?r:(r+=a(t,r),e(t,r))}},8485:function(e,t,r){"use strict";r.d(t,{t:function(){return a}});var n=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,i=/^application\/dash\+xml/i,a=function(e){return n.test(e)?"hls":i.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null}},80779:function(e,t,r){"use strict";var n=r(58908),i=r.n(n),a="https://example.com";t.Z=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=i().location&&i().location.href||"");var r=/^\/\//.test(e),n=!i().location&&!/\/\//i.test(e),s=new URL(t,e=new(i()).URL(e,i().location||a));return n?s.href.slice(a.length):r?s.href.slice(s.protocol.length):s.href}},13490:function(e,t,r){"use strict";var n=r(58908);e.exports=function(e,t){return void 0===t&&(t=!1),function(r,i,a){if(r){e(r);return}if(i.statusCode>=400&&i.statusCode<=599){var s=a;if(t){if(n.TextDecoder){var o,u=(void 0===(o=i.headers&&i.headers["content-type"])&&(o=""),o.toLowerCase().split(";").reduce(function(e,t){var r=t.split("="),n=r[0],i=r[1];return"charset"===n.trim()?i.trim():e},"utf-8"));try{s=new TextDecoder(u).decode(a)}catch(e){}}else s=String.fromCharCode.apply(null,new Uint8Array(a))}e({cause:s});return}e(null,a)}}},9603:function(e,t,r){"use strict";var n=r(58908),i=r(10434),a=r(27376),s=r(61608),o=r(75973);c.httpHandler=r(13490),c.requestInterceptorsStorage=new s,c.responseInterceptorsStorage=new s,c.retryManager=new o;var u=function(e){var t={};return e&&e.trim().split("\n").forEach(function(e){var r=e.indexOf(":"),n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();void 0===t[n]?t[n]=i:Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]}),t};function l(e,t,r){var n=e;return a(t)?(r=t,"string"==typeof e&&(n={uri:e})):n=i({},t,{uri:e}),n.callback=r,n}function c(e,t,r){return p(t=l(e,t,r))}function p(e){if(void 0===e.callback)throw Error("callback argument missing");if(e.requestType&&c.requestInterceptorsStorage.getIsEnabled()){var t,r,n,i={uri:e.uri||e.url,headers:e.headers||{},body:e.body,metadata:e.metadata||{},retry:e.retry,timeout:e.timeout},a=c.requestInterceptorsStorage.execute(e.requestType,i);e.uri=a.uri,e.headers=a.headers,e.body=a.body,e.metadata=a.metadata,e.retry=a.retry,e.timeout=a.timeout}var s=!1,o=function(t,r,n){s||(s=!0,e.callback(t,r,n))};function l(t){if(clearTimeout(n),clearTimeout(e.retryTimeout),t instanceof Error||(t=Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,!r&&c.retryManager.getIsEnabled()&&e.retry&&e.retry.shouldRetry()){e.retryTimeout=setTimeout(function(){e.retry.moveToNextAttempt(),e.xhr=d,p(e)},e.retry.getCurrentFuzzedDelay());return}if(e.requestType&&c.responseInterceptorsStorage.getIsEnabled()){var i={headers:E.headers||{},body:E.body,responseUrl:d.responseURL,responseType:d.responseType},a=c.responseInterceptorsStorage.execute(e.requestType,i);E.body=a.body,E.headers=a.headers}return o(t,E)}function f(){if(!r){clearTimeout(n),clearTimeout(e.retryTimeout);var t,i=E,a=null;if(0!==(t=e.useXDR&&void 0===d.status?200:1223===d.status?204:d.status)?(i={body:function(){var e=void 0;if(e=d.response?d.response:d.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(d),D)try{e=JSON.parse(e)}catch(e){}return e}(),statusCode:t,method:g,headers:{},url:h,rawRequest:d},d.getAllResponseHeaders&&(i.headers=u(d.getAllResponseHeaders()))):a=Error("Internal XMLHttpRequest Error"),e.requestType&&c.responseInterceptorsStorage.getIsEnabled()){var s={headers:i.headers||{},body:i.body,responseUrl:d.responseURL,responseType:d.responseType},l=c.responseInterceptorsStorage.execute(e.requestType,s);i.body=l.body,i.headers=l.headers}return o(a,i,i.body)}}var d=e.xhr||null;d||(d=e.cors||e.useXDR?new c.XDomainRequest:new c.XMLHttpRequest);var h=d.url=e.uri||e.url,g=d.method=e.method||"GET",m=e.body||e.data,b=d.headers=e.headers||{},y=!!e.sync,D=!1,E={body:void 0,headers:{},statusCode:0,method:g,url:h,rawRequest:d};if("json"in e&&!1!==e.json&&(D=!0,b.accept||b.Accept||(b.Accept="application/json"),"GET"!==g&&"HEAD"!==g&&(b["content-type"]||b["Content-Type"]||(b["Content-Type"]="application/json"),m=JSON.stringify(!0===e.json?m:e.json))),d.onreadystatechange=function(){4!==d.readyState||c.responseInterceptorsStorage.getIsEnabled()||setTimeout(f,0)},d.onload=f,d.onerror=l,d.onprogress=function(){},d.onabort=function(){r=!0,clearTimeout(e.retryTimeout)},d.ontimeout=l,d.open(g,h,!y,e.username,e.password),y||(d.withCredentials=!!e.withCredentials),!y&&e.timeout>0&&(n=setTimeout(function(){if(!r){r=!0,d.abort("timeout");var e=Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",l(e)}},e.timeout)),d.setRequestHeader)for(t in b)b.hasOwnProperty(t)&&d.setRequestHeader(t,b[t]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(d.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(d),d.send(m||null),d}e.exports=c,e.exports.default=c,c.XMLHttpRequest=n.XMLHttpRequest||function(){},c.XDomainRequest="withCredentials"in new c.XMLHttpRequest?c.XMLHttpRequest:n.XDomainRequest,function(e,t){for(var r=0;r<e.length;r++)t(e[r])}(["get","put","post","patch","head","delete"],function(e){c["delete"===e?"del":e]=function(t,r,n){return(r=l(t,r,n)).method=e.toUpperCase(),p(r)}})},61608:function(e){"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var r=function(){function e(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1}var r=e.prototype;return r.getIsEnabled=function(){return this.enabled_},r.enable=function(){this.enabled_=!0},r.disable=function(){this.enabled_=!1},r.reset=function(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1},r.addInterceptor=function(e,t){this.typeToInterceptorsMap_.has(e)||this.typeToInterceptorsMap_.set(e,new Set);var r=this.typeToInterceptorsMap_.get(e);return!r.has(t)&&(r.add(t),!0)},r.removeInterceptor=function(e,t){var r=this.typeToInterceptorsMap_.get(e);return!!(r&&r.has(t))&&(r.delete(t),!0)},r.clearInterceptorsByType=function(e){return!!this.typeToInterceptorsMap_.get(e)&&(this.typeToInterceptorsMap_.delete(e),this.typeToInterceptorsMap_.set(e,new Set),!0)},r.clear=function(){return!!this.typeToInterceptorsMap_.size&&(this.typeToInterceptorsMap_=new Map,!0)},r.getForType=function(e){return this.typeToInterceptorsMap_.get(e)||new Set},r.execute=function(e,r){for(var n,i=this.getForType(e),a=function(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,r){if(e){if("string"==typeof e)return t(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,void 0)}}(e))){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i);!(n=a()).done;){var s=n.value;try{r=s(r)}catch(e){}}return r},e}();e.exports=r},75973:function(e){"use strict";var t=function(){function e(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1}var t=e.prototype;return t.getIsEnabled=function(){return this.enabled_},t.enable=function(){this.enabled_=!0},t.disable=function(){this.enabled_=!1},t.reset=function(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1},t.getMaxAttempts=function(){return this.maxAttempts_},t.setMaxAttempts=function(e){this.maxAttempts_=e},t.getDelayFactor=function(){return this.delayFactor_},t.setDelayFactor=function(e){this.delayFactor_=e},t.getFuzzFactor=function(){return this.fuzzFactor_},t.setFuzzFactor=function(e){this.fuzzFactor_=e},t.getInitialDelay=function(){return this.initialDelay_},t.setInitialDelay=function(e){this.initialDelay_=e},t.createRetry=function(e){var t=void 0===e?{}:e,n=t.maxAttempts,i=t.delayFactor,a=t.fuzzFactor,s=t.initialDelay;return new r({maxAttempts:n||this.maxAttempts_,delayFactor:i||this.delayFactor_,fuzzFactor:a||this.fuzzFactor_,initialDelay:s||this.initialDelay_})},e}(),r=function(){function e(e){this.maxAttempts_=e.maxAttempts,this.delayFactor_=e.delayFactor,this.fuzzFactor_=e.fuzzFactor,this.currentDelay_=e.initialDelay,this.currentAttempt_=1}var t=e.prototype;return t.moveToNextAttempt=function(){this.currentAttempt_++;var e=this.currentDelay_*this.delayFactor_;this.currentDelay_=this.currentDelay_+e},t.shouldRetry=function(){return this.currentAttempt_<this.maxAttempts_},t.getCurrentDelay=function(){return this.currentDelay_},t.getCurrentMinPossibleDelay=function(){return(1-this.fuzzFactor_)*this.currentDelay_},t.getCurrentMaxPossibleDelay=function(){return(1+this.fuzzFactor_)*this.currentDelay_},t.getCurrentFuzzedDelay=function(){var e=this.getCurrentMinPossibleDelay();return e+Math.random()*(this.getCurrentMaxPossibleDelay()-e)},e}();e.exports=t},72167:function(e,t){"use strict";function r(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}var n=r({HTML:"text/html",isHTML:function(e){return e===n.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),i=r({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===i.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=function(e,t){if(null===e||"object"!=typeof e)throw TypeError("target is not an object");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},t.find=function(e,t,r){if(void 0===r&&(r=Array.prototype),e&&"function"==typeof r.find)return r.find.call(e,t);for(var n=0;n<e.length;n++)if(Object.prototype.hasOwnProperty.call(e,n)){var i=e[n];if(t.call(void 0,i,n,e))return i}},t.freeze=r,t.MIME_TYPE=n,t.NAMESPACE=i},86129:function(e,t,r){var n=r(72167),i=r(41146),a=r(31045),s=r(76925),o=i.DOMImplementation,u=n.NAMESPACE,l=s.ParseError,c=s.XMLReader;function p(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function f(e){this.options=e||{locator:{}}}function d(){this.cdata=!1}function h(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function g(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function m(e,t,r){return"string"==typeof e?e.substr(t,r):e.length>=t+r||t?new java.lang.String(e,t,r)+"":e}function b(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}f.prototype.parseFromString=function(e,t){var r=this.options,n=new c,i=r.domBuilder||new d,s=r.errorHandler,o=r.locator,l=r.xmlns||{},f=/\/x?html?$/.test(t),h=f?a.HTML_ENTITIES:a.XML_ENTITIES;o&&i.setDocumentLocator(o),n.errorHandler=function(e,t,r){if(!e){if(t instanceof d)return t;e=t}var n={},i=e instanceof Function;function a(t){var a=e[t];!a&&i&&(a=2==e.length?function(r){e(t,r)}:e),n[t]=a&&function(e){a("[xmldom "+t+"] "+e+g(r))}||function(){}}return r=r||{},a("warning"),a("error"),a("fatalError"),n}(s,i,o),n.domBuilder=r.domBuilder||i,f&&(l[""]=u.HTML),l.xml=l.xml||u.XML;var m=r.normalizeLineEndings||p;return e&&"string"==typeof e?n.parse(m(e),l,h):n.errorHandler.error("invalid doc source"),i.doc},d.prototype={startDocument:function(){this.doc=new o().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,r,n){var i=this.doc,a=i.createElementNS(e,r||t),s=n.length;b(this,a),this.currentElement=a,this.locator&&h(this.locator,a);for(var o=0;o<s;o++){var e=n.getURI(o),u=n.getValue(o),r=n.getQName(o),l=i.createAttributeNS(e,r);this.locator&&h(n.getLocator(o),l),l.value=l.nodeValue=u,a.setAttributeNode(l)}},endElement:function(e,t,r){var n=this.currentElement;n.tagName,this.currentElement=n.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var r=this.doc.createProcessingInstruction(e,t);this.locator&&h(this.locator,r),b(this,r)},ignorableWhitespace:function(e,t,r){},characters:function(e,t,r){if(e=m.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else var n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&h(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,r){e=m.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&h(this.locator,n),b(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,r){var n=this.doc.implementation;if(n&&n.createDocumentType){var i=n.createDocumentType(e,t,r);this.locator&&h(this.locator,i),b(this,i),this.doc.doctype=i}},warning:function(e){console.warn("[xmldom warning] "+e,g(this.locator))},error:function(e){console.error("[xmldom error] "+e,g(this.locator))},fatalError:function(e){throw new l(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){d.prototype[e]=function(){return null}}),t.DOMParser=f},41146:function(e,t,r){var n=r(72167),i=n.find,a=n.NAMESPACE;function s(e){return""!==e}function o(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function u(e){return e?Object.keys((e?e.split(/[\t\n\f\r ]+/).filter(s):[]).reduce(o,{})):[]}function l(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}function c(e,t){var r=e.prototype;if(!(r instanceof t)){function n(){}n.prototype=t.prototype,l(r,n=new n),e.prototype=r=n}r.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),r.constructor=e)}var p={},f=p.ELEMENT_NODE=1,d=p.ATTRIBUTE_NODE=2,h=p.TEXT_NODE=3,g=p.CDATA_SECTION_NODE=4,m=p.ENTITY_REFERENCE_NODE=5,b=p.ENTITY_NODE=6,y=p.PROCESSING_INSTRUCTION_NODE=7,D=p.COMMENT_NODE=8,E=p.DOCUMENT_NODE=9,v=p.DOCUMENT_TYPE_NODE=10,T=p.DOCUMENT_FRAGMENT_NODE=11,w=p.NOTATION_NODE=12,N={},A={};N.INDEX_SIZE_ERR=(A[1]="Index size error",1),N.DOMSTRING_SIZE_ERR=(A[2]="DOMString size error",2);var S=N.HIERARCHY_REQUEST_ERR=(A[3]="Hierarchy request error",3);N.WRONG_DOCUMENT_ERR=(A[4]="Wrong document",4),N.INVALID_CHARACTER_ERR=(A[5]="Invalid character",5),N.NO_DATA_ALLOWED_ERR=(A[6]="No data allowed",6),N.NO_MODIFICATION_ALLOWED_ERR=(A[7]="No modification allowed",7);var I=N.NOT_FOUND_ERR=(A[8]="Not found",8);N.NOT_SUPPORTED_ERR=(A[9]="Not supported",9);var R=N.INUSE_ATTRIBUTE_ERR=(A[10]="Attribute in use",10);function x(e,t){if(t instanceof Error)var r=t;else r=this,Error.call(this,A[e]),this.message=A[e],Error.captureStackTrace&&Error.captureStackTrace(this,x);return r.code=e,t&&(this.message=this.message+": "+t),r}function C(){}function O(e,t){this._node=e,this._refresh=t,L(this)}function L(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var r=e._refresh(e._node);if(eg(e,"length",r.length),!e.$$length||r.length<e.$$length)for(var n=r.length;(n in e);n++)Object.prototype.hasOwnProperty.call(e,n)&&delete e[n];l(r,e),e._inc=t}}function M(){}function U(e,t){for(var r=e.length;r--;)if(e[r]===t)return r}function q(e,t,r,n){if(n?t[U(t,n)]=r:t[t.length++]=r,e){r.ownerElement=e;var i=e.ownerDocument;i&&(n&&G(i,e,n),i&&i._inc++,r.namespaceURI===a.XMLNS&&(e._nsMap[r.prefix?r.localName:""]=r.value))}}function P(e,t,r){var n=U(t,r);if(n>=0){for(var i=t.length-1;n<i;)t[n]=t[++n];if(t.length=i,e){var a=e.ownerDocument;a&&(G(a,e,r),r.ownerElement=null)}}else throw new x(I,Error(e.tagName+"@"+r))}function _(){}function k(){}function B(e){return"<"==e&&"<"||">"==e&&">"||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function X(e,t){if(t(e))return!0;if(e=e.firstChild)do if(X(e,t))return!0;while(e=e.nextSibling)}function F(){this.ownerDocument=this}function G(e,t,r,n){e&&e._inc++,r.namespaceURI===a.XMLNS&&delete t._nsMap[r.prefix?r.localName:""]}function V(e,t,r){if(e&&e._inc){e._inc++;var n=t.childNodes;if(r)n[n.length++]=r;else{for(var i=t.firstChild,a=0;i;)n[a++]=i,i=i.nextSibling;n.length=a,delete n[n.length]}}}function H(e,t){var r=t.previousSibling,n=t.nextSibling;return r?r.nextSibling=n:e.firstChild=n,n?n.previousSibling=r:e.lastChild=r,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,V(e.ownerDocument,e),t}function z(e){return e&&e.nodeType===k.DOCUMENT_TYPE_NODE}function $(e){return e&&e.nodeType===k.ELEMENT_NODE}function j(e){return e&&e.nodeType===k.TEXT_NODE}function K(e,t){var r=e.childNodes||[];if(i(r,$)||z(t))return!1;var n=i(r,z);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function Y(e,t){var r=e.childNodes||[];if(i(r,function(e){return $(e)&&e!==t}))return!1;var n=i(r,z);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function W(e,t,r){var n=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===k.DOCUMENT_FRAGMENT_NODE){var s=a.filter($);if(s.length>1||i(a,j))throw new x(S,"More than one element or text in fragment");if(1===s.length&&!Y(e,r))throw new x(S,"Element in fragment can not be inserted before doctype")}if($(t)&&!Y(e,r))throw new x(S,"Only one element can be added and only after doctype");if(z(t)){if(i(n,function(e){return z(e)&&e!==r}))throw new x(S,"Only one doctype is allowed");var o=i(n,$);if(r&&n.indexOf(o)<n.indexOf(r))throw new x(S,"Doctype can only be inserted before an element")}}function Z(e,t,r,n){!function(e,t,r){if(!(e&&(e.nodeType===k.DOCUMENT_NODE||e.nodeType===k.DOCUMENT_FRAGMENT_NODE||e.nodeType===k.ELEMENT_NODE)))throw new x(S,"Unexpected parent node type "+e.nodeType);if(r&&r.parentNode!==e)throw new x(I,"child not in parent");if(!(t&&($(t)||j(t)||z(t)||t.nodeType===k.DOCUMENT_FRAGMENT_NODE||t.nodeType===k.COMMENT_NODE||t.nodeType===k.PROCESSING_INSTRUCTION_NODE))||z(t)&&e.nodeType!==k.DOCUMENT_NODE)throw new x(S,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}(e,t,r),e.nodeType===k.DOCUMENT_NODE&&(n||function(e,t,r){var n=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===k.DOCUMENT_FRAGMENT_NODE){var s=a.filter($);if(s.length>1||i(a,j))throw new x(S,"More than one element or text in fragment");if(1===s.length&&!K(e,r))throw new x(S,"Element in fragment can not be inserted before doctype")}if($(t)&&!K(e,r))throw new x(S,"Only one element can be added and only after doctype");if(z(t)){if(i(n,z))throw new x(S,"Only one doctype is allowed");var o=i(n,$);if(r&&n.indexOf(o)<n.indexOf(r))throw new x(S,"Doctype can only be inserted before an element");if(!r&&o)throw new x(S,"Doctype can not be appended since element is present")}})(e,t,r);var a=t.parentNode;if(a&&a.removeChild(t),t.nodeType===T){var s=t.firstChild;if(null==s)return t;var o=t.lastChild}else s=o=t;var u=r?r.previousSibling:e.lastChild;s.previousSibling=u,o.nextSibling=r,u?u.nextSibling=s:e.firstChild=s,null==r?e.lastChild=o:r.previousSibling=o;do s.parentNode=e;while(s!==o&&(s=s.nextSibling));return V(e.ownerDocument||e,e),t.nodeType==T&&(t.firstChild=t.lastChild=null),t}function J(){this._nsMap={}}function Q(){}function ee(){}function et(){}function er(){}function en(){}function ei(){}function ea(){}function es(){}function eo(){}function eu(){}function el(){}function ec(){}function ep(e,t){var r=[],n=9==this.nodeType&&this.documentElement||this,i=n.prefix,a=n.namespaceURI;if(a&&null==i){var i=n.lookupPrefix(a);if(null==i)var s=[{namespace:a,prefix:null}]}return eh(this,r,e,t,s),r.join("")}function ef(e,t,r){var n=e.prefix||"",i=e.namespaceURI;if(!i||"xml"===n&&i===a.XML||i===a.XMLNS)return!1;for(var s=r.length;s--;){var o=r[s];if(o.prefix===n)return o.namespace!==i}return!0}function ed(e,t,r){e.push(" ",t,'="',r.replace(/[<>&"\t\n\r]/g,B),'"')}function eh(e,t,r,n,i){if(i||(i=[]),n){if(!(e=n(e)))return;if("string"==typeof e){t.push(e);return}}switch(e.nodeType){case f:var s,o=e.attributes,u=o.length,l=e.firstChild,c=e.tagName;r=a.isHTML(e.namespaceURI)||r;var p=c;if(!r&&!e.prefix&&e.namespaceURI){for(var b=0;b<o.length;b++)if("xmlns"===o.item(b).name){s=o.item(b).value;break}if(!s)for(var w=i.length-1;w>=0;w--){var N=i[w];if(""===N.prefix&&N.namespace===e.namespaceURI){s=N.namespace;break}}if(s!==e.namespaceURI)for(var w=i.length-1;w>=0;w--){var N=i[w];if(N.namespace===e.namespaceURI){N.prefix&&(p=N.prefix+":"+c);break}}}t.push("<",p);for(var A=0;A<u;A++){var S=o.item(A);"xmlns"==S.prefix?i.push({prefix:S.localName,namespace:S.value}):"xmlns"==S.nodeName&&i.push({prefix:"",namespace:S.value})}for(var A=0;A<u;A++){var S=o.item(A);if(ef(S,r,i)){var I=S.prefix||"",R=S.namespaceURI;ed(t,I?"xmlns:"+I:"xmlns",R),i.push({prefix:I,namespace:R})}eh(S,t,r,n,i)}if(c===p&&ef(e,r,i)){var I=e.prefix||"",R=e.namespaceURI;ed(t,I?"xmlns:"+I:"xmlns",R),i.push({prefix:I,namespace:R})}if(l||r&&!/^(?:meta|link|img|br|hr|input)$/i.test(c)){if(t.push(">"),r&&/^script$/i.test(c))for(;l;)l.data?t.push(l.data):eh(l,t,r,n,i.slice()),l=l.nextSibling;else for(;l;)eh(l,t,r,n,i.slice()),l=l.nextSibling;t.push("</",p,">")}else t.push("/>");return;case E:case T:for(var l=e.firstChild;l;)eh(l,t,r,n,i.slice()),l=l.nextSibling;return;case d:return ed(t,e.name,e.value);case h:return t.push(e.data.replace(/[<&>]/g,B));case g:return t.push("<![CDATA[",e.data,"]]>");case D:return t.push("<!--",e.data,"-->");case v:var x=e.publicId,C=e.systemId;if(t.push("<!DOCTYPE ",e.name),x)t.push(" PUBLIC ",x),C&&"."!=C&&t.push(" ",C),t.push(">");else if(C&&"."!=C)t.push(" SYSTEM ",C,">");else{var O=e.internalSubset;O&&t.push(" [",O,"]"),t.push(">")}return;case y:return t.push("<?",e.target," ",e.data,"?>");case m:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function eg(e,t,r){e[t]=r}N.INVALID_STATE_ERR=(A[11]="Invalid state",11),N.SYNTAX_ERR=(A[12]="Syntax error",12),N.INVALID_MODIFICATION_ERR=(A[13]="Invalid modification",13),N.NAMESPACE_ERR=(A[14]="Invalid namespace",14),N.INVALID_ACCESS_ERR=(A[15]="Invalid access",15),x.prototype=Error.prototype,l(N,x),C.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var r=[],n=0;n<this.length;n++)eh(this[n],r,e,t);return r.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},O.prototype.item=function(e){return L(this),this[e]||null},c(O,C),M.prototype={length:0,item:C.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var r=this[t];if(r.nodeName==e)return r}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new x(R);var r=this.getNamedItem(e.nodeName);return q(this._ownerElement,this,e,r),r},setNamedItemNS:function(e){var t,r=e.ownerElement;if(r&&r!=this._ownerElement)throw new x(R);return t=this.getNamedItemNS(e.namespaceURI,e.localName),q(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return P(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var r=this.getNamedItemNS(e,t);return P(this._ownerElement,this,r),r},getNamedItemNS:function(e,t){for(var r=this.length;r--;){var n=this[r];if(n.localName==t&&n.namespaceURI==e)return n}return null}},_.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,r){var n=new F;if(n.implementation=this,n.childNodes=new C,n.doctype=r||null,r&&n.appendChild(r),t){var i=n.createElementNS(e,t);n.appendChild(i)}return n},createDocumentType:function(e,t,r){var n=new ei;return n.name=e,n.nodeName=e,n.publicId=t||"",n.systemId=r||"",n}},k.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return Z(this,e,t)},replaceChild:function(e,t){Z(this,e,t,W),t&&this.removeChild(t)},removeChild:function(e){return H(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return function e(t,r,n){var i=new r.constructor;for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)){var s=r[a];"object"!=typeof s&&s!=i[a]&&(i[a]=s)}switch(r.childNodes&&(i.childNodes=new C),i.ownerDocument=t,i.nodeType){case f:var o=r.attributes,u=i.attributes=new M,l=o.length;u._ownerElement=i;for(var c=0;c<l;c++)i.setAttributeNode(e(t,o.item(c),!0));break;case d:n=!0}if(n)for(var p=r.firstChild;p;)i.appendChild(e(t,p,n)),p=p.nextSibling;return i}(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==h&&e.nodeType==h?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var r=t._nsMap;if(r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&r[n]===e)return n}t=t.nodeType==d?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var r=t._nsMap;if(r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];t=t.nodeType==d?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},l(p,k),l(p,k.prototype),F.prototype={nodeName:"#document",nodeType:E,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==T){for(var r=e.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,t),r=n}return e}return Z(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===f&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),H(this,e)},replaceChild:function(e,t){Z(this,e,t,W),e.ownerDocument=this,t&&this.removeChild(t),$(e)&&(this.documentElement=e)},importNode:function(e,t){return function e(t,r,n){var i;switch(r.nodeType){case f:(i=r.cloneNode(!1)).ownerDocument=t;case T:break;case d:n=!0}if(i||(i=r.cloneNode(!1)),i.ownerDocument=t,i.parentNode=null,n)for(var a=r.firstChild;a;)i.appendChild(e(t,a,n)),a=a.nextSibling;return i}(this,e,t)},getElementById:function(e){var t=null;return X(this.documentElement,function(r){if(r.nodeType==f&&r.getAttribute("id")==e)return t=r,!0}),t},getElementsByClassName:function(e){var t=u(e);return new O(this,function(r){var n=[];return t.length>0&&X(r.documentElement,function(i){if(i!==r&&i.nodeType===f){var a=i.getAttribute("class");if(a){var s=e===a;if(!s){var o=u(a);s=t.every(function(e){return o&&-1!==o.indexOf(e)})}s&&n.push(i)}}}),n})},createElement:function(e){var t=new J;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new C,(t.attributes=new M)._ownerElement=t,t},createDocumentFragment:function(){var e=new eu;return e.ownerDocument=this,e.childNodes=new C,e},createTextNode:function(e){var t=new et;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new er;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new en;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var r=new el;return r.ownerDocument=this,r.tagName=r.nodeName=r.target=e,r.nodeValue=r.data=t,r},createAttribute:function(e){var t=new Q;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new eo;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var r=new J,n=t.split(":"),i=r.attributes=new M;return r.childNodes=new C,r.ownerDocument=this,r.nodeName=t,r.tagName=t,r.namespaceURI=e,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,i._ownerElement=r,r},createAttributeNS:function(e,t){var r=new Q,n=t.split(":");return r.ownerDocument=this,r.nodeName=t,r.name=t,r.namespaceURI=e,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,r}},c(F,k),J.prototype={nodeType:f,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var r=this.ownerDocument.createAttribute(e);r.value=r.nodeValue=""+t,this.setAttributeNode(r)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===T?this.insertBefore(e,null):(e.parentNode&&e.parentNode.removeChild(e),e.parentNode=this,e.previousSibling=this.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:this.firstChild=e,this.lastChild=e,V(this.ownerDocument,this,e),e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r&&r.value||""},setAttributeNS:function(e,t,r){var n=this.ownerDocument.createAttributeNS(e,t);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new O(this,function(t){var r=[];return X(t,function(n){n!==t&&n.nodeType==f&&("*"===e||n.tagName==e)&&r.push(n)}),r})},getElementsByTagNameNS:function(e,t){return new O(this,function(r){var n=[];return X(r,function(i){i!==r&&i.nodeType===f&&("*"===e||i.namespaceURI===e)&&("*"===t||i.localName==t)&&n.push(i)}),n})}},F.prototype.getElementsByTagName=J.prototype.getElementsByTagName,F.prototype.getElementsByTagNameNS=J.prototype.getElementsByTagNameNS,c(J,k),Q.prototype.nodeType=d,c(Q,k),ee.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw Error(A[S])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,r){r=this.data.substring(0,e)+r+this.data.substring(e+t),this.nodeValue=this.data=r,this.length=r.length}},c(ee,k),et.prototype={nodeName:"#text",nodeType:h,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},c(et,ee),er.prototype={nodeName:"#comment",nodeType:D},c(er,ee),en.prototype={nodeName:"#cdata-section",nodeType:g},c(en,ee),ei.prototype.nodeType=v,c(ei,k),ea.prototype.nodeType=w,c(ea,k),es.prototype.nodeType=b,c(es,k),eo.prototype.nodeType=m,c(eo,k),eu.prototype.nodeName="#document-fragment",eu.prototype.nodeType=T,c(eu,k),el.prototype.nodeType=y,c(el,k),ec.prototype.serializeToString=function(e,t,r){return ep.call(e,t,r)},k.prototype.toString=ep;try{Object.defineProperty&&(Object.defineProperty(O.prototype,"length",{get:function(){return L(this),this.$$length}}),Object.defineProperty(k.prototype,"textContent",{get:function(){return function e(t){switch(t.nodeType){case f:case T:var r=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&r.push(e(t)),t=t.nextSibling;return r.join("");default:return t.nodeValue}}(this)},set:function(e){switch(this.nodeType){case f:case T:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),eg=function(e,t,r){e["$$"+t]=r})}catch(e){}t.DocumentType=ei,t.DOMException=x,t.DOMImplementation=_,t.Element=J,t.Node=k,t.NodeList=C,t.XMLSerializer=ec},31045:function(e,t,r){"use strict";var n=r(72167).freeze;t.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=n({Aacute:"\xc1",aacute:"\xe1",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"А",acy:"а",AElig:"\xc6",aelig:"\xe6",af:"",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"\xc0",agrave:"\xe0",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"\xc5",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"\xc5",aring:"\xe5",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"\xa6",Bscr:"ℬ",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"⦲",cent:"\xa2",CenterDot:"\xb7",centerdot:"\xb7",Cfr:"ℭ",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"\xae",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"\uD835\uDD54",coprod:"∐",Coproduct:"∐",COPY:"\xa9",copy:"\xa9",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"\xa4",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"\xb0",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"\xa8",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"\xa8",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"\xc9",eacute:"\xe9",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"\xca",ecirc:"\xea",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"⪚",Egrave:"\xc8",egrave:"\xe8",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"\xbd",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"\uD835\uDD25",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"\uD835\uDD59",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"\uD835\uDCBD",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"\xcd",iacute:"\xed",ic:"",Icirc:"\xce",icirc:"\xee",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"\xa1",iff:"⇔",Ifr:"ℑ",ifr:"\uD835\uDD26",Igrave:"\xcc",igrave:"\xec",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"\xbf",Iscr:"ℐ",iscr:"\uD835\uDCBE",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"\xcf",iuml:"\xef",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"ȷ",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"\xab",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"\uD835\uDCC1",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"\xaf",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"℧",micro:"\xb5",mid:"∣",midast:"*",midcir:"⫰",middot:"\xb7",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"∓",Mscr:"ℳ",mscr:"\uD835\uDCC2",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:"\xa0",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:"\xa0",Nopf:"ℕ",nopf:"\uD835\uDD5F",Not:"⫬",not:"\xac",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"\xd3",oacute:"\xf3",oast:"⊛",ocir:"⊚",Ocirc:"\xd4",ocirc:"\xf4",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"˛",Ograve:"\xd2",ograve:"\xf2",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"\uD835\uDCAA",oscr:"ℴ",Oslash:"\xd8",oslash:"\xf8",osol:"⊘",Otilde:"\xd5",otilde:"\xf5",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"\xd6",ouml:"\xf6",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"\xb6",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"\uD835\uDD61",pound:"\xa3",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"⨌",Qopf:"ℚ",qopf:"\uD835\uDD62",qprime:"⁗",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"\xbb",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"\xae",reg:"\xae",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"\uD835\uDD2F",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"\uD835\uDCC7",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"\xad",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"\xaf",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"\xdf",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"\xde",thorn:"\xfe",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"\xd7",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"\xda",uacute:"\xfa",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"\xd9",ugrave:"\xf9",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"\xa8",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"\xdc",uuml:"\xfc",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"\xdd",yacute:"\xfd",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"\xa5",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ї",yicy:"ї",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"\xff",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"\uD835\uDD37",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"",zwnj:""}),t.entityMap=t.HTML_ENTITIES},3969:function(e,t,r){var n=r(41146);n.DOMImplementation,n.XMLSerializer,t.DOMParser=r(86129).DOMParser},76925:function(e,t,r){var n=r(72167).NAMESPACE,i=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,a=RegExp("[\\-\\.0-9"+i.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),s=RegExp("^"+i.source+a.source+"*(?::"+i.source+a.source+"*)?$");function o(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,o)}function u(){}function l(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function c(e,t,r){for(var i=e.tagName,a=null,s=e.length;s--;){var o=e[s],u=o.qName,l=o.value,c=u.indexOf(":");if(c>0)var f=o.prefix=u.slice(0,c),d=u.slice(c+1),h="xmlns"===f&&d;else d=u,f=null,h="xmlns"===u&&"";o.localName=d,!1!==h&&(null==a&&(a={},p(r,r={})),r[h]=a[h]=l,o.uri=n.XMLNS,t.startPrefixMapping(h,l))}for(var s=e.length;s--;){var f=(o=e[s]).prefix;f&&("xml"===f&&(o.uri=n.XML),"xmlns"!==f&&(o.uri=r[f||""]))}var c=i.indexOf(":");c>0?(f=e.prefix=i.slice(0,c),d=e.localName=i.slice(c+1)):(f=null,d=e.localName=i);var g=e.uri=r[f||""];if(t.startElement(g,d,i,e),!e.closed)return e.currentNSMap=r,e.localNSMap=a,!0;if(t.endElement(g,d,i),a)for(f in a)Object.prototype.hasOwnProperty.call(a,f)&&t.endPrefixMapping(f)}function p(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}function f(){this.attributeNames={}}o.prototype=Error(),o.prototype.name=o.name,u.prototype={parse:function(e,t,r){var i=this.domBuilder;i.startDocument(),p(t,t={}),function(e,t,r,i,a){function s(e){var t,n=e.slice(1,-1);return Object.hasOwnProperty.call(r,n)?r[n]:"#"!==n.charAt(0)?(a.error("entity not found:"+e),e):(t=parseInt(n.substr(1).replace("x","0x")))>65535?String.fromCharCode(55296+((t-=65536)>>10),56320+(1023&t)):String.fromCharCode(t)}function u(t){if(t>D){var r=e.substring(D,t).replace(/&#?\w+;/g,s);m&&p(D),i.characters(r,0,t-D),D=t}}function p(t,r){for(;t>=h&&(r=g.exec(e));)h=(d=r.index)+r[0].length,m.lineNumber++;m.columnNumber=t-d+1}for(var d=0,h=0,g=/.*(?:\r\n?|\n)|.*$/g,m=i.locator,b=[{currentNSMap:t}],y={},D=0;;){try{var E=e.indexOf("<",D);if(E<0){if(!e.substr(D).match(/^\s*$/)){var v=i.doc,T=v.createTextNode(e.substr(D));v.appendChild(T),i.currentElement=T}return}switch(E>D&&u(E),e.charAt(E+1)){case"/":var w=e.indexOf(">",E+3),N=e.substring(E+2,w).replace(/[ \t\n\r]+$/g,""),A=b.pop();w<0?(N=e.substring(E+2).replace(/[\s<].*/,""),a.error("end tag name: "+N+" is not complete:"+A.tagName),w=E+1+N.length):N.match(/\s</)&&(N=N.replace(/[\s<].*/,""),a.error("end tag name: "+N+" maybe not complete"),w=E+1+N.length);var S=A.localNSMap,I=A.tagName==N;if(I||A.tagName&&A.tagName.toLowerCase()==N.toLowerCase()){if(i.endElement(A.uri,A.localName,N),S)for(var R in S)Object.prototype.hasOwnProperty.call(S,R)&&i.endPrefixMapping(R);I||a.fatalError("end tag name: "+N+" is not match the current start tagName:"+A.tagName)}else b.push(A);w++;break;case"?":m&&p(E),w=function(e,t,r){var n=e.indexOf("?>",t);if(n){var i=e.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i)return i[0].length,r.processingInstruction(i[1],i[2]),n+2}return -1}(e,E,i);break;case"!":m&&p(E),w=function(e,t,r,n){if("-"===e.charAt(t+2)){if("-"===e.charAt(t+3)){var i=e.indexOf("-->",t+4);if(i>t)return r.comment(e,t+4,i-t-4),i+3;n.error("Unclosed comment")}}else{if("CDATA["==e.substr(t+3,6)){var i=e.indexOf("]]>",t+9);return r.startCDATA(),r.characters(e,t+9,i-t-9),r.endCDATA(),i+3}var a=function(e,t){var r,n=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=t,i.exec(e);r=i.exec(e);)if(n.push(r),r[1])return n}(e,t),s=a.length;if(s>1&&/!doctype/i.test(a[0][0])){var o=a[1][0],u=!1,l=!1;s>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],l=s>4&&a[4][0]):/^system$/i.test(a[2][0])&&(l=a[3][0]));var c=a[s-1];return r.startDTD(o,u,l),r.endDTD(),c.index+c[0].length}}return -1}(e,E,i,a);break;default:m&&p(E);var x=new f,C=b[b.length-1].currentNSMap,w=function(e,t,r,i,a,s){function o(e,t,n){r.attributeNames.hasOwnProperty(e)&&s.fatalError("Attribute "+e+" redefined"),r.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,a),n)}for(var u,l,c=++t,p=0;;){var f=e.charAt(c);switch(f){case"=":if(1===p)u=e.slice(t,c),p=3;else if(2===p)p=3;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(3===p||1===p){if(1===p&&(s.warning('attribute value must after "="'),u=e.slice(t,c)),t=c+1,(c=e.indexOf(f,t))>0)o(u,l=e.slice(t,c),t-1),p=5;else throw Error("attribute value no end '"+f+"' match")}else if(4==p)o(u,l=e.slice(t,c),t),s.warning('attribute "'+u+'" missed start quot('+f+")!!"),t=c+1,p=5;else throw Error('attribute value must after "="');break;case"/":switch(p){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:p=7,r.closed=!0;case 4:case 1:break;case 2:r.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":return s.error("unexpected end of input"),0==p&&r.setTagName(e.slice(t,c)),c;case">":switch(p){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(l=e.slice(t,c)).slice(-1)&&(r.closed=!0,l=l.slice(0,-1));case 2:2===p&&(l=u),4==p?(s.warning('attribute "'+l+'" missed quot(")!'),o(u,l,t)):(n.isHTML(i[""])&&l.match(/^(?:disabled|checked|selected)$/i)||s.warning('attribute "'+l+'" missed value!! "'+l+'" instead!!'),o(l,l,t));break;case 3:throw Error("attribute value missed!!")}return c;case"\x80":f=" ";default:if(f<=" ")switch(p){case 0:r.setTagName(e.slice(t,c)),p=6;break;case 1:u=e.slice(t,c),p=2;break;case 4:var l=e.slice(t,c);s.warning('attribute "'+l+'" missed quot(")!!'),o(u,l,t);case 5:p=6}else switch(p){case 2:r.tagName,n.isHTML(i[""])&&u.match(/^(?:disabled|checked|selected)$/i)||s.warning('attribute "'+u+'" missed value!! "'+u+'" instead2!!'),o(u,u,t),t=c,p=1;break;case 5:s.warning('attribute space is required"'+u+'"!!');case 6:p=1,t=c;break;case 3:p=4,t=c;break;case 7:throw Error("elements closed character '/' and '>' must be connected to")}}c++}}(e,E,x,C,s,a),O=x.length;if(!x.closed&&function(e,t,r,n){var i=n[r];return null==i&&((i=e.lastIndexOf("</"+r+">"))<t&&(i=e.lastIndexOf("</"+r)),n[r]=i),i<t}(e,w,x.tagName,y)&&(x.closed=!0,r.nbsp||a.warning("unclosed xml attribute")),m&&O){for(var L=l(m,{}),M=0;M<O;M++){var U=x[M];p(U.offset),U.locator=l(m,{})}i.locator=L,c(x,i,C)&&b.push(x),i.locator=m}else c(x,i,C)&&b.push(x);n.isHTML(x.uri)&&!x.closed?w=function(e,t,r,n,i){if(/^(?:script|textarea)$/i.test(r)){var a=e.indexOf("</"+r+">",t),s=e.substring(t+1,a);if(/[&<]/.test(s))return/^script$/i.test(r)||(s=s.replace(/&#?\w+;/g,n)),i.characters(s,0,s.length),a}return t+1}(e,w,x.tagName,s,i):w++}}catch(e){if(e instanceof o)throw e;a.error("element parse error: "+e),w=-1}w>D?D=w:u(Math.max(E,D)+1)}}(e,t,r,i,this.errorHandler),i.endDocument()}},f.prototype={setTagName:function(e){if(!s.test(e))throw Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,r){if(!s.test(e))throw Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=u,t.ParseError=o},89144:function(e,t,r){var n,i=void 0!==r.g?r.g:"undefined"!=typeof window?window:{},a=r(25893);"undefined"!=typeof document?n=document:(n=i["__GLOBAL_DOCUMENT_CACHE@4"])||(n=i["__GLOBAL_DOCUMENT_CACHE@4"]=a),e.exports=n},58908:function(e,t,r){var n;"undefined"!=typeof window?n=window:void 0!==r.g?n=r.g:"undefined"!=typeof self?n=self:n={},e.exports=n},27376:function(e){e.exports=function(e){if(!e)return!1;var r=t.call(e);return"[object Function]"===r||"function"==typeof e&&"[object RegExp]"!==r||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var t=Object.prototype.toString},9323:function(e,t,r){"use strict";r.d(t,{_b:function(){return h}});var n=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var r=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(r,1),r>-1},t.trigger=function(e){var t=this.listeners[e];if(t){if(2==arguments.length)for(var r=t.length,n=0;n<r;++n)t[n].call(this,arguments[1]);else for(var i=Array.prototype.slice.call(arguments,1),a=t.length,s=0;s<a;++s)t[s].apply(this,i)}},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}(),i=r(87462),a=r(36722);class s extends n{constructor(){super(),this.buffer=""}push(e){let t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)}}let o=function(e){let t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),r={};return t[1]&&(r.length=parseInt(t[1],10)),t[2]&&(r.offset=parseInt(t[2],10)),r},u=function(e){let t;let r={};if(!e)return r;let n=e.split(RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),i=n.length;for(;i--;)""!==n[i]&&((t=/([^=]*)=(.*)/.exec(n[i]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),r[t[0]]=t[1]);return r},l=e=>{let t=e.split("x"),r={};return t[0]&&(r.width=parseInt(t[0],10)),t[1]&&(r.height=parseInt(t[1],10)),r};class c extends n{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let t,r;if(0!==(e=e.trim()).length){if("#"!==e[0]){this.trigger("data",{type:"uri",uri:e});return}this.tagMappers.reduce((t,r)=>{let n=r(e);return n===e?t:t.concat([n])},[e]).forEach(e=>{for(let t=0;t<this.customParsers.length;t++)if(this.customParsers[t].call(this,e))return;if(0!==e.indexOf("#EXT")){this.trigger("data",{type:"comment",text:e.slice(1)});return}if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e)){this.trigger("data",{type:"tag",tagType:"m3u"});return}if(t=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(e)){r={type:"tag",tagType:"inf"},t[1]&&(r.duration=parseFloat(t[1])),t[2]&&(r.title=t[2]),this.trigger("data",r);return}if(t=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(e)){r={type:"tag",tagType:"targetduration"},t[1]&&(r.duration=parseInt(t[1],10)),this.trigger("data",r);return}if(t=/^#EXT-X-VERSION:([0-9.]*)?/.exec(e)){r={type:"tag",tagType:"version"},t[1]&&(r.version=parseInt(t[1],10)),this.trigger("data",r);return}if(t=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(e)){r={type:"tag",tagType:"media-sequence"},t[1]&&(r.number=parseInt(t[1],10)),this.trigger("data",r);return}if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(e)){r={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(r.number=parseInt(t[1],10)),this.trigger("data",r);return}if(t=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(e)){r={type:"tag",tagType:"playlist-type"},t[1]&&(r.playlistType=t[1]),this.trigger("data",r);return}if(t=/^#EXT-X-BYTERANGE:(.*)?$/.exec(e)){r=(0,i.Z)(o(t[1]),{type:"tag",tagType:"byterange"}),this.trigger("data",r);return}if(t=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(e)){r={type:"tag",tagType:"allow-cache"},t[1]&&(r.allowed=!/NO/.test(t[1])),this.trigger("data",r);return}if(t=/^#EXT-X-MAP:(.*)$/.exec(e)){if(r={type:"tag",tagType:"map"},t[1]){let e=u(t[1]);e.URI&&(r.uri=e.URI),e.BYTERANGE&&(r.byterange=o(e.BYTERANGE))}this.trigger("data",r);return}if(t=/^#EXT-X-STREAM-INF:(.*)$/.exec(e)){r={type:"tag",tagType:"stream-inf"},t[1]&&(r.attributes=u(t[1]),r.attributes.RESOLUTION&&(r.attributes.RESOLUTION=l(r.attributes.RESOLUTION)),r.attributes.BANDWIDTH&&(r.attributes.BANDWIDTH=parseInt(r.attributes.BANDWIDTH,10)),r.attributes["FRAME-RATE"]&&(r.attributes["FRAME-RATE"]=parseFloat(r.attributes["FRAME-RATE"])),r.attributes["PROGRAM-ID"]&&(r.attributes["PROGRAM-ID"]=parseInt(r.attributes["PROGRAM-ID"],10))),this.trigger("data",r);return}if(t=/^#EXT-X-MEDIA:(.*)$/.exec(e)){r={type:"tag",tagType:"media"},t[1]&&(r.attributes=u(t[1])),this.trigger("data",r);return}if(t=/^#EXT-X-ENDLIST/.exec(e)){this.trigger("data",{type:"tag",tagType:"endlist"});return}if(t=/^#EXT-X-DISCONTINUITY/.exec(e)){this.trigger("data",{type:"tag",tagType:"discontinuity"});return}if(t=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(e)){r={type:"tag",tagType:"program-date-time"},t[1]&&(r.dateTimeString=t[1],r.dateTimeObject=new Date(t[1])),this.trigger("data",r);return}if(t=/^#EXT-X-KEY:(.*)$/.exec(e)){r={type:"tag",tagType:"key"},t[1]&&(r.attributes=u(t[1]),r.attributes.IV&&("0x"===r.attributes.IV.substring(0,2).toLowerCase()&&(r.attributes.IV=r.attributes.IV.substring(2)),r.attributes.IV=r.attributes.IV.match(/.{8}/g),r.attributes.IV[0]=parseInt(r.attributes.IV[0],16),r.attributes.IV[1]=parseInt(r.attributes.IV[1],16),r.attributes.IV[2]=parseInt(r.attributes.IV[2],16),r.attributes.IV[3]=parseInt(r.attributes.IV[3],16),r.attributes.IV=new Uint32Array(r.attributes.IV))),this.trigger("data",r);return}if(t=/^#EXT-X-START:(.*)$/.exec(e)){r={type:"tag",tagType:"start"},t[1]&&(r.attributes=u(t[1]),r.attributes["TIME-OFFSET"]=parseFloat(r.attributes["TIME-OFFSET"]),r.attributes.PRECISE=/YES/.test(r.attributes.PRECISE)),this.trigger("data",r);return}if(t=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(e)){r={type:"tag",tagType:"cue-out-cont"},t[1]?r.data=t[1]:r.data="",this.trigger("data",r);return}if(t=/^#EXT-X-CUE-OUT:(.*)?$/.exec(e)){r={type:"tag",tagType:"cue-out"},t[1]?r.data=t[1]:r.data="",this.trigger("data",r);return}if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e)){r={type:"tag",tagType:"cue-in"},t[1]?r.data=t[1]:r.data="",this.trigger("data",r);return}if((t=/^#EXT-X-SKIP:(.*)$/.exec(e))&&t[1]){(r={type:"tag",tagType:"skip"}).attributes=u(t[1]),r.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(r.attributes["SKIPPED-SEGMENTS"]=parseInt(r.attributes["SKIPPED-SEGMENTS"],10)),r.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(r.attributes["RECENTLY-REMOVED-DATERANGES"]=r.attributes["RECENTLY-REMOVED-DATERANGES"].split(" ")),this.trigger("data",r);return}if((t=/^#EXT-X-PART:(.*)$/.exec(e))&&t[1]){(r={type:"tag",tagType:"part"}).attributes=u(t[1]),["DURATION"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=parseFloat(r.attributes[e]))}),["INDEPENDENT","GAP"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=/YES/.test(r.attributes[e]))}),r.attributes.hasOwnProperty("BYTERANGE")&&(r.attributes.byterange=o(r.attributes.BYTERANGE)),this.trigger("data",r);return}if((t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e))&&t[1]){(r={type:"tag",tagType:"server-control"}).attributes=u(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=parseFloat(r.attributes[e]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=/YES/.test(r.attributes[e]))}),this.trigger("data",r);return}if((t=/^#EXT-X-PART-INF:(.*)$/.exec(e))&&t[1]){(r={type:"tag",tagType:"part-inf"}).attributes=u(t[1]),["PART-TARGET"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=parseFloat(r.attributes[e]))}),this.trigger("data",r);return}if((t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e))&&t[1]){(r={type:"tag",tagType:"preload-hint"}).attributes=u(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(e){if(r.attributes.hasOwnProperty(e)){r.attributes[e]=parseInt(r.attributes[e],10);let t="BYTERANGE-LENGTH"===e?"length":"offset";r.attributes.byterange=r.attributes.byterange||{},r.attributes.byterange[t]=r.attributes[e],delete r.attributes[e]}}),this.trigger("data",r);return}if((t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e))&&t[1]){(r={type:"tag",tagType:"rendition-report"}).attributes=u(t[1]),["LAST-MSN","LAST-PART"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=parseInt(r.attributes[e],10))}),this.trigger("data",r);return}if((t=/^#EXT-X-DATERANGE:(.*)$/.exec(e))&&t[1]){(r={type:"tag",tagType:"daterange"}).attributes=u(t[1]),["ID","CLASS"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=String(r.attributes[e]))}),["START-DATE","END-DATE"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=new Date(r.attributes[e]))}),["DURATION","PLANNED-DURATION"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=parseFloat(r.attributes[e]))}),["END-ON-NEXT"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=/YES/i.test(r.attributes[e]))}),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=r.attributes[e].toString(16))});let e=/^X-([A-Z]+-)+[A-Z]+$/;for(let t in r.attributes){if(!e.test(t))continue;let n=/[0-9A-Fa-f]{6}/g.test(r.attributes[t]),i=/^\d+(\.\d+)?$/.test(r.attributes[t]);r.attributes[t]=n?r.attributes[t].toString(16):i?parseFloat(r.attributes[t]):String(r.attributes[t])}this.trigger("data",r);return}if(t=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(e)){this.trigger("data",{type:"tag",tagType:"independent-segments"});return}if(t=/^#EXT-X-I-FRAMES-ONLY/.exec(e)){this.trigger("data",{type:"tag",tagType:"i-frames-only"});return}if(t=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(e)){(r={type:"tag",tagType:"content-steering"}).attributes=u(t[1]),this.trigger("data",r);return}if(t=/^#EXT-X-I-FRAME-STREAM-INF:(.*)$/.exec(e)){(r={type:"tag",tagType:"i-frame-playlist"}).attributes=u(t[1]),r.attributes.URI&&(r.uri=r.attributes.URI),r.attributes.BANDWIDTH&&(r.attributes.BANDWIDTH=parseInt(r.attributes.BANDWIDTH,10)),r.attributes.RESOLUTION&&(r.attributes.RESOLUTION=l(r.attributes.RESOLUTION)),r.attributes["AVERAGE-BANDWIDTH"]&&(r.attributes["AVERAGE-BANDWIDTH"]=parseInt(r.attributes["AVERAGE-BANDWIDTH"],10)),r.attributes["FRAME-RATE"]&&(r.attributes["FRAME-RATE"]=parseFloat(r.attributes["FRAME-RATE"])),this.trigger("data",r);return}if(t=/^#EXT-X-DEFINE:(.*)$/.exec(e)){(r={type:"tag",tagType:"define"}).attributes=u(t[1]),this.trigger("data",r);return}this.trigger("data",{type:"tag",data:e.slice(4)})})}}addParser({expression:e,customType:t,dataParser:r,segment:n}){"function"!=typeof r&&(r=e=>e),this.customParsers.push(i=>{if(e.exec(i))return this.trigger("data",{type:"custom",data:r(i),customType:t,segment:n}),!0})}addTagMapper({expression:e,map:t}){this.tagMappers.push(r=>e.test(r)?t(r):r)}}let p=e=>e.toLowerCase().replace(/-(\w)/g,e=>e[1].toUpperCase()),f=function(e){let t={};return Object.keys(e).forEach(function(r){t[p(r)]=e[r]}),t},d=function(e){let{serverControl:t,targetDuration:r,partTargetDuration:n}=e;if(!t)return;let i="#EXT-X-SERVER-CONTROL",a="holdBack",s="partHoldBack",o=r&&3*r,u=n&&2*n;r&&!t.hasOwnProperty(a)&&(t[a]=o,this.trigger("info",{message:`${i} defaulting HOLD-BACK to targetDuration * 3 (${o}).`})),o&&t[a]<o&&(this.trigger("warn",{message:`${i} clamping HOLD-BACK (${t[a]}) to targetDuration * 3 (${o})`}),t[a]=o),n&&!t.hasOwnProperty(s)&&(t[s]=3*n,this.trigger("info",{message:`${i} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${t[s]}).`})),n&&t[s]<u&&(this.trigger("warn",{message:`${i} clamping PART-HOLD-BACK (${t[s]}) to partTargetDuration * 2 (${u}).`}),t[s]=u)};class h extends n{constructor(e={}){let t,r;super(),this.lineStream=new s,this.parseStream=new c,this.lineStream.pipe(this.parseStream),this.mainDefinitions=e.mainDefinitions||{},this.params=new URL(e.uri,"https://a.com").searchParams,this.lastProgramDateTime=null;let n=this,o=[],u={},l=!1,p=function(){},h={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},g=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],iFramePlaylists:[],segments:[]};let m=0,b=0,y={};this.on("end",()=>{!u.uri&&(u.parts||u.preloadHints)&&(!u.map&&t&&(u.map=t),!u.key&&r&&(u.key=r),u.timeline||"number"!=typeof g||(u.timeline=g),this.manifest.preloadSegment=u)}),this.parseStream.on("data",function(e){let s,c;if(n.manifest.definitions){for(let t in n.manifest.definitions)if(e.uri&&(e.uri=e.uri.replace(`{$${t}}`,n.manifest.definitions[t])),e.attributes)for(let r in e.attributes)"string"==typeof e.attributes[r]&&(e.attributes[r]=e.attributes[r].replace(`{$${t}}`,n.manifest.definitions[t]))}({tag(){(({version(){e.version&&(this.manifest.version=e.version)},"allow-cache"(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){let t={};"length"in e&&(u.byterange=t,t.length=e.length,"offset"in e||(e.offset=m)),"offset"in e&&(u.byterange=t,t.offset=e.offset),m=t.offset+t.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.title&&(u.title=e.title),e.duration>0&&(u.duration=e.duration),0===e.duration&&(u.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=o},key(){if(!e.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if("NONE"===e.attributes.METHOD){r=null;return}if(!e.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes};return}if("com.microsoft.playready"===e.attributes.KEYFORMAT){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI};return}if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT){if(-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2))){this.trigger("warn",{message:"invalid key ID provided for Widevine"});return}this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:(0,a.Z)(e.attributes.URI.split(",")[1])};return}e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),r={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(r.iv=e.attributes.IV)},"media-sequence"(){if(!isFinite(e.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number});return}this.manifest.mediaSequence=e.number},"discontinuity-sequence"(){if(!isFinite(e.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number});return}this.manifest.discontinuitySequence=e.number,g=e.number},"playlist-type"(){if(!/VOD|EVENT/.test(e.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist});return}this.manifest.playlistType=e.playlistType},map(){t={},e.uri&&(t.uri=e.uri),e.byterange&&(t.byterange=e.byterange),r&&(t.key=r)},"stream-inf"(){if(this.manifest.playlists=o,this.manifest.mediaGroups=this.manifest.mediaGroups||h,!e.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}u.attributes||(u.attributes={}),(0,i.Z)(u.attributes,e.attributes)},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||h,!(e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}let t=this.manifest.mediaGroups[e.attributes.TYPE];t[e.attributes["GROUP-ID"]]=t[e.attributes["GROUP-ID"]]||{},s=t[e.attributes["GROUP-ID"]],(c={default:/yes/i.test(e.attributes.DEFAULT)}).default?c.autoselect=!0:c.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(c.language=e.attributes.LANGUAGE),e.attributes.URI&&(c.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(c.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(c.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(c.forced=/yes/i.test(e.attributes.FORCED)),s[e.attributes.NAME]=c},discontinuity(){g+=1,u.discontinuity=!0,this.manifest.discontinuityStarts.push(o.length)},"program-date-time"(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),u.dateTimeString=e.dateTimeString,u.dateTimeObject=e.dateTimeObject;let{lastProgramDateTime:t}=this;this.lastProgramDateTime=new Date(e.dateTimeString).getTime(),null===t&&this.manifest.segments.reduceRight((e,t)=>(t.programDateTime=e-1e3*t.duration,t.programDateTime),this.lastProgramDateTime)},targetduration(){if(!isFinite(e.duration)||e.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration});return}this.manifest.targetDuration=e.duration,d.call(this,this.manifest)},start(){if(!e.attributes||isNaN(e.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}},"cue-out"(){u.cueOut=e.data},"cue-out-cont"(){u.cueOutCont=e.data},"cue-in"(){u.cueIn=e.data},skip(){this.manifest.skip=f(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part(){l=!0;let t=this.manifest.segments.length,r=f(e.attributes);u.parts=u.parts||[],u.parts.push(r),r.byterange&&(r.byterange.hasOwnProperty("offset")||(r.byterange.offset=b),b=r.byterange.offset+r.byterange.length);let n=u.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${n} for segment #${t}`,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((e,t)=>{e.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${t} lacks required attribute(s): LAST-PART`})})},"server-control"(){let t=this.manifest.serverControl=f(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),d.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){let t=this.manifest.segments.length,r=f(e.attributes),n=r.type&&"PART"===r.type;u.preloadHints=u.preloadHints||[],u.preloadHints.push(r),r.byterange&&!r.byterange.hasOwnProperty("offset")&&(r.byterange.offset=n?b:0,n&&(b=r.byterange.offset+r.byterange.length));let i=u.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${i} for segment #${t}`,e.attributes,["TYPE","URI"]),r.type)for(let e=0;e<u.preloadHints.length-1;e++){let n=u.preloadHints[e];n.type&&n.type===r.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${i} for segment #${t} has the same TYPE ${r.type} as preload hint #${e}`})}},"rendition-report"(){let t=f(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t);let r=this.manifest.renditionReports.length-1,n=["LAST-MSN","URI"];l&&n.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${r}`,e.attributes,n)},"part-inf"(){this.manifest.partInf=f(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),d.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(f(e.attributes));let t=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${t}`,e.attributes,["ID","START-DATE"]);let r=this.manifest.dateRanges[t];r.endDate&&r.startDate&&new Date(r.endDate)<new Date(r.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),r.duration&&r.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),r.plannedDuration&&r.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});let n=!!r.endOnNext;if(n&&!r.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must have a CLASS attribute"}),n&&(r.duration||r.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),r.duration&&r.endDate){let e=r.startDate.getTime()+1e3*r.duration;this.manifest.dateRanges[t].endDate=new Date(e)}if(y[r.id]){for(let e in y[r.id])if(r[e]&&JSON.stringify(y[r.id][e])!==JSON.stringify(r[e])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}let e=this.manifest.dateRanges.findIndex(e=>e.id===r.id);this.manifest.dateRanges[e]=(0,i.Z)(this.manifest.dateRanges[e],r),y[r.id]=(0,i.Z)(y[r.id],r),this.manifest.dateRanges.pop()}else y[r.id]=r},"independent-segments"(){this.manifest.independentSegments=!0},"i-frames-only"(){this.manifest.iFramesOnly=!0,this.requiredCompatibilityversion(this.manifest.version,4)},"content-steering"(){this.manifest.contentSteering=f(e.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",e.attributes,["SERVER-URI"])},define(){this.manifest.definitions=this.manifest.definitions||{};let t=(e,t)=>{if(e in this.manifest.definitions){this.trigger("error",{message:`EXT-X-DEFINE: Duplicate name ${e}`});return}this.manifest.definitions[e]=t};if("QUERYPARAM"in e.attributes){if("NAME"in e.attributes||"IMPORT"in e.attributes){this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});return}let r=this.params.get(e.attributes.QUERYPARAM);if(!r){this.trigger("error",{message:`EXT-X-DEFINE: No query param ${e.attributes.QUERYPARAM}`});return}t(e.attributes.QUERYPARAM,decodeURIComponent(r));return}if("NAME"in e.attributes){if("IMPORT"in e.attributes){this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});return}if(!("VALUE"in e.attributes)||"string"!=typeof e.attributes.VALUE){this.trigger("error",{message:`EXT-X-DEFINE: No value for ${e.attributes.NAME}`});return}t(e.attributes.NAME,e.attributes.VALUE);return}if("IMPORT"in e.attributes){if(!this.mainDefinitions[e.attributes.IMPORT]){this.trigger("error",{message:`EXT-X-DEFINE: No value ${e.attributes.IMPORT} to import, or IMPORT used on main playlist`});return}t(e.attributes.IMPORT,this.mainDefinitions[e.attributes.IMPORT]);return}this.trigger("error",{message:"EXT-X-DEFINE: No attribute"})},"i-frame-playlist"(){this.manifest.iFramePlaylists.push({attributes:e.attributes,uri:e.uri,timeline:g}),this.warnOnMissingAttributes_("#EXT-X-I-FRAME-STREAM-INF",e.attributes,["BANDWIDTH","URI"])}})[e.tagType]||p).call(n)},uri(){u.uri=e.uri,o.push(u),!this.manifest.targetDuration||"duration"in u||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),u.duration=this.manifest.targetDuration),r&&(u.key=r),u.timeline=g,t&&(u.map=t),b=0,null!==this.lastProgramDateTime&&(u.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=1e3*u.duration),u={}},comment(){},custom(){e.segment?(u.custom=u.custom||{},u.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(n)})}requiredCompatibilityversion(e,t){(e<t||!e)&&this.trigger("warn",{message:`manifest must be at least version ${t}`})}warnOnMissingAttributes_(e,t,r){let n=[];r.forEach(function(e){t.hasOwnProperty(e)||n.push(e)}),n.length&&this.trigger("warn",{message:`${e} lacks required attribute(s): ${n.join(", ")}`})}push(e){this.lineStream.push(e)}end(){this.lineStream.push("\n"),this.manifest.dateRanges.length&&null===this.lastProgramDateTime&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(e){this.parseStream.addParser(e)}addTagMapper(e){this.parseStream.addTagMapper(e)}}},12955:function(e,t,r){"use strict";r.d(t,{jp:function(){return A},mm:function(){return U},Qc:function(){return eR},LG:function(){return ex}});var n=r(80779),i=r(58908),a=r.n(i),s=function(e,t,r){t.forEach(function(t){for(var n in e.mediaGroups[t])for(var i in e.mediaGroups[t][n])r(e.mediaGroups[t][n][i],t,n,i)})},o=r(36722),u=r(3969);let l=e=>!!e&&"object"==typeof e,c=(...e)=>e.reduce((e,t)=>("object"!=typeof t||Object.keys(t).forEach(r=>{Array.isArray(e[r])&&Array.isArray(t[r])?e[r]=e[r].concat(t[r]):l(e[r])&&l(t[r])?e[r]=c(e[r],t[r]):e[r]=t[r]}),e),{}),p=e=>Object.keys(e).map(t=>e[t]),f=(e,t)=>{let r=[];for(let n=e;n<t;n++)r.push(n);return r},d=e=>e.reduce((e,t)=>e.concat(t),[]),h=e=>{if(!e.length)return[];let t=[];for(let r=0;r<e.length;r++)t.push(e[r]);return t},g=(e,t)=>e.reduce((e,r,n)=>(r[t]&&e.push(n),e),[]),m=(e,t)=>p(e.reduce((e,r)=>(r.forEach(r=>{e[t(r)]=r}),e),{}));var b={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"};let y=({baseUrl:e="",source:t="",range:r="",indexRange:i=""})=>{let s={uri:t,resolvedUri:(0,n.Z)(e||"",t)};if(r||i){let e;let t=(r||i).split("-"),n=a().BigInt?a().BigInt(t[0]):parseInt(t[0],10),o=a().BigInt?a().BigInt(t[1]):parseInt(t[1],10);n<Number.MAX_SAFE_INTEGER&&"bigint"==typeof n&&(n=Number(n)),o<Number.MAX_SAFE_INTEGER&&"bigint"==typeof o&&(o=Number(o)),"bigint"==typeof(e="bigint"==typeof o||"bigint"==typeof n?a().BigInt(o)-a().BigInt(n)+a().BigInt(1):o-n+1)&&e<Number.MAX_SAFE_INTEGER&&(e=Number(e)),s.byterange={length:e,offset:n}}return s},D=e=>{let t;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?a().BigInt(e.offset)+a().BigInt(e.length)-a().BigInt(1):e.offset+e.length-1,`${e.offset}-${t}`},E=e=>(e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e))?null:e,v={static(e){let{duration:t,timescale:r=1,sourceDuration:n,periodDuration:i}=e,a=E(e.endNumber),s=t/r;return"number"==typeof a?{start:0,end:a}:"number"==typeof i?{start:0,end:i/s}:{start:0,end:n/s}},dynamic(e){let{NOW:t,clientOffset:r,availabilityStartTime:n,timescale:i=1,duration:a,periodStart:s=0,minimumUpdatePeriod:o=0,timeShiftBufferDepth:u=1/0}=e,l=E(e.endNumber),c=(t+r)/1e3,p=n+s;return{start:Math.max(0,Math.floor((c-p-u)*i/a)),end:"number"==typeof l?l:Math.min(Math.ceil((c+o-p)*i/a),Math.floor((c-p)*i/a))}}},T=e=>t=>{let{duration:r,timescale:n=1,periodStart:i,startNumber:a=1}=e;return{number:a+t,duration:r/n,timeline:i,time:t*r}},w=e=>{let{type:t,duration:r,timescale:n=1,periodDuration:i,sourceDuration:a}=e,{start:s,end:o}=v[t](e),u=f(s,o).map(T(e));if("static"===t){let e=u.length-1;u[e].duration=("number"==typeof i?i:a)-r/n*e}return u},N=e=>{let{baseUrl:t,initialization:r={},sourceDuration:n,indexRange:i="",periodStart:a,presentationTime:s,number:o=0,duration:u}=e;if(!t)throw Error(b.NO_BASE_URL);let l=y({baseUrl:t,source:r.sourceURL,range:r.range}),c=y({baseUrl:t,source:t,indexRange:i});if(c.map=l,u){let t=w(e);t.length&&(c.duration=t[0].duration,c.timeline=t[0].timeline)}else n&&(c.duration=n,c.timeline=a);return c.presentationTime=s||a,c.number=o,[c]},A=(e,t,r)=>{let n;let i=e.sidx.map?e.sidx.map:null,s=e.sidx.duration,o=e.timeline||0,u=e.sidx.byterange,l=u.offset+u.length,c=t.timescale,p=t.references.filter(e=>1!==e.referenceType),f=[],d=e.endList?"static":"dynamic",h=e.sidx.timeline,g=h,m=e.mediaSequence||0;n="bigint"==typeof t.firstOffset?a().BigInt(l)+t.firstOffset:l+t.firstOffset;for(let e=0;e<p.length;e++){let u;let l=t.references[e],p=l.referencedSize,b=l.subsegmentDuration;u="bigint"==typeof n?n+a().BigInt(p)-a().BigInt(1):n+p-1;let y=N({baseUrl:r,timescale:c,timeline:o,periodStart:h,presentationTime:g,number:m,duration:b,sourceDuration:s,indexRange:`${n}-${u}`,type:d})[0];i&&(y.map=i),f.push(y),"bigint"==typeof n?n+=a().BigInt(p):n+=p,g+=b/c,m++}return e.segments=f,e},S=["AUDIO","SUBTITLES"],I=1/60,R=e=>m(e,({timeline:e})=>e).sort((e,t)=>e.timeline>t.timeline?1:-1),x=(e,t)=>{for(let r=0;r<e.length;r++)if(e[r].attributes.NAME===t)return e[r];return null},C=e=>{let t=[];return s(e,S,(e,r,n,i)=>{t=t.concat(e.playlists||[])}),t},O=({playlist:e,mediaSequence:t})=>{e.mediaSequence=t,e.segments.forEach((t,r)=>{t.number=e.mediaSequence+r})},L=({oldPlaylists:e,newPlaylists:t,timelineStarts:r})=>{t.forEach(t=>{t.discontinuitySequence=r.findIndex(function({timeline:e}){return e===t.timeline});let n=x(e,t.attributes.NAME);if(!n||t.sidx)return;let i=t.segments[0],a=n.segments.findIndex(function(e){return Math.abs(e.presentationTime-i.presentationTime)<I});if(-1===a){O({playlist:t,mediaSequence:n.mediaSequence+n.segments.length}),t.segments[0].discontinuity=!0,t.discontinuityStarts.unshift(0),(!n.segments.length&&t.timeline>n.timeline||n.segments.length&&t.timeline>n.segments[n.segments.length-1].timeline)&&t.discontinuitySequence--;return}n.segments[a].discontinuity&&!i.discontinuity&&(i.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),O({playlist:t,mediaSequence:n.segments[a].number})})},M=({oldManifest:e,newManifest:t})=>{let r=e.playlists.concat(C(e)),n=t.playlists.concat(C(t));return t.timelineStarts=R([e.timelineStarts,t.timelineStarts]),L({oldPlaylists:r,newPlaylists:n,timelineStarts:t.timelineStarts}),t},U=e=>e&&e.uri+"-"+D(e.byterange),q=e=>{let t=e.reduce(function(e,t){return e[t.attributes.baseUrl]||(e[t.attributes.baseUrl]=[]),e[t.attributes.baseUrl].push(t),e},{}),r=[];return Object.values(t).forEach(e=>{let t=p(e.reduce((e,t)=>{let r=t.attributes.id+(t.attributes.lang||"");return e[r]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),e[r].segments.push(...t.segments)),t.attributes.contentProtection&&(e[r].attributes.contentProtection=t.attributes.contentProtection)):(e[r]=t,e[r].attributes.timelineStarts=[]),e[r].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e},{}));r=r.concat(t)}),r.map(e=>(e.discontinuityStarts=g(e.segments||[],"discontinuity"),e))},P=(e,t)=>{let r=U(e.sidx),n=r&&t[r]&&t[r].sidx;return n&&A(e,n,e.sidx.resolvedUri),e},_=(e,t={})=>{if(!Object.keys(t).length)return e;for(let r in e)e[r]=P(e[r],t);return e},k=({attributes:e,segments:t,sidx:r,mediaSequence:n,discontinuitySequence:i,discontinuityStarts:a},s)=>{let o={attributes:{NAME:e.id,BANDWIDTH:e.bandwidth,CODECS:e.codecs,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuitySequence:i,discontinuityStarts:a,timelineStarts:e.timelineStarts,mediaSequence:n,segments:t};return e.contentProtection&&(o.contentProtection=e.contentProtection),e.serviceLocation&&(o.attributes.serviceLocation=e.serviceLocation),r&&(o.sidx=r),s&&(o.attributes.AUDIO="audio",o.attributes.SUBTITLES="subs"),o},B=({attributes:e,segments:t,mediaSequence:r,discontinuityStarts:n,discontinuitySequence:i})=>{void 0===t&&(t=[{uri:e.baseUrl,timeline:e.periodStart,resolvedUri:e.baseUrl||"",duration:e.sourceDuration,number:0}],e.duration=e.sourceDuration);let a={NAME:e.id,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1};e.codecs&&(a.CODECS=e.codecs);let s={attributes:a,uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,timelineStarts:e.timelineStarts,discontinuityStarts:n,discontinuitySequence:i,mediaSequence:r,segments:t};return e.serviceLocation&&(s.attributes.serviceLocation=e.serviceLocation),s},X=(e,t={},r=!1)=>{let n;let i=e.reduce((e,i)=>{let a=i.attributes.role&&i.attributes.role.value||"",s=i.attributes.lang||"",o=i.attributes.label||"main";if(s&&!i.attributes.label){let e=a?` (${a})`:"";o=`${i.attributes.lang}${e}`}e[o]||(e[o]={language:s,autoselect:!0,default:"main"===a,playlists:[],uri:""});let u=P(k(i,r),t);return e[o].playlists.push(u),void 0===n&&"main"===a&&((n=i).default=!0),e},{});if(!n){let e=Object.keys(i)[0];i[e].default=!0}return i},F=(e,t={})=>e.reduce((e,r)=>{let n=r.attributes.label||r.attributes.lang||"text",i=r.attributes.lang||"und";return e[n]||(e[n]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),e[n].playlists.push(P(B(r),t)),e},{}),G=e=>e.reduce((e,t)=>(t&&t.forEach(t=>{let{channel:r,language:n}=t;e[n]={autoselect:!1,default:!1,instreamId:r,language:n},t.hasOwnProperty("aspectRatio")&&(e[n].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[n].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[n]["3D"]=t["3D"])}),e),{}),V=({attributes:e,segments:t,sidx:r,discontinuityStarts:n})=>{let i={attributes:{NAME:e.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:e.width,height:e.height},CODECS:e.codecs,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuityStarts:n,timelineStarts:e.timelineStarts,segments:t};return e.frameRate&&(i.attributes["FRAME-RATE"]=e.frameRate),e.contentProtection&&(i.contentProtection=e.contentProtection),e.serviceLocation&&(i.attributes.serviceLocation=e.serviceLocation),r&&(i.sidx=r),i},H=({attributes:e})=>"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType,z=({attributes:e})=>"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType,$=({attributes:e})=>"text/vtt"===e.mimeType||"text"===e.contentType,j=(e,t)=>{e.forEach(e=>{e.mediaSequence=0,e.discontinuitySequence=t.findIndex(function({timeline:t}){return t===e.timeline}),e.segments&&e.segments.forEach((e,t)=>{e.number=t})})},K=e=>e?Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(n.playlists)},[]):[],Y=({dashPlaylists:e,locations:t,contentSteering:r,sidxMapping:n={},previousManifest:i,eventStream:a})=>{if(!e.length)return{};let{sourceDuration:s,type:o,suggestedPresentationDelay:u,minimumUpdatePeriod:l}=e[0].attributes,c=q(e.filter(H)).map(V),p=q(e.filter(z)),f=q(e.filter($)),d=e.map(e=>e.attributes.captionServices).filter(Boolean),h={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:s,playlists:_(c,n)};l>=0&&(h.minimumUpdatePeriod=1e3*l),t&&(h.locations=t),r&&(h.contentSteering=r),"dynamic"===o&&(h.suggestedPresentationDelay=u),a&&a.length>0&&(h.eventStream=a);let g=0===h.playlists.length,m=p.length?X(p,n,g):null,b=f.length?F(f,n):null,y=c.concat(K(m),K(b)),D=y.map(({timelineStarts:e})=>e);return(h.timelineStarts=R(D),j(y,h.timelineStarts),m&&(h.mediaGroups.AUDIO.audio=m),b&&(h.mediaGroups.SUBTITLES.subs=b),d.length&&(h.mediaGroups["CLOSED-CAPTIONS"].cc=G(d)),i)?M({oldManifest:i,newManifest:h}):h},W=(e,t,r)=>{let{NOW:n,clientOffset:i,availabilityStartTime:a,timescale:s=1,periodStart:o=0,minimumUpdatePeriod:u=0}=e;return Math.ceil((((n+i)/1e3+u-(a+o))*s-t)/r)},Z=(e,t)=>{let{type:r,minimumUpdatePeriod:n=0,media:i="",sourceDuration:a,timescale:s=1,startNumber:o=1,periodStart:u}=e,l=[],c=-1;for(let p=0;p<t.length;p++){let f;let d=t[p],h=d.d,g=d.r||0,m=d.t||0;if(c<0&&(c=m),m&&m>c&&(c=m),g<0){let o=p+1;f=o===t.length?"dynamic"===r&&n>0&&i.indexOf("$Number$")>0?W(e,c,h):(a*s-c)/h:(t[o].t-c)/h}else f=g+1;let b=o+l.length+f,y=o+l.length;for(;y<b;)l.push({number:y,duration:h/s,time:c,timeline:u}),c+=h,y++}return l},J=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,Q=e=>(t,r,n,i)=>{if("$$"===t)return"$";if(void 0===e[r])return t;let a=""+e[r];return"RepresentationID"===r?a:(i=n?parseInt(i,10):1,a.length>=i)?a:`${Array(i-a.length+1).join("0")}${a}`},ee=(e,t)=>e.replace(J,Q(t)),et=(e,t)=>e.duration||t?e.duration?w(e):Z(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}],er=(e,t)=>{let r={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:i={sourceURL:"",range:""}}=e,a=y({baseUrl:e.baseUrl,source:ee(i.sourceURL,r),range:i.range});return et(e,t).map(t=>{r.Number=t.number,r.Time=t.time;let i=ee(e.media||"",r),s=e.timescale||1,o=e.presentationTimeOffset||0,u=e.periodStart+(t.time-o)/s;return{uri:i,timeline:t.timeline,duration:t.duration,resolvedUri:(0,n.Z)(e.baseUrl||"",i),map:a,number:t.number,presentationTime:u}})},en=(e,t)=>{let{baseUrl:r,initialization:n={}}=e,i=y({baseUrl:r,source:n.sourceURL,range:n.range}),a=y({baseUrl:r,source:t.media,range:t.mediaRange});return a.map=i,a},ei=(e,t)=>{let r;let{duration:n,segmentUrls:i=[],periodStart:a}=e;if(!n&&!t||n&&t)throw Error(b.SEGMENT_TIME_UNSPECIFIED);let s=i.map(t=>en(e,t));return n&&(r=w(e)),t&&(r=Z(e,t)),r.map((t,r)=>{if(s[r]){let n=s[r],i=e.timescale||1,o=e.presentationTimeOffset||0;return n.timeline=t.timeline,n.duration=t.duration,n.number=t.number,n.presentationTime=a+(t.time-o)/i,n}}).filter(e=>e)},ea=({attributes:e,segmentInfo:t})=>{let r,n;t.template?(n=er,r=c(e,t.template)):t.base?(n=N,r=c(e,t.base)):t.list&&(n=ei,r=c(e,t.list));let i={attributes:e};if(!n)return i;let a=n(r,t.segmentTimeline);if(r.duration){let{duration:e,timescale:t=1}=r;r.duration=e/t}else a.length?r.duration=a.reduce((e,t)=>Math.max(e,Math.ceil(t.duration)),0):r.duration=0;return i.attributes=r,i.segments=a,t.base&&r.indexRange&&(i.sidx=a[0],i.segments=[]),i},es=e=>e.map(ea),eo=(e,t)=>h(e.childNodes).filter(({tagName:e})=>e===t),eu=e=>e.textContent.trim(),el=e=>parseFloat(e.split("/").reduce((e,t)=>e/t)),ec=e=>{let t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;let[r,n,i,a,s,o]=t.slice(1);return 31536e3*parseFloat(r||0)+2592e3*parseFloat(n||0)+86400*parseFloat(i||0)+3600*parseFloat(a||0)+60*parseFloat(s||0)+parseFloat(o||0)},ep=e=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e)),ef={mediaPresentationDuration:e=>ec(e),availabilityStartTime:e=>ep(e)/1e3,minimumUpdatePeriod:e=>ec(e),suggestedPresentationDelay:e=>ec(e),type:e=>e,timeShiftBufferDepth:e=>ec(e),start:e=>ec(e),width:e=>parseInt(e,10),height:e=>parseInt(e,10),bandwidth:e=>parseInt(e,10),frameRate:e=>el(e),startNumber:e=>parseInt(e,10),timescale:e=>parseInt(e,10),presentationTimeOffset:e=>parseInt(e,10),duration(e){let t=parseInt(e,10);return isNaN(t)?ec(e):t},d:e=>parseInt(e,10),t:e=>parseInt(e,10),r:e=>parseInt(e,10),presentationTime:e=>parseInt(e,10),DEFAULT:e=>e},ed=e=>e&&e.attributes?h(e.attributes).reduce((e,t)=>{let r=ef[t.name]||ef.DEFAULT;return e[t.name]=r(t.value),e},{}):{},eh={"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","urn:mpeg:dash:mp4protection:2011":"mp4protection"},eg=(e,t)=>t.length?d(e.map(function(e){return t.map(function(t){let r=eu(t),i=(0,n.Z)(e.baseUrl,r),a=c(ed(t),{baseUrl:i});return i!==r&&!a.serviceLocation&&e.serviceLocation&&(a.serviceLocation=e.serviceLocation),a})})):e,em=e=>{let t=eo(e,"SegmentTemplate")[0],r=eo(e,"SegmentList")[0],n=r&&eo(r,"SegmentURL").map(e=>c({tag:"SegmentURL"},ed(e))),i=eo(e,"SegmentBase")[0],a=r||t,s=a&&eo(a,"SegmentTimeline")[0],o=r||i||t,u=o&&eo(o,"Initialization")[0],l=t&&ed(t);l&&u?l.initialization=u&&ed(u):l&&l.initialization&&(l.initialization={sourceURL:l.initialization});let p={template:l,segmentTimeline:s&&eo(s,"S").map(e=>ed(e)),list:r&&c(ed(r),{segmentUrls:n,initialization:ed(u)}),base:i&&c(ed(i),{initialization:ed(u)})};return Object.keys(p).forEach(e=>{p[e]||delete p[e]}),p},eb=(e,t,r)=>n=>{let i=eg(t,eo(n,"BaseURL")),a=c(e,ed(n)),s=em(n);return i.map(e=>({segmentInfo:c(r,s),attributes:c(a,e)}))},ey=e=>e.reduce((e,t)=>{let r=ed(t);r.schemeIdUri&&(r.schemeIdUri=r.schemeIdUri.toLowerCase());let n=eh[r.schemeIdUri];if(n){e[n]={attributes:r};let i=eo(t,"cenc:pssh")[0];if(i){let t=eu(i);e[n].pssh=t&&(0,o.Z)(t)}}return e},{}),eD=e=>"urn:scte:dash:cc:cea-608:2015"===e.schemeIdUri?("string"!=typeof e.value?[]:e.value.split(";")).map(e=>{let t,r;return r=e,/^CC\d=/.test(e)?[t,r]=e.split("="):/^CC\d$/.test(e)&&(t=e),{channel:t,language:r}}):"urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri?("string"!=typeof e.value?[]:e.value.split(";")).map(e=>{let t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){let[r,n=""]=e.split("=");t.channel=r,t.language=e,n.split(",").forEach(e=>{let[r,n]=e.split(":");"lang"===r?t.language=n:"er"===r?t.easyReader=Number(n):"war"===r?t.aspectRatio=Number(n):"3D"===r&&(t["3D"]=Number(n))})}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t}):void 0,eE=e=>d(eo(e.node,"EventStream").map(t=>{let r=ed(t),n=r.schemeIdUri;return eo(t,"Event").map(t=>{let i=ed(t),a=i.presentationTime||0,s=r.timescale||1,o=i.duration||0,u=a/s+e.attributes.start;return{schemeIdUri:n,value:r.value,id:i.id,start:u,end:u+o/s,messageData:eu(t)||i.messageData,contentEncoding:r.contentEncoding,presentationTimeOffset:r.presentationTimeOffset||0}})})),ev=(e,t,r)=>n=>{let i=ed(n),a=eg(t,eo(n,"BaseURL")),s=c(e,i,{role:ed(eo(n,"Role")[0])}),o=eD(ed(eo(n,"Accessibility")[0]));o&&(s=c(s,{captionServices:o}));let u=eo(n,"Label")[0];u&&u.childNodes.length&&(s=c(s,{label:u.childNodes[0].nodeValue.trim()}));let l=ey(eo(n,"ContentProtection"));Object.keys(l).length&&(s=c(s,{contentProtection:l}));let p=em(n),f=eo(n,"Representation"),h=c(r,p);return d(f.map(eb(s,a,h)))},eT=(e,t)=>(r,n)=>{let i=eg(t,eo(r.node,"BaseURL")),a=c(e,{periodStart:r.attributes.start});"number"==typeof r.attributes.duration&&(a.periodDuration=r.attributes.duration);let s=eo(r.node,"AdaptationSet"),o=em(r.node);return d(s.map(ev(a,i,o)))},ew=(e,t)=>{if(e.length>1&&t({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!e.length)return null;let r=c({serverURL:eu(e[0])},ed(e[0]));return r.queryBeforeStart="true"===r.queryBeforeStart,r},eN=({attributes:e,priorPeriodAttributes:t,mpdType:r})=>"number"==typeof e.start?e.start:t&&"number"==typeof t.start&&"number"==typeof t.duration?t.start+t.duration:t||"static"!==r?null:0,eA=(e,t={})=>{let{manifestUri:r="",NOW:n=Date.now(),clientOffset:i=0,eventHandler:a=function(){}}=t,s=eo(e,"Period");if(!s.length)throw Error(b.INVALID_NUMBER_OF_PERIOD);let o=eo(e,"Location"),u=ed(e),l=eg([{baseUrl:r}],eo(e,"BaseURL")),c=eo(e,"ContentSteering");u.type=u.type||"static",u.sourceDuration=u.mediaPresentationDuration||0,u.NOW=n,u.clientOffset=i,o.length&&(u.locations=o.map(eu));let p=[];return s.forEach((e,t)=>{let r=ed(e),n=p[t-1];r.start=eN({attributes:r,priorPeriodAttributes:n?n.attributes:null,mpdType:u.type}),p.push({node:e,attributes:r})}),{locations:u.locations,contentSteeringInfo:ew(c,a),representationInfo:d(p.map(eT(u,l))),eventStream:d(p.map(eE))}},eS=e=>{let t,r;if(""===e)throw Error(b.DASH_EMPTY_MANIFEST);let n=new u.DOMParser;try{r=(t=n.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(e){}if(!r||r&&r.getElementsByTagName("parsererror").length>0)throw Error(b.DASH_INVALID_XML);return r},eI=e=>{let t=eo(e,"UTCTiming")[0];if(!t)return null;let r=ed(t);switch(r.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":r.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":r.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":r.method="DIRECT",r.value=Date.parse(r.value);break;default:throw Error(b.UNSUPPORTED_UTC_TIMING_SCHEME)}return r},eR=(e,t={})=>{let r=eA(eS(e),t);return Y({dashPlaylists:es(r.representationInfo),locations:r.locations,contentSteering:r.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:r.eventStream})},ex=e=>eI(eS(e))},84221:function(e,t,r){var n=r(46894).getUint64;e.exports=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},i=12;0===r.version?(r.earliestPresentationTime=t.getUint32(i),r.firstOffset=t.getUint32(i+4),i+=8):(r.earliestPresentationTime=n(e.subarray(i)),r.firstOffset=n(e.subarray(i+8)),i+=16),i+=2;var a=t.getUint16(i);for(i+=2;a>0;i+=12,a--)r.references.push({referenceType:(128&e[i])>>>7,referencedSize:2147483647&t.getUint32(i),subsegmentDuration:t.getUint32(i+4),startsWithSap:!!(128&e[i+8]),sapType:(112&e[i+8])>>>4,sapDeltaTime:268435455&t.getUint32(i+8)});return r}},51489:function(e){var t,r,n,i,a,s,o;t=function(e){return 9e4*e},r=function(e,t){return e*t},n=function(e){return e/9e4},i=function(e,t){return e/t},a=function(e,r){return t(i(e,r))},s=function(e,t){return r(n(e),t)},o=function(e,t,r){return n(r?e:e-t)},e.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:t,secondsToAudioTs:r,videoTsToSeconds:n,audioTsToSeconds:i,audioTsToVideoTs:a,videoTsToAudioTs:s,metadataTsToSeconds:o}},46894:function(e){e.exports={getUint64:function(e){var t,r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getBigUint64?(t=r.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(t):t:4294967296*r.getUint32(0)+r.getUint32(4)},MAX_UINT32:4294967296}},78210:function(){},13407:function(e,t,r){var n=r(58908),i=e.exports={WebVTT:r(63706),VTTCue:r(22230),VTTRegion:r(13710)};n.vttjs=i,n.WebVTT=i.WebVTT;var a=i.VTTCue,s=i.VTTRegion,o=n.VTTCue,u=n.VTTRegion;i.shim=function(){n.VTTCue=a,n.VTTRegion=s},i.restore=function(){n.VTTCue=o,n.VTTRegion=u},n.VTTCue||i.shim()},63706:function(e,t,r){var n=r(89144),i=Object.create||function(){function e(){}return function(t){if(1!=arguments.length)throw Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function a(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function s(e){function t(e,t,r,n){return(0|e)*3600+(0|t)*60+(0|r)+(0|n)/1e3}var r=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return r?r[3]?t(r[1],r[2],r[3].replace(":",""),r[4]):r[1]>59?t(r[1],r[2],0,r[4]):t(0,r[1],r[2],r[4]):null}function o(){this.values=i(null)}function u(e,t,r,n){var i=n?e.split(n):[e];for(var a in i)if("string"==typeof i[a]){var s=i[a].split(r);2===s.length&&t(s[0].trim(),s[1].trim())}}a.prototype=i(Error.prototype),a.prototype.constructor=a,a.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},o.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,r){return r?this.has(e)?this.values[e]:t[r]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,r){for(var n=0;n<r.length;++n)if(t===r[n]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var l=n.createElement&&n.createElement("textarea"),c={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},p={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},f={v:"title",lang:"lang"},d={rt:"ruby"};function h(e,t){for(var r,n=e.document.createElement("div"),i=n,a=[];null!==(r=function(){if(!t)return null;var e,r=t.match(/^([^<]*)(<[^>]*>?)?/);return e=r[1]?r[1]:r[2],t=t.substr(e.length),e}());){if("<"===r[0]){if("/"===r[1]){a.length&&a[a.length-1]===r.substr(2).replace(">","")&&(a.pop(),i=i.parentNode);continue}var o,u,h,g,m=s(r.substr(1,r.length-2));if(m){g=e.document.createProcessingInstruction("timestamp",m),i.appendChild(g);continue}var b=r.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!b||!(g=function(t,r){var n=c[t];if(!n)return null;var i=e.document.createElement(n),a=f[t];return a&&r&&(i[a]=r.trim()),i}(b[1],b[3]))||(u=i,d[(h=g).localName]&&d[h.localName]!==u.localName))continue;if(b[2]){var y=b[2].split(".");y.forEach(function(e){var t=/^bg_/.test(e),r=t?e.slice(3):e;if(p.hasOwnProperty(r)){var n=t?"background-color":"color",i=p[r];g.style[n]=i}}),g.className=y.join(" ")}a.push(b[1]),i.appendChild(g),i=g;continue}i.appendChild(e.document.createTextNode((o=r,l.innerHTML=o,o=l.textContent,l.textContent="",o)))}return n}var g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function m(){}function b(e,t,r){m.call(this),this.cue=t,this.cueDiv=h(e,t.text);var n={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(n,this.cueDiv),this.div=e.document.createElement("div"),n={direction:function(e){var t=[],r="";if(!e||!e.childNodes)return"ltr";function n(e,t){for(var r=t.childNodes.length-1;r>=0;r--)e.push(t.childNodes[r])}for(n(t,e);r=function e(t){if(!t||!t.length)return null;var r=t.pop(),i=r.textContent||r.innerText;if(i){var a=i.match(/^.*(\n|\r)/);return a?(t.length=0,a[0]):i}return"ruby"===r.tagName?e(t):r.childNodes?(n(t,r),e(t)):void 0}(t);)for(var i=0;i<r.length;i++)if(function(e){for(var t=0;t<g.length;t++){var r=g[t];if(e>=r[0]&&e<=r[1])return!0}return!1}(r.charCodeAt(i)))return"rtl";return"ltr"}(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:r.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(n),this.div.appendChild(this.cueDiv);var i=0;switch(t.positionAlign){case"start":case"line-left":i=t.position;break;case"center":i=t.position-t.size/2;break;case"end":case"line-right":i=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(i,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(i,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function y(e){var t,r,n,i;if(e.div){r=e.div.offsetHeight,n=e.div.offsetWidth,i=e.div.offsetTop;var a=(a=e.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();e=e.div.getBoundingClientRect(),t=a?Math.max(a[0]&&a[0].height||0,e.height/a.length):0}this.left=e.left,this.right=e.right,this.top=e.top||i,this.height=e.height||r,this.bottom=e.bottom||i+(e.height||r),this.width=e.width||n,this.lineHeight=void 0!==t?t:e.lineHeight}function D(){}m.prototype.applyStyles=function(e,t){for(var r in t=t||this.div,e)e.hasOwnProperty(r)&&(t.style[r]=e[r])},m.prototype.formatStyle=function(e,t){return 0===e?0:e+t},b.prototype=i(m.prototype),b.prototype.constructor=b,y.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},y.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},y.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},y.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},y.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},y.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},y.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},y.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,r=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,n=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||n,height:e.height||t,bottom:e.bottom||n+(e.height||t),width:e.width||r}},D.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},D.convertCueToDOMTree=function(e,t){return e&&t?h(e,t):null},D.processCues=function(e,t,r){if(!e||!t||!r)return null;for(;r.firstChild;)r.removeChild(r.firstChild);var n=e.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%",r.appendChild(n),!function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){for(var i=0;i<t.length;i++)n.appendChild(t[i].displayState);return}var a=[],s=y.getSimpleBoxPosition(n),o={font:Math.round(5*s.height)/100+"px sans-serif"};!function(){for(var r,i,u=0;u<t.length;u++)r=new b(e,i=t[u],o),n.appendChild(r.div),function(e,t,r,n){var i=new y(t),a=t.cue,s=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return -1;for(var t=e.track,r=t.textTrackList,n=0,i=0;i<r.length&&r[i]!==t;i++)"showing"===r[i].mode&&n++;return -1*++n}(a),o=[];if(a.snapToLines){switch(a.vertical){case"":o=["+y","-y"],u="height";break;case"rl":o=["+x","-x"],u="width";break;case"lr":o=["-x","+x"],u="width"}var u,l=i.lineHeight,c=l*Math.round(s),p=r[u]+l,f=o[0];Math.abs(c)>p&&(c=Math.ceil(p/l)*l*(c<0?-1:1)),s<0&&(c+=""===a.vertical?r.height:r.width,o=o.reverse()),i.move(f,c)}else{var d=i.lineHeight/r.height*100;switch(a.lineAlign){case"center":s-=d/2;break;case"end":s-=d}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(s,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(s,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(s,"%")})}o=["+y","-x","+x","-y"],i=new y(t)}var h=function(e,t){for(var i,a=new y(e),s=1,o=0;o<t.length;o++){for(;e.overlapsOppositeAxis(r,t[o])||e.within(r)&&e.overlapsAny(n);)e.move(t[o]);if(e.within(r))return e;var u=e.intersectPercentage(r);s>u&&(i=new y(e),s=u),e=new y(a)}return i||a}(i,o);t.move(h.toCSSCompatValues(r))}(0,r,s,a),i.displayState=r.div,a.push(y.getSimpleBoxPosition(r))}()},D.Parser=function(e,t,r){r||(r=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=r||new TextDecoder("utf8"),this.regionList=[]},D.Parser.prototype={reportOrThrowError:function(e){if(e instanceof a)this.onparsingerror&&this.onparsingerror(e);else throw e},parse:function(e){var t=this;function r(){for(var e=t.buffer,r=0;r<e.length&&"\r"!==e[r]&&"\n"!==e[r];)++r;var n=e.substr(0,r);return"\r"===e[r]&&++r,"\n"===e[r]&&++r,t.buffer=e.substr(r),n}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var n,i,l=(i=r()).match(/^WEBVTT([ \t].*)?$/);if(!l||!l[0])throw new a(a.Errors.BadSignature);t.state="HEADER"}for(var c=!1;t.buffer&&/\r\n|\n/.test(t.buffer);)switch(c?c=!1:i=r(),t.state){case"HEADER":/:/.test(i)?(n=i).match(/X-TIMESTAMP-MAP/)?u(n,function(e,r){if("X-TIMESTAMP-MAP"===e){var n;n=new o,u(r,function(e,t){switch(e){case"MPEGT":n.integer(e+"S",t);break;case"LOCA":n.set(e+"L",s(t))}},/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}},/=/):u(n,function(e,r){"Region"===e&&function(e){var r=new o;if(u(e,function(e,t){switch(e){case"id":r.set(e,t);break;case"width":r.percent(e,t);break;case"lines":r.integer(e,t);break;case"regionanchor":case"viewportanchor":var n=t.split(",");if(2!==n.length)break;var i=new o;if(i.percent("x",n[0]),i.percent("y",n[1]),!i.has("x")||!i.has("y"))break;r.set(e+"X",i.get("x")),r.set(e+"Y",i.get("y"));break;case"scroll":r.alt(e,t,["up"])}},/=/,/\s/),r.has("id")){var n=new(t.vttjs.VTTRegion||t.window.VTTRegion);n.width=r.get("width",100),n.lines=r.get("lines",3),n.regionAnchorX=r.get("regionanchorX",0),n.regionAnchorY=r.get("regionanchorY",100),n.viewportAnchorX=r.get("viewportanchorX",0),n.viewportAnchorY=r.get("viewportanchorY",100),n.scroll=r.get("scroll",""),t.onregion&&t.onregion(n),t.regionList.push({id:r.get("id"),region:n})}}(r)},/:/):i||(t.state="ID");continue;case"NOTE":i||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){t.state="NOTE";break}if(!i)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(e){t.cue.align="middle"}if(t.state="CUE",-1===i.indexOf("-->")){t.cue.id=i;continue}case"CUE":try{!function(e,t,r){var n=e;function i(){var t=s(e);if(null===t)throw new a(a.Errors.BadTimeStamp,"Malformed timestamp: "+n);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function l(){e=e.replace(/^\s+/,"")}if(l(),t.startTime=i(),l(),"-->"!==e.substr(0,3))throw new a(a.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+n);e=e.substr(3),l(),t.endTime=i(),l(),function(e,t){var n=new o;u(e,function(e,t){switch(e){case"region":for(var i=r.length-1;i>=0;i--)if(r[i].id===t){n.set(e,r[i].region);break}break;case"vertical":n.alt(e,t,["rl","lr"]);break;case"line":var a=t.split(","),s=a[0];n.integer(e,s),n.percent(e,s)&&n.set("snapToLines",!1),n.alt(e,s,["auto"]),2===a.length&&n.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=t.split(","),n.percent(e,a[0]),2===a.length&&n.alt("positionAlign",a[1],["start","center","end"]);break;case"size":n.percent(e,t);break;case"align":n.alt(e,t,["start","center","end","left","right"])}},/:/,/\s/),t.region=n.get("region",null),t.vertical=n.get("vertical","");try{t.line=n.get("line","auto")}catch(e){}t.lineAlign=n.get("lineAlign","start"),t.snapToLines=n.get("snapToLines",!0),t.size=n.get("size",100);try{t.align=n.get("align","center")}catch(e){t.align=n.get("align","middle")}try{t.position=n.get("position","auto")}catch(e){t.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}(i,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var p=-1!==i.indexOf("-->");if(!i||p&&(c=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=i.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":i||(t.state="ID");continue}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new a(a.Errors.BadSignature)}catch(e){this.reportOrThrowError(e)}return this.onflush&&this.onflush(),this}},e.exports=D},22230:function(e){var t={"":1,lr:1,rl:1},r={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function n(e){return"string"==typeof e&&!!r[e.toLowerCase()]&&e.toLowerCase()}function i(e,r,i){this.hasBeenReset=!1;var a="",s=!1,o=e,u=r,l=i,c=null,p="",f=!0,d="auto",h="start",g="auto",m="auto",b=100,y="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return a},set:function(e){a=""+e}},pauseOnExit:{enumerable:!0,get:function(){return s},set:function(e){s=!!e}},startTime:{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e)throw TypeError("Start time must be set to a number.");o=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e)throw TypeError("End time must be set to a number.");u=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return l},set:function(e){l=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return c},set:function(e){c=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return p},set:function(e){var r="string"==typeof e&&!!t[e.toLowerCase()]&&e.toLowerCase();if(!1===r)throw SyntaxError("Vertical: an invalid or illegal direction string was specified.");p=r,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return f},set:function(e){f=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return d},set:function(e){if("number"!=typeof e&&"auto"!==e)throw SyntaxError("Line: an invalid number or illegal string was specified.");d=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return h},set:function(e){var t=n(e);t?(h=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return g},set:function(e){if(e<0||e>100)throw Error("Position must be between 0 and 100.");g=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return m},set:function(e){var t=n(e);t?(m=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return b},set:function(e){if(e<0||e>100)throw Error("Size must be between 0 and 100.");b=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(e){var t=n(e);if(!t)throw SyntaxError("align: an invalid or illegal alignment string was specified.");y=t,this.hasBeenReset=!0}}}),this.displayState=void 0}i.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=i},13710:function(e){var t={"":!0,up:!0};function r(e){return"number"==typeof e&&e>=0&&e<=100}e.exports=function(){var e=100,n=3,i=0,a=100,s=0,o=100,u="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!r(t))throw Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return n},set:function(e){if("number"!=typeof e)throw TypeError("Lines must be set to a number.");n=e}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(e){if(!r(e))throw Error("RegionAnchorX must be between 0 and 100.");a=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!r(e))throw Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!r(e))throw Error("ViewportAnchorY must be between 0 and 100.");o=e}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!r(e))throw Error("ViewportAnchorX must be between 0 and 100.");s=e}},scroll:{enumerable:!0,get:function(){return u},set:function(e){var r="string"==typeof e&&!!t[e.toLowerCase()]&&e.toLowerCase();!1===r?console.warn("Scroll: an invalid or illegal string was specified."):u=r}}})}},10434:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}}]); |