/** * Skipped minification because the original files appears to be already minified. * Original file: /npm/@azure/communication-calling@1.33.2/dist/sdk.bundle.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the Microsoft Software License Terms for the Azure Communications Services, Azure CPaaS, AZURE COMMUNICATION SERVICES VOICE AND VIDEO CALLING CLIENT LIBRARY // See LICENSE file for license information. !function(g,f){"object"==typeof exports&&"undefined"!=typeof module?f(exports,require("@azure/logger"),require("@azure/communication-common")):"function"==typeof define&&define.amd?define(["exports","@azure/logger","@azure/communication-common"],f):f((g="undefined"!=typeof globalThis?globalThis:g||self)["azure-communication-calling"]={},g.logger,g.communicationCommon)}(this,(function(g,f,S){"use strict";var v,C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(g){return g&&g.__esModule&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g}function createCommonjsModule(g,f,S){return g(S={path:f,exports:{},require:function(g,f){return commonjsRequire(g,null==f?S.path:f)}},S.exports),S.exports}function getAugmentedNamespace(g){if(g.__esModule)return g;var f=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(g).forEach((function(S){var v=Object.getOwnPropertyDescriptor(g,S);Object.defineProperty(f,S,v.get?v:{enumerable:!0,get:function(){return g[S]}})})),f}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")} /*! ***************************************************************************** Copyright (C) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */!function(g){!function(f){var S="object"==typeof C?C:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),v=makeExporter(g);function makeExporter(g,f){return function(S,v){"function"!=typeof g[S]&&Object.defineProperty(g,S,{configurable:!0,writable:!0,value:v}),f&&f(S,v)}}void 0===S.Reflect?S.Reflect=g:v=makeExporter(S.Reflect,v),f(v)}((function(g){var f=Object.prototype.hasOwnProperty,S="function"==typeof Symbol,v=S&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",C=S&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",_="function"==typeof Object.create,T={__proto__:[]}instanceof Array,I=!_&&!T,b={create:_?function(){return MakeDictionary(Object.create(null))}:T?function(){return MakeDictionary({__proto__:null})}:function(){return MakeDictionary({})},has:I?function(g,S){return f.call(g,S)}:function(g,f){return f in g},get:I?function(g,S){return f.call(g,S)?g[S]:void 0}:function(g,f){return g[f]}},A=Object.getPrototypeOf(Function),P="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,R=P||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?CreateMapPolyfill():Map,M=P||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?CreateSetPolyfill():Set,w=new(P||"function"!=typeof WeakMap?CreateWeakMapPolyfill():WeakMap);function decorate(g,f,S,v){if(IsUndefined(S)){if(!IsArray(g))throw new TypeError;if(!IsConstructor(f))throw new TypeError;return DecorateConstructor(g,f)}if(!IsArray(g))throw new TypeError;if(!IsObject(f))throw new TypeError;if(!IsObject(v)&&!IsUndefined(v)&&!IsNull(v))throw new TypeError;return IsNull(v)&&(v=void 0),DecorateProperty(g,f,S=ToPropertyKey(S),v)}function metadata(g,f){function decorator(S,v){if(!IsObject(S))throw new TypeError;if(!IsUndefined(v)&&!IsPropertyKey(v))throw new TypeError;OrdinaryDefineOwnMetadata(g,f,S,v)}return decorator}function defineMetadata(g,f,S,v){if(!IsObject(S))throw new TypeError;return IsUndefined(v)||(v=ToPropertyKey(v)),OrdinaryDefineOwnMetadata(g,f,S,v)}function hasMetadata(g,f,S){if(!IsObject(f))throw new TypeError;return IsUndefined(S)||(S=ToPropertyKey(S)),OrdinaryHasMetadata(g,f,S)}function hasOwnMetadata(g,f,S){if(!IsObject(f))throw new TypeError;return IsUndefined(S)||(S=ToPropertyKey(S)),OrdinaryHasOwnMetadata(g,f,S)}function getMetadata(g,f,S){if(!IsObject(f))throw new TypeError;return IsUndefined(S)||(S=ToPropertyKey(S)),OrdinaryGetMetadata(g,f,S)}function getOwnMetadata(g,f,S){if(!IsObject(f))throw new TypeError;return IsUndefined(S)||(S=ToPropertyKey(S)),OrdinaryGetOwnMetadata(g,f,S)}function getMetadataKeys(g,f){if(!IsObject(g))throw new TypeError;return IsUndefined(f)||(f=ToPropertyKey(f)),OrdinaryMetadataKeys(g,f)}function getOwnMetadataKeys(g,f){if(!IsObject(g))throw new TypeError;return IsUndefined(f)||(f=ToPropertyKey(f)),OrdinaryOwnMetadataKeys(g,f)}function deleteMetadata(g,f,S){if(!IsObject(f))throw new TypeError;IsUndefined(S)||(S=ToPropertyKey(S));var v=GetOrCreateMetadataMap(f,S,!1);if(IsUndefined(v))return!1;if(!v.delete(g))return!1;if(v.size>0)return!0;var C=w.get(f);return C.delete(S),C.size>0||w.delete(f),!0}function DecorateConstructor(g,f){for(var S=g.length-1;S>=0;--S){var v=(0,g[S])(f);if(!IsUndefined(v)&&!IsNull(v)){if(!IsConstructor(v))throw new TypeError;f=v}}return f}function DecorateProperty(g,f,S,v){for(var C=g.length-1;C>=0;--C){var _=(0,g[C])(f,S,v);if(!IsUndefined(_)&&!IsNull(_)){if(!IsObject(_))throw new TypeError;v=_}}return v}function GetOrCreateMetadataMap(g,f,S){var v=w.get(g);if(IsUndefined(v)){if(!S)return;v=new R,w.set(g,v)}var C=v.get(f);if(IsUndefined(C)){if(!S)return;C=new R,v.set(f,C)}return C}function OrdinaryHasMetadata(g,f,S){if(OrdinaryHasOwnMetadata(g,f,S))return!0;var v=OrdinaryGetPrototypeOf(f);return!IsNull(v)&&OrdinaryHasMetadata(g,v,S)}function OrdinaryHasOwnMetadata(g,f,S){var v=GetOrCreateMetadataMap(f,S,!1);return!IsUndefined(v)&&ToBoolean(v.has(g))}function OrdinaryGetMetadata(g,f,S){if(OrdinaryHasOwnMetadata(g,f,S))return OrdinaryGetOwnMetadata(g,f,S);var v=OrdinaryGetPrototypeOf(f);return IsNull(v)?void 0:OrdinaryGetMetadata(g,v,S)}function OrdinaryGetOwnMetadata(g,f,S){var v=GetOrCreateMetadataMap(f,S,!1);if(!IsUndefined(v))return v.get(g)}function OrdinaryDefineOwnMetadata(g,f,S,v){GetOrCreateMetadataMap(S,v,!0).set(g,f)}function OrdinaryMetadataKeys(g,f){var S=OrdinaryOwnMetadataKeys(g,f),v=OrdinaryGetPrototypeOf(g);if(null===v)return S;var C=OrdinaryMetadataKeys(v,f);if(C.length<=0)return S;if(S.length<=0)return C;for(var _=new M,T=[],I=0,b=S;I=0&&g=this._keys.length?(this._index=-1,this._keys=f,this._values=f):this._index++,{value:S,done:!1}}return{value:void 0,done:!0}},MapIterator.prototype.throw=function(g){throw this._index>=0&&(this._index=-1,this._keys=f,this._values=f),g},MapIterator.prototype.return=function(g){return this._index>=0&&(this._index=-1,this._keys=f,this._values=f),{value:g,done:!0}},MapIterator}();return function(){function Map(){this._keys=[],this._values=[],this._cacheKey=g,this._cacheIndex=-2}return Object.defineProperty(Map.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Map.prototype.has=function(g){return this._find(g,!1)>=0},Map.prototype.get=function(g){var f=this._find(g,!1);return f>=0?this._values[f]:void 0},Map.prototype.set=function(g,f){var S=this._find(g,!0);return this._values[S]=f,this},Map.prototype.delete=function(f){var S=this._find(f,!1);if(S>=0){for(var v=this._keys.length,C=S+1;C=0;S--)f=37*f+g.charCodeAt(S)|0;var v="__auf_literal:";for(S=v.length-1;S>=0;S--)f=37*f+v.charCodeAt(S)|0;return f}Object.defineProperty(f,"__esModule",{value:!0}),function(g){g[g.Unsafe=0]="Unsafe",g[g.Safe=1]="Safe",g[g.Inherited_Unsafe=2]="Inherited_Unsafe",g[g.Inherited_Safe=3]="Inherited_Safe",g[g.Blacklisted_Unsafe=4]="Blacklisted_Unsafe"}(v||(v={}));var I,b=function(){function LogComponentImpl(g,f){this._level=_.LogLevel.Debug4,this._threshold=255,this._safe=v.Inherited_Unsafe,this._name=g,f&&(this._level=f.level(),this._safe=f.safe()?v.Inherited_Safe:v.Inherited_Unsafe,this._extendedInfo=f.extendedInfo())}return LogComponentImpl.prototype.name=function(){return this._name},LogComponentImpl.prototype.safe=function(){return this._safe===v.Safe||this._safe===v.Inherited_Safe},LogComponentImpl.prototype.safety=function(){return this._safe},LogComponentImpl.prototype.setSafety=function(g){this._safe=g},LogComponentImpl.prototype.description=function(){return this._desc},LogComponentImpl.prototype.setDescription=function(g){this._desc=g},LogComponentImpl.prototype.level=function(){return this._level},LogComponentImpl.prototype.setLevel=function(g){I.setLevel(this,g)},LogComponentImpl.prototype._setLevel=function(g){this._level=g},LogComponentImpl.prototype._setThreshold=function(g){this._threshold=g},LogComponentImpl.prototype.isEnabled=function(g){return this._threshold<=g},LogComponentImpl.prototype.setExtendedInfo=function(g){this._extendedInfo=g},LogComponentImpl.prototype.extendedInfo=function(){return this._extendedInfo},LogComponentImpl.prototype.trace=function(g){for(var f=[],S=1;S0;){if(g[S])return g[S];var v=S.lastIndexOf(".");S=v<0?"":S.substr(0,v)}return g[""]?g[""]:_.LogLevel.Debug4}function findThreshold(g,f){var S=255;return f.forEach((function(f){var v=255;f.appender.levels()?v=Math.min(v,findLevel(f.appender.levels(),g)):f.appender.receiveAll()||(v=Math.min(v,g.level())),S=Math.min(S,v)})),S}function appenderMatches(g,f,S){return!!g.appender.receiveAll()||(g.appender.levels()?S>=findLevel(g.appender.levels(),f):S>=f.level())}A._levelFromString={TRACE:_.LogLevel.Trace,DEBUG6:_.LogLevel.Debug6,DEBUG5:_.LogLevel.Debug5,DEBUG4:_.LogLevel.Debug4,DEBUG3:_.LogLevel.Debug3,DEBUG2:_.LogLevel.Debug2,DEBUG1:_.LogLevel.Debug1,WARN:_.LogLevel.Warning,ERROR:_.LogLevel.Error,FATAL:_.LogLevel.Fatal,META:_.LogLevel.MetaData},f.LogFactory=A;var P=function(g){function LogFactoryImpl(){var f=g.call(this)||this;return f._nextId=0,f._appenders=[],f._components={},f._componentBlacklist=[],f._components[""]=new b("",null),f}return T(LogFactoryImpl,g),LogFactoryImpl.prototype.toHex=function(g){return(4294967296+g).toString(16).substr(-8)},LogFactoryImpl.prototype.addAppender=function(g,f){void 0===f&&(f=0);var S=this._nextId++;return f&_.AppenderFlags.InsertFront?this._appenders.unshift({appender:g,handle:S}):this._appenders.push({appender:g,handle:S}),this.recalcComponentThresholds(),S},LogFactoryImpl.prototype.removeAppender=function(g){for(var f=0;f=0?g.substr(0,f):"",this._components[g])return this._components[g]}},LogFactoryImpl.prototype.children=function(g){var f=[];for(var S in this._components)this.parent(S).name()===g&&f.push(this._components[S]);return f},LogFactoryImpl.prototype.component=function(g){if(this._components[g])return this._components[g];var f=new b(g,this.parent(g));this._components[g]=f;var S=findThreshold(f,this._appenders);return f._setThreshold(S),f},LogFactoryImpl.prototype.rootComponent=function(){return this.component("")},LogFactoryImpl.prototype.setSafetyRecursive=function(g,f){var S=this;this.children(g).forEach((function(g){g.safety()!==v.Inherited_Safe&&g.safety()!==v.Inherited_Unsafe||(g.setSafety(f),S.setSafetyRecursive(g.name(),f))}))},LogFactoryImpl.prototype.declareComponentSafe=function(g,f){var S=this.component(g);-1!==this._componentBlacklist.indexOf(S.name())?S.setSafety(v.Blacklisted_Unsafe):S.setSafety(f?v.Safe:v.Unsafe),this.setSafetyRecursive(g,f?v.Inherited_Safe:v.Inherited_Unsafe)},LogFactoryImpl.prototype.declareComponentDescription=function(g,f){this.component(g).setDescription(f)},LogFactoryImpl.prototype.setExtendedInfoRecursive=function(g,f){var S=this;this.children(g).forEach((function(g){void 0===g.extendedInfo()&&(g.setExtendedInfo(f),S.setExtendedInfoRecursive(g.name(),f))}))},LogFactoryImpl.prototype.declareComponentExtendedInfo=function(g,f){var S=this.component(g);S.setExtendedInfo(f),this.setExtendedInfoRecursive(S.name(),f)},LogFactoryImpl.prototype.recalcComponentThresholds=function(){for(var g in this._components){var f=this._components[g],S=findThreshold(f,this._appenders);f._setThreshold(S)}},LogFactoryImpl.prototype.setLevel=function(g,f){if(""===g.name())for(var S in this._components){(_=this._components[S])._setLevel(f);var v=findThreshold(_,this._appenders);_._setThreshold(v)}else{var C=g.name()+".";g._setLevel(f);v=findThreshold(g,this._appenders);for(var S in g._setThreshold(v),this._components){var _;if((_=this._components[S]).name().substr(0,C.length)===C){_._setLevel(f);var T=findThreshold(_,this._appenders);_._setThreshold(T)}}}},LogFactoryImpl.prototype.setComponentBlacklist=function(g){for(var f in this._componentBlacklist=g,this._components){var S=this._components[f];-1!==this._componentBlacklist.indexOf(S.name())&&S.setSafety(v.Blacklisted_Unsafe)}},LogFactoryImpl}(A);I=new P})),I=createCommonjsModule((function(g,f){function fromThenable(g){var f=Defer();return g.then((function(g){f.resolve(g)}),(function(g){f.reject(g)})),f.promise().thenAsync((function(g){return g}))}function isThenable(g){return null!=g&&"function"==typeof g.then}function isCancelable(g){return null!=g&&"function"==typeof g.cancel}function run(g,S){if(!f.config.catchExceptions)return g();try{return g()}catch(g){return S(g)}}Object.defineProperty(f,"__esModule",{value:!0}),f.config={exceptionsToConsole:!0,catchExceptions:!0,traceEnabled:!1,exceptionHandler:void 0,unhandledErrorHandler:function(g){throw g}},f.fromThenable=fromThenable;var S,v=[],C="undefined"!=typeof setImmediate;function asyncCallback(g){v.push(g),1===v.length&&(C?setImmediate(resolveAsyncCallbacks):setTimeout(resolveAsyncCallbacks,0))}function resolveAsyncCallbacks(){var g=v;v=[];for(var f=0;f0&&S.forEach((function(g){f._completedSuccess||f._completedFail||g(f._cancelContext)}))}},SyncTask.cancelOtherInternal=function(g,f){var S=g;S._storedCallbackSets&&S._cancelInternal?S._cancelInternal(f):g.cancel(f)},SyncTask.prototype.promise=function(){return this},SyncTask.prototype._resolveSuccesses=function(){var g=this;for(this._resolving=!0;this._storedCallbackSets.length;){var f=this._storedCallbackSets;this._storedCallbackSets=[],f.forEach((function(f){f.asyncCallback?asyncCallback((function(){return g._resolveSuccessCallback(f)})):g._resolveSuccessCallback(f)}))}this._resolving=!1},SyncTask.prototype._resolveSuccessCallback=function(g){var f=this;g.successFunc?run((function(){var S=g.successFunc(f._storedResolution);isCancelable(S)&&(g.wasCanceled?SyncTask.cancelOtherInternal(S,g.cancelContext):g.task.onCancel((function(g){return SyncTask.cancelOtherInternal(S,g)}))),isThenable(S)?S.then((function(f){g.task.resolve(f)}),(function(f){g.task.reject(f)})):g.task.resolve(S)}),(function(S){f._handleException(S,"SyncTask caught exception in success block: "+S.toString()),g.task.reject(S)})):g.task.resolve(this._storedResolution)},SyncTask.prototype._resolveFailures=function(){var g=this;for(this._resolving=!0;this._storedCallbackSets.length;){var f=this._storedCallbackSets;this._storedCallbackSets=[],f.forEach((function(f){f.asyncCallback?asyncCallback((function(){return g._resolveFailureCallback(f)})):g._resolveFailureCallback(f)}))}this._resolving=!1},SyncTask.prototype._resolveFailureCallback=function(g){var f=this;g.failFunc?run((function(){var S=g.failFunc(f._storedErrResolution);isCancelable(S)&&(g.wasCanceled?SyncTask.cancelOtherInternal(S,g.cancelContext):g.task.onCancel((function(g){return SyncTask.cancelOtherInternal(S,g)}))),isThenable(S)?S.then((function(f){g.task.resolve(f)}),(function(f){g.task.reject(f)})):g.task.resolve(S)}),(function(S){f._handleException(S,"SyncTask caught exception in failure block: "+S.toString()),g.task.reject(S)})):g.task.reject(this._storedErrResolution)},SyncTask.prototype._handleException=function(g,S){f.config.exceptionsToConsole&&console.error(S),f.config.exceptionHandler&&f.config.exceptionHandler(g)},SyncTask.prototype.toEs6Promise=function(){var g=this;return new Promise((function(f,S){return g.then(f,S)}))},SyncTask._rejectedTasks=[],SyncTask}();g.SyncTask=S}(S||(S={})),f.all=all,f.Defer=Defer,f.Resolved=Resolved,f.Rejected=Rejected,f.race=race,f.raceTimer=raceTimer})),b=createCommonjsModule((function(g,f){ /*! * Appenders.ts * AUF * * Created by Johan Blumenberg on 2016-12-29 * Copyright 2016 Microsoft. All rights reserved. * */ var S,v=C&&C.__extends||(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,f){g.__proto__=f}||function(g,f){for(var S in f)f.hasOwnProperty(S)&&(g[S]=f[S])},function(g,f){function __(){this.constructor=g}S(g,f),g.prototype=null===f?Object.create(f):(__.prototype=f.prototype,new __)});Object.defineProperty(f,"__esModule",{value:!0});var I,b=function(){function AbstractLogAppender(g){this._formatter=g||new A}return AbstractLogAppender.prototype.formatter=function(){return this._formatter},AbstractLogAppender.prototype.receiveAll=function(){return!1},AbstractLogAppender.prototype.levels=function(){return null},AbstractLogAppender}();function toHex(g){return(4294967296+g).toString(16).substr(-8)}function pad(g,f){return(1e12+g).toString(10).substr(-f)}f.AbstractLogAppender=b,function(g){g[g.Timestamp=1]="Timestamp",g[g.Component=4]="Component",g[g.Level=8]="Level",g[g.FullDate=32]="FullDate",g[g.LogId=64]="LogId"}(I=f.SLF_Flags||(f.SLF_Flags={}));var A=function(){function StandardLogFormatter(g){void 0===g&&(g=4294967295),this._flags=g}return StandardLogFormatter.prototype.format=function(g,f,S,v){var C="";if(this._flags&I.FullDate)C+=new Date(g.timestamp).toISOString()+" ";else if(this._flags&I.Timestamp){var b=new Date(g.timestamp);C+=pad(b.getHours(),2)+":"+pad(b.getMinutes(),2)+":"+pad(b.getSeconds(),2)+"."+pad(b.getMilliseconds(),2)+" "}return this._flags&I.LogId&&(C+="[#"+toHex(f)+"-"+(g.component.safe()?"S":"u")+"] "),this._flags&I.Level&&(C+="["+T.LogFactory.levelToString(g.level)+"] "),this._flags&I.Component&&(C+="["+g.component.name()+"] "),S||""===S?C+_.vsprintf(S,v):C+toHex(f)+": "+v.join(" ")},StandardLogFormatter}();f.StandardLogFormatter=A;var P=console,R=console.log||function(){},M=console.info||R,w=console.warn||M,O=console.error||w,D=function(g){function ConsoleAppender(){return null!==g&&g.apply(this,arguments)||this}return v(ConsoleAppender,g),ConsoleAppender.prototype.log=function(g,f,S,v){v=v.slice(0);var C=g.level<=_.LogLevel.Debug3?R:g.level<=_.LogLevel.Debug1?M:g.level<=_.LogLevel.Warning?w:O;if(-1===f){var T=this.formatter().format(g,f,"",[]);"string"==typeof v[0]&&(T+=v.shift()),C.apply(P,[T].concat(v))}else{for(var I=void 0,b=[];I=S.match(/\s*%@\s*$/);)S=S.substr(0,S.length-I[0].length),b.unshift(v.pop());T=this.formatter().format(g,f,S,v);C.apply(P,[T].concat(b))}},ConsoleAppender}(b);f.ConsoleAppender=D;var N=function(){function ChainedLogAppender(g){this._chained=g}return ChainedLogAppender.prototype.log=function(g,f,S,v){this._chained.log(g,f,S,v)},ChainedLogAppender.prototype.receiveAll=function(){return this._chained.receiveAll()},ChainedLogAppender.prototype.levels=function(){return this._chained.levels()},ChainedLogAppender}();f.ChainedLogAppender=N;var k=function(g){function LevelWrappedAppender(f,S){var v=g.call(this,f)||this;return v._levels=S,v}return v(LevelWrappedAppender,g),LevelWrappedAppender.prototype.levels=function(){return this._levels},LevelWrappedAppender}(N);function wrapAppenderWithLogLevels(g,f){return new k(g,f)}f.wrapAppenderWithLogLevels=wrapAppenderWithLogLevels})),A=createCommonjsModule((function(g,f){ /*! * RootToolsManager.ts * AUF * * Created by Johan Blumenberg on 2016-12-29 * Copyright 2016 Microsoft. All rights reserved. * */ var S,v=C&&C.__extends||(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,f){g.__proto__=f}||function(g,f){for(var S in f)f.hasOwnProperty(S)&&(g[S]=f[S])},function(g,f){function __(){this.constructor=g}S(g,f),g.prototype=null===f?Object.create(f):(__.prototype=f.prototype,new __)});Object.defineProperty(f,"__esModule",{value:!0});var A=T.LogFactory.instance().component("RootToolsManager");T.LogFactory.instance().declareComponentSafe("RootToolsManager",!0);var P,R="638b8ba2bae14e07aa5d73ddb5d5e5c5-297b8412-5df3-4a83-83c4-7b76c6c5d3f0-7104";!function(g){g[g.InternalBuild=0]="InternalBuild",g[g.PublicBuild=1]="PublicBuild"}(P=f.BuildType||(f.BuildType={}));var M=P.InternalBuild;function setBuildType(g){var f=M;return M=g,f}function toHex(g){return(4294967296+g).toString(16).substr(-8)}function map(g,f){var S=[];for(var v in g)S.push(f(v,g[v]));return S}function arrayEquals(g,f,S){if(null==g)return null==f||0===f.length;if(null==f)return null==g||0===g.length;if(g.length===f.length){for(var v=0;v=f.length)return!1;var S=f[g.arg],v="string"==typeof S?g.value:parseInt(g.value,10);return"="===g.op||"=="===g.op?S===v:"!="===g.op?S!==v:"<"===g.op?S"===g.op?S>v:">="===g.op?S>=v:"CONTAINS"===g.op.toUpperCase()&&(""+S).indexOf(g.value)>=0},Trigger.prototype.conditionMatches=function(g,f,S){if(f!==g.logId)return!1;if(g.matchers)for(var v=0;vthis._circularBufferMaxSize)){var C={md:g,logId:f,messages:formatArgs(v)};this._circularBuffer.push(C),this._circularBuffer.length>this._circularBufferMaxSize&&this._onBufferOverflow()}},CircularBuffer.prototype.visitReverseOrder=function(g){for(var f=this._circularBuffer.length-1;f>=0;f--){var S=this._circularBuffer[f];if(!g(S.md,S.logId,S.messages))return}},CircularBuffer.prototype.visitForwardOrder=function(g){for(var f=0;f=v[C].parsedLevel)return!0;return!1},CircularBuffer.prototype.clear=function(){this._circularBuffer=[]},CircularBuffer.prototype.size=function(){return this._circularBuffer.length},CircularBuffer.prototype.empty=function(){return 0===this.size()},CircularBuffer.prototype.capacity=function(){return this._circularBufferMaxSize},CircularBuffer}(b.AbstractLogAppender);f.CircularBuffer=O;var D=function(){function BinaryLogFormatter(g){this._reverse=g,this._first=!0,this._pending=[],this._components={},this._componentCount=0,this._lastts=0,this._base64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",this._data="ULOG2"+String.fromCharCode(33)+String.fromCharCode(32),this._data+=g?String.fromCharCode(34):String.fromCharCode(32),this._data+=String.fromCharCode(32)}return BinaryLogFormatter.prototype._add8=function(g){if(this._pending.push(255&g),3===this._pending.length){var f=(this._pending[0]<<16)+(this._pending[1]<<8)+(this._pending[2]<<0),S=this._base64chars[f>>18&63]+this._base64chars[f>>12&63]+this._base64chars[f>>6&63]+this._base64chars[f>>0&63];this._data+=S,this._pending=[]}},BinaryLogFormatter.prototype._add16=function(g){this._add8(g>>8&255),this._add8(g>>0&255)},BinaryLogFormatter.prototype._add32=function(g){this._add8(g>>24&255),this._add8(g>>16&255),this._add8(g>>8&255),this._add8(g>>0&255)},BinaryLogFormatter.prototype._add64=function(g){this._add32(g/4294967296|0),this._add32(0|g)},BinaryLogFormatter.prototype._addS=function(g){for(var f=0;f-128&&I<128&&(T|=1),this._add8(T),1&T?this._add8(I):this._add64(1e3*f),this._first&&(this._add32(1),this._add8(0),this._add16(0)),this._add16(_),this._add8(S),this._add32(v),this._add8(C.length);for(var b=0;bthis._capacity&&(this._enableThrottling?this._throttling||(this._throttling=!0):this._onBufferOverflow()))},DumperBuffer.prototype.dumpAndReset=function(){if(this._outputFormatter.empty())return"";this._linesThrottled>0&&this._outputFormatter.log(A,(new Date).getTime(),_.LogLevel.Fatal,-1,["RooToolsManager: Log buffer overflow! "+this._linesThrottled+" lines thrown away"]),this._outputFormatter.close();var g=this._outputFormatter.data();return this.clearBuffer(),g},DumperBuffer.prototype.empty=function(){return this._outputFormatter.empty()},DumperBuffer.prototype.clearBuffer=function(){this._outputFormatter=new D(!1),this._linesStored=0,this._linesThrottled=0,this._throttling=!1},DumperBuffer.prototype.capacity=function(){return this._capacity},DumperBuffer.prototype.throttlingEnabled=function(){return this._enableThrottling},DumperBuffer.prototype.size=function(){return this._linesStored},DumperBuffer.prototype.maxVerbosityLevel=function(){return this._maxVerbosityLevel},DumperBuffer}(b.AbstractLogAppender);function validateExperimentTarget(g){return"Native"===g||"JavaScript"===g||"Mixed"===g}f.DumperBuffer=N;var k=function(){function RootToolsManagerImpl(){this._maxUploadSize=0,this._jsToNativeBuffer=null,this._jsToNativeBufferHandle=null,this._jsToNativeFlushTimer=null,this._jsToNativeFlushInterval=0,this._triggers={},this._defaultBuffers=[{size:2097152,level:_.LogLevel.Debug4}],this._defaultKillswitch={blacklist:[],whitelist:[]},this._defaultBlacklists={component:[],logline:[]},this._localLogLevels={},this._defaultExperimentTarget="Mixed",this._BRBCallback=null}return RootToolsManagerImpl.prototype.setDelegate=function(g){this._glue=g,this.registerListeners()},RootToolsManagerImpl.prototype.isDelegateSet=function(){return null!=this._glue},RootToolsManagerImpl.prototype.setNativeFunctions=function(g){this._native&&this._native.log_config.removeLogTriggerListener(this),this._native=g,this._native&&this._native.log_config.addLogTriggerListener(this)},RootToolsManagerImpl.prototype.applyLogLevels=function(){var g={};for(var f in this._localLogLevels)g[f]=this._localLogLevels[f];g[""]=g.root||_.LogLevel.Debug4,delete g.root;var S=map(g,(function(g,f){return{component:g,level:f}}));S.sort((function(g,f){return g.component.length-f.component.length})),S.forEach((function(g){return T.LogFactory.instance().component(g.component).setLevel(g.level)})),this._native&&this._native.log_config.setLogLevelConfig(S)},RootToolsManagerImpl.prototype.setLocalLogLevelConfig=function(g){this._localLogLevels=g,this.applyLogLevels()},RootToolsManagerImpl.prototype.parseMatcher=function(g){return null==g||null==g.arg||null==g.op||null==g.value?null:{arg:g.arg,op:g.op,value:g.value}},RootToolsManagerImpl.prototype.parseCondition=function(g){if(null==g||null==g.logId)return null;if(g.matchers&&!(g.matchers instanceof Array))return null;var f={name:g.name||toHex(g.logId),logId:g.logId,matchers:[]};if(g.matchers&&g.matchers.length)for(var S=0,v=g.matchers;S"+S,ecsNs:f,reenableAfterTriggering:g.reenableAfterTriggering||!1,mutualSubmissionType:g.mutualSubmissionType||"",includeUnsafe:M!==P.PublicBuild&&(g.includeUnsafe||!1),experimentTarget:validateExperimentTarget(g.experimentTarget)&&g.experimentTarget||this._defaultExperimentTarget,conditions:[],resetCondition:null==g.resetCondition?g.resetCondition:this.parseCondition(g.resetCondition),filters:[]},C=0,_=g.conditions;C<_.length;C++){var T=_[C],I=this.parseCondition(T);I&&v.conditions.push(I)}for(var b=0,A=g.filters;b0&&T.LogFactory.instance().setComponentBlacklist(D.component);var N={};(f.componentLevels||[]).forEach((function(g){return N[g.component]=g.level})),forEachAsync(f.configPaths||[],0,(function(f){return g._glue.fetchEcsConfig(f.ns,f.key).then((function(C){var _=C instanceof Array?C:[C];A.debug4("Reloading ECS config for %s->%s - new config: %@",f.ns,f.key,_);for(var T=0,b=_;T%s - %@",f.ns,f.key,w),g.isExperimentAllowed(M,f.ns,w.name)){A.debug2("Allowing %s->%s:%s according to killswitch",f.ns,f.key,w.name),I=!0;var O=g.findTrigger(v,w);null!=O?(A.debug2("Triggers updated, keeping trigger %s",w.name),g._triggers[O]=v[O],delete v[O]):S.push(w),w.filters&&w.filters.forEach((function(g){return N[g.component]=Math.min(N[g.component]||255,g.parsedLevel)})),w.includeUnsafe&&(R=!0)}else A.debug2("Disallowing %s->%s according to killswitch",f.ns,f.key);else A.debug4("Skipping %s->%s, targeted for %s",f.ns,f.key,w);else A.error("Failed to parse ECS config for %s->%s",f.ns,f.key)}}}))})).always((function(){for(var f in g.applyLogLevels(),v)A.debug2("Triggers updated, removing trigger %s",v[f].config().name),T.LogFactory.instance().removeAppender(+f);if(S.forEach((function(f){A.debug2("Triggers updated, adding trigger %s",f.name);var S=new w(g,g._triggered,f),v=T.LogFactory.instance().addAppender(S);g._triggers[String(v)]=S})),N[""]=N.root||_.LogLevel.Debug4,delete N.root,!g._circularBuffer||I&&!g._circularBuffer.needReset(R,C)?g._circularBuffer&&(Object.keys(v).length>0||S.length>0?(A.debug2("Buffer updated, reapplying log levels, removing log levels wrapper"),T.LogFactory.instance().removeAppender(g._circularBufferHandle),g._circularBufferHandle=null):A.debug2("Buffer updated, no change")):(A.debug2("Buffer updated, removing existing buffer"),T.LogFactory.instance().removeAppender(g._circularBufferHandle),g._circularBuffer=null,g._circularBufferHandle=null),I&&(g._circularBuffer||(A.debug2("Buffer updated, adding new buffer (storeUnsafe=%d,maxSize=%s)",R,C),g._circularBuffer=new O(R,C)),null==g._circularBufferHandle&&(A.debug2("Creating log level wrapper"),g._circularBufferHandle=T.LogFactory.instance().addAppender(b.wrapAppenderWithLogLevels(g._circularBuffer,N),_.AppenderFlags.InsertFront))),g._native){var M=map(N,(function(g,f){return{component:g,level:f}}));M.sort((function(g,f){return g.component.length-f.component.length})),g._native.log_config.setLogBufferConfig(I,{storeUnsafe:R,buffers:P},M);var D=[];for(var k in g._triggers){var L=g._triggers[k].config();D.push({name:L.name,ecsNs:L.ecsNs,conditions:L.conditions,resetCondition:L.resetCondition,includeUnsafe:L.includeUnsafe,reenableAfterTriggering:L.reenableAfterTriggering,filters:L.filters.map((function(g){return{component:g.component,level:g.parsedLevel}})),dumpFile:!1,metadata:{}})}g._native.log_config.setLogTriggerConfig(D,{})}}))}))},RootToolsManagerImpl.prototype._send=function(g,f){null!=this._glue&&(this._glue.sendTelemetry(R,{logTriggerName:g.name,logEcsNs:g.ecsNs,logdata:f}),A.debug4("LogSender::send, sent %d bytes",f.length))},RootToolsManagerImpl.prototype.triggered=function(g,f){},RootToolsManagerImpl.prototype.triggeredPartially=function(g,f,S,v,C){var _=this.findTriggerByNativeConfig(this._triggers,g);if(_){var I={level:f.level,component:T.LogFactory.instance().component(f.component),timestamp:f.timestamp};this._triggers[_].log(I,S,v,C)}},RootToolsManagerImpl.prototype.reset=function(g){var f=this.findTriggerByNativeConfig(this._triggers,g);f&&this._triggers[f].resetConditions()},RootToolsManagerImpl.prototype.dumpLogBuffer=function(g,f){if(this._circularBuffer){var S={matchedLines:0,totalLines:0},v=this._circularBuffer.dumpLogBuffer(g,this._maxUploadSize,S);if(A.debug4("dumpLogBuffer: dumped %d of %d lines, size of payload: %d",S.matchedLines,S.totalLines,null!=v?v.length:0),this._native){var C=I.Defer();return this._native.log_config.mergeAndDumpLogBuffer(v,g,f,(function(g){return C.resolve(g)})),C.promise()}return I.Resolved(v)}return A.warn("dumpLogBuffer: no log buffer enabled"),I.Rejected()},RootToolsManagerImpl.prototype._triggered=function(g){var f=this,S={compression:_.LogFileCompression.Compress,encoding:_.LogFileEncoding.Base64,encryption:_.LogFileEncryption.Encrypted,maxRotations:0,maxSize:this._maxUploadSize,reverse:!0},v={includeUnsafe:g.includeUnsafe,filter:g.filters.map((function(g){return{component:g.component,level:g.parsedLevel}})),reverse:!0};this.dumpLogBuffer(v,S).then((function(S){return f._send(g,S)}))},RootToolsManagerImpl.prototype.sendBRBEvent=function(g,f){try{if(A.debug2("sendBRBEvent %s",JSON.stringify(g)),null!=this._glue&&"function"==typeof this._glue.sendLoggingEventToNative){var S={eventType:"uploadBRB",mutualSubmissionType:"call",payload:g},v=void 0!==f?JSON.stringify({userIds:f}):"";this._glue.sendLoggingEventToNative(JSON.stringify(S),v)}}catch(g){A.error("sendBRBEvent %s: %s",g.name,g.message)}},RootToolsManagerImpl.prototype.setBRBCallback=function(g){A.debug2("setBRBCallback"),null!=this._glue?"function"==typeof this._glue.setNativeLoggingEventCallback?this._BRBCallback=g:A.warn("setBRBCallback: RootToolsManagerDelegate missing setNativeLoggingEventCallback method"):A.warn("setBRBCallback: RootToolsManagerDelegate is not set")},RootToolsManagerImpl.prototype.registerListeners=function(){var g=this;null!=this._glue&&"function"==typeof this._glue.setNativeLoggingEventCallback?this._glue.setNativeLoggingEventCallback((function(f,S){return g.handleNativeLoggingEvent(f,S)})):A.warn("registerListeners: RootToolsManagerDelegate missing setNativeLoggingEventCallback method")},RootToolsManagerImpl.prototype.handleNativeLoggingEvent=function(g,f){try{A.debug2("Native Log event message: %s aux: %s",g,f);var S=JSON.parse(g);if(S.eventType&&"uploadBRB"===S.eventType){if("function"!=typeof this._BRBCallback)return void A.warn("BRBCallback not set, ignoring native event");A.debug4("Sending BRB callback: %@",S.payload),this._BRBCallback(S.payload)}else S.eventType&&"jsLogFileConfiguration"===S.eventType&&this.handleLogFileConfigEvent(S)}catch(g){A.error("handleNativeLoggingEvent %s: %s",g.name,g.message)}},RootToolsManagerImpl.prototype.handleLogFileConfigEvent=function(g){if(g.payload){var f=g.payload;if(f.enabled){if(f.chunkSize&&f.flushInterval){var S={chunkSize:f.chunkSize,flushInterval:f.flushInterval,enableThrottling:f.enableThrottling,maxVerbosityLevel:f.maxVerbosityLevel};this.startJsToNativeLogging(S)}}else this.flushDisableJsToNativeLogging()}},RootToolsManagerImpl.prototype.logExternalForDDL=function(g,f){try{if(A.debug2("logExternalForDDL %s %s",g,f),null!=this._glue&&"function"==typeof this._glue.sendLoggingEventToNative){var S={eventType:"logInSClog",payload:{message:g,parameters:f}};this._glue.sendLoggingEventToNative(JSON.stringify(S),"")}else A.warn("ignoring logExternalForDDL, delegate misconfigured")}catch(g){A.error("logExternalForDDL %s: %s",g.name,g.message)}},RootToolsManagerImpl.prototype.startJsToNativeLogging=function(g){var f=this,S=g.chunkSize,v=g.flushInterval,C=g.enableThrottling,_=this._getVerbosityLevelFromConfig(g.maxVerbosityLevel);if(this._jsToNativeBuffer){if(this._jsToNativeBuffer.capacity()===S&&this._jsToNativeFlushInterval===v&&this._jsToNativeBuffer.throttlingEnabled()===C&&this._jsToNativeBuffer.maxVerbosityLevel()===_)return void A.debug1("Same JS2Native settings received - doing nothing");A.debug1("Reapplying js to native settings"),this.flushDisableJsToNativeLogging()}this._jsToNativeBuffer=new N(S,(function(){f.onJsToNativeBufferReady(f._jsToNativeBuffer)}),C,_),this.setJsToNativeFlushTimeout(v),this._jsToNativeFlushInterval=v,this._jsToNativeBufferHandle=T.LogFactory.instance().addAppender(this._jsToNativeBuffer)},RootToolsManagerImpl.prototype._getVerbosityLevelFromConfig=function(g){return g?T.LogFactory.levelFromString(g):null},RootToolsManagerImpl.prototype.flushDisableJsToNativeLogging=function(){this._jsToNativeBuffer&&this.onJsToNativeBufferReady(this._jsToNativeBuffer),this.plainDisableJsToNativeLogging()},RootToolsManagerImpl.prototype.plainDisableJsToNativeLogging=function(){this.clearJsToNativeFlushTimeout(),this._jsToNativeBufferHandle&&(T.LogFactory.instance().removeAppender(this._jsToNativeBufferHandle),this._jsToNativeBufferHandle=0,this._jsToNativeBuffer=null,A.debug1("Disabling forwarding JS logs to native"))},RootToolsManagerImpl.prototype.onJsToNativeBufferReady=function(g){null!=this._glue&&"function"==typeof this._glue.sendLoggingEventToNative?(this.clearJsToNativeFlushTimeout(),this.dumpJsToNativeBuffer(g),this.setJsToNativeFlushTimeout(this._jsToNativeFlushInterval)):this.plainDisableJsToNativeLogging()},RootToolsManagerImpl.prototype.dumpJsToNativeBuffer=function(g){if(!g.empty()){var f=g.dumpAndReset(),S={eventType:"writeLogData"};this._glue.sendLoggingEventToNative(JSON.stringify(S),f)}},RootToolsManagerImpl.prototype.clearJsToNativeFlushTimeout=function(){this._jsToNativeFlushTimer&&(clearTimeout(this._jsToNativeFlushTimer),this._jsToNativeFlushTimer=null)},RootToolsManagerImpl.prototype.setJsToNativeFlushTimeout=function(g){var f=this;!this._jsToNativeFlushTimer&&g&&(this._jsToNativeFlushTimer=setTimeout((function(){f._jsToNativeFlushTimer=null,f.onJsToNativeBufferReady(f._jsToNativeBuffer)}),g))},RootToolsManagerImpl.prototype.stopAsyncOperations=function(){this.flushDisableJsToNativeLogging()},RootToolsManagerImpl}();f.RootToolsManager=new k})),P=createCommonjsModule((function(g,f){ /*! * pii.ts * AUF * * Created by Johan Blumenberg on 2017-01-16 * Copyright 2017 Microsoft. All rights reserved. * */ Object.defineProperty(f,"__esModule",{value:!0});var DefaultTagger=function(g){return g},S=!0,v=DefaultTagger,C={},_=0;function addName(g){return C[g]="u"+ ++_}var T,I=/^([0-9][0-9]?):([^<>\*\{\}&'\"\/\\?^`|~\s]+)$/;!function(g){g[g.MSA=1]="MSA",g[g.S4B_Bridge=2]="S4B_Bridge",g[g.PSTN=4]="PSTN",g[g.SkypeId=8]="SkypeId",g[g.Thread=19]="Thread",g[g.LegacyShortCircuit=20]="LegacyShortCircuit",g[g.OneToOneTextMessage=21]="OneToOneTextMessage",g[g.GroupTextMessage=22]="GroupTextMessage",g[g.Bot=28]="Bot",g[g.InternalSkype=48]="InternalSkype"}(T||(T={}));var b=[T.Thread,T.InternalSkype];function enableAnonymization(g){S=g}function useTagger(g){v=g||DefaultTagger}f.enableAnonymization=enableAnonymization,f.useTagger=useTagger,function(g){function untaggedUserName(g){return S?g?C[g]||addName(g):null:g}function UserName(g){var f=untaggedUserName(g);return v(f)}function Mri(g){var f,S=g.match(I);if(S){var C=Number(S[1]),_=S[2];f=-1!=b.indexOf(C)?g:C+":"+untaggedUserName(_)}else f=untaggedUserName(g);return v(f)}function Omit(g){var f;return f=S?"number"==typeof g?19229:"string"==typeof g?g.charAt(0)+"...":null:g,v(f)}g.UserName=UserName,g.Mri=Mri,g.Omit=Omit}(f.pii||(f.pii={}))})),R=createCommonjsModule((function(g,f){ /*! * index.ts * AUF * * Created by Johan Blumenberg on 2016-12-29 * Copyright 2016 Microsoft. All rights reserved. * */ function __export(g){for(var S in g)f.hasOwnProperty(S)||(f[S]=g[S])}Object.defineProperty(f,"__esModule",{value:!0}),__export(_),__export(T),__export(A),__export(b),__export(P)})),M=createCommonjsModule((function(g,f){(function(){var S,v="4.17.21",_=200,T="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",I="Expected a function",b="Invalid `variable` option passed into `_.template`",A="__lodash_hash_undefined__",P=500,R="__lodash_placeholder__",M=1,w=2,O=4,D=1,N=2,k=1,L=2,F=4,x=8,U=16,V=32,B=64,H=128,$=256,j=512,G=30,q="...",W=800,z=16,K=1,J=2,Y=3,Q=1/0,X=9007199254740991,Z=17976931348623157e292,ee=NaN,te=4294967295,ie=te-1,ne=te>>>1,re=[["ary",H],["bind",k],["bindKey",L],["curry",x],["curryRight",U],["flip",j],["partial",V],["partialRight",B],["rearg",$]],se="[object Arguments]",ae="[object Array]",oe="[object AsyncFunction]",le="[object Boolean]",ce="[object Date]",de="[object DOMException]",he="[object Error]",ue="[object Function]",ge="[object GeneratorFunction]",pe="[object Map]",me="[object Number]",fe="[object Null]",Se="[object Object]",ve="[object Promise]",Ce="[object Proxy]",ye="[object RegExp]",Ee="[object Set]",_e="[object String]",Te="[object Symbol]",Ie="[object Undefined]",be="[object WeakMap]",Ae="[object WeakSet]",Pe="[object ArrayBuffer]",Re="[object DataView]",Me="[object Float32Array]",we="[object Float64Array]",Oe="[object Int8Array]",De="[object Int16Array]",Ne="[object Int32Array]",ke="[object Uint8Array]",Le="[object Uint8ClampedArray]",Fe="[object Uint16Array]",xe="[object Uint32Array]",Ue=/\b__p \+= '';/g,Ve=/\b(__p \+=) '' \+/g,Be=/(__e\(.*?\)|\b__t\)) \+\n'';/g,He=/&(?:amp|lt|gt|quot|#39);/g,$e=/[&<>"']/g,je=RegExp(He.source),Ge=RegExp($e.source),qe=/<%-([\s\S]+?)%>/g,We=/<%([\s\S]+?)%>/g,ze=/<%=([\s\S]+?)%>/g,Ke=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Je=/^\w*$/,Ye=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qe=/[\\^$.*+?()[\]{}|]/g,Xe=RegExp(Qe.source),Ze=/^\s+/,et=/\s/,tt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,it=/\{\n\/\* \[wrapped with (.+)\] \*/,nt=/,? & /,rt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,st=/[()=,{}\[\]\/\s]/,at=/\\(\\)?/g,ot=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lt=/\w*$/,ct=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,ht=/^\[object .+?Constructor\]$/,ut=/^0o[0-7]+$/i,gt=/^(?:0|[1-9]\d*)$/,pt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mt=/($^)/,ft=/['\n\r\u2028\u2029\\]/g,St="\\ud800-\\udfff",vt="\\u0300-\\u036f"+"\\ufe20-\\ufe2f"+"\\u20d0-\\u20ff",Ct="\\u2700-\\u27bf",yt="a-z\\xdf-\\xf6\\xf8-\\xff",Et="A-Z\\xc0-\\xd6\\xd8-\\xde",_t="\\ufe0e\\ufe0f",Tt="\\xac\\xb1\\xd7\\xf7"+"\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf"+"\\u2000-\\u206f"+" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",It="['’]",bt="["+St+"]",At="["+Tt+"]",Pt="["+vt+"]",Rt="\\d+",Mt="["+Ct+"]",wt="["+yt+"]",Ot="[^"+St+Tt+Rt+Ct+yt+Et+"]",Dt="\\ud83c[\\udffb-\\udfff]",Nt="[^"+St+"]",kt="(?:\\ud83c[\\udde6-\\uddff]){2}",Lt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ft="["+Et+"]",xt="\\u200d",Ut="(?:"+wt+"|"+Ot+")",Vt="(?:"+Ft+"|"+Ot+")",Bt="(?:"+It+"(?:d|ll|m|re|s|t|ve))?",Ht="(?:"+It+"(?:D|LL|M|RE|S|T|VE))?",$t="(?:"+Pt+"|"+Dt+")"+"?",jt="["+_t+"]?",Gt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Wt=jt+$t+("(?:"+xt+"(?:"+[Nt,kt,Lt].join("|")+")"+jt+$t+")*"),zt="(?:"+[Mt,kt,Lt].join("|")+")"+Wt,Kt="(?:"+[Nt+Pt+"?",Pt,kt,Lt,bt].join("|")+")",Jt=RegExp(It,"g"),Yt=RegExp(Pt,"g"),Qt=RegExp(Dt+"(?="+Dt+")|"+Kt+Wt,"g"),Xt=RegExp([Ft+"?"+wt+"+"+Bt+"(?="+[At,Ft,"$"].join("|")+")",Vt+"+"+Ht+"(?="+[At,Ft+Ut,"$"].join("|")+")",Ft+"?"+Ut+"+"+Bt,Ft+"+"+Ht,qt,Gt,Rt,zt].join("|"),"g"),Zt=RegExp("["+xt+St+vt+_t+"]"),ei=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ti=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ii=-1,ni={};ni[Me]=ni[we]=ni[Oe]=ni[De]=ni[Ne]=ni[ke]=ni[Le]=ni[Fe]=ni[xe]=!0,ni[se]=ni[ae]=ni[Pe]=ni[le]=ni[Re]=ni[ce]=ni[he]=ni[ue]=ni[pe]=ni[me]=ni[Se]=ni[ye]=ni[Ee]=ni[_e]=ni[be]=!1;var ri={};ri[se]=ri[ae]=ri[Pe]=ri[Re]=ri[le]=ri[ce]=ri[Me]=ri[we]=ri[Oe]=ri[De]=ri[Ne]=ri[pe]=ri[me]=ri[Se]=ri[ye]=ri[Ee]=ri[_e]=ri[Te]=ri[ke]=ri[Le]=ri[Fe]=ri[xe]=!0,ri[he]=ri[ue]=ri[be]=!1;var si={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},ai={"&":"&","<":"<",">":">",'"':""","'":"'"},oi={"&":"&","<":"<",">":">",""":'"',"'":"'"},li={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ci=parseFloat,di=parseInt,hi="object"==typeof C&&C&&C.Object===Object&&C,ui="object"==typeof self&&self&&self.Object===Object&&self,gi=hi||ui||Function("return this")(),pi=f&&!f.nodeType&&f,mi=pi&&g&&!g.nodeType&&g,fi=mi&&mi.exports===pi,Si=fi&&hi.process,vi=function(){try{var g=mi&&mi.require&&mi.require("util").types;return g||Si&&Si.binding&&Si.binding("util")}catch(g){}}(),Ci=vi&&vi.isArrayBuffer,yi=vi&&vi.isDate,Ei=vi&&vi.isMap,_i=vi&&vi.isRegExp,Ti=vi&&vi.isSet,Ii=vi&&vi.isTypedArray;function apply(g,f,S){switch(S.length){case 0:return g.call(f);case 1:return g.call(f,S[0]);case 2:return g.call(f,S[0],S[1]);case 3:return g.call(f,S[0],S[1],S[2])}return g.apply(f,S)}function arrayAggregator(g,f,S,v){for(var C=-1,_=null==g?0:g.length;++C<_;){var T=g[C];f(v,T,S(T),g)}return v}function arrayEach(g,f){for(var S=-1,v=null==g?0:g.length;++S-1}function arrayIncludesWith(g,f,S){for(var v=-1,C=null==g?0:g.length;++v-1;);return S}function charsEndIndex(g,f){for(var S=g.length;S--&&baseIndexOf(f,g[S],0)>-1;);return S}function countHolders(g,f){for(var S=g.length,v=0;S--;)g[S]===f&&++v;return v}var Ai=basePropertyOf(si),Pi=basePropertyOf(ai);function escapeStringChar(g){return"\\"+li[g]}function getValue(g,f){return null==g?S:g[f]}function hasUnicode(g){return Zt.test(g)}function hasUnicodeWord(g){return ei.test(g)}function iteratorToArray(g){for(var f,S=[];!(f=g.next()).done;)S.push(f.value);return S}function mapToArray(g){var f=-1,S=Array(g.size);return g.forEach((function(g,v){S[++f]=[v,g]})),S}function overArg(g,f){return function(S){return g(f(S))}}function replaceHolders(g,f){for(var S=-1,v=g.length,C=0,_=[];++S-1}function listCacheSet(g,f){var S=this.__data__,v=assocIndexOf(S,g);return v<0?(++this.size,S.push([g,f])):S[v][1]=f,this}function MapCache(g){var f=-1,S=null==g?0:g.length;for(this.clear();++f=f?g:f)),g}function baseClone(g,f,v,C,_,T){var I,b=f&M,A=f&w,P=f&O;if(v&&(I=_?v(g,C,_,T):v(g)),I!==S)return I;if(!isObject(g))return g;var R=Jn(g);if(R){if(I=initCloneArray(g),!b)return copyArray(g,I)}else{var D=sn(g),N=D==ue||D==ge;if(Qn(g))return cloneBuffer(g,b);if(D==Se||D==se||N&&!_){if(I=A||N?{}:initCloneObject(g),!b)return A?copySymbolsIn(g,baseAssignIn(I,g)):copySymbols(g,baseAssign(I,g))}else{if(!ri[D])return _?g:{};I=initCloneByTag(g,D,b)}}T||(T=new Stack);var k=T.get(g);if(k)return k;T.set(g,I),tr(g)?g.forEach((function(S){I.add(baseClone(S,f,v,S,g,T))})):Zn(g)&&g.forEach((function(S,C){I.set(C,baseClone(S,f,v,C,g,T))}));var L=R?S:(P?A?getAllKeysIn:getAllKeys:A?keysIn:keys)(g);return arrayEach(L||g,(function(S,C){L&&(S=g[C=S]),assignValue(I,C,baseClone(S,f,v,C,g,T))})),I}function baseConforms(g){var f=keys(g);return function(S){return baseConformsTo(S,g,f)}}function baseConformsTo(g,f,v){var C=v.length;if(null==g)return!C;for(g=Ct(g);C--;){var _=v[C],T=f[_],I=g[_];if(I===S&&!(_ in g)||!T(I))return!1}return!0}function baseDelay(g,f,v){if("function"!=typeof g)throw new _t(I);return ln((function(){g.apply(S,v)}),f)}function baseDifference(g,f,S,v){var C=-1,T=arrayIncludes,I=!0,b=g.length,A=[],P=f.length;if(!b)return A;S&&(f=arrayMap(f,baseUnary(S))),v?(T=arrayIncludesWith,I=!1):f.length>=_&&(T=cacheHas,I=!1,f=new SetCache(f));e:for(;++C_?0:_+v),(C=C===S||C>_?_:toInteger(C))<0&&(C+=_),C=v>C?0:toLength(C);v0&&S(I)?f>1?baseFlatten(I,f-1,S,v,C):arrayPush(C,I):v||(C[C.length]=I)}return C}var Ki=createBaseFor(),Ji=createBaseFor(!0);function baseForOwn(g,f){return g&&Ki(g,f,keys)}function baseForOwnRight(g,f){return g&&Ji(g,f,keys)}function baseFunctions(g,f){return arrayFilter(f,(function(f){return isFunction(g[f])}))}function baseGet(g,f){for(var v=0,C=(f=castPath(f,g)).length;null!=g&&vf}function baseHas(g,f){return null!=g&&Rt.call(g,f)}function baseHasIn(g,f){return null!=g&&f in Ct(g)}function baseInRange(g,f,S){return g>=ui(f,S)&&g=120&&M.length>=120)?new SetCache(b&&M):S}M=g[0];var w=-1,O=A[0];e:for(;++w-1;)I!==g&&$t.call(I,b,1),$t.call(g,b,1);return g}function basePullAt(g,f){for(var S=g?f.length:0,v=S-1;S--;){var C=f[S];if(S==v||C!==_){var _=C;isIndex(C)?$t.call(g,C,1):baseUnset(g,C)}}return g}function baseRandom(g,f){return g+Zt(Si()*(f-g+1))}function baseRange(g,f,S,v){for(var _=-1,T=hi(Xt((f-g)/(S||1)),0),I=C(T);T--;)I[v?T:++_]=g,g+=S;return I}function baseRepeat(g,f){var S="";if(!g||f<1||f>X)return S;do{f%2&&(S+=g),(f=Zt(f/2))&&(g+=g)}while(f);return S}function baseRest(g,f){return cn(overRest(g,f,identity),g+"")}function baseSample(g){return arraySample(values(g))}function baseSampleSize(g,f){var S=values(g);return shuffleSelf(S,baseClamp(f,0,S.length))}function baseSet(g,f,v,C){if(!isObject(g))return g;for(var _=-1,T=(f=castPath(f,g)).length,I=T-1,b=g;null!=b&&++__?0:_+f),(S=S>_?_:S)<0&&(S+=_),_=f>S?0:S-f>>>0,f>>>=0;for(var T=C(_);++v<_;)T[v]=g[v+f];return T}function baseSome(g,f){var S;return Wi(g,(function(g,v,C){return!(S=f(g,v,C))})),!!S}function baseSortedIndex(g,f,S){var v=0,C=null==g?v:g.length;if("number"==typeof f&&f==f&&C<=ne){for(;v>>1,T=g[_];null!==T&&!isSymbol(T)&&(S?T<=f:T=_){var P=f?null:en(g);if(P)return setToArray(P);I=!1,C=cacheHas,A=new SetCache}else A=f?[]:b;e:for(;++v=C?g:baseSlice(g,f,v)}var Zi=zt||function(g){return gi.clearTimeout(g)};function cloneBuffer(g,f){if(f)return g.slice();var S=g.length,v=Ut?Ut(S):new g.constructor(S);return g.copy(v),v}function cloneArrayBuffer(g){var f=new g.constructor(g.byteLength);return new xt(f).set(new xt(g)),f}function cloneDataView(g,f){var S=f?cloneArrayBuffer(g.buffer):g.buffer;return new g.constructor(S,g.byteOffset,g.byteLength)}function cloneRegExp(g){var f=new g.constructor(g.source,lt.exec(g));return f.lastIndex=g.lastIndex,f}function cloneSymbol(g){return ji?Ct(ji.call(g)):{}}function cloneTypedArray(g,f){var S=f?cloneArrayBuffer(g.buffer):g.buffer;return new g.constructor(S,g.byteOffset,g.length)}function compareAscending(g,f){if(g!==f){var v=g!==S,C=null===g,_=g==g,T=isSymbol(g),I=f!==S,b=null===f,A=f==f,P=isSymbol(f);if(!b&&!P&&!T&&g>f||T&&I&&A&&!b&&!P||C&&I&&A||!v&&A||!_)return 1;if(!C&&!T&&!P&&g=I?b:b*("desc"==S[v]?-1:1)}return g.index-f.index}function composeArgs(g,f,S,v){for(var _=-1,T=g.length,I=S.length,b=-1,A=f.length,P=hi(T-I,0),R=C(A+P),M=!v;++b1?v[_-1]:S,I=_>2?v[2]:S;for(T=g.length>3&&"function"==typeof T?(_--,T):S,I&&isIterateeCall(v[0],v[1],I)&&(T=_<3?S:T,_=1),f=Ct(f);++C<_;){var b=v[C];b&&g(f,b,C,T)}return f}))}function createBaseEach(g,f){return function(S,v){if(null==S)return S;if(!isArrayLike(S))return g(S,v);for(var C=S.length,_=f?C:-1,T=Ct(S);(f?_--:++_-1?_[T?f[I]:I]:S}}function createFlow(g){return flatRest((function(f){var v=f.length,C=v,_=LodashWrapper.prototype.thru;for(g&&f.reverse();C--;){var T=f[C];if("function"!=typeof T)throw new _t(I);if(_&&!b&&"wrapper"==getFuncName(T))var b=new LodashWrapper([],!0)}for(C=b?C:v;++C1&&k.reverse(),M&&Pb))return!1;var P=T.get(g),R=T.get(f);if(P&&R)return P==f&&R==g;var M=-1,w=!0,O=v&N?new SetCache:S;for(T.set(g,f),T.set(f,g);++M1?"& ":"")+f[v],f=f.join(S>2?", ":" "),g.replace(tt,"{\n/* [wrapped with "+f+"] */\n")}function isFlattenable(g){return Jn(g)||Kn(g)||!!(jt&&g&&g[jt])}function isIndex(g,f){var S=typeof g;return!!(f=null==f?X:f)&&("number"==S||"symbol"!=S&>.test(g))&&g>-1&&g%1==0&&g0){if(++f>=W)return arguments[0]}else f=0;return g.apply(S,arguments)}}function shuffleSelf(g,f){var v=-1,C=g.length,_=C-1;for(f=f===S?C:f;++v1?g[f-1]:S;return v="function"==typeof v?(g.pop(),v):S,unzipWith(g,v)}));function chain(g){var f=lodash(g);return f.__chain__=!0,f}function tap(g,f){return f(g),g}function thru(g,f){return f(g)}var Rn=flatRest((function(g){var f=g.length,v=f?g[0]:0,C=this.__wrapped__,interceptor=function(f){return baseAt(f,g)};return!(f>1||this.__actions__.length)&&C instanceof LazyWrapper&&isIndex(v)?((C=C.slice(v,+v+(f?1:0))).__actions__.push({func:thru,args:[interceptor],thisArg:S}),new LodashWrapper(C,this.__chain__).thru((function(g){return f&&!g.length&&g.push(S),g}))):this.thru(interceptor)}));function wrapperChain(){return chain(this)}function wrapperCommit(){return new LodashWrapper(this.value(),this.__chain__)}function wrapperNext(){this.__values__===S&&(this.__values__=toArray(this.value()));var g=this.__index__>=this.__values__.length;return{done:g,value:g?S:this.__values__[this.__index__++]}}function wrapperToIterator(){return this}function wrapperPlant(g){for(var f,v=this;v instanceof baseLodash;){var C=wrapperClone(v);C.__index__=0,C.__values__=S,f?_.__wrapped__=C:f=C;var _=C;v=v.__wrapped__}return _.__wrapped__=g,f}function wrapperReverse(){var g=this.__wrapped__;if(g instanceof LazyWrapper){var f=g;return this.__actions__.length&&(f=new LazyWrapper(this)),(f=f.reverse()).__actions__.push({func:thru,args:[reverse],thisArg:S}),new LodashWrapper(f,this.__chain__)}return this.thru(reverse)}function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__)}var Mn=createAggregator((function(g,f,S){Rt.call(g,S)?++g[S]:baseAssignValue(g,S,1)}));function every(g,f,v){var C=Jn(g)?arrayEvery:baseEvery;return v&&isIterateeCall(g,f,v)&&(f=S),C(g,getIteratee(f,3))}function filter(g,f){return(Jn(g)?arrayFilter:baseFilter)(g,getIteratee(f,3))}var wn=createFind(findIndex),On=createFind(findLastIndex);function flatMap(g,f){return baseFlatten(map(g,f),1)}function flatMapDeep(g,f){return baseFlatten(map(g,f),Q)}function flatMapDepth(g,f,v){return v=v===S?1:toInteger(v),baseFlatten(map(g,f),v)}function forEach(g,f){return(Jn(g)?arrayEach:Wi)(g,getIteratee(f,3))}function forEachRight(g,f){return(Jn(g)?arrayEachRight:zi)(g,getIteratee(f,3))}var Dn=createAggregator((function(g,f,S){Rt.call(g,S)?g[S].push(f):baseAssignValue(g,S,[f])}));function includes(g,f,S,v){g=isArrayLike(g)?g:values(g),S=S&&!v?toInteger(S):0;var C=g.length;return S<0&&(S=hi(C+S,0)),isString(g)?S<=C&&g.indexOf(f,S)>-1:!!C&&baseIndexOf(g,f,S)>-1}var Nn=baseRest((function(g,f,S){var v=-1,_="function"==typeof f,T=isArrayLike(g)?C(g.length):[];return Wi(g,(function(g){T[++v]=_?apply(f,g,S):baseInvoke(g,f,S)})),T})),kn=createAggregator((function(g,f,S){baseAssignValue(g,S,f)}));function map(g,f){return(Jn(g)?arrayMap:baseMap)(g,getIteratee(f,3))}function orderBy(g,f,v,C){return null==g?[]:(Jn(f)||(f=null==f?[]:[f]),Jn(v=C?S:v)||(v=null==v?[]:[v]),baseOrderBy(g,f,v))}var Ln=createAggregator((function(g,f,S){g[S?0:1].push(f)}),(function(){return[[],[]]}));function reduce(g,f,S){var v=Jn(g)?arrayReduce:baseReduce,C=arguments.length<3;return v(g,getIteratee(f,4),S,C,Wi)}function reduceRight(g,f,S){var v=Jn(g)?arrayReduceRight:baseReduce,C=arguments.length<3;return v(g,getIteratee(f,4),S,C,zi)}function reject(g,f){return(Jn(g)?arrayFilter:baseFilter)(g,negate(getIteratee(f,3)))}function sample(g){return(Jn(g)?arraySample:baseSample)(g)}function sampleSize(g,f,v){return f=(v?isIterateeCall(g,f,v):f===S)?1:toInteger(f),(Jn(g)?arraySampleSize:baseSampleSize)(g,f)}function shuffle(g){return(Jn(g)?arrayShuffle:baseShuffle)(g)}function size(g){if(null==g)return 0;if(isArrayLike(g))return isString(g)?stringSize(g):g.length;var f=sn(g);return f==pe||f==Ee?g.size:baseKeys(g).length}function some(g,f,v){var C=Jn(g)?arraySome:baseSome;return v&&isIterateeCall(g,f,v)&&(f=S),C(g,getIteratee(f,3))}var Fn=baseRest((function(g,f){if(null==g)return[];var S=f.length;return S>1&&isIterateeCall(g,f[0],f[1])?f=[]:S>2&&isIterateeCall(f[0],f[1],f[2])&&(f=[f[0]]),baseOrderBy(g,baseFlatten(f,1),[])})),xn=Kt||function(){return gi.Date.now()};function after(g,f){if("function"!=typeof f)throw new _t(I);return g=toInteger(g),function(){if(--g<1)return f.apply(this,arguments)}}function ary(g,f,v){return f=v?S:f,f=g&&null==f?g.length:f,createWrap(g,H,S,S,S,S,f)}function before(g,f){var v;if("function"!=typeof f)throw new _t(I);return g=toInteger(g),function(){return--g>0&&(v=f.apply(this,arguments)),g<=1&&(f=S),v}}var Un=baseRest((function(g,f,S){var v=k;if(S.length){var C=replaceHolders(S,getHolder(Un));v|=V}return createWrap(g,v,f,S,C)})),Vn=baseRest((function(g,f,S){var v=k|L;if(S.length){var C=replaceHolders(S,getHolder(Vn));v|=V}return createWrap(f,v,g,S,C)}));function curry(g,f,v){var C=createWrap(g,x,S,S,S,S,S,f=v?S:f);return C.placeholder=curry.placeholder,C}function curryRight(g,f,v){var C=createWrap(g,U,S,S,S,S,S,f=v?S:f);return C.placeholder=curryRight.placeholder,C}function debounce(g,f,v){var C,_,T,b,A,P,R=0,M=!1,w=!1,O=!0;if("function"!=typeof g)throw new _t(I);function invokeFunc(f){var v=C,T=_;return C=_=S,R=f,b=g.apply(T,v)}function leadingEdge(g){return R=g,A=ln(timerExpired,f),M?invokeFunc(g):b}function remainingWait(g){var S=f-(g-P);return w?ui(S,T-(g-R)):S}function shouldInvoke(g){var v=g-P;return P===S||v>=f||v<0||w&&g-R>=T}function timerExpired(){var g=xn();if(shouldInvoke(g))return trailingEdge(g);A=ln(timerExpired,remainingWait(g))}function trailingEdge(g){return A=S,O&&C?invokeFunc(g):(C=_=S,b)}function cancel(){A!==S&&Zi(A),R=0,C=P=_=A=S}function flush(){return A===S?b:trailingEdge(xn())}function debounced(){var g=xn(),v=shouldInvoke(g);if(C=arguments,_=this,P=g,v){if(A===S)return leadingEdge(P);if(w)return Zi(A),A=ln(timerExpired,f),invokeFunc(P)}return A===S&&(A=ln(timerExpired,f)),b}return f=toNumber(f)||0,isObject(v)&&(M=!!v.leading,T=(w="maxWait"in v)?hi(toNumber(v.maxWait)||0,f):T,O="trailing"in v?!!v.trailing:O),debounced.cancel=cancel,debounced.flush=flush,debounced}var Bn=baseRest((function(g,f){return baseDelay(g,1,f)})),Hn=baseRest((function(g,f,S){return baseDelay(g,toNumber(f)||0,S)}));function flip(g){return createWrap(g,j)}function memoize(g,f){if("function"!=typeof g||null!=f&&"function"!=typeof f)throw new _t(I);var memoized=function(){var S=arguments,v=f?f.apply(this,S):S[0],C=memoized.cache;if(C.has(v))return C.get(v);var _=g.apply(this,S);return memoized.cache=C.set(v,_)||C,_};return memoized.cache=new(memoize.Cache||MapCache),memoized}function negate(g){if("function"!=typeof g)throw new _t(I);return function(){var f=arguments;switch(f.length){case 0:return!g.call(this);case 1:return!g.call(this,f[0]);case 2:return!g.call(this,f[0],f[1]);case 3:return!g.call(this,f[0],f[1],f[2])}return!g.apply(this,f)}}function once(g){return before(2,g)}memoize.Cache=MapCache;var $n=Xi((function(g,f){var S=(f=1==f.length&&Jn(f[0])?arrayMap(f[0],baseUnary(getIteratee())):arrayMap(baseFlatten(f,1),baseUnary(getIteratee()))).length;return baseRest((function(v){for(var C=-1,_=ui(v.length,S);++C<_;)v[C]=f[C].call(this,v[C]);return apply(g,this,v)}))})),jn=baseRest((function(g,f){var v=replaceHolders(f,getHolder(jn));return createWrap(g,V,S,f,v)})),Gn=baseRest((function(g,f){var v=replaceHolders(f,getHolder(Gn));return createWrap(g,B,S,f,v)})),qn=flatRest((function(g,f){return createWrap(g,$,S,S,S,f)}));function rest(g,f){if("function"!=typeof g)throw new _t(I);return baseRest(g,f=f===S?f:toInteger(f))}function spread(g,f){if("function"!=typeof g)throw new _t(I);return f=null==f?0:hi(toInteger(f),0),baseRest((function(S){var v=S[f],C=castSlice(S,0,f);return v&&arrayPush(C,v),apply(g,this,C)}))}function throttle(g,f,S){var v=!0,C=!0;if("function"!=typeof g)throw new _t(I);return isObject(S)&&(v="leading"in S?!!S.leading:v,C="trailing"in S?!!S.trailing:C),debounce(g,f,{leading:v,maxWait:f,trailing:C})}function unary(g){return ary(g,1)}function wrap(g,f){return jn(castFunction(f),g)}function castArray(){if(!arguments.length)return[];var g=arguments[0];return Jn(g)?g:[g]}function clone(g){return baseClone(g,O)}function cloneWith(g,f){return baseClone(g,O,f="function"==typeof f?f:S)}function cloneDeep(g){return baseClone(g,M|O)}function cloneDeepWith(g,f){return baseClone(g,M|O,f="function"==typeof f?f:S)}function conformsTo(g,f){return null==f||baseConformsTo(g,f,keys(f))}function eq(g,f){return g===f||g!=g&&f!=f}var Wn=createRelationalOperation(baseGt),zn=createRelationalOperation((function(g,f){return g>=f})),Kn=baseIsArguments(function(){return arguments}())?baseIsArguments:function(g){return isObjectLike(g)&&Rt.call(g,"callee")&&!Ht.call(g,"callee")},Jn=C.isArray,Yn=Ci?baseUnary(Ci):baseIsArrayBuffer;function isArrayLike(g){return null!=g&&isLength(g.length)&&!isFunction(g)}function isArrayLikeObject(g){return isObjectLike(g)&&isArrayLike(g)}function isBoolean(g){return!0===g||!1===g||isObjectLike(g)&&baseGetTag(g)==le}var Qn=si||stubFalse,Xn=yi?baseUnary(yi):baseIsDate;function isElement(g){return isObjectLike(g)&&1===g.nodeType&&!isPlainObject(g)}function isEmpty(g){if(null==g)return!0;if(isArrayLike(g)&&(Jn(g)||"string"==typeof g||"function"==typeof g.splice||Qn(g)||ir(g)||Kn(g)))return!g.length;var f=sn(g);if(f==pe||f==Ee)return!g.size;if(isPrototype(g))return!baseKeys(g).length;for(var S in g)if(Rt.call(g,S))return!1;return!0}function isEqual(g,f){return baseIsEqual(g,f)}function isEqualWith(g,f,v){var C=(v="function"==typeof v?v:S)?v(g,f):S;return C===S?baseIsEqual(g,f,S,v):!!C}function isError(g){if(!isObjectLike(g))return!1;var f=baseGetTag(g);return f==he||f==de||"string"==typeof g.message&&"string"==typeof g.name&&!isPlainObject(g)}function isFinite(g){return"number"==typeof g&&ai(g)}function isFunction(g){if(!isObject(g))return!1;var f=baseGetTag(g);return f==ue||f==ge||f==oe||f==Ce}function isInteger(g){return"number"==typeof g&&g==toInteger(g)}function isLength(g){return"number"==typeof g&&g>-1&&g%1==0&&g<=X}function isObject(g){var f=typeof g;return null!=g&&("object"==f||"function"==f)}function isObjectLike(g){return null!=g&&"object"==typeof g}var Zn=Ei?baseUnary(Ei):baseIsMap;function isMatch(g,f){return g===f||baseIsMatch(g,f,getMatchData(f))}function isMatchWith(g,f,v){return v="function"==typeof v?v:S,baseIsMatch(g,f,getMatchData(f),v)}function isNaN(g){return isNumber(g)&&g!=+g}function isNative(g){if(an(g))throw new rt(T);return baseIsNative(g)}function isNull(g){return null===g}function isNil(g){return null==g}function isNumber(g){return"number"==typeof g||isObjectLike(g)&&baseGetTag(g)==me}function isPlainObject(g){if(!isObjectLike(g)||baseGetTag(g)!=Se)return!1;var f=Vt(g);if(null===f)return!0;var S=Rt.call(f,"constructor")&&f.constructor;return"function"==typeof S&&S instanceof S&&Pt.call(S)==Dt}var er=_i?baseUnary(_i):baseIsRegExp;function isSafeInteger(g){return isInteger(g)&&g>=-X&&g<=X}var tr=Ti?baseUnary(Ti):baseIsSet;function isString(g){return"string"==typeof g||!Jn(g)&&isObjectLike(g)&&baseGetTag(g)==_e}function isSymbol(g){return"symbol"==typeof g||isObjectLike(g)&&baseGetTag(g)==Te}var ir=Ii?baseUnary(Ii):baseIsTypedArray;function isUndefined(g){return g===S}function isWeakMap(g){return isObjectLike(g)&&sn(g)==be}function isWeakSet(g){return isObjectLike(g)&&baseGetTag(g)==Ae}var nr=createRelationalOperation(baseLt),rr=createRelationalOperation((function(g,f){return g<=f}));function toArray(g){if(!g)return[];if(isArrayLike(g))return isString(g)?stringToArray(g):copyArray(g);if(Gt&&g[Gt])return iteratorToArray(g[Gt]());var f=sn(g);return(f==pe?mapToArray:f==Ee?setToArray:values)(g)}function toFinite(g){return g?(g=toNumber(g))===Q||g===-Q?(g<0?-1:1)*Z:g==g?g:0:0===g?g:0}function toInteger(g){var f=toFinite(g),S=f%1;return f==f?S?f-S:f:0}function toLength(g){return g?baseClamp(toInteger(g),0,te):0}function toNumber(g){if("number"==typeof g)return g;if(isSymbol(g))return ee;if(isObject(g)){var f="function"==typeof g.valueOf?g.valueOf():g;g=isObject(f)?f+"":f}if("string"!=typeof g)return 0===g?g:+g;g=baseTrim(g);var S=dt.test(g);return S||ut.test(g)?di(g.slice(2),S?2:8):ct.test(g)?ee:+g}function toPlainObject(g){return copyObject(g,keysIn(g))}function toSafeInteger(g){return g?baseClamp(toInteger(g),-X,X):0===g?g:0}function toString(g){return null==g?"":baseToString(g)}var sr=createAssigner((function(g,f){if(isPrototype(f)||isArrayLike(f))copyObject(f,keys(f),g);else for(var S in f)Rt.call(f,S)&&assignValue(g,S,f[S])})),ar=createAssigner((function(g,f){copyObject(f,keysIn(f),g)})),or=createAssigner((function(g,f,S,v){copyObject(f,keysIn(f),g,v)})),lr=createAssigner((function(g,f,S,v){copyObject(f,keys(f),g,v)})),cr=flatRest(baseAt);function create(g,f){var S=qi(g);return null==f?S:baseAssign(S,f)}var dr=baseRest((function(g,f){g=Ct(g);var v=-1,C=f.length,_=C>2?f[2]:S;for(_&&isIterateeCall(f[0],f[1],_)&&(C=1);++v1),f})),copyObject(g,getAllKeysIn(g),S),v&&(S=baseClone(S,M|w|O,customOmitClone));for(var C=f.length;C--;)baseUnset(S,f[C]);return S}));function omitBy(g,f){return pickBy(g,negate(getIteratee(f)))}var vr=flatRest((function(g,f){return null==g?{}:basePick(g,f)}));function pickBy(g,f){if(null==g)return{};var S=arrayMap(getAllKeysIn(g),(function(g){return[g]}));return f=getIteratee(f),basePickBy(g,S,(function(g,S){return f(g,S[0])}))}function result(g,f,v){var C=-1,_=(f=castPath(f,g)).length;for(_||(_=1,g=S);++C<_;){var T=null==g?S:g[toKey(f[C])];T===S&&(C=_,T=v),g=isFunction(T)?T.call(g):T}return g}function set(g,f,S){return null==g?g:baseSet(g,f,S)}function setWith(g,f,v,C){return C="function"==typeof C?C:S,null==g?g:baseSet(g,f,v,C)}var Cr=createToPairs(keys),yr=createToPairs(keysIn);function transform(g,f,S){var v=Jn(g),C=v||Qn(g)||ir(g);if(f=getIteratee(f,4),null==S){var _=g&&g.constructor;S=C?v?new _:[]:isObject(g)&&isFunction(_)?qi(Vt(g)):{}}return(C?arrayEach:baseForOwn)(g,(function(g,v,C){return f(S,g,v,C)})),S}function unset(g,f){return null==g||baseUnset(g,f)}function update(g,f,S){return null==g?g:baseUpdate(g,f,castFunction(S))}function updateWith(g,f,v,C){return C="function"==typeof C?C:S,null==g?g:baseUpdate(g,f,castFunction(v),C)}function values(g){return null==g?[]:baseValues(g,keys(g))}function valuesIn(g){return null==g?[]:baseValues(g,keysIn(g))}function clamp(g,f,v){return v===S&&(v=f,f=S),v!==S&&(v=(v=toNumber(v))==v?v:0),f!==S&&(f=(f=toNumber(f))==f?f:0),baseClamp(toNumber(g),f,v)}function inRange(g,f,v){return f=toFinite(f),v===S?(v=f,f=0):v=toFinite(v),baseInRange(g=toNumber(g),f,v)}function random(g,f,v){if(v&&"boolean"!=typeof v&&isIterateeCall(g,f,v)&&(f=v=S),v===S&&("boolean"==typeof f?(v=f,f=S):"boolean"==typeof g&&(v=g,g=S)),g===S&&f===S?(g=0,f=1):(g=toFinite(g),f===S?(f=g,g=0):f=toFinite(f)),g>f){var C=g;g=f,f=C}if(v||g%1||f%1){var _=Si();return ui(g+_*(f-g+ci("1e-"+((_+"").length-1))),f)}return baseRandom(g,f)}var Er=createCompounder((function(g,f,S){return f=f.toLowerCase(),g+(S?capitalize(f):f)}));function capitalize(g){return Rr(toString(g).toLowerCase())}function deburr(g){return(g=toString(g))&&g.replace(pt,Ai).replace(Yt,"")}function endsWith(g,f,v){g=toString(g),f=baseToString(f);var C=g.length,_=v=v===S?C:baseClamp(toInteger(v),0,C);return(v-=f.length)>=0&&g.slice(v,_)==f}function escape(g){return(g=toString(g))&&Ge.test(g)?g.replace($e,Pi):g}function escapeRegExp(g){return(g=toString(g))&&Xe.test(g)?g.replace(Qe,"\\$&"):g}var _r=createCompounder((function(g,f,S){return g+(S?"-":"")+f.toLowerCase()})),Tr=createCompounder((function(g,f,S){return g+(S?" ":"")+f.toLowerCase()})),Ir=createCaseFirst("toLowerCase");function pad(g,f,S){g=toString(g);var v=(f=toInteger(f))?stringSize(g):0;if(!f||v>=f)return g;var C=(f-v)/2;return createPadding(Zt(C),S)+g+createPadding(Xt(C),S)}function padEnd(g,f,S){g=toString(g);var v=(f=toInteger(f))?stringSize(g):0;return f&&v>>0)?(g=toString(g))&&("string"==typeof f||null!=f&&!er(f))&&!(f=baseToString(f))&&hasUnicode(g)?castSlice(stringToArray(g),0,v):g.split(f,v):[]}var Ar=createCompounder((function(g,f,S){return g+(S?" ":"")+Rr(f)}));function startsWith(g,f,S){return g=toString(g),S=null==S?0:baseClamp(toInteger(S),0,g.length),f=baseToString(f),g.slice(S,S+f.length)==f}function template(g,f,v){var C=lodash.templateSettings;v&&isIterateeCall(g,f,v)&&(f=S),g=toString(g),f=or({},f,C,customDefaultsAssignIn);var _,T,I=or({},f.imports,C.imports,customDefaultsAssignIn),A=keys(I),P=baseValues(I,A),R=0,M=f.interpolate||mt,w="__p += '",O=yt((f.escape||mt).source+"|"+M.source+"|"+(M===ze?ot:mt).source+"|"+(f.evaluate||mt).source+"|$","g"),D="//# sourceURL="+(Rt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ii+"]")+"\n";g.replace(O,(function(f,S,v,C,I,b){return v||(v=C),w+=g.slice(R,b).replace(ft,escapeStringChar),S&&(_=!0,w+="' +\n__e("+S+") +\n'"),I&&(T=!0,w+="';\n"+I+";\n__p += '"),v&&(w+="' +\n((__t = ("+v+")) == null ? '' : __t) +\n'"),R=b+f.length,f})),w+="';\n";var N=Rt.call(f,"variable")&&f.variable;if(N){if(st.test(N))throw new rt(b)}else w="with (obj) {\n"+w+"\n}\n";w=(T?w.replace(Ue,""):w).replace(Ve,"$1").replace(Be,"$1;"),w="function("+(N||"obj")+") {\n"+(N?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(_?", __e = _.escape":"")+(T?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+w+"return __p\n}";var k=Mr((function(){return St(A,D+"return "+w).apply(S,P)}));if(k.source=w,isError(k))throw k;return k}function toLower(g){return toString(g).toLowerCase()}function toUpper(g){return toString(g).toUpperCase()}function trim(g,f,v){if((g=toString(g))&&(v||f===S))return baseTrim(g);if(!g||!(f=baseToString(f)))return g;var C=stringToArray(g),_=stringToArray(f);return castSlice(C,charsStartIndex(C,_),charsEndIndex(C,_)+1).join("")}function trimEnd(g,f,v){if((g=toString(g))&&(v||f===S))return g.slice(0,trimmedEndIndex(g)+1);if(!g||!(f=baseToString(f)))return g;var C=stringToArray(g);return castSlice(C,0,charsEndIndex(C,stringToArray(f))+1).join("")}function trimStart(g,f,v){if((g=toString(g))&&(v||f===S))return g.replace(Ze,"");if(!g||!(f=baseToString(f)))return g;var C=stringToArray(g);return castSlice(C,charsStartIndex(C,stringToArray(f))).join("")}function truncate(g,f){var v=G,C=q;if(isObject(f)){var _="separator"in f?f.separator:_;v="length"in f?toInteger(f.length):v,C="omission"in f?baseToString(f.omission):C}var T=(g=toString(g)).length;if(hasUnicode(g)){var I=stringToArray(g);T=I.length}if(v>=T)return g;var b=v-stringSize(C);if(b<1)return C;var A=I?castSlice(I,0,b).join(""):g.slice(0,b);if(_===S)return A+C;if(I&&(b+=A.length-b),er(_)){if(g.slice(b).search(_)){var P,R=A;for(_.global||(_=yt(_.source,toString(lt.exec(_))+"g")),_.lastIndex=0;P=_.exec(R);)var M=P.index;A=A.slice(0,M===S?b:M)}}else if(g.indexOf(baseToString(_),b)!=b){var w=A.lastIndexOf(_);w>-1&&(A=A.slice(0,w))}return A+C}function unescape(g){return(g=toString(g))&&je.test(g)?g.replace(He,Ri):g}var Pr=createCompounder((function(g,f,S){return g+(S?" ":"")+f.toUpperCase()})),Rr=createCaseFirst("toUpperCase");function words(g,f,v){return g=toString(g),(f=v?S:f)===S?hasUnicodeWord(g)?unicodeWords(g):asciiWords(g):g.match(f)||[]}var Mr=baseRest((function(g,f){try{return apply(g,S,f)}catch(g){return isError(g)?g:new rt(g)}})),wr=flatRest((function(g,f){return arrayEach(f,(function(f){f=toKey(f),baseAssignValue(g,f,Un(g[f],g))})),g}));function cond(g){var f=null==g?0:g.length,S=getIteratee();return g=f?arrayMap(g,(function(g){if("function"!=typeof g[1])throw new _t(I);return[S(g[0]),g[1]]})):[],baseRest((function(S){for(var v=-1;++vX)return[];var S=te,v=ui(g,te);f=getIteratee(f),g-=te;for(var C=baseTimes(v,f);++S0||f<0)?new LazyWrapper(v):(g<0?v=v.takeRight(-g):g&&(v=v.drop(g)),f!==S&&(v=(f=toInteger(f))<0?v.dropRight(-f):v.take(f-g)),v)},LazyWrapper.prototype.takeRightWhile=function(g){return this.reverse().takeWhile(g).reverse()},LazyWrapper.prototype.toArray=function(){return this.take(te)},baseForOwn(LazyWrapper.prototype,(function(g,f){var v=/^(?:filter|find|map|reject)|While$/.test(f),C=/^(?:head|last)$/.test(f),_=lodash[C?"take"+("last"==f?"Right":""):f],T=C||/^find/.test(f);_&&(lodash.prototype[f]=function(){var f=this.__wrapped__,I=C?[1]:arguments,b=f instanceof LazyWrapper,A=I[0],P=b||Jn(f),interceptor=function(g){var f=_.apply(lodash,arrayPush([g],I));return C&&R?f[0]:f};P&&v&&"function"==typeof A&&1!=A.length&&(b=P=!1);var R=this.__chain__,M=!!this.__actions__.length,w=T&&!R,O=b&&!M;if(!T&&P){f=O?f:new LazyWrapper(this);var D=g.apply(f,I);return D.__actions__.push({func:thru,args:[interceptor],thisArg:S}),new LodashWrapper(D,R)}return w&&O?g.apply(this,I):(D=this.thru(interceptor),w?C?D.value()[0]:D.value():D)})})),arrayEach(["pop","push","shift","sort","splice","unshift"],(function(g){var f=Tt[g],S=/^(?:push|sort|unshift)$/.test(g)?"tap":"thru",v=/^(?:pop|shift)$/.test(g);lodash.prototype[g]=function(){var g=arguments;if(v&&!this.__chain__){var C=this.value();return f.apply(Jn(C)?C:[],g)}return this[S]((function(S){return f.apply(Jn(S)?S:[],g)}))}})),baseForOwn(LazyWrapper.prototype,(function(g,f){var S=lodash[f];if(S){var v=S.name+"";Rt.call(Fi,v)||(Fi[v]=[]),Fi[v].push({name:f,func:S})}})),Fi[createHybrid(S,L).name]=[{name:"wrapper",func:S}],LazyWrapper.prototype.clone=lazyClone,LazyWrapper.prototype.reverse=lazyReverse,LazyWrapper.prototype.value=lazyValue,lodash.prototype.at=Rn,lodash.prototype.chain=wrapperChain,lodash.prototype.commit=wrapperCommit,lodash.prototype.next=wrapperNext,lodash.prototype.plant=wrapperPlant,lodash.prototype.reverse=wrapperReverse,lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=wrapperValue,lodash.prototype.first=lodash.prototype.head,Gt&&(lodash.prototype[Gt]=wrapperToIterator),lodash},wi=Mi();mi?((mi.exports=wi)._=wi,pi._=wi):gi._=wi}).call(C)})),w=createCommonjsModule((function(g,f){var S=window;!function(f,S){g.exports=S(R,M)}(0,((g,f)=>{var v={},C={exports:v},_=Object.create,T=Object.defineProperty,I=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,A=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,__commonJS=(g,f)=>function __require(){return f||(0,g[b(g)[0]])((f={exports:{}}).exports,f),f.exports},__export=(g,f)=>{for(var S in f)T(g,S,{get:f[S],enumerable:!0})},__copyProps=(g,f,S,v)=>{if(f&&"object"==typeof f||"function"==typeof f)for(let C of b(f))P.call(g,C)||C===S||T(g,C,{get:()=>f[C],enumerable:!(v=I(f,C))||v.enumerable});return g},__toESM=(g,f,S)=>(S=null!=g?_(A(g)):{},__copyProps(!f&&g&&g.__esModule?S:T(S,"default",{value:g,enumerable:!0}),g)),__toCommonJS=g=>__copyProps(T({},"__esModule",{value:!0}),g),__decorateClass=(g,f,S,v)=>{for(var C,_=v>1?void 0:v?I(f,S):f,b=g.length-1;b>=0;b--)(C=g[b])&&(_=(v?C(f,S,_):C(_))||_);return v&&_&&T(f,S,_),_},__decorateParam=(g,f)=>(S,v)=>f(S,v,g),w=__commonJS({"../node_modules/axios/lib/helpers/bind.js"(g,f){f.exports=function bind(g,f){return function wrap(){for(var S=new Array(arguments.length),v=0;v=0)return;T[f]="set-cookie"===f?(T[f]?T[f]:[]).concat([C]):T[f]?T[f]+", "+C:C}})),T):T}}}),G=__commonJS({"../node_modules/axios/lib/helpers/isValidXss.js"(g,f){f.exports=function isValidXss(g){return/(\b)(on\w+)=|javascript|(<\s*)(\/*)script/gi.test(g)}}}),q=__commonJS({"../node_modules/axios/lib/helpers/isURLSameOrigin.js"(g,f){var S=O(),v=G();f.exports=S.isStandardBrowserEnv()?function standardBrowserEnv(){var g,f=/(msie|trident)/i.test(navigator.userAgent),C=document.createElement("a");function resolveURL(g){var S=g;if(v(g))throw new Error("URL contains XSS injection attempt");return f&&(C.setAttribute("href",S),S=C.href),C.setAttribute("href",S),{href:C.href,protocol:C.protocol?C.protocol.replace(/:$/,""):"",host:C.host,search:C.search?C.search.replace(/^\?/,""):"",hash:C.hash?C.hash.replace(/^#/,""):"",hostname:C.hostname,port:C.port,pathname:"/"===C.pathname.charAt(0)?C.pathname:"/"+C.pathname}}return g=resolveURL(window.location.href),function isURLSameOrigin(f){var v=S.isString(f)?resolveURL(f):f;return v.protocol===g.protocol&&v.host===g.host}}():function nonStandardBrowserEnv(){return function isURLSameOrigin(){return!0}}()}}),W=__commonJS({"../node_modules/axios/lib/helpers/cookies.js"(g,f){var S=O();f.exports=S.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write5(g,f,v,C,_,T){var I=[];I.push(g+"="+encodeURIComponent(f)),S.isNumber(v)&&I.push("expires="+new Date(v).toGMTString()),S.isString(C)&&I.push("path="+C),S.isString(_)&&I.push("domain="+_),!0===T&&I.push("secure"),document.cookie=I.join("; ")},read:function read(g){var f=document.cookie.match(new RegExp("(^|;\\s*)("+g+")=([^;]*)"));return f?decodeURIComponent(f[3]):null},remove:function remove6(g){this.write(g,"",Date.now()-864e5)}}}():function nonStandardBrowserEnv(){return{write:function write5(){},read:function read(){return null},remove:function remove6(){}}}()}}),z=__commonJS({"../node_modules/axios/lib/adapters/xhr.js"(g,f){var S=O(),v=V(),C=D(),_=$(),T=j(),I=q(),b=U();f.exports=function xhrAdapter(g){return new Promise((function dispatchXhrRequest(f,A){var P=g.data,R=g.headers;S.isFormData(P)&&delete R["Content-Type"];var M=new XMLHttpRequest;if(g.auth){var w=g.auth.username||"",O=g.auth.password||"";R.Authorization="Basic "+btoa(w+":"+O)}var D=_(g.baseURL,g.url);if(M.open(g.method.toUpperCase(),C(D,g.params,g.paramsSerializer),!0),M.timeout=g.timeout,M.onreadystatechange=function handleLoad(){if(M&&4===M.readyState&&(0!==M.status||M.responseURL&&0===M.responseURL.indexOf("file:"))){var S="getAllResponseHeaders"in M?T(M.getAllResponseHeaders()):null,C={data:g.responseType&&"text"!==g.responseType?M.response:M.responseText,status:M.status,statusText:M.statusText,headers:S,config:g,request:M};v(f,A,C),M=null}},M.onabort=function handleAbort(){M&&(A(b("Request aborted",g,"ECONNABORTED",M)),M=null)},M.onerror=function handleError(){A(b("Network Error",g,null,M)),M=null},M.ontimeout=function handleTimeout(){var f="timeout of "+g.timeout+"ms exceeded";g.timeoutErrorMessage&&(f=g.timeoutErrorMessage),A(b(f,g,"ECONNABORTED",M)),M=null},S.isStandardBrowserEnv()){var N=W(),k=(g.withCredentials||I(D))&&g.xsrfCookieName?N.read(g.xsrfCookieName):void 0;k&&(R[g.xsrfHeaderName]=k)}if("setRequestHeader"in M&&S.forEach(R,(function setRequestHeader(g,f){void 0===P&&"content-type"===f.toLowerCase()?delete R[f]:M.setRequestHeader(f,g)})),S.isUndefined(g.withCredentials)||(M.withCredentials=!!g.withCredentials),g.responseType)try{M.responseType=g.responseType}catch(f){if("json"!==g.responseType)throw f}"function"==typeof g.onDownloadProgress&&M.addEventListener("progress",g.onDownloadProgress),"function"==typeof g.onUploadProgress&&M.upload&&M.upload.addEventListener("progress",g.onUploadProgress),g.cancelToken&&g.cancelToken.promise.then((function onCanceled(g){M&&(M.abort(),A(g),M=null)})),void 0===P&&(P=null),M.send(P)}))}}}),K=__commonJS({"../node_modules/axios/lib/defaults.js"(g,f){var S=O(),v=F(),C={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(g,f){!S.isUndefined(g)&&S.isUndefined(g["Content-Type"])&&(g["Content-Type"]=f)}function getDefaultAdapter(){var g;return("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(g=z()),g}var _={adapter:getDefaultAdapter(),transformRequest:[function transformRequest(g,f){return v(f,"Accept"),v(f,"Content-Type"),S.isFormData(g)||S.isArrayBuffer(g)||S.isBuffer(g)||S.isStream(g)||S.isFile(g)||S.isBlob(g)?g:S.isArrayBufferView(g)?g.buffer:S.isURLSearchParams(g)?(setContentTypeIfUnset(f,"application/x-www-form-urlencoded;charset=utf-8"),g.toString()):S.isObject(g)?(setContentTypeIfUnset(f,"application/json;charset=utf-8"),JSON.stringify(g)):g}],transformResponse:[function transformResponse(g){if("string"==typeof g)try{g=JSON.parse(g)}catch(g){}return g}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function validateStatus(g){return g>=200&&g<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};S.forEach(["delete","get","head"],(function forEachMethodNoData(g){_.headers[g]={}})),S.forEach(["post","put","patch"],(function forEachMethodWithData(g){_.headers[g]=S.merge(C)})),f.exports=_}}),J=__commonJS({"../node_modules/axios/lib/core/dispatchRequest.js"(g,f){var S=O(),v=k(),C=L(),_=K();function throwIfCancellationRequested(g){g.cancelToken&&g.cancelToken.throwIfRequested()}f.exports=function dispatchRequest(g){return throwIfCancellationRequested(g),g.headers=g.headers||{},g.data=v(g.data,g.headers,g.transformRequest),g.headers=S.merge(g.headers.common||{},g.headers[g.method]||{},g.headers),S.forEach(["delete","get","head","post","put","patch","common"],(function cleanHeaderConfig(f){delete g.headers[f]})),(g.adapter||_.adapter)(g).then((function onAdapterResolution(f){return throwIfCancellationRequested(g),f.data=v(f.data,f.headers,g.transformResponse),f}),(function onAdapterRejection(f){return C(f)||(throwIfCancellationRequested(g),f&&f.response&&(f.response.data=v(f.response.data,f.response.headers,g.transformResponse))),Promise.reject(f)}))}}}),Y=__commonJS({"../node_modules/axios/lib/core/mergeConfig.js"(g,f){var S=O();f.exports=function mergeConfig(g,f){f=f||{};var v={},C=["url","method","params","data"],_=["headers","auth","proxy"],T=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];S.forEach(C,(function valueFromConfig2(g){void 0!==f[g]&&(v[g]=f[g])})),S.forEach(_,(function mergeDeepProperties(C){S.isObject(f[C])?v[C]=S.deepMerge(g[C],f[C]):void 0!==f[C]?v[C]=f[C]:S.isObject(g[C])?v[C]=S.deepMerge(g[C]):void 0!==g[C]&&(v[C]=g[C])})),S.forEach(T,(function defaultToConfig2(S){void 0!==f[S]?v[S]=f[S]:void 0!==g[S]&&(v[S]=g[S])}));var I=C.concat(_).concat(T),b=Object.keys(f).filter((function filterAxiosKeys(g){return-1===I.indexOf(g)}));return S.forEach(b,(function otherKeysDefaultToConfig2(S){void 0!==f[S]?v[S]=f[S]:void 0!==g[S]&&(v[S]=g[S])})),v}}}),Q=__commonJS({"../node_modules/axios/lib/core/Axios.js"(g,f){var S=O(),v=D(),C=N(),_=J(),T=Y();function Axios(g){this.defaults=g,this.interceptors={request:new C,response:new C}}Axios.prototype.request=function request(g){"string"==typeof g?(g=arguments[1]||{}).url=arguments[0]:g=g||{},(g=T(this.defaults,g)).method?g.method=g.method.toLowerCase():this.defaults.method?g.method=this.defaults.method.toLowerCase():g.method="get";var f=[_,void 0],S=Promise.resolve(g);for(this.interceptors.request.forEach((function unshiftRequestInterceptors(g){f.unshift(g.fulfilled,g.rejected)})),this.interceptors.response.forEach((function pushResponseInterceptors(g){f.push(g.fulfilled,g.rejected)}));f.length;)S=S.then(f.shift(),f.shift());return S},Axios.prototype.getUri=function getUri(g){return g=T(this.defaults,g),v(g.url,g.params,g.paramsSerializer).replace(/^\?/,"")},S.forEach(["delete","get","head","options"],(function forEachMethodNoData(g){Axios.prototype[g]=function(f,v){return this.request(S.merge(v||{},{method:g,url:f}))}})),S.forEach(["post","put","patch"],(function forEachMethodWithData(g){Axios.prototype[g]=function(f,v,C){return this.request(S.merge(C||{},{method:g,url:f,data:v}))}})),f.exports=Axios}}),X=__commonJS({"../node_modules/axios/lib/cancel/Cancel.js"(g,f){function Cancel(g){this.message=g}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,f.exports=Cancel}}),Z=__commonJS({"../node_modules/axios/lib/cancel/CancelToken.js"(g,f){var S=X();function CancelToken(g){if("function"!=typeof g)throw new TypeError("executor must be a function.");var f;this.promise=new Promise((function promiseExecutor(g){f=g}));var v=this;g((function cancel(g){v.reason||(v.reason=new S(g),f(v.reason))}))}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason)throw this.reason},CancelToken.source=function source(){var g;return{token:new CancelToken((function executor(f){g=f})),cancel:g}},f.exports=CancelToken}}),ee=__commonJS({"../node_modules/axios/lib/helpers/spread.js"(g,f){f.exports=function spread(g){return function wrap(f){return g.apply(null,f)}}}}),te=__commonJS({"../node_modules/axios/lib/axios.js"(g,f){var S=O(),v=w(),C=Q(),_=Y();function createInstance(g){var f=new C(g),_=v(C.prototype.request,f);return S.extend(_,C.prototype,f),S.extend(_,f),_}var T=createInstance(K());T.Axios=C,T.create=function create(g){return createInstance(_(T.defaults,g))},T.Cancel=X(),T.CancelToken=Z(),T.isCancel=L(),T.all=function all(g){return Promise.all(g)},T.spread=ee(),f.exports=T,f.exports.default=T}}),ie=__commonJS({"../node_modules/axios/index.js"(g,f){f.exports=te()}}),ne=__commonJS({"../node_modules/ua-parser-js/src/ua-parser.js"(g,f){!function(S,v){var C="1.0.38",_="",T="?",I="function",b="undefined",A="object",P="string",R="major",M="model",w="name",O="type",D="vendor",N="version",k="architecture",L="console",F="mobile",x="tablet",U="smarttv",V="wearable",B="embedded",H=500,$="Amazon",j="Apple",G="ASUS",q="BlackBerry",W="Browser",z="Chrome",K="Firefox",J="Google",Y="Huawei",Q="LG",X="Microsoft",Z="Motorola",ee="Opera",te="Samsung",ie="Sharp",ne="Sony",re="Xiaomi",se="Zebra",ae="Facebook",oe="Chromium OS",le="Mac OS",extend3=function(g,f){var S={};for(var v in g)f[v]&&f[v].length%2==0?S[v]=f[v].concat(g[v]):S[v]=g[v];return S},enumerize=function(g){for(var f={},S=0;S0?2===T.length?typeof T[1]==I?this[T[0]]=T[1].call(this,P):this[T[0]]=T[1]:3===T.length?typeof T[1]!==I||T[1].exec&&T[1].test?this[T[0]]=P?P.replace(T[1],T[2]):v:this[T[0]]=P?T[1].call(this,P,T[2]):v:4===T.length&&(this[T[0]]=P?T[3].call(this,P.replace(T[1],T[2])):v):this[T]=P||v;R+=2}},strMapper=function(g,f){for(var S in f)if(typeof f[S]===A&&f[S].length>0){for(var C=0;C2&&(g[M]="iPad",g[O]=x),g},this.getEngine=function(){var g={};return g[w]=v,g[N]=v,rgxMapper.call(g,T,U.engine),g},this.getOS=function(){var g={};return g[w]=v,g[N]=v,rgxMapper.call(g,T,U.os),V&&!g[w]&&L&&L.platform&&"Unknown"!=L.platform&&(g[w]=L.platform.replace(/chrome os/i,oe).replace(/macos/i,le)),g},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 T},this.setUA=function(g){return T=typeof g===P&&g.length>H?trim2(g,H):g,this},this.setUA(T),this};UAParser2.VERSION=C,UAParser2.BROWSER=enumerize([w,N,R]),UAParser2.CPU=enumerize([k]),UAParser2.DEVICE=enumerize([M,D,O,L,F,U,x,V,B]),UAParser2.ENGINE=UAParser2.OS=enumerize([w,N]),typeof g!==b?(typeof f!==b&&f.exports&&(g=f.exports=UAParser2),g.UAParser=UAParser2):typeof S!==b&&(S.UAParser=UAParser2);var he=typeof S!==b&&(S.jQuery||S.Zepto);if(he&&!he.ua){var ue=new UAParser2;he.ua=ue.getResult(),he.ua.get=function(){return ue.getUA()},he.ua.set=function(g){ue.setUA(g);var f=ue.getResult();for(var S in f)he.ua[S]=f[S]}}}("object"==typeof window?window:g)}}),re=__commonJS({"../node_modules/@skype/hydra_player_sdk/hydra_player_sdk_bundle.js"(g,f){var S,v;S=g,v=function(){return g={103:function(g,f){Object.defineProperty(f,"__esModule",{value:!0}),f.defer=void 0,f.defer=function(){var g,f;return{promise:new Promise((function(S,v){g=S,f=v})),resolve:g,reject:f}}},457:function(g,f){Object.defineProperty(f,"__esModule",{value:!0}),f.iframeConfigDefault=void 0,f.iframeConfigDefault={scriptSrcDownload:!1,allowSameOrigin:!1}},1:function(g,f){Object.defineProperty(f,"__esModule",{value:!0}),f.liveStreamStatisticConfigDefault=void 0,f.liveStreamStatisticConfigDefault={maxUserInitiatedEventCount:100}},318:function(g,f){Object.defineProperty(f,"__esModule",{value:!0}),f.logSupportedCodecsConfigDefault=void 0,f.logSupportedCodecsConfigDefault={logSupportedCodecs:!1}},508:function(g,f){Object.defineProperty(f,"__esModule",{value:!0}),f.webRtcIceCandidateCollectorConfigDefault=void 0,f.webRtcIceCandidateCollectorConfigDefault={WebRtcIceCandidateCollectorDelayAfterCompleteMs:2500,WebRtcIceCandidateCollectorDelayAfterErrorMs:1e3,WebRtcIceCandidateCollectorMaxRetriesMs:5,WebRtcIceCandidateCollectorRetryDelayMs:100,WebRtcIceCandidateCollectorMaxCollectionTimeMs:6e4,WebRtcIceCandidateCollectorDisableCollection:!1}},10:function(g,f){Object.defineProperty(f,"__esModule",{value:!0}),f.default=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(g){var f=16*Math.random()|0;return("x"===g?f:3&f|8).toString(16)}))}},171:function(g,f,S){var v=this&&this.__assign||function(){return v=Object.assign||function(g){for(var f,S=1,v=arguments.length;S0&&C[C.length-1])||6!==I[0]&&2!==I[0])){T=0;continue}if(3===I[0]&&(!C||I[1]>C[0]&&I[1]f.maxPlayerMemoryTraceLogCount,I="memoryLog"!==C&&_.length>f.maxPlayerDiagnosticsCount;(T||I)&&_.splice(0,1)}else f.playerDiagnosticsLog[S]=g[C]}))},e3.prototype.registerEventLoadAttempt=function(g,f){this.registerScenario(g,f)},e3.prototype.registerEventLoadFailed=function(g,f){this.completeScenario(g,f)},e3.prototype.registerEventLoadSucceeded=function(g,f){this.completeScenario(g,void 0,f),g===b.PlayerScenarioType.LoadPlayer&&(this.callSetupSucceeded=!0)},e3.prototype.registerSdnPluginLoadAttempt=function(g){this.registerScenario(b.PlayerScenarioType.SdnPluginLoad,g)},e3.prototype.registerSdnPluginLoadFailed=function(g){this.completeScenario(b.PlayerScenarioType.SdnPluginLoad,g)},e3.prototype.registerSdnPluginLoadSucceeded=function(g){this.completeScenario(b.PlayerScenarioType.SdnPluginLoad,void 0,g)},e3.prototype.registerSdnPluginInitializeAttempt=function(g){this.registerScenario(b.PlayerScenarioType.SdnPluginInitialize,g)},e3.prototype.registerSdnPluginInitializeFailed=function(g){this.completeScenario(b.PlayerScenarioType.SdnPluginInitialize,g)},e3.prototype.registerSdnPluginInitializeSucceeded=function(g){this.completeScenario(b.PlayerScenarioType.SdnPluginInitialize,void 0,g)},e3.prototype.registerSdnPluginSetSourceAttempt=function(g){this.registerScenario(b.PlayerScenarioType.SdnPluginSetSource,g)},e3.prototype.registerSdnPluginSetSourceFailed=function(g){this.completeScenario(b.PlayerScenarioType.SdnPluginSetSource,g)},e3.prototype.registerSdnPluginSetSourceSucceeded=function(g){this.completeScenario(b.PlayerScenarioType.SdnPluginSetSource,void 0,g)},e3.prototype.registerStreamConnectionAttempt=function(g){this.registerScenario(b.PlayerScenarioType.StreamConnection,{streamUrl:g})},e3.prototype.registerStreamConnectionSucceeded=function(g){this.completeScenario(b.PlayerScenarioType.StreamConnection,void 0,{result:P.stringifyObject(g)})},e3.prototype.registerStreamConnectionFailed=function(g,f){this.completeScenario(b.PlayerScenarioType.StreamConnection,g,{result:P.stringifyObject(f)})},e3.prototype.registerSetSourceAttempt=function(g,f,S){var v=g||"";S&&(v={src:g||"",isPrimary:P.stringifyObject(f),reason:S}),this.registerScenario(b.PlayerScenarioType.SetSource,v)},e3.prototype.registerSetSourceSucceeded=function(g,f,S,v,C){this.completeScenario(b.PlayerScenarioType.SetSource,void 0,{src:g,isPrimary:P.stringifyObject(f),switchingDiagnostics:P.stringifyObject(S),stepDuration:P.stringifyObject(v),initialSeekToLiveEdge:P.stringifyObject(C)})},e3.prototype.registerSetSourceFailed=function(g,f,S,v,C){this.completeScenario(b.PlayerScenarioType.SetSource,g,{src:P.stringifyObject(f),isPrimary:P.stringifyObject(S),switchingDiagnostics:P.stringifyObject(v),stepDuration:P.stringifyObject(C)})},e3.prototype.registerPlayerDestroyed=function(g){this.registerScenario(b.PlayerScenarioType.Destroyed,g),this.completeScenario(b.PlayerScenarioType.Destroyed)},e3.prototype.registerPlaybackStateChanged=function(g,f){var S,v,C,_,T,A;if(g!==I.HydraPlayerPlaybackState.CanPlayThrough||this.firstReadyStateTimestamp){if(g===I.HydraPlayerPlaybackState.Playing){if(this.firstPlayingState||(this.firstPlayingState={timestamp:Date.now()},f&&(f.edgeLatency&&(this.firstPlayingState.edgeLatency=f.edgeLatency),f.bufferLength&&(this.firstPlayingState.bufferLength=f.bufferLength))),this.userInitiatedSeekEvents.length>0){var P=this.userInitiatedSeekEvents[this.userInitiatedSeekEvents.length-1];this.modifyTelemetryEventPayload(P,{playingStatePosition:null!==(v=null===(S=this.currentPlayerDiagnosticSnapshot)||void 0===S?void 0:S.currentPlayPosition)&&void 0!==v?v:-1,playingStateTimestamp:Date.now()},!1)}if(this.userInitiatedPlayEvents.length>0){var R=this.userInitiatedPlayEvents[this.userInitiatedPlayEvents.length-1];this.modifyTelemetryEventPayload(R,{playingStatePosition:null!==(_=null===(C=this.currentPlayerDiagnosticSnapshot)||void 0===C?void 0:C.currentPlayPosition)&&void 0!==_?_:-1,playingStateTimestamp:Date.now()},!1)}}else if(g===I.HydraPlayerPlaybackState.Pause&&this.userInitiatedPauseEvents.length>0){var M=this.userInitiatedPauseEvents[this.userInitiatedPauseEvents.length-1];this.modifyTelemetryEventPayload(M,{pauseStatePosition:null!==(A=null===(T=this.currentPlayerDiagnosticSnapshot)||void 0===T?void 0:T.currentPlayPosition)&&void 0!==A?A:-1,pauseStateTimestamp:Date.now()},!1)}}else this.firstReadyStateTimestamp=Date.now();this.registerPlaybackEvent(b.TelemetryEventType.StateChanged,g)},e3.prototype.registerCapabilitiesUpdated=function(g){this.registerPlaybackEvent(b.TelemetryEventType.CapabilitiesUpdated,g)},e3.prototype.registerHydraInputStateChanged=function(g,f){this.registerPlaybackEvent(b.TelemetryEventType.HydraInputStateChanged,g,f)},e3.prototype.registerHydraOutputStateChanged=function(g,f){this.registerPlaybackEvent(b.TelemetryEventType.HydraOutputStateChanged,g,f)},e3.prototype.registerPlaybackBuffering=function(g){this.registerPlaybackEvent(b.TelemetryEventType.Buffering,g)},e3.prototype.registerSdnPluginEvent=function(g){var f=this.createTelemetryEvent(b.TelemetryEventType.EcdnPluginEvents,g);this.ecdnPluginEvents.push(f),this.ecdnPluginEvents.length>this.maxPlayerPlaybackEventCount&&this.ecdnPluginEvents.splice(0,1),this.logTelemetryEvent(f)},e3.prototype.registerPlaybackError=function(g,f,S,v){this.registerPlaybackEvent(b.TelemetryEventType.Error,{errorType:g,details:f,errorSource:S,errorReason:v}),this.latestErrorReason=v},e3.prototype.registerIgnoredPlaybackError=function(g){this.registerPlaybackEvent(b.TelemetryEventType.IgnoredError,g)},e3.prototype.registerDownloadBitrateChanged=function(g){this.registerPlaybackEvent(b.TelemetryEventType.BitrateChangedDownload,g)},e3.prototype.registerStreamOptionsConfigured=function(g,f){this.registerPlaybackEvent(b.TelemetryEventType.StreamOptionsConfigured,g,f)},e3.prototype.registerPlaybackBitrateChanged=function(g){this.registerPlaybackEvent(b.TelemetryEventType.BitrateChangedPlayback,g)},e3.prototype.registerVolumeChange=function(g){this.registerPlaybackEvent(b.TelemetryEventType.Volume,g)},e3.prototype.getSnapshotReport=function(){var g,f,S=[this.getTotalLoadEvent(),this.getHydraLoadEvent()].concat(this.buildCompleteTelemetryEvent()),C=this.playbackEvents,_={};this.currentPlayerDiagnosticSnapshot&&(_=this.filterAndPrepareTelemetry());var T=P.getECSSetting(this.config,"logSupportedCodecs",R.logSupportedCodecsConfigDefault.logSupportedCodecs);return v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v({isFullReport:!1,configIds:this.config.configIds||"",eTag:this.config.eTag||""},this.getPlayerMetadataReport()),{isIframe:!0,isFullscreenButtonDisabled:!1,telemetryTickMs:null!==(f=null===(g=this.currentPlayerDiagnosticSnapshot)||void 0===g?void 0:g.statsInterval)&&void 0!==f?f:-1}),this.getHydraInitializationReport()),this.getPlayerInitializationReport(S)),this.getHydraInternalReport(C)),this.getPlaybackReport(C)),this.getBitrateReport(C)),this.getStreamConnectionReport(S)),this.getSdnReport(S)),this.getSetSourceReport(S)),this.getExperimentalEvents()),this.getUserInitiatedSeekEvents()),{networkType:this.getClientNetworkType()}),T?{supportedCodecs:P.stringifyObject(this.supportedCodecs)}:{}),{callSetupSucceeded:this.callSetupSucceeded,callDropped:this.callDropped}),_)},e3.prototype.getReport=function(){var g,f,S,C,_=[this.getTotalLoadEvent(),this.getHydraLoadEvent()].concat(this.buildCompleteTelemetryEvent()),T=this.playbackEvents,I=P.getECSSetting(this.config,"logSupportedCodecs",R.logSupportedCodecsConfigDefault.logSupportedCodecs);return v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v({isFullReport:!0,configIds:this.config.configIds||"",eTag:this.config.eTag||""},this.getPlayerMetadataReport()),{isIframe:!0,isFullscreenButtonDisabled:!1,telemetryTickMs:null!==(f=null===(g=this.currentPlayerDiagnosticSnapshot)||void 0===g?void 0:g.statsInterval)&&void 0!==f?f:-1}),this.getHydraInitializationReport()),this.getPlayerInitializationReport(_)),this.getHydraInternalReport(T)),this.getPlaybackReport(T)),this.getBitrateReport(T)),this.getStreamConnectionReport(_)),this.getSdnReport(_)),this.getSetSourceReport(_)),this.getExperimentalEvents()),this.getUserInitiatedSeekEvents()),{networkType:this.getClientNetworkType()}),I?{supportedCodecs:P.stringifyObject(this.supportedCodecs)}:{}),{callSetupSucceeded:this.callSetupSucceeded,callDropped:this.callDropped}),this.getPlayerDiagnosticLog()),{eventId:(null===(S=this.currentPlayerDiagnosticSnapshot)||void 0===S?void 0:S.eventId)||"",templateId:(null===(C=this.currentPlayerDiagnosticSnapshot)||void 0===C?void 0:C.templateId)||""})},e3.prototype.buildCompleteTelemetryEvent=function(){this.playerEvents.sort((function(g,f){return g.getName()!==f.getName()?Object.keys(b.PlayerScenarioType).indexOf(g.getName())-Object.keys(b.PlayerScenarioType).indexOf(f.getName()):g.getTimeStamp()-f.getTimeStamp()}));for(var g,f,S,C,_,T=[],I=0,A=this.playerEvents;Ig.startTime?f.getTimeStamp()-g.startTime:g.duration},v(v(v({},_),S),C)):T.push({name:b.PlayerScenarioType[P.getName()],startTime:P.getTimeStamp(),duration:0})}return T},e3.prototype.getHydraLoadEvent=function(){var g,f,S,v={name:b.PlayerScenarioType.LoadHydra,startTime:(null===(g=this.hydraInitResult)||void 0===g?void 0:g.initStartTime)||-1,duration:(null===(f=this.hydraInitResult)||void 0===f?void 0:f.initDuration)||0};(null===(S=this.hydraInitResult)||void 0===S?void 0:S.errorMsg)&&(v.failReason=this.hydraInitResult.errorMsg);var C=this.getHydraRuntimeDownloadDetails();return C&&(v.details=C),v},e3.prototype.getHydraRuntimeDownloadDetails=function(){if(this.hydraInitResult){for(var g=[],f=0,S=this.hydraInitResult.runtimeDownloadResults;f0?v[v.length-1].getTimeStamp()-v[0].getTimeStamp():0,T=v.length>0?v[v.length-1].getFailReason():void 0,I={name:b.PlayerScenarioType.Load,startTime:(null===(f=this.hydraInitResult)||void 0===f?void 0:f.initStartTime)||-1,duration:C+_};return(null===(S=this.hydraInitResult)||void 0===S?void 0:S.errorMsg)?I.failReason=this.hydraInitResult.errorMsg:T&&(I.failReason=T),I},e3.prototype.getPlayerMetadataReport=function(){return{playerId:this.playerMetadata.playerId||"",traceId:this.playerMetadata.playerId?this.playerMetadata.playerId.replace(/-/g,""):"",hydraPlayerRuntimeVersion:this.playerMetadata.hydraPlayerRuntimeVersion||"",hydraPlayerSdkVersion:this.playerMetadata.hydraPlayerSdkVersion,player_playerType:this.playerMetadata.hydraPlayerType}},e3.prototype.registerPlaybackEvent=function(g,f,S){var v=this.createTelemetryEvent(g,f,S);g===b.TelemetryEventType.Error&&(null==f?void 0:f.errorType)!==I.HydraPlayerPlaybackErrorType.PlaybackRetried&&(v.fatal=!0,this.callDropped=!0),this.playbackEvents.push(v),this.playbackEvents.length>this.maxPlayerPlaybackEventCount&&this.playbackEvents.splice(0,1),this.logTelemetryEvent(v)},e3.prototype.getPlayerDiagnosticLog=function(){var g=this;if(!this.currentPlayerDiagnosticSnapshot)return{};var f=this.currentPlayerDiagnosticSnapshot,S=this.playerDiagnosticsLog,C=v(v({},f),S),_={};return Object.keys(C).forEach((function(f){_["player_".concat(f)]=g.prepareForTelemetry(C[f])})),_},e3.prototype.getHydraInitializationReport=function(){var g,f,S,v;return{hydraInit_succeeded:(null===(g=this.hydraInitResult)||void 0===g?void 0:g.initSucceeded)||!1,hydraInit_startTime:(null===(f=this.hydraInitResult)||void 0===f?void 0:f.initStartTime)||-1,hydraInit_errorMessage:(null===(S=this.hydraInitResult)||void 0===S?void 0:S.errorMsg)||"",hydraInit_duration:(null===(v=this.hydraInitResult)||void 0===v?void 0:v.initDuration)||0}},e3.prototype.getPlayerInitializationReport=function(g){var f,S=g.find((function(g){return g.name===b.PlayerScenarioType.Load})),v=this.playerEvents.find((function(g){return g.getName()===b.PlayerScenarioType.StreamConnection})),C={init_timeLoadToStreamConnectionEstablished:(S&&v?v.getTimeStamp()-S.startTime:-1)||-1,init_timeLoadToReady:(S&&this.firstReadyStateTimestamp?this.firstReadyStateTimestamp-S.startTime:-1)||-1,init_timeLoadToPlaying:(S&&(null===(f=this.firstPlayingState)||void 0===f?void 0:f.timestamp)?this.firstPlayingState.timestamp-S.startTime:-1)||-1,init_allEvents:this.prepareForTelemetry(g)};return this.firstPlayingState&&(C.init_firstPlayingStateStatistics=this.prepareForTelemetry(this.firstPlayingState)),C},e3.prototype.getHydraInternalReport=function(g){var f=g.filter((function(g){return g.eventType===b.TelemetryEventType.HydraInputStateChanged})),S=g.filter((function(g){return g.eventType===b.TelemetryEventType.HydraOutputStateChanged}));return{hydra_inputStateChangeEvents:this.prepareForTelemetry(f),hydra_outputStateChangeEvents:this.prepareForTelemetry(S)}},e3.prototype.getPlaybackReport=function(g){var f=g.filter((function(g){return g.eventType===b.TelemetryEventType.StateChanged})),S=f.find((function(g){return g.payload===I.HydraPlayerPlaybackState.CanPlayThrough})),v=f.find((function(g){return g.payload===I.HydraPlayerPlaybackState.Play})),C=f.find((function(g){return g.payload===I.HydraPlayerPlaybackState.Start})),_=f.find((function(g){return g.payload===I.HydraPlayerPlaybackState.Playing})),T=null!=S&&null!=v?v.timestamp-S.timestamp:-1,A=null!=v&&null!=C?C.timestamp-v.timestamp:-1,P=null!=C&&null!=_?_.timestamp-C.timestamp:-1,R=f.filter((function(g){return g.payload===I.HydraPlayerPlaybackState.Seeked})),M=f.filter((function(g){return g.payload===I.HydraPlayerPlaybackState.Seeking})),w=f.filter((function(g){return g.payload===I.HydraPlayerPlaybackState.Pause})),O=f.filter((function(g){return g.payload===I.HydraPlayerPlaybackState.Waiting})),D=[b.TelemetryEventType.BitrateChangedDownload,b.TelemetryEventType.BitrateChangedPlayback,b.TelemetryEventType.Error,b.TelemetryEventType.Mute,b.TelemetryEventType.StateChanged,b.TelemetryEventType.Volume,b.TelemetryEventType.StreamOptionsConfigured,b.TelemetryEventType.IgnoredError],N=g.filter((function(g){return g.eventType===b.TelemetryEventType.Error})),k=g.filter((function(g){return g.eventType===b.TelemetryEventType.IgnoredError})),L=g.filter((function(g){return g.eventType===b.TelemetryEventType.Volume||g.eventType===b.TelemetryEventType.Mute})),F=g.filter((function(g){return g.eventType===b.TelemetryEventType.StreamOptionsConfigured})),x=g.filter((function(g){return!D.includes(g.eventType)}));return{playback_timeReadyToPlay:T,playback_timePlayToStart:A,playback_timeStartToPlaying:P,playback_bufferingEvents:this.prepareForTelemetry(O),playback_errorEvents:this.prepareForTelemetry(N),playback_ignoredErrorEvents:this.prepareForTelemetry(k),playback_pauseEvents:this.prepareForTelemetry(w),playback_otherEvents:this.prepareForTelemetry(x),playback_seekedEvents:this.prepareForTelemetry(R),playback_seekingEvents:this.prepareForTelemetry(M),playback_stateChangeEvents:this.prepareForTelemetry(f),playback_volumeEvents:this.prepareForTelemetry(L),playback_streamOptionsConfiguredEvents:this.prepareForTelemetry(F),playback_latestErrorReason:this.latestErrorReason||""}},e3.prototype.getBitrateReport=function(g){var f,S,C,_,T=g.filter((function(g){return g.eventType===b.TelemetryEventType.BitrateChangedDownload})),I=T.sort((function(g){return Number(g.payload)})),A=T.length>0?{bitrate_downloadChanges:this.prepareForTelemetry(T),bitrate_downloadChangeCount:T.length>0||-1,bitrate_downloadMin:(null===(f=I[0])||void 0===f?void 0:f.payload)||-1,bitrate_downloadMax:(null===(S=I[I.length-1])||void 0===S?void 0:S.payload)||-1}:{},P=g.filter((function(g){return g.eventType===b.TelemetryEventType.BitrateChangedPlayback})),R=P.sort((function(g){return Number(g.payload)})),M=P.length>0?{bitrate_playbackChanges:this.prepareForTelemetry(P),bitrate_playbackChangeCount:P.length>0||-1,bitrate_playbackMin:(null===(C=R[0])||void 0===C?void 0:C.payload)||-1,bitrate_playbackMax:(null===(_=R[R.length-1])||void 0===_?void 0:_.payload)||-1}:{};return v(v({},A),M)},e3.prototype.addNetworkTypeEventListener=function(){var g,f,S,v,C=this;(null===(f=null===(g=window.navigator)||void 0===g?void 0:g.connection)||void 0===f?void 0:f.type)&&(null===(v=null===(S=window.navigator)||void 0===S?void 0:S.connection)||void 0===v||v.addEventListener("change",(function(){C.updateClientNetworkType()})))},e3.prototype.updateClientNetworkType=function(){this.clientNetworkType=void 0,this.getClientNetworkType()},e3.prototype.getClientNetworkType=function(){var g,f,S,v;if(void 0===this.clientNetworkType){var C="Unknown";if(null===(f=null===(g=window.navigator)||void 0===g?void 0:g.connection)||void 0===f?void 0:f.type)switch(null===(v=null===(S=window.navigator)||void 0===S?void 0:S.connection)||void 0===v?void 0:v.type){case"cellular":C="WWAN";break;case"ethernet":C="Wired";break;case"wifi":C="Wireless";break;default:C="Unknown"}this.clientNetworkType=C}return this.clientNetworkType},e3.prototype.getCodecList=function(){return[{type:"file",video:{contentType:"video/mp4; codecs=hev1.1.6.L93",width:1920,height:1080,bitrate:1e4,framerate:60}},{type:"file",video:{contentType:"video/mp4; codecs=hev1.1.6.L90",width:1920,height:1080,bitrate:1e4,framerate:30}},{type:"file",video:{contentType:"video/mp4; codecs=hev1.1.6.L63",width:1280,height:720,bitrate:1e4,framerate:60}},{type:"file",video:{contentType:"video/mp4; codecs=hev1.1.6.L60",width:1280,height:720,bitrate:1e4,framerate:30}},{type:"file",video:{contentType:"video/mp4; codecs=hev1.1.6.L30",width:640,height:480,bitrate:1e4,framerate:30}},{type:"file",video:{contentType:"video/mp4; codecs=avc1.64002A",width:1920,height:1080,bitrate:1e4,framerate:60}},{type:"file",video:{contentType:"video/mp4; codecs=avc1.640028",width:1920,height:1080,bitrate:1e4,framerate:30}},{type:"file",video:{contentType:"video/mp4; codecs=avc1.640020",width:1280,height:720,bitrate:1e4,framerate:60}},{type:"file",video:{contentType:"video/mp4; codecs=avc1.64001E",width:1280,height:720,bitrate:1e4,framerate:30}},{type:"file",video:{contentType:"video/mp4; codecs=avc1.640015",width:640,height:480,bitrate:1e4,framerate:30}},{type:"file",video:{contentType:"video/webm; codecs=vp09.00.10.08",width:1920,height:1080,bitrate:5e6,framerate:30}},{type:"file",video:{contentType:"video/webm; codecs=vp8",width:1920,height:1080,bitrate:5e6,framerate:30}},{type:"file",video:{contentType:"video/ogg; codecs=theora, vorbis",width:640,height:480,bitrate:5e5,framerate:30}},{type:"file",video:{contentType:"video/mp4; codecs=av01.0.05M.08",width:1920,height:1080,bitrate:1e4,framerate:60}},{type:"file",video:{contentType:"video/mp4; codecs=av01.0.04M.08",width:1920,height:1080,bitrate:1e4,framerate:30}},{type:"file",video:{contentType:"video/mp4; codecs=av01.0.03M.08",width:1280,height:720,bitrate:1e4,framerate:60}},{type:"file",video:{contentType:"video/mp4; codecs=av01.0.03M.08",width:1280,height:720,bitrate:1e4,framerate:30}},{type:"file",video:{contentType:"video/mp4; codecs=av01.0.02M.08",width:640,height:480,bitrate:1e4,framerate:30}},{type:"file",audio:{contentType:"audio/webm; codecs=opus",channels:"2",bitrate:64e3,samplerate:48e3}},{type:"file",audio:{contentType:"audio/ogg; codecs=vorbis",channels:"2",bitrate:128e3,samplerate:44100}},{type:"file",audio:{contentType:"audio/mp4; codecs=mp4a.40.2",channels:"2",bitrate:128e3,samplerate:44100}},{type:"file",audio:{contentType:"audio/mp4; codecs=mp4a.40.5",channels:"2",bitrate:64e3,samplerate:48e3}},{type:"file",audio:{contentType:"audio/mpeg",channels:"2",bitrate:128e3,samplerate:44100}},{type:"file",audio:{contentType:"audio/flac",channels:"2",bitrate:32e4,samplerate:96e3}},{type:"file",audio:{contentType:"audio/mp4 codecs=ac-3",channels:"6",bitrate:64e4,samplerate:48e3}},{type:"file",audio:{contentType:"audio/mp4 codecs=ec-3",channels:"6",bitrate:64e4,samplerate:48e3}},{type:"file",audio:{contentType:"audio/wav; codecs=1",channels:"2",bitrate:1411200,samplerate:44100}}]},e3.prototype.getAudioVideoCodecsSupported=function(g){return C(this,void 0,void 0,(function(){var f,S,v=this;return _(this,(function(T){switch(T.label){case 0:return f=[],"mediaCapabilities"in navigator?(S=g.map((function(g){return C(v,void 0,void 0,(function(){var S,v;return _(this,(function(C){switch(C.label){case 0:S=g,C.label=1;case 1:return C.trys.push([1,3,,4]),[4,navigator.mediaCapabilities.decodingInfo(S)];case 2:return(v=C.sent()).supported&&(g.video?f.push({codec:g.video.contentType,supported:v.supported,smooth:v.smooth,powerEfficient:v.powerEfficient,resolution:g.video.height,framerate:g.video.framerate}):g.audio&&f.push({codec:g.audio.contentType,supported:v.supported,smooth:v.smooth,powerEfficient:v.powerEfficient})),[3,4];case 3:return C.sent(),[3,4];case 4:return[2]}}))}))})),[4,Promise.allSettled(S)]):[3,2];case 1:T.sent(),T.label=2;case 2:return[2,f]}}))}))},e3.prototype.populateSupportedCodecs=function(){var g=this;void 0===this.supportedCodecs&&this.getAudioVideoCodecsSupported(this.getCodecList()).then((function(f){g.supportedCodecs=f}))},e3.prototype.getSdnReport=function(g){var f,S=g.filter((function(g){return[b.PlayerScenarioType.SdnPluginLoad,b.PlayerScenarioType.SdnPluginInitialize,b.PlayerScenarioType.SdnPluginSetSource].includes(g.name)})),v=T(T([],S,!0),this.ecdnPluginEvents,!0),C=S.filter((function(g){return void 0!==g.failReason})),_=S.filter((function(g){return g.name===b.PlayerScenarioType.SdnPluginLoad})).sort((function(g,f){return f.startTime-g.startTime}))[0];return{sdn_loaded:!(null==_||void 0!==_.failReason),sdn_details:null!==(f=null==_?void 0:_.details)&&void 0!==f?f:"",sdn_error:C.length>0&&C[C.length-1].failReason||"",sdn_events:this.prepareForTelemetry(v)}},e3.prototype.getStreamConnectionReport=function(g){var f=g.filter((function(g){return g.name===b.PlayerScenarioType.StreamConnection}));return{stream_connection_events:this.prepareForTelemetry(f)}},e3.prototype.getSetSourceReport=function(g){var f=g.filter((function(g){return g.name===b.PlayerScenarioType.SetSource}));return{set_source_events:this.prepareForTelemetry(f)}},e3.prototype.registerScenario=function(g,f){this.playerEvents.push(new M(g,f))},e3.prototype.completeScenario=function(g,f,S){this.playerEvents.push(new M(g,S,f))},e3.prototype.logTelemetryEvent=function(g){this.config.debugLogging&&(this.logFn("debug","PlayerTelemetryEvent: ".concat(JSON.stringify(g))),this.logFn("debug","PlayerDiagnosticData: ".concat(JSON.stringify(this.currentPlayerDiagnosticSnapshot))))},e3.prototype.filterAndPrepareTelemetry=function(){var g=this,f=new Set;f.add("serviceLatencyCdg"),f.add("endToEndLatencyCdg"),f.add("videoEdgeLatencyCdg"),f.add("eventId"),f.add("templateId");var S={};return Object.keys(this.currentPlayerDiagnosticSnapshot).forEach((function(v){f.has(v)||(S["player_".concat(v)]=g.prepareForTelemetry(g.currentPlayerDiagnosticSnapshot[v]))})),S},e3.prototype.prepareForTelemetry=function(g){return"boolean"==typeof g?g:"string"==typeof g||void 0===g?g||"":"number"==typeof g?null!=g?g:-1:JSON.stringify(g)},e3.prototype.getScenario=function(g){return this.playerEvents.filter((function(f){return f.getName()===g}))},e3.prototype.createTelemetryEvent=function(g,f,S){var v,C,_={eventType:g,timestamp:Date.now(),currentPlayPosition:null!==(C=null===(v=this.currentPlayerDiagnosticSnapshot)||void 0===v?void 0:v.currentPlayPosition)&&void 0!==C?C:-1};return void 0!==f&&(_.payload=this.prepareForTelemetry(f)),_.message=S,_},e3.prototype.modifyTelemetryEventPayload=function(g,f,S){try{if(g.payload){var C=JSON.parse(g.payload);C=S?v(v({},C),f):v(v({},f),C),g.payload=this.prepareForTelemetry(C)}else g.payload=this.prepareForTelemetry(f)}catch(f){this.logFn("error","Failed to modify payload for event: ".concat(P.stringifyObject(g),", error: ").concat(f))}},e3.prototype.registerExperimentalEvent=function(g,f,S){var v=this.createTelemetryEvent(g,f,S);this.experimentalEvents.push(v),this.experimentalEvents.length>this.maxPlayerExperimentalEvents&&this.experimentalEvents.splice(0,1),this.logTelemetryEvent(v)},e3.prototype.getExperimentalEvents=function(){return{playback_experimentalEvents:this.prepareForTelemetry(this.experimentalEvents)}},e3.prototype.registerUserInitiatedSeek=function(g){var f,S,v={newCurrentPlayPosition:g,seekForward:(null!==(S=null===(f=this.currentPlayerDiagnosticSnapshot)||void 0===f?void 0:f.currentPlayPosition)&&void 0!==S?S:-1)this.maxUserInitiatedEventCount&&this.userInitiatedSeekEvents.splice(0,1)},e3.prototype.registerUserInitiatedPlay=function(){var g=this.createTelemetryEvent(b.TelemetryEventType.UserInitiatedPlay);this.userInitiatedPlayEvents.push(g),this.userInitiatedPlayEvents.length>this.maxUserInitiatedEventCount&&this.userInitiatedPlayEvents.splice(0,1)},e3.prototype.registerUserInitiatedPause=function(){var g=this.createTelemetryEvent(b.TelemetryEventType.UserInitiatedPause);this.userInitiatedPauseEvents.push(g),this.userInitiatedPauseEvents.length>this.maxUserInitiatedEventCount&&this.userInitiatedPauseEvents.splice(0,1)},e3.prototype.getUserInitiatedSeekEvents=function(){return{playback_userInitiatedSeekEvents:this.prepareForTelemetry(this.userInitiatedSeekEvents),playback_userInitiatedPlayEvents:this.prepareForTelemetry(this.userInitiatedPlayEvents),playback_userInitiatedPauseEvents:this.prepareForTelemetry(this.userInitiatedPauseEvents)}},e3.prototype.registerPlayBlocked=function(g){this.registerScenario(b.PlayerScenarioType.PlayAttemptBlocked,"Called video element play() but it failed with error: ".concat(g)),this.completeScenario(b.PlayerScenarioType.PlayAttemptBlocked)},e3}();f.LiveStreamStatistic=w},42:function(g,f){Object.defineProperty(f,"__esModule",{value:!0}),f.Spinner=void 0;var S=function(){function e3(g){this.container=g,this.spinnerId="hydra-player-spinner",this.firstSpinnerShowTimestamp=null,this.firstSpinnerHideTimestamp=null,this.spinnerInfoHistory=[],this.maxTimestampHistorySize=100;var f=this.container.ownerDocument.getElementById(this.spinnerId);if(f)return this.spinner=f,void this.show();var S=this.container.ownerDocument.createElement("style");S.textContent="\n .ml-player-spinner-container {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n pointer-events: none;\n }\n .ml-player-spinner {\n width: 3.6rem;\n height: 3.6rem;\n display: block;\n overflow-clip-margin: content-box;\n overflow: hidden;\n animation: ml-player-spinner-outer-rotate 3s linear infinite;\n }\n .ml-player-spinner-dark-wheel {\n fill: none;\n r: 45%;\n cx: 50%;\n cy: 50%;\n stroke: rgb(68, 71, 145);\n stroke-width: 8px;\n }\n .ml-player-spinner-light-wheel {\n fill: none;\n r: 45%;\n cx: 50%;\n cy: 50%;\n stroke: rgb(127, 133, 245);\n stroke-width: 8px;\n stroke-dasharray: 283;\n stroke-dashoffset: 280;\n stroke-linecap: round;\n transform-origin: 50% 50%;\n animation: ml-player-spinner-inner-rotate 1.5s cubic-bezier(0.33, 0, 0.67, 1) infinite;\n }\n @keyframes ml-player-spinner-outer-rotate {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n @keyframes ml-player-spinner-inner-rotate {\n 0% {\n stroke-dashoffset: 283;\n transform: rotate(0deg);\n }\n 25% {\n stroke-dashoffset: 283;\n transform: rotate(0deg);\n }\n 50% {\n stroke-dashoffset: 75;\n transform: rotate(45deg);\n }\n 75% {\n stroke-dashoffset: 75;\n transform: rotate(45deg);\n }\n 100% {\n stroke-dashoffset: 283;\n transform: rotate(360deg);\n }\n }\n ",this.container.ownerDocument.head.appendChild(S),this.container.style.position="relative";var v=this.container.ownerDocument.createElement("div");v.classList.add("ml-player-spinner-container"),this.container.appendChild(v),this.spinner=this.container.ownerDocument.createElementNS("http://www.w3.org/2000/svg","svg"),this.spinner.style.position="absolute",this.spinner.setAttribute("viewBox","0 0 100 100"),this.spinner.classList.add("ml-player-spinner"),this.spinner.id=this.spinnerId,v.appendChild(this.spinner);var C=this.container.ownerDocument.createElementNS("http://www.w3.org/2000/svg","circle");C.classList.add("ml-player-spinner-dark-wheel"),this.spinner.appendChild(C);var _=this.container.ownerDocument.createElementNS("http://www.w3.org/2000/svg","circle");_.classList.add("ml-player-spinner-light-wheel"),this.spinner.appendChild(_),this.show()}return Object.defineProperty(e3.prototype,"firstShowTimestamp",{get:function(){return this.firstSpinnerShowTimestamp},enumerable:!1,configurable:!0}),Object.defineProperty(e3.prototype,"firstHideTimestamp",{get:function(){return this.firstSpinnerHideTimestamp},enumerable:!1,configurable:!0}),Object.defineProperty(e3.prototype,"firstSpinnerDuration",{get:function(){return this.firstSpinnerShowTimestamp?this.firstSpinnerHideTimestamp?this.firstSpinnerHideTimestamp-this.firstSpinnerShowTimestamp:Date.now()-this.firstSpinnerShowTimestamp:null},enumerable:!1,configurable:!0}),Object.defineProperty(e3.prototype,"visibilityHistory",{get:function(){if(this.spinnerInfoHistory.length>0){var g=this.spinnerInfoHistory[this.spinnerInfoHistory.length-1];g.hideTimestamp||(g.displayDuration=Date.now()-g.showTimestamp)}return this.spinnerInfoHistory},enumerable:!1,configurable:!0}),e3.prototype.show=function(){var g=Date.now();this.firstSpinnerShowTimestamp||(this.firstSpinnerShowTimestamp=g),(0===this.spinnerInfoHistory.length||this.spinnerInfoHistory[this.spinnerInfoHistory.length-1].hideTimestamp)&&(this.spinnerInfoHistory.push({showTimestamp:g,displayDuration:0}),this.spinnerInfoHistory.length>this.maxTimestampHistorySize&&this.spinnerInfoHistory.splice(0,1)),this.spinner.style.display="block"},e3.prototype.hide=function(){var g=Date.now();if(this.firstSpinnerHideTimestamp||(this.firstSpinnerHideTimestamp=g),this.spinnerInfoHistory.length>0){var f=this.spinnerInfoHistory[this.spinnerInfoHistory.length-1];f.hideTimestamp||(f.hideTimestamp=g,f.displayDuration=g-f.showTimestamp)}this.spinner.style.display="none"},e3.prototype.isVisible=function(){return"none"!==this.spinner.style.display},e3}();f.Spinner=S},378:function(g,f){var S,v;Object.defineProperty(f,"__esModule",{value:!0}),f.MessageType=void 0,(v=S||(f.MessageType=S={})).Command="Command",v.CommandSuccessResult="CommandSuccessResult",v.CommandFailureResult="CommandFailureResult",v.PlayerEvent="PlayerEvent",v.InternalPlayerEvent="InternalPlayerEvent"},963:function(g,f){var S,v,C;Object.defineProperty(f,"__esModule",{value:!0}),f.PlayerScenarioType=f.TelemetryEventType=void 0,(C=S||(f.TelemetryEventType=S={})).BitrateChangedDownload="BitrateChangedDownload",C.StreamOptionsConfigured="StreamOptionsConfigured",C.BitrateChangedPlayback="BitrateChangedPlayback",C.CaptionsToggled="CaptionsToggled",C.Error="Error",C.IgnoredError="IgnoredError",C.FullscreenChanged="FullscreenChanged",C.Mute="Mute",C.PotentialMediaFreeze="PotentialMediaFreeze",C.StateChanged="StateChanged",C.HydraInputStateChanged="HydraInputStateChanged",C.HydraOutputStateChanged="HydraOutputStateChanged",C.Volume="Volume",C.Buffering="Buffering",C.Online="Online",C.Offline="Offline",C.NetworkChange="NetworkChange",C.HlsEvents="HlsEvents",C.EcdnPluginEvents="EcdnPluginEvents",C.UserInitiatedSeek="UserInitiatedSeek",C.UserInitiatedPlay="UserInitiatedPlay",C.UserInitiatedPause="UserInitiatedPause",C.CapabilitiesUpdated="CapabilitiesUpdated",function(g){g.LoadHydra="LoadHydra",g.LoadHlsScript="LoadHlsScript",g.LoadPlayer="LoadPlayer",g.Load="Load",g.LoadHlsAuthCookie="LoadHlsAuthCookie",g.HlsManifestLoad="HlsManifestLoad",g.HlsKeyLoad="HlsKeyLoad",g.LoadHlsFirstFragment="LoadHlsFirstFragment",g.SetSource="SetSource",g.SdnPluginLoad="SdnPluginLoad",g.ThaPluginLoad="ThaPluginLoad",g.HydraPipelineInitialization="HydraPipelineInitialization",g.Destroyed="Destroyed",g.Setup="Setup",g.StreamConnection="StreamConnection",g.SdnPluginInitialize="SdnPluginInitialize",g.SdnPluginSetSource="SdnPluginSetSource",g.PlayAttemptBlocked="PlayAttemptBlocked"}(v||(f.PlayerScenarioType=v={}))},176:function(g,f){var S,v,C,_,T,I,b,A;Object.defineProperty(f,"__esModule",{value:!0}),f.MobileInteractionType=f.HydraSupportedSDN=f.HydraPlayerDestroyedReason=f.HydraOutputState=f.HydraInputState=f.HydraPlayerPlaybackErrorSource=f.PlaybackMode=void 0,(A=S||(f.PlaybackMode=S={})).Live="Live",A.DVR="DVR",function(g){g.Stream="Stream",g.HydraPipeline="HydraPipeline",g.VideoPlayer="VideoPlayer"}(v||(f.HydraPlayerPlaybackErrorSource=v={})),function(g){g.Idle="Idle",g.Started="Started",g.BufferReceived="BufferReceived",g.Ended="Ended",g.Stopped="Stopped",g.Destroyed="Destroyed"}(C||(f.HydraInputState=C={})),function(g){g.Idle="Idle",g.Attached="Attached",g.Starting="Starting",g.Started="Started",g.BufferReceived="BufferReceived",g.BufferAppended="BufferAppended",g.Stopped="Stopped",g.Destroyed="Destroyed"}(_||(f.HydraOutputState=_={})),function(g){g.PlayerStopped="PlayerStopped",g.PlaybackError="PlaybackError"}(T||(f.HydraPlayerDestroyedReason=T={})),function(g){g.Hive="hive",g.Kollective="kollective",g.Ramp="ramp",g.Peer5="peer5",g.Microsoft="microsoft"}(I||(f.HydraSupportedSDN=I={})),function(g){g[g.DoublePress3Fingers=0]="DoublePress3Fingers"}(b||(f.MobileInteractionType=b={}))},346:function(g,f){var S,v,C,_,T,I,b,A,P;Object.defineProperty(f,"__esModule",{value:!0}),f.HttpFetchErrorReason=f.IframeMessages=f.HydraPlayerType=f.HydraPlayerPlaybackErrorType=f.HydraPlayerPlaybackState=f.HydraPlayerSetupErrorType=f.HydraStreamDeliveryPipeline=f.HydraStreamingEventType=void 0,(P=S||(f.HydraStreamingEventType=S={})).TLE="TLE",P.Overflow="Overflow",P.TownHallBasic="TownHall_Basic",P.TownHallPremium="TownHall_Premium",P.TownHall="TownHall",function(g){g.AMS="AMS",g.HLS="MiddleLaneHttpLiveStreaming",g.Ums="MiddleLaneUltraLowLatency"}(v||(f.HydraStreamDeliveryPipeline=v={})),function(g){g.MultiplePlayerLoad="MultiplePlayerLoad",g.PlayerInitializationFailed="PlayerInitializationFailed",g.InvalidStream="InvalidStream",g.SetSourceFailed="SetSourceFailed"}(C||(f.HydraPlayerSetupErrorType=C={})),function(g){g.LoadStart="loadstart",g.LoadedData="loadeddata",g.LoadedMetadata="loadedmetadata",g.Start="start",g.CanPlayThrough="canplaythrough",g.Play="play",g.Playing="playing",g.Pause="pause",g.Waiting="waiting",g.Seeking="seeking",g.Seeked="seeked",g.Ended="ended",g.Error="error",g.Destroyed="destroyed",g.Initialized="initialized",g.Stalled="stalled",g.VolumeChange="volumechange",g.PlaybackBitrateChanged="playbackbitratechanged",g.DownloadBitrateChanged="downloadbitratechanged",g.TimeUpdate="timeupdate",g.DurationChange="durationchange",g.HlsKeyLoading="hlsKeyLoading",g.HlsKeyLoaded="hlsKeyLoaded",g.HlsKeyLoadedFailed="hlsKeyLoadedFailed",g.HlsManifestLoading="hlsManifestLoading",g.HlsManifestLoaded="hlsManifestLoaded",g.HlsManifestLoadedFailed="hlsManifestLoadedFailed",g.HlsFirstFragmentLoading="hlsFragLoading",g.HlsFirstFragmentBuffered="hlsFragBuffered",g.HlsFirstFragmentLoadFailed="hlsFirstFragmentLoadFailed",g.HlsFragmentChanged="hlsFragmentChanged",g.Online="online",g.Offline="offline",g.NetworkChange="networkChange"}(_||(f.HydraPlayerPlaybackState=_={})),function(g){g.UnsupportedPlatform="UnsupportedPlatform",g.NetworkError="NetworkError",g.PlaybackRetried="PlaybackRetried",g.PlaybackError="PlaybackError",g.Unknown="Unknown",g.MediaTimeout="MediaTimeout",g.NoMediaFlow="NoMediaFlow"}(T||(f.HydraPlayerPlaybackErrorType=T={})),function(g){g[g.Hls=1]="Hls",g[g.Ums=2]="Ums"}(I||(f.HydraPlayerType=I={})),function(g){g.RequestIceCandidates="RequestIceCandidates"}(b||(f.IframeMessages=b={})),function(g){g.Unknown="Unknown",g.ClientNetwork="ClientNetwork",g.ClientNetworkOrUnreachableServer="ClientNetworkOrUnreachableServer",g.ServerNetwork="ServerNetwork",g.ClientAuthIssue="ClientAuthIssue",g.ServerResourceNotFound="ServerResourceNotFound"}(A||(f.HttpFetchErrorReason=A={}))},534:function(g,f,S){var v=this&&this.__awaiter||function(g,f,S,v){return new(S||(S=Promise))((function(C,_){function o2(g){try{l2(v.next(g))}catch(g){_(g)}}function s2(g){try{l2(v.throw(g))}catch(g){_(g)}}function l2(g){var f;g.done?C(g.value):(f=g.value,f instanceof S?f:new S((function(g){g(f)}))).then(o2,s2)}l2((v=v.apply(g,f||[])).next())}))},C=this&&this.__generator||function(g,f){var S,v,C,_,T={label:0,sent:function(){if(1&C[0])throw C[1];return C[1]},trys:[],ops:[]};return _={next:s2(0),throw:s2(1),return:s2(2)},"function"==typeof Symbol&&(_[Symbol.iterator]=function(){return this}),_;function s2(I){return function(b){return function(I){if(S)throw new TypeError("Generator is already executing.");for(;_&&(_=0,I[0]&&(T=0)),T;)try{if(S=1,v&&(C=2&I[0]?v.return:I[0]?v.throw||((C=v.return)&&C.call(v),0):v.next)&&!(C=C.call(v,I[1])).done)return C;switch(v=0,C&&(I=[2&I[0],C.value]),I[0]){case 0:case 1:C=I;break;case 4:return T.label++,{value:I[1],done:!1};case 5:T.label++,v=I[1],I=[0];continue;case 7:I=T.ops.pop(),T.trys.pop();continue;default:if(!((C=(C=T.trys).length>0&&C[C.length-1])||6!==I[0]&&2!==I[0])){T=0;continue}if(3===I[0]&&(!C||I[1]>C[0]&&I[1]A&&_.shift(),[4,Promise.reject(new Error(f))];case 1:return[2,v.sent()]}}))}))}))];case 1:return M=D.sent(),f.srcdoc=M,w=new Promise((function(g,v){f.onload=function(){_.push({success:!0,url:S,startTime:P,duration:Date.now()-P,trackingReference:R.trackingRef,timeTakenToDownloadScript:R.timeTakenToDownloadScript}),_.length>A&&_.shift(),g()},f.onerror=function(g){var f="Failed to load HydraPlayer IFrame: ".concat(p(g));_.push({success:!1,url:S,startTime:P,duration:Date.now()-P,trackingReference:R.trackingRef,timeTakenToDownloadScript:R.timeTakenToDownloadScript,errorMsg:f}),_.length>A&&_.shift(),v(new Error(f))}})),g.appendChild(f),[4,w];case 2:return D.sent(),[2]}}))}))}function l(g){return v(this,arguments,void 0,(function(g,f,S){var _=this;return void 0===f&&(f=5),void 0===S&&(S=200),C(this,(function(T){switch(T.label){case 0:return[4,g(f).catch((function(T){return v(_,void 0,void 0,(function(){var _=this;return C(this,(function(I){switch(I.label){case 0:return 0!=--f?[3,2]:[4,Promise.reject(new Error("[retry] retries exhausted: ".concat(y(T))))];case 1:case 3:return[2,I.sent()];case 2:return[4,new Promise((function(I){return setTimeout((function(){I(l(g,f,S).catch((function(g){return v(_,void 0,void 0,(function(){return C(this,(function(f){switch(f.label){case 0:return[4,Promise.reject(new Error("".concat(y(T)).concat(", ",y(g))))];case 1:return[2,f.sent()]}}))}))})))}),S)}))]}}))}))}))];case 1:return[2,T.sent()]}}))}))}function c(g,f,S,_,T){return v(this,void 0,void 0,(function(){var I,b,A,P=this;return C(this,(function(R){switch(R.label){case 0:return I=Date.now(),S?(b='