1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/entries/pages_error.TwgqIYp5.js","assets/entries/pages_test-299734_pages.CSJaScXI.js","assets/chunks/chunk-OWQo565b.js","assets/chunks/chunk-CQymhxk6.js","assets/static/renderer_Layout-7d0de3ce.BRx3BdcN.css","assets/entries/pages_listing-index.Dr8no8Tp.js","assets/entries/pages_trader-signup-landing.DcVIg7C3.js","assets/entries/pages_recipes_print.BnIDO_nC.js","assets/entries/pages_newsletters-landing.D0nKUccU.js","assets/entries/pages_newsletter_newsletter-management-centre.hg2U4ygd.js","assets/chunks/chunk-Qvopg7Jm.js","assets/static/swiper.CZuSZ9G0.css","assets/entries/pages_gbc-unlocked.B_xkM2SV.js","assets/static/pages_gbc-unlocked_components_HeaderSection-0a8dc738.CsCej-88.css","assets/entries/pages_competition-calendar.xGUD6Nyy.js","assets/static/pages_collection_components_ExploreCollections-55cfd212.DsPbprwd.css","assets/entries/pages_test-299734_pages_test-ads.CKwnTmWI.js","assets/entries/pages_account-details.T1rypJp7.js","assets/chunks/chunk-BB1ZT9ms.js","assets/static/components_ui_GbcAverageStarRating-34ea2108.DU-Yf59g.css","assets/entries/pages_behind-the-pass.BZpa8Q7r.js","assets/entries/pages_chefs-landing.CluDB8OI.js","assets/chunks/chunk-CGsKzP23.js","assets/entries/pages_chef.bgBdTSvy.js","assets/entries/pages_contributor.DYikEDJG.js","assets/static/pages_content_components_SequenceContainer-d4a02361.DND_6S0i.css","assets/entries/pages_collect-data-basic-form.E83EzuY4.js","assets/entries/pages_collection.lFur_MZe.js","assets/entries/pages_competition-landing.CIoP5A_P.js","assets/entries/pages_competition.BRVY3l6_.js","assets/entries/pages_content-simple.C1u_4i4w.js","assets/entries/pages_content.ByGOPNuy.js","assets/chunks/chunk-BY87920j.js","assets/entries/pages_content_content-print.CREqh2wQ.js","assets/entries/pages_contributors.Cju924EW.js","assets/entries/pages_event-signup-landing.CGe-seag.js","assets/entries/pages_features-landing.BuX4OIao.js","assets/entries/pages_gbc-professional-hub.BupNoSlk.js","assets/entries/pages_gift-membership-form.Zp7Vmzgn.js","assets/chunks/chunk-Cf3H3IFL.js","assets/entries/pages_how-to-landing.BfRQWwsB.js","assets/entries/pages_how-to.cYOVW39q.js","assets/entries/pages_index.D-NV5pJZ.js","assets/entries/pages_maps.CM8cj-oM.js","assets/entries/pages_membership-form.BhuVa3iI.js","assets/entries/pages_membership-post-login.B1JUKz2P.js","assets/entries/pages_membership-student-form.Dh3tOpra.js","assets/entries/pages_michelin-index.BzRhFBw9.js","assets/entries/pages_newsletter-signup.CoXMbJJ3.js","assets/entries/pages_recipes-landing.BzuSXmVa.js","assets/entries/pages_recipes.Duy7HT8z.js","assets/static/components_ui_ShopReadMoreModal-6c9afb52.D7efLonS.css","assets/entries/pages_recipes_shopping-list.JEOuIAny.js","assets/entries/pages_restaurant-collection.0OraBn1x.js","assets/entries/pages_restaurant.Bw9j2r84.js","assets/entries/pages_restaurants-landing.q_mcQows.js","assets/entries/pages_search.DCVEWKzC.js","assets/entries/pages_serie.EMG2pZkj.js","assets/entries/pages_signature-series.BOX2HjQ7.js","assets/entries/pages_signin-or-register.Cg-AXN7G.js","assets/entries/pages_spanish-hub.D8oXGpJV.js","assets/entries/pages_the-kitchen-landing.CaT0vOSo.js","assets/entries/pages_video-reels.BC5iTDts.js"])))=>i.map(i=>d[i]); 2import{u as $r,v as Oi,c as Ye,d as Nt,w as Pn,x as Ei,j as Ts,p as Iu,r as jn,b as Ou,q as Pt,f as yn,y as ju,z as Lu,A as zu,l as Uu,B as Mu,s as Ds}from"../chunks/chunk-OWQo565b.js";var Mo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function to(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Nu(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var o=function i(){var a=!1;try{a=this instanceof i}catch{}return a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(o,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),o}var Ln={exports:{}},Hu=Ln.exports,No;function Bu(){return No||(No=1,(function(e,t){(function(i,a){e.exports=a()})(Hu,(function(){return(function(o){var i={};function a(c){if(i[c])return i[c].exports;var u=i[c]={i:c,l:!1,exports:{}};return o[c].call(u.exports,u,u.exports,a),u.l=!0,u.exports}return a.m=o,a.c=i,a.d=function(c,u,m){a.o(c,u)||Object.defineProperty(c,u,{enumerable:!0,get:m})},a.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},a.t=function(c,u){if(1&u&&(c=a(c)),8&u||4&u&&typeof c=="object"&&c&&c.__esModule)return c;var m=Object.create(null);if(a.r(m),Object.defineProperty(m,"default",{enumerable:!0,value:c}),2&u&&typeof c!="string")for(var f in c)a.d(m,f,function(d){return c[d]}.bind(null,f));return m},a.n=function(c){var u=c&&c.__esModule?function(){return c.default}:function(){return c};return a.d(u,"a",u),u},a.o=function(c,u){return Object.prototype.hasOwnProperty.call(c,u)},a.p="",a(a.s=22)})([function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0});var c=(function(){function d(h,p){for(var v=0;v<p.length;v++){var F=p[v];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(h,F.key,F)}}return function(h,p,v){return p&&d(h.prototype,p),v&&d(h,v),h}})(),u={debug:function(){},info:function(){},warn:function(){},error:function(){}},m=void 0,f=void 0;(i.Log=(function(){function d(){(function(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")})(this,d)}return d.reset=function(){f=3,m=u},d.debug=function(){if(f>=4){for(var p=arguments.length,v=Array(p),F=0;F<p;F++)v[F]=arguments[F];m.debug.apply(m,Array.from(v))}},d.info=function(){if(f>=3){for(var p=arguments.length,v=Array(p),F=0;F<p;F++)v[F]=arguments[F];m.info.apply(m,Array.from(v))}},d.warn=function(){if(f>=2){for(var p=arguments.length,v=Array(p),F=0;F<p;F++)v[F]=arguments[F];m.warn.apply(m,Array.from(v))}},d.error=function(){if(f>=1){for(var p=arguments.length,v=Array(p),F=0;F<p;F++)v[F]=arguments[F];m.error.apply(m,Array.from(v))}},c(d,null,[{key:"NONE",get:function(){return 0}},{key:"ERROR",get:function(){return 1}},{key:"WARN",get:function(){return 2}},{key:"INFO",get:function(){return 3}},{key:"DEBUG",get:function(){return 4}},{key:"level",get:function(){return f},set:function(p){if(!(0<=p&&p<=4))throw new Error("Invalid log level");f=p}},{key:"logger",get:function(){return m},set:function(p){if(!p.debug&&p.info&&(p.debug=p.info),!(p.debug&&p.info&&p.warn&&p.error))throw new Error("Invalid logger");m=p}}]),d})()).reset()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0});var c=(function(){function d(h,p){for(var v=0;v<p.length;v++){var F=p[v];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(h,F.key,F)}}return function(h,p,v){return p&&d(h.prototype,p),v&&d(h,v),h}})(),u={setInterval:(function(d){function h(p,v){return d.apply(this,arguments)}return h.toString=function(){return d.toString()},h})((function(d,h){return setInterval(d,h)})),clearInterval:(function(d){function h(p){return d.apply(this,arguments)}return h.toString=function(){return d.toString()},h})((function(d){return clearInterval(d)}))},m=!1,f=null;i.Global=(function(){function d(){(function(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")})(this,d)}return d._testing=function(){m=!0},d.setXMLHttpRequest=function(p){f=p},c(d,null,[{key:"location",get:function(){if(!m)return location}},{key:"localStorage",get:function(){if(!m&&typeof window<"u")return localStorage}},{key:"sessionStorage",get:function(){if(!m&&typeof window<"u")return sessionStorage}},{key:"XMLHttpRequest",get:function(){if(!m&&typeof window<"u")return f||XMLHttpRequest}},{key:"timer",get:function(){if(!m)return u}}]),d})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.MetadataService=void 0;var c=(function(){function h(p,v){for(var F=0;F<v.length;F++){var b=v[F];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,v,F){return v&&h(p.prototype,v),F&&h(p,F),p}})(),u=a(0),m=a(7);function f(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}var d=".well-known/openid-configuration";i.MetadataService=(function(){function h(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m.JsonService;if(f(this,h),!p)throw u.Log.error("MetadataService: No settings passed to MetadataService"),new Error("settings");this._settings=p,this._jsonService=new v(["application/jwk-set+json"])}return h.prototype.resetSigningKeys=function(){this._settings=this._settings||{},this._settings.signingKeys=void 0},h.prototype.getMetadata=function(){var v=this;return this._settings.metadata?(u.Log.debug("MetadataService.getMetadata: Returning metadata from settings"),Promise.resolve(this._settings.metadata)):this.metadataUrl?(u.Log.debug("MetadataService.getMetadata: getting metadata from",this.metadataUrl),this._jsonService.getJson(this.metadataUrl).then((function(F){u.Log.debug("MetadataService.getMetadata: json received");var b=v._settings.metadataSeed||{};return v._settings.metadata=Object.assign({},b,F),v._settings.metadata}))):(u.Log.error("MetadataService.getMetadata: No authority or metadataUrl configured on settings"),Promise.reject(new Error("No authority or metadataUrl configured on settings")))},h.prototype.getIssuer=function(){return this._getMetadataProperty("issuer")},h.prototype.getAuthorizationEndpoint=function(){return this._getMetadataProperty("authorization_endpoint")},h.prototype.getUserInfoEndpoint=function(){return this._getMetadataProperty("userinfo_endpoint")},h.prototype.getTokenEndpoint=function(){var v=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this._getMetadataProperty("token_endpoint",v)}
2,h.prototype.getCheckSessionIframe=function(){return this._getMetadataProperty("check_session_iframe",!0)},h.prototype.getEndSessionEndpoint=function(){return this._getMetadataProperty("end_session_endpoint",!0)},h.prototype.getRevocationEndpoint=function(){return this._getMetadataProperty("revocation_endpoint",!0)},h.prototype.getKeysEndpoint=function(){return this._getMetadataProperty("jwks_uri",!0)},h.prototype._getMetadataProperty=function(v){var F=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return u.Log.debug("MetadataService.getMetadataProperty for: "+v),this.getMetadata().then((function(b){if(u.Log.debug("MetadataService.getMetadataProperty: metadata recieved"),b[v]===void 0){if(F===!0)return void u.Log.warn("MetadataService.getMetadataProperty: Metadata does not contain optional property "+v);throw u.Log.error("MetadataService.getMetadataProperty: Metadata does not contain property "+v),new Error("Metadata does not contain property "+v)}return b[v]}))},h.prototype.getSigningKeys=function(){var v=this;return this._settings.signingKeys?(u.Log.debug("MetadataService.getSigningKeys: Returning signingKeys from settings"),Promise.resolve(this._settings.signingKeys)):this._getMetadataProperty("jwks_uri").then((function(F){return u.Log.debug("MetadataService.getSigningKeys: jwks_uri received",F),v._jsonService.getJson(F).then((function(b){if(u.Log.debug("MetadataService.getSigningKeys: key set received",b),!b.keys)throw u.Log.error("MetadataService.getSigningKeys: Missing keys on keyset"),new Error("Missing keys on keyset");return v._settings.signingKeys=b.keys,v._settings.signingKeys}))}))},c(h,[{key:"metadataUrl",get:function(){return this._metadataUrl||(this._settings.metadataUrl?this._metadataUrl=this._settings.metadataUrl:(this._metadataUrl=this._settings.authority,this._metadataUrl&&this._metadataUrl.indexOf(d)<0&&(this._metadataUrl[this._metadataUrl.length-1]!=="/"&&(this._metadataUrl+="/"),this._metadataUrl+=d))),this._metadataUrl}}]),h})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.UrlUtility=void 0;var c=a(0),u=a(1);i.UrlUtility=(function(){function m(){(function(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")})(this,m)}return m.addQueryParam=function(d,h,p){return d.indexOf("?")<0&&(d+="?"),d[d.length-1]!=="?"&&(d+="&"),d+=encodeURIComponent(h),d+="=",d+=encodeURIComponent(p)},m.parseUrlFragment=function(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#",p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.Global;typeof d!="string"&&(d=p.location.href);var v=d.lastIndexOf(h);v>=0&&(d=d.substr(v+1)),h==="?"&&(v=d.indexOf("#"))>=0&&(d=d.substr(0,v));for(var F,b={},T=/([^&=]+)=([^&]*)/g,R=0;F=T.exec(d);)if(b[decodeURIComponent(F[1])]=decodeURIComponent(F[2].replace(/\+/g," ")),R++>50)return c.Log.error("UrlUtility.parseUrlFragment: response exceeded expected number of parameters",d),{error:"Response exceeded expected number of parameters"};for(var j in b)return b;return{}},m})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.JoseUtil=void 0;var c=a(26),u=(function(f){return f&&f.__esModule?f:{default:f}})(a(33));i.JoseUtil=(0,u.default)({jws:c.jws,KeyUtil:c.KeyUtil,X509:c.X509,crypto:c.crypto,hextob64u:c.hextob64u,b64tohex:c.b64tohex,AllowedSigningAlgs:c.AllowedSigningAlgs})},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.OidcClientSettings=void 0;var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},u=(function(){function j(D,N){for(var Z=0;Z<N.length;Z++){var V=N[Z];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(D,V.key,V)}}return function(D,N,Z){return N&&j(D.prototype,N),Z&&j(D,Z),D}})(),m=a(0),f=a(23),d=a(6),h=a(24),p=a(2);function v(j,D){if(!(j instanceof D))throw new TypeError("Cannot call a class as a function")}var F=".well-known/openid-configuration",b="id_token",T="openid",R="client_secret_post";i.OidcClientSettings=(function(){function j(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=D.authority,Z=D.metadataUrl,V=D.metadata,J=D.signingKeys,W=D.metadataSeed,le=D.client_id,de=D.client_secret,ve=D.response_type,K=ve===void 0?b:ve,Se=D.scope,y=Se===void 0?T:Se,E=D.redirect_uri,O=D.post_logout_redirect_uri,Q=D.client_authentication,se=Q===void 0?R:Q,ce=D.prompt,ie=D.display,ae=D.max_age,pe=D.ui_locales,xe=D.acr_values,je=D.resource,Le=D.response_mode,ze=D.filterProtocolClaims,Be=ze===void 0||ze,Je=D.loadUserInfo,Ke=Je===void 0||Je,We=D.staleStateAge,Xe=We===void 0?900:We,M=D.clockSkew,S=M===void 0?300:M,w=D.clockService,H=w===void 0?new f.ClockService:w,$=D.userInfoJwtIssuer,X=$===void 0?"OP":$,ue=D.mergeClaims,be=ue!==void 0&&ue,Ie=D.stateStore,$e=Ie===void 0?new d.WebStorageStateStore:Ie,He=D.ResponseValidatorCtor,ut=He===void 0?h.ResponseValidator:He,lt=D.MetadataServiceCtor,vt=lt===void 0?p.MetadataService:lt,xt=D.extraQueryParams,Pe=xt===void 0?{}:xt,tt=D.extraTokenParams,Me=tt===void 0?{}:tt;v(this,j),this._authority=N,this._metadataUrl=Z,this._metadata=V,this._metadataSeed=W,this._signingKeys=J,this._client_id=le,this._client_secret=de,this._response_type=K,this._scope=y,this._redirect_uri=E,this._post_logout_redirect_uri=O,this._client_authentication=se,this._prompt=ce,this._display=ie,this._max_age=ae,this._ui_locales=pe,this._acr_values=xe,this._resource=je,this._response_mode=Le,this._filterProtocolClaims=!!Be,this._loadUserInfo=!!Ke,this._staleStateAge=Xe,this._clockSkew=S,this._clockService=H,this._userInfoJwtIssuer=X,this._mergeClaims=!!be,this._stateStore=$e,this._val
2idator=new ut(this),this._metadataService=new vt(this),this._extraQueryParams=(Pe===void 0?"undefined":c(Pe))==="object"?Pe:{},this._extraTokenParams=(Me===void 0?"undefined":c(Me))==="object"?Me:{}}return j.prototype.getEpochTime=function(){return this._clockService.getEpochTime()},u(j,[{key:"client_id",get:function(){return this._client_id},set:function(N){if(this._client_id)throw m.Log.error("OidcClientSettings.set_client_id: client_id has already been assigned."),new Error("client_id has already been assigned.");this._client_id=N}},{key:"client_secret",get:function(){return this._client_secret}},{key:"response_type",get:function(){return this._response_type}},{key:"scope",get:function(){return this._scope}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"post_logout_redirect_uri",get:function(){return this._post_logout_redirect_uri}},{key:"client_authentication",get:function(){return this._client_authentication}},{key:"prompt",get:function(){return this._prompt}},{key:"display",get:function(){return this._display}},{key:"max_age",get:function(){return this._max_age}},{key:"ui_locales",get:function(){return this._ui_locales}},{key:"acr_values",get:function(){return this._acr_values}},{key:"resource",get:function(){return this._resource}},{key:"response_mode",get:function(){return this._response_mode}},{key:"authority",get:function(){return this._authority},set:function(N){if(this._authority)throw m.Log.error("OidcClientSettings.set_authority: authority has already been assigned."),new Error("authority has already been assigned.");this._authority=N}},{key:"metadataUrl",get:function(){return this._metadataUrl||(this._metadataUrl=this.authority,this._metadataUrl&&this._metadataUrl.indexOf(F)<0&&(this._metadataUrl[this._metadataUrl.length-1]!=="/"&&(this._metadataUrl+="/"),this._metadataUrl+=F)),this._metadataUrl}},{key:"metadata",get:function(){return this._metadata},set:function(N){this._metadata=N}},{key:"metadataSeed",get:function(){return this._metadataSeed},set:function(N){this._metadataSeed=N}},{key:"signingKeys",get:function(){return this._signingKeys},set:function(N){this._signingKeys=N}},{key:"filterProtocolClaims",get:function(){return this._filterProtocolClaims}},{key:"loadUserInfo",get:function(){return this._loadUserInfo}},{key:"staleStateAge",get:function(){return this._staleStateAge}},{key:"clockSkew",get:function(){return this._clockSkew}},{key:"userInfoJwtIssuer",get:function(){return this._userInfoJwtIssuer}},{key:"mergeClaims",get:function(){return this._mergeClaims}},{key:"stateStore",get:function(){return this._stateStore}},{key:"validator",get:function(){return this._validator}},{key:"metadataService",get:function(){return this._metadataService}},{key:"extraQueryParams",get:function(){return this._extraQueryParams},set:function(N){(N===void 0?"undefined":c(N))==="object"?this._extraQueryParams=N:this._extraQueryParams={}}},{key:"extraTokenParams",get:function(){return this._extraTokenParams},set:function(N){(N===void 0?"undefined":c(N))==="object"?this._extraTokenParams=N:this._extraTokenParams={}}}]),j})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.WebStorageStateStore=void 0;var c=a(0),u=a(1);function m(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}i.WebStorageStateStore=(function(){function f(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=d.prefix,p=h===void 0?"oidc.":h,v=d.store,F=v===void 0?u.Global.localStorage:v;m(this,f),this._store=F,this._prefix=p}return f.prototype.set=function(h,p){return c.Log.debug("WebStorageStateStore.set",h),h=this._prefix+h,this._store.setItem(h,p),Promise.resolve()},f.prototype.get=function(h){c.Log.debug("WebStorageStateStore.get",h),h=this._prefix+h;var p=this._store.getItem(h);return Promise.resolve(p)},f.prototype.remove=function(h){c.Log.debug("WebStorageStateStore.remove",h),h=this._prefix+h;var p=this._store.getItem(h);return this._store.removeItem(h),Promise.resolve(p)},f.prototype.getAllKeys=function(){c.Log.debug("WebStorageStateStore.getAllKeys");for(var h=[],p=0;p<this._store.length;p++){var v=this._store.key(p);v.indexOf(this._prefix)===0&&h.push(v.substr(this._prefix.length))}return Promise.resolve(h)},f})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.JsonService=void 0;var c=a(0),u=a(1);function m(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}i.JsonService=(function(){function f(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.Global.XMLHttpRequest,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;m(this,f),d&&Array.isArray(d)?this._contentTypes=d.slice():this._contentTypes=[],this._contentTypes.push("application/json"),p&&this._contentTypes.push("application/jwt"),this._XMLHttpRequest=h,this._jwtHandler=p}return f.prototype.getJson=function(h,p){var v=this;if(!h)throw c.Log.error("JsonService.getJson: No url passed"),new Error("url");return c.Log.debug("JsonService.getJson, url: ",h),new Promise((function(F,b){var T=new v._XMLHttpRequest;T.open("GET",h);var R=v._contentTypes,j=v._jwtHandler;T.onload=function(){if(c.Log.debug("JsonService.getJson: HTTP response received, status",T.status),T.status===200){var D=T.getResponseHeader("Content-Type");if(D){var N=R.find((function(Z){if(D.startsWith(Z))return!0}));if(N=="application/jwt")return void j(T).then(F,b);if(N)try{return void F(JSON.parse(T.responseText))}catch(Z){return c.Log.error("JsonService.getJson: Error parsing JSON response",Z.message),void b(Z)}}b(Error("Invalid response Content-Type: "+D+", from URL: "+h))}else b(Error(T.statusText+" ("+T.status+")"))},T.onerror=function(){c.Log.error("JsonService.getJson: network error"),b(Error("Network Error"))},p&&(c.Log.debug("JsonService.getJson: token passed, setting Authorization header"),T.setRequestHeader("Authorization","Bearer "+p)),T.send()}))},f.prototype.postForm=function(h,p,v){var F=this;if(!h)throw c.Log.error("JsonService.postForm: No url passed"),new Error("url");return c.Log.debug("JsonService.postForm, url: ",h),new Promise((function(b,T){var R=new F._XMLHttpRequest;R.open("POST",h);var j=F._contentTypes;R.onload=function(){if(c.Log.debug("JsonService.postForm: HTTP response received, status",R.status),R.status!==200){if(R.status===400&&(J=R.getResponseHeader("Content-Type"))&&j.find((function(W){if(J.startsWith(W))return!0})))try{var V=JSON.parse(R.responseText);if(V&&V.error)return c.Log.error("JsonService.postForm: Error from server: ",V.error),void T(new Error(V.error))}catch(W){return c.Log.error("JsonService.postForm: Error parsing JSON response",W.message),void T(W)}T(Error(R.statusText+" ("+R.status+")"))}else{var J;if((J=R.getResponseHeader("Content-Type"))&&j.find((function(W){if(J.startsWith(W))return!0})))try{return void b(JSON.parse(R.responseText))}catch(W){return c.Log.error("JsonService.postForm: Error parsing JSON response",W.message),void T(W)}T(Error("Invalid response Content-Type: "+J+", from URL: "+h))}},R.onerror=function(){c.Log.error("JsonService.postForm: network error"),T(Error("Network Error"))};var D="";for(var N in p){var Z=p[N];Z&&(D.length>0&&(D+="&"),D+=encodeURIComponent(N),D+="=",D+=encodeURIComponent(Z))}R.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),v!==void 0&&R.setRequestHeader("Authorization","Basic "+btoa(v)),R.send(D)}))},f})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.SigninRequest=void 0;var c=a(0),u=a(3),m=a(13);i.SigninRequest=(function(){function f(d){var h=d.url,p=d.client_id,v=d.redirect_uri,F=d.response_type,b=d.scope,T=d.authority,R=d.data,j=d.prompt,D=d.display,N=d.max_age,Z=d.ui_locales,V=d.id_token_hint,J=d.login_hint,W=d.acr_values,le=d.resource,de=d.response_mode,ve=d.request,K=d.request_uri,Se=d.extraQueryParams,y=d.request_type,E=d.client_secret,O=d.extraTokenParams,Q=d.skipUserInfo;
2if((function(je,Le){if(!(je instanceof Le))throw new TypeError("Cannot call a class as a function")})(this,f),!h)throw c.Log.error("SigninRequest.ctor: No url passed"),new Error("url");if(!p)throw c.Log.error("SigninRequest.ctor: No client_id passed"),new Error("client_id");if(!v)throw c.Log.error("SigninRequest.ctor: No redirect_uri passed"),new Error("redirect_uri");if(!F)throw c.Log.error("SigninRequest.ctor: No response_type passed"),new Error("response_type");if(!b)throw c.Log.error("SigninRequest.ctor: No scope passed"),new Error("scope");if(!T)throw c.Log.error("SigninRequest.ctor: No authority passed"),new Error("authority");var se=f.isOidc(F),ce=f.isCode(F);de||(de=f.isCode(F)?"query":null),this.state=new m.SigninState({nonce:se,data:R,client_id:p,authority:T,redirect_uri:v,code_verifier:ce,request_type:y,response_mode:de,client_secret:E,scope:b,extraTokenParams:O,skipUserInfo:Q}),h=u.UrlUtility.addQueryParam(h,"client_id",p),h=u.UrlUtility.addQueryParam(h,"redirect_uri",v),h=u.UrlUtility.addQueryParam(h,"response_type",F),h=u.UrlUtility.addQueryParam(h,"scope",b),h=u.UrlUtility.addQueryParam(h,"state",this.state.id),se&&(h=u.UrlUtility.addQueryParam(h,"nonce",this.state.nonce)),ce&&(h=u.UrlUtility.addQueryParam(h,"code_challenge",this.state.code_challenge),h=u.UrlUtility.addQueryParam(h,"code_challenge_method","S256"));var ie={prompt:j,display:D,max_age:N,ui_locales:Z,id_token_hint:V,login_hint:J,acr_values:W,resource:le,request:ve,request_uri:K,response_mode:de};for(var ae in ie)ie[ae]&&(h=u.UrlUtility.addQueryParam(h,ae,ie[ae]));for(var pe in Se)h=u.UrlUtility.addQueryParam(h,pe,Se[pe]);this.url=h}return f.isOidc=function(h){return!!h.split(/\s+/g).filter((function(p){return p==="id_token"}))[0]},f.isOAuth=function(h){return!!h.split(/\s+/g).filter((function(p){return p==="token"}))[0]},f.isCode=function(h){return!!h.split(/\s+/g).filter((function(p){return p==="code"}))[0]},f})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.State=void 0;var c=(function(){function d(h,p){for(var v=0;v<p.length;v++){var F=p[v];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(h,F.key,F)}}return function(h,p,v){return p&&d(h.prototype,p),v&&d(h,v),h}})(),u=a(0),m=(function(h){return h&&h.__esModule?h:{default:h}})(a(14));function f(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}i.State=(function(){function d(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=h.id,v=h.data,F=h.created,b=h.request_type;f(this,d),this._id=p||(0,m.default)(),this._data=v,this._created=typeof F=="number"&&F>0?F:parseInt(Date.now()/1e3),this._request_type=b}return d.prototype.toStorageString=function(){return u.Log.debug("State.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})},d.fromStorageString=function(p){return u.Log.debug("State.fromStorageString"),new d(JSON.parse(p))},d.clearStaleState=function(p,v){var F=Date.now()/1e3-v;return p.getAllKeys().then((function(b){u.Log.debug("State.clearStaleState: got keys",b);for(var T=[],R=function(Z){var V=b[Z];D=p.get(V).then((function(J){var W=!1;if(J)try{var le=d.fromStorageString(J);u.Log.debug("State.clearStaleState: got item from key: ",V,le.created),le.created<=F&&(W=!0)}catch(de){u.Log.error("State.clearStaleState: Error parsing state for key",V,de.message),W=!0}else u.Log.debug("State.clearStaleState: no item in storage for key: ",V),W=!0;if(W)return u.Log.debug("State.clearStaleState: removed item for key: ",V),p.remove(V)})),T.push(D)},j=0;j<b.length;j++){var D;R(j)}return u.Log.debug("State.clearStaleState: waiting on promise count:",T.length),Promise.all(T)}))},c(d,[{key:"id",get:function(){return this._id}},{key:"data",get:function(){return this._data}},{key:"created",get:function(){return this._created}},{key:"request_type",get:function(){return this._request_type}}]),d})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.OidcClient=void 0;var c=(function(){function R(j,D){for(var N=0;N<D.length;N++){var Z=D[N];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(j,Z.key,Z)}}return function(j,D,N){return D&&R(j.prototype,D),N&&R(j,N),j}})(),u=a(0),m=a(5),f=a(12),d=a(8),h=a(34),p=a(35),v=a(36),F=a(13),b=a(9);function T(R,j){if(!(R instanceof j))throw new TypeError("Cannot call a class as a function")}i.OidcClient=(function(){function R(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};T(this,R),j instanceof m.OidcClientSettings?this._settings=j:this._settings=new m.OidcClientSettings(j)}return R.prototype.createSigninRequest=function(){var D=this,N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Z=N.response_type,V=N.scope,J=N.redirect_uri,W=N.data,le=N.state,de=N.prompt,ve=N.display,K=N.max_age,Se=N.ui_locales,y=N.id_token_hint,E=N.login_hint,O=N.acr_values,Q=N.resource,se=N.request,ce=N.request_uri,ie=N.response_mode,ae=N.extraQueryParams,pe=N.extraTokenParams,xe=N.request_type,je=N.skipUserInfo,Le=arguments[1];u.Log.debug("OidcClient.createSigninRequest");var ze=this._settings.client_id;Z=Z||this._settings.response_type,V=V||this._settings.scope,J=J||this._settings.redirect_uri,de=de||this._settings.prompt,ve=ve||this._settings.display,K=K||this._settings.max_age,Se=Se||this._settings.ui_locales,O=O||this._settings.acr_values,Q=Q||this._settings.resource,ie=ie||this._settings.response_mode,ae=ae||this._settings.extraQueryParams,pe=pe||this._settings.extraTokenParams;var Be=this._settings.authority;return d.SigninRequest.isCode(Z)&&Z!=="code"?Promise.reject(new Error("OpenID Connect hybrid flow is not supported")):this._metadataService.getAuthorizationEndpoint().then((function(Je){u.Log.debug("OidcClient.createSigninRequest: Received authorization endpoint",Je);var Ke=new d.SigninRequest({url:Je,client_id:ze,redirect_uri:J,response_type:Z,scope:V,data:W||le,authority:Be,prompt:de,display:ve,max_age:K,ui_locales:Se,id_token_hint:y,login_hint:E,acr_values:O,resource:Q,request:se,request_uri:ce,extraQueryParams:ae,extraTokenParams:pe,request_type:xe,response_mode:ie,client_secret:D._settings.client_secret,skipUserInfo:je}),We=Ke.state;return(Le=Le||D._stateStore).set(We.id,We.toStorageString()).then((function(){return Ke}))}))},R.prototype.readSigninResponseState=function(D,N){var Z=arguments.length>2&&arguments[2]!==void 0&&arguments[2];u.Log.debug("OidcClient.readSigninResponseState");var V=this._settings.response_mode==="query"||!this._settings.response_mode&&d.SigninRequest.isCode(this._settings.response_type),J=V?"?":"#",W=new h.SigninResponse(D,J);if(!W.state)return u.Log.error("OidcClient.readSigninResponseState: No state in response"),Promise.reject(new Error("No state in response"));N=N||this._stateStore;var le=Z?N.remove.bind(N):N.get.bind(N);return le(W.state).then((function(de){if(!de)throw u.Log.error("OidcClient.readSigninResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:F.SigninState.fromStorageString(de),response:W}}))},R.prototype.processSigninResponse=function(D,N){var Z=this;return u.Log.debug("OidcClient.processSigninResponse"),this.readSigninResponseState(D,N,!0).then((function(V){var J=V.state,W
vendor: 4,358 bytes, line 2
2=V.response;return u.Log.debug("OidcClient.processSigninResponse: Received state from storage; validating response"),Z._validator.validateSigninResponse(J,W)}))},R.prototype.createSignoutRequest=function(){var D=this,N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Z=N.id_token_hint,V=N.data,J=N.state,W=N.post_logout_redirect_uri,le=N.extraQueryParams,de=N.request_type,ve=arguments[1];return u.Log.debug("OidcClient.createSignoutRequest"),W=W||this._settings.post_logout_redirect_uri,le=le||this._settings.extraQueryParams,this._metadataService.getEndSessionEndpoint().then((function(K){if(!K)throw u.Log.error("OidcClient.createSignoutRequest: No end session endpoint url returned"),new Error("no end session endpoint");u.Log.debug("OidcClient.createSignoutRequest: Received end session endpoint",K);var Se=new p.SignoutRequest({url:K,id_token_hint:Z,post_logout_redirect_uri:W,data:V||J,extraQueryParams:le,request_type:de}),y=Se.state;return y&&(u.Log.debug("OidcClient.createSignoutRequest: Signout request has state to persist"),(ve=ve||D._stateStore).set(y.id,y.toStorageString())),Se}))},R.prototype.readSignoutResponseState=function(D,N){var Z=arguments.length>2&&arguments[2]!==void 0&&arguments[2];u.Log.debug("OidcClient.readSignoutResponseState");var V=new v.SignoutResponse(D);if(!V.state)return u.Log.debug("OidcClient.readSignoutResponseState: No state in response"),V.error?(u.Log.warn("OidcClient.readSignoutResponseState: Response was error: ",V.error),Promise.reject(new f.ErrorResponse(V))):Promise.resolve({state:void 0,response:V});var J=V.state;N=N||this._stateStore;var W=Z?N.remove.bind(N):N.get.bind(N);return W(J).then((function(le){if(!le)throw u.Log.error("OidcClient.readSignoutResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:b.State.fromStorageString(le),response:V}}))},R.prototype.processSignoutResponse=function(D,N){var Z=this;return u.Log.debug("OidcClient.processSignoutResponse"),this.readSignoutResponseState(D,N,!0).then((function(V){var J=V.state,W=V.response;return J?(u.Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response"),Z._validator.validateSignoutResponse(J,W)):(u.Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response"),W)}))},R.prototype.clearStaleState=function(D){return u.Log.debug("OidcClient.clearStaleState"),D=D||this._stateStore,b.State.clearStaleState(D,this.settings.staleStateAge)},c(R,[{key:"_stateStore",get:function(){return this.settings.stateStore}},{key:"_validator",get:function(){return this.settings.validator}},{key:"_metadataService",get:function(){return this.settings.metadataService}},{key:"settings",get:function(){return this._settings}},{key:"metadataService",get:function(){return this._metadataService}}]),R})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.TokenClient=void 0;var c=a(7),u=a(2),m=a(0);function f(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}i.TokenClient=(function(){function d(h){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c.JsonService,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.MetadataService;if(f(this,d),!h)throw m.Log.error("TokenClient.ctor: No settings passed"),new Error("settings");this._settings=h,this._jsonService=new p,this._metadataService=new v(this._settings)}return d.prototype.exchangeCode=function(){var p=this,v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(v=Object.assign({},v)).grant_type=v.grant_type||"authorization_code",v.client_id=v.client_id||this._settings.client_id,v.client_secret=v.client_secret||this._settings.client_secret,v.redirect_uri=v.redirect_uri||this._settings.redirect_uri;var F=void 0,b=v._client_authentication||this._settings._client_authentication;return delete v._client_authentication,v.code?v.redirect_uri?v.code_verifier?v.client_id?v.client_secret||b!="client_secret_basic"?(b=="client_secret_basic"&&(F=v.client_id+":"+v.client_secret,delete v.client_id,delete v.client_secret),this._metadataService.getTokenEndpoint(!1).then((function(T){return m.Log.debug("TokenClient.exchangeCode: Received token endpoint"),p._jsonService.postForm(T,v,F).then((function(R){return m.Log.debug("TokenClient.exchangeCode: response received"),R}))}
2))):(m.Log.error("TokenClient.exchangeCode: No client_secret passed"),Promise.reject(new Error("A client_secret is required"))):(m.Log.error("TokenClient.exchangeCode: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(m.Log.error("TokenClient.exchangeCode: No code_verifier passed"),Promise.reject(new Error("A code_verifier is required"))):(m.Log.error("TokenClient.exchangeCode: No redirect_uri passed"),Promise.reject(new Error("A redirect_uri is required"))):(m.Log.error("TokenClient.exchangeCode: No code passed"),Promise.reject(new Error("A code is required")))},d.prototype.exchangeRefreshToken=function(){var p=this,v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(v=Object.assign({},v)).grant_type=v.grant_type||"refresh_token",v.client_id=v.client_id||this._settings.client_id,v.client_secret=v.client_secret||this._settings.client_secret;var F=void 0,b=v._client_authentication||this._settings._client_authentication;return delete v._client_authentication,v.refresh_token?v.client_id?(b=="client_secret_basic"&&(F=v.client_id+":"+v.client_secret,delete v.client_id,delete v.client_secret),this._metadataService.getTokenEndpoint(!1).then((function(T){return m.Log.debug("TokenClient.exchangeRefreshToken: Received token endpoint"),p._jsonService.postForm(T,v,F).then((function(R){return m.Log.debug("TokenClient.exchangeRefreshToken: response received"),R}))}))):(m.Log.error("TokenClient.exchangeRefreshToken: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(m.Log.error("TokenClient.exchangeRefreshToken: No refresh_token passed"),Promise.reject(new Error("A refresh_token is required")))},d})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.ErrorResponse=void 0;var c=a(0);function u(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}function m(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!d||typeof d!="object"&&typeof d!="function"?f:d}i.ErrorResponse=(function(f){function d(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=h.error,v=h.error_description,F=h.error_uri,b=h.state,T=h.session_state;if(u(this,d),!p)throw c.Log.error("No error passed to ErrorResponse"),new Error("error");var R=m(this,f.call(this,v||p));return R.name="ErrorResponse",R.error=p,R.error_description=v,R.error_uri=F,R.state=b,R.session_state=T,R}return(function(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)})(d,f),d})(Error)},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.SigninState=void 0;var c=(function(){function v(F,b){for(var T=0;T<b.length;T++){var R=b[T];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(F,R.key,R)}}return function(F,b,T){return b&&v(F.prototype,b),T&&v(F,T),F}})(),u=a(0),m=a(9),f=a(4),d=(function(F){return F&&F.__esModule?F:{default:F}})(a(14));function h(v,F){if(!(v instanceof F))throw new TypeError("Cannot call a class as a function")}function p(v,F){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!F||typeof F!="object"&&typeof F!="function"?v:F}i.SigninState=(function(v){function F(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=b.nonce,R=b.authority,j=b.client_id,D=b.redirect_uri,N=b.code_verifier,Z=b.response_mode,V=b.client_secret,J=b.scope,W=b.extraTokenParams,le=b.skipUserInfo;h(this,F);var de=p(this,v.call(this,arguments[0]));if(T===!0?de._nonce=(0,d.default)():T&&(de._nonce=T),N===!0?de._code_verifier=(0,d.default)()+(0,d.default)()+(0,d.default)():N&&(de._code_verifier=N),de.code_verifier){var ve=f.JoseUtil.hashString(de.code_verifier,"SHA256");de._code_challenge=f.JoseUtil.hexToBase64Url(ve)}return de._redirect_uri=D,de._authority=R,de._client_id=j,de._response_mode=Z,de._client_secret=V,de._scope=J,de._extraTokenParams=W,de._skipUserInfo=le,de}return(function(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(T,R):T.__proto__=R)})(F,v),F.prototype.toStorageString=function(){return u.Log.debug("SigninState.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,nonce:this.nonce,code_verifier:this.code_verifier,redirect_uri:this.redirect_uri,authority:this.authority,client_id:this.client_id,response_mode:this.response_mode,client_secret:this.client_secret,scope:this.scope,extraTokenParams:this.extraTokenParams,skipUserInfo:this.skipUserInfo})},F.fromStorageString=function(T){return u.Log.debug("SigninState.fromStorageString"),new F(JSON.parse(T))},c(F,[{key:"nonce",get:function(){return this._nonce}},{key:"authority",get:function(){return this._authority}},{key:"client_id",get:function(){return this._client_id}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"code_verifier",get:function(){return this._code_verifier}},{key:"code_challenge",get:function(){return this._code_challenge}},{key:"response_mode",get:function(){return this._response_mode}},{key:"client_secret",get:function(){return this._client_secret}},{key:"scope",get:function(){return this._scope}},{key:"extraTokenParams",get:function(){return this._extraTokenParams}},{key:"skipUserInfo",get:function(){return this._skipUserInfo}}]),F})(m.State)},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(){return(c!="undefined"&&c!==null&&c.getRandomValues!==void 0?u:m)().replace(/-/g,"")};var c=typeof window<"u"?window.crypto||window.msCrypto:null;function u(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,(function(f){return(f^c.getRandomValues(new Uint8Array(1))[0]&15>>f/4).toString(16)}))}function m(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,(function(f){return(f^16*Math.random()>>f/4).toString(16)}))}o.exports=i.default},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.User=void 0;var c=(function(){function m(f,d){for(var h=0;h<d.length;h++){var p=d[h];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(f,p.key,p)}}return function(f,d,h){return d&&m(f.prototype,d),h&&m(f,h),f}})(),u=a(0);i.User=(function(){function m(f){var d=f.id_token,h=f.session_state,p=f.access_token,v=f.refresh_token,F=f.token_type,b=f.scope,T=f.profile,R=f.expires_at,j=f.state;(function(N,Z){if(!(N instanceof Z))throw new TypeError("Cannot call a class as a function")})(this,m),this.id_token=d,this.session_state=h,this.access_token=p,this.refresh_token=v,this.token_type=F,this.scope=b,this.profile=T,this.expires_at=R,this.state=j}return m.prototype.toStorageString=function(){return u.Log.debug("User.toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})},m.fromStorageString=function(d){return u.Log.debug("User.fromStorageString"),new m(JSON.parse(d))},c(m,[{key:"expires_in",get:function(){if(this.expires_at){var d=parseInt(Date.now()/1e3);return this.expires_at-d}},set:function(d){var h=parseInt(d);if(typeof h=="number"&&h>0){var p=parseInt(Date.now()/1e3);this.expires_at=p+h}}},{key:"expired",get:function(){var d=this.expires_in;if(d!==void 0)return d<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}}]),m})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.AccessTokenEvents=void 0;var c=a(0),u=a(46);function m(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}i.AccessTokenEvents=(function(){function f(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=d.accessTokenExpiringNotificationTime,p=h===void 0?60:h,v=d.accessTokenExpiringTimer,F=v===void 0?new u.Timer("Access token expiring"):v,b=d.accessTokenExpiredTimer,T=b===void 0?new u.Timer("Access token expired"):b;m(this,f),this._accessTokenExpiringNotificationTime=p,this._accessTokenExpiring=F,this._accessTokenExpired=T}return f.prototype.load=function(h){if(h.access_token&&h.expires_in!==void 0){var p=h.expires_in;
vendor: 11,380 bytes, line 2
2if(c.Log.debug("AccessTokenEvents.load: access token present, remaining duration:",p),p>0){var v=p-this._accessTokenExpiringNotificationTime;v<=0&&(v=1),c.Log.debug("AccessTokenEvents.load: registering expiring timer in:",v),this._accessTokenExpiring.init(v)}else c.Log.debug("AccessTokenEvents.load: canceling existing expiring timer becase we're past expiration."),this._accessTokenExpiring.cancel();var F=p+1;c.Log.debug("AccessTokenEvents.load: registering expired timer in:",F),this._accessTokenExpired.init(F)}else this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},f.prototype.unload=function(){c.Log.debug("AccessTokenEvents.unload: canceling existing access token timers"),this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},f.prototype.addAccessTokenExpiring=function(h){this._accessTokenExpiring.addHandler(h)},f.prototype.removeAccessTokenExpiring=function(h){this._accessTokenExpiring.removeHandler(h)},f.prototype.addAccessTokenExpired=function(h){this._accessTokenExpired.addHandler(h)},f.prototype.removeAccessTokenExpired=function(h){this._accessTokenExpired.removeHandler(h)},f})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.Event=void 0;var c=a(0);i.Event=(function(){function u(m){(function(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")})(this,u),this._name=m,this._callbacks=[]}return u.prototype.addHandler=function(f){this._callbacks.push(f)},u.prototype.removeHandler=function(f){var d=this._callbacks.findIndex((function(h){return h===f}));d>=0&&this._callbacks.splice(d,1)},u.prototype.raise=function(){c.Log.debug("Event: Raising event: "+this._name);for(var f=0;f<this._callbacks.length;f++){var d;(d=this._callbacks)[f].apply(d,arguments)}},u})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.SessionMonitor=void 0;var c=(function(){function h(p,v){for(var F=0;F<v.length;F++){var b=v[F];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,v,F){return v&&h(p.prototype,v),F&&h(p,F),p}})(),u=a(0),m=a(19),f=a(1);function d(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}i.SessionMonitor=(function(){function h(p){var v=this,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m.CheckSessionIFrame,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f.Global.timer;if(d(this,h),!p)throw u.Log.error("SessionMonitor.ctor: No user manager passed to SessionMonitor"),new Error("userManager");this._userManager=p,this._CheckSessionIFrameCtor=F,this._timer=b,this._userManager.events.addUserLoaded(this._start.bind(this)),this._userManager.events.addUserUnloaded(this._stop.bind(this)),Promise.resolve(this._userManager.getUser().then((function(T){T?v._start(T):v._settings.monitorAnonymousSession&&v._userManager.querySessionStatus().then((function(R){var j={session_state:R.session_state};R.sub&&R.sid&&(j.profile={sub:R.sub,sid:R.sid}),v._start(j)})).catch((function(R){u.Log.error("SessionMonitor ctor: error from querySessionStatus:",R.message)}))})).catch((function(T){u.Log.error("SessionMonitor ctor: error from getUser:",T.message)})))}return h.prototype._start=function(v){var F=this,b=v.session_state;b&&(v.profile?(this._sub=v.profile.sub,this._sid=v.profile.sid,u.Log.debug("SessionMonitor._start: session_state:",b,", sub:",this._sub)):(this._sub=void 0,this._sid=void 0,u.Log.debug("SessionMonitor._start: session_state:",b,", anonymous user")),this._checkSessionIFrame?this._checkSessionIFrame.start(b):this._metadataService.getCheckSessionIframe().then((function(T){if(T){u.Log.debug("SessionMonitor._start: Initializing check session iframe");var R=F._client_id,j=F._checkSessionInterval,D=F._stopCheckSessionOnError;F._checkSessionIFrame=new F._CheckSessionIFrameCtor(F._callback.bind(F),R,T,j,D),F._checkSessionIFrame.load().then((function(){F._checkSessionIFrame.start(b)}))}else u.Log.warn("SessionMonitor._start: No check session iframe found in the metadata")})).catch((function(T){u.Log.error("SessionMonitor._start: Error from getCheckSessionIframe:",T.message)})))},h.prototype._stop=function(){var v=this;if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&(u.Log.debug("SessionMonitor._stop"),this._checkSessionIFrame.stop()),this._settings.monitorAnonymousSession)var F=this._timer.setInterval((function(){v._timer.clearInterval(F),v._userManager.querySessionStatus().then((function(b){var T={session_state:b.session_state};b.sub&&b.sid&&(T.profile={sub:b.sub,sid:b.sid}),v._start(T)})).catch((function(b){u.Log.error("SessionMonitor: error from querySessionStatus:",b.message)}))}),1e3)},h.prototype._callback=function(){var v=this;this._userManager.querySessionStatus().then((function(F){var b=!0;F?F.sub===v._sub?(b=!1,v._checkSessionIFrame.start(F.session_state),F.sid===v._sid?u.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",F.session_state):(u.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",F.session_state),v._userManager.events._raiseUserSessionChanged())):u.Log.debug("SessionMonitor._callback: Different subject signed into OP:",F.sub):u.Log.debug("SessionMonitor._callback: Subject no longer signed into OP"),b&&(v._sub?(u.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed out event"),v._userManager.events._raiseUserSignedOut()):(u.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed in event"),v._userManager.events._raiseUserSignedIn()))})).catch((function(F){v._sub&&(u.Log.debug("SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event",F.message),v._userManager.events._raiseUserSignedOut())}))},c(h,[{key:"_settings",get:function(){return this._userManager.settings}},{key:"_metadataService",get:function(){return this._userManager.metadataService}},{key:"_client_id",get:function(){return this._settings.client_id}},{key:"_checkSessionInterval",get:function(){return this._settings.checkSessionInterval}},{key:"_stopCheckSessionOnError",get:function(){return this._settings.stopCheckSessionOnError}}]),h})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.CheckSessionIFrame=void 0;var c=a(0);function u(m,f){if(!(m instanceof f))throw new TypeError("Cannot call a class as a function")}i.CheckSessionIFrame=(function(){function m(f,d,h,p){var v=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4];u(this,m),this._callback=f,this._client_id=d,this._url=h,this._interval=p||2e3,this._stopOnError=v;var F=h.indexOf("/",h.indexOf("//")+2);this._frame_origin=h.substr(0,F),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.style.display="none",this._frame.width=0,this._frame.height=0,this._frame.src=h}return m.prototype.load=function(){var d=this;return new Promise((function(h){d._frame.onload=function(){h()},window.document.body.appendChild(d._frame),d._boundMessageEvent=d._message.bind(d),window.addEventListener("message",d._boundMessageEvent,!1)}))},m.prototype._message=function(d){d.origin===this._frame_origin&&d.source===this._frame.contentWindow&&(d.data==="error"?(c.Log.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):d.data==="changed"?(c.Log.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):c.Log.debug("CheckSessionIFrame: "+d.data+" message from check session op iframe"))},m.prototype.start=function(d){var h=this;if(this._session_state!==d){c.Log.debug("CheckSessionIFrame.start"),this.stop(),this._session_state=d;var p=function(){h._frame.contentWindow.postMessage(h._client_id+" "+h._session_state,h._frame_origin)};p(),this._timer=window.setInterval(p,this._interval)}},m.prototype.stop=function(){this._session_state=null,this._timer&&(c.Log.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)},m})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.TokenRevocationClient=void 0;var c=a(0),u=a(2),m=a(1);function f(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}var d="access_token",h="refresh_token";i.TokenRevocationClient=(function(){function p(v){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m.Global.XMLHttpRequest,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.MetadataService;if(f(this,p),!v)throw c.Log.error("TokenRevocationClient.ctor: No settings provided"),new Error("No settings provided.");this._settings=v,this._XMLHttpRequestCtor=F,this._metadataService=new b(this._settings)}return p.prototype.revoke=function(F,b){var T=this,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"access_token";if(!F)throw c.Log.error("TokenRevocationClient.revoke: No token provided"),new Error("No token provided.");if(R!==d&&R!=h)throw c.Log.error("TokenRevocationClient.revoke: Invalid token type"),new Error("Invalid token type.");return this._metadataService.getRevocationEndpoint().then((function(j){if(j){c.Log.debug("TokenRevocationClient.revoke: Revoking "+R);var D=T._settings.client_id,N=T._settings.client_secret;return T._revoke(j,D,N,F,R)}if(b)throw c.Log.error("TokenRevocationClient.revoke: Revocation not supported"),new Error("Revocation not supported")}))},p.prototype._revoke=function(F,b,T,R,j){var D=this;return new Promise((function(N,Z){var V=new D._XMLHttpRequestCtor;V.open("POST",F),V.onload=function(){c.Log.debug("TokenRevocationClient.revoke: HTTP response received, status",V.status),V.status===200?N():Z(Error(V.statusText+" ("+V.status+")"))},V.onerror=function(){c.Log.debug("TokenRevocationClient.revoke: Network Error."),Z("Network Error")};var J="client_id="+encodeURIComponent(b);T&&(J+="&client_secret="+encodeURIComponent(T)),J+="&token_type_hint="+encodeURIComponent(j),J+="&token="+encodeURIComponent(R),V.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),V.send(J)}))},p})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.CordovaPopupWindow=void 0;var c=(function(){function m(f,d){for(var h=0;h<d.length;h++){var p=d[h];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(f,p.key,p)}}return function(f,d,h){return d&&m(f.prototype,d),h&&m(f,h),f}})(),u=a(0);i.CordovaPopupWindow=(function(){function m(f){var d=this;(function(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")})(this,m),this._promise=new Promise((function(h,p){d._resolve=h,d._reject=p})),this.features=f.popupWindowFeatures||"location=no,toolbar=no,zoom=no",this.target=f.popupWindowTarget||"_blank",this.redirect_uri=f.startUrl,u.Log.debug("CordovaPopupWindow.ctor: redirect_uri: "+this.redirect_uri)}return m.prototype._isInAppBrowserInstalled=function(d){return["cordova-plugin-inappbrowser","cordova-plugin-inappbrowser.inappbrowser","org.apache.cordova.inappbrowser"].some((function(h){return d.hasOwnProperty(h)}))},m.prototype.navigate=function(d){if(d&&d.url){if(!window.cordova)return this._error("cordova is undefined");var h=window.cordova.require("cordova/plugin_list").metadata;
2if(this._isInAppBrowserInstalled(h)===!1)return this._error("InAppBrowser plugin not found");this._popup=cordova.InAppBrowser.open(d.url,this.target,this.features),this._popup?(u.Log.debug("CordovaPopupWindow.navigate: popup successfully created"),this._exitCallbackEvent=this._exitCallback.bind(this),this._loadStartCallbackEvent=this._loadStartCallback.bind(this),this._popup.addEventListener("exit",this._exitCallbackEvent,!1),this._popup.addEventListener("loadstart",this._loadStartCallbackEvent,!1)):this._error("Error opening popup window")}else this._error("No url provided");return this.promise},m.prototype._loadStartCallback=function(d){d.url.indexOf(this.redirect_uri)===0&&this._success({url:d.url})},m.prototype._exitCallback=function(d){this._error(d)},m.prototype._success=function(d){this._cleanup(),u.Log.debug("CordovaPopupWindow: Successful response from cordova popup window"),this._resolve(d)},m.prototype._error=function(d){this._cleanup(),u.Log.error(d),this._reject(new Error(d))},m.prototype.close=function(){this._cleanup()},m.prototype._cleanup=function(){this._popup&&(u.Log.debug("CordovaPopupWindow: cleaning up popup"),this._popup.removeEventListener("exit",this._exitCallbackEvent,!1),this._popup.removeEventListener("loadstart",this._loadStartCallbackEvent,!1),this._popup.close()),this._popup=null},c(m,[{key:"promise",get:function(){return this._promise}}]),m})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0});var c=a(0),u=a(10),m=a(5),f=a(6),d=a(37),h=a(38),p=a(16),v=a(2),F=a(48),b=a(49),T=a(19),R=a(20),j=a(18),D=a(1),N=a(1
25),Z=a(50);i.default={Version:Z.Version,Log:c.Log,OidcClient:u.OidcClient,OidcClientSettings:m.OidcClientSettings,WebStorageStateStore:f.WebStorageStateStore,InMemoryWebStorage:d.InMemoryWebStorage,UserManager:h.UserManager,AccessTokenEvents:p.AccessTokenEvents,MetadataService:v.MetadataService,CordovaPopupNavigator:F.CordovaPopupNavigator,CordovaIFrameNavigator:b.CordovaIFrameNavigator,CheckSessionIFrame:T.CheckSessionIFrame,TokenRevocationClient:R.TokenRevocationClient,SessionMonitor:j.SessionMonitor,Global:D.Global,User:N.User},o.exports=i.default},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.ClockService=(function(){function c(){(function(m,f){if(!(m instanceof f))throw new TypeError("Cannot call a class as a function")})(this,c)}return c.prototype.getEpochTime=function(){return Promise.resolve(Date.now()/1e3|0)},c})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.ResponseValidator=void 0;var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},u=a(0),m=a(2),f=a(25),d=a(11),h=a(12),p=a(4);function v(b,T){if(!(b instanceof T))throw new TypeError("Cannot call a class as a function")}var F=["nonce","at_hash","iat","nbf","exp","aud","iss","c_hash"];i.ResponseValidator=(function(){function b(T){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m.MetadataService,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f.UserInfoService,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:p.JoseUtil,N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:d.TokenClient;if(v(this,b),!T)throw u.Log.error("ResponseValidator.ctor: No settings passed to ResponseValidator"),new Error("settings");this._settings=T,this._metadataService=new R(this._settings),this._userInfoService=new j(this._settings),this._joseUtil=D,this._tokenClient=new N(this._settings)}return b.prototype.validateSigninResponse=function(R,j){var D=this;return u.Log.debug("ResponseValidator.validateSigninResponse"),this._processSigninParams(R,j).then((function(N){return u.Log.debug("ResponseValidator.validateSigninResponse: state processed"),D._validateTokens(R,N).then((function(Z){return u.Log.debug("ResponseValidator.validateSigninResponse: tokens validated"),D._processClaims(R,Z).then((function(V){return u.Log.debug("ResponseValidator.validateSigninResponse: claims processed"),V}))}))}))},b.prototype.validateSignoutResponse=function(R,j){return R.id!==j.state?(u.Log.error("ResponseValidator.validateSignoutResponse: State does not match"),Promise.reject(new Error("State does not match"))):(u.Log.debug("ResponseValidator.validateSignoutResponse: state validated"),j.state=R.data,j.error?(u.Log.warn("ResponseValidator.validateSignoutResponse: Response was error",j.error),Promise.reject(new h.ErrorResponse(j))):Promise.resolve(j))},b.prototype._processSigninParams=function(R,j){if(R.id!==j.state)return u.Log.error("ResponseValidator._processSigninParams: State does not match"),Promise.reject(new Error("State does not match"));if(!R.client_id)return u.Log.error("ResponseValidator._processSigninParams: No client_id on state"),Promise.reject(new Error("No client_id on state"));if(!R.authority)return u.Log.error("ResponseValidator._processSigninParams: No authority on state"),Promise.reject(new Error("No authority on state"));if(this._settings.authority){if(this._settings.authority&&this._settings.authority!==R.authority)return u.Log.error("ResponseValidator._processSigninParams: authority mismatch on settings vs. signin state"),Promise.reject(new Error("authority mismatch on settings vs. signin state"))}else this._settings.authority=R.authority;if(this._settings.client_id){if(this._settings.client_id&&this._settings.client_id!==R.client_id)return u.Log.error("ResponseValidator._processSigninParams: client_id mismatch on settings vs. signin state"),Promise.reject(new Error("client_id mismatch on settings vs. signin state"))}else this._settings.client_id=R.client_id;return u.Log.debug("ResponseValidator._processSigninParams: state validated"),j.state=R.data,j.error?(u.Log.warn("ResponseValidator._processSigninParams: Response was error",j.error),Promise.reject(new h.ErrorResponse(j))):R.nonce&&!j.id_token?(u.Log.error("ResponseValidator._processSigninParams: Expecting id_token in response"),Promise.reject(new Error("No id_token in response"))):!R.nonce&&j.id_token?(u.Log.error("ResponseValidator._processSigninParams: Not expecting id_token in response"),Promise.reject(new Error("Unexpected id_token in response"))):R.code_verifier&&!j.code?(u.Log.error("ResponseValidator._processSigninParams: Expecting code in response"),Promise.reject(new Error("No code in response"))):!R.code_verifier&&j.code?(u.Log.error("ResponseValidator._processSigninParams: Not expecting code in response"),Promise.reject(new Error("Unexpected code in response"))):(j.scope||(j.scope=R.scope),Promise.resolve(j))},b.prototype._processClaims=function(R,j){var D=this;if(j.isOpenIdConnect){if(u.Log.debug("ResponseValidator._processClaims: response is OIDC, processing claims"),j.profile=this._filterProtocolClaims(j.profile),R.skipUserInfo!==!0&&this._settings.loadUserInfo&&j.access_token)return u.Log.debug("ResponseValidator._processClaims: loading user info"),this._userInfoService.getClaims(j.access_token).then((function(N){return u.Log.debug("ResponseValidator._processClaims: user info claims received from user info endpoint"),N.sub!==j.profile.sub?(u.Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in id_token"),Promise.reject(new Error("sub from user info endpoint does not match sub in id_token"))):(j.profile=D._mergeClaims(j.profile,N),u.Log.debug("ResponseValidator._processClaims: user info claims received, updated profile:",j.profile),j)}));u.Log.debug("ResponseValidator._processClaims: not loading user info")}else u.Log.debug("ResponseValidator._processClaims: response is not OIDC, not processing claims");return Promise.resolve(j)},b.prototype._mergeClaims=function(R,j){var D=Object.assign({},R);for(var N in j){var Z=j[N];Array.isArray(Z)||(Z=[Z]);for(var V=0;V<Z.length;V++){var J=Z[V];D[N]?Array.isArray(D[N])?D[N].indexOf(J)<0&&D[N].push(J):D[N]!==J&&((J===void 0?"undefined":c(J))==="object"&&this._settings.mergeClaims?D[N]=this._mergeClaims(D[N],J):D[N]=[D[N],J]):D[N]=J}}return D},b.prototype._filterProtocolClaims=function(R){u.Log.debug("ResponseValidator._filterProtocolClaims, incoming claims:",R);var j=Object.assign({},R);
vendor: 11,137 bytes, lines 2-4
2return this._settings._filterProtocolClaims?(F.forEach((function(D){delete j[D]})),u.Log.debug("ResponseValidator._filterProtocolClaims: protocol claims filtered",j)):u.Log.debug("ResponseValidator._filterProtocolClaims: protocol claims not filtered"),j},b.prototype._validateTokens=function(R,j){return j.code?(u.Log.debug("ResponseValidator._validateTokens: Validating code"),this._processCode(R,j)):j.id_token?j.access_token?(u.Log.debug("ResponseValidator._validateTokens: Validating id_token and access_token"),this._validateIdTokenAndAccessToken(R,j)):(u.Log.debug("ResponseValidator._validateTokens: Validating id_token"),this._validateIdToken(R,j)):(u.Log.debug("ResponseValidator._validateTokens: No code to process or id_token to validate"),Promise.resolve(j))},b.prototype._processCode=function(R,j){var D=this,N={client_id:R.client_id,client_secret:R.client_secret,code:j.code,redirect_uri:R.redirect_uri,code_verifier:R.code_verifier};return R.extraTokenParams&&c(R.extraTokenParams)==="object"&&Object.assign(N,R.extraTokenParams),this._tokenClient.exchangeCode(N).then((function(Z){for(var V in Z)j[V]=Z[V];return j.id_token?(u.Log.debug("ResponseValidator._processCode: token response successful, processing id_token"),D._validateIdTokenAttributes(R,j)):(u.Log.debug("ResponseValidator._processCode: token response successful, returning response"),j)}))},b.prototype._validateIdTokenAttributes=function(R,j){var D=this;return this._metadataService.getIssuer().then((function(N){var Z=R.client_id,V=D._settings.clockSkew;return u.Log.debug("ResponseValidator._validateIdTokenAttributes: Validaing JWT attributes; using clock skew (in seconds) of: ",V),D._settings.getEpochTime().then((function(J){return D._joseUtil.validateJwtAttributes(j.id_token,N,Z,V,J).then((function(W){return R.nonce&&R.nonce!==W.nonce?(u.Log.error("ResponseValidator._validateIdTokenAttributes: Invalid nonce in id_token"),Promise.reject(new Error("Invalid nonce in id_token"))):W.sub?(j.profile=W,j):(u.Log.error("ResponseValidator._validateIdTokenAttributes: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))}))}))}))},b.prototype._validateIdTokenAndAccessToken=function(R,j){var D=this;return this._validateIdToken(R,j).then((function(N){return D._validateAccessToken(N)}))},b.prototype._getSigningKeyForJwt=function(R){var j=this;return this._metadataService.getSigningKeys().then((function(D){var N=R.header.kid;if(!D)return u.Log.error("ResponseValidator._validateIdToken: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));u.Log.debug("ResponseValidator._validateIdToken: Received signing keys");var Z=void 0;if(N)Z=D.filter((function(V){return V.kid===N}))[0];else{if((D=j._filterByAlg(D,R.header.alg)).length>1)return u.Log.error("ResponseValidator._validateIdToken: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));Z=D[0]}return Promise.resolve(Z)}))},b.prototype._getSigningKeyForJwtWithSingleRetry=function(R){var j=this;return this._getSigningKeyForJwt(R).then((function(D){return D?Promise.resolve(D):(j._metadataService.resetSigningKeys(),j._getSigningKeyForJwt(R))}))},b.prototype._validateIdToken=function(R,j){var D=this;if(!R.nonce)return u.Log.error("ResponseValidator._validateIdToken: No nonce on state"),Promise.reject(new Error("No nonce on state"));var N=this._joseUtil.parseJwt(j.id_token);return N&&N.header&&N.payload?R.nonce!==N.payload.nonce?(u.Log.error("ResponseValidator._validateIdToken: Invalid nonce in id_token"),Promise.reject(new Error("Invalid nonce in id_token"))):this._metadataService.getIssuer().then((function(Z){return u.Log.debug("ResponseValidator._validateIdToken: Received issuer"),D._getSigningKeyForJwtWithSingleRetry(N).then((function(V){if(!V)return u.Log.error("ResponseValidator._validateIdToken: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var J=R.client_id,W=D._settings.clockSkew;return u.Log.debug("ResponseValidator._validateIdToken: Validaing JWT; using clock skew (in seconds) of: ",W),D._joseUtil.validateJwt(j.id_token,V,Z,J,W).then((function(){return u.Log.debug("ResponseValidator._validateIdToken: JWT validation successful"),N.payload.sub?(j.profile=N.payload,j):(u.Log.error("ResponseValidator._validateIdToken: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))}))}))})):(u.Log.error("ResponseValidator._validateIdToken: Failed to parse id_token",N),Promise.reject(new Error("Failed to parse id_token")))},b.prototype._filterByAlg=function(R,j){var D=null;if(j.startsWith("RS"))D="RSA";else if(j.startsWith("PS"))D="PS";else{if(!j.startsWith("ES"))return u.Log.debug("ResponseValidator._filterByAlg: alg not supported: ",j),[];D="EC"}return u.Log.debug("ResponseValidator._filterByAlg: Looking for keys that match kty: ",D),R=R.filter((function(N){return N.kty===D})),u.Log.debug("ResponseValidator._filterByAlg: Number of keys that match kty: ",D,R.length),R},b.prototype._validateAccessToken=function(R){if(!R.profile)return u.Log.error("ResponseValidator._validateAccessToken: No profile loaded from id_token"),Promise.reject(new Error("No profile loaded from id_token"));if(!R.profile.at_hash)return u.Log.error("ResponseValidator._validateAccessToken: No at_hash in id_token"),Promise.reject(new Error("No at_hash in id_token"));if(!R.id_token)return u.Log.error("ResponseValidator._validateAccessToken: No id_token"),Promise.reject(new Error("No id_token"));var j=this._joseUtil.parseJwt(R.id_token);if(!j||!j.header)return u.Log.error("ResponseValidator._validateAccessToken: Failed to parse id_token",j),Promise.reject(new Error("Failed to parse id_token"));var D=j.header.alg;if(!D||D.length!==5)return u.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",D),Promise.reject(new Error("Unsupported alg: "+D));var N=D.substr(2,3);if(!N)return u.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",D,N),Promise.reject(new Error("Unsupported alg: "+D));if((N=parseInt(N))!==256&&N!==384&&N!==512)return u.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",D,N),Promise.reject(new Error("Unsupported alg: "+D));var Z="sha"+N,V=this._joseUtil.hashString(R.access_token,Z);if(!V)return u.Log.error("ResponseValidator._validateAccessToken: access_token hash failed:",Z),Promise.reject(new Error("Failed to validate at_hash"));var J=V.substr(0,V.length/2),W=this._joseUtil.hexToBase64Url(J);return W!==R.profile.at_hash?(u.Log.error("ResponseValidator._validateAccessToken: Failed to validate at_hash",W,R.profile.at_hash),Promise.reject(new Error("Failed to validate at_hash"))):(u.Log.debug("ResponseValidator._validateAccessToken: success"),Promise.resolve(R))},b})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.UserInfoService=void 0;var c=a(7),u=a(2),m=a(0),f=a(4);function d(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}i.UserInfoService=(function(){function h(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c.JsonService,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.MetadataService,b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:f.JoseUtil;if(d(this,h),!p)throw m.Log.error("UserInfoService.ctor: No settings passed"),new Error("settings");this._settings=p,this._jsonService=new v(void 0,void 0,this._getClaimsFromJwt.bind(this)),this._metadataService=new F(this._settings),this._joseUtil=b}return h.prototype.getClaims=function(v){var F=this;return v?this._metadataService.getUserInfoEndpoint().then((function(b){return m.Log.debug("UserInfoService.getClaims: received userinfo url",b),F._jsonService.getJson(b,v).then((function(T){return m.Log.debug("UserInfoService.getClaims: claims received",T),T}))})):(m.Log.error("UserInfoService.getClaims: No token passed"),Promise.reject(new Error("A token is required")))},h.prototype._getClaimsFromJwt=function(v){var F=this;try{var b=this._joseUtil.parseJwt(v.responseText);if(!b||!b.header||!b.payload)return m.Log.error("UserInfoService._getClaimsFromJwt: Failed to parse JWT",b),Promise.reject(new Error("Failed to parse id_token"));var T=b.header.kid,R=void 0;switch(this._settings.userInfoJwtIssuer){case"OP":R=this._metadataService.getIssuer();break;case"ANY":R=Promise.resolve(b.payload.iss);break;default:R=Promise.resolve(this._settings.userInfoJwtIssuer)}return R.then((function(j){return m.Log.debug("UserInfoService._getClaimsFromJwt: Received issuer:"+j),F._metadataService.getSigningKeys().then((function(D){if(!D)return m.Log.error("UserInfoService._getClaimsFromJwt: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));m.Log.debug("UserInfoService._getClaimsFromJwt: Received signing keys");var N=void 0;if(T)N=D.filter((function(J){return J.kid===T}))[0];else{if((D=F._filterByAlg(D,b.header.alg)).length>1)return m.Log.error("UserInfoService._getClaimsFromJwt: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));N=D[0]}if(!N)return m.Log.error("UserInfoService._getClaimsFromJwt: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var Z=F._settings.client_id,V=F._settings.clockSkew;return m.Log.debug("UserInfoService._getClaimsFromJwt: Validaing JWT; using clock skew (in seconds) of: ",V),F._joseUtil.validateJwt(v.responseText,N,j,Z,V,void 0,!0).then((function(){return m.Log.debug("UserInfoService._getClaimsFromJwt: JWT validation successful"),b.payload}))}))}))}catch(j){return m.Log.error("UserInfoService._getClaimsFromJwt: Error parsing JWT response",j.message),void reject(j)}},h.prototype._filterByAlg=function(v,F){var b=null;if(F.startsWith("RS"))b="RSA";else if(F.startsWith("PS"))b="PS";else{if(!F.startsWith("ES"))return m.Log.debug("UserInfoService._filterByAlg: alg not supported: ",F),[];b="EC"}return m.Log.debug("UserInfoService._filterByAlg: Looking for keys that match kty: ",b),v=v.filter((function(T){return T.kty===b})),m.Log.debug("UserInfoService._filterByAlg: Number of keys that match kty: ",b,v.length),v},h})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.AllowedSigningAlgs=i.b64tohex=i.hextob64u=i.crypto=i.X509=i.KeyUtil=i.jws=void 0;var c=a(27);i.jws=c.jws,i.KeyUtil=c.KEYUTIL,i.X509=c.X509,i.crypto=c.crypto,i.hextob64u=c.hextob64u,i.b64tohex=c.b64tohex,i.AllowedSigningAlgs=["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"]},function(o,i,a){(function(c){Object.defineProperty(i,"__esModule",{value:!0});var u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},m={userAgent:!1},f={};/*! 3Copyright (c) 2011, Yahoo! Inc. All rights reserved. 4Code licensed under the BSD License:
vendor: 4,889 bytes, lines 5-14
5http://developer.yahoo.com/yui/license.html 6version: 2.9.0 7*/if(d===void 0)var d={};d.lang={extend:function(r,s,l){if(!s||!r)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var g=function(){};if(g.prototype=s.prototype,r.prototype=new g,r.prototype.constructor=r,r.superclass=s.prototype,s.prototype.constructor==Object.prototype.constructor&&(s.prototype.constructor=s),l){var _;for(_ in l)r.prototype[_]=l[_];var x=function(){},I=["toString","valueOf"];try{/MSIE/.test(m.userAgent)&&(x=function(C,L){for(_=0;_<I.length;_+=1){var U=I[_],Y=L[U];typeof Y=="function"&&Y!=Object.prototype[U]&&(C[U]=Y)}})}catch{}x(r.prototype,l)}}};/*! CryptoJS v3.1.2 core-fix.js 8 * code.google.com/p/crypto-js 9 * (c) 2009-2013 by Jeff Mott. All rights reserved. 10 * code.google.com/p/crypto-js/wiki/License 11 * THIS IS FIX of 'core.js' to fix Hmac issue. 12 * https://code.google.com/p/crypto-js/issues/detail?id=84 13 * https://crypto-js.googlecode.com/svn-history/r667/branches/3.x/src/core.js 14 */var h,p,v,F,b,T,R,j,D,N,Z,V=V||(h=Math,v=(p={}).lib={},F=v.Base=(function(){function n(){}return{extend:function(s){n.prototype=this;var l=new n;return s&&l.mixIn(s),l.hasOwnProperty("init")||(l.init=function(){l.$super.init.apply(this,arguments)}),l.init.prototype=l,l.$super=this,l},create:function(){var s=this.extend();return s.init.apply(s,arguments),s},init:function(){},mixIn:function(s){for(var l in s)s.hasOwnProperty(l)&&(this[l]=s[l]);s.hasOwnProperty("toString")&&(this.toString=s.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),b=v.WordArray=F.extend({init:function(r,s){r=this.words=r||[],this.sigBytes=s??4*r.length},toString:function(r){return(r||R).stringify(this)},concat:function(r){var s=this.words,l=r.words,g=this.sigBytes,_=r.sigBytes;if(this.clamp(),g%4)for(var x=0;x<_;x++){var I=l[x>>>2]>>>24-x%4*8&255;s[g+x>>>2]|=I<<24-(g+x)%4*8}else for(x=0;x<_;x+=4)s[g+x>>>2]=l[x>>>2];return this.sigBytes+=_,this},clamp:function(){var r=this.words,s=this.sigBytes;r[s>>>2]&=4294967295<<32-s%4*8,r.length=h.ceil(s/4)},clone:function(){var r=F.clone.call(this);return r.words=this.words.slice(0),r},random:function(r){for(var s=[],l=0;l<r;l+=4)s.push(4294967296*h.random()|0);return new b.init(s,r)}}),T=p.enc={},R=T.Hex={stringify:function(r){for(var s=r.words,l=r.sigBytes,g=[],_=0;_<l;_++){var x=s[_>>>2]>>>24-_%4*8&255;g.push((x>>>4).toString(16)),g.push((15&x).toString(16))}return g.join("")},parse:function(r){for(var s=r.length,l=[],g=0;g<s;g+=2)l[g>>>3]|=parseInt(r.substr(g,2),16)<<24-g%8*4;return new b.init(l,s/2)}},j=T.Latin1={stringify:function(r){for(var s=r.words,l=r.sigBytes,g=[],_=0;_<l;_++){var x=s[_>>>2]>>>24-_%4*8&255;g.push(String.fromCharCode(x))}return g.join("")},parse:function(r){for(var s=r.length,l=[],g=0;g<s;g++)l[g>>>2]|=(255&r.charCodeAt(g))<<24-g%4*8;return new b.init(l,s)}},D=T.Utf8={stringify:function(r){try{return decodeURIComponent(escape(j.stringify(r)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(r){return j.parse(unescape(encodeURIComponent(r)))}},N=v.BufferedBlockAlgorithm=F.extend({reset:function(){this._data=new b.init,this._nDataBytes=0},_append:function(r){typeof r=="string"&&(r=D.parse(r)),this._data.concat(r),this._nDataBytes+=r.sigBytes},_process:function(r){var s=this._data,l=s.words,g=s.sigBytes,_=this.blockSize,x=g/(4*_),I=(x=r?h.ceil(x):h.max((0|x)-this._minBufferSize,0))*_,P=h.min(4*I,g);if(I){for(var C=0;C<I;C+=_)this._doProcessBlock(l,C);var L=l.splice(0,I);s.sigBytes-=P}return new b.init(L,P)},clone:function(){var r=F.clone.call(this);return r._data=this._data.clone(),r},_minBufferSize:0}),v.Hasher=N.extend({cfg:F.extend(),init:function(r){this.cfg=this.cfg.extend(r),this.reset()},reset:function(){N.reset.call(this),this._doReset()},update:function(r){return this._append(r),this._process(),this},finalize:function(r){return r&&this._append(r),this._doFinalize()},blockSize:16,_createHelper:function(r){return function(s,l){return new r.init(l).finalize(s)}},_createHmacHelper:function(r){return function(s,l){return new Z.HMAC.init(r,l).finalize(s)}}}),Z=p.algo={},p);(function(n){var r,s=(r=V).lib,l=s.Base,g=s.WordArray;(r=r.x64={}).Word=l.extend({init:function(x,I){this.high=x,this.low=I}}),r.WordArray=l.extend({init:function(x,I){x=this.words=x||[],this.sigBytes=I??8*x.length},toX32:function(){for(var x=this.words,I=x.length,P=[],C=0;C<I;C++){var L=x[C];P.push(L.high),P.push(L.low)}return g.create(P,this.sigBytes)},clone:function(){for(var x=l.clone.call(this),I=x.words=this.words.slice(0),P=I.length,C=0;C<P;C++)I[C]=I[C].clone();return x}})})(),(function(){var n=V,r=n.lib.WordArray;n.enc.Base64={stringify:function(l){var g=l.words,_=l.sigBytes,x=this._map;l.clamp(),l=[];for(var I=0;I<_;I+=3)for(var P=(g[I>>>2]>>>24-I%4*8&255)<<16|(g[I+1>>>2]>>>24-(I+1)%4*8&255)<<8|g[I+2>>>2]>>>24-(I+2)%4*8&255,C=0;4>C&&I+.75*C<_;
vendor: 5,771 bytes, line 14
14C++)l.push(x.charAt(P>>>6*(3-C)&63));if(g=x.charAt(64))for(;l.length%4;)l.push(g);return l.join("")},parse:function(l){var g=l.length,_=this._map;(x=_.charAt(64))&&(x=l.indexOf(x))!=-1&&(g=x);for(var x=[],I=0,P=0;P<g;P++)if(P%4){var C=_.indexOf(l.charAt(P-1))<<P%4*2,L=_.indexOf(l.charAt(P))>>>6-P%4*2;x[I>>>2]|=(C|L)<<24-I%4*8,I++}return r.create(x,I)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})(),(function(n){for(var r=V,s=(g=r.lib).WordArray,l=g.Hasher,g=r.algo,_=[],x=[],I=function(re){return 4294967296*(re-(0|re))|0},P=2,C=0;64>C;){var L;e:{L=P;for(var U=n.sqrt(L),Y=2;Y<=U;Y++)if(!(L%Y)){L=!1;break e}L=!0}L&&(8>C&&(_[C]=I(n.pow(P,.5))),x[C]=I(n.pow(P,1/3)),C++),P++}var G=[];g=g.SHA256=l.extend({_doReset:function(){this._hash=new s.init(_.slice(0))},_doProcessBlock:function(re,ne){for(var A=this._hash.words,z=A[0],B=A[1],q=A[2],te=A[3],oe=A[4],Fe=A[5],he=A[6],Ne=A[7],we=0;64>we;we++){if(16>we)G[we]=0|re[ne+we];else{var Te=G[we-15],nt=G[we-2];G[we]=((Te<<25|Te>>>7)^(Te<<14|Te>>>18)^Te>>>3)+G[we-7]+((nt<<15|nt>>>17)^(nt<<13|nt>>>19)^nt>>>10)+G[we-16]}Te=Ne+((oe<<26|oe>>>6)^(oe<<21|oe>>>11)^(oe<<7|oe>>>25))+(oe&Fe^~oe&he)+x[we]+G[we],nt=((z<<30|z>>>2)^(z<<19|z>>>13)^(z<<10|z>>>22))+(z&B^z&q^B&q),Ne=he,he=Fe,Fe=oe,oe=te+Te|0,te=q,q=B,B=z,z=Te+nt|0}A[0]=A[0]+z|0,A[1]=A[1]+B|0,A[2]=A[2]+q|0,A[3]=A[3]+te|0,A[4]=A[4]+oe|0,A[5]=A[5]+Fe|0,A[6]=A[6]+he|0,A[7]=A[7]+Ne|0},_doFinalize:function(){var re=this._data,ne=re.words,A=8*this._nDataBytes,z=8*re.sigBytes;return ne[z>>>5]|=128<<24-z%32,ne[14+(z+64>>>9<<4)]=n.floor(A/4294967296),ne[15+(z+64>>>9<<4)]=A,re.sigBytes=4*ne.length,this._process(),this._hash},clone:function(){var re=l.clone.call(this);return re._hash=this._hash.clone(),re}}),r.SHA256=l._createHelper(g),r.HmacSHA256=l._createHmacHelper(g)})(Math),(function(){function n(){return l.create.apply(l,arguments)}for(var r=V,s=r.lib.Hasher,l=(_=r.x64).Word,g=_.WordArray,_=r.algo,x=[n(1116352408,3609767458),n(1899447441,602891725),n(3049323471,3964484399),n(3921009573,2173295548),n(961987163,4081628472),n(1508970993,3053834265),n(2453635748,2937671579),n(2870763221,3664609560),n(3624381080,2734883394),n(310598401,1164996542),n(607225278,1323610764),n(1426881987,3590304994),n(1925078388,4068182383),n(2162078206,991336113),n(2614888103,633803317),n(3248222580,3479774868),n(3835390401,2666613458),n(4022224774,944711139),n(264347078,2341262773),n(604807628,2007800933),n(770255983,1495990901),n(1249150122,1856431235),n(1555081692,3175218132),n(1996064986,2198950837),n(2554220882,3999719339),n(2821834349,766784016),n(2952996808,2566594879),n(3210313671,3203337956),n(3336571891,1034457026),n(3584528711,2466948901),n(113926993,3758326383),n(338241895,168717936),n(666307205,1188179964),n(773529912,1546045734),n(1294757372,1522805485),n(1396182291,2643833823),n(1695183700,2343527390),n(1986661051,1014477480),n(2177026350,1206759142),n(2456956037,344077627),n(2730485921,1290863460),n(2820302411,3158454273),n(3259730800,3505952657),n(3345764771,106217008),n(3516065817,3606008344),n(3600352804,1432725776),n(4094571909,1467031594),n(275423344,851169720),n(430227734,3100823752),n(506948616,1363258195),n(659060556,3750685593),n(883997877,3785050280),n(958139571,3318307427),n(1322822218,3812723403),n(1537002063,2003034995),n(1747873779,3602036899),n(1955562222,1575990012),n(2024104815,1125592928),n(2227730452,2716904306),n(2361852424,442776044),n(2428436474,593698344),n(2756734187,3733110249),n(3204031479,2999351573),n(3329325298,3815920427),n(3391569614,3928383900),n(3515267271,566280711),n(3940187606,3454069534),n(4118630271,4000239992),n(116418474,1914138554),n(174292421,2731055270),n(289380356,3203993006),n(460393269,320620315),n(685471733,587496836),n(852142971,1086792851),n(1017036298,365543100),n(1126000580,2618297676),n(1288033470,3409855158),n(1501505948,4234509866),n(1607167915,987167468),n(1816402316,1246189591)],I=[],P=0;80>P;P++)I[P]=n();_=_.SHA512=s.extend({_doReset:function(){this._hash=new g.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(L,U){for(var Y=(B=this._hash.words)[0],G=B[1],ee=B[2],re=B[3],ne=B[4],A=B[5],z=B[6],B=B[7],q=Y.high,te=Y.low,oe=G.high,Fe=G.low,he=ee.high,Ne=ee.low,we=re.high,Te=re.low,nt=ne.high,dt=ne.low,ot=A.high,Ot=A.low,Tt=z.high,Rt=z.low,mt=B.high,bt=B.low,kt=q,Ct=te,tn=oe,Mr=Fe,rn=he,Nr=Ne,Si=we,nn=Te,Jt=nt,Vt=dt,An=ot,on=Ot,kn=Tt,sn=Rt,wi=mt,an=bt,Gt=0;80>Gt;Gt++){var Tr=I[Gt];if(16>Gt)var ar=Tr.high=0|L[U+2*Gt],ft=Tr.low=0|L[U+2*Gt+1];else{ar=((ft=(ar=I[Gt-15]).high)>>>1|(ur=ar.low)<<31)^(ft>>>8|ur<<24)^ft>>>7;var ur=(ur>>>1|ft<<31)^(ur>>>8|ft<<24)^(ur>>>7|ft<<25),Hr=((ft=(Hr=I[Gt-2]).high)>>>19|(Et=Hr.low)<<13)^(ft<<3|Et>>>29)^ft>>>6,Et=(Et>>>19|ft<<13)^(Et<<3|ft>>>29)^(Et>>>6|ft<<26),bi=(ft=I[Gt-7]).high,Dr=(Rr=I[Gt-16]).high,Rr=Rr.low;ar=(ar=(ar=ar+bi+((ft=ur+ft.low)>>>0<ur>>>0?1:0))+Hr+((ft=ft+Et)>>>0<Et>>>0?1:0))+Dr+((ft=ft+Rr)>>>0<Rr>>>0?1:0),Tr.high=ar,Tr.low=ft}bi=Jt&An^~Jt&kn,Rr=Vt&on^~Vt&sn,Tr=kt&tn^kt&rn^tn&rn;var Ru=Ct&Mr^Ct&Nr^Mr&Nr,Cu=(ur=(kt>>>28|Ct<<4)^(kt<<30|Ct>>>2)^(kt<<25|Ct>>>7),Hr=(Ct>>>28|kt<<4)^(Ct<<30|kt>>>2)^(Ct<<25|kt>>>7),(Et=x[Gt]).high),Uo=Et.low;Dr=wi+((Jt>>>14|Vt<<18)^(Jt>>>18|Vt<<14)^(Jt<<23|Vt>>>9))+((Et=an+((Vt>>>14|Jt<<18)^(Vt>>>18|Jt<<14)^(Vt<<23|Jt>>>9)))>>>0<an>>>0?1:0),wi=kn,an=sn,kn=An,sn=on,An=Jt,on=Vt,Jt=Si+(Dr=(Dr=(Dr=Dr+bi+((Et=Et+Rr)>>>0<Rr>>>0?1:0))+Cu+((Et=Et+Uo)>>>0<Uo>>>0?1:0))+ar+((Et=Et+ft)>>>0<ft>>>0?1:0))+((Vt=nn+Et|0)>>>0<nn>>>0?1:0)|0,Si=rn,nn=Nr,rn=tn,Nr=Mr,tn=kt,Mr=Ct,kt=Dr+(Tr=ur+Tr+((ft=Hr+Ru)>>>0<Hr>>>
140?1:0))+((Ct=Et+ft|0)>>>0<Et>>>0?1:0)|0}te=Y.low=te+Ct,Y.high=q+kt+(te>>>0<Ct>>>0?1:0),Fe=G.low=Fe+Mr,G.high=oe+tn+(Fe>>>0<Mr>>>0?1:0),Ne=ee.low=Ne+Nr,ee.high=he+rn+(Ne>>>0<Nr>>>0?1:0),Te=re.low=Te+nn,re.high=we+Si+(Te>>>0<nn>>>0?1:0),dt=ne.low=dt+Vt,ne.high=nt+Jt+(dt>>>0<Vt>>>0?1:0),Ot=A.low=Ot+on,A.high=ot+An+(Ot>>>0<on>>>0?1:0),Rt=z.low=Rt+sn,z.high=Tt+kn+(Rt>>>0<sn>>>0?1:0),bt=B.low=bt+an,B.high=mt+wi+(bt>>>0<an>>>0?1:0)},_doFinalize:function(){var L=this._data,U=L.words,Y=8*this._nDataBytes,G=8*L.sigBytes;return U[G>>>5]|=128<<24-G%32,U[30+(G+128>>>10<<5)]=Math.floor(Y/4294967296),U[31+(G+128>>>10<<5)]=Y,L.sigBytes=4*U.length,this._process(),this._hash.toX32()},clone:function(){var L=s.clone.call(this);return L._hash=this._hash.clone(),L},blockSize:32}),r.SHA512=s._createHelper(_),r.HmacSHA512=s._createHmacHelper(_)})(),(function(){var n=V,r=(g=n.x64).Word,s=g.WordArray,l=(g=n.algo).SHA512,g=g.SHA384=l.extend({_doReset:function(){this._hash=new s.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var x=l._doFinalize.call(this);return x.sigBytes-=16,x}});n.SHA384=l._createHelper(g),n.HmacSHA384=l._createHmacHelper(g)})();/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/ 15 */var J,W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function le(n){var r,s,l="";for(r=0;r+3<=n.length;r+=3)s=parseInt(n.substring(r,r+3),16),l+=W.charAt(s>>6)+W.charAt(63&s);for(r+1==n.length?(s=parseInt(n.substring(r,r+1),16),l+=W.charAt(s<<2)):r+2==n.length&&(s=parseInt(n.substring(r,r+2),16),l+=W.charAt(s>>2)+W.charAt((3&s)<<4)),"=";(3&l.length)>0;)l+="=";return l}function de(n){var r,s,l,g="",_=0;for(r=0;r<n.length&&n.charAt(r)!="=";++r)(l=W.indexOf(n.charAt(r)))<0||(_==0?(g+=Q(l>>2),s=3&l,_=1):_==1?(g+=Q(s<<2|l>>4),s=15&l,_=2):_==2?(g+=Q(s),g+=Q(l>>2),s=3&l,_=3):(g+=Q(s<<2|l>>4),g+=Q(15&l),_=0));return _==1&&(g+=Q(s<<2)),g}function ve(n){var r,s=de(n),l=new Array;for(r=0;2*r<s.length;++r)l[r]=parseInt(s.substring(2*r,2*r+2),16);return l}function K(n,r,s){n!=null&&(typeof n=="number"?this.fromNumber(n,r,s):r==null&&typeof n!="string"?this.fromString(n,256):this.fromString(n,r))}function Se(){return new K(null)}m.appName=="Microsoft Internet Explorer"?(K.prototype.am=function(r,s,l,g,_,x){for(var I=32767&s,P=s>>15;--x>=0;){var C=32767&this[r],L=this[r++]>>15,U=P*C+L*I;_=((C=I*C+((32767&U)<<15)+l[g]+(1073741823&_))>>>30)+(U>>>15)+P*L+(_>>>30),l[g++]=1073741823&C}return _},J=30):m.appName!="Netscape"?(K.prototype.am=function(r,s,l,g,_,x){for(;--x>=0;){var I=s*this[r++]+l[g]+_;_=Math.floor(I/67108864),l[g++]=67108863&I}return _},J=26):(K.prototype.am=function(r,s,l,g,_,x){for(var I=16383&s,P=s>>14;--x>=0;){var C=16383&this[r],L=this[r++]>>14,U=P*C+L*I;_=((C=I*C+((16383&U)<<14)+l[g]+_)>>28)+(U>>14)+P*L,l[g++]=268435455&C}return _},J=28),K.prototype.DB=J,K.prototype.DM=(1<<J)-1,K.prototype.DV=1<<J,K.prototype.FV=Math.pow(2,52),K.prototype.F1=52-J,K.prototype.F2=2*J-52;var y,E,O=new Array;for(y=48,E=0;E<=9;++E)O[y++]=E;for(y=97,E=10;E<36;++E)O[y++]=E;for(y=65,E=10;E<36;++E)O[y++]=E;function Q(n){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(n)}function se(n,r){var s=O[n.charCodeAt(r)];return s??-1}function ce(n){var r=Se();return r.fromInt(n),r}function ie(n){var r,s=1;return(r=n>>>16)!=0&&(n=r,s+=16),(r=n>>8)!=0&&(n=r,s+=8),(r=n>>4)!=0&&(n=r,s+=4),(r=n>>2)!=0&&(n=r,s+=2),(r=n>>1)!=0&&(n=r,s+=1),s}function ae(n){this.m=n}function pe(n){this.m=n,this.mp=n.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<n.DB-15)-1,this.mt2=2*n.t}function xe(n,r){return n&r}function je(n,r){return n|r}function Le(n,r){return n^r}function ze(n,r){return n&~r}function Be(n){if(n==0)return-1;var r=0;return(65535&n)==0&&(n>>=16,r+=16),(255&n)==0&&(n>>=8,r+=8),(15&n)==0&&(n>>=4,r+=4),(3&n)==0&&(n>>=2,r+=2),(1&n)==0&&++r,r}function Je(n){for(var r=0;n!=0;)n&=n-1,++r;return r}function Ke(){}function We(n){return n}function Xe(n){this.r2=Se(),this.q3=Se(),K.ONE.dlShiftTo(2*n.t,this.r2),this.mu=this.r2.divide(n),this.m=n}ae.prototype.convert=function(r){return r.s<0||r.compareTo(this.m)>=0?r.mod(this.m):r},ae.prototype.revert=function(r){return r},ae.prototype.reduce=function(r){r.divRemTo(this.m,null,r)},ae.prototype.mulTo=function(r,s,l){r.multiplyTo(s,l),this.reduce(l)},ae.prototype.sqrTo=function(r,s){r.squareTo(s),this.reduce(s)},pe.prototype.convert=function(r){var s=Se();return r.abs().dlShiftTo(this.m.t,s),s.divRemTo(this.m,null,s),r.s<0&&s.c
vendor: 5,281 bytes, line 15
15ompareTo(K.ZERO)>0&&this.m.subTo(s,s),s},pe.prototype.revert=function(r){var s=Se();return r.copyTo(s),this.reduce(s),s},pe.prototype.reduce=function(r){for(;r.t<=this.mt2;)r[r.t++]=0;for(var s=0;s<this.m.t;++s){var l=32767&r[s],g=l*this.mpl+((l*this.mph+(r[s]>>15)*this.mpl&this.um)<<15)&r.DM;for(r[l=s+this.m.t]+=this.m.am(0,g,r,s,0,this.m.t);r[l]>=r.DV;)r[l]-=r.DV,r[++l]++}r.clamp(),r.drShiftTo(this.m.t,r),r.compareTo(this.m)>=0&&r.subTo(this.m,r)},pe.prototype.mulTo=function(r,s,l){r.multiplyTo(s,l),this.reduce(l)},pe.prototype.sqrTo=function(r,s){r.squareTo(s),this.reduce(s)},K.prototype.copyTo=function(r){for(var s=this.t-1;s>=0;--s)r[s]=this[s];r.t=this.t,r.s=this.s},K.prototype.fromInt=function(r){this.t=1,this.s=r<0?-1:0,r>0?this[0]=r:r<-1?this[0]=r+this.DV:this.t=0},K.prototype.fromString=function(r,s){var l;if(s==16)l=4;else if(s==8)l=3;else if(s==256)l=8;else if(s==2)l=1;else if(s==32)l=5;else{if(s!=4)return void this.fromRadix(r,s);l=2}this.t=0,this.s=0;for(var g=r.length,_=!1,x=0;--g>=0;){var I=l==8?255&r[g]:se(r,g);I<0?r.charAt(g)=="-"&&(_=!0):(_=!1,x==0?this[this.t++]=I:x+l>this.DB?(this[this.t-1]|=(I&(1<<this.DB-x)-1)<<x,this[this.t++]=I>>this.DB-x):this[this.t-1]|=I<<x,(x+=l)>=this.DB&&(x-=this.DB))}l==8&&(128&r[0])!=0&&(this.s=-1,x>0&&(this[this.t-1]|=(1<<this.DB-x)-1<<x)),this.clamp(),_&&K.ZERO.subTo(this,this)},K.prototype.clamp=function(){for(var r=this.s&this.DM;this.t>0&&this[this.t-1]==r;)--this.t},K.prototype.dlShiftTo=function(r,s){var l;for(l=this.t-1;l>=0;--l)s[l+r]=this[l];for(l=r-1;l>=0;--l)s[l]=0;s.t=this.t+r,s.s=this.s},K.prototype.drShiftTo=function(r,s){for(var l=r;l<this.t;++l)s[l-r]=this[l];s.t=Math.max(this.t-r,0),s.s=this.s},K.prototype.lShiftTo=function(r,s){var l,g=r%this.DB,_=this.DB-g,x=(1<<_)-1,I=Math.floor(r/this.DB),P=this.s<<g&this.DM;for(l=this.t-1;l>=0;--l)s[l+I+1]=this[l]>>_|P,P=(this[l]&x)<<g;for(l=I-1;l>=0;--l)s[l]=0;s[I]=P,s.t=this.t+I+1,s.s=this.s,s.clamp()},K.prototype.rShiftTo=function(r,s){s.s=this.s;var l=Math.floor(r/this.DB);if(l>=this.t)s.t=0;else{var g=r%this.DB,_=this.DB-g,x=(1<<g)-1;s[0]=this[l]>>g;for(var I=l+1;I<this.t;++I)s[I-l-1]|=(this[I]&x)<<_,s[I-l]=this[I]>>g;g>0&&(s[this.t-l-1]|=(this.s&x)<<_),s.t=this.t-l,s.clamp()}},K.prototype.subTo=function(r,s){for(var l=0,g=0,_=Math.min(r.t,this.t);l<_;)g+=this[l]-r[l],s[l++]=g&this.DM,g>>=this.DB;if(r.t<this.t){for(g-=r.s;l<this.t;)g+=this[l],s[l++]=g&this.DM,g>>=this.DB;g+=this.s}else{for(g+=this.s;l<r.t;)g-=r[l],s[l++]=g&this.DM,g>>=this.DB;g-=r.s}s.s=g<0?-1:0,g<-1?s[l++]=this.DV+g:g>0&&(s[l++]=g),s.t=l,s.clamp()},K.prototype.multiplyTo=function(r,s){var l=this.abs(),g=r.abs(),_=l.t;for(s.t=_+g.t;--_>=0;)s[_]=0;for(_=0;_<g.t;++_)s[_+l.t]=l.am(0,g[_],s,_,0,l.t);s.s=0,s.clamp(),this.s!=r.s&&K.ZERO.subTo(s,s)},K.prototype.squareTo=function(r){for(var s=this.abs(),l=r.t=2*s.t;--l>=0;)r[l]=0;for(l=0;l<s.t-1;++l){var g=s.am(l,s[l],r,2*l,0,1);(r[l+s.t]+=s.am(l+1,2*s[l],r,2*l+1,g,s.t-l-1))>=s.DV&&(r[l+s.t]-=s.DV,r[l+s.t+1]=1)}r.t>0&&(r[r.t-1]+=s.am(l,s[l],r,2*l,0,1)),r.s=0,r.clamp()},K.prototype.divRemTo=function(r,s,l){var g=r.abs();if(!(g.t<=0)){var _=this.abs();if(_.t<g.t)return s?.fromInt(0),void(l!=null&&this.copyTo(l));l==null&&(l=Se());var x=Se(),I=this.s,P=r.s,C=this.DB-ie(g[g.t-1]);C>0?(g.lShiftTo(C,x),_.lShiftTo(C,l)):(g.copyTo(x),_.copyTo(l));var L=x.t,U=x[L-1];if(U!=0){var Y=U*(1<<this.F1)+(L>1?x[L-2]>>this.F2:0),G=this.FV/Y,ee=(1<<this.F1)/Y,re=1<<this.F2,ne=l.t,A=ne-L,z=s??Se();for(x.dlShiftTo(A,z),l.compareTo(z)>=0&&(l[l.t++]=1,l.subTo(z,l)),K.ONE.dlShiftTo(L,z),z.subTo(x,x);x.t<L;)x[x.t++]=0;for(;--A>=0;){var B=l[--ne]==U?this.DM:Math.floor(l[ne]*G+(l[ne-1]+re)*ee);if((l[ne]+=x.am(0,B,l,A,0,L))<B)for(x.dlShiftTo(A,z),l.subTo(z,l);l[ne]<--B;)l.subTo(z,l)}s!=null&&(l.drShiftTo(L,s),I!=P&&K.ZERO.subTo(s,s)),l.t=L,l.clamp(),C>0&&l.rShiftTo(C,l),I<0&&K.ZERO.subTo(l,l)}}},K.prototype.invDigit=function(){if(this.t<1)return 0;var r=this[0];if((1&r)==0)return 0;var s=3&r;return(s=(s=(s=(s=s*(2-(15&r)*s)&15)*(2-(255&r)*s)&255)*(2-((65535&r)*s&65535))&65535)*(2-r*s%this.DV)%this.DV)>0?this.DV-s:-s},K.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},K.prototype.exp=function(r,s){if(r>4294967295||r<1)return K.ONE;var l=Se(),g=Se(),_=s.convert(this),x=ie(r)-1;for(_.copyTo(l);--x>=0;)if(s.sqrTo(l,g),(r&1<<x)>0)s.mulTo(g,_,l);else{var I=l;l=g,g=I}return s.revert(l)},K.prototype.toString=function(r){if(this.s<0)return"-"+this.negate().toString(r);var s;if(r==16)s=4;else if(r==8)s=3;else if(r==2)s=1;else if(r==32)s=5;else{if(r!=4)return this.toRadix(r);s=2}var l,g=(1<<s)-1,_=!1,x="",I=this.t,P=this.DB-I*this.DB%s;if(I-- >0)for(P<this.DB&&(l=this[I]>>P)>0&&(_=!0,x=Q(l));I>=0;)P<s?(l=(this[I]&(1<<P)-1)<<s-P,l|=this[--I]>>(P+=this.DB-s)):(l=this[I]>>(P-=s)&g,P<=0&&(P+=this.DB,--I)),l>0&&(_=!0),_&&(x+=Q(l));return _?x:"0"},K.prototype.negate=function(){var r=Se();return K.ZERO.subTo(this,r),r},K.prototype.abs=function(){return this.s<0?this.negate():this},K.prototype.compareTo=function(r){var s=this.s-r.s;if(s!=0)return s;var l=this.t;if((s=l-r.t)!=0)return this.s<0?-s:s;for(;--l>=0;)if((s=this[l]-r[l])!=0)return s;return 0},K.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+ie(this[this.t-1]^this.s&this.DM)},K.prototype.mod=function(r){var s=Se();
vendor: 5,647 bytes, lines 15-16
15return this.abs().divRemTo(r,null,s),this.s<0&&s.compareTo(K.ZERO)>0&&r.subTo(s,s),s},K.prototype.modPowInt=function(r,s){var l;return l=r<256||s.isEven()?new ae(s):new pe(s),this.exp(r,l)},K.ZERO=ce(0),K.ONE=ce(1),Ke.prototype.convert=We,Ke.prototype.revert=We,Ke.prototype.mulTo=function(r,s,l){r.multiplyTo(s,l)},Ke.prototype.sqrTo=function(r,s){r.squareTo(s)},Xe.prototype.convert=function(r){if(r.s<0||r.t>2*this.m.t)return r.mod(this.m);if(r.compareTo(this.m)<0)return r;var s=Se();return r.copyTo(s),this.reduce(s),s},Xe.prototype.revert=function(r){return r},Xe.prototype.reduce=function(r){for(r.drShiftTo(this.m.t-1,this.r2),r.t>this.m.t+1&&(r.t=this.m.t+1,r.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);r.compareTo(this.r2)<0;)r.dAddOffset(1,this.m.t+1);for(r.subTo(this.r2,r);r.compareTo(this.m)>=0;)r.subTo(this.m,r)},Xe.prototype.mulTo=function(r,s,l){r.multiplyTo(s,l),this.reduce(l)},Xe.prototype.sqrTo=function(r,s){r.squareTo(s),this.reduce(s)};var M=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],S=(1<<26)/M[M.length-1];/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/ 16 */function w(){this.i=0,this.j=0,this.S=new Array}K.prototype.chunkSize=function(r){return Math.floor(Math.LN2*this.DB/Math.log(r))},K.prototype.toRadix=function(r){if(r==null&&(r=10),this.signum()==0||r<2||r>36)return"0";var s=this.chunkSize(r),l=Math.pow(r,s),g=ce(l),_=Se(),x=Se(),I="";for(this.divRemTo(g,_,x);_.signum()>0;)I=(l+x.intValue()).toString(r).substr(1)+I,_.divRemTo(g,_,x);return x.intValue().toString(r)+I},K.prototype.fromRadix=function(r,s){this.fromInt(0),s==null&&(s=10);for(var l=this.chunkSize(s),g=Math.pow(s,l),_=!1,x=0,I=0,P=0;P<r.length;++P){var C=se(r,P);C<0?r.charAt(P)=="-"&&this.signum()==0&&(_=!0):(I=s*I+C,++x>=l&&(this.dMultiply(g),this.dAddOffset(I,0),x=0,I=0))}x>0&&(this.dMultiply(Math.pow(s,x)),this.dAddOffset(I,0)),_&&K.ZERO.subTo(this,this)},K.prototype.fromNumber=function(r,s,l){if(typeof s=="number")if(r<2)this.fromInt(1);else for(this.fromNumber(r,l),this.testBit(r-1)||this.bitwiseTo(K.ONE.shiftLeft(r-1),je,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(s);)this.dAddOffset(2,0),this.bitLength()>r&&this.subTo(K.ONE.shiftLeft(r-1),this);else{var g=new Array,_=7&r;g.length=1+(r>>3),s.nextBytes(g),_>0?g[0]&=(1<<_)-1:g[0]=0,this.fromString(g,256)}},K.prototype.bitwiseTo=function(r,s,l){var g,_,x=Math.min(r.t,this.t);for(g=0;g<x;++g)l[g]=s(this[g],r[g]);if(r.t<this.t){for(_=r.s&this.DM,g=x;g<this.t;++g)l[g]=s(this[g],_);l.t=this.t}else{for(_=this.s&this.DM,g=x;g<r.t;++g)l[g]=s(_,r[g]);l.t=r.t}l.s=s(this.s,r.s),l.clamp()},K.prototype.changeBit=function(r,s){var l=K.ONE.shiftLeft(r);return this.bitwiseTo(l,s,l),l},K.prototype.addTo=function(r,s){for(var l=0,g=0,_=Math.min(r.t,this.t);l<_;)g+=this[l]+r[l],s[l++]=g&this.DM,g>>=this.DB;if(r.t<this.t){for(g+=r.s;l<this.t;)g+=this[l],s[l++]=g&this.DM,g>>=this.DB;g+=this.s}else{for(g+=this.s;l<r.t;)g+=r[l],s[l++]=g&this.DM,g>>=this.DB;g+=r.s}s.s=g<0?-1:0,g>0?s[l++]=g:g<-1&&(s[l++]=this.DV+g),s.t=l,s.clamp()},K.prototype.dMultiply=function(r){this[this.t]=this.am(0,r-1,this,0,0,this.t),++this.t,this.clamp()},K.prototype.dAddOffset=function(r,s){if(r!=0){for(;this.t<=s;)this[this.t++]=0;for(this[s]+=r;this[s]>=this.DV;)this[s]-=this.DV,++s>=this.t&&(this[this.t++]=0),++this[s]}},K.prototype.multiplyLowerTo=function(r,s,l){var g,_=Math.min(this.t+r.t,s);for(l.s=0,l.t=_;_>0;)l[--_]=0;for(g=l.t-this.t;_<g;++_)l[_+this.t]=this.am(0,r[_],l,_,0,this.t);for(g=Math.min(r.t,s);_<g;++_)this.am(0,r[_],l,_,0,s-_);l.clamp()},K.prototype.multiplyUpperTo=function(r,s,l){--s;var g=l.t=this.t+r.t-s;for(l.s=0;--g>=0;)l[g]=0;for(g=Math.max(s-this.t,0);g<r.t;++g)l[this.t+g-s]=this.am(s-g,r[g],l,0,0,this.t+g-s);l.clamp(),l.drShiftTo(1,l)},K.prototype.modInt=function(r){if(r<=0)return 0;var s=this.DV%r,l=this.s<0?r-1:0;if(this.t>0)if(s==0)l=this[0]%r;else for(var g=this.t-1;g>=0;--g)l=(s*l+this[g])%r;return l},K.prototype.millerRabin=function(r){var s=this.subtract(K.ONE),l=s.getLowestSetBit();if(l<=0)return!1;var g=s.shiftRight(l);(r=r+1>>1)>M.length&&(r=M.length);for(var _=Se(),x=0;x<r;++x){_.fromInt(M[Math.floor(Math.random()*M.length)]);var I=_.modPow(g,this);if(I.compareTo(K.ONE)!=0&&I.compareTo(s)!=0){for(var P=1;P++<l&&I.compareTo(s)!=0;)if((I=I.modPowInt(2,this)).compareTo(K.ONE)==0)return!1;if(I.compareTo(s)!=0)return!1}}return!0},K.prototype.clone=function(){var r=Se();return this.copyTo(r),r},K.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},K.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},K.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},K.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},K.prototype.toByteArray=function(){var r=this.t,s=new Array;s[0]=this.s;var l,g=this.DB-r*this.DB%8,_=0;
vendor: 14,789 bytes, lines 16-19
16if(r-- >0)for(g<this.DB&&(l=this[r]>>g)!=(this.s&this.DM)>>g&&(s[_++]=l|this.s<<this.DB-g);r>=0;)g<8?(l=(this[r]&(1<<g)-1)<<8-g,l|=this[--r]>>(g+=this.DB-8)):(l=this[r]>>(g-=8)&255,g<=0&&(g+=this.DB,--r)),(128&l)!=0&&(l|=-256),_==0&&(128&this.s)!=(128&l)&&++_,(_>0||l!=this.s)&&(s[_++]=l);return s},K.prototype.equals=function(r){return this.compareTo(r)==0},K.prototype.min=function(r){return this.compareTo(r)<0?this:r},K.prototype.max=function(r){return this.compareTo(r)>0?this:r},K.prototype.and=function(r){var s=Se();return this.bitwiseTo(r,xe,s),s},K.prototype.or=function(r){var s=Se();return this.bitwiseTo(r,je,s),s},K.prototype.xor=function(r){var s=Se();return this.bitwiseTo(r,Le,s),s},K.prototype.andNot=function(r){var s=Se();return this.bitwiseTo(r,ze,s),s},K.prototype.not=function(){for(var r=Se(),s=0;s<this.t;++s)r[s]=this.DM&~this[s];return r.t=this.t,r.s=~this.s,r},K.prototype.shiftLeft=function(r){var s=Se();return r<0?this.rShiftTo(-r,s):this.lShiftTo(r,s),s},K.prototype.shiftRight=function(r){var s=Se();return r<0?this.lShiftTo(-r,s):this.rShiftTo(r,s),s},K.prototype.getLowestSetBit=function(){for(var r=0;r<this.t;++r)if(this[r]!=0)return r*this.DB+Be(this[r]);return this.s<0?this.t*this.DB:-1},K.prototype.bitCount=function(){for(var r=0,s=this.s&this.DM,l=0;l<this.t;++l)r+=Je(this[l]^s);return r},K.prototype.testBit=function(r){var s=Math.floor(r/this.DB);return s>=this.t?this.s!=0:(this[s]&1<<r%this.DB)!=0},K.prototype.setBit=function(r){return this.changeBit(r,je)},K.prototype.clearBit=function(r){return this.changeBit(r,ze)},K.prototype.flipBit=function(r){return this.changeBit(r,Le)},K.prototype.add=function(r){var s=Se();return this.addTo(r,s),s},K.prototype.subtract=function(r){var s=Se();return this.subTo(r,s),s},K.prototype.multiply=function(r){var s=Se();return this.multiplyTo(r,s),s},K.prototype.divide=function(r){var s=Se();return this.divRemTo(r,s,null),s},K.prototype.remainder=function(r){var s=Se();return this.divRemTo(r,null,s),s},K.prototype.divideAndRemainder=function(r){var s=Se(),l=Se();return this.divRemTo(r,s,l),new Array(s,l)},K.prototype.modPow=function(r,s){var l,g,_=r.bitLength(),x=ce(1);if(_<=0)return x;l=_<18?1:_<48?3:_<144?4:_<768?5:6,g=_<8?new ae(s):s.isEven()?new Xe(s):new pe(s);var I=new Array,P=3,C=l-1,L=(1<<l)-1;if(I[1]=g.convert(this),l>1){var U=Se();for(g.sqrTo(I[1],U);P<=L;)I[P]=Se(),g.mulTo(U,I[P-2],I[P]),P+=2}var Y,G,ee=r.t-1,re=!0,ne=Se();for(_=ie(r[ee])-1;ee>=0;){for(_>=C?Y=r[ee]>>_-C&L:(Y=(r[ee]&(1<<_+1)-1)<<C-_,ee>0&&(Y|=r[ee-1]>>this.DB+_-C)),P=l;(1&Y)==0;)Y>>=1,--P;if((_-=P)<0&&(_+=this.DB,--ee),re)I[Y].copyTo(x),re=!1;else{for(;P>1;)g.sqrTo(x,ne),g.sqrTo(ne,x),P-=2;P>0?g.sqrTo(x,ne):(G=x,x=ne,ne=G),g.mulTo(ne,I[Y],x)}for(;ee>=0&&(r[ee]&1<<_)==0;)g.sqrTo(x,ne),G=x,x=ne,ne=G,--_<0&&(_=this.DB-1,--ee)}return g.revert(x)},K.prototype.modInverse=function(r){var s=r.isEven();if(this.isEven()&&s||r.signum()==0)return K.ZERO;for(var l=r.clone(),g=this.clone(),_=ce(1),x=ce(0),I=ce(0),P=ce(1);l.signum()!=0;){for(;l.isEven();)l.rShiftTo(1,l),s?(_.isEven()&&x.isEven()||(_.addTo(this,_),x.subTo(r,x)),_.rShiftTo(1,_)):x.isEven()||x.subTo(r,x),x.rShiftTo(1,x);for(;g.isEven();)g.rShiftTo(1,g),s?(I.isEven()&&P.isEven()||(I.addTo(this,I),P.subTo(r,P)),I.rShiftTo(1,I)):P.isEven()||P.subTo(r,P),P.rShiftTo(1,P);l.compareTo(g)>=0?(l.subTo(g,l),s&&_.subTo(I,_),x.subTo(P,x)):(g.subTo(l,g),s&&I.subTo(_,I),P.subTo(x,P))}return g.compareTo(K.ONE)!=0?K.ZERO:P.compareTo(r)>=0?P.subtract(r):P.signum()<0?(P.addTo(r,P),P.signum()<0?P.add(r):P):P},K.prototype.pow=function(r){return this.exp(r,new Ke)},K.prototype.gcd=function(r){var s=this.s<0?this.negate():this.clone(),l=r.s<0?r.negate():r.clone();if(s.compareTo(l)<0){var g=s;s=l,l=g}var _=s.getLowestSetBit(),x=l.getLowestSetBit();if(x<0)return s;for(_<x&&(x=_),x>0&&(s.rShiftTo(x,s),l.rShiftTo(x,l));s.signum()>0;)(_=s.getLowestSetBit())>0&&s.rShiftTo(_,s),(_=l.getLowestSetBit())>0&&l.rShiftTo(_,l),s.compareTo(l)>=0?(s.subTo(l,s),s.rShiftTo(1,s)):(l.subTo(s,l),l.rShiftTo(1,l));return x>0&&l.lShiftTo(x,l),l},K.prototype.isProbablePrime=function(r){var s,l=this.abs();if(l.t==1&&l[0]<=M[M.length-1]){for(s=0;s<M.length;++s)if(l[0]==M[s])return!0;return!1}if(l.isEven())return!1;for(s=1;s<M.length;){for(var g=M[s],_=s+1;_<M.length&&g<S;)g*=M[_++];for(g=l.modInt(g);s<_;)if(g%M[s++]==0)return!1}return l.millerRabin(r)},K.prototype.square=function(){var r=Se();return this.squareTo(r),r},w.prototype.init=function(r){var s,l,g;for(s=0;s<256;++s)this.S[s]=s;for(l=0,s=0;s<256;++s)l=l+this.S[s]+r[s%r.length]&255,g=this.S[s],this.S[s]=this.S[l],this.S[l]=g;this.i=0,this.j=0},w.prototype.next=function(){var r;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,r=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=r,this.S[r+this.S[this.i]&255]};var H,$,X;/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/ 17 */function ue(){(function(r){$[X++]^=255&r,$[X++]^=r>>8&255,$[X++]^=r>>16&255,$[X++]^=r>>24&255,X>=256&&(X-=256)})(new Date().getTime())}if($==null){var be;if($=new Array,X=0,f!==void 0&&(f.crypto!==void 0||f.msCrypto!==void 0)){var Ie=f.crypto||f.msCrypto;if(Ie.getRandomValues){var $e=new Uint8Array(32);for(Ie.getRandomValues($e),be=0;be<32;++be)$[X++]=$e[be]}else if(m.appName=="Netscape"&&m.appVersion<"5"){var He=f.crypto.random(32);for(be=0;be<He.length;++be)$[X++]=255&He.charCodeAt(be)}}for(;X<256;)be=Math.floor(65536*Math.random()),$[X++]=be>>>8,$[X++]=255&be;X=0,ue()}function ut(){if(H==null){for(ue(),(H=(function(){return new w})()).init($),X=0;X<$.length;++X)$[X]=0;X=0}return H.next()}function lt(){}/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/ 18 */function vt(n,r){return new K(n,r)}function xt(n,r,s){for(var l="",g=0;l.length<r;)l+=s(String.fromCharCode.apply(String,n.concat([(4278190080&g)>>24,(16711680&g)>>16,(65280&g)>>8,255&g]))),g+=1;return l}function Pe(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/ 19 */function tt(n,r){this.x=r,this.q=n}function Me(n,r,s,l){this.curve=n,this.x=r,this.y=s,this.z=l??K.ONE,this.zinv=null}function Bt(n,r,s){this.q=n,this.a=this.fromBigInteger(r),this.b=this.fromBigInteger(s),this.infinity=new Me(this,null,null)}lt.prototype.nextBytes=function(r){var s;for(s=0;s<r.length;++s)r[s]=ut()},Pe.prototype.doPublic=function(r){return r.modPowInt(this.e,this.n)},Pe.prototype.setPublic=function(r,s){if(this.isPublic=!0,this.isPrivate=!1,typeof r!="string")this.n=r,this.e=s;else{if(!(r!=null&&s!=null&&r.length>0&&s.length>0))throw"Invalid RSA public key";this.n=vt(r,16),this.e=parseInt(s,16)}},Pe.prototype.encrypt=function(r){var s=(function(x,I){if(I<x.length+11)throw"Message too long for RSA";for(var P=new Array,C=x.length-1;C>=0&&I>0;){var L=x.charCodeAt(C--);L<128?P[--I]=L:L>127&&L<2048?(P[--I]=63&L|128,P[--I]=L>>6|192):(P[--I]=63&L|128,P[--I]=L>>6&63|128,P[--I]=L>>12|224)}P[--I]=0;for(var U=new lt,Y=new Array;I>2;){for(Y[0]=0;Y[0]==0;)U.nextBytes(Y);P[--I]=Y[0]}return P[--I]=2,P[--I]=0,new K(P)})(r,this.n.bitLength()+7>>3);if(s==null)return null;var l=this.doPublic(s);if(l==null)return null;var g=l.toString(16);return(1&g.length)==0?g:"0"+g},Pe.prototype.encryptOAEP=function(r,s,l){var g=(function(P,C,L,U){var Y=k.crypto.MessageDigest,G=k.crypto.Util,ee=null;if(L||(L="sha1"),typeof L=="string"&&(ee=Y.getCanonicalAlgName(L),U=Y.getHashLength(ee),L=function(he){return rt(G.hashHex(ct(he),ee))}),P.length+2*U+2>C)throw"Message too long for RSA";var re,ne="";for(re=0;re<C-P.length-2*U-2;re+=1)ne+="\0";var A=L("")+ne+"�"+P,z=new Array(U);new lt().nextBytes(z);var B=xt(z,A.length,L),q=[];for(re=0;re<A.length;re+=1)q[re]=A.charCodeAt(re)^B.charCodeAt(re);var te=xt(q,z.length,L),oe=[0];for(re=0;re<z.length;re+=1)oe[re+1]=z[re]^te.charCodeAt(re);return new K(oe.concat(q))})(r,this.n.bitLength()+7>>3,s,l);if(g==null)return null;var _=this.doPublic(g);if(_==null)return null;var x=_.toString(16);return(1&x.length)==0?x:"0"+x},Pe.prototype.type="RSA",tt.prototype.equals=function(r){return r==this||this.q.equals(r.q)&&this.x.equals(r.x)},tt.prototype.toBigInteger=function(){return this.x},tt.prototype.negate=function(){return new tt(this.q,this.x.negate().mod(this.q))},tt.prototype.add=function(r){return new tt(this.q,this.x.add(r.toBigInteger()).mod(this.q))},tt.prototype.subtract=function(r){return new tt(this.q,this.x.subtract(r.toBigInteger()).mod(this.q))},tt.prototype.multiply=function(r){return new tt(this.q,this.x.multiply(r.toBigInteger()).mod(this.q))},tt.prototype.square=function(){return new tt(this.q,this.x.square().mod(this.q))},tt.prototype.divide=function(r){return new tt(this.q,this.x.multiply(r.toBigInteger().modInverse(this.q)).mod(this.q))},Me.prototype.getX=function(){return this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},Me.prototype.getY=function(){return this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},Me.prototype.equals=function(r){return r==this||(this.isInfinity()?r.isInfinity():r.isInfinity()?this.isInfinity():!!r.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(r.z)).mod(this.curve.q).equals(K.ZERO)&&r.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(r.z)).mod(this.curve.q).equals(K.ZERO))},Me.prototype.isInfinity=function(){return this.x==null&&this.y==null||this.z.equals(K.ZERO)&&!this.y.toBigInteger().equals(K.ZERO)},Me.prototype.negate=function(){return new Me(this.curve,this.x,this.y.negate(),this.z)},Me.prototype.add=function(r){if(this.isInfinity())return r;if(r.isInfinity())return this;var s=r.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(r.z)).mod(this.curve.q),l=r.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(r.z)).mod(this.curve.q);if(K.ZERO.equals(l))return K.ZERO.equals(s)?this.twice():this.curve.getInfinity();var g=new K("3"),_=this.x.toBigInteger(),x=this.y.toBigInteger(),I=(r.x.toBigInteger(),r.y.toBigInteger(),l.square()),P=I.multiply(l),C=_.multiply(I),L=s.square().multiply(this.z),U=L.subtract(C.shiftLeft(1)).multiply(r.z).subtract(P).multiply(l).mod(this.curve.q),Y=C.multiply(g).multiply(s).subtract(x.multiply(P)).subtract(L.multiply(s)).multiply(r.z).add(s.multiply(P)).mod(this.curve.q),G=P.multiply(this.z).multiply(r.z).mod(this.curve.q);return new Me(this.curve,this.curve.fromBigInteger(U),this.curve.fromBigInteger(Y),G)},Me.prototype.twice=function(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var r=new K("3"),s=this.x.toBigInteger(),l=this.y.toBigInteger(),g=l.multiply(this.z),_=g.multiply(l).mod(this.curve.q),x=this.curve.a.toBigInteger(),I=s.square().multiply(r);K.ZERO.equals(x)||(I=I.add(this.z.square().multiply(x)));var P=(I=I.mod(this.curve.q)).square().subtract(s.shiftLeft(3).multiply(_)).shiftLeft(1).multiply(g).mod(this.curve.q),C=I.multiply(r).multiply(s).subtract(_.shiftLeft(1)).shiftLeft(2).multiply(_).subtract(I.square().multiply(I)).mod(this.curve.q),L=g.square().multiply(g).shiftLeft(3).mod(this.curve.q);return new Me(this.curve,this.curve.fromBigInteger(P),this.curve.fromBigInteger(C),L)},Me.prototype.multiply=function(r){if(this.isInfinity())return this;if(r.signum()==0)return this.curve.getInfinity();var s,l=r,g=l.multiply(new K("3")),_=this.negate(),x=this,I=this.curve.q.subtract(r),P=I.multiply(new K("3")),C=new Me(this.curve,this.x,this.y),L=C.negate();for(s=g.bitLength()-2;s>0;--s){x=x.twice();var U=g.testBit(s);U!=l.testBit(s)&&(x=x.add(U?this:_))}for(s=P.bitLength()-2;s>0;--s){C=C.twice();var Y=P.testBit(s);Y!=I.testBit(s)&&(C=C.add(Y?C:L))}return x},Me.prototype.multiplyTwo=function(r,s,l){var g;g=r.bitLength()>l.bitLength()?r.bitLength()-1:l.bitLength()-1;for(var _=this.curve.getInfinity(),x=this.add(s);g>=0;)_=_.twice(),r.testBit(g)?_=l.testBit(g)?_.add(x):_.add(this):l.testBit(g)&&(_=_.add(s)),--g;return _},Bt.prototype.getQ=function(){return this.q},Bt.prototype.getA=function(){return this.a},Bt.prototype.getB=function(){return this.b},Bt.prototype.equals=function(r){return r==this||this.q.equals(r.q)&&this.a.equals(r.a)&&this.b.equals(r.b)},Bt.prototype.getInfinity=function(){return this.infinity},Bt.prototype.fromBigInteger=function(r){return new tt(this.q,r)},Bt.prototype.decodePointHex=function(r){switch(parseInt(r.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var s=(r.length-2)/2,l=r.substr(2,s),g=r.substr(s+2,s);return new Me(this,this.fromBigInteger(new K(l,16)),this.fromBigInteger(new K(g,16)));default:return null}},tt.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},Me.prototype.getEncoded=function(n){var r=function(x,I){var P=x.toByteArrayUnsigned();if(I<P.length)P=P.slice(P.length-I);else for(;I>P.length;)P.unshift(0);return P},s=this.getX().toBigInteger(),l=this.getY().toBigInteger(),g=r(s,32);return n?l.isEven()?g.unshift(2):g.unshift(3):(g.unshift(4),g=g.concat(r(l,32))),g},Me.decodeFrom=function(n,r){r[0];var s=r.length-1,l=r.slice(1,1+s/2),g=r.slice(1+s/2,1+s);l.unshift(0),g.unshift(0);var _=new K(l),x=new K(g);return new Me(n,n.fromBigInteger(_),n.fromBigInteger(x))},Me.decodeFromHex=function(n,r){r.substr(0,2);var s=r.length-2,l=r.substr(2,s/2),g=r.substr(2+s/2,s/2),_=new K(l,16),x=new K(g,16);return new Me(n,n.fromBigInteger(_),n.fromBigInteger(x))},Me.prototype.add2D=function(n){if(this.isInfinity())return n;if(n.isInfinity())return this;if(this.x.equals(n.x))return this.y.equals(n.y)?this.twice():this.curve.getInfinity();var r=n.x.subtract(this.x),s=n.y.subtract(this.y).divide(r),l=s.square().subtract(this.x).subtract(n.x),g=s.multiply(this.x.subtract(l)).subtract(this.y);return new Me(this.curve,l,g)},Me.prototype.twice2D=function(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var n=this.curve.fromBigInteger(K.valueOf(2)),r=this.curve.fromBigInteger(K.valueOf(3)),s=this.x.square().multiply(r).add(this.curve.a).divide(this.y.multiply(n)),l=s.square().subtract(this.x.multiply(n)),g=s.multiply(this.x.subtract(l)).subtract(this.y);return new Me(this.curve,l,g)},Me.prototype.multiply2D=function(n){if(this.isInfinity())return this;if(n.signum()==0)return this.curve.getInfinity();var r,s=n,l=s.multiply(new K("3")),g=this.negate(),_=this;for(r=l.bitLength()-2;r>0;--r){_=_.twice();var x=l.testBit(r);x!=s.testBit(r)&&(_=_.add2D(x?this:g))}return _},Me.prototype.isOnCurve=function(){var n=this.getX().toBigInteger(),r=this.getY().toBigInteger(),s=this.curve.getA
19().toBigInteger(),l=this.curve.getB().toBigInteger(),g=this.curve.getQ(),_=r.multiply(r).mod(g),x=n.multiply(n).multiply(n).add(s.multiply(n)).add(l).mod(g);return _.equals(x)},Me.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},Me.prototype.validate=function(){var n=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var r=this.getX().toBigInteger(),s=this.getY().toBigInteger();if(r.compareTo(K.ONE)<0||r.compareTo(n.subtract(K.ONE))>0)throw new Error("x coordinate out of bounds");if(s.compareTo(K.ONE)<0||s.compareTo(n.subtract(K.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(n).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};/*! Mike Samuel (c) 2009 | code.google.com/p/json-sans-eval 20 */var Ur=(function(){var n=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),r=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),s={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:` 21`,r:"\r",t:" "};function l(x,I,P){return I?s[I]:String.fromCharCode(parseInt(P,16))}var g=new String(""),_=Object.hasOwnProperty;return function(x,I){var P,C,L=x.match(n),U=L[0],Y=!1;U==="{"?P={}:U==="["?P=[]:(P=[],Y=!0);for(var G=[P],ee=1-Y,re=L.length;ee<re;++ee){var ne;switch((U=L[ee]).charCodeAt(0)){default:(ne=G[0])[C||ne.length]=+U,C=void 0;break;case 34:if((U=U.substring(1,U.length-1)).indexOf("\\")!==-1&&(U=U.replace(r,l)),ne=G[0],!C){if(!(ne instanceof Array)){C=U||g;break}C=ne.length}ne[C]=U,C=void 0;break;case 91:ne=G[0],G.unshift(ne[C||ne.length]=[]),C=void 0;break;case 93:G.shift();break;case 102:(ne=G[0])[C||ne.length]=!1,C=void 0;break;case 110:(ne=G[0])[C||ne.length]=null,C=void 0;break;case 116:(ne=G[0])[C||ne.length]=!0,C=void 0;break;case 123:ne=G[0],G.unshift(ne[C||ne.length]={}),C=void 0;break;case 125:G.shift()}}if(Y){if(G.length!==1)throw new Error;P=P[0]}else if(G.length)throw new Error;return I&&(P=(function A(z,B){var q=z[B];if(q&&(q===void 0?"undefined":u(q))==="object"){var te=null;for(var oe in q)if(_.call(q,oe)&&q!==z){var Fe=A(q,oe);Fe!==void 0?q[oe]=Fe:(te||(te=[]),te.push(oe))}if(te)for(var he=te.length;--he>=0;)delete q[te[he]]}return I.call(z,B,q)})({"":P},"")),P}})();k!==void 0&&k||(i.KJUR=k={}),k.asn1!==void 0&&k.asn1||(k.asn1={}),k.asn1.ASN1Util=new function(){this.integerToByteHex=function(n){var r=n.toString(16);return r.length%2==1&&(r="0"+r),r},this.bigIntToMinTwosComplementsHex=function(n){var r=n.toString(16);if(r.substr(0,1)!="-")r.length%2==1?r="0"+r:r.match(/^[0-7]/)||(r="00"+r);else{var s=r.substr(1).length;s%2==1?s+=1:r.match(/^[0-7]/)||(s+=2);for(var l="",g=0;g<s;g++)l+="f";r=new K(l,16).xor(n).add(K.ONE).toString(16).replace(/^-/,"")}return r},this.getPEMStringFromHex=function(n,r){return It(n,r)},this.newObject=function(n){var r=k.asn1,s=r.ASN1Object,l=r.DERBoolean,g=r.DERInteger,_=r.DERBitString,x=r.DEROctetString,I=r.DERNull,P=r.DERObjectIdentifier,C=r.DEREnumerated,L=r.DERUTF8String,U=r.DERNumericString,Y=r.DERPrintableString,G=r.DERTeletexString,ee=r.DERIA5String,re=r.DERUTCTime,ne=r.DERGeneralizedTime,A=r.DERVisibleString,z=r.DERBMPString,B=r.DERSequence,q=r.DERSet,te=r.DERTaggedObject,oe=r.ASN1Util.newObject;if(n instanceof r.ASN1Object)return n;var Fe=Object.keys(n);if(Fe.length!=1)throw new Error("key of param shall be only one.");var he=Fe[0];if(":asn1:bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:visstr:bmpstr:seq:set:tag:".indexOf(":"+he+":")==-1)throw new Error("undefined key: "+he);if(he=="bool")return new l(n[he]);if(he=="int")return new g(n[he]);if(he=="bitstr")return new _(n[he]);if(he=="octstr")return new x(n[he]);if(he=="null")return new I(n[he]);if(he=="oid")return new P(n[he]);if(he=="enum")return new C(n[he]);if(he=="utf8str")return new L(n[he]);if(he=="numstr")return new U(n[he]);if(he=="prnstr")return new Y(n[he]);if(he=="telstr")return new G(n[he]);if(he=="ia5str")return new ee(n[he]);if(he=="utctime")return new re(n[he]);if(he=="gentime")return new ne(n[he]);if(he=="visstr")return new A(n[he]);if(he=="bmpstr")return new z(n[he]);if(he=="asn1")return new s(n[he]);if(he=="seq"){for(var Ne=n[he],we=[],Te=0;Te<Ne.length;Te++){var nt=oe(Ne[Te]);we.push(nt)}return new B({array:we})}if(he=="set"){for(Ne=n[he],we=[],Te=0;Te<Ne.length;Te++)nt=oe(Ne[Te]),we.push(nt);return new q({array:we})}if(he=="tag"){var dt=n[he];if(Object.prototype.toString.call(dt)==="[object Array]"&&dt.length==3){var ot=oe(dt[2]);return new te({tag:dt[0],explicit:dt[1],obj:ot})}return new te(dt)}},this.jsonToASN1HEX=function(n){return this.newObject(n).getEncodedHex()}},k.asn1.ASN1Util.oidHexToInt=function(n){for(var r="",s=parseInt(n.substr(0,2),16),l=(r=Math.floor(s/40)+"."+s%40,""),g=2;g<n.length;g+=2){var _=("00000000"+parseInt(n.substr(g,2),16).toString(2)).slice(-8);l+=_.substr(1,7),_.substr(0,1)=="0"&&(r=r+"."+new K(l,2).toString(10),l="")}return r},k.asn1.ASN1Util.oidIntToHex=function(n){var r=function(P){var C=P.toString(16);return C.length==1&&(C="0"+C),C},s=function(P){var C="",L=new K(P,10).toString(2),U=7-L.length%7;U==7&&(U=0);for(var Y="",G=0;G<U;G++)Y+="0";for(L=Y+L,G=0;G<L.length-1;G+=7){var ee=L.substr(G,7);G!=L.length-7&&(ee="1"+ee),C+=r(parseInt(ee,2))}return C};if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var l="",g=n.split("."),_=40*parseInt(g[0])+parseInt(g[1]);l+=r(_),g.splice(0,2);for(var x=0;x<g.length;x++)l+=s(g[x]);return l},k.asn1.ASN1Object=function(n){this.params=null,this.getLengthHexFromValue=function(){if(this.hV===void 0||this.hV==null)throw new Error("this.hV is null or undefined");if(this.hV.length%2==1)throw new Error("value hex must be even length: n=0,v="+this.hV);var r=this.hV.length/2,s=r.toString(16);if(s.length%2==1&&(s="0"+s),r<128)return s;var l=s.length/2;if(l>15)throw"ASN.1 length too long to represent by 8x: n = "+r.toString(16);return(128+l).toString(16)+s},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""},this.setByParam=function(r){this.params=r},n!=null&&n.tlv!=null&&(this.hTLV=n.tlv,this.isModified=!1)},k.asn1.DERAbstractString=function(n){k.asn1.DERAbstractString.superclass.constructor.call(this),this.get
21String=function(){return this.s},this.setString=function(r){this.hTLV=null,this.isModified=!0,this.s=r,this.hV=gt(this.s).toLowerCase()},this.setStringHex=function(r){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.getFreshValueHex=function(){return this.hV},n!==void 0&&(typeof n=="string"?this.setString(n):n.str!==void 0?this.setString(n.str):n.hex!==void 0&&this.setStringHex(n.hex))},d.lang.extend(k.asn1.DERAbstractString,k.asn1.ASN1Object),k.asn1.DERAbstractTime=function(n){k.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(r){var s=r.getTime()+6e4*r.getTimezoneOffset();return new Date(s)},this.formatDate=function(r,s,l){var g=this.zeroPadding,_=this.localDateToUTC(r),x=String(_.getFullYear());s=="utc"&&(x=x.substr(2,2));var I=x+g(String(_.getMonth()+1),2)+g(String(_.getDate()),2)+g(String(_.getHours()),2)+g(String(_.getMinutes()),2)+g(String(_.getSeconds()),2);if(l===!0){var P=_.getMilliseconds();if(P!=0){var C=g(String(P),3);I=I+"."+(C=C.replace(/[0]+$/,""))}}return I+"Z"},this.zeroPadding=function(r,s){return r.length>=s?r:new Array(s-r.length+1).join("0")+r},this.getString=function(){return this.s},this.setString=function(r){this.hTLV=null,this.isModified=!0,this.s=r,this.hV=me(r)},this.setByDateValue=function(r,s,l,g,_,x){var I=new Date(Date.UTC(r,s-1,l,g,_,x,0));this.setByDate(I)},this.getFreshValueHex=function(){return this.hV}},d.lang.extend(k.asn1.DERAbstractTime,k.asn1.ASN1Object),k.asn1.DERAbstractStructured=function(n){k.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(r){this.hTLV=null,this.isModified=!0,this.asn1Array=r},this.appendASN1Object=function(r){this.hTLV=null,this.isModified=!0,this.asn1Array.push(r)},this.asn1Array=new Array,n!==void 0&&n.array!==void 0&&(this.asn1Array=n.array)},d.lang.extend(k.asn1.DERAbstractStructured,k.asn1.ASN1Object),k.asn1.DERBoolean=function(n){k.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV=n==0?"010100":"0101ff"},d.lang.extend(k.asn1.DERBoolean,k.asn1.ASN1Object),k.asn1.DERInteger=function(n){k.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(r){this.hTLV=null,this.isModified=!0,this.hV=k.asn1.ASN1Util.bigIntToMinTwosComplementsHex(r)},this.setByInteger=function(r){var s=new K(String(r),10);this.setByBigInteger(s)},this.setValueHex=function(r){this.hV=r},this.getFreshValueHex=function(){return this.hV},n!==void 0&&(n.bigint!==void 0?this.setByBigInteger(n.bigint):n.int!==void 0?this.setByInteger(n.int):typeof n=="number"?this.setByInteger(n):n.hex!==void 0&&this.setValueHex(n.hex))},d.lang.extend(k.asn1.DERInteger,k.asn1.ASN1Object),k.asn1.DERBitString=function(n){if(n!==void 0&&n.obj!==void 0){var r=k.asn1.ASN1Util.newObject(n.obj);n.hex="00"+r.getEncodedHex()}k.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(s){this.hTLV=null,this.isModified=!0,this.hV=s},this.setUnusedBitsAndHexValue=function(s,l){if(s<0||7<s)throw"unused bits shall be from 0 to 7: u = "+s;var g="0"+s;this.hTLV=null,this.isModified=!0,this.hV=g+l},this.setByBinaryString=function(s){var l=8-(s=s.replace(/0+$/,"")).length%8;l==8&&(l=0);for(var g=0;g<=l;g++)s+="0";var _="";for(g=0;g<s.length-1;g+=8){var x=s.substr(g,8),I=parseInt(x,2).toString(16);I.length==1&&(I="0"+I),_+=I}this.hTLV=null,this.isModified=!0,this.hV="0"+l+_},this.setByBooleanArray=function(s){for(var l="",g=0;g<s.length;g++)s[g]==1?l+="1":l+="0";this.setByBinaryString(l)},this.newFalseArray=function(s){for(var l=new Array(s),g=0;g<s;g++)l[g]=!1;return l},this.getFreshValueHex=function(){return this.hV},n!==void 0&&(typeof n=="string"&&n.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(n):n.hex!==void 0?this.setHexValueIncludingUnusedBits(n.hex):n.bin!==void 0?this.setByBinaryString(n.bin):n.array!==void 0&&this.setByBooleanArray(n.array))},d.lang.extend(k.asn1.DERBitString,k.asn1.ASN1Object),k.asn1.DEROctetString=function(n){if(n!==void 0&&n.obj!==void 0){var r=k.asn1.ASN1Util.newObject(n.obj);n.hex=r.getEncodedHex()}k.asn1.DEROctetString.superclass.constructor.call(this,n),this.hT="04"},d.lang.extend(k.asn1.DEROctetString,k.asn1.DERAbstractString),k.asn1.DERNull=function(){k.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},d.lang.extend(k.asn1.DERNull,k.asn1.ASN1Object),k.asn1.DERObjectIdentifier=function(n){k.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(r){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueOidString=function(r){var s=(function(g){var _=function(Y){var G=Y.toString(16);return G.length==1&&(G="0"+G),G},x=function(Y){var G="",ee=parseInt(Y,10).toString(2),re=7-ee.length%7;re==7&&(re=0);for(var ne="",A=0;A<re;A++)ne+="0";for(ee=ne+ee,A=0;A<ee.length-1;A+=7){var z=ee.substr(A,7);
21A!=ee.length-7&&(z="1"+z),G+=_(parseInt(z,2))}return G};try{if(!g.match(/^[0-9.]+$/))return null;var I="",P=g.split("."),C=40*parseInt(P[0],10)+parseInt(P[1],10);I+=_(C),P.splice(0,2);for(var L=0;L<P.length;L++)I+=x(P[L]);return I}catch{return null}})(r);if(s==null)throw new Error("malformed oid string: "+r);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=s},this.setValueName=function(r){var s=k.asn1.x509.OID.name2oid(r);if(s==="")throw new Error("DERObjectIdentifier oidName undefined: "+r);this.setValueOidString(s)},this.setValueNameOrOid=function(r){r.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(r):this.setValueName(r)},this.getFreshValueHex=function(){return this.hV},this.setByParam=function(r){typeof r=="string"?this.setValueNameOrOid(r):r.oid!==void 0?this.setValueNameOrOid(r.oid):r.name!==void 0?this.setValueNameOrOid(r.name):r.hex!==void 0&&this.setValueHex(r.hex)},n!==void 0&&this.setByParam(n)},d.lang.extend(k.asn1.DERObjectIdentifier,k.asn1.ASN1Object),k.asn1.DEREnumerated=function(n){k.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(r){this.hTLV=null,this.isModified=!0,this.hV=k.asn1.ASN1Util.bigIntToMinTwosComplementsHex(r)},this.setByInteger=function(r){var s=new K(String(r),10);this.setByBigInteger(s)},this.setValueHex=function(r){this.hV=r},this.getFreshValueHex=function(){return this.hV},n!==void 0&&(n.int!==void 0?this.setByInteger(n.int):typeof n=="number"?this.setByInteger(n):n.hex!==void 0&&this.setValueHex(n.hex))},d.lang.extend(k.asn1.DEREnumerated,k.asn1.ASN1Object),k.asn1.DERUTF8String=function(n){k.asn1.DERUTF8String.superclass.constructor.call(this,n),this.hT="0c"},d.lang.extend(k.asn1.DERUTF8String,k.asn1.DERAbstractString),k.asn1.DERNumericString=function(n){k.asn1.DERNumericString.superclass.constructor.call(this,n),this.hT="12"},d.lang.extend(k.asn1.DERNumericString,k.asn1.DERAbstractString),k.asn1.DERPrintableString=function(n){k.asn1.DERPrintableString.superclass.constructor.call(this,n),this.hT="13"},d.lang.extend(k.asn1.DERPrintableString,k.asn1.DERAbstractString),k.asn1.DERTeletexString=function(n){k.asn1.DERTeletexString.superclass.constructor.call(this,n),this.hT="14"},d.lang.extend(k.asn1.DERTeletexString,k.asn1.DERAbstractString),k.asn1.DERIA5String=function(n){k.asn1.DERIA5String.superclass.constructor.call(this,n),this.hT="16"},d.lang.extend(k.asn1.DERIA5String,k.asn1.DERAbstractString),k.asn1.DERVisibleString=function(n){k.asn1.DERIA5String.superclass.constructor.call(this,n),this.hT="1a"},d.lang.extend(k.asn1.DERVisibleString,k.asn1.DERAbstractString),k.asn1.DERBMPString=function(n){k.asn1.DERBMPString.superclass.constructor.call(this,n),this.hT="1e"},d.lang.extend(k.asn1.DERBMPString,k.asn1.DERAbstractString),k.asn1.DERUTCTime=function(n){k.asn1.DERUTCTime.superclass.constructor.call(this,n),this.hT="17",this.setByDate=function(r){this.hTLV=null,this.isModified=!0,this.date=r,this.s=this.formatDate(this.date,"utc"),this.hV=me(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=me(this.s)),this.hV},n!==void 0&&(n.str!==void 0?this.setString(n.str):typeof n=="string"&&n.match(/^[0-9]{12}Z$/)?this.setString(n):n.hex!==void 0?this.setStringHex(n.hex):n.date!==void 0&&this.setByDate(n.date))},d.lang.extend(k.asn1.DERUTCTime,k.asn1.DERAbstractTime),k.asn1.DERGeneralizedTime=function(n){k.asn1.DERGeneralizedTime.superclass.constructor.call(this,n),this.hT="18",this.withMillis=!1,this.setByDate=function(r){this.hTLV=null,this.isModified=!0,this.date=r,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=me(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=me(this.s)),this.hV},n!==void 0&&(n.str!==void 0?this.setString(n.str):typeof n=="string"&&n.match(/^[0-9]{14}Z$/)?this.setString(n):n.hex!==void 0?this.setStringHex(n.hex):n.date!==void 0&&this.setByDate(n.date),n.millis===!0&&(this.withMillis=!0))},d.lang.extend(k.asn1.DERGeneralizedTime,k.asn1.DERAbstractTime),k.asn1.DERSequence=function(n){k.asn1.DERSequence.superclass.constructor.call(this,n),this.hT="30",this.getFreshValueHex=function(){for(var r="",s=0;s<this.asn1Array.length;s++)r+=this.asn1Array[s].getEncodedHex();return this.hV=r,this.hV}},d.lang.extend(k.asn1.DERSequence,k.asn1.DERAbstractStructured),k.asn1.DERSet=function(n){k.asn1.DERSet.superclass.constructor.call(this,n),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var r=new Array,s=0;s<this.asn1Array.length;s++){var l=this.asn1Array[s];r.push(l.getEncodedHex())}return this.sortFlag==1&&r.sort(),this.hV=r.join(""),this.hV},n!==void 0&&n.sortflag!==void 0&&n.sortflag==0&&(this.sortFlag=!1)},d.lang.extend(k.asn1.DERSet,k.asn1.DERAbstractStructured),k.asn1.DERTaggedObject=function(n){k.asn1.DERTaggedObject.
21superclass.constructor.call(this);var r=k.asn1;this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(s,l,g){this.hT=l,this.isExplicit=s,this.asn1Object=g,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=g.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,l),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},this.setByParam=function(s){s.tag!=null&&(this.hT=s.tag),s.explicit!=null&&(this.isExplicit=s.explicit),s.tage!=null&&(this.hT=s.tage,this.isExplicit=!0),s.tagi!=null&&(this.hT=s.tagi,this.isExplicit=!1),s.obj!=null&&(s.obj instanceof r.ASN1Object?(this.asn1Object=s.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)):u(s.obj)=="object"&&(this.asn1Object=r.ASN1Util.newObject(s.obj),this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},n!=null&&this.setByParam(n)},d.lang.extend(k.asn1.DERTaggedObject,k.asn1.ASN1Object);var k,kr,Ut,ye=new function(){};function vi(n){for(var r=new Array,s=0;s<n.length;s++)r[s]=n.charCodeAt(s);return r}function en(n){for(var r="",s=0;s<n.length;s++)r+=String.fromCharCode(n[s]);return r}function wr(n){for(var r="",s=0;s<n.length;s++){var l=n[s].toString(16);l.length==1&&(l="0"+l),r+=l}return r}function me(n){return wr(vi(n))}function Ae(n){return n=(n=(n=n.replace(/\=/g,"")).replace(/\+/g,"-")).replace(/\//g,"_")}function Oe(n){return n.length%4==2?n+="==":n.length%4==3&&(n+="="),n=(n=n.replace(/-/g,"+")).replace(/_/g,"/")}function Re(n){return n.length%2==1&&(n="0"+n),Ae(le(n))}function ke(n){return de(Oe(n))}function gt(n){return En(xn(n))}function Ze(n){return decodeURIComponent(Fn(n))}function rt(n){for(var r="",s=0;s<n.length-1;s+=2)r+=String.fromCharCode(parseInt(n.substr(s,2),16));return r}function ct(n){for(var r="",s=0;s<n.length;s++)r+=("0"+n.charCodeAt(s).toString(16)).slice(-2);return r}function Mt(n){return le(n)}function Pr(n){var r=Mt(n).replace(/(.{64})/g,`$1\r 22`);return r=r.replace(/\r\n$/,"")}function To(n){return de(n.replace(/[^0-9A-Za-z\/+=]*/g,""))}function It(n,r){return"-----BEGIN "+r+`-----\r 23`+Pr(n)+`\r 24-----END `+r+`-----\r 25`}function tr(n,r){if(n.indexOf("-----BEGIN ")==-1)throw"can't find PEM header: "+r;return To(n=r!==void 0?(n=n.replace(new RegExp("^[^]*-----BEGIN "+r+"-----"),"")).replace(new RegExp("-----END "+r+"-----[^]*$"),""):(n=n.replace(/^[^]*-----BEGIN [^-]+-----/,"")).replace(/-----END [^-]+-----[^]*$/,""))}function mi(n){var r,s,l,g,_,x,I,P,C,L,U;if(U=n.match(/^(\d{2}|\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(|\.\d+)Z$/))return P=U[1],r=parseInt(P),P.length===2&&(50<=r&&r<100?r=1900+r:0<=r&&r<50&&(r=2e3+r)),s=parseInt(U[2])-1,l=parseInt(U[3]),g=parseInt(U[4]),_=parseInt(U[5]),x=parseInt(U[6]),I=0,(C=U[7])!==""&&(L=(C.substr(1)+"00").substr(0,3),I=parseInt(L)),Date.UTC(r,s,l,g,_,x,I);throw"unsupported zulu format: "+n}function Do(n){return~~(mi(n)/1e3)}function En(n){return n.replace(/%/g,"")}function Fn(n){return n.replace(/(..)/g,"%$1")}function Ro(n){var r="malformed IPv6 address";if(!n.match(/^[0-9A-Fa-f:]+$/))throw r;var s=(n=n.toLowerCase()).split(":").length-1;if(s<2)throw r;var l=":".repeat(7-s+2),g=(n=n.replace("::",l)).split(":");if(g.length!=8)throw r;for(var _=0;_<8;_++)g[_]=("0000"+g[_]).slice(-4);return g.join("")}function Co(n){if(!n.match(/^[0-9A-Fa-f]{32}$/))throw"malformed IPv6 address octet";for(var r=(n=n.toLowerCase()).match(/.{1,4}/g),s=0;s<8;s++)r[s]=r[s].replace(/^0+/,""),r[s]==""&&(r[s]="0");var l=(n=":"+r.join(":")+":").match(/:(0:){2,}/g);if(l===null)return n.slice(1,-1);var g="";for(s=0;s<l.length;s++)l[s].length>g.length&&(g=l[s]);return(n=n.replace(g,"::")).slice(1,-1)}function yi(n){var r="malformed hex value";if(!n.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw r;if(n.length!=8)return n.length==32?Co(n):n;try{return parseInt(n.substr(0,2),16)+"."+parseInt(n.substr(2,2),16)+"."+parseInt(n.substr(4,2),16)+"."+parseInt(n.substr(6,2),16)}catch{throw r}}function xn(n){for(var r=encodeURIComponent(n),s="",l=0;l<r.length;l++)r[l]=="%"?(s+=r.substr(l,3),l+=2):s=s+"%"+me(r[l]);return s}function Io(n){return!(n.length%2!=0||!n.match(/^[0-9a-f]+$/)&&!n.match(/^[0-9A-F]+$/))}function _i(n){return n.length%2==1?"0"+n:n.substr(0,1)>"7"?"00"+n:n}ye.getLblen=function(n,r){if(n.substr(r+2,1)!="8")return 1;var s=parseInt(n.substr(r+3,1));return s==0?-1:0<s&&s<10?s+1:-2},ye.getL=function(n,r){var s=ye.getLblen(n,r);return s<1?"":n.substr(r+2,2*s)},ye.getVblen=function(n,r){var s;
25return(s=ye.getL(n,r))==""?-1:(s.substr(0,1)==="8"?new K(s.substr(2),16):new K(s,16)).intValue()},ye.getVidx=function(n,r){var s=ye.getLblen(n,r);return s<0?s:r+2*(s+1)},ye.getV=function(n,r){var s=ye.getVidx(n,r),l=ye.getVblen(n,r);return n.substr(s,2*l)},ye.getTLV=function(n,r){return n.substr(r,2)+ye.getL(n,r)+ye.getV(n,r)},ye.getTLVblen=function(n,r){return 2+2*ye.getLblen(n,r)+2*ye.getVblen(n,r)},ye.getNextSiblingIdx=function(n,r){return ye.getVidx(n,r)+2*ye.getVblen(n,r)},ye.getChildIdx=function(n,r){var s,l,g,_=ye,x=[];s=_.getVidx(n,r),l=2*_.getVblen(n,r),n.substr(r,2)=="03"&&(s+=2,l-=2),g=0;for(var I=s;g<=l;){var P=_.getTLVblen(n,I);if((g+=P)<=l&&x.push(I),I+=P,g>=l)break}return x},ye.getNthChildIdx=function(n,r,s){return ye.getChildIdx(n,r)[s]},ye.getIdxbyList=function(n,r,s,l){var g,_,x=ye;return s.length==0?l!==void 0&&n.substr(r,2)!==l?-1:r:(g=s.shift())>=(_=x.getChildIdx(n,r)).length?-1:x.getIdxbyList(n,_[g],s,l)},ye.getIdxbyListEx=function(n,r,s,l){var g,_,x=ye;if(s.length==0)return l!==void 0&&n.substr(r,2)!==l?-1:r;g=s.shift(),_=x.getChildIdx(n,r);for(var I=0,P=0;P<_.length;P++){var C=n.substr(_[P],2);if(typeof g=="number"&&!x.isContextTag(C)&&I==g||typeof g=="string"&&x.isContextTag(C,g))return x.getIdxbyListEx(n,_[P],s,l);x.isContextTag(C)||I++}return-1},ye.getTLVbyList=function(n,r,s,l){var g=ye,_=g.getIdxbyList(n,r,s,l);return _==-1||_>=n.length?null:g.getTLV(n,_)},ye.getTLVbyListEx=function(n,r,s,l){var g=ye,_=g.getIdxbyListEx(n,r,s,l);return _==-1?null:g.getTLV(n,_)},ye.getVbyList=function(n,r,s,l,g){var _,x,I=ye;return(_=I.getIdxbyList(n,r,s,l))==-1||_>=n.length?null:(x=I.getV(n,_),g===!0&&(x=x.substr(2)),x)},ye.getVbyListEx=function(n,r,s,l,g){var _,x,I=ye;return(_=I.getIdxbyListEx(n,r,s,l))==-1?null:(x=I.getV(n,_),n.substr(_,2)=="03"&&g!==!1&&(x=x.substr(2)),x)},ye.getInt=function(n,r,s){s==null&&(s=-1);try{var l=n.substr(r,2);if(l!="02"&&l!="03")return s;var g=ye.getV(n,r);return l=="02"?parseInt(g,16):(function(x){try{var I=x.substr(0,2);if(I=="00")return parseInt(x.substr(2),16);var P=parseInt(I,16),C=x.substr(2),L=parseInt(C,16).toString(2);return L=="0"&&(L="00000000"),L=L.slice(0,0-P),parseInt(L,2)}catch{return-1}})(g)}catch{return s}},ye.getOID=function(n,r,s){s==null&&(s=null);try{return n.substr(r,2)!="06"?s:(function(g){if(!Io(g))return null;try{var _=[],x=g.substr(0,2),I=parseInt(x,16);_[0]=new String(Math.floor(I/40)),_[1]=new String(I%40);for(var P=g.substr(2),C=[],L=0;L<P.length/2;L++)C.push(parseInt(P.substr(2*L,2),16));var U=[],Y="";for(L=0;L<C.length;L++)128&C[L]?Y+=Oo((127&C[L]).toString(2),7):(Y+=Oo((127&C[L]).toString(2),7),U.push(new String(parseInt(Y,2))),Y="");var G=_.join(".");return U.length>0&&(G=G+"."+U.join(".")),G}catch{return null}})(ye.getV(n,r))}catch{return s}},ye.getOIDName=function(n,r,s){s==null&&(s=null);try{var l=ye.getOID(n,r,s);if(l==s)return s;var g=k.asn1.x509.OID.oid2name(l);return g==""?l:g}catch{return s}},ye.getString=function(n,r,s){s==null&&(s=null);try{return rt(ye.getV(n,r))}catch{return s}},ye.hextooidstr=function(n){var r=function(Y,G){return Y.length>=G?Y:new Array(G-Y.length+1).join("0")+Y},s=[],l=n.substr(0,2),g=parseInt(l,16);s[0]=new String(Math.floor(g/40)),s[1]=new String(g%40);for(var _=n.substr(2),x=[],I=0;I<_.length/2;I++)x.push(parseInt(_.substr(2*I,2),16));var P=[],C="";for(I=0;I<x.length;I++)128&x[I]?C+=r((127&x[I]).toString(2),7):(C+=r((127&x[I]).toString(2),7),P.push(new String(parseInt(C,2))),C="");var L=s.join(".");return P.length>0&&(L=L+"."+P.join(".")),L},ye.dump=function(n,r,s,l){var g=ye,_=g.getV,x=g.dump,I=g.getChildIdx,P=n;n instanceof k.asn1.ASN1Object&&(P=n.getEncodedHex());var C=function(he,Ne){return he.length<=2*Ne?he:he.substr(0,Ne)+"..(total "+he.length/2+"bytes).."+he.substr(he.length-Ne,Ne)};r===void 0&&(r={ommit_long_octet:32}),s===void 0&&(s=0),l===void 0&&(l="");var L,U=r.ommit_long_octet;if((L=P.substr(s,2))=="01")return(Y=_(P,s))=="00"?l+`BOOLEAN FALSE 26`:l+`BOOLEAN TRUE 27`;if(L=="02")return l+"INTEGER "+C(Y=_(P,s),U)+` 28`;if(L=="03"){var Y=_(P,s);if(g.isASN1HEX(Y.substr(2))){var G=l+`BITSTRING, encapsulates 29`;return G+=x(Y.substr(2),r,0,l+" ")}return l+"BITSTRING "+C(Y,U)+` 30`}if(L=="04")return Y=_(P,s),g.isASN1HEX(Y)?(G=l+`OCTETSTRING, encapsulates 31`,G+=x(Y,r,0,l+" ")):l+"OCTETSTRING "+C(Y,U)+` 32`;if(L=="05")return l+`NULL 33`;if(L=="06"){var ee=_(P,s),re=k.asn1.ASN1Util.oidHexToInt(ee),ne=k.asn1.x509.OID.oid2name(re),A=re.replace(/\./g," ");return ne!=""?l+"ObjectIdentifier "+ne+" ("+A+`) 34`:l+"ObjectIdentifier ("+A+`) 35`}if(L=="0a")return l+"ENUMERATED "+parseInt(_(P,s))+` 36`;if(L=="0c")return l+"UTF8String '"+Ze(_(P,s))+`' 37`;if(L=="13")return l+"PrintableString '"+Ze(_(P,s))+`' 38`;if(L=="14")return l+"TeletexString '"+Ze(_(P,s))+`' 39`;if(L=="16")return l+"IA5String '"+Ze(_(P,s))+`' 40`;if(L=="17")return l+"UTCTime "+Ze(_(P,s))+` 41`;if(L=="18")return l+"GeneralizedTime "+Ze(_(P,s))+` 42`;if(L=="1a")return l+"VisualString '"+Ze(_(P,s))+`' 43`;if(L=="1e")return l+"BMPString '"+Ze(_(P,s))+`' 44`;if(L=="30"){if(P.substr(s,4)=="3000")return l+`SEQUENCE {} 45`;G=l+`SEQUENCE 46`;var z=r;if(((te=I(P,s)).length==2||te.length==3)&&P.substr(te[0],2)=="06"&&P.substr(te[te.length-1],2)=="04"){ne=g.oidname(_(P,te[0]));var B=JSON.parse(JSON.stringify(r));B.x509ExtName=ne,z=B}for(var q=0;q<te.length;q++)G+=x(P,z,te[q],l+" ");return G}if(L=="31"){G=l+`SET 47`;var te=I(P,s);for(q=0;q<te.length;q++)G+=x(P,r,te[q],l+" ");return G}if((128&(L=parseInt(L,16)))!=0){var oe=31&L;if((32&L)!=0){for(G=l+"["+oe+`] 48`,te=I(P,s),q=0;q<te.length;q++)G+=x(P,r,te[q],l+" ");return G}if(Y=_(P,s),ye.isASN1HEX(Y)){var G=l+"["+oe+`] 49`;return G+=x(Y,r,0,l+" ")}return(Y.substr(0,8)=="68747470"||r.x509ExtName==="subjectAltName"&&oe==2)&&(Y=Ze(Y)),G=l+"["+oe+"] "+Y+` 50`}return l+"UNKNOWN("+L+") "+_(P,s)+` 51`},ye.isContextTag=function(n,r){var s,l;n=n.toLowerCase();try{s=parseInt(n,16)}catch{return-1}if(r===void 0)return(192&s)==128;try{return r.match(/^\[[0-9]+\]$/)!=null&&!((l=parseInt(r.substr(1,r.length-1),10))>31)&&(192&s)==128&&(31&s)==l}catch{return!1}},ye.isASN1HEX=function(n){var r=ye;if(n.length%2==1)return!1;var s=r.getVblen(n,0),l=n.substr(0,2),g=r.getL(n,0);return n.length-l.length-g.length==2*s},ye.checkStrictDER=function(n,r,s,l,g){var _=ye;
51if(s===void 0){if(typeof n!="string")throw new Error("not hex string");if(n=n.toLowerCase(),!k.lang.String.isHex(n))throw new Error("not hex string");s=n.length,g=(l=n.length/2)<128?1:Math.ceil(l.toString(16))+1}if(_.getL(n,r).length>2*g)throw new Error("L of TLV too long: idx="+r);var x=_.getVblen(n,r);if(x>l)throw new Error("value of L too long than hex: idx="+r);var I=_.getTLV(n,r),P=I.length-2-_.getL(n,r).length;if(P!==2*x)throw new Error("V string length and L's value not the same:"+P+"/"+2*x);if(r===0&&n.length!=I.length)throw new Error("total length and TLV length unmatch:"+n.length+"!="+I.length);var C=n.substr(r,2);if(C==="02"){var L=_.getVidx(n,r);if(n.substr(L,2)=="00"&&n.charCodeAt(L+2)<56)throw new Error("not least zeros for DER INTEGER")}if(32&parseInt(C,16)){for(var U=_.getVblen(n,r),Y=0,G=_.getChildIdx(n,r),ee=0;ee<G.length;ee++)Y+=_.getTLV(n,G[ee]).length,_.checkStrictDER(n,G[ee],s,l,g);if(2*U!=Y)throw new Error("sum of children's TLV length and L unmatch: "+2*U+"!="+Y)}},ye.oidname=function(n){var r=k.asn1;k.lang.String.isHex(n)&&(n=r.ASN1Util.oidHexToInt(n));var s=r.x509.OID.oid2name(n);return s===""&&(s=n),s},k!==void 0&&k||(i.KJUR=k={}),k.lang!==void 0&&k.lang||(k.lang={}),k.lang.String=function(){},typeof c=="function"?(i.utf8tob64u=kr=function(r){return Ae(c.from(r,"utf8").toString("base64"))},i.b64utoutf8=Ut=function(r){return c.from(Oe(r),"base64").toString("utf8")}):(i.utf8tob64u=kr=function(r){return Re(En(xn(r)))},i.b64utoutf8=Ut=function(r){return decodeURIComponent(Fn(ke(r)))}),k.lang.String.isInteger=function(n){return!!n.match(/^[0-9]+$/)||!!n.match(/^-[0-9]+$/)},k.lang.String.isHex=function(n){return Io(n)},k.lang.String.isBase64=function(n){return!(!(n=n.replace(/\s+/g,"")).match(/^[0-9A-Za-z+\/]+={0,3}$/)||n.length%4!=0)},k.lang.String.isBase64URL=function(n){return!n.match(/[+/=]/)&&(n=Oe(n),k.lang.String.isBase64(n))},k.lang.String.isIntegerArray=function(n){return!!(n=n.replace(/\s+/g,"")).match(/^\[[0-9,]+\]$/)},k.lang.String.isPrintable=function(n){return n.match(/^[0-9A-Za-z '()+,-./:=?]*$/)!==null},k.lang.String.isIA5=function(n){return n.match(/^[\x20-\x21\x23-\x7f]*$/)!==null},k.lang.String.isMail=function(n){return n.match(/^[A-Za-z0-9]{1}[A-Za-z0-9_.-]*@{1}[A-Za-z0-9_.-]{1,}\.[A-Za-z0-9]{1,}$/)!==null};var Oo=function(r,s,l){return l==null&&(l="0"),r.length>=s?r:new Array(s-r.length+1).join(l)+r};k!==void 0&&k||(i.KJUR=k={}),k.crypto!==void 0&&k.crypto||(k.crypto={}),k.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},this.DEFAULTPROVIDER={md5:"cryptojs",sha1:"cryptojs",sha224:"cryptojs",sha256:"cryptojs",sha384:"cryptojs",sha512:"cryptojs",ripemd160:"cryptojs",hmacmd5:"cryptojs",hmacsha1:"cryptojs",hmacsha224:"cryptojs",hmacsha256:"cryptojs",hmacsha384:"cryptojs",hmacsha512:"cryptojs",hmacripemd160:"cryptojs",MD5withRSA:"cryptojs/jsrsa",SHA1withRSA:"cryptojs/jsrsa",SHA224withRSA:"cryptojs/jsrsa",SHA256withRSA:"cryptojs/jsrsa",SHA384withRSA:"cryptojs/jsrsa",SHA512withRSA:"cryptojs/jsrsa",RIPEMD160withRSA:"cryptojs/jsrsa",MD5withECDSA:"cryptojs/jsrsa",SHA1withECDSA:"cryptojs/jsrsa",SHA224withECDSA:"cryptojs/jsrsa",SHA256withECDSA:"cryptojs/jsrsa",SHA384withECDSA:"cryptojs/jsrsa",SHA512withECDSA:"cryptojs/jsrsa",RIPEMD160withECDSA:"cryptojs/jsrsa",SHA1withDSA:"cryptojs/jsrsa",SHA224withDSA:"cryptojs/jsrsa",SHA256withDSA:"cryptojs/jsrsa",MD5withRSAandMGF1:"cryptojs/jsrsa",SHAwithRSAandMGF1:"cryptojs/jsrsa",SHA1withRSAandMGF1:"cryptojs/jsrsa",SHA224withRSAandMGF1:"cryptojs/jsrsa",SHA256withRSAandMGF1:"cryptojs/jsrsa",SHA384withRSAandMGF1:"cryptojs/jsrsa",SHA512withRSAandMGF1:"cryptojs/jsrsa",RIPEMD160withRSAandMGF1:"cryptojs/jsrsa"},this.CRYPTOJSMESSAGEDIGESTNAME={md5:V.algo.MD5,sha1:V.algo.SHA1,sha224:V.algo.SHA224,sha256:V.algo.SHA256,sha384:V.algo.SHA384,sha512:V.algo.SHA512,ripemd160:V.algo.RIPEMD160},this.getDigestInfoHex=function(n,r){if(this.DIGESTINFOHEAD[r]===void 0)throw"alg not supported in Util.DIGESTINFOHEAD: "+r;return this.DIGESTINFOHEAD[r]+n},this.getPaddedDigestInfoHex=function(n,r,s){var l=this.getDigestInfoHex(n,r),g=s/4;if(l.length+22>g)throw"key is too short for SigAlg: keylen="+s+","+r;for(var _="0001",x="00"+l,I="",P=g-_.length-x.length,C=0;C<P;C+=2)I+="ff";return _+I+x},this.hashString=function(n,r){return new k.crypto.MessageDigest({alg:r}).digestString(n)},this.hashHex=function(n,r){return new k.crypto.MessageDigest({alg:r}).digestHex(n)},this.sha1=function(n){return this.hashString(n,"sha1")},this.sha256=function(n){return this.hashString(n,"sha256")},this.sha256Hex=function(n){return this.hashHex(n,"sha256")},this.sha512=function(n){return this.hashString(n,"sha512")},this.sha512Hex=function(n){return this.hashHex(n,"sha512")},this.isKey=function(n){return n instanceof Pe||n instanceof k.crypto.DSA||n instanceof k.crypto.ECDSA}},k.crypto.Util.md5=function(n){return new k.crypto.MessageDigest({alg:"md5",prov:"cryptojs"}).digestString(n)},k.crypto.Util.ripemd160=function(n){return new k.crypto.MessageDigest({alg:"ripemd160",prov:"cryptojs"}).digestString(n)}
51,k.crypto.Util.SECURERANDOMGEN=new lt,k.crypto.Util.getRandomHexOfNbytes=function(n){var r=new Array(n);return k.crypto.Util.SECURERANDOMGEN.nextBytes(r),wr(r)},k.crypto.Util.getRandomBigIntegerOfNbytes=function(n){return new K(k.crypto.Util.getRandomHexOfNbytes(n),16)},k.crypto.Util.getRandomHexOfNbits=function(n){var r=n%8,s=new Array((n-r)/8+1);return k.crypto.Util.SECURERANDOMGEN.nextBytes(s),s[0]=(255<<r&255^255)&s[0],wr(s)},k.crypto.Util.getRandomBigIntegerOfNbits=function(n){return new K(k.crypto.Util.getRandomHexOfNbits(n),16)},k.crypto.Util.getRandomBigIntegerZeroToMax=function(n){for(var r=n.bitLength();;){var s=k.crypto.Util.getRandomBigIntegerOfNbits(r);if(n.compareTo(s)!=-1)return s}},k.crypto.Util.getRandomBigIntegerMinToMax=function(n,r){var s=n.compareTo(r);if(s==1)throw"biMin is greater than biMax";if(s==0)return n;var l=r.subtract(n);return k.crypto.Util.getRandomBigIntegerZeroToMax(l).add(n)},k.crypto.MessageDigest=function(n){this.setAlgAndProvider=function(r,s){if((r=k.crypto.MessageDigest.getCanonicalAlgName(r))!==null&&s===void 0&&(s=k.crypto.Util.DEFAULTPROVIDER[r]),":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(r)!=-1&&s=="cryptojs"){try{this.md=k.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[r].create()}catch(l){throw"setAlgAndProvider hash alg set fail alg="+r+"/"+l}this.updateString=function(l){this.md.update(l)},this.updateHex=function(l){var g=V.enc.Hex.parse(l);this.md.update(g)},this.digest=function(){return this.md.finalize().toString(V.enc.Hex)},this.digestString=function(l){return this.updateString(l),this.digest()},this.digestHex=function(l){return this.updateHex(l),this.digest()}}if(":sha256:".indexOf(r)!=-1&&s=="sjcl"){try{this.md=new sjcl.hash.sha256}catch(l){throw"setAlgAndProvider hash alg set fail alg="+r+"/"+l}this.updateString=function(l){this.md.update(l)},this.updateHex=function(l){var g=sjcl.codec.hex.toBits(l);this.md.update(g)},this.digest=function(){var l=this.md.finalize();return sjcl.codec.hex.fromBits(l)},this.digestString=function(l){return this.updateString(l),this.digest()},this.digestHex=function(l){return this.updateHex(l),this.digest()}}},this.updateString=function(r){throw"updateString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.updateHex=function(r){throw"updateHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digest=function(){throw"digest() not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestString=function(r){throw"digestString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestHex=function(r){throw"digestHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},n!==void 0&&n.alg!==void 0&&(this.algName=n.alg,n.prov===void 0&&(this.provName=k.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName))},k.crypto.MessageDigest.getCanonicalAlgName=function(n){return typeof n=="string"&&(n=(n=n.toLowerCase()).replace(/-/,"")),n},k.crypto.MessageDigest.getHashLength=function(n){var r=k.crypto.MessageDigest,s=r.getCanonicalAlgName(n);if(r.HASHLENGTH[s]===void 0)throw"not supported algorithm: "+n;return r.HASHLENGTH[s]},k.crypto.MessageDigest.HASHLENGTH={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,ripemd160:20},k.crypto.Mac=function(n){this.setAlgAndProvider=function(r,s){if((r=r.toLowerCase())==null&&(r="hmacsha1"),(r=r.toLowerCase()).substr(0,4)!="hmac")throw"setAlgAndProvider unsupported HMAC alg: "+r;s===void 0&&(s=k.crypto.Util.DEFAULTPROVIDER[r]),this.algProv=r+"/"+s;var l=r.substr(4);if(":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(l)!=-1&&s=="cryptojs"){try{var g=k.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[l];this.mac=V.algo.HMAC.create(g,this.pass)}catch(_){throw"setAlgAndProvider hash alg set fail hashAlg="+l+"/"+_}this.updateString=function(_){this.mac.update(_)},this.updateHex=function(_){var x=V.enc.Hex.parse(_);this.mac.update(x)},this.doFinal=function(){return this.mac.finalize().toString(V.enc.Hex)},this.doFinalString=function(_){return this.updateString(_),this.doFinal()},this.doFinalHex=function(_){return this.updateHex(_),this.doFinal()}}},this.updateString=function(r){throw"updateString(str) not supported for this alg/prov: "+this.algProv},this.updateHex=function(r){throw"updateHex(hex) not supported for this alg/prov: "+this.algProv},this.doFinal=function(){throw"digest() not supported for this alg/prov: "+this.algProv},this.doFinalString=function(r){throw"digestString(str) not supported for this alg/prov: "+this.algProv},this.doFinalHex=function(r){throw"digestHex(hex) not supported for this alg/prov: "+this.algProv},this.setPassword=function(r){if(typeof r=="string"){var s=r;return r.length%2!=1&&r.match(/^[0-9A-Fa-f]+$/)||(s=ct(r)),void(this.pass=V.enc.Hex.parse(s))}if((r===void 0?"undefined":u(r))!="object")throw"KJUR.crypto.Mac unsupported password type: "+r;if(s=null,r.hex!==void 0){if(r.hex.length%2!=0||!r.hex.match(/^[0-9A-Fa-f]+$/))throw"Mac: wrong hex password: "+r.hex;s=r.hex}if(r.utf8!==void 0&&(s=gt(r.utf8)),r.rstr!==void 0&&(s=ct(r.rstr)),r.b64!==void 0&&(s=de(r.b64)),r.b64u!==void 0&&(s=ke(r.b64u)),s==null)throw"KJUR.crypto.Mac unsupported password type: "+r;this.pass=V.enc.Hex.parse(s)},n!==void 0&&(n.pass!==void 0&&this.setPassword(n.pass),n.alg!==void 0&&(this.algName=n.alg,n.prov===void 0&&(this.provName=k.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName)))},k.crypto.Signature=function(n){var r=null;if(this._setAlgNames=function(){var s=this.algName.match(/^(.+)with(.+)$/);s&&(this.mdAlgName=s[1].toLowerCase(),this.pubkeyAlgName=s[2].toLowerCase(),this.pubkeyAlgName=="rsaandmgf1"&&this.mdAlgName=="sha"&&(this.mdAlgName="sha1"))},this._zeroPaddingOfSignature=function(s,l){for(var g="",_=l/4-s.length,x=0;x<_;x++)g+="0";return g+s},this.setAlgAndProvider=function(s,l){if(this._setAlgNames(),l!="cryptojs/jsrsa")throw new Error("provider not supported: "+l);if(":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(this.mdAlgName)!=-1){try{this.md=new k.crypto.MessageDigest({alg:this.mdAlgName})}catch(g){throw new Error("setAlgAndProvider hash alg set fail alg="+this.mdAlgName+"/"+g)}this.init=function(g,_){var x=null;try{x=_===void 0?St.getKey(g):St.getKey(g,_)}catch(I){throw"init failed:"+I}if(x.isPrivate===!0)this.prvKey=x,this.state="SIGN";else{if(x.isPublic!==!0)throw"init failed.:"+x;this.pubKey=x,this.state="VERIFY"}},this.updateString=function(g){this.md.updateString(g)},this.updateHex=function(g){this.md.updateHex(g)},this.sign=function(){if(this.sHashHex=this.md.digest(),this.prvKey===void 0&&this.ecprvhex!==void 0&&this.eccurvename!==void 0&&k.crypto.ECDSA!==void 0&&(this.prvKey=new k.crypto.ECDSA({curve:this.eccurvename,prv:this.ecprvhex})),this.prvKey instanceof Pe&&this.pubkeyAlgName==="rsaandmgf1")this.hSign=this.prvKey.signWithMessageHashPSS(this.sHashHex,this.mdAlgName,this.pssSaltLen);else if(this.prvKey instanceof Pe&&this.pubkeyAlgName==="rsa")this.hSign=this.prvKey.signWithMessageHash(this.sHashHex,this.mdAlgName);else if(this.prvKey instanceof k.crypto.ECDSA)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex);else{if(!(this.prvKey instanceof k.crypto.DSA))throw"Signature: unsupported private key alg: "+this.pubkeyAlgName;this.hSign=this.prvKey.signWithMessageHash(this.sHashHex)}return this.hSign},this.signString=function(g){return this.updateString(g),this.sign()},this.signHex=function(g){return this.updateHex(g),this.sign()},this.verify=function(g){if(this.sHashHex=this.md.digest(),this.pubKey===void 0&&this.ecpubhex!==void 0&&this.eccurvename!==void 0&&k.crypto.ECDSA!==void 0&&(this.pubKey=new k.crypto.ECDSA({curve:this.eccurvename,pub:this.ecpubhex})),this.pubKey instanceof Pe&&this.pubkeyAlgName==="rsaandmgf1")return this.pubKey.verifyWithMessageHashPSS(this.sHashHex,g,this.mdAlgName,this.pssSaltLen);if(this.pubKey instanceof Pe&&this.pubkeyAlgName==="rsa")return this.pubKey.verifyWithMessageHash(this.sHashHex,g);
51if(k.crypto.ECDSA!==void 0&&this.pubKey instanceof k.crypto.ECDSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,g);if(k.crypto.DSA!==void 0&&this.pubKey instanceof k.crypto.DSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,g);throw"Signature: unsupported public key alg: "+this.pubkeyAlgName}}},this.init=function(s,l){throw"init(key, pass) not supported for this alg:prov="+this.algProvName},this.updateString=function(s){throw"updateString(str) not supported for this alg:prov="+this.algProvName},this.updateHex=function(s){throw"updateHex(hex) not supported for this alg:prov="+this.algProvName},this.sign=function(){throw"sign() not supported for this alg:prov="+this.algProvName},this.signString=function(s){throw"digestString(str) not supported for this alg:prov="+this.algProvName},this.signHex=function(s){throw"digestHex(hex) not supported for this alg:prov="+this.algProvName},this.verify=function(s){throw"verify(hSigVal) not supported for this alg:prov="+this.algProvName},this.initParams=n,n!==void 0&&(n.alg!==void 0&&(this.algName=n.alg,n.prov===void 0?this.provName=k.crypto.Util.DEFAULTPROVIDER[this.algName]:this.provName=n.prov,this.algProvName=this.algName+":"+this.provName,this.setAlgAndProvider(this.algName,this.provName),this._setAlgNames()),n.psssaltlen!==void 0&&(this.pssSaltLen=n.psssaltlen),n.prvkeypem!==void 0)){if(n.prvkeypas!==void 0)throw"both prvkeypem and prvkeypas parameters not supported";try{r=St.getKey(n.prvkeypem),this.init(r)}catch(s){throw"fatal error to load pem private key: "+s}}},k.crypto.Cipher=function(n){},k.crypto.Cipher.encrypt=function(n,r,s){if(r instanceof Pe&&r.isPublic){var l=k.crypto.Cipher.getAlgByKeyAndName(r,s);if(l==="RSA")return r.encrypt(n);if(l==="RSAOAEP")return r.encryptOAEP(n,"sha1");var g=l.match(/^RSAOAEP(\d+)$/);if(g!==null)return r.encryptOAEP(n,"sha"+g[1]);throw"Cipher.encrypt: unsupported algorithm for RSAKey: "+s}throw"Cipher.encrypt: unsupported key or algorithm"},k.crypto.Cipher.decrypt=function(n,r,s){if(r instanceof Pe&&r.isPrivate){var l=k.crypto.Cipher.getAlgByKeyAndName(r,s);if(l==="RSA")return r.decrypt(n);if(l==="RSAOAEP")return r.decryptOAEP(n,"sha1");var g=l.match(/^RSAOAEP(\d+)$/);if(g!==null)return r.decryptOAEP(n,"sha"+g[1]);throw"Cipher.decrypt: unsupported algorithm for RSAKey: "+s}throw"Cipher.decrypt: unsupported key or algorithm"},k.crypto.Cipher.getAlgByKeyAndName=function(n,r){if(n instanceof Pe){if(":RSA:RSAOAEP:RSAOAEP224:RSAOAEP256:RSAOAEP384:RSAOAEP512:".indexOf(r)!=-1)return r;if(r==null)return"RSA";throw"getAlgByKeyAndName: not supported algorithm name for RSAKey: "+r}throw"getAlgByKeyAndName: not supported algorithm name: "+r},k.crypto.OID=new function(){this.oidhex2name={"2a864886f70d010101":"rsaEncryption","2a8648ce3d0201":"ecPublicKey","2a8648ce380401":"dsa","2a8648ce3d030107":"secp256r1","2b8104001f":"secp192k1","2b81040021":"secp224r1","2b8104000a":"secp256k1","2b81040023":"secp521r1","2b81040022":"secp384r1","2a8648ce380403":"SHA1withDSA","608648016503040301":"SHA224withDSA","608648016503040302":"SHA256withDSA"}},k!==void 0&&k||(i.KJUR=k={}),k.crypto!==void 0&&k.crypto||(k.crypto={}),k.crypto.ECDSA=function(n){var r=Error,s=K,l=Me,g=k.crypto.ECDSA,_=k.crypto.ECParameterDB,x=g.getName,I=ye,P=I.getVbyListEx,C=I.isASN1HEX,L=new lt;this.type="EC",this.isPrivate=!1,this.isPublic=!1,this.getBigRandom=function(U){return new s(U.bitLength(),L).mod(U.subtract(s.ONE)).add(s.ONE)},this.setNamedCurve=function(U){this.ecparams=_.getByName(U),this.prvKeyHex=null,this.pubKeyHex=null,this.curveName=U},this.setPrivateKeyHex=function(U){this.isPrivate=!0,this.prvKeyHex=U},this.setPublicKeyHex=function(U){this.isPublic=!0,this.pubKeyHex=U},this.getPublicKeyXYHex=function(){var U=this.pubKeyHex;if(U.substr(0,2)!=="04")throw"this method supports uncompressed format(04) only";var Y=this.ecparams.keylen/4;if(U.length!==2+2*Y)throw"malformed public key hex length";var G={};return G.x=U.substr(2,Y),G.y=U.substr(2+Y),G},this.getShortNISTPCurveName=function(){var U=this.curveName;return U==="secp256r1"||U==="NIST P-256"||U==="P-256"||U==="prime256v1"?"P-256":U==="secp384r1"||U==="NIST P-384"||U==="P-384"?"P-384":null},this.generateKeyPairHex=function(){var U=this.ecparams.n,Y=this.getBigRandom(U),G=this.ecparams.G.multiply(Y),ee=G.getX().toBigInteger(),re=G.getY().toBigInteger(),ne=this.ecparams.keylen/4,A=("0000000000"+Y.toString(16)).slice(-ne),z="04"+("0000000000"+ee.toString(16)).slice(-ne)+("0000000000"+re.toString(16)).slice(-ne);return this.setPrivateKeyHex(A),this.setPublicKeyHex(z),{ecprvhex:A,ecpubhex:z}},this.signWithMessageHash=function(U){return this.signHex(U,this.prvKeyHex)},this.signHex=function(U,Y){var G=new s(Y,16),ee=this.ecparams.n,re=new s(U.substring(0,this.ecparams.keylen/4),16);do var ne=this.getBigRandom(ee),A=this.ecparams.G.multiply(ne).getX().toBigInteger().mod(ee);while(A.compareTo(s.ZERO)<=0);var z=ne.modInverse(ee).multiply(re.add(G.multiply(A))).mod(ee);return g.biRSSigToASN1Sig(A,z)},this.sign=function(U,Y){var G=Y,ee=this.ecparams.n,re=s.fromByteArrayUnsigned(U);do var ne=this.getBigRandom(ee),A=this.ecparams.G.multiply(ne).getX().toBigInteger().mod(ee);while(A.compareTo(K.ZERO)<=0);var z=ne.modInverse(ee).multiply(re.add(G.multiply(A))).mod(ee);return this.serializeSig(A,z)},this.verifyWithMessageHash=function(U,Y){return this.verifyHex(U,Y,this.pubKeyHex)},this.verifyHex=function(U,Y,G){try{var ee,re,ne=g.parseSigHex(Y);ee=ne.r,re=ne.s;var A=l.decodeFromHex(this.ecparams.curve,G),z=new s(U.substring(0,this.ecparams.keylen/4),16);return this.verifyRaw(z,ee,re,A)}
51catch{return!1}},this.verify=function(U,Y,G){var ee,re,ne;if(Bitcoin.Util.isArray(Y)){var A=this.parseSig(Y);ee=A.r,re=A.s}else{if((Y===void 0?"undefined":u(Y))!=="object"||!Y.r||!Y.s)throw"Invalid value for signature";ee=Y.r,re=Y.s}if(G instanceof Me)ne=G;else{if(!Bitcoin.Util.isArray(G))throw"Invalid format for pubkey value, must be byte array or ECPointFp";ne=l.decodeFrom(this.ecparams.curve,G)}var z=s.fromByteArrayUnsigned(U);return this.verifyRaw(z,ee,re,ne)},this.verifyRaw=function(U,Y,G,ee){var re=this.ecparams.n,ne=this.ecparams.G;if(Y.compareTo(s.ONE)<0||Y.compareTo(re)>=0||G.compareTo(s.ONE)<0||G.compareTo(re)>=0)return!1;var A=G.modInverse(re),z=U.multiply(A).mod(re),B=Y.multiply(A).mod(re);return ne.multiply(z).add(ee.multiply(B)).getX().toBigInteger().mod(re).equals(Y)},this.serializeSig=function(U,Y){var G=U.toByteArraySigned(),ee=Y.toByteArraySigned(),re=[];return re.push(2),re.push(G.length),(re=re.concat(G)).push(2),re.push(ee.length),(re=re.concat(ee)).unshift(re.length),re.unshift(48),re},this.parseSig=function(U){var Y;if(U[0]!=48)throw new Error("Signature not a valid DERSequence");if(U[Y=2]!=2)throw new Error("First element in signature must be a DERInteger");var G=U.slice(Y+2,Y+2+U[Y+1]);if(U[Y+=2+U[Y+1]]!=2)throw new Error("Second element in signature must be a DERInteger");var ee=U.slice(Y+2,Y+2+U[Y+1]);return Y+=2+U[Y+1],{r:s.fromByteArrayUnsigned(G),s:s.fromByteArrayUnsigned(ee)}},this.parseSigCompact=function(U){if(U.length!==65)throw"Signature has the wrong length";var Y=U[0]-27;if(Y<0||Y>7)throw"Invalid signature type";var G=this.ecparams.n;return{r:s.fromByteArrayUnsigned(U.slice(1,33)).mod(G),s:s.fromByteArrayUnsigned(U.slice(33,65)).mod(G),i:Y}},this.readPKCS5PrvKeyHex=function(U){if(C(U)===!1)throw new Error("not ASN.1 hex string");var Y,G,ee;try{Y=P(U,0,["[0]",0],"06"),G=P(U,0,[1],"04");try{ee=P(U,0,["[1]",0],"03")}catch{}}catch{throw new Error("malformed PKCS#1/5 plain ECC private key")}if(this.curveName=x(Y),this.curveName===void 0)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(ee),this.setPrivateKeyHex(G),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(U){if(C(U)===!1)throw new r("not ASN.1 hex string");var Y,G,ee;try{P(U,0,[1,0],"06"),Y=P(U,0,[1,1],"06"),G=P(U,0,[2,0,1],"04");try{ee=P(U,0,[2,0,"[1]",0],"03")}catch{}}catch{throw new r("malformed PKCS#8 plain ECC private key")}if(this.curveName=x(Y),this.curveName===void 0)throw new r("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(ee),this.setPrivateKeyHex(G),this.isPublic=!1},this.readPKCS8PubKeyHex=function(U){if(C(U)===!1)throw new r("not ASN.1 hex string");var Y,G;try{P(U,0,[0,0],"06"),Y=P(U,0,[0,1],"06"),G=P(U,0,[1],"03")}catch{throw new r("malformed PKCS#8 ECC public key")}if(this.curveName=x(Y),this.curveName===null)throw new r("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(G)},this.readCertPubKeyHex=function(U,Y){if(C(U)===!1)throw new r("not ASN.1 hex string");var G,ee;try{G=P(U,0,[0,5,0,1],"06"),ee=P(U,0,[0,5,1],"03")}catch{throw new r("malformed X.509 certificate ECC public key")}if(this.curveName=x(G),this.curveName===null)throw new r("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(ee)},n!==void 0&&n.curve!==void 0&&(this.curveName=n.curve),this.curveName===void 0&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),n!==void 0&&(n.prv!==void 0&&this.setPrivateKeyHex(n.prv),n.pub!==void 0&&this.setPublicKeyHex(n.pub))},k.crypto.ECDSA.parseSigHex=function(n){var r=k.crypto.ECDSA.parseSigHexInHexRS(n);return{r:new K(r.r,16),s:new K(r.s,16)}},k.crypto.ECDSA.parseSigHexInHexRS=function(n){var r=ye,s=r.getChildIdx,l=r.getV;if(r.checkStrictDER(n,0),n.substr(0,2)!="30")throw new Error("signature is not a ASN.1 sequence");var g=s(n,0);if(g.length!=2)throw new Error("signature shall have two elements");var _=g[0],x=g[1];if(n.substr(_,2)!="02")throw new Error("1st item not ASN.1 integer");if(n.substr(x,2)!="02")throw new Error("2nd item not ASN.1 integer");return{r:l(n,_),s:l(n,x)}},k.crypto.ECDSA.asn1SigToConcatSig=function(n){var r=k.crypto.ECDSA.parseSigHexInHexRS(n),s=r.r,l=r.s;if(s.substr(0,2)=="00"&&s.length%32==2&&(s=s.substr(2)),l.substr(0,2)=="00"&&l.length%32==2&&(l=l.substr(2)),s.length%32==30&&(s="00"+s),l.length%32==30&&(l="00"+l),s.length%32!=0)throw"unknown ECDSA sig r length error";if(l.length%32!=0)throw"unknown ECDSA sig s length error";return s+l},k.crypto.ECDSA.concatSigToASN1Sig=function(n){if(n.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig length error";var r=n.substr(0,n.length/2),s=n.substr(n.length/2);return k.crypto.ECDSA.hexRSSigToASN1Sig(r,s)},k.crypto.ECDSA.hexRSSigToASN1Sig=function(n,r){var s=new K(n,16),l=new K(r,16);return k.crypto.ECDSA.biRSSigToASN1Sig(s,l)},k.crypto.ECDSA.biRSSigToASN1Sig=function(n,r){var s=k.asn1,l=new s.DERInteger({bigint:n}),g=new s.DERInteger({bigint:r});return new s.DERSequence({array:[l,g]}).getEncodedHex()}
51,k.crypto.ECDSA.getName=function(n){return n==="2b8104001f"?"secp192k1":n==="2a8648ce3d030107"?"secp256r1":n==="2b8104000a"?"secp256k1":n==="2b81040021"?"secp224r1":n==="2b81040022"?"secp384r1":"|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(n)!==-1?"secp256r1":"|secp256k1|".indexOf(n)!==-1?"secp256k1":"|secp224r1|NIST P-224|P-224|".indexOf(n)!==-1?"secp224r1":"|secp384r1|NIST P-384|P-384|".indexOf(n)!==-1?"secp384r1":null},k!==void 0&&k||(i.KJUR=k={}),k.crypto!==void 0&&k.crypto||(k.crypto={}),k.crypto.ECParameterDB=new function(){var n={},r={};function s(l){return new K(l,16)}this.getByName=function(l){var g=l;if(r[g]!==void 0&&(g=r[l]),n[g]!==void 0)return n[g];throw"unregistered EC curve name: "+g},this.regist=function(l,g,_,x,I,P,C,L,U,Y,G,ee){n[l]={};var re=s(_),ne=s(x),A=s(I),z=s(P),B=s(C),q=new Bt(re,ne,A),te=q.decodePointHex("04"+L+U);n[l].name=l,n[l].keylen=g,n[l].curve=q,n[l].G=te,n[l].n=z,n[l].h=B,n[l].oid=G,n[l].info=ee;for(var oe=0;oe<Y.length;oe++)r[Y[oe]]=l}},k.crypto.ECParameterDB.regist("secp128r1",128,"FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC","E87579C11079F43DD824993C2CEE5ED3","FFFFFFFE0000000075A30D1B9038A115","1","161FF7528B899B2D0C28607CA52C5B86","CF5AC8395BAFEB13C02DA292DDED7A83",[],"","secp128r1 : SECG curve over a 128 bit prime field"),k.crypto.ECParameterDB.regist("secp160k1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73","0","7","0100000000000000000001B8FA16DFAB9ACA16B6B3","1","3B4C382CE37AA192A4019E763036F4F5DD4D7EBB","938CF935318FDCED6BC28286531733C3F03C4FEE",[],"","secp160k1 : SECG curve over a 160 bit prime field"),k.crypto.ECParameterDB.regist("secp160r1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC","1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45","0100000000000000000001F4C8F927AED3CA752257","1","4A96B5688EF573284664698968C38BB913CBFC82","23A628553168947D59DCC912042351377AC5FB32",[],"","secp160r1 : SECG curve over a 160 bit prime field"),k.crypto.ECParameterDB.regist("secp192k1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37","0","3","FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D","1","DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D","9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D",[]),k.crypto.ECParameterDB.regist("secp192r1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC","64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1","FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831","1","188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012","07192B95FFC8DA78631011ED6B24CDD573F977A11E794811",[]),k.crypto.ECParameterDB.regist("secp224r1",224,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE","B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4","FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D","1","B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21","BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34",[]),k.crypto.ECParameterDB.regist("secp256k1",256,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F","0","7","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","1","79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798","483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8",[]),k.crypto.ECParameterDB.regist("secp256r1",256,"FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC","5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B","FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551","1","6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296","4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5",["NIST P-256","P-256","prime256v1"]),k.crypto.ECParameterDB.regist("secp384r1",384,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFC","B3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973","1","AA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7","3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f",["NIST P-384","P-384"]),k.crypto.ECParameterDB.regist("secp521r1",521,"1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC","051953EB9618E1C9A1F929A21A0B68540EEA2DA725B99B315F3B8B489918EF109E156193951EC7E937B1652C0BD3BB1BF073573DF883D2C34F1EF451FD46B503F00","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409","1","C6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66","011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650",["NIST P-521","P-521"]);var St=(function(){var n=function(C,L,U){return r(V.AES,C,L,U)},r=function(C,L,U,Y){var G=V.enc.Hex.parse(L),ee=V.enc.Hex.parse(U),re=V.enc.Hex.parse(Y),ne={};ne.key=ee,ne.iv=re,ne.ciphertext=G;var A=C.decrypt(ne,ee,{iv:re});return V.enc.Hex.stringify(A)},s=function(C,L,U){return l(V.AES,C,L,U)},l=function(C,L,U,Y){var G=V.enc.Hex.parse(L),ee=V.enc.Hex.parse(U),re=V.enc.Hex.parse(Y),ne=C.encrypt
51(G,ee,{iv:re}),A=V.enc.Hex.parse(ne.toString());return V.enc.Base64.stringify(A)},g={"AES-256-CBC":{proc:n,eproc:s,keylen:32,ivlen:16},"AES-192-CBC":{proc:n,eproc:s,keylen:24,ivlen:16},"AES-128-CBC":{proc:n,eproc:s,keylen:16,ivlen:16},"DES-EDE3-CBC":{proc:function(C,L,U){return r(V.TripleDES,C,L,U)},eproc:function(C,L,U){return l(V.TripleDES,C,L,U)},keylen:24,ivlen:8},"DES-CBC":{proc:function(C,L,U){return r(V.DES,C,L,U)},eproc:function(C,L,U){return l(V.DES,C,L,U)},keylen:8,ivlen:8}},_=function(C){var L={},U=C.match(new RegExp("DEK-Info: ([^,]+),([0-9A-Fa-f]+)","m"));U&&(L.cipher=U[1],L.ivsalt=U[2]);var Y=C.match(new RegExp("-----BEGIN ([A-Z]+) PRIVATE KEY-----"));Y&&(L.type=Y[1]);var G=-1,ee=0;C.indexOf(`\r 52\r 53`)!=-1&&(G=C.indexOf(`\r 54\r 55`),ee=2),C.indexOf(` 56 57`)!=-1&&(G=C.indexOf(` 58 59`),ee=1);var re=C.indexOf("-----END");if(G!=-1&&re!=-1){var ne=C.substring(G+2*ee,re-ee);ne=ne.replace(/\s+/g,""),L.data=ne}return L},x=function(C,L,U){for(var Y=U.substring(0,16),G=V.enc.Hex.parse(Y),ee=V.enc.Utf8.parse(L),re=g[C].keylen+g[C].ivlen,ne="",A=null;;){var z=V.algo.MD5.create();if(A!=null&&z.update(A),z.update(ee),z.update(G),A=z.finalize(),(ne+=V.enc.Hex.stringify(A)).length>=2*re)break}var B={};return B.keyhex=ne.substr(0,2*g[C].keylen),B.ivhex=ne.substr(2*g[C].keylen,2*g[C].ivlen),B},I=function(C,L,U,Y){var G=V.enc.Base64.parse(C),ee=V.enc.Hex.stringify(G);return(0,g[L].proc)(ee,U,Y)};return{version:"1.0.0",parsePKCS5PEM:function(C){return _(C)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(C,L,U){return x(C,L,U)},decryptKeyB64:function(C,L,U,Y){return I(C,L,U,Y)},getDecryptedKeyHex:function(C,L){var U=_(C),Y=U.cipher,G=U.ivsalt,ee=U.data,re=x(Y,L,G).keyhex;return I(ee,Y,re,G)},getEncryptedPKCS5PEMFromPrvKeyHex:function(C,L,U,Y,G){var ee="";if(Y!==void 0&&Y!=null||(Y="AES-256-CBC"),g[Y]===void 0)throw"KEYUTIL unsupported algorithm: "+Y;G!==void 0&&G!=null||(G=(function(A){var z=V.lib.WordArray.random(A);return V.enc.Hex.stringify(z)})(g[Y].ivlen).toUpperCase());var re=(function(A,z,B,q){return(0,g[z].eproc)(A,B,q)})(L,Y,x(Y,U,G).keyhex,G);return ee="-----BEGIN "+C+` PRIVATE KEY-----\r 60`,ee+=`Proc-Type: 4,ENCRYPTED\r 61`,ee+="DEK-Info: "+Y+","+G+`\r 62`,ee+=`\r 63`,ee+=re.replace(/(.{64})/g,`$1\r 64`),ee+=`\r 65-----END `+C+` PRIVATE KEY-----\r 66`},parseHexOfEncryptedPKCS8:function(C){var L=ye,U=L.getChildIdx,Y=L.getV,G={},ee=U(C,0);if(ee.length!=2)throw"malformed format: SEQUENCE(0).items != 2: "+ee.length;G.ciphertext=Y(C,ee[1]);var re=U(C,ee[0]);if(re.length!=2)throw"malformed format: SEQUENCE(0.0).items != 2: "+re.length;if(Y(C,re[0])!="2a864886f70d01050d")throw"this only supports pkcs5PBES2";var ne=U(C,re[1]);if(re.length!=2)throw"malformed format: SEQUENCE(0.0.1).items != 2: "+ne.length;var A=U(C,ne[1]);if(A.length!=2)throw"malformed format: SEQUENCE(0.0.1.1).items != 2: "+A.length;if(Y(C,A[0])!="2a864886f70d0307")throw"this only supports TripleDES";G.encryptionSchemeAlg="TripleDES",G.encryptionSchemeIV=Y(C,A[1]);var z=U(C,ne[0]);if(z.length!=2)throw"malformed format: SEQUENCE(0.0.1.0).items != 2: "+z.length;if(Y(C,z[0])!="2a864886f70d01050c")throw"this only supports pkcs5PBKDF2";var B=U(C,z[1]);if(B.length<2)throw"malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+B.length;G.pbkdf2Salt=Y(C,B[0]);var q=Y(C,B[1]);try{G.pbkdf2Iter=parseInt(q,16)}catch{throw"malformed format pbkdf2Iter: "+q}return G},getPBKDF2KeyHexFromParam:function(C,L){var U=V.enc.Hex.parse(C.pbkdf2Salt),Y=C.pbkdf2Iter,G=V.PBKDF2(L,U,{keySize:6,iterations:Y});return V.enc.Hex.stringify(G)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(C,L){var U=tr(C,"ENCRYPTED PRIVATE KEY"),Y=this.parseHexOfEncryptedPKCS8(U),G=St.getPBKDF2KeyHexFromParam(Y,L),ee={};ee.ciphertext=V.enc.Hex.parse(Y.ciphertext);var re=V.enc.Hex.parse(G),ne=V.enc.Hex.parse(Y.encryptionSchemeIV),A=V.TripleDES.decrypt(ee,re,{iv:ne});return V.enc.Hex.stringify(A)},getKeyFromEncryptedPKCS8PEM:function(C,L){var U=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(C,L);return this.getKeyFromPlainPrivatePKCS8Hex(U)},parsePlainPrivatePKCS8Hex:function(C){var L=ye,U=L.getChildIdx,Y=L.getV,G={algparam:null};if(C.substr(0,2)!="30")throw"malformed plain PKCS8 private key(code:001)";var ee=U(C,0);if(ee.length!=3)throw"malformed plain PKCS8 private key(code:002)";if(C.substr(ee[1],2)!="30")throw"malformed PKCS8 private key(code:003)";var re=U(C,ee[1]);if(re.length!=2)throw"malformed PKCS8 private key(code:004)";if(C.substr(re[0],2)!="06")throw"malformed PKCS8 private key(code:005)";if(G.algoid=Y(C,re[0]),C.substr(re[1],2)=="06"&&(G.algparam=Y(C,re[1])
66),C.substr(ee[2],2)!="04")throw"malformed PKCS8 private key(code:006)";return G.keyidx=L.getVidx(C,ee[2]),G},getKeyFromPlainPrivatePKCS8PEM:function(C){var L=tr(C,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(L)},getKeyFromPlainPrivatePKCS8Hex:function(C){var L,U=this.parsePlainPrivatePKCS8Hex(C);if(U.algoid=="2a864886f70d010101")L=new Pe;else if(U.algoid=="2a8648ce380401")L=new k.crypto.DSA;else{if(U.algoid!="2a8648ce3d0201")throw"unsupported private key algorithm";L=new k.crypto.ECDSA}return L.readPKCS8PrvKeyHex(C),L},_getKeyFromPublicPKCS8Hex:function(C){var L,U=ye.getVbyList(C,0,[0,0],"06");if(U==="2a864886f70d010101")L=new Pe;else if(U==="2a8648ce380401")L=new k.crypto.DSA;else{if(U!=="2a8648ce3d0201")throw"unsupported PKCS#8 public key hex";L=new k.crypto.ECDSA}return L.readPKCS8PubKeyHex(C),L},parsePublicRawRSAKeyHex:function(C){var L=ye,U=L.getChildIdx,Y=L.getV,G={};if(C.substr(0,2)!="30")throw"malformed RSA key(code:001)";var ee=U(C,0);if(ee.length!=2)throw"malformed RSA key(code:002)";if(C.substr(ee[0],2)!="02")throw"malformed RSA key(code:003)";if(G.n=Y(C,ee[0]),C.substr(ee[1],2)!="02")throw"malformed RSA key(code:004)";return G.e=Y(C,ee[1]),G},parsePublicPKCS8Hex:function(C){var L=ye,U=L.getChildIdx,Y=L.getV,G={algparam:null},ee=U(C,0);if(ee.length!=2)throw"outer DERSequence shall have 2 elements: "+ee.length;var re=ee[0];if(C.substr(re,2)!="30")throw"malformed PKCS8 public key(code:001)";var ne=U(C,re);if(ne.length!=2)throw"malformed PKCS8 public key(code:002)";if(C.substr(ne[0],2)!="06")throw"malformed PKCS8 public key(code:003)";if(G.algoid=Y(C,ne[0]),C.substr(ne[1],2)=="06"?G.algparam=Y(C,ne[1]):C.substr(ne[1],2)=="30"&&(G.algparam={},G.algparam.p=L.getVbyList(C,ne[1],[0],"02"),G.algparam.q=L.getVbyList(C,ne[1],[1],"02"),G.algparam.g=L.getVbyList(C,ne[1],[2],"02")),C.substr(ee[1],2)!="03")throw"malformed PKCS8 public key(code:004)";return G.key=Y(C,ee[1]).substr(2),G}}})();St.getKey=function(n,r,s){var l=(ne=ye).getChildIdx,g=(ne.getV,ne.getVbyList),_=k.crypto,x=_.ECDSA,I=_.DSA,P=Pe,C=tr,L=St;if(P!==void 0&&n instanceof P||x!==void 0&&n instanceof x||I!==void 0&&n instanceof I)return n;if(n.curve!==void 0&&n.xy!==void 0&&n.d===void 0)return new x({pub:n.xy,curve:n.curve});if(n.curve!==void 0&&n.d!==void 0)return new x({prv:n.d,curve:n.curve});if(n.kty===void 0&&n.n!==void 0&&n.e!==void 0&&n.d===void 0)return(Te=new P).setPublic(n.n,n.e),Te;if(n.kty===void 0&&n.n!==void 0&&n.e!==void 0&&n.d!==void 0&&n.p!==void 0&&n.q!==void 0&&n.dp!==void 0&&n.dq!==void 0&&n.co!==void 0&&n.qi===void 0)return(Te=new P).setPrivateEx(n.n,n.e,n.d,n.p,n.q,n.dp,n.dq,n.co),Te;if(n.kty===void 0&&n.n!==void 0&&n.e!==void 0&&n.d!==void 0&&n.p===void 0)return(Te=new P).setPrivate(n.n,n.e,n.d),Te;if(n.p!==void 0&&n.q!==void 0&&n.g!==void 0&&n.y!==void 0&&n.x===void 0)return(Te=new I).setPublic(n.p,n.q,n.g,n.y),Te;if(n.p!==void 0&&n.q!==void 0&&n.g!==void 0&&n.y!==void 0&&n.x!==void 0)return(Te=new I).setPrivate(n.p,n.q,n.g,n.y,n.x),Te;if(n.kty==="RSA"&&n.n!==void 0&&n.e!==void 0&&n.d===void 0)return(Te=new P).setPublic(ke(n.n),ke(n.e)),Te;if(n.kty==="RSA"&&n.n!==void 0&&n.e!==void 0&&n.d!==void 0&&n.p!==void 0&&n.q!==void 0&&n.dp!==void 0&&n.dq!==void 0&&n.qi!==void 0)return(Te=new P).setPrivateEx(ke(n.n),ke(n.e),ke(n.d),ke(n.p),ke(n.q),ke(n.dp),ke(n.dq),ke(n.qi)),Te;if(n.kty==="RSA"&&n.n!==void 0&&n.e!==void 0&&n.d!==void 0)return(Te=new P).setPrivate(ke(n.n),ke(n.e),ke(n.d)),Te;if(n.kty==="EC"&&n.crv!==void 0&&n.x!==void 0&&n.y!==void 0&&n.d===void 0){var U=(we=new x({curve:n.crv})).ecparams.keylen/4,Y="04"+("0000000000"+ke(n.x)).slice(-U)+("0000000000"+ke(n.y)).slice(-U);return we.setPublicKeyHex(Y),we}if(n.kty==="EC"&&n.crv!==void 0&&n.x!==void 0&&n.y!==void 0&&n.d!==void 0){U=(we=new x({curve:n.crv})).ecparams.keylen/4,Y="04"+("0000000000"+ke(n.x)).slice(-U)+("0000000000"+ke(n.y)).slice(-U);var G=("0000000000"+ke(n.d)).slice(-U);return we.setPublicKeyHex(Y),we.setPrivateKeyHex(G),we}if(s==="pkcs5prv"){var ee,re=n,ne=ye;if((ee=l(re,0)).length===9)(Te=new P).readPKCS5PrvKeyHex(re);else if(ee.length===6)(Te=new I).readPKCS5PrvKeyHex(re);else{if(!(ee.length>2&&re.substr(ee[1],2)==="04"))throw"unsupported PKCS#1/5 hexadecimal key";(Te=new x).readPKCS5PrvKeyHex(re)}return Te}
66if(s==="pkcs8prv")return Te=L.getKeyFromPlainPrivatePKCS8Hex(n);if(s==="pkcs8pub")return L._getKeyFromPublicPKCS8Hex(n);if(s==="x509pub")return wt.getPublicKeyFromCertHex(n);if(n.indexOf("-END CERTIFICATE-",0)!=-1||n.indexOf("-END X509 CERTIFICATE-",0)!=-1||n.indexOf("-END TRUSTED CERTIFICATE-",0)!=-1)return wt.getPublicKeyFromCertPEM(n);if(n.indexOf("-END PUBLIC KEY-")!=-1){var A=tr(n,"PUBLIC KEY");return L._getKeyFromPublicPKCS8Hex(A)}if(n.indexOf("-END RSA PRIVATE KEY-")!=-1&&n.indexOf("4,ENCRYPTED")==-1){var z=C(n,"RSA PRIVATE KEY");return L.getKey(z,null,"pkcs5prv")}if(n.indexOf("-END DSA PRIVATE KEY-")!=-1&&n.indexOf("4,ENCRYPTED")==-1){var B=g(ot=C(n,"DSA PRIVATE KEY"),0,[1],"02"),q=g(ot,0,[2],"02"),te=g(ot,0,[3],"02"),oe=g(ot,0,[4],"02"),Fe=g(ot,0,[5],"02");return(Te=new I).setPrivate(new K(B,16),new K(q,16),new K(te,16),new K(oe,16),new K(Fe,16)),Te}if(n.indexOf("-END EC PRIVATE KEY-")!=-1&&n.indexOf("4,ENCRYPTED")==-1)return z=C(n,"EC PRIVATE KEY"),L.getKey(z,null,"pkcs5prv");if(n.indexOf("-END PRIVATE KEY-")!=-1)return L.getKeyFromPlainPrivatePKCS8PEM(n);if(n.indexOf("-END RSA PRIVATE KEY-")!=-1&&n.indexOf("4,ENCRYPTED")!=-1){var he=L.getDecryptedKeyHex(n,r),Ne=new Pe;return Ne.readPKCS5PrvKeyHex(he),Ne}if(n.indexOf("-END EC PRIVATE KEY-")!=-1&&n.indexOf("4,ENCRYPTED")!=-1){var we,Te=g(ot=L.getDecryptedKeyHex(n,r),0,[1],"04"),nt=g(ot,0,[2,0],"06"),dt=g(ot,0,[3,0],"03").substr(2);if(k.crypto.OID.oidhex2name[nt]===void 0)throw"undefined OID(hex) in KJUR.crypto.OID: "+nt;return(we=new x({curve:k.crypto.OID.oidhex2name[nt]})).setPublicKeyHex(dt),we.setPrivateKeyHex(Te),we.isPublic=!1,we}if(n.indexOf("-END DSA PRIVATE KEY-")!=-1&&n.indexOf("4,ENCRYPTED")!=-1){var ot;return B=g(ot=L.getDecryptedKeyHex(n,r),0,[1],"02"),q=g(ot,0,[2],"02"),te=g(ot,0,[3],"02"),oe=g(ot,0,[4],"02"),Fe
66=g(ot,0,[5],"02"),(Te=new I).setPrivate(new K(B,16),new K(q,16),new K(te,16),new K(oe,16),new K(Fe,16)),Te}if(n.indexOf("-END ENCRYPTED PRIVATE KEY-")!=-1)return L.getKeyFromEncryptedPKCS8PEM(n,r);throw new Error("not supported argument")},St.generateKeypair=function(n,r){if(n=="RSA"){var s=r;(x=new Pe).generate(s,"10001"),x.isPrivate=!0,x.isPublic=!0;var l=new Pe,g=x.n.toString(16),_=x.e.toString(16);return l.setPublic(g,_),l.isPrivate=!1,l.isPublic=!0,(I={}).prvKeyObj=x,I.pubKeyObj=l,I}if(n=="EC"){var x,I,P=r,C=new k.crypto.ECDSA({curve:P}).generateKeyPairHex();return(x=new k.crypto.ECDSA({curve:P})).setPublicKeyHex(C.ecpubhex),x.setPrivateKeyHex(C.ecprvhex),x.isPrivate=!0,x.isPublic=!1,(l=new k.crypto.ECDSA({curve:P})).setPublicKeyHex(C.ecpubhex),l.isPrivate=!1,l.isPublic=!0,(I={}).prvKeyObj=x,I.pubKeyObj=l,I}throw"unknown algorithm: "+n},St.getPEM=function(n,r,s,l,g,_){var x=k,I=x.asn1,P=I.DERObjectIdentifier,C=I.DERInteger,L=I.ASN1Util.newObject,U=I.x509.SubjectPublicKeyInfo,Y=x.crypto,G=Y.DSA,ee=Y.ECDSA,re=Pe;function ne(we){return L({seq:[{int:0},{int:{bigint:we.n}},{int:we.e},{int:{bigint:we.d}},{int:{bigint:we.p}},{int:{bigint:we.q}},{int:{bigint:we.dmp1}},{int:{bigint:we.dmq1}},{int:{bigint:we.coeff}}]})}function A(we){return L({seq:[{int:1},{octstr:{hex:we.prvKeyHex}},{tag:["a0",!0,{oid:{name:we.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+we.pubKeyHex}}]}]})}function z(we){return L({seq:[{int:0},{int:{bigint:we.p}},{int:{bigint:we.q}},{int:{bigint:we.g}},{int:{bigint:we.y}},{int:{bigint:we.x}}]})}if((re!==void 0&&n instanceof re||G!==void 0&&n instanceof G||ee!==void 0&&n instanceof ee)&&n.isPublic==1&&(r===void 0||r=="PKCS8PUB"))return It(oe=new U(n).getEncodedHex(),"PUBLIC KEY");if(r=="PKCS1PRV"&&re!==void 0&&n instanceof re&&(s===void 0||s==null)&&n.isPrivate==1)return It(oe=ne(n).getEncodedHex(),"RSA PRIVATE KEY");if(r=="PKCS1PRV"&&ee!==void 0&&n instanceof ee&&(s===void 0||s==null)&&n.isPrivate==1){var B=new P({name:n.curveName}).getEncodedHex(),q=A(n).getEncodedHex(),te="";return te+=It(B,"EC PARAMETERS"),te+=It(q,"EC PRIVATE KEY")}if(r=="PKCS1PRV"&&G!==void 0&&n instanceof G&&(s===void 0||s==null)&&n.isPrivate==1)return It(oe=z(n).getEncodedHex(),"DSA PRIVATE KEY");if(r=="PKCS5PRV"&&re!==void 0&&n instanceof re&&s!==void 0&&s!=null&&n.isPrivate==1){var oe=ne(n).getEncodedHex();return l===void 0&&(l="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",oe,s,l,_)}if(r=="PKCS5PRV"&&ee!==void 0&&n instanceof ee&&s!==void 0&&s!=null&&n.isPrivate==1)return oe=A(n).getEncodedHex(),l===void 0&&(l="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",oe,s,l,_);if(r=="PKCS5PRV"&&G!==void 0&&n instanceof G&&s!==void 0&&s!=null&&n.isPrivate==1)return oe=z(n).getEncodedHex(),l===void 0&&(l="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",oe,s,l,_);var Fe=function(Te,nt){var dt=he(Te,nt);return new L({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:dt.pbkdf2Salt}},{int:dt.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:dt.encryptionSchemeIV}}]}]}]},{octstr:{hex:dt.ciphertext}}]}).getEncodedHex()},he=function(Te,nt){var dt=V.lib.WordArray.random(8),ot=V.lib.WordArray.random(8),Ot=V.PBKDF2(nt,dt,{keySize:6,iterations:100}),Tt=V.enc.Hex.parse(Te),Rt=V.TripleDES.encrypt(Tt,Ot,{iv:ot})+"",mt={};return mt.ciphertext=Rt,mt.pbkdf2Salt=V.enc.Hex.stringify(dt),mt.pbkdf2Iter=100,mt.encryptionSchemeAlg="DES-EDE3-CBC",mt.encryptionSchemeIV=V.enc.Hex.stringify(ot),mt};if(r=="PKCS8PRV"&&re!=null&&n instanceof re&&n.isPrivate==1){var Ne=ne(n).getEncodedHex();return oe=L({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:Ne}}]}).getEncodedHex(),s===void 0||s==null?It(oe,"PRIVATE KEY"):It(q=Fe(oe,s),"ENCRYPTED PRIVATE KEY")}if(r=="PKCS8PRV"&&ee!==void 0&&n instanceof ee&&n.isPrivate==1)return Ne=new L({seq:[{int:1},{octstr:{hex:n.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+n.pubKeyHex}}]}]}).getEncodedHex(),oe=L({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:n.curveName}}]},{octstr:{hex:Ne}}]}).getEncodedHex(),s===void 0||s==null?It(oe,"PRIVATE KEY"):It(q=Fe(oe,s),"ENCRYPTED PRIVATE KEY");if(r=="PKCS8PRV"&&G!==void 0&&n instanceof G&&n.isPrivate==1)return Ne=new C({b
66igint:n.x}).getEncodedHex(),oe=L({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:n.p}},{int:{bigint:n.q}},{int:{bigint:n.g}}]}]},{octstr:{hex:Ne}}]}).getEncodedHex(),s===void 0||s==null?It(oe,"PRIVATE KEY"):It(q=Fe(oe,s),"ENCRYPTED PRIVATE KEY");throw new Error("unsupported object nor format")},St.getKeyFromCSRPEM=function(n){var r=tr(n,"CERTIFICATE REQUEST");return St.getKeyFromCSRHex(r)},St.getKeyFromCSRHex=function(n){var r=St.parseCSRHex(n);return St.getKey(r.p8pubkeyhex,null,"pkcs8pub")},St.parseCSRHex=function(n){var r=ye,s=r.getChildIdx,l=r.getTLV,g={},_=n;if(_.substr(0,2)!="30")throw"malformed CSR(code:001)";var x=s(_,0);if(x.length<1)throw"malformed CSR(code:002)";if(_.substr(x[0],2)!="30")throw"malformed CSR(code:003)";var I=s(_,x[0]);if(I.length<3)throw"malformed CSR(code:004)";return g.p8pubkeyhex=l(_,I[2]),g},St.getKeyID=function(n){var r=St,s=ye;typeof n=="string"&&n.indexOf("BEGIN ")!=-1&&(n=r.getKey(n));var l=tr(r.getPEM(n)),g=s.getIdxbyList(l,0,[1]),_=s.getV(l,g).substring(2);return k.crypto.Util.hashHex(_,"sha1")},St.getJWKFromKey=function(n){var r={};if(n instanceof Pe&&n.isPrivate)return r.kty="RSA",r.n=Re(n.n.toString(16)),r.e=Re(n.e.toString(16)),r.d=Re(n.d.toString(16)),r.p=Re(n.p.toString(16)),r.q=Re(n.q.toString(16)),r.dp=Re(n.dmp1.toString(16)),r.dq=Re(n.dmq1.toString(16)),r.qi=Re(n.coeff.toString(16)),r;if(n instanceof Pe&&n.isPublic)return r.kty="RSA",r.n=Re(n.n.toString(16)),r.e=Re(n.e.toString(16)),r;if(n instanceof k.crypto.ECDSA&&n.isPrivate){if((l=n.getShortNISTPCurveName())!=="P-256"&&l!=="P-384")throw"unsupported curve name for JWT: "+l;var s=n.getPublicKeyXYHex();return r.kty="EC",r.crv=l,r.x=Re(s.x),r.y=Re(s.y),r.d=Re(n.prvKeyHex),r}if(n instanceof k.crypto.ECDSA&&n.isPublic){var l;if((l=n.getShortNISTPCurveName())!=="P-256"&&l!=="P-384")throw"unsupported curve name for JWT: "+l;return s=n.getPublicKeyXYHex(),r.kty="EC",r.crv=l,r.x=Re(s.x),r.y=Re(s.y),r}throw"not supported key object"},Pe.getPosArrayOfChildrenFromHex=function(n){return ye.getChildIdx(n,0)},Pe.getHexValueArrayOfChildrenFromHex=function(n){var r,s=ye.getV,l=s(n,(r=Pe.getPosArrayOfChildrenFromHex(n))[0]),g=s(n,r[1]),_=s(n,r[2]),x=s(n,r[3]),I=s(n,r[4]),P=s(n,r[5]),C=s(n,r[6]),L=s(n,r[7]),U=s(n,r[8]);return(r=new Array).push(l,g,_,x,I,P,C,L,U),r},Pe.prototype.readPrivateKeyFromPEMString=function(n){var r=tr(n),s=Pe.getHexValueArrayOfChildrenFromHex(r);this.setPrivateEx(s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8])},Pe.prototype.readPKCS5PrvKeyHex=function(n){var r=Pe.getHexValueArrayOfChildrenFromHex(n);this.setPrivateEx(r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8])},Pe.prototype.readPKCS8PrvKeyHex=function(n){var r,s,l,g,_,x,I,P,C=ye,L=C.getVbyListEx;if(C.isASN1HEX(n)===!1)throw new Error("not ASN.1 hex string");try{r=L(n,0,[2,0,1],"02"),s=L(n,0,[2,0,2],"02"),l=L(n,0,[2,0,3],"02"),g=L(n,0,[2,0,4],"02"),_=L(n,0,[2,0,5],"02"),x=L(n,0,[2,0,6],"02"),I=L(n,0,[2,0,7],"02"),P=L(n,0,[2,0,8],"02")}catch{throw new Error("malformed PKCS#8 plain RSA private key")}this.setPrivateEx(r,s,l,g,_,x,I,P)},Pe.prototype.readPKCS5PubKeyHex=function(n){var r=ye,s=r.getV;if(r.isASN1HEX(n)===!1)throw new Error("keyHex is not ASN.1 hex string");var l=r.getChildIdx(n,0);if(l.length!==2||n.substr(l[0],2)!=="02"||n.substr(l[1],2)!=="02")throw new Error("wrong hex for PKCS#5 public key");var g=s(n,l[0]),_=s(n,l[1]);this.setPublic(g,_)},Pe.prototype.readPKCS8PubKeyHex=function(n){var r=ye;if(r.isASN1HEX(n)===!1)throw new Error("not ASN.1 hex string");if(r.getTLVbyListEx(n,0,[0,0])!=="06092a864886f70d010101")throw new Error("not PKCS8 RSA public key");var s=r.getTLVbyListEx(n,0,[1,0]);this.readPKCS5PubKeyHex(s)},Pe.prototype.readCertPubKeyHex=function(n,r){var s,l;(s=new wt).readCertHex(n),l=s.getPublicKeyHex(),this.readPKCS8PubKeyHex(l)};var Su=new RegExp("[^0-9a-f]","gi");function jo(n,r){for(var s="",l=r/4-n.length,g=0;g<l;g++)s+="0";return s+n}function Lo(n,r,s){for(var l="",g=0;l.length<r;)l+=rt(s(ct(n+String.fromCharCode.apply(String,[(4278190080&g)>>24,(16711680&g)>>16,(65280&g)>>8,255&g])))),g+=1;return l}function zo(n){for(var r in k.crypto.Util.DIGESTINFOHEAD){var s=k.crypto.Util.DIGESTINFOHEAD[r],l=s.length;if(n.substring(0,l)==s)return[r,n.substring(l)]}return[]}function wt(n){var r,s=ye,l=s.getChildIdx,g=s.getV,_=s.getTLV,x=s.getVbyList,I=s.getVbyListEx,P=s.getTLVbyList,C=s.getTLVbyListEx,L=s.getIdxbyList,U=s.getIdxbyListEx,Y=s.getVidx,G=s.oidname,ee=s.hextooidstr,re=wt,ne=tr;try{r=k.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV}catch{}this.HEX2STAG={"0c":"utf8",13:"prn",16:"ia5","1a":"vis","1e":"bmp"},this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return this.hex===null||this.version!==0?this.version:P(this.hex,0,[0,0])!=="a003020102"?(this.version=1,this.foffset=-1,1):(this.version=3,3)}
66,this.getSerialNumberHex=function(){return I(this.hex,0,[0,0],"02")},this.getSignatureAlgorithmField=function(){var A=C(this.hex,0,[0,1]);return this.getAlgorithmIdentifierName(A)},this.getAlgorithmIdentifierName=function(A){for(var z in r)if(A===r[z])return z;return G(I(A,0,[0],"06"))},this.getIssuer=function(){return this.getX500Name(this.getIssuerHex())},this.getIssuerHex=function(){return P(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return re.hex2dn(this.getIssuerHex())},this.getSubject=function(){return this.getX500Name(this.getSubjectHex())},this.getSubjectHex=function(){return P(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return re.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var A=x(this.hex,0,[0,4+this.foffset,0]);return A=A.replace(/(..)/g,"%$1"),A=decodeURIComponent(A)},this.getNotAfter=function(){var A=x(this.hex,0,[0,4+this.foffset,1]);return A=A.replace(/(..)/g,"%$1"),A=decodeURIComponent(A)},this.getPublicKeyHex=function(){return s.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return L(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var A=this.getPublicKeyIdx();return L(this.hex,A,[1,0],"30")},this.getPublicKey=function(){return St.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){var A=P(this.hex,0,[1],"30");return this.getAlgorithmIdentifierName(A)},this.getSignatureValueHex=function(){return x(this.hex,0,[2],"03",!0)},this.verifySignature=function(A){var z=this.getSignatureAlgorithmField(),B=this.getSignatureValueHex(),q=P(this.hex,0,[0],"30"),te=new k.crypto.Signature({alg:z});return te.init(A),te.updateHex(q),te.verify(B)},this.parseExt=function(A){var z,B,q;if(A===void 0){if(q=this.hex,this.version!==3)return-1;z=L(q,0,[0,7,0],"30"),B=l(q,z)}else{q=tr(A);var te=L(q,0,[0,3,0,0],"06");if(g(q,te)!="2a864886f70d01090e")return void(this.aExtInfo=new Array);z=L(q,0,[0,3,0,1,0],"30"),B=l(q,z),this.hex=q}this.aExtInfo=new Array;for(var oe=0;oe<B.length;oe++){var Fe={critical:!1},he=0;l(q,B[oe]).length===3&&(Fe.critical=!0,he=1),Fe.oid=s.hextooidstr(x(q,B[oe],[0],"06"));var Ne=L(q,B[oe],[1+he]);Fe.vidx=Y(q,Ne),this.aExtInfo.push(Fe)}},this.getExtInfo=function(A){var z=this.aExtInfo,B=A;if(A.match(/^[0-9.]+$/)||(B=k.asn1.x509.OID.name2oid(A)),B!==""){for(var q=0;q<z.length;q++)if(z[q].oid===B)return z[q]}},this.getExtBasicConstraints=function(A,z){if(A===void 0&&z===void 0){var B=this.getExtInfo("basicConstraints");if(B===void 0)return;A=_(this.hex,B.vidx),z=B.critical}var q={extname:"basicConstraints"};if(z&&(q.critical=!0),A==="3000")return q;if(A==="30030101ff")return q.cA=!0,q;if(A.substr(0,12)==="30060101ff02"){var te=g(A,10),oe=parseInt(te,16);return q.cA=!0,q.pathLen=oe,q}throw new Error("hExtV parse error: "+A)},this.getExtKeyUsage=function(A,z){if(A===void 0&&z===void 0){var B=this.getExtInfo("keyUsage");if(B===void 0)return;A=_(this.hex,B.vidx),z=B.critical}var q={extname:"keyUsage"};return z&&(q.critical=!0),q.names=this.getExtKeyUsageString(A).split(","),q},this.getExtKeyUsageBin=function(A){if(A===void 0){var z=this.getExtInfo("keyUsage");if(z===void 0)return"";A=_(this.hex,z.vidx)}if(A.length!=8&&A.length!=10)throw new Error("malformed key usage value: "+A);var B="000000000000000"+parseInt(A.substr(6),16).toString(2);return A.length==8&&(B=B.slice(-8)),A.length==10&&(B=B.slice(-16)),(B=B.replace(/0+$/,""))==""&&(B="0"),B},this.getExtKeyUsageString=function(A){for(var z=this.getExtKeyUsageBin(A),B=new Array,q=0;q<z.length;q++)z.substr(q,1)=="1"&&B.push(wt.KEYUSAGE_NAME[q]);return B.join(",")},this.getExtSubjectKeyIdentifier=function(A,z){if(A===void 0&&z===void 0){var B=this.getExtInfo("subjectKeyIdentifier");if(B===void 0)return;A=_(this.hex,B.vidx),z=B.critical}var q={extname:"subjectKeyIdentifier"};z&&(q.critical=!0);var te=g(A,0);return q.kid={hex:te},q},this.getExtAuthorityKeyIdentifier=function(A,z){if(A===void 0&&z===void 0){var B=this.getExtInfo("authorityKeyIdentifier");if(B===void 0)return;A=_(this.hex,B.vidx),z=B.critical}var q={extname:"authorityKeyIdentifier"};z&&(q.critical=!0);for(var te=l(A,0),oe=0;oe<te.length;oe++){var Fe=A.substr(te[oe],2);if(Fe==="80"&&(q.kid={hex:g(A,te[oe])}),Fe==="a1"){var he=_(A,te[oe]),Ne=this.getGeneralNames(he);q.issuer=Ne[0].dn}Fe==="82"&&(q.sn={hex:g(A,te[oe])})}return q},this.getExtExtKeyUsage=function(A,z){if(A===void 0&&z===void 0){var B=this.getExtInfo("extKeyUsage");if(B===void 0)return;A=_(this.hex,B.vidx),z=B.critical}var q={extname:"extKeyUsage",array:[]};z&&(q.critical=!0);for(var te=l(A,0),oe=0;oe<te.length;oe++)q.array.push(G(g(A,te[oe])));return q},this.getExtExtKeyUsageName=function(){var A=this.getExtInfo("extKeyUsage");if(A===void 0)return A;var z=new Array,B=_(this.hex,A.vidx);if(B==="")return z;for(var q=l(B,0),te=0;te<q.length;te++)z.push(G(g(B,q[te])));return z},this.getExtSubjectAltName=function(A,z){if(A===void 0&&z===void 0){var B=this.getExtInfo("subjectAltName");if(B===void 0)return;A=_(this.hex,B.vidx),z=B.critical}var q={extname:"subjectAltName",array:[]};return z&&(q.critical=!0),q.array=this.getGeneralNames(A),q},this.getExtIssuerAltName=function(A,z){if(A===void 0&&z===void 0){var B=this.getExtInfo("issuerAltName");if(B===void 0)return;A=_(this.hex,B.vidx),z=B.critical}var q={extname:"issuerAltName",array:[]};return z&&(q.critical=!0),q.array=this.getGeneralNames(A),q},this.getGeneralNames=function(A){for(var z=l(A,0),B=[],q=0;q<z.length;q++){var te=this.getGeneralName(_(A,z[q]));te!==void 0&&B.push(te)}return B},this.getGeneralName=function(A){var z=A.substr(0,2),B=g(A,0),q=rt(B);return z=="81"?{rfc822:q}:z=="82"?{dns:q}:z=="86"?{uri:q}:z=="87"?{ip:yi(B)}:z=="a4"?{dn:this.getX500Name(B)}:void 0},this.getExtSubjectAltName2=function(){var A,z,B,q=this.getExtInfo("subjectAltName");if(q===void 0)return q;for(var te=new Array,oe=_(this.hex,q.vidx),Fe=l(oe,0),he=0;he<Fe.length;he++)B=oe.substr(Fe[he],2),A=g(oe,Fe[he]),B==="81"&&(z=Ze(A),te.push(["MAIL",z])),B==="82"&&(z=Ze(A),te.push(["DNS",z])),B==="84"&&(z=wt.hex2dn(A,0),te.push(["DN",z])),B==="86"&&(z=Ze(A),te.push(["URI",z])),B==="87"&&(z=yi(A),te.push(["IP",z]));return te},this.getExtCRLDistributionPoints=function(A,z){if(A===void 0&&z===void 0){var B=this.getExtInfo("cRLDistributionPoints");if(B===void 0)return;A=_(this.hex,B.vidx),z=B.critical}var q={extname:"cRLDistributionPoints",array:[]};z&&(q.critical=!0);for(var te=l(A,0),oe=0;oe<te.length;oe++){var Fe=_(A,te[oe]);q.array.push(this.getDistributionPoint(Fe))}return q},this.getDistributionPoint=function(A){for(var z={},B=l(A,0),q=0;q<B.length;q++){var te=A.substr(B[q],2),oe=_(A,B[q]);te=="a0"&&(z.dpname=this.getDistributionPointName(oe))}return z},this.getDistributionPointName=function(A){for(var z={},B=l(A,0),q=0;q<B.length;q++){var te=A.substr(B[q],2),oe=_(A,B[q]);te=="a0"&&(z.full=this.getGeneralNames(oe))}return z},this.getExtCRLDistributionPointsURI=function(){var A=this.getExtInfo("cRLDistributionPoints");if(A===void 0)return A;for(var z=new Array,B=l(this.hex,A.vidx),q=0;q<B.length;q++)try{var te=Ze(x(this.hex,B[q],[0,0,0],"86"));z.push(te)}catch{}return z},this.getExtAIAInfo=function(){var A=this.getExtInfo("authorityInfoAccess");if(A===void 0)return A;for(var z={ocsp:[],caissuer:[]},B=l(this.hex,A.vidx),q=0;q<B.length;q++){var te=x(this.hex,B[q],[0],"06"),oe=x(this.hex,B[q],[1],"86");te==="2b06010505073001"&&z.ocsp.push(Ze(oe)),te==="2b06010505073002"&&z.caissuer.push(Ze(oe))}return z},this.getExtAuthorityInfoAccess=function(A,z){if(A===void 0&&z===void 0){var B=this.getExtInfo("authorityInfoAccess");if(B===void 0)return;A=_(this.hex,B.vidx),z=B.critical}var q={extname:"authorityInfoAccess",array:[]};z&&(q.critical=!0);for(var te=l(A,0),oe=0;oe<te.length;oe++){var Fe=I(A,te[oe],[0],"06"),he=Ze(x(A,te[oe],[1],"86"));if(Fe=="2b06010505073001")q.array.push({ocsp:he});else{if(Fe!="2b06010505073002")throw new Error("unknown method: "+Fe);q.array.push({caissuer:he})}}return q},this.getExtCertificatePolicies=function(A,z){if(A===void 0&&z===void 0){var B=this.getExtInfo("certificatePolicies");if(B===void 0)return;A=_(this.hex,B.vidx),z=B.critical}var q={extname:"certificatePolicies",array:[]};z&&(q.critical=!0);for(var te=l(A,0),oe=0;oe<te.length;
66oe++){var Fe=_(A,te[oe]),he=this.getPolicyInformation(Fe);q.array.push(he)}return q},this.getPolicyInformation=function(A){var z={},B=x(A,0,[0],"06");z.policyoid=G(B);var q=U(A,0,[1],"30");if(q!=-1){z.array=[];for(var te=l(A,q),oe=0;oe<te.length;oe++){var Fe=_(A,te[oe]),he=this.getPolicyQualifierInfo(Fe);z.array.push(he)}}return z},this.getPolicyQualifierInfo=function(A){var z={},B=x(A,0,[0],"06");if(B==="2b06010505070201"){var q=I(A,0,[1],"16");z.cps=rt(q)}else if(B==="2b06010505070202"){var te=P(A,0,[1],"30");z.unotice=this.getUserNotice(te)}return z},this.getUserNotice=function(A){for(var z={},B=l(A,0),q=0;q<B.length;q++){var te=_(A,B[q]);te.substr(0,2)!="30"&&(z.exptext=this.getDisplayText(te))}return z},this.getDisplayText=function(A){var z={};return z.type={"0c":"utf8",16:"ia5","1a":"vis","1e":"bmp"}[A.substr(0,2)],z.str=rt(g(A,0)),z},this.getExtCRLNumber=function(A,z){var B={extname:"cRLNumber"};if(z&&(B.critical=!0),A.substr(0,2)=="02")return B.num={hex:g(A,0)},B;throw new Error("hExtV parse error: "+A)},this.getExtCRLReason=function(A,z){var B={extname:"cRLReason"};if(z&&(B.critical=!0),A.substr(0,2)=="0a")return B.code=parseInt(g(A,0),16),B;throw new Error("hExtV parse error: "+A)},this.getExtOcspNonce=function(A,z){var B={extname:"ocspNonce"};z&&(B.critical=!0);var q=g(A,0);return B.hex=q,B},this.getExtOcspNoCheck=function(A,z){var B={extname:"ocspNoCheck"};return z&&(B.critical=!0),B},this.getExtAdobeTimeStamp=function(A,z){if(A===void 0&&z===void 0){var B=this.getExtInfo("adobeTimeStamp");if(B===void 0)return;A=_(this.hex,B.vidx),z=B.critical}var q={extname:"adobeTimeStamp"};z&&(q.critical=!0);var te=l(A,0);if(te.length>1){var oe=_(A,te[1]),Fe=this.getGeneralName(oe);Fe.uri!=null&&(q.uri=Fe.uri)}if(te.length>2){var he=_(A,te[2]);he=="0101ff"&&(q.reqauth=!0),he=="010100"&&(q.reqauth=!1)}return q},this.getX500NameRule=function(A){for(var z=null,B=[],q=0;q<A.length;q++)for(var te=A[q],oe=0;oe<te.length;oe++)B.push(te[oe]);for(q=0;q<B.length;q++){var Fe=B[q],he=Fe.ds,Ne=Fe.value,we=Fe.type;if(he!="prn"&&he!="utf8"&&he!="ia5")return"mixed";if(he=="ia5"){if(we!="CN")return"mixed";if(k.lang.String.isMail(Ne))continue;return"mixed"}if(we=="C"){if(he=="prn")continue;return"mixed"}if(z==null)z=he;else if(z!==he)return"mixed"}return z??"prn"},this.getX500Name=function(A){var z=this.getX500NameArray(A);return{array:z,str:this.dnarraytostr(z)}},this.getX500NameArray=function(A){for(var z=[],B=l(A,0),q=0;q<B.length;q++)z.push(this.getRDN(_(A,B[q])));return z},this.getRDN=function(A){for(var z=[],B=l(A,0),q=0;q<B.length;q++)z.push(this.getAttrTypeAndValue(_(A,B[q])));return z},this.getAttrTypeAndValue=function(A){var z={type:null,value:null,ds:null},B=l(A,0),q=x(A,B[0],[],"06"),te=x(A,B[1],[]),oe=k.asn1.ASN1Util.oidHexToInt(q);return z.type=k.asn1.x509.OID.oid2atype(oe),z.value=rt(te),z.ds=this.HEX2STAG[A.substr(B[1],2)],z},this.readCertPEM=function(A){this.readCertHex(ne(A))},this.readCertHex=function(A){this.hex=A,this.getVersion();try{L(this.hex,0,[0,7],"a3"),this.parseExt()}catch{}},this.getParam=function(){var A={};return A.version=this.getVersion(),A.serial={hex:this.getSerialNumberHex()},A.sigalg=this.getSignatureAlgorithmField(),A.issuer=this.getIssuer(),A.notbefore=this.getNotBefore(),A.notafter=this.getNotAfter(),A.subject=this.getSubject(),A.sbjpubkey=It(this.getPublicKeyHex(),"PUBLIC KEY"),this.aExtInfo.length>0&&(A.ext=this.getExtParamArray()),A.sighex=this.getSignatureValueHex(),A},this.getExtParamArray=function(A){A==null&&U(this.hex,0,[0,"[3]"])!=-1&&(A=C(this.hex,0,[0,"[3]",0],"30"));for(var z=[],B=l(A,0),q=0;q<B.length;q++){var te=_(A,B[q]),oe=this.getExtParam(te);oe!=null&&z.push(oe)}return z},this.getExtParam=function(A){var z=l(A,0).length;if(z!=2&&z!=3)throw new Error("wrong number elements in Extension: "+z+" "+A);var B=ee(x(A,0,[0],"06")),q=!1;z==3&&P(A,0,[1])=="0101ff"&&(q=!0);var te=P(A,0,[z-1,0]),oe=void 0;if(B=="2.5.29.14"?oe=this.getExtSubjectKeyIdentifier(te,q):B=="2.5.29.15"?oe=this.getExtKeyUsage(te,q):B=="2.5.29.17"?oe=this.getExtSubjectAltName(te,q):B=="2.5.29.18"?oe=this.getExtIssuerAltName(te,q):B=="2.5.29.19"?oe=this.getExtBasicConstraints(te,q):B=="2.5.29.31"?oe=this.getExtCRLDistributionPoints(te,q):B=="2.5.29.32"?oe=this.getExtCertificatePolicies(te,q):B=="2.5.29.35"?oe=this.getExtAuthorityKeyIdentifier(te,q):B=="2.5.29.37"?oe=this.getExtExtKeyUsage(te,q):B=="1.3.6.1.5.5.7.1.1"?oe=this.getExtAuthorityInfoAccess(te,q):B=="2.5.29.20"?oe=this.getExtCRLNumber(te,q):B=="2.5.29.21"?oe=this.getExtCRLReason(te,q):B=="1.3.6.1.5.5.7.48.1.2"?oe=this.getExtOcspNonce(te,q):B=="1.3.6.1.5.5.7.48.1.5"?oe=this.getExtOcspNoCheck(te,q):B=="1.2.840.113583.1.1.9.1"&&(oe=this.getExtAdobeTimeStamp(te,q)),oe!=null)return oe;var Fe={extname:B,extn:te};return q&&(Fe.critical=!0),Fe},this.findExt=function(A,z){for(var B=0;B<A.length;B++)if(A[B].extname==z)return A[B];return null},this.updateExtCDPFullURI=function(A,z){var B=this.findExt(A,"cRLDistributionPoints");if(B!=null&&B.array!=null){for(var q=B.array,te=0;te<q.length;te++)if(q[te].dpname!=null&&q[te].dpname.full!=null)for(var oe=q[te].dpname.full,Fe=0;Fe<oe.length;Fe++){var he=oe[te];
66he.uri!=null&&(he.uri=z)}}},this.updateExtAIAOCSP=function(A,z){var B=this.findExt(A,"authorityInfoAccess");if(B!=null&&B.array!=null)for(var q=B.array,te=0;te<q.length;te++)q[te].ocsp!=null&&(q[te].ocsp=z)},this.updateExtAIACAIssuer=function(A,z){var B=this.findExt(A,"authorityInfoAccess");if(B!=null&&B.array!=null)for(var q=B.array,te=0;te<q.length;te++)q[te].caissuer!=null&&(q[te].caissuer=z)},this.dnarraytostr=function(A){return"/"+A.map((function(z){return(function(q){return q.map((function(te){return(function(Fe){return Fe.type+"="+Fe.value})(te)})).join("+")})(z)})).join("/")},this.getInfo=function(){var A,z,B,q=function(Ot){return JSON.stringify(Ot.array).replace(/[\[\]\{\}\"]/g,"")},te=function(Ot){for(var Tt="",Rt=Ot.array,mt=0;mt<Rt.length;mt++){var bt=Rt[mt];if(Tt+=" policy oid: "+bt.policyoid+` 67`,bt.array!==void 0)for(var kt=0;kt<bt.array.length;kt++){var Ct=bt.array[kt];Ct.cps!==void 0&&(Tt+=" cps: "+Ct.cps+` 68`)}}return Tt},oe=function(Ot){for(var Tt="",Rt=Ot.array,mt=0;mt<Rt.length;mt++){var bt=Rt[mt];try{bt.dpname.full[0].uri!==void 0&&(Tt+=" "+bt.dpname.full[0].uri+` 69`)}catch{}try{bt.dname.full[0].dn.hex!==void 0&&(Tt+=" "+wt.hex2dn(bt.dpname.full[0].dn.hex)+` 70`)}catch{}}return Tt},Fe=function(Ot){for(var Tt="",Rt=Ot.array,mt=0;mt<Rt.length;mt++){var bt=Rt[mt];bt.caissuer!==void 0&&(Tt+=" caissuer: "+bt.caissuer+` 71`),bt.ocsp!==void 0&&(Tt+=" ocsp: "+bt.ocsp+` 72`)}return Tt};if(A=`Basic Fields 73`,A+=" serial number: "+this.getSerialNumberHex()+` 74`,A+=" signature algorithm: "+this.getSignatureAlgorithmField()+` 75`,A+=" issuer: "+this.getIssuerString()+` 76`,A+=" notBefore: "+this.getNotBefore()+` 77`,A+=" notAfter: "+this.getNotAfter()+` 78`,A+=" subject: "+this.getSubjectString()+` 79`,A+=` subject public key info: 80`,A+=" key algorithm: "+(z=this.getPublicKey()).type+` 81`,z.type==="RSA"&&(A+=" n="+_i(z.n.toString(16)).substr(0,16)+`... 82`,A+=" e="+_i(z.e.toString(16))+` 83`),(B=this.aExtInfo)!=null){A+=`X509v3 Extensions: 84`;for(var he=0;he<B.length;he++){var Ne=B[he],we=k.asn1.x509.OID.oid2name(Ne.oid);we===""&&(we=Ne.oid);var Te="";if(Ne.critical===!0&&(Te="CRITICAL"),A+=" "+we+" "+Te+`: 85`,we==="basicConstraints"){var nt=this.getExtBasicConstraints();nt.cA===void 0?A+=` {} 86`:(A+=" cA=true",nt.pathLen!==void 0&&(A+=", pathLen="+nt.pathLen),A+=` 87`)}else if(we==="keyUsage")A+=" "+this.getExtKeyUsageString()+` 88`;else if(we==="subjectKeyIdentifier")A+=" "+this.getExtSubjectKeyIdentifier().kid.hex+` 89`;else if(we==="authorityKeyIdentifier"){var dt=this.getExtAuthorityKeyIdentifier();dt.kid!==void 0&&(A+=" kid="+dt.kid.hex+` 90`)}else we==="extKeyUsage"?A+=" "+this.getExtExtKeyUsage().array.join(", ")+` 91`:we==="subjectAltName"?A+=" "+q(this.getExtSubjectAltName())+` 92`:we==="cRLDistributionPoints"?A+=oe(this.getExtCRLDistributionPoints()):we==="authorityInfoAccess"?A+=Fe(this.getExtAuthorityInfoAccess()):we==="certificatePolicies"&&(A+=te(this.getExtCertificatePolicies()))}}return A+="signature algorithm: "+this.getSignatureAlgorithmName()+` 93`,A+="signature: "+this.getSignatureValueHex().substr(0,16)+`... 94`},typeof n=="string"&&(n.indexOf("-----BEGIN")!=-1?this.readCertPEM(n):k.lang.String.isHex(n)&&this.readCertHex(n))}Pe.prototype.sign=function(n,r){var s=(function(g){return k.crypto.Util.hashString(g,r)})(n);return this.signWithMessageHash(s,r)},Pe.prototype.signWithMessageHash=function(n,r){var s=vt(k.crypto.Util.getPaddedDigestInfoHex(n,r,this.n.bitLength()),16);return jo(this.doPrivate(s).toString(16),this.n.bitLength())},Pe.prototype.signPSS=function(n,r,s){var l=(function(_){return k.crypto.Util.hashHex(_,r)})(ct(n));return s===void 0&&(s=-1),this.signWithMessageHashPSS(l,r,s)},Pe.prototype.signWithMessageHashPSS=function(n,r,s){var l,g=rt(n),_=g.length,x=this.n.bitLength()-1,I=Math.ceil(x/8),P=function(A){return k.crypto.Util.hashHex(A,r)};if(s===-1||s===void 0)s=_;else if(s===-2)s=I-_-2;else if(s<-2)throw new Error("invalid salt length");if(I<_+s+2)throw new Error("data too long");var C="";s>0&&(C=new Array(s),new lt().nextBytes(C),C=String.fromCharCode.apply(String,C));var L=rt(P(ct("\0\0\0\0\0\0\0\0"+g+C))),U=[];for(l=0;l<I-s-_-2;l+=1)U[l]=0;var Y=String.fromCharCode.apply(String,U)+"�"+C,G=Lo(L,Y.length,P),ee=[];for(l=0;l<Y.length;l+=1)ee[l]=Y.charCodeAt(l)^G.charCodeAt(l);var re=65280>>8*I-x&255;for(ee[0]&=~re,l=0;l<_;l++)ee.push(L.charCodeAt(l));
94return ee.push(188),jo(this.doPrivate(new K(ee)).toString(16),this.n.bitLength())},Pe.prototype.verify=function(n,r){var s=vt(r=(r=r.replace(Su,"")).replace(/[ \n]+/g,""),16);if(s.bitLength()>this.n.bitLength())return 0;var l=zo(this.doPublic(s).toString(16).replace(/^1f+00/,""));if(l.length==0)return!1;var g=l[0];return l[1]==(function(x){return k.crypto.Util.hashString(x,g)})(n)},Pe.prototype.verifyWithMessageHash=function(n,r){if(r.length!=Math.ceil(this.n.bitLength()/4))return!1;var s=vt(r,16);if(s.bitLength()>this.n.bitLength())return 0;var l=zo(this.doPublic(s).toString(16).replace(/^1f+00/,""));return l.length==0?!1:(l[0],l[1]==n)},Pe.prototype.verifyPSS=function(n,r,s,l){var g=(function(x){return k.crypto.Util.hashHex(x,s)})(ct(n));return l===void 0&&(l=-1),this.verifyWithMessageHashPSS(g,r,s,l)},Pe.prototype.verifyWithMessageHashPSS=function(n,r,s,l){if(r.length!=Math.ceil(this.n.bitLength()/4))return!1;var g,_=new K(r,16),x=function(B){return k.crypto.Util.hashHex(B,s)},I=rt(n),P=I.length,C=this.n.bitLength()-1,L=Math.ceil(C/8);if(l===-1||l===void 0)l=P;else if(l===-2)l=L-P-2;else if(l<-2)throw new Error("invalid salt length");if(L<P+l+2)throw new Error("data too long");var U=this.doPublic(_).toByteArray();for(g=0;g<U.length;g+=1)U[g]&=255;for(;U.length<L;)U.unshift(0);if(U[L-1]!==188)throw new Error("encoded message does not end in 0xbc");var Y=(U=String.fromCharCode.apply(String,U)).substr(0,L-P-1),G=U.substr(Y.length,P),ee=65280>>8*L-C&255;if((Y.charCodeAt(0)&ee)!=0)throw new Error("bits beyond keysize not zero");var re=Lo(G,Y.length,x),ne=[];for(g=0;g<Y.length;g+=1)ne[g]=Y.charCodeAt(g)^re.charCodeAt(g);ne[0]&=~ee;var A=L-P-l-2;for(g=0;g<A;g+=1)if(ne[g]!==0)throw new Error("leftmost octets not zero");if(ne[A]!==1)throw new Error("0x01 marker not found");return G===rt(x(ct("\0\0\0\0\0\0\0\0"+I+String.fromCharCode.apply(String,ne.slice(-l)))))},Pe.SALT_LEN_HLEN=-1,Pe.SALT_LEN_MAX=-2,Pe.SALT_LEN_RECOVER=-2,wt.hex2dn=function(n,r){if(r===void 0&&(r=0),n.substr(r,2)!=="30")throw new Error("malformed DN");for(var s=new Array,l=ye.getChildIdx(n,r),g=0;g<l.length;g++)s.push(wt.hex2rdn(n,l[g]));return"/"+(s=s.map((function(_){return _.replace("/","\\/")}))).join("/")},wt.hex2rdn=function(n,r){if(r===void 0&&(r=0),n.substr(r,2)!=="31")throw new Error("malformed RDN");for(var s=new Array,l=ye.getChildIdx(n,r),g=0;g<l.length;g++)s.push(wt.hex2attrTypeValue(n,l[g]));return(s=s.map((function(_){return _.replace("+","\\+")}))).join("+")},wt.hex2attrTypeValue=function(n,r){var s=ye,l=s.getV;if(r===void 0&&(r=0),n.substr(r,2)!=="30")throw new Error("malformed attribute type and value");var g=s.getChildIdx(n,r);g.length!==2||n.substr(g[0],2);var _=l(n,g[0]),x=k.asn1.ASN1Util.oidHexToInt(_);return k.asn1.x509.OID.oid2atype(x)+"="+rt(l(n,g[1]))},wt.getPublicKeyFromCertHex=function(n){var r=new wt;return r.readCertHex(n),r.getPublicKey()},wt.getPublicKeyFromCertPEM=function(n){var r=new wt;return r.readCertPEM(n),r.getPublicKey()},wt.getPublicKeyInfoPropOfCertPEM=function(n){var r,s,l=ye.getVbyList,g={};return g.algparam=null,(r=new wt).readCertPEM(n),s=r.getPublicKeyHex(),g.keyhex=l(s,0,[1],"03").substr(2),g.algoid=l(s,0,[0,0],"06"),g.algoid==="2a8648ce3d0201"&&(g.algparam=l(s,0,[0,1],"06")),g},wt.KEYUSAGE_NAME=["digitalSignature","nonRepudiation","keyEncipherment","dataEncipherment","keyAgreement","keyCertSign","cRLSign","encipherOnly","decipherOnly"],k!==void 0&&k||(i.KJUR=k={}),k.jws!==void 0&&k.jws||(k.jws={}),k.jws.JWS=function(){var n=k.jws.JWS.isSafeJSONString;this.parseJWS=function(r,s){if(this.parsedJWS===void 0||!s&&this.parsedJWS.sigvalH===void 0){var l=r.match(/^([^.]+)\.([^.]+)\.([^.]+)$/);if(l==null)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";var g=l[1],_=l[2],x=l[3],I=g+"."+_;if(this.parsedJWS={},this.parsedJWS.headB64U=g,this.parsedJWS.payloadB64U=_,this.parsedJWS.sigvalB64U=x,this.parsedJWS.si=I,!s){var P=ke(x),C=vt(P,16);this.parsedJWS.sigvalH=P,this.parsedJWS.sigvalBI=C}var L=Ut(g),U=Ut(_);if(this.parsedJWS.headS=L,this.parsedJWS.payloadS=U,!n(L,this.parsedJWS,"headP"))throw"malformed JSON string for JWS Head: "+L}}},k.jws.JWS.sign=function(n,r,s,l,g){var _,x,I,P=k,C=P.jws.JWS,L=C.readSafeJSONString,U=C.isSafeJSONString,Y=P.crypto,G=(Y.ECDSA,Y.Mac),ee=Y.Signature,re=JSON;if(typeof r!="string"&&(r===void 0?"undefined":u(r))!="object")throw"spHeader must be JSON string or object: "+r;if((r===void 0?"undefined":u(r))=="object"&&(x=r,_=re.stringify(x)),typeof r=="string"){if(!U(_=r))throw"JWS Head is not safe JSON string: "+_;x=L(_)}
94if(I=s,(s===void 0?"undefined":u(s))=="object"&&(I=re.stringify(s)),n!=""&&n!=null||x.alg===void 0||(n=x.alg),n!=""&&n!=null&&x.alg===void 0&&(x.alg=n,_=re.stringify(x)),n!==x.alg)throw"alg and sHeader.alg doesn't match: "+n+"!="+x.alg;var ne=null;if(C.jwsalg2sigalg[n]===void 0)throw"unsupported alg name: "+n;ne=C.jwsalg2sigalg[n];var A=kr(_)+"."+kr(I),z="";if(ne.substr(0,4)=="Hmac"){if(l===void 0)throw"mac key shall be specified for HS* alg";var B=new G({alg:ne,prov:"cryptojs",pass:l});B.updateString(A),z=B.doFinal()}else if(ne.indexOf("withECDSA")!=-1){(te=new ee({alg:ne})).init(l,g),te.updateString(A);var q=te.sign();z=k.crypto.ECDSA.asn1SigToConcatSig(q)}else{var te;ne!="none"&&((te=new ee({alg:ne})).init(l,g),te.updateString(A),z=te.sign())}return A+"."+Re(z)},k.jws.JWS.verify=function(n,r,s){var l,g=k,_=g.jws.JWS,x=_.readSafeJSONString,I=g.crypto,P=I.ECDSA,C=I.Mac,L=I.Signature;u(Pe)!==void 0&&(l=Pe);var U=n.split(".");if(U.length!==3)return!1;var Y=U[0]+"."+U[1],G=ke(U[2]),ee=x(Ut(U[0])),re=null,ne=null;if(ee.alg===void 0)throw"algorithm not specified in header";if(ne=(re=ee.alg).substr(0,2),s!=null&&Object.prototype.toString.call(s)==="[object Array]"&&s.length>0&&(":"+s.join(":")+":").indexOf(":"+re+":")==-1)throw"algorithm '"+re+"' not accepted in the list";if(re!="none"&&r===null)throw"key shall be specified to verify.";if(typeof r=="string"&&r.indexOf("-----BEGIN ")!=-1&&(r=St.getKey(r)),!(ne!="RS"&&ne!="PS"||r instanceof l))throw"key shall be a RSAKey obj for RS* and PS* algs";if(ne=="ES"&&!(r instanceof P))throw"key shall be a ECDSA obj for ES* algs";var A=null;if(_.jwsalg2sigalg[ee.alg]===void 0)throw"unsupported alg name: "+re;if((A=_.jwsalg2sigalg[re])=="none")throw"not supported";if(A.substr(0,4)=="Hmac"){if(r===void 0)throw"hexadecimal key shall be specified for HMAC";var z=new C({alg:A,pass:r});return z.updateString(Y),G==z.doFinal()}if(A.indexOf("withECDSA")!=-1){var B,q=null;try{q=P.concatSigToASN1Sig(G)}catch{return!1}return(B=new L({alg:A})).init(r),B.updateString(Y),B.verify(q)}return(B=new L({alg:A})).init(r),B.updateString(Y),B.verify(G)},k.jws.JWS.parse=function(n){var r,s,l,g=n.split("."),_={};if(g.length!=2&&g.length!=3)throw"malformed sJWS: wrong number of '.' splitted elements";return r=g[0],s=g[1],g.length==3&&(l=g[2]),_.headerObj=k.jws.JWS.readSafeJSONString(Ut(r)),_.payloadObj=k.jws.JWS.readSafeJSONString(Ut(s)),_.headerPP=JSON.stringify(_.headerObj,null," "),_.payloadObj==null?_.payloadPP=Ut(s):_.payloadPP=JSON.stringify(_.payloadObj,null," "),l!==void 0&&(_.sigHex=ke(l)),_},k.jws.JWS.verifyJWT=function(n,r,s){var l=k.jws,g=l.JWS,_=g.readSafeJSONString,x=g.inArray,I=g.includedArray,P=n.split("."),C=P[0],L=P[1],U=(ke(P[2]),_(Ut(C))),Y=_(Ut(L));if(U.alg===void 0)return!1;if(s.alg===void 0)throw"acceptField.alg shall be specified";if(!x(U.alg,s.alg)||Y.iss!==void 0&&u(s.iss)==="object"&&!x(Y.iss,s.iss)||Y.sub!==void 0&&u(s.sub)==="object"&&!x(Y.sub,s.sub))return!1;if(Y.aud!==void 0&&u(s.aud)==="object"){if(typeof Y.aud=="string"){if(!x(Y.aud,s.aud))return!1}else if(u(Y.aud)=="object"&&!I(Y.aud,s.aud))return!1}var G=l.IntDate.getNow();return s.verifyAt!==void 0&&typeof s.verifyAt=="number"&&(G=s.verifyAt),s.gracePeriod!==void 0&&typeof s.gracePeriod=="number"||(s.gracePeriod=0),!(Y.exp!==void 0&&typeof Y.exp=="number"&&Y.exp+s.gracePeriod<G)&&!(Y.nbf!==void 0&&typeof Y.nbf=="number"&&G<Y.nbf-s.gracePeriod)&&!(Y.iat!==void 0&&typeof Y.iat=="number"&&G<Y.iat-s.gracePeriod)&&(Y.jti===void 0||s.jti===void 0||Y.jti===s.jti)&&!!g.verify(n,r,s.alg)},k.jws.JWS.includedArray=function(n,r){var s=k.jws.JWS.inArray;if(n===null||(n===void 0?"undefined":u(n))!=="object"||typeof n.length!="number")return!1;for(var l=0;l<n.length;l++)if(!s(n[l],r))return!1;return!0},k.jws.JWS.inArray=function(n,r){if(r===null||(r===void 0?"undefined":u(r))!=="object"||typeof r.length!="number")return!1;for(var s=0;s<r.length;s++)if(r[s]==n)return!0;return!1},k.jws.JWS.jwsalg2sigalg={HS256:"HmacSHA256",HS384:"HmacSHA384",HS512:"HmacSHA512",RS256:"SHA256withRSA",RS384:"SHA384withRSA",RS512:"SHA512withRSA",ES256:"SHA256withECDSA",ES384:"SHA384withECDSA",PS256:"SHA256withRSAandMGF1",PS384:"SHA384withRSAandMGF1",PS512:"SHA512withRSAandMGF1",none:"none"},k.jws.JWS.isSafeJSONString=function(n,r,s){var l=null;try{return((l=Ur(n))===void 0?"undefined":u(l))!="object"||l.constructor===Array?0:(r&&(r[s]=l),1)}catch{return 0}},k.jws.JWS.readSafeJSONString=function(n){var r=null;try{return((r=Ur(n))===void 0?"undefined":u(r))!="object"||r.constructor===Array?null:r}catch{return null}},k.jws.JWS.getEncodedSignatureValueFromJWS=function(n){var r=n.match(/^[^.]+\.[^.]+\.([^.]+)$/);if(r==null)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";return r[1]},k.jws.JWS.getJWKthumbprint=function(n){if(n.kty!=="RSA"&&n.kty!=="EC"&&n.kty!=="oct")throw"unsupported algorithm for JWK Thumprint";var r="{";
94if(n.kty==="RSA"){if(typeof n.n!="string"||typeof n.e!="string")throw"wrong n and e value for RSA key";r+='"e":"'+n.e+'",',r+='"kty":"'+n.kty+'",',r+='"n":"'+n.n+'"}'}else if(n.kty==="EC"){if(typeof n.crv!="string"||typeof n.x!="string"||typeof n.y!="string")throw"wrong crv, x and y value for EC key";r+='"crv":"'+n.crv+'",',r+='"kty":"'+n.kty+'",',r+='"x":"'+n.x+'",',r+='"y":"'+n.y+'"}'}else if(n.kty==="oct"){if(typeof n.k!="string")throw"wrong k value for oct(symmetric) key";r+='"kty":"'+n.kty+'",',r+='"k":"'+n.k+'"}'}var s=ct(r);return Re(k.crypto.Util.hashHex(s,"sha256"))},k.jws.IntDate={},k.jws.IntDate.get=function(n){var r=k.jws.IntDate,s=r.getNow,l=r.getZulu;if(n=="now")return s();if(n=="now + 1hour")return s()+3600;if(n=="now + 1day")return s()+86400;if(n=="now + 1month")return s()+2592e3;if(n=="now + 1year")return s()+31536e3;if(n.match(/Z$/))return l(n);if(n.match(/^[0-9]+$/))return parseInt(n);throw"unsupported format: "+n},k.jws.IntDate.getZulu=function(n){return Do(n)},k.jws.IntDate.getNow=function(){return~~(new Date/1e3)},k.jws.IntDate.intDate2UTCString=function(n){return new Date(1e3*n).toUTCString()},k.jws.IntDate.intDate2Zulu=function(n){var r=new Date(1e3*n);return("0000"+r.getUTCFullYear()).slice(-4)+("00"+(r.getUTCMonth()+1)).slice(-2)+("00"+r.getUTCDate()).slice(-2)+("00"+r.getUTCHours()).slice(-2)+("00"+r.getUTCMinutes()).slice(-2)+("00"+r.getUTCSeconds()).slice(-2)+"Z"},i.SecureRandom=lt,i.rng_seed_time=ue,i.BigInteger=K,i.RSAKey=Pe;var wu=k.crypto.EDSA;i.EDSA=wu;var bu=k.crypto.DSA;i.DSA=bu;var Eu=k.crypto.Signature;i.Signature=Eu;var Fu=k.crypto.MessageDigest;i.MessageDigest=Fu;var xu=k.crypto.Mac;i.Mac=xu;var Au=k.crypto.Cipher;i.Cipher=Au,i.KEYUTIL=St,i.ASN1HEX=ye,i.X509=wt,i.CryptoJS=V,i.b64tohex=de,i.b64toBA=ve,i.stoBA=vi,i.BAtos=en,i.BAtohex=wr,i.stohex=me,i.stob64=function(r){return le(me(r))},i.stob64u=function(r){return Ae(le(me(r)))},i.b64utos=function(r){return en(ve(Oe(r)))},i.b64tob64u=Ae,i.b64utob64=Oe,i.hex2b64=le,i.hextob64u=Re,i.b64utohex=ke,i.utf8tob64u=kr,i.b64utoutf8=Ut,i.utf8tob64=function(r){return le(En(xn(r)))},i.b64toutf8=function(r){return decodeURIComponent(Fn(de(r)))},i.utf8tohex=gt,i.hextoutf8=Ze,i.hextorstr=rt,i.rstrtohex=ct,i.hextob64=Mt,i.hextob64nl=Pr,i.b64nltohex=To,i.hextopem=It,i.pemtohex=tr,i.hextoArrayBuffer=function(r){if(r.length%2!=0)throw"input is not even length";if(r.match(/^[0-9A-Fa-f]+$/)==null)throw"input is not hexadecimal";for(var s=new ArrayBuffer(r.length/2),l=new DataView(s),g=0;g<r.length/2;g++)l.setUint8(g,parseInt(r.substr(2*g,2),16));return s},i.ArrayBuffertohex=function(r){for(var s="",l=new DataView(r),g=0;g<r.byteLength;g++)s+=("00"+l.getUint8(g).toString(16)).slice(-2);return s},i.zulutomsec=mi,i.zulutosec=Do,i.zulutodate=function(r){return new Date(mi(r))},i.datetozulu=function(r,s,l){var g,_=r.getUTCFullYear();if(s){if(_<1950||2049<_)throw"not proper year for UTCTime: "+_;g=(""+_).slice(-2)}else g=("000"+_).slice(-4);if(g+=("0"+(r.getUTCMonth()+1)).slice(-2),g+=("0"+r.getUTCDate()).slice(-2),g+=("0"+r.getUTCHours()).slice(-2),g+=("0"+r.getUTCMinutes()).slice(-2),g+=("0"+r.getUTCSeconds()).slice(-2),l){var x=r.getUTCMilliseconds();x!==0&&(g+="."+(x=(x=("00"+x).slice(-3)).replace(/0+$/g,"")))}return g+="Z"},i.uricmptohex=En,i.hextouricmp=Fn,i.ipv6tohex=Ro,i.hextoipv6=Co,i.hextoip=yi,i.iptohex=function(r){var s="malformed IP address";if(!(r=r.toLowerCase(r)).match(/^[0-9.]+$/)){if(r.match(/^[0-9a-f:]+$/)&&r.indexOf(":")!==-1)return Ro(r);throw s}var l=r.split(".");if(l.length!==4)throw s;var g="";try{for(var _=0;_<4;_++)g+=("0"+parseInt(l[_]).toString(16)).slice(-2);return g}catch{throw s}},i.encodeURIComponentAll=xn,i.newline_toUnix=function(r){return r=r.replace(/\r\n/gm,` 95`)},i.newline_toDos=function(r){return r=(r=r.replace(/\r\n/gm,` 96`)).replace(/\n/gm,`\r 97`)},i.hextoposhex=_i,i.intarystrtohex=function(r){r=(r=(r=r.replace(/^\s*\[\s*/,"")).replace(/\s*\]\s*$/,"")).replace(/\s*/g,"");try{return r.split(/,/).map((function(s,l,g){var _=parseInt(s);if(_<0||255<_)throw"integer not in range 0-255";return("00"+_.toString(16)).slice(-2)})).join("")}catch(s){throw"malformed integer array string: "+s}},i.strdiffidx=function(r,s){var l=r.length;r.length>s.length&&(l=s.length);for(var g=0;g<l;g++)if(r.charCodeAt(g)!=s.charCodeAt(g))return g;return r.length!=s.length?l:-1},i.KJUR=k;var ku=k.crypto;i.crypto=ku;var Pu=k.asn1;i.asn1=Pu;var Tu=k.jws;i.jws=Tu;var Du=k.lang;i.lang=Du}).call(this,a(28).Buffer)},function(o,i,a){(function(c){/*! 98 * The buffer module from node.js, for the browser. 99 * 100 * @author Feross Aboukhadijeh <http://feross.org> 101 * @license MIT 102 */var u=a(30),m=a(31),f=a(32);function d(){return p.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function h(M,S){if(d()<S)throw new RangeError("Invalid typed array length");return p.TYPED_ARRAY_SUPPORT?(M=new Uint8Array(S)).__proto__=p.prototype:(M===null&&(M=new p(S)),M.length=S),M}function p(M,S,w){if(!(p.TYPED_ARRAY_SUPPORT||this instanceof p))return new p(M,S,w);if(typeof M=="number"){if(typeof S=="string")throw new Error("If encoding is specified then the first argument must be a string");return b(this,M)}return v(this,M,S,w)}function v(M,S,w,H){if(typeof S=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&S instanceof ArrayBuffer?(function(X,ue,be,Ie){if(ue.byteLength,be<0||ue.byteLength<be)throw new RangeError("'offset' is out of bounds");if(ue.byteLength<be+(Ie||0))throw new RangeError("'length' is out of bounds");return ue=be===void 0&&Ie===void 0?new Uint8Array(ue):Ie===void 0?new Uint8Array(ue,be):new Uint8Array(ue,be,Ie),p.TYPED_ARRAY_SUPPORT?(X=ue).__proto__=p.prototype:X=T(X,ue),X})(M,S,w,H):typeof S=="string"?(function(X,ue,be){if(typeof be=="string"&&be!==""||(be="utf8"),!p.isEncoding(be))throw new TypeError('"encoding" must be a valid string encoding');var Ie=0|j(ue,be),$e=(X=h(X,Ie)).write(ue,be);return $e!==Ie&&(X=X.slice(0,$e)),X})(M,S,w):(function(X,ue){if(p.isBuffer(ue)){var be=0|R(ue.length);return(X=h(X,be)).length===0||ue.copy(X,0,0,be),X}if(ue){if(typeof ArrayBuffer<"u"&&ue.buffer instanceof ArrayBuffer||"length"in ue)return typeof ue.length!="number"||(function($e){return $e!=$e})(ue.length)?h(X,0):T(X,ue);if(ue.type==="Buffer"&&f(ue.data))return T(X,ue.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")})(M,S)}function F(M){if(typeof M!="number")throw new TypeError('"size" argument must be a number');if(M<0)throw new RangeError('"size" argument must not be negative')}
102function b(M,S){if(F(S),M=h(M,S<0?0:0|R(S)),!p.TYPED_ARRAY_SUPPORT)for(var w=0;w<S;++w)M[w]=0;return M}function T(M,S){var w=S.length<0?0:0|R(S.length);M=h(M,w);for(var H=0;H<w;H+=1)M[H]=255&S[H];return M}function R(M){if(M>=d())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d().toString(16)+" bytes");return 0|M}function j(M,S){if(p.isBuffer(M))return M.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(M)||M instanceof ArrayBuffer))return M.byteLength;typeof M!="string"&&(M=""+M);var w=M.length;if(w===0)return 0;for(var H=!1;;)switch(S){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":case void 0:return Ke(M).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*w;case"hex":return w>>>1;case"base64":return We(M).length;default:if(H)return Ke(M).length;S=(""+S).toLowerCase(),H=!0}}function D(M,S,w){var H=!1;if((S===void 0||S<0)&&(S=0),S>this.length||((w===void 0||w>this.length)&&(w=this.length),w<=0)||(w>>>=0)<=(S>>>=0))return"";for(M||(M="utf8");;)switch(M){case"hex":return se(this,S,w);case"utf8":case"utf-8":return y(this,S,w);case"ascii":return O(this,S,w);case"latin1":case"binary":return Q(this,S,w);case"base64":return Se(this,S,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,S,w);default:if(H)throw new TypeError("Unknown encoding: "+M);M=(M+"").toLowerCase(),H=!0}}function N(M,S,w){var H=M[S];M[S]=M[w],M[w]=H}function Z(M,S,w,H,$){if(M.length===0)return-1;if(typeof w=="string"?(H=w,w=0):w>2147483647?w=2147483647:w<-2147483648&&(w=-2147483648),w=+w,isNaN(w)&&(w=$?0:M.length-1),w<0&&(w=M.length+w),w>=M.length){if($)return-1;w=M.length-1}else if(w<0){if(!$)return-1;w=0}if(typeof S=="string"&&(S=p.from(S,H)),p.isBuffer(S))return S.length===0?-1:V(M,S,w,H,$);if(typeof S=="number")return S&=255,p.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?$?Uint8Array.prototype.indexOf.call(M,S,w):Uint8Array.prototype.lastIndexOf.call(M,S,w):V(M,[S],w,H,$);throw new TypeError("val must be string, number or Buffer")}function V(M,S,w,H,$){var X,ue=1,be=M.length,Ie=S.length;if(H!==void 0&&((H=String(H).toLowerCase())==="ucs2"||H==="ucs-2"||H==="utf16le"||H==="utf-16le")){if(M.length<2||S.length<2)return-1;ue=2,be/=2,Ie/=2,w/=2}function $e(vt,xt){return ue===1?vt[xt]:vt.readUInt16BE(xt*ue)}if($){var He=-1;for(X=w;X<be;X++)if($e(M,X)===$e(S,He===-1?0:X-He)){if(He===-1&&(He=X),X-He+1===Ie)return He*ue}else He!==-1&&(X-=X-He),He=-1}else for(w+Ie>be&&(w=be-Ie),X=w;X>=0;X--){for(var ut=!0,lt=0;lt<Ie;lt++)if($e(M,X+lt)!==$e(S,lt)){ut=!1;break}if(ut)return X}return-1}function J(M,S,w,H){w=Number(w)||0;var $=M.length-w;H?(H=Number(H))>$&&(H=$):H=$;var X=S.length;if(X%2!=0)throw new TypeError("Invalid hex string");H>X/2&&(H=X/2);for(var ue=0;ue<H;++ue){var be=parseInt(S.substr(2*ue,2),16);if(isNaN(be))return ue;M[w+ue]=be}return ue}function W(M,S,w,H){return Xe(Ke(S,M.length-w),M,w,H)}function le(M,S,w,H){return Xe((function(X){for(var ue=[],be=0;be<X.length;++be)ue.push(255&X.charCodeAt(be));return ue})(S),M,w,H)}function de(M,S,w,H){return le(M,S,w,H)}function ve(M,S,w,H){return Xe(We(S),M,w,H)}function K(M,S,w,H){return Xe((function(X,ue){for(var be,Ie,$e,He=[],ut=0;ut<X.length&&!((ue-=2)<0);++ut)Ie=(be=X.charCodeAt(ut))>>8,$e=be%256,He.push($e),He.push(Ie);return He})(S,M.length-w),M,w,H)}function Se(M,S,w){return S===0&&w===M.length?u.fromByteArray(M):u.fromByteArray(M.slice(S,w))}function y(M,S,w){w=Math.min(M.length,w);for(var H=[],$=S;$<w;){var X,ue,be,Ie,$e=M[$],He=null,ut=$e>239?4:$e>223?3:$e>191?2:1;if($+ut<=w)switch(ut){case 1:$e<128&&(He=$e);break;case 2:(192&(X=M[$+1]))==128&&(Ie=(31&$e)<<6|63&X)>127&&(He=Ie);break;case 3:X=M[$+1],ue=M[$+2],(192&X)==128&&(192&ue)==128&&(Ie=(15&$e)<<12|(63&X)<<6|63&ue)>2047&&(Ie<55296||Ie>57343)&&(He=Ie);break;case 4:X=M[$+1],ue=M[$+2],be=M[$+3],(192&X)==128&&(192&ue)==128&&(192&be)==128&&(Ie=(15&$e)<<18|(63&X)<<12|(63&ue)<<6|63&be)>65535&&Ie<1114112&&(He=Ie)}He===null?(He=65533,ut=1):He>65535&&(He-=65536,H.push(He>>>10&1023|55296),He=56320|1023&He),H.push(He),$+=ut}return(function(vt){var xt=vt.length;if(xt<=E)return String.fromCharCode.apply(String,vt);for(var Pe="",tt=0;tt<xt;)Pe+=String.fromCharCode.apply(String,vt.slice(tt,tt+=E));return Pe})(H)}i.Buffer=p,i.SlowBuffer=function(S){return+S!=S&&(S=0),p.alloc(+S)},i.INSPECT_MAX_BYTES=50,p.TYPED_ARRAY_SUPPORT=c.TYPED_ARRAY_SUPPORT!==void 0?c.TYPED_ARRAY_SUPPORT:(function(){try{var S=new Uint8Array(1);return S.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},S.foo()===42&&typeof S.subarray=="function"&&S.subarray(1,1).byteLength===0}catch{return!1}})(),i.kMaxLength=d(),p.poolSize=8192,p._augment=function(M){return M.__proto__=p.prototype,M},p.from=function(M,S,w){return v(null,M,S,w)},p.TYPED_ARRAY_SUPPORT&&(p.prototype.__proto__=Uint8Array.prototype,p.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&p[Symbol.species]===p&&Object.defineProperty(p,Symbol.species,{value:null,configurable:!0})),p.alloc=function(M,S,w){return(function($,X,ue,be){return F(X),X<=0?h($,X):ue!==void 0?typeof be=="string"?h($,X).fill(ue,be):h($,X).fill(ue):h($,X)})(null,M,S,w)},p.allocUnsafe=function(M){return b(null,M)},p.allocUnsafeSlow=function(M){return b(null,M)},p.isBuffer=function(S){return!(S==null||!S._isBuffer)}
vendor: 6,641 bytes, line 102
102,p.compare=function(S,w){if(!p.isBuffer(S)||!p.isBuffer(w))throw new TypeError("Arguments must be Buffers");if(S===w)return 0;for(var H=S.length,$=w.length,X=0,ue=Math.min(H,$);X<ue;++X)if(S[X]!==w[X]){H=S[X],$=w[X];break}return H<$?-1:$<H?1:0},p.isEncoding=function(S){switch(String(S).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(S,w){if(!f(S))throw new TypeError('"list" argument must be an Array of Buffers');if(S.length===0)return p.alloc(0);var H;if(w===void 0)for(w=0,H=0;H<S.length;++H)w+=S[H].length;var $=p.allocUnsafe(w),X=0;for(H=0;H<S.length;++H){var ue=S[H];if(!p.isBuffer(ue))throw new TypeError('"list" argument must be an Array of Buffers');ue.copy($,X),X+=ue.length}return $},p.byteLength=j,p.prototype._isBuffer=!0,p.prototype.swap16=function(){var S=this.length;if(S%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var w=0;w<S;w+=2)N(this,w,w+1);return this},p.prototype.swap32=function(){var S=this.length;if(S%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var w=0;w<S;w+=4)N(this,w,w+3),N(this,w+1,w+2);return this},p.prototype.swap64=function(){var S=this.length;if(S%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var w=0;w<S;w+=8)N(this,w,w+7),N(this,w+1,w+6),N(this,w+2,w+5),N(this,w+3,w+4);return this},p.prototype.toString=function(){var S=0|this.length;return S===0?"":arguments.length===0?y(this,0,S):D.apply(this,arguments)},p.prototype.equals=function(S){if(!p.isBuffer(S))throw new TypeError("Argument must be a Buffer");return this===S||p.compare(this,S)===0},p.prototype.inspect=function(){var S="",w=i.INSPECT_MAX_BYTES;return this.length>0&&(S=this.toString("hex",0,w).match(/.{2}/g).join(" "),this.length>w&&(S+=" ... ")),"<Buffer "+S+">"},p.prototype.compare=function(S,w,H,$,X){if(!p.isBuffer(S))throw new TypeError("Argument must be a Buffer");if(w===void 0&&(w=0),H===void 0&&(H=S?S.length:0),$===void 0&&($=0),X===void 0&&(X=this.length),w<0||H>S.length||$<0||X>this.length)throw new RangeError("out of range index");if($>=X&&w>=H)return 0;if($>=X)return-1;if(w>=H)return 1;if(this===S)return 0;for(var ue=(X>>>=0)-($>>>=0),be=(H>>>=0)-(w>>>=0),Ie=Math.min(ue,be),$e=this.slice($,X),He=S.slice(w,H),ut=0;ut<Ie;++ut)if($e[ut]!==He[ut]){ue=$e[ut],be=He[ut];break}return ue<be?-1:be<ue?1:0},p.prototype.includes=function(S,w,H){return this.indexOf(S,w,H)!==-1},p.prototype.indexOf=function(S,w,H){return Z(this,S,w,H,!0)},p.prototype.lastIndexOf=function(S,w,H){return Z(this,S,w,H,!1)},p.prototype.write=function(S,w,H,$){if(w===void 0)$="utf8",H=this.length,w=0;else if(H===void 0&&typeof w=="string")$=w,H=this.length,w=0;else{if(!isFinite(w))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");w|=0,isFinite(H)?(H|=0,$===void 0&&($="utf8")):($=H,H=void 0)}var X=this.length-w;if((H===void 0||H>X)&&(H=X),S.length>0&&(H<0||w<0)||w>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");for(var ue=!1;;)switch($){case"hex":return J(this,S,w,H);case"utf8":case"utf-8":return W(this,S,w,H);case"ascii":return le(this,S,w,H);case"latin1":case"binary":return de(this,S,w,H);case"base64":return ve(this,S,w,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,S,w,H);default:if(ue)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),ue=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function O(M,S,w){var H="";w=Math.min(M.length,w);for(var $=S;$<w;++$)H+=String.fromCharCode(127&M[$]);return H}function Q(M,S,w){var H="";w=Math.min(M.length,w);for(var $=S;$<w;++$)H+=String.fromCharCode(M[$]);return H}function se(M,S,w){var H=M.length;(!S||S<0)&&(S=0),(!w||w<0||w>H)&&(w=H);for(var $="",X=S;X<w;++X)$+=Je(M[X]);return $}function ce(M,S,w){for(var H=M.slice(S,w),$="",X=0;X<H.length;X+=2)$+=String.fromCharCode(H[X]+256*H[X+1]);return $}function ie(M,S,w){if(M%1!=0||M<0)throw new RangeError("offset is not uint");if(M+S>w)throw new RangeError("Trying to access beyond buffer length")}function ae(M,S,w,H,$,X){if(!p.isBuffer(M))throw new TypeError('"buffer" argument must be a Buffer instance');if(S>$||S<X)throw new RangeError('"value" argument is out of bounds');if(w+H>M.length)throw new RangeError("Index out of range")}function pe(M,S,w,H){S<0&&(S=65535+S+1);for(var $=0,X=Math.min(M.length-w,2);$<X;++$)M[w+$]=(S&255<<8*(H?$:1-$))>>>8*(H?$:1-$)}function xe(M,S,w,H){S<0&&(S=4294967295+S+1);for(var $=0,X=Math.min(M.length-w,4);$<X;++$)M[w+$]=S>>>8*(H?$:3-$)&255}function je(M,S,w,H,$,X){if(w+H>M.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("Index out of range")}function Le(M,S,w,H,$){return $||je(M,0,w,4),m.write(M,S,w,H,23,4),w+4}function ze(M,S,w,H,$){return $||je(M,0,w,8),m.write(M,S,w,H,52,8),w+8}p.prototype.slice=function(S,w){var H,$=this.length;if((S=~~S)<0?(S+=$)<0&&(S=0):S>$&&(S=$),(w=w===void 0?$:~~w)<0?(w+=$)<0&&(w=0):w>$&&(w=$),w<S&&(w=S),p.TYPED_ARRAY_SUPPORT)(H=this.subarray(S,w)).__proto__=p.prototype;else{var X=w-S;H=new p(X,void 0);for(var ue=0;ue<X;++ue)H[ue]=this[ue+S]}return H},p.prototype.readUIntLE=function(S,w,H){S|=0,w|=0,H||ie(S,w,this.length);for(var $=this[S],X=1,ue=0;++ue<w&&(X*=256);)$+=this[S+ue]*X;return $},p.prototype.readUIntBE=function(S,w,H){S|=0,w|=0,H||ie(S,w,this.length);for(var $=this[S+--w],X=1;w>0&&(X*=256);)$+=this[S+--w]*X;return $},p.prototype.readUInt8=function(S,w){return w||ie(S,1,this.length),this[S]},p.prototype.readUInt16LE=function(S,w){return w||ie(S,2,this.length),this[S]|this[S+1]<<8},p.prototype.readUInt16BE=function(S,w){return w||ie(S,2,this.length),this[S]<<8|this[S+1]},p.prototype.readUInt32LE=function(S,w){return w||ie(S,4,this.length),(this[S]|this[S+1]<<8|this[S+2]<<16)+16777216*this[S+3]},p.prototype.readUInt32BE=function(S,w){return w||ie(S,4,this.length),16777216*this[S]+(this[S+1]<<16|this[S+2]<<8|this[S+3])},p.prototype.readIntLE=function(S,w,H){S|=0,w|=0,H||ie(S,w,this.length);for(var $=this[S],X=1,ue=0;++ue<w&&(X*=256);)$+=this[S+ue]*X;return $>=(X*=128)&&($-=Math.pow(2,8*w)),$},p.prototype.readIntBE=function(S,w,H){S|=0,w|=0,H||ie(S,w,this.length);for(var $=w,X=1,ue=this[S+--$];$>0&&(X*=256);)ue+=this[S+--$]*X;return ue>=(X*=128)&&(ue-=Math.pow(2,8*w)),ue},p.prototype.readInt8=function(S,w){return w||ie(S,1,this.length),128&this[S]?-1*(255-this[S]+1):this[S]},p.prototype.readInt16LE=function(S,w){w||ie(S,2,this.length);var H=this[S]|this[S+1]<<8;
102return 32768&H?4294901760|H:H},p.prototype.readInt16BE=function(S,w){w||ie(S,2,this.length);var H=this[S+1]|this[S]<<8;return 32768&H?4294901760|H:H},p.prototype.readInt32LE=function(S,w){return w||ie(S,4,this.length),this[S]|this[S+1]<<8|this[S+2]<<16|this[S+3]<<24},p.prototype.readInt32BE=function(S,w){return w||ie(S,4,this.length),this[S]<<24|this[S+1]<<16|this[S+2]<<8|this[S+3]},p.prototype.readFloatLE=function(S,w){return w||ie(S,4,this.length),m.read(this,S,!0,23,4)},p.prototype.readFloatBE=function(S,w){return w||ie(S,4,this.length),m.read(this,S,!1,23,4)},p.prototype.readDoubleLE=function(S,w){return w||ie(S,8,this.length),m.read(this,S,!0,52,8)},p.prototype.readDoubleBE=function(S,w){return w||ie(S,8,this.length),m.read(this,S,!1,52,8)},p.prototype.writeUIntLE=function(S,w,H,$){S=+S,w|=0,H|=0,$||ae(this,S,w,H,Math.pow(2,8*H)-1,0);var X=1,ue=0;for(this[w]=255&S;++ue<H&&(X*=256);)this[w+ue]=S/X&255;return w+H},p.prototype.writeUIntBE=function(S,w,H,$){S=+S,w|=0,H|=0,$||ae(this,S,w,H,Math.pow(2,8*H)-1,0);var X=H-1,ue=1;for(this[w+X]=255&S;--X>=0&&(ue*=256);)this[w+X]=S/ue&255;return w+H},p.prototype.writeUInt8=function(S,w,H){return S=+S,w|=0,H||ae(this,S,w,1,255,0),p.TYPED_ARRAY_SUPPORT||(S=Math.floor(S)),this[w]=255&S,w+1},p.prototype.writeUInt16LE=function(S,w,H){return S=+S,w|=0,H||ae(this,S,w,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[w]=255&S,this[w+1]=S>>>8):pe(this,S,w,!0),w+2},p.prototype.writeUInt16BE=function(S,w,H){return S=+S,w|=0,H||ae(this,S,w,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[w]=S>>>8,this[w+1]=255&S):pe(this,S,w,!1),w+2},p.prototype.writeUInt32LE=function(S,w,H){return S=+S,w|=0,H||ae(this,S,w,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[w+3]=S>>>24,this[w+2]=S>>>16,this[w+1]=S>>>8,this[w]=255&S):xe(this,S,w,!0),w+4},p.prototype.writeUInt32BE=function(S,w,H){return S=+S,w|=0,H||ae(this,S,w,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[w]=S>>>24,this[w+1]=S>>>16,this[w+2]=S>>>8,this[w+3]=255&S):xe(this,S,w,!1),w+4},p.prototype.writeIntLE=function(S,w,H,$){if(S=+S,w|=0,!$){var X=Math.pow(2,8*H-1);ae(this,S,w,H,X-1,-X)}var ue=0,be=1,Ie=0;for(this[w]=255&S;++ue<H&&(be*=256);)S<0&&Ie===0&&this[w+ue-1]!==0&&(Ie=1),this[w+ue]=(S/be>>0)-Ie&255;return w+H},p.prototype.writeIntBE=function(S,w,H,$){if(S=+S,w|=0,!$){var X=Math.pow(2,8*H-1);ae(this,S,w,H,X-1,-X)}var ue=H-1,be=1,Ie=0;for(this[w+ue]=255&S;--ue>=0&&(be*=256);)S<0&&Ie===0&&this[w+ue+1]!==0&&(Ie=1),this[w+ue]=(S/be>>0)-Ie&255;return w+H},p.prototype.writeInt8=function(S,w,H){return S=+S,w|=0,H||ae(this,S,w,1,127,-128),p.TYPED_ARRAY_SUPPORT||(S=Math.floor(S)),S<0&&(S=255+S+1),this[w]=255&S,w+1},p.prototype.writeInt16LE=function(S,w,H){return S=+S,w|=0,H||ae(this,S,w,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[w]=255&S,this[w+1]=S>>>8):pe(this,S,w,!0),w+2},p.prototype.writeInt16BE=function(S,w,H){return S=+S,w|=0,H||ae(this,S,w,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[w]=S>>>8,this[w+1]=255&S):pe(this,S,w,!1),w+2},p.prototype.writeInt32LE=function(S,w,H){return S=+S,w|=0,H||ae(this,S,w,4,2147483647,-2147483648),p.TYPED_ARRAY_SUPPORT?(this[w]=255&S,this[w+1]=S>>>8,this[w+2]=S>>>16,this[w+3]=S>>>24):xe(this,S,w,!0),w+4},p.prototype.writeInt32BE=function(S,w,H){return S=+S,w|=0,H||ae(this,S,w,4,2147483647,-2147483648),S<0&&(S=4294967295+S+1),p.TYPED_ARRAY_SUPPORT?(this[w]=S>>>24,this[w+1]=S>>>16,this[w+2]=S>>>8,this[w+3]=255&S):xe(this,S,w,!1),w+4},p.prototype.writeFloatLE=function(S,w,H){return Le(this,S,w,!0,H)},p.prototype.writeFloatBE=function(S,w,H){return Le(this,S,w,!1,H)},p.prototype.writeDoubleLE=function(S,w,H){return ze(this,S,w,!0,H)},p.prototype.writeDoubleBE=function(S,w,H){return ze(this,S,w,!1,H)},p.prototype.copy=function(S,w,H,$){if(H||(H=0),$||$===0||($=this.length),w>=S.length&&(w=S.length),w||(w=0),$>0&&$<H&&($=H),$===H||S.length===0||this.length===0)return 0;if(w<0)throw new RangeError("targetStart out of bounds");if(H<0||H>=this.length)throw new RangeError("sourceStart out of bounds");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),S.length-w<$-H&&($=S.length-w+H);var X,ue=$-H;if(this===S&&H<w&&w<$)for(X=ue-1;X>=0;--X)S[X+w]=this[X+H];else if(ue<1e3||!p.TYPED_ARRAY_SUPPORT)for(X=0;X<ue;++X)S[X+w]=this[X+H];else Uint8Array.prototype.set.call(S,this.subarray(H,H+ue),w);return ue},p.prototype.fill=function(S,w,H,$){if(typeof S=="string"){if(typeof w=="string"?($=w,w=0,H=this.length):typeof H=="string"&&($=H,H=this.length),S.length===1){var X=S.charCodeAt(0);X<256&&(S=X)}if($!==void 0&&typeof $!="string")throw new TypeError("encoding must be a string");if(typeof $=="string"&&!p.isEncoding($))throw new TypeError("Unknown encoding: "+$)}else typeof S=="number"&&(S&=255);if(w<0||this.length<w||this.length<H)throw new RangeError("Out of range index");if(H<=w)return this;var ue;if(w>>>=0,H=H===void 0?this.length:H>>>0,S||(S=0),typeof S=="number")for(ue=w;ue<H;++ue)this[ue]=S;else{var be=p.isBuffer(S)?S:Ke(new p(S,$).toString()),Ie=be.length;for(ue=0;ue<H-w;++ue)this[ue+w]=be[ue%Ie]}return this};var Be=/[^+\/0-9A-Za-z-_]/g;function Je(M){return M<16?"0"+M.toString(16):M.toString(16)}function Ke(M,S){var w;S=S||1/0;for(var H=M.length,$=null,X=[],ue=0;ue<H;
vendor: 5,845 bytes, line 102
102++ue){if((w=M.charCodeAt(ue))>55295&&w<57344){if(!$){if(w>56319){(S-=3)>-1&&X.push(239,191,189);continue}if(ue+1===H){(S-=3)>-1&&X.push(239,191,189);continue}$=w;continue}if(w<56320){(S-=3)>-1&&X.push(239,191,189),$=w;continue}w=65536+($-55296<<10|w-56320)}else $&&(S-=3)>-1&&X.push(239,191,189);if($=null,w<128){if((S-=1)<0)break;X.push(w)}else if(w<2048){if((S-=2)<0)break;X.push(w>>6|192,63&w|128)}else if(w<65536){if((S-=3)<0)break;X.push(w>>12|224,w>>6&63|128,63&w|128)}else{if(!(w<1114112))throw new Error("Invalid code point");if((S-=4)<0)break;X.push(w>>18|240,w>>12&63|128,w>>6&63|128,63&w|128)}}return X}function We(M){return u.toByteArray((function(w){if((w=(function($){return $.trim?$.trim():$.replace(/^\s+|\s+$/g,"")})(w).replace(Be,"")).length<2)return"";for(;w.length%4!=0;)w+="=";return w})(M))}function Xe(M,S,w,H){for(var $=0;$<H&&!($+w>=S.length||$>=M.length);++$)S[$+w]=M[$];return $}}).call(this,a(29))},function(o,i){var a;a=(function(){return this})();try{a=a||new Function("return this")()}catch{typeof window=="object"&&(a=window)}o.exports=a},function(o,i,a){i.byteLength=function(b){var T=p(b),R=T[0],j=T[1];return 3*(R+j)/4-j},i.toByteArray=function(b){var T,R,j=p(b),D=j[0],N=j[1],Z=new m((function(le,de,ve){return 3*(de+ve)/4-ve})(0,D,N)),V=0,J=N>0?D-4:D;for(R=0;R<J;R+=4)T=u[b.charCodeAt(R)]<<18|u[b.charCodeAt(R+1)]<<12|u[b.charCodeAt(R+2)]<<6|u[b.charCodeAt(R+3)],Z[V++]=T>>16&255,Z[V++]=T>>8&255,Z[V++]=255&T;return N===2&&(T=u[b.charCodeAt(R)]<<2|u[b.charCodeAt(R+1)]>>4,Z[V++]=255&T),N===1&&(T=u[b.charCodeAt(R)]<<10|u[b.charCodeAt(R+1)]<<4|u[b.charCodeAt(R+2)]>>2,Z[V++]=T>>8&255,Z[V++]=255&T),Z},i.fromByteArray=function(b){for(var T,R=b.length,j=R%3,D=[],N=16383,Z=0,V=R-j;Z<V;Z+=N)D.push(v(b,Z,Z+N>V?V:Z+N));return j===1?(T=b[R-1],D.push(c[T>>2]+c[T<<4&63]+"==")):j===2&&(T=(b[R-2]<<8)+b[R-1],D.push(c[T>>10]+c[T>>4&63]+c[T<<2&63]+"=")),D.join("")};for(var c=[],u=[],m=typeof Uint8Array<"u"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,h=f.length;d<h;++d)c[d]=f[d],u[f.charCodeAt(d)]=d;function p(F){var b=F.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var T=F.indexOf("=");return T===-1&&(T=b),[T,T===b?0:4-T%4]}function v(F,b,T){for(var R,j,D=[],N=b;N<T;N+=3)R=(F[N]<<16&16711680)+(F[N+1]<<8&65280)+(255&F[N+2]),D.push(c[(j=R)>>18&63]+c[j>>12&63]+c[j>>6&63]+c[63&j]);return D.join("")}u[45]=62,u[95]=63},function(o,i){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */i.read=function(a,c,u,m,f){var d,h,p=8*f-m-1,v=(1<<p)-1,F=v>>1,b=-7,T=u?f-1:0,R=u?-1:1,j=a[c+T];for(T+=R,d=j&(1<<-b)-1,j>>=-b,b+=p;b>0;d=256*d+a[c+T],T+=R,b-=8);for(h=d&(1<<-b)-1,d>>=-b,b+=m;b>0;h=256*h+a[c+T],T+=R,b-=8);if(d===0)d=1-F;else{if(d===v)return h?NaN:1/0*(j?-1:1);h+=Math.pow(2,m),d-=F}return(j?-1:1)*h*Math.pow(2,d-m)},i.write=function(a,c,u,m,f,d){var h,p,v,F=8*d-f-1,b=(1<<F)-1,T=b>>1,R=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,j=m?0:d-1,D=m?1:-1,N=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(p=isNaN(c)?1:0,h=b):(h=Math.floor(Math.log(c)/Math.LN2),c*(v=Math.pow(2,-h))<1&&(h--,v*=2),(c+=h+T>=1?R/v:R*Math.pow(2,1-T))*v>=2&&(h++,v/=2),h+T>=b?(p=0,h=b):h+T>=1?(p=(c*v-1)*Math.pow(2,f),h+=T):(p=c*Math.pow(2,T-1)*Math.pow(2,f),h=0));f>=8;a[u+j]=255&p,j+=D,p/=256,f-=8);for(h=h<<f|p,F+=f;F>0;a[u+j]=255&h,j+=D,h/=256,F-=8);a[u+j-D]|=128*N}},function(o,i){var a={}.toString;o.exports=Array.isArray||function(c){return a.call(c)=="[object Array]"}},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(m){var f=m.jws,d=m.KeyUtil,h=m.X509,p=m.crypto,v=m.hextob64u,F=m.b64tohex,b=m.AllowedSigningAlgs;return(function(){function T(){(function(j,D){if(!(j instanceof D))throw new TypeError("Cannot call a class as a function")})(this,T)}return T.parseJwt=function(j){c.Log.debug("JoseUtil.parseJwt");try{var D=f.JWS.parse(j);return{header:D.headerObj,payload:D.payloadObj}}catch(N){c.Log.error(N)}},T.validateJwt=function(j,D,N,Z,V,J,W){c.Log.debug("JoseUtil.validateJwt");try{if(D.kty==="RSA")if(D.e&&D.n)D=d.getKey(D);else{if(!D.x5c||!D.x5c.length)return c.Log.error("JoseUtil.validateJwt: RSA key missing key material",D),Promise.reject(new Error("RSA key missing key material"));var le=F(D.x5c[0]);D=h.getPublicKeyFromCertHex(le)}else{if(D.kty!=="EC")return c.Log.error("JoseUtil.validateJwt: Unsupported key type",D&&D.kty),Promise.reject(new Error(D.kty));if(!(D.crv&&D.x&&D.y))return c.Log.error("JoseUtil.validateJwt: EC key missing key material",D),Promise.reject(new Error("EC key missing key material"));D=d.getKey(D)}return T._validateJwt(j,D,N,Z,V,J,W)}catch(de){return c.Log.error(de&&de.message||de),Promise.reject("JWT validation failed")}},T.validateJwtAttributes=function(j,D,N,Z,V,J){Z||(Z=0),V||(V=parseInt(Date.now()/1e3));var W=T.parseJwt(j).payload;if(!W.iss)return c.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(new Error("issuer was not provided"));if(W.iss!==D)return c.Log.error("JoseUtil._validateJwt: Invalid issuer in token",W.iss),Promise.reject(new Error("Invalid issuer in token: "+W.iss));if(!W.aud)return c.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(new Error("aud was not provided"));if(!(W.aud===N||Array.isArray(W.aud)&&W.aud.indexOf(N)>=0))return c.Log.error("JoseUtil._validateJwt: Invalid audience in token",W.aud),Promise.reject(new Error("Invalid audience in token: "+W.aud));if(W.azp&&W.azp!==N)return c.Log.error("JoseUtil._validateJwt: Invalid azp in token",W.azp),Promise.reject(new Error("Invalid azp in token: "+W.azp));if(!J){var le=V+Z,de=V-Z;if(!W.iat)return c.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(new Error("iat was not provided"));if(le<W.iat)return c.Log.error("JoseUtil._validateJwt: iat is in the future",W.i
102at),Promise.reject(new Error("iat is in the future: "+W.iat));if(W.nbf&&le<W.nbf)return c.Log.error("JoseUtil._validateJwt: nbf is in the future",W.nbf),Promise.reject(new Error("nbf is in the future: "+W.nbf));if(!W.exp)return c.Log.error("JoseUtil._validateJwt: exp was not provided"),Promise.reject(new Error("exp was not provided"));if(W.exp<de)return c.Log.error("JoseUtil._validateJwt: exp is in the past",W.exp),Promise.reject(new Error("exp is in the past:"+W.exp))}return Promise.resolve(W)},T._validateJwt=function(j,D,N,Z,V,J,W){return T.validateJwtAttributes(j,N,Z,V,J,W).then((function(le){try{return f.JWS.verify(j,D,b)?le:(c.Log.error("JoseUtil._validateJwt: signature validation failed"),Promise.reject(new Error("signature validation failed")))}catch(de){return c.Log.error(de&&de.message||de),Promise.reject(new Error("signature validation failed"))}}))},T.hashString=function(j,D){try{return p.Util.hashString(j,D)}catch(N){c.Log.error(N)}},T.hexToBase64Url=function(j){try{return v(j)}catch(D){c.Log.error(D)}},T})()};var c=a(0);o.exports=i.default},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.SigninResponse=void 0;var c=(function(){function f(d,h){for(var p=0;p<h.length;p++){var v=h[p];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(d,v.key,v)}}return function(d,h,p){return h&&f(d.prototype,h),p&&f(d,p),d}})(),u=a(3);function m(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}i.SigninResponse=(function(){function f(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#";m(this,f);var p=u.UrlUtility.parseUrlFragment(d,h);this.error=p.error,this.error_description=p.error_description,this.error_uri=p.error_uri,this.code=p.code,this.state=p.state,this.id_token=p.id_token,this.session_state=p.session_state,this.access_token=p.access_token,this.token_type=p.token_type,this.scope=p.scope,this.profile=void 0,this.expires_in=p.expires_in}return c(f,[{key:"expires_in",get:function(){if(this.expires_at){var h=parseInt(Date.now()/1e3);return this.expires_at-h}},set:function(h){var p=parseInt(h);if(typeof p=="number"&&p>0){var v=parseInt(Date.now()/1e3);this.expires_at=v+p}}},{key:"expired",get:function(){var h=this.expires_in;if(h!==void 0)return h<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),f})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.SignoutRequest=void 0;var c=a(0),u=a(3),m=a(9);i.SignoutRequest=function f(d){var h=d.url,p=d.id_token_hint,v=d.post_logout_redirect_uri,F=d.data,b=d.extraQueryParams,T=d.request_type;if((function(D,N){if(!(D instanceof N))throw new TypeError("Cannot call a class as a function")})(this,f),!h)throw c.Log.error("SignoutRequest.ctor: No url passed"),new Error("url");for(var R in p&&(h=u.UrlUtility.addQueryParam(h,"id_token_hint",p)),v&&(h=u.UrlUtility.addQueryParam(h,"post_logout_redirect_uri",v),F&&(this.state=new m.State({data:F,request_type:T}),h=u.UrlUtility.addQueryParam(h,"state",this.state.id))),b)h=u.UrlUtility.addQueryParam(h,R,b[R]);this.url=h}},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.SignoutResponse=void 0;var c=a(3);i.SignoutResponse=function u(m){(function(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")})(this,u);var f=c.UrlUtility.parseUrlFragment(m,"?");this.error=f.error,this.error_description=f.error_description,this.error_uri=f.error_uri,this.state=f.state}},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.InMemoryWebStorage=void 0;var c=(function(){function m(f,d){for(var h=0;h<d.length;h++){var p=d[h];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(f,p.key,p)}}return function(f,d,h){return d&&m(f.prototype,d),h&&m(f,h),f}})(),u=a(0);i.InMemoryWebStorage=(function(){function m(){(function(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")})(this,m),this._data={}}return m.prototype.getItem=function(d){return u.Log.debug("InMemoryWebStorage.getItem",d),this._data[d]},m.prototype.setItem=function(d,h){u.Log.debug("InMemoryWebStorage.setItem",d),this._data[d]=h},m.prototype.removeItem=function(d){u.Log.debug("InMemoryWebStorage.removeItem",d),delete this._data[d]},m.prototype.key=function(d){return Object.getOwnPropertyNames(this._data)[d]},c(m,[{key:"length",get:function(){return Object.getOwnPropertyNames(this._data).length}}]),m})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.UserManager=void 0;var c=(function(){function N(Z,V){for(var J=0;J<V.length;J++){var W=V[J];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(Z,W.key,W)}}return function(Z,V,J){return V&&N(Z.prototype,V),J&&N(Z,J),Z}})(),u=a(0),m=a(10),f=a(39),d=a(15),h=a(45),p=a(47),v=a(18),F=a(8),b=a(20),T=a(11),R=a(4);function j(N,Z){if(!(N instanceof Z))throw new TypeError("Cannot call a class as a function")}function D(N,Z){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Z||typeof Z!="object"&&typeof Z!="function"?N:Z}i.UserManager=(function(N){function Z(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.SilentRenewService,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.SessionMonitor,le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:b.TokenRevocationClient,de=arguments.length>4&&arguments[4]!==void 0?arguments[4]:T.TokenClient,ve=arguments.length>5&&arguments[5]!==void 0?arguments[5]:R.JoseUtil;j(this,Z),V instanceof f.UserManagerSettings||(V=new f.UserManagerSettings(V));var K=D(this,N.call(this,V));return K._events=new h.UserManagerEvents(V),K._silentRenewService=new J(K),K.settings.automaticSilentRenew&&(u.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),K.startSilentRenew()),K.settings.monitorSession&&(u.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),K._sessionMonitor=new W(K)),K._tokenRevocationClient=new le(K._settings),K._tokenClient=new de(K._settings),K._joseUtil=ve,K}return(function(J,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof W);J.prototype=Object.create(W&&W.prototype,{constructor:{value:J,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(J,W):J.__proto__=W)})(Z,N),Z.prototype.getUser=function(){var J=this;return this._loadUser().then((function(W){return W?(u.Log.info("UserManager.getUser: user loaded"),J._events.load(W,!1),W):(u.Log.info("UserManager.getUser: user not found in storage"),null)}))},Z.prototype.removeUser=function(){var J=this;return this.storeUser(null).then((function(){u.Log.info("UserManager.removeUser: user removed from storage"),J._events.unload()}))},Z.prototype.signinRedirect=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(J=Object.assign({},J)).request_type="si:r";var W={useReplaceToNavigate:J.useReplaceToNavigate};return this._signinStart(J,this._redirectNavigator,W).then((function(){u.Log.info("UserManager.signinRedirect: successful")}))},Z.prototype.signinRedirectCallback=function(J){return this._signinEnd(J||this._redirectNavigator.url).then((function(W){return W.profile&&W.profile.sub?u.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",W.profile.sub):u.Log.info("UserManager.signinRedirectCallback: no sub"),W}))},Z.prototype.signinPopup=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(J=Object.assign({},J)).request_type="si:p";var W=J.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return W?(J.redirect_uri=W,J.display="popup",this._signin(J,this._popupNavigator,{startUrl:W,popupWindowFeatures:J.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:J.popupWindowTarget||this.settings.popupWindowTarget}).then((function(le){return le&&(le.profile&&le.profile.sub?u.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",le.profile.sub):u.Log.info("UserManager.signinPopup: no sub")),le}))):(u.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(new Error("No popup_redirect_uri or redirect_uri configured")))},Z.prototype.signinPopupCallback=function(J){return this._signinCallback(J,this._popupNavigator).then((function(W){return W&&(W.profile&&W.profile.sub?u.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",W.profile.sub):u.Log.info("UserManager.signinPopupCallback: no sub")),W})).catch((function(W){u.Log.error(W.message)}))},Z.prototype.signinSilent=function(){var J=this,W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return W=Object.assign({},W),this._loadUser().then((function(le){return le&&le.refresh_token?(W.refresh_token=le.refresh_token,J._useRefreshToken(W)):(W.request_type="si:s",W.id_token_hint=W.id_token_hint||J.settings.includeIdTokenInSilentRenew&&le&&le.id_token,le&&J._settings.val
vendor: 9,884 bytes, line 102
102idateSubOnSilentRenew&&(u.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",le.profile.sub),W.current_sub=le.profile.sub),J._signinSilentIframe(W))}))},Z.prototype._useRefreshToken=function(){var J=this,W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(W).then((function(le){return le?le.access_token?J._loadUser().then((function(de){if(de){var ve=Promise.resolve();return le.id_token&&(ve=J._validateIdTokenFromTokenRefreshToken(de.profile,le.id_token)),ve.then((function(){return u.Log.debug("UserManager._useRefreshToken: refresh token response success"),de.id_token=le.id_token||de.id_token,de.access_token=le.access_token,de.refresh_token=le.refresh_token||de.refresh_token,de.expires_in=le.expires_in,J.storeUser(de).then((function(){return J._events.load(de),de}))}))}return null})):(u.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(u.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))}))},Z.prototype._validateIdTokenFromTokenRefreshToken=function(J,W){var le=this;return this._metadataService.getIssuer().then((function(de){return le.settings.getEpochTime().then((function(ve){return le._joseUtil.validateJwtAttributes(W,de,le._settings.client_id,le._settings.clockSkew,ve).then((function(K){return K?K.sub!==J.sub?(u.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(new Error("sub in id_token does not match current sub"))):K.auth_time&&K.auth_time!==J.auth_time?(u.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(new Error("auth_time in id_token does not match original auth_time"))):K.azp&&K.azp!==J.azp?(u.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(new Error("azp in id_token does not match original azp"))):!K.azp&&J.azp?(u.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(new Error("azp not in id_token, but present in original id_token"))):void 0:(u.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(new Error("Failed to validate id_token")))}))}))}))},Z.prototype._signinSilentIframe=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},W=J.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return W?(J.redirect_uri=W,J.prompt=J.prompt||"none",this._signin(J,this._iframeNavigator,{startUrl:W,silentRequestTimeout:J.silentRequestTimeout||this.settings.silentRequestTimeout}).then((function(le){return le&&(le.profile&&le.profile.sub?u.Log.info("UserManager.signinSilent: successful, signed in sub: ",le.profile.sub):u.Log.info("UserManager.signinSilent: no sub")),le}))):(u.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},Z.prototype.signinSilentCallback=function(J){return this._signinCallback(J,this._iframeNavigator).then((function(W){return W&&(W.profile&&W.profile.sub?u.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",W.profile.sub):u.Log.info("UserManager.signinSilentCallback: no sub")),W}))},Z.prototype.signinCallback=function(J){var W=this;return this.readSigninResponseState(J).then((function(le){var de=le.state;return le.response,de.request_type==="si:r"?W.signinRedirectCallback(J):de.request_type==="si:p"?W.signinPopupCallback(J):de.request_type==="si:s"?W.signinSilentCallback(J):Promise.reject(new Error("invalid response_type in state"))}))},Z.prototype.signoutCallback=function(J,W){var le=this;return this.readSignoutResponseState(J).then((function(de){var ve=de.state,K=de.response;return ve?ve.request_type==="so:r"?le.signoutRedirectCallback(J):ve.request_type==="so:p"?le.signoutPopupCallback(J,W):Promise.reject(new Error("invalid response_type in state")):K}))},Z.prototype.querySessionStatus=function(){var J=this,W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(W=Object.assign({},W)).request_type="si:s";var le=W.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return le?(W.redirect_uri=le,W.prompt="none",W.response_type=W.response_type||this.settings.query_status_response_type,W.scope=W.scope||"openid",W.skipUserInfo=!0,this._signinStart(W,this._iframeNavigator,{startUrl:le,silentRequestTimeout:W.silentRequestTimeout||this.settings.silentRequestTimeout}).then((function(de){return J.processSigninResponse(de.url).then((function(ve){if(u.Log.debug("UserManager.querySessionStatus: got signin response"),ve.session_state&&ve.profile.sub)return u.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",ve.profile.sub),{session_state:ve.session_state,sub:ve.profile.sub,sid:ve.profile.sid};u.Log.info("querySessionStatus successful, user not authenticated")})).catch((function(ve){if(ve.session_state&&J.settings.monitorAnonymousSession&&(ve.message=="login_required"||ve.message=="consent_required"||ve.message=="interaction_required"||ve.message=="account_selection_required"))return u.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:ve.session_state};throw ve}))}))):(u.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},Z.prototype._signin=function(J,W){var le=this,de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._signinStart(J,W,de).then((function(ve){return le._signinEnd(ve.url,J)}))},Z.prototype._signinStart=function(J,W){var le=this,de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return W.prepare(de).then((function(ve){return u.Log.debug("UserManager._signinStart: got navigator window handle"),le.createSigninRequest(J).then((function(K){return u.Log.debug("UserManager._signinStart: got signin request"),de.url=K.url,de.id=K.state.id,ve.navigate(de)})).catch((function(K){throw ve.close&&(u.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),ve.close()),K}))}))},Z.prototype._signinEnd=function(J){var W=this,le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.processSigninResponse(J).then((function(de){u.Log.debug("UserManager._signinEnd: got signin response");var ve=new d.User(de);if(le.current_sub){if(le.current_sub!==ve.profile.sub)return u.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",ve.profile.sub),Promise.reject(new Error("login_required"));u.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return W.storeUser(ve).then((function(){return u.Log.debug("UserManager._signinEnd: user stored"),W._events.load(ve),ve}))}))},Z.prototype._signinCallback=function(J,W){u.Log.debug("UserManager._signinCallback");var le=this._settings.response_mode==="query"||!this._settings.response_mode&&F.SigninRequest.isCode(this._settings.response_type)?"?":"#";return W.callback(J,void 0,le)},Z.prototype.signoutRedirect=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(J=Object.assign({},J)).request_type="so:r";var W=J.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;W&&(J.post_logout_redirect_uri=W);var le={useReplaceToNavigate:J.useReplaceToNavigate};return this._signoutStart(J,this._redirectNavigator,le).then((function(){u.Log.info("UserManager.signoutRedirect: successful")}))},Z.prototype.signoutRedirectCallback=function(J){return this._signoutEnd(J||this._redirectNavigator.url).then((function(W){return u.Log.info("UserManager.signoutRedirectCallback: successful"),W}))},Z.prototype.signoutPopup=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(J=Object.assign({},J)).request_type="so:p";var W=J.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return J.post_logout_redirect_uri=W,J.display="popup",J.post_logout_redirect_uri&&(J.state=J.state||{}),this._signout(J,this._popupNavigator,{startUrl:W,popupWindowFeatures:J.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:J.popupWindowTarget||this.settings.popupWindowTarget}).then((function(){u.Log.info("UserManager.signoutPopup: successful")}))},Z.prototype.signoutPopupCallback=function(J,W){return W===void 0&&typeof J=="boolean"&&(W=J,J=null),this._popupNavigator.callback(J,W,"?").then((function(){u.Log.info("UserManager.signoutPopupCallback: successful")}))},Z.prototype._signout=function(J,W){var le=this,de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._signoutStart(J,W,de).then((function(ve){return le._signoutEnd(ve.url)}))},Z.prototype._signoutStart=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},W=this,le=arguments[1],de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return le.prepare(de).then((function(ve){return u.Log.debug("UserManager._signoutStart: got navigator window handle"),W._loadUser().then((function(K){return u.Log.debug("UserManager._signoutStart: loaded current user from storage"),(W._settings.revokeAccessTokenOnSignout?W._revokeInternal(K):Promise.resolve()).then((function(){var Se=J.id_token_hint||K&&K.id_token;return Se&&(u.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),J.id_token_hint=Se),W.removeUser().then((function(){return u.Log.debug("UserManager._signoutStart: user removed, creating signout request"),W.createSignoutRequest
102(J).then((function(y){return u.Log.debug("UserManager._signoutStart: got signout request"),de.url=y.url,y.state&&(de.id=y.state.id),ve.navigate(de)}))}))}))})).catch((function(K){throw ve.close&&(u.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),ve.close()),K}))}))},Z.prototype._signoutEnd=function(J){return this.processSignoutResponse(J).then((function(W){return u.Log.debug("UserManager._signoutEnd: got signout response"),W}))},Z.prototype.revokeAccessToken=function(){var J=this;return this._loadUser().then((function(W){return J._revokeInternal(W,!0).then((function(le){if(le)return u.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),W.access_token=null,W.refresh_token=null,W.expires_at=null,W.token_type=null,J.storeUser(W).then((function(){u.Log.debug("UserManager.revokeAccessToken: user stored"),J._events.load(W)}))}))})).then((function(){u.Log.info("UserManager.revokeAccessToken: access token revoked successfully")}))},Z.prototype._revokeInternal=function(J,W){var le=this;if(J){var de=J.access_token,ve=J.refresh_token;return this._revokeAccessTokenInternal(de,W).then((function(K){return le._revokeRefreshTokenInternal(ve,W).then((function(Se){return K||Se||u.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),K||Se}))}))}return Promise.resolve(!1)},Z.prototype._revokeAccessTokenInternal=function(J,W){return!J||J.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(J,W).then((function(){return!0}))},Z.prototype._revokeRefreshTokenInternal=function(J,W){return J?this._tokenRevocationClient.revoke(J,W,"refresh_token").then((function(){return!0})):Promise.resolve(!1)},Z.prototype.startSilentRenew=function(){this._silentRenewService.start()},Z.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},Z.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then((function(J){return J?(u.Log.debug("UserManager._loadUser: user storageString loaded"),d.User.fromStorageString(J)):(u.Log.debug("UserManager._loadUser: no user storageString"),null)}))},Z.prototype.storeUser=function(J){if(J){u.Log.debug("UserManager.storeUser: storing user");var W=J.toStorageString();return this._userStore.set(this._userStoreKey,W)}return u.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},c(Z,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),Z})(m.OidcClient)},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.UserManagerSettings=void 0;var c=(function(){function T(R,j){for(var D=0;D<j.length;D++){var N=j[D];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(R,N.key,N)}}return function(R,j,D){return j&&T(R.prototype,j),D&&T(R,D),R}})(),u=(a(0),a(5)),m=a(40),f=a(41),d=a(43),h=a(6),p=a(1),v=a(8);function F(T,R){if(!(T instanceof R))throw new TypeError("Cannot call a class as a function")}function b(T,R){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!R||typeof R!="object"&&typeof R!="function"?T:R}i.UserManagerSettings=(function(T){function R(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=j.popup_redirect_uri,N=j.popup_post_logout_redirect_uri,Z=j.popupWindowFeatures,V=j.popupWindowTarget,J=j.silent_redirect_uri,W=j.silentRequestTimeout,le=j.automaticSilentRenew,de=le!==void 0&&le,ve=j.validateSubOnSilentRenew,K=ve!==void 0&&ve,Se=j.includeIdTokenInSilentRenew,y=Se===void 0||Se,E=j.monitorSession,O=E===void 0||E,Q=j.monitorAnonymousSession,se=Q!==void 0&&Q,ce=j.checkSessionInterval,ie=ce
102===void 0?2e3:ce,ae=j.stopCheckSessionOnError,pe=ae===void 0||ae,xe=j.query_status_response_type,je=j.revokeAccessTokenOnSignout,Le=je!==void 0&&je,ze=j.accessTokenExpiringNotificationTime,Be=ze===void 0?60:ze,Je=j.redirectNavigator,Ke=Je===void 0?new m.RedirectNavigator:Je,We=j.popupNavigator,Xe=We===void 0?new f.PopupNavigator:We,M=j.iframeNavigator,S=M===void 0?new d.IFrameNavigator:M,w=j.userStore,H=w===void 0?new h.WebStorageStateStore({store:p.Global.sessionStorage}):w;F(this,R);var $=b(this,T.call(this,arguments[0]));return $._popup_redirect_uri=D,$._popup_post_logout_redirect_uri=N,$._popupWindowFeatures=Z,$._popupWindowTarget=V,$._silent_redirect_uri=J,$._silentRequestTimeout=W,$._automaticSilentRenew=de,$._validateSubOnSilentRenew=K,$._includeIdTokenInSilentRenew=y,$._accessTokenExpiringNotificationTime=Be,$._monitorSession=O,$._monitorAnonymousSession=se,$._checkSessionInterval=ie,$._stopCheckSessionOnError=pe,xe?$._query_status_response_type=xe:arguments[0]&&arguments[0].response_type?$._query_status_response_type=v.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":$._query_status_response_type="id_token",$._revokeAccessTokenOnSignout=Le,$._redirectNavigator=Ke,$._popupNavigator=Xe,$._iframeNavigator=S,$._userStore=H,$}return(function(D,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);D.prototype=Object.create(N&&N.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(D,N):D.__proto__=N)})(R,T),c(R,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._validateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),R})(u.OidcClientSettings)},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.RedirectNavigator=void 0;var c=(function(){function m(f,d){for(var h=0;h<d.length;h++){var p=d[h];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(f,p.key,p)}}return function(f,d,h){return d&&m(f.prototype,d),h&&m(f,h),f}})(),u=a(0);i.RedirectNavigator=(function(){function m(){(function(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")})(this,m)}return m.prototype.prepare=function(){return Promise.resolve(this)},m.prototype.navigate=function(d){return d&&d.url?(d.useReplaceToNavigate?window.location.replace(d.url):window.location=d.url,Promise.resolve()):(u.Log.error("RedirectNavigator.navigate: No url provided"),Promise.reject(new Error("No url provided")))},c(m,[{key:"url",get:function(){return window.location.href}}]),m})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.PopupNavigator=void 0;var c=a(0),u=a(42);i.PopupNavigator=(function(){function m(){(function(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")})(this,m)}return m.prototype.prepare=function(d){var h=new u.PopupWindow(d);return Promise.resolve(h)},m.prototype.callback=function(d,h,p){c.Log.debug("PopupNavigator.callback");try{return u.PopupWindow.notifyOpener(d,h,p),Promise.resolve()}catch(v){return Promise.reject(v)}},m})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.PopupWindow=void 0;var c=(function(){function f(d,h){for(var p=0;p<h.length;p++){var v=h[p];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(d,v.key,v)}}return function(d,h,p){return h&&f(d.prototype,h),p&&f(d,p),d}})(),u=a(0),m=a(3);i.PopupWindow=(function(){function f(d){var h=this;(function(b,T){if(!(b instanceof T))throw new TypeError("Cannot call a class as a function")})(this,f),this._promise=new Promise((function(F,b){h._resolve=F,h._reject=b}));var p=d.popupWindowTarget||"_blank",v=d.popupWindowFeatures||"location=no,toolbar=no,width=500,height=500,left=100,top=100;";this._popup=window.open("",p,v),this._popup&&(u.Log.debug("PopupWindow.ctor: popup successfully created"),this._checkForPopupClosedTimer=window.setInterval(this._checkForPopupClosed.bind(this),500))}return f.prototype.navigate=function(h){return this._popup?h&&h.url?(u.Log.debug("PopupWindow.navigate: Setting URL in popup"),this._id=h.id,this._id&&(window["popupCallback_"+h.id]=this._callback.bind(this)),this._popup.focus(),this._popup.window.location=h.url):(this._error("PopupWindow.navigate: no url provided"),this._error("No url provided")):this._error("PopupWindow.navigate: Error opening popup window"),this.promise},f.prototype._success=function(h){u.Log.debug("PopupWindow.callback: Successful response from popup window"),this._cleanup(),this._resolve(h)},f.prototype._error=function(h){u.Log.error("PopupWindow.error: ",h),this._cleanup(),this._reject(new Error(h))},f.prototype.close=function(){this._cleanup(!1)},f.prototype._cleanup=function(h){u.Log.debug("PopupWindow.cleanup"),window.clearInterval(this._checkForPopupClosedTimer),this._checkForPopupClosedTimer=null,delete window["popupCallback_"+this._id],this._popup&&!h&&this._popup.close(),this._popup=null},f.prototype._checkForPopupClosed=function(){this._popup&&!this._popup.closed||this._error("Popup window closed")},f.prototype._callback=function(h,p){this._cleanup(p),h?(u.Log.debug("PopupWindow.callback success"),this._success({url:h})):(u.Log.debug("PopupWindow.callback: Invalid response from popup"),this._error("Invalid response from popup"))},f.notifyOpener=function(h,p,v){if(window.opener){if(h=h||window.location.href){var F=m.UrlUtility.parseUrlFragment(h,v);if(F.state){var b="popupCallback_"+F.state,T=window.opener[b];T?(u.Log.debug("PopupWindow.notifyOpener: passing url message to opener"),T(h,p)):u.Log.warn("PopupWindow.notifyOpener: no matching callback found on opener")}else u.Log.warn("PopupWindow.notifyOpener: no state found in response url")}}else u.Log.warn("PopupWindow.notifyOpener: no window.opener. Can't complete notification.")},c(f,[{key:"promise",get:function(){return this._promise}}]),f})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.IFrameNavigator=void 0;var c=a(0),u=a(44);
102i.IFrameNavigator=(function(){function m(){(function(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")})(this,m)}return m.prototype.prepare=function(d){var h=new u.IFrameWindow(d);return Promise.resolve(h)},m.prototype.callback=function(d){c.Log.debug("IFrameNavigator.callback");try{return u.IFrameWindow.notifyParent(d),Promise.resolve()}catch(h){return Promise.reject(h)}},m})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.IFrameWindow=void 0;var c=(function(){function m(f,d){for(var h=0;h<d.length;h++){var p=d[h];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(f,p.key,p)}}return function(f,d,h){return d&&m(f.prototype,d),h&&m(f,h),f}})(),u=a(0);i.IFrameWindow=(function(){function m(f){var d=this;(function(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")})(this,m),this._promise=new Promise((function(h,p){d._resolve=h,d._reject=p})),this._boundMessageEvent=this._message.bind(this),window.addEventListener("message",this._boundMessageEvent,!1),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.width=0,this._frame.height=0,window.document.body.appendChild(this._frame)}return m.prototype.navigate=function(d){if(d&&d.url){var h=d.silentRequestTimeout||1e4;u.Log.debug("IFrameWindow.navigate: Using timeout of:",h),this._timer=window.setTimeout(this._timeout.bind(this),h),this._frame.src=d.url}else this._error("No url provided");return this.promise},m.prototype._success=function(d){this._cleanup(),u.Log.debug("IFrameWindow: Successful response from frame window"),this._resolve(d)},m.prototype._error=function(d){this._cleanup(),u.Log.error(d),this._reject(new Error(d))},m.prototype.close=function(){this._cleanup()},m.prototype._cleanup=function(){this._frame&&(u.Log.debug("IFrameWindow: cleanup"),window.removeEventListener("message",this._boundMessageEvent,!1),window.clearTimeout(this._timer),window.document.body.removeChild(this._frame),this._timer=null,this._frame=null,this._boundMessageEvent=null)},m.prototype._timeout=function(){u.Log.debug("IFrameWindow.timeout"),this._error("Frame window timed out")},m.prototype._message=function(d){if(u.Log.debug("IFrameWindow.message"),this._timer&&d.origin===this._origin&&d.source===this._frame.contentWindow&&typeof d.data=="string"&&(d.data.startsWith("http://")||d.data.startsWith("https://"))){var h=d.data;h?this._success({url:h}):this._error("Invalid response from frame")}},m.notifyParent=function(d){u.Log.debug("IFrameWindow.notifyParent"),(d=d||window.location.href)&&(u.Log.debug("IFrameWindow.notifyParent: posting url message to parent"),window.parent.postMessage(d,location.protocol+"//"+location.host))},c(m,[{key:"promise",get:function(){return this._promise}},{key:"_origin",get:function(){return location.protocol+"//"+location.host}}]),m})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.UserManagerEvents=void 0;var c=a(0),u=a(16),m=a(17);i.UserManagerEvents=(function(f){function d(h){(function(F,b){if(!(F instanceof b))throw new TypeError("Cannot call a class as a function")})(this,d);var p=(function(F,b){if(!F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||typeof b!="object"&&typeof b!="function"?F:b})(this,f.call(this,h));return p._userLoaded=new m.Event("User loaded"),p._userUnloaded=new m.Event("User unloaded"),p._silentRenewError=ne
102w m.Event("Silent renew error"),p._userSignedIn=new m.Event("User signed in"),p._userSignedOut=new m.Event("User signed out"),p._userSessionChanged=new m.Event("User session changed"),p}return(function(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)})(d,f),d.prototype.load=function(p){var v=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];c.Log.debug("UserManagerEvents.load"),f.prototype.load.call(this,p),v&&this._userLoaded.raise(p)},d.prototype.unload=function(){c.Log.debug("UserManagerEvents.unload"),f.prototype.unload.call(this),this._userUnloaded.raise()},d.prototype.addUserLoaded=function(p){this._userLoaded.addHandler(p)},d.prototype.removeUserLoaded=function(p){this._userLoaded.removeHandler(p)},d.prototype.addUserUnloaded=function(p){this._userUnloaded.addHandler(p)},d.prototype.removeUserUnloaded=function(p){this._userUnloaded.removeHandler(p)},d.prototype.addSilentRenewError=function(p){this._silentRenewError.addHandler(p)},d.prototype.removeSilentRenewError=function(p){this._silentRenewError.removeHandler(p)},d.prototype._raiseSilentRenewError=function(p){c.Log.debug("UserManagerEvents._raiseSilentRenewError",p.message),this._silentRenewError.raise(p)},d.prototype.addUserSignedIn=function(p){this._userSignedIn.addHandler(p)},d.prototype.removeUserSignedIn=function(p){this._userSignedIn.removeHandler(p)},d.prototype._raiseUserSignedIn=function(){c.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},d.prototype.addUserSignedOut=function(p){this._userSignedOut.addHandler(p)},d.prototype.removeUserSignedOut=function(p){this._userSignedOut.removeHandler(p)},d.prototype._raiseUserSignedOut=function(){c.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},d.prototype.addUserSessionChanged=function(p){this._userSessionChanged.addHandler(p)},d.prototype.removeUserSessionChanged=function(p){this._userSessionChanged.removeHandler(p)},d.prototype._raiseUserSessionChanged=function(){c.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},d})(u.AccessTokenEvents)},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.Timer=void 0;var c=(function(){function p(v,F){for(var b=0;b<F.length;b++){var T=F[b];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(v,T.key,T)}}return function(v,F,b){return F&&p(v.prototype,F),b&&p(v,b),v}})(),u=a(0),m=a(1),f=a(17);function d(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function h(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!v||typeof v!="object"&&typeof v!="function"?p:v}i.Timer=(function(p){function v(F){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m.Global.timer,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;d(this,v);var R=h(this,p.call(this,F));return R._timer=b,R._nowFunc=T||function(){return Date.now()/1e3},R}return(function(b,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);b.prototype=Object.create(T&&T.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(b,T):b.__proto__=T)})(v,p),v.prototype.init=function(b){b<=0&&(b=1),b=parseInt(b);var T=this.now+b;if(this.expiration===T&&this._timerHandle)u.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),u.Log.debug("Timer.init timer "+this._name+" for duration:",b),this._expiration=T;var R=5;b<R&&(R=b),this._timerHandle=this._timer.setInterval(this._callback.bind(this),1e3*R)}},v.prototype.cancel=function(){this._timerHandle&&(u.Log.debug("Timer.cancel: ",this._name),this._timer.clearInterval(this._timerHandle),this._timerHandle=null)},v.prototype._callback=function(){var b=this._expiration-this.now;u.Log.debug("Timer.callback; "+this._name+" timer expires in:",b),this._expiration<=this.now&&(this.cancel(),p.prototype.raise.call(this))}
102,c(v,[{key:"now",get:function(){return parseInt(this._nowFunc())}},{key:"expiration",get:function(){return this._expiration}}]),v})(f.Event)},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.SilentRenewService=void 0;var c=a(0);i.SilentRenewService=(function(){function u(m){(function(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")})(this,u),this._userManager=m}return u.prototype.start=function(){this._callback||(this._callback=this._tokenExpiring.bind(this),this._userManager.events.addAccessTokenExpiring(this._callback),this._userManager.getUser().then((function(f){})).catch((function(f){c.Log.error("SilentRenewService.start: Error from getUser:",f.message)})))},u.prototype.stop=function(){this._callback&&(this._userManager.events.removeAccessTokenExpiring(this._callback),delete this._callback)},u.prototype._tokenExpiring=function(){var f=this;this._userManager.signinSilent().then((function(d){c.Log.debug("SilentRenewService._tokenExpiring: Silent token renewal successful")}),(function(d){c.Log.error("SilentRenewService._tokenExpiring: Error from signinSilent:",d.message),f._userManager.events._raiseSilentRenewError(d)}))},u})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.CordovaPopupNavigator=void 0;var c=a(21);i.CordovaPopupNavigator=(function(){function u(){(function(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")})(this,u)}return u.prototype.prepare=function(f){var d=new c.CordovaPopupWindow(f);return Promise.resolve(d)},u})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.CordovaIFrameNavigator=void 0;var c=a(21);i.CordovaIFrameNavigator=(function(){function u(){(function(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")})(this,u)}return u.prototype.prepare=function(f){f.popupWindowFeatures="hidden=yes";var d=new c.CordovaPopupWindow(f);return Promise.resolve(d)},u})()},function(o,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.Version="1.11.5"}])}))})(Ln)),Ln.exports}var Vu=Bu();const Qv=to(Vu);class Zv{constructor(){this.DEFAULT_CONFIG={expires:"1d",path:"; path=/"}}config(t){t.expires&&(this.DEFAULT_CONFIG.expires=t.expires),t.path===""?this.DEFAULT_CONFIG.path="":this.DEFAULT_CONFIG.path="; path="+t.path}get(t){let o=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null;if(o&&o.startsWith("{")&&o.endsWith("}"))try{o=JSON.parse(o)}catch{return o}return o}set(t,o,i={}){if(t){if(/^(?:expires|max\-age|path|domain|secure)$/i.test(t))throw new Error("cookie key name illegality ,Cannot be set to ['expires','max-age','path','domain','secure'] current key name: "+t)}else throw new Error("cookie name is not find in first argument");o&&o.constructor===Object&&(o=JSON.stringify(o));let a="; max-age=86400",c=i.expires||this.DEFAULT_CONFIG.expires;if(c)switch(c.constructor){case Number:c===1/0||c===-1?a="; expires=Fri, 31 Dec 9999 23:59:59 GMT":a="; max-age="+c;break;case String:if(/^(?:\d{1,}(y|m|d|h|min|s))$/i.test(c)){let u=c.replace(/^(\d{1,})(?:y|m|d|h|min|s)$/i,"$1");switch(c.replace(/^(?:\d{1,})(y|m|d|h|min|s)$/i,"$1").toLowerCase()){case"m":a="; max-age="+ +u*2592e3;break;case"d":a="; max-age="+ +u*86400;break;case"h":a="; max-age="+ +u*3600;break;case"min":a="; max-age="+ +u*60;break;case"s":a="; max-age="+u;break;case"y":a="; max-age="+ +u*31104e3;break}}else a="; expires="+c;break;case Date:a="; expires="+c.toUTCString();break}return document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(o)+a+(i.domain?"; domain="+i.domain:"")+(i.path?"; path="+i.path:this.DEFAULT_CONFIG.path)+(i.secure?"; secure":""),this}remove(t,o={}){return!t||!this.isKey(t)?!1:(document.cookie=encodeURIComponent(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(o.domain?"; domain="+o.domain:"")+(o.path?"; path="+o.path:this.DEFAULT_CONFIG.path),this)}isKey(t){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)}keys(){if(!document.cookie)return[];for(var t=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),o=0;o<t.length;o++)t[o]=decodeURIComponent(t[o]);return t}}var zn={exports:{}},cn={exports:{}};/*! https://mths.be/punycode v1.4.0 by @mathias */var Wu=cn.exports,Ho;function Yu(){return Ho||(Ho=1,(function(e,t){(function(o){var i=t&&!t.nodeType&&t,a=e&&!e.nodeType&&e,c=typeof Mo=="object"&&Mo;(c.global===c||c.window===c||c.self===c)&&(o=c);var u,m=2147483647,f=36,d=1,h=26,p=38,v=700,F=72,b=128,T="-",R=/^xn--/,j=/[^\x20-\x7E]/,D=/[\x2E\u3002\uFF0E\uFF61]/g,N={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >
102= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Z=f-d,V=Math.floor,J=String.fromCharCode,W;function le(ae){throw new RangeError(N[ae])}function de(ae,pe){for(var xe=ae.length,je=[];xe--;)je[xe]=pe(ae[xe]);return je}function ve(ae,pe){var xe=ae.split("@"),je="";xe.length>1&&(je=xe[0]+"@",ae=xe[1]),ae=ae.replace(D,".");var Le=ae.split("."),ze=de(Le,pe).join(".");return je+ze}function K(ae){for(var pe=[],xe=0,je=ae.length,Le,ze;xe<je;)Le=ae.charCodeAt(xe++),Le>=55296&&Le<=56319&&xe<je?(ze=ae.charCodeAt(xe++),(ze&64512)==56320?pe.push(((Le&1023)<<10)+(ze&1023)+65536):(pe.push(Le),xe--)):pe.push(Le);return pe}function Se(ae){return de(ae,function(pe){var xe="";return pe>65535&&(pe-=65536,xe+=J(pe>>>10&1023|55296),pe=56320|pe&1023),xe+=J(pe),xe}).join("")}function y(ae){return ae-48<10?ae-22:ae-65<26?ae-65:ae-97<26?ae-97:f}function E(ae,pe){return ae+22+75*(ae<26)-((pe!=0)<<5)}function O(ae,pe,xe){var je=0;for(ae=xe?V(ae/v):ae>>1,ae+=V(ae/pe);ae>Z*h>>1;je+=f)ae=V(ae/Z);return V(je+(Z+1)*ae/(ae+p))}function Q(ae){var pe=[],xe=ae.length,je,Le=0,ze=b,Be=F,Je,Ke,We,Xe,M,S,w,H,$;for(Je=ae.lastIndexOf(T),Je<0&&(Je=0),Ke=0;Ke<Je;++Ke)ae.charCodeAt(Ke)>=128&&le("not-basic"),pe.push(ae.charCodeAt(Ke));for(We=Je>0?Je+1:0;We<xe;){for(Xe=Le,M=1,S=f;We>=xe&&le("invalid-input"),w=y(ae.charCodeAt(We++)),(w>=f||w>V((m-Le)/M))&&le("overflow"),Le+=w*M,H=S<=Be?d:S>=Be+h?h:S-Be,!(w<H);S+=f)$=f-H,M>V(m/$)&&le("overflow"),M*=$;je=pe.length+1,Be=O(Le-Xe,je,Xe==0),V(Le/je)>m-ze&&le("overflow"),ze+=V(Le/je),Le%=je,pe.splice(Le++,0,ze)}return Se(pe)}function se(ae){var pe,xe,je,Le,ze,Be,Je,Ke,We,Xe,M,S=[],w,H,$,X;for(ae=K(ae),w=ae.length,pe=b,xe=0,ze=F,Be=0;Be<w;++Be)M=ae[Be],M<128&&S.push(J(M));for(je=Le=S.length,Le&&S.push(T);je<w;){for(Je=m,Be=0;Be<w;++Be)M=ae[Be],M>=pe&&M<Je&&(Je=M);for(H=je+1,Je-pe>V((m-xe)/H)&&le("overflow"),xe+=(Je-pe)*H,pe=Je,Be=0;Be<w;++Be)if(M=ae[Be],M<pe&&++xe>m&&le("overflow"),M==pe){for(Ke=xe,We=f;Xe=We<=ze?d:We>=ze+h?h:We-ze,!(Ke<Xe);We+=f)X=Ke-Xe,$=f-Xe,S.push(J(E(Xe+X%$,0))),Ke=V(X/$);S.push(J(E(Ke,0))),ze=O(xe,H,je==Le),xe=0,++je}++xe,++pe}return S.join("")}function ce(ae){return ve(ae,function(pe){return R.test(pe)?Q(pe.slice(4).toLowerCase()):pe})}function ie(ae){return ve(ae,function(pe){return j.test(pe)?"xn--"+se(pe):pe})}if(u={version:"1.3.2",ucs2:{decode:K,encode:Se},decode:Q,encode:se,toASCII:ie,toUnicode:ce},i&&a)if(e.exports==i)a.exports=u;else for(W in u)u.hasOwnProperty(W)&&(i[W]=u[W]);else o.punycode=u})(Wu)})(cn,cn.exports)),cn.exports}var Un={exports:{}};/*! 103 * URI.js - Mutating URLs 104 * IPv6 Support 105 * 106 * Version: 1.19.11 107 * 108 * Author: Rodney Rehm 109 * Web: http://medialize.github.io/URI.js/ 110 * 111 * Licensed under 112 * MIT License http://www.opensource.org/licenses/mit-license 113 * 114 */var qu=Un.exports,Bo;function Ku(){return Bo||(Bo=1,(function(e){(function(t,o){e.exports?e.exports=o():t.IPv6=o(t)})(qu,function(t){var o=t&&t.IPv6;function i(c){var u=c.toLowerCase(),m=u.split(":"),f=m.length,d=8;m[0]===""&&m[1]===""&&m[2]===""?(m.shift(),m.shift()):m[0]===""&&m[1]===""?m.shift():m[f-1]===""&&m[f-2]===""&&m.pop(),f=m.length,m[f-1].indexOf(".")!==-1&&(d=7);var h;for(h=0;h<f&&m[h]!=="";h++);if(h<d)for(m.splice(h,1,"0000");m.length<d;)m.splice(h,0,"0000");for(var p,v=0;v<d;v++){p=m[v].split("");for(var F=0;F<3&&(p[0]==="0"&&p.length>1);F++)p.splice(0,1);m[v]=p.join("")}var b=-1,T=0,R=0,j=-1,D=!1;for(v=0;v<d;v++)D?m[v]==="0"?R+=1:(D=!1,R>T&&(b=j,T=R)):m[v]==="0"&&(D=!0,j=v,R=1);R>T&&(b=j,T=R),T>1&&m.splice(b,T,""),f=m.length;var N="";for(m[0]===""&&(N=":"),v=0;v<f&&(N+=m[v],v!==f-1);v++)N+=":";return m[f-1]===""&&(N+=":"),N}function a(){return t.IPv6===this&&(t.IPv6=o),this}return{best:i,noConflict:a}})})(Un)),Un.exports}var Mn={exports:{}};/*! 115 * URI.js - Mutating URLs 116 * Second Level Domain (SLD) Support 117 * 118 * Version: 1.19.11 119 * 120 * Author: Rodney Rehm 121 * Web: http://medialize.github.io/URI.js/ 122 * 123 * Licensed under 124 * MIT License http://www.opensource.org/licenses/mit-license 125 * 126 */var $u=Mn.exports,Vo;function Ju(){return Vo||(Vo=1,(function(e){(function(t,o){e.exports?e.exports=o():t.SecondLevelDomains=o(t)})($u,function(t){var o=t&&t.SecondLevelDomains,i={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" c
126om edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk d
126p edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(a){var c=a.lastIndexOf(".");if(c<=0||c>=a.length-1)return!1;var u=a.lastIndexOf(".",c-1);if(u<=0||u>=c-1)return!1;var m=i.list[a.slice(c+1)];return m?m.indexOf(" "+a.slice(u+1,c)+" ")>=0:!1},is:function(a){var c=a.lastIndexOf(".");if(c<=0||c>=a.length-1)return!1;var u=a.lastIndexOf(".",c-1);if(u>=0)return!1;var m=i.list[a.slice(c+1)];return m?m.indexOf(" "+a.slice(0,c)+" ")>=0:!1},get:function(a){var c=a.lastIndexOf(".");if(c<=0||c>=a.length-1)return null;var u=a.lastIndexOf(".",c-1);if(u<=0||u>=c-1)return null;var m=i.list[a.slice(c+1)];return!m||m.indexOf(" "+a.slice(u+1,c)+" ")<0?null:a.slice(u+1)},noConflict:function(){return t.SecondLevelDomains===this&&(t.SecondLevelDomains=o),this}};return i})})(Mn)),Mn.exports}/*! 127 * URI.js - Mutating URLs 128 * 129 * Version: 1.19.11 130 * 131 * Author: Rodney Rehm 132 * Web: http://medialize.github.io/URI.js/ 133 * 134 * Licensed under 135 * MIT License http://www.opensource.org/licenses/mit-license 136 * 137 */var Gu=zn.exports,Wo;function Qu(){return Wo||(Wo=1,(function(e){(function(t,o){e.exports?e.exports=o(Yu(),Ku(),Ju()):t.URI=o(t.punycode,t.IPv6,t.SecondLevelDomains,t)})(Gu,function(t,o,i,a){var c=a&&a.URI;function u(y,E){var O=arguments.length>=1,Q=arguments.length>=2;if(!(this instanceof u))return O?Q?new u(y,E):new u(y):new u;if(y===void 0){if(O)throw new TypeError("undefined is not a valid argument for URI");typeof location<"u"?y=location.href+"":y=""}if(y===null&&O)throw new TypeError("null is not a valid argument for URI");return this.href(y),E!==void 0?this.absoluteTo(E):this}function m(y){return/^[0-9]+$/.test(y)}u.version="1.19.11";var f=u.prototype,d=Object.prototype.hasOwnProperty;function h(y){return y.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function p(y){return y===void 0?"Undefined":String(Object.prototype.toString.call(y)).slice(8,-1)}function v(y){return p(y)==="Array"}function F(y,E){var O={},Q,se;if(p(E)==="RegExp")O=null;else if(v(E))for(Q=0,se=E.length;Q<se;Q++)O[E[Q]]=!0;else O[E]=!0;for(Q=0,se=y.length;Q<se;Q++){var ce=O&&O[y[Q]]!==void 0||!O&&E.test(y[Q]);ce&&(y.splice(Q,1),se--,Q--)}return y}function b(y,E){var O,Q;if(v(E)){for(O=0,Q=E.length;O<Q;O++)if(!b(y,E[O]))return!1;return!0}var se=p(E);for(O=0,Q=y.length;O<Q;O++)if(se==="RegExp"){if(typeof y[O]=="string"&&y[O].match(E))return!0}else if(y[O]===E)return!0;return!1}function T(y,E){if(!v(y)||!v(E)||y.length!==E.length)return!1;y.sort(),E.sort();for(var O=0,Q=y.length;O<Q;O++)if(y[O]!==E[O])return!1;return!0}function R(y){var E=/^\/+|\/+$/g;return y.replace(E,"")}u._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:u.preventInvalidHostname,duplicateQueryParameters:u.duplicateQueryParameters,escapeQuerySpace:u.escapeQuerySpace}},u.preventInvalidHostname=!1,u.duplicateQueryParameters=!1,u.escapeQuerySpace=!0,u.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,u.idn_expression=/[^a-z0-9\._-]/i,u.punycode_expression=/(xn--)/i,u.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,u.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,u.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»ââââ]))/ig,u.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»âââââ]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},u.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,u.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,u.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"}
137,u.hostProtocols=["http","https"],u.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,u.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},u.getDomAttribute=function(y){if(!(!y||!y.nodeName)){var E=y.nodeName.toLowerCase();if(!(E==="input"&&y.type!=="image"))return u.domAttributes[E]}};function j(y){return escape(y)}function D(y){return encodeURIComponent(y).replace(/[!'()*]/g,j).replace(/\*/g,"%2A")}u.encode=D,u.decode=decodeURIComponent,u.iso8859=function(){u.encode=escape,u.decode=unescape},u.unicode=function(){u.encode=D,u.decode=decodeURIComponent},u.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},u.encodeQuery=function(y,E){var O=u.encode(y+"");return E===void 0&&(E=u.escapeQuerySpace),E?O.replace(/%20/g,"+"):O},u.decodeQuery=function(y,E){y+="",E===void 0&&(E=u.escapeQuerySpace);try{return u.decode(E?y.replace(/\+/g,"%20"):y)}catch{return y}};var N={encode:"encode",decode:"decode"},Z,V=function(y,E){return function(O){try{return u[E](O+"").replace(u.characters[y][E].expression,function(Q){return u.characters[y][E].map[Q]})}catch{return O}}};for(Z in N)u[Z+"PathSegment"]=V("pathname",N[Z]),u[Z+"UrnPathSegment"]=V("urnpath",N[Z]);var J=function(y,E,O){return function(Q){var se;O?se=function(pe){return u[E](u[O](pe))}:se=u[E];for(var ce=(Q+"").split(y),ie=0,ae=ce.length;ie<ae;ie++)ce[ie]=se(ce[ie]);return ce.join(y)}};u.decodePath=J("/","decodePathSegment"),u.decodeUrnPath=J(":","decodeUrnPathSegment"),u.recodePath=J("/","encodePathSegment","decode"),u.recodeUrnPath=J(":","encodeUrnPathSegment","decode"),u.encodeReserved=V("reserved","encode"),u.parse=function(y,E){var O;return E||(E={preventInvalidHostname:u.preventInvalidHostname}),y=y.replace(u.leading_whitespace_expression,""),y=y.replace(u.ascii_tab_whitespace,""),O=y.indexOf("#"),O>-1&&(E.fragment=y.substring(O+1)||null,y=y.substring(0,O)),O=y.indexOf("?"),O>-1&&(E.query=y.substring(O+1)||null,y=y.substring(0,O)),y=y.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://"),y=y.replace(/^[/\\]{2,}/i,"//"),y.substring(0,2)==="//"?(E.protocol=null,y=y.substring(2),y=u.parseAuthority(y,E)):(O=y.indexOf(":"),O>-1&&(E.protocol=y.substring(0,O)||null,E.protocol&&!E.protocol.match(u.protocol_expression)?E.protocol=void 0:y.substring(O+1,O+3).replace(/\\/g,"/")==="//"?(y=y.substring(O+3),y=u.parseAuthority(y,E)):(y=y.substring(O+1),E.urn=!0))),E.path=y,E},u.parseHost=function(y,E){y||(y=""),y=y.replace(/\\/g,"/");var O=y.indexOf("/"),Q,se;if(O===-1&&(O=y.length),y.charAt(0)==="[")Q=y.indexOf("]"),E.hostname=y.substring(1,Q)||null,E.port=y.substring(Q+2,O)||null,E.port==="/"&&(E.port=null);else{var ce=y.indexOf(":"),ie=y.indexOf("/"),ae=y.indexOf(":",ce+1);ae!==-1&&(ie===-1||ae<ie)?(E.hostname=y.substring(0,O)||null,E.port=null):(se=y.substring(0,O).split(":"),E.hostname=se[0]||null,E.port=se[1]||null)}return E.hostname&&y.substring(O).charAt(0)!=="/"&&(O++,y="/"+y),E.preventInvalidHostname&&u.ensureValidHostname(E.hostname,E.protocol),E.port&&u.ensureValidPort(E.port),y.substring(O)||"/"},u.parseAuthority=function(y,E){return y=u.parseUserinfo(y,E),u.parseHost(y,E)},u.parseUserinfo=function(y,E){var O=y,Q=y.indexOf("\\");Q!==-1&&(y=y.replace(/\\/g,"/"));var se=y.indexOf("/"),ce=y.lastIndexOf("@",se>-1?se:y.length-1),ie;return ce>-1&&(se===-1||ce<se)?(ie=y.substring(0,ce).split(":"),E.username=ie[0]?u.decode(ie[0]):null,ie.shift(),E.password=ie[0]?u.decode(ie.join(":")):null,y=O.substring(ce+1)):(E.username=null,E.password=null),y}
137,u.parseQuery=function(y,E){if(!y)return{};if(y=y.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,""),!y)return{};for(var O={},Q=y.split("&"),se=Q.length,ce,ie,ae,pe=0;pe<se;pe++)ce=Q[pe].split("="),ie=u.decodeQuery(ce.shift(),E),ae=ce.length?u.decodeQuery(ce.join("="),E):null,ie!=="__proto__"&&(d.call(O,ie)?((typeof O[ie]=="string"||O[ie]===null)&&(O[ie]=[O[ie]]),O[ie].push(ae)):O[ie]=ae);return O},u.build=function(y){var E="",O=!1;return y.protocol&&(E+=y.protocol+":"),!y.urn&&(E||y.hostname)&&(E+="//",O=!0),E+=u.buildAuthority(y)||"",typeof y.path=="string"&&(y.path.charAt(0)!=="/"&&O&&(E+="/"),E+=y.path),typeof y.query=="string"&&y.query&&(E+="?"+y.query),typeof y.fragment=="string"&&y.fragment&&(E+="#"+y.fragment),E},u.buildHost=function(y){var E="";if(y.hostname)u.ip6_expression.test(y.hostname)?E+="["+y.hostname+"]":E+=y.hostname;else return"";return y.port&&(E+=":"+y.port),E},u.buildAuthority=function(y){return u.buildUserinfo(y)+u.buildHost(y)},u.buildUserinfo=function(y){var E="";return y.username&&(E+=u.encode(y.username)),y.password&&(E+=":"+u.encode(y.password)),E&&(E+="@"),E},u.buildQuery=function(y,E,O){var Q="",se,ce,ie,ae;for(ce in y)if(ce!=="__proto__"&&d.call(y,ce))if(v(y[ce]))for(se={},ie=0,ae=y[ce].length;ie<ae;ie++)y[ce][ie]!==void 0&&se[y[ce][ie]+""]===void 0&&(Q+="&"+u.buildQueryParameter(ce,y[ce][ie],O),E!==!0&&(se[y[ce][ie]+""]=!0));else y[ce]!==void 0&&(Q+="&"+u.buildQueryParameter(ce,y[ce],O));return Q.substring(1)},u.buildQueryParameter=function(y,E,O){return u.encodeQuery(y,O)+(E!==null?"="+u.encodeQuery(E,O):"")},u.addQuery=function(y,E,O){if(typeof E=="object")for(var Q in E)d.call(E,Q)&&u.addQuery(y,Q,E[Q]);else if(typeof E=="string"){if(y[E]===void 0){y[E]=O;return}else typeof y[E]=="string"&&(y[E]=[y[E]]);v(O)||(O=[O]),y[E]=(y[E]||[]).concat(O)}else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter")},u.setQuery=function(y,E,O){if(typeof E=="object")for(var Q in E)d.call(E,Q)&&u.setQuery(y,Q,E[Q]);else if(typeof E=="string")y[E]=O===void 0?null:O;else throw new TypeError("URI.setQuery() accepts an object, string as the name parameter")},u.removeQuery=function(y,E,O){var Q,se,ce;if(v(E))for(Q=0,se=E.length;Q<se;Q++)y[E[Q]]=void 0;else if(p(E)==="RegExp")for(ce in y)E.test(ce)&&(y[ce]=void 0);else if(typeof E=="object")for(ce in E)d.call(E,ce)&&u.removeQuery(y,ce,E[ce]);else if(typeof E=="string")O!==void 0?p(O)==="RegExp"?!v(y[E])&&O.test(y[E])?y[E]=void 0:y[E]=F(y[E],O):y[E]===String(O)&&(!v(O)||O.length===1)?y[E]=void 0:v(y[E])&&(y[E]=F(y[E],O)):y[E]=void 0;else throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter")},u.hasQuery=function(y,E,O,Q){switch(p(E)){case"String":break;case"RegExp":for(var se in y)if(d.call(y,se)&&E.test(se)&&(O===void 0||u.hasQuery(y,se,O)))return!0;return!1;case"Object":for(var ce in E)if(d.call(E,ce)&&!u.hasQuery(y,ce,E[ce]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(p(O)){case"Undefined":return E in y;case"Boolean":var ie=!!(v(y[E])?y[E].length:y[E]);return O===ie;case"Function":return!!O(y[E],E,y);case"Array":if(!v(y[E]))return!1;var ae=Q?b:T;return ae(y[E],O);case"RegExp":return v(y[E])?Q?b(y[E],O):!1:!!(y[E]&&y[E].match(O));case"Number":O=String(O);case"String":return v(y[E])?Q?b(y[E],O):!1:y[E]===O;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},u.joinPaths=function(){for(var y=[],E=[],O=0,Q=0;Q<arguments.length;Q++){var se=new u(arguments[Q]);y.push(se);for(var ce=se.segment(),ie=0;ie<ce.length;ie++)typeof ce[ie]=="string"&&E.push(ce[ie]),ce[ie]&&O++}if(!E.length||!O)return new u("");var ae=new u("").segment(E);return(y[0].path()===""||y[0].path().slice(0,1)==="/")&&ae.path("/"+ae.path()),ae.normalize()},u.commonPath=function(y,E){var O=Math.min(y.length,E.length),Q;for(Q=0;Q<O;Q++)if(y.charAt(Q)!==E.charAt(Q)){Q--;break}return Q<1?y.charAt(0)===E.charAt(0)&&y.charAt(0)==="/"?"/":"":((y.charAt(Q)!=="/"||E.charAt(Q)!=="/")&&(Q=y.substring(0,Q).lastIndexOf("/")),y.substring(0,Q+1))},u.withinString=function(y,E,O){O||(O={});var Q=O.start||u.findUri.start,se=O.end||u.findUri.end,ce=O.trim||u.findUri.trim,ie=O.parens||u.findUri.parens,ae=/[a-z0-9-]=["']?$/i;for(Q.lastIndex=0;;){var pe=Q.exec(y);if(!pe)break;var xe=pe.index;if(O.ignoreHtml){var je=y.slice(Math.max(xe-3,0),xe);if(je&&ae.test(je))continue}for(var Le=xe+y.slice(xe).search(se),ze=y.slice(xe,Le),Be=-1;;){var Je=ie.exec(ze);if(!Je)break;var Ke=Je.index+Je[0].length;
137Be=Math.max(Be,Ke)}if(Be>-1?ze=ze.slice(0,Be)+ze.slice(Be).replace(ce,""):ze=ze.replace(ce,""),!(ze.length<=pe[0].length)&&!(O.ignore&&O.ignore.test(ze))){Le=xe+ze.length;var We=E(ze,xe,Le,y);if(We===void 0){Q.lastIndex=Le;continue}We=String(We),y=y.slice(0,xe)+We+y.slice(Le),Q.lastIndex=xe+We.length}}return Q.lastIndex=0,y},u.ensureValidHostname=function(y,E){var O=!!y,Q=!!E,se=!1;if(Q&&(se=b(u.hostProtocols,E)),se&&!O)throw new TypeError("Hostname cannot be empty, if protocol is "+E);if(y&&y.match(u.invalid_hostname_characters)){if(!t)throw new TypeError('Hostname "'+y+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(t.toASCII(y).match(u.invalid_hostname_characters))throw new TypeError('Hostname "'+y+'" contains characters other than [A-Z0-9.-:_]')}},u.ensureValidPort=function(y){if(y){var E=Number(y);if(!(m(E)&&E>0&&E<65536))throw new TypeError('Port "'+y+'" is not a valid port')}},u.noConflict=function(y){if(y){var E={URI:this.noConflict()};return a.URITemplate&&typeof a.URITemplate.noConflict=="function"&&(E.URITemplate=a.URITemplate.noConflict()),a.IPv6&&typeof a.IPv6.noConflict=="function"&&(E.IPv6=a.IPv6.noConflict()),a.SecondLevelDomains&&typeof a.SecondLevelDomains.noConflict=="function"&&(E.SecondLevelDomains=a.SecondLevelDomains.noConflict()),E}else a.URI===this&&(a.URI=c);return this},f.build=function(y){return y===!0?this._deferred_build=!0:(y===void 0||this._deferred_build)&&(this._string=u.build(this._parts),this._deferred_build=!1),this},f.clone=function(){return new u(this)},f.valueOf=f.toString=function(){return this.build(!1)._string};function W(y){return function(E,O){return E===void 0?this._parts[y]||"":(this._parts[y]=E||null,this.build(!O),this)}}function le(y,E){return function(O,Q){return O===void 0?this._parts[y]||"":(O!==null&&(O=O+"",O.charAt(0)===E&&(O=O.substring(1))),this._parts[y]=O,this.build(!Q),this)}}f.protocol=W("protocol"),f.username=W("username"),f.password=W("password"),f.hostname=W("hostname"),f.port=W("port"),f.query=le("query","?"),f.fragment=le("fragment","#"),f.search=function(y,E){var O=this.query(y,E);return typeof O=="string"&&O.length?"?"+O:O},f.hash=function(y,E){var O=this.fragment(y,E);return typeof O=="string"&&O.length?"#"+O:O},f.pathname=function(y,E){if(y===void 0||y===!0){var O=this._parts.path||(this._parts.hostname?"/":"");return y?(this._parts.urn?u.decodeUrnPath:u.decodePath)(O):O}else return this._parts.urn?this._parts.path=y?u.recodeUrnPath(y):"":this._parts.path=y?u.recodePath(y):"/",this.build(!E),this},f.path=f.pathname,f.href=function(y,E){var O;if(y===void 0)return this.toString();this._string="",this._parts=u._parts();var Q=y instanceof u,se=typeof y=="object"&&(y.hostname||y.path||y.pathname);if(y.nodeName){var ce=u.getDomAttribute(y);y=y[ce]||"",se=!1}if(!Q&&se&&y.pathname!==void 0&&(y=y.toString()),typeof y=="string"||y instanceof String)this._parts=u.parse(String(y),this._parts);else if(Q||se){var ie=Q?y._parts:y;for(O in ie)O!=="query"&&d.call(this._parts,O)&&(this._parts[O]=ie[O]);ie.query&&this.query(ie.query,!1)}else throw new TypeError("invalid input");return this.build(!E),this},f.is=function(y){var E=!1,O=!1,Q=!1,se=!1,ce=!1,ie=!1,ae=!1,pe=!this._parts.urn;switch(this._parts.hostname&&(pe=!1,O=u.ip4_expression.test(this._parts.hostname),Q=u.ip6_expression.test(this._parts.hostname),E=O||Q,se=!E,ce=se&&i&&i.has(this._parts.hostname),ie=se&&u.idn_expression.test(this._parts.hostname),ae=se&&u.punycode_expression.test(this._parts.hostname)),y.toLowerCase()){case"relative":return pe;case"absolute":return!pe;case"domain":case"name":return se;case"sld":return ce;case"ip":return E;case"ip4":case"ipv4":case"inet4":return O;case"ip6":case"ipv6":case"inet6":return Q;case"idn":return ie;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return ae}return null};var de=f.protocol,ve=f.port,K=f.hostname;f.protocol=function(y,E){if(y&&(y=y.replace(/:(\/\/)?$/,""),!y.match(u.protocol_expression)))throw new TypeError('Protocol "'+y+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return de.call(this,y,E)},f.scheme=f.protocol,f.port=function(y,E){return this._parts.urn?y===void 0?"":this:(y!==void 0&&(y===0&&(y=null),y&&(y+="",y.charAt(0)===":"&&(y=y.substring(1)),u.ensureValidPort(y))),ve.call(this,y,E))}
137,f.hostname=function(y,E){if(this._parts.urn)return y===void 0?"":this;if(y!==void 0){var O={preventInvalidHostname:this._parts.preventInvalidHostname},Q=u.parseHost(y,O);if(Q!=="/")throw new TypeError('Hostname "'+y+'" contains characters other than [A-Z0-9.-]');y=O.hostname,this._parts.preventInvalidHostname&&u.ensureValidHostname(y,this._parts.protocol)}return K.call(this,y,E)},f.origin=function(y,E){if(this._parts.urn)return y===void 0?"":this;if(y===void 0){var O=this.protocol(),Q=this.authority();return Q?(O?O+"://":"")+this.authority():""}else{var se=u(y);return this.protocol(se.protocol()).authority(se.authority()).build(!E),this}},f.host=function(y,E){if(this._parts.urn)return y===void 0?"":this;if(y===void 0)return this._parts.hostname?u.buildHost(this._parts):"";var O=u.parseHost(y,this._parts);if(O!=="/")throw new TypeError('Hostname "'+y+'" contains characters other than [A-Z0-9.-]');return this.build(!E),this},f.authority=function(y,E){if(this._parts.urn)return y===void 0?"":this;if(y===void 0)return this._parts.hostname?u.buildAuthority(this._parts):"";var O=u.parseAuthority(y,this._parts);if(O!=="/")throw new TypeError('Hostname "'+y+'" contains characters other than [A-Z0-9.-]');return this.build(!E),this},f.userinfo=function(y,E){if(this._parts.urn)return y===void 0?"":this;if(y===void 0){var O=u.buildUserinfo(this._parts);return O&&O.substring(0,O.length-1)}else return y[y.length-1]!=="@"&&(y+="@"),u.parseUserinfo(y,this._parts),this.build(!E),this},f.resource=function(y,E){var O;return y===void 0?this.path()+this.search()+this.hash():(O=u.parse(y),this._parts.path=O.path,this._parts.query=O.query,this._parts.fragment=O.fragment,this.build(!E),this)},f.subdomain=function(y,E){if(this._parts.urn)return y===void 0?"":this;if(y===void 0){if(!this._parts.hostname||this.is("IP"))return"";var O=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,O)||""}else{var Q=this._parts.hostname.length-this.domain().length,se=this._parts.hostname.substring(0,Q),ce=new RegExp("^"+h(se));if(y&&y.charAt(y.length-1)!=="."&&(y+="."),y.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");return y&&u.ensureValidHostname(y,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(ce,y),this.build(!E),this}},f.domain=function(y,E){if(this._parts.urn)return y===void 0?"":this;if(typeof y=="boolean"&&(E=y,y=void 0),y===void 0){if(!this._parts.hostname||this.is("IP"))return"";var O=this._parts.hostname.match(/\./g);if(O&&O.length<2)return this._parts.hostname;var Q=this._parts.hostname.length-this.tld(E).length-1;return Q=this._parts.hostname.lastIndexOf(".",Q-1)+1,this._parts.hostname.substring(Q)||""}else{if(!y)throw new TypeError("cannot set domain empty");if(y.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");if(u.ensureValidHostname(y,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=y;else{var se=new RegExp(h(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(se,y)}return this.build(!E),this}},f.tld=function(y,E){if(this._parts.urn)return y===void 0?"":this;if(typeof y=="boolean"&&(E=y,y=void 0),y===void 0){if(!this._parts.hostname||this.is("IP"))return"";var O=this._parts.hostname.lastIndexOf("."),Q=this._parts.hostname.substring(O+1);return E!==!0&&i&&i.list[Q.toLowerCase()]&&i.get(this._parts.hostname)||Q}else{var se;if(y)if(y.match(/[^a-zA-Z0-9-]/))if(i&&i.is(y))se=new RegExp(h(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(se,y);else throw new TypeError('TLD "'+y+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");se=new RegExp(h(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(se,y)}else throw new TypeError("cannot set TLD empty");return this.build(!E),this}},f.directory=function(y,E){if(this._parts.urn)return y===void 0?"":this;if(y===void 0||y===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var O=this._parts.path.length-this.filename().length-1,Q=this._parts.path.substring(0,O)||(this._parts.hostname?"/":"");return y?u.decodePath(Q):Q}else{var se=this._parts.path.length-this.filename().length,ce=this._parts.path.substring(0,se),ie=new RegExp("^"+h(ce));return this.is("relative")||(y||(y="/"),y.charAt(0)!=="/"&&(y="/"+y)),y&&y.charAt(y.length-1)!=="/"&&(y+="/"),y=u.recodePath(y),this._parts.path=this._parts.path.replace(ie,y),this.build(!E),this}}
137,f.filename=function(y,E){if(this._parts.urn)return y===void 0?"":this;if(typeof y!="string"){if(!this._parts.path||this._parts.path==="/")return"";var O=this._parts.path.lastIndexOf("/"),Q=this._parts.path.substring(O+1);return y?u.decodePathSegment(Q):Q}else{var se=!1;y.charAt(0)==="/"&&(y=y.substring(1)),y.match(/\.?\//)&&(se=!0);var ce=new RegExp(h(this.filename())+"$");return y=u.recodePath(y),this._parts.path=this._parts.path.replace(ce,y),se?this.normalizePath(E):this.build(!E),this}},f.suffix=function(y,E){if(this._parts.urn)return y===void 0?"":this;if(y===void 0||y===!0){if(!this._parts.path||this._parts.path==="/")return"";var O=this.filename(),Q=O.lastIndexOf("."),se,ce;return Q===-1?"":(se=O.substring(Q+1),ce=/^[a-z0-9%]+$/i.test(se)?se:"",y?u.decodePathSegment(ce):ce)}else{y.charAt(0)==="."&&(y=y.substring(1));var ie=this.suffix(),ae;if(ie)y?ae=new RegExp(h(ie)+"$"):ae=new RegExp(h("."+ie)+"$");else{if(!y)return this;this._parts.path+="."+u.recodePath(y)}return ae&&(y=u.recodePath(y),this._parts.path=this._parts.path.replace(ae,y)),this.build(!E),this}},f.segment=function(y,E,O){var Q=this._parts.urn?":":"/",se=this.path(),ce=se.substring(0,1)==="/",ie=se.split(Q);if(y!==void 0&&typeof y!="number"&&(O=E,E=y,y=void 0),y!==void 0&&typeof y!="number")throw new Error('Bad segment "'+y+'", must be 0-based integer');if(ce&&ie.shift(),y<0&&(y=Math.max(ie.length+y,0)),E===void 0)return y===void 0?ie:ie[y];if(y===null||ie[y]===void 0)if(v(E)){ie=[];for(var ae=0,pe=E.length;ae<pe;ae++)!E[ae].length&&(!ie.length||!ie[ie.length-1].length)||(ie.length&&!ie[ie.length-1].length&&ie.pop(),ie.push(R(E[ae])))}else(E||typeof E=="string")&&(E=R(E),ie[ie.length-1]===""?ie[ie.length-1]=E:ie.push(E));else E?ie[y]=R(E):ie.splice(y,1);return ce&&ie.unshift(""),this.path(ie.join(Q),O)},f.segmentCoded=function(y,E,O){var Q,se,ce;if(typeof y!="number"&&(O=E,E=y,y=void 0),E===void 0){if(Q=this.segment(y,E,O),!v(Q))Q=Q!==void 0?u.decode(Q):void 0;else for(se=0,ce=Q.length;se<ce;se++)Q[se]=u.decode(Q[se]);return Q}if(!v(E))E=typeof E=="string"||E instanceof String?u.encode(E):E;else for(se=0,ce=E.length;se<ce;se++)E[se]=u.encode(E[se]);return this.segment(y,E,O)};var Se=f.query;return f.query=function(y,E){if(y===!0)return u.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof y=="function"){var O=u.parseQuery(this._parts.query,this._parts.escapeQuerySpace),Q=y.call(this,O);return this._parts.query=u.buildQuery(Q||O,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!E),this}else return y!==void 0&&typeof y!="string"?(this._parts.query=u.buildQuery(y,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!E),this):Se.call(this,y,E)},f.setQuery=function(y,E,O){var Q=u.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof y=="string"||y instanceof String)Q[y]=E!==void 0?E:null;else if(typeof y=="object")for(var se in y)d.call(y,se)&&(Q[se]=y[se]);else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");return this._parts.query=u.buildQuery(Q,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof y!="string"&&(O=E),this.build(!O),this},f.addQuery=function(y,E,O){var Q=u.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return u.addQuery(Q,y,E===void 0?null:E),this._parts.query=u.buildQuery(Q,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof y!="string"&&(O=E),this.build(!O),this},f.removeQuery=function(y,E,O){var Q=u.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return u.removeQuery(Q,y,E),this._parts.query=u.buildQuery(Q,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof y!="string"&&(O=E),this.build(!O),this},f.hasQuery=function(y,E,O){var Q=u.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return u.hasQuery(Q,y,E,O)},f.setSearch=f.setQuery,f.addSearch=f.addQuery,f.removeSearch=f.removeQuery,f.hasSearch=f.hasQuery,f.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},f.normalizeProtocol=function(y){return typeof this._parts.protocol=="string"&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!y)),this},f.normalizeHostname=function(y){return this._parts.hostname&&(this.is("IDN")&&t?this._parts.hostname=t.toASCII(this._parts.hostname):this.is("IPv6")&&o&&(this._parts.hostname=o.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!y)),this},f.normalizePort=function(y){return typeof this._parts.protocol=="string"&&this._parts.port===u.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!y)),this},f.normalizePath=function(y){var E=this._parts.path;if(!E)return this;if(this._parts.urn)return this._parts.path=u.recodeUrnPath(this._parts.path),this.build(!y),this;if(this._parts.path==="/")return this;E=u.recodePath(E);var O,Q="",se,ce;for(E.charAt(0)!=="/"&&(O=!0,E="/"+E),(E.slice(-3)==="/.."||E.slice(-2)==="/.")&&(E+="/"),E=E.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),O&&(Q=E.substring(1).match(/^(\.\.\/)+/)||"",Q&&(Q=Q[0]));se=E.search(/\/\.\.(\/|$)/),se!==-1;){if(se===0){E=E.substring(3);continue}ce=E.substring(0,se).lastIndexOf("/"),ce===-1&&(ce=se),E=E.substring(0,ce)+E.substring(se+3)}return O&&this.is("relative")&&(E=Q+E.substring(1)),this._parts.path=E,this.build(!y),this},f.normalizePathname=f.normalizePath,f.normalizeQuery=function(y){return typeof this._parts.query=="string"&&(this._parts.query.length?this.query(u.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!y)),this},f.normalizeFragment=function(y){return this._parts.fragment||(this._parts.fragment=null,this.build(!y)),this},f.normalizeSearch=f.normalizeQuery,f.normalizeHash=f.normalizeFragment,f.iso8859=function(){var y=u.encode,E=u.decode;u.encode=escape,u.decode=decodeURIComponent;try{this.normalize()}finally{u.encode=y,u.decode=E}return this},f.unicode=function(){var y=u.encode,E=u.decode;u.encode=D,u.decode=unescape;try{this.normalize()}finally{u.encode=y,u.decode=E}return this},f.readable=function(){var y=this.clone();y.username("").password("").normalize();var E="";if(y._parts.protocol&&(E+=y._parts.protocol+"://"),y._parts.hostname&&(y.is("punycode")&&t?(E+=t.toUnicode(y._parts.hostname),y._parts.port&&(E+=":"+y._parts.port)):E+=y.host()),y._parts.hostname&&y._parts.path&&y._parts.path.
137charAt(0)!=="/"&&(E+="/"),E+=y.path(!0),y._parts.query){for(var O="",Q=0,se=y._parts.query.split("&"),ce=se.length;Q<ce;Q++){var ie=(se[Q]||"").split("=");O+="&"+u.decodeQuery(ie[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),ie[1]!==void 0&&(O+="="+u.decodeQuery(ie[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}E+="?"+O.substring(1)}return E+=u.decodeQuery(y.hash(),!0),E},f.absoluteTo=function(y){var E=this.clone(),O=["protocol","username","password","hostname","port"],Q,se,ce;if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(y instanceof u||(y=new u(y)),E._parts.protocol||(E._parts.protocol=y._parts.protocol,this._parts.hostname))return E;for(se=0;ce=O[se];se++)E._parts[ce]=y._parts[ce];return E._parts.path?(E._parts.path.substring(-2)===".."&&(E._parts.path+="/"),E.path().charAt(0)!=="/"&&(Q=y.directory(),Q=Q||(y.path().indexOf("/")===0?"/":""),E._parts.path=(Q?Q+"/":"")+E._parts.path,E.normalizePath())):(E._parts.path=y._parts.path,E._parts.query||(E._parts.query=y._parts.query)),E.build(),E},f.relativeTo=function(y){var E=this.clone().normalize(),O,Q,se,ce,ie;if(E._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(y=new u(y).normalize(),O=E._parts,Q=y._parts,ce=E.path(),ie=y.path(),ce.charAt(0)!=="/")throw new Error("URI is already relative");if(ie.charAt(0)!=="/")throw new Error("Cannot calculate a URI relative to another relative URI");if(O.protocol===Q.protocol&&(O.protocol=null),O.username!==Q.username||O.password!==Q.password||O.protocol!==null||O.username!==null||O.password!==null)return E.build();if(O.hostname===Q.hostname&&O.port===Q.port)O.hostname=null,O.port=null;else return E.build();if(ce===ie)return O.path="",E.build();if(se=u.commonPath(ce,ie),!se)return E.build();var ae=Q.path.substring(se.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return O.path=ae+O.path.substring(se.length)||"./",E.build()},f.equals=function(y){var E=this.clone(),O=new u(y),Q={},se={},ce={},ie,ae,pe;if(E.normalize(),O.normalize(),E.toString()===O.toString())return!0;if(ie=E.query(),ae=O.query(),E.query(""),O.query(""),E.toString()!==O.toString()||ie.length!==ae.length)return!1;Q=u.parseQuery(ie,this._parts.escapeQuerySpace),se=u.parseQuery(ae,this._parts.escapeQuerySpace);for(pe in Q)if(d.call(Q,pe)){if(v(Q[pe])){if(!T(Q[pe],se[pe]))return!1}else if(Q[pe]!==se[pe])return!1;ce[pe]=!0}for(pe in se)if(d.call(se,pe)&&!ce[pe])return!1;return!0},f.preventInvalidHostname=function(y){return this._parts.preventInvalidHostname=!!y,this},f.duplicateQueryParameters=function(y){return this._parts.duplicateQueryParameters=!!y,this},f.escapeQuerySpace=function(y){return this._parts.escapeQuerySpace=!!y,this},u})})(zn)),zn.exports}var Zu=Qu();const Xv=to(Zu);//! moment.js 138//! version : 2.30.1 139//! authors : Tim Wood, Iskren Chernev, Moment.js contributors 140//! license : MIT 141//! momentjs.com 142var Rs;function _e(){return Rs.apply(null,arguments)}function Xu(e){Rs=e}function Zt(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Or(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Ge(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ro(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Ge(e,t))return!1;return!0}function jt(e){return e===void 0}function yr(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function _n(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Cs(e,t){var o=[],i,a=e.length;for(i=0;i<a;++i)o.push(t(e[i],i));return o}function br(e,t){for(var o in t)Ge(t,o)&&(e[o]=t[o]);return Ge(t,"toString")&&(e.toString=t.toString),Ge(t,"valueOf")&&(e.valueOf=t.valueOf),e}function or(e,t,o,i){return ta(e,t,o,i,!0).utc()}function el(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meri
vendor: 33,845 bytes, lines 142-145
142diem:null,rfc2822:!1,weekdayMismatch:!1}}function Ue(e){return e._pf==null&&(e._pf=el()),e._pf}var ji;Array.prototype.some?ji=Array.prototype.some:ji=function(e){var t=Object(this),o=t.length>>>0,i;for(i=0;i<o;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};function no(e){var t=null,o=!1,i=e._d&&!isNaN(e._d.getTime());if(i&&(t=Ue(e),o=ji.call(t.parsedDateParts,function(a){return a!=null}),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&o),e._strict&&(i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=i;else return i;return e._isValid}function Xn(e){var t=or(NaN);return e!=null?br(Ue(t),e):Ue(t).userInvalidated=!0,t}var Yo=_e.momentProperties=[],Fi=!1;function io(e,t){var o,i,a,c=Yo.length;if(jt(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),jt(t._i)||(e._i=t._i),jt(t._f)||(e._f=t._f),jt(t._l)||(e._l=t._l),jt(t._strict)||(e._strict=t._strict),jt(t._tzm)||(e._tzm=t._tzm),jt(t._isUTC)||(e._isUTC=t._isUTC),jt(t._offset)||(e._offset=t._offset),jt(t._pf)||(e._pf=Ue(t)),jt(t._locale)||(e._locale=t._locale),c>0)for(o=0;o<c;o++)i=Yo[o],a=t[i],jt(a)||(e[i]=a);return e}function Sn(e){io(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Fi===!1&&(Fi=!0,_e.updateOffset(this),Fi=!1)}function Xt(e){return e instanceof Sn||e!=null&&e._isAMomentObject!=null}function Is(e){_e.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Kt(e,t){var o=!0;return br(function(){if(_e.deprecationHandler!=null&&_e.deprecationHandler(null,e),o){var i=[],a,c,u,m=arguments.length;for(c=0;c<m;c++){if(a="",typeof arguments[c]=="object"){a+=` 143[`+c+"] ";for(u in arguments[0])Ge(arguments[0],u)&&(a+=u+": "+arguments[0][u]+", ");a=a.slice(0,-2)}else a=arguments[c];i.push(a)}Is(e+` 144Arguments: `+Array.prototype.slice.call(i).join("")+` 145`+new Error().stack),o=!1}return t.apply(this,arguments)},t)}var qo={};function Os(e,t){_e.deprecationHandler!=null&&_e.deprecationHandler(e,t),qo[e]||(Is(t),qo[e]=!0)}_e.suppressDeprecationWarnings=!1;_e.deprecationHandler=null;function sr(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function tl(e){var t,o;for(o in e)Ge(e,o)&&(t=e[o],sr(t)?this[o]=t:this["_"+o]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Li(e,t){var o=br({},e),i;for(i in t)Ge(t,i)&&(Or(e[i])&&Or(t[i])?(o[i]={},br(o[i],e[i]),br(o[i],t[i])):t[i]!=null?o[i]=t[i]:delete o[i]);for(i in e)Ge(e,i)&&!Ge(t,i)&&Or(e[i])&&(o[i]=br({},o[i]));return o}function oo(e){e!=null&&this.set(e)}var zi;Object.keys?zi=Object.keys:zi=function(e){var t,o=[];for(t in e)Ge(e,t)&&o.push(t);return o};var rl={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function nl(e,t,o){var i=this._calendar[e]||this._calendar.sameElse;return sr(i)?i.call(t,o):i}function ir(e,t,o){var i=""+Math.abs(e),a=t-i.length,c=e>=0;return(c?o?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+i}var so=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Tn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,xi={},Yr={};function De(e,t,o,i){var a=i;typeof i=="string"&&(a=function(){return this[i]()}),e&&(Yr[e]=a),t&&(Yr[t[0]]=function(){return ir(a.apply(this,arguments),t[1],t[2])}),o&&(Yr[o]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function il(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function ol(e){var t=e.match(so),o,i;for(o=0,i=t.length;o<i;o++)Yr[t[o]]?t[o]=Yr[t[o]]:t[o]=il(t[o]);return function(a){var c="",u;for(u=0;u<i;u++)c+=sr(t[u])?t[u].call(a,e):t[u];return c}}function Nn(e,t){return e.isValid()?(t=js(t,e.localeData()),xi[t]=xi[t]||ol(t),xi[t](e)):e.localeData().invalidDate()}function js(e,t){var o=5;function i(a){return t.longDateFormat(a)||a}for(Tn.lastIndex=0;o>=0&&Tn.test(e);)e=e.replace(Tn,i),Tn.lastIndex=0,o-=1;return e}var sl={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function al(e){var t=this._longDateFormat[e],o=this._longDateFormat[e.toUpperCase()];return t||!o?t:(this._longDateFormat[e]=o.match(so).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[e])}var ul="Invalid date";function ll(){return this._invalidDate}var cl="%d",dl=/\d{1,2}/;function fl(e){return this._ordinal.replace("%d",e)}var hl={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function pl(e,t,o,i){var a=this._relativeTime[o];return sr(a)?a(e,t,o,i):a.replace(/%d/i,e)}function gl(e,t){var o=this._relativeTime[e>0?"future":"past"];return sr(o)?o(t):o.replace(/%s/i,t)}var Ko={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function $t(e){return typeof e=="string"?Ko[e]||Ko[e.toLowerCase()]:void 0}function ao(e){var t={},o,i;for(i in e)Ge(e,i)&&(o=$t(i),o&&(t[o]=e[i]));return t}var vl={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ml(e){var t=[],o;for(o in e)Ge(e,o)&&t.push({unit:o,priority:vl[o]});return t.sort(function(i,a){return i.priority-a.priority}),t}var Ls=/\d/,Ht=/\d\d/,zs=/\d{3}/,uo=/\d{4}/,ei=/[+-]?\d{6}/,at=/\d\d?/,Us=/\d\d\d\d?/,Ms=/\d\d\d\d\d\d?/,ti=/\d{1,3}/,lo=/\d{1,4}/,ri=/[+-]?\d{1,6}/,Jr=/\d+/,ni=/[+-]?\d+/,yl=/Z|[+-]\d\d:?\d\d/gi,ii=/Z|[+-]\d\d(?::?\d\d)?/gi,_l=/[+-]?\d+(\.\d{1,3})?/,wn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Gr=/^[1-9]\d?/,co=/^([1-9]\d|\d)/,Wn;Wn={};function Ee(e,t,o){Wn[e]=sr(t)?t:function(i,a){return i&&o?o:t}}function Sl(e,t){return Ge(Wn,e)?Wn[e](t._strict,t._locale):new RegExp(wl(e))}function wl(e){return vr(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,o,i,a,c){return o||i||a||c}))}function vr(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Wt(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ve(e){var t=+e,o=0;return t!==0&&isFinite(t)&&(o=Wt(t)),o}var Ui={};function et(e,t){var o,i=t,a;for(typeof e=="string"&&(e=[e]),yr(t)&&(i=function(c,u){u[t]=Ve(c)}),a=e.length,o=0;o<a;o++)Ui[e[o]]=i}function bn(e,t){et(e,function(o,i,a,c){a._w=a._w||{},t(o,a._w,a,c)})}function bl(e,t,o){t!=null&&Ge(Ui,e)&&Ui[e](t,o._a,o,e)}function oi(e){return e%4===0&&e%100!==0||e%400===0}var Dt=0,pr=1,nr=2,Ft=3,Qt=4,gr=5,Ir=6,El=7,Fl=8;De("Y",0,0,function(){var e=this.year();return e<=9999?ir(e,4):"+"+e});De(0,["YY",2],0,function(){return this.year()%100});De(0,["YYYY",4],0,"year");De(0,["YYYYY",5],0,"year");De(0,["YYYYYY",6,!0],0,"year");Ee("Y",ni);Ee("YY",at,Ht);Ee("YYYY",lo,uo);Ee("YYYYY",ri,ei);Ee("YYYYYY",ri,ei);et(["YYYYY","YYYYYY"],Dt);et("YYYY",function(e,t){t[Dt]=e.length===2?_e.parseTwoDigitYear(e):Ve(e)});et("YY",function(e,t){t[Dt]=_e.parseTwoDigitYear(e)});et("Y",function(e,t){t[Dt]=parseInt(e,10)});function dn(e){return oi(e)?366:365}_e.parseTwoDigitYear=function(e){return Ve(e)+(Ve(e)>68?1900:2e3)};var Ns=Qr("FullYear",!0);function xl(){return oi(this.year())}function Qr(e,t){return function(o){return o!=null?(Hs(this,e,o),_e.updateOffset(this,t),this):pn(this,e)}}function pn(e,t){if(!e.isValid())return NaN;var o=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?o.getUTCMilliseconds():o.getMilliseconds();case"Seconds":return i?o.getUTCSeconds():o.getSeconds();case"Minutes":return i?o.getUTCMinutes():o.getMinutes();case"Hours":return i?o.getUTCHours():o.getHours();case"Date":return i?o.getUTCDate():o.getDate();case"Day":return i?o.getUTCDay():o.getDay();case"Month":return i?o.getUTCMonth():o.getMonth();case"FullYear":return i?o.getUTCFullYear():o.getFullYear();default:return NaN}}function Hs(e,t,o){var i,a,c,u,m;if(!(!e.isValid()||isNaN(o))){switch(i=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?i.setUTCMilliseconds(o):i.setMilliseconds(o));case"Seconds":return void(a?i.setUTCSeconds(o):i.setSeconds(o));case"Minutes":return void(a?i.setUTCMinutes(o):i.setMinutes(o));case"Hours":return void(a?i.setUTCHours(o):i.setHours(o));case"Date":return void(a?i.setUTCDate(o):i.setDate(o));case"FullYear":break;default:return}c=o,u=e.month(),m=e.date(),m=m===29&&u===1&&!oi(c)?28:m,a?i.setUTCFullYear(c,u,m):i.setFullYear(c,u,m)}}function Al(e){return e=$t(e),sr(this[e])?this[e]():this}function kl(e,t){if(typeof e=="object"){e=ao(e);var o=ml(e),i,a=o.length;for(i=0;i<a;i++)this[o[i].unit](e[o[i].unit])}else if(e=$t(e),sr(this[e]))return this[e](t);return this}function Pl(e,t){return(e%t+t)%t}var yt;Array.prototype.indexOf?yt=Array.prototype.indexOf:yt=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function fo(e,t){if(isNaN(e)||isNaN(t))return NaN;var o=Pl(t,12);return e+=(t-o)/12,o===1?oi(e)?29:28:31-o%7%2}De("M",["MM",2],"Mo",function(){return this.month()+1});De("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});De("MMMM",0,0,function(e){return this.localeData().months(this,e)});Ee("M",at,Gr);Ee("MM",at,Ht);Ee("MMM",function(e,t){return t.monthsShortRegex(e)});Ee("MMMM",function(e,t){return t.monthsRegex(e)});et(["M","MM"],function(e,t){t[pr]=Ve(e)-1});et(["MMM","MMMM"],function(e,t,o,i){var a=o._locale.monthsParse(e,i,o._strict);a!=null?t[pr]=a:Ue(o).invalidMonth=e});var Tl="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Bs="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Vs=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Dl=wn,Rl=wn;function Cl(e,t){return e?Zt(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Vs).test(t)?"format":"standalone"][e.month()]:Zt(this._months)?this._months:this._months.standalone}function Il(e,t){return e?Zt(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Vs.test(t)?"format":"standalone"][e.month()]:Zt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Ol(e,t,o){var i,a,c,u=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)c=or([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(c,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(c,"").toLocaleLowerCase();return o?t==="MMM"?(a=yt.call(this._shortMonthsParse,u),a!==-1?a:null):(a=yt.call(this._longMonthsParse,u),a!==-1?a:null):t==="MMM"?(a=yt.call(this._shortMonthsParse,u),a!==-1?a:(a=yt.call(this._longMonthsParse,u),a!==-1?a:null)):(a=yt.call(this._longMonthsParse,u),a!==-1?a:(a=yt.call(this._shortMonthsParse,u),a!==-1?a:null))}function jl(e,t,o){var i,a,c;if(this._monthsParseExact)return Ol.call(this,e,t,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=or([2e3,i]),o&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!o&&!this._monthsParse[i]&&(c="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(c.replace(".",""),"i")),o&&t==="MMMM"&&this._longMonthsParse[i].test(e))return i;if(o&&t==="MMM"&&this._shortMonthsParse[i].test(e))return i;if(!o&&this._monthsParse[i].test(e))return i}}function Ws(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Ve(t);else if(t=e.localeData().monthsParse(t),!yr(t))return e}var o=t,i=e.date();return i=i<29?i:Math.min(i,fo(e.year(),o)),e._isUTC?e._d.setUTCMonth(o,i):e._d.setMonth(o,i),e}function Ys(e){return e!=null?(Ws(this,e),_e.updateOffset(this,!0),this):pn(this,"Month")}function Ll(){return fo(this.year(),this.month())}function zl(e){return this._monthsParseExact?(Ge(this,"_monthsRegex")||qs.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Ge(this,"_monthsShortRegex")||(this._monthsShortRegex=Dl),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Ul(e){return this._monthsParseExact?(Ge(this,"_monthsRegex")||qs.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Ge(this,"_monthsRegex")||(this._monthsRegex=Rl),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function qs(){function e(f,d){return d.length-f.length}var t=[],o=[],i=[],a,c,u,m;for(a=0;a<12;a++)c=or([2e3,a]),u=vr(this.monthsShort(c,"")),m=vr(this.months(c,"")),t.push(u),o.push(m),i.push(m),i.push(u);t.sort(e),o.sort(e),i.sort(e),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Ml(e,t,o,i,a,c,u){var m;return e<100&&e>=0?(m=new Date(e+400,t,o,i,a,c,u),isFinite(m.getFullYear())&&m.setFullYear(e)):m=new Date(e,t,o,i,a,c,u),m}function gn(e){var t,o;return e<100&&e>=0?(o=Array.prototype.slice.call(arguments),o[0]=e+400,t=new Date(Date.UTC.apply(null,o)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Yn(e,t,o){var i=7+t-o,a=(7+gn(e,0,i).getUTCDay()-t)%7;return-a+i-1}function Ks(e,t,o,i,a){var c=(7+o-i)%7,u=Yn(e,i,a),m=1+7*(t-1)+c+u,f,d;return m<=0?(f=e-1,d=dn(f)+m):m>dn(e)?(f=e+1,d=m-dn(e)):(f=e,d=m),{year:f,dayOfYear:d}}function vn(e,t,o){var i=Yn(e.year(),t,o),a=Math.floor((e.dayOfYear()-i-1)/7)+1,c,u;return a<1?(u=e.year()-1,c=a+mr(u,t,o)):a>mr(e.year(),t,o)?(c=a-mr(e.year(),t,o),u=e.year()+1):(u=e.year(),c=a),{week:c,year:u}}function mr(e,t,o){var i=Yn(e,t,o),a=Yn(e+1,t,o);return(dn(e)-i+a)/7}De("w",["ww",2],"wo","week");De("W",["WW",2],"Wo","isoWeek");Ee("w",at,Gr);Ee("ww",at,Ht);Ee("W",at,Gr);Ee("WW",at,Ht);bn(["w","ww","W","WW"],function(e,t,o,i){t[i.substr(0,1)]=Ve(e)});function Nl(e){return vn(e,this._week.dow,this._week.doy).week}var Hl={dow:0,doy:6};function Bl(){return this._week.dow}function Vl(){return this._week.doy}function Wl(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Yl(e){var t=vn(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}De("d",0,"do","day");De("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});De("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});De("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});De("e",0,0,"weekday");De("E",0,0,"isoWeekday");Ee("d",at);Ee("e",at);Ee("E",at);Ee("dd",function(e,t){return t.weekdaysMinRegex(e)});Ee("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ee("dddd",function(e,t){return t.weekdaysRegex(e)});bn(["dd","ddd","dddd"],function(e,t,o,i){var a=o._locale.weekdaysParse(e,i,o._strict);a!=null?t.d=a:Ue(o).invalidWeekday=e});bn(["d","e","E"],function(e,t,o,i){t[i]=Ve(e)});function ql(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Kl(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ho(e,t){return e.slice(t,7).concat(e.slice(0,t))}var $l="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),$s="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Jl="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Gl=wn,Ql=wn,Zl=wn;function Xl(e,t){var o=Zt(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ho(o,this._week.dow):e?o[e.day()]:o}function ec(e){return e===!0?ho(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function tc(e){return e===!0?ho(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function rc(e,t,o){var i,a,c,u=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)c=or([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(c,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(c,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(c,"").toLocaleLowerCase();return o?t==="dddd"?(a=yt.call(this._weekdaysParse,u),a!==-1?a:null):t==="ddd"?(a=yt.call(this._shortWeekdaysParse,u),a!==-1?a:null):(a=yt.call(this._minWeekdaysParse,u),a!==-1?a:null):t==="dddd"?(a=yt.call(this._weekdaysParse,u),a!==-1||(a=yt.call(this._shortWeekdaysParse,u),a!==-1)?a:(a=yt.call(this._minWeekdaysParse,u),a!==-1?a:null)):t==="ddd"?(a=yt.call(this._shortWeekdaysParse,u),a!==-1||(a=yt.call(this._weekdaysParse,u),a!==-1)?a:(a=yt.call(this._minWeekdaysParse,u),a!==-1?a:null)):(a=yt.call(this._minWeekdaysParse,u),a!==-1||(a=yt.call(this._weekdaysParse,u),a!==-1)?a:(a=yt.call(this._shortWeekdaysParse,u),a!==-1?a:null))}function nc(e,t,o){var i,a,c;if(this._weekdaysParseExact)return rc.call(this,e,t,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=or([2e3,1]).day(i),o&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(c="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(c.replace(".",""),"i")),o&&t==="dddd"&&this._fullWeekdaysParse[i].test(e))return i;if(o&&t==="ddd"&&this._shortWeekdaysParse[i].test(e))return i;if(o&&t==="dd"&&this._minWeekdaysParse[i].test(e))return i;if(!o&&this._weekdaysParse[i].test(e))return i}}function ic(e){if(!this.isValid())return e!=null?this:NaN;var t=pn(this,"Day");return e!=null?(e=ql(e,this.localeData()),this.add(e-t,"d")):t}function oc(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function sc(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Kl(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function ac(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||po.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Ge(this,"_weekdaysRegex")||(this._weekdaysRegex=Gl),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function uc(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||po.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ge(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ql),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function lc(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||po.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ge(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Zl),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function po(){function e(h,p){return p.length-h.length}var t=[],o=[],i=[],a=[],c,u,m,f,d;for(c=0;c<7;c++)u=or([2e3,1]).day(c),m=vr(this.weekdaysMin(u,"")),f=vr(this.weekdaysShort(u,"")),d=vr(this.weekdays(u,"")),t.push(m),o.push(f),i.push(d),a.push(m),a.push(f),a.push(d);t.sort(e),o.sort(e),i.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function go(){return this.hours()%12||12}function cc(){return this.hours()||24}De("H",["HH",2],0,"hour");De("h",["hh",2],0,go);De("k",["kk",2],0,cc);De("hmm",0,0,function(){return""+go.apply(this)+ir(this.minutes(),2)});De("hmmss",0,0,function(){return""+go.apply(this)+ir(this.minutes(),2)+ir(this.seconds(),2)});De("Hmm",0,0,function(){return""+this.hours()+ir(this.minutes(),2)});De("Hmmss",0,0,function(){return""+this.hours()+ir(this.minutes(),2)+ir(this.seconds(),2)});function Js(e,t){De(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Js("a",!0);Js("A",!1);function Gs(e,t){return t._meridiemParse}Ee("a",Gs);Ee("A",Gs);Ee("H",at,co);Ee("h",at,Gr);Ee("k",at,Gr);Ee("HH",at,Ht);Ee("hh",at,Ht);Ee("kk",at,Ht);Ee("hmm",Us);Ee("hmmss",Ms);Ee("Hmm",Us);Ee("Hmmss",Ms);et(["H","HH"],Ft);et(["k","kk"],function(e,t,o){var i=Ve(e);t[Ft]=i===24?0:i});et(["a","A"],function(e,t,o){o._isPm=o._locale.isPM(e),o._meridiem=e});et(["h","hh"],function(e,t,o){t[Ft]=Ve(e),Ue(o).bigHour=!0});et("hmm",function(e,t,o){var i=e.length-2;t[Ft]=Ve(e.substr(0,i)),t[Qt]=Ve(e.substr(i)),Ue(o).bigHour=!0});et("hmmss",function(e,t,o){var i=e.length-4,a=e.length-2;t[Ft]=Ve(e.substr(0,i)),t[Qt]=Ve(e.substr(i,2)),t[gr]=Ve(e.substr(a)),Ue(o).bigHour=!0});et("Hmm",function(e,t,o){var i=e.length-2;t[Ft]=Ve(e.substr(0,i)),t[Qt]=Ve(e.substr(i))});et("Hmmss",function(e,t,o){var i=e.length-4,a=e.length-2;t[Ft]=Ve(e.substr(0,i)),t[Qt]=Ve(e.substr(i,2)),t[gr]=Ve(e.substr(a))});function dc(e){return(e+"").toLowerCase().charAt(0)==="p"}var fc=/[ap]\.?m?\.?/i,hc=Qr("Hours",!0);function pc(e,t,o){return e>11?o?"pm":"PM":o?"am":"AM"}var Qs={calendar:rl,longDateFormat:sl,invalidDate:ul,ordinal:cl,dayOfMonthOrdinalParse:dl,relativeTime:hl,months:Tl,monthsShort:Bs,week:Hl,weekdays:$l,weekdaysMin:Jl,weekdaysShort:$s,meridiemParse:fc},ht={},un={},mn;function gc(e,t){var o,i=Math.min(e.length,t.length);for(o=0;o<i;o+=1)if(e[o]!==t[o])return o;return i}function $o(e){return e&&e.toLowerCase().replace("_","-")}function vc(e){for(var t=0,o,i,a,c;t<e.length;){for(c=$o(e[t]).split("-"),o=c.length,i=$o(e[t+1]),i=i?i.split("-"):null;o>0;){if(a=si(c.slice(0,o).join("-")),a)return a;if(i&&i.length>=o&&gc(c,i)>=o-1)break;o--}t++}return mn}function mc(e){return!!(e&&e.match("^[^/\\\\]*$"))}function si(e){var t=null,o;if(ht[e]===void 0&&typeof module<"u"&&module&&module.exports&&mc(e))try{t=mn._abbr,o=require,o("./locale/"+e),Fr(t)}catch{ht[e]=null}return ht[e]}function Fr(e,t){var o;return e&&(jt(t)?o=_r(e):o=vo(e,t),o?mn=o:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),mn._abbr}function vo(e,t){if(t!==null){var o,i=Qs;if(t.abbr=e,ht[e]!=null)Os("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=ht[e]._config;else if(t.parentLocale!=null)if(ht[t.parentLocale]!=null)i=ht[t.parentLocale]._config;else if(o=si(t.parentLocale),o!=null)i=o._config;else return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;return ht[e]=new oo(Li(i,t)),un[e]&&un[e].forEach(function(a){vo(a.name,a.config)}),Fr(e),ht[e]}else return delete ht[e],null}function yc(e,t){if(t!=null){var o,i,a=Qs;ht[e]!=null&&ht[e].parentLocale!=null?ht[e].set(Li(ht[e]._config,t)):(i=si(e),i!=null&&(a=i._config),t=Li(a,t),i==null&&(t.abbr=e),o=new oo(t),o.parentLocale=ht[e],ht[e]=o),Fr(e)}else ht[e]!=null&&(ht[e].parentLocale!=null?(ht[e]=ht[e].parentLocale,e===Fr()&&Fr(e)):ht[e]!=null&&delete ht[e]);return ht[e]}function _r(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return mn;if(!Zt(e)){if(t=si(e),t)return t;e=[e]}return vc(e)}function _c(){return zi(ht)}function mo(e){var t,o=e._a;return o&&Ue(e).overflow===-2&&(t=o[pr]<0||o[pr]>11?pr:o[nr]<1||o[nr]>fo(o[Dt],o[pr])?nr:o[Ft]<0||o[Ft]>24||o[Ft]===24&&(o[Qt]!==0||o[gr]!==0||o[Ir]!==0)?Ft:o[Qt]<0||o[Qt]>59?Qt:o[gr]<0||o[gr]>59?gr:o[Ir]<0||o[Ir]>999?Ir:-1,Ue(e)._overflowDayOfYear&&(t<Dt||t>nr)&&(t=nr),Ue(e)._overflowWeeks&&t===-1&&(t=El),Ue(e)._overflowWeekday&&t===-1&&(t=Fl),Ue(e).overflow=t),e}var Sc=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wc=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bc=/Z|[+-]\d\d(?::?\d\d)?/,Dn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ai=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ec=/^\/?Date\((-?\d+)/i,Fc=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xc={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Zs(e){var t,o,i=e._i,a=Sc.exec(i)||wc.exec(i),c,u,m,f,d=Dn.length,h=Ai.length;if(a){for(Ue(e).iso=!0,t=0,o=d;t<o;t++)if(Dn[t][1].exec(a[1])){u=Dn[t][0],c=Dn[t][2]!==!1;break}if(u==null){e._isValid=!1;return}if(a[3]){for(t=0,o=h;t<o;t++)if(Ai[t][1].exec(a[3])){m=(a[2]||" ")+Ai[t][0];break}if(m==null){e._isValid=!1;return}}if(!c&&m!=null){e._isValid=!1;return}if(a[4])if(bc.exec(a[4]))f="Z";else{e._isValid=!1;return}e._f=u+(m||"")+(f||""),_o(e)}else e._isValid=!1}function Ac(e,t,o,i,a,c){var u=[kc(e),Bs.indexOf(t),parseInt(o,10),parseInt(i,10),parseInt(a,10)];return c&&u.push(parseInt(c,10)),u}function kc(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Pc(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Tc(e,t,o){if(e){var i=$s.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(i!==a)return Ue(o).weekdayMismatch=!0,o._isValid=!1,!1}return!0}function Dc(e,t,o){if(e)return xc[e];if(t)return 0;var i=parseInt(o,10),a=i%100,c=(i-a)/100;return c*60+a}function Xs(e){var t=Fc.exec(Pc(e._i)),o;if(t){if(o=Ac(t[4],t[3],t[2],t[5],t[6],t[7]),!Tc(t[1],o,e))return;e._a=o,e._tzm=Dc(t[8],t[9],t[10]),e._d=gn.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Ue(e).rfc2822=!0}else e._isValid=!1}function Rc(e){var t=Ec.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Zs(e),e._isValid===!1)delete e._isValid;else return;if(Xs(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:_e.createFromInputFallback(e)}_e.createFromInputFallback=Kt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Vr(e,t,o){return e??t??o}function Cc(e){var t=new Date(_e.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function yo(e){var t,o,i=[],a,c,u;if(!e._d){for(a=Cc(e),e._w&&e._a[nr]==null&&e._a[pr]==null&&Ic(e),e._dayOfYear!=null&&(u=Vr(e._a[Dt],a[Dt]),(e._dayOfYear>dn(u)||e._dayOfYear===0)&&(Ue(e)._overflowDayOfYear=!0),o=gn(u,0,e._dayOfYear),e._a[pr]=o.getUTCMonth(),e._a[nr]=o.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=i[t]=a[t];for(;t<7;t++)e._a[t]=i[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Ft]===24&&e._a[Qt]===0&&e._a[gr]===0&&e._a[Ir]===0&&(e._nextDay=!0,e._a[Ft]=0),e._d=(e._useUTC?gn:Ml).apply(null,i),c=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ft]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==c&&(Ue(e).weekdayMismatch=!0)}}function Ic(e){var t,o,i,a,c,u,m,f,d;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(c=1,u=4,o=Vr(t.GG,e._a[Dt],vn(st(),1,4).year),i=Vr(t.W,1),a=Vr(t.E,1),(a<1||a>7)&&(f=!0)):(c=e._locale._week.dow,u=e._locale._week.doy,d=vn(st(),c,u),o=Vr(t.gg,e._a[Dt],d.year),i=Vr(t.w,d.week),t.d!=null?(a=t.d,(a<0||a>6)&&(f=!0)):t.e!=null?(a=t.e+c,(t.e<0||t.e>6)&&(f=!0)):a=c),i<1||i>mr(o,c,u)?Ue(e)._overflowWeeks=!0:f!=null?Ue(e)._overflowWeekday=!0:(m=Ks(o,i,a,c,u),e._a[Dt]=m.year,e._dayOfYear=m.dayOfYear)}_e.ISO_8601=function(){};_e.RFC_2822=function(){};function _o(e){if(e._f===_e.ISO_8601){Zs(e);return}if(e._f===_e.RFC_2822){Xs(e);return}e._a=[],Ue(e).empty=!0;var t=""+e._i,o,i,a,c,u,m=t.length,f=0,d,h;for(a=js(e._f,e._locale).match(so)||[],h=a.length,o=0;o<h;o++)c=a[o],i=(t.match(Sl(c,e))||[])[0],i&&(u=t.substr(0,t.indexOf(i)),u.length>0&&Ue(e).unusedInput.push(u),t=t.slice(t.indexOf(i)+i.length),f+=i.length),Yr[c]?(i?Ue(e).empty=!1:Ue(e).unusedTokens.push(c),bl(c,i,e)):e._strict&&!i&&Ue(e).unusedTokens.push(c);Ue(e).charsLeftOver=m-f,t.length>0&&Ue(e).unusedInput.push(t),e._a[Ft]<=12&&Ue(e).bigHour===!0&&e._a[Ft]>0&&(Ue(e).bigHour=void 0),Ue(e).parsedDateParts=e._a.slice(0),Ue(e).meridiem=e._meridiem,e._a[Ft]=Oc(e._locale,e._a[Ft],e._meridiem),d=Ue(e).era,d!==null&&(e._a[Dt]=e._locale.erasConvertYear(d,e._a[Dt])),yo(e),mo(e)}function Oc(e,t,o){var i;return o==null?t:e.meridiemHour!=null?e.meridiemHour(t,o):(e.isPM!=null&&(i=e.isPM(o),i&&t<12&&(t+=12),!i&&t===12&&(t=0)),t)}function jc(e){var t,o,i,a,c,u,m=!1,f=e._f.length;if(f===0){Ue(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<f;a++)c=0,u=!1,t=io({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],_o(t),no(t)&&(u=!0),c+=Ue(t).charsLeftOver,c+=Ue(t).unusedTokens.length*10,Ue(t).score=c,m?c<i&&(i=c,o=t):(i==null||c<i||u)&&(i=c,o=t,u&&(m=!0));br(e,o||t)}function Lc(e){if(!e._d){var t=ao(e._i),o=t.day===void 0?t.date:t.day;e._a=Cs([t.year,t.month,o,t.hour,t.minute,t.second,t.millisecond],function(i){return i&&parseInt(i,10)}),yo(e)}}function zc(e){var t=new Sn(mo(ea(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ea(e){var t=e._i,o=e._f;return e._locale=e._locale||_r(e._l),t===null||o===void 0&&t===""?Xn({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Xt(t)?new Sn(mo(t)):(_n(t)?e._d=t:Zt(o)?jc(e):o?_o(e):Uc(e),no(e)||(e._d=null),e))}function Uc(e){var t=e._i;jt(t)?e._d=new Date(_e.now()):_n(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Rc(e):Zt(t)?(e._a=Cs(t.slice(0),function(o){return parseInt(o,10)}),yo(e)):Or(t)?Lc(e):yr(t)?e._d=new Date(t):_e.createFromInputFallback(e)}function ta(e,t,o,i,a){var c={};return(t===!0||t===!1)&&(i=t,t=void 0),(o===!0||o===!1)&&(i=o,o=void 0),(Or(e)&&ro(e)||Zt(e)&&e.length===0)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=a,c._l=o,c._i=e,c._f=t,c._strict=i,zc(c)}function st(e,t,o,i){return ta(e,t,o,i,!1)}var Mc=Kt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=st.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Xn()}),Nc=Kt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=st.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Xn()});function ra(e,t){var o,i;if(t.length===1&&Zt(t[0])&&(t=t[0]),!t.length)return st();for(o=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][e](o))&&(o=t[i]);return o}function Hc(){var e=[].slice.call(arguments,0);return ra("isBefore",e)}function Bc(){var e=[].slice.call(arguments,0);return ra("isAfter",e)}var Vc=function(){return Date.now?Date.now():+new Date},ln=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Wc(e){var t,o=!1,i,a=ln.length;for(t in e)if(Ge(e,t)&&!(yt.call(ln,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(i=0;i<a;++i)if(e[ln[i]]){if(o)return!1;parseFloat(e[ln[i]])!==Ve(e[ln[i]])&&(o=!0)}return!0}function Yc(){return this._isValid}function qc(){return er(NaN)}function ai(e){var t=ao(e),o=t.year||0,i=t.quarter||0,a=t.month||0,c=t.week||t.isoWeek||0,u=t.day||0,m=t.hour||0,f=t.minute||0,d=t.second||0,h=t.millisecond||0;this._isValid=Wc(t),this._milliseconds=+h+d*1e3+f*6e4+m*1e3*60*60,this._days=+u+c*7,this._months=+a+i*3+o*12,this._data={},this._locale=_r(),this._bubble()}function Hn(e){return e instanceof ai}function Mi(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Kc(e,t,o){var i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),c=0,u;for(u=0;
vendor: 7,670 bytes, line 145
145u<i;u++)Ve(e[u])!==Ve(t[u])&&c++;return c+a}function na(e,t){De(e,0,0,function(){var o=this.utcOffset(),i="+";return o<0&&(o=-o,i="-"),i+ir(~~(o/60),2)+t+ir(~~o%60,2)})}na("Z",":");na("ZZ","");Ee("Z",ii);Ee("ZZ",ii);et(["Z","ZZ"],function(e,t,o){o._useUTC=!0,o._tzm=So(ii,e)});var $c=/([\+\-]|\d\d)/gi;function So(e,t){var o=(t||"").match(e),i,a,c;return o===null?null:(i=o[o.length-1]||[],a=(i+"").match($c)||["-",0,0],c=+(a[1]*60)+Ve(a[2]),c===0?0:a[0]==="+"?c:-c)}function wo(e,t){var o,i;return t._isUTC?(o=t.clone(),i=(Xt(e)||_n(e)?e.valueOf():st(e).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+i),_e.updateOffset(o,!1),o):st(e).local()}function Ni(e){return-Math.round(e._d.getTimezoneOffset())}_e.updateOffset=function(){};function Jc(e,t,o){var i=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=So(ii,e),e===null)return this}else Math.abs(e)<16&&!o&&(e=e*60);return!this._isUTC&&t&&(a=Ni(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),i!==e&&(!t||this._changeInProgress?sa(this,er(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_e.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:Ni(this)}function Gc(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Qc(e){return this.utcOffset(0,e)}function Zc(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ni(this),"m")),this}function Xc(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=So(yl,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function ed(e){return this.isValid()?(e=e?st(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function td(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function rd(){if(!jt(this._isDSTShifted))return this._isDSTShifted;var e={},t;return io(e,this),e=ea(e),e._a?(t=e._isUTC?or(e._a):st(e._a),this._isDSTShifted=this.isValid()&&Kc(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function nd(){return this.isValid()?!this._isUTC:!1}function id(){return this.isValid()?this._isUTC:!1}function ia(){return this.isValid()?this._isUTC&&this._offset===0:!1}var od=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,sd=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function er(e,t){var o=e,i=null,a,c,u;return Hn(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:yr(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(i=od.exec(e))?(a=i[1]==="-"?-1:1,o={y:0,d:Ve(i[nr])*a,h:Ve(i[Ft])*a,m:Ve(i[Qt])*a,s:Ve(i[gr])*a,ms:Ve(Mi(i[Ir]*1e3))*a}):(i=sd.exec(e))?(a=i[1]==="-"?-1:1,o={y:Cr(i[2],a),M:Cr(i[3],a),w:Cr(i[4],a),d:Cr(i[5],a),h:Cr(i[6],a),m:Cr(i[7],a),s:Cr(i[8],a)}):o==null?o={}:typeof o=="object"&&("from"in o||"to"in o)&&(u=ad(st(o.from),st(o.to)),o={},o.ms=u.milliseconds,o.M=u.months),c=new ai(o),Hn(e)&&Ge(e,"_locale")&&(c._locale=e._locale),Hn(e)&&Ge(e,"_isValid")&&(c._isValid=e._isValid),c}er.fn=ai.prototype;er.invalid=qc;function Cr(e,t){var o=e&&parseFloat(e.replace(",","."));return(isNaN(o)?0:o)*t}function Jo(e,t){var o={};return o.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(o.months,"M").isAfter(t)&&--o.months,o.milliseconds=+t-+e.clone().add(o.months,"M"),o}function ad(e,t){var o;return e.isValid()&&t.isValid()?(t=wo(t,e),e.isBefore(t)?o=Jo(e,t):(o=Jo(t,e),o.milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0}}function oa(e,t){return function(o,i){var a,c;return i!==null&&!isNaN(+i)&&(Os(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),c=o,o=i,i=c),a=er(o,i),sa(this,a,e),this}}function sa(e,t,o,i){var a=t._milliseconds,c=Mi(t._days),u=Mi(t._months);e.isValid()&&(i=i??!0,u&&Ws(e,pn(e,"Month")+u*o),c&&Hs(e,"Date",pn(e,"Date")+c*o),a&&e._d.setTime(e._d.valueOf()+a*o),i&&_e.updateOffset(e,c||u))}var ud=oa(1,"add"),ld=oa(-1,"subtract");function aa(e){return typeof e=="string"||e instanceof String}function cd(e){return Xt(e)||_n(e)||aa(e)||yr(e)||fd(e)||dd(e)||e===null||e===void 0}function dd(e){var t=Or(e)&&!ro(e),o=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,c,u=i.length;for(a=0;a<u;a+=1)c=i[a],o=o||Ge(e,c);return t&&o}function fd(e){var t=Zt(e),o=!1;return t&&(o=e.filter(function(i){return!yr(i)&&aa(e)}).length===0),t&&o}function hd(e){var t=Or(e)&&!ro(e),o=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,c;for(a=0;a<i.length;a+=1)c=i[a],o=o||Ge(e,c);return t&&o}function pd(e,t){var o=e.diff(t,"days",!0);return o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse"}function gd(e,t){arguments.length===1&&(arguments[0]?cd(arguments[0])?(e=arguments[0],t=void 0):hd(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var o=e||st(),i=wo(o,this).startOf("day"),a=_e.calendarFormat(this,i)||"sameElse",c=t&&(sr(t[a])?t[a].call(this,o):t[a]);return this.format(c||this.localeData().calendar(a,this,st(o)))}function vd(){return new Sn(this)}function md(e,t){var o=Xt(e)?e:st(e);return this.isValid()&&o.isValid()?(t=$t(t)||"millisecond",t==="millisecond"?this.valueOf()>o.valueOf():o.valueOf()<this.clone().startOf(t).valueOf()):!1}function yd(e,t){var o=Xt(e)?e:st(e);return this.isValid()&&o.isValid()?(t=$t(t)||"millisecond",t==="millisecond"?this.valueOf()<o.valueOf():this.clone().endOf(t).valueOf()<o.valueOf()):!1}function _d(e,t,o,i){var a=Xt(e)?e:st(e),c=Xt(t)?t:st(t);return this.isValid()&&a.isValid()&&c.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(a,o):!this.isBefore(a,o))&&(i[1]===")"?this.isBefore(c,o):!this.isAfter(c,o))):!1}function Sd(e,t){var o=Xt(e)?e:st(e),i;return this.isValid()&&o.isValid()?(t=$t(t)||"millisecond",t==="millisecond"?this.valueOf()===o.valueOf():(i=o.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf())):!1}function wd(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function bd(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Ed(e,t,o){var i,a,c;if(!this.isValid())return NaN;if(i=wo(e,this),!i.isValid())return NaN;switch(a=(i.utcOffset()-this.utcOffset())*6e4,t=$t(t),t){case"year":c=Bn(this,i)/12;break;case"month":c=Bn(this,i);break;case"quarter":c=Bn(this,i)/3;break;case"second":c=(this-i)/1e3;break;case"minute":c=(this-i)/6e4;break;case"hour":c=(this-i)/36e5;break;case"day":c=(this-i-a)/864e5;break;case"week":c=(this-i-a)/6048e5;break;default:c=this-i}return o?c:Wt(c)}function Bn(e,t){if(e.date()<t.date())return-Bn(t,e);var o=(t.year()-e.year())*12+(t.month()-e.month()),i=e.clone().add(o,"months"),a,c;return t-i<0?(a=e.clone().add(o-1,"months"),c=(t-i)/(i-a)):(a=e.clone().add(o+1,"months"),c=(t-i)/(a-i)),-(o+c)||0}_e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";_e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Fd(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function xd(e){if(!this.isValid())return null;var t=e!==!0,o=t?this.clone().utc():this;return o.year()<0||o.year()>9999?Nn(o,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):sr(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Nn(o,"Z")):Nn(o,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
vendor: 6,105 bytes, line 145
145function Ad(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",o,i,a,c;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),o="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",c=t+'[")]',this.format(o+i+a+c)}function kd(e){e||(e=this.isUtc()?_e.defaultFormatUtc:_e.defaultFormat);var t=Nn(this,e);return this.localeData().postformat(t)}function Pd(e,t){return this.isValid()&&(Xt(e)&&e.isValid()||st(e).isValid())?er({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Td(e){return this.from(st(),e)}function Dd(e,t){return this.isValid()&&(Xt(e)&&e.isValid()||st(e).isValid())?er({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Rd(e){return this.to(st(),e)}function ua(e){var t;return e===void 0?this._locale._abbr:(t=_r(e),t!=null&&(this._locale=t),this)}var la=Kt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function ca(){return this._locale}var qn=1e3,qr=60*qn,Kn=60*qr,da=(365*400+97)*24*Kn;function Kr(e,t){return(e%t+t)%t}function fa(e,t,o){return e<100&&e>=0?new Date(e+400,t,o)-da:new Date(e,t,o).valueOf()}function ha(e,t,o){return e<100&&e>=0?Date.UTC(e+400,t,o)-da:Date.UTC(e,t,o)}function Cd(e){var t,o;if(e=$t(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?ha:fa,e){case"year":t=o(this.year(),0,1);break;case"quarter":t=o(this.year(),this.month()-this.month()%3,1);break;case"month":t=o(this.year(),this.month(),1);break;case"week":t=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=o(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Kr(t+(this._isUTC?0:this.utcOffset()*qr),Kn);break;case"minute":t=this._d.valueOf(),t-=Kr(t,qr);break;case"second":t=this._d.valueOf(),t-=Kr(t,qn);break}return this._d.setTime(t),_e.updateOffset(this,!0),this}function Id(e){var t,o;if(e=$t(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?ha:fa,e){case"year":t=o(this.year()+1,0,1)-1;break;case"quarter":t=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=o(this.year(),this.month()+1,1)-1;break;case"week":t=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Kn-Kr(t+(this._isUTC?0:this.utcOffset()*qr),Kn)-1;break;case"minute":t=this._d.valueOf(),t+=qr-Kr(t,qr)-1;break;case"second":t=this._d.valueOf(),t+=qn-Kr(t,qn)-1;break}return this._d.setTime(t),_e.updateOffset(this,!0),this}function Od(){return this._d.valueOf()-(this._offset||0)*6e4}function jd(){return Math.floor(this.valueOf()/1e3)}function Ld(){return new Date(this.valueOf())}function zd(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ud(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Md(){return this.isValid()?this.toISOString():null}function Nd(){return no(this)}function Hd(){return br({},Ue(this))}function Bd(){return Ue(this).overflow}function Vd(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}De("N",0,0,"eraAbbr");De("NN",0,0,"eraAbbr");De("NNN",0,0,"eraAbbr");De("NNNN",0,0,"eraName");De("NNNNN",0,0,"eraNarrow");De("y",["y",1],"yo","eraYear");De("y",["yy",2],0,"eraYear");De("y",["yyy",3],0,"eraYear");De("y",["yyyy",4],0,"eraYear");Ee("N",bo);Ee("NN",bo);Ee("NNN",bo);Ee("NNNN",ef);Ee("NNNNN",tf);et(["N","NN","NNN","NNNN","NNNNN"],function(e,t,o,i){var a=o._locale.erasParse(e,i,o._strict);a?Ue(o).era=a:Ue(o).invalidEra=e});Ee("y",Jr);Ee("yy",Jr);Ee("yyy",Jr);Ee("yyyy",Jr);Ee("yo",rf);et(["y","yy","yyy","yyyy"],Dt);et(["yo"],function(e,t,o,i){var a;o._locale._eraYearOrdinalRegex&&(a=e.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?t[Dt]=o._locale.eraYearOrdinalParse(e,a):t[Dt]=parseInt(e,10)});function Wd(e,t){var o,i,a,c=this._eras||_r("en")._eras;for(o=0,i=c.length;o<i;++o)switch(typeof c[o].since==="string"&&(a=_e(c[o].since).startOf("day"),c[o].since=a.valueOf()),typeof c[o].until){case"undefined":c[o].until=1/0;break;case"string":a=_e(c[o].until).startOf("day").valueOf(),c[o].until=a.valueOf();break}return c}function Yd(e,t,o){var i,a,c=this.eras(),u,m,f;for(e=e.toUpperCase(),i=0,a=c.length;i<a;++i)if(u=c[i].name.toUpperCase(),m=c[i].abbr.toUpperCase(),f=c[i].narrow.toUpperCase(),o)switch(t){case"N":case"NN":case"NNN":if(m===e)return c[i];break;case"NNNN":if(u===e)return c[i];break;case"NNNNN":if(f===e)return c[i];break}else if([u,m,f].indexOf(e)>=0)return c[i]}function qd(e,t){var o=e.since<=e.until?1:-1;return t===void 0?_e(e.since).year():_e(e.since).year()+(t-e.offset)*o}function Kd(){var e,t,o,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(o=this.clone().startOf("day").valueOf(),i[e].since<=o&&o<=i[e].until||i[e].until<=o&&o<=i[e].since)return i[e].name;return""}function $d(){var e,t,o,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(o=this.clone().startOf("day").valueOf(),i[e].since<=o&&o<=i[e].until||i[e].until<=o&&o<=i[e].since)return i[e].narrow;return""}function Jd(){var e,t,o,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(o=this.clone().startOf("day").valueOf(),i[e].since<=o&&o<=i[e].until||i[e].until<=o&&o<=i[e].since)return i[e].abbr;return""}function Gd(){var e,t,o,i,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(o=a[e].since<=a[e].until?1:-1,i=this.clone().startOf("day").valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-_e(a[e].since).year())*
145o+a[e].offset;return this.year()}function Qd(e){return Ge(this,"_erasNameRegex")||Eo.call(this),e?this._erasNameRegex:this._erasRegex}function Zd(e){return Ge(this,"_erasAbbrRegex")||Eo.call(this),e?this._erasAbbrRegex:this._erasRegex}function Xd(e){return Ge(this,"_erasNarrowRegex")||Eo.call(this),e?this._erasNarrowRegex:this._erasRegex}function bo(e,t){return t.erasAbbrRegex(e)}function ef(e,t){return t.erasNameRegex(e)}function tf(e,t){return t.erasNarrowRegex(e)}function rf(e,t){return t._eraYearOrdinalRegex||Jr}function Eo(){var e=[],t=[],o=[],i=[],a,c,u,m,f,d=this.eras();for(a=0,c=d.length;a<c;++a)u=vr(d[a].name),m=vr(d[a].abbr),f=vr(d[a].narrow),t.push(u),e.push(m),o.push(f),i.push(u),i.push(m),i.push(f);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}De(0,["gg",2],0,function(){return this.weekYear()%100});De(0,["GG",2],0,function(){return this.isoWeekYear()%100});function ui(e,t){De(0,[e,e.length],0,t)}ui("gggg","weekYear");ui("ggggg","weekYear");ui("GGGG","isoWeekYear");ui("GGGGG","isoWeekYear");Ee("G",ni);Ee("g",ni);Ee("GG",at,Ht);Ee("gg",at,Ht);Ee("GGGG",lo,uo);Ee("gggg",lo,uo);Ee("GGGGG",ri,ei);Ee("ggggg",ri,ei);bn(["gggg","ggggg","GGGG","GGGGG"],function(e,t,o,i){t[i.substr(0,2)]=Ve(e)});bn(["gg","GG"],function(e,t,o,i){t[i]=_e.parseTwoDigitYear(e)});function nf(e){return pa.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function of(e){return pa.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function sf(){return mr(this.year(),1,4)}function af(){return mr(this.isoWeekYear(),1,4)}function uf(){var e=this.localeData()._week;return mr(this.year(),e.dow,e.doy)}function lf(){var e=this.localeData()._week;return mr(this.weekYear(),e.dow,e.doy)}function pa(e,t,o,i,a){var c;return e==null?vn(this,i,a).year:(c=mr(e,i,a),t>c&&(t=c),cf.call(this,e,t,o,i,a))}function cf(e,t,o,i,a){var c=Ks(e,t,o,i,a),u=gn(c.year,0,c.dayOfYear);return this.year(u.getUTCFullYear()),this.month(u.getUTCMonth()),this.date(u.getUTCDate()),this}De("Q",0,"Qo","quarter");Ee("Q",Ls);et("Q",function(e,t){t[pr]=(Ve(e)-1)*3});function df(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}De("D",["DD",2],"Do","date");Ee("D",at,Gr);Ee("DD",at,Ht);Ee("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});et(["D","DD"],nr);et("Do",function(e,t){t[nr]=Ve(e.match(at)[0])});var ga=Qr("Date",!0);De("DDD",["DDDD",3],"DDDo","dayOfYear");Ee("DDD",ti);Ee("DDDD",zs);et(["DDD","DDDD"],function(e,t,o){o._dayOfYear=Ve(e)});function ff(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}De("m",["mm",2],0,"minute");Ee("m",at,co);Ee("mm",at,Ht);et(["m","mm"],Qt);var hf=Qr("Minutes",!1);De("s",["ss",2],0,"second");Ee("s",at,co);Ee("ss",at,Ht);et(["s","ss"],gr);var pf=Qr("Seconds",!1);De("S",0,0,function(){return~~(this.millisecond()/100)});De(0,["SS",2],0,function(){return~~(this.millisecond()/10)});De(0,["SSS",3],0,"millisecond");De(0,["SSSS",4],0,function(){return this.millisecond()*10});De(0,["SSSSS",5],0,function(){return this.millisecond()*100});De(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});De(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});De(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});De(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Ee("S",ti,Ls);Ee("SS",ti,Ht);Ee("SSS",ti,zs);var Er,va;for(Er="SSSS";Er.length<=9;Er+="S")Ee(Er,Jr);function gf(e,t){t[Ir]=Ve(("0."+e)*1e3)}for(Er="S";Er.length<=9;Er+="S")et(Er,gf);va=Qr("Milliseconds",!1);De("z",0,0,"zoneAbbr");De("zz",0,0,"zoneName");function vf(){return this._isUTC?"UTC":""}function mf(){return this._isUTC?"Coordinated Universal Time":""}var ge=Sn.prototype;ge.add=ud;ge.calendar=gd;ge.clone=vd;ge.diff=Ed;ge.endOf=Id;ge.format=kd;ge.from=Pd;ge.fromNow=Td;ge.to=Dd;ge.toNow=Rd;ge.get=Al;
vendor: 8,048 bytes, lines 145-146
145ge.invalidAt=Bd;ge.isAfter=md;ge.isBefore=yd;ge.isBetween=_d;ge.isSame=Sd;ge.isSameOrAfter=wd;ge.isSameOrBefore=bd;ge.isValid=Nd;ge.lang=la;ge.locale=ua;ge.localeData=ca;ge.max=Nc;ge.min=Mc;ge.parsingFlags=Hd;ge.set=kl;ge.startOf=Cd;ge.subtract=ld;ge.toArray=zd;ge.toObject=Ud;ge.toDate=Ld;ge.toISOString=xd;ge.inspect=Ad;typeof Symbol<"u"&&Symbol.for!=null&&(ge[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ge.toJSON=Md;ge.toString=Fd;ge.unix=jd;ge.valueOf=Od;ge.creationData=Vd;ge.eraName=Kd;ge.eraNarrow=$d;ge.eraAbbr=Jd;ge.eraYear=Gd;ge.year=Ns;ge.isLeapYear=xl;ge.weekYear=nf;ge.isoWeekYear=of;ge.quarter=ge.quarters=df;ge.month=Ys;ge.daysInMonth=Ll;ge.week=ge.weeks=Wl;ge.isoWeek=ge.isoWeeks=Yl;ge.weeksInYear=uf;ge.weeksInWeekYear=lf;ge.isoWeeksInYear=sf;ge.isoWeeksInISOWeekYear=af;ge.date=ga;ge.day=ge.days=ic;ge.weekday=oc;ge.isoWeekday=sc;ge.dayOfYear=ff;ge.hour=ge.hours=hc;ge.minute=ge.minutes=hf;ge.second=ge.seconds=pf;ge.millisecond=ge.milliseconds=va;ge.utcOffset=Jc;ge.utc=Qc;ge.local=Zc;ge.parseZone=Xc;ge.hasAlignedHourOffset=ed;ge.isDST=td;ge.isLocal=nd;ge.isUtcOffset=id;ge.isUtc=ia;ge.isUTC=ia;ge.zoneAbbr=vf;ge.zoneName=mf;ge.dates=Kt("dates accessor is deprecated. Use date instead.",ga);ge.months=Kt("months accessor is deprecated. Use month instead",Ys);ge.years=Kt("years accessor is deprecated. Use year instead",Ns);ge.zone=Kt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Gc);ge.isDSTShifted=Kt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",rd);function yf(e){return st(e*1e3)}function _f(){return st.apply(null,arguments).parseZone()}function ma(e){return e}var Qe=oo.prototype;Qe.calendar=nl;Qe.longDateFormat=al;Qe.invalidDate=ll;Qe.ordinal=fl;Qe.preparse=ma;Qe.postformat=ma;Qe.relativeTime=pl;Qe.pastFuture=gl;Qe.set=tl;Qe.eras=Wd;Qe.erasParse=Yd;Qe.erasConvertYear=qd;Qe.erasAbbrRegex=Zd;Qe.erasNameRegex=Qd;Qe.erasNarrowRegex=Xd;Qe.months=Cl;Qe.monthsShort=Il;Qe.monthsParse=jl;Qe.monthsRegex=Ul;Qe.monthsShortRegex=zl;Qe.week=Nl;Qe.firstDayOfYear=Vl;Qe.firstDayOfWeek=Bl;Qe.weekdays=Xl;Qe.weekdaysMin=tc;Qe.weekdaysShort=ec;Qe.weekdaysParse=nc;Qe.weekdaysRegex=ac;Qe.weekdaysShortRegex=uc;Qe.weekdaysMinRegex=lc;Qe.isPM=dc;Qe.meridiem=pc;function $n(e,t,o,i){var a=_r(),c=or().set(i,t);return a[o](c,e)}function ya(e,t,o){if(yr(e)&&(t=e,e=void 0),e=e||"",t!=null)return $n(e,t,o,"month");var i,a=[];for(i=0;i<12;i++)a[i]=$n(e,i,o,"month");return a}function Fo(e,t,o,i){typeof e=="boolean"?(yr(t)&&(o=t,t=void 0),t=t||""):(t=e,o=t,e=!1,yr(t)&&(o=t,t=void 0),t=t||"");var a=_r(),c=e?a._week.dow:0,u,m=[];if(o!=null)return $n(t,(o+c)%7,i,"day");for(u=0;u<7;u++)m[u]=$n(t,(u+c)%7,i,"day");return m}function Sf(e,t){return ya(e,t,"months")}function wf(e,t){return ya(e,t,"monthsShort")}function bf(e,t,o){return Fo(e,t,o,"weekdays")}function Ef(e,t,o){return Fo(e,t,o,"weekdaysShort")}function Ff(e,t,o){return Fo(e,t,o,"weekdaysMin")}Fr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,o=Ve(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+o}});_e.lang=Kt("moment.lang is deprecated. Use moment.locale instead.",Fr);_e.langData=Kt("moment.langData is deprecated. Use moment.localeData instead.",_r);var lr=Math.abs;function xf(){var e=this._data;return this._milliseconds=lr(this._milliseconds),this._days=lr(this._days),this._months=lr(this._months),e.milliseconds=lr(e.milliseconds),e.seconds=lr(e.seconds),e.minutes=lr(e.minutes),e.hours=lr(e.hours),e.months=lr(e.months),e.years=lr(e.years),this}function _a(e,t,o,i){var a=er(t,o);return e._milliseconds+=i*a._milliseconds,e._days+=i*a._days,e._months+=i*a._months,e._bubble()}function Af(e,t){return _a(this,e,t,1)}function kf(e,t){return _a(this,e,t,-1)}function Go(e){return e<0?Math.floor(e):Math.ceil(e)}function Pf(){var e=this._milliseconds,t=this._days,o=this._months,i=this._data,a,c,u,m,f;return e>=0&&t>=0&&o>=0||e<=0&&t<=0&&o<=0||(e+=Go(Hi(o)+t)*864e5,t=0,o=0),i.milliseconds=e%1e3,a=Wt(e/1e3),i.seconds=a%60,c=Wt(a/60),i.minutes=c%60,u=Wt(c/60),i.hours=u%24,t+=Wt(u/24),f=Wt(Sa(t)),o+=f,t-=Go(Hi(f)),m=Wt(o/12),o%=12,i.days=t,i.months=o,i.years=m,this}function Sa(e){return e*4800/146097}function Hi(e){return e*146097/4800}function Tf(e){if(!this.isValid())return NaN;var t,o,i=this._milliseconds;if(e=$t(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+i/864e5,o=this._months+Sa(t),e){case"month":return o;case"quarter":return o/3;case"year":return o/12}else switch(t=this._days+Math.round(Hi(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+e)}}function Sr(e){return function(){return this.as(e)}}var wa=Sr("ms"),Df=Sr("s"),Rf=Sr("m"),Cf=Sr("h"),If=Sr("d"),Of=Sr("w"),jf=Sr("M"),Lf=Sr("Q"),zf=Sr("y"),Uf=wa;function Mf(){return er(this)}function Nf(e){return e=$t(e),this.isValid()?this[e+"s"]():NaN}function Lr(e){return function(){return this.isValid()?this._data[e]:NaN}}var Hf=Lr("milliseconds"),Bf=Lr("seconds"),Vf=Lr("minutes"),Wf=Lr("hours"),Yf=Lr("days"),qf=Lr("months"),Kf=Lr("years");function $f(){return Wt(this.days()/7)}var hr=Math.round,Wr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Jf(e,t,o,i,a){return a.relativeTime(t||1,!!o,e,i)}function Gf(e,t,o,i){var a=er(e).abs(),c=hr(a.as("s")),u=hr(a.as("m")),m=hr(a.as("h")),f=hr(a.as("d")),d=hr(a.as("M")),h=hr(a.as("w")),p=hr(a.as("y")),v=c<=o.ss&&["s",c]||c<o.s&&["ss",c]||u<=1&&["m"]||u<o.m&&["mm",u]||m<=1&&["h"]||m<o.h&&["hh",m]||f<=1&&["d"]||f<o.d&&["dd",f];return o.w!=null&&(v=v||h<=1&&["w"]||h<o.w&&["ww",h]),v=v||d<=1&&["M"]||d<o.M&&["MM",d]||p<=1&&["y"]||["yy",p],v[2]=t,v[3]=+e>0,v[4]=i,Jf.apply(null,v)}function Qf(e){return e===void 0?hr:typeof e=="function"?(hr=e,!0):!1}function Zf(e,t){return Wr[e]===void 0?!1:t===void 0?Wr[e]:(Wr[e]=t,e==="s"&&(Wr.ss=t-1),!0)}function Xf(e,t){if(!this.isValid())return this.localeData().invalidDate();var o=!1,i=Wr,a,c;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(o=e),typeof t=="object"&&(i=Object.assign({},Wr,t),t.s!=null&&t.ss==null&&(i.ss=t.s-1)),a=this.localeData(),c=Gf(this,!o,i,a),o&&(c=a.pastFuture(+this,c)),a.postformat(c)}var ki=Math.abs;function Br(e){return(e>0)-(e<0)||+e}function li(){if(!this.isValid())return this.localeData().invalidDate();var e=ki(this._milliseconds)/1e3,t=ki(this._days),o=ki(this._months),i,a,c,u,m=this.asSeconds(),f,d,h,p;return m?(i=Wt(e/60),a=Wt(i/60),e%=60,i%=60,c=Wt(o/12),o%=12,u=e?e.toFixed(3).replace(/\.?0+$/,""):"",f=m<0?"-":"",d=Br(this._months)!==Br(m)?"-":"",h=Br(this._days)!==Br(m)?"-":"",p=Br(this._milliseconds)!==Br(m)?"-":"",f+"P"+(c?d+c+"Y":"")+(o?d+o+"M":"")+(t?h+t+"D":"")+(a||i||e?"T":"")+(a?p+a+"H":"")+(i?p+i+"M":"")+(e?p+u+"S":"")):"P0D"}var qe=ai.prototype;qe.isValid=Yc;qe.abs=xf;qe.add=Af;qe.subtract=kf;qe.as=Tf;qe.asMilliseconds=wa;qe.asSeconds=Df;qe.asMinutes=Rf;qe.asHours=Cf;qe.asDays=If;qe.asWeeks=Of;qe.asMonths=jf;qe.asQuarters=Lf;qe.asYears=zf;qe.valueOf=Uf;qe._bubble=Pf;qe.clone=Mf;qe.get=Nf;qe.milliseconds=Hf;qe.seconds=Bf;qe.minutes=Vf;qe.hours=Wf;qe.days=Yf;qe.weeks=$f;qe.months=qf;qe.years=Kf;qe.humanize=Xf;qe.toISOString=li;qe.toString=li;qe.toJSON=li;qe.locale=ua;qe.localeData=ca;qe.toIsoString=Kt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",li);qe.lang=la;De("X",0,0,"unix");De("x",0,0,"valueOf");Ee("x",ni);Ee("X",_l);et("X",function(e,t,o){o._d=new Date(parseFloat(e)*1e3)});et("x",function(e,t,o){o._d=new Date(Ve(e))});//! moment.js 146_e.version="2.30.1";Xu(st);_e.fn=ge;_e.min=Hc;_e.max=Bc;_e.now=Vc;_e.utc=or;_e.unix=yf;_e.months=Sf;_e.isDate=_n;_e.locale=Fr;
146_e.invalid=Xn;_e.duration=er;_e.isMoment=Xt;_e.weekdays=bf;_e.parseZone=_f;_e.localeData=_r;_e.isDuration=Hn;_e.monthsShort=wf;_e.weekdaysMin=Ff;_e.defineLocale=vo;_e.updateLocale=yc;_e.locales=_c;_e.weekdaysShort=Ef;_e.normalizeUnits=$t;_e.relativeTimeRounding=Qf;_e.relativeTimeThreshold=Zf;_e.calendarFormat=pd;_e.prototype=ge;_e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var Pi={},cr={},dr={},Qo;function ba(){if(Qo)return dr;Qo=1;var e=dr&&dr.__awaiter||function(i,a,c,u){function m(f){return f instanceof c?f:new c(function(d){d(f)})}return new(c||(c=Promise))(function(f,d){function h(F){try{v(u.next(F))}catch(b){d(b)}}function p(F){try{v(u.throw(F))}catch(b){d(b)}}function v(F){F.done?f(F.value):m(F.value).then(h,p)}v((u=u.apply(i,a||[])).next())})},t=dr&&dr.__generator||function(i,a){var c={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},u,m,f,d;return d={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function h(v){return function(F){return p([v,F])}}function p(v){if(u)throw new TypeError("Generator is already executing.");for(;d&&(d=0,v[0]&&(c=0)),c;)try{if(u=1,m&&(f=v[0]&2?m.return:v[0]?m.throw||((f=m.return)&&f.call(m),0):m.next)&&!(f=f.call(m,v[1])).done)return f;switch(m=0,f&&(v=[v[0]&2,f.value]),v[0]){case 0:case 1:f=v;break;case 4:return c.label++,{value:v[1],done:!1};case 5:c.label++,m=v[1],v=[0];continue;case 7:v=c.ops.pop(),c.trys.pop();continue;default:if(f=c.trys,!(f=f.length>0&&f[f.length-1])&&(v[0]===6||v[0]===2)){c=0;continue}if(v[0]===3&&(!f||v[1]>f[0]&&v[1]<f[3])){c.label=v[1];break}if(v[0]===6&&c.label<f[1]){c.label=f[1],f=v;break}if(f&&c.label<f[2]){c.label=f[2],c.ops.push(v);break}f[2]&&c.ops.pop(),c.trys.pop();continue}v=a.call(i,c)}catch(F){v=[6,F],m=0}finally{u=f=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}};Object.defineProperty(dr,"__esModule",{value:!0}),dr.ReCaptchaInstance=void 0;var o=(function(){function i(a,c,u){this.siteKey=a,this.recaptchaID=c,this.recaptcha=u,this.styleContainer=null}return i.prototype.execute=function(a){return e(this,void 0,void 0,function(){var c;return t(this,function(u){switch(u.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:a})]:[3,2];case 1:return c=u.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:a})];case 3:c=u.sent(),u.label=4;case 4:return[2,c]}})})},i.prototype.getSiteKey=function(){return this.siteKey},i.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},i.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},i})();return dr.ReCaptchaInstance=o,dr}var Zo;function eh(){if(Zo)return cr;Zo=1;var e=cr&&cr.__assign||function(){return e=Object.assign||function(a){for(var c,u=1,m=arguments.length;u<m;u++){c=arguments[u];for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(a[f]=c[f])}return a},e.apply(this,arguments)};Object.defineProperty(cr,"__esModule",{value:!0}),cr.getInstance=cr.load=void 0;var t=ba(),o;(function(a){a[a.NOT_LOADED=0]="NOT_LOADED",a[a.LOADING=1]="LOADING",a[a.LOADED=2]="LOADED"})(o||(o={}));var i=(function(){function a(){}return a.load=function(c,u){if(u===void 0&&(u={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(a.getLoadingState()===o.LOADED)return a.instance.getSiteKey()===c?Promise.resolve(a.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(a.getLoadingState()===o.LOADING)return c!==a.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(f,d){a.successfulLoadingConsumers.push(function(h){return f(h)}),a.errorLoadingRunnable.push(function(h){return d(h)})});a.instanceSiteKey=c,a.setLoadingState(o.LOADING);var m=new a;return new Promise(function(f,d){m.loadScript(c,u.useRecaptchaNet||!1,u.useEnterprise||!1,u.renderParameters?u.renderParameters:{},u.customUrl).then(function(){a.setLoadingState(o.LOADED);var h=m.doExplicitRender(grecaptcha,c,u.explicitRenderParameters?u.explicitRenderParameters:{},u.useEnterprise||!1),p=new t.ReCaptchaInstance(c,h,grecaptcha);
146a.successfulLoadingConsumers.forEach(function(v){return v(p)}),a.successfulLoadingConsumers=[],u.autoHideBadge&&p.hideBadge(),a.instance=p,f(p)}).catch(function(h){a.errorLoadingRunnable.forEach(function(p){return p(h)}),a.errorLoadingRunnable=[],d(h)})})},a.getInstance=function(){return a.instance},a.setLoadingState=function(c){a.loadingState=c},a.getLoadingState=function(){return a.loadingState===null?o.NOT_LOADED:a.loadingState},a.prototype.loadScript=function(c,u,m,f,d){var h=this;u===void 0&&(u=!1),m===void 0&&(m=!1),f===void 0&&(f={}),d===void 0&&(d="");var p=document.createElement("script");p.setAttribute("recaptcha-v3-script",""),p.setAttribute("async",""),p.setAttribute("defer","");var v="https://www.google.com/recaptcha/api.js";u?m?v="https://recaptcha.net/recaptcha/enterprise.js":v="https://recaptcha.net/recaptcha/api.js":m&&(v="https://www.google.com/recaptcha/enterprise.js"),d&&(v=d),f.render&&(f.render=void 0);var F=this.buildQueryString(f);return p.src=v+"?render=explicit"+F,new Promise(function(b,T){p.addEventListener("load",h.waitForScriptToLoad(function(){b(p)},m),!1),p.onerror=function(R){a.setLoadingState(o.NOT_LOADED),T(R)},document.head.appendChild(p)})},a.prototype.buildQueryString=function(c){var u=Object.keys(c);return u.length<1?"":"&"+Object.keys(c).filter(function(m){return!!c[m]}).map(function(m){return m+"="+c[m]}).join("&")},a.prototype.waitForScriptToLoad=function(c,u){var m=this;return function(){window.grecaptcha===void 0?setTimeout(function(){m.waitForScriptToLoad(c,u)},a.SCRIPT_LOAD_DELAY):u?window.grecaptcha.enterprise.ready(function(){c()}):window.grecaptcha.ready(function(){c()})}},a.prototype.doExplicitRender=function(c,u,m,f){var d=e({sitekey:u},m);return m.container?f?c.enterprise.render(m.container,d):c.render(m.container,d):f?c.enterprise.render(d):c.render(d)},a.loadingState=null,a.instance=null,a.instanceSiteKey=null,a.successfulLoadingConsumers=[],a.errorLoadingRunnable=[],a.SCRIPT_LOAD_DELAY=25,a})();return cr.load=i.load,cr.getInstance=i.getInstance,cr}var Xo;function th(){return Xo||(Xo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=eh();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var o=ba();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return o.ReCaptchaInstance}})})(Pi)),Pi}var em=th(),Ea="https://js.stripe.com/v3",rh=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;var nh=function(){for(var t=document.querySelectorAll('script[src^="'.concat(Ea,'"]')),o=0;o<t.length;o++){var i=t[o];if(rh.test(i.src))return i}return null},ih=function(t){var o="",i=document.createElement("script");i.src="".concat(Ea).concat(o);var a=document.head||document.body;if(!a)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return a.appendChild(i),i},oh=function(t,o){!t||!t._registerWrapper||t._registerWrapper({name:"stripe-js",version:"1.46.0",startTime:o})},Rn=null,sh=function(t){return Rn!==null||(Rn=new Promise(function(o,i){if(typeof window>"u"){o(null);return}if(window.Stripe){o(window.Stripe);return}try{var a=nh();a&&t||a||(a=ih(t)),a.addEventListener("load",function(){window.Stripe?o(window.Stripe):i(new Error("Stripe.js not available"))}),a.addEventListener("error",function(){i(new Error("Failed to load Stripe.js"))})}catch(c){i(c);return}})),Rn},ah=function(t,o,i){if(t===null)return null;var a=t.apply(void 0,o);return oh(a,i),a},Fa=Promise.resolve().then(function(){return sh(null)}),xa=!1;Fa.catch(function(e){xa||console.warn(e)});var tm=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];xa=!0;var a=Date.now();return Fa.then(function(c){return ah(c,o,a)})};/** 147 * Vue 3 Carousel 0.17.0 148 * (c) 2025 149 * @license MIT 150 */const Bi=["viewport","carousel"],Jn={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},Vi=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],uh={ariaGallery:"Gallery",ariaNavigateToPage:"Navigate to page {slideNumber}
150",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",iconArrowDown:"Arrow pointing downwards",iconArrowLeft:"Arrow pointing to the left",iconArrowRight:"Arrow pointing to the right",iconArrowUp:"Arrow pointing upwards",itemXofY:"Item {currentSlide} of {slidesCount}"},Wi=["slide","fade"],Yi=["center","start","end","center-even","center-odd"],es=10,Cn=.08,pt={autoplay:0,breakpointMode:Bi[0],breakpoints:void 0,dir:Vi[0],enabled:!0,gap:0,height:"auto",i18n:uh,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,mouseWheel:!1,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:Wi[0],snapAlign:Yi[0],touchDrag:!0,transition:300,transitionEasing:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",wrapAround:!1},jr=Symbol("carousel"),lh=e=>{const t=Oi([]),o=i=>{i!==void 0?t.slice(i).forEach((a,c)=>{var u;(u=a.exposed)===null||u===void 0||u.setIndex(i+c)}):t.forEach((a,c)=>{var u;(u=a.exposed)===null||u===void 0||u.setIndex(c)})};return{cleanup:()=>{t.splice(0,t.length)},getSlides:()=>t,registerSlide:(i,a)=>{if(!i||i.props.isClone)return;const c=a??t.length;t.splice(c,0,i),o(c),e("slide-registered",{slide:i,index:c})},unregisterSlide:i=>{const a=t.indexOf(i);a!==-1&&(e("slide-unregistered",{slide:i,index:a}),t.splice(a,1),o(a))}}};function ch(e){if(e.length===0)return 0;const t=e.filter(i=>typeof i=="number"&&!isNaN(i)&&isFinite(i));return t.length===0?0:t.reduce((i,a)=>
150i+a,0)/t.length}function ts({slides:e,position:t,toShow:o}){const i=[],a=t==="before",c=a?-o:0,u=a?0:o;if(e.length<=0)return i;for(let m=c;m<u;m++){const d={index:a?m:m+e.length,isClone:!0,id:void 0,key:`clone-${t}-${m}`},h=e[(m%e.length+e.length)%e.length].vnode,p=Mu(h,d);p.el=null,i.push(p)}return i}const dh='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';function rs(e){if(!e.el||!(e.el instanceof Element))return;const t=e.el.querySelectorAll(dh);for(const o of t)o instanceof HTMLElement&&!o.hasAttribute("disabled")&&o.getAttribute("aria-hidden")!=="true"&&o.setAttribute("tabindex","-1")}function fh(e,t){return Object.keys(e).filter(o=>!t.includes(o)).reduce((o,i)=>(o[i]=e[i],o),{})}function hh(e){const{isVertical:t,isReversed:o,dragged:i,effectiveSlideSize:a,threshold:c}=e,u=t?i.y:i.x;if(u===0)return 0;const m=u/a,f=Math.abs(m);if(f<c)return 0;const d=f<1?Math.sign(m):Math.round(m);return o?d:-d}function fr({val:e,max:t,min:o}){return t<o?e:Math.min(Math.max(e,isNaN(o)?e:o),isNaN(t)?e:t)}const Vn=new WeakMap;function ph(e){const t=Vn.get(e);if(t)return t;const{transform:o}=window.getComputedStyle(e);if(!o||o==="none"){const a=[1,0,0,1,0,0];return Vn.set(e,a),a}const i=o.split(/[(,)]/).slice(1,-1).map(a=>parseFloat(a));return i.length>0&&!i.some(isNaN)&&Vn.set(e,i),i}function Ti(e){e&&e.forEach(t=>Vn.delete(t))}function gh(e){if(e.size===0)return{widthMultiplier:1,heightMultiplier:1};let t=1,o=1;return e.forEach(i=>{const a=ph(i);if(a.length===6){const c=a[0],u=a[3];c!==0&&(t/=c),u!==0&&(o/=u)}}),{widthMultiplier:t,heightMultiplier:o}}function vh(e,t){switch(e){case"start":return 0;case"center":case"center-odd":return(t-1)/2;case"center-even":return(t-2)/2;case"end":return t-1;default:return 0}}function mh(e,t,o){switch(e){case"start":return 0;case"center":case"center-odd":return(o-t)/2;case"center-even":return o/2-t;case"end":return o-t;default:return 0}}function qi({slideSize:e,viewportSize:t,align:o,itemsToShow:i}){return i!==void 0?vh(o,i):e!==void 0&&t!==void 0?mh(o,e,t):0}function Aa(e="",t={}){return Object.entries(t).reduce((o,[i,a])=>o.replace(`{${i}}`,String(a)),e)}function ka({val:e,max:t,min:o=0}){const i=t-o+1;return((e-o)%i+i)%i+o}function Ki(e,t=0){let o=!1,i=null,a=null;function c(...u){o||(o=!0,t>16?i=setTimeout(()=>{e(...u),o=!1,i=null},t):a=requestAnimationFrame(()=>{e(...u),o=!1,a=null}))}return c.cancel=()=>{i!==null&&(clearTimeout(i),i=null),a!==null&&(cancelAnimationFrame(a),a=null),o=!1},c}function In(e,t="px"){if(!(e==null||e===""))return typeof e=="number"||parseFloat(e).toString()===e?`${e}${t}`:e}const yh=$r({name:"CarouselAria",setup(){const e=yn(jr);return e?()=>Pt("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Aa(e.config.i18n.itemXofY,{currentSlide:e.currentSlide+1,slidesCount:e.slidesCount})):()=>""}});function _h(e){let t=!1;const o={x:0,y:0},i=jn({x:0,y:0}),a=Nt(!1),{isSliding:c}=e,u=Ye(()=>typeof c=="boolean"?c:c.value),m=h=>{var p;const v=h.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(v)||u.value||(t=h.type==="touchstart",t&&h.touches.length>1))return;if(!t&&(h.preventDefault(),h.button!==0))return;o.x=t?h.touches[0].clientX:h.clientX,o.y=t?h.touches[0].clientY:h.clientY;const F=t?"touchmove":"mousemove",b=t?"touchend":"mouseup";document.addEventListener(F,f,{passive:t}),document.addEventListener(b,d,{passive:!0}),(p=e.onDragStart)===null||p===void 0||p.call(e)},f=Ki(h=>{var p;if(t&&h.touches.length>1)return;a.value=!0;const v=t?h.touches[0].clientX:h.clientX,F=t?h.touches[0].clientY:h.clientY;i.x=v-o.x,i.y=F-o.y,(p=e.onDrag)===null||p===void 0||p.call(e,{deltaX:i.x,deltaY:i.y,isTouch:t})}),d=()=>{var h;f.cancel();const p=Math.abs(i.x)+Math.abs(i.y);!t&&p>10&&window.addEventListener("click",b=>{b.preventDefault(),b.stopPropagation()},{once:!0,capture:!0}),(h=e.onDragEnd)===null||h===void 0||h.call(e),i.x=0,i.y=0,a.value=!1;const v=t?"touchmove":"mousemove",F=t?"touchend":"mouseup";document.removeEventListener(v,f),document.removeEventListener(F,d)};return{dragged:i,isDragging:a,handleDragStart:m}}function Sh(){const e=Nt(!1);return{isHover:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function wh(e){const{isVertical:t,isSliding:o,config:i}=e,a=Ye(()=>typeof t=="boolean"?t:t.value),c=Ye(()=>typeof o=="boolean"?o:o.value);return{handleScroll:m=>{var f,d;
150if(m.preventDefault(),!i.mouseWheel||c.value)return;const h=typeof i.mouseWheel=="object"&&(f=i.mouseWheel.threshold)!==null&&f!==void 0?f:es,p=Math.abs(m.deltaY)>h?m.deltaY:0,v=Math.abs(m.deltaX)>h?m.deltaX:0;if(p===0&&v===0)return;const F=a.value?p:v,T=(F!==0?F:a.value?v:p)>0;(d=e.onWheel)===null||d===void 0||d.call(e,{deltaX:v,deltaY:p,isScrollingForward:T})}}}const bh={autoplay:{default:pt.autoplay,type:Number},breakpoints:{default:pt.breakpoints,type:Object},breakpointMode:{default:pt.breakpointMode,validator(e){const t=Bi.includes(e);return t||console.warn(`[vue3-carousel]: Invalid breakpointMode "${e}". Allowed values: ${Bi.join(", ")}`),t}},clamp:{type:Boolean},dir:{type:String,default:pt.dir,validator(e,t){if(!Vi.includes(e))return console.warn(`[vue3-carousel]: Invalid dir "${e}". Allowed values: ${Vi.join(", ")}`),!1;const o=e in Jn?Jn[e]:e;return["ttb","btt"].includes(o)&&(!t.height||t.height==="auto")&&console.warn(`[vue3-carousel]: The dir "${e}" is not supported with height "auto".`),!0}},enabled:{default:pt.enabled,type:Boolean},gap:{default:pt.gap,type:Number},height:{default:pt.height,type:[Number,String]},i18n:{default:pt.i18n,type:Object},ignoreAnimations:{default:!1,type:[Array,Boolean,String]},itemsToScroll:{default:pt.itemsToScroll,type:Number},itemsToShow:{default:pt.itemsToShow,type:[Number,String]},modelValue:{default:void 0,type:Number},mouseDrag:{default:pt.mouseDrag,type:[Boolean,Object]},mouseWheel:{default:pt.mouseWheel,type:[Boolean,Object]},mouseScrollThreshold:{default:pt.mouseScrollThreshold,type:Number},pauseAutoplayOnHover:{default:pt.pauseAutoplayOnHover,type:Boolean},preventExcessiveDragging:{default:!1,type:Boolean,validator(e,t){return e&&t.wrapAround&&console.warn('[vue3-carousel]: "preventExcessiveDragging" cannot be used with wrapAround. The setting will be ignored.'),!0}},slideEffect:{type:String,default:pt.slideEffect,validator(e){const t=Wi.includes(e);return t||console.warn(`[vue3-carousel]: Invalid slideEffect "${e}". Allowed values: ${Wi.join(", ")}`),t}},snapAlign:{default:pt.snapAlign,validator(e){const t=Yi.includes(e);return t||console.warn(`[vue3-carousel]: Invalid snapAlign "${e}". Allowed values: ${Yi.join(", ")}`),t}},touchDrag:{default:pt.touchDrag,type:[Boolean,Object]},transition:{default:pt.transition,type:Number},transitionEasing:{default:pt.transitionEasing,type:String},wrapAround:{default:pt.wrapAround,type:Boolean}},rm=$r({name:"VueCarousel",props:bh,emits:["before-init","drag","init","loop","slide-end","slide-registered","slide-start","slide-unregistered","update:modelValue","wheel"],setup(e,{slots:t,emit:o,expose:i}){var a;const c=lh(o),u=c.getSlides(),m=Ye(()=>u.length),f=Nt(null),d=Nt(null),h=Nt(0),p=Ye(()=>Object.assign(Object.assign(Object.assign({},pt),fh(e,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},pt.i18n),e.i18n)}
150)),v=Oi(Object.assign({},p.value)),F=Nt((a=e.modelValue)!==null&&a!==void 0?a:0),b=Nt(F.value);Pn(F,me=>b.value=me);const T=Nt(0),R=Ye(()=>Math.ceil((m.value-1)/2)),j=Ye(()=>m.value-1),D=Ye(()=>0);let N=null,Z=null,V=null;const J=Ye(()=>h.value+v.gap),W=Ye(()=>{const me=v.dir||"ltr";return me in Jn?Jn[me]:me}),le=Ye(()=>["rtl","btt"].includes(W.value)),de=Ye(()=>["ttb","btt"].includes(W.value)),ve=Ye(()=>v.itemsToShow==="auto"),K=Ye(()=>de.value?"height":"width");function Se(){var me;if(!ze.value)return;const Ae=(p.value.breakpointMode==="carousel"?(me=f.value)===null||me===void 0?void 0:me.getBoundingClientRect().width:typeof window<"u"?window.innerWidth:0)||0,Oe=Object.keys(e.breakpoints||{}).map(ke=>Number(ke)).sort((ke,gt)=>+gt-+ke),Re={};Oe.some(ke=>Ae>=ke?(Object.assign(Re,e.breakpoints[ke]),Re.i18n&&Object.assign(Re.i18n,p.value.i18n,e.breakpoints[ke].i18n),!0):!1),Object.assign(v,p.value,Re),ve.value||(v.itemsToShow=fr({val:Number(v.itemsToShow),max:e.clamp?m.value:1/0,min:1}))}const y=Ki(()=>{Se(),ae(),ie()}),E=Oi(new Set),O=Nt([]);function Q({widthMultiplier:me,heightMultiplier:Ae}){O.value=u.map(Oe=>{var Re;const ke=(Re=Oe.exposed)===null||Re===void 0?void 0:Re.getBoundingRect();return{width:ke.width*me,height:ke.height*Ae}})}const se=Nt({width:0,height:0});function ce({widthMultiplier:me,heightMultiplier:Ae}){var Oe;const Re=((Oe=d.value)===null||Oe===void 0?void 0:Oe.getBoundingClientRect())||{width:0,height:0};se.value={width:Re.width*me,height:Re.height*Ae}}function ie(){if(!d.value)return;const me=gh(E);if(ce(me),Q(me),ve.value)h.value=ch(O.value.map(Ae=>Ae[K.value]));else{const Ae=Number(v.itemsToShow),Oe=(Ae-1)*v.gap;h.value=(se.value[K.value]-Oe)/Ae}}function ae(){!v.wrapAround&&m.value>0&&(F.value=fr({val:F.value,max:j.value,min:D.value}))}const pe=Ye(()=>typeof e.ignoreAnimations=="string"?e.ignoreAnimations.split(","):Array.isArray(e.ignoreAnimations)?e.ignoreAnimations:e.ignoreAnimations?!1:[]);Ei(()=>ae()),Ei(()=>{ie()});let xe;const je=me=>{const Ae=me.target;if(!(!Ae?.contains(f.value)||Array.isArray(pe.value)&&pe.value.includes(me.animationName))&&(E.add(Ae),Ti(new Set([Ae])),!xe)){const Oe=()=>{xe=requestAnimationFrame(()=>{Ti(E),ie(),Oe()})};Oe()}},Le=me=>{const Ae=me.target;Ae&&(E.delete(Ae),Ti(new Set([Ae]))),xe&&E.size===0&&(cancelAnimationFrame(xe),ie())},ze=Nt(!1);typeof document<"u"&&Ei(()=>{ze.value&&pe.value!==!1?(document.addEventListener("animationstart",je,{passive:!0}),document.addEventListener("animationend",Le,{passive:!0})):(document.removeEventListener("animationstart",je),document.removeEventListener("animationend",Le))}),Ts(()=>{ze.value=!0,Se(),S(),f.value&&(V=new ResizeObserver(y),V.observe(f.value)),o("init")}),Iu(()=>{ze.value=!1,c.cleanup(),Z&&clearTimeout(Z),xe&&cancelAnimationFrame(xe),N&&clearInterval(N),V&&(V.disconnect(),V=null),typeof document<"u"&&Xe(),f.value&&(f.value.removeEventListener("transitionend",ie),f.value.removeEventListener("animationiteration",ie))});const{isHover:Be,handleMouseEnter:Je,handleMouseLeave:Ke}=Sh(),We=Ki(me=>{if(!me.ctrlKey)switch(me.key){case"ArrowLeft":case"ArrowUp":de.value===me.key.endsWith("Up")&&(le.value?lt(!0):vt(!0));break;case"ArrowRight":case"ArrowDown":de.value===me.key.endsWith("Down")&&(le.value?vt(!0):lt(!0));break}},200),Xe=()=>{document.removeEventListener("keydown",We)},M=()=>{document.addEventListener("keydown",We)};function S(){!v.autoplay||v.autoplay<=0||(N=setInterval(()=>{v.pauseAutoplayOnHover&&Be.value||lt()},v.autoplay))}function w(){H(),S()}function H(){N&&(clearInterval(N),N=null)}const $=Nt(!1),X=({deltaX:me,deltaY:Ae,isTouch:Oe})=>{var Re,ke,gt,Ze;o("drag",{deltaX:me,deltaY:Ae});const rt=Oe?typeof v.touchDrag=="object"&&(ke=(Re=v.touchDrag)===null||Re===void 0?void 0:Re.threshold)!==null&&ke!==void 0?ke:Cn:typeof v.mouseDrag=="object"&&(Ze=(gt=v.mouseDrag)===null||gt===void 0?void 0:gt.threshold)!==null&&Ze!==void 0?Ze:Cn,ct=hh({isVertical:de.value,isReversed:le.value,dragged:{x:me,y:Ae},effectiveSlideSize:J.value,threshold:rt});ct!==0&&(b.value=v.wrapAround?F.value+ct:fr({val:F.value+ct,max:j.value,min:D.value}))},ue=()=>xt(b.value),{dragged:be,isDragging:Ie,handleDragStart:$e}=_h({isSliding:$,onDrag:X,onDragEnd:ue}),He=({deltaX:me,deltaY:Ae,isScrollingForward:Oe})=>{o("wheel",{deltaX:me,deltaY:Ae}),Oe?le.value?vt():lt():le.value?lt():vt()},{handleScroll:ut}=wh({isVertical:de,isSliding:$,config:v,onWheel:He});function lt(me=!1){xt(F.value+v.itemsToScroll,me)}function vt(me=!1){xt(F.value-v.itemsToScroll,me)}function xt(me,Ae=!1){if(!Ae&&$.value)return;const Oe=(v.wrapAround?ka:fr)({val:me,max:j.value,min:D.value});if(F.value===Oe)return;T.value=F.value,o("slide-start",{slidingToIndex:me,currentSlideIndex:F.value,prevSlideIndex:T.value,slidesCount:m.value}),H(),$.value=!0,F.value=me,Oe!==me&&tt.pause(),o("update:modelValue",Oe),Z=setTimeout(()=>{v.wrapAround&&Oe!==me&&(tt.resume(),F.value=Oe,o("loop",{currentSlideIndex:F.value,slidingToIndex:me})),o("slide-end",{currentSlideIndex:F.value,prevSlideIndex:T.value,slidesCount:m.value}),$.value=!1,w()},v.transition)}function Pe(){Se(),ae(),ie(),w()}Pn(()=>[p.value,e.breakpoints],()=>Se(),{deep:!0}),Pn(()=>e.autoplay,()=>w());const tt=Pn(()=>e.modelValue,me=>{me!==F.value&&xt(Number(me),!0)});o("before-init");const Me=Ye(()=>{if(!v.wrapAround)return{before:0,after:0};if(ve.value)return{before:u.length,after:u.length};const me=Number(v.itemsToShow),Ae=Math.ceil(me+(v.itemsToScroll-1)),Oe=Ae-b.value,Re=Ae-(m.value-(b.value+1));return{before:Math.max(0,Oe),after:Math.max(0,Re)}}),Bt=Ye(()=>Me.value.before?ve.value?O.value.slice(-1*Me.value.before).reduce((me,Ae)=>me+Ae[K.value]+v.gap,0)*-1:Me.value.before*J.value*-1:0),Ur=Ye(()=>{var me;if(ve.value){const Ae=(F.value%u.length+u.length)%u.length;return qi({slideSize:(me=O.value[Ae])===null||me===void 0?void 0:me[K.value],viewportSize:se.value[K.value],align:v.snapAlign})}return qi({align:v.snapAlign,itemsToShow:+v.itemsToShow})}),k=Ye(()=>{let me=0;if(ve.value){if(F.value<0?me=O.value.slice(F.value).reduce((Ae,Oe)=>Ae+Oe[K.value]+v.gap,0)*-1:me=O.value.slice(0,F.value).reduce((Ae,Oe)=>Ae+Oe[K.value]+v.gap,0),me-=Ur.value,!v.wrapAround){const Ae=O.value.reduce((Oe,Re)=>Oe+Re[K.value]+v.gap,0)-se.value[K.value]-v.gap;me=fr({val:me,max:Ae,min:0})}}else{let Ae=F.value-Ur.value;
150v.wrapAround||(Ae=fr({val:Ae,max:m.value-+v.itemsToShow,min:0})),me=Ae*J.value}return me*(le.value?1:-1)}),kr=Ye(()=>{var me,Ae;if(!ve.value){const ke=F.value-Ur.value;return v.wrapAround?{min:Math.floor(ke),max:Math.ceil(ke+Number(v.itemsToShow)-1)}:{min:Math.floor(fr({val:ke,max:m.value-Number(v.itemsToShow),min:0})),max:Math.ceil(fr({val:ke+Number(v.itemsToShow)-1,max:m.value-1,min:0}))}}let Oe=0;{let ke=0,gt=0-Me.value.before;const Ze=Math.abs(k.value+Bt.value);let rt=0;const ct=u.length*2;for(;ke<=Ze&&rt<ct;){const Mt=(gt%u.length+u.length)%u.length,Pr=((me=O.value[Mt])===null||me===void 0?void 0:me[K.value])||0;if(Pr<=0)break;ke+=Pr+v.gap,gt++,rt++}Oe=gt-1}let Re=0;{let ke=Oe,gt=0,Ze=0;const rt=u.length*2;for(ke<0?gt=O.value.slice(0,ke).reduce((ct,Mt)=>ct+Mt[K.value]+v.gap,0)-Math.abs(k.value+Bt.value):gt=O.value.slice(0,ke).reduce((ct,Mt)=>ct+Mt[K.value]+v.gap,0)-Math.abs(k.value);gt<se.value[K.value]&&Ze<rt;){const ct=(ke%u.length+u.length)%u.length,Mt=((Ae=O.value[ct])===null||Ae===void 0?void 0:Ae[K.value])||0;if(Mt<=0)break;gt+=Mt+v.gap,ke++,Ze++}Re=ke-1}return{min:Math.floor(Oe),max:Math.ceil(Re)}}),Ut=Ye(()=>{if(v.slideEffect==="fade")return;const me=de.value?"Y":"X",Ae=de.value?be.y:be.x;let Oe=k.value+Ae;if(!v.wrapAround&&v.preventExcessiveDragging){let Re=0;ve.value?Re=O.value.reduce((Ze,rt)=>Ze+rt[K.value],0):Re=(m.value-Number(v.itemsToShow))*J.value;const ke=le.value?0:-1*Re,gt=le.value?Re:0;Oe=fr({val:Oe,min:ke,max:gt})}return`translate${me}(${Oe}px)`}),ye=Ye(()=>({"--vc-carousel-height":In(v.height),"--vc-cloned-offset":In(Bt.value),"--vc-slide-gap":In(v.gap),"--vc-transition-duration":$.value?In(v.transition,"ms"):void 0,"--vc-transition-easing":v.transitionEasing})),en=jn({activeSlide:b,config:v,currentSlide:F,isSliding:$,isVertical:de,maxSlide:j,minSlide:D,nav:{slideTo:xt,next:lt,prev:vt},normalizedDir:W,slideRegistry:c,slideSize:h,slides:u,slidesCount:m,viewport:d,visibleRange:kr});Ds(jr,en);const wr=jn({config:v,currentSlide:F,maxSlide:j,middleSlide:R,minSlide:D,slideSize:h,slidesCount:m});return i(jn(Object.assign({data:wr,next:lt,prev:vt,restartCarousel:Pe,slideTo:xt,updateBreakpointsConfig:Se,updateSlideSize:ie,updateSlidesData:ae},Ou(en)))),()=>{var me;const Ae=t.default||t.slides,Oe=Ae?.(wr)||[],{before:Re,after:ke}=Me.value,gt=ts({slides:u,position:"before",toShow:Re}),Ze=ts({slides:u,position:"after",toShow:ke}),rt=[...gt,...Oe,...Ze];if(!v.enabled||!rt.length)return Pt("section",{ref:f,class:["carousel","is-disabled"]},rt);const ct=((me=t.addons)===null||me===void 0?void 0:me.call(t,wr))||[],Mt=Pt("ol",{class:"carousel__track",onMousedownCapture:v.mouseDrag?$e:null,onTouchstartPassiveCapture:v.touchDrag?$e:null,onWheel:v.mouseWheel?ut:null,style:{transform:Ut.value}},rt),Pr=Pt("div",{class:"carousel__viewport",ref:d},Mt);return Pt("section",{ref:f,class:["carousel",`is-${W.value}`,`is-effect-${v.slideEffect}`,{"is-dragging":Ie.value,"is-hover":Be.value,"is-sliding":$.value,"is-vertical":de.value}],dir:W.value,style:ye.value,"aria-label":v.i18n.ariaGallery,tabindex:"0",onBlur:Xe,onFocus:M,onMouseenter:Je,onMouseleave:Ke},[Pr,ct,Pt(yh)])}}});var $i;(function(e){e.arrowDown="arrowDown",e.arrowLeft="arrowLeft",e.arrowRight="arrowRight",e.arrowUp="arrowUp"})($i||($i={}));const ns=e=>`icon${e.charAt(0).toUpperCase()+e.slice(1)}`,Eh={arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"};function Fh(e){return e in $i}const is=e=>e&&Fh(e),os=$r({props:{name:{type:String,required:!0,validator:is},title:{type:String,default:e=>
150e.name?pt.i18n[ns(e.name)]:""}},setup(e){const t=yn(jr,null);return()=>{const o=e.name;if(!o||!is(o))return;const i=Eh[o],a=Pt("path",{d:i}),c=t?.config.i18n[ns(o)]||e.title,u=Pt("title",c);return Pt("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":c},[u,a])}}}),nm=$r({name:"CarouselNavigation",inheritAttrs:!1,props:{carousel:{type:Object}},setup(e,{slots:t,attrs:o}){let i=yn(jr,null);const{next:a,prev:c}=t,u=()=>({btt:"arrowDown",ltr:"arrowLeft",rtl:"arrowRight",ttb:"arrowUp"})[i.normalizedDir],m=()=>({btt:"arrowUp",ltr:"arrowRight",rtl:"arrowLeft",ttb:"arrowDown"})[i.normalizedDir],f=Ye(()=>!i.config.wrapAround&&i.currentSlide<=i.minSlide),d=Ye(()=>!i.config.wrapAround&&i.currentSlide>=i.maxSlide);return()=>{if(e.carousel&&(i=e.carousel),!i)return console.warn("[vue3-carousel]: A carousel component must be provided for the navigation component to display"),"";const{i18n:h}=i.config,p=Pt("button",Object.assign(Object.assign({type:"button",disabled:f.value,"aria-label":h.ariaPreviousSlide,title:h.ariaPreviousSlide,onClick:i.nav.prev},o),{class:["carousel__prev",{"carousel__prev--disabled":f.value},o.class]}),c?.()||Pt(os,{name:u()})),v=Pt("button",Object.assign(Object.assign({type:"button",disabled:d.value,"aria-label":h.ariaNextSlide,title:h.ariaNextSlide,onClick:i.nav.next},o),{class:["carousel__next",{"carousel__next--disabled":d.value},o.class]}),a?.()||Pt(os,{name:m()}));return[p,v]}}}),im=$r({name:"CarouselPagination",props:{disableOnClick:{type:Boolean},paginateByItemsToShow:{type:Boolean},carousel:{type:Object}},setup(e){let t=yn(jr,null);const o=Ye(()=>t.config.itemsToShow),i=Ye(()=>qi({align:t.config.snapAlign,itemsToShow:o.value})),a=Ye(()=>e.paginateByItemsToShow&&o.value>1),c=Ye(()=>Math.ceil((t.activeSlide-i.value)/o.value)),u=Ye(()=>Math.ceil(t.slidesCount/o.value)),m=f=>ka(a.value?{val:c.value,max:u.value-1,min:0}:{val:t.activeSlide,max:t.maxSlide,min:t.minSlide})===f;return()=>{var f,d;if(e.carousel&&(t=e.carousel),!t)return console.warn("[vue3-carousel]: A carousel component must be provided for the pagination component to display"),"";const h=[];for(let p=a.value?0:t.minSlide;p<=(a.value?u.value-1:t.maxSlide);p++){const v=Aa(t.config.i18n[a.value?"ariaNavigateToPage":"ariaNavigateToSli
150de"],{slideNumber:p+1}),F=m(p),b=Pt("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":F},"aria-label":v,"aria-pressed":F,"aria-controls":(d=(f=t.slides[p])===null||f===void 0?void 0:f.exposed)===null||d===void 0?void 0:d.id,title:v,disabled:e.disableOnClick,onClick:()=>t.nav.slideTo(a.value?Math.floor(p*+t.config.itemsToShow+i.value):p)}),T=Pt("li",{class:"carousel__pagination-item",key:p},b);h.push(T)}return Pt("ol",{class:"carousel__pagination"},h)}}}),om=$r({name:"CarouselSlide",props:{id:{type:String,default:e=>e.isClone?void 0:ju()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1}},setup(e,{attrs:t,slots:o,expose:i}){const a=yn(jr);if(Ds(jr,void 0),!a)return()=>"";const c=Nt(e.index),u=b=>{c.value=b},m=Lu(),f=()=>{const b=m.vnode.el;return b?b.getBoundingClientRect():{width:0,height:0}};i({id:e.id,setIndex:u,getBoundingRect:f});const d=Ye(()=>c.value===a.activeSlide),h=Ye(()=>c.value===a.activeSlide-1),p=Ye(()=>c.value===a.activeSlide+1),v=Ye(()=>c.value>=a.visibleRange.min&&c.value<=a.visibleRange.max),F=Ye(()=>{if(a.config.itemsToShow==="auto")return;const b=a.config.itemsToShow,T=a.config.gap>0&&b>1?`calc(${100/b}% - ${a.config.gap*(b-1)/b}px)`:`${100/b}%`;return a.isVertical?{height:T}:{width:T}});return a.slideRegistry.registerSlide(m,e.index),zu(()=>{a.slideRegistry.unregisterSlide(m)}),e.isClone&&(Ts(()=>{rs(m.vnode)}),Uu(()=>{rs(m.vnode)})),()=>{var b,T;return a.config.enabled?Pt("li",{style:[t.style,Object.assign({},F.value)],class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":v.value,"carousel__slide--active":d.value,"carousel__slide--prev":h.value,"carousel__slide--next":p.value,"carousel__slide--sliding":a.isSliding},onFocusin:()=>{a.viewport&&(a.viewport.scrollLeft=0),a.nav.slideTo(c.value)},id:e.isClone?void 0:e.id,"aria-hidden":e.isClone||void 0,tabindex:e.isClone||!v.value?-1:void 0},(T=o.default)===null||T===void 0?void 0:T.call(o,{currentIndex:c.value,isActive:d.value,isClone:e.isClone,isPrev:h.value,isNext:p.value,isSliding:a.isSliding,isVisible:v.value})):(b=o.default)===null||b===void 0?void 0:b.call(o)}}}),ci="GraphQL Client",ss=0,as=3,Pa="An error occurred while fetching from the API. Review 'graphQLErrors' for details.",Ta="Response returned unexpected Content-Type:",Da="An unknown error has occurred. The API did not return a data object or any errors in its response.",Ji={json:"application/json",multipart:"multipart/mixed"},us="X-SDK-Variant",ls="X-SDK-Version",xh="shopify-graphql-client",Ah="1.4.1",Ra=1e3,kh=[429,503],Ca=/@(defer)\b/i,cs=`\r 151`,Ph=/boundary="?([^=";]+)"?/i,ds=cs+cs;function xr(e,t=ci){return e.startsWith(`${t}`)?e:`${t}: ${e}`}function Zr(e){return e instanceof Error?e.message:JSON.stringify(e)}function Ia(e){return e instanceof Error&&e.cause?e.cause:void 0}function Oa(e){return e.flatMap(({errors:t})=>t??[])}function ja({client:e,retries:t}){if(t!==void 0&&(typeof t!="number"||t<ss||t>as))throw new Error(`${e}: The provided "retries" value (${t}
151) is invalid - it cannot be less than ${ss} or greater than ${as}`)}function Lt(e,t){return t&&(typeof t!="object"||Array.isArray(t)||typeof t=="object"&&Object.keys(t).length>0)?{[e]:t}:{}}function La(e,t){if(e.length===0)return t;const i={[e.pop()]:t};return e.length===0?i:La(e,i)}function za(e,t){return Object.keys(t||{}).reduce((o,i)=>(typeof t[i]=="object"||Array.isArray(t[i]))&&e[i]?(o[i]=za(e[i],t[i]),o):(o[i]=t[i],o),Array.isArray(e)?[...e]:{...e})}function Ua([e,...t]){return t.reduce(za,{...e})}function Th({clientLogger:e,customFetchApi:t=fetch,client:o=ci,defaultRetryWaitTime:i=Ra,retriableCodes:a=kh}){const c=async(u,m,f)=>{const d=m+1,h=f+1;let p;try{if(p=await t(...u),e({type:"HTTP-Response",content:{requestParams:u,response:p}}),!p.ok&&a.includes(p.status)&&d<=h)throw new Error;const v=p?.headers.get("X-Shopify-API-Deprecated-Reason")||"";return v&&e({type:"HTTP-Response-GraphQL-Deprecation-Notice",content:{requestParams:u,deprecationNotice:v}}),p}catch(v){if(d<=h){const F=p?.headers.get("Retry-After");return await Dh(F?parseInt(F,10):i),e({type:"HTTP-Retry",content:{requestParams:u,lastResponse:p,retryAttempt:m,maxRetries:f}}),c(u,d,f)}throw new Error(xr(`${f>0?`Attempted maximum number of ${f} network retries. Last message - `:""}${Zr(v)}`,o))}};return c}async function Dh(e){return new Promise(t=>setTimeout(t,e))}function Rh({headers:e,url:t,customFetchApi:o=fetch,retries:i=0,logger:a}){ja({client:ci,retries:i});const c={headers:e,url:t,retries:i},u=Ch(a),m=Th({customFetchApi:o,clientLogger:u,defaultRetryWaitTime:Ra}),f=Ih(m,c),d=Oh(f),h=Hh(f);return{config:c,fetch:f,request:d,requestStream:h}}function Ch(e){return t=>{e&&e(t)}}async function Ma(e){const{errors:t,data:o,extensions:i}=await e.json();return{...Lt("data",o),...Lt("extensions",i),headers:e.headers,...t||!o?{errors:{networkStatusCode:e.status,message:xr(t?Pa:Da),...Lt("graphQLErrors",t),response:e}}:{}}}function Ih(e,{url:t,headers:o,retries:i}){return async(a,c={})=>{const{variables:u,headers:m,url:f,retries:d,keepalive:h,signal:p}=c,v=JSON.stringify({query:a,variables:u});ja({client:ci,retries:d});const F=Object.entries({...o,...m}).reduce((T,[R,j])=>(T[R]=Array.isArray(j)?j.join(", "):j.toString(),T),{});return!F[us]&&!F[ls]&&(F[us]=xh,F[ls]=Ah),e([f??t,{method:"POST",headers:F,body:v,signal:p,keepalive:h}],1,d??i)}}function Oh(e){return async(...t)=>{if(Ca.test(t[0]))throw new Error(xr("This operation will result in a streamable response - use requestStream() instead."));let o=null;try{o=await e(...t);const{status:i,statusText:a}=o,c=o.headers.get("content-type")||"";return o.ok?c.includes(Ji.json)?await Ma(o):{errors:{networkStatusCode:i,message:xr(`${Ta} ${c}`),response:o}}:{errors:{networkStatusCode:i,message:xr(a),response:o}}}catch(i){return{errors:{message:Zr(i),...o==null?{}:{networkStatusCode:o.status,response:o}}}}}}async function*jh(e){const t=new TextDecoder;if(e.body[Symbol.asyncIterator])for await(const o of e.body)yield t.decode(o);else{const o=e.body.getReader();let i;try{for(;!(i=await o.read()).done;)yield t.decode(i.value)}finally{o.cancel()}}}function Lh(e,t){return{async*[Symbol.asyncIterator](){try{let o="";for await(const i of e)if(o+=i,o.indexOf(t)>-1){const a=o.lastIndexOf(t),u=o.slice(0,a).split(t).filter(m=>m.trim().length>0).map(m=>m.slice(m.indexOf(ds)+ds.length).trim());u.length>0&&(yield u),o=o.slice(a+t.length),o.trim()==="--"&&(o="")}}catch(o){throw new Error(`Error occured while processing stream payload - ${Zr(o)}`)}}}}function zh(e){return{async*[Symbol.asyncIterator](){yield{...await Ma(e),hasNext:!1}}}}function Uh(e){return e.map(t=>{try{return JSON.parse(t)}catch(o){throw new Error(`Error in parsing multipart response - ${Zr(o)}`)}}).map(t=>{const{data:o,incremental:i,hasNext:a,extensions:c,errors:u}=t;if(!i)return{data:o||{},...Lt("errors",u),...Lt("extensions",c),hasNext:a};const m=i.map(({data:f,path:d,errors:h})=>({data:f&&d?La(d,f):{},...Lt("errors",h)}));return{data:m.length===1?m[0].data:Ua([...m.map(({data:f})=>f)]),...Lt("errors",Oa(m)),hasNext:a}})}function Mh(e,t){if(e.length>0)throw new Error(Pa,{cause:{graphQLErrors:e}});if(Object.keys(t).length===0)throw new Error(Da)}function Nh(e,t){const o=(t??"").match(Ph),i=`--${o?o[1]:"-"}`;if(!e.body?.getReader&&!e.body?.[Symbol.asyncIterator])throw new Error("API multipart response did not return an iterable body",{cause:e});const a=jh(e);let c={},u;return{async*[Symbol.asyncIterator](){try{let m=!0;for await(const f of Lh(a,i)){const d=Uh(f);u=d.find(p=>p.extensions)?.extensions??u;const h=Oa(d);c=Ua([c,...d.map(({data:p})=>p)]),m=d.slice(-1)[0].hasNext,Mh(h,c),yield{...Lt("data",c),...Lt("extensions",u),hasNext:m}}
151if(m)throw new Error("Response stream terminated unexpectedly")}catch(m){const f=Ia(m);yield{...Lt("data",c),...Lt("extensions",u),errors:{message:xr(Zr(m)),networkStatusCode:e.status,...Lt("graphQLErrors",f?.graphQLErrors),response:e},hasNext:!1}}}}}function Hh(e){return async(...t)=>{if(!Ca.test(t[0]))throw new Error(xr("This operation does not result in a streamable response - use request() instead."));try{const o=await e(...t),{statusText:i}=o;if(!o.ok)throw new Error(i,{cause:o});const a=o.headers.get("content-type")||"";switch(!0){case a.includes(Ji.json):return zh(o);case a.includes(Ji.multipart):return Nh(o,a);default:throw new Error(`${Ta} ${a}`,{cause:o})}}catch(o){return{async*[Symbol.asyncIterator](){const i=Ia(o);yield{errors:{message:xr(Zr(o)),...Lt("networkStatusCode",i?.status),...Lt("response",i)},hasNext:!1}}}}}}function Bh({client:e,storeDomain:t}){try{const o=t.trim(),i=o.match(/^https?:/)?o:`https://${o}`,a=new URL(i);return a.protocol="https",a.origin}catch(o){throw new Error(`${e}: a valid store domain ("${t}") must be provided`,{cause:o})}}function Na({client:e,currentSupportedApiVersions:t,apiVersion:o,logger:i}){const a=`${e}: the provided apiVersion ("${o}")`,c=`Currently supported API versions: ${t.join(", ")}`;if(!o||typeof o!="string")throw new Error(`${a} is invalid. ${c}`);const u=o.trim();t.includes(u)||(i?i({type:"Unsupported_Api_Version",content:{apiVersion:o,supportedApiVersions:t}}):console.warn(`${a} is likely deprecated or not supported. ${c}`))}function Gn(e){const t=e*3-2;return t===10?t:`0${t}`}function Di(e,t,o){const i=t-o;return i<=0?`${e-1}-${Gn(i+4)}`:`${e}-${Gn(i)}`}function Vh(){const e=new Date,t=e.getUTCMonth(),o=e.getUTCFullYear(),i=Math.floor(t/3+1);return{year:o,quarter:i,version:`${o}-${Gn(i)}`}}function Wh(){const{year:e,quarter:t,version:o}=Vh(),i=t===4?`${e+1}-01`:`${e}-${Gn(t+1)}`;return[Di(e,t,3),Di(e,t,2),Di(e,t,1),o,i,"unstable"]}function Yh(e){return t=>({...t??{},...e.headers})}function qh({getHeaders:e,getApiUrl:t}){return(o,i)=>{const a=[o];if(i&&Object.keys(i).length>0){const{variables:c,apiVersion:u,headers:m,retries:f,signal:d}=i;a.push({...c?{variables:c}:{},...m?{headers:e(m)}:{},...u?{url:t(u)}:{},...f?{retries:f}:{},...d?{signal:d}:{}})}return a}}const fs="application/json",Kh="storefront-api-client",$h="1.0.9",Jh="X-Shopify-Storefront-Access-Token",Gh="X-SDK-Variant",Qh="X-SDK-Version",Zh="X-SDK-Variant-Source",Qn="Storefront API Client";function Xh(e){if(e&&typeof window<"u")throw new Error(`${Qn}: private access tokens and headers should only be used in a server-to-server implementation. Use the public API access token in nonserver environments.`)}function ep(e,t){if(t)throw new Error(`${Qn}: only provide either a public or private access token`)}function sm({storeDomain:e,apiVersion:t,publicAccessToken:o,privateAccessToken:i,clientName:a,retries:c=0,customFetchApi:u,logger:m}){const f=Wh(),d=Bh({client:Qn,storeDomain:e}),h={client:Qn,currentSupportedApiVersions:f,logger:m};Na({...h,apiVersion:t}),ep(o,i),Xh(i);const p=tp(d,t,h),v={storeDomain:d,apiVersion:t,publicAccessToken:o,headers:{"Content-Type":fs,Accept:fs,[Gh]:Kh,[Qh]:$h,...a?{[Zh]:a}:{},[Jh]:o},apiUrl:p(),clientName:a},F=Rh({headers:v.headers,url:v.apiUrl,retries:c,customFetchApi:u,logger:m}),b=Yh(v),T=rp(v,p),R=qh({getHeaders:b,getApiUrl:T});return Object.freeze({config:v,getHeaders:b,getApiUrl:T,fetch:(...D)=>F.fetch(...R(...D)),request:(...D)=>F.request(...R(...D)),requestStream:(...D)=>F.requestStream(...R(...D))})}function tp(e,t,o){return i=>{i&&Na({...o,apiVersion:i});const a=(i??t).trim();return`${e}/api/${a}/graphql.json`}}function rp(e,t){return o=>o?t(o):e.apiUrl}var Ri={exports:{}};const np={},ip=Object.freeze(Object.defineProperty({__proto__:null,default:np},Symbol.toStringTag,{value:"Module"})),Ci=Nu(ip);var hs;function op(){return hs||(hs=1,(function(e){(function(){var t="0123456789abcdefghjkmnpqrtuvwxyz",o={o:0,i:1,l:1,s:5},i=function(){for(var v={},F=0;F<t.length;F++)v[t[F]]=F;for(var b in o)o.hasOwnProperty(b)&&(v[b]=v[""+o[b]]);return i=function(){return v},v};function a(){var v=0,F=0;this.output="",this.readByte=function(b){return typeof b=="string"&&(b=b.charCodeAt(0)),v<0?F|=b>>-v:F=b<<v&248,v>3?(v-=8,1):(v<4&&(this.output+=t[F>>3],v+=5),0)},this.finish=function(b){var T=this.output+(v<0?t[F>>3]:"")+(b?"$":"");return this.output="",T}}a.prototype.update=function(v,F){for(var b=0;b<v.length;)b+=this.readByte(v[b]);var T=this.output;return this.output="",F&&(T+=this.finish()),T};function c(){var v=0,F=0;this.output="",this.readChar=function(b){typeof b!="string"&&typeof b=="number"&&(b=String.fromCharCode(b)),b=b.toLowerCase();var T=i()[b];typeof T>"u"||(T<<=3,F|=T>>>v,v+=5,v>=8&&(this.output+=String.fromCharCode(F),v-=8,v>0?F=T<<5-v&255:F=0))},this.finish=function(b){var T=this.output+(v<0?t[bits>>3]:"")+(b?"$":"");return this.output="",T}}c.prototype.update=function(v,F){for(var b=0;b<v.length;b++)this.readChar(v[b]);var T=this.output;return this.output="",F&&(T+=this.finish()),T};function u(v){var F=new a,b=F.update(v,!0);return b}function m(v){var F=new c,b=F.update(v,!0);return b}var f,d;function h(v,F){typeof f>"u"&&(f=Ci);var b=f.createHash("sha1");if(b.digest=(function(T){return function(){return u(T.call(this,"binary"))}})(b.digest),F){if(typeof v=="string"||Buffer.isBuffer(v))try{return F(null,h(v))}catch(T){return F(T,null)}if(!typeof v.on=="function")return F({message:"Not a stream!"});v.on("data",function(T){b.update(T)}),v.on("end",function(){F(null,b.digest())});return}return v?b.update(v).digest():b}h.file=function(v,F){return v=="-"?(process.stdin.resume(),h(process.stdin,F)):(typeof d>"u"&&(d=Ci),d.stat(v,function(b,T){return b?F(b,null):T.isDirectory()?F({dir:!0,message:"Is a directory"}):h(Ci.createReadStream(v),F)}))};var p={Decoder:c,Encoder:a,encode:u,decode:m,sha1:h};typeof window<"u"&&(window.base32=p),e.exports&&(e.exports=p)})()})(Ri)),Ri.exports}var sp=op();const am=to(sp);function di(){return Object.getOwnPropertyDescriptor(globalThis,"window")?.get?.toString().includes("[native code]")??!1}function Ha(e){return Array.from(new Set(e))}function Xr(e,t){const o=ap();return o[e]??(o[e]=t)}function ap(){var e;return globalThis._vike??(globalThis._vike={}),(e=globalThis._vike).globals??(e.globals={}),globalThis._vike.globals}const it=new Proxy({},{get:(e,t)=>o=>t==="code"?`\`${o}\``:t==="string"?`'${o}'`:o}),Ba="0.4.253";let fn;fn??(fn=Va());function Va(){return Xr("utils/assertSingleInstance.ts",{instances:[],alreadyLogged:new Set})}function fi(){return fn??(fn=Va()),fn}const up="Client runtime of both Server Routing and Client Routing loaded https://vike.dev/client-runtimes-conflict",Wa="Client runtime loaded twice https://vike.dev/client-runtime-duplicated";function Ya(){const e=fi();{const t=Ha(e.instances);Zn(t.length<=1,`vike@${it.bold(t[0])} and vike@${it.bold(t[1])} loaded which is highly discouraged, see ${it.underline("https://vike.dev/warning/version-mismatch")}`,{onlyOnce:!0,showStackTrace:!1})}e.checkSingleInstance&&e.instances.length>1&&Zn(!1,Wa,{onlyOnce:!0,showStackTrace:!0})}function lp(e){const t=fi();Zn(t.isClientRouting!==!0,up,{onlyOnce:!0,showStackTrace:!0}),Zn(t.isClientRouting===void 0,Wa,{onlyOnce:!0,showStackTrace:!0}),t.isClientRouting=!1,t.checkSingleInstance=!0,Ya()}function cp(){fi().instances.push(Ba),Ya()}function Zn(e,t,{onlyOnce:o,showStackTrace:i}){const a=fi();if(e)return;const c=`[Vike][Warning] ${t}`;{const{alreadyLogged:u}=a,m=c;if(u.has(m))return;u.add(m)}console.warn(i?new Error(c):c)}function dp(){return!(typeof process>"u"||!process.cwd||!process.versions||typeof process.versions.node>"u"||!process.release||process.release.name!=="node")}function fp(e,t){const o=new Error(e);return dp()&&(o.stack=hp(o.stack,t)),o}function hp(e,t){if(!e)return e;const o=gp(e);let i=0;return o.filter(c=>c.includes(" (internal/")||c.includes(" (node:internal")?!1:i<t&&pp(c)?(i++,!1):!0).join(` 152`)}function pp(e){return e.startsWith(" at ")}function gp(e){return e.split(/\r?\n/)}function vp(e){return it.bold(it.yellow(e))}function mp(e){return it.bold(it.red(e))}function yp(e){return it.yellow(e)}
152const Yt=Xr("utils/assert.ts",{alreadyLogged:new Set});cp();const _p="[vike]",Sp=`[vike@${Ba}]`,wp="Bug";function fe(e,t){if(e)return;const o=(()=>{if(!t)return null;const u=typeof t=="string"?t:JSON.stringify(t);return it.dim(`Debug for maintainers (you can ignore this): ${u}`)})();let a=[`You stumbled upon a Vike bug. Go to ${it.underline("https://github.com/vikejs/vike/issues/new?template=bug.yml")} and copy-paste this error. A maintainer will fix the bug (usually within 24 hours).`,o].filter(Boolean).join(" ");a=hi(a,wp,!0);const c=pi(a);throw Yt.onBeforeLog?.(),Yt.onBeforeErr?.(c),c}function _t(e,t,{showStackTrace:o,exitOnError:i}={}){if(e)return;o=o||Yt.alwaysShowStackTrace,t=hi(t,"Wrong Usage");const a=pi(t);if(Yt.onBeforeLog?.(),Yt.onBeforeErr?.(a),i)console.error(o?a:t),process.exit(1);else throw a}function bp(e){return e=hi(e,"Error"),pi(e)}function zr(e,t,{onlyOnce:o,showStackTrace:i}){if(e)return;if(i=i||Yt.alwaysShowStackTrace,o){const{alreadyLogged:c}=Yt,u=o===!0?t:o;if(c.has(u))return;c.add(u)}const a=hi(t,"Warning");if(Yt.onBeforeLog?.(),i){const c=pi(a);Yt.onBeforeErr?.(c),console.warn(c)}else console.warn(a)}function hi(e,t,o=!1){const i=xp(o),a=Fp(t),c=Ep(e);return Yt.addAssertTagsDev?`${Yt.addAssertTagsDev(i,a)}${c}${e}`:`${`${i}${a}`}${c}${e}`}function Ep(e){return e.startsWith("[")?"":" "}function Fp(e){if(!e)return"";let t=`[${e}]`;return e==="Warning"?t=yp(t):t=mp(t),t}function xp(e=!1){return vp(e?Sp:_p)}function pi(e){const t=fp(e,3);return Yt.addAssertTagsDev&&(t.stack=t.stack?.replace(/^Error:\s*/,"")),t}function Ap(){fe(di())}kp();function kp(){Ap()}const ps=Xr("utils/assertRouterType.ts",{});function Pp(){Tp(ps.isClientRouting!==!0),ps.isClientRouting=!1}function Tp(e){_t(di(),`${it.cyan("import { something } from 'vike/client/router'")} is forbidden on the server-side`,{showStackTrace:!0}),zr(e,"You shouldn't `import { something } from 'vike/client/router'` when using Server Routing. The 'vike/client/router' utilities work only with Client Routing. In particular, don't `import { navigate }` nor `import { prefetch }` as they unnecessarily bloat your client-side bundle sizes.",{showStackTrace:!0,onlyOnce:!0})}function zt(e,t,o){t&&(o||fe(!t._isOriginalObject),Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)))}function Dp(e,t){fe(e===t)}function qa(e,t,o){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(e,t,{...i,enumerable:o})}function Rp(e,t){return zt(e,t),e}function Cp(){const e={_isOriginalObject:!0,isPageContext:!0};return qa(e,"_isOriginalObject",!1),e}function Ip(e,t,o){Object.keys(e).filter(i=>!0).forEach(i=>delete e[i]),Object.defineProperties(e,Object.getOwnPropertyDescriptors(t))}function Gi(e){const t=e/1e3;if(t<120){const o=gs(t);return`${o} second${vs(o)}`}{const o=t/60,i=gs(o);return`${i} minute${vs(i)}`}}function gs(e){let t=e.toFixed(1);return t.endsWith(".0")&&(t=t.slice(0,-2)),t}function vs(e){return e==="1"?"":"s"}const Op=25*1e3;function Ka({timeout:e=Op}={}){let t,o,i=!1;const a=new Promise((f,d)=>{t=(...h)=>(i=!0,c(),f(...h)),o=(...h)=>(i=!0,c(),d(...h))}),c=()=>u.forEach(f=>clearTimeout(f)),u=[];let m;return e?m=new Proxy(a,{get(f,d){if(d==="then"&&!i){const p=new Error(`Promise hasn't resolved after ${Gi(e)}`);u.push(setTimeout(()=>{fe(p.stack),zr(!1,jp(p.stack),{onlyOnce:!1})},e))}const h=Reflect.get(f,d);return typeof h=="function"?h.bind(f):h}}):m=a,{promise:m,resolve:t,reject:o}}function jp(e){const t="Error: ";return e.startsWith(t)&&(e=e.slice(t.length)),e}function gi(e){return e instanceof Function||typeof e=="function"}function qt(e){return typeof e=="object"&&e!==null}function Ar(e){return Array.isArray(e)}function Lp(e){return Ar(e)&&e.every(t=>typeof t=="string")}function zp(e){return qt(e)&&Object.values(e).every(t=>typeof t=="string")}function At(e,t,o){if(!qt(e))return!1;if(!(t in e))return o==="undefined";if(o===void 0)return!0;const i=e[t];return o==="undefined"?i===void 0:o==="array"?Ar(i):o==="object"?qt(i):o==="string[]"?Lp(i):o==="string{}"?zp(i):o==="function"?gi(i):Ar(o)?typeof i=="string"&&o.includes(i):o==="null"?i===null:o==="true"?i===!0:o==="false"?i===!1:typeof i===o}const Up=["clientRouting"];
152function Mp(e){Up.forEach(t=>{if(fe(e.fileExports),!(t in e.fileExports))return;const o=`The value of \`${t}\` is only allowed to be \`true\`.`;_t(e.fileExports[t]!==!1,`${e.filePath} has \`export { ${t} }\` with the value \`false\` which is prohibited: remove \`export { ${t} }\` instead. (${o})`),_t(e.fileExports[t]===!0,`${e.filePath} has \`export { ${t} }\` with a forbidden value. ${o}`)})}const $a=["render","clientRouting","prerender","doNotPrerender"];function Np(e,t){_t(!$a.includes(e),`${t} has \`export default { ${e} }\` which is prohibited, use \`export { ${e} }\` instead.`)}function Ja(e,t,o){return typeof e=="string"?ms(e.split(""),t,o).join(""):ms(e,t,o)}function ms(e,t,o){const i=[];let a=t;fe(a>=0&&a<=e.length);let c=e.length+o;for(fe(c>=0&&c<=e.length);!(a===c||(a===e.length&&(a=0),a===c));){const u=e[a];fe(u!==void 0),i.push(u),a++}return i}function Hp(e){const t=".page.",o=Ja(e.split(t),0,-1).join(t);return fe(!o.includes("\\")),o}function Ga(e,t){return fe(!e.includes("\\")),e.includes("/_error")}const Bp=["js","cjs","mjs"],Vp=["ts","cts","mts"],Wp=[...Bp,...Vp],Yp=["jsx","cjsx","mjsx"],qp=["tsx","ctsx","mtsx"],Kp=[...Yp,...qp],Qa=["vue","svelte","marko","md","mdx"],$p=[...Wp,...Kp,...Qa];function Za(e){return $p.some(t=>e.endsWith("."+t))}function Jp(e){return Qa.some(t=>e.endsWith("."+t))}const Gp=[".page",".page.server",".page.route",".page.client",".css"];function Qp(e){if(e.endsWith(".css"))return".css";fe(Za(e),e);const o=e.split("/").slice(-1)[0].split("."),i=o.slice(-3)[0],a=o.slice(-2)[0];if(a==="page")return".page";if(fe(i==="page",e),a==="server")return".page.server";if(a==="client")return".page.client";if(a==="route")return".page.route";fe(!1,e)}function Xa(e){const t=c=>a.pageId===c||a.isDefaultPageFile&&(ys(a.filePath)||Zp(c,a.filePath)),o=Qp(e),a={filePath:e,fileType:o,isEnv:c=>{if(fe(o!==".page.route"),c==="CLIENT_ONLY")return o===".page.client"||o===".css";if(c==="SERVER_ONLY")return o===".page.server";if(c==="CLIENT_AND_SERVER")return o===".page";fe(!1)},isRelevant:t,isDefaultPageFile:Qi(e),isRendererPageFile:o!==".css"&&Qi(e)&&ys(e),isErrorPageFile:Ga(e),pageId:Hp(e)};return a}function Qi(e){return Ga(e)?!1:e.includes("/_default")}function ys(e){return e.includes("/renderer/")}function Zp(e,t){fe(!e.endsWith("/")),fe(!t.endsWith("/")),fe(Qi(t));const o=Ja(t.split("/"),0,-1).filter(i=>i!=="_default").join("/");return e.startsWith(o)}function Xp(e,t){if(!e)return null;let[o,...i]=e;if(!o||i.length===0&&["*","default",t].includes(o))return null;fe(o!=="*");let a="",c="";return o==="default"?a="export default":(a="export",i=[o,...i]),i.forEac
152h(m=>{a=`${a} { ${m}`,c=` }${c}`}),a+c}function eg(e,t,o){return`${Zi(e,t)} at ${hn(o,t)}`}function tg(e,t,o){return o?`${Zi(e,t)} at ${hn(o,t)}`:`${Zi(e,t)} internally`}function Zi(e,t){return`${e} ${it.cyan(t)} defined`}function hn(e,t){let o;return Ar(e)?o=e:o=[e],fe(o.length>=1),o.map(a=>{if(a.definedBy)return rg(a,t);const{filePathToShowToUser:c,fileExportPathToShowToUser:u}=a,m=Xp(u,t);return m?`${c} > ${it.cyan(m)}`:c}).join(" / ")}function rg(e,t){if(e.definedBy==="api")return`API call ${it.cyan(`${e.operation}({ vikeConfig: { ${t} } })`)}`;const{definedBy:o}=e;if(o==="cli")return`CLI option ${it.cyan(`--${t}`)}`;if(o==="env")return`environment variable ${it.cyan(`VIKE_CONFIG="{${t}}"`)}`;fe(!1)}const ng=[{is:e=>e===void 0,match:e=>e==="!undefined",serialize:()=>"!undefined",deserialize:()=>{}},{is:e=>e===1/0,match:e=>e==="!Infinity",serialize:()=>"!Infinity",deserialize:()=>1/0},{is:e=>e===-1/0,match:e=>e==="!-Infinity",serialize:()=>"!-Infinity",deserialize:()=>-1/0},{is:e=>typeof e=="number"&&isNaN(e),match:e=>e==="!NaN",serialize:()=>"!NaN",deserialize:()=>NaN},{is:e=>e instanceof Date,match:e=>e.startsWith("!Date:"),serialize:e=>"!Date:"+e.toISOString(),deserialize:e=>new Date(e.slice(6))},{is:e=>typeof e=="bigint",match:e=>e.startsWith("!BigInt:"),serialize:e=>"!BigInt:"+e.toString(),deserialize:e=>{if(typeof BigInt>"u")throw new Error("Your JavaScript environement does not support BigInt. Consider adding a polyfill.");return BigInt(e.slice(8))}},{is:e=>e instanceof RegExp,match:e=>e.startsWith("!RegExp:"),serialize:e=>"!RegExp:"+e.toString(),deserialize:e=>{e=e.slice(8);const t=e.match(/\/(.*)\/(.*)?/),o=t[1],i=t[2];return new RegExp(o,i)}},{is:e=>e instanceof Map,match:e=>e.startsWith("!Map:"),serialize:(e,t)=>"!Map:"+t(Array.from(e.entries())),deserialize:(e,t)=>new Map(t(e.slice(5)))},{is:e=>e instanceof Set,match:e=>e.startsWith("!Set:"),serialize:(e,t)=>"!Set:"+t(Array.from(e.values())),deserialize:(e,t)=>new Set(t(e.slice(5)))},{is:e=>typeof e=="string"&&e.startsWith("!"),match:e=>e.startsWith("!"),serialize:e=>"!"+e,deserialize:e=>e.slice(1)}];function eu(e,t={}){const o=JSON.parse(e);return xo(o,t)}function xo(e,t={}){return typeof e=="string"?ig(e,t):(typeof e=="object"&&e!==null&&Object.entries(e).forEach(([o,i])=>{e[o]=xo(i,t)}),e)}function ig(e,t){const o=i=>eu(i,t);{const i=t.reviver?.(void 0,e,o);if(i){if(typeof i.replacement!="string")return i.replacement;if(e=i.replacement,i.resolved)return e}}for(const{match:i,deserialize:a}of ng)if(i(e))return a(e,o);return e}const og=["$$registrations","_rerender_only"],sg=[".md",".mdx"];function ag(e,t,o){const i=Object.keys(e),a=d=>d==="default"||d===o,c=i.filter(a),u=it.code("export default"),m=it.code(`export { ${o} }`);c.length===0&&_t(!1,`${t} should define ${m} or ${u}`),c.length===2&&_t(!1,`${t} is ambiguous: remove ${u} or ${m}`),fe(c.length===1);const f=i.filter(d=>!a(d)).filter(d=>!og.includes(d));sg.some(d=>t.endsWith(d))||f.forEach(d=>{zr(!1,`${t} unexpected ${it.cyan(`export { ${d} }`)}, see https://vike.dev/no-side-exports`,{onlyOnce:!0})})}function ug(e,t){const o=e.map(a=>{const c=Xi(a.configValuesSerialized);return lg(c),{...a,configValues:c}}),i={configValues:{}};{const a=Xi(t.configValuesSerialized);Object.assign(i.configValues,a)}return{pageConfigs:o,pageConfigGlobal:i}}function lg(e){const t="route",o=e[t];if(!o)return;const{value:i,definedAtData:a}=o,c=typeof i;fe(a);const u=eg("Config",t,a);_t(c==="string"||gi(i),`${u} has an invalid type '${c}': it should be a string or a function instead, see https://vike.dev/route`)}function Xi(e){const t={};return Object.entries(e).forEach(([i,a])=>{let c;if(a.type==="cumulative"){const{valueSerialized:u,...m}=a;c={value:u.map((d,h)=>{const{value:p,sideExports:v}=_s(d,i,()=>{const F=a.definedAtData[h];return fe(F),F});return o(v),p}),...m}}else{const{valueSerialized:u,...m}=a,{value:f,sideExports:d}=_s(u,i,()=>{fe(a.type!=="computed");const{definedAtData:h}=a;return Array.isArray(h)?h[0]:h});o(d),c={value:f,...m}}t[i]=c}),t;function o(i){i.forEach(a=>{const{configName:c,configValue:u}=a;t[c]||(t[c]=u)})}}function _s(e,t,o){if(e.type==="js-serialized"){let{value:i}=e;return i=xo(i),{value:i,sideExports:[]}}if(e.type==="pointer-import"){const{value:i}=e;return{value:i,sideExports:[]}}if(e.type==="plus-file"){const i=o(),{exportValues:a}=e;fe(!i.definedBy),ag(a,i.filePathToShowToUser,t);let c,u=!1;const m=[];
152return Object.entries(a).forEach(([f,d])=>{f!=="default"&&f!==t?m.push({configName:f,configValue:{type:"standard",value:d,definedAtData:{filePathToShowToUser:i.filePathToShowToUser,fileExportPathToShowToUser:[f]}}}):(c=d,fe(!u),u=!0)}),fe(u),{value:c,sideExports:m}}fe(!1)}function tu(e,t,o){fe(e,typeof e),t(e)||fe(!1,{moduleExports:e,moduleExportsKeys:cg(e),moduleId:o})}function cg(e){return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e),...Object.keys(e)]}function dg(e){tu(e,m=>"pageFilesLazy"in m),fe(At(e,"pageFilesLazy","object")),fe(At(e,"pageFilesEager","object")),fe(At(e,"pageFilesExportNamesLazy","object")),fe(At(e,"pageFilesExportNamesEager","object")),fe(At(e.pageFilesLazy,".page")),fe(At(e.pageFilesLazy,".page.client")||At(e.pageFilesLazy,".page.server")),fe(At(e,"pageFilesList","string[]")),fe(At(e,"pageConfigsSerialized")),fe(At(e,"pageConfigGlobalSerialized"));const{pageConfigsSerialized:t,pageConfigGlobalSerialized:o}=e;fg(t),hg(o);const{pageConfigs:i,pageConfigGlobal:a}=ug(t,o),c={};On(e.pageFilesLazy).forEach(({filePath:m,pageFile:f,globValue:d})=>{f=c[m]=c[m]??f;const h=d;Ss(h),f.loadFile=async()=>{"fileExports"in f||(f.fileExports=await h(),Mp(f))}}),On(e.pageFilesExportNamesLazy).forEach(({filePath:m,pageFile:f,globValue:d})=>{f=c[m]=c[m]??f;const h=d;Ss(h),f.loadExportNames=async()=>{if(!("exportNames"in f)){const p=await h();fe(At(p,"exportNames","string[]"),f.filePath),f.exportNames=p.exportNames}}}),On(e.pageFilesEager).forEach(({filePath:m,pageFile:f,globValue:d})=>{f=c[m]=c[m]??f;const h=d;fe(qt(h)),f.fileExports=h}),On(e.pageFilesExportNamesEager).forEach(({filePath:m,pageFile:f,globValue:d})=>{f=c[m]=c[m]??f;const h=d;fe(qt(h)),fe(At(h,"exportNames","string[]"),f.filePath),f.exportNames=h.exportNames}),e.pageFilesList.forEach(m=>{c[m]=c[m]??Xa(m)});const u=Object.values(c);return u.forEach(({filePath:m})=>{fe(!m.includes("\\"))}),{pageFilesAll:u,pageConfigs:i,pageConfigGlobal:a}}function On(e){const t=[];return Object.entries(e).forEach(([o,i])=>{fe(Gp.includes(o)),fe(qt(i)),Object.entries(i).forEach(([a,c])=>{const u=Xa(a);fe(u.fileType===o),t.push({filePath:a,pageFile:u,globValue:c})})}),t}function Ss(e){fe(gi(e))}function fg(e){fe(Ar(e)),e.forEach(t=>{fe(qt(t)),fe(At(t,"pageId","string")),fe(At(t,"routeFilesystem")),fe(At(t,"configValuesSerialized"))})}function hg(e){fe(At(e,"configValuesSerialized"))}function ru(e){if(!e||Ar(e)||e.definedBy)return null;const{filePathToShowToUser:t}=e;return fe(t),t}function pg(e){const t=ru(e);return fe(t),t}function gg(e){return(t,o)=>{const i=e(t),a=e(o);if(fe([!0,!1,null].includes(i)),fe([!0,!1,null].includes(a)),i===a)return 0;if(i===!0||a===!1)return-1;if(a===!0||i===!1)return 1;fe(!1)}}function vg(e){return gg(t=>{const o=e(t);return o===null?null:!o})}function mg(e,t,{get:o,...i}){Object.defineProperty(e,t,{...i,get:o})}function yg(e,t,o){const i=iu({pageConfigGlobalValues:e,pageConfigValues:o}),a=nu(i),c=(()=>{if(t.isErrorPage)return{...a,isErrorPage:!0};{const u=a.config.route??t.routeFilesystem.routeString;return{...a,route:u}}})();return[t.pageId,c]}function nu(e){return{config:e.config,_source:e.source,_sources:e.sources,_from:e.from}}function iu({pageConfigGlobalValues:e,pageConfigValues:t}){const o={...e,...t};return ou({configValues:o})}function _g(e,t,o){const i={},a={},c={};e.forEach(v=>{bg(v).forEach(({exportName:b,exportValue:T,isFromDefaultExport:R})=>{fe(b!=="default"),c[b]=c[b]??[],c[b].push({exportValue:T,exportSource:`${v.filePath} > ${R?`\`export default { ${b} }\``:`\`export { ${b} }\``}`,filePath:v.filePath,_filePath:v.filePath,_fileType:v.fileType,_isFromDefaultExport:R})})});let u,m,f;if(t){const v=iu({pageConfigGlobalValues:o.configValues,pageConfigValues:t.configValues});u=v.source,m=v.sources,f=v.from,Object.assign(i,v.config),Object.assign(a,v.configEntries),Object.assign(c,v.exportsAll)}else u={},m={},f={configsStandard:{},configsCumulative:{},configsComputed:{}};const d={},h={};Object.entries(c).forEach(([v,F])=>{F.forEach(({exportValue:b,_fileType:T,_isFromDefaultExport:R})=>{h[v]=h[v]??b,T===".page"&&!R&&(v in d||(d[v]=b))})}),fe(!("default"in h)),fe(!("default"in c));const p={config:i,from:f,source:u,sources:m,configEntries:a,exports:h,exportsAll:c};return mg(p,"pageExports",{get:()=>
152(di()||zr(!1,"pageContext.pageExports is outdated, use pageContext.exports instead",{onlyOnce:!0,showStackTrace:!0}),d),enumerable:!1,configurable:!0}),p}function Sg(e,t){return wg(e,t,i=>i.configValues)}function wg(e,t,o){const i=o(t,!0),a=ou({configValues:i}),c=nu(a),u=Object.fromEntries(e.map(f=>{const d=o(f);return yg(i,f,d)})),m={...c,pages:u};return{...m,_globalConfigPublic:m}}function ou(e){const t={},o={},i={},a={},c={},u={configsStandard:{},configsCumulative:{},configsComputed:{}},m=(d,h)=>{a[h]=d,c[h]??(c[h]=[]),c[h].push(d)},f=(d,h,p)=>{const v=ru(p),F=tg("Config",d,p);o[d]=o[d]??[],o[d].push({configValue:h,configDefinedAt:F,configDefinedByFile:v});const b=d;i[b]=i[b]??[],i[b].push({exportValue:h,exportSource:F,filePath:v,_filePath:v,_fileType:null,_isFromDefaultExport:null})};return Object.entries(e.configValues).forEach(([d,h])=>{const{value:p}=h;if(t[d]=t[d]??p,h.type==="standard"){const v={type:"configsStandard",value:h.value,definedAt:hn(h.definedAtData,d)};m(v,d),u.configsStandard[d]=v,f(d,p,h.definedAtData)}if(h.type==="cumulative"){const v={type:"configsCumulative",definedAt:hn(h.definedAtData,d),values:h.value.map((F,b)=>{const T=h.definedAtData[b];fe(T);const R=hn(T,d);return f(d,F,T),{value:F,definedAt:R}})};m(v,d),u.configsCumulative[d]=v}if(h.type==="computed"){const v={type:"configsComputed",definedAt:"Vike",value:h.value};m(v,d),u.configsComputed[d]=v,f(d,p,h.definedAtData)}}),{config:t,configEntries:o,exportsAll:i,source:a,sources:c,from:u}}function bg(e){const{filePath:t,fileExports:o}=e;fe(o),fe(Za(t));const i=[];return Object.entries(o).sort(vg(([a])=>a==="default")).forEach(([a,c])=>{let u=a==="default";if(u)if(Jp(t))a="Page";else{_t(qt(c),`The ${it.cyan("export default")} of ${t} should be an object.`),Object.entries(c).forEach(([m,f])=>{Np(m,t),i.push({exportName:m,exportValue:f,isFromDefaultExport:u})});return}i.push({exportName:a,exportValue:c,isFromDefaultExport:u})}
152),i.forEach(({exportName:a,isFromDefaultExport:c})=>{fe(!(c&&$a.includes(a)))}),i}const Eg=Xr("hooks/getHook.ts",{});function ws(e,t){if(!(t in e.exports))return null;const{hooksTimeout:o}=e.config,i=au(o,t),a=e.exports[t];if(a===null)return null;const c=e.exportsAll[t][0];fe(c.exportValue===a);const u=c.filePath;return fe(u),Ao(a,t,u,i)}function Fg(e,t){const{hooksTimeout:o}=t.config,i=au(o,e),a=[];return t.exportsAll[e]?.forEach(c=>{const u=c.exportValue;if(u===null)return;const m=c.filePath;fe(m),a.push(Ao(u,e,m,i))}),a}function su(e,t){const o=e.configValues[t];if(!o?.value)return[];const i=o.value;return fe(Ar(i)),i.map((a,c)=>{const u=a,m=xg(t);fe(Ar(o.definedAtData));const f=pg(o.definedAtData[c]);return Ao(u,t,f,m)})}function xg(e){return uu(e)}function Ao(e,t,o,i){return fe(o),Ag(e,{hookName:t,hookFilePath:o}),{hookFn:e,hookName:t,hookFilePath:o,hookTimeout:i}}function Ag(e,{hookName:t,hookFilePath:o}){fe(t&&o),fe(!t.endsWith(")")),fe(!o.endsWith(" ")),_t(gi(e),`Hook ${t}() defined by ${o} should be a function`)}function au(e,t){const o=kg(e);if(o===!1)return{error:!1,warning:!1};const i=o[t],a=uu(t);return i?.error!==void 0&&(a.error=i.error),i?.warning!==void 0&&(a.warning=i.warning),a}function kg(e){if(e===void 0)return{};if(e===!1)return!1;_t(qt(e),`Setting ${it.cyan("hooksTimeout")} should be ${it.cyan("false")} or an object`);const t={};return Object.entries(e).forEach(([o,i])=>{if(i===!1){t[o]={error:!1,warning:!1};return}_t(qt(i),`Setting ${it.cyan(`hooksTimeout.${o}`)} should be ${it.cyan("false")} or an object`);const[a,c]=["error","warning"].map(u=>{const m=i[u];if(m===void 0||m===!1)return m;const f=`Setting ${it.cyan(`hooksTimeout.${o}.${u}`)} should be`;return _t(typeof m=="number",`${f} ${it.cyan("false")} or a number`),_t(m>0,`${f} a positive number`),m});t[o]={error:a,warning:c}}),t}function uu(e){return e==="onBeforeRoute"?{error:5*1e3,warning:1*1e3}:Eg.isPrerendering?{error:120*1e3,warning:30*1e3}:(fe(!e.toLowerCase().includes("prerender")),{error:30*1e3,warning:4*1e3})}function Pg(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0}function Tg(e,t){const o=Object.getOwnPropertyDescriptor(e,t);return!!o&&!("value"in o)&&!!o.get}function Dg(e){Rg(e)}function Rg(e){if(e.is404===void 0||e.is404===null)return;const t=e.pageProps||{};if(!qt(t)){zr(!1,"pageContext.pageProps should be an object",{showStackTrace:!0,onlyOnce:!0});return}t.is404=t.is404||e.is404,e.pageProps=t}const Cg="__VIKE__NOT_SERIALIZABLE__";function Ig(e){return typeof e=="string"&&Og(e)?`.${e}`:`[${JSON.stringify(e)}]`}function Og(e){return/^[a-z0-9\$_]+$/i.test(e)}function ko(e,t,o,i){return new Proxy(e,{get:(a,c)=>jg(c,e,t,o,i)})}function jg(e,...t){const[o,i,a,c]=t,u=String(e);if(e==="_isProxyObject")return!0;if(e==="dangerouslyUseInternals")return t[2]=!0,ko(...t);if(e==="_originalObject")return o;if(c&&!(e in o))return c(e);const m=o[e];return Lg(u,m,i),m}function Lg(e,t,o){if(t!==Cg)return;const i=Ig(e);fe(di()),_t(!1,`Can't access ${o}${i} on the client side. Because it can't be serialized, see server logs.`)}function lu(e){return fe(e._isOriginalObject),ko(e,"globalContext")}function zg(e){fe(!e._isProxyObject),fe(!e.globalContext),fe(e._isOriginalObject),Dg(e),"_pageId"in e||Object.defineProperty(e,"_pageId",{get(){return zr(!1,"pageContext._pageId has been renamed to pageContext.pageId",{showStackTrace:!0,onlyOnce:!0}),e.pageId},enumerable:!1}),Ug(e);const t=lu(e._globalContext);return ko(e,"pageContext",!0,i=>{if(i==="globalContext")return t;if(i in t)return t[i]})}function Ug(e){let t=Object.getOwnPropertyDescriptors(e);for(const o of Object.keys(e))delete e[o];t=Object.fromEntries(Object.entries(t).sort(([o],[i])=>Pg(o,i))),Object.defineProperties(e,t)}function Mg(e){["urlPathname","urlParsed","url","pageExports"].forEach(t=>{e.prop&&fe(Tg(e,t))})}const eo=Xr("utils/execHook.ts",{userHookErrors:new WeakMap,pageContext:null});async function bs(e,t,o){const i=Fg(e,t);return await cu(i,t,o)}async function Ng(e,t,o){const i=su(t._pageConfigGlobal,e),a=o(t);await Promise.all(i.map(async c=>{await du(()=>c.hookFn(a),c,t,null)}))}async function cu(e,t,o){if(!e.length)return[];const i=o(t);return await Promise.all(e.map(async c=>{const u=await du(()=>c.hookFn(i),c,t._globalContext,i);return{...c,hookReturn:u}}))}async function Hg(e,t,o){const i=await cu([e],t,o),{hookReturn:a}=i[0];_t(a===void 0,`The ${e.hookName}() hook defined by ${e.hookFilePath} isn't allowed to return a value`)}function du(e,t,o,i){const{hookName:a,hookFilePath:c,hookTimeout:{error:u,warning:m}}=t;let f,d;const h=new Promise((b,T)=>{f=R=>{p(),b(R)},d=R=>{p(),T(R)}}),p=()=>{v&&clearTimeout(v),F&&clearTimeout(F)},v=Es(m)&&setTimeout(()=>{zr(!1,`The ${a}() hook defined by ${c} is slow: it's taking more than ${Gi(m)} (https://vike.dev/hooksTimeout)`,{onlyOnce:!1})},m),F=Es(u)&&setTimeout(()=>{const b=bp(`The ${a}() hook defined by ${c} timed out: it didn't finish after ${Gi(u)} (https://vike.dev/hooksTimeout)`);d(b)},u);return(async()=>{try{const b=await Bg(e,t,o,i);f(b)}
152catch(b){qt(b)&&eo.userHookErrors.set(b,{hookName:a,hookFilePath:c}),d(b)}})(),h}function Bg(e,t,o,i){const{hookName:a,hookFilePath:c}=t;fe(a!=="onHookCall");const u=o._pageConfigGlobal.configValues.onHookCall,m=()=>(Vg(i),e());if(!u?.value)return m();let f=!1,d,h,p=()=>{f=!0;try{d=m()}catch(v){throw h=v,v}return d};for(const v of u.value){const F={name:a,filePath:c,call:p};p=()=>((async()=>{try{await v(F,i)}catch(b){b!==h&&console.error(b)}})(),_t(f,"onHookCall() must run hook.call()"),d)}if(p(),h)throw h;return d}function Es(e){return!!e&&e!==1/0}function Vg(e){eo.pageContext=e,Promise.resolve().then(()=>{eo.pageContext=null})}async function Wg(e,t,o,i,a){const{previousCreateGlobalContextPromise:c}=t,{promise:u,resolve:m}=Ka({timeout:null});t.previousCreateGlobalContextPromise=u,c&&(fe(t.globalContext),await c);try{const f=Yg(e);let d;if(t.globalContext?d=!0:(t.globalContext=f,d=!1),o&&f._pageConfigs.length>0){const v=o?.(f);zt(f,v)}else{const v=await i?.(f);zt(f,v)}{const v=await a?.(f);zt(f,v)}const h=su(f._pageConfigGlobal,"onCreateGlobalContext");let p=!1;return Kg(t.onCreateGlobalContextHooks??[],h)||(t.onCreateGlobalContextHooks=h,await Ng("onCreateGlobalContext",f,lu),p=!0),d&&(p?Ip(t.globalContext,f):zt(t.globalContext,f,!0)),t.globalContext}finally{m()}}function Yg(e){const{pageFilesAll:t,pageConfigs:o,pageConfigGlobal:i}=dg(e),a=qg(t,o),c=Sg(o,i),u={isGlobalContext:!0,_isOriginalObject:!0,_virtualFileExportsGlobalEntry:e,_pageFilesAll:t,_pageConfigs:o,_pageConfigGlobal:i,_allPageIds:a,...c};return qa(u,"_isOriginalObject",!1),u}function qg(e,t){const o=e.filter(({isDefaultPageFile:c})=>!c).map(({pageId:c})=>c),i=Ha(o),a=t.map(c=>c.pageId);return[...i,...a]}function Kg(e,t){const o=e.map(a=>a.hookFn),i=t.map(a=>a.hookFn);return o.every(a=>i.includes(a))&&i.every(a=>o.includes(a))}const $g="vike_pageContext",Jg="vike_globalContext";function Gg(){const e=fu($g);return fe(At(e,"pageId","string")),fe(At(e,"routeParams","string{}")),e}function Qg(){return fu(Jg)}function fu(e){const t=document.getElementById(e);_t(t,`Couldn't find #${e} (which Vike automatically injects in the HTML): make sure it exists (i.e. don't remove it and make sure your HTML isn't malformed)`);const o=t.textContent;return fe(o),eu(o,{reviver(a,c){if(typeof c=="string")return{replacement:c.replaceAll("\\/","/"),resolved:!1}}})}const rr=Xr("getGlobalContextClientInternalShared.ts",(()=>{const{promise:e,resolve:t}=Ka();return{globalContextInitialPromise:e,globalContextInitialPromiseResolve:t}})());async function hu(){if(rr.globalContextPromise)return await rr.globalContextPromise;const e=Wg(rr.virtualFileExportsGlobalEntry,rr,()=>{const o={isClientSide:!0};return zt(o,Qg()),o});rr.globalContextPromise=e;const t=await e;return fe(rr.globalContext===t),rr.globalContextInitialPromiseResolve(),t}async function Zg(e){rr.virtualFileExportsGlobalEntry!==e&&(delete rr.globalContextPromise,rr.virtualFileExportsGlobalEntry=e,await hu())}async function Xg(){return await hu()}async function ev(){const e=tv(),t=await Xg();return zt(e,{_globalContext:t,_pageFilesAll:t._pageFilesAll}),Dp(e,Rp(e,t._globalConfigPublic)),e}function tv(){const e=Cp();return zt(e,{isClientSide:!0,isPrerendering:!1,isHydration:!0,isBackwardNavigation:null,isHistoryNavigation:null,_hasPageContextFromServer:!0}),e}async function rv(e,t){let o=null;o=ws(e,"render");{const i=ws(e,"onRenderClient");i&&(o=i)}if(!o){const i=nv(e);if(fe(i),e._globalContext._pageConfigs.length>0)_t(!1,`No onRenderClient() hook defined for URL '${i}', but it's needed, see https://vike.dev/onRenderClient`);else{const a=e._pageFilesLoaded.filter(u=>u.fileType===".page.client");let c;a.length===0?c="No file `*.page.client.*` found for URL "+i:c="One of the following files should export a render() hook: "+a.map(u=>u.filePath).join(" "),_t(!1,c)}}await Hg(o,e,t)}function nv(e){let t;try{t=e.urlPathname??e.urlOriginal}catch{}return t=t??window.location.href,t}function iv(e){const t=e.config?.Page||e.exports?.Page;return zt(e,{Page:t}),Mg(e),sv(e),ov(e)}function ov(e){return zg(e)}function sv(e){av(e)}function av(e){Object.entries(e).forEach(([t,o])=>{delete e[t],e[t]=o})}function Ii(e){return iv(e)}const uv="modulepreload",lv=function(e){return"/"+e},Fs={}
152,Ce=function(t,o,i){let a=Promise.resolve();if(o&&o.length>0){let f=function(d){return Promise.all(d.map(h=>Promise.resolve(h).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),m=u?.nonce||u?.getAttribute("nonce");a=f(o.map(d=>{if(d=lv(d),d in Fs)return;Fs[d]=!0;const h=d.endsWith(".css"),p=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${p}`))return;const v=document.createElement("link");if(v.rel=h?"stylesheet":uv,h||(v.as="script"),v.crossOrigin="",v.href=d,m&&v.setAttribute("nonce",m),document.head.appendChild(v),h)return new Promise((F,b)=>{v.addEventListener("load",F),v.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${d}`)))})}))}function c(u){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=u,window.dispatchEvent(m),!m.defaultPrevented)throw u}return a.then(u=>{for(const m of u||[])m.status==="rejected"&&c(m.reason);return t().catch(c)})},Po={},cv={},dv={},fv={},hv=[],pv={},gv=[{pageId:"/pages/_error",isErrorPage:!0,routeFilesystem:void 0,loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/_error",moduleExportsPromise:Ce(()=>import("./pages_error.TwgqIYp5.js").then(e=>e._),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/test-299734/pages",isErrorPage:void 0,routeFilesystem:{routeString:"/test-299734",definedAtLocation:"/pages/test-299734/pages/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/test-299734/pages",moduleExportsPromise:Ce(()=>import("./pages_test-299734_pages.CSJaScXI.js").then(e=>e.cl),__vite__mapDeps([1,2,3,4]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/test-299734/pages/test-ads",isErrorPage:void 0,routeFilesystem:{routeString:"/test-299734/test-ads",definedAtLocation:"/pages/test-299734/pages/test-ads/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/test-299734/pages/test-ads",moduleExportsPromise:Ce(()=>import("./pages_test-299734_pages_test-ads.CKwnTmWI.js"),__vite__mapDeps([16,1,2,3,4]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/account-details",isErrorPage:void 0,routeFilesystem:{routeString:"/account-details",definedAtLocation:"/pages/account-details/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/account-details",moduleExportsPromise:Ce(()=>import("./pages_account-details.T1rypJp7.js"),__vite__mapDeps([17,1,2,3,4,7,8,9,6,12,5,13,18,19]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/behind-the-pass",isErrorPage:void 0,routeFilesystem:{routeString:"/behind-the-pass",definedAtLocation:"/pages/behind-the-pass/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/behind-the-pass",moduleExportsPromise:Ce(()=>import("./pages_behind-the-pass.BZpa8Q7r.js"),__vite__mapDeps([20,1,2,3,4,6,7,8,9,21,12,5,13,22]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}}
152,{pageId:"/pages/chef",isErrorPage:void 0,routeFilesystem:{routeString:"/chef",definedAtLocation:"/pages/chef/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/chef",moduleExportsPromise:Ce(()=>import("./pages_chef.bgBdTSvy.js").then(e=>e.b),__vite__mapDeps([23,1,2,3,4,5,6,7,8,9,12,13,14,24,21,22,25]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/chefs-landing",isErrorPage:void 0,routeFilesystem:{routeString:"/chefs-landing",definedAtLocation:"/pages/chefs-landing/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/chefs-landing",moduleExportsPromise:Ce(()=>import("./pages_chefs-landing.CluDB8OI.js").then(e=>e.d),__vite__mapDeps([21,1,2,3,4,12,7,8,9,5,6,13,22]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/collect-data-basic-form",isErrorPage:void 0,routeFilesystem:{routeString:"/collect-data-basic-form",definedAtLocation:"/pages/collect-data-basic-form/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/collect-data-basic-form",moduleExportsPromise:Ce(()=>import("./pages_collect-data-basic-form.E83EzuY4.js"),__vite__mapDeps([26,1,2,3,4,9,8,12,7,5,6,13]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/collection",isErrorPage:void 0,routeFilesystem:{routeString:"/collection",definedAtLocation:"/pages/collection/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/collection",moduleExportsPromise:Ce(()=>import("./pages_collection.lFur_MZe.js"),__vite__mapDeps([27,1,2,3,4,0,5,6,7,8,9,10,11,12,13,14,15]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}}
152,{pageId:"/pages/competition-calendar",isErrorPage:void 0,routeFilesystem:{routeString:"/competition-calendar",definedAtLocation:"/pages/competition-calendar/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/competition-calendar",moduleExportsPromise:Ce(()=>import("./pages_competition-calendar.xGUD6Nyy.js").then(e=>e.b),__vite__mapDeps([14,1,2,3,4,6,7,8,9,12,5,13]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/competition-landing",isErrorPage:void 0,routeFilesystem:{routeString:"/competition-landing",definedAtLocation:"/pages/competition-landing/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/competition-landing",moduleExportsPromise:Ce(()=>import("./pages_competition-landing.CIoP5A_P.js").then(e=>e.a),__vite__mapDeps([28,1,2,3,4,6,7,8,9]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/competition",isErrorPage:void 0,routeFilesystem:{routeString:"/competition",definedAtLocation:"/pages/competition/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/competition",moduleExportsPromise:Ce(()=>import("./pages_competition.BRVY3l6_.js"),__vite__mapDeps([29,1,2,3,4,9,8,7,6,5]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/content-simple",isErrorPage:void 0,routeFilesystem:{routeString:"/content-simple",definedAtLocation:"/pages/content-simple/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/content-simple",moduleExportsPromise:Ce(()=>import("./pages_content-simple.C1u_4i4w.js"),__vite__mapDeps([30,1,2,3,4,23,5,6,7,8,9,12,13,14,24,21,22,25]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/content",isErrorPage:void 0,routeFilesystem:{routeString:"/content",definedAtLocation:"/pages/content/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/content",moduleExportsPromise:Ce(()=>import("./pages_content.ByGOPNuy.js").then(e=>e.b),__vite__mapDeps([31,1,2,3,4,23,5,6,7,8,9,12,13,14,24,21,22,25,18,19,32]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/content/content-print",isErrorPage:void 0,routeFilesystem:{routeString:"/content/content-print",definedAtLocation:"/pages/content/content-print/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/content/content-print",moduleExportsPromise:Ce(()=>import("./pages_content_content-print.CREqh2wQ.js"),__vite__mapDeps([33,1,2,3,4,31,23,5,6,7,8,9,12,13,14,24,21,22,25,18,19,32]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/contributor",isErrorPage:void 0,routeFilesystem:{routeString:"/contributor",definedAtLocation:"/pages/contributor/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/contributor",moduleExportsPromise:Ce(()=>import("./pages_contributor.DYikEDJG.js").then(e=>e.c),__vite__mapDeps([24,1,2,3,4,5,6,7,8,9]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/contributors",isErrorPage:void 0,routeFilesystem:{routeString:"/contributors",definedAtLocation:"/pages/contributors/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/contributors",moduleExportsPromise:Ce(()=>import("./pages_contributors.Cju924EW.js"),__vite__mapDeps([34,1,2,3,4]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/event-signup-landing",isErrorPage:void 0,routeFilesystem:{routeString:"/event-signup-landing",definedAtLocation:"/pages/event-signup-landing/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/event-signup-landing",moduleExportsPromise:Ce(()=>import("./pages_event-signup-landing.CGe-seag.js"),__vite__mapDeps([35,1,2,3,4,28,6,7,8,9]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/features-landing",isErrorPage:void 0,routeFilesystem:{routeString:"/features-landing",definedAtLocation:"/pages/features-landing/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/features-landing",moduleExportsPromise:Ce(()=>import("./pages_features-landing.BuX4OIao.js"),__vite__mapDeps([36,1,2,3,4,0,5,6,7,8,9,10,11,12,13,14,15]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/gbc-professional-hub",isErrorPage:void 0,routeFilesystem:{routeString:"/gbc-professional-hub",definedAtLocation:"/pages/gbc-professional-hub/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/gbc-professional-hub",moduleExportsPromise:Ce(()=>import("./pages_gbc-professional-hub.BupNoSlk.js"),__vite__mapDeps([37,1,2,3,4,6,7,8,9,10,11,5]))}
152),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/gbc-unlocked",isErrorPage:void 0,routeFilesystem:{routeString:"/gbc-unlocked",definedAtLocation:"/pages/gbc-unlocked/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/gbc-unlocked",moduleExportsPromise:Ce(()=>import("./pages_gbc-unlocked.B_xkM2SV.js").then(e=>e.g),__vite__mapDeps([12,1,2,3,4,7,8,9,5,6,13]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/gift-membership-form",isErrorPage:void 0,routeFilesystem:{routeString:"/gift-membership-form",definedAtLocation:"/pages/gift-membership-form/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/gift-membership-form",moduleExportsPromise:Ce(()=>import("./pages_gift-membership-form.Zp7Vmzgn.js"),__vite__mapDeps([38,1,2,3,4,39,9,8]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/how-to-landing",isErrorPage:void 0,routeFilesystem:{routeString:"/how-to-landing",definedAtLocation:"/pages/how-to-landing/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/how-to-landing",moduleExportsPromise:Ce(()=>import("./pages_how-to-landing.BfRQWwsB.js"),__vite__mapDeps([40,1,2,3,4,12,7,8,9,5,6,13]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/how-to",isErrorPage:void 0,routeFilesystem:{routeString:"/how-to",definedAtLocation:"/pages/how-to/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/how-to",moduleExportsPromise:Ce(()=>import("./pages_how-to.cYOVW39q.js"),__vite__mapDeps([41,1,2,3,4,31,23,5,6,7,8,9,12,13,14,24,21,22,25,18,19,32]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/index",isErrorPage:void 0,routeFilesystem:{routeString:"/",definedAtLocation:"/pages/index/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/index",moduleExportsPromise:Ce(()=>import("./pages_index.D-NV5pJZ.js").then(e=>e.i),__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,12,13,10,11,22]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/listing-index",isErrorPage:void 0,routeFilesystem:{routeString:"/listing-index",definedAtLocation:"/pages/listing-index/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/listing-index",moduleExportsPromise:Ce(()=>import("./pages_listing-index.Dr8no8Tp.js").then(e=>e.l),__vite__mapDeps([5,6,1,2,3,4,7,8,9]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/maps",isErrorPage:void 0,routeFilesystem:{routeString:"/maps",definedAtLocation:"/pages/maps/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/maps",moduleExportsPromise:Ce(()=>import("./pages_maps.CM8cj-oM.js"),__vite__mapDeps([43,1,2,3,4]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/membership-form",isErrorPage:void 0,routeFilesystem:{routeString:"/membership-form",definedAtLocation:"/pages/membership-form/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/membership-form",moduleExportsPromise:Ce(()=>import("./pages_membership-form.BhuVa3iI.js"),__vite__mapDeps([44,1,2,3,4,39,9,8,7]))}
152),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/membership-post-login",isErrorPage:void 0,routeFilesystem:{routeString:"/membership-post-login",definedAtLocation:"/pages/membership-post-login/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/membership-post-login",moduleExportsPromise:Ce(()=>import("./pages_membership-post-login.B1JUKz2P.js"),__vite__mapDeps([45,1,2,3,4]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/membership-student-form",isErrorPage:void 0,routeFilesystem:{routeString:"/membership-student-form",definedAtLocation:"/pages/membership-student-form/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/membership-student-form",moduleExportsPromise:Ce(()=>import("./pages_membership-student-form.Dh3tOpra.js"),__vite__mapDeps([46,1,2,3,4,9,8,7]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/michelin-index",isErrorPage:void 0,routeFilesystem:{routeString:"/michelin-index",definedAtLocation:"/pages/michelin-index/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/michelin-index",moduleExportsPromise:Ce(()=>import("./pages_michelin-index.BzRhFBw9.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,8,9]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/newsletter-signup",isErrorPage:void 0,routeFilesystem:{routeString:"/newsletter-signup",definedAtLocation:"/pages/newsletter-signup/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/newsletter-signup",moduleExportsPromise:Ce(()=>
152import("./pages_newsletter-signup.CoXMbJJ3.js"),__vite__mapDeps([48,1,2,3,4]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/newsletter/newsletter-management-centre",isErrorPage:void 0,routeFilesystem:{routeString:"/newsletter/newsletter-management-centre",definedAtLocation:"/pages/newsletter/newsletter-management-centre/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/newsletter/newsletter-management-centre",moduleExportsPromise:Ce(()=>import("./pages_newsletter_newsletter-management-centre.hg2U4ygd.js").then(e=>e.t),__vite__mapDeps([9,2,1,3,4,8]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/newsletters-landing",isErrorPage:void 0,routeFilesystem:{routeString:"/newsletters-landing",definedAtLocation:"/pages/newsletters-landing/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/newsletters-landing",moduleExportsPromise:Ce(()=>import("./pages_newsletters-landing.D0nKUccU.js").then(e=>e.n),__vite__mapDeps([8,1,2,3,4]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/recipes-landing",isErrorPage:void 0,routeFilesystem:{routeString:"/recipes-landing",definedAtLocation:"/pages/recipes-landing/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/recipes-landing",moduleExportsPromise:Ce(()=>import("./pages_recipes-landing.BzuSXmVa.js"),__vite__mapDeps([49,1,2,3,4,14,6,7,8,9,12,5,13]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/recipes",isErrorPage:void 0,routeFilesystem:{routeString:"/recipes",definedAtLocation:"/pages/recipes/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/recipes",moduleExportsPromise:Ce(()=>import("./pages_recipes.Duy7HT8z.js"),__vite__mapDeps([50,1,2,3,4,21,12,7,8,9,5,6,13,22,18,19,32,51]))}
152),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/recipes/print",isErrorPage:void 0,routeFilesystem:{routeString:"/recipes/print",definedAtLocation:"/pages/recipes/print/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/recipes/print",moduleExportsPromise:Ce(()=>import("./pages_recipes_print.BnIDO_nC.js").then(e=>e.p),__vite__mapDeps([7,1,2,3,4,8,9]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/recipes/shopping-list",isErrorPage:void 0,routeFilesystem:{routeString:"/recipes/shopping-list",definedAtLocation:"/pages/recipes/shopping-list/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/recipes/shopping-list",moduleExportsPromise:Ce(()=>import("./pages_recipes_shopping-list.JEOuIAny.js"),__vite__mapDeps([52,1,2,3,4,7,8,9]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/restaurant-collection",isErrorPage:void 0,routeFilesystem:{routeString:"/restaurant-collection",definedAtLocation:"/pages/restaurant-collection/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/restaurant-collection",moduleExportsPromise:Ce(()=>import("./pages_restaurant-collection.0OraBn1x.js"),__vite__mapDeps([53,1,2,3,4,5,6,7,8,9]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/restaurant",isErrorPage:void 0,routeFilesystem:{routeString:"/restaurant",definedAtLocation:"/pages/restaurant/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/restaurant",moduleExportsPromise:Ce(()=>import("./pages_restaurant.Bw9j2r84.js"),__vite__mapDeps([54,1,2,3,4,24,5,6,7,8,9]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/restaurants-landing",isErrorPage:void 0,routeFilesystem:{routeString:"/restaurants-landing",definedAtLocation:"/pages/restaurants-landing/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/restaurants-landing",moduleExportsPromise:Ce(()=>import("./pages_restaurants-landing.q_mcQows.js"),__vite__mapDeps([55,1,2,3,4,14,6,7,8,9,12,5,13]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/search",isErrorPage:void 0,routeFilesystem:{routeString:"/search",definedAtLocation:"/pages/search/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/search",moduleExportsPromise:Ce(()=>import("./pages_search.DCVEWKzC.js"),__vite__mapDeps([56,1,2,3,4,7,8,9,6]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/serie",isErrorPage:void 0,routeFilesystem:{routeString:"/serie",definedAtLocation:"/pages/serie/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/serie",moduleExportsPromise:Ce(()=>import("./pages_serie.EMG2pZkj.js"),__vite__mapDeps([57,1,2,3,4,23,5,6,7,8,9,12,13,14,24,21,22,25]))}
152),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/signature-series",isErrorPage:void 0,routeFilesystem:{routeString:"/signature-series",definedAtLocation:"/pages/signature-series/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/signature-series",moduleExportsPromise:Ce(()=>import("./pages_signature-series.BOX2HjQ7.js"),__vite__mapDeps([58,1,2,3,4,21,12,7,8,9,5,6,13,22]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/signin-or-register",isErrorPage:void 0,routeFilesystem:{routeString:"/signin-or-register",definedAtLocation:"/pages/signin-or-register/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/signin-or-register",moduleExportsPromise:Ce(()=>import("./pages_signin-or-register.Cg-AXN7G.js"),__vite__mapDeps([59,1,2,3,4]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/spanish-hub",isErrorPage:void 0,routeFilesystem:{routeString:"/spanish-hub",definedAtLocation:"/pages/spanish-hub/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/spanish-hub",moduleExportsPromise:Ce(()=>import("./pages_spanish-hub.D8oXGpJV.js"),__vite__mapDeps([60,1,2,3,4,6,7,8,9]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/the-kitchen-landing",isErrorPage:void 0,routeFilesystem:{routeString:"/the-kitchen-landing",definedAtLocation:"/pages/the-kitchen-landing/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/the-kitchen-landing",moduleExportsPromise:Ce(()=>import("./pages_the-kitchen-landing.CaT0vOSo.js"),__vite__mapDeps([61,1,2,3,4,5,6,7,8,9]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/trader-signup-landing",isErrorPage:void 0,routeFilesystem:{routeString:"/trader-signup-landing",definedAtLocation:"/pages/trader-signup-landing/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/trader-signup-landing",moduleExportsPromise:Ce(()=>import("./pages_trader-signup-landing.DcVIg7C3.js").then(e=>e.t),__vite__mapDeps([6,1,2,3,4,7,8,9]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}},{pageId:"/pages/video-reels",isErrorPage:void 0,routeFilesystem:{routeString:"/video-reels",definedAtLocation:"/pages/video-reels/"},loadVirtualFilePageEntry:()=>({moduleId:"virtual:vike:page-entry:client:/pages/video-reels",moduleExportsPromise:Ce(()=>import("./pages_video-reels.BC5iTDts.js"),__vite__mapDeps([62,1,2,3,4,42,5,6,7,8,9,12,13,10,11,22]))}),configValuesSerialized:{hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!1}}}}],vv={configValuesSerialized:{}},mv=Object.assign({}),yv={...mv};Po[".page"]=yv;const _v=Object.assign({}),Sv={..._v};Po[".page.client"]=Sv;const wv=Object.freeze(Object.defineProperty({__proto__:null,neverLoaded:pv,pageConfigGlobalSerialized:vv,pageConfigsSerialized:gv,pageFilesEager:cv,pageFilesExportNamesEager:fv,pageFilesExportNamesLazy:dv,pageFilesLazy:Po,pageFilesList:hv},Symbol.toStringTag,{value:"Module"}));function bv(e){return e==null}function Ev(e){return!bv(e)}function Fv(e,t){return xv(e,t,!0)}function xv(e,t,o){const i="CLIENT_ONLY",a=e.filter(F=>F.isRelevant(t)&&F.fileType!==".page.route").sort(Av(o,t)),c=F=>{const b=a.filter(R=>R.pageId===t&&R.isEnv(F?"CLIENT_AND_SERVER":i));_t(b.length<=1,`Merge the following files into a single file: ${b.map(R=>R.filePath).join(" ")}`);const T=b[0];return fe(T===void 0||!T.isDefaultPageFile),T},u=c(!1),m=c(!0),f=F=>a.filter(b=>b.isRendererPageFile&&b.isEnv(F?"CLIENT_AND_SERVER":i))[0],d=f(!1),h=f(!0),p=a.filter(F=>F.isDefaultPageFile&&!F.isRendererPageFile&&(F.isEnv(i)||F.isEnv("CLIENT_AND_SERVER")));return[u,m,...p,d,h].filter(Ev)}function Av(e,t){const o="CLIENT_ONLY";return(u,m)=>{if(!u.isDefaultPageFile&&m.isDefaultPageFile)return-1;if(!m.isDefaultPageFile&&u.isDefaultPageFile)return 1;{const f=u.isRendererPageFile,d=m.isRendererPageFile;if(!f&&d)return-1;if(!d&&f)return 1;fe(f===d)}{const f=xs(t,u.filePath),d=xs(t,m.filePath);if(f<d)return-1;if(d<f)return 1;fe(f===d)}{if(u.isEnv(o)&&m.isEnv("CLIENT_AND_SERVER"))return-1;if(m.isEnv(o)&&u.isEnv("CLIENT_AND_SERVER"))return 1}return 0}}function xs(e,t){let o=0;for(;o<e.length&&o<t.length&&e[o]===t[o];o++);const i=e.slice(o),a=t.slice(o),c=i.split("/").length,u=a.split("/").length;return c+u}function kv(e,t){const o=e.filter(a=>a.pageId===t);return fe(o.length<=1),o[0]??null}async function Pv(e,t){if("isPageEntryLoaded"in e)return e;const{moduleId:o,moduleExportsPromise:i}=e.loadVirtualFilePageEntry(),a=await i;tu(a,()=>"configValuesSerialized"in a,o);const u=Tv(a);return Object.assign(e.configValues,u),zt(e,{isPageEntryLoaded:!0}),e}function Tv(e){return Xi(e.configValuesSerialized)}const Dv="_isAssetsError";async function Rv(e,t,o,i){const a=Fv(t,e),c=kv(o,e);let u;
152try{u=(await Promise.all([c&&Pv(c,!1),...a.map(d=>d.loadFile?.())]))[0]}catch(f){throw Cv(f)&&Object.assign(f,{[Dv]:!0}),f}const m={};return zt(m,_g(a,u,i)),zt(m,{_pageFilesLoaded:a}),m}function Cv(e){return e instanceof Error?["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed","error resolving module specifier","failed to resolve module"].some(o=>e.message.toLowerCase().includes(o.toLowerCase())):!1}function Iv(e,t){fe(Vv(e),e),fe(t.startsWith("/"));const{hashString:o,withoutHash:i}=Ov(e);fe(o===null||o.startsWith("#"));const a=o===null?"":pu(o.slice(1)),{searchString:c,withoutSearch:u}=As(i);fe(c===null||c.startsWith("?"));let m="";if(c!==null)m=c;else if(e.startsWith("#")){const Z=gu();m=Z&&As(Z).searchString||""}const f={},d={};Array.from(new URLSearchParams(m)).forEach(([Z,V])=>{f[Z]=V,d[Z]=[...d.hasOwnProperty(Z)?d[Z]:[],V]});let{protocol:h,origin:p,pathnameAbsoluteWithBase:v}=Lv(u,t);const F=u.slice((p||"").length);Bv(e,p,F,c,o);let{pathname:b,isBaseMissing:T}=Nv(v,t);const R=mu(p,b,c,o),j=p?p.slice(h.length):null,{hostname:D,port:N}=zv(j,e);return b=jv(b),fe(b.startsWith("/")),{href:R,protocol:h,hostname:D,port:N,origin:p,pathname:b,pathnameOriginal:F,isBaseMissing:T,search:f,searchAll:d,searchOriginal:c,hash:a,hashOriginal:o}}function Ov(e){const[t,...o]=e.split("#");return{hashString:["",...o].join("#")||null,withoutHash:t}}function As(e){const[t,...o]=e.split("?");return{searchString:["",...o].join("?")||null,withoutSearch:t}}function pu(e){try{return decodeURIComponent(e)}catch{}try{return decodeURI(e)}catch{}return e}function jv(e){return e=e.replace(/\s+$/,""),e=e.split("/").map(t=>pu(t).split("/").join("%2F")).join("/"),e}function Lv(e,t){fe(!e.includes("?")&&!e.includes("#"));{const{protocol:o,origin:i,pathname:a}=ks(e);if(i)return{protocol:o,origin:i,pathnameAbsoluteWithBase:a};fe(a===e)}if(e.startsWith("/"))return{protocol:null,origin:null,pathnameAbsoluteWithBase:e};{const o=gu();let i;return o?i=ks(o.split("?")[0].split("#")[0]).pathname:i=t,{protocol:null,origin:null,pathnameAbsoluteWithBase:Mv(e,i)}}}function gu(){return typeof window<"u"?window?.document?.baseURI:void 0}function ks(e){if(yu(e)){const{protocol:t,uriWithoutProtocol:o}=vu(e);fe(t);const[i,...a]=o.split("/"),c=t+i;return{pathname:"/"+a.join("/"),origin:c,protocol:t}}else return{pathname:e,origin:null,protocol:null}}function zv(e,t){const o={hostname:null,port:null};if(!e)return o;const i=e.split(":");if(i.length>1){const a=parseInt(i.pop(),10);fe(a||a===0,t),o.port=a}return o.hostname=i.join(":"),o}function vu(e){const[o,...i]=e.split(":");if(i.length===0||!/^[a-z][a-z0-9\+\-]*$/i.test(o))return{protocol:null,uriWithoutProtocol:e};let a=o+":",c=i.join(":");const u="//";return c.startsWith(u)&&(a=a+u,c=c.slice(u.length)),{protocol:a,uriWithoutProtocol:c}}function Uv(e){return["ipfs://","ipns://"].includes(e)?!1:e.endsWith("://")}function Mv(e,t){const o=t.split("/"),i=e.split("/");let a=t.endsWith("/");e.startsWith(".")&&o.pop();for(const u in i){const m=i[u];m==""&&u==="0"||m!="."&&(m==".."?o.pop():(a=!1,o.push(m)))}let c=o.join("/");return a&&!c.endsWith("/")&&(c+="/"),c.startsWith("/")||(c="/"+c),c}function Nv(e,t){return fe(e.startsWith("/")),fe(Hv(t)),fe(e.startsWith("/")),fe(t.startsWith("/")),{pathname:e,isBaseMissing:!1}}function Hv(e){return e.startsWith("/")}function Bv(e,t,o,i,a){const c=mu(t,o,i,a);fe(e===c)}function mu(e,t,o,i){return`${e||""}${t}${o||""}${i||""}`}function Vv(e){return Wv(e)||qv(e)}function Wv(e){return Yv(e)||yu(e)}function Yv(e){return e.startsWith("/")}function qv(e){return[".","?","#"].some(t=>e.startsWith(t))||e===""}function yu(e){const{protocol:t}=vu(e);return!!t&&Uv(t)}function Kv(e,t){fe(!e.startsWith("#"));const{searchOriginal:o,hashOriginal:i,pathname:a}=Iv(e,"/");let c=`${a}${o||""}`;return t?.withoutHash||(c+=i||""),fe(c.startsWith("/")),c}function _u(e){return Kv(window.location.href,e)}Pp();const Ps=_u({withoutHash:!0});lp();Zg(wv);$v();async function $v(){const e=await ev();zt(e,Gg());const t=await Rv(e.pageId,e._pageFilesAll,e._globalContext._pageConfigs,e._globalContext._pageConfigGlobal);zt(e,t),await bs("onCreatePageContext",e,Ii),Jv(),await rv(e,Ii),await bs("onHydrationEnd",e,Ii)}function Jv(){const e=_u({withoutHash:!0});_t(Ps===e,`The URL was manipulated before the hydration finished ('${Ps}' to '${e}'). Ensure the hydration has finished before manipulating the URL. Consider using the onHydrationEnd() hook.`)}export{rm as C,nm as N,im as P,em as R,om as S,Xv as U,am as b,sm as c,_e as h,tm as l,Zv as m,Qv as o};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.