/*! For license information please see LICENSES */ (window.webpackJsonp=window.webpackJsonp||[]).push([[6],{0:function(t,e,n){"use strict";n.d(e,"d",(function(){return x})),n.d(e,"l",(function(){return w})),n.d(e,"n",(function(){return _})),n.d(e,"m",(function(){return S})),n.d(e,"f",(function(){return O})),n.d(e,"b",(function(){return j})),n.d(e,"s",(function(){return E})),n.d(e,"h",(function(){return T})),n.d(e,"i",(function(){return k})),n.d(e,"e",(function(){return C})),n.d(e,"r",(function(){return $})),n.d(e,"k",(function(){return P})),n.d(e,"t",(function(){return I})),n.d(e,"o",(function(){return L})),n.d(e,"q",(function(){return A})),n.d(e,"g",(function(){return M})),n.d(e,"c",(function(){return F})),n.d(e,"j",(function(){return D})),n.d(e,"p",(function(){return U})),n.d(e,"a",(function(){return J})),n.d(e,"v",(function(){return G})),n.d(e,"u",(function(){return Q}));var r=n(15),o=n(10),c=n(28),f=n(23),l=(n(69),n(87),n(39),n(65),n(66),n(44),n(88),n(148),n(55),n(67),n(30),n(54),n(270),n(85),n(86),n(34),n(40),n(17),n(223),n(24),n(33),n(89),n(45),n(273),n(71),n(114),n(195),n(46),n(1)),d=n(16);function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f: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.")}var o,c=!0,f=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){f=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(f)throw o}}}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i1&&void 0!==arguments[1]?arguments[1]:"";return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e;return void 0===t[n]&&(t[n]=0),t[n]++}}function w(t){l.a.config.errorHandler&&l.a.config.errorHandler(t)}function _(t){return t.then((function(t){return t.default||t}))}function S(t){return t.$options&&"function"==typeof t.$options.fetch&&!t.$options.fetch.length}function O(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=m(t.$children||[]);try{for(r.s();!(e=r.n()).done;){var o=e.value;o.$fetch&&n.push(o),o.$children&&O(o,n)}}catch(t){r.e(t)}finally{r.f()}return n}function j(t,e){if(e||!t.options.__hasNuxtData){var n=t.options._originDataFn||t.options.data||function(){return{}};t.options._originDataFn=n,t.options.data=function(){var data=n.call(this,this);return this.$ssrContext&&(e=this.$ssrContext.asyncData[t.cid]),v(v({},data),e)},t.options.__hasNuxtData=!0,t._Ctor&&t._Ctor.options&&(t._Ctor.options.data=t.options.data)}}function E(t){return t.options&&t._Ctor===t||(t.options?(t._Ctor=t,t.extendOptions=t.options):(t=l.a.extend(t))._Ctor=t,!t.options.name&&t.options.__file&&(t.options.name=t.options.__file)),t}function T(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"components";return Array.prototype.concat.apply([],t.matched.map((function(t,r){return Object.keys(t[n]).map((function(o){return e&&e.push(r),t[n][o]}))})))}function k(t){return T(t,arguments.length>1&&void 0!==arguments[1]&&arguments[1],"instances")}function C(t,e){return Array.prototype.concat.apply([],t.matched.map((function(t,n){return Object.keys(t.components).reduce((function(r,o){return t.components[o]?r.push(e(t.components[o],t.instances[o],t,o,n)):delete t.components[o],r}),[])})))}function $(t,e){return Promise.all(C(t,function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(n,r,o,c){var f,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof n||n.options){t.next=11;break}return t.prev=1,t.next=4,n();case 4:n=t.sent,t.next=11;break;case 7:throw t.prev=7,t.t0=t.catch(1),t.t0&&"ChunkLoadError"===t.t0.name&&"undefined"!=typeof window&&window.sessionStorage&&(f=Date.now(),(!(l=parseInt(window.sessionStorage.getItem("nuxt-reload")))||l+6e4=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f: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.")}var o,f=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return f=t.done,t},e:function(t){l=!0,o=t},f:function(){try{f||null==n.return||n.return()}finally{if(l)throw o}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0?f.map((function(){return t(!1)})):t(!1))}};t.exports=r},197:function(t,e,n){var content=n(289);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(52).default)("199f1c5e",content,!0,{sourceMap:!1})},198:function(t,e,n){var content=n(291);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(52).default)("05b6c5ea",content,!0,{sourceMap:!1})},209:function(t,e,n){"use strict";function r(t,e){return e=e||{},new Promise((function(n,r){var s=new XMLHttpRequest,o=[],u={},a=function t(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:t,headers:{keys:function(){return o},entries:function(){return o.map((function(t){return[t,s.getResponseHeader(t)]}))},get:function(t){return s.getResponseHeader(t)},has:function(t){return null!=s.getResponseHeader(t)}}}};for(var i in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,(function(t,e){u[e]||o.push(u[e]=e)})),n(a())},s.onerror=r,s.withCredentials="include"==e.credentials,e.headers)s.setRequestHeader(i,e.headers[i]);s.send(e.body||null)}))}n.d(e,"a",(function(){return r}))},211:function(t,e,n){"use strict";var r=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===o}(t)}(t)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function c(t,e){return!1!==e.clone&&e.isMergeableObject(t)?v((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function f(t,source,e){return t.concat(source).map((function(element){return c(element,e)}))}function l(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(symbol){return Object.propertyIsEnumerable.call(t,symbol)})):[]}(t))}function d(object,t){try{return t in object}catch(t){return!1}}function h(t,source,e){var n={};return e.isMergeableObject(t)&&l(t).forEach((function(r){n[r]=c(t[r],e)})),l(source).forEach((function(r){(function(t,e){return d(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,r)||(d(t,r)&&e.isMergeableObject(source[r])?n[r]=function(t,e){if(!e.customMerge)return v;var n=e.customMerge(t);return"function"==typeof n?n:v}(r,e)(t[r],source[r],e):n[r]=c(source[r],e))})),n}function v(t,source,e){(e=e||{}).arrayMerge=e.arrayMerge||f,e.isMergeableObject=e.isMergeableObject||r,e.cloneUnlessOtherwiseSpecified=c;var n=Array.isArray(source);return n===Array.isArray(t)?n?e.arrayMerge(t,source,e):h(t,source,e):c(source,e)}v.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return v(t,n,e)}),{})};var m=v;t.exports=m},212:function(t,e,n){"use strict";(function(t){var r=n(213),o=n(214),c=n(215),f=setTimeout;function l(t){return Boolean(t&&void 0!==t.length)}function d(){}function h(t){if(!(this instanceof h))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],_(t,this)}function v(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,h._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(t){return void y(e.promise,t)}m(e.promise,r)}else(1===t._state?m:y)(e.promise,t._value)}))):t._deferreds.push(e)}function m(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof h)return t._state=3,t._value=e,void x(t);if("function"==typeof n)return void _((r=n,o=e,function(){r.apply(o,arguments)}),t)}t._state=1,t._value=e,x(t)}catch(e){y(t,e)}var r,o}function y(t,e){t._state=2,t._value=e,x(t)}function x(t){2===t._state&&0===t._deferreds.length&&h._immediateFn((function(){t._handled||h._unhandledRejectionFn(t._value)}));for(var i=0,e=t._deferreds.length;i-1&&(line=line.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var e=line.replace(/^\s+/,"").replace(/\(eval code/g,"(").split(/\s+/).slice(1),n=this.extractLocation(e.pop()),r=e.join(" ")||void 0,o=f(["eval",""],n[0])>-1?void 0:n[0];return new t(r,void 0,o,n[1],n[2],line)}),this)},parseFFOrSafari:function(e){return o(c(e.stack.split("\n"),(function(line){return!line.match(r)}),this),(function(line){if(line.indexOf(" > eval")>-1&&(line=line.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===line.indexOf("@")&&-1===line.indexOf(":"))return new t(line);var e=line.split("@"),n=this.extractLocation(e.pop()),r=e.join("@")||void 0;return new t(r,void 0,n[0],n[1],n[2],line)}),this)},parseOpera:function(t){return!t.stacktrace||t.message.indexOf("\n")>-1&&t.message.split("\n").length>t.stacktrace.split("\n").length?this.parseOpera9(t):t.stack?this.parseOpera11(t):this.parseOpera10(t)},parseOpera9:function(e){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),o=[],i=2,c=r.length;i/,"$2").replace(/\([^\)]*\)/g,"")||void 0;o.match(/\(([^\)]*)\)/)&&(e=o.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var f=void 0===e||"[arguments not available]"===e?void 0:e.split(",");return new t(c,f,r[0],r[1],r[2],line)}),this)}}})?r.apply(e,o):r)||(t.exports=c)}()},217:function(t,e){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t){return t&&t.__esModule?t:{default:t}}(n(1)),a={install:function(t,e){function n(t){return void 0===t}function a(t){u=n(t.symbol)?"":t.symbol,i=n(t.thousandsSeparator)?".":t.thousandsSeparator,s=n(t.fractionCount)?0:t.fractionCount,c=n(t.fractionSeparator)?",":t.fractionSeparator,f=n(t.symbolPosition)?"front":t.symbolPosition,l=!!n(t.symbolSpacing)||t.symbolSpacing}n(e)&&(e={});var u="",i=".",s=0,c=",",f="front",l=!0;a(e),t.filter("currency",(function(t,p,d,h,v,b,m){a(e),"object"===(void 0===p?"undefined":r(p))&&(d=p.thousandsSeparator,h=p.fractionCount,v=p.fractionSeparator,b=p.symbolPosition,m=p.symbolSpacing,p=p.symbol),n(p)||(u=p),n(d)||(i=d),n(h)||(s=h),n(v)||(c=v),n(b)||(f=b),n(m)||(l=m);var g=0,y="-"===String(t).charAt(0);y&&(t=String(t).slice(1));var x=parseFloat(t);isNaN(x)||(g=x);var w;return w="front"===f?l?"%s %v":"%s%v":l?"%v %s":"%v%s",s>0&&(t=o.default.toFixed(t,s)),g=o.default.formatMoney(t,{format:w,symbol:u,precision:s,thousand:i,decimal:c}),y&&(g="-"+g),g}))}};e.default=a},function(t,e,n){!function(n,r){var o={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},a=Array.prototype.map,u=Array.isArray,i=Object.prototype.toString;function s(t){return!!(""===t||t&&t.charCodeAt&&t.substr)}function c(t){return u?u(t):"[object Array]"===i.call(t)}function f(t){return t&&"[object Object]"===i.call(t)}function l(t,e){var n;for(n in t=t||{},e=e||{})e.hasOwnProperty(n)&&null==t[n]&&(t[n]=e[n]);return t}function p(t,e,n){var r,o,u=[];if(!t)return u;if(a&&t.map===a)return t.map(e,n);for(r=0,o=t.length;r3?s.length%3:0;return i+(h?s.substr(0,h)+a.thousand:"")+s.substr(h).replace(/(\d{3})(?=\d)/g,"$1"+a.thousand)+(u?a.decimal+b(Math.abs(t),u).split(".")[1]:"")},g=o.formatMoney=function(t,e,n,r,a,u){if(c(t))return p(t,(function(t){return g(t,e,n,r,a,u)}));t=v(t);var i=l(f(e)?e:{symbol:e,precision:n,thousand:r,decimal:a,format:u},o.settings.currency),s=h(i.format);return(t>0?s.pos:t<0?s.neg:s.zero).replace("%s",i.symbol).replace("%v",m(Math.abs(t),d(i.precision),i.thousand,i.decimal))};o.formatColumn=function(t,e,n,r,a,u){if(!t)return[];var i=l(f(e)?e:{symbol:e,precision:n,thousand:r,decimal:a,format:u},o.settings.currency),b=h(i.format),g=b.pos.indexOf("%s")0?b.pos:t<0?b.neg:b.zero).replace("%s",i.symbol).replace("%v",m(Math.abs(t),d(i.precision),i.thousand,i.decimal));return n.length>y&&(y=n.length),n})),(function(t,e){return s(t)&&t.length0)){t.next=19;break}return t.next=19,new Promise((function(t){return setTimeout(t,r)}));case 19:this.$fetchState.error=e,this.$fetchState.pending=!1,this.$fetchState.timestamp=Date.now(),this.$nextTick((function(){return o.$nuxt.nbFetching--}));case 23:case"end":return t.stop()}}),t,this,[[6,11]])})))).apply(this,arguments)}e.a={beforeCreate:function(){Object(c.m)(this)&&(this._fetchDelay="number"==typeof this.$options.fetchDelay?this.$options.fetchDelay:200,o.a.util.defineReactive(this,"$fetchState",{pending:!1,error:null,timestamp:Date.now()}),this.$fetch=v.bind(this),Object(c.a)(this,"created",d),Object(c.a)(this,"beforeMount",l))}}},219:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));n(30),n(17),n(70);var r={},o={},c={};function f(t,e){if(r[t])return Promise.resolve(r[t]);if(c[t])return Promise.reject(c[t]);if(o[t])return o[t];var n,f,l=o[t]=new Promise((function(t,e){n=t,f=e}));delete r[t];var d,script=document.createElement("script");script.charset="utf-8",script.timeout=120,script.src=e;var h=new Error,v=script.onerror=script.onload=function(e){if(clearTimeout(d),delete o[t],script.onerror=script.onload=null,r[t])return n(r[t]);var l=e&&("load"===e.type?"missing":e.type),v=e&&e.target&&e.target.src;h.message="Loading chunk "+t+" failed.\n("+l+": "+v+")",h.name="ChunkLoadError",h.type=l,h.request=v,c[t]=h,f(h)};return d=setTimeout((function(){v({type:"timeout",target:script})}),12e4),document.head.appendChild(script),l}function l(){window.__NUXT_JSONP__=function(t,e){r[t]=e},window.__NUXT_JSONP_CACHE__=r,window.__NUXT_IMPORT__=f}},220:function(t,e,n){"use strict";n.d(e,"a",(function(){return Tn}));var r=n(212),o={};l?o=window:"undefined"!=typeof self&&(o=self);var c="Promise"in o?o.Promise:r.a,f=[].slice,l="undefined"!=typeof window,d=l&&"undefined"!=typeof performance?performance:{};for(var h=[],v=0;v<256;++v)h[v]=(v+256).toString(16).substr(1);var m=new Uint8Array(16);function y(t){return function(t){for(var e=[],n=0;n0)return n}}()}}function k(t){return E(t,f.call(arguments,1),!1)}function C(t){return E(t,f.call(arguments,1),!0)}function $(t){return void 0===t}function P(){}function R(t){return t.replace(/[.*"]/g,"_")}function I(t,e){for(var n=null,r=0;r=0?time:N()}function A(t,e){return $(e)||$(t)?null:parseInt(e-t)}function M(t){c.resolve().then(t)}function F(){return"function"==typeof d.getEntriesByType}function D(t){return"undefined"!=typeof PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.indexOf(t)>=0}function U(){return"interactionCount"in performance}function B(t){return t.redirectStart>0}var H={fetchInProgress:!1};function z(t){return"__apm_symbol__"+t}function V(t,e,n){for(var r=t;r&&!r.hasOwnProperty(e);)r=Object.getPrototypeOf(r);!r&&t[e]&&(r=t);var o,c,f,l,d=z(e);if(r&&!(o=r[d])){o=r[d]=r[e];var desc=r&&Object.getOwnPropertyDescriptor(r,e);if(!(l=desc)||!1!==l.writable&&("function"!=typeof l.get||void 0!==l.set)){var h=n(o,d,e);r[e]=function(){return h(this,arguments)},c=r[e],f=o,c[z("OriginalDelegate")]=f}}return o}var K=z("xhrIgnore"),X=z("xhrSync"),J=z("xhrURL"),G=z("xhrMethod"),Q="schedule",W="invoke",Y="addEventListener",Z=["link","css","script","img","xmlhttprequest","fetch","beacon","iframe"],tt=3e5,et="page-load",nt="custom",ot="user-interaction",it="http-request",at="temporary",st="Unknown",ct="page-exit",ut=[et,"route-change",ot,it,nt,at],ft=60,lt="transaction:end",pt="config:change",ht="queue:flush",vt="queue:add_transaction",mt="transaction:ignore",gt="xmlhttprequest",yt="fetch",bt="history",xt="eventtarget",wt="click",_t="error",St=":after",Ot="elastic_apm_config",jt="longtask",Et="largest-contentful-paint",Tt="first-input",kt="layout-shift",Ct="errors",$t="transactions",Pt="ConfigService",Rt="LoggingService",It="TransactionService",Nt="ApmServer",Lt="PerformanceMonitoring",At="ErrorLogging",Mt=".truncated",qt=1024;function Ft(t){var e=XMLHttpRequest.prototype;if(e&&e[Y])var n="readystatechange",r="load",o="error",c=V(e,"open",(function(){return function(t,e){return t[K]||(t[G]=e[0],t[J]=e[1],t[X]=!1===e[2]),c.apply(t,e)}})),f=V(e,"send",(function(){return function(e,c){if(e[K])return f.apply(e,c);var d={source:gt,state:"",type:"macroTask",data:{target:e,method:e[G],sync:e[X],url:e[J],status:""}};try{return function(e){if(e.state!==Q){e.state=Q,t(Q,e);var c=e.data.target;f(n),f(r),f("timeout"),f(o),f("abort")}function f(t){c[Y](t,(function(t){var o=t.type;o===n?4===c.readyState&&0!==c.status&&l(e,"success"):l(e,o===r?"success":o)}))}}(d),f.apply(e,c)}catch(t){throw l(d,o),t}}}));function l(e,n){e.state!==W&&(e.state=W,e.data.status=n,t(W,e))}}function Dt(t){return!(0===t||t>399&&t<600)}function Ut(){return Ut=Object.assign||function(t){for(var i=1;i-1&&n.observers[t].splice(r,1)}},e.sendOnly=function(t,e){var n=this.observers[t];n&&n.forEach((function(t){try{t.apply(void 0,e)}catch(t){console.log(t,t.stack)}}))},e.send=function(t,e){this.sendOnly(t+":before",e),this.sendOnly(t,e),this.sendOnly(t+St,e)},t}(),Kt=new Vt,Xt=!1;function Jt(){return Xt||(Xt=!0,Ft((function(t,e){Kt.send(gt,[t,e])})),zt((function(t,e){Kt.send(yt,[t,e])})),function(t){if(window.history){var e=history.pushState;"function"==typeof e&&(history.pushState=function(n,title,r){t(W,{source:bt,data:{state:n,title:title,url:r}}),e.apply(this,arguments)})}}((function(t,e){Kt.send(bt,[t,e])}))),Kt}var Gt=!1,Qt={bootstrapTime:null,lastHiddenStart:Number.MIN_SAFE_INTEGER},Wt=!1;function Yt(t,e){var n=e.error,r=e.filename,o=e.lineno,c=e.colno,f=[];if(n)try{f=t.parse(n)}catch(t){}return function(t){return 0!==t.length&&(1!==t.length||"lineNumber"in t[0])}(f)||(f=[{fileName:r,lineNumber:o,columnNumber:c}]),f.map((function(t){return t.functionName&&(t.functionName=(e=t.functionName,n=e.split("/"),e=n.length>1?["Object",n[n.length-1]].join("."):n[0],e=(n=(e=(e=e.replace(/.<$/gi,".")).replace(/^Anonymous function$/,"")).split(".")).length>1?n[n.length-1]:n[0])),t;var e,n})).map((function(t){var e=t.fileName,n=t.lineNumber,r=t.columnNumber,o=t.functionName,c=void 0===o?"":o;if(!e&&!n)return{};if(!r&&!n)return{};var f,l,d=function(t){return void 0===t&&(t=""),""===t&&(t=""),t}(e),h=(f=d,l=window.location.origin||window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""),f.indexOf(l)>-1&&(f=f.replace(l+"/","")),f);return function(t){return!!t&&0===window.location.href.indexOf(t)}(d)&&(h="(inline script)"),{abs_path:e,filename:h,function:c,lineno:n,colno:r}}))}var Zt=[["#","hash"],["?","query"],["/","path"],["@","auth",1],[NaN,"host",void 0,1]],te=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,ee=function(){function t(t){var e,n=this.extractProtocol(t||""),r=n.protocol,address=n.address,o=n.slashes,c=!r&&!o,f=this.getLocation(),l=Zt.slice();address=address.replace("\\","/"),o||(l[2]=[NaN,"path"]);for(var i=0;i=0||(n[e]=source[e]);return n}(n,ne)),o=se(),c={};if(t.type===ct)t.ensureContext(),t.context.page&&t.context.page.url&&(o.page.url=t.context.page.url);else if(t.type===et&&F()){var f=d.getEntriesByType("navigation");f&&f.length>0&&(c={response:ie(f[0])})}t.addContext(o,c,r)}var fe={service:{name:[qt,!0],version:!0,agent:{version:[qt,!0]},environment:!0},labels:{"*":!0}},le={"*":!0,headers:{"*":!0}},de={user:{id:!0,email:!0,username:!0},tags:{"*":!0},http:{response:le},destination:{address:[qt],service:{"*":[qt,!0]}},response:le},pe={name:[qt,!0],type:[qt,!0],id:[qt,!0],trace_id:[qt,!0],parent_id:[qt,!0],transaction_id:[qt,!0],subtype:!0,action:!0,context:de},he={name:!0,parent_id:!0,type:[qt,!0],id:[qt,!0],trace_id:[qt,!0],span_count:{started:[qt,!0]},context:de},ve={id:[qt,!0],trace_id:!0,transaction_id:!0,parent_id:!0,culprit:!0,exception:{type:!0},transaction:{type:!0},context:de};function me(t){return null==t||""===t||void 0===t}function ge(t,e,n){var r=function(t,e,n,r){return void 0===e&&(e=qt),void 0===n&&(n=!1),void 0===r&&(r="N/A"),n&&me(t)&&(t=r),"string"==typeof t?t.substring(0,e):t}(t[e],n[0],n[1]);me(r)?delete t[e]:t[e]=r}function ye(t,e,n){void 0===t&&(t={}),void 0===n&&(n=e);for(var r=Object.keys(t),o=[],c=function(i){var c=r[i],f=!0===t[c]?o:t[c];Array.isArray(f)?"*"===c?Object.keys(n).forEach((function(t){return ge(n,t,f)})):ge(n,c,f):ye(f,e,n[c])},i=0;i=0)){var o=t[r];if(null!=o&&"function"!=typeof o){if("object"==typeof o){if("function"!=typeof o.toISOString)return;o=o.toISOString()}n[r]=o,e=!0}}})),e)return n}(c);h&&(d.custom=h)}l||f&&f.indexOf(":")>-1&&(l=f.split(":")[0]);var v=this._transactionService.getCurrentTransaction(),m=v?v.context:{},x=this._configService.get("context"),w=(x.tags,function(source,t){if(null==source)return{};var e,i,n={},r=Object.keys(source);for(i=0;i=0||(n[e]=source[e]);return n}(x,we)),_=C({},se(),m,w,d),S={id:y(),culprit:n,exception:{message:f,stacktrace:e,type:l},context:_};return v&&(S=k(S,{trace_id:v.traceId,parent_id:v.id,transaction_id:v.id,transaction:{type:v.type,sampled:v.sampled}})),ye(ve,S)},e.logErrorEvent=function(t){if(void 0!==t){var e=this.createErrorDataModel(t);void 0!==e.exception.message&&this._apmServer.addError(e)}},e.registerListeners=function(){var t=this;window.addEventListener("error",(function(e){return t.logErrorEvent(e)})),window.addEventListener("unhandledrejection",(function(e){return t.logPromiseEvent(e)}))},e.logPromiseEvent=function(t){var e,n=t.reason;if(null==n&&(n=""),"string"==typeof n.message){var r=n.name?n.name+": ":"";e={error:n,message:Se+r+n.message}}else e=this._parseRejectReason(n);this.logErrorEvent(e)},e.logError=function(t){var e={};return"string"==typeof t?e.message=t:e.error=t,this.logErrorEvent(e)},e._parseRejectReason=function(t){var e={message:Se};if(Array.isArray(t))e.message+="";else if("object"==typeof t)try{e.message+=JSON.stringify(t),e.error=t}catch(t){e.message+=""}else e.message+="function"==typeof t?"":t;return e},t}(),je=function(){function t(t,e){void 0===e&&(e={}),this.onFlush=t,this.items=[],this.queueLimit=e.queueLimit||-1,this.flushInterval=e.flushInterval||0,this.timeoutId=void 0}var e=t.prototype;return e._setTimer=function(){var t=this;this.timeoutId=setTimeout((function(){return t.flush()}),this.flushInterval)},e._clear=function(){void 0!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),this.items=[]},e.flush=function(){this.onFlush(this.items),this._clear()},e.add=function(t){this.items.push(t),-1!==this.queueLimit&&this.items.length>=this.queueLimit?this.flush():void 0===this.timeoutId&&this._setTimer()},t}();var Ee=function(){function t(){}return t.stringify=function(object){return JSON.stringify(object)+"\n"},t}(),Te=["fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","requestStart","responseStart","responseEnd","domLoading","domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","loadEventStart","loadEventEnd"],ke=["fs","ls","le","cs","ce","qs","rs","re","dl","di","ds","de","dc","es","ee"];function Ce(t){var e=function(t){var e=t.redirectStart,n=t.fetchStart,r=t.navigationStart,o=t.responseStart,c=t.responseEnd;if(n>=r&&o>=n&&c>=o){var f={};return Te.forEach((function(r){var o=t[r];o&&o>=n&&(B(t)?f[r]=parseInt(o-e):f[r]=parseInt(o-n))})),f}return null}(t);return null==e?null:{navigationTiming:e,agent:{timeToFirstByte:e.responseStart,domInteractive:e.domInteractive,domComplete:e.domComplete}}}function $e(t){return{ts:t.transfer_size,ebs:t.encoded_body_size,dbs:t.decoded_body_size}}function Pe(t){if(!t)return null;var e={},n=t.page,r=t.http,o=t.response,c=t.destination,f=t.user,l=t.custom;if(n&&(e.p={rf:n.referer,url:n.url}),r&&(e.h=function(t){var e={},n=t.method,r=t.status_code,o=t.url,c=t.response;return e.url=o,n&&(e.mt=n),r&&(e.sc=r),c&&(e.r=$e(c)),e}(r)),o&&(e.r=$e(o)),c){var d=c.service;e.dt={se:{n:d.name,t:d.type,rc:d.resource},ad:c.address,po:c.port}}return f&&(e.u={id:f.id,un:f.username,em:f.email}),l&&(e.cu=l),e}function Re(t){if(!t)return null;var e=function(t){if(!t)return null;var e={};return ke.forEach((function(mark,n){var r=Te[n];e[mark]=t[r]})),e}(t.navigationTiming);return{nt:e,a:Ie(e,t.agent)}}function Ie(t,e){var n={};if(t&&(n={fb:t.rs,di:t.di,dc:t.dc}),e){var r=e.firstContentfulPaint,o=e.largestContentfulPaint;r&&(n.fp=r),o&&(n.lp=o)}return 0===Object.keys(n).length?null:n}function Ne(t,e){void 0===e&&(e="gzip");var n="function"==typeof CompressionStream;return new c((function(r){if(!n)return r(t);if(function(){var t="_elastic_inspect_beacon_";if(null!=sessionStorage.getItem(t))return!0;if(!window.URL||!window.URLSearchParams)return!1;try{var e=new URL(window.location.href).searchParams.has(t);return e&&sessionStorage.setItem(t,!0),e}catch(t){}return!1}())return r(t);var o=t.payload,c=t.headers,f=t.beforeSend,l=new Blob([o]).stream().pipeThrough(new CompressionStream(e));return new Response(l).blob().then((function(t){return c["Content-Encoding"]=e,r({payload:t,headers:c,beforeSend:f})}))}))}function Le(t,e,n){var r=n.timeout,o=void 0===r?HTTP_REQUEST_TIMEOUT:r,f=n.payload,l=n.headers,d=n.beforeSend,h=n.sendCredentials;return new c((function(n,r){var c=new window.XMLHttpRequest;if(c[K]=!0,c.open(t,e,!0),c.timeout=o,c.withCredentials=h,l)for(var header in l)l.hasOwnProperty(header)&&c.setRequestHeader(header,l[header]);c.onreadystatechange=function(){if(4===c.readyState){var t=c.status,o=c.responseText;Dt(t)?n(c):r({url:e,status:t,responseText:o})}},c.onerror=function(){var t=c.status,n=c.responseText;r({url:e,status:t,responseText:n})};var v=!0;"function"==typeof d&&(v=d({url:e,method:t,headers:l,payload:f,xhr:c})),v?c.send(f):r({url:e,status:0,responseText:"Request rejected by user configuration."})}))}var Ae=function(){function t(t,e){this._configService=t,this._loggingService=e,this.queue=void 0,this.throttleEvents=P}var e=t.prototype;return e.init=function(){var t=this,e=this._configService.get("queueLimit"),n=this._configService.get("flushInterval"),r=this._configService.get("eventsLimit");this.queue=new je((function(e){var n=t.sendEvents(e);n&&n.catch((function(e){t._loggingService.warn("Failed sending events!",t._constructError(e))}))}),{queueLimit:e,flushInterval:n}),this.throttleEvents=function(t,e,n){var r,o=this,c=n.limit,f=n.interval,l=0;return function(){return l++,void 0===r&&(r=setTimeout((function(){l=0,r=void 0}),f)),l>c&&"function"==typeof e?e.apply(o,arguments):t.apply(o,arguments)}}(this.queue.add.bind(this.queue),(function(){return t._loggingService.warn("Dropped events due to throttling!")}),{limit:r,interval:6e4}),this._configService.observeEvent(ht,(function(){t.queue.flush()}))},e._postJson=function(t,e){var n=this,r={payload:e,headers:{"Content-Type":"application/x-ndjson"},beforeSend:this._configService.get("apmRequest")};return Ne(r).catch((function(t){return r})).then((function(e){return n._makeHttpRequest("POST",t,e)})).then((function(t){return t.responseText}))},e._constructError=function(t){var e=t.url,n=t.status;t.responseText;if(void 0===n)return t;var r=e+" HTTP status: "+n;return new Error(r)},e._makeHttpRequest=function(t,e,n){var r=void 0===n?{}:n,o=r.timeout,c=void 0===o?1e4:o,f=r.payload,l=r.headers,d=r.beforeSend,h=this._configService.get("sendCredentials");return!d&&Bt(t,f)?function(t,e,n){var r,o=n.keepalive,c=void 0!==o&&o,f=n.timeout,l=void 0===f?1e4:f,d=n.payload,h=n.headers,v=n.sendCredentials,m={};if("function"==typeof AbortController){var y=new AbortController;m.signal=y.signal,setTimeout((function(){return y.abort()}),l)}return window.fetch(e,Ut({body:d,headers:h,method:t,keepalive:c,credentials:v?"include":"omit"},m)).then((function(t){return(r=t).text()})).then((function(t){var n={url:e,status:r.status,responseText:t};if(!Dt(r.status))throw n;return n}))}(t,e,{keepalive:!0,timeout:c,payload:f,headers:l,sendCredentials:h}).catch((function(n){if(n instanceof TypeError)return Le(t,e,{timeout:c,payload:f,headers:l,beforeSend:d,sendCredentials:h});throw n})):Le(t,e,{timeout:c,payload:f,headers:l,beforeSend:d,sendCredentials:h})},e.fetchConfig=function(t,e){var n=this,r=this.getEndpoints().configEndpoint;if(!t)return c.reject("serviceName is required for fetching central config.");r+="?service.name="+t,e&&(r+="&service.environment="+e);var o=this._configService.getLocalConfig();o&&(r+="&ifnonematch="+o.etag);var f=this._configService.get("apmRequest");return this._makeHttpRequest("GET",r,{timeout:5e3,beforeSend:f}).then((function(t){var e=t.status,r=t.responseText;if(304===e)return o;var c=JSON.parse(r),f=t.getResponseHeader("etag");return f&&(c.etag=f.replace(/["]/g,""),n._configService.setLocalConfig(c,!0)),c})).catch((function(t){var e=n._constructError(t);return c.reject(e)}))},e.createMetaData=function(){var t=this._configService,e={service:{name:t.get("serviceName"),version:t.get("serviceVersion"),agent:{name:"rum-js",version:t.version},language:{name:"javascript"},environment:t.get("environment")},labels:t.get("context.tags")};return ye(fe,e)},e.addError=function(t){var e;this.throttleEvents(((e={})[Ct]=t,e))},e.addTransaction=function(t){var e;this.throttleEvents(((e={})[$t]=t,e))},e.ndjsonErrors=function(t,e){var n=e?"e":"error";return t.map((function(t){var r;return Ee.stringify(((r={})[n]=e?function(t){var e,n=t.exception,r={id:t.id,cl:t.culprit,ex:{mg:n.message,st:(e=n.stacktrace,e.map((function(t){return{ap:t.abs_path,f:t.filename,fn:t.function,li:t.lineno,co:t.colno}}))),t:t.type},c:Pe(t.context)},o=t.transaction;return o&&(r.tid=t.trace_id,r.pid=t.parent_id,r.xid=t.transaction_id,r.x={t:o.type,sm:o.sampled}),r}(t):t,r))}))},e.ndjsonMetricsets=function(t){return t.map((function(t){return Ee.stringify({metricset:t})})).join("")},e.ndjsonTransactions=function(t,e){var n=this,r=e?"x":"transaction";return t.map((function(tr){var t,o="",c="";return e||(tr.spans&&(o=tr.spans.map((function(span){return Ee.stringify({span:span})})).join(""),delete tr.spans),tr.breakdown&&(c=n.ndjsonMetricsets(tr.breakdown),delete tr.breakdown)),Ee.stringify(((t={})[r]=e?function(t){var e,n=t.spans.map((function(span){var e={id:span.id,n:span.name,t:span.type,s:span.start,d:span.duration,c:Pe(span.context),o:span.outcome,sr:span.sample_rate};return span.parent_id!==t.id&&(e.pid=span.parent_id),!0===span.sync&&(e.sy=!0),span.subtype&&(e.su=span.subtype),span.action&&(e.ac=span.action),e})),tr={id:t.id,tid:t.trace_id,n:t.name,t:t.type,d:t.duration,c:Pe(t.context),k:Re(t.marks),me:(e=t.breakdown,e.map((function(t){var span=t.span,e=t.samples;return{y:{t:span.type},sa:{ysc:{v:e["span.self_time.count"].value},yss:{v:e["span.self_time.sum.us"].value}}}}))),y:n,yc:{sd:n.length},sm:t.sampled,sr:t.sample_rate,o:t.outcome};if(t.experience){var r=t.experience,o=r.cls,c=r.fid,f=r.tbt,l=r.longtask;tr.exp={cls:o,fid:c,tbt:f,lt:l}}if(t.session){var d=t.session,h=d.id,v=d.sequence;tr.ses={id:h,seq:v}}return tr}(tr):tr,t))+o+c}))},e.sendEvents=function(t){var e,n;if(0!==t.length){for(var r=[],o=[],i=0;i2,v=[],m=this.createMetaData(),y=h?"m":"metadata";v.push(Ee.stringify(((n={})[y]=h?function(t){var e=t.service,n=t.labels,r=e.agent,o=e.language;return{se:{n:e.name,ve:e.version,a:{n:r.name,ve:r.version},la:{n:o.name},en:e.environment},l:n}}(m):m,n)));var x=(v=v.concat(this.ndjsonErrors(d[Ct],h),this.ndjsonTransactions(d[$t],h))).join(""),w=this.getEndpoints().intakeEndpoint;return this._postJson(w,x)}this._loggingService.warn("Dropped payload due to filtering!")}}},e.getEndpoints=function(){var t=this._configService.get("serverUrl"),e=this._configService.get("apiVersion");return{intakeEndpoint:t+(this._configService.get("serverUrlPrefix")||"/intake/v"+e+"/rum/events"),configEndpoint:t+"/config/v1/rum/agents"}},t}(),Me=Ae;function qe(){return qe=Object.assign||function(t){for(var i=1;i0?t.charAt(0).toUpperCase()+t.substring(1):t})).join("")]=o.value||o.nodeValue)}return e}(T());this.setConfig(t)},e.setVersion=function(t){this.version=t},e.addFilter=function(t){if("function"!=typeof t)throw new Error("Argument to must be function");this.filters.push(t)},e.applyFilters=function(data){for(var i=0;i0&&(n=1e-4),t.transactionSampleRate=Math.round(1e4*n)/1e4),C(this.config,t),this.events.send(pt,[this.config])},e.validate=function(t){void 0===t&&(t={});var e=["serviceName","serverUrl"],n=Object.keys(this.config),r={missing:[],invalid:[],unknown:[]};Object.keys(t).forEach((function(o){-1===e.indexOf(o)||t[o]||r.missing.push(o),-1===n.indexOf(o)&&r.unknown.push(o)})),t.serviceName&&!/^[a-zA-Z0-9 _-]+$/.test(t.serviceName)&&r.invalid.push({key:"serviceName",value:t.serviceName,allowed:"a-z, A-Z, 0-9, _, -, "});var o=t.transactionSampleRate;return void 0!==o&&("number"!=typeof o||isNaN(o)||o<0||o>1)&&r.invalid.push({key:"transactionSampleRate",value:o,allowed:"Number between 0 and 1"}),r},e.getLocalConfig=function(){var t=sessionStorage;this.config.session&&(t=localStorage);var e=t.getItem(Ot);if(e)return JSON.parse(e)},e.setLocalConfig=function(t,e){if(t){if(e)t=qe({},this.getLocalConfig(),t);var n=sessionStorage;this.config.session&&(n=localStorage),n.setItem(Ot,JSON.stringify(t))}},e.dispatchEvent=function(t,e){this.events.send(t,e)},e.observeEvent=function(t,e){return this.events.observe(t,e)},t}(),Ue=function(){function t(t){void 0===t&&(t={}),this.levels=["trace","debug","info","warn","error"],this.level=t.level||"warn",this.prefix=t.prefix||"",this.resetLogMethods()}var e=t.prototype;return e.shouldLog=function(t){return this.levels.indexOf(t)>=this.levels.indexOf(this.level)},e.setLevel=function(t){t!==this.level&&(this.level=t,this.resetLogMethods())},e.resetLogMethods=function(){var t=this;this.levels.forEach((function(e){t[e]=t.shouldLog(e)?function(){var t=e;"trace"!==e&&"debug"!==e||(t="info");var n=arguments;if(n[0]=this.prefix+n[0],console){var r=console[t]||console.log;"function"==typeof r&&r.apply(console,n)}}:P}))},t}(),Be=Ue,He=((Fe={})[Pt]=function(){return new De},Fe[Rt]=function(){return new Be({prefix:"[Elastic APM] "})},Fe[Nt]=function(t){var e=t.getService([Pt,Rt]),n=e[0],r=e[1];return new Me(n,r)},Fe),ze=function(){function t(){this.instances={},this.initialized=!1}var e=t.prototype;return e.init=function(){if(!this.initialized){this.initialized=!0;var t=this.getService(Pt);t.init();var e=this.getService([Rt,Nt]),n=e[0],r=e[1];t.events.observe(pt,(function(){var e=t.get("logLevel");n.setLevel(e)})),r.init()}},e.getService=function(t){var e=this;return"string"==typeof t?(this.instances[t]||"function"==typeof He[t]&&(this.instances[t]=He[t](this)),this.instances[t]):Array.isArray(t)?t.map((function(t){return e.getService(t)})):void 0},t}();var Ve=function(){function t(t,e,n,r){this._apmServer=t,this._configService=e,this._logginService=n,this._transactionService=r}var e=t.prototype;return e.init=function(t){var e=this;void 0===t&&(t={}),this._configService.events.observe(lt+St,(function(tr){var t=e.createTransactionPayload(tr);t&&(e._apmServer.addTransaction(t),e._configService.dispatchEvent(vt))})),t[bt]&&Kt.observe(bt,this.getHistorySub()),t[gt]&&Kt.observe(gt,this.getXHRSub()),t[yt]&&Kt.observe(yt,this.getFetchSub())},e.getHistorySub=function(){var t=this._transactionService;return function(e,n){n.source===bt&&e===W&&t.startTransaction(n.data.title,"route-change",{managed:!0,canReuse:!0})}},e.getXHRSub=function(){var t=this;return function(e,n){n.source!==gt||H.fetchInProgress||t.processAPICalls(e,n)}},e.getFetchSub=function(){var t=this;return function(e,n){n.source===yt&&t.processAPICalls(e,n)}},e.processAPICalls=function(t,e){var n=this._configService,r=this._transactionService;if(e.data&&e.data.url){var o=this._apmServer.getEndpoints();if(Object.keys(o).some((function(t){return-1!==e.data.url.indexOf(o[t])})))return}if(t===Q&&e.data){var data=e.data,c=new ee(data.url),f=data.method+" "+(c.relative?c.path:O(c.href));r.getCurrentTransaction()||r.startTransaction(f,it,{managed:!0});var span=r.startSpan(f,"external.http",{blocking:!0});if(!span)return;var l=n.get("distributedTracing"),d=n.get("distributedTracingOrigins"),h=new ee(window.location.href),v=w(c.origin,h.origin)||w(c.origin,d),m=data.target;if(l&&v&&m)this.injectDtHeader(span,m),n.get("propagateTracestate")&&this.injectTSHeader(span,m);else Gt;data.sync&&(span.sync=data.sync),data.span=span}else if(t===W){var y=e.data;if(y&&y.span){var x,_,S=y.span,j=y.response,E=y.target;x=j?j.status:E.status,_="abort"==y.status||y.aborted?"unknown":x>=400||0==x?"failure":"success",S.outcome=_;var tr=r.getCurrentTransaction();tr&&tr.type===it&&(tr.outcome=_),r.endSpan(S,y)}}},e.injectDtHeader=function(span,t){var header,e=this._configService.get("distributedTracingHeaderName"),n=function(span){if(span&&span.traceId&&span.id&&span.parentId){var t=span.sampled?"01":"00",e=span.sampled?span.id:span.parentId;return"00-"+span.traceId+"-"+e+"-"+t}}(span);/^[\da-f]{2}-[\da-f]{32}-[\da-f]{16}-[\da-f]{2}$/.test(header=n)&&"00000000000000000000000000000000"!==header.slice(3,35)&&"0000000000000000"!==header.slice(36,52)&&n&&e&&x(t,e,n)},e.injectTSHeader=function(span,t){var e=function(t){var e=t.sampleRate;if(!("number"!=typeof e||String(e).length>256))return"es=s:"+e}(span);e&&x(t,"tracestate",e)},e.extractDtHeader=function(t){var e=this._configService.get("distributedTracingHeaderName");if(t)return function(t){var e=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})$/.exec(t);if(e){var n="00"!==e[4];return{traceId:e[2],id:e[3],sampled:n}}}(t[e])},e.filterTransaction=function(tr){var t=tr.duration();if(!t)return!1;if(tr.isManaged()){if(t>6e4)return!1;if(tr.sampled&&0===tr.spans.length)return!1}return!0},e.createTransactionDataModel=function(t){var e=t._start,n=t.spans.map((function(span){var n={id:span.id,transaction_id:t.id,parent_id:span.parentId||t.id,trace_id:t.traceId,name:span.name,type:span.type,subtype:span.subtype,action:span.action,sync:span.sync,start:parseInt(span._start-e),duration:span.duration(),context:span.context,outcome:span.outcome,sample_rate:span.sampleRate};return ye(pe,n)})),r={id:t.id,trace_id:t.traceId,session:t.session,name:t.name,type:t.type,duration:t.duration(),spans:n,context:t.context,marks:t.marks,breakdown:t.breakdownTimings,span_count:{started:n.length},sampled:t.sampled,sample_rate:t.sampleRate,experience:t.experience,outcome:t.outcome};return ye(he,r)},e.createTransactionPayload=function(t){var e=function(t){if(t.sampled){var e=t.spans.filter((function(span){return span.duration()>0&&span._start>=t._start&&span._end<=t._end}));if(t.isManaged()){var n=function(t,e,n){t.sort((function(t,e){return t._start-e._start}));var r=[],o=1;return t.forEach((function(span,c){if(0===r.length)r.push(span);else{var f=r[r.length-1],l=f.type===span.type&&f.subtype===span.subtype&&f.action===span.action&&f.name===span.name&&span.duration()/e1&&(!l||d)&&(f.name=o+"x "+f.name,o=1),l||r.push(span)}})),r}(e,t.duration(),.05);t.spans=n}else t.spans=e}else t.resetFields();return t}(t);if(this.filterTransaction(e))return this.createTransactionDataModel(t);this._configService.dispatchEvent(mt)},t}(),Ke=function(){function t(t,e,n){void 0===n&&(n={}),t||(t=st),e||(e=nt),this.name=t,this.type=e,this.options=n,this.id=n.id||y(16),this.traceId=n.traceId,this.sampled=n.sampled,this.sampleRate=n.sampleRate,this.timestamp=n.timestamp,this._start=L(n.startTime),this._end=void 0,this.ended=!1,this.outcome=void 0,this.onEnd=n.onEnd}var e=t.prototype;return e.ensureContext=function(){this.context||(this.context={})},e.addLabels=function(t){this.ensureContext();var e=this.context;e.tags||(e.tags={}),Object.keys(t).forEach((function(n){return S(n,t[n],e.tags)}))},e.addContext=function(){for(var t=arguments.length,e=new Array(t),n=0;nf?(l+=c-f,f=o):o>f&&(f=o);return f=r})),c={spans:function(t,e){for(var n=[],i=0;i0){var h=l[0],v=h.name,m=h.containerType,y=h.containerName,x=h.containerId,w={attribution:v,type:m};y&&(w.name=y),x&&(w.id=x),span.addContext({custom:w})}span.end(d),n.push(span)}return n}(o,rn.longtask),marks:{}};if(!n)return c;var f=t.getEntriesByType(Et),l=f[f.length-1];if(l){var h=parseInt(l.startTime);rn.lcp=h,c.marks.largestContentfulPaint=h}var v=d.timing,m=v.fetchStart-v.navigationStart;B(v)&&(m=0);var y=t.getEntriesByName("first-contentful-paint")[0];if(y){var x=parseInt(m>=0?y.startTime-m:y.startTime);rn.fcp=x,c.marks.firstContentfulPaint=x}var w=function(t){var e=t[0];if(e){var n=e.startTime,r=e.processingStart,span=new Ge("First Input Delay",Tt,{startTime:n});return span.end(r),span}}(t.getEntriesByType(Tt));return w&&(rn.fid=w.duration(),c.spans.push(w)),function(t){t.forEach((function(t){var e=t.name,n=t.startTime,r=t.duration;if(!(n0&&(rn.tbt.duration+=o)}}))}(o),function(t){t.forEach((function(t){!t.hadRecentInput&&t.value&&((t.startTime-rn.cls.firstEntryTime>5e3||t.startTime-rn.cls.prevEntryTime>1e3)&&(rn.cls.firstEntryTime=t.startTime,rn.cls.currentSessionScore=0),rn.cls.prevEntryTime=t.startTime,rn.cls.currentSessionScore+=t.value,rn.cls.score=Math.max(rn.cls.score,rn.cls.currentSessionScore))}))}(t.getEntriesByType(kt)),c}var sn=function(){function t(t){this.po={observe:P,disconnect:P},window.PerformanceObserver&&(this.po=new PerformanceObserver(t))}var e=t.prototype;return e.start=function(t,e){void 0===e&&(e={buffered:!0});try{if(!D(t))return;this.po.observe(nn({type:t},e))}catch(t){}},e.stop=function(){this.po.disconnect()},t}();function cn(t,e,n,r,o){return void 0===o&&(o=0),"number"==typeof t&&"number"==typeof e&&t>=o&&e>t&&t-o>=n&&e-o<=r&&e-te}function dn(t){if(t.captureTimings){var e=t._end;if(t.type===et){if(t.marks&&t.marks.custom){var n=t.marks.custom;Object.keys(n).forEach((function(e){n[e]+=t._start}))}t._start=0;var r=d.timing;(function(t,e,n,r){for(var o=[],i=0;i=0&&f=tr._start)t._config.dispatchEvent(mt);else if(t.shouldIgnoreTransaction(n)||r===at)t._config.dispatchEvent(mt);else{if(r===et){var o=t._config.get("pageLoadTransactionName");if(n===st&&o&&(tr.name=o),tr.captureTimings){var c=rn.cls,f=rn.fid,l=rn.tbt,d=rn.longtask;l.duration>0&&tr.spans.push((v=(h=l).start,m=h.duration,(y=new Ge("Total Blocking Time",jt,{startTime:v})).end(v+m),y)),tr.experience={},D(jt)&&(tr.experience.tbt=l.duration),D(kt)&&(tr.experience.cls=c.score),f>0&&(tr.experience.fid=f),d.count>0&&(tr.experience.longtask={count:d.count,sum:d.duration,max:d.max})}t.setSession(tr)}var h,v,m,y;tr.name===st&&(tr.name=function(t,e){void 0===e&&(e=2);for(var n=new ee(t),r=n.query,o=n.path.substring(1).split("/"),c=":id",f=/\W|_/g,l=/[0-9]/g,d=/[a-z]/g,h=/[A-Z]/g,v=[],m=!1,y=0;ye-1){x&&v.push("*");break}if((x.match(f)||[]).length>=2)v.push(c),m=!0;else{var w=(x.match(l)||[]).length;if(w>3||x.length>3&&w/x.length>=.3)v.push(c),m=!0;else{var _=(x.match(h)||[]).length,S=(x.match(d)||[]).length/x.length,O=_/x.length;x.length>5&&(O>.3&&O<.6||S>.3&&S<.6)?(v.push(c),m=!0):x&&v.push(x)}}}return"/"+(v.length>=2?v.join("/"):v.join(""))+(r?"?{query}":"")}(e)),dn(tr),t.adjustTransactionTime(tr),t._config.get("breakdownMetrics")&&tr.captureBreakdown();var x=t._config.get("context");ue(tr,x),t._config.events.send(lt,[tr])}}),(function(t){Gt}))},e.setSession=function(tr){var t=this._config.get("session");if(t){"boolean"==typeof t||t.timestamp&&Date.now()-t.timestamp>18e5?tr.session={id:y(16),sequence:1}:tr.session={id:t.id,sequence:t.sequence?t.sequence+1:1};var e={session:{id:tr.session.id,sequence:tr.session.sequence,timestamp:Date.now()}};this._config.setConfig(e),this._config.setLocalConfig(e,!0)}},e.adjustTransactionTime=function(t){var e=t.spans,n=function(t){for(var e=t[0],n=1;nspan._start&&(e=span)}return e}(e);n&&n._startt._end&&(t._end=o);this.truncateSpans(e,t._end)},e.truncateSpans=function(t,e){for(var i=0;ie&&(span._end=e,span.type+=Mt),span._start>e&&(span._start=e)}},e.shouldIgnoreTransaction=function(t){var e=this._config.get("ignoreTransactions");if(e&&e.length)for(var i=0;i0){var r=n[0];r.duration=Math.max(r.duration,t.duration)}else gn.longestInteractions.push({id:t.interactionId,duration:t.duration});gn.longestInteractions.sort((function(a,b){return b.duration-a.duration})),gn.longestInteractions.splice(mn)}(t))}))}function bn(){return performance.interactionCount||gn.interactionCount}function xn(t){var e=function(){if(0===gn.longestInteractions.length)return bn()>0?0:void 0;var t=Math.min(gn.longestInteractions.length-1,Math.floor(bn()/50));return gn.longestInteractions[t].duration}();if(e>=0){var n=N(),r=t.startTransaction(ct,ct,{startTime:n}),o=performance.getEntriesByType("navigation");if(o.length>0){var c=o[0].name;r.addContext({page:{url:c}})}r.addLabels({inp_value:e});var f=n+e+1;return r.end(f),gn.minInteractionId=1/0,gn.maxInteractionId=0,gn.interactionCount=0,gn.longestInteractions=[],r}}function wn(t,e){if(xn(e))var n=t.observeEvent(vt,(function(){_n(t,e),n()}));else _n(t,e)}function _n(t,e){var tr=e.getCurrentTransaction();if(tr){var n=t.observeEvent(mt,(function(){Qt.lastHiddenStart=N(),n(),r()})),r=t.observeEvent(vt,(function(){t.dispatchEvent(ht),Qt.lastHiddenStart=N(),r(),n()}));tr.end()}else t.dispatchEvent(ht),Qt.lastHiddenStart=N()}var Sn="a[data-transaction-name], button[data-transaction-name]";function On(t){var e=function(e){e.target instanceof Element&&function(t,e){var n=function(t){var e={transactionName:null,context:null};e.transactionName=function(t){var e=function(t){if(t.closest){var element=t.closest(Sn);return element?element.dataset.transactionName:null}return t.dataset.transactionName}(t);if(e)return e;var n=t.tagName.toLowerCase(),r=t.getAttribute("name");if(r)return n+'["'+r+'"]';return n}(t);var n=t.getAttribute("class");n&&(e.context={custom:{classes:n}});return e}(e),r=n.transactionName,o=n.context,tr=t.startTransaction("Click - "+r,ot,{managed:!0,canReuse:!0,reuseThreshold:300});tr&&o&&tr.addContext(o)}(t,e.target)},n="click";return window.addEventListener(n,e,true),function(){window.removeEventListener(n,e,true)}}var jn=function(){function t(t,e){this._disable=e,this.serviceFactory=t,this._initialized=!1}var e=t.prototype;return e.isEnabled=function(){return!this._disable},e.isActive=function(){var t=this.serviceFactory.getService(Pt);return this.isEnabled()&&this._initialized&&t.get("active")},e.init=function(t){var e=this;if(this.isEnabled()&&!this._initialized){this._initialized=!0;var n=this.serviceFactory.getService([Pt,Rt,It]),r=n[0],o=n[1],c=n[2];r.setVersion("5.16.0"),this.config(t);var f=r.get("logLevel");if(o.setLevel(f),r.get("active")){this.serviceFactory.init();var l=function(t,e){var n,r=((n={})[gt]=!1,n[yt]=!1,n[bt]=!1,n[et]=!1,n[_t]=!1,n[xt]=!1,n[wt]=!1,n);return t?(Object.keys(r).forEach((function(t){-1===e.indexOf(t)&&(r[t]=!0)})),r):r}(r.get("instrument"),r.get("disableInstrumentations"));if(this.serviceFactory.getService(Lt).init(l),l[_t])this.serviceFactory.getService(At).registerListeners();if(r.get("session")){var d=r.getLocalConfig();d&&d.session&&r.setConfig({session:d.session})}var h=function(){return l[et]&&e._sendPageLoadMetrics()};r.get("centralConfig")?this.fetchCentralConfig().then(h):h(),function(t,e){"hidden"===document.visibilityState&&(Qt.lastHiddenStart=0);var n=function(){"hidden"===document.visibilityState&&wn(t,e)},r=function(){return wn(t,e)},o=!0;window.addEventListener("visibilitychange",n,o),window.addEventListener("pagehide",r,o)}(r,c),l[xt]&&l[wt]&&On(c),function(t){void 0===t&&(t=new sn(yn));var e=U(),n=e?vn:16;t.start("event",{buffered:!0,durationThreshold:n}),e||t.start(Tt)}()}else this._disable=!0,o.warn("RUM agent is inactive")}return this},e.fetchCentralConfig=function(){var t=this.serviceFactory.getService([Nt,Rt,Pt]),e=t[0],n=t[1],r=t[2];return e.fetchConfig(r.get("serviceName"),r.get("environment")).then((function(t){var e=t.transaction_sample_rate;if(e){var o={transactionSampleRate:e=Number(e)},c=r.validate(o).invalid;if(0===c.length)r.setConfig(o);else{var f=c[0],l=f.key,d=f.value,h=f.allowed;n.warn('invalid value "'+d+'" for '+l+". Allowed: "+h+".")}}return t})).catch((function(t){n.warn("failed fetching config:",t)}))},e._sendPageLoadMetrics=function(){var tr=this.startTransaction(void 0,et,{managed:!0,canReuse:!0});if(tr){tr.addTask(et);var t=function(){setTimeout((function(){return tr.removeTask(et)}),1e3)};"complete"===document.readyState?t():window.addEventListener("load",t)}},e.observe=function(t,e){this.serviceFactory.getService(Pt).events.observe(t,e)},e.config=function(t){var e=this.serviceFactory.getService([Pt,Rt]),n=e[0],r=e[1],o=n.validate(t),c=o.missing,f=o.invalid,l=o.unknown;if(l.length>0){var d="Unknown config options are specified for RUM agent: "+l.join(", ");r.warn(d)}if(0===c.length&&0===f.length)n.setConfig(t);else{var h=", ",v="RUM agent isn't correctly configured. ";c.length>0&&(v+=c.join(h)+" is missing",f.length>0&&(v+=h)),f.forEach((function(t,e){var n=t.key,r=t.value,o=t.allowed;v+=n+' "'+r+'" contains invalid characters! (allowed: '+o+")"+(e!==f.length-1?h:"")})),r.error(v),n.setConfig({active:!1})}},e.setUserContext=function(t){this.serviceFactory.getService(Pt).setUserContext(t)},e.setCustomContext=function(t){this.serviceFactory.getService(Pt).setCustomContext(t)},e.addLabels=function(t){this.serviceFactory.getService(Pt).addLabels(t)},e.setInitialPageLoadName=function(t){this.serviceFactory.getService(Pt).setConfig({pageLoadTransactionName:t})},e.startTransaction=function(t,e,n){if(this.isEnabled())return this.serviceFactory.getService(It).startTransaction(t,e,n)},e.startSpan=function(t,e,n){if(this.isEnabled())return this.serviceFactory.getService(It).startSpan(t,e,n)},e.getCurrentTransaction=function(){if(this.isEnabled())return this.serviceFactory.getService(It).getCurrentTransaction()},e.captureError=function(t){if(this.isEnabled())return this.serviceFactory.getService(At).logError(t)},e.addFilter=function(t){this.serviceFactory.getService(Pt).addFilter(t)},t}();var En=function(){if(l&&window.elasticApm)return window.elasticApm;var t=(_()?(Jt(),Qt.bootstrapTime=N(),Wt=!0):l&&console.log("[Elastic APM] platform is not supported!"),Wt),e=hn(),n=new jn(e,!t);return l&&(window.elasticApm=n),n}(),Tn=En.init.bind(En)},230:function(t,e,n){"use strict";n.r(e),function(t){var e=n(15),r=n(10),o=(n(115),n(238),n(251),n(253),n(69),n(39),n(65),n(66),n(87),n(44),n(54),n(88),n(55),n(67),n(30),n(40),n(17),n(24),n(33),n(89),n(45),n(34),n(46),n(70),n(1)),c=n(209),f=n(138),l=n(0),d=n(32),h=n(218),v=n(113),m=n(219);function y(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return x(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f: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.")}var o,c=!0,f=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){f=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(f)throw o}}}}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i2?e-2:0),r=2;r1&&void 0!==arguments[1]?arguments[1]:O,n=arguments.length>2?arguments[2]:void 0;return r.call(this,t,e,n)};var o=n.resolve.bind(n);return n.resolve=function(t,e,n){return"string"==typeof t&&(t=Object(x.d)(t)),o(t,e,n)},n}var T={name:"NuxtChild",functional:!0,props:{nuxtChildKey:{type:String,default:""},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0}},render:function(t,e){var n=e.parent,data=e.data,r=e.props,o=n.$createElement;data.nuxtChild=!0;for(var c=n,f=n.$nuxt.nuxt.transitions,l=n.$nuxt.nuxt.defaultTransition,d=0;n;)n.$vnode&&n.$vnode.data.nuxtChild&&d++,n=n.$parent;data.nuxtChildDepth=d;var h=f[d]||l,v={};k.forEach((function(t){void 0!==h[t]&&(v[t]=h[t])}));var m={};C.forEach((function(t){"function"==typeof h[t]&&(m[t]=h[t].bind(c))}));var y=m.beforeEnter;if(m.beforeEnter=function(t){if(window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")})),y)return y.call(c,t)},!1===h.css){var x=m.leave;(!x||x.length<2)&&(m.leave=function(t,e){x&&x.call(c,t),c.$nextTick(e)})}var w=o("routerView",data);return r.keepAlive&&(w=o("keep-alive",{props:r.keepAliveProps},[w])),o("transition",{props:v,on:m},[w])}},k=["name","mode","appear","css","type","duration","enterClass","leaveClass","appearClass","enterActiveClass","enterActiveClass","leaveActiveClass","appearActiveClass","enterToClass","leaveToClass","appearToClass"],C=["beforeEnter","enter","afterEnter","enterCancelled","beforeLeave","leave","afterLeave","leaveCancelled","beforeAppear","appear","afterAppear","appearCancelled"],$={name:"NuxtError",props:{error:{type:Object,default:null}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}},head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0"}]}}},P=(n(288),n(13)),R=Object(P.a)($,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"__nuxt-error-page"},[e("div",{staticClass:"error"},[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[e("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),t._v(" "),e("div",{staticClass:"title"},[t._v(t._s(t.message))]),t._v(" "),404===t.statusCode?e("p",{staticClass:"description"},[void 0===t.$route?e("a",{staticClass:"error-link",attrs:{href:"/"}}):e("NuxtLink",{staticClass:"error-link",attrs:{to:"/"}},[t._v("Back to the home page")])],1):t._e(),t._v(" "),t._m(0)])])}),[function(){var t=this._self._c;return t("div",{staticClass:"logo"},[t("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt")])])}],!1,null,null,null).exports,I=n(23),N=(n(33),{name:"Nuxt",components:{NuxtChild:T,NuxtError:R},props:{nuxtChildKey:{type:String,default:void 0},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0},name:{type:String,default:"default"}},errorCaptured:function(t){this.displayingNuxtError&&(this.errorFromNuxtError=t,this.$forceUpdate())},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(w.c)(this.$route.matched[0].path)(this.$route.params);var t=Object(I.a)(this.$route.matched,1)[0];if(!t)return this.$route.path;var e=t.components.default;if(e&&e.options){var n=e.options;if(n.key)return"function"==typeof n.key?n.key(this.$route):n.key}return/\/$/.test(t.path)?this.$route.path:this.$route.path.replace(/\/$/,"")}},beforeCreate:function(){c.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render:function(t){var e=this;return this.nuxt.err?this.errorFromNuxtError?(this.$nextTick((function(){return e.errorFromNuxtError=!1})),t("div",{},[t("h2","An error occurred while showing the error page"),t("p","Unfortunately an error occurred and while showing the error page another error occurred"),t("p","Error details: ".concat(this.errorFromNuxtError.toString())),t("nuxt-link",{props:{to:"/"}},"Go back to home")])):(this.displayingNuxtError=!0,this.$nextTick((function(){return e.displayingNuxtError=!1})),t(R,{props:{error:this.nuxt.err}})):t("NuxtChild",{key:this.routerViewKey,props:this.$props})}}),L=(n(88),n(65),n(66),n(54),n(67),n(89),n(70),{name:"NuxtLoading",data:function(){return{percent:0,show:!1,canSucceed:!0,reversed:!1,skipTimerCount:0,rtl:!1,throttle:200,duration:5e3,continuous:!1}},computed:{left:function(){return!(!this.continuous&&!this.rtl)&&(this.rtl?this.reversed?"0px":"auto":this.reversed?"auto":"0px")}},beforeDestroy:function(){this.clear()},methods:{clear:function(){clearInterval(this._timer),clearTimeout(this._throttle),clearTimeout(this._hide),this._timer=null},start:function(){var t=this;return this.clear(),this.percent=0,this.reversed=!1,this.skipTimerCount=0,this.canSucceed=!0,this.throttle?this._throttle=setTimeout((function(){return t.startTimer()}),this.throttle):this.startTimer(),this},set:function(t){return this.show=!0,this.canSucceed=!0,this.percent=Math.min(100,Math.max(0,Math.floor(t))),this},get:function(){return this.percent},increase:function(t){return this.percent=Math.min(100,Math.floor(this.percent+t)),this},decrease:function(t){return this.percent=Math.max(0,Math.floor(this.percent-t)),this},pause:function(){return clearInterval(this._timer),this},resume:function(){return this.startTimer(),this},finish:function(){return this.percent=this.reversed?0:100,this.hide(),this},hide:function(){var t=this;return this.clear(),this._hide=setTimeout((function(){t.show=!1,t.$nextTick((function(){t.percent=0,t.reversed=!1}))}),500),this},fail:function(t){return this.canSucceed=!1,this},startTimer:function(){var t=this;this.show||(this.show=!0),void 0===this._cut&&(this._cut=1e4/Math.floor(this.duration)),this._timer=setInterval((function(){t.skipTimerCount>0?t.skipTimerCount--:(t.reversed?t.decrease(t._cut):t.increase(t._cut),t.continuous&&(t.percent>=100||t.percent<=0)&&(t.skipTimerCount=1,t.reversed=!t.reversed))}),100)}},render:function(t){var e=t(!1);return this.show&&(e=t("div",{staticClass:"nuxt-progress",class:{"nuxt-progress-notransition":this.skipTimerCount>0,"nuxt-progress-failed":!this.canSucceed},style:{width:this.percent+"%",left:this.left}})),e}}),A=(n(290),Object(P.a)(L,undefined,undefined,!1,null,null,null).exports),M=(n(292),n(294),n(221)),F=n(222),D=Object(P.a)({},(function(){return(0,this._self._c)("Nuxt")}),[],!1,null,null,null).exports;function U(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return B(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f: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.")}var o,c=!0,f=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){f=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(f)throw o}}}}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0},isPreview:function(){return Boolean(this.$options.previewData)}},methods:{refreshOnlineStatus:function(){void 0===window.navigator.onLine?this.isOnline=!0:this.isOnline=window.navigator.onLine},refresh:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=Object(w.i)(t.$route)).length){e.next=3;break}return e.abrupt("return");case 3:return t.$loading.start(),o=n.map(function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(n){var p,r,o,component;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p=[],n.$options.fetch&&n.$options.fetch.length&&p.push(Object(w.q)(n.$options.fetch,t.context)),n.$options.asyncData&&p.push(Object(w.q)(n.$options.asyncData,t.context).then((function(t){for(var e in t)c.a.set(n.$data,e,t[e])}))),e.next=5,Promise.all(p);case 5:p=[],n.$fetch&&p.push(n.$fetch()),r=U(Object(w.f)(n.$vnode.componentInstance));try{for(r.s();!(o=r.n()).done;)component=o.value,p.push(component.$fetch())}catch(t){r.e(t)}finally{r.f()}return e.abrupt("return",Promise.all(p));case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.prev=5,e.next=8,Promise.all(o);case 8:e.next=15;break;case 10:e.prev=10,e.t0=e.catch(5),t.$loading.fail(e.t0),Object(w.l)(e.t0),t.error(e.t0);case 15:t.$loading.finish();case 16:case"end":return e.stop()}}),e,null,[[5,10]])})))()},errorChanged:function(){if(this.nuxt.err){this.$loading&&(this.$loading.fail&&this.$loading.fail(this.nuxt.err),this.$loading.finish&&this.$loading.finish());var t=(R.options||R).layout;"function"==typeof t&&(t=t(this.context)),this.setLayout(t)}},setLayout:function(t){return t&&H["_"+t]||(t="default"),this.layoutName=t,this.layout=H["_"+t],this.layout},loadLayout:function(t){return t&&H["_"+t]||(t="default"),Promise.resolve(H["_"+t])},getRouterBase:function(){return Object(x.h)(this.$router.options.base)},getRoutePath:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",base=this.getRouterBase();return Object(x.h)(Object(x.g)(Object(x.e)(t).pathname,base))},getStaticAssetsPath:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",e=window.__NUXT__.staticAssetsBase;return Object(w.v)(e,this.getRoutePath(t))},fetchStaticManifest:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",window.__NUXT_IMPORT__("manifest.js",Object(x.d)(Object(w.v)(t.getStaticAssetsPath(),"manifest.js"))));case 1:case"end":return e.stop()}}),e)})))()},setPagePayload:function(t){this._pagePayload=t,this._fetchCounters={}},fetchPayload:function(t,e){var n=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var path,o,c;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return path=Object(x.a)(n.getRoutePath(t)),r.next=3,n.fetchStaticManifest();case 3:if(r.sent.routes.includes(path)){r.next=7;break}throw e||n.setPagePayload(!1),new Error("Route ".concat(path," is not pre-rendered"));case 7:return o=Object(w.v)(n.getStaticAssetsPath(t),"payload.js"),r.prev=8,r.next=11,window.__NUXT_IMPORT__(path,Object(x.d)(o));case 11:return c=r.sent,e||n.setPagePayload(c),r.abrupt("return",c);case 16:throw r.prev=16,r.t0=r.catch(8),e||n.setPagePayload(!1),r.t0;case 20:case"end":return r.stop()}}),r,null,[[8,16]])})))()}},components:{NuxtLoading:A}};c.a.use(f.a);var V={};(V=function(t,e){if((t=t.default||t).commit)throw new Error("[nuxt] ".concat(e," should export a method that returns a Vuex instance."));return"function"!=typeof t&&(t=Object.assign({},t)),function(t,e){if(t.state&&"function"!=typeof t.state){console.warn("'state' should be a method that returns an object in ".concat(e));var n=Object.assign({},t.state);t=Object.assign({},t,{state:function(){return n}})}return t}(t,e)}(n(320),"store/index.js")).modules=V.modules||{};var K=V instanceof Function?V:function(){return new f.a.Store(Object.assign({strict:!1},V))};var X=n(41),J=n.n(X),G=n(15);n(87);function Q(t){return null!==t&&"object"===Object(G.a)(t)}function W(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3?arguments[3]:void 0;if(!Q(e))return W(t,{},n,r);var o=Object.assign({},e);for(var c in t)if("__proto__"!==c&&"constructor"!==c){var f=t[c];null!=f&&(r&&r(o,c,f,n)||(Array.isArray(f)&&Array.isArray(o[c])?o[c]=o[c].concat(f):Q(f)&&Q(o[c])?o[c]=W(f,o[c],(n?"".concat(n,"."):"")+c.toString(),r):o[c]=f))}return o}function Y(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f: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.")}var o,c=!0,f=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){f=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(f)throw o}}}}function ot(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i2&&void 0!==arguments[2]?arguments[2]:"common",o=nt(Array.isArray(r)?r:[r]);try{for(o.s();!(n=o.n()).done;){var c=n.value;e?this.defaults.headers[c][t]=e:delete this.defaults.headers[c][t]}}catch(t){o.e(t)}finally{o.f()}},setToken:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=t?(e?e+" ":"")+t:null;this.setHeader("Authorization",r,n)},onRequest:function(t){this.interceptors.request.use((function(e){return t(e)||e}))},onResponse:function(t){this.interceptors.response.use((function(e){return t(e)||e}))},onRequestError:function(t){this.interceptors.request.use(void 0,(function(e){return t(e)||Promise.reject(e)}))},onResponseError:function(t){this.interceptors.response.use(void 0,(function(e){return t(e)||Promise.reject(e)}))},onError:function(t){this.onRequestError(t),this.onResponseError(t)},create:function(t){return ut(Z(t,this.defaults))}},at=function(){var t=ct[st];it["$"+t]=function(){return this[t].apply(this,arguments).then((function(t){return t&&t.data}))}},st=0,ct=["request","delete","get","head","options","post","put","patch"];st has been deprecated and will be removed in Nuxt 3, please use instead")),m.a.render(t,e)}})),c.a.component(T.name,T),c.a.component("NChild",T),c.a.component(N.name,N),Object.defineProperty(c.a.prototype,"$nuxt",{get:function(){var t=this.$root?this.$root.$options.$nuxt:null;return t||"undefined"==typeof window?t:window.$nuxt},configurable:!0}),c.a.use(l.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var gt={name:"page",mode:"out-in",appear:!1,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"},yt=f.a.Store.prototype.registerModule;function bt(path,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Array.isArray(path)?!!path.reduce((function(t,path){return t&&t[path]}),this.state):path in this.state;return yt.call(this,path,t,mt({preserveState:n},e))}function xt(t){return wt.apply(this,arguments)}function wt(){return wt=Object(r.a)(regeneratorRuntime.mark((function t(e){var n,o,f,l,d,h,path,v,m=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=function(t,e){if(!t)throw new Error("inject(key, value) has no key provided");if(void 0===e)throw new Error("inject('".concat(t,"', value) has no value provided"));l[t="$"+t]=e,l.context[t]||(l.context[t]=e),o[t]=l[t];var n="__nuxt_"+t+"_installed__";c.a[n]||(c.a[n]=!0,c.a.use((function(){Object.prototype.hasOwnProperty.call(c.a.prototype,t)||Object.defineProperty(c.a.prototype,t,{get:function(){return this.$root.$options[t]}})})))},n=m.length>1&&void 0!==m[1]?m[1]:{},o=K(e),t.next=5,E(0,n);case 5:return f=t.sent,o.$router=f,o.registerModule=bt,l=mt({head:{title:"generalautos.mx",meta:[{charset:"utf-8"},{hid:"robots",name:"robots",content:"index, follow"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:"General de Seguros"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"}],style:[],script:[]},store:o,router:f,nuxt:{defaultTransition:gt,transitions:[gt],setTransitions:function(t){return Array.isArray(t)||(t=[t]),t=t.map((function(t){return t=t?"string"==typeof t?Object.assign({},gt,{name:t}):Object.assign({},gt,t):gt})),this.$options.nuxt.transitions=t,t},err:null,dateErr:null,error:function(t){t=t||null,l.context._errored=Boolean(t),t=t?Object(w.p)(t):null;var n=l.nuxt;return this&&(n=this.nuxt||this.$options.nuxt),n.dateErr=Date.now(),n.err=t,e&&(e.nuxt.error=t),t}}},z),o.app=l,d=e?e.next:function(t){return l.router.push(t)},e?h=f.resolve(e.url).route:(path=Object(w.g)(f.options.base,f.options.mode),h=f.resolve(path).route),t.next=14,Object(w.t)(l,{store:o,route:h,next:d,error:l.nuxt.error.bind(l),payload:e?e.payload:void 0,req:e?e.req:void 0,res:e?e.res:void 0,beforeRenderFns:e?e.beforeRenderFns:void 0,beforeSerializeFns:e?e.beforeSerializeFns:void 0,ssrContext:e});case 14:if(v("config",n),window.__NUXT__&&window.__NUXT__.state&&o.replaceState(window.__NUXT__.state),l.context.enablePreview=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l.previewData=Object.assign({},t),v("preview",t)},"function"!=typeof lt){t.next=20;break}return t.next=20,lt(l.context,v);case 20:if("function"!=typeof pt.default){t.next=23;break}return t.next=23,Object(pt.default)(l.context,v);case 23:if("function"!=typeof ht.default){t.next=26;break}return t.next=26,Object(ht.default)(l.context,v);case 26:return l.context.enablePreview=function(){console.warn("You cannot call enablePreview() outside a plugin.")},t.next=29,new Promise((function(t,e){if(!f.resolve(l.context.route.fullPath).route.matched.length)return t();f.replace(l.context.route.fullPath,t,(function(n){if(!n._isRouter)return e(n);if(2!==n.type)return t();var o=f.afterEach(function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(n,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(w.k)(n);case 3:l.context.route=e.sent,l.context.params=n.params||{},l.context.query=n.query||{},o(),t();case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())}))}));case 29:return t.abrupt("return",{store:o,app:l,router:f});case 30:case"end":return t.stop()}}),t)}))),wt.apply(this,arguments)}},51:function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var content=t(e);return e[2]?"@media ".concat(e[2]," {").concat(content,"}"):content})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;ie.parts.length&&(n.parts.length=e.parts.length)}else{var o=[];for(r=0;r0?f.map((function(){return t(!1)})):t(!1))}};t.exports=r}}]);