@redocly/reference-docs 2.8.3 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli/commands/redocly-docs-cli.min.js +67 -66
- package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +1 -1
- package/dist/console.redocly-reference-docs.min.js +2 -2
- package/dist/oauth2-redirect.js +1 -1
- package/dist/redocly-reference-docs.min.js +327 -326
- package/lib/components/Panel/ContentPanel.js +1 -1
- package/lib/components/Panel/PanelBody.js +1 -1
- package/lib/redoc-lib/src/common-elements/schema.d.ts +2 -2
- package/lib/redoc-lib/src/common-elements/schema.js +1 -1
- package/lib/redoc-lib/src/components/Fields/Field.d.ts +1 -1
- package/lib/redoc-lib/src/components/Parameters/Parameters.d.ts +2 -3
- package/lib/redoc-lib/src/components/Schema/ArraySchema.d.ts +2 -4
- package/lib/redoc-lib/src/components/Schema/ArraySchema.js +1 -1
- package/lib/redoc-lib/src/components/Schema/ObjectSchema.d.ts +2 -9
- package/lib/redoc-lib/src/components/Schema/ObjectSchema.js +1 -1
- package/lib/redoc-lib/src/components/Schema/OneOfSchema.d.ts +3 -15
- package/lib/redoc-lib/src/components/Schema/OneOfSchema.js +1 -1
- package/lib/redoc-lib/src/components/Schema/Schema.d.ts +3 -14
- package/lib/redoc-lib/src/components/Schema/Schema.js +1 -1
- package/lib/redoc-lib/src/components/Schema/types.d.ts +16 -0
- package/lib/redoc-lib/src/components/Schema/types.js +2 -0
- package/lib/redoc-lib/src/services/RedocNormalizedOptions.d.ts +2 -0
- package/lib/redoc-lib/src/services/RedocNormalizedOptions.js +1 -1
- package/lib/redoc-lib/src/services/ScrollService.d.ts +3 -3
- package/lib/redoc-lib/src/services/ScrollService.js +1 -1
- package/lib/redoc-lib/src/theme.d.ts +1 -0
- package/lib/redoc-lib/src/theme.js +1 -1
- package/lib/services/ProMenu.js +1 -1
- package/lib/services/history/ProHashHistoryService.js +1 -1
- package/lib/services/history/PushStateHistoryService.js +1 -1
- package/lib-esm/components/Panel/ContentPanel.js +1 -1
- package/lib-esm/components/Panel/PanelBody.js +1 -1
- package/lib-esm/redoc-lib/src/common-elements/schema.d.ts +2 -2
- package/lib-esm/redoc-lib/src/common-elements/schema.js +1 -1
- package/lib-esm/redoc-lib/src/components/Fields/Field.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Parameters/Parameters.d.ts +2 -3
- package/lib-esm/redoc-lib/src/components/Schema/ArraySchema.d.ts +2 -4
- package/lib-esm/redoc-lib/src/components/Schema/ArraySchema.js +1 -1
- package/lib-esm/redoc-lib/src/components/Schema/ObjectSchema.d.ts +2 -9
- package/lib-esm/redoc-lib/src/components/Schema/ObjectSchema.js +1 -1
- package/lib-esm/redoc-lib/src/components/Schema/OneOfSchema.d.ts +3 -15
- package/lib-esm/redoc-lib/src/components/Schema/OneOfSchema.js +1 -1
- package/lib-esm/redoc-lib/src/components/Schema/Schema.d.ts +3 -14
- package/lib-esm/redoc-lib/src/components/Schema/Schema.js +1 -1
- package/lib-esm/redoc-lib/src/components/Schema/types.d.ts +16 -0
- package/lib-esm/redoc-lib/src/components/Schema/types.js +2 -0
- package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.d.ts +2 -0
- package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.js +1 -1
- package/lib-esm/redoc-lib/src/services/ScrollService.d.ts +3 -3
- package/lib-esm/redoc-lib/src/services/ScrollService.js +1 -1
- package/lib-esm/redoc-lib/src/theme.d.ts +1 -0
- package/lib-esm/redoc-lib/src/theme.js +1 -1
- package/lib-esm/services/ProMenu.js +1 -1
- package/lib-esm/services/history/ProHashHistoryService.js +1 -1
- package/lib-esm/services/history/PushStateHistoryService.js +1 -1
- package/package.json +2 -1
|
@@ -2,7 +2,7 @@ var mr=Math.pow;/*!
|
|
|
2
2
|
* Redocly Reference Docs
|
|
3
3
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: "2.
|
|
5
|
+
* Version: "2.9.0"
|
|
6
6
|
*/(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{66419:(h,I,o)=>{h.exports=o(27698)},77766:(h,I,o)=>{h.exports=o(8065)},72119:(h,I,o)=>{h.exports=o(57448)},20116:(h,I,o)=>{h.exports=o(11955)},94473:(h,I,o)=>{h.exports=o(61577)},78580:(h,I,o)=>{h.exports=o(33778)},2991:(h,I,o)=>{h.exports=o(61798)},3649:(h,I,o)=>{h.exports=o(82073)},92762:(h,I,o)=>{h.exports=o(2348)},59340:(h,I,o)=>{h.exports=o(8933)},51942:(h,I,o)=>{h.exports=o(63383)},26295:(h,I,o)=>{h.exports=o(86209)},86902:(h,I,o)=>{h.exports=o(23059)},93476:(h,I,o)=>{h.exports=o(27460)},52424:(h,I,o)=>{h.exports=o(72010)},53592:(h,I,o)=>{h.exports=o(27385)},78363:(h,I,o)=>{h.exports=o(81522)},19996:(h,I,o)=>{h.exports=o(32209)},30699:(h,I,o)=>{h.exports=o(44442)},28834:(h,I,o)=>{h.exports=o(57152)},95683:(h,I,o)=>{h.exports=o(69447)},95238:(h,I,o)=>{h.exports=o(81493)},189:(h,I,o)=>{h.exports=o(76094)},32752:(h,I,o)=>{h.exports=o(70573)},44341:(h,I,o)=>{h.exports=o(73685)},58377:(h,I,o)=>{h.exports=o(27533)},13038:(h,I,o)=>{h.exports=o(39057)},63263:(h,I,o)=>{h.exports=o(84710)},24889:(h,I,o)=>{h.exports=o(74303)},89356:(h,I,o)=>{h.exports=o(93799)},79542:(h,I,o)=>{h.exports=o(55122)},69798:(h,I,o)=>{h.exports=o(29531)},13535:(h,I,o)=>{h.exports=o(10856)},83863:(h,I,o)=>{h.exports=o(31524)},51446:(h,I,o)=>{h.exports=o(86600)},23882:(h,I,o)=>{h.exports=o(9759)},63109:(h,I,o)=>{h.exports=o(35666)},79742:(h,I)=>{"use strict";I.byteLength=g,I.toByteArray=D,I.fromByteArray=_;for(var o=[],c=[],v=typeof Uint8Array!="undefined"?Uint8Array:Array,x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,b=x.length;d<b;++d)o[d]=x[d],c[x.charCodeAt(d)]=d;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63;function A(z){var k=z.length;if(k%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Q=z.indexOf("=");Q===-1&&(Q=k);var M=Q===k?0:4-Q%4;return[Q,M]}function g(z){var k=A(z),Q=k[0],M=k[1];return(Q+M)*3/4-M}function L(z,k,Q){return(k+Q)*3/4-Q}function D(z){var k,Q=A(z),M=Q[0],O=Q[1],V=new v(L(z,M,O)),X=0,H=O>0?M-4:M,K;for(K=0;K<H;K+=4)k=c[z.charCodeAt(K)]<<18|c[z.charCodeAt(K+1)]<<12|c[z.charCodeAt(K+2)]<<6|c[z.charCodeAt(K+3)],V[X++]=k>>16&255,V[X++]=k>>8&255,V[X++]=k&255;return O===2&&(k=c[z.charCodeAt(K)]<<2|c[z.charCodeAt(K+1)]>>4,V[X++]=k&255),O===1&&(k=c[z.charCodeAt(K)]<<10|c[z.charCodeAt(K+1)]<<4|c[z.charCodeAt(K+2)]>>2,V[X++]=k>>8&255,V[X++]=k&255),V}function B(z){return o[z>>18&63]+o[z>>12&63]+o[z>>6&63]+o[z&63]}function U(z,k,Q){for(var M,O=[],V=k;V<Q;V+=3)M=(z[V]<<16&16711680)+(z[V+1]<<8&65280)+(z[V+2]&255),O.push(B(M));return O.join("")}function _(z){for(var k,Q=z.length,M=Q%3,O=[],V=16383,X=0,H=Q-M;X<H;X+=V)O.push(U(z,X,X+V>H?H:X+V));return M===1?(k=z[Q-1],O.push(o[k>>2]+o[k<<4&63]+"==")):M===2&&(k=(z[Q-2]<<8)+z[Q-1],O.push(o[k>>10]+o[k>>4&63]+o[k<<2&63]+"=")),O.join("")}},50706:(h,I,o)=>{var c=o(48764).Buffer;(function(){"use strict";function v(x){var d;return x instanceof c?d=x:d=c.from(x.toString(),"binary"),d.toString("base64")}h.exports=v})()},48764:(h,I,o)=>{"use strict";/*!
|
|
7
7
|
* The buffer module from node.js, for the browser.
|
|
8
8
|
*
|
|
@@ -454,7 +454,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
454
454
|
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
455
455
|
* (c) 2017 Joachim Wester
|
|
456
456
|
* MIT license
|
|
457
|
-
*/var Wc=new WeakMap,tg=function(){function t(r){this.observers=new Map,this.obj=r}return t}(),rg=function(){function t(r,i){this.callback=r,this.observer=i}return t}();function ng(t){return Wc.get(t)}function ig(t,r){return t.observers.get(r)}function og(t,r){t.observers.delete(r.callback)}function ag(t,r){r.unobserve()}function sg(t,r){var i=[],a,s=ng(t);if(!s)s=new tg(t),Wc.set(t,s);else{var p=ig(s,r);a=p&&p.observer}if(a)return a;if(a={},s.value=Gn(t),r){a.callback=r,a.next=null;var m=function(){zc(a)},S=function(){clearTimeout(a.next),a.next=setTimeout(m)};typeof window!="undefined"&&(window.addEventListener("mouseup",S),window.addEventListener("keyup",S),window.addEventListener("mousedown",S),window.addEventListener("keydown",S),window.addEventListener("change",S))}return a.patches=i,a.object=t,a.unobserve=function(){zc(a),clearTimeout(a.next),og(s,a),typeof window!="undefined"&&(window.removeEventListener("mouseup",S),window.removeEventListener("keyup",S),window.removeEventListener("mousedown",S),window.removeEventListener("keydown",S),window.removeEventListener("change",S))},s.observers.set(r,new rg(r,a)),a}function zc(t,r){r===void 0&&(r=!1);var i=Wc.get(t.object);Gc(i.value,t.object,t.patches,"",r),t.patches.length&&ba(i.value,t.patches);var a=t.patches;return a.length>0&&(t.patches=[],t.callback&&t.callback(a)),a}function Gc(t,r,i,a,s){if(r!==t){typeof r.toJSON=="function"&&(r=r.toJSON());for(var p=jc(r),m=jc(t),S=!1,w=!1,E=m.length-1;E>=0;E--){var R=m[E],J=t[R];if(lf(r,R)&&!(r[R]===void 0&&J!==void 0&&Array.isArray(r)===!1)){var oe=r[R];typeof J=="object"&&J!=null&&typeof oe=="object"&&oe!=null?Gc(J,oe,i,a+"/"+ao(R),s):J!==oe&&(S=!0,s&&i.push({op:"test",path:a+"/"+ao(R),value:Gn(J)}),i.push({op:"replace",path:a+"/"+ao(R),value:Gn(oe)}))}else Array.isArray(t)===Array.isArray(r)?(s&&i.push({op:"test",path:a+"/"+ao(R),value:Gn(J)}),i.push({op:"remove",path:a+"/"+ao(R)}),w=!0):(s&&i.push({op:"test",path:a,value:t}),i.push({op:"replace",path:a,value:r}),S=!0)}if(!(!w&&p.length==m.length))for(var E=0;E<p.length;E++){var R=p[E];!lf(t,R)&&r[R]!==void 0&&i.push({op:"add",path:a+"/"+ao(R),value:Gn(r[R])})}}}function lg(t,r,i){i===void 0&&(i=!1);var a=[];return Gc(t,r,a,"",i),a}const Dm=Object.assign({},c,v,{JsonPatchError:hp,deepClone:Gn,escapePathComponent:ao,unescapePathComponent:cp});var ug=o(31312),fg=o.n(ug),cg=o(50361),dg=o.n(cg);const sr={add:hg,replace:$c,remove:vg,merge:gg,mergeDeep:yg,context:mg,getIn:Sg,applyPatch:pg,parentPathMatch:wg,flatten:Al,fullyNormalizeArray:Ag,normalizeArray:mp,isPromise:Eg,forEachNew:xg,forEachNewPrimitive:bg,isJsonPatch:wp,isContextPatch:Tg,isPatch:cf,isMutation:Sp,isAdditiveMutation:ff,isGenerator:Og,isFunction:bp,isObject:jo,isError:Cg};function pg(t,r,i){if(i=i||{},r=Cr(Cr({},r),{},{path:r.path&&gp(r.path)}),r.op==="merge"){var a=Jc(t,r.path);mi()(a,r.value),ba(t,[$c(r.path,a)])}else if(r.op==="mergeDeep"){var s=Jc(t,r.path);for(var p in r.value){var m=r.value[p],S=Array.isArray(m);if(S){var w=s[p]||[];s[p]=Tt()(w).call(w,m)}else if(jo(m)&&!S){var E=Cr({},s[p]);for(var R in m)if(Object.prototype.hasOwnProperty.call(E,R)){E=fg()(dg()(E),m);break}else mi()(E,zd({},R,m[R]));s[p]=E}else s[p]=m}}else if(r.op==="add"&&r.path===""&&jo(r.value)){var J=or()(r.value).reduce(function(pe,Se){return pe.push({op:"add",path:"/".concat(gp(Se)),value:r.value[Se]}),pe},[]);ba(t,J)}else if(r.op==="replace"&&r.path===""){var oe=r,re=oe.value;i.allowMetaPatches&&r.meta&&ff(r)&&(Array.isArray(r.value)||jo(r.value))&&(re=Cr(Cr({},re),r.meta)),t=re}else if(ba(t,[r]),i.allowMetaPatches&&r.meta&&ff(r)&&(Array.isArray(r.value)||jo(r.value))){var le=Jc(t,r.path),ve=Cr(Cr({},le),r.meta);ba(t,[$c(r.path,ve)])}return t}function gp(t){return Array.isArray(t)?t.length<1?"":"/".concat(ir()(t).call(t,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):t}function hg(t,r){return{op:"add",path:t,value:r}}function $c(t,r,i){return{op:"replace",path:t,value:r,meta:i}}function vg(t){return{op:"remove",path:t}}function gg(t,r){return{type:"mutation",op:"merge",path:t,value:r}}function yg(t,r){return{type:"mutation",op:"mergeDeep",path:t,value:r}}function mg(t,r){return{type:"context",path:t,value:r}}function xg(t,r){try{return yp(t,Yc,r)}catch(i){return i}}function bg(t,r){try{return yp(t,Kc,r)}catch(i){return i}}function yp(t,r,i){var a,s=ir()(a=Dn()(t).call(t,ff)).call(a,function(S){return r(S.value,i,S.path)})||[],p=Al(s),m=xp(p);return m}function Kc(t,r,i){if(i=i||[],Array.isArray(t))return ir()(t).call(t,function(s,p){return Kc(s,r,Tt()(i).call(i,p))});if(jo(t)){var a;return ir()(a=or()(t)).call(a,function(s){return Kc(t[s],r,Tt()(i).call(i,s))})}return r(t,i[i.length-1],i)}function Yc(t,r,i){i=i||[];var a=[];if(i.length>0){var s=r(t,i[i.length-1],i);s&&(a=Tt()(a).call(a,s))}if(Array.isArray(t)){var p=ir()(t).call(t,function(w,E){return Yc(w,r,Tt()(i).call(i,E))});p&&(a=Tt()(a).call(a,p))}else if(jo(t)){var m,S=ir()(m=or()(t)).call(m,function(w){return Yc(t[w],r,Tt()(i).call(i,w))});S&&(a=Tt()(a).call(a,S))}return a=Al(a),a}function wg(t,r){if(!Array.isArray(r))return!1;for(var i=0,a=r.length;i<a;i+=1)if(r[i]!==t[i])return!1;return!0}function Sg(t,r){return r.reduce(function(i,a){return typeof a!="undefined"&&i?i[a]:i},t)}function Ag(t){return xp(Al(mp(t)))}function mp(t){return Array.isArray(t)?t:[t]}function Al(t){var r;return Tt()(r=[]).apply(r,ya(ir()(t).call(t,function(i){return Array.isArray(i)?Al(i):i})))}function xp(t){return Dn()(t).call(t,function(r){return typeof r!="undefined"})}function jo(t){return t&&vr(t)==="object"}function Eg(t){return jo(t)&&bp(t.then)}function bp(t){return t&&typeof t=="function"}function Cg(t){return t instanceof Error}function wp(t){if(cf(t)){var r=t.op;return r==="add"||r==="remove"||r==="replace"}return!1}function Og(t){return Object.prototype.toString.call(t)==="[object GeneratorFunction]"}function Sp(t){return wp(t)||cf(t)&&t.type==="mutation"}function ff(t){return Sp(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function Tg(t){return cf(t)&&t.type==="context"}function cf(t){return t&&vr(t)==="object"}function Jc(t,r){try{return wl(t,r)}catch(i){return console.error(i),{}}}var Pg=o(52424),Ig=o.n(Pg),Fg=o(54098),kg=o(9779),Ap=o.n(kg);function Ep(t,r){function i(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var a=arguments.length,s=new Array(a),p=0;p<a;p++)s[p]=arguments[p];this.message=s[0],r&&r.apply(this,s)}return i.prototype=new Error,i.prototype.name=t,i.prototype.constructor=i,i}var Rg=o(13692),Mg=o.n(Rg),Lg=o(47037),Ng=o.n(Lg),Dg=["properties"],Bg=["properties"],Ug=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],jg=["schema/example","items/example"];function Cp(t){var r=t[t.length-1],i=t[t.length-2],a=t.join("/");return Dg.indexOf(r)>-1&&Bg.indexOf(i)===-1||Ug.indexOf(a)>-1||jg.some(function(s){return a.indexOf(s)>-1})}function Vg(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=i.specmap,s=i.getBaseUrlForNodePath,p=s===void 0?function(E){var R;return a.getContext(Tt()(R=[]).call(R,ya(r),ya(E))).baseDoc}:s,m=i.targetKeys,S=m===void 0?["$ref","$$ref"]:m,w=[];return Mg()(t).forEach(function(){if(Ic()(S).call(S,this.key)&&Ng()(this.node)){var R=this.path,J=Tt()(r).call(r,this.path),oe=Xc(this.node,p(R));w.push(a.replace(J,oe))}}),w}function Xc(t,r){var i,a=t.split("#"),s=yi(a,2),p=s[0],m=s[1],S=Uo.resolve(p||"",r||"");return m?Tt()(i="".concat(S,"#")).call(i,m):S}var Op="application/json, application/yaml",Hg=new RegExp("^([a-z]+://|//)","i"),vs=Ep("JSONRefError",function(r,i,a){this.originalError=a,mi()(this,i||{})}),so={},Tp=new(Ig()),Wg=[function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="examples"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="examples"&&t[6]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="examples"&&t[7]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[4]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"}],zg=function(r){return Wg.some(function(i){return i(r)})},Gg={key:"$ref",plugin:function(r,i,a,s){var p=s.getInstance(),m=Ni()(a).call(a,0,-1);if(!(Cp(m)||zg(m))){var S=s.getContext(a),w=S.baseDoc;if(typeof r!="string")return new vs("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:w,fullPath:a});var E=Fp(r),R=E[0],J=E[1]||"",oe;try{oe=w||R?Ip(R,w):null}catch(ye){return Qc(ye,{pointer:J,$ref:r,basePath:oe,fullPath:a})}var re,le;if(Qg(J,oe,m,s)&&!p.useCircularStructures){var ve=Xc(r,oe);return r===ve?null:sr.replace(a,ve)}if(oe==null?(le=qc(J),re=s.get(le),typeof re=="undefined"&&(re=new vs("Could not resolve reference: ".concat(r),{pointer:J,$ref:r,baseDoc:w,fullPath:a}))):(re=kp(oe,J),re.__value!=null?re=re.__value:re=re.catch(function(ye){throw Qc(ye,{pointer:J,$ref:r,baseDoc:w,fullPath:a})})),re instanceof Error)return[sr.remove(a),re];var pe=Xc(r,oe),Se=sr.replace(m,re,{$$ref:pe});if(oe&&oe!==w)return[Se,sr.context(m,{baseDoc:oe})];try{if(!Zg(s.state,Se)||p.useCircularStructures)return Se}catch(ye){return null}}}},Pp=mi()(Gg,{docCache:so,absoluteify:Ip,clearCache:Kg,JSONRefError:vs,wrapError:Qc,getDoc:Rp,split:Fp,extractFromDoc:kp,fetchJSON:Yg,extract:Zc,jsonPointerToArray:qc,unescapeJsonPointerToken:Mp});const $g=Pp;function Ip(t,r){if(!Hg.test(t)){if(!r){var i;throw new vs(Tt()(i="Tried to resolve a relative URL, without having a basePath. path: '".concat(t,"' basePath: '")).call(i,r,"'"))}return Uo.resolve(r,t)}return t}function Qc(t,r){var i;if(t&&t.response&&t.response.body){var a;i=Tt()(a="".concat(t.response.body.code," ")).call(a,t.response.body.message)}else i=t.message;return new vs("Could not resolve reference: ".concat(i),r,t)}function Fp(t){return(t+"").split("#")}function kp(t,r){var i=so[t];if(i&&!sr.isPromise(i))try{var a=Zc(r,i);return mi()(ma().resolve(a),{__value:a})}catch(s){return ma().reject(s)}return Rp(t).then(function(s){return Zc(r,s)})}function Kg(t){typeof t!="undefined"?delete so[t]:or()(so).forEach(function(r){delete so[r]})}function Rp(t){var r=so[t];return r?sr.isPromise(r)?r:ma().resolve(r):(so[t]=Pp.fetchJSON(t).then(function(i){return so[t]=i,i}),so[t])}function Yg(t){return(0,Fg.fetch)(t,{headers:{Accept:Op},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Zd().safeLoad(r)})}function Zc(t,r){var i=qc(t);if(i.length<1)return r;var a=sr.getIn(r,i);if(typeof a=="undefined")throw new vs("Could not resolve pointer: ".concat(t," does not exist in document"),{pointer:t});return a}function qc(t){var r;if(typeof t!="string")throw new TypeError("Expected a string, got a ".concat(vr(t)));return t[0]==="/"&&(t=t.substr(1)),t===""?[]:ir()(r=t.split("/")).call(r,Mp)}function Mp(t){return typeof t!="string"?t:Ap().unescape(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function Lp(t){return Ap().escape(t.replace(/~/g,"~0").replace(/\//g,"~1"))}function Jg(t){return t.length===0?"":"/".concat(ir()(t).call(t,Lp).join("/"))}var Xg=function(r){return!r||r==="/"||r==="#"};function _c(t,r){if(Xg(r))return!0;var i=t.charAt(r.length),a=Ni()(r).call(r,-1);return t.indexOf(r)===0&&(!i||i==="/"||i==="#")&&a!=="#"}function Qg(t,r,i,a){var s,p,m=Tp.get(a);m||(m={},Tp.set(a,m));var S=Jg(i),w=Tt()(s="".concat(r||"<specmap-base>","#")).call(s,t),E=S.replace(/allOf\/\d+\/?/g,""),R=a.contextTree.get([]).baseDoc;if(r==R&&_c(E,t))return!0;var J="",oe=i.some(function(re){var le;return J=Tt()(le="".concat(J,"/")).call(le,Lp(re)),m[J]&&m[J].some(function(ve){return _c(ve,w)||_c(w,ve)})});if(oe)return!0;m[E]=Tt()(p=m[E]||[]).call(p,w)}function Zg(t,r){var i=[t];return r.path.reduce(function(s,p){return i.push(s[p]),s[p]},t),a(r.value);function a(s){return sr.isObject(s)&&(i.indexOf(s)>=0||or()(s).some(function(p){return a(s[p])}))}}var qg=o(41609),_g=o.n(qg);const ey={key:"allOf",plugin:function(r,i,a,s,p){if(!(p.meta&&p.meta.$$ref)){var m=Ni()(a).call(a,0,-1);if(!Cp(m)){if(!Array.isArray(r)){var S=new TypeError("allOf must be an array");return S.fullPath=a,S}var w=!1,E=p.value;if(m.forEach(function(oe){!E||(E=E[oe])}),E=Cr({},E),!_g()(E)){delete E.allOf;var R=[];if(R.push(s.replace(m,{})),r.forEach(function(oe,re){if(!s.isObject(oe)){if(w)return null;w=!0;var le=new TypeError("Elements in allOf must be objects");return le.fullPath=a,R.push(le)}R.push(s.mergeDeep(m,oe));var ve=Ni()(a).call(a,0,-1),pe=Vg(oe,ve,{getBaseUrlForNodePath:function(ye){var Fe;return s.getContext(Tt()(Fe=[]).call(Fe,ya(a),[re],ya(ye))).baseDoc},specmap:s});R.push.apply(R,ya(pe))}),R.push(s.mergeDeep(m,E)),!E.$$ref){var J;R.push(s.remove(Tt()(J=[]).call(J,m,"$$ref")))}return R}}}}},ty={key:"parameters",plugin:function(r,i,a,s){if(Array.isArray(r)&&r.length){var p=mi()([],r),m=Ni()(a).call(a,0,-1),S=Cr({},sr.getIn(s.spec,m));return r.forEach(function(w,E){try{p[E].default=s.parameterMacro(S,w)}catch(J){var R=new Error(J);return R.fullPath=a,R}}),sr.replace(a,p)}return sr.replace(a,r)}},ry={key:"properties",plugin:function(r,i,a,s){var p=Cr({},r);for(var m in r)try{p[m].default=s.modelPropertyMacro(p[m])}catch(E){var S=new Error(E);return S.fullPath=a,S}var w=sr.replace(a,p);return w}};var ny=function(){function t(r){Rc(this,t),this.root=ed(r||{})}return Mc(t,[{key:"set",value:function(i,a){var s=this.getParent(i,!0);if(!s){df(this.root,a,null);return}var p=i[i.length-1],m=s.children;if(m[p]){df(m[p],a,s);return}m[p]=ed(a,s)}},{key:"get",value:function(i){if(i=i||[],i.length<1)return this.root.value;for(var a=this.root,s,p,m=0;m<i.length&&(p=i[m],s=a.children,!!s[p]);m+=1)a=s[p];return a&&a.protoValue}},{key:"getParent",value:function(i,a){return!i||i.length<1?null:i.length<2?this.root:Ni()(i).call(i,0,-1).reduce(function(s,p){if(!s)return s;var m=s.children;return!m[p]&&a&&(m[p]=ed(null,s)),m[p]},this.root)}}]),t}();function ed(t,r){return df({children:{}},t,r)}function df(t,r,i){return t.value=r||{},t.protoValue=i?Cr(Cr({},i.protoValue),t.value):t.value,or()(t.children).forEach(function(a){var s=t.children[a];t.children[a]=df(s,s.value,t)}),t}var Np=100,iy=function(){function t(r){var i=this,a,s;Rc(this,t),mi()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new ny,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:mi()(Object.create(this),sr,{getInstance:function(){return i}}),allowMetaPatches:!1},r),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=Dn()(a=ir()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(a,sr.isFunction),this.patches.push(sr.add([],this.spec)),this.patches.push(sr.context([],this.context)),this.updatePatches(this.patches)}return Mc(t,[{key:"debug",value:function(i){if(this.debugLevel===i){for(var a,s=arguments.length,p=new Array(s>1?s-1:0),m=1;m<s;m++)p[m-1]=arguments[m];(a=console).log.apply(a,p)}}},{key:"verbose",value:function(i){if(this.debugLevel==="verbose"){for(var a,s,p=arguments.length,m=new Array(p>1?p-1:0),S=1;S<p;S++)m[S-1]=arguments[S];(a=console).log.apply(a,Tt()(s=["[".concat(i,"] ")]).call(s,m))}}},{key:"wrapPlugin",value:function(i,a){var s=this.pathDiscriminator,p=null,m;return i[this.pluginProp]?(p=i,m=i[this.pluginProp]):sr.isFunction(i)?m=i:sr.isObject(i)&&(m=S(i)),mi()(m.bind(p),{pluginName:i.name||a,isGenerator:sr.isGenerator(m)});function S(w){var E=function(J,oe){return Array.isArray(J)?J.every(function(re,le){return re===oe[le]}):!0};return Li().mark(function R(J,oe){var re,le,ve,pe,Se,ye;return Li().wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:ye=function($e,Be,Ve){var He,Ye,Ge,et,bt,Nt,Wt,lr,Rr,Or,Gr,wr,Ur;return Li().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(sr.isObject($e)){Xt.next=6;break}if(w.key!==Be[Be.length-1]){Xt.next=4;break}return Xt.next=4,w.plugin($e,w.key,Be,oe);case 4:Xt.next=30;break;case 6:He=Be.length-1,Ye=Be[He],Ge=Be.indexOf("properties"),et=Ye==="properties"&&He===Ge,bt=oe.allowMetaPatches&&le[$e.$$ref],Nt=0,Wt=or()($e);case 12:if(!(Nt<Wt.length)){Xt.next=30;break}if(lr=Wt[Nt],Rr=$e[lr],Or=Tt()(Be).call(Be,lr),Gr=sr.isObject(Rr),wr=$e.$$ref,bt){Xt.next=22;break}if(!Gr){Xt.next=22;break}return oe.allowMetaPatches&&wr&&(le[wr]=!0),Xt.delegateYield(ye(Rr,Or,Ve),"t0",22);case 22:if(!(!et&&lr===w.key)){Xt.next=27;break}if(Ur=E(s,Be),!(!s||Ur)){Xt.next=27;break}return Xt.next=27,w.plugin(Rr,lr,Or,oe,Ve);case 27:Nt++,Xt.next=12;break;case 30:case"end":return Xt.stop()}},re)},re=Li().mark(ye),le={},ve=ga(Dn()(J).call(J,sr.isAdditiveMutation)),Ke.prev=4,ve.s();case 6:if((pe=ve.n()).done){Ke.next=11;break}return Se=pe.value,Ke.delegateYield(ye(Se.value,Se.path,Se),"t0",9);case 9:Ke.next=6;break;case 11:Ke.next=16;break;case 13:Ke.prev=13,Ke.t1=Ke.catch(4),ve.e(Ke.t1);case 16:return Ke.prev=16,ve.f(),Ke.finish(16);case 19:case"end":return Ke.stop()}},R,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var i=this;return Jv()(this.wrappedPlugins,function(a){var s=i.getMutationsForPlugin(a);return s.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var i;return ma().race(ir()(i=this.promisedPatches).call(i,function(a){return a.value}))}}},{key:"getPluginHistory",value:function(i){var a=this.constructor.getPluginName(i);return this.pluginHistory[a]||[]}},{key:"getPluginRunCount",value:function(i){return this.getPluginHistory(i).length}},{key:"getPluginHistoryTip",value:function(i){var a=this.getPluginHistory(i),s=a&&a[a.length-1];return s||{}}},{key:"getPluginMutationIndex",value:function(i){var a=this.getPluginHistoryTip(i).mutationIndex;return typeof a!="number"?-1:a}},{key:"updatePluginHistory",value:function(i,a){var s=this.constructor.getPluginName(i);this.pluginHistory[s]=this.pluginHistory[s]||[],this.pluginHistory[s].push(a)}},{key:"updatePatches",value:function(i){var a=this;sr.normalizeArray(i).forEach(function(s){if(s instanceof Error){a.errors.push(s);return}try{if(!sr.isObject(s)){a.debug("updatePatches","Got a non-object patch",s);return}if(a.showDebug&&a.allPatches.push(s),sr.isPromise(s.value)){a.promisedPatches.push(s),a.promisedPatchThen(s);return}if(sr.isContextPatch(s)){a.setContext(s.path,s.value);return}if(sr.isMutation(s)){a.updateMutations(s);return}}catch(p){console.error(p),a.errors.push(p)}})}},{key:"updateMutations",value:function(i){vr(i.value)==="object"&&!Array.isArray(i.value)&&this.allowMetaPatches&&(i.value=Cr({},i.value));var a=sr.applyPatch(this.state,i,{allowMetaPatches:this.allowMetaPatches});a&&(this.mutations.push(i),this.state=a)}},{key:"removePromisedPatch",value:function(i){var a,s=this.promisedPatches.indexOf(i);if(s<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}Kv()(a=this.promisedPatches).call(a,s,1)}},{key:"promisedPatchThen",value:function(i){var a=this;return i.value=i.value.then(function(s){var p=Cr(Cr({},i),{},{value:s});a.removePromisedPatch(i),a.updatePatches(p)}).catch(function(s){a.removePromisedPatch(i),a.updatePatches(s)}),i.value}},{key:"getMutations",value:function(i,a){var s;return i=i||0,typeof a!="number"&&(a=this.mutations.length),Ni()(s=this.mutations).call(s,i,a)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(i){var a=this.getPluginMutationIndex(i);return this.getMutations(a+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(i){return sr.getIn(this.state,i)}},{key:"_getContext",value:function(i){return this.contextTree.get(i)}},{key:"setContext",value:function(i,a){return this.contextTree.set(i,a)}},{key:"_hasRun",value:function(i){var a=this.getPluginRunCount(this.getCurrentPlugin());return a>(i||0)}},{key:"dispatch",value:function(){var i=this,a=this,s=this.nextPlugin();if(!s){var p=this.nextPromisedPatch();if(p)return p.then(function(){return i.dispatch()}).catch(function(){return i.dispatch()});var m={spec:this.state,errors:this.errors};return this.showDebug&&(m.patches=this.allPatches),ma().resolve(m)}if(a.pluginCount=a.pluginCount||{},a.pluginCount[s]=(a.pluginCount[s]||0)+1,a.pluginCount[s]>Np){var S;return ma().resolve({spec:a.state,errors:Tt()(S=a.errors).call(S,new Error("We've reached a hard limit of ".concat(Np," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var w,E=ir()(w=this.promisedPatches).call(w,function(oe){return oe.value});return ma().all(ir()(E).call(E,function(oe){return oe.then(fp(),fp())})).then(function(){return i.dispatch()})}return R();function R(){a.currentPlugin=s;var oe=a.getCurrentMutations(),re=a.mutations.length-1;try{if(s.isGenerator){var le=ga(s(oe,a.getLib())),ve;try{for(le.s();!(ve=le.n()).done;){var pe=ve.value;J(pe)}}catch(ye){le.e(ye)}finally{le.f()}}else{var Se=s(oe,a.getLib());J(Se)}}catch(ye){console.error(ye),J([mi()(Object.create(ye),{plugin:s})])}finally{a.updatePluginHistory(s,{mutationIndex:re})}return a.dispatch()}function J(oe){oe&&(oe=sr.fullyNormalizeArray(oe),a.updatePatches(oe,s))}}}],[{key:"getPluginName",value:function(i){return i.pluginName}},{key:"getPatchesOfType",value:function(i,a){return Dn()(i).call(i,a)}}]),t}();function oy(t){return new iy(t).dispatch()}var wa={refs:$g,allOf:ey,parameters:ty,properties:ry},ay=o(13218),Dp=o.n(ay),Bp=function(r){return String.prototype.toLowerCase.call(r)},Up=function(r){return r.replace(/[^\w]/gi,"_")};function jp(t){var r=t.openapi;return r?$d()(r,"3"):!1}function Bm(t){var r=t.swagger;return r?startsWith(r,"2"):!1}function pf(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=a.v2OperationIdCompatibilityMode;if(!t||vr(t)!=="object")return null;var p=(t.operationId||"").replace(/\s/g,"");return p.length?Up(t.operationId):sy(r,i,{v2OperationIdCompatibilityMode:s})}function sy(t,r){var i,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=a.v2OperationIdCompatibilityMode;if(s){var p,m,S=Tt()(p="".concat(r.toLowerCase(),"_")).call(p,t).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return S=S||Tt()(m="".concat(t.substring(1),"_")).call(m,r),S.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return Tt()(i="".concat(Bp(r))).call(i,Up(t))}function Vp(t,r){var i;return Tt()(i="".concat(Bp(r),"-")).call(i,t)}function ly(t,r){return!t||!t.paths?null:uy(t,function(i){var a=i.pathName,s=i.method,p=i.operation;if(!p||vr(p)!=="object")return!1;var m=p.operationId,S=pf(p,a,s),w=Vp(a,s);return[S,w,m].some(function(E){return E&&E===r})})}function uy(t,r){return Hp(t,r,!0)||null}function Hp(t,r,i){if(!t||vr(t)!=="object"||!t.paths||vr(t.paths)!=="object")return null;var a=t.paths;for(var s in a)for(var p in a[s])if(p.toUpperCase()!=="PARAMETERS"){var m=a[s][p];if(!(!m||vr(m)!=="object")){var S={spec:t,pathName:s,method:p.toUpperCase(),operation:m},w=r(S);if(i&&w)return S}}}function Wp(t){var r=t.spec,i=r.paths,a={};if(!i||r.$$normalized)return t;for(var s in i){var p=i[s];if(!!Dp()(p)){var m=p.parameters,S=function(J){var oe=p[J];if(!Dp()(oe))return"continue";var re=pf(oe,s,J);if(re){a[re]?a[re].push(oe):a[re]=[oe];var le=a[re];if(le.length>1)le.forEach(function(Ye,Ge){var et;Ye.__originalOperationId=Ye.__originalOperationId||Ye.operationId,Ye.operationId=Tt()(et="".concat(re)).call(et,Ge+1)});else if(typeof oe.operationId!="undefined"){var ve=le[0];ve.__originalOperationId=ve.__originalOperationId||oe.operationId,ve.operationId=re}}if(J!=="parameters"){var pe=[],Se={};for(var ye in r)(ye==="produces"||ye==="consumes"||ye==="security")&&(Se[ye]=r[ye],pe.push(Se));if(m&&(Se.parameters=m,pe.push(Se)),pe.length){var Fe=ga(pe),Ke;try{for(Fe.s();!(Ke=Fe.n()).done;){var Ue=Ke.value;for(var $e in Ue)if(!oe[$e])oe[$e]=Ue[$e];else if($e==="parameters"){var Be=ga(Ue[$e]),Ve;try{var He=function(){var Ge=Ve.value,et=oe[$e].some(function(bt){return bt.name&&bt.name===Ge.name||bt.$ref&&bt.$ref===Ge.$ref||bt.$$ref&&bt.$$ref===Ge.$$ref||bt===Ge});et||oe[$e].push(Ge)};for(Be.s();!(Ve=Be.n()).done;)He()}catch(Ye){Be.e(Ye)}finally{Be.f()}}}}catch(Ye){Fe.e(Ye)}finally{Fe.f()}}}};for(var w in p)var E=S(w)}}return r.$$normalized=!0,t}function zp(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.requestInterceptor,a=r.responseInterceptor,s=t.withCredentials?"include":"same-origin";return function(p){return t({url:p,loadSpec:!0,requestInterceptor:i,responseInterceptor:a,headers:{Accept:Op},credentials:s}).then(function(m){return m.body})}}function fy(){wa.refs.clearCache()}function Gp(t){var r=t.fetch,i=t.spec,a=t.url,s=t.mode,p=t.allowMetaPatches,m=p===void 0?!0:p,S=t.pathDiscriminator,w=t.modelPropertyMacro,E=t.parameterMacro,R=t.requestInterceptor,J=t.responseInterceptor,oe=t.skipNormalization,re=t.useCircularStructures,le=t.http,ve=t.baseDoc;if(ve=ve||a,le=r||le||sf,!i)return zp(le,{requestInterceptor:R,responseInterceptor:J})(ve).then(pe);return pe(i);function pe(Se){ve&&(wa.refs.docCache[ve]=Se),wa.refs.fetchJSON=zp(le,{requestInterceptor:R,responseInterceptor:J});var ye=[wa.refs];return typeof E=="function"&&ye.push(wa.parameters),typeof w=="function"&&ye.push(wa.properties),s!=="strict"&&ye.push(wa.allOf),oy({spec:Se,context:{baseDoc:ve},plugins:ye,allowMetaPatches:m,pathDiscriminator:S,parameterMacro:E,modelPropertyMacro:w,useCircularStructures:re}).then(oe?function(){var Fe=Pc(Li().mark(function Ke(Ue){return Li().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return Be.abrupt("return",Ue);case 1:case"end":return Be.stop()}},Ke)}));return function(Ke){return Fe.apply(this,arguments)}}():Wp)}}var cy=o(27361),El=o.n(cy);function dy(t,r){return td.apply(this,arguments)}function td(){return td=Pc(Li().mark(function t(r,i){var a,s,p,m,S,w,E,R,J,oe,re,le,ve=arguments;return Li().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return a=ve.length>2&&ve[2]!==void 0?ve[2]:{},s=a.returnEntireTree,p=a.baseDoc,m=a.requestInterceptor,S=a.responseInterceptor,w=a.parameterMacro,E=a.modelPropertyMacro,R=a.useCircularStructures,J={pathDiscriminator:i,baseDoc:p,requestInterceptor:m,responseInterceptor:S,parameterMacro:w,modelPropertyMacro:E,useCircularStructures:R},oe=Wp({spec:r}),re=oe.spec,Se.next=6,Gp(Cr(Cr({},J),{},{spec:re,allowMetaPatches:!0,skipNormalization:!0}));case 6:return le=Se.sent,!s&&Array.isArray(i)&&i.length&&(le.spec=El()(le.spec,i)||null),Se.abrupt("return",le);case 9:case"end":return Se.stop()}},t)})),td.apply(this,arguments)}var py=function(){return null},hy=function(r){return Array.isArray(r)?r:[r]},hf={mapTagOperations:yy,makeExecute:vy};function vy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var i=r.pathName,a=r.method,s=r.operationId;return function(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.execute(Cr(Cr({spec:t.spec},kc()(t,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:i,method:a,parameters:p,operationId:s},m))}}}function Um(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=hf.makeExecute(t),i=hf.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r}),a={};for(var s in i){a[s]={operations:{}};for(var p in i[s])a[s].operations[p]={execute:i[s][p]}}return{apis:a}}function gy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=hf.makeExecute(t);return{apis:hf.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r})}}function yy(t){var r=t.spec,i=t.cb,a=i===void 0?py:i,s=t.defaultTag,p=s===void 0?"default":s,m=t.v2OperationIdCompatibilityMode,S={},w={};return Hp(r,function(E){var R=E.pathName,J=E.method,oe=E.operation,re=oe.tags?hy(oe.tags):[p];re.forEach(function(le){if(typeof le=="string"){w[le]=w[le]||{};var ve=w[le],pe=pf(oe,R,J,{v2OperationIdCompatibilityMode:m}),Se=a({spec:r,pathName:R,method:J,operation:oe,operationId:pe});if(S[pe]){var ye;S[pe]+=1,ve[Tt()(ye="".concat(pe)).call(ye,S[pe])]=Se}else if(typeof ve[pe]!="undefined"){var Fe,Ke,Ue=S[pe]||1;S[pe]=Ue+1,ve[Tt()(Fe="".concat(pe)).call(Fe,S[pe])]=Se;var $e=ve[pe];delete ve[pe],ve[Tt()(Ke="".concat(pe)).call(Ke,Ue)]=$e}else ve[pe]=Se}})}),w}var $p=o(95683);function my(t,r){if(t==null)return{};var i={},a=Vd(t),s,p;for(p=0;p<a.length;p++)s=a[p],!($p(r).call(r,s)>=0)&&(i[s]=t[s]);return i}function xy(t,r){if(t==null)return{};var i=my(t,r),a,s;if(tf){var p=tf(t);for(s=0;s<p.length;s++)a=p[s],!($p(r).call(r,a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,a)||(i[a]=t[a]))}return i}var by=o(68630),Kp=o.n(by),wy=o(1469),Sy=o.n(wy),Ay=o(76489);const Ey={body:Cy,header:Ty,query:Iy,path:Py,formData:Oy};function Cy(t){var r=t.req,i=t.value;r.body=i}function Oy(t){var r=t.req,i=t.value,a=t.parameter;(i||a.allowEmptyValue)&&(r.form=r.form||{},r.form[a.name]={value:i,allowEmptyValue:a.allowEmptyValue,collectionFormat:a.collectionFormat})}function Ty(t){var r=t.req,i=t.parameter,a=t.value;r.headers=r.headers||{},typeof a!="undefined"&&(r.headers[i.name]=a)}function Py(t){var r=t.req,i=t.value,a=t.parameter;r.url=r.url.split("{".concat(a.name,"}")).join(encodeURIComponent(i))}function Iy(t){var r=t.req,i=t.value,a=t.parameter;if(r.query=r.query||{},i===!1&&a.type==="boolean"&&(i="false"),i===0&&["number","integer"].indexOf(a.type)>-1&&(i="0"),i)r.query[a.name]={collectionFormat:a.collectionFormat,value:i};else if(a.allowEmptyValue&&i!==void 0){var s=a.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function vf(t,r){return Ic()(r).call(r,"application/json")?typeof t=="string"?t:nf()(t):t.toString()}function Fy(t){var r=t.req,i=t.value,a=t.parameter,s=a.name,p=a.style,m=a.explode,S=a.content;if(S){var w=or()(S)[0];r.url=r.url.split("{".concat(s,"}")).join(ps(vf(i,w),{escape:!0}));return}var E=Nc({key:a.name,value:i,style:p||"simple",explode:m||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(E)}function ky(t){var r=t.req,i=t.value,a=t.parameter;if(r.query=r.query||{},a.content){var s=or()(a.content)[0];r.query[a.name]=vf(i,s);return}if(i===!1&&(i="false"),i===0&&(i="0"),i)r.query[a.name]={value:i,serializationOption:kc()(a,["style","explode","allowReserved"])};else if(a.allowEmptyValue&&i!==void 0){var p=a.name;r.query[p]=r.query[p]||{},r.query[p].allowEmptyValue=!0}}var Ry=["accept","authorization","content-type"];function My(t){var r=t.req,i=t.parameter,a=t.value;if(r.headers=r.headers||{},!(Ry.indexOf(i.name.toLowerCase())>-1)){if(i.content){var s=or()(i.content)[0];r.headers[i.name]=vf(a,s);return}typeof a!="undefined"&&(r.headers[i.name]=Nc({key:i.name,value:a,style:i.style||"simple",explode:typeof i.explode=="undefined"?!1:i.explode,escape:!1}))}}function Ly(t){var r=t.req,i=t.parameter,a=t.value;r.headers=r.headers||{};var s=vr(a);if(i.content){var p,m=or()(i.content)[0];r.headers.Cookie=Tt()(p="".concat(i.name,"=")).call(p,vf(a,m));return}if(s!=="undefined"){var S=s==="object"&&!Array.isArray(a)&&i.explode?"":"".concat(i.name,"=");r.headers.Cookie=S+Nc({key:i.name,value:a,escape:!1,style:i.style||"form",explode:typeof i.explode=="undefined"?!1:i.explode})}}var Ny=o(50706),Yp=o.n(Ny);function Dy(t,r){var i=t.operation,a=t.requestBody,s=t.securities,p=t.spec,m=t.attachContentTypeForEmptyPayload,S=t.requestContentType;r=By({request:r,securities:s,operation:i,spec:p});var w=i.requestBody||{},E=or()(w.content||{}),R=S&&E.indexOf(S)>-1;if(a||m){if(S&&R)r.headers["Content-Type"]=S;else if(!S){var J=E[0];J&&(r.headers["Content-Type"]=J,S=J)}}else S&&R&&(r.headers["Content-Type"]=S);if(!t.responseContentType&&i.responses){var oe,re=Dn()(oe=Qd()(i.responses)).call(oe,function(ve){var pe=yi(ve,2),Se=pe[0],ye=pe[1],Fe=parseInt(Se,10);return Fe>=200&&Fe<300&&Kp()(ye.content)}).reduce(function(ve,pe){var Se=yi(pe,2),ye=Se[1];return Tt()(ve).call(ve,or()(ye.content))},[]);re.length>0&&(r.headers.accept=re.join(", "))}if(a)if(S){if(E.indexOf(S)>-1)if(S==="application/x-www-form-urlencoded"||S==="multipart/form-data")if(vr(a)==="object"){var le=(w.content[S]||{}).encoding||{};r.form={},or()(a).forEach(function(ve){r.form[ve]={value:a[ve],encoding:le[ve]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function By(t){var r=t.request,i=t.securities,a=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,m=t.spec,S=rf()({},r),w=a.authorized,E=w===void 0?{}:w,R=p.security||m.security||[],J=E&&!!or()(E).length,oe=El()(m,["components","securitySchemes"])||{};return S.headers=S.headers||{},S.query=S.query||{},!or()(a).length||!J||!R||Array.isArray(p.security)&&!p.security.length?r:(R.forEach(function(re){or()(re).forEach(function(le){var ve=E[le],pe=oe[le];if(!!ve){var Se=ve.value||ve,ye=pe.type;if(ve){if(ye==="apiKey")pe.in==="query"&&(S.query[pe.name]=Se),pe.in==="header"&&(S.headers[pe.name]=Se),pe.in==="cookie"&&(S.cookies[pe.name]=Se);else if(ye==="http"){if(/^basic$/i.test(pe.scheme)){var Fe,Ke=Se.username||"",Ue=Se.password||"",$e=Yp()(Tt()(Fe="".concat(Ke,":")).call(Fe,Ue));S.headers.Authorization="Basic ".concat($e)}/^bearer$/i.test(pe.scheme)&&(S.headers.Authorization="Bearer ".concat(Se))}else if(ye==="oauth2"||ye==="openIdConnect"){var Be,Ve=ve.token||{},He=pe["x-tokenName"]||"access_token",Ye=Ve[He],Ge=Ve.token_type;(!Ge||Ge.toLowerCase()==="bearer")&&(Ge="Bearer"),S.headers.Authorization=Tt()(Be="".concat(Ge," ")).call(Be,Ye)}}}})}),S)}function Uy(t,r){var i=t.spec,a=t.operation,s=t.securities,p=t.requestContentType,m=t.responseContentType,S=t.attachContentTypeForEmptyPayload;if(r=jy({request:r,securities:s,operation:a,spec:i}),r.body||r.form||S){var w,E;if(p)r.headers["Content-Type"]=p;else if(Array.isArray(a.consumes)){var R=yi(a.consumes,1);r.headers["Content-Type"]=R[0]}else if(Array.isArray(i.consumes)){var J=yi(i.consumes,1);r.headers["Content-Type"]=J[0]}else a.parameters&&Dn()(w=a.parameters).call(w,function(pe){return pe.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&Dn()(E=a.parameters).call(E,function(pe){return pe.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(p){var oe,re,le=a.parameters&&Dn()(oe=a.parameters).call(oe,function(pe){return pe.in==="body"}).length>0,ve=a.parameters&&Dn()(re=a.parameters).call(re,function(pe){return pe.in==="formData"}).length>0;(le||ve)&&(r.headers["Content-Type"]=p)}return!m&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function jy(t){var r=t.request,i=t.securities,a=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,m=t.spec,S=rf()({},r),w=a.authorized,E=w===void 0?{}:w,R=a.specSecurity,J=R===void 0?[]:R,oe=p.security||J,re=E&&!!or()(E).length,le=m.securityDefinitions;return S.headers=S.headers||{},S.query=S.query||{},!or()(a).length||!re||!oe||Array.isArray(p.security)&&!p.security.length?r:(oe.forEach(function(ve){or()(ve).forEach(function(pe){var Se=E[pe];if(!!Se){var ye=Se.token,Fe=Se.value||Se,Ke=le[pe],Ue=Ke.type,$e=Ke["x-tokenName"]||"access_token",Be=ye&&ye[$e],Ve=ye&&ye.token_type;if(Se){if(Ue==="apiKey"){var He=Ke.in==="query"?"query":"headers";S[He]=S[He]||{},S[He][Ke.name]=Fe}else if(Ue==="basic")if(Fe.header)S.headers.authorization=Fe.header;else{var Ye,Ge=Fe.username||"",et=Fe.password||"";Fe.base64=Yp()(Tt()(Ye="".concat(Ge,":")).call(Ye,et)),S.headers.authorization="Basic ".concat(Fe.base64)}else if(Ue==="oauth2"&&Be){var bt;Ve=!Ve||Ve.toLowerCase()==="bearer"?"Bearer":Ve,S.headers.authorization=Tt()(bt="".concat(Ve," ")).call(bt,Be)}}}})}),S)}var Jp=function(r){return Array.isArray(r)?r:[]},Vy=Ep("OperationNotFoundError",function(r,i,a){this.originalError=a,mi()(this,i||{})}),Hy=function(r,i){return Dn()(i).call(i,function(a){return a.name===r})},Wy=function(r){var i={};r.forEach(function(s){i[s.in]||(i[s.in]={}),i[s.in][s.name]=s});var a=[];return or()(i).forEach(function(s){or()(i[s]).forEach(function(p){a.push(i[s][p])})}),a},zy={buildRequest:Xp};function Gy(t){var r=t.http,i=t.fetch,a=t.spec,s=t.operationId,p=t.pathName,m=t.method,S=t.parameters,w=t.securities,E=xy(t,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),R=r||i||sf;p&&m&&!s&&(s=Vp(p,m));var J=zy.buildRequest(Cr({spec:a,operationId:s,parameters:S,securities:w,http:R},E));return J.body&&(Kp()(J.body)||Sy()(J.body))&&(J.body=nf()(J.body)),R(J)}function Xp(t){var r,i,a=t.spec,s=t.operationId,p=t.responseContentType,m=t.scheme,S=t.requestInterceptor,w=t.responseInterceptor,E=t.contextUrl,R=t.userFetch,J=t.server,oe=t.serverVariables,re=t.http,le=t.parameters,ve=t.parameterBuilders,pe=jp(a);ve||(pe?ve=x:ve=Ey);var Se=re&&re.withCredentials?"include":"same-origin",ye={url:"",credentials:Se,headers:{},cookies:{}};S&&(ye.requestInterceptor=S),w&&(ye.responseInterceptor=w),R&&(ye.userFetch=R);var Fe=ly(a,s);if(!Fe)throw new Vy("Operation ".concat(s," not found"));var Ke=Fe.operation,Ue=Ke===void 0?{}:Ke,$e=Fe.method,Be=Fe.pathName;if(ye.url+=Qp({spec:a,scheme:m,contextUrl:E,server:J,serverVariables:oe,pathName:Be,method:$e}),!s)return delete ye.cookies,ye;ye.url+=Be,ye.method="".concat($e).toUpperCase(),le=le||{};var Ve=a.paths[Be]||{};p&&(ye.headers.accept=p);var He=Wy(Tt()(r=Tt()(i=[]).call(i,Jp(Ue.parameters))).call(r,Jp(Ve.parameters)));He.forEach(function(et){var bt=ve[et.in],Nt;if(et.in==="body"&&et.schema&&et.schema.properties&&(Nt=le),Nt=et&&et.name&&le[et.name],typeof Nt=="undefined"){var Wt;Nt=et&&et.name&&le[Tt()(Wt="".concat(et.in,".")).call(Wt,et.name)]}else if(Hy(et.name,He).length>1){var lr;console.warn(Tt()(lr="Parameter '".concat(et.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(lr,et.name,"' and the passed-in parameter values did not define an 'in' value."))}if(Nt!==null){if(typeof et.default!="undefined"&&typeof Nt=="undefined"&&(Nt=et.default),typeof Nt=="undefined"&&et.required&&!et.allowEmptyValue)throw new Error("Required parameter ".concat(et.name," is not provided"));if(pe&&et.schema&&et.schema.type==="object"&&typeof Nt=="string")try{Nt=JSON.parse(Nt)}catch(Rr){throw new Error("Could not parse object parameter value string as JSON")}bt&&bt({req:ye,parameter:et,value:Nt,operation:Ue,spec:a})}});var Ye=Cr(Cr({},t),{},{operation:Ue});if(pe?ye=Dy(Ye,ye):ye=Uy(Ye,ye),ye.cookies&&or()(ye.cookies).length){var Ge=or()(ye.cookies).reduce(function(et,bt){var Nt=ye.cookies[bt],Wt=et?"&":"",lr=Ay.serialize(bt,Nt);return et+Wt+lr},"");ye.headers.Cookie=Ge}return ye.cookies&&delete ye.cookies,up(ye),ye}var rd=function(r){return r?r.replace(/\W/g,""):null};function Qp(t){var r=jp(t.spec);return r?$y(t):Jy(t)}function $y(t){var r=t.spec,i=t.pathName,a=t.method,s=t.server,p=t.contextUrl,m=t.serverVariables,S=m===void 0?{}:m,w=El()(r,["paths",i,(a||"").toLowerCase(),"servers"])||El()(r,["paths",i,"servers"])||El()(r,["servers"]),E="",R=null;if(s&&w&&w.length){var J=ir()(w).call(w,function(le){return le.url});J.indexOf(s)>-1&&(E=s,R=w[J.indexOf(s)])}if(!E&&w&&w.length){E=w[0].url;var oe=yi(w,1);R=oe[0]}if(E.indexOf("{")>-1){var re=Yy(E);re.forEach(function(le){if(R.variables&&R.variables[le]){var ve=R.variables[le],pe=S[le]||ve.default,Se=new RegExp("{".concat(le,"}"),"g");E=E.replace(Se,pe)}})}return Ky(E,p)}function Ky(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t&&r?Uo.parse(Uo.resolve(r,t)):Uo.parse(t),a=Uo.parse(r),s=rd(i.protocol)||rd(a.protocol)||"",p=i.host||a.host,m=i.pathname||"",S;if(s&&p){var w;S=Tt()(w="".concat(s,"://")).call(w,p+m)}else S=m;return S[S.length-1]==="/"?Ni()(S).call(S,0,-1):S}function Yy(t){for(var r=[],i=/{([^}]+)}/g,a;a=i.exec(t);)r.push(a[1]);return r}function Jy(t){var r=t.spec,i=t.scheme,a=t.contextUrl,s=a===void 0?"":a,p=Uo.parse(s),m=Array.isArray(r.schemes)?r.schemes[0]:null,S=i||m||rd(p.protocol)||"http",w=r.host||p.host||"",E=r.basePath||"",R;if(S&&w){var J;R=Tt()(J="".concat(S,"://")).call(J,w+E)}else R=E;return R[R.length-1]==="/"?Ni()(R).call(R,0,-1):R}Br.http=sf,Br.makeHttp=Wv.bind(null,Br.http),Br.resolve=Gp,Br.resolveSubtree=dy,Br.execute=Gy,Br.serializeRes=np,Br.serializeHeaders=ip,Br.clearCache=fy,Br.makeApisTagOperation=gy,Br.buildRequest=Xp,Br.helpers={opId:pf},Br.getBaseUrl=Qp;function Br(t){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof t=="string"?i.url=t:i=t,!(this instanceof Br))return new Br(i);rf()(this,i);var a=this.resolve().then(function(){return r.disableInterfaces||rf()(r,Br.makeApisTagOperation(r)),r});return a.client=this,a}Br.prototype={http:sf,execute:function(r){return this.applyDefaults(),Br.execute(Cr({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:typeof this.url=="string"?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},r))},resolve:function(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Br.resolve(Cr({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},i)).then(function(a){return r.originalSpec=r.spec,r.spec=a.spec,r.errors=a.errors,r})}},Br.prototype.applyDefaults=function(){var r=this.spec,i=this.url;if(i&&$d()(i,"http")){var a=Uo.parse(i);r.host||(r.host=a.host),r.schemes||(r.schemes=[a.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var jm=Br.helpers;const Xy=Br;var Qy=o(71057),Zy=o(14148),Zp=Object.defineProperty,qy=Object.defineProperties,_y=Object.getOwnPropertyDescriptor,em=Object.getOwnPropertyDescriptors,qp=Object.getOwnPropertySymbols,tm=Object.prototype.hasOwnProperty,rm=Object.prototype.propertyIsEnumerable,nd=(t,r,i)=>r in t?Zp(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,On=(t,r)=>{for(var i in r||(r={}))tm.call(r,i)&&nd(t,i,r[i]);if(qp)for(var i of qp(r))rm.call(r,i)&&nd(t,i,r[i]);return t},Vo=(t,r)=>qy(t,em(r)),nm=(t,r,i,a)=>{for(var s=a>1?void 0:a?_y(r,i):r,p=t.length-1,m;p>=0;p--)(m=t[p])&&(s=(a?m(r,i,s):m(s))||s);return a&&s&&Zp(r,i,s),s},gs=(t,r,i)=>(nd(t,typeof r!="symbol"?r+"":r,i),i),_p=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});function eh(t){return t.startsWith("//")?"https:"+t:t}const im={flex:1,display:"flex",flexDirection:"column"};let id=class extends d.Component{constructor(t){super(t);gs(this,"formApi",null),gs(this,"setFormApi",r=>{this.formApi=r,setTimeout(()=>{this.setState({form:this.formApi.getState()})},0)}),gs(this,"handleChange",r=>{this.setState({form:r}),(0,nn.Hc)(r)}),gs(this,"handleTabChange",r=>{this.setState({activeTab:r})}),gs(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),gs(this,"handleExecute",()=>_p(this,null,function*(){var r,i,a,s,p,m,S;const{store:w,operation:E,onResponse:R}=this.props;this.formApi.submitForm();const{values:J,invalid:oe}=this.formApi.getState();if(oe){this.setState({shaking:!0}),setTimeout(()=>this.setState({shaking:!1}),1e3),(i=(r=w==null?void 0:w.options.events)==null?void 0:r.tryItSent)==null||i.call(r,{eventType:jd.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:E.operationId,operationPath:E.path,operationHttpVerb:E.httpVerb,operationSummary:E.description});return}const re=this.props.operation.requestBody,le=re&&re.content&&re.content.active&&re.content.active.name||"";let ve=J.body;if(/json/.test(le))try{ve=JSON.parse(ve)}catch(Ge){console.error(Ge)}this.setState({loading:!0});const pe=this.state.resolvedRawSpec,Se=(0,zt.U2)(pe,["paths",E.path,(E.httpVerb||"").toLowerCase(),"servers"])||(0,zt.U2)(pe,["paths",E.path,"servers"])||(0,zt.U2)(pe,["servers"]);if(!Se)throw console.error("Servers are not specified in your OpenAPI file. You can't use Try It Out console without specifying servers. If you use OpenAPI 2, make sure you configured host and basepath"),new Error("Servers are not specified");const ye=Se.find(Ge=>this.state.server.url.endsWith(Ge.url.endsWith("/")?Ge.url.substring(0,Ge.url.length-1):Ge.url)),Fe=Date.now(),Ke=!!window.document.documentMode;let Ue,$e=J.auth;if(J.auth){const Ge=Object.keys(J.auth)[0],et=(0,zt.dw)(Ge);Ue=Vo(On({},pe),{components:Vo(On({},pe.components),{securitySchemes:Vo(On({},pe.components.securitySchemes),{[et]:Vo(On({},pe.components.securitySchemes[et]),{type:pe.components.securitySchemes[et].type==="openIdConnect"?"oauth2":pe.components.securitySchemes[et].type})})})}),$e=Vo(On({},$e),{[et]:$e[Ge]})}else Ue=On({},pe);const Be=w.options.corsProxyUrl;Be&&pe.servers&&pe.servers.length&&(Ue.servers=pe.servers.map(Ge=>Vo(On({},Ge),{url:Be+eh(Ge.url)})));const Ve=((s=(a=re==null?void 0:re.content)==null?void 0:a.active)==null?void 0:s.name)||null;if(Ve&&ve&&os(Ve)){const Ge=Object.values(ve);ve=Ge.length>1?Ge:Ge[0]}const He=(Ge,et)=>bt=>(this.props.store.options.sendXUserAgentInTryIt&&(bt.headers["X-User-Agent"]="Redocly Try it API console"),Ge?Ge(bt,et):bt),Ye={userFetch:Ke&&o(54098).fetch,server:Be?Be+eh(ye.url):ye.url,serverVariables:this.state.server.variables,spec:Ue,pathName:E.path,method:E.httpVerb,parameters:On(On(On(On({},J.path),J.query),J.header),J.cookie),securities:{authorized:$e},requestBody:ve,requestContentType:Ve,responseContentType:((p=J.header)==null?void 0:p.Accept)||null,requestInterceptor:He(w.options.requestInterceptor,E)};try{const Ge=yield Xy.execute(Ye);Ge&&Ge.data instanceof Blob&&(Ge.data=yield Ge.data.text()),R==null||R({request:Ye,response:Ge}),this.setState({response:Ge,error:void 0})}catch(Ge){Ge&&Ge.response&&Ge.response.data instanceof Blob&&(Ge.response.data=yield Ge.response.data.text(),R==null||R({request:Ye,response:Ge.response})),this.setState({response:void 0,error:Ge})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-Fe}),(S=(m=w==null?void 0:w.options.events)==null?void 0:m.tryItSent)==null||S.call(m,{eventType:jd.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:E.operationId,operationPath:E.path,operationHttpVerb:E.httpVerb,operationSummary:E.description})}})),this.state={form:{values:{path:(0,nn.ZS)(t.operation.parameters,"path"),cookie:(0,nn.ZS)(t.operation.parameters,"cookie"),header:(0,nn.ZS)(t.operation.parameters,"header"),query:(0,nn.ZS)(t.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return _p(this,null,function*(){const{store:t,specIdx:r,operation:i}=this.props,a=yield t.dereferenceSpecForTryIt(r||0,i);this.setState({resolvedRawSpec:a}),this.formApi.setValues({})})}componentDidUpdate(t){t.operation!==this.props.operation&&this.setState({response:void 0,error:void 0,activeTab:0})}render(){const{operation:t,className:r,rootElement:i}=this.props,{shaking:a,activeTab:s,form:p,response:m,loading:S,error:w}=this.state,E=!!(m||w);return d.createElement(am,{shaking:a,className:r,rootElement:i},d.createElement(Qn.k1,null,d.createElement(n,{active:s,hasResponse:E,onChange:this.handleTabChange}),this.props.onClose&&d.createElement(Vi.PZ,{onClick:this.props.onClose}," \u2715 ")),d.createElement(Vi.RE,{hidden:s!==0},this.renderRequest()),d.createElement(Vi.RE,{hidden:s!==1},this.renderResponse()),d.createElement(ks,{hasResponse:E,params:p.values&&On({},p.values),operation:t,loading:S,execute:this.handleExecute}))}renderRequest(){var t;const{operation:r,store:i,properties:a,securityDefaults:s}=this.props,{form:p,resolvedRawSpec:m,server:S}=this.state,w=p.errors||{},E=w.path||w.cookie||w.header||w.query,R=m&&jt.JsonPointer.get(m,r.pointer);let J=p.values&&p.values.auth&&Object.keys(p.values.auth)[0];(!J||!p.values.auth[J])&&(J=void 0),J&&(p.values.auth[J].token!==void 0||p.values.auth[J].client_id!==void 0||p.values.auth[J].client_secret!==void 0)&&(!p.values.auth[J].token||!p.values.auth[J].token.access_token)&&(J=void 0),J&&p.values.auth[J].username!=null&&(!p.values.auth[J].username||!p.values.auth[J].password)&&(J=void 0);const oe=r.parameters||[],re=(t=i==null?void 0:i.options.hooks)==null?void 0:t.ReplaceTryItSecurityPanel;return!m&&"Loading..."||d.createElement(d.Fragment,null,d.createElement(Ll,{onChange:this.handleChange,getApi:this.setFormApi,style:Vo(On({},im),{margin:0})},d.createElement(Qn.UQ,{initialActiveIdx:r.security.length&&J?1:0},r.security.length&&d.createElement(od,{header:(0,ml.l)("tryItAuth"),"data-cy":"security-trigger",renderChildrenHidden:!0,error:!J&&!!w.auth,success:!!J},re?d.createElement(sm,{field:"auth",validate:cs},le=>d.createElement(Qy.Q,{Hook:re,props:{server:S,operation:r,onChange:le,OAuth2:cr}})):d.createElement(Hh,{formApi:this.formApi,form:p,operation:r,activeServer:S.url,authCorsProxyUrl:i.options.authCorsProxyUrl,securityDefaults:s}))||null,r.requestBody&&d.createElement(od,{header:(0,ml.l)("tryItBody"),"data-cy":"body-trigger",renderChildrenHidden:!0,error:!!w.body},d.createElement(yc,{validate:om,console:this,body:r.requestBody,id:r.id,resolvedBody:R.requestBody,properties:a}))||null,oe.length&&d.createElement(od,{header:(0,ml.l)("tryItParameters"),"data-cy":"parameters-trigger",error:E,renderChildrenHidden:!0},d.createElement(Ma,{operation:r,values:p.values,errors:p.errors||{}}))||null)),d.createElement(Ra,{operation:r,onChange:this.handleServerChange}))}renderResponse(){const{response:t,error:r,time:i}=this.state;return d.createElement(Uf,{response:t,error:r,time:i})}};id=nm([Ia.Pi],id);function om(){}function am(t){const{shaking:r,className:i,children:a,rootElement:s}=t,[p]=(0,zt.Bs)(s);return d.createElement(Vi.q2,{shaking:r,className:i,"data-cy":"console",fullWidth:p==null?void 0:p.width},a)}function sm(t){const{fieldApi:r,render:i,userProps:a}=Kn(On({},t)),{setValue:s}=r,{children:p}=a;return i(d.createElement(d.Fragment,null,p(s)))}function od(t){const r=({toggle:i,expanded:a})=>d.createElement(Qn.h4,{onClick:i,isExpanded:a,"data-cy":t["data-cy"]},d.createElement(Qn.xz,null,d.createElement(Qn.Dx,null,t.header),d.createElement(jt.ShelfIcon,{direction:a?"down":"right"})),t.error&&d.createElement(jt.CrossIcon,{size:"14px",color:"#ff908b"})||null,t.success&&d.createElement(jt.LockIcon,{size:"14px",color:"#56ff26"})||null);return d.createElement(lm,Vo(On({},t),{header:r}))}const lm=(0,Ir.ZP)(Qn.s_)`
|
|
457
|
+
*/var Wc=new WeakMap,tg=function(){function t(r){this.observers=new Map,this.obj=r}return t}(),rg=function(){function t(r,i){this.callback=r,this.observer=i}return t}();function ng(t){return Wc.get(t)}function ig(t,r){return t.observers.get(r)}function og(t,r){t.observers.delete(r.callback)}function ag(t,r){r.unobserve()}function sg(t,r){var i=[],a,s=ng(t);if(!s)s=new tg(t),Wc.set(t,s);else{var p=ig(s,r);a=p&&p.observer}if(a)return a;if(a={},s.value=Gn(t),r){a.callback=r,a.next=null;var m=function(){zc(a)},S=function(){clearTimeout(a.next),a.next=setTimeout(m)};typeof window!="undefined"&&(window.addEventListener("mouseup",S),window.addEventListener("keyup",S),window.addEventListener("mousedown",S),window.addEventListener("keydown",S),window.addEventListener("change",S))}return a.patches=i,a.object=t,a.unobserve=function(){zc(a),clearTimeout(a.next),og(s,a),typeof window!="undefined"&&(window.removeEventListener("mouseup",S),window.removeEventListener("keyup",S),window.removeEventListener("mousedown",S),window.removeEventListener("keydown",S),window.removeEventListener("change",S))},s.observers.set(r,new rg(r,a)),a}function zc(t,r){r===void 0&&(r=!1);var i=Wc.get(t.object);Gc(i.value,t.object,t.patches,"",r),t.patches.length&&ba(i.value,t.patches);var a=t.patches;return a.length>0&&(t.patches=[],t.callback&&t.callback(a)),a}function Gc(t,r,i,a,s){if(r!==t){typeof r.toJSON=="function"&&(r=r.toJSON());for(var p=jc(r),m=jc(t),S=!1,w=!1,E=m.length-1;E>=0;E--){var R=m[E],J=t[R];if(lf(r,R)&&!(r[R]===void 0&&J!==void 0&&Array.isArray(r)===!1)){var oe=r[R];typeof J=="object"&&J!=null&&typeof oe=="object"&&oe!=null?Gc(J,oe,i,a+"/"+ao(R),s):J!==oe&&(S=!0,s&&i.push({op:"test",path:a+"/"+ao(R),value:Gn(J)}),i.push({op:"replace",path:a+"/"+ao(R),value:Gn(oe)}))}else Array.isArray(t)===Array.isArray(r)?(s&&i.push({op:"test",path:a+"/"+ao(R),value:Gn(J)}),i.push({op:"remove",path:a+"/"+ao(R)}),w=!0):(s&&i.push({op:"test",path:a,value:t}),i.push({op:"replace",path:a,value:r}),S=!0)}if(!(!w&&p.length==m.length))for(var E=0;E<p.length;E++){var R=p[E];!lf(t,R)&&r[R]!==void 0&&i.push({op:"add",path:a+"/"+ao(R),value:Gn(r[R])})}}}function lg(t,r,i){i===void 0&&(i=!1);var a=[];return Gc(t,r,a,"",i),a}const Dm=Object.assign({},c,v,{JsonPatchError:hp,deepClone:Gn,escapePathComponent:ao,unescapePathComponent:cp});var ug=o(31312),fg=o.n(ug),cg=o(50361),dg=o.n(cg);const sr={add:hg,replace:$c,remove:vg,merge:gg,mergeDeep:yg,context:mg,getIn:Sg,applyPatch:pg,parentPathMatch:wg,flatten:Al,fullyNormalizeArray:Ag,normalizeArray:mp,isPromise:Eg,forEachNew:xg,forEachNewPrimitive:bg,isJsonPatch:wp,isContextPatch:Tg,isPatch:cf,isMutation:Sp,isAdditiveMutation:ff,isGenerator:Og,isFunction:bp,isObject:jo,isError:Cg};function pg(t,r,i){if(i=i||{},r=Cr(Cr({},r),{},{path:r.path&&gp(r.path)}),r.op==="merge"){var a=Jc(t,r.path);mi()(a,r.value),ba(t,[$c(r.path,a)])}else if(r.op==="mergeDeep"){var s=Jc(t,r.path);for(var p in r.value){var m=r.value[p],S=Array.isArray(m);if(S){var w=s[p]||[];s[p]=Tt()(w).call(w,m)}else if(jo(m)&&!S){var E=Cr({},s[p]);for(var R in m)if(Object.prototype.hasOwnProperty.call(E,R)){E=fg()(dg()(E),m);break}else mi()(E,zd({},R,m[R]));s[p]=E}else s[p]=m}}else if(r.op==="add"&&r.path===""&&jo(r.value)){var J=or()(r.value).reduce(function(pe,Se){return pe.push({op:"add",path:"/".concat(gp(Se)),value:r.value[Se]}),pe},[]);ba(t,J)}else if(r.op==="replace"&&r.path===""){var oe=r,re=oe.value;i.allowMetaPatches&&r.meta&&ff(r)&&(Array.isArray(r.value)||jo(r.value))&&(re=Cr(Cr({},re),r.meta)),t=re}else if(ba(t,[r]),i.allowMetaPatches&&r.meta&&ff(r)&&(Array.isArray(r.value)||jo(r.value))){var le=Jc(t,r.path),ve=Cr(Cr({},le),r.meta);ba(t,[$c(r.path,ve)])}return t}function gp(t){return Array.isArray(t)?t.length<1?"":"/".concat(ir()(t).call(t,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):t}function hg(t,r){return{op:"add",path:t,value:r}}function $c(t,r,i){return{op:"replace",path:t,value:r,meta:i}}function vg(t){return{op:"remove",path:t}}function gg(t,r){return{type:"mutation",op:"merge",path:t,value:r}}function yg(t,r){return{type:"mutation",op:"mergeDeep",path:t,value:r}}function mg(t,r){return{type:"context",path:t,value:r}}function xg(t,r){try{return yp(t,Yc,r)}catch(i){return i}}function bg(t,r){try{return yp(t,Kc,r)}catch(i){return i}}function yp(t,r,i){var a,s=ir()(a=Dn()(t).call(t,ff)).call(a,function(S){return r(S.value,i,S.path)})||[],p=Al(s),m=xp(p);return m}function Kc(t,r,i){if(i=i||[],Array.isArray(t))return ir()(t).call(t,function(s,p){return Kc(s,r,Tt()(i).call(i,p))});if(jo(t)){var a;return ir()(a=or()(t)).call(a,function(s){return Kc(t[s],r,Tt()(i).call(i,s))})}return r(t,i[i.length-1],i)}function Yc(t,r,i){i=i||[];var a=[];if(i.length>0){var s=r(t,i[i.length-1],i);s&&(a=Tt()(a).call(a,s))}if(Array.isArray(t)){var p=ir()(t).call(t,function(w,E){return Yc(w,r,Tt()(i).call(i,E))});p&&(a=Tt()(a).call(a,p))}else if(jo(t)){var m,S=ir()(m=or()(t)).call(m,function(w){return Yc(t[w],r,Tt()(i).call(i,w))});S&&(a=Tt()(a).call(a,S))}return a=Al(a),a}function wg(t,r){if(!Array.isArray(r))return!1;for(var i=0,a=r.length;i<a;i+=1)if(r[i]!==t[i])return!1;return!0}function Sg(t,r){return r.reduce(function(i,a){return typeof a!="undefined"&&i?i[a]:i},t)}function Ag(t){return xp(Al(mp(t)))}function mp(t){return Array.isArray(t)?t:[t]}function Al(t){var r;return Tt()(r=[]).apply(r,ya(ir()(t).call(t,function(i){return Array.isArray(i)?Al(i):i})))}function xp(t){return Dn()(t).call(t,function(r){return typeof r!="undefined"})}function jo(t){return t&&vr(t)==="object"}function Eg(t){return jo(t)&&bp(t.then)}function bp(t){return t&&typeof t=="function"}function Cg(t){return t instanceof Error}function wp(t){if(cf(t)){var r=t.op;return r==="add"||r==="remove"||r==="replace"}return!1}function Og(t){return Object.prototype.toString.call(t)==="[object GeneratorFunction]"}function Sp(t){return wp(t)||cf(t)&&t.type==="mutation"}function ff(t){return Sp(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function Tg(t){return cf(t)&&t.type==="context"}function cf(t){return t&&vr(t)==="object"}function Jc(t,r){try{return wl(t,r)}catch(i){return console.error(i),{}}}var Pg=o(52424),Ig=o.n(Pg),Fg=o(54098),kg=o(9779),Ap=o.n(kg);function Ep(t,r){function i(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var a=arguments.length,s=new Array(a),p=0;p<a;p++)s[p]=arguments[p];this.message=s[0],r&&r.apply(this,s)}return i.prototype=new Error,i.prototype.name=t,i.prototype.constructor=i,i}var Rg=o(13692),Mg=o.n(Rg),Lg=o(47037),Ng=o.n(Lg),Dg=["properties"],Bg=["properties"],Ug=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],jg=["schema/example","items/example"];function Cp(t){var r=t[t.length-1],i=t[t.length-2],a=t.join("/");return Dg.indexOf(r)>-1&&Bg.indexOf(i)===-1||Ug.indexOf(a)>-1||jg.some(function(s){return a.indexOf(s)>-1})}function Vg(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=i.specmap,s=i.getBaseUrlForNodePath,p=s===void 0?function(E){var R;return a.getContext(Tt()(R=[]).call(R,ya(r),ya(E))).baseDoc}:s,m=i.targetKeys,S=m===void 0?["$ref","$$ref"]:m,w=[];return Mg()(t).forEach(function(){if(Ic()(S).call(S,this.key)&&Ng()(this.node)){var R=this.path,J=Tt()(r).call(r,this.path),oe=Xc(this.node,p(R));w.push(a.replace(J,oe))}}),w}function Xc(t,r){var i,a=t.split("#"),s=yi(a,2),p=s[0],m=s[1],S=Uo.resolve(p||"",r||"");return m?Tt()(i="".concat(S,"#")).call(i,m):S}var Op="application/json, application/yaml",Hg=new RegExp("^([a-z]+://|//)","i"),vs=Ep("JSONRefError",function(r,i,a){this.originalError=a,mi()(this,i||{})}),so={},Tp=new(Ig()),Wg=[function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="examples"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="examples"&&t[6]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="examples"&&t[7]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[4]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"}],zg=function(r){return Wg.some(function(i){return i(r)})},Gg={key:"$ref",plugin:function(r,i,a,s){var p=s.getInstance(),m=Ni()(a).call(a,0,-1);if(!(Cp(m)||zg(m))){var S=s.getContext(a),w=S.baseDoc;if(typeof r!="string")return new vs("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:w,fullPath:a});var E=Fp(r),R=E[0],J=E[1]||"",oe;try{oe=w||R?Ip(R,w):null}catch(ye){return Qc(ye,{pointer:J,$ref:r,basePath:oe,fullPath:a})}var re,le;if(Qg(J,oe,m,s)&&!p.useCircularStructures){var ve=Xc(r,oe);return r===ve?null:sr.replace(a,ve)}if(oe==null?(le=qc(J),re=s.get(le),typeof re=="undefined"&&(re=new vs("Could not resolve reference: ".concat(r),{pointer:J,$ref:r,baseDoc:w,fullPath:a}))):(re=kp(oe,J),re.__value!=null?re=re.__value:re=re.catch(function(ye){throw Qc(ye,{pointer:J,$ref:r,baseDoc:w,fullPath:a})})),re instanceof Error)return[sr.remove(a),re];var pe=Xc(r,oe),Se=sr.replace(m,re,{$$ref:pe});if(oe&&oe!==w)return[Se,sr.context(m,{baseDoc:oe})];try{if(!Zg(s.state,Se)||p.useCircularStructures)return Se}catch(ye){return null}}}},Pp=mi()(Gg,{docCache:so,absoluteify:Ip,clearCache:Kg,JSONRefError:vs,wrapError:Qc,getDoc:Rp,split:Fp,extractFromDoc:kp,fetchJSON:Yg,extract:Zc,jsonPointerToArray:qc,unescapeJsonPointerToken:Mp});const $g=Pp;function Ip(t,r){if(!Hg.test(t)){if(!r){var i;throw new vs(Tt()(i="Tried to resolve a relative URL, without having a basePath. path: '".concat(t,"' basePath: '")).call(i,r,"'"))}return Uo.resolve(r,t)}return t}function Qc(t,r){var i;if(t&&t.response&&t.response.body){var a;i=Tt()(a="".concat(t.response.body.code," ")).call(a,t.response.body.message)}else i=t.message;return new vs("Could not resolve reference: ".concat(i),r,t)}function Fp(t){return(t+"").split("#")}function kp(t,r){var i=so[t];if(i&&!sr.isPromise(i))try{var a=Zc(r,i);return mi()(ma().resolve(a),{__value:a})}catch(s){return ma().reject(s)}return Rp(t).then(function(s){return Zc(r,s)})}function Kg(t){typeof t!="undefined"?delete so[t]:or()(so).forEach(function(r){delete so[r]})}function Rp(t){var r=so[t];return r?sr.isPromise(r)?r:ma().resolve(r):(so[t]=Pp.fetchJSON(t).then(function(i){return so[t]=i,i}),so[t])}function Yg(t){return(0,Fg.fetch)(t,{headers:{Accept:Op},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Zd().safeLoad(r)})}function Zc(t,r){var i=qc(t);if(i.length<1)return r;var a=sr.getIn(r,i);if(typeof a=="undefined")throw new vs("Could not resolve pointer: ".concat(t," does not exist in document"),{pointer:t});return a}function qc(t){var r;if(typeof t!="string")throw new TypeError("Expected a string, got a ".concat(vr(t)));return t[0]==="/"&&(t=t.substr(1)),t===""?[]:ir()(r=t.split("/")).call(r,Mp)}function Mp(t){return typeof t!="string"?t:Ap().unescape(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function Lp(t){return Ap().escape(t.replace(/~/g,"~0").replace(/\//g,"~1"))}function Jg(t){return t.length===0?"":"/".concat(ir()(t).call(t,Lp).join("/"))}var Xg=function(r){return!r||r==="/"||r==="#"};function _c(t,r){if(Xg(r))return!0;var i=t.charAt(r.length),a=Ni()(r).call(r,-1);return t.indexOf(r)===0&&(!i||i==="/"||i==="#")&&a!=="#"}function Qg(t,r,i,a){var s,p,m=Tp.get(a);m||(m={},Tp.set(a,m));var S=Jg(i),w=Tt()(s="".concat(r||"<specmap-base>","#")).call(s,t),E=S.replace(/allOf\/\d+\/?/g,""),R=a.contextTree.get([]).baseDoc;if(r==R&&_c(E,t))return!0;var J="",oe=i.some(function(re){var le;return J=Tt()(le="".concat(J,"/")).call(le,Lp(re)),m[J]&&m[J].some(function(ve){return _c(ve,w)||_c(w,ve)})});if(oe)return!0;m[E]=Tt()(p=m[E]||[]).call(p,w)}function Zg(t,r){var i=[t];return r.path.reduce(function(s,p){return i.push(s[p]),s[p]},t),a(r.value);function a(s){return sr.isObject(s)&&(i.indexOf(s)>=0||or()(s).some(function(p){return a(s[p])}))}}var qg=o(41609),_g=o.n(qg);const ey={key:"allOf",plugin:function(r,i,a,s,p){if(!(p.meta&&p.meta.$$ref)){var m=Ni()(a).call(a,0,-1);if(!Cp(m)){if(!Array.isArray(r)){var S=new TypeError("allOf must be an array");return S.fullPath=a,S}var w=!1,E=p.value;if(m.forEach(function(oe){!E||(E=E[oe])}),E=Cr({},E),!_g()(E)){delete E.allOf;var R=[];if(R.push(s.replace(m,{})),r.forEach(function(oe,re){if(!s.isObject(oe)){if(w)return null;w=!0;var le=new TypeError("Elements in allOf must be objects");return le.fullPath=a,R.push(le)}R.push(s.mergeDeep(m,oe));var ve=Ni()(a).call(a,0,-1),pe=Vg(oe,ve,{getBaseUrlForNodePath:function(ye){var Fe;return s.getContext(Tt()(Fe=[]).call(Fe,ya(a),[re],ya(ye))).baseDoc},specmap:s});R.push.apply(R,ya(pe))}),R.push(s.mergeDeep(m,E)),!E.$$ref){var J;R.push(s.remove(Tt()(J=[]).call(J,m,"$$ref")))}return R}}}}},ty={key:"parameters",plugin:function(r,i,a,s){if(Array.isArray(r)&&r.length){var p=mi()([],r),m=Ni()(a).call(a,0,-1),S=Cr({},sr.getIn(s.spec,m));return r.forEach(function(w,E){try{p[E].default=s.parameterMacro(S,w)}catch(J){var R=new Error(J);return R.fullPath=a,R}}),sr.replace(a,p)}return sr.replace(a,r)}},ry={key:"properties",plugin:function(r,i,a,s){var p=Cr({},r);for(var m in r)try{p[m].default=s.modelPropertyMacro(p[m])}catch(E){var S=new Error(E);return S.fullPath=a,S}var w=sr.replace(a,p);return w}};var ny=function(){function t(r){Rc(this,t),this.root=ed(r||{})}return Mc(t,[{key:"set",value:function(i,a){var s=this.getParent(i,!0);if(!s){df(this.root,a,null);return}var p=i[i.length-1],m=s.children;if(m[p]){df(m[p],a,s);return}m[p]=ed(a,s)}},{key:"get",value:function(i){if(i=i||[],i.length<1)return this.root.value;for(var a=this.root,s,p,m=0;m<i.length&&(p=i[m],s=a.children,!!s[p]);m+=1)a=s[p];return a&&a.protoValue}},{key:"getParent",value:function(i,a){return!i||i.length<1?null:i.length<2?this.root:Ni()(i).call(i,0,-1).reduce(function(s,p){if(!s)return s;var m=s.children;return!m[p]&&a&&(m[p]=ed(null,s)),m[p]},this.root)}}]),t}();function ed(t,r){return df({children:{}},t,r)}function df(t,r,i){return t.value=r||{},t.protoValue=i?Cr(Cr({},i.protoValue),t.value):t.value,or()(t.children).forEach(function(a){var s=t.children[a];t.children[a]=df(s,s.value,t)}),t}var Np=100,iy=function(){function t(r){var i=this,a,s;Rc(this,t),mi()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new ny,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:mi()(Object.create(this),sr,{getInstance:function(){return i}}),allowMetaPatches:!1},r),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=Dn()(a=ir()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(a,sr.isFunction),this.patches.push(sr.add([],this.spec)),this.patches.push(sr.context([],this.context)),this.updatePatches(this.patches)}return Mc(t,[{key:"debug",value:function(i){if(this.debugLevel===i){for(var a,s=arguments.length,p=new Array(s>1?s-1:0),m=1;m<s;m++)p[m-1]=arguments[m];(a=console).log.apply(a,p)}}},{key:"verbose",value:function(i){if(this.debugLevel==="verbose"){for(var a,s,p=arguments.length,m=new Array(p>1?p-1:0),S=1;S<p;S++)m[S-1]=arguments[S];(a=console).log.apply(a,Tt()(s=["[".concat(i,"] ")]).call(s,m))}}},{key:"wrapPlugin",value:function(i,a){var s=this.pathDiscriminator,p=null,m;return i[this.pluginProp]?(p=i,m=i[this.pluginProp]):sr.isFunction(i)?m=i:sr.isObject(i)&&(m=S(i)),mi()(m.bind(p),{pluginName:i.name||a,isGenerator:sr.isGenerator(m)});function S(w){var E=function(J,oe){return Array.isArray(J)?J.every(function(re,le){return re===oe[le]}):!0};return Li().mark(function R(J,oe){var re,le,ve,pe,Se,ye;return Li().wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:ye=function($e,Be,Ve){var He,Ye,Ge,et,bt,Nt,Wt,lr,Rr,Or,Gr,wr,Ur;return Li().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(sr.isObject($e)){Xt.next=6;break}if(w.key!==Be[Be.length-1]){Xt.next=4;break}return Xt.next=4,w.plugin($e,w.key,Be,oe);case 4:Xt.next=30;break;case 6:He=Be.length-1,Ye=Be[He],Ge=Be.indexOf("properties"),et=Ye==="properties"&&He===Ge,bt=oe.allowMetaPatches&&le[$e.$$ref],Nt=0,Wt=or()($e);case 12:if(!(Nt<Wt.length)){Xt.next=30;break}if(lr=Wt[Nt],Rr=$e[lr],Or=Tt()(Be).call(Be,lr),Gr=sr.isObject(Rr),wr=$e.$$ref,bt){Xt.next=22;break}if(!Gr){Xt.next=22;break}return oe.allowMetaPatches&&wr&&(le[wr]=!0),Xt.delegateYield(ye(Rr,Or,Ve),"t0",22);case 22:if(!(!et&&lr===w.key)){Xt.next=27;break}if(Ur=E(s,Be),!(!s||Ur)){Xt.next=27;break}return Xt.next=27,w.plugin(Rr,lr,Or,oe,Ve);case 27:Nt++,Xt.next=12;break;case 30:case"end":return Xt.stop()}},re)},re=Li().mark(ye),le={},ve=ga(Dn()(J).call(J,sr.isAdditiveMutation)),Ke.prev=4,ve.s();case 6:if((pe=ve.n()).done){Ke.next=11;break}return Se=pe.value,Ke.delegateYield(ye(Se.value,Se.path,Se),"t0",9);case 9:Ke.next=6;break;case 11:Ke.next=16;break;case 13:Ke.prev=13,Ke.t1=Ke.catch(4),ve.e(Ke.t1);case 16:return Ke.prev=16,ve.f(),Ke.finish(16);case 19:case"end":return Ke.stop()}},R,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var i=this;return Jv()(this.wrappedPlugins,function(a){var s=i.getMutationsForPlugin(a);return s.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var i;return ma().race(ir()(i=this.promisedPatches).call(i,function(a){return a.value}))}}},{key:"getPluginHistory",value:function(i){var a=this.constructor.getPluginName(i);return this.pluginHistory[a]||[]}},{key:"getPluginRunCount",value:function(i){return this.getPluginHistory(i).length}},{key:"getPluginHistoryTip",value:function(i){var a=this.getPluginHistory(i),s=a&&a[a.length-1];return s||{}}},{key:"getPluginMutationIndex",value:function(i){var a=this.getPluginHistoryTip(i).mutationIndex;return typeof a!="number"?-1:a}},{key:"updatePluginHistory",value:function(i,a){var s=this.constructor.getPluginName(i);this.pluginHistory[s]=this.pluginHistory[s]||[],this.pluginHistory[s].push(a)}},{key:"updatePatches",value:function(i){var a=this;sr.normalizeArray(i).forEach(function(s){if(s instanceof Error){a.errors.push(s);return}try{if(!sr.isObject(s)){a.debug("updatePatches","Got a non-object patch",s);return}if(a.showDebug&&a.allPatches.push(s),sr.isPromise(s.value)){a.promisedPatches.push(s),a.promisedPatchThen(s);return}if(sr.isContextPatch(s)){a.setContext(s.path,s.value);return}if(sr.isMutation(s)){a.updateMutations(s);return}}catch(p){console.error(p),a.errors.push(p)}})}},{key:"updateMutations",value:function(i){vr(i.value)==="object"&&!Array.isArray(i.value)&&this.allowMetaPatches&&(i.value=Cr({},i.value));var a=sr.applyPatch(this.state,i,{allowMetaPatches:this.allowMetaPatches});a&&(this.mutations.push(i),this.state=a)}},{key:"removePromisedPatch",value:function(i){var a,s=this.promisedPatches.indexOf(i);if(s<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}Kv()(a=this.promisedPatches).call(a,s,1)}},{key:"promisedPatchThen",value:function(i){var a=this;return i.value=i.value.then(function(s){var p=Cr(Cr({},i),{},{value:s});a.removePromisedPatch(i),a.updatePatches(p)}).catch(function(s){a.removePromisedPatch(i),a.updatePatches(s)}),i.value}},{key:"getMutations",value:function(i,a){var s;return i=i||0,typeof a!="number"&&(a=this.mutations.length),Ni()(s=this.mutations).call(s,i,a)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(i){var a=this.getPluginMutationIndex(i);return this.getMutations(a+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(i){return sr.getIn(this.state,i)}},{key:"_getContext",value:function(i){return this.contextTree.get(i)}},{key:"setContext",value:function(i,a){return this.contextTree.set(i,a)}},{key:"_hasRun",value:function(i){var a=this.getPluginRunCount(this.getCurrentPlugin());return a>(i||0)}},{key:"dispatch",value:function(){var i=this,a=this,s=this.nextPlugin();if(!s){var p=this.nextPromisedPatch();if(p)return p.then(function(){return i.dispatch()}).catch(function(){return i.dispatch()});var m={spec:this.state,errors:this.errors};return this.showDebug&&(m.patches=this.allPatches),ma().resolve(m)}if(a.pluginCount=a.pluginCount||{},a.pluginCount[s]=(a.pluginCount[s]||0)+1,a.pluginCount[s]>Np){var S;return ma().resolve({spec:a.state,errors:Tt()(S=a.errors).call(S,new Error("We've reached a hard limit of ".concat(Np," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var w,E=ir()(w=this.promisedPatches).call(w,function(oe){return oe.value});return ma().all(ir()(E).call(E,function(oe){return oe.then(fp(),fp())})).then(function(){return i.dispatch()})}return R();function R(){a.currentPlugin=s;var oe=a.getCurrentMutations(),re=a.mutations.length-1;try{if(s.isGenerator){var le=ga(s(oe,a.getLib())),ve;try{for(le.s();!(ve=le.n()).done;){var pe=ve.value;J(pe)}}catch(ye){le.e(ye)}finally{le.f()}}else{var Se=s(oe,a.getLib());J(Se)}}catch(ye){console.error(ye),J([mi()(Object.create(ye),{plugin:s})])}finally{a.updatePluginHistory(s,{mutationIndex:re})}return a.dispatch()}function J(oe){oe&&(oe=sr.fullyNormalizeArray(oe),a.updatePatches(oe,s))}}}],[{key:"getPluginName",value:function(i){return i.pluginName}},{key:"getPatchesOfType",value:function(i,a){return Dn()(i).call(i,a)}}]),t}();function oy(t){return new iy(t).dispatch()}var wa={refs:$g,allOf:ey,parameters:ty,properties:ry},ay=o(13218),Dp=o.n(ay),Bp=function(r){return String.prototype.toLowerCase.call(r)},Up=function(r){return r.replace(/[^\w]/gi,"_")};function jp(t){var r=t.openapi;return r?$d()(r,"3"):!1}function Bm(t){var r=t.swagger;return r?startsWith(r,"2"):!1}function pf(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=a.v2OperationIdCompatibilityMode;if(!t||vr(t)!=="object")return null;var p=(t.operationId||"").replace(/\s/g,"");return p.length?Up(t.operationId):sy(r,i,{v2OperationIdCompatibilityMode:s})}function sy(t,r){var i,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=a.v2OperationIdCompatibilityMode;if(s){var p,m,S=Tt()(p="".concat(r.toLowerCase(),"_")).call(p,t).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return S=S||Tt()(m="".concat(t.substring(1),"_")).call(m,r),S.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return Tt()(i="".concat(Bp(r))).call(i,Up(t))}function Vp(t,r){var i;return Tt()(i="".concat(Bp(r),"-")).call(i,t)}function ly(t,r){return!t||!t.paths?null:uy(t,function(i){var a=i.pathName,s=i.method,p=i.operation;if(!p||vr(p)!=="object")return!1;var m=p.operationId,S=pf(p,a,s),w=Vp(a,s);return[S,w,m].some(function(E){return E&&E===r})})}function uy(t,r){return Hp(t,r,!0)||null}function Hp(t,r,i){if(!t||vr(t)!=="object"||!t.paths||vr(t.paths)!=="object")return null;var a=t.paths;for(var s in a)for(var p in a[s])if(p.toUpperCase()!=="PARAMETERS"){var m=a[s][p];if(!(!m||vr(m)!=="object")){var S={spec:t,pathName:s,method:p.toUpperCase(),operation:m},w=r(S);if(i&&w)return S}}}function Wp(t){var r=t.spec,i=r.paths,a={};if(!i||r.$$normalized)return t;for(var s in i){var p=i[s];if(!!Dp()(p)){var m=p.parameters,S=function(J){var oe=p[J];if(!Dp()(oe))return"continue";var re=pf(oe,s,J);if(re){a[re]?a[re].push(oe):a[re]=[oe];var le=a[re];if(le.length>1)le.forEach(function(Ye,Ge){var et;Ye.__originalOperationId=Ye.__originalOperationId||Ye.operationId,Ye.operationId=Tt()(et="".concat(re)).call(et,Ge+1)});else if(typeof oe.operationId!="undefined"){var ve=le[0];ve.__originalOperationId=ve.__originalOperationId||oe.operationId,ve.operationId=re}}if(J!=="parameters"){var pe=[],Se={};for(var ye in r)(ye==="produces"||ye==="consumes"||ye==="security")&&(Se[ye]=r[ye],pe.push(Se));if(m&&(Se.parameters=m,pe.push(Se)),pe.length){var Fe=ga(pe),Ke;try{for(Fe.s();!(Ke=Fe.n()).done;){var Ue=Ke.value;for(var $e in Ue)if(!oe[$e])oe[$e]=Ue[$e];else if($e==="parameters"){var Be=ga(Ue[$e]),Ve;try{var He=function(){var Ge=Ve.value,et=oe[$e].some(function(bt){return bt.name&&bt.name===Ge.name||bt.$ref&&bt.$ref===Ge.$ref||bt.$$ref&&bt.$$ref===Ge.$$ref||bt===Ge});et||oe[$e].push(Ge)};for(Be.s();!(Ve=Be.n()).done;)He()}catch(Ye){Be.e(Ye)}finally{Be.f()}}}}catch(Ye){Fe.e(Ye)}finally{Fe.f()}}}};for(var w in p)var E=S(w)}}return r.$$normalized=!0,t}function zp(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.requestInterceptor,a=r.responseInterceptor,s=t.withCredentials?"include":"same-origin";return function(p){return t({url:p,loadSpec:!0,requestInterceptor:i,responseInterceptor:a,headers:{Accept:Op},credentials:s}).then(function(m){return m.body})}}function fy(){wa.refs.clearCache()}function Gp(t){var r=t.fetch,i=t.spec,a=t.url,s=t.mode,p=t.allowMetaPatches,m=p===void 0?!0:p,S=t.pathDiscriminator,w=t.modelPropertyMacro,E=t.parameterMacro,R=t.requestInterceptor,J=t.responseInterceptor,oe=t.skipNormalization,re=t.useCircularStructures,le=t.http,ve=t.baseDoc;if(ve=ve||a,le=r||le||sf,!i)return zp(le,{requestInterceptor:R,responseInterceptor:J})(ve).then(pe);return pe(i);function pe(Se){ve&&(wa.refs.docCache[ve]=Se),wa.refs.fetchJSON=zp(le,{requestInterceptor:R,responseInterceptor:J});var ye=[wa.refs];return typeof E=="function"&&ye.push(wa.parameters),typeof w=="function"&&ye.push(wa.properties),s!=="strict"&&ye.push(wa.allOf),oy({spec:Se,context:{baseDoc:ve},plugins:ye,allowMetaPatches:m,pathDiscriminator:S,parameterMacro:E,modelPropertyMacro:w,useCircularStructures:re}).then(oe?function(){var Fe=Pc(Li().mark(function Ke(Ue){return Li().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return Be.abrupt("return",Ue);case 1:case"end":return Be.stop()}},Ke)}));return function(Ke){return Fe.apply(this,arguments)}}():Wp)}}var cy=o(27361),El=o.n(cy);function dy(t,r){return td.apply(this,arguments)}function td(){return td=Pc(Li().mark(function t(r,i){var a,s,p,m,S,w,E,R,J,oe,re,le,ve=arguments;return Li().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return a=ve.length>2&&ve[2]!==void 0?ve[2]:{},s=a.returnEntireTree,p=a.baseDoc,m=a.requestInterceptor,S=a.responseInterceptor,w=a.parameterMacro,E=a.modelPropertyMacro,R=a.useCircularStructures,J={pathDiscriminator:i,baseDoc:p,requestInterceptor:m,responseInterceptor:S,parameterMacro:w,modelPropertyMacro:E,useCircularStructures:R},oe=Wp({spec:r}),re=oe.spec,Se.next=6,Gp(Cr(Cr({},J),{},{spec:re,allowMetaPatches:!0,skipNormalization:!0}));case 6:return le=Se.sent,!s&&Array.isArray(i)&&i.length&&(le.spec=El()(le.spec,i)||null),Se.abrupt("return",le);case 9:case"end":return Se.stop()}},t)})),td.apply(this,arguments)}var py=function(){return null},hy=function(r){return Array.isArray(r)?r:[r]},hf={mapTagOperations:yy,makeExecute:vy};function vy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var i=r.pathName,a=r.method,s=r.operationId;return function(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.execute(Cr(Cr({spec:t.spec},kc()(t,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:i,method:a,parameters:p,operationId:s},m))}}}function Um(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=hf.makeExecute(t),i=hf.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r}),a={};for(var s in i){a[s]={operations:{}};for(var p in i[s])a[s].operations[p]={execute:i[s][p]}}return{apis:a}}function gy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=hf.makeExecute(t);return{apis:hf.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r})}}function yy(t){var r=t.spec,i=t.cb,a=i===void 0?py:i,s=t.defaultTag,p=s===void 0?"default":s,m=t.v2OperationIdCompatibilityMode,S={},w={};return Hp(r,function(E){var R=E.pathName,J=E.method,oe=E.operation,re=oe.tags?hy(oe.tags):[p];re.forEach(function(le){if(typeof le=="string"){w[le]=w[le]||{};var ve=w[le],pe=pf(oe,R,J,{v2OperationIdCompatibilityMode:m}),Se=a({spec:r,pathName:R,method:J,operation:oe,operationId:pe});if(S[pe]){var ye;S[pe]+=1,ve[Tt()(ye="".concat(pe)).call(ye,S[pe])]=Se}else if(typeof ve[pe]!="undefined"){var Fe,Ke,Ue=S[pe]||1;S[pe]=Ue+1,ve[Tt()(Fe="".concat(pe)).call(Fe,S[pe])]=Se;var $e=ve[pe];delete ve[pe],ve[Tt()(Ke="".concat(pe)).call(Ke,Ue)]=$e}else ve[pe]=Se}})}),w}var $p=o(95683);function my(t,r){if(t==null)return{};var i={},a=Vd(t),s,p;for(p=0;p<a.length;p++)s=a[p],!($p(r).call(r,s)>=0)&&(i[s]=t[s]);return i}function xy(t,r){if(t==null)return{};var i=my(t,r),a,s;if(tf){var p=tf(t);for(s=0;s<p.length;s++)a=p[s],!($p(r).call(r,a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,a)||(i[a]=t[a]))}return i}var by=o(68630),Kp=o.n(by),wy=o(1469),Sy=o.n(wy),Ay=o(76489);const Ey={body:Cy,header:Ty,query:Iy,path:Py,formData:Oy};function Cy(t){var r=t.req,i=t.value;r.body=i}function Oy(t){var r=t.req,i=t.value,a=t.parameter;(i||a.allowEmptyValue)&&(r.form=r.form||{},r.form[a.name]={value:i,allowEmptyValue:a.allowEmptyValue,collectionFormat:a.collectionFormat})}function Ty(t){var r=t.req,i=t.parameter,a=t.value;r.headers=r.headers||{},typeof a!="undefined"&&(r.headers[i.name]=a)}function Py(t){var r=t.req,i=t.value,a=t.parameter;r.url=r.url.split("{".concat(a.name,"}")).join(encodeURIComponent(i))}function Iy(t){var r=t.req,i=t.value,a=t.parameter;if(r.query=r.query||{},i===!1&&a.type==="boolean"&&(i="false"),i===0&&["number","integer"].indexOf(a.type)>-1&&(i="0"),i)r.query[a.name]={collectionFormat:a.collectionFormat,value:i};else if(a.allowEmptyValue&&i!==void 0){var s=a.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function vf(t,r){return Ic()(r).call(r,"application/json")?typeof t=="string"?t:nf()(t):t.toString()}function Fy(t){var r=t.req,i=t.value,a=t.parameter,s=a.name,p=a.style,m=a.explode,S=a.content;if(S){var w=or()(S)[0];r.url=r.url.split("{".concat(s,"}")).join(ps(vf(i,w),{escape:!0}));return}var E=Nc({key:a.name,value:i,style:p||"simple",explode:m||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(E)}function ky(t){var r=t.req,i=t.value,a=t.parameter;if(r.query=r.query||{},a.content){var s=or()(a.content)[0];r.query[a.name]=vf(i,s);return}if(i===!1&&(i="false"),i===0&&(i="0"),i)r.query[a.name]={value:i,serializationOption:kc()(a,["style","explode","allowReserved"])};else if(a.allowEmptyValue&&i!==void 0){var p=a.name;r.query[p]=r.query[p]||{},r.query[p].allowEmptyValue=!0}}var Ry=["accept","authorization","content-type"];function My(t){var r=t.req,i=t.parameter,a=t.value;if(r.headers=r.headers||{},!(Ry.indexOf(i.name.toLowerCase())>-1)){if(i.content){var s=or()(i.content)[0];r.headers[i.name]=vf(a,s);return}typeof a!="undefined"&&(r.headers[i.name]=Nc({key:i.name,value:a,style:i.style||"simple",explode:typeof i.explode=="undefined"?!1:i.explode,escape:!1}))}}function Ly(t){var r=t.req,i=t.parameter,a=t.value;r.headers=r.headers||{};var s=vr(a);if(i.content){var p,m=or()(i.content)[0];r.headers.Cookie=Tt()(p="".concat(i.name,"=")).call(p,vf(a,m));return}if(s!=="undefined"){var S=s==="object"&&!Array.isArray(a)&&i.explode?"":"".concat(i.name,"=");r.headers.Cookie=S+Nc({key:i.name,value:a,escape:!1,style:i.style||"form",explode:typeof i.explode=="undefined"?!1:i.explode})}}var Ny=o(50706),Yp=o.n(Ny);function Dy(t,r){var i=t.operation,a=t.requestBody,s=t.securities,p=t.spec,m=t.attachContentTypeForEmptyPayload,S=t.requestContentType;r=By({request:r,securities:s,operation:i,spec:p});var w=i.requestBody||{},E=or()(w.content||{}),R=S&&E.indexOf(S)>-1;if(a||m){if(S&&R)r.headers["Content-Type"]=S;else if(!S){var J=E[0];J&&(r.headers["Content-Type"]=J,S=J)}}else S&&R&&(r.headers["Content-Type"]=S);if(!t.responseContentType&&i.responses){var oe,re=Dn()(oe=Qd()(i.responses)).call(oe,function(ve){var pe=yi(ve,2),Se=pe[0],ye=pe[1],Fe=parseInt(Se,10);return Fe>=200&&Fe<300&&Kp()(ye.content)}).reduce(function(ve,pe){var Se=yi(pe,2),ye=Se[1];return Tt()(ve).call(ve,or()(ye.content))},[]);re.length>0&&(r.headers.accept=re.join(", "))}if(a)if(S){if(E.indexOf(S)>-1)if(S==="application/x-www-form-urlencoded"||S==="multipart/form-data")if(vr(a)==="object"){var le=(w.content[S]||{}).encoding||{};r.form={},or()(a).forEach(function(ve){r.form[ve]={value:a[ve],encoding:le[ve]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function By(t){var r=t.request,i=t.securities,a=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,m=t.spec,S=rf()({},r),w=a.authorized,E=w===void 0?{}:w,R=p.security||m.security||[],J=E&&!!or()(E).length,oe=El()(m,["components","securitySchemes"])||{};return S.headers=S.headers||{},S.query=S.query||{},!or()(a).length||!J||!R||Array.isArray(p.security)&&!p.security.length?r:(R.forEach(function(re){or()(re).forEach(function(le){var ve=E[le],pe=oe[le];if(!!ve){var Se=ve.value||ve,ye=pe.type;if(ve){if(ye==="apiKey")pe.in==="query"&&(S.query[pe.name]=Se),pe.in==="header"&&(S.headers[pe.name]=Se),pe.in==="cookie"&&(S.cookies[pe.name]=Se);else if(ye==="http"){if(/^basic$/i.test(pe.scheme)){var Fe,Ke=Se.username||"",Ue=Se.password||"",$e=Yp()(Tt()(Fe="".concat(Ke,":")).call(Fe,Ue));S.headers.Authorization="Basic ".concat($e)}/^bearer$/i.test(pe.scheme)&&(S.headers.Authorization="Bearer ".concat(Se))}else if(ye==="oauth2"||ye==="openIdConnect"){var Be,Ve=ve.token||{},He=pe["x-tokenName"]||"access_token",Ye=Ve[He],Ge=Ve.token_type;(!Ge||Ge.toLowerCase()==="bearer")&&(Ge="Bearer"),S.headers.Authorization=Tt()(Be="".concat(Ge," ")).call(Be,Ye)}}}})}),S)}function Uy(t,r){var i=t.spec,a=t.operation,s=t.securities,p=t.requestContentType,m=t.responseContentType,S=t.attachContentTypeForEmptyPayload;if(r=jy({request:r,securities:s,operation:a,spec:i}),r.body||r.form||S){var w,E;if(p)r.headers["Content-Type"]=p;else if(Array.isArray(a.consumes)){var R=yi(a.consumes,1);r.headers["Content-Type"]=R[0]}else if(Array.isArray(i.consumes)){var J=yi(i.consumes,1);r.headers["Content-Type"]=J[0]}else a.parameters&&Dn()(w=a.parameters).call(w,function(pe){return pe.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&Dn()(E=a.parameters).call(E,function(pe){return pe.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(p){var oe,re,le=a.parameters&&Dn()(oe=a.parameters).call(oe,function(pe){return pe.in==="body"}).length>0,ve=a.parameters&&Dn()(re=a.parameters).call(re,function(pe){return pe.in==="formData"}).length>0;(le||ve)&&(r.headers["Content-Type"]=p)}return!m&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function jy(t){var r=t.request,i=t.securities,a=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,m=t.spec,S=rf()({},r),w=a.authorized,E=w===void 0?{}:w,R=a.specSecurity,J=R===void 0?[]:R,oe=p.security||J,re=E&&!!or()(E).length,le=m.securityDefinitions;return S.headers=S.headers||{},S.query=S.query||{},!or()(a).length||!re||!oe||Array.isArray(p.security)&&!p.security.length?r:(oe.forEach(function(ve){or()(ve).forEach(function(pe){var Se=E[pe];if(!!Se){var ye=Se.token,Fe=Se.value||Se,Ke=le[pe],Ue=Ke.type,$e=Ke["x-tokenName"]||"access_token",Be=ye&&ye[$e],Ve=ye&&ye.token_type;if(Se){if(Ue==="apiKey"){var He=Ke.in==="query"?"query":"headers";S[He]=S[He]||{},S[He][Ke.name]=Fe}else if(Ue==="basic")if(Fe.header)S.headers.authorization=Fe.header;else{var Ye,Ge=Fe.username||"",et=Fe.password||"";Fe.base64=Yp()(Tt()(Ye="".concat(Ge,":")).call(Ye,et)),S.headers.authorization="Basic ".concat(Fe.base64)}else if(Ue==="oauth2"&&Be){var bt;Ve=!Ve||Ve.toLowerCase()==="bearer"?"Bearer":Ve,S.headers.authorization=Tt()(bt="".concat(Ve," ")).call(bt,Be)}}}})}),S)}var Jp=function(r){return Array.isArray(r)?r:[]},Vy=Ep("OperationNotFoundError",function(r,i,a){this.originalError=a,mi()(this,i||{})}),Hy=function(r,i){return Dn()(i).call(i,function(a){return a.name===r})},Wy=function(r){var i={};r.forEach(function(s){i[s.in]||(i[s.in]={}),i[s.in][s.name]=s});var a=[];return or()(i).forEach(function(s){or()(i[s]).forEach(function(p){a.push(i[s][p])})}),a},zy={buildRequest:Xp};function Gy(t){var r=t.http,i=t.fetch,a=t.spec,s=t.operationId,p=t.pathName,m=t.method,S=t.parameters,w=t.securities,E=xy(t,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),R=r||i||sf;p&&m&&!s&&(s=Vp(p,m));var J=zy.buildRequest(Cr({spec:a,operationId:s,parameters:S,securities:w,http:R},E));return J.body&&(Kp()(J.body)||Sy()(J.body))&&(J.body=nf()(J.body)),R(J)}function Xp(t){var r,i,a=t.spec,s=t.operationId,p=t.responseContentType,m=t.scheme,S=t.requestInterceptor,w=t.responseInterceptor,E=t.contextUrl,R=t.userFetch,J=t.server,oe=t.serverVariables,re=t.http,le=t.parameters,ve=t.parameterBuilders,pe=jp(a);ve||(pe?ve=x:ve=Ey);var Se=re&&re.withCredentials?"include":"same-origin",ye={url:"",credentials:Se,headers:{},cookies:{}};S&&(ye.requestInterceptor=S),w&&(ye.responseInterceptor=w),R&&(ye.userFetch=R);var Fe=ly(a,s);if(!Fe)throw new Vy("Operation ".concat(s," not found"));var Ke=Fe.operation,Ue=Ke===void 0?{}:Ke,$e=Fe.method,Be=Fe.pathName;if(ye.url+=Qp({spec:a,scheme:m,contextUrl:E,server:J,serverVariables:oe,pathName:Be,method:$e}),!s)return delete ye.cookies,ye;ye.url+=Be,ye.method="".concat($e).toUpperCase(),le=le||{};var Ve=a.paths[Be]||{};p&&(ye.headers.accept=p);var He=Wy(Tt()(r=Tt()(i=[]).call(i,Jp(Ue.parameters))).call(r,Jp(Ve.parameters)));He.forEach(function(et){var bt=ve[et.in],Nt;if(et.in==="body"&&et.schema&&et.schema.properties&&(Nt=le),Nt=et&&et.name&&le[et.name],typeof Nt=="undefined"){var Wt;Nt=et&&et.name&&le[Tt()(Wt="".concat(et.in,".")).call(Wt,et.name)]}else if(Hy(et.name,He).length>1){var lr;console.warn(Tt()(lr="Parameter '".concat(et.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(lr,et.name,"' and the passed-in parameter values did not define an 'in' value."))}if(Nt!==null){if(typeof et.default!="undefined"&&typeof Nt=="undefined"&&(Nt=et.default),typeof Nt=="undefined"&&et.required&&!et.allowEmptyValue)throw new Error("Required parameter ".concat(et.name," is not provided"));if(pe&&et.schema&&et.schema.type==="object"&&typeof Nt=="string")try{Nt=JSON.parse(Nt)}catch(Rr){throw new Error("Could not parse object parameter value string as JSON")}bt&&bt({req:ye,parameter:et,value:Nt,operation:Ue,spec:a})}});var Ye=Cr(Cr({},t),{},{operation:Ue});if(pe?ye=Dy(Ye,ye):ye=Uy(Ye,ye),ye.cookies&&or()(ye.cookies).length){var Ge=or()(ye.cookies).reduce(function(et,bt){var Nt=ye.cookies[bt],Wt=et?"&":"",lr=Ay.serialize(bt,Nt);return et+Wt+lr},"");ye.headers.Cookie=Ge}return ye.cookies&&delete ye.cookies,up(ye),ye}var rd=function(r){return r?r.replace(/\W/g,""):null};function Qp(t){var r=jp(t.spec);return r?$y(t):Jy(t)}function $y(t){var r=t.spec,i=t.pathName,a=t.method,s=t.server,p=t.contextUrl,m=t.serverVariables,S=m===void 0?{}:m,w=El()(r,["paths",i,(a||"").toLowerCase(),"servers"])||El()(r,["paths",i,"servers"])||El()(r,["servers"]),E="",R=null;if(s&&w&&w.length){var J=ir()(w).call(w,function(le){return le.url});J.indexOf(s)>-1&&(E=s,R=w[J.indexOf(s)])}if(!E&&w&&w.length){E=w[0].url;var oe=yi(w,1);R=oe[0]}if(E.indexOf("{")>-1){var re=Yy(E);re.forEach(function(le){if(R.variables&&R.variables[le]){var ve=R.variables[le],pe=S[le]||ve.default,Se=new RegExp("{".concat(le,"}"),"g");E=E.replace(Se,pe)}})}return Ky(E,p)}function Ky(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t&&r?Uo.parse(Uo.resolve(r,t)):Uo.parse(t),a=Uo.parse(r),s=rd(i.protocol)||rd(a.protocol)||"",p=i.host||a.host,m=i.pathname||"",S;if(s&&p){var w;S=Tt()(w="".concat(s,"://")).call(w,p+m)}else S=m;return S[S.length-1]==="/"?Ni()(S).call(S,0,-1):S}function Yy(t){for(var r=[],i=/{([^}]+)}/g,a;a=i.exec(t);)r.push(a[1]);return r}function Jy(t){var r=t.spec,i=t.scheme,a=t.contextUrl,s=a===void 0?"":a,p=Uo.parse(s),m=Array.isArray(r.schemes)?r.schemes[0]:null,S=i||m||rd(p.protocol)||"http",w=r.host||p.host||"",E=r.basePath||"",R;if(S&&w){var J;R=Tt()(J="".concat(S,"://")).call(J,w+E)}else R=E;return R[R.length-1]==="/"?Ni()(R).call(R,0,-1):R}Br.http=sf,Br.makeHttp=Wv.bind(null,Br.http),Br.resolve=Gp,Br.resolveSubtree=dy,Br.execute=Gy,Br.serializeRes=np,Br.serializeHeaders=ip,Br.clearCache=fy,Br.makeApisTagOperation=gy,Br.buildRequest=Xp,Br.helpers={opId:pf},Br.getBaseUrl=Qp;function Br(t){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof t=="string"?i.url=t:i=t,!(this instanceof Br))return new Br(i);rf()(this,i);var a=this.resolve().then(function(){return r.disableInterfaces||rf()(r,Br.makeApisTagOperation(r)),r});return a.client=this,a}Br.prototype={http:sf,execute:function(r){return this.applyDefaults(),Br.execute(Cr({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:typeof this.url=="string"?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},r))},resolve:function(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Br.resolve(Cr({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},i)).then(function(a){return r.originalSpec=r.spec,r.spec=a.spec,r.errors=a.errors,r})}},Br.prototype.applyDefaults=function(){var r=this.spec,i=this.url;if(i&&$d()(i,"http")){var a=Uo.parse(i);r.host||(r.host=a.host),r.schemes||(r.schemes=[a.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var jm=Br.helpers;const Xy=Br;var Qy=o(71057),Zy=o(72940),Zp=Object.defineProperty,qy=Object.defineProperties,_y=Object.getOwnPropertyDescriptor,em=Object.getOwnPropertyDescriptors,qp=Object.getOwnPropertySymbols,tm=Object.prototype.hasOwnProperty,rm=Object.prototype.propertyIsEnumerable,nd=(t,r,i)=>r in t?Zp(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,On=(t,r)=>{for(var i in r||(r={}))tm.call(r,i)&&nd(t,i,r[i]);if(qp)for(var i of qp(r))rm.call(r,i)&&nd(t,i,r[i]);return t},Vo=(t,r)=>qy(t,em(r)),nm=(t,r,i,a)=>{for(var s=a>1?void 0:a?_y(r,i):r,p=t.length-1,m;p>=0;p--)(m=t[p])&&(s=(a?m(r,i,s):m(s))||s);return a&&s&&Zp(r,i,s),s},gs=(t,r,i)=>(nd(t,typeof r!="symbol"?r+"":r,i),i),_p=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});function eh(t){return t.startsWith("//")?"https:"+t:t}const im={flex:1,display:"flex",flexDirection:"column"};let id=class extends d.Component{constructor(t){super(t);gs(this,"formApi",null),gs(this,"setFormApi",r=>{this.formApi=r,setTimeout(()=>{this.setState({form:this.formApi.getState()})},0)}),gs(this,"handleChange",r=>{this.setState({form:r}),(0,nn.Hc)(r)}),gs(this,"handleTabChange",r=>{this.setState({activeTab:r})}),gs(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),gs(this,"handleExecute",()=>_p(this,null,function*(){var r,i,a,s,p,m,S;const{store:w,operation:E,onResponse:R}=this.props;this.formApi.submitForm();const{values:J,invalid:oe}=this.formApi.getState();if(oe){this.setState({shaking:!0}),setTimeout(()=>this.setState({shaking:!1}),1e3),(i=(r=w==null?void 0:w.options.events)==null?void 0:r.tryItSent)==null||i.call(r,{eventType:jd.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:E.operationId,operationPath:E.path,operationHttpVerb:E.httpVerb,operationSummary:E.description});return}const re=this.props.operation.requestBody,le=re&&re.content&&re.content.active&&re.content.active.name||"";let ve=J.body;if(/json/.test(le))try{ve=JSON.parse(ve)}catch(Ge){console.error(Ge)}this.setState({loading:!0});const pe=this.state.resolvedRawSpec,Se=(0,zt.U2)(pe,["paths",E.path,(E.httpVerb||"").toLowerCase(),"servers"])||(0,zt.U2)(pe,["paths",E.path,"servers"])||(0,zt.U2)(pe,["servers"]);if(!Se)throw console.error("Servers are not specified in your OpenAPI file. You can't use Try It Out console without specifying servers. If you use OpenAPI 2, make sure you configured host and basepath"),new Error("Servers are not specified");const ye=Se.find(Ge=>this.state.server.url.endsWith(Ge.url.endsWith("/")?Ge.url.substring(0,Ge.url.length-1):Ge.url)),Fe=Date.now(),Ke=!!window.document.documentMode;let Ue,$e=J.auth;if(J.auth){const Ge=Object.keys(J.auth)[0],et=(0,zt.dw)(Ge);Ue=Vo(On({},pe),{components:Vo(On({},pe.components),{securitySchemes:Vo(On({},pe.components.securitySchemes),{[et]:Vo(On({},pe.components.securitySchemes[et]),{type:pe.components.securitySchemes[et].type==="openIdConnect"?"oauth2":pe.components.securitySchemes[et].type})})})}),$e=Vo(On({},$e),{[et]:$e[Ge]})}else Ue=On({},pe);const Be=w.options.corsProxyUrl;Be&&pe.servers&&pe.servers.length&&(Ue.servers=pe.servers.map(Ge=>Vo(On({},Ge),{url:Be+eh(Ge.url)})));const Ve=((s=(a=re==null?void 0:re.content)==null?void 0:a.active)==null?void 0:s.name)||null;if(Ve&&ve&&os(Ve)){const Ge=Object.values(ve);ve=Ge.length>1?Ge:Ge[0]}const He=(Ge,et)=>bt=>(this.props.store.options.sendXUserAgentInTryIt&&(bt.headers["X-User-Agent"]="Redocly Try it API console"),Ge?Ge(bt,et):bt),Ye={userFetch:Ke&&o(54098).fetch,server:Be?Be+eh(ye.url):ye.url,serverVariables:this.state.server.variables,spec:Ue,pathName:E.path,method:E.httpVerb,parameters:On(On(On(On({},J.path),J.query),J.header),J.cookie),securities:{authorized:$e},requestBody:ve,requestContentType:Ve,responseContentType:((p=J.header)==null?void 0:p.Accept)||null,requestInterceptor:He(w.options.requestInterceptor,E)};try{const Ge=yield Xy.execute(Ye);Ge&&Ge.data instanceof Blob&&(Ge.data=yield Ge.data.text()),R==null||R({request:Ye,response:Ge}),this.setState({response:Ge,error:void 0})}catch(Ge){Ge&&Ge.response&&Ge.response.data instanceof Blob&&(Ge.response.data=yield Ge.response.data.text(),R==null||R({request:Ye,response:Ge.response})),this.setState({response:void 0,error:Ge})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-Fe}),(S=(m=w==null?void 0:w.options.events)==null?void 0:m.tryItSent)==null||S.call(m,{eventType:jd.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:E.operationId,operationPath:E.path,operationHttpVerb:E.httpVerb,operationSummary:E.description})}})),this.state={form:{values:{path:(0,nn.ZS)(t.operation.parameters,"path"),cookie:(0,nn.ZS)(t.operation.parameters,"cookie"),header:(0,nn.ZS)(t.operation.parameters,"header"),query:(0,nn.ZS)(t.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return _p(this,null,function*(){const{store:t,specIdx:r,operation:i}=this.props,a=yield t.dereferenceSpecForTryIt(r||0,i);this.setState({resolvedRawSpec:a}),this.formApi.setValues({})})}componentDidUpdate(t){t.operation!==this.props.operation&&this.setState({response:void 0,error:void 0,activeTab:0})}render(){const{operation:t,className:r,rootElement:i}=this.props,{shaking:a,activeTab:s,form:p,response:m,loading:S,error:w}=this.state,E=!!(m||w);return d.createElement(am,{shaking:a,className:r,rootElement:i},d.createElement(Qn.k1,null,d.createElement(n,{active:s,hasResponse:E,onChange:this.handleTabChange}),this.props.onClose&&d.createElement(Vi.PZ,{onClick:this.props.onClose}," \u2715 ")),d.createElement(Vi.RE,{hidden:s!==0},this.renderRequest()),d.createElement(Vi.RE,{hidden:s!==1},this.renderResponse()),d.createElement(ks,{hasResponse:E,params:p.values&&On({},p.values),operation:t,loading:S,execute:this.handleExecute}))}renderRequest(){var t;const{operation:r,store:i,properties:a,securityDefaults:s}=this.props,{form:p,resolvedRawSpec:m,server:S}=this.state,w=p.errors||{},E=w.path||w.cookie||w.header||w.query,R=m&&jt.JsonPointer.get(m,r.pointer);let J=p.values&&p.values.auth&&Object.keys(p.values.auth)[0];(!J||!p.values.auth[J])&&(J=void 0),J&&(p.values.auth[J].token!==void 0||p.values.auth[J].client_id!==void 0||p.values.auth[J].client_secret!==void 0)&&(!p.values.auth[J].token||!p.values.auth[J].token.access_token)&&(J=void 0),J&&p.values.auth[J].username!=null&&(!p.values.auth[J].username||!p.values.auth[J].password)&&(J=void 0);const oe=r.parameters||[],re=(t=i==null?void 0:i.options.hooks)==null?void 0:t.ReplaceTryItSecurityPanel;return!m&&"Loading..."||d.createElement(d.Fragment,null,d.createElement(Ll,{onChange:this.handleChange,getApi:this.setFormApi,style:Vo(On({},im),{margin:0})},d.createElement(Qn.UQ,{initialActiveIdx:r.security.length&&J?1:0},r.security.length&&d.createElement(od,{header:(0,ml.l)("tryItAuth"),"data-cy":"security-trigger",renderChildrenHidden:!0,error:!J&&!!w.auth,success:!!J},re?d.createElement(sm,{field:"auth",validate:cs},le=>d.createElement(Qy.Q,{Hook:re,props:{server:S,operation:r,onChange:le,OAuth2:cr}})):d.createElement(Hh,{formApi:this.formApi,form:p,operation:r,activeServer:S.url,authCorsProxyUrl:i.options.authCorsProxyUrl,securityDefaults:s}))||null,r.requestBody&&d.createElement(od,{header:(0,ml.l)("tryItBody"),"data-cy":"body-trigger",renderChildrenHidden:!0,error:!!w.body},d.createElement(yc,{validate:om,console:this,body:r.requestBody,id:r.id,resolvedBody:R.requestBody,properties:a}))||null,oe.length&&d.createElement(od,{header:(0,ml.l)("tryItParameters"),"data-cy":"parameters-trigger",error:E,renderChildrenHidden:!0},d.createElement(Ma,{operation:r,values:p.values,errors:p.errors||{}}))||null)),d.createElement(Ra,{operation:r,onChange:this.handleServerChange}))}renderResponse(){const{response:t,error:r,time:i}=this.state;return d.createElement(Uf,{response:t,error:r,time:i})}};id=nm([Ia.Pi],id);function om(){}function am(t){const{shaking:r,className:i,children:a,rootElement:s}=t,[p]=(0,zt.Bs)(s);return d.createElement(Vi.q2,{shaking:r,className:i,"data-cy":"console",fullWidth:p==null?void 0:p.width},a)}function sm(t){const{fieldApi:r,render:i,userProps:a}=Kn(On({},t)),{setValue:s}=r,{children:p}=a;return i(d.createElement(d.Fragment,null,p(s)))}function od(t){const r=({toggle:i,expanded:a})=>d.createElement(Qn.h4,{onClick:i,isExpanded:a,"data-cy":t["data-cy"]},d.createElement(Qn.xz,null,d.createElement(Qn.Dx,null,t.header),d.createElement(jt.ShelfIcon,{direction:a?"down":"right"})),t.error&&d.createElement(jt.CrossIcon,{size:"14px",color:"#ff908b"})||null,t.success&&d.createElement(jt.LockIcon,{size:"14px",color:"#56ff26"})||null);return d.createElement(lm,Vo(On({},t),{header:r}))}const lm=(0,Ir.ZP)(Qn.s_)`
|
|
458
458
|
${Qn.h4} {
|
|
459
459
|
color: white;
|
|
460
460
|
border: 1px solid ${({error:t})=>t?"#ff908b":"#89949f"};
|
package/dist/oauth2-redirect.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Redocly Reference Docs
|
|
3
3
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: "2.
|
|
5
|
+
* Version: "2.9.0"
|
|
6
6
|
*/(function(Ee,fe){typeof exports=="object"&&typeof module=="object"?module.exports=fe():typeof define=="function"&&define.amd?define([],fe):typeof exports=="object"?exports.RedoclyReferenceDocs=fe():Ee.RedoclyReferenceDocs=fe()})(this,function(){return(()=>{var Ke={13099:a=>{a.exports=function(v){if(typeof v!="function")throw TypeError(String(v)+" is not a function");return v}},96077:(a,v,e)=>{var t=e(70111);a.exports=function(n){if(!t(n)&&n!==null)throw TypeError("Can't set "+String(n)+" as a prototype");return n}},51223:(a,v,e)=>{var t=e(5112),n=e(70030),o=e(3070),s=t("unscopables"),i=Array.prototype;i[s]==null&&o.f(i,s,{configurable:!0,value:n(null)}),a.exports=function(h){i[s][h]=!0}},25787:a=>{a.exports=function(v,e,t){if(!(v instanceof e))throw TypeError("Incorrect "+(t?t+" ":"")+"invocation");return v}},19670:(a,v,e)=>{var t=e(70111);a.exports=function(n){if(!t(n))throw TypeError(String(n)+" is not an object");return n}},48457:(a,v,e)=>{"use strict";var t=e(49974),n=e(47908),o=e(53411),s=e(97659),i=e(17466),h=e(86135),l=e(71246);a.exports=function(S){var c=n(S),m=typeof this=="function"?this:Array,O=arguments.length,U=O>1?arguments[1]:void 0,N=U!==void 0,B=l(c),w=0,D,I,b,R,x,T;if(N&&(U=t(U,O>2?arguments[2]:void 0,2)),B!=null&&!(m==Array&&s(B)))for(R=B.call(c),x=R.next,I=new m;!(b=x.call(R)).done;w++)T=N?o(R,U,[b.value,w],!0):b.value,h(I,w,T);else for(D=i(c.length),I=new m(D);D>w;w++)T=N?U(c[w],w):c[w],h(I,w,T);return I.length=w,I}},41318:(a,v,e)=>{var t=e(45656),n=e(17466),o=e(51400),s=function(i){return function(h,l,p){var S=t(h),c=n(S.length),m=o(p,c),O;if(i&&l!=l){for(;c>m;)if(O=S[m++],O!=O)return!0}else for(;c>m;m++)if((i||m in S)&&S[m]===l)return i||m||0;return!i&&-1}};a.exports={includes:s(!0),indexOf:s(!1)}},53411:(a,v,e)=>{var t=e(19670),n=e(99212);a.exports=function(o,s,i,h){try{return h?s(t(i)[0],i[1]):s(i)}catch(l){throw n(o),l}}},84326:a=>{var v={}.toString;a.exports=function(e){return v.call(e).slice(8,-1)}},70648:(a,v,e)=>{var t=e(51694),n=e(84326),o=e(5112),s=o("toStringTag"),i=n(function(){return arguments}())=="Arguments",h=function(l,p){try{return l[p]}catch(S){}};a.exports=t?n:function(l){var p,S,c;return l===void 0?"Undefined":l===null?"Null":typeof(S=h(p=Object(l),s))=="string"?S:i?n(p):(c=n(p))=="Object"&&typeof p.callee=="function"?"Arguments":c}},99920:(a,v,e)=>{var t=e(86656),n=e(53887),o=e(31236),s=e(3070);a.exports=function(i,h){for(var l=n(h),p=s.f,S=o.f,c=0;c<l.length;c++){var m=l[c];t(i,m)||p(i,m,S(h,m))}}},49920:(a,v,e)=>{var t=e(47293);a.exports=!t(function(){function n(){}return n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype})},24994:(a,v,e)=>{"use strict";var t=e(13383).IteratorPrototype,n=e(70030),o=e(79114),s=e(58003),i=e(97497),h=function(){return this};a.exports=function(l,p,S){var c=p+" Iterator";return l.prototype=n(t,{next:o(1,S)}),s(l,c,!1,!0),i[c]=h,l}},68880:(a,v,e)=>{var t=e(19781),n=e(3070),o=e(79114);a.exports=t?function(s,i,h){return n.f(s,i,o(1,h))}:function(s,i,h){return s[i]=h,s}},79114:a=>{a.exports=function(v,e){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:e}}},86135:(a,v,e)=>{"use strict";var t=e(57593),n=e(3070),o=e(79114);a.exports=function(s,i,h){var l=t(i);l in s?n.f(s,l,o(0,h)):s[l]=h}},70654:(a,v,e)=>{"use strict";var t=e(82109),n=e(24994),o=e(79518),s=e(27674),i=e(58003),h=e(68880),l=e(31320),p=e(5112),S=e(31913),c=e(97497),m=e(13383),O=m.IteratorPrototype,U=m.BUGGY_SAFARI_ITERATORS,N=p("iterator"),B="keys",w="values",D="entries",I=function(){return this};a.exports=function(b,R,x,T,G,W,K){n(x,R,T);var V=function(te){if(te===G&&Q)return Q;if(!U&&te in $)return $[te];switch(te){case B:return function(){return new x(this,te)};case w:return function(){return new x(this,te)};case D:return function(){return new x(this,te)}}return function(){return new x(this)}},ne=R+" Iterator",re=!1,$=b.prototype,k=$[N]||$["@@iterator"]||G&&$[G],Q=!U&&k||V(G),ae=R=="Array"&&$.entries||k,q,oe,de;if(ae&&(q=o(ae.call(new b)),O!==Object.prototype&&q.next&&(!S&&o(q)!==O&&(s?s(q,O):typeof q[N]!="function"&&h(q,N,I)),i(q,ne,!0,!0),S&&(c[ne]=I))),G==w&&k&&k.name!==w&&(re=!0,Q=function(){return k.call(this)}),(!S||K)&&$[N]!==Q&&h($,N,Q),c[R]=Q,G)if(oe={values:V(w),keys:W?Q:V(B),entries:V(D)},K)for(de in oe)(U||re||!(de in $))&&l($,de,oe[de]);else t({target:R,proto:!0,forced:U||re},oe);return oe}},19781:(a,v,e)=>{var t=e(47293);a.exports=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},80317:(a,v,e)=>{var t=e(17854),n=e(70111),o=t.document,s=n(o)&&n(o.createElement);a.exports=function(i){return s?o.createElement(i):{}}},88113:(a,v,e)=>{var t=e(35005);a.exports=t("navigator","userAgent")||""},7392:(a,v,e)=>{var t=e(17854),n=e(88113),o=t.process,s=o&&o.versions,i=s&&s.v8,h,l;i?(h=i.split("."),l=h[0]<4?1:h[0]+h[1]):n&&(h=n.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=n.match(/Chrome\/(\d+)/),h&&(l=h[1]))),a.exports=l&&+l},80748:a=>{a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},82109:(a,v,e)=>{var t=e(17854),n=e(31236).f,o=e(68880),s=e(31320),i=e(83505),h=e(99920),l=e(54705);a.exports=function(p,S){var c=p.target,m=p.global,O=p.stat,U,N,B,w,D,I;if(m?N=t:O?N=t[c]||i(c,{}):N=(t[c]||{}).prototype,N)for(B in S){if(D=S[B],p.noTargetGet?(I=n(N,B),w=I&&I.value):w=N[B],U=l(m?B:c+(O?".":"#")+B,p.forced),!U&&w!==void 0){if(typeof D==typeof w)continue;h(D,w)}(p.sham||w&&w.sham)&&o(D,"sham",!0),s(N,B,D,p)}}},47293:a=>{a.exports=function(v){try{return!!v()}catch(e){return!0}}},49974:(a,v,e)=>{var t=e(13099);a.exports=function(n,o,s){if(t(n),o===void 0)return n;switch(s){case 0:return function(){return n.call(o)};case 1:return function(i){return n.call(o,i)};case 2:return function(i,h){return n.call(o,i,h)};case 3:return function(i,h,l){return n.call(o,i,h,l)}}return function(){return n.apply(o,arguments)}}},35005:(a,v,e)=>{var t=e(40857),n=e(17854),o=function(s){return typeof s=="function"?s:void 0};a.exports=function(s,i){return arguments.length<2?o(t[s])||o(n[s]):t[s]&&t[s][i]||n[s]&&n[s][i]}},71246:(a,v,e)=>{var t=e(70648),n=e(97497),o=e(5112),s=o("iterator");a.exports=function(i){if(i!=null)return i[s]||i["@@iterator"]||n[t(i)]}},18554:(a,v,e)=>{var t=e(19670),n=e(71246);a.exports=function(o){var s=n(o);if(typeof s!="function")throw TypeError(String(o)+" is not iterable");return t(s.call(o))}},17854:(a,v,e)=>{var t=function(n){return n&&n.Math==Math&&n};a.exports=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof e.g=="object"&&e.g)||function(){return this}()||Function("return this")()},86656:(a,v,e)=>{var t=e(47908),n={}.hasOwnProperty;a.exports=Object.hasOwn||function(s,i){return n.call(t(s),i)}},3501:a=>{a.exports={}},60490:(a,v,e)=>{var t=e(35005);a.exports=t("document","documentElement")},64664:(a,v,e)=>{var t=e(19781),n=e(47293),o=e(80317);a.exports=!t&&!n(function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!=7})},68361:(a,v,e)=>{var t=e(47293),n=e(84326),o="".split;a.exports=t(function(){return!Object("z").propertyIsEnumerable(0)})?function(s){return n(s)=="String"?o.call(s,""):Object(s)}:Object},42788:(a,v,e)=>{var t=e(5465),n=Function.toString;typeof t.inspectSource!="function"&&(t.inspectSource=function(o){return n.call(o)}),a.exports=t.inspectSource},29909:(a,v,e)=>{var t=e(68536),n=e(17854),o=e(70111),s=e(68880),i=e(86656),h=e(5465),l=e(6200),p=e(3501),S="Object already initialized",c=n.WeakMap,m,O,U,N=function(x){return U(x)?O(x):m(x,{})},B=function(x){return function(T){var G;if(!o(T)||(G=O(T)).type!==x)throw TypeError("Incompatible receiver, "+x+" required");return G}};if(t||h.state){var w=h.state||(h.state=new c),D=w.get,I=w.has,b=w.set;m=function(x,T){if(I.call(w,x))throw new TypeError(S);return T.facade=x,b.call(w,x,T),T},O=function(x){return D.call(w,x)||{}},U=function(x){return I.call(w,x)}}else{var R=l("state");p[R]=!0,m=function(x,T){if(i(x,R))throw new TypeError(S);return T.facade=x,s(x,R,T),T},O=function(x){return i(x,R)?x[R]:{}},U=function(x){return i(x,R)}}a.exports={set:m,get:O,has:U,enforce:N,getterFor:B}},97659:(a,v,e)=>{var t=e(5112),n=e(97497),o=t("iterator"),s=Array.prototype;a.exports=function(i){return i!==void 0&&(n.Array===i||s[o]===i)}},54705:(a,v,e)=>{var t=e(47293),n=/#|\.prototype\./,o=function(p,S){var c=i[s(p)];return c==l?!0:c==h?!1:typeof S=="function"?t(S):!!S},s=o.normalize=function(p){return String(p).replace(n,".").toLowerCase()},i=o.data={},h=o.NATIVE="N",l=o.POLYFILL="P";a.exports=o},70111:a=>{a.exports=function(v){return typeof v=="object"?v!==null:typeof v=="function"}},31913:a=>{a.exports=!1},99212:(a,v,e)=>{var t=e(19670);a.exports=function(n){var o=n.return;if(o!==void 0)return t(o.call(n)).value}},13383:(a,v,e)=>{"use strict";var t=e(47293),n=e(79518),o=e(68880),s=e(86656),i=e(5112),h=e(31913),l=i("iterator"),p=!1,S=function(){return this},c,m,O;[].keys&&(O=[].keys(),"next"in O?(m=n(n(O)),m!==Object.prototype&&(c=m)):p=!0);var U=c==null||t(function(){var N={};return c[l].call(N)!==N});U&&(c={}),(!h||U)&&!s(c,l)&&o(c,l,S),a.exports={IteratorPrototype:c,BUGGY_SAFARI_ITERATORS:p}},97497:a=>{a.exports={}},30133:(a,v,e)=>{var t=e(7392),n=e(47293);a.exports=!!Object.getOwnPropertySymbols&&!n(function(){var o=Symbol();return!String(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&t&&t<41})},590:(a,v,e)=>{var t=e(47293),n=e(5112),o=e(31913),s=n("iterator");a.exports=!t(function(){var i=new URL("b?a=1&b=2&c=3","http://a"),h=i.searchParams,l="";return i.pathname="c%20d",h.forEach(function(p,S){h.delete("b"),l+=S+p}),o&&!i.toJSON||!h.sort||i.href!=="http://a/c%20d?a=1&c=3"||h.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!h[s]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||l!=="a1c3"||new URL("http://x",void 0).host!=="x"})},68536:(a,v,e)=>{var t=e(17854),n=e(42788),o=t.WeakMap;a.exports=typeof o=="function"&&/native code/.test(n(o))},21574:(a,v,e)=>{"use strict";var t=e(19781),n=e(47293),o=e(81956),s=e(25181),i=e(55296),h=e(47908),l=e(68361),p=Object.assign,S=Object.defineProperty;a.exports=!p||n(function(){if(t&&p({b:1},p(S({},"a",{enumerable:!0,get:function(){S(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var c={},m={},O=Symbol(),U="abcdefghijklmnopqrst";return c[O]=7,U.split("").forEach(function(N){m[N]=N}),p({},c)[O]!=7||o(p({},m)).join("")!=U})?function(m,O){for(var U=h(m),N=arguments.length,B=1,w=s.f,D=i.f;N>B;)for(var I=l(arguments[B++]),b=w?o(I).concat(w(I)):o(I),R=b.length,x=0,T;R>x;)T=b[x++],(!t||D.call(I,T))&&(U[T]=I[T]);return U}:p},70030:(a,v,e)=>{var t=e(19670),n=e(36048),o=e(80748),s=e(3501),i=e(60490),h=e(80317),l=e(6200),p=">",S="<",c="prototype",m="script",O=l("IE_PROTO"),U=function(){},N=function(b){return S+m+p+b+S+"/"+m+p},B=function(b){b.write(N("")),b.close();var R=b.parentWindow.Object;return b=null,R},w=function(){var b=h("iframe"),R="java"+m+":",x;return b.style.display="none",i.appendChild(b),b.src=String(R),x=b.contentWindow.document,x.open(),x.write(N("document.F=Object")),x.close(),x.F},D,I=function(){try{D=document.domain&&new ActiveXObject("htmlfile")}catch(R){}I=D?B(D):w();for(var b=o.length;b--;)delete I[c][o[b]];return I()};s[O]=!0,a.exports=Object.create||function(R,x){var T;return R!==null?(U[c]=t(R),T=new U,U[c]=null,T[O]=R):T=I(),x===void 0?T:n(T,x)}},36048:(a,v,e)=>{var t=e(19781),n=e(3070),o=e(19670),s=e(81956);a.exports=t?Object.defineProperties:function(h,l){o(h);for(var p=s(l),S=p.length,c=0,m;S>c;)n.f(h,m=p[c++],l[m]);return h}},3070:(a,v,e)=>{var t=e(19781),n=e(64664),o=e(19670),s=e(57593),i=Object.defineProperty;v.f=t?i:function(l,p,S){if(o(l),p=s(p,!0),o(S),n)try{return i(l,p,S)}catch(c){}if("get"in S||"set"in S)throw TypeError("Accessors not supported");return"value"in S&&(l[p]=S.value),l}},31236:(a,v,e)=>{var t=e(19781),n=e(55296),o=e(79114),s=e(45656),i=e(57593),h=e(86656),l=e(64664),p=Object.getOwnPropertyDescriptor;v.f=t?p:function(c,m){if(c=s(c),m=i(m,!0),l)try{return p(c,m)}catch(O){}if(h(c,m))return o(!n.f.call(c,m),c[m])}},8006:(a,v,e)=>{var t=e(16324),n=e(80748),o=n.concat("length","prototype");v.f=Object.getOwnPropertyNames||function(i){return t(i,o)}},25181:(a,v)=>{v.f=Object.getOwnPropertySymbols},79518:(a,v,e)=>{var t=e(86656),n=e(47908),o=e(6200),s=e(49920),i=o("IE_PROTO"),h=Object.prototype;a.exports=s?Object.getPrototypeOf:function(l){return l=n(l),t(l,i)?l[i]:typeof l.constructor=="function"&&l instanceof l.constructor?l.constructor.prototype:l instanceof Object?h:null}},16324:(a,v,e)=>{var t=e(86656),n=e(45656),o=e(41318).indexOf,s=e(3501);a.exports=function(i,h){var l=n(i),p=0,S=[],c;for(c in l)!t(s,c)&&t(l,c)&&S.push(c);for(;h.length>p;)t(l,c=h[p++])&&(~o(S,c)||S.push(c));return S}},81956:(a,v,e)=>{var t=e(16324),n=e(80748);a.exports=Object.keys||function(s){return t(s,n)}},55296:(a,v)=>{"use strict";var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);v.f=n?function(s){var i=t(this,s);return!!i&&i.enumerable}:e},27674:(a,v,e)=>{var t=e(19670),n=e(96077);a.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,s={},i;try{i=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,i.call(s,[]),o=s instanceof Array}catch(h){}return function(l,p){return t(l),n(p),o?i.call(l,p):l.__proto__=p,l}}():void 0)},53887:(a,v,e)=>{var t=e(35005),n=e(8006),o=e(25181),s=e(19670);a.exports=t("Reflect","ownKeys")||function(h){var l=n.f(s(h)),p=o.f;return p?l.concat(p(h)):l}},40857:(a,v,e)=>{var t=e(17854);a.exports=t},12248:(a,v,e)=>{var t=e(31320);a.exports=function(n,o,s){for(var i in o)t(n,i,o[i],s);return n}},31320:(a,v,e)=>{var t=e(17854),n=e(68880),o=e(86656),s=e(83505),i=e(42788),h=e(29909),l=h.get,p=h.enforce,S=String(String).split("String");(a.exports=function(c,m,O,U){var N=U?!!U.unsafe:!1,B=U?!!U.enumerable:!1,w=U?!!U.noTargetGet:!1,D;if(typeof O=="function"&&(typeof m=="string"&&!o(O,"name")&&n(O,"name",m),D=p(O),D.source||(D.source=S.join(typeof m=="string"?m:""))),c===t){B?c[m]=O:s(m,O);return}else N?!w&&c[m]&&(B=!0):delete c[m];B?c[m]=O:n(c,m,O)})(Function.prototype,"toString",function(){return typeof this=="function"&&l(this).source||i(this)})},84488:a=>{a.exports=function(v){if(v==null)throw TypeError("Can't call method on "+v);return v}},83505:(a,v,e)=>{var t=e(17854),n=e(68880);a.exports=function(o,s){try{n(t,o,s)}catch(i){t[o]=s}return s}},58003:(a,v,e)=>{var t=e(3070).f,n=e(86656),o=e(5112),s=o("toStringTag");a.exports=function(i,h,l){i&&!n(i=l?i:i.prototype,s)&&t(i,s,{configurable:!0,value:h})}},6200:(a,v,e)=>{var t=e(72309),n=e(69711),o=t("keys");a.exports=function(s){return o[s]||(o[s]=n(s))}},5465:(a,v,e)=>{var t=e(17854),n=e(83505),o="__core-js_shared__",s=t[o]||n(o,{});a.exports=s},72309:(a,v,e)=>{var t=e(31913),n=e(5465);(a.exports=function(o,s){return n[o]||(n[o]=s!==void 0?s:{})})("versions",[]).push({version:"3.14.0",mode:t?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},28710:(a,v,e)=>{var t=e(99958),n=e(84488),o=function(s){return function(i,h){var l=String(n(i)),p=t(h),S=l.length,c,m;return p<0||p>=S?s?"":void 0:(c=l.charCodeAt(p),c<55296||c>56319||p+1===S||(m=l.charCodeAt(p+1))<56320||m>57343?s?l.charAt(p):c:s?l.slice(p,p+2):(c-55296<<10)+(m-56320)+65536)}};a.exports={codeAt:o(!1),charAt:o(!0)}},33197:a=>{"use strict";var v=2147483647,e=36,t=1,n=26,o=38,s=700,i=72,h=128,l="-",p=/[^\0-\u007E]/,S=/[.\u3002\uFF0E\uFF61]/g,c="Overflow: input needs wider integers to process",m=e-t,O=Math.floor,U=String.fromCharCode,N=function(I){for(var b=[],R=0,x=I.length;R<x;){var T=I.charCodeAt(R++);if(T>=55296&&T<=56319&&R<x){var G=I.charCodeAt(R++);(G&64512)==56320?b.push(((T&1023)<<10)+(G&1023)+65536):(b.push(T),R--)}else b.push(T)}return b},B=function(I){return I+22+75*(I<26)},w=function(I,b,R){var x=0;for(I=R?O(I/s):I>>1,I+=O(I/b);I>m*n>>1;x+=e)I=O(I/m);return O(x+(m+1)*I/(I+o))},D=function(I){var b=[];I=N(I);var R=I.length,x=h,T=0,G=i,W,K;for(W=0;W<I.length;W++)K=I[W],K<128&&b.push(U(K));var V=b.length,ne=V;for(V&&b.push(l);ne<R;){var re=v;for(W=0;W<I.length;W++)K=I[W],K>=x&&K<re&&(re=K);var $=ne+1;if(re-x>O((v-T)/$))throw RangeError(c);for(T+=(re-x)*$,x=re,W=0;W<I.length;W++){if(K=I[W],K<x&&++T>v)throw RangeError(c);if(K==x){for(var k=T,Q=e;;Q+=e){var ae=Q<=G?t:Q>=G+n?n:Q-G;if(k<ae)break;var q=k-ae,oe=e-ae;b.push(U(B(ae+q%oe))),k=O(q/oe)}b.push(U(B(k))),G=w(T,$,ne==V),T=0,++ne}}++T,++x}return b.join("")};a.exports=function(I){var b=[],R=I.toLowerCase().replace(S,".").split("."),x,T;for(x=0;x<R.length;x++)T=R[x],b.push(p.test(T)?"xn--"+D(T):T);return b.join(".")}},51400:(a,v,e)=>{var t=e(99958),n=Math.max,o=Math.min;a.exports=function(s,i){var h=t(s);return h<0?n(h+i,0):o(h,i)}},45656:(a,v,e)=>{var t=e(68361),n=e(84488);a.exports=function(o){return t(n(o))}},99958:a=>{var v=Math.ceil,e=Math.floor;a.exports=function(t){return isNaN(t=+t)?0:(t>0?e:v)(t)}},17466:(a,v,e)=>{var t=e(99958),n=Math.min;a.exports=function(o){return o>0?n(t(o),9007199254740991):0}},47908:(a,v,e)=>{var t=e(84488);a.exports=function(n){return Object(t(n))}},57593:(a,v,e)=>{var t=e(70111);a.exports=function(n,o){if(!t(n))return n;var s,i;if(o&&typeof(s=n.toString)=="function"&&!t(i=s.call(n))||typeof(s=n.valueOf)=="function"&&!t(i=s.call(n))||!o&&typeof(s=n.toString)=="function"&&!t(i=s.call(n)))return i;throw TypeError("Can't convert object to primitive value")}},51694:(a,v,e)=>{var t=e(5112),n=t("toStringTag"),o={};o[n]="z",a.exports=String(o)==="[object z]"},69711:a=>{var v=0,e=Math.random();a.exports=function(t){return"Symbol("+String(t===void 0?"":t)+")_"+(++v+e).toString(36)}},43307:(a,v,e)=>{var t=e(30133);a.exports=t&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},5112:(a,v,e)=>{var t=e(17854),n=e(72309),o=e(86656),s=e(69711),i=e(30133),h=e(43307),l=n("wks"),p=t.Symbol,S=h?p:p&&p.withoutSetter||s;a.exports=function(c){return(!o(l,c)||!(i||typeof l[c]=="string"))&&(i&&o(p,c)?l[c]=p[c]:l[c]=S("Symbol."+c)),l[c]}},66992:(a,v,e)=>{"use strict";var t=e(45656),n=e(51223),o=e(97497),s=e(29909),i=e(70654),h="Array Iterator",l=s.set,p=s.getterFor(h);a.exports=i(Array,"Array",function(S,c){l(this,{type:h,target:t(S),index:0,kind:c})},function(){var S=p(this),c=S.target,m=S.kind,O=S.index++;return!c||O>=c.length?(S.target=void 0,{value:void 0,done:!0}):m=="keys"?{value:O,done:!1}:m=="values"?{value:c[O],done:!1}:{value:[O,c[O]],done:!1}},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},78783:(a,v,e)=>{"use strict";var t=e(28710).charAt,n=e(29909),o=e(70654),s="String Iterator",i=n.set,h=n.getterFor(s);o(String,"String",function(l){i(this,{type:s,string:String(l),index:0})},function(){var p=h(this),S=p.string,c=p.index,m;return c>=S.length?{value:void 0,done:!0}:(m=t(S,c),p.index+=m.length,{value:m,done:!1})})},41637:(a,v,e)=>{"use strict";e(66992);var t=e(82109),n=e(35005),o=e(590),s=e(31320),i=e(12248),h=e(58003),l=e(24994),p=e(29909),S=e(25787),c=e(86656),m=e(49974),O=e(70648),U=e(19670),N=e(70111),B=e(70030),w=e(79114),D=e(18554),I=e(71246),b=e(5112),R=n("fetch"),x=n("Headers"),T=b("iterator"),G="URLSearchParams",W=G+"Iterator",K=p.set,V=p.getterFor(G),ne=p.getterFor(W),re=/\+/g,$=Array(4),k=function(F){return $[F-1]||($[F-1]=RegExp("((?:%[\\da-f]{2}){"+F+"})","gi"))},Q=function(F){try{return decodeURIComponent(F)}catch(A){return F}},ae=function(F){var A=F.replace(re," "),L=4;try{return decodeURIComponent(A)}catch(j){for(;L;)A=A.replace(k(L--),Q);return A}},q=/[!'()~]|%20/g,oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},de=function(F){return oe[F]},te=function(F){return encodeURIComponent(F).replace(q,de)},me=function(F,A){if(A)for(var L=A.split("&"),j=0,E,M;j<L.length;)E=L[j++],E.length&&(M=E.split("="),F.push({key:ae(M.shift()),value:ae(M.join("="))}))},_=function(F){this.entries.length=0,me(this.entries,F)},ce=function(F,A){if(F<A)throw TypeError("Not enough arguments")},Oe=l(function(A,L){K(this,{type:W,iterator:D(V(A).entries),kind:L})},"Iterator",function(){var A=ne(this),L=A.kind,j=A.iterator.next(),E=j.value;return j.done||(j.value=L==="keys"?E.key:L==="values"?E.value:[E.key,E.value]),j}),Se=function(){S(this,Se,G);var A=arguments.length>0?arguments[0]:void 0,L=this,j=[],E,M,Z,Y,ee,se,ge,Ae,xe;if(K(L,{type:G,entries:j,updateURL:function(){},updateSearchParams:_}),A!==void 0)if(N(A))if(E=I(A),typeof E=="function")for(M=E.call(A),Z=M.next;!(Y=Z.call(M)).done;){if(ee=D(U(Y.value)),se=ee.next,(ge=se.call(ee)).done||(Ae=se.call(ee)).done||!se.call(ee).done)throw TypeError("Expected sequence with length 2");j.push({key:ge.value+"",value:Ae.value+""})}else for(xe in A)c(A,xe)&&j.push({key:xe,value:A[xe]+""});else me(j,typeof A=="string"?A.charAt(0)==="?"?A.slice(1):A:A+"")},Ie=Se.prototype;i(Ie,{append:function(A,L){ce(arguments.length,2);var j=V(this);j.entries.push({key:A+"",value:L+""}),j.updateURL()},delete:function(F){ce(arguments.length,1);for(var A=V(this),L=A.entries,j=F+"",E=0;E<L.length;)L[E].key===j?L.splice(E,1):E++;A.updateURL()},get:function(A){ce(arguments.length,1);for(var L=V(this).entries,j=A+"",E=0;E<L.length;E++)if(L[E].key===j)return L[E].value;return null},getAll:function(A){ce(arguments.length,1);for(var L=V(this).entries,j=A+"",E=[],M=0;M<L.length;M++)L[M].key===j&&E.push(L[M].value);return E},has:function(A){ce(arguments.length,1);for(var L=V(this).entries,j=A+"",E=0;E<L.length;)if(L[E++].key===j)return!0;return!1},set:function(A,L){ce(arguments.length,1);for(var j=V(this),E=j.entries,M=!1,Z=A+"",Y=L+"",ee=0,se;ee<E.length;ee++)se=E[ee],se.key===Z&&(M?E.splice(ee--,1):(M=!0,se.value=Y));M||E.push({key:Z,value:Y}),j.updateURL()},sort:function(){var A=V(this),L=A.entries,j=L.slice(),E,M,Z;for(L.length=0,Z=0;Z<j.length;Z++){for(E=j[Z],M=0;M<Z;M++)if(L[M].key>E.key){L.splice(M,0,E);break}M===Z&&L.push(E)}A.updateURL()},forEach:function(A){for(var L=V(this).entries,j=m(A,arguments.length>1?arguments[1]:void 0,3),E=0,M;E<L.length;)M=L[E++],j(M.value,M.key,this)},keys:function(){return new Oe(this,"keys")},values:function(){return new Oe(this,"values")},entries:function(){return new Oe(this,"entries")}},{enumerable:!0}),s(Ie,T,Ie.entries),s(Ie,"toString",function(){for(var A=V(this).entries,L=[],j=0,E;j<A.length;)E=A[j++],L.push(te(E.key)+"="+te(E.value));return L.join("&")},{enumerable:!0}),h(Se,G),t({global:!0,forced:!o},{URLSearchParams:Se}),!o&&typeof R=="function"&&typeof x=="function"&&t({global:!0,enumerable:!0,forced:!0},{fetch:function(A){var L=[A],j,E,M;return arguments.length>1&&(j=arguments[1],N(j)&&(E=j.body,O(E)===G&&(M=j.headers?new x(j.headers):new x,M.has("content-type")||M.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),j=B(j,{body:w(0,String(E)),headers:w(0,M)}))),L.push(j)),R.apply(this,L)}}),a.exports={URLSearchParams:Se,getState:V}},60285:(a,v,e)=>{"use strict";e(78783);var t=e(82109),n=e(19781),o=e(590),s=e(17854),i=e(36048),h=e(31320),l=e(25787),p=e(86656),S=e(21574),c=e(48457),m=e(28710).codeAt,O=e(33197),U=e(58003),N=e(41637),B=e(29909),w=s.URL,D=N.URLSearchParams,I=N.getState,b=B.set,R=B.getterFor("URL"),x=Math.floor,T=Math.pow,G="Invalid authority",W="Invalid scheme",K="Invalid host",V="Invalid port",ne=/[A-Za-z]/,re=/[\d+-.A-Za-z]/,$=/\d/,k=/^(0x|0X)/,Q=/^[0-7]+$/,ae=/^\d+$/,q=/^[\dA-Fa-f]+$/,oe=/[\0\t\n\r #%/:?@[\\]]/,de=/[\0\t\n\r #/:?@[\\]]/,te=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,me=/[\t\n\r]/g,_,ce=function(r,f){var u,d,y;if(f.charAt(0)=="["){if(f.charAt(f.length-1)!="]"||(u=Se(f.slice(1,-1)),!u))return K;r.host=u}else if(Y(r)){if(f=O(f),oe.test(f)||(u=Oe(f),u===null))return K;r.host=u}else{if(de.test(f))return K;for(u="",d=c(f),y=0;y<d.length;y++)u+=M(d[y],A);r.host=u}},Oe=function(r){var f=r.split("."),u,d,y,C,P,H,z;if(f.length&&f[f.length-1]==""&&f.pop(),u=f.length,u>4)return r;for(d=[],y=0;y<u;y++){if(C=f[y],C=="")return r;if(P=10,C.length>1&&C.charAt(0)=="0"&&(P=k.test(C)?16:8,C=C.slice(P==8?1:2)),C==="")H=0;else{if(!(P==10?ae:P==8?Q:q).test(C))return r;H=parseInt(C,P)}d.push(H)}for(y=0;y<u;y++)if(H=d[y],y==u-1){if(H>=T(256,5-u))return null}else if(H>255)return null;for(z=d.pop(),y=0;y<d.length;y++)z+=d[y]*T(256,3-y);return z},Se=function(r){var f=[0,0,0,0,0,0,0,0],u=0,d=null,y=0,C,P,H,z,J,ue,g,X=function(){return r.charAt(y)};if(X()==":"){if(r.charAt(1)!=":")return;y+=2,u++,d=u}for(;X();){if(u==8)return;if(X()==":"){if(d!==null)return;y++,u++,d=u;continue}for(C=P=0;P<4&&q.test(X());)C=C*16+parseInt(X(),16),y++,P++;if(X()=="."){if(P==0||(y-=P,u>6))return;for(H=0;X();){if(z=null,H>0)if(X()=="."&&H<4)y++;else return;if(!$.test(X()))return;for(;$.test(X());){if(J=parseInt(X(),10),z===null)z=J;else{if(z==0)return;z=z*10+J}if(z>255)return;y++}f[u]=f[u]*256+z,H++,(H==2||H==4)&&u++}if(H!=4)return;break}else if(X()==":"){if(y++,!X())return}else if(X())return;f[u++]=C}if(d!==null)for(ue=u-d,u=7;u!=0&&ue>0;)g=f[u],f[u--]=f[d+ue-1],f[d+--ue]=g;else if(u!=8)return;return f},Ie=function(r){for(var f=null,u=1,d=null,y=0,C=0;C<8;C++)r[C]!==0?(y>u&&(f=d,u=y),d=null,y=0):(d===null&&(d=C),++y);return y>u&&(f=d,u=y),f},F=function(r){var f,u,d,y;if(typeof r=="number"){for(f=[],u=0;u<4;u++)f.unshift(r%256),r=x(r/256);return f.join(".")}else if(typeof r=="object"){for(f="",d=Ie(r),u=0;u<8;u++)y&&r[u]===0||(y&&(y=!1),d===u?(f+=u?":":"::",y=!0):(f+=r[u].toString(16),u<7&&(f+=":")));return"["+f+"]"}return r},A={},L=S({},A,{" ":1,'"':1,"<":1,">":1,"`":1}),j=S({},L,{"#":1,"?":1,"{":1,"}":1}),E=S({},j,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),M=function(r,f){var u=m(r,0);return u>32&&u<127&&!p(f,r)?r:encodeURIComponent(r)},Z={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Y=function(r){return p(Z,r.scheme)},ee=function(r){return r.username!=""||r.password!=""},se=function(r){return!r.host||r.cannotBeABaseURL||r.scheme=="file"},ge=function(r,f){var u;return r.length==2&&ne.test(r.charAt(0))&&((u=r.charAt(1))==":"||!f&&u=="|")},Ae=function(r){var f;return r.length>1&&ge(r.slice(0,2))&&(r.length==2||(f=r.charAt(2))==="/"||f==="\\"||f==="?"||f==="#")},xe=function(r){var f=r.path,u=f.length;u&&(r.scheme!="file"||u!=1||!ge(f[0],!0))&&f.pop()},vr=function(r){return r==="."||r.toLowerCase()==="%2e"},lr=function(r){return r=r.toLowerCase(),r===".."||r==="%2e."||r===".%2e"||r==="%2e%2e"},be={},Ve={},je={},ze={},We={},Ue={},$e={},Je={},Te={},we={},Ce={},Fe={},Me={},Ne={},Xe={},Be={},Pe={},ve={},Ze={},Re={},he={},le=function(r,f,u,d){var y=u||be,C=0,P="",H=!1,z=!1,J=!1,ue,g,X,pe;for(u||(r.scheme="",r.username="",r.password="",r.host=null,r.port=null,r.path=[],r.query=null,r.fragment=null,r.cannotBeABaseURL=!1,f=f.replace(te,"")),f=f.replace(me,""),ue=c(f);C<=ue.length;){switch(g=ue[C],y){case be:if(g&&ne.test(g))P+=g.toLowerCase(),y=Ve;else{if(u)return W;y=je;continue}break;case Ve:if(g&&(re.test(g)||g=="+"||g=="-"||g=="."))P+=g.toLowerCase();else if(g==":"){if(u&&(Y(r)!=p(Z,P)||P=="file"&&(ee(r)||r.port!==null)||r.scheme=="file"&&!r.host))return;if(r.scheme=P,u){Y(r)&&Z[r.scheme]==r.port&&(r.port=null);return}P="",r.scheme=="file"?y=Ne:Y(r)&&d&&d.scheme==r.scheme?y=ze:Y(r)?y=Je:ue[C+1]=="/"?(y=We,C++):(r.cannotBeABaseURL=!0,r.path.push(""),y=Ze)}else{if(u)return W;P="",y=je,C=0;continue}break;case je:if(!d||d.cannotBeABaseURL&&g!="#")return W;if(d.cannotBeABaseURL&&g=="#"){r.scheme=d.scheme,r.path=d.path.slice(),r.query=d.query,r.fragment="",r.cannotBeABaseURL=!0,y=he;break}y=d.scheme=="file"?Ne:Ue;continue;case ze:if(g=="/"&&ue[C+1]=="/")y=Te,C++;else{y=Ue;continue}break;case We:if(g=="/"){y=we;break}else{y=ve;continue}case Ue:if(r.scheme=d.scheme,g==_)r.username=d.username,r.password=d.password,r.host=d.host,r.port=d.port,r.path=d.path.slice(),r.query=d.query;else if(g=="/"||g=="\\"&&Y(r))y=$e;else if(g=="?")r.username=d.username,r.password=d.password,r.host=d.host,r.port=d.port,r.path=d.path.slice(),r.query="",y=Re;else if(g=="#")r.username=d.username,r.password=d.password,r.host=d.host,r.port=d.port,r.path=d.path.slice(),r.query=d.query,r.fragment="",y=he;else{r.username=d.username,r.password=d.password,r.host=d.host,r.port=d.port,r.path=d.path.slice(),r.path.pop(),y=ve;continue}break;case $e:if(Y(r)&&(g=="/"||g=="\\"))y=Te;else if(g=="/")y=we;else{r.username=d.username,r.password=d.password,r.host=d.host,r.port=d.port,y=ve;continue}break;case Je:if(y=Te,g!="/"||P.charAt(C+1)!="/")continue;C++;break;case Te:if(g!="/"&&g!="\\"){y=we;continue}break;case we:if(g=="@"){H&&(P="%40"+P),H=!0,X=c(P);for(var He=0;He<X.length;He++){var fr=X[He];if(fr==":"&&!J){J=!0;continue}var cr=M(fr,E);J?r.password+=cr:r.username+=cr}P=""}else if(g==_||g=="/"||g=="?"||g=="#"||g=="\\"&&Y(r)){if(H&&P=="")return G;C-=c(P).length+1,P="",y=Ce}else P+=g;break;case Ce:case Fe:if(u&&r.scheme=="file"){y=Be;continue}else if(g==":"&&!z){if(P=="")return K;if(pe=ce(r,P),pe)return pe;if(P="",y=Me,u==Fe)return}else if(g==_||g=="/"||g=="?"||g=="#"||g=="\\"&&Y(r)){if(Y(r)&&P=="")return K;if(u&&P==""&&(ee(r)||r.port!==null))return;if(pe=ce(r,P),pe)return pe;if(P="",y=Pe,u)return;continue}else g=="["?z=!0:g=="]"&&(z=!1),P+=g;break;case Me:if($.test(g))P+=g;else if(g==_||g=="/"||g=="?"||g=="#"||g=="\\"&&Y(r)||u){if(P!=""){var Ge=parseInt(P,10);if(Ge>65535)return V;r.port=Y(r)&&Ge===Z[r.scheme]?null:Ge,P=""}if(u)return;y=Pe;continue}else return V;break;case Ne:if(r.scheme="file",g=="/"||g=="\\")y=Xe;else if(d&&d.scheme=="file")if(g==_)r.host=d.host,r.path=d.path.slice(),r.query=d.query;else if(g=="?")r.host=d.host,r.path=d.path.slice(),r.query="",y=Re;else if(g=="#")r.host=d.host,r.path=d.path.slice(),r.query=d.query,r.fragment="",y=he;else{Ae(ue.slice(C).join(""))||(r.host=d.host,r.path=d.path.slice(),xe(r)),y=ve;continue}else{y=ve;continue}break;case Xe:if(g=="/"||g=="\\"){y=Be;break}d&&d.scheme=="file"&&!Ae(ue.slice(C).join(""))&&(ge(d.path[0],!0)?r.path.push(d.path[0]):r.host=d.host),y=ve;continue;case Be:if(g==_||g=="/"||g=="\\"||g=="?"||g=="#"){if(!u&&ge(P))y=ve;else if(P==""){if(r.host="",u)return;y=Pe}else{if(pe=ce(r,P),pe)return pe;if(r.host=="localhost"&&(r.host=""),u)return;P="",y=Pe}continue}else P+=g;break;case Pe:if(Y(r)){if(y=ve,g!="/"&&g!="\\")continue}else if(!u&&g=="?")r.query="",y=Re;else if(!u&&g=="#")r.fragment="",y=he;else if(g!=_&&(y=ve,g!="/"))continue;break;case ve:if(g==_||g=="/"||g=="\\"&&Y(r)||!u&&(g=="?"||g=="#")){if(lr(P)?(xe(r),g!="/"&&!(g=="\\"&&Y(r))&&r.path.push("")):vr(P)?g!="/"&&!(g=="\\"&&Y(r))&&r.path.push(""):(r.scheme=="file"&&!r.path.length&&ge(P)&&(r.host&&(r.host=""),P=P.charAt(0)+":"),r.path.push(P)),P="",r.scheme=="file"&&(g==_||g=="?"||g=="#"))for(;r.path.length>1&&r.path[0]==="";)r.path.shift();g=="?"?(r.query="",y=Re):g=="#"&&(r.fragment="",y=he)}else P+=M(g,j);break;case Ze:g=="?"?(r.query="",y=Re):g=="#"?(r.fragment="",y=he):g!=_&&(r.path[0]+=M(g,A));break;case Re:!u&&g=="#"?(r.fragment="",y=he):g!=_&&(g=="'"&&Y(r)?r.query+="%27":g=="#"?r.query+="%23":r.query+=M(g,A));break;case he:g!=_&&(r.fragment+=M(g,L));break}C++}},ye=function(f){var u=l(this,ye,"URL"),d=arguments.length>1?arguments[1]:void 0,y=String(f),C=b(u,{type:"URL"}),P,H;if(d!==void 0){if(d instanceof ye)P=R(d);else if(H=le(P={},String(d)),H)throw TypeError(H)}if(H=le(C,y,null,P),H)throw TypeError(H);var z=C.searchParams=new D,J=I(z);J.updateSearchParams(C.query),J.updateURL=function(){C.query=String(z)||null},n||(u.href=Le.call(u),u.origin=Qe.call(u),u.protocol=ke.call(u),u.username=qe.call(u),u.password=_e.call(u),u.host=er.call(u),u.hostname=rr.call(u),u.port=tr.call(u),u.pathname=nr.call(u),u.search=ar.call(u),u.searchParams=or.call(u),u.hash=sr.call(u))},De=ye.prototype,Le=function(){var r=R(this),f=r.scheme,u=r.username,d=r.password,y=r.host,C=r.port,P=r.path,H=r.query,z=r.fragment,J=f+":";return y!==null?(J+="//",ee(r)&&(J+=u+(d?":"+d:"")+"@"),J+=F(y),C!==null&&(J+=":"+C)):f=="file"&&(J+="//"),J+=r.cannotBeABaseURL?P[0]:P.length?"/"+P.join("/"):"",H!==null&&(J+="?"+H),z!==null&&(J+="#"+z),J},Qe=function(){var r=R(this),f=r.scheme,u=r.port;if(f=="blob")try{return new ye(f.path[0]).origin}catch(d){return"null"}return f=="file"||!Y(r)?"null":f+"://"+F(r.host)+(u!==null?":"+u:"")},ke=function(){return R(this).scheme+":"},qe=function(){return R(this).username},_e=function(){return R(this).password},er=function(){var r=R(this),f=r.host,u=r.port;return f===null?"":u===null?F(f):F(f)+":"+u},rr=function(){var r=R(this).host;return r===null?"":F(r)},tr=function(){var r=R(this).port;return r===null?"":String(r)},nr=function(){var r=R(this),f=r.path;return r.cannotBeABaseURL?f[0]:f.length?"/"+f.join("/"):""},ar=function(){var r=R(this).query;return r?"?"+r:""},or=function(){return R(this).searchParams},sr=function(){var r=R(this).fragment;return r?"#"+r:""},ie=function(r,f){return{get:r,set:f,configurable:!0,enumerable:!0}};if(n&&i(De,{href:ie(Le,function(r){var f=R(this),u=String(r),d=le(f,u);if(d)throw TypeError(d);I(f.searchParams).updateSearchParams(f.query)}),origin:ie(Qe),protocol:ie(ke,function(r){var f=R(this);le(f,String(r)+":",be)}),username:ie(qe,function(r){var f=R(this),u=c(String(r));if(!se(f)){f.username="";for(var d=0;d<u.length;d++)f.username+=M(u[d],E)}}),password:ie(_e,function(r){var f=R(this),u=c(String(r));if(!se(f)){f.password="";for(var d=0;d<u.length;d++)f.password+=M(u[d],E)}}),host:ie(er,function(r){var f=R(this);f.cannotBeABaseURL||le(f,String(r),Ce)}),hostname:ie(rr,function(r){var f=R(this);f.cannotBeABaseURL||le(f,String(r),Fe)}),port:ie(tr,function(r){var f=R(this);se(f)||(r=String(r),r==""?f.port=null:le(f,r,Me))}),pathname:ie(nr,function(r){var f=R(this);f.cannotBeABaseURL||(f.path=[],le(f,r+"",Pe))}),search:ie(ar,function(r){var f=R(this);r=String(r),r==""?f.query=null:(r.charAt(0)=="?"&&(r=r.slice(1)),f.query="",le(f,r,Re)),I(f.searchParams).updateSearchParams(f.query)}),searchParams:ie(or),hash:ie(sr,function(r){var f=R(this);if(r=String(r),r==""){f.fragment=null;return}r.charAt(0)=="#"&&(r=r.slice(1)),f.fragment="",le(f,r,he)})}),h(De,"toJSON",function(){return Le.call(this)},{enumerable:!0}),h(De,"toString",function(){return Le.call(this)},{enumerable:!0}),w){var ir=w.createObjectURL,ur=w.revokeObjectURL;ir&&h(ye,"createObjectURL",function(f){return ir.apply(w,arguments)}),ur&&h(ye,"revokeObjectURL",function(f){return ur.apply(w,arguments)})}U(ye,"URL"),t({global:!0,forced:!o,sham:!n},{URL:ye})},83753:(a,v,e)=>{"use strict";var t=e(82109);t({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},41439:(a,v,e)=>{e(60285),e(83753),e(41637);var t=e(40857);a.exports=t.URL}},Ee={};function fe(a){var v=Ee[a];if(v!==void 0)return v.exports;var e=Ee[a]={exports:{}};return Ke[a](e,e.exports,fe),e.exports}(()=>{fe.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(a){if(typeof window=="object")return window}}()})(),(()=>{fe.r=a=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})}})();var Ye={};return(()=>{"use strict";fe.r(Ye);var a=fe(41439);const v="Something went wrong, please, try again.";function e(o,s){return Boolean(o)&&Boolean(s)&&o===s}function t(o){let s;if(/code|token|error/.test(window.location.hash)?s=window.location.hash.substring(1):s=location.search.substring(1),!s)throw console.error("No query string in OAuth 2 redirect URL"),new Error(v);const i=new URLSearchParams(s),h=i.get("access_token"),l=i.get("code"),p=i.get("token_type"),S=i.get("expires_in"),c=i.get("state"),m=i.get("error"),O=i.get("error_description")||v;if(m)throw new Error(O);if(!e(c,o==null?void 0:o.state))throw new Error("Outdated OAuth2 state");if((o==null?void 0:o.flow)==="implicit"){if(!h)throw new Error(`Your OAuth2 authentication service provider redirected you without an "access_token".
|
|
7
7
|
Please, try again or make sure your OAuth2 settings are correct.`);if(!p)throw new Error(`Your OAuth2 authentication service provider redirected you without a "token_type".
|
|
8
8
|
Please, try again or make sure your OAuth2 settings are correct.`);o==null||o.successCallback({access_token:h,token_type:p,expires_in:S,auth_code:""})}if((o==null?void 0:o.flow)==="authorizationCode"){if(!l)throw new Error(`Your OAuth2 authentication service provider redirected you without authorization "code".
|