%PDF- %PDF-
Direktori : /home1/dimen328/.trash/espace/verification/index/ |
Current File : //home1/dimen328/.trash/espace/verification/index/genesys.min.js.tВlВchargement |
/*! * genesys.js * @version: 2.2.40 * @license: Genesys Telecom Labs */!function(e){var t=window.webpackHotUpdate;window.webpackHotUpdate=function(e,u){!function(e,t){if(!E[e]||!C[e])return;for(var u in C[e]=!1,t)Object.prototype.hasOwnProperty.call(t,u)&&(p[u]=t[u]);0==--g&&0===F&&B()}(e,u),t&&t(e,u)};var u,n=!0,r="c66b8bb3ec66600367f4",o={},i=[],s=[];function a(e){var t=_[e];if(!t)return S;var n=function(n){return t.hot.active?(_[n]?-1===_[n].parents.indexOf(e)&&_[n].parents.push(e):(i=[e],u=n),-1===t.children.indexOf(n)&&t.children.push(n)):(console.warn("[HMR] unexpected require("+n+") from disposed module "+e),i=[]),S(n)},r=function(e){return{configurable:!0,enumerable:!0,get:function(){return S[e]},set:function(t){S[e]=t}}};for(var o in S)Object.prototype.hasOwnProperty.call(S,o)&&"e"!==o&&"t"!==o&&Object.defineProperty(n,o,r(o));return n.e=function(e){return"ready"===D&&f("prepare"),F++,S.e(e).then(t,(function(e){throw t(),e}));function t(){F--,"prepare"===D&&(A[e]||y(e),0===F&&0===g&&B())}},n.t=function(e,t){return 1&t&&(e=n(e)),S.t(e,-2&t)},n}function c(t){var n={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:u!==t,active:!0,accept:function(e,t){if(void 0===e)n._selfAccepted=!0;else if("function"==typeof e)n._selfAccepted=e;else if("object"==typeof e)for(var u=0;u<e.length;u++)n._acceptedDependencies[e[u]]=t||function(){};else n._acceptedDependencies[e]=t||function(){}},decline:function(e){if(void 0===e)n._selfDeclined=!0;else if("object"==typeof e)for(var t=0;t<e.length;t++)n._declinedDependencies[e[t]]=!0;else n._declinedDependencies[e]=!0},dispose:function(e){n._disposeHandlers.push(e)},addDisposeHandler:function(e){n._disposeHandlers.push(e)},removeDisposeHandler:function(e){var t=n._disposeHandlers.indexOf(e);t>=0&&n._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,D){case"idle":(p={})[t]=e[t],f("ready");break;case"ready":k(t);break;case"prepare":case"check":case"dispose":case"apply":(m=m||[]).push(t)}},check:v,apply:w,status:function(e){if(!e)return D;l.push(e)},addStatusHandler:function(e){l.push(e)},removeStatusHandler:function(e){var t=l.indexOf(e);t>=0&&l.splice(t,1)},data:o[t]};return u=void 0,n}var l=[],D="idle";function f(e){D=e;for(var t=0;t<l.length;t++)l[t].call(null,e)}var d,p,h,m,g=0,F=0,A={},C={},E={};function b(e){return+e+""===e?+e:e}function v(e){if("idle"!==D)throw new Error("check() is only allowed in idle status");return n=e,f("check"),(t=1e4,t=t||1e4,new Promise((function(e,u){if("undefined"==typeof XMLHttpRequest)return u(new Error("No browser support"));try{var n=new XMLHttpRequest,o=S.p+""+r+".hot-update.json";n.open("GET",o,!0),n.timeout=t,n.send(null)}catch(e){return u(e)}n.onreadystatechange=function(){if(4===n.readyState)if(0===n.status)u(new Error("Manifest request to "+o+" timed out."));else if(404===n.status)e();else if(200!==n.status&&304!==n.status)u(new Error("Manifest request to "+o+" failed."));else{try{var t=JSON.parse(n.responseText)}catch(e){return void u(e)}e(t)}}}))).then((function(e){if(!e)return f(x()?"ready":"idle"),null;C={},A={},E=e.c,h=e.h,f("prepare");var t=new Promise((function(e,t){d={resolve:e,reject:t}}));p={};return y(2),"prepare"===D&&0===F&&0===g&&B(),t}));var t}function y(e){E[e]?(C[e]=!0,g++,function(e){var t=document.createElement("script");t.charset="utf-8",t.src=S.p+""+e+"."+r+".hot-update.js",document.head.appendChild(t)}(e)):A[e]=!0}function B(){f("ready");var e=d;if(d=null,e)if(n)Promise.resolve().then((function(){return w(n)})).then((function(t){e.resolve(t)}),(function(t){e.reject(t)}));else{var t=[];for(var u in p)Object.prototype.hasOwnProperty.call(p,u)&&t.push(b(u));e.resolve(t)}}function w(t){if("ready"!==D)throw new Error("apply() is only allowed in ready status");return function t(n){var s,a,c,l,D;function d(e){for(var t=[e],u={},n=t.map((function(e){return{chain:[e],id:e}}));n.length>0;){var r=n.pop(),o=r.id,i=r.chain;if((l=_[o])&&(!l.hot._selfAccepted||l.hot._selfInvalidated)){if(l.hot._selfDeclined)return{type:"self-declined",chain:i,moduleId:o};if(l.hot._main)return{type:"unaccepted",chain:i,moduleId:o};for(var s=0;s<l.parents.length;s++){var a=l.parents[s],c=_[a];if(c){if(c.hot._declinedDependencies[o])return{type:"declined",chain:i.concat([a]),moduleId:o,parentId:a};-1===t.indexOf(a)&&(c.hot._acceptedDependencies[o]?(u[a]||(u[a]=[]),g(u[a],[o])):(delete u[a],t.push(a),n.push({chain:i.concat([a]),id:a})))}}}}return{type:"accepted",moduleId:e,outdatedModules:t,outdatedDependencies:u}}function g(e,t){for(var u=0;u<t.length;u++){var n=t[u];-1===e.indexOf(n)&&e.push(n)}}x();var F={},A=[],C={},v=function(){console.warn("[HMR] unexpected require("+B.moduleId+") to disposed module")};for(var y in p)if(Object.prototype.hasOwnProperty.call(p,y)){var B;D=b(y),B=p[y]?d(D):{type:"disposed",moduleId:y};var w=!1,k=!1,j=!1,O="";switch(B.chain&&(O="\nUpdate propagation: "+B.chain.join(" -> ")),B.type){case"self-declined":n.onDeclined&&n.onDeclined(B),n.ignoreDeclined||(w=new Error("Aborted because of self decline: "+B.moduleId+O));break;case"declined":n.onDeclined&&n.onDeclined(B),n.ignoreDeclined||(w=new Error("Aborted because of declined dependency: "+B.moduleId+" in "+B.parentId+O));break;case"unaccepted":n.onUnaccepted&&n.onUnaccepted(B),n.ignoreUnaccepted||(w=new Error("Aborted because "+D+" is not accepted"+O));break;case"accepted":n.onAccepted&&n.onAccepted(B),k=!0;break;case"disposed":n.onDisposed&&n.onDisposed(B),j=!0;break;default:throw new Error("Unexception type "+B.type)}if(w)return f("abort"),Promise.reject(w);if(k)for(D in C[D]=p[D],g(A,B.outdatedModules),B.outdatedDependencies)Object.prototype.hasOwnProperty.call(B.outdatedDependencies,D)&&(F[D]||(F[D]=[]),g(F[D],B.outdatedDependencies[D]));j&&(g(A,[B.moduleId]),C[D]=v)}var T,I=[];for(a=0;a<A.length;a++)D=A[a],_[D]&&_[D].hot._selfAccepted&&C[D]!==v&&!_[D].hot._selfInvalidated&&I.push({module:D,parents:_[D].parents.slice(),errorHandler:_[D].hot._selfAccepted});f("dispose"),Object.keys(E).forEach((function(e){!1===E[e]&&function(e){delete installedChunks[e]}(e)}));var R,P,N=A.slice();for(;N.length>0;)if(D=N.pop(),l=_[D]){var U={},L=l.hot._disposeHandlers;for(c=0;c<L.length;c++)(s=L[c])(U);for(o[D]=U,l.hot.active=!1,delete _[D],delete F[D],c=0;c<l.children.length;c++){var M=_[l.children[c]];M&&((T=M.parents.indexOf(D))>=0&&M.parents.splice(T,1))}}for(D in F)if(Object.prototype.hasOwnProperty.call(F,D)&&(l=_[D]))for(P=F[D],c=0;c<P.length;c++)R=P[c],(T=l.children.indexOf(R))>=0&&l.children.splice(T,1);f("apply"),void 0!==h&&(r=h,h=void 0);for(D in p=void 0,C)Object.prototype.hasOwnProperty.call(C,D)&&(e[D]=C[D]);var z=null;for(D in F)if(Object.prototype.hasOwnProperty.call(F,D)&&(l=_[D])){P=F[D];var $=[];for(a=0;a<P.length;a++)if(R=P[a],s=l.hot._acceptedDependencies[R]){if(-1!==$.indexOf(s))continue;$.push(s)}for(a=0;a<$.length;a++){s=$[a];try{s(P)}catch(e){n.onErrored&&n.onErrored({type:"accept-errored",moduleId:D,dependencyId:P[a],error:e}),n.ignoreErrored||z||(z=e)}}}for(a=0;a<I.length;a++){var q=I[a];D=q.module,i=q.parents,u=D;try{S(D)}catch(e){if("function"==typeof q.errorHandler)try{q.errorHandler(e)}catch(t){n.onErrored&&n.onErrored({type:"self-accept-error-handler-errored",moduleId:D,error:t,originalError:e}),n.ignoreErrored||z||(z=t),z||(z=e)}else n.onErrored&&n.onErrored({type:"self-accept-errored",moduleId:D,error:e}),n.ignoreErrored||z||(z=e)}}if(z)return f("fail"),Promise.reject(z);if(m)return t(n).then((function(e){return A.forEach((function(t){e.indexOf(t)<0&&e.push(t)})),e}));return f("idle"),new Promise((function(e){e(A)}))}(t=t||{})}function x(){if(m)return p||(p={}),m.forEach(k),m=void 0,!0}function k(t){Object.prototype.hasOwnProperty.call(p,t)||(p[t]=e[t])}var _={};function S(t){if(_[t])return _[t].exports;var u=_[t]={i:t,l:!1,exports:{},hot:c(t),parents:(s=i,i=[],s),children:[]};return e[t].call(u.exports,u,u.exports,a(t)),u.l=!0,u.exports}S.m=e,S.c=_,S.d=function(e,t,u){S.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:u})},S.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},S.t=function(e,t){if(1&t&&(e=S(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var u=Object.create(null);if(S.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)S.d(u,n,function(t){return e[t]}.bind(null,n));return u},S.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return S.d(t,"a",t),t},S.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},S.p="",S.h=function(){return r},a("./src/genesys.js")(S.s="./src/genesys.js")}({"./includes/cxbus.min.js":function(e,t,u){(function(e){var u,n,r,o;function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)} /*! * cxbus * @version: 2.0.6 * @license: Genesys Telecom Labs */window,o=function(){return function(e){var t={};function u(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,u),r.l=!0,r.exports}return u.m=e,u.c=t,u.d=function(e,t,n){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"==i(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)u.d(n,r,function(t){return e[t]}.bind(null,r));return n},u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="",u(u.s=0)}([function(e,t,u){var n;void 0===(n=function(){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)})(e)}!function(){var o=u(1).Promise,i=Be(),s="color:red;font-weight:bold",a="color:white;background:#6495ed",c="color:#555;font-style:italic",l="color:#6495ed;font-weight:bold",D=!1,f=!1,d=[],p={},h={},m={},g={},F=[],A={},C={},E={},b={},v={},y=[],B=window.Genesys&&window.Genesys.q&&z(window.Genesys.q,N)?window.Genesys.q:[],w=!1,x=!0,k=!1,_="",S="",j="plugin.min.js",O={},T={},I=!0,R=!1,P="*",N="array",U=function(){},L={last:null,value:null};function M(e){if(z(e=function(e){var t={};for(var u in e)t[te(u)]=e[u];return t}(e),"object")){if(z(e.debug,"boolean")&&(w=e.debug),z(e.queue,N)&&e.debug,z(e.async,"boolean")&&(I=e.async),z(e.log,"boolean")&&(x=e.log),z(e.logstore,"boolean")&&(k=e.logstore),z(e.pluginspath,"string")&&(_=pe(e.pluginspath)),z(e.modulespath,"string")&&(S=pe(e.modulespath)),z(e.pluginfilenameformat,"string")&&(j=e.pluginfilenameformat),z(e.pluginmap,"object")&&(O=e.pluginmap),z(e.pluginmap,"string"))try{O=JSON.parse(e.pluginmap)}catch(t){le("%cInvalid plugin map JSON. Ignoring "+e.pluginmap,s)}if(z(e.modulemap,"object")&&(T=e.modulemap),z(e.modulemap,"string"))try{T=JSON.parse(e.modulemap)}catch(t){le("%cInvalid module map JSON. Ignoring "+e.modulemap,s)}z(e.childDomain,"string")&&(P=e.childDomain),z(e.childmode,"boolean")&&1==e.childmode&&(R=e.childmode,f=!0,(window.opener||window.parent).postMessage({type:"CXBus.childCallout",registry:Object.keys(h),busID:i},"*")),O=J(O),T=J(T),le("%cGenesys configuration changed",a)}}function z(e,t){return t===N?!!Array.isArray(e):r(e)==t}function $(e,t,u){return ce(e,(function(n,o){var c=te(e),f=h[c];D&&!f&&void 0===t?Ie({type:"CXBus.remoteExecution",subType:"registerPlugin",busID:i,pluginName:e}).then((function(e){"pass"===e.resolution?$(e.pluginName,!0).then((function(e){n(e)})):"fail"===e.resolution&&$(e.pluginName,!1).then((function(e){o(e)}))})):!D||D&&!f&&!0===t?"string"!=r(e)||f?f&&o("%cCan't register plugin "+De(e)+" -- Name is already taken",s,l,s):(h[c]={name:e,namespace:e,interface:Q(e),events:{},commands:{},data:{},buffer:[],ready:!1,busID:u||i},g[c]={events:[],commands:[]},h[c].busID==i&&le("%c New Plugin Registered:"+De(" "+e),a,l),function(e){var t=e.interface;t.registerCommand("COMMANDS",(function(t){K(e,"Commands"),t.resolve()})),t.registerCommand("EVENTS",(function(t){K(e,"Events"),t.resolve()})),t.registerCommand("LOAD",(function(e){e.resolve()}))}(h[c]),h[c].interface.initData=C[c]||{},n(h[c].interface),C[c]&&delete C[c]):D&&!1===t&&o("%cCan't register plugin "+De(e)+" -- Name is already taken",s,l,s)}))}function q(e){return"function"==r(e)&&(F.push(e),!0)}function H(e){e&&!e.mID&&(e.mID=Be());for(var t=0;t<F.length;t++)F[t](e)}function J(e){var t={};for(var u in e)t[te(u)]=e[u];return t}function G(e,t){var u=te(e);return ce(e,(function(n,o){if(function(e){for(var t in e.split(".").length>1&&(e=e.split(".")[0]),h)if(te(t)==te(e))return!0;return!1}(e)||E[te(e)])le("%cCan't load plugin ("+De(e)+") -- This plugin is already loaded or an unexpected error occurred.",s,l,s),o();else{var i=j.replace("plugin",u),c=O[u],D=function(t){!function(e){E[te(e)]=!0}(e),n(t)},f=function(){o("Could not load plugin file: "+i)};C[u]=t||{},le("%cLoading plugin: "+(c||i),l),"string"==r(c)&&""!==c?c.match(".js$")?W(c,D,f):(le("%cError: ("+c+") is not recognized as a javascript file. Please map plugins to javascript files only.",s),o()):!1===c?(le("%cNotice: "+i+" was prevented from loading by the current plugin mapping configuration.",a),o()):W(_+i,D,f)}}))}function Y(e){return ce("loadFile",(function(t,u){!function(e){return b[e]}(e)?(le("%cLoading file: "+e,l),W(e,(function(u){!function(e){b[e]=!0}(e),t(u)}),(function(){u("Could not load file: "+e)}))):(le("%cCan't load file ("+e+") -- This file was already loaded",s,l,s),u())}))}function V(e,t){return ce("loadJSON",(function(t,u){var n=new XMLHttpRequest;n.overrideMimeType("application/json"),n.open("GET",e,!0),n.onreadystatechange=function(){4==n.readyState&&"200"==n.status?n.responseText&&t(n.responseText):"200"!=n.status&&0!=n.status&&u("loadJSON failed with status code: "+n.status)},n.send(null)}))}function Z(e){var t=te(e);return ce("loadModule",(function(e,u){if(t&&v[t])setTimeout((function(){e(v[t])}),0);else{var n="module.mod.js".replace("module",t),o=T[t],i=""!==S?S:_,c=function(u){e(v[t])},l=function(){u("Could not load module: "+t)};"string"==r(o)&&""!==o?o.match(".js$")?W(o,c,l):(le("%cError: ("+o+") is not recognized as a javascript file. Please map modules to javascript files only.",s),u()):!1===o?(le("%cNotice: "+n+" was prevented from loading by the current module mapping configuration.",a),u()):W(i+n,c,l)}}))}function X(e,t){var u=te(e);return!v[u]&&(v[u]=t,!0)}function W(e,t,u){if(!e)return!1;var n=document.createElement("script");return n.type="text/javascript",n.onload=t,n.onerror=u,n.src=e,n.charset="UTF-8",document.head.appendChild(n),!0}function Q(e){var t=function(){try{w&&console.log&&console.log.apply(this,arguments)}catch(e){}};return t.info=function(){try{w&&console.info&&console.info.apply(this,arguments)}catch(e){}},t.warn=function(){try{w&&console.warn&&console.warn.apply(this,arguments)}catch(e){}},t.error=function(){try{w&&console.error&&console.error.apply(this,arguments)}catch(e){}},{publish:function(t,u){return oe(e,t,u)},publishDirect:function(t,u){return oe(e,t,u,!1,!0)},republish:function(t,u){return oe(e,t,u,!0)},subscribe:function(t,u){return se(e,t,u)},unsubscribe:function(t){return function(e,t){var u=ue(e),n=te(t);if(u&&m[n]&&m[n].subscribers){for(var r=[],o=0;o<m[n].subscribers.length;o++)m[n].subscribers[o].subscriber!=e&&r.push(m[n].subscribers[o]);return r.length>0?m[n].subscribers=r:delete m[te(t)],le(De(e)+" unsubscribed from "+De(t),l,c,l),!0}return!1}(e,t)},command:function(t,u){return ae({commander:e,command:t,data:u})},before:function(e,t){return n=t,!!ee(u=e)&&(A[u]||(A[u]=[]),A[u].push(n),!0);var u,n},registerCommand:function(t,u){return re(e,t,u)},registerEvents:function(t){!function(e,t){var u=ue(e);if(z(t=t||[],"string")&&(t=[t]),u&&t.length>0){for(var n=0;n<t.length;n++)u.events[t[n]]||(u.events[t[n]]=!0,g[te(e)].events.push(t[n]));le(De(e)+" registered the events: %c"+t.join(", "),l,c,l)}}(e,t)},namespace:function(){return e+""},subscribers:function(){return function(e){var t={};for(var u in m)if(u.match(te(e))){t[u]||(t[u]=[]);for(var n=0;n<m[u].subscribers.length;n++)t[u].push(m[u].subscribers[n].subscriber)}return t}(e)},data:function(t,u){return function(e,t,u){return function(e,t,u){var n=te(e);if(null!=u){var o;h[n].data[t]?o=h[n].data[t].value:h[n].data[t]=L,r(o);var i=r(u),s={};s.last=o,s.value=u,s.time=(new Date).getTime();var a="data."+t;o!=u&&(oe(e,"data",h[n].data),oe(e,a,s),oe(e,"string"==i?a+":'"+s.value+"'":a+":"+s.value,s,!1,!0)),h[n].data[t]=s}}(e,t,u),function(e,t){var u=te(e);if(h[u].data[t])return h[u].data[t].value;if(e&&!t&&h[u])return h[u].data||{};var n=ee(t),r=h[te(n)];return t=t.replace(n+".",""),r&&r.data[t]?r.data[t].value:void 0}(e,t)}(e,t,u)},registry:function(){return g},initData:{},log:t,ready:function(){return function(e,t){h[te(e)].ready=!0,function(e){var t=te(e),u=h[t].buffer||[],n=0;for(n=0;n<u.length;n++)!function(e){var t=ne(e.command);le(De(e.commander)+" called the command: "+De(e.command),l,c,l),t&&fe((function(){t(e)}))}(u[n]);h[t].buffer=[]}(e),oe(e,"ready",t||{},!0)}(e)}}}function K(e,t){for(var u in le("%cList of "+t+" for: "+De(e.namespace),a,l),e[te(t)])le("%c"+u,a)}function ee(e){return e.split(".")[0]}function te(e){return"string"==typeof e?e.toLowerCase():e}function ue(e){return h[te(e)]||h[ee(te(e))]||!1}function ne(e){var t=te(e).split(".")||[],u=!1;return 2==t.length&&(u=ue(t[0]))&&u.commands[t[1]]||!1}function re(e,t,u){var n=te(t),r=ue(e);return!!r&&(r.commands[n]||g[te(e)].commands.push(t),r.commands[n]=u,r.busID==i&&le(De(e)+" registered the command: "+De(t),l,c,l),D&&xe({id:i,childID:i,busID:i,type:"CXBus.remoteExecution",subType:"registerCommand",namespace:e,commandName:t}),!0)}function oe(e,t,u,n,r,o){var s=te(de([e,t])),a=De(e)+" published: "+De(t);if(u=u||{},!0===n&&(m[s]?(m[s].republish=!0,m[s].data=u):m[s]={subscribers:[],republish:!0,data:u}),r||o||le(a,l,c,l),Re("publish",s,m[s]),m[s]){r&&!o&&le(a,l,c,l);for(var D=m[s].subscribers,f={time:(new Date).getTime(),publisher:e,event:s,data:u||{}},d=0;d<D.length;d++)fe(D[d].callback,f)}return o||ke("publish",{busID:i,childID:i,event:s,eventName:t,publisher:e,republish:n,direct:r,data:u}),H({type:"publish",time:(new Date).getTime(),source:e,target:s,data:u||{}}),!0}function ie(e,t,u,n){le(De(t)+" republished: "+De(e),l,c,l),fe(u,{time:(new Date).getTime(),publisher:t,event:e,data:n}),H({type:"publish",time:(new Date).getTime(),source:t,target:e,data:n||{}})}function se(e,t,u){var n=ue(e),r=ue(t),o=te(t);return!(!u||!n)&&(m[o]||(m[o]={subscribers:[],republish:!1}),m[o].subscribers.push({subscriber:e,callback:u}),le(De(e)+" subscribed to "+De(t),l,c,l),!0===m[o].republish&&r&&ie(t,r.namespace,u,m[o].data||{}),ke("subscribe",{busID:i,childID:i,eventName:t,subscriber:e}),t)}function ae(e){var t=e.commander,u=e.command,n=(te(u),e.data),o=e.resolveBuff,a=e.rejectBuff,f=e.buffered;n=n||{},u&&1===u.split(".").length&&(u=de([t,u])),f||(n=function(e,t){for(var u=A[e]||[],n=0;n<u.length;n++)"object"==r(t)&&!1!==t&&null!=t&&(t=u[n](t));return t}(u,n));var d=ne(u),p=ee(u),m=h[te(p)];if(H({type:"command",time:(new Date).getTime(),source:t,target:u,data:n||{}}),D&&!m)return Ie({type:"CXBus.remoteExecution",subType:"command",busID:i,pluginName:p,commandName:u,commander:t,data:n});if(!D&&m&&m.busID!=i)return e.message?(e.message.targetID=m.busID,Ie(e.message)):Ie({type:"CXBus.remoteExecution",subType:"command",busID:i,pluginName:p,commandName:u,commander:t,data:n,targetID:m.busID});if(m&&m.busID==i){var g=ce(u,(function(D,f){var g={time:(new Date).getTime(),commander:t,command:u,resolve:o||D,reject:a||f,data:n||{}};"object"==r(n)&&!1!==n&&null!=n?m&&m.busID==i&&(le(De(t)+" called the command: "+De(u),l,c,l),m.ready||p==t?d?d(g):(e.message&&(e.message.resolution="fail",e.message.resolutionData="Command does not exist"),g.reject("Command does not exist")):m.ready||(le("%c"+De(p)+" is loading and/or has not yet called its ready() method. Your command call ("+u+") has been buffered and will be executed once the plugin has loaded and/or called its ready() method.",s,s,s),function(e,t){h[te(e)].buffer.push(t)}(p,g))):(e.message.resolution="fail",e.message.resolutionData="Command was cancelled by a 'before' function.",g.reject("Command was cancelled by a 'before' function.")),e.message&&"fail"==e.message.resolution&&Ie(e.message)}));return e.message&&g.then((function(t){e.message.resolution="pass",e.message.resolutionData=t,Ie(e.message)})).catch((function(t){e.message.resolution="fail",e.message.resolutionData=t,Ie(e.message)})),g}return D||m?void 0:ce(u,(function(r,o){le("%c'"+p+"' plugin not currently registered. Attempting to load plugin from configured path ("+_+").",l),G(p).then((function(){ae({commander:t,command:u,data:n,resolveBuff:r,rejectBuff:o,buffered:!0})}),(function(){e.message.resolution="fail",e.message.resolutionData="Could not load plugin file in given location. Check your plugins path option.",o("Could not load plugin file in given location. Check your plugins path option.")}))}))}function ce(e,t){var u=new o(t);return u.catch((function(t){le("%cError ("+De(e)+"): ",s,s,s),console.error&&console.error(t)})),u}function le(e,t,u,n,o,i){try{x&&(k&&y.push(e+""),w&&console&&console.log&&"string"==r(e)&&("%c"==e.substr(e.length-2,2)&&(e=e.substr(0,e.length-2)),console.log.apply(this,arguments)))}catch(e){Re("logging error!")}}function De(e){return"%c"+e+"%c"}function fe(e,t,u,n){I||n?setTimeout((function(){e(t)}),u||0):e(t)}function de(e){return e.join(".")}function pe(e){return e&&"/"!=e[e.length-1]?e+"/":e}function he(){if(f)B.push(arguments);else{var e=arguments,t=e[0]||"";if("registerPlugin"==t)$(e[1]).then(e[2]||U,e[3]||U);else if("command"==t)ae({commander:"Genesys",command:e[1],data:e[2]||{}}).then(e[3]||U,e[4]||U);else if("subscribe"==t&&"string"==r(e[1])&&"function"==r(e[2]))se("Genesys",e[1],e[2]);else if("monitor"==t&&"function"==r(e[1]))q(e[1]);else if("registerChild"==t)Ee(e[1]);else if("registerModule"==t)X(e[1],e[2]);else if("executeQueue"==t)ge();else if("loadPlugin"==t)G(e[1],e[2]).then(e[3]||U,e[4]||U);else if("loadFile"==t)Y(e[1]).then(e[2]||U,e[3]||U);else if("loadModule"==t)Z(e[1]).then(e[2]||U,e[3]||U);else if("loadJSON"==t)V(e[1]).then(e[2]||U,e[3]||U);else{if("configure"!=t)return!1;if(!e[1])return me();M(e[1]||{})}}return!0}function me(){return le("CXBus Configuration\n----------------------------\nDEBUG: \t\t\t\t\t"+w+"\nPLUGINS_PATH: \t\t\t"+(_||'""')+"\nMODULES_PATH: \t\t\t"+(S||'""')+"\nPLUGIN_FILENAME_FORMAT: "+j+"\nMODULE_FILENAME_FORMAT: module.mod.js\nPLUGIN_MAP: \t\t\t"+JSON.stringify(O)+"\nMODULE_MAP: \t\t\t"+JSON.stringify(T)+"\nASYNC: \t\t\t\t\t"+I+"\nCHILD_MODE: \t\t\t"+R+"\nCHILD_DOMAIN: \t\t\t"+P+"\nPARENT_DOMAIN: \t\t\t*"),{debug:w,pluginsPath:_,modulesPath:S,pluginFilenameFormat:j,moduleFilenameFormat:"module.mod.js",pluginMap:O,moduleMap:T,async:I,childMode:R,childDomain:P,parentDomain:"*"}}function ge(e){if(B){le("%cExecuting "+B.length+" items from the queue...",a);for(var t=0;t<B.length;t++)he.apply(this,B[t])}}if(window.Genesys)for(var Fe=Object.keys(window.Genesys),Ae=0;Ae<Fe.length;Ae++)he[Fe[Ae]]=window.Genesys[Fe[Ae]];window.Genesys=he,$("Genesys"),"function"==r(u(3))&&u(4)&&(void 0===(n=function(){return window.Genesys}.apply(t,[]))||(e.exports=n));var Ce={};function Ee(e){return!!e&&(e.contentWindow&&(e=e.contentWindow),Ce[id]={id:id,busID:void 0,intvl:setInterval((function(){be(e,id)}),500),callAttempts:0,registered:!1,window:e,registry:[]},be(e,id),!0)}function be(e,t){e.postMessage({type:"CXBus.parentCallout",childID:t,busID:i},P),Ce[t].callAttempts++}function ve(e,t,u){Ce[t]&&!Ce[t].registered?(clearInterval(Ce[t].intvl),Ce[t].registered=(new Date).getTime(),Ce[t].registry=u,Ce[t].busID=busID):(Ce[t]={id:t,busID:t,intvl:!1,callAttempts:0,registered:(new Date).getTime(),window:e,registry:u},e.postMessage({type:"CXBus.parentCallback",busID:t},P))}function ye(e,t,u){f=!1,D=e,ge()}function Be(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}function we(e,t){Ce[e]&&(t=t||{},Ce[e].window.postMessage(t,P))}function xe(e){D&&D.postMessage(e,"*")}function ke(e,t){if(Re("broadcast",e,t),(t=t||{}).subType=e,t.type="CXBus.broadcast",D)xe(t);else for(var u in Ce)we(u,t)}var _e,Se,je=document.getElementById("genesys-cxbus"),Oe={},Te={src:0,charset:0,id:0,type:0,queue:0,pluginmap:0,modulemap:0};if(je){for(Ae=0;Ae<je.attributes.length;Ae++)_e=te(je.attributes[Ae].nodeName),"true"===(Se=je.attributes[Ae].nodeValue)&&(Se=!0),"false"===Se&&(Se=!1),Te[_e]||(Oe[_e]=Se);M(Oe)}function Ie(e){var t;if(e.id)t=e.id;else{for(t=Be();p[t];)t=Be();e.id=t}return ce("remoteExecution",(function(u,n){p[t]={success:u,fail:n},!D&&e.resolution?(Re("--\x3e to origin"),we(e.busID,e)):!D&&e.targetID?(Re("--\x3e to target child"),we(e.targetID,e)):e.id!=i&&(Re("--\x3e to parent"),xe(e))}))}function Re(){var e=Array.prototype.slice.call(arguments);e.unshift("["+window.name+"]")}window.addEventListener("message",(function(e){d.push(e),function(){for(;d.length>0;){var e=d.shift(),t=e.data,u=p[t.id];switch(t.type){case"CXBus.parentCallout":R&&ye(e.source,t.busID,t.parentRegistry);break;case"CXBus.childCallout":R||ve(e.source,t.busID,t.registry);break;case"CXBus.parentCallback":R&&ye(e.source,t.busID,t.parentRegistry);break;case"CXBus.childCallback":R||ve(e.source,t.busID,t.registry);break;case"CXBus.broadcast":D||ke(t);var n=te(t.eventName),r=m[n]||!1;switch(t.subType){case"subscribe":if(void 0===t.eventData&&r&&!0===r.republish){var o=ue(t.eventName);t.eventNamespace=o?o.namespace:"",t.eventData=r.data||{},t.subType="republish",we(t.busID,t)}break;case"publish":oe(t.publisher,t.eventName,t.data,t.republish,t.direct,!0);break;case"republish":for(var s=null,a=0;a<r.subscribers.length;a++)r.subscribers[a].subscriber==t.subscriber&&(s=r.subscribers[a].callback);s&&ie(t.eventName,t.eventNamespace,s,t.eventData||{})}break;case"CXBus.remoteExecution":switch(t.subType){case"registerPlugin":D||(ue(t.pluginName)?(t.resolution="fail",we(t.busID,t)):(t.resolution="pass",we(t.busID,t),$(t.pluginName,!0,t.busID))),u&&t.resolution&&("pass"==t.resolution?u.success(t):"fail"==t.resolution&&u.fail(t));break;case"registerCommand":D||re(t.namespace,t.commandName,U);break;case"command":var c=p[t.id],l=ee(t.commandName),f=h[te(l)];if(t.resolution)t.resolution&&c&&("pass"==t.resolution?c.success(t.resolutionData):"fail"==t.resolution&&c.fail(t.resolutionData),D||t.busID==i||Ie(t),delete p[t.id]);else if(!D&&f&&f.busID&&f.busID!=i)t.targetID=f.busID,Ie(t),H({type:"command",time:(new Date).getTime(),source:t.commander,target:t.commandName,data:t.data||{}});else if(f&&f.busID&&f.busID==i)ae({commander:t.commander,command:t.commandName,data:t.data,message:t});else if(!D&&!f)return t.resolution="fail",t.resolutionData="Plugin does not exist and no plugins path is configured",Ie(t)}}}}()}),!1),window.reg=function(){return{busID:i,oParentBus:D,bPendingParent:f,aMessageQueue:d,oChildRegistry:Ce,oPlugins:h,oSubscriptions:m,oRegistry:g,oBefore:A,oLoadedPlugins:E,oLoadedFiles:b,oLoadedModules:v}}}()}.apply(t,[]))||(e.exports=n)},function(e,t,u){(function(n){var r;!function(n){var o=n.Promise,s=o&&"resolve"in o&&"reject"in o&&"all"in o&&"race"in o&&function(){var e;return new o((function(t){e=t})),"function"==typeof e}();t?(t.Promise=s?o:v,t.Polyfill=v):void 0===(r=function(){return s?o:v}.call(t,u,t,e))||(e.exports=r);var a=function(){};function c(e){return"[object Array]"===Object.prototype.toString.call(e)}var l,D="undefined"!=typeof setImmediate?setImmediate:setTimeout,f=[];function d(){for(var e=0;e<f.length;e++)f[e][0](f[e][1]);f=[],l=!1}function p(e,t){f.push([e,t]),l||(l=!0,D(d,0))}function h(e){var t=e.owner,u=t.state_,n=t.data_,r=e[u],o=e.then;if("function"==typeof r){u="fulfilled";try{n=r(n)}catch(e){A(o,e)}}m(o,n)||("fulfilled"===u&&g(o,n),"rejected"===u&&A(o,n))}function m(e,t){var u;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"==i(t))){var n=t.then;if("function"==typeof n)return n.call(t,(function(n){u||(u=!0,t!==n?g(e,n):F(e,n))}),(function(t){u||(u=!0,A(e,t))})),!0}}catch(t){return u||A(e,t),!0}return!1}function g(e,t){e!==t&&m(e,t)||F(e,t)}function F(e,t){"pending"===e.state_&&(e.state_="sealed",e.data_=t,p(E,e))}function A(e,t){"pending"===e.state_&&(e.state_="sealed",e.data_=t,p(b,e))}function C(e){var t=e.then_;e.then_=void 0;for(var u=0;u<t.length;u++)h(t[u])}function E(e){e.state_="fulfilled",C(e)}function b(e){e.state_="rejected",C(e)}function v(e){if("function"!=typeof e)throw new TypeError("Promise constructor takes a function argument");if(this instanceof v==0)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.then_=[],function(e,t){function u(e){A(t,e)}try{e((function(e){g(t,e)}),u)}catch(e){u(e)}}(e,this)}v.prototype={constructor:v,state_:"pending",then_:null,data_:void 0,then:function(e,t){var u={owner:this,then:new this.constructor(a),fulfilled:e,rejected:t};return"fulfilled"===this.state_||"rejected"===this.state_?p(h,u):this.then_.push(u),u.then},catch:function(e){return this.then(null,e)}},v.all=function(e){if(!c(e))throw new TypeError("You must pass an array to Promise.all().");return new this((function(t,u){var n=[],r=0;function o(e){return r++,function(u){n[e]=u,--r||t(n)}}for(var i,s=0;s<e.length;s++)(i=e[s])&&"function"==typeof i.then?i.then(o(s),u):n[s]=i;r||t(n)}))},v.race=function(e){if(!c(e))throw new TypeError("You must pass an array to Promise.race().");return new this((function(t,u){for(var n,r=0;r<e.length;r++)(n=e[r])&&"function"==typeof n.then?n.then(t,u):t(n)}))},v.resolve=function(e){return e&&"object"==i(e)&&e.constructor===this?e:new this((function(t){t(e)}))},v.reject=function(e){return new this((function(t,u){u(e)}))}}("undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:this)}).call(this,u(2))},function(e,t){var u;u=function(){return this}();try{u=u||new Function("return this")()}catch(e){"object"==("undefined"==typeof window?"undefined":i(window))&&(u=window)}e.exports=u},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t){(function(t){e.exports=t}).call(this,{})}])},"object"==i(t)&&"object"==i(e)?e.exports=o():(n=[],void 0===(r="function"==typeof(u=o)?u.apply(t,n):u)||(e.exports=r))}).call(this,u("./node_modules/webpack/buildin/module.js")(e))},"./includes/markdown.js":function(e,t,u){"use strict";u.r(t),u.d(t,"configureMarkdown",(function(){return G})),u.d(t,"parseMarkdown",(function(){return Y})),u.d(t,"extendMarkdown",(function(){return V})),u.d(t,"configureHtml2Markdown",(function(){return Z})),u.d(t,"html2markdown",(function(){return X}));var n=u("./node_modules/marked/lib/marked.umd.js");function r(e,t){return Array(t+1).join(e)}var o=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function i(e){return l(e,o)}var s=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function a(e){return l(e,s)}var c=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function l(e,t){return t.indexOf(e.nodeName)>=0}function D(e,t){return e.getElementsByTagName&&t.some((function(t){return e.getElementsByTagName(t).length}))}var f={};function d(e){return e?e.replace(/(\n+\s*)+/g,"\n"):""}function p(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}function h(e,t,u){for(var n=0;n<e.length;n++){var r=e[n];if(m(r,t,u))return r}}function m(e,t,u){var n=e.filter;if("string"==typeof n){if(n===t.nodeName.toLowerCase())return!0}else if(Array.isArray(n)){if(n.indexOf(t.nodeName.toLowerCase())>-1)return!0}else{if("function"!=typeof n)throw new TypeError("`filter` needs to be a string, array, or function");if(n.call(e,t,u))return!0}}function g(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function F(e,t,u){return e&&e.parentNode===t||u(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}f.paragraph={filter:"p",replacement:function(e){return"\n\n"+e+"\n\n"}},f.lineBreak={filter:"br",replacement:function(e,t,u){return u.br+"\n"}},f.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,u){var n=Number(t.nodeName.charAt(1));return"setext"===u.headingStyle&&n<3?"\n\n"+e+"\n"+r(1===n?"=":"-",e.length)+"\n\n":"\n\n"+r("#",n)+" "+e+"\n\n"}},f.blockquote={filter:"blockquote",replacement:function(e){return"\n\n"+(e=(e=e.replace(/^\n+|\n+$/g,"")).replace(/^/gm,"> "))+"\n\n"}},f.list={filter:["ul","ol"],replacement:function(e,t){var u=t.parentNode;return"LI"===u.nodeName&&u.lastElementChild===t?"\n"+e:"\n\n"+e+"\n\n"}},f.listItem={filter:"li",replacement:function(e,t,u){e=e.replace(/^\n+/,"").replace(/\n+$/,"\n").replace(/\n/gm,"\n ");var n=u.bulletListMarker+" ",r=t.parentNode;if("OL"===r.nodeName){var o=r.getAttribute("start"),i=Array.prototype.indexOf.call(r.children,t);n=(o?Number(o)+i:i+1)+". "}return n+e+(t.nextSibling&&!/\n$/.test(e)?"\n":"")}},f.indentedCodeBlock={filter:function(e,t){return"indented"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,u){return"\n\n "+t.firstChild.textContent.replace(/\n/g,"\n ")+"\n\n"}},f.fencedCodeBlock={filter:function(e,t){return"fenced"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,u){for(var n,o=((t.firstChild.getAttribute("class")||"").match(/language-(\S+)/)||[null,""])[1],i=t.firstChild.textContent,s=u.fence.charAt(0),a=3,c=new RegExp("^"+s+"{3,}","gm");n=c.exec(i);)n[0].length>=a&&(a=n[0].length+1);var l=r(s,a);return"\n\n"+l+o+"\n"+i.replace(/\n$/,"")+"\n"+l+"\n\n"}},f.horizontalRule={filter:"hr",replacement:function(e,t,u){return"\n\n"+u.hr+"\n\n"}},f.inlineLink={filter:function(e,t){return"inlined"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t){var u=t.getAttribute("href"),n=d(t.getAttribute("title"));return n&&(n=' "'+n+'"'),"["+e+"]("+u+n+")"}},f.referenceLink={filter:function(e,t){return"referenced"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t,u){var n,r,o=t.getAttribute("href"),i=d(t.getAttribute("title"));switch(i&&(i=' "'+i+'"'),u.linkReferenceStyle){case"collapsed":n="["+e+"][]",r="["+e+"]: "+o+i;break;case"shortcut":n="["+e+"]",r="["+e+"]: "+o+i;break;default:var s=this.references.length+1;n="["+e+"]["+s+"]",r="["+s+"]: "+o+i}return this.references.push(r),n},references:[],append:function(e){var t="";return this.references.length&&(t="\n\n"+this.references.join("\n")+"\n\n",this.references=[]),t}},f.emphasis={filter:["em","i"],replacement:function(e,t,u){return e.trim()?u.emDelimiter+e+u.emDelimiter:""}},f.strong={filter:["strong","b"],replacement:function(e,t,u){return e.trim()?u.strongDelimiter+e+u.strongDelimiter:""}},f.code={filter:function(e){var t=e.previousSibling||e.nextSibling,u="PRE"===e.parentNode.nodeName&&!t;return"CODE"===e.nodeName&&!u},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",u="`",n=e.match(/`+/gm)||[];-1!==n.indexOf(u);)u+="`";return u+t+e+t+u}},f.image={filter:"img",replacement:function(e,t){var u=d(t.getAttribute("alt")),n=t.getAttribute("src")||"",r=d(t.getAttribute("title"));return n?"+")":""}},p.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){return e.isBlank?this.blankRule:(t=h(this.array,e,this.options))||(t=h(this._keep,e,this.options))||(t=h(this._remove,e,this.options))?t:this.defaultRule;var t},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};var A="undefined"!=typeof window?window:{};var C,E,b=function(){var e=A.DOMParser,t=!1;try{(new e).parseFromString("","text/html")&&(t=!0)}catch(e){}return t}()?A.DOMParser:(C=function(){},function(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch(t){window.ActiveXObject&&(e=!0)}return e}()?C.prototype.parseFromString=function(e){var t=new window.ActiveXObject("htmlfile");return t.designMode="on",t.open(),t.write(e),t.close(),t}:C.prototype.parseFromString=function(e){var t=document.implementation.createHTMLDocument("");return t.open(),t.write(e),t.close(),t},C);function v(e,t){var u;"string"==typeof e?u=(E=E||new b).parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html").getElementById("turndown-root"):u=e.cloneNode(!0);return function(e){var t=e.element,u=e.isBlock,n=e.isVoid,r=e.isPre||function(e){return"PRE"===e.nodeName};if(t.firstChild&&!r(t)){for(var o=null,i=!1,s=null,a=F(s,t,r);a!==t;){if(3===a.nodeType||4===a.nodeType){var c=a.data.replace(/[ \r\n\t]+/g," ");if(o&&!/ $/.test(o.data)||i||" "!==c[0]||(c=c.substr(1)),!c){a=g(a);continue}a.data=c,o=a}else{if(1!==a.nodeType){a=g(a);continue}u(a)||"BR"===a.nodeName?(o&&(o.data=o.data.replace(/ $/,"")),o=null,i=!1):n(a)||r(a)?(o=null,i=!0):o&&(i=!1)}var l=F(s,a,r);s=a,a=l}o&&(o.data=o.data.replace(/ $/,""),o.data||g(o))}}({element:u,isBlock:i,isVoid:a,isPre:t.preformattedCode?y:null}),u}function y(e){return"PRE"===e.nodeName||"CODE"===e.nodeName}function B(e,t){return e.isBlock=i(e),e.isCode="CODE"===e.nodeName||e.parentNode.isCode,e.isBlank=function(e){return!a(e)&&!function(e){return l(e,c)}(e)&&/^\s*$/i.test(e.textContent)&&!function(e){return D(e,s)}(e)&&!function(e){return D(e,c)}(e)}(e),e.flankingWhitespace=function(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var u=(n=e.textContent,r=n.match(/^(([ \t\r\n]*)(\s*))[\s\S]*?((\s*?)([ \t\r\n]*))$/),{leading:r[1],leadingAscii:r[2],leadingNonAscii:r[3],trailing:r[4],trailingNonAscii:r[5],trailingAscii:r[6]});var n,r;u.leadingAscii&&w("left",e,t)&&(u.leading=u.leadingNonAscii);u.trailingAscii&&w("right",e,t)&&(u.trailing=u.trailingNonAscii);return{leading:u.leading,trailing:u.trailing}}(e,t),e}function w(e,t,u){var n,r,o;return"left"===e?(n=t.previousSibling,r=/ $/):(n=t.nextSibling,r=/^ /),n&&(3===n.nodeType?o=r.test(n.nodeValue):u.preformattedCode&&"CODE"===n.nodeName?o=!1:1!==n.nodeType||i(n)||(o=r.test(n.textContent))),o}var x=Array.prototype.reduce,k=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function _(e){if(!(this instanceof _))return new _(e);var t={rules:f,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(e,t){return t.isBlock?"\n\n":""},keepReplacement:function(e,t){return t.isBlock?"\n\n"+t.outerHTML+"\n\n":t.outerHTML},defaultReplacement:function(e,t){return t.isBlock?"\n\n"+e+"\n\n":e}};this.options=function(e){for(var t=1;t<arguments.length;t++){var u=arguments[t];for(var n in u)u.hasOwnProperty(n)&&(e[n]=u[n])}return e}({},t,e),this.rules=new p(this.options)}function S(e){var t=this;return x.call(e.childNodes,(function(e,u){var n="";return 3===(u=new B(u,t.options)).nodeType?n=u.isCode?u.nodeValue:t.escape(u.nodeValue):1===u.nodeType&&(n=O.call(t,u)),T(e,n)}),"")}function j(e){var t=this;return this.rules.forEach((function(u){"function"==typeof u.append&&(e=T(e,u.append(t.options)))})),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function O(e){var t=this.rules.forNode(e),u=S.call(this,e),n=e.flankingWhitespace;return(n.leading||n.trailing)&&(u=u.trim()),n.leading+t.replacement(u,e,this.options)+n.trailing}function T(e,t){var u=function(e){for(var t=e.length;t>0&&"\n"===e[t-1];)t--;return e.substring(0,t)}(e),n=t.replace(/^\n*/,""),r=Math.max(e.length-u.length,t.length-n.length);return u+"\n\n".substring(0,r)+n}_.prototype={turndown:function(e){if(!function(e){return null!=e&&("string"==typeof e||e.nodeType&&(1===e.nodeType||9===e.nodeType||11===e.nodeType))}(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(""===e)return"";var t=S.call(this,new v(e,this.options));return j.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else{if("function"!=typeof e)throw new TypeError("plugin must be a Function or an Array of Functions");e(this)}return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return k.reduce((function(e,t){return e.replace(t[0],t[1])}),e)}};var I=_,R=new n.marked.Lexer,P=new n.marked.Renderer,N=new n.marked.Lexer({tokenizer:new n.marked.Tokenizer}).tokenizer.rules.inline.link,U=P.text.bind(P),L=new I,M="",z={name:"highLight",level:"inline",start:function(e){var t;return null===(t=e.match(/`/))||void 0===t?void 0:t.index},tokenizer:function(e){var t=/^(`)([^`]|[^`][\s\S]*?[^`])\1(?!`)/.exec(e);if(t){var u=t[2],n=/[^ ]/.test(u),r=/^ /.test(u)&&/ $/.test(u);return n&&r&&(u=u.substring(1,u.length-1)),{type:"highLight",raw:t[0],inner:R.inlineTokens(u)}}},renderer:function(e){return"<code>".concat(this.parser.parseInline(e.inner),"</code>")}},$={name:"boldText",level:"inline",start:function(e){var t;return null===(t=e.match(/\*(?!\s)/))||void 0===t?void 0:t.index},tokenizer:function(e){var t;if(0===e.indexOf("*")&&!e.match(/^\*{2,}/)){var u=null===(t=e.match(/(?!^)(?!\\\*).\*/))||void 0===t?void 0:t.index;return u&&-1!==u?{type:"boldText",raw:e.slice(0,u+2),inner:R.inlineTokens(e.slice(1,u+1))}:void 0}},renderer:function(e){return"<b>".concat(this.parser.parseInline(e.inner),"</b>")}},q={name:"italicText",level:"inline",start:function(e){var t,u=null===(t=e.match(/_(?!\s)(?![A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_]))/))||void 0===t?void 0:t.index;if(M&&""!==M&&(M=""),u)return 0!==u&&(M=e.charAt(u-1)),u},tokenizer:function(e){var t;if(!e.match(/^_{2,}/)&&e.match(/^_/)&&e.match(/^_(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])_(?!(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A]))/)&&(!M||!M.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var u=null===(t=e.match(/(?!^)(?!\\_)(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])_(?!(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A]))/))||void 0===t?void 0:t.index;return u&&-1!==u?{type:"italicText",raw:e.slice(0,u+2),inner:R.inlineTokens(e.slice(1,u+1))}:void 0}},renderer:function(e){return"<i>".concat(this.parser.parseInline(e.inner),"</i>")}},H={name:"strikethrough",level:"inline",start:function(e){var t;return null===(t=e.match(/~(?!\s)/))||void 0===t?void 0:t.index},tokenizer:function(e){var t;if(0===e.indexOf("~")&&!e.match(/^~{2,}/)){var u=null===(t=e.match(/(?!^)(?!\\~).~/))||void 0===t?void 0:t.index;return u&&-1!==u?{type:"strikethrough",raw:e.slice(0,u+2),inner:R.inlineTokens(e.slice(1,u+1))}:void 0}},renderer:function(e){return"<s>".concat(this.parser.parseInline(e.inner),"</s>")}},J={name:"codeBlock",level:"inline",start:function(e){var t;return null===(t=e.match(/```/))||void 0===t?void 0:t.index},tokenizer:function(e){var t=/^(`{3})([^`]|[^`][\s\S]*?[^`])\1(?!`)/.exec(e);if(t){var u=t[2],n=/[^ ]/.test(u),r=/^ /.test(u)&&/ $/.test(u);return n&&r&&(u=u.substring(1,u.length-1)),{type:"codeBlock",raw:t[0],inner:R.inlineTokens(u)}}},renderer:function(e){return"<pre>".concat(this.parser.parseInline(e.inner),"</pre>")}};function G(e){var t=e||{},u=t.disableLinkFocus,r=t.enabled;P.link=function(e,t,r){var o=n.marked.Renderer.prototype.link.apply(this,arguments);return u?o.replace("<a","<a target='_blank' tabindex='-1'"):o.replace("<a","<a target='_blank'")},P.image=function(e,t,u){return U(t?".concat(e,' "').concat(t,'")'):".concat(e,")"))},n.marked.setOptions({renderer:P}),r?(n.marked.use({extensions:[$,q,H,z,J]}),R.tokenizer.rules.inline.link=N):(R.tokenizer.rules.inline.link={exec:function(){}},n.marked.use({extensions:!1})),R.tokenizer.rules.inline._backpedal=/(?:[^?!.,:;*~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,R.tokenizer.rules.inline.emStrong.lDelim={exec:function(){}},R.tokenizer.rules.inline.emStrong.rDelimAst={exec:function(){}},R.tokenizer.rules.inline.emStrong.rDelimUnd={exec:function(){}},["heading","autolink","blockSkip","br","code","del","nolink","overlapSkip","punctuation","reflink","reflinkSearch","tag"].map((function(e){R.tokenizer.rules.inline[e]={exec:function(){}}})),["blockquote","bullet","code","def","fences","heading","hr","html","item","lheading","list","newline","nptable","paragraph","table","text"].map((function(e){R.tokenizer.rules.block[e]={exec:function(){}}}))}function Y(e){var t=(e||"").text;return t&&"string"==typeof t&&""!==t?n.marked.parseInline(t):void 0}function V(e){var t=(e||[]).extensions;t&&t.length&&t.map((function(e){n.marked.use({extensions:[e]})}))}function Z(e){e&&e.length&&e.map((function(e){var t=e.key,u=e.value;L.addRule(t,u)}))}function X(e){if(e&&"string"==typeof e&&""!==e)return L.turndown(e)}t.default={configureMarkdown:G,parseMarkdown:Y,extendMarkdown:V,configureHtml2Markdown:Z,html2markdown:X}},"./includes/messengerHelper.html":function(e,t){e.exports='<div class="genesys-app">\n <style>\n /** Initial iframe styles*/\n .genesys-mxg-frame {\n height: 0px;\n max-height: 712px;\n width: 0px;\n top: unset;\n left: unset;\n right: sideSpace;\n bottom: bottomSpace;\n z-index: 99999999;\n border: none;\n position: fixed;\n }\n\n .genesys-mxg-expand {\n max-height: 92%;\n }\n\n .genesys-mxg-frame-transition {\n transition: all 300ms;\n }\n\n .genesys-mxg-frame-fullscreen {\n width: 100% !important;\n height: 100% !important;\n max-height: 100%;\n max-width: 100%;\n }\n\n /* Smartphones - potrait */\n @media screen and (max-width: 600px),\n screen and (max-device-width: 600px),\n screen and (max-device-width: 600px) and (orientation: landscape),\n screen and (max-device-width: 768px) and (orientation: landscape),\n screen and (max-device-width: 823px) and (orientation: landscape),\n screen and (max-device-width: 1200px) and (orientation: landscape) {\n .genesys-mxg-responsive {\n width: 0px;\n height: 0px;\n max-height: 100%;\n max-width: 100%;\n }\n \n .genesys-mxg-conversation {\n height: 100% !important;\n width: 100% !important;\n }\n\n .genesys-mxg-homescreen {\n height: 100% !important;\n width: 100% !important;\n }\n }\n\n /* Smartphones - landscape */\n @media screen and (max-device-width: 600px) and (orientation: landscape),\n screen and (max-device-width: 768px) and (orientation: landscape),\n screen and (max-device-width: 823px) and (orientation: landscape),\n screen and (max-device-width: 1200px) and (orientation: landscape) {\n .genesys-mxg-engage {\n width: 380px;\n }\n }\n\n /*WEBMESS-938:From zoom level 150%, for home screen to maintain the visible height ( applicable for windows/mac chrome browser, edge)*/\n\n @media screen and (min-device-width: 1200px) and (max-device-width: 1920px) and (-webkit-min-device-pixel-ratio: 1.5) and (-webkit-max-device-pixel-ratio: 1.75){\n .mxg-desktop-windows-chrome {\n max-height: 60% !important;\n }\n }\n\n @media screen and (min-device-width: 1200px) and (max-device-width: 1920px) {\n\n /* to avoid overlapping of launcher and messenger in the specified ranges (desktops/laptops) from 150%\n desktops */\n @media all and (-webkit-min-device-pixel-ratio: 1.875) and (-webkit-max-device-pixel-ratio: 2.5){\n\n .mxg-desktop-windows-chrome {\n max-height: 75% !important;\n }\n }\n /*Safari CSS*/\n\n @media all and (-webkit-device-pixel-ratio: 2){\n .mxg-desktop-mac-safari {\n max-height: 95% !important;\n }\n }\n\n @media all and (-webkit-device-pixel-ratio: 3) {\n .mxg-desktop-windows-chrome {\n max-height: 80% !important;\n }\n }\n\n @media all and (-webkit-device-pixel-ratio: 3.125) {\n .mxg-desktop-windows-chrome {\n max-height: 85% !important;\n }\n }\n\n @media all and (-webkit-device-pixel-ratio: 3.5) {\n .mxg-desktop-windows-chrome {\n max-height: 70% !important;\n }\n }\n\n @media all and (-webkit-min-device-pixel-ratio: 3) and (-webkit-max-device-pixel-ratio: 5){\n .mxg-desktop-mac-chrome {\n max-height: 70% !important;\n }\n }\n }\n\n </style>\n <iframe\n allowfullscreen\n class="genesys-mxg-frame genesys-mxg-responsive"\n id="genesys-mxg-frame"\n title="Genesys Messenger"\n name="Genesys Messenger"\n width="100%"\n src="{url}"\n ></iframe>\n</div>\n'},"./includes/plugin.support-center-helper.js":function(e,t){Genesys("registerPlugin","SupportCenterHelper",(function(e){e.registerCommand("configure",(function(t){var u=t.data||{},n=(u.deploymentConfig||{}).supportCenter.targetElementSelector||"#genesys-support-center";function r(){var t,n;Genesys("loadPlugin","SupportCenter",u),t=document.createElement("link"),n=e.data("ServiceDiscovery.uris.staticAssets"),t.href="".concat(n,"/support-center/support-center-plugins/main.css"),t.rel="stylesheet",document.head.appendChild(t)}function o(){document.querySelector(n)&&r()}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",o):o(),t.resolve()})),e.ready()}))},"./includes/util.js":function(e,t,u){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}u.d(t,"d",(function(){return a})),u.d(t,"f",(function(){return c})),u.d(t,"a",(function(){return l})),u.d(t,"h",(function(){return D})),u.d(t,"i",(function(){return f})),u.d(t,"b",(function(){return d})),u.d(t,"e",(function(){return p})),u.d(t,"c",(function(){return h})),u.d(t,"j",(function(){return m})),u.d(t,"g",(function(){return g}));var r=/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,o="LocalStorage",i=[],s={};function a(e){return null==e}function c(e){return"string"==typeof e&&r.test(e)}function l(e){return Object.assign({},e)}function D(e){var t={};for(var u in e)if(u&&"object"===n(e["".concat(u)])&&null!==e["".concat(u)])t["".concat(u)]=D(e["".concat(u)]);else{if(!u||"string"!=typeof e["".concat(u)])return;t["".concat(u)]=e["".concat(u)]}return t}function f(e,t){return new Promise((function(u){i=t,u(s=function e(t,u){return Object.keys(t).reduce((function(r,o){var s=!(-1===i.indexOf(o));return u&&(s=!(-1===i.indexOf("".concat(u,".").concat(o)))),!s&&Array.isArray(t[o])?r[o]=t[o]:u&&!s?"object"!==n(t[o])?r[o]=t[o]:r[o]=e(t[o],"".concat(u,".").concat(o)):s||"object"===n(t[o])||-1!==i.indexOf(o)?s||"object"!==n(t[o])||(r[o]=e(t[o],o)):r[o]=t[o],r}),{})}(e))}))}function d(){return s}function p(){return new Promise((function(e){e}))}function h(){var e=localStorage.getItem("genesysjs");if(e){var t={};try{t=JSON.parse(e)}catch(e){console.warn("Error parsing JSON",e)}t.cookies&&(o="Cookies")}return o}function m(e){if(function(){if(!window.DOMParser)return!1;var e=new DOMParser;try{e.parseFromString("x","text/html")}catch(e){return!1}return!0}())return(new DOMParser).parseFromString(e,"text/html").body.firstChild;var t=document.createElement("div");return t.innerHTML=e,t}function g(){var e={},t=!1,u=0;"boolean"==typeof(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],u++);for(var n=function(u){for(var n in u)Object.prototype.hasOwnProperty.call(u,n)&&(t&&"[object Object]"===Object.prototype.toString.call(u["".concat(n)])?"[object Object]"===Object.prototype.toString.call(e["".concat(n)])?e["".concat(n)]=g(!0,e["".concat(n)],u["".concat(n)]):e["".concat(n)]=g(e["".concat(n)],u["".concat(n)]):e[n]=u[n])};u<arguments.length;u++)n(u<0||arguments.length<=u?void 0:arguments[u]);return e}},"./node_modules/@genesys/service-discovery-web-internal/index.umd.js":function(e,t,u){(function(e){(function(t){"use strict";var u=function(){return(u=Object.assign||function(e){for(var t,u=1,n=arguments.length;u<n;u++)for(var r in t=arguments[u])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function n(e,t,u){if(u||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},o=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e},i=Object.prototype.hasOwnProperty;function s(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function a(e){try{return encodeURIComponent(e)}catch(e){return null}}var c={stringify:function(e,t){t=t||"";var u,n,r=[];for(n in"string"!=typeof t&&(t="?"),e)if(i.call(e,n)){if((u=e[n])||null!=u&&!isNaN(u)||(u=""),n=a(n),u=a(u),null===n||null===u)continue;r.push(n+"="+u)}return r.length?t+r.join("&"):""},parse:function(e){for(var t,u=/([^=?#&]+)=?([^&]*)/g,n={};t=u.exec(e);){var r=s(t[1]),o=s(t[2]);null===r||null===o||r in n||(n[r]=o)}return n}},l=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,D=/[\n\r\t]/g,f=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,d=/:\d+$/,p=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,h=/^[a-zA-Z]:/;function m(e){return(e||"").toString().replace(l,"")}var g=[["#","hash"],["?","query"],function(e,t){return C(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],F={hash:1,query:1};function A(e){var t,u=("undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:{}).location||{},n={},o=typeof(e=e||u);if("blob:"===e.protocol)n=new b(unescape(e.pathname),{});else if("string"===o)for(t in n=new b(e,{}),F)delete n[t];else if("object"===o){for(t in e)t in F||(n[t]=e[t]);void 0===n.slashes&&(n.slashes=f.test(e.href))}return n}function C(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function E(e,t){e=(e=m(e)).replace(D,""),t=t||{};var u,n=p.exec(e),r=n[1]?n[1].toLowerCase():"",o=!!n[2],i=!!n[3],s=0;return o?i?(u=n[2]+n[3]+n[4],s=n[2].length+n[3].length):(u=n[2]+n[4],s=n[2].length):i?(u=n[3]+n[4],s=n[3].length):u=n[4],"file:"===r?s>=2&&(u=u.slice(2)):C(r)?u=n[4]:r?o&&(u=u.slice(2)):s>=2&&C(t.protocol)&&(u=n[4]),{protocol:r,slashes:o||C(r),slashesCount:s,rest:u}}function b(e,t,u){if(e=(e=m(e)).replace(D,""),!(this instanceof b))return new b(e,t,u);var n,r,i,s,a,l,f=g.slice(),d=typeof t,p=this,F=0;for("object"!==d&&"string"!==d&&(u=t,t=null),u&&"function"!=typeof u&&(u=c.parse),n=!(r=E(e||"",t=A(t))).protocol&&!r.slashes,p.slashes=r.slashes||n&&t.slashes,p.protocol=r.protocol||t.protocol||"",e=r.rest,("file:"===r.protocol&&(2!==r.slashesCount||h.test(e))||!r.slashes&&(r.protocol||r.slashesCount<2||!C(p.protocol)))&&(f[3]=[/(.*)/,"pathname"]);F<f.length;F++)"function"!=typeof(s=f[F])?(i=s[0],l=s[1],i!=i?p[l]=e:"string"==typeof i?~(a="@"===i?e.lastIndexOf(i):e.indexOf(i))&&("number"==typeof s[2]?(p[l]=e.slice(0,a),e=e.slice(a+s[2])):(p[l]=e.slice(a),e=e.slice(0,a))):(a=i.exec(e))&&(p[l]=a[1],e=e.slice(0,a.index)),p[l]=p[l]||n&&s[3]&&t[l]||"",s[4]&&(p[l]=p[l].toLowerCase())):e=s(e,p);u&&(p.query=u(p.query)),n&&t.slashes&&"/"!==p.pathname.charAt(0)&&(""!==p.pathname||""!==t.pathname)&&(p.pathname=function(e,t){if(""===e)return t;for(var u=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=u.length,r=u[n-1],o=!1,i=0;n--;)"."===u[n]?u.splice(n,1):".."===u[n]?(u.splice(n,1),i++):i&&(0===n&&(o=!0),u.splice(n,1),i--);return o&&u.unshift(""),"."!==r&&".."!==r||u.push(""),u.join("/")}(p.pathname,t.pathname)),"/"!==p.pathname.charAt(0)&&C(p.protocol)&&(p.pathname="/"+p.pathname),o(p.port,p.protocol)||(p.host=p.hostname,p.port=""),p.username=p.password="",p.auth&&(~(a=p.auth.indexOf(":"))?(p.username=p.auth.slice(0,a),p.username=encodeURIComponent(decodeURIComponent(p.username)),p.password=p.auth.slice(a+1),p.password=encodeURIComponent(decodeURIComponent(p.password))):p.username=encodeURIComponent(decodeURIComponent(p.auth)),p.auth=p.password?p.username+":"+p.password:p.username),p.origin="file:"!==p.protocol&&C(p.protocol)&&p.host?p.protocol+"//"+p.host:"null",p.href=p.toString()}b.prototype={set:function(e,t,u){var n=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(u||c.parse)(t)),n[e]=t;break;case"port":n[e]=t,o(t,n.protocol)?t&&(n.host=n.hostname+":"+t):(n.host=n.hostname,n[e]="");break;case"hostname":n[e]=t,n.port&&(t+=":"+n.port),n.host=t;break;case"host":n[e]=t,d.test(t)?(t=t.split(":"),n.port=t.pop(),n.hostname=t.join(":")):(n.hostname=t,n.port="");break;case"protocol":n.protocol=t.toLowerCase(),n.slashes=!u;break;case"pathname":case"hash":if(t){var r="pathname"===e?"/":"#";n[e]=t.charAt(0)!==r?r+t:t}else n[e]=t;break;case"username":case"password":n[e]=encodeURIComponent(t);break;case"auth":var i=t.indexOf(":");~i?(n.username=t.slice(0,i),n.username=encodeURIComponent(decodeURIComponent(n.username)),n.password=t.slice(i+1),n.password=encodeURIComponent(decodeURIComponent(n.password))):n.username=encodeURIComponent(decodeURIComponent(t))}for(var s=0;s<g.length;s++){var a=g[s];a[4]&&(n[a[1]]=n[a[1]].toLowerCase())}return n.auth=n.password?n.username+":"+n.password:n.username,n.origin="file:"!==n.protocol&&C(n.protocol)&&n.host?n.protocol+"//"+n.host:"null",n.href=n.toString(),n},toString:function(e){e&&"function"==typeof e||(e=c.stringify);var t,u=this,n=u.host,r=u.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var o=r+(u.protocol&&u.slashes||C(u.protocol)?"//":"");return u.username?(o+=u.username,u.password&&(o+=":"+u.password),o+="@"):u.password?(o+=":"+u.password,o+="@"):"file:"!==u.protocol&&C(u.protocol)&&!n&&"/"!==u.pathname&&(o+="@"),(":"===n[n.length-1]||d.test(u.hostname)&&!u.port)&&(n+=":"),o+=n+u.pathname,(t="object"==typeof u.query?e(u.query):u.query)&&(o+="?"!==t.charAt(0)?"?"+t:t),u.hash&&(o+=u.hash),o}},b.extractProtocol=E,b.location=A,b.trimLeft=m,b.qs=c;var v=b;function y(e,t){if(!e)throw new Error(t)}function B(e){y("string"==typeof e,"url is not a string");var t=v(e,{});return y(t.protocol&&t.hostname,"invalid url: '".concat(e,"', unable to parse hostname")),t}function w(e){y(!!e&&"object"==typeof e,"Provided filters must be an object");var t=e;void 0!==t.env&&(y(t.env instanceof Array,"filters.env must be an array"),y(t.env.every((function(e){return k.indexOf(e)>=0})),"'".concat(t.env,"' - filters.env must be an array containing only: ").concat(k.join(",")))),void 0!==t.status&&(y(t.status instanceof Array,"filters.status must be an array"),y(t.status.every((function(e){return _.indexOf(e)>=0})),"'".concat(t.status,"' - filters.status must be an array containing only: ").concat(_.join(","))))}var x=[{name:"dev",env:"dev",region:"us-east-1",status:"stable",publicDomainName:"inindca.com",publicDomainAliases:[]},{name:"fedramp-use2-core",env:"fedramp",region:"us-east-2",status:"stable",publicDomainName:"use2.us-gov-pure.cloud",publicDomainAliases:[]},{name:"prod",env:"prod",region:"us-east-1",status:"stable",publicDomainName:"mypurecloud.com",publicDomainAliases:[]},{name:"prod-apne1",env:"prod",region:"ap-northeast-1",status:"stable",publicDomainName:"mypurecloud.jp",publicDomainAliases:[]},{name:"prod-apne2",env:"prod",region:"ap-northeast-2",status:"stable",publicDomainName:"apne2.pure.cloud",publicDomainAliases:[]},{name:"prod-aps1",env:"prod",region:"ap-south-1",status:"stable",publicDomainName:"aps1.pure.cloud",publicDomainAliases:[]},{name:"prod-apse2",env:"prod",region:"ap-southeast-2",status:"stable",publicDomainName:"mypurecloud.com.au",publicDomainAliases:[]},{name:"prod-cac1",env:"prod",region:"ca-central-1",status:"stable",publicDomainName:"cac1.pure.cloud",publicDomainAliases:[]},{name:"prod-euc1",env:"prod",region:"eu-central-1",status:"stable",publicDomainName:"mypurecloud.de",publicDomainAliases:[]},{name:"prod-euw1",env:"prod",region:"eu-west-1",status:"stable",publicDomainName:"mypurecloud.ie",publicDomainAliases:[]},{name:"prod-euw2",env:"prod",region:"eu-west-2",status:"stable",publicDomainName:"euw2.pure.cloud",publicDomainAliases:[]},{name:"prod-sae1",env:"prod",region:"sa-east-1",status:"stable",publicDomainName:"sae1.pure.cloud",publicDomainAliases:[]},{name:"prod-usw2",env:"prod",region:"us-west-2",status:"stable",publicDomainName:"usw2.pure.cloud",publicDomainAliases:[]},{name:"test",env:"test",region:"us-east-1",status:"stable",publicDomainName:"inintca.com",publicDomainAliases:[]}],k=["dev","test","prod","fedramp"],_=["alpha","beta","stable","archived"],S=["localhost","127.0.0.1"],j={env:["prod","fedramp"],status:["stable"]},O={},T=function(e){return function(t){return e===t||(u=e,n=".".concat(t),u.slice(u.length-n.length)===n);var u,n}},I=function(e){void 0===e&&(e=j),w(e);var t=e.env,u=e.status;return x.filter((function(e){return void 0===t||t.indexOf(e.env)>=0})).filter((function(e){return void 0===u||u.indexOf(e.status)>=0}))},R=function(e,t){var u=B(e).hostname;return I(t).find((function(e){return n([e.publicDomainName],e.publicDomainAliases,!0).filter((function(e){return!!e})).some(T(u))}))},P=function(e,t){void 0===e&&(e=window.location.href),void 0===t&&(t=O),w(t);var r=B(e).hostname,o=R(e,t);if(o)return u(u({},o),{local:!1,currentDomainName:n([o.publicDomainName],o.publicDomainAliases,!0).filter((function(e){return!!e})).find(T(r))})},N=function(e){return void 0===e&&(e=S),function(t,n){void 0===t&&(t=window.location.href),void 0===n&&(n=O),w(n),function(e,t){void 0===t&&(t="value"),y(e instanceof Array,"".concat(t," must be an array of strings"));for(var u=0,n=e;u<n.length;u++)y("string"==typeof n[u],"Each item in ".concat(t," must be a string"))}(e,"localHostnames");var r=B(t),o=r.hostname,i=r.pathname;if(e.indexOf(o)>=0){var s=i.split("/")[1],a=I(n).find((function(e){return e.name===s}));if(!a)return;return u(u({},a),{local:!0,currentDomainName:a.publicDomainName})}}};t.ENVS=k,t.STATUSES=_,t.getEnvironments=I,t.isKnown=function(e,t){return!!R(e,t)},t.parse=R,t.parseDeployedRuntime=P,t.parseRuntime=function(e,t){return void 0===e&&(e=window.location.href),void 0===t&&(t=O),N()(e,t)||P(e,t)},t.parseRuntimeFromLocalPath=N,Object.defineProperty(t,"__esModule",{value:!0})})(t)}).call(this,u("./node_modules/webpack/buildin/global.js"))},"./node_modules/axios/index.js":function(e,t,u){e.exports=u("./node_modules/axios/lib/axios.js")},"./node_modules/axios/lib/adapters/xhr.js":function(e,t,u){"use strict";var n=u("./node_modules/axios/lib/utils.js"),r=u("./node_modules/axios/lib/core/settle.js"),o=u("./node_modules/axios/lib/helpers/cookies.js"),i=u("./node_modules/axios/lib/helpers/buildURL.js"),s=u("./node_modules/axios/lib/core/buildFullPath.js"),a=u("./node_modules/axios/lib/helpers/parseHeaders.js"),c=u("./node_modules/axios/lib/helpers/isURLSameOrigin.js"),l=u("./node_modules/axios/lib/defaults/transitional.js"),D=u("./node_modules/axios/lib/core/AxiosError.js"),f=u("./node_modules/axios/lib/cancel/CanceledError.js"),d=u("./node_modules/axios/lib/helpers/parseProtocol.js");e.exports=function(e){return new Promise((function(t,u){var p,h=e.data,m=e.headers,g=e.responseType;function F(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}n.isFormData(h)&&n.isStandardBrowserEnv()&&delete m["Content-Type"];var A=new XMLHttpRequest;if(e.auth){var C=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(C+":"+E)}var b=s(e.baseURL,e.url);function v(){if(A){var n="getAllResponseHeaders"in A?a(A.getAllResponseHeaders()):null,o={data:g&&"text"!==g&&"json"!==g?A.response:A.responseText,status:A.status,statusText:A.statusText,headers:n,config:e,request:A};r((function(e){t(e),F()}),(function(e){u(e),F()}),o),A=null}}if(A.open(e.method.toUpperCase(),i(b,e.params,e.paramsSerializer),!0),A.timeout=e.timeout,"onloadend"in A?A.onloadend=v:A.onreadystatechange=function(){A&&4===A.readyState&&(0!==A.status||A.responseURL&&0===A.responseURL.indexOf("file:"))&&setTimeout(v)},A.onabort=function(){A&&(u(new D("Request aborted",D.ECONNABORTED,e,A)),A=null)},A.onerror=function(){u(new D("Network Error",D.ERR_NETWORK,e,A,A)),A=null},A.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),u(new D(t,n.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,e,A)),A=null},n.isStandardBrowserEnv()){var y=(e.withCredentials||c(b))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;y&&(m[e.xsrfHeaderName]=y)}"setRequestHeader"in A&&n.forEach(m,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete m[t]:A.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(A.withCredentials=!!e.withCredentials),g&&"json"!==g&&(A.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&A.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&A.upload&&A.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){A&&(u(!e||e&&e.type?new f:e),A.abort(),A=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),h||(h=null);var B=d(b);B&&-1===["http","https","file"].indexOf(B)?u(new D("Unsupported protocol "+B+":",D.ERR_BAD_REQUEST,e)):A.send(h)}))}},"./node_modules/axios/lib/axios.js":function(e,t,u){"use strict";var n=u("./node_modules/axios/lib/utils.js"),r=u("./node_modules/axios/lib/helpers/bind.js"),o=u("./node_modules/axios/lib/core/Axios.js"),i=u("./node_modules/axios/lib/core/mergeConfig.js");var s=function e(t){var u=new o(t),s=r(o.prototype.request,u);return n.extend(s,o.prototype,u),n.extend(s,u),s.create=function(u){return e(i(t,u))},s}(u("./node_modules/axios/lib/defaults/index.js"));s.Axios=o,s.CanceledError=u("./node_modules/axios/lib/cancel/CanceledError.js"),s.CancelToken=u("./node_modules/axios/lib/cancel/CancelToken.js"),s.isCancel=u("./node_modules/axios/lib/cancel/isCancel.js"),s.VERSION=u("./node_modules/axios/lib/env/data.js").version,s.toFormData=u("./node_modules/axios/lib/helpers/toFormData.js"),s.AxiosError=u("./node_modules/axios/lib/core/AxiosError.js"),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=u("./node_modules/axios/lib/helpers/spread.js"),s.isAxiosError=u("./node_modules/axios/lib/helpers/isAxiosError.js"),e.exports=s,e.exports.default=s},"./node_modules/axios/lib/cancel/CancelToken.js":function(e,t,u){"use strict";var n=u("./node_modules/axios/lib/cancel/CanceledError.js");function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var u=this;this.promise.then((function(e){if(u._listeners){var t,n=u._listeners.length;for(t=0;t<n;t++)u._listeners[t](e);u._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){u.subscribe(e),t=e})).then(e);return n.cancel=function(){u.unsubscribe(t)},n},e((function(e){u.reason||(u.reason=new n(e),t(u.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},r.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},r.source=function(){var e;return{token:new r((function(t){e=t})),cancel:e}},e.exports=r},"./node_modules/axios/lib/cancel/CanceledError.js":function(e,t,u){"use strict";var n=u("./node_modules/axios/lib/core/AxiosError.js");function r(e){n.call(this,null==e?"canceled":e,n.ERR_CANCELED),this.name="CanceledError"}u("./node_modules/axios/lib/utils.js").inherits(r,n,{__CANCEL__:!0}),e.exports=r},"./node_modules/axios/lib/cancel/isCancel.js":function(e,t,u){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"./node_modules/axios/lib/core/Axios.js":function(e,t,u){"use strict";var n=u("./node_modules/axios/lib/utils.js"),r=u("./node_modules/axios/lib/helpers/buildURL.js"),o=u("./node_modules/axios/lib/core/InterceptorManager.js"),i=u("./node_modules/axios/lib/core/dispatchRequest.js"),s=u("./node_modules/axios/lib/core/mergeConfig.js"),a=u("./node_modules/axios/lib/core/buildFullPath.js"),c=u("./node_modules/axios/lib/helpers/validator.js"),l=c.validators;function D(e){this.defaults=e,this.interceptors={request:new o,response:new o}}D.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var u=t.transitional;void 0!==u&&c.assertOptions(u,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var o,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!r){var D=[i,void 0];for(Array.prototype.unshift.apply(D,n),D=D.concat(a),o=Promise.resolve(t);D.length;)o=o.then(D.shift(),D.shift());return o}for(var f=t;n.length;){var d=n.shift(),p=n.shift();try{f=d(f)}catch(e){p(e);break}}try{o=i(f)}catch(e){return Promise.reject(e)}for(;a.length;)o=o.then(a.shift(),a.shift());return o},D.prototype.getUri=function(e){e=s(this.defaults,e);var t=a(e.baseURL,e.url);return r(t,e.params,e.paramsSerializer)},n.forEach(["delete","get","head","options"],(function(e){D.prototype[e]=function(t,u){return this.request(s(u||{},{method:e,url:t,data:(u||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){function t(t){return function(u,n,r){return this.request(s(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:u,data:n}))}}D.prototype[e]=t(),D.prototype[e+"Form"]=t(!0)})),e.exports=D},"./node_modules/axios/lib/core/AxiosError.js":function(e,t,u){"use strict";var n=u("./node_modules/axios/lib/utils.js");function r(e,t,u,n,r){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),u&&(this.config=u),n&&(this.request=n),r&&(this.response=r)}n.inherits(r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=r.prototype,i={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){i[e]={value:e}})),Object.defineProperties(r,i),Object.defineProperty(o,"isAxiosError",{value:!0}),r.from=function(e,t,u,i,s,a){var c=Object.create(o);return n.toFlatObject(e,c,(function(e){return e!==Error.prototype})),r.call(c,e.message,t,u,i,s),c.name=e.name,a&&Object.assign(c,a),c},e.exports=r},"./node_modules/axios/lib/core/InterceptorManager.js":function(e,t,u){"use strict";var n=u("./node_modules/axios/lib/utils.js");function r(){this.handlers=[]}r.prototype.use=function(e,t,u){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!u&&u.synchronous,runWhen:u?u.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},"./node_modules/axios/lib/core/buildFullPath.js":function(e,t,u){"use strict";var n=u("./node_modules/axios/lib/helpers/isAbsoluteURL.js"),r=u("./node_modules/axios/lib/helpers/combineURLs.js");e.exports=function(e,t){return e&&!n(t)?r(e,t):t}},"./node_modules/axios/lib/core/dispatchRequest.js":function(e,t,u){"use strict";var n=u("./node_modules/axios/lib/utils.js"),r=u("./node_modules/axios/lib/core/transformData.js"),o=u("./node_modules/axios/lib/cancel/isCancel.js"),i=u("./node_modules/axios/lib/defaults/index.js"),s=u("./node_modules/axios/lib/cancel/CanceledError.js");function a(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return a(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||i.adapter)(e).then((function(t){return a(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(a(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},"./node_modules/axios/lib/core/mergeConfig.js":function(e,t,u){"use strict";var n=u("./node_modules/axios/lib/utils.js");e.exports=function(e,t){t=t||{};var u={};function r(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function o(u){return n.isUndefined(t[u])?n.isUndefined(e[u])?void 0:r(void 0,e[u]):r(e[u],t[u])}function i(e){if(!n.isUndefined(t[e]))return r(void 0,t[e])}function s(u){return n.isUndefined(t[u])?n.isUndefined(e[u])?void 0:r(void 0,e[u]):r(void 0,t[u])}function a(u){return u in t?r(e[u],t[u]):u in e?r(void 0,e[u]):void 0}var c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,r=t(e);n.isUndefined(r)&&t!==a||(u[e]=r)})),u}},"./node_modules/axios/lib/core/settle.js":function(e,t,u){"use strict";var n=u("./node_modules/axios/lib/core/AxiosError.js");e.exports=function(e,t,u){var r=u.config.validateStatus;u.status&&r&&!r(u.status)?t(new n("Request failed with status code "+u.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(u.status/100)-4],u.config,u.request,u)):e(u)}},"./node_modules/axios/lib/core/transformData.js":function(e,t,u){"use strict";var n=u("./node_modules/axios/lib/utils.js"),r=u("./node_modules/axios/lib/defaults/index.js");e.exports=function(e,t,u){var o=this||r;return n.forEach(u,(function(u){e=u.call(o,e,t)})),e}},"./node_modules/axios/lib/defaults/index.js":function(e,t,u){"use strict";(function(t){var n=u("./node_modules/axios/lib/utils.js"),r=u("./node_modules/axios/lib/helpers/normalizeHeaderName.js"),o=u("./node_modules/axios/lib/core/AxiosError.js"),i=u("./node_modules/axios/lib/defaults/transitional.js"),s=u("./node_modules/axios/lib/helpers/toFormData.js"),a={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,D={transitional:i,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(l=u("./node_modules/axios/lib/adapters/xhr.js")),l),transformRequest:[function(e,t){if(r(t,"Accept"),r(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e))return e;if(n.isArrayBufferView(e))return e.buffer;if(n.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var u,o=n.isObject(e),i=t&&t["Content-Type"];if((u=n.isFileList(e))||o&&"multipart/form-data"===i){var a=this.env&&this.env.FormData;return s(u?{"files[]":e}:e,a&&new a)}return o||"application/json"===i?(c(t,"application/json"),function(e,t,u){if(n.isString(e))try{return(t||JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(u||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||D.transitional,u=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!u&&"json"===this.responseType;if(i||r&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw o.from(e,o.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:u("./node_modules/axios/lib/helpers/null.js")},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){D.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){D.headers[e]=n.merge(a)})),e.exports=D}).call(this,u("./node_modules/process/browser.js"))},"./node_modules/axios/lib/defaults/transitional.js":function(e,t,u){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},"./node_modules/axios/lib/env/data.js":function(e,t){e.exports={version:"0.27.2"}},"./node_modules/axios/lib/helpers/bind.js":function(e,t,u){"use strict";e.exports=function(e,t){return function(){for(var u=new Array(arguments.length),n=0;n<u.length;n++)u[n]=arguments[n];return e.apply(t,u)}}},"./node_modules/axios/lib/helpers/buildURL.js":function(e,t,u){"use strict";var n=u("./node_modules/axios/lib/utils.js");function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,u){if(!t)return e;var o;if(u)o=u(t);else if(n.isURLSearchParams(t))o=t.toString();else{var i=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),i.push(r(t)+"="+r(e))})))})),o=i.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},"./node_modules/axios/lib/helpers/combineURLs.js":function(e,t,u){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},"./node_modules/axios/lib/helpers/cookies.js":function(e,t,u){"use strict";var n=u("./node_modules/axios/lib/utils.js");e.exports=n.isStandardBrowserEnv()?{write:function(e,t,u,r,o,i){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(u)&&s.push("expires="+new Date(u).toGMTString()),n.isString(r)&&s.push("path="+r),n.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},"./node_modules/axios/lib/helpers/isAbsoluteURL.js":function(e,t,u){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},"./node_modules/axios/lib/helpers/isAxiosError.js":function(e,t,u){"use strict";var n=u("./node_modules/axios/lib/utils.js");e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},"./node_modules/axios/lib/helpers/isURLSameOrigin.js":function(e,t,u){"use strict";var n=u("./node_modules/axios/lib/utils.js");e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),u=document.createElement("a");function r(e){var n=e;return t&&(u.setAttribute("href",n),n=u.href),u.setAttribute("href",n),{href:u.href,protocol:u.protocol?u.protocol.replace(/:$/,""):"",host:u.host,search:u.search?u.search.replace(/^\?/,""):"",hash:u.hash?u.hash.replace(/^#/,""):"",hostname:u.hostname,port:u.port,pathname:"/"===u.pathname.charAt(0)?u.pathname:"/"+u.pathname}}return e=r(window.location.href),function(t){var u=n.isString(t)?r(t):t;return u.protocol===e.protocol&&u.host===e.host}}():function(){return!0}},"./node_modules/axios/lib/helpers/normalizeHeaderName.js":function(e,t,u){"use strict";var n=u("./node_modules/axios/lib/utils.js");e.exports=function(e,t){n.forEach(e,(function(u,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=u,delete e[n])}))}},"./node_modules/axios/lib/helpers/null.js":function(e,t){e.exports=null},"./node_modules/axios/lib/helpers/parseHeaders.js":function(e,t,u){"use strict";var n=u("./node_modules/axios/lib/utils.js"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,u,o,i={};return e?(n.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),u=n.trim(e.substr(o+1)),t){if(i[t]&&r.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([u]):i[t]?i[t]+", "+u:u}})),i):i}},"./node_modules/axios/lib/helpers/parseProtocol.js":function(e,t,u){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},"./node_modules/axios/lib/helpers/spread.js":function(e,t,u){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"./node_modules/axios/lib/helpers/toFormData.js":function(e,t,u){"use strict";(function(t){var n=u("./node_modules/axios/lib/utils.js");e.exports=function(e,u){u=u||new FormData;var r=[];function o(e){return null===e?"":n.isDate(e)?e.toISOString():n.isArrayBuffer(e)||n.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):t.from(e):e}return function e(t,i){if(n.isPlainObject(t)||n.isArray(t)){if(-1!==r.indexOf(t))throw Error("Circular reference detected in "+i);r.push(t),n.forEach(t,(function(t,r){if(!n.isUndefined(t)){var s,a=i?i+"."+r:r;if(t&&!i&&"object"==typeof t)if(n.endsWith(r,"{}"))t=JSON.stringify(t);else if(n.endsWith(r,"[]")&&(s=n.toArray(t)))return void s.forEach((function(e){!n.isUndefined(e)&&u.append(a,o(e))}));e(t,a)}})),r.pop()}else u.append(i,o(t))}(e),u}}).call(this,u("./node_modules/buffer/index.js").Buffer)},"./node_modules/axios/lib/helpers/validator.js":function(e,t,u){"use strict";var n=u("./node_modules/axios/lib/env/data.js").version,r=u("./node_modules/axios/lib/core/AxiosError.js"),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(u){return typeof u===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,u){function o(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(u?". "+u:"")}return function(u,n,s){if(!1===e)throw new r(o(n," has been removed"+(t?" in "+t:"")),r.ERR_DEPRECATED);return t&&!i[n]&&(i[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(u,n,s)}},e.exports={assertOptions:function(e,t,u){if("object"!=typeof e)throw new r("options must be an object",r.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],s=t[i];if(s){var a=e[i],c=void 0===a||s(a,i,e);if(!0!==c)throw new r("option "+i+" must be "+c,r.ERR_BAD_OPTION_VALUE)}else if(!0!==u)throw new r("Unknown option "+i,r.ERR_BAD_OPTION)}},validators:o}},"./node_modules/axios/lib/utils.js":function(e,t,u){"use strict";var n,r=u("./node_modules/axios/lib/helpers/bind.js"),o=Object.prototype.toString,i=(n=Object.create(null),function(e){var t=o.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return i(t)===e}}function a(e){return Array.isArray(e)}function c(e){return void 0===e}var l=s("ArrayBuffer");function D(e){return null!==e&&"object"==typeof e}function f(e){if("object"!==i(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var d=s("Date"),p=s("File"),h=s("Blob"),m=s("FileList");function g(e){return"[object Function]"===o.call(e)}var F=s("URLSearchParams");function A(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var u=0,n=e.length;u<n;u++)t.call(null,e[u],u,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}var C,E=(C="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return C&&e instanceof C});e.exports={isArray:a,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return e&&("function"==typeof FormData&&e instanceof FormData||"[object FormData]"===o.call(e)||g(e.toString)&&"[object FormData]"===e.toString())},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:D,isPlainObject:f,isUndefined:c,isDate:d,isFile:p,isBlob:h,isFunction:g,isStream:function(e){return D(e)&&g(e.pipe)},isURLSearchParams:F,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:A,merge:function e(){var t={};function u(u,n){f(t[n])&&f(u)?t[n]=e(t[n],u):f(u)?t[n]=e({},u):a(u)?t[n]=u.slice():t[n]=u}for(var n=0,r=arguments.length;n<r;n++)A(arguments[n],u);return t},extend:function(e,t,u){return A(t,(function(t,n){e[n]=u&&"function"==typeof t?r(t,u):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,u,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,u&&Object.assign(e.prototype,u)},toFlatObject:function(e,t,u){var n,r,o,i={};t=t||{};do{for(r=(n=Object.getOwnPropertyNames(e)).length;r-- >0;)i[o=n[r]]||(t[o]=e[o],i[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!u||u(e,t))&&e!==Object.prototype);return t},kindOf:i,kindOfTest:s,endsWith:function(e,t,u){e=String(e),(void 0===u||u>e.length)&&(u=e.length),u-=t.length;var n=e.indexOf(t,u);return-1!==n&&n===u},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var u=new Array(t);t-- >0;)u[t]=e[t];return u},isTypedArray:E,isFileList:m}},"./node_modules/base64-js/index.js":function(e,t,u){"use strict";t.byteLength=function(e){var t=c(e),u=t[0],n=t[1];return 3*(u+n)/4-n},t.toByteArray=function(e){var t,u,n=c(e),i=n[0],s=n[1],a=new o(function(e,t,u){return 3*(t+u)/4-u}(0,i,s)),l=0,D=s>0?i-4:i;for(u=0;u<D;u+=4)t=r[e.charCodeAt(u)]<<18|r[e.charCodeAt(u+1)]<<12|r[e.charCodeAt(u+2)]<<6|r[e.charCodeAt(u+3)],a[l++]=t>>16&255,a[l++]=t>>8&255,a[l++]=255&t;2===s&&(t=r[e.charCodeAt(u)]<<2|r[e.charCodeAt(u+1)]>>4,a[l++]=255&t);1===s&&(t=r[e.charCodeAt(u)]<<10|r[e.charCodeAt(u+1)]<<4|r[e.charCodeAt(u+2)]>>2,a[l++]=t>>8&255,a[l++]=255&t);return a},t.fromByteArray=function(e){for(var t,u=e.length,r=u%3,o=[],i=0,s=u-r;i<s;i+=16383)o.push(l(e,i,i+16383>s?s:i+16383));1===r?(t=e[u-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===r&&(t=(e[u-2]<<8)+e[u-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=i.length;s<a;++s)n[s]=i[s],r[i.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var u=e.indexOf("=");return-1===u&&(u=t),[u,u===t?0:4-u%4]}function l(e,t,u){for(var r,o,i=[],s=t;s<u;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),i.push(n[(o=r)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return i.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},"./node_modules/buffer/index.js":function(e,t,u){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <http://feross.org> * @license MIT */ var n=u("./node_modules/base64-js/index.js"),r=u("./node_modules/ieee754/index.js"),o=u("./node_modules/isarray/index.js");function i(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(i()<t)throw new RangeError("Invalid typed array length");return a.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=a.prototype:(null===e&&(e=new a(t)),e.length=t),e}function a(e,t,u){if(!(a.TYPED_ARRAY_SUPPORT||this instanceof a))return new a(e,t,u);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return D(this,e)}return c(this,e,t,u)}function c(e,t,u,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,u,n){if(t.byteLength,u<0||t.byteLength<u)throw new RangeError("'offset' is out of bounds");if(t.byteLength<u+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===u&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,u):new Uint8Array(t,u,n);a.TYPED_ARRAY_SUPPORT?(e=t).__proto__=a.prototype:e=f(e,t);return e}(e,t,u,n):"string"==typeof t?function(e,t,u){"string"==typeof u&&""!==u||(u="utf8");if(!a.isEncoding(u))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(t,u),r=(e=s(e,n)).write(t,u);r!==n&&(e=e.slice(0,r));return e}(e,t,u):function(e,t){if(a.isBuffer(t)){var u=0|d(t.length);return 0===(e=s(e,u)).length||t.copy(e,0,0,u),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?s(e,0):f(e,t);if("Buffer"===t.type&&o(t.data))return f(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function D(e,t){if(l(t),e=s(e,t<0?0:0|d(t)),!a.TYPED_ARRAY_SUPPORT)for(var u=0;u<t;++u)e[u]=0;return e}function f(e,t){var u=t.length<0?0:0|d(t.length);e=s(e,u);for(var n=0;n<u;n+=1)e[n]=255&t[n];return e}function d(e){if(e>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function p(e,t){if(a.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var u=e.length;if(0===u)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":case void 0:return M(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*u;case"hex":return u>>>1;case"base64":return z(e).length;default:if(n)return M(e).length;t=(""+t).toLowerCase(),n=!0}}function h(e,t,u){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===u||u>this.length)&&(u=this.length),u<=0)return"";if((u>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return _(this,t,u);case"utf8":case"utf-8":return w(this,t,u);case"ascii":return x(this,t,u);case"latin1":case"binary":return k(this,t,u);case"base64":return B(this,t,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,u);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function m(e,t,u){var n=e[t];e[t]=e[u],e[u]=n}function g(e,t,u,n,r){if(0===e.length)return-1;if("string"==typeof u?(n=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,isNaN(u)&&(u=r?0:e.length-1),u<0&&(u=e.length+u),u>=e.length){if(r)return-1;u=e.length-1}else if(u<0){if(!r)return-1;u=0}if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:F(e,t,u,n,r);if("number"==typeof t)return t&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,u):Uint8Array.prototype.lastIndexOf.call(e,t,u):F(e,[t],u,n,r);throw new TypeError("val must be string, number or Buffer")}function F(e,t,u,n,r){var o,i=1,s=e.length,a=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;i=2,s/=2,a/=2,u/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(r){var l=-1;for(o=u;o<s;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===a)return l*i}else-1!==l&&(o-=o-l),l=-1}else for(u+a>s&&(u=s-a),o=u;o>=0;o--){for(var D=!0,f=0;f<a;f++)if(c(e,o+f)!==c(t,f)){D=!1;break}if(D)return o}return-1}function A(e,t,u,n){u=Number(u)||0;var r=e.length-u;n?(n=Number(n))>r&&(n=r):n=r;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var i=0;i<n;++i){var s=parseInt(t.substr(2*i,2),16);if(isNaN(s))return i;e[u+i]=s}return i}function C(e,t,u,n){return $(M(t,e.length-u),e,u,n)}function E(e,t,u,n){return $(function(e){for(var t=[],u=0;u<e.length;++u)t.push(255&e.charCodeAt(u));return t}(t),e,u,n)}function b(e,t,u,n){return E(e,t,u,n)}function v(e,t,u,n){return $(z(t),e,u,n)}function y(e,t,u,n){return $(function(e,t){for(var u,n,r,o=[],i=0;i<e.length&&!((t-=2)<0);++i)u=e.charCodeAt(i),n=u>>8,r=u%256,o.push(r),o.push(n);return o}(t,e.length-u),e,u,n)}function B(e,t,u){return 0===t&&u===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,u))}function w(e,t,u){u=Math.min(e.length,u);for(var n=[],r=t;r<u;){var o,i,s,a,c=e[r],l=null,D=c>239?4:c>223?3:c>191?2:1;if(r+D<=u)switch(D){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[r+1]))&&(a=(31&c)<<6|63&o)>127&&(l=a);break;case 3:o=e[r+1],i=e[r+2],128==(192&o)&&128==(192&i)&&(a=(15&c)<<12|(63&o)<<6|63&i)>2047&&(a<55296||a>57343)&&(l=a);break;case 4:o=e[r+1],i=e[r+2],s=e[r+3],128==(192&o)&&128==(192&i)&&128==(192&s)&&(a=(15&c)<<18|(63&o)<<12|(63&i)<<6|63&s)>65535&&a<1114112&&(l=a)}null===l?(l=65533,D=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),r+=D}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var u="",n=0;for(;n<t;)u+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return u}(n)}t.Buffer=a,t.SlowBuffer=function(e){+e!=e&&(e=0);return a.alloc(+e)},t.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=i(),a.poolSize=8192,a._augment=function(e){return e.__proto__=a.prototype,e},a.from=function(e,t,u){return c(null,e,t,u)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(e,t,u){return function(e,t,u,n){return l(t),t<=0?s(e,t):void 0!==u?"string"==typeof n?s(e,t).fill(u,n):s(e,t).fill(u):s(e,t)}(null,e,t,u)},a.allocUnsafe=function(e){return D(null,e)},a.allocUnsafeSlow=function(e){return D(null,e)},a.isBuffer=function(e){return!(null==e||!e._isBuffer)},a.compare=function(e,t){if(!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var u=e.length,n=t.length,r=0,o=Math.min(u,n);r<o;++r)if(e[r]!==t[r]){u=e[r],n=t[r];break}return u<n?-1:n<u?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);var u;if(void 0===t)for(t=0,u=0;u<e.length;++u)t+=e[u].length;var n=a.allocUnsafe(t),r=0;for(u=0;u<e.length;++u){var i=e[u];if(!a.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,r),r+=i.length}return n},a.byteLength=p,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},a.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?w(this,0,e):h.apply(this,arguments)},a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",u=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,u).match(/.{2}/g).join(" "),this.length>u&&(e+=" ... ")),"<Buffer "+e+">"},a.prototype.compare=function(e,t,u,n,r){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===u&&(u=e?e.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),t<0||u>e.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&t>=u)return 0;if(n>=r)return-1;if(t>=u)return 1;if(this===e)return 0;for(var o=(r>>>=0)-(n>>>=0),i=(u>>>=0)-(t>>>=0),s=Math.min(o,i),c=this.slice(n,r),l=e.slice(t,u),D=0;D<s;++D)if(c[D]!==l[D]){o=c[D],i=l[D];break}return o<i?-1:i<o?1:0},a.prototype.includes=function(e,t,u){return-1!==this.indexOf(e,t,u)},a.prototype.indexOf=function(e,t,u){return g(this,e,t,u,!0)},a.prototype.lastIndexOf=function(e,t,u){return g(this,e,t,u,!1)},a.prototype.write=function(e,t,u,n){if(void 0===t)n="utf8",u=this.length,t=0;else if(void 0===u&&"string"==typeof t)n=t,u=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(u)?(u|=0,void 0===n&&(n="utf8")):(n=u,u=void 0)}var r=this.length-t;if((void 0===u||u>r)&&(u=r),e.length>0&&(u<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return A(this,e,t,u);case"utf8":case"utf-8":return C(this,e,t,u);case"ascii":return E(this,e,t,u);case"latin1":case"binary":return b(this,e,t,u);case"base64":return v(this,e,t,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return y(this,e,t,u);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function x(e,t,u){var n="";u=Math.min(e.length,u);for(var r=t;r<u;++r)n+=String.fromCharCode(127&e[r]);return n}function k(e,t,u){var n="";u=Math.min(e.length,u);for(var r=t;r<u;++r)n+=String.fromCharCode(e[r]);return n}function _(e,t,u){var n=e.length;(!t||t<0)&&(t=0),(!u||u<0||u>n)&&(u=n);for(var r="",o=t;o<u;++o)r+=L(e[o]);return r}function S(e,t,u){for(var n=e.slice(t,u),r="",o=0;o<n.length;o+=2)r+=String.fromCharCode(n[o]+256*n[o+1]);return r}function j(e,t,u){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>u)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,u,n,r,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<o)throw new RangeError('"value" argument is out of bounds');if(u+n>e.length)throw new RangeError("Index out of range")}function T(e,t,u,n){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-u,2);r<o;++r)e[u+r]=(t&255<<8*(n?r:1-r))>>>8*(n?r:1-r)}function I(e,t,u,n){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-u,4);r<o;++r)e[u+r]=t>>>8*(n?r:3-r)&255}function R(e,t,u,n,r,o){if(u+n>e.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function P(e,t,u,n,o){return o||R(e,0,u,4),r.write(e,t,u,n,23,4),u+4}function N(e,t,u,n,o){return o||R(e,0,u,8),r.write(e,t,u,n,52,8),u+8}a.prototype.slice=function(e,t){var u,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),a.TYPED_ARRAY_SUPPORT)(u=this.subarray(e,t)).__proto__=a.prototype;else{var r=t-e;u=new a(r,void 0);for(var o=0;o<r;++o)u[o]=this[o+e]}return u},a.prototype.readUIntLE=function(e,t,u){e|=0,t|=0,u||j(e,t,this.length);for(var n=this[e],r=1,o=0;++o<t&&(r*=256);)n+=this[e+o]*r;return n},a.prototype.readUIntBE=function(e,t,u){e|=0,t|=0,u||j(e,t,this.length);for(var n=this[e+--t],r=1;t>0&&(r*=256);)n+=this[e+--t]*r;return n},a.prototype.readUInt8=function(e,t){return t||j(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return t||j(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return t||j(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,u){e|=0,t|=0,u||j(e,t,this.length);for(var n=this[e],r=1,o=0;++o<t&&(r*=256);)n+=this[e+o]*r;return n>=(r*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,u){e|=0,t|=0,u||j(e,t,this.length);for(var n=t,r=1,o=this[e+--n];n>0&&(r*=256);)o+=this[e+--n]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){t||j(e,2,this.length);var u=this[e]|this[e+1]<<8;return 32768&u?4294901760|u:u},a.prototype.readInt16BE=function(e,t){t||j(e,2,this.length);var u=this[e+1]|this[e]<<8;return 32768&u?4294901760|u:u},a.prototype.readInt32LE=function(e,t){return t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||j(e,4,this.length),r.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||j(e,4,this.length),r.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||j(e,8,this.length),r.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||j(e,8,this.length),r.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,u,n){(e=+e,t|=0,u|=0,n)||O(this,e,t,u,Math.pow(2,8*u)-1,0);var r=1,o=0;for(this[t]=255&e;++o<u&&(r*=256);)this[t+o]=e/r&255;return t+u},a.prototype.writeUIntBE=function(e,t,u,n){(e=+e,t|=0,u|=0,n)||O(this,e,t,u,Math.pow(2,8*u)-1,0);var r=u-1,o=1;for(this[t+r]=255&e;--r>=0&&(o*=256);)this[t+r]=e/o&255;return t+u},a.prototype.writeUInt8=function(e,t,u){return e=+e,t|=0,u||O(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,u){return e=+e,t|=0,u||O(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):T(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,u){return e=+e,t|=0,u||O(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):T(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,u){return e=+e,t|=0,u||O(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,u){return e=+e,t|=0,u||O(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},a.prototype.writeIntLE=function(e,t,u,n){if(e=+e,t|=0,!n){var r=Math.pow(2,8*u-1);O(this,e,t,u,r-1,-r)}var o=0,i=1,s=0;for(this[t]=255&e;++o<u&&(i*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/i>>0)-s&255;return t+u},a.prototype.writeIntBE=function(e,t,u,n){if(e=+e,t|=0,!n){var r=Math.pow(2,8*u-1);O(this,e,t,u,r-1,-r)}var o=u-1,i=1,s=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i>>0)-s&255;return t+u},a.prototype.writeInt8=function(e,t,u){return e=+e,t|=0,u||O(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,u){return e=+e,t|=0,u||O(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):T(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,u){return e=+e,t|=0,u||O(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):T(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,u){return e=+e,t|=0,u||O(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,u){return e=+e,t|=0,u||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,u){return P(this,e,t,!0,u)},a.prototype.writeFloatBE=function(e,t,u){return P(this,e,t,!1,u)},a.prototype.writeDoubleLE=function(e,t,u){return N(this,e,t,!0,u)},a.prototype.writeDoubleBE=function(e,t,u){return N(this,e,t,!1,u)},a.prototype.copy=function(e,t,u,n){if(u||(u=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<u&&(n=u),n===u)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(u<0||u>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-u&&(n=e.length-t+u);var r,o=n-u;if(this===e&&u<t&&t<n)for(r=o-1;r>=0;--r)e[r+t]=this[r+u];else if(o<1e3||!a.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)e[r+t]=this[r+u];else Uint8Array.prototype.set.call(e,this.subarray(u,u+o),t);return o},a.prototype.fill=function(e,t,u,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,u=this.length):"string"==typeof u&&(n=u,u=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<u)throw new RangeError("Out of range index");if(u<=t)return this;var o;if(t>>>=0,u=void 0===u?this.length:u>>>0,e||(e=0),"number"==typeof e)for(o=t;o<u;++o)this[o]=e;else{var i=a.isBuffer(e)?e:M(new a(e,n).toString()),s=i.length;for(o=0;o<u-t;++o)this[o+t]=i[o%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function L(e){return e<16?"0"+e.toString(16):e.toString(16)}function M(e,t){var u;t=t||1/0;for(var n=e.length,r=null,o=[],i=0;i<n;++i){if((u=e.charCodeAt(i))>55295&&u<57344){if(!r){if(u>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&o.push(239,191,189);continue}r=u;continue}if(u<56320){(t-=3)>-1&&o.push(239,191,189),r=u;continue}u=65536+(r-55296<<10|u-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,u<128){if((t-=1)<0)break;o.push(u)}else if(u<2048){if((t-=2)<0)break;o.push(u>>6|192,63&u|128)}else if(u<65536){if((t-=3)<0)break;o.push(u>>12|224,u>>6&63|128,63&u|128)}else{if(!(u<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(u>>18|240,u>>12&63|128,u>>6&63|128,63&u|128)}}return o}function z(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,u,n){for(var r=0;r<n&&!(r+u>=t.length||r>=e.length);++r)t[r+u]=e[r];return r}}).call(this,u("./node_modules/webpack/buildin/global.js"))},"./node_modules/cross-storage/lib/client.js":function(e,t,u){!function(u){function n(e,t){var u;t=t||{},this._id=n._generateUUID(),this._promise=t.promise||Promise,this._frameId=t.frameId||"CrossStorageClient-"+this._id,this._origin=n._getOrigin(e),this._requests={},this._connected=!1,this._closed=!1,this._count=0,this._timeout=t.timeout||5e3,this._listener=null,this._installListener(),t.frameId&&(u=document.getElementById(t.frameId)),u&&this._poll(),u=u||this._createFrame(e),this._hub=u.contentWindow}n.frameStyle={display:"none",position:"absolute",top:"-999px",left:"-999px"},n._getOrigin=function(e){var t;return(t=document.createElement("a")).href=e,t.host||(t=window.location),((t.protocol&&":"!==t.protocol?t.protocol:window.location.protocol)+"//"+t.host).replace(/:80$|:443$/,"")},n._generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},n.prototype.onConnect=function(){var e=this;return this._connected?this._promise.resolve():this._closed?this._promise.reject(new Error("CrossStorageClient has closed")):(this._requests.connect||(this._requests.connect=[]),new this._promise((function(t,u){var n=setTimeout((function(){u(new Error("CrossStorageClient could not connect"))}),e._timeout);e._requests.connect.push((function(e){if(clearTimeout(n),e)return u(e);t()}))})))},n.prototype.set=function(e,t){return this._request("set",{key:e,value:t})},n.prototype.get=function(e){var t=Array.prototype.slice.call(arguments);return this._request("get",{keys:t})},n.prototype.del=function(){var e=Array.prototype.slice.call(arguments);return this._request("del",{keys:e})},n.prototype.clear=function(){return this._request("clear")},n.prototype.getKeys=function(){return this._request("getKeys")},n.prototype.close=function(){var e=document.getElementById(this._frameId);e&&e.parentNode.removeChild(e),window.removeEventListener?window.removeEventListener("message",this._listener,!1):window.detachEvent("onmessage",this._listener),this._connected=!1,this._closed=!0},n.prototype._installListener=function(){var e=this;this._listener=function(t){var u,n,r;if(!e._closed&&t.data&&"string"==typeof t.data&&("null"===t.origin?"file://":t.origin)===e._origin)if("cross-storage:unavailable"!==t.data){if(-1!==t.data.indexOf("cross-storage:")&&!e._connected){if(e._connected=!0,!e._requests.connect)return;for(u=0;u<e._requests.connect.length;u++)e._requests.connect[u](n);delete e._requests.connect}if("cross-storage:ready"!==t.data){try{r=JSON.parse(t.data)}catch(e){return}r.id&&e._requests[r.id]&&e._requests[r.id](r.error,r.result)}}else{if(e._closed||e.close(),!e._requests.connect)return;for(n=new Error("Closing client. Could not access localStorage in hub."),u=0;u<e._requests.connect.length;u++)e._requests.connect[u](n)}},window.addEventListener?window.addEventListener("message",this._listener,!1):window.attachEvent("onmessage",this._listener)},n.prototype._poll=function(){var e,t,u;u="file://"===(e=this)._origin?"*":e._origin,t=setInterval((function(){if(e._connected)return clearInterval(t);e._hub&&e._hub.postMessage("cross-storage:poll",u)}),1e3)},n.prototype._createFrame=function(e){var t,u;for(u in(t=window.document.createElement("iframe")).id=this._frameId,n.frameStyle)n.frameStyle.hasOwnProperty(u)&&(t.style[u]=n.frameStyle[u]);return window.document.body.appendChild(t),t.src=e,t},n.prototype._request=function(e,t){var u,n;return this._closed?this._promise.reject(new Error("CrossStorageClient has closed")):((n=this)._count++,u={id:this._id+":"+n._count,method:"cross-storage:"+e,params:t},new this._promise((function(e,t){var r,o,i;r=setTimeout((function(){n._requests[u.id]&&(delete n._requests[u.id],t(new Error("Timeout: could not perform "+u.method)))}),n._timeout),n._requests[u.id]=function(o,i){if(clearTimeout(r),delete n._requests[u.id],o)return t(new Error(o));e(i)},Array.prototype.toJSON&&(o=Array.prototype.toJSON,Array.prototype.toJSON=null),i="file://"===n._origin?"*":n._origin,n._hub.postMessage(JSON.stringify(u),i),o&&(Array.prototype.toJSON=o)})))},e.exports?e.exports=n:t.CrossStorageClient=n}()},"./node_modules/cross-storage/lib/hub.js":function(e,t,u){var n;n={init:function(e){var t=!0;try{window.localStorage||(t=!1)}catch(e){t=!1}if(!t)try{return window.parent.postMessage("cross-storage:unavailable","*")}catch(e){return}n._permissions=e||[],n._installListener(),window.parent.postMessage("cross-storage:ready","*")},_installListener:function(){var e=n._listener;window.addEventListener?window.addEventListener("message",e,!1):window.attachEvent("onmessage",e)},_listener:function(e){var t,u,r,o,i,s,a;if(t="null"===e.origin?"file://":e.origin,"cross-storage:poll"===e.data)return window.parent.postMessage("cross-storage:ready",e.origin);if("cross-storage:ready"!==e.data){try{r=JSON.parse(e.data)}catch(e){return}if(r&&"string"==typeof r.method&&(o=r.method.split("cross-storage:")[1])){if(n._permitted(t,o))try{s=n["_"+o](r.params)}catch(e){i=e.message}else i="Invalid permissions for "+o;a=JSON.stringify({id:r.id,error:i,result:s}),u="file://"===t?"*":t,window.parent.postMessage(a,u)}}},_permitted:function(e,t){var u,r,o;if(u=["get","set","del","clear","getKeys"],!n._inArray(t,u))return!1;for(r=0;r<n._permissions.length;r++)if((o=n._permissions[r]).origin instanceof RegExp&&o.allow instanceof Array&&o.origin.test(e)&&n._inArray(t,o.allow))return!0;return!1},_set:function(e){window.localStorage.setItem(e.key,e.value)},_get:function(e){var t,u,n,r;for(t=window.localStorage,u=[],n=0;n<e.keys.length;n++){try{r=t.getItem(e.keys[n])}catch(e){r=null}u.push(r)}return u.length>1?u:u[0]},_del:function(e){for(var t=0;t<e.keys.length;t++)window.localStorage.removeItem(e.keys[t])},_clear:function(){window.localStorage.clear()},_getKeys:function(e){var t,u,n;for(n=[],u=window.localStorage.length,t=0;t<u;t++)n.push(window.localStorage.key(t));return n},_inArray:function(e,t){for(var u=0;u<t.length;u++)if(e===t[u])return!0;return!1},_now:function(){return"function"==typeof Date.now?Date.now():(new Date).getTime()}},e.exports?e.exports=n:t.CrossStorageHub=n},"./node_modules/cross-storage/lib/index.js":function(e,t,u){e.exports={CrossStorageClient:u("./node_modules/cross-storage/lib/client.js"),CrossStorageHub:u("./node_modules/cross-storage/lib/hub.js")}},"./node_modules/es6-promise-polyfill/promise.js":function(e,t,u){(function(n){var r;!function(n){var o=n.Promise,i=o&&"resolve"in o&&"reject"in o&&"all"in o&&"race"in o&&function(){var e;return new o((function(t){e=t})),"function"==typeof e}();t?(t.Promise=i?o:b,t.Polyfill=b):void 0===(r=function(){return i?o:b}.call(t,u,t,e))||(e.exports=r);var s=function(){};function a(e){return"[object Array]"===Object.prototype.toString.call(e)}var c,l="undefined"!=typeof setImmediate?setImmediate:setTimeout,D=[];function f(){for(var e=0;e<D.length;e++)D[e][0](D[e][1]);D=[],c=!1}function d(e,t){D.push([e,t]),c||(c=!0,l(f,0))}function p(e){var t=e.owner,u=t.state_,n=t.data_,r=e[u],o=e.then;if("function"==typeof r){u="fulfilled";try{n=r(n)}catch(e){F(o,e)}}h(o,n)||("fulfilled"===u&&m(o,n),"rejected"===u&&F(o,n))}function h(e,t){var u;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"==typeof t)){var n=t.then;if("function"==typeof n)return n.call(t,(function(n){u||(u=!0,t!==n?m(e,n):g(e,n))}),(function(t){u||(u=!0,F(e,t))})),!0}}catch(t){return u||F(e,t),!0}return!1}function m(e,t){e!==t&&h(e,t)||g(e,t)}function g(e,t){"pending"===e.state_&&(e.state_="sealed",e.data_=t,d(C,e))}function F(e,t){"pending"===e.state_&&(e.state_="sealed",e.data_=t,d(E,e))}function A(e){var t=e.then_;e.then_=void 0;for(var u=0;u<t.length;u++)p(t[u])}function C(e){e.state_="fulfilled",A(e)}function E(e){e.state_="rejected",A(e)}function b(e){if("function"!=typeof e)throw new TypeError("Promise constructor takes a function argument");if(this instanceof b==!1)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.then_=[],function(e,t){function u(e){F(t,e)}try{e((function(e){m(t,e)}),u)}catch(e){u(e)}}(e,this)}b.prototype={constructor:b,state_:"pending",then_:null,data_:void 0,then:function(e,t){var u={owner:this,then:new this.constructor(s),fulfilled:e,rejected:t};return"fulfilled"===this.state_||"rejected"===this.state_?d(p,u):this.then_.push(u),u.then},catch:function(e){return this.then(null,e)}},b.all=function(e){if(!a(e))throw new TypeError("You must pass an array to Promise.all().");return new this((function(t,u){var n=[],r=0;function o(e){return r++,function(u){n[e]=u,--r||t(n)}}for(var i,s=0;s<e.length;s++)(i=e[s])&&"function"==typeof i.then?i.then(o(s),u):n[s]=i;r||t(n)}))},b.race=function(e){if(!a(e))throw new TypeError("You must pass an array to Promise.race().");return new this((function(t,u){for(var n,r=0;r<e.length;r++)(n=e[r])&&"function"==typeof n.then?n.then(t,u):t(n)}))},b.resolve=function(e){return e&&"object"==typeof e&&e.constructor===this?e:new this((function(t){t(e)}))},b.reject=function(e){return new this((function(t,u){u(e)}))}}("undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:this)}).call(this,u("./node_modules/webpack/buildin/global.js"))},"./node_modules/ieee754/index.js":function(e,t){t.read=function(e,t,u,n,r){var o,i,s=8*r-n-1,a=(1<<s)-1,c=a>>1,l=-7,D=u?r-1:0,f=u?-1:1,d=e[t+D];for(D+=f,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+D],D+=f,l-=8);for(i=o&(1<<-l)-1,o>>=-l,l+=n;l>0;i=256*i+e[t+D],D+=f,l-=8);if(0===o)o=1-c;else{if(o===a)return i?NaN:1/0*(d?-1:1);i+=Math.pow(2,n),o-=c}return(d?-1:1)*i*Math.pow(2,o-n)},t.write=function(e,t,u,n,r,o){var i,s,a,c=8*o-r-1,l=(1<<c)-1,D=l>>1,f=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=l):(i=Math.floor(Math.log(t)/Math.LN2),t*(a=Math.pow(2,-i))<1&&(i--,a*=2),(t+=i+D>=1?f/a:f*Math.pow(2,1-D))*a>=2&&(i++,a/=2),i+D>=l?(s=0,i=l):i+D>=1?(s=(t*a-1)*Math.pow(2,r),i+=D):(s=t*Math.pow(2,D-1)*Math.pow(2,r),i=0));r>=8;e[u+d]=255&s,d+=p,s/=256,r-=8);for(i=i<<r|s,c+=r;c>0;e[u+d]=255&i,d+=p,i/=256,c-=8);e[u+d-p]|=128*h}},"./node_modules/isarray/index.js":function(e,t){var u={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==u.call(e)}},"./node_modules/marked/lib/marked.umd.js":function(e,t,u){!function(e){"use strict";function t(e,t){for(var u=0;u<t.length;u++){var n=t[u];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var u=0,n=new Array(t);u<t;u++)n[u]=e[u];return n}function n(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}e.defaults={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};var o=/[&<>"']/,i=/[&<>"']/g,s=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"},l=function(e){return c[e]};function D(e,t){if(t){if(o.test(e))return e.replace(i,l)}else if(s.test(e))return e.replace(a,l);return e}var f=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function d(e){return e.replace(f,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var p=/(^|[^\[])\^/g;function h(e,t){e=e.source||e,t=t||"";var u={replace:function(t,n){return n=(n=n.source||n).replace(p,"$1"),e=e.replace(t,n),u},getRegex:function(){return new RegExp(e,t)}};return u}var m=/[^\w:]/g,g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function F(e,t,u){if(e){var n;try{n=decodeURIComponent(d(u)).replace(m,"").toLowerCase()}catch(e){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!g.test(u)&&(u=function(e,t){A[" "+e]||(C.test(e)?A[" "+e]=e+"/":A[" "+e]=w(e,"/",!0));var u=-1===(e=A[" "+e]).indexOf(":");return"//"===t.substring(0,2)?u?t:e.replace(E,"$1")+t:"/"===t.charAt(0)?u?t:e.replace(b,"$1")+t:e+t}(t,u));try{u=encodeURI(u).replace(/%25/g,"%")}catch(e){return null}return u}var A={},C=/^[^:]+:\/*[^/]*$/,E=/^([^:]+:)[\s\S]*$/,b=/^([^:]+:\/*[^/]*)[\s\S]*$/,v={exec:function(){}};function y(e){for(var t,u,n=1;n<arguments.length;n++)for(u in t=arguments[n])Object.prototype.hasOwnProperty.call(t,u)&&(e[u]=t[u]);return e}function B(e,t){var u=e.replace(/\|/g,(function(e,t,u){for(var n=!1,r=t;--r>=0&&"\\"===u[r];)n=!n;return n?"|":" |"})).split(/ \|/),n=0;if(u[0].trim()||u.shift(),u[u.length-1].trim()||u.pop(),u.length>t)u.splice(t);else for(;u.length<t;)u.push("");for(;n<u.length;n++)u[n]=u[n].trim().replace(/\\\|/g,"|");return u}function w(e,t,u){var n=e.length;if(0===n)return"";for(var r=0;r<n;){var o=e.charAt(n-r-1);if(o!==t||u){if(o===t||!u)break;r++}else r++}return e.substr(0,n-r)}function x(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function k(e,t){if(t<1)return"";for(var u="";t>1;)1&t&&(u+=e),t>>=1,e+=e;return u+e}function _(e,t,u,n){var r=t.href,o=t.title?D(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;var s={type:"link",raw:u,href:r,title:o,text:i,tokens:n.inlineTokens(i,[])};return n.state.inLink=!1,s}return{type:"image",raw:u,href:r,title:o,text:D(i)}}var S=function(){function t(t){this.options=t||e.defaults}var u=t.prototype;return u.space=function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}},u.code=function(e){var t=this.rules.block.code.exec(e);if(t){var u=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?u:w(u,"\n")}}},u.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var u=t[0],n=function(e,t){var u=e.match(/^(\s+)(?:```)/);if(null===u)return t;var n=u[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=n.length?e.slice(n.length):e})).join("\n")}(u,t[3]||"");return{type:"code",raw:u,lang:t[2]?t[2].trim():t[2],text:n}}},u.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var u=t[2].trim();if(/#$/.test(u)){var n=w(u,"#");this.options.pedantic?u=n.trim():n&&!/ $/.test(n)||(u=n.trim())}var r={type:"heading",raw:t[0],depth:t[1].length,text:u,tokens:[]};return this.lexer.inline(r.text,r.tokens),r}},u.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},u.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var u=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(u,[]),text:u}}},u.list=function(e){var t=this.rules.block.list.exec(e);if(t){var u,r,o,i,s,a,c,l,D,f,d,p,h=t[1].trim(),m=h.length>1,g={type:"list",raw:"",ordered:m,start:m?+h.slice(0,-1):"",loose:!1,items:[]};h=m?"\\d{1,9}\\"+h.slice(-1):"\\"+h,this.options.pedantic&&(h=m?h:"[*+-]");for(var F=new RegExp("^( {0,3}"+h+")((?: [^\\n]*)?(?:\\n|$))");e&&(p=!1,t=F.exec(e))&&!this.rules.block.hr.test(e);){if(u=t[0],e=e.substring(u.length),l=t[2].split("\n",1)[0],D=e.split("\n",1)[0],this.options.pedantic?(i=2,d=l.trimLeft()):(i=(i=t[2].search(/[^ ]/))>4?1:i,d=l.slice(i),i+=t[1].length),a=!1,!l&&/^ *$/.test(D)&&(u+=D+"\n",e=e.substring(D.length+1),p=!0),!p)for(var A=new RegExp("^ {0,"+Math.min(3,i-1)+"}(?:[*+-]|\\d{1,9}[.)])");e&&(l=f=e.split("\n",1)[0],this.options.pedantic&&(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!A.test(l));){if(l.search(/[^ ]/)>=i||!l.trim())d+="\n"+l.slice(i);else{if(a)break;d+="\n"+l}a||l.trim()||(a=!0),u+=f+"\n",e=e.substring(f.length+1)}g.loose||(c?g.loose=!0:/\n *\n *$/.test(u)&&(c=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d))&&(o="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,"")),g.items.push({type:"list_item",raw:u,task:!!r,checked:o,loose:!1,text:d}),g.raw+=u}g.items[g.items.length-1].raw=u.trimRight(),g.items[g.items.length-1].text=d.trimRight(),g.raw=g.raw.trimRight();var C=g.items.length;for(s=0;s<C;s++){this.lexer.state.top=!1,g.items[s].tokens=this.lexer.blockTokens(g.items[s].text,[]);var E=g.items[s].tokens.filter((function(e){return"space"===e.type})),b=E.every((function(e){for(var t,u=0,r=n(e.raw.split(""));!(t=r()).done;)if("\n"===t.value&&(u+=1),u>1)return!0;return!1}));!g.loose&&E.length&&b&&(g.loose=!0,g.items[s].loose=!0)}return g}},u.html=function(e){var t=this.rules.block.html.exec(e);if(t){var u={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(u.type="paragraph",u.text=this.options.sanitizer?this.options.sanitizer(t[0]):D(t[0]),u.tokens=[],this.lexer.inline(u.text,u.tokens)),u}},u.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},u.table=function(e){var t=this.rules.block.table.exec(e);if(t){var u={type:"table",header:B(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(u.header.length===u.align.length){u.raw=t[0];var n,r,o,i,s=u.align.length;for(n=0;n<s;n++)/^ *-+: *$/.test(u.align[n])?u.align[n]="right":/^ *:-+: *$/.test(u.align[n])?u.align[n]="center":/^ *:-+ *$/.test(u.align[n])?u.align[n]="left":u.align[n]=null;for(s=u.rows.length,n=0;n<s;n++)u.rows[n]=B(u.rows[n],u.header.length).map((function(e){return{text:e}}));for(s=u.header.length,r=0;r<s;r++)u.header[r].tokens=[],this.lexer.inlineTokens(u.header[r].text,u.header[r].tokens);for(s=u.rows.length,r=0;r<s;r++)for(i=u.rows[r],o=0;o<i.length;o++)i[o].tokens=[],this.lexer.inlineTokens(i[o].text,i[o].tokens);return u}}},u.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t){var u={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(u.text,u.tokens),u}},u.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t){var u={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(u.text,u.tokens),u}},u.text=function(e){var t=this.rules.block.text.exec(e);if(t){var u={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(u.text,u.tokens),u}},u.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:D(t[1])}},u.tag=function(e){var t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):D(t[0]):t[0]}},u.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var u=t[2].trim();if(!this.options.pedantic&&/^</.test(u)){if(!/>$/.test(u))return;var n=w(u.slice(0,-1),"\\");if((u.length-n.length)%2==0)return}else{var r=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var u=e.length,n=0,r=0;r<u;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&--n<0)return r;return-1}(t[2],"()");if(r>-1){var o=(0===t[0].indexOf("!")?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,o).trim(),t[3]=""}}var i=t[2],s="";if(this.options.pedantic){var a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);a&&(i=a[1],s=a[3])}else s=t[3]?t[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(i=this.options.pedantic&&!/>$/.test(u)?i.slice(1):i.slice(1,-1)),_(t,{href:i?i.replace(this.rules.inline._escapes,"$1"):i,title:s?s.replace(this.rules.inline._escapes,"$1"):s},t[0],this.lexer)}},u.reflink=function(e,t){var u;if((u=this.rules.inline.reflink.exec(e))||(u=this.rules.inline.nolink.exec(e))){var n=(u[2]||u[1]).replace(/\s+/g," ");if(!(n=t[n.toLowerCase()])||!n.href){var r=u[0].charAt(0);return{type:"text",raw:r,text:r}}return _(u,n,u[0],this.lexer)}},u.emStrong=function(e,t,u){void 0===u&&(u="");var n=this.rules.inline.emStrong.lDelim.exec(e);if(n&&(!n[3]||!u.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=n[1]||n[2]||"";if(!r||r&&(""===u||this.rules.inline.punctuation.exec(u))){var o,i,s=n[0].length-1,a=s,c=0,l="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+s);null!=(n=l.exec(t));)if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6])if(i=o.length,n[3]||n[4])a+=i;else if(!((n[5]||n[6])&&s%3)||(s+i)%3){if(!((a-=i)>0)){if(i=Math.min(i,i+a+c),Math.min(s,i)%2){var D=e.slice(1,s+n.index+i);return{type:"em",raw:e.slice(0,s+n.index+i+1),text:D,tokens:this.lexer.inlineTokens(D,[])}}var f=e.slice(2,s+n.index+i-1);return{type:"strong",raw:e.slice(0,s+n.index+i+1),text:f,tokens:this.lexer.inlineTokens(f,[])}}}else c+=i}}},u.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var u=t[2].replace(/\n/g," "),n=/[^ ]/.test(u),r=/^ /.test(u)&&/ $/.test(u);return n&&r&&(u=u.substring(1,u.length-1)),u=D(u,!0),{type:"codespan",raw:t[0],text:u}}},u.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},u.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}},u.autolink=function(e,t){var u,n,r=this.rules.inline.autolink.exec(e);if(r)return n="@"===r[2]?"mailto:"+(u=D(this.options.mangle?t(r[1]):r[1])):u=D(r[1]),{type:"link",raw:r[0],text:u,href:n,tokens:[{type:"text",raw:u,text:u}]}},u.url=function(e,t){var u;if(u=this.rules.inline.url.exec(e)){var n,r;if("@"===u[2])r="mailto:"+(n=D(this.options.mangle?t(u[0]):u[0]));else{var o;do{o=u[0],u[0]=this.rules.inline._backpedal.exec(u[0])[0]}while(o!==u[0]);n=D(u[0]),r="www."===u[1]?"http://"+n:n}return{type:"link",raw:u[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}},u.inlineText=function(e,t){var u,n=this.rules.inline.text.exec(e);if(n)return u=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):D(n[0]):n[0]:D(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:u}},t}(),j={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:v,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};j.def=h(j.def).replace("label",j._label).replace("title",j._title).getRegex(),j.bullet=/(?:[*+-]|\d{1,9}[.)])/,j.listItemStart=h(/^( *)(bull) */).replace("bull",j.bullet).getRegex(),j.list=h(j.list).replace(/bull/g,j.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+j.def.source+")").getRegex(),j._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",j._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,j.html=h(j.html,"i").replace("comment",j._comment).replace("tag",j._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),j.paragraph=h(j._paragraph).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",j._tag).getRegex(),j.blockquote=h(j.blockquote).replace("paragraph",j.paragraph).getRegex(),j.normal=y({},j),j.gfm=y({},j.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),j.gfm.table=h(j.gfm.table).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",j._tag).getRegex(),j.gfm.paragraph=h(j._paragraph).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",j.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",j._tag).getRegex(),j.pedantic=y({},j.normal,{html:h("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",j._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:v,paragraph:h(j.normal._paragraph).replace("hr",j.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",j.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var O={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:v,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:v,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function T(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function I(e){var t,u,n="",r=e.length;for(t=0;t<r;t++)u=e.charCodeAt(t),Math.random()>.5&&(u="x"+u.toString(16)),n+="&#"+u+";";return n}O._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",O.punctuation=h(O.punctuation).replace(/punctuation/g,O._punctuation).getRegex(),O.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,O.escapedEmSt=/\\\*|\\_/g,O._comment=h(j._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),O.emStrong.lDelim=h(O.emStrong.lDelim).replace(/punct/g,O._punctuation).getRegex(),O.emStrong.rDelimAst=h(O.emStrong.rDelimAst,"g").replace(/punct/g,O._punctuation).getRegex(),O.emStrong.rDelimUnd=h(O.emStrong.rDelimUnd,"g").replace(/punct/g,O._punctuation).getRegex(),O._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,O._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,O._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,O.autolink=h(O.autolink).replace("scheme",O._scheme).replace("email",O._email).getRegex(),O._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,O.tag=h(O.tag).replace("comment",O._comment).replace("attribute",O._attribute).getRegex(),O._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,O._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,O._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,O.link=h(O.link).replace("label",O._label).replace("href",O._href).replace("title",O._title).getRegex(),O.reflink=h(O.reflink).replace("label",O._label).replace("ref",j._label).getRegex(),O.nolink=h(O.nolink).replace("ref",j._label).getRegex(),O.reflinkSearch=h(O.reflinkSearch,"g").replace("reflink",O.reflink).replace("nolink",O.nolink).getRegex(),O.normal=y({},O),O.pedantic=y({},O.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:h(/^!?\[(label)\]\((.*?)\)/).replace("label",O._label).getRegex(),reflink:h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",O._label).getRegex()}),O.gfm=y({},O.normal,{escape:h(O.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),O.gfm.url=h(O.gfm.url,"i").replace("email",O.gfm._extended_email).getRegex(),O.breaks=y({},O.gfm,{br:h(O.br).replace("{2,}","*").getRegex(),text:h(O.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var R=function(){function u(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||e.defaults,this.options.tokenizer=this.options.tokenizer||new S,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var u={block:j.normal,inline:O.normal};this.options.pedantic?(u.block=j.pedantic,u.inline=O.pedantic):this.options.gfm&&(u.block=j.gfm,this.options.breaks?u.inline=O.breaks:u.inline=O.gfm),this.tokenizer.rules=u}u.lex=function(e,t){return new u(t).lex(e)},u.lexInline=function(e,t){return new u(t).inlineTokens(e)};var n,r,o,i=u.prototype;return i.lex=function(e){var t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens},i.blockTokens=function(e,t){var u,n,r,o,i=this;for(void 0===t&&(t=[]),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(n){return!!(u=n.call({lexer:i},e,t))&&(e=e.substring(u.raw.length),t.push(u),!0)}))))if(u=this.tokenizer.space(e))e=e.substring(u.raw.length),1===u.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(u);else if(u=this.tokenizer.code(e))e=e.substring(u.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?t.push(u):(n.raw+="\n"+u.raw,n.text+="\n"+u.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(u=this.tokenizer.fences(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.heading(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.hr(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.blockquote(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.list(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.html(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.def(e))e=e.substring(u.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[u.tag]||(this.tokens.links[u.tag]={href:u.href,title:u.title}):(n.raw+="\n"+u.raw,n.text+="\n"+u.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(u=this.tokenizer.table(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.lheading(e))e=e.substring(u.raw.length),t.push(u);else if(r=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,u=e.slice(1),n=void 0;i.options.extensions.startBlock.forEach((function(e){"number"==typeof(n=e.call({lexer:this},u))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}(),this.state.top&&(u=this.tokenizer.paragraph(r)))n=t[t.length-1],o&&"paragraph"===n.type?(n.raw+="\n"+u.raw,n.text+="\n"+u.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(u),o=r.length!==e.length,e=e.substring(u.raw.length);else if(u=this.tokenizer.text(e))e=e.substring(u.raw.length),(n=t[t.length-1])&&"text"===n.type?(n.raw+="\n"+u.raw,n.text+="\n"+u.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(u);else if(e){var s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}return this.state.top=!0,t},i.inline=function(e,t){this.inlineQueue.push({src:e,tokens:t})},i.inlineTokens=function(e,t){var u,n,r,o=this;void 0===t&&(t=[]);var i,s,a,c=e;if(this.tokens.links){var l=Object.keys(this.tokens.links);if(l.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(c));)l.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,i.index)+"["+k("a",i[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,i.index)+"["+k("a",i[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(c));)c=c.slice(0,i.index)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(s||(a=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(u=n.call({lexer:o},e,t))&&(e=e.substring(u.raw.length),t.push(u),!0)}))))if(u=this.tokenizer.escape(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.tag(e))e=e.substring(u.raw.length),(n=t[t.length-1])&&"text"===u.type&&"text"===n.type?(n.raw+=u.raw,n.text+=u.text):t.push(u);else if(u=this.tokenizer.link(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(u.raw.length),(n=t[t.length-1])&&"text"===u.type&&"text"===n.type?(n.raw+=u.raw,n.text+=u.text):t.push(u);else if(u=this.tokenizer.emStrong(e,c,a))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.codespan(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.br(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.del(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.autolink(e,I))e=e.substring(u.raw.length),t.push(u);else if(this.state.inLink||!(u=this.tokenizer.url(e,I))){if(r=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,u=e.slice(1),n=void 0;o.options.extensions.startInline.forEach((function(e){"number"==typeof(n=e.call({lexer:this},u))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}(),u=this.tokenizer.inlineText(r,T))e=e.substring(u.raw.length),"_"!==u.raw.slice(-1)&&(a=u.raw.slice(-1)),s=!0,(n=t[t.length-1])&&"text"===n.type?(n.raw+=u.raw,n.text+=u.text):t.push(u);else if(e){var D="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(D);break}throw new Error(D)}}else e=e.substring(u.raw.length),t.push(u);return t},n=u,o=[{key:"rules",get:function(){return{block:j,inline:O}}}],(r=null)&&t(n.prototype,r),o&&t(n,o),Object.defineProperty(n,"prototype",{writable:!1}),u}(),P=function(){function t(t){this.options=t||e.defaults}var u=t.prototype;return u.code=function(e,t,u){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,n);null!=r&&r!==e&&(u=!0,e=r)}return e=e.replace(/\n$/,"")+"\n",n?'<pre><code class="'+this.options.langPrefix+D(n,!0)+'">'+(u?e:D(e,!0))+"</code></pre>\n":"<pre><code>"+(u?e:D(e,!0))+"</code></pre>\n"},u.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},u.html=function(e){return e},u.heading=function(e,t,u,n){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+n.slug(u)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},u.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},u.list=function(e,t,u){var n=t?"ol":"ul";return"<"+n+(t&&1!==u?' start="'+u+'"':"")+">\n"+e+"</"+n+">\n"},u.listitem=function(e){return"<li>"+e+"</li>\n"},u.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},u.paragraph=function(e){return"<p>"+e+"</p>\n"},u.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},u.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},u.tablecell=function(e,t){var u=t.header?"th":"td";return(t.align?"<"+u+' align="'+t.align+'">':"<"+u+">")+e+"</"+u+">\n"},u.strong=function(e){return"<strong>"+e+"</strong>"},u.em=function(e){return"<em>"+e+"</em>"},u.codespan=function(e){return"<code>"+e+"</code>"},u.br=function(){return this.options.xhtml?"<br/>":"<br>"},u.del=function(e){return"<del>"+e+"</del>"},u.link=function(e,t,u){if(null===(e=F(this.options.sanitize,this.options.baseUrl,e)))return u;var n='<a href="'+D(e)+'"';return t&&(n+=' title="'+t+'"'),n+=">"+u+"</a>"},u.image=function(e,t,u){if(null===(e=F(this.options.sanitize,this.options.baseUrl,e)))return u;var n='<img src="'+e+'" alt="'+u+'"';return t&&(n+=' title="'+t+'"'),n+=this.options.xhtml?"/>":">"},u.text=function(e){return e},t}(),N=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,u){return""+u},t.image=function(e,t,u){return""+u},t.br=function(){return""},e}(),U=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var u=e,n=0;if(this.seen.hasOwnProperty(u)){n=this.seen[e];do{u=e+"-"+ ++n}while(this.seen.hasOwnProperty(u))}return t||(this.seen[e]=n,this.seen[u]=0),u},t.slug=function(e,t){void 0===t&&(t={});var u=this.serialize(e);return this.getNextSafeSlug(u,t.dryrun)},e}(),L=function(){function t(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new P,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new N,this.slugger=new U}t.parse=function(e,u){return new t(u).parse(e)},t.parseInline=function(e,u){return new t(u).parseInline(e)};var u=t.prototype;return u.parse=function(e,t){void 0===t&&(t=!0);var u,n,r,o,i,s,a,c,l,D,f,p,h,m,g,F,A,C,E,b="",v=e.length;for(u=0;u<v;u++)if(D=e[u],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[D.type])||!1===(E=this.options.extensions.renderers[D.type].call({parser:this},D))&&["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(D.type))switch(D.type){case"space":continue;case"hr":b+=this.renderer.hr();continue;case"heading":b+=this.renderer.heading(this.parseInline(D.tokens),D.depth,d(this.parseInline(D.tokens,this.textRenderer)),this.slugger);continue;case"code":b+=this.renderer.code(D.text,D.lang,D.escaped);continue;case"table":for(c="",a="",o=D.header.length,n=0;n<o;n++)a+=this.renderer.tablecell(this.parseInline(D.header[n].tokens),{header:!0,align:D.align[n]});for(c+=this.renderer.tablerow(a),l="",o=D.rows.length,n=0;n<o;n++){for(a="",i=(s=D.rows[n]).length,r=0;r<i;r++)a+=this.renderer.tablecell(this.parseInline(s[r].tokens),{header:!1,align:D.align[r]});l+=this.renderer.tablerow(a)}b+=this.renderer.table(c,l);continue;case"blockquote":l=this.parse(D.tokens),b+=this.renderer.blockquote(l);continue;case"list":for(f=D.ordered,p=D.start,h=D.loose,o=D.items.length,l="",n=0;n<o;n++)F=(g=D.items[n]).checked,A=g.task,m="",g.task&&(C=this.renderer.checkbox(F),h?g.tokens.length>0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=C+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=C+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:C}):m+=C),m+=this.parse(g.tokens,h),l+=this.renderer.listitem(m,A,F);b+=this.renderer.list(l,f,p);continue;case"html":b+=this.renderer.html(D.text);continue;case"paragraph":b+=this.renderer.paragraph(this.parseInline(D.tokens));continue;case"text":for(l=D.tokens?this.parseInline(D.tokens):D.text;u+1<v&&"text"===e[u+1].type;)l+="\n"+((D=e[++u]).tokens?this.parseInline(D.tokens):D.text);b+=t?this.renderer.paragraph(l):l;continue;default:var y='Token with "'+D.type+'" type was not found.';if(this.options.silent)return void console.error(y);throw new Error(y)}else b+=E||"";return b},u.parseInline=function(e,t){t=t||this.renderer;var u,n,r,o="",i=e.length;for(u=0;u<i;u++)if(n=e[u],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type])||!1===(r=this.options.extensions.renderers[n.type].call({parser:this},n))&&["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type))switch(n.type){case"escape":o+=t.text(n.text);break;case"html":o+=t.html(n.text);break;case"link":o+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":o+=t.image(n.href,n.title,n.text);break;case"strong":o+=t.strong(this.parseInline(n.tokens,t));break;case"em":o+=t.em(this.parseInline(n.tokens,t));break;case"codespan":o+=t.codespan(n.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(n.tokens,t));break;case"text":o+=t.text(n.text);break;default:var s='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(s);throw new Error(s)}else o+=r||"";return o},t}();function M(e,t,u){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(u=t,t=null),x(t=y({},M.defaults,t||{})),u){var n,r=t.highlight;try{n=R.lex(e,t)}catch(e){return u(e)}var o=function(e){var o;if(!e)try{t.walkTokens&&M.walkTokens(n,t.walkTokens),o=L.parse(n,t)}catch(t){e=t}return t.highlight=r,e?u(e):u(null,o)};if(!r||r.length<3)return o();if(delete t.highlight,!n.length)return o();var i=0;return M.walkTokens(n,(function(e){"code"===e.type&&(i++,setTimeout((function(){r(e.text,e.lang,(function(t,u){if(t)return o(t);null!=u&&u!==e.text&&(e.text=u,e.escaped=!0),0==--i&&o()}))}),0))})),void(0===i&&o())}try{var s=R.lex(e,t);return t.walkTokens&&M.walkTokens(s,t.walkTokens),L.parse(s,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+D(e.message+"",!0)+"</pre>";throw e}}M.options=M.setOptions=function(t){var u;return y(M.defaults,t),u=M.defaults,e.defaults=u,M},M.getDefaults=r,M.defaults=e.defaults,M.use=function(){for(var e=arguments.length,t=new Array(e),u=0;u<e;u++)t[u]=arguments[u];var n,r=y.apply(void 0,[{}].concat(t)),o=M.defaults.extensions||{renderers:{},childTokens:{}};t.forEach((function(e){if(e.extensions&&(n=!0,e.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if(e.renderer){var t=o.renderers?o.renderers[e.name]:null;o.renderers[e.name]=t?function(){for(var u=arguments.length,n=new Array(u),r=0;r<u;r++)n[r]=arguments[r];var o=e.renderer.apply(this,n);return!1===o&&(o=t.apply(this,n)),o}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");o[e.level]?o[e.level].unshift(e.tokenizer):o[e.level]=[e.tokenizer],e.start&&("block"===e.level?o.startBlock?o.startBlock.push(e.start):o.startBlock=[e.start]:"inline"===e.level&&(o.startInline?o.startInline.push(e.start):o.startInline=[e.start]))}e.childTokens&&(o.childTokens[e.name]=e.childTokens)}))),e.renderer&&function(){var t=M.defaults.renderer||new P,u=function(u){var n=t[u];t[u]=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var s=e.renderer[u].apply(t,o);return!1===s&&(s=n.apply(t,o)),s}};for(var n in e.renderer)u(n);r.renderer=t}(),e.tokenizer&&function(){var t=M.defaults.tokenizer||new S,u=function(u){var n=t[u];t[u]=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var s=e.tokenizer[u].apply(t,o);return!1===s&&(s=n.apply(t,o)),s}};for(var n in e.tokenizer)u(n);r.tokenizer=t}(),e.walkTokens){var t=M.defaults.walkTokens;r.walkTokens=function(u){e.walkTokens.call(this,u),t&&t.call(this,u)}}n&&(r.extensions=o),M.setOptions(r)}))},M.walkTokens=function(e,t){for(var u,r=function(){var e=u.value;switch(t.call(M,e),e.type){case"table":for(var r,o=n(e.header);!(r=o()).done;){var i=r.value;M.walkTokens(i.tokens,t)}for(var s,a=n(e.rows);!(s=a()).done;)for(var c,l=n(s.value);!(c=l()).done;){var D=c.value;M.walkTokens(D.tokens,t)}break;case"list":M.walkTokens(e.items,t);break;default:M.defaults.extensions&&M.defaults.extensions.childTokens&&M.defaults.extensions.childTokens[e.type]?M.defaults.extensions.childTokens[e.type].forEach((function(u){M.walkTokens(e[u],t)})):e.tokens&&M.walkTokens(e.tokens,t)}},o=n(e);!(u=o()).done;)r()},M.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");x(t=y({},M.defaults,t||{}));try{var u=R.lexInline(e,t);return t.walkTokens&&M.walkTokens(u,t.walkTokens),L.parseInline(u,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+D(e.message+"",!0)+"</pre>";throw e}},M.Parser=L,M.parser=L.parse,M.Renderer=P,M.TextRenderer=N,M.Lexer=R,M.lexer=R.lex,M.Tokenizer=S,M.Slugger=U,M.parse=M;var z=M.options,$=M.setOptions,q=M.use,H=M.walkTokens,J=M.parseInline,G=M,Y=L.parse,V=R.lex;e.Lexer=R,e.Parser=L,e.Renderer=P,e.Slugger=U,e.TextRenderer=N,e.Tokenizer=S,e.getDefaults=r,e.lexer=V,e.marked=M,e.options=z,e.parse=G,e.parseInline=J,e.parser=Y,e.setOptions=$,e.use=q,e.walkTokens=H,Object.defineProperty(e,"__esModule",{value:!0})}(t)},"./node_modules/process/browser.js":function(e,t){var u,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(u===setTimeout)return setTimeout(e,0);if((u===o||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}!function(){try{u="function"==typeof setTimeout?setTimeout:o}catch(e){u=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var a,c=[],l=!1,D=-1;function f(){l&&a&&(l=!1,a.length?c=a.concat(c):D=-1,c.length&&d())}function d(){if(!l){var e=s(f);l=!0;for(var t=c.length;t;){for(a=c,c=[];++D<t;)a&&a[D].run();D=-1,t=c.length}a=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var u=1;u<arguments.length;u++)t[u-1]=arguments[u];c.push(new p(e,t)),1!==c.length||l||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},"./node_modules/webpack/buildin/global.js":function(e,t){var u;u=function(){return this}();try{u=u||new Function("return this")()}catch(e){"object"==typeof window&&(u=window)}e.exports=u},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./plugins/plugin.markdown.js":function(e,t,u){"use strict";u.r(t);var n=u("./includes/markdown.js"); /*! * Markdown Plugin */Genesys("registerPlugin","Markdown",(function(e){e.registerCommand("configure",(function(e){"boolean"==typeof(e.data||{}).enabled?(Object(n.configureMarkdown)(e.data),e.resolve()):e.reject("A boolean `enabled` is required")})),e.registerCommand("parse",(function(e){var t=(e.data||"").text;if(t&&""!==t){var u=Object(n.parseMarkdown)(e.data);return u?e.resolve(u):e.reject()}return e.reject("A string `text` is required to parse the markdown content")})),e.registerCommand("extend",(function(e){var t=(e.data||[]).extensions;t&&t.length?(Object(n.extendMarkdown)(e.data),e.resolve()):e.reject("An array `extensions` containing markdown extension is required")})),e.ready()}))},"./src/genesys.js":function(e,t,u){"use strict";u.r(t);u("./includes/cxbus.min.js"),u("./node_modules/cross-storage/lib/index.js");var n=u("./includes/util.js"); /*! * Local storage plugin * Provides utilities that manages both first party and cross domain local storage. */ Genesys("registerPlugin","LocalStorage",(function(e){var t=Object(n.c)(),u=["Identifiers","Journey","Engage","Launcher","MessagingService","Cookies","GenesysJS","Messenger","Auth","LocalStorageTest","SupportCenter","Knowledge","KnowledgeService","Home"];function r(e){return"".concat("_").concat(e)}function o(t,u,n){var r={};if(t&&"string"==typeof t){try{r=JSON.parse(t)}catch(t){e.log("Error parsing local storage data",t)}var o=r,i=o.value,s=o.ttl;s&&Date.now()>s?a(u).then((function(){e.publish("expired",{name:u}),n()})):n(i)}else n()}function i(e){return new Promise((function(t,u){var n=r(e);window.localStorage?o(localStorage.getItem(n),e,t):u("Your browser does not support localStorage")}))}function s(e,t,u){var n=u.expireInSecs;return new Promise((function(u,o){var i=null,s=r(e);n&&(i=Date.now()+1e3*n),window.localStorage?(localStorage.setItem(s,JSON.stringify({value:t,ttl:i})),u()):o("Your browser does not support localStorage")}))}function a(e){return new Promise((function(t,u){var n=r(e);window.localStorage?(localStorage.removeItem(n),t()):u("Your browser does not support localStorage")}))}e.registerCommand("get",(function(e){var t=e.data,n=t.name,r=t.names;if(e&&e.commander&&-1===u.indexOf(e.commander))return e.reject("".concat(e.commander," plugin does not have permission to access LocalStorage plugin"));if(!n&&!r)return e.reject(new Error("invalid parameters"));if(r&&Array.isArray(r)){var o={};r.forEach((function(t,u){i(t).then((function(n){if(o[t]=decodeURIComponent(n),u===r.length-1)return e.resolve(o)}))}))}else i(n).then((function(t){return t?e.resolve(decodeURIComponent(t)):e.resolve("".concat(n," not found"))})).catch((function(){return e.resolve("".concat(n," not found"))}))})),e.registerCommand("set",(function(t){var n=t.data,r=n.name,o=n.value,a=n.expireInSecs;if(t&&t.commander&&-1===u.indexOf(t.commander))return t.reject("".concat(t.commander," plugin does not have permission to access LocalStorage plugin"));r&&o||t.reject(new Error("invalid parameters"));var c=encodeURIComponent(o),l="";i(r).then((function(u){u?(l=u,s(r,c,{expireInSecs:a}).then((function(){var u="";i(r).then((function(n){return(u=n)!==l&&e.publish("localStorageChanged",{name:r,oldValue:l,newValue:u}),t.resolve(u)})).catch((function(){}))})).catch((function(){t.reject("could not set localstorage ".concat(r))}))):s(r,c,{expireInSecs:a}).then((function(){return e.publish("localStorageSet",{name:r,encodedValue:c}),t.resolve(c)}))}))})),e.registerCommand("remove",(function(t){var n=t.data.name;return t&&t.commander&&-1===u.indexOf(t.commander)?t.reject("".concat(t.commander," plugin doesn't have permission to access LocalStorage plugin")):n?void i(n).then((function(u){if(!u)return t.resolve();var r=u;a(n).then((function(){e.publish("localStorageChanged",{name:n,oldValue:r,newValue:null}),e.publish("localStorageRemoved",{name:n}),t.resolve()})).catch((function(){t.reject("could not remove ".concat(n," from the localstorage"))}))})):t.reject("invalid options")})),"LocalStorage"===t&&e.ready()}));var r=u("./node_modules/axios/index.js"),o=u.n(r);function i(e,t){var u=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),u.push.apply(u,n)}return u}function s(e,t,u){return t in e?Object.defineProperty(e,t,{value:u,enumerable:!0,configurable:!0,writable:!0}):e[t]=u,e}function a(e,t){return function(e){if(Array.isArray(e))return e} /*! * Auth Plugin * @version: 0.1.0 * @license: Genesys Telecom Labs */(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var u=[],n=!0,r=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(u.push(i.value),!t||u.length!==t);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw o}}return u}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var u=Object.prototype.toString.call(e).slice(8,-1);"Object"===u&&e.constructor&&(u=e.constructor.name);if("Map"===u||"Set"===u)return Array.from(e);if("Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var u=0,n=new Array(t);u<t;u++)n[u]=e[u];return n}Genesys("registerPlugin","Auth",(function(e){var t=Object(n.c)(),u="",r="",c=!1,l=e.data;function D(u){u&&(l("jwt",u),e.command("".concat(t,".set"),{name:"gcatkn",value:u}))}function f(){l("jwt",void 0),e.command("".concat(t,".remove"),{name:"gcatkn"}),l("refreshToken",void 0),e.command("".concat(t,".remove"),{name:"gcartkn"})}function d(t,u){var n=t||{},r=n.status,o=n.data;if(r)switch(r){case 401:case 403:l("refreshToken")?e.command("refreshToken").then((function(t){(t||{}).jwt?e.command("logout").then((function(e){u.resolve(e)})).catch((function(e){p(e),u.reject(e)})):(p(t),u.reject(t))}),(function(e){p(e),u.reject(e)})).catch((function(e){p(e),u.reject(e)})):(p(o),u.reject(o));break;default:p(o),u.reject(o)}else p(o),u.reject(o)}function p(t){var u=t||{},n=u.status,r=u.statusText,o=u.data;c=!1,l("authenticated",!1),f(),e.command("MessagingService.logout"),e.command("Launcher.hide"),e.publish("logoutError",{status:n,statusText:r,data:o})}l("authId",void 0),l("jwt",void 0),l("refreshToken",void 0),l("authenticated",!1),l("journeyContext",void 0),e.command("Identifiers.getJourneyContext").then((function(e){var t=e.customer,u=e.customerSession;if(t&&Object.keys(t).length&&u&&Object.keys(u).length){var r=l("journeyContext");l("journeyContext",Object(n.g)(!0,r,e))}})),e.command("".concat(t,".get"),{names:["gcatkn","gcartkn"]}).then((function(e){e.gcatkn&&"undefined"!==e.gcatkn&&(l("jwt",e.gcatkn),l("authenticated",!0)),e.gcartkn&&"undefined"!==e.gcartkn&&l("refreshToken",e.gcartkn)})),e.registerCommand("getTokens",(function(n){var i=n.data||{},s=i.deploymentConfig,a=i.snippetConfig,c=(s||{}).apiEndpoint,d=(a||{}).deploymentId;c&&(u=c),d&&(r=d),e.command("AuthProvider.getAuthCode",n.data).then((function(i){var s=i||{},a=s.authCode,c=s.redirectUri,d=s.nonce,p=s.maxAge,h=s.codeVerifier,m=s.iss;if(a&&c){var g={code:a,redirectUri:c};h&&(g.codeVerifier=h),d&&(g.nonce=d),p&&(g.maxAge=p),m&&(g.iss=m),l("authId",a),e.publish("authenticating",{authCode:a,redirectUri:c}),u&&r?o()({url:"".concat(u,"/api/v2/webdeployments/token/oauthcodegrantjwtexchange"),method:"post",responseType:"json",data:{deploymentId:r,oauth:g,journeyContext:l("journeyContext")||{}}}).then((function(u){var r=u&&u.data||{},o=r.jwt,i=r.refreshToken;o?(l("authenticated",!0),D(o),function(u){u&&(l("refreshToken",u),e.command("".concat(t,".set"),{name:"gcartkn",value:u}))}(i),e.publish("authenticated",{jwt:o,refreshToken:i}),n.resolve({jwt:o,refreshToken:i})):(l("authenticated",!1),e.publish("tokenError",JSON.parse({response:u})),n.reject("Invalid or no token received"))}),(function(t){var u=(t.response||{}).data;l("authenticated",!1),e.publish("error",u||{});var r=(t&&t.response||{}).status;if(r)switch(r){case 401:case 403:f(),e.command("AuthProvider.reAuthenticate").then((function(e){n.resolve(e)}));break;case 504:e.command("getTokens")}n.reject("Unable to fetch authentication token")})):n.reject("No configuration available")}else e.publish("authError",i),n.resolve()}),(function(t){var u=(t.response||{}).data;e.publish("authProviderError",u||{}),n.reject("Unable to get Authorization code")}))})),e.registerCommand("logout",(function(n){var i=(n.data||{}).forceClearCache,s=((l("GenesysJS.deploymentConfig")||{}||{}).messenger||{}).enabled,D="_gcmcopn";c=!0,l("authenticated")?(r&&(D="".concat(r,":gcmcopn")),s&&e.command("".concat(t,".get"),{name:D}).then((function(t){if(t){var u=a(t.split(":"),1)[0];u&&"string"==typeof u&&"true"===u&&e.command("Messenger.close")}})),i&&(l("authenticated",!1),f()),e.command("Identifiers.getSessionId").then((function(t){return o()({url:"".concat(u,"/api/v2/webdeployments/token/revoke"),method:"delete",headers:{Authorization:"Bearer ".concat(l("jwt")),"X-Journey-Session-Id":t,"X-Journey-Session-Type":"web"}}).then((function(t){204===(t||{}).status?(!function(t){var u=t||{},n=u.status,r=u.statusText,o=u.data;c=!1,l("authenticated",!1),f(),e.command("MessagingService.logout"),e.command("Launcher.hide"),e.publish("loggedOut",{status:n,statusText:r,data:o})}(t),n.resolve(JSON.parse(JSON.stringify({status:t.status||"",statusText:t.statusText||"",data:t.data||""})))):d(t,n)}),(function(e){d(e.response,n)}))})).catch((function(e){d(e.response,n)}))):n.reject("user is not authenticated")})),e.registerCommand("refreshToken",(function(t){l("refreshToken")?o()({url:"".concat(u,"/api/v2/webdeployments/token/refresh"),method:"post",responseType:"json",data:{refreshToken:l("refreshToken")}}).then((function(u){var n=(u&&u.data||{}).jwt;n?(l("authenticated",!0),D(n),e.publish("authenticated",{jwt:n}),t.resolve(u.data)):(l("authenticated",!1),e.publish("tokenError",u),t.reject("Invalid or no token received"))})).catch((function(u){var n=(u.response||{}).data;l("authenticated",!1),e.publish("error",n||{});var r=(u&&u.response||{}).status;if(c)c=!1,t.reject("Unable to fetch authentication token for logout");else if(r)switch(r){case 400:case 401:case 403:f(),e.command("AuthProvider.reAuthenticate").then((function(){e.command("getTokens").then((function(e){t.resolve(e)}))}));break;case 504:e.command("refreshToken")}t.reject("Unable to fetch authentication token")})):(f(),e.command("getTokens",{forceUpdate:!0}).then((function(e){t.resolve(e)})).catch((function(){l("authenticated",!1),t.reject("Unable to get tokens")})))})),e.registerCommand("configure",(function(e){var t=e.data||{},n=t.deploymentConfig,o=t.snippetConfig,i=(n||{}).apiEndpoint,s=(o||{}).deploymentId;i&&s?(u=i,r=s,e.resolve()):e.reject()})),e.registerCommand("reAuthenticate",(function(t){f(),e.command("AuthProvider.reAuthenticate").then((function(){e.command("getTokens").then((function(e){t.resolve(e)}))}))})),e.registerCommand("getSettings",(function(t){var u=e.data("AuthProvider.settings");t.resolve(u)})),e.subscribe("data.authenticated",(function(){e.publish("changed",{authenticated:l("authenticated"),jwt:l("jwt"),refreshToken:l("refreshToken")})})),e.subscribe("Journey.qualifiedWebMessagingOffer",(function(e){var t=e.data.journeyContext,u=l("journeyContext");t&&Object.keys(t).length&&l("journeyContext",Object(n.g)(u,function(e){for(var t=1;t<arguments.length;t++){var u=null!=arguments[t]?arguments[t]:{};t%2?i(Object(u),!0).forEach((function(t){s(e,t,u[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(u)):i(Object(u)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(u,t))}))}return e}({},t),{triggeringAction:t.triggeringAction}))})),e.subscribe("AuthProvider.ready",(function(){e.ready()}))}));var l="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),D=new Uint8Array(16);function f(){if(!l)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return l(D)}var d=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var p=function(e){return"string"==typeof e&&d.test(e)},h=[],m=0;m<256;++m)h.push((m+256).toString(16).substr(1));var g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,u=(h[e[t+0]]+h[e[t+1]]+h[e[t+2]]+h[e[t+3]]+"-"+h[e[t+4]]+h[e[t+5]]+"-"+h[e[t+6]]+h[e[t+7]]+"-"+h[e[t+8]]+h[e[t+9]]+"-"+h[e[t+10]]+h[e[t+11]]+h[e[t+12]]+h[e[t+13]]+h[e[t+14]]+h[e[t+15]]).toLowerCase();if(!p(u))throw TypeError("Stringified UUID is invalid");return u};var F,A=function(e,t,u){var n=(e=e||{}).random||(e.rng||f)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){u=u||0;for(var r=0;r<16;++r)t[u+r]=n[r];return t}return g(n)},C=u("./node_modules/es6-promise-polyfill/promise.js");function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var u=[],n=!0,r=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(u.push(i.value),!t||u.length!==t);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw o}}return u}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var u=Object.prototype.toString.call(e).slice(8,-1);"Object"===u&&e.constructor&&(u=e.constructor.name);if("Map"===u||"Set"===u)return Array.from(e);if("Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return b(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var u=0,n=new Array(t);u<t;u++)n[u]=e[u];return n}function v(e,t,u){return t in e?Object.defineProperty(e,t,{value:u,enumerable:!0,configurable:!0,writable:!0}):e[t]=u,e} /*! * Identifiers Plugin * Manages stable identifiers related to the end-customer. * * Originally ported from: https://bitbucket.org/inindca/predictive-engagement-sdk/src/master/src/cookies.js */var y=/^\d+\.\d+\.\d+$/,B=(v(F={},"CUSTOMER_ID",{name:"actmu",description:"Stable identifier of an anonymous end-customer."}),v(F,"SESSION_ID",{name:"actms",description:"Identifier of the current web session."}),v(F,"SESSION_TS",{name:"actts",description:"First, previous and current session start timestamps. [first.previous.current]"}),v(F,"SESSION_COUNT",{name:"actvc",description:"The total number of sessions."}),F);Genesys("registerPlugin","Identifiers",(function(e){var t=e.data,u=Object(n.c)();function r(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.name=B[n].name,e.command("".concat(u,".").concat(t),r)}function o(e){return!Object(n.d)(e)&&Object(n.f)(e)}function i(u){var i,a,c=u||{},l=c.forceNewCustomer,D=void 0!==l&&l,f=c.forceNewSession,d=void 0!==f&&f,p=c.touchDisabled,h=void 0!==p&&p,m=c.createDisabled,g=void 0!==m&&m,F=!1,b=!1,v=t("Cookies.domain");return r("get","CUSTOMER_ID").then((function(e){return g?i=o(e)?e:null:(b=D||!o(e),i=b?A():e),h&&!b||!o(i)?C.Promise.resolve():r("set","CUSTOMER_ID",{value:i,domain:v,expireInSecs:t("customerIdExpiryTime")})})).then((function(){return r("get","SESSION_ID")})).then((function(e){return o(i)?(g?a=o(e)?e:null:(F=d||b||!o(e),a=F?A():e),h&&!F||!o(a)?C.Promise.resolve():r("set","SESSION_ID",{value:a,domain:v,expireInSecs:t("sessionIdExpiryTime")})):(a=null,r("remove","SESSION_ID"))})).then((function(){return F?C.Promise.all([r("get","SESSION_TS"),r("get","SESSION_COUNT")]).then((function(e){var u,n,o,i=E(e,2),a=i[0],c=i[1],l=Math.ceil(Date.now()/1e3),D=parseInt(c,10)||0;if(b)u=l,n=l,o=l,D=1;else{var f=s(a);u=f.first,n=f.previous,n=o=f.current,o=l,D++}return C.Promise.all([r("set","SESSION_TS",{value:"".concat(u,".").concat(n,".").concat(o),domain:t("Cookies.domain"),expireInSecs:t("customerIdExpiryTime")}),r("set","SESSION_COUNT",{value:D,domain:t("Cookies.domain"),expireInSecs:t("customerIdExpiryTime")})])})):C.Promise.resolve()})).then((function(){var t={customerId:i,sessionId:a};return F&&e.publish("newSessionId",Object(n.a)(t)),b&&e.publish("newCustomerId",Object(n.a)(t)),t}))}function s(e){var t=Math.ceil(Date.now()/1e3),u=t,n=t,r=t;if(e&&y.test(e)){var o=E(e.split(".").map((function(e){return parseInt(e,10)||0})),3);u=o[0],n=o[1],r=o[2]}return{first:u,previous:n,current:r}}e.registerCommand("getSessionId",(function(e){return i().then((function(t){var u=t.sessionId;return e.resolve(u)})).catch(e.reject)})),e.registerCommand("getCustomerId",(function(e){return i().then((function(t){var u=t.customerId;return e.resolve(u)})).catch(e.reject)})),e.registerCommand("getAll",(function(e){return i(e.data).then(e.resolve).catch(e.reject)})),e.registerCommand("getSessionTimestamps",(function(e){return r("get","SESSION_TS").then((function(e){return s(e)})).then(e.resolve).catch(e.reject)})),e.registerCommand("getSessionCount",(function(e){return r("get","SESSION_COUNT").then(e.resolve).catch(e.reject)})),e.registerCommand("getJourneyContext",(function(e){return i(e.data).then((function(t){var u=t.customerId,n=t.sessionId;return e.resolve({customer:{id:u,idType:"cookie"},customerSession:{id:n,type:"web"}})})).catch(e.reject)})),e.registerCommand("purgeAll",(function(t){return C.Promise.all([r("remove","CUSTOMER_ID"),r("remove","SESSION_ID"),r("remove","SESSION_TS"),r("remove","SESSION_COUNT")]).then((function(){return e.publish("identifiersPurged"),t.resolve()})).catch(t.reject)})),e.registerEvents(["newSessionId","newCustomerId","identifiersPurged"]),e.subscribe("".concat(u,".ready"),(function(){!function(e){var n=e||{};t("customerIdExpiryTime",n.customerIdExpiryTime||31536e3),t("sessionIdExpiryTime",Math.min(t("customerIdExpiryTime"),n.sessionIdExpiryTime||1800));var o=t("Cookies.domain"),i="www.".concat(o);"Cookies"===u&&(r("remove","CUSTOMER_ID",{domain:i,recursive:!1}),r("remove","SESSION_ID",{domain:i,recursive:!1}))}(),e.ready()})),e.subscribe("Auth.loggedOut",(function(){e.command("purgeAll")})),e.subscribe("Auth.authenticated",(function(){i()}))}));var w=u("./includes/messengerHelper.html"),x=u.n(w);function k(e,t){if(null==e)return{};var u,n,r=function(e,t){if(null==e)return{};var u,n,r={},o=Object.keys(e);for(n=0;n<o.length;n++)u=o[n],t.indexOf(u)>=0||(r[u]=e[u]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)u=o[n],t.indexOf(u)>=0||Object.prototype.propertyIsEnumerable.call(e,u)&&(r[u]=e[u])}return r}function _(e,t){var u=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),u.push.apply(u,n)}return u}function S(e){for(var t=1;t<arguments.length;t++){var u=null!=arguments[t]?arguments[t]:{};t%2?_(Object(u),!0).forEach((function(t){j(e,t,u[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(u)):_(Object(u)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(u,t))}))}return e}function j(e,t,u){return t in e?Object.defineProperty(e,t,{value:u,enumerable:!0,configurable:!0,writable:!0}):e[t]=u,e}function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Genesys("registerPlugin","MessengerHelper",(function(e){var t=e.data,u=["MessagingService","Knowledge","KnowledgeService","SupportCenter"],r=!1,o=document.dir?document.dir.toLowerCase():"ltr";t("iFrameLoaded",!1);var i=x.a,s="",a="",c={alignment:"auto",sideSpace:20,bottomSpace:12},l={height:0,width:0},D={height:0,width:0},f={width:0,height:0},d="";function p(e){var t=e||{},u=t.sideSpace,n=t.bottomSpace,r=t.alignment;"undefined"!==u&&"number"==typeof u&&(c.sideSpace=u),"undefined"!==n&&"number"==typeof n&&(c.bottomSpace=n),r&&"string"==typeof r&&(c.alignment=r)}e.subscribe("ServiceDiscovery.ready",(function(){var t=window._webMessVersion?"/".concat(window._webMessVersion):"",u="".concat(e.data("ServiceDiscovery.uris.staticAssets"),"/messenger").concat(t,"/messenger.html");d="".concat(e.data("ServiceDiscovery.uris.configs")),i=i.replace("{url}",u)})),e.registerCommand("open",(function(u){if(t("iFrameLoaded"))u.reject("Messenger iframe is already open");else{var r=((u.data||{}).messenger||{}).preview,s=e.data("GenesysJS.deploymentConfig")||{},a=e.data("GenesysJS.snippetConfig")||{},l=(s||{}).position;l&&p(l),i=(i=i.replace("sideSpace","".concat(c.sideSpace,"px"))).replace("bottomSpace","".concat(c.bottomSpace,"px")),document.body.appendChild(Object(n.j)(i)),r||e.subscribe("Messenger.ready",(function(){e.command("Messenger.configure",{snippetConfig:a,deploymentConfig:s,deploymentId:a.deploymentId,config:S(S({},s.messenger),{},{documentDirection:o})})})),t("iFrameLoaded",!0),u.resolve()}})),e.registerCommand("update",(function(t){var u=((t.data||{}).messenger||{}).preview,n=e.data("GenesysJS.deploymentConfig")||{},r=e.data("GenesysJS.snippetConfig")||{};u||e.command("Messenger.configure",{snippetConfig:r,deploymentConfig:n,deploymentId:r.deploymentId,config:S(S({},n.messenger),{},{documentDirection:o})}),t.resolve()})),e.registerCommand("setDimension",(function(e){var t=document.getElementById("genesys-mxg-frame"),u=e.data,n=u.engage,r=u.launcher,o=u.conversations,i=u.toaster,s=0,a=0;if(r){var c=r||{},d=c.width,p=c.height,h=c.addClass,m=c.removeClass;a+=p,s+=d,l.height=a,l.width=s,f.width&&(s=f.width),t&&h&&h.map((function(e){return t.classList.add(e)})),t&&m&&m.map((function(e){return t.classList.remove(e)}))}else a=l.height,s=D.width?D.width:f.width?f.width:l.width;if(n){var g=n.width;a+=n.height,s=g||s,D.height?a=D.height:f.height&&(a+=f.height),D.width&&(s=D.width)}if(o){var F=o||{},A=(F.width,F.height);"90%"!==A&&"70%"!==A||"string"!=typeof a||(a=l.height);var C=function(e,t,u,n){var r=e.width,o=e.height,i=e.addClass,s=e.removeClass,a=u,c=n;return"string"==typeof o&&(a="calc(".concat(o," + ").concat(a,"px)")),"number"==typeof o&&(a+=o),t&&i&&i.map((function(e){return t.classList.add(e)})),t&&s&&s.map((function(e){return t.classList.remove(e)})),{iHeight:a,iWidth:c=r||c}}(o,t,a,s);a=C.iHeight,s=C.iWidth,D.height=a,D.width=s}else D.height=0,D.width=0;if(i){var E=i.width,b=i.height,v=i.addClass,y=i.removeClass;a+=b,s=E||s,f.height=b,f.width=E,D.width&&(s=D.width),D.height&&(a=D.height),t&&v&&v.map((function(e){return t.classList.add(e)})),t&&y&&y.map((function(e){return t.classList.remove(e)}))}t?(!function(e,t,u){"number"==typeof t&&e.style.setProperty("width","".concat(t,"px"),t>72?"":"important"),"number"==typeof u&&e.style.setProperty("height","".concat(u,"px"),"important"),"string"==typeof u&&(e.style.height=u)}(t,s,a),e.resolve()):e.reject("No styles or className provided for Messenger iFrame")})),e.registerCommand("setDirection",(function(e){var t=document.getElementById("genesys-mxg-frame"),u=e.data||{},n=u.direction,r=u.position;r&&p(r);var i=c.alignment;function s(){t.style.right="unset",t.style.left="".concat(c.sideSpace,"px"),t.style.bottom="".concat(c.bottomSpace,"px")}function a(){t.style.left="unset",t.style.right="".concat(c.sideSpace,"px"),t.style.bottom="".concat(c.bottomSpace,"px")}function l(e){switch(e){case"rtl":s();break;case"ltr":a()}}t&&(r||o)?"auto"===i?o?(l(o),e.resolve()):(l(n),e.resolve()):"left"===i?(s(),e.resolve()):"right"===i&&(a(),e.resolve()):e.reject("No alignment, styles or direction provided for Messenger iFrame")})),e.registerCommand("openWebSocket",(function(t){function u(){e.command("GenesysVendors.WebSocket").then((function(u){var r=(t.data||{}).endPoint;s&&s.removeAllListeners(),(s=new u(r)).open().then((function(u){s&&(s.onMessage.addListener((function(t){e.publish("onWebSocketMessage",JSON.parse(t))})),s.onClose.addListener((function(t){e.publish("onWebSocketClose",{code:t.code,reason:t.reason,returnValue:t.returnValue,timeStamp:t.timeStamp,type:t.type,wasClean:t.wasClean})})),s.onError.addListener((function(t){"object"===O(t)?e.publish("onWebSocketError",t):"string"==typeof t&&e.publish("onWebSocketError",JSON.parse({error:t}))})));var r=Object(n.h)(u);t.resolve(r)})).catch((function(e){t.reject(e)}))})).catch((function(e){var u=e.error;t.reject(u)}))}t&&"MessagingService"===t.commander?r?u():Genesys("loadPlugin","GenesysVendors",{},(function(){r=!0,u()})):t.reject("Unauthorized Access! Only MessagingService plugin is allowed to access this command.")})),e.registerCommand("closeWebSocket",(function(e){if(e&&"MessagingService"===e.commander){var t=e.data||{},u=t.code,n=t.reason;s&&s.close&&(u?s.close(u,n).catch((function(){})):s.close().catch((function(){})))}else e.reject("Unauthorized Access! Only MessagingService plugin is allowed to access this command.")})),e.registerCommand("sendOverSocket",(function(e){e&&"MessagingService"===e.commander?(s.send(JSON.stringify(e.data||{})),e.resolve()):e.reject("Unauthorized Access! Only MessagingService plugin is allowed to access this command.")})),e.registerCommand("getWebSocketData",(function(e){s?e.resolve({isClosed:s.isClosed,isOpened:s.isOpened,isClosing:s.isClosing}):e.reject("No WebSocket connection available.")})),e.registerCommand("makeRequest",(function(t){var n=t.data||{},o=n.url,i=n.method,s=n.responseType,a=n.headers,c=k(n,["url","method","responseType","headers"]);function l(){e.command("GenesysVendors.Axios").then((function(e){e(S({url:o,method:i,responseType:s||"json",headers:a},c)).then((function(e){t.resolve({data:e.data,headers:e.headers,status:e.status,statusText:e.statusText})}),(function(e){var u=e&&e.response?e.response:e;t.reject(JSON.parse(JSON.stringify(u||{})))})).catch((function(e){t.reject(JSON.parse(JSON.stringify(e||{})))}))})).catch((function(e){var u=e.error;t.reject(JSON.parse(JSON.stringify(u||{})))}))}t&&u.includes(t.commander)?r?l():Genesys("loadPlugin","GenesysVendors",{},(function(){r=!0,l()})):t.reject("Unauthorized Access! Only MessagingService plugin is allowed to access this command.")})),e.registerCommand("uploadRequest",(function(t){var n=t.data||{},o=n.url,i=n.headers,s=n.data;function c(){e.command("GenesysVendors.Axios").then((function(u){var n=u.CancelToken;a=n.source(),u.put(o,s,{headers:i,onUploadProgress:function(t){var u=t.loaded,n=t.total,r=Math.floor(100*u/n);e.publish("uploadProgress",{percentage:r,loaded:u,total:n})},cancelToken:a.token}).then((function(e){t.resolve({data:e.data,headers:e.headers,status:e.status,statusText:e.statusText})}),(function(e){t.reject(JSON.parse(JSON.stringify(e||{})))})).catch((function(e){t.reject(JSON.parse(JSON.stringify(e||{})))}))}))}t&&u.includes(t.commander)?r?c():Genesys("loadPlugin","GenesysVendors",{},(function(){r=!0,c()})):t.reject("Unauthorized Access! Only MessagingService plugin is allowed to access this command.")})),e.registerCommand("cancelRequest",(function(e){e&&u.includes(e.commander)?a&&(a.cancel(),a="",e.resolve()):e.reject("Unauthorized Access! Only MessagingService plugin is allowed to access this command.")})),e.registerCommand("getCustomLabels",(function(t){var u={},n=t.data.language,r=(e.data("GenesysJS.snippetConfig")||{}).deploymentId;r&&n?Genesys("loadJSON","".concat(d,"/").concat(r,"/").concat(n,".json"),(function(e){try{if(e){var n=JSON.parse(e);n.messenger&&(u=n.messenger,t.resolve({customLangLabels:u}))}}catch(e){t.reject(e)}}),(function(e){t.reject(e)})):t.reject("Deployment Id or language is not available")})),e.ready()})),Genesys("registerPlugin","Database",(function(e){var t=e.data,u=!1;function r(e){return null!==e&&"object"===T(e)&&!Array.isArray(e)&&Object.keys(e).length}function o(e,t){for(var u=t,n=e,r=(u=(u=u.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),o=0,i=r.length;o<i;++o){var s=r["".concat(o)];if(!(s&&n&&"object"===T(n)&&s in n))return null;n=n["".concat(s)]}return n}function i(e){return new Promise((function(t,n){if(!u&&e){var r=!1;for(var o in e)null!==e["".concat(o)]&&"object"===T(e["".concat(o)])?(r=!1,n("Nested object is not supported for custom attributes")):r=!0;r&&t(r)}else t(!0)}))}t("database",{}),e.registerCommand("set",(function(u){if(r(u.data)){var o=(u.data||{}).messaging,s=t("database");if(r(o)){var a=(o||{}).customAttributes;if(r(a))i(a).then((function(){var r=Object(n.g)(s,u.data);t("database",r),e.publish("updated",r),u.resolve(r)})).catch((function(e){u.reject(e)}));else if("object"!==T(a)||Array.isArray(a))u.reject("Custom attributes must be an object");else{var c=Object(n.g)(s,u.data);t("database",c),e.publish("updated",c),u.resolve(c)}}else if("object"!==T(o)||Array.isArray(o))u.reject("Messaging property must be an object");else{var l=Object(n.g)(s,u.data);t("database",l),e.publish("updated",l),u.resolve(l)}}else u.reject("Invalid option")})),e.registerCommand("update",(function(u){if(r(u.data)){var o=(u.data||{}).messaging,s=t("database");if(r(o)){var a=(o||{}).customAttributes;if(r(a))i(a).then((function(){var r=Object(n.g)(!0,s,u.data);t("database",r),e.publish("updated",r),u.resolve(r)})).catch((function(e){u.reject(e)}));else if("object"!==T(a)||Array.isArray(a))u.reject("Custom attributes must be an object");else{var c=Object(n.g)(!0,s,u.data);t("database",c),e.publish("updated",c),u.resolve(c)}}else if("object"!==T(o)||Array.isArray(o))u.reject("Messaging property must be an object");else{var l=Object(n.g)(!0,s,u.data);t("database",l),e.publish("updated",l),u.resolve(l)}}else u.reject("Invalid option")})),e.registerCommand("get",(function(e){var u=t("database");if(r(e.data)){var n=(e.data||"").name;if(n&&"string"==typeof n){var i=n.split("."),s=i&&i.reduce((function(e,t){return e&&Object.prototype.hasOwnProperty.call(e,t)?e["".concat(t)]:o(e,t)}),u);null!==s?e.resolve(s):e.reject("Property name does not exists")}else e.reject("Invalid option")}else e.resolve(u)})),e.registerCommand("remove",(function(u){var n=t("database");if(r(u.data)){var i=(u.data||"").name;if(i&&"string"==typeof i){var s=i.split(".");null!==(s&&s.reduce((function(e,t,u){if(e&&Object.prototype.hasOwnProperty.call(e,t))return u===s.length-1?(delete e["".concat(t)],n):e["".concat(t)];if(t.match(/\[(\w+)\]/g)){var r=t,i=(r=(r=r.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split(".");return u===s.length-1?Object.prototype.hasOwnProperty.call(e,i[0])&&Array.isArray(e["".concat(i[0])])&&i[1]<e["".concat(i[0])].length?(e["".concat(i[0])].splice(i[1],1),n):null:o(e,t)}return null}),n))?(t("database",n),e.publish("removed",n),u.resolve()):u.reject("Property name does not exists")}else u.reject("Invalid option")}else u.reject("Property name is mandatory")})),e.registerCommand("configure",(function(e){var t=e.data.enableNestedObject;"boolean"==typeof t&&(u=t),e.resolve()})),e.ready()}));u("./plugins/plugin.markdown.js"),u("./includes/plugin.support-center-helper.js");var I= /*! * Domain Check * Compares the a given domain name against a list of allowed domains from squonk. */ function(e,t){if(!e||!t||""===t)return!1;var u=e.allowedDomains&&Array.isArray(e.allowedDomains)?e.allowedDomains:[],n=t.toLowerCase();return!0===e.allowAllDomains||0!==u.length&&(u.length>0&&u.some((function(e){var t=e.toLowerCase();return t===n||(n.length>t.length&&n.slice(-".".concat(t).length)===".".concat(t)||void 0)})))};function R(e,t){for(var u=0;u<t.length;u++){var n=t[u];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}} /*! * Service Discovery * Resolves URIs and domains for the current env */ var P,N,U,L=u("./node_modules/@genesys/service-discovery-web-internal/index.umd.js").getEnvironments({}),M={staticAssets:{subdomain:"apps"},configs:{subdomain:"api-cdn",path:"/webdeployments/v1/deployments"},journeyPlugin:{subdomain:"apps",path:"/journey/messenger-plugins/journey.min.js"},supportCenterPlugin:{subdomain:"apps",path:"/support-center/support-center-plugins/main.min.js"},offersHelper:{subdomain:"apps",path:"/journey/messenger-plugins/offersHelper.min.js"},cobrowseService:{subdomain:"apps",path:"/cobrowse-next/sharer.min.js"},vendorsPlugin:{subdomain:"apps",path:"/genesys-bootstrap/plugins/genesysvendors.min.js"},messagingMiddleware:{subdomain:"apps",path:"/messenger/messagingMiddleware.min.js"},messagingService:{subdomain:"apps",path:"/messenger/messagingservice.min.js"},messagingTransport:{subdomain:"apps",path:"/messenger/genesyscloud-messaging-transport.mod.js"},messengerMain:{subdomain:"apps",path:"/messenger/main.min.js"},messengerEngage:{subdomain:"apps",path:"/messenger/engage.min.js"}},z=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var u=t;"use1"===(u=u.toLowerCase())?u="prod":"fedramp-use2"===u?u="fedramp-use2-core":["dev","test"].includes(u)||(u=u.includes("prod")||u.includes("fedramp-use2-core")?u:"prod-".concat(u));var n=L.find((function(e){return e.name===u})).publicDomainName;if(!n)throw new Error("invalid environment ".concat(u));this.environment=u,this.domain=n}var t,u,n;return t=e,(u=[{key:"getUri",value:function(e){var t=M[e];if(t){var u=t.protocol,n=void 0===u?"https:":u,r=t.subdomain,o=t.path;return"".concat(n,"//").concat(r,".").concat(this.domain).concat(o||"")}}},{key:"getDomain",value:function(e){var t=M[e];if(t){var u=t.subdomain;return"".concat(u,".").concat(this.domain)}}},{key:"resolveAllServices",value:function(){var e={};for(var t in M)if(Object.prototype.hasOwnProperty.call(M,t)){var u=this.getUri(t),n=this.getDomain(t);e[t]={uri:u,domain:n}}return e}}])&&R(t.prototype,u),n&&R(t,n),e}();U=M,(N="SERVICES")in(P=z)?Object.defineProperty(P,N,{value:U,enumerable:!0,configurable:!0,writable:!0}):P[N]=U;var $=z;var q={register:function(e){Genesys("registerPlugin","ServiceDiscovery",(function(t){!function(e,t){var u=t.data,n=e.resolveAllServices();for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(u("domains.".concat(r),n[r].domain),u("uris.".concat(r),n[r].uri))}(e,t),t.ready()}))}},H=!1;var J=function(e,t){var u=e.deploymentConfig.messenger||{},n=t.data;!0===u.enabled&&(H?n("MessengerHelper.iFrameLoaded")?t.command("MessengerHelper.update",e.deploymentConfig):t.command("MessengerHelper.open",e.deploymentConfig):(H=!0,t.log("Messenger enabled. Loading MessengerHelper plugin."),t.subscribe("MessengerHelper.ready",(function(){t.command("MessengerHelper.open",e.deploymentConfig)}))))},G=!1;var Y=function(e,t){!0!==(e.deploymentConfig.journeyEvents||{}).enabled||G||(G=!0,t.log("JourneyEvents enabled. Loading Journey plugin."),Genesys("loadPlugin","Journey",Object.assign({},e,{apiEndpoint:e.deploymentConfig.apiEndpoint,deploymentId:e.snippetConfig.deploymentId})))},V=!1;var Z=function(e,t){!0!==(e.deploymentConfig.supportCenter||{}).enabled||V||(V=!0,t.log("SupportCenter enabled. Start SupportCenterHelper configure."),t.subscribe("SupportCenterHelper.ready",(function(){t.command("SupportCenterHelper.configure",e)})))},X=!1;var W=!1;var Q=function(e,t){!0===(e.deploymentConfig.cobrowse||{}).enabled&&(W||(W=!0,t.log("Cobrowse enabled. Loading CobrowseService plugin."),Genesys("loadPlugin","CobrowseService")))},K=!1;var ee=function(e,t){var u=e.deploymentConfig.auth||{};u&&!0===u.enabled&&(K||(K=!0,t.log("Authentication enabled. Loading Auth plugin."),t.subscribe("Auth.ready",(function(){t.command("Auth.configure",e)}))))};function te(e){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)} /*! * %productTitle% * @version: %updateVersion% * @license: %copyright% */var ue,ne=Genesys.c||{},re=ne.environment,oe=ne.deploymentId,ie=ne.preview,se=ne.debug,ae=ne.debugConfig,ce=ne.debugConfigURL;if(!(re&&oe||ie))throw new Error("GenesysJS requires a deploymentId and environment to load.");var le=["cobrowse","supportCenter","position","messenger.launcherButton","messenger.styles","messenger.apps.conversations.markdown","messenger.homeScreen","messenger.apps.conversations.humanize"];try{ue=new $(re)}catch(e){throw new Error("GenesysJS could not initialise service discovery.",e)}Genesys("configure",{pluginspath:"".concat(ue.getUri("staticAssets"),"/genesys-bootstrap/plugins/"),pluginmap:{Journey:ue.getUri("journeyPlugin"),SupportCenter:ue.getUri("supportCenterPlugin"),OffersHelper:ue.getUri("offersHelper"),CobrowseService:ue.getUri("cobrowseService"),GenesysVendors:ue.getUri("vendorsPlugin"),MessagingMiddleware:ue.getUri("messagingMiddleware"),MessagingService:ue.getUri("messagingService"),Launcher:ue.getUri("messengerMain"),Engage:ue.getUri("messengerEngage")},modulemap:{"genesyscloud-messaging-transport":ue.getUri("messagingTransport")},childDomain:ue.getUri("staticAssets"),debug:!!se}),q.register(ue),Genesys("registerPlugin","GenesysJS",(function(e){var t=e.data,u=!1,r=!1;function o(t){r=!0;try{Y(t,e)}catch(t){e.log("Error loading the plugin",t)}}function i(t){u=!0;try{J(t,e)}catch(t){e.log("Error loading the plugin",t)}try{Z(t,e)}catch(t){e.log("Error loading the plugin",t)}try{Q(t,e)}catch(t){e.log("Error loading the plugin",t)}try{ee(t,e)}catch(t){e.log("Error loading the plugin",t)}try{!function(e,t){X||(X=!0,t.log("Loading OffersHelper plugin"),Genesys("loadPlugin","OffersHelper"))}(0,e)}catch(t){e.log("Error loading the offers plugin",t)}}t("snippetConfig",ne),e.registerCommand("getConfig",(function(u){if("GenesysJS"===u.commander){if(!0===se){if("object"===te(ae))return t("deploymentConfig",ae),void u.resolve(ae);if("string"==typeof ce)return void Genesys("loadJSON",ce,(function(e){var n=JSON.parse(e);t("deploymentConfig",n),u.resolve(n)}))}Genesys("loadJSON","".concat(ue.getUri("configs"),"/").concat(oe,"/domains.json"),(function(r){try{var o=JSON.parse(r);t("domains",o),e.publish("domainsReceived"),I(o,document.location.hostname)?Genesys("loadJSON","".concat(ue.getUri("configs"),"/").concat(oe,"/config.json"),(function(e){try{var r=JSON.parse(e);t("deploymentConfig",r),Object(n.i)(r,le).then((function(e){t("configuration",e)})),u.resolve(r)}catch(e){throw u.reject("Malformed JSON received.",e),new Error(e)}}),(function(e){u.reject("Could not retrieve deployment config.",e)})):e.publish("domainNotAllowed")}catch(e){throw u.reject("Malformed JSON received.",e),new Error(e)}}))}else u.reject("You are not allowed to call this command.")})),e.registerCommand("init",(function(n){var s={deploymentConfig:t("deploymentConfig"),snippetConfig:t("snippetConfig")},a=(s.deploymentConfig.auth||{}).enabled,c=t("Auth.authenticated")||!1;!r&&s.deploymentConfig&&o(s),u||a?a?c?n.reject("User is already authenticated."):e.command("Auth.getTokens",s).then((function(t){(t||{}).jwt?i(s):e.log("Authentication plugin is ready. Tokens are not available yet."),n.resolve()}),(function(){e.log("Authentication plugin is ready. Tokens are not available yet."),n.resolve()})).catch((function(){})):n.reject("GenesysJS products are already initialized."):s&&s.deploymentConfig?(i(s),n.resolve()):n.reject("Initializing GenesysJS requires configuration.")})),e.registerCommand("configuration",(function(e){var u=t("deploymentConfig");if(u&&Object.keys(u).length){var r=Object(n.b)();r&&Object.keys(r).length?e.resolve(r):e.reject("Deployment config is not available")}else e.reject("Deployment config is not available")})),ie?(J({deploymentConfig:{messenger:{enabled:!0,preview:!0}}},e),e.ready(),Genesys("executeQueue")):e.command("getConfig").then((function(t){e.log("Configuration Received",t);var u={deploymentConfig:t,snippetConfig:ne},n=u.deploymentConfig,r=n.status,s=(n.auth||{}).enabled;(e.republish("configurationReceived",u),r&&"Active"===r)&&(o(u),s&&!0===s?e.data("Auth.jwt")?i(u):e.subscribe("Auth.ready",(function(){e.command("Auth.getTokens",u).then((function(t){(t||{}).jwt?i(u):e.log("Authentication plugin is ready. Tokens are not available yet.")}),(function(){e.log("Authentication plugin is ready. Tokens are not available yet.")})).catch((function(){}))})):i(u));e.ready(),Genesys("executeQueue")}),(function(){e.ready(),Genesys("executeQueue")}))}))}});