UNPKG

vue-oidc-client-deep-linking

Version:

Wrapper around oidc-client-js to better work in a Vue application with Vue Router integration.

2 lines 45.1 kB
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue"),require("oidc-client")):"function"===typeof define&&define.amd?define([,"oidc-client"],e):"object"===typeof exports?exports["vue-oidc-client"]=e(require("vue"),require("oidc-client")):t["vue-oidc-client"]=e(t["Vue"],t["oidc-client"])})("undefined"!==typeof self?self:this,(function(t,e){return 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="fae3")}({"00ee":function(t,e,n){var r=n("b622"),o=r("toStringTag"),c={};c[o]="z",t.exports="[object z]"===String(c)},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"057f":function(t,e,n){var r=n("fc6a"),o=n("241c").f,c={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(e){return i.slice()}};t.exports.f=function(t){return i&&"[object Window]"==c.call(t)?u(t):o(r(t))}},"06cf":function(t,e,n){var r=n("83ab"),o=n("d1e7"),c=n("5c6c"),i=n("fc6a"),u=n("c04e"),a=n("5135"),f=n("0cfb"),s=Object.getOwnPropertyDescriptor;e.f=r?s:function(t,e){if(t=i(t),e=u(e,!0),f)try{return s(t,e)}catch(n){}if(a(t,e))return c(!o.f.call(t,e),t[e])}},"0cb2":function(t,e,n){var r=n("7b0b"),o=Math.floor,c="".replace,i=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,a,f,s){var l=n+t.length,p=a.length,d=u;return void 0!==f&&(f=r(f),d=i),c.call(s,d,(function(r,c){var i;switch(c.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(l);case"<":i=f[c.slice(1,-1)];break;default:var u=+c;if(0===u)return r;if(u>p){var s=o(u/10);return 0===s?r:s<=p?void 0===a[s-1]?c.charAt(1):a[s-1]+c.charAt(1):r}i=a[u-1]}return void 0===i?"":i}))}},"0cfb":function(t,e,n){var r=n("83ab"),o=n("d039"),c=n("cc12");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a}))},"14c3":function(t,e,n){var r=n("c6b6"),o=n("9263");t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var c=n.call(t,e);if("object"!==typeof c)throw TypeError("RegExp exec method returned something other than an Object or null");return c}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},"159b":function(t,e,n){var r=n("da84"),o=n("fdbc"),c=n("17c2"),i=n("9112");for(var u in o){var a=r[u],f=a&&a.prototype;if(f&&f.forEach!==c)try{i(f,"forEach",c)}catch(s){f.forEach=c}}},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,o=n("a640"),c=o("forEach");t.exports=c?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"19aa":function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(t,e,n){var r=n("b622"),o=r("iterator"),c=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){c=!0}};u[o]=function(){return this},Array.from(u,(function(){throw 2}))}catch(a){}t.exports=function(t,e){if(!e&&!c)return!1;var n=!1;try{var r={};r[o]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(a){}return n}},"1cdc":function(t,e,n){var r=n("342f");t.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1dde":function(t,e,n){var r=n("d039"),o=n("b622"),c=n("2d00"),i=o("species");t.exports=function(t){return c>=51||!r((function(){var e=[],n=e.constructor={};return n[i]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},2266:function(t,e,n){var r=n("825a"),o=n("e95a"),c=n("50c4"),i=n("0366"),u=n("35a1"),a=n("2a62"),f=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var s,l,p,d,v,h,b,g=n&&n.that,y=!(!n||!n.AS_ENTRIES),m=!(!n||!n.IS_ITERATOR),x=!(!n||!n.INTERRUPTED),w=i(e,g,1+y+x),S=function(t){return s&&a(s),new f(!0,t)},E=function(t){return y?(r(t),x?w(t[0],t[1],S):w(t[0],t[1])):x?w(t,S):w(t)};if(m)s=t;else{if(l=u(t),"function"!=typeof l)throw TypeError("Target is not iterable");if(o(l)){for(p=0,d=c(t.length);d>p;p++)if(v=E(t[p]),v&&v instanceof f)return v;return new f(!1)}s=l.call(t)}h=s.next;while(!(b=h.call(s)).done){try{v=E(b.value)}catch(O){throw a(s),O}if("object"==typeof v&&v&&v instanceof f)return v}return new f(!1)}},"23cb":function(t,e,n){var r=n("a691"),o=Math.max,c=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):c(n,e)}},"23e7":function(t,e,n){var r=n("da84"),o=n("06cf").f,c=n("9112"),i=n("6eeb"),u=n("ce4e"),a=n("e893"),f=n("94ca");t.exports=function(t,e){var n,s,l,p,d,v,h=t.target,b=t.global,g=t.stat;if(s=b?r:g?r[h]||u(h,{}):(r[h]||{}).prototype,s)for(l in e){if(d=e[l],t.noTargetGet?(v=o(s,l),p=v&&v.value):p=s[l],n=f(b?l:h+(g?".":"#")+l,t.forced),!n&&void 0!==p){if(typeof d===typeof p)continue;a(d,p)}(t.sham||p&&p.sham)&&c(d,"sham",!0),i(s,l,d,t)}}},"241c":function(t,e,n){var r=n("ca84"),o=n("7839"),c=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,c)}},"25f0":function(t,e,n){"use strict";var r=n("6eeb"),o=n("825a"),c=n("d039"),i=n("ad6d"),u="toString",a=RegExp.prototype,f=a[u],s=c((function(){return"/a/b"!=f.call({source:"a",flags:"b"})})),l=f.name!=u;(s||l)&&r(RegExp.prototype,u,(function(){var t=o(this),e=String(t.source),n=t.flags,r=String(void 0===n&&t instanceof RegExp&&!("flags"in a)?i.call(t):n);return"/"+e+"/"+r}),{unsafe:!0})},2626:function(t,e,n){"use strict";var r=n("d066"),o=n("9bf2"),c=n("b622"),i=n("83ab"),u=c("species");t.exports=function(t){var e=r(t),n=o.f;i&&e&&!e[u]&&n(e,u,{configurable:!0,get:function(){return this}})}},"2a62":function(t,e,n){var r=n("825a");t.exports=function(t){var e=t["return"];if(void 0!==e)return r(e.call(t)).value}},"2cf4":function(t,e,n){var r,o,c,i=n("da84"),u=n("d039"),a=n("0366"),f=n("1be4"),s=n("cc12"),l=n("1cdc"),p=n("605d"),d=i.location,v=i.setImmediate,h=i.clearImmediate,b=i.process,g=i.MessageChannel,y=i.Dispatch,m=0,x={},w="onreadystatechange",S=function(t){if(x.hasOwnProperty(t)){var e=x[t];delete x[t],e()}},E=function(t){return function(){S(t)}},O=function(t){S(t.data)},j=function(t){i.postMessage(t+"",d.protocol+"//"+d.host)};v&&h||(v=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return x[++m]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(m),m},h=function(t){delete x[t]},p?r=function(t){b.nextTick(E(t))}:y&&y.now?r=function(t){y.now(E(t))}:g&&!l?(o=new g,c=o.port2,o.port1.onmessage=O,r=a(c.postMessage,c,1)):i.addEventListener&&"function"==typeof postMessage&&!i.importScripts&&d&&"file:"!==d.protocol&&!u(j)?(r=j,i.addEventListener("message",O,!1)):r=w in s("script")?function(t){f.appendChild(s("script"))[w]=function(){f.removeChild(this),S(t)}}:function(t){setTimeout(E(t),0)}),t.exports={set:v,clear:h}},"2d00":function(t,e,n){var r,o,c=n("da84"),i=n("342f"),u=c.process,a=u&&u.versions,f=a&&a.v8;f?(r=f.split("."),o=r[0]+r[1]):i&&(r=i.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/),r&&(o=r[1]))),t.exports=o&&+o},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"35a1":function(t,e,n){var r=n("f5df"),o=n("3f8c"),c=n("b622"),i=c("iterator");t.exports=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},"37e8":function(t,e,n){var r=n("83ab"),o=n("9bf2"),c=n("825a"),i=n("df75");t.exports=r?Object.defineProperties:function(t,e){c(t);var n,r=i(e),u=r.length,a=0;while(u>a)o.f(t,n=r[a++],e[n]);return t}},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3f8c":function(t,e){t.exports={}},"428f":function(t,e,n){var r=n("da84");t.exports=r},"44ad":function(t,e,n){var r=n("d039"),o=n("c6b6"),c="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?c.call(t,""):Object(t)}:Object},"44de":function(t,e,n){var r=n("da84");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},"44e7":function(t,e,n){var r=n("861d"),o=n("c6b6"),c=n("b622"),i=c("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},4840:function(t,e,n){var r=n("825a"),o=n("1c0b"),c=n("b622"),i=c("species");t.exports=function(t,e){var n,c=r(t).constructor;return void 0===c||void 0==(n=r(c)[i])?e:o(n)}},4930:function(t,e,n){var r=n("605d"),o=n("2d00"),c=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!c((function(){return!Symbol.sham&&(r?38===o:o>37&&o<41)}))},"4d63":function(t,e,n){var r=n("83ab"),o=n("da84"),c=n("94ca"),i=n("7156"),u=n("9bf2").f,a=n("241c").f,f=n("44e7"),s=n("ad6d"),l=n("9f7f"),p=n("6eeb"),d=n("d039"),v=n("69f3").enforce,h=n("2626"),b=n("b622"),g=b("match"),y=o.RegExp,m=y.prototype,x=/a/g,w=/a/g,S=new y(x)!==x,E=l.UNSUPPORTED_Y,O=r&&c("RegExp",!S||E||d((function(){return w[g]=!1,y(x)!=x||y(w)==w||"/a/i"!=y(x,"i")})));if(O){var j=function(t,e){var n,r=this instanceof j,o=f(t),c=void 0===e;if(!r&&o&&t.constructor===j&&c)return t;S?o&&!c&&(t=t.source):t instanceof j&&(c&&(e=s.call(t)),t=t.source),E&&(n=!!e&&e.indexOf("y")>-1,n&&(e=e.replace(/y/g,"")));var u=i(S?new y(t,e):y(t,e),r?this:m,j);if(E&&n){var a=v(u);a.sticky=!0}return u},P=function(t){t in j||u(j,t,{configurable:!0,get:function(){return y[t]},set:function(e){y[t]=e}})},T=a(y),_=0;while(T.length>_)P(T[_++]);m.constructor=j,j.prototype=m,p(o,"RegExp",j)}h("RegExp")},"4d64":function(t,e,n){var r=n("fc6a"),o=n("50c4"),c=n("23cb"),i=function(t){return function(e,n,i){var u,a=r(e),f=o(a.length),s=c(i,f);if(t&&n!=n){while(f>s)if(u=a[s++],u!=u)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}},"4de4":function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").filter,c=n("1dde"),i=c("filter");r({target:"Array",proto:!0,forced:!i},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"50c4":function(t,e,n){var r=n("a691"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},5135:function(t,e,n){var r=n("7b0b"),o={}.hasOwnProperty;t.exports=function(t,e){return o.call(r(t),e)}},5319:function(t,e,n){"use strict";var r=n("d784"),o=n("825a"),c=n("50c4"),i=n("a691"),u=n("1d80"),a=n("8aa5"),f=n("0cb2"),s=n("14c3"),l=Math.max,p=Math.min,d=function(t){return void 0===t?t:String(t)};r("replace",2,(function(t,e,n,r){var v=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,h=r.REPLACE_KEEPS_$0,b=v?"$":"$0";return[function(n,r){var o=u(this),c=void 0==n?void 0:n[t];return void 0!==c?c.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!v&&h||"string"===typeof r&&-1===r.indexOf(b)){var u=n(e,t,this,r);if(u.done)return u.value}var g=o(t),y=String(this),m="function"===typeof r;m||(r=String(r));var x=g.global;if(x){var w=g.unicode;g.lastIndex=0}var S=[];while(1){var E=s(g,y);if(null===E)break;if(S.push(E),!x)break;var O=String(E[0]);""===O&&(g.lastIndex=a(y,c(g.lastIndex),w))}for(var j="",P=0,T=0;T<S.length;T++){E=S[T];for(var _=String(E[0]),L=l(p(i(E.index),y.length),0),R=[],A=1;A<E.length;A++)R.push(d(E[A]));var k=E.groups;if(m){var I=[_].concat(R,L,y);void 0!==k&&I.push(k);var M=String(r.apply(void 0,I))}else M=f(_,y,L,R,k,r);L>=P&&(j+=y.slice(P,L)+M,P=L+_.length)}return j+y.slice(P)}]}))},5692:function(t,e,n){var r=n("c430"),o=n("c6cd");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.11.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var r=n("d066"),o=n("241c"),c=n("7418"),i=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(i(t)),n=c.f;return n?e.concat(n(t)):e}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"605d":function(t,e,n){var r=n("c6b6"),o=n("da84");t.exports="process"==r(o.process)},6547:function(t,e,n){var r=n("a691"),o=n("1d80"),c=function(t){return function(e,n){var c,i,u=String(o(e)),a=r(n),f=u.length;return a<0||a>=f?t?"":void 0:(c=u.charCodeAt(a),c<55296||c>56319||a+1===f||(i=u.charCodeAt(a+1))<56320||i>57343?t?u.charAt(a):c:t?u.slice(a,a+2):i-56320+(c-55296<<10)+65536)}};t.exports={codeAt:c(!1),charAt:c(!0)}},"65f0":function(t,e,n){var r=n("861d"),o=n("e8b5"),c=n("b622"),i=c("species");t.exports=function(t,e){var n;return o(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?r(n)&&(n=n[i],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"69f3":function(t,e,n){var r,o,c,i=n("7f9a"),u=n("da84"),a=n("861d"),f=n("9112"),s=n("5135"),l=n("c6cd"),p=n("f772"),d=n("d012"),v="Object already initialized",h=u.WeakMap,b=function(t){return c(t)?o(t):r(t,{})},g=function(t){return function(e){var n;if(!a(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(i){var y=l.state||(l.state=new h),m=y.get,x=y.has,w=y.set;r=function(t,e){if(x.call(y,t))throw new TypeError(v);return e.facade=t,w.call(y,t,e),e},o=function(t){return m.call(y,t)||{}},c=function(t){return x.call(y,t)}}else{var S=p("state");d[S]=!0,r=function(t,e){if(s(t,S))throw new TypeError(v);return e.facade=t,f(t,S,e),e},o=function(t){return s(t,S)?t[S]:{}},c=function(t){return s(t,S)}}t.exports={set:r,get:o,has:c,enforce:b,getterFor:g}},"6eeb":function(t,e,n){var r=n("da84"),o=n("9112"),c=n("5135"),i=n("ce4e"),u=n("8925"),a=n("69f3"),f=a.get,s=a.enforce,l=String(String).split("String");(t.exports=function(t,e,n,u){var a,f=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet;"function"==typeof n&&("string"!=typeof e||c(n,"name")||o(n,"name",e),a=s(n),a.source||(a.source=l.join("string"==typeof e?e:""))),t!==r?(f?!d&&t[e]&&(p=!0):delete t[e],p?t[e]=n:o(t,e,n)):p?t[e]=n:i(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||u(this)}))},7156:function(t,e,n){var r=n("861d"),o=n("d2bb");t.exports=function(t,e,n){var c,i;return o&&"function"==typeof(c=e.constructor)&&c!==n&&r(i=c.prototype)&&i!==n.prototype&&o(t,i),t}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"746f":function(t,e,n){var r=n("428f"),o=n("5135"),c=n("e538"),i=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||i(e,t,{value:c.f(t)})}},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var r=n("1d80");t.exports=function(t){return Object(r(t))}},"7c73":function(t,e,n){var r,o=n("825a"),c=n("37e8"),i=n("7839"),u=n("d012"),a=n("1be4"),f=n("cc12"),s=n("f772"),l=">",p="<",d="prototype",v="script",h=s("IE_PROTO"),b=function(){},g=function(t){return p+v+l+t+p+"/"+v+l},y=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){var t,e=f("iframe"),n="java"+v+":";return e.style.display="none",a.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(g("document.F=Object")),t.close(),t.F},x=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}x=r?y(r):m();var t=i.length;while(t--)delete x[d][i[t]];return x()};u[h]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(b[d]=o(t),n=new b,b[d]=null,n[h]=t):n=x(),void 0===e?n:c(n,e)}},"7f9a":function(t,e,n){var r=n("da84"),o=n("8925"),c=r.WeakMap;t.exports="function"===typeof c&&/native code/.test(o(c))},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,n){"use strict";var r=n("c04e"),o=n("9bf2"),c=n("5c6c");t.exports=function(t,e,n){var i=r(e);i in t?o.f(t,i,c(0,n)):t[i]=n}},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8875:function(t,e,n){var r,o,c;(function(n,i){o=[],r=i,c="function"===typeof r?r.apply(e,o):r,void 0===c||(t.exports=c)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var n,r,o,c=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,i=/@([^@]*):(\d+):(\d+)\s*$/gi,u=c.exec(d.stack)||i.exec(d.stack),a=u&&u[1]||!1,f=u&&u[2]||!1,s=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");a===s&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(f-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var p=0;p<l.length;p++){if("interactive"===l[p].readyState)return l[p];if(l[p].src===a)return l[p];if(a===s&&l[p].innerHTML&&l[p].innerHTML.trim()===o)return l[p]}return null}}return t}))},8925:function(t,e,n){var r=n("c6cd"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},"8aa5":function(t,e,n){"use strict";var r=n("6547").charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"8bbf":function(e,n){e.exports=t},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9112:function(t,e,n){var r=n("83ab"),o=n("9bf2"),c=n("5c6c");t.exports=r?function(t,e,n){return o.f(t,e,c(1,n))}:function(t,e,n){return t[e]=n,t}},9263:function(t,e,n){"use strict";var r=n("ad6d"),o=n("9f7f"),c=n("5692"),i=RegExp.prototype.exec,u=c("native-string-replace",String.prototype.replace),a=i,f=function(){var t=/a/,e=/b*/g;return i.call(t,"a"),i.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),s=o.UNSUPPORTED_Y||o.BROKEN_CARET,l=void 0!==/()??/.exec("")[1],p=f||l||s;p&&(a=function(t){var e,n,o,c,a=this,p=s&&a.sticky,d=r.call(a),v=a.source,h=0,b=t;return p&&(d=d.replace("y",""),-1===d.indexOf("g")&&(d+="g"),b=String(t).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==t[a.lastIndex-1])&&(v="(?: "+v+")",b=" "+b,h++),n=new RegExp("^(?:"+v+")",d)),l&&(n=new RegExp("^"+v+"$(?!\\s)",d)),f&&(e=a.lastIndex),o=i.call(p?n:a,b),p?o?(o.input=o.input.slice(h),o[0]=o[0].slice(h),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:f&&o&&(a.lastIndex=a.global?o.index+o[0].length:e),l&&o&&o.length>1&&u.call(o[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(o[c]=void 0)})),o}),t.exports=a},"94ca":function(t,e,n){var r=n("d039"),o=/#|\.prototype\./,c=function(t,e){var n=u[i(t)];return n==f||n!=a&&("function"==typeof e?r(e):!!e)},i=c.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=c.data={},a=c.NATIVE="N",f=c.POLYFILL="P";t.exports=c},"99af":function(t,e,n){"use strict";var r=n("23e7"),o=n("d039"),c=n("e8b5"),i=n("861d"),u=n("7b0b"),a=n("50c4"),f=n("8418"),s=n("65f0"),l=n("1dde"),p=n("b622"),d=n("2d00"),v=p("isConcatSpreadable"),h=9007199254740991,b="Maximum allowed index exceeded",g=d>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),y=l("concat"),m=function(t){if(!i(t))return!1;var e=t[v];return void 0!==e?!!e:c(t)},x=!g||!y;r({target:"Array",proto:!0,forced:x},{concat:function(t){var e,n,r,o,c,i=u(this),l=s(i,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(c=-1===e?i:arguments[e],m(c)){if(o=a(c.length),p+o>h)throw TypeError(b);for(n=0;n<o;n++,p++)n in c&&f(l,p,c[n])}else{if(p>=h)throw TypeError(b);f(l,p++,c)}return l.length=p,l}})},"9bf2":function(t,e,n){var r=n("83ab"),o=n("0cfb"),c=n("825a"),i=n("c04e"),u=Object.defineProperty;e.f=r?u:function(t,e,n){if(c(t),e=i(e,!0),c(n),o)try{return u(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9f7f":function(t,e,n){"use strict";var r=n("d039");function o(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},a4b4:function(t,e,n){var r=n("342f");t.exports=/web0s(?!.*chrome)/i.test(r)},a4d3:function(t,e,n){"use strict";var r=n("23e7"),o=n("da84"),c=n("d066"),i=n("c430"),u=n("83ab"),a=n("4930"),f=n("fdbf"),s=n("d039"),l=n("5135"),p=n("e8b5"),d=n("861d"),v=n("825a"),h=n("7b0b"),b=n("fc6a"),g=n("c04e"),y=n("5c6c"),m=n("7c73"),x=n("df75"),w=n("241c"),S=n("057f"),E=n("7418"),O=n("06cf"),j=n("9bf2"),P=n("d1e7"),T=n("9112"),_=n("6eeb"),L=n("5692"),R=n("f772"),A=n("d012"),k=n("90e3"),I=n("b622"),M=n("e538"),C=n("746f"),N=n("d44e"),D=n("69f3"),U=n("b727").forEach,$=R("hidden"),F="Symbol",W="prototype",G=I("toPrimitive"),q=D.set,V=D.getterFor(F),B=Object[W],H=o.Symbol,z=c("JSON","stringify"),K=O.f,Y=j.f,X=S.f,J=P.f,Q=L("symbols"),Z=L("op-symbols"),tt=L("string-to-symbol-registry"),et=L("symbol-to-string-registry"),nt=L("wks"),rt=o.QObject,ot=!rt||!rt[W]||!rt[W].findChild,ct=u&&s((function(){return 7!=m(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=K(B,e);r&&delete B[e],Y(t,e,n),r&&t!==B&&Y(B,e,r)}:Y,it=function(t,e){var n=Q[t]=m(H[W]);return q(n,{type:F,tag:t,description:e}),u||(n.description=e),n},ut=f?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof H},at=function(t,e,n){t===B&&at(Z,e,n),v(t);var r=g(e,!0);return v(n),l(Q,r)?(n.enumerable?(l(t,$)&&t[$][r]&&(t[$][r]=!1),n=m(n,{enumerable:y(0,!1)})):(l(t,$)||Y(t,$,y(1,{})),t[$][r]=!0),ct(t,r,n)):Y(t,r,n)},ft=function(t,e){v(t);var n=b(e),r=x(n).concat(vt(n));return U(r,(function(e){u&&!lt.call(n,e)||at(t,e,n[e])})),t},st=function(t,e){return void 0===e?m(t):ft(m(t),e)},lt=function(t){var e=g(t,!0),n=J.call(this,e);return!(this===B&&l(Q,e)&&!l(Z,e))&&(!(n||!l(this,e)||!l(Q,e)||l(this,$)&&this[$][e])||n)},pt=function(t,e){var n=b(t),r=g(e,!0);if(n!==B||!l(Q,r)||l(Z,r)){var o=K(n,r);return!o||!l(Q,r)||l(n,$)&&n[$][r]||(o.enumerable=!0),o}},dt=function(t){var e=X(b(t)),n=[];return U(e,(function(t){l(Q,t)||l(A,t)||n.push(t)})),n},vt=function(t){var e=t===B,n=X(e?Z:b(t)),r=[];return U(n,(function(t){!l(Q,t)||e&&!l(B,t)||r.push(Q[t])})),r};if(a||(H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=k(t),n=function(t){this===B&&n.call(Z,t),l(this,$)&&l(this[$],e)&&(this[$][e]=!1),ct(this,e,y(1,t))};return u&&ot&&ct(B,e,{configurable:!0,set:n}),it(e,t)},_(H[W],"toString",(function(){return V(this).tag})),_(H,"withoutSetter",(function(t){return it(k(t),t)})),P.f=lt,j.f=at,O.f=pt,w.f=S.f=dt,E.f=vt,M.f=function(t){return it(I(t),t)},u&&(Y(H[W],"description",{configurable:!0,get:function(){return V(this).description}}),i||_(B,"propertyIsEnumerable",lt,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!a,sham:!a},{Symbol:H}),U(x(nt),(function(t){C(t)})),r({target:F,stat:!0,forced:!a},{for:function(t){var e=String(t);if(l(tt,e))return tt[e];var n=H(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!ut(t))throw TypeError(t+" is not a symbol");if(l(et,t))return et[t]},useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),r({target:"Object",stat:!0,forced:!a,sham:!u},{create:st,defineProperty:at,defineProperties:ft,getOwnPropertyDescriptor:pt}),r({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:dt,getOwnPropertySymbols:vt}),r({target:"Object",stat:!0,forced:s((function(){E.f(1)}))},{getOwnPropertySymbols:function(t){return E.f(h(t))}}),z){var ht=!a||s((function(){var t=H();return"[null]"!=z([t])||"{}"!=z({a:t})||"{}"!=z(Object(t))}));r({target:"JSON",stat:!0,forced:ht},{stringify:function(t,e,n){var r,o=[t],c=1;while(arguments.length>c)o.push(arguments[c++]);if(r=e,(d(e)||void 0!==t)&&!ut(t))return p(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!ut(e))return e}),o[1]=e,z.apply(null,o)}})}H[W][G]||T(H[W],G,H[W].valueOf),N(H,F),A[$]=!0},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},ac1f:function(t,e,n){"use strict";var r=n("23e7"),o=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},ad6d:function(t,e,n){"use strict";var r=n("825a");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},b041:function(t,e,n){"use strict";var r=n("00ee"),o=n("f5df");t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},b575:function(t,e,n){var r,o,c,i,u,a,f,s,l=n("da84"),p=n("06cf").f,d=n("2cf4").set,v=n("1cdc"),h=n("a4b4"),b=n("605d"),g=l.MutationObserver||l.WebKitMutationObserver,y=l.document,m=l.process,x=l.Promise,w=p(l,"queueMicrotask"),S=w&&w.value;S||(r=function(){var t,e;b&&(t=m.domain)&&t.exit();while(o){e=o.fn,o=o.next;try{e()}catch(n){throw o?i():c=void 0,n}}c=void 0,t&&t.enter()},v||b||h||!g||!y?x&&x.resolve?(f=x.resolve(void 0),s=f.then,i=function(){s.call(f,r)}):i=b?function(){m.nextTick(r)}:function(){d.call(l,r)}:(u=!0,a=y.createTextNode(""),new g(r).observe(a,{characterData:!0}),i=function(){a.data=u=!u})),t.exports=S||function(t){var e={fn:t,next:void 0};c&&(c.next=e),o||(o=e,i()),c=e}},b622:function(t,e,n){var r=n("da84"),o=n("5692"),c=n("5135"),i=n("90e3"),u=n("4930"),a=n("fdbf"),f=o("wks"),s=r.Symbol,l=a?s:s&&s.withoutSetter||i;t.exports=function(t){return c(f,t)&&(u||"string"==typeof f[t])||(u&&c(s,t)?f[t]=s[t]:f[t]=l("Symbol."+t)),f[t]}},b64b:function(t,e,n){var r=n("23e7"),o=n("7b0b"),c=n("df75"),i=n("d039"),u=i((function(){c(1)}));r({target:"Object",stat:!0,forced:u},{keys:function(t){return c(o(t))}})},b727:function(t,e,n){var r=n("0366"),o=n("44ad"),c=n("7b0b"),i=n("50c4"),u=n("65f0"),a=[].push,f=function(t){var e=1==t,n=2==t,f=3==t,s=4==t,l=6==t,p=7==t,d=5==t||l;return function(v,h,b,g){for(var y,m,x=c(v),w=o(x),S=r(h,b,3),E=i(w.length),O=0,j=g||u,P=e?j(v,E):n||p?j(v,0):void 0;E>O;O++)if((d||O in w)&&(y=w[O],m=S(y,O,x),t))if(e)P[O]=m;else if(m)switch(t){case 3:return!0;case 5:return y;case 6:return O;case 2:a.call(P,y)}else switch(t){case 4:return!1;case 7:a.call(P,y)}return l?-1:f||s?s:P}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterOut:f(7)}},c04e:function(t,e,n){var r=n("861d");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},c097:function(t,n){t.exports=e},c430:function(t,e){t.exports=!1},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6cd:function(t,e,n){var r=n("da84"),o=n("ce4e"),c="__core-js_shared__",i=r[c]||o(c,{});t.exports=i},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var r=n("5135"),o=n("fc6a"),c=n("4d64").indexOf,i=n("d012");t.exports=function(t,e){var n,u=o(t),a=0,f=[];for(n in u)!r(i,n)&&r(u,n)&&f.push(n);while(e.length>a)r(u,n=e[a++])&&(~c(f,n)||f.push(n));return f}},cc12:function(t,e,n){var r=n("da84"),o=n("861d"),c=r.document,i=o(c)&&o(c.createElement);t.exports=function(t){return i?c.createElement(t):{}}},cdf9:function(t,e,n){var r=n("825a"),o=n("861d"),c=n("f069");t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=c.f(t),i=n.resolve;return i(e),n.promise}},ce4e:function(t,e,n){var r=n("da84"),o=n("9112");t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("428f"),o=n("da84"),c=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?c(r[t])||c(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,c=o&&!r.call({1:2},1);e.f=c?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},d2bb:function(t,e,n){var r=n("825a"),o=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(c){}return function(n,c){return r(n),o(c),e?t.call(n,c):n.__proto__=c,n}}():void 0)},d3b7:function(t,e,n){var r=n("00ee"),o=n("6eeb"),c=n("b041");r||o(Object.prototype,"toString",c,{unsafe:!0})},d44e:function(t,e,n){var r=n("9bf2").f,o=n("5135"),c=n("b622"),i=c("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},d784:function(t,e,n){"use strict";n("ac1f");var r=n("6eeb"),o=n("d039"),c=n("b622"),i=n("9112"),u=c("species"),a=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),f=function(){return"$0"==="a".replace(/./,"$0")}(),s=c("replace"),l=function(){return!!/./[s]&&""===/./[s]("a","$0")}(),p=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,s){var d=c(t),v=!o((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),h=v&&!o((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[u]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return e=!0,null},n[d](""),!e}));if(!v||!h||"replace"===t&&(!a||!f||l)||"split"===t&&!p){var b=/./[d],g=n(d,""[t],(function(t,e,n,r,o){return e.exec===RegExp.prototype.exec?v&&!o?{done:!0,value:b.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:f,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:l}),y=g[0],m=g[1];r(String.prototype,t,y),r(RegExp.prototype,d,2==e?function(t,e){return m.call(t,this,e)}:function(t){return m.call(t,this)})}s&&i(RegExp.prototype[d],"sham",!0)}},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(t,e,n){var r=n("23e7"),o=n("83ab"),c=n("56ef"),i=n("fc6a"),u=n("06cf"),a=n("8418");r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){var e,n,r=i(t),o=u.f,f=c(r),s={},l=0;while(f.length>l)n=o(r,e=f[l++]),void 0!==n&&a(s,e,n);return s}})},df75:function(t,e,n){var r=n("ca84"),o=n("7839");t.exports=Object.keys||function(t){return r(t,o)}},e2cc:function(t,e,n){var r=n("6eeb");t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},e439:function(t,e,n){var r=n("23e7"),o=n("d039"),c=n("fc6a"),i=n("06cf").f,u=n("83ab"),a=o((function(){i(1)})),f=!u||a;r({target:"Object",stat:!0,forced:f,sham:!u},{getOwnPropertyDescriptor:function(t,e){return i(c(t),e)}})},e538:function(t,e,n){var r=n("b622");e.f=r},e667:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e6cf:function(t,e,n){"use strict";var r,o,c,i,u=n("23e7"),a=n("c430"),f=n("da84"),s=n("d066"),l=n("fea9"),p=n("6eeb"),d=n("e2cc"),v=n("d44e"),h=n("2626"),b=n("861d"),g=n("1c0b"),y=n("19aa"),m=n("8925"),x=n("2266"),w=n("1c7e"),S=n("4840"),E=n("2cf4").set,O=n("b575"),j=n("cdf9"),P=n("44de"),T=n("f069"),_=n("e667"),L=n("69f3"),R=n("94ca"),A=n("b622"),k=n("605d"),I=n("2d00"),M=A("species"),C="Promise",N=L.get,D=L.set,U=L.getterFor(C),$=l,F=f.TypeError,W=f.document,G=f.process,q=s("fetch"),V=T.f,B=V,H=!!(W&&W.createEvent&&f.dispatchEvent),z="function"==typeof PromiseRejectionEvent,K="unhandledrejection",Y="rejectionhandled",X=0,J=1,Q=2,Z=1,tt=2,et=R(C,(function(){var t=m($)!==String($);if(!t){if(66===I)return!0;if(!k&&!z)return!0}if(a&&!$.prototype["finally"])return!0;if(I>=51&&/native code/.test($))return!1;var e=$.resolve(1),n=function(t){t((function(){}),(function(){}))},r=e.constructor={};return r[M]=n,!(e.then((function(){}))instanceof n)})),nt=et||!w((function(t){$.all(t)["catch"]((function(){}))})),rt=function(t){var e;return!(!b(t)||"function"!=typeof(e=t.then))&&e},ot=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;O((function(){var r=t.value,o=t.state==J,c=0;while(n.length>c){var i,u,a,f=n[c++],s=o?f.ok:f.fail,l=f.resolve,p=f.reject,d=f.domain;try{s?(o||(t.rejection===tt&&at(t),t.rejection=Z),!0===s?i=r:(d&&d.enter(),i=s(r),d&&(d.exit(),a=!0)),i===f.promise?p(F("Promise-chain cycle")):(u=rt(i))?u.call(i,l,p):l(i)):p(r)}catch(v){d&&!a&&d.exit(),p(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&it(t)}))}},ct=function(t,e,n){var r,o;H?(r=W.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),f.dispatchEvent(r)):r={promise:e,reason:n},!z&&(o=f["on"+t])?o(r):t===K&&P("Unhandled promise rejection",n)},it=function(t){E.call(f,(function(){var e,n=t.facade,r=t.value,o=ut(t);if(o&&(e=_((function(){k?G.emit("unhandledRejection",r,n):ct(K,n,r)})),t.rejection=k||ut(t)?tt:Z,e.error))throw e.value}))},ut=function(t){return t.rejection!==Z&&!t.parent},at=function(t){E.call(f,(function(){var e=t.facade;k?G.emit("rejectionHandled",e):ct(Y,e,t.value)}))},ft=function(t,e,n){return function(r){t(e,r,n)}},st=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=Q,ot(t,!0))},lt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw F("Promise can't be resolved itself");var r=rt(e);r?O((function(){var n={done:!1};try{r.call(e,ft(lt,n,t),ft(st,n,t))}catch(o){st(n,o,t)}})):(t.value=e,t.state=J,ot(t,!1))}catch(o){st({done:!1},o,t)}}};et&&($=function(t){y(this,$,C),g(t),r.call(this);var e=N(this);try{t(ft(lt,e),ft(st,e))}catch(n){st(e,n)}},r=function(t){D(this,{type:C,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:X,value:void 0})},r.prototype=d($.prototype,{then:function(t,e){var n=U(this),r=V(S(this,$));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=k?G.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=X&&ot(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=N(t);this.promise=t,this.resolve=ft(lt,e),this.reject=ft(st,e)},T.f=V=function(t){return t===$||t===c?new o(t):B(t)},a||"function"!=typeof l||(i=l.prototype.then,p(l.prototype,"then",(function(t,e){var n=this;return new $((function(t,e){i.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof q&&u({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return j($,q.apply(f,arguments))}}))),u({global:!0,wrap:!0,forced:et},{Promise:$}),v($,C,!1,!0),h(C),c=s(C),u({target:C,stat:!0,forced:et},{reject:function(t){var e=V(this);return e.reject.call(void 0,t),e.promise}}),u({target:C,stat:!0,forced:a||et},{resolve:function(t){return j(a&&this===c?$:this,t)}}),u({target:C,stat:!0,forced:nt},{all:function(t){var e=this,n=V(e),r=n.resolve,o=n.reject,c=_((function(){var n=g(e.resolve),c=[],i=0,u=1;x(t,(function(t){var a=i++,f=!1;c.push(void 0),u++,n.call(e,t).then((function(t){f||(f=!0,c[a]=t,--u||r(c))}),o)})),--u||r(c)}));return c.error&&o(c.value),n.promise},race:function(t){var e=this,n=V(e),r=n.reject,o=_((function(){var o=g(e.resolve);x(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},e893:function(t,e,n){var r=n("5135"),o=n("56ef"),c=n("06cf"),i=n("9bf2");t.exports=function(t,e){for(var n=o(e),u=i.f,a=c.f,f=0;f<n.length;f++){var s=n[f];r(t,s)||u(t,s,a(e,s))}}},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},e95a:function(t,e,n){var r=n("b622"),o=n("3f8c"),c=r("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||i[c]===t)}},f069:function(t,e,n){"use strict";var r=n("1c0b"),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},f5df:function(t,e,n){var r=n("00ee"),o=n("c6b6"),c=n("b622"),i=c("toStringTag"),u="Arguments"==o(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:u?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},f772:function(t,e,n){var r=n("5692"),o=n("90e3"),c=r("keys");t.exports=function(t){return c[t]||(c[t]=o(t))}},fae3:function(t,e,n){"use strict";if(n.r(e),n.d(e,"SignInType",(function(){return f})),n.d(e,"LogLevel",(function(){return s})),n.d(e,"createOidcAuth",(function(){return d})),"undefined"!==typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var c=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(n.p=c[1])}n("b64b"),n("a4d3"),n("4de4"),n("e439"),n("159b"),n("dbb4");function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(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 a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n("99af"),n("d3b7"),n("e6cf"),n("ac1f"),n("5319"),n("4d63"),n("25f0");var f,s,l=n("8bbf"),p=n("c097");function d(t,e,n,r,o,c){if(!t)throw new Error("Auth name is required.");if(e!==f.Window&&e!==f.Popup)throw new Error("Only window or popup are valid default signin types.");if(!n)throw new Error("App base url is required.");if(!r)throw new Error("No config provided to oidc auth.");p["Log"].logger=o||console,p["Log"].level=c||s.Error;var i=b(t),u=a({response_type:"id_token",scope:"openid profile",automaticSilentRenew:!0,userStore:new p["WebStorageStateStore"]({store:sessionStorage}),post_logout_redirect_uri:n,redirect_uri:"".concat(n,"auth/signinwin/").concat(i),popup_post_logout_redirect_uri:"".concat(n,"auth/signoutpop/").concat(i),popup_redirect_uri:"".concat(n,"auth/signinpop/").concat(i),silent_redirect_uri:"".concat(n,"auth/signinsilent/").concat(i)},r);p["Log"].debug("Creating new oidc auth as ".concat(t));var d=new p["UserManager"](u),g=!1,y=null,m=Object(l["ref"])(null),x=Object(l["reactive"])({appUrl:n,authName:t,mgr:d,user:m,isAuthenticated:Object(l["computed"])((function(){return!!m.value&&!m.value.expired})),accessToken:Object(l["computed"])((function(){return m.value&&!m.value.expired?m.value.access_token:""})),userProfile:Object(l["computed"])((function(){return m.value&&!m.value.expired?m.value.profile:{iss:"",sub:"",aud:"",exp:0,iat:0}})),events:d.events,signIn:function(t){return S(e,t)},signOut:function(t){return e===f.Popup?d.signoutPopup(t).then((function(){E(y)})).catch((function(){E(y)})):(d.stopSilentRenew(),d.signoutRedirect(t))},startSilentRenew:function(){d.startSilentRenew()},stopSilentRenew:function(){d.stopSilentRenew()},startup:function(){var e=!1;return h(u.popup_redirect_uri)?(p["Log"].debug("".concat(t," Popup signin callback")),d.signinPopupCallback(),e=!0):h(u.silent_redirect_uri)?(p["Log"].debug("".concat(t," Silent signin callback")),d.signinSilentCallback(),e=!0):h(u.popup_post_logout_redirect_uri)&&(p["Log"].debug("".concat(t," Popup logout callback")),d.signoutPopupCallback(),e=!0),e?Promise.resolve(!1):g?Promise.resolve(!0):d.getUser().then((function(t){return g=!0,t&&!t.expired&&(m.value=t),!0})).catch((function(t){return p["Log"].warn("Auth startup err = ".concat(t)),!1}))},useRouter:function(r){if(y=r,r.beforeEach((function(n,r,o){n.matched.some((function(t){return t.meta.authName===x.authName}))?x.isAuthenticated?(p["Log"].debug("".concat(t," auth authenticated user entering protected route ").concat(n.fullPath)),o()):(p["Log"].debug("".concat(t," auth anon user entering protected route ").concat(n.fullPath)),S(e,{state:{to:n}}).then((function(){e===f.Window?o(!1):o()})).catch((function(){return o(!1)}))):o()})),u.redirect_uri){var o="/"+v(u.redirect_uri).substring((r.options.history.base||"/").length);r.addRoute({path:o,name:"signinwin-".concat(i),component:{render:function(){return Object(l["h"])("div")},created:function(){d.signinRedirectCallback().then((function(e){p["Log"].debug("".concat(t," Window signin callback success"),e);var o=e.state?e.state.to:null;r?r.replace(o||"/"):window.location.href=n})).catch((function(e){p["Log"].error("".concat(t," Window signin callback error"),e),r?r.replace("/"):window.location.href=n}))}}})}}});function w(){if(y){var n=y.currentRoute.value;n&&n.meta.authName===t&&(p["Log"].debug("".concat(t," auth page re-signin with ").concat(e)),S(e,{state:{to:n}}).then((function(){})).catch((function(){setTimeout(w,5e3)})))}}function S(t,e){switch(t){case f.Popup:return d.signinPopup(e)}return d.signinRedirect(e)}function E(e){if(e){var r=e.currentRoute.value;if(r&&r.meta.authName===t)return void e.replace("/")}n&&(window.location.href=n)}function O(){d.events.addUserLoaded((function(t){m.value=t})),d.events.addUserUnloaded((function(){m.value=null,p["Log"].debug("".concat(t," auth user unloaded"))})),d.events.addAccessTokenExpired((function(){p["Log"].debug("".concat(t," auth token expired, user is authenticated=").concat(x.isAuthenticated)),m.value=null,w()})),d.events.addSilentRenewError((function(e){p["Log"].debug("".concat(t," auth silent renew error ").concat(e)),x.isAuthenticated?setTimeout((function(){p["Log"].debug("".concat(t," auth silent renew retry")),d.signinSilent()}),5e3):w()})),d.events.addUserSignedOut((function(){p["Log"].debug("".concat(t," auth user signed out")),m.value=null,w()}))}return O(),x}function v(t){var e=document.createElement("a");e.href=t;var n=e.pathname;return"/"!==n[0]&&(n="/"+n),n}function h(t){return window.location.pathname.toLocaleLowerCase()===v(t).toLocaleLowerCase()}function b(t){t=t.replace(/^\s+|\s+$/g,""),t=t.toLowerCase();for(var e="ãàáäâẽèéëêìíïîõòóöôùúüûñç·/_,:;",n="aaaaaeeeeeiiiiooooouuuunc------",r=0,o=e.length;r<o;r++)t=t.replace(new RegExp(e.charAt(r),"g"),n.charAt(r));return t=t.replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-"),t}(function(t){t[t["Window"]=0]="Window",t[t["Popup"]=1]="Popup"})(f||(f={})),function(t){t[t["None"]=0]="None",t[t["Error"]=1]="Error",t[t["Warn"]=2]="Warn",t[t["Info"]=3]="Info",t[t["Debug"]=4]="Debug"}(s||(s={}))},fc6a:function(t,e,n){var r=n("44ad"),o=n("1d80");t.exports=function(t){return r(o(t))}},fdbc:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(t,e,n){var r=n("4930");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(t,e,n){var r=n("da84");t.exports=r.Promise}})})); //# sourceMappingURL=vue-oidc-client.umd.min.js.map