PageSourceSearch

https://gswnft.com/_next/static/chunks/pages/_app-78baeaa9ef107a9f.js

js gswnft.com collected 2026-10-07 19:08:02 UTC 807,811 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{4465:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});var n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=function(t){var e={};return function(r){return void 0===e[r]&&(e[r]=t(r)),e[r]}}((function(t){return n.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}))},2921:function(t,e,r){"use strict";r.d(e,{G:function(){return f}});var n=r(7294),i=n.useLayoutEffect;var a=function(t,e){var r="function"===typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,a=r.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o};function o(t){return"deferred"in t}var s=function(){};function u(t){return"getSnapshot"in t?t.getSnapshot():function(t){return"state"in t}(t)?t.state:void 0}function l(t,e){void 0===e&&(e=u);
1var r=(0,n.useRef)(t),l=(0,n.useRef)([]),c=a((0,n.useState)((function(){return e(t)})),2),f=c[0],d=c[1],h=function(t){var e=n.useRef();return e.current||(e.current={v:t()}),e.current.v}((function(){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0];var i=r.current;o(i)&&i.deferred?l.current.push(n):i.send(n)}}));return i((function(){r.current=t,d(e(t));for(var n=t.subscribe({next:function(t){return d(t)},error:s,complete:s});l.current.length>0;){var i=l.current.shift();t.send(i)}return function(){n.unsubscribe()}}),[t]),[f,h]}var c=function(t,e){var r="function"===typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,a=r.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o};function f(t){return[c(l(t),1)[0],t.send]}},9996:function(t){"use strict";var e=function(t){return function(t){return!!t&&"object"===typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===r}(t)}(t)};var r="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(t,e){return!1!==e.clone&&e.isMergeableObject(t)?u((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function i(t,e,r){return t.concat(e).map((function(t){return n(t,r)}))}function a(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function o(t,e){try{return e in t}catch(r){return!1}}function s(t,e,r){var i={};return r.isMergeableObject(t)&&a(t).forEach((function(e){i[e]=n(t[e],r)})),a(e).forEach((function(a){(function(t,e){return o(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,a)||(o(t,a)&&r.isMergeableObject(e[a])?i[a]=function(t,e){if(!e.customMerge)return u;var r=e.customMerge(t);return"function"===typeof r?r:u}(a,r)(t[a],e[a],r):i[a]=n(e[a],r))})),i}function u(t,r,a){(a=a||{}).arrayMerge=a.arrayMerge||i,a.isMergeableObject=a.isMergeableObject||e,a.cloneUnlessOtherwiseSpecified=n;var o=Array.isArray(r);return o===Array.isArray(t)?o?a.arrayMerge(t,r,a):s(t,r,a):n(r,a)}u.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return u(t,r,e)}),{})};var l=u;t.exports=l},7631:function(t){var e;"undefined"!==typeof window&&(e=function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/dist/",r(r.s="./src/hls.ts")}({
vendor: 2,796 bytes, line 1
1"./node_modules/eventemitter3/index.js":function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function a(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function s(t,e,r,n,a){if("function"!==typeof r)throw new TypeError("The listener must be a function");var s=new o(r,n||t,a),u=i?i+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function u(t,e){0===--t._eventsCount?t._events=new a:delete t._events[e]}function l(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(i=!1)),l.prototype.eventNames=function(){var t,e,r=[];if(0===this._eventsCount)return r;for(e in t=this._events)n.call(t,e)&&r.push(i?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},l.prototype.listeners=function(t){var e=i?i+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,a=r.length,o=new Array(a);n<a;n++)o[n]=r[n].fn;return o},l.prototype.listenerCount=function(t){var e=i?i+t:t,r=this._events[e];return r?r.fn?1:r.length:0},l.prototype.emit=function(t,e,r,n,a,o){var s=i?i+t:t;if(!this._events[s])return!1;var u,l,c=this._events[s],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,r),!0;case 4:return c.fn.call(c.context,e,r,n),!0;case 5:return c.fn.call(c.context,e,r,n,a),!0;case 6:return c.fn.call(c.context,e,r,n,a,o),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var d,h=c.length;for(l=0;l<h;l++)switch(c[l].once&&this.removeListener(t,c[l].fn,void 0,!0),f){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,e);break;case 3:c[l].fn.call(c[l].context,e,r);break;case 4:c[l].fn.call(c[l].context,e,r,n);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];c[l].fn.apply(c[l].context,u)}}return!0},l.prototype.on=function(t,e,r){return s(this,t,e,r,!1)},l.prototype.once=function(t,e,r){return s(this,t,e,r,!0)},l.prototype.removeListener=function(t,e,r,n){var a=i?i+t:t;if(!this._events[a])return this;if(!e)return u(this,a),this;var o=this._events[a];if(o.fn)o.fn!==e||n&&!o.once||r&&o.context!==r||u(this,a);else{for(var s=0,l=[],c=o.length;s<c;s++)(o[s].fn!==e||n&&!o[s].once||r&&o[s].context!==r)&&l.push(o[s]);l.length?this._events[a]=1===l.length?l[0]:l:u(this,a)}return this},l.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&u(this,e)):(this._events=new a,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=i,l.EventEmitter=l,t.exports=l},
vendor: 1,718 bytes, line 1
1"./node_modules/url-toolkit/src/url-toolkit.js":function(t,e,r){!function(e){var r=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,n=/^([^\/?#]*)([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,o={buildAbsoluteURL:function(t,e,r){if(r=r||{},t=t.trim(),!(e=e.trim())){if(!r.alwaysNormalize)return t;var i=o.parseURL(t);if(!i)throw new Error("Error trying to parse base URL.");return i.path=o.normalizePath(i.path),o.buildURLFromParts(i)}var a=o.parseURL(e);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return r.alwaysNormalize?(a.path=o.normalizePath(a.path),o.buildURLFromParts(a)):e;var s=o.parseURL(t);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var u=n.exec(s.path);s.netLoc=u[1],s.path=u[2]}s.netLoc&&!s.path&&(s.path="/");var l={scheme:s.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(l.netLoc=s.netLoc,"/"!==a.path[0]))if(a.path){var c=s.path,f=c.substring(0,c.lastIndexOf("/")+1)+a.path;l.path=o.normalizePath(f)}else l.path=s.path,a.params||(l.params=s.params,a.query||(l.query=s.query));return null===l.path&&(l.path=r.alwaysNormalize?o.normalizePath(a.path):a.path),o.buildURLFromParts(l)},parseURL:function(t){var e=r.exec(t);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(t){for(t=t.split("").reverse().join("").replace(i,"");t.length!==(t=t.replace(a,"")).length;);return t.split("").reverse().join("")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}};t.exports=o}()},
vendor: 2,678 bytes, line 1
1"./node_modules/webworkify-webpack/index.js":function(t,e,r){function n(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.i=function(t){return t},r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/",r.oe=function(t){throw console.error(t),t};var n=r(r.s=ENTRY_MODULE);return n.default||n}var i="[\\.|\\-|\\+|\\w|/|@]+",a="\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)";function o(t){return(t+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function s(t,e,n){var s={};s[n]=[];var u=e.toString(),l=u.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!l)return s;for(var c,f=l[1],d=new RegExp("(\\\\n|\\W)"+o(f)+a,"g");c=d.exec(u);)"dll-reference"!==c[3]&&s[n].push(c[3]);for(d=new RegExp("\\("+o(f)+'\\("(dll-reference\\s('+i+'))"\\)\\)'+a,"g");c=d.exec(u);)t[c[2]]||(s[n].push(c[1]),t[c[2]]=r(c[1]).m),s[c[2]]=s[c[2]]||[],s[c[2]].push(c[4]);for(var h,p=Object.keys(s),v=0;v<p.length;v++)for(var m=0;m<s[p[v]].length;m++)h=s[p[v]][m],isNaN(1*h)||(s[p[v]][m]=1*s[p[v]][m]);return s}function u(t){return Object.keys(t).reduce((function(e,r){return e||t[r].length>0}),!1)}t.exports=function(t,e){e=e||{};var i={main:r.m},a=e.all?{main:Object.keys(i.main)}:function(t,e){for(var r={main:[e]},n={main:[]},i={main:{}};u(r);)for(var a=Object.keys(r),o=0;o<a.length;o++){var l=a[o],c=r[l].pop();if(i[l]=i[l]||{},!i[l][c]&&t[l][c]){i[l][c]=!0,n[l]=n[l]||[],n[l].push(c);for(var f=s(t,t[l][c],l),d=Object.keys(f),h=0;h<d.length;h++)r[d[h]]=r[d[h]]||[],r[d[h]]=r[d[h]].concat(f[d[h]])}}return n}(i,t),o="";Object.keys(a).filter((function(t){return"main"!==t})).forEach((function(t){for(var e=0;a[t][e];)e++;a[t].push(e),i[t][e]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",o=o+"var "+t+" = ("+n.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+a[t].map((function(e){return JSON.stringify(e)+": "+i[t][e].toString()})).join(",")+"});\n"})),o=o+"new (("+n.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+a.main.map((function(t){return JSON.stringify(t)+": "+i.main[t].toString()})).join(",")+"}))(self);";var l=new window.Blob([o],{type:"text/javascript"});if(e.bare)return l;var c=(window.URL||window.webkitURL||window.mozURL||window.msURL).createObjectURL(l),f=new window.Worker(c);return f.objectURL=c,f}},
vendor: 5,143 bytes, line 1
1"./src/config.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"hlsDefaultConfig",(function(){return S})),r.d(e,"mergeConfig",(function(){return O})),r.d(e,"enableStreamingMode",(function(){return k}));var n=r("./src/controller/abr-controller.ts"),i=r("./src/controller/audio-stream-controller.ts"),a=r("./src/controller/audio-track-controller.ts"),o=r("./src/controller/subtitle-stream-controller.ts"),s=r("./src/controller/subtitle-track-controller.ts"),u=r("./src/controller/buffer-controller.ts"),l=r("./src/controller/timeline-controller.ts"),c=r("./src/controller/cap-level-controller.ts"),f=r("./src/controller/fps-controller.ts"),d=r("./src/controller/eme-controller.ts"),h=r("./src/controller/cmcd-controller.ts"),p=r("./src/utils/xhr-loader.ts"),v=r("./src/utils/fetch-loader.ts"),m=r("./src/utils/cues.ts"),y=r("./src/utils/mediakeys-helper.ts"),g=r("./src/utils/logger.ts");function b(){return b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},b.apply(this,arguments)}function E(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function T(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?E(Object(r),!0).forEach((function(e){w(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function w(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var S=T(T({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,maxBufferSize:6e7,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:p.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:n.default,bufferController:u.default,capLevelController:c.default,fpsController:f.default,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystemOptions:{},requestMediaKeySystemAccessFunc:y.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},{cueHandler:m.default,enableCEA708Captions:!0,enableWebVTT:!0,enableIMSC1:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:o.SubtitleStreamController,subtitleTrackController:s.default,timelineController:l.TimelineController,audioStreamController:i.default,audioTrackController:a.default,emeController:d.default,cmcdController:h.default});function O(t,e){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==e.liveMaxLatencyDurationCount&&(void 0===e.liveSyncDurationCount||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==e.liveMaxLatencyDuration&&(void 0===e.liveSyncDuration||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return b({},t,e)}function k(t){var e=t.loader;e!==v.default&&e!==p.default?(g.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),t.progressive=!1):Object(v.fetchSupported)()&&(t.loader=v.default,t.progressive=!0,t.enableSoftw
1areAES=!0,g.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}},
vendor: 4,840 bytes, line 1
1"./src/controller/abr-controller.ts":function(t,e,r){"use strict";r.r(e);var n=r("./src/polyfills/number.ts"),i=r("./src/utils/ewma-bandwidth-estimator.ts"),a=r("./src/events.ts"),o=r("./src/utils/buffer-helper.ts"),s=r("./src/errors.ts"),u=r("./src/types/loader.ts"),l=r("./src/utils/logger.ts");function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var f=function(){function t(t){this.hls=void 0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=void 0,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=t;var e=t.config;this.bwEstimator=new i.default(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate),this.registerListeners()}var e,r,f,d=t.prototype;return d.registerListeners=function(){var t=this.hls;t.on(a.Events.FRAG_LOADING,this.onFragLoading,this),t.on(a.Events.FRAG_LOADED,this.onFragLoaded,this),t.on(a.Events.FRAG_BUFFERED,this.onFragBuffered,this),t.on(a.Events.LEVEL_LOADED,this.onLevelLoaded,this),t.on(a.Events.ERROR,this.onError,this)},d.unregisterListeners=function(){var t=this.hls;t.off(a.Events.FRAG_LOADING,this.onFragLoading,this),t.off(a.Events.FRAG_LOADED,this.onFragLoaded,this),t.off(a.Events.FRAG_BUFFERED,this.onFragBuffered,this),t.off(a.Events.LEVEL_LOADED,this.onLevelLoaded,this),t.off(a.Events.ERROR,this.onError,this)},d.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},d.onFragLoading=function(t,e){var r,n=e.frag;n.type===u.PlaylistLevelType.MAIN&&(this.timer||(this.fragCurrent=n,this.partCurrent=null!=(r=e.part)?r:null,this.timer=self.setInterval(this.onCheck,100)))},d.onLevelLoaded=function(t,e){var r=this.hls.config;e.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD)},d._abandonRulesCheck=function(){var t=this.fragCurrent,e=this.partCurrent,r=this.hls,i=r.autoLevelEnabled,s=r.config,u=r.media;if(t&&u){var c=e?e.stats:t.stats,f=e?e.duration:t.duration;if(c.aborted)return l.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),void(this._nextAutoLevel=-1);if(i&&!u.paused&&u.playbackRate&&u.readyState){var d=performance.now()-c.loading.start,h=Math.abs(u.playbackRate);if(!(d<=500*f/h)){var p=r.levels,v=r.minAutoLevel,m=p[t.level],y=c.total||Math.max(c.loaded,Math.round(f*m.maxBitrate/8)),g=Math.max(1,c.bwEstimate?c.bwEstimate/8:1e3*c.loaded/d),b=(y-c.loaded)/g,E=u.currentTime,T=(o.BufferHelper.bufferInfo(u,E,s.maxBufferHole).end-E)/h;if(!(T>=2*f/h||b<=T)){var w,S=Number.POSITIVE_INFINITY;for(w=t.level-1;w>v&&!((S=f*p[w].maxBitrate/(6.4*g))<T);w--);if(!(S>=b)){var O=this.bwEstimator.getEstimate();l.logger.warn("Fragment "+t.sn+(e?" part "+e.index:"")+" of level "+t.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+w+"\n      Current BW estimate: "+(Object(n.isFiniteNumber)(O)?(O/1024).toFixed(3):"Unknown")+" Kb/s\n      Estimated load time for current fragment: "+b.toFixed(3)+" s\n      Estimated load time for the next fragment: "+S.toFixed(3)+" s\n      Time to underbuffer: "+T.toFixed(3)+" s"),r.nextLoadLevel=w,this.bwEstimator.sample(d,c.loaded),this.clearTimer(),t.loader&&(this.fragCurrent=this.partCurrent=null,t.loader.abort()),r.trigger(a.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,part:e,stats:c})}}}}}},d.onFragLoaded=function(t,e){var r=e.frag,i=e.part;if(r.type===u.PlaylistLevelType.MAIN&&Object(n.isFiniteNumber)(r.sn)){var o=i?i.stats:r.stats,s=i?i.duration:r.duration;if(this.clearTimer(),this.lastLoadedFragLevel=r.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var l=this.hls.levels[r.level],c=(l.loaded?l.loaded.bytes:0)+o.loaded,f=(l.loaded?l.loaded.duration:0)+s;l.loaded={bytes:c,duration:f},l.realBitrate=Math.round(8*c/f)}if(r.bitrateTest){var d={stats:o,frag:r,part:i,id:r.type};this.onFragBuffered(a.Events.FRAG_BUFFERED,d),r.bitrateTest=!1}}},d.onFragBuffered=function(t,e){var r=e.frag,n=e.part,i=n?n.stats:r.stats;if(!i.aborted&&r.type===u.PlaylistLevelType.MAIN&&"initSegment"!==r.sn){var a=i.parsing.end-i.loading.start;this.bwEstimator.sample(a,i.loaded),i.bwEstimate=this.bwEstimator.getEstimate(),r.bitrateTest?this.bitrateTestDelay=a/1e3:this.bitrateTestDelay=0}},d.onError=function(t,e){switch(e.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer()}},d.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},d.getNextABRAutoLevel=function(){var t=this.fragCurrent,e=this.partCurrent,r=this.hls,n=r.maxAutoLevel,i=r.config,a=r.minAutoLevel,s=r.media,u=e?e.duration:t?t.duration:0,
1c=s?s.currentTime:0,f=s&&0!==s.playbackRate?Math.abs(s.playbackRate):1,d=this.bwEstimator?this.bwEstimator.getEstimate():i.abrEwmaDefaultEstimate,h=(o.BufferHelper.bufferInfo(s,c,i.maxBufferHole).end-c)/f,p=this.findBestLevel(d,a,n,h,i.abrBandWidthFactor,i.abrBandWidthUpFactor);if(p>=0)return p;l.logger.trace((h?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var v=u?Math.min(u,i.maxStarvationDelay):i.maxStarvationDelay,m=i.abrBandWidthFactor,y=i.abrBandWidthUpFactor;if(!h){var g=this.bitrateTestDelay;g&&(v=(u?Math.min(u,i.maxLoadingDelay):i.maxLoadingDelay)-g,l.logger.trace("bitrate test took "+Math.round(1e3*g)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*v)+" ms"),m=y=1)}return p=this.findBestLevel(d,a,n,h+v,m,y),Math.max(p,0)},d.findBestLevel=function(t,e,r,n,i,a){for(var o,s=this.fragCurrent,u=this.partCurrent,c=this.lastLoadedFragLevel,f=this.hls.levels,d=f[c],h=!(null===d||void 0===d||null===(o=d.details)||void 0===o||!o.live),p=null===d||void 0===d?void 0:d.codecSet,v=u?u.duration:s?s.duration:0,m=r;m>=e;m--){var y=f[m];if(y&&(!p||y.codecSet===p)){var g=y.details,b=(u?null===g||void 0===g?void 0:g.partTarget:null===g||void 0===g?void 0:g.averagetargetduration)||v,E=void 0;E=m<=c?i*t:a*t;var T=f[m].maxBitrate,w=T*b/E;if(l.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+m+"/"+Math.round(E)+"/"+T+"/"+b+"/"+n+"/"+w),E>T&&(!w||h&&!this.bitrateTestDelay||w<n))return m}}return-1},e=t,(r=[{key:"nextAutoLevel",get:function(){var t=this._nextAutoLevel,e=this.bwEstimator;if(-1!==t&&(!e||!e.canEstimate()))return t;var r=this.getNextABRAutoLevel();return-1!==t&&(r=Math.min(t,r)),r},set:function(t){this._nextAutoLevel=t}}])&&c(e.prototype,r),f&&c(e,f),t}();e.default=f},
vendor: 61,555 bytes, line 1
1"./src/controller/audio-stream-controller.ts":function(t,e,r){"use strict";r.r(e);var n=r("./src/polyfills/number.ts"),i=r("./src/controller/base-stream-controller.ts"),a=r("./src/events.ts"),o=r("./src/utils/buffer-helper.ts"),s=r("./src/controller/fragment-tracker.ts"),u=r("./src/types/level.ts"),l=r("./src/types/loader.ts"),c=r("./src/loader/fragment.ts"),f=r("./src/demux/chunk-cache.ts"),d=r("./src/demux/transmuxer-interface.ts"),h=r("./src/types/transmuxer.ts"),p=r("./src/controller/fragment-finders.ts"),v=r("./src/utils/discontinuities.ts"),m=r("./src/errors.ts"),y=r("./src/utils/logger.ts");function g(){return g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},g.apply(this,arguments)}function b(t,e){return b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},b(t,e)}var E=function(t){var e,r;function E(e,r){var n;return(n=t.call(this,e,r,"[audio-stream-controller]")||this).videoBuffer=null,n.videoTrackCC=-1,n.waitingVideoCC=-1,n.audioSwitch=!1,n.trackId=-1,n.waitingData=null,n.mainDetails=null,n.bufferFlushed=!1,n._registerListeners(),n}r=t,(e=E).prototype=Object.create(r.prototype),e.prototype.constructor=e,b(e,r);var T=E.prototype;return T.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},T._registerListeners=function(){var t=this.hls;t.on(a.Events.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(a.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(a.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.on(a.Events.LEVEL_LOADED,this.onLevelLoaded,this),t.on(a.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.on(a.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(a.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(a.Events.ERROR,this.onError,this),t.on(a.Events.BUFFER_RESET,this.onBufferReset,this),t.on(a.Events.BUFFER_CREATED,this.onBufferCreated,this),t.on(a.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(a.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(a.Events.FRAG_BUFFERED,this.onFragBuffered,this)},T._unregisterListeners=function(){var t=this.hls;t.off(a.Events.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(a.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(a.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.off(a.Events.LEVEL_LOADED,this.onLevelLoaded,this),t.off(a.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.off(a.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(a.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(a.Events.ERROR,this.onError,this),t.off(a.Events.BUFFER_RESET,this.onBufferReset,this),t.off(a.Events.BUFFER_CREATED,this.onBufferCreated,this),t.off(a.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(a.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(a.Events.FRAG_BUFFERED,this.onFragBuffered,this)},T.onInitPtsFound=function(t,e){var r=e.frag,n=e.id,a=e.initPTS;if("main"===n){var o=r.cc;this.initPTS[r.cc]=a,this.log("InitPTS for cc: "+o+" found from main: "+a),this.videoTrackCC=o,this.state===i.State.WAITING_INIT_PTS&&this.tick()}},T.startLoad=function(t){if(!this.levels)return this.startPosition=t,void(this.state=i.State.STOPPED);var e=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),this.fragLoadError=0,e>0&&-1===t?(this.log("Override startPosition with lastCurrentTime @"+e.toFixed(3)),this.state=i.State.IDLE):(this.loadedmetadata=!1,this.state=i.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()},T.doTick=function(){switch(this.state){case i.State.IDLE:this.doTickIdle();break;case i.State.WAITING_TRACK:var e,r=this.levels,n=this.trackId,a=null===r||void 0===r||null===(e=r[n])||void 0===e?void 0:e.details;if(a){if(this.waitForCdnTuneIn(a))break;this.state=i.State.WAITING_INIT_PTS}break;case i.State.FRAG_LOADING_WAITING_RETRY:var s,u=performance.now(),l=this.retryDate;(!l||u>=l||null!==(s=this.media)&&void 0!==s&&s.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=i.State.IDLE);break;case i.State.WAITING_INIT_PTS:var c=this.waitingData;if(c){var f=c.frag,d=c.part,h=c.cache,v=c.complete;if(void 0!==this.initPTS[f.cc]){this.waitingData=null,this.waitingVideoCC=-1,this.state=i.State.FRAG_LOADING;var m={frag:f,part:d,payload:h.flush(),networkDetails:null};this._handleFragmentLoadProgress(m),v&&t.prototype._handleFragmentLoadComplete.call(this,m)}else if(this.videoTrackCC!==this.waitingVideoCC)y.logger.log("Waiting fragment cc ("+f.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var g=this.getLoadPosition(),b=o.BufferHelper.bufferInfo(this.mediaBuffer,g,this.config.maxBufferHole);Object(p.fragmentWithinToleranceTest)(b.end,this.config.maxFragLookUpTolerance,f)<0&&(y.logger.log("Waiting fragment cc ("+f.cc+") @ "+f.start+" cancelled because another fragment at "+b.end+" is needed"),this.clearWaitingFragment())}}else this.state=i.State.IDLE}this.onTickEnd()},T.clearWaitingFragment=function(){var t=this.waitingData;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=i.State.IDLE)},T.onTickEnd=function(){var t=this.media;if(t&&t.readyState){var e=(this.mediaBuffer?this.mediaBuffer:t).buffered;!this.loadedmetadata&&e.length&&(this.loadedmetadata=!0),this.lastCurrentTime=t.currentTime}},T.doTickIdle=function(){var t,e,r=this.hls,n=this.levels,o=this.media,s=this.trackId,u=r.config;if(n&&n[s]&&(o||!this.startFragRequested&&u.startFragPrefetch)){var f=n[s].details;if(!f||f.live&&this.levelLastLoaded!==s||this.waitForCdnTuneIn(f))this.state=i.State.WAITING_TRACK;else{this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,c.ElementaryStreamTypes.AUDIO,l.PlaylistLevelType.AUDIO));var d=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,l.PlaylistLevelType.AUDIO);if(null!==d){var h=d.len,p=this.getMaxBufferLength(),v=this.audioSwitch;if(!(h>=p)||v){if(!v&&this._streamEnded(d,f))return r.trigger(a.Events.BUFFER_EOS,{type:"audio"}),void(this.state=i.State.ENDED);var m=f.fragments[0].start,y=d.end;if(v){var g=this.getLoadPosition();y=g,f.PTSKnown&&g<m&&(d.end>m||d.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),o.currentTime=m+.05)}var b=this.getNextFragment(y,f);b?"identity"!==(null===(t=b.decryptdata)||void 0===t?void 0:t.keyFormat)||null!==(e=b.decryptdata)&&void 0!==e&&e.key?this.loadFragment(b,f,y):this.loadKey(b,f):this.bufferFlushed=!0}}}}},T.getMaxBufferLength=function(){var e=t.prototype.getMaxBufferLength.call(this),r=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,l.PlaylistLevelType.MAIN);return null===r?e:Math.max(e,r.len)},T.onMediaDetaching=function(){this.videoBuffer=null,t.prototype.onMediaDetaching.call(this)},T.onAudioTracksUpdated=function(t,e){var r=e.audioTracks;this.resetTransmuxer(),this.levels=r.map((function(t){return new u.Level(t)}))},T.onAudioTrackSwitching=function(t,e){var r=!!e.url;this.trackId=e.id;var n=this.fragCurrent;null!==n&&void 0!==n&&n.loader&&n.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),r?this.setInterval(100):this.resetTransmuxer(),r?(this.audioSwitch=!0,this.state=i.State.IDLE):this.state=i.State.STOPPED,this.tick()},T.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},T.onLevelLoaded=function(t,e){this.mainDetails=e.details},T.onAudioTrackLoaded=function(t,e){var r,n=this.levels,a=e.details,o=e.id;if(n){this.log("Track "+o+" loaded ["+a.startSN+","+a.endSN+"],duration:"+a.totalduration);var s=n[o],u=0;if(a.live||null!==(r=s.details)&&void 0!==r&&r.live){var l=this.mainDetails;if(a.fragments[0]||(a.deltaUpdateFailed=!0),a.deltaUpdateFailed||!l)return;!s.details&&a.hasProgramDateTime&&l.hasProgramDateTime?(Object(v.alignMediaPlaylistByPDT)(a,l),u=a.fragments[0].start):u=this.alignPlaylists(a,s.details)}s.details=a,this.levelLastLoaded=o,this.startFragRequested||!this.mainDetails&&a.live||this.setStartPosition(s.details,u),this.state!==i.State.WAITING_TRACK||this.waitForCdnTuneIn(a)||(this.state=i.State.IDLE),this.tick()}else this.warn("Audio tracks were reset while loading level "+o)},T._handleFragmentLoadProgress=function(t){var e,r=t.frag,n=t.part,a=t.payload,o=this.config,s=this.trackId,u=this.levels;if(u){var c=u[s];console.assert(c,"Audio track is defined on fragment load progress");var p=c.details;console.assert(p,"Audio track details are defined on fragment load progress");var v=o.defaultAudioCodec||c.audioCodec||"mp4a.40.2",m=this.transmuxer;m||(m=this.transmuxer=new d.default(this.hls,l.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var g=this.initPTS[r.cc],b=null===(e=r.initSegment)||void 0===e?void 0:e.data;if(void 0!==g){var E=n?n.index:-1,T=-1!==E,w=new h.ChunkMetadata(r.level,r.sn,r.stats.chunkCount,a.byteLength,E,T);m.push(a,b,v,"",r,n,p.totalduration,!1,w,g)}else y.logger.log("Unknown video PTS for cc "+r.cc+", waiting for video PTS before demuxing audio frag "+r.sn+" of ["+p.startSN+" ,"+p.endSN+"],track "+s),(this.waitingData=this.waitingData||{frag:r,part:n,cache:new f.default,complete:!1}).cache.push(new Uint8Array(a)),this.waitingVideoCC=this.videoTrackCC,this.state=i.State.WAITING_INIT_PTS}else this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+r.sn+" of level "+r.level+" will not be buffered")},T._handleFragmentLoadComplete=function(e){this.waitingData?this.waitingData.complete=!0:t.prototype._handleFragmentLoadComplete.call(this,e)},T.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},T.onBufferCreated=function(t,e){var r=e.tracks.audio;r&&(this.mediaBuffer=r.buffer),e.tracks.video&&(this.videoBuffer=e.tracks.video.buffer)},T.onFragBuffered=function(t,e){var r=e.frag,n=e.part;r.type===l.PlaylistLevelType.AUDIO&&(this.fragContextChanged(r)?this.warn("Fragment "+r.sn+(n?" p: "+n.index:"")+" of level "+r.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch):("initSegment"!==r.sn&&(this.fragPrevious=r,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(a.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(r,n)))},T.onError=function(e,r){switch(r.details){case m.ErrorDetails.FRAG_LOAD_ERROR:case m.ErrorDetails.FRAG_LOAD_TIMEOUT:case m.ErrorDetails.KEY_LOAD_ERROR:case m.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(l.PlaylistLevelType.AUDIO,r);break;case m.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case m.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==i.State.ERROR&&this.state!==i.State.STOPPED&&(this.state=r.fatal?i.State.ERROR:i.State.IDLE,this.warn(r.details+" while loading frag, switching to "+this.state+" state"));break;case m.ErrorDetails.BUFFER_FULL_ERROR:if("audio"===r.parent&&(this.state===i.State.PARSING||this.state===i.State.PARSED)){var n=!0,a=this.getFwdBufferInfo(this.mediaBuffer,l.PlaylistLevelType.AUDIO);a&&a.len>.5&&(n=!this.reduceMaxBufferLength(a.len)),n&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,t.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}}},T.onBufferFlushed=function(t,e){e.type===c.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},T._handleTransmuxComplete=function(t){var e,r="audio",n=this.hls,o=t.remuxResult,s=t.chunkMeta,u=this.getCurrentContext(s);if(!u)return this.warn("The loading context changed while buffering fragment "+s.sn+" of level "+s.level+". This chunk will not be buffered."),void this.resetLiveStartWhenNotLoaded(s.level);var l=u.frag,f=u.part,d=o.audio,h=o.text,p=o.id3,v=o.initSegment;if(!this.fragContextChanged(l)){if(this.state=i.State.PARSING,this.audioSwitch&&d&&this.completeAudioSwitch(),null!==v&&void 0!==v&&v.tracks&&(this._bufferInitSegment(v.tracks,l,s),n.trigger(a.Events.FRAG_PARSING_INIT_SEGMENT,{frag:l,id:r,tracks:v.tracks})),d){var m=d.startPTS,y=d.endPTS,b=d.startDTS,E=d.endDTS;f&&(f.elementaryStreams[c.ElementaryStreamTypes.AUDIO]={startPTS:m,endPTS:y,startDTS:b,endDTS:E}),l.setElementaryStreamInfo(c.ElementaryStreamTypes.AUDIO,m,y,b,E),this.bufferFragmentData(d,l,f,s)}if(null!==p&&void 0!==p&&null!==(e=p.samples)&&void 0!==e&&e.length){var T=g({frag:l,id:r},p);n.trigger(a.Events.FRAG_PARSING_METADATA,T)}if(h){var w=g({frag:l,id:r},h);n.trigger(a.Events.FRAG_PARSING_USERDATA,w)}}},T._bufferInitSegment=function(t,e,r){if(this.state===i.State.PARSING){t.video&&delete t.video;var n=t.audio;if(n){n.levelCodec=n.codec,n.id="audio",this.log("Init audio buffer, container:"+n.container+", codecs[parsed]=["+n.codec+"]"),this.hls.trigger(a.Events.BUFFER_CODECS,t);var o=n.initSegment;if(null!==o&&void 0!==o&&o.byteLength){var s={type:"audio",frag:e,part:null,chunkMeta:r,parent:e.type,data:o};this.hls.trigger(a.Events.BUFFER_APPENDING,s)}this.tick()}}},T.loadFragment=function(e,r,a){var o=this.fragmentTracker.getState(e);this.fragCurrent=e,(this.audioSwitch||o===s.FragmentState.NOT_LOADED||o===s.FragmentState.PARTIAL)&&("initSegment"===e.sn?this._loadInitSegment(e):r.live&&!Object(n.isFiniteNumber)(this.initPTS[e.cc])?(this.log("Waiting for video PTS in continuity counter "+e.cc+" of live stream before loading audio fragment "+e.sn+" of level "+this.trackId),this.state=i.State.WAITING_INIT_PTS):(this.startFragRequested=!0,t.prototype.loadFragment.call(this,e,r,a)))},T.completeAudioSwitch=function(){var e=this.hls,r=this.media,n=this.trackId;r&&(this.log("Switching audio track : flushing all audio"),t.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,e.trigger(a.Events.AUDIO_TRACK_SWITCHED,{id:n})},E}(i.default);e.default=E},"./src/controller/audio-track-controller.ts":function(t,e,r){"use strict";r.r(e);var n=r("./src/events.ts"),i=r("./src/errors.ts"),a=r("./src/controller/base-playlist-controller.ts"),o=r("./src/types/loader.ts");function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e){return u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},u(t,e)}var l=function(t){var e,r;function a(e){var r;return(r=t.call(this,e,"[audio-track-controller]")||this).tracks=[],r.groupId=null,r.tracksInGroup=[],r.trackId=-1,r.trackName="",r.selectDefaultTrack=!0,r.registerListeners(),r}r=t,(e=a).prototype=Object.create(r.prototype),e.prototype.constructor=e,u(e,r);var l,c,f,d=a.prototype;return d.registerListeners=function(){var t=this.hls;t.on(n.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.on(n.Events.MANIFEST_PARSED,this.onManifestParsed,this),t.on(n.Events.LEVEL_LOADING,this.onLevelLoading,this),t.on(n.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(n.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(n.Events.ERROR,this.onError,this)},d.unregisterListeners=function(){var t=this.hls;t.off(n.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.off(n.Events.MANIFEST_PARSED,this.onManifestParsed,this),t.off(n.Events.LEVEL_LOADING,this.onLevelLoading,this),t.off(n.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(n.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(n.Events.ERROR,this.onError,this)},d.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,t.prototype.destroy.call(this)},d.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},d.onManifestParsed=function(t,e){this.tracks=e.audioTracks||[]},d.onAudioTrackLoaded=function(t,e){var r=e.id,n=e.details,i=this.tracksInGroup[r];if(i){var a=i.details;i.details=e.details,this.log("audioTrack "+r+" loaded ["+n.startSN+"-"+n.endSN+"]"),r===this.trackId&&(this.retryCount=0,this.playlistLoaded(r,e,a))}else this.warn("Invalid audio track id "+r)},d.onLevelLoading=function(t,e){this.switchLevel(e.level)},d.onLevelSwitching=function(t,e){this.switchLevel(e.level)},d.switchLevel=function(t){var e=this.hls.levels[t];if(null!==e&&void 0!==e&&e.audioGroupIds){var r=e.audioGroupIds[e.urlId];if(this.groupId!==r){this.groupId=r;var i=this.tracks.filter((function(t){return!r||t.groupId===r}));this.selectDefaultTrack&&!i.some((function(t){return t.default}))&&(this.selectDefaultTrack=!1),this.tracksInGroup=i;var a={audioTracks:i};this.log("Updating audio tracks, "+i.length+' track(s) found in "'+r+'" group-id'),this.hls.trigger(n.Events.AUDIO_TRACKS_UPDATED,a),this.selectInitialTrack()}}},d.onError=function(e,r){t.prototype.onError.call(this,e,r),!r.fatal&&r.context&&r.context.type===o.PlaylistContextType.AUDIO_TRACK&&r.context.id===this.trackId&&r.context.groupId===this.groupId&&this.retryLoadingOrFail(r)},d.setAudioTrack=function(t){var e=this.tracksInGroup;if(t<0||t>=e.length)this.warn("Invalid id passed to audio-track controller");else{this.clearTimer();var r=e[this.trackId];this.log("Now switching to audio-track index "+t);var i=e[t],a=i.id,o=i.groupId,s=void 0===o?"":o,u=i.name,l=i.type,c=i.url;if(this.trackId=t,this.trackName=u,this.selectDefaultTrack=!1,this.hls.trigger(n.Events.AUDIO_TRACK_SWITCHING,{id:a,groupId:s,name:u,type:l,url:c}),!i.details||i.details.live){var f=this.switchParams(i.url,null===r||void 0===r?void 0:r.details);this.loadPlaylist(f)}}},d.selectInitialTrack=function(){var t=this.tracksInGroup;console.assert(t.length,"Initial audio track should be selected when tracks are known");var e=this.trackName,r=this.findTrackId(e)||this.findTrackId();-1!==r?this.setAudioTrack(r):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(n.Events.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},d.findTrackId=function(t){for(var e=this.tracksInGroup,r=0;r<e.length;r++){var n=e[r];if((!this.selectDefaultTrack||n.default)&&(!t||t===n.name))return n.id}return-1},d.loadPlaylist=function(t){var e=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(e)){var r=e.id,i=e.groupId,a=e.url;if(t)try{a=t.addDirectives(a)}catch(o){this.warn("Could not construct new URL with HLS Delivery Directives: "+o)}this.log("loading audio-track playlist for id: "+r),this.clearTimer(),this.hls.trigger(n.Events.AUDIO_TRACK_LOADING,{url:a,id:r,groupId:i,deliveryDirectives:t||null})}},l=a,(c=[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(t){this.selectDefaultTrack=!1,this.setAudioTrack(t)}}])&&s(l.prototype,c),f&&s(l,f),a}(a.default);e.default=l},"./src/controller/base-playlist-controller.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return u}));var n=r("./src/polyfills/number.ts"),i=r("./src/types/level.ts"),a=r("./src/controller/level-helper.ts"),o=r("./src/utils/logger.ts"),s=r("./src/errors.ts"),u=function(){function t(t,e){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=o.logger.log.bind(o.logger,e+":"),this.warn=o.logger.warn.bind(o.logger,e+":"),this.hls=t}var e=t.prototype;return e.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},e.onError=function(t,e){e.fatal&&e.type===s.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},e.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},e.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},e.stopLoad=function(){this.canLoad=!1,this.clearTimer()},e.switchParams=function(t,e){var r=null===e||void 0===e?void 0:e.renditionReports;if(r)for(var a=0;a<r.length;a++){var o=r[a],s=""+o.URI;if(s===t.substr(-s.length)){var u=parseInt(o["LAST-MSN"]),l=parseInt(o["LAST-PART"]);if(e&&this.hls.config.lowLatencyMode){var c=Math.min(e.age-e.partTarget,e.targetduration);void 0!==l&&c>e.partTarget&&(l+=1)}if(Object(n.isFiniteNumber)(u))return new i.HlsUrlParameters(u,Object(n.isFiniteNumber)(l)?l:void 0,i.HlsSkip.No)}}},e.loadPlaylist=function(t){},e.shouldLoadTrack=function(t){return this.canLoad&&t&&!!t.url&&(!t.details||t.details.live)},e.playlistLoaded=function(t,e,r){var n=this,i=e.details,o=e.stats,s=o.loading.end?Math.max(0,self.performance.now()-o.loading.end):0;if(i.advancedDateTime=Date.now()-s,i.live||null!==r&&void 0!==r&&r.live){if(i.reloaded(r),r&&this.log("live playlist "+t+" "+(i.advanced?"REFRESHED "+i.lastPartSn+"-"+i.lastPartIndex:"MISSED")),r&&i.fragments.length>0&&Object(a.mergeDetails)(r,i),!this.canLoad||!i.live)return;var u,l=void 0,c=void 0;if(i.canBlockReload&&i.endSN&&i.advanced){var f=this.hls.config.lowLatencyMode,d=i.lastPartSn,h=i.endSN,p=i.lastPartIndex,v=d===h;-1!==p?(l=v?h+1:d,c=v?f?0:p:p+1):l=h+1;var m=i.age,y=m+i.ageHeader,g=Math.min(y-i.partTarget,1.5*i.targetduration);if(g>0){if(r&&g>r.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+r.tuneInGoal+" to: "+g+" with playlist age: "+i.age),g=0;else{var b=Math.floor(g/i.targetduration);l+=b,void 0!==c&&(c+=Math.round(g%i.targetduration/i.partTarget)),this.log("CDN Tune-in age: "+i.ageHeader+"s last advanced "+m.toFixed(2)+"s goal: "+g+" skip sn "+b+" to part "+c)}i.tuneInGoal=g}if(u=this.getDeliveryDirectives(i,e.deliveryDirectives,l,c),f||!v)return void this.loadPlaylist(u)}else u=this.getDeliveryDirectives(i,e.deliveryDirectives,l,c);var E=Object(a.computeReloadInterval)(i,o);void 0!==l&&i.canBlockReload&&(E-=i.partTarget||1),this.log("reload live playlist "+t+" in "+Math.round(E)+" ms"),this.timer=self.setTimeout((function(){return n.loadPlaylist(u)}),E)}else this.clearTimer()},e.getDeliveryDirectives=function(t,e,r,n){var a=Object(i.getSkipValue)(t,r);return null!==e&&void 0!==e&&e.skip&&t.deltaUpdateFailed&&(r=e.msn,n=e.part,a=i.HlsSkip.No),new i.HlsUrlParameters(r,n,a)},e.retryLoadingOrFail=function(t){var e,r=this,n=this.hls.config,i=this.retryCount<n.levelLoadingMaxRetry;if(i)if(this.retryCount++,t.details.indexOf("LoadTimeOut")>-1&&null!==(e=t.context)&&void 0!==e&&e.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+t.details+'"'),this.loadPlaylist();else{var a=Math.min(Math.pow(2,this.retryCount)*n.levelLoadingRetryDelay,n.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout((function(){return r.loadPlaylist()}),a),this.warn("retry playlist loading #"+this.retryCount+" in "+a+' ms after "'+t.details+'"')}else this.warn('cannot recover from error "'+t.details+'"'),this.clearTimer(),t.fatal=!0;return i},t}()},"./src/controller/base-stream-controller.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"State",(function(){return T})),r.d(e,"default",(function(){return w}));var n=r("./src/polyfills/number.ts"),i=r("./src/task-loop.ts"),a=r("./src/controller/fragment-tracker.ts"),o=r("./src/utils/buffer-helper.ts"),s=r("./src/utils/logger.ts"),u=r("./src/events.ts"),l=r("./src/errors.ts"),c=r("./src/types/transmuxer.ts"),f=r("./src/utils/mp4-tools.ts"),d=r("./src/utils/discontinuities.ts"),h=r("./src/controller/fragment-finders.ts"),p=r("./src/controller/level-helper.ts"),v=r("./src/loader/fragment-loader.ts"),m=r("./src/crypt/decrypter.ts"),y=r("./src/utils/time-ranges.ts"),g=r("./src/types/loader.ts");function b(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function E(t,e){return E=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},E(t,e)}var T={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",BACKTRACKING:"BACKTRACKING",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},w=function(t){var e,r;function i(e,r,n){var i;return(i=t.call(this)||this).hls=void 0,i.fragPrevious=null,i.fragCurrent=null,i.fragmentTracker=void 0,i.transmuxer=null,i._state=T.STOPPED,i.media=void 0,i.mediaBuffer=void 0,i.config=void 0,i.bitrateTest=!1,i.lastCurrentTime=0,i.nextLoadPosition=0,i.startPosition=0,i.loadedmetadata=!1,i.fragLoadError=0,i.retryDate=0,i.levels=null,i.fragmentLoader=void 0,i.levelLastLoaded=null,i.startFragRequested=!1,i.decrypter=void 0,i.initPTS=[],i.onvseeking=null,i.onvended=null,i.logPrefix="",i.log=void 0,i.warn=void 0,i.logPrefix=n,i.log=s.logger.log.bind(s.logger,n+":"),i.warn=s.logger.warn.bind(s.logger,n+":"),i.hls=e,i.fragmentLoader=new v.default(e.config),i.fragmentTracker=r,i.config=e.config,i.decrypter=new m.default(e,e.config),e.on(u.Events.KEY_LOADED,i.onKeyLoaded,function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(i)),i}r=t,(e=i).prototype=Object.create(r.prototype),e.prototype.constructor=e,E(e,r);var w,S,O,k=i.prototype;return k.doTick=function(){this.onTickEnd()},k.onTickEnd=function(){},k.startLoad=function(t){},k.stopLoad=function(){this.fragmentLoader.abort();var t=this.fragCurrent;t&&this.fragmentTracker.removeFragment(t),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=T.STOPPED},k._streamEnded=function(t,e){var r=this.fragCurrent,n=this.fragmentTracker;if(!e.live&&r&&r.sn>=e.endSN&&!t.nextStart){var i=e.partList;if(null!==i&&void 0!==i&&i.length){var s=i[i.length-1];return o.BufferHelper.isBuffered(this.media,s.start+s.duration/2)}var u=n.getState(r);return u===a.FragmentState.PARTIAL||u===a.FragmentState.OK}return!1},k.onMediaAttached=function(t,e){var r=this.media=this.mediaBuffer=e.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),r.addEventListener("seeking",this.onvseeking),r.addEventListener("ended",this.onvended);var n=this.config;this.levels&&n.autoStartLoad&&this.state===T.STOPPED&&this.startLoad(n.startPosition)},k.onMediaDetaching=function(){var t=this.media;null!==t&&void 0!==t&&t.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),t&&(t.removeEventListener("seeking",this.onvseeking),t.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},k.onMediaSeeking=function(){var t=this.config,e=this.fragCurrent,r=this.media,i=this.mediaBuffer,a=this.state,s=r?r.currentTime:0,u=o.BufferHelper.bufferInfo(i||r,s,t.maxBufferHole);if(this.log("media seeking to "+(Object(n.isFiniteNumber)(s)?s.toFixed(3):s)+", state: "+a),a===T.ENDED)this.resetLoadingState();else if(e&&!u.len){var l=t.maxFragLookUpTolerance,c=e.start-l,f=s>e.start+e.duration+l;(s<c||f)&&(f&&e.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),e.loader.abort()),this.resetLoadingState())}r&&(this.lastCurrentTime=s),this.loadedmetadata||u.len||(this.nextLoadPosition=this.startPosition=s),this.tickImmediate()},k.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},k.onKeyLoaded=function(t,e){if(this.state===T.KEY_LOADING&&e.frag===this.fragCurrent&&this.levels){this.state=T.IDLE;var r=this.levels[e.frag.level].details;r&&this.loadFragment(e.frag,r,e.frag.start)}},k.onHandlerDestroying=function(){this.stopLoad(),t.prototype.onHandlerDestroying.call(this)},k.onHandlerDestroyed=function(){this.state=T.STOPPED,this.hls.off(u.Events.KEY_LOADED,this.onKeyLoaded,this),this.fragmentLoader&&this.fragmentLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.fragmentLoader=this.fragmentTracker=null,t.prototype.onHandlerDestroyed.call(this)},k.loadKey=function(t,e){this.log("Loading key for "+t.sn+" of ["+e.startSN+"-"+e.endSN+"], "+("[stream-controller]"===this.logPrefix?"level":"track")+" "+t.level),this.state=T.KEY_LOADING,this.fragCurrent=t,this.hls.trigger(u.Events.KEY_LOADING,{frag:t})},k.loadFragment=function(t,e,r){this._loadFragForPlayback(t,e,r)},k._loadFragForPlayback=function(t,e,r){var n=this;this._doFragLoad(t,e,r,(function(e){if(n.fragContextChanged(t))return n.warn("Fragment "+t.sn+(e.part?" p: "+e.part.index:"")+" of level "+t.level+" was dropped during download."),void n.fragmentTracker.removeFragment(t);t.stats.chunkCount++,n._handleFragmentLoadProgress(e)})).then((function(e){if(e){n.fragLoadError=0;var r=n.state;if(!n.fragContextChanged(t))return"payload"in e&&(n.log("Loaded fragment "+t.sn+" of level "+t.level),n.hls.trigger(u.Events.FRAG_LOADED,e),n.state===T.BACKTRACKING)?(n.fragmentTracker.backtrack(t,e),void n.resetFragmentLoading(t)):void n._handleFragmentLoadComplete(e);(r===T.FRAG_LOADING||r===T.BACKTRACKING||!n.fragCurrent&&r===T.PARSING)&&(n.fragmentTracker.removeFragment(t),n.state=T.IDLE)}})).catch((function(e){n.warn(e),n.resetFragmentLoading(t)}))},k.flushMainBuffer=function(t,e,r){if(void 0===r&&(r=null),t-e){var n={startOffset:t,endOffset:e,type:r};this.fragLoadError=0,this.hls.trigger(u.Events.BUFFER_FLUSHING,n)}},k._loadInitSegment=function(t){var e=this;this._doFragLoad(t).then((function(r){if(!r||e.fragContextChanged(t)||!e.levels)throw new Error("init load aborted");return r})).then((function(r){var n=e.hls,i=r.payload,a=t.decryptdata;if(i&&i.byteLength>0&&a&&a.key&&a.iv&&"AES-128"===a.method){var o=self.performance.now();return e.decrypter.webCryptoDecrypt(new Uint8Array(i),a.key.buffer,a.iv.buffer).then((function(e){var i=self.performance.now();return n.trigger(u.Events.FRAG_DECRYPTED,{frag:t,payload:e,stats:{tstart:o,tdecrypt:i}}),r.payload=e,r}))}return r})).then((function(r){var n=e.fragCurrent,i=e.hls,a=e.levels;if(!a)throw new Error("init load aborted, missing levels");var o=a[t.level].details;console.assert(o,"Level details are defined when init segment is loaded");var s=t.stats;e.state=T.IDLE,e.fragLoadError=0,t.data=new Uint8Array(r.payload),s.parsing.start=s.buffering.start=self.performance.now(),s.parsing.end=s.buffering.end=self.performance.now(),r.frag===n&&i.trigger(u.Events.FRAG_BUFFERED,{stats:s,frag:n,part:null,id:t.type}),e.tick()})).catch((function(r){e.warn(r),e.resetFragmentLoading(t)}))},k.fragContextChanged=function(t){var e=this.fragCurrent;return!t||!e||t.level!==e.level||t.sn!==e.sn||t.urlId!==e.urlId},k.fragBufferedComplete=function(t,e){var r=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+t.type+" sn: "+t.sn+(e?" part: "+e.index:"")+" of "+("[stream-controller]"===this.logPrefix?"level":"track")+" "+t.level+" "+y.default.toString(o.BufferHelper.getBuffered(r))),this.state=T.IDLE,this.tick()},k._handleFragmentLoadComplete=function(t){var e=this.transmuxer;if(e){var r=t.frag,n=t.part,i=t.partsLoaded,a=!i||0===i.length||i.some((function(t){return!t})),o=new c.ChunkMetadata(r.level,r.sn,r.stats.chunkCount+1,0,n?n.index:-1,!a);e.flush(o)}},k._handleFragmentLoadProgress=function(t){},k._doFragLoad=function(t,e,r,i){var a=this;if(void 0===r&&(r=null),!this.levels)throw new Error("frag load aborted, missing levels");if(r=Math.max(t.start,r||0),this.config.lowLatencyMode&&e){var o=e.partList;if(o&&i){r>t.end&&e.fragmentHint&&(t=e.fragmentHint);var s=this.getNextPart(o,t,r);if(s>-1){var l=o[s];return this.log("Loading part sn: "+t.sn+" p: "+l.index+" cc: "+t.cc+" of playlist ["+e.startSN+"-"+e.endSN+"] parts [0-"+s+"-"+(o.length-1)+"] "+("[stream-controller]"===this.logPrefix?"level":"track")+": "+t.level+", target: "+parseFloat(r.toFixed(3))),this.nextLoadPosition=l.start+l.duration,this.state=T.FRAG_LOADING,this.hls.trigger(u.Events.FRAG_LOADING,{frag:t,part:o[s],targetBufferTime:r}),this.doFragPartsLoad(t,o,s,i).catch((function(t){return a.handleFragLoadError(t)}))}if(!t.url||this.loadedEndOfParts(o,r))return Promise.resolve(null)}}return this.log("Loading fragment "+t.sn+" cc: "+t.cc+" "+(e?"of ["+e.startSN+"-"+e.endSN+"] ":"")+("[stream-controller]"===this.logPrefix?"level":"track")+": "+t.level+", target: "+parseFloat(r.toFixed(3))),Object(n.isFiniteNumber)(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=T.FRAG_LOADING,this.hls.trigger(u.Events.FRAG_LOADING,{frag:t,targetBufferTime:r}),this.fragmentLoader.load(t,i).catch((function(t){return a.handleFragLoadError(t)}))},k.doFragPartsLoad=function(t,e,r,n){var i=this;return new Promise((function(a,o){var s=[];!function r(l){var c=e[l];i.fragmentLoader.loadPart(t,c,n).then((function(n){s[c.index]=n;var o=n.part;i.hls.trigger(u.Events.FRAG_LOADED,n);var f=e[l+1];if(!f||f.fragment!==t)return a({frag:t,part:o,partsLoaded:s});r(l+1)})).catch(o)}(r)}))},k.handleFragLoadError=function(t){var e=t.data;return e&&e.details===l.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(e.frag,e.part):this.hls.trigger(u.Events.ERROR,e),null},k._handleTransmuxerFlush=function(t){var e=this.getCurrentContext(t);if(e&&this.state===T.PARSING){var r=e.frag,n=e.part,i=e.level,a=self.performance.now();r.stats.parsing.end=a,n&&(n.stats.parsing.end=a),this.updateLevelTiming(r,n,i,t.partial)}else this.fragCurrent||(this.state=T.IDLE)},k.getCurrentContext=function(t){var e=this.levels,r=t.level,n=t.sn,i=t.part;if(!e||!e[r])return this.warn("Levels object was unset while buffering fragment "+n+" of level "+r+". The current chunk will not be buffered."),null;var a=e[r],o=i>-1?Object(p.getPartWith)(a,n,i):null,s=o?o.fragment:Object(p.getFragmentWithSN)(a,n,this.fragCurrent);return s?{frag:s,part:o,level:a}:null},k.bufferFragmentData=function(t,e,r,n){if(t&&this.state===T.PARSING){var i=t.data1,a=t.data2,o=i;if(i&&a&&(o=Object(f.appendUint8Array)(i,a)),o&&o.length){var s={type:t.type,frag:e,part:r,chunkMeta:n,parent:e.type,data:o};this.hls.trigger(u.Events.BUFFER_APPENDING,s),t.dropped&&t.independent&&!r&&this.flushBufferGap(e)}}},k.flushBufferGap=function(t){var e=this.media;if(e)if(o.BufferHelper.isBuffered(e,e.currentTime)){var r=e.currentTime,n=o.BufferHelper.bufferInfo(e,r,0),i=t.duration,a=Math.min(2*this.config.maxFragLookUpTolerance,.25*i),s=Math.max(Math.min(t.start-a,n.end-a),r+a);t.start-s>a&&this.flushMainBuffer(s,t.start)}else this.flushMainBuffer(0,t.start)},k.getFwdBufferInfo=function(t,e){var r=this.config,i=this.getLoadPosition();if(!Object(n.isFiniteNumber)(i))return null;var a=o.BufferHelper.bufferInfo(t,i,r.maxBufferHole);if(0===a.len&&void 0!==a.nextStart){var s=this.fragmentTracker.getBufferedFrag(i,e);if(s&&a.nextStart<s.end)return o.BufferHelper.bufferInfo(t,i,Math.max(a.nextStart,r.maxBufferHole))}return a},k.getMaxBufferLength=function(t){var e,r=this.config;return e=t?Math.max(8*r.maxBufferSize/t,r.maxBufferLength):r.maxBufferLength,Math.min(e,r.maxMaxBufferLength)},k.reduceMaxBufferLength=function(t){var e=this.config,r=t||e.maxBufferLength;return e.maxMaxBufferLength>=r&&(e.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+e.maxMaxBufferLength+"s"),!0)},k.getNextFragment=function(t,e){var r,n,i=e.fragments,a=i.length;if(!a)return null;var o,s=this.config,u=i[0].start;if(e.live){var l=s.initialLiveManifestSize;if(a<l)return this.warn("Not enough fragments to start playback (have: "+a+", need: "+l+")"),null;e.PTSKnown||this.startFragRequested||-1!==this.startPosition||(o=this.getInitialLiveFragment(e,i),this.startPosition=o?this.hls.liveSyncPosition||o.start:t)}else t<=u&&(o=i[0]);if(!o){var c=s.lowLatencyMode?e.partEnd:e.fragmentEnd;o=this.getFragmentAtPosition(t,c,e)}return null===(r=o)||void 0===r||!r.initSegment||null!==(n=o)&&void 0!==n&&n.initSegment.data||this.bitrateTest||(o=o.initSegment),o},k.getNextPart=function(t,e,r){for(var n=-1,i=!1,a=!0,o=0,s=t.length;o<s;o++){var u=t[o];if(a=a&&!u.independent,n>-1&&r<u.start)break;var l=u.loaded;!l&&(i||u.independent||a)&&u.fragment===e&&(n=o),i=l}return n},k.loadedEndOfParts=function(t,e){var r=t[t.length-1];return r&&e>r.start&&r.loaded},k.getInitialLiveFragment=function(t,e){var r=this.fragPrevious,n=null;if(r){if(t.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+r.programDateTime),n=Object(h.findFragmentByPDT)(e,r.endProgramDateTime,this.config.maxFragLookUpTolerance)),!n){var i=r.sn+1;if(i>=t.startSN&&i<=t.endSN){var a=e[i-t.startSN];r.cc===a.cc&&(n=a,this.log("Live playlist, switching playlist, load frag with next SN: "+n.sn))}n||(n=Object(h.findFragWithCC)(e,r.cc))&&this.log("Live playlist, switching playlist, load frag with same CC: "+n.sn)}}else{var o=this.hls.liveSyncPosition;null!==o&&(n=this.getFragmentAtPosition(o,this.bitrateTest?t.fragmentEnd:t.edge,t))}return n},k.getFragmentAtPosition=function(t,e,r){var n,i=this.config,o=this.fragPrevious,s=r.fragments,u=r.endSN,l=r.fragmentHint,c=i.maxFragLookUpTolerance,f=!!(i.lowLatencyMode&&r.partList&&l);if(f&&l&&!this.bitrateTest&&(s=s.concat(l),u=l.sn),t<e){var d=t>e-c?0:c;n=Object(h.findFragmentByPTS)(o,s,t,d)}else n=s[s.length-1];if(n){var p=n.sn-r.startSN,v=o&&n.level===o.level,m=s[p+1];if(this.fragmentTracker.getState(n)===a.FragmentState.BACKTRACKED){n=null;for(var y=p;s[y]&&this.fragmentTracker.getState(s[y])===a.FragmentState.BACKTRACKED;)n=o?s[y--]:s[--y];n||(n=m)}else o&&n.sn===o.sn&&!f&&v&&(n.sn<u&&this.fragmentTracker.getState(m)!==a.FragmentState.OK?(this.log("SN "+n.sn+" just loaded, load next one: "+m.sn),n=m):n=null)}return n},k.synchronizeToLiveEdge=function(t){var e=this.config,r=this.media;if(r){var n=this.hls.liveSyncPosition,i=r.currentTime,a=t.fragments[0].start,o=t.edge,s=i>=a-e.maxFragLookUpTolerance&&i<=o;if(null!==n&&r.duration>n&&(i<n||!s)){var u=void 0!==e.liveMaxLatencyDuration?e.liveMaxLatencyDuration:e.liveMaxLatencyDurationCount*t.targetduration;(!s&&r.readyState<4||i<o-u)&&(this.loadedmetadata||(this.nextLoadPosition=n),r.readyState&&(this.warn("Playback: "+i.toFixed(3)+" is located too far from the end of live sliding playlist: "+o+", reset currentTime to : "+n.toFixed(3)),r.currentTime=n))}}},k.alignPlaylists=function(t,e){var r=this.levels,i=this.levelLastLoaded,a=this.fragPrevious,o=null!==i?r[i]:null,s=t.fragments.length;if(!s)return this.warn("No fragments in live playlist"),0;var u=t.fragments[0].start,l=!e,c=t.alignedSliding&&Object(n.isFiniteNumber)(u);if(l||!c&&!u){Object(d.alignStream)(a,o,t);var f=t.fragments[0].start;return this.log("Live playlist sliding: "+f.toFixed(2)+" start-sn: "+(e?e.startSN:"na")+"->"+t.startSN+" prev-sn: "+(a?a.sn:"na")+" fragments: "+s),f}return u},k.waitForCdnTuneIn=function(t){return t.live&&t.canBlockReload&&t.tuneInGoal>Math.max(t.partHoldBack,3*t.partTarget)},k.setStartPosition=function(t,e){var r=this.startPosition;if(r<e&&(r=-1),-1===r||-1===this.lastCurrentTime){var i=t.startTimeOffset;Object(n.isFiniteNumber)(i)?(r=e+i,i<0&&(r+=t.totalduration),r=Math.min(Math.max(e,r),e+t.totalduration),this.log("Start time offset "+i+" found in playlist, adjust startPosition to "+r),this.startPosition=r):t.live?r=this.hls.liveSyncPosition||e:this.startPosition=r=0,this.lastCurrentTime=r}this.nextLoadPosition=r},k.getLoadPosition=function(){var t=this.media,e=0;return this.loadedmetadata&&t?e=t.currentTime:this.nextLoadPosition&&(e=this.nextLoadPosition),e},k.handleFragLoadAborted=function(t,e){this.transmuxer&&"initSegment"!==t.sn&&t.stats.aborted&&(this.warn("Fragment "+t.sn+(e?" part"+e.index:"")+" of level "+t.level+" was aborted"),this.resetFragmentLoading(t))},k.resetFragmentLoading=function(t){this.fragCurrent&&this.fragContextChanged(t)||(this.state=T.IDLE)},k.onFragmentOrKeyLoadError=function(t,e){if(!e.fatal){var r=e.frag;if(r&&r.type===t){var n=this.fragCurrent;console.assert(n&&r.sn===n.sn&&r.level===n.level&&r.urlId===n.urlId,"Frag load error must match current frag to retry");var i=this.config;if(this.fragLoadError+1<=i.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(r.level))return;var a=Math.min(Math.pow(2,this.fragLoadError)*i.fragLoadingRetryDelay,i.fragLoadingMaxRetryTimeout);this.warn("Fragment "+r.sn+" of "+t+" "+r.level+" failed to load, retrying in "+a+"ms"),this.retryDate=self.performance.now()+a,this.fragLoadError++,this.state=T.FRAG_LOADING_WAITING_RETRY}else e.levelRetry?(t===g.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=T.IDLE):(s.logger.error(e.details+" reaches max retry, redispatch as fatal ..."),e.fatal=!0,this.hls.stopLoad(),this.state=T.ERROR)}}},k.afterBufferFlushed=function(t,e,r){if(t){var n=o.BufferHelper.getBuffered(t);this.fragmentTracker.detectEvictedFragments(e,n,r),this.state===T.ENDED&&this.resetLoadingState()}},k.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=T.IDLE},k.resetLiveStartWhenNotLoaded=function(t){if(!this.loadedmetadata){this.startFragRequested=!1;var e=this.levels?this.levels[t].details:null;if(null!==e&&void 0!==e&&e.live)return this.startPosition=-1,this.setStartPosition(e,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},k.updateLevelTiming=function(t,e,r,n){var i=this,a=r.details;console.assert(!!a,"level.details must be defined"),Object.keys(t.elementaryStreams).reduce((function(e,o){var s=t.elementaryStreams[o];if(s){var l=s.endPTS-s.startPTS;if(l<=0)return i.warn("Could not parse fragment "+t.sn+" "+o+" duration reliably ("+l+") resetting transmuxer to fallback to playlist timing"),i.resetTransmuxer(),e||!1;var c=n?0:Object(p.updateFragPTSDTS)(a,t,s.startPTS,s.endPTS,s.startDTS,s.endDTS);return i.hls.trigger(u.Events.LEVEL_PTS_UPDATED,{details:a,level:r,drift:c,type:o,frag:t,start:s.startPTS,end:s.endPTS}),!0}return e}),!1)?(this.state=T.PARSED,this.hls.trigger(u.Events.FRAG_PARSED,{frag:t,part:e})):this.resetLoadingState()},k.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},w=i,(S=[{key:"state",get:function(){return this._state},set:function(t){var e=this._state;e!==t&&(this._state=t,this.log(e+"->"+t))}}])&&b(w.prototype,S),O&&b(w,O),i}(i.default)},"./src/controller/buffer-controller.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return h}));var n=r("./src/polyfills/number.ts"),i=r("./src/events.ts"),a=r("./src/utils/logger.ts"),o=r("./src/errors.ts"),s=r("./src/utils/buffer-helper.ts"),u=r("./src/utils/mediasource-helper.ts"),l=r("./src/loader/fragment.ts"),c=r("./src/controller/buffer-operation-queue.ts"),f=Object(u.getMediaSource)(),d=/([ha]vc.)(?:\.[^.,]+)+/,h=function(){function t(t){var e=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var t=e.hls,r=e.media,n=e.mediaSource;a.logger.log("[buffer-controller]: Media source opened"),r&&(e.updateMediaElementDuration(),t.trigger(i.Events.MEDIA_ATTACHED,{media:r})),n&&n.removeEventListener("sourceopen",e._onMediaSourceOpen),e.checkPendingTracks()},this._onMediaSourceClose=function(){a.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){a.logger.log("[buffer-controller]: Media source ended")},this.hls=t,this._initSourceBuffer(),this.registerListeners()}var e=t.prototype;return e.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},e.destroy=function(){this.unregisterListeners(),this.details=null},e.registerListeners=function(){var t=this.hls;t.on(i.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(i.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(i.Events.MANIFEST_PARSED,this.onManifestParsed,this),t.on(i.Events.BUFFER_RESET,this.onBufferReset,this),t.on(i.Events.BUFFER_APPENDING,this.onBufferAppending,this),t.on(i.Events.BUFFER_CODECS,this.onBufferCodecs,this),t.on(i.Events.BUFFER_EOS,this.onBufferEos,this),t.on(i.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(i.Events.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(i.Events.FRAG_PARSED,this.onFragParsed,this),t.on(i.Events.FRAG_CHANGED,this.onFragChanged,this)},e.unregisterListeners=function(){var t=this.hls;t.off(i.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(i.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(i.Events.MANIFEST_PARSED,this.onManifestParsed,this),t.off(i.Events.BUFFER_RESET,this.onBufferReset,this),t.off(i.Events.BUFFER_APPENDING,this.onBufferAppending,this),t.off(i.Events.BUFFER_CODECS,this.onBufferCodecs,this),t.off(i.Events.BUFFER_EOS,this.onBufferEos,this),t.off(i.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(i.Events.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(i.Events.FRAG_PARSED,this.onFragParsed,this),t.off(i.Events.FRAG_CHANGED,this.onFragChanged,this)},e._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new c.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},e.onManifestParsed=function(t,e){var r=2;(e.audio&&!e.video||!e.altAudio)&&(r=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=r,this.details=null,a.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},e.onMediaAttaching=function(t,e){var r=this.media=e.media;if(r&&f){var n=this.mediaSource=new f;n.addEventListener("sourceopen",this._onMediaSourceOpen),n.addEventListener("sourceended",this._onMediaSourceEnded),n.addEventListener("sourceclose",this._onMediaSourceClose),r.src=self.URL.createObjectURL(n),this._objectUrl=r.src}},e.onMediaDetaching=function(){var t=this.media,e=this.mediaSource,r=this._objectUrl;if(e){if(a.logger.log("[buffer-controller]: media source detaching"),"open"===e.readyState)try{e.endOfStream()}catch(n){a.logger.warn("[buffer-controller]: onMediaDetaching: "+n.message+" while calling endOfStream")}this.onBufferReset(),e.removeEventListener("sourceopen",this._onMediaSourceOpen),e.removeEventListener("sourceended",this._onMediaSourceEnded),e.removeEventListener("sourceclose",this._onMediaSourceClose),t&&(r&&self.URL.revokeObjectURL(r),t.src===r?(t.removeAttribute("src"),t.load()):a.logger.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(i.Events.MEDIA_DETACHED,void 0)},e.onBufferReset=function(){var t=this;this.getSourceBufferTypes().forEach((function(e){var r=t.sourceBuffer[e];try{r&&(t.removeBufferListeners(e),t.mediaSource&&t.mediaSource.removeSourceBuffer(r),t.sourceBuffer[e]=void 0)}catch(n){a.logger.warn("[buffer-controller]: Failed to reset the "+e+" buffer",n)}})),this._initSourceBuffer()},e.onBufferCodecs=function(t,e){var r=this,n=this.getSourceBufferTypes().length;Object.keys(e).forEach((function(t){if(n){var i=r.tracks[t];if(i&&"function"===typeof i.buffer.changeType){var a=e[t],o=a.codec,s=a.levelCodec,u=a.container;if((i.levelCodec||i.codec).replace(d,"$1")!==(s||o).replace(d,"$1")){var l=u+";codecs="+(s||o);r.appendChangeType(t,l)}}}else r.pendingTracks[t]=e[t]})),n||(this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&"open"===this.mediaSource.readyState&&this.checkPendingTracks())},e.appendChangeType=function(t,e){var r=this,n=this.operationQueue,i={execute:function(){var i=r.sourceBuffer[t];i&&(a.logger.log("[buffer-controller]: changing "+t+" sourceBuffer type to "+e),i.changeType(e)),n.shiftAndExecuteNext(t)},onStart:function(){},onComplete:function(){},onError:function(e){a.logger.warn("[buffer-controller]: Failed to change "+t+" SourceBuffer type",e)}};n.append(i,t)},e.onBufferAppending=function(t,e){var r=this,n=this.hls,u=this.operationQueue,l=this.tracks,c=e.data,f=e.type,d=e.frag,h=e.part,p=e.chunkMeta,v=p.buffering[f],m=self.performance.now();v.start=m;var y=d.stats.buffering,g=h?h.stats.buffering:null;0===y.start&&(y.start=m),g&&0===g.start&&(g.start=m);var b=l.audio,E="audio"===f&&1===p.id&&"audio/mpeg"===(null===b||void 0===b?void 0:b.container),T={execute:function(){if(v.executeStart=self.performance.now(),E){var t=r.sourceBuffer[f];if(t){var e=d.start-t.timestampOffset;Math.abs(e)>=.1&&(a.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+d.start+" (delta: "+e+") sn: "+d.sn+")"),t.timestampOffset=d.start)}}r.appendExecutor(c,f)},onStart:function(){},onComplete:function(){var t=self.performance.now();v.executeEnd=v.end=t,0===y.first&&(y.first=t),g&&0===g.first&&(g.first=t);var e=r.sourceBuffer,n={};for(var a in e)n[a]=s.BufferHelper.getBuffered(e[a]);r.appendError=0,r.hls.trigger(i.Events.BUFFER_APPENDED,{type:f,frag:d,part:h,chunkMeta:p,parent:d.type,timeRanges:n})},onError:function(t){a.logger.error("[buffer-controller]: Error encountered while trying to append to the "+f+" SourceBuffer",t);var e={type:o.ErrorTypes.MEDIA_ERROR,parent:d.type,details:o.ErrorDetails.BUFFER_APPEND_ERROR,err:t,fatal:!1};t.code===DOMException.QUOTA_EXCEEDED_ERR?e.details=o.ErrorDetails.BUFFER_FULL_ERROR:(r.appendError++,e.details=o.ErrorDetails.BUFFER_APPEND_ERROR,r.appendError>n.config.appendErrorMaxRetry&&(a.logger.error("[buffer-controller]: Failed "+n.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),e.fatal=!0)),n.trigger(i.Events.ERROR,e)}};u.append(T,f)},e.onBufferFlushing=function(t,e){var r=this,n=this.operationQueue,o=function(t){return{execute:r.removeExecutor.bind(r,t,e.startOffset,e.endOffset),onStart:function(){},onComplete:function(){r.hls.trigger(i.Events.BUFFER_FLUSHED,{type:t})},onError:function(e){a.logger.warn("[buffer-controller]: Failed to remove from "+t+" SourceBuffer",e)}}};e.type?n.append(o(e.type),e.type):this.getSourceBufferTypes().forEach((function(t){n.append(o(t),t)}))},e.onFragParsed=function(t,e){var r=this,n=e.frag,o=e.part,s=[],u=o?o.elementaryStreams:n.elementaryStreams;u[l.ElementaryStreamTypes.AUDIOVIDEO]?s.push("audiovideo"):(u[l.ElementaryStreamTypes.AUDIO]&&s.push("audio"),u[l.ElementaryStreamTypes.VIDEO]&&s.push("video")),0===s.length&&a.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+n.type+" level: "+n.level+" sn: "+n.sn),this.blockBuffers((function(){var t=self.performance.now();n.stats.buffering.end=t,o&&(o.stats.buffering.end=t);var e=o?o.stats:n.stats;r.hls.trigger(i.Events.FRAG_BUFFERED,{frag:n,part:o,stats:e,id:n.type})}),s)},e.onFragChanged=function(t,e){this.flushBackBuffer()},e.onBufferEos=function(t,e){var r=this;this.getSourceBufferTypes().reduce((function(t,n){var i=r.sourceBuffer[n];return e.type&&e.type!==n||i&&!i.ended&&(i.ended=!0,a.logger.log("[buffer-controller]: "+n+" sourceBuffer now EOS")),t&&!(i&&!i.ended)}),!0)&&this.blockBuffers((function(){var t=r.mediaSource;t&&"open"===t.readyState&&t.endOfStream()}))},e.onLevelUpdated=function(t,e){var r=e.details;r.fragments.length&&(this.details=r,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())},e.flushBackBuffer=function(){var t=this.hls,e=this.details,r=this.media,a=this.sourceBuffer;if(r&&null!==e){var o=this.getSourceBufferTypes();if(o.length){var u=e.live&&null!==t.config.liveBackBufferLength?t.config.liveBackBufferLength:t.config.backBufferLength;if(Object(n.isFiniteNumber)(u)&&!(u<0)){var l=r.currentTime,c=e.levelTargetDuration,f=Math.max(u,c),d=Math.floor(l/c)*c-f;o.forEach((function(r){var n=a[r];if(n){var o=s.BufferHelper.getBuffered(n);o.length>0&&d>o.start(0)&&(t.trigger(i.Events.BACK_BUFFER_REACHED,{bufferEnd:d}),e.live&&t.trigger(i.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:d}),t.trigger(i.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:d,type:r}))}}))}}}},e.updateMediaElementDuration=function(){if(this.details&&this.media&&this.mediaSource&&"open"===this.mediaSource.readyState){var t=this.details,e=this.hls,r=this.media,i=this.mediaSource,o=t.fragments[0].start+t.totalduration,s=r.duration,u=Object(n.isFiniteNumber)(i.duration)?i.duration:0;t.live&&e.config.liveDurationInfinity?(a.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),i.duration=1/0,this.updateSeekableRange(t)):(o>u&&o>s||!Object(n.isFiniteNumber)(s))&&(a.logger.log("[buffer-controller]: Updating Media Source duration to "+o.toFixed(3)),i.duration=o)}},e.updateSeekableRange=function(t){var e=this.mediaSource,r=t.fragments;if(r.length&&t.live&&null!==e&&void 0!==e&&e.setLiveSeekableRange){var n=Math.max(0,r[0].start),i=Math.max(n,n+t.totalduration);e.setLiveSeekableRange(n,i)}},e.checkPendingTracks=function(){var t=this.bufferCodecEventsExpected,e=this.operationQueue,r=this.pendingTracks,n=Object.keys(r).length;if(n&&!t||2===n){this.createSourceBuffers(r),this.pendingTracks={};var a=this.getSourceBufferTypes();if(0===a.length)return void this.hls.trigger(i.Events.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});a.forEach((function(t){e.executeNext(t)}))}},e.createSourceBuffers=function(t){var e=this.sourceBuffer,r=this.mediaSource;if(!r)throw Error("createSourceBuffers called when mediaSource was null");var n=0;for(var s in t)if(!e[s]){var u=t[s];if(!u)throw Error("source buffer exists for track "+s+", however track does not");var l=u.levelCodec||u.codec,c=u.container+";codecs="+l;a.logger.log("[buffer-controller]: creating sourceBuffer("+c+")");try{var f=e[s]=r.addSourceBuffer(c),d=s;this.addBufferListener(d,"updatestart",this._onSBUpdateStart),this.addBufferListener(d,"updateend",this._onSBUpdateEnd),this.addBufferListener(d,"error",this._onSBUpdateError),this.tracks[s]={buffer:f,codec:l,container:u.container,levelCodec:u.levelCodec,id:u.id},n++}catch(h){a.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+h.message),this.hls.trigger(i.Events.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:h,mimeType:c})}}n&&this.hls.trigger(i.Events.BUFFER_CREATED,{tracks:this.tracks})},e._onSBUpdateStart=function(t){this.operationQueue.current(t).onStart()},e._onSBUpdateEnd=function(t){var e=this.operationQueue;e.current(t).onComplete(),e.shiftAndExecuteNext(t)},e._onSBUpdateError=function(t,e){a.logger.error("[buffer-controller]: "+t+" SourceBuffer error",e),this.hls.trigger(i.Events.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var r=this.operationQueue.current(t);r&&r.onError(e)},e.removeExecutor=function(t,e,r){var i=this.media,o=this.mediaSource,s=this.operationQueue,u=this.sourceBuffer[t];if(!i||!o||!u)return a.logger.warn("[buffer-controller]: Attempting to remove from the "+t+" SourceBuffer, but it does not exist"),void s.shiftAndExecuteNext(t);var l=Object(n.isFiniteNumber)(i.duration)?i.duration:1/0,c=Object(n.isFiniteNumber)(o.duration)?o.duration:1/0,f=Math.max(0,e),d=Math.min(r,l,c);d>f?(a.logger.log("[buffer-controller]: Removing ["+f+","+d+"] from the "+t+" SourceBuffer"),console.assert(!u.updating,t+" sourceBuffer must not be updating"),u.remove(f,d)):s.shiftAndExecuteNext(t)},e.appendExecutor=function(t,e){var r=this.operationQueue,n=this.sourceBuffer[e];if(!n)return a.logger.warn("[buffer-controller]: Attempting to append to the "+e+" SourceBuffer, but it does not exist"),void r.shiftAndExecuteNext(e);n.ended=!1,console.assert(!n.updating,e+" sourceBuffer must not be updating"),n.appendBuffer(t)},e.blockBuffers=function(t,e){var r=this;if(void 0===e&&(e=this.getSourceBufferTypes()),!e.length)return a.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),void Promise.resolve(t);var n=this.operationQueue,i=e.map((function(t){return n.appendBlocker(t)}));Promise.all(i).then((function(){t(),e.forEach((function(t){var e=r.sourceBuffer[t];e&&e.updating||n.shiftAndExecuteNext(t)}))}))},e.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},e.addBufferListener=function(t,e,r){var n=this.sourceBuffer[t];if(n){var i=r.bind(this,t);this.listeners[t].push({event:e,listener:i}),n.addEventListener(e,i)}},e.removeBufferListeners=function(t){var e=this.sourceBuffer[t];e&&this.listeners[t].forEach((function(t){e.removeEventListener(t.event,t.listener)}))},t}()},"./src/controller/buffer-operation-queue.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return i}));var n=r("./src/utils/logger.ts"),i=function(){function t(t){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=t}var e=t.prototype;return e.append=function(t,e){var r=this.queues[e];r.push(t),1===r.length&&this.buffers[e]&&this.executeNext(e)},e.insertAbort=function(t,e){this.queues[e].unshift(t),this.executeNext(e)},e.appendBlocker=function(t){var e,r=new Promise((function(t){e=t})),n={execute:e,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(n,t),r},e.executeNext=function(t){var e=this.buffers,r=this.queues,i=e[t],a=r[t];if(a.length){var o=a[0];try{o.execute()}catch(s){n.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),o.onError(s),i&&i.updating||(a.shift(),this.executeNext(t))}}},e.shiftAndExecuteNext=function(t){this.queues[t].shift(),this.executeNext(t)},e.current=function(t){return this.queues[t][0]},t}()},"./src/controller/cap-level-controller.ts":function(t,e,r){"use strict";r.r(e);var n=r("./src/events.ts");function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=function(){function t(t){this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.hls=void 0,this.streamController=void 0,this.clientRect=void 0,this.hls=t,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var e,r,a,o=t.prototype;return o.setStreamController=function(t){this.streamController=t},o.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},o.registerListeners=function(){var t=this.hls;t.on(n.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.on(n.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(n.Events.MANIFEST_PARSED,this.onManifestParsed,this),t.on(n.Events.BUFFER_CODECS,this.onBufferCodecs,this),t.on(n.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},o.unregisterListener=function(){var t=this.hls;t.off(n.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.off(n.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(n.Events.MANIFEST_PARSED,this.onManifestParsed,this),t.off(n.Events.BUFFER_CODECS,this.onBufferCodecs,this),t.off(n.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},o.onFpsDropLevelCapping=function(e,r){t.isLevelAllowed(r.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(r.droppedLevel)},o.onMediaAttaching=function(t,e){this.media=e.media instanceof HTMLVideoElement?e.media:null},o.onManifestParsed=function(t,e){var r=this.hls;this.restrictedLevels=[],this.firstLevel=e.firstLevel,r.config.capLevelToPlayerSize&&e.video&&this.startCapping()},o.onBufferCodecs=function(t,e){this.hls.config.capLevelToPlayerSize&&e.video&&this.startCapping()},o.onMediaDetaching=function(){this.stopCapping()},o.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var t=this.hls.levels;if(t.length){var e=this.hls;e.autoLevelCapping=this.getMaxLevel(t.length-1),e.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}},o.getMaxLevel=function(e){var r=this,n=this.hls.levels;if(!n.length)return-1;var i=n.filter((function(n,i){return t.isLevelAllowed(i,r.restrictedLevels)&&i<=e}));return this.clientRect=null,t.getMaxLevelByMediaSize(i,this.mediaWidth,this.mediaHeight)},o.startCapping=function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},o.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},o.getDimensions=function(){if(this.clientRect)return this.clientRect;var t=this.media,e={width:0,height:0};if(t){var r=t.getBoundingClientRect();e.width=r.width,e.height=r.height,e.width||e.height||(e.width=r.right-r.left||t.width||0,e.height=r.bottom-r.top||t.height||0)}return this.clientRect=e,e},t.isLevelAllowed=function(t,e){return void 0===e&&(e=[]),-1===e.indexOf(t)},t.getMaxLevelByMediaSize=function(t,e,r){if(!t||!t.length)return-1;for(var n,i,a=t.length-1,o=0;o<t.length;o+=1){var s=t[o];if((s.width>=e||s.height>=r)&&(n=s,!(i=t[o+1])||n.width!==i.width||n.height!==i.height)){a=o;break}}return a},e=t,a=[{key:"contentScaleFactor",get:function(){var t=1;try{t=self.devicePixelRatio}catch(e){}return t}}],(r=[{key:"mediaWidth",get:function(){return this.getDimensions().width*t.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*t.contentScaleFactor}}])&&i(e.prototype,r),a&&i(e,a),t}();e.default=a},
1"./src/controller/cmcd-controller.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return d}));var n=r("./src/events.ts"),i=r("./src/types/cmcd.ts"),a=r("./src/utils/buffer-helper.ts"),o=r("./src/utils/logger.ts");function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),t}function l(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"===typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function f(){return f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},f.apply(this,arguments)}var d=function(){function t(e){var r=this;this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){r.initialized&&(r.starved=!0),r.buffering=!0},this.onPlaying=function(){r.initialized||(r.initialized=!0),r.buffering=!1},this.applyPlaylistData=function(t){try{r.apply(t,{ot:i.CMCDObjectType.MANIFEST,su:!r.initialized})}catch(e){o.logger.warn("Could not generate manifest CMCD data.",e)}},this.applyFragmentData=function(t){try{var e=t.frag,n=r.hls.levels[e.level],a=r.getObjectType(e),s={d:1e3*e.duration,ot:a};a!==i.CMCDObjectType.VIDEO&&a!==i.CMCDObjectType.AUDIO&&a!=i.CMCDObjectType.MUXED||(s.br=n.bitrate/1e3,s.tb=r.getTopBandwidth(a)/1e3,s.bl=r.getBufferLength(a)),r.apply(t,s)}catch(u){o.logger.warn("Could not generate segment CMCD data.",u)}},this.hls=e;var n=this.config=e.config,a=n.cmcd;null!=a&&(n.pLoader=this.createPlaylistLoader(),n.fLoader=this.createFragmentLoader(),this.sid=a.sessionId||t.uuid(),this.cid=a.contentId,this.useHeaders=!0===a.useHeaders,this.registerListeners())}var e=t.prototype;return e.registerListeners=function(){var t=this.hls;t.on(n.Events.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(n.Events.MEDIA_DETACHED,this.onMediaDetached,this),t.on(n.Events.BUFFER_CREATED,this.onBufferCreated,this)},e.unregisterListeners=function(){var t=this.hls;t.off(n.Events.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(n.Events.MEDIA_DETACHED,this.onMediaDetached,this),t.off(n.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},e.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},e.onMediaAttached=function(t,e){this.media=e.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},e.onMediaDetached=function(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)},e.onBufferCreated=function(t,e){var r,n;this.audioBuffer=null===(r=e.tracks.audio)||void 0===r?void 0:r.buffer,this.videoBuffer=null===(n=e.tracks.video)||void 0===n?void 0:n.buffer},e.createData=function(){var t;return{v:i.CMCDVersion,sf:i.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:null===(t=this.media)||void 0===t?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},e.apply=function(e,r){void 0===r&&(r={}),f(r,this.createData());var n=r.ot===i.CMCDObjectType.INIT||r.ot===i.CMCDObjectType.VIDEO||r.ot===i.CMCDObjectType.MUXED;if(this.starved&&n&&(r.bs=!0,r.su=!0,this.starved=!1),null==r.su&&(r.su=this.buffering),this.useHeaders){var a=t.toHeaders(r);if(!Object.keys(a).length)return;e.headers||(e.headers={}),f(e.headers,a)}else{var o=t.toQuery(r);if(!o)return;e.url=t.appendQueryToUri(e.url,o)}},e.getObjectType=function(t){var e=t.type;return"subtitle"===e?i.CMCDObjectType.TIMED_TEXT:"initSegment"===t.sn?i.CMCDObjectType.INIT:"audio"===e?i.CMCDObjectType.AUDIO:"main"===e?this.hls.audioTracks.length?i.CMCDObjectType.VIDEO:i.CMCDObjectType.MUXED:void 0},e.getTopBandwidth=function(t){var e,r=0,n=this.hls;if(t===i.CMCDObjectType.AUDIO)e=n.audioTracks;else{var a=n.maxAutoLevel,o=a>-1?a+1:n.levels.length;e=n.levels.slice(0,o)}for(var s,u=l(e);!(s=u()).done;){var c=s.value;c.bitrate>r&&(r=c.bitrate)}return r>0?r:NaN},e.getBufferLength=function(t){var e=this.hls.media,r=t===i.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;return r&&e?1e3*a.BufferHelper.bufferInfo(r,e.currentTime,this.config.maxBufferHole).len:NaN},e.createPlaylistLoader=function(){var t=this.config.pLoader,e=this.applyPlaylistData,r=t||this.config.loader;return function(){function t(t){this.loader=void 0,this.loader=new r(t)}var n=t.prototype;return n.destroy=function(){this.loader.destroy()},n.abort=function(){this.loader.abort()}
vendor: 1,859 bytes, line 1
1,n.load=function(t,r,n){e(t),this.loader.load(t,r,n)},u(t,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),t}()},e.createFragmentLoader=function(){var t=this.config.fLoader,e=this.applyFragmentData,r=t||this.config.loader;return function(){function t(t){this.loader=void 0,this.loader=new r(t)}var n=t.prototype;return n.destroy=function(){this.loader.destroy()},n.abort=function(){this.loader.abort()},n.load=function(t,r,n){e(t),this.loader.load(t,r,n)},u(t,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),t}()},t.uuid=function(){var t=URL.createObjectURL(new Blob),e=t.toString();return URL.revokeObjectURL(t),e.substr(e.lastIndexOf("/")+1)},t.serialize=function(t){for(var e,r=[],n=function(t){return!Number.isNaN(t)&&null!=t&&""!==t&&!1!==t},i=function(t){return Math.round(t)},a=function(t){return 100*i(t/100)},o={br:i,d:i,bl:a,dl:a,mtp:a,nor:function(t){return encodeURIComponent(t)},rtp:a,tb:i},s=l(Object.keys(t||{}).sort());!(e=s()).done;){var u=e.value,c=t[u];if(n(c)&&("v"!==u||1!==c)&&("pr"!=u||1!==c)){var f=o[u];f&&(c=f(c));var d=typeof c,h=void 0;h="ot"===u||"sf"===u||"st"===u?u+"="+c:"boolean"===d?u:"number"===d?u+"="+c:u+"="+JSON.stringify(c),r.push(h)}}return r.join(",")},t.toHeaders=function(e){for(var r={},n=["Object","Request","Session","Status"],i=[{},{},{},{}],a={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},o=0,s=Object.keys(e);o<s.length;o++){var u=s[o];i[null!=a[u]?a[u]:1][u]=e[u]}for(var l=0;l<i.length;l++){var c=t.serialize(i[l]);c&&(r["CMCD-"+n[l]]=c)}return r},t.toQuery=function(e){return"CMCD="+encodeURIComponent(t.serialize(e))},t.appendQueryToUri=function(t,e){if(!e)return t;var r=t.includes("?")?"&":"?";return""+t+r+e},t}()},
vendor: 40,381 bytes, line 1
1"./src/controller/eme-controller.ts":function(t,e,r){"use strict";r.r(e);var n=r("./src/events.ts"),i=r("./src/errors.ts"),a=r("./src/utils/logger.ts"),o=r("./src/utils/mediakeys-helper.ts");function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var u=function(){function t(t){this.hls=void 0,this._widevineLicenseUrl=void 0,this._licenseXhrSetup=void 0,this._licenseResponseCallback=void 0,this._emeEnabled=void 0,this._requestMediaKeySystemAccess=void 0,this._drmSystemOptions=void 0,this._config=void 0,this._mediaKeysList=[],this._media=null,this._hasSetMediaKeys=!1,this._requestLicenseFailureCount=0,this.mediaKeysPromise=null,this._onMediaEncrypted=this.onMediaEncrypted.bind(this),this.hls=t,this._config=t.config,this._widevineLicenseUrl=this._config.widevineLicenseUrl,this._licenseXhrSetup=this._config.licenseXhrSetup,this._licenseResponseCallback=this._config.licenseResponseCallback,this._emeEnabled=this._config.emeEnabled,this._requestMediaKeySystemAccess=this._config.requestMediaKeySystemAccessFunc,this._drmSystemOptions=this._config.drmSystemOptions,this._registerListeners()}var e,r,u,l=t.prototype;return l.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},l._registerListeners=function(){this.hls.on(n.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(n.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(n.Events.MANIFEST_PARSED,this.onManifestParsed,this)},l._unregisterListeners=function(){this.hls.off(n.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(n.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(n.Events.MANIFEST_PARSED,this.onManifestParsed,this)},l.getLicenseServerUrl=function(t){switch(t){case o.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+t+'"')},l._attemptKeySystemAccess=function(t,e,r){var n=this,i=function(t,e,r,n){if(t===o.KeySystems.WIDEVINE)return function(t,e,r){var n={audioCapabilities:[],videoCapabilities:[]};return t.forEach((function(t){n.audioCapabilities.push({contentType:'audio/mp4; codecs="'+t+'"',robustness:r.audioRobustness||""})})),e.forEach((function(t){n.videoCapabilities.push({contentType:'video/mp4; codecs="'+t+'"',robustness:r.videoRobustness||""})})),[n]}(e,r,n);throw new Error("Unknown key-system: "+t)}(t,e,r,this._drmSystemOptions);a.logger.log("Requesting encrypted media key-system access");var s=this.requestMediaKeySystemAccess(t,i);this.mediaKeysPromise=s.then((function(e){return n._onMediaKeySystemAccessObtained(t,e)})),s.catch((function(e){a.logger.error('Failed to obtain key-system "'+t+'" access:',e)}))},l._onMediaKeySystemAccessObtained=function(t,e){var r=this;a.logger.log('Access for key-system "'+t+'" obtained');var n={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:e,mediaKeySystemDomain:t};this._mediaKeysList.push(n);var i=Promise.resolve().then((function(){return e.createMediaKeys()})).then((function(e){return n.mediaKeys=e,a.logger.log('Media-keys created for key-system "'+t+'"'),r._onMediaKeysCreated(),e}));return i.catch((function(t){a.logger.error("Failed to create media-keys:",t)})),i},l._onMediaKeysCreated=function(){var t=this;this._mediaKeysList.forEach((function(e){e.mediaKeysSession||(e.mediaKeysSession=e.mediaKeys.createSession(),t._onNewMediaKeySession(e.mediaKeysSession))}))},l._onNewMediaKeySession=function(t){var e=this;a.logger.log("New key-system session "+t.sessionId),t.addEventListener("message",(function(r){e._onKeySessionMessage(t,r.message)}),!1)},l._onKeySessionMessage=function(t,e){a.logger.log("Got EME message event, creating license request"),this._requestLicense(e,(function(e){a.logger.log("Received license data (length: "+(e?e.byteLength:e)+"), updating key-session"),t.update(e)}))},l.onMediaEncrypted=function(t){var e=this;if(a.logger.log('Media is encrypted using "'+t.initDataType+'" init data type'),!this.mediaKeysPromise)return a.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),void this.hls.trigger(n.Events.ERROR,{type:i.ErrorTypes.KEY_SYSTEM_ERROR,details:i.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});var r=function(r){e._media&&(e._attemptSetMediaKeys(r),e._generateRequestWithPreferredKeySession(t.initDataType,t.initData))};this.mediaKeysPromise.then(r).catch(r)},l._attemptSetMediaKeys=function(t){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var e=this._mediaKeysList[0];if(!e||!e.mediaKeys)return a.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),void this.hls.trigger(n.Events.ERROR,{type:i.ErrorTypes.KEY_SYSTEM_ERROR,details:i.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});a.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(e.mediaKeys),this._hasSetMediaKeys=!0}},l._generateRequestWithPreferredKeySession=function(t,e){var r=this,o=this._mediaKeysList[0];if(!o)return a.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),void this.hls.trigger(n.Events.ERROR,{type:i.ErrorTypes.KEY_SYSTEM_ERROR,details:i.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});if(o.mediaKeysSessionInitialized)a.logger.warn("Key-Session already initialized but requested again");else{var s=o.mediaKeysSession;if(!s)return a.logger.error("Fatal: Media is encrypted but no key-session existing"),void this.hls.trigger(n.Events.ERROR,{type:i.ErrorTypes.KEY_SYSTEM_ERROR,details:i.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});if(!e)return a.logger.warn("Fatal: initData required for generating a key session is null"),void this.hls.trigger(n.Events.ERROR,{type:i.ErrorTypes.KEY_SYSTEM_ERROR,details:i.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});a.logger.log('Generating key-session request for "'+t+'" init data type'),o.mediaKeysSessionInitialized=!0,s.generateRequest(t,e).then((function(){a.logger.debug("Key-session generation succeeded")})).catch((function(t){a.logger.error("Error generating key-session request:",t),r.hls.trigger(n.Events.ERROR,{type:i.ErrorTypes.KEY_SYSTEM_ERROR,details:i.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})}))}},l._createLicenseXhr=function(t,e,r){var n=new XMLHttpRequest;n.responseType="arraybuffer",n.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,n,t,e,r);var i=this._licenseXhrSetup;if(i)try{i.call(this.hls,n,t),i=void 0}catch(o){a.logger.error(o)}try{n.readyState||n.open("POST",t,!0),i&&i.call(this.hls,n,t)}catch(o){throw new Error("issue setting up KeySystem license XHR "+o)}return n},l._onLicenseRequestReadyStageChange=function(t,e,r,o){if(4===t.readyState)if(200===t.status){this._requestLicenseFailureCount=0,a.logger.log("License request succeeded");var s=t.response,u=this._licenseResponseCallback;if(u)try{s=u.call(this.hls,t,e)}catch(c){a.logger.error(c)}o(s)}else{if(a.logger.error("License Request XHR failed ("+e+"). Status: "+t.status+" ("+t.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>3)return void this.hls.trigger(n.Events.ERROR,{type:i.ErrorTypes.KEY_SYSTEM_ERROR,details:i.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});var l=3-this._requestLicenseFailureCount+1;a.logger.warn("Retrying license request, "+l+" attempts left"),this._requestLicense(r,o)}},l._generateLicenseRequestChallenge=function(t,e){if(t.mediaKeySystemDomain===o.KeySystems.WIDEVINE)return e;throw new Error("unsupported key-system: "+t.mediaKeySystemDomain)},l._requestLicense=function(t,e){a.logger.log("Requesting content license for key-system");var r=this._mediaKeysList[0];if(!r)return a.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),void this.hls.trigger(n.Events.ERROR,{type:i.ErrorTypes.KEY_SYSTEM_ERROR,details:i.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});try{var o=this.getLicenseServerUrl(r.mediaKeySystemDomain),s=this._createLicenseXhr(o,t,e);a.logger.log("Sending license request to URL: "+o);var u=this._generateLicenseRequestChallenge(r,t);s.send(u)}catch(l){a.logger.error("Failure requesting DRM license: "+l),this.hls.trigger(n.Events.ERROR,{type:i.ErrorTypes.KEY_SYSTEM_ERROR,details:i.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},l.onMediaAttached=function(t,e){if(this._emeEnabled){var r=e.media;this._media=r,r.addEventListener("encrypted",this._onMediaEncrypted)}},l.onMediaDetached=function(){var t=this._media,e=this._mediaKeysList;t&&(t.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(e.map((function(t){if(t.mediaKeysSession)return t.mediaKeysSession.close().catch((function(){}))}))).then((function(){return t.setMediaKeys(null)})).catch((function(){})))},l.onManifestParsed=function(t,e){if(this._emeEnabled){var r=e.levels.map((function(t){return t.audioCodec})).filter((function(t){return!!t})),n=e.levels.map((function(t){return t.videoCodec})).filter((function(t){return!!t}));this._attemptKeySystemAccess(o.KeySystems.WIDEVINE,r,n)}},e=t,(r=[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}])&&s(e.prototype,r),u&&s(e,u),t}();e.default=u},"./src/controller/fps-controller.ts":function(t,e,r){"use strict";r.r(e);var n=r("./src/events.ts"),i=r("./src/utils/logger.ts"),a=function(){function t(t){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=t,this.registerListeners()}var e=t.prototype;return e.setStreamController=function(t){this.streamController=t},e.registerListeners=function(){this.hls.on(n.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},e.unregisterListeners=function(){this.hls.off(n.Events.MEDIA_ATTACHING,this.onMediaAttaching)},e.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},e.onMediaAttaching=function(t,e){var r=this.hls.config;if(r.capLevelOnFPSDrop){var n=e.media instanceof self.HTMLVideoElement?e.media:null;this.media=n,n&&"function"===typeof n.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}},e.checkFPS=function(t,e,r){var a=performance.now();if(e){if(this.lastTime){var o=a-this.lastTime,s=r-this.lastDroppedFrames,u=e-this.lastDecodedFrames,l=1e3*s/o,c=this.hls;if(c.trigger(n.Events.FPS_DROP,{currentDropped:s,currentDecoded:u,totalDroppedFrames:r}),l>0&&s>c.config.fpsDroppedMonitoringThreshold*u){var f=c.currentLevel;i.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+f),f>0&&(-1===c.autoLevelCapping||c.autoLevelCapping>=f)&&(f-=1,c.trigger(n.Events.FPS_DROP_LEVEL_CAPPING,{level:f,droppedLevel:c.currentLevel}),c.autoLevelCapping=f,this.streamController.nextLevelSwitch())}}this.lastTime=a,this.lastDroppedFrames=r,this.lastDecodedFrames=e}},e.checkFPSInterval=function(){var t=this.media;if(t)if(this.isVideoPlaybackQualityAvailable){var e=t.getVideoPlaybackQuality();this.checkFPS(t,e.totalVideoFrames,e.droppedVideoFrames)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)},t}();e.default=a},"./src/controller/fragment-finders.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"findFragmentByPDT",(function(){return a})),r.d(e,"findFragmentByPTS",(function(){return o})),r.d(e,"fragmentWithinToleranceTest",(function(){return s})),r.d(e,"pdtWithinToleranceTest",(function(){return u})),r.d(e,"findFragWithCC",(function(){return l}));var n=r("./src/polyfills/number.ts"),i=r("./src/utils/binary-search.ts");function a(t,e,r){if(null===e||!Array.isArray(t)||!t.length||!Object(n.isFiniteNumber)(e))return null;if(e<(t[0].programDateTime||0))return null;if(e>=(t[t.length-1].endProgramDateTime||0))return null;r=r||0;for(var i=0;i<t.length;++i){var a=t[i];if(u(e,r,a))return a}return null}function o(t,e,r,n){void 0===r&&(r=0),void 0===n&&(n=0);var a=null;if(t?a=e[t.sn-e[0].sn+1]||null:0===r&&0===e[0].start&&(a=e[0]),a&&0===s(r,n,a))return a;var o=i.default.search(e,s.bind(null,r,n));return o||a}function s(t,e,r){void 0===t&&(t=0),void 0===e&&(e=0);var n=Math.min(e,r.duration+(r.deltaPTS?r.deltaPTS:0));return r.start+r.duration-n<=t?1:r.start-n>t&&r.start?-1:0}function u(t,e,r){var n=1e3*Math.min(e,r.duration+(r.deltaPTS?r.deltaPTS:0));return(r.endProgramDateTime||0)-n>t}function l(t,e){return i.default.search(t,(function(t){return t.cc<e?1:t.cc>e?-1:0}))}},"./src/controller/fragment-tracker.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"FragmentState",(function(){return n})),r.d(e,"FragmentTracker",(function(){return o}));var n,i=r("./src/events.ts"),a=r("./src/types/loader.ts");!function(t){t.NOT_LOADED="NOT_LOADED",t.BACKTRACKED="BACKTRACKED",t.APPENDING="APPENDING",t.PARTIAL="PARTIAL",t.OK="OK"}(n||(n={}));var o=function(){function t(t){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=t,this._registerListeners()}var e=t.prototype;return e._registerListeners=function(){var t=this.hls;t.on(i.Events.BUFFER_APPENDED,this.onBufferAppended,this),t.on(i.Events.FRAG_BUFFERED,this.onFragBuffered,this),t.on(i.Events.FRAG_LOADED,this.onFragLoaded,this)},e._unregisterListeners=function(){var t=this.hls;t.off(i.Events.BUFFER_APPENDED,this.onBufferAppended,this),t.off(i.Events.FRAG_BUFFERED,this.onFragBuffered,this),t.off(i.Events.FRAG_LOADED,this.onFragLoaded,this)},e.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},e.getAppendedFrag=function(t,e){if(e===a.PlaylistLevelType.MAIN){var r=this.activeFragment,n=this.activeParts;if(!r)return null;if(n)for(var i=n.length;i--;){var o=n[i],s=o?o.end:r.appendedPTS;if(o.start<=t&&void 0!==s&&t<=s)return i>9&&(this.activeParts=n.slice(i-9)),o}else if(r.start<=t&&void 0!==r.appendedPTS&&t<=r.appendedPTS)return r}return this.getBufferedFrag(t,e)},e.getBufferedFrag=function(t,e){for(var r=this.fragments,n=Object.keys(r),i=n.length;i--;){var a=r[n[i]];if((null===a||void 0===a?void 0:a.body.type)===e&&a.buffered){var o=a.body;if(o.start<=t&&t<=o.end)return o}}return null},e.detectEvictedFragments=function(t,e,r){var n=this;Object.keys(this.fragments).forEach((function(i){var a=n.fragments[i];if(a)if(a.buffered){var o=a.range[t];o&&o.time.some((function(t){var r=!n.isTimeBuffered(t.startPTS,t.endPTS,e);return r&&n.removeFragment(a.body),r}))}else a.body.type===r&&n.removeFragment(a.body)}))},e.detectPartialFragments=function(t){var e=this,r=this.timeRanges,n=t.frag,i=t.part;if(r&&"initSegment"!==n.sn){var a=u(n),o=this.fragments[a];o&&(Object.keys(r).forEach((function(t){var a=n.elementaryStreams[t];if(a){var s=r[t],u=null!==i||!0===a.partial;o.range[t]=e.getBufferedTimes(n,i,u,s)}})),o.backtrack=o.loaded=null,Object.keys(o.range).length?o.buffered=!0:this.removeFragment(o.body))}},e.fragBuffered=function(t){var e=u(t),r=this.fragments[e];r&&(r.backtrack=r.loaded=null,r.buffered=!0)},e.getBufferedTimes=function(t,e,r,n){for(var i={time:[],partial:r},a=e?e.start:t.start,o=e?e.end:t.end,s=t.minEndPTS||o,u=t.maxStartPTS||a,l=0;l<n.length;l++){var c=n.start(l)-this.bufferPadding,f=n.end(l)+this.bufferPadding;if(u>=c&&s<=f){i.time.push({startPTS:Math.max(a,n.start(l)),endPTS:Math.min(o,n.end(l))});break}if(a<f&&o>c)i.partial=!0,i.time.push({startPTS:Math.max(a,n.start(l)),endPTS:Math.min(o,n.end(l))});else if(o<=c)break}return i},e.getPartialFragment=function(t){var e,r,n,i=null,a=0,o=this.bufferPadding,u=this.fragments;return Object.keys(u).forEach((function(l){var c=u[l];c&&s(c)&&(r=c.body.start-o,n=c.body.end+o,t>=r&&t<=n&&(e=Math.min(t-r,n-t),a<=e&&(i=c.body,a=e)))})),i},e.getState=function(t){var e=u(t),r=this.fragments[e];return r?r.buffered?s(r)?n.PARTIAL:n.OK:r.backtrack?n.BACKTRACKED:n.APPENDING:n.NOT_LOADED},e.backtrack=function(t,e){var r=u(t),n=this.fragments[r];if(!n||n.backtrack)return null;var i=n.backtrack=e||n.loaded;return n.loaded=null,i},e.getBacktrackData=function(t){var e=u(t),r=this.fragments[e];if(r){var n,i=r.backtrack;if(null!==i&&void 0!==i&&null!==(n=i.payload)&&void 0!==n&&n.byteLength)return i;this.removeFragment(t)}return null},e.isTimeBuffered=function(t,e,r){for(var n,i,a=0;a<r.length;a++){if(n=r.start(a)-this.bufferPadding,i=r.end(a)+this.bufferPadding,t>=n&&e<=i)return!0;if(e<=n)return!1}return!1},e.onFragLoaded=function(t,e){var r=e.frag,n=e.part;if("initSegment"!==r.sn&&!r.bitrateTest&&!n){var i=u(r);this.fragments[i]={body:r,loaded:e,backtrack:null,buffered:!1,range:Object.create(null)}}},e.onBufferAppended=function(t,e){var r=this,n=e.frag,i=e.part,o=e.timeRanges;if(n.type===a.PlaylistLevelType.MAIN)if(this.activeFragment=n,i){var s=this.activeParts;s||(this.activeParts=s=[]),s.push(i)}else this.activeParts=null;this.timeRanges=o,Object.keys(o).forEach((function(t){var e=o[t];if(r.detectEvictedFragments(t,e),!i)for(var a=0;a<e.length;a++)n.appendedPTS=Math.max(e.end(a),n.appendedPTS||0)}))},e.onFragBuffered=function(t,e){this.detectPartialFragments(e)},e.hasFragment=function(t){var e=u(t);return!!this.fragments[e]},e.removeFragmentsInRange=function(t,e,r){var n=this;Object.keys(this.fragments).forEach((function(i){var a=n.fragments[i];if(a&&a.buffered){var o=a.body;o.type===r&&o.start<e&&o.end>t&&n.removeFragment(o)}}))},e.removeFragment=function(t){var e=u(t);t.stats.loaded=0,t.clearElementaryStreamInfo(),delete this.fragments[e]},e.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},t}();function s(t){var e,r;return t.buffered&&((null===(e=t.range.video)||void 0===e?void 0:e.partial)||(null===(r=t.range.audio)||void 0===r?void 0:r.partial))}function u(t){return t.type+"_"+t.level+"_"+t.urlId+"_"+t.sn}},"./src/controller/gap-controller.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"STALL_MINIMUM_DURATION_MS",(function(){return s})),r.d(e,"MAX_START_GAP_JUMP",(function(){return u})),r.d(e,"SKIP_BUFFER_HOLE_STEP_SECONDS",(function(){return l})),r.d(e,"SKIP_BUFFER_RANGE_START",(function(){return c})),r.d(e,"default",(function(){return f}));var n=r("./src/utils/buffer-helper.ts"),i=r("./src/errors.ts"),a=r("./src/events.ts"),o=r("./src/utils/logger.ts"),s=250,u=2,l=.1,c=.05,f=function(){function t(t,e,r,n){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=t,this.media=e,this.fragmentTracker=r,this.hls=n}var e=t.prototype;return e.destroy=function(){this.hls=this.fragmentTracker=this.media=null},e.poll=function(t){var e=this.config,r=this.media,i=this.stalled,a=r.currentTime,l=r.seeking,c=this.seeking&&!l,f=!this.seeking&&l;if(this.seeking=l,a===t){if((f||c)&&(this.stalled=null),!r.paused&&!r.ended&&0!==r.playbackRate&&n.BufferHelper.getBuffered(r).length){var d=n.BufferHelper.bufferInfo(r,a,0),h=d.len>0,p=d.nextStart||0;if(h||p){if(l){var v=d.len>u,m=!p||p-a>u&&!this.fragmentTracker.getPartialFragment(a);if(v||m)return;this.moved=!1}if(!this.moved&&null!==this.stalled){var y,g=Math.max(p,d.start||0)-a,b=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,E=(null===b||void 0===b||null===(y=b.details)||void 0===y?void 0:y.live)?2*b.details.targetduration:u;if(g>0&&g<=E)return void this._trySkipBufferHole(null)}var T=self.performance.now();if(null!==i){var w=T-i;!l&&w>=s&&this._reportStall(d.len);var S=n.BufferHelper.bufferInfo(r,a,e.maxBufferHole);this._tryFixBufferStall(S,w)}else this.stalled=T}}}else if(this.moved=!0,null!==i){if(this.stallReported){var O=self.performance.now()-i;o.logger.warn("playback not stuck anymore @"+a+", after "+Math.round(O)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}},e._tryFixBufferStall=function(t,e){var r=this.config,n=this.fragmentTracker,i=this.media.currentTime,a=n.getPartialFragment(i);a&&this._trySkipBufferHole(a)||t.len>r.maxBufferHole&&e>1e3*r.highBufferWatchdogPeriod&&(o.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},e._reportStall=function(t){var e=this.hls,r=this.media;this.stallReported||(this.stallReported=!0,o.logger.warn("Playback stalling at @"+r.currentTime+" due to low buffer (buffer="+t+")"),e.trigger(a.Events.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:t}))},e._trySkipBufferHole=function(t){for(var e=this.config,r=this.hls,s=this.media,u=s.currentTime,f=0,d=n.BufferHelper.getBuffered(s),h=0;h<d.length;h++){var p=d.start(h);if(u+e.maxBufferHole>=f&&u<p){var v=Math.max(p+c,s.currentTime+l);return o.logger.warn("skipping hole, adjusting currentTime from "+u+" to "+v),this.moved=!0,this.stalled=null,s.currentTime=v,t&&r.trigger(a.Events.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+u+" to "+v,frag:t}),v}f=d.end(h)}return 0},e._tryNudgeBuffer=function(){var t=this.config,e=this.hls,r=this.media,n=r.currentTime,s=(this.nudgeRetry||0)+1;if(this.nudgeRetry=s,s<t.nudgeMaxRetry){var u=n+s*t.nudgeOffset;o.logger.warn("Nudging 'currentTime' from "+n+" to "+u),r.currentTime=u,e.trigger(a.Events.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else o.logger.error("Playhead still not moving while enough data buffered @"+n+" after "+t.nudgeMaxRetry+" nudges"),e.trigger(a.Events.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},t}()},"./src/controller/id3-track-controller.ts":function(t,e,r){"use strict";r.r(e);var n=r("./src/events.ts"),i=r("./src/utils/texttrack-utils.ts"),a=r("./src/demux/id3.ts"),o=function(){function t(t){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=t,this._registerListeners()}var e=t.prototype;return e.destroy=function(){this._unregisterListeners()},e._registerListeners=function(){var t=this.hls;t.on(n.Events.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(n.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(n.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(n.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},e._unregisterListeners=function(){var t=this.hls;t.off(n.Events.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(n.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(n.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(n.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},e.onMediaAttached=function(t,e){this.media=e.media},e.onMediaDetaching=function(){this.id3Track&&(Object(i.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null)},e.getID3Track=function(t){if(this.media){for(var e=0;e<t.length;e++){var r=t[e];if("metadata"===r.kind&&"id3"===r.label)return Object(i.sendAddTrackEvent)(r,this.media),r}return this.media.addTextTrack("metadata","id3")}},e.onFragParsingMetadata=function(t,e){if(this.media){var r=e.frag,n=e.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var i=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,o=0;o<n.length;o++){var s=a.getID3Frames(n[o].data);if(s){var u=n[o].pts,l=o<n.length-1?n[o+1].pts:r.end;l-u<=0&&(l=u+.25);for(var c=0;c<s.length;c++){var f=s[c];if(!a.isTimeStampFrame(f)){var d=new i(u,l,"");d.value=f,this.id3Track.addCue(d)}}}}}},e.onBufferFlushing=function(t,e){var r=e.startOffset,n=e.endOffset,a=e.type;if(!a||"audio"===a){var o=this.id3Track;o&&Object(i.removeCuesInRange)(o,r,n)}},t}();e.default=o},"./src/controller/latency-controller.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return s}));var n=r("./src/errors.ts"),i=r("./src/events.ts"),a=r("./src/utils/logger.ts");function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var s=function(){function t(t){var e=this;this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return e.timeupdate()},this.hls=t,this.config=t.config,this.registerListeners()}var e,r,s,u=t.prototype;return u.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},u.registerListeners=function(){this.hls.on(i.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(i.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(i.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(i.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(i.Events.ERROR,this.onError,this)},u.unregisterListeners=function(){this.hls.off(i.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(i.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(i.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(i.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(i.Events.ERROR,this.onError)},u.onMediaAttached=function(t,e){this.media=e.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},u.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},u.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},u.onLevelUpdated=function(t,e){var r=e.details;this.levelDetails=r,r.advanced&&this.timeupdate(),!r.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},u.onError=function(t,e){e.details===n.ErrorDetails.BUFFER_STALLED_ERROR&&(this.stallCount++,a.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))},u.timeupdate=function(){var t=this.media,e=this.levelDetails;if(t&&e){this.currentTime=t.currentTime;var r=this.computeLatency();if(null!==r){this._latency=r;var n=this.config,i=n.lowLatencyMode,a=n.maxLiveSyncPlaybackRate;if(i&&1!==a){var o=this.targetLatency;if(null!==o){var s=r-o,u=s<Math.min(this.maxLatency,o+e.targetduration);if(e.live&&u&&s>.05&&this.forwardBufferLength>1){var l=Math.min(2,Math.max(1,a)),c=Math.round(2/(1+Math.exp(-.75*s-this.edgeStalled))*20)/20;t.playbackRate=Math.min(l,Math.max(1,c))}else 1!==t.playbackRate&&0!==t.playbackRate&&(t.playbackRate=1)}}}}},u.estimateLiveEdge=function(){var t=this.levelDetails;return null===t?null:t.edge+t.age},u.computeLatency=function(){var t=this.estimateLiveEdge();return null===t?null:t-this.currentTime},e=t,(r=[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var t=this.config,e=this.levelDetails;return void 0!==t.liveMaxLatencyDuration?t.liveMaxLatencyDuration:e?t.liveMaxLatencyDurationCount*e.targetduration:0}},{key:"targetLatency",get:function(){var t=this.levelDetails;if(null===t)return null;var e=t.holdBack,r=t.partHoldBack,n=t.targetduration,i=this.config,a=i.liveSyncDuration,o=i.liveSyncDurationCount,s=i.lowLatencyMode,u=this.hls.userConfig,l=s&&r||e;(u.liveSyncDuration||u.liveSyncDurationCount||0===l)&&(l=void 0!==a?a:o*n);var c=n;return l+Math.min(1*this.stallCount,c)}},{key:"liveSyncPosition",get:function(){var t=this.estimateLiveEdge(),e=this.targetLatency,r=this.levelDetails;if(null===t||null===e||null===r)return null;var n=r.edge,i=t-e-this.edgeStalled,a=n-r.totalduration,o=n-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(a,i),o)}},{key:"drift",get:function(){var t=this.levelDetails;return null===t?1:t.drift}},{key:"edgeStalled",get:function(){var t=this.levelDetails;if(null===t)return 0;var e=3*(this.config.lowLatencyMode&&t.partTarget||t.targetduration);return Math.max(t.age-e,0)}},{key:"forwardBufferLength",get:function(){var t=this.media,e=this.levelDetails;if(!t||!e)return 0;var r=t.buffered.length;return r?t.buffered.end(r-1):e.edge-this.currentTime}}])&&o(e.prototype,r),s&&o(e,s),t}()},"./src/controller/level-controller.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return p}));var n=r("./src/types/level.ts"),i=r("./src/events.ts"),a=r("./src/errors.ts"),o=r("./src/utils/codecs.ts"),s=r("./src/controller/level-helper.ts"),u=r("./src/controller/base-playlist-controller.ts"),l=r("./src/types/loader.ts");function c(){return c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},c.apply(this,arguments)}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function d(t,e){return d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},d(t,e)}var h=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),p=function(t){var e,r;function u(e){var r;return(r=t.call(this,e,"[level-controller]")||this)._levels=[],r._firstLevel=-1,r._startLevel=void 0,r.currentLevelIndex=-1,r.manualLevelIndex=-1,r.onParsedComplete=void 0,r._registerListeners(),r}r=t,(e=u).prototype=Object.create(r.prototype),e.prototype.constructor=e,d(e,r);var p,v,m,y=u.prototype;return y._registerListeners=function(){var t=this.hls;t.on(i.Events.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(i.Events.LEVEL_LOADED,this.onLevelLoaded,this),t.on(i.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(i.Events.FRAG_LOADED,this.onFragLoaded,this),t.on(i.Events.ERROR,this.onError,this)},y._unregisterListeners=function(){var t=this.hls;t.off(i.Events.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(i.Events.LEVEL_LOADED,this.onLevelLoaded,this),t.off(i.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(i.Events.FRAG_LOADED,this.onFragLoaded,this),t.off(i.Events.ERROR,this.onError,this)},y.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,t.prototype.destroy.call(this)},y.startLoad=function(){this._levels.forEach((function(t){t.loadError=0})),t.prototype.startLoad.call(this)},y.onManifestLoaded=function(t,e){var r,u,l=[],c=[],f=[],d={},p=!1,v=!1,m=!1;if(e.levels.forEach((function(t){var e=t.attrs;p=p||!(!t.width||!t.height),v=v||!!t.videoCodec,m=m||!!t.audioCodec,h&&t.audioCodec&&-1!==t.audioCodec.indexOf("mp4a.40.34")&&(t.audioCodec=void 0);var r=t.bitrate+"-"+t.attrs.RESOLUTION+"-"+t.attrs.CODECS;(u=d[r])?u.url.push(t.url):(u=new n.Level(t),d[r]=u,l.push(u)),e&&(e.AUDIO&&Object(s.addGroupId)(u,"audio",e.AUDIO),e.SUBTITLES&&Object(s.addGroupId)(u,"text",e.SUBTITLES))})),(p||v)&&m&&(l=l.filter((function(t){var e=t.videoCodec,r=t.width,n=t.height;return!!e||!(!r||!n)}))),l=l.filter((function(t){var e=t.audioCodec,r=t.videoCodec;return(!e||Object(o.isCodecSupportedInMp4)(e,"audio"))&&(!r||Object(o.isCodecSupportedInMp4)(r,"video"))})),e.audioTracks&&(c=e.audioTracks.filter((function(t){return!t.audioCodec||Object(o.isCodecSupportedInMp4)(t.audioCodec,"audio")})),Object(s.assignTrackIdsByGroup)(c)),e.subtitles&&(f=e.subtitles,Object(s.assignTrackIdsByGroup)(f)),l.length>0){r=l[0].bitrate,l.sort((function(t,e){return t.bitrate-e.bitrate})),this._levels=l;for(var y=0;y<l.length;y++)if(l[y].bitrate===r){this._firstLevel=y,this.log("manifest loaded, "+l.length+" level(s) found, first bitrate: "+r);break}var g=m&&!v,b={levels:l,audioTracks:c,subtitleTracks:f,firstLevel:this._firstLevel,stats:e.stats,audio:m,video:v,altAudio:!g&&c.some((function(t){return!!t.url}))};this.hls.trigger(i.Events.MANIFEST_PARSED,b),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(i.Events.ERROR,{type:a.ErrorTypes.MEDIA_ERROR,details:a.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:e.url,reason:"no level with compatible codecs found in manifest"})},y.onError=function(e,r){if(t.prototype.onError.call(this,e,r),!r.fatal){var n=r.context,i=this._levels[this.currentLevelIndex];if(n&&(n.type===l.PlaylistContextType.AUDIO_TRACK&&i.audioGroupIds&&n.groupId===i.audioGroupIds[i.urlId]||n.type===l.PlaylistContextType.SUBTITLE_TRACK&&i.textGroupIds&&n.groupId===i.textGroupIds[i.urlId]))this.redundantFailover(this.currentLevelIndex);else{var o,s=!1,u=!0;switch(r.details){case a.ErrorDetails.FRAG_LOAD_ERROR:case a.ErrorDetails.FRAG_LOAD_TIMEOUT:case a.ErrorDetails.KEY_LOAD_ERROR:case a.ErrorDetails.KEY_LOAD_TIMEOUT:if(r.frag){var c=this._levels[r.frag.level];c?(c.fragmentError++,c.fragmentError>this.hls.config.fragLoadingMaxRetry&&(o=r.frag.level)):o=r.frag.level}break;case a.ErrorDetails.LEVEL_LOAD_ERROR:case a.ErrorDetails.LEVEL_LOAD_TIMEOUT:n&&(n.deliveryDirectives&&(u=!1),o=n.level),s=!0;break;case a.ErrorDetails.REMUX_ALLOC_ERROR:o=r.level,s=!0}void 0!==o&&this.recoverLevel(r,o,s,u)}}},y.recoverLevel=function(t,e,r,n){var i=t.details,a=this._levels[e];if(a.loadError++,r){if(!this.retryLoadingOrFail(t))return void(this.currentLevelIndex=-1);t.levelRetry=!0}if(n){var o=a.url.length;if(o>1&&a.loadError<o)t.levelRetry=!0,this.redundantFailover(e);else if(-1===this.manualLevelIndex){var s=0===e?this._levels.length-1:e-1;this.currentLevelIndex!==s&&0===this._levels[s].loadError&&(this.warn(i+": switch to "+s),t.levelRetry=!0,this.hls.nextAutoLevel=s)}}},y.redundantFailover=function(t){var e=this._levels[t],r=e.url.length;if(r>1){var n=(e.urlId+1)%r;this.warn("Switching to redundant URL-id "+n),this._levels.forEach((function(t){t.urlId=n})),this.level=t}},y.onFragLoaded=function(t,e){var r=e.frag;if(void 0!==r&&r.type===l.PlaylistLevelType.MAIN){var n=this._levels[r.level];void 0!==n&&(n.fragmentError=0,n.loadError=0)}},y.onLevelLoaded=function(t,e){var r,n,i=e.level,a=e.details,o=this._levels[i];if(!o)return this.warn("Invalid level index "+i),void(null!==(n=e.deliveryDirectives)&&void 0!==n&&n.skip&&(a.deltaUpdateFailed=!0));i===this.currentLevelIndex?(0===o.fragmentError&&(o.loadError=0,this.retryCount=0),this.playlistLoaded(i,e,o.details)):null!==(r=e.deliveryDirectives)&&void 0!==r&&r.skip&&(a.deltaUpdateFailed=!0)},y.onAudioTrackSwitched=function(t,e){var r=this.hls.levels[this.currentLevelIndex];if(r&&r.audioGroupIds){for(var n=-1,i=this.hls.audioTracks[e.id].groupId,a=0;a<r.audioGroupIds.length;a++)if(r.audioGroupIds[a]===i){n=a;break}n!==r.urlId&&(r.urlId=n,this.startLoad())}},y.loadPlaylist=function(t){var e=this.currentLevelIndex,r=this._levels[e];if(this.canLoad&&r&&r.url.length>0){var n=r.urlId,a=r.url[n];if(t)try{a=t.addDirectives(a)}catch(o){this.warn("Could not construct new URL with HLS Delivery Directives: "+o)}this.log("Attempt loading level index "+e+(t?" at sn "+t.msn+" part "+t.part:"")+" with URL-id "+n+" "+a),this.clearTimer(),this.hls.trigger(i.Events.LEVEL_LOADING,{url:a,level:e,id:n,deliveryDirectives:t||null})}},y.removeLevel=function(t,e){var r=function(t,r){return r!==e},n=this._levels.filter((function(n,i){return i!==t||n.url.length>1&&void 0!==e&&(n.url=n.url.filter(r),n.audioGroupIds&&(n.audioGroupIds=n.audioGroupIds.filter(r)),n.textGroupIds&&(n.textGroupIds=n.textGroupIds.filter(r)),n.urlId=0,!0)})).map((function(t,e){var r=t.details;return null!==r&&void 0!==r&&r.fragments&&r.fragments.forEach((function(t){t.level=e})),t}));this._levels=n,this.hls.trigger(i.Events.LEVELS_UPDATED,{levels:n})},p=u,(v=[{key:"levels",get:function(){return 0===this._levels.length?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(t){var e,r=this._levels;if(0!==r.length&&(this.currentLevelIndex!==t||null===(e=r[t])||void 0===e||!e.details)){if(t<0||t>=r.length){var n=t<0;if(this.hls.trigger(i.Events.ERROR,{type:a.ErrorTypes.OTHER_ERROR,details:a.ErrorDetails.LEVEL_SWITCH_ERROR,level:t,fatal:n,reason:"invalid level idx"}),n)return;t=Math.min(t,r.length-1)}this.clearTimer();var o=this.currentLevelIndex,s=r[o],u=r[t];this.log("switching to level "+t+" from "+o),this.currentLevelIndex=t;var l=c({},u,{level:t,maxBitrate:u.maxBitrate,uri:u.uri,urlId:u.urlId});delete l._urlId,this.hls.trigger(i.Events.LEVEL_SWITCHING,l);var f=u.details;if(!f||f.live){var d=this.switchParams(u.uri,null===s||void 0===s?void 0:s.details);this.loadPlaylist(d)}}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(t){this.manualLevelIndex=t,void 0===this._startLevel&&(this._startLevel=t),-1!==t&&(this.level=t)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(t){this._firstLevel=t}},{key:"startLevel",get:function(){if(void 0===this._startLevel){var t=this.hls.config.startLevel;return void 0!==t?t:this._firstLevel}return this._startLevel},set:function(t){this._startLevel=t}},{key:"nextLoadLevel",get:function(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(t){this.level=t,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=t)}}])&&f(p.prototype,v),m&&f(p,m),u}(u.default)},"./src/controller/level-helper.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"addGroupId",(function(){return a})),r.d(e,"assignTrackIdsByGroup",(function(){return o})),r.d(e,"updatePTS",(function(){return s})),r.d(e,"updateFragPTSDTS",(function(){return l})),r.d(e,"mergeDetails",(function(){return c})),r.d(e,"mapPartIntersection",(function(){return f})),r.d(e,"mapFragmentIntersection",(function(){return d})),r.d(e,"adjustSliding",(function(){return h})),r.d(e,"addSliding",(function(){return p})),r.d(e,"computeReloadInterval",(function(){return v})),r.d(e,"getFragmentWithSN",(function(){return m})),r.d(e,"getPartWith",(function(){return y}));var n=r("./src/polyfills/number.ts"),i=r("./src/utils/logger.ts");function a(t,e,r){switch(e){case"audio":t.audioGroupIds||(t.audioGroupIds=[]),t.audioGroupIds.push(r);break;case"text":t.textGroupIds||(t.textGroupIds=[]),t.textGroupIds.push(r)}}function o(t){var e={};t.forEach((function(t){var r=t.groupId||"";t.id=e[r]=e[r]||0,e[r]++}))}function s(t,e,r){u(t[e],t[r])}function u(t,e){var r=e.startPTS;if(Object(n.isFiniteNumber)(r)){var i,a=0;e.sn>t.sn?(a=r-t.start,i=t):(a=t.start-r,i=e),i.duration!==a&&(i.duration=a)}else e.sn>t.sn?t.cc===e.cc&&t.minEndPTS?e.start=t.start+(t.minEndPTS-t.start):e.start=t.start+t.duration:e.start=Math.max(t.start-e.duration,0)}function l(t,e,r,a,o,s){a-r<=0&&(i.logger.warn("Fragment should have a positive duration",e),a=r+e.duration,s=o+e.duration);var l=r,c=a,f=e.startPTS,d=e.endPTS;if(Object(n.isFiniteNumber)(f)){var h=Math.abs(f-r);Object(n.isFiniteNumber)(e.deltaPTS)?e.deltaPTS=Math.max(h,e.deltaPTS):e.deltaPTS=h,l=Math.max(r,f),r=Math.min(r,f),o=Math.min(o,e.startDTS),c=Math.min(a,d),a=Math.max(a,d),s=Math.max(s,e.endDTS)}e.duration=a-r;var p=r-e.start;e.appendedPTS=a,e.start=e.startPTS=r,e.maxStartPTS=l,e.startDTS=o,e.endPTS=a,e.minEndPTS=c,e.endDTS=s;var v,m=e.sn;if(!t||m<t.startSN||m>t.endSN)return 0;var y=m-t.startSN,g=t.fragments;for(g[y]=e,v=y;v>0;v--)u(g[v],g[v-1]);for(v=y;v<g.length-1;v++)u(g[v],g[v+1]);return t.fragmentHint&&u(g[g.length-1],t.fragmentHint),t.PTSKnown=t.alignedSliding=!0,p}function c(t,e){for(var r=null,a=t.fragments,o=a.length-1;o>=0;o--){var s=a[o].initSegment;if(s){r=s;break}}t.fragmentHint&&delete t.fragmentHint.endPTS;var u,c=0;if(d(t,e,(function(t,i){t.relurl&&(c=t.cc-i.cc),Object(n.isFiniteNumber)(t.startPTS)&&Object(n.isFiniteNumber)(t.endPTS)&&(i.start=i.startPTS=t.startPTS,i.startDTS=t.startDTS,i.appendedPTS=t.appendedPTS,i.maxStartPTS=t.maxStartPTS,i.endPTS=t.endPTS,i.endDTS=t.endDTS,i.minEndPTS=t.minEndPTS,i.duration=t.endPTS-t.startPTS,i.duration&&(u=i),e.PTSKnown=e.alignedSliding=!0),i.elementaryStreams=t.elementaryStreams,i.loader=t.loader,i.stats=t.stats,i.urlId=t.urlId,t.initSegment&&(i.initSegment=t.initSegment,r=t.initSegment)})),r&&(e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments).forEach((function(t){var e;t.initSegment&&t.initSegment.relurl!==(null===(e=r)||void 0===e?void 0:e.relurl)||(t.initSegment=r)})),e.skippedSegments&&(e.deltaUpdateFailed=e.fragments.some((function(t){return!t})),e.deltaUpdateFailed)){i.logger.warn("[level-helper] Previous playlist missing segments ski
1pped in delta playlist");for(var p=e.skippedSegments;p--;)e.fragments.shift();e.startSN=e.fragments[0].sn,e.startCC=e.fragments[0].cc}var v=e.fragments;if(c){i.logger.warn("discontinuity sliding from playlist, take drift into account");for(var m=0;m<v.length;m++)v[m].cc+=c}e.skippedSegments&&(e.startCC=e.fragments[0].cc),f(t.partList,e.partList,(function(t,e){e.elementaryStreams=t.elementaryStreams,e.stats=t.stats})),u?l(e,u,u.startPTS,u.endPTS,u.startDTS,u.endDTS):h(t,e),v.length&&(e.totalduration=e.edge-v[0].start),e.driftStartTime=t.driftStartTime,e.driftStart=t.driftStart;var y=e.advancedDateTime;if(e.advanced&&y){var g=e.edge;e.driftStart||(e.driftStartTime=y,e.driftStart=g),e.driftEndTime=y,e.driftEnd=g}else e.driftEndTime=t.driftEndTime,e.driftEnd=t.driftEnd,e.advancedDateTime=t.advancedDateTime}function f(t,e,r){if(t&&e)for(var n=0,i=0,a=t.length;i<=a;i++){var o=t[i],s=e[i+n];o&&s&&o.index===s.index&&o.fragment.sn===s.fragment.sn?r(o,s):n--}}function d(t,e,r){for(var n=e.skippedSegments,i=Math.max(t.startSN,e.startSN)-e.startSN,a=(t.fragmentHint?1:0)+(n?e.endSN:Math.min(t.endSN,e.endSN))-e.startSN,o=e.startSN-t.startSN,s=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,u=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,l=i;l<=a;l++){var c=u[o+l],f=s[l];n&&!f&&l<n&&(f=e.fragments[l]=c),c&&f&&r(c,f)}}function h(t,e){var r=e.startSN+e.skippedSegments-t.startSN,n=t.fragments;r<0||r>=n.length||p(e,n[r].start)}function p(t,e){if(e){for(var r=t.fragments,n=t.skippedSegments;n<r.length;n++)r[n].start+=e;t.fragmentHint&&(t.fragmentHint.start+=e)}}function v(t,e){var r,n=1e3*t.levelTargetDuration,i=n/2,a=t.age,o=a>0&&a<3*n,s=e.loading.end-e.loading.start,u=t.availabilityDelay;if(!1===t.updated)if(o){var l=333*t.misses;r=Math.max(Math.min(i,2*s),l),t.availabilityDelay=(t.availabilityDelay||0)+r}else r=i;else o?(u=Math.min(u||n/2,a),t.availabilityDelay=u,r=u+n-a):r=n-s;return Math.round(r)}function m(t,e,r){if(!t||!t.details)return null;var n=t.details,i=n.fragments[e-n.startSN];return i||((i=n.fragmentHint)&&i.sn===e?i:e<n.startSN&&r&&r.sn===e?r:null)}function y(t,e,r){if(!t||!t.details)return null;var n=t.details.partList;if(n)for(var i=n.length;i--;){var a=n[i];if(a.index===r&&a.fragment.sn===e)return a}return null}},
vendor: 44,684 bytes, line 1
1"./src/controller/stream-controller.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return g}));var n=r("./src/polyfills/number.ts"),i=r("./src/controller/base-stream-controller.ts"),a=r("./src/is-supported.ts"),o=r("./src/events.ts"),s=r("./src/utils/buffer-helper.ts"),u=r("./src/controller/fragment-tracker.ts"),l=r("./src/types/loader.ts"),c=r("./src/loader/fragment.ts"),f=r("./src/demux/transmuxer-interface.ts"),d=r("./src/types/transmuxer.ts"),h=r("./src/controller/gap-controller.ts"),p=r("./src/errors.ts"),v=r("./src/utils/logger.ts");function m(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function y(t,e){return y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},y(t,e)}var g=function(t){var e,r;function g(e,r){var n;return(n=t.call(this,e,r,"[stream-controller]")||this).audioCodecSwap=!1,n.gapController=null,n.level=-1,n._forceStartLoad=!1,n.altAudio=!1,n.audioOnly=!1,n.fragPlaying=null,n.onvplaying=null,n.onvseeked=null,n.fragLastKbps=0,n.stalled=!1,n.couldBacktrack=!1,n.audioCodecSwitch=!1,n.videoBuffer=null,n._registerListeners(),n}r=t,(e=g).prototype=Object.create(r.prototype),e.prototype.constructor=e,y(e,r);var b,E,T,w=g.prototype;return w._registerListeners=function(){var t=this.hls;t.on(o.Events.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.on(o.Events.MANIFEST_PARSED,this.onManifestParsed,this),t.on(o.Events.LEVEL_LOADING,this.onLevelLoading,this),t.on(o.Events.LEVEL_LOADED,this.onLevelLoaded,this),t.on(o.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(o.Events.ERROR,this.onError,this),t.on(o.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(o.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(o.Events.BUFFER_CREATED,this.onBufferCreated,this),t.on(o.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(o.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(o.Events.FRAG_BUFFERED,this.onFragBuffered,this)},w._unregisterListeners=function(){var t=this.hls;t.off(o.Events.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.off(o.Events.MANIFEST_PARSED,this.onManifestParsed,this),t.off(o.Events.LEVEL_LOADED,this.onLevelLoaded,this),t.off(o.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(o.Events.ERROR,this.onError,this),t.off(o.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(o.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(o.Events.BUFFER_CREATED,this.onBufferCreated,this),t.off(o.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(o.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(o.Events.FRAG_BUFFERED,this.onFragBuffered,this)},w.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},w.startLoad=function(t){if(this.levels){var e=this.lastCurrentTime,r=this.hls;if(this.stopLoad(),this.setInterval(100),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var n=r.startLevel;-1===n&&(r.config.testBandwidth?(n=0,this.bitrateTest=!0):n=r.nextAutoLevel),this.level=r.nextLoadLevel=n,this.loadedmetadata=!1}e>0&&-1===t&&(this.log("Override startPosition with lastCurrentTime @"+e.toFixed(3)),t=e),this.state=i.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}else this._forceStartLoad=!0,this.state=i.State.STOPPED},w.stopLoad=function(){this._forceStartLoad=!1,t.prototype.stopLoad.call(this)},w.doTick=function(){switch(this.state){case i.State.IDLE:this.doTickIdle();break;case i.State.WAITING_LEVEL:var t,e=this.levels,r=this.level,n=null===e||void 0===e||null===(t=e[r])||void 0===t?void 0:t.details;if(n&&(!n.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(n))break;this.state=i.State.IDLE;break}break;case i.State.FRAG_LOADING_WAITING_RETRY:var a,o=self.performance.now(),s=this.retryDate;(!s||o>=s||null!==(a=this.media)&&void 0!==a&&a.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=i.State.IDLE)}this.onTickEnd()},w.onTickEnd=function(){t.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},w.doTickIdle=function(){var t,e,r=this.hls,n=this.levelLastLoaded,a=this.levels,s=this.media,f=r.config,d=r.nextLoadLevel;if(null!==n&&(s||!this.startFragRequested&&f.startFragPrefetch)&&(!this.altAudio||!this.audioOnly)&&a&&a[d]){var h=a[d];this.level=r.nextLoadLevel=d;var p=h.details;if(!p||this.state===i.State.WAITING_LEVEL||p.live&&this.levelLastLoaded!==d)this.state=i.State.WAITING_LEVEL;else{var v=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:s,l.PlaylistLevelType.MAIN);if(null!==v&&!(v.len>=this.getMaxBufferLength(h.maxBitrate))){if(this._streamEnded(v,p)){var m={};return this.altAudio&&(m.type="video"),this.hls.trigger(o.Events.BUFFER_EOS,m),void(this.state=i.State.ENDED)}var y=v.end,g=this.getNextFragment(y,p);if(this.couldBacktrack&&!this.fragPrevious&&g&&"initSegment"!==g.sn){var b=g.sn-p.startSN;b>1&&(g=p.fragments[b-1],this.fragmentTracker.removeFragment(g))}if(g&&this.fragmentTracker.getState(g)===u.FragmentState.OK&&this.nextLoadPosition>y){var E=this.audioOnly&&!this.altAudio?c.ElementaryStreamTypes.AUDIO:c.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(s,E,l.PlaylistLevelType.MAIN),g=this.getNextFragment(this.nextLoadPosition,p)}g&&(!g.initSegment||g.initSegment.data||this.bitrateTest||(g=g.initSegment),"identity"!==(null===(t=g.decryptdata)||void 0===t?void 0:t.keyFormat)||null!==(e=g.decryptdata)&&void 0!==e&&e.key?this.loadFragment(g,p,y):this.loadKey(g,p))}}}},w.loadFragment=function(e,r,n){var i,a=this.fragmentTracker.getState(e);if(this.fragCurrent=e,a===u.FragmentState.BACKTRACKED){var o=this.fragmentTracker.getBacktrackData(e);if(o)return this._handleFragmentLoadProgress(o),void this._handleFragmentLoadComplete(o);a=u.FragmentState.NOT_LOADED}a===u.FragmentState.NOT_LOADED||a===u.FragmentState.PARTIAL?"initSegment"===e.sn?this._loadInitSegment(e):this.bitrateTest?(e.bitrateTest=!0,this.log("Fragment "+e.sn+" of level "+e.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(e)):(this.startFragRequested=!0,t.prototype.loadFragment.call(this,e,r,n)):a===u.FragmentState.APPENDING?this.reduceMaxBufferLength(e.duration)&&this.fragmentTracker.removeFragment(e):0===(null===(i=this.media)||void 0===i?void 0:i.buffered.length)&&this.fragmentTracker.removeAllFragments()},w.getAppendedFrag=function(t){var e=this.fragmentTracker.getAppendedFrag(t,l.PlaylistLevelType.MAIN);return e&&"fragment"in e?e.fragment:e},w.getBufferedFrag=function(t){return this.fragmentTracker.getBufferedFrag(t,l.PlaylistLevelType.MAIN)},w.followingBufferedFrag=function(t){return t?this.getBufferedFrag(t.end+.5):null},w.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},w.nextLevelSwitch=function(){var t=this.levels,e=this.media;if(null!==e&&void 0!==e&&e.readyState){var r,n=this.getAppendedFrag(e.currentTime);if(n&&n.start>1&&this.flushMainBuffer(0,n.start-1),!e.paused&&t){var i=t[this.hls.nextLoadLevel],a=this.fragLastKbps;r=a&&this.fragCurrent?this.fragCurrent.duration*i.maxBitrate/(1e3*a)+1:0}else r=0;var o=this.getBufferedFrag(e.currentTime+r);if(o){var s=this.followingBufferedFrag(o);if(s){this.abortCurrentFrag();var u=s.maxStartPTS?s.maxStartPTS:s.start,l=s.duration,c=Math.max(o.end,u+Math.min(Math.max(l-this.config.maxFragLookUpTolerance,.5*l),.75*l));this.flushMainBuffer(c,Number.POSITIVE_INFINITY)}}}},w.abortCurrentFrag=function(){var t=this.fragCurrent;this.fragCurrent=null,null!==t&&void 0!==t&&t.loader&&t.loader.abort(),this.state===i.State.KEY_LOADING&&(this.state=i.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},w.flushMainBuffer=function(e,r){t.prototype.flushMainBuffer.call(this,e,r,this.altAudio?"video":null)},w.onMediaAttached=function(e,r){t.prototype.onMediaAttached.call(this,e,r);var n=r.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),n.addEventListener("playing",this.onvplaying),n.addEventListener("seeked",this.onvseeked),this.gapController=new h.default(this.config,n,this.fragmentTracker,this.hls)},w.onMediaDetaching=function(){var e=this.media;e&&(e.removeEventListener("playing",this.onvplaying),e.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),t.prototype.onMediaDetaching.call(this)},w.onMediaPlaying=function(){this.tick()},w.onMediaSeeked=function(){var t=this.media,e=t?t.currentTime:null;Object(n.isFiniteNumber)(e)&&this.log("Media seeked to "+e.toFixed(3)),this.tick()},w.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(o.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},w.onManifestParsed=function(t,e){var r,n=!1,i=!1;e.levels.forEach((function(t){(r=t.audioCodec)&&(-1!==r.indexOf("mp4a.40.2")&&(n=!0),-1!==r.indexOf("mp4a.40.5")&&(i=!0))})),this.audioCodecSwitch=n&&i&&!Object(a.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=e.levels,this.startFragRequested=!1},w.onLevelLoading=function(t,e){var r=this.levels;if(r&&this.state===i.State.IDLE){var n=r[e.level];(!n.details||n.details.live&&this.levelLastLoaded!==e.level||this.waitForCdnTuneIn(n.details))&&(this.state=i.State.WAITING_LEVEL)}},w.onLevelLoaded=function(t,e){var r,n=this.levels,a=e.level,s=e.details,u=s.totalduration;if(n){this.log("Level "+a+" loaded ["+s.startSN+","+s.endSN+"], cc ["+s.startCC+", "+s.endCC+"] duration:"+u);var l=this.fragCurrent;!l||this.state!==i.State.FRAG_LOADING&&this.state!==i.State.FRAG_LOADING_WAITING_RETRY||l.level!==e.level&&l.loader&&(this.state=i.State.IDLE,l.loader.abort());var c=n[a],f=0;if(s.live||null!==(r=c.details)&&void 0!==r&&r.live){if(s.fragments[0]||(s.deltaUpdateFailed=!0),s.deltaUpdateFailed)return;f=this.alignPlaylists(s,c.details)}if(c.details=s,this.levelLastLoaded=a,this.hls.trigger(o.Events.LEVEL_UPDATED,{details:s,level:a}),this.state===i.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(s))return;this.state=i.State.IDLE}this.startFragRequested?s.live&&this.synchronizeToLiveEdge(s):this.setStartPosition(s,f),this.tick()}else this.warn("Levels were reset while loading level "+a)},w._handleFragmentLoadProgress=function(t){var e,r=t.frag,n=t.part,i=t.payload,a=this.levels;if(a){var o=a[r.level],s=o.details;if(s){var u=o.videoCodec,c=s.PTSKnown||!s.live,h=null===(e=r.initSegment)||void 0===e?void 0:e.data,p=this._getAudioCodec(o),v=this.transmuxer=this.transmuxer||new f.default(this.hls,l.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),m=n?n.index:-1,y=-1!==m,g=new d.ChunkMetadata(r.level,r.sn,r.stats.chunkCount,i.byteLength,m,y),b=this.initPTS[r.cc];v.push(i,h,p,u,r,n,s.totalduration,c,g,b)}else this.warn("Dropping fragment "+r.sn+" of level "+r.level+" after level details were reset")}else this.warn("Levels were reset while fragment load was in progress. Fragment "+r.sn+" of level "+r.level+" will not be buffered")},w.onAudioTrackSwitching=function(t,e){var r=this.altAudio,n=!!e.url,i=e.id;if(!n){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var a=this.fragCurrent;null!==a&&void 0!==a&&a.loader&&(this.log("Switching to main audio track, cancel main fragment load"),a.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var s=this.hls;r&&s.trigger(o.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),s.trigger(o.Events.AUDIO_TRACK_SWITCHED,{id:i})}},w.onAudioTrackSwitched=function(t,e){var r=e.id,n=!!this.hls.audioTracks[r].url;if(n){var i=this.videoBuffer;i&&this.mediaBuffer!==i&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=i)}this.altAudio=n,this.tick()},w.onBufferCreated=function(t,e){var r,n,i=e.tracks,a=!1;for(var o in i){var s=i[o];if("main"===s.id){if(n=o,r=s,"video"===o){var u=i[o];u&&(this.videoBuffer=u.buffer)}}else a=!0}a&&r?(this.log("Alternate track found, use "+n+".buffered to schedule main fragment loading"),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media},w.onFragBuffered=function(t,e){var r=e.frag,n=e.part;if(!r||r.type===l.PlaylistLevelType.MAIN){if(this.fragContextChanged(r))return this.warn("Fragment "+r.sn+(n?" p: "+n.index:"")+" of level "+r.level+" finished buffering, but was aborted. state: "+this.state),void(this.state===i.State.PARSED&&(this.state=i.State.IDLE));var a=n?n.stats:r.stats;this.fragLastKbps=Math.round(8*a.total/(a.buffering.end-a.loading.first)),"initSegment"!==r.sn&&(this.fragPrevious=r),this.fragBufferedComplete(r,n)}},w.onError=function(t,e){switch(e.details){case p.ErrorDetails.FRAG_LOAD_ERROR:case p.ErrorDetails.FRAG_LOAD_TIMEOUT:case p.ErrorDetails.KEY_LOAD_ERROR:case p.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(l.PlaylistLevelType.MAIN,e);break;case p.ErrorDetails.LEVEL_LOAD_ERROR:case p.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==i.State.ERROR&&(e.fatal?(this.warn(""+e.details),this.state=i.State.ERROR):e.levelRetry||this.state!==i.State.WAITING_LEVEL||(this.state=i.State.IDLE));break;case p.ErrorDetails.BUFFER_FULL_ERROR:if("main"===e.parent&&(this.state===i.State.PARSING||this.state===i.State.PARSED)){var r=!0,n=this.getFwdBufferInfo(this.media,l.PlaylistLevelType.MAIN);n&&n.len>.5&&(r=!this.reduceMaxBufferLength(n.len)),r&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}}},w.checkBuffer=function(){var t=this.media,e=this.gapController;if(t&&e&&t.readyState){var r=s.BufferHelper.getBuffered(t);!this.loadedmetadata&&r.length?(this.loadedmetadata=!0,this.seekToStartPos()):e.poll(this.lastCurrentTime),this.lastCurrentTime=t.currentTime}},w.onFragLoadEmergencyAborted=function(){this.state=i.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},w.onBufferFlushed=function(t,e){var r=e.type;if(r!==c.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var n=(r===c.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(n,r,l.PlaylistLevelType.MAIN)}},w.onLevelsUpdated=function(t,e){this.levels=e.levels},w.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},w.seekToStartPos=function(){var t=this.media,e=t.currentTime,r=this.startPosition;if(r>=0&&e<r){if(t.seeking)return void v.logger.log("could not seek to "+r+", already seeking at "+e);var n=s.BufferHelper.getBuffered(t),i=(n.length?n.start(0):0)-r;i>0&&(i<this.config.maxBufferHole||i<this.config.maxFragLookUpTolerance)&&(v.logger.log("adjusting start position by "+i+" to match buffer start"),r+=i,this.startPosition=r),this.log("seek to target start position "+r+" from current time "+e),t.currentTime=r}},w._getAudioCodec=function(t){var e=this.config.defaultAudioCodec||t.audioCodec;return this.audioCodecSwap&&e&&(this.log("Swapping audio codec"),e=-1!==e.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),e},w._loadBitrateTestFrag=function(t){var e=this;this._doFragLoad(t).then((function(r){var n=e.hls;if(r&&!n.nextLoadLevel&&!e.fragContextChanged(t)){e.fragLoadError=0,e.state=i.State.IDLE,e.startFragRequested=!1,e.bitrateTest=!1;var a=t.stats;a.parsing.start=a.parsing.end=a.buffering.start=a.buffering.end=self.performance.now(),n.trigger(o.Events.FRAG_LOADED,r)}}))},w._handleTransmuxComplete=function(t){var e,r="main",a=this.hls,s=t.remuxResult,u=t.chunkMeta,l=this.getCurrentContext(u);if(!l)return this.warn("The loading context changed while buffering fragment "+u.sn+" of level "+u.level+". This chunk will not be buffered."),void this.resetLiveStartWhenNotLoaded(u.level);var f=l.frag,d=l.part,h=l.level,p=s.video,v=s.text,m=s.id3,y=s.initSegment,g=this.altAudio?void 0:s.audio;if(!this.fragContextChanged(f)){if(this.state=i.State.PARSING,y){y.tracks&&(this._bufferInitSegment(h,y.tracks,f,u),a.trigger(o.Events.FRAG_PARSING_INIT_SEGMENT,{frag:f,id:r,tracks:y.tracks}));var b=y.initPTS,E=y.timescale;Object(n.isFiniteNumber)(b)&&(this.initPTS[f.cc]=b,a.trigger(o.Events.INIT_PTS_FOUND,{frag:f,id:r,initPTS:b,timescale:E}))}if(p&&!1!==s.independent){if(h.details){var T=p.startPTS,w=p.endPTS,S=p.startDTS,O=p.endDTS;if(d)d.elementaryStreams[p.type]={startPTS:T,endPTS:w,startDTS:S,endDTS:O};else if(p.firstKeyFrame&&p.independent&&(this.couldBacktrack=!0),p.dropped&&p.independent){if(this.getLoadPosition()+this.config.maxBufferHole<T)return void this.backtrack(f);f.setElementaryStreamInfo(p.type,f.start,w,f.start,O,!0)}f.setElementaryStreamInfo(p.type,T,w,S,O),this.bufferFragmentData(p,f,d,u)}}else if(!1===s.independent)return void this.backtrack(f);if(g){var k=g.startPTS,A=g.endPTS,P=g.startDTS,x=g.endDTS;d&&(d.elementaryStreams[c.ElementaryStreamTypes.AUDIO]={startPTS:k,endPTS:A,startDTS:P,endDTS:x}),f.setElementaryStreamInfo(c.ElementaryStreamTypes.AUDIO,k,A,P,x),this.bufferFragmentData(g,f,d,u)}if(null!==m&&void 0!==m&&null!==(e=m.samples)&&void 0!==e&&e.length){var L={frag:f,id:r,samples:m.samples};a.trigger(o.Events.FRAG_PARSING_METADATA,L)}if(v){var _={frag:f,id:r,samples:v.samples};a.trigger(o.Events.FRAG_PARSING_USERDATA,_)}}},w._bufferInitSegment=function(t,e,r,n){var a=this;if(this.state===i.State.PARSING){this.audioOnly=!!e.audio&&!e.video,this.altAudio&&!this.audioOnly&&delete e.audio;var s=e.audio,u=e.video,l=e.audiovideo;if(s){var c=t.audioCodec,f=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(c&&(c=-1!==c.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),1!==s.metadata.channelCount&&-1===f.indexOf("firefox")&&(c="mp4a.40.5")),-1!==f.indexOf("android")&&"audio/mpeg"!==s.container&&(c="mp4a.40.2",this.log("Android: force audio codec to "+c)),t.audioCodec&&t.audioCodec!==c&&this.log('Swapping manifest audio codec "'+t.audioCodec+'" for "'+c+'"'),s.levelCodec=c,s.id="main",this.log("Init audio buffer, container:"+s.container+", codecs[selected/level/parsed]=["+(c||"")+"/"+(t.audioCodec||"")+"/"+s.codec+"]")}u&&(u.levelCodec=t.videoCodec,u.id="main",this.log("Init video buffer, container:"+u.container+", codecs[level/parsed]=["+(t.videoCodec||"")+"/"+u.codec+"]")),l&&this.log("Init audiovideo buffer, container:"+l.container+", codecs[level/parsed]=["+(t.attrs.CODECS||"")+"/"+l.codec+"]"),this.hls.trigger(o.Events.BUFFER_CODECS,e),Object.keys(e).forEach((function(t){var i=e[t].initSegment;null!==i&&void 0!==i&&i.byteLength&&a.hls.trigger(o.Events.BUFFER_APPENDING,{type:t,data:i,frag:r,part:null,chunkMeta:n,parent:r.type})})),this.tick()}},w.backtrack=function(t){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(t);var e=this.fragmentTracker.backtrack(t);this.fragPrevious=null,this.nextLoadPosition=t.start,e?this.resetFragmentLoading(t):this.state=i.State.BACKTRACKING},w.checkFragmentChanged=function(){var t=this.media,e=null;if(t&&t.readyState>1&&!1===t.seeking){var r=t.currentTime;if(s.BufferHelper.isBuffered(t,r)?e=this.getAppendedFrag(r):s.BufferHelper.isBuffered(t,r+.1)&&(e=this.getAppendedFrag(r+.1)),e){var n=this.fragPlaying,i=e.level;n&&e.sn===n.sn&&n.level===i&&e.urlId===n.urlId||(this.hls.trigger(o.Events.FRAG_CHANGED,{frag:e}),n&&n.level===i||this.hls.trigger(o.Events.LEVEL_SWITCHED,{level:i}),this.fragPlaying=e)}}},b=g,(E=[{key:"nextLevel",get:function(){var t=this.nextBufferedFrag;return t?t.level:-1}},{key:"currentLevel",get:function(){var t=this.media;if(t){var e=this.getAppendedFrag(t.currentTime);if(e)return e.level}return-1}},{key:"nextBufferedFrag",get:function(){var t=this.media;if(t){var e=this.getAppendedFrag(t.currentTime);return this.followingBufferedFrag(e)}return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}])&&m(b.prototype,E),T&&m(b,T),g}(i.default)},"./src/controller/subtitle-stream-controller.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"SubtitleStreamController",(function(){return p}));var n=r("./src/events.ts"),i=r("./src/utils/buffer-helper.ts"),a=r("./src/controller/fragment-finders.ts"),o=r("./src/utils/discontinuities.ts"),s=r("./src/controller/level-helper.ts"),u=r("./src/controller/fragment-tracker.ts"),l=r("./src/controller/base-stream-controller.ts"),c=r("./src/types/loader.ts"),f=r("./src/types/level.ts");function d(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}var p=function(t){var e,r;function p(e,r){var n;return(n=t.call(this,e,r,"[subtitle-stream-controller]")||this).levels=[],n.currentTrackId=-1,n.tracksBuffered=[],n.mainDetails=null,n._registerListeners(),n}r=t,(e=p).prototype=Object.create(r.prototype),e.prototype.constructor=e,h(e,r);var v,m,y,g=p.prototype;return g.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},g._registerListeners=function(){var t=this.hls;t.on(n.Events.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(n.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(n.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.on(n.Events.LEVEL_LOADED,this.onLevelLoaded,this),t.on(n.Events.ERROR,this.onError,this),t.on(n.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(n.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(n.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(n.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(n.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},g._unregisterListeners=function(){var t=this.hls;t.off(n.Events.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(n.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(n.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.off(n.Events.LEVEL_LOADED,this.onLevelLoaded,this),t.off(n.Events.ERROR,this.onError,this),t.off(n.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(n.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(n.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(n.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(n.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},g.startLoad=function(){this.stopLoad(),this.state=l.State.IDLE,this.setInterval(500),this.tick()},g.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},g.onLevelLoaded=function(t,e){this.mainDetails=e.details},g.onSubtitleFragProcessed=function(t,e){var r=e.frag,n=e.success;if(this.fragPrevious=r,this.state=l.State.IDLE,n){var i=this.tracksBuffered[this.currentTrackId];if(i){for(var a,o=r.start,s=0;s<i.length;s++)if(o>=i[s].start&&o<=i[s].end){a=i[s];break}var u=r.start+r.duration;a?a.end=u:(a={start:o,end:u},i.push(a)),this.fragmentTracker.fragBuffered(r)}}},g.onBufferFlushing=function(t,e){var r=e.startOffset,n=e.endOffset;if(0===r&&n!==Number.POSITIVE_INFINITY){var i=this.currentTrackId,a=this.levels;if(!a.length||!a[i]||!a[i].details)return;var o=n-a[i].details.targetduration;if(o<=0)return;e.endOffsetSubtitles=Math.max(0,o),this.tracksBuffered.forEach((function(t){for(var e=0;e<t.length;)if(t[e].end<=o)t.shift();else{if(!(t[e].start<o))break;t[e].start=o,e++}})),this.fragmentTracker.removeFragmentsInRange(r,o,c.PlaylistLevelType.SUBTITLE)}},g.onError=function(t,e){var r,n=e.frag;n&&n.type===c.PlaylistLevelType.SUBTITLE&&(null!==(r=this.fragCurrent)&&void 0!==r&&r.loader&&this.fragCurrent.loader.abort(),this.state=l.State.IDLE)},g.onSubtitleTracksUpdated=function(t,e){var r=this,n=e.subtitleTracks;this.tracksBuffered=[],this.levels=n.map((function(t){return new f.Level(t)})),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach((function(t){r.tracksBuffered[t.id]=[]})),this.mediaBuffer=null},g.onSubtitleTrackSwitch=function(t,e){if(this.currentTrackId=e.id,this.levels.length&&-1!==this.currentTrackId){var r=this.levels[this.currentTrackId];null!==r&&void 0!==r&&r.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,r&&this.setInterval(500)}else this.clearInterval()},g.onSubtitleTrackLoaded=function(t,e){var r,n=e.details,i=e.id,u=this.currentTrackId,c=this.levels;if(c.length){var f=c[u];if(!(i>=c.length||i!==u)&&f){if(this.mediaBuffer=this.mediaBufferTimeRanges,n.live||null!==(r=f.details)&&void 0!==r&&r.live){var d=this.mainDetails;if(n.deltaUpdateFailed||!d)return;var h=d.fragments[0];f.details?0===this.alignPlaylists(n,f.details)&&h&&Object(s.addSliding)(n,h.start):n.hasProgramDateTime&&d.hasProgramDateTime?Object(o.alignMediaPlaylistByPDT)(n,d):h&&Object(s.addSliding)(n,h.start)}f.details=n,this.levelLastLoaded=i,this.tick(),n.live&&!this.fragCurrent&&this.media&&this.state===l.State.IDLE&&(Object(a.findFragmentByPTS)(null,n.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),f.details=void 0))}}},g._handleFragmentLoadComplete=function(t){var e=t.frag,r=t.payload,i=e.decryptdata,a=this.hls;if(!this.fragContextChanged(e)&&r&&r.byteLength>0&&i&&i.key&&i.iv&&"AES-128"===i.method){var o=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(r),i.key.buffer,i.iv.buffer).then((function(t){var r=performance.now();a.trigger(n.Events.FRAG_DECRYPTED,{frag:e,payload:t,stats:{tstart:o,tdecrypt:r}})}))}},g.doTick=function(){if(this.media){if(this.state===l.State.IDLE){var t,e=this.currentTrackId,r=this.levels;if(!r.length||!r[e]||!r[e].details)return;var n=r[e].details,o=n.targetduration,s=this.config,c=this.media,f=i.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,c.currentTime-o,s.maxBufferHole),d=f.end;if(f.len>this.getMaxBufferLength()+o)return;console.assert(n,"Subtitle track details are defined on idle subtitle stream controller tick");var h,p=n.fragments,v=p.length,m=n.edge,y=this.fragPrevious;if(d<m){var g=s.maxFragLookUpTolerance;!(h=Object(a.findFragmentByPTS)(y,p,d,g))&&y&&y.start<p[0].start&&(h=p[0])}else h=p[v-1];null!==(t=h)&&void 0!==t&&t.encrypted?this.loadKey(h,n):h&&this.fragmentTracker.getState(h)===u.FragmentState.NOT_LOADED&&this.loadFragment(h,n,d)}}else this.state=l.State.IDLE},g.loadFragment=function(e,r,n){this.fragCurrent=e,t.prototype.loadFragment.call(this,e,r,n)},v=p,(m=[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}])&&d(v.prototype,m),y&&d(v,y),p}(l.default)},"./src/controller/subtitle-track-controller.ts":function(t,e,r){"use strict";r.r(e);var n=r("./src/events.ts"),i=r("./src/utils/texttrack-utils.ts"),a=r("./src/controller/base-playlist-controller.ts"),o=r("./src/types/loader.ts");function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e){return u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},u(t,e)}var l=function(t){var e,r;function a(e){var r;return(r=t.call(this,e,"[subtitle-track-controller]")||this).media=null,r.tracks=[],r.groupId=null,r.tracksInGroup=[],r.trackId=-1,r.selectDefaultTrack=!0,r.queuedDefaultTrack=-1,r.trackChangeListener=function(){return r.onTextTracksChanged()},r.asyncPollTrackChange=function(){return r.pollTrackChange(0)},r.useTextTrackPolling=!1,r.subtitlePollingInterval=-1,r.subtitleDisplay=!0,r.registerListeners(),r}r=t,(e=a).prototype=Object.create(r.prototype),e.prototype.constructor=e,u(e,r);var l,f,d,h=a.prototype;return h.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,t.prototype.destroy.call(this)},h.registerListeners=function(){var t=this.hls;t.on(n.Events.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(n.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(n.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.on(n.Events.MANIFEST_PARSED,this.onManifestParsed,this),t.on(n.Events.LEVEL_LOADING,this.onLevelLoading,this),t.on(n.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(n.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(n.Events.ERROR,this.onError,this)},h.unregisterListeners=function(){var t=this.hls;t.off(n.Events.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(n.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(n.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.off(n.Events.MANIFEST_PARSED,this.onManifestParsed,this),t.off(n.Events.LEVEL_LOADING,this.onLevelLoading,this),t.off(n.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(n.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(n.Events.ERROR,this.onError,this)},h.onMediaAttached=function(t,e){this.media=e.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))},h.pollTrackChange=function(t){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,t)},h.onMediaDetaching=function(){this.media&&(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),c(this.media.textTracks).forEach((function(t){Object(i.clearCurrentCues)(t)})),this.subtitleTrack=-1,this.media=null)},h.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},h.onManifestParsed=function(t,e){this.tracks=e.subtitleTracks},h.onSubtitleTrackLoaded=function(t,e){var r=e.id,n=e.details,i=this.trackId,a=this.tracksInGroup[i];if(a){var o=a.details;a.details=e.details,this.log("subtitle track "+r+" loaded ["+n.startSN+"-"+n.endSN+"]"),r===this.trackId&&(this.retryCount=0,this.playlistLoaded(r,e,o))}else this.warn("Invalid subtitle track id "+r)},h.onLevelLoading=function(t,e){this.switchLevel(e.level)},h.onLevelSwitching=function(t,e){this.switchLevel(e.level)},h.switchLevel=function(t){var e=this.hls.levels[t];if(null!==e&&void 0!==e&&e.textGroupIds){var r=e.textGroupIds[e.urlId];if(this.groupId!==r){var i=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,a=this.tracks.filter((function(t){return!r||t.groupId===r}));this.tracksInGroup=a;var o=this.findTrackId(null===i||void 0===i?void 0:i.name)||this.findTrackId();this.groupId=r;var s={subtitleTracks:a};this.log("Updating subtitle tracks, "+a.length+' track(s) found in "'+r+'" group-id'),this.hls.trigger(n.Events.SUBTITLE_TRACKS_UPDATED,s),-1!==o&&this.setSubtitleTrack(o,i)}}},h.findTrackId=function(t){for(var e=this.tracksInGroup,r=0;r<e.length;r++){var n=e[r];if((!this.selectDefaultTrack||n.default)&&(!t||t===n.name))return n.id}return-1},h.onError=function(e,r){t.prototype.onError.call(this,e,r),!r.fatal&&r.context&&r.context.type===o.PlaylistContextType.SUBTITLE_TRACK&&r.context.id===this.trackId&&r.context.groupId===this.groupId&&this.retryLoadingOrFail(r)},h.loadPlaylist=function(t){var e=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(e)){var r=e.id,i=e.groupId,a=e.url;if(t)try{a=t.addDirectives(a)}catch(o){this.warn("Could not construct new URL with HLS Delivery Directives: "+o)}this.log("Loading subtitle playlist for id "+r),this.hls.trigger(n.Events.SUBTITLE_TRACK_LOADING,{url:a,id:r,groupId:i,deliveryDirectives:t||null})}},h.toggleTrackModes=function(t){var e=this,r=this.media,n=this.subtitleDisplay,i=this.trackId;if(r){var a=c(r.textTracks),o=a.filter((function(t){return t.groupId===e.groupId}));if(-1===t)[].slice.call(a).forEach((function(t){t.mode="disabled"}));else{var s=o[i];s&&(s.mode="disabled")}var u=o[t];u&&(u.mode=n?"showing":"hidden")}},h.setSubtitleTrack=function(t,e){var r,i=this.tracksInGroup;if(this.media){if(this.trackId!==t&&this.toggleTrackModes(t),!(this.trackId===t&&(-1===t||null!==(r=i[t])&&void 0!==r&&r.details)||t<-1||t>=i.length)){this.clearTimer();var a=i[t];if(this.log("Switching to subtitle track "+t),this.trackId=t,a){var o=a.id,s=a.groupId,u=void 0===s?"":s,l=a.name,c=a.type,f=a.url;this.hls.trigger(n.Events.SUBTITLE_TRACK_SWITCH,{id:o,groupId:u,name:l,type:c,url:f});var d=this.switchParams(a.url,null===e||void 0===e?void 0:e.details);this.loadPlaylist(d)}else this.hls.trigger(n.Events.SUBTITLE_TRACK_SWITCH,{id:t})}}else this.queuedDefaultTrack=t},h.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),this.media&&this.hls.config.renderTextTracksNatively){for(var t=-1,e=c(this.media.textTracks),r=0;r<e.length;r++)if("hidden"===e[r].mode)t=r;else if("showing"===e[r].mode){t=r;break}this.subtitleTrack!==t&&(this.subtitleTrack=t)}},l=a,(f=[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(t){this.selectDefaultTrack=!1;var e=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(t,e)}}])&&s(l.prototype,f),d&&s(l,d),a}(a.default);function c(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];"subtitles"===n.kind&&n.label&&e.push(t[r])}return e}e.default=l},"./src/controller/timeline-controller.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"TimelineController",(function(){return d}));var n=r("./src/polyfills/number.ts"),i=r("./src/events.ts"),a=r("./src/utils/cea-608-parser.ts"),o=r("./src/utils/output-filter.ts"),s=r("./src/utils/webvtt-parser.ts"),u=r("./src/utils/texttrack-utils.ts"),l=r("./src/utils/imsc1-ttml-parser.ts"),c=r("./src/types/loader.ts"),f=r("./src/utils/logger.ts"),d=function(){function t(t){if(this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.timescale=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}},this.captionsProperties=void 0,this.hls=t,this.config=t.config,this.Cues=t.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},this.config.enableCEA708Captions){var e=new o.default(this,"textTrack1"),r=new o.default(this,"textTrack2"),n=new o.default(this,"textTrack3"),s=new o.default(this,"textTrack4");this.cea608Parser1=new a.default(1,e,r),this.cea608Parser2=new a.default(3,n,s)}t.on(i.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(i.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(i.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.on(i.Events.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(i.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(i.Events.FRAG_LOADING,this.onFragLoading,this),t.on(i.Events.FRAG_LOADED,this.onFragLoaded,this),t.on(i.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(i.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(i.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(i.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(i.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var e=t.prototype;return e.destroy=function(){var t=this.hls;t.off(i.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(i.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(i.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.off(i.Events.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(i.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(i.Events.FRAG_LOADING,this.onFragLoading,this),t.off(i.Events.FRAG_LOADED,this.onFragLoaded,this),t.off(i.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(i.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(i.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(i.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(i.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},e.addCues=function(t,e,r,n,a){for(var o,s,u,l,c=!1,f=a.length;f--;){var d=a[f],h=(o=d[0],s=d[1],u=e,l=r,Math.min(s,l)-Math.max(o,u));if(h>=0&&(d[0]=Math.min(d[0],e),d[1]=Math.max(d[1],r),c=!0,h/(r-e)>.5))return}if(c||a.push([e,r]),this.config.renderTextTracksNatively){var p=this.captionsTracks[t];this.Cues.newCue(p,e,r,n)}else{var v=this.Cues.newCue(null,e,r,n);this.hls.trigger(i.Events.CUES_PARSED,{type:"captions",cues:v,track:t})}},e.onInitPtsFound=function(t,e){var r=this,n=e.frag,a=e.id,o=e.initPTS,s=e.timescale,u=this.unparsedVttFrags;"main"===a&&(this.initPTS[n.cc]=o,this.timescale[n.cc]=s),u.length&&(this.unparsedVttFrags=[],u.forEach((function(t){r.onFragLoaded(i.Events.FRAG_LOADED,t)})))},e.getExistingTrack=function(t){var e=this.media;if(e)for(var r=0;r<e.textTracks.length;r++){var n=e.textTracks[r];if(n[t])return n}return null},e.createCaptionsTrack=function(t){this.config.renderTextTracksNatively?this.createNativeTrack(t):this.createNonNativeTrack(t)},e.createNativeTrack=function(t){if(!this.captionsTracks[t]){var e=this.captionsProperties,r=this.captionsTracks,n=this.media,i=e[t],a=i.label,o=i.languageCode,s=this.getExistingTrack(t);if(s)r[t]=s,Object(u.clearCurrentCues)(r[t]),Object(u.sendAddTrackEvent)(r[t],n);else{var l=this.createTextTrack("captions",a,o);l&&(l[t]=!0,r[t]=l)}}},e.createNonNativeTrack=function(t){if(!this.nonNativeCaptionsTracks[t]){var e=this.captionsProperties[t];if(e){var r={_id:t,label:e.label,kind:"captions",default:!!e.media&&!!e.media.default,closedCaptions:e.media};this.nonNativeCaptionsTracks[t]=r,this.hls.trigger(i.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[r]})}}},e.createTextTrack=function(t,e,r){var n=this.media;if(n)return n.addTextTrack(t,e,r)},e.onMediaAttaching=function(t,e){this.media=e.media,this._cleanTracks()},e.onMediaDetaching=function(){var t=this.captionsTracks;Object.keys(t).forEach((function(e){Object(u.clearCurrentCues)(t[e]),delete t[e]})),this.nonNativeCaptionsTracks={}},e.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}},this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.timescale=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())},e._cleanTracks=function(){var t=this.media;if(t){var e=t.textTracks;if(e)for(var r=0;r<e.length;r++)Object(u.clearCurrentCues)(e[r])}},e.onSubtitleTracksUpdated=function(t,e){var r=this;this.textTracks=[];var n=e.subtitleTracks||[],a=n.some((function(t){return t.textCodec===l.IMSC1_CODEC}));if(this.config.enableWebVTT||a&&this.config.enableIMSC1){var o=this.tracks&&n&&this.tracks.length===n.length;if(this.tracks=n||[],this.config.renderTextTracksNatively){var s=this.media?this.media.textTracks:[];this.tracks.forEach((function(t,e){var n;if(e<s.length){for(var i=null,a=0;a<s.length;a++)if(h(s[a],t)){i=s[a];break}i&&(n=i)}n?Object(u.clearCurrentCues)(n):(n=r.createTextTrack("subtitles",t.name,t.lang))&&(n.mode="disabled"),n&&(n.groupId=t.groupId,r.textTracks.push(n))}))}else if(!o&&this.tracks&&this.tracks.length){var c=this.tracks.map((function(t){return{label:t.name,kind:t.type.toLowerCase(),default:t.default,subtitleTrack:t}}));this.hls.trigger(i.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:c})}}},e.onManifestLoaded=function(t,e){var r=this;this.config.enableCEA708Captions&&e.captions&&e.captions.forEach((function(t){var e=/(?:CC|SERVICE)([1-4])/.exec(t.instreamId);if(e){var n="textTrack"+e[1],i=r.captionsProperties[n];i&&(i.label=t.name,t.lang&&(i.languageCode=t.lang),i.media=t)}}))},e.onFragLoading=function(t,e){var r=this.cea608Parser1,n=this.cea608Parser2,i=this.lastSn,a=this.lastPartIndex;if(this.enabled&&r&&n&&e.frag.type===c.PlaylistLevelType.MAIN){var o,s,u=e.frag.sn,l=null!=(o=null===e||void 0===e||null===(s=e.part)||void 0===s?void 0:s.index)?o:-1;u===i+1||u===i&&l===a+1||(r.reset(),n.reset()),this.lastSn=u,this.lastPartIndex=l}},e.onFragLoaded=function(t,e){var r=e.frag,a=e.payload,o=this.initPTS,s=this.unparsedVttFrags;if(r.type===c.PlaylistLevelType.SUBTITLE)if(a.byteLength){if(!Object(n.isFiniteNumber)(o[r.cc]))return s.push(e),void(o.length&&this.hls.trigger(i.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Missing initial subtitle PTS")}));var u=r.decryptdata,f="stats"in e;if(null==u||null==u.key||"AES-128"!==u.method||f){var d=this.tracks[r.level],h=this.vttCCs;h[r.cc]||(h[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),d&&d.textCodec===l.IMSC1_CODEC?this._parseIMSC1(r,a):this._parseVTTs(r,a,h)}}else this.hls.trigger(i.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})},e._parseIMSC1=function(t,e){var r=this,n=this.hls;Object(l.parseIMSC1)(e,this.initPTS[t.cc],this.timescale[t.cc],(function(e){r._appendCues(e,t.level),n.trigger(i.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})}),(function(e){f.logger.log("Failed to parse IMSC1: "+e),n.trigger(i.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:e})}))},e._parseVTTs=function(t,e,r){var n=this,a=this.hls;Object(s.parseWebVTT)(e,this.initPTS[t.cc],this.timescale[t.cc],r,t.cc,t.start,(function(e){n._appendCues(e,t.level),a.trigger(i.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})}),(function(r){n._fallbackToIMSC1(t,e),f.logger.log("Failed to parse VTT cue: "+r),a.trigger(i.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:r})}))},e._fallbackToIMSC1=function(t,e){var r=this,n=this.tracks[t.level];n.textCodec||Object(l.parseIMSC1)(e,this.initPTS[t.cc],this.timescale[t.cc],(function(){n.textCodec=l.IMSC1_CODEC,r._parseIMSC1(t,e)}),(function(){n.textCodec="wvtt"}))},e._appendCues=function(t,e){var r=this.hls;if(this.config.renderTextTracksNatively){var n=this.textTracks[e];if("disabled"===n.mode)return;t.forEach((function(t){return Object(u.addCueToTrack)(n,t)}))}else{var a=this.tracks[e].default?"default":"subtitles"+e;r.trigger(i.Events.CUES_PARSED,{type:"subtitles",cues:t,track:a})}},e.onFragDecrypted=function(t,e){var r=e.frag;if(r.type===c.PlaylistLevelType.SUBTITLE){if(!Object(n.isFiniteNumber)(this.initPTS[r.cc]))return void this.unparsedVttFrags.push(e);this.onFragLoaded(i.Events.FRAG_LOADED,e)}},e.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},e.onFragParsingUserdata=function(t,e){var r=this.cea608Parser1,n=this.cea608Parser2;if(this.enabled&&r&&n)for(var i=0;i<e.samples.length;i++){var a=e.samples[i].bytes;if(a){var o=this.extractCea608Data(a);r.addData(e.samples[i].pts,o[0]),n.addData(e.samples[i].pts,o[1])}}},e.onBufferFlushing=function(t,e){var r=e.startOffset,n=e.endOffset,i=e.endOffsetSubtitles,a=e.type,o=this.media;if(o&&!(o.currentTime<n)){if(!a||"video"===a){var s=this.captionsTracks;Object.keys(s).forEach((function(t){return Object(u.removeCuesInRange)(s[t],r,n)}))}if(this.config.renderTextTracksNatively&&0===r&&void 0!==i){var l=this.textTracks;Object.keys(l).forEach((function(t){return Object(u.removeCuesInRange)(l[t],r,i)}))}}},e.extractCea608Data=function(t){for(var e=31&t[0],r=2,n=[[],[]],i=0;i<e;i++){var a=t[r++],o=127&t[r++],s=127&t[r++],u=3&a;0===o&&0===s||0!==(4&a)&&(0!==u&&1!==u||(n[u].push(o),n[u].push(s)))}return n},t}();function h(t,e){return t&&t.label===e.name&&!(t.textTrack1||t.textTrack2)}},
1"./src/crypt/aes-crypto.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return n}));var n=function(){function t(t,e){this.subtle=void 0,this.aesIV=void 0,this.subtle=t,this.aesIV=e}return t.prototype.decrypt=function(t,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,t)},t}()},
vendor: 6,052 bytes, line 1
1"./src/crypt/aes-decryptor.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"removePadding",(function(){return i})),r.d(e,"default",(function(){return a}));var n=r("./src/utils/typed-array.ts");function i(t){var e=t.byteLength,r=e&&new DataView(t.buffer).getUint8(e-1);return r?Object(n.sliceUint8)(t,0,e-r):t}var a=function(){function t(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}var e=t.prototype;return e.uint8ArrayToUint32Array_=function(t){for(var e=new DataView(t),r=new Uint32Array(4),n=0;n<4;n++)r[n]=e.getUint32(4*n);return r},e.initTable=function(){var t=this.sBox,e=this.invSBox,r=this.subMix,n=r[0],i=r[1],a=r[2],o=r[3],s=this.invSubMix,u=s[0],l=s[1],c=s[2],f=s[3],d=new Uint32Array(256),h=0,p=0,v=0;for(v=0;v<256;v++)d[v]=v<128?v<<1:v<<1^283;for(v=0;v<256;v++){var m=p^p<<1^p<<2^p<<3^p<<4;m=m>>>8^255&m^99,t[h]=m,e[m]=h;var y=d[h],g=d[y],b=d[g],E=257*d[m]^16843008*m;n[h]=E<<24|E>>>8,i[h]=E<<16|E>>>16,a[h]=E<<8|E>>>24,o[h]=E,E=16843009*b^65537*g^257*y^16843008*h,u[m]=E<<24|E>>>8,l[m]=E<<16|E>>>16,c[m]=E<<8|E>>>24,f[m]=E,h?(h=y^d[d[d[b^y]]],p^=d[d[p]]):h=p=1}},e.expandKey=function(t){for(var e=this.uint8ArrayToUint32Array_(t),r=!0,n=0;n<e.length&&r;)r=e[n]===this.key[n],n++;if(!r){this.key=e;var i=this.keySize=e.length;if(4!==i&&6!==i&&8!==i)throw new Error("Invalid aes key size="+i);var a,o,s,u,l=this.ksRows=4*(i+6+1),c=this.keySchedule=new Uint32Array(l),f=this.invKeySchedule=new Uint32Array(l),d=this.sBox,h=this.rcon,p=this.invSubMix,v=p[0],m=p[1],y=p[2],g=p[3];for(a=0;a<l;a++)a<i?s=c[a]=e[a]:(u=s,a%i===0?(u=d[(u=u<<8|u>>>24)>>>24]<<24|d[u>>>16&255]<<16|d[u>>>8&255]<<8|d[255&u],u^=h[a/i|0]<<24):i>6&&a%i===4&&(u=d[u>>>24]<<24|d[u>>>16&255]<<16|d[u>>>8&255]<<8|d[255&u]),c[a]=s=(c[a-i]^u)>>>0);for(o=0;o<l;o++)a=l-o,u=3&o?c[a]:c[a-4],f[o]=o<4||a<=4?u:v[d[u>>>24]]^m[d[u>>>16&255]]^y[d[u>>>8&255]]^g[d[255&u]],f[o]=f[o]>>>0}},e.networkToHostOrderSwap=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24},e.decrypt=function(t,e,r){for(var n,i,a,o,s,u,l,c,f,d,h,p,v,m,y=this.keySize+6,g=this.invKeySchedule,b=this.invSBox,E=this.invSubMix,T=E[0],w=E[1],S=E[2],O=E[3],k=this.uint8ArrayToUint32Array_(r),A=k[0],P=k[1],x=k[2],L=k[3],_=new Int32Array(t),D=new Int32Array(_.length),C=this.networkToHostOrderSwap;e<_.length;){for(f=C(_[e]),d=C(_[e+1]),h=C(_[e+2]),p=C(_[e+3]),s=f^g[0],u=p^g[1],l=h^g[2],c=d^g[3],v=4,m=1;m<y;m++)n=T[s>>>24]^w[u>>16&255]^S[l>>8&255]^O[255&c]^g[v],i=T[u>>>24]^w[l>>16&255]^S[c>>8&255]^O[255&s]^g[v+1],a=T[l>>>24]^w[c>>16&255]^S[s>>8&255]^O[255&u]^g[v+2],o=T[c>>>24]^w[s>>16&255]^S[u>>8&255]^O[255&l]^g[v+3],s=n,u=i,l=a,c=o,v+=4;n=b[s>>>24]<<24^b[u>>16&255]<<16^b[l>>8&255]<<8^b[255&c]^g[v],i=b[u>>>24]<<24^b[l>>16&255]<<16^b[c>>8&255]<<8^b[255&s]^g[v+1],a=b[l>>>24]<<24^b[c>>16&255]<<16^b[s>>8&255]<<8^b[255&u]^g[v+2],o=b[c>>>24]<<24^b[s>>16&255]<<16^b[u>>8&255]<<8^b[255&l]^g[v+3],D[e]=C(n^A),D[e+1]=C(o^P),D[e+2]=C(a^x),D[e+3]=C(i^L),A=f,P=d,x=h,L=p,e+=4}return D.buffer},t}()},"./src/crypt/decrypter.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return l}));var n=r("./src/crypt/aes-crypto.ts"),i=r("./src/crypt/fast-aes-key.ts"),a=r("./src/crypt/aes-decryptor.ts"),o=r("./src/utils/logger.ts"),s=r("./src/utils/mp4-tools.ts"),u=r("./src/utils/typed-array.ts"),l=function(){function t(t,e,r){var n=(void 0===r?{}:r).removePKCS7Padding,i=void 0===n||n;if(this.logEnabled=!0,this.observer=void 0,this.config=void 0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.observer=t,this.config=e,this.removePKCS7Padding=i,i)try{var a=self.crypto;a&&(this.subtle=a.subtle||a.webkitSubtle)}catch(o){}null===this.subtle&&(this.config.enableSoftwareAES=!0)}var e=t.prototype;return e.destroy=function(){this.observer=null},e.isSync=function(){return this.config.enableSoftwareAES},e.flush=function(){var t=this.currentResult;if(t){var e=new Uint8Array(t);return this.reset(),this.removePKCS7Padding?Object(a.removePadding)(e):e}this.reset()},e.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},e.decrypt=function(t,e,r,n){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(t),e,r);var i=this.flush();i&&n(i.buffer)}else this.webCryptoDecrypt(new Uint8Array(t),e,r).then(n)},e.softwareDecrypt=function(t,e,r){var n=this.currentIV,i=this.currentResult,o=this.remainderData;this.logOnce("JS AES decrypt"),o&&(t=Object(s.appendUint8Array)(o,t),this.remainderData=null);var l=this.getValidChunk(t);if(!l.length)return null;n&&(r=n);var c=this.softwareDecrypter;c||(c=this.softwareDecrypter=new a.default),c.expandKey(e);var f=i;return this.currentResult=c.decrypt(l.buffer,0,r),this.currentIV=Object(u.sliceUint8)(l,-16).buffer,f||null},e.webCryptoDecrypt=function(t,e,r){var a=this,o=this.subtle;return this.key===e&&this.fastAesKey||(this.key=e,this.fastAesKey=new i.default(o,e)),this.fastAesKey.expandKey().then((function(e){return o?new n.default(o,r).decrypt(t.buffer,e):Promise.reject(new Error("web crypto not initialized"))})).catch((function(n){return a.onWebCryptoError(n,t,e,r)}))},e.onWebCryptoError=function(t,e,r,n){return o.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",t),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(e,r,n)},e.getValidChunk=function(t){var e=t,r=t.length-t.length%16;return r!==t.length&&(e=Object(u.sliceUint8)(t,0,r),this.remainderData=Object(u.sliceUint8)(t,r)),e},e.logOnce=function(t){this.logEnabled&&(o.logger.log("[decrypter.ts]: "+t),this.logEnabled=!1)},t}()},
1"./src/crypt/fast-aes-key.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return n}));var n=function(){function t(t,e){this.subtle=void 0,this.key=void 0,this.subtle=t,this.key=e}return t.prototype.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},t}()},
vendor: 6,620 bytes, line 1
1"./src/demux/aacdemuxer.ts":function(t,e,r){"use strict";r.r(e);var n=r("./src/demux/base-audio-demuxer.ts"),i=r("./src/demux/adts.ts"),a=r("./src/utils/logger.ts"),o=r("./src/demux/id3.ts");function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}var u=function(t){var e,r;function n(e,r){var n;return(n=t.call(this)||this).observer=void 0,n.config=void 0,n.observer=e,n.config=r,n}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,s(e,r);var u=n.prototype;return u.resetInitSegment=function(e,r,n){t.prototype.resetInitSegment.call(this,e,r,n),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:e,duration:n,inputTimeScale:9e4,dropped:0}},n.probe=function(t){if(!t)return!1;for(var e=(o.getID3Data(t,0)||[]).length,r=t.length;e<r;e++)if(i.probe(t,e))return a.logger.log("ADTS sync word found !"),!0;return!1},u.canParse=function(t,e){return i.canParse(t,e)},u.appendFrame=function(t,e,r){i.initTrackConfig(t,this.observer,e,r,t.manifestCodec);var n=i.appendFrame(t,e,r,this.initPTS,this.frameIndex);if(n&&0===n.missing)return n},n}(n.default);u.minProbeByteLength=9,e.default=u},"./src/demux/adts.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"getAudioConfig",(function(){return o})),r.d(e,"isHeaderPattern",(function(){return s})),r.d(e,"getHeaderLength",(function(){return u})),r.d(e,"getFullFrameLength",(function(){return l})),r.d(e,"canGetFrameLength",(function(){return c})),r.d(e,"isHeader",(function(){return f})),r.d(e,"canParse",(function(){return d})),r.d(e,"probe",(function(){return h})),r.d(e,"initTrackConfig",(function(){return p})),r.d(e,"getFrameDuration",(function(){return v})),r.d(e,"parseFrameHeader",(function(){return m})),r.d(e,"appendFrame",(function(){return y}));var n=r("./src/utils/logger.ts"),i=r("./src/errors.ts"),a=r("./src/events.ts");function o(t,e,r,o){var s,u,l,c,f=navigator.userAgent.toLowerCase(),d=o,h=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];s=1+((192&e[r+2])>>>6);var p=(60&e[r+2])>>>2;if(!(p>h.length-1))return l=(1&e[r+2])<<2,l|=(192&e[r+3])>>>6,n.logger.log("manifest codec:"+o+", ADTS type:"+s+", samplingIndex:"+p),/firefox/i.test(f)?p>=6?(s=5,c=new Array(4),u=p-3):(s=2,c=new Array(2),u=p):-1!==f.indexOf("android")?(s=2,c=new Array(2),u=p):(s=5,c=new Array(4),o&&(-1!==o.indexOf("mp4a.40.29")||-1!==o.indexOf("mp4a.40.5"))||!o&&p>=6?u=p-3:((o&&-1!==o.indexOf("mp4a.40.2")&&(p>=6&&1===l||/vivaldi/i.test(f))||!o&&1===l)&&(s=2,c=new Array(2)),u=p)),c[0]=s<<3,c[0]|=(14&p)>>1,c[1]|=(1&p)<<7,c[1]|=l<<3,5===s&&(c[1]|=(14&u)>>1,c[2]=(1&u)<<7,c[2]|=8,c[3]=0),{config:c,samplerate:h[p],channelCount:l,codec:"mp4a.40."+s,manifestCodec:d};t.trigger(a.Events.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+p})}function s(t,e){return 255===t[e]&&240===(246&t[e+1])}function u(t,e){return 1&t[e+1]?7:9}function l(t,e){return(3&t[e+3])<<11|t[e+4]<<3|(224&t[e+5])>>>5}function c(t,e){return e+5<t.length}function f(t,e){return e+1<t.length&&s(t,e)}function d(t,e){return c(t,e)&&s(t,e)&&l(t,e)<=t.length-e}function h(t,e){if(f(t,e)){var r=u(t,e);if(e+r>=t.length)return!1;var n=l(t,e);if(n<=r)return!1;var i=e+n;return i===t.length||f(t,i)}return!1}function p(t,e,r,i,a){if(!t.samplerate){var s=o(e,r,i,a);if(!s)return;t.config=s.config,t.samplerate=s.samplerate,t.channelCount=s.channelCount,t.codec=s.codec,t.manifestCodec=s.manifestCodec,n.logger.log("parsed codec:"+t.codec+", rate:"+s.samplerate+", channels:"+s.channelCount)}}function v(t){return 9216e4/t}function m(t,e,r,n,i){var a=u(t,e),o=l(t,e);if((o-=a)>0)return{headerLength:a,frameLength:o,stamp:r+n*i}}function y(t,e,r,n,i){var a=m(e,r,n,i,v(t.samplerate));if(a){var o,s=a.frameLength,u=a.headerLength,l=a.stamp,c=u+s,f=Math.max(0,r+c-e.length);f?(o=new Uint8Array(c-u)).set(e.subarray(r+u,e.length),0):o=e.subarray(r+u,r+c);var d={unit:o,pts:l};return f||t.samples.push(d),{sample:d,length:c,missing:f}}}},"./src/demux/base-audio-demuxer.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"initPTSFn",(function(){return l}));var n=r("./src/polyfills/number.ts"),i=r("./src/demux/id3.ts"),a=r("./src/demux/dummy-demuxed-track.ts"),o=r("./src/utils/mp4-tools.ts"),s=r("./src/utils/typed-array.ts"),u=function(){function t(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var e=t.prototype;return e.resetInitSegment=function(t,e,r){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},e.resetTimeStamp=function(){},e.resetContiguity=function(){},e.canParse=function(t,e){return!1},e.appendFrame=function(t,e,r){},e.demux=function(t,e){this.cachedData&&(t=Object(o.appendUint8Array)(this.cachedData,t),this.cachedData=null);var r,n,u=i.getID3Data(t,0),c=u?u.length:0,f=this._audioTrack,d=this._id3Track,h=u?i.getTimeStamp(u):void 0,p=t.length;for(0!==this.frameIndex&&null!==this.initPTS||(this.initPTS=l(h,e)),u&&u.length>0&&d.samples.push({pts:this.initPTS,dts:this.initPTS,data:u}),n=this.initPTS;c<p;){if(this.canParse(t,c)){var v=this.appendFrame(f,t,c);v?(this.frameIndex++,n=v.sample.pts,r=c+=v.length):c=p}else i.canParse(t,c)?(u=i.getID3Data(t,c),d.samples.push({pts:n,dts:n,data:u}),r=c+=u.length):c++;if(c===p&&r!==p){var m=Object(s.sliceUint8)(t,r);this.cachedData?this.cachedData=Object(o.appendUint8Array)(this.cachedData,m):this.cachedData=m}}return{audioTrack:f,avcTrack:Object(a.dummyTrack)(),id3Track:d,textTrack:Object(a.dummyTrack)()}},e.demuxSampleAes=function(t,e,r){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},e.flush=function(t){var e=this.cachedData;return e&&(this.cachedData=null,this.demux(e,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(a.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(a.dummyTrack)()}},e.destroy=function(){},t}(),l=function(t,e){return Object(n.isFiniteNumber)(t)?90*t:9e4*e};e.default=u},"./src/demux/chunk-cache.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return n}));var n=function(){function t(){this.chunks=[],this.dataLength=0}var e=t.prototype;return e.push=function(t){this.chunks.push(t),this.dataLength+=t.length},e.flush=function(){var t,e=this.chunks,r=this.dataLength;return e.length?(t=1===e.length?e[0]:function(t,e){for(var r=new Uint8Array(e),n=0,i=0;i<t.length;i++){var a=t[i];r.set(a,n),n+=a.length}return r}(e,r),this.reset(),t):new Uint8Array(0)},e.reset=function(){this.chunks.length=0,this.dataLength=0},t}()},
1"./src/demux/dummy-demuxed-track.ts":function(t,e,r){"use strict";function n(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}r.r(e),r.d(e,"dummyTrack",(function(){return n}))},
vendor: 12,002 bytes, line 1
1"./src/demux/exp-golomb.ts":function(t,e,r){"use strict";r.r(e);var n=r("./src/utils/logger.ts"),i=function(){function t(t){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}var e=t.prototype;return e.loadWord=function(){var t=this.data,e=this.bytesAvailable,r=t.byteLength-e,n=new Uint8Array(4),i=Math.min(4,e);if(0===i)throw new Error("no bytes available");n.set(t.subarray(r,r+i)),this.word=new DataView(n.buffer).getUint32(0),this.bitsAvailable=8*i,this.bytesAvailable-=i},e.skipBits=function(t){var e;this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,t-=(e=t>>3)>>3,this.bytesAvailable-=e,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)},e.readBits=function(t){var e=Math.min(this.bitsAvailable,t),r=this.word>>>32-e;return t>32&&n.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=e,this.bitsAvailable>0?this.word<<=e:this.bytesAvailable>0&&this.loadWord(),(e=t-e)>0&&this.bitsAvailable?r<<e|this.readBits(e):r},e.skipLZ=function(){var t;for(t=0;t<this.bitsAvailable;++t)if(0!==(this.word&2147483648>>>t))return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()},e.skipUEG=function(){this.skipBits(1+this.skipLZ())},e.skipEG=function(){this.skipBits(1+this.skipLZ())},e.readUEG=function(){var t=this.skipLZ();return this.readBits(t+1)-1},e.readEG=function(){var t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)},e.readBoolean=function(){return 1===this.readBits(1)},e.readUByte=function(){return this.readBits(8)},e.readUShort=function(){return this.readBits(16)},e.readUInt=function(){return this.readBits(32)},e.skipScalingList=function(t){for(var e=8,r=8,n=0;n<t;n++)0!==r&&(r=(e+this.readEG()+256)%256),e=0===r?e:r},e.readSPS=function(){var t,e,r,n=0,i=0,a=0,o=0,s=this.readUByte.bind(this),u=this.readBits.bind(this),l=this.readUEG.bind(this),c=this.readBoolean.bind(this),f=this.skipBits.bind(this),d=this.skipEG.bind(this),h=this.skipUEG.bind(this),p=this.skipScalingList.bind(this);s();var v=s();if(u(5),f(3),s(),h(),100===v||110===v||122===v||244===v||44===v||83===v||86===v||118===v||128===v){var m=l();if(3===m&&f(1),h(),h(),f(1),c())for(e=3!==m?8:12,r=0;r<e;r++)c()&&p(r<6?16:64)}h();var y=l();if(0===y)l();else if(1===y)for(f(1),d(),d(),t=l(),r=0;r<t;r++)d();h(),f(1);var g=l(),b=l(),E=u(1);0===E&&f(1),f(1),c()&&(n=l(),i=l(),a=l(),o=l());var T=[1,1];if(c()&&c())switch(s()){case 1:T=[1,1];break;case 2:T=[12,11];break;case 3:T=[10,11];break;case 4:T=[16,11];break;case 5:T=[40,33];break;case 6:T=[24,11];break;case 7:T=[20,11];break;case 8:T=[32,11];break;case 9:T=[80,33];break;case 10:T=[18,11];break;case 11:T=[15,11];break;case 12:T=[64,33];break;case 13:T=[160,99];break;case 14:T=[4,3];break;case 15:T=[3,2];break;case 16:T=[2,1];break;case 255:T=[s()<<8|s(),s()<<8|s()]}return{width:Math.ceil(16*(g+1)-2*n-2*i),height:(2-E)*(b+1)*16-(E?2:4)*(a+o),pixelRatio:T}},e.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},t}();e.default=i},"./src/demux/id3.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"isHeader",(function(){return i})),r.d(e,"isFooter",(function(){return a})),r.d(e,"getID3Data",(function(){return o})),r.d(e,"canParse",(function(){return u})),r.d(e,"getTimeStamp",(function(){return l})),r.d(e,"isTimeStampFrame",(function(){return c})),r.d(e,"getID3Frames",(function(){return d})),r.d(e,"decodeFrame",(function(){return h})),r.d(e,"utf8ArrayToStr",(function(){return g})),r.d(e,"testables",(function(){return b}));var n,i=function(t,e){return e+10<=t.length&&73===t[e]&&68===t[e+1]&&51===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},a=function(t,e){return e+10<=t.length&&51===t[e]&&68===t[e+1]&&73===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},o=function(t,e){for(var r=e,n=0;i(t,e);)n+=10,n+=s(t,e+6),a(t,e+10)&&(n+=10),e+=n;if(n>0)return t.subarray(r,r+n)},s=function(t,e){var r=0;return r=(127&t[e])<<21,r|=(127&t[e+1])<<14,r|=(127&t[e+2])<<7,r|=127&t[e+3]},u=function(t,e){return i(t,e)&&s(t,e+6)+10<=t.length-e},l=function(t){for(var e=d(t),r=0;r<e.length;r++){var n=e[r];if(c(n))return y(n)}},c=function(t){return t&&"PRIV"===t.key&&"com.apple.streaming.transportStreamTimestamp"===t.info},f=function(t){var e=String.fromCharCode(t[0],t[1],t[2],t[3]),r=s(t,4);return{type:e,size:r,data:t.subarray(10,10+r)}},d=function(t){for(var e=0,r=[];i(t,e);){for(var n=s(t,e+6),o=(e+=10)+n;e+8<o;){var u=f(t.subarray(e)),l=h(u);l&&r.push(l),e+=u.size+10}a(t,e)&&(e+=10)}return r},h=function(t){return"PRIV"===t.type?p(t):"W"===t.type[0]?m(t):v(t)},p=function(t){if(!(t.size<2)){var e=g(t.data,!0),r=new Uint8Array(t.data.subarray(e.length+1));return{key:t.type,info:e,data:r.buffer}}},v=function(t){if(!(t.size<2)){if("TXXX"===t.type){var e=1,r=g(t.data.subarray(e),!0);e+=r.length+1;var n=g(t.data.subarray(e));return{key:t.type,info:r,data:n}}var i=g(t.data.subarray(1));return{key:t.type,data:i}}},m=function(t){if("WXXX"===t.type){if(t.size<2)return;var e=1,r=g(t.data.subarray(e),!0);e+=r.length+1;var n=g(t.data.subarray(e));return{key:t.type,info:r,data:n}}var i=g(t.data);return{key:t.type,data:i}},y=function(t){if(8===t.data.byteLength){var e=new Uint8Array(t.data),r=1&e[3],n=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return n/=45,r&&(n+=47721858.84),Math.round(n)}},g=function(t,e){void 0===e&&(e=!1);var r=E();if(r){var n=r.decode(t);if(e){var i=n.indexOf("\0");return-1!==i?n.substring(0,i):n}return n.replace(/\0/g,"")}for(var a,o,s,u=t.length,l="",c=0;c<u;){if(0===(a=t[c++])&&e)return l;if(0!==a&&3!==a)switch(a>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:l+=String.fromCharCode(a);break;case 12:case 13:o=t[c++],l+=String.fromCharCode((31&a)<<6|63&o);break;case 14:o=t[c++],s=t[c++],l+=String.fromCharCode((15&a)<<12|(63&o)<<6|(63&s)<<0)}}return l},b={decodeTextFrame:v};function E(){return n||"undefined"===typeof self.TextDecoder||(n=new self.TextDecoder("utf-8")),n}},"./src/demux/mp3demuxer.ts":function(t,e,r){"use strict";r.r(e);var n=r("./src/demux/base-audio-demuxer.ts"),i=r("./src/demux/id3.ts"),a=r("./src/utils/logger.ts"),o=r("./src/demux/mpegaudio.ts");function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}var u=function(t){var e,r;function n(){return t.apply(this,arguments)||this}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,s(e,r);var u=n.prototype;return u.resetInitSegment=function(e,r,n){t.prototype.resetInitSegment.call(this,e,r,n),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:e,duration:n,inputTimeScale:9e4,dropped:0}},n.probe=function(t){if(!t)return!1;for(var e=(i.getID3Data(t,0)||[]).length,r=t.length;e<r;e++)if(o.probe(t,e))return a.logger.log("MPEG Audio sync word found !"),!0;return!1},u.canParse=function(t,e){return o.canParse(t,e)},u.appendFrame=function(t,e,r){if(null!==this.initPTS)return o.appendFrame(t,e,r,this.initPTS,this.frameIndex)},n}(n.default);u.minProbeByteLength=4,e.default=u},"./src/demux/mp4demuxer.ts":function(t,e,r){"use strict";r.r(e);var n=r("./src/utils/mp4-tools.ts"),i=r("./src/demux/dummy-demuxed-track.ts"),a=function(){function t(t,e){this.remainderData=null,this.config=void 0,this.config=e}var e=t.prototype;return e.resetTimeStamp=function(){},e.resetInitSegment=function(){},e.resetContiguity=function(){},t.probe=function(t){return Object(n.findBox)({data:t,start:0,end:Math.min(t.length,16384)},["moof"]).length>0},e.demux=function(t){var e=t,r=Object(i.dummyTrack)();if(this.config.progressive){this.remainderData&&(e=Object(n.appendUint8Array)(this.remainderData,t));var a=Object(n.segmentValidRange)(e);this.remainderData=a.remainder,r.samples=a.valid||new Uint8Array}else r.samples=e;return{audioTrack:Object(i.dummyTrack)(),avcTrack:r,id3Track:Object(i.dummyTrack)(),textTrack:Object(i.dummyTrack)()}},e.flush=function(){var t=Object(i.dummyTrack)();return t.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(i.dummyTrack)(),avcTrack:t,id3Track:Object(i.dummyTrack)(),textTrack:Object(i.dummyTrack)()}},e.demuxSampleAes=function(t,e,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},e.destroy=function(){},t}();a.minProbeByteLength=1024,e.default=a},"./src/demux/mpegaudio.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"appendFrame",(function(){return u})),r.d(e,"parseHeader",(function(){return l})),r.d(e,"isHeaderPattern",(function(){return c})),r.d(e,"isHeader",(function(){return f})),r.d(e,"canParse",(function(){return d})),r.d(e,"probe",(function(){return h}));var n=null,i=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],a=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],o=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],s=[0,1,1,4];function u(t,e,r,n,i){if(!(r+24>e.length)){var a=l(e,r);if(a&&r+a.frameLength<=e.length){var o=n+i*(9e4*a.samplesPerFrame/a.sampleRate),s={unit:e.subarray(r,r+a.frameLength),pts:o,dts:o};return t.config=[],t.channelCount=a.channelCount,t.samplerate=a.sampleRate,t.samples.push(s),{sample:s,length:a.frameLength,missing:0}}}}function l(t,e){var r=t[e+1]>>3&3,u=t[e+1]>>1&3,l=t[e+2]>>4&15,c=t[e+2]>>2&3;if(1!==r&&0!==l&&15!==l&&3!==c){var f=t[e+2]>>1&1,d=t[e+3]>>6,h=1e3*i[14*(3===r?3-u:3===u?3:4)+l-1],p=a[3*(3===r?0:2===r?1:2)+c],v=3===d?1:2,m=o[r][u],y=s[u],g=8*m*y,b=Math.floor(m*h/p+f)*y;if(null===n){var E=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);n=E?parseInt(E[1]):0}return!!n&&n<=87&&2===u&&h>=224e3&&0===d&&(t[e+3]=128|t[e+3]),{sampleRate:p,channelCount:v,frameLength:b,samplesPerFrame:g}}}function c(t,e){return 255===t[e]&&224===(224&t[e+1])&&0!==(6&t[e+1])}function f(t,e){return e+1<t.length&&c(t,e)}function d(t,e){return c(t,e)&&4<=t.length-e}function h(t,e){if(e+1<t.length&&c(t,e)){var r=l(t,e),n=4;null!==r&&void 0!==r&&r.frameLength&&(n=r.frameLength);var i=e+n;return i===t.length||f(t,i)}return!1}},"./src/demux/sample-aes.ts":function(t,e,r){"use strict";r.r(e);var n=r("./src/crypt/decrypter.ts"),i=r("./src/demux/tsdemuxer.ts"),a=function(){function t(t,e,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new n.default(t,e,{removePKCS7Padding:!1})}var e=t.prototype;return e.decryptBuffer=function(t,e){this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer,e)},e.decryptAacSample=function(t,e,r,n){var i=t[e].unit,a=i.subarray(16,i.length-i.length%16),o=a.buffer.slice(a.byteOffset,a.byteOffset+a.length),s=this;this.decryptBuffer(o,(function(a){var o=new Uint8Array(a);i.set(o,16),n||s.decryptAacSamples(t,e+1,r)}))},e.decryptAacSamples=function(t,e,r){for(;;e++){if(e>=t.length)return void r();if(!(t[e].unit.length<32)){var n=this.decrypter.isSync();if(this.decryptAacSample(t,e,r,n),!n)return}}},e.getAvcEncryptedData=function(t){for(var e=16*Math.floor((t.length-48)/160)+16,r=new Int8Array(e),n=0,i=32;i<t.length-16;i+=160,n+=16)r.set(t.subarray(i,i+16),n);return r},e.getAvcDecryptedUnit=function(t,e){for(var r=new Uint8Array(e),n=0,i=32;i<t.length-16;i+=160,n+=16)t.set(r.subarray(n,n+16),i);return t},e.decryptAvcSample=function(t,e,r,n,a,o){var s=Object(i.discardEPB)(a.data),u=this.getAvcEncryptedData(s),l=this;this.decryptBuffer(u.buffer,(function(i){a.data=l.getAvcDecryptedUnit(s,i),o||l.decryptAvcSamples(t,e,r+1,n)}))},e.decryptAvcSamples=function(t,e,r,n){if(t instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;e++,r=0){if(e>=t.length)return void n();for(var i=t[e].units;!(r>=i.length);r++){var a=i[r];if(!(a.data.length<=48||1!==a.type&&5!==a.type)){var o=this.decrypter.isSync();if(this.decryptAvcSample(t,e,r,n,a,o),!o)return}}}},t}();e.default=a},
vendor: 4,413 bytes, line 1
1"./src/demux/transmuxer-interface.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return f}));var n=r("./node_modules/webworkify-webpack/index.js"),i=r("./src/events.ts"),a=r("./src/demux/transmuxer.ts"),o=r("./src/utils/logger.ts"),s=r("./src/errors.ts"),u=r("./src/utils/mediasource-helper.ts"),l=r("./node_modules/eventemitter3/index.js"),c=Object(u.getMediaSource)()||{isTypeSupported:function(){return!1}},f=function(){function t(t,e,r,u){var f=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=t,this.id=e,this.onTransmuxComplete=r,this.onFlush=u;var d=t.config,h=function(e,r){(r=r||{}).frag=f.frag,r.id=f.id,t.trigger(e,r)};this.observer=new l.EventEmitter,this.observer.on(i.Events.FRAG_DECRYPTED,h),this.observer.on(i.Events.ERROR,h);var p={mp4:c.isTypeSupported("video/mp4"),mpeg:c.isTypeSupported("audio/mpeg"),mp3:c.isTypeSupported('audio/mp4; codecs="mp3"')},v=navigator.vendor;if(d.enableWorker&&"undefined"!==typeof Worker){var m;o.logger.log("demuxing in webworker");try{m=this.worker=n("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),m.addEventListener("message",this.onwmsg),m.onerror=function(e){t.trigger(i.Events.ERROR,{type:s.ErrorTypes.OTHER_ERROR,details:s.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(e.message+"  ("+e.filename+":"+e.lineno+")")})},m.postMessage({cmd:"init",typeSupported:p,vendor:v,id:e,config:JSON.stringify(d)})}catch(y){o.logger.warn("Error in worker:",y),o.logger.error("Error while initializing DemuxerWorker, fallback to inline"),m&&self.URL.revokeObjectURL(m.objectURL),this.transmuxer=new a.default(this.observer,p,d,v,e),this.worker=null}}else this.transmuxer=new a.default(this.observer,p,d,v,e)}var e=t.prototype;return e.destroy=function(){var t=this.worker;if(t)t.removeEventListener("message",this.onwmsg),t.terminate(),this.worker=null;else{var e=this.transmuxer;e&&(e.destroy(),this.transmuxer=null)}var r=this.observer;r&&r.removeAllListeners(),this.observer=null},e.push=function(t,e,r,n,i,s,u,l,c,f){var d,h,p=this;c.transmuxing.start=self.performance.now();var v=this.transmuxer,m=this.worker,y=s?s.start:i.start,g=i.decryptdata,b=this.frag,E=!(b&&i.cc===b.cc),T=!(b&&c.level===b.level),w=b?c.sn-b.sn:-1,S=this.part?c.part-this.part.index:1,O=!T&&(1===w||0===w&&1===S),k=self.performance.now();(T||w||0===i.stats.parsing.start)&&(i.stats.parsing.start=k),!s||!S&&O||(s.stats.parsing.start=k);var A=!(b&&(null===(d=i.initSegment)||void 0===d?void 0:d.url)===(null===(h=b.initSegment)||void 0===h?void 0:h.url)),P=new a.TransmuxState(E,O,l,T,y,A);if(!O||E||A){o.logger.log("[transmuxer-interface, "+i.type+"]: Starting new transmux session for sn: "+c.sn+" p: "+c.part+" level: "+c.level+" id: "+c.id+"\n        discontinuity: "+E+"\n        trackSwitch: "+T+"\n        contiguous: "+O+"\n        accurateTimeOffset: "+l+"\n        timeOffset: "+y+"\n        initSegmentChange: "+A);var x=new a.TransmuxConfig(r,n,e,u,f);this.configureTransmuxer(x)}if(this.frag=i,this.part=s,m)m.postMessage({cmd:"demux",data:t,decryptdata:g,chunkMeta:c,state:P},t instanceof ArrayBuffer?[t]:[]);else if(v){var L=v.push(t,g,c,P);Object(a.isPromise)(L)?L.then((function(t){p.handleTransmuxComplete(t)})):this.handleTransmuxComplete(L)}},e.flush=function(t){var e=this;t.transmuxing.start=self.performance.now();var r=this.transmuxer,n=this.worker;if(n)n.postMessage({cmd:"flush",chunkMeta:t});else if(r){var i=r.flush(t);Object(a.isPromise)(i)?i.then((function(r){e.handleFlushResult(r,t)})):this.handleFlushResult(i,t)}},e.handleFlushResult=function(t,e){var r=this;t.forEach((function(t){r.handleTransmuxComplete(t)})),this.onFlush(e)},e.onWorkerMessage=function(t){var e=t.data,r=this.hls;switch(e.event){case"init":self.URL.revokeObjectURL(this.worker.objectURL);break;case"transmuxComplete":this.handleTransmuxComplete(e.data);break;case"flush":this.onFlush(e.data);break;default:e.data=e.data||{},e.data.frag=this.frag,e.data.id=this.id,r.trigger(e.event,e.data)}},e.configureTransmuxer=function(t){var e=this.worker,r=this.transmuxer;e?e.postMessage({cmd:"configure",config:t}):r&&r.configure(t)},e.handleTransmuxComplete=function(t){t.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(t)},t}()},
vendor: 7,693 bytes, line 1
1"./src/demux/transmuxer-worker.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return s}));var n=r("./src/demux/transmuxer.ts"),i=r("./src/events.ts"),a=r("./src/utils/logger.ts"),o=r("./node_modules/eventemitter3/index.js");function s(t){var e=new o.EventEmitter,r=function(e,r){t.postMessage({event:e,data:r})};e.on(i.Events.FRAG_DECRYPTED,r),e.on(i.Events.ERROR,r),t.addEventListener("message",(function(i){var o=i.data;switch(o.cmd){case"init":var s=JSON.parse(o.config);t.transmuxer=new n.default(e,o.typeSupported,s,o.vendor,o.id),Object(a.enableLogs)(s.debug),r("init",null);break;case"configure":t.transmuxer.configure(o.config);break;case"demux":var l=t.transmuxer.push(o.data,o.decryptdata,o.chunkMeta,o.state);Object(n.isPromise)(l)?l.then((function(e){u(t,e)})):u(t,l);break;case"flush":var f=o.chunkMeta,d=t.transmuxer.flush(f);Object(n.isPromise)(d)?d.then((function(e){c(t,e,f)})):c(t,d,f)}}))}function u(t,e){if((r=e.remuxResult).audio||r.video||r.text||r.id3||r.initSegment){var r,n=[],i=e.remuxResult,a=i.audio,o=i.video;a&&l(n,a),o&&l(n,o),t.postMessage({event:"transmuxComplete",data:e},n)}}function l(t,e){e.data1&&t.push(e.data1.buffer),e.data2&&t.push(e.data2.buffer)}function c(t,e,r){e.forEach((function(e){u(t,e)})),t.postMessage({event:"flush",data:r})}},"./src/demux/transmuxer.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return g})),r.d(e,"isPromise",(function(){return E})),r.d(e,"TransmuxConfig",(function(){return T})),r.d(e,"TransmuxState",(function(){return w}));var n,i=r("./src/events.ts"),a=r("./src/errors.ts"),o=r("./src/crypt/decrypter.ts"),s=r("./src/demux/aacdemuxer.ts"),u=r("./src/demux/mp4demuxer.ts"),l=r("./src/demux/tsdemuxer.ts"),c=r("./src/demux/mp3demuxer.ts"),f=r("./src/remux/mp4-remuxer.ts"),d=r("./src/remux/passthrough-remuxer.ts"),h=r("./src/demux/chunk-cache.ts"),p=r("./src/utils/mp4-tools.ts"),v=r("./src/utils/logger.ts");try{n=self.performance.now.bind(self.performance)}catch(S){v.logger.debug("Unable to use Performance API on this environment"),n=self.Date.now}var m=[{demux:l.default,remux:f.default},{demux:u.default,remux:d.default},{demux:s.default,remux:f.default},{demux:c.default,remux:f.default}],y=1024;m.forEach((function(t){var e=t.demux;y=Math.max(y,e.minProbeByteLength)}));var g=function(){function t(t,e,r,n,i){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new h.default,this.observer=t,this.typeSupported=e,this.config=r,this.vendor=n,this.id=i}var e=t.prototype;return e.configure=function(t){this.transmuxConfig=t,this.decrypter&&this.decrypter.reset()},e.push=function(t,e,r,i){var a=this,o=r.transmuxing;o.executeStart=n();var s=new Uint8Array(t),u=this.cache,l=this.config,c=this.currentTransmuxState,f=this.transmuxConfig;i&&(this.currentTransmuxState=i);var d=function(t,e){var r=null;return t.byteLength>0&&null!=e&&null!=e.key&&null!==e.iv&&null!=e.method&&(r=e),r}(s,e);if(d&&"AES-128"===d.method){var h=this.getDecrypter();if(!l.enableSoftwareAES)return this.decryptionPromise=h.webCryptoDecrypt(s,d.key.buffer,d.iv.buffer).then((function(t){var e=a.push(t,null,r);return a.decryptionPromise=null,e})),this.decryptionPromise;var v=h.softwareDecrypt(s,d.key.buffer,d.iv.buffer);if(!v)return o.executeEnd=n(),b(r);s=new Uint8Array(v)}var m=i||c,y=m.contiguous,g=m.discontinuity,E=m.trackSwitch,T=m.accurateTimeOffset,w=m.timeOffset,S=m.initSegmentChange,O=f.audioCodec,k=f.videoCodec,A=f.defaultInitPts,P=f.duration,x=f.initSegmentData;if((g||E||S)&&this.resetInitSegment(x,O,k,P),(g||S)&&this.resetInitialTimestamp(A),y||this.resetContiguity(),this.needsProbing(s,g,E)){if(u.dataLength){var L=u.flush();s=Object(p.appendUint8Array)(L,s)}this.configureTransmuxer(s,f)}var _=this.transmux(s,d,w,T,r),D=this.currentTransmuxState;return D.contiguous=!0,D.discontinuity=!1,D.trackSwitch=!1,o.executeEnd=n(),_},e.flush=function(t){var e=this,r=t.transmuxing;r.executeStart=n();var o=this.decrypter,s=this.cache,u=this.currentTransmuxState,l=this.decryptionPromise;if(l)return l.then((function(){return e.flush(t)}));var c=[],f=u.timeOffset;if(o){var d=o.flush();d&&c.push(this.push(d,null,t))}var h=s.dataLength;s.reset();var p=this.demuxer,v=this.remuxer;if(!p||!v)return h>=y&&this.observer.emit(i.Events.ERROR,i.Events.ERROR,{type:a.ErrorTypes.MEDIA_ERROR,details:a.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),r.executeEnd=n(),[b(t)];var m=p.flush(f);return E(m)?m.then((function(r){return e.flushRemux(c,r,t),c})):(this.flushRemux(c,m,t),c)},e.flushRemux=function(t,e,r){var i=e.audioTrack,a=e.avcTrack,o=e.id3Track,s=e.textTrack,u=this.currentTransmuxState,l=u.accurateTimeOffset,c=u.timeOffset;v.logger.log("[transmuxer.ts]: Flushed fragment "+r.sn+(r.part>-1?" p: "+r.part:"")+" of level "+r.level);var f=this.remuxer.remux(i,a,o,s,c,l,!0,this.id);t.push({remuxResult:f,chunkMeta:r}),r.transmuxing.executeEnd=n()},e.resetInitialTimestamp=function(t){var e=this.demuxer,r=this.remuxer;e&&r&&(e.resetTimeStamp(t),r.resetTimeStamp(t))},e.resetContiguity=function(){var t=this.demuxer,e=this.remuxer;t&&e&&(t.resetContiguity(),e.resetNextTimestamp())},e.resetInitSegment=function(t,e,r,n){var i=this.demuxer,a=this.remuxer;i&&a&&(i.resetInitSegment(e,r,n),a.resetInitSegment(t,e,r))},e.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},e.transmux=function(t,e,r,n,i){return e&&"SAMPLE-AES"===e.method?this.transmuxSampleAes(t,e,r,n,i):this.transmuxUnencrypted(t,r,n,i)},e.transmuxUnencrypted=function(t,e,r,n){var i=this.demuxer.demux(t,e,!1,!this.config.progressive),a=i.audioTrack,o=i.avcTrack,s=i.id3Track,u=i.textTrack;return{remuxResult:this.remuxer.remux(a,o,s,u,e,r,!1,this.id),chunkMeta:n}},e.transmuxSampleAes=function(t,e,r,n,i){var a=this;return this.demuxer.demuxSampleAes(t,e,r).then((function(t){return{remuxResult:a.remuxer.remux(t.audioTrack,t.avcTrack,t.id3Track,t.textTrack,r,n,!1,a.id),chunkMeta:i}}))},e.configureTransmuxer=function(t,e){for(var r,n=this.config,i=this.observer,a=this.typeSupported,o=this.vendor,s=e.audioCodec,l=e.defaultInitPts,c=e.duration,f=e.initSegmentData,h=e.videoCodec,p=0,y=m.length;p<y;p++)if(m[p].demux.probe(t)){r=m[p];break}r||(v.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),r={demux:u.default,remux:d.default});var g=this.demuxer,b=this.remuxer,E=r.remux,T=r.demux;b&&b instanceof E||(this.remuxer=new E(i,n,a,o)),g&&g instanceof T||(this.demuxer=new T(i,n,a),this.probe=T.probe),this.resetInitSegment(f,s,h,c),this.resetInitialTimestamp(l)},e.needsProbing=function(t,e,r){return!this.demuxer||!this.remuxer||e||r},e.getDecrypter=function(){var t=this.decrypter;return t||(t=this.decrypter=new o.default(this.observer,this.config)),t},t}(),b=function(t){return{remuxResult:{},chunkMeta:t}};function E(t){return"then"in t&&t.then instanceof Function}var T=function(t,e,r,n,i){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=t,this.videoCodec=e,this.initSegmentData=r,this.duration=n,this.defaultInitPts=i},w=function(t,e,r,n,i,a){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=t,this.contiguous=e,this.accurateTimeOffset=r,this.trackSwitch=n,this.timeOffset=i,this.initSegmentChange=a}},
vendor: 5,080 bytes, line 1
1"./src/demux/tsdemuxer.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"discardEPB",(function(){return E}));var n=r("./src/demux/adts.ts"),i=r("./src/demux/mpegaudio.ts"),a=r("./src/demux/exp-golomb.ts"),o=r("./src/demux/id3.ts"),s=r("./src/demux/sample-aes.ts"),u=r("./src/events.ts"),l=r("./src/utils/mp4-tools.ts"),c=r("./src/utils/logger.ts"),f=r("./src/errors.ts"),d={video:1,audio:2,id3:3,text:4},h=function(){function t(t,e,r){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=t,this.config=e,this.typeSupported=r}t.probe=function(e){var r=t.syncOffset(e);return!(r<0)&&(r&&c.logger.warn("MPEG2-TS detected but first sync word found @ offset "+r+", junk ahead ?"),!0)},t.syncOffset=function(t){for(var e=Math.min(1e3,t.length-564),r=0;r<e;){if(71===t[r]&&71===t[r+188]&&71===t[r+376])return r;r++}return-1},t.createTrack=function(t,e){return{container:"video"===t||"audio"===t?"video/mp2t":void 0,type:t,id:d[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===t?e:void 0}};var e=t.prototype;return e.resetInitSegment=function(e,r,n){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=t.createTrack("video",n),this._audioTrack=t.createTrack("audio",n),this._id3Track=t.createTrack("id3",n),this._txtTrack=t.createTrack("text",n),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=e,this.videoCodec=r,this._duration=n},e.resetTimeStamp=function(){},e.resetContiguity=function(){var t=this._audioTrack,e=this._avcTrack,r=this._id3Track;t&&(t.pesData=null),e&&(e.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},e.demux=function(e,r,n,i){var a;void 0===n&&(n=!1),void 0===i&&(i=!1),n||(this.sampleAes=null);var o=this._avcTrack,s=this._audioTrack,d=this._id3Track,h=o.pid,p=o.pesData,g=s.pid,b=d.pid,E=s.pesData,T=d.pesData,w=!1,S=this.pmtParsed,O=this._pmtId,k=e.length;if(this.remainderData&&(k=(e=Object(l.appendUint8Array)(this.remainderData,e)).length,this.remainderData=null),k<188&&!i)return this.remainderData=e,{audioTrack:s,avcTrack:o,id3Track:d,textTrack:this._txtTrack};var A=Math.max(0,t.syncOffset(e));(k-=(k+A)%188)<e.byteLength&&!i&&(this.remainderData=new Uint8Array(e.buffer,k,e.buffer.byteLength-k));for(var P=0,x=A;x<k;x+=188)if(71===e[x]){var L=!!(64&e[x+1]),_=((31&e[x+1])<<8)+e[x+2],D=void 0;if((48&e[x+3])>>4>1){if((D=x+5+e[x+4])===x+188)continue}else D=x+4;switch(_){case h:L&&(p&&(a=y(p))&&this.parseAVCPES(a,!1),p={data:[],size:0}),p&&(p.data.push(e.subarray(D,x+188)),p.size+=x+188-D);break;case g:L&&(E&&(a=y(E))&&(s.isAAC?this.parseAACPES(a):this.parseMPEGPES(a)),E={data:[],size:0}),E&&(E.data.push(e.subarray(D,x+188)),E.size+=x+188-D);break;case b:L&&(T&&(a=y(T))&&this.parseID3PES(a),T={data:[],size:0}),T&&(T.data.push(e.subarray(D,x+188)),T.size+=x+188-D);break;case 0:L&&(D+=e[D]+1),O=this._pmtId=v(e,D);break;case O:L&&(D+=e[D]+1);var C=m(e,D,!0===this.typeSupported.mpeg||!0===this.typeSupported.mp3,n);(h=C.avc)>0&&(o.pid=h),(g=C.audio)>0&&(s.pid=g,s.isAAC=C.isAAC),(b=C.id3)>0&&(d.pid=b),w&&!S&&(c.logger.log("reparse from beginning"),w=!1,x=A-188),S=this.pmtParsed=!0;break;case 17:case 8191:break;default:w=!0}}else P++;P>0&&this.observer.emit(u.Events.ERROR,u.Events.ERROR,{type:f.ErrorTypes.MEDIA_ERROR,details:f.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"Found "+P+" TS packet/s that do not start with 0x47"}),o.pesData=p,s.pesData=E,d.pesData=T;var R={audioTrack:s,avcTrack:o,id3Track:d,textTrack:this._txtTrack};return i&&this.extractRemainingSamples(R),R},e.flush=function(){var t,e=this.remainderData;return this.remainderData=null,t=e?this.demux(e,-1,!1,!0):{audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t},e.extractRemainingSamples=function(t){var e,r=t.audioTrack,n=t.avcTrack,i=t.id3Track,a=n.pesData,o=r.pesData,s=i.pesData;a&&(e=y(a))?(this.parseAVCPES(e,!0),n.pesData=null):n.pesData=a,o&&(e=y(o))?(r.isAAC?this.parseAACPES(e):this.parseMPEGPES(e),r.pesData=null):(null!==o&&void 0!==o&&o.size&&c.logger.log("last AAC PES packet truncated,might overlap between fragments"),r.pesData=o),s&&(e=y(s))?(this.parseID3PES(e),i.pesData=null):i.pesData=s},e.demuxSampleAes=function(t,e,r){var n=this.demux(t,r,!0,!this.config.progressive),i=this.sampleAes=new s.default(this.observer,this.config,e);return this.decrypt(n,i)},e.decrypt=function(t,e){return new Promise((function(r){var n=t.audioTrack,i=t.avcTrack;n.samples&&n.isAAC?e.decryptAacSamples(n.samples,0,(function(){i.samples?e.decryptAvcSamples(i.samples,0,0,(function(){r(t)})):r(t)})):i.samples&&e.decryptAvcSamples(i.samples,0,0,(function(){r(t)}))}
vendor: 6,739 bytes, line 1
1))},e.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},e.parseAVCPES=function(t,e){var r,n=this,i=this._avcTrack,s=this.parseAVCNALu(t.data),u=this.avcSample,l=!1;t.data=null,u&&s.length&&!i.audFound&&(g(u,i),u=this.avcSample=p(!1,t.pts,t.dts,"")),s.forEach((function(e){switch(e.type){case 1:r=!0,u||(u=n.avcSample=p(!0,t.pts,t.dts,"")),u.frame=!0;var s=e.data;if(l&&s.length>4){var c=new a.default(s).readSliceType();2!==c&&4!==c&&7!==c&&9!==c||(u.key=!0)}break;case 5:r=!0,u||(u=n.avcSample=p(!0,t.pts,t.dts,"")),u.key=!0,u.frame=!0;break;case 6:r=!0;var f=new a.default(E(e.data));f.readUByte();for(var d=0,h=0,v=!1,m=0;!v&&f.bytesAvailable>1;){d=0;do{d+=m=f.readUByte()}while(255===m);h=0;do{h+=m=f.readUByte()}while(255===m);if(4===d&&0!==f.bytesAvailable){if(v=!0,181===f.readUByte()&&49===f.readUShort()&&1195456820===f.readUInt()&&3===f.readUByte()){for(var y=f.readUByte(),T=31&y,w=[y,f.readUByte()],S=0;S<T;S++)w.push(f.readUByte()),w.push(f.readUByte()),w.push(f.readUByte());b(n._txtTrack.samples,{type:3,pts:t.pts,bytes:w})}}else if(5===d&&0!==f.bytesAvailable){if(v=!0,h>16){for(var O=[],k=0;k<16;k++)O.push(f.readUByte().toString(16)),3!==k&&5!==k&&7!==k&&9!==k||O.push("-");for(var A=h-16,P=new Uint8Array(A),x=0;x<A;x++)P[x]=f.readUByte();b(n._txtTrack.samples,{pts:t.pts,payloadType:d,uuid:O.join(""),userData:Object(o.utf8ArrayToStr)(P),userDataBytes:P})}}else if(h<f.bytesAvailable)for(var L=0;L<h;L++)f.readUByte()}break;case 7:if(r=!0,l=!0,!i.sps){var _=new a.default(e.data).readSPS();i.width=_.width,i.height=_.height,i.pixelRatio=_.pixelRatio,i.sps=[e.data],i.duration=n._duration;for(var D=e.data.subarray(1,4),C="avc1.",R=0;R<3;R++){var I=D[R].toString(16);I.length<2&&(I="0"+I),C+=I}i.codec=C}break;case 8:r=!0,i.pps||(i.pps=[e.data]);break;case 9:r=!1,i.audFound=!0,u&&g(u,i),u=n.avcSample=p(!1,t.pts,t.dts,"");break;case 12:r=!1;break;default:r=!1,u&&(u.debug+="unknown NAL "+e.type+" ")}u&&r&&u.units.push(e)})),e&&u&&(g(u,i),this.avcSample=null)},e.getLastNalUnit=function(){var t,e,r=this.avcSample;if(!r||0===r.units.length){var n=this._avcTrack.samples;r=n[n.length-1]}if(null!==(t=r)&&void 0!==t&&t.units){var i=r.units;e=i[i.length-1]}return e},e.parseAVCNALu=function(t){var e,r,n=t.byteLength,i=this._avcTrack,a=i.naluState||0,o=a,s=[],u=0,l=-1,c=0;for(-1===a&&(l=0,c=31&t[0],a=0,u=1);u<n;)if(e=t[u++],a)if(1!==a)if(e)if(1===e){if(l>=0){var f={data:t.subarray(l,u-a-1),type:c};s.push(f)}else{var d=this.getLastNalUnit();if(d&&(o&&u<=4-o&&d.state&&(d.data=d.data.subarray(0,d.data.byteLength-o)),(r=u-a-1)>0)){var h=new Uint8Array(d.data.byteLength+r);h.set(d.data,0),h.set(t.subarray(0,r),d.data.byteLength),d.data=h,d.state=0}}u<n?(l=u,c=31&t[u],a=0):a=-1}else a=0;else a=3;else a=e?0:2;else a=e?0:1;if(l>=0&&a>=0){var p={data:t.subarray(l,n),type:c,state:a};s.push(p)}if(0===s.length){var v=this.getLastNalUnit();if(v){var m=new Uint8Array(v.data.byteLength+t.byteLength);m.set(v.data,0),m.set(t,v.data.byteLength),v.data=m}}return i.naluState=a,s},e.parseAACPES=function(t){var e,r,i,a,o,s=0,l=this._audioTrack,d=this.aacOverFlow,h=t.data;if(d){this.aacOverFlow=null;var p=d.sample.unit.byteLength,v=Math.min(d.missing,p),m=p-v;d.sample.unit.set(h.subarray(0,v),m),l.samples.push(d.sample),s=d.missing}for(e=s,r=h.length;e<r-1&&!n.isHeader(h,e);e++);if(e===s||(e<r-1?(i="AAC PES did not start with ADTS header,offset:"+e,a=!1):(i="no ADTS header found in AAC PES",a=!0),c.logger.warn("parsing error:"+i),this.observer.emit(u.Events.ERROR,u.Events.ERROR,{type:f.ErrorTypes.MEDIA_ERROR,details:f.ErrorDetails.FRAG_PARSING_ERROR,fatal:a,reason:i}),!a)){if(n.initTrackConfig(l,this.observer,h,e,this.audioCodec),void 0!==t.pts)o=t.pts;else{if(!d)return void c.logger.warn("[tsdemuxer]: AAC PES unknown PTS");var y=n.getFrameDuration(l.samplerate);o=d.sample.pts+y}for(var g=0;e<r;){if(n.isHeader(h,e)){if(e+5<r){var b=n.appendFrame(l,h,e,o,g);if(b){if(!b.missing){e+=b.length,g++;continue}this.aacOverFlow=b}}break}e++}}},e.parseMPEGPES=function(t){var e=t.data,r=e.length,n=0,a=0,o=t.pts;if(void 0!==o)for(;a<r;)if(i.isHeader(e,a)){var s=i.appendFrame(this._audioTrack,e,a,o,n);if(!s)break;a+=s.length,n++}else a++;else c.logger.warn("[tsdemuxer]: MPEG PES unknown PTS")},e.parseID3PES=function(t){void 0!==t.pts?this._id3Track.samples.push(t):c.logger.warn("[tsdemuxer]: ID3 PES unknown PTS")},t}();function p(t,e,r,n){return{key:t,frame:!1,pts:e,dts:r,units:[],debug:n,length:0}}function v(t,e){return(31&t[e+10])<<8|t[e+11]}function m(t,e,r,n){var i={audio:-1,avc:-1,id3:-1,isAAC:!0},a=e+3+((15&t[e+1])<<8|t[e+2])-4;for(e+=12+((15&t[e+10])<<8|t[e+11]);e<a;){var o=(31&t[e+1])<<8|t[e+2];switch(t[e]){case 207:if(!n){c.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:-1===i.audio&&(i.audio=o);break;case 21:-1===i.id3&&(i.id3=o);break;case 219:if(!n){c.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:-1===i.avc&&(i.avc=o);break;case 3:case 4:r?-1===i.audio&&(i.audio=o,i.isAAC=!1):c.logger.log("MPEG audio found, not supported in this browser");break;case 36:c.logger.warn("Unsupported HEVC stream type found")}e+=5+((15&t[e+3])<<8|t[e+4])}return i}function y(t){var e,r,n,i,a,o=0,s=t.data;if(!t||0===t.size)return null;for(;s[0].length<19&&s.length>1;){var u=new Uint8Array(s[0].length+s[1].length);u.set(s[0]),u.set(s[1],s[0].length),s[0]=u,s.splice(1,1)}if(1===((e=s[0])[0]<<16)+(e[1]<<8)+e[2]){if((r=(e[4]<<8)+e[5])&&r>t.size-6)return null;var l=e[7];192&l&&(i=536870912*(14&e[9])+4194304*(255&e[10])+16384*(254&e[11])+128*(255&e[12])+(254&e[13])/2,64&l?i-(a=536870912*(14&e[14])+4194304*(255&e[15])+16384*(254&e[16])+128*(255&e[17])+(254&e[18])/2)>54e5&&(c.logger.warn(Math.round((i-a)/9e4)+"s delta between PTS and DTS, align them"),i=a):a=i);var f=(n=e[8])+9;if(t.size<=f)return null;t.size-=f;for(var d=new Uint8Array(t.size),h=0,p=s.length;h<p;h++){var v=(e=s[h]).byteLength;if(f){if(f>v){f-=v;continue}e=e.subarray(f),v-=f,f=0}d.set(e,o),o+=v}return r&&(r-=n+3),{data:d,pts:i,dts:a,len:r}}return null}function g(t,e){if(t.units.length&&t.frame){if(void 0===t.pts){var r=e.samples,n=r.length;if(!n)return void e.dropped++;var i=r[n-1];t.pts=i.pts,t.dts=i.dts}e.samples.push(t)}t.debug.length&&c.logger.log(t.pts+"/"+t.dts+":"+t.debug)}function b(t,e){var r=t.length;if(r>0){if(e.pts>=t[r-1].pts)t.push(e);else for(var n=r-1;n>=0;n--)if(e.pts<t[n].pts){t.splice(n,0,e);break}}else t.push(e)}function E(t){for(var e=t.byteLength,r=[],n=1;n<e-2;)0===t[n]&&0===t[n+1]&&3===t[n+2]?(r.push(n+2),n+=2):n++;if(0===r.length)return t;var i=e-r.length,a=new Uint8Array(i),o=0;for(n=0;n<i;o++,n++)o===r[0]&&(o++,r.shift()),a[n]=t[o];return a}h.minProbeByteLength=188,e.default=h},
1"./src/errors.ts":function(t,e,r){"use strict";var n,i;r.r(e),r.d(e,"ErrorTypes",(function(){return n})),r.d(e,"ErrorDetails",(function(){return i})),function(t){t.NETWORK_ERROR="networkError",t.MEDIA_ERROR="mediaError",t.KEY_SYSTEM_ERROR="keySystemError",t.MUX_ERROR="muxError",t.OTHER_ERROR="otherError"}(n||(n={})),function(t){t.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",t.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",t.KEY_SYSTEM_NO_SESSION="keySystemNoSession",t.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",t.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",t.MANIFEST_LOAD_ERROR="manifestLoadError",t.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",t.MANIFEST_PARSING_ERROR="manifestParsingError",t.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",t.LEVEL_EMPTY_ERROR="levelEmptyError",t.LEVEL_LOAD_ERROR="levelLoadError",t.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",t.LEVEL_SWITCH_ERROR="levelSwitchError",t.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",t.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",t.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",t.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",t.FRAG_LOAD_ERROR="fragLoadError",t.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",t.FRAG_DECRYPT_ERROR="fragDecryptError",t.FRAG_PARSING_ERROR="fragParsingError",t.REMUX_ALLOC_ERROR="remuxAllocError",t.KEY_LOAD_ERROR="keyLoadError",t.KEY_LOAD_TIMEOUT="keyLoadTimeOut",t.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",t.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",t.BUFFER_APPEND_ERROR="bufferAppendError",t.BUFFER_APPENDING_ERROR="bufferAppendingError",t.BUFFER_STALLED_ERROR="bufferStalledError",t.BUFFER_FULL_ERROR="bufferFullError",t.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",t.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",t.INTERNAL_EXCEPTION="internalException",t.INTERNAL_ABORTED="aborted",t.UNKNOWN="unknown"}(i||(i={}))},
1"./src/events.ts":function(t,e,r){"use strict";var n;r.r(e),r.d(e,"Events",(function(){return n})),function(t){t.MEDIA_ATTACHING="hlsMediaAttaching",t.MEDIA_ATTACHED="hlsMediaAttached",t.MEDIA_DETACHING="hlsMediaDetaching",t.MEDIA_DETACHED="hlsMediaDetached",t.BUFFER_RESET="hlsBufferReset",t.BUFFER_CODECS="hlsBufferCodecs",t.BUFFER_CREATED="hlsBufferCreated",t.BUFFER_APPENDING="hlsBufferAppending",t.BUFFER_APPENDED="hlsBufferAppended",t.BUFFER_EOS="hlsBufferEos",t.BUFFER_FLUSHING="hlsBufferFlushing",t.BUFFER_FLUSHED="hlsBufferFlushed",t.MANIFEST_LOADING="hlsManifestLoading",t.MANIFEST_LOADED="hlsManifestLoaded",t.MANIFEST_PARSED="hlsManifestParsed",t.LEVEL_SWITCHING="hlsLevelSwitching",t.LEVEL_SWITCHED="hlsLevelSwitched",t.LEVEL_LOADING="hlsLevelLoading",t.LEVEL_LOADED="hlsLevelLoaded",t.LEVEL_UPDATED="hlsLevelUpdated",t.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",t.LEVELS_UPDATED="hlsLevelsUpdated",t.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",t.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",t.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",t.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",t.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",t.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",t.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",t.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",t.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",t.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",t.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",t.CUES_PARSED="hlsCuesParsed",t.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",t.INIT_PTS_FOUND="hlsInitPtsFound",t.FRAG_LOADING="hlsFragLoading",t.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",t.FRAG_LOADED="hlsFragLoaded",t.FRAG_DECRYPTED="hlsFragDecrypted",t.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",t.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",t.FRAG_PARSING_METADATA="hlsFragParsingMetadata",t.FRAG_PARSED="hlsFragParsed",t.FRAG_BUFFERED="hlsFragBuffered",t.FRAG_CHANGED="hlsFragChanged",t.FPS_DROP="hlsFpsDrop",t.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",t.ERROR="hlsError",t.DESTROYING="hlsDestroying",t.KEY_LOADING="hlsKeyLoading",t.KEY_LOADED="hlsKeyLoaded",t.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",t.BACK_BUFFER_REACHED="hlsBackBufferReached"}(n||(n={}))},
vendor: 9,273 bytes, line 1
1"./src/hls.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return g}));var n=r("./node_modules/url-toolkit/src/url-toolkit.js"),i=r("./src/loader/playlist-loader.ts"),a=r("./src/loader/key-loader.ts"),o=r("./src/controller/id3-track-controller.ts"),s=r("./src/controller/latency-controller.ts"),u=r("./src/controller/level-controller.ts"),l=r("./src/controller/fragment-tracker.ts"),c=r("./src/controller/stream-controller.ts"),f=r("./src/is-supported.ts"),d=r("./src/utils/logger.ts"),h=r("./src/config.ts"),p=r("./node_modules/eventemitter3/index.js"),v=r("./src/events.ts"),m=r("./src/errors.ts");function y(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var g=function(){function t(e){void 0===e&&(e={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new p.EventEmitter,this._autoLevelCapping=void 0,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null;var r=this.config=Object(h.mergeConfig)(t.DefaultConfig,e);this.userConfig=e,Object(d.enableLogs)(r.debug),this._autoLevelCapping=-1,r.progressive&&Object(h.enableStreamingMode)(r);var n=r.abrController,f=r.bufferController,v=r.capLevelController,m=r.fpsController,y=this.abrController=new n(this),g=this.bufferController=new f(this),b=this.capLevelController=new v(this),E=new m(this),T=new i.default(this),w=new a.default(this),S=new o.default(this),O=this.levelController=new u.default(this),k=new l.FragmentTracker(this),A=this.streamController=new c.default(this,k);b.setStreamController(A),E.setStreamController(A);var P=[O,A];this.networkControllers=P;var x=[T,w,y,g,b,E,S,k];this.audioTrackController=this.createController(r.audioTrackController,null,P),this.createController(r.audioStreamController,k,P),this.subtitleTrackController=this.createController(r.subtitleTrackController,null,P),this.createController(r.subtitleStreamController,k,P),this.createController(r.timelineController,null,x),this.emeController=this.createController(r.emeController,null,x),this.cmcdController=this.createController(r.cmcdController,null,x),this.latencyController=this.createController(s.default,null,x),this.coreComponents=x}t.isSupported=function(){return Object(f.isSupported)()};var e,r,g,b=t.prototype;return b.createController=function(t,e,r){if(t){var n=e?new t(this,e):new t(this);return r&&r.push(n),n}return null},b.on=function(t,e,r){void 0===r&&(r=this),this._emitter.on(t,e,r)},b.once=function(t,e,r){void 0===r&&(r=this),this._emitter.once(t,e,r)},b.removeAllListeners=function(t){this._emitter.removeAllListeners(t)},b.off=function(t,e,r,n){void 0===r&&(r=this),this._emitter.off(t,e,r,n)},b.listeners=function(t){return this._emitter.listeners(t)},b.emit=function(t,e,r){return this._emitter.emit(t,e,r)},b.trigger=function(t,e){if(this.config.debug)return this.emit(t,t,e);try{return this.emit(t,t,e)}catch(r){d.logger.error("An internal error happened while handling event "+t+'. Error message: "'+r.message+'". Here is a stacktrace:',r),this.trigger(v.Events.ERROR,{type:m.ErrorTypes.OTHER_ERROR,details:m.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:t,error:r})}return!1},b.listenerCount=function(t){return this._emitter.listenerCount(t)},b.destroy=function(){d.logger.log("destroy"),this.trigger(v.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach((function(t){return t.destroy()})),this.networkControllers.length=0,this.coreComponents.forEach((function(t){return t.destroy()})),this.coreComponents.length=0},b.attachMedia=function(t){d.logger.log("attachMedia"),this._media=t,this.trigger(v.Events.MEDIA_ATTACHING,{media:t})},b.detachMedia=function(){d.logger.log("detachMedia"),this.trigger(v.Events.MEDIA_DETACHING,void 0),this._media=null},b.loadSource=function(t){this.stopLoad();var e=this.media,r=this.url,i=this.url=n.buildAbsoluteURL(self.location.href,t,{alwaysNormalize:!0});d.logger.log("loadSource:"+i),e&&r&&r!==i&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(e)),this.trigger(v.Events.MANIFEST_LOADING,{url:t})},b.startLoad=function(t){void 0===t&&(t=-1),d.logger.log("startLoad("+t+")"),this.networkControllers.forEach((function(e){e.startLoad(t)}))},b.stopLoad=function(){d.logger.log("stopLoad"),this.networkControllers.forEach((function(t){t.stopLoad()}))},b.swapAudioCodec=function(){d.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},b.recoverMediaError=function(){d.logger.log("recoverMediaError");var t=this._media;this.detachMedia(),t&&this.attachMedia(t)},b.removeLevel=function(t,e){void 0===e&&(e=0),this.levelController.removeLevel(t,e)},e=t,g=[{key:"version",get:function(){return"1.1.5"}},{key:"Events",get:function(){return v.Events}},{key:"ErrorTypes",get:function(){return m.ErrorTypes}},{key:"ErrorDetails",get:function(){return m.ErrorDetails}},{key:"DefaultConfig",get:function(){return t.defaultConfig?t.defaultConfig:h.hlsDefaultConfig},set:function(e){t.defaultConfig=e}}],(r=[{key:"levels",get:function(){var t=this.levelController.levels;return t||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(t){d.logger.log("set currentLevel:"+t),this.loadLevel=t,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(t){d.logger.log("set nextLevel:"+t),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(t){d.logger.log("set loadLevel:"+t),this.levelController.manualLevel=t}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(t){this.levelController.nextLoadLevel=t}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(t){d.logger.log("set firstLevel:"+t),this.levelController.firstLevel=t}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(t){d.logger.log("set startLevel:"+t),-1!==t&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(t){var e=!!t;e!==this.config.capLevelToPlayerSize&&(e?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=e)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(t){this._autoLevelCapping!==t&&(d.logger.log("set autoLevelCapping:"+t),this._autoLevelCapping=t)}},{key:"bandwidthEstimate",get:function(){var t=this.abrController.bwEstimator;return t?t.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return-1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var t=this.levels,e=this.config.minAutoBitrate;if(!t)return 0;for(var r=t.length,n=0;n<r;n++)if(t[n].maxBitrate>e)return n;return 0}},{key:"maxAutoLevel",get:function(){var t=this.levels,e=this.autoLevelCapping;return-1===e&&t&&t.length?t.length-1:e}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(t){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,t)}},{key:"audioTracks",get:function(){var t=this.audioTrackController;return t?t.audioTracks:[]}},{key:"audioTrack",get:function(){var t=this.audioTrackController;return t?t.audioTrack:-1},set:function(t){var e=this.audioTrackController;e&&(e.audioTrack=t)}},{key:"subtitleTracks",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTrack:-1},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleTrack=t)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var t=this.subtitleTrackController;return!!t&&t.subtitleDisplay},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleDisplay=t)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(t){this.config.lowLatencyMode=t}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}])&&y(e.prototype,r),g&&y(e,g),t}();g.defaultConfig=void 0},
1"./src/is-supported.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"isSupported",(function(){return a})),r.d(e,"changeTypeSupported",(function(){return o}));var n=r("./src/utils/mediasource-helper.ts");function i(){return self.SourceBuffer||self.WebKitSourceBuffer}function a(){var t=Object(n.getMediaSource)();if(!t)return!1;var e=i(),r=t&&"function"===typeof t.isTypeSupported&&t.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),a=!e||e.prototype&&"function"===typeof e.prototype.appendBuffer&&"function"===typeof e.prototype.remove;return!!r&&!!a}function o(){var t,e=i();return"function"===typeof(null===e||void 0===e||null===(t=e.prototype)||void 0===t?void 0:t.changeType)}},
vendor: 15,476 bytes, line 1
1"./src/loader/fragment-loader.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return f})),r.d(e,"LoadError",(function(){return h}));var n=r("./src/polyfills/number.ts"),i=r("./src/errors.ts");function a(t){var e="function"===typeof Map?new Map:void 0;return a=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return o(t,arguments,l(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,t)},a(t)}function o(t,e,r){return o=s()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&u(i,r.prototype),i},o.apply(null,arguments)}function s(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function u(t,e){return u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},u(t,e)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var c=Math.pow(2,17),f=function(){function t(t){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=t}var e=t.prototype;return e.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},e.abort=function(){this.loader&&this.loader.abort()},e.load=function(t,e){var r=this,n=t.url;if(!n)return Promise.reject(new h({type:i.ErrorTypes.NETWORK_ERROR,details:i.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:t,networkDetails:null},"Fragment does not have a "+(n?"part list":"url")));this.abort();var a=this.config,o=a.fLoader,s=a.loader;return new Promise((function(n,u){r.loader&&r.loader.destroy();var l=r.loader=t.loader=o?new o(a):new s(a),f=d(t),p={timeout:a.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:a.fragLoadingMaxRetryTimeout,highWaterMark:c};t.stats=l.stats,l.load(f,p,{onSuccess:function(e,i,a,o){r.resetLoader(t,l),n({frag:t,part:null,payload:e.data,networkDetails:o})},onError:function(e,n,a){r.resetLoader(t,l),u(new h({type:i.ErrorTypes.NETWORK_ERROR,details:i.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:e,networkDetails:a}))},onAbort:function(e,n,a){r.resetLoader(t,l),u(new h({type:i.ErrorTypes.NETWORK_ERROR,details:i.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:t,networkDetails:a}))},onTimeout:function(e,n,a){r.resetLoader(t,l),u(new h({type:i.ErrorTypes.NETWORK_ERROR,details:i.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,networkDetails:a}))},onProgress:function(r,n,i,a){e&&e({frag:t,part:null,payload:i,networkDetails:a})}})}))},e.loadPart=function(t,e,r){var n=this;this.abort();var a=this.config,o=a.fLoader,s=a.loader;return new Promise((function(u,l){n.loader&&n.loader.destroy();var f=n.loader=t.loader=o?new o(a):new s(a),p=d(t,e),v={timeout:a.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:a.fragLoadingMaxRetryTimeout,highWaterMark:c};e.stats=f.stats,f.load(p,v,{onSuccess:function(i,a,o,s){n.resetLoader(t,f),n.updateStatsFromPart(t,e);var l={frag:t,part:e,payload:i.data,networkDetails:s};r(l),u(l)},onError:function(r,a,o){n.resetLoader(t,f),l(new h({type:i.ErrorTypes.NETWORK_ERROR,details:i.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:e,response:r,networkDetails:o}))},onAbort:function(r,a,o){t.stats.aborted=e.stats.aborted,n.resetLoader(t,f),l(new h({type:i.ErrorTypes.NETWORK_ERROR,details:i.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:t,part:e,networkDetails:o}))},onTimeout:function(r,a,o){n.resetLoader(t,f),l(new h({type:i.ErrorTypes.NETWORK_ERROR,details:i.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:e,networkDetails:o}))}})}))},e.updateStatsFromPart=function(t,e){var r=t.stats,n=e.stats,i=n.total;if(r.loaded+=n.loaded,i){var a=Math.round(t.duration/e.duration),o=Math.min(Math.round(r.loaded/i),a),s=(a-o)*Math.round(r.loaded/o);r.total=r.loaded+s}else r.total=Math.max(r.loaded,r.total);var u=r.loading,l=n.loading;u.start?u.first+=l.first-l.start:(u.start=l.start,u.first=l.first),u.end=l.end},e.resetLoader=function(t,e){t.loader=null,this.loader===e&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),e.destroy()},t}();function d(t,e){void 0===e&&(e=null);var r=e||t,i={frag:t,part:e,responseType:"arraybuffer",url:r.url,headers:{},rangeStart:0,rangeEnd:0},a=r.byteRangeStartOffset,o=r.byteRangeEndOffset;return Object(n.isFiniteNumber)(a)&&Object(n.isFiniteNumber)(o)&&(i.rangeStart=a,i.rangeEnd=o),i}var h=function(t){var e,r;function n(e){for(var r,n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this].concat(i))||this).data=void 0,r.data=e,r}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,u(e,r),n}(a(Error))},"./src/loader/fragment.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"ElementaryStreamTypes",(function(){return n})),r.d(e,"BaseSegment",(function(){return h})),r.d(e,"Fragment",(function(){return p})),r.d(e,"Part",(function(){return v}));var n,i=r("./src/polyfills/number.ts"),a=r("./node_modules/url-toolkit/src/url-toolkit.js"),o=r("./src/utils/logger.ts"),s=r("./src/loader/level-key.ts"),u=r("./src/loader/load-stats.ts");function l(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,c(t,e)}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function d(t,e,r){return e&&f(t.prototype,e),r&&f(t,r),t}!function(t){t.AUDIO="audio",t.VIDEO="video",t.AUDIOVIDEO="audiovideo"}(n||(n={}));var h=function(){function t(t){var e;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=((e={})[n.AUDIO]=null,e[n.VIDEO]=null,e[n.AUDIOVIDEO]=null,e),this.baseurl=t}return t.prototype.setByteRange=function(t,e){var r=t.split("@",2),n=[];1===r.length?n[0]=e?e.byteRangeEndOffset:0:n[0]=parseInt(r[1]),n[1]=parseInt(r[0])+n[0],this._byteRange=n},d(t,[{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=Object(a.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(t){this._url=t}}]),t}(),p=function(t){function e(e,r){var n;return(n=t.call(this,r)||this)._decryptdata=null,n.rawProgramDateTime=null,n.programDateTime=null,n.tagList=[],n.duration=0,n.sn=0,n.levelkey=void 0,n.type=void 0,n.loader=null,n.level=-1,n.cc=0,n.startPTS=void 0,n.endPTS=void 0,n.appendedPTS=void 0,n.startDTS=void 0,n.endDTS=void 0,n.start=0,n.deltaPTS=void 0,n.maxStartPTS=void 0,n.minEndPTS=void 0,n.stats=new u.LoadStats,n.urlId=0,n.data=void 0,n.bitrateTest=!1,n.title=null,n.initSegment=null,n.type=e,n}l(e,t);var r=e.prototype;return r.createInitializationVector=function(t){for(var e=new Uint8Array(16),r=12;r<16;r++)e[r]=t>>8*(15-r)&255;return e},r.setDecryptDataFromLevelKey=function(t,e){var r=t;return"AES-128"===(null===t||void 0===t?void 0:t.method)&&t.uri&&!t.iv&&((r=s.LevelKey.fromURI(t.uri)).method=t.method,r.iv=this.createInitializationVector(e),r.keyFormat="identity"),r},r.setElementaryStreamInfo=function(t,e,r,n,i,a){void 0===a&&(a=!1);var o=this.elementaryStreams,s=o[t];s?(s.startPTS=Math.min(s.startPTS,e),s.endPTS=Math.max(s.endPTS,r),s.startDTS=Math.min(s.startDTS,n),s.endDTS=Math.max(s.endDTS,i)):o[t]={startPTS:e,endPTS:r,startDTS:n,endDTS:i,partial:a}},r.clearElementaryStreamInfo=function(){var t=this.elementaryStreams;t[n.AUDIO]=null,t[n.VIDEO]=null,t[n.AUDIOVIDEO]=null},d(e,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var t=this.sn;"number"!==typeof t&&(this.levelkey&&"AES-128"===this.levelkey.method&&!this.levelkey.iv&&o.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),t=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,t)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(null===this.programDateTime)return null;if(!Object(i.isFiniteNumber)(this.programDateTime))return null;var t=Object(i.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+1e3*t}},{key:"encrypted",get:function(){var t;return!(null===(t=this.decryptdata)||void 0===t||!t.keyFormat||!this.decryptdata.uri)}}]),e}(h),v=function(t){function e(e,r,n,i,a){var o;(o=t.call(this,n)||this).fragOffset=0,o.duration=0,o.gap=!1,o.independent=!1,o.relurl=void 0,o.fragment=void 0,o.index=void 0,o.stats=new u.LoadStats,o.duration=e.decimalFloatingPoint("DURATION"),o.gap=e.bool("GAP"),o.independent=e.bool("INDEPENDENT"),o.relurl=e.enumeratedString("URI"),o.fragment=r,o.index=i;var s=e.enumeratedString("BYTERANGE");return s&&o.setByteRange(s,a),a&&(o.fragOffset=a.fragOffset+a.duration),o}return l(e,t),d(e,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var t=this.elementaryStreams;return!!(t.audio||t.video||t.audiovideo)}}]),e}(h)},"./src/loader/key-loader.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return o}));var n=r("./src/events.ts"),i=r("./src/errors.ts"),a=r("./src/utils/logger.ts"),o=function(){function t(t){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=t,this._registerListeners()}var e=t.prototype;return e._registerListeners=function(){this.hls.on(n.Events.KEY_LOADING,this.onKeyLoading,this)},e._unregisterListeners=function(){this.hls.off(n.Events.KEY_LOADING,this.onKeyLoading)},e.destroy=function(){for(var t in this._unregisterListeners(),this.loaders){var e=this.loaders[t];e&&e.destroy()}this.loaders={}},e.onKeyLoading=function(t,e){var r=e.frag,i=r.type,o=this.loaders[i];if(r.decryptdata){var s=r.decryptdata.uri;if(s!==this.decrypturl||null===this.decryptkey){var u=this.hls.config;if(o&&(a.logger.warn("abort previous key loader for type:"+i),o.abort()),!s)return void a.logger.warn("key uri is falsy");var l=u.loader,c=r.loader=this.loaders[i]=new l(u);this.decrypturl=s,this.decryptkey=null;var f={url:s,frag:r,responseType:"arraybuffer"},d={timeout:u.fragLoadingTimeOut,maxRetry:0,retryDelay:u.fragLoadingRetryDelay,maxRetryDelay:u.fragLoadingMaxRetryTimeout,highWaterMark:0},h={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};c.load(f,d,h)}else this.decryptkey&&(r.decryptdata.key=this.decryptkey,this.hls.trigger(n.Events.KEY_LOADED,{frag:r}))}else a.logger.warn("Missing decryption data on fragment in onKeyLoading")},e.loadsuccess=function(t,e,r){var i=r.frag;i.decryptdata?(this.decryptkey=i.decryptdata.key=new Uint8Array(t.data),i.loader=null,delete this.loaders[i.type],this.hls.trigger(n.Events.KEY_LOADED,{frag:i})):a.logger.error("after key load, decryptdata unset")},e.loaderror=function(t,e){var r=e.frag,a=r.loader;a&&a.abort(),delete this.loaders[r.type],this.hls.trigger(n.Events.ERROR,{type:i.ErrorTypes.NETWORK_ERROR,details:i.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:r,response:t})},e.loadtimeout=function(t,e){var r=e.frag,a=r.loader;a&&a.abort(),delete this.loaders[r.type],this.hls.trigger(n.Events.ERROR,{type:i.ErrorTypes.NETWORK_ERROR,details:i.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:r})},t}()},"./src/loader/level-details.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"LevelDetails",(function(){return a}));var n=r("./src/polyfills/number.ts");function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=function(){function t(t){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.fragments=[],this.url=t}var e,r,a;return t.prototype.reloaded=function(t){if(!t)return this.advanced=!0,void(this.updated=!0);var e=this.lastPartSn-t.lastPartSn,r=this.lastPartIndex-t.lastPartIndex;this.updated=this.endSN!==t.endSN||!!r||!!e,this.advanced=this.endSN>t.endSN||e>0||0===e&&r>0,this.updated||this.advanced?this.misses=Math.floor(.6*t.misses):this.misses=t.misses+1,this.availabilityDelay=t.availabilityDelay},e=t,(r=[{key:"hasProgramDateTime",get:function(){return!!this.fragments.length&&Object(n.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime)}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||10}},{key:"drift",get:function(){var t=this.driftEndTime-this.driftStartTime;return t>0?1e3*(this.driftEnd-this.driftStart)/t:1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var t;return null!==(t=this.partList)&&void 0!==t&&t.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var t;return null!==(t=this.fragments)&&void 0!==t&&t.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var t;return null!==(t=this.partList)&&void 0!==t&&t.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var t;return null!==(t=this.partList)&&void 0!==t&&t.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}])&&i(e.prototype,r),a&&i(e,a),t}()},"./src/loader/level-key.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"LevelKey",(function(){return a}));var n=r("./node_modules/url-toolkit/src/url-toolkit.js");function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=function(){function t(t,e){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,this._uri=e?Object(n.buildAbsoluteURL)(t,e,{alwaysNormalize:!0}):t}var e,r,a;return t.fromURL=function(e,r){return new t(e,r)},t.fromURI=function(e){return new t(e)},e=t,(r=[{key:"uri",get:function(){return this._uri}}])&&i(e.prototype,r),a&&i(e,a),t}()},
1"./src/loader/load-stats.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"LoadStats",(function(){return n}));var n=function(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}},
vendor: 17,374 bytes, line 1
1"./src/loader/m3u8-parser.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return m}));var n=r("./src/polyfills/number.ts"),i=r("./node_modules/url-toolkit/src/url-toolkit.js"),a=r("./src/loader/fragment.ts"),o=r("./src/loader/level-details.ts"),s=r("./src/loader/level-key.ts"),u=r("./src/utils/attr-list.ts"),l=r("./src/utils/logger.ts"),c=r("./src/utils/codecs.ts"),f=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,d=/#EXT-X-MEDIA:(.*)/g,h=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),p=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(PLAYLIST-TYPE):(.+)/.source,/#EXT-X-(MEDIA-SEQUENCE): *(\d+)/.source,/#EXT-X-(SKIP):(.+)/.source,/#EXT-X-(TARGETDURATION): *(\d+)/.source,/#EXT-X-(KEY):(.+)/.source,/#EXT-X-(START):(.+)/.source,/#EXT-X-(ENDLIST)/.source,/#EXT-X-(DISCONTINUITY-SEQ)UENCE: *(\d+)/.source,/#EXT-X-(DIS)CONTINUITY/.source,/#EXT-X-(VERSION):(\d+)/.source,/#EXT-X-(MAP):(.+)/.source,/#EXT-X-(SERVER-CONTROL):(.+)/.source,/#EXT-X-(PART-INF):(.+)/.source,/#EXT-X-(GAP)/.source,/#EXT-X-(BITRATE):\s*(\d+)/.source,/#EXT-X-(PART):(.+)/.source,/#EXT-X-(PRELOAD-HINT):(.+)/.source,/#EXT-X-(RENDITION-REPORT):(.+)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),v=/\.(mp4|m4s|m4v|m4a)$/i,m=function(){function t(){}return t.findGroup=function(t,e){for(var r=0;r<t.length;r++){var n=t[r];if(n.id===e)return n}},t.convertAVC1ToAVCOTI=function(t){var e=t.split(".");if(e.length>2){var r=e.shift()+".";return r+=parseInt(e.shift()).toString(16),r+=("000"+parseInt(e.shift()).toString(16)).substr(-4)}return t},t.resolve=function(t,e){return i.buildAbsoluteURL(e,t,{alwaysNormalize:!0})},t.parseMasterPlaylist=function(e,r){var n,i=[],a={},o=!1;for(f.lastIndex=0;null!=(n=f.exec(e));)if(n[1]){var s=new u.AttrList(n[1]),l={attrs:s,bitrate:s.decimalInteger("AVERAGE-BANDWIDTH")||s.decimalInteger("BANDWIDTH"),name:s.NAME,url:t.resolve(n[2],r)},c=s.decimalResolution("RESOLUTION");c&&(l.width=c.width,l.height=c.height),y((s.CODECS||"").split(/[ ,]+/).filter((function(t){return t})),l),l.videoCodec&&-1!==l.videoCodec.indexOf("avc1")&&(l.videoCodec=t.convertAVC1ToAVCOTI(l.videoCodec)),i.push(l)}else if(n[3]){var d=new u.AttrList(n[3]);d["DATA-ID"]&&(o=!0,a[d["DATA-ID"]]=d)}return{levels:i,sessionData:o?a:null}},t.parseMasterPlaylistMedia=function(e,r,n,i){var a;void 0===i&&(i=[]);var o=[],s=0;for(d.lastIndex=0;null!==(a=d.exec(e));){var l=new u.AttrList(a[1]);if(l.TYPE===n){var c={attrs:l,bitrate:0,id:s++,groupId:l["GROUP-ID"],instreamId:l["INSTREAM-ID"],name:l.NAME||l.LANGUAGE||"",type:n,default:l.bool("DEFAULT"),autoselect:l.bool("AUTOSELECT"),forced:l.bool("FORCED"),lang:l.LANGUAGE,url:l.URI?t.resolve(l.URI,r):""};if(i.length){var f=t.findGroup(i,c.groupId)||i[0];g(c,f,"audioCodec"),g(c,f,"textCodec")}o.push(c)}}return o},t.parseLevelPlaylist=function(t,e,r,c,f){var d,m,y,g=new o.LevelDetails(e),E=g.fragments,T=null,w=0,S=0,O=0,k=0,A=null,P=new a.Fragment(c,e),x=-1,L=!1;for(h.lastIndex=0,g.m3u8=t;null!==(d=h.exec(t));){L&&(L=!1,(P=new a.Fragment(c,e)).start=O,P.sn=w,P.cc=k,P.level=r,T&&(P.initSegment=T,P.rawProgramDateTime=T.rawProgramDateTime));var _=d[1];if(_){P.duration=parseFloat(_);var D=(" "+d[2]).slice(1);P.title=D||null,P.tagList.push(D?["INF",_,D]:["INF",_])}else if(d[3])Object(n.isFiniteNumber)(P.duration)&&(P.start=O,y&&(P.levelkey=y),P.sn=w,P.level=r,P.cc=k,P.urlId=f,E.push(P),P.relurl=(" "+d[3]).slice(1),b(P,A),A=P,O+=P.duration,w++,S=0,L=!0);else if(d[4]){var C=(" "+d[4]).slice(1);A?P.setByteRange(C,A):P.setByteRange(C)}else if(d[5])P.rawProgramDateTime=(" "+d[5]).slice(1),P.tagList.push(["PROGRAM-DATE-TIME",P.rawProgramDateTime]),-1===x&&(x=E.length);else{if(!(d=d[0].match(p))){l.logger.warn("No matches on slow regex match for level playlist!");continue}for(m=1;m<d.length&&"undefined"===typeof d[m];m++);var R=(" "+d[m]).slice(1),I=(" "+d[m+1]).slice(1),M=d[m+2]?(" "+d[m+2]).slice(1):"";switch(R){case"PLAYLIST-TYPE":g.type=I.toUpperCase();break;case"MEDIA-SEQUENCE":w=g.startSN=parseInt(I);break;case"SKIP":var N=new u.AttrList(I),j=N.decimalInteger("SKIPPED-SEGMENTS");if(Object(n.isFiniteNumber)(j)){g.skippedSegments=j;for(var F=j;F--;)E.unshift(null);w+=j}var U=N.enumeratedString("RECENTLY-REMOVED-DATERANGES");U&&(g.recentlyRemovedDateranges=U.split("\t"));break;case"TARGETDURATION":g.targetduration=parseFloat(I);break;case"VERSION":g.version=parseInt(I);break;case"EXTM3U":break;case"ENDLIST":g.live=!1;break;case"#":(I||M)&&P.tagList.push(M?[I,M]:[I]);break;case"DIS":k++;case"GAP":P.tagList.push([R]);break;case"BITRATE":P.tagList.push([R,I]);break;case"DISCONTINUITY-SEQ":k=parseInt(I);break;case"KEY":var B,V=new u.AttrList(I),G=V.enumeratedString("METHOD"),H=V.URI,z=V.hexadecimalInteger("IV"),K=V.enumeratedString("KEYFORMATVERSIONS"),W=V.enumeratedString("KEYID"),q=null!=(B=V.enumeratedString("KEYFORMAT"))?B:"identity";if(["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"].indexOf(q)>-1){l.logger.warn("Keyformat "+q+" is not supported from the manifest");continue}if("identity"!==q)continue;G&&(y=s.LevelKey.fromURL(e,H),H&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(G)>=0&&(y.method=G,y.keyFormat=q,W&&(y.keyID=W),K&&(y.keyFormatVersions=K),y.iv=z));break;case"START":var Y=new u.AttrList(I).decimalFloatingPoint("TIME-OFFSET");Object(n.isFiniteNumber)(Y)&&(g.startTimeOffset=Y);break;case"MAP":var X=new u.AttrList(I);P.relurl=X.URI,X.BYTERANGE&&P.setByteRange(X.BYTERANGE),P.level=r,P.sn="initSegment",y&&(P.levelkey=y),P.initSegment=null,T=P,L=!0;break;case"SERVER-CONTROL":var Z=new u.AttrList(I);g.canBlockReload=Z.bool("CAN-BLOCK-RELOAD"),g.canSkipUntil=Z.optionalFloat("CAN-SKIP-UNTIL",0),g.canSkipDateRanges=g.canSkipUntil>0&&Z.bool("CAN-SKIP-DATERANGES"),g.partHoldBack=Z.optionalFloat("PART-HOLD-BACK",0),g.holdBack=Z.optionalFloat("HOLD-BACK",0);break;case"PART-INF":var $=new u.AttrList(I);g.partTarget=$.decimalFloatingPoint("PART-TARGET");break;case"PART":var J=g.partList;J||(J=g.partList=[]);var Q=S>0?J[J.length-1]:void 0,tt=S++,et=new a.Part(new u.AttrList(I),P,e,tt,Q);J.push(et),P.duration+=et.duration;break;case"PRELOAD-HINT":var rt=new u.AttrList(I);g.preloadHint=rt;break;case"RENDITION-REPORT":var nt=new u.AttrList(I);g.renditionReports=g.renditionReports||[],g.renditionReports.push(nt);break;default:l.logger.warn("line parsed but not handled: "+d)}}}A&&!A.relurl?(E.pop(),O-=A.duration,g.partList&&(g.fragmentHint=A)):g.partList&&(b(P,A),P.cc=k,g.fragmentHint=P);var it=E.length,at=E[0],ot=E[it-1];if((O+=g.skippedSegments*g.targetduration)>0&&it&&ot){g.averagetargetduration=O/it;var st=ot.sn;g.endSN="initSegment"!==st?st:0,at&&(g.startCC=at.cc,at.initSegment||g.fragments.every((function(t){return t.relurl&&function(t){var e,r;return v.test(null!=(e=null===(r=i.parseURL(t))||void 0===r?void 0:r.path)?e:"")}(t.relurl)}))&&(l.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),(P=new a.Fragment(c,e)).relurl=ot.relurl,P.level=r,P.sn="initSegment",at.initSegment=P,g.needSidxRanges=!0))}else g.endSN=0,g.startCC=0;return g.fragmentHint&&(O+=g.fragmentHint.duration),g.totalduration=O,g.endCC=k,x>0&&function(t,e){for(var r=t[e],n=e;n--;){var i=t[n];if(!i)return;i.programDateTime=r.programDateTime-1e3*i.duration,r=i}}(E,x),g},t}();function y(t,e){["video","audio","text"].forEach((function(r){var n=t.filter((function(t){return Object(c.isCodecType)(t,r)}));if(n.length){var i=n.filter((function(t){return 0===t.lastIndexOf("avc1",0)||0===t.lastIndexOf("mp4a",0)}));e[r+"Codec"]=i.length>0?i[0]:n[0],t=t.filter((function(t){return-1===n.indexOf(t)}))}})),e.unknownCodecs=t}function g(t,e,r){var n=e[r];n&&(t[r]=n)}function b(t,e){t.rawProgramDateTime?t.programDateTime=Date.parse(t.rawProgramDateTime):null!==e&&void 0!==e&&e.programDateTime&&(t.programDateTime=e.endProgramDateTime),Object(n.isFiniteNumber)(t.programDateTime)||(t.programDateTime=null,t.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(t,e,r){"use strict";r.r(e);var n=r("./src/polyfills/number.ts"),i=r("./src/events.ts"),a=r("./src/errors.ts"),o=r("./src/utils/logger.ts"),s=r("./src/utils/mp4-tools.ts"),u=r("./src/loader/m3u8-parser.ts"),l=r("./src/types/loader.ts"),c=r("./src/utils/attr-list.ts");function f(t,e){var r=t.url;return void 0!==r&&0!==r.indexOf("data:")||(r=e.url),r}var d=function(){function t(t){this.hls=void 0,this.loaders=Object.create(null),this.hls=t,this.registerListeners()}var e=t.prototype;return e.registerListeners=function(){var t=this.hls;t.on(i.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.on(i.Events.LEVEL_LOADING,this.onLevelLoading,this),t.on(i.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(i.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},e.unregisterListeners=function(){var t=this.hls;t.off(i.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.off(i.Events.LEVEL_LOADING,this.onLevelLoading,this),t.off(i.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(i.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},e.createInternalLoader=function(t){var e=this.hls.config,r=e.pLoader,n=e.loader,i=new(r||n)(e);return t.loader=i,this.loaders[t.type]=i,i},e.getInternalLoader=function(t){return this.loaders[t.type]},e.resetInternalLoader=function(t){this.loaders[t]&&delete this.loaders[t]},e.destroyInternalLoaders=function(){for(var t in this.loaders){var e=this.loaders[t];e&&e.destroy(),this.resetInternalLoader(t)}},e.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},e.onManifestLoading=function(t,e){var r=e.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:l.PlaylistContextType.MANIFEST,url:r,deliveryDirectives:null})},e.onLevelLoading=function(t,e){var r=e.id,n=e.level,i=e.url,a=e.deliveryDirectives;this.load({id:r,groupId:null,level:n,responseType:"text",type:l.PlaylistContextType.LEVEL,url:i,deliveryDirectives:a})},e.onAudioTrackLoading=function(t,e){var r=e.id,n=e.groupId,i=e.url,a=e.deliveryDirectives;this.load({id:r,groupId:n,level:null,responseType:"text",type:l.PlaylistContextType.AUDIO_TRACK,url:i,deliveryDirectives:a})},e.onSubtitleTrackLoading=function(t,e){var r=e.id,n=e.groupId,i=e.url,a=e.deliveryDirectives;this.load({id:r,groupId:n,level:null,responseType:"text",type:l.PlaylistContextType.SUBTITLE_TRACK,url:i,deliveryDirectives:a})},e.load=function(t){var e,r,n,i,a,s,u=this.hls.config,c=this.getInternalLoader(t);if(c){var f=c.context;if(f&&f.url===t.url)return void o.logger.trace("[playlist-loader]: playlist request ongoing");o.logger.log("[playlist-loader]: aborting previous loader for type: "+t.type),c.abort()}switch(t.type){case l.PlaylistContextType.MANIFEST:r=u.manifestLoadingMaxRetry,n=u.manifestLoadingTimeOut,i=u.manifestLoadingRetryDelay,a=u.manifestLoadingMaxRetryTimeout;break;case l.PlaylistContextType.LEVEL:case l.PlaylistContextType.AUDIO_TRACK:case l.PlaylistContextType.SUBTITLE_TRACK:r=0,n=u.levelLoadingTimeOut;break;default:r=u.levelLoadingMaxRetry,n=u.levelLoadingTimeOut,i=u.levelLoadingRetryDelay,a=u.levelLoadingMaxRetryTimeout}if(c=this.createInternalLoader(t),null!==(e=t.deliveryDirectives)&&void 0!==e&&e.part&&(t.type===l.PlaylistContextType.LEVEL&&null!==t.level?s=this.hls.levels[t.level].details:t.type===l.PlaylistContextType.AUDIO_TRACK&&null!==t.id?s=this.hls.audioTracks[t.id].details:t.type===l.PlaylistContextType.SUBTITLE_TRACK&&null!==t.id&&(s=this.hls.subtitleTracks[t.id].details),s)){var d=s.partTarget,h=s.targetduration;d&&h&&(n=Math.min(1e3*Math.max(3*d,.8*h),n))}var p={timeout:n,maxRetry:r,retryDelay:i,maxRetryDelay:a,highWaterMark:0},v={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};c.load(t,p,v)},e.loadsuccess=function(t,e,r,n){if(void 0===n&&(n=null),r.isSidxRequest)return this.handleSidxRequest(t,r),void this.handlePlaylistLoaded(t,e,r,n);this.resetInternalLoader(r.type);var i=t.data;0===i.indexOf("#EXTM3U")?(e.parsing.start=performance.now(),i.indexOf("#EXTINF:")>0||i.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(t,e,r,n):this.handleMasterPlaylist(t,e,r,n)):this.handleManifestParsingError(t,r,"no EXTM3U delimiter",n)},e.loaderror=function(t,e,r){void 0===r&&(r=null),this.handleNetworkError(e,r,!1,t)},e.loadtimeout=function(t,e,r){void 0===r&&(r=null),this.handleNetworkError(e,r,!0)},e.handleMasterPlaylist=function(t,e,r,n){var a=this.hls,s=t.data,l=f(t,r),d=u.default.parseMasterPlaylist(s,l),h=d.levels,p=d.sessionData;if(h.length){var v=h.map((function(t){return{id:t.attrs.AUDIO,audioCodec:t.audioCodec}})),m=h.map((function(t){return{id:t.attrs.SUBTITLES,textCodec:t.textCodec}})),y=u.default.parseMasterPlaylistMedia(s,l,"AUDIO",v),g=u.default.parseMasterPlaylistMedia(s,l,"SUBTITLES",m),b=u.default.parseMasterPlaylistMedia(s,l,"CLOSED-CAPTIONS");y.length&&(y.some((function(t){return!t.url}))||!h[0].audioCodec||h[0].attrs.AUDIO||(o.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),y.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new c.AttrList({}),bitrate:0,url:""}))),a.trigger(i.Events.MANIFEST_LOADED,{levels:h,audioTracks:y,subtitles:g,captions:b,url:l,stats:e,networkDetails:n,sessionData:p})}else this.handleManifestParsingError(t,r,"no level found in manifest",n)},e.handleTrackOrLevelPlaylist=function(t,e,r,o){var s=this.hls,d=r.id,h=r.level,p=r.type,v=f(t,r),m=Object(n.isFiniteNumber)(d)?d:0,y=Object(n.isFiniteNumber)(h)?h:m,g=function(t){switch(t.type){case l.PlaylistContextType.AUDIO_TRACK:return l.PlaylistLevelType.AUDIO;case l.PlaylistContextType.SUBTITLE_TRACK:return l.PlaylistLevelType.SUBTITLE;default:return l.PlaylistLevelType.MAIN}}(r),b=u.default.parseLevelPlaylist(t.data,v,y,g,m);if(b.fragments.length){if(p===l.PlaylistContextType.MANIFEST){var E={attrs:new c.AttrList({}),bitrate:0,details:b,name:"",url:v};s.trigger(i.Events.MANIFEST_LOADED,{levels:[E],audioTracks:[],url:v,stats:e,networkDetails:o,sessionData:null})}if(e.parsing.end=performance.now(),b.needSidxRanges){var T,w=null===(T=b.fragments[0].initSegment)||void 0===T?void 0:T.url;this.load({url:w,isSidxRequest:!0,type:p,level:h,levelDetails:b,id:d,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null})}else r.levelDetails=b,this.handlePlaylistLoaded(t,e,r,o)}else s.trigger(i.Events.ERROR,{type:a.ErrorTypes.NETWORK_ERROR,details:a.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:v,reason:"no fragments found in level",level:"number"===typeof r.level?r.level:void 0})},e.handleSidxRequest=function(t,e){var r=Object(s.parseSegmentIndex)(new Uint8Array(t.data));if(r){var n=r.references,i=e.levelDetails;n.forEach((function(t,e){var n=t.info,a=i.fragments[e];0===a.byteRange.length&&a.setByteRange(String(1+n.end-n.start)+"@"+String(n.start)),a.initSegment&&a.initSegment.setByteRange(String(r.moovEndOffset)+"@0")}))}},e.handleManifestParsingError=function(t,e,r,n){this.hls.trigger(i.Events.ERROR,{type:a.ErrorTypes.NETWORK_ERROR,details:a.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:e.type===l.PlaylistContextType.MANIFEST,url:t.url,reason:r,response:t,context:e,networkDetails:n})},e.handleNetworkError=function(t,e,r,n){void 0===r&&(r=!1),o.logger.warn("[playlist-loader]: A network "+(r?"timeout":"error")+" occurred while loading "+t.type+" level: "+t.level+" id: "+t.id+' group-id: "'+t.groupId+'"');var s=a.ErrorDetails.UNKNOWN,u=!1,c=this.getInternalLoader(t);switch(t.type){case l.PlaylistContextType.MANIFEST:s=r?a.ErrorDetails.MANIFEST_LOAD_TIMEOUT:a.ErrorDetails.MANIFEST_LOAD_ERROR,u=!0;break;case l.PlaylistContextType.LEVEL:s=r?a.ErrorDetails.LEVEL_LOAD_TIMEOUT:a.ErrorDetails.LEVEL_LOAD_ERROR,u=!1;break;case l.PlaylistContextType.AUDIO_TRACK:s=r?a.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:a.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,u=!1;break;case l.PlaylistContextType.SUBTITLE_TRACK:s=r?a.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:a.ErrorDetails.SUBTITLE_LOAD_ERROR,u=!1}c&&this.resetInternalLoader(t.type);var f={type:a.ErrorTypes.NETWORK_ERROR,details:s,fatal:u,url:t.url,loader:c,context:t,networkDetails:e};n&&(f.response=n),this.hls.trigger(i.Events.ERROR,f)},e.handlePlaylistLoaded=function(t,e,r,n){var a=r.type,o=r.level,s=r.id,u=r.groupId,c=r.loader,f=r.levelDetails,d=r.deliveryDirectives;if(null!==f&&void 0!==f&&f.targetduration){if(c)switch(f.live&&(c.getCacheAge&&(f.ageHeader=c.getCacheAge()||0),c.getCacheAge&&!isNaN(f.ageHeader)||(f.ageHeader=0)),a){case l.PlaylistContextType.MANIFEST:case l.PlaylistContextType.LEVEL:this.hls.trigger(i.Events.LEVEL_LOADED,{details:f,level:o||0,id:s||0,stats:e,networkDetails:n,deliveryDirectives:d});break;case l.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(i.Events.AUDIO_TRACK_LOADED,{details:f,id:s||0,groupId:u||"",stats:e,networkDetails:n,deliveryDirectives:d});break;case l.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(i.Events.SUBTITLE_TRACK_LOADED,{details:f,id:s||0,groupId:u||"",stats:e,networkDetails:n,deliveryDirectives:d})}}else this.handleManifestParsingError(t,r,"invalid target duration",n)},t}();e.default=d},
1"./src/polyfills/number.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"isFiniteNumber",(function(){return n})),r.d(e,"MAX_SAFE_INTEGER",(function(){return i}));var n=Number.isFinite||function(t){return"number"===typeof t&&isFinite(t)},i=Number.MAX_SAFE_INTEGER||9007199254740991},
1"./src/remux/aac-helper.ts":function(t,e,r){"use strict";r.r(e);var n=function(){function t(){}return t.getSilentFrame=function(t,e){if("mp4a.40.2"===t){if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===e)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}},t}();e.default=n},
vendor: 22,063 bytes, line 1
1"./src/remux/mp4-generator.ts":function(t,e,r){"use strict";r.r(e);var n=Math.pow(2,32)-1,i=function(){function t(){}return t.init=function(){var e;for(e in t.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},t.types)t.types.hasOwnProperty(e)&&(t.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);var r=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),n=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);t.HDLR_TYPES={video:r,audio:n};var i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),a=new Uint8Array([0,0,0,0,0,0,0,0]);t.STTS=t.STSC=t.STCO=a,t.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),t.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),t.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),t.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var o=new Uint8Array([105,115,111,109]),s=new Uint8Array([97,118,99,49]),u=new Uint8Array([0,0,0,1]);t.FTYP=t.box(t.types.ftyp,o,u,o,s),t.DINF=t.box(t.types.dinf,t.box(t.types.dref,i))},t.box=function(t){for(var e=8,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(var a=n.length,o=a;a--;)e+=n[a].byteLength;var s=new Uint8Array(e);for(s[0]=e>>24&255,s[1]=e>>16&255,s[2]=e>>8&255,s[3]=255&e,s.set(t,4),a=0,e=8;a<o;a++)s.set(n[a],e),e+=n[a].byteLength;return s},t.hdlr=function(e){return t.box(t.types.hdlr,t.HDLR_TYPES[e])},t.mdat=function(e){return t.box(t.types.mdat,e)},t.mdhd=function(e,r){r*=e;var i=Math.floor(r/(n+1)),a=Math.floor(r%(n+1));return t.box(t.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24,i>>16&255,i>>8&255,255&i,a>>24,a>>16&255,a>>8&255,255&a,85,196,0,0]))},t.mdia=function(e){return t.box(t.types.mdia,t.mdhd(e.timescale,e.duration),t.hdlr(e.type),t.minf(e))},t.mfhd=function(e){return t.box(t.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))},t.minf=function(e){return"audio"===e.type?t.box(t.types.minf,t.box(t.types.smhd,t.SMHD),t.DINF,t.stbl(e)):t.box(t.types.minf,t.box(t.types.vmhd,t.VMHD),t.DINF,t.stbl(e))},t.moof=function(e,r,n){return t.box(t.types.moof,t.mfhd(e),t.traf(n,r))},t.moov=function(e){for(var r=e.length,n=[];r--;)n[r]=t.trak(e[r]);return t.box.apply(null,[t.types.moov,t.mvhd(e[0].timescale,e[0].duration)].concat(n).concat(t.mvex(e)))},t.mvex=function(e){for(var r=e.length,n=[];r--;)n[r]=t.trex(e[r]);return t.box.apply(null,[t.types.mvex].concat(n))},t.mvhd=function(e,r){r*=e;var i=Math.floor(r/(n+1)),a=Math.floor(r%(n+1)),o=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24,i>>16&255,i>>8&255,255&i,a>>24,a>>16&255,a>>8&255,255&a,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t.box(t.types.mvhd,o)},t.sdtp=function(e){var r,n,i=e.samples||[],a=new Uint8Array(4+i.length);for(r=0;r<i.length;r++)n=i[r].flags,a[r+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return t.box(t.types.sdtp,a)},t.stbl=function(e){return t.box(t.types.stbl,t.stsd(e),t.box(t.types.stts,t.STTS),t.box(t.types.stsc,t.STSC),t.box(t.types.stsz,t.STSZ),t.box(t.types.stco,t.STCO))},t.avc1=function(e){var r,n,i,a=[],o=[];for(r=0;r<e.sps.length;r++)i=(n=e.sps[r]).byteLength,a.push(i>>>8&255),a.push(255&i),a=a.concat(Array.prototype.slice.call(n));for(r=0;r<e.pps.length;r++)i=(n=e.pps[r]).byteLength,o.push(i>>>8&255),o.push(255&i),o=o.concat(Array.prototype.slice.call(n));var s=t.box(t.types.avcC,new Uint8Array([1,a[3],a[4],a[5],255,224|e.sps.length].concat(a).concat([e.pps.length]).concat(o))),u=e.width,l=e.height,c=e.pixelRatio[0],f=e.pixelRatio[1];return t.box(t.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,u>>8&255,255&u,l>>8&255,255&l,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s,t.box(t.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),t.box(t.types.pasp,new Uint8Array([c>>24,c>>16&255,c>>8&255,255&c,f>>24,f>>16&255,f>>8&255,255&f])))},t.esds=function(t){var e=t.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(t.config).concat([6,1,2]))},t.mp4a=function(e){var r=e.samplerate;return t.box(t.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,r>>8&255,255&r,0,0]),t.box(t.types.esds,t.esds(e)))},t.mp3=function(e){var r=e.samplerate;return t.box(t.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,r>>8&255,255&r,0,0]))},t.stsd=function(e){return"audio"===e.type?e.isAAC||"mp3"!==e.codec?t.box(t.types.stsd,t.STSD,t.mp4a(e)):t.box(t.types.stsd,t.STSD,t.mp3(e)):t.box(t.types.stsd,t.STSD,t.avc1(e))},t.tkhd=function(e){var r=e.id,i=e.duration*e.timescale,a=e.width,o=e.height,s=Math.floor(i/(n+1)),u=Math.floor(i%(n+1));return t.box(t.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,r>>24&255,r>>16&255,r>>8&255,255&r,0,0,0,0,s>>24,s>>16&255,s>>8&255,255&s,u>>24,u>>16&255,u>>8&255,255&u,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,a>>8&255,255&a,0,0,o>>8&255,255&o,0,0]))},t.traf=function(e,r){var i=t.sdtp(e),a=e.id,o=Math.floor(r/(n+1)),s=Math.floor(r%(n+1));return t.box(t.types.traf,t.box(t.types.tfhd,new Uint8Array([0,0,0,0,a>>24,a>>16&255,a>>8&255,255&a])),t.box(t.types.tfdt,new Uint8Array([1,0,0,0,o>>24,o>>16&255,o>>8&255,255&o,s>>24,s>>16&255,s>>8&255,255&s])),t.trun(e,i.length+16+20+8+16+8+8),i)},t.trak=function(e){return e.duration=e.duration||4294967295,t.box(t.types.trak,t.tkhd(e),t.mdia(e))},t.trex=function(e){var r=e.id;return t.box(t.types.trex,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},t.trun=function(e,r){var n,i,a,o,s,u,l=e.samples||[],c=l.length,f=12+16*c,d=new Uint8Array(f);for(r+=8+f,d.set([0,0,15,1,c>>>24&255,c>>>16&255,c>>>8&255,255&c,r>>>24&255,r>>>16&255,r>>>8&255,255&r],0),n=0;n<c;n++)a=(i=l[n]).duration,o=i.size,s=i.flags,u=i.cts,d.set([a>>>24&255,a>>>16&255,a>>>8&255,255&a,o>>>24&255,o>>>16&255,o>>>8&255,255&o,s.isLeading<<2|s.dependsOn,s.isDependedOn<<6|s.hasRedundancy<<4|s.paddingValue<<1|s.isNonSync,61440&s.degradPrio,15&s.degradPrio,u>>>24&255,u>>>16&255,u>>>8&255,255&u],12+16*n);return t.box(t.types.trun,d)},t.initSegment=function(e){t.types||t.init();var r=t.moov(e),n=new Uint8Array(t.FTYP.byteLength+r.byteLength);return n.set(t.FTYP),n.set(r,t.FTYP.byteLength),n},t}();i.types=void 0,i.HDLR_TYPES=void 0,i.STTS=void 0,i.STSC=void 0,i.STCO=void 0,i.STSZ=void 0,i.VMHD=void 0,i.SMHD=void 0,i.STSD=void 0,i.FTYP=void 0,i.DINF=void 0,e.default=i},"./src/remux/mp4-remuxer.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return v})),r.d(e,"normalizePts",(function(){return m}));var n=r("./src/polyfills/number.ts"),i=r("./src/remux/aac-helper.ts"),a=r("./src/remux/mp4-generator.ts"),o=r("./src/events.ts"),s=r("./src/errors.ts"),u=r("./src/utils/logger.ts"),l=r("./src/types/loader.ts"),c=r("./src/utils/timescale-conversion.ts");function f(){return f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},f.apply(this,arguments)}var d=null,h=null,p=!1,v=function(){function t(t,e,r,n){if(void 0===n&&(n=""),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=void 0,this._initDTS=void 0,this.nextAvcDts=null,this.nextAudioPts=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=t,this.config=e,this.typeSupported=r,this.ISGenerated=!1,null===d){var i=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);d=i?parseInt(i[1]):0}if(null===h){var a=navigator.userAgent.match(/Safari\/(\d+)/i);h=a?parseInt(a[1]):0}p=!!d&&d<75||!!h&&h<600}var e=t.prototype;return e.destroy=function(){},e.resetTimeStamp=function(t){u.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=t},e.resetNextTimestamp=function(){u.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},e.resetInitSegment=function(){u.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},e.getVideoStartPts=function(t){var e=!1,r=t.reduce((function(t,r){var n=r.pts-t;return n<-4294967296?(e=!0,m(t,r.pts)):n>0?t:r.pts}),t[0].pts);return e&&u.logger.debug("PTS rollover detected"),r},e.remux=function(t,e,r,n,i,a,o,s){var c,f,d,h,p,v,y=i,g=i,b=t.pid>-1,E=e.pid>-1,T=e.samples.length,w=t.samples.length>0,S=T>1;if((!b||w)&&(!E||S)||this.ISGenerated||o){this.ISGenerated||(d=this.generateIS(t,e,i));var O=this.isVideoContiguous,k=-1;if(S&&(k=function(t){for(var e=0;e<t.length;e++)if(t[e].key)return e;return-1}(e.samples),!O&&this.config.forceKeyFrameOnDiscontinuity))if(v=!0,k>0){u.logger.warn("[mp4-remuxer]: Dropped "+k+" out of "+T+" video samples due to a missing keyframe");var A=this.getVideoStartPts(e.samples);e.samples=e.samples.slice(k),e.dropped+=k,g+=(e.samples[0].pts-A)/(e.timescale||9e4)}else-1===k&&(u.logger.warn("[mp4-remuxer]: No keyframe found out of "+T+" video samples"),v=!1);if(this.ISGenerated){if(w&&S){var P=this.getVideoStartPts(e.samples),x=(m(t.samples[0].pts,P)-P)/e.inputTimeScale;y+=Math.max(0,x),g+=Math.max(0,-x)}if(w){if(t.samplerate||(u.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),d=this.generateIS(t,e,i)),f=this.remuxAudio(t,y,this.isAudioContiguous,a,E||S||s===l.PlaylistLevelType.AUDIO?g:void 0),S){var L=f?f.endPTS-f.startPTS:0;e.inputTimeScale||(u.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),d=this.generateIS(t,e,i)),c=this.remuxVideo(e,g,O,L)}}else S&&(c=this.remuxVideo(e,g,O,0));c&&(c.firstKeyFrame=k,c.independent=-1!==k)}}return this.ISGenerated&&(r.samples.length&&(p=this.remuxID3(r,i)),n.samples.length&&(h=this.remuxText(n,i))),{audio:f,video:c,initSegment:d,independent:v,text:h,id3:p}},e.generateIS=function(t,e,r){var i,o,s,u=t.samples,l=e.samples,c=this.typeSupported,f={},d=!Object(n.isFiniteNumber)(this._initPTS),h="audio/mp4";if(d&&(i=o=1/0),t.config&&u.length&&(t.timescale=t.samplerate,t.isAAC||(c.mpeg?(h="audio/mpeg",t.codec=""):c.mp3&&(t.codec="mp3")),f.audio={id:"audio",container:h,codec:t.codec,initSegment:!t.isAAC&&c.mpeg?new Uint8Array(0):a.default.initSegment([t]),metadata:{channelCount:t.channelCount}},d&&(s=t.inputTimeScale,i=o=u[0].pts-Math.round(s*r))),e.sps&&e.pps&&l.length&&(e.timescale=e.inputTimeScale,f.video={id:"main",container:"video/mp4",codec:e.codec,initSegment:a.default.initSegment([e]),metadata:{width:e.width,height:e.height}},d)){s=e.inputTimeScale;var p=this.getVideoStartPts(l),v=Math.round(s*r);o=Math.min(o,m(l[0].dts,p)-v),i=Math.min(i,p-v)}if(Object.keys(f).length)return this.ISGenerated=!0,d&&(this._initPTS=i,this._initDTS=o),{tracks:f,initPTS:i,timescale:s}},e.remuxVideo=function(t,e,r,n){var i,l,h,v=t.inputTimeScale,g=t.samples,b=[],E=g.length,T=this._initPTS,w=this.nextAvcDts,S=8,O=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,A=0,P=!1;r&&null!==w||(w=e*v-(g[0].pts-m(g[0].dts,g[0].pts)));for(var x=0;x<E;x++){var L=g[x];L.pts=m(L.pts-T,w),L.dts=m(L.dts-T,w),L.dts>L.pts&&(A=Math.max(Math.min(A,L.pts-L.dts),-18e3)),L.dts<g[x>0?x-1:x].dts&&(P=!0)}P&&g.sort((function(t,e){var r=t.dts-e.dts,n=t.pts-e.pts;return r||n})),l=g[0].dts,h=g[g.length-1].dts;var _=Math.round((h-l)/(E-1));if(A<0){if(A<-2*_){u.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(c.toMsFromMpegTsClock)(-_,!0)+" ms");for(var D=A,C=0;C<E;C++)g[C].dts=D=Math.max(D,g[C].pts-_),g[C].pts=Math.max(D,g[C].pts)}else{u.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(c.toMsFromMpegTsClock)(A,!0)+" ms to overcome this issue");for(var R=0;R<E;R++)g[R].dts=g[R].dts+A}l=g[0].dts}if(r){var I=l-w,M=I>_;if(M||I<-1){M?u.logger.warn("AVC: "+Object(c.toMsFromMpegTsClock)(I,!0)+" ms ("+I+"dts) hole between fragments detected, filling it"):u.logger.warn("AVC: "+Object(c.toMsFromMpegTsClock)(-I,!0)+" ms ("+I+"dts) overlapping between fragments detected"),l=w;var N=g[0].pts-I;g[0].dts=l,g[0].pts=N,u.logger.log("Video: First PTS/DTS adjusted: "+Object(c.toMsFromMpegTsClock)(N,!0)+"/"+Object(c.toMsFromMpegTsClock)(l,!0)+", delta: "+Object(c.toMsFromMpegTsClock)(I,!0)+" ms")}}p&&(l=Math.max(0,l));for(var j=0,F=0,U=0;U<E;U++){for(var B=g[U],V=B.units,G=V.length,H=0,z=0;z<G;z++)H+=V[z].data.length;F+=H,j+=G,B.length=H,B.dts=Math.max(B.dts,l),B.pts=Math.max(B.pts,B.dts,0),O=Math.min(B.pts,O),k=Math.max(B.pts,k)}h=g[E-1].dts;var K,W=F+4*j+8;try{K=new Uint8Array(W)}catch(ct){return void this.observer.emit(o.Events.ERROR,o.Events.ERROR,{type:s.ErrorTypes.MUX_ERROR,details:s.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:W,reason:"fail allocating video mdat "+W})}var q=new DataView(K.buffer);q.setUint32(0,W),K.set(a.default.types.mdat,4);for(var Y=0;Y<E;Y++){for(var X=g[Y],Z=X.units,$=0,J=0,Q=Z.length;J<Q;J++){var tt=Z[J],et=tt.data,rt=tt.data.byteLength;q.setUint32(S,rt),S+=4,K.set(et,S),S+=rt,$+=4+rt}if(Y<E-1)i=g[Y+1].dts-X.dts;else{var nt=this.config,it=X.dts-g[Y>0?Y-1:Y].dts;if(nt.stretchShortVideoTrack&&null!==this.nextAudioPts){var at=Math.floor(nt.maxBufferHole*v),ot=(n?O+n*v:this.nextAudioPts)-X.pts;ot>at?((i=ot-it)<0&&(i=it),u.logger.log("[mp4-remuxer]: It is approximately "+ot/90+" ms to the next segment; using duration "+i/90+" ms for the last video frame.")):i=it}else i=it}var st=Math.round(X.pts-X.dts);b.push(new y(X.key,i,$,st))}if(b.length&&d&&d<70){var ut=b[0].flags;ut.dependsOn=2,ut.isNonSync=0}console.assert(void 0!==i,"mp4SampleDuration must be computed"),this.nextAvcDts=w=h+i,this.isVideoContiguous=!0;var lt={data1:a.default.moof(t.sequenceNumber++,l,f({},t,{samples:b})),data2:K,startPTS:O/v,endPTS:(k+i)/v,startDTS:l/v,endDTS:w/v,type:"video",hasAudio:!1,hasVideo:!0,nb:b.length,dropped:t.dropped};return t.samples=[],t.dropped=0,console.assert(K.length,"MDAT length must not be zero"),lt},e.remuxAudio=function(t,e,r,n,l){var c=t.inputTimeScale,d=c/(t.samplerate?t.samplerate:c),h=t.isAAC?1024:1152,p=h*d,v=this._initPTS,g=!t.isAAC&&this.typeSupported.mpeg,b=[],E=t.samples,T=g?0:8,w=this.nextAudioPts||-1,S=e*c;if(this.isAudioContiguous=r=r||E.length&&w>0&&(n&&Math.abs(S-w)<9e3||Math.abs(m(E[0].pts-v,S)-w)<20*p),E.forEach((function(t){t.pts=m(t.pts-v,S)})),!r||w<0){if(E=E.filter((function(t){return t.pts>=0})),!E.length)return;w=0===l?0:n?Math.max(0,S):E[0].pts}if(t.isAAC)for(var O=void 0!==l,k=this.config.maxAudioFramesDrift,A=0,P=w;A<E.length;A++){var x=E[A],L=x.pts,_=L-P,D=Math.abs(1e3*_/c);if(_<=-k*p&&O)0===A&&(u.logger.warn("Audio frame @ "+(L/c).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*_/c)+" ms."),this.nextAudioPts=w=P=L);else if(_>=k*p&&D<1e4&&O){var C=Math.round(_/p);(P=L-C*p)<0&&(C--,P+=p),0===A&&(this.nextAudioPts=w=P),u.logger.warn("[mp4-remuxer]: Injecting "+C+" audio frame @ "+(P/c).toFixed(3)+"s due to "+Math.round(1e3*_/c)+" ms gap.");for(var R=0;R<C;R++){var I=Math.max(P,0),M=i.default.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);M||(u.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),M=x.unit.subarray()),E.splice(A,0,{unit:M,pts:I}),P+=p,A++}}x.pts=P,P+=p}for(var N,j=null,F=null,U=0,B=E.length;B--;)U+=E[B].unit.byteLength;for(var V=0,G=E.length;V<G;V++){var H=E[V],z=H.unit,K=H.pts;if(null!==F)b[V-1].duration=Math.round((K-F)/d);else{if(r&&t.isAAC&&(K=w),j=K,!(U>0))return;U+=T;try{N=new Uint8Array(U)}catch(Q){return void this.observer.emit(o.Events.ERROR,o.Events.ERROR,{type:s.ErrorTypes.MUX_ERROR,details:s.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:U,reason:"fail allocating audio mdat "+U})}g||(new DataView(N.buffer).setUint32(0,U),N.set(a.default.types.mdat,4))}N.set(z,T);var W=z.byteLength;T+=W,b.push(new y(!0,h,W,0)),F=K}var q=b.length;if(q){var Y=b[b.length-1];this.nextAudioPts=w=F+d*Y.duration;var X=g?new Uint8Array(0):a.default.moof(t.sequenceNumber++,j/d,f({},t,{samples:b}));t.samples=[];var Z=j/c,$=w/c,J={data1:X,data2:N,startPTS:Z,endPTS:$,startDTS:Z,endDTS:$,type:"audio",hasAudio:!0,hasVideo:!1,nb:q};return this.isAudioContiguous=!0,console.assert(N.length,"MDAT length must not be zero"),J}},e.remuxEmptyAudio=function(t,e,r,n){var a=t.inputTimeScale,o=a/(t.samplerate?t.samplerate:a),s=this.nextAudioPts,l=(null!==s?s:n.startDTS*a)+this._initDTS,c=n.endDTS*a+this._initDTS,f=1024*o,d=Math.ceil((c-l)/f),h=i.default.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);if(u.logger.warn("[mp4-remuxer]: remux empty Audio"),h){for(var p=[],v=0;v<d;v++){var m=l+v*f;p.push({unit:h,pts:m,dts:m})}return t.samples=p,this.remuxAudio(t,e,r,!1)}u.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec")},e.remuxID3=function(t,e){var r=t.samples.length;if(r){for(var n=t.inputTimeScale,i=this._initPTS,a=this._initDTS,o=0;o<r;o++){var s=t.samples[o];s.pts=m(s.pts-i,e*n)/n,s.dts=m(s.dts-a,e*n)/n}var u=t.samples;return t.samples=[],{samples:u}}},e.remuxText=function(t,e){var r=t.samples.length;if(r){for(var n=t.inputTimeScale,i=this._initPTS,a=0;a<r;a++){var o=t.samples[a];o.pts=m(o.pts-i,e*n)/n}t.samples.sort((function(t,e){return t.pts-e.pts}));var s=t.samples;return t.samples=[],{samples:s}}},t}();function m(t,e){var r;if(null===e)return t;for(r=e<t?-8589934592:8589934592;Math.abs(t-e)>4294967296;)t+=r;return t}var y=function(t,e,r,n){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=e,this.size=r,this.cts=n,this.flags=new g(t)},g=function(t){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=t?2:1,this.isNonSync=t?0:1}},"./src/remux/passthrough-remuxer.ts":function(t,e,r){"use strict";r.r(e);var n=r("./src/polyfills/number.ts"),i=r("./src/utils/mp4-tools.ts"),a=r("./src/loader/fragment.ts"),o=r("./src/utils/logger.ts"),s=function(){function t(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=void 0,this.initTracks=void 0,this.lastEndDTS=null}var e=t.prototype;return e.destroy=function(){},e.resetTimeStamp=function(t){this.initPTS=t,this.lastEndDTS=null},e.resetNextTimestamp=function(){this.lastEndDTS=null},e.resetInitSegment=function(t,e,r){this.audioCodec=e,this.videoCodec=r,this.generateInitSegment(t),this.emitInitSegment=!0},e.generateInitSegment=function(t){var e=this.audioCodec,r=this.videoCodec;if(!t||!t.byteLength)return this.initTracks=void 0,void(this.initData=void 0);var n=this.initData=Object(i.parseInitSegment)(t);e||(e=l(n.audio,a.ElementaryStreamTypes.AUDIO)),r||(r=l(n.video,a.ElementaryStreamTypes.VIDEO));var s={};n.audio&&n.video?s.audiovideo={container:"video/mp4",codec:e+","+r,initSegment:t,id:"main"}:n.audio?s.audio={container:"audio/mp4",codec:e,initSegment:t,id:"audio"}:n.video?s.video={container:"video/mp4",codec:r,initSegment:t,id:"main"}:o.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=s},e.remux=function(t,e,r,a,s){var l=this.initPTS,c=this.lastEndDTS,f={audio:void 0,video:void 0,text:a,id3:r,initSegment:void 0};Object(n.isFiniteNumber)(c)||(c=this.lastEndDTS=s||0);var d=e.samples;if(!d||!d.length)return f;var h={initPTS:void 0,timescale:1},p=this.initData;if(p&&p.length||(this.generateInitSegment(d),p=this.initData),!p||!p.length)return o.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),f;this.emitInitSegment&&(h.tracks=this.initTracks,this.emitInitSegment=!1),Object(n.isFiniteNumber)(l)||(this.initPTS=h.initPTS=l=u(p,d,c));var v=Object(i.getDuration)(d,p),m=c,y=v+m;Object(i.offsetStartDTS)(p,d,l),v>0?this.lastEndDTS=y:(o.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var g=!!p.audio,b=!!p.video,E="";g&&(E+="audio"),b&&(E+="video");var T={data1:d,startPTS:m,startDTS:m,endPTS:y,endDTS:y,type:E,hasAudio:g,hasVideo:b,nb:1,dropped:0};return f.audio="audio"===T.type?T:void 0,f.video="audio"!==T.type?T:void 0,f.text=a,f.id3=r,f.initSegment=h,f},t}(),u=function(t,e,r){return Object(i.getStartDTS)(t,e)-r};function l(t,e){var r=null===t||void 0===t?void 0:t.codec;return r&&r.length>4?r:"hvc1"===r?"hvc1.1.c.L120.90":"av01"===r?"av01.0.04M.08":"avc1"===r||e===a.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}e.default=s},"./src/task-loop.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return n}));var n=function(){function t(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var e=t.prototype;return e.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},e.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},e.onHandlerDestroyed=function(){},e.hasInterval=function(){return!!this._tickInterval},e.hasNextTick=function(){return!!this._tickTimer},e.setInterval=function(t){return!this._tickInterval&&(this._tickInterval=self.setInterval(this._boundTick,t),!0)},e.clearInterval=function(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)},e.clearNextTick=function(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)},e.tick=function(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},e.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},e.doTick=function(){},t}()},
1"./src/types/cmcd.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"CMCDVersion",(function(){return o})),r.d(e,"CMCDObjectType",(function(){return n})),r.d(e,"CMCDStreamingFormat",(function(){return i})),r.d(e,"CMCDStreamType",(function(){return a}));var n,i,a,o=1;!function(t){t.MANIFEST="m",t.AUDIO="a",t.VIDEO="v",t.MUXED="av",t.INIT="i",t.CAPTION="c",t.TIMED_TEXT="tt",t.KEY="k",t.OTHER="o"}(n||(n={})),function(t){t.DASH="d",t.HLS="h",t.SMOOTH="s",t.OTHER="o"}(i||(i={})),function(t){t.VOD="v",t.LIVE="l"}(a||(a={}))},
vendor: 2,110 bytes, line 1
1"./src/types/level.ts":function(t,e,r){"use strict";function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var i;function a(t,e){var r=t.canSkipUntil,n=t.canSkipDateRanges,a=t.endSN;return r&&(void 0!==e?e-a:0)<r?n?i.v2:i.Yes:i.No}r.r(e),r.d(e,"HlsSkip",(function(){return i})),r.d(e,"getSkipValue",(function(){return a})),r.d(e,"HlsUrlParameters",(function(){return o})),r.d(e,"Level",(function(){return s})),function(t){t.No="",t.Yes="YES",t.v2="v2"}(i||(i={}));var o=function(){function t(t,e,r){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=t,this.part=e,this.skip=r}return t.prototype.addDirectives=function(t){var e=new self.URL(t);return void 0!==this.msn&&e.searchParams.set("_HLS_msn",this.msn.toString()),void 0!==this.part&&e.searchParams.set("_HLS_part",this.part.toString()),this.skip&&e.searchParams.set("_HLS_skip",this.skip),e.toString()},t}(),s=function(){function t(t){this.attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[t.url],this.attrs=t.attrs,this.bitrate=t.bitrate,t.details&&(this.details=t.details),this.id=t.id||0,this.name=t.name,this.width=t.width||0,this.height=t.height||0,this.audioCodec=t.audioCodec,this.videoCodec=t.videoCodec,this.unknownCodecs=t.unknownCodecs,this.codecSet=[t.videoCodec,t.audioCodec].filter((function(t){return t})).join(",").replace(/\.[^.,]+/g,"")}var e,r,i;return e=t,(r=[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(t){var e=t%this.url.length;this._urlId!==e&&(this.details=void 0,this._urlId=e)}}])&&n(e.prototype,r),i&&n(e,i),t}()},
1"./src/types/loader.ts":function(t,e,r){"use strict";var n,i;r.r(e),r.d(e,"PlaylistContextType",(function(){return n})),r.d(e,"PlaylistLevelType",(function(){return i})),function(t){t.MANIFEST="manifest",t.LEVEL="level",t.AUDIO_TRACK="audioTrack",t.SUBTITLE_TRACK="subtitleTrack"}(n||(n={})),function(t){t.MAIN="main",t.AUDIO="audio",t.SUBTITLE="subtitle"}(i||(i={}))},
1"./src/types/transmuxer.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"ChunkMetadata",(function(){return n}));var n=function(t,e,r,n,i,a){void 0===n&&(n=0),void 0===i&&(i=-1),void 0===a&&(a=!1),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing={start:0,executeStart:0,executeEnd:0,end:0},this.buffering={audio:{start:0,executeStart:0,executeEnd:0,end:0},video:{start:0,executeStart:0,executeEnd:0,end:0},audiovideo:{start:0,executeStart:0,executeEnd:0,end:0}},this.level=t,this.sn=e,this.id=r,this.size=n,this.part=i,this.partial=a}},
vendor: 2,683 bytes, line 1
1"./src/utils/attr-list.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"AttrList",(function(){return a}));var n=/^(\d+)x(\d+)$/,i=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,a=function(){function t(e){for(var r in"string"===typeof e&&(e=t.parseAttrList(e)),e)e.hasOwnProperty(r)&&(this[r]=e[r])}var e=t.prototype;return e.decimalInteger=function(t){var e=parseInt(this[t],10);return e>Number.MAX_SAFE_INTEGER?1/0:e},e.hexadecimalInteger=function(t){if(this[t]){var e=(this[t]||"0x").slice(2);e=(1&e.length?"0":"")+e;for(var r=new Uint8Array(e.length/2),n=0;n<e.length/2;n++)r[n]=parseInt(e.slice(2*n,2*n+2),16);return r}return null},e.hexadecimalIntegerAsNumber=function(t){var e=parseInt(this[t],16);return e>Number.MAX_SAFE_INTEGER?1/0:e},e.decimalFloatingPoint=function(t){return parseFloat(this[t])},e.optionalFloat=function(t,e){var r=this[t];return r?parseFloat(r):e},e.enumeratedString=function(t){return this[t]},e.bool=function(t){return"YES"===this[t]},e.decimalResolution=function(t){var e=n.exec(this[t]);if(null!==e)return{width:parseInt(e[1],10),height:parseInt(e[2],10)}},t.parseAttrList=function(t){var e,r={};for(i.lastIndex=0;null!==(e=i.exec(t));){var n=e[2];0===n.indexOf('"')&&n.lastIndexOf('"')===n.length-1&&(n=n.slice(1,-1)),r[e[1]]=n}return r},t}()},"./src/utils/binary-search.ts":function(t,e,r){"use strict";r.r(e),e.default={search:function(t,e){for(var r=0,n=t.length-1,i=null,a=null;r<=n;){var o=e(a=t[i=(r+n)/2|0]);if(o>0)r=i+1;else{if(!(o<0))return a;n=i-1}}return null}}},"./src/utils/buffer-helper.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"BufferHelper",(function(){return a}));var n=r("./src/utils/logger.ts"),i={length:0,start:function(){return 0},end:function(){return 0}},a=function(){function t(){}return t.isBuffered=function(e,r){try{if(e)for(var n=t.getBuffered(e),i=0;i<n.length;i++)if(r>=n.start(i)&&r<=n.end(i))return!0}catch(a){}return!1},t.bufferInfo=function(e,r,n){try{if(e){var i,a=t.getBuffered(e),o=[];for(i=0;i<a.length;i++)o.push({start:a.start(i),end:a.end(i)});return this.bufferedInfo(o,r,n)}}catch(s){}return{len:0,start:r,end:r,nextStart:void 0}},t.bufferedInfo=function(t,e,r){e=Math.max(0,e),t.sort((function(t,e){var r=t.start-e.start;return r||e.end-t.end}));var n=[];if(r)for(var i=0;i<t.length;i++){var a=n.length;if(a){var o=n[a-1].end;t[i].start-o<r?t[i].end>o&&(n[a-1].end=t[i].end):n.push(t[i])}else n.push(t[i])}else n=t;for(var s,u=0,l=e,c=e,f=0;f<n.length;f++){var d=n[f].start,h=n[f].end;if(e+r>=d&&e<h)l=d,u=(c=h)-e;else if(e+r<d){s=d;break}}return{len:u,start:l||0,end:c||0,nextStart:s}},t.getBuffered=function(t){try{return t.buffered}catch(e){return n.logger.log("failed to get media.buffered",e),i}},t}()},
vendor: 4,672 bytes, line 1
1"./src/utils/cea-608-parser.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"Row",(function(){return g})),r.d(e,"CaptionScreen",(function(){return b}));var n,i=r("./src/utils/logger.ts"),a={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},o=function(t){var e=t;return a.hasOwnProperty(t)&&(e=a[t]),String.fromCharCode(e)},s=15,u=100,l={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},c={17:2,18:4,21:6,22:8,23:10,19:13,20:15},f={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},d={25:2,26:4,29:6,30:8,31:10,27:13,28:15},h=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];!function(t){t[t.ERROR=0]="ERROR",t[t.TEXT=1]="TEXT",t[t.WARNING=2]="WARNING",t[t.INFO=2]="INFO",t[t.DEBUG=3]="DEBUG",t[t.DATA=3]="DATA"}(n||(n={}));var p=function(){function t(){this.time=null,this.verboseLevel=n.ERROR}return t.prototype.log=function(t,e){this.verboseLevel>=t&&i.logger.log(this.time+" ["+t+"] "+e)},t}(),v=function(t){for(var e=[],r=0;r<t.length;r++)e.push(t[r].toString(16));return e},m=function(){function t(t,e,r,n,i){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=t||"white",this.underline=e||!1,this.italics=r||!1,this.background=n||"black",this.flash=i||!1}var e=t.prototype;return e.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},e.setStyles=function(t){for(var e=["foreground","underline","italics","background","flash"],r=0;r<e.length;r++){var n=e[r];t.hasOwnProperty(n)&&(this[n]=t[n])}},e.isDefault=function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},e.equals=function(t){return this.foreground===t.foreground&&this.underline===t.underline&&this.italics===t.italics&&this.background===t.background&&this.flash===t.flash},e.copy=function(t){this.foreground=t.foreground,this.underline=t.underline,this.italics=t.italics,this.background=t.background,this.flash=t.flash},e.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},t}(),y=function(){function t(t,e,r,n,i,a){this.uchar=void 0,this.penState=void 0,this.uchar=t||" ",this.penState=new m(e,r,n,i,a)}var e=t.prototype;return e.reset=function(){this.uchar=" ",this.penState.reset()},e.setChar=function(t,e){this.uchar=t,this.penState.copy(e)},e.setPenState=function(t){this.penState.copy(t)},e.equals=function(t){return this.uchar===t.uchar&&this.penState.equals(t.penState)},e.copy=function(t){this.uchar=t.uchar,this.penState.copy(t.penState)},e.isEmpty=function(){return" "===this.uchar&&this.penState.isDefault()},t}(),g=function(){function t(t){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var e=0;e<u;e++)this.chars.push(new y);this.logger=t,this.pos=0,this.currPenState=new m}var e=t.prototype;return e.equals=function(t){for(var e=!0,r=0;r<u;r++)if(!this.chars[r].equals(t.chars[r])){e=!1;break}return e},e.copy=function(t){for(var e=0;e<u;e++)this.chars[e].copy(t.chars[e])},e.isEmpty=function(){for(var t=!0,e=0;e<u;e++)if(!this.chars[e].isEmpty()){t=!1;break}return t},e.setCursor=function(t){this.pos!==t&&(this.pos=t),this.pos<0?(this.logger.log(n.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>u&&(this.logger.log(n.DEBUG,"Too large cursor position "+this.pos),this.pos=u)},e.moveCursor=function(t){var e=this.pos+t;if(t>1)for(var r=this.pos+1;r<e+1;r++)this.chars[r].setPenState(this.currPenState);this.setCursor(e)},e.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},e.insertChar=function(t){t>=144&&this.backSpace();var e=o(t);this.pos>=u?this.logger.log(n.ERROR,"Cannot insert "+t.toString(16)+" ("+e+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(e,this.currPenState),this.moveCursor(1))},e.clearFromPos=function(t){var e;
vendor: 5,614 bytes, line 1
1for(e=t;e<u;e++)this.chars[e].reset()},e.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},e.clearToEndOfRow=function(){this.clearFromPos(this.pos)},e.getTextString=function(){for(var t=[],e=!0,r=0;r<u;r++){var n=this.chars[r].uchar;" "!==n&&(e=!1),t.push(n)}return e?"":t.join("")},e.setPenStyles=function(t){this.currPenState.setStyles(t),this.chars[this.pos].setPenState(this.currPenState)},t}(),b=function(){function t(t){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var e=0;e<s;e++)this.rows.push(new g(t));this.logger=t,this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var e=t.prototype;return e.reset=function(){for(var t=0;t<s;t++)this.rows[t].clear();this.currRow=14},e.equals=function(t){for(var e=!0,r=0;r<s;r++)if(!this.rows[r].equals(t.rows[r])){e=!1;break}return e},e.copy=function(t){for(var e=0;e<s;e++)this.rows[e].copy(t.rows[e])},e.isEmpty=function(){for(var t=!0,e=0;e<s;e++)if(!this.rows[e].isEmpty()){t=!1;break}return t},e.backSpace=function(){this.rows[this.currRow].backSpace()},e.clearToEndOfRow=function(){this.rows[this.currRow].clearToEndOfRow()},e.insertChar=function(t){this.rows[this.currRow].insertChar(t)},e.setPen=function(t){this.rows[this.currRow].setPenStyles(t)},e.moveCursor=function(t){this.rows[this.currRow].moveCursor(t)},e.setCursor=function(t){this.logger.log(n.INFO,"setCursor: "+t),this.rows[this.currRow].setCursor(t)},e.setPAC=function(t){this.logger.log(n.INFO,"pacData = "+JSON.stringify(t));var e=t.row-1;if(this.nrRollUpRows&&e<this.nrRollUpRows-1&&(e=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==e){for(var r=0;r<s;r++)this.rows[r].clear();var i=this.currRow+1-this.nrRollUpRows,a=this.lastOutputScreen;if(a){var o=a.rows[i].cueStartTime,u=this.logger.time;if(o&&null!==u&&o<u)for(var l=0;l<this.nrRollUpRows;l++)this.rows[e-this.nrRollUpRows+l+1].copy(a.rows[i+l])}}this.currRow=e;var c=this.rows[this.currRow];if(null!==t.indent){var f=t.indent,d=Math.max(f-1,0);c.setCursor(t.indent),t.color=c.chars[d].penState.foreground}var h={foreground:t.color,underline:t.underline,italics:t.italics,background:"black",flash:!1};this.setPen(h)},e.setBkgData=function(t){this.logger.log(n.INFO,"bkgData = "+JSON.stringify(t)),this.backSpace(),this.setPen(t),this.insertChar(32)},e.setRollUpRows=function(t){this.nrRollUpRows=t},e.rollUp=function(){if(null!==this.nrRollUpRows){this.logger.log(n.TEXT,this.getDisplayText());var t=this.currRow+1-this.nrRollUpRows,e=this.rows.splice(t,1)[0];e.clear(),this.rows.splice(this.currRow,0,e),this.logger.log(n.INFO,"Rolling up")}else this.logger.log(n.DEBUG,"roll_up but nrRollUpRows not set yet")},e.getDisplayText=function(t){t=t||!1;for(var e=[],r="",n=-1,i=0;i<s;i++){var a=this.rows[i].getTextString();a&&(n=i+1,t?e.push("Row "+n+": '"+a+"'"):e.push(a.trim()))}return e.length>0&&(r=t?"["+e.join(" | ")+"]":e.join("\n")),r},e.getTextAndFormat=function(){return this.rows},t}(),E=function(){function t(t,e,r){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=t,this.outputFilter=e,this.mode=null,this.verbose=0,this.displayedMemory=new b(r),this.nonDisplayedMemory=new b(r),this.lastOutputScreen=new b(r),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}var e=t.prototype;return e.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},e.getHandler=function(){return this.outputFilter},e.setHandler=function(t){this.outputFilter=t},e.setPAC=function(t){this.writeScreen.setPAC(t)},e.setBkgData=function(t){this.writeScreen.setBkgData(t)},e.setMode=function(t){t!==this.mode&&(this.mode=t,this.logger.log(n.INFO,"MODE="+t),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)},e.insertChars=function(t){for(var e=0;e<t.length;e++)this.writeScreen.insertChar(t[e]);var r=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(n.INFO,r+": "+this.writeScreen.getDisplayText(!0)),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(n.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},e.ccRCL=function(){this.logger.log(n.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},e.ccBS=function(){this.logger.log(n.INFO,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},e.ccAOF=function(){},e.ccAON=function(){},e.ccDER=function(){this.logger.log(n.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},e.ccRU=function(t){this.logger.log(n.INFO,"RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)},e.ccFON=function(){this.logger.log(n.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},e.ccRDC=function(){this.logger.log(n.INFO,"RDC - Resume Direct 
1Captioning"),this.setMode("MODE_PAINT-ON")},e.ccTR=function(){this.logger.log(n.INFO,"TR"),this.setMode("MODE_TEXT")},e.ccRTD=function(){this.logger.log(n.INFO,"RTD"),this.setMode("MODE_TEXT")},e.ccEDM=function(){this.logger.log(n.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},e.ccCR=function(){this.logger.log(n.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},e.ccENM=function(){this.logger.log(n.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},e.ccEOC=function(){if(this.logger.log(n.INFO,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,this.logger.log(n.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},e.ccTO=function(t){this.logger.log(n.INFO,"TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)},e.ccMIDROW=function(t){var e={flash:!1};if(e.underline=t%2===1,e.italics=t>=46,e.italics)e.foreground="white";else{var r=Math.floor(t/2)-16;e.foreground=["white","green","blue","cyan","red","yellow","magenta"][r]}this.logger.log(n.INFO,"MIDROW: "+JSON.stringify(e)),this.writeScreen.setPen(e)},e.outputDataUpdate=function(t){void 0===t&&(t=!1);var e=this.logger.time;null!==e&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),t&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))},e.cueSplitAtTime=function(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))},t}(),T=function(){function t(t,e,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var n=new p;this.channels=[null,new E(t,e,n),new E(t+1,r,n)],this.cmdHistory={a:null,b:null},this.logger=n}var e=t.prototype;return e.getHandler=function(t){return this.channels[t].getHandler()},e.setHandler=function(t,e){this.channels[t].setHandler(e)},e.addData=function(t,e){var r,i,a,o=!1;this.logger.time=t;for(var s=0;s<e.length;s+=2)if(i=127&e[s],a=127&e[s+1],0!==i||0!==a){if(this.logger.log(n.DATA,"["+v([e[s],e[s+1]])+"] -> ("+v([i,a])+")"),(r=this.parseCmd(i,a))||(r=this.parseMidrow(i,a)),r||(r=this.parsePAC(i,a)),r||(r=this.parseBackgroundAttributes(i,a)),!r&&(o=this.parseChars(i,a))){var u=this.currentChannel;u&&u>0?this.channels[u].insertChars(o):this.logger.log(n.WARNING,"No channel found yet. TEXT-MODE?")}r||o||this.logger.log(n.WARNING,"Couldn't parse cleaned data "+v([i,a])+" orig: "+v([e[s],e[s+1]]))}},e.parseCmd=function(t,e){var r=this.cmdHistory;if(!((20===t||28===t||21===t||29===t)&&e>=32&&e<=47)&&!((23===t||31===t)&&e>=33&&e<=35))return!1;if(S(t,e,r))return w(null,null,r),this.logger.log(n.DEBUG,"Repeated command ("+v([t,e])+") is dropped"),!0;var i=20===t||21===t||23===t?1:2,a=this.channels[i];return 20===t||21===t||28===t||29===t?32===e?a.ccRCL():33===e?a.ccBS():34===e?a.ccAOF():35===e?a.ccAON():36===e?a.ccDER():37===e?a.ccRU(2):38===e?a.ccRU(3):39===e?a.ccRU(4):40===e?a.ccFON():41===e?a.ccRDC():42===e?a.ccTR():43===e?a.ccRTD():44===e?a.ccEDM():45===e?a.ccCR():46===e?a.ccENM():47===e&&a.ccEOC():a.ccTO(e-32),w(t,e,r),this.currentChannel=i,!0},e.parseMidrow=function(t,e){var r=0;if((17===t||25===t)&&e>=32&&e<=47){if((r=17===t?1:2)!==this.currentChannel)return this.logger.log(n.ERROR,"Mismatch channel in midrow parsing"),!1;var i=this.channels[r];return!!i&&(i.ccMIDROW(e),this.logger.log(n.DEBUG,"MIDROW ("+v([t,e])+")"),!0)}return!1},e.parsePAC=function(t,e){var r,n=this.cmdHistory;if(!((t>=17&&t<=23||t>=25&&t<=31)&&e>=64&&e<=127)&&!((16===t||24===t)&&e>=64&&e<=95))return!1;if(S(t,e,n))return w(null,null,n),!0;var i=t<=23?1:2;r=e>=64&&e<=95?1===i?l[t]:f[t]:1===i?c[t]:d[t];var a=this.channels[i];return!!a&&(a.setPAC(this.interpretPAC(r,e)),w(t,e,n),this.currentChannel=i,!0)},e.interpretPAC=function(t,e){var r,n={color:null,italics:!1,indent:null,underline:!1,row:t};return r=e>95?e-96:e-64,n.underline=1===(1&r),r<=13?n.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(n.italics=!0,n.color="white"):n.indent=4*Math.floor((r-16)/2),n},e.parseChars=function(t,e){var r,i,a=null,s=null;if(t>=25?(r=2,s=t-8):(r=1,s=t),s>=17&&s<=19?(i=17===s?e+80:18===s?e+112:e+144,this.logger.log(n.INFO,"Special char '"+o(i)+"' in channel "+r),a=[i]):t>=32&&t<=127&&(a=0===e?[t]:[t,e]),a){var u=v(a);this.logger.log(n.DEBUG,"Char codes =  "+u.join(",")),w(t,e,this.cmdHistory)}return a}
vendor: 753 bytes, line 1
1,e.parseBackgroundAttributes=function(t,e){var r;if(!((16===t||24===t)&&e>=32&&e<=47)&&!((23===t||31===t)&&e>=45&&e<=47))return!1;var n={};16===t||24===t?(r=Math.floor((e-32)/2),n.background=h[r],e%2===1&&(n.background=n.background+"_semi")):45===e?n.background="transparent":(n.foreground="black",47===e&&(n.underline=!0));var i=t<=23?1:2;return this.channels[i].setBkgData(n),w(t,e,this.cmdHistory),!0},e.reset=function(){for(var t=0;t<Object.keys(this.channels).length;t++){var e=this.channels[t];e&&e.reset()}this.cmdHistory={a:null,b:null}},e.cueSplitAtTime=function(t){for(var e=0;e<this.channels.length;e++){var r=this.channels[e];r&&r.cueSplitAtTime(t)}},t}();function w(t,e,r){r.a=t,r.b=e}function S(t,e,r){return r.a===t&&r.b===e}e.default=T},
1"./src/utils/codecs.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"isCodecType",(function(){return i})),r.d(e,"isCodecSupportedInMp4",(function(){return a}));var n={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,av01:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0},text:{stpp:!0,wvtt:!0}};function i(t,e){var r=n[e];return!!r&&!0===r[t.slice(0,4)]}function a(t,e){return MediaSource.isTypeSupported((e||"video")+'/mp4;codecs="'+t+'"')}},
vendor: 4,831 bytes, line 1
1"./src/utils/cues.ts":function(t,e,r){"use strict";r.r(e);var n=r("./src/utils/vttparser.ts"),i=r("./src/utils/webvtt-parser.ts"),a=r("./src/utils/texttrack-utils.ts"),o=/\s/,s={newCue:function(t,e,r,s){for(var u,l,c,f,d,h=[],p=self.VTTCue||self.TextTrackCue,v=0;v<s.rows.length;v++)if(c=!0,f=0,d="",!(u=s.rows[v]).isEmpty()){for(var m=0;m<u.chars.length;m++)o.test(u.chars[m].uchar)&&c?f++:(d+=u.chars[m].uchar,c=!1);u.cueStartTime=e,e===r&&(r+=1e-4),f>=16?f--:f++;var y=Object(n.fixLineBreaks)(d.trim()),g=Object(i.generateCueId)(e,r,y);t&&t.cues&&t.cues.getCueById(g)||((l=new p(e,r,y)).id=g,l.line=v+1,l.align="left",l.position=10+Math.min(80,10*Math.floor(8*f/32)),h.push(l))}return t&&h.length&&(h.sort((function(t,e){return"auto"===t.line||"auto"===e.line?0:t.line>8&&e.line>8?e.line-t.line:t.line-e.line})),h.forEach((function(e){return Object(a.addCueToTrack)(t,e)}))),h}};e.default=s},"./src/utils/discontinuities.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"findFirstFragWithCC",(function(){return o})),r.d(e,"shouldAlignOnDiscontinuities",(function(){return s})),r.d(e,"findDiscontinuousReferenceFrag",(function(){return u})),r.d(e,"adjustSlidingStart",(function(){return c})),r.d(e,"alignStream",(function(){return f})),r.d(e,"alignPDT",(function(){return d})),r.d(e,"alignFragmentByPDTDelta",(function(){return h})),r.d(e,"alignMediaPlaylistByPDT",(function(){return p}));var n=r("./src/polyfills/number.ts"),i=r("./src/utils/logger.ts"),a=r("./src/controller/level-helper.ts");function o(t,e){for(var r=null,n=0,i=t.length;n<i;n++){var a=t[n];if(a&&a.cc===e){r=a;break}}return r}function s(t,e,r){return!(!e.details||!(r.endCC>r.startCC||t&&t.cc<r.startCC))}function u(t,e){var r=t.fragments,n=e.fragments;if(n.length&&r.length){var a=o(r,n[0].cc);if(a&&(!a||a.startPTS))return a;i.logger.log("No frag in previous level to align on")}else i.logger.log("No fragments to align")}function l(t,e){if(t){var r=t.start+e;t.start=t.startPTS=r,t.endPTS=r+t.duration}}function c(t,e){for(var r=e.fragments,n=0,i=r.length;n<i;n++)l(r[n],t);e.fragmentHint&&l(e.fragmentHint,t),e.alignedSliding=!0}function f(t,e,r){e&&(function(t,e,r){if(s(t,r,e)){var a=u(r.details,e);a&&Object(n.isFiniteNumber)(a.start)&&(i.logger.log("Adjusting PTS using last level due to CC increase within current level "+e.url),c(a.start,e))}}(t,r,e),!r.alignedSliding&&e.details&&d(r,e.details),r.alignedSliding||!e.details||r.skippedSegments||Object(a.adjustSliding)(e.details,r))}function d(t,e){if(e.fragments.length&&t.hasProgramDateTime&&e.hasProgramDateTime){var r=e.fragments[0].programDateTime,a=t.fragments[0].programDateTime,o=(a-r)/1e3+e.fragments[0].start;o&&Object(n.isFiniteNumber)(o)&&(i.logger.log("Adjusting PTS using programDateTime delta "+(a-r)+"ms, sliding:"+o.toFixed(3)+" "+t.url+" "),c(o,t))}}function h(t,e){var r=t.programDateTime;if(r){var n=(r-e)/1e3;t.start=t.startPTS=n,t.endPTS=n+t.duration}}function p(t,e){if(e.fragments.length&&t.hasProgramDateTime&&e.hasProgramDateTime){var r=e.fragments[0].programDateTime-1e3*e.fragments[0].start;t.fragments.forEach((function(t){h(t,r)})),t.fragmentHint&&h(t.fragmentHint,r),t.alignedSliding=!0}}},"./src/utils/ewma-bandwidth-estimator.ts":function(t,e,r){"use strict";r.r(e);var n=r("./src/utils/ewma.ts"),i=function(){function t(t,e,r){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new n.default(t),this.fast_=new n.default(e)}var e=t.prototype;return e.update=function(t,e){var r=this.slow_,i=this.fast_;this.slow_.halfLife!==t&&(this.slow_=new n.default(t,r.getEstimate(),r.getTotalWeight())),this.fast_.halfLife!==e&&(this.fast_=new n.default(e,i.getEstimate(),i.getTotalWeight()))},e.sample=function(t,e){var r=(t=Math.max(t,this.minDelayMs_))/1e3,n=8*e/r;this.fast_.sample(r,n),this.slow_.sample(r,n)},e.canEstimate=function(){var t=this.fast_;return t&&t.getTotalWeight()>=this.minWeight_},e.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},e.destroy=function(){},t}();e.default=i},"./src/utils/ewma.ts":function(t,e,r){"use strict";r.r(e);var n=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=t,this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=e,this.totalWeight_=r}var e=t.prototype;return e.sample=function(t,e){var r=Math.pow(this.alpha_,t);this.estimate_=e*(1-r)+r*this.estimate_,this.totalWeight_+=t},e.getTotalWeight=function(){return this.totalWeight_},e.getEstimate=function(){if(this.alpha_){var t=1-Math.pow(this.alpha_,this.totalWeight_);if(t)return this.estimate_/t}return this.estimate_},t}();e.default=n},
1"./src/utils/fetch-loader.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"fetchSupported",(function(){return d}));var n=r("./src/polyfills/number.ts"),i=r("./src/loader/load-stats.ts"),a=r("./src/demux/chunk-cache.ts");function o(t){var e="function"===typeof Map?new Map:void 0;return o=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return s(t,arguments,c(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,t)},o(t)}function s(t,e,r){return s=u()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&l(i,r.prototype),i},s.apply(null,arguments)}function u(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function f(){return f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},f.apply(this,arguments)}function d(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(t){}return!1}var h=function(){function t(t){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=void 0,this.response=void 0,this.controller=void 0,this.context=void 0,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=t.fetchSetup||p,this.controller=new self.AbortController,this.stats=new i.LoadStats}var e=t.prototype;return e.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},e.abortInternal=function(){var t=this.response;t&&t.ok||(this.stats.aborted=!0,this.controller.abort())},e.abort=function(){var t;this.abortInternal(),null!==(t=this.callbacks)&&void 0!==t&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},e.load=function(t,e,r){var i=this,a=this.stats;if(a.loading.start)throw new Error("Loader can only be used once.");a.loading.start=self.performance.now();var o=function(t,e){var r={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(f({},t.headers))};return t.rangeEnd&&r.headers.set("Range","bytes="+t.rangeStart+"-"+String(t.rangeEnd-1)),r}(t,this.controller.signal),s=r.onProgress,u="arraybuffer"===t.responseType,l=u?"byteLength":"length";this.context=t,this.config=e,this.callbacks=r,this.request=this.fetchSetup(t,o),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout((function(){i.abortInternal(),r.onTimeout(a,t,i.response)}),e.timeout),self.fetch(this.request).then((function(r){if(i.response=i.loader=r,!r.ok){var o=r.status,l=r.statusText;throw new v(l||"fetch, bad network response",o,r)}return a.loading.first=Math.max(self.performance.now(),a.loading.start),a.total=parseInt(r.headers.get("Content-Length")||"0"),s&&Object(n.isFiniteNumber)(e.highWaterMark)?i.loadProgressively(r,a,t,e.highWaterMark,s):u?r.arrayBuffer():r.text()})).then((function(o){var u=i.response;self.clearTimeout(i.requestTimeout),a.loading.end=Math.max(self.performance.now(),a.loading.first),a.loaded=a.total=o[l];var c={url:u.url,data:o};s&&!Object(n.isFiniteNumber)(e.highWaterMark)&&s(a,t,o,u),r.onSuccess(c,a,t,u)})).catch((function(e){if(self.clearTimeout(i.requestTimeout),!a.aborted){var n=e.code||0;r.onError({code:n,text:e.message},t,e.details)}}))},e.getCacheAge=function(){var t=null;if(this.response){var e=this.response.headers.get("age");t=e?parseFloat(e):null}return t},e.loadProgressively=function(t,e,r,n,i){void 0===n&&(n=0);var o=new a.default,s=t.body.getReader();return function a(){return s.read().then((function(s){if(s.done)return o.dataLength&&i(e,r,o.flush(),t),Promise.resolve(new ArrayBuffer(0));var u=s.value,l=u.length;return e.loaded+=l,l<n||o.dataLength?(o.push(u),o.dataLength>=n&&i(e,r,o.flush(),t)):i(e,r,u,t),a()})).catch((function(){return Promise.reject()}))}()},t}();
1function p(t,e){return new self.Request(t.url,e)}var v=function(t){var e,r;function n(e,r,n){var i;return(i=t.call(this,e)||this).code=void 0,i.details=void 0,i.code=r,i.details=n,i}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,l(e,r),n}(o(Error));e.default=h},
vendor: 3,822 bytes, line 1
1"./src/utils/imsc1-ttml-parser.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"IMSC1_CODEC",(function(){return c})),r.d(e,"parseIMSC1",(function(){return p}));var n=r("./src/utils/mp4-tools.ts"),i=r("./src/utils/vttparser.ts"),a=r("./src/utils/vttcue.ts"),o=r("./src/demux/id3.ts"),s=r("./src/utils/timescale-conversion.ts"),u=r("./src/utils/webvtt-parser.ts");function l(){return l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l.apply(this,arguments)}var c="stpp.ttml.im1t",f=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,d=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,h={left:"start",center:"center",right:"end",start:"start",end:"end"};function p(t,e,r,i,c){var f=Object(n.findBox)(new Uint8Array(t),["mdat"]);if(0!==f.length){var d=f[0],p=Object(o.utf8ArrayToStr)(new Uint8Array(t,d.start,d.end-d.start)),T=Object(s.toTimescaleFromScale)(e,1,r);try{i(function(t,e){var r=(new DOMParser).parseFromString(t,"text/xml").getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");var n={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},i=Object.keys(n).reduce((function(t,e){return t[e]=r.getAttribute("ttp:"+e)||n[e],t}),{}),o="preserve"!==r.getAttribute("xml:space"),s=m(v(r,"styling","style")),c=m(v(r,"layout","region")),f=v(r,"body","[begin]");return[].map.call(f,(function(t){var r=y(t,o);if(!r||!t.hasAttribute("begin"))return null;var n=E(t.getAttribute("begin"),i),f=E(t.getAttribute("dur"),i),d=E(t.getAttribute("end"),i);if(null===n)throw b(t);if(null===d){if(null===f)throw b(t);d=n+f}var p=new a.default(n-e,d-e,r);p.id=Object(u.generateCueId)(p.startTime,p.endTime,p.text);var v=c[t.getAttribute("region")],m=s[t.getAttribute("style")];p.position=10,p.size=80;var T=function(t,e){var r="http://www.w3.org/ns/ttml#styling";return["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"].reduce((function(n,i){var a=g(e,r,i)||g(t,r,i);return a&&(n[i]=a),n}),{})}(v,m),w=T.textAlign;if(w){var S=h[w];S&&(p.lineAlign=S),p.align=w}return l(p,T),p})).filter((function(t){return null!==t}))}(p,T))}catch(w){c(w)}}else c(new Error("Could not parse IMSC1 mdat"))}function v(t,e,r){var n=t.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(r)):[]}function m(t){return t.reduce((function(t,e){var r=e.getAttribute("xml:id");return r&&(t[r]=e),t}),{})}function y(t,e){return[].slice.call(t.childNodes).reduce((function(t,r,n){var i;return"br"===r.nodeName&&n?t+"\n":null!==(i=r.childNodes)&&void 0!==i&&i.length?y(r,e):e?t+r.textContent.trim().replace(/\s+/g," "):t+r.textContent}),"")}function g(t,e,r){return t.hasAttributeNS(e,r)?t.getAttributeNS(e,r):null}function b(t){return new Error("Could not parse ttml timestamp "+t)}function E(t,e){if(!t)return null;var r=Object(i.parseTimeStamp)(t);return null===r&&(f.test(t)?r=function(t,e){var r=f.exec(t),n=(0|r[4])+(0|r[5])/e.subFrameRate;return 3600*(0|r[1])+60*(0|r[2])+(0|r[3])+n/e.frameRate}(t,e):d.test(t)&&(r=function(t,e){var r=d.exec(t),n=Number(r[1]);switch(r[2]){case"h":return 3600*n;case"m":return 60*n;case"ms":return 1e3*n;case"f":return n/e.frameRate;case"t":return n/e.tickRate}return n}(t,e))),r}},"./src/utils/logger.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"enableLogs",(function(){return s})),r.d(e,"logger",(function(){return u}));var n=function(){},i={trace:n,debug:n,log:n,warn:n,info:n,error:n},a=i;function o(t){var e=self.console[t];return e?e.bind(self.console,"["+t+"] >"):n}function s(t){if(self.console&&!0===t||"object"===typeof t){!function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];r.forEach((function(e){a[e]=t[e]?t[e].bind(t):o(e)}))}(t,"debug","log","info","warn","error");try{a.log()}catch(e){a=i}}else a=i}var u=i},
1"./src/utils/mediakeys-helper.ts":function(t,e,r){"use strict";var n;r.r(e),r.d(e,"KeySystems",(function(){return n})),r.d(e,"requestMediaKeySystemAccess",(function(){return i})),function(t){t.WIDEVINE="com.widevine.alpha",t.PLAYREADY="com.microsoft.playready"}(n||(n={}));var i="undefined"!==typeof self&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null},
1"./src/utils/mediasource-helper.ts":function(t,e,r){"use strict";function n(){return self.MediaSource||self.WebKitMediaSource}r.r(e),r.d(e,"getMediaSource",(function(){return n}))},
vendor: 4,462 bytes, line 1
1"./src/utils/mp4-tools.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"bin2str",(function(){return s})),r.d(e,"readUint16",(function(){return u})),r.d(e,"readUint32",(function(){return l})),r.d(e,"writeUint32",(function(){return c})),r.d(e,"findBox",(function(){return f})),r.d(e,"parseSegmentIndex",(function(){return d})),r.d(e,"parseInitSegment",(function(){return h})),r.d(e,"getStartDTS",(function(){return p})),r.d(e,"getDuration",(function(){return v})),r.d(e,"computeRawDurationFromSamples",(function(){return m})),r.d(e,"offsetStartDTS",(function(){return y})),r.d(e,"segmentValidRange",(function(){return g})),r.d(e,"appendUint8Array",(function(){return b}));var n=r("./src/utils/typed-array.ts"),i=r("./src/loader/fragment.ts"),a=Math.pow(2,32)-1,o=[].push;function s(t){return String.fromCharCode.apply(null,t)}function u(t,e){"data"in t&&(e+=t.start,t=t.data);var r=t[e]<<8|t[e+1];return r<0?65536+r:r}function l(t,e){"data"in t&&(e+=t.start,t=t.data);var r=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3];return r<0?4294967296+r:r}function c(t,e,r){"data"in t&&(e+=t.start,t=t.data),t[e]=r>>24,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r}function f(t,e){var r,n,i,a=[];if(!e.length)return a;"data"in t?(r=t.data,n=t.start,i=t.end):(n=0,i=(r=t).byteLength);for(var u=n;u<i;){var c=l(r,u),d=c>1?u+c:i;if(s(r.subarray(u+4,u+8))===e[0])if(1===e.length)a.push({data:r,start:u+8,end:d});else{var h=f({data:r,start:u+8,end:d},e.slice(1));h.length&&o.apply(a,h)}u=d}return a}function d(t){var e=f(t,["moov"])[0],r=e?e.end:null,n=f(t,["sidx"]);if(!n||!n[0])return null;var i=[],a=n[0],o=a.data[0],s=0===o?8:16,c=l(a,s);s+=4,s+=0===o?8:16,s+=2;var d=a.end+0,h=u(a,s);s+=2;for(var p=0;p<h;p++){var v=s,m=l(a,v);v+=4;var y=2147483647&m;if(1===(2147483648&m)>>>31)return console.warn("SIDX has hierarchical references (not supported)"),null;var g=l(a,v);v+=4,i.push({referenceSize:y,subsegmentDuration:g,info:{duration:g/c,start:d,end:d+y-1}}),d+=y,s=v+=4}return{earliestPresentationTime:0,timescale:c,version:o,referencesCount:h,references:i,moovEndOffset:r}}function h(t){for(var e=[],r=f(t,["moov","trak"]),n=0;n<r.length;n++){var a=r[n],o=f(a,["tkhd"])[0];if(o){var u=o.data[o.start],c=0===u?12:20,d=l(o,c),h=f(a,["mdia","mdhd"])[0];if(h){var p=l(h,c=0===(u=h.data[h.start])?12:20),v=f(a,["mdia","hdlr"])[0];if(v){var m=s(v.data.subarray(v.start+8,v.start+12)),y={soun:i.ElementaryStreamTypes.AUDIO,vide:i.ElementaryStreamTypes.VIDEO}[m];if(y){var g=f(a,["mdia","minf","stbl","stsd"])[0],b=void 0;g&&(b=s(g.data.subarray(g.start+12,g.start+16))),e[d]={timescale:p,type:y},e[y]={timescale:p,id:d,codec:b}}}}}}return f(t,["moov","mvex","trex"]).forEach((function(t){var r=l(t,4),n=e[r];n&&(n.default={duration:l(t,12),flags:l(t,20)})})),e}function p(t,e){return f(e,["moof","traf"]).reduce((function(e,r){var n=f(r,["tfdt"])[0],i=n.data[n.start],a=f(r,["tfhd"]).reduce((function(e,r){var a=l(r,4),o=t[a];if(o){var s=l(n,4);1===i&&(s*=Math.pow(2,32),s+=l(n,8));var u=s/(o.timescale||9e4);if(isFinite(u)&&(null===e||u<e))return u}return e}),null);return null!==a&&isFinite(a)&&(null===e||a<e)?a:e}),null)||0}function v(t,e){for(var r=0,n=0,a=0,o=f(t,["moof","traf"]),s=0;s<o.length;s++){var u=o[s],c=f(u,["tfhd"])[0],h=e[l(c,4)];if(h){var p=h.default,v=l(c,0)|(null===p||void 0===p?void 0:p.flags),y=null===p||void 0===p?void 0:p.duration;8&v&&(y=l(c,2&v?12:8));for(var g=h.timescale||9e4,b=f(u,["trun"]),E=0;E<b.length;E++)!(r=m(b[E]))&&y&&(r=y*l(b[E],4)),h.type===i.ElementaryStreamTypes.VIDEO?n+=r/g:h.type===i.ElementaryStreamTypes.AUDIO&&(a+=r/g)}}if(0===n&&0===a){var T=d(t);if(null!==T&&void 0!==T&&T.references)return T.references.reduce((function(t,e){return t+e.info.duration||0}),0)}return n||a}function m(t){var e=l(t,0),r=8;1&e&&(r+=4),4&e&&(r+=4);for(var n=0,i=l(t,4),a=0;a<i;a++)256&e&&(n+=l(t,r),r+=4),512&e&&(r+=4),1024&e&&(r+=4),2048&e&&(r+=4);return n}function y(t,e,r){f(e,["moof","traf"]).forEach((function(e){f(e,["tfhd"]).forEach((function(n){var i=l(n,4),o=t[i];if(o){var s=o.timescale||9e4;f(e,["tfdt"]).forEach((function(t){var e=t.data[t.start],n=l(t,4);if(0===e)c(t,4,n-r*s);else{n*=Math.pow(2,32),n+=l(t,8),n-=r*s,n=Math.max(n,0);var i=Math.floor(n/(a+1)),o=Math.floor(n%(a+1));c(t,4,i),c(t,8,o)}}))}}))}))}function g(t){var e={valid:null,remainder:null},r=f(t,["moof"]);if(!r)return e;if(r.length<2)return e.remainder=t,e;var i=r[r.length-1];return e.valid=Object(n.sliceUint8)(t,0,i.start-8),e.remainder=Object(n.sliceUint8)(t,i.start-8),e}
1function b(t,e){var r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}},
vendor: 749 bytes, line 1
1"./src/utils/output-filter.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return n}));var n=function(){function t(t,e){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=t,this.trackName=e}var e=t.prototype;return e.dispatchCue=function(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)},e.newCue=function(t,e,r){(null===this.startTime||this.startTime>t)&&(this.startTime=t),this.endTime=e,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)},e.reset=function(){this.cueRanges=[],this.startTime=null},t}()},
vendor: 1,593 bytes, line 1
1"./src/utils/texttrack-utils.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"sendAddTrackEvent",(function(){return i})),r.d(e,"addCueToTrack",(function(){return a})),r.d(e,"clearCurrentCues",(function(){return o})),r.d(e,"removeCuesInRange",(function(){return s})),r.d(e,"getCuesInRange",(function(){return u}));var n=r("./src/utils/logger.ts");function i(t,e){var r;try{r=new Event("addtrack")}catch(n){(r=document.createEvent("Event")).initEvent("addtrack",!1,!1)}r.track=t,e.dispatchEvent(r)}function a(t,e){var r=t.mode;if("disabled"===r&&(t.mode="hidden"),t.cues&&!t.cues.getCueById(e.id))try{if(t.addCue(e),!t.cues.getCueById(e.id))throw new Error("addCue is failed for: "+e)}catch(a){n.logger.debug("[texttrack-utils]: "+a);var i=new self.TextTrackCue(e.startTime,e.endTime,e.text);i.id=e.id,t.addCue(i)}"disabled"===r&&(t.mode=r)}function o(t){var e=t.mode;if("disabled"===e&&(t.mode="hidden"),t.cues)for(var r=t.cues.length;r--;)t.removeCue(t.cues[r]);"disabled"===e&&(t.mode=e)}function s(t,e,r){var n=t.mode;if("disabled"===n&&(t.mode="hidden"),t.cues&&t.cues.length>0)for(var i=u(t.cues,e,r),a=0;a<i.length;a++)t.removeCue(i[a]);"disabled"===n&&(t.mode=n)}function u(t,e,r){var n=[],i=function(t,e){if(e<t[0].startTime)return 0;var r=t.length-1;if(e>t[r].endTime)return-1;for(var n=0,i=r;n<=i;){var a=Math.floor((i+n)/2);if(e<t[a].startTime)i=a-1;else{if(!(e>t[a].startTime&&n<r))return a;n=a+1}}return t[n].startTime-e<e-t[i].startTime?n:i}(t,e);if(i>-1)for(var a=i,o=t.length;a<o;a++){var s=t[a];if(s.startTime>=e&&s.endTime<=r)n.push(s);else if(s.startTime>r)return n}return n}},
1"./src/utils/time-ranges.ts":function(t,e,r){"use strict";r.r(e),e.default={toString:function(t){for(var e="",r=t.length,n=0;n<r;n++)e+="["+t.start(n).toFixed(3)+","+t.end(n).toFixed(3)+"]";return e}}},
vendor: 575 bytes, line 1
1"./src/utils/timescale-conversion.ts":function(t,e,r){"use strict";function n(t,e,r,n){void 0===r&&(r=1),void 0===n&&(n=!1);var i=t*e*r;return n?Math.round(i):i}function i(t,e,r,i){return void 0===r&&(r=1),void 0===i&&(i=!1),n(t,e,1/r,i)}function a(t,e){return void 0===e&&(e=!1),n(t,1e3,1/9e4,e)}function o(t,e){return void 0===e&&(e=1),n(t,9e4,1/e)}r.r(e),r.d(e,"toTimescaleFromBase",(function(){return n})),r.d(e,"toTimescaleFromScale",(function(){return i})),r.d(e,"toMsFromMpegTsClock",(function(){return a})),r.d(e,"toMpegTsClockFromTimescale",(function(){return o}))},
1"./src/utils/typed-array.ts":function(t,e,r){"use strict";function n(t,e,r){return Uint8Array.prototype.slice?t.slice(e,r):new Uint8Array(Array.prototype.slice.call(t,e,r))}r.r(e),r.d(e,"sliceUint8",(function(){return n}))},
vendor: 7,263 bytes, line 1
1"./src/utils/vttcue.ts":function(t,e,r){"use strict";r.r(e),e.default=function(){if("undefined"!==typeof self&&self.VTTCue)return self.VTTCue;var t=["","lr","rl"],e=["start","middle","end","left","right"];function r(t,e){if("string"!==typeof e)return!1;if(!Array.isArray(t))return!1;var r=e.toLowerCase();return!!~t.indexOf(r)&&r}function n(t){return r(e,t)}function i(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var o in a)t[o]=a[o]}return t}function a(e,a,o){var s=this,u={enumerable:!0};s.hasBeenReset=!1;var l="",c=!1,f=e,d=a,h=o,p=null,v="",m=!0,y="auto",g="start",b=50,E="middle",T=50,w="middle";Object.defineProperty(s,"id",i({},u,{get:function(){return l},set:function(t){l=""+t}})),Object.defineProperty(s,"pauseOnExit",i({},u,{get:function(){return c},set:function(t){c=!!t}})),Object.defineProperty(s,"startTime",i({},u,{get:function(){return f},set:function(t){if("number"!==typeof t)throw new TypeError("Start time must be set to a number.");f=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"endTime",i({},u,{get:function(){return d},set:function(t){if("number"!==typeof t)throw new TypeError("End time must be set to a number.");d=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"text",i({},u,{get:function(){return h},set:function(t){h=""+t,this.hasBeenReset=!0}})),Object.defineProperty(s,"region",i({},u,{get:function(){return p},set:function(t){p=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"vertical",i({},u,{get:function(){return v},set:function(e){var n=function(e){return r(t,e)}(e);if(!1===n)throw new SyntaxError("An invalid or illegal string was specified.");v=n,this.hasBeenReset=!0}})),Object.defineProperty(s,"snapToLines",i({},u,{get:function(){return m},set:function(t){m=!!t,this.hasBeenReset=!0}})),Object.defineProperty(s,"line",i({},u,{get:function(){return y},set:function(t){if("number"!==typeof t&&"auto"!==t)throw new SyntaxError("An invalid number or illegal string was specified.");y=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"lineAlign",i({},u,{get:function(){return g},set:function(t){var e=n(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");g=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"position",i({},u,{get:function(){return b},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"positionAlign",i({},u,{get:function(){return E},set:function(t){var e=n(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");E=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",i({},u,{get:function(){return T},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");T=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",i({},u,{get:function(){return w},set:function(t){var e=n(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");w=e,this.hasBeenReset=!0}})),s.displayState=void 0}return a.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},a}()},"./src/utils/vttparser.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"parseTimeStamp",(function(){return a})),r.d(e,"fixLineBreaks",(function(){return f})),r.d(e,"VTTParser",(function(){return d}));var n=r("./src/utils/vttcue.ts"),i=function(){function t(){}return t.prototype.decode=function(t,e){if(!t)return"";if("string"!==typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))},t}();function a(t){function e(t,e,r,n){return 3600*(0|t)+60*(0|e)+(0|r)+parseFloat(n||0)}var r=t.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return r?parseFloat(r[2])>59?e(r[2],r[3],0,r[4]):e(r[1],r[2],r[3],r[4]):null}var o=function(){function t(){this.values=Object.create(null)}var e=t.prototype;return e.set=function(t,e){this.get(t)||""===e||(this.values[t]=e)},e.get=function(t,e,r){return r?this.has(t)?this.values[t]:e[r]:this.has(t)?this.values[t]:e},e.has=function(t){return t in this.values},e.alt=function(t,e,r){for(var n=0;n<r.length;++n)if(e===r[n]){this.set(t,e);break}},e.integer=function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},e.percent=function(t,e){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(e)){var r=parseFloat(e);if(r>=0&&r<=100)return this.set(t,r),!0}return!1},t}();function s(t,e,r,n){var i=n?t.split(n):[t];for(var a in i)if("string"===typeof i[a]){var o=i[a].split(r);2===o.length&&e(o[0],o[1])}}var u=new n.default(0,0,""),l="middle"===u.align?"middle":"center";function c(t,e,r){var n=t;function i(){var e=a(t);if(null===e)throw new Error("Malformed timestamp: "+n);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function c(){t=t.replace(/^\s+/,"")}if(c(),e.startTime=i(),c(),"--\x3e"!==t.substr(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);t=t.substr(3),c(),e.endTime=i(),c(),function(t,e){var n=new o;s(t,(function(t,e){var i;switch(t){case"region":for(var a=r.length-1;a>=0;a--)if(r[a].id===e){n.set(t,r[a].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":i=e.split(","),n.integer(t,i[0]),n.percent(t,i[0])&&n.set("snapToLines",!1),n.alt(t,i[0],["auto"]),2===i.length&&n.alt("lineAlign",i[1],["start",l,"end"]);break;case"position":i=e.split(","),n.percent(t,i[0]),2===i.length&&n.alt("positionAlign",i[1],["start",l,"end","line-left","line-right","auto"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start",l,"end","left","right"])}}),/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical","");var i=n.get("line","auto");"auto"===i&&-1===u.line&&(i=-1),e.line=i,e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100),e.align=n.get("align",l);var a=n.get("position","auto");"auto"===a&&50===u.position&&(a="start"===e.align||"left"===e.align?0:"end"===e.align||"right"===e.align?100:50),e.position=a}(t,e)}function f(t){return t.replace(/<br(?: \/)?>/gi,"\n")}var d=function(){function t(){this.state="INITIAL",this.buffer="",this.decoder=new i,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var e=t.prototype;return e.parse=function(t){var e=this;function r(){var t=e.buffer,r=0;for(t=f(t);r<t.length&&"\r"!==t[r]&&"\n"!==t[r];)++r;var n=t.substr(0,r);return"\r"===t[r]&&++r,"\n"===t[r]&&++r,e.buffer=t.substr(r),n}t&&(e.buffer+=e.decoder.decode(t,{stream:!0}));try{var i="";if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;var a=(i=r()).match(/^(\xef\xbb\xbf)?WEBVTT([ \t].*)?$/);if(!a||!a[0])throw new Error("Malformed WebVTT signature.");e.state="HEADER"}for(var o=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(o?o=!1:i=r(),e.state){case"HEADER":/:/.test(i)?s(i,(function(t,e){}),/:/):i||(e.state="ID");continue;case"NOTE":i||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){e.state="NOTE";break}if(!i)continue;if(e.cue=new n.default(0,0,""),e.state="CUE",-1===i.indexOf("--\x3e")){e.cue.id=i;continue}case"CUE":if(!e.cue){e.state="BADCUE";continue}try{c(i,e.cue,e.regionList)}catch(l){e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var u=-1!==i.indexOf("--\x3e");
vendor: 602 bytes, line 1
1if(!i||u&&(o=!0)){e.oncue&&e.cue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}if(null===e.cue)continue;e.cue.text&&(e.cue.text+="\n"),e.cue.text+=i;continue;case"BADCUE":i||(e.state="ID")}}}catch(l){"CUETEXT"===e.state&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.state?"BADWEBVTT":"BADCUE"}return this},e.flush=function(){var t=this;try{if((t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state||"BADWEBVTT"===t.state)throw new Error("Malformed WebVTT signature.")}catch(e){t.onparsingerror&&t.onparsingerror(e)}return t.onflush&&t.onflush(),this},t}()},
vendor: 2,138 bytes, line 1
1"./src/utils/webvtt-parser.ts":function(t,e,r){"use strict";r.r(e),r.d(e,"generateCueId",(function(){return f})),r.d(e,"parseWebVTT",(function(){return d}));var n=r("./src/polyfills/number.ts"),i=r("./src/utils/vttparser.ts"),a=r("./src/demux/id3.ts"),o=r("./src/utils/timescale-conversion.ts"),s=r("./src/remux/mp4-remuxer.ts"),u=/\r\n|\n\r|\n|\r/g,l=function(t,e,r){return void 0===r&&(r=0),t.substr(r,e.length)===e},c=function(t){for(var e=5381,r=t.length;r;)e=33*e^t.charCodeAt(--r);return(e>>>0).toString()};function f(t,e,r){return c(t.toString())+c(e.toString())+c(r)}function d(t,e,r,c,d,h,p,v){var m,y=new i.VTTParser,g=Object(a.utf8ArrayToStr)(new Uint8Array(t)).trim().replace(u,"\n").split("\n"),b=[],E=Object(o.toMpegTsClockFromTimescale)(e,r),T="00:00.000",w=0,S=0,O=!0,k=!1;y.oncue=function(t){var e=c[d],r=c.ccOffset,n=(w-E)/9e4;if(null!==e&&void 0!==e&&e.new&&(void 0!==S?r=c.ccOffset=e.start:function(t,e,r){var n=t[e],i=t[n.prevCC];if(!i||!i.new&&n.new)return t.ccOffset=t.presentationOffset=n.start,void(n.new=!1);for(;null!==(a=i)&&void 0!==a&&a.new;){var a;t.ccOffset+=n.start-i.start,n.new=!1,i=t[(n=i).prevCC]}t.presentationOffset=r}(c,d,n)),n&&(r=n-c.presentationOffset),k){var i=t.endTime-t.startTime,a=Object(s.normalizePts)(9e4*(t.startTime+r-S),9e4*h)/9e4;t.startTime=a,t.endTime=a+i}var o=t.text.trim();t.text=decodeURIComponent(encodeURIComponent(o)),t.id||(t.id=f(t.startTime,t.endTime,o)),t.endTime>0&&b.push(t)},y.onparsingerror=function(t){m=t},y.onflush=function(){m?v(m):p(b)},g.forEach((function(t){if(O){if(l(t,"X-TIMESTAMP-MAP=")){O=!1,k=!0,t.substr(16).split(",").forEach((function(t){l(t,"LOCAL:")?T=t.substr(6):l(t,"MPEGTS:")&&(w=parseInt(t.substr(7)))}));try{S=function(t){var e=parseInt(t.substr(-3)),r=parseInt(t.substr(-6,2)),i=parseInt(t.substr(-9,2)),a=t.length>9?parseInt(t.substr(0,t.indexOf(":"))):0;if(!Object(n.isFiniteNumber)(e)||!Object(n.isFiniteNumber)(r)||!Object(n.isFiniteNumber)(i)||!Object(n.isFiniteNumber)(a))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+t);return e+=1e3*r,(e+=6e4*i)+36e5*a}(T)/1e3}catch(e){k=!1,m=e}return}""===t&&(O=!1)}y.parse(t+"\n")})),y.flush()}},
vendor: 3,681 bytes, line 1
1"./src/utils/xhr-loader.ts":function(t,e,r){"use strict";r.r(e);var n=r("./src/utils/logger.ts"),i=r("./src/loader/load-stats.ts"),a=/^age:\s*[\d.]+\s*$/m,o=function(){function t(t){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=t?t.xhrSetup:null,this.stats=new i.LoadStats,this.retryDelay=0}var e=t.prototype;return e.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},e.abortInternal=function(){var t=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),t&&(t.onreadystatechange=null,t.onprogress=null,4!==t.readyState&&(this.stats.aborted=!0,t.abort()))},e.abort=function(){var t;this.abortInternal(),null!==(t=this.callbacks)&&void 0!==t&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},e.load=function(t,e,r){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=t,this.config=e,this.callbacks=r,this.retryDelay=e.retryDelay,this.loadInternal()},e.loadInternal=function(){var t=this.config,e=this.context;if(t){var r=this.loader=new self.XMLHttpRequest,n=this.stats;n.loading.first=0,n.loaded=0;var i=this.xhrSetup;try{if(i)try{i(r,e.url)}catch(s){r.open("GET",e.url,!0),i(r,e.url)}r.readyState||r.open("GET",e.url,!0);var a=this.context.headers;if(a)for(var o in a)r.setRequestHeader(o,a[o])}catch(s){return void this.callbacks.onError({code:r.status,text:s.message},e,r)}e.rangeEnd&&r.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),r.onreadystatechange=this.readystatechange.bind(this),r.onprogress=this.loadprogress.bind(this),r.responseType=e.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),t.timeout),r.send()}},e.readystatechange=function(){var t=this.context,e=this.loader,r=this.stats;if(t&&e){var i=e.readyState,a=this.config;if(!r.aborted&&i>=2)if(self.clearTimeout(this.requestTimeout),0===r.loading.first&&(r.loading.first=Math.max(self.performance.now(),r.loading.start)),4===i){e.onreadystatechange=null,e.onprogress=null;var o=e.status;if(o>=200&&o<300){var s,u;if(r.loading.end=Math.max(self.performance.now(),r.loading.first),u="arraybuffer"===t.responseType?(s=e.response).byteLength:(s=e.responseText).length,r.loaded=r.total=u,!this.callbacks)return;var l=this.callbacks.onProgress;if(l&&l(r,t,s,e),!this.callbacks)return;var c={url:e.responseURL,data:s};this.callbacks.onSuccess(c,r,t,e)}else r.retry>=a.maxRetry||o>=400&&o<499?(n.logger.error(o+" while loading "+t.url),this.callbacks.onError({code:o,text:e.statusText},t,e)):(n.logger.warn(o+" while loading "+t.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,a.maxRetryDelay),r.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout)}},e.loadtimeout=function(){n.logger.warn("timeout while loading "+this.context.url);var t=this.callbacks;t&&(this.abortInternal(),t.onTimeout(this.stats,this.context,this.loader))},e.loadprogress=function(t){var e=this.stats;e.loaded=t.loaded,t.lengthComputable&&(e.total=t.total)},e.getCacheAge=function(){var t=null;if(this.loader&&a.test(this.loader.getAllResponseHeaders())){var e=this.loader.getResponseHeader("age");t=e?parseFloat(e):null}return t},t}();e.default=o}
1}).default},t.exports=e())},9090:function(t){function e(t,e){t.onload=function(){this.onerror=this.onload=null,e(null,t)},t.onerror=function(){this.onerror=this.onload=null,e(new Error("Failed to load "+this.src),t)}}function r(t,e){t.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,e(null,t))}}t.exports=function(t,n,i){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");"function"===typeof n&&(i=n,n={}),n=n||{},i=i||function(){},o.type=n.type||"text/javascript",o.charset=n.charset||"utf8",o.async=!("async"in n)||!!n.async,o.src=t,n.attrs&&function(t,e){for(var r in e)t.setAttribute(r,e[r])}(o,n.attrs),n.text&&(o.text=""+n.text),("onload"in o?e:r)(o,i),o.onload||e(o,i),a.appendChild(o)}},3096:function(t,e,r){var n="Expected a function",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt,l="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,c="object"==typeof self&&self&&self.Object===Object&&self,f=l||c||Function("return this")(),d=Object.prototype.toString,h=Math.max,p=Math.min,v=function(){return f.Date.now()};function m(t,e,r){var i,a,o,s,u,l,c=0,f=!1,d=!1,m=!0;if("function"!=typeof t)throw new TypeError(n);function b(e){var r=i,n=a;return i=a=void 0,c=e,s=t.apply(n,r)}function E(t){return c=t,u=setTimeout(w,e),f?b(t):s}function T(t){var r=t-l;return void 0===l||r>=e||r<0||d&&t-c>=o}function w(){var t=v();if(T(t))return S(t);u=setTimeout(w,function(t){var r=e-(t-l);return d?p(r,o-(t-c)):r}(t))}function S(t){return u=void 0,m&&i?b(t):(i=a=void 0,s)}function O(){var t=v(),r=T(t);if(i=arguments,a=this,l=t,r){if(void 0===u)return E(l);if(d)return u=setTimeout(w,e),b(l)}return void 0===u&&(u=setTimeout(w,e)),s}return e=g(e)||0,y(r)&&(f=!!r.leading,o=(d="maxWait"in r)?h(g(r.maxWait)||0,e):o,m="trailing"in r?!!r.trailing:m),O.cancel=function(){void 0!==u&&clearTimeout(u),c=0,i=l=a=u=void 0},O.flush=function(){return void 0===u?s:S(v())},O}function y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function g(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==d.call(t)}(t))return NaN;if(y(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=y(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(i,"");var r=o.test(t);return r||s.test(t)?u(t.slice(2),r?2:8):a.test(t)?NaN:+t}t.exports=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError(n);return y(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),m(t,e,{leading:i,maxWait:e,trailing:a})}},9490:function(t,e){"use strict";function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function s(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function u(t,e,r){return u=s()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&o(i,r.prototype),i},u.apply(null,arguments)}function l(t){var e="function"===typeof Map?new Map:void 0;return l=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return u(t,arguments,a(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),o(n,t)},l(t)}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function f(t){var e=0;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=function(t,e){if(t){if("string"===typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}(t)))return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(e=t[Symbol.iterator]()).next.bind(e)}var d=function(t){function e(){return t.apply(this,arguments)||this}return i(e,t),e}(l(Error)),h=function(t){function e(e){return t.call(this,"Invalid DateTime: "+e.toMessage())||this}return i(e,t),e}(d),p=function(t){function e(e){return t.call(this,"Invalid Interval: "+e.toMessage())||this}return i(e,t),e}(d),v=function(t){function e(e){return t.call(this,"Invalid Duration: "+e.toMessage())||this}return i(e,t),e}(d),m=function(t){function e(){return t.apply(this,arguments)||this}return i(e,t),e}(d),y=function(t){function e(e){return t.call(this,"Invalid unit "+e)||this}return i(e,t),e}(d),g=function(t){function e(){return t.apply(this,arguments)||this}return i(e,t),e}(d),b=function(t){function e(){return t.call(this,"Zone is an abstract class")||this}return i(e,t),e}(d),E="numeric",T="short",w="long",S={year:E,month:E,day:E},O={year:E,month:T,day:E},k={year:E,month:T,day:E,weekday:T},A={year:E,month:w,day:E},P={year:E,month:w,day:E,weekday:w},x={hour:E,minute:E},L={hour:E,minute:E,second:E},_={hour:E,minute:E,second:E,timeZoneName:T},D={hour:E,minute:E,second:E,timeZoneName:w},C={hour:E,minute:E,hour12:!1},R={hour:E,minute:E,second:E,hour12:!1},I={hour:E,minute:E,second:E,hour12:!1,timeZoneName:T},M={hour:E,minute:E,second:E,hour12:!1,timeZoneName:w},N={year:E,month:E,day:E,hour:E,minute:E},j={year:E,month:E,day:E,hour:E,minute:E,second:E},F={year:E,month:T,day:E,hour:E,minute:E},U={year:E,month:T,day:E,hour:E,minute:E,second:E},B={year:E,month:T,day:E,weekday:T,hour:E,minute:E},V={year:E,month:w,day:E,hour:E,minute:E,timeZoneName:T},G={year:E,month:w,day:E,hour:E,minute:E,second:E,timeZoneName:T},H={year:E,month:w,day:E,weekday:w,hour:E,minute:E,timeZoneName:w},z={year:E,month:w,day:E,weekday:w,hour:E,minute:E,second:E,timeZoneName:w};function K(t){return"undefined"===typeof t}function W(t){return"number"===typeof t}function q(t){return"number"===typeof t&&t%1===0}function Y(){try{return"undefined"!==typeof Intl&&Intl.DateTimeFormat}catch(t){return!1}}function X(){return!K(Intl.DateTimeFormat.prototype.formatToParts)}function Z(){try{return"undefined"!==typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function $(t,e,r){if(0!==t.length)return t.reduce((function(t,n){var i=[e(n),n];return t&&r(t[0],i[0])===t[0]?t:i}),null)[1]}function J(t,e){return e.reduce((function(e,r){return e[r]=t[r],e}),{})}function Q(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function tt(t,e,r){return q(t)&&t>=e&&t<=r}function et(t,e){void 0===e&&(e=2);var r=t<0?"-":"",n=r?-1*t:t;return""+r+(n.toString().length<e?("0".repeat(e)+n).slice(-e):n.toString())}function rt(t){return K(t)||null===t||""===t?void 0:parseInt(t,10)}function nt(t){if(!K(t)&&null!==t&&""!==t){var e=1e3*parseFloat("0."+t);return Math.floor(e)}}function it(t,e,r){void 0===r&&(r=!1);var n=Math.pow(10,e);return(r?Math.trunc:Math.round)(t*n)/n}function at(t){return t%4===0&&(t%100!==0||t%400===0)}function ot(t){return at(t)?366:365}function st(t,e){var r=function(t,e){return t-e*Math.floor(t/e)}(e-1,12)+1;return 2===r?at(t+(e-r)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function ut(t){var e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e)).setUTCFullYear(e.getUTCFullYear()-1900),+e}function lt(t){var e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,r=t-1,n=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return 4===e||3===n?53:52}function ct(t){return t>99?t:t>60?1900+t:2e3+t}function ft(t,e,r,n){void 0===n&&(n=null);var i=new Date(t),a={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(a.timeZone=n);var o=Object.assign({timeZoneName:e},a),s=Y();if(s&&X()){var u=new Intl.DateTimeFormat(r,o).formatToParts(i).find((function(t){return"timezonename"===t.type.toLowerCase()}));return u?u.value:null}if(s){var l=new Intl.DateTimeFormat(r,a).format(i);return new Intl.DateTimeFormat(r,o).format(i).substring(l.length).replace(/^[, \u200e]+/,"")}return null}function dt(t,e){var r=parseInt(t,10);Number.isNaN(r)&&(r=0);var n=parseInt(e,10)||0;return 60*r+(r<0||Object.is(r,-0)?-n:n)}function ht(t){var e=Number(t);if("boolean"===typeof t||""===t||Number.isNaN(e))throw new g("Invalid unit value "+t);return e}function pt(t,e,r){var n={};for(var i in t)if(Q(t,i)){if(r.indexOf(i)>=0)continue;var a=t[i];if(void 0===a||null===a)continue;n[e(i)]=ht(a)}return n}function vt(t,e){var r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),i=t>=0?"+":"-";switch(e){case"short":return""+i+et(r,2)+":"+et(n,2);case"narrow":return""+i+r+(n>0?":"+n:"");case"techie":return""+i+et(r,2)+et(n,2);default:throw new RangeError("Value format "+e+" is out of range for property format")}}function mt(t){return J(t,["hour","minute","second","millisecond"])}var yt=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function gt(t){return JSON.stringify(t,Object.keys(t).sort())}var bt=["January","February","March","April","May","June","July","August","September","October","November","December"],Et=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Tt=["J","F","M","A","M","J","J","A","S","O","N","D"];function wt(t){switch(t){case"narrow":return[].concat(Tt);case"short":return[].concat(Et);case"long":return[].concat(bt);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}
vendor: 4,888 bytes, line 1
1var St=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ot=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],kt=["M","T","W","T","F","S","S"];function At(t){switch(t){case"narrow":return[].concat(kt);case"short":return[].concat(Ot);case"long":return[].concat(St);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Pt=["AM","PM"],xt=["Before Christ","Anno Domini"],Lt=["BC","AD"],_t=["B","A"];function Dt(t){switch(t){case"narrow":return[].concat(_t);case"short":return[].concat(Lt);case"long":return[].concat(xt);default:return null}}function Ct(t,e){for(var r,n="",i=f(t);!(r=i()).done;){var a=r.value;a.literal?n+=a.val:n+=e(a.val)}return n}var Rt={D:S,DD:O,DDD:A,DDDD:P,t:x,tt:L,ttt:_,tttt:D,T:C,TT:R,TTT:I,TTTT:M,f:N,ff:F,fff:V,ffff:H,F:j,FF:U,FFF:G,FFFF:z},It=function(){function t(t,e){this.opts=e,this.loc=t,this.systemLoc=null}t.create=function(e,r){return void 0===r&&(r={}),new t(e,r)},t.parseFormat=function(t){for(var e=null,r="",n=!1,i=[],a=0;a<t.length;a++){var o=t.charAt(a);"'"===o?(r.length>0&&i.push({literal:n,val:r}),e=null,r="",n=!n):n||o===e?r+=o:(r.length>0&&i.push({literal:!1,val:r}),r=o,e=o)}return r.length>0&&i.push({literal:n,val:r}),i},t.macroTokenToFormatOpts=function(t){return Rt[t]};var e=t.prototype;return e.formatWithSystemDefault=function(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,Object.assign({},this.opts,e)).format()},e.formatDateTime=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,Object.assign({},this.opts,e)).format()},e.formatDateTimeParts=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,Object.assign({},this.opts,e)).formatToParts()},e.resolvedOptions=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,Object.assign({},this.opts,e)).resolvedOptions()},e.num=function(t,e){if(void 0===e&&(e=0),this.opts.forceSimple)return et(t,e);var r=Object.assign({},this.opts);return e>0&&(r.padTo=e),this.loc.numberFormatter(r).format(t)},e.formatDateTimeFromString=function(e,r){var n=this,i="en"===this.loc.listingMode(),a=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&X(),o=function(t,r){return n.loc.extract(e,t,r)},s=function(t){return e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):""},u=function(){return i?function(t){return Pt[t.hour<12?0:1]}(e):o({hour:"numeric",hour12:!0},"dayperiod")},l=function(t,r){return i?function(t,e){return wt(e)[t.month-1]}(e,t):o(r?{month:t}:{month:t,day:"numeric"},"month")},c=function(t,r){return i?function(t,e){return At(e)[t.weekday-1]}(e,t):o(r?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday")},f=function(t){return i?function(t,e){return Dt(e)[t.year<0?0:1]}(e,t):o({era:t},"era")};return Ct(t.parseFormat(r),(function(r){switch(r){case"S":return n.num(e.millisecond);case"u":case"SSS":return n.num(e.millisecond,3);case"s":return n.num(e.second);case"ss":return n.num(e.second,2);case"m":return n.num(e.minute);case"mm":return n.num(e.minute,2);case"h":return n.num(e.hour%12===0?12:e.hour%12);case"hh":return n.num(e.hour%12===0?12:e.hour%12,2);case"H":return n.num(e.hour);case"HH":return n.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:n.opts.allowZ});case"ZZ":return s({format:"short",allowZ:n.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:n.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:n.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:n.loc.locale});case"z":return e.zoneName;case"a":return u();case"d":return a?o({day:"numeric"},"day"):n.num(e.day);case"dd":return a?o({day:"2-digit"},"day"):n.num(e.day,2);case"c":case"E":return n.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return a?o({month:"numeric",day:"numeric"},"month"):n.num(e.month);case"LL":return a?o({month:"2-digit",day:"numeric"},"month"):n.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return a?o({month:"numeric"},"month"):n.num(e.month);case"MM":return a?o({month:"2-digit"},"month"):n.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return a?o({year:"numeric"},"year"):n.num(e.year);case"yy":return a?o({year:"2-digit"},"year"):n.num(e.year.toString().slice(-2),2);case"yyyy":return a?o({year:"numeric"},"year"):n.num(e.year,4);case"yyyyyy":return a?o({year:"numeric"},"year"):n.num(e.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return n.num(e.weekYear.toString().slice(-2),2);case"kkkk":return n.num(e.weekYear,4);case"W":return n.num(e.weekNumber);
1case"WW":return n.num(e.weekNumber,2);case"o":return n.num(e.ordinal);case"ooo":return n.num(e.ordinal,3);case"q":return n.num(e.quarter);case"qq":return n.num(e.quarter,2);case"X":return n.num(Math.floor(e.ts/1e3));case"x":return n.num(e.ts);default:return function(r){var i=t.macroTokenToFormatOpts(r);return i?n.formatWithSystemDefault(e,i):r}(r)}}))},e.formatDurationFromString=function(e,r){var n,i=this,a=function(t){switch(t[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},o=t.parseFormat(r),s=o.reduce((function(t,e){var r=e.literal,n=e.val;return r?t:t.concat(n)}),[]),u=e.shiftTo.apply(e,s.map(a).filter((function(t){return t})));return Ct(o,(n=u,function(t){var e=a(t);return e?i.num(n.get(e),t.length):t}))},t}(),Mt=function(){function t(t,e){this.reason=t,this.explanation=e}return t.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},t}(),Nt=function(){function t(){}var e=t.prototype;return e.offsetName=function(t,e){throw new b},e.formatOffset=function(t,e){throw new b},e.offset=function(t){throw new b},e.equals=function(t){throw new b},n(t,[{key:"type",get:function(){throw new b}},{key:"name",get:function(){throw new b}},{key:"universal",get:function(){throw new b}},{key:"isValid",get:function(){throw new b}}]),t}(),jt=null,Ft=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var r=e.prototype;return r.offsetName=function(t,e){return ft(t,e.format,e.locale)},r.formatOffset=function(t,e){return vt(this.offset(t),e)},r.offset=function(t){return-new Date(t).getTimezoneOffset()},r.equals=function(t){return"local"===t.type},n(e,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return Y()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===jt&&(jt=new e),jt}}]),e}(Nt),Ut=RegExp("^"+yt.source+"$"),Bt={};var Vt={year:0,month:1,day:2,hour:3,minute:4,second:5};var Gt={},Ht=function(t){function e(r){var n;return(n=t.call(this)||this).zoneName=r,n.valid=e.isValidZone(r),n}i(e,t),e.create=function(t){return Gt[t]||(Gt[t]=new e(t)),Gt[t]},e.resetCache=function(){Gt={},Bt={}},e.isValidSpecifier=function(t){return!(!t||!t.match(Ut))},e.isValidZone=function(t){try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(e){return!1}},e.parseGMTOffset=function(t){if(t){var e=t.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(e)return-60*parseInt(e[1])}return null};var r=e.prototype;return r.offsetName=function(t,e){return ft(t,e.format,e.locale,this.name)},r.formatOffset=function(t,e){return vt(this.offset(t),e)},r.offset=function(t){var e=new Date(t);if(isNaN(e))return NaN;var r,n=(r=this.name,Bt[r]||(Bt[r]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Bt[r]),i=n.formatToParts?function(t,e){for(var r=t.formatToParts(e),n=[],i=0;i<r.length;i++){var a=r[i],o=a.type,s=a.value,u=Vt[o];K(u)||(n[u]=parseInt(s,10))}return n}(n,e):function(t,e){var r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r),i=n[1],a=n[2];return[n[3],i,a,n[4],n[5],n[6]]}(n,e),a=i[0],o=i[1],s=i[2],u=i[3],l=+e,c=l%1e3;return(ut({year:a,month:o,day:s,hour:24===u?0:u,minute:i[4],second:i[5],millisecond:0})-(l-=c>=0?c:1e3+c))/6e4},r.equals=function(t){return"iana"===t.type&&t.name===this.name},n(e,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),e}(Nt),zt=null,Kt=function(t){function e(e){var r;return(r=t.call(this)||this).fixed=e,r}i(e,t),e.instance=function(t){return 0===t?e.utcInstance:new e(t)},e.parseSpecifier=function(t){if(t){var r=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new e(dt(r[1],r[2]))}return null},n(e,null,[{key:"utcInstance",get:function(){return null===zt&&(zt=new e(0)),zt}}]);var r=e.prototype;return r.offsetName=function(){return this.name},r.formatOffset=function(t,e){return vt(this.fixed,e)},r.offset=function(){return this.fixed},r.equals=function(t){return"fixed"===t.type&&t.fixed===this.fixed},n(e,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+vt(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),e}(Nt),Wt=function(t){function e(e){var r;return(r=t.call(this)||this).zoneName=e,r}i(e,t);var r=e.prototype;return r.offsetName=function(){return null},r.formatOffset=function(){return""},r.offset=function(){return NaN},r.equals=function(){return!1},n(e,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),e}(Nt);function qt(t,e){var r;if(K(t)||null===t)return e;if(t instanceof Nt)return t;if("string"===typeof t){var n=t.toLowerCase();return"local"===n?e:"utc"===n||"gmt"===n?Kt.utcInstance:null!=(r=Ht.parseGMTOffset(t))?Kt.instance(r):Ht.isValidSpecifier(n)?Ht.create(t):Kt.parseSpecifier(n)||new Wt(t)}return W(t)?Kt.instance(t):"object"===typeof t&&t.offset&&"number"===typeof t.offset?t:new Wt(t)}var Yt=function(){return Date.now()},Xt=null,Zt=null,$t=null,Jt=null,Qt=!1,te=function(){function t(){}return t.resetCaches=function(){fe.resetCache(),Ht.resetCache()},n(t,null,[{key:"now",get:function(){return Yt},set:function(t){Yt=t}},{key:"defaultZoneName",get:function(){return t.defaultZone.name},set:function(t){Xt=t?qt(t):null}},{key:"defaultZone",get:function(){return Xt||Ft.instance}},{key:"defaultLocale",get:function(){return Zt},set:function(t){Zt=t}},{key:"defaultNumberingSystem",get:function(){return $t},set:function(t){$t=t}},{key:"defaultOutputCalendar",get:function(){return Jt},set:function(t){Jt=t}}
1,{key:"throwOnInvalid",get:function(){return Qt},set:function(t){Qt=t}}]),t}(),ee={};function re(t,e){void 0===e&&(e={});var r=JSON.stringify([t,e]),n=ee[r];return n||(n=new Intl.DateTimeFormat(t,e),ee[r]=n),n}var ne={};var ie={};function ae(t,e){void 0===e&&(e={});var r=e,n=(r.base,function(t,e){if(null==t)return{};var r,n,i={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(r,["base"])),i=JSON.stringify([t,n]),a=ie[i];return a||(a=new Intl.RelativeTimeFormat(t,e),ie[i]=a),a}var oe=null;function se(t,e,r,n,i){var a=t.listingMode(r);return"error"===a?null:"en"===a?n(e):i(e)}var ue=function(){function t(t,e,r){if(this.padTo=r.padTo||0,this.floor=r.floor||!1,!e&&Y()){var n={useGrouping:!1};r.padTo>0&&(n.minimumIntegerDigits=r.padTo),this.inf=function(t,e){void 0===e&&(e={});var r=JSON.stringify([t,e]),n=ne[r];return n||(n=new Intl.NumberFormat(t,e),ne[r]=n),n}(t,n)}}return t.prototype.format=function(t){if(this.inf){var e=this.floor?Math.floor(t):t;return this.inf.format(e)}return et(this.floor?Math.floor(t):it(t,3),this.padTo)},t}(),le=function(){function t(t,e,r){var n;if(this.opts=r,this.hasIntl=Y(),t.zone.universal&&this.hasIntl){var i=t.offset/60*-1,a=i>=0?"Etc/GMT+"+i:"Etc/GMT"+i,o=Ht.isValidZone(a);0!==t.offset&&o?(n=a,this.dt=t):(n="UTC",r.timeZoneName?this.dt=t:this.dt=0===t.offset?t:hn.fromMillis(t.ts+60*t.offset*1e3))}else"local"===t.zone.type?this.dt=t:(this.dt=t,n=t.zone.name);if(this.hasIntl){var s=Object.assign({},this.opts);n&&(s.timeZone=n),this.dtf=re(e,s)}}var e=t.prototype;return e.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var t=function(t){var e="EEEE, LLLL d, yyyy, h:mm a";switch(gt(J(t,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case gt(S):return"M/d/yyyy";case gt(O):return"LLL d, yyyy";case gt(k):return"EEE, LLL d, yyyy";case gt(A):return"LLLL d, yyyy";case gt(P):return"EEEE, LLLL d, yyyy";case gt(x):return"h:mm a";case gt(L):return"h:mm:ss a";case gt(_):case gt(D):return"h:mm a";case gt(C):return"HH:mm";case gt(R):return"HH:mm:ss";case gt(I):case gt(M):return"HH:mm";case gt(N):return"M/d/yyyy, h:mm a";case gt(F):return"LLL d, yyyy, h:mm a";case gt(V):return"LLLL d, yyyy, h:mm a";case gt(H):return e;case gt(j):return"M/d/yyyy, h:mm:ss a";case gt(U):return"LLL d, yyyy, h:mm:ss a";case gt(B):return"EEE, d LLL yyyy, h:mm a";case gt(G):return"LLLL d, yyyy, h:mm:ss a";case gt(z):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return e}}(this.opts),e=fe.create("en-US");return It.create(e).formatDateTimeFromString(this.dt,t)},e.formatToParts=function(){return this.hasIntl&&X()?this.dtf.formatToParts(this.dt.toJSDate()):[]},e.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},t}(),ce=function(){function t(t,e,r){this.opts=Object.assign({style:"long"},r),!e&&Z()&&(this.rtf=ae(t,r))}var e=t.prototype;return e.format=function(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,r,n){void 0===r&&(r="always"),void 0===n&&(n=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===r&&a){var o="days"===t;switch(e){case 1:return o?"tomorrow":"next "+i[t][0];case-1:return o?"yesterday":"last "+i[t][0];case 0:return o?"today":"this "+i[t][0]}}var s=Object.is(e,-0)||e<0,u=Math.abs(e),l=1===u,c=i[t],f=n?l?c[1]:c[2]||c[1]:l?i[t][0]:t;return s?u+" "+f+" ago":"in "+u+" "+f}(e,t,this.opts.numeric,"long"!==this.opts.style)},e.formatToParts=function(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]},t}(),fe=function(){function t(t,e,r,n){var i=function(t){var e=t.indexOf("-u-");if(-1===e)return[t];var r,n=t.substring(0,e);try{r=re(t).resolvedOptions()}catch(a){r=re(n).resolvedOptions()}var i=r;return[n,i.numberingSystem,i.calendar]}(t),a=i[0],o=i[1],s=i[2];this.locale=a,this.numberingSystem=e||o||null,this.outputCalendar=r||s||null,this.intl=function(t,e,r){return Y()?r||e?(t+="-u",r&&(t+="-ca-"+r),e&&(t+="-nu-"+e),t):t:[]}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}t.fromOpts=function(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)},t.create=function(e,r,n,i){void 0===i&&(i=!1);var a=e||te.defaultLocale;return new t(a||(i?"en-US":function(){if(oe)return oe;if(Y()){var t=(new Intl.DateTimeFormat).resolvedOptions().locale;return oe=t&&"und"!==t?t:"en-US"}return oe="en-US"}()),r||te.defaultNumberingSystem,n||te.defaultOutputCalendar,a)},t.resetCache=function(){oe=null,ee={},ne={},ie={}},t.fromObject=function(e){var r=void 0===e?{}:e,n=r.locale,i=r.numberingSystem,a=r.outputCalendar;return t.create(n,i,a)};var e=t.prototype;return e.listingMode=function(t){void 0===t&&(t=!0);var e=Y()&&X(),r=this.isEnglish(),n=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return e||r&&n||t?!e||r&&n?"en":"intl":"error"},e.clone=function(e){return e&&0!==Object.getOwnPropertyNames(e).length?t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this},e.redefaultToEN=function(t){return void 0===t&&(t={}),this.clone(Object.assign({},t,{defaultToEN:!0}))},e.redefaultToSystem=function(t){return void 0===t&&(t={}),this.clone(Object.assign({},t,{defaultToEN:!1}))},e.months=function(t,e,r){var n=this;return void 0===e&&(e=!1),void 0===r&&(r=!0),se(this,t,r,wt,(function(){var r=e?{month:t,day:"numeric"}:{month:t},i=e?"format":"standalone";return n.monthsCache[i][t]||(n.monthsCache[i][t]=function(t){for(var e=[],r=1;r<=12;r++){var n=hn.utc(2016,r,1);e.push(t(n))}return e}((function(t){return n.extract(t,r,"month")}))),n.monthsCache[i][t]}))},e.weekdays=function(t,e,r){var n=this;return void 0===e&&(e=!1),void 0===r&&(r=!0),se(this,t,r,At,(function(){var r=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=e?"format":"standalone";return n.weekdaysCache[i][t]||(n.weekdaysCache[i][t]=function(t){for(var e=[],r=1;r<=7;r++){var n=hn.utc(2016,11,13+r);e.push(t(n))}return e}((function(t){return n.extract(t,r,"weekday")}))),n.weekdaysCache[i][t]}))},e.meridiems=function(t){var e=this;return void 0===t&&(t=!0),se(this,void 0,t,(function(){return Pt}),(function(){if(!e.meridiemCache){var t={hour:"numeric",hour12:!0};e.meridiemCache=[hn.utc(2016,11,13,9),hn.utc(2016,11,13,19)].map((function(r){return e.extract(r,t,"dayperiod")}))}return e.meridiemCache}))},e.eras=function(t,e){var r=this;return void 0===e&&(e=!0),se(this,t,e,Dt,(function(){var e={era:t};return r.eraCache[t]||(r.eraCache[t]=[hn.utc(-40,1,1),hn.utc(2017,1,1)].map((function(t){return r.extract(t,e,"era")}))),r.eraCache[t]}
vendor: 4,667 bytes, line 1
1))},e.extract=function(t,e,r){var n=this.dtFormatter(t,e).formatToParts().find((function(t){return t.type.toLowerCase()===r}));return n?n.value:null},e.numberFormatter=function(t){return void 0===t&&(t={}),new ue(this.intl,t.forceSimple||this.fastNumbers,t)},e.dtFormatter=function(t,e){return void 0===e&&(e={}),new le(t,this.intl,e)},e.relFormatter=function(t){return void 0===t&&(t={}),new ce(this.intl,this.isEnglish(),t)},e.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||Y()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},e.equals=function(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar},n(t,[{key:"fastNumbers",get:function(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||Y()&&"latn"===new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),t}();function de(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e.reduce((function(t,e){return t+e.source}),"");return RegExp("^"+n+"$")}function he(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce((function(e,r){var n=e[0],i=e[1],a=e[2],o=r(t,a),s=o[0],u=o[1],l=o[2];return[Object.assign(n,s),i||u,l]}),[{},null,1]).slice(0,2)}}function pe(t){if(null==t)return[null,null];for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];for(var i=0,a=r;i<a.length;i++){var o=a[i],s=o[0],u=o[1],l=s.exec(t);if(l)return u(l)}return[null,null]}function ve(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t,r){var n,i={};for(n=0;n<e.length;n++)i[e[n]]=rt(t[r+n]);return[i,null,r+n]}}var me=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,ye=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,ge=RegExp(""+ye.source+me.source+"?"),be=RegExp("(?:T"+ge.source+")?"),Ee=ve("weekYear","weekNumber","weekDay"),Te=ve("year","ordinal"),we=RegExp(ye.source+" ?(?:"+me.source+"|("+yt.source+"))?"),Se=RegExp("(?: "+we.source+")?");function Oe(t,e,r){var n=t[e];return K(n)?r:rt(n)}function ke(t,e){return[{year:Oe(t,e),month:Oe(t,e+1,1),day:Oe(t,e+2,1)},null,e+3]}function Ae(t,e){return[{hours:Oe(t,e,0),minutes:Oe(t,e+1,0),seconds:Oe(t,e+2,0),milliseconds:nt(t[e+3])},null,e+4]}function Pe(t,e){var r=!t[e]&&!t[e+1],n=dt(t[e+1],t[e+2]);return[{},r?null:Kt.instance(n),e+3]}function xe(t,e){return[{},t[e]?Ht.create(t[e]):null,e+1]}var Le=RegExp("^T?"+ye.source+"$"),_e=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function De(t){var e=t[0],r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],u=t[7],l=t[8],c="-"===e[0],f=u&&"-"===u[0],d=function(t,e){return void 0===e&&(e=!1),void 0!==t&&(e||t&&c)?-t:t};return[{years:d(rt(r)),months:d(rt(n)),weeks:d(rt(i)),days:d(rt(a)),hours:d(rt(o)),minutes:d(rt(s)),seconds:d(rt(u),"-0"===u),milliseconds:d(nt(l),f)}]}var Ce={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Re(t,e,r,n,i,a,o){var s={year:2===e.length?ct(rt(e)):rt(e),month:Et.indexOf(r)+1,day:rt(n),hour:rt(i),minute:rt(a)};return o&&(s.second=rt(o)),t&&(s.weekday=t.length>3?St.indexOf(t)+1:Ot.indexOf(t)+1),s}var Ie=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Me(t){var e,r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],u=t[7],l=t[8],c=t[9],f=t[10],d=t[11],h=Re(r,a,i,n,o,s,u);return e=l?Ce[l]:c?0:dt(f,d),[h,new Kt(e)]}var Ne=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,je=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Fe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Ue(t){var e=t[1],r=t[2],n=t[3];return[Re(e,t[4],n,r,t[5],t[6],t[7]),Kt.utcInstance]}function Be(t){var e=t[1],r=t[2],n=t[3],i=t[4],a=t[5],o=t[6];return[Re(e,t[7],r,n,i,a,o),Kt.utcInstance]}var Ve=de(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,be),Ge=de(/(\d{4})-?W(\d\d)(?:-?(\d))?/,be),He=de(/(\d{4})-?(\d{3})/,be),ze=de(ge),Ke=he(ke,Ae,Pe),We=he(Ee,Ae,Pe),qe=he(Te,Ae,Pe),Ye=he(Ae,Pe);var Xe=he(Ae);var Ze=de(/(\d{4}
vendor: 6,837 bytes, line 1
1)-(\d\d)-(\d\d)/,Se),$e=de(we),Je=he(ke,Ae,Pe,xe),Qe=he(Ae,Pe,xe);var tr={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},er=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},tr),rr=365.2425,nr=30.436875,ir=Object.assign({years:{quarters:4,months:12,weeks:52.1775,days:rr,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:nr,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},tr),ar=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],or=ar.slice(0).reverse();function sr(t,e,r){void 0===r&&(r=!1);var n={values:r?e.values:Object.assign({},t.values,e.values||{}),loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new lr(n)}function ur(t,e,r,n,i){var a=t[i][r],o=e[r]/a,s=!(Math.sign(o)===Math.sign(n[i]))&&0!==n[i]&&Math.abs(o)<=1?function(t){return t<0?Math.floor(t):Math.ceil(t)}(o):Math.trunc(o);n[i]+=s,e[r]-=s*a}var lr=function(){function t(t){var e="longterm"===t.conversionAccuracy||!1;this.values=t.values,this.loc=t.loc||fe.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=e?ir:er,this.isLuxonDuration=!0}t.fromMillis=function(e,r){return t.fromObject(Object.assign({milliseconds:e},r))},t.fromObject=function(e){if(null==e||"object"!==typeof e)throw new g("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new t({values:pt(e,t.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:fe.fromObject(e),conversionAccuracy:e.conversionAccuracy})},t.fromISO=function(e,r){var n=function(t){return pe(t,[_e,De])}(e),i=n[0];if(i){var a=Object.assign(i,r);return t.fromObject(a)}return t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.fromISOTime=function(e,r){var n=function(t){return pe(t,[Le,Xe])}(e),i=n[0];if(i){var a=Object.assign(i,r);return t.fromObject(a)}return t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.invalid=function(e,r){if(void 0===r&&(r=null),!e)throw new g("need to specify a reason the Duration is invalid");var n=e instanceof Mt?e:new Mt(e,r);if(te.throwOnInvalid)throw new v(n);return new t({invalid:n})},t.normalizeUnit=function(t){var e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new y(t);return e},t.isDuration=function(t){return t&&t.isLuxonDuration||!1};var e=t.prototype;return e.toFormat=function(t,e){void 0===e&&(e={});var r=Object.assign({},e,{floor:!1!==e.round&&!1!==e.floor});return this.isValid?It.create(this.loc,r).formatDurationFromString(this,t):"Invalid Duration"},e.toObject=function(t){if(void 0===t&&(t={}),!this.isValid)return{};var e=Object.assign({},this.values);return t.includeConfig&&(e.conversionAccuracy=this.conversionAccuracy,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e},e.toISO=function(){if(!this.isValid)return null;var t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=it(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t},e.toISOTime=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var e=this.toMillis();if(e<0||e>=864e5)return null;t=Object.assign({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},t);var r=this.shiftTo("hours","minutes","seconds","milliseconds"),n="basic"===t.format?"hhmm":"hh:mm";t.suppressSeconds&&0===r.seconds&&0===r.milliseconds||(n+="basic"===t.format?"ss":":ss",t.suppressMilliseconds&&0===r.milliseconds||(n+=".SSS"));var i=r.toFormat(n);return t.includePrefix&&(i="T"+i),i},e.toJSON=function(){return this.toISO()},e.toString=function(){return this.toISO()},e.toMillis=function(){return this.as("milliseconds")},e.valueOf=function(){return this.toMillis()},e.plus=function(t){if(!this.isValid)return this;for(var e,r=cr(t),n={},i=f(ar);!(e=i()).done;){var a=e.value;(Q(r.values,a)||Q(this.values,a))&&(n[a]=r.get(a)+this.get(a))}return sr(this,{values:n},!0)},e.minus=function(t){if(!this.isValid)return this;var e=cr(t);return this.plus(e.negate())},e.mapUnits=function(t){if(!this.isValid)return this;for(var e={},r=0,n=Object.keys(this.values);r<n.length;r++){var i=n[r];e[i]=ht(t(this.values[i],i))}return sr(this,{values:e},!0)},e.get=function(e){return this[t.normalizeUnit(e)]},e.set=function(e){return this.isValid?sr(this,{values:Object.assign(this.values,pt(e,t.normalizeUnit,[]))}):this},e.reconfigure=function(t){var e=void 0===t?{}:t,r=e.locale,n=e.numberingSystem,i=e.conversionAccuracy,a={loc:this.loc.clone({locale:r,numberingSystem:n})};return i&&(a.conversionAccuracy=i),sr(this,a)},e.as=function(t){return this.isValid?this.shiftTo(t).get(t):NaN},e.normalize=function(){if(!this.isValid)return this;var t=this.toObject();return function(t,e){or.reduce((function(r,n){return K(e[n])?r:(r&&ur(t,e,r,e,n),n)}),null)}(this.matrix,t),sr(this,{values:t},!0)},e.shiftTo=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(!this.isValid)return this;if(0===r.length)return this;r=r.map((function(e){return t.normalizeUnit(e)}));for(var i,a,o={},s={},u=this.toObject(),l=f(ar);!(a=l()).done;){var c=a.value;if(r.indexOf(c)>=0){i=c;var d=0;for(var h in s)d+=this.matrix[h][c]*s[h],s[h]=0;W(u[c])&&(d+=u[c]);var p=Math.trunc(d);for(var v in o[c]=p,s[c]=d-p,u)ar.indexOf(v)>ar.indexOf(c)&&ur(this.matrix,u,v,o,c)}else W(u[c])&&(s[c]=u[c])}for(var m in s)0!==s[m]&&(o[i]+=m===i?s[m]:s[m]/this.matrix[i][m]);return sr(this,{values:o},!0).normalize()},e.negate=function(){if(!this.isValid)return this;for(var t={},e=0,r=Object.keys(this.values);
vendor: 1,891 bytes, line 1
1e<r.length;e++){var n=r[e];t[n]=-this.values[n]}return sr(this,{values:t},!0)},e.equals=function(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(var e,r=f(ar);!(e=r()).done;){var n=e.value;if(i=this.values[n],a=t.values[n],!(void 0===i||0===i?void 0===a||0===a:i===a))return!1}var i,a;return!0},n(t,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),t}();function cr(t){if(W(t))return lr.fromMillis(t);if(lr.isDuration(t))return t;if("object"===typeof t)return lr.fromObject(t);throw new g("Unknown duration argument "+t+" of type "+typeof t)}var fr="Invalid Interval";function dr(t,e){return t&&t.isValid?e&&e.isValid?e<t?hr.invalid("end before start","The end of an interval must be after its start, but you had start="+t.toISO()+" and end="+e.toISO()):null:hr.invalid("missing or invalid end"):hr.invali
vendor: 6,644 bytes, line 1
1d("missing or invalid start")}var hr=function(){function t(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}t.invalid=function(e,r){if(void 0===r&&(r=null),!e)throw new g("need to specify a reason the Interval is invalid");var n=e instanceof Mt?e:new Mt(e,r);if(te.throwOnInvalid)throw new p(n);return new t({invalid:n})},t.fromDateTimes=function(e,r){var n=pn(e),i=pn(r),a=dr(n,i);return null==a?new t({start:n,end:i}):a},t.after=function(e,r){var n=cr(r),i=pn(e);return t.fromDateTimes(i,i.plus(n))},t.before=function(e,r){var n=cr(r),i=pn(e);return t.fromDateTimes(i.minus(n),i)},t.fromISO=function(e,r){var n=(e||"").split("/",2),i=n[0],a=n[1];if(i&&a){var o,s,u,l;try{s=(o=hn.fromISO(i,r)).isValid}catch(a){s=!1}try{l=(u=hn.fromISO(a,r)).isValid}catch(a){l=!1}if(s&&l)return t.fromDateTimes(o,u);if(s){var c=lr.fromISO(a,r);if(c.isValid)return t.after(o,c)}else if(l){var f=lr.fromISO(i,r);if(f.isValid)return t.before(u,f)}}return t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.isInterval=function(t){return t&&t.isLuxonInterval||!1};var e=t.prototype;return e.length=function(t){return void 0===t&&(t="milliseconds"),this.isValid?this.toDuration.apply(this,[t]).get(t):NaN},e.count=function(t){if(void 0===t&&(t="milliseconds"),!this.isValid)return NaN;var e=this.start.startOf(t),r=this.end.startOf(t);return Math.floor(r.diff(e,t).get(t))+1},e.hasSame=function(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))},e.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},e.isAfter=function(t){return!!this.isValid&&this.s>t},e.isBefore=function(t){return!!this.isValid&&this.e<=t},e.contains=function(t){return!!this.isValid&&(this.s<=t&&this.e>t)},e.set=function(e){var r=void 0===e?{}:e,n=r.start,i=r.end;return this.isValid?t.fromDateTimes(n||this.s,i||this.e):this},e.splitAt=function(){var e=this;if(!this.isValid)return[];for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];for(var a=n.map(pn).filter((function(t){return e.contains(t)})).sort(),o=[],s=this.s,u=0;s<this.e;){var l=a[u]||this.e,c=+l>+this.e?this.e:l;o.push(t.fromDateTimes(s,c)),s=c,u+=1}return o},e.splitBy=function(e){var r=cr(e);if(!this.isValid||!r.isValid||0===r.as("milliseconds"))return[];for(var n,i=this.s,a=1,o=[];i<this.e;){var s=this.start.plus(r.mapUnits((function(t){return t*a})));n=+s>+this.e?this.e:s,o.push(t.fromDateTimes(i,n)),i=n,a+=1}return o},e.divideEqually=function(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]},e.overlaps=function(t){return this.e>t.s&&this.s<t.e},e.abutsStart=function(t){return!!this.isValid&&+this.e===+t.s},e.abutsEnd=function(t){return!!this.isValid&&+t.e===+this.s},e.engulfs=function(t){return!!this.isValid&&(this.s<=t.s&&this.e>=t.e)},e.equals=function(t){return!(!this.isValid||!t.isValid)&&(this.s.equals(t.s)&&this.e.equals(t.e))},e.intersection=function(e){if(!this.isValid)return this;var r=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return r>=n?null:t.fromDateTimes(r,n)},e.union=function(e){if(!this.isValid)return this;var r=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return t.fromDateTimes(r,n)},t.merge=function(t){var e=t.sort((function(t,e){return t.s-e.s})).reduce((function(t,e){var r=t[0],n=t[1];return n?n.overlaps(e)||n.abutsStart(e)?[r,n.union(e)]:[r.concat([n]),e]:[r,e]}),[[],null]),r=e[0],n=e[1];return n&&r.push(n),r},t.xor=function(e){for(var r,n,i=null,a=0,o=[],s=e.map((function(t){return[{time:t.s,type:"s"},{time:t.e,type:"e"}]})),u=f((r=Array.prototype).concat.apply(r,s).sort((function(t,e){return t.time-e.time})));!(n=u()).done;){var l=n.value;1===(a+="s"===l.type?1:-1)?i=l.time:(i&&+i!==+l.time&&o.push(t.fromDateTimes(i,l.time)),i=null)}return t.merge(o)},e.difference=function(){for(var e=this,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t.xor([this].concat(n)).map((function(t){return e.intersection(t)})).filter((function(t){return t&&!t.isEmpty()}))},e.toString=function(){return this.isValid?"["+this.s.toISO()+" \u2013 "+this.e.toISO()+")":fr},e.toISO=function(t){return this.isValid?this.s.toISO(t)+"/"+this.e.toISO(t):fr},e.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():fr},e.toISOTime=function(t){return this.isValid?this.s.toISOTime(t)+"/"+this.e.toISOTime(t):fr},e.toFormat=function(t,e){var r=(void 0===e?{}:e).separator,n=void 0===r?" \u2013 ":r;return this.isValid?""+this.s.toFormat(t)+n+this.e.toFormat(t):fr},e.toDuration=function(t,e){return this.isValid?this.e.diff(this.s,t,e):lr.invalid(this.invalidReason)},e.mapEndpoints=function(e){return t.fromDateTimes(e(this.s),e(this.e))},n(t,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),t}(),pr=function(){function t(){}return t.hasDST=function(t){void 0===t&&(t=te.defaultZone);var e=hn.now().setZone(t).set({month:12});return!t.universal&&e.offset!==e.set({month:6}).offset},t.isValidIANAZone=function(t){return Ht.isValidSpecifier(t)&&Ht.isValidZone(t)},t.normalizeZone=function(t){return qt(t,te.defaultZone)},t.months=function(t,e){void 0===t&&(t="long");var r=void 0===e?{}:e,n=r.locale,i=void 0===n?null:n,a=r.numberingSystem,o=void 0===a?null:a,s=r.locObj,u=void 0===s?null:s,l=r.outputCalendar,c=void 0===l?"gregory":l;return(u||fe.create(i,o,c)).months(t)},t.monthsFormat=function(t,e){void 0===t&&(t="long");var r=void 0===e?{}:e,n=r.locale,i=void 0===n?null:n,a=r.numberingSystem,o=void 0===a?null:a,s=r.locObj,u=void 0===s?null:s,l=r.outputCalendar,c=void 0===l?"gregory":l;return(u||fe.create(i,o,c)).months(t,!0)},t.weekdays=function(t,e){void 0===t&&(t="long");var r=void 0===e?{}:e,n=r.locale,i=void 0===n?null:n,a=r.numberingSystem,o=void 0===a?null:a,s=r.locObj;return((void 0===s?null:s)||fe.create(i,o,null)).weekdays(t)},t.weekdaysFormat=function(t,e){void 0===t&&(t="long");var r=void 0===e?{}:e,n=r.locale,i=void 0===n?null:n,a=r.numberingSystem,o=void 0===a?null:a,s=r.locObj;return((void 0===s?null:s)||fe.create(i,o,null)).weekdays(t,!0)},t.meridiems=function(t){var e=(void 0===t?{}:t).locale,r=void 0===e?null:e;return fe.create(r).meridiems()},t.eras=function(t,e){void 0===t&&(t="short");var r=(void 0===e?{}:e).locale,n=void 0===r?null:r;return fe.create(n,null,"gregory").eras(t)},t.features=function(){var t=!1,e=!1,r=!1,n=!1;if(Y()){t=!0,e=X(),n=Z();
1try{r="America/New_York"===new Intl.DateTimeFormat("en",{timeZone:"America/New_York"}).resolvedOptions().timeZone}catch(i){r=!1}}return{intl:t,intlTokens:e,zones:r,relative:n}},t}();function vr(t,e){var r=function(t){return t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},n=r(e)-r(t);return Math.floor(lr.fromMillis(n).as("days"))}function mr(t,e,r,n){var i=function(t,e,r){for(var n,i,a={},o=0,s=[["years",function(t,e){return e.year-t.year}],["quarters",function(t,e){return e.quarter-t.quarter}],["months",function(t,e){return e.month-t.month+12*(e.year-t.year)}],["weeks",function(t,e){var r=vr(t,e);return(r-r%7)/7}],["days",vr]];o<s.length;o++){var u=s[o],l=u[0],c=u[1];if(r.indexOf(l)>=0){var f;n=l;var d,h=c(t,e);(i=t.plus(((f={})[l]=h,f)))>e?(t=t.plus(((d={})[l]=h-1,d)),h-=1):t=i,a[l]=h}}return[t,a,i,n]}(t,e,r),a=i[0],o=i[1],s=i[2],u=i[3],l=e-a,c=r.filter((function(t){return["hours","minutes","seconds","milliseconds"].indexOf(t)>=0}));if(0===c.length){var f;if(s<e)s=a.plus(((f={})[u]=1,f));s!==a&&(o[u]=(o[u]||0)+l/(s-a))}var d,h=lr.fromObject(Object.assign(o,n));return c.length>0?(d=lr.fromMillis(l,n)).shiftTo.apply(d,c).plus(h):h}var yr={arab:"[\u0660-\u0669]",arabext:"[\u06f0-\u06f9]",bali:"[\u1b50-\u1b59]",beng:"[\u09e6-\u09ef]",deva:"[\u0966-\u096f]",fullwide:"[\uff10-\uff19]",gujr:"[\u0ae6-\u0aef]",hanidec:"[\u3007|\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d]",khmr:"[\u17e0-\u17e9]",knda:"[\u0ce6-\u0cef]",laoo:"[\u0ed0-\u0ed9]",limb:"[\u1946-\u194f]",mlym:"[\u0d66-\u0d6f]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0b66-\u0b6f]",tamldec:"[\u0be6-\u0bef]",telu:"[\u0c66-\u0c6f]",thai:"[\u0e50-\u0e59]",tibt:"[\u0f20-\u0f29]",latn:"\\d"},gr={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},br=yr.hanidec.replace(/[\[|\]]/g,"").split("");function Er(t,e){var r=t.numberingSystem;return void 0===e&&(e=""),new RegExp(""+yr[r||"latn"]+e)}function Tr(t,e){return void 0===e&&(e=function(t){return t}),{regex:t,deser:function(t){var r=t[0];return e(function(t){var e=parseInt(t,10);if(isNaN(e)){e="";for(var r=0;r<t.length;r++){var n=t.charCodeAt(r);if(-1!==t[r].search(yr.hanidec))e+=br.indexOf(t[r]);else for(var i in gr){var a=gr[i],o=a[0],s=a[1];n>=o&&n<=s&&(e+=n-o)}}return parseInt(e,10)}return e}(r))}}}var wr="( |"+String.fromCharCode(160)+")",Sr=new RegExp(wr,"g");function Or(t){return t.replace(/\./g,"\\.?").replace(Sr,wr)}function kr(t){return t.replace(/\./g,"").replace(Sr," ").toLowerCase()}function Ar(t,e){return null===t?null:{regex:RegExp(t.map(Or).join("|")),deser:function(r){var n=r[0];return t.findIndex((function(t){return kr(n)===kr(t)}))+e}}}function Pr(t,e){return{regex:t,deser:function(t){return dt(t[1],t[2])},groups:e}}function xr(t){return{regex:t,deser:function(t){return t[0]}}}var Lr={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};var _r=null;function Dr(t,e){if(t.literal)return t;var r=It.macroTokenToFormatOpts(t.val);if(!r)return t;var n=It.create(e,r).formatDateTimeParts((_r||(_r=hn.fromMillis(1555555555555)),_r)).map((function(t){return function(t,e,r){var n=t.type,i=t.value;if("literal"===n)return{literal:!0,val:i};var a=r[n],o=Lr[n];return"object"===typeof o&&(o=o[a]),o?{literal:!1,val:o}:void 0}(t,0,r)}));return n.includes(void 0)?t:n}function Cr(t,e,r){var n=function(t,e){var r;return(r=Array.prototype).concat.apply(r,t.map((function(t){return Dr(t,e)})))}(It.parseFormat(r),t),i=n.map((function(e){return function(t,e){var r=Er(e),n=Er(e,"{2}"),i=Er(e,"{3}"),a=Er(e,"{4}"),o=Er(e,"{6}"),s=Er(e,"{1,2}"),u=Er(e,"{1,3}"),l=Er(e,"{1,6}"),c=Er(e,"{1,9}"),f=Er(e,"{2,4}"),d=Er(e,"{4,6}"),h=function(t){return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(t){return t[0]},literal:!0};var e},p=function(p){if(t.literal)return h(p);switch(p.val){case"G":return Ar(e.eras("short",!1),0);case"GG":return Ar(e.eras("long",!1),0);case"y":return Tr(l);case"yy":case"kk":return Tr(f,ct);case"yyyy":case"kkkk":return Tr(a);case"yyyyy":return Tr(d);case"yyyyyy":return Tr(o);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Tr(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Tr(n);case"MMM":return Ar(e.months("short",!0,!1),1);case"MMMM":return Ar(e.months("long",!0,!1),1);case"LLL":return Ar(e.months("short",!1,!1),1);case"LLLL":return Ar(e.months("long",!1,!1),1);case"o":case"S":return Tr(u);case"ooo":case"SSS":return Tr(i);case"u":return xr(c);case"a":return Ar(e.meridiems(),0);case"E":case"c":return Tr(r);case"EEE":return Ar(e.weekdays("short",!1,!1),1);case"EEEE":return Ar(e.weekdays("long",!1,!1),1);case"ccc":return Ar(e.weekdays("short",!0,!1),1);case"cccc":return Ar(e.weekdays("long",!0,!1),1);
vendor: 4,641 bytes, line 1
1case"Z":case"ZZ":return Pr(new RegExp("([+-]"+s.source+")(?::("+n.source+"))?"),2);case"ZZZ":return Pr(new RegExp("([+-]"+s.source+")("+n.source+")?"),2);case"z":return xr(/[a-z_+-/]{1,256}?/i);default:return h(p)}}(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return p.token=t,p}(e,t)})),a=i.find((function(t){return t.invalidReason}));if(a)return{input:e,tokens:n,invalidReason:a.invalidReason};var o=function(t){return["^"+t.map((function(t){return t.regex})).reduce((function(t,e){return t+"("+e.source+")"}),"")+"$",t]}(i),s=o[0],u=o[1],l=RegExp(s,"i"),c=function(t,e,r){var n=t.match(e);if(n){var i={},a=1;for(var o in r)if(Q(r,o)){var s=r[o],u=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(n.slice(a,a+u))),a+=u}return[n,i]}return[n,{}]}(e,l,u),f=c[0],d=c[1],h=d?function(t){var e;return e=K(t.Z)?K(t.z)?null:Ht.create(t.z):new Kt(t.Z),K(t.q)||(t.M=3*(t.q-1)+1),K(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),K(t.u)||(t.S=nt(t.u)),[Object.keys(t).reduce((function(e,r){var n=function(t){switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(r);return n&&(e[n]=t[r]),e}),{}),e]}(d):[null,null],p=h[0],v=h[1];if(Q(d,"a")&&Q(d,"H"))throw new m("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:l,rawMatches:f,matches:d,result:p,zone:v}}var Rr=[0,31,59,90,120,151,181,212,243,273,304,334],Ir=[0,31,60,91,121,152,182,213,244,274,305,335];function Mr(t,e){return new Mt("unit out of range","you specified "+e+" (of type "+typeof e+") as a "+t+", which is invalid")}function Nr(t,e,r){var n=new Date(Date.UTC(t,e-1,r)).getUTCDay();return 0===n?7:n}function jr(t,e,r){return r+(at(t)?Ir:Rr)[e-1]}function Fr(t,e){var r=at(t)?Ir:Rr,n=r.findIndex((function(t){return t<e}));return{month:n+1,day:e-r[n]}}function Ur(t){var e,r=t.year,n=t.month,i=t.day,a=jr(r,n,i),o=Nr(r,n,i),s=Math.floor((a-o+10)/7);return s<1?s=lt(e=r-1):s>lt(r)?(e=r+1,s=1):e=r,Object.assign({weekYear:e,weekNumber:s,weekday:o},mt(t))}function Br(t){var e,r=t.weekYear,n=t.weekNumber,i=t.weekday,a=Nr(r,1,4),o=ot(r),s=7*n+i-a-3;s<1?s+=ot(e=r-1):s>o?(e=r+1,s-=ot(r)):e=r;var u=Fr(e,s),l=u.month,c=u.day;return Object.assign({year:e,month:l,day:c},mt(t))}function Vr(t){var e=t.year,r=jr(e,t.month,t.day);return Object.assign({year:e,ordinal:r},mt(t))}function Gr(t){var e=t.year,r=Fr(e,t.ordinal),n=r.month,i=r.day;return Object.assign({year:e,month:n,day:i},mt(t))}function Hr(t){var e=q(t.year),r=tt(t.month,1,12),n=tt(t.day,1,st(t.year,t.month));return e?r?!n&&Mr("day",t.day):Mr("month",t.month):Mr("year",t.year)}function zr(t){var e=t.hour,r=t.minute,n=t.second,i=t.millisecond,a=tt(e,0,23)||24===e&&0===r&&0===n&&0===i,o=tt(r,0,59),s=tt(n,0,59),u=tt(i,0,999);return a?o?s?!u&&Mr("millisecond",i):Mr("second",n):Mr("minute",r):Mr("hour",e)}var Kr="Invalid DateTime",Wr=864e13;function qr(t){return new Mt("unsupported zone",'the zone "'+t.name+'" is not supported')}function Yr(t){return null===t.weekData&&(t.weekData=Ur(t.c)),t.weekData}function Xr(t,e){var r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new hn(Object.assign({},r,e,{old:r}))}function Zr(t,e,r){var n=t-60*e*1e3,i=r.offset(n);if(e===i)return[n,e];n-=60*(i-e)*1e3;var a=r.offset(n);return i===a?[n,i]:[t-60*Math.min(i,a)*1e3,Math.max(i,a)]}function $r(t,e){var r=new Date(t+=60*e*1e3);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Jr(t,e,r){return Zr(ut(t),e,r)}function Qr(t,e){var r=t.o,n=t.c.year+Math.trunc(e.years),i=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),a=Object.assign({},t.c,{year:n,month:i,day:Math.min(t.c.day,st(n,i))+Math.trunc(e.days)+7*Math.trunc(e.weeks)}),o=lr.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),s=Zr(ut(a),r,t.zone),u=s[0],l=s[1];return 0!==o&&(u+=o,l=t.zone.offset(u)),{ts:u,o:l}}function tn(t,e,r,n,i){var a=r.setZone,o=r.zone;if(t&&0!==Object.keys(t).length){var s=e||o,u=hn.fromObject(Object.assign(t,r,{zone:s,setZone:void 0}));
1return a?u:u.setZone(o)}return hn.invalid(new Mt("unparsable",'the input "'+i+"\" can't be parsed as "+n))}function en(t,e,r){return void 0===r&&(r=!0),t.isValid?It.create(fe.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function rn(t,e){var r=e.suppressSeconds,n=void 0!==r&&r,i=e.suppressMilliseconds,a=void 0!==i&&i,o=e.includeOffset,s=e.includePrefix,u=void 0!==s&&s,l=e.includeZone,c=void 0!==l&&l,f=e.spaceZone,d=void 0!==f&&f,h=e.format,p=void 0===h?"extended":h,v="basic"===p?"HHmm":"HH:mm";n&&0===t.second&&0===t.millisecond||(v+="basic"===p?"ss":":ss",a&&0===t.millisecond||(v+=".SSS")),(c||o)&&d&&(v+=" "),c?v+="z":o&&(v+="basic"===p?"ZZZ":"ZZ");var m=en(t,v);return u&&(m="T"+m),m}var nn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},an={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},on={ordinal:1,hour:0,minute:0,second:0,millisecond:0},sn=["year","month","day","hour","minute","second","millisecond"],un=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ln=["year","ordinal","hour","minute","second","millisecond"];function cn(t){var e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new y(t);return e}function fn(t,e){for(var r,n=f(sn);!(r=n()).done;){var i=r.value;K(t[i])&&(t[i]=nn[i])}var a=Hr(t)||zr(t);if(a)return hn.invalid(a);var o=te.now(),s=Jr(t,e.offset(o),e),u=s[0],l=s[1];return new hn({ts:u,zone:e,o:l})}function dn(t,e,r){var n=!!K(r.round)||r.round,i=function(t,i){return t=it(t,n||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(t,i)},a=function(n){return r.calendary?e.hasSame(t,n)?0:e.startOf(n).diff(t.startOf(n),n).get(n):e.diff(t,n).get(n)};if(r.unit)return i(a(r.unit),r.unit);for(var o,s=f(r.units);!(o=s()).done;){var u=o.value,l=a(u);if(Math.abs(l)>=1)return i(l,u)}return i(t>e?-0:0,r.units[r.units.length-1])}var hn=function(){function t(t){var e=t.zone||te.defaultZone,r=t.invalid||(Number.isNaN(t.ts)?new Mt("invalid input"):null)||(e.isValid?null:qr(e));this.ts=K(t.ts)?te.now():t.ts;var n=null,i=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e)){var a=[t.old.c,t.old.o];n=a[0],i=a[1]}else{var o=e.offset(this.ts);n=$r(this.ts,o),n=(r=Number.isNaN(n.year)?new Mt("invalid input"):null)?null:n,i=r?null:o}this._zone=e,this.loc=t.loc||fe.create(),this.invalid=r,this.weekData=null,this.c=n,this.o=i,this.isLuxonDateTime=!0}t.now=function(){return new t({})},t.local=function(e,r,n,i,a,o,s){return K(e)?t.now():fn({year:e,month:r,day:n,hour:i,minute:a,second:o,millisecond:s},te.defaultZone)},t.utc=function(e,r,n,i,a,o,s){return K(e)?new t({ts:te.now(),zone:Kt.utcInstance}):fn({year:e,month:r,day:n,hour:i,minute:a,second:o,millisecond:s},Kt.utcInstance)},t.fromJSDate=function(e,r){void 0===r&&(r={});var n,i=(n=e,"[object Date]"===Object.prototype.toString.call(n)?e.valueOf():NaN);if(Number.isNaN(i))return t.invalid("invalid input");var a=qt(r.zone,te.defaultZone);return a.isValid?new t({ts:i,zone:a,loc:fe.fromObject(r)}):t.invalid(qr(a))},t.fromMillis=function(e,r){if(void 0===r&&(r={}),W(e))return e<-Wr||e>Wr?t.invalid("Timestamp out of range"):new t({ts:e,zone:qt(r.zone,te.defaultZone),loc:fe.fromObject(r)});throw new g("fromMillis requires a numerical input, but received a "+typeof e+" with value "+e)},t.fromSeconds=function(e,r){if(void 0===r&&(r={}),W(e))return new t({ts:1e3*e,zone:qt(r.zone,te.defaultZone),loc:fe.fromObject(r)});throw new g("fromSeconds requires a numerical input")},t.fromObject=function(e){var r=qt(e.zone,te.defaultZone);if(!r.isValid)return t.invalid(qr(r));var n=te.now(),i=r.offset(n),a=pt(e,cn,["zone","locale","outputCalendar","numberingSystem"]),o=!K(a.ordinal),s=!K(a.year),u=!K(a.month)||!K(a.day),l=s||u,c=a.weekYear||a.weekNumber,d=fe.fromObject(e);
vendor: 4,615 bytes, line 1
1if((l||o)&&c)throw new m("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&o)throw new m("Can't mix ordinal dates with month/day");var h,p,v=c||a.weekday&&!l,y=$r(n,i);v?(h=un,p=an,y=Ur(y)):o?(h=ln,p=on,y=Vr(y)):(h=sn,p=nn);for(var g,b=!1,E=f(h);!(g=E()).done;){var T=g.value;K(a[T])?a[T]=b?p[T]:y[T]:b=!0}var w=v?function(t){var e=q(t.weekYear),r=tt(t.weekNumber,1,lt(t.weekYear)),n=tt(t.weekday,1,7);return e?r?!n&&Mr("weekday",t.weekday):Mr("week",t.week):Mr("weekYear",t.weekYear)}(a):o?function(t){var e=q(t.year),r=tt(t.ordinal,1,ot(t.year));return e?!r&&Mr("ordinal",t.ordinal):Mr("year",t.year)}(a):Hr(a),S=w||zr(a);if(S)return t.invalid(S);var O=Jr(v?Br(a):o?Gr(a):a,i,r),k=new t({ts:O[0],zone:r,o:O[1],loc:d});return a.weekday&&l&&e.weekday!==k.weekday?t.invalid("mismatched weekday","you can't specify both a weekday of "+a.weekday+" and a date of "+k.toISO()):k},t.fromISO=function(t,e){void 0===e&&(e={});var r=function(t){return pe(t,[Ve,Ke],[Ge,We],[He,qe],[ze,Ye])}(t);return tn(r[0],r[1],e,"ISO 8601",t)},t.fromRFC2822=function(t,e){void 0===e&&(e={});var r=function(t){return pe(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[Ie,Me])}(t);return tn(r[0],r[1],e,"RFC 2822",t)},t.fromHTTP=function(t,e){void 0===e&&(e={});var r=function(t){return pe(t,[Ne,Ue],[je,Ue],[Fe,Be])}(t);return tn(r[0],r[1],e,"HTTP",e)},t.fromFormat=function(e,r,n){if(void 0===n&&(n={}),K(e)||K(r))throw new g("fromFormat requires an input string and a format");var i=n,a=i.locale,o=void 0===a?null:a,s=i.numberingSystem,u=void 0===s?null:s,l=function(t,e,r){var n=Cr(t,e,r);return[n.result,n.zone,n.invalidReason]}(fe.fromOpts({locale:o,numberingSystem:u,defaultToEN:!0}),e,r),c=l[0],f=l[1],d=l[2];return d?t.invalid(d):tn(c,f,n,"format "+r,e)},t.fromString=function(e,r,n){return void 0===n&&(n={}),t.fromFormat(e,r,n)},t.fromSQL=function(t,e){void 0===e&&(e={});var r=function(t){return pe(t,[Ze,Je],[$e,Qe])}(t);return tn(r[0],r[1],e,"SQL",t)},t.invalid=function(e,r){if(void 0===r&&(r=null),!e)throw new g("need to specify a reason the DateTime is invalid");var n=e instanceof Mt?e:new Mt(e,r);if(te.throwOnInvalid)throw new h(n);return new t({invalid:n})},t.isDateTime=function(t){return t&&t.isLuxonDateTime||!1};var e=t.prototype;return e.get=function(t){return this[t]},e.resolvedLocaleOpts=function(t){void 0===t&&(t={});var e=It.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e.locale,numberingSystem:e.numberingSystem,outputCalendar:e.calendar}},e.toUTC=function(t,e){return void 0===t&&(t=0),void 0===e&&(e={}),this.setZone(Kt.instance(t),e)},e.toLocal=function(){return this.setZone(te.defaultZone)},e.setZone=function(e,r){var n=void 0===r?{}:r,i=n.keepLocalTime,a=void 0!==i&&i,o=n.keepCalendarTime,s=void 0!==o&&o;if((e=qt(e,te.defaultZone)).equals(this.zone))return this;if(e.isValid){var u=this.ts;if(a||s){var l=e.offset(this.ts);u=Jr(this.toObject(),l,e)[0]}return Xr(this,{ts:u,zone:e})}return t.invalid(qr(e))},e.reconfigure=function(t){var e=void 0===t?{}:t,r=e.locale,n=e.numberingSystem,i=e.outputCalendar;return Xr(this,{loc:this.loc.clone({locale:r,numberingSystem:n,outputCalendar:i})})},e.setLocale=function(t){return this.reconfigure({locale:t})},e.set=function(t){if(!this.isValid)return this;var e,r=pt(t,cn,[]),n=!K(r.weekYear)||!K(r.weekNumber)||!K(r.weekday),i=!K(r.ordinal),a=!K(r.year),o=!K(r.month)||!K(r.day),s=a||o,u=r.weekYear||r.weekNumber;if((s||i)&&u)throw new m("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&i)throw new m("Can't mix ordinal dates with month/day");n?e=Br(Object.assign(Ur(this.c),r)):K(r.ordinal)?(e=Object.assign(this.toObject(),r),K(r.day)&&(e.day=Math.min(st(e.year,e.month),e.day))):e=Gr(Object.assign(Vr(this.c),r));var l=Jr(e,this.o,this.zone);return Xr(this,{ts:l[0],o:l[1]})},e.plus=function(t){return this.isValid?Xr(this,Qr(this,cr(t))):this},e.minus=function(t){return this.isValid?Xr(this,Qr(this,cr(t).negate())):this},e.startOf=function(t){if(!this.isValid)return this;var e={},r=lr.normalizeUnit(t);switch(r){case"years":e.month=1;case"quarters":case"months":e.day=1;case"weeks":case"days":e.hour=0;case"hours":e.minute=0;case"minutes":e.second=0;case"seconds":e.millisecond=0}if("weeks"===r&&(e.weekday=1),"quarters"===r){var n=Math.ceil(this.month/3);e.month=3*(n-1)+1}return this.set(e)},e.endOf=function(t){var e;return this.isValid?this.plus((e={},e[t]=1,e)).startOf(t).minus(1):this},e.toFormat=function(t,e){return void 0===e&&(e={}),this.isValid?It.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):Kr}
1,e.toLocaleString=function(t){return void 0===t&&(t=S),this.isValid?It.create(this.loc.clone(t),t).formatDateTime(this):Kr},e.toLocaleParts=function(t){return void 0===t&&(t={}),this.isValid?It.create(this.loc.clone(t),t).formatDateTimeParts(this):[]},e.toISO=function(t){return void 0===t&&(t={}),this.isValid?this.toISODate(t)+"T"+this.toISOTime(t):null},e.toISODate=function(t){var e=(void 0===t?{}:t).format,r="basic"===(void 0===e?"extended":e)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(r="+"+r),en(this,r)},e.toISOWeekDate=function(){return en(this,"kkkk-'W'WW-c")},e.toISOTime=function(t){var e=void 0===t?{}:t,r=e.suppressMilliseconds,n=void 0!==r&&r,i=e.suppressSeconds,a=void 0!==i&&i,o=e.includeOffset,s=void 0===o||o,u=e.includePrefix,l=void 0!==u&&u,c=e.format;return rn(this,{suppressSeconds:a,suppressMilliseconds:n,includeOffset:s,includePrefix:l,format:void 0===c?"extended":c})},e.toRFC2822=function(){return en(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},e.toHTTP=function(){return en(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},e.toSQLDate=function(){return en(this,"yyyy-MM-dd")},e.toSQLTime=function(t){var e=void 0===t?{}:t,r=e.includeOffset,n=void 0===r||r,i=e.includeZone;return rn(this,{includeOffset:n,includeZone:void 0!==i&&i,spaceZone:!0})},e.toSQL=function(t){return void 0===t&&(t={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(t):null},e.toString=function(){return this.isValid?this.toISO():Kr},e.valueOf=function(){return this.toMillis()},e.toMillis=function(){return this.isValid?this.ts:NaN},e.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},e.toJSON=function(){return this.toISO()},e.toBSON=function(){return this.toJSDate()},e.toObject=function(t){if(void 0===t&&(t={}),!this.isValid)return{};var e=Object.assign({},this.c);return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e},e.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},e.diff=function(t,e,r){if(void 0===e&&(e="milliseconds"),void 0===r&&(r={}),!this.isValid||!t.isValid)return lr.invalid(this.invalid||t.invalid,"created by diffing an invalid DateTime");var n,i=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},r),a=(n=e,Array.isArray(n)?n:[n]).map(lr.normalizeUnit),o=t.valueOf()>this.valueOf(),s=mr(o?this:t,o?t:this,a,i);return o?s.negate():s},e.diffNow=function(e,r){return void 0===e&&(e="milliseconds"),void 0===r&&(r={}),this.diff(t.now(),e,r)},e.until=function(t){return this.isValid?hr.fromDateTimes(this,t):this},e.hasSame=function(t,e){if(!this.isValid)return!1;var r=t.valueOf(),n=this.setZone(t.zone,{keepLocalTime:!0});return n.startOf(e)<=r&&r<=n.endOf(e)},e.equals=function(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)},e.toRelative=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var r=e.base||t.fromObject({zone:this.zone}),n=e.padding?this<r?-e.padding:e.padding:0,i=["years","months","days","hours","minutes","seconds"],a=e.unit;return Array.isArray(e.unit)&&(i=e.unit,a=void 0),dn(r,this.plus(n),Object.assign(e,{numeric:"always",units:i,unit:a}))},e.toRelativeCalendar=function(e){return void 0===e&&(e={}),this.isValid?dn(e.base||t.fromObject({zone:this.zone}),this,Object.assign(e,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},t.min=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(!r.every(t.isDateTime))throw new g("min requires all arguments be DateTimes");return $(r,(function(t){return t.valueOf()}),Math.min)},t.max=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(!r.every(t.isDateTime))throw new g("max requires all arguments be DateTimes");return $(r,(function(t){return t.valueOf()}),Math.max)},t.fromFormatExplain=function(t,e,r){void 0===r&&(r={});var n=r,i=n.locale,a=void 0===i?null:i,o=n.numberingSystem,s=void 0===o?null:o;return Cr(fe.fromOpts({locale:a,numberingSystem:s,defaultToEN:!0}),t,e)},t.fromStringExplain=function(e,r,n){return void 0===n&&(n={}),t.fromFormatExplain(e,r,n)},n(t,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?Yr(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?Yr(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?Yr(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?Vr(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?pr.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?pr.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?pr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?pr.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.universal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return at(this.year)}},{key:"daysInMonth",get:function(){return st(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?ot(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?lt(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return S}},{key:"DATE_MED",get:function(){return O}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return k}},{key:"DATE_FULL",get:function(){return A}},{key:"DATE_HUGE",get:function(){return P}},{key:"TIME_SIMPLE",get:function(){return x}},{key:"TIME_WITH_SECONDS",get:function(){return L}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return _}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return D}},{key:"TIME_24_SIMPLE",get:function(){return C}},{key:"TIME_24_WITH_SECONDS",get:function(){return R}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return I}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return M}},{key:"DATETIME_SHORT",get:function(){return N}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return j}},{key:"DATETIME_MED",get:function(){return F}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return U}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return B}},{key:"DATETIME_FULL",get:function(){return V}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return G}},{key:"DATETIME_HUGE",get:function(){return H}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return z}}]),t}();function pn(t){if(hn.isDateTime(t))return t;if(t&&t.valueOf&&W(t.valueOf()))return hn.fromJSDate(t);if(t&&"object"===typeof t)return hn.fromObject(t);throw new g("Unknown datetime argument: "+t+", of type "+typeof t)}e.ou=hn},845:function(t,e,r){"use strict";r.r(e);var n=Number.isNaN||function(t){return"number"===typeof t&&t!==t};function i(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(i=t[r],a=e[r],!(i===a||n(i)&&n(a)))return!1;var i,a;return!0}e.default=function(t,e){var r;void 0===e&&(e=i);var n,a=[],o=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return o&&r===this&&e(i,a)||(n=t.apply(this,i),o=!0,r=this,a=i),n}}},2962:function(t,e,r){"use strict";r.d(e,{PB:function(){return f},lX:function(){return c}});var n=r(9008),i=r(7294);function a(){return a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},a.apply(this,arguments)}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var s={templateTitle:"",noindex:!1,nofollow:!1,defaultOpenGraphImageWidth:0,defaultOpenGraphImageHeight:0,defaultOpenGraphVideoWidth:0,defaultOpenGraphVideoHeight:0,disableGooglebot:!1},u=function(t,e,r){void 0===e&&(e=[]);var n=void 0===r?{}:r,a=n.defaultWidth,o=n.defaultHeight;return e.reduce((function(e,r,n){return e.push(i.createElement("meta",{key:"og:"+t+":0"+n,property:"og:"+t,content:r.url})),r.alt&&e.push(i.createElement("meta",{key:"og:"+t+":alt0"+n,property:"og:"+t+":alt",content:r.alt})),r.secureUrl&&e.push(i.createElement("meta",{key:"og:"+t+":secure_url0"+n,property:"og:"+t+":secure_url",content:r.secureUrl.toString()})),r.type&&e.push(i.createElement("meta",{key:"og:"+t+":type0"+n,property:"og:"+t+":type",content:r.type.toString()})),r.width?e.push(i.createElement("meta",{key:"og:"+t+":width0"+n,property:"og:"+t+":width",content:r.width.toString()})):a&&e.push(i.createElement("meta",{key:"og:"+t+":width0"+n,property:"og:"+t+":width",content:a.toString()})),r.height?e.push(i.createElement("meta",{key:"og:"+t+":height"+n,property:"og:"+t+":height",content:r.height.toString()})):o&&e.push(i.createElement("meta",{key:"og:"+t+":height"+n,property:"og:"+t+":height",content:o.toString()})),e}),[])},l=function(t){var e,r,n,o=[];t.titleTemplate&&(s.templateTitle=t.titleTemplate);var l="";t.title?(l=t.title,s.templateTitle&&(l=s.templateTitle.replace(/%s/g,(function(){return l})))):t.defaultTitle&&(l=t.defaultTitle),l&&o.push(i.createElement("title",{key:"title"},l));var c,f,d=t.noindex||s.noindex||t.dangerouslySetAllPagesToNoIndex,h=t.nofollow||s.nofollow||t.dangerouslySetAllPagesToNoFollow,p=t.disableGooglebot||s.disableGooglebot||t.dangerouslyDisableGooglebot,v="";if(t.robotsProps){var m=t.robotsProps,y=m.nosnippet,g=m.maxSnippet,b=m.maxImagePreview,E=m.maxVideoPreview,T=m.noarchive,w=m.noimageindex,S=m.notranslate,O=m.unavailableAfter;v=(y?",nosnippet":"")+(g?",max-snippet:"+g:"")+(b?",max-image-preview:"+b:"")+(T?",noarchive":"")+(O?",unavailable_after:"+O:"")+(w?",noimageindex":"")+(E?",max-video-preview:"+E:"")+(S?",notranslate":"")}(t.dangerouslyDisableGooglebot&&(s.disableGooglebot=!0),d||h?(t.dangerouslySetAllPagesToNoIndex&&(s.noindex=!0),t.dangerouslySetAllPagesToNoFollow&&(s.nofollow=!0),o.push(i.createElement("meta",{key:"robots",name:"robots",content:(d?"noindex":"index")+","+(h?"nofollow":"follow")+v})),p||o.push(i.createElement("meta",{key:"googlebot",name:"googlebot",content:(d?"noindex":"index")+","+(h?"nofollow":"follow")+v}))):(o.push(i.createElement("meta",{key:"robots",name:"robots",content:"index,follow"+v})),p||o.push(i.createElement("meta",{key:"googlebot",name:"googlebot",content:"index,follow"+v}))),t.description&&o.push(i.createElement("meta",{key:"description",name:"description",content:t.description})),t.mobileAlternate&&o.push(i.createElement("link",{rel:"alternate",key:"mobileAlternate",media:t.mobileAlternate.media,href:t.mobileAlternate.href})),t.languageAlternates&&t.languageAlternates.length>0&&t.languageAlternates.forEach((function(t){o.push(i.createElement("link",{rel:"alternate",key:"languageAlternate-"+t.hrefLang,hrefLang:t.hrefLang,href:t.href}))})),t.twitter&&(t.twitter.cardType&&o.push(i.createElement("meta",{key:"twitter:card",name:"twitter:card",content:t.twitter.cardType})),t.twitter.site&&o.push(i.createElement("meta",{key:"twitter:site",name:"twitter:site",content:t.twitter.site})),t.twitter.handle&&o.push(i.createElement("meta",{key:"twitter:creator",name:"twitter:creator",content:t.twitter.handle}))),t.facebook&&t.facebook.appId&&o.push(i.createElement("meta",{key:"fb:app_id",property:"fb:app_id",content:t.facebook.appId})),null!=(e=t.openGraph)&&e.title||t.title)&&o.push(i.createElement("meta",{key:"og:title",property:"og:title",content:(null==(c=t.openGraph)?void 0:c.title)||l}));(null!=(r=t.openGraph)&&r.description||t.description)&&o.push(i.createElement("meta",{key:"og:description",property:"og:description",content:(null==(f=t.openGraph)?void 0:f.description)||t.description}));if(t.openGraph){if((t.openGraph.url||t.canonical)&&o.push(i.createElement("meta",{key:"og:url",property:"og:url",content:t.openGraph.url||t.canonical})),t.openGraph.type){var k=t.openGraph.type.toLowerCase();o.push(i.createElement("meta",{key:"og:type",property:"og:type",content:k})),"profile"===k&&t.openGraph.profile?(t.openGraph.profile.firstName&&o.push(i.createElement("meta",{key:"profile:first_name",property:"profile:first_name",content:t.openGraph.profile.firstName})),t.openGraph.profile.lastName&&o.push(i.createElement("meta",{key:"profile:last_name",property:"profile:last_name",content:t.openGraph.profile.lastName})),t.openGraph.profile.username&&o.push(i.createElement("meta",{key:"profile:username",property:"profile:username",content:t.openGraph.profile.username})),t.openGraph.profile.gender&&o.push(i.createElement("meta",{key:"profile:gender",property:"profile:gender",content:t.openGraph.profile.gender}))):"book"===k&&t.openGraph.book?(t.openGraph.book.authors&&t.openGraph.book.authors.length&&t.openGraph.book.authors.forEac
1h((function(t,e){o.push(i.createElement("meta",{key:"book:author:0"+e,property:"book:author",content:t}))})),t.openGraph.book.isbn&&o.push(i.createElement("meta",{key:"book:isbn",property:"book:isbn",content:t.openGraph.book.isbn})),t.openGraph.book.releaseDate&&o.push(i.createElement("meta",{key:"book:release_date",property:"book:release_date",content:t.openGraph.book.releaseDate})),t.openGraph.book.tags&&t.openGraph.book.tags.length&&t.openGraph.book.tags.forEach((function(t,e){o.push(i.createElement("meta",{key:"book:tag:0"+e,property:"book:tag",content:t}))}))):"article"===k&&t.openGraph.article?(t.openGraph.article.publishedTime&&o.push(i.createElement("meta",{key:"article:published_time",property:"article:published_time",content:t.openGraph.article.publishedTime})),t.openGraph.article.modifiedTime&&o.push(i.createElement("meta",{key:"article:modified_time",property:"article:modified_time",content:t.openGraph.article.modifiedTime})),t.openGraph.article.expirationTime&&o.push(i.createElement("meta",{key:"article:expiration_time",property:"article:expiration_time",content:t.openGraph.article.expirationTime})),t.openGraph.article.authors&&t.openGraph.article.authors.length&&t.openGraph.article.authors.forEach((function(t,e){o.push(i.createElement("meta",{key:"article:author:0"+e,property:"article:author",content:t}))})),t.openGraph.article.section&&o.push(i.createElement("meta",{key:"article:section",property:"article:section",content:t.openGraph.article.section})),t.openGraph.article.tags&&t.openGraph.article.tags.length&&t.openGraph.article.tags.forEach((function(t,e){o.push(i.createElement("meta",{key:"article:tag:0"+e,property:"article:tag",content:t}))}))):"video.movie"!==k&&"video.episode"!==k&&"video.tv_show"!==k&&"video.other"!==k||!t.openGraph.video||(t.openGraph.video.actors&&t.openGraph.video.actors.length&&t.openGraph.video.actors.forEach((function(t,e){t.profile&&o.push(i.createElement("meta",{key:"video:actor:0"+e,property:"video:actor",content:t.profile})),t.role&&o.push(i.createElement("meta",{key:"video:actor:role:0"+e,property:"video:actor:role",content:t.role}))})),t.openGraph.video.directors&&t.openGraph.video.directors.length&&t.openGraph.video.directors.forEach((function(t,e){o.push(i.createElement("meta",{key:"video:director:0"+e,property:"video:director",content:t}))})),t.openGraph.video.writers&&t.openGraph.video.writers.length&&t.openGraph.video.writers.forEach((function(t,e){o.push(i.createElement("meta",{key:"video:writer:0"+e,property:"video:writer",content:t}))})),t.openGraph.video.duration&&o.push(i.createElement("meta",{key:"video:duration",property:"video:duration",content:t.openGraph.video.duration.toString()})),t.openGraph.video.releaseDate&&o.push(i.createElement("meta",{key:"video:release_date",property:"video:release_date",content:t.openGraph.video.releaseDate})),t.openGraph.video.tags&&t.openGraph.video.tags.length&&t.openGraph.video.tags.forEac
1h((function(t,e){o.push(i.createElement("meta",{key:"video:tag:0"+e,property:"video:tag",content:t}))})),t.openGraph.video.series&&o.push(i.createElement("meta",{key:"video:series",property:"video:series",content:t.openGraph.video.series})))}t.defaultOpenGraphImageWidth&&(s.defaultOpenGraphImageWidth=t.defaultOpenGraphImageWidth),t.defaultOpenGraphImageHeight&&(s.defaultOpenGraphImageHeight=t.defaultOpenGraphImageHeight),t.openGraph.images&&t.openGraph.images.length&&o.push.apply(o,u("image",t.openGraph.images,{defaultWidth:s.defaultOpenGraphImageWidth,defaultHeight:s.defaultOpenGraphImageHeight})),t.defaultOpenGraphVideoWidth&&(s.defaultOpenGraphVideoWidth=t.defaultOpenGraphVideoWidth),t.defaultOpenGraphVideoHeight&&(s.defaultOpenGraphVideoHeight=t.defaultOpenGraphVideoHeight),t.openGraph.videos&&t.openGraph.videos.length&&o.push.apply(o,u("video",t.openGraph.videos,{defaultWidth:s.defaultOpenGraphVideoWidth,defaultHeight:s.defaultOpenGraphVideoHeight})),t.openGraph.locale&&o.push(i.createElement("meta",{key:"og:locale",property:"og:locale",content:t.openGraph.locale})),t.openGraph.site_name&&o.push(i.createElement("meta",{key:"og:site_name",property:"og:site_name",content:t.openGraph.site_name}))}return t.canonical&&o.push(i.createElement("link",{rel:"canonical",href:t.canonical,key:"canonical"})),t.additionalMetaTags&&t.additionalMetaTags.length>0&&t.additionalMetaTags.forEach((function(t){var e,r,n;o.push(i.createElement("meta",a({key:"meta:"+(null!=(e=null!=(r=null!=(n=t.keyOverride)?n:t.name)?r:t.property)?e:t.httpEquiv)},t)))})),null!=(n=t.additionalLinkTags)&&n.length&&t.additionalLinkTags.forEach((function(t){var e;o.push(i.createElement("link",a({key:"link"+(null!=(e=t.keyOverride)?e:t.href)+t.rel},t)))})),o},c=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(){var t=this.props,e=t.title,r=t.titleTemplate,a=t.defaultTitle,o=t.dangerouslyDisableGooglebot,s=void 0!==o&&o,u=t.dangerouslySetAllPagesToNoIndex,c=void 0!==u&&u,f=t.dangerouslySetAllPagesToNoFollow,d=void 0!==f&&f,h=t.description,p=t.canonical,v=t.facebook,m=t.openGraph,y=t.additionalMetaTags,g=t.twitter,b=t.defaultOpenGraphImageWidth,E=t.defaultOpenGraphImageHeight,T=t.defaultOpenGraphVideoWidth,w=t.defaultOpenGraphVideoHeight,S=t.mobileAlternate,O=t.languageAlternates,k=t.additionalLinkTags;return i.createElement(n.default,null,l({title:e,titleTemplate:r,defaultTitle:a,dangerouslySetAllPagesToNoIndex:c,dangerouslySetAllPagesToNoFollow:d,description:h,canonical:p,facebook:v,openGraph:m,additionalMetaTags:y,twitter:g,defaultOpenGraphImageWidth:b,defaultOpenGraphImageHeight:E,defaultOpenGraphVideoWidth:T,defaultOpenGraphVideoHeight:w,mobileAlternate:S,languageAlternates:O,additionalLinkTags:k,dangerouslyDisableGooglebot:s}))},e}(i.Component),f=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(){var t=this.props,e=t.title,r=t.noindex,a=void 0!==r&&r,o=t.nofollow,s=t.robotsProps,u=t.description,c=t.canonical,f=t.openGraph,d=t.facebook,h=t.twitter,p=t.additionalMetaTags,v=t.titleTemplate,m=t.mobileAlternate,y=t.languageAlternates,g=t.additionalLinkTags,b=t.disableGooglebot;return i.createElement(n.default,null,l({title:e,noindex:a,nofollow:o,robotsProps:s,description:u,canonical:c,facebook:d,openGraph:f,additionalMetaTags:p,twitter:h,titleTemplate:v,mobileAlternate:m,languageAlternates:y,additionalLinkTags:g,disableGooglebot:b}))},e}(i.Component)},3454:function(t,e,r){"use strict";var n,i;t.exports=(null===(n=r.g.process)||void 0===n?void 0:n.env)&&"object"===typeof(null===(i=r.g.process)||void 0===i?void 0:i.env)?r.g.process:r(7663)},6363:function(t,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(3847)}])},9597:function(t,e,r){"use strict";r.d(e,{ZY:function(){return dt},$_:function(){return pt},Cc:function(){return gt},gR:function(){return xt},JL:function(){return kt},NP:function(){return Lt},bZ:function(){return _t},nk:function(){return Wt}});var n={};r.r(n),r.d(n,{addTrackers:function(){return q},default:function(){return ot},event:function(){return et},exception:function(){return rt},ga:function(){return X},initialize:function(){return Y},modalview:function(){return Q},outboundLink:function(){return it},pageview:function(){return J},plugin:function(){return nt},send:function(){return $},set:function(){return Z},testModeAPI:function(){return at},timing:function(){return tt}});var i=r(7294),a=r(1163),o=r(5697),s=r.n(o);function u(t){console.warn("[react-ga]",t)}function l(t){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?c(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function d(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function v(t,e){return v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},v(t,e)}function m(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=b(t);if(e){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return y(this,r)}}function y(t,e){return!e||"object"!==l(e)&&"function"!==typeof e?g(t):e}function g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function E(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var T="_blank",w=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(o,t);var e,r,n,a=m(o);function o(){var t;h(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return E(g(t=a.call.apply(a,[this].concat(r))),"handleClick",(function(e){var r=t.props,n=r.target,i=r.eventLabel,a=r.to,s=r.onClick,u=r.trackerNames,l={label:i},c=n!==T,f=!(e.ctrlKey||e.shiftKey||e.metaKey||1===e.button);c&&f?(e.preventDefault(),o.trackLink(l,(function(){window.location.href=a}),u)):o.trackLink(l,(function(){}),u),s&&s(e)})),t}return e=o,(r=[{key:"render",value:function(){var t=this.props,e=t.to,r=t.target,n=f(f({},d(t,["to","target"])),{},{target:r,href:e,onClick:this.handleClick});return r===T&&(n.rel="".concat(n.rel?n.rel:""," noopener noreferrer").trim()),delete n.eventLabel,delete n.trackerNames,i.createElement("a",n)}}])&&p(e.prototype,r),n&&p(e,n),o}(i.Component);E(w,"trackLink",(function(){u("ga tracking not enabled")})),w.propTypes={eventLabel:s().string.isRequired,target:s().string,to:s().string,onClick:s().func,trackerNames:s().arrayOf(s().string)},w.defaultProps={target:null,to:null,onClick:null,trackerNames:null};function S(t){return"string"===typeof(e=t)&&-1!==e.indexOf("@")?(u("This arg looks like an email address, redacting."),"REDACTED (Potential Email Address)"):t;var e}function O(t){return t&&t.toString().replace(/^\s+|\s+$/g,"")}var k=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function A(t){return O(t).replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,(function(t,e,r){return e>0&&e+t.length!==r.length&&t.search(k)>-1&&":"!==r.charAt(e-2)&&("-"!==r.charAt(e+t.length)||"-"===r.charAt(e-1))&&r.charAt(e-1).search(/[^\s-]/)<0?t.toLowerCase():t.substr(1).search(/[A-Z]|\../)>-1?t:t.charAt(0).toUpperCase()+t.substr(1)}))}var P=!1;function x(t){console.info("[react-ga]",t)}var L=[],_={calls:L,ga:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];L.push([].concat(e))},resetCalls:function(){L.length=0}};function D(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function C(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function R(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function I(t){return I="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I(t)}function M(t){return function(t){if(Array.isArray(t))return N(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return N(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return N(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var j="undefined"===typeof window||"undefined"===typeof document,F=!1,U=!0,B=!1,V=!0,G=!0,H=function(){var t;return B?_.ga.apply(_,arguments):!j&&(window.ga?(t=window).ga.apply(t,arguments):u("ReactGA.initialize must be called first or GoogleAnalytics should be loaded manually"))};function z(t){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t||"";return(arguments.length>1?arguments[1]:void 0)&&(r=A(t)),e&&(r=S(r)),r}(t,U,G)}function K(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var i=r[0];"string"===typeof i?(!V&&Array.isArray(t)||H.apply(void 0,r),Array.isArray(t)&&t.forEach((function(t){H.apply(void 0,M(["".concat(t,".").concat(i)].concat(r.slice(1))))}))):u("ga command must be a string")}function W(t,e){t?e&&(e.debug&&!0===e.debug&&(F=!0),!1===e.titleCase&&(U=!1),!1===e.redactEmail&&(G=!1),e.useExistingGa)||(e&&e.gaOptions?H("create",t,e.gaOptions):H("create",t,"auto")):u("gaTrackingID is required in initialize()")}function q(t,e){return Array.isArray(t)?t.forEach((function(t){"object"===I(t)?W(t.trackingId,t):u("All configs must be an object")})):W(t,e),!0}function Y(t,e){if(e&&!0===e.testMode)B=!0;else{if(j)return;e&&!0===e.standardImplementation||function(t){if(!P){P=!0;var e="https://www.google-analytics.com/analytics.js";t&&t.gaAddress?e=t.gaAddress:t&&t.debug&&(e="https://www.google-analytics.com/analytics_debug.js");var r=t&&t.onerror;!function(t,e,n,i,a,o,s){t.GoogleAnalyticsObject=a,t.ga=t.ga||function(){(t.ga.q=t.ga.q||[]).push(arguments)},t.ga.l=1*new Date,o=e.createElement(n),s=e.getElementsByTagName(n)[0],o.async=1,o.src=i,o.onerror=r,s.parentNode.insertBefore(o,s)}(window,document,"script",e,"ga")}}(e)}V=!e||"boolean"!==typeof e.alwaysSendToDefaultTracker||e.alwaysSendToDefaultTracker,q(t,e)}function X(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length>0&&(H.apply(void 0,e),F&&(x("called ga('arguments');"),x("with arguments: ".concat(JSON.stringify(e))))),window.ga}function Z(t,e){t?"object"===I(t)?(0===Object.keys(t).length&&u("empty `fieldsObject` given to .set()"),K(e,"set",t),F&&(x("called ga('set', fieldsObject);"),x("with fieldsObject: ".concat(JSON.stringify(t))))):u("Expected `fieldsObject` arg to be an Object"):u("`fieldsObject` is required in .set()")}function $(t,e){K(e,"send",t),F&&(x("called ga('send', fieldObject);"),x("with fieldObject: ".concat(JSON.stringify(t))),x("with trackers: ".concat(JSON.stringify(e))))}function J(t,e,r){if(t){var n=O(t);if(""!==n){var i={};if(r&&(i.title=r),K(e,"send",function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?C(Object(r),!0).forEach((function(e){R(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({hitType:"pageview",page:n},i)),F){x("called ga('send', 'pageview', path);");var a="";r&&(a=" and title: ".concat(r)),x("with path: ".concat(n).concat(a))}}else u("path cannot be an empty string in .pageview()")}else u("path is required in .pageview()")}function Q(t,e){if(t){var r,n="/"===(r=O(t)).substring(0,1)?r.substring(1):r;if(""!==n){var i="/modal/".concat(n);K(e,"send","pageview",i),F&&(x("called ga('send', 'pageview', path);"),x("with path: ".concat(i)))}else u("modalName cannot be an empty string or a single / in .modalview()")}else u("modalName is required in .modalview(modalName)")}function tt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.category,r=t.variable,n=t.value,i=t.label,a=arguments.length>1?arguments[1]:void 0;if(e&&r&&"number"===typeof n){var o={hitType:"timing",timingCategory:z(e),timingVar:z(r),timingValue:n};i&&(o.timingLabel=z(i)),$(o,a)}else u("args.category, args.variable AND args.value are required in timing() AND args.value has to be a number")}function et(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.category,r=t.action,n=t.label,i=t.value,a=t.nonInteraction,o=t.transport,s=D(t,["category","action","label","value","nonInteraction","transport"]),l=arguments.length>1?arguments[1]:void 0;if(e&&r){var c={hitType:"event",eventCategory:z(e),eventAction:z(r)};n&&(c.eventLabel=z(n)),"undefined"!==typeof i&&("number"!==typeof i?u("Expected `args.value` arg to be a Number."):c.eventValue=i),"undefined"!==typeof a&&("boolean"!==typeof a?u("`args.nonInteraction` must be a boolean."):c.nonInteraction=a),"undefined"!==typeof o&&("string"!==typeof o?u("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(o)&&u("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),c.transport=o)),Object.keys(s).filter((function(t){return"dimension"===t.substr(0,"dimension".length)})).forEach((function(t){c[t]=s[t]})),Object.keys(s).filter((function(t){return"metric"===t.substr(0,"metric".length)})).forEach((function(t){c[t]=s[t]})),$(c,l)}else u("args.category AND args.action are required in event()")}function rt(t,e){var r=t.description,n=t.fatal,i={hitType:"exception"};r&&(i.exDescription=z(r)),"undefined"!==typeof n&&("boolean"!==typeof n?u("`args.fatal` must be a boolean."):i.exFatal=n),$(i,e)}var nt={require:function(t,e,r){if(t){var n=O(t);if(""!==n){var i=r?"".concat(r,".require"):"require";if(e){if("object"!==I(e))return void u("Expected `options` arg to be an Object");0===Object.keys(e).length&&u("Empty `options` given to .require()"),X(i,n,e),F&&x("called ga('require', '".concat(n,"', ").concat(JSON.stringify(e)))}else X(i,n),F&&x("called ga('require', '".concat(n,"');"))}else u("`name` cannot be an empty string in .require()")}else u("`name` is required in .require()")},execute:function(t,e){for(var r,n,i=arguments.length,a=new Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=arguments[o];if(1===a.length?r=a[0]:(n=a[0],r=a[1]),"string"!==typeof t)u("Expected `pluginName` arg to be a String.");else if("string"!==typeof e)u("Expected `action` arg to be a String.");else{var s="".concat(t,":").concat(e);r=r||null,n&&r?(X(s,n,r),F&&(x("called ga('".concat(s,"');")),x('actionType: "'.concat(n,'" with payload: ').concat(JSON.stringify(r))))):r?(X(s,r),F&&(x("called ga('".concat(s,"');")),x("with payload: ".concat(JSON.stringify(r))))):(X(s),F&&x("called ga('".concat(s,"');")))}}};function it(t,e,r){if("function"===typeof e)if(t&&t.label){var n={hitType:"event",eventCategory:"Outbound",eventAction:"Click",eventLabel:z(t.label)},i=!1,a=setTimeout((function(){i=!0,e()}),250);n.hitCallback=function(){clearTimeout(a),i||e()},$(n,r)}else u("args.label is required in outboundLink()");else u("hitCallback function is required")}var at=_,ot={initialize:Y,ga:X,set:Z,send:$,pageview:J,modalview:Q,timing:tt,event:et,exception:rt,plugin:nt,outboundLink:it,testModeAPI:_};function st(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ut(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?st(Object(r),!0).forEach((function(e){lt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):st(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function lt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}w.origTrackLink=w.trackLink,w.trackLink=it;var ct=w,ft=ut(ut({},n),{},{OutboundLink:ct});function dt(t){var e=t.children,r=function(){window.fbq("track","PageView"),ft.pageview(window.location.pathname+window.location.search)},n=(0,a.useRouter)(),o=(0,i.useState)(!1),s=o[0],u=o[1];return(0,i.useEffect)((function(){return s||(ft.initialize("UA-130585759-12"),u(!0)),r(),n.events.on("routeChangeComplete",r),function(){n.events.off("routeChangeComplete",r)}}),[]),e}var ht=r(5893);r(2921),r(520);new Intl.NumberFormat("en-US",{minimumIntegerDigits:2,maximumFractionDigits:0});function pt(){return(0,ht.jsxs)("div",{className:"flex flex-col my-4 sm:my-12 max-w-2xl items-center",children:[(0,ht.jsx)("div",{className:"bg-light-blue w-72 h-2 my-10"}),(0,ht.jsxs)("div",{className:"flex flex-col items-center",children:[(0,ht.jsx)("a",{href:"https://www.nba.com/warriors/?tmd=1",target:"_blank",children:(0,ht.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 178.93 216",className:"w-20 sm:w-40",children:[(0,ht.jsx)("path",{fill:"#ffc72c",d:"M91.76 8.68L85.21 0h-4.43v.84l1.03.74V14.3h3.4V5.7l6.57 8.6h3.38V0h-3.4v8.68zM67.86 16.45l9.8-1.73-.51-2.91-6.26 1.1-.49-2.75 5.11-.9L75 6.34l-5.11.9-.46-2.57 5.72-1.01.25-3.05-11.03 1.94.14.83 1.15.54 2.2 12.53zM51.59 21.78l5-1.83c4.65-1.69 6.45-5.49 5-9.43s-5.26-5.69-9.92-4l-6.11 2.24.29.79 1.44.4zm-.48-11.89l1.79-.65a3.93 3.93 0 015.37 2.5 3.93 3.93 0 01-2.51 5.37l-1.76.65zM38.7 28.86l8.85-5.11-.88-3.12-6.43 3.71-5.57-9.65-3.9 2.24.42.73 1.11.11 6.4 11.09zM30 25.66a7.33 7.33 0 00-10.68-.54 7.43 7.43 0 109.74 11.21A7.35 7.35 0 0030 25.66m-8.87 7.71c-1.65-1.9-1.65-4.28.22-5.91a4 4 0 015.88.61 4 4 0 11-6.1 5.3M15.5 37.76l-2.83 3.61-.74 1-1.2 1.53L13 45.61l2.24-2.86a3.81 3.81 0 01-.48 4.15c-1.53 2-3.93 2.05-5.89.51s-2.44-3.88-.91-5.83a3.94 3.94 0 01.79-.79 3.75 3.75 0 011.34-.67l1.16-1.49 1.48-1.89.06-.09h-.22a7.42 7.42 0 00-6.73 2.65l-.33.4a7.34 7.34 0 001.06 10.62 7.35 7.35 0 0010.61-1.5l.29-.39a7.34 7.34 0 00.54-8 5.74 5.74 0 00-.43-.66 7.67 7.67 0 00-1.51-1.56c-.18-.14-.37-.27-.57-.4M112.41 10.82l1.23 1.18c1.06 1 1.56 1.47 1.35 2.22-.17.59-.9.91-2 .6a6.77 6.77 0 01-3.53-2.86l-1 3.61a9.18 9.18 0 004.06 2.21c2.73.78 5.42-.19 6.18-2.86.6-2.1-.52-3.53-2-5l-1.45-1.37c-.67-.63-.82-1.06-.69-1.53s.88-.83 1.75-.59a7.32 7.32 0 013.4 2.43l.94-3.28a9 9 0 00-3.69-2c-3-.85-5.35.44-6 2.74a4.31 4.3
11 0 001.52 4.52M124.26 21.99l3.3 1.53 4.78-10.27 4.08 1.9 1.25-2.69-11.45-5.34-1.26 2.69 4.09 1.9-4.79 10.28zM133.48 24.63l-.86 1.28 2.47 1.67 1-1.16 1.58-.8 4.39 3-.15 1.76-.69 1.39 2.47 1.67.87-1.28 3.3-13.16-4.53-3-.47.69.36 1zm10.68-3.86l-1.31 4.92-2.76-1.85zM152.29 25.86l3.3 3.07-7.73 8.29 2.66 2.48 7.73-8.29 3.29 3.06 2.02-2.16-9.25-8.62-2.02 2.17zM162.69 44.56l3.19 4.1 2.34-1.83-3.2-4.09 2.06-1.61 3.58 4.58 2.81-1.21-6.94-8.94-.66.52.06 1.4-9.99 7.8 6.12 7.84 2.34-1.82-3.92-5.01 2.21-1.73zM113.5 195.52l-.86-4.41-14.92 2.9.85 4.41 4.75-.92 2.42 12.47-4.74.92.86 4.41 14.92-2.9-.86-4.41-4.74.92-2.43-12.47 4.75-.92zM141.06 190.27c2.62 5.61.56 12.18-5.84 15.16s-12.75.34-15.37-5.27-.58-12.16 5.85-15.16 12.74-.37 15.36 5.25m-5.06 2.37c-1.61-3.45-5-4.9-8.32-3.33s-4.4 5.06-2.79 8.51 4.92 5 8.33 3.37 4.38-5.12 2.78-8.55M156.74 172.47c-2.7-3.16-7-2.91-10.14-.18l-6 5.13-.93.79-1.13 1 .81.95 1.83-.16 12.58 14.73 4.16-3.56-5.13-6 1.21-1 9.27 2.48 5-4.29-10.73-2.49a6.72 6.72 0 00-.81-7.33m-4.87 7.66l-2 1.66-3.17-3.72 2-1.74c1.16-1 2.61-1.21 3.68 0s.66 2.69-.59 3.76M177 171.65a14 14 0 01-5.33 4.56l-4.56-3.43a10.35 10.35 0 006-3.45c1-1.34 1-2.55.21-3.11-.94-.71-1.9-.26-3.87.7l-2.29 1.08c-2.8 1.35-5.19 1.23-7.22-.3-2.9-2.18-3.42-6.28-.61-10a13.81 13.81 0 014.86-4.13l4.13 3.11a11 11 0 00-5.27 3.5c-.83 1.1-.87 2.23-.13 2.79s1.28.46 2.55-.14l2.73-1.3c2.86-1.38 5.5-2.2 8.15-.21 3.36 2.54 3.27 6.87.69 10.3M92.5 201c.14-4.15-3.16-6.84-7.36-7l-10.6-.37-.05 1.25L76 196l-.68 19.35 5.48.19.27-7.89 1.59.05 5.16 8.09 6.6.23-6.22-9.08a6.75 6.75 0 004.35-6m-8.77 2.36l-2.55-.09.17-4.89 2.67.09c1.52.06 2.74.87 2.68 2.52s-1.33 2.43-3 2.37M68.13 199c1.17-4-1.35-7.41-5.37-8.6l-10.18-3-.35 1.21 1.12 1.44-5.5 18.57 5.25 1.56 2.25-7.58 1.52.45 3 9.13 6.32 1.87-3.75-10.35a6.76 6.76 0 005.69-4.7m-9.09.09l-2.44-.73 1.4-4.66 2.56.76c1.47.43 2.44 1.53 2 3.1s-1.89 2-3.48 1.56M38.08 179.09l-.64 1.09.54 1.21-14.22 11.71-1.2 2 3.9 2.29 1.46-1.85 2.31-1.36 6.92 4.08-.06 2.74-.92 2.17 3.9 2.3 1.19-2 3.74-20.3zm-4.39 12.2l5.88-5-1.57 7.56zM28 171.75l-.92.85.18 1.53-11.7 5.07 7.56-12.78-2.35-2.57-13.31 6.51 7.14-13.24-4.65-5.07-.93.85.26 2.07L0 173.29l3.73 4.07 8.94-3.7-4.48 8.56 3.72 4.07 21.51-8.63-5.42-5.91z"}),(0,ht.jsx)("path",{fill:"#1d428a",d:"M49.95 143.01l3.23-.11-.01-13.31h-3.22v13.42zM49.96 85.63h3.2v4.62h-3.2zM50 168.81a92 92 0 003.23 1.8v-16.69l6.77 2.33c.32 6.68.65 12.79 1 17.91a75 75 0 0081-17.95L50 153zM49.96 94.54h3.21v4.62h-3.21zM49.96 116.4h3.22v8.91h-3.22zM49.96 103.44h3.21v8.66h-3.21zM34.08 143.53l9.92-37.7c.17-8.54.25-16.52.26-23.15l-17.1 61.08zM14.24 118.05a74.16 74.16 0 003.9 13.54l7.39-24.9a79.8 79.8 0 01-11.29 11.36zM42.71 143.25c.46-8.95.8-18.51 1-27.78l-7.34 28z"}),(0,ht.jsx)("path",{d:"M88 183.55a79.43 79.43 0 1179.43-79.43A79.43 79.43 0 0188 183.55z",fill:"#1d428a"}),(0,ht.jsx)("path",{d:"M41.4 162.94c.28-3.18.54-6.6.77-10.2l-11.69-.41a75 75 0 0010.92 10.61zM29.26 102l-9.76 32.83a75.58 75.58 0 004.82 9h.47l17.36-62A172.23 172.23 0 0129.26 102zM49.97 78.44h3.2v2.9h-3.2zM59.85 148.15l87.59 1.71c.52-.67 1-1.36 1.52-2.05l-89.14-.5zM65.52 142.5l-7-25.19c.29 8.42.61 17.09 1 25.39zM59.47 81.05l17.1 61.08 7.78-.25-14.09-50.33a148.91 148.91 0 01-10.79-10.5z",fill:"#1d428a"}),(0,ht.jsx)("path",{d:"M88 29.08a75 75 0 00-74.33 85.26c12.43-8.88 29-37.55 30.56-40.21 0-2.45-.06-4.51-.11-6.09L46 67v-1.92l4-1v5.28h3.19v-5l3.76.88s.08 3.3.23 8.81l.05.06.1.12C80 102 127.22 125.64 156.41 134.87A75 75 0 0088 29.08z",fill:"#1d428a"}),(0,ht.jsx)("path",{d:"M73.31 94.19l13.33 47.61 7.23-.24-11.19-39.95c-3.19-2.38-6.33-4.85-9.37-7.42zM58.12 106.84l.19.72v1l9.47 33.83 6.47-.21-16.72-59.82v.08l-.17-.58c.2 6.96.46 15.62.76 24.98zM145.76 139.86l7.66-.25c-2.11-.72-5-1.82-8.65-3.29zM85.59 103.75l10.57 37.74 7.38-.24-8.73-31.18q-4.63-3.07-9.22-6.32zM143.47 139.93l-1.32-4.7c-2.73-1.16-5.77-2.5-9-4l2.52 9zM121.22 125.38l4.23 15.15 7.89-.26-2.88-10.27c-2.94-1.44-6.03-3-9.24-4.62zM97.63 111.89l8.2 29.28 7.15-.23-6.64-23.74q-4.34-2.53-8.71-5.31zM109.1 118.8l6.17 22.06 7.89-.26-4.65-16.6c-3.07-1.65-6.22-3.37-9.41-5.2z",fill:"#1d428a"}),(0,ht.jsx)("path",{d:"M88 24.69a79.43 79.43 0 1079.43 79.43A79.43 79.43 0 0088 24.69zm-73.76 93.36a79.8 79.8 0 0011.29-11.36l-7.39 24.9a74.16 74.16 0 01-3.9-13.54zm10.08 25.8a75.58 75.58 0 01-4.82-9L29.26 102a172.23 172.23 0 0012.89-20.19l-17.36 62zm17.08 19.09a75 75 0 01-10.92-10.61l11.69.41c-.23 3.6-.49 7.02-.77 10.2zm1.31-19.69l-6.3.2 7.34-28c-.24 9.29-.58 18.85-1.04 27.8zM44 105.83l-9.89 37.7-6.95.23 17.1-61.08c-.04 6.63-.12 14.61-.26 23.15zm44 73.33a74.79 74.79 0 01-26.94-5c-.35-5.12-.68-11.23-1-17.91l-6.85-2.33v16.69a92 92 0 01-3.23-1.8V153l92 3.2A74.82 74.82 0 0188 179.16zM53.17 85.63v4.62H50v-4.62zM50 81.34v-2.9h3.19v2.9zm3.2 13.2v4.62H50v-4.62zm0 8.9v8.67H50v-8.67zm0 13v8.9H50v-8.9zm0 13.19v13.27l-3.2.1v-13.41zm4.36-47.23l16.75 59.85-6.47.21-9.47-33.83v-1l-.19-.72c-.3-9.36-.56-18-.76-25l.17.58zm75.81 57.91l-7.89.26-4.23-15.15c3.21 1.66 6.3 3.18 9.24 4.58zm-.22-9.05c3.26 1.51 6.3 2.85 9 4l1.32 4.7-7.83.26zm-10 9.38l-7.89.26-6.16-22.1c3.19 1.83 6.34 3.55 9.41 5.17zm-10.18.34l-7.15.23-8.2-29.28q4.38 2.77 8.71 5.31zm-9.44.31l-7.38.24-10.56-37.78q4.57 3.28 9.22 6.32zm-9.67.31l-7.23.24-13.32-47.65c3 2.57 6.18 5 9.37 7.42zm-9.52.32l-7.78.25-17.09-61.12a148.91 148.91 0 0010.79 10.5zm-18.83.62l-6.1.2c-.34-8.3-.66-17-1-25.39zm81.92 7.36l-87.59-1.71v-.84l89.14.5c-.52.65-.98 1.34-1.54 2.01zm-1.68-10l-1-3.54c3.6 1.47 6.54 2.57 8.65 3.29zM57.3 74.26l-.1-.12-.05-.06c-.15-5.51-.23-8.81-.23-8.81l-3.76-.88v5H50v-5.25l-4 1V67l-1.88 1c0 1.58.09 3.64.11 6.09-1.52 2.66-18.13 31.33-30.56 40.21a75 75 0 11142.77 20.53C127.22 125.64 80 102 57.3 74.26z",fill:"#ffc72c"})]})}),(0,ht.jsx)("div",{className:"mt-6 sm:mt-12 font-druk-wide text-yellow text-sm sm:text-base uppercase text-center sm:text-left",children:"About the Golden State Warr
1iors"}),(0,ht.jsx)("p",{className:"mt-4 sm:mt-6 text-center text-white text-sm leading-relaxed font-light px-4 sm:px-0",children:"The Golden State Warriors were founded in 1946 in Philadelphia where they played until 1962 when they relocated to California first taking on the name San Francisco Bay Area before changing to Golden State in 1971. The Warriors are one of the most successful franchises in professional basketball holding 6 Championships and numerous records including best regular season record, most wins in a season (regular and postseason combined), and best postseason run."})]}),(0,ht.jsxs)("div",{className:"mt-14 sm:mt-28 flex flex-col items-center",children:[(0,ht.jsx)("a",{href:"https://medium-rare.com/",target:"_blank",rel:"noreferrer",children:(0,ht.jsxs)("svg",{fill:"white",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 753.48 443.04",className:"w-24 sm:w-40",children:[(0,ht.jsx)("path",{d:"M625.56 32.2c1.76-.8 3.25-1.47 4.73-2.16a32.85 32.85 0 0114.53-3c6.67.07 11.49 2.84 14.15 9.08.26.61.55 1.2 1 2.12 3-3.47 5.81-6.89 8.82-10.13A40.11 40.11 0 01683.46 18c13.2-5.26 25.72 4.11 27 16.72a48 48 0 01-2.69 22.07c-3.53 9.34-7.24 
118.6-10.7 28-1.32 3.57-2.21 7.31-3.17 11a13.13 13.13 0 00-.37 3.95c.28 5.37 3.31 7.41 8.42 5.68a28.65 28.65 0 0014-10.82 81.7 81.7 0 007.22-13c2.1-4.48 4.83-6.06 9.46-4.69s7 5 6.14 9.37c-3.47 17.83-20.19 34.69-37.53 38.3-17.14 3.57-29.45-8.23-27.49-26.25a39.48 39.48 0 012.32-9.16c4.2-11.39 8.67-22.68 12.84-34.08a76.31 76.31 0 002.69-10.61 12.9 12.9 0 000-4.47c-.5-3.23-2.94-4.78-5.76-3.24a26.28 26.28 0 00-6.84 5.51 92.77 92.77 0 00-15.55 25.47c-7.22 17-14 34.16-21 51.25-1.38 3.38-2.84 6.74-4.44 10-2.52 5.13-7.3 7.34-12.87 6.11-4.58-1-8.06-5.63-6-10.61 3.79-9 7.38-18.18 10.92-27.33 4.67-12.1 9.34-24.2 13.72-36.4a37.54 37.54 0 002-10.73c.23-4.39-1.72-6-6.12-5.88-3.67.05-6.73 1.69-9.61 3.74-6.86 4.9-11.32 11.7-14.68 19.23-7.46 16.7-14.73 33.5-22.12 50.24-4.25 9.63-9.94 18.15-18.25 24.71-5.86 4.63-12.36 7.7-20 8.34-10.51.88-20.89-3.47-23.95-14.35a4.22 4.22 0 00-.84-1.31c-4.87 5.11-9.57 10.29-14.54 15.17a29.11 29.11 0 01-16.29 8.14c-7.5 1.12-14.32-.27-19.49-7-2.3 2.31-4.41 4.57-6.68 6.66a38.47 38.47 0 01-25.65 10.73 20.13 20.13 0 01-16.09-6.59 11.35 11.35 0 01-1.29-2.41c-2.52 2.74-4.23 4.77-6.11 6.62-7.69 7.57-16.79 11.87-27.75 11.68-10-.17-17.1-4.74-21.12-14-.59-1.37-1.19-2.74-1.8-4.1-.06-.13-.25-.21-.61-.51-1.81 2.33-3.56 4.7-5.45 7-6.22 7.49-13.05 14.28-22.17 18.22-5.44 2.35-11.1 3.62-17 2.38-6.26-1.31-11-4.61-13.39-10.77a22.6 22.6 0 00-1-2.07l-4.62 4.09c-10.08 9-21.42 15.78-34.8 18.65a57.53 57.53 0 01-22.83.45c-13.66-2.53-22.52-13.3-23.15-28-.42-10 1.6-19.53 5-28.84 5.93-16.36 14.77-30.89 27.47-42.92a47.13 47.13 0 0126-12.88c15.65-2.31 27.55 7.92 27.78 23.74.19 13.21-5.74 23.35-15.56 31.51s-21.4 12.71-33.74 15.42c-5.35 1.17-10.75 2.08-16 3.09-2.11 9.85 1.9 16.36 11.46 18.06 10.51 1.87 20.18-.92 28.93-6.7 10.08-6.65 17.53-15.85 23.52-26.17a211.78 211.78 0 0010.15-20c6.54-14.57 14.66-28 26.31-39.11a57.15 57.15 0 0119.57-12.65 30.6 30.6 0 0113.77-1.54c4.53.42 8 3 11.56 6.28.73-1.32 1.42-2.36 1.91-3.5q13-30.53 25.95-61.07a41.52 41.52 0 013.58-7.11A10.3 10.3 0 01434.79 0c6.63 0 11 5.5 8.61 11.7-3.7 9.81-7.7 19.49-11.61 29.21-9.58 23.76-19.25 47.49-28.74 71.28-4.08 10.21-7.78 20.56-9.14 31.55a23.84 23.84 0 00.22 7.4c.63 3.22 2.63 4.75 5.77 4.05a19.28 19.28 0 007.54-3.49c7-5.44 11.75-12.67 15.15-20.76 8.64-20.55 17.14-41.15 25.73-61.72a30.14 30.14 0 012.68-5.34c3-4.35 7.45-5.5 12.29-3.37 4.06 1.79 6 6 4.53 10.92-1.34 4.45-3.14 8.77-4.88 13.09-5.13 12.81-10.56 25.52-13.76 39-1.15 4.85-2.27 9.75-1.1 14.8 1.39 6 5.38 7.88 10.75 4.82 4.38-2.49 7.2-6.38 9.2-10.88 6.22-14 12.35-28 18.55-42 5.52-12.47 11-25 16.7-37.34 2.65-5.75 6.05-7.5 11.44-6.86a8.54 8.54 0 017.37 10.86 46.3 46.3 0 01-2.3 5.52c-5.61 13-11.39 25.87-16.74 39a127.47 127.47 0 00-5.05 16.67 23.88 23.88 0 00-.62 7.9c.47 5.3 4.68 7.44 9.33 4.84a14 14 0 004.55-3.83c3.83-5.42 7.95-10.74 10.95-16.62C528.44 98.11 534 85.45 540 73c4.76-9.89 9.71-19.69 14.64-29.5 1.44-2.87 3.26-5.42 6.52-6.56 3.94-1.37 7.51-.94 10.71 1.87s3.13 6.19 1.85 9.61q-3.57 9.31-7.55 18.47c-5.61 13-11.38 25.91-15.09 39.61a83.48 83.48 0 00-2.27 11.73 19.68 19.68 0 00.62 6.9c1.26 5 5.33 6.94 9.94 4.65a24.69 24.69 0 005.27-3.73 37.84 37.84 0 009.25-12.91c10.59-23.33 21.46-46.54 29.66-70.86 1.59-4.71 2.49-9.65 3.81-14.45a10.58 10.58 0 0112.8-7.53c3.74.91 5.31 2.81 5.39 6.62.04 1.65.01 3.3.01 5.28zm-244.82 70c-.49-2.72-.75-5.21-1.43-7.59-1-3.56-2.87-4.72-6.34-3.45a20.58 20.58 0 00-7.15 4.32c-16 15.44-26.23 34.18-31.25 55.77a27.1 27.1 0 00-.5 8.89c.5 4.67 3.42 6.38 7.76 4.64a22.89 22.89 0 006.73-4.18 75.46 75.46 0 008.92-9.4 132.64 132.64 0 0021.35-40.94c.86-2.64 1.3-5.44 1.91-8.04zM256 135.75c9.64-.1 24.28-5.22 30.91-10.68a13.91 13.91 0 002.87-2.75 31.13 31.13 0 003.88-6.86c2.22-6.51-2.17-11.41-8.9-10a17 17 0 00-5.5 2.21 37.68 37.68 0 00-6.71 5.12A100.15 100.15 0 00256 135.75zM538 278.87a3.91 3.91 0 00-.57-1c-6.8-6.16-8.76-16.3-2.11-26.35A57.1 57.1 0 01557 232.09a17 17 0 015.67-1.79 10.4 10.4 0 0111.94 10.89 69.48 69.48 0 01-1 7.38 39.16 39.16 0 015.57-2.53c3.82-1 7.75-2.61 11.56-2.43 7.82.36 13 6.74 13.51 15.32a36.92 36.92 0 01-3.25 16.54c-2.6 6.11-5.65 12-8.69 17.95-3.34 6.52-7 12.88-10.28 19.41a37.5 37.5 0 00-3.36 8.81c-1.13 5.18 1.53 8 6.86 7.62a11.44 11.44 0 005.61-1.71 70.92 70.92 0 0010.67-8.91 118.11 118.11 0 0019.67-29.93c5.34-11.28 10.77-22.54 18.06-32.75 8.17-11.43 17.22-22.07 28.87-30.18a48.77 48.77 0 0123-9c13.46-1.42 22 6.34 22.19 19.94.13 10.78-4.45 19.69-11 27.71-8.69 10.64-20.26 17.1-33 21.73a124.56 124.56 0 01-25.7 6c-1 .14-1.94.32-3.25.54a57 57 0 00-1.2 5.83c-.82 8.18 3.29 13 11.54 13.58a36.43 36.43 0 0015.24-2c19.34-7.13 35.82-18.26 48.28-34.9 3-4 5.62-8.26 8.58-12.28a24.67 24.67 0 014.75-5c4.06-3.08 8.68-3 11.91 0 3 2.72 3.9 8 1.7 12-1.69 3.05-3.7 5.93-5.65 8.83-10.82 16.07-23.8 30-40.45 40.17A102.79 102.79 0 01644.27 334c-9.09.31-17.13
1-2.32-22.28-10.64-3.78 4.09-7.3 8.08-11 11.87A58.83 58.83 0 01592.66 348c-6.9 3-14 4.27-21.28 1.14-8.18-3.51-12.48-9.76-12.93-18.54-.42-8 1.81-15.53 5.55-22.52 3.54-6.6 7.53-13 11.17-19.49a421.3 421.3 0 009.07-17.21c1-2 2.18-4.19.71-7.17-1.47.68-3 1.22-4.32 2-6.78 3.88-13.6 7.71-20.24 11.82a12.13 12.13 0 00-3.62 4.47c-6.84 12.18-13.32 24.57-20.41 36.6a124.92 124.92 0 01-25.9 31.53c-8 6.94-16.87 12.43-27.33 15a35.66 35.66 0 01-20.16-.89c-6.25-2.11-11.14-5.94-13.7-12.32-4.95 4.78-9.57 9.51-14.48 13.92-7 6.24-15 10.34-24.48 11.45-7.77.91-13.73-2.44-16.64-9.74s-2.43-14.71-.84-22.13c2.74-12.86 8.39-24.51 15.3-35.58 9.21-14.77 19.57-28.59 33.32-39.53A71.26 71.26 0 01462.18 259c9.42-3.33 18.29-4.15 25.42 5.26 2.09-3.28 3.93-6.19 5.81-9.08a11.52 11.52 0 018.56-5.44c4.95-.6 8.74 2.47 8.44 7.43a21 21 0 01-2.57 8.43c-6.43 11.84-13.2 23.51-19.71 35.31q-7.23 13.09-14.08 26.43a35.56 35.56 0 00-3.13 8.9c-1.6 7.77 3.82 12.92 11.41 10.67a31.43 31.43 0 009.26-4.76A94.91 94.91 0 00517 315.58c6.58-10.6 12.7-21.48 19-32.26.78-1.43 1.36-3.01 2-4.45zm-125 69.22c-.29 8.13 1.86 9.69 6.93 6.6a51.2 51.2 0 009.7-7.72c15.14-15.38 27.59-32.8 38.19-51.53a28.66 28.66 0 003.05-9.4c1-6.35-2.74-9.49-8.51-6.89a43 43 0 00-11.65 7.47 137.09 137.09 0 00-34.89 51 84 84 0 00-2.77 10.47zm237.89-77.78c10.08-1.76 18.76-3.8 26.75-8.06 5.35-2.86 10-6.51 13.11-11.88a12.16 12.16 0 001.72-7.62c-.33-3.07-1.67-4.48-4.82-4.5a12.85 12.85 0 00-5.31.91 39 39 0 00-7.73 4.44c-9.3 7.15-16.14 16.56-23.67 26.71z"}),(0,ht.jsx)("path",{d:"M306.08 347.24a59.68 59.68 0 007.18 28c9.25 17.37 24.11 27.61 42.64 32.95a105.18 105.18 0 0045.53 2.53q39.74-6.11 79.38-12.65c32-5.34 64-10.93 95.95-16.48q41.07-7.11 82.11-14.37 40.82-7.22 81.59-14.55a29.26 29.26 0 013.45-.5c4.88-.25 8.74 2.67 9.43 7 .77 4.89-1.77 9-6.73 10.09-5.19 1.17-10.47 2-15.71 2.9q-51.84 9.33-103.67 18.64-43 7.7-86 15.25c-28.19 5-56.37 10-84.59 14.73-18.87 3.19-37.74 6.57-56.73 8.83-22.42 2.66-44.65 1.21-65.49-8.61-27.13-12.78-42.21-34.66-47-64-.24-1.48-.45-3-.73-4.43-.05-.27-.39-.5-.77-1-.84 1.73-1.66 3.32-2.39 5l-34.36 77a39.32 39.32 0 01-2.41 4.92 9.25 9.25 0 01-16.76-7.55 29.45 29.45 0 011.53-3.68c15.67-33.81 31.12-67.72 47.13-101.36 9.43-19.83 19.69-39.26 29.75-58.79a31.46 31.46 0 016-7.91c3.7-3.62 8-3.9 11.29-1.35s4 6.64 1.71 11.27c-5.17 10.44-10.47 20.8-15.66 31.23q-2.78 5.59-5.2 11.34a20 20 0 00-1.42 5.28c-.69 5.48 1.82 8.36 7.38 7.95a25.29 25.29 0 008.61-2.26c25.43-11.74 45.43-29.35 58.2-54.59a41.55 41.55 0 004-23.81c-1.26-11.34-9.56-18.62-21.3-19.09-12.59-.51-24.56 2.33-36 7.21-28.55 12.24-48.34 32.48-56.09 63.26a97.3 97.3 0 01-2.44 9.65 9 9 0 01-9.66 6.35c-6-.34-9.91-4-9.43-10a58.49 58.49 0 013.3-16c11.18-29.26 30.13-51.88 58.13-66.54 11.58-6.06 23.59-10.94 36.66-12.43 11.64-1.33 23.28-1.53 34.38 3.37 12.91 5.7 19.86 15.76 21.52 29.57a62 62 0 01-6 35.48c-14.94 29.91-37.22 52.5-68.28 65.79a96.51 96.51 0 01-10.82 3.83c-3.48 1.01-7.09 1.62-11.21 2.53zM174.83 45.67c2.3-2.82 3.84-4.75 5.43-6.64 6.33-7.54 13.82-13.48 23.31-16.54a34.69 34.69 0 0119.68-.49c10.6 2.71 16.76 9.64 19.2 20.12 1.92 8.22.64 16.22-1.66 24.14-2.66 9.18-7.16 17.51-11.95 25.73a338.92 338.92 0 00-23.05 46.44c-5.14 13.05-8.65 26.54-8.87 40.74-.43 27 14.85 42.62 37.81 49 2.08.58 4.24.86 6.34 1.36 5.09 1.19 7.74 4.87 7.13 9.82s-4.42 9.05-9.17 8.82a58.87 58.87 0 01-11.76-2c-13.17-3.41-24.83-9.53-34.1-19.71-9.93-10.91-14.64-24-15.8-38.52-1.63-20.37 2.72-39.73 10.29-58.44a403.23 403.23 0 0128.49-57.67c3.47-5.73 6.24-11.78 6.24-18.7 0-7.83-4.14-11.55-11.82-9.83a32.54 32.54 0 00-10.31 4.7c-6.63 4.34-11.63 10.42-16.39 16.67-10 13.2-17.6 27.84-24.69 42.73A1147.47 1147.47 0 00114 217.67a27.27 27.27 0 01-3.13 6.19c-3.65 5.36-10.26 5.19-14.39 3.77-3.83-1.32-4.93-4.72-5.2-8.37-.48-6.47 1.16-12.54 3.73-18.41q9.39-21.48 18.82-43c12.38-28.35 25.59-56.35 36-85.51a116.81 116.81 0 005-18.74c1.82-10.26-3.63-14.73-13.38-11.08a36.28 36.28 0 00-9.77 5.88 165.07 165.07 0 00-42.16 51.49c-11.41 21.61-21.85 43.75-32.11 65.93-9.76 21.13-18.84 42.58-28 64-2.18 5.1-5.54 8.17-10.92 9.06-6.42 1.05-11.29-3.5-10.44-9.88a24.34 24.34 0 011.78-6.21c12.61-29.88 25.49-59.65 37.85-89.64C55.15 115 61.9 96.57 68.83 78.22a106.31 106.31 0 003.06-11.06 17.4 17.4 0 00.49-3.44c.34-8.12-4-11.86-11.89-10-16.79 4-28.05 14.59-35.12 30-5.86 12.74-7.27 26.32-6.2 40.05.52 6.63-4.6 12.48-13 10.34-3.16-.81-5.38-3-5.63
1-6.29-1.52-19.89.07-39.32 10-57.18 11-19.89 28.1-31.6 50.18-36.09a30.61 30.61 0 0117.72 1.21c9.25 3.72 14.2 10.63 15 20.52.11 1.31 0 2.64 0 4.89 3.1-3.87 5.54-7.15 8.21-10.23 8.32-9.57 16.8-19 28.25-25 7.83-4.13 16-6.35 25-5 9.73 1.46 19.31 8.65 19.7 21.66-.06.62.04 1.26.23 3.07zM444.24 220.19c-4.89-.07-8.24-2.86-8.8-7a8.28 8.28 0 016.74-9.6c6-1.28 12.11-2.22 18.18-3.29q53.33-9.44 106.67-18.84 55.07-9.72 110.13-19.46c19.17-3.4 38.32-6.92 57.48-10.37a23.76 23.76 0 013.46-.46c4.9-.16 8.6 2.78 9.24 7.26a8.37 8.37 0 01-6.5 9.79c-4.52 1.11-9.14 1.84-13.72 2.66L623.9 189.26c-29.33 5.22-58.64 10.54-88 15.63C506.23 210 476.52 215 446.82 220c-.99.13-1.99.14-2.58.19zM483.24 26c-.07 7.26-4.14 12.81-9.86 14.42a9.38 9.38 0 01-11.93-6.76 14.72 14.72 0 015.18-15.09c3.43-2.57 7.18-3.4 11.17-1.46s5.2 5.66 5.44 8.89z"})]})}),(0,ht.jsx)("p",{className:"mt-6 sm:mt-12 font-druk-wide text-yellow text-sm sm:text-base uppercase text-center leading-tight",children:"Medium Rare is excited to work with the Golden State Warriors to help bring this historic NFT Collection to life"}),(0,ht.jsx)("p",{className:"mt-4 sm:mt-6 text-center text-white text-sm leading-relaxed font-light px-4 sm:px-0",children:"Focused at the intersection of Sports & Entertainment, Medium Rare partners with athletes, celebrities, and brands to build iconic media properties. Medium Rare is the creator and producer of Webby Award-winning brands including Shaq's Fun House, Daymond John\u2019s Black Entrepreneurs Day, Guy Fieri's Restaurant Reboot, The Sports Illustrated Awards, Rob Gronkowski\u2019s Gronk Beach, SHAQ vs GRONK, The Shaq Bowl, and more. Medium Rare was founded by Joe Silberzweig and Adam Richman, who were recently honored with 4X Webby Awards, Variety Hollywood\u2019s New Leaders, Forbes 30 Under 30, and Pollstar's Next Gen Impact. Learn more at www.Medium-Rare.com"}),(0,ht.jsx)("a",{href:"https://medium-rare.com/",target:"_blank",rel:"noreferrer",className:"mt-12 font-druk-wide text-yellow uppercase text-center text-xs leading-tight",children:"Learn more at www.Medium-Rare.com"}),(0,ht.jsxs)("p",{className:"mt-6 text-center text-white text-sm leading-relaxed font-light",children:["Still have questions? E-Mail us at"," ",(0,ht.jsx)("a",{href:"mailto:[email protected]",className:"underline text-light-blue hover:text-yellow transition-colors",children:"[email protected]"})," ","and we will do our best to get back to you ASAP!"]})]}),(0,ht.jsxs)("div",{className:"mt-14 sm:mt-28 flex flex-col items-center",children:[(0,ht.jsx)("p",{className:"mt-6 sm:mt-12 font-druk-wide text-white text-2xl uppercase text-center leading-tight",children:"Seriously Fun"}),(0,ht.jsx)("p",{className:"mt-4 sm:mt-6 text-center text-white text-sm leading-relaxed font-light px-4 sm:px-0",children:"SeriouslyFun is a design studio based in [the internet]. We specialize in web3, bringing transformative creative direction to our client partners, working together to push the limits of what's possible in these exciting emergent spaces. SeriouslyFun provides end-to-end identity, event, web, product, animation & motion design, as well as 3D character design for NFTs & digital product experiences. We also do birthdays. Sometimes a little bit serious, always seriously fun."})]}),(0,ht.jsx)("div",{className:"mt-12 text-white flex flex-col items-center",children:(0,ht.jsxs)("div",{className:"text-white text-xs pt-10",children:[(0,ht.jsx)("a",{href:"/terms",target:"_blank",className:"hover:underline",children:"Terms & Conditions"}),(0,ht.jsx)("span",{children:" | "}),(0,ht.jsx)("a",{href:"/privacy",target:"_blank",className:"hover:underline",children:"Privacy Notice"})]})})]})}r(4051);var vt=r(5675),mt=r.n(vt),yt=r(3454);function gt(t){var e=t.children;return"true"===yt.env.NEXT_PUBLIC_SHOW_SPLASH?(0,ht.jsx)("div",{className:"w-screen h-screen flex flex-col items-center justify-center",children:(0,ht.jsx)(mt(),{priority:!0,src:"/images/WarriorsSeal.png",alt:"Golden State Warriors Seal",width:200,height:200})}):(0,ht.jsx)(ht.Fragment,{children:e})}var bt=r(1664),Et=r.n(bt),Tt=r(6261);function wt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function St(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}
1)))),n.forEach((function(e){wt(t,e,r[e])}))}return t}function Ot(t){var e=t.href,r=t.children,n=t.scroll,i=t.external;return n?(0,ht.jsx)(Tt.rU,{to:e,smooth:!0,offset:-50,className:"w-full",children:(0,ht.jsx)("span",{className:"leading-tight w-full h-full cursor-pointer transition-colors font-druk flex justify-center items-center bg-yellow hover:bg-light-blue text-blue hover:text-yellow px-3 sm:px-2 pt-2 pb-1.5 text-lg rounded-md",children:r})}):i?(0,ht.jsx)("a",{href:e,target:"_blank",className:"leading-tight w-full transition-colors font-druk flex justify-center items-center bg-yellow hover:bg-light-blue text-blue hover:text-yellow px-3 sm:px-2 pt-2 pb-1.5 text-lg rounded-md",children:r}):(0,ht.jsx)(Et(),{href:e,children:(0,ht.jsx)("a",{className:"leading-tight w-full transition-colors font-druk flex justify-center items-center bg-yellow hover:bg-light-blue text-blue hover:text-yellow px-3 sm:px-2 pt-2 pb-1.5 text-lg rounded-md",children:r})})}function kt(t){var e=t.className,r=(0,a.useRouter)();return(0,ht.jsxs)("div",{className:"flex flex-col lg:flex-row items-center w-full justify-center tracking-tight ".concat(e),children:[(0,ht.jsxs)("div",{className:"w-full lg:w-auto lg:mt-16 flex-1 grid grid-cols-2 gap-3 sm:gap-0 auto-rows-fr sm:flex justify-center sm:space-x-6 text-yellow font-druk font-medium uppercase text-[0.6rem] text-center sm:text-xs",children:[(0,ht.jsx)(Ot,St({},"/"===r.pathname?{scroll:!0,href:"1-of-1-auction"}:{href:"/#1-of-1-auction"},{children:"View Collection"})),(0,ht.jsx)(Ot,St({},"/"===r.pathname?{scroll:!0,href:"roadmap"}:{href:"/#roadmap"},{children:"Roadmap"}))]}),(0,ht.jsx)("div",{className:"order-first lg:order-none lg:w-max lg:flex-shrink-0",children:(0,ht.jsx)(Et(),{href:"/",children:(0,ht.jsx)("a",{className:"relative block h-32 sm:h-48 w-32 sm:w-48 mx-4 ",children:(0,ht.jsx)(mt(),{priority:!0,src:"/images/WarriorsSeal.png",alt:"Golden State Warriors Seal",layout:"fill",className:"object-fill w-full h-full"})})})}),(0,ht.jsxs)("div",{className:"w-full lg:w-auto mt-4 lg:mt-16 flex-1 grid grid-cols-2 gap-3 sm:gap-0 auto-rows-fr sm:flex justify-center sm:space-x-6 text-yellow font-druk font-medium uppercase text-[0.6rem] text-center sm:text-xs",children:[(0,ht.jsx)(Ot,{href:"/faq",children:"FAQ"}),(0,ht.jsx)(Ot,{external:!0,href:"https://discord.gg/gswnft",children:"Discord"})]})]})}kt.defaultProps={className:""};var At={src:"/_next/static/media/Jersey_Texture_Yellow-square.654cdce3.png",height:1452,width:1452,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAACVBMVEXzwRvwtxfqqRE0dkkdAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAJUlEQVQImWNgZGBgAGEIASMZGRlBJBOYZmBiYmICS8BoBiiFAAAFNwAjNxVIIAAAAABJRU5ErkJggg=="};function Pt(t){var e=t.name,r=t.rareIcon,n=t.video,a=t.className,o=(0,i.useState)(!1),s=o[0],u=o[1];return(0,i.useEffect)((function(){return s?window.addEventListener("click",(function(){u(!1)})):window.removeEventListener("click",(function(){u(!1)})),function(){window.removeEventListener("click",(function(){u(!1)}))}}),[s]),(0,ht.jsxs)("div",{className:"w-full flex flex-col items-start ".concat(a),children:[(0,ht.jsxs)("div",{className:"relative w-2/3 aspect-1 mx-auto",children:[(0,ht.jsx)("div",{className:"absolute inset-0 z-10 aspect-1",children:(0,ht.jsx)(mt(),{src:At,priority:!0})}),(0,ht.jsx)("div",{className:"absolute inset-0 flex items-center justify-center p-2 z-20",children:n?(0,ht.jsx)(Wt,{src:n}):(0,ht.jsx)("div",{className:"bg-black w-full h-full aspect-1"})})]}),(0,ht.jsxs)("div",{className:"flex-grow w-full bg-gradient-to-r from-blue to-light-blue px-8 py-12 pt-20 relative -mt-12",children:[r?(0,ht.jsx)("div",{className:"absolute top-0 left-0 w-8 h-8 ml-4 mt-4",children:(0,ht.jsx)(mt(),{priority:!0,src:"/images/collection2/Group 108.svg",alt:"Golden State Warriors Seal",layout:"fill",className:"object-fill w-full "})}):null,(0,ht.jsxs)("div",{className:"space-y-6 pt-6 divide-y-4 divide-light-blue",children:[(0,ht.jsxs)("div",{className:"space-y-4 text-left",children:[(0,ht.jsx)("h2",{className:"text-yellow font-druk flex-shrink-0 uppercase text-3xl md:text-4xl ",children:e}),["description","rarity"].map((function(e,r){return(0,ht.jsxs)("p",{className:"text-white text-base font-nikki leading-5",children:["+ ",(0,ht.jsx)("span",{className:"capitalize",children:e}),":"," ",t[e]+(0!==r||[".","!","?"].includes(t[e][t[e].length-1])?"":".")]},r)}))]}),(0,ht.jsx)("div",{className:"space-y-4 font-nikki pt-6",children:[{key:"initial",label:"Initial Mint"}
1,{key:"round1",label:"Round 1 Playoff Victory"},{key:"round2",label:"Round 2 Playoff Victory"},{key:"conferenceFinals",label:"WARRIORS CONFERENCE FINALS VICTORY (ROUND 3) "},{key:"nbaFinals",label:"NFT WARRIORS NBA FINALS CHAMPIONSHIP VICTORY (ROUND 4)"}].map((function(e,r){return(0,ht.jsxs)("div",{className:"text-base text-left",children:[(0,ht.jsx)("p",{className:"uppercase text-yellow m-0",children:e.label}),(0,ht.jsx)("p",{className:"text-white text-base m-0",children:t[e.key]+([".","!","?"].includes(t[e.key][t[e.key].length-1])?"":".")})]},r)}))})]})]})]})}Pt.defaultProps={hrefs:void 0,image:void 0,video:void 0,description:void 0,attributes:void 0,qualifier:void 0,className:""};var xt=i.memo(Pt);function Lt(t){var e=t.children,r=t.style,n=t.className,i=t.padding,a=t.maxWidth;return(0,ht.jsx)("div",{className:"relative w-full px-4 max-w-screen ".concat(i?"py-4 md:py-8":""," ").concat(n),style:r,children:(0,ht.jsx)("div",{className:"".concat(a?"max-w-6xl":""," mx-auto flex flex-col items-center"),children:e})})}function _t(){return null}function Dt(){return Dt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Dt.apply(this,arguments)}function Ct(t,e){return Ct=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Ct(t,e)}Lt.defaultProps={style:{},className:"",padding:!0,maxWidth:!0};var Rt=new Map,It=new WeakMap,Mt=0,Nt=void 0;function jt(t){return Object.keys(t).sort().filter((function(e){return void 0!==t[e]})).map((function(e){return e+"_"+("root"===e?(r=t.root)?(It.has(r)||(Mt+=1,It.set(r,Mt.toString())),It.get(r)):"0":t[e]);var r})).toString()}function Ft(t,e,r,n){if(void 0===r&&(r={}),void 0===n&&(n=Nt),"undefined"===typeof window.IntersectionObserver&&void 0!==n){var i=t.getBoundingClientRect();return e(n,{isIntersecting:n,target:t,intersectionRatio:"number"===typeof r.threshold?r.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),function(){}}var a=function(t){var e=jt(t),r=Rt.get(e);if(!r){var n,i=new Map,a=new IntersectionObserver((function(e){e.forEach((function(e){var r,a=e.isIntersecting&&n.some((function(t){return e.intersectionRatio>=t}));t.trackVisibility&&"undefined"===typeof e.isVisible&&(e.isVisible=a),null==(r=i.get(e.target))||r.forEach((function(t){t(a,e)}))}))}),t);n=a.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),r={id:e,observer:a,elements:i},Rt.set(e,r)}return r}(r),o=a.id,s=a.observer,u=a.elements,l=u.get(t)||[];return u.has(t)||u.set(t,l),l.push(e),s.observe(t),function(){l.splice(l.indexOf(e),1),0===l.length&&(u.delete(t),s.unobserve(t)),0===u.size&&(s.disconnect(),Rt.delete(o))}}var Ut=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function Bt(t){return"function"!==typeof t.children}var Vt=function(t){var e,r;function n(e){var r;return(r=t.call(this,e)||this).node=null,r._unobserveCb=null,r.handleNode=function(t){r.node&&(r.unobserve(),t||r.props.triggerOnce||r.props.skip||r.setState({inView:!!r.props.initialInView,entry:void 0})),r.node=t||null,r.observeNode()},r.handleChange=function(t,e){t&&r.props.triggerOnce&&r.unobserve(),Bt(r.props)||r.setState({inView:t,entry:e}),r.props.onChange&&r.props.onChange(t,e)},r.state={inView:!!e.initialInView,entry:void 0},r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,Ct(e,r);var a=n.prototype;return a.componentDidUpdate=function(t){t.rootMargin===this.props.rootMargin&&t.root===this.props.root&&t.threshold===this.props.threshold&&t.skip===this.props.skip&&t.trackVisibility===this.props.trackVisibility&&t.delay===this.props.delay||(this.unobserve(),this.observeNode())},a.componentWillUnmount=function(){this.unobserve(),this.node=null},a.observeNode=function(){if(this.node&&!this.props.skip){var t=this.props,e=t.threshold,r=t.root,n=t.rootMargin,i=t.trackVisibility,a=t.delay,o=t.fallbackInView;this._unobserveCb=Ft(this.node,this.handleChange,{threshold:e,root:r,rootMargin:n,trackVisibility:i,delay:a},o)}},a.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},a.render=function(){if(!Bt(this.props)){var t=this.state,e=t.inView,r=t.entry;return this.props.children({inView:e,entry:r,ref:this.handleNode})}var n=this.props,a=n.children,o=n.as,s=function(t,e){if(null==t)return{};var r,n,i={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(n,Ut);return i.createElement(o||"div",Dt({ref:this.handleNode},s),a)},n}(i.Component);Vt.displayName="InView",Vt.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1};var Gt=r(9359),Ht=r(7631),zt=r.n(Ht);function Kt(t){var e=t.src,r=(0,i.useRef)(),n="https://stream.mux.com/".concat(e,".m3u8?redundant_streams=true"),a=function(t){var e=void 0===t?{}:t,r=e.threshold,n=e.delay,a=e.trackVisibility,o=e.rootMargin,s=e.root,u=e.triggerOnce,l=e.skip,c=e.initialInView,f=e.fallbackInView,d=i.useRef(),h=i.useState({inView:!!c}),p=h[0],v=h[1],m=i.useCallback((function(t){void 0!==d.current&&(d.current(),d.current=void 0),l||t&&(d.current=Ft(t,(function(t,e){v({inView:t,entry:e}),e.isIntersecting&&u&&d.current&&(d.current(),d.current=void 0)}),{root:s,rootMargin:o,threshold:r,trackVisibility:a,delay:n},f))}),[Array.isArray(r)?r.toString():r,s,o,u,l,a,f,n]);(0,i.useEffect)((function(){d.current||!p.entry||u||l||v({inView:!!c})}));var y=[m,p.inView,p.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}(),o=a.ref,s=a.inView;return(0,i.useEffect)((function(){var t;if(r.current){var e=r.current;e.canPlayType("application/vnd.apple.mpegurl")?e.src=n:zt().isSupported()?((t=new(zt())).loadSource(n),t.attachMedia(e)):console.error("This is a legacy browser that doesn't support MSE"),r.current.play()}return function(){t&&t.destroy()}}),[r]),(0,i.useEffect)((function(){var t;s&&Gt.tq&&(null===(t=r.current)||void 0===t||t.play())}),[s]),(0,ht.jsxs)("div",{ref:o,className:"relative w-full aspect-w-1 aspect-h-1",children:[(0,ht.jsx)("img",{src:"https://image.mux.com/".concat(e,"/thumbnail.jpg?time=1")}
1),(0,ht.jsx)("video",{ref:r,muted:!0,loop:!0,playsInline:!0,className:"w-full absolute inset-0"})]})}var Wt=i.memo(Kt);r(2004);var qt=function(t,e){return qt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},qt(t,e)};function Yt(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}qt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var Xt=function(){return Xt=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Xt.apply(this,arguments)};function Zt(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}Object.create;function $t(t,e){var r="function"===typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,a=r.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o}function Jt(t,e,r){if(r||2===arguments.length)for(var n,i=0,a=e.length;i<a;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}Object.create;var Qt=function(t){return{isEnabled:function(e){return t.some((function(t){return!!e[t]}))}}},te={measureLayout:Qt(["layout","layoutId","drag","_layoutResetTransform"]),animation:Qt(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:Qt(["exit"]),drag:Qt(["drag","dragControls"]),focus:Qt(["whileFocus"]),hover:Qt(["whileHover","onHoverStart","onHoverEnd"]),tap:Qt(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Qt(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:Qt(["layout","layoutId"])};(0,i.createContext)({strict:!1});var ee=Object.keys(te);ee.length;var re=(0,i.createContext)({transformPagePoint:function(t){return t},isStatic:!1}),ne=(0,i.createContext)({});var ie=(0,i.createContext)(null);function ae(t){var e=(0,i.useRef)(null);return null===e.current&&(e.current=t()),e.current}function oe(){var t=(0,i.useContext)(ie);if(null===t)return[!0,null];var e=t.isPresent,r=t.onExitComplete,n=t.register,a=le();(0,i.useEffect)((function(){return n(a)}),[]);return!e&&r?[!1,function(){return null===r||void 0===r?void 0:r(a)}]:[!0]}var se=0,ue=function(){return se++},le=function(){return ae(ue)},ce=((0,i.createContext)(null),"undefined"!==typeof window);ce?i.useLayoutEffect:i.useEffect;function fe(t){return"object"===typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function de(t){return Array.isArray(t)}function he(t){return"string"===typeof t||de(t)}function pe(t,e,r,n,i){var a;return void 0===n&&(n={}),void 0===i&&(i={}),"string"===typeof e&&(e=null===(a=t.variants)||void 0===a?void 0:a[e]),"function"===typeof e?e(null!==r&&void 0!==r?r:t.custom,n,i):e}function ve(t,e,r){var n=t.getProps();return pe(n,e,null!==r&&void 0!==r?r:n.custom,function(t){var e={};return t.forEachValue((function(t,r){return e[r]=t.get()})),e}(t),function(t){var e={};return t.forEachValue((function(t,r){return e[r]=t.getVelocity()})),e}(t))}function me(t){var e;return"function"===typeof(null===(e=t.animate)||void 0===e?void 0:e.start)||he(t.initial)||he(t.animate)||he(t.whileHover)||he(t.whileDrag)||he(t.whileTap)||he(t.whileFocus)||he(t.exit)}function ye(t){return Boolean(me(t)||t.variants)}var ge={};var be=["","X","Y","Z"],Ee=["transformPerspective","x","y","z"];function Te(t,e){return Ee.indexOf(t)-Ee.indexOf(e)}["translate","scale","rotate","skew"].forEach((function(t){return be.forEach((function(e){return Ee.push(t+e)}))}));var we=new Set(Ee);function Se(t){return we.has(t)}var Oe=new Set(["originX","originY","originZ"]);function ke(t){return Oe.has(t)}function Ae(t,e){var r=e.layout,n=e.layoutId;return Se(t)||ke(t)||(r||void 0!==n)&&(!!ge[t]||"opacity"===t)}var Pe=function(t){return null!==t&&"object"===typeof t&&t.getVelocity},xe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Le(t){return t.startsWith("--")}var _e=function(t,e){return e&&"number"===typeof t?e.transform(t):t},De=function(t,e){return function(r){return Math.max(Math.min(r,e),t)}},Ce=function(t){return t%1?Number(t.toFixed(5)):t}
vendor: 70,316 bytes, line 1
1,Re=/(-)?([\d]*\.?[\d])+/g,Ie=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Me=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Ne(t){return"string"===typeof t}var je=function(t){return{test:function(e){return Ne(e)&&e.endsWith(t)&&1===e.split(" ").length},parse:parseFloat,transform:function(e){return""+e+t}}},Fe=je("deg"),Ue=je("%"),Be=je("px"),Ve=je("vh"),Ge=je("vw"),He=Xt(Xt({},Ue),{parse:function(t){return Ue.parse(t)/100},transform:function(t){return Ue.transform(100*t)}}),ze={test:function(t){return"number"===typeof t},parse:parseFloat,transform:function(t){return t}},Ke=Xt(Xt({},ze),{transform:De(0,1)}),We=Xt(Xt({},ze),{default:1}),qe=Xt(Xt({},ze),{transform:Math.round}),Ye={borderWidth:Be,borderTopWidth:Be,borderRightWidth:Be,borderBottomWidth:Be,borderLeftWidth:Be,borderRadius:Be,radius:Be,borderTopLeftRadius:Be,borderTopRightRadius:Be,borderBottomRightRadius:Be,borderBottomLeftRadius:Be,width:Be,maxWidth:Be,height:Be,maxHeight:Be,size:Be,top:Be,right:Be,bottom:Be,left:Be,padding:Be,paddingTop:Be,paddingRight:Be,paddingBottom:Be,paddingLeft:Be,margin:Be,marginTop:Be,marginRight:Be,marginBottom:Be,marginLeft:Be,rotate:Fe,rotateX:Fe,rotateY:Fe,rotateZ:Fe,scale:We,scaleX:We,scaleY:We,scaleZ:We,skew:Fe,skewX:Fe,skewY:Fe,distance:Be,translateX:Be,translateY:Be,translateZ:Be,x:Be,y:Be,z:Be,perspective:Be,transformPerspective:Be,opacity:Ke,originX:He,originY:He,originZ:Be,zIndex:qe,fillOpacity:Ke,strokeOpacity:Ke,numOctaves:qe};function Xe(t,e,r,n,i,a,o,s){var u,l=t.style,c=t.vars,f=t.transform,d=t.transformKeys,h=t.transformOrigin;d.length=0;var p=!1,v=!1,m=!0;for(var y in e){var g=e[y];if(Le(y))c[y]=g;else{var b=Ye[y],E=_e(g,b);if(Se(y)){if(p=!0,f[y]=E,d.push(y),!m)continue;g!==(null!==(u=b.default)&&void 0!==u?u:0)&&(m=!1)}else if(ke(y))h[y]=E,v=!0;else if((null===r||void 0===r?void 0:r.isHydrated)&&(null===n||void 0===n?void 0:n.isHydrated)&&ge[y]){var T=ge[y].process(g,n,r),w=ge[y].applyTo;if(w)for(var S=w.length,O=0;O<S;O++)l[w[O]]=T;else l[y]=T}else l[y]=E}}n&&r&&o&&s?(l.transform=o(n.deltaFinal,n.treeScale,p?f:void 0),a&&(l.transform=a(f,l.transform)),l.transformOrigin=s(n)):(p&&(l.transform=function(t,e,r,n){var i=t.transform,a=t.transformKeys,o=e.enableHardwareAcceleration,s=void 0===o||o,u=e.allowTransformNone,l=void 0===u||u,c="";a.sort(Te);for(var f=!1,d=a.length,h=0;h<d;h++){var p=a[h];c+=(xe[p]||p)+"("+i[p]+") ","z"===p&&(f=!0)}return!f&&s?c+="translateZ(0)":c=c.trim(),n?c=n(i,r?"":c):l&&r&&(c="none"),c}(t,i,m,a)),v&&(l.transformOrigin=function(t){var e=t.originX,r=void 0===e?"50%":e,n=t.originY,i=void 0===n?"50%":n,a=t.originZ;return r+" "+i+" "+(void 0===a?0:a)}(h)))}var Ze=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};var $e=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","_layoutResetTransform","onLayoutAnimationComplete","onViewportBoxUpdate","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover"]);function Je(t){return $e.has(t)}try{var Qe=r(4465).Z;(function(t){return t.startsWith("on")?!Je(t):Qe(t)})}catch(Os){}function tr(t,e,r){return"string"===typeof t?t:Be.transform(e+r*t)}var er=function(t,e){return Be.transform(t*e)},rr={offset:"stroke-dashoffset",array:"stroke-dasharray"},nr={offset:"strokeDashoffset",array:"strokeDasharray"};function ir(t,e,r,n,i,a,o,s){var u=e.attrX,l=e.attrY,c=e.originX,f=e.originY,d=e.pathLength,h=e.pathSpacing,p=void 0===h?1:h,v=e.pathOffset,m=void 0===v?0:v;Xe(t,Zt(e,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),r,n,i,a,o,s),t.attrs=t.style,t.style={};var y=t.attrs,g=t.style,b=t.dimensions,E=t.totalPathLength;y.transform&&(b&&(g.transform=y.transform),delete y.transform),b&&(void 0!==c||void 0!==f||g.transform)&&(g.transformOrigin=function(t,e,r){return tr(e,t.x,t.width)+" "+tr(r,t.y,t.height)}(b,void 0!==c?c:.5,void 0!==f?f:.5)),void 0!==u&&(y.x=u),void 0!==l&&(y.y=l),void 0!==E&&void 0!==d&&function(t,e,r,n,i,a){void 0===n&&(n=1),void 0===i&&(i=0),void 0===a&&(a=!0);var o=a?rr:nr;t[o.offset]=er(-i,e);var s=er(r,e),u=er(n,e);t[o.array]=s+" "+u}(y,E,d,p,m,!1)}var ar=function(){return Xt(Xt({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};var or=/([a-z])([A-Z])/g,sr=function(t){return t.replace(or,"$1-$2").toLowerCase()};function ur(t,e){var r=e.style,n=e.vars;for(var i in Object.assign(t.style,r),n)t.style.setProperty(i,n[i])}var lr=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform"]);function cr(t,e){for(var r in ur(t,e),e.attrs)t.setAttribute(lr.has(r)?r:sr(r),e.attrs[r])}function fr(t){var e=t.style,r={};for(var n in e)(Pe(e[n])||Ae(n,t))&&(r[n]=e[n]);return r}function dr(t){var e=fr(t);for(var r in t){if(Pe(t[r]))e["x"===r||"y"===r?"attr"+r.toUpperCase():r]=t[r]}return e}function hr(t){return"object"===typeof t&&"function"===typeof t.start}var pr=function(t){return Array.isArray(t)};function vr(t){var e,r=Pe(t)?t.get():t;return e=r,Boolean(e&&"object"===typeof e&&e.mix&&e.toValue)?r.toValue():r}function mr(t,e,r,n){var i=t.scrapeMotionValuesFromProps,a=t.createRenderState,o=t.onMount,s={latestValues:gr(e,r,n,i),renderState:a()};return o&&(s.mount=function(t){return o(e,t,s)}),s}var yr=function(t){return function(e,r){var n=(0,i.useContext)(ne),a=(0,i.useContext)(ie);return r?mr(t,e,n,a):ae((function(){return mr(t,e,n,a)}))}};function gr(t,e,r,n){var i={},a=!1===(null===r||void 0===r?void 0:r.initial),o=n(t);for(var s in o)i[s]=vr(o[s]);var u=t.initial,l=t.animate,c=me(t),f=ye(t);e&&f&&!c&&!1!==t.inherit&&(null!==u&&void 0!==u||(u=e.initial),null!==l&&void 0!==l||(l=e.animate));var d=a||!1===u?l:u;d&&"boolean"!==typeof d&&!hr(d)&&(Array.isArray(d)?d:[d]).forEach((function(e){var r=pe(t,e);if(r){var n=r.transitionEnd;r.transition;var a=Zt(r,["transitionEnd","transition"]);for(var o in a)i[o]=a[o];for(var o in n)i[o]=n[o]}}));return i}yr({scrapeMotionValuesFromProps:dr,createRenderState:ar,onMount:function(t,e,r){var n=r.renderState,i=r.latestValues;try{n.dimensions="function"===typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(a){n.dimensions={x:0,y:0,width:0,height:0}}"path"===e.tagName&&(n.totalPathLength=e.getTotalLength()),ir(n,i,void 0,void 0,{enableHardwareAcceleration:!1},t.transformTemplate),cr(e,n)}});var br;yr({scrapeMotionValuesFromProps:fr,createRenderState:Ze});function Er(t,e,r,n){return t.addEventListener(e,r,n),function(){return t.removeEventListener(e,r,n)}}function Tr(t,e,r,n){(0,i.useEffect)((function(){var i=t.current;if(r&&i)return Er(i,e,r,n)}),[t,e,r,n])}function wr(t){return"undefined"!==typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function Sr(t){return!!t.touches}!function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.Exit="exit"}(br||(br={}));var Or={pageX:0,pageY:0};function kr(t,e){void 0===e&&(e="page");var r=t.touches[0]||t.changedTouches[0]||Or;return{x:r[e+"X"],y:r[e+"Y"]}}function Ar(t,e){return void 0===e&&(e="page"),{x:t[e+"X"],y:t[e+"Y"]}}function Pr(t,e){return void 0===e&&(e="page"),{point:Sr(t)?kr(t,e):Ar(t,e)}}var xr=function(t,e){void 0===e&&(e=!1);var r,n=function(e){return t(e,Pr(e))};return e?(r=n,function(t){var e=t instanceof MouseEvent;(!e||e&&0===t.button)&&r(t)}):n},Lr={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},_r={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Dr(t){return ce&&null===window.onpointerdown?t:ce&&null===window.ontouchstart?_r[t]:ce&&null===window.onmousedown?Lr[t]:t}function Cr(t,e,r,n){return Er(t,Dr(e),xr(r,"pointerdown"===e),n)}function Rr(t,e,r,n){return Tr(t,Dr(e),r&&xr(r,"pointerdown"===e),n)}function Ir(t){var e=null;return function(){return null===e&&(e=t,function(){e=null})}}var Mr=Ir("dragHorizontal"),Nr=Ir("dragVertical");function jr(t){var e=!1;if("y"===t)e=Nr();else if("x"===t)e=Mr();else{var r=Mr(),n=Nr();r&&n?e=function(){r(),n()}:(r&&r(),n&&n())}return e}function Fr(){var t=jr(!0);return!t||(t(),!1)}function Ur(t,e,r){return function(n,i){var a;wr(n)&&!Fr()&&(null===r||void 0===r||r(n,i),null===(a=t.animationState)||void 0===a||a.setActive(br.Hover,e))}}var Br=function(t,e){return!!e&&(t===e||Br(t,e.parentElement))};function Vr(t){return(0,i.useEffect)((function(){return function(){return t()}}),[])}var Gr=function(t,e){return function(r){return e(t(r))}},Hr=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(Gr)};var zr=function(t){return function(e){return t(e),null}},Kr={tap:zr((function(t){var e=t.onTap,r=t.onTapStart,n=t.onTapCancel,a=t.whileTap,o=t.visualElement,s=e||r||n||a,u=(0,i.useRef)(!1),l=(0,i.useRef)(null);function c(){var t;null===(t=l.current)||void 0===t||t.call(l),l.current=null}function f(){var t;return c(),u.current=!1,null===(t=o.animationState)||void 0===t||t.setActive(br.Tap,!1),!Fr()}function d(t,r){f()&&(Br(o.getInstance(),t.target)?null===e||void 0===e||e(t,r):null===n||void 0===n||n(t,r))}function h(t,e){f()&&(null===n||void 0===n||n(t,e))}Rr(o,"pointerdown",s?function(t,e){var n;c(),u.current||(u.current=!0,l.current=Hr(Cr(window,"pointerup",d),Cr(window,"pointercancel",h)),null===r||void 0===r||r(t,e),null===(n=o.animationState)||void 0===n||n.setActive(br.Tap,!0))}:void 0),Vr(c)})),focus:zr((function(t){var e=t.whileFocus,r=t.visualElement;Tr(r,"focus",e?function(){var t;null===(t=r.animationState)||void 0===t||t.setActive(br.Focus,!0)}:void 0),Tr(r,"blur",e?function(){var t;null===(t=r.animationState)||void 0===t||t.setActive(br.Focus,!1)}:void 0)})),hover:zr((function(t){var e=t.onHoverStart,r=t.onHoverEnd,n=t.whileHover,i=t.visualElement;Rr(i,"pointerenter",e||n?Ur(i,!0,e):void 0),Rr(i,"pointerleave",r||n?Ur(i,!1,r):void 0)}))};function Wr(t,e){if(!Array.isArray(e))return!1;var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}var qr=function(t,e,r){return Math.min(Math.max(r,t),e)},Yr=.001;function Xr(t){var e,r,n=t.duration,i=void 0===n?800:n,a=t.bounce,o=void 0===a?.25:a,s=t.velocity,u=void 0===s?0:s,l=t.mass,c=void 0===l?1:l,f=1-o;f=qr(.05,1,f),i=qr(.01,10,i/1e3),f<1?(e=function(t){var e=t*f,r=e*i,n=e-u,a=Zr(t,f),o=Math.exp(-r);return Yr-n/a*o},r=function(t){var r=t*f*i,n=r*u+u,a=Math.pow(f,2)*Math.pow(t,2)*i,o=Math.exp(-r),s=Zr(Math.pow(t,2),f);return(-e(t)+Yr>0?-1:1)*((n-a)*o)/s}):(e=function(t){return Math.exp(-t*i)*((t-u)*i+1)-.001},r=function(t){return Math.exp(-t*i)*(i*i*(u-t))});var d=function(t,e,r){for(var n=r,i=1;i<12;i++)n-=t(n)/e(n);return n}(e,r,5/i);if(i*=1e3,isNaN(d))return{stiffness:100,damping:10,duration:i};var h=Math.pow(d,2)*c;return{stiffness:h,damping:2*f*Math.sqrt(c*h),duration:i}}function Zr(t,e){return t*Math.sqrt(1-e*e)}var $r=["duration","bounce"],Jr=["stiffness","damping","mass"];function Qr(t,e){return e.some((function(e){return void 0!==t[e]}))}function tn(t){var e=t.from,r=void 0===e?0:e,n=t.to,i=void 0===n?1:n,a=t.restSpeed,o=void 0===a?2:a,s=t.restDelta,u=Zt(t,["from","to","restSpeed","restDelta"]),l={done:!1,value:r},c=function(t){var e=Xt({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!Qr(t,Jr)&&Qr(t,$r)){var r=Xr(t);(e=Xt(Xt(Xt({},e),r),{velocity:0,mass:1})).isResolvedFromDuration=!0}return e}(u),f=c.stiffness,d=c.damping,h=c.mass,p=c.velocity,v=c.duration,m=c.isResolvedFromDuration,y=en,g=en;function b(){var t=p?-p/1e3:0,e=i-r,n=d/(2*Math.sqrt(f*h)),a=Math.sqrt(f/h)/1e3;if(null!==s&&void 0!==s||(s=Math.abs(i-r)<=1?.01:.4),n<1){var o=Zr(a,n);y=function(r){var s=Math.exp(-n*a*r);return i-s*((t+n*a*e)/o*Math.sin(o*r)+e*Math.cos(o*r))},g=function(r){var i=Math.exp(-n*a*r);return n*a*i*(Math.sin(o*r)*(t+n*a*e)/o+e*Math.cos(o*r))-i*(Math.cos(o*r)*(t+n*a*e)-o*e*Math.sin(o*r))}}else if(1===n)y=function(r){return i-Math.exp(-a*r)*(e+(t+a*e)*r)};else{var u=a*Math.sqrt(n*n-1);y=function(r){var o=Math.exp(-n*a*r),s=Math.min(u*r,300);return i-o*((t+n*a*e)*Math.sinh(s)+u*e*Math.cosh(s))/u}}}return b(),{next:function(t){var e=y(t);if(m)l.done=t>=v;else{var r=1e3*g(t),n=Math.abs(r)<=o,a=Math.abs(i-e)<=s;l.done=n&&a}return l.value=l.done?i:e,l},flipTarget:function(){var t;p=-p,r=(t=[i,r])[0],i=t[1],b()}}}tn.needsInterpolation=function(t,e){return"string"===typeof t||"string"===typeof e};var en=function(t){return 0},rn=function(t,e,r){var n=e-t;return 0===n?1:(r-t)/n},nn=function(t,e,r){return-r*t+r*e+t},an=function(t,e){return function(r){return Boolean(Ne(r)&&Me.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e))}},on=function(t,e,r){return function(n){var i;if(!Ne(n))return n;var a=n.match(Re),o=a[0],s=a[1],u=a[2],l=a[3];return(i={})[t]=parseFloat(o),i[e]=parseFloat(s),i[r]=parseFloat(u),i.alpha=void 0!==l?parseFloat(l):1,i}},sn=De(0,255),un=Xt(Xt({},ze),{transform:function(t){return Math.round(sn(t))}}),ln={test:an("rgb","red"),parse:on("red","green","blue"),transform:function(t){var e=t.red,r=t.green,n=t.blue,i=t.alpha,a=void 0===i?1:i;return"rgba("+un.transform(e)+", "+un.transform(r)+", "+un.transform(n)+", "+Ce(Ke.transform(a))+")"}};var cn={test:an("#"),parse:function(t){var e="",r="",n="",i="";return t.length>5?(e=t.substr(1,2),r=t.substr(3,2),n=t.substr(5,2),i=t.substr(7,2)):(e=t.substr(1,1),r=t.substr(2,1),n=t.substr(3,1),i=t.substr(4,1),e+=e,r+=r,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:ln.transform},fn={test:an("hsl","hue"),parse:on("hue","saturation","lightness"),transform:function(t){var e=t.hue,r=t.saturation,n=t.lightness,i=t.alpha,a=void 0===i?1:i;return"hsla("+Math.round(e)+", "+Ue.transform(Ce(r))+", "+Ue.transform(Ce(n))+", "+Ce(Ke.transform(a))+")"}},dn=function(t,e,r){var n=t*t,i=e*e;return Math.sqrt(Math.max(0,r*(i-n)+n))},hn=[cn,ln,fn],pn=function(t){return hn.find((function(e){return e.test(t)}))},vn=function(t){return"'"+t+"' is not an animatable color. Use the equivalent color code instead."},mn=function(t,e){var r=pn(t),n=pn(e);vn(t),vn(e),r.transform,n.transform;var i=r.parse(t),a=n.parse(e),o=Xt({},i),s=r===fn?nn:dn;return function(t){for(var e in o)"alpha"!==e&&(o[e]=s(i[e],a[e],t));return o.alpha=nn(i.alpha,a.alpha,t),r.transform(o)}},yn={test:function(t){return ln.test(t)||cn.test(t)||fn.test(t)},parse:function(t){return ln.test(t)?ln.parse(t):fn.test(t)?fn.parse(t):cn.parse(t)},transform:function(t){return Ne(t)?t:t.hasOwnProperty("red")?ln.transform(t):fn.transform(t)}},gn="${c}",bn="${n}";function En(t){var e=[],r=0,n=t.match(Ie);n&&(r=n.length,t=t.replace(Ie,gn),e.push.apply(e,n.map(yn.parse)));var i=t.match(Re);return i&&(t=t.replace(Re,bn),e.push.apply(e,i.map(ze.parse))),{values:e,numColors:r,tokenised:t}}function Tn(t){return En(t).values}function wn(t){var e=En(t),r=e.values,n=e.numColors,i=e.tokenised,a=r.length;return function(t){for(var e=i,r=0;r<a;r++)e=e.replace(r<n?gn:bn,r<n?yn.transform(t[r]):Ce(t[r]));return e}}var Sn=function(t){return"number"===typeof t?0:t};var On={test:function(t){var e,r,n,i;return isNaN(t)&&Ne(t)&&(null!==(r=null===(e=t.match(Re))||void 0===e?void 0:e.length)&&void 0!==r?r:0)+(null!==(i=null===(n=t.match(Ie))||void 0===n?void 0:n.length)&&void 0!==i?i:0)>0},parse:Tn,createTransformer:wn,getAnimatableNone:function(t){var e=Tn(t);return wn(t)(e.map(Sn))}},kn=function(t){return"number"===typeof t};function An(t,e){return kn(t)?function(r){return nn(t,e,r)}:yn.test(t)?mn(t,e):_n(t,e)}var Pn=function(t,e){var r=Jt([],t),n=r.length,i=t.map((function(t,r){return An(t,e[r])}));return function(t){for(var e=0;e<n;e++)r[e]=i[e](t);return r}},xn=function(t,e){var r=Xt(Xt({},t),e),n={};for(var i in r)void 0!==t[i]&&void 0!==e[i]&&(n[i]=An(t[i],e[i]));return function(t){for(var e in n)r[e]=n[e](t);return r}};function Ln(t){for(var e=On.parse(t),r=e.length,n=0,i=0,a=0,o=0;o<r;o++)n||"number"===typeof e[o]?n++:void 0!==e[o].hue?a++:i++;return{parsed:e,numNumbers:n,numRGB:i,numHSL:a}}var _n=function(t,e){var r=On.createTransformer(e),n=Ln(t),i=Ln(e);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&(n.numNumbers,i.numNumbers),Hr(Pn(n.parsed,i.parsed),r)},Dn=function(t,e){return function(r){return nn(t,e,r)}};function Cn(t,e,r){for(var n,i=[],a=r||("number"===typeof(n=t[0])?Dn:"string"===typeof n?yn.test(n)?mn:_n:Array.isArray(n)?Pn:"object"===typeof n?xn:void 0),o=t.length-1,s=0;s<o;s++){var u=a(t[s],t[s+1]);if(e){var l=Array.isArray(e)?e[s]:e;u=Hr(l,u)}i.push(u)}return i}function Rn(t,e,r){var n=void 0===r?{}:r,i=n.clamp,a=void 0===i||i,o=n.ease,s=n.mixer,u=t.length;e.length,!o||!Array.isArray(o)||o.length,t[0]>t[u-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());var l=Cn(e,o,s),c=2===u?function(t,e){var r=t[0],n=t[1],i=e[0];return function(t){return i(rn(r,n,t))}}(t,l):function(t,e){var r=t.length,n=r-1;return function(i){var a=0,o=!1;if(i<=t[0]?o=!0:i>=t[n]&&(a=n-1,o=!0),!o){for(var s=1;s<r&&!(t[s]>i||s===n);s++);a=s-1}var u=rn(t[a],t[a+1],i);return e[a](u)}}(t,l);return a?function(e){return c(qr(t[0],t[u-1],e))}:c}var In,Mn=function(t){return function(e){return 1-t(1-e)}},Nn=function(t){return function(e){return e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2}},jn=function(t){return function(e){return e*e*((t+1)*e-t)}},Fn=function(t){return t},Un=(In=2,function(t){return Math.pow(t,In)}),Bn=Mn(Un),Vn=Nn(Un),Gn=function(t){return 1-Math.sin(Math.acos(t))},Hn=Mn(Gn),zn=Nn(Hn),Kn=jn(1.525),Wn=Mn(Kn),qn=Nn(Kn),Yn=function(t){var e=jn(t);return function(t){return(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))}}(1.525),Xn=function(t){if(1===t||0===t)return t;var e=t*t;return t<.36363636363636365?7.5625*e:t<.7272727272727273?9.075*e-9.9*t+3.4:t<.9?12.066481994459833*e-19.63545706371191*t+8.898060941828255:10.8*t*t-20.52*t+10.72},Zn=Mn(Xn);function $n(t,e){return t.map((function(){return e||Vn})).splice(0,t.length-1)}function Jn(t){var e=t.from,r=void 0===e?0:e,n=t.to,i=void 0===n?1:n,a=t.ease,o=t.offset,s=t.duration,u=void 0===s?300:s,l={done:!1,value:r},c=Array.isArray(i)?i:[r,i],f=function(t,e){return t.map((function(t){return t*e}))}(o&&o.length===c.length?o:function(t){var e=t.length;return t.map((function(t,r){return 0!==r?r/(e-1):0}))}(c),u);function d(){return Rn(f,c,{ease:Array.isArray(a)?a:$n(c,a)})}var h=d();return{next:function(t){return l.value=h(t),l.done=t>=u,l},flipTarget:function(){c.reverse(),h=d()}}}var Qn={keyframes:Jn,spring:tn,decay:function(t){var e=t.velocity,r=void 0===e?0:e,n=t.from,i=void 0===n?0:n,a=t.power,o=void 0===a?.8:a,s=t.timeConstant,u=void 0===s?350:s,l=t.restDelta,c=void 0===l?.5:l,f=t.modifyTarget,d={done:!1,value:i},h=o*r,p=i+h,v=void 0===f?p:f(p);return v!==p&&(h=v-i),{next:function(t){var e=-h*Math.exp(-t/u);return d.done=!(e>c||e<-c),d.value=d.done?v:v+e,d},flipTarget:function(){}}}};var ti=1/60*1e3,ei="undefined"!==typeof performance?function(){return performance.now()}:function(){return Date.now()},ri="undefined"!==typeof window?function(t){return window.requestAnimationFrame(t)}:function(t){return setTimeout((function(){return t(ei())}),ti)};var ni=!0,ii=!1,ai=!1,oi={delta:0,timestamp:0},si=["read","update","preRender","render","postRender"],ui=si.reduce((function(t,e){return t[e]=function(t){var e=[],r=[],n=0,i=!1,a=new WeakSet,o={schedule:function(t,o,s){void 0===o&&(o=!1),void 0===s&&(s=!1);var u=s&&i,l=u?e:r;return o&&a.add(t),-1===l.indexOf(t)&&(l.push(t),u&&i&&(n=e.length)),t},cancel:function(t){var e=r.indexOf(t);-1!==e&&r.splice(e,1),a.delete(t)},process:function(s){var u;if(i=!0,e=(u=[r,e])[0],(r=u[1]).length=0,n=e.length)for(var l=0;l<n;l++){var c=e[l];c(s),a.has(c)&&(o.schedule(c),t())}i=!1}};return o}((function(){return ii=!0})),t}),{}),li=si.reduce((function(t,e){var r=ui[e];return t[e]=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=!1),ii||pi(),r.schedule(t,e,n)},t}),{}),ci=si.reduce((function(t,e){return t[e]=ui[e].cancel,t}),{}),fi=si.reduce((function(t,e){return t[e]=function(){return ui[e].process(oi)},t}),{}),di=function(t){return ui[t].process(oi)},hi=function(t){ii=!1,oi.delta=ni?ti:Math.max(Math.min(t-oi.timestamp,40),1),oi.timestamp=t,ai=!0,si.forEach(di),ai=!1,ii&&(ni=!1,ri(hi))},pi=function(){ii=!0,ni=!0,ai||ri(hi)},vi=function(){return oi},mi=li;function yi(t,e,r){return void 0===r&&(r=0),t-e-r}var gi=function(t){var e=function(e){var r=e.delta;return t(r)};return{start:function(){return mi.update(e,!0)},stop:function(){return ci.update(e)}}};function bi(t){var e,r,n,i,a,o=t.from,s=t.autoplay,u=void 0===s||s,l=t.driver,c=void 0===l?gi:l,f=t.elapsed,d=void 0===f?0:f,h=t.repeat,p=void 0===h?0:h,v=t.repeatType,m=void 0===v?"loop":v,y=t.repeatDelay,g=void 0===y?0:y,b=t.onPlay,E=t.onStop,T=t.onComplete,w=t.onRepeat,S=t.onUpdate,O=Zt(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),k=O.to,A=0,P=O.duration,x=!1,L=!0,_=function(t){if(Array.isArray(t.to))return Jn;if(Qn[t.type])return Qn[t.type];var e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?Jn:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?tn:Jn}(O);(null===(r=(e=_).needsInterpolation)||void 0===r?void 0:r.call(e,o,k))&&(a=Rn([0,100],[o,k],{clamp:!1}),o=0,k=100);var D=_(Xt(Xt({},O),{from:o,to:k}));function C(){A++,"reverse"===m?d=function(t,e,r,n){return void 0===r&&(r=0),void 0===n&&(n=!0),n?yi(e+-t,e,r):e-(t-e)+r}(d,P,g,L=A%2===0):(d=yi(d,P,g),"mirror"===m&&D.flipTarget()),x=!1,w&&w()}function R(t){if(L||(t=-t),d+=t,!x){var e=D.next(Math.max(0,d));i=e.value,a&&(i=a(i)),x=L?e.done:d<=0}null===S||void 0===S||S(i),x&&(0===A&&(null!==P&&void 0!==P||(P=d)),A<p?function(t,e,r,n){return n?t>=e+r:t<=-r}(d,P,g,L)&&C():(n.stop(),T&&T()))}return u&&(null===b||void 0===b||b(),(n=c(R)).start()),{stop:function(){null===E||void 0===E||E(),n.stop()}}}function Ei(t,e){return e?t*(1e3/e):0}var Ti=function(t){return 1e3*t},wi=function(t,e){return 1-3*e+3*t},Si=function(t,e){return 3*e-6*t},Oi=function(t){return 3*t},ki=function(t,e,r){return((wi(e,r)*t+Si(e,r))*t+Oi(e))*t},Ai=function(t,e,r){return 3*wi(e,r)*t*t+2*Si(e,r)*t+Oi(e)};var Pi=.1;function xi(t,e,r,n){if(t===e&&r===n)return Fn;for(var i=new Float32Array(11),a=0;a<11;++a)i[a]=ki(a*Pi,t,r);function o(e){for(var n=0,a=1;10!==a&&i[a]<=e;++a)n+=Pi;--a;var o=n+(e-i[a])/(i[a+1]-i[a])*Pi,s=Ai(o,t,r);return s>=.001?function(t,e,r,n){for(var i=0;i<8;++i){var a=Ai(e,r,n);if(0===a)return e;e-=(ki(e,r,n)-t)/a}return e}(e,o,t,r):0===s?o:function(t,e,r,n,i){var a,o,s=0;do{(a=ki(o=e+(r-e)/2,n,i)-t)>0?r=o:e=o}while(Math.abs(a)>1e-7&&++s<10);return o}(e,n,n+Pi,t,r)}return function(t){return 0===t||1===t?t:ki(o(t),e,n)}}var Li={linear:Fn,easeIn:Un,easeInOut:Vn,easeOut:Bn,circIn:Gn,circInOut:zn,circOut:Hn,backIn:Kn,backInOut:qn,backOut:Wn,anticipate:Yn,bounceIn:Zn,bounceInOut:function(t){return t<.5?.5*(1-Xn(1-2*t)):.5*Xn(2*t-1)+.5},bounceOut:Xn},_i=function(t){if(Array.isArray(t)){t.length;var e=$t(t,4);return xi(e[0],e[1],e[2],e[3])}return"string"===typeof t?Li[t]:t},Di=function(t,e){return"zIndex"!==t&&(!("number"!==typeof e&&!Array.isArray(e))||!("string"!==typeof e||!On.test(e)||e.startsWith("url(")))},Ci=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},Ri=function(t){return{type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},Ii=function(){return{type:"keyframes",ease:"linear",duration:.3}},Mi=function(t){return{type:"keyframes",duration:.8,values:t}},Ni={x:Ci,y:Ci,z:Ci,rotate:Ci,rotateX:Ci,rotateY:Ci,rotateZ:Ci,scaleX:Ri,scaleY:Ri,scale:Ri,opacity:Ii,backgroundColor:Ii,color:Ii,default:Ri},ji=new Set(["brightness","contrast","saturate","opacity"]);function Fi(t){var e=t.slice(0,-1).split("("),r=e[0],n=e[1];if("drop-shadow"===r)return t;var i=(n.match(Re)||[])[0];if(!i)return t;var a=n.replace(i,""),o=ji.has(r)?1:0;return i!==n&&(o*=100),r+"("+o+a+")"}var Ui=/([a-z-]*)\(.*?\)/g,Bi=Xt(Xt({},On),{getAnimatableNone:function(t){var e=t.match(Ui);return e?e.map(Fi).join(" "):t}}),Vi=Xt(Xt({},Ye),{color:yn,backgroundColor:yn,outlineColor:yn,fill:yn,stroke:yn,borderColor:yn,borderTopColor:yn,borderRightColor:yn,borderBottomColor:yn,borderLeftColor:yn,filter:Bi,WebkitFilter:Bi}),Gi=function(t){return Vi[t]};function Hi(t,e){var r,n=Gi(t);return n!==Bi&&(n=On),null===(r=n.getAnimatableNone)||void 0===r?void 0:r.call(n,e)}function zi(t){var e=t.ease,r=t.times,n=t.yoyo,i=t.flip,a=t.loop,o=Zt(t,["ease","times","yoyo","flip","loop"]),s=Xt({},o);return r&&(s.offset=r),o.duration&&(s.duration=Ti(o.duration)),o.repeatDelay&&(s.repeatDelay=Ti(o.repeatDelay)),e&&(s.ease=function(t){return Array.isArray(t)&&"number"!==typeof t[0]}(e)?e.map(_i):_i(e)),"tween"===o.type&&(s.type="keyframes"),(n||a||i)&&(!0,n?s.repeatType="reverse":a?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=a||n||i||o.repeat),"spring"!==o.type&&(s.type="keyframes"),s}function Ki(t,e,r){var n;return Array.isArray(e.to)&&(null!==(n=t.duration)&&void 0!==n||(t.duration=.8)),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=Jt([],$t(t.to)),t.to[0]=t.from)}(e),function(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection,t.repeat,t.repeatType,t.repeatDelay,t.from;var e=Zt(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(e).length}(t)||(t=Xt(Xt({},t),function(t,e){var r;return r=pr(e)?Mi:Ni[t]||Ni.default,Xt({to:e},r(e))}(r,e.to))),Xt(Xt({},e),zi(t))}function Wi(t,e,r,n,i){var a,o=Xi(n,t),s=null!==(a=o.from)&&void 0!==a?a:e.get(),u=Di(t,r);"none"===s&&u&&"string"===typeof r?s=Hi(t,r):qi(s)&&"string"===typeof r?s=Yi(r):!Array.isArray(r)&&qi(r)&&"string"===typeof s&&(r=Yi(s));var l=Di(t,s);return l&&u&&!1!==o.type?function(){var n={from:s,to:r,velocity:e.getVelocity(),onComplete:i,onUpdate:function(t){return e.set(t)}};return"inertia"===o.type||"decay"===o.type?function(t){var e,r=t.from,n=void 0===r?0:r,i=t.velocity,a=void 0===i?0:i,o=t.min,s=t.max,u=t.power,l=void 0===u?.8:u,c=t.timeConstant,f=void 0===c?750:c,d=t.bounceStiffness,h=void 0===d?500:d,p=t.bounceDamping,v=void 0===p?10:p,m=t.restDelta,y=void 0===m?1:m,g=t.modifyTarget,b=t.driver,E=t.onUpdate,T=t.onComplete;function w(t){return void 0!==o&&t<o||void 0!==s&&t>s}function S(t){return void 0===o?s:void 0===s||Math.abs(o-t)<Math.abs(s-t)?o:s}function O(t){null===e||void 0===e||e.stop(),e=bi(Xt(Xt({},t),{driver:b,onUpdate:function(e){var r;null===E||void 0===E||E(e),null===(r=t.onUpdate)||void 0===r||r.call(t,e)},onComplete:T}))}function k(t){O(Xt({type:"spring",stiffness:h,damping:v,restDelta:y},t))}if(w(n))k({from:n,velocity:a,to:S(n)});else{var A=l*a+n;"undefined"!==typeof g&&(A=g(A));var P,x,L=S(A),_=L===o?-1:1;O({type:"decay",from:n,velocity:a,timeConstant:f,power:l,restDelta:y,modifyTarget:g,onUpdate:w(A)?function(t){P=x,x=t,a=Ei(t-P,vi().delta),(1===_&&t>L||-1===_&&t<L)&&k({from:t,to:L,velocity:a})}:void 0})}return{stop:function(){return null===e||void 0===e?void 0:e.stop()}}}(Xt(Xt({},n),o)):bi(Xt(Xt({},Ki(o,n,t)),{onUpdate:function(t){var e;n.onUpdate(t),null===(e=o.onUpdate)||void 0===e||e.call(o,t)},onComplete:function(){var t;n.onComplete(),null===(t=o.onComplete)||void 0===t||t.call(o)}}))}:function(){var t;return e.set(r),i(),null===(t=null===o||void 0===o?void 0:o.onComplete)||void 0===t||t.call(o),{stop:function(){}}}}function qi(t){return 0===t||"string"===typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function Yi(t){return"number"===typeof t?0:Hi("",t)}function Xi(t,e){return t[e]||t.default||t}function Zi(t,e,r,n){return void 0===n&&(n={}),e.start((function(i){var a,o,s=Wi(t,e,r,n,i),u=function(t,e){var r;return null!==(r=(Xi(t,e)||{}).delay)&&void 0!==r?r:0}(n,t),l=function(){return o=s()};return u?a=setTimeout(l,Ti(u)):l(),function(){clearTimeout(a),null===o||void 0===o||o.stop()}}))}function $i(t,e){-1===t.indexOf(e)&&t.push(e)}function Ji(t,e){var r=t.indexOf(e);r>-1&&t.splice(r,1)}var Qi=function(){function t(){this.subscriptions=[]}return t.prototype.add=function(t){var e=this;return $i(this.subscriptions,t),function(){return Ji(e.subscriptions,t)}},t.prototype.notify=function(t,e,r){var n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,r);else for(var i=0;i<n;i++){var a=this.subscriptions[i];a&&a(t,e,r)}},t.prototype.getSize=function(){return this.subscriptions.length},t.prototype.clear=function(){this.subscriptions.length=0},t}(),ta=function(){function t(t){var e,r=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Qi,this.velocityUpdateSubscribers=new Qi,this.renderSubscribers=new Qi,this.canTrackVelocity=!1,this.updateAndNotify=function(t,e){void 0===e&&(e=!0),r.prev=r.current,r.current=t;var n=vi(),i=n.delta,a=n.timestamp;r.lastUpdated!==a&&(r.timeDelta=i,r.lastUpdated=a,mi.postRender(r.scheduleVelocityCheck)),r.prev!==r.current&&r.updateSubscribers.notify(r.current),r.velocityUpdateSubscribers.getSize()&&r.velocityUpdateSubscribers.notify(r.getVelocity()),e&&r.renderSubscribers.notify(r.current)},this.scheduleVelocityCheck=function(){return mi.postRender(r.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==r.lastUpdated&&(r.prev=r.current,r.velocityUpdateSubscribers.notify(r.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}return t.prototype.onChange=function(t){return this.updateSubscribers.add(t)},t.prototype.clearListeners=function(){this.updateSubscribers.clear()},t.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},t.prototype.attach=function(t){this.passiveEffect=t},t.prototype.set=function(t,e){void 0===e&&(e=!0),e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)},t.prototype.get=function(){return this.current},t.prototype.getPrevious=function(){return this.prev},t.prototype.getVelocity=function(){return this.canTrackVelocity?Ei(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},t.prototype.start=function(t){var e=this;return this.stop(),new Promise((function(r){e.hasAnimated=!0,e.stopAnimation=t(r)})).then((function(){return e.clearAnimation()}))},t.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},t.prototype.isAnimating=function(){return!!this.stopAnimation},t.prototype.clearAnimation=function(){this.stopAnimation=null},t.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},t}();function ea(t){return new ta(t)}var ra=function(t){return function(e){return e.test(t)}},na=[ze,Be,Ue,Fe,Ge,Ve,{test:function(t){return"auto"===t},parse:function(t){return t}}],ia=function(t){return na.find(ra(t))},aa=Jt(Jt([],$t(na)),[yn,On]),oa=function(t){return aa.find(ra(t))};function sa(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,ea(r))}function ua(t,e){var r=ve(t,e),n=r?t.makeTargetAnimatable(r,!1):{},i=n.transitionEnd,a=void 0===i?{}:i;n.transition;var o,s=Zt(n,["transitionEnd","transition"]);for(var u in s=Xt(Xt({},s),a)){sa(t,u,(o=s[u],pr(o)?o[o.length-1]||0:o))}}function la(t,e){if(e)return(e[t]||e.default||e).from}function ca(t,e,r){var n;void 0===r&&(r={});var i=ve(t,e,r.custom),a=(i||{}).transition,o=void 0===a?t.getDefaultTransition()||{}:a;r.transitionOverride&&(o=r.transitionOverride);var s=i?function(){return fa(t,i,r)}:function(){return Promise.resolve()},u=(null===(n=t.variantChildren)||void 0===n?void 0:n.size)?function(n){void 0===n&&(n=0);var i=o.delayChildren,a=void 0===i?0:i,s=o.staggerChildren,u=o.staggerDirection;return function(t,e,r,n,i,a){void 0===r&&(r=0);void 0===n&&(n=0);void 0===i&&(i=1);var o=[],s=(t.variantChildren.size-1)*n,u=1===i?function(t){return void 0===t&&(t=0),t*n}:function(t){return void 0===t&&(t=0),s-t*n};return Array.from(t.variantChildren).sort(da).forEach((function(t,n){o.push(ca(t,e,Xt(Xt({},a),{delay:r+u(n)})).then((function(){return t.notifyAnimationComplete(e)})))})),Promise.all(o)}(t,e,a+n,s,u,r)}:function(){return Promise.resolve()},l=o.when;if(l){var c=$t("beforeChildren"===l?[s,u]:[u,s],2),f=c[0],d=c[1];return f().then(d)}return Promise.all([s(),u(r.delay)])}function fa(t,e,r){var n,i=void 0===r?{}:r,a=i.delay,o=void 0===a?0:a,s=i.transitionOverride,u=i.type,l=t.makeTargetAnimatable(e),c=l.transition,f=void 0===c?t.getDefaultTransition():c,d=l.transitionEnd,h=Zt(l,["transition","transitionEnd"]);s&&(f=s);var p=[],v=u&&(null===(n=t.animationState)||void 0===n?void 0:n.getState()[u]);for(var m in h){var y=t.getValue(m),g=h[m];if(!(!y||void 0===g||v&&ha(v,m))){var b=Zi(m,y,g,Xt({delay:o},f));p.push(b)}}return Promise.all(p).then((function(){d&&ua(t,d)}))}function da(t,e){return t.sortNodePosition(e)}function ha(t,e){var r=t.protectedKeys,n=t.needsAnimating,i=r.hasOwnProperty(e)&&!0!==n[e];return n[e]=!1,i}var pa=[br.Animate,br.Hover,br.Tap,br.Drag,br.Focus,br.Exit],va=Jt([],$t(pa)).reverse(),ma=pa.length;function ya(t){return function(e){return Promise.all(e.map((function(e){var r=e.animation,n=e.options;return function(t,e,r){var n;if(void 0===r&&(r={}),t.notifyAnimationStart(),Array.isArray(e)){var i=e.map((function(e){return ca(t,e,r)}));n=Promise.all(i)}else if("string"===typeof e)n=ca(t,e,r);else{var a="function"===typeof e?ve(t,e,r.custom):e;n=fa(t,a,r)}return n.then((function(){return t.notifyAnimationComplete(e)}))}(t,r,n)})))}}function ga(t){var e=ya(t),r=function(){var t;return(t={})[br.Animate]=ba(!0),t[br.Hover]=ba(),t[br.Tap]=ba(),t[br.Drag]=ba(),t[br.Focus]=ba(),t[br.Exit]=ba(),t}(),n={},i=!0,a=function(e,r){var n=ve(t,r);if(n){n.transition;var i=n.transitionEnd,a=Zt(n,["transition","transitionEnd"]);e=Xt(Xt(Xt({},e),a),i)}return e};function o(o,s){for(var u,l=t.getProps(),c=t.getVariantContext(!0)||{},f=[],d=new Set,h={},p=1/0,v=function(e){var n=va[e],v=r[n],m=null!==(u=l[n])&&void 0!==u?u:c[n],y=he(m),g=n===s?v.isActive:null;!1===g&&(p=e);var b=m===c[n]&&m!==l[n]&&y;if(b&&i&&t.manuallyAnimateOnMount&&(b=!1),v.protectedKeys=Xt({},h),!v.isActive&&null===g||!m&&!v.prevProp||hr(m)||"boolean"===typeof m)return"continue";var E=function(t,e){if("string"===typeof e)return e!==t;if(de(e))return!Wr(e,t);return!1}(v.prevProp,m)||n===s&&v.isActive&&!b&&y||e>p&&y,T=Array.isArray(m)?m:[m],w=T.reduce(a,{});!1===g&&(w={});var S=v.prevResolvedValues,O=void 0===S?{}:S,k=Xt(Xt({},O),w),A=function(t){E=!0,d.delete(t),v.needsAnimating[t]=!0};for(var P in k){var x=w[P],L=O[P];h.hasOwnProperty(P)||(x!==L?pr(x)&&pr(L)?Wr(x,L)?v.protectedKeys[P]=!0:A(P):void 0!==x?A(P):d.add(P):void 0!==x&&d.has(P)?A(P):v.protectedKeys[P]=!0)}v.prevProp=m,v.prevResolvedValues=w,v.isActive&&(h=Xt(Xt({},h),w)),i&&t.blockInitialAnimation&&(E=!1),E&&!b&&f.push.apply(f,Jt([],$t(T.map((function(t){return{animation:t,options:Xt({type:n},o)}})))))},m=0;m<ma;m++)v(m);if(n=Xt({},h),d.size){var y={};d.forEach((function(e){var r=t.getBaseTarget(e);void 0!==r&&(y[e]=r)})),f.push({animation:y})}var g=Boolean(f.length);return i&&!1===l.initial&&!t.manuallyAnimateOnMount&&(g=!1),i=!1,g?e(f):Promise.resolve()}return{isAnimated:function(t){return void 0!==n[t]},animateChanges:o,setActive:function(e,n,i){var a;return r[e].isActive===n?Promise.resolve():(null===(a=t.variantChildren)||void 0===a||a.forEach((function(t){var r;return null===(r=t.animationState)||void 0===r?void 0:r.setActive(e,n)})),r[e].isActive=n,o(i,e))},setAnimateFunction:function(r){e=r(t)},getState:function(){return r}}}function ba(t){return void 0===t&&(t=!1),{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Ea={animation:zr((function(t){var e=t.visualElement,r=t.animate;e.animationState||(e.animationState=ga(e)),hr(r)&&(0,i.useEffect)((function(){return r.subscribe(e)}),[r])})),exit:zr((function(t){var e=t.custom,r=t.visualElement,n=$t(oe(),2),a=n[0],o=n[1],s=(0,i.useContext)(ie);(0,i.useEffect)((function(){var t,n,i=null===(t=r.animationState)||void 0===t?void 0:t.setActive(br.Exit,!a,{custom:null!==(n=null===s||void 0===s?void 0:s.custom)&&void 0!==n?n:e});!a&&(null===i||void 0===i||i.then(o))}),[a])}))},Ta=function(t){return t.hasOwnProperty("x")&&t.hasOwnProperty("y")},wa=function(t){return Ta(t)&&t.hasOwnProperty("z")},Sa=function(t,e){return Math.abs(t-e)};function Oa(t,e){if(kn(t)&&kn(e))return Sa(t,e);if(Ta(t)&&Ta(e)){var r=Sa(t.x,e.x),n=Sa(t.y,e.y),i=wa(t)&&wa(e)?Sa(t.z,e.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(i,2))}}var ka=function(){function t(t,e,r){var n=this,i=(void 0===r?{}:r).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(n.lastMoveEvent&&n.lastMoveEventInfo){var t=xa(n.lastMoveEventInfo,n.history),e=null!==n.startEvent,r=Oa(t.offset,{x:0,y:0})>=3;if(e||r){var i=t.point,a=vi().timestamp;n.history.push(Xt(Xt({},i),{timestamp:a}));var o=n.handlers,s=o.onStart,u=o.onMove;e||(s&&s(n.lastMoveEvent,t),n.startEvent=n.lastMoveEvent),u&&u(n.lastMoveEvent,t)}}},this.handlePointerMove=function(t,e){n.lastMoveEvent=t,n.lastMoveEventInfo=Aa(e,n.transformPagePoint),wr(t)&&0===t.buttons?n.handlePointerUp(t,e):mi.update(n.updatePoint,!0)},this.handlePointerUp=function(t,e){n.end();var r=n.handlers,i=r.onEnd,a=r.onSessionEnd,o=xa(Aa(e,n.transformPagePoint),n.history);n.startEvent&&i&&i(t,o),a&&a(t,o)},!(Sr(t)&&t.touches.length>1)){this.handlers=e,this.transformPagePoint=i;var a=Aa(Pr(t),this.transformPagePoint),o=a.point,s=vi().timestamp;this.history=[Xt(Xt({},o),{timestamp:s})];var u=e.onSessionStart;u&&u(t,xa(a,this.history)),this.removeListeners=Hr(Cr(window,"pointermove",this.handlePointerMove),Cr(window,"pointerup",this.handlePointerUp),Cr(window,"pointercancel",this.handlePointerUp))}}return t.prototype.updateHandlers=function(t){this.handlers=t},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),ci.update(this.updatePoint)},t}();function Aa(t,e){return e?{point:e(t.point)}:t}function Pa(t,e){return{x:t.x-e.x,y:t.y-e.y}}function xa(t,e){var r=t.point;return{point:r,delta:Pa(r,_a(e)),offset:Pa(r,La(e)),velocity:Da(e,.1)}}function La(t){return t[0]}function _a(t){return t[t.length-1]}function Da(t,e){if(t.length<2)return{x:0,y:0};for(var r=t.length-1,n=null,i=_a(t);r>=0&&(n=t[r],!(i.timestamp-n.timestamp>Ti(e)));)r--;if(!n)return{x:0,y:0};var a=(i.timestamp-n.timestamp)/1e3;if(0===a)return{x:0,y:0};var o={x:(i.x-n.x)/a,y:(i.y-n.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Ca(t){return t}function Ra(t){var e=t.top;return{x:{min:t.left,max:t.right},y:{min:e,max:t.bottom}}}var Ia={translate:0,scale:1,origin:0,originPoint:0};function Ma(){return{x:Xt({},Ia),y:Xt({},Ia)}}function Na(t){return[t("x"),t("y")]}function ja(t,e,r){var n=e.min,i=e.max;return void 0!==n&&t<n?t=r?nn(n,t,r.min):Math.max(t,n):void 0!==i&&t>i&&(t=r?nn(i,t,r.max):Math.min(t,i)),t}function Fa(t,e,r){return{min:void 0!==e?t.min+e:void 0,max:void 0!==r?t.max+r-(t.max-t.min):void 0}}function Ua(t,e){var r,n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&(n=(r=$t([i,n],2))[0],i=r[1]),{min:t.min+n,max:t.min+i}}function Ba(t,e,r){return{min:Va(t,e),max:Va(t,r)}}function Va(t,e){var r;return"number"===typeof t?t:null!==(r=t[e])&&void 0!==r?r:0}function Ga(t,e){return Ra(function(t,e){var r=t.top,n=t.left,i=t.bottom,a=t.right;void 0===e&&(e=Ca);var o=e({x:n,y:r}),s=e({x:a,y:i});return{top:o.y,left:o.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}function Ha(t,e,r){return void 0===e&&(e=0),void 0===r&&(r=.01),Oa(t,e)<r}function za(t){return t.max-t.min}function Ka(t,e){var r=.5,n=za(t),i=za(e);return i>n?r=rn(e.min,e.max-n,t.min):n>i&&(r=rn(t.min,t.max-i,e.min)),qr(0,1,r)}function Wa(t,e,r,n){void 0===n&&(n=.5),t.origin=n,t.originPoint=nn(e.min,e.max,t.origin),t.scale=za(r)/za(e),Ha(t.scale,1,1e-4)&&(t.scale=1),t.translate=nn(r.min,r.max,t.origin)-t.originPoint,Ha(t.translate)&&(t.translate=0)}function qa(t,e,r,n){Wa(t.x,e.x,r.x,Ya(n.originX)),Wa(t.y,e.y,r.y,Ya(n.originY))}function Ya(t){return"number"===typeof t?t:.5}function Xa(t,e,r){t.min=r.min+e.min,t.max=t.min+za(e)}var Za=function(t,e){return t.depth-e.depth};function $a(t){return t.projection.isEnabled||t.shouldResetTransform()}function Ja(t,e){void 0===e&&(e=[]);var r=t.parent;return r&&Ja(r,e),$a(t)&&e.push(t),e}function Qa(t){if(!t.shouldResetTransform()){var e,r=t.getLayoutState();t.notifyBeforeLayoutMeasure(r.layout),r.isHydrated=!0,r.layout=t.measureViewportBox(),r.layoutCorrected=(e=r.layout,{x:Xt({},e.x),y:Xt({},e.y)}),t.notifyLayoutMeasure(r.layout,t.prevViewportBox||r.layout),mi.update((function(){return t.rebaseProjectionTarget()}))}}function to(t,e){return{min:e.min-t.min,max:e.max-t.min}}function eo(t,e){return{x:to(t.x,e.x),y:to(t.y,e.y)}}function ro(t,e){var r=t.getLayoutId(),n=e.getLayoutId();return r!==n||void 0===n&&t!==e}function no(t){var e=t.getProps(),r=e.drag,n=e._dragX;return r&&!n}function io(t,e){t.min=e.min,t.max=e.max}function ao(t,e,r){return r+e*(t-r)}function oo(t,e,r,n,i){return void 0!==i&&(t=ao(t,i,n)),ao(t,r,n)+e}function so(t,e,r,n,i){void 0===e&&(e=0),void 0===r&&(r=1),t.min=oo(t.min,e,r,n,i),t.max=oo(t.max,e,r,n,i)}function uo(t,e){var r=e.x,n=e.y;so(t.x,r.translate,r.scale,r.originPoint),so(t.y,n.translate,n.scale,n.originPoint)}function lo(t,e,r,n){var i=$t(n,3),a=i[0],o=i[1],s=i[2];t.min=e.min,t.max=e.max;var u=void 0!==r[s]?r[s]:.5,l=nn(e.min,e.max,u);so(t,r[a],r[o],l,r.scale)}var co=["x","scaleX","originX"],fo=["y","scaleY","originY"];function ho(t,e,r){lo(t.x,e.x,r,co),lo(t.y,e.y,r,fo)}function po(t,e,r,n,i){return t=ao(t-=e,1/r,n),void 0!==i&&(t=ao(t,1/i,n)),t}function vo(t,e,r){var n=$t(r,3),i=n[0],a=n[1],o=n[2];!function(t,e,r,n,i){void 0===e&&(e=0),void 0===r&&(r=1),void 0===n&&(n=.5);var a=nn(t.min,t.max,n)-e;t.min=po(t.min,e,r,a,i),t.max=po(t.max,e,r,a,i)}(t,e[i],e[a],e[o],e.scale)}function mo(t,e){vo(t.x,e,co),vo(t.y,e,fo)}var yo=new Set;function go(t,e,r){t[r]||(t[r]=[]),t[r].push(e)}function bo(t){return yo.add(t),function(){return yo.delete(t)}}function Eo(){if(yo.size){var t=0,e=[[]],r=[],n=function(r){return go(e,r,t)},i=function(e){go(r,e,t),t++};yo.forEach((function(e){e(n,i),t=0})),yo.clear();for(var a=r.length,o=0;o<=a;o++)e[o]&&e[o].forEach(wo),r[o]&&r[o].forEach(wo)}}var To,wo=function(t){return t()},So=new WeakMap,Oo=function(){function t(t){var e=t.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic={x:{min:0,max:1},y:{min:0,max:1}},this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=e,this.visualElement.enableLayoutProjection(),So.set(e,this)}return t.prototype.start=function(t,e){var r=this,n=void 0===e?{}:e,i=n.snapToCursor,a=void 0!==i&&i,o=n.cursorProgress,s=this.props.transformPagePoint;this.panSession=new ka(t,{onSessionStart:function(t){var e;r.stopMotion();var n=function(t){return Pr(t,"client")}(t).point;null===(e=r.cancelLayout)||void 0===e||e.call(r),r.cancelLayout=bo((function(t,e){var i=Ja(r.visualElement),s=function(t){var e=[],r=function(t){$a(t)&&e.push(t),t.children.forEach(r)};return t.children.forEach(r),e.sort(Za)}(r.visualElement),u=Jt(Jt([],$t(i)),$t(s)),l=!1;r.isLayoutDrag()&&r.visualElement.lockProjectionTarget(),e((function(){u.forEach((function(t){return t.resetTransform()}))})),t((function(){Qa(r.visualElement),s.forEach(Qa)})),e((function(){u.forEach((function(t){return t.restoreTransform()})),a&&(l=r.snapToCursor(n))})),t((function(){Boolean(r.getAxisMotionValue("x")&&!r.isExternalDrag())||r.visualElement.rebaseProjectionTarget(!0,r.visualElement.measureViewportBox(!1)),r.visualElement.scheduleUpdateLayoutProjection();var t=r.visualElement.projection;Na((function(e){if(!l){var i=t.target[e],a=i.min,s=i.max;r.cursorProgress[e]=o?o[e]:rn(a,s,n[e])}var u=r.getAxisMotionValue(e);u&&(r.originPoint[e]=u.get())}))})),e((function(){fi.update(),fi.preRender(),fi.render(),fi.postRender()})),t((function(){return r.resolveDragConstraints()}))}))},onStart:function(t,e){var n,i,a,o=r.props,s=o.drag,u=o.dragPropagation;(!s||u||(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=jr(s),r.openGlobalLock))&&(Eo(),r.isDragging=!0,r.currentDirection=null,null===(i=(n=r.props).onDragStart)||void 0===i||i.call(n,t,e),null===(a=r.visualElement.animationState)||void 0===a||a.setActive(br.Drag,!0))},onMove:function(t,e){var n,i,a,o,s=r.props,u=s.dragPropagation,l=s.dragDirectionLock;if(u||r.openGlobalLock){var c=e.offset;if(l&&null===r.currentDirection)return r.currentDirection=function(t,e){void 0===e&&(e=10);var r=null;Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x");return r}(c),void(null!==r.currentDirection&&(null===(i=(n=r.props).onDirectionLock)||void 0===i||i.call(n,r.currentDirection)));r.updateAxis("x",e.point,c),r.updateAxis("y",e.point,c),null===(o=(a=r.props).onDrag)||void 0===o||o.call(a,t,e),To=t}},onSessionEnd:function(t,e){return r.stop(t,e)}},{transformPagePoint:s})},t.prototype.resolveDragConstraints=function(){var t=this,e=this.props,r=e.dragConstraints,n=e.dragElastic,i=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!r&&(fe(r)?this.resolveRefConstraints(i,r):function(t,e){var r=e.top,n=e.left,i=e.bottom,a=e.right;return{x:Fa(t.x,n,a),y:Fa(t.y,r,i)}}(i,r)),this.elastic=function(t){return!1===t?t=0:!0===t&&(t=.35),{x:Ba(t,"left","right"),y:Ba(t,"top","bottom")}}(n),this.constraints&&!this.hasMutatedConstraints&&Na((function(e){t.getAxisMotionValue(e)&&(t.constraints[e]=function(t,e){var r={};return void 0!==e.min&&(r.min=e.min-t.min),void 0!==e.max&&(r.max=e.max-t.min),r}(i[e],t.constraints[e]))}))},t.prototype.resolveRefConstraints=function(t,e){var r=this.props,n=r.onMeasureDragConstraints,i=r.transformPagePoint,a=e.current;this.constraintsBox=Ga(a,i);var o=function(t,e){return{x:Ua(t.x,e.x),y:Ua(t.y,e.y)}}(t,this.constraintsBox);if(n){var s=n(function(t){var e=t.x,r=t.y;return{top:r.min,bottom:r.max,left:e.min,right:e.max}}(o));this.hasMutatedConstraints=!!s,s&&(o=Ra(s))}return o},t.prototype.cancelDrag=function(){var t,e;this.visualElement.unlockProjectionTarget(),null===(t=this.cancelLayout)||void 0===t||t.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(br.Drag,!1)},t.prototype.stop=function(t,e){var r,n,i;null===(r=this.panSession)||void 0===r||r.end(),this.panSession=null;var a=this.isDragging;if(this.cancelDrag(),a){var o=e.velocity;this.animateDragEnd(o),null===(i=(n=this.props).onDragEnd)||void 0===i||i.call(n,t,e)}},t.prototype.snapToCursor=function(t){var e=this;return Na((function(r){if(ko(r,e.props.drag,e.currentDirection)){var n=e.getAxisMotionValue(r);if(!n)return e.cursorProgress[r]=.5,!0;var i=e.visualElement.getLayoutState().layout,a=i[r].max-i[r].min,o=i[r].min+a/2,s=t[r]-o;e.originPoint[r]=t[r],n.set(s)}})).includes(!0)},t.prototype.updateAxis=function(t,e,r){if(ko(t,this.props.drag,this.currentDirection))return this.getAxisMotionValue(t)?this.updateAxisMotionValue(t,r):this.updateVisualElementAxis(t,e)},t.prototype.updateAxisMotionValue=function(t,e){var r=this.getAxisMotionValue(t);if(e&&r){var n=this.originPoint[t]+e[t],i=this.constraints?ja(n,this.constraints[t],this.elastic[t]):n;r.set(i)}},t.prototype.updateVisualElementAxis=function(t,e){var r,n=this.visualElement.getLayoutState().layout[t],i=n.max-n.min,a=this.cursorProgress[t],o=function(t,e,r,n,i){var a=t-e*r;return n?ja(a,n,i):a}(e[t],i,a,null===(r=this.constraints)||void 0===r?void 0:r[t],this.elastic[t]);this.visualElement.setProjectionTargetAxis(t,o,o+i)},t.prototype.setProps=function(t){var e=t.drag,r=void 0!==e&&e,n=t.dragDirectionLock,i=void 0!==n&&n,a=t.dragPropagation,o=void 0!==a&&a,s=t.dragConstraints,u=void 0!==s&&s,l=t.dragElastic,c=void 0===l?.35:l,f=t.dragMomentum,d=void 0===f||f,h=Zt(t,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=Xt({drag:r,dragDirectionLock:i,dragPropagation:o,dragConstraints:u,dragElastic:c,dragMomentum:d},h)},t.prototype.getAxisMotionValue=function(t){var e=this.props,r=e.layout,n=e.layoutId,i="_drag"+t.toUpperCase();return this.props[i]?this.props[i]:r||void 0!==n?void 0:this.visualElement.getValue(t,0)},t.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},t.prototype.isExternalDrag=function(){var t=this.props,e=t._dragX,r=t._dragY;return e||r},t.prototype.animateDragEnd=function(t){var e=this,r=this.props,n=r.drag,i=r.dragMomentum,a=r.dragElastic,o=r.dragTransition,s=function(t,e){void 0===e&&(e=!0);var r,n=t.getProjectionParent();return!!n&&(e?mo(r=eo(n.projection.target,t.projection.target),n.getLatestValues()):r=eo(n.getLayoutState().layout,t.getLayoutState().layout),Na((function(e){return t.setProjectionTargetAxis(e,r[e].min,r[e].max,!0)})),!0)}(this.visualElement,this.isLayoutDrag()&&!this.isExternalDrag()),u=this.constraints||{};if(s&&Object.keys(u).length&&this.isLayoutDrag()){var l=this.visualElement.getProjectionParent();if(l){var c=eo(l.projection.targetFinal,u);Na((function(t){var e=c[t],r=e.min,n=e.max;u[t]={min:isNaN(r)?void 0:r,max:isNaN(n)?void 0:n}}))}}var f=Na((function(r){var l;if(ko(r,n,e.currentDirection)){var c=null!==(l=null===u||void 0===u?void 0:u[r])&&void 0!==l?l:{},f=a?200:1e6,d=a?40:1e7,h=Xt(Xt({type:"inertia",velocity:i?t[r]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10},o),c);return e.getAxisMotionValue(r)?e.startAxisValueAnimation(r,h):e.visualElement.startLayoutAnimation(r,h,s)}}));return Promise.all(f).then((function(){var t,r;null===(r=(t=e.props).onDragTransitionEnd)||void 0===r||r.call(t)}))},t.prototype.stopMotion=function(){var t=this;Na((function(e){var r=t.getAxisMotionValue(e);r?r.stop():t.visualElement.stopLayoutAnimation()}))},t.prototype.startAxisValueAnimation=function(t,e){var r=this.getAxisMotionValue(t);if(r){var n=r.get();return r.set(n),r.set(n),Zi(t,r,0,e)}},t.prototype.scalePoint=function(){var t=this,e=this.props,r=e.drag;if(fe(e.dragConstraints)&&this.constraintsBox){this.stopMotion();var n={x:0,y:0};Na((function(e){n[e]=Ka(t.visualElement.projection.target[e],t.constraintsBox[e])})),this.updateConstraints((function(){Na((function(e){if(ko(e,r,null)){var i=function(t,e,r){var n=t.max-t.min,i=nn(e.min,e.max-n,r);return{min:i,max:i+n}}(t.visualElement.projection.target[e],t.constraintsBox[e],n[e]),a=i.min,o=i.max;t.visualElement.setProjectionTargetAxis(e,a,o)}}))})),setTimeout(Eo,1)}},t.prototype.updateConstraints=function(t){var e=this;this.cancelLayout=bo((function(r,n){var i=Ja(e.visualElement);n((function(){return i.forEach((function(t){return t.resetTransform()}))})),r((function(){return Qa(e.visualElement)})),n((function(){return i.forEach((function(t){return t.restoreTransform()}))})),r((function(){e.resolveDragConstraints()})),t&&n(t)}))},t.prototype.mount=function(t){var e=this,r=Cr(t.getInstance(),"pointerdown",(function(t){var r=e.props,n=r.drag,i=r.dragListener;n&&(void 0===i||i)&&e.start(t)})),n=Er(window,"resize",(function(){e.scalePoint()})),i=t.onLayoutUpdate((function(){e.isDragging&&e.resolveDragConstraints()})),a=t.prevDragCursor;return a&&this.start(To,{cursorProgress:a}),function(){null===r||void 0===r||r(),null===n||void 0===n||n(),null===i||void 0===i||i(),e.cancelDrag()}},t}();function ko(t,e,r){return(!0===e||e===t)&&(null===r||r===t)}var Ao,Po,xo={pan:zr((function(t){var e=t.onPan,r=t.onPanStart,n=t.onPanEnd,a=t.onPanSessionStart,o=t.visualElement,s=e||r||n||a,u=(0,i.useRef)(null),l=(0,i.useContext)(re).transformPagePoint,c={onSessionStart:a,onStart:r,onMove:e,onEnd:function(t,e){u.current=null,n&&n(t,e)}};(0,i.useEffect)((function(){null!==u.current&&u.current.updateHandlers(c)})),Rr(o,"pointerdown",s&&function(t){u.current=new ka(t,c,{transformPagePoint:l})}),Vr((function(){return u.current&&u.current.end()}))})),drag:zr((function(t){var e=t.dragControls,r=t.visualElement,n=(0,i.useContext)(re).transformPagePoint,a=ae((function(){return new Oo({visualElement:r})}));a.setProps(Xt(Xt({},t),{transformPagePoint:n})),(0,i.useEffect)((function(){return e&&e.subscribe(a)}),[a]),(0,i.useEffect)((function(){return a.mount(r)}),[])}))};function Lo(t){return"string"===typeof t&&t.startsWith("var(--")}!function(t){t[t.Entering=0]="Entering",t[t.Present=1]="Present",t[t.Exiting=2]="Exiting"}(Ao||(Ao={})),function(t){t[t.Hide=0]="Hide",t[t.Show=1]="Show"}(Po||(Po={}));var _o=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Do(t,e,r){void 0===r&&(r=1);var n=$t(function(t){var e=_o.exec(t);if(!e)return[,];var r=$t(e,3);return[r[1],r[2]]}(t),2),i=n[0],a=n[1];if(i){var o=window.getComputedStyle(e).getPropertyValue(i);return o?o.trim():Lo(a)?Do(a,e,r+1):a}}function Co(t,e){return t/(e.max-e.min)*100}var Ro="_$css";var Io={process:function(t,e,r){var n=r.target;if("string"===typeof t){if(!Be.test(t))return t;t=parseFloat(t)}return Co(t,n.x)+"% "+Co(t,n.y)+"%"}},Mo={borderRadius:Xt(Xt({},Io),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Io,borderTopRightRadius:Io,borderBottomLeftRadius:Io,borderBottomRightRadius:Io,boxShadow:{process:function(t,e){var r=e.delta,n=e.treeScale,i=t,a=t.includes("var("),o=[];a&&(t=t.replace(_o,(function(t){return o.push(t),Ro})));var s=On.parse(t);if(s.length>5)return i;var u=On.createTransformer(t),l="number"!==typeof s[0]?1:0,c=r.x.scale*n.x,f=r.y.scale*n.y;s[0+l]/=c,s[1+l]/=f;var d=nn(c,f,.5);"number"===typeof s[2+l]&&(s[2+l]/=d),"number"===typeof s[3+l]&&(s[3+l]/=d);var h=u(s);if(a){var p=0;h=h.replace(Ro,(function(){var t=o[p];return p++,t}))}return h}}},No=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.frameTarget={x:{min:0,max:1},y:{min:0,max:1}},e.currentAnimationTarget={x:{min:0,max:1},y:{min:0,max:1}},e.isAnimating={x:!1,y:!1},e.stopAxisAnimation={x:void 0,y:void 0},e.isAnimatingTree=!1,e.animate=function(t,r,n){void 0===n&&(n={});var i=n.originBox,a=n.targetBox,o=n.visibilityAction,s=n.shouldStackAnimate,u=n.onComplete,l=n.prevParent,c=Zt(n,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),f=e.props,d=f.visualElement,h=f.layout;if(!1===s)return e.isAnimatingTree=!1,e.safeToRemove();if(!e.isAnimatingTree||!0===s){s&&(e.isAnimatingTree=!0),r=i||r,t=a||t;var p=!1,v=d.getProjectionParent();if(v){var m=v.prevViewportBox,y=v.getLayoutState().layout;l&&(a&&(y=l.getLayoutState().layout),i&&!ro(l,v)&&l.prevViewportBox&&(m=l.prevViewportBox)),m&&Go(l,i,a)&&(p=!0,r=eo(m,r),t=eo(y,t))}var g=jo(r,t),b=Na((function(n){var i,a;if("position"===h){var s=t[n].max-t[n].min;r[n].max=r[n].min+s}if(!d.projection.isTargetLocked)return void 0===o?g?e.animateAxis(n,t[n],r[n],Xt(Xt({},c),{isRelative:p})):(null===(a=(i=e.stopAxisAnimation)[n])||void 0===a||a.call(i),d.setProjectionTargetAxis(n,t[n].min,t[n].max,p)):void d.setVisibility(o===Po.Show)}));return d.syncRender(),Promise.all(b).then((function(){e.isAnimatingTree=!1,u&&u(),d.notifyLayoutAnimationComplete()}))}},e}return Yt(e,t),e.prototype.componentDidMount=function(){var t=this,e=this.props.visualElement;e.animateMotionValue=Zi,e.enableLayoutProjection(),this.unsubLayoutReady=e.onLayoutUpdate(this.animate),e.layoutSafeToRemove=function(){return t.safeToRemove()},function(t){for(var e in t)ge[e]=t[e]}(Mo)},e.prototype.componentWillUnmount=function(){var t=this;this.unsubLayoutReady(),Na((function(e){var r,n;return null===(n=(r=t.stopAxisAnimation)[e])||void 0===n?void 0:n.call(r)}))},e.prototype.animateAxis=function(t,e,r,n){var i,a,o=this,s=void 0===n?{}:n,u=s.transition,l=s.isRelative;if(!this.isAnimating[t]||!Bo(e,this.currentAnimationTarget[t])){null===(a=(i=this.stopAxisAnimation)[t])||void 0===a||a.call(i),this.isAnimating[t]=!0;var c=this.props.visualElement,f=this.frameTarget[t],d=c.getProjectionAnimationProgress()[t];d.clearListeners(),d.set(0),d.set(0);var h=function(){var n=d.get()/1e3;!function(t,e,r,n){t.min=nn(e.min,r.min,n),t.max=nn(e.max,r.max,n)}(f,r,e,n),c.setProjectionTargetAxis(t,f.min,f.max,l)};h();var p=d.onChange(h);this.stopAxisAnimation[t]=function(){o.isAnimating[t]=!1,d.stop(),p()},this.currentAnimationTarget[t]=e;var v=u||c.getDefaultTransition()||Vo;return Zi("x"===t?"layoutX":"layoutY",d,1e3,v&&Xi(v,"layout")).then(this.stopAxisAnimation[t])}},e.prototype.safeToRemove=function(){var t,e;null===(e=(t=this.props).safeToRemove)||void 0===e||e.call(t)},e.prototype.render=function(){return null},e}(i.Component);function jo(t,e){return!Uo(t)&&!Uo(e)&&(!Bo(t.x,e.x)||!Bo(t.y,e.y))}var Fo={min:0,max:0};function Uo(t){return Bo(t.x,Fo)&&Bo(t.y,Fo)}function Bo(t,e){return t.min===e.min&&t.max===e.max}var Vo={duration:.45,ease:[.4,0,.1,1]};function Go(t,e,r){return t||!t&&!(e||r)}var Ho={layoutReady:function(t){return t.notifyLayoutReady()}};function zo(){var t=new Set;return{add:function(e){return t.add(e)},flush:function(e){var r=void 0===e?Ho:e,n=r.layoutReady,i=r.parent;bo((function(e,r){var a=Array.from(t).sort(Za),o=i?Ja(i):[];r((function(){Jt(Jt([],$t(o)),$t(a)).forEach((function(t){return t.resetTransform()}))})),e((function(){a.forEach(Qa)})),r((function(){o.forEach((function(t){return t.restoreTransform()})),a.forEach(n)})),e((function(){a.forEach((function(t){t.isPresent&&(t.presence=Ao.Present)}))})),r((function(){fi.preRender(),fi.render()})),e((function(){mi.postRender((function(){return a.forEach(Ko)})),t.clear()}))})),Eo()}}}function Ko(t){t.prevViewportBox=t.projection.target}var Wo=(0,i.createContext)(zo()),qo=(0,i.createContext)(zo());function Yo(t){return!!t.forceUpdate}var Xo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Yt(e,t),e.prototype.componentDidMount=function(){var t=this.props,e=t.syncLayout,r=t.framerSyncLayout,n=t.visualElement;Yo(e)&&e.register(n),Yo(r)&&r.register(n),n.onUnmount((function(){Yo(e)&&e.remove(n),Yo(r)&&r.remove(n)}))},e.prototype.getSnapshotBeforeUpdate=function(){var t=this.props,e=t.syncLayout,r=t.visualElement;return Yo(e)?e.syncUpdate():(!function(t){t.shouldResetTransform()||(t.prevViewportBox=t.measureViewportBox(!1),t.rebaseProjectionTarget(!1,t.prevViewportBox))}(r),e.add(r)),null},e.prototype.componentDidUpdate=function(){var t=this.props.syncLayout;Yo(t)||t.flush()},e.prototype.render=function(){return null},e}(i.Component);var Zo={measureLayout:function(t){var e=(0,i.useContext)(Wo),r=(0,i.useContext)(qo);return i.createElement(Xo,Xt({},t,{syncLayout:e,framerSyncLayout:r}))},layoutAnimation:function(t){var e=$t(oe(),2)[1];return i.createElement(No,Xt({},t,{safeToRemove:e}))}};function $o(){return{isHydrated:!1,layout:{x:{min:0,max:1},y:{min:0,max:1}},layoutCorrected:{x:{min:0,max:1},y:{min:0,max:1}},treeScale:{x:1,y:1},delta:Ma(),deltaFinal:Ma(),deltaTransform:""}}var Jo=$o();function Qo(t,e,r){var n=t.x,i=t.y,a="translate3d("+n.translate/e.x+"px, "+i.translate/e.y+"px, 0) ";if(r){var o=r.rotate,s=r.rotateX,u=r.rotateY;o&&(a+="rotate("+o+") "),s&&(a+="rotateX("+s+") "),u&&(a+="rotateY("+u+") ")}return a+="scale("+n.scale+", "+i.scale+")",r||a!==es?a:""}function ts(t){var e=t.deltaFinal;return 100*e.x.origin+"% "+100*e.y.origin+"% 0"}var es=Qo(Jo.delta,Jo.treeScale,{x:1,y:1}),rs=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function ns(t,e,r,n){var i,a,o=t.delta,s=t.layout,u=t.layoutCorrected,l=t.treeScale,c=e.target;a=s,io((i=u).x,a.x),io(i.y,a.y),function(t,e,r){var n=r.length;if(n){var i,a;e.x=e.y=1;for(var o=0;o<n;o++)a=(i=r[o]).getLayoutState().delta,e.x*=a.x.scale,e.y*=a.y.scale,uo(t,a),no(i)&&ho(t,t,i.getLatestValues())}}(u,l,r),qa(o,u,c,n)}var is=function(){function t(){this.children=[],this.isDirty=!1}return t.prototype.add=function(t){$i(this.children,t),this.isDirty=!0},t.prototype.remove=function(t){Ji(this.children,t),this.isDirty=!0},t.prototype.forEach=function(t){this.isDirty&&this.children.sort(Za),this.isDirty=!1,this.children.forEach(t)},t}();var as=function(t){var e=t.treeType,r=void 0===e?"":e,n=t.build,i=t.getBaseTarget,a=t.makeTargetAnimatable,o=t.measureViewportBox,s=t.render,u=t.readValueFromInstance,l=t.resetTransform,c=t.restoreTransform,f=t.removeValueFromRenderState,d=t.sortNodePosition,h=t.scrapeMotionValuesFromProps;return function(t,e){var p=t.parent,v=t.props,m=t.presenceId,y=t.blockInitialAnimation,g=t.visualState;void 0===e&&(e={});var b,E,T,w,S,O,k=g.latestValues,A=g.renderState,P=function(){var t=rs.map((function(){return new Qi})),e={},r={clearAllListeners:function(){return t.forEach((function(t){return t.clear()}))},updatePropListeners:function(t){return rs.forEach((function(n){var i;null===(i=e[n])||void 0===i||i.call(e);var a="on"+n,o=t[a];o&&(e[n]=r[a](o))}))}};return t.forEach((function(t,e){r["on"+rs[e]]=function(e){return t.add(e)},r["notify"+rs[e]]=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.notify.apply(t,Jt([],$t(e)))}})),r}(),x={isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:{x:{min:0,max:1},y:{min:0,max:1}},targetFinal:{x:{min:0,max:1},y:{min:0,max:1}}},L=x,_=k,D=$o(),C=!1,R=new Map,I=new Map,M={},N=Xt({},k);function j(){b&&(W.isProjectionReady()&&(ho(L.targetFinal,L.target,_),qa(D.deltaFinal,D.layoutCorrected,L.targetFinal,k)),F(),s(b,A))}function F(){var t=k;if(w&&w.isActive()){var r=w.getCrossfadeState(W);r&&(t=r)}n(W,A,t,L,D,e,v)}function U(){P.notifyUpdate(k)}function B(){W.layoutTree.forEach(ss)}var V=h(v);for(var G in V){var H=V[G];void 0!==k[G]&&Pe(H)&&H.set(k[G],!1)}var z=me(v),K=ye(v),W=Xt(Xt({treeType:r,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,path:p?Jt(Jt([],$t(p.path)),[p]):[],layoutTree:p?p.layoutTree:new is,presenceId:m,projection:x,variantChildren:K?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null===p||void 0===p?void 0:p.isMounted()),blockInitialAnimation:y,isMounted:function(){return Boolean(b)},mount:function(t){b=W.current=t,W.pointTo(W),K&&p&&!z&&(O=null===p||void 0===p?void 0:p.addVariantChild(W)),null===p||void 0===p||p.children.add(W)},unmount:function(){ci.update(U),ci.render(j),ci.preRender(W.updateLayoutProjection),I.forEach((function(t){return t()})),W.stopLayoutAnimation(),W.layoutTree.remove(W),null===O||void 0===O||O(),null===p||void 0===p||p.children.delete(W),null===T||void 0===T||T(),P.clearAllListeners()},addVariantChild:function(t){var e,r=W.getClosestVariantNode();if(r)return null===(e=r.variantChildren)||void 0===e||e.add(t),function(){return r.variantChildren.delete(t)}},sortNodePosition:function(t){return d&&r===t.treeType?d(W.getInstance(),t.getInstance()):0},getClosestVariantNode:function(){return K?W:null===p||void 0===p?void 0:p.getClosestVariantNode()},scheduleUpdateLayoutProjection:p?p.scheduleUpdateLayoutProjection:function(){return mi.preRender(W.updateTreeLayoutProjection,!1,!0)},getLayoutId:function(){return v.layoutId},getInstance:function(){return b},getStaticValue:function(t){return k[t]},setStaticValue:function(t,e){return k[t]=e},getLatestValues:function(){return k},setVisibility:function(t){W.isVisible!==t&&(W.isVisible=t,W.scheduleRender())},makeTargetAnimatable:function(t,e){return void 0===e&&(e=!0),a(W,t,v,e)},addValue:function(t,e){W.hasValue(t)&&W.removeValue(t),R.set(t,e),k[t]=e.get(),function(t,e){var r=e.onChange((function(e){k[t]=e,v.onUpdate&&mi.update(U,!1,!0)})),n=e.onRenderRequest(W.scheduleRender);I.set(t,(function(){r(),n()}))}(t,e)},removeValue:function(t){var e;R.delete(t),null===(e=I.get(t))||void 0===e||e(),I.delete(t),delete k[t],f(t,A)},hasValue:function(t){return R.has(t)},getValue:function(t,e){var r=R.get(t);return void 0===r&&void 0!==e&&(r=ea(e),W.addValue(t,r)),r},forEachValue:function(t){return R.forEach(t)},readValue:function(t){var r;return null!==(r=k[t])&&void 0!==r?r:u(b,t,e)},setBaseTarget:function(t,e){N[t]=e},getBaseTarget:function(t){if(i){var e=i(v,t);if(void 0!==e&&!Pe(e))return e}return N[t]}},P),{build:function(){return F(),A},scheduleRender:function(){mi.render(j,!1,!0)},syncRender:j,setProps:function(t){v=t,P.updatePropListeners(t),M=function(t,e,r){var n;for(var i in e){var a=e[i],o=r[i];if(Pe(a))t.addValue(i,a);else if(Pe(o))t.addValue(i,ea(a));else if(o!==a)if(t.hasValue(i)){var s=t.getValue(i);!s.hasAnimated&&s.set(a)}else t.addValue(i,ea(null!==(n=t.getStaticValue(i))&&void 0!==n?n:a))}for(var i in r)void 0===e[i]&&t.removeValue(i);return e}(W,h(v),M)},getProps:function(){return v},getVariant:function(t){var e;return null===(e=v.variants)||void 0===e?void 0:e[t]},getDefaultTransition:function(){return v.transition},getVariantContext:function(t){if(void 0===t&&(t=!1),t)return null===p||void 0===p?void 0:p.getVariantContext();if(!z){var e=(null===p||void 0===p?void 0:p.getVariantContext())||{};return void 0!==v.initial&&(e.initial=v.initial),e}for(var r={},n=0;n<cs;n++){var i=ls[n],a=v[i];(he(a)||!1===a)&&(r[i]=a)}return r},enableLayoutProjection:function(){x.isEnabled=!0,W.layoutTree.add(W)},lockProjectionTarget:function(){x.isTargetLocked=!0},unlockProjectionTarget:function(){W.stopLayoutAnimation(),x.isTargetLocked=!1},getLayoutState:function(){return D},setCrossfader:function(t){w=t},isProjectionReady:function(){return x.isEnabled&&x.isHydrated&&D.isHydrated},startLayoutAnimation:function(t,e,r){void 0===r&&(r=!1);var n=W.getProjectionAnimationProgress()[t],i=r?x.relativeTarget[t]:x.target[t],a=i.min,o=i.max-a;return n.clearListeners(),n.set(a),n.set(a),n.onChange((function(e){W.setProjectionTargetAxis(t,e,e+o,r)})),W.animateMotionValue(t,n,0,e)},stopLayoutAnimation:function(){Na((function(t){return W.getProjectionAnimationProgress()[t].stop()}))},measureViewportBox:function(t){void 0===t&&(t=!0);var r=o(b,e);return t||mo(r,k),r},getProjectionAnimationProgress:function(){return S||(S={x:ea(0),y:ea(0)}),S},setProjectionTargetAxis:function(t,e,r,n){var i;void 0===n&&(n=!1),n?(x.relativeTarget||(x.relativeTarget={x:{min:0,max:1},y:{min:0,max:1}}),i=x.relativeTarget[t]):(x.relativeTarget=void 0,i=x.target[t]),x.isHydrated=!0,i.min=e,i.max=r,C=!0,P.notifySetAxisTarget()},rebaseProjectionTarget:function(t,e){void 0===e&&(e=D.layout);var r=W.getProjectionAnimationProgress(),n=r.x,i=r.y,a=!x.relativeTarget&&!x.isTargetLocked&&!n.isAnimating()&&!i.isAnimating();(t||a)&&Na((function(t){var r=e[t],n=r.min,i=r.max;W.setProjectionTargetAxis(t,n,i)}))},notifyLayoutReady:function(t){!function(t){var e=t.getProjectionParent();if(e){var r=eo(e.getLayoutState().layout,t.getLayoutState().layout);Na((function(e){t.setProjectionTargetAxis(e,r[e].min,r[e].max,!0)}))}else t.rebaseProjectionTarget()}(W),W.notifyLayoutUpdate(D.layout,W.prevViewportBox||D.layout,t)},resetTransform:function(){return l(W,b,v)},restoreTransform:function(){return c(b,A)},updateLayoutProjection:function(){if(W.isProjectionReady()){var t=D.delta,e=D.treeScale,r=e.x,n=e.y,i=D.deltaTransform;ns(D,L,W.path,k),C&&W.notifyViewportBoxUpdate(L.target,t),C=!1;var a=Qo(t,e);a===i&&r===e.x&&n===e.y||W.scheduleRender(),D.deltaTransform=a}},updateTreeLayoutProjection:function(){W.layoutTree.forEach(os),mi.preRender(B,!1,!0)},getProjectionParent:function(){if(void 0===E){for(var t=!1,e=W.path.length-1;e>=0;e--){var r=W.path[e];if(r.projection.isEnabled){t=r;break}}E=t}return E},resolveRelativeTargetBox:function(){var t=W.getProjectionParent();if(x.relativeTarget&&t&&(function(t,e){Xa(t.target.x,t.relativeTarget.x,e.target.x),Xa(t.target.y,t.relativeTarget.y,e.target.y)}(x,t.projection),no(t))){var e=x.target;ho(e,e,t.getLatestValues())}},shouldResetTransform:function(){return Boolean(v._layoutResetTransform)},pointTo:function(t){L=t.projection,_=t.getLatestValues(),null===T||void 0===T||T(),T=Hr(t.onSetAxisTarget(W.scheduleUpdateLayoutProjection),t.onLayoutAnimationComplete((function(){var t;W.isPresent?W.presence=Ao.Present:null===(t=W.layoutSafeToRemove)||void 0===t||t.call(W)})))},isPresent:!0,presence:Ao.Entering});return W}};function os(t){t.resolveRelativeTargetBox()}function ss(t){t.updateLayoutProjection()}var us,ls=Jt(["initial"],$t(pa)),cs=ls.length,fs=new Set(["width","height","top","left","right","bottom","x","y"]),ds=function(t){return fs.has(t)},hs=function(t,e){t.set(e,!1),t.set(e)},ps=function(t){return t===ze||t===Be};!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(us||(us={}));var vs=function(t,e){return parseFloat(t.split(", ")[e])},ms=function(t,e){return function(r,n){var i=n.transform;if("none"===i||!i)return 0;var a=i.match(/^matrix3d\((.+)\)$/);if(a)return vs(a[1],e);var o=i.match(/^matrix\((.+)\)$/);return o?vs(o[1],t):0}},ys=new Set(["x","y","z"]),gs=Ee.filter((function(t){return!ys.has(t)}));var bs={width:function(t){var e=t.x;return e.max-e.min},height:function(t){var e=t.y;return e.max-e.min},top:function(t,e){var r=e.top;return parseFloat(r)},left:function(t,e){var r=e.left;return parseFloat(r)},bottom:function(t,e){var r=t.y,n=e.top;return parseFloat(n)+(r.max-r.min)},right:function(t,e){var r=t.x,n=e.left;return parseFloat(n)+(r.max-r.min)},x:ms(4,13),y:ms(5,14)},Es=function(t,e,r,n){void 0===r&&(r={}),void 0===n&&(n={}),e=Xt({},e),n=Xt({},n);var i=Object.keys(e).filter(ds),a=[],o=!1,s=[];if(i.forEach((function(i){var u=t.getValue(i);if(t.hasValue(i)){var l,c=r[i],f=e[i],d=ia(c);if(pr(f))for(var h=f.length,p=null===f[0]?1:0;p<h;
1p++)l?ia(f[p]):(l=ia(f[p]))===d||ps(d)&&ps(l);else l=ia(f);if(d!==l)if(ps(d)&&ps(l)){var v=u.get();"string"===typeof v&&u.set(parseFloat(v)),"string"===typeof f?e[i]=parseFloat(f):Array.isArray(f)&&l===Be&&(e[i]=f.map(parseFloat))}else(null===d||void 0===d?void 0:d.transform)&&(null===l||void 0===l?void 0:l.transform)&&(0===c||0===f)?0===c?u.set(l.transform(c)):e[i]=d.transform(f):(o||(a=function(t){var e=[];return gs.forEach((function(r){var n=t.getValue(r);void 0!==n&&(e.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))})),e.length&&t.syncRender(),e}(t),o=!0),s.push(i),n[i]=void 0!==n[i]?n[i]:e[i],hs(u,f))}})),s.length){var u=function(t,e,r){var n=e.measureViewportBox(),i=e.getInstance(),a=getComputedStyle(i),o=a.display,s={top:a.top,left:a.left,bottom:a.bottom,right:a.right,transform:a.transform};"none"===o&&e.setStaticValue("display",t.display||"block"),e.syncRender();var u=e.measureViewportBox();return r.forEach((function(r){var i=e.getValue(r);hs(i,bs[r](n,s)),t[r]=bs[r](u,a)})),t}(e,t,s);return a.length&&a.forEach((function(e){var r=$t(e,2),n=r[0],i=r[1];t.getValue(n).set(i)})),t.syncRender(),{target:u,transitionEnd:n}}return{target:e,transitionEnd:n}};function Ts(t,e,r,n){return function(t){return Object.keys(t).some(ds)}(e)?Es(t,e,r,n):{target:e,transitionEnd:n}}var ws=function(t,e,r,n){var i=function(t,e,r){var n,i=Zt(e,[]),a=t.getInstance();if(!(a instanceof HTMLElement))return{target:i,transitionEnd:r};for(var o in r&&(r=Xt({},r)),t.forEachValue((function(t){var e=t.get();if(Lo(e)){var r=Do(e,a);r&&t.set(r)}})),i){var s=i[o];if(Lo(s)){var u=Do(s,a);u&&(i[o]=u,r&&(null!==(n=r[o])&&void 0!==n||(r[o]=s)))}}return{target:i,transitionEnd:r}}(t,e,n);return Ts(t,e=i.target,r,n=i.transitionEnd)};var Ss={treeType:"dom",readValueFromInstance:function(t,e){if(Se(e)){var r=Gi(e);return r&&r.default||0}var n,i=(n=t,window.getComputedStyle(n));return(Le(e)?i.getPropertyValue(e):i[e])||0},sortNodePosition:function(t,e){return 2&t.compareDocumentPosition(e)?1:-1},getBaseTarget:function(t,e){var r;return null===(r=t.style)||void 0===r?void 0:r[e]},measureViewportBox:function(t,e){return Ga(t,e.transformPagePoint)},resetTransform:function(t,e,r){var n=r.transformTemplate;e.style.transform=n?n({},""):"none",t.scheduleRender()},restoreTransform:function(t,e){t.style.transform=e.style.transform},removeValueFromRenderState:function(t,e){var r=e.vars,n=e.style;delete r[t],delete n[t]},makeTargetAnimatable:function(t,e,r,n){var i=r.transformValues;void 0===n&&(n=!0);var a=e.transition,o=e.transitionEnd,s=Zt(e,["transition","transitionEnd"]),u=function(t,e,r){var n,i,a={};for(var o in t)a[o]=null!==(n=la(o,e))&&void 0!==n?n:null===(i=r.getValue(o))||void 0===i?void 0:i.get();return a}(s,a||{},t);if(i&&(o&&(o=i(o)),s&&(s=i(s)),u&&(u=i(u))),n){!function(t,e,r){var n,i,a,o,s=Object.keys(e).filter((function(e){return!t.hasValue(e)})),u=s.length;if(u)for(var l=0;l<u;l++){var c=s[l],f=e[c],d=null;Array.isArray(f)&&(d=f[0]),null===d&&(d=null!==(i=null!==(n=r[c])&&void 0!==n?n:t.readValue(c))&&void 0!==i?i:e[c]),void 0!==d&&null!==d&&("string"===typeof d&&/^\-?\d*\.?\d+$/.test(d)?d=parseFloat(d):!oa(d)&&On.test(f)&&(d=Hi(c,f)),t.addValue(c,ea(d)),null!==(a=(o=r)[c])&&void 0!==a||(o[c]=d),t.setBaseTarget(c,d))}}(t,s,u);var l=ws(t,s,u,o);o=l.transitionEnd,s=l.target}return Xt({transition:a,transitionEnd:o},s)},scrapeMotionValuesFromProps:fr,build:function(t,e,r,n,i,a,o){void 0!==t.isVisible&&(e.style.visibility=t.isVisible?"visible":"hidden");var s=n.isEnabled&&i.isHydrated;Xe(e,r,n,i,a,o.transformTemplate,s?Qo:void 0,s?ts:void 0)},render:ur};as(Ss),as(Xt(Xt({},Ss),{getBaseTarget:function(t,e){return t[e]},readValueFromInstance:function(t,e){var r;return Se(e)?(null===(r=Gi(e))||void 0===r?void 0:r.default)||0:(e=lr.has(e)?e:sr(e),t.getAttribute(e))},scrapeMotionValuesFromProps:dr,build:function(t,e,r,n,i,a,o){var s=n.isEnabled&&i.isHydrated;ir(e,r,n,i,a,o.transformTemplate,s?Qo:void 0,s?ts:void 0)},render:cr})),Xt(Xt(Xt(Xt({},Ea),Kr),xo),Zo)},520:function(t,e,r){"use strict";r.d(e,{ZP:function(){return fe}});var n,i,a=r(9490),o=function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function s(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}function u(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(t,e){var r="function"===typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,a=r.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o}function c(t,e,r){if(r||2===arguments.length)for(var n,i=0,a=e.length;i<a;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}!function(t){t.Start="xstate.start",t.Stop="xstate.stop",t.Raise="xstate.raise",t.Send="xstate.send",t.Cancel="xstate.cancel",t.NullEvent="",t.Assign="xstate.assign",t.After="xstate.after",t.DoneState="done.state",t.DoneInvoke="done.invoke",t.Log="xstate.log",t.Init="xstate.init",t.Invoke="xstate.invoke",t.ErrorExecution="error.execution",t.ErrorCommunication="error.communication",t.ErrorPlatform="error.platform",t.ErrorCustom="xstate.error",t.Update="xstate.update",t.Pure="xstate.pure",t.Choose="xstate.choose"}(n||(n={})),function(t){t.Parent="#_parent",t.Internal="#_internal"}(i||(i={}));var f,d=n.Start,h=n.Stop,p=n.Raise,v=n.Send,m=n.Cancel,y=n.NullEvent,g=n.Assign,b=(n.After,n.DoneState,n.Log),E=n.Init,T=n.Invoke,w=(n.ErrorExecution,n.ErrorPlatform),S=n.ErrorCustom,O=n.Update,k=n.Choose,A=n.Pure,P={},x="xstate.guard";function L(t,e,r){void 0===r&&(r=".");var n=C(t,r),i=C(e,r);return X(i)?!!X(n)&&i===n:X(n)?n in i:Object.keys(n).every((function(t){return t in i&&L(n[t],i[t])}))}function _(t){try{return X(t)||"number"===typeof t?"".concat(t):t.type}catch(e){throw new Error("Events must be strings or objects with a string event.type property.")}}function D(t,e){try{return q(t)?t:t.toString().split(e)}catch(r){throw new Error("'".concat(t,"' is not a valid state path."))}}function C(t,e){return"object"===typeof(r=t)&&"value"in r&&"context"in r&&"event"in r&&"_event"in r?t.value:q(t)?R(t):"string"!==typeof t?t:R(D(t,e));var r}function R(t){if(1===t.length)return t[0];for(var e={},r=e,n=0;n<t.length-1;n++)n===t.length-2?r[t[n]]=t[n+1]:(r[t[n]]={},r=r[t[n]]);return e}function I(t,e){for(var r={},n=Object.keys(t),i=0;i<n.length;i++){var a=n[i];r[a]=e(t[a],a,t,i)}return r}function M(t,e,r){var n,i,a={};try{for(var o=u(Object.keys(t)),s=o.next();!s.done;s=o.next()){var l=s.value,c=t[l];r(c)&&(a[l]=e(c,l,t))}}catch(f){n={error:f}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a}var N=function(t){return function(e){var r,n,i=e;try{for(var a=u(t),o=a.next();!o.done;o=a.next()){i=i[o.value]}}catch(s){r={error:s}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i}};function j(t){return t?X(t)?[[t]]:F(Object.keys(t).map((function(e){var r=t[e];return"string"===typeof r||r&&Object.keys(r).length?j(t[e]).map((function(t){return[e].concat(t)})):[[e]]}))):[[]]}function F(t){var e;return(e=[]).concat.apply(e,c([],l(t),!1))}function U(t){return q(t)?t:[t]}function B(t){return void 0===t?[]:U(t)}function V(t,e,r){var n,i;if(Y(t))return t(e,r.data);var a={};try{for(var o=u(Object.keys(t)),s=o.next();!s.done;s=o.next()){var l=s.value,c=t[l];Y(c)?a[l]=c(e,r.data):a[l]=c}}catch(f){n={error:f}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a}function G(t){return t instanceof Promise||!(null===t||!Y(t)&&"object"!==typeof t||!Y(t.then))}function H(t,e){var r,n,i=l([[],[]],2),a=i[0],o=i[1];try{for(var s=u(t),c=s.next();!c.done;c=s.next()){var f=c.value;e(f)?a.push(f):o.push(f)}}catch(d){r={error:d}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return[a,o]}function z(t,e){return I(t.states,(function(t,r){if(t){var n=(X(e)?void 0:e[r])||(t?t.current:void 0);if(n)return{current:n,states:z(t,n)}}}))}function K(t,e,r,n){var i=t?r.reduce((function(t,r){var i,a,o=r.assignment,s={state:n,action:r,_event:e},l={};if(Y(o))l=o(t,e.data,s);else try{for(var c=u(Object.keys(o)),f=c.next();!f.done;f=c.next()){var d=f.value,h=o[d];l[d]=Y(h)?h(t,e.data,s):h}}catch(p){i={error:p}}finally{try{f&&!f.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}return Object.assign({},t,l)}),t):t;return i}var W=function(){};function q(t){return Array.isArray(t)}function Y(t){return"function"===typeof t}function X(t){return"string"===typeof t}function Z(t,e){if(t)return X(t)?{type:x,name:t,predicate:e?e[t]:void 0}:Y(t)?{type:x,name:t.name,predicate:t}:t}var $=function(){return"function"===typeof Symbol&&Symbol.observable||"@@observable"}();(f={})[$]=function(){return this},f[Symbol.observable]=function(){return this};function J(t){return!!t&&"__xstatenode"in t}function Q(t,e){return X(t)||"number"===typeof t?o({type:t},e):t}function tt(t,e){if(!X(t)&&"$$type"in t&&"scxml"===t.$$type)return t;var r=Q(t);return o({name:r.type,data:r,$$type:"scxml",type:"external"},e)}function et(t,e){return U(e).map((function(e){return"undefined"===typeof e||"string"===typeof e||J(e)?{target:e,event:t}:o(o({},e),{event:t})}))}function rt(t,e,r,n,i){var a=t.options.guards,o={state:i,cond:e,_event:n};if(e.type===x)return((null===a||void 0===a?void 0:a[e.name])||e.predicate)(r,n.data,o);var s=null===a||void 0===a?void 0:a[e.type];if(!s)throw new Error("Guard '".concat(e.type,"' is not implemented on machine '").concat(t.id,"'."));return s(r,n.data,o)}function nt(t){return"string"===typeof t?{type:t}:t}function it(t,e,r){if("object"===typeof t)return t;var n=function(){};return{next:t,error:e||n,complete:r||n}}function at(t,e){return"".concat(t,":invocation[").concat(e,"]")}var ot=tt({type:E}
1);function st(t,e){return e&&e[t]||void 0}function ut(t,e){var r;if(X(t)||"number"===typeof t)r=Y(n=st(t,e))?{type:t,exec:n}:n||{type:t,exec:void 0};else if(Y(t))r={type:t.name||t.toString(),exec:t};else{var n;if(Y(n=st(t.type,e)))r=o(o({},t),{exec:n});else if(n){var i=n.type||t.type;r=o(o(o({},n),t),{type:i})}else r=t}return r}var lt=function(t,e){return t?(q(t)?t:[t]).map((function(t){return ut(t,e)})):[]};function ct(t){var e=ut(t);return o(o({id:X(t)?t:e.id},e),{type:e.type})}function ft(t){return X(t)?{type:p,event:t}:dt(t,{to:i.Internal})}function dt(t,e){return{to:e?e.to:void 0,type:v,event:Y(t)?t:Q(t),delay:e?e.delay:void 0,id:e&&void 0!==e.id?e.id:Y(t)?t.name:_(t)}}function ht(t,e){var r="".concat(n.DoneState,".").concat(t),i={type:r,data:e,toString:function(){return r}};return i}function pt(t,e){var r="".concat(n.DoneInvoke,".").concat(t),i={type:r,data:e,toString:function(){return r}};return i}function vt(t,e){var r="".concat(n.ErrorPlatform,".").concat(t),i={type:r,data:e,toString:function(){return r}};return i}function mt(t,e,r,i,a,s){void 0===s&&(s=!1);var u=l(s?[[],a]:H(a,(function(t){return t.type===g})),2),f=u[0],d=u[1],m=f.length?K(r,i,f,e):r,y=s?[r]:void 0,E=F(d.map((function(r){var a;switch(r.type){case p:return{type:p,_event:tt(r.event)};case v:var u=function(t,e,r,n){var i,a={_event:r},s=tt(Y(t.event)?t.event(e,r.data,a):t.event);if(X(t.delay)){var u=n&&n[t.delay];i=Y(u)?u(e,r.data,a):u}else i=Y(t.delay)?t.delay(e,r.data,a):t.delay;var l=Y(t.to)?t.to(e,r.data,a):t.to;return o(o({},t),{to:l,_event:s,event:s.data,delay:i})}(r,m,i,t.options.delays);return u;case b:return function(t,e,r){return o(o({},t),{value:X(t.expr)?t.expr:t.expr(e,r.data,{_event:r})})}(r,m,i);case k:if(!(T=null===(a=r.conds.find((function(r){var n=Z(r.cond,t.options.guards);return!n||rt(t,n,m,i,e)})))||void 0===a?void 0:a.actions))return[];var f=l(mt(t,e,m,i,lt(B(T),t.options.actions),s),2),d=f[0],E=f[1];return m=E,null===y||void 0===y||y.push(m),d;case A:var T;if(!(T=r.get(m,i.data)))return[];var w=l(mt(t,e,m,i,lt(B(T),t.options.actions),s),2),S=w[0],O=w[1];return m=O,null===y||void 0===y||y.push(m),S;case h:return function(t,e,r){var i=Y(t.activity)?t.activity(e,r.data):t.activity,a="string"===typeof i?{id:i}:i;return{type:n.Stop,activity:a}}(r,m,i);case g:m=K(m,i,[r],e),null===y||void 0===y||y.push(m);break;default:var P=ut(r,t.options.actions),x=P.exec;if(x&&y){var L=y.length-1;P=o(o({},P),{exec:function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];x.apply(void 0,c([y[L]],l(e),!1))}})}return P}})).filter((function(t){return!!t})));return[E,m]}var yt=function(t){return{type:g,assignment:t}},gt=function(t){return"atomic"===t.type||"final"===t.type};function bt(t){return Object.keys(t.states).map((function(e){return t.states[e]})).filter((function(t){return"history"!==t.type}))}function Et(t){var e=[t];return gt(t)?e:e.concat(F(bt(t).map(Et)))}function Tt(t,e){var r,n,i,a,o,s,l,c,f=St(new Set(t)),d=new Set(e);try{for(var h=u(d),p=h.next();!p.done;p=h.next())for(var v=(O=p.value).parent;v&&!d.has(v);)d.add(v),v=v.parent}catch(k){r={error:k}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(r)throw r.error}}var m=St(d);try{for(var y=u(d),g=y.next();!g.done;g=y.next()){if("compound"!==(O=g.value).type||m.get(O)&&m.get(O).length){if("parallel"===O.type)try{for(var b=(o=void 0,u(bt(O))),E=b.next();!E.done;E=b.next()){var T=E.value;d.has(T)||(d.add(T),f.get(T)?f.get(T).forEach((function(t){return d.add(t)})):T.initialStateNodes.forEach((function(t){return d.add(t)})))}}catch(A){o={error:A}}finally{try{E&&!E.done&&(s=b.return)&&s.call(b)}finally{if(o)throw o.error}}}else f.get(O)?f.get(O).forEach((function(t){return d.add(t)})):O.initialStateNodes.forEach((function(t){return d.add(t)}))}}catch(P){i={error:P}}finally{try{g&&!g.done&&(a=y.return)&&a.call(y)}finally{if(i)throw i.error}}try{for(var w=u(d),S=w.next();!S.done;S=w.next()){var O;for(v=(O=S.value).parent;v&&!d.has(v);)d.add(v),v=v.parent}}catch(x){l={error:x}}finally{try{S&&!S.done&&(c=w.return)&&c.call(w)}finally{if(l)throw l.error}}return d}function wt(t,e){var r=e.get(t);if(!r)return{};if("compound"===t.type){var n=r[0];if(!n)return{};if(gt(n))return n.key}var i={};return r.forEach((function(t){i[t.key]=wt(t,e)})),i}function St(t){var e,r,n=new Map;try{for(var i=u(t),a=i.next();!a.done;a=i.next()){var o=a.value;n.has(o)||n.set(o,[]),o.parent&&(n.has(o.parent)||n.set(o.parent,[]),n.get(o.parent).push(o))}}catch(s){e={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n}function Ot(t,e){return wt(t,St(Tt([t],e)))}function kt(t,e){return Array.isArray(t)?t.some((function(t){return t===e})):t instanceof Set&&t.has(e)}function At(t,e){return"compound"===e.type?bt(e).some((function(e){return"final"===e.type&&kt(t,e)})):"parallel"===e.type&&bt(e).every((function(e){return At(t,e)}))}function Pt(t){return new Set(F(t.map((function(t){return t.tags}))))}function xt(t,e){if(t===e)return!0;
vendor: 9,704 bytes, line 1
1if(void 0===t||void 0===e)return!1;if(X(t)||X(e))return t===e;var r=Object.keys(t),n=Object.keys(e);return r.length===n.length&&r.every((function(r){return xt(t[r],e[r])}))}function Lt(t){return"object"===typeof t&&null!==t&&("value"in t&&"_event"in t)}var _t=function(){function t(t){var e,r,n=this;this.actions=[],this.activities=P,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||P,this.meta=(void 0===(r=t.configuration)&&(r=[]),r.reduce((function(t,e){return void 0!==e.meta&&(t[e.id]=e.meta),t}),{})),this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,this.tags=null!==(e=Array.isArray(t.tags)?new Set(t.tags):t.tags)&&void 0!==e?e:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return function(t){return c([],l(new Set(F(c([],l(t.map((function(t){return t.ownEvents}))),!1)))),!1)}(n.configuration)}})}return t.from=function(e,r){return e instanceof t?e.context!==r?new t({value:e.value,context:r,_event:e._event,_sessionid:null,historyValue:e.historyValue,history:e.history,actions:[],activities:e.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):e:new t({value:e,context:r,_event:ot,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},t.create=function(e){return new t(e)},t.inert=function(e,r){if(e instanceof t){if(!e.actions.length)return e;var n=ot;return new t({value:e.value,context:r,_event:n,_sessionid:null,historyValue:e.historyValue,history:e.history,activities:e.activities,configuration:e.configuration,transitions:[],children:{}})}return t.from(e,r)},t.prototype.toStrings=function(t,e){var r=this;if(void 0===t&&(t=this.value),void 0===e&&(e="."),X(t))return[t];var n=Object.keys(t);return n.concat.apply(n,c([],l(n.map((function(n){return r.toStrings(t[n],e).map((function(t){return n+e+t}))}))),!1))},t.prototype.toJSON=function(){var t=this;t.configuration,t.transitions;var e=t.tags;t.machine;var r=s(t,["configuration","transitions","tags","machine"]);return o(o({},r),{tags:Array.from(e)})},t.prototype.matches=function(t){return L(t,this.value)},t.prototype.hasTag=function(t){return this.tags.has(t)},t.prototype.can=function(t){var e;W(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var r=null===(e=this.machine)||void 0===e?void 0:e.getTransitionData(this,t);return!!(null===r||void 0===r?void 0:r.transitions.length)&&r.transitions.some((function(t){return void 0!==t.target||t.actions.length}))},t}(),Dt=[],Ct=function(t,e){Dt.push(t);var r=e(t);return Dt.pop(),r};function Rt(t){var e;return(e={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:t}}})[$]=function(){return this},e}function It(t,e,r,n){var i,a=nt(t.src),o=null===(i=null===e||void 0===e?void 0:e.options.services)||void 0===i?void 0:i[a.type],s=t.data?V(t.data,r,n):void 0,u=o?function(t,e,r){var n=Rt(e);if(n.deferred=!0,J(t)){var i=n.state=Ct(void 0,(function(){return(r?t.withContext(r):t).initialState}));n.getSnapshot=function(){return i}}return n}(o,t.id,s):Rt(t.id);return u.meta=t,u}function Mt(t){if("string"===typeof t){var e={type:t,toString:function(){return t}};return e}return t}function Nt(t){return o(o({type:T},t),{toJSON:function(){t.onDone,t.onError;var e=s(t,["onDone","onError"]);return o(o({},e),{type:T,src:Mt(t.src)})}})}var jt="",Ft="*",Ut={},Bt=function(t){return"#"===t[0]},Vt=function(){function t(e,r,n,i){var a,s=this;void 0===n&&(n="context"in e?e.context:void 0),this.config=e,this._context=n,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},r),this.parent=null===i||void 0===i?void 0:i.parent,this.key=this.config.key||(null===i||void 0===i?void 0:i.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||c([this.machine.key],l(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(a=this.config.schema)&&void 0!==a?a:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?I(this.config.states,(function(e,r){var n,i=new t(e,{},void 0,{parent:s,key:r});return Object.assign(s.idMap,o(((n={})[i.id]=i,n),i.idMap)),i})):Ut;var f=0;!function t(e){var r,n;e.order=f++;try{for(var i=u(bt(e)),a=i.next();!a.done;a=i.next()){t(a.value)}}catch(o){r={error:o}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(t){return t.event===jt})):jt in this.config.on),this.strict=!!this.config.strict,this.onEntry=B(this.config.entry||this.config.onEntry).map((function(t){return ut(t)})),this.onExit=B(this.config.exit||this.config.onExit).map((function(t){return ut(t)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=B(this.config.invoke).map((function(t,e){var r,n;if(J(t)){var i=at(s.id,e);return s.machine.options.services=o(((r={})[i]=t,r),s.machine.options.services),Nt({src:i,id:i})}if(X(t.src)){i=t.id||at(s.id,e);return Nt(o(o({},t),{id:i,src:t.src}))}if(J(t.src)||Y(t.src)){i=t.id||at(s.id,e);return s.machine.options.services=o(((n={})[i]=t.src,n),s.machine.options.services),Nt(o(o({id:i},t),{src:i}))}var a=t.src;return Nt(o(o({id:at(s.id,e)},t),{src:a}))})),this.activities=B(this.config.activities).concat(this.invoke).map((function(t){return ct(t)})),this.transition=this.transition.bind(this),this.tags=B(this.config.tags)}return t.prototype._init=function(){this.__cache.transitions||Et(this).forEach((function(t){return t.on}))},t.prototype.withConfig=function(e,r){var n=this.options,i=n.actions,a=n.activities,s=n.guards,u=n.services,l=n.delays;return new t(this.config,{actions:o(o({},i),e.actions),activities:o(o({},a),e.activities),guards:o(o({},s),e.guards),services:o(o({},u),e.services),delays:o(o({},l),e.delays)},null!==r&&void 0!==r?r:this.context)},t.prototype.withContext=function(e){return new t(this.config,this.options,e)},Object.defineProperty(t.prototype,"context",{get:function(){return Y(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:I(this.states,(function(t){return t.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){return this.definition},Object.defineProperty(t.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce((function(t,e){return t[e.eventType]=t[e.eventType]||[],t[e.eventType].push(e),t}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),t.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var e=t===jt,r=this.transitions.filter((function(r){var n=r.eventType===t;return e?n:n||r.eventType===Ft}));return this.__cache.candidates[t]=r,r},t.prototype.getDelayedTransitions=function(){var t=this,e=this.config.after;if(!e)return[];var r=function(e,r){var i=function(t,e){var r=e?"#".concat(e):"";return"".concat(n.After,"(").concat(t,")").concat(r)}(Y(e)?"".concat(t.id,":delay[").concat(r,"]"):e,t.id);return t.onEntry.push(dt(i,{delay:e})),t.onExit.push({type:m,sendId:i}),i};return(q(e)?e.map((function(t,e){var n=r(t.delay,e);return o(o({},t),{event:n})})):F(Object.keys(e).map((function(t,n){var i=e[t],a=X(i)?{target:i}:i,s=isNaN(+t)?t:+t,u=r(s,n);return B(a).map((function(t){return o(o({},t),{event:u,delay:s})}))})))).map((function(e){var r=e.delay;return o(o({},t.formatTransition(e)),{delay:r})}))},t.prototype.getStateNodes=function(t){var e,r=this;if(!t)return[];var n=t instanceof _t?t.value:C(t,this.delimiter);if(X(n)){var i=this.getStateNode(n).initial;
1return void 0!==i?this.getStateNodes(((e={})[n]=i,e)):[this,this.states[n]]}var a=Object.keys(n),o=[this];return o.push.apply(o,c([],l(F(a.map((function(t){return r.getStateNode(t).getStateNodes(n[t])})))),!1)),o},t.prototype.handles=function(t){var e=_(t);return this.events.includes(e)},t.prototype.resolveState=function(t){var e=t instanceof _t?t:_t.create(t),r=Array.from(Tt([],this.getStateNodes(e.value)));return new _t(o(o({},e),{value:this.resolve(e.value),configuration:r,done:At(r,this),tags:Pt(r),machine:this.machine}))},t.prototype.transitionLeafNode=function(t,e,r){var n=this.getStateNode(t).next(e,r);return n&&n.transitions.length?n:this.next(e,r)},t.prototype.transitionCompoundNode=function(t,e,r){var n=Object.keys(t),i=this.getStateNode(n[0])._transition(t[n[0]],e,r);return i&&i.transitions.length?i:this.next(e,r)},t.prototype.transitionParallelNode=function(t,e,r){var n,i,a={};try{for(var o=u(Object.keys(t)),s=o.next();!s.done;s=o.next()){var l=s.value,c=t[l];if(c){var f=this.getStateNode(l)._transition(c,e,r);f&&(a[l]=f)}}}catch(m){n={error:m}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}var d=Object.keys(a).map((function(t){return a[t]})),h=F(d.map((function(t){return t.transitions})));if(!d.some((function(t){return t.transitions.length>0})))return this.next(e,r);var p=F(d.map((function(t){return t.entrySet}))),v=F(Object.keys(a).map((function(t){return a[t].configuration})));return{transitions:h,entrySet:p,exitSet:F(d.map((function(t){return t.exitSet}))),configuration:v,source:e,actions:F(Object.keys(a).map((function(t){return a[t].actions})))}},t.prototype._transition=function(t,e,r){return X(t)?this.transitionLeafNode(t,e,r):1===Object.keys(t).length?this.transitionCompoundNode(t,e,r):this.transitionParallelNode(t,e,r)},t.prototype.getTransitionData=function(t,e){return this._transition(t.value,t,tt(e))},t.prototype.next=function(t,e){var r,n,i,a=this,o=e.name,s=[],f=[];try{for(var d=u(this.getCandidates(o)),h=d.next();!h.done;h=d.next()){var p=h.value,v=p.cond,m=p.in,y=t.context,g=!m||(X(m)&&Bt(m)?t.matches(C(this.getStateNodeById(m).path,this.delimiter)):L(C(m,this.delimiter),N(this.path.slice(0,-2))(t.value))),b=!1;try{b=!v||rt(this.machine,v,y,e,t)}catch(w){throw new Error("Unable to evaluate guard '".concat(v.name||v.type,"' in transition for event '").concat(o,"' in state node '").concat(this.id,"':\n").concat(w.message))}if(b&&g){void 0!==p.target&&(f=p.target),s.push.apply(s,c([],l(p.actions),!1)),i=p;break}}}catch(S){r={error:S}}finally{try{h&&!h.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}if(i){if(!f.length)return{transitions:[i],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:s};var E=F(f.map((function(e){return a.getRelativeStateNodes(e,t.historyValue)}))),T=!!i.internal;return{transitions:[i],entrySet:T?[]:F(E.map((function(t){return a.nodesFromChild(t)}))),exitSet:T?[]:[this],configuration:E,source:t,actions:s}}},t.prototype.nodesFromChild=function(t){if(t.escapes(this))return[];for(var e=[],r=t;r&&r!==this;)e.push(r),r=r.parent;return e.push(this),e},t.prototype.escapes=function(t){if(this===t)return!1;for(var e=this.parent;e;){if(e===t)return!1;e=e.parent}return!0},t.prototype.getActions=function(t,e,r,i){var a,o,s,f,d=Tt([],i?this.getStateNodes(i.value):[this]),h=t.configuration.length?Tt(d,t.configuration):d;try{for(var p=u(h),v=p.next();!v.done;v=p.next()){kt(d,g=v.value)||t.entrySet.push(g)}}catch(k){a={error:k}}finally{try{v&&!v.done&&(o=p.return)&&o.call(p)}finally{if(a)throw a.error}}try{for(var m=u(d),y=m.next();!y.done;y=m.next()){var g;kt(h,g=y.value)&&!kt(t.exitSet,g.parent)||t.exitSet.push(g)}}catch(A){s={error:A}}finally{try{y&&!y.done&&(f=m.return)&&f.call(m)}finally{if(s)throw s.error}}var b=F(t.entrySet.map((function(n){var i=[];if("final"!==n.type)return i;var a=n.parent;if(!a.parent)return i;i.push(ht(n.id,n.doneData),ht(a.id,n.doneData?V(n.doneData,e,r):void 0));var o=a.parent;return"parallel"===o.type&&bt(o).every((function(e){return At(t.configuration,e)}))&&i.push(ht(o.id)),i})));t.exitSet.sort((function(t,e){return e.order-t.order})),t.entrySet.sort((function(t,e){return t.order-e.order}));var E=new Set(t.entrySet),T=new Set(t.exitSet),w=l([F(Array.from(E).map((function(t){return c(c([],l(t.activities.map((function(t){return function(t){var e=ct(t);return{type:n.Start,activity:e,exec:void 0}}(t)}))),!1),l(t.onEntry),!1)}))).concat(b.map(ft)),F(Array.from(T).map((function(t){return c(c([],l(t.onExit),!1),l(t.activities.map((function(t){return function(t){var e=Y(t)?t:ct(t);return{type:n.Stop,activity:e,exec:void 0}}(t)}))),!1)})))],2),S=w[0],O=w[1];return lt(O.concat(t.actions).concat(S),this.machine.options.actions)},t.prototype.transition=function(t,e,r){void 0===t&&(t=this.initialState);var n,i,a=tt(e);if(t instanceof _t)n=void 0===r?t:this.resolveState(_t.from(t,r));else{var o=X(t)?this.resolve(R(this.getResolvedPath(t))):this.resolve(t),s=null!==r&&void 0!==r?r:this.machine.context;n=this.resolveState(_t.from(o,s))}if(this.strict&&!this.events.includes(a.name)&&(i=a.name,!/^(done|error)\./.test(i)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));
vendor: 13,407 bytes, line 1
1var u=this._transition(n.value,n,a)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:n,actions:[]},f=Tt([],this.getStateNodes(n.value)),d=u.configuration.length?Tt(f,u.configuration):f;return u.configuration=c([],l(d),!1),this.resolveTransition(u,n,n.context,a)},t.prototype.resolveRaisedTransition=function(t,e,r){var n,i=t.actions;return(t=this.transition(t,e))._event=r,t.event=r.data,(n=t.actions).unshift.apply(n,c([],l(i),!1)),t},t.prototype.resolveTransition=function(t,e,r,n){var a,s,c=this;void 0===n&&(n=ot);var f=t.configuration,m=!e||t.transitions.length>0,g=m?Ot(this.machine,f):void 0,b=e?e.historyValue?e.historyValue:t.source?this.machine.historyValue(e.value):void 0:void 0,E=this.getActions(t,r,n,e),w=e?o({},e.activities):{};try{for(var S=u(E),k=S.next();!k.done;k=S.next()){var A=k.value;A.type===d?w[A.activity.id||A.activity.type]=A:A.type===h&&(w[A.activity.id||A.activity.type]=!1)}}catch(Y){a={error:Y}}finally{try{k&&!k.done&&(s=S.return)&&s.call(S)}finally{if(a)throw a.error}}var P,x,L=l(mt(this,e,r,n,E,this.machine.config.preserveActionOrder),2),_=L[0],D=L[1],C=l(H(_,(function(t){return t.type===p||t.type===v&&t.to===i.Internal})),2),R=C[0],I=C[1],M=_.filter((function(t){var e;return t.type===d&&(null===(e=t.activity)||void 0===e?void 0:e.type)===T})),N=M.reduce((function(t,e){return t[e.activity.id]=It(e.activity,c.machine,D,n),t}),e?o({},e.children):{}),j=m?t.configuration:e?e.configuration:[],F=At(j,this),U=new _t({value:g||e.value,context:D,_event:n,_sessionid:e?e._sessionid:null,historyValue:g?b?(P=b,x=g,{current:x,states:z(P,x)}):void 0:e?e.historyValue:void 0,history:!g||t.source?e:void 0,actions:g?I:[],activities:g?w:e?e.activities:{},events:[],configuration:j,transitions:t.transitions,children:N,done:F,tags:Pt(j),machine:this}),B=r!==D;U.changed=n.name===O||B;var V=U.history;V&&delete V.history;var G=!F&&(this._transient||f.some((function(t){return t._transient})));if(!m&&(!G||n.name===jt))return U;var K=U;if(!F)for(G&&(K=this.resolveRaisedTransition(K,{type:y},n));R.length;){var W=R.shift();K=this.resolveRaisedTransition(K,W._event,n)}var q=K.changed||(V?!!K.actions.length||B||typeof V.value!==typeof K.value||!xt(K.value,V.value):void 0);return K.changed=q,K.history=V,K},t.prototype.getStateNode=function(t){if(Bt(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."));var e=this.states[t];if(!e)throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return e},t.prototype.getStateNodeById=function(t){var e=Bt(t)?t.slice("#".length):t;if(e===this.id)return this;var r=this.machine.idMap[e];if(!r)throw new Error("Child state node '#".concat(e,"' does not exist on machine '").concat(this.id,"'"));return r},t.prototype.getStateNodeByPath=function(t){if("string"===typeof t&&Bt(t))try{return this.getStateNodeById(t.slice(1))}catch(i){}for(var e=D(t,this.delimiter).slice(),r=this;e.length;){var n=e.shift();if(!n.length)break;r=r.getStateNode(n)}return r},t.prototype.resolve=function(t){var e,r=this;if(!t)return this.initialStateValue||Ut;switch(this.type){case"parallel":return I(this.initialStateValue,(function(e,n){return e?r.getStateNode(n).resolve(t[n]||e):Ut}));case"compound":if(X(t)){var n=this.getStateNode(t);return"parallel"===n.type||"compound"===n.type?((e={})[t]=n.initialStateValue,e):t}return Object.keys(t).length?I(t,(function(t,e){return t?r.getStateNode(e).resolve(t):Ut})):this.initialStateValue||{};default:return t||Ut}},t.prototype.getResolvedPath=function(t){if(Bt(t)){var e=this.machine.idMap[t.slice("#".length)];if(!e)throw new Error("Unable to find state node '".concat(t,"'"));return e.path}return D(t,this.delimiter)},Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var t,e;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)e=M(this.states,(function(t){return t.initialStateValue||Ut}),(function(t){return!("history"===t.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));e=gt(this.states[this.initial])?this.initial:((t={})[this.initial]=this.states[this.initial].initialStateValue,t)}else e={};return this.__cache.initialStateValue=e,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),t.prototype.getInitialState=function(t,e){this._init();var r=this.getStateNodes(t);return this.resolveTransition({configuration:r,entrySet:r,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!==e&&void 0!==e?e:this.machine.context,void 0)},Object.defineProperty(t.prototype,"initialState",{get:function(){var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){var t;if("history"===this.type){var e=this.config;t=X(e.target)&&Bt(e.target)?R(this.machine.getStateNodeById(e.target).path.slice(this.path.length-1)):e.target}return t},enumerable:!1,configurable:!0}),t.prototype.getRelativeStateNodes=function(t,e,r){return void 0===r&&(r=!0),r?"history"===t.type?t.resolveHistory(e):t.initialStateNodes:[t]},Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var t=this;return gt(this)?[this]:"compound"!==this.type||this.initial?F(j(this.initialStateValue).map((function(e){return t.getFromRelativePath(e)}))):[this]},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var e=l(t),r=e[0],n=e.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(r,"' from node with no states"));var i=this.getStateNode(r);if("history"===i.type)return i.resolveHistory();if(!this.states[r])throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return this.states[r].getFromRelativePath(n)},t.prototype.historyValue=function(t){if(Object.keys(this.states).length)return{current:t||this.initialStateValue,states:M(this.states,(function(e,r){if(!t)return e.historyValue();var n=X(t)?void 0:t[r];return e.historyValue(n||e.initialStateValue)}),(function(t){return!t.history}))}},t.prototype.resolveHistory=function(t){var e=this;if("history"!==this.type)return[this];var r=this.parent;if(!t){var n=this.target;return n?F(j(n).map((function(t){return r.getFromRelativePath(t)}))):r.initialStateNodes}var i,a,o=(i=r.path,a="states",function(t){var e,r,n=t;try{for(var o=u(i),s=o.next();!s.done;s=o.next()){var l=s.value;n=n[a][l]}}catch(c){e={error:c}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n})(t).current;return X(o)?[r.getStateNode(o)]:F(j(o).map((function(t){return"deep"===e.history?r.getFromRelativePath(t):[r.states[t[0]]]})))},Object.defineProperty(t.prototype,"stateIds",{get:function(){var t=this,e=F(Object.keys(this.states).map((function(e){return t.states[e].stateIds})));return[this.id].concat(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){var t,e,r,n;if(this.__cache.events)return this.__cache.events;var i=this.states,a=new Set(this.ownEvents);if(i)try{for(var o=u(Object.keys(i)),s=o.next();!s.done;s=o.next()){var l=i[s.value];if(l.states)try{for(var c=(r=void 0,u(l.events)),f=c.next();!f.done;f=c.next()){var d=f.value;a.add("".concat(d))}}catch(h){r={error:h}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}}catch(p){t={error:p}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(a)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter((function(t){return!(!t.target&&!t.actions.length&&t.internal)})).map((function(t){return t.eventType})));return Array.from(t)},enumerable:!1,configurable:!0}),t.prototype.resolveTarget=function(t){var e=this;if(void 0!==t)return t.map((function(t){if(!X(t))return t;var r=t[0]===e.delimiter;if(r&&!e.parent)return e.getStateNodeByPath(t.slice(1));var n=r?e.key+t:t;if(!e.parent)return e.getStateNodeByPath(n);try{return e.parent.getStateNodeByPath(n)}catch(i){throw new Error("Invalid transition definition for state node '".concat(e.id,"':\n").concat(i.message))}}))},t.prototype.formatTransition=function(t){var e=this,r=function(t){if(void 0!==t&&""!==t)return B(t)}(t.target),n="internal"in t?t.internal:!r||r.some((function(t){return X(t)&&t[0]===e.delimiter})),i=this.machine.options.guards,a=this.resolveTarget(r),s=o(o({},t),{actions:lt(B(t.actions)),cond:Z(t.cond,i),target:a,source:this,internal:n,eventType:t.event,toJSON:function(){return o(o({},s),{target:s.target?s.target.map((function(t){return"#".concat(t.id)})):void 0,source:"#".concat(e.id)})}});return s},t.prototype.formatTransitions=function(){var t,e,r,n=this;if(this.config.on)if(Array.isArray(this.config.on))r=this.config.on;else{var i=this.config.on,a=Ft,o=i[a],f=void 0===o?[]:o,d=s(i,["*"]);r=F(Object.keys(d).map((function(t){var e=et(t,d[t]);return e})).concat(et(Ft,f)))}else r=[];var h=this.config.always?et("",this.config.always):[],p=this.config.onDone?et(String(ht(this.id)),this.config.onDone):[];var v=F(this.invoke.map((function(t){var e=[];return t.onDone&&e.push.apply(e,c([],l(et(String(pt(t.id)),t.onDone)),!1)),t.onError&&e.push.apply(e,c([],l(et(String(vt(t.id)),t.onError)),!1)),e}))),m=this.after,y=F(c(c(c(c([],l(p),!1),l(v),!1),l(r),!1),l(h),!1).map((function(t){return B(t).map((function(t){return n.formatTransition(t)}))})));try{for(var g=u(m),b=g.next();!b.done;b=g.next()){var E=b.value;y.push(E)}}catch(T){t={error:T}}finally{try{b&&!b.done&&(e=g.return)&&e.call(g)}finally{if(t)throw t.error}}return y},t}();var Gt={deferEvents:!1},Ht=function(){function t(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=o(o({},Gt),t)}return t.prototype.initialize=function(t){if(this.initialized=!0,t){if(!this.options.deferEvents)return void this.schedule(t);this.process(t)}this.flushEvents()},t.prototype.schedule=function(t){if(this.initialized&&!this.processingEvent){if(0!==this.queue.length)throw new Error("Event queue should be empty when it is not processing events");this.process(t),this.flushEvents()}else this.queue.push(t)},t.prototype.clear=function(){this.queue=[]},t.prototype.flushEvents=function(){for(var t=this.queue.shift();t;)this.process(t),t=this.queue.shift()},t.prototype.process=function(t){this.processingEvent=!0;try{t()}catch(e){throw this.clear(),e}finally{this.processingEvent=!1}},t}(),zt=new Map,Kt=0,Wt=function(){return"x:".concat(Kt++)},qt=function(t,e){return zt.set(t,e),t},Yt=function(t){return zt.get(t)},Xt=function(t){zt.delete(t)};function Zt(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:void 0}function $t(t){if(Zt()){var e=function(){var t=Zt();if(t&&"__xstate__"in t)return t.__xstate__}();e&&e.register(t)}}function Jt(t,e){void 0===e&&(e={});var r=t.initialState,n=new Set,i=[],a=!1,s=function(t){var e;return o(((e={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[$]=function(){return this},e),t)}({id:e.id,send:function(e){i.push(e),function(){if(!a){for(a=!0;i.length>0;){var e=i.shift();r=t.transition(r,e,u),n.forEach((function(t){return t.next(r)}))}a=!1}}()},getSnapshot:function(){return r},subscribe:function(t,e,i){var a=it(t,e,i);return n.add(a),a.next(r),{unsubscribe:function(){n.delete(a)}}}}),u={parent:e.parent,self:s,id:e.id||"anonymous",observers:n};return r=t.start?t.start(u):r,s}var Qt,te={sync:!1,autoForward:!1};!function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"}(Qt||(Qt={}));var ee=function(){function t(e,r){var n=this;void 0===r&&(r=t.defaultOptions),this.machine=e,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=Qt.NotStarted,this.children=new Map,this.forwardTo=new Set,this.init=this.start,this.send=function(t,e){if(q(t))return n.batch(t),n.state;var r=tt(Q(t,e));if(n.status===Qt.Stopped)return n.state;if(n.status!==Qt.Running&&!n.options.deferEvents)throw new Error('Event "'.concat(r.name,'" was sent to uninitialized service "').concat(n.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(r.data)));return n.scheduler.schedule((function(){n.forward(r);var t=n.nextState(r);n.update(t,r)})),n._state},this.sendTo=function(t,e){var r,a=n.parent&&(e===i.Parent||n.parent.id===e),s=a?n.parent:X(e)?n.children.get(e)||Yt(e):(r=e)&&"function"===typeof r.send?e:void 0;if(s)"machine"in s?s.send(o(o({},t),{name:t.name===S?"".concat(vt(n.id)):t.name,origin:n.sessionId})):s.send(t.data);else if(!a)throw new Error("Unable to send event to child '".concat(e,"' from service '").concat(n.id,"'."))};var a=o(o({},t.defaultOptions),r),s=a.clock,u=a.logger,l=a.parent,c=a.id,f=void 0!==c?c:e.id;this.id=f,this.logger=u,this.clock=s,this.parent=l,this.options=a,this.scheduler
vendor: 4,452 bytes, line 1
1=new Ht({deferEvents:this.options.deferEvents}),this.sessionId=Wt()}return Object.defineProperty(t.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:Ct(this,(function(){return t._initialState=t.machine.initialState,t._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),t.prototype.execute=function(t,e){var r,n;try{for(var i=u(t.actions),a=i.next();!a.done;a=i.next()){var o=a.value;this.exec(o,t,e)}}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},t.prototype.update=function(t,e){var r,n,i,a,o,s,l,c,f=this;if(t._sessionid=this.sessionId,this._state=t,this.options.execute&&this.execute(this.state),this.children.forEach((function(t){f.state.children[t.id]=t})),this.devTools&&this.devTools.send(e.data,t),t.event)try{for(var d=u(this.eventListeners),h=d.next();!h.done;h=d.next()){(0,h.value)(t.event)}}catch(S){r={error:S}}finally{try{h&&!h.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}try{for(var p=u(this.listeners),v=p.next();!v.done;v=p.next()){(0,v.value)(t,t.event)}}catch(O){i={error:O}}finally{try{v&&!v.done&&(a=p.return)&&a.call(p)}finally{if(i)throw i.error}}try{for(var m=u(this.contextListeners),y=m.next();!y.done;y=m.next()){(0,y.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(k){o={error:k}}finally{try{y&&!y.done&&(s=m.return)&&s.call(m)}finally{if(o)throw o.error}}var g=At(t.configuration||[],this.machine);if(this.state.configuration&&g){var b=t.configuration.find((function(t){return"final"===t.type&&t.parent===f.machine})),E=b&&b.doneData?V(b.doneData,t.context,e):void 0;try{for(var T=u(this.doneListeners),w=T.next();!w.done;w=T.next()){(0,w.value)(pt(this.id,E))}}catch(A){l={error:A}}finally{try{w&&!w.done&&(c=T.return)&&c.call(T)}finally{if(l)throw l.error}}this.stop()}},t.prototype.onTransition=function(t){return this.listeners.add(t),this.status===Qt.Running&&t(this.state,this.state.event),this},t.prototype.subscribe=function(t,e,r){var n,i=this;if(!t)return{unsubscribe:function(){}};var a=r;return"function"===typeof t?n=t:(n=t.next.bind(t),a=t.complete.bind(t)),this.listeners.add(n),this.status!==Qt.NotStarted&&n(this.state),a&&(this.status===Qt.Stopped?a():this.onDone(a)),{unsubscribe:function(){n&&i.listeners.delete(n),a&&i.doneListeners.delete(a)}}},t.prototype.onEvent=function(t){return this.eventListeners.add(t),this},t.prototype.onSend=function(t){return this.sendListeners.add(t),this},t.prototype.onChange=function(t){return this.contextListeners.add(t),this},t.prototype.onStop=function(t){return this.stopListeners.add(t),this},t.prototype.onDone=function(t){return this.doneListeners.add(t),this},t.prototype.off=function(t){return this.listeners.delete(t),this.eventListeners.delete(t),this.sendListeners.delete(t),this.stopListeners.delete(t),this.doneListeners.delete(t),this.contextListeners.delete(t),this},t.prototype.start=function(t){var e=this;if(this.status===Qt.Running)return this;this.machine._init(),qt(this.sessionId,this),this.initialized=!0,this.status=Qt.Running;var r=void 0===t?this.initialState:Ct(this,(function(){return Lt(t)?e.machine.resolveState(t):e.machine.resolveState(_t.from(t,e.machine.context))}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){e.update(r,ot)})),this},t.prototype.stop=function(){var t,e,r,n,i,a,o,s,f,d,h=this;try{for(var p=u(this.listeners),v=p.next();!v.done;v=p.next()){var m=v.value;this.listeners.delete(m)}}catch(A){t={error:A}}finally{try{v&&!v.done&&(e=p.return)&&e.call(p)}finally{if(t)throw t.error}}try{for(var y=u(this.stopListeners),g=y.next();!g.done;g=y.next()){(m=g.value)(),this.stopListeners.delete(m)}}catch(P){r={error:P}}finally{try{g&&!g.done&&(n=y.return)&&n.call(y)}finally{if(r)throw r.error}}try{for(var b=u(this.contextListeners),E=b.next();!E.done;E=b.next()){m=E.value;this.contextListeners.delete(m)}}catch(x){i={error:x}}finally{try{E&&!E.done&&(a=b.return)&&a.call(b)}finally{if(i)throw i.error}}try{for(var T=u(this.doneListeners),w=T.next();!w.done;w=T.next()){m=w.value;this.doneListeners.delete(m)}}catch(L){o={error:L}}finally{try{w&&!w.done&&(s=T.return)&&s.call(T)}finally{if(o)throw o.error}}if(!this.initialized)return this;c([],l(this.state.configuration),!1).sort((function(t,e){return e.order-t.order}
vendor: 4,105 bytes, line 1
1)).forEach((function(t){var e,r;try{for(var n=u(t.definition.exit),i=n.next();!i.done;i=n.next()){var a=i.value;h.exec(a,h.state)}}catch(o){e={error:o}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}})),this.children.forEach((function(t){Y(t.stop)&&t.stop()})),this.children.clear();try{for(var S=u(Object.keys(this.delayedEventsMap)),O=S.next();!O.done;O=S.next()){var k=O.value;this.clock.clearTimeout(this.delayedEventsMap[k])}}catch(_){f={error:_}}finally{try{O&&!O.done&&(d=S.return)&&d.call(S)}finally{if(f)throw f.error}}return this.scheduler.clear(),this.scheduler=new Ht({deferEvents:this.options.deferEvents}),this.initialized=!1,this.status=Qt.Stopped,this._initialState=void 0,Xt(this.sessionId),this},t.prototype.batch=function(t){var e=this;if(this.status===Qt.NotStarted&&this.options.deferEvents)0;else if(this.status!==Qt.Running)throw new Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));this.scheduler.schedule((function(){var r,n,i=e.state,a=!1,s=[],f=function(t){var r=tt(t);e.forward(r),i=Ct(e,(function(){return e.machine.transition(i,r)})),s.push.apply(s,c([],l(i.actions.map((function(t){return function(t,e){var r=t.exec;return o(o({},t),{exec:void 0!==r?function(){return r(e.context,e.event,{action:t,state:e,_event:e._event})}:void 0})}(t,i)}))),!1)),a=a||!!i.changed};try{for(var d=u(t),h=d.next();!h.done;h=d.next()){f(h.value)}}catch(p){r={error:p}}finally{try{h&&!h.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}i.changed=a,i.actions=s,e.update(i,tt(t[t.length-1]))}))},t.prototype.sender=function(t){return this.send.bind(this,t)},t.prototype.nextState=function(t){var e=this,r=tt(t);if(0===r.name.indexOf(w)&&!this.state.nextEvents.some((function(t){return 0===t.indexOf(w)})))throw r.data.data;return Ct(this,(function(){return e.machine.transition(e.state,r)}))},t.prototype.forward=function(t){var e,r;try{for(var n=u(this.forwardTo),i=n.next();!i.done;i=n.next()){var a=i.value,o=this.children.get(a);if(!o)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(a,"'."));o.send(t)}}catch(s){e={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},t.prototype.defer=function(t){var e=this;this.delayedEventsMap[t.id]=this.clock.setTimeout((function(){t.to?e.sendTo(t._event,t.to):e.send(t._event)}),t.delay)},t.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]),delete this.delayedEventsMap[t]},t.prototype.exec=function(t,e,r){void 0===r&&(r=this.machine.options.actions);var i=e.context,a=e._event,o=t.exec||st(t.type,r),s=Y(o)?o:o?o.exec:t.exec;if(s)try{return s(i,a.data,{action:t,state:this.state,_event:a})}catch(k){throw this.parent&&this.parent.send({type:"xstate.error",data:k}),k}switch(t.type){case v:var u=t;if("number"===typeof u.delay)return void this.defer(u);u.to?this.sendTo(u._event,u.to):this.send(u._event);break;case m:this.cancel(t.sendId);break;case d:if(this.status!==Qt.Running)return;var l=t.activity;if(!this.state.activities[l.id||l.type])break;if(l.type===n.Invoke){var c=nt(l.src),f=this.machine.options.services?this.machine.options.services[c.type]:void 0,p=l.id,y=l.data;0;var g="autoForward"in l?l.autoForward:!!l.forward;if(!f)return void 0;var E=y?V(y,i,a):void 0;if("string"===typeof f)return;var T=Y(f)?f(i,a.data,{data:E,src:c,meta:l.meta}):f;if(!T)return;var w=void 0;J(T)&&(T=E?T.withContext(E):T,w={autoForward:g}),this.spawn(T,p,w)}else this.spawnActivity(l);break;case h:this.stopChild(t.activity.id);break;case b:var S=t.label,O=t.value;S?this.logger(S,O):this.logger(O)}},t.prototype.removeChild=function(t){var e;this.children.delete(t),this.forwardTo.delete(t),null===(e=this.state)||void 0===e||delete e.children[t]},t.prototype.stopChild=function(t){var e=this.children.get(t);e&&(this.removeChild(t),Y(e.stop)&&e.stop())},t.prototype.spawn=function(t,e,r){if(G(t))return this.spawnProm
vendor: 4,648 bytes, line 1
1ise(Promise.resolve(t),e);if(Y(t))return this.spawnCallback(t,e);if(function(t){try{return"function"===typeof t.send}catch(e){return!1}}(i=t)&&"id"in i)return this.spawnActor(t,e);if(function(t){try{return"subscribe"in t&&Y(t.subscribe)}catch(e){return!1}}(t))return this.spawnObservable(t,e);if(J(t))return this.spawnMachine(t,o(o({},r),{id:e}));if(null!==(n=t)&&"object"===typeof n&&"transition"in n&&"function"===typeof n.transition)return this.spawnBehavior(t,e);throw new Error('Unable to spawn entity "'.concat(e,'" of type "').concat(typeof t,'".'));var n,i},t.prototype.spawnMachine=function(e,r){var n=this;void 0===r&&(r={});var i=new t(e,o(o({},this.options),{parent:this,id:r.id||e.id})),a=o(o({},te),r);a.sync&&i.onTransition((function(t){n.send(O,{state:t,id:i.id})}));var s=i;return this.children.set(i.id,s),a.autoForward&&this.forwardTo.add(i.id),i.onDone((function(t){n.removeChild(i.id),n.send(tt(t,{origin:i.id}))})).start(),s},t.prototype.spawnBehavior=function(t,e){var r=Jt(t,{id:e,parent:this});return this.children.set(e,r),r},t.prototype.spawnPromise=function(t,e){var r,n,i=this,a=!1;t.then((function(t){a||(n=t,i.removeChild(e),i.send(tt(pt(e,t),{origin:e})))}),(function(t){if(!a){i.removeChild(e);var r=vt(e,t);try{i.send(tt(r,{origin:e}))}catch(n){i.devTools&&i.devTools.send(r,i.state),i.machine.strict&&i.stop()}}}));var o=((r={id:e,send:function(){},subscribe:function(e,r,n){var i=it(e,r,n),a=!1;return t.then((function(t){a||(i.next(t),a||i.complete())}),(function(t){a||i.error(t)})),{unsubscribe:function(){return a=!0}}},stop:function(){a=!0},toJSON:function(){return{id:e}},getSnapshot:function(){return n}})[$]=function(){return this},r);return this.children.set(e,o),o},t.prototype.spawnCallback=function(t,e){var r,n,i,a=this,o=!1,s=new Set,u=new Set;try{i=t((function(t){n=t,u.forEach((function(e){return e(t)})),o||a.send(tt(t,{origin:e}))}),(function(t){s.add(t)}))}catch(c){this.send(vt(e,c))}if(G(i))return this.spawnPromise(i,e);var l=((r={id:e,send:function(t){return s.forEach((function(e){return e(t)}))},subscribe:function(t){var e=it(t);return u.add(e.next),{unsubscribe:function(){u.delete(e.next)}}},stop:function(){o=!0,Y(i)&&i()},toJSON:function(){return{id:e}},getSnapshot:function(){return n}})[$]=function(){return this},r);return this.children.set(e,l),l},t.prototype.spawnObservable=function(t,e){var r,n,i=this,a=t.subscribe((function(t){n=t,i.send(tt(t,{origin:e}))}),(function(t){i.removeChild(e),i.send(tt(vt(e,t),{origin:e}))}),(function(){i.removeChild(e),i.send(tt(pt(e),{origin:e}))})),o=((r={id:e,send:function(){},subscribe:function(e,r,n){return t.subscribe(e,r,n)},stop:function(){return a.unsubscribe()},getSnapshot:function(){return n},toJSON:function(){return{id:e}}})[$]=function(){return this},r);return this.children.set(e,o),o},t.prototype.spawnActor=function(t,e){return this.children.set(e,t),t},t.prototype.spawnActivity=function(t){var e=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(e){var r=e(this.state.context,t);this.spawnEffect(t.id,r)}},t.prototype.spawnEffect=function(t,e){var r;this.children.set(t,((r={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:e||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}})[$]=function(){return this},r))},t.prototype.attachDev=function(){var t=Zt();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var e="object"===typeof this.options.devTools?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(o(o({name:this.id,autoPause:!0,stateSanitizer:function(t){return{value:t.value,context:t.context,actions:t.actions}}},e),{features:o({jump:!1,skip:!1},e?e.features:void 0)}),this.machine),this.devTools.init(this.state)}$t(this)}},t.prototype.toJSON=function(){return{id:this.id}},t.prototype[$]=function(){return this},t.prototype.getSnapshot=function(){return this.status===Qt.NotStarted?this.initialState:this._state},t.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(t,e){return setTimeout(t,e)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:!1},t.interpret=re,t}();function re(t,e){return new ee(t,e)}function ne(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ie(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}
1)))),n.forEach((function(e){ne(t,e,r[e])}))}return t}var ae,oe,se,ue={month:5,year:2021,zone:"America/Los_Angeles"},le={NFT_ON_SALE:{countdown:a.ou.fromObject(ie({},ue,{day:1,hour:20})),expires:a.ou.fromObject(ie({},ue,{day:2,hour:2}))},ONLY_1_OF_1:{countdown:a.ou.fromObject(ie({},ue,{day:2,hour:20})),expires:a.ou.fromObject(ie({},ue,{day:3,hour:2}))},SOLD_OUT:{expires:void 0,countdown:void 0}},ce=re((ae={id:"applicationState",initial:a.ou.local()<le.NFT_ON_SALE.expires?"NFT_ON_SALE":a.ou.local()<le.ONLY_1_OF_1.expires?"ONLY_1_OF_1":"SOLD_OUT",context:{preview:!1,countdown:void 0},on:{EXPLICIT:[{cond:function(t,e){return"NFT_ON_SALE"===e.to},target:"NFT_ON_SALE"},{cond:function(t,e){return"ONLY_1_OF_1"===e.to},target:"ONLY_1_OF_1"},{cond:function(t,e){return"SOLD_OUT"===e.to},target:"SOLD_OUT"}]},states:{NFT_ON_SALE:{entry:yt({countdown:function(){return le.NFT_ON_SALE.countdown.diff(a.ou.local(),["days","hours","minutes","seconds"])}}),always:{cond:function(t){return!t.preview&&a.ou.local()>le.NFT_ON_SALE.expires},target:"ONLY_1_OF_1"},after:{1e3:"NFT_ON_SALE"}},ONLY_1_OF_1:{entry:yt({countdown:function(){return le.ONLY_1_OF_1.countdown.diff(a.ou.local(),["days","hours","minutes","seconds"])}}),always:{cond:function(t){return!t.preview&&a.ou.local()>le.ONLY_1_OF_1.expires},target:"SOLD_OUT"},after:{1e3:"ONLY_1_OF_1"}},SOLD_OUT:{entry:yt({countdown:function(){}}),after:{1e3:"SOLD_OUT"}}}},void 0===se&&(se=ae.context),new Vt(ae,oe,se)));ce.start();var fe=ce},9749:function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a=[],o=!0,s=!1;try{for(r=r.call(t);!(o=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);o=!0);}catch(u){s=!0,i=u}finally{try{o||null==r.return||r.return()}finally{if(s)throw i}}return a}}(t,e)||s(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){if(t){if("string"===typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.src,r=t.sizes,n=t.unoptimized,s=void 0!==n&&n,u=t.priority,l=void 0!==u&&u,v=t.loading,m=t.lazyRoot,w=void 0===m?null:m,P=t.lazyBoundary,L=void 0===P?"200px":P,_=t.className,D=t.quality,C=t.width,R=t.height,I=t.style,M=t.objectFit,N=t.objectPosition,j=t.onLoadingComplete,F=(t.onError,t.placeholder),U=void 0===F?"empty":F,B=t.blurDataURL,V=g(t,["src","sizes","unoptimized","priority","loading","lazyRoot","lazyBoundary","className","quality","width","height","style","objectFit","objectPosition","onLoadingComplete","onError","placeholder","blurDataURL"]),G=c.useContext(p.ImageConfigContext),H=c.useMemo((function(){var t=b||G||d.imageConfigDefault,e=o(t.deviceSizes).concat(o(t.imageSizes)).sort((function(t,e){return t-e})),r=t.deviceSizes.sort((function(t,e){return t-e}));return y({},t,{allSizes:e,deviceSizes:r})}),[G]),z=V,K=r?"responsive":"intrinsic";"layout"in z&&(z.layout&&(K=z.layout),delete z.layout);var W=A;if("loader"in z){if(z.loader){var q=z.loader;W=function(t){t.config;var e=g(t,["config"]);return q(e)}}delete z.loader}var Y="";if(function(t){return"object"===typeof t&&(S(t)||function(t){return void 0!==t.src}(t))}(e)){var X=S(e)?e.default:e;if(!X.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ".concat(JSON.stringify(X)));if(B=B||X.blurDataURL,Y=X.src,(!K||"fill"!==K)&&(R=R||X.height,C=C||X.width,!X.height||!X.width))throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ".concat(JSON.stringify(X)))}e="string"===typeof e?e:Y;var Z=k(C),$=k(R),J=k(D),Q=!l&&("lazy"===v||"undefined"===typeof v);(e.startsWith("data:")||e.startsWith("blob:"))&&(s=!0,Q=!1);E.has(e)&&(Q=!1);var tt,et=a(c.useState(!1),2),rt=et[0],nt=et[1],it=a(h.useIntersection({rootRef:w,rootMargin:L,disabled:!Q}),3),at=it[0],ot=it[1],st=it[2],ut=!Q||ot,lt={boxSizing:"border-box",display:"block",overflow:"hidden",
1width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},ct={boxSizing:"border-box",display:"block",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},ft=!1,dt={position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",padding:0,border:"none",margin:"auto",display:"block",width:0,height:0,minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",objectFit:M,objectPosition:N};0;0;var ht=Object.assign({},I,"raw"===K?{aspectRatio:"".concat(Z," / ").concat($)}:dt),pt="blur"!==U||rt?{}:{filter:"blur(20px)",backgroundSize:M||"cover",backgroundImage:'url("'.concat(B,'")'),backgroundPosition:N||"0% 0%"};if("fill"===K)lt.display="block",lt.position="absolute",lt.top=0,lt.left=0,lt.bottom=0,lt.right=0;else if("undefined"!==typeof Z&&"undefined"!==typeof $){var vt=$/Z,mt=isNaN(vt)?"100%":"".concat(100*vt,"%");"responsive"===K?(lt.display="block",lt.position="relative",ft=!0,ct.paddingTop=mt):"intrinsic"===K?(lt.display="inline-block",lt.position="relative",lt.maxWidth="100%",ft=!0,ct.maxWidth="100%",tt="data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27".concat(Z,"%27%20height=%27").concat($,"%27/%3e")):"fixed"===K&&(lt.display="inline-block",lt.position="relative",lt.width=Z,lt.height=$)}else 0;var yt={src:T,srcSet:void 0,sizes:void 0};ut&&(yt=O({config:H,src:e,unoptimized:s,layout:K,width:Z,quality:J,sizes:r,loader:W}));var gt=e;0;var bt,Et="imagesrcset",Tt="imagesizes";Et="imageSrcSet",Tt="imageSizes";var wt=(i(bt={},Et,yt.srcSet),i(bt,Tt,yt.sizes),bt),St=c.default.useLayoutEffect,Ot=c.useRef(j),kt=c.useRef(e);c.useEffect((function(){Ot.current=j}),[j]),St((function(){kt.current!==e&&(st(),kt.current=e)}),[st,e]);var At=y({isLazy:Q,imgAttributes:yt,heightInt:$,widthInt:Z,qualityInt:J,layout:K,className:_,imgStyle:ht,blurStyle:pt,loading:v,config:H,unoptimized:s,placeholder:U,loader:W,srcString:gt,onLoadingCompleteRef:Ot,setBlurComplete:nt,setIntersection:at,isVisible:ut},z);return c.default.createElement(c.default.Fragment,null,"raw"===K?c.default.createElement(x,Object.assign({},At)):c.default.createElement("span",{style:lt},ft?c.default.createElement("span",{style:ct},tt?c.default.createElement("img",{style:{display:"block",maxWidth:"100%",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},alt:"","aria-hidden":!0,src:tt}):null):null,c.default.createElement(x,Object.assign({},At))),l?c.default.createElement(f.default,null,c.default.createElement("link",Object.assign({key:"__nimg-"+yt.src+yt.srcSet+yt.sizes,rel:"preload",as:"image",href:yt.srcSet?void 0:yt.src},wt))):null)};var u,l,c=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};n.get||n.set?Object.defineProperty(e,r,n):e[r]=t[r]}return e.default=t,e}(r(7294)),f=(u=r(3121))&&u.__esModule?u:{default:u},d=r(139),h=r(9246),p=r(8730),v=(r(670),r(2700));function m(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y(t){for(var e=arguments,r=function(r){var n=null!=e[r]?e[r]:{},i=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){m(t,e,n[e])}))},n=1;n<arguments.length;n++)r(n);return t}function g(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}l={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",experimentalLayoutRaw:!1};var b={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",experimentalLayoutRaw:!1},E=new Set,T=(new Map,"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");var w=new Map([["default",function(t){var e=t.config,r=t.src,n=t.width,i=t.quality;0;if(r.endsWith(".svg")&&!e.dangerouslyAllowSVG)return r;return"".concat(v.normalizePathTrailingSlash(e.path),"?url=").concat(encodeURIComponent(r),"&w=").concat(n,"&q=").concat(i||75)}],["imgix",function(t){var e=t.config,r=t.src,n=t.width,i=t.quality,a=new URL("".concat(e.path).concat(L(r))),o=a.searchParams;o.set("auto",o.get("auto")||"format"),o.set("fit",o.get("fit")||"max"),o.set("w",o.get("w")||n.toString()),i&&o.set("q",i.toString());return a.href}],["cloudinary",function(t){var e=t.config,r=t.src,n=t.width,i=t.quality,a=["f_auto","c_limit","w_"+n,"q_"+(i||"auto")].join(",")+"/";return"".concat(e.path).concat(a).concat(L(r))}],["akamai",function(t){var e=t.config,r=t.src,n=t.width;return"".concat(e.path).concat(L(r),"?imwidth=").concat(n)}],["custom",function(t){var e=t.src;throw new Error('Image with src "'.concat(e,'" is missing "loader" prop.')+"\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader")}]]);function S(t){return void 0!==t.default}function O(t){var e=t.config,r=t.src,n=t.unoptimized,i=t.layout,a=t.width,s=t.quality,u=t.sizes,l=t.loader;if(n)return{src:r,srcSet:void 0,sizes:void 0};var c=function(t,e,r,n){var i=t.deviceSizes,a=t.allSizes;if(n&&("fill"===r||"responsive"===r||"raw"===r)){for(var s,u=/(^|\s)(1?\d?\d)vw/g,l=[];s=u.exec(n);s)l.push(parseInt(s[2]));if(l.length){var c,f=.01*(c=Math).min.apply(c,o(l));return{widths:a.filter((function(t){return t>=i[0]*f})),kind:"w"}}return{widths:a,kind:"w"}}return"number"!==typeof e||"fill"===r||"responsive"===r?{widths:i,kind:"w"}:{widths:o(new Set([e,2*e].map((function(t){return a.find((function(e){return e>=t}))||a[a.length-1]})))),kind:"x"}}(e,a,i,u),f=c.widths,d=c.kind,h=f.length-1;return{sizes:u||"w"!==d?u:"100vw",srcSet:f.map((function(t,n){return"".concat(l({config:e,src:r,quality:s,width:t})," ").concat("w"===d?t:n+1).concat(d)})).join(", "),src:l({config:e,src:r,quality:s,width:f[h]})}}function k(t){return"number"===typeof t?t:"string"===typeof t?parseInt(t,10):void 0}function A(t){var e,r=(null===(e=t.config)||void 0===e?void 0:e.loader)||"default",n=w.get(r);if(n)return n(t);throw new Error('Unknown "loader" found in "next.config.js". Expected: '.concat(d.VALID_LOADERS.join(", "),". Received: ").concat(r))}function P(t,e,r,n,i,a){t&&t.src!==T&&t["data-loaded-src"]!==e&&(t["data-loaded-src"]=e,("decode"in t?t.decode():Promise.resolve()).catch((function(){})).then((function(){if(t.parentNode&&(E.add(e),"blur"===n&&a(!0),null===i||void 0===i?void 0:i.current)){var r=t.naturalWi
1dth,o=t.naturalHeight;i.current({naturalWidth:r,naturalHeight:o})}})))}var x=function(t){var e=t.imgAttributes,r=t.heightInt,n=t.widthInt,i=t.qualityInt,a=t.layout,o=t.className,s=t.imgStyle,u=t.blurStyle,l=t.isLazy,f=t.placeholder,d=t.loading,h=t.srcString,p=t.config,v=t.unoptimized,m=t.loader,b=t.onLoadingCompleteRef,E=t.setBlurComplete,T=t.setIntersection,w=t.onError,S=(t.isVisible,g(t,["imgAttributes","heightInt","widthInt","qualityInt","layout","className","imgStyle","blurStyle","isLazy","placeholder","loading","srcString","config","unoptimized","loader","onLoadingCompleteRef","setBlurComplete","setIntersection","onError","isVisible"]));return c.default.createElement(c.default.Fragment,null,c.default.createElement("img",Object.assign({},S,e,"raw"!==a||e.sizes?{}:{height:r,width:n},{decoding:"async","data-nimg":a,className:o,style:y({},s,u),ref:c.useCallback((function(t){T(t),(null===t||void 0===t?void 0:t.complete)&&P(t,h,0,f,b,E)}),[T,h,a,f,b,E]),onLoad:function(t){P(t.currentTarget,h,0,f,b,E)},onError:function(t){"blur"===f&&E(!0),w&&w(t)}})),(l||"blur"===f)&&c.default.createElement("noscript",null,c.default.createElement("img",Object.assign({},S,O({config:p,src:h,unoptimized:v,layout:a,width:n,quality:i,sizes:e.sizes,loader:m}),"raw"!==a||e.sizes?{}:{height:r,width:n},{decoding:"async","data-nimg":a,style:s,className:o,loading:d||"lazy"}))))};function L(t){return"/"===t[0]?t.slice(1):t}("function"===typeof e.default||"object"===typeof e.default&&null!==e.default)&&(Object.assign(e.default,e),t.exports=e.default)},1551:function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a=[],o=!0,s=!1;try{for(r=r.call(t);!(o=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);o=!0);}catch(u){s=!0,i=u}finally{try{o||null==r.return||r.return()}finally{if(s)throw i}}return a}}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a,o=(a=r(7294))&&a.__esModule?a:{default:a},s=r(1003),u=r(880),l=r(9246);var c={};function f(t,e,r,n){if(t&&s.isLocalURL(e)){t.prefetch(e,r,n).catch((function(t){0}));var i=n&&"undefined"!==typeof n.locale?n.locale:t&&t.locale;c[e+"%"+r+(i?"%"+i:"")]=!0}}var d=function(t){var e,r=!1!==t.prefetch,n=u.useRouter(),a=o.default.useMemo((function(){var e=i(s.resolveHref(n,t.href,!0),2),r=e[0],a=e[1];return{href:r,as:t.as?s.resolveHref(n,t.as):a||r}}),[n,t.href,t.as]),d=a.href,h=a.as,p=o.default.useRef(d),v=o.default.useRef(h),m=t.children,y=t.replace,g=t.shallow,b=t.scroll,E=t.locale;"string"===typeof m&&(m=o.default.createElement("a",null,m));var T=(e=o.default.Children.only(m))&&"object"===typeof e&&e.ref,w=i(l.useIntersection({rootMargin:"200px"}),3),S=w[0],O=w[1],k=w[2],A=o.default.useCallback((function(t){v.current===h&&p.current===d||(k(),v.current=h,p.current=d),S(t),T&&("function"===typeof T?T(t):"object"===typeof T&&(T.current=t))}),[h,T,d,k,S]);o.default.useEffect((function(){var t=O&&r&&s.isLocalURL(d),e="undefined"!==typeof E?E:n&&n.locale,i=c[d+"%"+h+(e?"%"+e:"")];t&&!i&&f(n,d,h,{locale:e})}),[h,d,O,E,r,n]);var P={ref:A,onClick:function(t){e.props&&"function"===typeof e.props.onClick&&e.props.onClick(t),t.defaultPrevented||function(t,e,r,n,i,a,o,u){("A"!==t.currentTarget.nodeName.toUpperCase()||!function(t){var e=t.currentTarget.target;return e&&"_self"!==e||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which}(t)&&s.isLocalURL(r))&&(t.preventDefault(),e[i?"replace":"push"](r,n,{shallow:a,locale:u,scroll:o}))}(t,n,d,h,y,g,b,E)},onMouseEnter:function(t){e.props&&"function"===typeof e.props.onMouseEnter&&e.props.onMouseEnter(t),s.isLocalURL(d)&&f(n,d,h,{priority:!0})}};if(t.passHref||"a"===e.type&&!("href"in e.props)){var x="undefined"!==typeof E?E:n&&n.locale,L=n&&n.isLocaleDomain&&s.getDomainLocale(h,x,n&&n.locales,n&&n.domainLocales);P.href=L||s.addBasePath(s.addLocale(h,x,n&&n.defaultLocale))}return o.default.cloneElement(e,P)};e.default=d,("function"===typeof e.default||"object"===typeof e.default&&null!==e.default)&&(Object.assign(e.default,e),t.exp
1orts=e.default)},9246:function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a=[],o=!0,s=!1;try{for(r=r.call(t);!(o=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);o=!0);}catch(u){s=!0,i=u}finally{try{o||null==r.return||r.return()}finally{if(s)throw i}}return a}}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Object.defineProperty(e,"__esModule",{value:!0}),e.useIntersection=function(t){var e=t.rootRef,r=t.rootMargin,n=t.disabled||!s,c=a.useRef(),f=i(a.useState(!1),2),d=f[0],h=f[1],p=i(a.useState(e?e.current:null),2),v=p[0],m=p[1],y=a.useCallback((function(t){c.current&&(c.current(),c.current=void 0),n||d||t&&t.tagName&&(c.current=function(t,e,r){var n=function(t){var e,r={root:t.root||null,margin:t.rootMargin||""},n=l.find((function(t){return t.root===r.root&&t.margin===r.margin}));n?e=u.get(n):(e=u.get(r),l.push(r));if(e)return e;var i=new Map,a=new IntersectionObserver((function(t){t.forEach((function(t){var e=i.get(t.target),r=t.isIntersecting||t.intersectionRatio>0;e&&r&&e(r)}))}),t);return u.set(r,e={id:r,observer:a,elements:i}),e}(r),i=n.id,a=n.observer,o=n.elements;return o.set(t,e),a.observe(t),function(){if(o.delete(t),a.unobserve(t),0===o.size){a.disconnect(),u.delete(i);var e=l.findIndex((function(t){return t.root===i.root&&t.margin===i.margin}));e>-1&&l.splice(e,1)}}}(t,(function(t){return t&&h(t)}),{root:v,rootMargin:r}))}),[n,v,r,d]),g=a.useCallback((function(){h(!1)}),[]);return a.useEffect((function(){if(!s&&!d){var t=o.requestIdleCallback((function(){return h(!0)}));return function(){return o.cancelIdleCallback(t)}}}),[d]),a.useEffect((function(){e&&m(e.current)}),[e]),[y,d,g]};var a=r(7294),o=r(4686),s="undefined"!==typeof IntersectionObserver;var u=new Map,l=[];("function"===typeof e.default||"object"===typeof e.default&&null!==e.default)&&(Object.assign(e.default,e),t.exports=e.default)},3847:function(t,e,r){"use strict";r.r(e);var n=r(5893),i=(r(6774),r(9008)),a=r(9597),o=r(2962);function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){s(t,e,r[e])}))}return t}e.default=function(t){var e=t.Component,r=t.pageProps;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.default,{children:(0,n.jsx)("link",{rel:"stylesheet",href:"https://rsms.me/inter/inter.css"})}),(0,n.jsx)(o.lX,{title:"Golden State Warriors Playoff NFT Collection",titleTemplate:"Golden State Warriors Playoff NFT Collection \u2013 %s",description:"The GSW Playoff NFT collection consists of 2,999 NFTs and 11 unique designs. Every NFT is randomly assigned when minted and contains unique unlockables.",canonical:"https://www.gswnft.com",openGraph:{url:"https://www.gswnft.com",type:"website",title:"Golden State Warriors Playoff NFT Collection",description:"The GSW Playoff NFT collection consists of 2,999 NFTs and 11 unique designs. Every NFT is randomly assigned when minted and contains unique unlockables.",images:[{url:"https://www.gswnft.com/images/meta-og.jpeg",width:1200,height:627,alt:"Golden State Warriors Playoff NFT Collection"}],site_name:"Golden State Warriors Playoff NFT Collection"},twitter:{cardType:"summary_large_image",site:"@warriors"},noindex:!1,nofollow:!1}),(0,n.jsx)(a.ZY,{children:(0,n.jsxs)(a.Cc,{children:[(0,n.jsx)(e,u({},r)),(0,n.jsx)(a.bZ,{})]})})]})}},6774:function(){},7663:function(t){!function(){var e={162:function(t){var e,r,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"===typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var s,u=[],l=!1,c=-1;function f(){l&&s&&(l=!1,s.length?u=s.concat(u):c=-1,u.length&&d())}function d(){if(!l){var t=o(f);l=!0;for(var e=u.length;e;){for(s=u,u=[];++c<e;)s&&s[c].run();c=-1,e=u.length}s=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);
1if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function p(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new h(t,e)),1!==u.length||l||o(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var a=r[t]={exports:{}},o=!0;try{e[t](a,a.exports,n),o=!1}finally{o&&delete r[t]}return a.exports}n.ab="//";var i=n(162);t.exports=i}()},9008:function(t,e,r){t.exports=r(3121)},5675:function(t,e,r){t.exports=r(9749)},1664:function(t,e,r){t.exports=r(1551)},1163:function(t,e,r){t.exports=r(880)},2703:function(t,e,r){"use strict";var n=r(414);function i(){}function a(){}a.resetWarningCache=i,t.exports=function(){function t(t,e,r,i,a,o){if(o!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:a,resetWarningCache:i}
1;return r.PropTypes=r,r}},5697:function(t,e,r){t.exports=r(2703)()},414:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9359:function(t,e,r){"use strict";var n,i=r(7294),a=(n=i)&&"object"===typeof n&&"default"in n?n.default:n,o=new(r(3451)),s=o.getBrowser(),u=(o.getCPU(),o.getDevice()),l=o.getEngine(),c=o.getOS(),f=o.getUA(),d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";return t||e},h=function(){return!("undefined"===typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},p=function(t){var e=h();return e&&e.platform&&(-1!==e.platform.indexOf(t)||"MacIntel"===e.platform&&e.maxTouchPoints>1&&!window.MSStream)};function v(t){return v="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function m(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function y(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function g(){return g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},g.apply(this,arguments)}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function E(t){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},E(t)}function T(t,e){return T=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},T(t,e)}function w(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function S(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var O="mobile",k="tablet",A="smarttv",P="console",x="wearable",L=void 0,_={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},D={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},C={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},R=function(t,e,r,n){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(r,!0).forEach((function(e){y(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t,{vendor:d(e.vendor),model:d(e.model),os:d(r.name),osVersion:d(r.version),ua:d(n)})},I=function(t){switch(t){case O:return{isMobile:!0};case k:return{isTablet:!0};case A:return{isSmartTV:!0};case P:return{isConsole:!0};case x:return{isWearable:!0};case L:return{isBrowser:!0};default:return C}}(u.type);var M=function(){return"string"===typeof f&&-1!==f.indexOf("Edg/")},N=function(){return u.type===L},j=function(){return s.name===_.Edge},F=function(){return p("iPad")},U=u.type===A,B=u.type===P,V=u.type===x,G=s.name===_.MobileSafari||F(),H=s.name===_.Chromium,z=function(){switch(u.type){case O:case k:return!0;default:return!1}}()||F(),K=u.type===O,W=u.type===k||F(),q=N(),Y=N(),X=c.name===D.Android,Z=c.name===D.WindowsPhone,$=c.name===D.IOS||F(),J=s.name===_.Chrome,Q=s.name===_.Firefox,tt=s.name===_.Safari||s.name===_.MobileSafari,et=s.name===_.Opera,rt=s.name===_.InternetExplorer||s.name===_.Ie,nt=d(c.version),it=d(c.name),at=d(s.version),ot=d(s.major),st=d(s.name),ut=d(u.vendor),lt=d(u.model),ct=d(l.name),ft=d(l.version),dt=d(f),ht=j()||M(),pt=s.name===_.Yandex,vt=d(u.type,"browser"),mt=function(){var t=h();return t&&(/iPad|iPhone|iPod/.test(t.platform)||"MacIntel"===t.platform&&t.maxTouchPoints>1)&&!window.MSStream}(),yt=F(),gt=p("iPhone"),bt=p("iPod"),Et=function(){var t=h(),e=t&&t.userAgent&&t.userAgent.toLowerCase();return"string"===typeof e&&/electron/.test(e)}(),Tt=M(),wt=j()&&!M(),St=c.name===D.Windows,Ot=c.name===D.MAC_OS,kt=s.name===_.MIUI,At=s.name===_.SamsungBrowser;e.tq=z},9590:function(t){var e="undefined"!==typeof Element,r="function"===typeof Map,n="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(t,o){if(t===o)return!0;
1if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var s,u,l,c;if(Array.isArray(t)){if((s=t.length)!=o.length)return!1;for(u=s;0!==u--;)if(!a(t[u],o[u]))return!1;return!0}if(r&&t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(c=t.entries();!(u=c.next()).done;)if(!o.has(u.value[0]))return!1;for(c=t.entries();!(u=c.next()).done;)if(!a(u.value[1],o.get(u.value[0])))return!1;return!0}if(n&&t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(c=t.entries();!(u=c.next()).done;)if(!o.has(u.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(o)){if((s=t.length)!=o.length)return!1;for(u=s;0!==u--;)if(t[u]!==o[u])return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if((s=(l=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(u=s;0!==u--;)if(!Object.prototype.hasOwnProperty.call(o,l[u]))return!1;if(e&&t instanceof Element)return!1;for(u=s;0!==u--;)if(("_owner"!==l[u]&&"__v"!==l[u]&&"__o"!==l[u]||!t.$$typeof)&&!a(t[l[u]],o[l[u]]))return!1;return!0}return t!==t&&o!==o}t.exports=function(t,e){try{return a(t,e)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}}},722:function(t,e,r){"use strict";function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,a=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!==typeof t)return{default:t};var e=l();if(e&&e.has(t))return e.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}r.default=t,e&&e.set(t,r);return r}(r(7294)),o=(i=r(9590))&&i.__esModule?i:{default:i},s=r(5741),u=r(8045);function l(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return l=function(){return t},t}function c(){return c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},c.apply(this,arguments)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function p(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=y(t);if(e){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return v(this,r)}}function v(t,e){return!e||"object"!==n(e)&&"function"!==typeof e?m(t):e}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function g(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(s,t);var e,r,n,i=p(s);function s(){var t;f(this,s);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return g(m(t=i.call.apply(i,[this].concat(r))),"mounted",!1),g(m(t),"isReady",!1),g(m(t),"isPlaying",!1),g(m(t),"isLoading",!0),g(m(t),"loadOnReady",null),g(m(t),"startOnPlay",!0),g(m(t),"seekOnPlay",null),g(m(t),"onDurationCalled",!1),g(m(t),"handlePlayerMount",(function(e){t.player=e,t.player.load(t.props.url),t.progress()})),g(m(t),"getInternalPlayer",(function(e){return t.player?t.player[e]:null})),g(m(t),"progress",(function(){if(t.props.url&&t.player&&t.isReady){var e=t.getCurrentTime()||0,r=t.getSecondsLoaded(),n=t.getDuration();if(n){var i={playedSeconds:e,played:e/n};null!==r&&(i.loadedSeconds=r,i.loaded=r/n),i.playedSeconds===t.prevPlayed&&i.loadedSeconds===t.prevLoaded||t.props.onProgress(i),t.prevPlayed=i.playedSeconds,t.prevLoaded=i.loadedSeconds}}t.progressTimeout=setTimeout(t.progress,t.props.progressFrequency||t.props.progressInterval)})),g(m(t),"handleReady",(function(){if(t.mounted){t.isReady=!0,t.isLoading=!1;var e=t.props,r=e.onReady,n=e.playing,i=e.volume,a=e.muted;r(),a||null===i||t.player.setVolume(i),t.loadOnReady?(t.player.load(t.loadOnReady,!0),t.loadOnReady=null):n&&t.player.play(),t.handleDurationCheck()}})),g(m(t),"handlePlay",(function(){t.isPlaying=!0,t.isLoading=!1;var e=t.props,r=e.onStart,n=e.onPlay,i=e.playbackRate;t.startOnPlay&&(t.player.setPlaybackRate&&1!==i&&t.player.setPlaybackRate(i),r(),t.startOnPlay=!1),n(),t.seekOnPlay&&(t.seekTo(t.seekOnPlay),t.seekOnPlay=null),t.handleDurationCheck()})),g(m(t),"handlePause",(function(e){t.isPlaying=!1,t.isLoading||t.props.onPause(e)})),g(m(t),"handleEnded",(function(){var e=t.props,r=e.activePlayer,n=e.loop,i=e.onEnded;r.loopOnEnded&&n&&t.seekTo(0),n||(t.isPlaying=!1,i())})),g(m(t),"handleError",(function(){var e;t.isLoading=!1,(e=t.props).onError.apply(e,arguments)})),g(m(t),"handleDurationCheck",(function(){clearTimeout(t.durationCheckTimeout);var e=t.getDuration();e?t.onDurationCalled||(t.props.onDuration(e),t.onDurationCalled=!0):t.durationCheckTimeout=setTimeout(t.handleDurationCheck,100)})),g(m(t),"handleLoaded",(function(){t.isLoading=!1})),t}return e=s,r=[{key:"componentDidMount",value:function(){this.mounted=!0}},{key:"componentWillUnmount",value:function(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP(
1)),this.mounted=!1}},{key:"componentDidUpdate",value:function(t){var e=this;if(this.player){var r=this.props,n=r.url,i=r.playing,a=r.volume,s=r.muted,l=r.playbackRate,c=r.pip,f=r.loop,d=r.activePlayer,h=r.disableDeferredLoading;if(!(0,o.default)(t.url,n)){if(this.isLoading&&!d.forceLoad&&!h&&!(0,u.isMediaStream)(n))return console.warn("ReactPlayer: the attempt to load ".concat(n," is being deferred until the player has loaded")),void(this.loadOnReady=n);this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(n,this.isReady)}t.playing||!i||this.isPlaying||this.player.play(),t.playing&&!i&&this.isPlaying&&this.player.pause(),!t.pip&&c&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!c&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==a&&null!==a&&this.player.setVolume(a),t.muted!==s&&(s?this.player.mute():(this.player.unmute(),null!==a&&setTimeout((function(){return e.player.setVolume(a)})))),t.playbackRate!==l&&this.player.setPlaybackRate&&this.player.setPlaybackRate(l),t.loop!==f&&this.player.setLoop&&this.player.setLoop(f)}}},{key:"getDuration",value:function(){return this.isReady?this.player.getDuration():null}},{key:"getCurrentTime",value:function(){return this.isReady?this.player.getCurrentTime():null}},{key:"getSecondsLoaded",value:function(){return this.isReady?this.player.getSecondsLoaded():null}},{key:"seekTo",value:function(t,e){var r=this;if(this.isReady){if(e?"fraction"===e:t>0&&t<1){var n=this.player.getDuration();return n?void this.player.seekTo(n*t):void console.warn("ReactPlayer: could not seek using fraction \u2013\xa0duration not yet available")}this.player.seekTo(t)}else 0!==t&&(this.seekOnPlay=t,setTimeout((function(){r.seekOnPlay=null}),5e3))}},{key:"render",value:function(){var t=this.props.activePlayer;return t?a.default.createElement(t,c({},this.props,{onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError})):null}}],r&&d(e.prototype,r),n&&d(e,n),s}(a.Component);e.default=b,g(b,"displayName","Player"),g(b,"propTypes",s.propTypes),g(b,"defaultProps",s.defaultProps)},3855:function(t,e,r){"use strict";function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!==typeof t)return{default:t};var e=a();if(e&&e.has(t))return e.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var s=i?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}r.default=t,e&&e.set(t,r);return r}(r(7294));function a(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return a=function(){return t},t}function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){v(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p(t);if(e){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return d(this,r)}}function d(t,e){return!e||"object"!==n(e)&&"function"!==typeof e?h(t):e}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
1function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function v(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var m="64px",y={},g=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(o,t);var e,r,n,a=f(o);function o(){var t;u(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(h(t=a.call.apply(a,[this].concat(r))),"mounted",!1),v(h(t),"state",{image:null}),v(h(t),"handleKeyPress",(function(e){"Enter"!==e.key&&" "!==e.key||t.props.onClick()})),t}return e=o,(r=[{key:"componentDidMount",value:function(){this.mounted=!0,this.fetchImage(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.url,n=e.light;t.url===r&&t.light===n||this.fetchImage(this.props)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"fetchImage",value:function(t){var e=this,r=t.url,n=t.light,i=t.oEmbedUrl;if("string"!==typeof n){if(!y[r])return this.setState({image:null}),window.fetch(i.replace("{url}",r)).then((function(t){return t.json()})).then((function(t){if(t.thumbnail_url&&e.mounted){var n=t.thumbnail_url.replace("height=100","height=480");e.setState({image:n}),y[r]=n}}));this.setState({image:y[r]})}else this.setState({image:n})}},{key:"render",value:function(){var t=this.props,e=t.onClick,r=t.playIcon,n=t.previewTabIndex,a=this.state.image,o={display:"flex",alignItems:"center",justifyContent:"center"},u={preview:s({width:"100%",height:"100%",backgroundImage:a?"url(".concat(a,")"):void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer"},o),shadow:s({background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:m,width:m,height:m},o),playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},l=i.default.createElement("div",{style:u.shadow,className:"react-player__shadow"},i.default.createElement("div",{style:u.playIcon,className:"react-player__play-icon"}));return i.default.createElement("div",{style:u.preview,className:"react-player__preview",onClick:e,tabIndex:n,onKeyPress:this.handleKeyPress},r||l)}}])&&l(e.prototype,r),n&&l(e,n),o}(i.Component);e.default=g},390:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createReactPlayer=void 0;var n=A(r(7294)),i=c(r(9996)),a=c(r(845)),o=c(r(9590)),s=r(5741),u=r(8045),l=c(r(722));function c(t){return t&&t.__esModule?t:{default:t}}function f(t){return f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){O(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function p(){return p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},p.apply(this,arguments)}function v(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return m(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function b(t,e){return b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},b(t,e)}function E(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=S(t);if(e){var i=S(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return T(this,r)}}function T(t,e){return!e||"object"!==f(e)&&"function"!==typeof e?w(t):e}function w(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
1function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},S(t)}function O(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function k(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return k=function(){return t},t}function A(t){if(t&&t.__esModule)return t;if(null===t||"object"!==f(t)&&"function"!==typeof t)return{default:t};var e=k();if(e&&e.has(t))return e.get(t);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=n?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=t[i]}return r.default=t,e&&e.set(t,r),r}var P=(0,n.lazy)((function(){return Promise.resolve().then((function(){return A(r(3855))}))})),x="undefined"!==typeof window&&window.document,L="undefined"!==typeof r.g&&r.g.window&&r.g.window.document,_=Object.keys(s.propTypes),D=x||L?n.Suspense:function(){return null},C=[];e.createReactPlayer=function(t,e){var r,c;return c=r=function(r){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(T,r);var c,f,d,m=E(T);function T(){var r;y(this,T);for(var o=arguments.length,c=new Array(o),f=0;f<o;f++)c[f]=arguments[f];return O(w(r=m.call.apply(m,[this].concat(c))),"state",{showPreview:!!r.props.light}),O(w(r),"references",{wrapper:function(t){r.wrapper=t},player:function(t){r.player=t}}),O(w(r),"handleClickPreview",(function(t){r.setState({showPreview:!1}),r.props.onClickPreview(t)})),O(w(r),"showPreview",(function(){r.setState({showPreview:!0})})),O(w(r),"getDuration",(function(){return r.player?r.player.getDuration():null})),O(w(r),"getCurrentTime",(function(){return r.player?r.player.getCurrentTime():null})),O(w(r),"getSecondsLoaded",(function(){return r.player?r.player.getSecondsLoaded():null})),O(w(r),"getInternalPlayer",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"player";return r.player?r.player.getInternalPlayer(t):null})),O(w(r),"seekTo",(function(t,e){if(!r.player)return null;r.player.seekTo(t,e)})),O(w(r),"handleReady",(function(){r.props.onReady(w(r))})),O(w(r),"getActivePlayer",(0,a.default)((function(r){for(var n=0,i=[].concat(C,v(t));n<i.length;n++){var a=i[n];if(a.canPlay(r))return a}return e||null}))),O(w(r),"getConfig",(0,a.default)((function(t,e){var n=r.props.config;return i.default.all([s.defaultProps.config,s.defaultProps.config[e]||{},n,n[e]||{}])}))),O(w(r),"getAttributes",(0,a.default)((function(t){return(0,u.omit)(r.props,_)}))),O(w(r),"renderActivePlayer",(function(t){if(!t)return null;var e=r.getActivePlayer(t);if(!e)return null;var i=r.getConfig(t,e.key);return n.default.createElement(l.default,p({},r.props,{key:e.key,ref:r.references.player,config:i,activePlayer:e.lazyPlayer||e,onReady:r.handleReady}))})),r}return c=T,f=[{key:"shouldComponentUpdate",value:function(t,e){return!(0,o.default)(this.props,t)||!(0,o.default)(this.state,e)}},{key:"componentDidUpdate",value:function(t){var e=this.props.light;!t.light&&e&&this.setState({showPreview:!0}),t.light&&!e&&this.setState({showPreview:!1})}},{key:"renderPreview",value:function(t){if(!t)return null;var e=this.props,r=e.light,i=e.playIcon,a=e.previewTabIndex,o=e.oEmbedUrl;return n.default.createElement(P,{url:t,light:r,playIcon:i,previewTabIndex:a,oEmbedUrl:o,onClick:this.handleClickPreview})}},{key:"render",value:function(){var t=this.props,e=t.url,r=t.style,i=t.width,a=t.height,o=t.fallback,s=t.wrapper,u=this.state.showPreview,l=this.getAttributes(e);return n.default.createElement(s,p({ref:this.references.wrapper,style:h(h({},r),{},{width:i,height:a})},l),n.default.createElement(D,{fallback:o},u?this.renderPreview(e):this.renderActivePlayer(e)))}}],f&&g(c.prototype,f),d&&g(c,d),T}(n.Component),O(r,"displayName","ReactPlayer"),O(r,"propTypes",s.propTypes),O(r,"defaultProps",s.defaultProps),O(r,"addCustomPlayer",(function(t){C.push(t)})),O(r,"removeCustomPlayers",(function(){C.length=0})),O(r,"canPlay",(function(e){for(var r=0,n=[].concat(C,v(t));r<n.length;r++){if(n[r].canPlay(e))return!0}return!1})),O(r,"canEnablePIP",(function(e){for(var r=0,n=[].concat(C,v(t));r<n.length;r++){var i=n[r];if(i.canEnablePIP&&i.canEnablePIP(e))return!0}return!1})),c}},2004:function(t,e,r){"use strict";e.Z=void 0;var n,i=(n=r(6497))&&n.__esModule?n:{default:n},a=r(390);var o=i.default[i.default.length-1],s=(0,a.createReactPlayer)(i.default,o);e.Z=s},1776:function(t,e,r){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.canPlay=e.FLV_EXTENSIONS=e.DASH_EXTENSIONS=e.HLS_EXTENSIONS=e.VIDEO_EXTENSIONS=e.AUDIO_EXTENSIONS=e.MATCH_URL_KALTURA=e.MATCH_URL_VIDYARD=e.MATCH_URL_MIXCLOUD=e.MATCH_URL_DAILYMOTION=e.MATCH_URL_TWITCH_CHANNEL=e.MATCH_URL_TWITCH_VIDEO=e.MATCH_URL_WISTIA=e.MATCH_URL_STREAMABLE=e.MATCH_URL_FACEBOOK_WATCH=e.MATCH_URL_FACEBOOK=e.MATCH_URL_VIMEO=e.MATCH_URL_SOUNDCLOUD=e.MATCH_URL_YOUTUBE=void 0;var n=r(8045);function i(t,e){var r;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"===typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var o=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//;e.MATCH_URL_YOUTUBE=o;var s=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/;e.MATCH_URL_SOUNDCLOUD=s;var u=/vimeo\.com\/(?!progressive_redirect).+/;e.MATCH_URL_VIMEO=u;var l=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;e.MATCH_URL_FACEBOOK=l;var c=/^https?:\/\/fb\.watch\/.+$/;e.MATCH_URL_FACEBOOK_WATCH=c;var f=/streamable\.com\/([a-z0-9]+)$/;e.MATCH_URL_STREAMABLE=f;var d=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?(.*)$/;e.MATCH_URL_WISTIA=d;var h=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;e.MATCH_URL_TWITCH_VIDEO=h;var p=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/;e.MATCH_URL_TWITCH_CHANNEL=p;var v=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;e.MATCH_URL_DAILYMOTION=v;var m=/mixcloud\.com\/([^/]+\/[^/]+)/;e.MATCH_URL_MIXCLOUD=m;var y=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/;e.MATCH_URL_VIDYARD=y;var g=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_]+)$/;e.MATCH_URL_KALTURA=g;var b=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;e.AUDIO_EXTENSIONS=b;var E=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i;e.VIDEO_EXTENSIONS=E;var T=/\.(m3u8)($|\?)/i;e.HLS_EXTENSIONS=T;var w=/\.(mpd)($|\?)/i;e.DASH_EXTENSIONS=w;var S=/\.(flv)($|\?)/i;e.FLV_EXTENSIONS=S;var O={youtube:function(t){return t instanceof Array?t.every((function(t){return o.test(t)})):o.test(t)},soundcloud:function(t){return s.test(t)&&!b.test(t)},vimeo:function(t){return u.test(t)&&!E.test(t)&&!T.test(t)},facebook:function(t){return l.test(t)||c.test(t)},streamable:function(t){return f.test(t)},wistia:function(t){return d.test(t)},twitch:function(t){return h.test(t)||p.test(t)},dailymotion:function(t){return v.test(t)},mixcloud:function(t){return m.test(t)},vidyard:function(t){return y.test(t)},kaltura:function(t){return g.test(t)},file:function t(e){if(e instanceof Array){var r,a=i(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;if("string"===typeof o&&t(o))return!0;if(t(o.src))return!0}}catch(s){a.e(s)}finally{a.f()}return!1}return!(!(0,n.isMediaStream)(e)&&!(0,n.isBlobUrl)(e))||(b.test(e)||E.test(e)||T.test(e)||w.test(e)||S.test(e))}};e.canPlay=O},6807:function(t,e,r){"use strict";function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}
1Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!==typeof t)return{default:t};var e=s();if(e&&e.has(t))return e.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}r.default=t,e&&e.set(t,r);return r}(r(7294)),a=r(8045),o=r(1776);function s(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){b(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(u){i=!0,a=u}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function p(t,e){return p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},p(t,e)}function v(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=g(t);if(e){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return m(this,r)}}function m(t,e){return!e||"object"!==n(e)&&"function"!==typeof e?y(t):e}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function b(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var E=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(u,t);var e,r,n,s=v(u);function u(){var t;d(this,u);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b(y(t=s.call.apply(s,[this].concat(r))),"callPlayer",a.callPlayer),b(y(t),"onDurationChange",(function(){var e=t.getDuration();t.props.onDuration(e)})),b(y(t),"mute",(function(){t.callPlayer("setMuted",!0)})),b(y(t),"unmute",(function(){t.callPlayer("setMuted",!1)})),b(y(t),"ref",(function(e){t.container=e})),t}return e=u,(r=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(t){var e=this,r=this.props,n=r.controls,i=r.config,s=r.onError,u=r.playing,f=c(t.match(o.MATCH_URL_DAILYMOTION),2)[1];this.player?this.player.load(f,{start:(0,a.parseStartTime)(t),autoplay:u}):(0,a.getSDK)("https://api.dmcdn.net/all.js","DM","dmAsyncInit",(function(t){return t.player})).then((function(r){if(e.container){var o=r.player;e.player=new o(e.container,{width:"100%",height:"100%",video:f,params:l({controls:n,autoplay:e.props.playing,mute:e.props.muted,start:(0,a.parseStartTime)(t),origin:window.location.origin},i.params),events:{apiready:e.props.onReady,seeked:function(){return e.props.onSeek(e.player.currentTime)},video_end:e.props.onEnded,durationchange:e.onDurationChange,pause:e.props.onPause,playing:e.props.onPlay,waiting:e.props.onBuffer,error:function(t){return s(t)}}})}}),s)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(t){this.callPlayer("seek",t)}},{key:"setVolume",value:function(t){this.callPlayer("setVolume",t)}},{key:"getDuration",value:function(){return this.player.duration||null}},{key:"getCurrentTime",value:function(){return this.player.currentTime}},{key:"getSecondsLoaded",value:function(){return this.player.bufferedTime}},{key:"render",value:function(){var t={width:"100%",height:"100%",display:this.props.display};return i.default.createElement("div",{style:t},i.default.createElement("div",{ref:this.ref}))}}])&&h(e.prototype,r),n&&h(e,n),u}(i.Component);e.default=E,b(E,"displayName","DailyMotion"),b(E,"canPlay",o.canPlay.dailymotion),b(E,"loopOnEnded",!0)},1972:function(t,e,r){"use strict";function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}
1Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!==typeof t)return{default:t};var e=s();if(e&&e.has(t))return e.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}r.default=t,e&&e.set(t,r);return r}(r(7294)),a=r(8045),o=r(1776);function s(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u.apply(this,arguments)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(t,e){return f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},f(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=v(t);if(e){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h(this,r)}}function h(t,e){return!e||"object"!==n(e)&&"function"!==typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function m(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}
1var y="https://connect.facebook.net/en_US/sdk.js",g="fbAsyncInit",b="facebook-player-",E=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(s,t);var e,r,n,o=d(s);function s(){var t;l(this,s);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return m(p(t=o.call.apply(o,[this].concat(r))),"callPlayer",a.callPlayer),m(p(t),"playerID",t.props.config.playerId||"".concat(b).concat((0,a.randomString)())),m(p(t),"mute",(function(){t.callPlayer("mute")})),m(p(t),"unmute",(function(){t.callPlayer("unmute")})),t}return e=s,(r=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(t,e){var r=this;e?(0,a.getSDK)(y,"FB",g).then((function(t){return t.XFBML.parse()})):(0,a.getSDK)(y,"FB",g).then((function(t){t.init({appId:r.props.config.appId,xfbml:!0,version:r.props.config.version}),t.Event.subscribe("xfbml.render",(function(t){r.props.onLoaded()})),t.Event.subscribe("xfbml.ready",(function(t){"video"===t.type&&t.id===r.playerID&&(r.player=t.instance,r.player.subscribe("startedPlaying",r.props.onPlay),r.player.subscribe("paused",r.props.onPause),r.player.subscribe("finishedPlaying",r.props.onEnded),r.player.subscribe("startedBuffering",r.props.onBuffer),r.player.subscribe("finishedBuffering",r.props.onBufferEnd),r.player.subscribe("error",r.props.onError),r.props.muted?r.callPlayer("mute"):r.callPlayer("unmute"),r.props.onReady(),document.getElementById(r.playerID).querySelector("iframe").style.visibility="visible")}))}))}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(t){this.callPlayer("seek",t)}},{key:"setVolume",value:function(t){this.callPlayer("setVolume",t)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentPosition")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var t=this.props.config.attributes;return i.default.createElement("div",u({style:{width:"100%",height:"100%"},id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false"},t))}}])&&c(e.prototype,r),n&&c(e,n),s}(i.Component);e.default=E,m(E,"displayName","Facebook"),m(E,"canPlay",o.canPlay.facebook),m(E,"loopOnEnded",!0)},4926:function(t,e,r){"use strict";function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!==typeof t)return{default:t};var e=s();if(e&&e.has(t))return e.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}r.default=t,e&&e.set(t,r);return r}(r(7294)),a=r(8045),o=r(1776);function s(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u.apply(this,arguments)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(t,e){return f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},f(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=v(t);if(e){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h(this,r)}}function h(t,e){return!e||"object"!==n(e)&&"function"!==typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}
1function m(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var y="undefined"!==typeof navigator,g=y&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,b=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||g)&&!window.MSStream,E=/www\.dropbox\.com\/.+/,T=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,w=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(h,t);var e,r,n,s=d(h);function h(){var t;l(this,h);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return m(p(t=s.call.apply(s,[this].concat(r))),"onReady",(function(){var e;return(e=t.props).onReady.apply(e,arguments)})),m(p(t),"onPlay",(function(){var e;return(e=t.props).onPlay.apply(e,arguments)})),m(p(t),"onBuffer",(function(){var e;return(e=t.props).onBuffer.apply(e,arguments)})),m(p(t),"onBufferEnd",(function(){var e;return(e=t.props).onBufferEnd.apply(e,arguments)})),m(p(t),"onPause",(function(){var e;return(e=t.props).onPause.apply(e,arguments)})),m(p(t),"onEnded",(function(){var e;return(e=t.props).onEnded.apply(e,arguments)})),m(p(t),"onError",(function(){var e;return(e=t.props).onError.apply(e,arguments)})),m(p(t),"onPlayBackRateChange",(function(e){return t.props.onPlaybackRateChange(e.target.playbackRate)})),m(p(t),"onEnablePIP",(function(){var e;return(e=t.props).onEnablePIP.apply(e,arguments)})),m(p(t),"onDisablePIP",(function(e){var r=t.props,n=r.onDisablePIP,i=r.playing;n(e),i&&t.play()})),m(p(t),"onPresentationModeChange",(function(e){if(t.player&&(0,a.supportsWebKitPresentationMode)(t.player)){var r=t.player.webkitPresentationMode;"picture-in-picture"===r?t.onEnablePIP(e):"inline"===r&&t.onDisablePIP(e)}})),m(p(t),"onSeek",(function(e){t.props.onSeek(e.target.currentTime)})),m(p(t),"mute",(function(){t.player.muted=!0})),m(p(t),"unmute",(function(){t.player.muted=!1})),m(p(t),"renderSourceElement",(function(t,e){return"string"===typeof t?i.default.createElement("source",{key:e,src:t}):i.default.createElement("source",u({key:e},t))})),m(p(t),"renderTrack",(function(t,e){return i.default.createElement("track",u({key:e},t))})),m(p(t),"ref",(function(e){t.player&&(t.prevPlayer=t.player),t.player=e})),t}return e=h,(r=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player),b&&this.player.load()}},{key:"componentDidUpdate",value:function(t){this.shouldUseAudio(this.props)!==this.shouldUseAudio(t)&&(this.removeListeners(this.prevPlayer,t.url),this.addListeners(this.player)),this.props.url===t.url||(0,a.isMediaStream)(this.props.url)||(this.player.srcObject=null)}},{key:"componentWillUnmount",value:function(){this.removeListeners(this.player),this.hls&&this.hls.destroy()}},{key:"addListeners",value:function(t){var e=this.props,r=e.url,n=e.playsinline;t.addEventListener("play",this.onPlay),t.addEventListener("waiting",this.onBuffer),t.addEventListener("playing",this.onBufferEnd),t.addEventListener("pause",this.onPause),t.addEventListener("seeked",this.onSeek),t.addEventListener("ended",this.onEnded),t.addEventListener("error",this.onError),t.addEventListener("ratechange",this.onPlayBackRateChange),t.addEventListener("enterpictureinpicture",this.onEnablePIP),t.addEventListener("leavepictureinpicture",this.onDisablePIP),t.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(r)||t.addEventListener("canplay",this.onReady),n&&(t.setAttribute("playsinline",""),t.setAttribute("webkit-playsinline",""),t.setAttribute("x5-playsinline",""))}},{key:"removeListeners",value:function(t,e){t.removeEventListener("canplay",this.onReady),t.removeEventListener("play",this.onPlay),t.removeEventListener("waiting",this.onBuffer),t.removeEventListener("playing",this.onBufferEnd),t.removeEventListener("pause",this.onPause),t.removeEventListener("seeked",this.onSeek),t.removeEventListener("ended",this.onEnded),t.removeEventListener("error",this.onError),t.removeEventListener("ratechange",this.onPlayBackRateChange),t.removeEventListener("enterpictureinpicture",this.onEnablePIP),t.removeEventListener("leavepictureinpicture",this.onDisablePIP),t.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(e)||t.removeEventListener("canplay",this.onReady)}},{key:"shouldUseAudio",value:function(t){return!t.config.forceVideo&&!t.config.attributes.poster&&(o.AUDIO_EXTENSIONS.test(t.url)||t.config.forceAudio)}},{key:"shouldUseHLS",value:function(t){return!!this.props.config.forceHLS||!b&&(o.HLS_EXTENSIONS.test(t)||T.test(t))}},{key:"shouldUseDASH",value:function(t){return o.DASH_EXTENSIONS.test(t)||this.props.config.forceDASH}},{key:"shouldUseFLV",value:function(t){return o.FLV_EXTENSIONS.test(t)||this.props.config.forceFLV}},{key:"load",value:function(t){var e=this,r=this.props.config,n=r.hlsVersion,i=r.hlsOptions,o=r.dashVersion,s=r.flvVersion;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(t)&&(0,a.getSDK)("https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js".replace("VERSION",n),"Hls").then((function(r){if(e.hls=new r(i),e.hls.on(r.Events.MANIFEST_PARSED,(function(){e.props.onReady()})),e.hls.on(r.Events.ERROR,(function(t,n){e.props.onError(t,n,e.hls,r)})),T.test(t)){var n=t.match(T)[1];e.hls.loadSource("https://videodelivery.net/{id}/manifest/video.m3u8".replace("{id}",n))}else e.hls.loadSource(t);e.hls.attachMedia(e.player),e.props.onLoaded()})),this.shouldUseDASH(t)&&(0,a.getSDK)("https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js".replace("VERSION",o),"dashjs").then((function(r){e.dash=r.MediaPlayer().create(),e.dash.initialize(e.player,t,e.props.playing),e.dash.on("error",e.props.onError),parseInt(o)<3?e.dash.getDebug().set
1LogToBrowserConsole(!1):e.dash.updateSettings({debug:{logLevel:r.Debug.LOG_LEVEL_NONE}}),e.props.onLoaded()})),this.shouldUseFLV(t)&&(0,a.getSDK)("https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js".replace("VERSION",s),"flvjs").then((function(r){e.flv=r.createPlayer({type:"flv",url:t}),e.flv.attachMediaElement(e.player),e.flv.load(),e.props.onLoaded()})),t instanceof Array)this.player.load();else if((0,a.isMediaStream)(t))try{this.player.srcObject=t}catch(u){this.player.src=window.URL.createObjectURL(t)}}},{key:"play",value:function(){var t=this.player.play();t&&t.catch(this.props.onError)}},{key:"pause",value:function(){this.player.pause()}},{key:"stop",value:function(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}},{key:"seekTo",value:function(t){this.player.currentTime=t}},{key:"setVolume",value:function(t){this.player.volume=t}},{key:"enablePIP",value:function(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&"picture-in-picture"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("picture-in-picture")}},{key:"disablePIP",value:function(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&"inline"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("inline")}},{key:"setPlaybackRate",value:function(t){try{this.player.playbackRate=t}catch(e){this.props.onError(e)}}},{key:"getDuration",value:function(){if(!this.player)return null;var t=this.player,e=t.duration,r=t.seekable;return e===1/0&&r.length>0?r.end(r.length-1):e}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var t=this.player.buffered;if(0===t.length)return 0;var e=t.end(t.length-1),r=this.getDuration();return e>r?r:e}},{key:"getSource",value:function(t){var e=this.shouldUseHLS(t),r=this.shouldUseDASH(t),n=this.shouldUseFLV(t);if(!(t instanceof Array||(0,a.isMediaStream)(t)||e||r||n))return E.test(t)?t.replace("www.dropbox.com","dl.dropboxusercontent.com"):t}},{key:"render",value:function(){var t=this.props,e=t.url,r=t.playing,n=t.loop,a=t.controls,o=t.muted,s=t.config,l=t.width,c=t.height,f=this.shouldUseAudio(this.props)?"audio":"video",d={width:"auto"===l?l:"100%",height:"auto"===c?c:"100%"};return i.default.createElement(f,u({ref:this.ref,src:this.getSource(e),style:d,preload:"auto",autoPlay:r||void 0,controls:a,muted:o,loop:n},s.attributes),e instanceof Array&&e.map(this.renderSourceElement),s.tracks.map(this.renderTrack))}}])&&c(e.prototype,r),n&&c(e,n),h}(i.Component);e.default=w,m(w,"displayName","FilePlayer"),m(w,"canPlay",o.canPlay.file)},3911:function(t,e,r){"use strict";function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!==typeof t)return{default:t};var e=s();if(e&&e.has(t))return e.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}r.default=t,e&&e.set(t,r);return r}(r(7294)),a=r(8045),o=r(1776);function s(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p(t);if(e){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return d(this,r)}}function d(t,e){return!e||"object"!==n(e)&&"function"!==typeof e?h(t):e}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
1function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function v(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var m=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(s,t);var e,r,n,o=f(s);function s(){var t;u(this,s);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(h(t=o.call.apply(o,[this].concat(r))),"callPlayer",a.callPlayer),v(h(t),"duration",null),v(h(t),"currentTime",null),v(h(t),"secondsLoaded",null),v(h(t),"mute",(function(){t.callPlayer("mute")})),v(h(t),"unmute",(function(){t.callPlayer("unmute")})),v(h(t),"ref",(function(e){t.iframe=e})),t}return e=s,(r=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(t){var e=this;(0,a.getSDK)("https://cdn.embed.ly/player-0.1.0.min.js","playerjs").then((function(t){e.iframe&&(e.player=new t.Player(e.iframe),e.player.on("ready",(function(){setTimeout((function(){e.player.isReady=!0,e.player.setLoop(e.props.loop),e.props.muted&&e.player.mute(),e.addListeners(e.player,e.props),e.props.onReady()}),500)})))}),this.props.onError)}},{key:"addListeners",value:function(t,e){var r=this;t.on("play",e.onPlay),t.on("pause",e.onPause),t.on("ended",e.onEnded),t.on("error",e.onError),t.on("timeupdate",(function(t){var e=t.duration,n=t.seconds;r.duration=e,r.currentTime=n}))}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(t){this.callPlayer("setCurrentTime",t)}},{key:"setVolume",value:function(t){this.callPlayer("setVolume",t)}},{key:"setLoop",value:function(t){this.callPlayer("setLoop",t)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){return i.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allowFullScreen:!0,allow:"encrypted-media;autoplay",referrerPolicy:"no-referrer-when-downgrade"})}}])&&l(e.prototype,r),n&&l(e,n),s}(i.Component);e.default=m,v(m,"displayName","Kaltura"),v(m,"canPlay",o.canPlay.kaltura)},143:function(t,e,r){"use strict";function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!==typeof t)return{default:t};var e=s();if(e&&e.has(t))return e.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}r.default=t,e&&e.set(t,r);return r}(r(7294)),a=r(8045),o=r(1776);function s(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){y(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}
1function d(t,e){return d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},d(t,e)}function h(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=m(t);if(e){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p(this,r)}}function p(t,e){return!e||"object"!==n(e)&&"function"!==typeof e?v(t):e}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function y(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var g=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(u,t);var e,r,n,s=h(u);function u(){var t;c(this,u);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return y(v(t=s.call.apply(s,[this].concat(r))),"callPlayer",a.callPlayer),y(v(t),"duration",null),y(v(t),"currentTime",null),y(v(t),"secondsLoaded",null),y(v(t),"mute",(function(){})),y(v(t),"unmute",(function(){})),y(v(t),"ref",(function(e){t.iframe=e})),t}return e=u,r=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(t){var e=this;(0,a.getSDK)("https://widget.mixcloud.com/media/js/widgetApi.js","Mixcloud").then((function(t){e.player=t.PlayerWidget(e.iframe),e.player.ready.then((function(){e.player.events.play.on(e.props.onPlay),e.player.events.pause.on(e.props.onPause),e.player.events.ended.on(e.props.onEnded),e.player.events.error.on(e.props.error),e.player.events.progress.on((function(t,r){e.currentTime=t,e.duration=r})),e.props.onReady()}))}),this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(t){this.callPlayer("seek",t)}},{key:"setVolume",value:function(t){}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var t=this.props,e=t.url,r=t.config,n=e.match(o.MATCH_URL_MIXCLOUD)[1],s=(0,a.queryString)(l(l({},r.options),{},{feed:"/".concat(n,"/")}));return i.default.createElement("iframe",{key:n,ref:this.ref,style:{width:"100%",height:"100%"},src:"https://www.mixcloud.com/widget/iframe/?".concat(s),frameBorder:"0"})}}],r&&f(e.prototype,r),n&&f(e,n),u}(i.Component);e.default=g,y(g,"displayName","Mixcloud"),y(g,"canPlay",o.canPlay.mixcloud),y(g,"loopOnEnded",!0)},2648:function(t,e,r){"use strict";function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!==typeof t)return{default:t};var e=s();if(e&&e.has(t))return e.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}r.default=t,e&&e.set(t,r);return r}(r(7294)),a=r(8045),o=r(1776);function s(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?u(Object(r),!0).forEach((function(e){y(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function d(t,e){return d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},d(t,e)}function h(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=m(t);if(e){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p(this,r)}}function p(t,e){return!e||"object"!==n(e)&&"function"!==typeof e?v(t):e}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function y(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var g=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(s,t);var e,r,n,o=h(s);function s(){var t;c(this,s);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return y(v(t=o.call.apply(o,[this].concat(r))),"callPlayer",a.callPlayer),y(v(t),"duration",null),y(v(t),"currentTime",null),y(v(t),"fractionLoaded",null),y(v(t),"mute",(function(){t.setVolume(0)})),y(v(t),"unmute",(function(){null!==t.props.volume&&t.setVolume(t.props.volume)})),y(v(t),"ref",(function(e){t.iframe=e})),t}return e=s,(r=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(t,e){var r=this;(0,a.getSDK)("https://w.soundcloud.com/player/api.js","SC").then((function(n){if(r.iframe){var i=n.Widget.Events,a=i.PLAY,o=i.PLAY_PROGRESS,s=i.PAUSE,u=i.FINISH,c=i.ERROR;e||(r.player=n.Widget(r.iframe),r.player.bind(a,r.props.onPlay),r.player.bind(s,(function(){r.duration-r.currentTime<.05||r.props.onPause()})),r.player.bind(o,(function(t){r.currentTime=t.currentPosition/1e3,r.fractionLoaded=t.loadedProgress})),r.player.bind(u,(function(){return r.props.onEnded()})),r.player.bind(c,(function(t){return r.props.onError(t)}))),r.player.load(t,l(l({},r.props.config.options),{},{callback:function(){r.player.getDuration((function(t){r.duration=t/1e3,r.props.onReady()}))}}))}}))}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(t){this.callPlayer("seekTo",1e3*t)}},{key:"setVolume",value:function(t){this.callPlayer("setVolume",100*t)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.fractionLoaded*this.duration}},{key:"render",value:function(){var t={width:"100%",height:"100%",display:this.props.display};return i.default.createElement("iframe",{ref:this.ref,src:"https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),style:t,frameBorder:0,allow:"autoplay"})}}])&&f(e.prototype,r),n&&f(e,n),s}(i.Component);e.default=g,y(g,"displayName","SoundCloud"),y(g,"canPlay",o.canPlay.soundcloud),y(g,"loopOnEnded",!0)},993:function(t,e,r){"use strict";function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}
1Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!==typeof t)return{default:t};var e=s();if(e&&e.has(t))return e.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}r.default=t,e&&e.set(t,r);return r}(r(7294)),a=r(8045),o=r(1776);function s(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p(t);if(e){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return d(this,r)}}function d(t,e){return!e||"object"!==n(e)&&"function"!==typeof e?h(t):e}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function v(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var m=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(d,t);var e,r,n,s=f(d);function d(){var t;u(this,d);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(h(t=s.call.apply(s,[this].concat(r))),"callPlayer",a.callPlayer),v(h(t),"duration",null),v(h(t),"currentTime",null),v(h(t),"secondsLoaded",null),v(h(t),"mute",(function(){t.callPlayer("mute")})),v(h(t),"unmute",(function(){t.callPlayer("unmute")})),v(h(t),"ref",(function(e){t.iframe=e})),t}return e=d,(r=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(t){var e=this;(0,a.getSDK)("https://cdn.embed.ly/player-0.1.0.min.js","playerjs").then((function(t){e.iframe&&(e.player=new t.Player(e.iframe),e.player.setLoop(e.props.loop),e.player.on("ready",e.props.onReady),e.player.on("play",e.props.onPlay),e.player.on("pause",e.props.onPause),e.player.on("seeked",e.props.onSeek),e.player.on("ended",e.props.onEnded),e.player.on("error",e.props.onError),e.player.on("timeupdate",(function(t){var r=t.duration,n=t.seconds;e.duration=r,e.currentTime=n})),e.player.on("buffered",(function(t){var r=t.percent;e.duration&&(e.secondsLoaded=e.duration*r)})),e.props.muted&&e.player.mute())}),this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(t){this.callPlayer("setCurrentTime",t)}},{key:"setVolume",value:function(t){this.callPlayer("setVolume",100*t)}},{key:"setLoop",value:function(t){this.callPlayer("setLoop",t)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var t=this.props.url.match(o.MATCH_URL_STREAMABLE)[1];return i.default.createElement("iframe",{ref:this.ref,src:"https://streamable.com/o/".concat(t),frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allowFullScreen:!0})}}])&&l(e.prototype,r),n&&l(e,n),d}(i.Component);e.default=m,v(m,"displayName","Streamable"),v(m,"canPlay",o.canPlay.streamable)},9482:function(t,e,r){"use strict";function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}
1Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!==typeof t)return{default:t};var e=s();if(e&&e.has(t))return e.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}r.default=t,e&&e.set(t,r);return r}(r(7294)),a=r(8045),o=r(1776);function s(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(t,e){return f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},f(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=v(t);if(e){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h(this,r)}}function h(t,e){return!e||"object"!==n(e)&&"function"!==typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function m(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var y="twitch-player-",g=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(h,t);var e,r,n,s=d(h);function h(){var t;l(this,h);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return m(p(t=s.call.apply(s,[this].concat(r))),"callPlayer",a.callPlayer),m(p(t),"playerID",t.props.config.playerId||"".concat(y).concat((0,a.randomString)())),m(p(t),"mute",(function(){t.callPlayer("setMuted",!0)})),m(p(t),"unmute",(function(){t.callPlayer("setMuted",!1)})),t}return e=h,r=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(t,e){var r=this,n=this.props,i=n.playsinline,s=n.onError,l=n.config,c=n.controls,f=o.MATCH_URL_TWITCH_CHANNEL.test(t),d=f?t.match(o.MATCH_URL_TWITCH_CHANNEL)[1]:t.match(o.MATCH_URL_TWITCH_VIDEO)[1];e?f?this.player.setChannel(d):this.player.setVideo("v"+d):(0,a.getSDK)("https://player.twitch.tv/js/embed/v1.js","Twitch").then((function(e){r.player=new e.Player(r.playerID,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){m(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({video:f?"":d,channel:f?d:"",height:"100%",width:"100%",playsinline:i,autoplay:r.props.playing,muted:r.props.muted,controls:!!f||c,time:(0,a.parseStartTime)(t)},l.options));var n=e.Player,o=n.READY,s=n.PLAYING,h=n.PAUSE,p=n.ENDED,v=n.ONLINE,y=n.OFFLINE,g=n.SEEK;r.player.addEventListener(o,r.props.onReady),r.player.addEventListener(s,r.props.onPlay),r.player.addEventListener(h,r.props.onPause),r.player.addEventListener(p,r.props.onEnded),r.player.addEventListener(g,r.props.onSeek),r.player.addEventListener(v,r.props.onLoaded),r.player.addEventListener(y,r.props.onLoaded)}),s)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("pause")}},{key:"seekTo",value:function(t){this.callPlayer("seek",t)}},{key:"setVolume",value:function(t){this.callPlayer("setVolume",t)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){return i.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID})}}],r&&c(e.prototype,r),n&&c(e,n),h}(i.Component);e.default=g,m(g,"displayName","Twitch"),m(g,"canPlay",o.canPlay.twitch),m(g,"loopOnEnded",!0)},6596:function(t,e,r){"use strict";function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}
1Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!==typeof t)return{default:t};var e=s();if(e&&e.has(t))return e.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}r.default=t,e&&e.set(t,r);return r}(r(7294)),a=r(8045),o=r(1776);function s(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(t,e){return f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},f(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=v(t);if(e){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h(this,r)}}function h(t,e){return!e||"object"!==n(e)&&"function"!==typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function m(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var y=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(h,t);var e,r,n,s=d(h);function h(){var t;l(this,h);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return m(p(t=s.call.apply(s,[this].concat(r))),"callPlayer",a.callPlayer),m(p(t),"mute",(function(){t.setVolume(0)})),m(p(t),"unmute",(function(){null!==t.props.volume&&t.setVolume(t.props.volume)})),m(p(t),"ref",(function(e){t.container=e})),t}return e=h,r=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(t){var e=this,r=this.props,n=r.playing,i=r.config,s=r.onError,l=r.onDuration,c=t&&t.match(o.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,a.getSDK)("https://play.vidyard.com/embed/v4.js","VidyardV4","onVidyardAPI").then((function(t){e.container&&(t.api.addReadyListener((function(t,r){e.player=r,e.player.on("ready",e.props.onReady),e.player.on("play",e.props.onPlay),e.player.on("pause",e.props.onPause),e.player.on("seek",e.props.onSeek),e.player.on("playerComplete",e.props.onEnded)}),c),t.api.renderPlayer(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){m(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({uuid:c,container:e.container,autoplay:n?1:0},i.options)),t.api.getPlayerMetadata(c).then((function(t){e.duration=t.length_in_seconds,l(t.length_in_seconds)})))}),s)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){window.VidyardV4.api.destroyPlayer(this.player)}},{key:"seekTo",value:function(t){this.callPlayer("seek",t)}},{key:"setVolume",value:function(t){this.callPlayer("setVolume",t)}},{key:"setPlaybackRate",value:function(t){this.callPlayer("setPlaybackSpeed",t)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.callPlayer("currentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var t={width:"100%",height:"100%",display:this.props.display};return i.default.createElement("div",{style:t},i.default.createElement("div",{ref:this.ref}))}}],r&&c(e.prototype,r),n&&c(e,n),h}(i.Component);e.default=y,m(y,"displayName","Vidyard"),m(y,"canPlay",o.canPlay.vidyard)},868:function(t,e,r){"use strict";function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}
1Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!==typeof t)return{default:t};var e=s();if(e&&e.has(t))return e.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}r.default=t,e&&e.set(t,r);return r}(r(7294)),a=r(8045),o=r(1776);function s(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(t,e){return f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},f(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=v(t);if(e){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h(this,r)}}function h(t,e){return!e||"object"!==n(e)&&"function"!==typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function m(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var y=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(s,t);var e,r,n,o=d(s);function s(){var t;l(this,s);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return m(p(t=o.call.apply(o,[this].concat(r))),"callPlayer",a.callPlayer),m(p(t),"duration",null),m(p(t),"currentTime",null),m(p(t),"secondsLoaded",null),m(p(t),"mute",(function(){t.setVolume(0)})),m(p(t),"unmute",(function(){null!==t.props.volume&&t.setVolume(t.props.volume)})),m(p(t),"ref",(function(e){t.container=e})),t}return e=s,r=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(t){var e=this;this.duration=null,(0,a.getSDK)("https://player.vimeo.com/api/player.js","Vimeo").then((function(r){if(e.container){var n=e.props.config,i=n.playerOptions,a=n.title;e.player=new r.Player(e.container,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){m(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({url:t,autoplay:e.props.playing,muted:e.props.muted,loop:e.props.loop,playsinline:e.props.playsinline,controls:e.props.controls},i)),e.player.ready().then((function(){var t=e.container.querySelector("iframe");t.style.width="100%",t.style.height="100%",a&&(t.title=a)})).catch(e.props.onError),e.player.on("loaded",(function(){e.props.onReady(),e.refreshDuration()})),e.player.on("play",(function(){e.props.onPlay(),e.refreshDuration()})),e.player.on("pause",e.props.onPause),e.player.on("seeked",(function(t){return e.props.onSeek(t.seconds)})),e.player.on("ended",e.props.onEnded),e.player.on("error",e.props.onError),e.player.on("timeupdate",(function(t){var r=t.seconds;e.currentTime=r})),e.player.on("progress",(function(t){var r=t.seconds;e.secondsLoaded=r})),e.player.on("bufferstart",e.props.onBuffer),e.player.on("bufferend",e.props.onBufferEnd)}}),this.props.onError)}},{key:"refreshDuration",value:function(){var t=this;this.player.getDuration().then((function(e){t.duration=e}))}},{key:"play",value:function(){var t=this.callPlayer("play");t&&t.catch(this.props.onError)}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("unload")}},{key:"seekTo",value:function(t){this.callPlayer("setCurrentTime",t)}},{key:"setVolume",value:function(t){this.callPlayer("setVolume",t)}},{key:"setLoop",value:function(t){this.callPlayer("setLoop",t)}},{key:"setPlaybackRate",value:function(t){this.callPlayer("setPlaybackRate",t)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var t={width:"100%",height:"100%",overflow:"hidden",display:this.props.display};return i.default.createElement("div",{key:this.props.url,ref:this.ref,style:t})}}],r&&c(e.prototype,r),n&&c(e,n),s}(i.Component);e.default=y,m(y,"displayName","Vimeo"),m(y,"canPlay",o.canPlay.vimeo),m(y,"forceLoad",!0)},8018:function(t,e,r){"use strict";function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}
1Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!==typeof t)return{default:t};var e=s();if(e&&e.has(t))return e.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}r.default=t,e&&e.set(t,r);return r}(r(7294)),a=r(8045),o=r(1776);function s(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){y(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function d(t,e){return d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},d(t,e)}function h(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=m(t);if(e){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p(this,r)}}function p(t,e){return!e||"object"!==n(e)&&"function"!==typeof e?v(t):e}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function y(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var g="wistia-player-",b=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(u,t);var e,r,n,s=h(u);function u(){var t;c(this,u);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return y(v(t=s.call.apply(s,[this].concat(r))),"callPlayer",a.callPlayer),y(v(t),"playerID",t.props.config.playerId||"".concat(g).concat((0,a.randomString)())),y(v(t),"onPlay",(function(){var e;return(e=t.props).onPlay.apply(e,arguments)})),y(v(t),"onPause",(function(){var e;return(e=t.props).onPause.apply(e,arguments)})),y(v(t),"onSeek",(function(){var e;return(e=t.props).onSeek.apply(e,arguments)})),y(v(t),"onEnded",(function(){var e;return(e=t.props).onEnded.apply(e,arguments)})),y(v(t),"onPlaybackRateChange",(function(){var e;return(e=t.props).onPlaybackRateChange.apply(e,arguments)})),y(v(t),"mute",(function(){t.callPlayer("mute")})),y(v(t),"unmute",(function(){t.callPlayer("unmute")})),t}return e=u,r=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(t){var e=this,r=this.props,n=r.playing,i=r.muted,o=r.controls,s=r.onReady,u=r.config,c=r.onError;(0,a.getSDK)("https://fast.wistia.com/assets/external/E-v1.js","Wistia").then((function(t){u.customControls&&u.customControls.forEach((function(e){return t.defineControl(e)})),window._wq=window._wq||[],window._wq.push({id:e.playerID,options:l({autoPlay:n,silentAutoPlay:"allow",muted:i,controlsVisibleOnLoad:o,fullscreenButton:o,playbar:o,playbackRateControl:o,qualityControl:o,volumeControl:o,settingsControl:o,smallPlayButton:o},u.options),onReady:function(t){e.player=t,e.unbind(),e.player.bind("play",e.onPlay),e.player.bind("pause",e.onPause),e.player.bind("seek",e.onSeek),e.player.bind("end",e.onEnded),e.player.bind("playbackratechange",e.onPlaybackRateChange),s()}})}),c)}},{key:"unbind",value:function(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.unbind(),this.callPlayer("remove")}},{key:"seekTo",value:function(t){this.callPlayer("time",t)}},{key:"setVolume",value:function(t){this.callPlayer("volume",t)}},{key:"setPlaybackRate",value:function(t){this.callPlayer("playbackRate",t)}},{key:"getDuration",value:function(){return this.callPlayer("duration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("time")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var t=this.props.url,e=t&&t.match(o.MATCH_URL_WISTIA)[1],r="wistia_embed wistia_async_".concat(e);return i.default.createElement("div",{id:this.playerID,key:e,className:r,style:{width:"100%",height:"100%"}})}}],r&&f(e.prototype,r),n&&f(e,n),u}(i.Component);e.default=b,y(b,"displayName","Wistia"),y(b,"canPlay",o.canPlay.wistia),y(b,"loopOnEnded",!0)},356:function(t,e,r){"use strict";function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}
1Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!==typeof t)return{default:t};var e=s();if(e&&e.has(t))return e.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}r.default=t,e&&e.set(t,r);return r}(r(7294)),a=r(8045),o=r(1776);function s(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){b(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(u){i=!0,a=u}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function p(t,e){return p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},p(t,e)}function v(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=g(t);if(e){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return m(this,r)}}function m(t,e){return!e||"object"!==n(e)&&"function"!==typeof e?y(t):e}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function b(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var E="YT",T=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,w=/user\/([a-zA-Z0-9_-]+)\/?/,S=/youtube-nocookie\.com/,O=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(u,t);var e,r,n,s=v(u);function u(){var t;d(this,u);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b(y(t=s.call.apply(s,[this].concat(r))),"callPlayer",a.callPlayer),b(y(t),"parsePlaylist",(function(e){return e instanceof Array?{listType:"playlist",playlist:e.map(t.getID).join(",")}:T.test(e)?{listType:"playlist",list:c(e.match(T),2)[1].replace(/^UC/,"UU")}:w.test(e)?{listType:"user_uploads",list:c(e.match(w),2)[1]}:{}})),b(y(t),"onStateChange",(function(e){var r=e.data,n=t.props,i=n.onPlay,a=n.onPause,o=n.onBuffer,s=n.onBufferEnd,u=n.onEnded,l=n.onReady,c=n.loop,f=n.config,d=f.playerVars,h=f.onUnstarted,p=window.YT.PlayerState,v=p.UNSTARTED,m=p.PLAYING,y=p.PAUSED,g=p.BUFFERING,b
1=p.ENDED,E=p.CUED;if(r===v&&h(),r===m&&(i(),s()),r===y&&a(),r===g&&o(),r===b){var T=!!t.callPlayer("getPlaylist");c&&!T&&(d.start?t.seekTo(d.start):t.play()),u()}r===E&&l()})),b(y(t),"mute",(function(){t.callPlayer("mute")})),b(y(t),"unmute",(function(){t.callPlayer("unMute")})),b(y(t),"ref",(function(e){t.container=e})),t}return e=u,(r=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"getID",value:function(t){return!t||t instanceof Array||T.test(t)?null:t.match(o.MATCH_URL_YOUTUBE)[1]}},{key:"load",value:function(t,e){var r=this,n=this.props,i=n.playing,o=n.muted,s=n.playsinline,u=n.controls,c=n.loop,f=n.config,d=n.onError,h=f.playerVars,p=f.embedOptions,v=this.getID(t);if(e)return T.test(t)||w.test(t)||t instanceof Array?void this.player.loadPlaylist(this.parsePlaylist(t)):void this.player.cueVideoById({videoId:v,startSeconds:(0,a.parseStartTime)(t)||h.start,endSeconds:(0,a.parseEndTime)(t)||h.end});(0,a.getSDK)("https://www.youtube.com/iframe_api",E,"onYouTubeIframeAPIReady",(function(t){return t.loaded})).then((function(e){r.container&&(r.player=new e.Player(r.container,l({width:"100%",height:"100%",videoId:v,playerVars:l(l({autoplay:i?1:0,mute:o?1:0,controls:u?1:0,start:(0,a.parseStartTime)(t),end:(0,a.parseEndTime)(t),origin:window.location.origin,playsinline:s?1:0},r.parsePlaylist(t)),h),events:{onReady:function(){c&&r.player.setLoop(!0),r.props.onReady()},onPlaybackRateChange:function(t){return r.props.onPlaybackRateChange(t.data)},onStateChange:r.onStateChange,onError:function(t){return d(t.data)}},host:S.test(t)?"https://www.youtube-nocookie.com":void 0},p)))}),d),p.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer\u2019s callback props instead, eg onReady, onPlay, onPause")}},{key:"play",value:function(){this.callPlayer("playVideo")}},{key:"pause",value:function(){this.callPlayer("pauseVideo")}},{key:"stop",value:function(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}},{key:"seekTo",value:function(t){this.callPlayer("seekTo",t),this.props.playing||this.pause()}},{key:"setVolume",value:function(t){this.callPlayer("setVolume",100*t)}},{key:"setPlaybackRate",value:function(t){this.callPlayer("setPlaybackRate",t)}},{key:"setLoop",value:function(t){this.callPlayer("setLoop",t)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}},{key:"render",value:function(){var t={width:"100%",height:"100%",display:this.props.display};return i.default.createElement("div",{style:t},i.default.createElement("div",{ref:this.ref}))}}])&&h(e.prototype,r),n&&h(e,n),u}(i.Component);e.default=O,b(O,"displayName","YouTube"),b(O,"canPlay",o.canPlay.youtube)},6497:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(7294),i=r(8045),a=r(1776);function o(t){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function s(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}function u(t){if(t&&t.__esModule)return t;if(null===t||"object"!==o(t)&&"function"!==typeof t)return{default:t};var e=s();if(e&&e.has(t))return e.get(t);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=n?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=t[i]}return r.default=t,e&&e.set(t,r),r}var l=[{key:"youtube",name:"YouTube",canPlay:a.canPlay.youtube,lazyPlayer:(0,n.lazy)((function(){return Promise.resolve().then((function(){return u(r(356))}))}))},{key:"soundcloud",name:"SoundCloud",canPlay:a.canPlay.soundcloud,lazyPlayer:(0,n.lazy)((function(){return Promise.resolve().then((function(){return u(r(2648))}))}))},{key:"vimeo",name:"Vimeo",canPlay:a.canPlay.vimeo,lazyPlayer:(0,n.lazy)((function(){return Promise.resolve().then((function(){return u(r(868))}))}))},{key:"facebook",name:"Facebook",canPlay:a.canPlay.facebook,lazyPlayer:(0,n.lazy)((function(){return Promise.resolve().then((function(){return u(r(1972))}))}))},{key:"streamable",name:"Streamable",canPlay:a.canPlay.streamable,lazyPlayer:(0,n.lazy)((function(){return Promise.resolve().then((function(){return u(r(993))}))}))},{key:"wistia",name:"Wistia",canPlay:a.canPlay.wistia,lazyPlayer:(0,n.lazy)((function(){return Promise.resolve().then((function(){return u(r(8018))}))}))},{key:"twitch",name:"Twitch",canPlay:a.canPlay.twitch,lazyPlayer:(0,n.lazy)((function(){return Promise.resolve().then((function(){return u(r(9482))}))}))},{key:"dailymotion",name:"DailyMotion",canPlay:a.canPlay.dailymotion,lazyPlayer:(0,n.lazy)((function(){return Promise.resolve().then((function(){return u(r(6807))}))}))},{key:"mixcloud",name:"Mixcloud",canPlay:a.canPlay.mixcloud,lazyPlayer:(0,n.lazy)((function(){return Promise.resolve().then((function(){return u(r(143))}))}))}
1,{key:"vidyard",name:"Vidyard",canPlay:a.canPlay.vidyard,lazyPlayer:(0,n.lazy)((function(){return Promise.resolve().then((function(){return u(r(6596))}))}))},{key:"kaltura",name:"Kaltura",canPlay:a.canPlay.kaltura,lazyPlayer:(0,n.lazy)((function(){return Promise.resolve().then((function(){return u(r(3911))}))}))},{key:"file",name:"FilePlayer",canPlay:a.canPlay.file,canEnablePIP:function(t){return a.canPlay.file(t)&&(document.pictureInPictureEnabled||(0,i.supportsWebKitPresentationMode)())&&!a.AUDIO_EXTENSIONS.test(t)},lazyPlayer:(0,n.lazy)((function(){return Promise.resolve().then((function(){return u(r(4926))}))}))}];e.default=l},5741:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultProps=e.propTypes=void 0;var n,i=(n=r(5697))&&n.__esModule?n:{default:n};var a=i.default.string,o=i.default.bool,s=i.default.number,u=i.default.array,l=i.default.oneOfType,c=i.default.shape,f=i.default.object,d=i.default.func,h=i.default.node,p={url:l([a,u,f]),playing:o,loop:o,controls:o,volume:s,muted:o,playbackRate:s,width:l([a,s]),height:l([a,s]),style:f,progressInterval:s,playsinline:o,pip:o,stopOnUnmount:o,light:l([o,a]),playIcon:h,previewTabIndex:s,fallback:h,oEmbedUrl:a,wrapper:l([a,d,c({render:d.isRequired})]),config:c({soundcloud:c({options:f}),youtube:c({playerVars:f,embedOptions:f,onUnstarted:d}),facebook:c({appId:a,version:a,playerId:a,attributes:f}),dailymotion:c({params:f}),vimeo:c({playerOptions:f,title:a}),file:c({attributes:f,tracks:u,forceVideo:o,forceAudio:o,forceHLS:o,forceDASH:o,forceFLV:o,hlsOptions:f,hlsVersion:a,dashVersion:a,flvVersion:a}),wistia:c({options:f,playerId:a,customControls:u}),mixcloud:c({options:f}),twitch:c({options:f,playerId:a}),vidyard:c({options:f})}),onReady:d,onStart:d,onPlay:d,onPause:d,onBuffer:d,onBufferEnd:d,onEnded:d,onError:d,onDuration:d,onSeek:d,onPlaybackRateChange:d,onProgress:d,onClickPreview:d,onEnablePIP:d,onDisablePIP:d};e.propTypes=p;var v=function(){},m={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:v},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0"},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:v,onStart:v,onPlay:v,onPause:v,onBuffer:v,onBufferEnd:v,onEnded:v,onError:v,onDuration:v,onSeek:v,onPlaybackRateChange:v,onProgress:v,onClickPreview:v,onEnablePIP:v,onDisablePIP:v};e.defaultProps=m},8045:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseStartTime=function(t){return d(t,u)},e.parseEndTime=function(t){return d(t,l)},e.randomString=function(){return Math.random().toString(36).substr(2,5)},e.queryString=function(t){return Object.keys(t).map((function(e){return"".concat(e,"=").concat(t[e])})).join("&")},e.getSDK=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.default,o=h(e);if(o&&i(o))return Promise.resolve(o);return new Promise((function(n,i){if(p[t])p[t].push({resolve:n,reject:i});else{p[t]=[{resolve:n,reject:i}];var o=function(e){p[t].forEach((function(t){return t.resolve(e)}))};if(r){var s=window[r];window[r]=function(){s&&s(),o(h(e))}}a(t,(function(n){n?(p[t].forEach((function(t){return t.reject(n)})),p[t]=null):r||o(h(e))}))}}))},e.getConfig=function(t,e){return(0,i.default)(e.config,t.config)},e.omit=function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(var a=(e=[]).concat.apply(e,n),o={},s=Object.keys(t),u=0,l=s;u<l.length;u++){var c=l[u];-1===a.indexOf(c)&&(o[c]=t[c])}return o},e.callPlayer=function(t){var e;if(!this.player||!this.player[t]){var r="ReactPlayer: ".concat(this.constructor.displayName," player could not call %c").concat(t,"%c \u2013 ");return this.player?this.player[t]||(r+="The method was not available"):r+="The player was not available",console.warn(r,"font-weight: bold",""),null}for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return(e=this.player)[t].apply(e,i)},e.isMediaStream=function(t){return"undefined"!==typeof window&&"undefined"!==typeof window.MediaStream&&t instanceof window.MediaStream},e.isBlobUrl=function(t){return/^blob:/.test(t)},e.supportsWebKitPresentationMode=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.createElement("video"),e=!1===/iPhone|iPod/.test(navigator.userAgent);return t.webkitSupportsPresentationMode&&"function"===typeof t.webkitSetPresentationMode&&e};
1var n=a(r(9090)),i=a(r(9996));function a(t){return t&&t.__esModule?t:{default:t}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(u){i=!0,a=u}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var u=/[?&#](?:start|t)=([0-9hms]+)/,l=/[?&#]end=([0-9hms]+)/,c=/(\d+)(h|m|s)/g,f=/^\d+$/;function d(t,e){if(!(t instanceof Array)){var r=t.match(e);if(r){var n=r[1];if(n.match(c))return function(t){var e=0,r=c.exec(t);for(;null!==r;){var n=o(r,3),i=n[1],a=n[2];"h"===a&&(e+=60*parseInt(i,10)*60),"m"===a&&(e+=60*parseInt(i,10)),"s"===a&&(e+=parseInt(i,10)),r=c.exec(t)}return e}(n);if(f.test(n))return parseInt(n)}}}function h(t){return window[t]?window[t]:window.exports&&window.exports[t]?window.exports[t]:window.module&&window.module.exports&&window.module.exports[t]?window.module.exports[t]:null}var p={}},8477:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=o(r(7294)),a=o(r(1093));function o(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var l=function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"render",value:function(){return i.default.createElement("input",this.props,this.props.children)}}]),e}(i.default.Component);e.default=(0,a.default)(l)},5343:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=u(r(7294)),o=u(r(8e3)),s=u(r(5697));function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var f=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"render",value:function(){var t=this,e=n({},this.props);return e.parentBindings&&delete e.parentBindings,a.default.createElement("div",n({}
1,e,{ref:function(e){t.props.parentBindings.domNode=e}}),this.props.children)}}]),e}(a.default.Component);f.propTypes={name:s.default.string,id:s.default.string},e.default=(0,o.default)(f)},8939:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a(r(7294)),i=a(r(1093));function a(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var u=function(t){function e(){var t,r,i;o(this,e);for(var a=arguments.length,u=Array(a),l=0;l<a;l++)u[l]=arguments[l];return r=i=s(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(u))),i.render=function(){return n.default.createElement("a",i.props,i.props.children)},s(i,r)}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(n.default.Component);e.default=(0,i.default)(u)},6261:function(t,e,r){"use strict";e.rU=void 0;var n=h(r(8939)),i=h(r(8477)),a=h(r(5343)),o=h(r(2628)),s=h(r(4592)),u=h(r(7606)),l=h(r(3200)),c=h(r(1093)),f=h(r(8e3)),d=h(r(8482));function h(t){return t&&t.__esModule?t:{default:t}}e.rU=n.default,i.default,a.default,o.default,s.default,u.default,l.default,c.default,f.default,d.default,n.default,i.default,a.default,o.default,s.default,u.default,l.default,c.default,f.default,d.default},8482:function(t,e,r){"use strict";var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=r(7294),l=(r(3935),r(4259),r(7606)),c=r(2628),f=r(5697),d=r(9678),h={to:f.string.isRequired,containerId:f.string,container:f.object,activeClass:f.string,spy:f.bool,smooth:f.oneOfType([f.bool,f.string]),offset:f.number,delay:f.number,isDynamic:f.bool,onClick:f.func,duration:f.oneOfType([f.number,f.func]),absolute:f.bool,onSetActive:f.func,onSetInactive:f.func,ignoreCancelEvents:f.bool,hashSpy:f.bool,spyThrottle:f.number},p={Scroll:function(t,e){console.warn("Helpers.Scroll is deprecated since v1.7.0");var r=e||c,f=function(e){function c(t){a(this,c);var e=o(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,t));return p.call(e),e.state={active:!1},e}return s(c,e),i(c,[{key:"getScrollSpyContainer",value:function(){var t=this.props.containerId,e=this.props.container;return t?document.getElementById(t):e&&e.nodeType?e:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var t=this.getScrollSpyContainer();l.isMounted(t)||l.mount(t,this.props.spyThrottle),this.props.hashSpy&&(d.isMounted()||d.mount(r),d.mapContainer(this.props.to,t)),this.props.spy&&l.addStateHandler(this.stateHandler),l.addSpyHandler(this.spyHandler,t),this.setState({container:t})}}},{key:"componentWillUnmount",value:function(){l.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var e="";e=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var r=n({},this.props);for(var i in h)r.hasOwnProperty(i)&&delete r[i];return r.className=e,r.onClick=this.handleClick,u.createElement(t,r)}}]),c}(u.Component),p=function(){var t=this;this.scrollTo=function(e,i){r.scrollTo(e,n({},t.state,i))},this.handleClick=function(e){t.props.onClick&&t.props.onClick(e),e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),t.scrollTo(t.props.to,t.props)},this.stateHandler=function(){r.getActiveLink()!==t.props.to&&(null!==t.state&&t.state.active&&t.props.onSetInactive&&t.props.onSetInactive(),t.setState({active:!1}))},this.spyHandler=function(e){var n=t.getScrollSpyContainer();if(!d.isMounted()||d.isInitialized()){var i=t.props.to,a=null,o=0,s=0,u=0;if(n.getBoundingClientRect)u=n.getBoundingClientRect().top;if(!a||t.props.isDynamic){if(!(a=r.get(i)))return;var c=a.getBoundingClientRect();s=(o=c.top-u+e)+c.height}var f=e-t.props.offset,h=f>=Math.floor(o)&&f<Math.floor(s),p=f<Math.floor(o)||f>=Math.floor(s),v=r.getActiveLink();return p?(i===v&&r.setActiveLink(void 0),t.props.hashSpy&&d.getHash()===i&&d.changeHash(),t.props.spy&&t.state.active&&(t.setState({active:!1}),t.props.onSetInactive&&t.props.onSetInactive()),l.updateStates()):h&&v!==i?(r.setActiveLink(i),t.props.hashSpy&&d.changeHash(i),t.props.spy&&(t.setState({active:!0}),t.props.onSetActive&&t.props.onSetActive(i)),l.updateStates()):void 0}}};return f.propTypes=h,f.defaultProps={offset:0},f},Element:function(t){console.warn("Helpers.Element is deprecated since v1.7.0");var e=function(e){function r(t){a(this,r);var e=o(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,t));return e.childBindings={domNode:null},e}
1return s(r,e),i(r,[{key:"componentDidMount",value:function(){if("undefined"===typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(t){this.props.name!==t.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if("undefined"===typeof window)return!1;c.unregister(this.props.name)}},{key:"registerElems",value:function(t){c.register(t,this.childBindings.domNode)}},{key:"render",value:function(){return u.createElement(t,n({},this.props,{parentBindings:this.childBindings}))}}]),r}(u.Component);return e.propTypes={name:f.string,id:f.string},e}};t.exports=p},3200:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i=(s(r(4259)),s(r(9765))),a=s(r(140)),o=s(r(4592));function s(t){return t&&t.__esModule?t:{default:t}}var u=function(t){return i.default[t.smooth]||i.default.defaultEasing},l=function(){if("undefined"!==typeof window)return window.requestAnimationFrame||window.webkitRequestAnimationFrame}()||function(t,e,r){window.setTimeout(t,r||1e3/60,(new Date).getTime())},c=function(t){var e=t.data.containerElement;if(e&&e!==document&&e!==document.body)return e.scrollLeft;var r=void 0!==window.pageXOffset,n="CSS1Compat"===(document.compatMode||"");return r?window.pageXOffset:n?document.documentElement.scrollLeft:document.body.scrollLeft},f=function(t){var e=t.data.containerElement;if(e&&e!==document&&e!==document.body)return e.scrollTop;var r=void 0!==window.pageXOffset,n="CSS1Compat"===(document.compatMode||"");return r?window.pageYOffset:n?document.documentElement.scrollTop:document.body.scrollTop},d=function t(e,r,n){var i=r.data;if(r.ignoreCancelEvents||!i.cancel)if(i.delta=Math.round(i.targetPosition-i.startPosition),null===i.start&&(i.start=n),i.progress=n-i.start,i.percent=i.progress>=i.duration?1:e(i.progress/i.duration),i.currentPosition=i.startPosition+Math.ceil(i.delta*i.percent),i.containerElement&&i.containerElement!==document&&i.containerElement!==document.body?r.horizontal?i.containerElement.scrollLeft=i.currentPosition:i.containerElement.scrollTop=i.currentPosition:r.horizontal?window.scrollTo(i.currentPosition,0):window.scrollTo(0,i.currentPosition),i.percent<1){var a=t.bind(null,e,r);l.call(window,a)}else o.default.registered.end&&o.default.registered.end(i.to,i.target,i.currentPosition);else o.default.registered.end&&o.default.registered.end(i.to,i.target,i.currentPositionY)},h=function(t){t.data.containerElement=t?t.containerId?document.getElementById(t.containerId):t.container&&t.container.nodeType?t.container:document:null},p=function(t,e,r,n){if(e.data=e.data||{currentPosition:0,startPosition:0,targetPosition:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,delta:null,percent:null,delayTimeout:null},window.clearTimeout(e.data.delayTimeout),a.default.subscribe((function(){e.data.cancel=!0})),h(e),e.data.start=null,e.data.cancel=!1,e.data.startPosition=e.horizontal?c(e):f(e),e.data.targetPosition=e.absolute?t:t+e.data.startPosition,e.data.startPosition!==e.data.targetPosition){var i;e.data.delta=Math.round(e.data.targetPosition-e.data.startPosition),e.data.duration=("function"===typeof(i=e.duration)?i:function(){return i})(e.data.delta),e.data.duration=isNaN(parseFloat(e.data.duration))?1e3:parseFloat(e.data.duration),e.data.to=r,e.data.target=n;var s=u(e),p=d.bind(null,s,e);e&&e.delay>0?e.data.delayTimeout=window.setTimeout((function(){o.default.registered.begin&&o.default.registered.begin(e.data.to,e.data.target),l.call(window,p)}),e.delay):(o.default.registered.begin&&o.default.registered.begin(e.data.to,e.data.target),l.call(window,p))}else o.default.registered.end&&o.default.registered.end(e.data.to,e.data.target,e.data.currentPosition)},v=function(t){return(t=n({},t)).data=t.data||{currentPosition:0,startPosition:0,targetPosition:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,delta:null,percent:null,delayTimeout:null},t.absolute=!0,t};e.default={animateTopScroll:p,getAnimationType:u,scrollToTop:function(t){p(0,v(t))},scrollToBottom:function(t){t=v(t),h(t),p(t.horizontal?function(t){var e=t.data.containerElement;if(e&&e!==document&&e!==document.body)return e.scrollWidth-e.offsetWidth;var r=document.body,n=document.documentElement;return Math.max(r.scrollWidth,r.offsetWidth,n.clientWidth,n.scrollWidth,n.offsetWidth)}(t):function(t){var e=t.data.containerElement;if(e&&e!==document&&e!==document.body)return e.scrollHeight-e.offsetHeight;var r=document.body,n=document.documentElement;return Math.max(r.scrollHeight,r.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}(t),t)},scrollTo:function(t,e){p(t,v(e))},scrollMore:function(t,e){e=v(e),h(e);var r=e.horizontal?c(e):f(e);p(t+r,e)}}},140:function(t,e,r){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0});var n=r(5236),i=["mousedown","mousewheel","touchmove","keydown"];e.default={subscribe:function(t){return"undefined"!==typeof document&&i.forEach((function(e){return(0,n.addPassiveEventListener)(document,e,t)}))}}},5236:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.addPassiveEventListener=function(t,e,r){var n=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(r){}return t}();t.addEventListener(e,r,!!n&&{passive:!0})},e.removePassiveEventListener=function(t,e,r){t.removeEventListener(e,r)}},8e3:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=u(r(7294)),o=(u(r(3935)),u(r(2628))),s=u(r(5697));function u(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){var e=function(e){function r(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,t));return e.childBindings={domNode:null},e}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,e),i(r,[{key:"componentDidMount",value:function(){if("undefined"===typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(t){this.props.name!==t.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if("undefined"===typeof window)return!1;o.default.unregister(this.props.name)}},{key:"registerElems",value:function(t){o.default.register(t,this.childBindings.domNode)}},{key:"render",value:function(){return a.default.createElement(t,n({},this.props,{parentBindings:this.childBindings}))}}]),r}(a.default.Component);return e.propTypes={name:s.default.string,id:s.default.string},e}},4592:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={registered:{},scrollEvent:{register:function(t,e){r.registered[t]=e},remove:function(t){r.registered[t]=null}}};e.default=r},9678:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});r(5236);var n,i=r(4259),a=(n=i)&&n.__esModule?n:{default:n};var o={mountFlag:!1,initialized:!1,scroller:null,containers:{},mount:function(t){this.scroller=t,this.handleHashChange=this.handleHashChange.bind(this),window.addEventListener("hashchange",this.handleHashChange),this.initStateFromHash(),this.mountFlag=!0},mapContainer:function(t,e){this.containers[t]=e},isMounted:function(){return this.mountFlag},isInitialized:function(){return this.initialized},initStateFromHash:function(){var t=this,e=this.getHash();e?window.setTimeout((function(){t.scrollTo(e,!0),t.initialized=!0}),10):this.initialized=!0},scrollTo:function(t,e){var r=this.scroller;if(r.get(t)&&(e||t!==r.getActiveLink())){var n=this.containers[t]||document;r.scrollTo(t,{container:n})}},getHash:function(){return a.default.getHash()},changeHash:function(t,e){this.isInitialized()&&a.default.getHash()!==t&&a.default.updateHash(t,e)},handleHashChange:function(){this.scrollTo(this.getHash())},unmount:function(){this.scroller=null,this.containers=null,window.removeEventListener("hashchange",this.handleHashChange)}};e.default=o},1093:function(t,e,r){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=c(r(7294)),o=c(r(7606)),s=c(r(2628)),u=c(r(5697)),l=c(r(9678));function c(t){return t&&t.__esModule?t:{default:t}}var f={to:u.default.string.isRequired,containerId:u.default.string,container:u.default.object,activeClass:u.default.string,spy:u.default.bool,horizontal:u.default.bool,smooth:u.default.oneOfType([u.default.bool,u.default.string]),offset:u.default.number,delay:u.default.number,isDynamic:u.default.bool,onClick:u.default.func,duration:u.default.oneOfType([u.default.number,u.default.func]),absolute:u.default.bool,onSetActive:u.default.func,onSetInactive:u.default.func,ignoreCancelEvents:u.default.bool,hashSpy:u.default.bool,saveHashHistory:u.default.bool,spyThrottle:u.default.number};e.default=function(t,e){var r=e||s.default,u=function(e){function s(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,t));return c.call(e),e.state={active:!1},e}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(s,e),i(s,[{key:"getScrollSpyContainer",value:function(){var t=this.props.containerId,e=this.props.container;return t&&!e?document.getElementById(t):e&&e.nodeType?e:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var t=this.getScrollSpyContainer();o.default.isMounted(t)||o.default.mount(t,this.props.spyThrottle),this.props.hashSpy&&(l.default.isMounted()||l.default.mount(r),l.default.mapContainer(this.props.to,t)),o.default.addSpyHandler(this.spyHandler,t),this.setState({container:t})}}},{key:"componentWillUnmount",value:function(){o.default.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var e="";e=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var r=n({},this.props);for(var i in f)r.hasOwnProperty(i)&&delete r[i];return r.className=e,r.onClick=this.handleClick,a.default.createElement(t,r)}}]),s}(a.default.PureComponent),c=function(){var t=this;this.scrollTo=function(e,i){r.scrollTo(e,n({},t.state,i))},this.handleClick=function(e){t.props.onClick&&t.props.onClick(e),e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),t.scrollTo(t.props.to,t.props)},this.spyHandler=function(e,n){var i=t.getScrollSpyContainer();if(!l.default.isMounted()||l.default.isInitialized()){var a=t.props.horizontal,o=t.props.to,s=null,u=void 0,c=void 0;if(a){var f=0,d=0,h=0;if(i.getBoundingClientRect)h=i.getBoundingClientRect().left;if(!s||t.props.isDynamic){if(!(s=r.get(o)))return;var p=s.getBoundingClientRect();d=(f=p.left-h+e)+p.width}var v=e-t.props.offset;u=v>=Math.floor(f)&&v<Math.floor(d),c=v<Math.floor(f)||v>=Math.floor(d)}else{var m=0,y=0,g=0;if(i.getBoundingClientRect)g=i.getBoundingClientRect().top;if(!s||t.props.isDynamic){if(!(s=r.get(o)))return;var b=s.getBoundingClientRect();y=(m=b.top-g+n)+b.height}var E=n-t.props.offset;u=E>=Math.floor(m)&&E<Math.floor(y),c=E<Math.floor(m)||E>=Math.floor(y)}var T=r.getActiveLink();if(c){if(o===T&&r.setActiveLink(void 0),t.props.hashSpy&&l.default.getHash()===o){var w=t.props.saveHashHistory,S=void 0!==w&&w;l.default.changeHash("",S)}t.props.spy&&t.state.active&&(t.setState({active:!1}),t.props.onSetInactive&&t.props.onSetInactive(o,s))}if(u&&(T!==o||!1===t.state.active)){r.setActiveLink(o);var O=t.props.saveHashHistory,k=void 0!==O&&O;t.props.hashSpy&&l.default.changeHash(o,k),t.props.spy&&(t.setState({active:!0}),t.props.onSetActive&&t.props.onSetActive(o,s))}}}};return u.propTypes=f,u.defaultProps={offset:0},u}},7606:function(t,e,r){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0});var n,i=r(3096),a=(n=i)&&n.__esModule?n:{default:n},o=r(5236);var s={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(t,e){if(t){var r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:66;return(0,a.default)(t,e)}((function(e){s.scrollHandler(t)}),e);s.scrollSpyContainers.push(t),(0,o.addPassiveEventListener)(t,"scroll",r)}},isMounted:function(t){return-1!==s.scrollSpyContainers.indexOf(t)},currentPositionX:function(t){if(t===document){var e=void 0!==window.pageYOffset,r="CSS1Compat"===(document.compatMode||"");return e?window.pageXOffset:r?document.documentElement.scrollLeft:document.body.scrollLeft}return t.scrollLeft},currentPositionY:function(t){if(t===document){var e=void 0!==window.pageXOffset,r="CSS1Compat"===(document.compatMode||"");return e?window.pageYOffset:r?document.documentElement.scrollTop:document.body.scrollTop}return t.scrollTop},scrollHandler:function(t){(s.scrollSpyContainers[s.scrollSpyContainers.indexOf(t)].spyCallbacks||[]).forEach((function(e){return e(s.currentPositionX(t),s.currentPositionY(t))}))},addStateHandler:function(t){s.spySetState.push(t)},addSpyHandler:function(t,e){var r=s.scrollSpyContainers[s.scrollSpyContainers.indexOf(e)];r.spyCallbacks||(r.spyCallbacks=[]),r.spyCallbacks.push(t),t(s.currentPositionX(e),s.currentPositionY(e))},updateStates:function(){s.spySetState.forEach((function(t){return t()}))},unmount:function(t,e){s.scrollSpyContainers.forEach((function(t){return t.spyCallbacks&&t.spyCallbacks.length&&t.spyCallbacks.splice(t.spyCallbacks.indexOf(e),1)})),s.spySetState&&s.spySetState.length&&s.spySetState.splice(s.spySetState.indexOf(t),1),document.removeEventListener("scroll",s.scrollHandler)},update:function(){return s.scrollSpyContainers.forEach((function(t){return s.scrollHandler(t)}))}};e.default=s},2628:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i=s(r(4259)),a=s(r(3200)),o=s(r(4592));function s(t){return t&&t.__esModule?t:{default:t}}var u={},l=void 0;e.default={unmount:function(){u={}},register:function(t,e){u[t]=e},unregister:function(t){delete u[t]},get:function(t){return u[t]||document.getElementById(t)||document.getElementsByName(t)[0]||document.getElementsByClassName(t)[0]},setActiveLink:function(t){return l=t},getActiveLink:function(){return l},scrollTo:function(t,e){var r=this.get(t);if(r){var s=(e=n({},e,{absolute:!1})).containerId,u=e.container,l=void 0;l=s?document.getElementById(s):u&&u.nodeType?u:document,e.absolute=!0;var c=e.horizontal,f=i.default.scrollOffset(l,r,c)+(e.offset||0);if(!e.smooth)return o.default.registered.begin&&o.default.registered.begin(t,r),l===document?e.horizontal?window.scrollTo(f,0):window.scrollTo(0,f):l.scrollTop=f,void(o.default.registered.end&&o.default.registered.end(t,r));a.default.animateTopScroll(f,e,t,r)}else console.warn("target Element not found")}}},9765:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={defaultEasing:function(t){return t<.5?Math.pow(2*t,2)/2:1-Math.pow(2*(1-t),2)/2},linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}}},4259:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){for(var r=t.offsetTop,n=t.offsetParent;n&&!e(n);)r+=n.offsetTop,n=n.offsetParent;return{offsetTop:r,offsetParent:n}};e.default={updateHash:function(t,e){var r=0===t.indexOf("#")?t.substring(1):t,n=r?"#"+r:"",i=window&&window.location,a=n?i.pathname+i.search+n:i.pathname+i.search;e?history.pushState(history.state,"",a):history.replaceState(history.state,"",a)},getHash:function(){return window.location.hash.replace(/^#/,"")},filterElementInContainer:function(t){return function(e){return t.contains?t!=e&&t.contains(e):!!(16&t.compareDocumentPosition(e))}},scrollOffset:function(t,e,n){if(n)return t===document?e.getBoundingClientRect().left+(window.scrollX||window.pageXOffset):"static"!==getComputedStyle(t).position?e.offsetLeft:e.offsetLeft-t.offsetLeft;if(t===document)return e.getBoundingClientRect().top+(window.scrollY||window.pageYOffset);if("static"!==getComputedStyle(t).position){if(e.offsetParent!==t){var i=r(e,(function(e){return e===t||e===document})),a=i.offsetTop;if(i.offsetParent!==t)throw new Error("Seems containerElement is not an ancestor of the Element");return a}return e.offsetTop}if(e.offsetParent===t.offsetParent)return e.offsetTop-t.offsetTop;var o=function(t){return t===document};return r(e,o).offsetTop-r(t,o).offsetTop}}},3451:function(t,e,r){var n;!function(i,a){"use strict";var o="function",s="undefined",u="object",l="string",c="model",f="name",d="type",h="vendor",p="version",v="architecture",m="console",y="mobile",g="tablet",b="smarttv",E="wearable",T="embedded",w="Amazon",S="Apple",O="ASUS",k="BlackBerry",A="Firefox",P="Google",x="Huawei",L="LG",_="Microsoft",D="Motorola",C="Opera",R="Samsung",I="Sony",M="Xiaomi",N="Zebra",j="Facebook",F=function(t){for(var e={},r=0;r<t.length;r++)e[t[r].toUpperCase()]=t[r];return e},U=function(t,e){return typeof t===l&&-1!==B(e).indexOf(B(t))},B=function(t){return t.toLowerCase()},V=function(t,e){if(typeof t===l)return t=t.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof e===s?t:t.substring(0,255)},G=function(t,e){for(var r,n,i,s,l,c,f=0;f<e.length&&!l;){var d=e[f],h=e[f+1];for(r=n=0;r<d.length&&!l;)if(l=d[r++].exec(t))for(i=0;i<h.length;i++)c=l[++n],typeof(s=h[i])===u&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):a:this[s[0]]=c?s[1].call(this,c,s[2]):a:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):a):this[s]=c||a;f+=2}},H=function(t,e){for(var r in e)if(typeof e[r]===u&&e[r].length>0){for(var n=0;n<e[r].length;n++)if(U(e[r][n],t))return"?"===r?a:r}else if(U(e[r],t))return"?"===r?a:r;return t},z={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},K={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,p],[/opios[\/ ]+([\w\.]+)/i],[p,[f,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[p,[f,C]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[f,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[f,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[p,[f,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[f,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[f,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure Browser"],p],[/\bfocus\/([\w\.]+)/i],[p,[f,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[p,[f,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[f,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[f,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[p,[f,A]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 Browser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[f,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,j],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[f,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[f,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[f,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,"Chrome WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[f,"Android Browser"]],[/(chrome|omniweb|arora|[t
vendor: 11,668 bytes, line 1
1izenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,p],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[p,[f,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[p,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[p,H,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[f,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[f,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[v,"amd64"]],[/(ia32(?=;))/i],[[v,B]],[/((?:i[346]|x)86)[;\)]/i],[[v,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[v,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/windows (ce|mobile); ppc;/i],[[v,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[v,/ower/,"",B]],[/(sun4\w)[;\)]/i],[[v,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[v,B]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[h,R],[d,g]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[h,R],[d,y]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[h,S],[d,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[h,S],[d,g]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[h,x],[d,g]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[c,[h,x],[d,y]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[h,M],[d,y]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[h,M],[d,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[h,"OPPO"],[d,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[h,"Vivo"],[d,y]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[h,"Realme"],[d,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[h,D],[d,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[h,D],[d,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[h,L],[d,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[h,L],[d,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[h,"Lenovo"],[d,g]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[h,"Nokia"],[d,y]],[/(pixel c)\b/i],[c,[h,P],[d,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[h,P],[d,y]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[h,I],[d,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[h,I],[d,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[h,"OnePlus"],[d,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[h,w],[d,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[h,w],[d,y]],[/(playbook);[-\w\),; ]+(rim)/i],[c,h,[d,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[h,k],[d,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[h,O],[d,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[h,O],[d,y]],[/(nexus 9)/i],[c,[h,"HTC"],[d,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[h,[c,/_/g," "],[d,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[h,"Acer"],[d,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[h,"Meizu"],[d,y]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[h,"Sharp"],[d,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,c,[d,y]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,c,[d,g]],[/(surface duo)/i],[c,[h,_],[d,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[h,"Fairphone"],[d,y]],[/(u304aa)/i],[c,[h,"AT&T"],[d,y]],[/\bsie-(\w*)/i],[c,[h,"Siemens"],[d,y]],[/\b(rct\w+) b/i],[c,[h,"RCA"],[d,g]],[/\b(venue[\d ]{2,7}) b/i],[c,[h,"Dell"],[d,g]],[/\b(q(?:mv|ta)\w+) b/i],[c,[h,"Verizon"],[d,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[h,"Barnes & Noble"],[d,g]],[/\b(tm\d{3}\w+) b/i],[c,[h,"NuVision"],[d,g]],[/\b(k88) b/i],[c,[h,"ZTE"],[d,g]],[/\b(nx\d{3}j) b/i],[c,[h,"ZTE"],[d,y]],[/\b(gen\d{3}) b.+49h/i],[c,[h,"Swiss"],[d,y]],[/\b(zur\d{3}) b/i],[c,[h,"Swiss"],[d,g]],[/\b((zeki)?tb.*\b) b/i],[c,[h,"Zeki"],[d,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],c,[d,g]],[/\b(ns-?\w{0,9}) b/i],[c,[h,"Insignia"],[d,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[h,"NextBook"],[d,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],c,[d,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],c,[d,y]],[/\b(ph-1) /i],[c,[h,"Essential"],[d,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[h,"Envizen"],[d,g]],[/\b(trio[-\w\. ]+) b/i],[c,[h,"MachSpeed"],[d,g]],[/\btu_(1491) b/i],[c,[h,"Rotor"],[d,g]],[/(shield[\w ]+) b/i],[c,[h,"Nvidia"],[d,g]],[/(sprint) (\w+)/i],[h,c,[d,y]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[h,_],[d,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[h,N],[d,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[h,N],[d,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,c,[d,m]],[/droid.+; (shield) bui/i],[c,[h,"Nvidia"],[d,m]],[/(playstation [345portablevi]+)/i],[c,[h,I],[d,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[h,_],[d,m]],[/smart-tv.+(samsung)/i],[h,[d,b]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[h,R],[d,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,L],[d,b]],[/(apple) ?tv/i],[h,[c,"Apple TV"],[d,b]],[/crkey/i],[[c,"Chromecast"],[h,P],[d,b]],[/droid.+aft(\w)( bui|\))/i],[c,[h,w],[d,b]],[/\(dtv[\);].+(aquos)/i],[c,[h,"Sharp"],[d,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[h,V],[c,V],[d,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,b]],[/((pebble))app/i],[h,c,[d,E]],[/droid.+; (glass) \d/i],[c,[h,P],[d,E]],[/droid.+; (wt63?0{2,3})\)/i],[c,[h,N],[d,E]],[/(quest( 2)?)/i],[c,[h,j],[d,E]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[d,T]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[d,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[d,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,g]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[d,y]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[f,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[f,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[f,[p,H,z]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[f,"Windows"],[p,H,z]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[p,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,p],[/\(bb(10);/i],[p,[f,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[f,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[f,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[f,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[f,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,p],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[f,p]]},W=function(t,e){if(typeof t===u&&(e=t,t=a),!(this instanceof W))return new W(t,e).getResult();var r=t||(typeof i!==s&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),n=e?function(t,e){var r={};for(var n in t)e[n]&&e[n].length%2===0?r[n]=e[n].concat(t[n]):r[n]=t[n];return r}(K,e):K;return this.getBrowser=function(){var t,e={};return e.name=a,e.version=a,G.call(e,r,n.browser),e.major=typeof(t=e.version)===l?t.replace(/[^\d\.]/g,"").split(".")[0]:a,e},this.getCPU=function(){var t={};return t.architecture=a,G.call(t,r,n.cpu),t},this.getDevice=function(){var t={};return t.vendor=a,t.model=a,t.type=a,G.call(t,r,n.device),t},this.getEngine=function(){var t={};return t.name=a,t.version=a,G.call(t,r,n.engine),t},this.getOS=function(){var t={};return t.name=a,t.version=a,G.call(t,r,n.os),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(t){return r=typeof t===l&&t.length>255?V(t,255):t,this},this.setUA(r),this};W.VERSION="0.7.31",W.BROWSER=F([f,p,"major"]),W.CPU=F([v]),W.DEVICE=F([c,h,d,m,y,b,g,E,T]),W.ENGINE=W.OS=F([f,p]),typeof e!==s?(t.exports&&(e=t.exports=W),e.UAParser=W):r.amdO?(n=function(){return W}.call(e,r,e,t))===a||(t.exports=n):typeof i!==s&&(i.UAParser=W);var q=typeof i!==s&&(i.jQuery||i.Zepto);if(q&&!q.ua){var Y=new W;q.ua=Y.getResult(),q.ua.get=function(){return Y.getUA()},q.ua.set=function(t){Y.setUA(t);var e=Y.getResult();for(var r in e)q.ua[r]=e[r]}}}("object"===typeof window?window:this)}},function(t){var e=function(e){return t(t.s=e)};t.O(0,[774,179],(function(){return e(6363),e(880)}
1));var r=t.O();_N_E=r}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.